@choco-vanille/primitives 0.0.0-stage → 0.1.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +482 -2
- package/dist/components/_common/components/slot/Slot.cjs +2 -0
- package/dist/components/_common/components/slot/Slot.cjs.map +1 -0
- package/dist/components/_common/components/slot/Slot.js +10 -0
- package/dist/components/_common/components/slot/Slot.js.map +1 -0
- package/dist/components/_common/components/slot/hooks/use-slot/useSlot.hook.cjs +2 -0
- package/dist/components/_common/components/slot/hooks/use-slot/useSlot.hook.cjs.map +1 -0
- package/dist/components/_common/components/slot/hooks/use-slot/useSlot.hook.js +18 -0
- package/dist/components/_common/components/slot/hooks/use-slot/useSlot.hook.js.map +1 -0
- package/dist/components/_common/components/slot/utils/attachRef.utils.cjs +2 -0
- package/dist/components/_common/components/slot/utils/attachRef.utils.cjs.map +1 -0
- package/dist/components/_common/components/slot/utils/attachRef.utils.js +18 -0
- package/dist/components/_common/components/slot/utils/attachRef.utils.js.map +1 -0
- package/dist/components/_common/components/slot/utils/composeRefs.utils.cjs +2 -0
- package/dist/components/_common/components/slot/utils/composeRefs.utils.cjs.map +1 -0
- package/dist/components/_common/components/slot/utils/composeRefs.utils.js +13 -0
- package/dist/components/_common/components/slot/utils/composeRefs.utils.js.map +1 -0
- package/dist/components/_common/components/slot/utils/getSlotChild.utils.cjs +2 -0
- package/dist/components/_common/components/slot/utils/getSlotChild.utils.cjs.map +1 -0
- package/dist/components/_common/components/slot/utils/getSlotChild.utils.js +9 -0
- package/dist/components/_common/components/slot/utils/getSlotChild.utils.js.map +1 -0
- package/dist/components/_common/components/slot/utils/mergeClassNames.utils.cjs +2 -0
- package/dist/components/_common/components/slot/utils/mergeClassNames.utils.cjs.map +1 -0
- package/dist/components/_common/components/slot/utils/mergeClassNames.utils.js +8 -0
- package/dist/components/_common/components/slot/utils/mergeClassNames.utils.js.map +1 -0
- package/dist/components/_common/components/slot/utils/mergeSlotProps.utils.cjs +2 -0
- package/dist/components/_common/components/slot/utils/mergeSlotProps.utils.cjs.map +1 -0
- package/dist/components/_common/components/slot/utils/mergeSlotProps.utils.js +16 -0
- package/dist/components/_common/components/slot/utils/mergeSlotProps.utils.js.map +1 -0
- package/dist/components/_common/components/slot/utils/mergeStyles.utils.cjs +2 -0
- package/dist/components/_common/components/slot/utils/mergeStyles.utils.cjs.map +1 -0
- package/dist/components/_common/components/slot/utils/mergeStyles.utils.js +14 -0
- package/dist/components/_common/components/slot/utils/mergeStyles.utils.js.map +1 -0
- package/dist/components/_common/styles/style-props/styleProps.css.cjs +2 -0
- package/dist/components/_common/styles/style-props/styleProps.css.cjs.map +1 -0
- package/dist/components/_common/styles/style-props/styleProps.css.js +370 -0
- package/dist/components/_common/styles/style-props/styleProps.css.js.map +1 -0
- package/dist/components/_common/utils/environment/isProcessUnavailableError.utils.cjs +2 -0
- package/dist/components/_common/utils/environment/isProcessUnavailableError.utils.cjs.map +1 -0
- package/dist/components/_common/utils/environment/isProcessUnavailableError.utils.js +5 -0
- package/dist/components/_common/utils/environment/isProcessUnavailableError.utils.js.map +1 -0
- package/dist/components/_common/utils/style-props/createStyleSet.utils.cjs +2 -0
- package/dist/components/_common/utils/style-props/createStyleSet.utils.cjs.map +1 -0
- package/dist/components/_common/utils/style-props/createStyleSet.utils.js +13 -0
- package/dist/components/_common/utils/style-props/createStyleSet.utils.js.map +1 -0
- package/dist/components/_common/utils/style-props/formatStyleValue.utils.cjs +2 -0
- package/dist/components/_common/utils/style-props/formatStyleValue.utils.cjs.map +1 -0
- package/dist/components/_common/utils/style-props/formatStyleValue.utils.js +11 -0
- package/dist/components/_common/utils/style-props/formatStyleValue.utils.js.map +1 -0
- package/dist/components/_common/utils/style-props/getClassName.utils.cjs +2 -0
- package/dist/components/_common/utils/style-props/getClassName.utils.cjs.map +1 -0
- package/dist/components/_common/utils/style-props/getClassName.utils.js +21 -0
- package/dist/components/_common/utils/style-props/getClassName.utils.js.map +1 -0
- package/dist/components/_common/utils/style-props/getElementProps.utils.cjs +2 -0
- package/dist/components/_common/utils/style-props/getElementProps.utils.cjs.map +1 -0
- package/dist/components/_common/utils/style-props/getElementProps.utils.js +39 -0
- package/dist/components/_common/utils/style-props/getElementProps.utils.js.map +1 -0
- package/dist/components/_common/utils/style-props/getTokenClassNames.utils.cjs +2 -0
- package/dist/components/_common/utils/style-props/getTokenClassNames.utils.cjs.map +1 -0
- package/dist/components/_common/utils/style-props/getTokenClassNames.utils.js +21 -0
- package/dist/components/_common/utils/style-props/getTokenClassNames.utils.js.map +1 -0
- package/dist/components/_common/utils/style-props/logUnknownStyleValue.utils.cjs +2 -0
- package/dist/components/_common/utils/style-props/logUnknownStyleValue.utils.cjs.map +1 -0
- package/dist/components/_common/utils/style-props/logUnknownStyleValue.utils.js +9 -0
- package/dist/components/_common/utils/style-props/logUnknownStyleValue.utils.js.map +1 -0
- package/dist/components/_common/utils/style-props/resolveSizeValue.utils.cjs +2 -0
- package/dist/components/_common/utils/style-props/resolveSizeValue.utils.cjs.map +1 -0
- package/dist/components/_common/utils/style-props/resolveSizeValue.utils.js +5 -0
- package/dist/components/_common/utils/style-props/resolveSizeValue.utils.js.map +1 -0
- package/dist/components/accessibility/visually-hidden/VisuallyHidden.cjs +2 -0
- package/dist/components/accessibility/visually-hidden/VisuallyHidden.cjs.map +1 -0
- package/dist/components/accessibility/visually-hidden/VisuallyHidden.css.cjs +2 -0
- package/dist/components/accessibility/visually-hidden/VisuallyHidden.css.cjs.map +1 -0
- package/dist/components/accessibility/visually-hidden/VisuallyHidden.css.js +10 -0
- package/dist/components/accessibility/visually-hidden/VisuallyHidden.css.js.map +1 -0
- package/dist/components/accessibility/visually-hidden/VisuallyHidden.js +11 -0
- package/dist/components/accessibility/visually-hidden/VisuallyHidden.js.map +1 -0
- package/dist/components/accessibility/visually-hidden/utils/getVisuallyHiddenElementProps.utils.cjs +2 -0
- package/dist/components/accessibility/visually-hidden/utils/getVisuallyHiddenElementProps.utils.cjs.map +1 -0
- package/dist/components/accessibility/visually-hidden/utils/getVisuallyHiddenElementProps.utils.js +17 -0
- package/dist/components/accessibility/visually-hidden/utils/getVisuallyHiddenElementProps.utils.js.map +1 -0
- package/dist/components/foundation/icon/Icon.cjs +2 -0
- package/dist/components/foundation/icon/Icon.cjs.map +1 -0
- package/dist/components/foundation/icon/Icon.css.cjs +2 -0
- package/dist/components/foundation/icon/Icon.css.cjs.map +1 -0
- package/dist/components/foundation/icon/Icon.css.js +29 -0
- package/dist/components/foundation/icon/Icon.css.js.map +1 -0
- package/dist/components/foundation/icon/Icon.js +8 -0
- package/dist/components/foundation/icon/Icon.js.map +1 -0
- package/dist/components/foundation/icon/utils/getIconElementProps.utils.cjs +2 -0
- package/dist/components/foundation/icon/utils/getIconElementProps.utils.cjs.map +1 -0
- package/dist/components/foundation/icon/utils/getIconElementProps.utils.js +26 -0
- package/dist/components/foundation/icon/utils/getIconElementProps.utils.js.map +1 -0
- package/dist/components/foundation/typography/Typography.cjs +2 -0
- package/dist/components/foundation/typography/Typography.cjs.map +1 -0
- package/dist/components/foundation/typography/Typography.css.cjs +2 -0
- package/dist/components/foundation/typography/Typography.css.cjs.map +1 -0
- package/dist/components/foundation/typography/Typography.css.js +149 -0
- package/dist/components/foundation/typography/Typography.css.js.map +1 -0
- package/dist/components/foundation/typography/Typography.js +11 -0
- package/dist/components/foundation/typography/Typography.js.map +1 -0
- package/dist/components/foundation/typography/utils/getTypographyElementProps.utils.cjs +2 -0
- package/dist/components/foundation/typography/utils/getTypographyElementProps.utils.cjs.map +1 -0
- package/dist/components/foundation/typography/utils/getTypographyElementProps.utils.js +9 -0
- package/dist/components/foundation/typography/utils/getTypographyElementProps.utils.js.map +1 -0
- package/dist/components/layout/box/Box.cjs +2 -0
- package/dist/components/layout/box/Box.cjs.map +1 -0
- package/dist/components/layout/box/Box.css.cjs +2 -0
- package/dist/components/layout/box/Box.css.cjs.map +1 -0
- package/dist/components/layout/box/Box.css.js +418 -0
- package/dist/components/layout/box/Box.css.js.map +1 -0
- package/dist/components/layout/box/Box.js +11 -0
- package/dist/components/layout/box/Box.js.map +1 -0
- package/dist/components/layout/box/utils/getBoxElementProps.utils.cjs +2 -0
- package/dist/components/layout/box/utils/getBoxElementProps.utils.cjs.map +1 -0
- package/dist/components/layout/box/utils/getBoxElementProps.utils.js +9 -0
- package/dist/components/layout/box/utils/getBoxElementProps.utils.js.map +1 -0
- package/dist/components/layout/flex/Flex.cjs +2 -0
- package/dist/components/layout/flex/Flex.cjs.map +1 -0
- package/dist/components/layout/flex/Flex.js +11 -0
- package/dist/components/layout/flex/Flex.js.map +1 -0
- package/dist/components/layout/flex/constants/index.cjs +2 -0
- package/dist/components/layout/flex/constants/index.cjs.map +1 -0
- package/dist/components/layout/flex/constants/index.js +5 -0
- package/dist/components/layout/flex/constants/index.js.map +1 -0
- package/dist/components/layout/flex/utils/getFlexElementProps.utils.cjs +2 -0
- package/dist/components/layout/flex/utils/getFlexElementProps.utils.cjs.map +1 -0
- package/dist/components/layout/flex/utils/getFlexElementProps.utils.js +9 -0
- package/dist/components/layout/flex/utils/getFlexElementProps.utils.js.map +1 -0
- package/dist/components/layout/grid/Grid.cjs +2 -0
- package/dist/components/layout/grid/Grid.cjs.map +1 -0
- package/dist/components/layout/grid/Grid.js +11 -0
- package/dist/components/layout/grid/Grid.js.map +1 -0
- package/dist/components/layout/grid/constants/index.cjs +2 -0
- package/dist/components/layout/grid/constants/index.cjs.map +1 -0
- package/dist/components/layout/grid/constants/index.js +5 -0
- package/dist/components/layout/grid/constants/index.js.map +1 -0
- package/dist/components/layout/grid/utils/getGridElementProps.utils.cjs +2 -0
- package/dist/components/layout/grid/utils/getGridElementProps.utils.cjs.map +1 -0
- package/dist/components/layout/grid/utils/getGridElementProps.utils.js +9 -0
- package/dist/components/layout/grid/utils/getGridElementProps.utils.js.map +1 -0
- package/dist/components/layout/separator/Separator.cjs +2 -0
- package/dist/components/layout/separator/Separator.cjs.map +1 -0
- package/dist/components/layout/separator/Separator.css.cjs +2 -0
- package/dist/components/layout/separator/Separator.css.cjs.map +1 -0
- package/dist/components/layout/separator/Separator.css.js +32 -0
- package/dist/components/layout/separator/Separator.css.js.map +1 -0
- package/dist/components/layout/separator/Separator.js +10 -0
- package/dist/components/layout/separator/Separator.js.map +1 -0
- package/dist/components/layout/separator/utils/getSeparatorElementProps.utils.cjs +2 -0
- package/dist/components/layout/separator/utils/getSeparatorElementProps.utils.cjs.map +1 -0
- package/dist/components/layout/separator/utils/getSeparatorElementProps.utils.js +22 -0
- package/dist/components/layout/separator/utils/getSeparatorElementProps.utils.js.map +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +1427 -0
- package/dist/index.d.ts +1427 -0
- package/dist/index.js +8 -0
- package/dist/styles.css +2 -0
- package/package.json +89 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../../_common/components/slot/Slot.js";
|
|
2
|
+
import { getTypographyElementProps as t } from "./utils/getTypographyElementProps.utils.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
// src/components/foundation/typography/Typography.tsx
|
|
5
|
+
var r = (r) => {
|
|
6
|
+
let i = r.asChild === !0 ? void 0 : r.as ?? "p";
|
|
7
|
+
return /* @__PURE__ */ n(i ?? e, { ...t(r, i) });
|
|
8
|
+
};
|
|
9
|
+
export { r as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Typography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography.js","names":["Slot","Typography","tag","props","getTypographyElementProps"],"sources":["../../../../src/components/foundation/typography/Typography.tsx"],"sourcesContent":["import type { ElementType, ReactElement } from 'react';\n\nimport { Slot } from '@primitives/components/_common/components/slot';\nimport type {\n TypographyAsChildProps,\n TypographyProps,\n TypographyTag,\n} from '@primitives/components/foundation/typography/types';\nimport { getTypographyElementProps } from '@primitives/components/foundation/typography/utils/getTypographyElementProps.utils';\n\n/**\n * Text primitive: renders any text tag, a `p` by default, with the default\n * style of that tag, built from the theme tokens. The style follows the tag:\n * there is no variant. Style props override it: text and font props, the\n * shared spacing, sizing and placement props, and `color`. The sizing props\n * and `color` accept any CSS value, a sizing number being a length in\n * pixels, as in `style`. Their classes sit in a later cascade layer than the\n * tag styles, so a prop always prevails. Style props never reach the DOM,\n * and the consumer's `className` and `style` are merged with the generated\n * ones, the consumer's `style` prevailing.\n * Every other prop (attributes, events, `ref`) is typed after the tag and\n * forwarded to the element.\n *\n * `maxLines` truncates the text after a number of lines, with an ellipsis.\n * It turns the element into a block, so an inline tag such as `span` or `a`\n * leaves the flow of its sentence; inside a flex or grid container the text\n * shrinks with its track without further setup. `1` keeps the text on a\n * single line, aligned to the start whatever `textAlign`, and cuts it where\n * it overflows, descenders and accents left uncut; `2` to `6` clamp it after\n * that many lines, a word longer than the line breaking anywhere.\n * Truncation is only visual: the full text stays available to assistive\n * technologies, and sighted users need another way to read it.\n *\n * With `asChild`, nothing is rendered of its own: the single child is, with\n * the classes, styles, other props and `ref` merged onto it, for instance\n * to style a router link. No tag style applies then, since the child sets\n * the element: only the style props do.\n *\n * @param props Style props, `as` or `asChild`, and the native props of the\n * rendered tag.\n * @returns The styled text element.\n * @throws {Error} With `asChild`, when the children are not a single\n * element.\n */\nconst Typography = <Tag extends TypographyTag = 'p'>(\n props: TypographyProps<Tag> | TypographyAsChildProps,\n): ReactElement => {\n const tag: TypographyTag | undefined =\n props.asChild === true ? undefined : (props.as ?? 'p');\n const Element: ElementType = tag ?? Slot;\n\n return <Element {...getTypographyElementProps(props, tag)} />;\n};\n\nexport default Typography;\n"],"mappings":";;;;AA4CA,IAAMC,KACF,MACe;CACf,IAAMC,IACFC,EAAM,YAAY,KAAO,KAAA,IAAaA,EAAM,MAAM;CAGtD,OAAO,kBAFsBD,KAAOF,GAE7B,EAAS,GAAII,EAA0BD,GAAOD,CAAG,EAAI,CAAA;AAChE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../_common/styles/style-props/styleProps.css.cjs"),t=require("../../../_common/utils/style-props/createStyleSet.utils.cjs"),n=require("../../../_common/utils/style-props/getElementProps.utils.cjs"),r=require("../Typography.css.cjs");var i=t.createStyleSet([e.stylePropsStyles.classTable,r.typographyStyles.classTable]),a=(e,t)=>n.getElementProps(e,i,t===void 0?``:r.typographyStyles.tags[t]);exports.getTypographyElementProps=a;
|
|
2
|
+
//# sourceMappingURL=getTypographyElementProps.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTypographyElementProps.utils.cjs","names":["createStyleSet","stylePropsStyles","typographyStyles","getElementProps","require_styleProps_css","require_createStyleSet_utils","require_getElementProps_utils","require_Typography_css","typographyStyleSet","getTypographyElementProps","props","tag"],"sources":["../../../../../src/components/foundation/typography/utils/getTypographyElementProps.utils.ts"],"sourcesContent":["import { stylePropsStyles } from '@primitives/components/_common/styles/style-props/styleProps.css';\nimport type { StyledProps } from '@primitives/components/_common/types';\nimport { createStyleSet } from '@primitives/components/_common/utils/style-props/createStyleSet.utils';\nimport { getElementProps } from '@primitives/components/_common/utils/style-props/getElementProps.utils';\nimport type {\n TypographyOwnProps,\n TypographyTag,\n} from '@primitives/components/foundation/typography/types';\nimport { typographyStyles } from '@primitives/components/foundation/typography/Typography.css';\n\nconst typographyStyleSet = createStyleSet([\n stylePropsStyles.classTable,\n typographyStyles.classTable,\n]);\n\n/**\n * Turns the props of a `Typography` into the props of its element: the\n * default class of the tag comes first, style props become classes and a\n * color variable that override it, `as` is dropped and every other prop is\n * forwarded as is.\n *\n * @param props Props received by the `Typography`, native ones included.\n * @param tag Tag being rendered, whose default style applies; `undefined`\n * with `asChild`, where no tag style applies.\n * @returns The props to spread on the rendered element.\n */\nexport const getTypographyElementProps = (\n props: TypographyOwnProps & StyledProps,\n tag: TypographyTag | undefined,\n): Record<string, unknown> =>\n getElementProps(\n props,\n typographyStyleSet,\n tag === undefined ? '' : typographyStyles.tags[tag],\n );\n"],"mappings":"A,gQAUA,IAAMQ,EAAqBR,EAAAA,eAAe,CACtCC,EAAAA,iBAAiB,WACjBC,EAAAA,iBAAiB,UACrB,CAAC,EAaYO,GACT,EACA,IAEAN,EAAAA,gBACIO,EACAF,EACAG,IAAQ,IAAA,GAAY,GAAKT,EAAAA,iBAAiB,KAAKS,EACnD,E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { stylePropsStyles as e } from "../../../_common/styles/style-props/styleProps.css.js";
|
|
2
|
+
import { createStyleSet as t } from "../../../_common/utils/style-props/createStyleSet.utils.js";
|
|
3
|
+
import { getElementProps as n } from "../../../_common/utils/style-props/getElementProps.utils.js";
|
|
4
|
+
import { typographyStyles as r } from "../Typography.css.js";
|
|
5
|
+
// src/components/foundation/typography/utils/getTypographyElementProps.utils.ts
|
|
6
|
+
var i = t([e.classTable, r.classTable]), a = (e, t) => n(e, i, t === void 0 ? "" : r.tags[t]);
|
|
7
|
+
export { a as getTypographyElementProps };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=getTypographyElementProps.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTypographyElementProps.utils.js","names":["typographyStyleSet","createStyleSet","stylePropsStyles","typographyStyles","getTypographyElementProps","getElementProps","props","tag"],"sources":["../../../../../src/components/foundation/typography/utils/getTypographyElementProps.utils.ts"],"sourcesContent":["import { stylePropsStyles } from '@primitives/components/_common/styles/style-props/styleProps.css';\nimport type { StyledProps } from '@primitives/components/_common/types';\nimport { createStyleSet } from '@primitives/components/_common/utils/style-props/createStyleSet.utils';\nimport { getElementProps } from '@primitives/components/_common/utils/style-props/getElementProps.utils';\nimport type {\n TypographyOwnProps,\n TypographyTag,\n} from '@primitives/components/foundation/typography/types';\nimport { typographyStyles } from '@primitives/components/foundation/typography/Typography.css';\n\nconst typographyStyleSet = createStyleSet([\n stylePropsStyles.classTable,\n typographyStyles.classTable,\n]);\n\n/**\n * Turns the props of a `Typography` into the props of its element: the\n * default class of the tag comes first, style props become classes and a\n * color variable that override it, `as` is dropped and every other prop is\n * forwarded as is.\n *\n * @param props Props received by the `Typography`, native ones included.\n * @param tag Tag being rendered, whose default style applies; `undefined`\n * with `asChild`, where no tag style applies.\n * @returns The props to spread on the rendered element.\n */\nexport const getTypographyElementProps = (\n props: TypographyOwnProps & StyledProps,\n tag: TypographyTag | undefined,\n): Record<string, unknown> =>\n getElementProps(\n props,\n typographyStyleSet,\n tag === undefined ? '' : typographyStyles.tags[tag],\n );\n"],"mappings":";;;;;AAUA,IAAMA,IAAqBC,EAAe,CACtCC,EAAiB,YACjBC,EAAiB,UACrB,CAAC,GAaYC,KACT,GACA,MAEAC,EACIC,GACAN,GACAO,MAAQ,KAAA,IAAY,KAAKJ,EAAiB,KAAKI,EACnD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../_common/components/slot/Slot.cjs"),t=require("./utils/getBoxElementProps.utils.cjs");let n=require("react/jsx-runtime");var r=r=>{let i=r.asChild===!0?e.default:r.as??`div`;return(0,n.jsx)(i,{...t.getBoxElementProps(r)})};exports.default=r;
|
|
2
|
+
//# sourceMappingURL=Box.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.cjs","names":["Slot","getBoxElementProps","require_Slot","require_getBoxElementProps_utils","react_jsx_runtime","Box","Element","props"],"sources":["../../../../src/components/layout/box/Box.tsx"],"sourcesContent":["import type { ElementType, ReactElement } from 'react';\n\nimport { Slot } from '@primitives/components/_common/components/slot';\nimport type {\n BoxAsChildProps,\n BoxProps,\n BoxTag,\n} from '@primitives/components/layout/box/types';\nimport { getBoxElementProps } from '@primitives/components/layout/box/utils/getBoxElementProps.utils';\n\n/**\n * Base layout primitive: renders any HTML tag, a `div` by default, styled\n * through props. Token style props (spacing, flex, grid, position, borders,\n * shadow...) resolve to atomic classes generated at build time. The sizing\n * props (`width`, `height` and their `min` and `max` bounds) and `color`,\n * `backgroundColor` and `borderColor` accept any CSS value, carried by a\n * private CSS variable set inline: a number is a length in pixels, as in\n * `style`. Style props never reach the DOM, and the consumer's `className`\n * and `style` are merged with the generated ones, the consumer's `style`\n * prevailing.\n * Every other prop (attributes, events, `ref`) is typed after the tag and\n * forwarded to the element.\n *\n * With `asChild`, nothing is rendered of its own: the single child is,\n * with the classes, styles, other props and `ref` merged onto it (see\n * `AsChildProps`), for instance to style a router link.\n *\n * @param props Style props, `as` or `asChild`, and the native props of the\n * rendered tag.\n * @returns The styled element.\n * @throws {Error} With `asChild`, when the children are not a single\n * element.\n */\nconst Box = <Tag extends BoxTag = 'div'>(\n props: BoxProps<Tag> | BoxAsChildProps,\n): ReactElement => {\n const Element: ElementType =\n props.asChild === true ? Slot : (props.as ?? 'div');\n\n return <Element {...getBoxElementProps(props)} />;\n};\n\nexport default Box;\n"],"mappings":"A,+IAiCA,IAAMK,EACF,GACe,CACf,IAAMC,EACFC,EAAM,UAAY,GAAOP,EAAAA,QAAQO,EAAM,IAAM,MAEjD,OAAO,EAAAH,EAAA,IAAA,CAACE,EAAD,CAAS,GAAIL,EAAAA,mBAAmBM,CAAK,CAAI,CAAA,CACpD,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* empty css */;/* empty css */var e={classTable:{prefix:`p5mv5e`,suffixes:{boxSizing:{"border-box":`0`,"content-box":`1`},visibility:{visible:`2`,hidden:`3`},position:{static:`4`,relative:`5`,absolute:`6`,fixed:`7`,sticky:`8`},top:{0:`9`,1:`a`,2:`b`,4:`c`,6:`d`,8:`e`,10:`f`,12:`g`,14:`h`,16:`i`,18:`j`,20:`k`,24:`l`,28:`m`,32:`n`,36:`o`,40:`p`,44:`q`,48:`r`,56:`s`,64:`t`,80:`u`,96:`v`,112:`w`,128:`x`,"50%":`y`,"100%":`z`,auto:`10`},right:{0:`11`,1:`12`,2:`13`,4:`14`,6:`15`,8:`16`,10:`17`,12:`18`,14:`19`,16:`1a`,18:`1b`,20:`1c`,24:`1d`,28:`1e`,32:`1f`,36:`1g`,40:`1h`,44:`1i`,48:`1j`,56:`1k`,64:`1l`,80:`1m`,96:`1n`,112:`1o`,128:`1p`,"50%":`1q`,"100%":`1r`,auto:`1s`},bottom:{0:`1t`,1:`1u`,2:`1v`,4:`1w`,6:`1x`,8:`1y`,10:`1z`,12:`20`,14:`21`,16:`22`,18:`23`,20:`24`,24:`25`,28:`26`,32:`27`,36:`28`,40:`29`,44:`2a`,48:`2b`,56:`2c`,64:`2d`,80:`2e`,96:`2f`,112:`2g`,128:`2h`,"50%":`2i`,"100%":`2j`,auto:`2k`},left:{0:`2l`,1:`2m`,2:`2n`,4:`2o`,6:`2p`,8:`2q`,10:`2r`,12:`2s`,14:`2t`,16:`2u`,18:`2v`,20:`2w`,24:`2x`,28:`2y`,32:`2z`,36:`30`,40:`31`,44:`32`,48:`33`,56:`34`,64:`35`,80:`36`,96:`37`,112:`38`,128:`39`,"50%":`3a`,"100%":`3b`,auto:`3c`},zIndex:{hide:`3d`,base:`3e`,docked:`3f`,sticky:`3g`,banner:`3h`,overlay:`3i`,modal:`3j`,dropdown:`3k`,popover:`3l`,toast:`3m`,tooltip:`3n`,auto:`3o`},rowGap:{0:`3p`,1:`3q`,2:`3r`,4:`3s`,6:`3t`,8:`3u`,10:`3v`,12:`3w`,14:`3x`,16:`3y`,18:`3z`,20:`40`,24:`41`,28:`42`,32:`43`,36:`44`,40:`45`,44:`46`,48:`47`,56:`48`,64:`49`,80:`4a`,96:`4b`,112:`4c`,128:`4d`},columnGap:{0:`4e`,1:`4f`,2:`4g`,4:`4h`,6:`4i`,8:`4j`,10:`4k`,12:`4l`,14:`4m`,16:`4n`,18:`4o`,20:`4p`,24:`4q`,28:`4r`,32:`4s`,36:`4t`,40:`4u`,44:`4v`,48:`4w`,56:`4x`,64:`4y`,80:`4z`,96:`50`,112:`51`,128:`52`},flexDirection:{row:`53`,"row-reverse":`54`,column:`55`,"column-reverse":`56`},flexWrap:{nowrap:`57`,wrap:`58`,"wrap-reverse":`59`},alignItems:{stretch:`5a`,"flex-start":`5b`,center:`5c`,"flex-end":`5d`,baseline:`5e`},alignContent:{"flex-start":`5f`,center:`5g`,"flex-end":`5h`,"space-between":`5i`,"space-around":`5j`,"space-evenly":`5k`,stretch:`5l`},justifyContent:{"flex-start":`5m`,center:`5n`,"flex-end":`5o`,"space-between":`5p`,"space-around":`5q`,"space-evenly":`5r`,stretch:`5s`},justifyItems:{stretch:`5t`,start:`5u`,center:`5v`,end:`5w`},gridTemplateColumns:{1:`5x`,2:`5y`,3:`5z`,4:`60`,5:`61`,6:`62`,7:`63`,8:`64`,9:`65`,10:`66`,11:`67`,12:`68`},gridTemplateRows:{1:`69`,2:`6a`,3:`6b`,4:`6c`,5:`6d`,6:`6e`},gridAutoFlow:{row:`6f`,column:`6g`,"row dense":`6h`,"column dense":`6i`},gridAutoColumns:{auto:`6j`,"min-content":`6k`,"max-content":`6l`,"1fr":`6m`},gridAutoRows:{auto:`6n`,"min-content":`6o`,"max-content":`6p`,"1fr":`6q`},borderStyle:{none:`6r`,solid:`6s`,dashed:`6t`,dotted:`6u`},borderTopWidth:{0:`6v`,1:`6w`,2:`6x`,4:`6y`},borderRightWidth:{0:`6z`,1:`70`,2:`71`,4:`72`},borderBottomWidth:{0:`73`,1:`74`,2:`75`,4:`76`},borderLeftWidth:{0:`77`,1:`78`,2:`79`,4:`7a`},borderTopLeftRadius:{none:`7b`,xs:`7c`,sm:`7d`,md:`7e`,lg:`7f`,xl:`7g`,"2xl":`7h`,"3xl":`7i`,full:`7j`},borderTopRightRadius:{none:`7k`,xs:`7l`,sm:`7m`,md:`7n`,lg:`7o`,xl:`7p`,"2xl":`7q`,"3xl":`7r`,full:`7s`},borderBottomRightRadius:{none:`7t`,xs:`7u`,sm:`7v`,md:`7w`,lg:`7x`,xl:`7y`,"2xl":`7z`,"3xl":`80`,full:`81`},borderBottomLeftRadius:{none:`82`,xs:`83`,sm:`84`,md:`85`,lg:`86`,xl:`87`,"2xl":`88`,"3xl":`89`,full:`8a`},boxShadow:{none:`8b`,low:`8c`,raised:`8d`,floating:`8e`,overlay:`8f`,modal:`8g`},cursor:{auto:`8h`,default:`8i`,pointer:`8j`,text:`8k`,move:`8l`,grab:`8m`,grabbing:`8n`,"not-allowed":`8o`,wait:`8p`,progress:`8q`,help:`8r`},pointerEvents:{auto:`8s`,none:`8t`}},shorthands:{inset:[[`top`,`insetY`],[`right`,`insetX`],[`bottom`,`insetY`],[`left`,`insetX`]],insetX:[[`left`],[`right`]],insetY:[[`top`],[`bottom`]],gap:[[`rowGap`],[`columnGap`]],borderWidth:[[`borderTopWidth`],[`borderRightWidth`],[`borderBottomWidth`],[`borderLeftWidth`]],borderRadius:[[`borderTopLeftRadius`],[`borderTopRightRadius`],[`borderBottomRightRadius`],[`borderBottomLeftRadius`]]}}};exports.boxStyles=e;
|
|
2
|
+
//# sourceMappingURL=Box.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.css.cjs","names":["boxStyles","\"static\"","\"default\""],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
// src/components/layout/box/Box.css.ts
|
|
4
|
+
var e = { classTable: {
|
|
5
|
+
prefix: "p5mv5e",
|
|
6
|
+
suffixes: {
|
|
7
|
+
boxSizing: {
|
|
8
|
+
"border-box": "0",
|
|
9
|
+
"content-box": "1"
|
|
10
|
+
},
|
|
11
|
+
visibility: {
|
|
12
|
+
visible: "2",
|
|
13
|
+
hidden: "3"
|
|
14
|
+
},
|
|
15
|
+
position: {
|
|
16
|
+
static: "4",
|
|
17
|
+
relative: "5",
|
|
18
|
+
absolute: "6",
|
|
19
|
+
fixed: "7",
|
|
20
|
+
sticky: "8"
|
|
21
|
+
},
|
|
22
|
+
top: {
|
|
23
|
+
0: "9",
|
|
24
|
+
1: "a",
|
|
25
|
+
2: "b",
|
|
26
|
+
4: "c",
|
|
27
|
+
6: "d",
|
|
28
|
+
8: "e",
|
|
29
|
+
10: "f",
|
|
30
|
+
12: "g",
|
|
31
|
+
14: "h",
|
|
32
|
+
16: "i",
|
|
33
|
+
18: "j",
|
|
34
|
+
20: "k",
|
|
35
|
+
24: "l",
|
|
36
|
+
28: "m",
|
|
37
|
+
32: "n",
|
|
38
|
+
36: "o",
|
|
39
|
+
40: "p",
|
|
40
|
+
44: "q",
|
|
41
|
+
48: "r",
|
|
42
|
+
56: "s",
|
|
43
|
+
64: "t",
|
|
44
|
+
80: "u",
|
|
45
|
+
96: "v",
|
|
46
|
+
112: "w",
|
|
47
|
+
128: "x",
|
|
48
|
+
"50%": "y",
|
|
49
|
+
"100%": "z",
|
|
50
|
+
auto: "10"
|
|
51
|
+
},
|
|
52
|
+
right: {
|
|
53
|
+
0: "11",
|
|
54
|
+
1: "12",
|
|
55
|
+
2: "13",
|
|
56
|
+
4: "14",
|
|
57
|
+
6: "15",
|
|
58
|
+
8: "16",
|
|
59
|
+
10: "17",
|
|
60
|
+
12: "18",
|
|
61
|
+
14: "19",
|
|
62
|
+
16: "1a",
|
|
63
|
+
18: "1b",
|
|
64
|
+
20: "1c",
|
|
65
|
+
24: "1d",
|
|
66
|
+
28: "1e",
|
|
67
|
+
32: "1f",
|
|
68
|
+
36: "1g",
|
|
69
|
+
40: "1h",
|
|
70
|
+
44: "1i",
|
|
71
|
+
48: "1j",
|
|
72
|
+
56: "1k",
|
|
73
|
+
64: "1l",
|
|
74
|
+
80: "1m",
|
|
75
|
+
96: "1n",
|
|
76
|
+
112: "1o",
|
|
77
|
+
128: "1p",
|
|
78
|
+
"50%": "1q",
|
|
79
|
+
"100%": "1r",
|
|
80
|
+
auto: "1s"
|
|
81
|
+
},
|
|
82
|
+
bottom: {
|
|
83
|
+
0: "1t",
|
|
84
|
+
1: "1u",
|
|
85
|
+
2: "1v",
|
|
86
|
+
4: "1w",
|
|
87
|
+
6: "1x",
|
|
88
|
+
8: "1y",
|
|
89
|
+
10: "1z",
|
|
90
|
+
12: "20",
|
|
91
|
+
14: "21",
|
|
92
|
+
16: "22",
|
|
93
|
+
18: "23",
|
|
94
|
+
20: "24",
|
|
95
|
+
24: "25",
|
|
96
|
+
28: "26",
|
|
97
|
+
32: "27",
|
|
98
|
+
36: "28",
|
|
99
|
+
40: "29",
|
|
100
|
+
44: "2a",
|
|
101
|
+
48: "2b",
|
|
102
|
+
56: "2c",
|
|
103
|
+
64: "2d",
|
|
104
|
+
80: "2e",
|
|
105
|
+
96: "2f",
|
|
106
|
+
112: "2g",
|
|
107
|
+
128: "2h",
|
|
108
|
+
"50%": "2i",
|
|
109
|
+
"100%": "2j",
|
|
110
|
+
auto: "2k"
|
|
111
|
+
},
|
|
112
|
+
left: {
|
|
113
|
+
0: "2l",
|
|
114
|
+
1: "2m",
|
|
115
|
+
2: "2n",
|
|
116
|
+
4: "2o",
|
|
117
|
+
6: "2p",
|
|
118
|
+
8: "2q",
|
|
119
|
+
10: "2r",
|
|
120
|
+
12: "2s",
|
|
121
|
+
14: "2t",
|
|
122
|
+
16: "2u",
|
|
123
|
+
18: "2v",
|
|
124
|
+
20: "2w",
|
|
125
|
+
24: "2x",
|
|
126
|
+
28: "2y",
|
|
127
|
+
32: "2z",
|
|
128
|
+
36: "30",
|
|
129
|
+
40: "31",
|
|
130
|
+
44: "32",
|
|
131
|
+
48: "33",
|
|
132
|
+
56: "34",
|
|
133
|
+
64: "35",
|
|
134
|
+
80: "36",
|
|
135
|
+
96: "37",
|
|
136
|
+
112: "38",
|
|
137
|
+
128: "39",
|
|
138
|
+
"50%": "3a",
|
|
139
|
+
"100%": "3b",
|
|
140
|
+
auto: "3c"
|
|
141
|
+
},
|
|
142
|
+
zIndex: {
|
|
143
|
+
hide: "3d",
|
|
144
|
+
base: "3e",
|
|
145
|
+
docked: "3f",
|
|
146
|
+
sticky: "3g",
|
|
147
|
+
banner: "3h",
|
|
148
|
+
overlay: "3i",
|
|
149
|
+
modal: "3j",
|
|
150
|
+
dropdown: "3k",
|
|
151
|
+
popover: "3l",
|
|
152
|
+
toast: "3m",
|
|
153
|
+
tooltip: "3n",
|
|
154
|
+
auto: "3o"
|
|
155
|
+
},
|
|
156
|
+
rowGap: {
|
|
157
|
+
0: "3p",
|
|
158
|
+
1: "3q",
|
|
159
|
+
2: "3r",
|
|
160
|
+
4: "3s",
|
|
161
|
+
6: "3t",
|
|
162
|
+
8: "3u",
|
|
163
|
+
10: "3v",
|
|
164
|
+
12: "3w",
|
|
165
|
+
14: "3x",
|
|
166
|
+
16: "3y",
|
|
167
|
+
18: "3z",
|
|
168
|
+
20: "40",
|
|
169
|
+
24: "41",
|
|
170
|
+
28: "42",
|
|
171
|
+
32: "43",
|
|
172
|
+
36: "44",
|
|
173
|
+
40: "45",
|
|
174
|
+
44: "46",
|
|
175
|
+
48: "47",
|
|
176
|
+
56: "48",
|
|
177
|
+
64: "49",
|
|
178
|
+
80: "4a",
|
|
179
|
+
96: "4b",
|
|
180
|
+
112: "4c",
|
|
181
|
+
128: "4d"
|
|
182
|
+
},
|
|
183
|
+
columnGap: {
|
|
184
|
+
0: "4e",
|
|
185
|
+
1: "4f",
|
|
186
|
+
2: "4g",
|
|
187
|
+
4: "4h",
|
|
188
|
+
6: "4i",
|
|
189
|
+
8: "4j",
|
|
190
|
+
10: "4k",
|
|
191
|
+
12: "4l",
|
|
192
|
+
14: "4m",
|
|
193
|
+
16: "4n",
|
|
194
|
+
18: "4o",
|
|
195
|
+
20: "4p",
|
|
196
|
+
24: "4q",
|
|
197
|
+
28: "4r",
|
|
198
|
+
32: "4s",
|
|
199
|
+
36: "4t",
|
|
200
|
+
40: "4u",
|
|
201
|
+
44: "4v",
|
|
202
|
+
48: "4w",
|
|
203
|
+
56: "4x",
|
|
204
|
+
64: "4y",
|
|
205
|
+
80: "4z",
|
|
206
|
+
96: "50",
|
|
207
|
+
112: "51",
|
|
208
|
+
128: "52"
|
|
209
|
+
},
|
|
210
|
+
flexDirection: {
|
|
211
|
+
row: "53",
|
|
212
|
+
"row-reverse": "54",
|
|
213
|
+
column: "55",
|
|
214
|
+
"column-reverse": "56"
|
|
215
|
+
},
|
|
216
|
+
flexWrap: {
|
|
217
|
+
nowrap: "57",
|
|
218
|
+
wrap: "58",
|
|
219
|
+
"wrap-reverse": "59"
|
|
220
|
+
},
|
|
221
|
+
alignItems: {
|
|
222
|
+
stretch: "5a",
|
|
223
|
+
"flex-start": "5b",
|
|
224
|
+
center: "5c",
|
|
225
|
+
"flex-end": "5d",
|
|
226
|
+
baseline: "5e"
|
|
227
|
+
},
|
|
228
|
+
alignContent: {
|
|
229
|
+
"flex-start": "5f",
|
|
230
|
+
center: "5g",
|
|
231
|
+
"flex-end": "5h",
|
|
232
|
+
"space-between": "5i",
|
|
233
|
+
"space-around": "5j",
|
|
234
|
+
"space-evenly": "5k",
|
|
235
|
+
stretch: "5l"
|
|
236
|
+
},
|
|
237
|
+
justifyContent: {
|
|
238
|
+
"flex-start": "5m",
|
|
239
|
+
center: "5n",
|
|
240
|
+
"flex-end": "5o",
|
|
241
|
+
"space-between": "5p",
|
|
242
|
+
"space-around": "5q",
|
|
243
|
+
"space-evenly": "5r",
|
|
244
|
+
stretch: "5s"
|
|
245
|
+
},
|
|
246
|
+
justifyItems: {
|
|
247
|
+
stretch: "5t",
|
|
248
|
+
start: "5u",
|
|
249
|
+
center: "5v",
|
|
250
|
+
end: "5w"
|
|
251
|
+
},
|
|
252
|
+
gridTemplateColumns: {
|
|
253
|
+
1: "5x",
|
|
254
|
+
2: "5y",
|
|
255
|
+
3: "5z",
|
|
256
|
+
4: "60",
|
|
257
|
+
5: "61",
|
|
258
|
+
6: "62",
|
|
259
|
+
7: "63",
|
|
260
|
+
8: "64",
|
|
261
|
+
9: "65",
|
|
262
|
+
10: "66",
|
|
263
|
+
11: "67",
|
|
264
|
+
12: "68"
|
|
265
|
+
},
|
|
266
|
+
gridTemplateRows: {
|
|
267
|
+
1: "69",
|
|
268
|
+
2: "6a",
|
|
269
|
+
3: "6b",
|
|
270
|
+
4: "6c",
|
|
271
|
+
5: "6d",
|
|
272
|
+
6: "6e"
|
|
273
|
+
},
|
|
274
|
+
gridAutoFlow: {
|
|
275
|
+
row: "6f",
|
|
276
|
+
column: "6g",
|
|
277
|
+
"row dense": "6h",
|
|
278
|
+
"column dense": "6i"
|
|
279
|
+
},
|
|
280
|
+
gridAutoColumns: {
|
|
281
|
+
auto: "6j",
|
|
282
|
+
"min-content": "6k",
|
|
283
|
+
"max-content": "6l",
|
|
284
|
+
"1fr": "6m"
|
|
285
|
+
},
|
|
286
|
+
gridAutoRows: {
|
|
287
|
+
auto: "6n",
|
|
288
|
+
"min-content": "6o",
|
|
289
|
+
"max-content": "6p",
|
|
290
|
+
"1fr": "6q"
|
|
291
|
+
},
|
|
292
|
+
borderStyle: {
|
|
293
|
+
none: "6r",
|
|
294
|
+
solid: "6s",
|
|
295
|
+
dashed: "6t",
|
|
296
|
+
dotted: "6u"
|
|
297
|
+
},
|
|
298
|
+
borderTopWidth: {
|
|
299
|
+
0: "6v",
|
|
300
|
+
1: "6w",
|
|
301
|
+
2: "6x",
|
|
302
|
+
4: "6y"
|
|
303
|
+
},
|
|
304
|
+
borderRightWidth: {
|
|
305
|
+
0: "6z",
|
|
306
|
+
1: "70",
|
|
307
|
+
2: "71",
|
|
308
|
+
4: "72"
|
|
309
|
+
},
|
|
310
|
+
borderBottomWidth: {
|
|
311
|
+
0: "73",
|
|
312
|
+
1: "74",
|
|
313
|
+
2: "75",
|
|
314
|
+
4: "76"
|
|
315
|
+
},
|
|
316
|
+
borderLeftWidth: {
|
|
317
|
+
0: "77",
|
|
318
|
+
1: "78",
|
|
319
|
+
2: "79",
|
|
320
|
+
4: "7a"
|
|
321
|
+
},
|
|
322
|
+
borderTopLeftRadius: {
|
|
323
|
+
none: "7b",
|
|
324
|
+
xs: "7c",
|
|
325
|
+
sm: "7d",
|
|
326
|
+
md: "7e",
|
|
327
|
+
lg: "7f",
|
|
328
|
+
xl: "7g",
|
|
329
|
+
"2xl": "7h",
|
|
330
|
+
"3xl": "7i",
|
|
331
|
+
full: "7j"
|
|
332
|
+
},
|
|
333
|
+
borderTopRightRadius: {
|
|
334
|
+
none: "7k",
|
|
335
|
+
xs: "7l",
|
|
336
|
+
sm: "7m",
|
|
337
|
+
md: "7n",
|
|
338
|
+
lg: "7o",
|
|
339
|
+
xl: "7p",
|
|
340
|
+
"2xl": "7q",
|
|
341
|
+
"3xl": "7r",
|
|
342
|
+
full: "7s"
|
|
343
|
+
},
|
|
344
|
+
borderBottomRightRadius: {
|
|
345
|
+
none: "7t",
|
|
346
|
+
xs: "7u",
|
|
347
|
+
sm: "7v",
|
|
348
|
+
md: "7w",
|
|
349
|
+
lg: "7x",
|
|
350
|
+
xl: "7y",
|
|
351
|
+
"2xl": "7z",
|
|
352
|
+
"3xl": "80",
|
|
353
|
+
full: "81"
|
|
354
|
+
},
|
|
355
|
+
borderBottomLeftRadius: {
|
|
356
|
+
none: "82",
|
|
357
|
+
xs: "83",
|
|
358
|
+
sm: "84",
|
|
359
|
+
md: "85",
|
|
360
|
+
lg: "86",
|
|
361
|
+
xl: "87",
|
|
362
|
+
"2xl": "88",
|
|
363
|
+
"3xl": "89",
|
|
364
|
+
full: "8a"
|
|
365
|
+
},
|
|
366
|
+
boxShadow: {
|
|
367
|
+
none: "8b",
|
|
368
|
+
low: "8c",
|
|
369
|
+
raised: "8d",
|
|
370
|
+
floating: "8e",
|
|
371
|
+
overlay: "8f",
|
|
372
|
+
modal: "8g"
|
|
373
|
+
},
|
|
374
|
+
cursor: {
|
|
375
|
+
auto: "8h",
|
|
376
|
+
default: "8i",
|
|
377
|
+
pointer: "8j",
|
|
378
|
+
text: "8k",
|
|
379
|
+
move: "8l",
|
|
380
|
+
grab: "8m",
|
|
381
|
+
grabbing: "8n",
|
|
382
|
+
"not-allowed": "8o",
|
|
383
|
+
wait: "8p",
|
|
384
|
+
progress: "8q",
|
|
385
|
+
help: "8r"
|
|
386
|
+
},
|
|
387
|
+
pointerEvents: {
|
|
388
|
+
auto: "8s",
|
|
389
|
+
none: "8t"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
shorthands: {
|
|
393
|
+
inset: [
|
|
394
|
+
["top", "insetY"],
|
|
395
|
+
["right", "insetX"],
|
|
396
|
+
["bottom", "insetY"],
|
|
397
|
+
["left", "insetX"]
|
|
398
|
+
],
|
|
399
|
+
insetX: [["left"], ["right"]],
|
|
400
|
+
insetY: [["top"], ["bottom"]],
|
|
401
|
+
gap: [["rowGap"], ["columnGap"]],
|
|
402
|
+
borderWidth: [
|
|
403
|
+
["borderTopWidth"],
|
|
404
|
+
["borderRightWidth"],
|
|
405
|
+
["borderBottomWidth"],
|
|
406
|
+
["borderLeftWidth"]
|
|
407
|
+
],
|
|
408
|
+
borderRadius: [
|
|
409
|
+
["borderTopLeftRadius"],
|
|
410
|
+
["borderTopRightRadius"],
|
|
411
|
+
["borderBottomRightRadius"],
|
|
412
|
+
["borderBottomLeftRadius"]
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
} };
|
|
416
|
+
export { e as boxStyles };
|
|
417
|
+
|
|
418
|
+
//# sourceMappingURL=Box.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.css.js","names":["boxStyles","\"static\"","\"default\""],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../../_common/components/slot/Slot.js";
|
|
2
|
+
import { getBoxElementProps as t } from "./utils/getBoxElementProps.utils.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
// src/components/layout/box/Box.tsx
|
|
5
|
+
var r = (r) => {
|
|
6
|
+
let i = r.asChild === !0 ? e : r.as ?? "div";
|
|
7
|
+
return /* @__PURE__ */ n(i, { ...t(r) });
|
|
8
|
+
};
|
|
9
|
+
export { r as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.js","names":["Slot","Box","Element","props","getBoxElementProps"],"sources":["../../../../src/components/layout/box/Box.tsx"],"sourcesContent":["import type { ElementType, ReactElement } from 'react';\n\nimport { Slot } from '@primitives/components/_common/components/slot';\nimport type {\n BoxAsChildProps,\n BoxProps,\n BoxTag,\n} from '@primitives/components/layout/box/types';\nimport { getBoxElementProps } from '@primitives/components/layout/box/utils/getBoxElementProps.utils';\n\n/**\n * Base layout primitive: renders any HTML tag, a `div` by default, styled\n * through props. Token style props (spacing, flex, grid, position, borders,\n * shadow...) resolve to atomic classes generated at build time. The sizing\n * props (`width`, `height` and their `min` and `max` bounds) and `color`,\n * `backgroundColor` and `borderColor` accept any CSS value, carried by a\n * private CSS variable set inline: a number is a length in pixels, as in\n * `style`. Style props never reach the DOM, and the consumer's `className`\n * and `style` are merged with the generated ones, the consumer's `style`\n * prevailing.\n * Every other prop (attributes, events, `ref`) is typed after the tag and\n * forwarded to the element.\n *\n * With `asChild`, nothing is rendered of its own: the single child is,\n * with the classes, styles, other props and `ref` merged onto it (see\n * `AsChildProps`), for instance to style a router link.\n *\n * @param props Style props, `as` or `asChild`, and the native props of the\n * rendered tag.\n * @returns The styled element.\n * @throws {Error} With `asChild`, when the children are not a single\n * element.\n */\nconst Box = <Tag extends BoxTag = 'div'>(\n props: BoxProps<Tag> | BoxAsChildProps,\n): ReactElement => {\n const Element: ElementType =\n props.asChild === true ? Slot : (props.as ?? 'div');\n\n return <Element {...getBoxElementProps(props)} />;\n};\n\nexport default Box;\n"],"mappings":";;;;AAiCA,IAAMC,KACF,MACe;CACf,IAAMC,IACFC,EAAM,YAAY,KAAOH,IAAQG,EAAM,MAAM;CAEjD,OAAO,kBAACD,GAAD,EAAS,GAAIE,EAAmBD,CAAK,EAAI,CAAA;AACpD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../_common/styles/style-props/styleProps.css.cjs"),t=require("../../../_common/utils/style-props/createStyleSet.utils.cjs"),n=require("../../../_common/utils/style-props/getElementProps.utils.cjs"),r=require("../Box.css.cjs");var i=t.createStyleSet([e.stylePropsStyles.classTable,r.boxStyles.classTable]),a=(e,t=``)=>n.getElementProps(e,i,t);exports.getBoxElementProps=a;
|
|
2
|
+
//# sourceMappingURL=getBoxElementProps.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBoxElementProps.utils.cjs","names":["createStyleSet","stylePropsStyles","boxStyles","getElementProps","require_styleProps_css","require_createStyleSet_utils","require_getElementProps_utils","require_Box_css","boxStyleSet","getBoxElementProps","props","defaultClassName"],"sources":["../../../../../src/components/layout/box/utils/getBoxElementProps.utils.ts"],"sourcesContent":["import { stylePropsStyles } from '@primitives/components/_common/styles/style-props/styleProps.css';\nimport type { StyledProps } from '@primitives/components/_common/types';\nimport { createStyleSet } from '@primitives/components/_common/utils/style-props/createStyleSet.utils';\nimport { getElementProps } from '@primitives/components/_common/utils/style-props/getElementProps.utils';\nimport { boxStyles } from '@primitives/components/layout/box/Box.css';\nimport type { BoxOwnProps } from '@primitives/components/layout/box/types';\n\nconst boxStyleSet = createStyleSet([\n stylePropsStyles.classTable,\n boxStyles.classTable,\n]);\n\n/**\n * Turns the props of a `Box`, or of a component derived from it, into the\n * props of its element: style props become classes, sizing and color props\n * also variables set inline, `as` is dropped and every other prop is\n * forwarded as is.\n *\n * @param props Props received by the component, native ones included.\n * @param defaultClassName Class of a default the props do not override,\n * placed first; none when omitted.\n * @returns The props to spread on the rendered element.\n */\nexport const getBoxElementProps = (\n props: BoxOwnProps & StyledProps,\n defaultClassName = '',\n): Record<string, unknown> =>\n getElementProps(props, boxStyleSet, defaultClassName);\n"],"mappings":"A,yPAOA,IAAMQ,EAAcR,EAAAA,eAAe,CAC/BC,EAAAA,iBAAiB,WACjBC,EAAAA,UAAU,UACd,CAAC,EAaYO,GACT,EACA,EAAmB,KAEnBN,EAAAA,gBAAgBO,EAAOF,EAAaG,CAAgB,E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { stylePropsStyles as e } from "../../../_common/styles/style-props/styleProps.css.js";
|
|
2
|
+
import { createStyleSet as t } from "../../../_common/utils/style-props/createStyleSet.utils.js";
|
|
3
|
+
import { getElementProps as n } from "../../../_common/utils/style-props/getElementProps.utils.js";
|
|
4
|
+
import { boxStyles as r } from "../Box.css.js";
|
|
5
|
+
// src/components/layout/box/utils/getBoxElementProps.utils.ts
|
|
6
|
+
var i = t([e.classTable, r.classTable]), a = (e, t = "") => n(e, i, t);
|
|
7
|
+
export { a as getBoxElementProps };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=getBoxElementProps.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBoxElementProps.utils.js","names":["boxStyleSet","createStyleSet","stylePropsStyles","boxStyles","getBoxElementProps","getElementProps","props","defaultClassName"],"sources":["../../../../../src/components/layout/box/utils/getBoxElementProps.utils.ts"],"sourcesContent":["import { stylePropsStyles } from '@primitives/components/_common/styles/style-props/styleProps.css';\nimport type { StyledProps } from '@primitives/components/_common/types';\nimport { createStyleSet } from '@primitives/components/_common/utils/style-props/createStyleSet.utils';\nimport { getElementProps } from '@primitives/components/_common/utils/style-props/getElementProps.utils';\nimport { boxStyles } from '@primitives/components/layout/box/Box.css';\nimport type { BoxOwnProps } from '@primitives/components/layout/box/types';\n\nconst boxStyleSet = createStyleSet([\n stylePropsStyles.classTable,\n boxStyles.classTable,\n]);\n\n/**\n * Turns the props of a `Box`, or of a component derived from it, into the\n * props of its element: style props become classes, sizing and color props\n * also variables set inline, `as` is dropped and every other prop is\n * forwarded as is.\n *\n * @param props Props received by the component, native ones included.\n * @param defaultClassName Class of a default the props do not override,\n * placed first; none when omitted.\n * @returns The props to spread on the rendered element.\n */\nexport const getBoxElementProps = (\n props: BoxOwnProps & StyledProps,\n defaultClassName = '',\n): Record<string, unknown> =>\n getElementProps(props, boxStyleSet, defaultClassName);\n"],"mappings":";;;;;AAOA,IAAMA,IAAcC,EAAe,CAC/BC,EAAiB,YACjBC,EAAU,UACd,CAAC,GAaYC,KACT,GACA,IAAmB,OAEnBC,EAAgBC,GAAON,GAAaO,CAAgB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../_common/components/slot/Slot.cjs"),t=require("./utils/getFlexElementProps.utils.cjs");let n=require("react/jsx-runtime");var r=r=>{let i=r.asChild===!0?e.default:r.as??`div`;return(0,n.jsx)(i,{...t.getFlexElementProps(r)})};exports.default=r;
|
|
2
|
+
//# sourceMappingURL=Flex.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flex.cjs","names":["Slot","getFlexElementProps","require_Slot","require_getFlexElementProps_utils","react_jsx_runtime","Flex","Element","props"],"sources":["../../../../src/components/layout/flex/Flex.tsx"],"sourcesContent":["import type { ElementType, ReactElement } from 'react';\n\nimport { Slot } from '@primitives/components/_common/components/slot';\nimport type { BoxTag } from '@primitives/components/layout/box/types';\nimport type {\n FlexAsChildProps,\n FlexProps,\n} from '@primitives/components/layout/flex/types';\nimport { getFlexElementProps } from '@primitives/components/layout/flex/utils/getFlexElementProps.utils';\n\n/**\n * A `Box` laid out as a flex container by default, in a row. Only the\n * default differs: `display` takes every value a `Box` accepts, an explicit\n * one replaces the default (to hide the container or make it a block, for\n * instance) and `undefined` keeps it. It renders the same tags, a `div` by\n * default, takes every style prop of a `Box` and reuses the same atomic\n * classes, grid container props included, which apply once `display`\n * makes it a grid container. Item props stay available, since a `Flex` can itself be the\n * child of a flex or grid container. Style props never reach the DOM, and every other prop\n * (attributes, events, `ref`) is typed after the tag and forwarded to the\n * element.\n *\n * With `asChild`, nothing is rendered of its own: the single child is,\n * with the classes, styles, other props and `ref` merged onto it (see\n * `AsChildProps`), for instance to style a router link.\n *\n * @param props Style props, `as` or `asChild`, and the native props of the\n * rendered tag.\n * @returns The flex container.\n * @throws {Error} With `asChild`, when the children are not a single\n * element.\n */\nconst Flex = <Tag extends BoxTag = 'div'>(\n props: FlexProps<Tag> | FlexAsChildProps,\n): ReactElement => {\n const Element: ElementType =\n props.asChild === true ? Slot : (props.as ?? 'div');\n\n return <Element {...getFlexElementProps(props)} />;\n};\n\nexport default Flex;\n"],"mappings":"A,gJAgCA,IAAMK,EACF,GACe,CACf,IAAMC,EACFC,EAAM,UAAY,GAAOP,EAAAA,QAAQO,EAAM,IAAM,MAEjD,OAAO,EAAAH,EAAA,IAAA,CAACE,EAAD,CAAS,GAAIL,EAAAA,oBAAoBM,CAAK,CAAI,CAAA,CACrD,E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../../_common/components/slot/Slot.js";
|
|
2
|
+
import { getFlexElementProps as t } from "./utils/getFlexElementProps.utils.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
// src/components/layout/flex/Flex.tsx
|
|
5
|
+
var r = (r) => {
|
|
6
|
+
let i = r.asChild === !0 ? e : r.as ?? "div";
|
|
7
|
+
return /* @__PURE__ */ n(i, { ...t(r) });
|
|
8
|
+
};
|
|
9
|
+
export { r as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Flex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flex.js","names":["Slot","Flex","Element","props","getFlexElementProps"],"sources":["../../../../src/components/layout/flex/Flex.tsx"],"sourcesContent":["import type { ElementType, ReactElement } from 'react';\n\nimport { Slot } from '@primitives/components/_common/components/slot';\nimport type { BoxTag } from '@primitives/components/layout/box/types';\nimport type {\n FlexAsChildProps,\n FlexProps,\n} from '@primitives/components/layout/flex/types';\nimport { getFlexElementProps } from '@primitives/components/layout/flex/utils/getFlexElementProps.utils';\n\n/**\n * A `Box` laid out as a flex container by default, in a row. Only the\n * default differs: `display` takes every value a `Box` accepts, an explicit\n * one replaces the default (to hide the container or make it a block, for\n * instance) and `undefined` keeps it. It renders the same tags, a `div` by\n * default, takes every style prop of a `Box` and reuses the same atomic\n * classes, grid container props included, which apply once `display`\n * makes it a grid container. Item props stay available, since a `Flex` can itself be the\n * child of a flex or grid container. Style props never reach the DOM, and every other prop\n * (attributes, events, `ref`) is typed after the tag and forwarded to the\n * element.\n *\n * With `asChild`, nothing is rendered of its own: the single child is,\n * with the classes, styles, other props and `ref` merged onto it (see\n * `AsChildProps`), for instance to style a router link.\n *\n * @param props Style props, `as` or `asChild`, and the native props of the\n * rendered tag.\n * @returns The flex container.\n * @throws {Error} With `asChild`, when the children are not a single\n * element.\n */\nconst Flex = <Tag extends BoxTag = 'div'>(\n props: FlexProps<Tag> | FlexAsChildProps,\n): ReactElement => {\n const Element: ElementType =\n props.asChild === true ? Slot : (props.as ?? 'div');\n\n return <Element {...getFlexElementProps(props)} />;\n};\n\nexport default Flex;\n"],"mappings":";;;;AAgCA,IAAMC,KACF,MACe;CACf,IAAMC,IACFC,EAAM,YAAY,KAAOH,IAAQG,EAAM,MAAM;CAEjD,OAAO,kBAACD,GAAD,EAAS,GAAIE,EAAoBD,CAAK,EAAI,CAAA;AACrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["defaultFlexDisplay"],"sources":["../../../../../src/components/layout/flex/constants/index.ts"],"sourcesContent":["/** Value of `display` a `Flex` takes when the prop is not set. */\nexport const defaultFlexDisplay = 'flex';\n"],"mappings":"AACA,IAAaA,EAAqB,O"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["defaultFlexDisplay"],"sources":["../../../../../src/components/layout/flex/constants/index.ts"],"sourcesContent":["/** Value of `display` a `Flex` takes when the prop is not set. */\nexport const defaultFlexDisplay = 'flex';\n"],"mappings":";AACA,IAAaA,IAAqB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../_common/styles/style-props/styleProps.css.cjs"),t=require("../../../_common/utils/style-props/getClassName.utils.cjs"),n=require("../../box/utils/getBoxElementProps.utils.cjs"),r=require("../constants/index.cjs");var i=t.getClassName(e.stylePropsStyles.classTable,`display`,r.defaultFlexDisplay,`display`).slice(1),a=e=>n.getBoxElementProps(e,e.display===void 0?i:``);exports.getFlexElementProps=a;
|
|
2
|
+
//# sourceMappingURL=getFlexElementProps.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFlexElementProps.utils.cjs","names":["getClassName","stylePropsStyles","defaultFlexDisplay","getBoxElementProps","require_styleProps_css","require_getClassName_utils","require_getBoxElementProps_utils","require_index","defaultFlexClassName","getFlexElementProps","props"],"sources":["../../../../../src/components/layout/flex/utils/getFlexElementProps.utils.ts"],"sourcesContent":["import { stylePropsStyles } from '@primitives/components/_common/styles/style-props/styleProps.css';\nimport type { StyledProps } from '@primitives/components/_common/types';\nimport { getClassName } from '@primitives/components/_common/utils/style-props/getClassName.utils';\nimport type { BoxOwnProps } from '@primitives/components/layout/box/types';\nimport { getBoxElementProps } from '@primitives/components/layout/box/utils/getBoxElementProps.utils';\nimport { defaultFlexDisplay } from '@primitives/components/layout/flex/constants';\n\nconst defaultFlexClassName = getClassName(\n stylePropsStyles.classTable,\n 'display',\n defaultFlexDisplay,\n 'display',\n).slice(1);\n\n/**\n * Turns the props of a `Flex` into the props of its element, like a\n * `Box`, in the same single pass: the class of the default `display` only\n * applies while the `display` prop is absent or undefined; any explicit\n * value replaces it.\n *\n * @param props Props received by the `Flex`, native ones included.\n * @returns The props to spread on the rendered element.\n */\nexport const getFlexElementProps = (\n props: BoxOwnProps & StyledProps,\n): Record<string, unknown> =>\n getBoxElementProps(\n props,\n props.display === undefined ? defaultFlexClassName : '',\n );\n"],"mappings":"A,+OAOA,IAAMQ,EAAuBR,EAAAA,aACzBC,EAAAA,iBAAiB,WACjB,UACAC,EAAAA,mBACA,SACJ,CAAC,CAAC,MAAM,CAAC,EAWIO,EACT,GAEAN,EAAAA,mBACIO,EACAA,EAAM,UAAY,IAAA,GAAYF,EAAuB,EACzD,E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { stylePropsStyles as e } from "../../../_common/styles/style-props/styleProps.css.js";
|
|
2
|
+
import { getClassName as t } from "../../../_common/utils/style-props/getClassName.utils.js";
|
|
3
|
+
import { getBoxElementProps as n } from "../../box/utils/getBoxElementProps.utils.js";
|
|
4
|
+
import { defaultFlexDisplay as r } from "../constants/index.js";
|
|
5
|
+
// src/components/layout/flex/utils/getFlexElementProps.utils.ts
|
|
6
|
+
var i = t(e.classTable, "display", r, "display").slice(1), a = (e) => n(e, e.display === void 0 ? i : "");
|
|
7
|
+
export { a as getFlexElementProps };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=getFlexElementProps.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFlexElementProps.utils.js","names":["defaultFlexClassName","getClassName","stylePropsStyles","defaultFlexDisplay","getFlexElementProps","getBoxElementProps","props"],"sources":["../../../../../src/components/layout/flex/utils/getFlexElementProps.utils.ts"],"sourcesContent":["import { stylePropsStyles } from '@primitives/components/_common/styles/style-props/styleProps.css';\nimport type { StyledProps } from '@primitives/components/_common/types';\nimport { getClassName } from '@primitives/components/_common/utils/style-props/getClassName.utils';\nimport type { BoxOwnProps } from '@primitives/components/layout/box/types';\nimport { getBoxElementProps } from '@primitives/components/layout/box/utils/getBoxElementProps.utils';\nimport { defaultFlexDisplay } from '@primitives/components/layout/flex/constants';\n\nconst defaultFlexClassName = getClassName(\n stylePropsStyles.classTable,\n 'display',\n defaultFlexDisplay,\n 'display',\n).slice(1);\n\n/**\n * Turns the props of a `Flex` into the props of its element, like a\n * `Box`, in the same single pass: the class of the default `display` only\n * applies while the `display` prop is absent or undefined; any explicit\n * value replaces it.\n *\n * @param props Props received by the `Flex`, native ones included.\n * @returns The props to spread on the rendered element.\n */\nexport const getFlexElementProps = (\n props: BoxOwnProps & StyledProps,\n): Record<string, unknown> =>\n getBoxElementProps(\n props,\n props.display === undefined ? defaultFlexClassName : '',\n );\n"],"mappings":";;;;;AAOA,IAAMA,IAAuBC,EACzBC,EAAiB,YACjB,WACAC,GACA,SACJ,CAAC,CAAC,MAAM,CAAC,GAWIC,KACT,MAEAC,EACIC,GACAA,EAAM,YAAY,KAAA,IAAYN,IAAuB,EACzD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../_common/components/slot/Slot.cjs"),t=require("./utils/getGridElementProps.utils.cjs");let n=require("react/jsx-runtime");var r=r=>{let i=r.asChild===!0?e.default:r.as??`div`;return(0,n.jsx)(i,{...t.getGridElementProps(r)})};exports.default=r;
|
|
2
|
+
//# sourceMappingURL=Grid.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.cjs","names":["Slot","getGridElementProps","require_Slot","require_getGridElementProps_utils","react_jsx_runtime","Grid","Element","props"],"sources":["../../../../src/components/layout/grid/Grid.tsx"],"sourcesContent":["import type { ElementType, ReactElement } from 'react';\n\nimport { Slot } from '@primitives/components/_common/components/slot';\nimport type { BoxTag } from '@primitives/components/layout/box/types';\nimport type {\n GridAsChildProps,\n GridProps,\n} from '@primitives/components/layout/grid/types';\nimport { getGridElementProps } from '@primitives/components/layout/grid/utils/getGridElementProps.utils';\n\n/**\n * A `Box` laid out as a grid container by default. Only the\n * default differs: `display` takes every value a `Box` accepts, an explicit\n * one replaces the default (to hide the container or make it a block, for\n * instance) and `undefined` keeps it. It renders the same tags, a `div` by\n * default, takes every style prop of a `Box` and reuses the same atomic\n * classes, flex container props included, which apply once `display`\n * makes it a flex container. Item props stay available, since a `Grid` can itself be the\n * child of a flex or grid container. Style props never reach the DOM, and every other prop\n * (attributes, events, `ref`) is typed after the tag and forwarded to the\n * element.\n *\n * With `asChild`, nothing is rendered of its own: the single child is,\n * with the classes, styles, other props and `ref` merged onto it (see\n * `AsChildProps`), for instance to style a router link.\n *\n * @param props Style props, `as` or `asChild`, and the native props of the\n * rendered tag.\n * @returns The grid container.\n * @throws {Error} With `asChild`, when the children are not a single\n * element.\n */\nconst Grid = <Tag extends BoxTag = 'div'>(\n props: GridProps<Tag> | GridAsChildProps,\n): ReactElement => {\n const Element: ElementType =\n props.asChild === true ? Slot : (props.as ?? 'div');\n\n return <Element {...getGridElementProps(props)} />;\n};\n\nexport default Grid;\n"],"mappings":"A,gJAgCA,IAAMK,EACF,GACe,CACf,IAAMC,EACFC,EAAM,UAAY,GAAOP,EAAAA,QAAQO,EAAM,IAAM,MAEjD,OAAO,EAAAH,EAAA,IAAA,CAACE,EAAD,CAAS,GAAIL,EAAAA,oBAAoBM,CAAK,CAAI,CAAA,CACrD,E"}
|