@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.
Files changed (233) hide show
  1. package/README.md +12 -5
  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.css.cjs.map +1 -1
  9. package/dist/components/AriaTable/AriaTable.vanilla.css.js.map +1 -1
  10. package/dist/components/AriaTable/AriaTable.vanilla.js +8 -4
  11. package/dist/components/AriaTable/AriaTable.vanilla.js.map +1 -1
  12. package/dist/components/Avatar/Avatar.vanilla.cjs +5 -2
  13. package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
  14. package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
  15. package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
  16. package/dist/components/Avatar/Avatar.vanilla.js +5 -2
  17. package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
  18. package/dist/components/Badge/Badge.vanilla.cjs +2 -10
  19. package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
  20. package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
  21. package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
  22. package/dist/components/Badge/Badge.vanilla.js +2 -10
  23. package/dist/components/Badge/Badge.vanilla.js.map +1 -1
  24. package/dist/components/Blockquote/Blockquote.vanilla.cjs +5 -11
  25. package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
  26. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
  27. package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
  28. package/dist/components/Blockquote/Blockquote.vanilla.js +5 -11
  29. package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
  30. package/dist/components/Box/Box.vanilla.cjs +2 -10
  31. package/dist/components/Box/Box.vanilla.cjs.map +1 -1
  32. package/dist/components/Box/Box.vanilla.css.cjs.map +1 -1
  33. package/dist/components/Box/Box.vanilla.css.js.map +1 -1
  34. package/dist/components/Box/Box.vanilla.js +2 -10
  35. package/dist/components/Box/Box.vanilla.js.map +1 -1
  36. package/dist/components/Bubble/Bubble.vanilla.cjs +2 -10
  37. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
  38. package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
  39. package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
  40. package/dist/components/Bubble/Bubble.vanilla.js +2 -10
  41. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
  42. package/dist/components/Button/Button.vanilla.cjs +2 -10
  43. package/dist/components/Button/Button.vanilla.cjs.map +1 -1
  44. package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
  45. package/dist/components/Button/Button.vanilla.css.js.map +1 -1
  46. package/dist/components/Button/Button.vanilla.js +2 -10
  47. package/dist/components/Button/Button.vanilla.js.map +1 -1
  48. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +3 -17
  49. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  50. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs.map +1 -1
  51. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js.map +1 -1
  52. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +3 -17
  53. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
  54. package/dist/components/Card/Card.vanilla.cjs +6 -11
  55. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  56. package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
  57. package/dist/components/Card/Card.vanilla.css.js.map +1 -1
  58. package/dist/components/Card/Card.vanilla.js +6 -11
  59. package/dist/components/Card/Card.vanilla.js.map +1 -1
  60. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +3 -6
  61. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
  62. package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs.map +1 -1
  63. package/dist/components/CodeBlock/CodeBlock.vanilla.css.js.map +1 -1
  64. package/dist/components/CodeBlock/CodeBlock.vanilla.js +3 -6
  65. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  66. package/dist/components/Combobox/Combobox.vanilla.cjs +3 -10
  67. package/dist/components/Combobox/Combobox.vanilla.cjs.map +1 -1
  68. package/dist/components/Combobox/Combobox.vanilla.css.cjs.map +1 -1
  69. package/dist/components/Combobox/Combobox.vanilla.css.js.map +1 -1
  70. package/dist/components/Combobox/Combobox.vanilla.js +3 -10
  71. package/dist/components/Combobox/Combobox.vanilla.js.map +1 -1
  72. package/dist/components/Container/Container.vanilla.cjs +5 -11
  73. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  74. package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
  75. package/dist/components/Container/Container.vanilla.css.js.map +1 -1
  76. package/dist/components/Container/Container.vanilla.js +5 -11
  77. package/dist/components/Container/Container.vanilla.js.map +1 -1
  78. package/dist/components/Elevation/Elevation.vanilla.cjs +5 -11
  79. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  80. package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
  81. package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
  82. package/dist/components/Elevation/Elevation.vanilla.js +5 -11
  83. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  84. package/dist/components/Field/Field.vanilla.cjs +3 -9
  85. package/dist/components/Field/Field.vanilla.cjs.map +1 -1
  86. package/dist/components/Field/Field.vanilla.css.cjs.map +1 -1
  87. package/dist/components/Field/Field.vanilla.css.js.map +1 -1
  88. package/dist/components/Field/Field.vanilla.js +3 -9
  89. package/dist/components/Field/Field.vanilla.js.map +1 -1
  90. package/dist/components/Flex/Flex.vanilla.cjs +5 -11
  91. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  92. package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
  93. package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
  94. package/dist/components/Flex/Flex.vanilla.js +5 -11
  95. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  96. package/dist/components/Grid/Grid.vanilla.cjs +7 -11
  97. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  98. package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
  99. package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
  100. package/dist/components/Grid/Grid.vanilla.js +7 -11
  101. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  102. package/dist/components/Heading/Heading.vanilla.cjs +35 -0
  103. package/dist/components/Heading/Heading.vanilla.cjs.map +1 -0
  104. package/dist/components/Heading/Heading.vanilla.css.cjs +85 -0
  105. package/dist/components/Heading/Heading.vanilla.css.cjs.map +1 -0
  106. package/dist/components/Heading/Heading.vanilla.css.js +74 -0
  107. package/dist/components/Heading/Heading.vanilla.css.js.map +1 -0
  108. package/dist/components/Heading/Heading.vanilla.js +30 -0
  109. package/dist/components/Heading/Heading.vanilla.js.map +1 -0
  110. package/dist/components/IconButton/IconButton.vanilla.cjs +5 -11
  111. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  112. package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
  113. package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
  114. package/dist/components/IconButton/IconButton.vanilla.js +5 -11
  115. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  116. package/dist/components/Image/Image.vanilla.cjs +2 -10
  117. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  118. package/dist/components/Image/Image.vanilla.css.cjs.map +1 -1
  119. package/dist/components/Image/Image.vanilla.css.js.map +1 -1
  120. package/dist/components/Image/Image.vanilla.js +2 -10
  121. package/dist/components/Image/Image.vanilla.js.map +1 -1
  122. package/dist/components/Input/Input.vanilla.cjs +2 -10
  123. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  124. package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
  125. package/dist/components/Input/Input.vanilla.css.js.map +1 -1
  126. package/dist/components/Input/Input.vanilla.js +2 -10
  127. package/dist/components/Input/Input.vanilla.js.map +1 -1
  128. package/dist/components/Label/Label.vanilla.cjs +5 -11
  129. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  130. package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
  131. package/dist/components/Label/Label.vanilla.css.js.map +1 -1
  132. package/dist/components/Label/Label.vanilla.js +5 -11
  133. package/dist/components/Label/Label.vanilla.js.map +1 -1
  134. package/dist/components/List/List.vanilla.cjs +10 -18
  135. package/dist/components/List/List.vanilla.cjs.map +1 -1
  136. package/dist/components/List/List.vanilla.css.cjs.map +1 -1
  137. package/dist/components/List/List.vanilla.css.js.map +1 -1
  138. package/dist/components/List/List.vanilla.js +7 -15
  139. package/dist/components/List/List.vanilla.js.map +1 -1
  140. package/dist/components/Meter/Meter.vanilla.cjs +3 -8
  141. package/dist/components/Meter/Meter.vanilla.cjs.map +1 -1
  142. package/dist/components/Meter/Meter.vanilla.css.cjs.map +1 -1
  143. package/dist/components/Meter/Meter.vanilla.css.js.map +1 -1
  144. package/dist/components/Meter/Meter.vanilla.js +3 -8
  145. package/dist/components/Meter/Meter.vanilla.js.map +1 -1
  146. package/dist/components/Panel/Panel.vanilla.cjs +2 -10
  147. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  148. package/dist/components/Panel/Panel.vanilla.css.cjs.map +1 -1
  149. package/dist/components/Panel/Panel.vanilla.css.js.map +1 -1
  150. package/dist/components/Panel/Panel.vanilla.js +2 -10
  151. package/dist/components/Panel/Panel.vanilla.js.map +1 -1
  152. package/dist/components/Paragraph/Paragraph.vanilla.cjs +5 -11
  153. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  154. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
  155. package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
  156. package/dist/components/Paragraph/Paragraph.vanilla.js +5 -11
  157. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  158. package/dist/components/RowLink/RowLink.vanilla.cjs.map +1 -1
  159. package/dist/components/RowLink/RowLink.vanilla.css.cjs.map +1 -1
  160. package/dist/components/RowLink/RowLink.vanilla.css.js.map +1 -1
  161. package/dist/components/RowLink/RowLink.vanilla.js.map +1 -1
  162. package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs +3 -14
  163. package/dist/components/SegmentedControl/SegmentedControl.vanilla.cjs.map +1 -1
  164. package/dist/components/SegmentedControl/SegmentedControl.vanilla.css.cjs.map +1 -1
  165. package/dist/components/SegmentedControl/SegmentedControl.vanilla.css.js.map +1 -1
  166. package/dist/components/SegmentedControl/SegmentedControl.vanilla.js +3 -14
  167. package/dist/components/SegmentedControl/SegmentedControl.vanilla.js.map +1 -1
  168. package/dist/components/Skeleton/Skeleton.vanilla.cjs +2 -10
  169. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  170. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
  171. package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
  172. package/dist/components/Skeleton/Skeleton.vanilla.js +2 -10
  173. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  174. package/dist/components/Spinner/Spinner.vanilla.cjs +3 -6
  175. package/dist/components/Spinner/Spinner.vanilla.cjs.map +1 -1
  176. package/dist/components/Spinner/Spinner.vanilla.css.cjs.map +1 -1
  177. package/dist/components/Spinner/Spinner.vanilla.css.js.map +1 -1
  178. package/dist/components/Spinner/Spinner.vanilla.js +3 -6
  179. package/dist/components/Spinner/Spinner.vanilla.js.map +1 -1
  180. package/dist/components/SplitLayout/SplitLayout.vanilla.cjs +3 -10
  181. package/dist/components/SplitLayout/SplitLayout.vanilla.cjs.map +1 -1
  182. package/dist/components/SplitLayout/SplitLayout.vanilla.css.cjs.map +1 -1
  183. package/dist/components/SplitLayout/SplitLayout.vanilla.css.js.map +1 -1
  184. package/dist/components/SplitLayout/SplitLayout.vanilla.js +3 -10
  185. package/dist/components/SplitLayout/SplitLayout.vanilla.js.map +1 -1
  186. package/dist/components/Table/Table.vanilla.cjs +8 -4
  187. package/dist/components/Table/Table.vanilla.cjs.map +1 -1
  188. package/dist/components/Table/Table.vanilla.css.cjs.map +1 -1
  189. package/dist/components/Table/Table.vanilla.css.js.map +1 -1
  190. package/dist/components/Table/Table.vanilla.js +8 -4
  191. package/dist/components/Table/Table.vanilla.js.map +1 -1
  192. package/dist/components/Text/Text.vanilla.cjs +5 -11
  193. package/dist/components/Text/Text.vanilla.cjs.map +1 -1
  194. package/dist/components/Text/Text.vanilla.css.cjs.map +1 -1
  195. package/dist/components/Text/Text.vanilla.css.js.map +1 -1
  196. package/dist/components/Text/Text.vanilla.js +5 -11
  197. package/dist/components/Text/Text.vanilla.js.map +1 -1
  198. package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
  199. package/dist/components/TextField/TextField.vanilla.css.cjs.map +1 -1
  200. package/dist/components/TextField/TextField.vanilla.css.js.map +1 -1
  201. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  202. package/dist/components/Textarea/Textarea.vanilla.cjs +2 -10
  203. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  204. package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
  205. package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
  206. package/dist/components/Textarea/Textarea.vanilla.js +2 -10
  207. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  208. package/dist/components/Toast/Toast.vanilla.cjs +4 -15
  209. package/dist/components/Toast/Toast.vanilla.cjs.map +1 -1
  210. package/dist/components/Toast/Toast.vanilla.css.cjs.map +1 -1
  211. package/dist/components/Toast/Toast.vanilla.css.js.map +1 -1
  212. package/dist/components/Toast/Toast.vanilla.js +4 -15
  213. package/dist/components/Toast/Toast.vanilla.js.map +1 -1
  214. package/dist/faency.css +118 -2
  215. package/dist/index.cjs +9 -0
  216. package/dist/index.d.cts +36800 -0
  217. package/dist/index.d.ts +248 -94
  218. package/dist/index.js +3 -1
  219. package/dist/styles/recipeVariants.cjs +15 -0
  220. package/dist/styles/recipeVariants.cjs.map +1 -0
  221. package/dist/styles/recipeVariants.js +15 -0
  222. package/dist/styles/recipeVariants.js.map +1 -0
  223. package/dist/styles/themeContext.cjs.map +1 -1
  224. package/dist/styles/themeContext.js.map +1 -1
  225. package/dist/styles/themes.css.cjs.map +1 -1
  226. package/dist/styles/themes.css.js.map +1 -1
  227. package/dist/styles/tokens.css.cjs.map +1 -1
  228. package/dist/styles/tokens.css.js.map +1 -1
  229. package/dist/utils/warnOnce.cjs +8 -1
  230. package/dist/utils/warnOnce.cjs.map +1 -1
  231. package/dist/utils/warnOnce.js +8 -1
  232. package/dist/utils/warnOnce.js.map +1 -1
  233. package/package.json +32 -22
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/IconButton/IconButton.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe, RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\n// Base button styles (matching BUTTON_BASE_STYLES from Button component)\nconst baseIconButton = style({\n // Reset\n appearance: 'none',\n userSelect: 'none',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n // Layout\n alignItems: 'center',\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'center',\n position: 'relative',\n padding: '0',\n\n // Typography\n fontFamily: 'inherit',\n fontSize: '14px',\n lineHeight: '1',\n\n // Custom\n textDecoration: 'none',\n backgroundColor: 'transparent',\n\n // Pseudo-elements for hover/active effects\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: 'inherit',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: 'inherit',\n },\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.5,\n },\n '&:focus-visible': {\n outline: '2px solid currentColor',\n },\n '&:focus-visible::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:focus-visible::after': {\n opacity: 0.15,\n },\n '&:active::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:hover::after': {\n opacity: 0.05,\n },\n },\n },\n },\n});\n\nexport const iconButtonRecipe = recipe({\n base: baseIconButton,\n\n variants: {\n size: {\n '1': {\n borderRadius: tokens.radii['1'],\n height: tokens.sizes['5'],\n width: tokens.sizes['5'],\n },\n '2': {\n borderRadius: tokens.radii['2'],\n height: tokens.sizes['6'],\n width: tokens.sizes['6'],\n },\n '3': {\n borderRadius: tokens.radii['2'],\n height: tokens.sizes['7'],\n width: tokens.sizes['7'],\n },\n '4': {\n borderRadius: tokens.radii['3'],\n height: tokens.sizes['8'],\n width: tokens.sizes['8'],\n },\n },\n variant: {\n default: {\n color: tokens.colors.slate['10'],\n },\n contrast: {\n color: tokens.colors.hiContrast,\n },\n primary: {\n color: tokens.colors.primary,\n },\n red: {\n color: tokens.colors.red['9'],\n },\n green: {\n color: tokens.colors.green['9'],\n },\n orange: {\n color: tokens.colors.orange['9'],\n },\n },\n },\n\n defaultVariants: {\n variant: 'default',\n size: '2',\n },\n});\n\nexport type IconButtonRecipeVariants = RecipeVariants<typeof iconButtonRecipe>;\n"],"mappings":""}
1
+ {"version":3,"file":"IconButton.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.vanilla.css.js","names":["_7a468"],"sources":["../../../components/IconButton/IconButton.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe, RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\n// Base button styles (matching BUTTON_BASE_STYLES from Button component)\nconst baseIconButton = style({\n // Reset\n appearance: 'none',\n userSelect: 'none',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n\n // Layout\n alignItems: 'center',\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'center',\n position: 'relative',\n padding: '0',\n\n // Typography\n fontFamily: 'inherit',\n fontSize: '14px',\n lineHeight: '1',\n\n // Custom\n textDecoration: 'none',\n backgroundColor: 'transparent',\n\n // Pseudo-elements for hover/active effects\n selectors: {\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: 'inherit',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n borderRadius: 'inherit',\n },\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.5,\n },\n '&:focus-visible': {\n outline: '2px solid currentColor',\n },\n '&:focus-visible::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:focus-visible::after': {\n opacity: 0.15,\n },\n '&:active::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n '@media': {\n '(hover: hover)': {\n selectors: {\n '&:hover': {\n cursor: 'pointer',\n },\n '&:hover::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&:hover::after': {\n opacity: 0.05,\n },\n },\n },\n },\n});\n\nexport const iconButtonRecipe = recipe({\n base: baseIconButton,\n\n variants: {\n size: {\n '1': {\n borderRadius: tokens.radii['1'],\n height: tokens.sizes['5'],\n width: tokens.sizes['5'],\n },\n '2': {\n borderRadius: tokens.radii['2'],\n height: tokens.sizes['6'],\n width: tokens.sizes['6'],\n },\n '3': {\n borderRadius: tokens.radii['2'],\n height: tokens.sizes['7'],\n width: tokens.sizes['7'],\n },\n '4': {\n borderRadius: tokens.radii['3'],\n height: tokens.sizes['8'],\n width: tokens.sizes['8'],\n },\n },\n variant: {\n default: {\n color: tokens.colors.slate['10'],\n },\n contrast: {\n color: tokens.colors.hiContrast,\n },\n primary: {\n color: tokens.colors.primary,\n },\n red: {\n color: tokens.colors.red['9'],\n },\n green: {\n color: tokens.colors.green['9'],\n },\n orange: {\n color: tokens.colors.orange['9'],\n },\n },\n },\n\n defaultVariants: {\n variant: 'default',\n size: '2',\n },\n});\n\nexport type IconButtonRecipeVariants = RecipeVariants<typeof iconButtonRecipe>;\n"],"mappings":""}
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 { 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 +1 @@
1
- {"version":3,"file":"Image.vanilla.css.cjs","names":[],"sources":["../../../components/Image/Image.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nexport const image = style({\n verticalAlign: 'middle',\n maxWidth: '100%',\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Image.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Image.vanilla.css.js","names":[],"sources":["../../../components/Image/Image.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nexport const image = style({\n verticalAlign: 'middle',\n maxWidth: '100%',\n});\n"],"mappings":""}
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 { 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 +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 { 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 +1 @@
1
- {"version":3,"file":"Label.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Label/Label.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Base label styles (inherits from Text component with label-specific overrides)\nconst labelBase = style({\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n display: 'inline-block',\n verticalAlign: 'middle',\n cursor: 'default',\n fontWeight: tokens.fontWeights.medium,\n lineHeight: '2.18',\n});\n\nexport const labelRecipe = recipe({\n base: labelBase,\n\n variants: {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n transform: transformVariants,\n noWrap: noWrapVariants,\n },\n\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Label.vanilla.css.cjs","names":[],"sources":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"Label.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Label/Label.vanilla.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport {\n colorVariants,\n gradientVariants,\n noWrapVariants,\n sizeVariants,\n transformVariants,\n weightVariants,\n} from '../../styles/textVariants.css';\nimport { tokens } from '../../styles/tokens.css';\n\n// Base label styles (inherits from Text component with label-specific overrides)\nconst labelBase = style({\n margin: '0',\n fontFamily: tokens.fonts.rubik,\n fontVariantNumeric: 'tabular-nums',\n display: 'inline-block',\n verticalAlign: 'middle',\n cursor: 'default',\n fontWeight: tokens.fontWeights.medium,\n lineHeight: '2.18',\n});\n\nexport const labelRecipe = recipe({\n base: labelBase,\n\n variants: {\n size: sizeVariants,\n weight: weightVariants,\n variant: colorVariants,\n gradient: gradientVariants,\n transform: transformVariants,\n noWrap: noWrapVariants,\n },\n\n defaultVariants: {\n size: '0',\n variant: 'subtle',\n transform: 'capitalize',\n },\n});\n"],"mappings":""}
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 { 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"}
@@ -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 require_themeContext = require("../../styles/themeContext.cjs");
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(require_List_vanilla_css.liRecipe({ elevation }), className),
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(require_Flex_vanilla_css.flexRecipe({
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(require_Flex_vanilla_css.flexRecipe({
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":["createContext","useVanillaExtractTheme","processCSSProp","assignInlineVars","useContext","useMemo","forwardRef","cx","ul","ol","isValidElement","Fragment","useRef","useCallback","liRecipe","flexRecipe","itemButton","itemText"],"sources":["../../../components/List/List.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport React, {\n Children,\n createContext,\n CSSProperties,\n forwardRef,\n Fragment,\n isValidElement,\n ReactNode,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef,\n} from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport { cx } from '../../styles/cx';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport type {\n FlexAlignSimplified,\n FlexDirection,\n FlexJustifySimplified,\n Gap,\n} from '../../styles/types';\nimport { warnOnce } from '../../utils/warnOnce';\nimport { flexRecipe } from '../Flex/Flex.vanilla.css';\nimport { controlsWrapper, itemButton, itemText, liRecipe, ol, ul } from './List.vanilla.css';\n\nconst ListVanillaContext = createContext({ interactive: false });\n\nconst useInlineStyle = (css: CSSProps['css'], style?: CSSProperties) => {\n const { colors } = useVanillaExtractTheme();\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n return { ...cssStyles, ...style, ...assignInlineVars(vars) };\n};\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 = NonNullable<RecipeVariants<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(liRecipe({ elevation }), className)}\n style={inlineStyle}\n {...props}\n >\n {interactive ? (\n <button\n ref={setContentRef}\n type=\"button\"\n disabled={disabled}\n className={cx(flexRecipe({ align, justify, direction, gap, wrap }), itemButton)}\n >\n {content}\n </button>\n ) : (\n <span\n ref={setContentRef}\n className={cx(\n flexRecipe({ 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":"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"}
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":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"List.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/List/List.vanilla.css.ts"],"sourcesContent":["import { globalStyle, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\nimport { elevationVariants } from '../Elevation/Elevation.vanilla.css';\n\nconst list = {\n margin: '0 0 0 8px',\n padding: 0,\n color: tokens.colors.textDefault,\n};\n\nexport const ul = style(list);\nexport const ol = style(list);\n\nconst checkboxList = `${ul}:has(> li > span > input[type=\"checkbox\"])`;\n\nglobalStyle(checkboxList, {\n margin: 0,\n listStyle: 'none',\n});\n\nglobalStyle(`${checkboxList} > li`, {\n marginLeft: 0,\n});\n\nglobalStyle(`${checkboxList} > li > span input`, {\n margin: '0 3px 0 0',\n});\n\n// A nested checkbox list keeps its indentation.\nglobalStyle(`li > ${checkboxList}, li > ${checkboxList} > li`, {\n marginLeft: tokens.space[2],\n});\n\nglobalStyle(`${ol} > li::marker`, {\n fontSize: tokens.fontSizes[3],\n fontFamily: tokens.fonts.rubik,\n});\n\nexport const liRecipe = recipe({\n base: {\n margin: tokens.space[2],\n outline: 'none',\n position: 'relative',\n selectors: {\n '&:focus-within': {\n boxShadow: 'none',\n },\n },\n },\n\n variants: {\n elevation: elevationVariants,\n },\n\n defaultVariants: {\n elevation: 0,\n },\n});\n\nconst itemContent = style({\n backgroundColor: 'transparent',\n color: 'inherit',\n borderRadius: 'inherit',\n fontFamily: tokens.fonts.rubik,\n fontSize: tokens.fontSizes[3],\n fontVariantNumeric: 'tabular-nums',\n});\n\nexport const itemText = style([\n itemContent,\n {\n flexGrow: 1,\n padding: tokens.space[1],\n },\n]);\n\nconst itemLayer = {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n} as const;\n\nconst primaryTint = {\n backgroundColor: tokens.colors.primary,\n opacity: 0.05,\n};\n\nexport const itemButton = style([\n itemContent,\n {\n appearance: 'none',\n userSelect: 'none',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n // Transparent, not none: forced-colors mode drops the box-shadow ring but shows this outline.\n outline: '2px solid transparent',\n outlineOffset: '-2px',\n flexGrow: 1,\n width: '100%',\n padding: tokens.space[2],\n position: 'relative',\n\n selectors: {\n '&::before': itemLayer,\n '&::after': itemLayer,\n // No pointer-events: none, or clicks would fall through to the <li> and fire its onClick.\n '&:disabled': {\n opacity: 0.5,\n },\n '&:focus, &:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${tokens.colors.listItemFocusBorder}`,\n },\n '&:enabled:active::before': {\n backgroundColor: tokens.colors.listItemActiveBg,\n },\n '&:enabled:active::after': primaryTint,\n },\n\n '@media': {\n '(any-hover: hover)': {\n selectors: {\n '&:enabled:hover': {\n cursor: 'pointer',\n },\n '&:enabled:hover::before': {\n backgroundColor: tokens.colors.listItemHoverBg,\n },\n '&:enabled:hover::after': primaryTint,\n },\n },\n },\n },\n]);\n\nexport const controlsWrapper = style({\n position: 'absolute',\n top: 0,\n right: tokens.space[2],\n zIndex: 1,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n overflow: 'visible',\n});\n"],"mappings":""}
1
+ {"version":3,"file":"List.vanilla.css.cjs","names":[],"sources":[],"mappings":""}