@traefik-labs/faency 12.2.1 → 12.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (565) hide show
  1. package/README.md +2 -2
  2. package/dist/_virtual/_rolldown/runtime.cjs +33 -0
  3. package/dist/_virtual/_rolldown/runtime.js +13 -0
  4. package/dist/colors/deepBlue.cjs +68 -59
  5. package/dist/colors/deepBlue.cjs.map +1 -1
  6. package/dist/colors/deepBlue.js +64 -59
  7. package/dist/colors/deepBlue.js.map +1 -1
  8. package/dist/colors/elevation.cjs +28 -19
  9. package/dist/colors/elevation.cjs.map +1 -1
  10. package/dist/colors/elevation.js +24 -19
  11. package/dist/colors/elevation.js.map +1 -1
  12. package/dist/colors/grayBlue.cjs +68 -59
  13. package/dist/colors/grayBlue.cjs.map +1 -1
  14. package/dist/colors/grayBlue.js +64 -59
  15. package/dist/colors/grayBlue.js.map +1 -1
  16. package/dist/colors/index.cjs +68 -83
  17. package/dist/colors/index.cjs.map +1 -1
  18. package/dist/colors/index.js +68 -85
  19. package/dist/colors/index.js.map +1 -1
  20. package/dist/colors/neon.cjs +68 -59
  21. package/dist/colors/neon.cjs.map +1 -1
  22. package/dist/colors/neon.js +64 -59
  23. package/dist/colors/neon.js.map +1 -1
  24. package/dist/colors/orange.cjs +68 -59
  25. package/dist/colors/orange.cjs.map +1 -1
  26. package/dist/colors/orange.js +64 -59
  27. package/dist/colors/orange.js.map +1 -1
  28. package/dist/colors/red.cjs +68 -59
  29. package/dist/colors/red.cjs.map +1 -1
  30. package/dist/colors/red.js +64 -59
  31. package/dist/colors/red.js.map +1 -1
  32. package/dist/components/AccessibleIcon/AccessibleIcon.cjs +8 -22
  33. package/dist/components/AccessibleIcon/AccessibleIcon.cjs.map +1 -1
  34. package/dist/components/AccessibleIcon/AccessibleIcon.js +6 -5
  35. package/dist/components/AccessibleIcon/AccessibleIcon.js.map +1 -1
  36. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs +8 -22
  37. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.cjs.map +1 -1
  38. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js +6 -5
  39. package/dist/components/AccessibleIcon/AccessibleIcon.vanilla.js.map +1 -1
  40. package/dist/components/Accordion/Accordion.cjs +113 -145
  41. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  42. package/dist/components/Accordion/Accordion.js +108 -131
  43. package/dist/components/Accordion/Accordion.js.map +1 -1
  44. package/dist/components/Accordion/Accordion.themes.cjs +30 -21
  45. package/dist/components/Accordion/Accordion.themes.cjs.map +1 -1
  46. package/dist/components/Accordion/Accordion.themes.js +20 -19
  47. package/dist/components/Accordion/Accordion.themes.js.map +1 -1
  48. package/dist/components/Alert/Alert.cjs +15 -38
  49. package/dist/components/Alert/Alert.cjs.map +1 -1
  50. package/dist/components/Alert/Alert.js +14 -37
  51. package/dist/components/Alert/Alert.js.map +1 -1
  52. package/dist/components/AriaTable/AriaTable.cjs +154 -185
  53. package/dist/components/AriaTable/AriaTable.cjs.map +1 -1
  54. package/dist/components/AriaTable/AriaTable.js +151 -191
  55. package/dist/components/AriaTable/AriaTable.js.map +1 -1
  56. package/dist/components/Avatar/Avatar.cjs +132 -170
  57. package/dist/components/Avatar/Avatar.cjs.map +1 -1
  58. package/dist/components/Avatar/Avatar.js +128 -152
  59. package/dist/components/Avatar/Avatar.js.map +1 -1
  60. package/dist/components/Avatar/Avatar.vanilla.cjs +42 -39
  61. package/dist/components/Avatar/Avatar.vanilla.cjs.map +1 -1
  62. package/dist/components/Avatar/Avatar.vanilla.css.cjs +50 -6
  63. package/dist/components/Avatar/Avatar.vanilla.css.cjs.map +1 -1
  64. package/dist/components/Avatar/Avatar.vanilla.css.js +49 -8
  65. package/dist/components/Avatar/Avatar.vanilla.css.js.map +1 -1
  66. package/dist/components/Avatar/Avatar.vanilla.js +38 -21
  67. package/dist/components/Avatar/Avatar.vanilla.js.map +1 -1
  68. package/dist/components/Badge/Badge.cjs +106 -132
  69. package/dist/components/Badge/Badge.cjs.map +1 -1
  70. package/dist/components/Badge/Badge.js +103 -131
  71. package/dist/components/Badge/Badge.js.map +1 -1
  72. package/dist/components/Badge/Badge.theme.cjs +10 -9
  73. package/dist/components/Badge/Badge.theme.cjs.map +1 -1
  74. package/dist/components/Badge/Badge.theme.js +11 -11
  75. package/dist/components/Badge/Badge.theme.js.map +1 -1
  76. package/dist/components/Badge/Badge.themes.cjs +24 -15
  77. package/dist/components/Badge/Badge.themes.cjs.map +1 -1
  78. package/dist/components/Badge/Badge.themes.js +14 -13
  79. package/dist/components/Badge/Badge.themes.js.map +1 -1
  80. package/dist/components/Badge/Badge.vanilla.cjs +42 -45
  81. package/dist/components/Badge/Badge.vanilla.cjs.map +1 -1
  82. package/dist/components/Badge/Badge.vanilla.css.cjs +116 -6
  83. package/dist/components/Badge/Badge.vanilla.css.cjs.map +1 -1
  84. package/dist/components/Badge/Badge.vanilla.css.js +115 -7
  85. package/dist/components/Badge/Badge.vanilla.css.js.map +1 -1
  86. package/dist/components/Badge/Badge.vanilla.js +40 -45
  87. package/dist/components/Badge/Badge.vanilla.js.map +1 -1
  88. package/dist/components/Blockquote/Blockquote.cjs +9 -8
  89. package/dist/components/Blockquote/Blockquote.cjs.map +1 -1
  90. package/dist/components/Blockquote/Blockquote.js +8 -7
  91. package/dist/components/Blockquote/Blockquote.js.map +1 -1
  92. package/dist/components/Blockquote/Blockquote.vanilla.cjs +35 -44
  93. package/dist/components/Blockquote/Blockquote.vanilla.cjs.map +1 -1
  94. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs +53 -5
  95. package/dist/components/Blockquote/Blockquote.vanilla.css.cjs.map +1 -1
  96. package/dist/components/Blockquote/Blockquote.vanilla.css.js +53 -5
  97. package/dist/components/Blockquote/Blockquote.vanilla.css.js.map +1 -1
  98. package/dist/components/Blockquote/Blockquote.vanilla.js +32 -42
  99. package/dist/components/Blockquote/Blockquote.vanilla.js.map +1 -1
  100. package/dist/components/Box/Box.cjs +5 -8
  101. package/dist/components/Box/Box.cjs.map +1 -1
  102. package/dist/components/Box/Box.js +6 -8
  103. package/dist/components/Box/Box.js.map +1 -1
  104. package/dist/components/Box/Box.vanilla.cjs +28 -31
  105. package/dist/components/Box/Box.vanilla.cjs.map +1 -1
  106. package/dist/components/Box/Box.vanilla.css.cjs +4 -3
  107. package/dist/components/Box/Box.vanilla.css.cjs.map +1 -1
  108. package/dist/components/Box/Box.vanilla.css.js +5 -4
  109. package/dist/components/Box/Box.vanilla.css.js.map +1 -1
  110. package/dist/components/Box/Box.vanilla.js +25 -29
  111. package/dist/components/Box/Box.vanilla.js.map +1 -1
  112. package/dist/components/Bubble/Bubble.cjs +96 -78
  113. package/dist/components/Bubble/Bubble.cjs.map +1 -1
  114. package/dist/components/Bubble/Bubble.js +96 -80
  115. package/dist/components/Bubble/Bubble.js.map +1 -1
  116. package/dist/components/Bubble/Bubble.vanilla.cjs +32 -32
  117. package/dist/components/Bubble/Bubble.vanilla.cjs.map +1 -1
  118. package/dist/components/Bubble/Bubble.vanilla.css.cjs +32 -5
  119. package/dist/components/Bubble/Bubble.vanilla.css.cjs.map +1 -1
  120. package/dist/components/Bubble/Bubble.vanilla.css.js +32 -5
  121. package/dist/components/Bubble/Bubble.vanilla.css.js.map +1 -1
  122. package/dist/components/Bubble/Bubble.vanilla.js +29 -30
  123. package/dist/components/Bubble/Bubble.vanilla.js.map +1 -1
  124. package/dist/components/Button/Button.cjs +228 -284
  125. package/dist/components/Button/Button.cjs.map +1 -1
  126. package/dist/components/Button/Button.js +225 -284
  127. package/dist/components/Button/Button.js.map +1 -1
  128. package/dist/components/Button/Button.themes.cjs +46 -37
  129. package/dist/components/Button/Button.themes.cjs.map +1 -1
  130. package/dist/components/Button/Button.themes.js +36 -35
  131. package/dist/components/Button/Button.themes.js.map +1 -1
  132. package/dist/components/Button/Button.vanilla.cjs +34 -43
  133. package/dist/components/Button/Button.vanilla.cjs.map +1 -1
  134. package/dist/components/Button/Button.vanilla.css.cjs +68 -5
  135. package/dist/components/Button/Button.vanilla.css.cjs.map +1 -1
  136. package/dist/components/Button/Button.vanilla.css.js +68 -5
  137. package/dist/components/Button/Button.vanilla.css.js.map +1 -1
  138. package/dist/components/Button/Button.vanilla.js +31 -41
  139. package/dist/components/Button/Button.vanilla.js.map +1 -1
  140. package/dist/components/ButtonSwitch/ButtonSwitch.cjs +53 -77
  141. package/dist/components/ButtonSwitch/ButtonSwitch.cjs.map +1 -1
  142. package/dist/components/ButtonSwitch/ButtonSwitch.js +51 -61
  143. package/dist/components/ButtonSwitch/ButtonSwitch.js.map +1 -1
  144. package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs +27 -20
  145. package/dist/components/ButtonSwitch/ButtonSwitch.themes.cjs.map +1 -1
  146. package/dist/components/ButtonSwitch/ButtonSwitch.themes.js +20 -19
  147. package/dist/components/ButtonSwitch/ButtonSwitch.themes.js.map +1 -1
  148. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs +65 -99
  149. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.cjs.map +1 -1
  150. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs +4 -3
  151. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.cjs.map +1 -1
  152. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js +5 -5
  153. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.css.js.map +1 -1
  154. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js +61 -81
  155. package/dist/components/ButtonSwitch/ButtonSwitch.vanilla.js.map +1 -1
  156. package/dist/components/Card/Card.cjs +77 -98
  157. package/dist/components/Card/Card.cjs.map +1 -1
  158. package/dist/components/Card/Card.js +74 -97
  159. package/dist/components/Card/Card.js.map +1 -1
  160. package/dist/components/Card/Card.theme.cjs +18 -22
  161. package/dist/components/Card/Card.theme.cjs.map +1 -1
  162. package/dist/components/Card/Card.theme.js +19 -24
  163. package/dist/components/Card/Card.theme.js.map +1 -1
  164. package/dist/components/Card/Card.themes.cjs +38 -29
  165. package/dist/components/Card/Card.themes.cjs.map +1 -1
  166. package/dist/components/Card/Card.themes.js +28 -27
  167. package/dist/components/Card/Card.themes.js.map +1 -1
  168. package/dist/components/Card/Card.vanilla.cjs +35 -41
  169. package/dist/components/Card/Card.vanilla.cjs.map +1 -1
  170. package/dist/components/Card/Card.vanilla.css.cjs +46 -7
  171. package/dist/components/Card/Card.vanilla.css.cjs.map +1 -1
  172. package/dist/components/Card/Card.vanilla.css.js +45 -8
  173. package/dist/components/Card/Card.vanilla.css.js.map +1 -1
  174. package/dist/components/Card/Card.vanilla.js +33 -40
  175. package/dist/components/Card/Card.vanilla.js.map +1 -1
  176. package/dist/components/Checkbox/Checkbox.cjs +84 -112
  177. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  178. package/dist/components/Checkbox/Checkbox.js +80 -94
  179. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  180. package/dist/components/Checkbox/Checkbox.themes.cjs +44 -35
  181. package/dist/components/Checkbox/Checkbox.themes.cjs.map +1 -1
  182. package/dist/components/Checkbox/Checkbox.themes.js +34 -33
  183. package/dist/components/Checkbox/Checkbox.themes.js.map +1 -1
  184. package/dist/components/CodeBlock/CodeBlock.cjs +154 -174
  185. package/dist/components/CodeBlock/CodeBlock.cjs.map +1 -1
  186. package/dist/components/CodeBlock/CodeBlock.js +150 -172
  187. package/dist/components/CodeBlock/CodeBlock.js.map +1 -1
  188. package/dist/components/CodeBlock/CodeBlock.themes.cjs +21 -18
  189. package/dist/components/CodeBlock/CodeBlock.themes.cjs.map +1 -1
  190. package/dist/components/CodeBlock/CodeBlock.themes.js +14 -17
  191. package/dist/components/CodeBlock/CodeBlock.themes.js.map +1 -1
  192. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs +131 -158
  193. package/dist/components/CodeBlock/CodeBlock.vanilla.cjs.map +1 -1
  194. package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs +4 -3
  195. package/dist/components/CodeBlock/CodeBlock.vanilla.css.cjs.map +1 -1
  196. package/dist/components/CodeBlock/CodeBlock.vanilla.css.js +5 -12
  197. package/dist/components/CodeBlock/CodeBlock.vanilla.css.js.map +1 -1
  198. package/dist/components/CodeBlock/CodeBlock.vanilla.js +127 -156
  199. package/dist/components/CodeBlock/CodeBlock.vanilla.js.map +1 -1
  200. package/dist/components/Container/Container.cjs +20 -36
  201. package/dist/components/Container/Container.cjs.map +1 -1
  202. package/dist/components/Container/Container.js +21 -36
  203. package/dist/components/Container/Container.js.map +1 -1
  204. package/dist/components/Container/Container.vanilla.cjs +32 -33
  205. package/dist/components/Container/Container.vanilla.cjs.map +1 -1
  206. package/dist/components/Container/Container.vanilla.css.cjs +19 -5
  207. package/dist/components/Container/Container.vanilla.css.cjs.map +1 -1
  208. package/dist/components/Container/Container.vanilla.css.js +19 -5
  209. package/dist/components/Container/Container.vanilla.css.js.map +1 -1
  210. package/dist/components/Container/Container.vanilla.js +28 -31
  211. package/dist/components/Container/Container.vanilla.js.map +1 -1
  212. package/dist/components/DateTimePicker/DateTimePicker.cjs +264 -279
  213. package/dist/components/DateTimePicker/DateTimePicker.cjs.map +1 -1
  214. package/dist/components/DateTimePicker/DateTimePicker.js +258 -275
  215. package/dist/components/DateTimePicker/DateTimePicker.js.map +1 -1
  216. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs +142 -155
  217. package/dist/components/DateTimePickerInput/DateTimePickerInput.cjs.map +1 -1
  218. package/dist/components/DateTimePickerInput/DateTimePickerInput.js +139 -154
  219. package/dist/components/DateTimePickerInput/DateTimePickerInput.js.map +1 -1
  220. package/dist/components/Dialog/Dialog.cjs +68 -78
  221. package/dist/components/Dialog/Dialog.cjs.map +1 -1
  222. package/dist/components/Dialog/Dialog.js +63 -68
  223. package/dist/components/Dialog/Dialog.js.map +1 -1
  224. package/dist/components/Dialog/Dialog.themes.cjs +15 -12
  225. package/dist/components/Dialog/Dialog.themes.cjs.map +1 -1
  226. package/dist/components/Dialog/Dialog.themes.js +8 -11
  227. package/dist/components/Dialog/Dialog.themes.js.map +1 -1
  228. package/dist/components/DropdownMenu/DropdownMenu.cjs +64 -58
  229. package/dist/components/DropdownMenu/DropdownMenu.cjs.map +1 -1
  230. package/dist/components/DropdownMenu/DropdownMenu.js +59 -49
  231. package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
  232. package/dist/components/DropdownMenu/styles.cjs +39 -47
  233. package/dist/components/DropdownMenu/styles.cjs.map +1 -1
  234. package/dist/components/DropdownMenu/styles.js +38 -49
  235. package/dist/components/DropdownMenu/styles.js.map +1 -1
  236. package/dist/components/Elevation/Elevation.cjs +31 -36
  237. package/dist/components/Elevation/Elevation.cjs.map +1 -1
  238. package/dist/components/Elevation/Elevation.js +31 -37
  239. package/dist/components/Elevation/Elevation.js.map +1 -1
  240. package/dist/components/Elevation/Elevation.vanilla.cjs +28 -28
  241. package/dist/components/Elevation/Elevation.vanilla.cjs.map +1 -1
  242. package/dist/components/Elevation/Elevation.vanilla.css.cjs +18 -5
  243. package/dist/components/Elevation/Elevation.vanilla.css.cjs.map +1 -1
  244. package/dist/components/Elevation/Elevation.vanilla.css.js +18 -5
  245. package/dist/components/Elevation/Elevation.vanilla.css.js.map +1 -1
  246. package/dist/components/Elevation/Elevation.vanilla.js +25 -26
  247. package/dist/components/Elevation/Elevation.vanilla.js.map +1 -1
  248. package/dist/components/FaencyProvider.cjs +11 -7
  249. package/dist/components/FaencyProvider.cjs.map +1 -1
  250. package/dist/components/FaencyProvider.js +8 -6
  251. package/dist/components/FaencyProvider.js.map +1 -1
  252. package/dist/components/Flex/Flex.cjs +56 -118
  253. package/dist/components/Flex/Flex.cjs.map +1 -1
  254. package/dist/components/Flex/Flex.js +57 -118
  255. package/dist/components/Flex/Flex.js.map +1 -1
  256. package/dist/components/Flex/Flex.vanilla.cjs +35 -33
  257. package/dist/components/Flex/Flex.vanilla.cjs.map +1 -1
  258. package/dist/components/Flex/Flex.vanilla.css.cjs +54 -5
  259. package/dist/components/Flex/Flex.vanilla.css.cjs.map +1 -1
  260. package/dist/components/Flex/Flex.vanilla.css.js +54 -5
  261. package/dist/components/Flex/Flex.vanilla.css.js.map +1 -1
  262. package/dist/components/Flex/Flex.vanilla.js +31 -31
  263. package/dist/components/Flex/Flex.vanilla.js.map +1 -1
  264. package/dist/components/Grid/Grid.cjs +68 -158
  265. package/dist/components/Grid/Grid.cjs.map +1 -1
  266. package/dist/components/Grid/Grid.js +69 -158
  267. package/dist/components/Grid/Grid.js.map +1 -1
  268. package/dist/components/Grid/Grid.vanilla.cjs +39 -51
  269. package/dist/components/Grid/Grid.vanilla.cjs.map +1 -1
  270. package/dist/components/Grid/Grid.vanilla.css.cjs +65 -5
  271. package/dist/components/Grid/Grid.vanilla.css.cjs.map +1 -1
  272. package/dist/components/Grid/Grid.vanilla.css.js +65 -5
  273. package/dist/components/Grid/Grid.vanilla.css.js.map +1 -1
  274. package/dist/components/Grid/Grid.vanilla.js +35 -49
  275. package/dist/components/Grid/Grid.vanilla.js.map +1 -1
  276. package/dist/components/Heading/Heading.cjs +39 -48
  277. package/dist/components/Heading/Heading.cjs.map +1 -1
  278. package/dist/components/Heading/Heading.js +39 -53
  279. package/dist/components/Heading/Heading.js.map +1 -1
  280. package/dist/components/Heading/Heading.themes.cjs +18 -13
  281. package/dist/components/Heading/Heading.themes.cjs.map +1 -1
  282. package/dist/components/Heading/Heading.themes.js +8 -11
  283. package/dist/components/Heading/Heading.themes.js.map +1 -1
  284. package/dist/components/IconButton/IconButton.cjs +80 -107
  285. package/dist/components/IconButton/IconButton.cjs.map +1 -1
  286. package/dist/components/IconButton/IconButton.js +79 -106
  287. package/dist/components/IconButton/IconButton.js.map +1 -1
  288. package/dist/components/IconButton/IconButton.themes.cjs +25 -18
  289. package/dist/components/IconButton/IconButton.themes.cjs.map +1 -1
  290. package/dist/components/IconButton/IconButton.themes.js +18 -17
  291. package/dist/components/IconButton/IconButton.themes.js.map +1 -1
  292. package/dist/components/IconButton/IconButton.vanilla.cjs +31 -32
  293. package/dist/components/IconButton/IconButton.vanilla.cjs.map +1 -1
  294. package/dist/components/IconButton/IconButton.vanilla.css.cjs +29 -5
  295. package/dist/components/IconButton/IconButton.vanilla.css.cjs.map +1 -1
  296. package/dist/components/IconButton/IconButton.vanilla.css.js +29 -5
  297. package/dist/components/IconButton/IconButton.vanilla.css.js.map +1 -1
  298. package/dist/components/IconButton/IconButton.vanilla.js +28 -30
  299. package/dist/components/IconButton/IconButton.vanilla.js.map +1 -1
  300. package/dist/components/Image/Image.cjs +7 -8
  301. package/dist/components/Image/Image.cjs.map +1 -1
  302. package/dist/components/Image/Image.js +8 -8
  303. package/dist/components/Image/Image.js.map +1 -1
  304. package/dist/components/Image/Image.vanilla.cjs +28 -31
  305. package/dist/components/Image/Image.vanilla.cjs.map +1 -1
  306. package/dist/components/Image/Image.vanilla.css.cjs +4 -3
  307. package/dist/components/Image/Image.vanilla.css.cjs.map +1 -1
  308. package/dist/components/Image/Image.vanilla.css.js +5 -4
  309. package/dist/components/Image/Image.vanilla.css.js.map +1 -1
  310. package/dist/components/Image/Image.vanilla.js +25 -29
  311. package/dist/components/Image/Image.vanilla.js.map +1 -1
  312. package/dist/components/Input/Input.cjs +262 -374
  313. package/dist/components/Input/Input.cjs.map +1 -1
  314. package/dist/components/Input/Input.js +259 -373
  315. package/dist/components/Input/Input.js.map +1 -1
  316. package/dist/components/Input/Input.theme.cjs +27 -36
  317. package/dist/components/Input/Input.theme.cjs.map +1 -1
  318. package/dist/components/Input/Input.theme.js +25 -37
  319. package/dist/components/Input/Input.theme.js.map +1 -1
  320. package/dist/components/Input/Input.themes.cjs +38 -29
  321. package/dist/components/Input/Input.themes.cjs.map +1 -1
  322. package/dist/components/Input/Input.themes.js +28 -27
  323. package/dist/components/Input/Input.themes.js.map +1 -1
  324. package/dist/components/Input/Input.vanilla.cjs +71 -54
  325. package/dist/components/Input/Input.vanilla.cjs.map +1 -1
  326. package/dist/components/Input/Input.vanilla.css.cjs +107 -7
  327. package/dist/components/Input/Input.vanilla.css.cjs.map +1 -1
  328. package/dist/components/Input/Input.vanilla.css.js +106 -9
  329. package/dist/components/Input/Input.vanilla.css.js.map +1 -1
  330. package/dist/components/Input/Input.vanilla.js +68 -53
  331. package/dist/components/Input/Input.vanilla.js.map +1 -1
  332. package/dist/components/Label/Label.cjs +20 -34
  333. package/dist/components/Label/Label.cjs.map +1 -1
  334. package/dist/components/Label/Label.js +17 -16
  335. package/dist/components/Label/Label.js.map +1 -1
  336. package/dist/components/Label/Label.vanilla.cjs +35 -44
  337. package/dist/components/Label/Label.vanilla.cjs.map +1 -1
  338. package/dist/components/Label/Label.vanilla.css.cjs +54 -6
  339. package/dist/components/Label/Label.vanilla.css.cjs.map +1 -1
  340. package/dist/components/Label/Label.vanilla.css.js +54 -6
  341. package/dist/components/Label/Label.vanilla.css.js.map +1 -1
  342. package/dist/components/Label/Label.vanilla.js +32 -42
  343. package/dist/components/Label/Label.vanilla.js.map +1 -1
  344. package/dist/components/Link/Link.cjs +55 -85
  345. package/dist/components/Link/Link.cjs.map +1 -1
  346. package/dist/components/Link/Link.js +53 -83
  347. package/dist/components/Link/Link.js.map +1 -1
  348. package/dist/components/Link/Link.themes.cjs +52 -43
  349. package/dist/components/Link/Link.themes.cjs.map +1 -1
  350. package/dist/components/Link/Link.themes.js +42 -41
  351. package/dist/components/Link/Link.themes.js.map +1 -1
  352. package/dist/components/List/List.cjs +156 -187
  353. package/dist/components/List/List.cjs.map +1 -1
  354. package/dist/components/List/List.js +151 -186
  355. package/dist/components/List/List.js.map +1 -1
  356. package/dist/components/List/List.themes.cjs +23 -16
  357. package/dist/components/List/List.themes.cjs.map +1 -1
  358. package/dist/components/List/List.themes.js +16 -15
  359. package/dist/components/List/List.themes.js.map +1 -1
  360. package/dist/components/Navigation/Navigation.cjs +149 -163
  361. package/dist/components/Navigation/Navigation.cjs.map +1 -1
  362. package/dist/components/Navigation/Navigation.js +146 -165
  363. package/dist/components/Navigation/Navigation.js.map +1 -1
  364. package/dist/components/Navigation/Navigation.themes.cjs +44 -35
  365. package/dist/components/Navigation/Navigation.themes.cjs.map +1 -1
  366. package/dist/components/Navigation/Navigation.themes.js +34 -33
  367. package/dist/components/Navigation/Navigation.themes.js.map +1 -1
  368. package/dist/components/NavigationMenu/NavigationMenu.cjs +53 -62
  369. package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
  370. package/dist/components/NavigationMenu/NavigationMenu.js +49 -51
  371. package/dist/components/NavigationMenu/NavigationMenu.js.map +1 -1
  372. package/dist/components/NavigationTree/NavigationTreeContainer.cjs +22 -22
  373. package/dist/components/NavigationTree/NavigationTreeContainer.cjs.map +1 -1
  374. package/dist/components/NavigationTree/NavigationTreeContainer.js +19 -21
  375. package/dist/components/NavigationTree/NavigationTreeContainer.js.map +1 -1
  376. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs +18 -17
  377. package/dist/components/NavigationTree/NavigationTreeDrawer.cjs.map +1 -1
  378. package/dist/components/NavigationTree/NavigationTreeDrawer.js +16 -17
  379. package/dist/components/NavigationTree/NavigationTreeDrawer.js.map +1 -1
  380. package/dist/components/NavigationTree/NavigationTreeItem.cjs +77 -103
  381. package/dist/components/NavigationTree/NavigationTreeItem.cjs.map +1 -1
  382. package/dist/components/NavigationTree/NavigationTreeItem.js +73 -101
  383. package/dist/components/NavigationTree/NavigationTreeItem.js.map +1 -1
  384. package/dist/components/Overlay.cjs +7 -8
  385. package/dist/components/Overlay.cjs.map +1 -1
  386. package/dist/components/Overlay.js +7 -9
  387. package/dist/components/Overlay.js.map +1 -1
  388. package/dist/components/Panel/Panel.cjs +10 -9
  389. package/dist/components/Panel/Panel.cjs.map +1 -1
  390. package/dist/components/Panel/Panel.js +10 -10
  391. package/dist/components/Panel/Panel.js.map +1 -1
  392. package/dist/components/Panel/Panel.theme.cjs +6 -9
  393. package/dist/components/Panel/Panel.theme.cjs.map +1 -1
  394. package/dist/components/Panel/Panel.theme.js +7 -11
  395. package/dist/components/Panel/Panel.theme.js.map +1 -1
  396. package/dist/components/Panel/Panel.vanilla.cjs +28 -27
  397. package/dist/components/Panel/Panel.vanilla.cjs.map +1 -1
  398. package/dist/components/Panel/Panel.vanilla.css.cjs +4 -3
  399. package/dist/components/Panel/Panel.vanilla.css.cjs.map +1 -1
  400. package/dist/components/Panel/Panel.vanilla.css.js +5 -4
  401. package/dist/components/Panel/Panel.vanilla.css.js.map +1 -1
  402. package/dist/components/Panel/Panel.vanilla.js +25 -25
  403. package/dist/components/Panel/Panel.vanilla.js.map +1 -1
  404. package/dist/components/Paragraph/Paragraph.cjs +42 -33
  405. package/dist/components/Paragraph/Paragraph.cjs.map +1 -1
  406. package/dist/components/Paragraph/Paragraph.js +40 -33
  407. package/dist/components/Paragraph/Paragraph.js.map +1 -1
  408. package/dist/components/Paragraph/Paragraph.vanilla.cjs +28 -32
  409. package/dist/components/Paragraph/Paragraph.vanilla.cjs.map +1 -1
  410. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs +14 -5
  411. package/dist/components/Paragraph/Paragraph.vanilla.css.cjs.map +1 -1
  412. package/dist/components/Paragraph/Paragraph.vanilla.css.js +14 -5
  413. package/dist/components/Paragraph/Paragraph.vanilla.css.js.map +1 -1
  414. package/dist/components/Paragraph/Paragraph.vanilla.js +25 -30
  415. package/dist/components/Paragraph/Paragraph.vanilla.js.map +1 -1
  416. package/dist/components/Popover/Popover.cjs +53 -77
  417. package/dist/components/Popover/Popover.cjs.map +1 -1
  418. package/dist/components/Popover/Popover.js +49 -64
  419. package/dist/components/Popover/Popover.js.map +1 -1
  420. package/dist/components/Radio/Radio.cjs +84 -119
  421. package/dist/components/Radio/Radio.cjs.map +1 -1
  422. package/dist/components/Radio/Radio.js +80 -104
  423. package/dist/components/Radio/Radio.js.map +1 -1
  424. package/dist/components/Radio/Radio.themes.cjs +36 -27
  425. package/dist/components/Radio/Radio.themes.cjs.map +1 -1
  426. package/dist/components/Radio/Radio.themes.js +26 -25
  427. package/dist/components/Radio/Radio.themes.js.map +1 -1
  428. package/dist/components/RadioAccordion/RadioAccordion.cjs +40 -42
  429. package/dist/components/RadioAccordion/RadioAccordion.cjs.map +1 -1
  430. package/dist/components/RadioAccordion/RadioAccordion.js +37 -44
  431. package/dist/components/RadioAccordion/RadioAccordion.js.map +1 -1
  432. package/dist/components/Select/Select.cjs +189 -234
  433. package/dist/components/Select/Select.cjs.map +1 -1
  434. package/dist/components/Select/Select.js +186 -233
  435. package/dist/components/Select/Select.js.map +1 -1
  436. package/dist/components/Select/Select.themes.cjs +27 -24
  437. package/dist/components/Select/Select.themes.cjs.map +1 -1
  438. package/dist/components/Select/Select.themes.js +19 -22
  439. package/dist/components/Select/Select.themes.js.map +1 -1
  440. package/dist/components/SidePanel/SidePanel.cjs +102 -121
  441. package/dist/components/SidePanel/SidePanel.cjs.map +1 -1
  442. package/dist/components/SidePanel/SidePanel.js +97 -102
  443. package/dist/components/SidePanel/SidePanel.js.map +1 -1
  444. package/dist/components/SidePanel/SidePanel.themes.cjs +15 -12
  445. package/dist/components/SidePanel/SidePanel.themes.cjs.map +1 -1
  446. package/dist/components/SidePanel/SidePanel.themes.js +8 -11
  447. package/dist/components/SidePanel/SidePanel.themes.js.map +1 -1
  448. package/dist/components/Skeleton/Skeleton.cjs +51 -63
  449. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  450. package/dist/components/Skeleton/Skeleton.js +51 -65
  451. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  452. package/dist/components/Skeleton/Skeleton.themes.cjs +21 -14
  453. package/dist/components/Skeleton/Skeleton.themes.cjs.map +1 -1
  454. package/dist/components/Skeleton/Skeleton.themes.js +14 -13
  455. package/dist/components/Skeleton/Skeleton.themes.js.map +1 -1
  456. package/dist/components/Skeleton/Skeleton.vanilla.cjs +28 -32
  457. package/dist/components/Skeleton/Skeleton.vanilla.cjs.map +1 -1
  458. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs +17 -5
  459. package/dist/components/Skeleton/Skeleton.vanilla.css.cjs.map +1 -1
  460. package/dist/components/Skeleton/Skeleton.vanilla.css.js +17 -5
  461. package/dist/components/Skeleton/Skeleton.vanilla.css.js.map +1 -1
  462. package/dist/components/Skeleton/Skeleton.vanilla.js +25 -30
  463. package/dist/components/Skeleton/Skeleton.vanilla.js.map +1 -1
  464. package/dist/components/Switch/Switch.cjs +81 -113
  465. package/dist/components/Switch/Switch.cjs.map +1 -1
  466. package/dist/components/Switch/Switch.js +77 -95
  467. package/dist/components/Switch/Switch.js.map +1 -1
  468. package/dist/components/Switch/Switch.themes.cjs +28 -19
  469. package/dist/components/Switch/Switch.themes.cjs.map +1 -1
  470. package/dist/components/Switch/Switch.themes.js +18 -17
  471. package/dist/components/Switch/Switch.themes.js.map +1 -1
  472. package/dist/components/Table/Table.cjs +197 -272
  473. package/dist/components/Table/Table.cjs.map +1 -1
  474. package/dist/components/Table/Table.js +193 -278
  475. package/dist/components/Table/Table.js.map +1 -1
  476. package/dist/components/Table/Table.themes.cjs +42 -33
  477. package/dist/components/Table/Table.themes.cjs.map +1 -1
  478. package/dist/components/Table/Table.themes.js +32 -31
  479. package/dist/components/Table/Table.themes.js.map +1 -1
  480. package/dist/components/Tabs/Tabs.cjs +34 -52
  481. package/dist/components/Tabs/Tabs.cjs.map +1 -1
  482. package/dist/components/Tabs/Tabs.js +32 -38
  483. package/dist/components/Tabs/Tabs.js.map +1 -1
  484. package/dist/components/Text/Text.cjs +64 -127
  485. package/dist/components/Text/Text.cjs.map +1 -1
  486. package/dist/components/Text/Text.js +65 -127
  487. package/dist/components/Text/Text.js.map +1 -1
  488. package/dist/components/Text/Text.themes.cjs +30 -21
  489. package/dist/components/Text/Text.themes.cjs.map +1 -1
  490. package/dist/components/Text/Text.themes.js +20 -19
  491. package/dist/components/Text/Text.themes.js.map +1 -1
  492. package/dist/components/TextField/TextField.cjs +124 -164
  493. package/dist/components/TextField/TextField.cjs.map +1 -1
  494. package/dist/components/TextField/TextField.js +119 -161
  495. package/dist/components/TextField/TextField.js.map +1 -1
  496. package/dist/components/TextField/TextField.vanilla.cjs +124 -164
  497. package/dist/components/TextField/TextField.vanilla.cjs.map +1 -1
  498. package/dist/components/TextField/TextField.vanilla.js +119 -161
  499. package/dist/components/TextField/TextField.vanilla.js.map +1 -1
  500. package/dist/components/Textarea/Textarea.cjs +189 -276
  501. package/dist/components/Textarea/Textarea.cjs.map +1 -1
  502. package/dist/components/Textarea/Textarea.js +185 -274
  503. package/dist/components/Textarea/Textarea.js.map +1 -1
  504. package/dist/components/Textarea/Textarea.theme.cjs +27 -36
  505. package/dist/components/Textarea/Textarea.theme.cjs.map +1 -1
  506. package/dist/components/Textarea/Textarea.theme.js +25 -37
  507. package/dist/components/Textarea/Textarea.theme.js.map +1 -1
  508. package/dist/components/Textarea/Textarea.themes.cjs +38 -29
  509. package/dist/components/Textarea/Textarea.themes.cjs.map +1 -1
  510. package/dist/components/Textarea/Textarea.themes.js +28 -27
  511. package/dist/components/Textarea/Textarea.themes.js.map +1 -1
  512. package/dist/components/Textarea/Textarea.vanilla.cjs +83 -95
  513. package/dist/components/Textarea/Textarea.vanilla.cjs.map +1 -1
  514. package/dist/components/Textarea/Textarea.vanilla.css.cjs +41 -6
  515. package/dist/components/Textarea/Textarea.vanilla.css.cjs.map +1 -1
  516. package/dist/components/Textarea/Textarea.vanilla.css.js +40 -8
  517. package/dist/components/Textarea/Textarea.vanilla.css.js.map +1 -1
  518. package/dist/components/Textarea/Textarea.vanilla.js +79 -93
  519. package/dist/components/Textarea/Textarea.vanilla.js.map +1 -1
  520. package/dist/components/Tooltip/Tooltip.cjs +67 -98
  521. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  522. package/dist/components/Tooltip/Tooltip.js +62 -82
  523. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  524. package/dist/components/Tooltip/Tooltip.themes.cjs +21 -14
  525. package/dist/components/Tooltip/Tooltip.themes.cjs.map +1 -1
  526. package/dist/components/Tooltip/Tooltip.themes.js +14 -13
  527. package/dist/components/Tooltip/Tooltip.themes.js.map +1 -1
  528. package/dist/components/VisuallyHidden/VisuallyHidden.cjs +8 -22
  529. package/dist/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
  530. package/dist/components/VisuallyHidden/VisuallyHidden.js +6 -5
  531. package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  532. package/dist/components/colorSchemeContext.cjs +43 -37
  533. package/dist/components/colorSchemeContext.cjs.map +1 -1
  534. package/dist/components/colorSchemeContext.js +41 -38
  535. package/dist/components/colorSchemeContext.js.map +1 -1
  536. package/dist/faency.css +291 -291
  537. package/dist/index.cjs +253 -250
  538. package/dist/index.js +31 -198
  539. package/dist/stitches.config.cjs +271 -262
  540. package/dist/stitches.config.cjs.map +1 -1
  541. package/dist/stitches.config.js +268 -271
  542. package/dist/stitches.config.js.map +1 -1
  543. package/dist/styles/cssProps.cjs +265 -292
  544. package/dist/styles/cssProps.cjs.map +1 -1
  545. package/dist/styles/cssProps.js +266 -293
  546. package/dist/styles/cssProps.js.map +1 -1
  547. package/dist/styles/themeContext.cjs +110 -115
  548. package/dist/styles/themeContext.cjs.map +1 -1
  549. package/dist/styles/themeContext.js +107 -115
  550. package/dist/styles/themeContext.js.map +1 -1
  551. package/dist/styles/themes.css.cjs +24 -4
  552. package/dist/styles/themes.css.cjs.map +1 -1
  553. package/dist/styles/themes.css.js +25 -7
  554. package/dist/styles/themes.css.js.map +1 -1
  555. package/dist/utils/deepMerge.cjs +25 -0
  556. package/dist/utils/deepMerge.cjs.map +1 -0
  557. package/dist/utils/deepMerge.js +25 -0
  558. package/dist/utils/deepMerge.js.map +1 -0
  559. package/dist/utils/getPrimaryColorInfo.cjs +10 -10
  560. package/dist/utils/getPrimaryColorInfo.cjs.map +1 -1
  561. package/dist/utils/getPrimaryColorInfo.js +10 -11
  562. package/dist/utils/getPrimaryColorInfo.js.map +1 -1
  563. package/package.json +93 -122
  564. package/dist/index.cjs.map +0 -1
  565. package/dist/index.js.map +0 -1
