@traefik-labs/faency 12.3.9 → 13.1.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 (502) 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 +7 -4
  154. package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -1
  155. package/dist/components/CodeBlock/CodeBlock.js +7 -4
  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 +7 -4
  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 +7 -4
  166. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  167. package/dist/components/CodeBlock/prism-extend.cjs +8 -3
  168. package/dist/components/CodeBlock/prism-extend.cjs.map +1 -1
  169. package/dist/components/CodeBlock/prism-extend.js +2 -2
  170. package/dist/components/CodeBlock/prism-extend.js.map +1 -1
  171. package/dist/components/Container/Container.cjs +1 -2
  172. package/dist/components/Container/Container.cjs.map +1 -1
  173. package/dist/components/Container/Container.js +1 -2
  174. package/dist/components/Container/Container.vanilla.cjs +6 -6
  175. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  176. package/dist/components/Container/Container.vanilla.css.cjs +1 -2
  177. package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
  178. package/dist/components/Container/Container.vanilla.css.js +1 -2
  179. package/dist/components/Container/Container.vanilla.css.js.map +1 -1
  180. package/dist/components/Container/Container.vanilla.js +6 -6
  181. package/dist/components/Container/Container.vanilla.js.map +1 -1
  182. package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -2
  183. package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
  184. package/dist/components/DateTimePicker/DateTimePicker.js +1 -2
  185. package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
  186. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs +17 -14
  187. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs.map +1 -1
  188. package/dist/components/DateTimePickerInput/DateTimePickerInput.js +17 -14
  189. package/dist/components/DateTimePickerInput/DateTimePickerInput.js.map +1 -1
  190. package/dist/components/Dialog/Dialog.cjs +1 -2
  191. package/dist/components/Dialog/Dialog.cjs.map +1 -1
  192. package/dist/components/Dialog/Dialog.js +1 -2
  193. package/dist/components/Dialog/Dialog.js.map +1 -1
  194. package/dist/components/Dialog/Dialog.themes.cjs +1 -2
  195. package/dist/components/Dialog/Dialog.themes.cjs.map +1 -1
  196. package/dist/components/Dialog/Dialog.themes.js +1 -2
  197. package/dist/components/Dialog/Dialog.themes.js.map +1 -1
  198. package/dist/components/DropdownMenu/DropdownMenu.cjs +1 -2
  199. package/dist/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
  200. package/dist/components/DropdownMenu/DropdownMenu.js +1 -2
  201. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  202. package/dist/components/DropdownMenu/styles.cjs +1 -2
  203. package/dist/components/DropdownMenu/styles.cjs.map +1 -1
  204. package/dist/components/DropdownMenu/styles.js +1 -2
  205. package/dist/components/Elevation/Elevation.cjs +1 -2
  206. package/dist/components/Elevation/Elevation.cjs.map +1 -1
  207. package/dist/components/Elevation/Elevation.js +1 -2
  208. package/dist/components/Elevation/Elevation.vanilla.cjs +3 -3
  209. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  210. package/dist/components/Elevation/Elevation.vanilla.css.cjs +1 -2
  211. package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
  212. package/dist/components/Elevation/Elevation.vanilla.css.js +1 -2
  213. package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
  214. package/dist/components/Elevation/Elevation.vanilla.js +3 -3
  215. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  216. package/dist/components/FaencyProvider.cjs +1 -2
  217. package/dist/components/FaencyProvider.cjs.map +1 -1
  218. package/dist/components/FaencyProvider.js +1 -2
  219. package/dist/components/FaencyProvider.js.map +1 -1
  220. package/dist/components/Flex/Flex.cjs +1 -2
  221. package/dist/components/Flex/Flex.cjs.map +1 -1
  222. package/dist/components/Flex/Flex.js +1 -2
  223. package/dist/components/Flex/Flex.vanilla.cjs +9 -9
  224. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  225. package/dist/components/Flex/Flex.vanilla.css.cjs +1 -2
  226. package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
  227. package/dist/components/Flex/Flex.vanilla.css.js +1 -2
  228. package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
  229. package/dist/components/Flex/Flex.vanilla.js +9 -9
  230. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  231. package/dist/components/Grid/Grid.cjs +1 -2
  232. package/dist/components/Grid/Grid.cjs.map +1 -1
  233. package/dist/components/Grid/Grid.js +1 -2
  234. package/dist/components/Grid/Grid.vanilla.cjs +10 -10
  235. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  236. package/dist/components/Grid/Grid.vanilla.css.cjs +1 -2
  237. package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
  238. package/dist/components/Grid/Grid.vanilla.css.js +1 -2
  239. package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
  240. package/dist/components/Grid/Grid.vanilla.js +10 -10
  241. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  242. package/dist/components/Heading/Heading.cjs +1 -2
  243. package/dist/components/Heading/Heading.cjs.map +1 -1
  244. package/dist/components/Heading/Heading.js +1 -2
  245. package/dist/components/Heading/Heading.themes.cjs +1 -2
  246. package/dist/components/Heading/Heading.themes.cjs.map +1 -1
  247. package/dist/components/Heading/Heading.themes.js +1 -2
  248. package/dist/components/Heading/Heading.themes.js.map +1 -1
  249. package/dist/components/IconButton/IconButton.cjs +1 -2
  250. package/dist/components/IconButton/IconButton.cjs.map +1 -1
  251. package/dist/components/IconButton/IconButton.js +1 -2
  252. package/dist/components/IconButton/IconButton.themes.cjs +1 -2
  253. package/dist/components/IconButton/IconButton.themes.cjs.map +1 -1
  254. package/dist/components/IconButton/IconButton.themes.js +1 -2
  255. package/dist/components/IconButton/IconButton.themes.js.map +1 -1
  256. package/dist/components/IconButton/IconButton.vanilla.cjs +6 -6
  257. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  258. package/dist/components/IconButton/IconButton.vanilla.css.cjs +1 -2
  259. package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
  260. package/dist/components/IconButton/IconButton.vanilla.css.js +1 -2
  261. package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
  262. package/dist/components/IconButton/IconButton.vanilla.js +6 -6
  263. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  264. package/dist/components/Image/Image.cjs +1 -2
  265. package/dist/components/Image/Image.cjs.map +1 -1
  266. package/dist/components/Image/Image.js +1 -2
  267. package/dist/components/Image/Image.vanilla.cjs +1 -2
  268. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  269. package/dist/components/Image/Image.vanilla.css.cjs +1 -2
  270. package/dist/components/Image/Image.vanilla.css.js +1 -2
  271. package/dist/components/Image/Image.vanilla.js +1 -2
  272. package/dist/components/Input/Input.cjs +1 -2
  273. package/dist/components/Input/Input.cjs.map +1 -1
  274. package/dist/components/Input/Input.js +1 -2
  275. package/dist/components/Input/Input.js.map +1 -1
  276. package/dist/components/Input/Input.theme.cjs +1 -2
  277. package/dist/components/Input/Input.theme.cjs.map +1 -1
  278. package/dist/components/Input/Input.theme.js +1 -2
  279. package/dist/components/Input/Input.themes.cjs +1 -2
  280. package/dist/components/Input/Input.themes.cjs.map +1 -1
  281. package/dist/components/Input/Input.themes.js +1 -2
  282. package/dist/components/Input/Input.themes.js.map +1 -1
  283. package/dist/components/Input/Input.vanilla.cjs +1 -2
  284. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  285. package/dist/components/Input/Input.vanilla.css.cjs +1 -2
  286. package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
  287. package/dist/components/Input/Input.vanilla.css.js +1 -2
  288. package/dist/components/Input/Input.vanilla.css.js.map +1 -1
  289. package/dist/components/Input/Input.vanilla.js +1 -2
  290. package/dist/components/Input/Input.vanilla.js.map +1 -1
  291. package/dist/components/Label/Label.cjs +1 -2
  292. package/dist/components/Label/Label.cjs.map +1 -1
  293. package/dist/components/Label/Label.js +1 -2
  294. package/dist/components/Label/Label.vanilla.cjs +10 -10
  295. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  296. package/dist/components/Label/Label.vanilla.css.cjs +1 -2
  297. package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
  298. package/dist/components/Label/Label.vanilla.css.js +1 -2
  299. package/dist/components/Label/Label.vanilla.css.js.map +1 -1
  300. package/dist/components/Label/Label.vanilla.js +10 -10
  301. package/dist/components/Label/Label.vanilla.js.map +1 -1
  302. package/dist/components/Link/Link.cjs +0 -1
  303. package/dist/components/Link/Link.cjs.map +1 -1
  304. package/dist/components/Link/Link.js +0 -1
  305. package/dist/components/Link/Link.themes.cjs +1 -2
  306. package/dist/components/Link/Link.themes.cjs.map +1 -1
  307. package/dist/components/Link/Link.themes.js +1 -2
  308. package/dist/components/Link/Link.themes.js.map +1 -1
  309. package/dist/components/List/List.cjs +1 -2
  310. package/dist/components/List/List.cjs.map +1 -1
  311. package/dist/components/List/List.js +1 -2
  312. package/dist/components/List/List.js.map +1 -1
  313. package/dist/components/List/List.themes.cjs +1 -2
  314. package/dist/components/List/List.themes.cjs.map +1 -1
  315. package/dist/components/List/List.themes.js +1 -2
  316. package/dist/components/List/List.themes.js.map +1 -1
  317. package/dist/components/Navigation/Navigation.cjs +1 -2
  318. package/dist/components/Navigation/Navigation.cjs.map +1 -1
  319. package/dist/components/Navigation/Navigation.js +1 -2
  320. package/dist/components/Navigation/Navigation.js.map +1 -1
  321. package/dist/components/Navigation/Navigation.themes.cjs +1 -2
  322. package/dist/components/Navigation/Navigation.themes.cjs.map +1 -1
  323. package/dist/components/Navigation/Navigation.themes.js +1 -2
  324. package/dist/components/Navigation/Navigation.themes.js.map +1 -1
  325. package/dist/components/NavigationMenu/NavigationMenu.cjs +1 -2
  326. package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
  327. package/dist/components/NavigationMenu/NavigationMenu.js +1 -2
  328. package/dist/components/NavigationTree/NavigationTreeContainer.cjs +17 -12
  329. package/dist/components/NavigationTree/NavigationTreeContainer.cjs.map +1 -1
  330. package/dist/components/NavigationTree/NavigationTreeContainer.js +18 -13
  331. package/dist/components/NavigationTree/NavigationTreeContainer.js.map +1 -1
  332. package/dist/components/NavigationTree/NavigationTreeContext.cjs +16 -0
  333. package/dist/components/NavigationTree/NavigationTreeContext.cjs.map +1 -0
  334. package/dist/components/NavigationTree/NavigationTreeContext.js +13 -0
  335. package/dist/components/NavigationTree/NavigationTreeContext.js.map +1 -0
  336. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs +14 -9
  337. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs.map +1 -1
  338. package/dist/components/NavigationTree/NavigationTreeDrawer.js +15 -10
  339. package/dist/components/NavigationTree/NavigationTreeDrawer.js.map +1 -1
  340. package/dist/components/NavigationTree/NavigationTreeItem.cjs +17 -12
  341. package/dist/components/NavigationTree/NavigationTreeItem.cjs.map +1 -1
  342. package/dist/components/NavigationTree/NavigationTreeItem.js +17 -12
  343. package/dist/components/NavigationTree/NavigationTreeItem.js.map +1 -1
  344. package/dist/components/Overlay.cjs +1 -2
  345. package/dist/components/Overlay.cjs.map +1 -1
  346. package/dist/components/Overlay.js +1 -2
  347. package/dist/components/Panel/Panel.cjs +1 -2
  348. package/dist/components/Panel/Panel.cjs.map +1 -1
  349. package/dist/components/Panel/Panel.js +1 -2
  350. package/dist/components/Panel/Panel.theme.cjs +1 -2
  351. package/dist/components/Panel/Panel.theme.js +1 -2
  352. package/dist/components/Panel/Panel.vanilla.cjs +1 -2
  353. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  354. package/dist/components/Panel/Panel.vanilla.css.cjs +1 -2
  355. package/dist/components/Panel/Panel.vanilla.css.js +1 -2
  356. package/dist/components/Panel/Panel.vanilla.js +1 -2
  357. package/dist/components/Paragraph/Paragraph.cjs +1 -2
  358. package/dist/components/Paragraph/Paragraph.cjs.map +1 -1
  359. package/dist/components/Paragraph/Paragraph.js +1 -2
  360. package/dist/components/Paragraph/Paragraph.vanilla.cjs +3 -3
  361. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  362. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +1 -2
  363. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
  364. package/dist/components/Paragraph/Paragraph.vanilla.css.js +1 -2
  365. package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
  366. package/dist/components/Paragraph/Paragraph.vanilla.js +3 -3
  367. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  368. package/dist/components/Popover/Popover.cjs +1 -2
  369. package/dist/components/Popover/Popover.cjs.map +1 -1
  370. package/dist/components/Popover/Popover.js +1 -2
  371. package/dist/components/Popover/Popover.js.map +1 -1
  372. package/dist/components/Radio/Radio.cjs +1 -2
  373. package/dist/components/Radio/Radio.cjs.map +1 -1
  374. package/dist/components/Radio/Radio.js +1 -2
  375. package/dist/components/Radio/Radio.js.map +1 -1
  376. package/dist/components/Radio/Radio.themes.cjs +1 -2
  377. package/dist/components/Radio/Radio.themes.cjs.map +1 -1
  378. package/dist/components/Radio/Radio.themes.js +1 -2
  379. package/dist/components/Radio/Radio.themes.js.map +1 -1
  380. package/dist/components/RadioAccordion/RadioAccordion.cjs +1 -2
  381. package/dist/components/RadioAccordion/RadioAccordion.cjs.map +1 -1
  382. package/dist/components/RadioAccordion/RadioAccordion.js +1 -2
  383. package/dist/components/RadioAccordion/RadioAccordion.js.map +1 -1
  384. package/dist/components/Select/Select.cjs +1 -2
  385. package/dist/components/Select/Select.cjs.map +1 -1
  386. package/dist/components/Select/Select.js +1 -2
  387. package/dist/components/Select/Select.js.map +1 -1
  388. package/dist/components/Select/Select.themes.cjs +1 -2
  389. package/dist/components/Select/Select.themes.cjs.map +1 -1
  390. package/dist/components/Select/Select.themes.js +1 -2
  391. package/dist/components/Select/Select.themes.js.map +1 -1
  392. package/dist/components/SidePanel/SidePanel.cjs +1 -2
  393. package/dist/components/SidePanel/SidePanel.cjs.map +1 -1
  394. package/dist/components/SidePanel/SidePanel.js +1 -2
  395. package/dist/components/SidePanel/SidePanel.js.map +1 -1
  396. package/dist/components/SidePanel/SidePanel.themes.cjs +1 -2
  397. package/dist/components/SidePanel/SidePanel.themes.cjs.map +1 -1
  398. package/dist/components/SidePanel/SidePanel.themes.js +1 -2
  399. package/dist/components/SidePanel/SidePanel.themes.js.map +1 -1
  400. package/dist/components/Skeleton/Skeleton.cjs +1 -2
  401. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  402. package/dist/components/Skeleton/Skeleton.js +6 -5
  403. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  404. package/dist/components/Skeleton/Skeleton.themes.cjs +1 -2
  405. package/dist/components/Skeleton/Skeleton.themes.cjs.map +1 -1
  406. package/dist/components/Skeleton/Skeleton.themes.js +1 -2
  407. package/dist/components/Skeleton/Skeleton.themes.js.map +1 -1
  408. package/dist/components/Skeleton/Skeleton.vanilla.cjs +3 -3
  409. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  410. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +1 -2
  411. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
  412. package/dist/components/Skeleton/Skeleton.vanilla.css.js +1 -2
  413. package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
  414. package/dist/components/Skeleton/Skeleton.vanilla.js +3 -3
  415. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  416. package/dist/components/Switch/Switch.cjs +3 -4
  417. package/dist/components/Switch/Switch.cjs.map +1 -1
  418. package/dist/components/Switch/Switch.js +3 -4
  419. package/dist/components/Switch/Switch.js.map +1 -1
  420. package/dist/components/Switch/Switch.themes.cjs +1 -2
  421. package/dist/components/Switch/Switch.themes.cjs.map +1 -1
  422. package/dist/components/Switch/Switch.themes.js +1 -2
  423. package/dist/components/Switch/Switch.themes.js.map +1 -1
  424. package/dist/components/Table/Table.cjs +1 -2
  425. package/dist/components/Table/Table.cjs.map +1 -1
  426. package/dist/components/Table/Table.js +15 -14
  427. package/dist/components/Table/Table.js.map +1 -1
  428. package/dist/components/Table/Table.themes.cjs +1 -2
  429. package/dist/components/Table/Table.themes.cjs.map +1 -1
  430. package/dist/components/Table/Table.themes.js +1 -2
  431. package/dist/components/Table/Table.themes.js.map +1 -1
  432. package/dist/components/Tabs/Tabs.cjs +1 -2
  433. package/dist/components/Tabs/Tabs.cjs.map +1 -1
  434. package/dist/components/Tabs/Tabs.js +1 -2
  435. package/dist/components/Text/Text.cjs +1 -2
  436. package/dist/components/Text/Text.cjs.map +1 -1
  437. package/dist/components/Text/Text.js +1 -2
  438. package/dist/components/Text/Text.themes.cjs +1 -2
  439. package/dist/components/Text/Text.themes.cjs.map +1 -1
  440. package/dist/components/Text/Text.themes.js +1 -2
  441. package/dist/components/Text/Text.themes.js.map +1 -1
  442. package/dist/components/TextField/TextField.cjs +1 -2
  443. package/dist/components/TextField/TextField.cjs.map +1 -1
  444. package/dist/components/TextField/TextField.js +1 -2
  445. package/dist/components/TextField/TextField.js.map +1 -1
  446. package/dist/components/TextField/TextField.vanilla.cjs +1 -2
  447. package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
  448. package/dist/components/TextField/TextField.vanilla.js +1 -2
  449. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  450. package/dist/components/Textarea/Textarea.cjs +1 -2
  451. package/dist/components/Textarea/Textarea.cjs.map +1 -1
  452. package/dist/components/Textarea/Textarea.js +1 -2
  453. package/dist/components/Textarea/Textarea.js.map +1 -1
  454. package/dist/components/Textarea/Textarea.theme.cjs +1 -2
  455. package/dist/components/Textarea/Textarea.theme.cjs.map +1 -1
  456. package/dist/components/Textarea/Textarea.theme.js +1 -2
  457. package/dist/components/Textarea/Textarea.themes.cjs +1 -2
  458. package/dist/components/Textarea/Textarea.themes.cjs.map +1 -1
  459. package/dist/components/Textarea/Textarea.themes.js +1 -2
  460. package/dist/components/Textarea/Textarea.themes.js.map +1 -1
  461. package/dist/components/Textarea/Textarea.vanilla.cjs +1 -2
  462. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  463. package/dist/components/Textarea/Textarea.vanilla.css.cjs +1 -2
  464. package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
  465. package/dist/components/Textarea/Textarea.vanilla.css.js +1 -2
  466. package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
  467. package/dist/components/Textarea/Textarea.vanilla.js +1 -2
  468. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  469. package/dist/components/Tooltip/Tooltip.cjs +1 -2
  470. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  471. package/dist/components/Tooltip/Tooltip.js +1 -2
  472. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  473. package/dist/components/Tooltip/Tooltip.themes.cjs +1 -2
  474. package/dist/components/Tooltip/Tooltip.themes.cjs.map +1 -1
  475. package/dist/components/Tooltip/Tooltip.themes.js +1 -2
  476. package/dist/components/Tooltip/Tooltip.themes.js.map +1 -1
  477. package/dist/components/VisuallyHidden/VisuallyHidden.cjs +1 -2
  478. package/dist/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
  479. package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -2
  480. package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  481. package/dist/components/colorSchemeContext.cjs +1 -2
  482. package/dist/components/colorSchemeContext.cjs.map +1 -1
  483. package/dist/components/colorSchemeContext.js +1 -2
  484. package/dist/index.d.ts +10 -1
  485. package/dist/stitches.config.cjs +1 -2
  486. package/dist/stitches.config.cjs.map +1 -1
  487. package/dist/stitches.config.js +1 -2
  488. package/dist/stitches.config.js.map +1 -1
  489. package/dist/styles/cssProps.cjs +24 -27
  490. package/dist/styles/cssProps.cjs.map +1 -1
  491. package/dist/styles/cssProps.js +24 -27
  492. package/dist/styles/cssProps.js.map +1 -1
  493. package/dist/styles/themeContext.cjs +1 -2
  494. package/dist/styles/themeContext.cjs.map +1 -1
  495. package/dist/styles/themeContext.js +1 -2
  496. package/dist/styles/themes.css.cjs +1 -2
  497. package/dist/styles/themes.css.js +1 -2
  498. package/dist/utils/deepMerge.cjs +1 -2
  499. package/dist/utils/deepMerge.js +1 -2
  500. package/dist/utils/getPrimaryColorInfo.cjs +1 -2
  501. package/dist/utils/getPrimaryColorInfo.js +1 -2
  502. package/package.json +64 -62
