@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,4 +1,21 @@
1
1
  import { keyframes, styled } from "../../stitches.config.js";
2
+ // components/Bubble/Bubble.tsx
3
+ var bip = keyframes({
4
+ "0%": {
5
+ top: 0,
6
+ right: 0,
7
+ bottom: 0,
8
+ left: 0,
9
+ opacity: 1
10
+ },
11
+ "100%": {
12
+ top: -8,
13
+ right: -8,
14
+ bottom: -8,
15
+ left: -8,
16
+ opacity: 0
17
+ }
18
+ });
2
19
  var Bubble = styled("div", {
3
20
  display: "inline-block",
4
21
  size: "$4",
@@ -6,22 +23,7 @@ var Bubble = styled("div", {
6
23
  borderRadius: "50%",
7
24
  position: "relative",
8
25
  "&::before": {
9
- animation: `${keyframes({
10
- "0%": {
11
- top: 0,
12
- right: 0,
13
- bottom: 0,
14
- left: 0,
15
- opacity: 1
16
- },
17
- "100%": {
18
- top: -8,
19
- right: -8,
20
- bottom: -8,
21
- left: -8,
22
- opacity: 0
23
- }
24
- })} 1s ease infinite`,
26
+ animation: `${bip} 1s ease infinite`,
25
27
  boxSizing: "border-box",
26
28
  content: "\"\"",
27
29
  position: "absolute",
@@ -91,7 +93,6 @@ var Bubble = styled("div", {
91
93
  noAnimation: false
92
94
  }
93
95
  });
94
- //#endregion
95
96
  export { Bubble };
96
97
 
97
98
  //# sourceMappingURL=Bubble.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.js","names":[],"sources":["../../../components/Bubble/Bubble.tsx"],"sourcesContent":["import { keyframes, styled } from '../../stitches.config';\n\nconst bip = keyframes({\n '0%': {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n opacity: 1,\n },\n '100%': {\n top: -8,\n right: -8,\n bottom: -8,\n left: -8,\n opacity: 0,\n },\n});\n\nexport const Bubble = styled('div', {\n display: 'inline-block',\n size: '$4',\n bc: '$red8',\n borderRadius: '50%',\n position: 'relative',\n\n '&::before': {\n animation: `${bip} 1s ease infinite`,\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n boxShadow: 'inset 0 0 0 1px rgba(255,255,255,.5)',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: -1,\n },\n\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n bc: 'rgba(255,255,255,.1)',\n borderRadius: '50%',\n pointerEvents: 'none',\n },\n\n variants: {\n variant: {\n red: { bc: '$red8', '&::before': { bc: '$red8' } },\n green: { bc: '$green8', '&::before': { bc: '$green8' } },\n orange: { bc: '$orange8', '&::before': { bc: '$orange8' } },\n blue: { bc: '$blue8', '&::before': { bc: '$blue8' } },\n yellow: { bc: '$neon8', '&::before': { bc: '$neon8' } },\n purple: { bc: '$purple8', '&::before': { bc: '$purple8' } },\n gray: { bc: '$slate8', '&::before': { bc: '$slate8' } },\n },\n size: {\n 'x-small': { size: '$1' },\n small: { size: '$2' },\n medium: { size: '$3' },\n large: { size: '$4' },\n 'x-large': { size: '$5' },\n },\n noAnimation: {\n true: {\n '&::before': { content: 'none' },\n },\n },\n },\n\n defaultVariants: {\n size: 'small',\n noAnimation: false,\n },\n});\n"],"mappings":";AAmBA,IAAa,SAAS,OAAO,OAAO;CAClC,SAAS;CACT,MAAM;CACN,IAAI;CACJ,cAAc;CACd,UAAU;CAEV,aAAa;EACX,WAAW,GAzBH,UAAU;GACpB,MAAM;IACJ,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,SAAS;GACX;GACA,QAAQ;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,SAAS;GACX;EACF,CAUkB,EAAI;EAClB,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,WAAW;EACX,cAAc;EACd,eAAe;EACf,QAAQ;CACV;CAEA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,IAAI;EACJ,cAAc;EACd,eAAe;CACjB;CAEA,UAAU;EACR,SAAS;GACP,KAAK;IAAE,IAAI;IAAS,aAAa,EAAE,IAAI,QAAQ;GAAE;GACjD,OAAO;IAAE,IAAI;IAAW,aAAa,EAAE,IAAI,UAAU;GAAE;GACvD,QAAQ;IAAE,IAAI;IAAY,aAAa,EAAE,IAAI,WAAW;GAAE;GAC1D,MAAM;IAAE,IAAI;IAAU,aAAa,EAAE,IAAI,SAAS;GAAE;GACpD,QAAQ;IAAE,IAAI;IAAU,aAAa,EAAE,IAAI,SAAS;GAAE;GACtD,QAAQ;IAAE,IAAI;IAAY,aAAa,EAAE,IAAI,WAAW;GAAE;GAC1D,MAAM;IAAE,IAAI;IAAW,aAAa,EAAE,IAAI,UAAU;GAAE;EACxD;EACA,MAAM;GACJ,WAAW,EAAE,MAAM,KAAK;GACxB,OAAO,EAAE,MAAM,KAAK;GACpB,QAAQ,EAAE,MAAM,KAAK;GACrB,OAAO,EAAE,MAAM,KAAK;GACpB,WAAW,EAAE,MAAM,KAAK;EAC1B;EACA,aAAa,EACX,MAAM,EACJ,aAAa,EAAE,SAAS,OAAO,EACjC,EACF;CACF;CAEA,iBAAiB;EACf,MAAM;EACN,aAAa;CACf;AACF,CAAC"}
1
+ {"version":3,"file":"Bubble.js","names":[],"sources":["../../../components/Bubble/Bubble.tsx"],"sourcesContent":["import { keyframes, styled } from '../../stitches.config';\n\nconst bip = keyframes({\n '0%': {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n opacity: 1,\n },\n '100%': {\n top: -8,\n right: -8,\n bottom: -8,\n left: -8,\n opacity: 0,\n },\n});\n\nexport const Bubble = styled('div', {\n display: 'inline-block',\n size: '$4',\n bc: '$red8',\n borderRadius: '50%',\n position: 'relative',\n\n '&::before': {\n animation: `${bip} 1s ease infinite`,\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n boxShadow: 'inset 0 0 0 1px rgba(255,255,255,.5)',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: -1,\n },\n\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n bc: 'rgba(255,255,255,.1)',\n borderRadius: '50%',\n pointerEvents: 'none',\n },\n\n variants: {\n variant: {\n red: { bc: '$red8', '&::before': { bc: '$red8' } },\n green: { bc: '$green8', '&::before': { bc: '$green8' } },\n orange: { bc: '$orange8', '&::before': { bc: '$orange8' } },\n blue: { bc: '$blue8', '&::before': { bc: '$blue8' } },\n yellow: { bc: '$neon8', '&::before': { bc: '$neon8' } },\n purple: { bc: '$purple8', '&::before': { bc: '$purple8' } },\n gray: { bc: '$slate8', '&::before': { bc: '$slate8' } },\n },\n size: {\n 'x-small': { size: '$1' },\n small: { size: '$2' },\n medium: { size: '$3' },\n large: { size: '$4' },\n 'x-large': { size: '$5' },\n },\n noAnimation: {\n true: {\n '&::before': { content: 'none' },\n },\n },\n },\n\n defaultVariants: {\n size: 'small',\n noAnimation: false,\n },\n});\n"],"mappings":";;AAEA,IAAM,MAAM,UAAU;CACpB,MAAM;EACJ,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,SAAS;CACX;CACA,QAAQ;EACN,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,SAAS;CACX;AACF,CAAC;AAED,IAAa,SAAS,OAAO,OAAO;CAClC,SAAS;CACT,MAAM;CACN,IAAI;CACJ,cAAc;CACd,UAAU;CAEV,aAAa;EACX,WAAW,GAAG,IAAI;EAClB,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,WAAW;EACX,cAAc;EACd,eAAe;EACf,QAAQ;CACV;CAEA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,IAAI;EACJ,cAAc;EACd,eAAe;CACjB;CAEA,UAAU;EACR,SAAS;GACP,KAAK;IAAE,IAAI;IAAS,aAAa,EAAE,IAAI,QAAQ;GAAE;GACjD,OAAO;IAAE,IAAI;IAAW,aAAa,EAAE,IAAI,UAAU;GAAE;GACvD,QAAQ;IAAE,IAAI;IAAY,aAAa,EAAE,IAAI,WAAW;GAAE;GAC1D,MAAM;IAAE,IAAI;IAAU,aAAa,EAAE,IAAI,SAAS;GAAE;GACpD,QAAQ;IAAE,IAAI;IAAU,aAAa,EAAE,IAAI,SAAS;GAAE;GACtD,QAAQ;IAAE,IAAI;IAAY,aAAa,EAAE,IAAI,WAAW;GAAE;GAC1D,MAAM;IAAE,IAAI;IAAW,aAAa,EAAE,IAAI,UAAU;GAAE;EACxD;EACA,MAAM;GACJ,WAAW,EAAE,MAAM,KAAK;GACxB,OAAO,EAAE,MAAM,KAAK;GACpB,QAAQ,EAAE,MAAM,KAAK;GACrB,OAAO,EAAE,MAAM,KAAK;GACpB,WAAW,EAAE,MAAM,KAAK;EAC1B;EACA,aAAa,EACX,MAAM,EACJ,aAAa,EAAE,SAAS,OAAO,EACjC,EACF;CACF;CAEA,iBAAiB;EACf,MAAM;EACN,aAAa;CACf;AACF,CAAC"}
@@ -4,7 +4,7 @@ const require_Bubble_vanilla_css = require("./Bubble.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/Bubble/Bubble.vanilla.tsx
7
+ // components/Bubble/Bubble.vanilla.tsx
8
8
  var BubbleVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, variant, noAnimation, ...props }, ref) => {
9
9
  const Component = as || "div";
10
10
  const { colors } = require_themeContext.useVanillaExtractTheme();
@@ -14,20 +14,20 @@ var BubbleVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, st
14
14
  ...style,
15
15
  ...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
16
16
  };
17
+ const recipeClass = require_Bubble_vanilla_css.bubbleRecipe({
18
+ size,
19
+ variant,
20
+ noAnimation
21
+ });
17
22
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
18
23
  ref,
19
- className: `${require_Bubble_vanilla_css.bubbleRecipe({
20
- size,
21
- variant,
22
- noAnimation
23
- })} ${className || ""}`.trim(),
24
+ className: `${recipeClass} ${className || ""}`.trim(),
24
25
  style: mergedStyles,
25
26
  ...props
26
27
  });
27
28
  });
28
29
  BubbleVanillaComponentImpl.displayName = "BubbleVanilla";
29
30
  var BubbleVanilla = BubbleVanillaComponentImpl;
30
- //#endregion
31
31
  exports.BubbleVanilla = BubbleVanilla;
32
32
 