@@ -1,88 +1,58 @@
1
1
  import { styled } from "../../stitches.config.js";
2
2
  import { Text } from "../Text/Text.js";
3
3
  styled("a", {
4
- color: "inherit",
5
- textDecoration: "inherit",
6
- fontWeight: "inherit"
4
+ color: "inherit",
5
+ textDecoration: "inherit",
6
+ fontWeight: "inherit"
7
7
  });
8
- const Link = styled("a", {
9
- alignItems: "center",
10
- gap: "$1",
11
- flexShrink: 0,
12
- outline: "none",
13
- textDecoration: "underline",
14
- textUnderlineOffset: "3px",
15
- textDecorationColor: "$slate4",
16
- WebkitTapHighlightColor: "rgba(0,0,0,0)",
17
- lineHeight: "inherit",
18
- fontFamily: "$rubik",
19
- "@hover": {
20
- "&:hover": {
21
- textDecorationLine: "underline"
22
- }
23
- },
24
- "&:focus": {
25
- outlineWidth: "2px",
26
- outlineStyle: "solid",
27
- outlineOffset: "2px",
28
- textDecorationLine: "none"
29
- },
30
- [`& ${Text}`]: {
31
- color: "inherit"
32
- },
33
- variants: {
34
- variant: {
35
- blue: {
36
- color: "$linkBlue",
37
- textDecoration: "none",
38
- textDecorationColor: "$linkBlueTextDecoration",
39
- "&:focus": {
40
- outlineColor: "$linkBlueFocusOutline"
41
- }
42
- },
43
- primary: {
44
- color: "$linkPrimary",
45
- textDecorationColor: "$linkPrimaryTextDecoration",
46
- "@hover": {
47
- "&:hover": {
48
- textDecorationColor: "$linkPrimaryHoverTextDecoration"
49
- }
50
- },
51
- "&:focus": {
52
- outlineColor: "$linkPrimaryFocusOutline"
53
- }
54
- },
55
- subtle: {
56
- color: "$linkSubtle",
57
- textDecorationColor: "$linkSubtleTextDecoration",
58
- "@hover": {
59
- "&:hover": {
60
- textDecorationColor: "$linkSubtleHoverTextDecoration"
61
- }
62
- },
63
- "&:focus": {
64
- outlineColor: "$linkSubtleFocusOutline"
65
- }
66
- },
67
- contrast: {
68
- color: "$linkContrast",
69
- textDecorationColor: "$linkContrastTextDecoration",
70
- "@hover": {
71
- "&:hover": {
72
- textDecorationColor: "$linkContrastHoverTextDecoration"
73
- }
74
- },
75
- "&:focus": {
76
- outlineColor: "$linkContrastFocusOutline"
77
- }
78
- }
79
- }
80
- },
81
- defaultVariants: {
82
- variant: "contrast"
83
- }
8
+ var Link = styled("a", {
9
+ alignItems: "center",
10
+ gap: "$1",
11
+ flexShrink: 0,
12
+ outline: "none",
13
+ textDecoration: "underline",
14
+ textUnderlineOffset: "3px",
15
+ textDecorationColor: "$slate4",
16
+ WebkitTapHighlightColor: "rgba(0,0,0,0)",
17
+ lineHeight: "inherit",
18
+ fontFamily: "$rubik",
19
+ "@hover": { "&:hover": { textDecorationLine: "underline" } },
20
+ "&:focus": {
21
+ outlineWidth: "2px",
22
+ outlineStyle: "solid",
23
+ outlineOffset: "2px",
24
+ textDecorationLine: "none"
25
+ },
26
+ [`& ${Text}`]: { color: "inherit" },
27
+ variants: { variant: {
28
+ blue: {
29
+ color: "$linkBlue",
30
+ textDecoration: "none",
31
+ textDecorationColor: "$linkBlueTextDecoration",
32
+ "&:focus": { outlineColor: "$linkBlueFocusOutline" }
33
+ },
34
+ primary: {
35
+ color: "$linkPrimary",
36
+ textDecorationColor: "$linkPrimaryTextDecoration",
37
+ "@hover": { "&:hover": { textDecorationColor: "$linkPrimaryHoverTextDecoration" } },
38
+ "&:focus": { outlineColor: "$linkPrimaryFocusOutline" }
39
+ },
40
+ subtle: {
41
+ color: "$linkSubtle",
42
+ textDecorationColor: "$linkSubtleTextDecoration",
43
+ "@hover": { "&:hover": { textDecorationColor: "$linkSubtleHoverTextDecoration" } },
44
+ "&:focus": { outlineColor: "$linkSubtleFocusOutline" }
45
+ },
46
+ contrast: {
47
+ color: "$linkContrast",
48
+ textDecorationColor: "$linkContrastTextDecoration",
49
+ "@hover": { "&:hover": { textDecorationColor: "$linkContrastHoverTextDecoration" } },
50
+ "&:focus": { outlineColor: "$linkContrastFocusOutline" }
51
+ }
52
+ } },
53
+ defaultVariants: { variant: "contrast" }
84
54
  });
85
- export {
86
- Link
87
- };
88
- //# sourceMappingURL=Link.js.map
55
+ //#endregion
56
+ export { Link };
57
+
58
+ //# sourceMappingURL=Link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.js","sources":["../../../components/Link/Link.tsx"],"sourcesContent":["import { styled } from '../../stitches.config';\nimport { Text } from '../Text';\n\nexport const UnstyledLink = styled('a', {\n color: 'inherit',\n textDecoration: 'inherit',\n fontWeight: 'inherit',\n});\n\nexport const Link = styled('a', {\n alignItems: 'center',\n gap: '$1',\n flexShrink: 0,\n outline: 'none',\n\n textDecoration: 'underline',\n textUnderlineOffset: '3px',\n textDecorationColor: '$slate4',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n lineHeight: 'inherit',\n fontFamily: '$rubik',\n\n '@hover': {\n '&:hover': {\n textDecorationLine: 'underline',\n },\n },\n '&:focus': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineOffset: '2px',\n textDecorationLine: 'none',\n },\n [`& ${Text}`]: {\n color: 'inherit',\n },\n variants: {\n variant: {\n blue: {\n color: '$linkBlue',\n textDecoration: 'none',\n textDecorationColor: '$linkBlueTextDecoration',\n '&:focus': {\n outlineColor: '$linkBlueFocusOutline',\n },\n },\n primary: {\n color: '$linkPrimary',\n textDecorationColor: '$linkPrimaryTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkPrimaryHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkPrimaryFocusOutline',\n },\n },\n subtle: {\n color: '$linkSubtle',\n textDecorationColor: '$linkSubtleTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkSubtleHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkSubtleFocusOutline',\n },\n },\n contrast: {\n color: '$linkContrast',\n textDecorationColor: '$linkContrastTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkContrastHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkContrastFocusOutline',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'contrast',\n },\n});\n"],"names":[],"mappings":";;AAG4B,OAAO,KAAK;AAAA,EACtC,OAAO;AAAA,EACP,gBAAgB;AAAA,EAChB,YAAY;AACd,CAAC;AAEM,MAAM,OAAO,OAAO,KAAK;AAAA,EAC9B,YAAY;AAAA,EACZ,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,SAAS;AAAA,EAET,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,qBAAqB;AAAA,EACrB,yBAAyB;AAAA,EACzB,YAAY;AAAA,EACZ,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,WAAW;AAAA,MACT,oBAAoB;AAAA,IAAA;AAAA,EACtB;AAAA,EAEF,WAAW;AAAA,IACT,cAAc;AAAA,IACd,cAAc;AAAA,IACd,eAAe;AAAA,IACf,oBAAoB;AAAA,EAAA;AAAA,EAEtB,CAAC,KAAK,IAAI,EAAE,GAAG;AAAA,IACb,OAAO;AAAA,EAAA;AAAA,EAET,UAAU;AAAA,IACR,SAAS;AAAA,MACP,MAAM;AAAA,QACJ,OAAO;AAAA,QACP,gBAAgB;AAAA,QAChB,qBAAqB;AAAA,QACrB,WAAW;AAAA,UACT,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,MAEF,SAAS;AAAA,QACP,OAAO;AAAA,QACP,qBAAqB;AAAA,QACrB,UAAU;AAAA,UACR,WAAW;AAAA,YACT,qBAAqB;AAAA,UAAA;AAAA,QACvB;AAAA,QAEF,WAAW;AAAA,UACT,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,MAEF,QAAQ;AAAA,QACN,OAAO;AAAA,QACP,qBAAqB;AAAA,QACrB,UAAU;AAAA,UACR,WAAW;AAAA,YACT,qBAAqB;AAAA,UAAA;AAAA,QACvB;AAAA,QAEF,WAAW;AAAA,UACT,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,MAEF,UAAU;AAAA,QACR,OAAO;AAAA,QACP,qBAAqB;AAAA,QACrB,UAAU;AAAA,UACR,WAAW;AAAA,YACT,qBAAqB;AAAA,UAAA;AAAA,QACvB;AAAA,QAEF,WAAW;AAAA,UACT,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,IACF;AAAA,EACF;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;"}
1
+ {"version":3,"file":"Link.js","names":[],"sources":["../../../components/Link/Link.tsx"],"sourcesContent":["import { styled } from '../../stitches.config';\nimport { Text } from '../Text';\n\nexport const UnstyledLink = styled('a', {\n color: 'inherit',\n textDecoration: 'inherit',\n fontWeight: 'inherit',\n});\n\nexport const Link = styled('a', {\n alignItems: 'center',\n gap: '$1',\n flexShrink: 0,\n outline: 'none',\n\n textDecoration: 'underline',\n textUnderlineOffset: '3px',\n textDecorationColor: '$slate4',\n WebkitTapHighlightColor: 'rgba(0,0,0,0)',\n lineHeight: 'inherit',\n fontFamily: '$rubik',\n\n '@hover': {\n '&:hover': {\n textDecorationLine: 'underline',\n },\n },\n '&:focus': {\n outlineWidth: '2px',\n outlineStyle: 'solid',\n outlineOffset: '2px',\n textDecorationLine: 'none',\n },\n [`& ${Text}`]: {\n color: 'inherit',\n },\n variants: {\n variant: {\n blue: {\n color: '$linkBlue',\n textDecoration: 'none',\n textDecorationColor: '$linkBlueTextDecoration',\n '&:focus': {\n outlineColor: '$linkBlueFocusOutline',\n },\n },\n primary: {\n color: '$linkPrimary',\n textDecorationColor: '$linkPrimaryTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkPrimaryHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkPrimaryFocusOutline',\n },\n },\n subtle: {\n color: '$linkSubtle',\n textDecorationColor: '$linkSubtleTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkSubtleHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkSubtleFocusOutline',\n },\n },\n contrast: {\n color: '$linkContrast',\n textDecorationColor: '$linkContrastTextDecoration',\n '@hover': {\n '&:hover': {\n textDecorationColor: '$linkContrastHoverTextDecoration',\n },\n },\n '&:focus': {\n outlineColor: '$linkContrastFocusOutline',\n },\n },\n },\n },\n defaultVariants: {\n variant: 'contrast',\n },\n});\n"],"mappings":";;AAG4B,OAAO,KAAK;CACtC,OAAO;CACP,gBAAgB;CAChB,YAAY;CACb,CAAC;AAEF,IAAa,OAAO,OAAO,KAAK;CAC9B,YAAY;CACZ,KAAK;CACL,YAAY;CACZ,SAAS;CAET,gBAAgB;CAChB,qBAAqB;CACrB,qBAAqB;CACrB,yBAAyB;CACzB,YAAY;CACZ,YAAY;CAEZ,UAAU,EACR,WAAW,EACT,oBAAoB,aACrB,EACF;CACD,WAAW;EACT,cAAc;EACd,cAAc;EACd,eAAe;EACf,oBAAoB;EACrB;EACA,KAAK,SAAS,EACb,OAAO,WACR;CACD,UAAU,EACR,SAAS;EACP,MAAM;GACJ,OAAO;GACP,gBAAgB;GAChB,qBAAqB;GACrB,WAAW,EACT,cAAc,yBACf;GACF;EACD,SAAS;GACP,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,mCACtB,EACF;GACD,WAAW,EACT,cAAc,4BACf;GACF;EACD,QAAQ;GACN,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,kCACtB,EACF;GACD,WAAW,EACT,cAAc,2BACf;GACF;EACD,UAAU;GACR,OAAO;GACP,qBAAqB;GACrB,UAAU,EACR,WAAW,EACT,qBAAqB,oCACtB,EACF;GACD,WAAW,EACT,cAAc,6BACf;GACF;EACF,EACF;CACD,iBAAiB,EACf,SAAS,YACV;CACF,CAAC"}
@@ -1,43 +1,52 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const tinycolor = require("tinycolor2");
4
- exports.Theme = void 0;
5
- ((Theme2) => {
6
- Theme2.getLight = (primaryColor) => ({
7
- linkBlue: "$blue11",
8
- linkBlueTextDecoration: "$blue7",
9
- linkBlueHoverTextDecoration: "$blue11",
10
- linkBlueFocusOutline: "$blue8",
11
- linkContrast: "$hiContrast",
12
- linkContrastTextDecoration: "$slate8",
13
- linkContrastHoverTextDecoration: "$hiContrast",
14
- linkContrastFocusOutline: "$slate8",
15
- linkSubtle: "$deepBlue7",
16
- linkSubtleTextDecoration: "$deepBlue5",
17
- linkSubtleHoverTextDecoration: "$deepBlue7",
18
- linkSubtleFocusOutline: "$deepBlue4",
19
- linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),
20
- linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),
21
- linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),
22
- linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString()
23
- });
24
- Theme2.getDark = (primaryColor) => ({
25
- linkBlue: "$blue11",
26
- linkBlueTextDecoration: "$blue8",
27
- linkBlueHoverTextDecoration: "$blue11",
28
- linkBlueFocusOutline: "$blue8",
29
- linkContrast: "$hiContrast",
30
- linkContrastTextDecoration: "$slate8",
31
- linkContrastHoverTextDecoration: "$hiContrast",
32
- linkContrastFocusOutline: "$slate8",
33
- linkSubtle: "$deepBlue6",
34
- linkSubtleTextDecoration: "$deepBlue4",
35
- linkSubtleHoverTextDecoration: "$deepBlue5",
36
- linkSubtleFocusOutline: "$deepBlue3",
37
- linkPrimary: "$primary",
38
- linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),
39
- linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),
40
- linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString()
41
- });
42
- })(exports.Theme || (exports.Theme = {}));
43
- //# sourceMappingURL=Link.themes.cjs.map
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ let tinycolor2 = require("tinycolor2");
3
+ tinycolor2 = require_runtime.__toESM(tinycolor2, 1);
4
+ //#region components/Link/Link.themes.ts
5
+ var Theme;
6
+ (function(_Theme) {
7
+ _Theme.getLight = (primaryColor) => ({
8
+ linkBlue: "$blue11",
9
+ linkBlueTextDecoration: "$blue7",
10
+ linkBlueHoverTextDecoration: "$blue11",
11
+ linkBlueFocusOutline: "$blue8",
12
+ linkContrast: "$hiContrast",
13
+ linkContrastTextDecoration: "$slate8",
14
+ linkContrastHoverTextDecoration: "$hiContrast",
15
+ linkContrastFocusOutline: "$slate8",
16
+ linkSubtle: "$deepBlue7",
17
+ linkSubtleTextDecoration: "$deepBlue5",
18
+ linkSubtleHoverTextDecoration: "$deepBlue7",
19
+ linkSubtleFocusOutline: "$deepBlue4",
20
+ linkPrimary: (0, tinycolor2.default)(primaryColor.value).darken(26).toHslString(),
21
+ linkPrimaryTextDecoration: (0, tinycolor2.default)(primaryColor.value).darken(16).toHslString(),
22
+ linkPrimaryHoverTextDecoration: (0, tinycolor2.default)(primaryColor.value).darken(26).toHslString(),
23
+ linkPrimaryFocusOutline: (0, tinycolor2.default)(primaryColor.value).darken(16).toHslString()
24
+ });
25
+ _Theme.getDark = (primaryColor) => ({
26
+ linkBlue: "$blue11",
27
+ linkBlueTextDecoration: "$blue8",
28
+ linkBlueHoverTextDecoration: "$blue11",
29
+ linkBlueFocusOutline: "$blue8",
30
+ linkContrast: "$hiContrast",
31
+ linkContrastTextDecoration: "$slate8",
32
+ linkContrastHoverTextDecoration: "$hiContrast",
33
+ linkContrastFocusOutline: "$slate8",
34
+ linkSubtle: "$deepBlue6",
35
+ linkSubtleTextDecoration: "$deepBlue4",
36
+ linkSubtleHoverTextDecoration: "$deepBlue5",
37
+ linkSubtleFocusOutline: "$deepBlue3",
38
+ linkPrimary: "$primary",
39
+ linkPrimaryTextDecoration: (0, tinycolor2.default)(primaryColor.value).lighten(16).toHslString(),
40
+ linkPrimaryHoverTextDecoration: (0, tinycolor2.default)(primaryColor.value).darken(20).toHslString(),
41
+ linkPrimaryFocusOutline: (0, tinycolor2.default)(primaryColor.value).lighten(16).toHslString()
42
+ });
43
+ })(Theme || (Theme = {}));
44
+ //#endregion
45
+ Object.defineProperty(exports, "Theme", {
46
+ enumerable: true,
47
+ get: function() {
48
+ return Theme;
49
+ }
50
+ });
51
+
52
+ //# sourceMappingURL=Link.themes.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.themes.cjs","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"],"names":["Theme"],"mappings":";;;AAIiBA,QAAAA,QAAAA;AAAAA,CAAV,CAAUA,WAAV;AAqBQA,SAAA,WAAoB,CAAC,kBAAkB;AAAA,IAClD,UAAU;AAAA,IACV,wBAAwB;AAAA,IACxB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,cAAc;AAAA,IACd,4BAA4B;AAAA,IAC5B,iCAAiC;AAAA,IACjC,0BAA0B;AAAA,IAC1B,YAAY;AAAA,IACZ,0BAA0B;AAAA,IAC1B,+BAA+B;AAAA,IAC/B,wBAAwB;AAAA,IACxB,aAAa,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,IACtD,2BAA2B,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,IACpE,gCAAgC,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,IACzE,yBAAyB,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,EAAY;AAGnEA,SAAA,UAAmB,CAAC,kBAAkB;AAAA,IACjD,UAAU;AAAA,IACV,wBAAwB;AAAA,IACxB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,cAAc;AAAA,IACd,4BAA4B;AAAA,IAC5B,iCAAiC;AAAA,IACjC,0BAA0B;AAAA,IAC1B,YAAY;AAAA,IACZ,0BAA0B;AAAA,IAC1B,+BAA+B;AAAA,IAC/B,wBAAwB;AAAA,IACxB,aAAa;AAAA,IACb,2BAA2B,UAAU,aAAa,KAAK,EAAE,QAAQ,EAAE,EAAE,YAAA;AAAA,IACrE,gCAAgC,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,IACzE,yBAAyB,UAAU,aAAa,KAAK,EAAE,QAAQ,EAAE,EAAE,YAAA;AAAA,EAAY;AACjF,GAzDeA,QAAAA,UAAAA,gBAAA,CAAA,EAAA;"}
1
+ {"version":3,"file":"Link.themes.cjs","names":[],"sources":["../../../components/Link/Link.themes.ts"],"sourcesContent":["import { Property } from '@stitches/react/types/css';\nimport tinycolor from 'tinycolor2';\n\nimport { ColorInfo } from '../../utils/getPrimaryColorInfo';\nexport namespace Theme {\n type Colors = {\n linkSubtle: Property.Color;\n linkBlueTextDecoration: Property.Color;\n linkBlueHoverTextDecoration: Property.Color;\n linkBlueFocusOutline: Property.Color;\n linkContrast: Property.Color;\n linkContrastTextDecoration: Property.Color;\n linkContrastHoverTextDecoration: Property.Color;\n linkContrastFocusOutline: Property.Color;\n linkSubtleTextDecoration: Property.Color;\n linkSubtleHoverTextDecoration: Property.Color;\n linkSubtleFocusOutline: Property.Color;\n linkPrimary: Property.Color;\n linkPrimaryTextDecoration: Property.Color;\n linkPrimaryHoverTextDecoration: Property.Color;\n linkPrimaryFocusOutline: Property.Color;\n };\n\n type Factory = (primaryColor: ColorInfo) => Colors;\n\n export const getLight: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue7',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue7',\n linkSubtleTextDecoration: '$deepBlue5',\n linkSubtleHoverTextDecoration: '$deepBlue7',\n linkSubtleFocusOutline: '$deepBlue4',\n linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString(),\n });\n\n export const getDark: Factory = (primaryColor) => ({\n linkBlue: '$blue11',\n linkBlueTextDecoration: '$blue8',\n linkBlueHoverTextDecoration: '$blue11',\n linkBlueFocusOutline: '$blue8',\n linkContrast: '$hiContrast',\n linkContrastTextDecoration: '$slate8',\n linkContrastHoverTextDecoration: '$hiContrast',\n linkContrastFocusOutline: '$slate8',\n linkSubtle: '$deepBlue6',\n linkSubtleTextDecoration: '$deepBlue4',\n linkSubtleHoverTextDecoration: '$deepBlue5',\n linkSubtleFocusOutline: '$deepBlue3',\n linkPrimary: '$primary',\n linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),\n linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),\n linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString(),\n });\n}\n"],"mappings":";;;;AAIO,IAAA;;AAqBQ,QAAA,YAAqB,kBAAkB;EAClD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,cAAA,GAAA,WAAA,SAAuB,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EACnE,4BAAA,GAAA,WAAA,SAAqC,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EACjF,iCAAA,GAAA,WAAA,SAA0C,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EACtF,0BAAA,GAAA,WAAA,SAAmC,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EAChF;AAEY,QAAA,WAAoB,kBAAkB;EACjD,UAAU;EACV,wBAAwB;EACxB,6BAA6B;EAC7B,sBAAsB;EACtB,cAAc;EACd,4BAA4B;EAC5B,iCAAiC;EACjC,0BAA0B;EAC1B,YAAY;EACZ,0BAA0B;EAC1B,+BAA+B;EAC/B,wBAAwB;EACxB,aAAa;EACb,4BAAA,GAAA,WAAA,SAAqC,aAAa,MAAM,CAAC,QAAQ,GAAG,CAAC,aAAa;EAClF,iCAAA,GAAA,WAAA,SAA0C,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EACtF,0BAAA,GAAA,WAAA,SAAmC,aAAa,MAAM,CAAC,QAAQ,GAAG,CAAC,aAAa;EACjF;yBACF"}
@@ -1,44 +1,45 @@
1
1
  import tinycolor from "tinycolor2";
