@ark-ui/solid 5.23.0 → 5.24.1
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 +0 -1
- package/dist/checkbox.anatomy-CuzDSmDj.d.ts +5 -0
- package/dist/chunk/{FZMB5WQY.js → 23HIQ66A.js} +0 -1
- package/dist/chunk/{HACBFHHT.jsx → 24CNBRGC.jsx} +0 -4
- package/dist/chunk/24WXBTEA.jsx +8 -0
- package/dist/chunk/{EUZ5RFTD.js → 2ADNQQFM.js} +4 -7
- package/dist/chunk/{O4BTJAES.jsx → 2LPJGLTN.jsx} +0 -4
- package/dist/chunk/{5MPUJF73.js → 2PTUPICJ.js} +0 -1
- package/dist/chunk/2QIJEKZE.js +1 -0
- package/dist/chunk/{FQDJD5WT.jsx → 2VUM665L.jsx} +0 -4
- package/dist/chunk/{CJ7ZPDYK.js → 32ROMPWW.js} +0 -1
- package/dist/chunk/365FOMFL.jsx +6 -0
- package/dist/chunk/{LZPARB53.js → 3CNPLN64.js} +3 -7
- package/dist/chunk/3I7TGCD3.js +6 -0
- package/dist/chunk/3PQKB7JL.js +1 -0
- package/dist/chunk/{4DBNFXQT.js → 3VWZ53O7.js} +0 -1
- package/dist/chunk/4EHDEDQ4.js +1 -0
- package/dist/chunk/4LSJX4HL.jsx +6 -0
- package/dist/chunk/4N4QYAZL.js +1 -0
- package/dist/chunk/{CPLXH5IA.js → 4TVAIHJ3.js} +0 -1
- package/dist/chunk/{B7QUG2TP.js → 4VFMFYSG.js} +3 -6
- package/dist/chunk/4WBPEARW.jsx +7 -0
- package/dist/chunk/4YNGVMW2.jsx +9 -0
- package/dist/chunk/4ZHXHGFF.jsx +7 -0
- package/dist/chunk/572D5F2K.jsx +6 -0
- package/dist/chunk/{AWD5DIFD.jsx → 674JZTWO.jsx} +0 -4
- package/dist/chunk/{ZJKJFVOI.js → 6BBBEDTY.js} +1 -2
- package/dist/chunk/{RAM4O5E4.js → 6DQSIDTS.js} +1 -2
- package/dist/chunk/6HVSV6OM.js +6 -0
- package/dist/chunk/{AIFOKNNI.js → 6JOTJSPG.js} +0 -1
- package/dist/chunk/6P2AQNUE.jsx +18 -0
- package/dist/chunk/6TAVRECK.js +1 -0
- package/dist/chunk/{6BGLB7Y7.jsx → 6TP4H7ZG.jsx} +5 -8
- package/dist/chunk/6UXNGS66.jsx +7 -0
- package/dist/chunk/6ZYXYM4Y.js +1 -0
- package/dist/chunk/72DODTYZ.jsx +6 -0
- package/dist/chunk/764Z3BY5.js +1 -0
- package/dist/chunk/7ANKVUWM.js +6 -0
- package/dist/chunk/7BD55LQZ.js +1 -0
- package/dist/chunk/{UXNYIEZZ.js → 7CIAG2PW.js} +2 -5
- package/dist/chunk/{LBDJJRGP.js → 7CQC4LFJ.js} +2 -5
- package/dist/chunk/7ENGUGCM.js +1 -0
- package/dist/chunk/A2E3WJMF.jsx +6 -0
- package/dist/chunk/A42OP6DG.js +1 -0
- package/dist/chunk/{LQ6T5YT7.jsx → AIGJO4SS.jsx} +0 -4
- package/dist/chunk/AKB4BKUF.jsx +6 -0
- package/dist/chunk/{FU2KVI6E.jsx → AM6UOLUE.jsx} +1 -5
- package/dist/chunk/AMS6WBXV.js +1 -0
- package/dist/chunk/{6SS4HF64.js → AVP7FSKE.js} +0 -1
- package/dist/chunk/{OJBI52R5.jsx → BA4CURTS.jsx} +29 -21
- package/dist/chunk/BCFT4DP6.jsx +6 -0
- package/dist/chunk/{ELWJ5JSG.jsx → BDO6J62M.jsx} +4 -6
- package/dist/chunk/{6RI5RLL4.jsx → BH37SJGO.jsx} +1 -1
- package/dist/chunk/BIOQPVPU.jsx +6 -0
- package/dist/chunk/BNHBX4H3.js +1 -0
- package/dist/chunk/{CBBODIIA.js → BO736YDQ.js} +1 -2
- package/dist/chunk/{EWPHO4ND.jsx → BUTFZKRQ.jsx} +0 -4
- package/dist/chunk/{NZZ47TNF.jsx → BXES62TI.jsx} +0 -4
- package/dist/chunk/BXZ3UXVW.jsx +6 -0
- package/dist/chunk/{GJY7ASBA.jsx → C3GWRQ5D.jsx} +1 -5
- package/dist/chunk/C6BGJM4X.jsx +6 -0
- package/dist/chunk/{S4LPOWLW.jsx → CFFHAOVQ.jsx} +0 -4
- package/dist/chunk/{5HPWBPXN.jsx → CIFQFFB3.jsx} +3 -7
- package/dist/chunk/{ZKV7ELLL.jsx → CL23JPS4.jsx} +3 -7
- package/dist/chunk/{OJDEGAOM.js → D5KEI5LU.js} +1 -1
- package/dist/chunk/D6E7YCRS.jsx +6 -0
- package/dist/chunk/D7R75XPX.jsx +9 -0
- package/dist/chunk/DAGJUXUK.js +16 -0
- package/dist/chunk/{4IDZDNRE.jsx → DAODBQGA.jsx} +4 -18
- package/dist/chunk/{LUMJHQNS.js → DUERQXN3.js} +2 -4
- package/dist/chunk/{A6A626ZB.jsx → EFXNKBZC.jsx} +3 -6
- package/dist/chunk/EJIFXSNU.js +1 -0
- package/dist/chunk/EUEQUXTS.jsx +6 -0
- package/dist/chunk/{ZF7UP5R3.jsx → EW4QZPM6.jsx} +0 -4
- package/dist/chunk/{GF6IMD4V.jsx → EYWNGCHR.jsx} +0 -4
- package/dist/chunk/{W5C6KMYL.js → EZ725GOD.js} +6 -4
- package/dist/chunk/{3MXQ4UTL.js → F463VQLE.js} +0 -1
- package/dist/chunk/FCMJTSIR.js +7 -0
- package/dist/chunk/G5RHOVDI.js +6 -0
- package/dist/chunk/GFN5RE7J.js +1 -0
- package/dist/chunk/{NQLGVMLT.js → GGJEI45S.js} +1 -2
- package/dist/chunk/{WKYHO45J.jsx → GI3SYFNW.jsx} +0 -4
- package/dist/chunk/GJWOK4FU.js +1 -0
- package/dist/chunk/{ANEDGTU4.jsx → GVCWJKNR.jsx} +0 -4
- package/dist/chunk/{6Q4ZZUWZ.jsx → HAOOMBMT.jsx} +0 -4
- package/dist/chunk/HK3FAM5K.jsx +6 -0
- package/dist/chunk/{NU2LGEQO.jsx → HKLQYST4.jsx} +0 -4
- package/dist/chunk/HUVPA3JE.jsx +6 -0
- package/dist/chunk/{LHPNWFI4.js → I5XOOJPJ.js} +0 -1
- package/dist/chunk/I747PTBZ.jsx +6 -0
- package/dist/chunk/{RBZ3I4X2.js → ID4J2OIZ.js} +4 -5
- package/dist/chunk/IIQMMVVN.jsx +6 -0
- package/dist/chunk/{UZHM5FTR.jsx → IKRVVBY7.jsx} +3 -7
- package/dist/chunk/{HRIRTOND.jsx → ISSUMSQA.jsx} +1 -5
- package/dist/chunk/{K4QUQGYV.js → IUYPBOVF.js} +32 -16
- package/dist/chunk/{EODO532W.jsx → IVEPF2TQ.jsx} +0 -4
- package/dist/chunk/{IQBPSALU.jsx → IY36QZYL.jsx} +0 -4
- package/dist/chunk/{HQRZRCZN.jsx → IYM727LQ.jsx} +0 -4
- package/dist/chunk/J2L2RHHK.js +1 -0
- package/dist/chunk/{TTZG6CCV.jsx → J6DKCMJC.jsx} +0 -4
- package/dist/chunk/JCNWK3IN.jsx +7 -0
- package/dist/chunk/JHQYEBNS.js +7 -0
- package/dist/chunk/JLAHBQ3P.jsx +6 -0
- package/dist/chunk/JWEOE6CF.js +1 -0
- package/dist/chunk/{JAO47T42.js → JXHPPOS2.js} +1 -2
- package/dist/chunk/{MSG5CNFB.js → KD2LXDA2.js} +3 -7
- package/dist/chunk/KKVVL7G7.js +1 -0
- package/dist/chunk/KN55GBHY.js +1 -0
- package/dist/chunk/KTJSC5UU.js +1 -0
- package/dist/chunk/{M3YQ2ERY.js → L53LBPYA.js} +0 -1
- package/dist/chunk/{VEMOHNUQ.js → L5FKMGNV.js} +3 -16
- package/dist/chunk/{HX25P762.js → LHCYJWYY.js} +0 -1
- package/dist/chunk/{DR6ZXQ4K.js → LSSKRWAV.js} +0 -1
- package/dist/chunk/LXQBCP7Y.jsx +6 -0
- package/dist/chunk/{VKWKLOAF.js → M2CDVRCB.js} +0 -1
- package/dist/chunk/MBCVM3KL.js +1 -0
- package/dist/chunk/{PELRXKOJ.js → MHQR2SF6.js} +0 -1
- package/dist/chunk/MMBJRJSN.jsx +6 -0
- package/dist/chunk/{GMHTXGKH.jsx → MOHMYXTL.jsx} +1 -5
- package/dist/chunk/{FDNBKLQD.js → N44TIOPL.js} +0 -1
- package/dist/chunk/NKAIWZRA.jsx +6 -0
- package/dist/chunk/NS5ADIQR.js +1 -0
- package/dist/chunk/NY6K5EF2.js +1 -0
- package/dist/chunk/NYBIYPS4.js +6 -0
- package/dist/chunk/O4XIKULN.js +1 -0
- package/dist/chunk/{AIPB7U27.jsx → O6EUZJJL.jsx} +6 -4
- package/dist/chunk/OC7V6IJA.jsx +6 -0
- package/dist/chunk/{IIQ4DVBM.jsx → OD2K6HNA.jsx} +1 -5
- package/dist/chunk/OJQQDBG3.js +1 -0
- package/dist/chunk/OV6AKHJO.jsx +6 -0
- package/dist/chunk/PB2JIZF3.js +1 -0
- package/dist/chunk/PC36Y6WZ.js +1 -0
- package/dist/chunk/PEP5DE6U.jsx +6 -0
- package/dist/chunk/POIATK64.js +6 -0
- package/dist/chunk/{ILFEJ3LJ.jsx → PRKFBTBT.jsx} +1 -5
- package/dist/chunk/Q7QFJLZZ.jsx +6 -0
- package/dist/chunk/{I4UD76MY.js → QBX2NA2L.js} +1 -2
- package/dist/chunk/QFI45UIA.js +1 -0
- package/dist/chunk/QGELD777.js +1 -0
- package/dist/chunk/{CO3X63VR.js → QOO4JSSO.js} +1 -2
- package/dist/chunk/{RC6LTFJF.jsx → R7NPOXQE.jsx} +0 -4
- package/dist/chunk/RA5M6G52.js +1 -0
- package/dist/chunk/{L6VQ5JYK.jsx → RBYCZIS7.jsx} +0 -4
- package/dist/chunk/{QLR5DW7S.js → RPV744ZD.js} +0 -1
- package/dist/chunk/RT7IPDCG.js +1 -0
- package/dist/chunk/RTGL6QDP.jsx +6 -0
- package/dist/chunk/{XAQOX37Z.jsx → RWELD6ZJ.jsx} +4 -8
- package/dist/chunk/{FX3X3KI4.jsx → RXDKYPBZ.jsx} +3 -8
- package/dist/chunk/{R4IX6ZXU.jsx → S6VEVUY2.jsx} +1 -5
- package/dist/chunk/SFRXWD47.js +7 -0
- package/dist/chunk/SMQA4S65.jsx +6 -0
- package/dist/chunk/{32XOEHJA.js → SYYJ3UUQ.js} +1 -2
- package/dist/chunk/T4TXUFN5.js +1 -0
- package/dist/chunk/TBXIEOYM.jsx +6 -0
- package/dist/chunk/TEIGIQOQ.jsx +6 -0
- package/dist/chunk/{JVPZ5H4S.js → TIDQG4MO.js} +0 -1
- package/dist/chunk/TP5QNSCT.jsx +6 -0
- package/dist/chunk/{3IC6WLED.js → UXR5VYMS.js} +1 -2
- package/dist/chunk/{6FEL4AM3.js → V25KLIHC.js} +1 -2
- package/dist/chunk/{FYV3OPJE.jsx → V3Y4REDM.jsx} +1 -5
- package/dist/chunk/{HVQPMEHH.js → V4FW36TC.js} +0 -1
- package/dist/chunk/{UFCT3N6F.js → V4USPWMY.js} +0 -1
- package/dist/chunk/VQPWR4W5.jsx +7 -0
- package/dist/chunk/WGSQXPV3.jsx +6 -0
- package/dist/chunk/WQ543FTG.jsx +6 -0
- package/dist/chunk/{KSBRZHY3.jsx → WSPFLZNA.jsx} +4 -9
- package/dist/chunk/{U4FSZYVF.jsx → WSX5LMM6.jsx} +1 -5
- package/dist/chunk/{E7OGB2A5.js → WT5REZPH.js} +0 -1
- package/dist/chunk/WWN5G5TR.jsx +6 -0
- package/dist/chunk/{RR45WJYH.js → WYZLNFAZ.js} +1 -2
- package/dist/chunk/{A3GLAR2K.js → XSG5H73Q.js} +2 -5
- package/dist/chunk/{7BHNFUPW.jsx → YBSD3QSF.jsx} +0 -4
- package/dist/chunk/YJODW6F4.js +1 -0
- package/dist/chunk/{SA6DA5B7.js → YN2A64B3.js} +0 -1
- package/dist/chunk/YNAVZVCW.jsx +7 -0
- package/dist/chunk/YOEDWE3L.js +1 -0
- package/dist/chunk/{3JHERV5G.jsx → YPDKDDYH.jsx} +0 -4
- package/dist/chunk/{AQICSUXF.js → YSKKQTAZ.js} +0 -1
- package/dist/chunk/{T3ZLRFQW.jsx → Z2IZJGAU.jsx} +1 -5
- package/dist/chunk/Z5CSOMMV.jsx +6 -0
- package/dist/chunk/{EEE5S4S3.jsx → ZC6XBRDD.jsx} +1 -5
- package/dist/chunk/ZMGSTA2V.jsx +6 -0
- package/dist/color-picker.anatomy-CMDtAoEh.d.ts +5 -0
- package/dist/combobox.anatomy-DBsVyPqM.d.ts +5 -0
- package/dist/components/accordion/index.js +2 -1
- package/dist/components/accordion/index.jsx +6 -3
- package/dist/components/anatomy.d.ts +44 -0
- package/dist/components/anatomy.js +44 -0
- package/dist/components/anatomy.jsx +180 -0
- package/dist/components/avatar/index.js +2 -1
- package/dist/components/avatar/index.jsx +4 -2
- package/dist/components/carousel/index.js +2 -1
- package/dist/components/carousel/index.jsx +4 -2
- package/dist/components/checkbox/index.d.ts +3 -4
- package/dist/components/checkbox/index.js +2 -1
- package/dist/components/checkbox/index.jsx +8 -4
- package/dist/components/clipboard/index.js +2 -1
- package/dist/components/clipboard/index.jsx +4 -2
- package/dist/components/collapsible/index.js +2 -1
- package/dist/components/collapsible/index.jsx +4 -2
- package/dist/components/color-picker/index.d.ts +3 -4
- package/dist/components/color-picker/index.js +2 -1
- package/dist/components/color-picker/index.jsx +8 -4
- package/dist/components/combobox/index.d.ts +3 -4
- package/dist/components/combobox/index.js +2 -1
- package/dist/components/combobox/index.jsx +9 -5
- package/dist/components/date-picker/index.d.ts +3 -4
- package/dist/components/date-picker/index.js +2 -1
- package/dist/components/date-picker/index.jsx +4 -2
- package/dist/components/dialog/index.js +2 -1
- package/dist/components/dialog/index.jsx +4 -2
- package/dist/components/editable/index.js +2 -1
- package/dist/components/editable/index.jsx +8 -4
- package/dist/components/field/index.d.ts +3 -4
- package/dist/components/field/index.js +2 -1
- package/dist/components/field/index.jsx +6 -3
- package/dist/components/fieldset/index.d.ts +5 -6
- package/dist/components/fieldset/index.js +2 -1
- package/dist/components/fieldset/index.jsx +4 -2
- package/dist/components/file-upload/index.d.ts +4 -3
- package/dist/components/file-upload/index.js +2 -1
- package/dist/components/file-upload/index.jsx +8 -4
- package/dist/components/floating-panel/index.js +2 -1
- package/dist/components/floating-panel/index.jsx +4 -2
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/index.jsx +1 -1
- package/dist/components/hover-card/index.js +2 -1
- package/dist/components/hover-card/index.jsx +4 -2
- package/dist/components/index.d.ts +20 -13
- package/dist/components/index.js +92 -49
- package/dist/components/index.jsx +352 -302
- package/dist/components/json-tree-view/index.js +1 -1
- package/dist/components/json-tree-view/index.jsx +6 -4
- package/dist/components/listbox/index.d.ts +3 -4
- package/dist/components/listbox/index.js +2 -1
- package/dist/components/listbox/index.jsx +4 -2
- package/dist/components/menu/index.js +2 -1
- package/dist/components/menu/index.jsx +4 -2
- package/dist/components/number-input/index.js +2 -1
- package/dist/components/number-input/index.jsx +8 -4
- package/dist/components/pagination/index.js +2 -1
- package/dist/components/pagination/index.jsx +4 -2
- package/dist/components/password-input/index.js +2 -1
- package/dist/components/password-input/index.jsx +8 -4
- package/dist/components/pin-input/index.js +2 -1
- package/dist/components/pin-input/index.jsx +8 -4
- package/dist/components/popover/index.js +2 -1
- package/dist/components/popover/index.jsx +4 -2
- package/dist/components/progress/index.js +2 -1
- package/dist/components/progress/index.jsx +4 -2
- package/dist/components/qr-code/index.js +2 -1
- package/dist/components/qr-code/index.jsx +4 -2
- package/dist/components/radio-group/index.js +2 -1
- package/dist/components/radio-group/index.jsx +4 -2
- package/dist/components/rating-group/index.js +2 -1
- package/dist/components/rating-group/index.jsx +8 -4
- package/dist/components/scroll-area/index.js +2 -1
- package/dist/components/scroll-area/index.jsx +4 -2
- package/dist/components/segment-group/index.d.ts +3 -4
- package/dist/components/segment-group/index.js +2 -1
- package/dist/components/segment-group/index.jsx +4 -2
- package/dist/components/select/index.js +2 -1
- package/dist/components/select/index.jsx +9 -5
- package/dist/components/signature-pad/index.js +2 -1
- package/dist/components/signature-pad/index.jsx +8 -4
- package/dist/components/slider/index.js +2 -1
- package/dist/components/slider/index.jsx +4 -2
- package/dist/components/splitter/index.js +2 -1
- package/dist/components/splitter/index.jsx +4 -2
- package/dist/components/steps/index.js +2 -1
- package/dist/components/steps/index.jsx +4 -2
- package/dist/components/switch/index.js +2 -1
- package/dist/components/switch/index.jsx +8 -4
- package/dist/components/tabs/index.js +2 -1
- package/dist/components/tabs/index.jsx +4 -2
- package/dist/components/tags-input/index.js +2 -1
- package/dist/components/tags-input/index.jsx +8 -4
- package/dist/components/timer/index.js +2 -1
- package/dist/components/timer/index.jsx +4 -2
- package/dist/components/toast/index.js +2 -1
- package/dist/components/toast/index.jsx +4 -2
- package/dist/components/toggle/index.d.ts +2 -3
- package/dist/components/toggle/index.js +2 -1
- package/dist/components/toggle/index.jsx +4 -2
- package/dist/components/toggle-group/index.js +2 -1
- package/dist/components/toggle-group/index.jsx +4 -2
- package/dist/components/tooltip/index.js +2 -1
- package/dist/components/tooltip/index.jsx +4 -2
- package/dist/components/tour/index.d.ts +3 -4
- package/dist/components/tour/index.js +2 -1
- package/dist/components/tour/index.jsx +4 -2
- package/dist/components/tree-view/index.js +2 -1
- package/dist/components/tree-view/index.jsx +7 -4
- package/dist/date-picker.anatomy-C7QaSOwg.d.ts +5 -0
- package/dist/field.anatomy-BkeW0gbI.d.ts +5 -0
- package/dist/fieldset.anatomy-BHBXaVuM.d.ts +5 -0
- package/dist/index.d.ts +20 -13
- package/dist/index.js +92 -49
- package/dist/index.jsx +352 -302
- package/dist/listbox.anatomy-CuSvGz29.d.ts +5 -0
- package/dist/segment-group.anatomy-D8EFD_kq.d.ts +5 -0
- package/dist/toggle.anatomy-kQyY2NzP.d.ts +5 -0
- package/dist/tour.anatomy-dhFVCgSh.d.ts +5 -0
- package/package.json +68 -69
- package/dist/chunk/6MGH6HEP.jsx +0 -266
- package/dist/chunk/RUJWWVJQ.js +0 -194
- package/dist/components/time-picker/index.d.ts +0 -114
- package/dist/components/time-picker/index.js +0 -1
- package/dist/components/time-picker/index.jsx +0 -51
- /package/dist/chunk/{W6MHACH4.js → 5WVPNAWS.js} +0 -0
- /package/dist/chunk/{5XTAFT5P.jsx → HRWYG4MB.jsx} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
|
+
|
|
3
|
+
declare const listboxAnatomy: _zag_js_anatomy.AnatomyInstance<"label" | "input" | "root" | "item" | "content" | "valueText" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
|
|
4
|
+
|
|
5
|
+
export { listboxAnatomy as l };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
|
+
|
|
3
|
+
declare const tourAnatomy: _zag_js_anatomy.AnatomyInstance<"title" | "content" | "control" | "positioner" | "backdrop" | "closeTrigger" | "description" | "arrow" | "actionTrigger" | "progressText" | "arrowTip" | "spotlight">;
|
|
4
|
+
|
|
5
|
+
export { tourAnatomy as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.24.1",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -109,75 +109,74 @@
|
|
|
109
109
|
},
|
|
110
110
|
"sideEffects": false,
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@internationalized/date": "3.
|
|
113
|
-
"@zag-js/accordion": "1.
|
|
114
|
-
"@zag-js/anatomy": "1.
|
|
115
|
-
"@zag-js/angle-slider": "1.
|
|
116
|
-
"@zag-js/async-list": "1.
|
|
117
|
-
"@zag-js/auto-resize": "1.
|
|
118
|
-
"@zag-js/avatar": "1.
|
|
119
|
-
"@zag-js/carousel": "1.
|
|
120
|
-
"@zag-js/checkbox": "1.
|
|
121
|
-
"@zag-js/clipboard": "1.
|
|
122
|
-
"@zag-js/collapsible": "1.
|
|
123
|
-
"@zag-js/collection": "1.
|
|
124
|
-
"@zag-js/color-picker": "1.
|
|
125
|
-
"@zag-js/color-utils": "1.
|
|
126
|
-
"@zag-js/combobox": "1.
|
|
127
|
-
"@zag-js/core": "1.
|
|
128
|
-
"@zag-js/date-picker": "1.
|
|
129
|
-
"@zag-js/date-utils": "1.
|
|
130
|
-
"@zag-js/dialog": "1.
|
|
131
|
-
"@zag-js/dom-query": "1.
|
|
132
|
-
"@zag-js/editable": "1.
|
|
133
|
-
"@zag-js/file-upload": "1.
|
|
134
|
-
"@zag-js/file-utils": "1.
|
|
135
|
-
"@zag-js/floating-panel": "1.
|
|
136
|
-
"@zag-js/focus-trap": "1.
|
|
137
|
-
"@zag-js/highlight-word": "1.
|
|
138
|
-
"@zag-js/hover-card": "1.
|
|
139
|
-
"@zag-js/i18n-utils": "1.
|
|
140
|
-
"@zag-js/json-tree-utils": "1.
|
|
141
|
-
"@zag-js/listbox": "1.
|
|
142
|
-
"@zag-js/menu": "1.
|
|
143
|
-
"@zag-js/number-input": "1.
|
|
144
|
-
"@zag-js/pagination": "1.
|
|
145
|
-
"@zag-js/password-input": "1.
|
|
146
|
-
"@zag-js/pin-input": "1.
|
|
147
|
-
"@zag-js/popover": "1.
|
|
148
|
-
"@zag-js/presence": "1.
|
|
149
|
-
"@zag-js/progress": "1.
|
|
150
|
-
"@zag-js/qr-code": "1.
|
|
151
|
-
"@zag-js/radio-group": "1.
|
|
152
|
-
"@zag-js/rating-group": "1.
|
|
153
|
-
"@zag-js/scroll-area": "1.
|
|
154
|
-
"@zag-js/select": "1.
|
|
155
|
-
"@zag-js/signature-pad": "1.
|
|
156
|
-
"@zag-js/slider": "1.
|
|
157
|
-
"@zag-js/solid": "1.
|
|
158
|
-
"@zag-js/splitter": "1.
|
|
159
|
-
"@zag-js/steps": "1.
|
|
160
|
-
"@zag-js/switch": "1.
|
|
161
|
-
"@zag-js/tabs": "1.
|
|
162
|
-
"@zag-js/tags-input": "1.
|
|
163
|
-
"@zag-js/
|
|
164
|
-
"@zag-js/
|
|
165
|
-
"@zag-js/
|
|
166
|
-
"@zag-js/toggle": "1.
|
|
167
|
-
"@zag-js/
|
|
168
|
-
"@zag-js/
|
|
169
|
-
"@zag-js/
|
|
170
|
-
"@zag-js/
|
|
171
|
-
"@zag-js/
|
|
172
|
-
"@zag-js/utils": "1.22.1"
|
|
112
|
+
"@internationalized/date": "3.9.0",
|
|
113
|
+
"@zag-js/accordion": "1.24.1",
|
|
114
|
+
"@zag-js/anatomy": "1.24.1",
|
|
115
|
+
"@zag-js/angle-slider": "1.24.1",
|
|
116
|
+
"@zag-js/async-list": "1.24.1",
|
|
117
|
+
"@zag-js/auto-resize": "1.24.1",
|
|
118
|
+
"@zag-js/avatar": "1.24.1",
|
|
119
|
+
"@zag-js/carousel": "1.24.1",
|
|
120
|
+
"@zag-js/checkbox": "1.24.1",
|
|
121
|
+
"@zag-js/clipboard": "1.24.1",
|
|
122
|
+
"@zag-js/collapsible": "1.24.1",
|
|
123
|
+
"@zag-js/collection": "1.24.1",
|
|
124
|
+
"@zag-js/color-picker": "1.24.1",
|
|
125
|
+
"@zag-js/color-utils": "1.24.1",
|
|
126
|
+
"@zag-js/combobox": "1.24.1",
|
|
127
|
+
"@zag-js/core": "1.24.1",
|
|
128
|
+
"@zag-js/date-picker": "1.24.1",
|
|
129
|
+
"@zag-js/date-utils": "1.24.1",
|
|
130
|
+
"@zag-js/dialog": "1.24.1",
|
|
131
|
+
"@zag-js/dom-query": "1.24.1",
|
|
132
|
+
"@zag-js/editable": "1.24.1",
|
|
133
|
+
"@zag-js/file-upload": "1.24.1",
|
|
134
|
+
"@zag-js/file-utils": "1.24.1",
|
|
135
|
+
"@zag-js/floating-panel": "1.24.1",
|
|
136
|
+
"@zag-js/focus-trap": "1.24.1",
|
|
137
|
+
"@zag-js/highlight-word": "1.24.1",
|
|
138
|
+
"@zag-js/hover-card": "1.24.1",
|
|
139
|
+
"@zag-js/i18n-utils": "1.24.1",
|
|
140
|
+
"@zag-js/json-tree-utils": "1.24.1",
|
|
141
|
+
"@zag-js/listbox": "1.24.1",
|
|
142
|
+
"@zag-js/menu": "1.24.1",
|
|
143
|
+
"@zag-js/number-input": "1.24.1",
|
|
144
|
+
"@zag-js/pagination": "1.24.1",
|
|
145
|
+
"@zag-js/password-input": "1.24.1",
|
|
146
|
+
"@zag-js/pin-input": "1.24.1",
|
|
147
|
+
"@zag-js/popover": "1.24.1",
|
|
148
|
+
"@zag-js/presence": "1.24.1",
|
|
149
|
+
"@zag-js/progress": "1.24.1",
|
|
150
|
+
"@zag-js/qr-code": "1.24.1",
|
|
151
|
+
"@zag-js/radio-group": "1.24.1",
|
|
152
|
+
"@zag-js/rating-group": "1.24.1",
|
|
153
|
+
"@zag-js/scroll-area": "1.24.1",
|
|
154
|
+
"@zag-js/select": "1.24.1",
|
|
155
|
+
"@zag-js/signature-pad": "1.24.1",
|
|
156
|
+
"@zag-js/slider": "1.24.1",
|
|
157
|
+
"@zag-js/solid": "1.24.1",
|
|
158
|
+
"@zag-js/splitter": "1.24.1",
|
|
159
|
+
"@zag-js/steps": "1.24.1",
|
|
160
|
+
"@zag-js/switch": "1.24.1",
|
|
161
|
+
"@zag-js/tabs": "1.24.1",
|
|
162
|
+
"@zag-js/tags-input": "1.24.1",
|
|
163
|
+
"@zag-js/timer": "1.24.1",
|
|
164
|
+
"@zag-js/toast": "1.24.1",
|
|
165
|
+
"@zag-js/toggle": "1.24.1",
|
|
166
|
+
"@zag-js/toggle-group": "1.24.1",
|
|
167
|
+
"@zag-js/tooltip": "1.24.1",
|
|
168
|
+
"@zag-js/tour": "1.24.1",
|
|
169
|
+
"@zag-js/tree-view": "1.24.1",
|
|
170
|
+
"@zag-js/types": "1.24.1",
|
|
171
|
+
"@zag-js/utils": "1.24.1"
|
|
173
172
|
},
|
|
174
173
|
"devDependencies": {
|
|
175
|
-
"@biomejs/biome": "2.2.
|
|
174
|
+
"@biomejs/biome": "2.2.4",
|
|
176
175
|
"@modular-forms/solid": "0.25.1",
|
|
177
176
|
"@solidjs/testing-library": "0.8.10",
|
|
178
|
-
"@storybook/addon-a11y": "9.1.
|
|
179
|
-
"@storybook/addon-links": "9.1.
|
|
180
|
-
"@storybook/addon-vitest": "9.1.
|
|
177
|
+
"@storybook/addon-a11y": "9.1.5",
|
|
178
|
+
"@storybook/addon-links": "9.1.5",
|
|
179
|
+
"@storybook/addon-vitest": "9.1.5",
|
|
181
180
|
"@testing-library/dom": "10.4.1",
|
|
182
181
|
"@testing-library/jest-dom": "6.8.0",
|
|
183
182
|
"@testing-library/user-event": "14.6.1",
|
|
@@ -187,14 +186,14 @@
|
|
|
187
186
|
"esbuild-plugin-solid": "0.6.0",
|
|
188
187
|
"globby": "14.1.0",
|
|
189
188
|
"jsdom": "26.1.0",
|
|
190
|
-
"lucide-solid": "0.
|
|
189
|
+
"lucide-solid": "0.544.0",
|
|
191
190
|
"resize-observer-polyfill": "1.5.1",
|
|
192
191
|
"solid-js": "1.9.9",
|
|
193
|
-
"storybook": "9.1.
|
|
192
|
+
"storybook": "9.1.5",
|
|
194
193
|
"storybook-solidjs-vite": "9.0.3",
|
|
195
194
|
"tsup": "8.5.0",
|
|
196
195
|
"typescript": "5.9.2",
|
|
197
|
-
"vite": "7.1.
|
|
196
|
+
"vite": "7.1.5",
|
|
198
197
|
"vite-plugin-solid": "2.11.8",
|
|
199
198
|
"vitest": "3.2.4",
|
|
200
199
|
"@vitest/coverage-v8": "3.2.4",
|
package/dist/chunk/6MGH6HEP.jsx
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PresenceProvider,
|
|
3
|
-
splitPresenceProps,
|
|
4
|
-
usePresence,
|
|
5
|
-
usePresenceContext
|
|
6
|
-
} from "./4LUY46IM.jsx";
|
|
7
|
-
import {
|
|
8
|
-
composeRefs
|
|
9
|
-
} from "./PT2CJE3O.jsx";
|
|
10
|
-
import {
|
|
11
|
-
createSplitProps
|
|
12
|
-
} from "./6WEDGJKQ.jsx";
|
|
13
|
-
import {
|
|
14
|
-
ark
|
|
15
|
-
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useEnvironmentContext
|
|
18
|
-
} from "./6J5H27AQ.jsx";
|
|
19
|
-
import {
|
|
20
|
-
runIfFn
|
|
21
|
-
} from "./KGOB2IMX.jsx";
|
|
22
|
-
import {
|
|
23
|
-
useLocaleContext
|
|
24
|
-
} from "./XIYHIOP3.jsx";
|
|
25
|
-
import {
|
|
26
|
-
createContext
|
|
27
|
-
} from "./TVCIHLER.jsx";
|
|
28
|
-
import {
|
|
29
|
-
__export
|
|
30
|
-
} from "./7IUG3E2V.jsx";
|
|
31
|
-
|
|
32
|
-
// src/components/time-picker/index.tsx
|
|
33
|
-
import { parseTime } from "@internationalized/date";
|
|
34
|
-
|
|
35
|
-
// src/components/time-picker/time-picker-cell.tsx
|
|
36
|
-
import { mergeProps } from "@zag-js/solid";
|
|
37
|
-
|
|
38
|
-
// src/components/time-picker/use-time-picker-column-props-context.ts
|
|
39
|
-
var [TimePickerColumnPropsProvider, useTimePickerColumnPropsContext] = createContext({
|
|
40
|
-
hookName: "useTimePickerColumnPropsContext",
|
|
41
|
-
providerName: "<TimePickerColumnPropsProvider />"
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
// src/components/time-picker/use-time-picker-context.ts
|
|
45
|
-
var [TimePickerProvider, useTimePickerContext] = createContext({
|
|
46
|
-
hookName: "useTimePickerContext",
|
|
47
|
-
providerName: "<TimePickerProvider />"
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
// src/components/time-picker/time-picker-cell.tsx
|
|
51
|
-
var TimePickerCell = (props) => {
|
|
52
|
-
const [cellProps, localProps] = createSplitProps()(props, ["value"]);
|
|
53
|
-
const timePicker2 = useTimePickerContext();
|
|
54
|
-
const columnProps = useTimePickerColumnPropsContext();
|
|
55
|
-
const unitToPropsMap = {
|
|
56
|
-
hour: () => timePicker2().getHourCellProps(cellProps),
|
|
57
|
-
minute: () => timePicker2().getMinuteCellProps(cellProps),
|
|
58
|
-
second: () => timePicker2().getSecondCellProps(cellProps),
|
|
59
|
-
period: () => timePicker2().getPeriodCellProps(cellProps)
|
|
60
|
-
};
|
|
61
|
-
const mergedProps = mergeProps(() => unitToPropsMap[columnProps.unit](), localProps);
|
|
62
|
-
return <ark.button {...mergedProps} />;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// src/components/time-picker/time-picker-clear-trigger.tsx
|
|
66
|
-
import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
67
|
-
var TimePickerClearTrigger = (props) => {
|
|
68
|
-
const timePicker2 = useTimePickerContext();
|
|
69
|
-
const mergedProps = mergeProps2(() => timePicker2().getClearTriggerProps(), props);
|
|
70
|
-
return <ark.button {...mergedProps} />;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// src/components/time-picker/time-picker-column.tsx
|
|
74
|
-
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
75
|
-
var TimePickerColumn = (props) => {
|
|
76
|
-
const [columnProps, localProps] = createSplitProps()(props, ["unit"]);
|
|
77
|
-
const timePicker2 = useTimePickerContext();
|
|
78
|
-
const mergedProps = mergeProps3(() => timePicker2().getColumnProps(columnProps), localProps);
|
|
79
|
-
return <TimePickerColumnPropsProvider value={columnProps}>
|
|
80
|
-
<ark.div {...mergedProps} />
|
|
81
|
-
</TimePickerColumnPropsProvider>;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// src/components/time-picker/time-picker-content.tsx
|
|
85
|
-
import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
86
|
-
import { Show } from "solid-js";
|
|
87
|
-
var TimePickerContent = (props) => {
|
|
88
|
-
const timePicker2 = useTimePickerContext();
|
|
89
|
-
const presenceApi = usePresenceContext();
|
|
90
|
-
const mergedProps = mergeProps4(
|
|
91
|
-
() => timePicker2().getContentProps(),
|
|
92
|
-
() => presenceApi().presenceProps,
|
|
93
|
-
props
|
|
94
|
-
);
|
|
95
|
-
return <Show when={!presenceApi().unmounted}>
|
|
96
|
-
<ark.div {...mergedProps} ref={composeRefs(presenceApi().ref, props.ref)} />
|
|
97
|
-
</Show>;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/components/time-picker/time-picker-context.tsx
|
|
101
|
-
var TimePickerContext = (props) => props.children(useTimePickerContext());
|
|
102
|
-
|
|
103
|
-
// src/components/time-picker/time-picker-control.tsx
|
|
104
|
-
import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
105
|
-
var TimePickerControl = (props) => {
|
|
106
|
-
const timePicker2 = useTimePickerContext();
|
|
107
|
-
const mergedProps = mergeProps5(() => timePicker2().getControlProps(), props);
|
|
108
|
-
return <ark.div {...mergedProps} />;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
// src/components/time-picker/time-picker-input.tsx
|
|
112
|
-
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
113
|
-
var TimePickerInput = (props) => {
|
|
114
|
-
const timePicker2 = useTimePickerContext();
|
|
115
|
-
const mergedProps = mergeProps6(() => timePicker2().getInputProps(), props);
|
|
116
|
-
return <ark.input {...mergedProps} />;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
// src/components/time-picker/time-picker-label.tsx
|
|
120
|
-
import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
121
|
-
var TimePickerLabel = (props) => {
|
|
122
|
-
const timePicker2 = useTimePickerContext();
|
|
123
|
-
const mergedProps = mergeProps7(() => timePicker2().getLabelProps(), props);
|
|
124
|
-
return <ark.label {...mergedProps} />;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
// src/components/time-picker/time-picker-positioner.tsx
|
|
128
|
-
import { mergeProps as mergeProps8 } from "@zag-js/solid";
|
|
129
|
-
import { Show as Show2 } from "solid-js";
|
|
130
|
-
var TimePickerPositioner = (props) => {
|
|
131
|
-
const timePicker2 = useTimePickerContext();
|
|
132
|
-
const mergedProps = mergeProps8(() => timePicker2().getPositionerProps(), props);
|
|
133
|
-
const presenceApi = usePresenceContext();
|
|
134
|
-
return <Show2 when={!presenceApi().unmounted}>
|
|
135
|
-
<ark.div {...mergedProps} />
|
|
136
|
-
</Show2>;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
// src/components/time-picker/time-picker-root.tsx
|
|
140
|
-
import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
141
|
-
|
|
142
|
-
// src/components/time-picker/use-time-picker.ts
|
|
143
|
-
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
144
|
-
import * as timePicker from "@zag-js/time-picker";
|
|
145
|
-
import { createMemo, createUniqueId } from "solid-js";
|
|
146
|
-
var useTimePicker = (props) => {
|
|
147
|
-
const id = createUniqueId();
|
|
148
|
-
const locale = useLocaleContext();
|
|
149
|
-
const environment = useEnvironmentContext();
|
|
150
|
-
const machineProps = createMemo(() => ({
|
|
151
|
-
id,
|
|
152
|
-
dir: locale().dir,
|
|
153
|
-
getRootNode: environment().getRootNode,
|
|
154
|
-
locale: locale().locale,
|
|
155
|
-
...runIfFn(props)
|
|
156
|
-
}));
|
|
157
|
-
const service = useMachine(timePicker.machine, machineProps);
|
|
158
|
-
return createMemo(() => timePicker.connect(service, normalizeProps));
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
// src/components/time-picker/time-picker-root.tsx
|
|
162
|
-
var TimePickerRoot = (props) => {
|
|
163
|
-
const [presenceProps, timePickerProps] = splitPresenceProps(props);
|
|
164
|
-
const [useTimePickerProps, localProps] = createSplitProps()(timePickerProps, [
|
|
165
|
-
"allowSeconds",
|
|
166
|
-
"defaultOpen",
|
|
167
|
-
"defaultValue",
|
|
168
|
-
"disableLayer",
|
|
169
|
-
"disabled",
|
|
170
|
-
"id",
|
|
171
|
-
"ids",
|
|
172
|
-
"locale",
|
|
173
|
-
"max",
|
|
174
|
-
"min",
|
|
175
|
-
"name",
|
|
176
|
-
"onFocusChange",
|
|
177
|
-
"onOpenChange",
|
|
178
|
-
"onValueChange",
|
|
179
|
-
"open",
|
|
180
|
-
"placeholder",
|
|
181
|
-
"positioning",
|
|
182
|
-
"readOnly",
|
|
183
|
-
"steps",
|
|
184
|
-
"value"
|
|
185
|
-
]);
|
|
186
|
-
const timePicker2 = useTimePicker(useTimePickerProps);
|
|
187
|
-
const apiPresence = usePresence(mergeProps9(presenceProps, () => ({ present: timePicker2().open })));
|
|
188
|
-
const mergedProps = mergeProps9(() => timePicker2().getRootProps(), localProps);
|
|
189
|
-
return <TimePickerProvider value={timePicker2}>
|
|
190
|
-
<PresenceProvider value={apiPresence}>
|
|
191
|
-
<ark.div {...mergedProps} />
|
|
192
|
-
</PresenceProvider>
|
|
193
|
-
</TimePickerProvider>;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
// src/components/time-picker/time-picker-root-provider.tsx
|
|
197
|
-
import { mergeProps as mergeProps10 } from "@zag-js/solid";
|
|
198
|
-
var TimePickerRootProvider = (props) => {
|
|
199
|
-
const [presenceProps, timePickerProps] = splitPresenceProps(props);
|
|
200
|
-
const [{ value: timePicker2 }, localProps] = createSplitProps()(timePickerProps, ["value"]);
|
|
201
|
-
const apiPresence = usePresence(mergeProps10(presenceProps, () => ({ present: timePicker2().open })));
|
|
202
|
-
const mergedProps = mergeProps10(() => timePicker2().getRootProps(), localProps);
|
|
203
|
-
return <TimePickerProvider value={timePicker2}>
|
|
204
|
-
<PresenceProvider value={apiPresence}>
|
|
205
|
-
<ark.div {...mergedProps} />
|
|
206
|
-
</PresenceProvider>
|
|
207
|
-
</TimePickerProvider>;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
// src/components/time-picker/time-picker-spacer.tsx
|
|
211
|
-
import { mergeProps as mergeProps11 } from "@zag-js/solid";
|
|
212
|
-
var TimePickerSpacer = (props) => {
|
|
213
|
-
const timePicker2 = useTimePickerContext();
|
|
214
|
-
const mergedProps = mergeProps11(() => timePicker2().getSpacerProps(), props);
|
|
215
|
-
return <ark.div {...mergedProps} />;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
// src/components/time-picker/time-picker-trigger.tsx
|
|
219
|
-
import { mergeProps as mergeProps12 } from "@zag-js/solid";
|
|
220
|
-
var TimePickerTrigger = (props) => {
|
|
221
|
-
const timePicker2 = useTimePickerContext();
|
|
222
|
-
const mergedProps = mergeProps12(() => timePicker2().getTriggerProps(), props);
|
|
223
|
-
return <ark.button {...mergedProps} />;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
// src/components/time-picker/time-picker.anatomy.ts
|
|
227
|
-
import { anatomy } from "@zag-js/time-picker";
|
|
228
|
-
|
|
229
|
-
// src/components/time-picker/time-picker.ts
|
|
230
|
-
var time_picker_exports = {};
|
|
231
|
-
__export(time_picker_exports, {
|
|
232
|
-
Cell: () => TimePickerCell,
|
|
233
|
-
ClearTrigger: () => TimePickerClearTrigger,
|
|
234
|
-
Column: () => TimePickerColumn,
|
|
235
|
-
Content: () => TimePickerContent,
|
|
236
|
-
Context: () => TimePickerContext,
|
|
237
|
-
Control: () => TimePickerControl,
|
|
238
|
-
Input: () => TimePickerInput,
|
|
239
|
-
Label: () => TimePickerLabel,
|
|
240
|
-
Positioner: () => TimePickerPositioner,
|
|
241
|
-
Root: () => TimePickerRoot,
|
|
242
|
-
RootProvider: () => TimePickerRootProvider,
|
|
243
|
-
Spacer: () => TimePickerSpacer,
|
|
244
|
-
Trigger: () => TimePickerTrigger
|
|
245
|
-
});
|
|
246
|
-
|
|
247
|
-
export {
|
|
248
|
-
useTimePickerContext,
|
|
249
|
-
TimePickerCell,
|
|
250
|
-
TimePickerClearTrigger,
|
|
251
|
-
TimePickerColumn,
|
|
252
|
-
TimePickerContent,
|
|
253
|
-
TimePickerContext,
|
|
254
|
-
TimePickerControl,
|
|
255
|
-
TimePickerInput,
|
|
256
|
-
TimePickerLabel,
|
|
257
|
-
TimePickerPositioner,
|
|
258
|
-
useTimePicker,
|
|
259
|
-
TimePickerRoot,
|
|
260
|
-
TimePickerRootProvider,
|
|
261
|
-
TimePickerSpacer,
|
|
262
|
-
TimePickerTrigger,
|
|
263
|
-
anatomy,
|
|
264
|
-
time_picker_exports,
|
|
265
|
-
parseTime
|
|
266
|
-
};
|
package/dist/chunk/RUJWWVJQ.js
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './SIT3D7TL.js';
|
|
2
|
-
import { composeRefs } from './ROP6QZQ7.js';
|
|
3
|
-
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
|
-
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './YO2MCGXO.js';
|
|
6
|
-
import { useLocaleContext } from './JOLWKIPW.js';
|
|
7
|
-
import { createContext } from './TROPIN4C.js';
|
|
8
|
-
import { runIfFn } from './DT73WLR4.js';
|
|
9
|
-
import { __export } from './ESLJRKWD.js';
|
|
10
|
-
export { parseTime } from '@internationalized/date';
|
|
11
|
-
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
12
|
-
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
13
|
-
import { Show, createUniqueId, createMemo } from 'solid-js';
|
|
14
|
-
import * as timePicker from '@zag-js/time-picker';
|
|
15
|
-
export { anatomy } from '@zag-js/time-picker';
|
|
16
|
-
|
|
17
|
-
// src/components/time-picker/use-time-picker-column-props-context.ts
|
|
18
|
-
var [TimePickerColumnPropsProvider, useTimePickerColumnPropsContext] = createContext({
|
|
19
|
-
hookName: "useTimePickerColumnPropsContext",
|
|
20
|
-
providerName: "<TimePickerColumnPropsProvider />"
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
// src/components/time-picker/use-time-picker-context.ts
|
|
24
|
-
var [TimePickerProvider, useTimePickerContext] = createContext({
|
|
25
|
-
hookName: "useTimePickerContext",
|
|
26
|
-
providerName: "<TimePickerProvider />"
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
// src/components/time-picker/time-picker-cell.tsx
|
|
30
|
-
var TimePickerCell = (props) => {
|
|
31
|
-
const [cellProps, localProps] = createSplitProps()(props, ["value"]);
|
|
32
|
-
const timePicker2 = useTimePickerContext();
|
|
33
|
-
const columnProps = useTimePickerColumnPropsContext();
|
|
34
|
-
const unitToPropsMap = {
|
|
35
|
-
hour: () => timePicker2().getHourCellProps(cellProps),
|
|
36
|
-
minute: () => timePicker2().getMinuteCellProps(cellProps),
|
|
37
|
-
second: () => timePicker2().getSecondCellProps(cellProps),
|
|
38
|
-
period: () => timePicker2().getPeriodCellProps(cellProps)
|
|
39
|
-
};
|
|
40
|
-
const mergedProps = mergeProps(() => unitToPropsMap[columnProps.unit](), localProps);
|
|
41
|
-
return createComponent(ark.button, mergedProps);
|
|
42
|
-
};
|
|
43
|
-
var TimePickerClearTrigger = (props) => {
|
|
44
|
-
const timePicker2 = useTimePickerContext();
|
|
45
|
-
const mergedProps = mergeProps(() => timePicker2().getClearTriggerProps(), props);
|
|
46
|
-
return createComponent(ark.button, mergedProps);
|
|
47
|
-
};
|
|
48
|
-
var TimePickerColumn = (props) => {
|
|
49
|
-
const [columnProps, localProps] = createSplitProps()(props, ["unit"]);
|
|
50
|
-
const timePicker2 = useTimePickerContext();
|
|
51
|
-
const mergedProps = mergeProps(() => timePicker2().getColumnProps(columnProps), localProps);
|
|
52
|
-
return createComponent(TimePickerColumnPropsProvider, {
|
|
53
|
-
value: columnProps,
|
|
54
|
-
get children() {
|
|
55
|
-
return createComponent(ark.div, mergedProps);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
var TimePickerContent = (props) => {
|
|
60
|
-
const timePicker2 = useTimePickerContext();
|
|
61
|
-
const presenceApi = usePresenceContext();
|
|
62
|
-
const mergedProps = mergeProps(() => timePicker2().getContentProps(), () => presenceApi().presenceProps, props);
|
|
63
|
-
return createComponent(Show, {
|
|
64
|
-
get when() {
|
|
65
|
-
return !presenceApi().unmounted;
|
|
66
|
-
},
|
|
67
|
-
get children() {
|
|
68
|
-
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
69
|
-
ref(r$) {
|
|
70
|
-
var _ref$ = composeRefs(presenceApi().ref, props.ref);
|
|
71
|
-
typeof _ref$ === "function" && _ref$(r$);
|
|
72
|
-
}
|
|
73
|
-
}));
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
// src/components/time-picker/time-picker-context.tsx
|
|
79
|
-
var TimePickerContext = (props) => props.children(useTimePickerContext());
|
|
80
|
-
var TimePickerControl = (props) => {
|
|
81
|
-
const timePicker2 = useTimePickerContext();
|
|
82
|
-
const mergedProps = mergeProps(() => timePicker2().getControlProps(), props);
|
|
83
|
-
return createComponent(ark.div, mergedProps);
|
|
84
|
-
};
|
|
85
|
-
var TimePickerInput = (props) => {
|
|
86
|
-
const timePicker2 = useTimePickerContext();
|
|
87
|
-
const mergedProps = mergeProps(() => timePicker2().getInputProps(), props);
|
|
88
|
-
return createComponent(ark.input, mergedProps);
|
|
89
|
-
};
|
|
90
|
-
var TimePickerLabel = (props) => {
|
|
91
|
-
const timePicker2 = useTimePickerContext();
|
|
92
|
-
const mergedProps = mergeProps(() => timePicker2().getLabelProps(), props);
|
|
93
|
-
return createComponent(ark.label, mergedProps);
|
|
94
|
-
};
|
|
95
|
-
var TimePickerPositioner = (props) => {
|
|
96
|
-
const timePicker2 = useTimePickerContext();
|
|
97
|
-
const mergedProps = mergeProps(() => timePicker2().getPositionerProps(), props);
|
|
98
|
-
const presenceApi = usePresenceContext();
|
|
99
|
-
return createComponent(Show, {
|
|
100
|
-
get when() {
|
|
101
|
-
return !presenceApi().unmounted;
|
|
102
|
-
},
|
|
103
|
-
get children() {
|
|
104
|
-
return createComponent(ark.div, mergedProps);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
var useTimePicker = (props) => {
|
|
109
|
-
const id = createUniqueId();
|
|
110
|
-
const locale = useLocaleContext();
|
|
111
|
-
const environment = useEnvironmentContext();
|
|
112
|
-
const machineProps = createMemo(() => ({
|
|
113
|
-
id,
|
|
114
|
-
dir: locale().dir,
|
|
115
|
-
getRootNode: environment().getRootNode,
|
|
116
|
-
locale: locale().locale,
|
|
117
|
-
...runIfFn(props)
|
|
118
|
-
}));
|
|
119
|
-
const service = useMachine(timePicker.machine, machineProps);
|
|
120
|
-
return createMemo(() => timePicker.connect(service, normalizeProps));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
// src/components/time-picker/time-picker-root.tsx
|
|
124
|
-
var TimePickerRoot = (props) => {
|
|
125
|
-
const [presenceProps, timePickerProps] = splitPresenceProps(props);
|
|
126
|
-
const [useTimePickerProps, localProps] = createSplitProps()(timePickerProps, ["allowSeconds", "defaultOpen", "defaultValue", "disableLayer", "disabled", "id", "ids", "locale", "max", "min", "name", "onFocusChange", "onOpenChange", "onValueChange", "open", "placeholder", "positioning", "readOnly", "steps", "value"]);
|
|
127
|
-
const timePicker2 = useTimePicker(useTimePickerProps);
|
|
128
|
-
const apiPresence = usePresence(mergeProps(presenceProps, () => ({
|
|
129
|
-
present: timePicker2().open
|
|
130
|
-
})));
|
|
131
|
-
const mergedProps = mergeProps(() => timePicker2().getRootProps(), localProps);
|
|
132
|
-
return createComponent(TimePickerProvider, {
|
|
133
|
-
value: timePicker2,
|
|
134
|
-
get children() {
|
|
135
|
-
return createComponent(PresenceProvider, {
|
|
136
|
-
value: apiPresence,
|
|
137
|
-
get children() {
|
|
138
|
-
return createComponent(ark.div, mergedProps);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
var TimePickerRootProvider = (props) => {
|
|
145
|
-
const [presenceProps, timePickerProps] = splitPresenceProps(props);
|
|
146
|
-
const [{
|
|
147
|
-
value: timePicker2
|
|
148
|
-
}, localProps] = createSplitProps()(timePickerProps, ["value"]);
|
|
149
|
-
const apiPresence = usePresence(mergeProps(presenceProps, () => ({
|
|
150
|
-
present: timePicker2().open
|
|
151
|
-
})));
|
|
152
|
-
const mergedProps = mergeProps(() => timePicker2().getRootProps(), localProps);
|
|
153
|
-
return createComponent(TimePickerProvider, {
|
|
154
|
-
value: timePicker2,
|
|
155
|
-
get children() {
|
|
156
|
-
return createComponent(PresenceProvider, {
|
|
157
|
-
value: apiPresence,
|
|
158
|
-
get children() {
|
|
159
|
-
return createComponent(ark.div, mergedProps);
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
|
-
var TimePickerSpacer = (props) => {
|
|
166
|
-
const timePicker2 = useTimePickerContext();
|
|
167
|
-
const mergedProps = mergeProps(() => timePicker2().getSpacerProps(), props);
|
|
168
|
-
return createComponent(ark.div, mergedProps);
|
|
169
|
-
};
|
|
170
|
-
var TimePickerTrigger = (props) => {
|
|
171
|
-
const timePicker2 = useTimePickerContext();
|
|
172
|
-
const mergedProps = mergeProps(() => timePicker2().getTriggerProps(), props);
|
|
173
|
-
return createComponent(ark.button, mergedProps);
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
// src/components/time-picker/time-picker.ts
|
|
177
|
-
var time_picker_exports = {};
|
|
178
|
-
__export(time_picker_exports, {
|
|
179
|
-
Cell: () => TimePickerCell,
|
|
180
|
-
ClearTrigger: () => TimePickerClearTrigger,
|
|
181
|
-
Column: () => TimePickerColumn,
|
|
182
|
-
Content: () => TimePickerContent,
|
|
183
|
-
Context: () => TimePickerContext,
|
|
184
|
-
Control: () => TimePickerControl,
|
|
185
|
-
Input: () => TimePickerInput,
|
|
186
|
-
Label: () => TimePickerLabel,
|
|
187
|
-
Positioner: () => TimePickerPositioner,
|
|
188
|
-
Root: () => TimePickerRoot,
|
|
189
|
-
RootProvider: () => TimePickerRootProvider,
|
|
190
|
-
Spacer: () => TimePickerSpacer,
|
|
191
|
-
Trigger: () => TimePickerTrigger
|
|
192
|
-
});
|
|
193
|
-
|
|
194
|
-
export { TimePickerCell, TimePickerClearTrigger, TimePickerColumn, TimePickerContent, TimePickerContext, TimePickerControl, TimePickerInput, TimePickerLabel, TimePickerPositioner, TimePickerRoot, TimePickerRootProvider, TimePickerSpacer, TimePickerTrigger, time_picker_exports, useTimePicker, useTimePickerContext };
|