@gemologic/sheen 0.1.0-rc.0 → 0.1.0-rc.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 (484) hide show
  1. package/README.md +11 -1
  2. package/THIRD_PARTY_NOTICES.md +18 -0
  3. package/dist/primitives/Accordion.js +1 -1
  4. package/dist/primitives/Collapsible.js +1 -1
  5. package/dist/primitives/Combobox.js +1 -1
  6. package/dist/primitives/CommandPalette.js +2 -2
  7. package/dist/primitives/ContextMenu.js +2 -2
  8. package/dist/primitives/Dialog.js +1 -1
  9. package/dist/primitives/DropdownMenu.js +2 -2
  10. package/dist/primitives/LinkTooltip.js +1 -1
  11. package/dist/primitives/Popover.js +1 -1
  12. package/dist/primitives/Select.js +1 -1
  13. package/dist/primitives/Tabs.js +1 -1
  14. package/dist/primitives/Tooltip.js +1 -1
  15. package/dist/primitives/tooltip-layer.js +1 -1
  16. package/dist/theme/ThemeProvider.js +30 -30
  17. package/dist/theme/intl.js +4 -4
  18. package/dist/utils/polymorphic.d.ts +1 -1
  19. package/dist/vite.d.ts +3 -0
  20. package/dist/vite.js +54 -0
  21. package/package.json +71 -5
  22. package/src/primitives/Accordion.tsx +1 -1
  23. package/src/primitives/Collapsible.tsx +1 -1
  24. package/src/primitives/Combobox.tsx +1 -1
  25. package/src/primitives/CommandPalette.tsx +2 -2
  26. package/src/primitives/ContextMenu.tsx +2 -2
  27. package/src/primitives/Dialog.tsx +1 -1
  28. package/src/primitives/DropdownMenu.tsx +2 -2
  29. package/src/primitives/LinkTooltip.tsx +1 -1
  30. package/src/primitives/Popover.tsx +1 -1
  31. package/src/primitives/Select.tsx +1 -1
  32. package/src/primitives/Tabs.tsx +1 -1
  33. package/src/primitives/Tooltip.tsx +1 -1
  34. package/src/primitives/tooltip-layer.tsx +1 -1
  35. package/src/theme/ThemeProvider.tsx +7 -3
  36. package/src/theme/intl.ts +4 -2
  37. package/src/utils/polymorphic.ts +1 -1
  38. package/src/vite.ts +51 -0
  39. package/vendor/cmdk-solid/LICENSE +14 -0
  40. package/vendor/cmdk-solid/chunk/5WIGIOAJ.jsx +98 -0
  41. package/vendor/cmdk-solid/chunk/IOVUHIGA.js +96 -0
  42. package/vendor/cmdk-solid/command-score.cjs +98 -0
  43. package/vendor/cmdk-solid/command-score.d.cts +4 -0
  44. package/vendor/cmdk-solid/command-score.d.ts +4 -0
  45. package/vendor/cmdk-solid/command-score.js +2 -0
  46. package/vendor/cmdk-solid/command-score.jsx +7 -0
  47. package/vendor/cmdk-solid/index.cjs +827 -0
  48. package/vendor/cmdk-solid/index.d.cts +184 -0
  49. package/vendor/cmdk-solid/index.d.ts +184 -0
  50. package/vendor/cmdk-solid/index.js +729 -0
  51. package/vendor/cmdk-solid/index.jsx +666 -0
  52. package/vendor/integrity.json +450 -0
  53. package/vendor/kobalte-core/LICENSE.md +21 -0
  54. package/vendor/kobalte-core/NOTICE.txt +231 -0
  55. package/vendor/kobalte-core/accordion/index.d.ts +10 -0
  56. package/vendor/kobalte-core/accordion/index.js +2 -0
  57. package/vendor/kobalte-core/accordion/index.jsx +33 -0
  58. package/vendor/kobalte-core/alert/index.d.ts +5 -0
  59. package/vendor/kobalte-core/alert/index.js +2 -0
  60. package/vendor/kobalte-core/alert/index.jsx +11 -0
  61. package/vendor/kobalte-core/alert-dialog/index.d.ts +10 -0
  62. package/vendor/kobalte-core/alert-dialog/index.js +3 -0
  63. package/vendor/kobalte-core/alert-dialog/index.jsx +40 -0
  64. package/vendor/kobalte-core/badge/index.d.ts +23 -0
  65. package/vendor/kobalte-core/badge/index.js +24 -0
  66. package/vendor/kobalte-core/badge/index.jsx +24 -0
  67. package/vendor/kobalte-core/breadcrumbs/index.d.ts +5 -0
  68. package/vendor/kobalte-core/breadcrumbs/index.js +2 -0
  69. package/vendor/kobalte-core/breadcrumbs/index.jsx +19 -0
  70. package/vendor/kobalte-core/button/index.d.ts +6 -0
  71. package/vendor/kobalte-core/button/index.js +2 -0
  72. package/vendor/kobalte-core/button/index.jsx +12 -0
  73. package/vendor/kobalte-core/button-root-da654b3e.d.ts +28 -0
  74. package/vendor/kobalte-core/checkbox/index.d.ts +8 -0
  75. package/vendor/kobalte-core/checkbox/index.js +2 -0
  76. package/vendor/kobalte-core/checkbox/index.jsx +35 -0
  77. package/vendor/kobalte-core/chunk/272QBW42.js +712 -0
  78. package/vendor/kobalte-core/chunk/27MLNS66.js +353 -0
  79. package/vendor/kobalte-core/chunk/2RVGL3MU.js +45 -0
  80. package/vendor/kobalte-core/chunk/2UV3VFID.jsx +431 -0
  81. package/vendor/kobalte-core/chunk/2X5XWQIS.js +19 -0
  82. package/vendor/kobalte-core/chunk/2YCOH52P.js +81 -0
  83. package/vendor/kobalte-core/chunk/3565MS4H.jsx +127 -0
  84. package/vendor/kobalte-core/chunk/3ARTUDH2.jsx +1633 -0
  85. package/vendor/kobalte-core/chunk/3D6FM2PJ.js +1001 -0
  86. package/vendor/kobalte-core/chunk/3DLZMX4Z.jsx +81 -0
  87. package/vendor/kobalte-core/chunk/3DZKSKAQ.jsx +366 -0
  88. package/vendor/kobalte-core/chunk/3JA5IX2L.jsx +52 -0
  89. package/vendor/kobalte-core/chunk/3NGA46QE.js +116 -0
  90. package/vendor/kobalte-core/chunk/3QQCO6IA.js +46 -0
  91. package/vendor/kobalte-core/chunk/3T74IGH6.js +860 -0
  92. package/vendor/kobalte-core/chunk/3XNSRO2W.jsx +226 -0
  93. package/vendor/kobalte-core/chunk/43XIKO67.js +99 -0
  94. package/vendor/kobalte-core/chunk/4VWIKJ7Q.jsx +842 -0
  95. package/vendor/kobalte-core/chunk/53Y5XP3B.js +61 -0
  96. package/vendor/kobalte-core/chunk/5WXHJDCZ.jsx +10 -0
  97. package/vendor/kobalte-core/chunk/5ZKAE4VZ.js +8 -0
  98. package/vendor/kobalte-core/chunk/66KLKSW3.js +36 -0
  99. package/vendor/kobalte-core/chunk/6TDKM7BK.jsx +815 -0
  100. package/vendor/kobalte-core/chunk/6Y7B2NEO.js +21 -0
  101. package/vendor/kobalte-core/chunk/7ABWW5DT.jsx +483 -0
  102. package/vendor/kobalte-core/chunk/7CVNMTYF.js +171 -0
  103. package/vendor/kobalte-core/chunk/7DPKSDZL.js +447 -0
  104. package/vendor/kobalte-core/chunk/7I44E2QD.js +190 -0
  105. package/vendor/kobalte-core/chunk/7LCANGHD.js +29 -0
  106. package/vendor/kobalte-core/chunk/7OVKXYPU.js +90 -0
  107. package/vendor/kobalte-core/chunk/7TPOQ36Z.js +202 -0
  108. package/vendor/kobalte-core/chunk/7ZHN3PYD.js +30 -0
  109. package/vendor/kobalte-core/chunk/ANN3A2QM.js +29 -0
  110. package/vendor/kobalte-core/chunk/AT6SKIG6.js +119 -0
  111. package/vendor/kobalte-core/chunk/AWVDBFMO.jsx +280 -0
  112. package/vendor/kobalte-core/chunk/B2CSS4CB.js +36 -0
  113. package/vendor/kobalte-core/chunk/BDJEWKR2.jsx +153 -0
  114. package/vendor/kobalte-core/chunk/BK63AFY4.js +348 -0
  115. package/vendor/kobalte-core/chunk/BLN63FDC.js +40 -0
  116. package/vendor/kobalte-core/chunk/BU4OFZP5.jsx +146 -0
  117. package/vendor/kobalte-core/chunk/CLZZ2KZC.js +152 -0
  118. package/vendor/kobalte-core/chunk/CODJDE4S.jsx +131 -0
  119. package/vendor/kobalte-core/chunk/CWAEFUDR.js +732 -0
  120. package/vendor/kobalte-core/chunk/DBKNBLZP.js +395 -0
  121. package/vendor/kobalte-core/chunk/DTAYBJDT.jsx +339 -0
  122. package/vendor/kobalte-core/chunk/DX4MAOJL.js +653 -0
  123. package/vendor/kobalte-core/chunk/E4R2EMM4.js +10 -0
  124. package/vendor/kobalte-core/chunk/E53DB7BS.jsx +34 -0
  125. package/vendor/kobalte-core/chunk/EHGSTO6V.jsx +138 -0
  126. package/vendor/kobalte-core/chunk/EJ5I5XML.jsx +1 -0
  127. package/vendor/kobalte-core/chunk/ET5T45DO.js +17 -0
  128. package/vendor/kobalte-core/chunk/EYO4IMPK.jsx +867 -0
  129. package/vendor/kobalte-core/chunk/FINWO3A5.jsx +21 -0
  130. package/vendor/kobalte-core/chunk/FKUFPCQ6.jsx +120 -0
  131. package/vendor/kobalte-core/chunk/FLVHQV4A.jsx +22 -0
  132. package/vendor/kobalte-core/chunk/FN6EICGO.jsx +44 -0
  133. package/vendor/kobalte-core/chunk/FOXVCQFV.jsx +48 -0
  134. package/vendor/kobalte-core/chunk/G3KI2B4X.js +228 -0
  135. package/vendor/kobalte-core/chunk/G4JQYERT.jsx +1 -0
  136. package/vendor/kobalte-core/chunk/GAVSAJBM.jsx +86 -0
  137. package/vendor/kobalte-core/chunk/GIRHAWVP.jsx +46 -0
  138. package/vendor/kobalte-core/chunk/GROIIANN.jsx +32 -0
  139. package/vendor/kobalte-core/chunk/GSF7SFRW.jsx +98 -0
  140. package/vendor/kobalte-core/chunk/GXANOQ5B.jsx +66 -0
  141. package/vendor/kobalte-core/chunk/H7BK6JF7.jsx +489 -0
  142. package/vendor/kobalte-core/chunk/HGKTPMYY.js +1332 -0
  143. package/vendor/kobalte-core/chunk/HWIPVJ7H.js +121 -0
  144. package/vendor/kobalte-core/chunk/I2LBZHJH.js +144 -0
  145. package/vendor/kobalte-core/chunk/ICNSTULC.js +33 -0
  146. package/vendor/kobalte-core/chunk/IGYOA2ZZ.jsx +33 -0
  147. package/vendor/kobalte-core/chunk/IN725QRS.js +175 -0
  148. package/vendor/kobalte-core/chunk/INFLGCRV.js +123 -0
  149. package/vendor/kobalte-core/chunk/JEP7F7FN.js +89 -0
  150. package/vendor/kobalte-core/chunk/JGNXQB3J.js +140 -0
  151. package/vendor/kobalte-core/chunk/JHMNWOLY.jsx +87 -0
  152. package/vendor/kobalte-core/chunk/JNCCF6MP.jsx +12 -0
  153. package/vendor/kobalte-core/chunk/K6ON3K7Z.js +93 -0
  154. package/vendor/kobalte-core/chunk/K6P57S75.js +23 -0
  155. package/vendor/kobalte-core/chunk/KEL2LLJM.jsx +244 -0
  156. package/vendor/kobalte-core/chunk/KQVCPTCE.js +316 -0
  157. package/vendor/kobalte-core/chunk/KR2RRKPK.jsx +197 -0
  158. package/vendor/kobalte-core/chunk/KVL5CS3M.jsx +37 -0
  159. package/vendor/kobalte-core/chunk/LP6E37CW.jsx +228 -0
  160. package/vendor/kobalte-core/chunk/LUHKRAPV.js +129 -0
  161. package/vendor/kobalte-core/chunk/LV6CC6HJ.js +226 -0
  162. package/vendor/kobalte-core/chunk/MUDPLHYE.js +56 -0
  163. package/vendor/kobalte-core/chunk/NEFPNRTI.jsx +426 -0
  164. package/vendor/kobalte-core/chunk/NY67XGGP.js +216 -0
  165. package/vendor/kobalte-core/chunk/OGE3DKII.jsx +413 -0
  166. package/vendor/kobalte-core/chunk/OK5BA5VH.jsx +533 -0
  167. package/vendor/kobalte-core/chunk/OPHDMVQK.jsx +217 -0
  168. package/vendor/kobalte-core/chunk/OPRD3XHK.js +207 -0
  169. package/vendor/kobalte-core/chunk/OU7DYFTQ.jsx +191 -0
  170. package/vendor/kobalte-core/chunk/OYES4GOP.jsx +21 -0
  171. package/vendor/kobalte-core/chunk/P6IXTWXS.jsx +197 -0
  172. package/vendor/kobalte-core/chunk/PBBM7A6R.jsx +113 -0
  173. package/vendor/kobalte-core/chunk/PKWJSNR5.js +474 -0
  174. package/vendor/kobalte-core/chunk/PTVG6YKC.js +148 -0
  175. package/vendor/kobalte-core/chunk/PTWD4LYA.jsx +537 -0
  176. package/vendor/kobalte-core/chunk/PYSNB6I6.jsx +324 -0
  177. package/vendor/kobalte-core/chunk/Q2T3QQUA.js +419 -0
  178. package/vendor/kobalte-core/chunk/QEMPLYZX.js +28 -0
  179. package/vendor/kobalte-core/chunk/QIRIOMOH.js +338 -0
  180. package/vendor/kobalte-core/chunk/QJIB6BDF.jsx +30 -0
  181. package/vendor/kobalte-core/chunk/QJK6CGTE.js +293 -0
  182. package/vendor/kobalte-core/chunk/R4V3527Z.js +130 -0
  183. package/vendor/kobalte-core/chunk/R5JXRO27.js +1 -0
  184. package/vendor/kobalte-core/chunk/RFN6X5VH.jsx +1058 -0
  185. package/vendor/kobalte-core/chunk/SD3NY4DU.js +344 -0
  186. package/vendor/kobalte-core/chunk/SLRA6PIF.jsx +263 -0
  187. package/vendor/kobalte-core/chunk/SOM3K36D.jsx +191 -0
  188. package/vendor/kobalte-core/chunk/STGRFJHZ.js +43 -0
  189. package/vendor/kobalte-core/chunk/T4C3DMHT.jsx +52 -0
  190. package/vendor/kobalte-core/chunk/TDH5Z2ZB.js +263 -0
  191. package/vendor/kobalte-core/chunk/TP2BLHDF.jsx +284 -0
  192. package/vendor/kobalte-core/chunk/TS4C47MF.js +22 -0
  193. package/vendor/kobalte-core/chunk/TSB6MOZK.jsx +242 -0
  194. package/vendor/kobalte-core/chunk/TVVHJCOX.js +204 -0
  195. package/vendor/kobalte-core/chunk/TY22MKYR.jsx +996 -0
  196. package/vendor/kobalte-core/chunk/UEEZAKDC.js +1 -0
  197. package/vendor/kobalte-core/chunk/UESR3MKV.jsx +743 -0
  198. package/vendor/kobalte-core/chunk/UGE6PPGT.jsx +220 -0
  199. package/vendor/kobalte-core/chunk/UKTBL2JL.jsx +88 -0
  200. package/vendor/kobalte-core/chunk/V25KEN4T.jsx +399 -0
  201. package/vendor/kobalte-core/chunk/VI7QYH27.jsx +33 -0
  202. package/vendor/kobalte-core/chunk/W4MWOWKG.js +310 -0
  203. package/vendor/kobalte-core/chunk/WAUM5GOD.jsx +68 -0
  204. package/vendor/kobalte-core/chunk/WHII6HHI.js +145 -0
  205. package/vendor/kobalte-core/chunk/WKVBAVXH.jsx +378 -0
  206. package/vendor/kobalte-core/chunk/WR5BIFYV.js +780 -0
  207. package/vendor/kobalte-core/chunk/XLBXJFYN.js +108 -0
  208. package/vendor/kobalte-core/chunk/XNF3WGZ2.jsx +176 -0
  209. package/vendor/kobalte-core/chunk/XOC6SOOC.jsx +53 -0
  210. package/vendor/kobalte-core/chunk/XTJD7L6B.jsx +101 -0
  211. package/vendor/kobalte-core/chunk/XUUROM4M.jsx +120 -0
  212. package/vendor/kobalte-core/chunk/YA7DCYMB.js +80 -0
  213. package/vendor/kobalte-core/chunk/YFEENJN5.jsx +41 -0
  214. package/vendor/kobalte-core/chunk/YGDQXQ2B.js +28 -0
  215. package/vendor/kobalte-core/chunk/YKGT7A57.js +85 -0
  216. package/vendor/kobalte-core/chunk/YPUNLYJC.js +268 -0
  217. package/vendor/kobalte-core/chunk/YSW4UOAR.js +40 -0
  218. package/vendor/kobalte-core/chunk/ZAGMEN2K.jsx +152 -0
  219. package/vendor/kobalte-core/chunk/ZG3NR5OC.jsx +120 -0
  220. package/vendor/kobalte-core/chunk/ZZYKR3VO.jsx +42 -0
  221. package/vendor/kobalte-core/collapsible/index.d.ts +7 -0
  222. package/vendor/kobalte-core/collapsible/index.js +2 -0
  223. package/vendor/kobalte-core/collapsible/index.jsx +23 -0
  224. package/vendor/kobalte-core/collapsible-trigger-6358fcd4.d.ts +84 -0
  225. package/vendor/kobalte-core/color-area/index.d.ts +189 -0
  226. package/vendor/kobalte-core/color-area/index.js +724 -0
  227. package/vendor/kobalte-core/color-area/index.jsx +777 -0
  228. package/vendor/kobalte-core/color-channel-field/index.d.ts +49 -0
  229. package/vendor/kobalte-core/color-channel-field/index.js +72 -0
  230. package/vendor/kobalte-core/color-channel-field/index.jsx +117 -0
  231. package/vendor/kobalte-core/color-field/index.d.ts +48 -0
  232. package/vendor/kobalte-core/color-field/index.js +114 -0
  233. package/vendor/kobalte-core/color-field/index.jsx +155 -0
  234. package/vendor/kobalte-core/color-mode/index.d.ts +78 -0
  235. package/vendor/kobalte-core/color-mode/index.js +2 -0
  236. package/vendor/kobalte-core/color-mode/index.jsx +28 -0
  237. package/vendor/kobalte-core/color-slider/index.d.ts +109 -0
  238. package/vendor/kobalte-core/color-slider/index.js +183 -0
  239. package/vendor/kobalte-core/color-slider/index.jsx +255 -0
  240. package/vendor/kobalte-core/color-swatch/index.d.ts +39 -0
  241. package/vendor/kobalte-core/color-swatch/index.js +48 -0
  242. package/vendor/kobalte-core/color-swatch/index.jsx +64 -0
  243. package/vendor/kobalte-core/color-wheel/index.d.ts +166 -0
  244. package/vendor/kobalte-core/color-wheel/index.js +620 -0
  245. package/vendor/kobalte-core/color-wheel/index.jsx +640 -0
  246. package/vendor/kobalte-core/colors/index.d.ts +15 -0
  247. package/vendor/kobalte-core/colors/index.js +2 -0
  248. package/vendor/kobalte-core/colors/index.jsx +17 -0
  249. package/vendor/kobalte-core/combobox/index.d.ts +20 -0
  250. package/vendor/kobalte-core/combobox/index.js +8 -0
  251. package/vendor/kobalte-core/combobox/index.jsx +80 -0
  252. package/vendor/kobalte-core/combobox-root-3702d1f6.d.ts +382 -0
  253. package/vendor/kobalte-core/context-menu/index.d.ts +15 -0
  254. package/vendor/kobalte-core/context-menu/index.js +5 -0
  255. package/vendor/kobalte-core/context-menu/index.jsx +75 -0
  256. package/vendor/kobalte-core/create-list-state-d9a0f1f2.d.ts +232 -0
  257. package/vendor/kobalte-core/dialog/index.d.ts +10 -0
  258. package/vendor/kobalte-core/dialog/index.js +2 -0
  259. package/vendor/kobalte-core/dialog/index.jsx +40 -0
  260. package/vendor/kobalte-core/dialog-trigger-f415bd9b.d.ts +184 -0
  261. package/vendor/kobalte-core/dismissable-layer/index.d.ts +51 -0
  262. package/vendor/kobalte-core/dismissable-layer/index.js +2 -0
  263. package/vendor/kobalte-core/dismissable-layer/index.jsx +12 -0
  264. package/vendor/kobalte-core/dropdown-menu/index.d.ts +18 -0
  265. package/vendor/kobalte-core/dropdown-menu/index.js +5 -0
  266. package/vendor/kobalte-core/dropdown-menu/index.jsx +73 -0
  267. package/vendor/kobalte-core/file-field/index.d.ts +221 -0
  268. package/vendor/kobalte-core/file-field/index.js +539 -0
  269. package/vendor/kobalte-core/file-field/index.jsx +564 -0
  270. package/vendor/kobalte-core/form-control-description-330657bc.d.ts +49 -0
  271. package/vendor/kobalte-core/form-control-error-message-9efcbea8.d.ts +25 -0
  272. package/vendor/kobalte-core/form-control-label-2a5ca7a3.d.ts +22 -0
  273. package/vendor/kobalte-core/hover-card/index.d.ts +11 -0
  274. package/vendor/kobalte-core/hover-card/index.js +3 -0
  275. package/vendor/kobalte-core/hover-card/index.jsx +33 -0
  276. package/vendor/kobalte-core/i18n/index.d.ts +81 -0
  277. package/vendor/kobalte-core/i18n/index.js +2 -0
  278. package/vendor/kobalte-core/i18n/index.jsx +28 -0
  279. package/vendor/kobalte-core/image/index.d.ts +5 -0
  280. package/vendor/kobalte-core/image/index.js +2 -0
  281. package/vendor/kobalte-core/image/index.jsx +17 -0
  282. package/vendor/kobalte-core/index-19a0ff67.d.ts +180 -0
  283. package/vendor/kobalte-core/index-1a4410b1.d.ts +184 -0
  284. package/vendor/kobalte-core/index-29c57b8d.d.ts +90 -0
  285. package/vendor/kobalte-core/index-2a97f0d5.d.ts +259 -0
  286. package/vendor/kobalte-core/index-339032c6.d.ts +24 -0
  287. package/vendor/kobalte-core/index-3a4165aa.d.ts +38 -0
  288. package/vendor/kobalte-core/index-45d19411.d.ts +181 -0
  289. package/vendor/kobalte-core/index-47114d4c.d.ts +153 -0
  290. package/vendor/kobalte-core/index-4933558f.d.ts +22 -0
  291. package/vendor/kobalte-core/index-4cb1a0c7.d.ts +178 -0
  292. package/vendor/kobalte-core/index-544033ad.d.ts +148 -0
  293. package/vendor/kobalte-core/index-5eae1bf9.d.ts +145 -0
  294. package/vendor/kobalte-core/index-64ed0578.d.ts +47 -0
  295. package/vendor/kobalte-core/index-68c6e688.d.ts +125 -0
  296. package/vendor/kobalte-core/index-71913923.d.ts +107 -0
  297. package/vendor/kobalte-core/index-774e18fb.d.ts +155 -0
  298. package/vendor/kobalte-core/index-78f1e72b.d.ts +22 -0
  299. package/vendor/kobalte-core/index-79050fd4.d.ts +22 -0
  300. package/vendor/kobalte-core/index-82a3d7cf.d.ts +76 -0
  301. package/vendor/kobalte-core/index-839e646d.d.ts +308 -0
  302. package/vendor/kobalte-core/index-8b78f50e.d.ts +96 -0
  303. package/vendor/kobalte-core/index-8dfcce13.d.ts +49 -0
  304. package/vendor/kobalte-core/index-929e4c7c.d.ts +109 -0
  305. package/vendor/kobalte-core/index-a6cbe732.d.ts +267 -0
  306. package/vendor/kobalte-core/index-a8504bc6.d.ts +105 -0
  307. package/vendor/kobalte-core/index-d652f235.d.ts +234 -0
  308. package/vendor/kobalte-core/index-d734f7ac.d.ts +120 -0
  309. package/vendor/kobalte-core/index-e3628d61.d.ts +405 -0
  310. package/vendor/kobalte-core/index-e8f9edc7.d.ts +484 -0
  311. package/vendor/kobalte-core/index-e96454a3.d.ts +113 -0
  312. package/vendor/kobalte-core/index-ed2fe8c4.d.ts +176 -0
  313. package/vendor/kobalte-core/index-f3e15e6a.d.ts +107 -0
  314. package/vendor/kobalte-core/index.d.ts +333 -0
  315. package/vendor/kobalte-core/index.js +56 -0
  316. package/vendor/kobalte-core/index.jsx +322 -0
  317. package/vendor/kobalte-core/link/index.d.ts +6 -0
  318. package/vendor/kobalte-core/link/index.js +2 -0
  319. package/vendor/kobalte-core/link/index.jsx +12 -0
  320. package/vendor/kobalte-core/link-root-bf54d4f3.d.ts +26 -0
  321. package/vendor/kobalte-core/listbox/index.d.ts +10 -0
  322. package/vendor/kobalte-core/listbox/index.js +2 -0
  323. package/vendor/kobalte-core/listbox/index.jsx +30 -0
  324. package/vendor/kobalte-core/listbox-item-indicator-b8390ce9.d.ts +27 -0
  325. package/vendor/kobalte-core/listbox-section-58338bda.d.ts +172 -0
  326. package/vendor/kobalte-core/menu/index.d.ts +41 -0
  327. package/vendor/kobalte-core/menu/index.js +2 -0
  328. package/vendor/kobalte-core/menu/index.jsx +72 -0
  329. package/vendor/kobalte-core/menu-sub-trigger-29a7ad75.d.ts +462 -0
  330. package/vendor/kobalte-core/menubar/index.d.ts +19 -0
  331. package/vendor/kobalte-core/menubar/index.js +6 -0
  332. package/vendor/kobalte-core/menubar/index.jsx +79 -0
  333. package/vendor/kobalte-core/menubar-context-c1a81ca0.d.ts +73 -0
  334. package/vendor/kobalte-core/meter/index.d.ts +15 -0
  335. package/vendor/kobalte-core/meter/index.js +2 -0
  336. package/vendor/kobalte-core/meter/index.jsx +23 -0
  337. package/vendor/kobalte-core/meter-value-label-797727cd.d.ts +117 -0
  338. package/vendor/kobalte-core/navigation-menu/index.d.ts +191 -0
  339. package/vendor/kobalte-core/navigation-menu/index.js +432 -0
  340. package/vendor/kobalte-core/navigation-menu/index.jsx +571 -0
  341. package/vendor/kobalte-core/number-field/index.d.ts +11 -0
  342. package/vendor/kobalte-core/number-field/index.js +5 -0
  343. package/vendor/kobalte-core/number-field/index.jsx +42 -0
  344. package/vendor/kobalte-core/number-field-root-3524531f.d.ts +128 -0
  345. package/vendor/kobalte-core/pagination/index.d.ts +6 -0
  346. package/vendor/kobalte-core/pagination/index.js +2 -0
  347. package/vendor/kobalte-core/pagination/index.jsx +26 -0
  348. package/vendor/kobalte-core/polymorphic/index.d.ts +29 -0
  349. package/vendor/kobalte-core/polymorphic/index.js +2 -0
  350. package/vendor/kobalte-core/polymorphic/index.jsx +8 -0
  351. package/vendor/kobalte-core/popover/index.d.ts +11 -0
  352. package/vendor/kobalte-core/popover/index.js +3 -0
  353. package/vendor/kobalte-core/popover/index.jsx +45 -0
  354. package/vendor/kobalte-core/popper/index.d.ts +42 -0
  355. package/vendor/kobalte-core/popper/index.js +2 -0
  356. package/vendor/kobalte-core/popper/index.jsx +20 -0
  357. package/vendor/kobalte-core/popper-arrow-89a19127.d.ts +24 -0
  358. package/vendor/kobalte-core/popper-root-c2da235c.d.ts +81 -0
  359. package/vendor/kobalte-core/primitives/create-collection/index.d.ts +16 -0
  360. package/vendor/kobalte-core/primitives/create-collection/index.js +3 -0
  361. package/vendor/kobalte-core/primitives/create-collection/index.jsx +12 -0
  362. package/vendor/kobalte-core/primitives/create-controllable-signal/index.d.ts +33 -0
  363. package/vendor/kobalte-core/primitives/create-controllable-signal/index.js +2 -0
  364. package/vendor/kobalte-core/primitives/create-controllable-signal/index.jsx +15 -0
  365. package/vendor/kobalte-core/primitives/create-disclosure-state/index.d.ts +31 -0
  366. package/vendor/kobalte-core/primitives/create-disclosure-state/index.js +2 -0
  367. package/vendor/kobalte-core/primitives/create-disclosure-state/index.jsx +10 -0
  368. package/vendor/kobalte-core/primitives/create-dom-collection/index.d.ts +32 -0
  369. package/vendor/kobalte-core/primitives/create-dom-collection/index.js +2 -0
  370. package/vendor/kobalte-core/primitives/create-dom-collection/index.jsx +17 -0
  371. package/vendor/kobalte-core/primitives/create-escape-key-down/index.d.ts +18 -0
  372. package/vendor/kobalte-core/primitives/create-escape-key-down/index.js +2 -0
  373. package/vendor/kobalte-core/primitives/create-escape-key-down/index.jsx +8 -0
  374. package/vendor/kobalte-core/primitives/create-focus-scope/index.d.ts +21 -0
  375. package/vendor/kobalte-core/primitives/create-focus-scope/index.js +2 -0
  376. package/vendor/kobalte-core/primitives/create-focus-scope/index.jsx +9 -0
  377. package/vendor/kobalte-core/primitives/create-form-reset-listener/index.d.ts +9 -0
  378. package/vendor/kobalte-core/primitives/create-form-reset-listener/index.js +2 -0
  379. package/vendor/kobalte-core/primitives/create-form-reset-listener/index.jsx +8 -0
  380. package/vendor/kobalte-core/primitives/create-hide-outside/index.d.ts +29 -0
  381. package/vendor/kobalte-core/primitives/create-hide-outside/index.js +2 -0
  382. package/vendor/kobalte-core/primitives/create-hide-outside/index.jsx +12 -0
  383. package/vendor/kobalte-core/primitives/create-interact-outside/index.d.ts +39 -0
  384. package/vendor/kobalte-core/primitives/create-interact-outside/index.js +2 -0
  385. package/vendor/kobalte-core/primitives/create-interact-outside/index.jsx +9 -0
  386. package/vendor/kobalte-core/primitives/create-register-id/index.d.ts +9 -0
  387. package/vendor/kobalte-core/primitives/create-register-id/index.js +2 -0
  388. package/vendor/kobalte-core/primitives/create-register-id/index.jsx +8 -0
  389. package/vendor/kobalte-core/primitives/create-size/index.d.ts +9 -0
  390. package/vendor/kobalte-core/primitives/create-size/index.js +2 -0
  391. package/vendor/kobalte-core/primitives/create-size/index.jsx +8 -0
  392. package/vendor/kobalte-core/primitives/create-tag-name/index.d.ts +15 -0
  393. package/vendor/kobalte-core/primitives/create-tag-name/index.js +2 -0
  394. package/vendor/kobalte-core/primitives/create-tag-name/index.jsx +9 -0
  395. package/vendor/kobalte-core/primitives/create-toggle-state/index.d.ts +33 -0
  396. package/vendor/kobalte-core/primitives/create-toggle-state/index.js +2 -0
  397. package/vendor/kobalte-core/primitives/create-toggle-state/index.jsx +10 -0
  398. package/vendor/kobalte-core/primitives/create-transition/index.d.ts +52 -0
  399. package/vendor/kobalte-core/primitives/create-transition/index.js +2 -0
  400. package/vendor/kobalte-core/primitives/create-transition/index.jsx +8 -0
  401. package/vendor/kobalte-core/progress/index.d.ts +6 -0
  402. package/vendor/kobalte-core/progress/index.js +2 -0
  403. package/vendor/kobalte-core/progress/index.jsx +24 -0
  404. package/vendor/kobalte-core/radio-group/index.d.ts +8 -0
  405. package/vendor/kobalte-core/radio-group/index.js +4 -0
  406. package/vendor/kobalte-core/radio-group/index.jsx +40 -0
  407. package/vendor/kobalte-core/radio-group-root-0af7f9b9.d.ts +195 -0
  408. package/vendor/kobalte-core/rating/index.d.ts +172 -0
  409. package/vendor/kobalte-core/rating/index.js +464 -0
  410. package/vendor/kobalte-core/rating/index.jsx +540 -0
  411. package/vendor/kobalte-core/search/index.d.ts +85 -0
  412. package/vendor/kobalte-core/search/index.js +177 -0
  413. package/vendor/kobalte-core/search/index.jsx +227 -0
  414. package/vendor/kobalte-core/segmented-control/index.d.ts +69 -0
  415. package/vendor/kobalte-core/segmented-control/index.js +162 -0
  416. package/vendor/kobalte-core/segmented-control/index.jsx +217 -0
  417. package/vendor/kobalte-core/select/index.d.ts +19 -0
  418. package/vendor/kobalte-core/select/index.js +6 -0
  419. package/vendor/kobalte-core/select/index.jsx +75 -0
  420. package/vendor/kobalte-core/separator/index.d.ts +6 -0
  421. package/vendor/kobalte-core/separator/index.js +2 -0
  422. package/vendor/kobalte-core/separator/index.jsx +12 -0
  423. package/vendor/kobalte-core/separator-root-cb685406.d.ts +25 -0
  424. package/vendor/kobalte-core/skeleton/index.d.ts +5 -0
  425. package/vendor/kobalte-core/skeleton/index.js +2 -0
  426. package/vendor/kobalte-core/skeleton/index.jsx +11 -0
  427. package/vendor/kobalte-core/slider/index.d.ts +11 -0
  428. package/vendor/kobalte-core/slider/index.js +5 -0
  429. package/vendor/kobalte-core/slider/index.jsx +43 -0
  430. package/vendor/kobalte-core/slider-value-label-2be90f59.d.ts +211 -0
  431. package/vendor/kobalte-core/spin-button/index.d.ts +10 -0
  432. package/vendor/kobalte-core/spin-button/index.js +2 -0
  433. package/vendor/kobalte-core/spin-button/index.jsx +12 -0
  434. package/vendor/kobalte-core/spin-button-root-3a44420a.d.ts +63 -0
  435. package/vendor/kobalte-core/switch/index.d.ts +8 -0
  436. package/vendor/kobalte-core/switch/index.js +2 -0
  437. package/vendor/kobalte-core/switch/index.jsx +35 -0
  438. package/vendor/kobalte-core/tabs/index.d.ts +8 -0
  439. package/vendor/kobalte-core/tabs/index.js +2 -0
  440. package/vendor/kobalte-core/tabs/index.jsx +27 -0
  441. package/vendor/kobalte-core/text-field/index.d.ts +9 -0
  442. package/vendor/kobalte-core/text-field/index.js +5 -0
  443. package/vendor/kobalte-core/text-field/index.jsx +34 -0
  444. package/vendor/kobalte-core/text-field-root-0b8dfa5a.d.ts +73 -0
  445. package/vendor/kobalte-core/time-field/index.d.ts +165 -0
  446. package/vendor/kobalte-core/time-field/index.js +818 -0
  447. package/vendor/kobalte-core/time-field/index.jsx +824 -0
  448. package/vendor/kobalte-core/toast/index.d.ts +6 -0
  449. package/vendor/kobalte-core/toast/index.js +2 -0
  450. package/vendor/kobalte-core/toast/index.jsx +33 -0
  451. package/vendor/kobalte-core/toggle-button/index.d.ts +7 -0
  452. package/vendor/kobalte-core/toggle-button/index.js +2 -0
  453. package/vendor/kobalte-core/toggle-button/index.jsx +16 -0
  454. package/vendor/kobalte-core/toggle-button-root-1cfacf95.d.ts +42 -0
  455. package/vendor/kobalte-core/toggle-group/index.d.ts +10 -0
  456. package/vendor/kobalte-core/toggle-group/index.js +2 -0
  457. package/vendor/kobalte-core/toggle-group/index.jsx +26 -0
  458. package/vendor/kobalte-core/tooltip/index.d.ts +10 -0
  459. package/vendor/kobalte-core/tooltip/index.js +3 -0
  460. package/vendor/kobalte-core/tooltip/index.jsx +32 -0
  461. package/vendor/kobalte-core/types-6adf33e1.d.ts +8 -0
  462. package/vendor/kobalte-core/types-877adc4a.d.ts +125 -0
  463. package/vendor/kobalte-core/types-f8ae18e5.d.ts +72 -0
  464. package/vendor/kobalte-core/utils-45fb8d63.d.ts +11 -0
  465. package/vendor/kobalte-utils/LICENSE.md +21 -0
  466. package/vendor/kobalte-utils/NOTICE.txt +231 -0
  467. package/vendor/kobalte-utils/index.cjs +878 -0
  468. package/vendor/kobalte-utils/index.d.cts +227 -0
  469. package/vendor/kobalte-utils/index.d.ts +227 -0
  470. package/vendor/kobalte-utils/index.js +791 -0
  471. package/vendor/origins.json +33 -0
  472. package/vendor/solid-web/LICENSE +21 -0
  473. package/vendor/solid-web/dev.cjs +896 -0
  474. package/vendor/solid-web/dev.js +784 -0
  475. package/vendor/solid-web/server.cjs +2 -0
  476. package/vendor/solid-web/server.js +2 -0
  477. package/vendor/solid-web/types/client.d.ts +93 -0
  478. package/vendor/solid-web/types/core.d.ts +2 -0
  479. package/vendor/solid-web/types/index.d.ts +50 -0
  480. package/vendor/solid-web/types/jsx.d.ts +1 -0
  481. package/vendor/solid-web/types/server-mock.d.ts +65 -0
  482. package/vendor/solid-web/types/server.d.ts +187 -0
  483. package/vendor/solid-web/web.cjs +885 -0
  484. package/vendor/solid-web/web.js +773 -0