2
+ //#region components/Link/Link.themes.ts
2
3
  var Theme;
3
- ((Theme2) => {
4
- Theme2.getLight = (primaryColor) => ({
5
- linkBlue: "$blue11",
6
- linkBlueTextDecoration: "$blue7",
7
- linkBlueHoverTextDecoration: "$blue11",
8
- linkBlueFocusOutline: "$blue8",
9
- linkContrast: "$hiContrast",
10
- linkContrastTextDecoration: "$slate8",
11
- linkContrastHoverTextDecoration: "$hiContrast",
12
- linkContrastFocusOutline: "$slate8",
13
- linkSubtle: "$deepBlue7",
14
- linkSubtleTextDecoration: "$deepBlue5",
15
- linkSubtleHoverTextDecoration: "$deepBlue7",
16
- linkSubtleFocusOutline: "$deepBlue4",
17
- linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),
18
- linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),
19
- linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),
20
- linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString()
21
- });
22
- Theme2.getDark = (primaryColor) => ({
23
- linkBlue: "$blue11",
24
- linkBlueTextDecoration: "$blue8",
25
- linkBlueHoverTextDecoration: "$blue11",
26
- linkBlueFocusOutline: "$blue8",
27
- linkContrast: "$hiContrast",
28
- linkContrastTextDecoration: "$slate8",
29
- linkContrastHoverTextDecoration: "$hiContrast",
30
- linkContrastFocusOutline: "$slate8",
31
- linkSubtle: "$deepBlue6",
32
- linkSubtleTextDecoration: "$deepBlue4",
33
- linkSubtleHoverTextDecoration: "$deepBlue5",
34
- linkSubtleFocusOutline: "$deepBlue3",
35
- linkPrimary: "$primary",
36
- linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),
37
- linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),
38
- linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString()
39
- });
4
+ (function(_Theme) {
5
+ _Theme.getLight = (primaryColor) => ({
6
+ linkBlue: "$blue11",
7
+ linkBlueTextDecoration: "$blue7",
8
+ linkBlueHoverTextDecoration: "$blue11",
9
+ linkBlueFocusOutline: "$blue8",
10
+ linkContrast: "$hiContrast",
11
+ linkContrastTextDecoration: "$slate8",
12
+ linkContrastHoverTextDecoration: "$hiContrast",
13
+ linkContrastFocusOutline: "$slate8",
14
+ linkSubtle: "$deepBlue7",
15
+ linkSubtleTextDecoration: "$deepBlue5",
16
+ linkSubtleHoverTextDecoration: "$deepBlue7",
17
+ linkSubtleFocusOutline: "$deepBlue4",
18
+ linkPrimary: tinycolor(primaryColor.value).darken(26).toHslString(),
19
+ linkPrimaryTextDecoration: tinycolor(primaryColor.value).darken(16).toHslString(),
20
+ linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(26).toHslString(),
21
+ linkPrimaryFocusOutline: tinycolor(primaryColor.value).darken(16).toHslString()
22
+ });
23
+ _Theme.getDark = (primaryColor) => ({
24
+ linkBlue: "$blue11",
25
+ linkBlueTextDecoration: "$blue8",
26
+ linkBlueHoverTextDecoration: "$blue11",
27
+ linkBlueFocusOutline: "$blue8",
28
+ linkContrast: "$hiContrast",
29
+ linkContrastTextDecoration: "$slate8",
30
+ linkContrastHoverTextDecoration: "$hiContrast",
31
+ linkContrastFocusOutline: "$slate8",
32
+ linkSubtle: "$deepBlue6",
33
+ linkSubtleTextDecoration: "$deepBlue4",
34
+ linkSubtleHoverTextDecoration: "$deepBlue5",
35
+ linkSubtleFocusOutline: "$deepBlue3",
36
+ linkPrimary: "$primary",
37
+ linkPrimaryTextDecoration: tinycolor(primaryColor.value).lighten(16).toHslString(),
38
+ linkPrimaryHoverTextDecoration: tinycolor(primaryColor.value).darken(20).toHslString(),
39
+ linkPrimaryFocusOutline: tinycolor(primaryColor.value).lighten(16).toHslString()
40
+ });
40
41
  })(Theme || (Theme = {}));