33
33
  //# sourceMappingURL=Bubble.vanilla.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vanilla.cjs","names":[],"sources":["../../../components/Bubble/Bubble.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 { bubbleRecipe } from './Bubble.vanilla.css';\n\ntype BubbleRecipeVariants = NonNullable<RecipeVariants<typeof bubbleRecipe>>;\n\ninterface BubbleOwnProps extends BubbleRecipeVariants, CSSProps {}\n\nexport type BubbleVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n BubbleOwnProps\n>;\n\ntype BubbleVanillaComponent = PolymorphicComponent<'div', BubbleVanillaProps<ElementType>>;\n\nconst BubbleVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, size, variant, noAnimation, ...props }: BubbleVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\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 = bubbleRecipe({ size, variant, noAnimation });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nBubbleVanillaComponentImpl.displayName = 'BubbleVanilla';\n\nexport const BubbleVanilla = BubbleVanillaComponentImpl as BubbleVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,8BAAA,GAAA,MAAA,WAAA,EAEF,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,aAAa,GAAG,SAC5D,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,2BAAA,aAAa;GAAE;GAAM;GAAS;EAAY,CAK5C,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Bubble.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","bubbleRecipe"],"sources":["../../../components/Bubble/Bubble.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 { bubbleRecipe } from './Bubble.vanilla.css';\n\ntype BubbleRecipeVariants = NonNullable<RecipeVariants<typeof bubbleRecipe>>;\n\ninterface BubbleOwnProps extends BubbleRecipeVariants, CSSProps {}\n\nexport type BubbleVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n BubbleOwnProps\n>;\n\ntype BubbleVanillaComponent = PolymorphicComponent<'div', BubbleVanillaProps<ElementType>>;\n\nconst BubbleVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, size, variant, noAnimation, ...props }: BubbleVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\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 = bubbleRecipe({ size, variant, noAnimation });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nBubbleVanillaComponentImpl.displayName = 'BubbleVanilla';\n\nexport const BubbleVanilla = BubbleVanillaComponentImpl as BubbleVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,8BAAA,GAA6BA,MAAAA,WAAAA,EAE/B,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,aAAa,GAAG,SAC5D,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,2BAAAA,aAAa;EAAE;EAAM;EAAS;CAAY,CAAC;CAE/D,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,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
@@ -1,5 +1,5 @@
1
1
  ;/* empty css */
2
- //#region components/Bubble/Bubble.vanilla.css.ts
2
+ // components/Bubble/Bubble.vanilla.css.ts
3
3
  var bubbleRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").createRuntimeFn)({
4
4
  defaultClassName: "_1fnlquw2 _1fnlquw1",
5
5
  variantClassNames: {
@@ -27,7 +27,6 @@ var bubbleRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").creat
27
27
  },
28
28
  compoundVariants: []
29
29
  });
30
- //#endregion
31
30
  exports.bubbleRecipe = bubbleRecipe;
32
31
 
33
32
  //# sourceMappingURL=Bubble.vanilla.css.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vanilla.css.cjs","names":[],"sources":["../../../components/Bubble/Bubble.vanilla.css.ts"],"sourcesContent":["import { keyframes, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst bip = keyframes({\n '0%': {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n opacity: 1,\n },\n '100%': {\n top: -8,\n right: -8,\n bottom: -8,\n left: -8,\n opacity: 0,\n },\n});\n\nconst baseBubble = style({\n display: 'inline-block',\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n backgroundColor: tokens.colors.red['8'],\n borderRadius: '50%',\n position: 'relative',\n\n selectors: {\n '&::before': {\n animation: `${bip} 1s ease infinite`,\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n boxShadow: 'inset 0 0 0 1px rgba(255,255,255,.5)',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n backgroundColor: 'rgba(255,255,255,.1)',\n borderRadius: '50%',\n pointerEvents: 'none',\n },\n },\n});\n\nexport const bubbleRecipe = recipe({\n base: baseBubble,\n\n variants: {\n variant: {\n red: {\n backgroundColor: tokens.colors.red['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.red['8'] },\n },\n },\n green: {\n backgroundColor: tokens.colors.green['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.green['8'] },\n },\n },\n orange: {\n backgroundColor: tokens.colors.orange['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.orange['8'] },\n },\n },\n blue: {\n backgroundColor: tokens.colors.blue['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.blue['8'] },\n },\n },\n yellow: {\n backgroundColor: tokens.colors.neon['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.neon['8'] },\n },\n },\n purple: {\n backgroundColor: tokens.colors.purple['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.purple['8'] },\n },\n },\n gray: {\n backgroundColor: tokens.colors.slate['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.slate['8'] },\n },\n },\n },\n size: {\n 'x-small': {\n width: tokens.sizes['1'],\n height: tokens.sizes['1'],\n },\n small: {\n width: tokens.sizes['2'],\n height: tokens.sizes['2'],\n },\n medium: {\n width: tokens.sizes['3'],\n height: tokens.sizes['3'],\n },\n large: {\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n },\n 'x-large': {\n width: tokens.sizes['5'],\n height: tokens.sizes['5'],\n },\n },\n noAnimation: {\n true: {\n selectors: {\n '&::before': { content: 'none' },\n },\n },\n },\n },\n\n defaultVariants: {\n size: 'small',\n noAnimation: false,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Bubble.vanilla.css.cjs","names":["_7a468"],"sources":["../../../components/Bubble/Bubble.vanilla.css.ts"],"sourcesContent":["import { keyframes, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst bip = keyframes({\n '0%': {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n opacity: 1,\n },\n '100%': {\n top: -8,\n right: -8,\n bottom: -8,\n left: -8,\n opacity: 0,\n },\n});\n\nconst baseBubble = style({\n display: 'inline-block',\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n backgroundColor: tokens.colors.red['8'],\n borderRadius: '50%',\n position: 'relative',\n\n selectors: {\n '&::before': {\n animation: `${bip} 1s ease infinite`,\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n boxShadow: 'inset 0 0 0 1px rgba(255,255,255,.5)',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n backgroundColor: 'rgba(255,255,255,.1)',\n borderRadius: '50%',\n pointerEvents: 'none',\n },\n },\n});\n\nexport const bubbleRecipe = recipe({\n base: baseBubble,\n\n variants: {\n variant: {\n red: {\n backgroundColor: tokens.colors.red['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.red['8'] },\n },\n },\n green: {\n backgroundColor: tokens.colors.green['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.green['8'] },\n },\n },\n orange: {\n backgroundColor: tokens.colors.orange['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.orange['8'] },\n },\n },\n blue: {\n backgroundColor: tokens.colors.blue['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.blue['8'] },\n },\n },\n yellow: {\n backgroundColor: tokens.colors.neon['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.neon['8'] },\n },\n },\n purple: {\n backgroundColor: tokens.colors.purple['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.purple['8'] },\n },\n },\n gray: {\n backgroundColor: tokens.colors.slate['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.slate['8'] },\n },\n },\n },\n size: {\n 'x-small': {\n width: tokens.sizes['1'],\n height: tokens.sizes['1'],\n },\n small: {\n width: tokens.sizes['2'],\n height: tokens.sizes['2'],\n },\n medium: {\n width: tokens.sizes['3'],\n height: tokens.sizes['3'],\n },\n large: {\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n },\n 'x-large': {\n width: tokens.sizes['5'],\n height: tokens.sizes['5'],\n },\n },\n noAnimation: {\n true: {\n selectors: {\n '&::before': { content: 'none' },\n },\n },\n },\n },\n\n defaultVariants: {\n size: 'small',\n noAnimation: false,\n },\n});\n"],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