@@ -4,7 +4,7 @@ import { labelRecipe } from "./Label.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/Label/Label.vanilla.tsx
7
+ // components/Label/Label.vanilla.tsx
8
8
  var LabelVanillaComponentImpl = forwardRef(({ as, className, css, style, size, weight, variant, gradient, transform, noWrap, ...props }, ref) => {
9
9
  const Component = as || "label";
10
10
  const { colors } = useVanillaExtractTheme();
@@ -14,23 +14,23 @@ var LabelVanillaComponentImpl = forwardRef(({ as, className, css, style, size, w
14
14
  ...style,
15
15
  ...assignInlineVars(vars)
16
16
  };
17
+ const recipeClass = labelRecipe({
18
+ size,
19
+ weight,
20
+ variant,
21
+ gradient,
22
+ transform,
23
+ noWrap
24
+ });
17
25
  return /* @__PURE__ */ jsx(Component, {
18
26
  ref,
19
- className: `${labelRecipe({
20
- size,
21
- weight,
22
- variant,
23
- gradient,
24
- transform,
25
- noWrap
26
- })} ${className || ""}`.trim(),
27
+ className: `${recipeClass} ${className || ""}`.trim(),
27
28
  style: mergedStyles,
28
29
  ...props
29
30
  });
30
31
  });
31
32
  LabelVanillaComponentImpl.displayName = "LabelVanilla";
32
33
  var LabelVanilla = LabelVanillaComponentImpl;
33
- //#endregion
34
34
  export { LabelVanilla };
35
35
 
36
36
  //# sourceMappingURL=Label.vanilla.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.vanilla.js","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,4BAA4B,YAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAIA,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GALK,YAAY;GAAE;GAAM;GAAQ;GAAS;GAAU;GAAW;EAAO,CAKnE,EAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
1
+ {"version":3,"file":"Label.vanilla.js","names":[],"sources":["../../../components/Label/Label.vanilla.tsx"],"sourcesContent":["import { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { RecipeVariants } from '@vanilla-extract/recipes';\nimport { ElementType, forwardRef } from 'react';\n\nimport { CSSProps, processCSSProp } from '../../styles/cssProps';\nimport {\n PolymorphicComponent,\n PolymorphicComponentProps,\n PolymorphicRef,\n} from '../../styles/polymorphic';\nimport { useVanillaExtractTheme } from '../../styles/themeContext';\nimport { labelRecipe } from './Label.vanilla.css';\n\ntype LabelRecipeVariants = NonNullable<RecipeVariants<typeof labelRecipe>>;\n\ninterface LabelOwnProps extends LabelRecipeVariants, CSSProps {}\n\nexport type LabelVanillaProps<C extends ElementType = 'label'> = PolymorphicComponentProps<\n C,\n LabelOwnProps\n>;\n\ntype LabelVanillaComponent = PolymorphicComponent<'label', LabelVanillaProps<ElementType>>;\n\nconst LabelVanillaComponentImpl = forwardRef(\n <C extends ElementType = 'label'>(\n {\n as,\n className,\n css,\n style,\n size,\n weight,\n variant,\n gradient,\n transform,\n noWrap,\n ...props\n }: LabelVanillaProps<C>,\n ref?: PolymorphicRef<C>,\n ) => {\n const Component = as || 'label';\n const { colors } = useVanillaExtractTheme();\n\n const { style: cssStyles, vars } = processCSSProp(css, colors);\n\n const mergedStyles = {\n ...cssStyles,\n ...style,\n ...assignInlineVars(vars),\n };\n\n const recipeClass = labelRecipe({ size, weight, variant, gradient, transform, noWrap });\n\n return (\n <Component\n ref={ref}\n className={`${recipeClass} ${className || ''}`.trim()}\n style={mergedStyles}\n {...props}\n />\n );\n },\n);\n\nLabelVanillaComponentImpl.displayName = 'LabelVanilla';\n\nexport const LabelVanilla = LabelVanillaComponentImpl as LabelVanillaComponent;\n"],"mappings":";;;;;;;AAwBA,IAAM,4BAA4B,YAE9B,EACE,IACA,WACA,KACA,OACA,MACA,QACA,SACA,UACA,WACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,YAAY,MAAM;CACxB,MAAM,EAAE,WAAW,uBAAuB;CAE1C,MAAM,EAAE,OAAO,WAAW,SAAS,eAAe,KAAK,MAAM;CAE7D,MAAM,eAAe;EACnB,GAAG;EACH,GAAG;EACH,GAAG,iBAAiB,IAAI;CAC1B;CAEA,MAAM,cAAc,YAAY;EAAE;EAAM;EAAQ;EAAS;EAAU;EAAW;CAAO,CAAC;CAEtF,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GAAG,YAAY,GAAG,aAAa,KAAK,KAAK;EACpD,OAAO;EACP,GAAI;CACL,CAAA;AAEL,CACF;AAEA,0BAA0B,cAAc;AAExC,IAAa,eAAe"}
@@ -52,7 +52,6 @@ var Link = require_stitches_config.styled("a", {
52
52
  } },
53
53
  defaultVariants: { variant: "contrast" }
54
54
  });
55
- //#endregion
56
55
  exports.Link = Link;
57
56
 
58
57
  //# sourceMappingURL=Link.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.cjs","names":[],"sources":["../../../components/Link/Link.tsx"],"sourcesContent":["import { styled } from '../../stitches.config';\nimport { Text } from '../Text';\n\nexport const UnstyledLink = styled('a', {\n color: 'inherit',\n textDecoration: 'inherit',\n fontWeight: 'inherit',\n});\n\nexport const Link = styled('a', {\n alignItems: 'center',\n gap: '$1',\n flexShrink: 0,\n outline: 'none',\n\n textDecoration: 'underline',\n textUnderlineOffset: '3px',\n textDecorationColor: '$slate4',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n lineHeight: 'inherit',\n fontFamily: '$rubik',\n\n '@hover': {\n '&:hover': {\n textDecorationLine: 'underline',\n },\n },\n '&:focus': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineOffset: '2px',\n textDecorationLine: 'none',\n },\n [`& ${Text}`]: {\n color: 'inherit',\n },\n variants: {\n variant: {\n blue: {\n color: '$linkBlue',\n textDecoration: 'none',\n textDecorationColor: '$linkBlueTextDecoration',\n '&:focus': {\n outlineColor: '$linkBlueFocusOutline',\n },\n },\n primary: {\n color: '$linkPrimary',\n textDecorationColor: '$linkPrimaryTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkPrimaryHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkPrimaryFocusOutline',\n },\n },\n subtle: {\n color: '$linkSubtle',\n textDecorationColor: '$linkSubtleTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkSubtleHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkSubtleFocusOutline',\n },\n },\n contrast: {\n color: '$linkContrast',\n textDecorationColor: '$linkContrastTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkContrastHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkContrastFocusOutline',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'contrast',\n },\n});\n"],"mappings":";;AAG4B,wBAAA,OAAO,KAAK;CACtC,OAAO;CACP,gBAAgB;CAChB,YAAY;AACd,CAAC;AAED,IAAa,OAAO,wBAAA,OAAO,KAAK;CAC9B,YAAY;CACZ,KAAK;CACL,YAAY;CACZ,SAAS;CAET,gBAAgB;CAChB,qBAAqB;CACrB,qBAAqB;CACrB,yBAAyB;CACzB,YAAY;CACZ,YAAY;CAEZ,UAAU,EACR,WAAW,EACT,oBAAoB,YACtB,EACF;CACA,WAAW;EACT,cAAc;EACd,cAAc;EACd,eAAe;EACf,oBAAoB;CACtB;EACC,KAAK,aAAA,SAAS,EACb,OAAO,UACT;CACA,UAAU,EACR,SAAS;EACP,MAAM;GACJ,OAAO;GACP,gBAAgB;GAChB,qBAAqB;GACrB,WAAW,EACT,cAAc,wBAChB;EACF;EACA,SAAS;GACP,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,kCACvB,EACF;GACA,WAAW,EACT,cAAc,2BAChB;EACF;EACA,QAAQ;GACN,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,iCACvB,EACF;GACA,WAAW,EACT,cAAc,0BAChB;EACF;EACA,UAAU;GACR,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,mCACvB,EACF;GACA,WAAW,EACT,cAAc,4BAChB;EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,WACX;AACF,CAAC"}
