@traefik-labs/faency 12.3.9 → 13.0.0

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 (501) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +2 -3
  2. package/dist/_virtual/_rolldown/runtime.js +1 -2
  3. package/dist/colors/deepBlue.cjs +1 -2
  4. package/dist/colors/deepBlue.js +1 -2
  5. package/dist/colors/elevation.cjs +1 -2
  6. package/dist/colors/elevation.js +1 -2
  7. package/dist/colors/grayBlue.cjs +1 -2
  8. package/dist/colors/grayBlue.js +1 -2
  9. package/dist/colors/index.cjs +1 -2
  10. package/dist/colors/index.cjs.map +1 -1
  11. package/dist/colors/index.js +1 -2
  12. package/dist/colors/index.js.map +1 -1
  13. package/dist/colors/neon.cjs +1 -2
  14. package/dist/colors/neon.js +1 -2
  15. package/dist/colors/orange.cjs +1 -2
  16. package/dist/colors/orange.js +1 -2
  17. package/dist/colors/red.cjs +1 -2
  18. package/dist/colors/red.js +1 -2
  19. package/dist/components/AccessibleIcon/AccessibleIcon.cjs +1 -2
  20. package/dist/components/AccessibleIcon/AccessibleIcon.cjs.map +1 -1
  21. package/dist/components/AccessibleIcon/AccessibleIcon.js +1 -2
  22. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs +1 -2
  23. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs.map +1 -1
  24. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js +1 -2
  25. package/dist/components/Accordion/Accordion.cjs +1 -2
  26. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  27. package/dist/components/Accordion/Accordion.js +1 -2
  28. package/dist/components/Accordion/Accordion.js.map +1 -1
  29. package/dist/components/Accordion/Accordion.themes.cjs +1 -2
  30. package/dist/components/Accordion/Accordion.themes.cjs.map +1 -1
  31. package/dist/components/Accordion/Accordion.themes.js +1 -2
  32. package/dist/components/Accordion/Accordion.themes.js.map +1 -1
  33. package/dist/components/Alert/Alert.cjs +1 -2
  34. package/dist/components/Alert/Alert.cjs.map +1 -1
  35. package/dist/components/Alert/Alert.js +1 -2
  36. package/dist/components/AriaTable/AriaTable.cjs +1 -2
  37. package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
  38. package/dist/components/AriaTable/AriaTable.js +1 -2
  39. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  40. package/dist/components/Avatar/Avatar.cjs +1 -2
  41. package/dist/components/Avatar/Avatar.cjs.map +1 -1
  42. package/dist/components/Avatar/Avatar.js +1 -2
  43. package/dist/components/Avatar/Avatar.js.map +1 -1
  44. package/dist/components/Avatar/Avatar.vanilla.cjs +8 -8
  45. package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
  46. package/dist/components/Avatar/Avatar.vanilla.css.cjs +1 -2
  47. package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
  48. package/dist/components/Avatar/Avatar.vanilla.css.js +1 -2
  49. package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
  50. package/dist/components/Avatar/Avatar.vanilla.js +8 -8
  51. package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
  52. package/dist/components/Badge/Badge.cjs +4 -4
  53. package/dist/components/Badge/Badge.cjs.map +1 -1
  54. package/dist/components/Badge/Badge.js +4 -4
  55. package/dist/components/Badge/Badge.js.map +1 -1
  56. package/dist/components/Badge/Badge.theme.cjs +1 -2
  57. package/dist/components/Badge/Badge.theme.js +1 -2
  58. package/dist/components/Badge/Badge.themes.cjs +1 -2
  59. package/dist/components/Badge/Badge.themes.cjs.map +1 -1
  60. package/dist/components/Badge/Badge.themes.js +1 -2
  61. package/dist/components/Badge/Badge.themes.js.map +1 -1
  62. package/dist/components/Badge/Badge.vanilla.cjs +8 -8
  63. package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
  64. package/dist/components/Badge/Badge.vanilla.css.cjs +1 -2
  65. package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
  66. package/dist/components/Badge/Badge.vanilla.css.js +1 -2
  67. package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
  68. package/dist/components/Badge/Badge.vanilla.js +8 -8
  69. package/dist/components/Badge/Badge.vanilla.js.map +1 -1
  70. package/dist/components/Blockquote/Blockquote.cjs +1 -2
  71. package/dist/components/Blockquote/Blockquote.cjs.map +1 -1
  72. package/dist/components/Blockquote/Blockquote.js +1 -2
  73. package/dist/components/Blockquote/Blockquote.vanilla.cjs +10 -10
  74. package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
  75. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs +1 -2
  76. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
  77. package/dist/components/Blockquote/Blockquote.vanilla.css.js +1 -2
  78. package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
  79. package/dist/components/Blockquote/Blockquote.vanilla.js +10 -10
  80. package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
  81. package/dist/components/Box/Box.cjs +1 -2
  82. package/dist/components/Box/Box.cjs.map +1 -1
  83. package/dist/components/Box/Box.js +1 -2
  84. package/dist/components/Box/Box.vanilla.cjs +1 -2
  85. package/dist/components/Box/Box.vanilla.cjs.map +1 -1
  86. package/dist/components/Box/Box.vanilla.css.cjs +1 -2
  87. package/dist/components/Box/Box.vanilla.css.js +1 -2
  88. package/dist/components/Box/Box.vanilla.js +1 -2
  89. package/dist/components/Bubble/Bubble.cjs +1 -2
  90. package/dist/components/Bubble/Bubble.cjs.map +1 -1
  91. package/dist/components/Bubble/Bubble.js +18 -17
  92. package/dist/components/Bubble/Bubble.js.map +1 -1
  93. package/dist/components/Bubble/Bubble.vanilla.cjs +7 -7
  94. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
  95. package/dist/components/Bubble/Bubble.vanilla.css.cjs +1 -2
  96. package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
  97. package/dist/components/Bubble/Bubble.vanilla.css.js +1 -2
  98. package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
  99. package/dist/components/Bubble/Bubble.vanilla.js +7 -7
  100. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
  101. package/dist/components/Button/Button.cjs +3 -3
  102. package/dist/components/Button/Button.cjs.map +1 -1
  103. package/dist/components/Button/Button.js +3 -3
  104. package/dist/components/Button/Button.js.map +1 -1
  105. package/dist/components/Button/Button.themes.cjs +1 -2
  106. package/dist/components/Button/Button.themes.cjs.map +1 -1
  107. package/dist/components/Button/Button.themes.js +1 -2
  108. package/dist/components/Button/Button.themes.js.map +1 -1
  109. package/dist/components/Button/Button.vanilla.cjs +9 -9
  110. package/dist/components/Button/Button.vanilla.cjs.map +1 -1
  111. package/dist/components/Button/Button.vanilla.css.cjs +1 -2
  112. package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
  113. package/dist/components/Button/Button.vanilla.css.js +1 -2
  114. package/dist/components/Button/Button.vanilla.css.js.map +1 -1
  115. package/dist/components/Button/Button.vanilla.js +9 -9
  116. package/dist/components/Button/Button.vanilla.js.map +1 -1
  117. package/dist/components/ButtonSwitch/ButtonSwitch.cjs +1 -2
  118. package/dist/components/ButtonSwitch/ButtonSwitch.cjs.map +1 -1
  119. package/dist/components/ButtonSwitch/ButtonSwitch.js +1 -2
  120. package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs +1 -2
  121. package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs.map +1 -1
  122. package/dist/components/ButtonSwitch/ButtonSwitch.themes.js +1 -2
  123. package/dist/components/ButtonSwitch/ButtonSwitch.themes.js.map +1 -1
  124. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +1 -2
  125. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  126. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs +1 -2
  127. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js +1 -2
  128. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +1 -2
  129. package/dist/components/Card/Card.cjs +1 -2
  130. package/dist/components/Card/Card.cjs.map +1 -1
  131. package/dist/components/Card/Card.js +1 -2
  132. package/dist/components/Card/Card.theme.cjs +1 -2
  133. package/dist/components/Card/Card.theme.js +1 -2
  134. package/dist/components/Card/Card.themes.cjs +1 -2
  135. package/dist/components/Card/Card.themes.cjs.map +1 -1
  136. package/dist/components/Card/Card.themes.js +1 -2
  137. package/dist/components/Card/Card.themes.js.map +1 -1
  138. package/dist/components/Card/Card.vanilla.cjs +1 -2
  139. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  140. package/dist/components/Card/Card.vanilla.css.cjs +1 -2
  141. package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
  142. package/dist/components/Card/Card.vanilla.css.js +1 -2
  143. package/dist/components/Card/Card.vanilla.css.js.map +1 -1
  144. package/dist/components/Card/Card.vanilla.js +1 -2
  145. package/dist/components/Checkbox/Checkbox.cjs +1 -2
  146. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  147. package/dist/components/Checkbox/Checkbox.js +1 -2
  148. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  149. package/dist/components/Checkbox/Checkbox.themes.cjs +1 -2
  150. package/dist/components/Checkbox/Checkbox.themes.cjs.map +1 -1
  151. package/dist/components/Checkbox/Checkbox.themes.js +1 -2
  152. package/dist/components/Checkbox/Checkbox.themes.js.map +1 -1
  153. package/dist/components/CodeBlock/CodeBlock.cjs +1 -2
  154. package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -1
  155. package/dist/components/CodeBlock/CodeBlock.js +1 -2
  156. package/dist/components/CodeBlock/CodeBlock.js.map +1 -1
  157. package/dist/components/CodeBlock/CodeBlock.themes.cjs +1 -2
  158. package/dist/components/CodeBlock/CodeBlock.themes.cjs.map +1 -1
  159. package/dist/components/CodeBlock/CodeBlock.themes.js +1 -2
  160. package/dist/components/CodeBlock/CodeBlock.themes.js.map +1 -1
  161. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +1 -2
  162. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
  163. package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs +1 -2
  164. package/dist/components/CodeBlock/CodeBlock.vanilla.css.js +1 -2
  165. package/dist/components/CodeBlock/CodeBlock.vanilla.js +1 -2
  166. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  167. package/dist/components/CodeBlock/prism-extend.cjs +7 -3
  168. package/dist/components/CodeBlock/prism-extend.cjs.map +1 -1
  169. package/dist/components/CodeBlock/prism-extend.js +1 -2
  170. package/dist/components/Container/Container.cjs +1 -2
  171. package/dist/components/Container/Container.cjs.map +1 -1
  172. package/dist/components/Container/Container.js +1 -2
  173. package/dist/components/Container/Container.vanilla.cjs +6 -6
  174. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  175. package/dist/components/Container/Container.vanilla.css.cjs +1 -2
  176. package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
  177. package/dist/components/Container/Container.vanilla.css.js +1 -2
  178. package/dist/components/Container/Container.vanilla.css.js.map +1 -1
  179. package/dist/components/Container/Container.vanilla.js +6 -6
  180. package/dist/components/Container/Container.vanilla.js.map +1 -1
  181. package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -2
  182. package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
  183. package/dist/components/DateTimePicker/DateTimePicker.js +1 -2
  184. package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
  185. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs +17 -14
  186. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs.map +1 -1
  187. package/dist/components/DateTimePickerInput/DateTimePickerInput.js +17 -14
  188. package/dist/components/DateTimePickerInput/DateTimePickerInput.js.map +1 -1
  189. package/dist/components/Dialog/Dialog.cjs +1 -2
  190. package/dist/components/Dialog/Dialog.cjs.map +1 -1
  191. package/dist/components/Dialog/Dialog.js +1 -2
  192. package/dist/components/Dialog/Dialog.js.map +1 -1
  193. package/dist/components/Dialog/Dialog.themes.cjs +1 -2
  194. package/dist/components/Dialog/Dialog.themes.cjs.map +1 -1
  195. package/dist/components/Dialog/Dialog.themes.js +1 -2
  196. package/dist/components/Dialog/Dialog.themes.js.map +1 -1
  197. package/dist/components/DropdownMenu/DropdownMenu.cjs +1 -2
  198. package/dist/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
  199. package/dist/components/DropdownMenu/DropdownMenu.js +1 -2
  200. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  201. package/dist/components/DropdownMenu/styles.cjs +1 -2
  202. package/dist/components/DropdownMenu/styles.cjs.map +1 -1
  203. package/dist/components/DropdownMenu/styles.js +1 -2
  204. package/dist/components/Elevation/Elevation.cjs +1 -2
  205. package/dist/components/Elevation/Elevation.cjs.map +1 -1
  206. package/dist/components/Elevation/Elevation.js +1 -2
  207. package/dist/components/Elevation/Elevation.vanilla.cjs +3 -3
  208. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  209. package/dist/components/Elevation/Elevation.vanilla.css.cjs +1 -2
  210. package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
  211. package/dist/components/Elevation/Elevation.vanilla.css.js +1 -2
  212. package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
  213. package/dist/components/Elevation/Elevation.vanilla.js +3 -3
  214. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  215. package/dist/components/FaencyProvider.cjs +1 -2
  216. package/dist/components/FaencyProvider.cjs.map +1 -1
  217. package/dist/components/FaencyProvider.js +1 -2
  218. package/dist/components/FaencyProvider.js.map +1 -1
  219. package/dist/components/Flex/Flex.cjs +1 -2
  220. package/dist/components/Flex/Flex.cjs.map +1 -1
  221. package/dist/components/Flex/Flex.js +1 -2
  222. package/dist/components/Flex/Flex.vanilla.cjs +9 -9
  223. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  224. package/dist/components/Flex/Flex.vanilla.css.cjs +1 -2
  225. package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
  226. package/dist/components/Flex/Flex.vanilla.css.js +1 -2
  227. package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
  228. package/dist/components/Flex/Flex.vanilla.js +9 -9
  229. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  230. package/dist/components/Grid/Grid.cjs +1 -2
  231. package/dist/components/Grid/Grid.cjs.map +1 -1
  232. package/dist/components/Grid/Grid.js +1 -2
  233. package/dist/components/Grid/Grid.vanilla.cjs +10 -10
  234. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  235. package/dist/components/Grid/Grid.vanilla.css.cjs +1 -2
  236. package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
  237. package/dist/components/Grid/Grid.vanilla.css.js +1 -2
  238. package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
  239. package/dist/components/Grid/Grid.vanilla.js +10 -10
  240. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  241. package/dist/components/Heading/Heading.cjs +1 -2
  242. package/dist/components/Heading/Heading.cjs.map +1 -1
  243. package/dist/components/Heading/Heading.js +1 -2
  244. package/dist/components/Heading/Heading.themes.cjs +1 -2
  245. package/dist/components/Heading/Heading.themes.cjs.map +1 -1
  246. package/dist/components/Heading/Heading.themes.js +1 -2
  247. package/dist/components/Heading/Heading.themes.js.map +1 -1
  248. package/dist/components/IconButton/IconButton.cjs +1 -2
  249. package/dist/components/IconButton/IconButton.cjs.map +1 -1
  250. package/dist/components/IconButton/IconButton.js +1 -2
  251. package/dist/components/IconButton/IconButton.themes.cjs +1 -2
  252. package/dist/components/IconButton/IconButton.themes.cjs.map +1 -1
  253. package/dist/components/IconButton/IconButton.themes.js +1 -2
  254. package/dist/components/IconButton/IconButton.themes.js.map +1 -1
  255. package/dist/components/IconButton/IconButton.vanilla.cjs +6 -6
  256. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  257. package/dist/components/IconButton/IconButton.vanilla.css.cjs +1 -2
  258. package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
  259. package/dist/components/IconButton/IconButton.vanilla.css.js +1 -2
  260. package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
  261. package/dist/components/IconButton/IconButton.vanilla.js +6 -6
  262. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  263. package/dist/components/Image/Image.cjs +1 -2
  264. package/dist/components/Image/Image.cjs.map +1 -1
  265. package/dist/components/Image/Image.js +1 -2
  266. package/dist/components/Image/Image.vanilla.cjs +1 -2
  267. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  268. package/dist/components/Image/Image.vanilla.css.cjs +1 -2
  269. package/dist/components/Image/Image.vanilla.css.js +1 -2
  270. package/dist/components/Image/Image.vanilla.js +1 -2
  271. package/dist/components/Input/Input.cjs +1 -2
  272. package/dist/components/Input/Input.cjs.map +1 -1
  273. package/dist/components/Input/Input.js +1 -2
  274. package/dist/components/Input/Input.js.map +1 -1
  275. package/dist/components/Input/Input.theme.cjs +1 -2
  276. package/dist/components/Input/Input.theme.cjs.map +1 -1
  277. package/dist/components/Input/Input.theme.js +1 -2
  278. package/dist/components/Input/Input.themes.cjs +1 -2
  279. package/dist/components/Input/Input.themes.cjs.map +1 -1
  280. package/dist/components/Input/Input.themes.js +1 -2
  281. package/dist/components/Input/Input.themes.js.map +1 -1
  282. package/dist/components/Input/Input.vanilla.cjs +1 -2
  283. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  284. package/dist/components/Input/Input.vanilla.css.cjs +1 -2
  285. package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
  286. package/dist/components/Input/Input.vanilla.css.js +1 -2
  287. package/dist/components/Input/Input.vanilla.css.js.map +1 -1
  288. package/dist/components/Input/Input.vanilla.js +1 -2
  289. package/dist/components/Input/Input.vanilla.js.map +1 -1
  290. package/dist/components/Label/Label.cjs +1 -2
  291. package/dist/components/Label/Label.cjs.map +1 -1
  292. package/dist/components/Label/Label.js +1 -2
  293. package/dist/components/Label/Label.vanilla.cjs +10 -10
  294. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  295. package/dist/components/Label/Label.vanilla.css.cjs +1 -2
  296. package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
  297. package/dist/components/Label/Label.vanilla.css.js +1 -2
  298. package/dist/components/Label/Label.vanilla.css.js.map +1 -1
  299. package/dist/components/Label/Label.vanilla.js +10 -10
  300. package/dist/components/Label/Label.vanilla.js.map +1 -1
  301. package/dist/components/Link/Link.cjs +0 -1
  302. package/dist/components/Link/Link.cjs.map +1 -1
  303. package/dist/components/Link/Link.js +0 -1
  304. package/dist/components/Link/Link.themes.cjs +1 -2
  305. package/dist/components/Link/Link.themes.cjs.map +1 -1
  306. package/dist/components/Link/Link.themes.js +1 -2
  307. package/dist/components/Link/Link.themes.js.map +1 -1
  308. package/dist/components/List/List.cjs +1 -2
  309. package/dist/components/List/List.cjs.map +1 -1
  310. package/dist/components/List/List.js +1 -2
  311. package/dist/components/List/List.js.map +1 -1
  312. package/dist/components/List/List.themes.cjs +1 -2
  313. package/dist/components/List/List.themes.cjs.map +1 -1
  314. package/dist/components/List/List.themes.js +1 -2
  315. package/dist/components/List/List.themes.js.map +1 -1
  316. package/dist/components/Navigation/Navigation.cjs +1 -2
  317. package/dist/components/Navigation/Navigation.cjs.map +1 -1
  318. package/dist/components/Navigation/Navigation.js +1 -2
  319. package/dist/components/Navigation/Navigation.js.map +1 -1
  320. package/dist/components/Navigation/Navigation.themes.cjs +1 -2
  321. package/dist/components/Navigation/Navigation.themes.cjs.map +1 -1
  322. package/dist/components/Navigation/Navigation.themes.js +1 -2
  323. package/dist/components/Navigation/Navigation.themes.js.map +1 -1
  324. package/dist/components/NavigationMenu/NavigationMenu.cjs +1 -2
  325. package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
  326. package/dist/components/NavigationMenu/NavigationMenu.js +1 -2
  327. package/dist/components/NavigationTree/NavigationTreeContainer.cjs +17 -12
  328. package/dist/components/NavigationTree/NavigationTreeContainer.cjs.map +1 -1
  329. package/dist/components/NavigationTree/NavigationTreeContainer.js +18 -13
  330. package/dist/components/NavigationTree/NavigationTreeContainer.js.map +1 -1
  331. package/dist/components/NavigationTree/NavigationTreeContext.cjs +16 -0
  332. package/dist/components/NavigationTree/NavigationTreeContext.cjs.map +1 -0
  333. package/dist/components/NavigationTree/NavigationTreeContext.js +13 -0
  334. package/dist/components/NavigationTree/NavigationTreeContext.js.map +1 -0
  335. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs +14 -9
  336. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs.map +1 -1
  337. package/dist/components/NavigationTree/NavigationTreeDrawer.js +15 -10
  338. package/dist/components/NavigationTree/NavigationTreeDrawer.js.map +1 -1
  339. package/dist/components/NavigationTree/NavigationTreeItem.cjs +17 -12
  340. package/dist/components/NavigationTree/NavigationTreeItem.cjs.map +1 -1
  341. package/dist/components/NavigationTree/NavigationTreeItem.js +17 -12
  342. package/dist/components/NavigationTree/NavigationTreeItem.js.map +1 -1
  343. package/dist/components/Overlay.cjs +1 -2
  344. package/dist/components/Overlay.cjs.map +1 -1
  345. package/dist/components/Overlay.js +1 -2
  346. package/dist/components/Panel/Panel.cjs +1 -2
  347. package/dist/components/Panel/Panel.cjs.map +1 -1
  348. package/dist/components/Panel/Panel.js +1 -2
  349. package/dist/components/Panel/Panel.theme.cjs +1 -2
  350. package/dist/components/Panel/Panel.theme.js +1 -2
  351. package/dist/components/Panel/Panel.vanilla.cjs +1 -2
  352. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  353. package/dist/components/Panel/Panel.vanilla.css.cjs +1 -2
  354. package/dist/components/Panel/Panel.vanilla.css.js +1 -2
  355. package/dist/components/Panel/Panel.vanilla.js +1 -2
  356. package/dist/components/Paragraph/Paragraph.cjs +1 -2
  357. package/dist/components/Paragraph/Paragraph.cjs.map +1 -1
  358. package/dist/components/Paragraph/Paragraph.js +1 -2
  359. package/dist/components/Paragraph/Paragraph.vanilla.cjs +3 -3
  360. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  361. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +1 -2
  362. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
  363. package/dist/components/Paragraph/Paragraph.vanilla.css.js +1 -2
  364. package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
  365. package/dist/components/Paragraph/Paragraph.vanilla.js +3 -3
  366. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  367. package/dist/components/Popover/Popover.cjs +1 -2
  368. package/dist/components/Popover/Popover.cjs.map +1 -1
  369. package/dist/components/Popover/Popover.js +1 -2
  370. package/dist/components/Popover/Popover.js.map +1 -1
  371. package/dist/components/Radio/Radio.cjs +1 -2
  372. package/dist/components/Radio/Radio.cjs.map +1 -1
  373. package/dist/components/Radio/Radio.js +1 -2
  374. package/dist/components/Radio/Radio.js.map +1 -1
  375. package/dist/components/Radio/Radio.themes.cjs +1 -2
  376. package/dist/components/Radio/Radio.themes.cjs.map +1 -1
  377. package/dist/components/Radio/Radio.themes.js +1 -2
  378. package/dist/components/Radio/Radio.themes.js.map +1 -1
  379. package/dist/components/RadioAccordion/RadioAccordion.cjs +1 -2
  380. package/dist/components/RadioAccordion/RadioAccordion.cjs.map +1 -1
  381. package/dist/components/RadioAccordion/RadioAccordion.js +1 -2
  382. package/dist/components/RadioAccordion/RadioAccordion.js.map +1 -1
  383. package/dist/components/Select/Select.cjs +1 -2
  384. package/dist/components/Select/Select.cjs.map +1 -1
  385. package/dist/components/Select/Select.js +1 -2
  386. package/dist/components/Select/Select.js.map +1 -1
  387. package/dist/components/Select/Select.themes.cjs +1 -2
  388. package/dist/components/Select/Select.themes.cjs.map +1 -1
  389. package/dist/components/Select/Select.themes.js +1 -2
  390. package/dist/components/Select/Select.themes.js.map +1 -1
  391. package/dist/components/SidePanel/SidePanel.cjs +1 -2
  392. package/dist/components/SidePanel/SidePanel.cjs.map +1 -1
  393. package/dist/components/SidePanel/SidePanel.js +1 -2
  394. package/dist/components/SidePanel/SidePanel.js.map +1 -1
  395. package/dist/components/SidePanel/SidePanel.themes.cjs +1 -2
  396. package/dist/components/SidePanel/SidePanel.themes.cjs.map +1 -1
  397. package/dist/components/SidePanel/SidePanel.themes.js +1 -2
  398. package/dist/components/SidePanel/SidePanel.themes.js.map +1 -1
  399. package/dist/components/Skeleton/Skeleton.cjs +1 -2
  400. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  401. package/dist/components/Skeleton/Skeleton.js +6 -5
  402. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  403. package/dist/components/Skeleton/Skeleton.themes.cjs +1 -2
  404. package/dist/components/Skeleton/Skeleton.themes.cjs.map +1 -1
  405. package/dist/components/Skeleton/Skeleton.themes.js +1 -2
  406. package/dist/components/Skeleton/Skeleton.themes.js.map +1 -1
  407. package/dist/components/Skeleton/Skeleton.vanilla.cjs +3 -3
  408. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  409. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +1 -2
  410. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
  411. package/dist/components/Skeleton/Skeleton.vanilla.css.js +1 -2
  412. package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
  413. package/dist/components/Skeleton/Skeleton.vanilla.js +3 -3
  414. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  415. package/dist/components/Switch/Switch.cjs +3 -4
  416. package/dist/components/Switch/Switch.cjs.map +1 -1
  417. package/dist/components/Switch/Switch.js +3 -4
  418. package/dist/components/Switch/Switch.js.map +1 -1
  419. package/dist/components/Switch/Switch.themes.cjs +1 -2
  420. package/dist/components/Switch/Switch.themes.cjs.map +1 -1
  421. package/dist/components/Switch/Switch.themes.js +1 -2
  422. package/dist/components/Switch/Switch.themes.js.map +1 -1
  423. package/dist/components/Table/Table.cjs +1 -2
  424. package/dist/components/Table/Table.cjs.map +1 -1
  425. package/dist/components/Table/Table.js +15 -14
  426. package/dist/components/Table/Table.js.map +1 -1
  427. package/dist/components/Table/Table.themes.cjs +1 -2
  428. package/dist/components/Table/Table.themes.cjs.map +1 -1
  429. package/dist/components/Table/Table.themes.js +1 -2
  430. package/dist/components/Table/Table.themes.js.map +1 -1
  431. package/dist/components/Tabs/Tabs.cjs +1 -2
  432. package/dist/components/Tabs/Tabs.cjs.map +1 -1
  433. package/dist/components/Tabs/Tabs.js +1 -2
  434. package/dist/components/Text/Text.cjs +1 -2
  435. package/dist/components/Text/Text.cjs.map +1 -1
  436. package/dist/components/Text/Text.js +1 -2
  437. package/dist/components/Text/Text.themes.cjs +1 -2
  438. package/dist/components/Text/Text.themes.cjs.map +1 -1
  439. package/dist/components/Text/Text.themes.js +1 -2
  440. package/dist/components/Text/Text.themes.js.map +1 -1
  441. package/dist/components/TextField/TextField.cjs +1 -2
  442. package/dist/components/TextField/TextField.cjs.map +1 -1
  443. package/dist/components/TextField/TextField.js +1 -2
  444. package/dist/components/TextField/TextField.js.map +1 -1
  445. package/dist/components/TextField/TextField.vanilla.cjs +1 -2
  446. package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
  447. package/dist/components/TextField/TextField.vanilla.js +1 -2
  448. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  449. package/dist/components/Textarea/Textarea.cjs +1 -2
  450. package/dist/components/Textarea/Textarea.cjs.map +1 -1
  451. package/dist/components/Textarea/Textarea.js +1 -2
  452. package/dist/components/Textarea/Textarea.js.map +1 -1
  453. package/dist/components/Textarea/Textarea.theme.cjs +1 -2
  454. package/dist/components/Textarea/Textarea.theme.cjs.map +1 -1
  455. package/dist/components/Textarea/Textarea.theme.js +1 -2
  456. package/dist/components/Textarea/Textarea.themes.cjs +1 -2
  457. package/dist/components/Textarea/Textarea.themes.cjs.map +1 -1
  458. package/dist/components/Textarea/Textarea.themes.js +1 -2
  459. package/dist/components/Textarea/Textarea.themes.js.map +1 -1
  460. package/dist/components/Textarea/Textarea.vanilla.cjs +1 -2
  461. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  462. package/dist/components/Textarea/Textarea.vanilla.css.cjs +1 -2
  463. package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
  464. package/dist/components/Textarea/Textarea.vanilla.css.js +1 -2
  465. package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
  466. package/dist/components/Textarea/Textarea.vanilla.js +1 -2
  467. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  468. package/dist/components/Tooltip/Tooltip.cjs +1 -2
  469. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  470. package/dist/components/Tooltip/Tooltip.js +1 -2
  471. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  472. package/dist/components/Tooltip/Tooltip.themes.cjs +1 -2
  473. package/dist/components/Tooltip/Tooltip.themes.cjs.map +1 -1
  474. package/dist/components/Tooltip/Tooltip.themes.js +1 -2
  475. package/dist/components/Tooltip/Tooltip.themes.js.map +1 -1
  476. package/dist/components/VisuallyHidden/VisuallyHidden.cjs +1 -2
  477. package/dist/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
  478. package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -2
  479. package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  480. package/dist/components/colorSchemeContext.cjs +1 -2
  481. package/dist/components/colorSchemeContext.cjs.map +1 -1
  482. package/dist/components/colorSchemeContext.js +1 -2
  483. package/dist/index.d.ts +1 -1
  484. package/dist/stitches.config.cjs +1 -2
  485. package/dist/stitches.config.cjs.map +1 -1
  486. package/dist/stitches.config.js +1 -2
  487. package/dist/stitches.config.js.map +1 -1
  488. package/dist/styles/cssProps.cjs +24 -27
  489. package/dist/styles/cssProps.cjs.map +1 -1
  490. package/dist/styles/cssProps.js +24 -27
  491. package/dist/styles/cssProps.js.map +1 -1
  492. package/dist/styles/themeContext.cjs +1 -2
  493. package/dist/styles/themeContext.cjs.map +1 -1
  494. package/dist/styles/themeContext.js +1 -2
  495. package/dist/styles/themes.css.cjs +1 -2
  496. package/dist/styles/themes.css.js +1 -2
  497. package/dist/utils/deepMerge.cjs +1 -2
  498. package/dist/utils/deepMerge.js +1 -2
  499. package/dist/utils/getPrimaryColorInfo.cjs +1 -2
  500. package/dist/utils/getPrimaryColorInfo.js +1 -2
  501. package/package.json +64 -62
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.cjs","names":[],"sources":["../../../components/IconButton/IconButton.tsx"],"sourcesContent":["import { styled, VariantProps } from '../../stitches.config';\nimport { BUTTON_BASE_STYLES } from '../Button';\n\nexport const IconButton = styled('button', {\n ...BUTTON_BASE_STYLES,\n // Reset\n alignItems: 'center',\n display: 'inline-flex',\n flexShrink: 0,\n fontFamily: 'inherit',\n fontSize: '14px',\n justifyContent: 'center',\n lineHeight: '1',\n // Custom\n position: 'relative',\n padding: '0',\n textDecoration: 'none',\n backgroundColor: 'transparent',\n\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 '@hover': {\n '&:hover': {\n cursor: 'pointer',\n '&::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&::after': {\n opacity: 0.05,\n },\n },\n },\n\n '&:focus-visible': {\n outline: '2px solid currentColor',\n '&::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&::after': {\n opacity: 0.15,\n },\n },\n\n '&:active': {\n '&::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n variants: {\n size: {\n '1': {\n borderRadius: '$1',\n height: '$5',\n width: '$5',\n },\n '2': {\n borderRadius: '$2',\n height: '$6',\n width: '$6',\n },\n '3': {\n borderRadius: '$2',\n height: '$7',\n width: '$7',\n },\n '4': {\n borderRadius: '$3',\n height: '$8',\n width: '$8',\n },\n },\n variant: {\n default: {\n color: '$slate10',\n },\n contrast: {\n color: '$hiContrast',\n },\n primary: {\n color: '$primary',\n },\n red: {\n color: '$red9',\n },\n green: {\n color: '$green9',\n },\n orange: {\n color: '$orange9',\n },\n },\n },\n defaultVariants: {\n variant: 'default',\n size: '2',\n },\n});\n\nexport type IconButtonVariants = VariantProps<typeof IconButton>;\n"],"mappings":";;;AAGA,IAAa,aAAa,wBAAA,OAAO,UAAU;CACzC,GAAG,eAAA;CAEH,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,YAAY;CACZ,UAAU;CACV,gBAAgB;CAChB,YAAY;CAEZ,UAAU;CACV,SAAS;CACT,gBAAgB;CAChB,iBAAiB;CAEjB,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,cAAc;CAChB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,cAAc;CAChB;CACA,UAAU,EACR,WAAW;EACT,QAAQ;EACR,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF,EACF;CAEA,mBAAmB;EACjB,SAAS;EACT,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF;CAEA,YAAY,EACV,aAAa,EACX,iBAAiB,sBACnB,EACF;CAEA,UAAU;EACR,MAAM;GACJ,KAAK;IACH,cAAc;IACd,QAAQ;IACR,OAAO;GACT;GACA,KAAK;IACH,cAAc;IACd,QAAQ;IACR,OAAO;GACT;GACA,KAAK;IACH,cAAc;IACd,QAAQ;IACR,OAAO;GACT;GACA,KAAK;IACH,cAAc;IACd,QAAQ;IACR,OAAO;GACT;EACF;EACA,SAAS;GACP,SAAS,EACP,OAAO,WACT;GACA,UAAU,EACR,OAAO,cACT;GACA,SAAS,EACP,OAAO,WACT;GACA,KAAK,EACH,OAAO,QACT;GACA,OAAO,EACL,OAAO,UACT;GACA,QAAQ,EACN,OAAO,WACT;EACF;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CAAC"}
1
+ {"version":3,"file":"IconButton.cjs","names":["styled","BUTTON_BASE_STYLES"],"sources":["../../../components/IconButton/IconButton.tsx"],"sourcesContent":["import { styled, VariantProps } from '../../stitches.config';\nimport { BUTTON_BASE_STYLES } from '../Button';\n\nexport const IconButton = styled('button', {\n ...BUTTON_BASE_STYLES,\n // Reset\n alignItems: 'center',\n display: 'inline-flex',\n flexShrink: 0,\n fontFamily: 'inherit',\n fontSize: '14px',\n justifyContent: 'center',\n lineHeight: '1',\n // Custom\n position: 'relative',\n padding: '0',\n textDecoration: 'none',\n backgroundColor: 'transparent',\n\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 '@hover': {\n '&:hover': {\n cursor: 'pointer',\n '&::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&::after': {\n opacity: 0.05,\n },\n },\n },\n\n '&:focus-visible': {\n outline: '2px solid currentColor',\n '&::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&::after': {\n opacity: 0.15,\n },\n },\n\n '&:active': {\n '&::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n variants: {\n size: {\n '1': {\n borderRadius: '$1',\n height: '$5',\n width: '$5',\n },\n '2': {\n borderRadius: '$2',\n height: '$6',\n width: '$6',\n },\n '3': {\n borderRadius: '$2',\n height: '$7',\n width: '$7',\n },\n '4': {\n borderRadius: '$3',\n height: '$8',\n width: '$8',\n },\n },\n variant: {\n default: {\n color: '$slate10',\n },\n contrast: {\n color: '$hiContrast',\n },\n primary: {\n color: '$primary',\n },\n red: {\n color: '$red9',\n },\n green: {\n color: '$green9',\n },\n orange: {\n color: '$orange9',\n },\n },\n },\n defaultVariants: {\n variant: 'default',\n size: '2',\n },\n});\n\nexport type IconButtonVariants = VariantProps<typeof IconButton>;\n"],"mappings":";;;AAGA,IAAa,aAAaA,wBAAAA,OAAO,UAAU;CACzC,GAAGC,eAAAA;CAEH,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,YAAY;CACZ,UAAU;CACV,gBAAgB;CAChB,YAAY;CAEZ,UAAU;CACV,SAAS;CACT,gBAAgB;CAChB,iBAAiB;CAEjB,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,cAAc;CAChB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,cAAc;CAChB;CACA,UAAU,EACR,WAAW;EACT,QAAQ;EACR,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF,EACF;CAEA,mBAAmB;EACjB,SAAS;EACT,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF;CAEA,YAAY,EACV,aAAa,EACX,iBAAiB,sBACnB,EACF;CAEA,UAAU;EACR,MAAM;GACJ,KAAK;IACH,cAAc;IACd,QAAQ;IACR,OAAO;GACT;GACA,KAAK;IACH,cAAc;IACd,QAAQ;IACR,OAAO;GACT;GACA,KAAK;IACH,cAAc;IACd,QAAQ;IACR,OAAO;GACT;GACA,KAAK;IACH,cAAc;IACd,QAAQ;IACR,OAAO;GACT;EACF;EACA,SAAS;GACP,SAAS,EACP,OAAO,WACT;GACA,UAAU,EACR,OAAO,cACT;GACA,SAAS,EACP,OAAO,WACT;GACA,KAAK,EACH,OAAO,QACT;GACA,OAAO,EACL,OAAO,UACT;GACA,QAAQ,EACN,OAAO,WACT;EACF;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { styled } from "../../stitches.config.js";
2
2
  import { BUTTON_BASE_STYLES } from "../Button/Button.js";
3
- //#region components/IconButton/IconButton.tsx
3
+ // components/IconButton/IconButton.tsx
4
4
  var IconButton = styled("button", {
5
5
  ...BUTTON_BASE_STYLES,
6
6
  alignItems: "center",
@@ -76,7 +76,6 @@ var IconButton = styled("button", {
76
76
  size: "2"
77
77
  }
78
78
  });
79
- //#endregion
80
79
  export { IconButton };
81
80
 
82
81
  //# sourceMappingURL=IconButton.js.map
@@ -1,4 +1,4 @@
1
- //#region components/IconButton/IconButton.themes.ts
1
+ // components/IconButton/IconButton.themes.ts
2
2
  var Theme;
3
3
  (function(_Theme) {
4
4
  _Theme.getLight = () => ({
@@ -14,7 +14,6 @@ var Theme;
14
14
  iconButtonFocusBorder: "$deepBlue7"
15
15
  });
16
16
  })(Theme || (Theme = {}));
17
- //#endregion
18
17
  Object.defineProperty(exports, "Theme", {
19
18
  enumerable: true,
20
19
  get: function() {
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.themes.cjs","names":[],"sources":["../../../components/IconButton/IconButton.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n iconButtonBackground: Property.Color;\n iconButtonHoverBorder: Property.Color;\n iconButtonHoverBackground: Property.Color;\n iconButtonFocusBorder: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n iconButtonBackground: 'white',\n iconButtonHoverBorder: '$slate9',\n iconButtonHoverBackground: '$slateA3',\n iconButtonFocusBorder: '$slate10',\n });\n\n export const getDark: Factory = () => ({\n iconButtonBackground: '$deepBlue2',\n iconButtonHoverBorder: '$deepBlue6',\n iconButtonHoverBackground: '$slateA4',\n iconButtonFocusBorder: '$deepBlue7',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAUQ,OAAA,kBAA2B;EACtC,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,uBAAuB;CACzB;CAEa,OAAA,iBAA0B;EACrC,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,uBAAuB;CACzB;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"IconButton.themes.cjs","names":[],"sources":["../../../components/IconButton/IconButton.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n iconButtonBackground: Property.Color;\n iconButtonHoverBorder: Property.Color;\n iconButtonHoverBackground: Property.Color;\n iconButtonFocusBorder: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n iconButtonBackground: 'white',\n iconButtonHoverBorder: '$slate9',\n iconButtonHoverBackground: '$slateA3',\n iconButtonFocusBorder: '$slate10',\n });\n\n export const getDark: Factory = () => ({\n iconButtonBackground: '$deepBlue2',\n iconButtonHoverBorder: '$deepBlue6',\n iconButtonHoverBackground: '$slateA4',\n iconButtonFocusBorder: '$deepBlue7',\n });\n}\n"],"mappings":";AAIO,IAAU;CAAV,SAAA,QAAA;CAUQ,OAAA,kBAA2B;EACtC,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,uBAAuB;CACzB;CAEa,OAAA,iBAA0B;EACrC,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,uBAAuB;CACzB;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -1,4 +1,4 @@
1
- //#region components/IconButton/IconButton.themes.ts
1
+ // components/IconButton/IconButton.themes.ts
2
2
  var Theme;
3
3
  (function(_Theme) {
4
4
  _Theme.getLight = () => ({
@@ -14,7 +14,6 @@ var Theme;
14
14
  iconButtonFocusBorder: "$deepBlue7"
15
15
  });
16
16
  })(Theme || (Theme = {}));
17
- //#endregion
18
17
  export { Theme };
19
18
 
20
19
  //# sourceMappingURL=IconButton.themes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.themes.js","names":[],"sources":["../../../components/IconButton/IconButton.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n iconButtonBackground: Property.Color;\n iconButtonHoverBorder: Property.Color;\n iconButtonHoverBackground: Property.Color;\n iconButtonFocusBorder: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n iconButtonBackground: 'white',\n iconButtonHoverBorder: '$slate9',\n iconButtonHoverBackground: '$slateA3',\n iconButtonFocusBorder: '$slate10',\n });\n\n export const getDark: Factory = () => ({\n iconButtonBackground: '$deepBlue2',\n iconButtonHoverBorder: '$deepBlue6',\n iconButtonHoverBackground: '$slateA4',\n iconButtonFocusBorder: '$deepBlue7',\n });\n}\n"],"mappings":";AAIO,IAAA;;CAUQ,OAAA,kBAA2B;EACtC,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,uBAAuB;CACzB;CAEa,OAAA,iBAA0B;EACrC,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,uBAAuB;CACzB;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"IconButton.themes.js","names":[],"sources":["../../../components/IconButton/IconButton.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n iconButtonBackground: Property.Color;\n iconButtonHoverBorder: Property.Color;\n iconButtonHoverBackground: Property.Color;\n iconButtonFocusBorder: Property.Color;\n };\n\n type Factory = (primaryColor?: ColorInfo) => Colors;\n\n export const getLight: Factory = () => ({\n iconButtonBackground: 'white',\n iconButtonHoverBorder: '$slate9',\n iconButtonHoverBackground: '$slateA3',\n iconButtonFocusBorder: '$slate10',\n });\n\n export const getDark: Factory = () => ({\n iconButtonBackground: '$deepBlue2',\n iconButtonHoverBorder: '$deepBlue6',\n iconButtonHoverBackground: '$slateA4',\n iconButtonFocusBorder: '$deepBlue7',\n });\n}\n"],"mappings":";AAIO,IAAU;CAAV,SAAA,QAAA;CAUQ,OAAA,kBAA2B;EACtC,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,uBAAuB;CACzB;CAEa,OAAA,iBAA0B;EACrC,sBAAsB;EACtB,uBAAuB;EACvB,2BAA2B;EAC3B,uBAAuB;CACzB;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -4,7 +4,7 @@ const require_IconButton_vanilla_css = require("./IconButton.vanilla.css.cjs");
4
4
  let react = require("react");
5
5
  let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
- //#region components/IconButton/IconButton.vanilla.tsx
7
+ // components/IconButton/IconButton.vanilla.tsx
8
8
  var IconButtonVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, variant, ...props }, ref) => {
9
9
  const Component = as || "button";
10
10
  const { colors } = require_themeContext.useVanillaExtractTheme();
@@ -14,19 +14,19 @@ var IconButtonVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css
14
14
  ...style,
15
15
  ...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
16
16
  };
17
+ const recipeClass = require_IconButton_vanilla_css.iconButtonRecipe({
18
+ size,
19
+ variant
20
+ });
17
21
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
18
22
  ref,
19
- className: `${require_IconButton_vanilla_css.iconButtonRecipe({
20
- size,
21
- variant
22
- })} ${className || ""}`.trim(),
23
+ className: `${recipeClass} ${className || ""}`.trim(),
23
24
  style: mergedStyles,
24
25
  ...props
25
26
  });
26
27
  });
27
28
  IconButtonVanillaComponentImpl.displayName = "IconButtonVanilla";
28
29
  var IconButtonVanilla = IconButtonVanillaComponentImpl;
29
- //#endregion
30
30
  exports.IconButtonVanilla = IconButtonVanilla;
31
31
 
32
32
  //# sourceMappingURL=IconButton.vanilla.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.vanilla.cjs","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 {\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\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nIconButtonVanillaComponentImpl.displayName = 'IconButtonVanilla';\n\nexport const IconButtonVanilla = IconButtonVanillaComponentImpl as IconButtonVanillaComponent;\n"],"mappings":";;;;;;;AA2BA,IAAM,kCAAA,GAAA,MAAA,WAAA,EAEF,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,GAAG,SAC/C,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAW,qBAAA,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,iBAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAA,yBAAA,iBAAA,CAAoB,IAAI;CAC1B;CAIA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EACO;EACL,WAAW,GALK,+BAAA,iBAAiB;GAAE;GAAM;EAAQ,CAKnC,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
1
+ {"version":3,"file":"IconButton.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","iconButtonRecipe"],"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 {\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\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nIconButtonVanillaComponentImpl.displayName = 'IconButtonVanilla';\n\nexport const IconButtonVanilla = IconButtonVanillaComponentImpl as IconButtonVanillaComponent;\n"],"mappings":";;;;;;;AA2BA,IAAM,kCAAA,GAAiCA,MAAAA,WAAAA,EAEnC,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,GAAG,SAC/C,QACG;CACH,MAAM,YAAY,MAAM;CAExB,MAAM,EAAE,WAAWC,qBAAAA,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAASC,iBAAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAGC,yBAAAA,iBAAAA,CAAiB,IAAI;CAC1B;CAEA,MAAM,cAAcC,+BAAAA,iBAAiB;EAAE;EAAM;CAAQ,CAAC;CAEtD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EACO;EACL,WAAW,GAAG,YAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
@@ -1,5 +1,5 @@
1
1
  ;/* empty css */
