@gemologic/sheen 0.1.0-rc.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,996 @@
1
+ // Vendored and modified by Gemologic Sheen from @kobalte/core@0.13.13; see package THIRD_PARTY_NOTICES.md.
2
+ import {
3
+ HiddenSelectBase
4
+ } from "./GSF7SFRW.jsx";
5
+ import {
6
+ ListboxRoot
7
+ } from "./2UV3VFID.jsx";
8
+ import {
9
+ getItemCount
10
+ } from "./FINWO3A5.jsx";
11
+ import {
12
+ Popper
13
+ } from "./OGE3DKII.jsx";
14
+ import {
15
+ ListKeyboardDelegate
16
+ } from "./BDJEWKR2.jsx";
17
+ import {
18
+ Selection,
19
+ createListState,
20
+ createSelectableCollection
21
+ } from "./RFN6X5VH.jsx";
22
+ import {
23
+ createFilter
24
+ } from "./LP6E37CW.jsx";
25
+ import {
26
+ createFocusScope
27
+ } from "./KEL2LLJM.jsx";
28
+ import {
29
+ createHideOutside
30
+ } from "./EHGSTO6V.jsx";
31
+ import {
32
+ DismissableLayer
33
+ } from "./XNF3WGZ2.jsx";
34
+ import {
35
+ announce
36
+ } from "./JHMNWOLY.jsx";
37
+ import {
38
+ createDisclosureState
39
+ } from "./E53DB7BS.jsx";
40
+ import {
41
+ FORM_CONTROL_FIELD_PROP_NAMES,
42
+ createFormControlField
43
+ } from "./YFEENJN5.jsx";
44
+ import {
45
+ createFormResetListener
46
+ } from "./QJIB6BDF.jsx";
47
+ import {
48
+ FORM_CONTROL_PROP_NAMES,
49
+ FormControlContext,
50
+ createFormControl,
51
+ useFormControlContext
52
+ } from "./XUUROM4M.jsx";
53
+ import {
54
+ createRegisterId
55
+ } from "./JNCCF6MP.jsx";
56
+ import {
57
+ createControllableSignal
58
+ } from "./FN6EICGO.jsx";
59
+ import {
60
+ Polymorphic
61
+ } from "./FLVHQV4A.jsx";
62
+
63
+ // src/combobox/combobox-context.tsx
64
+ import { createContext, useContext } from "solid-js";
65
+ var ComboboxContext = createContext();
66
+ function useComboboxContext() {
67
+ const context = useContext(ComboboxContext);
68
+ if (context === void 0) {
69
+ throw new Error(
70
+ "[kobalte]: `useComboboxContext` must be used within a `Combobox` component"
71
+ );
72
+ }
73
+ return context;
74
+ }
75
+
76
+ // src/combobox/combobox-content.tsx
77
+ import { focusWithoutScrolling, mergeRefs } from "#sheen-kobalte-utils";
78
+ import {
79
+ Show,
80
+ splitProps
81
+ } from "solid-js";
82
+ import { combineStyle } from "@solid-primitives/props";
83
+ import createPreventScroll from "solid-prevent-scroll";
84
+ function ComboboxContent(props) {
85
+ let ref;
86
+ const context = useComboboxContext();
87
+ const [local, others] = splitProps(props, [
88
+ "ref",
89
+ "style",
90
+ "onCloseAutoFocus",
91
+ "onFocusOutside"
92
+ ]);
93
+ const dismiss = () => {
94
+ context.resetInputValue(
95
+ context.listState().selectionManager().selectedKeys()
96
+ );
97
+ context.close();
98
+ setTimeout(() => {
99
+ context.close();
100
+ });
101
+ };
102
+ const onFocusOutside = (e) => {
103
+ local.onFocusOutside?.(e);
104
+ if (context.isOpen() && context.isModal()) {
105
+ e.preventDefault();
106
+ }
107
+ };
108
+ createHideOutside({
109
+ isDisabled: () => !(context.isOpen() && context.isModal()),
110
+ targets: () => {
111
+ const excludedElements = [];
112
+ if (ref) {
113
+ excludedElements.push(ref);
114
+ }
115
+ const controlEl = context.controlRef();
116
+ if (controlEl) {
117
+ excludedElements.push(controlEl);
118
+ }
119
+ return excludedElements;
120
+ }
121
+ });
122
+ createPreventScroll({
123
+ element: () => ref ?? null,
124
+ enabled: () => context.contentPresent() && context.preventScroll()
125
+ });
126
+ createFocusScope(
127
+ {
128
+ trapFocus: () => context.isOpen() && context.isModal(),
129
+ onMountAutoFocus: (e) => {
130
+ e.preventDefault();
131
+ },
132
+ onUnmountAutoFocus: (e) => {
133
+ local.onCloseAutoFocus?.(e);
134
+ if (!e.defaultPrevented) {
135
+ focusWithoutScrolling(context.inputRef());
136
+ e.preventDefault();
137
+ }
138
+ }
139
+ },
140
+ () => ref
141
+ );
142
+ return <Show when={context.contentPresent()}><Popper.Positioner><DismissableLayer
143
+ ref={mergeRefs((el) => {
144
+ context.setContentRef(el);
145
+ ref = el;
146
+ }, local.ref)}
147
+ disableOutsidePointerEvents={context.isModal() && context.isOpen()}
148
+ excludedElements={[context.controlRef]}
149
+ style={combineStyle(
150
+ {
151
+ "--kb-combobox-content-transform-origin": "var(--kb-popper-content-transform-origin)",
152
+ position: "relative"
153
+ },
154
+ local.style
155
+ )}
156
+ onFocusOutside={onFocusOutside}
157
+ onDismiss={dismiss}
158
+ {...context.dataset()}
159
+ {...others}
160
+ /></Popper.Positioner></Show>;
161
+ }
162
+
163
+ // src/combobox/combobox-input.tsx
164
+ import {
165
+ callHandler,
166
+ contains,
167
+ mergeDefaultProps,
168
+ mergeRefs as mergeRefs2
169
+ } from "#sheen-kobalte-utils";
170
+ import { splitProps as splitProps2 } from "solid-js";
171
+ function ComboboxInput(props) {
172
+ let ref;
173
+ const formControlContext = useFormControlContext();
174
+ const context = useComboboxContext();
175
+ const mergedProps = mergeDefaultProps(
176
+ {
177
+ id: context.generateId("input")
178
+ },
179
+ props
180
+ );
181
+ const [local, formControlFieldProps, others] = splitProps2(
182
+ mergedProps,
183
+ [
184
+ "ref",
185
+ "disabled",
186
+ "onClick",
187
+ "onInput",
188
+ "onKeyDown",
189
+ "onFocus",
190
+ "onBlur",
191
+ "onTouchEnd"
192
+ ],
193
+ FORM_CONTROL_FIELD_PROP_NAMES
194
+ );
195
+ const collection = () => context.listState().collection();
196
+ const selectionManager = () => context.listState().selectionManager();
197
+ const isDisabled = () => {
198
+ return local.disabled || context.isDisabled() || formControlContext.isDisabled();
199
+ };
200
+ const { fieldProps } = createFormControlField(formControlFieldProps);
201
+ const onClick = (e) => {
202
+ callHandler(e, local.onClick);
203
+ if (context.triggerMode() === "focus" && !context.isOpen()) {
204
+ context.open(false, "focus");
205
+ }
206
+ };
207
+ const onInput = (e) => {
208
+ callHandler(e, local.onInput);
209
+ if (formControlContext.isReadOnly() || isDisabled()) {
210
+ return;
211
+ }
212
+ const target = e.target;
213
+ context.setInputValue(target.value);
214
+ target.value = context.inputValue() ?? "";
215
+ if (context.isOpen()) {
216
+ if (collection().getSize() <= 0 && !context.allowsEmptyCollection()) {
217
+ context.close();
218
+ }
219
+ } else {
220
+ if (collection().getSize() > 0 || context.allowsEmptyCollection()) {
221
+ context.open(false, "input");
222
+ }
223
+ }
224
+ };
225
+ const onKeyDown = (e) => {
226
+ callHandler(e, local.onKeyDown);
227
+ if (formControlContext.isReadOnly() || isDisabled()) {
228
+ return;
229
+ }
230
+ if (context.isOpen()) {
231
+ callHandler(e, context.onInputKeyDown);
232
+ }
233
+ switch (e.key) {
234
+ case "Enter":
235
+ if (context.isOpen()) {
236
+ e.preventDefault();
237
+ const focusedKey = selectionManager().focusedKey();
238
+ if (focusedKey != null) {
239
+ selectionManager().select(focusedKey);
240
+ }
241
+ }
242
+ break;
243
+ case "Tab":
244
+ if (context.isOpen()) {
245
+ context.close();
246
+ context.resetInputValue(
247
+ context.listState().selectionManager().selectedKeys()
248
+ );
249
+ }
250
+ break;
251
+ case "Escape":
252
+ if (context.isOpen()) {
253
+ context.close();
254
+ context.resetInputValue(
255
+ context.listState().selectionManager().selectedKeys()
256
+ );
257
+ } else {
258
+ context.setInputValue("");
259
+ }
260
+ break;
261
+ case "ArrowDown":
262
+ if (!context.isOpen()) {
263
+ context.open(e.altKey ? false : "first", "manual");
264
+ }
265
+ break;
266
+ case "ArrowUp":
267
+ if (!context.isOpen()) {
268
+ context.open("last", "manual");
269
+ } else {
270
+ if (e.altKey) {
271
+ context.close();
272
+ context.resetInputValue(
273
+ context.listState().selectionManager().selectedKeys()
274
+ );
275
+ }
276
+ }
277
+ break;
278
+ case "ArrowLeft":
279
+ case "ArrowRight":
280
+ selectionManager().setFocusedKey(void 0);
281
+ break;
282
+ case "Backspace":
283
+ if (context.removeOnBackspace() && selectionManager().selectionMode() === "multiple" && context.inputValue() === "") {
284
+ const lastSelectedKey = [...selectionManager().selectedKeys()].pop() ?? "";
285
+ selectionManager().toggleSelection(lastSelectedKey);
286
+ }
287
+ break;
288
+ }
289
+ };
290
+ const onFocus = (e) => {
291
+ callHandler(e, local.onFocus);
292
+ if (context.isInputFocused()) {
293
+ return;
294
+ }
295
+ context.setIsInputFocused(true);
296
+ };
297
+ const onBlur = (e) => {
298
+ callHandler(e, local.onBlur);
299
+ if (contains(context.controlRef(), e.relatedTarget) || contains(context.contentRef(), e.relatedTarget)) {
300
+ return;
301
+ }
302
+ context.setIsInputFocused(false);
303
+ context.resetInputValue(
304
+ context.listState().selectionManager().selectedKeys()
305
+ );
306
+ };
307
+ let lastEventTime = 0;
308
+ const onTouchEnd = (e) => {
309
+ callHandler(e, local.onTouchEnd);
310
+ if (!ref || formControlContext.isReadOnly() || isDisabled()) {
311
+ return;
312
+ }
313
+ if (e.timeStamp - lastEventTime < 500) {
314
+ e.preventDefault();
315
+ ref.focus();
316
+ return;
317
+ }
318
+ const rect = e.target.getBoundingClientRect();
319
+ const touch = e.changedTouches[0];
320
+ const centerX = Math.ceil(rect.left + 0.5 * rect.width);
321
+ const centerY = Math.ceil(rect.top + 0.5 * rect.height);
322
+ if (touch.clientX === centerX && touch.clientY === centerY) {
323
+ e.preventDefault();
324
+ ref.focus();
325
+ context.toggle(false, "manual");
326
+ lastEventTime = e.timeStamp;
327
+ }
328
+ };
329
+ return <Polymorphic
330
+ as="input"
331
+ ref={mergeRefs2((el) => {
332
+ context.setInputRef(el);
333
+ ref = el;
334
+ }, local.ref)}
335
+ id={fieldProps.id()}
336
+ value={context.inputValue()}
337
+ required={formControlContext.isRequired()}
338
+ disabled={formControlContext.isDisabled()}
339
+ readonly={formControlContext.isReadOnly()}
340
+ placeholder={context.placeholder()}
341
+ type="text"
342
+ role="combobox"
343
+ autoComplete="off"
344
+ autoCorrect="off"
345
+ spellCheck="false"
346
+ aria-haspopup="listbox"
347
+ aria-autocomplete="list"
348
+ aria-expanded={context.isOpen()}
349
+ aria-controls={context.isOpen() ? context.listboxId() : void 0}
350
+ aria-activedescendant={context.activeDescendant()}
351
+ aria-label={fieldProps.ariaLabel()}
352
+ aria-labelledby={fieldProps.ariaLabelledBy()}
353
+ aria-describedby={fieldProps.ariaDescribedBy()}
354
+ aria-invalid={formControlContext.validationState() === "invalid" || void 0}
355
+ aria-required={formControlContext.isRequired() || void 0}
356
+ aria-disabled={formControlContext.isDisabled() || void 0}
357
+ aria-readonly={formControlContext.isReadOnly() || void 0}
358
+ onClick={onClick}
359
+ onInput={onInput}
360
+ onKeyDown={onKeyDown}
361
+ onFocus={onFocus}
362
+ onBlur={onBlur}
363
+ onTouchEnd={onTouchEnd}
364
+ {...context.dataset()}
365
+ {...formControlContext.dataset()}
366
+ {...others}
367
+ />;
368
+ }
369
+
370
+ // src/combobox/combobox-listbox.tsx
371
+ import { mergeDefaultProps as mergeDefaultProps2, mergeRefs as mergeRefs3 } from "#sheen-kobalte-utils";
372
+ import {
373
+ createEffect,
374
+ onCleanup,
375
+ splitProps as splitProps3
376
+ } from "solid-js";
377
+ function ComboboxListbox(props) {
378
+ const formControlContext = useFormControlContext();
379
+ const context = useComboboxContext();
380
+ const mergedProps = mergeDefaultProps2(
381
+ {
382
+ id: context.generateId("listbox")
383
+ },
384
+ props
385
+ );
386
+ const [local, others] = splitProps3(mergedProps, ["ref"]);
387
+ const ariaLabelledBy = () => {
388
+ return formControlContext.getAriaLabelledBy(
389
+ others.id,
390
+ context.listboxAriaLabel(),
391
+ void 0
392
+ );
393
+ };
394
+ createEffect(() => onCleanup(context.registerListboxId(others.id)));
395
+ return <ListboxRoot
396
+ ref={mergeRefs3(context.setListboxRef, local.ref)}
397
+ state={context.listState()}
398
+ autoFocus={context.autoFocus()}
399
+ shouldUseVirtualFocus
400
+ shouldSelectOnPressUp
401
+ shouldFocusOnHover
402
+ aria-label={context.listboxAriaLabel()}
403
+ aria-labelledby={ariaLabelledBy()}
404
+ renderItem={context.renderItem}
405
+ renderSection={context.renderSection}
406
+ virtualized={context.isVirtualized()}
407
+ {...others}
408
+ />;
409
+ }
410
+
411
+ // src/combobox/combobox-portal.tsx
412
+ import { Show as Show2 } from "solid-js";
413
+ import { Portal } from "solid-js/web";
414
+ function ComboboxPortal(props) {
415
+ const context = useComboboxContext();
416
+ return <Show2 when={context.contentPresent()}><Portal {...props} /></Show2>;
417
+ }
418
+
419
+ // src/combobox/combobox-control.tsx
420
+ import { isFunction, mergeRefs as mergeRefs4 } from "#sheen-kobalte-utils";
421
+ import {
422
+ children,
423
+ splitProps as splitProps4
424
+ } from "solid-js";
425
+ function ComboboxControl(props) {
426
+ const formControlContext = useFormControlContext();
427
+ const context = useComboboxContext();
428
+ const [local, others] = splitProps4(props, [
429
+ "ref",
430
+ "children"
431
+ ]);
432
+ const selectionManager = () => context.listState().selectionManager();
433
+ return <Polymorphic
434
+ as="div"
435
+ ref={mergeRefs4(context.setControlRef, local.ref)}
436
+ {...context.dataset()}
437
+ {...formControlContext.dataset()}
438
+ {...others}
439
+ ><ComboboxControlChild
440
+ state={{
441
+ selectedOptions: () => context.selectedOptions(),
442
+ remove: (option) => context.removeOptionFromSelection(option),
443
+ clear: () => selectionManager().clearSelection()
444
+ }}
445
+ >{local.children}</ComboboxControlChild></Polymorphic>;
446
+ }
447
+ function ComboboxControlChild(props) {
448
+ const resolvedChildren = children(() => {
449
+ const body = props.children;
450
+ return isFunction(body) ? body(props.state) : body;
451
+ });
452
+ return <>{resolvedChildren()}</>;
453
+ }
454
+
455
+ // src/combobox/combobox-hidden-select.tsx
456
+ function ComboboxHiddenSelect(props) {
457
+ const context = useComboboxContext();
458
+ return <HiddenSelectBase
459
+ collection={context.listState().collection()}
460
+ selectionManager={context.listState().selectionManager()}
461
+ isOpen={context.isOpen()}
462
+ isMultiple={context.isMultiple()}
463
+ isVirtualized={context.isVirtualized()}
464
+ focusTrigger={() => context.inputRef()?.focus({ preventScroll: true })}
465
+ {...props}
466
+ />;
467
+ }
468
+
469
+ // src/combobox/combobox-icon.tsx
470
+ import { mergeDefaultProps as mergeDefaultProps3 } from "#sheen-kobalte-utils";
471
+ function ComboboxIcon(props) {
472
+ const context = useComboboxContext();
473
+ const mergedProps = mergeDefaultProps3(
474
+ { children: "\u25BC" },
475
+ props
476
+ );
477
+ return <Polymorphic
478
+ as="span"
479
+ aria-hidden="true"
480
+ {...context.dataset()}
481
+ {...mergedProps}
482
+ />;
483
+ }
484
+
485
+ // src/combobox/combobox-base.tsx
486
+ import {
487
+ access,
488
+ createGenerateId,
489
+ focusWithoutScrolling as focusWithoutScrolling2,
490
+ isAppleDevice,
491
+ isFunction as isFunction2,
492
+ mergeDefaultProps as mergeDefaultProps4
493
+ } from "#sheen-kobalte-utils";
494
+ import {
495
+ createEffect as createEffect2,
496
+ createMemo,
497
+ createSignal,
498
+ createUniqueId,
499
+ on,
500
+ splitProps as splitProps5
501
+ } from "solid-js";
502
+ import createPresence from "solid-presence";
503
+
504
+ // src/combobox/combobox.intl.ts
505
+ var COMBOBOX_INTL_TRANSLATIONS = {
506
+ // Annouce option to screen readers on focus.
507
+ focusAnnouncement: (optionText, isSelected) => `${optionText}${isSelected ? ", selected" : ""}`,
508
+ // Annouce the number of options available to screen readers on open.
509
+ countAnnouncement: (optionCount) => {
510
+ switch (optionCount) {
511
+ case 1:
512
+ return "one option available";
513
+ default:
514
+ `${optionCount} options available`;
515
+ }
516
+ },
517
+ // Annouce the selection of an option to screen readers.
518
+ selectedAnnouncement: (optionText) => `${optionText}, selected`,
519
+ // `aria-label` of Combobox.Trigger.
520
+ triggerLabel: "Show suggestions",
521
+ // `aria-label` of Combobox.Listbox.
522
+ listboxLabel: "Suggestions"
523
+ };
524
+
525
+ // src/combobox/combobox-base.tsx
526
+ function ComboboxBase(props) {
527
+ const defaultId = `combobox-${createUniqueId()}`;
528
+ const filter = createFilter({ sensitivity: "base" });
529
+ const mergedProps = mergeDefaultProps4(
530
+ {
531
+ id: defaultId,
532
+ selectionMode: "single",
533
+ allowsEmptyCollection: false,
534
+ disallowEmptySelection: false,
535
+ allowDuplicateSelectionEvents: true,
536
+ closeOnSelection: props.selectionMode === "single",
537
+ removeOnBackspace: true,
538
+ gutter: 8,
539
+ sameWidth: true,
540
+ modal: false,
541
+ defaultFilter: "contains",
542
+ triggerMode: "input",
543
+ translations: COMBOBOX_INTL_TRANSLATIONS
544
+ },
545
+ props
546
+ );
547
+ const [local, popperProps, formControlProps, others] = splitProps5(
548
+ mergedProps,
549
+ [
550
+ "noResetInputOnBlur",
551
+ "translations",
552
+ "itemComponent",
553
+ "sectionComponent",
554
+ "open",
555
+ "defaultOpen",
556
+ "onOpenChange",
557
+ "onInputChange",
558
+ "value",
559
+ "defaultValue",
560
+ "onChange",
561
+ "triggerMode",
562
+ "placeholder",
563
+ "options",
564
+ "optionValue",
565
+ "optionTextValue",
566
+ "optionLabel",
567
+ "optionDisabled",
568
+ "optionGroupChildren",
569
+ "keyboardDelegate",
570
+ "allowDuplicateSelectionEvents",
571
+ "disallowEmptySelection",
572
+ "defaultFilter",
573
+ "shouldFocusWrap",
574
+ "allowsEmptyCollection",
575
+ "closeOnSelection",
576
+ "removeOnBackspace",
577
+ "selectionBehavior",
578
+ "selectionMode",
579
+ "virtualized",
580
+ "modal",
581
+ "preventScroll",
582
+ "forceMount"
583
+ ],
584
+ [
585
+ "getAnchorRect",
586
+ "placement",
587
+ "gutter",
588
+ "shift",
589
+ "flip",
590
+ "slide",
591
+ "overlap",
592
+ "sameWidth",
593
+ "fitViewport",
594
+ "hideWhenDetached",
595
+ "detachedPadding",
596
+ "arrowPadding",
597
+ "overflowPadding"
598
+ ],
599
+ FORM_CONTROL_PROP_NAMES
600
+ );
601
+ const [listboxId, setListboxId] = createSignal();
602
+ const [controlRef, setControlRef] = createSignal();
603
+ const [inputRef, setInputRef] = createSignal();
604
+ const [triggerRef, setTriggerRef] = createSignal();
605
+ const [contentRef, setContentRef] = createSignal();
606
+ const [listboxRef, setListboxRef] = createSignal();
607
+ const [focusStrategy, setFocusStrategy] = createSignal(false);
608
+ const [isInputFocused, setIsInputFocusedState] = createSignal(false);
609
+ const [showAllOptions, setShowAllOptions] = createSignal(false);
610
+ const [lastDisplayedOptions, setLastDisplayedOptions] = createSignal(
611
+ local.options
612
+ );
613
+ const disclosureState = createDisclosureState({
614
+ open: () => local.open,
615
+ defaultOpen: () => local.defaultOpen,
616
+ onOpenChange: (isOpen) => local.onOpenChange?.(isOpen, openTriggerMode)
617
+ });
618
+ const [inputValue, setInputValue] = createControllableSignal({
619
+ defaultValue: () => "",
620
+ onChange: (value) => {
621
+ local.onInputChange?.(value);
622
+ if (value === "" && local.selectionMode === "single" && !listState.selectionManager().isEmpty() && local.value === void 0) {
623
+ listState.selectionManager().setSelectedKeys([]);
624
+ }
625
+ listState.selectionManager().setFocusedKey(void 0);
626
+ }
627
+ });
628
+ const getOptionValue = (option) => {
629
+ const optionValue = local.optionValue;
630
+ if (optionValue == null) {
631
+ return String(option);
632
+ }
633
+ return String(
634
+ isFunction2(optionValue) ? optionValue(option) : option[optionValue]
635
+ );
636
+ };
637
+ const getOptionLabel = (option) => {
638
+ const optionLabel = local.optionLabel;
639
+ if (optionLabel == null) {
640
+ return String(option);
641
+ }
642
+ return String(
643
+ isFunction2(optionLabel) ? optionLabel(option) : option[optionLabel]
644
+ );
645
+ };
646
+ const getOptionTextValue = (option) => {
647
+ const optionTextValue = local.optionTextValue;
648
+ if (optionTextValue == null) {
649
+ return String(option);
650
+ }
651
+ return String(
652
+ isFunction2(optionTextValue) ? optionTextValue(option) : option[optionTextValue]
653
+ );
654
+ };
655
+ const allOptions = createMemo(() => {
656
+ const optionGroupChildren = local.optionGroupChildren;
657
+ if (optionGroupChildren == null) {
658
+ return local.options;
659
+ }
660
+ return local.options.flatMap(
661
+ (item) => item[optionGroupChildren] ?? item
662
+ );
663
+ });
664
+ const filterFn = (option) => {
665
+ const inputVal = inputValue() ?? "";
666
+ if (isFunction2(local.defaultFilter)) {
667
+ return local.defaultFilter?.(option, inputVal);
668
+ }
669
+ const textVal = getOptionTextValue(option);
670
+ switch (local.defaultFilter) {
671
+ case "startsWith":
672
+ return filter.startsWith(textVal, inputVal);
673
+ case "endsWith":
674
+ return filter.endsWith(textVal, inputVal);
675
+ case "contains":
676
+ return filter.contains(textVal, inputVal);
677
+ }
678
+ };
679
+ const filteredOptions = createMemo(() => {
680
+ const optionGroupChildren = local.optionGroupChildren;
681
+ if (optionGroupChildren == null) {
682
+ return local.options.filter(filterFn);
683
+ }
684
+ const filteredGroups = [];
685
+ for (const optGroup of local.options) {
686
+ const filteredChildrenOptions = optGroup[optionGroupChildren].filter(filterFn);
687
+ if (filteredChildrenOptions.length === 0)
688
+ continue;
689
+ filteredGroups.push({
690
+ ...optGroup,
691
+ [optionGroupChildren]: filteredChildrenOptions
692
+ });
693
+ }
694
+ return filteredGroups;
695
+ });
696
+ const displayedOptions = createMemo(() => {
697
+ if (disclosureState.isOpen()) {
698
+ if (showAllOptions()) {
699
+ return local.options;
700
+ }
701
+ return filteredOptions();
702
+ }
703
+ return lastDisplayedOptions();
704
+ });
705
+ let openTriggerMode = "focus";
706
+ const getOptionsFromValues = (values) => {
707
+ return [...values].map(
708
+ (value) => allOptions().find((option) => getOptionValue(option) === value)
709
+ ).filter((option) => option != null);
710
+ };
711
+ const listState = createListState({
712
+ selectedKeys: () => {
713
+ if (local.value != null) {
714
+ return local.value.map(getOptionValue);
715
+ }
716
+ return local.value;
717
+ },
718
+ defaultSelectedKeys: () => {
719
+ if (local.defaultValue != null) {
720
+ return local.defaultValue.map(getOptionValue);
721
+ }
722
+ return local.defaultValue;
723
+ },
724
+ onSelectionChange: (selectedKeys) => {
725
+ local.onChange?.(getOptionsFromValues(selectedKeys));
726
+ if (local.closeOnSelection) {
727
+ if (disclosureState.isOpen() && selectedKeys.size > 0) {
728
+ close();
729
+ setTimeout(close);
730
+ }
731
+ }
732
+ const inputEl = inputRef();
733
+ if (inputEl) {
734
+ inputEl.setSelectionRange(inputEl.value.length, inputEl.value.length);
735
+ focusWithoutScrolling2(inputEl);
736
+ }
737
+ },
738
+ allowDuplicateSelectionEvents: () => access(local.allowDuplicateSelectionEvents),
739
+ disallowEmptySelection: () => local.disallowEmptySelection,
740
+ selectionBehavior: () => access(local.selectionBehavior),
741
+ selectionMode: () => local.selectionMode,
742
+ dataSource: displayedOptions,
743
+ getKey: () => local.optionValue,
744
+ getTextValue: () => local.optionTextValue,
745
+ getDisabled: () => local.optionDisabled,
746
+ getSectionChildren: () => local.optionGroupChildren
747
+ });
748
+ const selectedOptions = createMemo(() => {
749
+ return getOptionsFromValues(listState.selectionManager().selectedKeys());
750
+ });
751
+ const removeOptionFromSelection = (option) => {
752
+ listState.selectionManager().toggleSelection(getOptionValue(option));
753
+ };
754
+ const { present: contentPresent } = createPresence({
755
+ show: () => local.forceMount || disclosureState.isOpen(),
756
+ element: () => contentRef() ?? null
757
+ });
758
+ const open = (focusStrategy2, triggerMode) => {
759
+ if (local.triggerMode === "manual" && triggerMode !== "manual") {
760
+ return;
761
+ }
762
+ const showAllOptions2 = setShowAllOptions(triggerMode === "manual");
763
+ const hasOptions = showAllOptions2 ? local.options.length > 0 : filteredOptions().length > 0;
764
+ if (!hasOptions && !local.allowsEmptyCollection) {
765
+ return;
766
+ }
767
+ openTriggerMode = triggerMode;
768
+ setFocusStrategy(focusStrategy2);
769
+ disclosureState.open();
770
+ let focusedKey = listState.selectionManager().firstSelectedKey();
771
+ if (focusedKey == null) {
772
+ if (focusStrategy2 === "first") {
773
+ focusedKey = listState.collection().getFirstKey();
774
+ } else if (focusStrategy2 === "last") {
775
+ focusedKey = listState.collection().getLastKey();
776
+ }
777
+ }
778
+ listState.selectionManager().setFocused(true);
779
+ listState.selectionManager().setFocusedKey(focusedKey);
780
+ };
781
+ const close = () => {
782
+ disclosureState.close();
783
+ listState.selectionManager().setFocused(false);
784
+ listState.selectionManager().setFocusedKey(void 0);
785
+ };
786
+ const toggle = (focusStrategy2, triggerMode) => {
787
+ if (disclosureState.isOpen()) {
788
+ close();
789
+ } else {
790
+ open(focusStrategy2, triggerMode);
791
+ }
792
+ };
793
+ const { formControlContext } = createFormControl(formControlProps);
794
+ createFormResetListener(inputRef, () => {
795
+ const defaultSelectedKeys = local.defaultValue ? [...local.defaultValue].map(getOptionValue) : new Selection();
796
+ listState.selectionManager().setSelectedKeys(defaultSelectedKeys);
797
+ });
798
+ const delegate = createMemo(() => {
799
+ const keyboardDelegate = access(local.keyboardDelegate);
800
+ if (keyboardDelegate) {
801
+ return keyboardDelegate;
802
+ }
803
+ return new ListKeyboardDelegate(
804
+ listState.collection,
805
+ listboxRef,
806
+ void 0
807
+ );
808
+ });
809
+ const selectableCollection = createSelectableCollection(
810
+ {
811
+ selectionManager: () => listState.selectionManager(),
812
+ keyboardDelegate: delegate,
813
+ disallowTypeAhead: true,
814
+ disallowEmptySelection: true,
815
+ shouldFocusWrap: () => local.shouldFocusWrap,
816
+ // Prevent item scroll behavior from being applied here, handled in the Listbox component.
817
+ isVirtualized: true
818
+ },
819
+ inputRef
820
+ );
821
+ const setIsInputFocused = (isFocused) => {
822
+ if (isFocused && local.triggerMode === "focus") {
823
+ open(false, "focus");
824
+ }
825
+ setIsInputFocusedState(isFocused);
826
+ listState.selectionManager().setFocused(isFocused);
827
+ };
828
+ const activeDescendant = createMemo(() => {
829
+ const focusedKey = listState.selectionManager().focusedKey();
830
+ if (focusedKey) {
831
+ return listboxRef()?.querySelector(`[data-key="${focusedKey}"]`)?.id;
832
+ }
833
+ return void 0;
834
+ });
835
+ const resetInputValue = (selectedKeys) => {
836
+ if (local.selectionMode === "single") {
837
+ const selectedKey = [...selectedKeys][0];
838
+ const selectedOption = allOptions().find(
839
+ (option) => getOptionValue(option) === selectedKey
840
+ );
841
+ if (local.noResetInputOnBlur && !selectedOption)
842
+ return;
843
+ setInputValue(selectedOption ? getOptionLabel(selectedOption) : "");
844
+ } else {
845
+ if (local.noResetInputOnBlur)
846
+ return;
847
+ setInputValue("");
848
+ }
849
+ };
850
+ const renderItem = (item) => {
851
+ return local.itemComponent?.({ item });
852
+ };
853
+ const renderSection = (section) => {
854
+ return local.sectionComponent?.({ section });
855
+ };
856
+ createEffect2(
857
+ on([filteredOptions, showAllOptions], (input, prevInput) => {
858
+ if (disclosureState.isOpen() && prevInput != null) {
859
+ const prevFilteredOptions = prevInput[0];
860
+ const prevShowAllOptions = prevInput[1];
861
+ setLastDisplayedOptions(
862
+ prevShowAllOptions ? local.options : prevFilteredOptions
863
+ );
864
+ } else {
865
+ const filteredOptions2 = input[0];
866
+ const showAllOptions2 = input[1];
867
+ setLastDisplayedOptions(
868
+ showAllOptions2 ? local.options : filteredOptions2
869
+ );
870
+ }
871
+ })
872
+ );
873
+ createEffect2(
874
+ on(inputValue, () => {
875
+ if (showAllOptions()) {
876
+ setShowAllOptions(false);
877
+ }
878
+ })
879
+ );
880
+ createEffect2(
881
+ on(() => listState.selectionManager().selectedKeys(), resetInputValue)
882
+ );
883
+ let lastAnnouncedFocusedKey = "";
884
+ createEffect2(() => {
885
+ const focusedKey = listState.selectionManager().focusedKey() ?? "";
886
+ const focusedItem = listState.collection().getItem(focusedKey);
887
+ if (isAppleDevice() && focusedItem != null && focusedKey !== lastAnnouncedFocusedKey) {
888
+ const isSelected = listState.selectionManager().isSelected(focusedKey);
889
+ const announcement = local.translations?.focusAnnouncement(
890
+ focusedItem?.textValue || "",
891
+ isSelected
892
+ ) ?? "";
893
+ announce(announcement);
894
+ }
895
+ if (focusedKey) {
896
+ lastAnnouncedFocusedKey = focusedKey;
897
+ }
898
+ });
899
+ let lastOptionCount = getItemCount(listState.collection());
900
+ let lastOpen = disclosureState.isOpen();
901
+ createEffect2(() => {
902
+ const optionCount = getItemCount(listState.collection());
903
+ const isOpen = disclosureState.isOpen();
904
+ const didOpenWithoutFocusedItem = isOpen !== lastOpen && (listState.selectionManager().focusedKey() == null || isAppleDevice());
905
+ if (isOpen && (didOpenWithoutFocusedItem || optionCount !== lastOptionCount)) {
906
+ const announcement = local.translations?.countAnnouncement(optionCount) ?? "";
907
+ announce(announcement);
908
+ }
909
+ lastOptionCount = optionCount;
910
+ lastOpen = isOpen;
911
+ });
912
+ let lastAnnouncedSelectedKey = "";
913
+ createEffect2(() => {
914
+ const lastSelectedKey = [...listState.selectionManager().selectedKeys()].pop() ?? "";
915
+ const lastSelectedItem = listState.collection().getItem(lastSelectedKey);
916
+ if (isAppleDevice() && isInputFocused() && lastSelectedItem && lastSelectedKey !== lastAnnouncedSelectedKey) {
917
+ const announcement = local.translations?.selectedAnnouncement(
918
+ lastSelectedItem?.textValue || ""
919
+ ) ?? "";
920
+ announce(announcement);
921
+ }
922
+ if (lastSelectedKey) {
923
+ lastAnnouncedSelectedKey = lastSelectedKey;
924
+ }
925
+ });
926
+ const dataset = createMemo(() => ({
927
+ "data-expanded": disclosureState.isOpen() ? "" : void 0,
928
+ "data-closed": !disclosureState.isOpen() ? "" : void 0
929
+ }));
930
+ const context = {
931
+ dataset,
932
+ isOpen: disclosureState.isOpen,
933
+ isDisabled: () => formControlContext.isDisabled() ?? false,
934
+ isMultiple: () => access(local.selectionMode) === "multiple",
935
+ isVirtualized: () => local.virtualized ?? false,
936
+ isModal: () => local.modal ?? false,
937
+ preventScroll: () => local.preventScroll ?? context.isModal(),
938
+ allowsEmptyCollection: () => local.allowsEmptyCollection ?? false,
939
+ shouldFocusWrap: () => local.shouldFocusWrap ?? false,
940
+ removeOnBackspace: () => local.removeOnBackspace ?? true,
941
+ selectedOptions,
942
+ isInputFocused,
943
+ contentPresent,
944
+ autoFocus: focusStrategy,
945
+ inputValue,
946
+ triggerMode: () => local.triggerMode,
947
+ activeDescendant,
948
+ controlRef,
949
+ inputRef,
950
+ triggerRef,
951
+ contentRef,
952
+ listState: () => listState,
953
+ keyboardDelegate: delegate,
954
+ listboxId,
955
+ triggerAriaLabel: () => local.translations?.triggerLabel,
956
+ listboxAriaLabel: () => local.translations?.listboxLabel,
957
+ setIsInputFocused,
958
+ resetInputValue,
959
+ setInputValue,
960
+ setControlRef,
961
+ setInputRef,
962
+ setTriggerRef,
963
+ setContentRef,
964
+ setListboxRef,
965
+ open,
966
+ close,
967
+ toggle,
968
+ placeholder: () => local.placeholder,
969
+ renderItem,
970
+ renderSection,
971
+ removeOptionFromSelection,
972
+ onInputKeyDown: (e) => selectableCollection.onKeyDown(e),
973
+ generateId: createGenerateId(() => access(formControlProps.id)),
974
+ registerListboxId: createRegisterId(setListboxId)
975
+ };
976
+ return <FormControlContext.Provider value={formControlContext}><ComboboxContext.Provider value={context}><Popper anchorRef={controlRef} contentRef={contentRef} {...popperProps}><Polymorphic
977
+ as="div"
978
+ role="group"
979
+ id={access(formControlProps.id)}
980
+ {...formControlContext.dataset()}
981
+ {...dataset()}
982
+ {...others}
983
+ /></Popper></ComboboxContext.Provider></FormControlContext.Provider>;
984
+ }
985
+
986
+ export {
987
+ useComboboxContext,
988
+ ComboboxContent,
989
+ ComboboxInput,
990
+ ComboboxListbox,
991
+ ComboboxPortal,
992
+ ComboboxControl,
993
+ ComboboxHiddenSelect,
994
+ ComboboxIcon,
995
+ ComboboxBase
996
+ };