@traefik-labs/faency 13.7.1 → 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.
Files changed (157) hide show
  1. package/README.md +1 -2
  2. package/dist/components/AriaTable/AriaTable.cjs +48 -22
  3. package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
  4. package/dist/components/AriaTable/AriaTable.js +49 -23
  5. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  6. package/dist/components/AriaTable/AriaTable.vanilla.cjs +8 -4
  7. package/dist/components/AriaTable/AriaTable.vanilla.cjs.map +1 -1
  8. package/dist/components/AriaTable/AriaTable.vanilla.js +8 -4
  9. package/dist/components/AriaTable/AriaTable.vanilla.js.map +1 -1
  10. package/dist/components/Avatar/Avatar.vanilla.cjs +5 -2
  11. package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
  12. package/dist/components/Avatar/Avatar.vanilla.js +5 -2
  13. package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
  14. package/dist/components/Badge/Badge.vanilla.cjs +2 -10
  15. package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
  16. package/dist/components/Badge/Badge.vanilla.js +2 -10
  17. package/dist/components/Badge/Badge.vanilla.js.map +1 -1
  18. package/dist/components/Blockquote/Blockquote.vanilla.cjs +5 -11
  19. package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
  20. package/dist/components/Blockquote/Blockquote.vanilla.js +5 -11
  21. package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
  22. package/dist/components/Box/Box.vanilla.cjs +2 -10
  23. package/dist/components/Box/Box.vanilla.cjs.map +1 -1
  24. package/dist/components/Box/Box.vanilla.js +2 -10
  25. package/dist/components/Box/Box.vanilla.js.map +1 -1
  26. package/dist/components/Bubble/Bubble.vanilla.cjs +2 -10
  27. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
  28. package/dist/components/Bubble/Bubble.vanilla.js +2 -10
  29. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
  30. package/dist/components/Button/Button.vanilla.cjs +2 -10
  31. package/dist/components/Button/Button.vanilla.cjs.map +1 -1
  32. package/dist/components/Button/Button.vanilla.js +2 -10
  33. package/dist/components/Button/Button.vanilla.js.map +1 -1
  34. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +3 -17
  35. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  36. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +3 -17
  37. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
  38. package/dist/components/Card/Card.vanilla.cjs +6 -11
  39. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  40. package/dist/components/Card/Card.vanilla.js +6 -11
  41. package/dist/components/Card/Card.vanilla.js.map +1 -1
  42. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +3 -6
  43. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
  44. package/dist/components/CodeBlock/CodeBlock.vanilla.js +3 -6
  45. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  46. package/dist/components/Combobox/Combobox.vanilla.cjs +3 -10
  47. package/dist/components/Combobox/Combobox.vanilla.cjs.map +1 -1
  48. package/dist/components/Combobox/Combobox.vanilla.js +3 -10
  49. package/dist/components/Combobox/Combobox.vanilla.js.map +1 -1
  50. package/dist/components/Container/Container.vanilla.cjs +5 -11
  51. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  52. package/dist/components/Container/Container.vanilla.js +5 -11
  53. package/dist/components/Container/Container.vanilla.js.map +1 -1
  54. package/dist/components/Elevation/Elevation.vanilla.cjs +5 -11
  55. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  56. package/dist/components/Elevation/Elevation.vanilla.js +5 -11
  57. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  58. package/dist/components/Field/Field.vanilla.cjs +3 -9
  59. package/dist/components/Field/Field.vanilla.cjs.map +1 -1
  60. package/dist/components/Field/Field.vanilla.js +3 -9
  61. package/dist/components/Field/Field.vanilla.js.map +1 -1
  62. package/dist/components/Flex/Flex.vanilla.cjs +5 -11
  63. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  64. package/dist/components/Flex/Flex.vanilla.js +5 -11
  65. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  66. package/dist/components/Grid/Grid.vanilla.cjs +7 -11
  67. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  68. package/dist/components/Grid/Grid.vanilla.js +7 -11
  69. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  70. package/dist/components/Heading/Heading.vanilla.cjs +35 -0
  71. package/dist/components/Heading/Heading.vanilla.cjs.map +1 -0
  72. package/dist/components/Heading/Heading.vanilla.css.cjs +85 -0
  73. package/dist/components/Heading/Heading.vanilla.css.cjs.map +1 -0
  74. package/dist/components/Heading/Heading.vanilla.css.js +74 -0
  75. package/dist/components/Heading/Heading.vanilla.css.js.map +1 -0
  76. package/dist/components/Heading/Heading.vanilla.js +30 -0
  77. package/dist/components/Heading/Heading.vanilla.js.map +1 -0
  78. package/dist/components/IconButton/IconButton.vanilla.cjs +5 -11
  79. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  80. package/dist/components/IconButton/IconButton.vanilla.js +5 -11
  81. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  82. package/dist/components/Image/Image.vanilla.cjs +2 -10
  83. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  84. package/dist/components/Image/Image.vanilla.js +2 -10
  85. package/dist/components/Image/Image.vanilla.js.map +1 -1
  86. package/dist/components/Input/Input.vanilla.cjs +2 -10
  87. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  88. package/dist/components/Input/Input.vanilla.js +2 -10
  89. package/dist/components/Input/Input.vanilla.js.map +1 -1
  90. package/dist/components/Label/Label.vanilla.cjs +5 -11
  91. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  92. package/dist/components/Label/Label.vanilla.js +5 -11
  93. package/dist/components/Label/Label.vanilla.js.map +1 -1
  94. package/dist/components/List/List.vanilla.cjs +10 -18
  95. package/dist/components/List/List.vanilla.cjs.map +1 -1
  96. package/dist/components/List/List.vanilla.js +7 -15
  97. package/dist/components/List/List.vanilla.js.map +1 -1
  98. package/dist/components/Meter/Meter.vanilla.cjs +3 -8
  99. package/dist/components/Meter/Meter.vanilla.cjs.map +1 -1
  100. package/dist/components/Meter/Meter.vanilla.js +3 -8
  101. package/dist/components/Meter/Meter.vanilla.js.map +1 -1
  102. package/dist/components/Panel/Panel.vanilla.cjs +2 -10
  103. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  104. package/dist/components/Panel/Panel.vanilla.js +2 -10
  105. package/dist/components/Panel/Panel.vanilla.js.map +1 -1
  106. package/dist/components/Paragraph/Paragraph.vanilla.cjs +5 -11
  107. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  108. package/dist/components/Paragraph/Paragraph.vanilla.js +5 -11
  109. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  110. package/dist/components/RowLink/RowLink.vanilla.cjs.map +1 -1
  111. package/dist/components/RowLink/RowLink.vanilla.js.map +1 -1
  112. package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs +3 -14
  113. package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs.map +1 -1
  114. package/dist/components/SegmentedControl/SegmentedControl.vanilla.js +3 -14
  115. package/dist/components/SegmentedControl/SegmentedControl.vanilla.js.map +1 -1
  116. package/dist/components/Skeleton/Skeleton.vanilla.cjs +2 -10
  117. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  118. package/dist/components/Skeleton/Skeleton.vanilla.js +2 -10
  119. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  120. package/dist/components/Spinner/Spinner.vanilla.cjs +3 -6
  121. package/dist/components/Spinner/Spinner.vanilla.cjs.map +1 -1
  122. package/dist/components/Spinner/Spinner.vanilla.js +3 -6
  123. package/dist/components/Spinner/Spinner.vanilla.js.map +1 -1
  124. package/dist/components/SplitLayout/SplitLayout.vanilla.cjs +3 -10
  125. package/dist/components/SplitLayout/SplitLayout.vanilla.cjs.map +1 -1
  126. package/dist/components/SplitLayout/SplitLayout.vanilla.js +3 -10
  127. package/dist/components/SplitLayout/SplitLayout.vanilla.js.map +1 -1
  128. package/dist/components/Table/Table.vanilla.cjs +8 -4
  129. package/dist/components/Table/Table.vanilla.cjs.map +1 -1
  130. package/dist/components/Table/Table.vanilla.js +8 -4
  131. package/dist/components/Table/Table.vanilla.js.map +1 -1
  132. package/dist/components/Text/Text.vanilla.cjs +5 -11
  133. package/dist/components/Text/Text.vanilla.cjs.map +1 -1
  134. package/dist/components/Text/Text.vanilla.js +5 -11
  135. package/dist/components/Text/Text.vanilla.js.map +1 -1
  136. package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
  137. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  138. package/dist/components/Textarea/Textarea.vanilla.cjs +2 -10
  139. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  140. package/dist/components/Textarea/Textarea.vanilla.js +2 -10
  141. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  142. package/dist/components/Toast/Toast.vanilla.cjs +4 -15
  143. package/dist/components/Toast/Toast.vanilla.cjs.map +1 -1
  144. package/dist/components/Toast/Toast.vanilla.js +4 -15
  145. package/dist/components/Toast/Toast.vanilla.js.map +1 -1
  146. package/dist/faency.css +118 -2
  147. package/dist/index.cjs +9 -0
  148. package/dist/index.d.cts +36800 -0
  149. package/dist/index.d.ts +248 -94
  150. package/dist/index.js +3 -1
  151. package/dist/styles/recipeVariants.cjs +15 -0
  152. package/dist/styles/recipeVariants.cjs.map +1 -0
  153. package/dist/styles/recipeVariants.js +15 -0
  154. package/dist/styles/recipeVariants.js.map +1 -0
  155. package/dist/styles/themeContext.cjs.map +1 -1
  156. package/dist/styles/themeContext.js.map +1 -1
  157. package/package.json +17 -7
