@traefik-labs/faency 13.7.0 → 13.7.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/README.md +12 -5
- package/dist/components/AriaTable/AriaTable.cjs +48 -22
- package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.js +49 -23
- package/dist/components/AriaTable/AriaTable.js.map +1 -1
- package/dist/components/AriaTable/AriaTable.vanilla.cjs +8 -4
- package/dist/components/AriaTable/AriaTable.vanilla.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.vanilla.css.cjs.map +1 -1
- package/dist/components/AriaTable/AriaTable.vanilla.css.js.map +1 -1
- package/dist/components/AriaTable/AriaTable.vanilla.js +8 -4
- package/dist/components/AriaTable/AriaTable.vanilla.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.cjs +5 -2
- package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
- package/dist/components/Avatar/Avatar.vanilla.js +5 -2
- package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.cjs +2 -10
- package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
- package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
- package/dist/components/Badge/Badge.vanilla.js +2 -10
- package/dist/components/Badge/Badge.vanilla.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.cjs +5 -11
- package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
- package/dist/components/Blockquote/Blockquote.vanilla.js +5 -11
- package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
- package/dist/components/Box/Box.vanilla.cjs +2 -10
- package/dist/components/Box/Box.vanilla.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.css.cjs.map +1 -1
- package/dist/components/Box/Box.vanilla.css.js.map +1 -1
- package/dist/components/Box/Box.vanilla.js +2 -10
- package/dist/components/Box/Box.vanilla.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.cjs +2 -10
- package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
- package/dist/components/Bubble/Bubble.vanilla.js +2 -10
- package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
- package/dist/components/Button/Button.vanilla.cjs +2 -10
- package/dist/components/Button/Button.vanilla.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
- package/dist/components/Button/Button.vanilla.css.js.map +1 -1
- package/dist/components/Button/Button.vanilla.js +2 -10
- package/dist/components/Button/Button.vanilla.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +3 -17
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js.map +1 -1
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +3 -17
- package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
- package/dist/components/Card/Card.vanilla.cjs +6 -11
- package/dist/components/Card/Card.vanilla.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
- package/dist/components/Card/Card.vanilla.css.js.map +1 -1
- package/dist/components/Card/Card.vanilla.js +6 -11
- package/dist/components/Card/Card.vanilla.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +3 -6
- package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.css.js.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.vanilla.js +3 -6
- package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.cjs +3 -10
- package/dist/components/Combobox/Combobox.vanilla.cjs.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.css.cjs.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.css.js.map +1 -1
- package/dist/components/Combobox/Combobox.vanilla.js +3 -10
- package/dist/components/Combobox/Combobox.vanilla.js.map +1 -1
- package/dist/components/Container/Container.vanilla.cjs +5 -11
- package/dist/components/Container/Container.vanilla.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
- package/dist/components/Container/Container.vanilla.css.js.map +1 -1
- package/dist/components/Container/Container.vanilla.js +5 -11
- package/dist/components/Container/Container.vanilla.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.cjs +5 -11
- package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
- package/dist/components/Elevation/Elevation.vanilla.js +5 -11
- package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
- package/dist/components/Field/Field.vanilla.cjs +3 -9
- package/dist/components/Field/Field.vanilla.cjs.map +1 -1
- package/dist/components/Field/Field.vanilla.css.cjs.map +1 -1
- package/dist/components/Field/Field.vanilla.css.js.map +1 -1
- package/dist/components/Field/Field.vanilla.js +3 -9
- package/dist/components/Field/Field.vanilla.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.cjs +5 -11
- package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
- package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
- package/dist/components/Flex/Flex.vanilla.js +5 -11
- package/dist/components/Flex/Flex.vanilla.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.cjs +7 -11
- package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
- package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
- package/dist/components/Grid/Grid.vanilla.js +7 -11
- package/dist/components/Grid/Grid.vanilla.js.map +1 -1
- package/dist/components/Heading/Heading.vanilla.cjs +35 -0
- package/dist/components/Heading/Heading.vanilla.cjs.map +1 -0
- package/dist/components/Heading/Heading.vanilla.css.cjs +85 -0
- package/dist/components/Heading/Heading.vanilla.css.cjs.map +1 -0
- package/dist/components/Heading/Heading.vanilla.css.js +74 -0
- package/dist/components/Heading/Heading.vanilla.css.js.map +1 -0
- package/dist/components/Heading/Heading.vanilla.js +30 -0
- package/dist/components/Heading/Heading.vanilla.js.map +1 -0
- package/dist/components/IconButton/IconButton.vanilla.cjs +5 -11
- package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
- package/dist/components/IconButton/IconButton.vanilla.js +5 -11
- package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
- package/dist/components/Image/Image.vanilla.cjs +2 -10
- package/dist/components/Image/Image.vanilla.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.css.cjs.map +1 -1
- package/dist/components/Image/Image.vanilla.css.js.map +1 -1
- package/dist/components/Image/Image.vanilla.js +2 -10
- package/dist/components/Image/Image.vanilla.js.map +1 -1
- package/dist/components/Input/Input.vanilla.cjs +2 -10
- package/dist/components/Input/Input.vanilla.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
- package/dist/components/Input/Input.vanilla.css.js.map +1 -1
- package/dist/components/Input/Input.vanilla.js +2 -10
- package/dist/components/Input/Input.vanilla.js.map +1 -1
- package/dist/components/Label/Label.vanilla.cjs +5 -11
- package/dist/components/Label/Label.vanilla.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
- package/dist/components/Label/Label.vanilla.css.js.map +1 -1
- package/dist/components/Label/Label.vanilla.js +5 -11
- package/dist/components/Label/Label.vanilla.js.map +1 -1
- package/dist/components/List/List.vanilla.cjs +10 -18
- package/dist/components/List/List.vanilla.cjs.map +1 -1
- package/dist/components/List/List.vanilla.css.cjs.map +1 -1
- package/dist/components/List/List.vanilla.css.js.map +1 -1
- package/dist/components/List/List.vanilla.js +7 -15
- package/dist/components/List/List.vanilla.js.map +1 -1
- package/dist/components/Meter/Meter.vanilla.cjs +3 -8
- package/dist/components/Meter/Meter.vanilla.cjs.map +1 -1
- package/dist/components/Meter/Meter.vanilla.css.cjs.map +1 -1
- package/dist/components/Meter/Meter.vanilla.css.js.map +1 -1
- package/dist/components/Meter/Meter.vanilla.js +3 -8
- package/dist/components/Meter/Meter.vanilla.js.map +1 -1
- package/dist/components/Panel/Panel.vanilla.cjs +2 -10
- package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.css.cjs.map +1 -1
- package/dist/components/Panel/Panel.vanilla.css.js.map +1 -1
- package/dist/components/Panel/Panel.vanilla.js +2 -10
- package/dist/components/Panel/Panel.vanilla.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.cjs +5 -11
- package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
- package/dist/components/Paragraph/Paragraph.vanilla.js +5 -11
- package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
- package/dist/components/RowLink/RowLink.vanilla.cjs.map +1 -1
- package/dist/components/RowLink/RowLink.vanilla.css.cjs.map +1 -1
- package/dist/components/RowLink/RowLink.vanilla.css.js.map +1 -1
- package/dist/components/RowLink/RowLink.vanilla.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs +3 -14
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.css.cjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.css.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.js +3 -14
- package/dist/components/SegmentedControl/SegmentedControl.vanilla.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.cjs +2 -10
- package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.vanilla.js +2 -10
- package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.cjs +3 -6
- package/dist/components/Spinner/Spinner.vanilla.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.css.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.css.js.map +1 -1
- package/dist/components/Spinner/Spinner.vanilla.js +3 -6
- package/dist/components/Spinner/Spinner.vanilla.js.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.cjs +3 -10
- package/dist/components/SplitLayout/SplitLayout.vanilla.cjs.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.css.cjs.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.css.js.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.vanilla.js +3 -10
- package/dist/components/SplitLayout/SplitLayout.vanilla.js.map +1 -1
- package/dist/components/Table/Table.vanilla.cjs +8 -4
- package/dist/components/Table/Table.vanilla.cjs.map +1 -1
- package/dist/components/Table/Table.vanilla.css.cjs.map +1 -1
- package/dist/components/Table/Table.vanilla.css.js.map +1 -1
- package/dist/components/Table/Table.vanilla.js +8 -4
- package/dist/components/Table/Table.vanilla.js.map +1 -1
- package/dist/components/Text/Text.vanilla.cjs +5 -11
- package/dist/components/Text/Text.vanilla.cjs.map +1 -1
- package/dist/components/Text/Text.vanilla.css.cjs.map +1 -1
- package/dist/components/Text/Text.vanilla.css.js.map +1 -1
- package/dist/components/Text/Text.vanilla.js +5 -11
- package/dist/components/Text/Text.vanilla.js.map +1 -1
- package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
- package/dist/components/TextField/TextField.vanilla.css.cjs.map +1 -1
- package/dist/components/TextField/TextField.vanilla.css.js.map +1 -1
- package/dist/components/TextField/TextField.vanilla.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.cjs +2 -10
- package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
- package/dist/components/Textarea/Textarea.vanilla.js +2 -10
- package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
- package/dist/components/Toast/Toast.vanilla.cjs +4 -15
- package/dist/components/Toast/Toast.vanilla.cjs.map +1 -1
- package/dist/components/Toast/Toast.vanilla.css.cjs.map +1 -1
- package/dist/components/Toast/Toast.vanilla.css.js.map +1 -1
- package/dist/components/Toast/Toast.vanilla.js +4 -15
- package/dist/components/Toast/Toast.vanilla.js.map +1 -1
- package/dist/faency.css +118 -2
- package/dist/index.cjs +9 -0
- package/dist/index.d.cts +36800 -0
- package/dist/index.d.ts +248 -94
- package/dist/index.js +3 -1
- package/dist/styles/recipeVariants.cjs +15 -0
- package/dist/styles/recipeVariants.cjs.map +1 -0
- package/dist/styles/recipeVariants.js +15 -0
- package/dist/styles/recipeVariants.js.map +1 -0
- package/dist/styles/themeContext.cjs.map +1 -1
- package/dist/styles/themeContext.js.map +1 -1
- package/dist/styles/themes.css.cjs.map +1 -1
- package/dist/styles/themes.css.js.map +1 -1
- package/dist/styles/tokens.css.cjs.map +1 -1
- package/dist/styles/tokens.css.js.map +1 -1
- package/dist/utils/warnOnce.cjs +8 -1
- package/dist/utils/warnOnce.cjs.map +1 -1
- package/dist/utils/warnOnce.js +8 -1
- package/dist/utils/warnOnce.js.map +1 -1
- package/package.json +32 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"IconButton.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"IconButton.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { processCSSProp } from "../../styles/cssProps.js";
|
|
2
1
|
import { cx } from "../../styles/cx.js";
|
|
3
|
-
import {
|
|
2
|
+
import { withVariantKeys } from "../../styles/recipeVariants.js";
|
|
3
|
+
import { useInlineStyle } from "../../styles/useInlineStyle.js";
|
|
4
4
|
import { iconButtonRecipe } from "./IconButton.vanilla.css.js";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
// components/IconButton/IconButton.vanilla.tsx
|
|
8
|
+
var iconButtonClass = withVariantKeys(iconButtonRecipe);
|
|
9
9
|
var IconButtonVanillaComponentImpl = forwardRef(({ as, className, css, style, size, variant, ...props }, ref) => {
|
|
10
10
|
const Component = as || "button";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const mergedStyles = {
|
|
14
|
-
...cssStyles,
|
|
15
|
-
...style,
|
|
16
|
-
...assignInlineVars(vars)
|
|
17
|
-
};
|
|
18
|
-
const recipeClass = iconButtonRecipe({
|
|
11
|
+
const mergedStyles = useInlineStyle(css, style);
|
|
12
|
+
const recipeClass = iconButtonClass({
|
|
19
13
|
size,
|
|
20
14
|
variant
|
|
21
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.vanilla.js","names":[],"sources":["../../../components/IconButton/IconButton.vanilla.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"IconButton.vanilla.js","names":[],"sources":["../../../components/IconButton/IconButton.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { iconButtonRecipe } from './IconButton.vanilla.css';\n\nconst iconButtonClass = withVariantKeys(iconButtonRecipe);\n\ntype IconButtonRecipeVariants = RecipeVariantProps<typeof iconButtonRecipe>;\n\ninterface IconButtonOwnProps extends IconButtonRecipeVariants, CSSProps {}\n\nexport type IconButtonVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<\n C,\n IconButtonOwnProps\n>;\n\ntype IconButtonVanillaComponent = PolymorphicComponent<\n 'button',\n IconButtonVanillaProps<ElementType>\n>;\n\nconst IconButtonVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'button'>(\n { as, className, css, style, size, variant, ...props }: IconButtonVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'button';\n\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = iconButtonClass({ size, variant });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nIconButtonVanillaComponentImpl.displayName = 'IconButtonVanilla';\n\nexport const IconButtonVanilla = IconButtonVanillaComponentImpl as IconButtonVanillaComponent;\n"],"mappings":";;;;;;;AAcA,IAAM,kBAAkB,gBAAgB,gBAAgB;AAgBxD,IAAM,iCAAiC,YAEnC,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,GAAG,SAC/C,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,eAAe,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAc,gBAAgB;EAAE;EAAM;CAAQ,CAAC;CAErD,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
const require_cssProps = require("../../styles/cssProps.cjs");
|
|
2
1
|
const require_cx = require("../../styles/cx.cjs");
|
|
3
|
-
const
|
|
2
|
+
const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
|
|
4
3
|
const require_Image_vanilla_css = require("./Image.vanilla.css.cjs");
|
|
5
4
|
let react = require("react");
|
|
6
|
-
let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
|
|
7
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
6
|
// components/Image/Image.vanilla.tsx
|
|
9
7
|
var ImageVanillaImpl = (0, react.forwardRef)(({ as, className, css, style, ...props }, ref) => {
|
|
10
8
|
const Component = as || "img";
|
|
11
|
-
const
|
|
12
|
-
const { style: cssStyles, vars } = require_cssProps.processCSSProp(css, colors);
|
|
13
|
-
const mergedStyles = {
|
|
14
|
-
...cssStyles,
|
|
15
|
-
...style,
|
|
16
|
-
...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
|
|
17
|
-
};
|
|
9
|
+
const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
|
|
18
10
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
|
|
19
11
|
ref,
|
|
20
12
|
className: require_cx.cx(require_Image_vanilla_css.image, className),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vanilla.cjs","names":["forwardRef","
|
|
1
|
+
{"version":3,"file":"Image.vanilla.cjs","names":["forwardRef","useInlineStyle","cx","image"],"sources":["../../../components/Image/Image.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { image } from './Image.vanilla.css';\n\nexport type ImageVanillaProps<C extends ElementType = 'img'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype ImageVanillaComponent = PolymorphicComponent<'img', ImageVanillaProps<ElementType>>;\n\nconst ImageVanillaImpl = forwardRef(\n <C extends ElementType = 'img'>(\n { as, className, css, style, ...props }: ImageVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'img';\n const mergedStyles = useInlineStyle(css, style);\n\n return <Component ref={ref} className={cx(image, className)} style={mergedStyles} {...props} />;\n },\n);\n\nImageVanillaImpl.displayName = 'ImageVanilla';\n\nexport const ImageVanilla = ImageVanillaImpl as ImageVanillaComponent;\n"],"mappings":";;;;;;AAoBA,IAAM,oBAAA,GAAmBA,MAAAA,WAAAA,EAErB,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAE9C,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAGC,0BAAAA,OAAO,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAChG,CACF;AAEA,iBAAiB,cAAc;AAE/B,IAAa,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vanilla.css.cjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"Image.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vanilla.css.js","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"Image.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { processCSSProp } from "../../styles/cssProps.js";
|
|
2
1
|
import { cx } from "../../styles/cx.js";
|
|
3
|
-
import {
|
|
2
|
+
import { useInlineStyle } from "../../styles/useInlineStyle.js";
|
|
4
3
|
import { image } from "./Image.vanilla.css.js";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
7
5
|
import { jsx } from "react/jsx-runtime";
|
|
8
6
|
// components/Image/Image.vanilla.tsx
|
|
9
7
|
var ImageVanillaImpl = forwardRef(({ as, className, css, style, ...props }, ref) => {
|
|
10
8
|
const Component = as || "img";
|
|
11
|
-
const
|
|
12
|
-
const { style: cssStyles, vars } = processCSSProp(css, colors);
|
|
13
|
-
const mergedStyles = {
|
|
14
|
-
...cssStyles,
|
|
15
|
-
...style,
|
|
16
|
-
...assignInlineVars(vars)
|
|
17
|
-
};
|
|
9
|
+
const mergedStyles = useInlineStyle(css, style);
|
|
18
10
|
return /* @__PURE__ */ jsx(Component, {
|
|
19
11
|
ref,
|
|
20
12
|
className: cx(image, className),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vanilla.js","names":[],"sources":["../../../components/Image/Image.vanilla.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Image.vanilla.js","names":[],"sources":["../../../components/Image/Image.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { image } from './Image.vanilla.css';\n\nexport type ImageVanillaProps<C extends ElementType = 'img'> = PolymorphicComponentProps<\n C,\n CSSProps\n>;\n\ntype ImageVanillaComponent = PolymorphicComponent<'img', ImageVanillaProps<ElementType>>;\n\nconst ImageVanillaImpl = forwardRef(\n <C extends ElementType = 'img'>(\n { as, className, css, style, ...props }: ImageVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'img';\n const mergedStyles = useInlineStyle(css, style);\n\n return <Component ref={ref} className={cx(image, className)} style={mergedStyles} {...props} />;\n },\n);\n\nImageVanillaImpl.displayName = 'ImageVanilla';\n\nexport const ImageVanilla = ImageVanillaImpl as ImageVanillaComponent;\n"],"mappings":";;;;;;AAoBA,IAAM,mBAAmB,YAErB,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,eAAe,eAAe,KAAK,KAAK;CAE9C,OAAO,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,OAAO,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAChG,CACF;AAEA,iBAAiB,cAAc;AAE/B,IAAa,eAAe"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
-
const require_cssProps = require("../../styles/cssProps.cjs");
|
|
3
2
|
const require_cx = require("../../styles/cx.cjs");
|
|
4
|
-
const
|
|
3
|
+
const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
|
|
5
4
|
const require_FieldContext = require("../Field/FieldContext.cjs");
|
|
6
5
|
const require_Input_vanilla_css = require("./Input.vanilla.css.cjs");
|
|
7
6
|
let react = require("react");
|
|
8
7
|
react = require_runtime.__toESM(react, 1);
|
|
9
|
-
let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
|
|
10
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
9
|
// components/Input/Input.vanilla.tsx
|
|
12
10
|
var InputVanilla = react.default.forwardRef(({ size, startAdornment, endAdornment, css, variant, state, cursor, className, style, id, disabled, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...props }, forwardedRef) => {
|
|
@@ -19,13 +17,7 @@ var InputVanilla = react.default.forwardRef(({ size, startAdornment, endAdornmen
|
|
|
19
17
|
"aria-invalid": ariaInvalid
|
|
20
18
|
});
|
|
21
19
|
const resolvedState = control.invalid ? "invalid" : state;
|
|
22
|
-
const
|
|
23
|
-
const { style: cssStyles, vars } = require_cssProps.processCSSProp(css, colors);
|
|
24
|
-
const mergedStyles = {
|
|
25
|
-
...cssStyles,
|
|
26
|
-
...style,
|
|
27
|
-
...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
|
|
28
|
-
};
|
|
20
|
+
const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
|
|
29
21
|
react.default.useImperativeHandle(forwardedRef, () => {
|
|
30
22
|
const { current } = inputRef;
|
|
31
23
|
if (current) current.clear = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.cjs","names":["React","useFieldControl","
|
|
1
|
+
{"version":3,"file":"Input.vanilla.cjs","names":["React","useFieldControl","useInlineStyle","inputWrapperRecipe","styledInputRecipe","adornmentWrapperRecipe","cx"],"sources":["../../../components/Input/Input.vanilla.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { useFieldControl } from '@/components/Field/FieldContext';\n\nimport { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from './Input.vanilla.css';\n\ntype StyledInputRecipeVariants = RecipeVariantProps<typeof styledInputRecipe>;\n\nexport interface InputVanillaOwnProps extends CSSProps {\n size?: StyledInputRecipeVariants['size'];\n variant?: StyledInputRecipeVariants['variant'];\n state?: StyledInputRecipeVariants['state'];\n cursor?: StyledInputRecipeVariants['cursor'];\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputVanillaProps = Omit<React.InputHTMLAttributes<any>, 'size'> & InputVanillaOwnProps;\n\nexport interface InputVanillaHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const InputVanilla = React.forwardRef<InputVanillaHandle, InputVanillaProps>(\n (\n {\n size,\n startAdornment,\n endAdornment,\n css,\n variant,\n state,\n cursor,\n className,\n style,\n id,\n disabled,\n 'aria-describedby': ariaDescribedBy,\n 'aria-invalid': ariaInvalid,\n ...props\n },\n forwardedRef,\n ) => {\n const inputRef = React.useRef<InputVanillaHandle>(null);\n const control = useFieldControl({\n id,\n disabled,\n invalid: state === 'invalid',\n 'aria-describedby': ariaDescribedBy,\n 'aria-invalid': ariaInvalid,\n });\n const resolvedState = control.invalid ? 'invalid' : state;\n const mergedStyles = useInlineStyle(css, style);\n\n React.useImperativeHandle(forwardedRef, () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputVanillaHandle;\n }, [inputRef]);\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n const inputWrapperClass = inputWrapperRecipe({\n disabled: control.disabled,\n state: resolvedState,\n size,\n });\n\n const styledInputClass = styledInputRecipe({\n size,\n variant,\n state: resolvedState,\n cursor,\n startAdornment: hasStartAdornment,\n endAdornment: hasEndAdornment,\n });\n\n const adornmentWrapperStartClass = adornmentWrapperRecipe({\n size,\n variant: 'start',\n });\n\n const adornmentWrapperEndClass = adornmentWrapperRecipe({\n size,\n variant: 'end',\n });\n\n return (\n <div className={cx(inputWrapperClass, className)} style={mergedStyles}>\n {hasStartAdornment && <div className={adornmentWrapperStartClass}>{startAdornment}</div>}\n\n <input\n ref={inputRef}\n className={styledInputClass}\n id={control.id}\n disabled={control.disabled}\n aria-describedby={control['aria-describedby']}\n aria-invalid={control['aria-invalid']}\n {...props}\n />\n\n {hasEndAdornment && <div className={adornmentWrapperEndClass}>{endAdornment}</div>}\n </div>\n );\n },\n);\n\nInputVanilla.displayName = 'InputVanilla';\n"],"mappings":";;;;;;;;;AA6BA,IAAa,eAAeA,MAAAA,QAAM,YAE9B,EACE,MACA,gBACA,cACA,KACA,SACA,OACA,QACA,WACA,OACA,IACA,UACA,oBAAoB,iBACpB,gBAAgB,aAChB,GAAG,SAEL,iBACG;CACH,MAAM,WAAWA,MAAAA,QAAM,OAA2B,IAAI;CACtD,MAAM,UAAUC,qBAAAA,gBAAgB;EAC9B;EACA;EACA,SAAS,UAAU;EACnB,oBAAoB;EACpB,gBAAgB;CAClB,CAAC;CACD,MAAM,gBAAgB,QAAQ,UAAU,YAAY;CACpD,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAE9C,MAAA,QAAM,oBAAoB,oBAAoB;EAC5C,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GAAG,CAAC,QAAQ,CAAC;CAEb,MAAM,oBAAoBF,MAAAA,QAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACvF,MAAM,kBAAkBA,MAAAA,QAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,MAAM,oBAAoBG,0BAAAA,mBAAmB;EAC3C,UAAU,QAAQ;EAClB,OAAO;EACP;CACF,CAAC;CAED,MAAM,mBAAmBC,0BAAAA,kBAAkB;EACzC;EACA;EACA,OAAO;EACP;EACA,gBAAgB;EAChB,cAAc;CAChB,CAAC;CAED,MAAM,6BAA6BC,0BAAAA,uBAAuB;EACxD;EACA,SAAS;CACX,CAAC;CAED,MAAM,2BAA2BA,0BAAAA,uBAAuB;EACtD;EACA,SAAS;CACX,CAAC;CAED,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAWC,WAAAA,GAAG,mBAAmB,SAAS;EAAG,OAAO;EAAzD,UAAA;GACG,qBAAqB,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW;IAA6B,UAAA;GAAoB,CAAA;GAEvF,iBAAA,GAAA,kBAAA,IAAA,CAAC,SAAD;IACE,KAAK;IACL,WAAW;IACX,IAAI,QAAQ;IACZ,UAAU,QAAQ;IAClB,oBAAkB,QAAQ;IAC1B,gBAAc,QAAQ;IACtB,GAAI;GACL,CAAA;GAEA,mBAAmB,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW;IAA2B,UAAA;GAAkB,CAAA;EAC9E;;AAET,CACF;AAEA,aAAa,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Input/Input.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { breakpoints } from '../../styles/breakpoints.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// CONSTANTS\nconst FOCUS_SHADOW =\n '0 1px 5px 0 hsla(0, 0%, 0%, 0.2), 0 3px 1px -2px hsla(0, 0%, 0%, 0.12), 0 2px 2px 0 hsla(0, 0%, 0%, 0.14)';\n\nconst SMALL_HEIGHT = tokens.sizes['5'];\nconst MEDIUM_HEIGHT = tokens.sizes['6'];\nconst LARGE_HEIGHT = tokens.sizes['7'];\n\nconst styledInputBase = style({\n // Reset\n appearance: 'none',\n borderWidth: '0',\n boxSizing: 'border-box',\n fontFamily: tokens.fonts.rubik,\n margin: '0',\n outline: 'none',\n padding: '0',\n width: '100%',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n // Custom\n position: 'relative',\n backgroundColor: 'transparent',\n borderRadius: 'inherit', // inherit border radius from InputWrapper\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputBorder}`,\n color: tokens.colors.inputText,\n fontVariantNumeric: 'tabular-nums',\n transition: 'box-shadow .1s ease-in-out',\n\n selectors: {\n '&[type=\"number\"]': {\n paddingRight: '0', // remove padding for number native controls\n },\n '&:-webkit-autofill, &:autofill': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}`,\n WebkitTextFillColor: tokens.colors.hiContrast,\n },\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontFamily: tokens.fonts.rubik,\n color: tokens.colors.hiContrast,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputFocusBorder}, ${FOCUS_SHADOW}`,\n },\n '&:-webkit-autofill:focus-visible, &:autofill:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputFocusBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}, ${FOCUS_SHADOW}`,\n },\n '&::placeholder': {\n color: tokens.colors.inputPlaceholder,\n },\n '&:read-only:not(:disabled)': {\n boxShadow: 'none',\n },\n '&:disabled': {\n pointerEvents: 'none',\n color: tokens.colors.inputDisabledText,\n },\n },\n});\n\nexport const styledInputRecipe = recipe({\n base: styledInputBase,\n variants: {\n size: {\n small: {\n height: SMALL_HEIGHT,\n fontSize: tokens.fontSizes['1'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n lineHeight: tokens.sizes['5'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['1'],\n },\n },\n },\n medium: {\n height: MEDIUM_HEIGHT,\n fontSize: tokens.fontSizes['3'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n lineHeight: tokens.sizes['6'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['3'],\n },\n },\n },\n large: {\n height: LARGE_HEIGHT,\n fontSize: tokens.fontSizes['3'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n lineHeight: tokens.sizes['7'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['3'],\n },\n },\n },\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n selectors: {\n '&:disabled': {\n boxShadow: 'none',\n },\n '&:focus-visible': {\n backgroundColor: tokens.colors.loContrast,\n },\n },\n },\n },\n state: {\n invalid: {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}`,\n selectors: {\n '&:-webkit-autofill, &:autofill': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}`,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, ${FOCUS_SHADOW}`,\n },\n '&:-webkit-autofill:focus-visible, &:autofill:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}, ${FOCUS_SHADOW}`,\n },\n },\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover:not(:read-only)': {\n cursor: 'text',\n },\n },\n },\n },\n selectors: {\n '&:focus-visible:not(:read-only)': {\n cursor: 'text',\n },\n },\n },\n text: {\n cursor: 'text',\n },\n },\n startAdornment: {\n true: {},\n },\n endAdornment: {\n true: {},\n },\n },\n compoundVariants: [\n {\n variants: {\n variant: 'ghost',\n state: 'invalid',\n },\n style: {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}`,\n },\n },\n // startAdornment compound variants\n {\n variants: {\n startAdornment: true,\n size: 'small',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['2']} + 15px)`,\n },\n },\n {\n variants: {\n startAdornment: true,\n size: 'medium',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n {\n variants: {\n startAdornment: true,\n size: 'large',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n // endAdornment compound variants\n {\n variants: {\n endAdornment: true,\n size: 'small',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['2']} + 15px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'medium',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'large',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n // endAdornment + invalid compound variants\n {\n variants: {\n endAdornment: true,\n size: 'small',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['4']} + 30px)`, // size padding + adornment margins + icon size + icon size\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'medium',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['6']} + 30px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'large',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['6']} + 30px)`,\n },\n },\n ],\n defaultVariants: {\n size: 'medium',\n cursor: 'default',\n },\n});\n\nconst inputWrapperBase = style({\n // Reset\n outline: 'none',\n lineHeight: 0,\n\n position: 'relative',\n isolation: 'isolate',\n backgroundColor: tokens.colors.inputBg,\n color: tokens.colors.inputPlaceholder,\n\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n pointerEvents: 'none',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n pointerEvents: 'none',\n },\n '&:focus-visible::before': {\n backgroundColor: tokens.colors.inputFocusBg,\n },\n '&:focus-visible::after': {\n backgroundColor: tokens.colors.primary,\n opacity: '0.15',\n },\n },\n\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::before': {\n backgroundColor: tokens.colors.inputHoverBg,\n },\n '&:hover::after': {\n backgroundColor: tokens.colors.primary,\n opacity: '0.05',\n },\n },\n },\n },\n});\n\nexport const inputWrapperRecipe = recipe({\n base: inputWrapperBase,\n variants: {\n disabled: {\n true: {\n opacity: '0.7',\n color: tokens.colors.inputDisabledText,\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::before': {\n backgroundColor: 'inherit',\n },\n '&:hover::after': {\n backgroundColor: 'inherit',\n },\n },\n },\n },\n },\n },\n state: {\n invalid: {\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::after': {\n backgroundColor: tokens.colors.inputInvalidBorder,\n },\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: tokens.radii['2'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['2'],\n },\n },\n },\n medium: {\n borderRadius: tokens.radii['3'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['3'],\n },\n },\n },\n large: {\n borderRadius: tokens.radii['3'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['3'],\n },\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n disabled: false,\n },\n});\n\nconst adornmentWrapperBase = style({\n position: 'absolute',\n top: '0',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n});\n\nexport const adornmentWrapperRecipe = recipe({\n base: adornmentWrapperBase,\n variants: {\n size: {\n small: {\n marginLeft: `calc(${tokens.space['2']} / 2)`,\n marginRight: `calc(${tokens.space['2']} / 2)`,\n },\n medium: {\n marginLeft: `calc(${tokens.space['3']} / 2)`,\n marginRight: `calc(${tokens.space['3']} / 2)`,\n },\n large: {\n marginLeft: `calc(${tokens.space['3']} / 2)`,\n marginRight: `calc(${tokens.space['3']} / 2)`,\n },\n },\n variant: {\n start: {\n left: '0',\n zIndex: 1,\n pointerEvents: 'none',\n },\n end: {\n right: '0',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Input.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Input/Input.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { breakpoints } from '../../styles/breakpoints.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// CONSTANTS\nconst FOCUS_SHADOW =\n '0 1px 5px 0 hsla(0, 0%, 0%, 0.2), 0 3px 1px -2px hsla(0, 0%, 0%, 0.12), 0 2px 2px 0 hsla(0, 0%, 0%, 0.14)';\n\nconst SMALL_HEIGHT = tokens.sizes['5'];\nconst MEDIUM_HEIGHT = tokens.sizes['6'];\nconst LARGE_HEIGHT = tokens.sizes['7'];\n\nconst styledInputBase = style({\n // Reset\n appearance: 'none',\n borderWidth: '0',\n boxSizing: 'border-box',\n fontFamily: tokens.fonts.rubik,\n margin: '0',\n outline: 'none',\n padding: '0',\n width: '100%',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n // Custom\n position: 'relative',\n backgroundColor: 'transparent',\n borderRadius: 'inherit', // inherit border radius from InputWrapper\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputBorder}`,\n color: tokens.colors.inputText,\n fontVariantNumeric: 'tabular-nums',\n transition: 'box-shadow .1s ease-in-out',\n\n selectors: {\n '&[type=\"number\"]': {\n paddingRight: '0', // remove padding for number native controls\n },\n '&:-webkit-autofill, &:autofill': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}`,\n WebkitTextFillColor: tokens.colors.hiContrast,\n },\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontFamily: tokens.fonts.rubik,\n color: tokens.colors.hiContrast,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputFocusBorder}, ${FOCUS_SHADOW}`,\n },\n '&:-webkit-autofill:focus-visible, &:autofill:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputFocusBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}, ${FOCUS_SHADOW}`,\n },\n '&::placeholder': {\n color: tokens.colors.inputPlaceholder,\n },\n '&:read-only:not(:disabled)': {\n boxShadow: 'none',\n },\n '&:disabled': {\n pointerEvents: 'none',\n color: tokens.colors.inputDisabledText,\n },\n },\n});\n\nexport const styledInputRecipe = recipe({\n base: styledInputBase,\n variants: {\n size: {\n small: {\n height: SMALL_HEIGHT,\n fontSize: tokens.fontSizes['1'],\n paddingLeft: tokens.space['2'],\n paddingRight: tokens.space['2'],\n lineHeight: tokens.sizes['5'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['1'],\n },\n },\n },\n medium: {\n height: MEDIUM_HEIGHT,\n fontSize: tokens.fontSizes['3'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n lineHeight: tokens.sizes['6'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['3'],\n },\n },\n },\n large: {\n height: LARGE_HEIGHT,\n fontSize: tokens.fontSizes['3'],\n paddingLeft: tokens.space['3'],\n paddingRight: tokens.space['3'],\n lineHeight: tokens.sizes['7'],\n selectors: {\n '&:-webkit-autofill::first-line, &:autofill::first-line': {\n fontSize: tokens.fontSizes['3'],\n },\n },\n },\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n backgroundColor: 'transparent',\n selectors: {\n '&:disabled': {\n boxShadow: 'none',\n },\n '&:focus-visible': {\n backgroundColor: tokens.colors.loContrast,\n },\n },\n },\n },\n state: {\n invalid: {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}`,\n selectors: {\n '&:-webkit-autofill, &:autofill': {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}`,\n },\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, ${FOCUS_SHADOW}`,\n },\n '&:-webkit-autofill:focus-visible, &:autofill:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.inputInvalidBorder}, inset 0 0 0 100px ${tokens.colors.inputBg}, ${FOCUS_SHADOW}`,\n },\n },\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover:not(:read-only)': {\n cursor: 'text',\n },\n },\n },\n },\n selectors: {\n '&:focus-visible:not(:read-only)': {\n cursor: 'text',\n },\n },\n },\n text: {\n cursor: 'text',\n },\n },\n startAdornment: {\n true: {},\n },\n endAdornment: {\n true: {},\n },\n },\n compoundVariants: [\n {\n variants: {\n variant: 'ghost',\n state: 'invalid',\n },\n style: {\n boxShadow: `inset 0 0 0 1px ${tokens.colors.inputInvalidBorder}`,\n },\n },\n // startAdornment compound variants\n {\n variants: {\n startAdornment: true,\n size: 'small',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['2']} + 15px)`,\n },\n },\n {\n variants: {\n startAdornment: true,\n size: 'medium',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n {\n variants: {\n startAdornment: true,\n size: 'large',\n },\n style: {\n paddingInlineStart: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n // endAdornment compound variants\n {\n variants: {\n endAdornment: true,\n size: 'small',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['2']} + 15px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'medium',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'large',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['3']} + 15px)`,\n },\n },\n // endAdornment + invalid compound variants\n {\n variants: {\n endAdornment: true,\n size: 'small',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['4']} + 30px)`, // size padding + adornment margins + icon size + icon size\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'medium',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['6']} + 30px)`,\n },\n },\n {\n variants: {\n endAdornment: true,\n size: 'large',\n state: 'invalid',\n },\n style: {\n paddingInlineEnd: `calc(${tokens.space['6']} + 30px)`,\n },\n },\n ],\n defaultVariants: {\n size: 'medium',\n cursor: 'default',\n },\n});\n\nconst inputWrapperBase = style({\n // Reset\n outline: 'none',\n lineHeight: 0,\n\n position: 'relative',\n isolation: 'isolate',\n backgroundColor: tokens.colors.inputBg,\n color: tokens.colors.inputPlaceholder,\n\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n pointerEvents: 'none',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: '0',\n pointerEvents: 'none',\n },\n '&:focus-visible::before': {\n backgroundColor: tokens.colors.inputFocusBg,\n },\n '&:focus-visible::after': {\n backgroundColor: tokens.colors.primary,\n opacity: '0.15',\n },\n },\n\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::before': {\n backgroundColor: tokens.colors.inputHoverBg,\n },\n '&:hover::after': {\n backgroundColor: tokens.colors.primary,\n opacity: '0.05',\n },\n },\n },\n },\n});\n\nexport const inputWrapperRecipe = recipe({\n base: inputWrapperBase,\n variants: {\n disabled: {\n true: {\n opacity: '0.7',\n color: tokens.colors.inputDisabledText,\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::before': {\n backgroundColor: 'inherit',\n },\n '&:hover::after': {\n backgroundColor: 'inherit',\n },\n },\n },\n },\n },\n },\n state: {\n invalid: {\n '@media': {\n [breakpoints.hover]: {\n selectors: {\n '&:hover::after': {\n backgroundColor: tokens.colors.inputInvalidBorder,\n },\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: tokens.radii['2'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['2'],\n },\n },\n },\n medium: {\n borderRadius: tokens.radii['3'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['3'],\n },\n },\n },\n large: {\n borderRadius: tokens.radii['3'],\n selectors: {\n '&::before, &::after': {\n borderRadius: tokens.radii['3'],\n },\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n disabled: false,\n },\n});\n\nconst adornmentWrapperBase = style({\n position: 'absolute',\n top: '0',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n});\n\nexport const adornmentWrapperRecipe = recipe({\n base: adornmentWrapperBase,\n variants: {\n size: {\n small: {\n marginLeft: `calc(${tokens.space['2']} / 2)`,\n marginRight: `calc(${tokens.space['2']} / 2)`,\n },\n medium: {\n marginLeft: `calc(${tokens.space['3']} / 2)`,\n marginRight: `calc(${tokens.space['3']} / 2)`,\n },\n large: {\n marginLeft: `calc(${tokens.space['3']} / 2)`,\n marginRight: `calc(${tokens.space['3']} / 2)`,\n },\n },\n variant: {\n start: {\n left: '0',\n zIndex: 1,\n pointerEvents: 'none',\n },\n end: {\n right: '0',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Input.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { processCSSProp } from "../../styles/cssProps.js";
|
|
2
1
|
import { cx } from "../../styles/cx.js";
|
|
3
|
-
import {
|
|
2
|
+
import { useInlineStyle } from "../../styles/useInlineStyle.js";
|
|
4
3
|
import { useFieldControl } from "../Field/FieldContext.js";
|
|
5
4
|
import { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from "./Input.vanilla.css.js";
|
|
6
5
|
import React from "react";
|
|
7
|
-
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
8
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
7
|
// components/Input/Input.vanilla.tsx
|
|
10
8
|
var InputVanilla = React.forwardRef(({ size, startAdornment, endAdornment, css, variant, state, cursor, className, style, id, disabled, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...props }, forwardedRef) => {
|
|
@@ -17,13 +15,7 @@ var InputVanilla = React.forwardRef(({ size, startAdornment, endAdornment, css,
|
|
|
17
15
|
"aria-invalid": ariaInvalid
|
|
18
16
|
});
|
|
19
17
|
const resolvedState = control.invalid ? "invalid" : state;
|
|
20
|
-
const
|
|
21
|
-
const { style: cssStyles, vars } = processCSSProp(css, colors);
|
|
22
|
-
const mergedStyles = {
|
|
23
|
-
...cssStyles,
|
|
24
|
-
...style,
|
|
25
|
-
...assignInlineVars(vars)
|
|
26
|
-
};
|
|
18
|
+
const mergedStyles = useInlineStyle(css, style);
|
|
27
19
|
React.useImperativeHandle(forwardedRef, () => {
|
|
28
20
|
const { current } = inputRef;
|
|
29
21
|
if (current) current.clear = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.vanilla.js","names":[],"sources":["../../../components/Input/Input.vanilla.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Input.vanilla.js","names":[],"sources":["../../../components/Input/Input.vanilla.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { useFieldControl } from '@/components/Field/FieldContext';\n\nimport { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from './Input.vanilla.css';\n\ntype StyledInputRecipeVariants = RecipeVariantProps<typeof styledInputRecipe>;\n\nexport interface InputVanillaOwnProps extends CSSProps {\n size?: StyledInputRecipeVariants['size'];\n variant?: StyledInputRecipeVariants['variant'];\n state?: StyledInputRecipeVariants['state'];\n cursor?: StyledInputRecipeVariants['cursor'];\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputVanillaProps = Omit<React.InputHTMLAttributes<any>, 'size'> & InputVanillaOwnProps;\n\nexport interface InputVanillaHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const InputVanilla = React.forwardRef<InputVanillaHandle, InputVanillaProps>(\n (\n {\n size,\n startAdornment,\n endAdornment,\n css,\n variant,\n state,\n cursor,\n className,\n style,\n id,\n disabled,\n 'aria-describedby': ariaDescribedBy,\n 'aria-invalid': ariaInvalid,\n ...props\n },\n forwardedRef,\n ) => {\n const inputRef = React.useRef<InputVanillaHandle>(null);\n const control = useFieldControl({\n id,\n disabled,\n invalid: state === 'invalid',\n 'aria-describedby': ariaDescribedBy,\n 'aria-invalid': ariaInvalid,\n });\n const resolvedState = control.invalid ? 'invalid' : state;\n const mergedStyles = useInlineStyle(css, style);\n\n React.useImperativeHandle(forwardedRef, () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputVanillaHandle;\n }, [inputRef]);\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n const inputWrapperClass = inputWrapperRecipe({\n disabled: control.disabled,\n state: resolvedState,\n size,\n });\n\n const styledInputClass = styledInputRecipe({\n size,\n variant,\n state: resolvedState,\n cursor,\n startAdornment: hasStartAdornment,\n endAdornment: hasEndAdornment,\n });\n\n const adornmentWrapperStartClass = adornmentWrapperRecipe({\n size,\n variant: 'start',\n });\n\n const adornmentWrapperEndClass = adornmentWrapperRecipe({\n size,\n variant: 'end',\n });\n\n return (\n <div className={cx(inputWrapperClass, className)} style={mergedStyles}>\n {hasStartAdornment && <div className={adornmentWrapperStartClass}>{startAdornment}</div>}\n\n <input\n ref={inputRef}\n className={styledInputClass}\n id={control.id}\n disabled={control.disabled}\n aria-describedby={control['aria-describedby']}\n aria-invalid={control['aria-invalid']}\n {...props}\n />\n\n {hasEndAdornment && <div className={adornmentWrapperEndClass}>{endAdornment}</div>}\n </div>\n );\n },\n);\n\nInputVanilla.displayName = 'InputVanilla';\n"],"mappings":";;;;;;;AA6BA,IAAa,eAAe,MAAM,YAE9B,EACE,MACA,gBACA,cACA,KACA,SACA,OACA,QACA,WACA,OACA,IACA,UACA,oBAAoB,iBACpB,gBAAgB,aAChB,GAAG,SAEL,iBACG;CACH,MAAM,WAAW,MAAM,OAA2B,IAAI;CACtD,MAAM,UAAU,gBAAgB;EAC9B;EACA;EACA,SAAS,UAAU;EACnB,oBAAoB;EACpB,gBAAgB;CAClB,CAAC;CACD,MAAM,gBAAgB,QAAQ,UAAU,YAAY;CACpD,MAAM,eAAe,eAAe,KAAK,KAAK;CAE9C,MAAM,oBAAoB,oBAAoB;EAC5C,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GAAG,CAAC,QAAQ,CAAC;CAEb,MAAM,oBAAoB,MAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACvF,MAAM,kBAAkB,MAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,MAAM,oBAAoB,mBAAmB;EAC3C,UAAU,QAAQ;EAClB,OAAO;EACP;CACF,CAAC;CAED,MAAM,mBAAmB,kBAAkB;EACzC;EACA;EACA,OAAO;EACP;EACA,gBAAgB;EAChB,cAAc;CAChB,CAAC;CAED,MAAM,6BAA6B,uBAAuB;EACxD;EACA,SAAS;CACX,CAAC;CAED,MAAM,2BAA2B,uBAAuB;EACtD;EACA,SAAS;CACX,CAAC;CAED,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,mBAAmB,SAAS;EAAG,OAAO;EAAzD,UAAA;GACG,qBAAqB,oBAAC,OAAD;IAAK,WAAW;IAA6B,UAAA;GAAoB,CAAA;GAEvF,oBAAC,SAAD;IACE,KAAK;IACL,WAAW;IACX,IAAI,QAAQ;IACZ,UAAU,QAAQ;IAClB,oBAAkB,QAAQ;IAC1B,gBAAc,QAAQ;IACtB,GAAI;GACL,CAAA;GAEA,mBAAmB,oBAAC,OAAD;IAAK,WAAW;IAA2B,UAAA;GAAkB,CAAA;EAC9E;;AAET,CACF;AAEA,aAAa,cAAc"}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
const require_cssProps = require("../../styles/cssProps.cjs");
|
|
2
1
|
const require_cx = require("../../styles/cx.cjs");
|
|
3
|
-
const
|
|
2
|
+
const require_recipeVariants = require("../../styles/recipeVariants.cjs");
|
|
3
|
+
const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
|
|
4
4
|
const require_Label_vanilla_css = require("./Label.vanilla.css.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
|
-
let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
|
|
7
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
7
|
// components/Label/Label.vanilla.tsx
|
|
8
|
+
var labelClass = require_recipeVariants.withVariantKeys(require_Label_vanilla_css.labelRecipe);
|
|
9
9
|
var LabelVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
|
|
10
10
|
const Component = as || "label";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const mergedStyles = {
|
|
14
|
-
...cssStyles,
|
|
15
|
-
...style,
|
|
16
|
-
...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
|
|
17
|
-
};
|
|
18
|
-
const recipeClass = require_Label_vanilla_css.labelRecipe({
|
|
11
|
+
const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
|
|
12
|
+
const recipeClass = labelClass({
|
|
19
13
|
size,
|
|
20
14
|
weight,
|
|
21
15
|
variant,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.cjs","names":["
|
|
1
|
+
{"version":3,"file":"Label.vanilla.cjs","names":["withVariantKeys","labelRecipe","forwardRef","useInlineStyle","cx"],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { labelRecipe } from './Label.vanilla.css';\n\nconst labelClass = withVariantKeys(labelRecipe);\n\ntype LabelRecipeVariants = RecipeVariantProps<typeof labelRecipe>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = labelClass({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;AAcA,IAAM,aAAaA,uBAAAA,gBAAgBC,0BAAAA,WAAW;AAa9C,IAAM,6BAAA,GAA4BC,MAAAA,WAAAA,EAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAc,WAAW;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAErF,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"Label.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.css.js","names":[
|
|
1
|
+
{"version":3,"file":"Label.vanilla.css.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { processCSSProp } from "../../styles/cssProps.js";
|
|
2
1
|
import { cx } from "../../styles/cx.js";
|
|
3
|
-
import {
|
|
2
|
+
import { withVariantKeys } from "../../styles/recipeVariants.js";
|
|
3
|
+
import { useInlineStyle } from "../../styles/useInlineStyle.js";
|
|
4
4
|
import { labelRecipe } from "./Label.vanilla.css.js";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
// components/Label/Label.vanilla.tsx
|
|
8
|
+
var labelClass = withVariantKeys(labelRecipe);
|
|
9
9
|
var LabelVanillaComponentImpl = forwardRef(({ as, className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
|
|
10
10
|
const Component = as || "label";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const mergedStyles = {
|
|
14
|
-
...cssStyles,
|
|
15
|
-
...style,
|
|
16
|
-
...assignInlineVars(vars)
|
|
17
|
-
};
|
|
18
|
-
const recipeClass = labelRecipe({
|
|
11
|
+
const mergedStyles = useInlineStyle(css, style);
|
|
12
|
+
const recipeClass = labelClass({
|
|
19
13
|
size,
|
|
20
14
|
weight,
|
|
21
15
|
variant,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vanilla.js","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Label.vanilla.js","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { ElementType, forwardRef } from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '@/styles/polymorphic';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport { labelRecipe } from './Label.vanilla.css';\n\nconst labelClass = withVariantKeys(labelRecipe);\n\ntype LabelRecipeVariants = RecipeVariantProps<typeof labelRecipe>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const mergedStyles = useInlineStyle(css, style);\n\n const recipeClass = labelClass({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component ref={ref} className={cx(recipeClass, className)} style={mergedStyles} {...props} />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;AAcA,IAAM,aAAa,gBAAgB,WAAW;AAa9C,IAAM,4BAA4B,YAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,eAAe,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAc,WAAW;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAErF,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
|
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
-
const require_cssProps = require("../../styles/cssProps.cjs");
|
|
3
2
|
const require_cx = require("../../styles/cx.cjs");
|
|
4
|
-
const
|
|
3
|
+
const require_recipeVariants = require("../../styles/recipeVariants.cjs");
|
|
4
|
+
const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
|
|
5
5
|
const require_warnOnce = require("../../utils/warnOnce.cjs");
|
|
6
6
|
const require_Flex_vanilla_css = require("../Flex/Flex.vanilla.css.cjs");
|
|
7
7
|
const require_List_vanilla_css = require("./List.vanilla.css.cjs");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_runtime.__toESM(react, 1);
|
|
10
|
-
let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
|
|
11
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
11
|
// components/List/List.vanilla.tsx
|
|
12
|
+
var flexClass = require_recipeVariants.withVariantKeys(require_Flex_vanilla_css.flexRecipe);
|
|
13
|
+
var liClass = require_recipeVariants.withVariantKeys(require_List_vanilla_css.liRecipe);
|
|
13
14
|
var ListVanillaContext = (0, react.createContext)({ interactive: false });
|
|
14
|
-
var useInlineStyle = (css, style) => {
|
|
15
|
-
const { colors } = require_themeContext.useVanillaExtractTheme();
|
|
16
|
-
const { style: cssStyles, vars } = require_cssProps.processCSSProp(css, colors);
|
|
17
|
-
return {
|
|
18
|
-
...cssStyles,
|
|
19
|
-
...style,
|
|
20
|
-
...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
15
|
var useListContextValue = (interactive) => {
|
|
24
16
|
const parent = (0, react.useContext)(ListVanillaContext);
|
|
25
17
|
return (0, react.useMemo)(() => ({ interactive: interactive ?? parent.interactive }), [interactive, parent.interactive]);
|
|
26
18
|
};
|
|
27
19
|
var UlVanilla = (0, react.forwardRef)(({ interactive, className, css, style, ...props }, ref) => {
|
|
28
20
|
const contextValue = useListContextValue(interactive);
|
|
29
|
-
const inlineStyle = useInlineStyle(css, style);
|
|
21
|
+
const inlineStyle = require_useInlineStyle.useInlineStyle(css, style);
|
|
30
22
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListVanillaContext.Provider, {
|
|
31
23
|
value: contextValue,
|
|
32
24
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
@@ -41,7 +33,7 @@ var UlVanilla = (0, react.forwardRef)(({ interactive, className, css, style, ...
|
|
|
41
33
|
UlVanilla.displayName = "UlVanilla";
|
|
42
34
|
var OlVanilla = (0, react.forwardRef)(({ interactive, className, css, style, ...props }, ref) => {
|
|
43
35
|
const contextValue = useListContextValue(interactive);
|
|
44
|
-
const inlineStyle = useInlineStyle(css, style);
|
|
36
|
+
const inlineStyle = require_useInlineStyle.useInlineStyle(css, style);
|
|
45
37
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListVanillaContext.Provider, {
|
|
46
38
|
value: contextValue,
|
|
47
39
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ol", {
|
|
@@ -74,7 +66,7 @@ var splitNestedLists = (children) => {
|
|
|
74
66
|
};
|
|
75
67
|
var LiVanilla = (0, react.forwardRef)(({ controls, disabled, elevation, align, justify, direction, gap, wrap, className, css, style, children, ...props }, ref) => {
|
|
76
68
|
const { interactive } = (0, react.useContext)(ListVanillaContext);
|
|
77
|
-
const inlineStyle = useInlineStyle(css, style);
|
|
69
|
+
const inlineStyle = require_useInlineStyle.useInlineStyle(css, style);
|
|
78
70
|
const { content, nestedLists } = splitNestedLists(children);
|
|
79
71
|
const contentRef = (0, react.useRef)(null);
|
|
80
72
|
const setContentRef = (0, react.useCallback)((node) => {
|
|
@@ -85,7 +77,7 @@ var LiVanilla = (0, react.forwardRef)(({ controls, disabled, elevation, align, j
|
|
|
85
77
|
});
|
|
86
78
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
|
|
87
79
|
ref,
|
|
88
|
-
className: require_cx.cx(
|
|
80
|
+
className: require_cx.cx(liClass({ elevation }), className),
|
|
89
81
|
style: inlineStyle,
|
|
90
82
|
...props,
|
|
91
83
|
children: [
|
|
@@ -93,7 +85,7 @@ var LiVanilla = (0, react.forwardRef)(({ controls, disabled, elevation, align, j
|
|
|
93
85
|
ref: setContentRef,
|
|
94
86
|
type: "button",
|
|
95
87
|
disabled,
|
|
96
|
-
className: require_cx.cx(
|
|
88
|
+
className: require_cx.cx(flexClass({
|
|
97
89
|
align,
|
|
98
90
|
justify,
|
|
99
91
|
direction,
|
|
@@ -103,7 +95,7 @@ var LiVanilla = (0, react.forwardRef)(({ controls, disabled, elevation, align, j
|
|
|
103
95
|
children: content
|
|
104
96
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
105
97
|
ref: setContentRef,
|
|
106
|
-
className: require_cx.cx(
|
|
98
|
+
className: require_cx.cx(flexClass({
|
|
107
99
|
align: align ?? "center",
|
|
108
100
|
justify,
|
|
109
101
|
direction,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.vanilla.cjs","names":["
|
|
1
|
+
{"version":3,"file":"List.vanilla.cjs","names":["withVariantKeys","flexRecipe","liRecipe","createContext","useContext","useMemo","forwardRef","useInlineStyle","cx","ul","ol","isValidElement","Fragment","useRef","useCallback","itemButton","itemText"],"sources":["../../../components/List/List.vanilla.tsx"],"sourcesContent":["import React, {\n Children,\n createContext,\n forwardRef,\n Fragment,\n isValidElement,\n ReactNode,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n} from 'react';\n\nimport { CSSProps } from '@/styles/cssProps';\nimport { cx } from '@/styles/cx';\nimport { RecipeVariantProps, withVariantKeys } from '@/styles/recipeVariants';\nimport type {\n FlexAlignSimplified,\n FlexDirection,\n FlexJustifySimplified,\n Gap,\n} from '@/styles/types';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\nimport { warnOnce } from '@/utils/warnOnce';\n\nimport { flexRecipe } from '@/components/Flex/Flex.vanilla.css';\n\nimport { controlsWrapper, itemButton, itemText, liRecipe, ol, ul } from './List.vanilla.css';\n\nconst flexClass = withVariantKeys(flexRecipe);\nconst liClass = withVariantKeys(liRecipe);\n\nconst ListVanillaContext = createContext({ interactive: false });\n\nconst useListContextValue = (interactive?: boolean) => {\n const parent = useContext(ListVanillaContext);\n return useMemo(\n () => ({ interactive: interactive ?? parent.interactive }),\n [interactive, parent.interactive],\n );\n};\n\ntype ListOwnProps = CSSProps & {\n /** Renders the items as buttons. Nested lists inherit it. */\n interactive?: boolean;\n};\n\nexport type UlVanillaProps = React.HTMLAttributes<HTMLUListElement> & ListOwnProps;\n\nexport const UlVanilla = forwardRef<HTMLUListElement, UlVanillaProps>(\n ({ interactive, className, css, style, ...props }, ref) => {\n const contextValue = useListContextValue(interactive);\n const inlineStyle = useInlineStyle(css, style);\n\n return (\n <ListVanillaContext.Provider value={contextValue}>\n <ul ref={ref} role=\"list\" className={cx(ul, className)} style={inlineStyle} {...props} />\n </ListVanillaContext.Provider>\n );\n },\n);\n\nUlVanilla.displayName = 'UlVanilla';\n\nexport type OlVanillaProps = React.OlHTMLAttributes<HTMLOListElement> & ListOwnProps;\n\nexport const OlVanilla = forwardRef<HTMLOListElement, OlVanillaProps>(\n ({ interactive, className, css, style, ...props }, ref) => {\n const contextValue = useListContextValue(interactive);\n const inlineStyle = useInlineStyle(css, style);\n\n return (\n <ListVanillaContext.Provider value={contextValue}>\n <ol ref={ref} role=\"list\" className={cx(ol, className)} style={inlineStyle} {...props} />\n </ListVanillaContext.Provider>\n );\n },\n);\n\nOlVanilla.displayName = 'OlVanilla';\n\ntype LiRecipeVariants = RecipeVariantProps<typeof liRecipe>;\n\nexport type LiVanillaProps = React.LiHTMLAttributes<HTMLLIElement> &\n CSSProps &\n LiRecipeVariants & {\n /** Shown on the right of the item, outside its button. */\n controls?: ReactNode;\n /** Disables the item's button. Only applies in an interactive list. */\n disabled?: boolean;\n align?: FlexAlignSimplified;\n justify?: FlexJustifySimplified;\n direction?: FlexDirection;\n gap?: Gap;\n wrap?: 'wrap' | 'noWrap' | 'wrapReverse';\n };\n\nconst NESTED_LIST_WARNING =\n 'LiVanilla: a nested list is rendered inside the item content, so it ends up in its button or span. ' +\n 'Make UlVanilla or OlVanilla a direct child of LiVanilla, and wrap only its items in your component.';\n\n// Looks into fragments, but not into components: what they render is unknown at this point.\nconst splitNestedLists = (children: ReactNode) => {\n const content: ReactNode[] = [];\n const nestedLists: ReactNode[] = [];\n\n // eslint-disable-next-line @eslint-react/no-children-to-array\n Children.toArray(children).forEach((child) => {\n if (!isValidElement<{ children?: ReactNode }>(child)) {\n content.push(child);\n } else if (child.type === UlVanilla || child.type === OlVanilla) {\n nestedLists.push(child);\n } else if (child.type === Fragment) {\n const inner = splitNestedLists(child.props.children);\n content.push(<Fragment key={child.key}>{inner.content}</Fragment>);\n if (inner.nestedLists.length) {\n nestedLists.push(<Fragment key={child.key}>{inner.nestedLists}</Fragment>);\n }\n } else {\n content.push(child);\n }\n });\n\n return { content, nestedLists };\n};\n\nexport const LiVanilla = forwardRef<HTMLLIElement, LiVanillaProps>(\n (\n {\n controls,\n disabled,\n elevation,\n align,\n justify,\n direction,\n gap,\n wrap,\n className,\n css,\n style,\n children,\n ...props\n },\n ref,\n ) => {\n const { interactive } = useContext(ListVanillaContext);\n const inlineStyle = useInlineStyle(css, style);\n const { content, nestedLists } = splitNestedLists(children);\n\n const contentRef = useRef<HTMLElement | null>(null);\n const setContentRef = useCallback((node: HTMLElement | null) => {\n contentRef.current = node;\n }, []);\n\n // A list rendered by a wrapper component can't be detected before render.\n useEffect(() => {\n if (contentRef.current?.querySelector('ul, ol')) {\n warnOnce(NESTED_LIST_WARNING);\n }\n });\n\n return (\n <li\n ref={ref}\n className={cx(liClass({ elevation }), className)}\n style={inlineStyle}\n {...props}\n >\n {interactive ? (\n <button\n ref={setContentRef}\n type=\"button\"\n disabled={disabled}\n className={cx(flexClass({ align, justify, direction, gap, wrap }), itemButton)}\n >\n {content}\n </button>\n ) : (\n <span\n ref={setContentRef}\n className={cx(\n flexClass({ align: align ?? 'center', justify, direction, gap: gap ?? 1, wrap }),\n itemText,\n )}\n >\n {content}\n </span>\n )}\n {nestedLists}\n {!!controls && <div className={controlsWrapper}>{controls}</div>}\n </li>\n );\n },\n);\n\nLiVanilla.displayName = 'LiVanilla';\n"],"mappings":";;;;;;;;;;;AA8BA,IAAM,YAAYA,uBAAAA,gBAAgBC,yBAAAA,UAAU;AAC5C,IAAM,UAAUD,uBAAAA,gBAAgBE,yBAAAA,QAAQ;AAExC,IAAM,sBAAA,GAAqBC,MAAAA,cAAAA,CAAc,EAAE,aAAa,MAAM,CAAC;AAE/D,IAAM,uBAAuB,gBAA0B;CACrD,MAAM,UAAA,GAASC,MAAAA,WAAAA,CAAW,kBAAkB;CAC5C,QAAA,GAAOC,MAAAA,QAAAA,QACE,EAAE,aAAa,eAAe,OAAO,YAAY,IACxD,CAAC,aAAa,OAAO,WAAW,CAClC;AACF;AASA,IAAa,aAAA,GAAYC,MAAAA,WAAAA,EACtB,EAAE,aAAa,WAAW,KAAK,OAAO,GAAG,SAAS,QAAQ;CACzD,MAAM,eAAe,oBAAoB,WAAW;CACpD,MAAM,cAAcC,uBAAAA,eAAe,KAAK,KAAK;CAE7C,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,mBAAmB,UAApB;EAA6B,OAAO;EAClC,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;GAAS;GAAK,MAAK;GAAO,WAAWC,WAAAA,GAAGC,yBAAAA,IAAI,SAAS;GAAG,OAAO;GAAa,GAAI;EAAQ,CAAA;CAC7D,CAAA;AAEjC,CACF;AAEA,UAAU,cAAc;AAIxB,IAAa,aAAA,GAAYH,MAAAA,WAAAA,EACtB,EAAE,aAAa,WAAW,KAAK,OAAO,GAAG,SAAS,QAAQ;CACzD,MAAM,eAAe,oBAAoB,WAAW;CACpD,MAAM,cAAcC,uBAAAA,eAAe,KAAK,KAAK;CAE7C,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,mBAAmB,UAApB;EAA6B,OAAO;EAClC,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;GAAS;GAAK,MAAK;GAAO,WAAWC,WAAAA,GAAGE,yBAAAA,IAAI,SAAS;GAAG,OAAO;GAAa,GAAI;EAAQ,CAAA;CAC7D,CAAA;AAEjC,CACF;AAEA,UAAU,cAAc;AAkBxB,IAAM,sBACJ;AAIF,IAAM,oBAAoB,aAAwB;CAChD,MAAM,UAAuB,CAAC;CAC9B,MAAM,cAA2B,CAAC;CAGlC,MAAA,SAAS,QAAQ,QAAQ,CAAC,CAAC,SAAS,UAAU;EAC5C,IAAI,EAAA,GAACC,MAAAA,eAAAA,CAAyC,KAAK,GACjD,QAAQ,KAAK,KAAK;OACb,IAAI,MAAM,SAAS,aAAa,MAAM,SAAS,WACpD,YAAY,KAAK,KAAK;OACjB,IAAI,MAAM,SAASC,MAAAA,UAAU;GAClC,MAAM,QAAQ,iBAAiB,MAAM,MAAM,QAAQ;GACnD,QAAQ,KAAK,iBAAA,GAAA,kBAAA,IAAA,CAACA,MAAAA,UAAD,EAAA,UAA2B,MAAM,QAAkB,GAApC,MAAM,GAA8B,CAAC;GACjE,IAAI,MAAM,YAAY,QACpB,YAAY,KAAK,iBAAA,GAAA,kBAAA,IAAA,CAACA,MAAAA,UAAD,EAAA,UAA2B,MAAM,YAAsB,GAAxC,MAAM,GAAkC,CAAC;EAE7E,OACE,QAAQ,KAAK,KAAK;CAEtB,CAAC;CAED,OAAO;EAAE;EAAS;CAAY;AAChC;AAEA,IAAa,aAAA,GAAYN,MAAAA,WAAAA,EAErB,EACE,UACA,UACA,WACA,OACA,SACA,WACA,KACA,MACA,WACA,KACA,OACA,UACA,GAAG,SAEL,QACG;CACH,MAAM,EAAE,iBAAA,GAAgBF,MAAAA,WAAAA,CAAW,kBAAkB;CACrD,MAAM,cAAcG,uBAAAA,eAAe,KAAK,KAAK;CAC7C,MAAM,EAAE,SAAS,gBAAgB,iBAAiB,QAAQ;CAE1D,MAAM,cAAA,GAAaM,MAAAA,OAAAA,CAA2B,IAAI;CAClD,MAAM,iBAAA,GAAgBC,MAAAA,YAAAA,EAAa,SAA6B;EAC9D,WAAW,UAAU;CACvB,GAAG,CAAC,CAAC;CAGL,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,IAAI,WAAW,SAAS,cAAc,QAAQ,GAC5C,iBAAA,SAAS,mBAAmB;CAEhC,CAAC;CAED,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,MAAD;EACO;EACL,WAAWN,WAAAA,GAAG,QAAQ,EAAE,UAAU,CAAC,GAAG,SAAS;EAC/C,OAAO;EACP,GAAI;EAJN,UAAA;GAMG,cACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;IACE,KAAK;IACL,MAAK;IACK;IACV,WAAWA,WAAAA,GAAG,UAAU;KAAE;KAAO;KAAS;KAAW;KAAK;IAAK,CAAC,GAAGO,yBAAAA,UAAU;IAE5E,UAAA;GACK,CAAA,IAER,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;IACE,KAAK;IACL,WAAWP,WAAAA,GACT,UAAU;KAAE,OAAO,SAAS;KAAU;KAAS;KAAW,KAAK,OAAO;KAAG;IAAK,CAAC,GAC/EQ,yBAAAA,QACF;IAEC,UAAA;GACG,CAAA;GAEP;GACA,CAAC,CAAC,YAAY,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAA;IAA6B,UAAA;GAAc,CAAA;EAC7D;;AAER,CACF;AAEA,UAAU,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.vanilla.css.cjs","names":[
|
|
1
|
+
{"version":3,"file":"List.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
|