{"version":3,"file":"flex.mjs","names":[],"sources":["../../src/jsx/flex.js"],"sourcesContent":["import { createElement, forwardRef } from 'react'\nimport { mergeCss } from '../css/css.js';\nimport { splitProps } from '../helpers.js';\nimport { getFlexStyle } from '../patterns/flex.js';\nimport { styled } from './factory.js';\n\nexport const Flex = /* @__PURE__ */ forwardRef(function Flex(props, ref) {\n  const [patternProps, restProps] = splitProps(props, [\"align\",\"justify\",\"direction\",\"wrap\",\"basis\",\"grow\",\"shrink\"])\n\nconst styleProps = getFlexStyle(patternProps)\nconst cssProps = { css: mergeCss(styleProps, props.css) }\nconst mergedProps = { ref, ...restProps, ...cssProps }\n\nreturn createElement(styled.div, mergedProps)\n  })"],"mappings":";;;;;;AAMA,MAAa,OAAuB,2BAAW,SAAS,KAAK,OAAO,KAAK;CACvE,MAAM,CAAC,cAAc,aAAa,WAAW,OAAO;EAAC;EAAQ;EAAU;EAAY;EAAO;EAAQ;EAAO;CAAQ,CAAC;CAGpH,MAAM,WAAW,EAAE,KAAK,SADL,aAAa,YACU,GAAG,MAAM,GAAG,EAAE;CACxD,MAAM,cAAc;EAAE;EAAK,GAAG;EAAW,GAAG;CAAS;CAErD,OAAO,cAAc,OAAO,KAAK,WAAW;AAC1C,CAAC"}