@@ -0,0 +1,85 @@
1
+ ;/* empty css */
2
+ ;/* empty css */
3
+ ;/* empty css */
4
+ let _vanilla_extract_recipes_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
5
+ // components/Heading/Heading.vanilla.css.ts
6
+ var h1Recipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
7
+ defaultClassName: "_1qeu5xr1 _1qeu5xr0",
8
+ variantClassNames: { transform: {
9
+ uppercase: "_1qeu5xr2",
10
+ capitalize: "_1qeu5xr3",
11
+ capitalizeWords: "_1qeu5xr4"
12
+ } },
13
+ defaultVariants: {},
14
+ compoundVariants: []
15
+ });
16
+ var h1Style = "_1qeu5xr5 _1qeu5xr0";
17
+ var h2Recipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
18
+ defaultClassName: "_1qeu5xr6 _1qeu5xr0",
19
+ variantClassNames: { transform: {
20
+ uppercase: "_1qeu5xr7",
21
+ capitalize: "_1qeu5xr8",
22
+ capitalizeWords: "_1qeu5xr9"
23
+ } },
24
+ defaultVariants: {},
25
+ compoundVariants: []
26
+ });
27
+ var h2Style = "_1qeu5xra _1qeu5xr0";
28
+ var h3Recipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
29
+ defaultClassName: "_1qeu5xrb _1qeu5xr0",
30
+ variantClassNames: { transform: {
31
+ uppercase: "_1qeu5xrc",
32
+ capitalize: "_1qeu5xrd",
33
+ capitalizeWords: "_1qeu5xre"
34
+ } },
35
+ defaultVariants: {},
36
+ compoundVariants: []
37
+ });
38
+ var h3Style = "_1qeu5xrf _1qeu5xr0";
39
+ var h4Recipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
40
+ defaultClassName: "_1qeu5xrg _1qeu5xr0",
41
+ variantClassNames: { transform: {
42
+ uppercase: "_1qeu5xrh",
43
+ capitalize: "_1qeu5xri",
44
+ capitalizeWords: "_1qeu5xrj"
45
+ } },
46
+ defaultVariants: {},
47
+ compoundVariants: []
48
+ });
49
+ var h4Style = "_1qeu5xrk _1qeu5xr0";
50
+ var h5Recipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
51
+ defaultClassName: "_1qeu5xrl _1qeu5xr0",
52
+ variantClassNames: { transform: {
53
+ uppercase: "_1qeu5xrm",
54
+ capitalize: "_1qeu5xrn",
55
+ capitalizeWords: "_1qeu5xro"
56
+ } },
57
+ defaultVariants: {},
58
+ compoundVariants: []
59
+ });
60
+ var h5Style = "_1qeu5xrp _1qeu5xr0";
61
+ var h6Recipe = (0, _vanilla_extract_recipes_createRuntimeFn.createRuntimeFn)({
62
+ defaultClassName: "_1qeu5xrq _1qeu5xr0",
63
+ variantClassNames: { transform: {
64
+ uppercase: "_1qeu5xrr",
65
+ capitalize: "_1qeu5xrs",
66
+ capitalizeWords: "_1qeu5xrt"
67
+ } },
68
+ defaultVariants: {},
69
+ compoundVariants: []
70
+ });
71
+ var h6Style = "_1qeu5xru _1qeu5xr0";
72
+ exports.h1Recipe = h1Recipe;
73
+ exports.h1Style = h1Style;
74
+ exports.h2Recipe = h2Recipe;
75
+ exports.h2Style = h2Style;
76
+ exports.h3Recipe = h3Recipe;
77
+ exports.h3Style = h3Style;
78
+ exports.h4Recipe = h4Recipe;
79
+ exports.h4Style = h4Style;
80
+ exports.h5Recipe = h5Recipe;
81
+ exports.h5Style = h5Style;
82
+ exports.h6Recipe = h6Recipe;
83
+ exports.h6Style = h6Style;
84
+
85
+ //# sourceMappingURL=Heading.vanilla.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,74 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
5
+ // components/Heading/Heading.vanilla.css.ts
6
+ var h1Recipe = createRuntimeFn({
7
+ defaultClassName: "_1qeu5xr1 _1qeu5xr0",
8
+ variantClassNames: { transform: {
9
+ uppercase: "_1qeu5xr2",
10
+ capitalize: "_1qeu5xr3",
11
+ capitalizeWords: "_1qeu5xr4"
12
+ } },
13
+ defaultVariants: {},
14
+ compoundVariants: []
15
+ });
16
+ var h1Style = "_1qeu5xr5 _1qeu5xr0";
17
+ var h2Recipe = createRuntimeFn({
18
+ defaultClassName: "_1qeu5xr6 _1qeu5xr0",
19
+ variantClassNames: { transform: {
20
+ uppercase: "_1qeu5xr7",
21
+ capitalize: "_1qeu5xr8",
22
+ capitalizeWords: "_1qeu5xr9"
23
+ } },
24
+ defaultVariants: {},
25
+ compoundVariants: []
26
+ });
27
+ var h2Style = "_1qeu5xra _1qeu5xr0";
28
+ var h3Recipe = createRuntimeFn({
29
+ defaultClassName: "_1qeu5xrb _1qeu5xr0",
30
+ variantClassNames: { transform: {
31
+ uppercase: "_1qeu5xrc",
32
+ capitalize: "_1qeu5xrd",
33
+ capitalizeWords: "_1qeu5xre"
34
+ } },
35
+ defaultVariants: {},
36
+ compoundVariants: []
37
+ });
38
+ var h3Style = "_1qeu5xrf _1qeu5xr0";
39
+ var h4Recipe = createRuntimeFn({
40
+ defaultClassName: "_1qeu5xrg _1qeu5xr0",
41
+ variantClassNames: { transform: {
42
+ uppercase: "_1qeu5xrh",
43
+ capitalize: "_1qeu5xri",
44
+ capitalizeWords: "_1qeu5xrj"
45
+ } },
46
+ defaultVariants: {},
47
+ compoundVariants: []
48
+ });
49
+ var h4Style = "_1qeu5xrk _1qeu5xr0";
50
+ var h5Recipe = createRuntimeFn({
51
+ defaultClassName: "_1qeu5xrl _1qeu5xr0",
52
+ variantClassNames: { transform: {
53
+ uppercase: "_1qeu5xrm",
54
+ capitalize: "_1qeu5xrn",
55
+ capitalizeWords: "_1qeu5xro"
56
+ } },
57
+ defaultVariants: {},
58
+ compoundVariants: []
59
+ });
60
+ var h5Style = "_1qeu5xrp _1qeu5xr0";
61
+ var h6Recipe = createRuntimeFn({
62
+ defaultClassName: "_1qeu5xrq _1qeu5xr0",
63
+ variantClassNames: { transform: {
64
+ uppercase: "_1qeu5xrr",
65
+ capitalize: "_1qeu5xrs",
66
+ capitalizeWords: "_1qeu5xrt"
67
+ } },
68
+ defaultVariants: {},
69
+ compoundVariants: []
70
+ });
71
+ var h6Style = "_1qeu5xru _1qeu5xr0";
72
+ export { h1Recipe, h1Style, h2Recipe, h2Style, h3Recipe, h3Style, h4Recipe, h4Style, h5Recipe, h5Style, h6Recipe, h6Style };
73
+
74
+ //# sourceMappingURL=Heading.vanilla.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.vanilla.css.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import { cx } from "../../styles/cx.js";
2
+ import { useInlineStyle } from "../../styles/useInlineStyle.js";
3
+ import { h1Recipe, h1Style, h2Recipe, h2Style, h3Recipe, h3Style, h4Recipe, h4Style, h5Recipe, h5Style, h6Recipe, h6Style } from "./Heading.vanilla.css.js";
4
+ import { forwardRef } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ // components/Heading/Heading.vanilla.tsx
7
+ function createHeadingComponent(defaultElement, recipe, baseStyle, displayName) {
8
+ const HeadingImpl = forwardRef(({ as, className, css, style, transform, ...props }, ref) => {
9
+ const Component = as || defaultElement;
10
+ const mergedStyles = useInlineStyle(css, style);
11
+ const combinedClassName = cx(transform ? recipe({ transform }) : baseStyle, className);
12
+ return /* @__PURE__ */ jsx(Component, {
13
+ ref,
14
+ className: combinedClassName,
15
+ style: mergedStyles,
16
+ ...props
17
+ });
18
+ });
19
+ HeadingImpl.displayName = displayName;
20
+ return HeadingImpl;
21
+ }
22
+ var H1Vanilla = createHeadingComponent("h1", h1Recipe, h1Style, "H1Vanilla");
23
+ var H2Vanilla = createHeadingComponent("h2", h2Recipe, h2Style, "H2Vanilla");
24
+ var H3Vanilla = createHeadingComponent("h3", h3Recipe, h3Style, "H3Vanilla");
25
+ var H4Vanilla = createHeadingComponent("h4", h4Recipe, h4Style, "H4Vanilla");
26
+ var H5Vanilla = createHeadingComponent("h5", h5Recipe, h5Style, "H5Vanilla");
27
+ var H6Vanilla = createHeadingComponent("h6", h6Recipe, h6Style, "H6Vanilla");
28
+ export { H1Vanilla, H2Vanilla, H3Vanilla, H4Vanilla, H5Vanilla, H6Vanilla };
29
+
30
+ //# sourceMappingURL=Heading.vanilla.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.vanilla.js","names":[],"sources":["../../../components/Heading/Heading.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 type { RecipeVariantProps } from '@/styles/recipeVariants';\nimport { useInlineStyle } from '@/styles/useInlineStyle';\n\nimport {\n h1Recipe,\n h1Style,\n h2Recipe,\n h2Style,\n h3Recipe,\n h3Style,\n h4Recipe,\n h4Style,\n h5Recipe,\n h5Style,\n h6Recipe,\n h6Style,\n} from './Heading.vanilla.css';\n\ntype HeadingRecipeVariants = RecipeVariantProps<typeof h1Recipe>;\n\ninterface HeadingOwnProps extends HeadingRecipeVariants, CSSProps {}\n\ntype HeadingProps<C extends ElementType> = PolymorphicComponentProps<C, HeadingOwnProps>;\n\nfunction createHeadingComponent<C extends ElementType>(\n defaultElement: C,\n recipe: typeof h1Recipe,\n baseStyle: string,\n displayName: string,\n) {\n type HeadingComponent = PolymorphicComponent<C, HeadingProps<ElementType>>;\n\n const HeadingImpl = forwardRef(\n <E extends ElementType = C>(\n { as, className, css, style, transform, ...props }: HeadingProps<E>,\n ref?: PolymorphicRef<E>,\n ) => {\n const Component = (as || defaultElement) as ElementType;\n const mergedStyles = useInlineStyle(css, style);\n\n const combinedClassName = cx(transform ? recipe({ transform }) : baseStyle, className);\n\n return <Component ref={ref} className={combinedClassName} style={mergedStyles} {...props} />;\n },\n );\n\n HeadingImpl.displayName = displayName;\n\n return HeadingImpl as HeadingComponent;\n}\n\nexport type H1VanillaProps<C extends ElementType = 'h1'> = HeadingProps<C>;\nexport type H2VanillaProps<C extends ElementType = 'h2'> = HeadingProps<C>;\nexport type H3VanillaProps<C extends ElementType = 'h3'> = HeadingProps<C>;\nexport type H4VanillaProps<C extends ElementType = 'h4'> = HeadingProps<C>;\nexport type H5VanillaProps<C extends ElementType = 'h5'> = HeadingProps<C>;\nexport type H6VanillaProps<C extends ElementType = 'h6'> = HeadingProps<C>;\n\nexport const H1Vanilla = createHeadingComponent<'h1'>('h1', h1Recipe, h1Style, 'H1Vanilla');\nexport const H2Vanilla = createHeadingComponent<'h2'>('h2', h2Recipe, h2Style, 'H2Vanilla');\nexport const H3Vanilla = createHeadingComponent<'h3'>('h3', h3Recipe, h3Style, 'H3Vanilla');\nexport const H4Vanilla = createHeadingComponent<'h4'>('h4', h4Recipe, h4Style, 'H4Vanilla');\nexport const H5Vanilla = createHeadingComponent<'h5'>('h5', h5Recipe, h5Style, 'H5Vanilla');\nexport const H6Vanilla = createHeadingComponent<'h6'>('h6', h6Recipe, h6Style, 'H6Vanilla');\n"],"mappings":";;;;;;AAiCA,SAAS,uBACP,gBACA,QACA,WACA,aACA;CAGA,MAAM,cAAc,YAEhB,EAAE,IAAI,WAAW,KAAK,OAAO,WAAW,GAAG,SAC3C,QACG;EACH,MAAM,YAAa,MAAM;EACzB,MAAM,eAAe,eAAe,KAAK,KAAK;EAE9C,MAAM,oBAAoB,GAAG,YAAY,OAAO,EAAE,UAAU,CAAC,IAAI,WAAW,SAAS;EAErF,OAAO,oBAAC,WAAD;GAAgB;GAAK,WAAW;GAAmB,OAAO;GAAc,GAAI;EAAQ,CAAA;CAC7F,CACF;CAEA,YAAY,cAAc;CAE1B,OAAO;AACT;AASA,IAAa,YAAY,uBAA6B,MAAM,UAAU,SAAS,WAAW;AAC1F,IAAa,YAAY,uBAA6B,MAAM,UAAU,SAAS,WAAW;AAC1F,IAAa,YAAY,uBAA6B,MAAM,UAAU,SAAS,WAAW;AAC1F,IAAa,YAAY,uBAA6B,MAAM,UAAU,SAAS,WAAW;AAC1F,IAAa,YAAY,uBAA6B,MAAM,UAAU,SAAS,WAAW;AAC1F,IAAa,YAAY,uBAA6B,MAAM,UAAU,SAAS,WAAW"}
@@ -1,21 +1,15 @@
1
- const require_cssProps = require("../../styles/cssProps.cjs");
2
1
  const require_cx = require("../../styles/cx.cjs");