1
+ {"version":3,"file":"Link.cjs","names":["styled","Text"],"sources":["../../../components/Link/Link.tsx"],"sourcesContent":["import { styled } from '../../stitches.config';\nimport { Text } from '../Text';\n\nexport const UnstyledLink = styled('a', {\n color: 'inherit',\n textDecoration: 'inherit',\n fontWeight: 'inherit',\n});\n\nexport const Link = styled('a', {\n alignItems: 'center',\n gap: '$1',\n flexShrink: 0,\n outline: 'none',\n\n textDecoration: 'underline',\n textUnderlineOffset: '3px',\n textDecorationColor: '$slate4',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n lineHeight: 'inherit',\n fontFamily: '$rubik',\n\n '@hover': {\n '&:hover': {\n textDecorationLine: 'underline',\n },\n },\n '&:focus': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineOffset: '2px',\n textDecorationLine: 'none',\n },\n [`& ${Text}`]: {\n color: 'inherit',\n },\n variants: {\n variant: {\n blue: {\n color: '$linkBlue',\n textDecoration: 'none',\n textDecorationColor: '$linkBlueTextDecoration',\n '&:focus': {\n outlineColor: '$linkBlueFocusOutline',\n },\n },\n primary: {\n color: '$linkPrimary',\n textDecorationColor: '$linkPrimaryTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkPrimaryHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkPrimaryFocusOutline',\n },\n },\n subtle: {\n color: '$linkSubtle',\n textDecorationColor: '$linkSubtleTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkSubtleHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkSubtleFocusOutline',\n },\n },\n contrast: {\n color: '$linkContrast',\n textDecorationColor: '$linkContrastTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkContrastHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkContrastFocusOutline',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'contrast',\n },\n});\n"],"mappings":";;AAG4BA,wBAAAA,OAAO,KAAK;CACtC,OAAO;CACP,gBAAgB;CAChB,YAAY;AACd,CAAC;AAED,IAAa,OAAOA,wBAAAA,OAAO,KAAK;CAC9B,YAAY;CACZ,KAAK;CACL,YAAY;CACZ,SAAS;CAET,gBAAgB;CAChB,qBAAqB;CACrB,qBAAqB;CACrB,yBAAyB;CACzB,YAAY;CACZ,YAAY;CAEZ,UAAU,EACR,WAAW,EACT,oBAAoB,YACtB,EACF;CACA,WAAW;EACT,cAAc;EACd,cAAc;EACd,eAAe;EACf,oBAAoB;CACtB;EACC,KAAKC,aAAAA,SAAS,EACb,OAAO,UACT;CACA,UAAU,EACR,SAAS;EACP,MAAM;GACJ,OAAO;GACP,gBAAgB;GAChB,qBAAqB;GACrB,WAAW,EACT,cAAc,wBAChB;EACF;EACA,SAAS;GACP,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,kCACvB,EACF;GACA,WAAW,EACT,cAAc,2BAChB;EACF;EACA,QAAQ;GACN,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,iCACvB,EACF;GACA,WAAW,EACT,cAAc,0BAChB;EACF;EACA,UAAU;GACR,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,mCACvB,EACF;GACA,WAAW,EACT,cAAc,4BAChB;EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,WACX;AACF,CAAC"}
@@ -52,7 +52,6 @@ var Link = styled("a", {
52
52
  } },
53
53
  defaultVariants: { variant: "contrast" }
54
54
  });
55
- //#endregion
56
55
  export { Link };
57
56
 
58
57
  //# sourceMappingURL=Link.js.map
@@ -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/Link/Link.themes.ts
4
+ // components/Link/Link.themes.ts
5
5
  var Theme;
6
6
  (function(_Theme) {
7
7
  _Theme.getLight = (primaryColor) => ({
@@ -41,7 +41,6 @@ var Theme;
41
41
  linkPrimaryFocusOutline: (0, tinycolor2.default)(primaryColor.value).lighten(16).toHslString()
42
42
  });
43
43
  })(Theme || (Theme = {}));
44
- //#endregion
45
44
  Object.defineProperty(exports, "Theme", {
46
45
  enumerable: true,
47
46
  get: function() {
@@ -1 +1 @@
1
- {"version":3,"file":"Link.themes.cjs","names":[],"sources":["../../../components/Link/Link.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n linkSubtle: Property.Color;\n linkBlueTextDecoration: Property.Color;\n linkBlueHoverTextDecoration: Property.Color;\n linkBlueFocusOutline: Property.Color;\n linkContrast: Property.Color;\n linkContrastTextDecoration: Property.Color;\n linkContrastHoverTextDecoration: Property.Color;\n linkContrastFocusOutline: Property.Color;\n linkSubtleTextDecoration: Property.Color;\n linkSubtleHoverTextDecoration: Property.Color;\n linkSubtleFocusOutline: Property.Color;\n linkPrimary: Property.Color;\n linkPrimaryTextDecoration: Property.Color;\n linkPrimaryHoverTextDecoration: Property.Color;\n linkPrimaryFocusOutline: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue7',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue7',\n linkSubtleTextDecoration: '$deepBlue5',\n linkSubtleHoverTextDecoration: '$deepBlue7',\n linkSubtleFocusOutline: '$deepBlue4',\n linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue8',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue6',\n linkSubtleTextDecoration: '$deepBlue4',\n linkSubtleHoverTextDecoration: '$deepBlue5',\n linkSubtleFocusOutline: '$deepBlue3',\n linkPrimary: '$primary',\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString(),\n });\n}\n"],"mappings":";;;;AAIO,IAAA;;CAqBQ,OAAA,YAAqB,kBAAkB;EAClD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,cAAA,GAAA,WAAA,QAAA,CAAuB,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAClE,4BAAA,GAAA,WAAA,QAAA,CAAqC,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAChF,iCAAA,GAAA,WAAA,QAAA,CAA0C,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,0BAAA,GAAA,WAAA,QAAA,CAAmC,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;CAChF;CAEa,OAAA,WAAoB,kBAAkB;EACjD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,aAAa;EACb,4BAAA,GAAA,WAAA,QAAA,CAAqC,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EACjF,iCAAA,GAAA,WAAA,QAAA,CAA0C,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,0BAAA,GAAA,WAAA,QAAA,CAAmC,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;CACjF;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"Link.themes.cjs","names":["tinycolor"],"sources":["../../../components/Link/Link.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n linkSubtle: Property.Color;\n linkBlueTextDecoration: Property.Color;\n linkBlueHoverTextDecoration: Property.Color;\n linkBlueFocusOutline: Property.Color;\n linkContrast: Property.Color;\n linkContrastTextDecoration: Property.Color;\n linkContrastHoverTextDecoration: Property.Color;\n linkContrastFocusOutline: Property.Color;\n linkSubtleTextDecoration: Property.Color;\n linkSubtleHoverTextDecoration: Property.Color;\n linkSubtleFocusOutline: Property.Color;\n linkPrimary: Property.Color;\n linkPrimaryTextDecoration: Property.Color;\n linkPrimaryHoverTextDecoration: Property.Color;\n linkPrimaryFocusOutline: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue7',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue7',\n linkSubtleTextDecoration: '$deepBlue5',\n linkSubtleHoverTextDecoration: '$deepBlue7',\n linkSubtleFocusOutline: '$deepBlue4',\n linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue8',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue6',\n linkSubtleTextDecoration: '$deepBlue4',\n linkSubtleHoverTextDecoration: '$deepBlue5',\n linkSubtleFocusOutline: '$deepBlue3',\n linkPrimary: '$primary',\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString(),\n });\n}\n"],"mappings":";;;;AAIO,IAAU;CAAV,SAAA,QAAA;CAqBQ,OAAA,YAAqB,kBAAkB;EAClD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,cAAA,GAAaA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAClE,4BAAA,GAA2BA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAChF,iCAAA,GAAgCA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,0BAAA,GAAyBA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;CAChF;CAEa,OAAA,WAAoB,kBAAkB;EACjD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,aAAa;EACb,4BAAA,GAA2BA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EACjF,iCAAA,GAAgCA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,0BAAA,GAAyBA,WAAAA,QAAAA,CAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;CACjF;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -1,5 +1,5 @@
1
1
  import tinycolor from "tinycolor2";
2
- //#region components/Link/Link.themes.ts
2
+ // components/Link/Link.themes.ts
3
3
  var Theme;
4
4
  (function(_Theme) {
5
5
  _Theme.getLight = (primaryColor) => ({
@@ -39,7 +39,6 @@ var Theme;
39
39
  linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString()
40
40
  });
41
41
  })(Theme || (Theme = {}));
42
- //#endregion
43
42
  export { Theme };
44
43
 
45
44
  //# sourceMappingURL=Link.themes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.themes.js","names":[],"sources":["../../../components/Link/Link.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n linkSubtle: Property.Color;\n linkBlueTextDecoration: Property.Color;\n linkBlueHoverTextDecoration: Property.Color;\n linkBlueFocusOutline: Property.Color;\n linkContrast: Property.Color;\n linkContrastTextDecoration: Property.Color;\n linkContrastHoverTextDecoration: Property.Color;\n linkContrastFocusOutline: Property.Color;\n linkSubtleTextDecoration: Property.Color;\n linkSubtleHoverTextDecoration: Property.Color;\n linkSubtleFocusOutline: Property.Color;\n linkPrimary: Property.Color;\n linkPrimaryTextDecoration: Property.Color;\n linkPrimaryHoverTextDecoration: Property.Color;\n linkPrimaryFocusOutline: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue7',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue7',\n linkSubtleTextDecoration: '$deepBlue5',\n linkSubtleHoverTextDecoration: '$deepBlue7',\n linkSubtleFocusOutline: '$deepBlue4',\n linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue8',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue6',\n linkSubtleTextDecoration: '$deepBlue4',\n linkSubtleHoverTextDecoration: '$deepBlue5',\n linkSubtleFocusOutline: '$deepBlue3',\n linkPrimary: '$primary',\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString(),\n });\n}\n"],"mappings":";;AAIO,IAAA;;CAqBQ,OAAA,YAAqB,kBAAkB;EAClD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,aAAa,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAClE,2BAA2B,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAChF,gCAAgC,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,yBAAyB,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;CAChF;CAEa,OAAA,WAAoB,kBAAkB;EACjD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,aAAa;EACb,2BAA2B,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EACjF,gCAAgC,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,yBAAyB,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;CACjF;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"Link.themes.js","names":[],"sources":["../../../components/Link/Link.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n linkSubtle: Property.Color;\n linkBlueTextDecoration: Property.Color;\n linkBlueHoverTextDecoration: Property.Color;\n linkBlueFocusOutline: Property.Color;\n linkContrast: Property.Color;\n linkContrastTextDecoration: Property.Color;\n linkContrastHoverTextDecoration: Property.Color;\n linkContrastFocusOutline: Property.Color;\n linkSubtleTextDecoration: Property.Color;\n linkSubtleHoverTextDecoration: Property.Color;\n linkSubtleFocusOutline: Property.Color;\n linkPrimary: Property.Color;\n linkPrimaryTextDecoration: Property.Color;\n linkPrimaryHoverTextDecoration: Property.Color;\n linkPrimaryFocusOutline: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue7',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue7',\n linkSubtleTextDecoration: '$deepBlue5',\n linkSubtleHoverTextDecoration: '$deepBlue7',\n linkSubtleFocusOutline: '$deepBlue4',\n linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue8',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue6',\n linkSubtleTextDecoration: '$deepBlue4',\n linkSubtleHoverTextDecoration: '$deepBlue5',\n linkSubtleFocusOutline: '$deepBlue3',\n linkPrimary: '$primary',\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString(),\n });\n}\n"],"mappings":";;AAIO,IAAU;CAAV,SAAA,QAAA;CAqBQ,OAAA,YAAqB,kBAAkB;EAClD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,aAAa,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAClE,2BAA2B,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EAChF,gCAAgC,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,yBAAyB,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;CAChF;CAEa,OAAA,WAAoB,kBAAkB;EACjD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,aAAa;EACb,2BAA2B,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;EACjF,gCAAgC,UAAU,aAAa,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY;EACrF,yBAAyB,UAAU,aAAa,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,YAAY;CACjF;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -6,7 +6,7 @@ const require_Button = require("../Button/Button.cjs");
6
6
  let react = require("react");
7
7
  react = require_runtime.__toESM(react, 1);
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
- //#region components/List/List.tsx
9
+ // components/List/List.tsx
10
10
  var LIST_ITEM_CONTENT_STYLES = {
11
11
  bc: "transparent",
12
12
  c: "inherit",
@@ -159,7 +159,6 @@ var Li = react.default.forwardRef(({ children, controls, align, justify, directi
159
159
  ]
160
160
  });
161
161
  });
162
- //#endregion
163
162
  exports.Li = Li;
164
163
  exports.Ol = Ol;
165
164
  exports.Ul = Ul;
