@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.
- 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,267 @@
|
|
|
1
|
+
// Vendored and modified by Gemologic Sheen from @kobalte/core@0.13.13; see package THIRD_PARTY_NOTICES.md.
|
|
2
|
+
import * as solid_js from 'solid-js';
|
|
3
|
+
import { Accessor, JSX, ValidComponent } from 'solid-js';
|
|
4
|
+
import { F as FormControlDataSet, e as FormControlDescriptionProps, c as FormControlDescriptionCommonProps, d as FormControlDescriptionRenderProps } from './form-control-description-330657bc.js';
|
|
5
|
+
import { ElementOf, PolymorphicProps } from './polymorphic/index.js';
|
|
6
|
+
import { d as FormControlErrorMessageProps, b as FormControlErrorMessageCommonProps, c as FormControlErrorMessageRenderProps } from './form-control-error-message-9efcbea8.js';
|
|
7
|
+
import { a as FormControlLabelOptions, b as FormControlLabelCommonProps, c as FormControlLabelRenderProps } from './form-control-label-2a5ca7a3.js';
|
|
8
|
+
import { ValidationState } from "#sheen-kobalte-utils";
|
|
9
|
+
|
|
10
|
+
interface CheckboxDataSet {
|
|
11
|
+
"data-checked": string | undefined;
|
|
12
|
+
"data-indeterminate": string | undefined;
|
|
13
|
+
}
|
|
14
|
+
interface CheckboxContextValue {
|
|
15
|
+
value: Accessor<string>;
|
|
16
|
+
dataset: Accessor<CheckboxDataSet>;
|
|
17
|
+
checked: Accessor<boolean>;
|
|
18
|
+
indeterminate: Accessor<boolean>;
|
|
19
|
+
inputRef: Accessor<HTMLInputElement | undefined>;
|
|
20
|
+
generateId: (part: string) => string;
|
|
21
|
+
toggle: () => void;
|
|
22
|
+
setIsChecked: (isChecked: boolean) => void;
|
|
23
|
+
setIsFocused: (isFocused: boolean) => void;
|
|
24
|
+
setInputRef: (el: HTMLInputElement) => void;
|
|
25
|
+
}
|
|
26
|
+
declare function useCheckboxContext(): CheckboxContextValue;
|
|
27
|
+
|
|
28
|
+
interface CheckboxControlOptions {
|
|
29
|
+
}
|
|
30
|
+
interface CheckboxControlCommonProps<T extends HTMLElement = HTMLElement> {
|
|
31
|
+
id: string;
|
|
32
|
+
onClick: JSX.EventHandlerUnion<T, MouseEvent>;
|
|
33
|
+
onKeyDown: JSX.EventHandlerUnion<T, KeyboardEvent>;
|
|
34
|
+
}
|
|
35
|
+
interface CheckboxControlRenderProps extends CheckboxControlCommonProps, FormControlDataSet, CheckboxDataSet {
|
|
36
|
+
}
|
|
37
|
+
type CheckboxControlProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxControlOptions & Partial<CheckboxControlCommonProps<ElementOf<T>>>;
|
|
38
|
+
/**
|
|
39
|
+
* The element that visually represents a checkbox.
|
|
40
|
+
*/
|
|
41
|
+
declare function CheckboxControl<T extends ValidComponent = "div">(props: PolymorphicProps<T, CheckboxControlProps<T>>): JSX.Element;
|
|
42
|
+
|
|
43
|
+
interface CheckboxDescriptionOptions extends FormControlDescriptionProps {
|
|
44
|
+
}
|
|
45
|
+
interface CheckboxDescriptionCommonProps<T extends HTMLElement = HTMLElement> extends FormControlDescriptionCommonProps<T> {
|
|
46
|
+
}
|
|
47
|
+
interface CheckboxDescriptionRenderProps extends CheckboxDescriptionCommonProps, CheckboxDataSet, FormControlDescriptionRenderProps {
|
|
48
|
+
}
|
|
49
|
+
type CheckboxDescriptionProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxDescriptionOptions & Partial<CheckboxDescriptionCommonProps<ElementOf<T>>>;
|
|
50
|
+
/**
|
|
51
|
+
* The description that gives the user more information on the checkbox.
|
|
52
|
+
*/
|
|
53
|
+
declare function CheckboxDescription<T extends ValidComponent = "div">(props: PolymorphicProps<T, CheckboxDescriptionProps<T>>): solid_js.JSX.Element;
|
|
54
|
+
|
|
55
|
+
interface CheckboxErrorMessageOptions extends FormControlErrorMessageProps {
|
|
56
|
+
}
|
|
57
|
+
interface CheckboxErrorMessageCommonProps<T extends HTMLElement = HTMLElement> extends FormControlErrorMessageCommonProps<T> {
|
|
58
|
+
}
|
|
59
|
+
interface CheckboxErrorMessageRenderProps extends CheckboxErrorMessageCommonProps, CheckboxDataSet, FormControlErrorMessageRenderProps {
|
|
60
|
+
}
|
|
61
|
+
type CheckboxErrorMessageProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxErrorMessageOptions & Partial<CheckboxErrorMessageCommonProps<ElementOf<T>>>;
|
|
62
|
+
/**
|
|
63
|
+
* The error message that gives the user information about how to fix a validation error on the checkbox.
|
|
64
|
+
*/
|
|
65
|
+
declare function CheckboxErrorMessage<T extends ValidComponent = "div">(props: PolymorphicProps<T, CheckboxErrorMessageProps<T>>): solid_js.JSX.Element;
|
|
66
|
+
|
|
67
|
+
interface CheckboxIndicatorOptions {
|
|
68
|
+
/**
|
|
69
|
+
* Used to force mounting when more control is needed.
|
|
70
|
+
* Useful when controlling animation with SolidJS animation libraries.
|
|
71
|
+
*/
|
|
72
|
+
forceMount?: boolean;
|
|
73
|
+
}
|
|
74
|
+
interface CheckboxIndicatorCommonProps<T extends HTMLElement = HTMLElement> {
|
|
75
|
+
id: string;
|
|
76
|
+
ref: T | ((el: T) => void);
|
|
77
|
+
}
|
|
78
|
+
interface CheckboxIndicatorRenderProps extends CheckboxIndicatorCommonProps, FormControlDataSet, CheckboxDataSet {
|
|
79
|
+
}
|
|
80
|
+
type CheckboxIndicatorProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxIndicatorOptions & Partial<CheckboxIndicatorCommonProps<ElementOf<T>>>;
|
|
81
|
+
/**
|
|
82
|
+
* The visual indicator rendered when the checkbox is in a checked or indeterminate state.
|
|
83
|
+
* You can style this element directly, or you can use it as a wrapper to put an icon into, or both.
|
|
84
|
+
*/
|
|
85
|
+
declare function CheckboxIndicator<T extends ValidComponent = "div">(props: PolymorphicProps<T, CheckboxIndicatorProps<T>>): solid_js.JSX.Element;
|
|
86
|
+
|
|
87
|
+
interface CheckboxInputOptions {
|
|
88
|
+
}
|
|
89
|
+
interface CheckboxInputCommonProps<T extends HTMLElement = HTMLInputElement> {
|
|
90
|
+
id: string;
|
|
91
|
+
ref: T | ((el: T) => void);
|
|
92
|
+
style: JSX.CSSProperties | string;
|
|
93
|
+
onChange: JSX.EventHandlerUnion<T, InputEvent>;
|
|
94
|
+
onFocus: JSX.EventHandlerUnion<T, FocusEvent>;
|
|
95
|
+
onBlur: JSX.EventHandlerUnion<T, FocusEvent>;
|
|
96
|
+
"aria-label": string | undefined;
|
|
97
|
+
"aria-labelledby": string | undefined;
|
|
98
|
+
"aria-describedby": string | undefined;
|
|
99
|
+
}
|
|
100
|
+
interface CheckboxInputRenderProps extends CheckboxInputCommonProps, FormControlDataSet, CheckboxDataSet {
|
|
101
|
+
type: "checkbox";
|
|
102
|
+
name: string;
|
|
103
|
+
value: string;
|
|
104
|
+
checked: boolean;
|
|
105
|
+
required: boolean | undefined;
|
|
106
|
+
disabled: boolean | undefined;
|
|
107
|
+
readonly: boolean | undefined;
|
|
108
|
+
"aria-invalid": boolean | undefined;
|
|
109
|
+
"aria-required": boolean | undefined;
|
|
110
|
+
"aria-disabled": boolean | undefined;
|
|
111
|
+
"aria-readonly": boolean | undefined;
|
|
112
|
+
}
|
|
113
|
+
type CheckboxInputProps<T extends ValidComponent | HTMLElement = HTMLInputElement> = CheckboxInputOptions & Partial<CheckboxInputCommonProps<ElementOf<T>>>;
|
|
114
|
+
/**
|
|
115
|
+
* The native html input that is visually hidden in the checkbox.
|
|
116
|
+
*/
|
|
117
|
+
declare function CheckboxInput<T extends ValidComponent = "input">(props: PolymorphicProps<T, CheckboxInputProps<T>>): JSX.Element;
|
|
118
|
+
|
|
119
|
+
interface CheckboxLabelOptions extends FormControlLabelOptions {
|
|
120
|
+
}
|
|
121
|
+
interface CheckboxLabelCommonProps<T extends HTMLElement = HTMLElement> extends FormControlLabelCommonProps<T> {
|
|
122
|
+
}
|
|
123
|
+
interface CheckboxLabelRenderProps extends CheckboxLabelCommonProps, FormControlLabelRenderProps, CheckboxDataSet {
|
|
124
|
+
}
|
|
125
|
+
type CheckboxLabelProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxLabelOptions & Partial<CheckboxLabelCommonProps<ElementOf<T>>>;
|
|
126
|
+
/**
|
|
127
|
+
* The label that gives the user information on the checkbox.
|
|
128
|
+
*/
|
|
129
|
+
declare function CheckboxLabel<T extends ValidComponent = "label">(props: PolymorphicProps<T, CheckboxLabelProps<T>>): solid_js.JSX.Element;
|
|
130
|
+
|
|
131
|
+
interface CheckboxRootState {
|
|
132
|
+
/** Whether the checkbox is checked or not. */
|
|
133
|
+
checked: Accessor<boolean>;
|
|
134
|
+
/** Whether the checkbox is in an indeterminate state. */
|
|
135
|
+
indeterminate: Accessor<boolean>;
|
|
136
|
+
}
|
|
137
|
+
interface CheckboxRootOptions {
|
|
138
|
+
/** The controlled checked state of the checkbox. */
|
|
139
|
+
checked?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* The default checked state when initially rendered.
|
|
142
|
+
* Useful when you do not need to control the checked state.
|
|
143
|
+
*/
|
|
144
|
+
defaultChecked?: boolean;
|
|
145
|
+
/** Event handler called when the checked state of the checkbox changes. */
|
|
146
|
+
onChange?: (checked: boolean) => void;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the checkbox is in an indeterminate state.
|
|
149
|
+
* Indeterminism is presentational only.
|
|
150
|
+
* The indeterminate visual representation remains regardless of user interaction.
|
|
151
|
+
*/
|
|
152
|
+
indeterminate?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The value of the checkbox, used when submitting an HTML form.
|
|
155
|
+
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefvalue).
|
|
156
|
+
*/
|
|
157
|
+
value?: string;
|
|
158
|
+
/**
|
|
159
|
+
* The name of the checkbox, used when submitting an HTML form.
|
|
160
|
+
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).
|
|
161
|
+
*/
|
|
162
|
+
name?: string;
|
|
163
|
+
/** Whether the checkbox should display its "valid" or "invalid" visual styling. */
|
|
164
|
+
validationState?: ValidationState;
|
|
165
|
+
/** Whether the user must check the checkbox before the owning form can be submitted. */
|
|
166
|
+
required?: boolean;
|
|
167
|
+
/** Whether the checkbox is disabled. */
|
|
168
|
+
disabled?: boolean;
|
|
169
|
+
/** Whether the checkbox is read only. */
|
|
170
|
+
readOnly?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* The children of the checkbox.
|
|
173
|
+
* Can be a `JSX.Element` or a _render prop_ for having access to the internal state.
|
|
174
|
+
*/
|
|
175
|
+
children?: JSX.Element | ((state: CheckboxRootState) => JSX.Element);
|
|
176
|
+
}
|
|
177
|
+
interface CheckboxRootCommonProps<T extends HTMLElement = HTMLElement> {
|
|
178
|
+
id: string;
|
|
179
|
+
ref: T | ((el: T) => void);
|
|
180
|
+
onPointerDown: JSX.EventHandlerUnion<T, PointerEvent>;
|
|
181
|
+
}
|
|
182
|
+
type CheckboxRootProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxRootOptions & Partial<CheckboxRootCommonProps<ElementOf<T>>>;
|
|
183
|
+
/**
|
|
184
|
+
* A control that allows the user to toggle between checked and not checked.
|
|
185
|
+
*/
|
|
186
|
+
declare function CheckboxRoot<T extends ValidComponent = "div">(props: PolymorphicProps<T, CheckboxRootProps<T>>): JSX.Element;
|
|
187
|
+
|
|
188
|
+
declare const Checkbox: typeof CheckboxRoot & {
|
|
189
|
+
Control: typeof CheckboxControl;
|
|
190
|
+
Description: typeof CheckboxDescription;
|
|
191
|
+
ErrorMessage: typeof CheckboxErrorMessage;
|
|
192
|
+
Indicator: typeof CheckboxIndicator;
|
|
193
|
+
Input: typeof CheckboxInput;
|
|
194
|
+
Label: typeof CheckboxLabel;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
declare const index_Checkbox: typeof Checkbox;
|
|
198
|
+
type index_CheckboxContextValue = CheckboxContextValue;
|
|
199
|
+
type index_CheckboxControlCommonProps<T extends HTMLElement = HTMLElement> = CheckboxControlCommonProps<T>;
|
|
200
|
+
type index_CheckboxControlOptions = CheckboxControlOptions;
|
|
201
|
+
type index_CheckboxControlProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxControlProps<T>;
|
|
202
|
+
type index_CheckboxControlRenderProps = CheckboxControlRenderProps;
|
|
203
|
+
type index_CheckboxDescriptionCommonProps<T extends HTMLElement = HTMLElement> = CheckboxDescriptionCommonProps<T>;
|
|
204
|
+
type index_CheckboxDescriptionOptions = CheckboxDescriptionOptions;
|
|
205
|
+
type index_CheckboxDescriptionProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxDescriptionProps<T>;
|
|
206
|
+
type index_CheckboxDescriptionRenderProps = CheckboxDescriptionRenderProps;
|
|
207
|
+
type index_CheckboxErrorMessageCommonProps<T extends HTMLElement = HTMLElement> = CheckboxErrorMessageCommonProps<T>;
|
|
208
|
+
type index_CheckboxErrorMessageOptions = CheckboxErrorMessageOptions;
|
|
209
|
+
type index_CheckboxErrorMessageProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxErrorMessageProps<T>;
|
|
210
|
+
type index_CheckboxErrorMessageRenderProps = CheckboxErrorMessageRenderProps;
|
|
211
|
+
type index_CheckboxIndicatorCommonProps<T extends HTMLElement = HTMLElement> = CheckboxIndicatorCommonProps<T>;
|
|
212
|
+
type index_CheckboxIndicatorOptions = CheckboxIndicatorOptions;
|
|
213
|
+
type index_CheckboxIndicatorProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxIndicatorProps<T>;
|
|
214
|
+
type index_CheckboxIndicatorRenderProps = CheckboxIndicatorRenderProps;
|
|
215
|
+
type index_CheckboxInputCommonProps<T extends HTMLElement = HTMLInputElement> = CheckboxInputCommonProps<T>;
|
|
216
|
+
type index_CheckboxInputOptions = CheckboxInputOptions;
|
|
217
|
+
type index_CheckboxInputProps<T extends ValidComponent | HTMLElement = HTMLInputElement> = CheckboxInputProps<T>;
|
|
218
|
+
type index_CheckboxInputRenderProps = CheckboxInputRenderProps;
|
|
219
|
+
type index_CheckboxLabelCommonProps<T extends HTMLElement = HTMLElement> = CheckboxLabelCommonProps<T>;
|
|
220
|
+
type index_CheckboxLabelOptions = CheckboxLabelOptions;
|
|
221
|
+
type index_CheckboxLabelProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxLabelProps<T>;
|
|
222
|
+
type index_CheckboxLabelRenderProps = CheckboxLabelRenderProps;
|
|
223
|
+
type index_CheckboxRootOptions = CheckboxRootOptions;
|
|
224
|
+
type index_CheckboxRootProps<T extends ValidComponent | HTMLElement = HTMLElement> = CheckboxRootProps<T>;
|
|
225
|
+
declare const index_useCheckboxContext: typeof useCheckboxContext;
|
|
226
|
+
declare namespace index {
|
|
227
|
+
export {
|
|
228
|
+
index_Checkbox as Checkbox,
|
|
229
|
+
index_CheckboxContextValue as CheckboxContextValue,
|
|
230
|
+
index_CheckboxControlCommonProps as CheckboxControlCommonProps,
|
|
231
|
+
index_CheckboxControlOptions as CheckboxControlOptions,
|
|
232
|
+
index_CheckboxControlProps as CheckboxControlProps,
|
|
233
|
+
index_CheckboxControlRenderProps as CheckboxControlRenderProps,
|
|
234
|
+
index_CheckboxDescriptionCommonProps as CheckboxDescriptionCommonProps,
|
|
235
|
+
index_CheckboxDescriptionOptions as CheckboxDescriptionOptions,
|
|
236
|
+
index_CheckboxDescriptionProps as CheckboxDescriptionProps,
|
|
237
|
+
index_CheckboxDescriptionRenderProps as CheckboxDescriptionRenderProps,
|
|
238
|
+
index_CheckboxErrorMessageCommonProps as CheckboxErrorMessageCommonProps,
|
|
239
|
+
index_CheckboxErrorMessageOptions as CheckboxErrorMessageOptions,
|
|
240
|
+
index_CheckboxErrorMessageProps as CheckboxErrorMessageProps,
|
|
241
|
+
index_CheckboxErrorMessageRenderProps as CheckboxErrorMessageRenderProps,
|
|
242
|
+
index_CheckboxIndicatorCommonProps as CheckboxIndicatorCommonProps,
|
|
243
|
+
index_CheckboxIndicatorOptions as CheckboxIndicatorOptions,
|
|
244
|
+
index_CheckboxIndicatorProps as CheckboxIndicatorProps,
|
|
245
|
+
index_CheckboxIndicatorRenderProps as CheckboxIndicatorRenderProps,
|
|
246
|
+
index_CheckboxInputCommonProps as CheckboxInputCommonProps,
|
|
247
|
+
index_CheckboxInputOptions as CheckboxInputOptions,
|
|
248
|
+
index_CheckboxInputProps as CheckboxInputProps,
|
|
249
|
+
index_CheckboxInputRenderProps as CheckboxInputRenderProps,
|
|
250
|
+
index_CheckboxLabelCommonProps as CheckboxLabelCommonProps,
|
|
251
|
+
index_CheckboxLabelOptions as CheckboxLabelOptions,
|
|
252
|
+
index_CheckboxLabelProps as CheckboxLabelProps,
|
|
253
|
+
index_CheckboxLabelRenderProps as CheckboxLabelRenderProps,
|
|
254
|
+
index_CheckboxRootOptions as CheckboxRootOptions,
|
|
255
|
+
index_CheckboxRootProps as CheckboxRootProps,
|
|
256
|
+
CheckboxControl as Control,
|
|
257
|
+
CheckboxDescription as Description,
|
|
258
|
+
CheckboxErrorMessage as ErrorMessage,
|
|
259
|
+
CheckboxIndicator as Indicator,
|
|
260
|
+
CheckboxInput as Input,
|
|
261
|
+
CheckboxLabel as Label,
|
|
262
|
+
CheckboxRoot as Root,
|
|
263
|
+
index_useCheckboxContext as useCheckboxContext,
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export { CheckboxControl as A, CheckboxDescription as B, CheckboxControlOptions as C, CheckboxErrorMessage as D, CheckboxIndicator as E, CheckboxInput as F, CheckboxLabel as G, CheckboxRoot as H, Checkbox as I, useCheckboxContext as J, CheckboxContextValue as K, CheckboxControlCommonProps as a, CheckboxControlRenderProps as b, CheckboxControlProps as c, CheckboxDescriptionOptions as d, CheckboxDescriptionCommonProps as e, CheckboxDescriptionRenderProps as f, CheckboxDescriptionProps as g, CheckboxErrorMessageOptions as h, index as i, CheckboxErrorMessageCommonProps as j, CheckboxErrorMessageRenderProps as k, CheckboxErrorMessageProps as l, CheckboxIndicatorOptions as m, CheckboxIndicatorCommonProps as n, CheckboxIndicatorRenderProps as o, CheckboxIndicatorProps as p, CheckboxInputOptions as q, CheckboxInputCommonProps as r, CheckboxInputRenderProps as s, CheckboxInputProps as t, CheckboxLabelOptions as u, CheckboxLabelCommonProps as v, CheckboxLabelRenderProps as w, CheckboxLabelProps as x, CheckboxRootOptions as y, CheckboxRootProps as z };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Vendored and modified by Gemologic Sheen from @kobalte/core@0.13.13; see package THIRD_PARTY_NOTICES.md.
|
|
2
|
+
import * as solid_js from 'solid-js';
|
|
3
|
+
import { ValidComponent, JSX } from 'solid-js';
|
|
4
|
+
import { ElementOf, PolymorphicProps } from './polymorphic/index.js';
|
|
5
|
+
|
|
6
|
+
interface BreadcrumbsLinkOptions {
|
|
7
|
+
/** Whether the breadcrumb link represents the current page. */
|
|
8
|
+
current?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface BreadcrumbsLinkCommonProps<T extends HTMLElement = HTMLElement> {
|
|
11
|
+
/** Whether the breadcrumb link is disabled. */
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
"aria-current": string | undefined;
|
|
14
|
+
}
|
|
15
|
+
interface BreadcrumbsLinkRenderProps extends BreadcrumbsLinkCommonProps {
|
|
16
|
+
"data-current": string | undefined;
|
|
17
|
+
}
|
|
18
|
+
type BreadcrumbsLinkProps<T extends ValidComponent | HTMLElement = HTMLElement> = BreadcrumbsLinkOptions & Partial<BreadcrumbsLinkCommonProps<ElementOf<T>>>;
|
|
19
|
+
/**
|
|
20
|
+
* The breadcrumbs link.
|
|
21
|
+
*/
|
|
22
|
+
declare function BreadcrumbsLink<T extends ValidComponent = "a">(props: PolymorphicProps<T, BreadcrumbsLinkProps<T>>): solid_js.JSX.Element;
|
|
23
|
+
|
|
24
|
+
declare const BREADCRUMBS_INTL_TRANSLATIONS: {
|
|
25
|
+
breadcrumbs: string;
|
|
26
|
+
};
|
|
27
|
+
type BreadcrumbsIntlTranslations = typeof BREADCRUMBS_INTL_TRANSLATIONS;
|
|
28
|
+
|
|
29
|
+
interface BreadcrumbsRootOptions {
|
|
30
|
+
/**
|
|
31
|
+
* The visual separator between each breadcrumb item.
|
|
32
|
+
* It will be used as the default children of `Breadcrumbs.Separator`.
|
|
33
|
+
*/
|
|
34
|
+
separator?: string | JSX.Element;
|
|
35
|
+
/** The localized strings of the component. */
|
|
36
|
+
translations?: BreadcrumbsIntlTranslations;
|
|
37
|
+
}
|
|
38
|
+
interface BreadcrumbsRootCommonProps<T extends HTMLElement = HTMLElement> {
|
|
39
|
+
}
|
|
40
|
+
type BreadcrumbsRootProps<T extends ValidComponent | HTMLElement = HTMLElement> = BreadcrumbsRootOptions & Partial<BreadcrumbsRootCommonProps<ElementOf<T>>>;
|
|
41
|
+
/**
|
|
42
|
+
* Breadcrumbs show hierarchy and navigational context for a user’s location within an application.
|
|
43
|
+
*/
|
|
44
|
+
declare function BreadcrumbsRoot<T extends ValidComponent = "nav">(props: PolymorphicProps<T, BreadcrumbsRootProps<T>>): JSX.Element;
|
|
45
|
+
|
|
46
|
+
interface BreadcrumbsSeparatorOptions {
|
|
47
|
+
}
|
|
48
|
+
interface BreadcrumbsSeparatorCommonProps<T extends HTMLElement = HTMLElement> {
|
|
49
|
+
}
|
|
50
|
+
interface BreadcrumbsSeparatorRenderProps extends BreadcrumbsSeparatorCommonProps {
|
|
51
|
+
children: JSX.Element;
|
|
52
|
+
"aria-hidden": "true";
|
|
53
|
+
}
|
|
54
|
+
type BreadcrumbsSeparatorProps<T extends ValidComponent | HTMLElement = HTMLElement> = BreadcrumbsSeparatorOptions & Partial<BreadcrumbsSeparatorCommonProps<ElementOf<T>>>;
|
|
55
|
+
/**
|
|
56
|
+
* The visual separator between each breadcrumb items.
|
|
57
|
+
* It will not be visible by screen readers.
|
|
58
|
+
*/
|
|
59
|
+
declare function BreadcrumbsSeparator<T extends ValidComponent = "span">(props: PolymorphicProps<T, BreadcrumbsSeparatorProps<T>>): JSX.Element;
|
|
60
|
+
|
|
61
|
+
interface BreadcrumbsContextValue {
|
|
62
|
+
separator: () => string | JSX.Element;
|
|
63
|
+
}
|
|
64
|
+
declare function useBreadcrumbsContext(): BreadcrumbsContextValue;
|
|
65
|
+
|
|
66
|
+
declare const Breadcrumbs: typeof BreadcrumbsRoot & {
|
|
67
|
+
Link: typeof BreadcrumbsLink;
|
|
68
|
+
Separator: typeof BreadcrumbsSeparator;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
declare const index_Breadcrumbs: typeof Breadcrumbs;
|
|
72
|
+
type index_BreadcrumbsContextValue = BreadcrumbsContextValue;
|
|
73
|
+
type index_BreadcrumbsLinkCommonProps<T extends HTMLElement = HTMLElement> = BreadcrumbsLinkCommonProps<T>;
|
|
74
|
+
type index_BreadcrumbsLinkOptions = BreadcrumbsLinkOptions;
|
|
75
|
+
type index_BreadcrumbsLinkProps<T extends ValidComponent | HTMLElement = HTMLElement> = BreadcrumbsLinkProps<T>;
|
|
76
|
+
type index_BreadcrumbsLinkRenderProps = BreadcrumbsLinkRenderProps;
|
|
77
|
+
type index_BreadcrumbsRootOptions = BreadcrumbsRootOptions;
|
|
78
|
+
type index_BreadcrumbsRootProps<T extends ValidComponent | HTMLElement = HTMLElement> = BreadcrumbsRootProps<T>;
|
|
79
|
+
type index_BreadcrumbsSeparatorCommonProps<T extends HTMLElement = HTMLElement> = BreadcrumbsSeparatorCommonProps<T>;
|
|
80
|
+
type index_BreadcrumbsSeparatorOptions = BreadcrumbsSeparatorOptions;
|
|
81
|
+
type index_BreadcrumbsSeparatorProps<T extends ValidComponent | HTMLElement = HTMLElement> = BreadcrumbsSeparatorProps<T>;
|
|
82
|
+
type index_BreadcrumbsSeparatorRenderProps = BreadcrumbsSeparatorRenderProps;
|
|
83
|
+
declare const index_useBreadcrumbsContext: typeof useBreadcrumbsContext;
|
|
84
|
+
declare namespace index {
|
|
85
|
+
export {
|
|
86
|
+
index_Breadcrumbs as Breadcrumbs,
|
|
87
|
+
index_BreadcrumbsContextValue as BreadcrumbsContextValue,
|
|
88
|
+
index_BreadcrumbsLinkCommonProps as BreadcrumbsLinkCommonProps,
|
|
89
|
+
index_BreadcrumbsLinkOptions as BreadcrumbsLinkOptions,
|
|
90
|
+
index_BreadcrumbsLinkProps as BreadcrumbsLinkProps,
|
|
91
|
+
index_BreadcrumbsLinkRenderProps as BreadcrumbsLinkRenderProps,
|
|
92
|
+
index_BreadcrumbsRootOptions as BreadcrumbsRootOptions,
|
|
93
|
+
index_BreadcrumbsRootProps as BreadcrumbsRootProps,
|
|
94
|
+
index_BreadcrumbsSeparatorCommonProps as BreadcrumbsSeparatorCommonProps,
|
|
95
|
+
index_BreadcrumbsSeparatorOptions as BreadcrumbsSeparatorOptions,
|
|
96
|
+
index_BreadcrumbsSeparatorProps as BreadcrumbsSeparatorProps,
|
|
97
|
+
index_BreadcrumbsSeparatorRenderProps as BreadcrumbsSeparatorRenderProps,
|
|
98
|
+
BreadcrumbsLink as Link,
|
|
99
|
+
BreadcrumbsRoot as Root,
|
|
100
|
+
BreadcrumbsSeparator as Separator,
|
|
101
|
+
index_useBreadcrumbsContext as useBreadcrumbsContext,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { BreadcrumbsLinkOptions as B, BreadcrumbsLinkCommonProps as a, BreadcrumbsLinkRenderProps as b, BreadcrumbsLinkProps as c, BreadcrumbsRootOptions as d, BreadcrumbsRootProps as e, BreadcrumbsSeparatorOptions as f, BreadcrumbsSeparatorCommonProps as g, BreadcrumbsSeparatorRenderProps as h, index as i, BreadcrumbsSeparatorProps as j, BreadcrumbsLink as k, BreadcrumbsRoot as l, BreadcrumbsSeparator as m, Breadcrumbs as n, BreadcrumbsContextValue as o, useBreadcrumbsContext as u };
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// Vendored and modified by Gemologic Sheen from @kobalte/core@0.13.13; see package THIRD_PARTY_NOTICES.md.
|
|
2
|
+
import * as solid_js from 'solid-js';
|
|
3
|
+
import { Accessor, ValidComponent, JSX, Setter } from 'solid-js';
|
|
4
|
+
import { Orientation } from "#sheen-kobalte-utils";
|
|
5
|
+
import { ElementOf, PolymorphicProps } from './polymorphic/index.js';
|
|
6
|
+
import { b as CollectionBase, a as CollectionNode } from './types-f8ae18e5.js';
|
|
7
|
+
import { f as SingleSelection, L as ListState } from './create-list-state-d9a0f1f2.js';
|
|
8
|
+
|
|
9
|
+
interface CreateSingleSelectListStateProps extends CollectionBase, Omit<SingleSelection, "disallowEmptySelection"> {
|
|
10
|
+
/** Filter function to generate a filtered list of nodes. */
|
|
11
|
+
filter?: (nodes: Iterable<CollectionNode>) => Iterable<CollectionNode>;
|
|
12
|
+
}
|
|
13
|
+
interface SingleSelectListState extends ListState {
|
|
14
|
+
/** The value of the currently selected item. */
|
|
15
|
+
selectedItem: Accessor<CollectionNode | undefined>;
|
|
16
|
+
/** The key for the currently selected item. */
|
|
17
|
+
selectedKey: Accessor<string | undefined>;
|
|
18
|
+
/** Sets the selected key. */
|
|
19
|
+
setSelectedKey(key: string): void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Provides state management for list-like components with single selection.
|
|
23
|
+
* Handles building a collection of items from props, and manages selection state.
|
|
24
|
+
*/
|
|
25
|
+
declare function createSingleSelectListState(props: CreateSingleSelectListStateProps): SingleSelectListState;
|
|
26
|
+
|
|
27
|
+
interface TabsContentOptions {
|
|
28
|
+
/** The unique key that associates the tab panel with a tab. */
|
|
29
|
+
value: string;
|
|
30
|
+
/**
|
|
31
|
+
* Used to force mounting when more control is needed.
|
|
32
|
+
* Useful when controlling animation with SolidJS animation libraries.
|
|
33
|
+
*/
|
|
34
|
+
forceMount?: boolean;
|
|
35
|
+
}
|
|
36
|
+
interface TabsContentCommonProps<T extends HTMLElement = HTMLElement> {
|
|
37
|
+
id: string;
|
|
38
|
+
ref: T | ((el: T) => void);
|
|
39
|
+
}
|
|
40
|
+
interface TabsContentRenderProps extends TabsContentCommonProps {
|
|
41
|
+
role: "tabpanel";
|
|
42
|
+
tabIndex: number | undefined;
|
|
43
|
+
"aria-labelledby": string | undefined;
|
|
44
|
+
"data-orientation": Orientation;
|
|
45
|
+
"data-selected": string | undefined;
|
|
46
|
+
}
|
|
47
|
+
type TabsContentProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsContentOptions & Partial<TabsContentCommonProps<ElementOf<T>>>;
|
|
48
|
+
/**
|
|
49
|
+
* Contains the content associated with a tab trigger.
|
|
50
|
+
*/
|
|
51
|
+
declare function TabsContent<T extends ValidComponent = "div">(props: PolymorphicProps<T, TabsContentProps<T>>): solid_js.JSX.Element;
|
|
52
|
+
|
|
53
|
+
interface TabsIndicatorOptions {
|
|
54
|
+
}
|
|
55
|
+
interface TabsIndicatorCommonProps<T extends HTMLElement = HTMLElement> {
|
|
56
|
+
style?: JSX.CSSProperties | string;
|
|
57
|
+
}
|
|
58
|
+
interface TabsIndicatorRenderProps extends TabsIndicatorCommonProps {
|
|
59
|
+
role: "presentation";
|
|
60
|
+
"data-orientation": Orientation;
|
|
61
|
+
}
|
|
62
|
+
type TabsIndicatorProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsIndicatorOptions & Partial<TabsIndicatorCommonProps<ElementOf<T>>>;
|
|
63
|
+
/**
|
|
64
|
+
* The visual indicator displayed at the bottom of the tab list to indicate the selected tab.
|
|
65
|
+
* It provides the base style needed to display a smooth transition to the new selected tab.
|
|
66
|
+
*/
|
|
67
|
+
declare function TabsIndicator<T extends ValidComponent = "div">(props: PolymorphicProps<T, TabsIndicatorProps<T>>): JSX.Element;
|
|
68
|
+
|
|
69
|
+
interface TabsListOptions {
|
|
70
|
+
}
|
|
71
|
+
interface TabsListCommonProps<T extends HTMLElement = HTMLElement> {
|
|
72
|
+
ref: T | ((el: T) => void);
|
|
73
|
+
onKeyDown: JSX.EventHandlerUnion<T, KeyboardEvent>;
|
|
74
|
+
onMouseDown: JSX.EventHandlerUnion<T, MouseEvent>;
|
|
75
|
+
onFocusIn: JSX.EventHandlerUnion<T, FocusEvent>;
|
|
76
|
+
onFocusOut: JSX.EventHandlerUnion<T, FocusEvent>;
|
|
77
|
+
}
|
|
78
|
+
interface TabsListRenderProps extends TabsListCommonProps {
|
|
79
|
+
role: "tablist";
|
|
80
|
+
"aria-orientation": Orientation;
|
|
81
|
+
"data-orientation": Orientation;
|
|
82
|
+
}
|
|
83
|
+
type TabsListProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsListOptions & Partial<TabsListCommonProps<ElementOf<T>>>;
|
|
84
|
+
/**
|
|
85
|
+
* Contains the tabs that are aligned along the edge of the active tab panel.
|
|
86
|
+
*/
|
|
87
|
+
declare function TabsList<T extends ValidComponent = "div">(props: PolymorphicProps<T, TabsListProps<T>>): JSX.Element;
|
|
88
|
+
|
|
89
|
+
type TabsActivationMode = "automatic" | "manual";
|
|
90
|
+
|
|
91
|
+
interface TabsRootOptions {
|
|
92
|
+
/** The controlled value of the tab to activate. */
|
|
93
|
+
value?: string;
|
|
94
|
+
/**
|
|
95
|
+
* The value of the tab that should be active when initially rendered.
|
|
96
|
+
* Useful when you do not need to control the state.
|
|
97
|
+
*/
|
|
98
|
+
defaultValue?: string;
|
|
99
|
+
/** Event handler called when the value changes. */
|
|
100
|
+
onChange?: (value: string) => void;
|
|
101
|
+
/** The orientation of the tabs. */
|
|
102
|
+
orientation?: Orientation;
|
|
103
|
+
/** Whether tabs are activated automatically on focus or manually. */
|
|
104
|
+
activationMode?: TabsActivationMode;
|
|
105
|
+
/** Whether the tabs are disabled. */
|
|
106
|
+
disabled?: boolean;
|
|
107
|
+
}
|
|
108
|
+
interface TabsRootCommonProps<T extends HTMLElement = HTMLElement> {
|
|
109
|
+
id?: string;
|
|
110
|
+
}
|
|
111
|
+
interface TabsRootRenderProps extends TabsRootCommonProps {
|
|
112
|
+
"data-orientation": Orientation;
|
|
113
|
+
}
|
|
114
|
+
type TabsRootProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsRootOptions & Partial<TabsRootCommonProps<ElementOf<T>>>;
|
|
115
|
+
/**
|
|
116
|
+
* A set of layered sections of content, known as tab panels, that display one panel of content at a time.
|
|
117
|
+
* `Tabs` contains all the parts of a tabs component and provide context for its children.
|
|
118
|
+
*/
|
|
119
|
+
declare function TabsRoot<T extends ValidComponent = "div">(props: PolymorphicProps<T, TabsRootProps<T>>): solid_js.JSX.Element;
|
|
120
|
+
|
|
121
|
+
interface TabsTriggerOptions {
|
|
122
|
+
/** The unique key that associates the tab with a tab panel. */
|
|
123
|
+
value: string;
|
|
124
|
+
/** Whether the tab should be disabled. */
|
|
125
|
+
disabled?: boolean;
|
|
126
|
+
}
|
|
127
|
+
interface TabsTriggerCommonProps<T extends HTMLElement = HTMLElement> {
|
|
128
|
+
id: string;
|
|
129
|
+
ref: T | ((el: T) => void);
|
|
130
|
+
type: "button";
|
|
131
|
+
onPointerDown: JSX.EventHandlerUnion<T, PointerEvent>;
|
|
132
|
+
onPointerUp: JSX.EventHandlerUnion<T, PointerEvent>;
|
|
133
|
+
onClick: JSX.EventHandlerUnion<T, MouseEvent>;
|
|
134
|
+
onKeyDown: JSX.EventHandlerUnion<T, KeyboardEvent>;
|
|
135
|
+
onMouseDown: JSX.EventHandlerUnion<T, MouseEvent>;
|
|
136
|
+
onFocus: JSX.EventHandlerUnion<T, FocusEvent>;
|
|
137
|
+
}
|
|
138
|
+
interface TabsTriggerRenderProps extends TabsTriggerCommonProps {
|
|
139
|
+
role: "tab";
|
|
140
|
+
tabIndex: number | undefined;
|
|
141
|
+
disabled: boolean;
|
|
142
|
+
"aria-selected": boolean;
|
|
143
|
+
"aria-disabled": boolean | undefined;
|
|
144
|
+
"aria-controls": string | undefined;
|
|
145
|
+
"data-key": string | undefined;
|
|
146
|
+
"data-orientation": Orientation;
|
|
147
|
+
"data-selected": string | undefined;
|
|
148
|
+
"data-highlighted": string | undefined;
|
|
149
|
+
"data-disabled": string | undefined;
|
|
150
|
+
}
|
|
151
|
+
type TabsTriggerProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsTriggerOptions & Partial<TabsTriggerCommonProps<ElementOf<T>>>;
|
|
152
|
+
/**
|
|
153
|
+
* The button that activates its associated tab panel.
|
|
154
|
+
*/
|
|
155
|
+
declare function TabsTrigger<T extends ValidComponent = "button">(props: PolymorphicProps<T, TabsTriggerProps<T>>): JSX.Element;
|
|
156
|
+
|
|
157
|
+
interface TabsContextValue {
|
|
158
|
+
isDisabled: Accessor<boolean>;
|
|
159
|
+
orientation: Accessor<Orientation>;
|
|
160
|
+
activationMode: Accessor<TabsActivationMode>;
|
|
161
|
+
triggerIdsMap: Accessor<Map<string, string>>;
|
|
162
|
+
contentIdsMap: Accessor<Map<string, string>>;
|
|
163
|
+
listState: Accessor<SingleSelectListState>;
|
|
164
|
+
selectedTab: Accessor<HTMLElement | undefined>;
|
|
165
|
+
setSelectedTab: Setter<HTMLElement | undefined>;
|
|
166
|
+
generateTriggerId: (value: string) => string;
|
|
167
|
+
generateContentId: (value: string) => string;
|
|
168
|
+
}
|
|
169
|
+
declare function useTabsContext(): TabsContextValue;
|
|
170
|
+
|
|
171
|
+
declare const Tabs: typeof TabsRoot & {
|
|
172
|
+
Content: typeof TabsContent;
|
|
173
|
+
Indicator: typeof TabsIndicator;
|
|
174
|
+
List: typeof TabsList;
|
|
175
|
+
Trigger: typeof TabsTrigger;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
declare const index_Tabs: typeof Tabs;
|
|
179
|
+
type index_TabsContentCommonProps<T extends HTMLElement = HTMLElement> = TabsContentCommonProps<T>;
|
|
180
|
+
type index_TabsContentOptions = TabsContentOptions;
|
|
181
|
+
type index_TabsContentProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsContentProps<T>;
|
|
182
|
+
type index_TabsContentRenderProps = TabsContentRenderProps;
|
|
183
|
+
type index_TabsContextValue = TabsContextValue;
|
|
184
|
+
type index_TabsIndicatorCommonProps<T extends HTMLElement = HTMLElement> = TabsIndicatorCommonProps<T>;
|
|
185
|
+
type index_TabsIndicatorOptions = TabsIndicatorOptions;
|
|
186
|
+
type index_TabsIndicatorProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsIndicatorProps<T>;
|
|
187
|
+
type index_TabsIndicatorRenderProps = TabsIndicatorRenderProps;
|
|
188
|
+
type index_TabsListCommonProps<T extends HTMLElement = HTMLElement> = TabsListCommonProps<T>;
|
|
189
|
+
type index_TabsListOptions = TabsListOptions;
|
|
190
|
+
type index_TabsListProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsListProps<T>;
|
|
191
|
+
type index_TabsListRenderProps = TabsListRenderProps;
|
|
192
|
+
type index_TabsRootCommonProps<T extends HTMLElement = HTMLElement> = TabsRootCommonProps<T>;
|
|
193
|
+
type index_TabsRootOptions = TabsRootOptions;
|
|
194
|
+
type index_TabsRootProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsRootProps<T>;
|
|
195
|
+
type index_TabsRootRenderProps = TabsRootRenderProps;
|
|
196
|
+
type index_TabsTriggerCommonProps<T extends HTMLElement = HTMLElement> = TabsTriggerCommonProps<T>;
|
|
197
|
+
type index_TabsTriggerOptions = TabsTriggerOptions;
|
|
198
|
+
type index_TabsTriggerProps<T extends ValidComponent | HTMLElement = HTMLElement> = TabsTriggerProps<T>;
|
|
199
|
+
type index_TabsTriggerRenderProps = TabsTriggerRenderProps;
|
|
200
|
+
declare const index_useTabsContext: typeof useTabsContext;
|
|
201
|
+
declare namespace index {
|
|
202
|
+
export {
|
|
203
|
+
TabsContent as Content,
|
|
204
|
+
TabsIndicator as Indicator,
|
|
205
|
+
TabsList as List,
|
|
206
|
+
TabsRoot as Root,
|
|
207
|
+
index_Tabs as Tabs,
|
|
208
|
+
index_TabsContentCommonProps as TabsContentCommonProps,
|
|
209
|
+
index_TabsContentOptions as TabsContentOptions,
|
|
210
|
+
index_TabsContentProps as TabsContentProps,
|
|
211
|
+
index_TabsContentRenderProps as TabsContentRenderProps,
|
|
212
|
+
index_TabsContextValue as TabsContextValue,
|
|
213
|
+
index_TabsIndicatorCommonProps as TabsIndicatorCommonProps,
|
|
214
|
+
index_TabsIndicatorOptions as TabsIndicatorOptions,
|
|
215
|
+
index_TabsIndicatorProps as TabsIndicatorProps,
|
|
216
|
+
index_TabsIndicatorRenderProps as TabsIndicatorRenderProps,
|
|
217
|
+
index_TabsListCommonProps as TabsListCommonProps,
|
|
218
|
+
index_TabsListOptions as TabsListOptions,
|
|
219
|
+
index_TabsListProps as TabsListProps,
|
|
220
|
+
index_TabsListRenderProps as TabsListRenderProps,
|
|
221
|
+
index_TabsRootCommonProps as TabsRootCommonProps,
|
|
222
|
+
index_TabsRootOptions as TabsRootOptions,
|
|
223
|
+
index_TabsRootProps as TabsRootProps,
|
|
224
|
+
index_TabsRootRenderProps as TabsRootRenderProps,
|
|
225
|
+
index_TabsTriggerCommonProps as TabsTriggerCommonProps,
|
|
226
|
+
index_TabsTriggerOptions as TabsTriggerOptions,
|
|
227
|
+
index_TabsTriggerProps as TabsTriggerProps,
|
|
228
|
+
index_TabsTriggerRenderProps as TabsTriggerRenderProps,
|
|
229
|
+
TabsTrigger as Trigger,
|
|
230
|
+
index_useTabsContext as useTabsContext,
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export { Tabs as A, useTabsContext as B, CreateSingleSelectListStateProps as C, TabsContextValue as D, SingleSelectListState as S, TabsContentOptions as T, TabsContentCommonProps as a, TabsContentRenderProps as b, createSingleSelectListState as c, TabsContentProps as d, TabsIndicatorOptions as e, TabsIndicatorCommonProps as f, TabsIndicatorRenderProps as g, TabsIndicatorProps as h, index as i, TabsListOptions as j, TabsListCommonProps as k, TabsListRenderProps as l, TabsListProps as m, TabsRootOptions as n, TabsRootCommonProps as o, TabsRootRenderProps as p, TabsRootProps as q, TabsTriggerOptions as r, TabsTriggerCommonProps as s, TabsTriggerRenderProps as t, TabsTriggerProps as u, TabsContent as v, TabsIndicator as w, TabsList as x, TabsRoot as y, TabsTrigger as z };
|