3
- const require_themeContext = require("../../styles/themeContext.cjs");
2
+ const require_recipeVariants = require("../../styles/recipeVariants.cjs");
3
+ const require_useInlineStyle = require("../../styles/useInlineStyle.cjs");
4
4
  const require_IconButton_vanilla_css = require("./IconButton.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/IconButton/IconButton.vanilla.tsx
8
+ var iconButtonClass = require_recipeVariants.withVariantKeys(require_IconButton_vanilla_css.iconButtonRecipe);
9
9
  var IconButtonVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, variant, ...props }, ref) => {
10
10
  const Component = as || "button";
11
- const { colors } = require_themeContext.useVanillaExtractTheme();
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
- };
18
- const recipeClass = require_IconButton_vanilla_css.iconButtonRecipe({
11
+ const mergedStyles = require_useInlineStyle.useInlineStyle(css, style);
12
+ const recipeClass = iconButtonClass({
19
13
  size,
20
14
  variant
21
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","iconButtonRecipe","cx"],"sources":["../../../components/IconButton/IconButton.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { iconButtonRecipe } from './IconButton.vanilla.css';\n\ntype IconButtonRecipeVariants = RecipeVariants<typeof iconButtonRecipe>;\n\ninterface IconButtonOwnProps extends Omit<IconButtonRecipeVariants, never>, 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 { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = iconButtonRecipe({ 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":";;;;;;;;AA4BA,IAAM,kCAAA,GAAiCA,MAAAA,WAAAA,EAEnC,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,GAAG,SAC/C,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAWC,qBAAAA,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAC1B;CAEA,MAAM,cAAcC,+BAAAA,iBAAiB;EAAE;EAAM;CAAQ,CAAC;CAEtD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
1
+ {"version":3,"file":"IconButton.vanilla.cjs","names":["withVariantKeys","iconButtonRecipe","forwardRef","useInlineStyle","cx"],"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,kBAAkBA,uBAAAA,gBAAgBC,+BAAAA,gBAAgB;AAgBxD,IAAM,kCAAA,GAAiCC,MAAAA,WAAAA,EAEnC,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,GAAG,SAC/C,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,eAAeC,uBAAAA,eAAe,KAAK,KAAK;CAE9C,MAAM,cAAc,gBAAgB;EAAE;EAAM;CAAQ,CAAC;CAErD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAgB;EAAK,WAAWC,WAAAA,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
@@ -1,21 +1,15 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
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 { colors } = useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = processCSSProp(css, colors);
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 { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { iconButtonRecipe } from './IconButton.vanilla.css';\n\ntype IconButtonRecipeVariants = RecipeVariants<typeof iconButtonRecipe>;\n\ninterface IconButtonOwnProps extends Omit<IconButtonRecipeVariants, never>, 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 { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = iconButtonRecipe({ 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":";;;;;;;;AA4BA,IAAM,iCAAiC,YAEnC,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,GAAG,SAC/C,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAEA,MAAM,cAAc,iBAAiB;EAAE;EAAM;CAAQ,CAAC;CAEtD,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
+ {"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 require_themeContext = require("../../styles/themeContext.cjs");
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 { colors } = require_themeContext.useVanillaExtractTheme();
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","useVanillaExtractTheme","processCSSProp","assignInlineVars","cx","image"],"sources":["../../../components/Image/Image.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\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 { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\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,EAAE,WAAWC,qBAAAA,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAC1B;CAEA,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
+ {"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,20 +1,12 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
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 { colors } = useVanillaExtractTheme();
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 { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\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 { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\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,WAAW,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAEA,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
+ {"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 require_themeContext = require("../../styles/themeContext.cjs");
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 { colors } = require_themeContext.useVanillaExtractTheme();
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","useVanillaExtractTheme","processCSSProp","assignInlineVars","inputWrapperRecipe","styledInputRecipe","adornmentWrapperRecipe","cx"],"sources":["../../../components/Input/Input.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { useFieldControl } from '../Field/FieldContext';\nimport { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from './Input.vanilla.css';\n\ntype StyledInputRecipeVariants = NonNullable<RecipeVariants<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 { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\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":";;;;;;;;;;;AA4BA,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,EAAE,WAAWC,qBAAAA,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAAE;CAEzE,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,oBAAoBJ,MAAAA,QAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACvF,MAAM,kBAAkBA,MAAAA,QAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,MAAM,oBAAoBK,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
+ {"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,10 +1,8 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
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 { colors } = useVanillaExtractTheme();
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 { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { useFieldControl } from '../Field/FieldContext';\nimport { adornmentWrapperRecipe, inputWrapperRecipe, styledInputRecipe } from './Input.vanilla.css';\n\ntype StyledInputRecipeVariants = NonNullable<RecipeVariants<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 { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n const mergedStyles = { ...cssStyles, ...style, ...assignInlineVars(vars) };\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":";;;;;;;;;AA4BA,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,WAAW,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAC7D,MAAM,eAAe;EAAE,GAAG;EAAW,GAAG;EAAO,GAAG,iBAAiB,IAAI;CAAE;CAEzE,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
+ {"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 require_themeContext = require("../../styles/themeContext.cjs");
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 { colors } = require_themeContext.useVanillaExtractTheme();
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
- };
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":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","labelRecipe","cx"],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<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 { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ 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":";;;;;;;;AAyBA,IAAM,6BAAA,GAA4BA,MAAAA,WAAAA,EAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAWC,qBAAAA,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAC1B;CAEA,MAAM,cAAcC,0BAAAA,YAAY;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAEtF,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
+ {"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,21 +1,15 @@
1
- import { processCSSProp } from "../../styles/cssProps.js";
2
1
  import { cx } from "../../styles/cx.js";
3
- import { useVanillaExtractTheme } from "../../styles/themeContext.js";
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 { colors } = useVanillaExtractTheme();
12
- const { style: cssStyles, vars } = processCSSProp(css, colors);
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 { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<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 { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ 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":";;;;;;;;AAyBA,IAAM,4BAA4B,YAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAEA,MAAM,cAAc,YAAY;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAEtF,OACE,oBAAC,WAAD;EAAgB;EAAK,WAAW,GAAG,aAAa,SAAS;EAAG,OAAO;EAAc,GAAI;CAAQ,CAAA;AAEjG,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
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"}