- //#region components/Bubble/Bubble.vanilla.css.ts
3
+ // components/Bubble/Bubble.vanilla.css.ts
4
4
  var bubbleRecipe = createRuntimeFn({
5
5
  defaultClassName: "_1fnlquw2 _1fnlquw1",
6
6
  variantClassNames: {
@@ -28,7 +28,6 @@ var bubbleRecipe = createRuntimeFn({
28
28
  },
29
29
  compoundVariants: []
30
30
  });
31
- //#endregion
32
31
  export { bubbleRecipe };
33
32
 
34
33
  //# sourceMappingURL=Bubble.vanilla.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vanilla.css.js","names":[],"sources":["../../../components/Bubble/Bubble.vanilla.css.ts"],"sourcesContent":["import { keyframes, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst bip = keyframes({\n '0%': {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n opacity: 1,\n },\n '100%': {\n top: -8,\n right: -8,\n bottom: -8,\n left: -8,\n opacity: 0,\n },\n});\n\nconst baseBubble = style({\n display: 'inline-block',\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n backgroundColor: tokens.colors.red['8'],\n borderRadius: '50%',\n position: 'relative',\n\n selectors: {\n '&::before': {\n animation: `${bip} 1s ease infinite`,\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n boxShadow: 'inset 0 0 0 1px rgba(255,255,255,.5)',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n backgroundColor: 'rgba(255,255,255,.1)',\n borderRadius: '50%',\n pointerEvents: 'none',\n },\n },\n});\n\nexport const bubbleRecipe = recipe({\n base: baseBubble,\n\n variants: {\n variant: {\n red: {\n backgroundColor: tokens.colors.red['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.red['8'] },\n },\n },\n green: {\n backgroundColor: tokens.colors.green['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.green['8'] },\n },\n },\n orange: {\n backgroundColor: tokens.colors.orange['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.orange['8'] },\n },\n },\n blue: {\n backgroundColor: tokens.colors.blue['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.blue['8'] },\n },\n },\n yellow: {\n backgroundColor: tokens.colors.neon['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.neon['8'] },\n },\n },\n purple: {\n backgroundColor: tokens.colors.purple['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.purple['8'] },\n },\n },\n gray: {\n backgroundColor: tokens.colors.slate['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.slate['8'] },\n },\n },\n },\n size: {\n 'x-small': {\n width: tokens.sizes['1'],\n height: tokens.sizes['1'],\n },\n small: {\n width: tokens.sizes['2'],\n height: tokens.sizes['2'],\n },\n medium: {\n width: tokens.sizes['3'],\n height: tokens.sizes['3'],\n },\n large: {\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n },\n 'x-large': {\n width: tokens.sizes['5'],\n height: tokens.sizes['5'],\n },\n },\n noAnimation: {\n true: {\n selectors: {\n '&::before': { content: 'none' },\n },\n },\n },\n },\n\n defaultVariants: {\n size: 'small',\n noAnimation: false,\n },\n});\n"],"mappings":""}
1
+ {"version":3,"file":"Bubble.vanilla.css.js","names":["_7a468"],"sources":["../../../components/Bubble/Bubble.vanilla.css.ts"],"sourcesContent":["import { keyframes, style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { tokens } from '../../styles/tokens.css';\n\nconst bip = keyframes({\n '0%': {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n opacity: 1,\n },\n '100%': {\n top: -8,\n right: -8,\n bottom: -8,\n left: -8,\n opacity: 0,\n },\n});\n\nconst baseBubble = style({\n display: 'inline-block',\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n backgroundColor: tokens.colors.red['8'],\n borderRadius: '50%',\n position: 'relative',\n\n selectors: {\n '&::before': {\n animation: `${bip} 1s ease infinite`,\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n boxShadow: 'inset 0 0 0 1px rgba(255,255,255,.5)',\n borderRadius: '50%',\n pointerEvents: 'none',\n zIndex: -1,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 5,\n right: 5,\n bottom: 5,\n left: 5,\n backgroundColor: 'rgba(255,255,255,.1)',\n borderRadius: '50%',\n pointerEvents: 'none',\n },\n },\n});\n\nexport const bubbleRecipe = recipe({\n base: baseBubble,\n\n variants: {\n variant: {\n red: {\n backgroundColor: tokens.colors.red['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.red['8'] },\n },\n },\n green: {\n backgroundColor: tokens.colors.green['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.green['8'] },\n },\n },\n orange: {\n backgroundColor: tokens.colors.orange['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.orange['8'] },\n },\n },\n blue: {\n backgroundColor: tokens.colors.blue['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.blue['8'] },\n },\n },\n yellow: {\n backgroundColor: tokens.colors.neon['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.neon['8'] },\n },\n },\n purple: {\n backgroundColor: tokens.colors.purple['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.purple['8'] },\n },\n },\n gray: {\n backgroundColor: tokens.colors.slate['8'],\n selectors: {\n '&::before': { backgroundColor: tokens.colors.slate['8'] },\n },\n },\n },\n size: {\n 'x-small': {\n width: tokens.sizes['1'],\n height: tokens.sizes['1'],\n },\n small: {\n width: tokens.sizes['2'],\n height: tokens.sizes['2'],\n },\n medium: {\n width: tokens.sizes['3'],\n height: tokens.sizes['3'],\n },\n large: {\n width: tokens.sizes['4'],\n height: tokens.sizes['4'],\n },\n 'x-large': {\n width: tokens.sizes['5'],\n height: tokens.sizes['5'],\n },\n },\n noAnimation: {\n true: {\n selectors: {\n '&::before': { content: 'none' },\n },\n },\n },\n },\n\n defaultVariants: {\n size: 'small',\n noAnimation: false,\n },\n});\n"],"mappings":""}
@@ -4,7 +4,7 @@ import { bubbleRecipe } from "./Bubble.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/Bubble/Bubble.vanilla.tsx
7
+ // components/Bubble/Bubble.vanilla.tsx
8
8
  var BubbleVanillaComponentImpl = forwardRef(({ as, className, css, style, size, variant, noAnimation, ...props }, ref) => {
9
9
  const Component = as || "div";
10
10
  const { colors } = useVanillaExtractTheme();
@@ -14,20 +14,20 @@ var BubbleVanillaComponentImpl = forwardRef(({ as, className, css, style, size,
14
14
  ...style,
15
15
  ...assignInlineVars(vars)
16
16
  };
17
+ const recipeClass = bubbleRecipe({
18
+ size,
19
+ variant,
20
+ noAnimation
21
+ });
17
22
  return /* @__PURE__ */ jsx(Component, {
18
23
  ref,
19
- className: `${bubbleRecipe({
20
- size,
21
- variant,
22
- noAnimation
23
- })} ${className || ""}`.trim(),
24
+ className: `${recipeClass} ${className || ""}`.trim(),
24
25
  style: mergedStyles,
25
26
  ...props
26
27
  });
27
28
  });
28
29
  BubbleVanillaComponentImpl.displayName = "BubbleVanilla";
29
30
  var BubbleVanilla = BubbleVanillaComponentImpl;
30
- //#endregion
31
31
  export { BubbleVanilla };
32
32
 
33
33
  //# sourceMappingURL=Bubble.vanilla.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vanilla.js","names":[],"sources":["../../../components/Bubble/Bubble.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 { bubbleRecipe } from './Bubble.vanilla.css';\n\ntype BubbleRecipeVariants = NonNullable<RecipeVariants<typeof bubbleRecipe>>;\n\ninterface BubbleOwnProps extends BubbleRecipeVariants, CSSProps {}\n\nexport type BubbleVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n BubbleOwnProps\n>;\n\ntype BubbleVanillaComponent = PolymorphicComponent<'div', BubbleVanillaProps<ElementType>>;\n\nconst BubbleVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, size, variant, noAnimation, ...props }: BubbleVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\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 = bubbleRecipe({ size, variant, noAnimation });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nBubbleVanillaComponentImpl.displayName = 'BubbleVanilla';\n\nexport const BubbleVanilla = BubbleVanillaComponentImpl as BubbleVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,6BAA6B,YAE/B,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,aAAa,GAAG,SAC5D,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,aAAa;GAAE;GAAM;GAAS;EAAY,CAK5C,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Bubble.vanilla.js","names":[],"sources":["../../../components/Bubble/Bubble.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 { bubbleRecipe } from './Bubble.vanilla.css';\n\ntype BubbleRecipeVariants = NonNullable<RecipeVariants<typeof bubbleRecipe>>;\n\ninterface BubbleOwnProps extends BubbleRecipeVariants, CSSProps {}\n\nexport type BubbleVanillaProps<C extends ElementType = 'div'> = PolymorphicComponentProps<\n C,\n BubbleOwnProps\n>;\n\ntype BubbleVanillaComponent = PolymorphicComponent<'div', BubbleVanillaProps<ElementType>>;\n\nconst BubbleVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'div'>(\n { as, className, css, style, size, variant, noAnimation, ...props }: BubbleVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'div';\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 = bubbleRecipe({ size, variant, noAnimation });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nBubbleVanillaComponentImpl.displayName = 'BubbleVanilla';\n\nexport const BubbleVanilla = BubbleVanillaComponentImpl as BubbleVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,6BAA6B,YAE/B,EAAE,IAAI,WAAW,KAAK,OAAO,MAAM,SAAS,aAAa,GAAG,SAC5D,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,aAAa;EAAE;EAAM;EAAS;CAAY,CAAC;CAE/D,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GAAG,YAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
@@ -4,7 +4,7 @@ let react = require("react");
4
4
  react = require_runtime.__toESM(react, 1);
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let _radix_ui_react_slot = require("@radix-ui/react-slot");
7
- //#region components/Button/Button.tsx
7
+ // components/Button/Button.tsx
8
8
  var BUTTON_BASE_STYLES = {
9
9
  appearance: "none",
10
10
  userSelect: "none",
@@ -227,13 +227,13 @@ var StyledButton = require_stitches_config.styled("button", BUTTON_BASE_STYLES,
227
227
  });
228
228
  var StyledButtonSlot = require_stitches_config.styled(_radix_ui_react_slot.Slot, StyledButton);
229
229
  var Button = react.default.forwardRef(({ children, asChild, ...props }, forwardedRef) => {
230
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)((0, react.useMemo)(() => asChild ? StyledButtonSlot : StyledButton, [asChild]), {
230
+ const Component = (0, react.useMemo)(() => asChild ? StyledButtonSlot : StyledButton, [asChild]);
231
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
231
232
  ref: forwardedRef,
232
233
  ...props,
233
234
  children
234
235
  });
235
236
  });
236
- //#endregion
237
237
  exports.BUTTON_BASE_STYLES = BUTTON_BASE_STYLES;
238
238
  exports.Button = Button;
239
239
  exports.StyledButton = StyledButton;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.cjs","names":[],"sources":["../../../components/Button/Button.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport React, { ComponentProps, useMemo } from 'react';\n\nimport { CSS, keyframes, styled, VariantProps } from '../../stitches.config';\n\nexport const BUTTON_BASE_STYLES = {\n appearance: 'none',\n userSelect: 'none',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.5,\n },\n};\n\nconst BG_SIZES = {\n small: '$sizes$8',\n medium: '$sizes$9',\n large: '$sizes$10',\n};\n\nconst backgroundSizeAnimation = (size: keyof typeof BG_SIZES) => ({\n $$bgSize: BG_SIZES[size],\n backgroundSize: '$$bgSize',\n backgroundImage: `linear-gradient(\n -45deg,\n transparent 33%,\n $colors$deepBlue4 33%,\n $colors$deepBlue4 66%,\n transparent 66%\n )`,\n animation: `${keyframes({\n '100%': { transform: 'translateX($$bgSize)' },\n })} 500ms linear infinite`,\n});\n\nexport const StyledButton = styled('button', BUTTON_BASE_STYLES, {\n // Reset\n all: 'unset',\n alignItems: 'center',\n overflow: 'hidden',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n\n // Custom reset?\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'center',\n lineHeight: '1',\n\n // Custom\n position: 'relative',\n height: '$5',\n px: '$2',\n fontFamily: '$rubik',\n fontSize: '$3',\n fontWeight: '$medium',\n fontVariantNumeric: 'tabular-nums',\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$focusOutline`,\n '&::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&::after': {\n opacity: 0.15,\n },\n },\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 '&:active': {\n '&::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n variants: {\n size: {\n small: {\n borderRadius: '$button',\n height: '$5',\n px: '$2',\n fontSize: '$1',\n lineHeight: '$sizes$5',\n },\n medium: {\n borderRadius: '$button',\n height: '$6',\n px: '$3',\n fontSize: '$3',\n lineHeight: '$sizes$6',\n },\n large: {\n borderRadius: '$button',\n height: '$7',\n px: '$3',\n fontSize: '$3',\n lineHeight: '$sizes$7',\n },\n },\n variant: {\n primary: {\n bc: '$buttonPrimaryBg',\n c: '$buttonPrimaryText',\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonPrimaryFocusBorder',\n },\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$buttonPrimaryBg',\n },\n },\n },\n },\n secondary: {\n bc: '$buttonSecondaryBg',\n c: '$buttonSecondaryText',\n boxShadow: 'inset 0 0 0 2px $colors$buttonSecondaryBorder',\n '&:active': {\n boxShadow: 'inset 0 0 0 1px $colors$buttonSecondaryBorder',\n },\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonSecondaryFocusBorder',\n },\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$buttonPrimaryBg',\n },\n },\n },\n },\n red: {\n backgroundColor: '$buttonRedBg',\n color: '$buttonRedText',\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonRedFocusBg',\n },\n },\n },\n state: {\n active: {\n bc: '$deepBlue5',\n c: '$deepBlue11',\n '&:active': {\n backgroundColor: '$deepBlue5',\n },\n },\n waiting: {\n bc: '$deepBlue3',\n boxShadow: `inset 0 0 0 1px $deepBlue4`,\n c: 'transparent',\n overflow: 'hidden',\n pointerEvents: 'none',\n '&::after': {\n left: '-100%',\n width: '200%',\n ...backgroundSizeAnimation('medium'),\n },\n },\n },\n ghost: {\n true: {\n boxShadow: 'none',\n '@hover': {\n '&:hover': {\n boxShadow: 'none',\n },\n },\n },\n },\n rounded: {\n true: {\n borderRadius: '$pill',\n },\n },\n },\n compoundVariants: [\n {\n variant: 'primary',\n ghost: 'true',\n css: {\n color: '$buttonPrimaryBg',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n color: '$buttonPrimaryGhostHoverText',\n backgroundColor: 'transparent',\n },\n },\n },\n },\n {\n variant: 'primary',\n state: 'active',\n css: {\n backgroundColor: '$buttonPrimaryFocusBg',\n color: '$buttonPrimaryText',\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n {\n variant: 'secondary',\n state: 'waiting',\n css: {\n backgroundColor: '$deepBlue3',\n color: 'transparent',\n },\n },\n {\n variant: 'secondary',\n ghost: true,\n css: {\n backgroundColor: 'transparent',\n color: '$buttonSecondaryText',\n boxShadow: 'none',\n },\n },\n {\n variant: 'red',\n state: 'waiting',\n css: {\n backgroundColor: '$deepBlue3',\n color: 'transparent',\n },\n },\n {\n variant: 'red',\n state: 'active',\n css: {\n backgroundColor: '$buttonRedFocusBg',\n color: '$buttonRedText',\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n {\n variant: 'red',\n ghost: 'true',\n css: {\n color: '$buttonRedBg',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n color: '$buttonRedHoverText',\n backgroundColor: 'transparent',\n },\n },\n },\n },\n {\n size: 'small',\n state: 'waiting',\n css: {\n '&::after': backgroundSizeAnimation('small'),\n },\n },\n {\n size: 'large',\n state: 'waiting',\n css: {\n '&::after': backgroundSizeAnimation('large'),\n },\n },\n ],\n defaultVariants: {\n size: 'medium',\n variant: 'primary',\n },\n});\nconst StyledButtonSlot = styled(Slot, StyledButton);\n\nexport interface ButtonVariants extends VariantProps<typeof StyledButton> {}\nexport type ButtonProps = ComponentProps<typeof StyledButton> &\n ButtonVariants & {\n css?: CSS;\n asChild?: boolean;\n as?: string;\n };\n\nexport const Button = React.forwardRef<React.ElementRef<typeof StyledButton>, ButtonProps>(\n ({ children, asChild, ...props }, forwardedRef) => {\n const Component = useMemo(() => (asChild ? StyledButtonSlot : StyledButton), [asChild]);\n return (\n <Component ref={forwardedRef} {...props}>\n {children}\n </Component>\n );\n },\n);\n"],"mappings":";;;;;;;AAKA,IAAa,qBAAqB;CAChC,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,QAAQ;CACR,yBAAyB;CACzB,cAAc;EACZ,eAAe;EACf,SAAS;CACX;AACF;AAEA,IAAM,WAAW;CACf,OAAO;CACP,QAAQ;CACR,OAAO;AACT;AAEA,IAAM,2BAA2B,UAAiC;CAChE,UAAU,SAAS;CACnB,gBAAgB;CAChB,iBAAiB;;;;;;;CAOjB,WAAW,GAAG,wBAAA,UAAU,EACtB,QAAQ,EAAE,WAAW,uBAAuB,EAC9C,CAAC,EAAE;AACL;AAEA,IAAa,eAAe,wBAAA,OAAO,UAAU,oBAAoB;CAE/D,KAAK;CACL,YAAY;CACZ,UAAU;CAEV,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CAGA,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,YAAY;CAGZ,UAAU;CACV,QAAQ;CACR,IAAI;CACJ,YAAY;CACZ,UAAU;CACV,YAAY;CACZ,oBAAoB;CAEpB,mBAAmB;EACjB,WAAW;EACX,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,QAAQ;EACR,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF,EACF;CAEA,YAAY,EACV,aAAa,EACX,iBAAiB,sBACnB,EACF;CAEA,UAAU;EACR,MAAM;GACJ,OAAO;IACL,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;GACA,QAAQ;IACN,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;GACA,OAAO;IACL,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;EACF;EACA,SAAS;GACP,SAAS;IACP,IAAI;IACJ,GAAG;IACH,mBAAmB,EACjB,WAAW,mDACb;IACA,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,mBACnB,EACF,EACF;GACF;GACA,WAAW;IACT,IAAI;IACJ,GAAG;IACH,WAAW;IACX,YAAY,EACV,WAAW,gDACb;IACA,mBAAmB,EACjB,WAAW,qDACb;IACA,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,mBACnB,EACF,EACF;GACF;GACA,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,mBAAmB,EACjB,WAAW,2CACb;GACF;EACF;EACA,OAAO;GACL,QAAQ;IACN,IAAI;IACJ,GAAG;IACH,YAAY,EACV,iBAAiB,aACnB;GACF;GACA,SAAS;IACP,IAAI;IACJ,WAAW;IACX,GAAG;IACH,UAAU;IACV,eAAe;IACf,YAAY;KACV,MAAM;KACN,OAAO;KACP,GAAG,wBAAwB,QAAQ;IACrC;GACF;EACF;EACA,OAAO,EACL,MAAM;GACJ,WAAW;GACX,UAAU,EACR,WAAW,EACT,WAAW,OACb,EACF;EACF,EACF;EACA,SAAS,EACP,MAAM,EACJ,cAAc,QAChB,EACF;CACF;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,OAAO;IACP,iBAAiB;IACjB,UAAU,EACR,WAAW;KACT,OAAO;KACP,iBAAiB;IACnB,EACF;GACF;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;GACT;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;GACT;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,OAAO;IACP,iBAAiB;IACjB,UAAU,EACR,WAAW;KACT,OAAO;KACP,iBAAiB;IACnB,EACF;GACF;EACF;EACA;GACE,MAAM;GACN,OAAO;GACP,KAAK,EACH,YAAY,wBAAwB,OAAO,EAC7C;EACF;EACA;GACE,MAAM;GACN,OAAO;GACP,KAAK,EACH,YAAY,wBAAwB,OAAO,EAC7C;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,SAAS;CACX;AACF,CAAC;AACD,IAAM,mBAAmB,wBAAA,OAAO,qBAAA,MAAM,YAAY;AAUlD,IAAa,SAAS,MAAA,QAAM,YACzB,EAAE,UAAU,SAAS,GAAG,SAAS,iBAAiB;CAEjD,OACE,iBAAA,GAAA,kBAAA,IAAA,EAAA,GAAA,MAAA,QAAA,OAF+B,UAAU,mBAAmB,cAAe,CAAC,OAAO,CAElF,GAAD;EAAW,KAAK;EAAc,GAAI;EAC/B;CACQ,CAAA;AAEf,CACF"}
1
+ {"version":3,"file":"Button.cjs","names":["keyframes","styled","Slot","React","useMemo"],"sources":["../../../components/Button/Button.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport React, { ComponentProps, useMemo } from 'react';\n\nimport { CSS, keyframes, styled, VariantProps } from '../../stitches.config';\n\nexport const BUTTON_BASE_STYLES = {\n appearance: 'none',\n userSelect: 'none',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.5,\n },\n};\n\nconst BG_SIZES = {\n small: '$sizes$8',\n medium: '$sizes$9',\n large: '$sizes$10',\n};\n\nconst backgroundSizeAnimation = (size: keyof typeof BG_SIZES) => ({\n $$bgSize: BG_SIZES[size],\n backgroundSize: '$$bgSize',\n backgroundImage: `linear-gradient(\n -45deg,\n transparent 33%,\n $colors$deepBlue4 33%,\n $colors$deepBlue4 66%,\n transparent 66%\n )`,\n animation: `${keyframes({\n '100%': { transform: 'translateX($$bgSize)' },\n })} 500ms linear infinite`,\n});\n\nexport const StyledButton = styled('button', BUTTON_BASE_STYLES, {\n // Reset\n all: 'unset',\n alignItems: 'center',\n overflow: 'hidden',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n\n // Custom reset?\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'center',\n lineHeight: '1',\n\n // Custom\n position: 'relative',\n height: '$5',\n px: '$2',\n fontFamily: '$rubik',\n fontSize: '$3',\n fontWeight: '$medium',\n fontVariantNumeric: 'tabular-nums',\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$focusOutline`,\n '&::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&::after': {\n opacity: 0.15,\n },\n },\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 '&:active': {\n '&::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n variants: {\n size: {\n small: {\n borderRadius: '$button',\n height: '$5',\n px: '$2',\n fontSize: '$1',\n lineHeight: '$sizes$5',\n },\n medium: {\n borderRadius: '$button',\n height: '$6',\n px: '$3',\n fontSize: '$3',\n lineHeight: '$sizes$6',\n },\n large: {\n borderRadius: '$button',\n height: '$7',\n px: '$3',\n fontSize: '$3',\n lineHeight: '$sizes$7',\n },\n },\n variant: {\n primary: {\n bc: '$buttonPrimaryBg',\n c: '$buttonPrimaryText',\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonPrimaryFocusBorder',\n },\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$buttonPrimaryBg',\n },\n },\n },\n },\n secondary: {\n bc: '$buttonSecondaryBg',\n c: '$buttonSecondaryText',\n boxShadow: 'inset 0 0 0 2px $colors$buttonSecondaryBorder',\n '&:active': {\n boxShadow: 'inset 0 0 0 1px $colors$buttonSecondaryBorder',\n },\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonSecondaryFocusBorder',\n },\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$buttonPrimaryBg',\n },\n },\n },\n },\n red: {\n backgroundColor: '$buttonRedBg',\n color: '$buttonRedText',\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonRedFocusBg',\n },\n },\n },\n state: {\n active: {\n bc: '$deepBlue5',\n c: '$deepBlue11',\n '&:active': {\n backgroundColor: '$deepBlue5',\n },\n },\n waiting: {\n bc: '$deepBlue3',\n boxShadow: `inset 0 0 0 1px $deepBlue4`,\n c: 'transparent',\n overflow: 'hidden',\n pointerEvents: 'none',\n '&::after': {\n left: '-100%',\n width: '200%',\n ...backgroundSizeAnimation('medium'),\n },\n },\n },\n ghost: {\n true: {\n boxShadow: 'none',\n '@hover': {\n '&:hover': {\n boxShadow: 'none',\n },\n },\n },\n },\n rounded: {\n true: {\n borderRadius: '$pill',\n },\n },\n },\n compoundVariants: [\n {\n variant: 'primary',\n ghost: 'true',\n css: {\n color: '$buttonPrimaryBg',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n color: '$buttonPrimaryGhostHoverText',\n backgroundColor: 'transparent',\n },\n },\n },\n },\n {\n variant: 'primary',\n state: 'active',\n css: {\n backgroundColor: '$buttonPrimaryFocusBg',\n color: '$buttonPrimaryText',\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n {\n variant: 'secondary',\n state: 'waiting',\n css: {\n backgroundColor: '$deepBlue3',\n color: 'transparent',\n },\n },\n {\n variant: 'secondary',\n ghost: true,\n css: {\n backgroundColor: 'transparent',\n color: '$buttonSecondaryText',\n boxShadow: 'none',\n },\n },\n {\n variant: 'red',\n state: 'waiting',\n css: {\n backgroundColor: '$deepBlue3',\n color: 'transparent',\n },\n },\n {\n variant: 'red',\n state: 'active',\n css: {\n backgroundColor: '$buttonRedFocusBg',\n color: '$buttonRedText',\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n {\n variant: 'red',\n ghost: 'true',\n css: {\n color: '$buttonRedBg',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n color: '$buttonRedHoverText',\n backgroundColor: 'transparent',\n },\n },\n },\n },\n {\n size: 'small',\n state: 'waiting',\n css: {\n '&::after': backgroundSizeAnimation('small'),\n },\n },\n {\n size: 'large',\n state: 'waiting',\n css: {\n '&::after': backgroundSizeAnimation('large'),\n },\n },\n ],\n defaultVariants: {\n size: 'medium',\n variant: 'primary',\n },\n});\nconst StyledButtonSlot = styled(Slot, StyledButton);\n\nexport interface ButtonVariants extends VariantProps<typeof StyledButton> {}\nexport type ButtonProps = ComponentProps<typeof StyledButton> &\n ButtonVariants & {\n css?: CSS;\n asChild?: boolean;\n as?: string;\n };\n\nexport const Button = React.forwardRef<React.ElementRef<typeof StyledButton>, ButtonProps>(\n ({ children, asChild, ...props }, forwardedRef) => {\n const Component = useMemo(() => (asChild ? StyledButtonSlot : StyledButton), [asChild]);\n return (\n <Component ref={forwardedRef} {...props}>\n {children}\n </Component>\n );\n },\n);\n"],"mappings":";;;;;;;AAKA,IAAa,qBAAqB;CAChC,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,QAAQ;CACR,yBAAyB;CACzB,cAAc;EACZ,eAAe;EACf,SAAS;CACX;AACF;AAEA,IAAM,WAAW;CACf,OAAO;CACP,QAAQ;CACR,OAAO;AACT;AAEA,IAAM,2BAA2B,UAAiC;CAChE,UAAU,SAAS;CACnB,gBAAgB;CAChB,iBAAiB;;;;;;;CAOjB,WAAW,GAAGA,wBAAAA,UAAU,EACtB,QAAQ,EAAE,WAAW,uBAAuB,EAC9C,CAAC,EAAE;AACL;AAEA,IAAa,eAAeC,wBAAAA,OAAO,UAAU,oBAAoB;CAE/D,KAAK;CACL,YAAY;CACZ,UAAU;CAEV,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CAGA,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,YAAY;CAGZ,UAAU;CACV,QAAQ;CACR,IAAI;CACJ,YAAY;CACZ,UAAU;CACV,YAAY;CACZ,oBAAoB;CAEpB,mBAAmB;EACjB,WAAW;EACX,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,QAAQ;EACR,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF,EACF;CAEA,YAAY,EACV,aAAa,EACX,iBAAiB,sBACnB,EACF;CAEA,UAAU;EACR,MAAM;GACJ,OAAO;IACL,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;GACA,QAAQ;IACN,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;GACA,OAAO;IACL,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;EACF;EACA,SAAS;GACP,SAAS;IACP,IAAI;IACJ,GAAG;IACH,mBAAmB,EACjB,WAAW,mDACb;IACA,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,mBACnB,EACF,EACF;GACF;GACA,WAAW;IACT,IAAI;IACJ,GAAG;IACH,WAAW;IACX,YAAY,EACV,WAAW,gDACb;IACA,mBAAmB,EACjB,WAAW,qDACb;IACA,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,mBACnB,EACF,EACF;GACF;GACA,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,mBAAmB,EACjB,WAAW,2CACb;GACF;EACF;EACA,OAAO;GACL,QAAQ;IACN,IAAI;IACJ,GAAG;IACH,YAAY,EACV,iBAAiB,aACnB;GACF;GACA,SAAS;IACP,IAAI;IACJ,WAAW;IACX,GAAG;IACH,UAAU;IACV,eAAe;IACf,YAAY;KACV,MAAM;KACN,OAAO;KACP,GAAG,wBAAwB,QAAQ;IACrC;GACF;EACF;EACA,OAAO,EACL,MAAM;GACJ,WAAW;GACX,UAAU,EACR,WAAW,EACT,WAAW,OACb,EACF;EACF,EACF;EACA,SAAS,EACP,MAAM,EACJ,cAAc,QAChB,EACF;CACF;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,OAAO;IACP,iBAAiB;IACjB,UAAU,EACR,WAAW;KACT,OAAO;KACP,iBAAiB;IACnB,EACF;GACF;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;GACT;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;GACT;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,OAAO;IACP,iBAAiB;IACjB,UAAU,EACR,WAAW;KACT,OAAO;KACP,iBAAiB;IACnB,EACF;GACF;EACF;EACA;GACE,MAAM;GACN,OAAO;GACP,KAAK,EACH,YAAY,wBAAwB,OAAO,EAC7C;EACF;EACA;GACE,MAAM;GACN,OAAO;GACP,KAAK,EACH,YAAY,wBAAwB,OAAO,EAC7C;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,SAAS;CACX;AACF,CAAC;AACD,IAAM,mBAAmBA,wBAAAA,OAAOC,qBAAAA,MAAM,YAAY;AAUlD,IAAa,SAASC,MAAAA,QAAM,YACzB,EAAE,UAAU,SAAS,GAAG,SAAS,iBAAiB;CACjD,MAAM,aAAA,GAAYC,MAAAA,QAAAA,OAAe,UAAU,mBAAmB,cAAe,CAAC,OAAO,CAAC;CACtF,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,WAAD;EAAW,KAAK;EAAc,GAAI;EAC/B;CACQ,CAAA;AAEf,CACF"}
@@ -2,7 +2,7 @@ import { keyframes, styled } from "../../stitches.config.js";
2
2
  import React, { useMemo } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { Slot } from "@radix-ui/react-slot";
5
- //#region components/Button/Button.tsx
5
+ // components/Button/Button.tsx
6
6
  var BUTTON_BASE_STYLES = {
7
7
  appearance: "none",
8
8
  userSelect: "none",
@@ -225,13 +225,13 @@ var StyledButton = styled("button", BUTTON_BASE_STYLES, {
225
225
  });
226
226
  var StyledButtonSlot = styled(Slot, StyledButton);
227
227
  var Button = React.forwardRef(({ children, asChild, ...props }, forwardedRef) => {
228
- return /* @__PURE__ */ jsx(useMemo(() => asChild ? StyledButtonSlot : StyledButton, [asChild]), {
228
+ const Component = useMemo(() => asChild ? StyledButtonSlot : StyledButton, [asChild]);
229
+ return /* @__PURE__ */ jsx(Component, {
229
230
  ref: forwardedRef,
230
231
  ...props,
231
232
  children
232
233
  });
233
234
  });
234
- //#endregion
235
235
  export { BUTTON_BASE_STYLES, Button, StyledButton };
236
236
 
237
237
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","names":[],"sources":["../../../components/Button/Button.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport React, { ComponentProps, useMemo } from 'react';\n\nimport { CSS, keyframes, styled, VariantProps } from '../../stitches.config';\n\nexport const BUTTON_BASE_STYLES = {\n appearance: 'none',\n userSelect: 'none',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.5,\n },\n};\n\nconst BG_SIZES = {\n small: '$sizes$8',\n medium: '$sizes$9',\n large: '$sizes$10',\n};\n\nconst backgroundSizeAnimation = (size: keyof typeof BG_SIZES) => ({\n $$bgSize: BG_SIZES[size],\n backgroundSize: '$$bgSize',\n backgroundImage: `linear-gradient(\n -45deg,\n transparent 33%,\n $colors$deepBlue4 33%,\n $colors$deepBlue4 66%,\n transparent 66%\n )`,\n animation: `${keyframes({\n '100%': { transform: 'translateX($$bgSize)' },\n })} 500ms linear infinite`,\n});\n\nexport const StyledButton = styled('button', BUTTON_BASE_STYLES, {\n // Reset\n all: 'unset',\n alignItems: 'center',\n overflow: 'hidden',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n\n // Custom reset?\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'center',\n lineHeight: '1',\n\n // Custom\n position: 'relative',\n height: '$5',\n px: '$2',\n fontFamily: '$rubik',\n fontSize: '$3',\n fontWeight: '$medium',\n fontVariantNumeric: 'tabular-nums',\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$focusOutline`,\n '&::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&::after': {\n opacity: 0.15,\n },\n },\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 '&:active': {\n '&::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n variants: {\n size: {\n small: {\n borderRadius: '$button',\n height: '$5',\n px: '$2',\n fontSize: '$1',\n lineHeight: '$sizes$5',\n },\n medium: {\n borderRadius: '$button',\n height: '$6',\n px: '$3',\n fontSize: '$3',\n lineHeight: '$sizes$6',\n },\n large: {\n borderRadius: '$button',\n height: '$7',\n px: '$3',\n fontSize: '$3',\n lineHeight: '$sizes$7',\n },\n },\n variant: {\n primary: {\n bc: '$buttonPrimaryBg',\n c: '$buttonPrimaryText',\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonPrimaryFocusBorder',\n },\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$buttonPrimaryBg',\n },\n },\n },\n },\n secondary: {\n bc: '$buttonSecondaryBg',\n c: '$buttonSecondaryText',\n boxShadow: 'inset 0 0 0 2px $colors$buttonSecondaryBorder',\n '&:active': {\n boxShadow: 'inset 0 0 0 1px $colors$buttonSecondaryBorder',\n },\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonSecondaryFocusBorder',\n },\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$buttonPrimaryBg',\n },\n },\n },\n },\n red: {\n backgroundColor: '$buttonRedBg',\n color: '$buttonRedText',\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonRedFocusBg',\n },\n },\n },\n state: {\n active: {\n bc: '$deepBlue5',\n c: '$deepBlue11',\n '&:active': {\n backgroundColor: '$deepBlue5',\n },\n },\n waiting: {\n bc: '$deepBlue3',\n boxShadow: `inset 0 0 0 1px $deepBlue4`,\n c: 'transparent',\n overflow: 'hidden',\n pointerEvents: 'none',\n '&::after': {\n left: '-100%',\n width: '200%',\n ...backgroundSizeAnimation('medium'),\n },\n },\n },\n ghost: {\n true: {\n boxShadow: 'none',\n '@hover': {\n '&:hover': {\n boxShadow: 'none',\n },\n },\n },\n },\n rounded: {\n true: {\n borderRadius: '$pill',\n },\n },\n },\n compoundVariants: [\n {\n variant: 'primary',\n ghost: 'true',\n css: {\n color: '$buttonPrimaryBg',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n color: '$buttonPrimaryGhostHoverText',\n backgroundColor: 'transparent',\n },\n },\n },\n },\n {\n variant: 'primary',\n state: 'active',\n css: {\n backgroundColor: '$buttonPrimaryFocusBg',\n color: '$buttonPrimaryText',\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n {\n variant: 'secondary',\n state: 'waiting',\n css: {\n backgroundColor: '$deepBlue3',\n color: 'transparent',\n },\n },\n {\n variant: 'secondary',\n ghost: true,\n css: {\n backgroundColor: 'transparent',\n color: '$buttonSecondaryText',\n boxShadow: 'none',\n },\n },\n {\n variant: 'red',\n state: 'waiting',\n css: {\n backgroundColor: '$deepBlue3',\n color: 'transparent',\n },\n },\n {\n variant: 'red',\n state: 'active',\n css: {\n backgroundColor: '$buttonRedFocusBg',\n color: '$buttonRedText',\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n {\n variant: 'red',\n ghost: 'true',\n css: {\n color: '$buttonRedBg',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n color: '$buttonRedHoverText',\n backgroundColor: 'transparent',\n },\n },\n },\n },\n {\n size: 'small',\n state: 'waiting',\n css: {\n '&::after': backgroundSizeAnimation('small'),\n },\n },\n {\n size: 'large',\n state: 'waiting',\n css: {\n '&::after': backgroundSizeAnimation('large'),\n },\n },\n ],\n defaultVariants: {\n size: 'medium',\n variant: 'primary',\n },\n});\nconst StyledButtonSlot = styled(Slot, StyledButton);\n\nexport interface ButtonVariants extends VariantProps<typeof StyledButton> {}\nexport type ButtonProps = ComponentProps<typeof StyledButton> &\n ButtonVariants & {\n css?: CSS;\n asChild?: boolean;\n as?: string;\n };\n\nexport const Button = React.forwardRef<React.ElementRef<typeof StyledButton>, ButtonProps>(\n ({ children, asChild, ...props }, forwardedRef) => {\n const Component = useMemo(() => (asChild ? StyledButtonSlot : StyledButton), [asChild]);\n return (\n <Component ref={forwardedRef} {...props}>\n {children}\n </Component>\n );\n },\n);\n"],"mappings":";;;;;AAKA,IAAa,qBAAqB;CAChC,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,QAAQ;CACR,yBAAyB;CACzB,cAAc;EACZ,eAAe;EACf,SAAS;CACX;AACF;AAEA,IAAM,WAAW;CACf,OAAO;CACP,QAAQ;CACR,OAAO;AACT;AAEA,IAAM,2BAA2B,UAAiC;CAChE,UAAU,SAAS;CACnB,gBAAgB;CAChB,iBAAiB;;;;;;;CAOjB,WAAW,GAAG,UAAU,EACtB,QAAQ,EAAE,WAAW,uBAAuB,EAC9C,CAAC,EAAE;AACL;AAEA,IAAa,eAAe,OAAO,UAAU,oBAAoB;CAE/D,KAAK;CACL,YAAY;CACZ,UAAU;CAEV,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CAGA,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,YAAY;CAGZ,UAAU;CACV,QAAQ;CACR,IAAI;CACJ,YAAY;CACZ,UAAU;CACV,YAAY;CACZ,oBAAoB;CAEpB,mBAAmB;EACjB,WAAW;EACX,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,QAAQ;EACR,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF,EACF;CAEA,YAAY,EACV,aAAa,EACX,iBAAiB,sBACnB,EACF;CAEA,UAAU;EACR,MAAM;GACJ,OAAO;IACL,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;GACA,QAAQ;IACN,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;GACA,OAAO;IACL,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;EACF;EACA,SAAS;GACP,SAAS;IACP,IAAI;IACJ,GAAG;IACH,mBAAmB,EACjB,WAAW,mDACb;IACA,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,mBACnB,EACF,EACF;GACF;GACA,WAAW;IACT,IAAI;IACJ,GAAG;IACH,WAAW;IACX,YAAY,EACV,WAAW,gDACb;IACA,mBAAmB,EACjB,WAAW,qDACb;IACA,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,mBACnB,EACF,EACF;GACF;GACA,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,mBAAmB,EACjB,WAAW,2CACb;GACF;EACF;EACA,OAAO;GACL,QAAQ;IACN,IAAI;IACJ,GAAG;IACH,YAAY,EACV,iBAAiB,aACnB;GACF;GACA,SAAS;IACP,IAAI;IACJ,WAAW;IACX,GAAG;IACH,UAAU;IACV,eAAe;IACf,YAAY;KACV,MAAM;KACN,OAAO;KACP,GAAG,wBAAwB,QAAQ;IACrC;GACF;EACF;EACA,OAAO,EACL,MAAM;GACJ,WAAW;GACX,UAAU,EACR,WAAW,EACT,WAAW,OACb,EACF;EACF,EACF;EACA,SAAS,EACP,MAAM,EACJ,cAAc,QAChB,EACF;CACF;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,OAAO;IACP,iBAAiB;IACjB,UAAU,EACR,WAAW;KACT,OAAO;KACP,iBAAiB;IACnB,EACF;GACF;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;GACT;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;GACT;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,OAAO;IACP,iBAAiB;IACjB,UAAU,EACR,WAAW;KACT,OAAO;KACP,iBAAiB;IACnB,EACF;GACF;EACF;EACA;GACE,MAAM;GACN,OAAO;GACP,KAAK,EACH,YAAY,wBAAwB,OAAO,EAC7C;EACF;EACA;GACE,MAAM;GACN,OAAO;GACP,KAAK,EACH,YAAY,wBAAwB,OAAO,EAC7C;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,SAAS;CACX;AACF,CAAC;AACD,IAAM,mBAAmB,OAAO,MAAM,YAAY;AAUlD,IAAa,SAAS,MAAM,YACzB,EAAE,UAAU,SAAS,GAAG,SAAS,iBAAiB;CAEjD,OACE,oBAFgB,cAAe,UAAU,mBAAmB,cAAe,CAAC,OAAO,CAElF,GAAD;EAAW,KAAK;EAAc,GAAI;EAC/B;CACQ,CAAA;AAEf,CACF"}
1
+ {"version":3,"file":"Button.js","names":[],"sources":["../../../components/Button/Button.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport React, { ComponentProps, useMemo } from 'react';\n\nimport { CSS, keyframes, styled, VariantProps } from '../../stitches.config';\n\nexport const BUTTON_BASE_STYLES = {\n appearance: 'none',\n userSelect: 'none',\n boxSizing: 'border-box',\n border: 'none',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n '&:disabled': {\n pointerEvents: 'none',\n opacity: 0.5,\n },\n};\n\nconst BG_SIZES = {\n small: '$sizes$8',\n medium: '$sizes$9',\n large: '$sizes$10',\n};\n\nconst backgroundSizeAnimation = (size: keyof typeof BG_SIZES) => ({\n $$bgSize: BG_SIZES[size],\n backgroundSize: '$$bgSize',\n backgroundImage: `linear-gradient(\n -45deg,\n transparent 33%,\n $colors$deepBlue4 33%,\n $colors$deepBlue4 66%,\n transparent 66%\n )`,\n animation: `${keyframes({\n '100%': { transform: 'translateX($$bgSize)' },\n })} 500ms linear infinite`,\n});\n\nexport const StyledButton = styled('button', BUTTON_BASE_STYLES, {\n // Reset\n all: 'unset',\n alignItems: 'center',\n overflow: 'hidden',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n\n // Custom reset?\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'center',\n lineHeight: '1',\n\n // Custom\n position: 'relative',\n height: '$5',\n px: '$2',\n fontFamily: '$rubik',\n fontSize: '$3',\n fontWeight: '$medium',\n fontVariantNumeric: 'tabular-nums',\n\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px $colors$focusOutline`,\n '&::before': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n },\n '&::after': {\n opacity: 0.15,\n },\n },\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 '&:active': {\n '&::before': {\n backgroundColor: 'rgba(0, 0, 0, 0.15)',\n },\n },\n\n variants: {\n size: {\n small: {\n borderRadius: '$button',\n height: '$5',\n px: '$2',\n fontSize: '$1',\n lineHeight: '$sizes$5',\n },\n medium: {\n borderRadius: '$button',\n height: '$6',\n px: '$3',\n fontSize: '$3',\n lineHeight: '$sizes$6',\n },\n large: {\n borderRadius: '$button',\n height: '$7',\n px: '$3',\n fontSize: '$3',\n lineHeight: '$sizes$7',\n },\n },\n variant: {\n primary: {\n bc: '$buttonPrimaryBg',\n c: '$buttonPrimaryText',\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonPrimaryFocusBorder',\n },\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$buttonPrimaryBg',\n },\n },\n },\n },\n secondary: {\n bc: '$buttonSecondaryBg',\n c: '$buttonSecondaryText',\n boxShadow: 'inset 0 0 0 2px $colors$buttonSecondaryBorder',\n '&:active': {\n boxShadow: 'inset 0 0 0 1px $colors$buttonSecondaryBorder',\n },\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonSecondaryFocusBorder',\n },\n '@hover': {\n '&:hover': {\n '&::after': {\n backgroundColor: '$buttonPrimaryBg',\n },\n },\n },\n },\n red: {\n backgroundColor: '$buttonRedBg',\n color: '$buttonRedText',\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$buttonRedFocusBg',\n },\n },\n },\n state: {\n active: {\n bc: '$deepBlue5',\n c: '$deepBlue11',\n '&:active': {\n backgroundColor: '$deepBlue5',\n },\n },\n waiting: {\n bc: '$deepBlue3',\n boxShadow: `inset 0 0 0 1px $deepBlue4`,\n c: 'transparent',\n overflow: 'hidden',\n pointerEvents: 'none',\n '&::after': {\n left: '-100%',\n width: '200%',\n ...backgroundSizeAnimation('medium'),\n },\n },\n },\n ghost: {\n true: {\n boxShadow: 'none',\n '@hover': {\n '&:hover': {\n boxShadow: 'none',\n },\n },\n },\n },\n rounded: {\n true: {\n borderRadius: '$pill',\n },\n },\n },\n compoundVariants: [\n {\n variant: 'primary',\n ghost: 'true',\n css: {\n color: '$buttonPrimaryBg',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n color: '$buttonPrimaryGhostHoverText',\n backgroundColor: 'transparent',\n },\n },\n },\n },\n {\n variant: 'primary',\n state: 'active',\n css: {\n backgroundColor: '$buttonPrimaryFocusBg',\n color: '$buttonPrimaryText',\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n {\n variant: 'secondary',\n state: 'waiting',\n css: {\n backgroundColor: '$deepBlue3',\n color: 'transparent',\n },\n },\n {\n variant: 'secondary',\n ghost: true,\n css: {\n backgroundColor: 'transparent',\n color: '$buttonSecondaryText',\n boxShadow: 'none',\n },\n },\n {\n variant: 'red',\n state: 'waiting',\n css: {\n backgroundColor: '$deepBlue3',\n color: 'transparent',\n },\n },\n {\n variant: 'red',\n state: 'active',\n css: {\n backgroundColor: '$buttonRedFocusBg',\n color: '$buttonRedText',\n boxShadow: 'inset 0 0 0 2px white',\n },\n },\n {\n variant: 'red',\n ghost: 'true',\n css: {\n color: '$buttonRedBg',\n backgroundColor: 'transparent',\n '@hover': {\n '&:hover': {\n color: '$buttonRedHoverText',\n backgroundColor: 'transparent',\n },\n },\n },\n },\n {\n size: 'small',\n state: 'waiting',\n css: {\n '&::after': backgroundSizeAnimation('small'),\n },\n },\n {\n size: 'large',\n state: 'waiting',\n css: {\n '&::after': backgroundSizeAnimation('large'),\n },\n },\n ],\n defaultVariants: {\n size: 'medium',\n variant: 'primary',\n },\n});\nconst StyledButtonSlot = styled(Slot, StyledButton);\n\nexport interface ButtonVariants extends VariantProps<typeof StyledButton> {}\nexport type ButtonProps = ComponentProps<typeof StyledButton> &\n ButtonVariants & {\n css?: CSS;\n asChild?: boolean;\n as?: string;\n };\n\nexport const Button = React.forwardRef<React.ElementRef<typeof StyledButton>, ButtonProps>(\n ({ children, asChild, ...props }, forwardedRef) => {\n const Component = useMemo(() => (asChild ? StyledButtonSlot : StyledButton), [asChild]);\n return (\n <Component ref={forwardedRef} {...props}>\n {children}\n </Component>\n );\n },\n);\n"],"mappings":";;;;;AAKA,IAAa,qBAAqB;CAChC,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,QAAQ;CACR,yBAAyB;CACzB,cAAc;EACZ,eAAe;EACf,SAAS;CACX;AACF;AAEA,IAAM,WAAW;CACf,OAAO;CACP,QAAQ;CACR,OAAO;AACT;AAEA,IAAM,2BAA2B,UAAiC;CAChE,UAAU,SAAS;CACnB,gBAAgB;CAChB,iBAAiB;;;;;;;CAOjB,WAAW,GAAG,UAAU,EACtB,QAAQ,EAAE,WAAW,uBAAuB,EAC9C,CAAC,EAAE;AACL;AAEA,IAAa,eAAe,OAAO,UAAU,oBAAoB;CAE/D,KAAK;CACL,YAAY;CACZ,UAAU;CAEV,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CAGA,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,YAAY;CAGZ,UAAU;CACV,QAAQ;CACR,IAAI;CACJ,YAAY;CACZ,UAAU;CACV,YAAY;CACZ,oBAAoB;CAEpB,mBAAmB;EACjB,WAAW;EACX,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF;CAEA,UAAU,EACR,WAAW;EACT,QAAQ;EACR,aAAa,EACX,iBAAiB,4BACnB;EACA,YAAY,EACV,SAAS,IACX;CACF,EACF;CAEA,YAAY,EACV,aAAa,EACX,iBAAiB,sBACnB,EACF;CAEA,UAAU;EACR,MAAM;GACJ,OAAO;IACL,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;GACA,QAAQ;IACN,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;GACA,OAAO;IACL,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,YAAY;GACd;EACF;EACA,SAAS;GACP,SAAS;IACP,IAAI;IACJ,GAAG;IACH,mBAAmB,EACjB,WAAW,mDACb;IACA,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,mBACnB,EACF,EACF;GACF;GACA,WAAW;IACT,IAAI;IACJ,GAAG;IACH,WAAW;IACX,YAAY,EACV,WAAW,gDACb;IACA,mBAAmB,EACjB,WAAW,qDACb;IACA,UAAU,EACR,WAAW,EACT,YAAY,EACV,iBAAiB,mBACnB,EACF,EACF;GACF;GACA,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,mBAAmB,EACjB,WAAW,2CACb;GACF;EACF;EACA,OAAO;GACL,QAAQ;IACN,IAAI;IACJ,GAAG;IACH,YAAY,EACV,iBAAiB,aACnB;GACF;GACA,SAAS;IACP,IAAI;IACJ,WAAW;IACX,GAAG;IACH,UAAU;IACV,eAAe;IACf,YAAY;KACV,MAAM;KACN,OAAO;KACP,GAAG,wBAAwB,QAAQ;IACrC;GACF;EACF;EACA,OAAO,EACL,MAAM;GACJ,WAAW;GACX,UAAU,EACR,WAAW,EACT,WAAW,OACb,EACF;EACF,EACF;EACA,SAAS,EACP,MAAM,EACJ,cAAc,QAChB,EACF;CACF;CACA,kBAAkB;EAChB;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,OAAO;IACP,iBAAiB;IACjB,UAAU,EACR,WAAW;KACT,OAAO;KACP,iBAAiB;IACnB,EACF;GACF;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;GACT;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;GACT;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,iBAAiB;IACjB,OAAO;IACP,WAAW;GACb;EACF;EACA;GACE,SAAS;GACT,OAAO;GACP,KAAK;IACH,OAAO;IACP,iBAAiB;IACjB,UAAU,EACR,WAAW;KACT,OAAO;KACP,iBAAiB;IACnB,EACF;GACF;EACF;EACA;GACE,MAAM;GACN,OAAO;GACP,KAAK,EACH,YAAY,wBAAwB,OAAO,EAC7C;EACF;EACA;GACE,MAAM;GACN,OAAO;GACP,KAAK,EACH,YAAY,wBAAwB,OAAO,EAC7C;EACF;CACF;CACA,iBAAiB;EACf,MAAM;EACN,SAAS;CACX;AACF,CAAC;AACD,IAAM,mBAAmB,OAAO,MAAM,YAAY;AAUlD,IAAa,SAAS,MAAM,YACzB,EAAE,UAAU,SAAS,GAAG,SAAS,iBAAiB;CACjD,MAAM,YAAY,cAAe,UAAU,mBAAmB,cAAe,CAAC,OAAO,CAAC;CACtF,OACE,oBAAC,WAAD;EAAW,KAAK;EAAc,GAAI;EAC/B;CACQ,CAAA;AAEf,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/Button/Button.themes.ts
4
+ // components/Button/Button.themes.ts
5
5
  var Theme;
6
6
  (function(_Theme) {
7
7
  _Theme.getLight = (primaryColor) => ({
@@ -35,7 +35,6 @@ var Theme;
35
35
  buttonRedFocusBg: "$redA11"
36
36
  });
37
37
  })(Theme || (Theme = {}));
38
- //#endregion
39
38
  Object.defineProperty(exports, "Theme", {
40
39
  enumerable: true,
41
40
  get: function() {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.themes.cjs","names":[],"sources":["../../../components/Button/Button.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n buttonPrimaryBg: Property.Color;\n buttonPrimaryText: Property.Color;\n buttonPrimaryFocusBorder: Property.Color;\n buttonPrimaryGhostHoverText: Property.Color;\n\n buttonSecondaryBg: Property.Color;\n buttonSecondaryText: Property.Color;\n buttonSecondaryBorder: Property.Color;\n buttonSecondaryFocusBorder: Property.Color;\n\n buttonRedBg: Property.Color;\n buttonRedText: Property.Color;\n buttonRedHoverText: Property.Color;\n buttonRedFocusBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n buttonPrimaryBg: '$primary',\n buttonPrimaryFocusBg: tinycolor(primaryColor.value).lighten(10).toHslString(),\n buttonPrimaryText: 'white',\n buttonPrimaryFocusBorder: primaryColor.helpers.pickScale(6, { alpha: true }),\n buttonPrimaryGhostHoverText: '$deepBlue9',\n\n buttonSecondaryBg: 'transparent',\n buttonSecondaryText: 'hsla(0, 0%, 0%, 0.54)',\n buttonSecondaryBorder: '$grayBlue9',\n buttonSecondaryFocusBorder: tinycolor(primaryColor.value).setAlpha(0.19).toHslString(),\n\n buttonRedBg: '$red9',\n buttonRedText: '$loContrast',\n buttonRedHoverText: '$red10',\n buttonRedFocusBg: '$redA8',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n buttonPrimaryBg: '$primary',\n buttonPrimaryFocusBg: tinycolor(primaryColor.value).lighten(10).toHslString(),\n buttonPrimaryText: '$deepBlue2',\n buttonPrimaryFocusBorder: primaryColor.helpers.pickScale(12, { alpha: true }),\n buttonPrimaryGhostHoverText: tinycolor(primaryColor.value).lighten(10).toHslString(),\n\n buttonSecondaryBg: 'transparent',\n buttonSecondaryText: tinycolor('white').setAlpha(0.74).toHslString(),\n buttonSecondaryBorder: '$grayBlue9',\n buttonSecondaryFocusBorder: '$primary',\n\n buttonRedBg: '$red10',\n buttonRedText: '$hiContrast',\n buttonRedHoverText: '$red10',\n buttonRedFocusBg: '$redA11',\n });\n}\n"],"mappings":";;;;AAKO,IAAA;;CAoBQ,OAAA,YAAqB,kBAAkB;EAClD,iBAAiB;EACjB,uBAAA,GAAA,WAAA,QAAA,CAAgC,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAC5E,mBAAmB;EACnB,0BAA0B,aAAa,QAAQ,UAAU,GAAG,EAAE,OAAO,KAAK,CAAC;EAC3E,6BAA6B;EAE7B,mBAAmB;EACnB,qBAAqB;EACrB,uBAAuB;EACvB,6BAAA,GAAA,WAAA,QAAA,CAAsC,aAAa,KAAK,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAErF,aAAa;EACb,eAAe;EACf,oBAAoB;EACpB,kBAAkB;CACpB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,iBAAiB;EACjB,uBAAA,GAAA,WAAA,QAAA,CAAgC,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAC5E,mBAAmB;EACnB,0BAA0B,aAAa,QAAQ,UAAU,IAAI,EAAE,OAAO,KAAK,CAAC;EAC5E,8BAAA,GAAA,WAAA,QAAA,CAAuC,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAEnF,mBAAmB;EACnB,sBAAA,GAAA,WAAA,QAAA,CAA+B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACnE,uBAAuB;EACvB,4BAA4B;EAE5B,aAAa;EACb,eAAe;EACf,oBAAoB;EACpB,kBAAkB;CACpB;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"Button.themes.cjs","names":["tinycolor"],"sources":["../../../components/Button/Button.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n buttonPrimaryBg: Property.Color;\n buttonPrimaryText: Property.Color;\n buttonPrimaryFocusBorder: Property.Color;\n buttonPrimaryGhostHoverText: Property.Color;\n\n buttonSecondaryBg: Property.Color;\n buttonSecondaryText: Property.Color;\n buttonSecondaryBorder: Property.Color;\n buttonSecondaryFocusBorder: Property.Color;\n\n buttonRedBg: Property.Color;\n buttonRedText: Property.Color;\n buttonRedHoverText: Property.Color;\n buttonRedFocusBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n buttonPrimaryBg: '$primary',\n buttonPrimaryFocusBg: tinycolor(primaryColor.value).lighten(10).toHslString(),\n buttonPrimaryText: 'white',\n buttonPrimaryFocusBorder: primaryColor.helpers.pickScale(6, { alpha: true }),\n buttonPrimaryGhostHoverText: '$deepBlue9',\n\n buttonSecondaryBg: 'transparent',\n buttonSecondaryText: 'hsla(0, 0%, 0%, 0.54)',\n buttonSecondaryBorder: '$grayBlue9',\n buttonSecondaryFocusBorder: tinycolor(primaryColor.value).setAlpha(0.19).toHslString(),\n\n buttonRedBg: '$red9',\n buttonRedText: '$loContrast',\n buttonRedHoverText: '$red10',\n buttonRedFocusBg: '$redA8',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n buttonPrimaryBg: '$primary',\n buttonPrimaryFocusBg: tinycolor(primaryColor.value).lighten(10).toHslString(),\n buttonPrimaryText: '$deepBlue2',\n buttonPrimaryFocusBorder: primaryColor.helpers.pickScale(12, { alpha: true }),\n buttonPrimaryGhostHoverText: tinycolor(primaryColor.value).lighten(10).toHslString(),\n\n buttonSecondaryBg: 'transparent',\n buttonSecondaryText: tinycolor('white').setAlpha(0.74).toHslString(),\n buttonSecondaryBorder: '$grayBlue9',\n buttonSecondaryFocusBorder: '$primary',\n\n buttonRedBg: '$red10',\n buttonRedText: '$hiContrast',\n buttonRedHoverText: '$red10',\n buttonRedFocusBg: '$redA11',\n });\n}\n"],"mappings":";;;;AAKO,IAAU;CAAV,SAAA,QAAA;CAoBQ,OAAA,YAAqB,kBAAkB;EAClD,iBAAiB;EACjB,uBAAA,GAAsBA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAC5E,mBAAmB;EACnB,0BAA0B,aAAa,QAAQ,UAAU,GAAG,EAAE,OAAO,KAAK,CAAC;EAC3E,6BAA6B;EAE7B,mBAAmB;EACnB,qBAAqB;EACrB,uBAAuB;EACvB,6BAAA,GAA4BA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAErF,aAAa;EACb,eAAe;EACf,oBAAoB;EACpB,kBAAkB;CACpB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,iBAAiB;EACjB,uBAAA,GAAsBA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAC5E,mBAAmB;EACnB,0BAA0B,aAAa,QAAQ,UAAU,IAAI,EAAE,OAAO,KAAK,CAAC;EAC5E,8BAAA,GAA6BA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAEnF,mBAAmB;EACnB,sBAAA,GAAqBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACnE,uBAAuB;EACvB,4BAA4B;EAE5B,aAAa;EACb,eAAe;EACf,oBAAoB;EACpB,kBAAkB;CACpB;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -1,5 +1,5 @@
1
1
  import tinycolor from "tinycolor2";
2
- //#region components/Button/Button.themes.ts
2
+ // components/Button/Button.themes.ts
3
3
  var Theme;
4
4
  (function(_Theme) {
5
5
  _Theme.getLight = (primaryColor) => ({
@@ -33,7 +33,6 @@ var Theme;
33
33
  buttonRedFocusBg: "$redA11"
34
34
  });
35
35
  })(Theme || (Theme = {}));
36
- //#endregion
37
36
  export { Theme };
38
37
 
39
38
  //# sourceMappingURL=Button.themes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.themes.js","names":[],"sources":["../../../components/Button/Button.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n buttonPrimaryBg: Property.Color;\n buttonPrimaryText: Property.Color;\n buttonPrimaryFocusBorder: Property.Color;\n buttonPrimaryGhostHoverText: Property.Color;\n\n buttonSecondaryBg: Property.Color;\n buttonSecondaryText: Property.Color;\n buttonSecondaryBorder: Property.Color;\n buttonSecondaryFocusBorder: Property.Color;\n\n buttonRedBg: Property.Color;\n buttonRedText: Property.Color;\n buttonRedHoverText: Property.Color;\n buttonRedFocusBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n buttonPrimaryBg: '$primary',\n buttonPrimaryFocusBg: tinycolor(primaryColor.value).lighten(10).toHslString(),\n buttonPrimaryText: 'white',\n buttonPrimaryFocusBorder: primaryColor.helpers.pickScale(6, { alpha: true }),\n buttonPrimaryGhostHoverText: '$deepBlue9',\n\n buttonSecondaryBg: 'transparent',\n buttonSecondaryText: 'hsla(0, 0%, 0%, 0.54)',\n buttonSecondaryBorder: '$grayBlue9',\n buttonSecondaryFocusBorder: tinycolor(primaryColor.value).setAlpha(0.19).toHslString(),\n\n buttonRedBg: '$red9',\n buttonRedText: '$loContrast',\n buttonRedHoverText: '$red10',\n buttonRedFocusBg: '$redA8',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n buttonPrimaryBg: '$primary',\n buttonPrimaryFocusBg: tinycolor(primaryColor.value).lighten(10).toHslString(),\n buttonPrimaryText: '$deepBlue2',\n buttonPrimaryFocusBorder: primaryColor.helpers.pickScale(12, { alpha: true }),\n buttonPrimaryGhostHoverText: tinycolor(primaryColor.value).lighten(10).toHslString(),\n\n buttonSecondaryBg: 'transparent',\n buttonSecondaryText: tinycolor('white').setAlpha(0.74).toHslString(),\n buttonSecondaryBorder: '$grayBlue9',\n buttonSecondaryFocusBorder: '$primary',\n\n buttonRedBg: '$red10',\n buttonRedText: '$hiContrast',\n buttonRedHoverText: '$red10',\n buttonRedFocusBg: '$redA11',\n });\n}\n"],"mappings":";;AAKO,IAAA;;CAoBQ,OAAA,YAAqB,kBAAkB;EAClD,iBAAiB;EACjB,sBAAsB,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAC5E,mBAAmB;EACnB,0BAA0B,aAAa,QAAQ,UAAU,GAAG,EAAE,OAAO,KAAK,CAAC;EAC3E,6BAA6B;EAE7B,mBAAmB;EACnB,qBAAqB;EACrB,uBAAuB;EACvB,4BAA4B,UAAU,aAAa,KAAK,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAErF,aAAa;EACb,eAAe;EACf,oBAAoB;EACpB,kBAAkB;CACpB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,iBAAiB;EACjB,sBAAsB,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAC5E,mBAAmB;EACnB,0BAA0B,aAAa,QAAQ,UAAU,IAAI,EAAE,OAAO,KAAK,CAAC;EAC5E,6BAA6B,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAEnF,mBAAmB;EACnB,qBAAqB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACnE,uBAAuB;EACvB,4BAA4B;EAE5B,aAAa;EACb,eAAe;EACf,oBAAoB;EACpB,kBAAkB;CACpB;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"Button.themes.js","names":[],"sources":["../../../components/Button/Button.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n type Colors = {\n buttonPrimaryBg: Property.Color;\n buttonPrimaryText: Property.Color;\n buttonPrimaryFocusBorder: Property.Color;\n buttonPrimaryGhostHoverText: Property.Color;\n\n buttonSecondaryBg: Property.Color;\n buttonSecondaryText: Property.Color;\n buttonSecondaryBorder: Property.Color;\n buttonSecondaryFocusBorder: Property.Color;\n\n buttonRedBg: Property.Color;\n buttonRedText: Property.Color;\n buttonRedHoverText: Property.Color;\n buttonRedFocusBg: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n buttonPrimaryBg: '$primary',\n buttonPrimaryFocusBg: tinycolor(primaryColor.value).lighten(10).toHslString(),\n buttonPrimaryText: 'white',\n buttonPrimaryFocusBorder: primaryColor.helpers.pickScale(6, { alpha: true }),\n buttonPrimaryGhostHoverText: '$deepBlue9',\n\n buttonSecondaryBg: 'transparent',\n buttonSecondaryText: 'hsla(0, 0%, 0%, 0.54)',\n buttonSecondaryBorder: '$grayBlue9',\n buttonSecondaryFocusBorder: tinycolor(primaryColor.value).setAlpha(0.19).toHslString(),\n\n buttonRedBg: '$red9',\n buttonRedText: '$loContrast',\n buttonRedHoverText: '$red10',\n buttonRedFocusBg: '$redA8',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n buttonPrimaryBg: '$primary',\n buttonPrimaryFocusBg: tinycolor(primaryColor.value).lighten(10).toHslString(),\n buttonPrimaryText: '$deepBlue2',\n buttonPrimaryFocusBorder: primaryColor.helpers.pickScale(12, { alpha: true }),\n buttonPrimaryGhostHoverText: tinycolor(primaryColor.value).lighten(10).toHslString(),\n\n buttonSecondaryBg: 'transparent',\n buttonSecondaryText: tinycolor('white').setAlpha(0.74).toHslString(),\n buttonSecondaryBorder: '$grayBlue9',\n buttonSecondaryFocusBorder: '$primary',\n\n buttonRedBg: '$red10',\n buttonRedText: '$hiContrast',\n buttonRedHoverText: '$red10',\n buttonRedFocusBg: '$redA11',\n });\n}\n"],"mappings":";;AAKO,IAAU;CAAV,SAAA,QAAA;CAoBQ,OAAA,YAAqB,kBAAkB;EAClD,iBAAiB;EACjB,sBAAsB,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAC5E,mBAAmB;EACnB,0BAA0B,aAAa,QAAQ,UAAU,GAAG,EAAE,OAAO,KAAK,CAAC;EAC3E,6BAA6B;EAE7B,mBAAmB;EACnB,qBAAqB;EACrB,uBAAuB;EACvB,4BAA4B,UAAU,aAAa,KAAK,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAErF,aAAa;EACb,eAAe;EACf,oBAAoB;EACpB,kBAAkB;CACpB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,iBAAiB;EACjB,sBAAsB,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAC5E,mBAAmB;EACnB,0BAA0B,aAAa,QAAQ,UAAU,IAAI,EAAE,OAAO,KAAK,CAAC;EAC5E,6BAA6B,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EAEnF,mBAAmB;EACnB,qBAAqB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACnE,uBAAuB;EACvB,4BAA4B;EAE5B,aAAa;EACb,eAAe;EACf,oBAAoB;EACpB,kBAAkB;CACpB;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -4,7 +4,7 @@ const require_Button_vanilla_css = require("./Button.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/Button/Button.vanilla.tsx
7
+ // components/Button/Button.vanilla.tsx
8
8
  var ButtonVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, style, size, variant, state, ghost, rounded, ...props }, ref) => {
9
9
  const Component = as || "button";
10
10
  const { colors } = require_themeContext.useVanillaExtractTheme();
@@ -14,22 +14,22 @@ var ButtonVanillaComponentImpl = (0, react.forwardRef)(({ as, className, css, st
14
14
  ...style,
15
15
  ...(0, _vanilla_extract_dynamic.assignInlineVars)(vars)
16
16
  };
17
+ const recipeClass = require_Button_vanilla_css.buttonRecipe({
18
+ size,
19
+ variant,
20
+ state,
21
+ ghost,
22
+ rounded
23
+ });
17
24
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, {
18
25
  ref,
19
- className: `${require_Button_vanilla_css.buttonRecipe({
20
- size,
21
- variant,
22
- state,
23
- ghost,
24
- rounded
25
- })} ${className || ""}`.trim(),
26
+ className: `${recipeClass} ${className || ""}`.trim(),
26
27
  style: mergedStyles,
27
28
  ...props
28
29
  });
29
30
  });
30
31
  ButtonVanillaComponentImpl.displayName = "ButtonVanilla";
31
32
  var ButtonVanilla = ButtonVanillaComponentImpl;
32
- //#endregion
33
33
  exports.ButtonVanilla = ButtonVanilla;
34
34
 
35
35
  //# sourceMappingURL=Button.vanilla.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.vanilla.cjs","names":[],"sources":["../../../components/Button/Button.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 { buttonRecipe } from './Button.vanilla.css';\n\ntype ButtonRecipeVariants = RecipeVariants<typeof buttonRecipe>;\n\ninterface ButtonOwnProps extends Omit<ButtonRecipeVariants, never>, CSSProps {}\n\nexport type ButtonVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<\n C,\n ButtonOwnProps\n>;\n\ntype ButtonVanillaComponent = PolymorphicComponent<'button', ButtonVanillaProps<ElementType>>;\n\nconst ButtonVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'button'>(\n {\n as,\n className,\n css,\n style,\n size,\n variant,\n state,\n ghost,\n rounded,\n ...props\n }: ButtonVanillaProps<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 = buttonRecipe({ size, variant, state, ghost, rounded });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nButtonVanillaComponentImpl.displayName = 'ButtonVanilla';\n\nexport const ButtonVanilla = ButtonVanillaComponentImpl as ButtonVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,8BAAA,GAAA,MAAA,WAAA,EAEF,EACE,IACA,WACA,KACA,OACA,MACA,SACA,OACA,OACA,SACA,GAAG,SAEL,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,2BAAA,aAAa;GAAE;GAAM;GAAS;GAAO;GAAO;EAAQ,CAKtD,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
1
+ {"version":3,"file":"Button.vanilla.cjs","names":["forwardRef","useVanillaExtractTheme","processCSSProp","assignInlineVars","buttonRecipe"],"sources":["../../../components/Button/Button.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 { buttonRecipe } from './Button.vanilla.css';\n\ntype ButtonRecipeVariants = RecipeVariants<typeof buttonRecipe>;\n\ninterface ButtonOwnProps extends Omit<ButtonRecipeVariants, never>, CSSProps {}\n\nexport type ButtonVanillaProps<C extends ElementType = 'button'> = PolymorphicComponentProps<\n C,\n ButtonOwnProps\n>;\n\ntype ButtonVanillaComponent = PolymorphicComponent<'button', ButtonVanillaProps<ElementType>>;\n\nconst ButtonVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'button'>(\n {\n as,\n className,\n css,\n style,\n size,\n variant,\n state,\n ghost,\n rounded,\n ...props\n }: ButtonVanillaProps<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 = buttonRecipe({ size, variant, state, ghost, rounded });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nButtonVanillaComponentImpl.displayName = 'ButtonVanilla';\n\nexport const ButtonVanilla = ButtonVanillaComponentImpl as ButtonVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,8BAAA,GAA6BA,MAAAA,WAAAA,EAE/B,EACE,IACA,WACA,KACA,OACA,MACA,SACA,OACA,OACA,SACA,GAAG,SAEL,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,2BAAAA,aAAa;EAAE;EAAM;EAAS;EAAO;EAAO;CAAQ,CAAC;CAEzE,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,2BAA2B,cAAc;AAEzC,IAAa,gBAAgB"}
@@ -1,5 +1,5 @@
1
1
  ;/* empty css */
2
- //#region components/Button/Button.vanilla.css.ts
2
+ // components/Button/Button.vanilla.css.ts
3
3
  var buttonRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").createRuntimeFn)({
4
4
  defaultClassName: "krhgwq4 krhgwq3",
5
5
  variantClassNames: {
@@ -63,7 +63,6 @@ var buttonRecipe = (0, require("@vanilla-extract/recipes/createRuntimeFn").creat
63
63
  }, "krhgwqn"]
64
64
  ]
65
65
  });
66
- //#endregion
67
66
  exports.buttonRecipe = buttonRecipe;
68
67
 
69
68
  //# sourceMappingURL=Button.vanilla.css.cjs.map