@@ -1 +1 @@
1
- {"version":3,"file":"List.cjs","names":[],"sources":["../../../components/List/List.tsx"],"sourcesContent":["import React, { ComponentProps, createContext, ReactNode, useContext, useMemo } from 'react';\n\nimport { styled, VariantProps } from '../../stitches.config';\nimport { BUTTON_BASE_STYLES } from '../Button';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst LIST_ITEM_CONTENT_STYLES = {\n bc: 'transparent',\n c: 'inherit',\n borderRadius: 'inherit',\n fontFamily: '$rubik',\n fontSize: '$3',\n fontVariantNumeric: 'tabular-nums',\n};\n\nconst StyledSpan = styled('span', Flex, {\n // APPLY BUTTON STYLES\n ...LIST_ITEM_CONTENT_STYLES,\n // CUSTOM\n p: '$1',\n gap: '$1',\n});\n\nconst StyledListItemButton = styled('button', Flex, {\n ...BUTTON_BASE_STYLES,\n ...LIST_ITEM_CONTENT_STYLES,\n outline: 'none',\n\n // CUSTOM\n flexGrow: 1,\n width: '100%',\n p: '$2',\n position: 'relative',\n '&::before': {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&:focus, &:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$listItemFocusBorder',\n },\n\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n '&::before': {\n backgroundColor: '$listItemHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n '&:active': {\n '&::before': {\n backgroundColor: '$listItemActiveBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n});\n\nconst StyledLi = styled('li', {\n m: '$2',\n outline: 'none',\n position: 'relative',\n '&:focus-within': {\n boxShadow: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: '0',\n },\n});\n\nconst StyledUl = styled('ul', {\n m: '0 0 0 8px',\n p: 0,\n color: '$textDefault',\n\n '&:has(> li > span > input[type=\"checkbox\"])': {\n m: 0,\n listStyle: 'none',\n '> li': {\n marginLeft: 0,\n '> span': {\n input: {\n margin: '0 3px 0 0',\n },\n },\n },\n },\n // Restore left-margin indentation when a nested checkbox list is inside a li\n 'li > &:has(> li > span > input[type=\"checkbox\"])': {\n marginLeft: '$2',\n '> li': {\n marginLeft: '$2',\n },\n },\n});\n\nconst StyledOl = styled('ol', {\n m: '0 0 0 8px',\n p: 0,\n color: '$textDefault',\n\n '> li::marker': {\n fontSize: '$3',\n fontFamily: '$rubik',\n },\n});\n\nconst ListContext = createContext({\n interactive: false,\n});\n\nexport interface ListProps extends ComponentProps<typeof StyledUl>, VariantProps<typeof StyledUl> {\n interactive?: boolean;\n}\nexport const Ul = React.forwardRef<React.ElementRef<typeof StyledUl>, ListProps>(\n ({ interactive, ...props }, forwardedRef) => {\n const parentContext = useContext(ListContext);\n const contextValue = useMemo(\n () => ({\n interactive: interactive !== undefined ? !!interactive : parentContext.interactive,\n }),\n [interactive, parentContext.interactive],\n );\n\n return (\n <ListContext.Provider value={contextValue}>\n <StyledUl role=\"list\" ref={forwardedRef} {...props} />\n </ListContext.Provider>\n );\n },\n);\n\nexport interface OrderedListProps\n extends ComponentProps<typeof StyledOl>,\n VariantProps<typeof StyledOl> {\n interactive?: boolean;\n}\n\nexport const Ol = React.forwardRef<React.ElementRef<typeof StyledOl>, OrderedListProps>(\n ({ interactive, ...props }, forwardedRef) => {\n const parentContext = useContext(ListContext);\n const contextValue = useMemo(\n () => ({\n interactive: interactive !== undefined ? !!interactive : parentContext.interactive,\n }),\n [interactive, parentContext.interactive],\n );\n\n return (\n <ListContext.Provider value={contextValue}>\n <StyledOl role=\"list\" ref={forwardedRef} {...props} />\n </ListContext.Provider>\n );\n },\n);\n\nconst ControlsWrapper = styled('div', {\n position: 'absolute',\n top: 0,\n right: '$2',\n zIndex: 1,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n overflow: 'visible',\n});\n\nexport interface ListItemProps\n extends ComponentProps<typeof StyledLi>,\n VariantProps<typeof StyledLi>,\n VariantProps<typeof Flex> {\n controls?: ReactNode;\n}\nexport const Li = React.forwardRef<React.ElementRef<typeof StyledLi>, ListItemProps>(\n ({ children, controls, align, justify, direction, gap, wrap, ...props }, forwardedRef) => {\n const { interactive } = useContext(ListContext);\n\n const childArray = React.Children.toArray(children);\n const nestedLists = childArray.filter(\n (child) => React.isValidElement(child) && (child.type === Ul || child.type === Ol),\n );\n const inlineChildren = childArray.filter(\n (child) => !(React.isValidElement(child) && (child.type === Ul || child.type === Ol)),\n );\n\n return (\n <StyledLi {...props} ref={forwardedRef}>\n {interactive ? (\n <StyledListItemButton\n align={align}\n justify={justify}\n direction={direction}\n gap={gap}\n wrap={wrap}\n >\n {inlineChildren}\n </StyledListItemButton>\n ) : (\n <StyledSpan\n align={align || 'center'}\n justify={justify}\n direction={direction}\n gap={gap}\n wrap={wrap}\n css={{ flexGrow: 1 }}\n >\n {inlineChildren}\n </StyledSpan>\n )}\n {nestedLists}\n {!!controls && <ControlsWrapper>{controls}</ControlsWrapper>}\n </StyledLi>\n );\n },\n);\n"],"mappings":";;;;;;;;;AAOA,IAAM,2BAA2B;CAC/B,IAAI;CACJ,GAAG;CACH,cAAc;CACd,YAAY;CACZ,UAAU;CACV,oBAAoB;AACtB;AAEA,IAAM,aAAa,wBAAA,OAAO,QAAQ,aAAA,MAAM;CAEtC,GAAG;CAEH,GAAG;CACH,KAAK;AACP,CAAC;AAED,IAAM,uBAAuB,wBAAA,OAAO,UAAU,aAAA,MAAM;CAClD,GAAG,eAAA;CACH,GAAG;CACH,SAAS;CAGT,UAAU;CACV,OAAO;CACP,GAAG;CACH,UAAU;CACV,aAAa;EACX,cAAc;EACd,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,YAAY;EACV,cAAc;EACd,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,4BAA4B,EAC1B,WAA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IACE;IACN;IACC;cAEL;GACmB,CAAA,IAEtB,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;IACE,OAAO,SAAS;IACP;IACE;IACN;IACC;IACN,KAAK,EAAE,UAAU,EAAE;cAElB;GACS,CAAA;GAEb;GACA,CAAC,CAAC,YAAY,iBAAA,GAAA,kBAAA,IAAA,CAAC,iBAAD,EAAA,UAAkB,SAA0B,CAAA;EACnD;;AAEd,CACF"}
1
+ {"version":3,"file":"List.cjs","names":["styled","Flex","BUTTON_BASE_STYLES","elevationVariants","createContext","React","useContext","useMemo"],"sources":["../../../components/List/List.tsx"],"sourcesContent":["import React, { ComponentProps, createContext, ReactNode, useContext, useMemo } from 'react';\n\nimport { styled, VariantProps } from '../../stitches.config';\nimport { BUTTON_BASE_STYLES } from '../Button';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst LIST_ITEM_CONTENT_STYLES = {\n bc: 'transparent',\n c: 'inherit',\n borderRadius: 'inherit',\n fontFamily: '$rubik',\n fontSize: '$3',\n fontVariantNumeric: 'tabular-nums',\n};\n\nconst StyledSpan = styled('span', Flex, {\n // APPLY BUTTON STYLES\n ...LIST_ITEM_CONTENT_STYLES,\n // CUSTOM\n p: '$1',\n gap: '$1',\n});\n\nconst StyledListItemButton = styled('button', Flex, {\n ...BUTTON_BASE_STYLES,\n ...LIST_ITEM_CONTENT_STYLES,\n outline: 'none',\n\n // CUSTOM\n flexGrow: 1,\n width: '100%',\n p: '$2',\n position: 'relative',\n '&::before': {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&:focus, &:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$listItemFocusBorder',\n },\n\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n '&::before': {\n backgroundColor: '$listItemHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n '&:active': {\n '&::before': {\n backgroundColor: '$listItemActiveBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n});\n\nconst StyledLi = styled('li', {\n m: '$2',\n outline: 'none',\n position: 'relative',\n '&:focus-within': {\n boxShadow: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: '0',\n },\n});\n\nconst StyledUl = styled('ul', {\n m: '0 0 0 8px',\n p: 0,\n color: '$textDefault',\n\n '&:has(> li > span > input[type=\"checkbox\"])': {\n m: 0,\n listStyle: 'none',\n '> li': {\n marginLeft: 0,\n '> span': {\n input: {\n margin: '0 3px 0 0',\n },\n },\n },\n },\n // Restore left-margin indentation when a nested checkbox list is inside a li\n 'li > &:has(> li > span > input[type=\"checkbox\"])': {\n marginLeft: '$2',\n '> li': {\n marginLeft: '$2',\n },\n },\n});\n\nconst StyledOl = styled('ol', {\n m: '0 0 0 8px',\n p: 0,\n color: '$textDefault',\n\n '> li::marker': {\n fontSize: '$3',\n fontFamily: '$rubik',\n },\n});\n\nconst ListContext = createContext({\n interactive: false,\n});\n\nexport interface ListProps extends ComponentProps<typeof StyledUl>, VariantProps<typeof StyledUl> {\n interactive?: boolean;\n}\nexport const Ul = React.forwardRef<React.ElementRef<typeof StyledUl>, ListProps>(\n ({ interactive, ...props }, forwardedRef) => {\n const parentContext = useContext(ListContext);\n const contextValue = useMemo(\n () => ({\n interactive: interactive !== undefined ? !!interactive : parentContext.interactive,\n }),\n [interactive, parentContext.interactive],\n );\n\n return (\n <ListContext.Provider value={contextValue}>\n <StyledUl role=\"list\" ref={forwardedRef} {...props} />\n </ListContext.Provider>\n );\n },\n);\n\nexport interface OrderedListProps\n extends ComponentProps<typeof StyledOl>, VariantProps<typeof StyledOl> {\n interactive?: boolean;\n}\n\nexport const Ol = React.forwardRef<React.ElementRef<typeof StyledOl>, OrderedListProps>(\n ({ interactive, ...props }, forwardedRef) => {\n const parentContext = useContext(ListContext);\n const contextValue = useMemo(\n () => ({\n interactive: interactive !== undefined ? !!interactive : parentContext.interactive,\n }),\n [interactive, parentContext.interactive],\n );\n\n return (\n <ListContext.Provider value={contextValue}>\n <StyledOl role=\"list\" ref={forwardedRef} {...props} />\n </ListContext.Provider>\n );\n },\n);\n\nconst ControlsWrapper = styled('div', {\n position: 'absolute',\n top: 0,\n right: '$2',\n zIndex: 1,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n overflow: 'visible',\n});\n\nexport interface ListItemProps\n extends\n ComponentProps<typeof StyledLi>,\n VariantProps<typeof StyledLi>,\n VariantProps<typeof Flex> {\n controls?: ReactNode;\n}\nexport const Li = React.forwardRef<React.ElementRef<typeof StyledLi>, ListItemProps>(\n ({ children, controls, align, justify, direction, gap, wrap, ...props }, forwardedRef) => {\n const { interactive } = useContext(ListContext);\n\n // eslint-disable-next-line @eslint-react/no-children-to-array\n const childArray = React.Children.toArray(children);\n const nestedLists = childArray.filter(\n (child) => React.isValidElement(child) && (child.type === Ul || child.type === Ol),\n );\n const inlineChildren = childArray.filter(\n (child) => !(React.isValidElement(child) && (child.type === Ul || child.type === Ol)),\n );\n\n return (\n <StyledLi {...props} ref={forwardedRef}>\n {interactive ? (\n <StyledListItemButton\n align={align}\n justify={justify}\n direction={direction}\n gap={gap}\n wrap={wrap}\n >\n {inlineChildren}\n </StyledListItemButton>\n ) : (\n <StyledSpan\n align={align || 'center'}\n justify={justify}\n direction={direction}\n gap={gap}\n wrap={wrap}\n css={{ flexGrow: 1 }}\n >\n {inlineChildren}\n </StyledSpan>\n )}\n {nestedLists}\n {!!controls && <ControlsWrapper>{controls}</ControlsWrapper>}\n </StyledLi>\n );\n },\n);\n"],"mappings":";;;;;;;;;AAOA,IAAM,2BAA2B;CAC/B,IAAI;CACJ,GAAG;CACH,cAAc;CACd,YAAY;CACZ,UAAU;CACV,oBAAoB;AACtB;AAEA,IAAM,aA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AAA,GAAgBC,MAAAA,WAAAA,CAAW,WAAW;CAG9C,MAAM,aAAaD,MAAAA,QAAM,SAAS,QAAQ,QAAQ;CAClD,MAAM,cAAc,WAAW,QAC5B,UAAUA,MAAAA,QAAM,eAAe,KAAK,MAAM,MAAM,SAAS,MAAM,MAAM,SAAS,GACjF;CACA,MAAM,iBAAiB,WAAW,QAC/B,UAAU,EAAEA,MAAAA,QAAM,eAAe,KAAK,MAAM,MAAM,SAAS,MAAM,MAAM,SAAS,IACnF;CAEA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,UAAD;EAAU,GAAI;EAAO,KAAK;EAA1B,UAAA;GACG,cACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,sBAAD;IACS;IACE;IACE;IACN;IACC;IAEL,UAAA;GACmB,CAAA,IAEtB,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;IACE,OAAO,SAAS;IACP;IACE;IACN;IACC;IACN,KAAK,EAAE,UAAU,EAAE;IAElB,UAAA;GACS,CAAA;GAEb;GACA,CAAC,CAAC,YAAY,iBAAA,GAAA,kBAAA,IAAA,CAAC,iBAAD,EAAA,UAAkB,SAA0B,CAAA;EACnD;;AAEd,CACF"}
@@ -4,7 +4,7 @@ import { Flex } from "../Flex/Flex.js";
4
4
  import { BUTTON_BASE_STYLES } from "../Button/Button.js";
5
5
  import React, { createContext, useContext, useMemo } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
- //#region components/List/List.tsx
7
+ // components/List/List.tsx
8
8
  var LIST_ITEM_CONTENT_STYLES = {
9
9
  bc: "transparent",
10
10
  c: "inherit",
@@ -157,7 +157,6 @@ var Li = React.forwardRef(({ children, controls, align, justify, direction, gap,
157
157
  ]
158
158
  });
159
159
  });
160
- //#endregion
161
160
  export { Li, Ol, Ul };
162
161
 