@@ -0,0 +1,732 @@
1
+ // Vendored and modified by Gemologic Sheen from @kobalte/core@0.13.13; see package THIRD_PARTY_NOTICES.md.
2
+ import { createNumberFormatter } from './7TPOQ36Z.js';
3
+ import { clamp } from "#sheen-kobalte-utils";
4
+
5
+ // src/colors/intl.ts
6
+ var COLOR_INTL_TRANSLATIONS = {
7
+ hue: "Hue",
8
+ saturation: "Saturation",
9
+ lightness: "Lightness",
10
+ brightness: "Brightness",
11
+ red: "Red",
12
+ green: "Green",
13
+ blue: "Blue",
14
+ alpha: "Alpha",
15
+ colorName: (lightness, chroma, hue) => `${lightness} ${chroma} ${hue}`,
16
+ transparentColorName: (lightness, chroma, hue, percentTransparent) => `${lightness} ${chroma} ${hue}, ${percentTransparent} transparent`,
17
+ "very dark": "very dark",
18
+ dark: "dark",
19
+ light: "light",
20
+ "very light": "very light",
21
+ pale: "pale",
22
+ grayish: "grayish",
23
+ vibrant: "vibrant",
24
+ black: "black",
25
+ white: "white",
26
+ gray: "gray",
27
+ pink: "pink",
28
+ "pink red": "pink red",
29
+ "red orange": "red orange",
30
+ brown: "brown",
31
+ orange: "orange",
32
+ "orange yellow": "orange yellow",
33
+ "brown yellow": "brown yellow",
34
+ yellow: "yellow",
35
+ "yellow green": "yellow green",
36
+ "green cyan": "green cyan",
37
+ cyan: "cyan",
38
+ "cyan blue": "cyan blue",
39
+ "blue purple": "blue purple",
40
+ purple: "purple",
41
+ "purple magenta": "purple magenta",
42
+ magenta: "magenta",
43
+ "magenta pink": "magenta pink"
44
+ };
45
+ function parseColor(value) {
46
+ const res = RGBColor.parse(value) || HSBColor.parse(value) || HSLColor.parse(value);
47
+ if (res) {
48
+ return res;
49
+ }
50
+ throw new Error(`Invalid color value: ${value}`);
51
+ }
52
+ function normalizeColor(v) {
53
+ if (typeof v === "string") {
54
+ return parseColor(v);
55
+ }
56
+ return v;
57
+ }
58
+ function getColorChannels(colorSpace) {
59
+ switch (colorSpace) {
60
+ case "rgb":
61
+ return RGBColor.colorChannels;
62
+ case "hsl":
63
+ return HSLColor.colorChannels;
64
+ case "hsb":
65
+ return HSBColor.colorChannels;
66
+ }
67
+ }
68
+ function normalizeHue(hue) {
69
+ if (hue === 360) {
70
+ return hue;
71
+ }
72
+ return (hue % 360 + 360) % 360;
73
+ }
74
+ var ORANGE_LIGHTNESS_THRESHOLD = 0.68;
75
+ var YELLOW_GREEN_LIGHTNESS_THRESHOLD = 0.85;
76
+ var MAX_DARK_LIGHTNESS = 0.55;
77
+ var GRAY_THRESHOLD = 1e-3;
78
+ var OKLCH_HUES = [
79
+ [0, "pink"],
80
+ [15, "red"],
81
+ [48, "orange"],
82
+ [94, "yellow"],
83
+ [135, "green"],
84
+ [175, "cyan"],
85
+ [264, "blue"],
86
+ [284, "purple"],
87
+ [320, "magenta"],
88
+ [349, "pink"]
89
+ ];
90
+ var Color = class {
91
+ toHexInt() {
92
+ return this.toFormat("rgb").toHexInt();
93
+ }
94
+ getChannelValue(channel) {
95
+ if (channel in this) {
96
+ return this[channel];
97
+ }
98
+ throw new Error(`Unsupported color channel: ${channel}`);
99
+ }
100
+ withChannelValue(channel, value) {
101
+ if (channel in this) {
102
+ const x = this.clone();
103
+ x[channel] = value;
104
+ return x;
105
+ }
106
+ throw new Error(`Unsupported color channel: ${channel}`);
107
+ }
108
+ getChannelName(channel, translations) {
109
+ return translations[channel];
110
+ }
111
+ getColorSpaceAxes(xyChannels) {
112
+ const { xChannel, yChannel } = xyChannels;
113
+ const xCh = xChannel || this.getColorChannels().find((c) => c !== yChannel);
114
+ const yCh = yChannel || this.getColorChannels().find((c) => c !== xCh);
115
+ const zCh = this.getColorChannels().find((c) => c !== xCh && c !== yCh);
116
+ return { xChannel: xCh, yChannel: yCh, zChannel: zCh };
117
+ }
118
+ getColorName(translations) {
119
+ let [l, c, h] = toOKLCH(this);
120
+ if (l > 0.999) {
121
+ return translations.white;
122
+ }
123
+ if (l < 1e-3) {
124
+ return translations.black;
125
+ }
126
+ let hue;
127
+ [hue, l] = this.getOklchHue(l, c, h, translations);
128
+ let lightness = "";
129
+ let chroma = "";
130
+ if (c <= 0.1 && c >= GRAY_THRESHOLD) {
131
+ if (l >= 0.7) {
132
+ chroma = "pale";
133
+ } else {
134
+ chroma = "grayish";
135
+ }
136
+ } else if (c >= 0.15) {
137
+ chroma = "vibrant";
138
+ }
139
+ if (l < 0.3) {
140
+ lightness = "very dark";
141
+ } else if (l < MAX_DARK_LIGHTNESS) {
142
+ lightness = "dark";
143
+ } else if (l < 0.7) ; else if (l < 0.85) {
144
+ lightness = "light";
145
+ } else {
146
+ lightness = "very light";
147
+ }
148
+ if (chroma) {
149
+ chroma = translations[chroma];
150
+ }
151
+ if (lightness) {
152
+ lightness = translations[lightness];
153
+ }
154
+ const alpha = this.getChannelValue("alpha");
155
+ if (alpha < 1) {
156
+ const percentTransparent = createNumberFormatter(() => ({
157
+ style: "percent"
158
+ }))().format(1 - alpha);
159
+ return translations.transparentColorName(lightness, chroma, hue, percentTransparent).replace(/\s+/g, " ").trim();
160
+ }
161
+ return translations.colorName(lightness, chroma, hue).replace(/\s+/g, " ").trim();
162
+ }
163
+ getOklchHue(l, c, h, translations) {
164
+ if (c < GRAY_THRESHOLD) {
165
+ return [translations.gray, l];
166
+ }
167
+ for (let i = 0; i < OKLCH_HUES.length; i++) {
168
+ let [hue, hueName] = OKLCH_HUES[i];
169
+ const [nextHue, nextHueName] = OKLCH_HUES[i + 1] || [360, "pink"];
170
+ if (h >= hue && h < nextHue) {
171
+ if (hueName === "orange") {
172
+ if (l < ORANGE_LIGHTNESS_THRESHOLD) {
173
+ hueName = "brown";
174
+ } else {
175
+ l = l - ORANGE_LIGHTNESS_THRESHOLD + MAX_DARK_LIGHTNESS;
176
+ }
177
+ }
178
+ if (h > hue + (nextHue - hue) / 2 && hueName !== nextHueName) {
179
+ hueName = `${hueName} ${nextHueName}`;
180
+ } else if (hueName === "yellow" && l < YELLOW_GREEN_LIGHTNESS_THRESHOLD) {
181
+ hueName = "yellow green";
182
+ }
183
+ const name = translations[hueName];
184
+ return [name, l];
185
+ }
186
+ }
187
+ throw new Error("Unexpected hue");
188
+ }
189
+ getHueName(translations) {
190
+ const [l, c, h] = toOKLCH(this);
191
+ const [name] = this.getOklchHue(l, c, h, translations);
192
+ return name;
193
+ }
194
+ };
195
+ var RGBColor = class _RGBColor extends Color {
196
+ constructor(red, green, blue, alpha) {
197
+ super();
198
+ this.red = red;
199
+ this.green = green;
200
+ this.blue = blue;
201
+ this.alpha = alpha;
202
+ }
203
+ static parse(value) {
204
+ let colors = [];
205
+ if (/^#[\da-f]+$/i.test(value) && [4, 5, 7, 9].includes(value.length)) {
206
+ const values = (value.length < 6 ? value.replace(/[^#]/gi, "$&$&") : value).slice(1).split("");
207
+ while (values.length > 0) {
208
+ colors.push(Number.parseInt(values.splice(0, 2).join(""), 16));
209
+ }
210
+ colors[3] = colors[3] !== void 0 ? colors[3] / 255 : void 0;
211
+ }
212
+ const match = value.match(/^rgba?\((.*)\)$/);
213
+ if (match?.[1]) {
214
+ colors = match[1].replace(
215
+ /(\d+)%$/u,
216
+ (_substring, numberValue) => (Number(numberValue) / 100).toString()
217
+ ).replaceAll(/,|\//gu, " ").replaceAll(/\s{2,}/gu, " ").split(" ").map((value2) => {
218
+ return Number(value2.trim());
219
+ });
220
+ colors = colors.map((num, i) => {
221
+ return clamp(num ?? 0, 0, i < 3 ? 255 : 1);
222
+ });
223
+ }
224
+ if (colors[0] === void 0 || colors[1] === void 0 || colors[2] === void 0) {
225
+ return void 0;
226
+ }
227
+ return colors.length < 3 ? void 0 : new _RGBColor(colors[0], colors[1], colors[2], colors[3] ?? 1);
228
+ }
229
+ toString(format = "css") {
230
+ switch (format) {
231
+ case "hex":
232
+ return `#${(this.red.toString(16).padStart(2, "0") + this.green.toString(16).padStart(2, "0") + this.blue.toString(16).padStart(2, "0")).toUpperCase()}`;
233
+ case "hexa":
234
+ return `#${(this.red.toString(16).padStart(2, "0") + this.green.toString(16).padStart(2, "0") + this.blue.toString(16).padStart(2, "0") + Math.round(this.alpha * 255).toString(16).padStart(2, "0")).toUpperCase()}`;
235
+ case "css":
236
+ case "rgb":
237
+ return `rgb(${this.red}, ${this.green}, ${this.blue}${this.alpha !== 1 && this.alpha !== 100 ? ` / ${this?.alpha}` : ""})`;
238
+ case "rgba":
239
+ return `rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;
240
+ default:
241
+ return this.toFormat(format).toString(format);
242
+ }
243
+ }
244
+ toFormat(format) {
245
+ switch (format) {
246
+ case "hex":
247
+ case "hexa":
248
+ case "rgb":
249
+ case "rgba":
250
+ return this;
251
+ case "hsb":
252
+ case "hsba":
253
+ return this.toHSB();
254
+ case "hsl":
255
+ case "hsla":
256
+ return this.toHSL();
257
+ default:
258
+ throw new Error(`Unsupported color conversion: rgb -> ${format}`);
259
+ }
260
+ }
261
+ toHexInt() {
262
+ return this.red << 16 | this.green << 8 | this.blue;
263
+ }
264
+ /**
265
+ * Converts an RGB color value to HSB.
266
+ * Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB.
267
+ * @returns An HSBColor object.
268
+ */
269
+ toHSB() {
270
+ const red = this.red / 255;
271
+ const green = this.green / 255;
272
+ const blue = this.blue / 255;
273
+ const min = Math.min(red, green, blue);
274
+ const brightness = Math.max(red, green, blue);
275
+ const chroma = brightness - min;
276
+ const saturation = brightness === 0 ? 0 : chroma / brightness;
277
+ let hue = 0;
278
+ if (chroma !== 0) {
279
+ switch (brightness) {
280
+ case red:
281
+ hue = (green - blue) / chroma + (green < blue ? 6 : 0);
282
+ break;
283
+ case green:
284
+ hue = (blue - red) / chroma + 2;
285
+ break;
286
+ case blue:
287
+ hue = (red - green) / chroma + 4;
288
+ break;
289
+ }
290
+ hue /= 6;
291
+ }
292
+ return new HSBColor(
293
+ toFixedNumber(hue * 360, 2),
294
+ toFixedNumber(saturation * 100, 2),
295
+ toFixedNumber(brightness * 100, 2),
296
+ this.alpha
297
+ );
298
+ }
299
+ /**
300
+ * Converts an RGB color value to HSL.
301
+ * Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_and_HSV#From_RGB.
302
+ * @returns An HSLColor object.
303
+ */
304
+ toHSL() {
305
+ const red = this.red / 255;
306
+ const green = this.green / 255;
307
+ const blue = this.blue / 255;
308
+ const min = Math.min(red, green, blue);
309
+ const max = Math.max(red, green, blue);
310
+ const lightness = (max + min) / 2;
311
+ const chroma = max - min;
312
+ let hue;
313
+ let saturation;
314
+ if (chroma === 0) {
315
+ hue = saturation = 0;
316
+ } else {
317
+ saturation = chroma / (lightness < 0.5 ? max + min : 2 - max - min);
318
+ switch (max) {
319
+ case red:
320
+ hue = (green - blue) / chroma + (green < blue ? 6 : 0);
321
+ break;
322
+ case green:
323
+ hue = (blue - red) / chroma + 2;
324
+ break;
325
+ default:
326
+ hue = (red - green) / chroma + 4;
327
+ break;
328
+ }
329
+ hue /= 6;
330
+ }
331
+ return new HSLColor(
332
+ toFixedNumber(hue * 360, 2),
333
+ toFixedNumber(saturation * 100, 2),
334
+ toFixedNumber(lightness * 100, 2),
335
+ this.alpha
336
+ );
337
+ }
338
+ clone() {
339
+ return new _RGBColor(this.red, this.green, this.blue, this.alpha);
340
+ }
341
+ getChannelRange(channel) {
342
+ switch (channel) {
343
+ case "red":
344
+ case "green":
345
+ case "blue":
346
+ return { minValue: 0, maxValue: 255, step: 1, pageSize: 17 };
347
+ case "alpha":
348
+ return { minValue: 0, maxValue: 1, step: 0.01, pageSize: 0.1 };
349
+ default:
350
+ throw new Error(`Unknown color channel: ${channel}`);
351
+ }
352
+ }
353
+ getChannelFormatOptions(channel) {
354
+ switch (channel) {
355
+ case "red":
356
+ case "green":
357
+ case "blue":
358
+ return { style: "decimal" };
359
+ case "alpha":
360
+ return { style: "percent", maximumFractionDigits: 2 };
361
+ default:
362
+ throw new Error(`Unknown color channel: ${channel}`);
363
+ }
364
+ }
365
+ formatChannelValue(channel) {
366
+ const options = this.getChannelFormatOptions(channel);
367
+ const value = this.getChannelValue(channel);
368
+ return createNumberFormatter(() => options)().format(value);
369
+ }
370
+ getColorSpace() {
371
+ return "rgb";
372
+ }
373
+ static colorChannels = [
374
+ "red",
375
+ "green",
376
+ "blue"
377
+ ];
378
+ getColorChannels() {
379
+ return _RGBColor.colorChannels;
380
+ }
381
+ };
382
+ var HSB_REGEX = /hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;
383
+ var HSBColor = class _HSBColor extends Color {
384
+ constructor(hue, saturation, brightness, alpha) {
385
+ super();
386
+ this.hue = hue;
387
+ this.saturation = saturation;
388
+ this.brightness = brightness;
389
+ this.alpha = alpha;
390
+ }
391
+ static parse(value) {
392
+ let m;
393
+ if (m = value.match(HSB_REGEX)) {
394
+ const [h, s, b, a] = (m[1] ?? m[2]).split(",").map((n) => Number(n.trim().replace("%", "")));
395
+ return new _HSBColor(
396
+ normalizeHue(h),
397
+ clamp(s, 0, 100),
398
+ clamp(b, 0, 100),
399
+ clamp(a ?? 1, 0, 1)
400
+ );
401
+ }
402
+ }
403
+ toString(format = "css") {
404
+ switch (format) {
405
+ case "css":
406
+ return this.toHSL().toString("css");
407
+ case "hex":
408
+ return this.toRGB().toString("hex");
409
+ case "hexa":
410
+ return this.toRGB().toString("hexa");
411
+ case "hsb":
412
+ return `hsb(${this.hue} ${toFixedNumber(this.saturation, 2)}% ${toFixedNumber(this.brightness, 2)}%)`;
413
+ case "hsba":
414
+ return `hsba(${this.hue} ${toFixedNumber(this.saturation, 2)}% ${toFixedNumber(this.brightness, 2)}% ${this.alpha})`;
415
+ default:
416
+ return this.toFormat(format).toString(format);
417
+ }
418
+ }
419
+ toFormat(format) {
420
+ switch (format) {
421
+ case "hsb":
422
+ case "hsba":
423
+ return this;
424
+ case "hsl":
425
+ case "hsla":
426
+ return this.toHSL();
427
+ case "rgb":
428
+ case "rgba":
429
+ return this.toRGB();
430
+ default:
431
+ throw new Error(`Unsupported color conversion: hsb -> ${format}`);
432
+ }
433
+ }
434
+ /**
435
+ * Converts a HSB color to HSL.
436
+ * Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_HSL.
437
+ * @returns An HSLColor object.
438
+ */
439
+ toHSL() {
440
+ let saturation = this.saturation / 100;
441
+ const brightness = this.brightness / 100;
442
+ const lightness = brightness * (1 - saturation / 2);
443
+ saturation = lightness === 0 || lightness === 1 ? 0 : (brightness - lightness) / Math.min(lightness, 1 - lightness);
444
+ return new HSLColor(
445
+ toFixedNumber(this.hue, 2),
446
+ toFixedNumber(saturation * 100, 2),
447
+ toFixedNumber(lightness * 100, 2),
448
+ this.alpha
449
+ );
450
+ }
451
+ /**
452
+ * Converts a HSV color value to RGB.
453
+ * Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative.
454
+ * @returns An RGBColor object.
455
+ */
456
+ toRGB() {
457
+ const hue = this.hue;
458
+ const saturation = this.saturation / 100;
459
+ const brightness = this.brightness / 100;
460
+ const fn = (n, k = (n + hue / 60) % 6) => brightness - saturation * brightness * Math.max(Math.min(k, 4 - k, 1), 0);
461
+ return new RGBColor(
462
+ Math.round(fn(5) * 255),
463
+ Math.round(fn(3) * 255),
464
+ Math.round(fn(1) * 255),
465
+ this.alpha
466
+ );
467
+ }
468
+ clone() {
469
+ return new _HSBColor(this.hue, this.saturation, this.brightness, this.alpha);
470
+ }
471
+ getChannelRange(channel) {
472
+ switch (channel) {
473
+ case "hue":
474
+ return { minValue: 0, maxValue: 360, step: 1, pageSize: 15 };
475
+ case "saturation":
476
+ case "brightness":
477
+ return { minValue: 0, maxValue: 100, step: 1, pageSize: 10 };
478
+ case "alpha":
479
+ return { minValue: 0, maxValue: 1, step: 0.01, pageSize: 0.1 };
480
+ default:
481
+ throw new Error(`Unknown color channel: ${channel}`);
482
+ }
483
+ }
484
+ getChannelFormatOptions(channel) {
485
+ switch (channel) {
486
+ case "hue":
487
+ return { style: "unit", unit: "degree", unitDisplay: "narrow" };
488
+ case "saturation":
489
+ case "brightness":
490
+ case "alpha":
491
+ return { style: "percent", maximumFractionDigits: 2 };
492
+ default:
493
+ throw new Error(`Unknown color channel: ${channel}`);
494
+ }
495
+ }
496
+ formatChannelValue(channel) {
497
+ const options = this.getChannelFormatOptions(channel);
498
+ let value = this.getChannelValue(channel);
499
+ if (channel === "saturation" || channel === "brightness") {
500
+ value /= 100;
501
+ }
502
+ return createNumberFormatter(() => options)().format(value);
503
+ }
504
+ getColorSpace() {
505
+ return "hsb";
506
+ }
507
+ static colorChannels = [
508
+ "hue",
509
+ "saturation",
510
+ "brightness"
511
+ ];
512
+ getColorChannels() {
513
+ return _HSBColor.colorChannels;
514
+ }
515
+ };
516
+ var HSL_REGEX = /hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;
517
+ var HSLColor = class _HSLColor extends Color {
518
+ constructor(hue, saturation, lightness, alpha) {
519
+ super();
520
+ this.hue = hue;
521
+ this.saturation = saturation;
522
+ this.lightness = lightness;
523
+ this.alpha = alpha;
524
+ }
525
+ static parse(value) {
526
+ let m;
527
+ if (m = value.match(HSL_REGEX)) {
528
+ const [h, s, l, a] = (m[1] ?? m[2]).split(",").map((n) => Number(n.trim().replace("%", "")));
529
+ return new _HSLColor(
530
+ normalizeHue(h),
531
+ clamp(s, 0, 100),
532
+ clamp(l, 0, 100),
533
+ clamp(a ?? 1, 0, 1)
534
+ );
535
+ }
536
+ }
537
+ toString(format = "css") {
538
+ switch (format) {
539
+ case "hex":
540
+ return this.toRGB().toString("hex");
541
+ case "hexa":
542
+ return this.toRGB().toString("hexa");
543
+ case "hsl":
544
+ return `hsl(${this.hue} ${toFixedNumber(this.saturation, 2)}% ${toFixedNumber(this.lightness, 2)}%${this.alpha !== 1 && this.alpha !== 100 ? ` / ${this.alpha}` : ""})`;
545
+ case "css":
546
+ case "hsla":
547
+ return `hsla(${this.hue} ${toFixedNumber(this.saturation, 2)}% ${toFixedNumber(this.lightness, 2)}% / ${this.alpha})`;
548
+ default:
549
+ return this.toFormat(format).toString(format);
550
+ }
551
+ }
552
+ toFormat(format) {
553
+ switch (format) {
554
+ case "hsl":
555
+ case "hsla":
556
+ return this;
557
+ case "hsb":
558
+ case "hsba":
559
+ return this.toHSB();
560
+ case "rgb":
561
+ case "rgba":
562
+ return this.toRGB();
563
+ default:
564
+ throw new Error(`Unsupported color conversion: hsl -> ${format}`);
565
+ }
566
+ }
567
+ /**
568
+ * Converts a HSL color to HSB.
569
+ * Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_HSV.
570
+ * @returns An HSBColor object.
571
+ */
572
+ toHSB() {
573
+ let saturation = this.saturation / 100;
574
+ const lightness = this.lightness / 100;
575
+ const brightness = lightness + saturation * Math.min(lightness, 1 - lightness);
576
+ saturation = brightness === 0 ? 0 : 2 * (1 - lightness / brightness);
577
+ return new HSBColor(
578
+ toFixedNumber(this.hue, 2),
579
+ toFixedNumber(saturation * 100, 2),
580
+ toFixedNumber(brightness * 100, 2),
581
+ this.alpha
582
+ );
583
+ }
584
+ /**
585
+ * Converts a HSL color to RGB.
586
+ * Conversion formula adapted from https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB_alternative.
587
+ * @returns An RGBColor object.
588
+ */
589
+ toRGB() {
590
+ const hue = this.hue;
591
+ const saturation = this.saturation / 100;
592
+ const lightness = this.lightness / 100;
593
+ const a = saturation * Math.min(lightness, 1 - lightness);
594
+ const fn = (n, k = (n + hue / 30) % 12) => lightness - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
595
+ return new RGBColor(
596
+ Math.round(fn(0) * 255),
597
+ Math.round(fn(8) * 255),
598
+ Math.round(fn(4) * 255),
599
+ this.alpha
600
+ );
601
+ }
602
+ clone() {
603
+ return new _HSLColor(this.hue, this.saturation, this.lightness, this.alpha);
604
+ }
605
+ getChannelRange(channel) {
606
+ switch (channel) {
607
+ case "hue":
608
+ return { minValue: 0, maxValue: 360, step: 1, pageSize: 15 };
609
+ case "saturation":
610
+ case "lightness":
611
+ return { minValue: 0, maxValue: 100, step: 1, pageSize: 10 };
612
+ case "alpha":
613
+ return { minValue: 0, maxValue: 1, step: 0.01, pageSize: 0.1 };
614
+ default:
615
+ throw new Error(`Unknown color channel: ${channel}`);
616
+ }
617
+ }
618
+ getChannelFormatOptions(channel) {
619
+ switch (channel) {
620
+ case "hue":
621
+ return { style: "unit", unit: "degree", unitDisplay: "narrow" };
622
+ case "saturation":
623
+ case "lightness":
624
+ case "alpha":
625
+ return { style: "percent", maximumFractionDigits: 2 };
626
+ default:
627
+ throw new Error(`Unknown color channel: ${channel}`);
628
+ }
629
+ }
630
+ formatChannelValue(channel) {
631
+ const options = this.getChannelFormatOptions(channel);
632
+ let value = this.getChannelValue(channel);
633
+ if (channel === "saturation" || channel === "lightness") {
634
+ value /= 100;
635
+ }
636
+ return createNumberFormatter(() => options)().format(value);
637
+ }
638
+ getColorSpace() {
639
+ return "hsl";
640
+ }
641
+ static colorChannels = [
642
+ "hue",
643
+ "saturation",
644
+ "lightness"
645
+ ];
646
+ getColorChannels() {
647
+ return _HSLColor.colorChannels;
648
+ }
649
+ };
650
+ function toOKLCH(color) {
651
+ const rgb = color.toFormat("rgb");
652
+ let red = rgb.getChannelValue("red") / 255;
653
+ let green = rgb.getChannelValue("green") / 255;
654
+ let blue = rgb.getChannelValue("blue") / 255;
655
+ [red, green, blue] = lin_sRGB(red, green, blue);
656
+ const [x, y, z] = lin_sRGB_to_XYZ(red, green, blue);
657
+ const [l, a, b] = XYZ_to_OKLab(x, y, z);
658
+ return OKLab_to_OKLCH(l, a, b);
659
+ }
660
+ function OKLab_to_OKLCH(l, a, b) {
661
+ const hue = Math.atan2(b, a) * 180 / Math.PI;
662
+ return [
663
+ l,
664
+ Math.sqrt(a ** 2 + b ** 2),
665
+ // Chroma
666
+ hue >= 0 ? hue : hue + 360
667
+ // Hue, in degrees [0 to 360)
668
+ ];
669
+ }
670
+ function lin_sRGB(r, g, b) {
671
+ return [lin_sRGB_component(r), lin_sRGB_component(g), lin_sRGB_component(b)];
672
+ }
673
+ function lin_sRGB_component(val) {
674
+ const sign = val < 0 ? -1 : 1;
675
+ const abs = Math.abs(val);
676
+ if (abs <= 0.04045) {
677
+ return val / 12.92;
678
+ }
679
+ return sign * ((abs + 0.055) / 1.055) ** 2.4;
680
+ }
681
+ function lin_sRGB_to_XYZ(r, g, b) {
682
+ const M = [
683
+ 506752 / 1228815,
684
+ 87881 / 245763,
685
+ 12673 / 70218,
686
+ 87098 / 409605,
687
+ 175762 / 245763,
688
+ 12673 / 175545,
689
+ 7918 / 409605,
690
+ 87881 / 737289,
691
+ 1001167 / 1053270
692
+ ];
693
+ return multiplyMatrix(M, r, g, b);
694
+ }
695
+ function XYZ_to_OKLab(x, y, z) {
696
+ const XYZtoLMS = [
697
+ 0.819022437996703,
698
+ 0.3619062600528904,
699
+ -0.1288737815209879,
700
+ 0.0329836539323885,
701
+ 0.9292868615863434,
702
+ 0.0361446663506424,
703
+ 0.0481771893596242,
704
+ 0.2642395317527308,
705
+ 0.6335478284694309
706
+ ];
707
+ const LMStoOKLab = [
708
+ 0.210454268309314,
709
+ 0.7936177747023054,
710
+ -0.0040720430116193,
711
+ 1.9779985324311684,
712
+ -2.42859224204858,
713
+ 0.450593709617411,
714
+ 0.0259040424655478,
715
+ 0.7827717124575296,
716
+ -0.8086757549230774
717
+ ];
718
+ const [a, b, c] = multiplyMatrix(XYZtoLMS, x, y, z);
719
+ return multiplyMatrix(LMStoOKLab, Math.cbrt(a), Math.cbrt(b), Math.cbrt(c));
720
+ }
721
+ function multiplyMatrix(m, x, y, z) {
722
+ const a = m[0] * x + m[1] * y + m[2] * z;
723
+ const b = m[3] * x + m[4] * y + m[5] * z;
724
+ const c = m[6] * x + m[7] * y + m[8] * z;
725
+ return [a, b, c];
726
+ }
727
+ function toFixedNumber(value, digits, base = 10) {
728
+ const pow = base ** digits;
729
+ return Math.round(value * pow) / pow;
730
+ }
731
+
732
+ export { COLOR_INTL_TRANSLATIONS, getColorChannels, normalizeColor, normalizeHue, parseColor };