{"version":3,"file":"wrap.mjs","names":[],"sources":["../../src/jsx/wrap.js"],"sourcesContent":["import { createElement, forwardRef } from 'react'\nimport { mergeCss } from '../css/css.js';\nimport { splitProps } from '../helpers.js';\nimport { getWrapStyle } from '../patterns/wrap.js';\nimport { styled } from './factory.js';\n\nexport const Wrap = /* @__PURE__ */ forwardRef(function Wrap(props, ref) {\n  const [patternProps, restProps] = splitProps(props, [\"gap\",\"rowGap\",\"columnGap\",\"align\",\"justify\"])\n\nconst styleProps = getWrapStyle(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;EAAM;EAAS;EAAY;EAAQ;CAAS,CAAC;CAGpG,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"}