163
162
  //# sourceMappingURL=List.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","names":[],"sources":["../../../components/List/List.tsx"],"sourcesContent":["import React, { ComponentProps, createContext, ReactNode, useContext, useMemo } from 'react';\n\nimport { styled, VariantProps } from '../../stitches.config';\nimport { BUTTON_BASE_STYLES } from '../Button';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst LIST_ITEM_CONTENT_STYLES = {\n bc: 'transparent',\n c: 'inherit',\n borderRadius: 'inherit',\n fontFamily: '$rubik',\n fontSize: '$3',\n fontVariantNumeric: 'tabular-nums',\n};\n\nconst StyledSpan = styled('span', Flex, {\n // APPLY BUTTON STYLES\n ...LIST_ITEM_CONTENT_STYLES,\n // CUSTOM\n p: '$1',\n gap: '$1',\n});\n\nconst StyledListItemButton = styled('button', Flex, {\n ...BUTTON_BASE_STYLES,\n ...LIST_ITEM_CONTENT_STYLES,\n outline: 'none',\n\n // CUSTOM\n flexGrow: 1,\n width: '100%',\n p: '$2',\n position: 'relative',\n '&::before': {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&:focus, &:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$listItemFocusBorder',\n },\n\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n '&::before': {\n backgroundColor: '$listItemHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n '&:active': {\n '&::before': {\n backgroundColor: '$listItemActiveBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n});\n\nconst StyledLi = styled('li', {\n m: '$2',\n outline: 'none',\n position: 'relative',\n '&:focus-within': {\n boxShadow: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: '0',\n },\n});\n\nconst StyledUl = styled('ul', {\n m: '0 0 0 8px',\n p: 0,\n color: '$textDefault',\n\n '&:has(> li > span > input[type=\"checkbox\"])': {\n m: 0,\n listStyle: 'none',\n '> li': {\n marginLeft: 0,\n '> span': {\n input: {\n margin: '0 3px 0 0',\n },\n },\n },\n },\n // Restore left-margin indentation when a nested checkbox list is inside a li\n 'li > &:has(> li > span > input[type=\"checkbox\"])': {\n marginLeft: '$2',\n '> li': {\n marginLeft: '$2',\n },\n },\n});\n\nconst StyledOl = styled('ol', {\n m: '0 0 0 8px',\n p: 0,\n color: '$textDefault',\n\n '> li::marker': {\n fontSize: '$3',\n fontFamily: '$rubik',\n },\n});\n\nconst ListContext = createContext({\n interactive: false,\n});\n\nexport interface ListProps extends ComponentProps<typeof StyledUl>, VariantProps<typeof StyledUl> {\n interactive?: boolean;\n}\nexport const Ul = React.forwardRef<React.ElementRef<typeof StyledUl>, ListProps>(\n ({ interactive, ...props }, forwardedRef) => {\n const parentContext = useContext(ListContext);\n const contextValue = useMemo(\n () => ({\n interactive: interactive !== undefined ? !!interactive : parentContext.interactive,\n }),\n [interactive, parentContext.interactive],\n );\n\n return (\n <ListContext.Provider value={contextValue}>\n <StyledUl role=\"list\" ref={forwardedRef} {...props} />\n </ListContext.Provider>\n );\n },\n);\n\nexport interface OrderedListProps\n extends ComponentProps<typeof StyledOl>,\n VariantProps<typeof StyledOl> {\n interactive?: boolean;\n}\n\nexport const Ol = React.forwardRef<React.ElementRef<typeof StyledOl>, OrderedListProps>(\n ({ interactive, ...props }, forwardedRef) => {\n const parentContext = useContext(ListContext);\n const contextValue = useMemo(\n () => ({\n interactive: interactive !== undefined ? !!interactive : parentContext.interactive,\n }),\n [interactive, parentContext.interactive],\n );\n\n return (\n <ListContext.Provider value={contextValue}>\n <StyledOl role=\"list\" ref={forwardedRef} {...props} />\n </ListContext.Provider>\n );\n },\n);\n\nconst ControlsWrapper = styled('div', {\n position: 'absolute',\n top: 0,\n right: '$2',\n zIndex: 1,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n overflow: 'visible',\n});\n\nexport interface ListItemProps\n extends ComponentProps<typeof StyledLi>,\n VariantProps<typeof StyledLi>,\n VariantProps<typeof Flex> {\n controls?: ReactNode;\n}\nexport const Li = React.forwardRef<React.ElementRef<typeof StyledLi>, ListItemProps>(\n ({ children, controls, align, justify, direction, gap, wrap, ...props }, forwardedRef) => {\n const { interactive } = useContext(ListContext);\n\n const childArray = React.Children.toArray(children);\n const nestedLists = childArray.filter(\n (child) => React.isValidElement(child) && (child.type === Ul || child.type === Ol),\n );\n const inlineChildren = childArray.filter(\n (child) => !(React.isValidElement(child) && (child.type === Ul || child.type === Ol)),\n );\n\n return (\n <StyledLi {...props} ref={forwardedRef}>\n {interactive ? (\n <StyledListItemButton\n align={align}\n justify={justify}\n direction={direction}\n gap={gap}\n wrap={wrap}\n >\n {inlineChildren}\n </StyledListItemButton>\n ) : (\n <StyledSpan\n align={align || 'center'}\n justify={justify}\n direction={direction}\n gap={gap}\n wrap={wrap}\n css={{ flexGrow: 1 }}\n >\n {inlineChildren}\n </StyledSpan>\n )}\n {nestedLists}\n {!!controls && <ControlsWrapper>{controls}</ControlsWrapper>}\n </StyledLi>\n );\n },\n);\n"],"mappings":";;;;;;;AAOA,IAAM,2BAA2B;CAC/B,IAAI;CACJ,GAAG;CACH,cAAc;CACd,YAAY;CACZ,UAAU;CACV,oBAAoB;AACtB;AAEA,IAAM,aAAa,OAAO,QAAQ,MAAM;CAEtC,GAAG;CAEH,GAAG;CACH,KAAK;AACP,CAAC;AAED,IAAM,uBAAuB,OAAO,UAAU,MAAM;CAClD,GAAG;CACH,GAAG;CACH,SAAS;CAGT,UAAU;CACV,OAAO;CACP,GAAG;CACH,UAAU;CACV,aAAa;EACX,cAAc;EACd,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,YAAY;EACV,cAAc;EACd,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,4BAA4B,EAC1B,WAAW,8CACb;CAEA,UAAU,EACR,WAAW;EACT,QAAQ;EACR,aAAa,EACX,iBAAiB,mBACnB;EACA,YAAY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cAAc,cAAc,YACzE,IACA,CAAC,aAAa,cAAc,WAAW,CACzC;CAEA,OACE,oBAAC,YAAY,UAAb;EAAsB,OAAO;YAC3B,oBAAC,UAAD;GAAU,MAAK;GAAO,KAAK;GAAc,GAAI;EAAQ,CAAA;CACjC,CAAA;AAE1B,CACF;AAEA,IAAM,kBAAkB,OAAO,OAAO;CACpC,UAAU;CACV,KAAK;CACL,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,UAAU;AACZ,CAAC;AAQD,IAAa,KAAK,MAAM,YACrB,EAAE,UAAU,UAAU,OAAO,SAAS,WAAW,KAAK,MAAM,GAAG,SAAS,iBAAiB;CACxF,MAAM,EAAE,gBAAgB,WAAW,WAAW;CAE9C,MAAM,aAAa,MAAM,SAAS,QAAQ,QAAQ;CAClD,MAAM,cAAc,WAAW,QAC5B,UAAU,MAAM,eAAe,KAAK,MAAM,MAAM,SAAS,MAAM,MAAM,SAAS,GACjF;CACA,MAAM,iBAAiB,WAAW,QAC/B,UAAU,EAAE,MAAM,eAAe,KAAK,MAAM,MAAM,SAAS,MAAM,MAAM,SAAS,IACnF;CAEA,OACE,qBAAC,UAAD;EAAU,GAAI;EAAO,KAAK;YAA1B;GACG,cACC,oBAAC,sBAAD;IACS;IACE;IACE;IACN;IACC;cAEL;GACmB,CAAA,IAEtB,oBAAC,YAAD;IACE,OAAO,SAAS;IACP;IACE;IACN;IACC;IACN,KAAK,EAAE,UAAU,EAAE;cAElB;GACS,CAAA;GAEb;GACA,CAAC,CAAC,YAAY,oBAAC,iBAAD,EAAA,UAAkB,SAA0B,CAAA;EACnD;;AAEd,CACF"}
1
+ {"version":3,"file":"List.js","names":[],"sources":["../../../components/List/List.tsx"],"sourcesContent":["import React, { ComponentProps, createContext, ReactNode, useContext, useMemo } from 'react';\n\nimport { styled, VariantProps } from '../../stitches.config';\nimport { BUTTON_BASE_STYLES } from '../Button';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst LIST_ITEM_CONTENT_STYLES = {\n bc: 'transparent',\n c: 'inherit',\n borderRadius: 'inherit',\n fontFamily: '$rubik',\n fontSize: '$3',\n fontVariantNumeric: 'tabular-nums',\n};\n\nconst StyledSpan = styled('span', Flex, {\n // APPLY BUTTON STYLES\n ...LIST_ITEM_CONTENT_STYLES,\n // CUSTOM\n p: '$1',\n gap: '$1',\n});\n\nconst StyledListItemButton = styled('button', Flex, {\n ...BUTTON_BASE_STYLES,\n ...LIST_ITEM_CONTENT_STYLES,\n outline: 'none',\n\n // CUSTOM\n flexGrow: 1,\n width: '100%',\n p: '$2',\n position: 'relative',\n '&::before': {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&::after': {\n borderRadius: 'inherit',\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n inset: 0,\n },\n '&:focus, &:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$listItemFocusBorder',\n },\n\n '@hover': {\n '&:hover': {\n cursor: 'pointer',\n '&::before': {\n backgroundColor: '$listItemHoverBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n },\n '&:active': {\n '&::before': {\n backgroundColor: '$listItemActiveBg',\n },\n '&::after': {\n backgroundColor: '$primary',\n opacity: 0.05,\n },\n },\n});\n\nconst StyledLi = styled('li', {\n m: '$2',\n outline: 'none',\n position: 'relative',\n '&:focus-within': {\n boxShadow: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: '0',\n },\n});\n\nconst StyledUl = styled('ul', {\n m: '0 0 0 8px',\n p: 0,\n color: '$textDefault',\n\n '&:has(> li > span > input[type=\"checkbox\"])': {\n m: 0,\n listStyle: 'none',\n '> li': {\n marginLeft: 0,\n '> span': {\n input: {\n margin: '0 3px 0 0',\n },\n },\n },\n },\n // Restore left-margin indentation when a nested checkbox list is inside a li\n 'li > &:has(> li > span > input[type=\"checkbox\"])': {\n marginLeft: '$2',\n '> li': {\n marginLeft: '$2',\n },\n },\n});\n\nconst StyledOl = styled('ol', {\n m: '0 0 0 8px',\n p: 0,\n color: '$textDefault',\n\n '> li::marker': {\n fontSize: '$3',\n fontFamily: '$rubik',\n },\n});\n\nconst ListContext = createContext({\n interactive: false,\n});\n\nexport interface ListProps extends ComponentProps<typeof StyledUl>, VariantProps<typeof StyledUl> {\n interactive?: boolean;\n}\nexport const Ul = React.forwardRef<React.ElementRef<typeof StyledUl>, ListProps>(\n ({ interactive, ...props }, forwardedRef) => {\n const parentContext = useContext(ListContext);\n const contextValue = useMemo(\n () => ({\n interactive: interactive !== undefined ? !!interactive : parentContext.interactive,\n }),\n [interactive, parentContext.interactive],\n );\n\n return (\n <ListContext.Provider value={contextValue}>\n <StyledUl role=\"list\" ref={forwardedRef} {...props} />\n </ListContext.Provider>\n );\n },\n);\n\nexport interface OrderedListProps\n extends ComponentProps<typeof StyledOl>, VariantProps<typeof StyledOl> {\n interactive?: boolean;\n}\n\nexport const Ol = React.forwardRef<React.ElementRef<typeof StyledOl>, OrderedListProps>(\n ({ interactive, ...props }, forwardedRef) => {\n const parentContext = useContext(ListContext);\n const contextValue = useMemo(\n () => ({\n interactive: interactive !== undefined ? !!interactive : parentContext.interactive,\n }),\n [interactive, parentContext.interactive],\n );\n\n return (\n <ListContext.Provider value={contextValue}>\n <StyledOl role=\"list\" ref={forwardedRef} {...props} />\n </ListContext.Provider>\n );\n },\n);\n\nconst ControlsWrapper = styled('div', {\n position: 'absolute',\n top: 0,\n right: '$2',\n zIndex: 1,\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n overflow: 'visible',\n});\n\nexport interface ListItemProps\n extends\n ComponentProps<typeof StyledLi>,\n VariantProps<typeof StyledLi>,\n VariantProps<typeof Flex> {\n controls?: ReactNode;\n}\nexport const Li = React.forwardRef<React.ElementRef<typeof StyledLi>, ListItemProps>(\n ({ children, controls, align, justify, direction, gap, wrap, ...props }, forwardedRef) => {\n const { interactive } = useContext(ListContext);\n\n // eslint-disable-next-line @eslint-react/no-children-to-array\n const childArray = React.Children.toArray(children);\n const nestedLists = childArray.filter(\n (child) => React.isValidElement(child) && (child.type === Ul || child.type === Ol),\n );\n const inlineChildren = childArray.filter(\n (child) => !(React.isValidElement(child) && (child.type === Ul || child.type === Ol)),\n );\n\n return (\n <StyledLi {...props} ref={forwardedRef}>\n {interactive ? (\n <StyledListItemButton\n align={align}\n justify={justify}\n direction={direction}\n gap={gap}\n wrap={wrap}\n >\n {inlineChildren}\n </StyledListItemButton>\n ) : (\n <StyledSpan\n align={align || 'center'}\n justify={justify}\n direction={direction}\n gap={gap}\n wrap={wrap}\n css={{ flexGrow: 1 }}\n >\n {inlineChildren}\n </StyledSpan>\n )}\n {nestedLists}\n {!!controls && <ControlsWrapper>{controls}</ControlsWrapper>}\n </StyledLi>\n );\n },\n);\n"],"mappings":";;;;;;;AAOA,IAAM,2BAA2B;CAC/B,IAAI;CACJ,GAAG;CACH,cAAc;CACd,YAAY;CACZ,UAAU;CACV,oBAAoB;AACtB;AAEA,IAAM,aAAa,OAAO,QAAQ,MAAM;CAEtC,GAAG;CAEH,GAAG;CACH,KAAK;AACP,CAAC;AAED,IAAM,uBAAuB,OAAO,UAAU,MAAM;CAClD,GAAG;CACH,GAAG;CACH,SAAS;CAGT,UAAU;CACV,OAAO;CACP,GAAG;CACH,UAAU;CACV,aAAa;EACX,cAAc;EACd,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,YAAY;EACV,cAAc;EACd,WAAW;EACX,SAAS;EACT,UAAU;EACV,OAAO;CACT;CACA,4BAA4B,EAC1B,WAAW,8CACb;CAEA,UAAU,EACR,WAAW;EACT,QAAQ;EACR,aAAa,EACX,iBAAiB,mBACnB;EACA,YAAY;GACV,iBAAiB;GACjB,SAAS;EACX;CACF,EACF;CACA,YAAY;EACV,aAAa,EACX,iBAAiB,oBACnB;EACA,YAAY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sB,OAAO;EAC3B,UAAA,oBAAC,UAAD;GAAU,MAAK;GAAO,KAAK;GAAc,GAAI;EAAQ,CAAA;CACjC,CAAA;AAE1B,CACF;AAEA,IAAM,kBAAkB,OAAO,OAAO;CACpC,UAAU;CACV,KAAK;CACL,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,YAAY;CACZ,gBAAgB;CAChB,UAAU;AACZ,CAAC;AASD,IAAa,KAAK,MAAM,YACrB,EAAE,UAAU,UAAU,OAAO,SAAS,WAAW,KAAK,MAAM,GAAG,SAAS,iBAAiB;CACxF,MAAM,EAAE,gBAAgB,WAAW,WAAW;CAG9C,MAAM,aAAa,MAAM,SAAS,QAAQ,QAAQ;CAClD,MAAM,cAAc,WAAW,QAC5B,UAAU,MAAM,eAAe,KAAK,MAAM,MAAM,SAAS,MAAM,MAAM,SAAS,GACjF;CACA,MAAM,iBAAiB,WAAW,QAC/B,UAAU,EAAE,MAAM,eAAe,KAAK,MAAM,MAAM,SAAS,MAAM,MAAM,SAAS,IACnF;CAEA,OACE,qBAAC,UAAD;EAAU,GAAI;EAAO,KAAK;EAA1B,UAAA;GACG,cACC,oBAAC,sBAAD;IACS;IACE;IACE;IACN;IACC;IAEL,UAAA;GACmB,CAAA,IAEtB,oBAAC,YAAD;IACE,OAAO,SAAS;IACP;IACE;IACN;IACC;IACN,KAAK,EAAE,UAAU,EAAE;IAElB,UAAA;GACS,CAAA;GAEb;GACA,CAAC,CAAC,YAAY,oBAAC,iBAAD,EAAA,UAAkB,SAA0B,CAAA;EACnD;;AAEd,CACF"}
@@ -1,4 +1,4 @@
1
- //#region components/List/List.themes.ts
1
+ // components/List/List.themes.ts
2
2
  var Theme;