2
- //#region components/IconButton/IconButton.vanilla.css.ts
2
+ // components/IconButton/IconButton.vanilla.css.ts
3
3
  var iconButtonRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").createRuntimeFn)({
4
4
  defaultClassName: "vdyzvy1 vdyzvy0",
5
5
  variantClassNames: {
@@ -24,7 +24,6 @@ var iconButtonRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").c
24
24
  },
25
25
  compoundVariants: []
26
26
  });
27
- //#endregion
28
27
  exports.iconButtonRecipe = iconButtonRecipe;
29
28
 
30
29
  //# sourceMappingURL=IconButton.vanilla.css.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.vanilla.css.cjs","names":[],"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":["_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,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
- //#region components/IconButton/IconButton.vanilla.css.ts
3
+ // components/IconButton/IconButton.vanilla.css.ts
4
4
  var iconButtonRecipe = createRuntimeFn({
5
5
  defaultClassName: "vdyzvy1 vdyzvy0",
6
6
  variantClassNames: {
@@ -25,7 +25,6 @@ var iconButtonRecipe = createRuntimeFn({
25
25
  },
26
26
  compoundVariants: []
27
27
  });
28
- //#endregion
29
28
  export { iconButtonRecipe };
30
29
 
31
30
  //# sourceMappingURL=IconButton.vanilla.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.vanilla.css.js","names":[],"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":["_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":""}
@@ -4,7 +4,7 @@ import { iconButtonRecipe } from "./IconButton.vanilla.css.js";
4
4
  import { forwardRef } from "react";
5
5
  import { assignInlineVars } from "@vanilla-extract/dynamic";
6
6
  import { jsx } from "react/jsx-runtime";
7
- //#region components/IconButton/IconButton.vanilla.tsx
7
+ // components/IconButton/IconButton.vanilla.tsx
8
8
  var IconButtonVanillaComponentImpl = forwardRef(({ as, className, css, style, size, variant, ...props }, ref) => {
9
9
  const Component = as || "button";
10
10
  const { colors } = useVanillaExtractTheme();
@@ -14,19 +14,19 @@ var IconButtonVanillaComponentImpl = forwardRef(({ as, className, css, style, si
14
14
  ...style,
15
15
  ...assignInlineVars(vars)
16
16
  };
17
+ const recipeClass = iconButtonRecipe({
18
+ size,
19
+ variant
20
+ });
17
21
  return /* @__PURE__ */ jsx(Component, {
18
22
  ref,
19
- className: `${iconButtonRecipe({
20
- size,
21
- variant
22
- })} ${className || ""}`.trim(),
23
+ className: `${recipeClass} ${className || ""}`.trim(),
23
24
  style: mergedStyles,
24
25
  ...props
25
26
  });
26
27
  });
27
28
  IconButtonVanillaComponentImpl.displayName = "IconButtonVanilla";
28
29
  var IconButtonVanilla = IconButtonVanillaComponentImpl;
29
- //#endregion
30
30
  export { IconButtonVanilla };
31
31
 
32
32
  //# sourceMappingURL=IconButton.vanilla.js.map
@@ -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 {\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\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nIconButtonVanillaComponentImpl.displayName = 'IconButtonVanilla';\n\nexport const IconButtonVanilla = IconButtonVanillaComponentImpl as IconButtonVanillaComponent;\n"],"mappings":";;;;;;;AA2BA,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;CAIA,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GALK,iBAAiB;GAAE;GAAM;EAAQ,CAKnC,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
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 {\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\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nIconButtonVanillaComponentImpl.displayName = 'IconButtonVanilla';\n\nexport const IconButtonVanilla = IconButtonVanillaComponentImpl as IconButtonVanillaComponent;\n"],"mappings":";;;;;;;AA2BA,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;EACO;EACL,WAAW,GAAG,YAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,+BAA+B,cAAc;AAE7C,IAAa,oBAAoB"}
@@ -1,9 +1,8 @@
1
- //#region components/Image/Image.tsx
1
+ // components/Image/Image.tsx
2
2
  var Image = require("../../stitches.config.cjs").styled("img", {
3
3
  verticalAlign: "middle",
4
4
  maxWidth: "100%"
5
5
  });
6
- //#endregion
7
6
  exports.Image = Image;
8
7
 
9
8
  //# sourceMappingURL=Image.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.cjs","names":[],"sources":["../../../components/Image/Image.tsx"],"sourcesContent":["import { styled } from '../../stitches.config';\n\nexport const Image = styled('img', {\n // Reset\n verticalAlign: 'middle',\n maxWidth: '100%',\n});\n"],"mappings":";AAEA,IAAa,2CAAQ,CAAA,CAAA,OAAO,OAAO;CAEjC,eAAe;CACf,UAAU;AACZ,CAAC"}
1
+ {"version":3,"file":"Image.cjs","names":["styled"],"sources":["../../../components/Image/Image.tsx"],"sourcesContent":["import { styled } from '../../stitches.config';\n\nexport const Image = styled('img', {\n // Reset\n verticalAlign: 'middle',\n maxWidth: '100%',\n});\n"],"mappings":";AAEA,IAAa,Q,mCAAQA,CAAAA,CAAAA,OAAO,OAAO;CAEjC,eAAe;CACf,UAAU;AACZ,CAAC"}
@@ -1,10 +1,9 @@
1
1
  import { styled } from "../../stitches.config.js";
2
- //#region components/Image/Image.tsx
2
+ // components/Image/Image.tsx
3
3
  var Image = styled("img", {
4
4
  verticalAlign: "middle",
5
5
  maxWidth: "100%"
6
6
  });
7
- //#endregion
8
7
  export { Image };
9
8
 
10
9
  //# sourceMappingURL=Image.js.map
@@ -4,7 +4,7 @@ const require_Image_vanilla_css = require("./Image.vanilla.css.cjs");
4
4
  let react = require("react");
5
5
  let _vanilla_extract_dynamic = require("@vanilla-extract/dynamic");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
- //#region components/Image/Image.vanilla.tsx
7
+ // components/Image/Image.vanilla.tsx
8
8
  var ImageVanillaImpl = (0, react.forwardRef)(({ as, className, css, style, ...props }, ref) => {
9
9
  const Component = as || "img";
10
10
  const { colors } = require_themeContext.useVanillaExtractTheme();
@@ -23,7 +23,6 @@ var ImageVanillaImpl = (0, react.forwardRef)(({ as, className, css, style, ...pr
23
23
  });
24
24
  ImageVanillaImpl.displayName = "ImageVanilla";
25
25
  var ImageVanilla = ImageVanillaImpl;
26
- //#endregion
27
26
  exports.ImageVanilla = ImageVanilla;
28
27
 
29
28
  //# sourceMappingURL=Image.vanilla.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.vanilla.cjs","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 {\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 (\n <Component\n ref={ref}\n className={`${image} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nImageVanillaImpl.displayName = 'ImageVanilla';\n\nexport const ImageVanilla = ImageVanillaImpl as ImageVanillaComponent;\n"],"mappings":";;;;;;;AAmBA,IAAM,oBAAA,GAAA,MAAA,WAAA,EAEF,EAAE,IAAI,WAAW,KAAK,OAAO,GAAG,SAChC,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,qBAAA,uBAAuB;CAC1C,MAAM,EAAE,OAAO,WAAW,SAAS,iBAAA,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,IAAA,GAAA,yBAAA,iBAAA,CAAoB,IAAI;CAC1B;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EACO;EACL,WAAW,GAAG,0BAAA,MAAM,GAAG,aAAa,KAAK,KAAK;EAC9C,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,iBAAiB,cAAc;AAE/B,IAAa,eAAe"}
1
+ {"version":3,"file":"Image.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","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 {\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 (\n <Component\n ref={ref}\n className={`${image} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nImageVanillaImpl.displayName = 'ImageVanilla';\n\nexport const ImageVanilla = ImageVanillaImpl as ImageVanillaComponent;\n"],"mappings":";;;;;;;AAmBA,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,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EACO;EACL,WAAW,GAAGC,0BAAAA,MAAM,GAAG,aAAa,KAAK,KAAK;EAC9C,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,iBAAiB,cAAc;AAE/B,IAAa,eAAe"}
@@ -1,7 +1,6 @@
1
1
  ;/* empty css */
2
- //#region components/Image/Image.vanilla.css.ts
2
+ // components/Image/Image.vanilla.css.ts
3
3
  var image = "_18cm5pz0";
4
- //#endregion
5
4
  exports.image = image;
6
5
 
7
6
  //# sourceMappingURL=Image.vanilla.css.cjs.map
@@ -1,7 +1,6 @@
1
1
  /* empty css */
2
- //#region components/Image/Image.vanilla.css.ts
2
+ // components/Image/Image.vanilla.css.ts
3
3
  var image = "_18cm5pz0";
4
- //#endregion
5
4
  export { image };
6
5
 
7
6
  //# sourceMappingURL=Image.vanilla.css.js.map
@@ -4,7 +4,7 @@ import { image } from "./Image.vanilla.css.js";
4
4
  import { forwardRef } from "react";
5
5
  import { assignInlineVars } from "@vanilla-extract/dynamic";
6
6
  import { jsx } from "react/jsx-runtime";
7
- //#region components/Image/Image.vanilla.tsx
7
+ // components/Image/Image.vanilla.tsx
8
8
  var ImageVanillaImpl = forwardRef(({ as, className, css, style, ...props }, ref) => {
9
9
  const Component = as || "img";
10
10
  const { colors } = useVanillaExtractTheme();
@@ -23,7 +23,6 @@ var ImageVanillaImpl = forwardRef(({ as, className, css, style, ...props }, ref)
23
23
  });
24
24
  ImageVanillaImpl.displayName = "ImageVanilla";
25
25
  var ImageVanilla = ImageVanillaImpl;
26
- //#endregion
27
26
  export { ImageVanilla };
28
27
 
29
28
  //# sourceMappingURL=Image.vanilla.js.map
@@ -4,7 +4,7 @@ const require_Elevation = require("../Elevation/Elevation.cjs");
4
4
  let react = require("react");
5
5
  react = require_runtime.__toESM(react, 1);
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
- //#region components/Input/Input.tsx
7
+ // components/Input/Input.tsx
8
8
  var FOCUS_SHADOW = require_Elevation.elevationVariants[1].boxShadow;
9
9
  var StyledInput = require_stitches_config.styled("input", {
10
10
  appearance: "none",
@@ -261,7 +261,6 @@ var Input = react.default.forwardRef(({ size, startAdornment, endAdornment, css,
261
261
  ]
262
262
  });
263
263
  });
264
- //#endregion
265
264
  exports.Input = Input;
266
265
 
267
266
  //# sourceMappingURL=Input.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.cjs","names":[],"sources":["../../../components/Input/Input.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst FOCUS_SHADOW = elevationVariants[1].boxShadow; // apply elevation $1 when focus\n\nconst SMALL_HEIGHT = '$5';\nconst MEDIUM_HEIGHT = '$6';\nconst LARGE_HEIGHT = '$7';\n\nconst StyledInput = styled('input', {\n // Reset\n appearance: 'none',\n borderWidth: '0',\n boxSizing: 'border-box',\n fontFamily: '$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 $colors$inputBorder',\n color: '$inputText',\n fontVariantNumeric: 'tabular-nums',\n transition: 'box-shadow .1s ease-in-out',\n\n '&[type=\"number\"]': {\n pr: '0', // remove padding for number native controls\n },\n\n '&:-webkit-autofill,&:autofill': {\n boxShadow: 'inset 0 0 0 1px $colors$inputBorder, inset 0 0 0 100px $colors$inputBg',\n },\n\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontFamily: '$rubik',\n color: '$hiContrast',\n },\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$inputFocusBorder, ${FOCUS_SHADOW}`,\n },\n\n '&::placeholder': {\n color: '$inputPlaceholder',\n },\n\n '&:read-only:not(:disabled)': {\n boxShadow: 'none',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n color: '$inputDisabledText',\n },\n\n variants: {\n size: {\n small: {\n height: SMALL_HEIGHT,\n fontSize: '$1',\n px: '$2',\n lineHeight: '$sizes$5',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$1',\n },\n },\n medium: {\n height: MEDIUM_HEIGHT,\n fontSize: '$3',\n px: '$3',\n lineHeight: '$sizes$6',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$3',\n },\n },\n large: {\n height: LARGE_HEIGHT,\n fontSize: '$3',\n px: '$3',\n lineHeight: '$sizes$7',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$3',\n },\n },\n },\n startAdornment: {\n true: {},\n },\n endAdornment: {\n true: {},\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n '&:disabled': {\n boxShadow: 'none',\n },\n backgroundColor: 'transparent',\n '&:focus-visible': {\n backgroundColor: '$loContrast',\n },\n },\n },\n state: {\n invalid: {\n boxShadow: 'inset 0 0 0 1px $colors$inputInvalidBorder',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$inputInvalidBorder, ${FOCUS_SHADOW}`,\n },\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '@hover': {\n '&:hover:not(:read-only)': {\n cursor: 'text',\n },\n },\n '&:focus-visible:not(:read-only)': {\n cursor: 'text',\n },\n },\n text: {\n cursor: 'text',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n cursor: 'default',\n },\n compoundVariants: [\n {\n variant: 'ghost',\n state: 'invalid',\n css: {\n boxShadow: 'inset 0 0 0 1px $colors$inputInvalidBorder',\n },\n },\n {\n startAdornment: true,\n size: 'small',\n css: {\n paddingInlineStart: 'calc($2 + 15px)',\n },\n },\n {\n startAdornment: true,\n size: 'medium',\n css: {\n paddingInlineStart: 'calc($3 + 15px)',\n },\n },\n {\n startAdornment: true,\n size: 'large',\n css: {\n paddingInlineStart: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'small',\n css: {\n paddingInlineEnd: 'calc($2 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'medium',\n css: {\n paddingInlineEnd: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'large',\n css: {\n paddingInlineEnd: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'small',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($4 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n {\n endAdornment: true,\n size: 'medium',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($6 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n {\n endAdornment: true,\n size: 'large',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($6 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n ],\n});\n\nconst InputWrapper = styled('div', {\n // Reset\n outline: 'none',\n lineHeight: 0,\n\n position: 'relative',\n backgroundColor: '$inputBg',\n color: '$inputPlaceholder',\n\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\n '&:focus-visible': {\n '&::before': {\n backgroundColor: '$inputFocusBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.15,\n },\n },\n\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: '$inputHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n\n variants: {\n disabled: {\n true: {\n opacity: 0.7,\n color: '$inputDisabledText',\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: 'inherit',\n },\n '&::after': {\n backgroundColor: 'inherit',\n },\n },\n },\n },\n },\n state: {\n invalid: {\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$inputInvalidBorder',\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: '$2',\n '&::before, &::after': {\n borderRadius: '$2',\n },\n },\n medium: {\n borderRadius: '$3',\n '&::before, &::after': {\n borderRadius: '$3',\n },\n },\n large: {\n borderRadius: '$3',\n '&::before, &::after': {\n borderRadius: '$3',\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n disabled: false,\n },\n});\n\nconst AdornmentWrapper = styled('div', {\n position: 'absolute',\n top: 0,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n variants: {\n size: {\n small: {\n mx: 'calc($2 / 2)',\n },\n medium: {\n mx: 'calc($3 / 2)',\n },\n large: {\n mx: 'calc($3 / 2)',\n },\n },\n variant: {\n start: {\n left: 0,\n },\n end: {\n right: 0,\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nconst AdornmentWrapperStart = styled(AdornmentWrapper, {\n left: 0,\n});\n\nconst AdornmentWrapperEnd = styled(AdornmentWrapper, {\n right: 0,\n});\n\ntype DefaultInputVariants = VariantProps<typeof StyledInput>;\nexport type InputVariants = Omit<DefaultInputVariants, 'startAdornment' | 'endAdornment'>;\nexport interface HTMLInputProps extends React.InputHTMLAttributes<any> {\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputProps = Omit<HTMLInputProps, 'size'> & InputVariants & { css?: CSS };\n\nexport interface InputHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const Input = React.forwardRef<InputHandle, InputProps>(\n ({ size, startAdornment, endAdornment, css, ...props }, forwardedRef) => {\n const inputRef = React.useRef<InputHandle>(null);\n\n React.useImperativeHandle(\n forwardedRef,\n () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputHandle;\n },\n [inputRef]\n );\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <InputWrapper css={css} disabled={props.disabled} state={props.state}>\n {hasStartAdornment && (\n <AdornmentWrapperStart size={size}>{startAdornment}</AdornmentWrapperStart>\n )}\n\n <StyledInput\n ref={inputRef}\n startAdornment={hasStartAdornment}\n endAdornment={hasEndAdornment}\n size={size}\n {...props}\n />\n {hasEndAdornment && <AdornmentWrapperEnd size={size}>{endAdornment}</AdornmentWrapperEnd>}\n </InputWrapper>\n );\n }\n);\n"],"mappings":";;;;;;;AAMA,IAAM,eAAe,kBAAA,kBAAkB,EAAE,CAAC;AAM1C,IAAM,cAAc,wBAAA,OAAO,SAAS;CAElC,YAAY;CACZ,aAAa;CACb,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,yBAAyB;CAGzB,UAAU;CACV,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,OAAO;CACP,oBAAoB;CACpB,YAAY;CAEZ,sBAAoB,EAClB,IAAI,IACN;CAEA,iCAAiC,EAC/B,WAAW,yEACb;CAEA,yDAAyD;EACvD,YAAY;EACZ,OAAO;CACT;CAEA,mBAAmB,EACjB,WAAW,6CAA6C,eAC1D;CAEA,kBAAkB,EAChB,OAAO,oBACT;CAEA,8BAA8B,EAC5B,WAAW,OACb;CAEA,cAAc;EACZ,eAAe;EACf,OAAO;CACT;CAEA,UAAU;EACR,MAAM;GACJ,OAAO;IACL,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;GACA,QAAQ;IACN,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;GACA,OAAO;IACL,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;EACF;EACA,gBAAgB,EACd,MAAM,CAAC,EACT;EACA,cAAc,EACZ,MAAM,CAAC,EACT;EACA,SAAS,EACP,OAAO;GACL,WAAW;GACX,cAAc,EACZ,WAAW,OACb;GACA,iBAAiB;GACjB,mBAAmB,EACjB,iBAAiB,cACnB;EACF,EACF;EACA,OAAO,EACL,SAAS;GACP,WAAW;GACX,mBAAmB,EACjB,WAAW,+CAA+C,eAC5D;EACF,EACF;EACA,QAAQ;GACN,SAAS;IACP,QAAQ;IACR,UAAU,EACR,2BAA2B,EACzB,QAAQ,OACV,EACF;IACA,mCAAmC,EACjC,QAAQ,OACV;GACF;GACA,MAAM,EACJ,QAAQ,OACV;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,QAAQ;CACV;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,KAAK,EACH,WAAW,6CACb;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;CACF;AACF,CAAC;AAED,IAAM,eAAe,wBAAA,OAAO,OAAO;CAEjC,SAAS;CACT,YAAY;CAEZ,UAAU;CACV,iBAAiB;CACjB,OAAO;CAEP,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,eAAe;CACjB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,eAAe;CACjB;CAEA,mBAAmB;EACjB,aAAa,EACX,iBAAiB,gBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,aAAa,EACX,iBAAiB,gBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF,EACF;CAEA,UAAU;EACR,UAAU,EACR,MAAM;GACJ,SAAS;GACT,OAAO;GACP,UAAU,EACR,WAAW;IACT,aAAa,EACX,iBAAiB,UACnB;IACA,YAAY,EACV,iBAAiB,UACnB;GACF,EACF;EACF,EACF;EACA,OAAO,EACL,SAAS,EACP,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,sBACnB,EACF,EACF,EACF,EACF;EACA,MAAM;GACJ,OAAO;IACL,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;GACA,QAAQ;IACN,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;GACA,OAAO;IACL,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,UAAU;CACZ;AACF,CAAC;AAED,IAAM,mBAAmB,wBAAA,OAAO,OAAO;CACrC,UAAU;CACV,KAAK;CACL,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,UAAU;EACR,MAAM;GACJ,OAAO,EACL,IAAI,eACN;GACA,QAAQ,EACN,IAAI,eACN;GACA,OAAO,EACL,IAAI,eACN;EACF;EACA,SAAS;GACP,OAAO,EACL,MAAM,EACR;GACA,KAAK,EACH,OAAO,EACT;EACF;CACF;CACA,iBAAiB,EACf,MAAM,SACR;AACF,CAAC;AAED,IAAM,wBAAwB,wBAAA,OAAO,kBAAkB,EACrD,MAAM,EACR,CAAC;AAED,IAAM,sBAAsB,wBAAA,OAAO,kBAAkB,EACnD,OAAO,EACT,CAAC;AAgBD,IAAa,QAAQ,MAAA,QAAM,YACxB,EAAE,MAAM,gBAAgB,cAAc,KAAK,GAAG,SAAS,iBAAiB;CACvE,MAAM,WAAW,MAAA,QAAM,OAAoB,IAAI;CAE/C,MAAA,QAAM,oBACJ,oBACM;EACJ,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GACA,CAAC,QAAQ,CACX;CAEA,MAAM,oBAAoB,MAAA,QAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CAEvF,MAAM,kBAAkB,MAAA,QAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,cAAD;EAAmB;EAAK,UAAU,MAAM;EAAU,OAAO,MAAM;YAA/D;GACG,qBACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAD;IAA6B;cAAO;GAAsC,CAAA;GAG5E,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAD;IACE,KAAK;IACL,gBAAgB;IAChB,cAAc;IACR;IACN,GAAI;GACL,CAAA;GACA,mBAAmB,iBAAA,GAAA,kBAAA,IAAA,CAAC,qBAAD;IAA2B;cAAO;GAAkC,CAAA;EAC5E;;AAElB,CACF"}
1
+ {"version":3,"file":"Input.cjs","names":["elevationVariants","styled","React"],"sources":["../../../components/Input/Input.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst FOCUS_SHADOW = elevationVariants[1].boxShadow; // apply elevation $1 when focus\n\nconst SMALL_HEIGHT = '$5';\nconst MEDIUM_HEIGHT = '$6';\nconst LARGE_HEIGHT = '$7';\n\nconst StyledInput = styled('input', {\n // Reset\n appearance: 'none',\n borderWidth: '0',\n boxSizing: 'border-box',\n fontFamily: '$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 $colors$inputBorder',\n color: '$inputText',\n fontVariantNumeric: 'tabular-nums',\n transition: 'box-shadow .1s ease-in-out',\n\n '&[type=\"number\"]': {\n pr: '0', // remove padding for number native controls\n },\n\n '&:-webkit-autofill,&:autofill': {\n boxShadow: 'inset 0 0 0 1px $colors$inputBorder, inset 0 0 0 100px $colors$inputBg',\n },\n\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontFamily: '$rubik',\n color: '$hiContrast',\n },\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$inputFocusBorder, ${FOCUS_SHADOW}`,\n },\n\n '&::placeholder': {\n color: '$inputPlaceholder',\n },\n\n '&:read-only:not(:disabled)': {\n boxShadow: 'none',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n color: '$inputDisabledText',\n },\n\n variants: {\n size: {\n small: {\n height: SMALL_HEIGHT,\n fontSize: '$1',\n px: '$2',\n lineHeight: '$sizes$5',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$1',\n },\n },\n medium: {\n height: MEDIUM_HEIGHT,\n fontSize: '$3',\n px: '$3',\n lineHeight: '$sizes$6',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$3',\n },\n },\n large: {\n height: LARGE_HEIGHT,\n fontSize: '$3',\n px: '$3',\n lineHeight: '$sizes$7',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$3',\n },\n },\n },\n startAdornment: {\n true: {},\n },\n endAdornment: {\n true: {},\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n '&:disabled': {\n boxShadow: 'none',\n },\n backgroundColor: 'transparent',\n '&:focus-visible': {\n backgroundColor: '$loContrast',\n },\n },\n },\n state: {\n invalid: {\n boxShadow: 'inset 0 0 0 1px $colors$inputInvalidBorder',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$inputInvalidBorder, ${FOCUS_SHADOW}`,\n },\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '@hover': {\n '&:hover:not(:read-only)': {\n cursor: 'text',\n },\n },\n '&:focus-visible:not(:read-only)': {\n cursor: 'text',\n },\n },\n text: {\n cursor: 'text',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n cursor: 'default',\n },\n compoundVariants: [\n {\n variant: 'ghost',\n state: 'invalid',\n css: {\n boxShadow: 'inset 0 0 0 1px $colors$inputInvalidBorder',\n },\n },\n {\n startAdornment: true,\n size: 'small',\n css: {\n paddingInlineStart: 'calc($2 + 15px)',\n },\n },\n {\n startAdornment: true,\n size: 'medium',\n css: {\n paddingInlineStart: 'calc($3 + 15px)',\n },\n },\n {\n startAdornment: true,\n size: 'large',\n css: {\n paddingInlineStart: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'small',\n css: {\n paddingInlineEnd: 'calc($2 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'medium',\n css: {\n paddingInlineEnd: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'large',\n css: {\n paddingInlineEnd: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'small',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($4 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n {\n endAdornment: true,\n size: 'medium',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($6 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n {\n endAdornment: true,\n size: 'large',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($6 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n ],\n});\n\nconst InputWrapper = styled('div', {\n // Reset\n outline: 'none',\n lineHeight: 0,\n\n position: 'relative',\n backgroundColor: '$inputBg',\n color: '$inputPlaceholder',\n\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\n '&:focus-visible': {\n '&::before': {\n backgroundColor: '$inputFocusBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.15,\n },\n },\n\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: '$inputHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n\n variants: {\n disabled: {\n true: {\n opacity: 0.7,\n color: '$inputDisabledText',\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: 'inherit',\n },\n '&::after': {\n backgroundColor: 'inherit',\n },\n },\n },\n },\n },\n state: {\n invalid: {\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$inputInvalidBorder',\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: '$2',\n '&::before, &::after': {\n borderRadius: '$2',\n },\n },\n medium: {\n borderRadius: '$3',\n '&::before, &::after': {\n borderRadius: '$3',\n },\n },\n large: {\n borderRadius: '$3',\n '&::before, &::after': {\n borderRadius: '$3',\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n disabled: false,\n },\n});\n\nconst AdornmentWrapper = styled('div', {\n position: 'absolute',\n top: 0,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n variants: {\n size: {\n small: {\n mx: 'calc($2 / 2)',\n },\n medium: {\n mx: 'calc($3 / 2)',\n },\n large: {\n mx: 'calc($3 / 2)',\n },\n },\n variant: {\n start: {\n left: 0,\n },\n end: {\n right: 0,\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nconst AdornmentWrapperStart = styled(AdornmentWrapper, {\n left: 0,\n});\n\nconst AdornmentWrapperEnd = styled(AdornmentWrapper, {\n right: 0,\n});\n\ntype DefaultInputVariants = VariantProps<typeof StyledInput>;\nexport type InputVariants = Omit<DefaultInputVariants, 'startAdornment' | 'endAdornment'>;\nexport interface HTMLInputProps extends React.InputHTMLAttributes<any> {\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputProps = Omit<HTMLInputProps, 'size'> & InputVariants & { css?: CSS };\n\nexport interface InputHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const Input = React.forwardRef<InputHandle, InputProps>(\n ({ size, startAdornment, endAdornment, css, ...props }, forwardedRef) => {\n const inputRef = React.useRef<InputHandle>(null);\n\n React.useImperativeHandle(\n forwardedRef,\n () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputHandle;\n },\n [inputRef]\n );\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <InputWrapper css={css} disabled={props.disabled} state={props.state}>\n {hasStartAdornment && (\n <AdornmentWrapperStart size={size}>{startAdornment}</AdornmentWrapperStart>\n )}\n\n <StyledInput\n ref={inputRef}\n startAdornment={hasStartAdornment}\n endAdornment={hasEndAdornment}\n size={size}\n {...props}\n />\n {hasEndAdornment && <AdornmentWrapperEnd size={size}>{endAdornment}</AdornmentWrapperEnd>}\n </InputWrapper>\n );\n }\n);\n"],"mappings":";;;;;;;AAMA,IAAM,eAAeA,kBAAAA,kBAAkB,EAAE,CAAC;AAM1C,IAAM,cAAcC,wBAAAA,OAAO,SAAS;CAElC,YAAY;CACZ,aAAa;CACb,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,yBAAyB;CAGzB,UAAU;CACV,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,OAAO;CACP,oBAAoB;CACpB,YAAY;CAEZ,sBAAoB,EAClB,IAAI,IACN;CAEA,iCAAiC,EAC/B,WAAW,yEACb;CAEA,yDAAyD;EACvD,YAAY;EACZ,OAAO;CACT;CAEA,mBAAmB,EACjB,WAAW,6CAA6C,eAC1D;CAEA,kBAAkB,EAChB,OAAO,oBACT;CAEA,8BAA8B,EAC5B,WAAW,OACb;CAEA,cAAc;EACZ,eAAe;EACf,OAAO;CACT;CAEA,UAAU;EACR,MAAM;GACJ,OAAO;IACL,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;GACA,QAAQ;IACN,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;GACA,OAAO;IACL,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;EACF;EACA,gBAAgB,EACd,MAAM,CAAC,EACT;EACA,cAAc,EACZ,MAAM,CAAC,EACT;EACA,SAAS,EACP,OAAO;GACL,WAAW;GACX,cAAc,EACZ,WAAW,OACb;GACA,iBAAiB;GACjB,mBAAmB,EACjB,iBAAiB,cACnB;EACF,EACF;EACA,OAAO,EACL,SAAS;GACP,WAAW;GACX,mBAAmB,EACjB,WAAW,+CAA+C,eAC5D;EACF,EACF;EACA,QAAQ;GACN,SAAS;IACP,QAAQ;IACR,UAAU,EACR,2BAA2B,EACzB,QAAQ,OACV,EACF;IACA,mCAAmC,EACjC,QAAQ,OACV;GACF;GACA,MAAM,EACJ,QAAQ,OACV;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,QAAQ;CACV;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,KAAK,EACH,WAAW,6CACb;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;CACF;AACF,CAAC;AAED,IAAM,eAAeA,wBAAAA,OAAO,OAAO;CAEjC,SAAS;CACT,YAAY;CAEZ,UAAU;CACV,iBAAiB;CACjB,OAAO;CAEP,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,eAAe;CACjB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,eAAe;CACjB;CAEA,mBAAmB;EACjB,aAAa,EACX,iBAAiB,gBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,aAAa,EACX,iBAAiB,gBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF,EACF;CAEA,UAAU;EACR,UAAU,EACR,MAAM;GACJ,SAAS;GACT,OAAO;GACP,UAAU,EACR,WAAW;IACT,aAAa,EACX,iBAAiB,UACnB;IACA,YAAY,EACV,iBAAiB,UACnB;GACF,EACF;EACF,EACF;EACA,OAAO,EACL,SAAS,EACP,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,sBACnB,EACF,EACF,EACF,EACF;EACA,MAAM;GACJ,OAAO;IACL,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;GACA,QAAQ;IACN,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;GACA,OAAO;IACL,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,UAAU;CACZ;AACF,CAAC;AAED,IAAM,mBAAmBA,wBAAAA,OAAO,OAAO;CACrC,UAAU;CACV,KAAK;CACL,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,UAAU;EACR,MAAM;GACJ,OAAO,EACL,IAAI,eACN;GACA,QAAQ,EACN,IAAI,eACN;GACA,OAAO,EACL,IAAI,eACN;EACF;EACA,SAAS;GACP,OAAO,EACL,MAAM,EACR;GACA,KAAK,EACH,OAAO,EACT;EACF;CACF;CACA,iBAAiB,EACf,MAAM,SACR;AACF,CAAC;AAED,IAAM,wBAAwBA,wBAAAA,OAAO,kBAAkB,EACrD,MAAM,EACR,CAAC;AAED,IAAM,sBAAsBA,wBAAAA,OAAO,kBAAkB,EACnD,OAAO,EACT,CAAC;AAgBD,IAAa,QAAQC,MAAAA,QAAM,YACxB,EAAE,MAAM,gBAAgB,cAAc,KAAK,GAAG,SAAS,iBAAiB;CACvE,MAAM,WAAWA,MAAAA,QAAM,OAAoB,IAAI;CAE/C,MAAA,QAAM,oBACJ,oBACM;EACJ,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GACA,CAAC,QAAQ,CACX;CAEA,MAAM,oBAAoBA,MAAAA,QAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CAEvF,MAAM,kBAAkBA,MAAAA,QAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,cAAD;EAAmB;EAAK,UAAU,MAAM;EAAU,OAAO,MAAM;EAA/D,UAAA;GACG,qBACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,uBAAD;IAA6B;IAAO,UAAA;GAAsC,CAAA;GAG5E,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAD;IACE,KAAK;IACL,gBAAgB;IAChB,cAAc;IACR;IACN,GAAI;GACL,CAAA;GACA,mBAAmB,iBAAA,GAAA,kBAAA,IAAA,CAAC,qBAAD;IAA2B;IAAO,UAAA;GAAkC,CAAA;EAC5E;;AAElB,CACF"}
@@ -2,7 +2,7 @@ import { styled } from "../../stitches.config.js";
2
2
  import { elevationVariants } from "../Elevation/Elevation.js";
3
3
  import React from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
- //#region components/Input/Input.tsx
5
+ // components/Input/Input.tsx
6
6
  var FOCUS_SHADOW = elevationVariants[1].boxShadow;
7
7
  var StyledInput = styled("input", {
8
8
  appearance: "none",
@@ -259,7 +259,6 @@ var Input = React.forwardRef(({ size, startAdornment, endAdornment, css, ...prop
259
259
  ]
260
260
  });
261
261
  });
262
- //#endregion
263
262
  export { Input };
264
263
 
265
264
  //# sourceMappingURL=Input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","names":[],"sources":["../../../components/Input/Input.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst FOCUS_SHADOW = elevationVariants[1].boxShadow; // apply elevation $1 when focus\n\nconst SMALL_HEIGHT = '$5';\nconst MEDIUM_HEIGHT = '$6';\nconst LARGE_HEIGHT = '$7';\n\nconst StyledInput = styled('input', {\n // Reset\n appearance: 'none',\n borderWidth: '0',\n boxSizing: 'border-box',\n fontFamily: '$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 $colors$inputBorder',\n color: '$inputText',\n fontVariantNumeric: 'tabular-nums',\n transition: 'box-shadow .1s ease-in-out',\n\n '&[type=\"number\"]': {\n pr: '0', // remove padding for number native controls\n },\n\n '&:-webkit-autofill,&:autofill': {\n boxShadow: 'inset 0 0 0 1px $colors$inputBorder, inset 0 0 0 100px $colors$inputBg',\n },\n\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontFamily: '$rubik',\n color: '$hiContrast',\n },\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$inputFocusBorder, ${FOCUS_SHADOW}`,\n },\n\n '&::placeholder': {\n color: '$inputPlaceholder',\n },\n\n '&:read-only:not(:disabled)': {\n boxShadow: 'none',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n color: '$inputDisabledText',\n },\n\n variants: {\n size: {\n small: {\n height: SMALL_HEIGHT,\n fontSize: '$1',\n px: '$2',\n lineHeight: '$sizes$5',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$1',\n },\n },\n medium: {\n height: MEDIUM_HEIGHT,\n fontSize: '$3',\n px: '$3',\n lineHeight: '$sizes$6',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$3',\n },\n },\n large: {\n height: LARGE_HEIGHT,\n fontSize: '$3',\n px: '$3',\n lineHeight: '$sizes$7',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$3',\n },\n },\n },\n startAdornment: {\n true: {},\n },\n endAdornment: {\n true: {},\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n '&:disabled': {\n boxShadow: 'none',\n },\n backgroundColor: 'transparent',\n '&:focus-visible': {\n backgroundColor: '$loContrast',\n },\n },\n },\n state: {\n invalid: {\n boxShadow: 'inset 0 0 0 1px $colors$inputInvalidBorder',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$inputInvalidBorder, ${FOCUS_SHADOW}`,\n },\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '@hover': {\n '&:hover:not(:read-only)': {\n cursor: 'text',\n },\n },\n '&:focus-visible:not(:read-only)': {\n cursor: 'text',\n },\n },\n text: {\n cursor: 'text',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n cursor: 'default',\n },\n compoundVariants: [\n {\n variant: 'ghost',\n state: 'invalid',\n css: {\n boxShadow: 'inset 0 0 0 1px $colors$inputInvalidBorder',\n },\n },\n {\n startAdornment: true,\n size: 'small',\n css: {\n paddingInlineStart: 'calc($2 + 15px)',\n },\n },\n {\n startAdornment: true,\n size: 'medium',\n css: {\n paddingInlineStart: 'calc($3 + 15px)',\n },\n },\n {\n startAdornment: true,\n size: 'large',\n css: {\n paddingInlineStart: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'small',\n css: {\n paddingInlineEnd: 'calc($2 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'medium',\n css: {\n paddingInlineEnd: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'large',\n css: {\n paddingInlineEnd: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'small',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($4 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n {\n endAdornment: true,\n size: 'medium',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($6 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n {\n endAdornment: true,\n size: 'large',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($6 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n ],\n});\n\nconst InputWrapper = styled('div', {\n // Reset\n outline: 'none',\n lineHeight: 0,\n\n position: 'relative',\n backgroundColor: '$inputBg',\n color: '$inputPlaceholder',\n\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\n '&:focus-visible': {\n '&::before': {\n backgroundColor: '$inputFocusBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.15,\n },\n },\n\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: '$inputHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n\n variants: {\n disabled: {\n true: {\n opacity: 0.7,\n color: '$inputDisabledText',\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: 'inherit',\n },\n '&::after': {\n backgroundColor: 'inherit',\n },\n },\n },\n },\n },\n state: {\n invalid: {\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$inputInvalidBorder',\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: '$2',\n '&::before, &::after': {\n borderRadius: '$2',\n },\n },\n medium: {\n borderRadius: '$3',\n '&::before, &::after': {\n borderRadius: '$3',\n },\n },\n large: {\n borderRadius: '$3',\n '&::before, &::after': {\n borderRadius: '$3',\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n disabled: false,\n },\n});\n\nconst AdornmentWrapper = styled('div', {\n position: 'absolute',\n top: 0,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n variants: {\n size: {\n small: {\n mx: 'calc($2 / 2)',\n },\n medium: {\n mx: 'calc($3 / 2)',\n },\n large: {\n mx: 'calc($3 / 2)',\n },\n },\n variant: {\n start: {\n left: 0,\n },\n end: {\n right: 0,\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nconst AdornmentWrapperStart = styled(AdornmentWrapper, {\n left: 0,\n});\n\nconst AdornmentWrapperEnd = styled(AdornmentWrapper, {\n right: 0,\n});\n\ntype DefaultInputVariants = VariantProps<typeof StyledInput>;\nexport type InputVariants = Omit<DefaultInputVariants, 'startAdornment' | 'endAdornment'>;\nexport interface HTMLInputProps extends React.InputHTMLAttributes<any> {\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputProps = Omit<HTMLInputProps, 'size'> & InputVariants & { css?: CSS };\n\nexport interface InputHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const Input = React.forwardRef<InputHandle, InputProps>(\n ({ size, startAdornment, endAdornment, css, ...props }, forwardedRef) => {\n const inputRef = React.useRef<InputHandle>(null);\n\n React.useImperativeHandle(\n forwardedRef,\n () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputHandle;\n },\n [inputRef]\n );\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <InputWrapper css={css} disabled={props.disabled} state={props.state}>\n {hasStartAdornment && (\n <AdornmentWrapperStart size={size}>{startAdornment}</AdornmentWrapperStart>\n )}\n\n <StyledInput\n ref={inputRef}\n startAdornment={hasStartAdornment}\n endAdornment={hasEndAdornment}\n size={size}\n {...props}\n />\n {hasEndAdornment && <AdornmentWrapperEnd size={size}>{endAdornment}</AdornmentWrapperEnd>}\n </InputWrapper>\n );\n }\n);\n"],"mappings":";;;;;AAMA,IAAM,eAAe,kBAAkB,EAAE,CAAC;AAM1C,IAAM,cAAc,OAAO,SAAS;CAElC,YAAY;CACZ,aAAa;CACb,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,yBAAyB;CAGzB,UAAU;CACV,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,OAAO;CACP,oBAAoB;CACpB,YAAY;CAEZ,sBAAoB,EAClB,IAAI,IACN;CAEA,iCAAiC,EAC/B,WAAW,yEACb;CAEA,yDAAyD;EACvD,YAAY;EACZ,OAAO;CACT;CAEA,mBAAmB,EACjB,WAAW,6CAA6C,eAC1D;CAEA,kBAAkB,EAChB,OAAO,oBACT;CAEA,8BAA8B,EAC5B,WAAW,OACb;CAEA,cAAc;EACZ,eAAe;EACf,OAAO;CACT;CAEA,UAAU;EACR,MAAM;GACJ,OAAO;IACL,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;GACA,QAAQ;IACN,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;GACA,OAAO;IACL,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;EACF;EACA,gBAAgB,EACd,MAAM,CAAC,EACT;EACA,cAAc,EACZ,MAAM,CAAC,EACT;EACA,SAAS,EACP,OAAO;GACL,WAAW;GACX,cAAc,EACZ,WAAW,OACb;GACA,iBAAiB;GACjB,mBAAmB,EACjB,iBAAiB,cACnB;EACF,EACF;EACA,OAAO,EACL,SAAS;GACP,WAAW;GACX,mBAAmB,EACjB,WAAW,+CAA+C,eAC5D;EACF,EACF;EACA,QAAQ;GACN,SAAS;IACP,QAAQ;IACR,UAAU,EACR,2BAA2B,EACzB,QAAQ,OACV,EACF;IACA,mCAAmC,EACjC,QAAQ,OACV;GACF;GACA,MAAM,EACJ,QAAQ,OACV;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,QAAQ;CACV;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,KAAK,EACH,WAAW,6CACb;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;CACF;AACF,CAAC;AAED,IAAM,eAAe,OAAO,OAAO;CAEjC,SAAS;CACT,YAAY;CAEZ,UAAU;CACV,iBAAiB;CACjB,OAAO;CAEP,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,eAAe;CACjB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,eAAe;CACjB;CAEA,mBAAmB;EACjB,aAAa,EACX,iBAAiB,gBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,aAAa,EACX,iBAAiB,gBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF,EACF;CAEA,UAAU;EACR,UAAU,EACR,MAAM;GACJ,SAAS;GACT,OAAO;GACP,UAAU,EACR,WAAW;IACT,aAAa,EACX,iBAAiB,UACnB;IACA,YAAY,EACV,iBAAiB,UACnB;GACF,EACF;EACF,EACF;EACA,OAAO,EACL,SAAS,EACP,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,sBACnB,EACF,EACF,EACF,EACF;EACA,MAAM;GACJ,OAAO;IACL,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;GACA,QAAQ;IACN,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;GACA,OAAO;IACL,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,UAAU;CACZ;AACF,CAAC;AAED,IAAM,mBAAmB,OAAO,OAAO;CACrC,UAAU;CACV,KAAK;CACL,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,UAAU;EACR,MAAM;GACJ,OAAO,EACL,IAAI,eACN;GACA,QAAQ,EACN,IAAI,eACN;GACA,OAAO,EACL,IAAI,eACN;EACF;EACA,SAAS;GACP,OAAO,EACL,MAAM,EACR;GACA,KAAK,EACH,OAAO,EACT;EACF;CACF;CACA,iBAAiB,EACf,MAAM,SACR;AACF,CAAC;AAED,IAAM,wBAAwB,OAAO,kBAAkB,EACrD,MAAM,EACR,CAAC;AAED,IAAM,sBAAsB,OAAO,kBAAkB,EACnD,OAAO,EACT,CAAC;AAgBD,IAAa,QAAQ,MAAM,YACxB,EAAE,MAAM,gBAAgB,cAAc,KAAK,GAAG,SAAS,iBAAiB;CACvE,MAAM,WAAW,MAAM,OAAoB,IAAI;CAE/C,MAAM,oBACJ,oBACM;EACJ,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GACA,CAAC,QAAQ,CACX;CAEA,MAAM,oBAAoB,MAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CAEvF,MAAM,kBAAkB,MAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,OACE,qBAAC,cAAD;EAAmB;EAAK,UAAU,MAAM;EAAU,OAAO,MAAM;YAA/D;GACG,qBACC,oBAAC,uBAAD;IAA6B;cAAO;GAAsC,CAAA;GAG5E,oBAAC,aAAD;IACE,KAAK;IACL,gBAAgB;IAChB,cAAc;IACR;IACN,GAAI;GACL,CAAA;GACA,mBAAmB,oBAAC,qBAAD;IAA2B;cAAO;GAAkC,CAAA;EAC5E;;AAElB,CACF"}
1
+ {"version":3,"file":"Input.js","names":[],"sources":["../../../components/Input/Input.tsx"],"sourcesContent":["import React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\n\n// CONSTANTS\nconst FOCUS_SHADOW = elevationVariants[1].boxShadow; // apply elevation $1 when focus\n\nconst SMALL_HEIGHT = '$5';\nconst MEDIUM_HEIGHT = '$6';\nconst LARGE_HEIGHT = '$7';\n\nconst StyledInput = styled('input', {\n // Reset\n appearance: 'none',\n borderWidth: '0',\n boxSizing: 'border-box',\n fontFamily: '$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 $colors$inputBorder',\n color: '$inputText',\n fontVariantNumeric: 'tabular-nums',\n transition: 'box-shadow .1s ease-in-out',\n\n '&[type=\"number\"]': {\n pr: '0', // remove padding for number native controls\n },\n\n '&:-webkit-autofill,&:autofill': {\n boxShadow: 'inset 0 0 0 1px $colors$inputBorder, inset 0 0 0 100px $colors$inputBg',\n },\n\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontFamily: '$rubik',\n color: '$hiContrast',\n },\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$inputFocusBorder, ${FOCUS_SHADOW}`,\n },\n\n '&::placeholder': {\n color: '$inputPlaceholder',\n },\n\n '&:read-only:not(:disabled)': {\n boxShadow: 'none',\n },\n\n '&:disabled': {\n pointerEvents: 'none',\n color: '$inputDisabledText',\n },\n\n variants: {\n size: {\n small: {\n height: SMALL_HEIGHT,\n fontSize: '$1',\n px: '$2',\n lineHeight: '$sizes$5',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$1',\n },\n },\n medium: {\n height: MEDIUM_HEIGHT,\n fontSize: '$3',\n px: '$3',\n lineHeight: '$sizes$6',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$3',\n },\n },\n large: {\n height: LARGE_HEIGHT,\n fontSize: '$3',\n px: '$3',\n lineHeight: '$sizes$7',\n '&:-webkit-autofill::first-line,&:autofill::first-line': {\n fontSize: '$3',\n },\n },\n },\n startAdornment: {\n true: {},\n },\n endAdornment: {\n true: {},\n },\n variant: {\n ghost: {\n boxShadow: 'none',\n '&:disabled': {\n boxShadow: 'none',\n },\n backgroundColor: 'transparent',\n '&:focus-visible': {\n backgroundColor: '$loContrast',\n },\n },\n },\n state: {\n invalid: {\n boxShadow: 'inset 0 0 0 1px $colors$inputInvalidBorder',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$inputInvalidBorder, ${FOCUS_SHADOW}`,\n },\n },\n },\n cursor: {\n default: {\n cursor: 'default',\n '@hover': {\n '&:hover:not(:read-only)': {\n cursor: 'text',\n },\n },\n '&:focus-visible:not(:read-only)': {\n cursor: 'text',\n },\n },\n text: {\n cursor: 'text',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n cursor: 'default',\n },\n compoundVariants: [\n {\n variant: 'ghost',\n state: 'invalid',\n css: {\n boxShadow: 'inset 0 0 0 1px $colors$inputInvalidBorder',\n },\n },\n {\n startAdornment: true,\n size: 'small',\n css: {\n paddingInlineStart: 'calc($2 + 15px)',\n },\n },\n {\n startAdornment: true,\n size: 'medium',\n css: {\n paddingInlineStart: 'calc($3 + 15px)',\n },\n },\n {\n startAdornment: true,\n size: 'large',\n css: {\n paddingInlineStart: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'small',\n css: {\n paddingInlineEnd: 'calc($2 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'medium',\n css: {\n paddingInlineEnd: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'large',\n css: {\n paddingInlineEnd: 'calc($3 + 15px)',\n },\n },\n {\n endAdornment: true,\n size: 'small',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($4 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n {\n endAdornment: true,\n size: 'medium',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($6 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n {\n endAdornment: true,\n size: 'large',\n state: 'invalid',\n css: {\n paddingInlineEnd: 'calc($6 + 30px)', // size padding + adornment margins + icon size + icon size\n },\n },\n ],\n});\n\nconst InputWrapper = styled('div', {\n // Reset\n outline: 'none',\n lineHeight: 0,\n\n position: 'relative',\n backgroundColor: '$inputBg',\n color: '$inputPlaceholder',\n\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\n '&:focus-visible': {\n '&::before': {\n backgroundColor: '$inputFocusBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.15,\n },\n },\n\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: '$inputHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n\n variants: {\n disabled: {\n true: {\n opacity: 0.7,\n color: '$inputDisabledText',\n '@hover': {\n '&:hover': {\n '&::before': {\n backgroundColor: 'inherit',\n },\n '&::after': {\n backgroundColor: 'inherit',\n },\n },\n },\n },\n },\n state: {\n invalid: {\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$inputInvalidBorder',\n },\n },\n },\n },\n },\n size: {\n small: {\n borderRadius: '$2',\n '&::before, &::after': {\n borderRadius: '$2',\n },\n },\n medium: {\n borderRadius: '$3',\n '&::before, &::after': {\n borderRadius: '$3',\n },\n },\n large: {\n borderRadius: '$3',\n '&::before, &::after': {\n borderRadius: '$3',\n },\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n disabled: false,\n },\n});\n\nconst AdornmentWrapper = styled('div', {\n position: 'absolute',\n top: 0,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n variants: {\n size: {\n small: {\n mx: 'calc($2 / 2)',\n },\n medium: {\n mx: 'calc($3 / 2)',\n },\n large: {\n mx: 'calc($3 / 2)',\n },\n },\n variant: {\n start: {\n left: 0,\n },\n end: {\n right: 0,\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\n\nconst AdornmentWrapperStart = styled(AdornmentWrapper, {\n left: 0,\n});\n\nconst AdornmentWrapperEnd = styled(AdornmentWrapper, {\n right: 0,\n});\n\ntype DefaultInputVariants = VariantProps<typeof StyledInput>;\nexport type InputVariants = Omit<DefaultInputVariants, 'startAdornment' | 'endAdornment'>;\nexport interface HTMLInputProps extends React.InputHTMLAttributes<any> {\n startAdornment?: React.ReactNode;\n endAdornment?: React.ReactNode;\n type?: string;\n}\n\nexport type InputProps = Omit<HTMLInputProps, 'size'> & InputVariants & { css?: CSS };\n\nexport interface InputHandle extends HTMLInputElement {\n clear: () => void;\n}\n\nexport const Input = React.forwardRef<InputHandle, InputProps>(\n ({ size, startAdornment, endAdornment, css, ...props }, forwardedRef) => {\n const inputRef = React.useRef<InputHandle>(null);\n\n React.useImperativeHandle(\n forwardedRef,\n () => {\n const { current } = inputRef;\n if (current) {\n current.clear = () => {\n current.value = '';\n };\n }\n return current as InputHandle;\n },\n [inputRef]\n );\n\n const hasStartAdornment = React.useMemo(() => Boolean(startAdornment), [startAdornment]);\n\n const hasEndAdornment = React.useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <InputWrapper css={css} disabled={props.disabled} state={props.state}>\n {hasStartAdornment && (\n <AdornmentWrapperStart size={size}>{startAdornment}</AdornmentWrapperStart>\n )}\n\n <StyledInput\n ref={inputRef}\n startAdornment={hasStartAdornment}\n endAdornment={hasEndAdornment}\n size={size}\n {...props}\n />\n {hasEndAdornment && <AdornmentWrapperEnd size={size}>{endAdornment}</AdornmentWrapperEnd>}\n </InputWrapper>\n );\n }\n);\n"],"mappings":";;;;;AAMA,IAAM,eAAe,kBAAkB,EAAE,CAAC;AAM1C,IAAM,cAAc,OAAO,SAAS;CAElC,YAAY;CACZ,aAAa;CACb,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,SAAS;CACT,SAAS;CACT,OAAO;CACP,yBAAyB;CAGzB,UAAU;CACV,iBAAiB;CACjB,cAAc;CACd,WAAW;CACX,OAAO;CACP,oBAAoB;CACpB,YAAY;CAEZ,sBAAoB,EAClB,IAAI,IACN;CAEA,iCAAiC,EAC/B,WAAW,yEACb;CAEA,yDAAyD;EACvD,YAAY;EACZ,OAAO;CACT;CAEA,mBAAmB,EACjB,WAAW,6CAA6C,eAC1D;CAEA,kBAAkB,EAChB,OAAO,oBACT;CAEA,8BAA8B,EAC5B,WAAW,OACb;CAEA,cAAc;EACZ,eAAe;EACf,OAAO;CACT;CAEA,UAAU;EACR,MAAM;GACJ,OAAO;IACL,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;GACA,QAAQ;IACN,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;GACA,OAAO;IACL,QAAQ;IACR,UAAU;IACV,IAAI;IACJ,YAAY;IACZ,yDAAyD,EACvD,UAAU,KACZ;GACF;EACF;EACA,gBAAgB,EACd,MAAM,CAAC,EACT;EACA,cAAc,EACZ,MAAM,CAAC,EACT;EACA,SAAS,EACP,OAAO;GACL,WAAW;GACX,cAAc,EACZ,WAAW,OACb;GACA,iBAAiB;GACjB,mBAAmB,EACjB,iBAAiB,cACnB;EACF,EACF;EACA,OAAO,EACL,SAAS;GACP,WAAW;GACX,mBAAmB,EACjB,WAAW,+CAA+C,eAC5D;EACF,EACF;EACA,QAAQ;GACN,SAAS;IACP,QAAQ;IACR,UAAU,EACR,2BAA2B,EACzB,QAAQ,OACV,EACF;IACA,mCAAmC,EACjC,QAAQ,OACV;GACF;GACA,MAAM,EACJ,QAAQ,OACV;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,QAAQ;CACV;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,KAAK,EACH,WAAW,6CACb;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,gBAAgB;GAChB,MAAM;GACN,KAAK,EACH,oBAAoB,kBACtB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;EACA;GACE,cAAc;GACd,MAAM;GACN,OAAO;GACP,KAAK,EACH,kBAAkB,kBACpB;EACF;CACF;AACF,CAAC;AAED,IAAM,eAAe,OAAO,OAAO;CAEjC,SAAS;CACT,YAAY;CAEZ,UAAU;CACV,iBAAiB;CACjB,OAAO;CAEP,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,eAAe;CACjB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;EACP,eAAe;CACjB;CAEA,mBAAmB;EACjB,aAAa,EACX,iBAAiB,gBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,aAAa,EACX,iBAAiB,gBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF,EACF;CAEA,UAAU;EACR,UAAU,EACR,MAAM;GACJ,SAAS;GACT,OAAO;GACP,UAAU,EACR,WAAW;IACT,aAAa,EACX,iBAAiB,UACnB;IACA,YAAY,EACV,iBAAiB,UACnB;GACF,EACF;EACF,EACF;EACA,OAAO,EACL,SAAS,EACP,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,sBACnB,EACF,EACF,EACF,EACF;EACA,MAAM;GACJ,OAAO;IACL,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;GACA,QAAQ;IACN,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;GACA,OAAO;IACL,cAAc;IACd,uBAAuB,EACrB,cAAc,KAChB;GACF;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,UAAU;CACZ;AACF,CAAC;AAED,IAAM,mBAAmB,OAAO,OAAO;CACrC,UAAU;CACV,KAAK;CACL,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,UAAU;EACR,MAAM;GACJ,OAAO,EACL,IAAI,eACN;GACA,QAAQ,EACN,IAAI,eACN;GACA,OAAO,EACL,IAAI,eACN;EACF;EACA,SAAS;GACP,OAAO,EACL,MAAM,EACR;GACA,KAAK,EACH,OAAO,EACT;EACF;CACF;CACA,iBAAiB,EACf,MAAM,SACR;AACF,CAAC;AAED,IAAM,wBAAwB,OAAO,kBAAkB,EACrD,MAAM,EACR,CAAC;AAED,IAAM,sBAAsB,OAAO,kBAAkB,EACnD,OAAO,EACT,CAAC;AAgBD,IAAa,QAAQ,MAAM,YACxB,EAAE,MAAM,gBAAgB,cAAc,KAAK,GAAG,SAAS,iBAAiB;CACvE,MAAM,WAAW,MAAM,OAAoB,IAAI;CAE/C,MAAM,oBACJ,oBACM;EACJ,MAAM,EAAE,YAAY;EACpB,IAAI,SACF,QAAQ,cAAc;GACpB,QAAQ,QAAQ;EAClB;EAEF,OAAO;CACT,GACA,CAAC,QAAQ,CACX;CAEA,MAAM,oBAAoB,MAAM,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CAEvF,MAAM,kBAAkB,MAAM,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAEjF,OACE,qBAAC,cAAD;EAAmB;EAAK,UAAU,MAAM;EAAU,OAAO,MAAM;EAA/D,UAAA;GACG,qBACC,oBAAC,uBAAD;IAA6B;IAAO,UAAA;GAAsC,CAAA;GAG5E,oBAAC,aAAD;IACE,KAAK;IACL,gBAAgB;IAChB,cAAc;IACR;IACN,GAAI;GACL,CAAA;GACA,mBAAmB,oBAAC,qBAAD;IAA2B;IAAO,UAAA;GAAkC,CAAA;EAC5E;;AAElB,CACF"}
@@ -1,7 +1,7 @@
1
1
  const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
2
  let tinycolor2 = require("tinycolor2");
3
3
  tinycolor2 = require_runtime.__toESM(tinycolor2, 1);
4
- //#region components/Input/Input.theme.ts
4
+ // components/Input/Input.theme.ts
5
5
  var inputLightTheme = {
6
6
  inputBg: "hsl(240, 14.0%, 99.0%)",
7
7
  inputBorder: "hsl(208, 9.0%, 73.0%)",
@@ -24,7 +24,6 @@ var inputDarkTheme = {
24
24
  inputDisabledText: (0, tinycolor2.default)("white").setAlpha(.35).toHslString(),
25
25
  inputInvalidBorder: "hsl(358, 75%, 59%)"
26
26
  };
27
- //#endregion
28
27
  exports.inputDarkTheme = inputDarkTheme;
29
28
  exports.inputLightTheme = inputLightTheme;
30
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"Input.theme.cjs","names":[],"sources":["../../../components/Input/Input.theme.ts"],"sourcesContent":["import tinycolor from 'tinycolor2';\n\n// Plain TypeScript color tokens (no vanilla-extract)\n// Using default blue primary color for static tokens\nexport const inputLightTheme = {\n inputBg: 'hsl(240, 14.0%, 99.0%)', // $deepBlue1\n inputBorder: 'hsl(208, 9.0%, 73.0%)', // $grayBlue9\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: 'hsl(206, 100%, 50%)', // blue8\n inputHoverBg: 'hsla(0, 0%, 100%, 0.372)', // $whiteA9\n inputText: tinycolor('black').setAlpha(0.74).toHslString(),\n inputPlaceholder: 'hsla(0, 0%, 0%, 0.498)', // $blackA10\n inputDisabledText: tinycolor('black').setAlpha(0.35).toHslString(),\n inputInvalidBorder: 'hsl(358, 75%, 59%)', // $red9\n};\n\nexport const inputDarkTheme = {\n inputBg: 'hsl(209, 38.0%, 12.0%)', // $grayBlue7 dark\n inputBorder: 'hsl(208, 11.0%, 45.0%)', // $grayBlue9 dark\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: 'hsl(206, 100%, 70%)', // blue11\n inputHoverBg: 'hsla(0, 0%, 100%, 0.104)', // $whiteA4\n inputText: tinycolor('white').setAlpha(0.8).toHslString(),\n inputPlaceholder: 'hsla(0, 0%, 100%, 0.455)', // $whiteA10\n inputDisabledText: tinycolor('white').setAlpha(0.35).toHslString(),\n inputInvalidBorder: 'hsl(358, 75%, 59%)', // $red9\n};\n"],"mappings":";;;;AAIA,IAAa,kBAAkB;CAC7B,SAAS;CACT,aAAa;CACb,eAAA,GAAA,WAAA,QAAA,CAAwB,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CAC5D,kBAAkB;CAClB,cAAc;CACd,YAAA,GAAA,WAAA,QAAA,CAAqB,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CACzD,kBAAkB;CAClB,oBAAA,GAAA,WAAA,QAAA,CAA6B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CACjE,oBAAoB;AACtB;AAEA,IAAa,iBAAiB;CAC5B,SAAS;CACT,aAAa;CACb,eAAA,GAAA,WAAA,QAAA,CAAwB,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CAC5D,kBAAkB;CAClB,cAAc;CACd,YAAA,GAAA,WAAA,QAAA,CAAqB,OAAO,CAAC,CAAC,SAAS,EAAG,CAAC,CAAC,YAAY;CACxD,kBAAkB;CAClB,oBAAA,GAAA,WAAA,QAAA,CAA6B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CACjE,oBAAoB;AACtB"}
1
+ {"version":3,"file":"Input.theme.cjs","names":["tinycolor"],"sources":["../../../components/Input/Input.theme.ts"],"sourcesContent":["import tinycolor from 'tinycolor2';\n\n// Plain TypeScript color tokens (no vanilla-extract)\n// Using default blue primary color for static tokens\nexport const inputLightTheme = {\n inputBg: 'hsl(240, 14.0%, 99.0%)', // $deepBlue1\n inputBorder: 'hsl(208, 9.0%, 73.0%)', // $grayBlue9\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: 'hsl(206, 100%, 50%)', // blue8\n inputHoverBg: 'hsla(0, 0%, 100%, 0.372)', // $whiteA9\n inputText: tinycolor('black').setAlpha(0.74).toHslString(),\n inputPlaceholder: 'hsla(0, 0%, 0%, 0.498)', // $blackA10\n inputDisabledText: tinycolor('black').setAlpha(0.35).toHslString(),\n inputInvalidBorder: 'hsl(358, 75%, 59%)', // $red9\n};\n\nexport const inputDarkTheme = {\n inputBg: 'hsl(209, 38.0%, 12.0%)', // $grayBlue7 dark\n inputBorder: 'hsl(208, 11.0%, 45.0%)', // $grayBlue9 dark\n inputFocusBg: tinycolor('black').setAlpha(0.15).toHslString(),\n inputFocusBorder: 'hsl(206, 100%, 70%)', // blue11\n inputHoverBg: 'hsla(0, 0%, 100%, 0.104)', // $whiteA4\n inputText: tinycolor('white').setAlpha(0.8).toHslString(),\n inputPlaceholder: 'hsla(0, 0%, 100%, 0.455)', // $whiteA10\n inputDisabledText: tinycolor('white').setAlpha(0.35).toHslString(),\n inputInvalidBorder: 'hsl(358, 75%, 59%)', // $red9\n};\n"],"mappings":";;;;AAIA,IAAa,kBAAkB;CAC7B,SAAS;CACT,aAAa;CACb,eAAA,GAAcA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CAC5D,kBAAkB;CAClB,cAAc;CACd,YAAA,GAAWA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CACzD,kBAAkB;CAClB,oBAAA,GAAmBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CACjE,oBAAoB;AACtB;AAEA,IAAa,iBAAiB;CAC5B,SAAS;CACT,aAAa;CACb,eAAA,GAAcA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CAC5D,kBAAkB;CAClB,cAAc;CACd,YAAA,GAAWA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,EAAG,CAAC,CAAC,YAAY;CACxD,kBAAkB;CAClB,oBAAA,GAAmBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;CACjE,oBAAoB;AACtB"}
@@ -1,5 +1,5 @@
1
1
  import tinycolor from "tinycolor2";
2
- //#region components/Input/Input.theme.ts
2
+ // components/Input/Input.theme.ts
3
3
  var inputLightTheme = {
4
4
  inputBg: "hsl(240, 14.0%, 99.0%)",
5
5
  inputBorder: "hsl(208, 9.0%, 73.0%)",
@@ -22,7 +22,6 @@ var inputDarkTheme = {
22
22
  inputDisabledText: tinycolor("white").setAlpha(.35).toHslString(),
23
23
  inputInvalidBorder: "hsl(358, 75%, 59%)"
24
24
  };
25
- //#endregion
26
25
  export { inputDarkTheme, inputLightTheme };
27
26
 
28
27
  //# sourceMappingURL=Input.theme.js.map