{"version":3,"file":"cq.mjs","names":[],"sources":["../../src/jsx/cq.js"],"sourcesContent":["import { createElement, forwardRef } from 'react'\nimport { mergeCss } from '../css/css.js';\nimport { splitProps } from '../helpers.js';\nimport { getCqStyle } from '../patterns/cq.js';\nimport { styled } from './factory.js';\n\nexport const Cq = /* @__PURE__ */ forwardRef(function Cq(props, ref) {\n  const [patternProps, restProps] = splitProps(props, [\"name\",\"type\"])\n\nconst styleProps = getCqStyle(patternProps)\nconst cssProps = { css: mergeCss(styleProps, props.css) }\nconst mergedProps = { ref, ...restProps, ...cssProps }\n\nreturn createElement(styled.div, mergedProps)\n  })"],"mappings":";;;;;;AAMA,MAAa,KAAqB,2BAAW,SAAS,GAAG,OAAO,KAAK;CACnE,MAAM,CAAC,cAAc,aAAa,WAAW,OAAO,CAAC,QAAO,MAAM,CAAC;CAGrE,MAAM,WAAW,EAAE,KAAK,SADL,WAAW,YACY,GAAG,MAAM,GAAG,EAAE;CACxD,MAAM,cAAc;EAAE;EAAK,GAAG;EAAW,GAAG;CAAS;CAErD,OAAO,cAAc,OAAO,KAAK,WAAW;AAC1C,CAAC"}