3
3
  (function(_Theme) {
4
4
  _Theme.getLight = (primaryColor) => ({
@@ -12,7 +12,6 @@ var Theme;
12
12
  listItemFocusBorder: primaryColor.helpers.pickScale(11)
13
13
  });
14
14
  })(Theme || (Theme = {}));
15
- //#endregion
16
15
  Object.defineProperty(exports, "Theme", {
17
16
  enumerable: true,
18
17
  get: function() {
@@ -1 +1 @@
1
- {"version":3,"file":"List.themes.cjs","names":[],"sources":["../../../components/List/List.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n export type Colors = {\n listItemHoverBg: Property.Color;\n listItemActiveBg: Property.Color;\n listItemFocusBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n listItemHoverBg: '$whiteA9',\n listItemActiveBg: '$whiteA8',\n listItemFocusBorder: primaryColor.helpers.pickScale(8),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n listItemHoverBg: '$whiteA4',\n listItemActiveBg: '$whiteA3',\n listItemFocusBorder: primaryColor.helpers.pickScale(11),\n });\n}\n"],"mappings":";AAIO,IAAA;;CASQ,OAAA,YAAqB,kBAAkB;EAClD,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB,aAAa,QAAQ,UAAU,CAAC;CACvD;CAEa,OAAA,WAAoB,kBAAkB;EACjD,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB,aAAa,QAAQ,UAAU,EAAE;CACxD;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"List.themes.cjs","names":[],"sources":["../../../components/List/List.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n export type Colors = {\n listItemHoverBg: Property.Color;\n listItemActiveBg: Property.Color;\n listItemFocusBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n listItemHoverBg: '$whiteA9',\n listItemActiveBg: '$whiteA8',\n listItemFocusBorder: primaryColor.helpers.pickScale(8),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n listItemHoverBg: '$whiteA4',\n listItemActiveBg: '$whiteA3',\n listItemFocusBorder: primaryColor.helpers.pickScale(11),\n });\n}\n"],"mappings":";AAIO,IAAU;CAAV,SAAA,QAAA;CASQ,OAAA,YAAqB,kBAAkB;EAClD,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB,aAAa,QAAQ,UAAU,CAAC;CACvD;CAEa,OAAA,WAAoB,kBAAkB;EACjD,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB,aAAa,QAAQ,UAAU,EAAE;CACxD;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -1,4 +1,4 @@
1
- //#region components/List/List.themes.ts
1
+ // components/List/List.themes.ts
2
2
  var Theme;
3
3
  (function(_Theme) {
4
4
  _Theme.getLight = (primaryColor) => ({
@@ -12,7 +12,6 @@ var Theme;
12
12
  listItemFocusBorder: primaryColor.helpers.pickScale(11)
13
13
  });
14
14
  })(Theme || (Theme = {}));
15
- //#endregion
16
15
  export { Theme };
17
16
 
18
17
  //# sourceMappingURL=List.themes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.themes.js","names":[],"sources":["../../../components/List/List.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n export type Colors = {\n listItemHoverBg: Property.Color;\n listItemActiveBg: Property.Color;\n listItemFocusBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n listItemHoverBg: '$whiteA9',\n listItemActiveBg: '$whiteA8',\n listItemFocusBorder: primaryColor.helpers.pickScale(8),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n listItemHoverBg: '$whiteA4',\n listItemActiveBg: '$whiteA3',\n listItemFocusBorder: primaryColor.helpers.pickScale(11),\n });\n}\n"],"mappings":";AAIO,IAAA;;CASQ,OAAA,YAAqB,kBAAkB;EAClD,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB,aAAa,QAAQ,UAAU,CAAC;CACvD;CAEa,OAAA,WAAoB,kBAAkB;EACjD,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB,aAAa,QAAQ,UAAU,EAAE;CACxD;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"List.themes.js","names":[],"sources":["../../../components/List/List.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\n\nexport namespace Theme {\n export type Colors = {\n listItemHoverBg: Property.Color;\n listItemActiveBg: Property.Color;\n listItemFocusBorder: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n listItemHoverBg: '$whiteA9',\n listItemActiveBg: '$whiteA8',\n listItemFocusBorder: primaryColor.helpers.pickScale(8),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n listItemHoverBg: '$whiteA4',\n listItemActiveBg: '$whiteA3',\n listItemFocusBorder: primaryColor.helpers.pickScale(11),\n });\n}\n"],"mappings":";AAIO,IAAU;CAAV,SAAA,QAAA;CASQ,OAAA,YAAqB,kBAAkB;EAClD,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB,aAAa,QAAQ,UAAU,CAAC;CACvD;CAEa,OAAA,WAAoB,kBAAkB;EACjD,iBAAiB;EACjB,kBAAkB;EAClB,qBAAqB,aAAa,QAAQ,UAAU,EAAE;CACxD;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -5,7 +5,7 @@ const require_Flex = require("../Flex/Flex.cjs");
5
5
  let react = require("react");
6
6
  react = require_runtime.__toESM(react, 1);
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
- //#region components/Navigation/Navigation.tsx
8
+ // components/Navigation/Navigation.tsx
9
9
  var FlexWithOpacity = require_stitches_config.styled(require_Flex.Flex, {
10
10
  opacity: .74,
11
11
  variants: { active: { true: { opacity: 1 } } }
@@ -150,7 +150,6 @@ var NavigationLink = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Navig
150
150
  as: "a",
151
151
  ...props
152
152
  });
153
- //#endregion
154
153
  exports.NavigationContainer = NavigationContainer;
155
154
  exports.NavigationDrawer = NavigationDrawer;
156
155
  exports.NavigationItem = NavigationItem;
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.cjs","names":[],"sources":["../../../components/Navigation/Navigation.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\n\nimport { CSS, css, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst FlexWithOpacity = styled(Flex, {\n opacity: 0.74,\n\n variants: {\n active: {\n true: {\n opacity: 1,\n },\n },\n },\n});\n\nconst baseNavItemCss = css({\n position: 'relative',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n backgroundColor: '$navButtonBg',\n color: '$navButtonText',\n border: 'none',\n minHeight: '$7',\n width: '100%',\n px: '$3',\n py: '$2',\n borderRadius: '$3',\n cursor: 'pointer',\n fontFamily: '$rubik',\n fontWeight: '$medium',\n outline: 'none',\n fontSize: '$3',\n mt: '$2',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n\n [`&:focus > ${FlexWithOpacity}, &:hover > ${FlexWithOpacity}`]: {\n opacity: 1,\n },\n\n '&:focus': {\n color: '$navButtonFocusText',\n boxShadow: 'inset 0 0 0 2px $colors$navButtonFocusBorder',\n\n '&::before': {\n backgroundColor: '$navButtonFocusBg',\n },\n '&::after': {\n backgroundColor: '$navButtonFocusBg2',\n opacity: 0.05,\n },\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonHoverText',\n\n '&::before': {\n backgroundColor: '$navButtonHoverBg',\n },\n '&::after': {\n backgroundColor: '$navButtonHoverBg2',\n opacity: 0.05,\n },\n },\n },\n\n '&:first-child': {\n mt: 0,\n },\n\n variants: {\n active: {\n true: {\n color: '$navButtonActiveText',\n\n '&::before': {\n backgroundColor: '$navButtonActiveBg',\n },\n '&::after': {\n backgroundColor: '$navButtonActiveBg2',\n opacity: 0.05,\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonActiveText',\n },\n },\n\n '&:focus': {\n color: '$navButtonActiveText',\n },\n },\n },\n },\n defaultVariants: {\n active: false,\n },\n});\n\nexport const NavigationContainer = styled('div', {\n display: 'flex',\n boxSizing: 'border-box',\n flexDirection: 'column',\n});\n\nexport type NavigationContainerVariants = VariantProps<typeof NavigationContainer>;\nexport type NavigationContainerProps = NavigationContainerVariants & NonNullable<unknown>;\n\nexport const NavigationDrawer = styled('nav', {\n display: 'flex',\n boxSizing: 'border-box',\n padding: '$3',\n maxWidth: '240px',\n flexDirection: 'column',\n variants: {\n elevation: elevationVariants,\n fullWidth: {\n true: {\n px: 0,\n '> *, > div > *,': {\n borderRadius: 0,\n\n '&::before': {\n borderRadius: 0,\n },\n\n '&::after': {\n borderRadius: 0,\n },\n\n '&:focus': {\n border: 'none',\n boxShadow: 'none',\n },\n },\n },\n },\n },\n defaultVariants: {\n elevation: 1,\n fullWidth: false,\n },\n});\n\nexport type NavigationDrawerVariants = VariantProps<typeof NavigationDrawer>;\nexport type NavigationDrawerProps = NavigationDrawerVariants & NonNullable<unknown>;\n\nconst StyledLink = styled('a', baseNavItemCss, {\n textDecoration: 'none',\n});\n\ntype StyledLinkProps = VariantProps<typeof StyledLink> & React.ComponentProps<typeof StyledLink>;\n\nconst StyledButton = styled('button', baseNavItemCss);\n\ntype StyledButtonProps = VariantProps<typeof StyledButton> &\n React.ComponentProps<typeof StyledButton>;\ninterface NavigationItemBaseProps {\n css?: CSS;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n children?: ReactNode;\n active?: boolean;\n}\n\ntype NavigationItemButtonProps = NavigationItemBaseProps &\n StyledButtonProps & {\n as?: 'button';\n };\ntype NavigationItemLinkProps = NavigationItemBaseProps &\n StyledLinkProps &\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n as: 'a';\n };\n\nexport type NavigationItemProps = NavigationItemButtonProps | NavigationItemLinkProps;\n\nconst NavigationItemWrapper = (props: NavigationItemProps): JSX.Element =>\n props.as === 'a' ? <StyledLink {...props} /> : <StyledButton type=\"button\" {...props} />;\n\nexport const NavigationItem = ({\n startAdornment,\n endAdornment,\n children,\n ...restProps\n}: NavigationItemProps): JSX.Element => {\n const hasStartAdornment = useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <NavigationItemWrapper {...restProps}>\n {hasStartAdornment && (\n <FlexWithOpacity css={{ pr: '$2', ml: '-$1' }} active={restProps.active}>\n {startAdornment}\n </FlexWithOpacity>\n )}\n <FlexWithOpacity css={{ flexGrow: 1 }} active={restProps.active}>\n {children}\n </FlexWithOpacity>\n {hasEndAdornment && <Flex css={{ pl: '$2', mr: '-$1' }}>{endAdornment}</Flex>}\n </NavigationItemWrapper>\n );\n};\n\nexport type NavigationItemVariants = VariantProps<typeof NavigationItem>;\n\nexport const NavigationLink = (props: Omit<NavigationItemLinkProps, 'as'>) => (\n <NavigationItem as=\"a\" {...props} />\n);\n\nexport type NavigationLinkVariants = VariantProps<typeof NavigationLink>;\n\nexport type NavigationLinkProps = NavigationLinkVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;;;AAMA,IAAM,kBAAkB,wBAAA,OAAO,aAAA,MAAM;CACnC,SAAS;CAET,UAAU,EACR,QAAQ,EACN,MAAM,EACJ,SAAS,EACX,EACF,EACF;AACF,CAAC;AAED,IAAM,iBAAiB,wBAAA,IAAI;CACzB,UAAU;CACV,SAAS;CACT,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB,OAAO;CACP,QAAQ;CACR,WAA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Variants","useMemo"],"sources":["../../../components/Navigation/Navigation.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\n\nimport { CSS, css, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst FlexWithOpacity = styled(Flex, {\n opacity: 0.74,\n\n variants: {\n active: {\n true: {\n opacity: 1,\n },\n },\n },\n});\n\nconst baseNavItemCss = css({\n position: 'relative',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n backgroundColor: '$navButtonBg',\n color: '$navButtonText',\n border: 'none',\n minHeight: '$7',\n width: '100%',\n px: '$3',\n py: '$2',\n borderRadius: '$3',\n cursor: 'pointer',\n fontFamily: '$rubik',\n fontWeight: '$medium',\n outline: 'none',\n fontSize: '$3',\n mt: '$2',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n\n [`&:focus > ${FlexWithOpacity}, &:hover > ${FlexWithOpacity}`]: {\n opacity: 1,\n },\n\n '&:focus': {\n color: '$navButtonFocusText',\n boxShadow: 'inset 0 0 0 2px $colors$navButtonFocusBorder',\n\n '&::before': {\n backgroundColor: '$navButtonFocusBg',\n },\n '&::after': {\n backgroundColor: '$navButtonFocusBg2',\n opacity: 0.05,\n },\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonHoverText',\n\n '&::before': {\n backgroundColor: '$navButtonHoverBg',\n },\n '&::after': {\n backgroundColor: '$navButtonHoverBg2',\n opacity: 0.05,\n },\n },\n },\n\n '&:first-child': {\n mt: 0,\n },\n\n variants: {\n active: {\n true: {\n color: '$navButtonActiveText',\n\n '&::before': {\n backgroundColor: '$navButtonActiveBg',\n },\n '&::after': {\n backgroundColor: '$navButtonActiveBg2',\n opacity: 0.05,\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonActiveText',\n },\n },\n\n '&:focus': {\n color: '$navButtonActiveText',\n },\n },\n },\n },\n defaultVariants: {\n active: false,\n },\n});\n\nexport const NavigationContainer = styled('div', {\n display: 'flex',\n boxSizing: 'border-box',\n flexDirection: 'column',\n});\n\nexport type NavigationContainerVariants = VariantProps<typeof NavigationContainer>;\nexport type NavigationContainerProps = NavigationContainerVariants & NonNullable<unknown>;\n\nexport const NavigationDrawer = styled('nav', {\n display: 'flex',\n boxSizing: 'border-box',\n padding: '$3',\n maxWidth: '240px',\n flexDirection: 'column',\n variants: {\n elevation: elevationVariants,\n fullWidth: {\n true: {\n px: 0,\n '> *, > div > *,': {\n borderRadius: 0,\n\n '&::before': {\n borderRadius: 0,\n },\n\n '&::after': {\n borderRadius: 0,\n },\n\n '&:focus': {\n border: 'none',\n boxShadow: 'none',\n },\n },\n },\n },\n },\n defaultVariants: {\n elevation: 1,\n fullWidth: false,\n },\n});\n\nexport type NavigationDrawerVariants = VariantProps<typeof NavigationDrawer>;\nexport type NavigationDrawerProps = NavigationDrawerVariants & NonNullable<unknown>;\n\nconst StyledLink = styled('a', baseNavItemCss, {\n textDecoration: 'none',\n});\n\ntype StyledLinkProps = VariantProps<typeof StyledLink> & React.ComponentProps<typeof StyledLink>;\n\nconst StyledButton = styled('button', baseNavItemCss);\n\ntype StyledButtonProps = VariantProps<typeof StyledButton> &\n React.ComponentProps<typeof StyledButton>;\ninterface NavigationItemBaseProps {\n css?: CSS;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n children?: ReactNode;\n active?: boolean;\n}\n\ntype NavigationItemButtonProps = NavigationItemBaseProps &\n StyledButtonProps & {\n as?: 'button';\n };\ntype NavigationItemLinkProps = NavigationItemBaseProps &\n StyledLinkProps &\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n as: 'a';\n };\n\nexport type NavigationItemProps = NavigationItemButtonProps | NavigationItemLinkProps;\n\nconst NavigationItemWrapper = (props: NavigationItemProps): JSX.Element =>\n props.as === 'a' ? <StyledLink {...props} /> : <StyledButton type=\"button\" {...props} />;\n\nexport const NavigationItem = ({\n startAdornment,\n endAdornment,\n children,\n ...restProps\n}: NavigationItemProps): JSX.Element => {\n const hasStartAdornment = useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <NavigationItemWrapper {...restProps}>\n {hasStartAdornment && (\n <FlexWithOpacity css={{ pr: '$2', ml: '-$1' }} active={restProps.active}>\n {startAdornment}\n </FlexWithOpacity>\n )}\n <FlexWithOpacity css={{ flexGrow: 1 }} active={restProps.active}>\n {children}\n </FlexWithOpacity>\n {hasEndAdornment && <Flex css={{ pl: '$2', mr: '-$1' }}>{endAdornment}</Flex>}\n </NavigationItemWrapper>\n );\n};\n\nexport type NavigationItemVariants = VariantProps<typeof NavigationItem>;\n\nexport const NavigationLink = (props: Omit<NavigationItemLinkProps, 'as'>) => (\n <NavigationItem as=\"a\" {...props} />\n);\n\nexport type NavigationLinkVariants = VariantProps<typeof NavigationLink>;\n\nexport type NavigationLinkProps = NavigationLinkVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;;;AAMA,IAAM,kBAAkBA,wBAAAA,OAAOC,aAAAA,MAAM;CACnC,SAAS;CAET,UAAU,EACR,QAAQ,EACN,MAAM,EACJ,SAAS,EACX,EACF,EACF;AACF,CAAC;AAED,IAAM,iBAAiBC,wBAAAA,IAAI;CACzB,UAAU;CACV,SAAS;CACT,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB,OAAO;CACP,QAAQ;CACR,WAAW;CACX,OAAO;CACP,IAAI;CACJ,IAAI;CACJ,cAAc;CACd,QAAQ;CACR,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,UAAU;CACV,IAAI;CAEJ,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ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,wBAAAA,OAAO,UAAU,cAAc;AAwBpD,IAAM,yBAAyB,UAC7B,MAAM,OAAO,MAAM,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD,EAAY,GAAI,MAAQ,CAAA,IAAI,iBAAA,GAAA,kBAAA,IAAA,CAAC,cAAD;CAAc,MAAK;CAAS,GAAI;AAAQ,CAAA;AAEzF,IAAa,kBAAkB,EAC7B,gBACA,cACA,UACA,GAAG,gBACmC;CACtC,MAAM,qBAAA,GAAoBI,MAAAA,QAAAA,OAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACjF,MAAM,mBAAA,GAAkBA,MAAAA,QAAAA,OAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAE3E,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,uBAAD;EAAuB,GAAI;EAA3B,UAAA;GACG,qBACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,iBAAD;IAAiB,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;IAAG,QAAQ,UAAU;IAC9D,UAAA;GACc,CAAA;GAEnB,iBAAA,GAAA,kBAAA,IAAA,CAAC,iBAAD;IAAiB,KAAK,EAAE,UAAU,EAAE;IAAG,QAAQ,UAAU;IACtD;GACc,CAAA;GAChB,mBAAmB,iBAAA,GAAA,kBAAA,IAAA,CAACH,aAAAA,MAAD;IAAM,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;IAAI,UAAA;GAAmB,CAAA;EACvD;;AAE3B;AAIA,IAAa,kBAAkB,UAC7B,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;CAAgB,IAAG;CAAI,GAAI;AAAQ,CAAA"}
@@ -3,7 +3,7 @@ import { elevationVariants } from "../Elevation/Elevation.js";
3
3
  import { Flex } from "../Flex/Flex.js";
