@traefik-labs/faency 12.3.9 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +2 -3
  2. package/dist/_virtual/_rolldown/runtime.js +1 -2
  3. package/dist/colors/deepBlue.cjs +1 -2
  4. package/dist/colors/deepBlue.js +1 -2
  5. package/dist/colors/elevation.cjs +1 -2
  6. package/dist/colors/elevation.js +1 -2
  7. package/dist/colors/grayBlue.cjs +1 -2
  8. package/dist/colors/grayBlue.js +1 -2
  9. package/dist/colors/index.cjs +1 -2
  10. package/dist/colors/index.cjs.map +1 -1
  11. package/dist/colors/index.js +1 -2
  12. package/dist/colors/index.js.map +1 -1
  13. package/dist/colors/neon.cjs +1 -2
  14. package/dist/colors/neon.js +1 -2
  15. package/dist/colors/orange.cjs +1 -2
  16. package/dist/colors/orange.js +1 -2
  17. package/dist/colors/red.cjs +1 -2
  18. package/dist/colors/red.js +1 -2
  19. package/dist/components/AccessibleIcon/AccessibleIcon.cjs +1 -2
  20. package/dist/components/AccessibleIcon/AccessibleIcon.cjs.map +1 -1
  21. package/dist/components/AccessibleIcon/AccessibleIcon.js +1 -2
  22. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs +1 -2
  23. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs.map +1 -1
  24. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js +1 -2
  25. package/dist/components/Accordion/Accordion.cjs +1 -2
  26. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  27. package/dist/components/Accordion/Accordion.js +1 -2
  28. package/dist/components/Accordion/Accordion.js.map +1 -1
  29. package/dist/components/Accordion/Accordion.themes.cjs +1 -2
  30. package/dist/components/Accordion/Accordion.themes.cjs.map +1 -1
  31. package/dist/components/Accordion/Accordion.themes.js +1 -2
  32. package/dist/components/Accordion/Accordion.themes.js.map +1 -1
  33. package/dist/components/Alert/Alert.cjs +1 -2
  34. package/dist/components/Alert/Alert.cjs.map +1 -1
  35. package/dist/components/Alert/Alert.js +1 -2
  36. package/dist/components/AriaTable/AriaTable.cjs +1 -2
  37. package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
  38. package/dist/components/AriaTable/AriaTable.js +1 -2
  39. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  40. package/dist/components/Avatar/Avatar.cjs +1 -2
  41. package/dist/components/Avatar/Avatar.cjs.map +1 -1
  42. package/dist/components/Avatar/Avatar.js +1 -2
  43. package/dist/components/Avatar/Avatar.js.map +1 -1
  44. package/dist/components/Avatar/Avatar.vanilla.cjs +8 -8
  45. package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
  46. package/dist/components/Avatar/Avatar.vanilla.css.cjs +1 -2
  47. package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
  48. package/dist/components/Avatar/Avatar.vanilla.css.js +1 -2
  49. package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
  50. package/dist/components/Avatar/Avatar.vanilla.js +8 -8
  51. package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
  52. package/dist/components/Badge/Badge.cjs +4 -4
  53. package/dist/components/Badge/Badge.cjs.map +1 -1
  54. package/dist/components/Badge/Badge.js +4 -4
  55. package/dist/components/Badge/Badge.js.map +1 -1
  56. package/dist/components/Badge/Badge.theme.cjs +1 -2
  57. package/dist/components/Badge/Badge.theme.js +1 -2
  58. package/dist/components/Badge/Badge.themes.cjs +1 -2
  59. package/dist/components/Badge/Badge.themes.cjs.map +1 -1
  60. package/dist/components/Badge/Badge.themes.js +1 -2
  61. package/dist/components/Badge/Badge.themes.js.map +1 -1
  62. package/dist/components/Badge/Badge.vanilla.cjs +8 -8
  63. package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
  64. package/dist/components/Badge/Badge.vanilla.css.cjs +1 -2
  65. package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
  66. package/dist/components/Badge/Badge.vanilla.css.js +1 -2
  67. package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
  68. package/dist/components/Badge/Badge.vanilla.js +8 -8
  69. package/dist/components/Badge/Badge.vanilla.js.map +1 -1
  70. package/dist/components/Blockquote/Blockquote.cjs +1 -2
  71. package/dist/components/Blockquote/Blockquote.cjs.map +1 -1
  72. package/dist/components/Blockquote/Blockquote.js +1 -2
  73. package/dist/components/Blockquote/Blockquote.vanilla.cjs +10 -10
  74. package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
  75. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs +1 -2
  76. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
  77. package/dist/components/Blockquote/Blockquote.vanilla.css.js +1 -2
  78. package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
  79. package/dist/components/Blockquote/Blockquote.vanilla.js +10 -10
  80. package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
  81. package/dist/components/Box/Box.cjs +1 -2
  82. package/dist/components/Box/Box.cjs.map +1 -1
  83. package/dist/components/Box/Box.js +1 -2
  84. package/dist/components/Box/Box.vanilla.cjs +1 -2
  85. package/dist/components/Box/Box.vanilla.cjs.map +1 -1
  86. package/dist/components/Box/Box.vanilla.css.cjs +1 -2
  87. package/dist/components/Box/Box.vanilla.css.js +1 -2
  88. package/dist/components/Box/Box.vanilla.js +1 -2
  89. package/dist/components/Bubble/Bubble.cjs +1 -2
  90. package/dist/components/Bubble/Bubble.cjs.map +1 -1
  91. package/dist/components/Bubble/Bubble.js +18 -17
  92. package/dist/components/Bubble/Bubble.js.map +1 -1
  93. package/dist/components/Bubble/Bubble.vanilla.cjs +7 -7
  94. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
  95. package/dist/components/Bubble/Bubble.vanilla.css.cjs +1 -2
  96. package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
  97. package/dist/components/Bubble/Bubble.vanilla.css.js +1 -2
  98. package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
  99. package/dist/components/Bubble/Bubble.vanilla.js +7 -7
  100. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
  101. package/dist/components/Button/Button.cjs +3 -3
  102. package/dist/components/Button/Button.cjs.map +1 -1
  103. package/dist/components/Button/Button.js +3 -3
  104. package/dist/components/Button/Button.js.map +1 -1
  105. package/dist/components/Button/Button.themes.cjs +1 -2
  106. package/dist/components/Button/Button.themes.cjs.map +1 -1
  107. package/dist/components/Button/Button.themes.js +1 -2
  108. package/dist/components/Button/Button.themes.js.map +1 -1
  109. package/dist/components/Button/Button.vanilla.cjs +9 -9
  110. package/dist/components/Button/Button.vanilla.cjs.map +1 -1
  111. package/dist/components/Button/Button.vanilla.css.cjs +1 -2
  112. package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
  113. package/dist/components/Button/Button.vanilla.css.js +1 -2
  114. package/dist/components/Button/Button.vanilla.css.js.map +1 -1
  115. package/dist/components/Button/Button.vanilla.js +9 -9
  116. package/dist/components/Button/Button.vanilla.js.map +1 -1
  117. package/dist/components/ButtonSwitch/ButtonSwitch.cjs +1 -2
  118. package/dist/components/ButtonSwitch/ButtonSwitch.cjs.map +1 -1
  119. package/dist/components/ButtonSwitch/ButtonSwitch.js +1 -2
  120. package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs +1 -2
  121. package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs.map +1 -1
  122. package/dist/components/ButtonSwitch/ButtonSwitch.themes.js +1 -2
  123. package/dist/components/ButtonSwitch/ButtonSwitch.themes.js.map +1 -1
  124. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +1 -2
  125. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  126. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs +1 -2
  127. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js +1 -2
  128. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +1 -2
  129. package/dist/components/Card/Card.cjs +1 -2
  130. package/dist/components/Card/Card.cjs.map +1 -1
  131. package/dist/components/Card/Card.js +1 -2
  132. package/dist/components/Card/Card.theme.cjs +1 -2
  133. package/dist/components/Card/Card.theme.js +1 -2
  134. package/dist/components/Card/Card.themes.cjs +1 -2
  135. package/dist/components/Card/Card.themes.cjs.map +1 -1
  136. package/dist/components/Card/Card.themes.js +1 -2
  137. package/dist/components/Card/Card.themes.js.map +1 -1
  138. package/dist/components/Card/Card.vanilla.cjs +1 -2
  139. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  140. package/dist/components/Card/Card.vanilla.css.cjs +1 -2
  141. package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
  142. package/dist/components/Card/Card.vanilla.css.js +1 -2
  143. package/dist/components/Card/Card.vanilla.css.js.map +1 -1
  144. package/dist/components/Card/Card.vanilla.js +1 -2
  145. package/dist/components/Checkbox/Checkbox.cjs +1 -2
  146. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  147. package/dist/components/Checkbox/Checkbox.js +1 -2
  148. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  149. package/dist/components/Checkbox/Checkbox.themes.cjs +1 -2
  150. package/dist/components/Checkbox/Checkbox.themes.cjs.map +1 -1
  151. package/dist/components/Checkbox/Checkbox.themes.js +1 -2
  152. package/dist/components/Checkbox/Checkbox.themes.js.map +1 -1
  153. package/dist/components/CodeBlock/CodeBlock.cjs +1 -2
  154. package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -1
  155. package/dist/components/CodeBlock/CodeBlock.js +1 -2
  156. package/dist/components/CodeBlock/CodeBlock.js.map +1 -1
  157. package/dist/components/CodeBlock/CodeBlock.themes.cjs +1 -2
  158. package/dist/components/CodeBlock/CodeBlock.themes.cjs.map +1 -1
  159. package/dist/components/CodeBlock/CodeBlock.themes.js +1 -2
  160. package/dist/components/CodeBlock/CodeBlock.themes.js.map +1 -1
  161. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +1 -2
  162. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
  163. package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs +1 -2
  164. package/dist/components/CodeBlock/CodeBlock.vanilla.css.js +1 -2
  165. package/dist/components/CodeBlock/CodeBlock.vanilla.js +1 -2
  166. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  167. package/dist/components/CodeBlock/prism-extend.cjs +7 -3
  168. package/dist/components/CodeBlock/prism-extend.cjs.map +1 -1
  169. package/dist/components/CodeBlock/prism-extend.js +1 -2
  170. package/dist/components/Container/Container.cjs +1 -2
  171. package/dist/components/Container/Container.cjs.map +1 -1
  172. package/dist/components/Container/Container.js +1 -2
  173. package/dist/components/Container/Container.vanilla.cjs +6 -6
  174. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  175. package/dist/components/Container/Container.vanilla.css.cjs +1 -2
  176. package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
  177. package/dist/components/Container/Container.vanilla.css.js +1 -2
  178. package/dist/components/Container/Container.vanilla.css.js.map +1 -1
  179. package/dist/components/Container/Container.vanilla.js +6 -6
  180. package/dist/components/Container/Container.vanilla.js.map +1 -1
  181. package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -2
  182. package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
  183. package/dist/components/DateTimePicker/DateTimePicker.js +1 -2
  184. package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
  185. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs +17 -14
  186. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs.map +1 -1
  187. package/dist/components/DateTimePickerInput/DateTimePickerInput.js +17 -14
  188. package/dist/components/DateTimePickerInput/DateTimePickerInput.js.map +1 -1
  189. package/dist/components/Dialog/Dialog.cjs +1 -2
  190. package/dist/components/Dialog/Dialog.cjs.map +1 -1
  191. package/dist/components/Dialog/Dialog.js +1 -2
  192. package/dist/components/Dialog/Dialog.js.map +1 -1
  193. package/dist/components/Dialog/Dialog.themes.cjs +1 -2
  194. package/dist/components/Dialog/Dialog.themes.cjs.map +1 -1
  195. package/dist/components/Dialog/Dialog.themes.js +1 -2
  196. package/dist/components/Dialog/Dialog.themes.js.map +1 -1
  197. package/dist/components/DropdownMenu/DropdownMenu.cjs +1 -2
  198. package/dist/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
  199. package/dist/components/DropdownMenu/DropdownMenu.js +1 -2
  200. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  201. package/dist/components/DropdownMenu/styles.cjs +1 -2
  202. package/dist/components/DropdownMenu/styles.cjs.map +1 -1
  203. package/dist/components/DropdownMenu/styles.js +1 -2
  204. package/dist/components/Elevation/Elevation.cjs +1 -2
  205. package/dist/components/Elevation/Elevation.cjs.map +1 -1
  206. package/dist/components/Elevation/Elevation.js +1 -2
  207. package/dist/components/Elevation/Elevation.vanilla.cjs +3 -3
  208. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  209. package/dist/components/Elevation/Elevation.vanilla.css.cjs +1 -2
  210. package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
  211. package/dist/components/Elevation/Elevation.vanilla.css.js +1 -2
  212. package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
  213. package/dist/components/Elevation/Elevation.vanilla.js +3 -3
  214. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  215. package/dist/components/FaencyProvider.cjs +1 -2
  216. package/dist/components/FaencyProvider.cjs.map +1 -1
  217. package/dist/components/FaencyProvider.js +1 -2
  218. package/dist/components/FaencyProvider.js.map +1 -1
  219. package/dist/components/Flex/Flex.cjs +1 -2
  220. package/dist/components/Flex/Flex.cjs.map +1 -1
  221. package/dist/components/Flex/Flex.js +1 -2
  222. package/dist/components/Flex/Flex.vanilla.cjs +9 -9
  223. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  224. package/dist/components/Flex/Flex.vanilla.css.cjs +1 -2
  225. package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
  226. package/dist/components/Flex/Flex.vanilla.css.js +1 -2
  227. package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
  228. package/dist/components/Flex/Flex.vanilla.js +9 -9
  229. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  230. package/dist/components/Grid/Grid.cjs +1 -2
  231. package/dist/components/Grid/Grid.cjs.map +1 -1
  232. package/dist/components/Grid/Grid.js +1 -2
  233. package/dist/components/Grid/Grid.vanilla.cjs +10 -10
  234. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  235. package/dist/components/Grid/Grid.vanilla.css.cjs +1 -2
  236. package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
  237. package/dist/components/Grid/Grid.vanilla.css.js +1 -2
  238. package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
  239. package/dist/components/Grid/Grid.vanilla.js +10 -10
  240. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  241. package/dist/components/Heading/Heading.cjs +1 -2
  242. package/dist/components/Heading/Heading.cjs.map +1 -1
  243. package/dist/components/Heading/Heading.js +1 -2
  244. package/dist/components/Heading/Heading.themes.cjs +1 -2
  245. package/dist/components/Heading/Heading.themes.cjs.map +1 -1
  246. package/dist/components/Heading/Heading.themes.js +1 -2
  247. package/dist/components/Heading/Heading.themes.js.map +1 -1
  248. package/dist/components/IconButton/IconButton.cjs +1 -2
  249. package/dist/components/IconButton/IconButton.cjs.map +1 -1
  250. package/dist/components/IconButton/IconButton.js +1 -2
  251. package/dist/components/IconButton/IconButton.themes.cjs +1 -2
  252. package/dist/components/IconButton/IconButton.themes.cjs.map +1 -1
  253. package/dist/components/IconButton/IconButton.themes.js +1 -2
  254. package/dist/components/IconButton/IconButton.themes.js.map +1 -1
  255. package/dist/components/IconButton/IconButton.vanilla.cjs +6 -6
  256. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  257. package/dist/components/IconButton/IconButton.vanilla.css.cjs +1 -2
  258. package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
  259. package/dist/components/IconButton/IconButton.vanilla.css.js +1 -2
  260. package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
  261. package/dist/components/IconButton/IconButton.vanilla.js +6 -6
  262. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  263. package/dist/components/Image/Image.cjs +1 -2
  264. package/dist/components/Image/Image.cjs.map +1 -1
  265. package/dist/components/Image/Image.js +1 -2
  266. package/dist/components/Image/Image.vanilla.cjs +1 -2
  267. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  268. package/dist/components/Image/Image.vanilla.css.cjs +1 -2
  269. package/dist/components/Image/Image.vanilla.css.js +1 -2
  270. package/dist/components/Image/Image.vanilla.js +1 -2
  271. package/dist/components/Input/Input.cjs +1 -2
  272. package/dist/components/Input/Input.cjs.map +1 -1
  273. package/dist/components/Input/Input.js +1 -2
  274. package/dist/components/Input/Input.js.map +1 -1
  275. package/dist/components/Input/Input.theme.cjs +1 -2
  276. package/dist/components/Input/Input.theme.cjs.map +1 -1
  277. package/dist/components/Input/Input.theme.js +1 -2
  278. package/dist/components/Input/Input.themes.cjs +1 -2
  279. package/dist/components/Input/Input.themes.cjs.map +1 -1
  280. package/dist/components/Input/Input.themes.js +1 -2
  281. package/dist/components/Input/Input.themes.js.map +1 -1
  282. package/dist/components/Input/Input.vanilla.cjs +1 -2
  283. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  284. package/dist/components/Input/Input.vanilla.css.cjs +1 -2
  285. package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
  286. package/dist/components/Input/Input.vanilla.css.js +1 -2
  287. package/dist/components/Input/Input.vanilla.css.js.map +1 -1
  288. package/dist/components/Input/Input.vanilla.js +1 -2
  289. package/dist/components/Input/Input.vanilla.js.map +1 -1
  290. package/dist/components/Label/Label.cjs +1 -2
  291. package/dist/components/Label/Label.cjs.map +1 -1
  292. package/dist/components/Label/Label.js +1 -2
  293. package/dist/components/Label/Label.vanilla.cjs +10 -10
  294. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  295. package/dist/components/Label/Label.vanilla.css.cjs +1 -2
  296. package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
  297. package/dist/components/Label/Label.vanilla.css.js +1 -2
  298. package/dist/components/Label/Label.vanilla.css.js.map +1 -1
  299. package/dist/components/Label/Label.vanilla.js +10 -10
  300. package/dist/components/Label/Label.vanilla.js.map +1 -1
  301. package/dist/components/Link/Link.cjs +0 -1
  302. package/dist/components/Link/Link.cjs.map +1 -1
  303. package/dist/components/Link/Link.js +0 -1
  304. package/dist/components/Link/Link.themes.cjs +1 -2
  305. package/dist/components/Link/Link.themes.cjs.map +1 -1
  306. package/dist/components/Link/Link.themes.js +1 -2
  307. package/dist/components/Link/Link.themes.js.map +1 -1
  308. package/dist/components/List/List.cjs +1 -2
  309. package/dist/components/List/List.cjs.map +1 -1
  310. package/dist/components/List/List.js +1 -2
  311. package/dist/components/List/List.js.map +1 -1
  312. package/dist/components/List/List.themes.cjs +1 -2
  313. package/dist/components/List/List.themes.cjs.map +1 -1
  314. package/dist/components/List/List.themes.js +1 -2
  315. package/dist/components/List/List.themes.js.map +1 -1
  316. package/dist/components/Navigation/Navigation.cjs +1 -2
  317. package/dist/components/Navigation/Navigation.cjs.map +1 -1
  318. package/dist/components/Navigation/Navigation.js +1 -2
  319. package/dist/components/Navigation/Navigation.js.map +1 -1
  320. package/dist/components/Navigation/Navigation.themes.cjs +1 -2
  321. package/dist/components/Navigation/Navigation.themes.cjs.map +1 -1
  322. package/dist/components/Navigation/Navigation.themes.js +1 -2
  323. package/dist/components/Navigation/Navigation.themes.js.map +1 -1
  324. package/dist/components/NavigationMenu/NavigationMenu.cjs +1 -2
  325. package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
  326. package/dist/components/NavigationMenu/NavigationMenu.js +1 -2
  327. package/dist/components/NavigationTree/NavigationTreeContainer.cjs +17 -12
  328. package/dist/components/NavigationTree/NavigationTreeContainer.cjs.map +1 -1
  329. package/dist/components/NavigationTree/NavigationTreeContainer.js +18 -13
  330. package/dist/components/NavigationTree/NavigationTreeContainer.js.map +1 -1
  331. package/dist/components/NavigationTree/NavigationTreeContext.cjs +16 -0
  332. package/dist/components/NavigationTree/NavigationTreeContext.cjs.map +1 -0
  333. package/dist/components/NavigationTree/NavigationTreeContext.js +13 -0
  334. package/dist/components/NavigationTree/NavigationTreeContext.js.map +1 -0
  335. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs +14 -9
  336. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs.map +1 -1
  337. package/dist/components/NavigationTree/NavigationTreeDrawer.js +15 -10
  338. package/dist/components/NavigationTree/NavigationTreeDrawer.js.map +1 -1
  339. package/dist/components/NavigationTree/NavigationTreeItem.cjs +17 -12
  340. package/dist/components/NavigationTree/NavigationTreeItem.cjs.map +1 -1
  341. package/dist/components/NavigationTree/NavigationTreeItem.js +17 -12
  342. package/dist/components/NavigationTree/NavigationTreeItem.js.map +1 -1
  343. package/dist/components/Overlay.cjs +1 -2
  344. package/dist/components/Overlay.cjs.map +1 -1
  345. package/dist/components/Overlay.js +1 -2
  346. package/dist/components/Panel/Panel.cjs +1 -2
  347. package/dist/components/Panel/Panel.cjs.map +1 -1
  348. package/dist/components/Panel/Panel.js +1 -2
  349. package/dist/components/Panel/Panel.theme.cjs +1 -2
  350. package/dist/components/Panel/Panel.theme.js +1 -2
  351. package/dist/components/Panel/Panel.vanilla.cjs +1 -2
  352. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  353. package/dist/components/Panel/Panel.vanilla.css.cjs +1 -2
  354. package/dist/components/Panel/Panel.vanilla.css.js +1 -2
  355. package/dist/components/Panel/Panel.vanilla.js +1 -2
  356. package/dist/components/Paragraph/Paragraph.cjs +1 -2
  357. package/dist/components/Paragraph/Paragraph.cjs.map +1 -1
  358. package/dist/components/Paragraph/Paragraph.js +1 -2
  359. package/dist/components/Paragraph/Paragraph.vanilla.cjs +3 -3
  360. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  361. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +1 -2
  362. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
  363. package/dist/components/Paragraph/Paragraph.vanilla.css.js +1 -2
  364. package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
  365. package/dist/components/Paragraph/Paragraph.vanilla.js +3 -3
  366. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  367. package/dist/components/Popover/Popover.cjs +1 -2
  368. package/dist/components/Popover/Popover.cjs.map +1 -1
  369. package/dist/components/Popover/Popover.js +1 -2
  370. package/dist/components/Popover/Popover.js.map +1 -1
  371. package/dist/components/Radio/Radio.cjs +1 -2
  372. package/dist/components/Radio/Radio.cjs.map +1 -1
  373. package/dist/components/Radio/Radio.js +1 -2
  374. package/dist/components/Radio/Radio.js.map +1 -1
  375. package/dist/components/Radio/Radio.themes.cjs +1 -2
  376. package/dist/components/Radio/Radio.themes.cjs.map +1 -1
  377. package/dist/components/Radio/Radio.themes.js +1 -2
  378. package/dist/components/Radio/Radio.themes.js.map +1 -1
  379. package/dist/components/RadioAccordion/RadioAccordion.cjs +1 -2
  380. package/dist/components/RadioAccordion/RadioAccordion.cjs.map +1 -1
  381. package/dist/components/RadioAccordion/RadioAccordion.js +1 -2
  382. package/dist/components/RadioAccordion/RadioAccordion.js.map +1 -1
  383. package/dist/components/Select/Select.cjs +1 -2
  384. package/dist/components/Select/Select.cjs.map +1 -1
  385. package/dist/components/Select/Select.js +1 -2
  386. package/dist/components/Select/Select.js.map +1 -1
  387. package/dist/components/Select/Select.themes.cjs +1 -2
  388. package/dist/components/Select/Select.themes.cjs.map +1 -1
  389. package/dist/components/Select/Select.themes.js +1 -2
  390. package/dist/components/Select/Select.themes.js.map +1 -1
  391. package/dist/components/SidePanel/SidePanel.cjs +1 -2
  392. package/dist/components/SidePanel/SidePanel.cjs.map +1 -1
  393. package/dist/components/SidePanel/SidePanel.js +1 -2
  394. package/dist/components/SidePanel/SidePanel.js.map +1 -1
  395. package/dist/components/SidePanel/SidePanel.themes.cjs +1 -2
  396. package/dist/components/SidePanel/SidePanel.themes.cjs.map +1 -1
  397. package/dist/components/SidePanel/SidePanel.themes.js +1 -2
  398. package/dist/components/SidePanel/SidePanel.themes.js.map +1 -1
  399. package/dist/components/Skeleton/Skeleton.cjs +1 -2
  400. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  401. package/dist/components/Skeleton/Skeleton.js +6 -5
  402. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  403. package/dist/components/Skeleton/Skeleton.themes.cjs +1 -2
  404. package/dist/components/Skeleton/Skeleton.themes.cjs.map +1 -1
  405. package/dist/components/Skeleton/Skeleton.themes.js +1 -2
  406. package/dist/components/Skeleton/Skeleton.themes.js.map +1 -1
  407. package/dist/components/Skeleton/Skeleton.vanilla.cjs +3 -3
  408. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  409. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +1 -2
  410. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
  411. package/dist/components/Skeleton/Skeleton.vanilla.css.js +1 -2
  412. package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
  413. package/dist/components/Skeleton/Skeleton.vanilla.js +3 -3
  414. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  415. package/dist/components/Switch/Switch.cjs +3 -4
  416. package/dist/components/Switch/Switch.cjs.map +1 -1
  417. package/dist/components/Switch/Switch.js +3 -4
  418. package/dist/components/Switch/Switch.js.map +1 -1
  419. package/dist/components/Switch/Switch.themes.cjs +1 -2
  420. package/dist/components/Switch/Switch.themes.cjs.map +1 -1
  421. package/dist/components/Switch/Switch.themes.js +1 -2
  422. package/dist/components/Switch/Switch.themes.js.map +1 -1
  423. package/dist/components/Table/Table.cjs +1 -2
  424. package/dist/components/Table/Table.cjs.map +1 -1
  425. package/dist/components/Table/Table.js +15 -14
  426. package/dist/components/Table/Table.js.map +1 -1
  427. package/dist/components/Table/Table.themes.cjs +1 -2
  428. package/dist/components/Table/Table.themes.cjs.map +1 -1
  429. package/dist/components/Table/Table.themes.js +1 -2
  430. package/dist/components/Table/Table.themes.js.map +1 -1
  431. package/dist/components/Tabs/Tabs.cjs +1 -2
  432. package/dist/components/Tabs/Tabs.cjs.map +1 -1
  433. package/dist/components/Tabs/Tabs.js +1 -2
  434. package/dist/components/Text/Text.cjs +1 -2
  435. package/dist/components/Text/Text.cjs.map +1 -1
  436. package/dist/components/Text/Text.js +1 -2
  437. package/dist/components/Text/Text.themes.cjs +1 -2
  438. package/dist/components/Text/Text.themes.cjs.map +1 -1
  439. package/dist/components/Text/Text.themes.js +1 -2
  440. package/dist/components/Text/Text.themes.js.map +1 -1
  441. package/dist/components/TextField/TextField.cjs +1 -2
  442. package/dist/components/TextField/TextField.cjs.map +1 -1
  443. package/dist/components/TextField/TextField.js +1 -2
  444. package/dist/components/TextField/TextField.js.map +1 -1
  445. package/dist/components/TextField/TextField.vanilla.cjs +1 -2
  446. package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
  447. package/dist/components/TextField/TextField.vanilla.js +1 -2
  448. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  449. package/dist/components/Textarea/Textarea.cjs +1 -2
  450. package/dist/components/Textarea/Textarea.cjs.map +1 -1
  451. package/dist/components/Textarea/Textarea.js +1 -2
  452. package/dist/components/Textarea/Textarea.js.map +1 -1
  453. package/dist/components/Textarea/Textarea.theme.cjs +1 -2
  454. package/dist/components/Textarea/Textarea.theme.cjs.map +1 -1
  455. package/dist/components/Textarea/Textarea.theme.js +1 -2
  456. package/dist/components/Textarea/Textarea.themes.cjs +1 -2
  457. package/dist/components/Textarea/Textarea.themes.cjs.map +1 -1
  458. package/dist/components/Textarea/Textarea.themes.js +1 -2
  459. package/dist/components/Textarea/Textarea.themes.js.map +1 -1
  460. package/dist/components/Textarea/Textarea.vanilla.cjs +1 -2
  461. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  462. package/dist/components/Textarea/Textarea.vanilla.css.cjs +1 -2
  463. package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
  464. package/dist/components/Textarea/Textarea.vanilla.css.js +1 -2
  465. package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
  466. package/dist/components/Textarea/Textarea.vanilla.js +1 -2
  467. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  468. package/dist/components/Tooltip/Tooltip.cjs +1 -2
  469. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  470. package/dist/components/Tooltip/Tooltip.js +1 -2
  471. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  472. package/dist/components/Tooltip/Tooltip.themes.cjs +1 -2
  473. package/dist/components/Tooltip/Tooltip.themes.cjs.map +1 -1
  474. package/dist/components/Tooltip/Tooltip.themes.js +1 -2
  475. package/dist/components/Tooltip/Tooltip.themes.js.map +1 -1
  476. package/dist/components/VisuallyHidden/VisuallyHidden.cjs +1 -2
  477. package/dist/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
  478. package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -2
  479. package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  480. package/dist/components/colorSchemeContext.cjs +1 -2
  481. package/dist/components/colorSchemeContext.cjs.map +1 -1
  482. package/dist/components/colorSchemeContext.js +1 -2
  483. package/dist/index.d.ts +1 -1
  484. package/dist/stitches.config.cjs +1 -2
  485. package/dist/stitches.config.cjs.map +1 -1
  486. package/dist/stitches.config.js +1 -2
  487. package/dist/stitches.config.js.map +1 -1
  488. package/dist/styles/cssProps.cjs +24 -27
  489. package/dist/styles/cssProps.cjs.map +1 -1
  490. package/dist/styles/cssProps.js +24 -27
  491. package/dist/styles/cssProps.js.map +1 -1
  492. package/dist/styles/themeContext.cjs +1 -2
  493. package/dist/styles/themeContext.cjs.map +1 -1
  494. package/dist/styles/themeContext.js +1 -2
  495. package/dist/styles/themes.css.cjs +1 -2
  496. package/dist/styles/themes.css.js +1 -2
  497. package/dist/utils/deepMerge.cjs +1 -2
  498. package/dist/utils/deepMerge.js +1 -2
  499. package/dist/utils/getPrimaryColorInfo.cjs +1 -2
  500. package/dist/utils/getPrimaryColorInfo.js +1 -2
  501. package/package.json +64 -62