41
- export {
42
- Theme
43
- };
44
- //# sourceMappingURL=Link.themes.js.map
42
+ //#endregion
43
+ export { Theme };
44
+
45
+ //# sourceMappingURL=Link.themes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.themes.js","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"],"names":["Theme"],"mappings":";AAIO,IAAU;AAAA,CAAV,CAAUA,WAAV;AAqBQA,SAAA,WAAoB,CAAC,kBAAkB;AAAA,IAClD,UAAU;AAAA,IACV,wBAAwB;AAAA,IACxB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,cAAc;AAAA,IACd,4BAA4B;AAAA,IAC5B,iCAAiC;AAAA,IACjC,0BAA0B;AAAA,IAC1B,YAAY;AAAA,IACZ,0BAA0B;AAAA,IAC1B,+BAA+B;AAAA,IAC/B,wBAAwB;AAAA,IACxB,aAAa,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,IACtD,2BAA2B,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,IACpE,gCAAgC,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,IACzE,yBAAyB,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,EAAY;AAGnEA,SAAA,UAAmB,CAAC,kBAAkB;AAAA,IACjD,UAAU;AAAA,IACV,wBAAwB;AAAA,IACxB,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,cAAc;AAAA,IACd,4BAA4B;AAAA,IAC5B,iCAAiC;AAAA,IACjC,0BAA0B;AAAA,IAC1B,YAAY;AAAA,IACZ,0BAA0B;AAAA,IAC1B,+BAA+B;AAAA,IAC/B,wBAAwB;AAAA,IACxB,aAAa;AAAA,IACb,2BAA2B,UAAU,aAAa,KAAK,EAAE,QAAQ,EAAE,EAAE,YAAA;AAAA,IACrE,gCAAgC,UAAU,aAAa,KAAK,EAAE,OAAO,EAAE,EAAE,YAAA;AAAA,IACzE,yBAAyB,UAAU,aAAa,KAAK,EAAE,QAAQ,EAAE,EAAE,YAAA;AAAA,EAAY;AACjF,GAzDe,UAAA,QAAA,CAAA,EAAA;"}
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;;AAqBQ,QAAA,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,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EACnE,2BAA2B,UAAU,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EACjF,gCAAgC,UAAU,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EACtF,yBAAyB,UAAU,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EAChF;AAEY,QAAA,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,MAAM,CAAC,QAAQ,GAAG,CAAC,aAAa;EAClF,gCAAgC,UAAU,aAAa,MAAM,CAAC,OAAO,GAAG,CAAC,aAAa;EACtF,yBAAyB,UAAU,aAAa,MAAM,CAAC,QAAQ,GAAG,CAAC,aAAa;EACjF;yBACF"}