4
4
  import { useMemo } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- //#region components/Navigation/Navigation.tsx
6
+ // components/Navigation/Navigation.tsx
7
7
  var FlexWithOpacity = styled(Flex, {
8
8
  opacity: .74,
9
9
  variants: { active: { true: { opacity: 1 } } }
@@ -148,7 +148,6 @@ var NavigationLink = (props) => /* @__PURE__ */ jsx(NavigationItem, {
148
148
  as: "a",
149
149
  ...props
150
150
  });
151
- //#endregion
152
151
  export { NavigationContainer, NavigationDrawer, NavigationItem, NavigationLink };
153
152
 
154
153
  //# sourceMappingURL=Navigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.js","names":[],"sources":["../../../components/Navigation/Navigation.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\n\nimport { CSS, css, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst FlexWithOpacity = styled(Flex, {\n opacity: 0.74,\n\n variants: {\n active: {\n true: {\n opacity: 1,\n },\n },\n },\n});\n\nconst baseNavItemCss = css({\n position: 'relative',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n backgroundColor: '$navButtonBg',\n color: '$navButtonText',\n border: 'none',\n minHeight: '$7',\n width: '100%',\n px: '$3',\n py: '$2',\n borderRadius: '$3',\n cursor: 'pointer',\n fontFamily: '$rubik',\n fontWeight: '$medium',\n outline: 'none',\n fontSize: '$3',\n mt: '$2',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n\n [`&:focus > ${FlexWithOpacity}, &:hover > ${FlexWithOpacity}`]: {\n opacity: 1,\n },\n\n '&:focus': {\n color: '$navButtonFocusText',\n boxShadow: 'inset 0 0 0 2px $colors$navButtonFocusBorder',\n\n '&::before': {\n backgroundColor: '$navButtonFocusBg',\n },\n '&::after': {\n backgroundColor: '$navButtonFocusBg2',\n opacity: 0.05,\n },\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonHoverText',\n\n '&::before': {\n backgroundColor: '$navButtonHoverBg',\n },\n '&::after': {\n backgroundColor: '$navButtonHoverBg2',\n opacity: 0.05,\n },\n },\n },\n\n '&:first-child': {\n mt: 0,\n },\n\n variants: {\n active: {\n true: {\n color: '$navButtonActiveText',\n\n '&::before': {\n backgroundColor: '$navButtonActiveBg',\n },\n '&::after': {\n backgroundColor: '$navButtonActiveBg2',\n opacity: 0.05,\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonActiveText',\n },\n },\n\n '&:focus': {\n color: '$navButtonActiveText',\n },\n },\n },\n },\n defaultVariants: {\n active: false,\n },\n});\n\nexport const NavigationContainer = styled('div', {\n display: 'flex',\n boxSizing: 'border-box',\n flexDirection: 'column',\n});\n\nexport type NavigationContainerVariants = VariantProps<typeof NavigationContainer>;\nexport type NavigationContainerProps = NavigationContainerVariants & NonNullable<unknown>;\n\nexport const NavigationDrawer = styled('nav', {\n display: 'flex',\n boxSizing: 'border-box',\n padding: '$3',\n maxWidth: '240px',\n flexDirection: 'column',\n variants: {\n elevation: elevationVariants,\n fullWidth: {\n true: {\n px: 0,\n '> *, > div > *,': {\n borderRadius: 0,\n\n '&::before': {\n borderRadius: 0,\n },\n\n '&::after': {\n borderRadius: 0,\n },\n\n '&:focus': {\n border: 'none',\n boxShadow: 'none',\n },\n },\n },\n },\n },\n defaultVariants: {\n elevation: 1,\n fullWidth: false,\n },\n});\n\nexport type NavigationDrawerVariants = VariantProps<typeof NavigationDrawer>;\nexport type NavigationDrawerProps = NavigationDrawerVariants & NonNullable<unknown>;\n\nconst StyledLink = styled('a', baseNavItemCss, {\n textDecoration: 'none',\n});\n\ntype StyledLinkProps = VariantProps<typeof StyledLink> & React.ComponentProps<typeof StyledLink>;\n\nconst StyledButton = styled('button', baseNavItemCss);\n\ntype StyledButtonProps = VariantProps<typeof StyledButton> &\n React.ComponentProps<typeof StyledButton>;\ninterface NavigationItemBaseProps {\n css?: CSS;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n children?: ReactNode;\n active?: boolean;\n}\n\ntype NavigationItemButtonProps = NavigationItemBaseProps &\n StyledButtonProps & {\n as?: 'button';\n };\ntype NavigationItemLinkProps = NavigationItemBaseProps &\n StyledLinkProps &\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n as: 'a';\n };\n\nexport type NavigationItemProps = NavigationItemButtonProps | NavigationItemLinkProps;\n\nconst NavigationItemWrapper = (props: NavigationItemProps): JSX.Element =>\n props.as === 'a' ? <StyledLink {...props} /> : <StyledButton type=\"button\" {...props} />;\n\nexport const NavigationItem = ({\n startAdornment,\n endAdornment,\n children,\n ...restProps\n}: NavigationItemProps): JSX.Element => {\n const hasStartAdornment = useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <NavigationItemWrapper {...restProps}>\n {hasStartAdornment && (\n <FlexWithOpacity css={{ pr: '$2', ml: '-$1' }} active={restProps.active}>\n {startAdornment}\n </FlexWithOpacity>\n )}\n <FlexWithOpacity css={{ flexGrow: 1 }} active={restProps.active}>\n {children}\n </FlexWithOpacity>\n {hasEndAdornment && <Flex css={{ pl: '$2', mr: '-$1' }}>{endAdornment}</Flex>}\n </NavigationItemWrapper>\n );\n};\n\nexport type NavigationItemVariants = VariantProps<typeof NavigationItem>;\n\nexport const NavigationLink = (props: Omit<NavigationItemLinkProps, 'as'>) => (\n <NavigationItem as=\"a\" {...props} />\n);\n\nexport type NavigationLinkVariants = VariantProps<typeof NavigationLink>;\n\nexport type NavigationLinkProps = NavigationLinkVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;AAMA,IAAM,kBAAkB,OAAO,MAAM;CACnC,SAAS;CAET,UAAU,EACR,QAAQ,EACN,MAAM,EACJ,SAAS,EACX,EACF,EACF;AACF,CAAC;AAED,IAAM,iBAAiB,IAAI;CACzB,UAAU;CACV,SAAS;CACT,WAAW;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AAY,EACV,cAAc,EAChB;IAEA,WAAW;KACT,QAAQ;KACR,WAAW;IACb;GACF;EACF,EACF;CACF;CACA,iBAAiB;EACf,WAAW;EACX,WAAW;CACb;AACF,CAAC;AAKD,IAAM,aAAa,OAAO,KAAK,gBAAgB,EAC7C,gBAAgB,OAClB,CAAC;AAID,IAAM,eAAe,OAAO,UAAU,cAAc;AAwBpD,IAAM,yBAAyB,UAC7B,MAAM,OAAO,MAAM,oBAAC,YAAD,EAAY,GAAI,MAAQ,CAAA,IAAI,oBAAC,cAAD;CAAc,MAAK;CAAS,GAAI;AAAQ,CAAA;AAEzF,IAAa,kBAAkB,EAC7B,gBACA,cACA,UACA,GAAG,gBACmC;CACtC,MAAM,oBAAoB,cAAc,QAAQ,cAAc,GAAG,CAAC,cAAc,CAAC;CACjF,MAAM,kBAAkB,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAE3E,OACE,qBAAC,uBAAD;EAAuB,GAAI;YAA3B;GACG,qBACC,oBAAC,iBAAD;IAAiB,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;IAAG,QAAQ,UAAU;cAC9D;GACc,CAAA;GAEnB,oBAAC,iBAAD;IAAiB,KAAK,EAAE,UAAU,EAAE;IAAG,QAAQ,UAAU;IACtD;GACc,CAAA;GAChB,mBAAmB,oBAAC,MAAD;IAAM,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;cAAI;GAAmB,CAAA;EACvD;;AAE3B;AAIA,IAAa,kBAAkB,UAC7B,oBAAC,gBAAD;CAAgB,IAAG;CAAI,GAAI;AAAQ,CAAA"}
1
+ {"version":3,"file":"Navigation.js","names":[],"sources":["../../../components/Navigation/Navigation.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\n\nimport { CSS, css, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { Flex } from '../Flex';\n\nconst FlexWithOpacity = styled(Flex, {\n opacity: 0.74,\n\n variants: {\n active: {\n true: {\n opacity: 1,\n },\n },\n },\n});\n\nconst baseNavItemCss = css({\n position: 'relative',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n backgroundColor: '$navButtonBg',\n color: '$navButtonText',\n border: 'none',\n minHeight: '$7',\n width: '100%',\n px: '$3',\n py: '$2',\n borderRadius: '$3',\n cursor: 'pointer',\n fontFamily: '$rubik',\n fontWeight: '$medium',\n outline: 'none',\n fontSize: '$3',\n mt: '$2',\n\n '&::before': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n '&::after': {\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '$3',\n },\n\n [`&:focus > ${FlexWithOpacity}, &:hover > ${FlexWithOpacity}`]: {\n opacity: 1,\n },\n\n '&:focus': {\n color: '$navButtonFocusText',\n boxShadow: 'inset 0 0 0 2px $colors$navButtonFocusBorder',\n\n '&::before': {\n backgroundColor: '$navButtonFocusBg',\n },\n '&::after': {\n backgroundColor: '$navButtonFocusBg2',\n opacity: 0.05,\n },\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonHoverText',\n\n '&::before': {\n backgroundColor: '$navButtonHoverBg',\n },\n '&::after': {\n backgroundColor: '$navButtonHoverBg2',\n opacity: 0.05,\n },\n },\n },\n\n '&:first-child': {\n mt: 0,\n },\n\n variants: {\n active: {\n true: {\n color: '$navButtonActiveText',\n\n '&::before': {\n backgroundColor: '$navButtonActiveBg',\n },\n '&::after': {\n backgroundColor: '$navButtonActiveBg2',\n opacity: 0.05,\n },\n\n '@hover': {\n '&:hover': {\n color: '$navButtonActiveText',\n },\n },\n\n '&:focus': {\n color: '$navButtonActiveText',\n },\n },\n },\n },\n defaultVariants: {\n active: false,\n },\n});\n\nexport const NavigationContainer = styled('div', {\n display: 'flex',\n boxSizing: 'border-box',\n flexDirection: 'column',\n});\n\nexport type NavigationContainerVariants = VariantProps<typeof NavigationContainer>;\nexport type NavigationContainerProps = NavigationContainerVariants & NonNullable<unknown>;\n\nexport const NavigationDrawer = styled('nav', {\n display: 'flex',\n boxSizing: 'border-box',\n padding: '$3',\n maxWidth: '240px',\n flexDirection: 'column',\n variants: {\n elevation: elevationVariants,\n fullWidth: {\n true: {\n px: 0,\n '> *, > div > *,': {\n borderRadius: 0,\n\n '&::before': {\n borderRadius: 0,\n },\n\n '&::after': {\n borderRadius: 0,\n },\n\n '&:focus': {\n border: 'none',\n boxShadow: 'none',\n },\n },\n },\n },\n },\n defaultVariants: {\n elevation: 1,\n fullWidth: false,\n },\n});\n\nexport type NavigationDrawerVariants = VariantProps<typeof NavigationDrawer>;\nexport type NavigationDrawerProps = NavigationDrawerVariants & NonNullable<unknown>;\n\nconst StyledLink = styled('a', baseNavItemCss, {\n textDecoration: 'none',\n});\n\ntype StyledLinkProps = VariantProps<typeof StyledLink> & React.ComponentProps<typeof StyledLink>;\n\nconst StyledButton = styled('button', baseNavItemCss);\n\ntype StyledButtonProps = VariantProps<typeof StyledButton> &\n React.ComponentProps<typeof StyledButton>;\ninterface NavigationItemBaseProps {\n css?: CSS;\n startAdornment?: ReactNode;\n endAdornment?: ReactNode;\n children?: ReactNode;\n active?: boolean;\n}\n\ntype NavigationItemButtonProps = NavigationItemBaseProps &\n StyledButtonProps & {\n as?: 'button';\n };\ntype NavigationItemLinkProps = NavigationItemBaseProps &\n StyledLinkProps &\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n as: 'a';\n };\n\nexport type NavigationItemProps = NavigationItemButtonProps | NavigationItemLinkProps;\n\nconst NavigationItemWrapper = (props: NavigationItemProps): JSX.Element =>\n props.as === 'a' ? <StyledLink {...props} /> : <StyledButton type=\"button\" {...props} />;\n\nexport const NavigationItem = ({\n startAdornment,\n endAdornment,\n children,\n ...restProps\n}: NavigationItemProps): JSX.Element => {\n const hasStartAdornment = useMemo(() => Boolean(startAdornment), [startAdornment]);\n const hasEndAdornment = useMemo(() => Boolean(endAdornment), [endAdornment]);\n\n return (\n <NavigationItemWrapper {...restProps}>\n {hasStartAdornment && (\n <FlexWithOpacity css={{ pr: '$2', ml: '-$1' }} active={restProps.active}>\n {startAdornment}\n </FlexWithOpacity>\n )}\n <FlexWithOpacity css={{ flexGrow: 1 }} active={restProps.active}>\n {children}\n </FlexWithOpacity>\n {hasEndAdornment && <Flex css={{ pl: '$2', mr: '-$1' }}>{endAdornment}</Flex>}\n </NavigationItemWrapper>\n );\n};\n\nexport type NavigationItemVariants = VariantProps<typeof NavigationItem>;\n\nexport const NavigationLink = (props: Omit<NavigationItemLinkProps, 'as'>) => (\n <NavigationItem as=\"a\" {...props} />\n);\n\nexport type NavigationLinkVariants = VariantProps<typeof NavigationLink>;\n\nexport type NavigationLinkProps = NavigationLinkVariants & NonNullable<unknown>;\n"],"mappings":";;;;;;AAMA,IAAM,kBAAkB,OAAO,MAAM;CACnC,SAAS;CAET,UAAU,EACR,QAAQ,EACN,MAAM,EACJ,SAAS,EACX,EACF,EACF;AACF,CAAC;AAED,IAAM,iBAAiB,IAAI;CACzB,UAAU;CACV,SAAS;CACT,WAAW;CACX,YAAY;CACZ,iBAAiB;CACjB,OAAO;CACP,QAAQ;CACR,WAAW;CACX,OAAO;CACP,IAAI;CACJ,IAAI;CACJ,cAAc;CACd,QAAQ;CACR,YAAY;CACZ,YAAY;CACZ,SAAS;CACT,UAAU;CACV,IAAI;CAEJ,aAAa;EACX,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,cAAc;CAChB;CACA,YAAY;EACV,WAAW;EACX,SAAS;EACT,UAAU;EACV,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,cAAc;CAChB;EAEC,aAAa,gBAAgB,cAAc,oBAAoB,EAC9D,SAAS,EACX;CAEA,WAAW;EACT,OAAO;EACP,WAAW;EAEX,aAAa,EACX,iBAAiB,oBACnB;EAC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,kBAAkB,cAAc,QAAQ,YAAY,GAAG,CAAC,YAAY,CAAC;CAE3E,OACE,qBAAC,uBAAD;EAAuB,GAAI;EAA3B,UAAA;GACG,qBACC,oBAAC,iBAAD;IAAiB,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;IAAG,QAAQ,UAAU;IAC9D,UAAA;GACc,CAAA;GAEnB,oBAAC,iBAAD;IAAiB,KAAK,EAAE,UAAU,EAAE;IAAG,QAAQ,UAAU;IACtD;GACc,CAAA;GAChB,mBAAmB,oBAAC,MAAD;IAAM,KAAK;KAAE,IAAI;KAAM,IAAI;IAAM;IAAI,UAAA;GAAmB,CAAA;EACvD;;AAE3B;AAIA,IAAa,kBAAkB,UAC7B,oBAAC,gBAAD;CAAgB,IAAG;CAAI,GAAI;AAAQ,CAAA"}
@@ -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/Navigation/Navigation.themes.ts
4
+ // components/Navigation/Navigation.themes.ts
5
5
  var Theme;
6
6
  (function(_Theme) {
7
7
  _Theme.getLight = (primaryColor) => ({
@@ -33,7 +33,6 @@ var Theme;
33
33
  navButtonActiveText: "$primary"
34
34
  });
35
35
  })(Theme || (Theme = {}));
36
- //#endregion
37
36
  Object.defineProperty(exports, "Theme", {
38
37
  enumerable: true,
39
38
  get: function() {
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.themes.cjs","names":[],"sources":["../../../components/Navigation/Navigation.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n navButtonBg: Property.Color;\n navButtonHoverBg: Property.Color;\n navButtonHoverBg2: Property.Color;\n navButtonFocusBg: Property.Color;\n navButtonFocusBg2: Property.Color;\n navButtonFocusBorder: Property.Color;\n navButtonText: Property.Color;\n navButtonHoverText: Property.Color;\n navButtonActiveText: Property.Color;\n navButtonFocusText: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonHoverBg2: 'transparent',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(8),\n navButtonActiveBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonActiveBg2: 'transparent',\n navButtonText: tinycolor('black').setAlpha(0.54).toHslString(),\n navButtonHoverText: 'black',\n navButtonFocusText: 'black',\n navButtonActiveText: '$primary',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonHoverBg2: '$primary',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(11),\n navButtonActiveBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonActiveBg2: '$primary',\n navButtonText: 'white',\n navButtonHoverText: 'white',\n navButtonFocusText: 'white',\n navButtonActiveText: '$primary',\n });\n}\n"],"mappings":";;;;AAIO,IAAA;;CAgBQ,OAAA,YAAqB,kBAAkB;EAClD,aAAa;EACb,mBAAA,GAAA,WAAA,QAAA,CAA4B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,mBAAA,GAAA,WAAA,QAAA,CAA4B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,CAAC;EACtD,oBAAA,GAAA,WAAA,QAAA,CAA6B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;EACpB,gBAAA,GAAA,WAAA,QAAA,CAAyB,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAC7D,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,aAAa;EACb,mBAAA,GAAA,WAAA,QAAA,CAA4B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,mBAAA,GAAA,WAAA,QAAA,CAA4B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,EAAE;EACvD,oBAAA,GAAA,WAAA,QAAA,CAA6B,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;EACpB,eAAe;EACf,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"Navigation.themes.cjs","names":["tinycolor"],"sources":["../../../components/Navigation/Navigation.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n navButtonBg: Property.Color;\n navButtonHoverBg: Property.Color;\n navButtonHoverBg2: Property.Color;\n navButtonFocusBg: Property.Color;\n navButtonFocusBg2: Property.Color;\n navButtonFocusBorder: Property.Color;\n navButtonText: Property.Color;\n navButtonHoverText: Property.Color;\n navButtonActiveText: Property.Color;\n navButtonFocusText: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonHoverBg2: 'transparent',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(8),\n navButtonActiveBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonActiveBg2: 'transparent',\n navButtonText: tinycolor('black').setAlpha(0.54).toHslString(),\n navButtonHoverText: 'black',\n navButtonFocusText: 'black',\n navButtonActiveText: '$primary',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonHoverBg2: '$primary',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(11),\n navButtonActiveBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonActiveBg2: '$primary',\n navButtonText: 'white',\n navButtonHoverText: 'white',\n navButtonFocusText: 'white',\n navButtonActiveText: '$primary',\n });\n}\n"],"mappings":";;;;AAIO,IAAU;CAAV,SAAA,QAAA;CAgBQ,OAAA,YAAqB,kBAAkB;EAClD,aAAa;EACb,mBAAA,GAAkBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,mBAAA,GAAkBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,CAAC;EACtD,oBAAA,GAAmBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;EACpB,gBAAA,GAAeA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAC7D,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,aAAa;EACb,mBAAA,GAAkBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,mBAAA,GAAkBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,EAAE;EACvD,oBAAA,GAAmBA,WAAAA,QAAAA,CAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;EACpB,eAAe;EACf,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -1,5 +1,5 @@
1
1
  import tinycolor from "tinycolor2";
2
- //#region components/Navigation/Navigation.themes.ts
2
+ // components/Navigation/Navigation.themes.ts
3
3
  var Theme;
4
4
  (function(_Theme) {
5
5
  _Theme.getLight = (primaryColor) => ({
@@ -31,7 +31,6 @@ var Theme;
31
31
  navButtonActiveText: "$primary"
32
32
  });
33
33
  })(Theme || (Theme = {}));
34
- //#endregion
35
34
  export { Theme };
36
35
 
37
36
  //# sourceMappingURL=Navigation.themes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.themes.js","names":[],"sources":["../../../components/Navigation/Navigation.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n navButtonBg: Property.Color;\n navButtonHoverBg: Property.Color;\n navButtonHoverBg2: Property.Color;\n navButtonFocusBg: Property.Color;\n navButtonFocusBg2: Property.Color;\n navButtonFocusBorder: Property.Color;\n navButtonText: Property.Color;\n navButtonHoverText: Property.Color;\n navButtonActiveText: Property.Color;\n navButtonFocusText: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonHoverBg2: 'transparent',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(8),\n navButtonActiveBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonActiveBg2: 'transparent',\n navButtonText: tinycolor('black').setAlpha(0.54).toHslString(),\n navButtonHoverText: 'black',\n navButtonFocusText: 'black',\n navButtonActiveText: '$primary',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonHoverBg2: '$primary',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(11),\n navButtonActiveBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonActiveBg2: '$primary',\n navButtonText: 'white',\n navButtonHoverText: 'white',\n navButtonFocusText: 'white',\n navButtonActiveText: '$primary',\n });\n}\n"],"mappings":";;AAIO,IAAA;;CAgBQ,OAAA,YAAqB,kBAAkB;EAClD,aAAa;EACb,kBAAkB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,kBAAkB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,CAAC;EACtD,mBAAmB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;EACpB,eAAe,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAC7D,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,aAAa;EACb,kBAAkB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,kBAAkB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,EAAE;EACvD,mBAAmB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;EACpB,eAAe;EACf,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;GACD,UAAA,QAAA,CAAA,EAAD"}
1
+ {"version":3,"file":"Navigation.themes.js","names":[],"sources":["../../../components/Navigation/Navigation.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n navButtonBg: Property.Color;\n navButtonHoverBg: Property.Color;\n navButtonHoverBg2: Property.Color;\n navButtonFocusBg: Property.Color;\n navButtonFocusBg2: Property.Color;\n navButtonFocusBorder: Property.Color;\n navButtonText: Property.Color;\n navButtonHoverText: Property.Color;\n navButtonActiveText: Property.Color;\n navButtonFocusText: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonHoverBg2: 'transparent',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(8),\n navButtonActiveBg: tinycolor('black').setAlpha(0.04).toHslString(),\n navButtonActiveBg2: 'transparent',\n navButtonText: tinycolor('black').setAlpha(0.54).toHslString(),\n navButtonHoverText: 'black',\n navButtonFocusText: 'black',\n navButtonActiveText: '$primary',\n });\n\n export const getDark: Factory = (primaryColor) => ({\n navButtonBg: 'transparent',\n navButtonHoverBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonHoverBg2: '$primary',\n navButtonFocusBg: tinycolor('white').setAlpha(0.15).toHslString(),\n navButtonFocusBg2: '$primary',\n navButtonFocusBorder: primaryColor.helpers.pickScale(11),\n navButtonActiveBg: tinycolor('white').setAlpha(0.05).toHslString(),\n navButtonActiveBg2: '$primary',\n navButtonText: 'white',\n navButtonHoverText: 'white',\n navButtonFocusText: 'white',\n navButtonActiveText: '$primary',\n });\n}\n"],"mappings":";;AAIO,IAAU;CAAV,SAAA,QAAA;CAgBQ,OAAA,YAAqB,kBAAkB;EAClD,aAAa;EACb,kBAAkB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,kBAAkB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,CAAC;EACtD,mBAAmB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;EACpB,eAAe,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAC7D,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;CAEa,OAAA,WAAoB,kBAAkB;EACjD,aAAa;EACb,kBAAkB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,kBAAkB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EAChE,mBAAmB;EACnB,sBAAsB,aAAa,QAAQ,UAAU,EAAE;EACvD,mBAAmB,UAAU,OAAO,CAAC,CAAC,SAAS,GAAI,CAAC,CAAC,YAAY;EACjE,oBAAoB;EACpB,eAAe;EACf,oBAAoB;EACpB,oBAAoB;EACpB,qBAAqB;CACvB;AACD,EAAA,CAAA,UAAA,QAAA,CAAA,EAAD"}
@@ -7,7 +7,7 @@ react = require_runtime.__toESM(react, 1);
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let _radix_ui_react_navigation_menu = require("@radix-ui/react-navigation-menu");
9
9
  _radix_ui_react_navigation_menu = require_runtime.__toESM(_radix_ui_react_navigation_menu, 1);
10
- //#region components/NavigationMenu/NavigationMenu.tsx
10
+ // components/NavigationMenu/NavigationMenu.tsx
11
11
  var StyledRoot = require_stitches_config.styled(_radix_ui_react_navigation_menu.Root, { ul: {
12
12
  m: 0,
13
13
  p: 0,
@@ -51,7 +51,6 @@ var NavigationMenuItem = _radix_ui_react_navigation_menu.Item;
51
51
  var NavigationMenuLink = _radix_ui_react_navigation_menu.Link;
52
52
  var NavigationMenuList = _radix_ui_react_navigation_menu.List;
53
53
  var NavigationMenuViewport = _radix_ui_react_navigation_menu.Viewport;
54
- //#endregion
55
54
  exports.NavigationMenu = NavigationMenu;
56
55
  exports.NavigationMenuContent = NavigationMenuContent;
57
56
  exports.NavigationMenuIndicator = NavigationMenuIndicator;