@@ -1,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;EAC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CAEA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,UAAD;EAAU,GAAI;EAAO,KAAK;YAA1B;GACG,cACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,sBAAD;IACS;IACE;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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;AACZ,CAAC;AASD,IAAa,KAAKK,MAAAA,QAAM,YACrB,EAAE,UAAU,UAAU,OAAO,SAAS,WAAW,KAAK,MAAM,GAAG,SAAS,iBAAiB;CACxF,MAAM,EAAE,iBAAA,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,S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cesContent":["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,Q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Ae,eACZ,EACL,aAAa,gBAAgB,KAAA,IAAY,CAAC,CAAC,cAAc,cAAc,YACzE,IACA,CAAC,aAAa,cAAc,WAAW,CACzC;CAEA,OACE,oBAAC,YAAY,UAAb;EAAsB,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,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AAkB,UAC7B,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;CAAgB,IAAG;CAAI,GAAI;AAAQ,CAAA"}
1
+ {"version":3,"file":"Navigation.cjs","names":["styled","Flex","css","elevationVariants","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,QA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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;CAC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CACT,UAAU;CACV,eAAe;CACf,UAAU;EACR,WAAW;EACX,WAAW,EACT,MAAM;GACJ,IAAI;GACJ,mBAAmB;IACjB,cAAc;IAEd,aAAa,EACX,cAAc,EAChB;IAEA,YAAY,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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,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;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;
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenu.cjs","names":[],"sources":["../../../components/NavigationMenu/NavigationMenu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\n// #region Root\n\nconst StyledRoot = styled(NavigationMenuPrimitive.Root, {\n ul: {\n m: 0,\n p: 0,\n listStyleType: 'none',\n li: {\n position: 'relative',\n display: 'inline',\n },\n },\n});\n\nexport type NavigationMenuProps = React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {\n children: React.ReactNode;\n css?: CSS;\n};\n\nexport type NavigationMenuVariants = VariantProps<typeof NavigationMenu>;\n\nexport const NavigationMenu = React.forwardRef<\n React.ElementRef<typeof StyledRoot>,\n NavigationMenuProps\n>(({ children, ...props }, fowardedRef) => (\n <StyledRoot {...props} ref={fowardedRef}>\n {children}\n </StyledRoot>\n));\n\n// #endregion Root\n\n// #region Content\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, panelStyles, {\n position: 'absolute',\n left: 0,\n zIndex: 1,\n p: '$2',\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype NavigationMenuPrimitiveContentProps = Omit<\n React.ComponentProps<typeof NavigationMenuPrimitive.Content>,\n 'as'\n>;\n\nexport type NavigationMenuContentProps = NavigationMenuPrimitiveContentProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n NavigationMenuContentProps\n>(({ children, elevation, ...props }, fowardedRef) => (\n <StyledContent elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n </StyledContent>\n));\n\n// #endregion Content\n\n// #region Trigger\n\nconst StyledTrigger = styled(NavigationMenuPrimitive.Trigger, {\n backgroundColor: 'transparent',\n border: 'none',\n});\n\nexport type NavigationMenuTriggerProps = React.ComponentProps<\n typeof NavigationMenuPrimitive.Trigger\n> &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuTrigger = ({ children, ...props }: NavigationMenuTriggerProps) => (\n <StyledTrigger {...props}>{children}</StyledTrigger>\n);\n\n// #endregion Trigger\n\nexport const NavigationMenuIndicator = NavigationMenuPrimitive.Indicator;\nexport const NavigationMenuItem = NavigationMenuPrimitive.Item;\nexport const NavigationMenuLink = NavigationMenuPrimitive.Link;\nexport const NavigationMenuList = NavigationMenuPrimitive.List;\nexport const NavigationMenuViewport = NavigationMenuPrimitive.Viewport;\n"],"mappings":";;;;;;;;;;AASA,IAAM,aAAa,wBAAA,OAAO,gCAAwB,MAAM,EACtD,IAAI;CACF,GAAG;CACH,GAAG;CACH,eAAe;CACf,IAAI;EACF,UAAU;EACV,SAAS;CACX;AACF,EACF,CAAC;AASD,IAAa,iBAAiB,MAAA,QAAM,YAGjC,EAAE,UAAU,GAAG,SAAS,gBACzB,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;CAAY,GAAI;CAAO,KAAK;CACzB;AACS,CAAA,CACb;AAMD,IAAM,gBAAgB,wBAAA,OAAO,gCAAwB,SAAS,cAAA,aAAa;CACzE,UAAU;CACV,MAAM;CACN,QAAQ;CACR,GAAG;CACH,OAAO;CACP,WAAW,EACT,SAAS,OACX;CACA,UAAU,EACR,WAAW,kBAAA,kBACb;CACA,iBAAiB,EACf,WAAW,EACb;AACF,CAAC;AAYD,IAAa,wBAAwB,MAAA,QAAM,YAGxC,EAAE,UAAU,WAAW,GAAG,SAAS,gBACpC,iBAAA,GAAA,kBAAA,IAAA,CAAC,eAAD;CAA0B;CAAW,GAAI;CAAO,KAAK;CAClD;AACY,CAAA,CAChB;AAMD,IAAM,gBAAgB,wBAAA,OAAO,gCAAwB,SAAS;CAC5D,iBAAiB;CACjB,QAAQ;AACV,CAAC;AASD,IAAa,yBAAyB,EAAE,UAAU,GAAG,YACnD,iBAAA,GAAA,kBAAA,IAAA,CAAC,eAAD;CAAe,GAAI;CAAQ;AAAwB,CAAA;AAKrD,IAAa,0BAA0B,gCAAwB;AAC/D,IAAa,qBAAqB,gCAAwB;AAC1D,IAAa,qBAAqB,gCAAwB;AAC1D,IAAa,qBAAqB,gCAAwB;AAC1D,IAAa,yBAAyB,gCAAwB"}
1
+ {"version":3,"file":"NavigationMenu.cjs","names":["styled","NavigationMenuPrimitive","React","panelStyles","elevationVariants"],"sources":["../../../components/NavigationMenu/NavigationMenu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';\nimport React from 'react';\n\nimport { CSS, styled, VariantProps } from '../../stitches.config';\nimport { elevationVariants } from '../Elevation';\nimport { panelStyles } from '../Panel';\n\n// #region Root\n\nconst StyledRoot = styled(NavigationMenuPrimitive.Root, {\n ul: {\n m: 0,\n p: 0,\n listStyleType: 'none',\n li: {\n position: 'relative',\n display: 'inline',\n },\n },\n});\n\nexport type NavigationMenuProps = React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {\n children: React.ReactNode;\n css?: CSS;\n};\n\nexport type NavigationMenuVariants = VariantProps<typeof NavigationMenu>;\n\nexport const NavigationMenu = React.forwardRef<\n React.ElementRef<typeof StyledRoot>,\n NavigationMenuProps\n>(({ children, ...props }, fowardedRef) => (\n <StyledRoot {...props} ref={fowardedRef}>\n {children}\n </StyledRoot>\n));\n\n// #endregion Root\n\n// #region Content\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, panelStyles, {\n position: 'absolute',\n left: 0,\n zIndex: 1,\n p: '$2',\n color: '$hiContrast',\n '&:focus': {\n outline: 'none',\n },\n variants: {\n elevation: elevationVariants,\n },\n defaultVariants: {\n elevation: 2,\n },\n});\n\ntype NavigationMenuPrimitiveContentProps = Omit<\n React.ComponentProps<typeof NavigationMenuPrimitive.Content>,\n 'as'\n>;\n\nexport type NavigationMenuContentProps = NavigationMenuPrimitiveContentProps &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof StyledContent>,\n NavigationMenuContentProps\n>(({ children, elevation, ...props }, fowardedRef) => (\n <StyledContent elevation={elevation} {...props} ref={fowardedRef}>\n {children}\n </StyledContent>\n));\n\n// #endregion Content\n\n// #region Trigger\n\nconst StyledTrigger = styled(NavigationMenuPrimitive.Trigger, {\n backgroundColor: 'transparent',\n border: 'none',\n});\n\nexport type NavigationMenuTriggerProps = React.ComponentProps<\n typeof NavigationMenuPrimitive.Trigger\n> &\n VariantProps<typeof StyledContent> & {\n css?: CSS;\n };\n\nexport const NavigationMenuTrigger = ({ children, ...props }: NavigationMenuTriggerProps) => (\n <StyledTrigger {...props}>{children}</StyledTrigger>\n);\n\n// #endregion Trigger\n\nexport const NavigationMenuIndicator = NavigationMenuPrimitive.Indicator;\nexport const NavigationMenuItem = NavigationMenuPrimitive.Item;\nexport const NavigationMenuLink = NavigationMenuPrimitive.Link;\nexport const NavigationMenuList = NavigationMenuPrimitive.List;\nexport const NavigationMenuViewport = NavigationMenuPrimitive.Viewport;\n"],"mappings":";;;;;;;;;;AASA,IAAM,aAAaA,wBAAAA,OAAOC,gCAAwB,MAAM,EACtD,IAAI;CACF,GAAG;CACH,GAAG;CACH,eAAe;CACf,IAAI;EACF,UAAU;EACV,SAAS;CACX;AACF,EACF,CAAC;AASD,IAAa,iBAAiBC,MAAAA,QAAM,YAGjC,EAAE,UAAU,GAAG,SAAS,gBACzB,iBAAA,GAAA,kBAAA,IAAA,CAAC,YAAD;CAAY,GAAI;CAAO,KAAK;CACzB;AACS,CAAA,CACb;AAMD,IAAM,gBAAgBF,wBAAAA,OAAOC,gCAAwB,SAASE,cAAAA,aAAa;CACzE,UAAU;CACV,MAAM;CACN,QAAQ;CACR,GAAG;CACH,OAAO;CACP,WAAW,EACT,SAAS,OACX;CACA,UAAU,EACR,WAAWC,kBAAAA,kBACb;CACA,iBAAiB,EACf,WAAW,EACb;AACF,CAAC;AAYD,IAAa,wBAAwBF,MAAAA,QAAM,YAGxC,EAAE,UAAU,WAAW,GAAG,SAAS,gBACpC,iBAAA,GAAA,kBAAA,IAAA,CAAC,eAAD;CAA0B;CAAW,GAAI;CAAO,KAAK;CAClD;AACY,CAAA,CAChB;AAMD,IAAM,gBAAgBF,wBAAAA,OAAOC,gCAAwB,SAAS;CAC5D,iBAAiB;CACjB,QAAQ;AACV,CAAC;AASD,IAAa,yBAAyB,EAAE,UAAU,GAAG,YACnD,iBAAA,GAAA,kBAAA,IAAA,CAAC,eAAD;CAAe,GAAI;CAAQ;AAAwB,CAAA;AAKrD,IAAa,0BAA0BA,gCAAwB;AAC/D,IAAa,qBAAqBA,gCAAwB;AAC1D,IAAa,qBAAqBA,gCAAwB;AAC1D,IAAa,qBAAqBA,gCAAwB;AAC1D,IAAa,yBAAyBA,gCAAwB"}
@@ -4,7 +4,7 @@ import { panelStyles } from "../Panel/Panel.js";
4
4
  import React from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
7
- //#region components/NavigationMenu/NavigationMenu.tsx
7
+ // components/NavigationMenu/NavigationMenu.tsx
8
8
  var StyledRoot = styled(NavigationMenuPrimitive.Root, { ul: {
9
9
  m: 0,
10
10
  p: 0,
@@ -48,7 +48,6 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
48
48
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
49
49
  var NavigationMenuList = NavigationMenuPrimitive.List;
50
50
  var NavigationMenuViewport = NavigationMenuPrimitive.Viewport;
51
- //#endregion
52
51
  export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport };
53
52
 
54
53
  //# sourceMappingURL=NavigationMenu.js.map
@@ -1,24 +1,29 @@
1
1
  const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
2
  const require_Navigation = require("../Navigation/Navigation.cjs");
3
+ const require_NavigationTreeContext = require("./NavigationTreeContext.cjs");
3
4
  let _radix_ui_react_icons = require("@radix-ui/react-icons");
4
5
  let react = require("react");
5
6
  react = require_runtime.__toESM(react, 1);
6
7
  let react_jsx_runtime = require("react/jsx-runtime");
7
- //#region components/NavigationTree/NavigationTreeContainer.tsx
8
+ // components/NavigationTree/NavigationTreeContainer.tsx
8
9
  var NavigationTreeContainer = ({ children, defaultCollapseIcon = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_icons.ChevronDownIcon, {}), defaultExpandIcon = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_radix_ui_react_icons.ChevronRightIcon, {}), fullWidth = false, ...props }) => {
9
- const renderChildren = react.default.Children.map(children, (child) => {
10
- return react.default.cloneElement(child, {
11
- defaultCollapseIcon,
12
- defaultExpandIcon,
13
- fullWidth
14
- });
15
- });
16
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Navigation.NavigationContainer, {
17
- ...props,
18
- children: renderChildren
10
+ const contextValue = (0, react.useMemo)(() => ({
11
+ defaultCollapseIcon,
12
+ defaultExpandIcon,
13
+ fullWidth
14
+ }), [
15
+ defaultCollapseIcon,
16
+ defaultExpandIcon,
17
+ fullWidth
18
+ ]);
19
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_NavigationTreeContext.NavigationTreeContext.Provider, {
20
+ value: contextValue,
21
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Navigation.NavigationContainer, {
22
+ ...props,
23
+ children
24
+ })
19
25
  });
20
26
  };
21
- //#endregion
22
27
  exports.NavigationTreeContainer = NavigationTreeContainer;
23
28
 
24
29
  //# sourceMappingURL=NavigationTreeContainer.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationTreeContainer.cjs","names":[],"sources":["../../../components/NavigationTree/NavigationTreeContainer.tsx"],"sourcesContent":["import { ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationContainer, NavigationContainerProps } from '../Navigation';\n\nexport interface NavigationTreeProps {\n children: React.ReactNode;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeContainer = ({\n children,\n defaultCollapseIcon = <ChevronDownIcon />,\n defaultExpandIcon = <ChevronRightIcon />,\n fullWidth = false,\n ...props\n}: NavigationTreeProps & NavigationContainerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n defaultCollapseIcon,\n defaultExpandIcon,\n fullWidth,\n });\n });\n\n return <NavigationContainer {...props}>{renderChildren}</NavigationContainer>;\n};\n"],"mappings":";;;;;;;AAcA,IAAa,2BAA2B,EACtC,UACA,sBAAsB,iBAAA,GAAA,kBAAA,IAAA,CAAC,sBAAA,iBAAD,CAAkB,CAAA,GACxC,oBAAoB,iBAAA,GAAA,kBAAA,IAAA,CAAC,sBAAA,kBAAD,CAAmB,CAAA,GACvC,YAAY,OACZ,GAAG,YACiD;CACpD,MAAM,iBAAiB,MAAA,QAAM,SAAS,IAAI,WAAW,UAAU;EAC7D,OAAO,MAAA,QAAM,aAAa,OAA6B;GACrD;GACA;GACA;EACF,CAAC;CACH,CAAC;CAED,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,mBAAA,qBAAD;EAAqB,GAAI;YAAQ;CAAoC,CAAA;AAC9E"}
1
+ {"version":3,"file":"NavigationTreeContainer.cjs","names":["ChevronDownIcon","ChevronRightIcon","useMemo","NavigationTreeContext","NavigationContainer"],"sources":["../../../components/NavigationTree/NavigationTreeContainer.tsx"],"sourcesContent":["import { ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';\nimport React, { useMemo } from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationContainer, NavigationContainerProps } from '../Navigation';\nimport { NavigationTreeContext } from './NavigationTreeContext';\n\nexport interface NavigationTreeProps {\n children: React.ReactNode;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeContainer = ({\n children,\n defaultCollapseIcon = <ChevronDownIcon />,\n defaultExpandIcon = <ChevronRightIcon />,\n fullWidth = false,\n ...props\n}: NavigationTreeProps & NavigationContainerProps) => {\n const contextValue = useMemo(\n () => ({ defaultCollapseIcon, defaultExpandIcon, fullWidth }),\n [defaultCollapseIcon, defaultExpandIcon, fullWidth],\n );\n\n return (\n <NavigationTreeContext.Provider value={contextValue}>\n <NavigationContainer {...props}>{children}</NavigationContainer>\n </NavigationTreeContext.Provider>\n );\n};\n"],"mappings":";;;;;;;;AAeA,IAAa,2BAA2B,EACtC,UACA,sBAAsB,iBAAA,GAAA,kBAAA,IAAA,CAACA,sBAAAA,iBAAD,CAAkB,CAAA,GACxC,oBAAoB,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,kBAAD,CAAmB,CAAA,GACvC,YAAY,OACZ,GAAG,YACiD;CACpD,MAAM,gBAAA,GAAeC,MAAAA,QAAAA,QACZ;EAAE;EAAqB;EAAmB;CAAU,IAC3D;EAAC;EAAqB;EAAmB;CAAS,CACpD;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,8BAAAA,sBAAsB,UAAvB;EAAgC,OAAO;EACrC,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,mBAAAA,qBAAD;GAAqB,GAAI;GAAQ;EAA8B,CAAA;CACjC,CAAA;AAEpC"}
@@ -1,22 +1,27 @@
1
1
  import { NavigationContainer } from "../Navigation/Navigation.js";
2
+ import { NavigationTreeContext } from "./NavigationTreeContext.js";
2
3
  import { ChevronDownIcon, ChevronRightIcon } from "@radix-ui/react-icons";
3
- import React from "react";
4
+ import { useMemo } from "react";
4
5
  import { jsx } from "react/jsx-runtime";
5
- //#region components/NavigationTree/NavigationTreeContainer.tsx
6
+ // components/NavigationTree/NavigationTreeContainer.tsx
6
7
  var NavigationTreeContainer = ({ children, defaultCollapseIcon = /* @__PURE__ */ jsx(ChevronDownIcon, {}), defaultExpandIcon = /* @__PURE__ */ jsx(ChevronRightIcon, {}), fullWidth = false, ...props }) => {
7
- const renderChildren = React.Children.map(children, (child) => {
8
- return React.cloneElement(child, {
9
- defaultCollapseIcon,
10
- defaultExpandIcon,
11
- fullWidth
12
- });
13
- });
14
- return /* @__PURE__ */ jsx(NavigationContainer, {
15
- ...props,
16
- children: renderChildren
8
+ const contextValue = useMemo(() => ({
9
+ defaultCollapseIcon,
10
+ defaultExpandIcon,
11
+ fullWidth
12
+ }), [
13
+ defaultCollapseIcon,
14
+ defaultExpandIcon,
15
+ fullWidth
16
+ ]);
17
+ return /* @__PURE__ */ jsx(NavigationTreeContext.Provider, {
18
+ value: contextValue,
19
+ children: /* @__PURE__ */ jsx(NavigationContainer, {
20
+ ...props,
21
+ children
22
+ })
17
23
  });
18
24
  };
19
- //#endregion
20
25
  export { NavigationTreeContainer };
21
26
 
22
27
  //# sourceMappingURL=NavigationTreeContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationTreeContainer.js","names":[],"sources":["../../../components/NavigationTree/NavigationTreeContainer.tsx"],"sourcesContent":["import { ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';\nimport React from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationContainer, NavigationContainerProps } from '../Navigation';\n\nexport interface NavigationTreeProps {\n children: React.ReactNode;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeContainer = ({\n children,\n defaultCollapseIcon = <ChevronDownIcon />,\n defaultExpandIcon = <ChevronRightIcon />,\n fullWidth = false,\n ...props\n}: NavigationTreeProps & NavigationContainerProps) => {\n const renderChildren = React.Children.map(children, (child) => {\n return React.cloneElement(child as React.ReactElement, {\n defaultCollapseIcon,\n defaultExpandIcon,\n fullWidth,\n });\n });\n\n return <NavigationContainer {...props}>{renderChildren}</NavigationContainer>;\n};\n"],"mappings":";;;;;AAcA,IAAa,2BAA2B,EACtC,UACA,sBAAsB,oBAAC,iBAAD,CAAkB,CAAA,GACxC,oBAAoB,oBAAC,kBAAD,CAAmB,CAAA,GACvC,YAAY,OACZ,GAAG,YACiD;CACpD,MAAM,iBAAiB,MAAM,SAAS,IAAI,WAAW,UAAU;EAC7D,OAAO,MAAM,aAAa,OAA6B;GACrD;GACA;GACA;EACF,CAAC;CACH,CAAC;CAED,OAAO,oBAAC,qBAAD;EAAqB,GAAI;YAAQ;CAAoC,CAAA;AAC9E"}
1
+ {"version":3,"file":"NavigationTreeContainer.js","names":[],"sources":["../../../components/NavigationTree/NavigationTreeContainer.tsx"],"sourcesContent":["import { ChevronDownIcon, ChevronRightIcon } from '@radix-ui/react-icons';\nimport React, { useMemo } from 'react';\n\nimport { CSS } from '../../stitches.config';\nimport { NavigationContainer, NavigationContainerProps } from '../Navigation';\nimport { NavigationTreeContext } from './NavigationTreeContext';\n\nexport interface NavigationTreeProps {\n children: React.ReactNode;\n defaultExpandIcon?: React.ReactNode;\n defaultCollapseIcon?: React.ReactNode;\n css?: CSS;\n fullWidth?: boolean;\n}\n\nexport const NavigationTreeContainer = ({\n children,\n defaultCollapseIcon = <ChevronDownIcon />,\n defaultExpandIcon = <ChevronRightIcon />,\n fullWidth = false,\n ...props\n}: NavigationTreeProps & NavigationContainerProps) => {\n const contextValue = useMemo(\n () => ({ defaultCollapseIcon, defaultExpandIcon, fullWidth }),\n [defaultCollapseIcon, defaultExpandIcon, fullWidth],\n );\n\n return (\n <NavigationTreeContext.Provider value={contextValue}>\n <NavigationContainer {...props}>{children}</NavigationContainer>\n </NavigationTreeContext.Provider>\n );\n};\n"],"mappings":";;;;;;AAeA,IAAa,2BAA2B,EACtC,UACA,sBAAsB,oBAAC,iBAAD,CAAkB,CAAA,GACxC,oBAAoB,oBAAC,kBAAD,CAAmB,CAAA,GACvC,YAAY,OACZ,GAAG,YACiD;CACpD,MAAM,eAAe,eACZ;EAAE;EAAqB;EAAmB;CAAU,IAC3D;EAAC;EAAqB;EAAmB;CAAS,CACpD;CAEA,OACE,oBAAC,sBAAsB,UAAvB;EAAgC,OAAO;EACrC,UAAA,oBAAC,qBAAD;GAAqB,GAAI;GAAQ;EAA8B,CAAA;CACjC,CAAA;AAEpC"}