@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.
- package/README.md +11 -1
- package/THIRD_PARTY_NOTICES.md +18 -0
- package/dist/primitives/Accordion.js +1 -1
- package/dist/primitives/Collapsible.js +1 -1
- package/dist/primitives/Combobox.js +1 -1
- package/dist/primitives/CommandPalette.js +2 -2
- package/dist/primitives/ContextMenu.js +2 -2
- package/dist/primitives/Dialog.js +1 -1
- package/dist/primitives/DropdownMenu.js +2 -2
- package/dist/primitives/LinkTooltip.js +1 -1
- package/dist/primitives/Popover.js +1 -1
- package/dist/primitives/Select.js +1 -1
- package/dist/primitives/Tabs.js +1 -1
- package/dist/primitives/Tooltip.js +1 -1
- package/dist/primitives/tooltip-layer.js +1 -1
- package/dist/theme/ThemeProvider.js +30 -30
- package/dist/theme/intl.js +4 -4
- package/dist/utils/polymorphic.d.ts +1 -1
- package/dist/vite.d.ts +3 -0
- package/dist/vite.js +54 -0
- package/package.json +71 -5
- package/src/primitives/Accordion.tsx +1 -1
- package/src/primitives/Collapsible.tsx +1 -1
- package/src/primitives/Combobox.tsx +1 -1
- package/src/primitives/CommandPalette.tsx +2 -2
- package/src/primitives/ContextMenu.tsx +2 -2
- package/src/primitives/Dialog.tsx +1 -1
- package/src/primitives/DropdownMenu.tsx +2 -2
- package/src/primitives/LinkTooltip.tsx +1 -1
- package/src/primitives/Popover.tsx +1 -1
- package/src/primitives/Select.tsx +1 -1
- package/src/primitives/Tabs.tsx +1 -1
- package/src/primitives/Tooltip.tsx +1 -1
- package/src/primitives/tooltip-layer.tsx +1 -1
- package/src/theme/ThemeProvider.tsx +7 -3
- package/src/theme/intl.ts +4 -2
- package/src/utils/polymorphic.ts +1 -1
- package/src/vite.ts +51 -0
- package/vendor/cmdk-solid/LICENSE +14 -0
- package/vendor/cmdk-solid/chunk/5WIGIOAJ.jsx +98 -0
- package/vendor/cmdk-solid/chunk/IOVUHIGA.js +96 -0
- package/vendor/cmdk-solid/command-score.cjs +98 -0
- package/vendor/cmdk-solid/command-score.d.cts +4 -0
- package/vendor/cmdk-solid/command-score.d.ts +4 -0
- package/vendor/cmdk-solid/command-score.js +2 -0
- package/vendor/cmdk-solid/command-score.jsx +7 -0
- package/vendor/cmdk-solid/index.cjs +827 -0
- package/vendor/cmdk-solid/index.d.cts +184 -0
- package/vendor/cmdk-solid/index.d.ts +184 -0
- package/vendor/cmdk-solid/index.js +729 -0
- package/vendor/cmdk-solid/index.jsx +666 -0
- package/vendor/integrity.json +450 -0
- package/vendor/kobalte-core/LICENSE.md +21 -0
- package/vendor/kobalte-core/NOTICE.txt +231 -0
- package/vendor/kobalte-core/accordion/index.d.ts +10 -0
- package/vendor/kobalte-core/accordion/index.js +2 -0
- package/vendor/kobalte-core/accordion/index.jsx +33 -0
- package/vendor/kobalte-core/alert/index.d.ts +5 -0
- package/vendor/kobalte-core/alert/index.js +2 -0
- package/vendor/kobalte-core/alert/index.jsx +11 -0
- package/vendor/kobalte-core/alert-dialog/index.d.ts +10 -0
- package/vendor/kobalte-core/alert-dialog/index.js +3 -0
- package/vendor/kobalte-core/alert-dialog/index.jsx +40 -0
- package/vendor/kobalte-core/badge/index.d.ts +23 -0
- package/vendor/kobalte-core/badge/index.js +24 -0
- package/vendor/kobalte-core/badge/index.jsx +24 -0
- package/vendor/kobalte-core/breadcrumbs/index.d.ts +5 -0
- package/vendor/kobalte-core/breadcrumbs/index.js +2 -0
- package/vendor/kobalte-core/breadcrumbs/index.jsx +19 -0
- package/vendor/kobalte-core/button/index.d.ts +6 -0
- package/vendor/kobalte-core/button/index.js +2 -0
- package/vendor/kobalte-core/button/index.jsx +12 -0
- package/vendor/kobalte-core/button-root-da654b3e.d.ts +28 -0
- package/vendor/kobalte-core/checkbox/index.d.ts +8 -0
- package/vendor/kobalte-core/checkbox/index.js +2 -0
- package/vendor/kobalte-core/checkbox/index.jsx +35 -0
- package/vendor/kobalte-core/chunk/272QBW42.js +712 -0
- package/vendor/kobalte-core/chunk/27MLNS66.js +353 -0
- package/vendor/kobalte-core/chunk/2RVGL3MU.js +45 -0
- package/vendor/kobalte-core/chunk/2UV3VFID.jsx +431 -0
- package/vendor/kobalte-core/chunk/2X5XWQIS.js +19 -0
- package/vendor/kobalte-core/chunk/2YCOH52P.js +81 -0
- package/vendor/kobalte-core/chunk/3565MS4H.jsx +127 -0
- package/vendor/kobalte-core/chunk/3ARTUDH2.jsx +1633 -0
- package/vendor/kobalte-core/chunk/3D6FM2PJ.js +1001 -0
- package/vendor/kobalte-core/chunk/3DLZMX4Z.jsx +81 -0
- package/vendor/kobalte-core/chunk/3DZKSKAQ.jsx +366 -0
- package/vendor/kobalte-core/chunk/3JA5IX2L.jsx +52 -0
- package/vendor/kobalte-core/chunk/3NGA46QE.js +116 -0
- package/vendor/kobalte-core/chunk/3QQCO6IA.js +46 -0
- package/vendor/kobalte-core/chunk/3T74IGH6.js +860 -0
- package/vendor/kobalte-core/chunk/3XNSRO2W.jsx +226 -0
- package/vendor/kobalte-core/chunk/43XIKO67.js +99 -0
- package/vendor/kobalte-core/chunk/4VWIKJ7Q.jsx +842 -0
- package/vendor/kobalte-core/chunk/53Y5XP3B.js +61 -0
- package/vendor/kobalte-core/chunk/5WXHJDCZ.jsx +10 -0
- package/vendor/kobalte-core/chunk/5ZKAE4VZ.js +8 -0
- package/vendor/kobalte-core/chunk/66KLKSW3.js +36 -0
- package/vendor/kobalte-core/chunk/6TDKM7BK.jsx +815 -0
- package/vendor/kobalte-core/chunk/6Y7B2NEO.js +21 -0
- package/vendor/kobalte-core/chunk/7ABWW5DT.jsx +483 -0
- package/vendor/kobalte-core/chunk/7CVNMTYF.js +171 -0
- package/vendor/kobalte-core/chunk/7DPKSDZL.js +447 -0
- package/vendor/kobalte-core/chunk/7I44E2QD.js +190 -0
- package/vendor/kobalte-core/chunk/7LCANGHD.js +29 -0
- package/vendor/kobalte-core/chunk/7OVKXYPU.js +90 -0
- package/vendor/kobalte-core/chunk/7TPOQ36Z.js +202 -0
- package/vendor/kobalte-core/chunk/7ZHN3PYD.js +30 -0
- package/vendor/kobalte-core/chunk/ANN3A2QM.js +29 -0
- package/vendor/kobalte-core/chunk/AT6SKIG6.js +119 -0
- package/vendor/kobalte-core/chunk/AWVDBFMO.jsx +280 -0
- package/vendor/kobalte-core/chunk/B2CSS4CB.js +36 -0
- package/vendor/kobalte-core/chunk/BDJEWKR2.jsx +153 -0
- package/vendor/kobalte-core/chunk/BK63AFY4.js +348 -0
- package/vendor/kobalte-core/chunk/BLN63FDC.js +40 -0
- package/vendor/kobalte-core/chunk/BU4OFZP5.jsx +146 -0
- package/vendor/kobalte-core/chunk/CLZZ2KZC.js +152 -0
- package/vendor/kobalte-core/chunk/CODJDE4S.jsx +131 -0
- package/vendor/kobalte-core/chunk/CWAEFUDR.js +732 -0
- package/vendor/kobalte-core/chunk/DBKNBLZP.js +395 -0
- package/vendor/kobalte-core/chunk/DTAYBJDT.jsx +339 -0
- package/vendor/kobalte-core/chunk/DX4MAOJL.js +653 -0
- package/vendor/kobalte-core/chunk/E4R2EMM4.js +10 -0
- package/vendor/kobalte-core/chunk/E53DB7BS.jsx +34 -0
- package/vendor/kobalte-core/chunk/EHGSTO6V.jsx +138 -0
- package/vendor/kobalte-core/chunk/EJ5I5XML.jsx +1 -0
- package/vendor/kobalte-core/chunk/ET5T45DO.js +17 -0
- package/vendor/kobalte-core/chunk/EYO4IMPK.jsx +867 -0
- package/vendor/kobalte-core/chunk/FINWO3A5.jsx +21 -0
- package/vendor/kobalte-core/chunk/FKUFPCQ6.jsx +120 -0
- package/vendor/kobalte-core/chunk/FLVHQV4A.jsx +22 -0
- package/vendor/kobalte-core/chunk/FN6EICGO.jsx +44 -0
- package/vendor/kobalte-core/chunk/FOXVCQFV.jsx +48 -0
- package/vendor/kobalte-core/chunk/G3KI2B4X.js +228 -0
- package/vendor/kobalte-core/chunk/G4JQYERT.jsx +1 -0
- package/vendor/kobalte-core/chunk/GAVSAJBM.jsx +86 -0
- package/vendor/kobalte-core/chunk/GIRHAWVP.jsx +46 -0
- package/vendor/kobalte-core/chunk/GROIIANN.jsx +32 -0
- package/vendor/kobalte-core/chunk/GSF7SFRW.jsx +98 -0
- package/vendor/kobalte-core/chunk/GXANOQ5B.jsx +66 -0
- package/vendor/kobalte-core/chunk/H7BK6JF7.jsx +489 -0
- package/vendor/kobalte-core/chunk/HGKTPMYY.js +1332 -0
- package/vendor/kobalte-core/chunk/HWIPVJ7H.js +121 -0
- package/vendor/kobalte-core/chunk/I2LBZHJH.js +144 -0
- package/vendor/kobalte-core/chunk/ICNSTULC.js +33 -0
- package/vendor/kobalte-core/chunk/IGYOA2ZZ.jsx +33 -0
- package/vendor/kobalte-core/chunk/IN725QRS.js +175 -0
- package/vendor/kobalte-core/chunk/INFLGCRV.js +123 -0
- package/vendor/kobalte-core/chunk/JEP7F7FN.js +89 -0
- package/vendor/kobalte-core/chunk/JGNXQB3J.js +140 -0
- package/vendor/kobalte-core/chunk/JHMNWOLY.jsx +87 -0
- package/vendor/kobalte-core/chunk/JNCCF6MP.jsx +12 -0
- package/vendor/kobalte-core/chunk/K6ON3K7Z.js +93 -0
- package/vendor/kobalte-core/chunk/K6P57S75.js +23 -0
- package/vendor/kobalte-core/chunk/KEL2LLJM.jsx +244 -0
- package/vendor/kobalte-core/chunk/KQVCPTCE.js +316 -0
- package/vendor/kobalte-core/chunk/KR2RRKPK.jsx +197 -0
- package/vendor/kobalte-core/chunk/KVL5CS3M.jsx +37 -0
- package/vendor/kobalte-core/chunk/LP6E37CW.jsx +228 -0
- package/vendor/kobalte-core/chunk/LUHKRAPV.js +129 -0
- package/vendor/kobalte-core/chunk/LV6CC6HJ.js +226 -0
- package/vendor/kobalte-core/chunk/MUDPLHYE.js +56 -0
- package/vendor/kobalte-core/chunk/NEFPNRTI.jsx +426 -0
- package/vendor/kobalte-core/chunk/NY67XGGP.js +216 -0
- package/vendor/kobalte-core/chunk/OGE3DKII.jsx +413 -0
- package/vendor/kobalte-core/chunk/OK5BA5VH.jsx +533 -0
- package/vendor/kobalte-core/chunk/OPHDMVQK.jsx +217 -0
- package/vendor/kobalte-core/chunk/OPRD3XHK.js +207 -0
- package/vendor/kobalte-core/chunk/OU7DYFTQ.jsx +191 -0
- package/vendor/kobalte-core/chunk/OYES4GOP.jsx +21 -0
- package/vendor/kobalte-core/chunk/P6IXTWXS.jsx +197 -0
- package/vendor/kobalte-core/chunk/PBBM7A6R.jsx +113 -0
- package/vendor/kobalte-core/chunk/PKWJSNR5.js +474 -0
- package/vendor/kobalte-core/chunk/PTVG6YKC.js +148 -0
- package/vendor/kobalte-core/chunk/PTWD4LYA.jsx +537 -0
- package/vendor/kobalte-core/chunk/PYSNB6I6.jsx +324 -0
- package/vendor/kobalte-core/chunk/Q2T3QQUA.js +419 -0
- package/vendor/kobalte-core/chunk/QEMPLYZX.js +28 -0
- package/vendor/kobalte-core/chunk/QIRIOMOH.js +338 -0
- package/vendor/kobalte-core/chunk/QJIB6BDF.jsx +30 -0
- package/vendor/kobalte-core/chunk/QJK6CGTE.js +293 -0
- package/vendor/kobalte-core/chunk/R4V3527Z.js +130 -0
- package/vendor/kobalte-core/chunk/R5JXRO27.js +1 -0
- package/vendor/kobalte-core/chunk/RFN6X5VH.jsx +1058 -0
- package/vendor/kobalte-core/chunk/SD3NY4DU.js +344 -0
- package/vendor/kobalte-core/chunk/SLRA6PIF.jsx +263 -0
- package/vendor/kobalte-core/chunk/SOM3K36D.jsx +191 -0
- package/vendor/kobalte-core/chunk/STGRFJHZ.js +43 -0
- package/vendor/kobalte-core/chunk/T4C3DMHT.jsx +52 -0
- package/vendor/kobalte-core/chunk/TDH5Z2ZB.js +263 -0
- package/vendor/kobalte-core/chunk/TP2BLHDF.jsx +284 -0
- package/vendor/kobalte-core/chunk/TS4C47MF.js +22 -0
- package/vendor/kobalte-core/chunk/TSB6MOZK.jsx +242 -0
- package/vendor/kobalte-core/chunk/TVVHJCOX.js +204 -0
- package/vendor/kobalte-core/chunk/TY22MKYR.jsx +996 -0
- package/vendor/kobalte-core/chunk/UEEZAKDC.js +1 -0
- package/vendor/kobalte-core/chunk/UESR3MKV.jsx +743 -0
- package/vendor/kobalte-core/chunk/UGE6PPGT.jsx +220 -0
- package/vendor/kobalte-core/chunk/UKTBL2JL.jsx +88 -0
- package/vendor/kobalte-core/chunk/V25KEN4T.jsx +399 -0
- package/vendor/kobalte-core/chunk/VI7QYH27.jsx +33 -0
- package/vendor/kobalte-core/chunk/W4MWOWKG.js +310 -0
- package/vendor/kobalte-core/chunk/WAUM5GOD.jsx +68 -0
- package/vendor/kobalte-core/chunk/WHII6HHI.js +145 -0
- package/vendor/kobalte-core/chunk/WKVBAVXH.jsx +378 -0
- package/vendor/kobalte-core/chunk/WR5BIFYV.js +780 -0
- package/vendor/kobalte-core/chunk/XLBXJFYN.js +108 -0
- package/vendor/kobalte-core/chunk/XNF3WGZ2.jsx +176 -0
- package/vendor/kobalte-core/chunk/XOC6SOOC.jsx +53 -0
- package/vendor/kobalte-core/chunk/XTJD7L6B.jsx +101 -0
- package/vendor/kobalte-core/chunk/XUUROM4M.jsx +120 -0
- package/vendor/kobalte-core/chunk/YA7DCYMB.js +80 -0
- package/vendor/kobalte-core/chunk/YFEENJN5.jsx +41 -0
- package/vendor/kobalte-core/chunk/YGDQXQ2B.js +28 -0
- package/vendor/kobalte-core/chunk/YKGT7A57.js +85 -0
- package/vendor/kobalte-core/chunk/YPUNLYJC.js +268 -0
- package/vendor/kobalte-core/chunk/YSW4UOAR.js +40 -0
- package/vendor/kobalte-core/chunk/ZAGMEN2K.jsx +152 -0
- package/vendor/kobalte-core/chunk/ZG3NR5OC.jsx +120 -0
- package/vendor/kobalte-core/chunk/ZZYKR3VO.jsx +42 -0
- package/vendor/kobalte-core/collapsible/index.d.ts +7 -0
- package/vendor/kobalte-core/collapsible/index.js +2 -0
- package/vendor/kobalte-core/collapsible/index.jsx +23 -0
- package/vendor/kobalte-core/collapsible-trigger-6358fcd4.d.ts +84 -0
- package/vendor/kobalte-core/color-area/index.d.ts +189 -0
- package/vendor/kobalte-core/color-area/index.js +724 -0
- package/vendor/kobalte-core/color-area/index.jsx +777 -0
- package/vendor/kobalte-core/color-channel-field/index.d.ts +49 -0
- package/vendor/kobalte-core/color-channel-field/index.js +72 -0
- package/vendor/kobalte-core/color-channel-field/index.jsx +117 -0
- package/vendor/kobalte-core/color-field/index.d.ts +48 -0
- package/vendor/kobalte-core/color-field/index.js +114 -0
- package/vendor/kobalte-core/color-field/index.jsx +155 -0
- package/vendor/kobalte-core/color-mode/index.d.ts +78 -0
- package/vendor/kobalte-core/color-mode/index.js +2 -0
- package/vendor/kobalte-core/color-mode/index.jsx +28 -0
- package/vendor/kobalte-core/color-slider/index.d.ts +109 -0
- package/vendor/kobalte-core/color-slider/index.js +183 -0
- package/vendor/kobalte-core/color-slider/index.jsx +255 -0
- package/vendor/kobalte-core/color-swatch/index.d.ts +39 -0
- package/vendor/kobalte-core/color-swatch/index.js +48 -0
- package/vendor/kobalte-core/color-swatch/index.jsx +64 -0
- package/vendor/kobalte-core/color-wheel/index.d.ts +166 -0
- package/vendor/kobalte-core/color-wheel/index.js +620 -0
- package/vendor/kobalte-core/color-wheel/index.jsx +640 -0
- package/vendor/kobalte-core/colors/index.d.ts +15 -0
- package/vendor/kobalte-core/colors/index.js +2 -0
- package/vendor/kobalte-core/colors/index.jsx +17 -0
- package/vendor/kobalte-core/combobox/index.d.ts +20 -0
- package/vendor/kobalte-core/combobox/index.js +8 -0
- package/vendor/kobalte-core/combobox/index.jsx +80 -0
- package/vendor/kobalte-core/combobox-root-3702d1f6.d.ts +382 -0
- package/vendor/kobalte-core/context-menu/index.d.ts +15 -0
- package/vendor/kobalte-core/context-menu/index.js +5 -0
- package/vendor/kobalte-core/context-menu/index.jsx +75 -0
- package/vendor/kobalte-core/create-list-state-d9a0f1f2.d.ts +232 -0
- package/vendor/kobalte-core/dialog/index.d.ts +10 -0
- package/vendor/kobalte-core/dialog/index.js +2 -0
- package/vendor/kobalte-core/dialog/index.jsx +40 -0
- package/vendor/kobalte-core/dialog-trigger-f415bd9b.d.ts +184 -0
- package/vendor/kobalte-core/dismissable-layer/index.d.ts +51 -0
- package/vendor/kobalte-core/dismissable-layer/index.js +2 -0
- package/vendor/kobalte-core/dismissable-layer/index.jsx +12 -0
- package/vendor/kobalte-core/dropdown-menu/index.d.ts +18 -0
- package/vendor/kobalte-core/dropdown-menu/index.js +5 -0
- package/vendor/kobalte-core/dropdown-menu/index.jsx +73 -0
- package/vendor/kobalte-core/file-field/index.d.ts +221 -0
- package/vendor/kobalte-core/file-field/index.js +539 -0
- package/vendor/kobalte-core/file-field/index.jsx +564 -0
- package/vendor/kobalte-core/form-control-description-330657bc.d.ts +49 -0
- package/vendor/kobalte-core/form-control-error-message-9efcbea8.d.ts +25 -0
- package/vendor/kobalte-core/form-control-label-2a5ca7a3.d.ts +22 -0
- package/vendor/kobalte-core/hover-card/index.d.ts +11 -0
- package/vendor/kobalte-core/hover-card/index.js +3 -0
- package/vendor/kobalte-core/hover-card/index.jsx +33 -0
- package/vendor/kobalte-core/i18n/index.d.ts +81 -0
- package/vendor/kobalte-core/i18n/index.js +2 -0
- package/vendor/kobalte-core/i18n/index.jsx +28 -0
- package/vendor/kobalte-core/image/index.d.ts +5 -0
- package/vendor/kobalte-core/image/index.js +2 -0
- package/vendor/kobalte-core/image/index.jsx +17 -0
- package/vendor/kobalte-core/index-19a0ff67.d.ts +180 -0
- package/vendor/kobalte-core/index-1a4410b1.d.ts +184 -0
- package/vendor/kobalte-core/index-29c57b8d.d.ts +90 -0
- package/vendor/kobalte-core/index-2a97f0d5.d.ts +259 -0
- package/vendor/kobalte-core/index-339032c6.d.ts +24 -0
- package/vendor/kobalte-core/index-3a4165aa.d.ts +38 -0
- package/vendor/kobalte-core/index-45d19411.d.ts +181 -0
- package/vendor/kobalte-core/index-47114d4c.d.ts +153 -0
- package/vendor/kobalte-core/index-4933558f.d.ts +22 -0
- package/vendor/kobalte-core/index-4cb1a0c7.d.ts +178 -0
- package/vendor/kobalte-core/index-544033ad.d.ts +148 -0
- package/vendor/kobalte-core/index-5eae1bf9.d.ts +145 -0
- package/vendor/kobalte-core/index-64ed0578.d.ts +47 -0
- package/vendor/kobalte-core/index-68c6e688.d.ts +125 -0
- package/vendor/kobalte-core/index-71913923.d.ts +107 -0
- package/vendor/kobalte-core/index-774e18fb.d.ts +155 -0
- package/vendor/kobalte-core/index-78f1e72b.d.ts +22 -0
- package/vendor/kobalte-core/index-79050fd4.d.ts +22 -0
- package/vendor/kobalte-core/index-82a3d7cf.d.ts +76 -0
- package/vendor/kobalte-core/index-839e646d.d.ts +308 -0
- package/vendor/kobalte-core/index-8b78f50e.d.ts +96 -0
- package/vendor/kobalte-core/index-8dfcce13.d.ts +49 -0
- package/vendor/kobalte-core/index-929e4c7c.d.ts +109 -0
- package/vendor/kobalte-core/index-a6cbe732.d.ts +267 -0
- package/vendor/kobalte-core/index-a8504bc6.d.ts +105 -0
- package/vendor/kobalte-core/index-d652f235.d.ts +234 -0
- package/vendor/kobalte-core/index-d734f7ac.d.ts +120 -0
- package/vendor/kobalte-core/index-e3628d61.d.ts +405 -0
- package/vendor/kobalte-core/index-e8f9edc7.d.ts +484 -0
- package/vendor/kobalte-core/index-e96454a3.d.ts +113 -0
- package/vendor/kobalte-core/index-ed2fe8c4.d.ts +176 -0
- package/vendor/kobalte-core/index-f3e15e6a.d.ts +107 -0
- package/vendor/kobalte-core/index.d.ts +333 -0
- package/vendor/kobalte-core/index.js +56 -0
- package/vendor/kobalte-core/index.jsx +322 -0
- package/vendor/kobalte-core/link/index.d.ts +6 -0
- package/vendor/kobalte-core/link/index.js +2 -0
- package/vendor/kobalte-core/link/index.jsx +12 -0
- package/vendor/kobalte-core/link-root-bf54d4f3.d.ts +26 -0
- package/vendor/kobalte-core/listbox/index.d.ts +10 -0
- package/vendor/kobalte-core/listbox/index.js +2 -0
- package/vendor/kobalte-core/listbox/index.jsx +30 -0
- package/vendor/kobalte-core/listbox-item-indicator-b8390ce9.d.ts +27 -0
- package/vendor/kobalte-core/listbox-section-58338bda.d.ts +172 -0
- package/vendor/kobalte-core/menu/index.d.ts +41 -0
- package/vendor/kobalte-core/menu/index.js +2 -0
- package/vendor/kobalte-core/menu/index.jsx +72 -0
- package/vendor/kobalte-core/menu-sub-trigger-29a7ad75.d.ts +462 -0
- package/vendor/kobalte-core/menubar/index.d.ts +19 -0
- package/vendor/kobalte-core/menubar/index.js +6 -0
- package/vendor/kobalte-core/menubar/index.jsx +79 -0
- package/vendor/kobalte-core/menubar-context-c1a81ca0.d.ts +73 -0
- package/vendor/kobalte-core/meter/index.d.ts +15 -0
- package/vendor/kobalte-core/meter/index.js +2 -0
- package/vendor/kobalte-core/meter/index.jsx +23 -0
- package/vendor/kobalte-core/meter-value-label-797727cd.d.ts +117 -0
- package/vendor/kobalte-core/navigation-menu/index.d.ts +191 -0
- package/vendor/kobalte-core/navigation-menu/index.js +432 -0
- package/vendor/kobalte-core/navigation-menu/index.jsx +571 -0
- package/vendor/kobalte-core/number-field/index.d.ts +11 -0
- package/vendor/kobalte-core/number-field/index.js +5 -0
- package/vendor/kobalte-core/number-field/index.jsx +42 -0
- package/vendor/kobalte-core/number-field-root-3524531f.d.ts +128 -0
- package/vendor/kobalte-core/pagination/index.d.ts +6 -0
- package/vendor/kobalte-core/pagination/index.js +2 -0
- package/vendor/kobalte-core/pagination/index.jsx +26 -0
- package/vendor/kobalte-core/polymorphic/index.d.ts +29 -0
- package/vendor/kobalte-core/polymorphic/index.js +2 -0
- package/vendor/kobalte-core/polymorphic/index.jsx +8 -0
- package/vendor/kobalte-core/popover/index.d.ts +11 -0
- package/vendor/kobalte-core/popover/index.js +3 -0
- package/vendor/kobalte-core/popover/index.jsx +45 -0
- package/vendor/kobalte-core/popper/index.d.ts +42 -0
- package/vendor/kobalte-core/popper/index.js +2 -0
- package/vendor/kobalte-core/popper/index.jsx +20 -0
- package/vendor/kobalte-core/popper-arrow-89a19127.d.ts +24 -0
- package/vendor/kobalte-core/popper-root-c2da235c.d.ts +81 -0
- package/vendor/kobalte-core/primitives/create-collection/index.d.ts +16 -0
- package/vendor/kobalte-core/primitives/create-collection/index.js +3 -0
- package/vendor/kobalte-core/primitives/create-collection/index.jsx +12 -0
- package/vendor/kobalte-core/primitives/create-controllable-signal/index.d.ts +33 -0
- package/vendor/kobalte-core/primitives/create-controllable-signal/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-controllable-signal/index.jsx +15 -0
- package/vendor/kobalte-core/primitives/create-disclosure-state/index.d.ts +31 -0
- package/vendor/kobalte-core/primitives/create-disclosure-state/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-disclosure-state/index.jsx +10 -0
- package/vendor/kobalte-core/primitives/create-dom-collection/index.d.ts +32 -0
- package/vendor/kobalte-core/primitives/create-dom-collection/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-dom-collection/index.jsx +17 -0
- package/vendor/kobalte-core/primitives/create-escape-key-down/index.d.ts +18 -0
- package/vendor/kobalte-core/primitives/create-escape-key-down/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-escape-key-down/index.jsx +8 -0
- package/vendor/kobalte-core/primitives/create-focus-scope/index.d.ts +21 -0
- package/vendor/kobalte-core/primitives/create-focus-scope/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-focus-scope/index.jsx +9 -0
- package/vendor/kobalte-core/primitives/create-form-reset-listener/index.d.ts +9 -0
- package/vendor/kobalte-core/primitives/create-form-reset-listener/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-form-reset-listener/index.jsx +8 -0
- package/vendor/kobalte-core/primitives/create-hide-outside/index.d.ts +29 -0
- package/vendor/kobalte-core/primitives/create-hide-outside/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-hide-outside/index.jsx +12 -0
- package/vendor/kobalte-core/primitives/create-interact-outside/index.d.ts +39 -0
- package/vendor/kobalte-core/primitives/create-interact-outside/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-interact-outside/index.jsx +9 -0
- package/vendor/kobalte-core/primitives/create-register-id/index.d.ts +9 -0
- package/vendor/kobalte-core/primitives/create-register-id/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-register-id/index.jsx +8 -0
- package/vendor/kobalte-core/primitives/create-size/index.d.ts +9 -0
- package/vendor/kobalte-core/primitives/create-size/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-size/index.jsx +8 -0
- package/vendor/kobalte-core/primitives/create-tag-name/index.d.ts +15 -0
- package/vendor/kobalte-core/primitives/create-tag-name/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-tag-name/index.jsx +9 -0
- package/vendor/kobalte-core/primitives/create-toggle-state/index.d.ts +33 -0
- package/vendor/kobalte-core/primitives/create-toggle-state/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-toggle-state/index.jsx +10 -0
- package/vendor/kobalte-core/primitives/create-transition/index.d.ts +52 -0
- package/vendor/kobalte-core/primitives/create-transition/index.js +2 -0
- package/vendor/kobalte-core/primitives/create-transition/index.jsx +8 -0
- package/vendor/kobalte-core/progress/index.d.ts +6 -0
- package/vendor/kobalte-core/progress/index.js +2 -0
- package/vendor/kobalte-core/progress/index.jsx +24 -0
- package/vendor/kobalte-core/radio-group/index.d.ts +8 -0
- package/vendor/kobalte-core/radio-group/index.js +4 -0
- package/vendor/kobalte-core/radio-group/index.jsx +40 -0
- package/vendor/kobalte-core/radio-group-root-0af7f9b9.d.ts +195 -0
- package/vendor/kobalte-core/rating/index.d.ts +172 -0
- package/vendor/kobalte-core/rating/index.js +464 -0
- package/vendor/kobalte-core/rating/index.jsx +540 -0
- package/vendor/kobalte-core/search/index.d.ts +85 -0
- package/vendor/kobalte-core/search/index.js +177 -0
- package/vendor/kobalte-core/search/index.jsx +227 -0
- package/vendor/kobalte-core/segmented-control/index.d.ts +69 -0
- package/vendor/kobalte-core/segmented-control/index.js +162 -0
- package/vendor/kobalte-core/segmented-control/index.jsx +217 -0
- package/vendor/kobalte-core/select/index.d.ts +19 -0
- package/vendor/kobalte-core/select/index.js +6 -0
- package/vendor/kobalte-core/select/index.jsx +75 -0
- package/vendor/kobalte-core/separator/index.d.ts +6 -0
- package/vendor/kobalte-core/separator/index.js +2 -0
- package/vendor/kobalte-core/separator/index.jsx +12 -0
- package/vendor/kobalte-core/separator-root-cb685406.d.ts +25 -0
- package/vendor/kobalte-core/skeleton/index.d.ts +5 -0
- package/vendor/kobalte-core/skeleton/index.js +2 -0
- package/vendor/kobalte-core/skeleton/index.jsx +11 -0
- package/vendor/kobalte-core/slider/index.d.ts +11 -0
- package/vendor/kobalte-core/slider/index.js +5 -0
- package/vendor/kobalte-core/slider/index.jsx +43 -0
- package/vendor/kobalte-core/slider-value-label-2be90f59.d.ts +211 -0
- package/vendor/kobalte-core/spin-button/index.d.ts +10 -0
- package/vendor/kobalte-core/spin-button/index.js +2 -0
- package/vendor/kobalte-core/spin-button/index.jsx +12 -0
- package/vendor/kobalte-core/spin-button-root-3a44420a.d.ts +63 -0
- package/vendor/kobalte-core/switch/index.d.ts +8 -0
- package/vendor/kobalte-core/switch/index.js +2 -0
- package/vendor/kobalte-core/switch/index.jsx +35 -0
- package/vendor/kobalte-core/tabs/index.d.ts +8 -0
- package/vendor/kobalte-core/tabs/index.js +2 -0
- package/vendor/kobalte-core/tabs/index.jsx +27 -0
- package/vendor/kobalte-core/text-field/index.d.ts +9 -0
- package/vendor/kobalte-core/text-field/index.js +5 -0
- package/vendor/kobalte-core/text-field/index.jsx +34 -0
- package/vendor/kobalte-core/text-field-root-0b8dfa5a.d.ts +73 -0
- package/vendor/kobalte-core/time-field/index.d.ts +165 -0
- package/vendor/kobalte-core/time-field/index.js +818 -0
- package/vendor/kobalte-core/time-field/index.jsx +824 -0
- package/vendor/kobalte-core/toast/index.d.ts +6 -0
- package/vendor/kobalte-core/toast/index.js +2 -0
- package/vendor/kobalte-core/toast/index.jsx +33 -0
- package/vendor/kobalte-core/toggle-button/index.d.ts +7 -0
- package/vendor/kobalte-core/toggle-button/index.js +2 -0
- package/vendor/kobalte-core/toggle-button/index.jsx +16 -0
- package/vendor/kobalte-core/toggle-button-root-1cfacf95.d.ts +42 -0
- package/vendor/kobalte-core/toggle-group/index.d.ts +10 -0
- package/vendor/kobalte-core/toggle-group/index.js +2 -0
- package/vendor/kobalte-core/toggle-group/index.jsx +26 -0
- package/vendor/kobalte-core/tooltip/index.d.ts +10 -0
- package/vendor/kobalte-core/tooltip/index.js +3 -0
- package/vendor/kobalte-core/tooltip/index.jsx +32 -0
- package/vendor/kobalte-core/types-6adf33e1.d.ts +8 -0
- package/vendor/kobalte-core/types-877adc4a.d.ts +125 -0
- package/vendor/kobalte-core/types-f8ae18e5.d.ts +72 -0
- package/vendor/kobalte-core/utils-45fb8d63.d.ts +11 -0
- package/vendor/kobalte-utils/LICENSE.md +21 -0
- package/vendor/kobalte-utils/NOTICE.txt +231 -0
- package/vendor/kobalte-utils/index.cjs +878 -0
- package/vendor/kobalte-utils/index.d.cts +227 -0
- package/vendor/kobalte-utils/index.d.ts +227 -0
- package/vendor/kobalte-utils/index.js +791 -0
- package/vendor/origins.json +33 -0
- package/vendor/solid-web/LICENSE +21 -0
- package/vendor/solid-web/dev.cjs +896 -0
- package/vendor/solid-web/dev.js +784 -0
- package/vendor/solid-web/server.cjs +2 -0
- package/vendor/solid-web/server.js +2 -0
- package/vendor/solid-web/types/client.d.ts +93 -0
- package/vendor/solid-web/types/core.d.ts +2 -0
- package/vendor/solid-web/types/index.d.ts +50 -0
- package/vendor/solid-web/types/jsx.d.ts +1 -0
- package/vendor/solid-web/types/server-mock.d.ts +65 -0
- package/vendor/solid-web/types/server.d.ts +187 -0
- package/vendor/solid-web/web.cjs +885 -0
- package/vendor/solid-web/web.js +773 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
// Vendored and modified by Gemologic Sheen from @kobalte/core@0.13.13; see package THIRD_PARTY_NOTICES.md.
|
|
2
|
+
import { getItemCount } from './2X5XWQIS.js';
|
|
3
|
+
import { createSelectableList } from './I2LBZHJH.js';
|
|
4
|
+
import { createSelectableItem, createListState } from './3D6FM2PJ.js';
|
|
5
|
+
import { createRegisterId } from './E4R2EMM4.js';
|
|
6
|
+
import { Polymorphic } from './6Y7B2NEO.js';
|
|
7
|
+
import { __export } from './5ZKAE4VZ.js';
|
|
8
|
+
import { createComponent, mergeProps } from 'solid-js/web';
|
|
9
|
+
import { mergeDefaultProps, isMac, isWebKit, createGenerateId, mergeRefs, composeEventHandlers, access, Key, callHandler, focusWithoutScrolling } from "#sheen-kobalte-utils";
|
|
10
|
+
import { createContext, useContext, createUniqueId, splitProps, createSignal, createMemo, createEffect, onCleanup, Show, Switch, Match } from 'solid-js';
|
|
11
|
+
|
|
12
|
+
// src/listbox/index.tsx
|
|
13
|
+
var listbox_exports = {};
|
|
14
|
+
__export(listbox_exports, {
|
|
15
|
+
Item: () => ListboxItem,
|
|
16
|
+
ItemDescription: () => ListboxItemDescription,
|
|
17
|
+
ItemIndicator: () => ListboxItemIndicator,
|
|
18
|
+
ItemLabel: () => ListboxItemLabel,
|
|
19
|
+
Listbox: () => Listbox,
|
|
20
|
+
Root: () => ListboxRoot,
|
|
21
|
+
Section: () => ListboxSection,
|
|
22
|
+
useListboxContext: () => useListboxContext
|
|
23
|
+
});
|
|
24
|
+
var ListboxContext = createContext();
|
|
25
|
+
function useListboxContext() {
|
|
26
|
+
const context = useContext(ListboxContext);
|
|
27
|
+
if (context === void 0) {
|
|
28
|
+
throw new Error("[kobalte]: `useListboxContext` must be used within a `Listbox` component");
|
|
29
|
+
}
|
|
30
|
+
return context;
|
|
31
|
+
}
|
|
32
|
+
var ListboxItemContext = createContext();
|
|
33
|
+
function useListboxItemContext() {
|
|
34
|
+
const context = useContext(ListboxItemContext);
|
|
35
|
+
if (context === void 0) {
|
|
36
|
+
throw new Error("[kobalte]: `useListboxItemContext` must be used within a `Listbox.Item` component");
|
|
37
|
+
}
|
|
38
|
+
return context;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// src/listbox/listbox-item.tsx
|
|
42
|
+
function ListboxItem(props) {
|
|
43
|
+
let ref;
|
|
44
|
+
const listBoxContext = useListboxContext();
|
|
45
|
+
const defaultId = `${listBoxContext.generateId("item")}-${createUniqueId()}`;
|
|
46
|
+
const mergedProps = mergeDefaultProps({
|
|
47
|
+
id: defaultId
|
|
48
|
+
}, props);
|
|
49
|
+
const [local, others] = splitProps(mergedProps, ["ref", "item", "aria-label", "aria-labelledby", "aria-describedby", "onPointerMove", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]);
|
|
50
|
+
const [labelId, setLabelId] = createSignal();
|
|
51
|
+
const [descriptionId, setDescriptionId] = createSignal();
|
|
52
|
+
const selectionManager = () => listBoxContext.listState().selectionManager();
|
|
53
|
+
const isHighlighted = () => selectionManager().focusedKey() === local.item.key;
|
|
54
|
+
const selectableItem = createSelectableItem({
|
|
55
|
+
key: () => local.item.key,
|
|
56
|
+
selectionManager,
|
|
57
|
+
shouldSelectOnPressUp: listBoxContext.shouldSelectOnPressUp,
|
|
58
|
+
allowsDifferentPressOrigin: () => {
|
|
59
|
+
return listBoxContext.shouldSelectOnPressUp() && listBoxContext.shouldFocusOnHover();
|
|
60
|
+
},
|
|
61
|
+
shouldUseVirtualFocus: listBoxContext.shouldUseVirtualFocus,
|
|
62
|
+
disabled: () => local.item.disabled
|
|
63
|
+
}, () => ref);
|
|
64
|
+
const ariaSelected = () => {
|
|
65
|
+
if (selectionManager().selectionMode() === "none") {
|
|
66
|
+
return void 0;
|
|
67
|
+
}
|
|
68
|
+
return selectableItem.isSelected();
|
|
69
|
+
};
|
|
70
|
+
const isNotSafariMacOS = createMemo(() => !(isMac() && isWebKit()));
|
|
71
|
+
const ariaLabel = () => isNotSafariMacOS() ? local["aria-label"] : void 0;
|
|
72
|
+
const ariaLabelledBy = () => isNotSafariMacOS() ? labelId() : void 0;
|
|
73
|
+
const ariaDescribedBy = () => isNotSafariMacOS() ? descriptionId() : void 0;
|
|
74
|
+
const ariaPosInSet = () => {
|
|
75
|
+
if (!listBoxContext.isVirtualized()) {
|
|
76
|
+
return void 0;
|
|
77
|
+
}
|
|
78
|
+
const index = listBoxContext.listState().collection().getItem(local.item.key)?.index;
|
|
79
|
+
return index != null ? index + 1 : void 0;
|
|
80
|
+
};
|
|
81
|
+
const ariaSetSize = () => {
|
|
82
|
+
if (!listBoxContext.isVirtualized()) {
|
|
83
|
+
return void 0;
|
|
84
|
+
}
|
|
85
|
+
return getItemCount(listBoxContext.listState().collection());
|
|
86
|
+
};
|
|
87
|
+
const onPointerMove = (e) => {
|
|
88
|
+
callHandler(e, local.onPointerMove);
|
|
89
|
+
if (e.pointerType !== "mouse") {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (!selectableItem.isDisabled() && listBoxContext.shouldFocusOnHover()) {
|
|
93
|
+
focusWithoutScrolling(e.currentTarget);
|
|
94
|
+
selectionManager().setFocused(true);
|
|
95
|
+
selectionManager().setFocusedKey(local.item.key);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
const dataset = createMemo(() => ({
|
|
99
|
+
"data-disabled": selectableItem.isDisabled() ? "" : void 0,
|
|
100
|
+
"data-selected": selectableItem.isSelected() ? "" : void 0,
|
|
101
|
+
"data-highlighted": isHighlighted() ? "" : void 0
|
|
102
|
+
}));
|
|
103
|
+
const context = {
|
|
104
|
+
isSelected: selectableItem.isSelected,
|
|
105
|
+
dataset,
|
|
106
|
+
generateId: createGenerateId(() => others.id),
|
|
107
|
+
registerLabelId: createRegisterId(setLabelId),
|
|
108
|
+
registerDescriptionId: createRegisterId(setDescriptionId)
|
|
109
|
+
};
|
|
110
|
+
return createComponent(ListboxItemContext.Provider, {
|
|
111
|
+
value: context,
|
|
112
|
+
get children() {
|
|
113
|
+
return createComponent(Polymorphic, mergeProps({
|
|
114
|
+
as: "li",
|
|
115
|
+
ref(r$) {
|
|
116
|
+
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
117
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
118
|
+
},
|
|
119
|
+
role: "option",
|
|
120
|
+
get tabIndex() {
|
|
121
|
+
return selectableItem.tabIndex();
|
|
122
|
+
},
|
|
123
|
+
get ["aria-disabled"]() {
|
|
124
|
+
return selectableItem.isDisabled();
|
|
125
|
+
},
|
|
126
|
+
get ["aria-selected"]() {
|
|
127
|
+
return ariaSelected();
|
|
128
|
+
},
|
|
129
|
+
get ["aria-label"]() {
|
|
130
|
+
return ariaLabel();
|
|
131
|
+
},
|
|
132
|
+
get ["aria-labelledby"]() {
|
|
133
|
+
return ariaLabelledBy();
|
|
134
|
+
},
|
|
135
|
+
get ["aria-describedby"]() {
|
|
136
|
+
return ariaDescribedBy();
|
|
137
|
+
},
|
|
138
|
+
get ["aria-posinset"]() {
|
|
139
|
+
return ariaPosInSet();
|
|
140
|
+
},
|
|
141
|
+
get ["aria-setsize"]() {
|
|
142
|
+
return ariaSetSize();
|
|
143
|
+
},
|
|
144
|
+
get ["data-key"]() {
|
|
145
|
+
return selectableItem.dataKey();
|
|
146
|
+
},
|
|
147
|
+
get onPointerDown() {
|
|
148
|
+
return composeEventHandlers([local.onPointerDown, selectableItem.onPointerDown]);
|
|
149
|
+
},
|
|
150
|
+
get onPointerUp() {
|
|
151
|
+
return composeEventHandlers([local.onPointerUp, selectableItem.onPointerUp]);
|
|
152
|
+
},
|
|
153
|
+
get onClick() {
|
|
154
|
+
return composeEventHandlers([local.onClick, selectableItem.onClick]);
|
|
155
|
+
},
|
|
156
|
+
get onKeyDown() {
|
|
157
|
+
return composeEventHandlers([local.onKeyDown, selectableItem.onKeyDown]);
|
|
158
|
+
},
|
|
159
|
+
get onMouseDown() {
|
|
160
|
+
return composeEventHandlers([local.onMouseDown, selectableItem.onMouseDown]);
|
|
161
|
+
},
|
|
162
|
+
get onFocus() {
|
|
163
|
+
return composeEventHandlers([local.onFocus, selectableItem.onFocus]);
|
|
164
|
+
},
|
|
165
|
+
onPointerMove
|
|
166
|
+
}, dataset, others));
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
function ListboxItemDescription(props) {
|
|
171
|
+
const context = useListboxItemContext();
|
|
172
|
+
const mergedProps = mergeDefaultProps({
|
|
173
|
+
id: context.generateId("description")
|
|
174
|
+
}, props);
|
|
175
|
+
createEffect(() => onCleanup(context.registerDescriptionId(mergedProps.id)));
|
|
176
|
+
return createComponent(Polymorphic, mergeProps({
|
|
177
|
+
as: "div"
|
|
178
|
+
}, () => context.dataset(), mergedProps));
|
|
179
|
+
}
|
|
180
|
+
function ListboxItemIndicator(props) {
|
|
181
|
+
const context = useListboxItemContext();
|
|
182
|
+
const mergedProps = mergeDefaultProps({
|
|
183
|
+
id: context.generateId("indicator")
|
|
184
|
+
}, props);
|
|
185
|
+
const [local, others] = splitProps(mergedProps, ["forceMount"]);
|
|
186
|
+
return createComponent(Show, {
|
|
187
|
+
get when() {
|
|
188
|
+
return local.forceMount || context.isSelected();
|
|
189
|
+
},
|
|
190
|
+
get children() {
|
|
191
|
+
return createComponent(Polymorphic, mergeProps({
|
|
192
|
+
as: "div",
|
|
193
|
+
"aria-hidden": "true"
|
|
194
|
+
}, () => context.dataset(), others));
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function ListboxItemLabel(props) {
|
|
199
|
+
const context = useListboxItemContext();
|
|
200
|
+
const mergedProps = mergeDefaultProps({
|
|
201
|
+
id: context.generateId("label")
|
|
202
|
+
}, props);
|
|
203
|
+
createEffect(() => onCleanup(context.registerLabelId(mergedProps.id)));
|
|
204
|
+
return createComponent(Polymorphic, mergeProps({
|
|
205
|
+
as: "div"
|
|
206
|
+
}, () => context.dataset(), mergedProps));
|
|
207
|
+
}
|
|
208
|
+
function ListboxRoot(props) {
|
|
209
|
+
let ref;
|
|
210
|
+
const defaultId = `listbox-${createUniqueId()}`;
|
|
211
|
+
const mergedProps = mergeDefaultProps({
|
|
212
|
+
id: defaultId,
|
|
213
|
+
selectionMode: "single",
|
|
214
|
+
virtualized: false
|
|
215
|
+
}, props);
|
|
216
|
+
const [local, others] = splitProps(mergedProps, ["ref", "children", "renderItem", "renderSection", "value", "defaultValue", "onChange", "options", "optionValue", "optionTextValue", "optionDisabled", "optionGroupChildren", "state", "keyboardDelegate", "autoFocus", "selectionMode", "shouldFocusWrap", "shouldUseVirtualFocus", "shouldSelectOnPressUp", "shouldFocusOnHover", "allowDuplicateSelectionEvents", "disallowEmptySelection", "selectionBehavior", "selectOnFocus", "disallowTypeAhead", "allowsTabNavigation", "virtualized", "scrollToItem", "scrollRef", "onKeyDown", "onMouseDown", "onFocusIn", "onFocusOut"]);
|
|
217
|
+
const listState = createMemo(() => {
|
|
218
|
+
if (local.state) {
|
|
219
|
+
return local.state;
|
|
220
|
+
}
|
|
221
|
+
return createListState({
|
|
222
|
+
selectedKeys: () => local.value,
|
|
223
|
+
defaultSelectedKeys: () => local.defaultValue,
|
|
224
|
+
onSelectionChange: local.onChange,
|
|
225
|
+
allowDuplicateSelectionEvents: () => access(local.allowDuplicateSelectionEvents),
|
|
226
|
+
disallowEmptySelection: () => access(local.disallowEmptySelection),
|
|
227
|
+
selectionBehavior: () => access(local.selectionBehavior),
|
|
228
|
+
selectionMode: () => access(local.selectionMode),
|
|
229
|
+
dataSource: () => local.options ?? [],
|
|
230
|
+
getKey: () => local.optionValue,
|
|
231
|
+
getTextValue: () => local.optionTextValue,
|
|
232
|
+
getDisabled: () => local.optionDisabled,
|
|
233
|
+
getSectionChildren: () => local.optionGroupChildren
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
const selectableList = createSelectableList({
|
|
237
|
+
selectionManager: () => listState().selectionManager(),
|
|
238
|
+
collection: () => listState().collection(),
|
|
239
|
+
autoFocus: () => access(local.autoFocus),
|
|
240
|
+
shouldFocusWrap: () => access(local.shouldFocusWrap),
|
|
241
|
+
keyboardDelegate: () => local.keyboardDelegate,
|
|
242
|
+
disallowEmptySelection: () => access(local.disallowEmptySelection),
|
|
243
|
+
selectOnFocus: () => access(local.selectOnFocus),
|
|
244
|
+
disallowTypeAhead: () => access(local.disallowTypeAhead),
|
|
245
|
+
shouldUseVirtualFocus: () => access(local.shouldUseVirtualFocus),
|
|
246
|
+
allowsTabNavigation: () => access(local.allowsTabNavigation),
|
|
247
|
+
isVirtualized: () => local.virtualized,
|
|
248
|
+
scrollToKey: () => local.scrollToItem
|
|
249
|
+
}, () => ref, () => local.scrollRef?.());
|
|
250
|
+
const context = {
|
|
251
|
+
listState,
|
|
252
|
+
generateId: createGenerateId(() => others.id),
|
|
253
|
+
shouldUseVirtualFocus: () => mergedProps.shouldUseVirtualFocus,
|
|
254
|
+
shouldSelectOnPressUp: () => mergedProps.shouldSelectOnPressUp,
|
|
255
|
+
shouldFocusOnHover: () => mergedProps.shouldFocusOnHover,
|
|
256
|
+
isVirtualized: () => local.virtualized
|
|
257
|
+
};
|
|
258
|
+
return createComponent(ListboxContext.Provider, {
|
|
259
|
+
value: context,
|
|
260
|
+
get children() {
|
|
261
|
+
return createComponent(Polymorphic, mergeProps({
|
|
262
|
+
as: "ul",
|
|
263
|
+
ref(r$) {
|
|
264
|
+
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
265
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
266
|
+
},
|
|
267
|
+
role: "listbox",
|
|
268
|
+
get tabIndex() {
|
|
269
|
+
return selectableList.tabIndex();
|
|
270
|
+
},
|
|
271
|
+
get ["aria-multiselectable"]() {
|
|
272
|
+
return listState().selectionManager().selectionMode() === "multiple" ? true : void 0;
|
|
273
|
+
},
|
|
274
|
+
get onKeyDown() {
|
|
275
|
+
return composeEventHandlers([local.onKeyDown, selectableList.onKeyDown]);
|
|
276
|
+
},
|
|
277
|
+
get onMouseDown() {
|
|
278
|
+
return composeEventHandlers([local.onMouseDown, selectableList.onMouseDown]);
|
|
279
|
+
},
|
|
280
|
+
get onFocusIn() {
|
|
281
|
+
return composeEventHandlers([local.onFocusIn, selectableList.onFocusIn]);
|
|
282
|
+
},
|
|
283
|
+
get onFocusOut() {
|
|
284
|
+
return composeEventHandlers([local.onFocusOut, selectableList.onFocusOut]);
|
|
285
|
+
}
|
|
286
|
+
}, others, {
|
|
287
|
+
get children() {
|
|
288
|
+
return createComponent(Show, {
|
|
289
|
+
get when() {
|
|
290
|
+
return !local.virtualized;
|
|
291
|
+
},
|
|
292
|
+
get fallback() {
|
|
293
|
+
return local.children?.(listState().collection);
|
|
294
|
+
},
|
|
295
|
+
get children() {
|
|
296
|
+
return createComponent(Key, {
|
|
297
|
+
get each() {
|
|
298
|
+
return [...listState().collection()];
|
|
299
|
+
},
|
|
300
|
+
by: "key",
|
|
301
|
+
children: (item) => createComponent(Switch, {
|
|
302
|
+
get children() {
|
|
303
|
+
return [createComponent(Match, {
|
|
304
|
+
get when() {
|
|
305
|
+
return item().type === "section";
|
|
306
|
+
},
|
|
307
|
+
get children() {
|
|
308
|
+
return local.renderSection?.(item());
|
|
309
|
+
}
|
|
310
|
+
}), createComponent(Match, {
|
|
311
|
+
get when() {
|
|
312
|
+
return item().type === "item";
|
|
313
|
+
},
|
|
314
|
+
get children() {
|
|
315
|
+
return local.renderItem?.(item());
|
|
316
|
+
}
|
|
317
|
+
})];
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}));
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
function ListboxSection(props) {
|
|
329
|
+
return createComponent(Polymorphic, mergeProps({
|
|
330
|
+
as: "li",
|
|
331
|
+
role: "presentation"
|
|
332
|
+
}, props));
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// src/listbox/index.tsx
|
|
336
|
+
var Listbox = Object.assign(ListboxRoot, {
|
|
337
|
+
Item: ListboxItem,
|
|
338
|
+
ItemDescription: ListboxItemDescription,
|
|
339
|
+
ItemIndicator: ListboxItemIndicator,
|
|
340
|
+
ItemLabel: ListboxItemLabel,
|
|
341
|
+
Section: ListboxSection
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
export { Listbox, ListboxItem, ListboxItemDescription, ListboxItemIndicator, ListboxItemLabel, ListboxRoot, ListboxSection, listbox_exports, useListboxContext };
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
// Vendored and modified by Gemologic Sheen from @kobalte/core@0.13.13; see package THIRD_PARTY_NOTICES.md.
|
|
2
|
+
import {
|
|
3
|
+
ButtonRoot
|
|
4
|
+
} from "./UKTBL2JL.jsx";
|
|
5
|
+
import {
|
|
6
|
+
createControllableSignal
|
|
7
|
+
} from "./FN6EICGO.jsx";
|
|
8
|
+
import {
|
|
9
|
+
Polymorphic
|
|
10
|
+
} from "./FLVHQV4A.jsx";
|
|
11
|
+
import {
|
|
12
|
+
__export
|
|
13
|
+
} from "./5WXHJDCZ.jsx";
|
|
14
|
+
|
|
15
|
+
// src/pagination/index.tsx
|
|
16
|
+
var pagination_exports = {};
|
|
17
|
+
__export(pagination_exports, {
|
|
18
|
+
Ellipsis: () => PaginationEllipsis,
|
|
19
|
+
Item: () => PaginationItem,
|
|
20
|
+
Items: () => PaginationItems,
|
|
21
|
+
Next: () => PaginationNext,
|
|
22
|
+
Pagination: () => Pagination,
|
|
23
|
+
Previous: () => PaginationPrevious,
|
|
24
|
+
Root: () => PaginationRoot,
|
|
25
|
+
usePaginationContext: () => usePaginationContext
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// src/pagination/pagination-ellipsis.tsx
|
|
29
|
+
function PaginationEllipsis(props) {
|
|
30
|
+
return <li><Polymorphic
|
|
31
|
+
as="div"
|
|
32
|
+
{...props}
|
|
33
|
+
/></li>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// src/pagination/pagination-item.tsx
|
|
37
|
+
import { composeEventHandlers } from "#sheen-kobalte-utils";
|
|
38
|
+
import {
|
|
39
|
+
splitProps
|
|
40
|
+
} from "solid-js";
|
|
41
|
+
|
|
42
|
+
// src/pagination/pagination-context.tsx
|
|
43
|
+
import {
|
|
44
|
+
createContext,
|
|
45
|
+
useContext
|
|
46
|
+
} from "solid-js";
|
|
47
|
+
var PaginationContext = createContext();
|
|
48
|
+
function usePaginationContext() {
|
|
49
|
+
const context = useContext(PaginationContext);
|
|
50
|
+
if (context === void 0) {
|
|
51
|
+
throw new Error(
|
|
52
|
+
"[kobalte]: `usePaginationContext` must be used within a `Pagination` component"
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
return context;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// src/pagination/pagination-item.tsx
|
|
59
|
+
function PaginationItem(props) {
|
|
60
|
+
const context = usePaginationContext();
|
|
61
|
+
const [local, others] = splitProps(props, [
|
|
62
|
+
"page",
|
|
63
|
+
"onClick"
|
|
64
|
+
]);
|
|
65
|
+
const isCurrent = () => {
|
|
66
|
+
return context.page() === local.page;
|
|
67
|
+
};
|
|
68
|
+
const onClick = () => {
|
|
69
|
+
context.setPage(local.page);
|
|
70
|
+
};
|
|
71
|
+
return <li><ButtonRoot
|
|
72
|
+
aria-current={isCurrent() ? "page" : void 0}
|
|
73
|
+
data-current={isCurrent() ? "" : void 0}
|
|
74
|
+
onClick={composeEventHandlers([local.onClick, onClick])}
|
|
75
|
+
{...others}
|
|
76
|
+
/></li>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// src/pagination/pagination-items.tsx
|
|
80
|
+
import { For, Show, createMemo } from "solid-js";
|
|
81
|
+
function PaginationItems(props) {
|
|
82
|
+
const context = usePaginationContext();
|
|
83
|
+
const items = createMemo(() => {
|
|
84
|
+
const { count, siblingCount, page, fixedItems, showFirst, showLast } = context;
|
|
85
|
+
const renderItemsDirectly = count() < 2 * siblingCount() + (fixedItems() ? 6 : 4);
|
|
86
|
+
if (renderItemsDirectly)
|
|
87
|
+
return {
|
|
88
|
+
renderItemsDirectly
|
|
89
|
+
};
|
|
90
|
+
const _showFirst = showFirst() && page() - 1 > siblingCount();
|
|
91
|
+
const _showLast = showLast() && count() - page() > siblingCount();
|
|
92
|
+
let showFirstEllipsis = fixedItems() !== "no-ellipsis" && page() - (showFirst() ? 2 : 1) > siblingCount();
|
|
93
|
+
let showLastEllipsis = fixedItems() !== "no-ellipsis" && count() - page() - (showLast() ? 1 : 0) > siblingCount();
|
|
94
|
+
let previousSiblingCount = Math.min(page() - 1, siblingCount());
|
|
95
|
+
let nextSiblingCount = Math.min(count() - page(), siblingCount());
|
|
96
|
+
if (fixedItems() !== false) {
|
|
97
|
+
const previousSiblingCountRef = previousSiblingCount;
|
|
98
|
+
const nextSiblingCountRef = nextSiblingCount;
|
|
99
|
+
previousSiblingCount += Math.max(siblingCount() - nextSiblingCountRef, 0);
|
|
100
|
+
nextSiblingCount += Math.max(siblingCount() - previousSiblingCountRef, 0);
|
|
101
|
+
if (showFirst() && !_showFirst)
|
|
102
|
+
nextSiblingCount++;
|
|
103
|
+
if (showLast() && !_showLast)
|
|
104
|
+
previousSiblingCount++;
|
|
105
|
+
if (fixedItems() === true) {
|
|
106
|
+
if (!showFirstEllipsis)
|
|
107
|
+
nextSiblingCount++;
|
|
108
|
+
if (!showLastEllipsis)
|
|
109
|
+
previousSiblingCount++;
|
|
110
|
+
if (page() - previousSiblingCount - (showFirst() ? 2 : 1) === 1) {
|
|
111
|
+
showFirstEllipsis = false;
|
|
112
|
+
previousSiblingCount++;
|
|
113
|
+
}
|
|
114
|
+
if (count() - page() - nextSiblingCount - (showLast() ? 1 : 0) === 1) {
|
|
115
|
+
showLastEllipsis = false;
|
|
116
|
+
nextSiblingCount++;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
showFirst: _showFirst,
|
|
122
|
+
showLast: _showLast,
|
|
123
|
+
showFirstEllipsis,
|
|
124
|
+
showLastEllipsis,
|
|
125
|
+
previousSiblingCount,
|
|
126
|
+
nextSiblingCount,
|
|
127
|
+
renderItemsDirectly
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
return <><Show
|
|
131
|
+
when={items().renderItemsDirectly}
|
|
132
|
+
fallback={<>
|
|
133
|
+
<Show when={items().showFirst}>{context.renderItem(1)}</Show>
|
|
134
|
+
<Show when={items().showFirstEllipsis}>{context.renderEllipsis()}</Show>
|
|
135
|
+
<For
|
|
136
|
+
each={[...Array(items().previousSiblingCount).keys()].reverse()}
|
|
137
|
+
>{(offset) => <>{context.renderItem(context.page() - (offset + 1))}</>}</For>
|
|
138
|
+
{context.renderItem(context.page())}
|
|
139
|
+
<For each={[...Array(items().nextSiblingCount).keys()]}>{(offset) => <>{context.renderItem(context.page() + (offset + 1))}</>}</For>
|
|
140
|
+
<Show when={items().showLastEllipsis}>{context.renderEllipsis()}</Show>
|
|
141
|
+
<Show when={items().showLast}>{context.renderItem(context.count())}</Show>
|
|
142
|
+
</>}
|
|
143
|
+
><For each={[...Array(context.count()).keys()]}>{(page) => <>{context.renderItem(page + 1)}</>}</For></Show></>;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// src/pagination/pagination-next.tsx
|
|
147
|
+
import { composeEventHandlers as composeEventHandlers2 } from "#sheen-kobalte-utils";
|
|
148
|
+
import {
|
|
149
|
+
splitProps as splitProps2
|
|
150
|
+
} from "solid-js";
|
|
151
|
+
function PaginationNext(props) {
|
|
152
|
+
const context = usePaginationContext();
|
|
153
|
+
const [local, others] = splitProps2(props, ["onClick"]);
|
|
154
|
+
const onClick = () => {
|
|
155
|
+
context.setPage(context.page() + 1);
|
|
156
|
+
};
|
|
157
|
+
const isDisabled = () => context.page() === context.count();
|
|
158
|
+
return <li><ButtonRoot
|
|
159
|
+
tabIndex={isDisabled() || context.page() === context.count() ? -1 : void 0}
|
|
160
|
+
disabled={isDisabled()}
|
|
161
|
+
aria-disabled={isDisabled() || void 0}
|
|
162
|
+
data-disabled={isDisabled() ? "" : void 0}
|
|
163
|
+
onClick={composeEventHandlers2([local.onClick, onClick])}
|
|
164
|
+
{...others}
|
|
165
|
+
/></li>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// src/pagination/pagination-previous.tsx
|
|
169
|
+
import { composeEventHandlers as composeEventHandlers3 } from "#sheen-kobalte-utils";
|
|
170
|
+
import {
|
|
171
|
+
splitProps as splitProps3
|
|
172
|
+
} from "solid-js";
|
|
173
|
+
function PaginationPrevious(props) {
|
|
174
|
+
const context = usePaginationContext();
|
|
175
|
+
const [local, others] = splitProps3(props, [
|
|
176
|
+
"onClick"
|
|
177
|
+
]);
|
|
178
|
+
const onClick = () => {
|
|
179
|
+
context.setPage(context.page() - 1);
|
|
180
|
+
};
|
|
181
|
+
const isDisabled = () => context.page() === 1;
|
|
182
|
+
return <li><ButtonRoot
|
|
183
|
+
tabIndex={isDisabled() || context.page() === 1 ? -1 : void 0}
|
|
184
|
+
disabled={isDisabled()}
|
|
185
|
+
aria-disabled={isDisabled() || void 0}
|
|
186
|
+
data-disabled={isDisabled() ? "" : void 0}
|
|
187
|
+
onClick={composeEventHandlers3([local.onClick, onClick])}
|
|
188
|
+
{...others}
|
|
189
|
+
/></li>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// src/pagination/pagination-root.tsx
|
|
193
|
+
import { mergeDefaultProps } from "#sheen-kobalte-utils";
|
|
194
|
+
import {
|
|
195
|
+
createUniqueId,
|
|
196
|
+
splitProps as splitProps4
|
|
197
|
+
} from "solid-js";
|
|
198
|
+
function PaginationRoot(props) {
|
|
199
|
+
const defaultId = `pagination-${createUniqueId()}`;
|
|
200
|
+
const mergedProps = mergeDefaultProps(
|
|
201
|
+
{
|
|
202
|
+
id: defaultId
|
|
203
|
+
},
|
|
204
|
+
props
|
|
205
|
+
);
|
|
206
|
+
const [local, others] = splitProps4(mergedProps, [
|
|
207
|
+
"page",
|
|
208
|
+
"defaultPage",
|
|
209
|
+
"onPageChange",
|
|
210
|
+
"count",
|
|
211
|
+
"siblingCount",
|
|
212
|
+
"showFirst",
|
|
213
|
+
"showLast",
|
|
214
|
+
"fixedItems",
|
|
215
|
+
"itemComponent",
|
|
216
|
+
"ellipsisComponent",
|
|
217
|
+
"disabled",
|
|
218
|
+
"children"
|
|
219
|
+
]);
|
|
220
|
+
const state = createControllableSignal({
|
|
221
|
+
defaultValue: () => local.defaultPage ?? 1,
|
|
222
|
+
onChange: local.onPageChange,
|
|
223
|
+
value: () => local.page
|
|
224
|
+
});
|
|
225
|
+
const context = {
|
|
226
|
+
count: () => local.count,
|
|
227
|
+
siblingCount: () => local.siblingCount ?? 1,
|
|
228
|
+
showFirst: () => local.showFirst ?? true,
|
|
229
|
+
showLast: () => local.showLast ?? true,
|
|
230
|
+
fixedItems: () => local.fixedItems ?? false,
|
|
231
|
+
isDisabled: () => local.disabled ?? false,
|
|
232
|
+
renderItem: (page) => local.itemComponent({ page }),
|
|
233
|
+
renderEllipsis: local.ellipsisComponent,
|
|
234
|
+
page: () => Math.min(state[0]() ?? 1, local.count),
|
|
235
|
+
setPage: state[1]
|
|
236
|
+
};
|
|
237
|
+
return <PaginationContext.Provider value={context}><Polymorphic
|
|
238
|
+
as="nav"
|
|
239
|
+
data-disabled={local.disabled ? "" : void 0}
|
|
240
|
+
{...others}
|
|
241
|
+
><ul>{local.children}</ul></Polymorphic></PaginationContext.Provider>;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// src/pagination/index.tsx
|
|
245
|
+
var Pagination = Object.assign(PaginationRoot, {
|
|
246
|
+
Ellipsis: PaginationEllipsis,
|
|
247
|
+
Item: PaginationItem,
|
|
248
|
+
Items: PaginationItems,
|
|
249
|
+
Next: PaginationNext,
|
|
250
|
+
Previous: PaginationPrevious
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
export {
|
|
254
|
+
PaginationEllipsis,
|
|
255
|
+
usePaginationContext,
|
|
256
|
+
PaginationItem,
|
|
257
|
+
PaginationItems,
|
|
258
|
+
PaginationNext,
|
|
259
|
+
PaginationPrevious,
|
|
260
|
+
PaginationRoot,
|
|
261
|
+
Pagination,
|
|
262
|
+
pagination_exports
|
|
263
|
+
};
|