@ark-ui/solid 5.30.0 → 5.32.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/dist/{checkbox.anatomy-CuzDSmDj.d.ts → checkbox.anatomy-YlC7nNXs.d.ts} +1 -1
- package/dist/chunk/{G2THT6E6.js → 25QG5G6C.js} +22 -17
- package/dist/chunk/{Z5ZRFFPU.js → 37BRFTCN.js} +2 -2
- package/dist/chunk/{TWZUCWKG.js → 3EUGCOMV.js} +3 -3
- package/dist/chunk/{5QLLQM7E.js → 3P5T77QU.js} +6 -5
- package/dist/chunk/{G7BHQPOC.js → 3WVUTGI5.js} +1 -1
- package/dist/chunk/{VDRVAOKQ.js → 5ATP7B75.js} +4 -4
- package/dist/chunk/5BSMJBO7.jsx +136 -0
- package/dist/chunk/{GCEYGQPA.jsx → 5GO6NUQR.jsx} +16 -13
- package/dist/chunk/{ZYFWVVTC.js → 5IIB2LYP.js} +83 -23
- package/dist/chunk/{BX734ZD7.js → 5V7JAJ5W.js} +5 -4
- package/dist/chunk/{76KFR2EJ.jsx → 5ZAKDNMV.jsx} +6 -6
- package/dist/chunk/{UHWLTCQZ.jsx → 65QK7XXR.jsx} +6 -3
- package/dist/chunk/{UDBRICA6.js → 6C2FCXTS.js} +3 -3
- package/dist/chunk/{HVXJLFJY.jsx → 6FX4SECK.jsx} +6 -6
- package/dist/chunk/{DBNXBHAT.js → 6QV6SS6W.js} +4 -4
- package/dist/chunk/{DH3KPRGA.jsx → 77IURBLR.jsx} +9 -6
- package/dist/chunk/{OF7DNWIQ.jsx → 7YVDASKP.jsx} +5 -5
- package/dist/chunk/{J5ODILBT.jsx → 7Z6YKSMY.jsx} +15 -13
- package/dist/chunk/{6QF5SDIE.jsx → 7ZEKGJLZ.jsx} +9 -7
- package/dist/chunk/{AH5KB6LR.js → A5BBGDPW.js} +4 -4
- package/dist/chunk/{RYD4Z3LT.jsx → ABFLCPUB.jsx} +5 -5
- package/dist/chunk/{SZNFUIJQ.jsx → ACLCLMIV.jsx} +6 -6
- package/dist/chunk/{NHEM6XZR.jsx → AIK4SKXT.jsx} +7 -7
- package/dist/chunk/{P2OA7NSB.js → BGKLKY77.js} +3 -3
- package/dist/chunk/BTUFV5YJ.jsx +306 -0
- package/dist/chunk/{VRCOVKZM.jsx → BUMQJLFN.jsx} +9 -7
- package/dist/chunk/{3BRVNFB3.js → BVQ6NO6X.js} +30 -33
- package/dist/chunk/{K32NALIW.js → CBYVQ7YD.js} +3 -3
- package/dist/chunk/{2JSSDQEE.jsx → CC4VXMN5.jsx} +6 -6
- package/dist/chunk/{IYZ6XUM5.js → CXS7DDU2.js} +2 -2
- package/dist/chunk/{HWHAUHQ5.jsx → DGI75TEJ.jsx} +6 -6
- package/dist/chunk/{FDGWBBJ3.jsx → DYFALYJE.jsx} +4 -4
- package/dist/chunk/{RRFWSRAD.jsx → E54U43LI.jsx} +77 -14
- package/dist/chunk/{RVOPDSQY.js → EM5SH6A3.js} +12 -1
- package/dist/chunk/{6UXNGS66.jsx → EQKTJ63X.jsx} +1 -1
- package/dist/chunk/{OVPRCDDL.jsx → ESQ2KC4M.jsx} +7 -6
- package/dist/chunk/{IGSOSLB3.jsx → G7XBXLRA.jsx} +6 -6
- package/dist/chunk/{XH4Y4U2G.jsx → GSOOONDM.jsx} +5 -5
- package/dist/chunk/{UOOMXEJO.jsx → GYKEGNPI.jsx} +5 -5
- package/dist/chunk/{CGW54HAQ.jsx → HDGILMRT.jsx} +4 -1
- package/dist/chunk/{WUBTAV2O.js → HFIUYKXK.js} +5 -5
- package/dist/chunk/{K3TLO6S6.js → HJJ6M6JE.js} +3 -3
- package/dist/chunk/{W7YDKZGP.js → HKJ2U4GE.js} +4 -4
- package/dist/chunk/{P7BXFWK5.js → HMG7R2BF.js} +40 -38
- package/dist/chunk/{JFOWNFC7.jsx → HOPBYFHD.jsx} +20 -3
- package/dist/chunk/{NZQO4OJP.jsx → HSKAUH3N.jsx} +16 -13
- package/dist/chunk/{JLPPHEZV.js → HUB2Z2WJ.js} +3 -3
- package/dist/chunk/{B7OY6YTK.js → IKIPTYFY.js} +3 -3
- package/dist/chunk/{XXP27BHC.jsx → IPJK2PWY.jsx} +5 -5
- package/dist/chunk/{O5M2FPMH.js → IRBAVIVZ.js} +5 -4
- package/dist/chunk/{23JPD2DE.js → J6D7JUCJ.js} +2 -5
- package/dist/chunk/{FW6EZLZL.js → JBLHW7IM.js} +4 -29
- package/dist/chunk/{HI7OENS5.js → JLP6NZTO.js} +29 -6
- package/dist/chunk/{TP32AKQX.js → JR3CTJ4R.js} +4 -4
- package/dist/chunk/KWLZPDF4.jsx +6 -0
- package/dist/chunk/{4EK6Z2KK.js → KXKOMCVA.js} +2 -2
- package/dist/chunk/{CGB5YI3F.jsx → LBXPKVCB.jsx} +1 -1
- package/dist/chunk/LRDE5RNI.js +239 -0
- package/dist/chunk/{XNAQLSZW.jsx → M2R7NELL.jsx} +5 -5
- package/dist/chunk/{DR7CHNBO.jsx → MLPK6MO2.jsx} +5 -5
- package/dist/chunk/{KEZ2WH2A.jsx → MU5CM6ZP.jsx} +5 -5
- package/dist/chunk/{HYQNCIWP.js → N2ACHFKW.js} +3 -3
- package/dist/chunk/NEU4F4NG.jsx +52 -0
- package/dist/chunk/NJVZNV63.js +121 -0
- package/dist/chunk/{W33NQFXF.js → NMS6DWX3.js} +5 -4
- package/dist/chunk/{UMVZZL45.js → NMYA3JZ5.js} +1 -1
- package/dist/chunk/{S7F5ETXJ.js → NTHXB7S3.js} +5 -4
- package/dist/chunk/{2P5Y3YCK.jsx → OEGORBLT.jsx} +1 -47
- package/dist/chunk/{QGXWXVZ5.js → ONLLL7WZ.js} +4 -4
- package/dist/chunk/{4A6UNZ4T.jsx → ONZ5KPSW.jsx} +5 -5
- package/dist/chunk/ORFQCCEF.js +7 -0
- package/dist/chunk/{AQ27SOWE.jsx → ORZMPJPC.jsx} +5 -5
- package/dist/chunk/{VVD4LKC6.jsx → OWH3LOUE.jsx} +4 -1
- package/dist/chunk/{MNZUELWU.jsx → P466TCYN.jsx} +9 -7
- package/dist/chunk/{NPSTVZUG.jsx → P7K6CA55.jsx} +7 -6
- package/dist/chunk/{YENHTIT6.js → PDHNW6SC.js} +5 -4
- package/dist/chunk/{Z4EBWHQF.js → PEIMGDXM.js} +4 -4
- package/dist/chunk/{JRY66LXS.jsx → PKRIUPWN.jsx} +6 -6
- package/dist/chunk/{7HLG62OR.jsx → PPH4D7AF.jsx} +7 -7
- package/dist/chunk/{3WOFDSWV.jsx → PSH3YKBU.jsx} +4 -4
- package/dist/chunk/{UXUJ2LD6.js → PSO6FY3T.js} +5 -4
- package/dist/chunk/{FXYVJXLF.jsx → PWV2MRRH.jsx} +5 -5
- package/dist/chunk/{2V2P2JZV.js → QC2RXUV4.js} +12 -9
- package/dist/chunk/{372PVMNT.js → QUQ6VBQO.js} +4 -4
- package/dist/chunk/{UTULIPW7.js → RDZRRODO.js} +4 -4
- package/dist/chunk/{2BFJIRAK.js → RJPVNWZG.js} +5 -4
- package/dist/chunk/{SYNEPEHD.js → RL5TZPAG.js} +3 -3
- package/dist/chunk/{VH6MDPEX.jsx → RNGP6PKE.jsx} +6 -6
- package/dist/chunk/{F7OI3RZ3.js → RSDHPGPT.js} +46 -19
- package/dist/chunk/RT4GKNE7.js +1 -0
- package/dist/chunk/{ORJXW4SC.jsx → RVP446XN.jsx} +38 -18
- package/dist/chunk/{GBGTOFYC.js → S3VN2YFH.js} +2 -2
- package/dist/chunk/{B434DN6B.js → SCCZRXWX.js} +3 -3
- package/dist/chunk/{CCK5XI24.jsx → SCJBXRUZ.jsx} +9 -7
- package/dist/chunk/{2MDYHAEL.js → SU6SNXFK.js} +7 -6
- package/dist/chunk/{SH4J3NPA.jsx → TD72MSSI.jsx} +5 -5
- package/dist/chunk/{QTWOIUHU.jsx → TG3BV4FJ.jsx} +9 -9
- package/dist/chunk/{IEJ4RWIV.jsx → TPTP4FRI.jsx} +9 -7
- package/dist/chunk/{5RT2MFUK.jsx → TYHUUGLH.jsx} +3 -3
- package/dist/chunk/{WT5KEZUJ.js → UJ4FU6HV.js} +8 -12
- package/dist/chunk/{VIKFXGE5.jsx → V62PHVT3.jsx} +6 -6
- package/dist/chunk/{LNZGGTI5.js → VIERJSCF.js} +4 -4
- package/dist/chunk/{HCQSZULR.js → WGHZEJIT.js} +6 -5
- package/dist/chunk/{FDE3GI6Q.js → WLWKI62C.js} +6 -5
- package/dist/chunk/{RSWPJEWK.js → WTS7KK6L.js} +4 -4
- package/dist/chunk/{GCQCOMQH.js → WX3PPB36.js} +3 -3
- package/dist/chunk/{LQGHLGPW.jsx → WZBYH43M.jsx} +1 -1
- package/dist/chunk/X22PRPOR.js +31 -0
- package/dist/chunk/{JNBFQ7ZP.jsx → X63FZDID.jsx} +15 -13
- package/dist/chunk/{FKF6FOYL.jsx → XLKDWQZ2.jsx} +9 -7
- package/dist/chunk/{QARPXWDS.js → XNIXPFXJ.js} +2 -2
- package/dist/chunk/{HNIBOZUS.jsx → XRBGB3XP.jsx} +41 -11
- package/dist/chunk/XVU3GCCX.jsx +9 -0
- package/dist/chunk/{6HVSV6OM.js → YA3LD5QR.js} +1 -1
- package/dist/chunk/{CNHYYRWI.jsx → YLT3EBQZ.jsx} +9 -7
- package/dist/chunk/{7B5HD3HF.js → YVERN3NM.js} +3 -3
- package/dist/chunk/{2S7Z6JX4.jsx → YW4KS3S5.jsx} +6 -6
- package/dist/chunk/{52VYWTHF.js → YXEZ562D.js} +5 -5
- package/dist/chunk/{JEKNEIFC.jsx → Z253N6GA.jsx} +5 -5
- package/dist/chunk/{Z5L7ULFZ.js → ZJOFPTIM.js} +3 -3
- package/dist/chunk/{3ZDGZCBV.jsx → ZLSYUPYN.jsx} +15 -11
- package/dist/chunk/{J6B3R7PY.jsx → ZOCG4ZHL.jsx} +5 -5
- package/dist/{color-picker.anatomy-CMDtAoEh.d.ts → color-picker.anatomy-Dxw1DJ2S.d.ts} +1 -1
- package/dist/{combobox.anatomy-DBsVyPqM.d.ts → combobox.anatomy-5H6l0CJs.d.ts} +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +6 -6
- package/dist/components/anatomy.d.ts +10 -9
- package/dist/components/anatomy.js +20 -19
- package/dist/components/anatomy.jsx +58 -54
- package/dist/components/angle-slider/index.js +1 -1
- package/dist/components/angle-slider/index.jsx +4 -4
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +4 -4
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +4 -4
- package/dist/components/checkbox/index.d.ts +5 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +7 -7
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +4 -4
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +5 -5
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +9 -8
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +9 -8
- package/dist/components/date-picker/index.d.ts +50 -5
- package/dist/components/date-picker/index.js +2 -2
- package/dist/components/date-picker/index.jsx +14 -7
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +7 -6
- package/dist/components/download-trigger/index.js +1 -1
- package/dist/components/download-trigger/index.jsx +4 -4
- package/dist/components/drawer/index.d.ts +121 -0
- package/dist/components/drawer/index.js +2 -0
- package/dist/components/drawer/index.jsx +56 -0
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +7 -7
- package/dist/components/field/index.d.ts +1 -1
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +6 -6
- package/dist/components/fieldset/index.d.ts +1 -1
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/fieldset/index.jsx +5 -5
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +7 -7
- package/dist/components/floating-panel/index.js +1 -1
- package/dist/components/floating-panel/index.jsx +7 -6
- package/dist/components/format/index.js +1 -1
- package/dist/components/format/index.jsx +4 -3
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/index.jsx +4 -3
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/highlight/index.jsx +2 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +7 -6
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/image-cropper/index.jsx +4 -4
- package/dist/components/index.d.ts +16 -14
- package/dist/components/index.js +77 -74
- package/dist/components/index.jsx +582 -538
- package/dist/components/json-tree-view/index.d.ts +16 -13
- package/dist/components/json-tree-view/index.js +1 -1
- package/dist/components/json-tree-view/index.jsx +7 -7
- package/dist/components/listbox/index.d.ts +1 -1
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/index.jsx +4 -4
- package/dist/components/marquee/index.js +1 -1
- package/dist/components/marquee/index.jsx +4 -4
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +7 -6
- package/dist/components/navigation-menu/index.d.ts +1 -1
- package/dist/components/navigation-menu/index.js +26 -20
- package/dist/components/navigation-menu/index.jsx +28 -15
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +7 -7
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +4 -4
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/index.jsx +7 -7
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +7 -7
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +7 -6
- package/dist/components/presence/index.js +2 -1
- package/dist/components/presence/index.jsx +5 -3
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +4 -4
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +4 -4
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +6 -6
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +7 -7
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/index.jsx +4 -4
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +4 -4
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +9 -8
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +7 -7
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +4 -4
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +4 -4
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +4 -4
- package/dist/components/swap/index.d.ts +74 -0
- package/dist/components/swap/index.js +2 -0
- package/dist/components/swap/index.jsx +28 -0
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +7 -7
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +7 -6
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +7 -7
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +4 -4
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +4 -4
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/index.jsx +1 -1
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +4 -4
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +7 -6
- package/dist/components/tour/index.d.ts +10 -4
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +17 -8
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +6 -6
- package/dist/date-picker.anatomy-DMDOrz3v.d.ts +5 -0
- package/dist/field.anatomy-BA_rbPae.d.ts +5 -0
- package/dist/{fieldset.anatomy-BHBXaVuM.d.ts → fieldset.anatomy-ByHwSFid.d.ts} +1 -1
- package/dist/index.d.ts +18 -15
- package/dist/index.js +79 -76
- package/dist/index.jsx +586 -540
- package/dist/{listbox.anatomy-CuSvGz29.d.ts → listbox.anatomy-ogRrsXMY.d.ts} +1 -1
- package/dist/providers/environment/index.js +1 -1
- package/dist/providers/environment/index.jsx +2 -1
- package/dist/providers/index.d.ts +3 -1
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.jsx +5 -2
- package/dist/providers/locale/index.d.ts +10 -1
- package/dist/providers/locale/index.js +1 -1
- package/dist/providers/locale/index.jsx +4 -1
- package/dist/swap.anatomy-BTCTOTbL.d.ts +5 -0
- package/dist/{tour.anatomy-BwE3XSIU.d.ts → tour.anatomy-B2Ub0NWQ.d.ts} +1 -1
- package/package.json +81 -79
- package/dist/chunk/2R6SK2X3.js +0 -1
- package/dist/chunk/M3S2UEA7.js +0 -178
- package/dist/chunk/UOTT3RUB.jsx +0 -231
- package/dist/chunk/WMZBRARY.jsx +0 -6
- package/dist/components/bottom-sheet/index.d.ts +0 -92
- package/dist/components/bottom-sheet/index.js +0 -2
- package/dist/components/bottom-sheet/index.jsx +0 -45
- package/dist/date-picker.anatomy-C7QaSOwg.d.ts +0 -5
- package/dist/field.anatomy-BkeW0gbI.d.ts +0 -5
- /package/dist/chunk/{PJLQLDQ3.js → PMEYD5LG.js} +0 -0
- /package/dist/chunk/{EDXDNGEO.jsx → S6EAXNU4.jsx} +0 -0
package/dist/chunk/UOTT3RUB.jsx
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PresenceProvider,
|
|
3
|
-
splitPresenceProps,
|
|
4
|
-
usePresence,
|
|
5
|
-
usePresenceContext
|
|
6
|
-
} from "./2P5Y3YCK.jsx";
|
|
7
|
-
import {
|
|
8
|
-
composeRefs
|
|
9
|
-
} from "./PT2CJE3O.jsx";
|
|
10
|
-
import {
|
|
11
|
-
RenderStrategyProvider,
|
|
12
|
-
splitRenderStrategyProps,
|
|
13
|
-
useRenderStrategyContext
|
|
14
|
-
} from "./VNMGX67M.jsx";
|
|
15
|
-
import {
|
|
16
|
-
createSplitProps
|
|
17
|
-
} from "./6WEDGJKQ.jsx";
|
|
18
|
-
import {
|
|
19
|
-
ark
|
|
20
|
-
} from "./UFYZ7HLU.jsx";
|
|
21
|
-
import {
|
|
22
|
-
useEnvironmentContext
|
|
23
|
-
} from "./CGW54HAQ.jsx";
|
|
24
|
-
import {
|
|
25
|
-
useLocaleContext
|
|
26
|
-
} from "./JFOWNFC7.jsx";
|
|
27
|
-
import {
|
|
28
|
-
runIfFn
|
|
29
|
-
} from "./KGOB2IMX.jsx";
|
|
30
|
-
import {
|
|
31
|
-
createContext
|
|
32
|
-
} from "./UZJJWJQM.jsx";
|
|
33
|
-
import {
|
|
34
|
-
__export
|
|
35
|
-
} from "./7IUG3E2V.jsx";
|
|
36
|
-
|
|
37
|
-
// src/components/bottom-sheet/bottom-sheet-backdrop.tsx
|
|
38
|
-
import { mergeProps } from "@zag-js/solid";
|
|
39
|
-
import { Show } from "solid-js";
|
|
40
|
-
|
|
41
|
-
// src/components/bottom-sheet/use-bottom-sheet-context.ts
|
|
42
|
-
var [BottomSheetProvider, useBottomSheetContext] = createContext({
|
|
43
|
-
hookName: "useBottomSheetContext",
|
|
44
|
-
providerName: "<BottomSheetProvider />"
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
// src/components/bottom-sheet/bottom-sheet-backdrop.tsx
|
|
48
|
-
var BottomSheetBackdrop = (props) => {
|
|
49
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
50
|
-
const renderStrategyProps = useRenderStrategyContext();
|
|
51
|
-
const presence = usePresence(mergeProps(renderStrategyProps, () => ({ present: bottomSheet2().open })));
|
|
52
|
-
const mergedProps = mergeProps(
|
|
53
|
-
() => bottomSheet2().getBackdropProps(),
|
|
54
|
-
() => presence().presenceProps,
|
|
55
|
-
props
|
|
56
|
-
);
|
|
57
|
-
return <Show when={!presence().unmounted}>
|
|
58
|
-
<ark.div {...mergedProps} ref={composeRefs(presence().ref, props.ref)} />
|
|
59
|
-
</Show>;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
// src/components/bottom-sheet/bottom-sheet-close-trigger.tsx
|
|
63
|
-
import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
64
|
-
var BottomSheetCloseTrigger = (props) => {
|
|
65
|
-
const context = useBottomSheetContext();
|
|
66
|
-
const mergedProps = mergeProps2(() => context().getCloseTriggerProps(), props);
|
|
67
|
-
return <ark.button {...mergedProps} />;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
// src/components/bottom-sheet/bottom-sheet-content.tsx
|
|
71
|
-
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
72
|
-
import { Show as Show2 } from "solid-js";
|
|
73
|
-
var BottomSheetContent = (props) => {
|
|
74
|
-
const [contentProps, localProps] = createSplitProps()(props, ["draggable"]);
|
|
75
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
76
|
-
const presence = usePresenceContext();
|
|
77
|
-
const mergedProps = mergeProps3(
|
|
78
|
-
() => bottomSheet2().getContentProps({ draggable: true, ...contentProps }),
|
|
79
|
-
() => presence().presenceProps,
|
|
80
|
-
localProps
|
|
81
|
-
);
|
|
82
|
-
return <Show2 when={!presence().unmounted}>
|
|
83
|
-
<ark.div {...mergedProps} ref={composeRefs(presence().ref, localProps.ref)} />
|
|
84
|
-
</Show2>;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
// src/components/bottom-sheet/bottom-sheet-context.tsx
|
|
88
|
-
var BottomSheetContext = (props) => props.children(useBottomSheetContext());
|
|
89
|
-
|
|
90
|
-
// src/components/bottom-sheet/bottom-sheet-grabber.tsx
|
|
91
|
-
import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
92
|
-
var BottomSheetGrabber = (props) => {
|
|
93
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
94
|
-
const mergedProps = mergeProps4(() => bottomSheet2().getGrabberProps(), props);
|
|
95
|
-
return <ark.div {...mergedProps} />;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
// src/components/bottom-sheet/bottom-sheet-grabber-indicator.tsx
|
|
99
|
-
import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
100
|
-
var BottomSheetGrabberIndicator = (props) => {
|
|
101
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
102
|
-
const mergedProps = mergeProps5(() => bottomSheet2().getGrabberIndicatorProps(), props);
|
|
103
|
-
return <ark.div {...mergedProps} />;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
// src/components/bottom-sheet/bottom-sheet-root.tsx
|
|
107
|
-
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
108
|
-
|
|
109
|
-
// src/components/bottom-sheet/use-bottom-sheet.ts
|
|
110
|
-
import * as bottomSheet from "@zag-js/bottom-sheet";
|
|
111
|
-
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
112
|
-
import { createMemo, createUniqueId } from "solid-js";
|
|
113
|
-
var useBottomSheet = (props) => {
|
|
114
|
-
const locale = useLocaleContext();
|
|
115
|
-
const environment = useEnvironmentContext();
|
|
116
|
-
const id = createUniqueId();
|
|
117
|
-
const machineProps = createMemo(() => ({
|
|
118
|
-
id,
|
|
119
|
-
dir: locale().dir,
|
|
120
|
-
getRootNode: environment().getRootNode,
|
|
121
|
-
...runIfFn(props)
|
|
122
|
-
}));
|
|
123
|
-
const service = useMachine(bottomSheet.machine, machineProps);
|
|
124
|
-
return createMemo(() => bottomSheet.connect(service, normalizeProps));
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
// src/components/bottom-sheet/bottom-sheet-root.tsx
|
|
128
|
-
var BottomSheetRoot = (props) => {
|
|
129
|
-
const [presenceProps, bottomSheetProps] = splitPresenceProps(props);
|
|
130
|
-
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
131
|
-
const [useBottomSheetProps, localProps] = createSplitProps()(bottomSheetProps, [
|
|
132
|
-
"id",
|
|
133
|
-
"ids",
|
|
134
|
-
"open",
|
|
135
|
-
"defaultOpen",
|
|
136
|
-
"onOpenChange",
|
|
137
|
-
"closeOnInteractOutside",
|
|
138
|
-
"closeOnEscape",
|
|
139
|
-
"snapPoints",
|
|
140
|
-
"swipeVelocityThreshold",
|
|
141
|
-
"closeThreshold",
|
|
142
|
-
"preventDragOnScroll",
|
|
143
|
-
"activeSnapPoint",
|
|
144
|
-
"defaultActiveSnapPoint",
|
|
145
|
-
"onActiveSnapPointChange",
|
|
146
|
-
"modal",
|
|
147
|
-
"trapFocus",
|
|
148
|
-
"restoreFocus",
|
|
149
|
-
"preventScroll",
|
|
150
|
-
"initialFocusEl",
|
|
151
|
-
"finalFocusEl",
|
|
152
|
-
"role",
|
|
153
|
-
"onInteractOutside",
|
|
154
|
-
"onEscapeKeyDown",
|
|
155
|
-
"onPointerDownOutside",
|
|
156
|
-
"onFocusOutside",
|
|
157
|
-
"onRequestDismiss"
|
|
158
|
-
]);
|
|
159
|
-
const bottomSheet2 = useBottomSheet(useBottomSheetProps);
|
|
160
|
-
const presence = usePresence(mergeProps6(presenceProps, () => ({ present: bottomSheet2().open })));
|
|
161
|
-
return <BottomSheetProvider value={bottomSheet2}>
|
|
162
|
-
<RenderStrategyProvider value={renderStrategyProps}>
|
|
163
|
-
<PresenceProvider value={presence}>{localProps.children}</PresenceProvider>
|
|
164
|
-
</RenderStrategyProvider>
|
|
165
|
-
</BottomSheetProvider>;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
// src/components/bottom-sheet/bottom-sheet-root-provider.tsx
|
|
169
|
-
import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
170
|
-
var BottomSheetRootProvider = (props) => {
|
|
171
|
-
const [presenceProps, bottomSheetProps] = splitPresenceProps(props);
|
|
172
|
-
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
173
|
-
const presence = usePresence(mergeProps7(() => ({ present: bottomSheetProps.value().open }), presenceProps));
|
|
174
|
-
return <BottomSheetProvider value={bottomSheetProps.value}>
|
|
175
|
-
<RenderStrategyProvider value={renderStrategyProps}>
|
|
176
|
-
<PresenceProvider value={presence}>{bottomSheetProps.children}</PresenceProvider>
|
|
177
|
-
</RenderStrategyProvider>
|
|
178
|
-
</BottomSheetProvider>;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
// src/components/bottom-sheet/bottom-sheet-title.tsx
|
|
182
|
-
import { mergeProps as mergeProps8 } from "@zag-js/solid";
|
|
183
|
-
var BottomSheetTitle = (props) => {
|
|
184
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
185
|
-
const mergedProps = mergeProps8(() => bottomSheet2().getTitleProps(), props);
|
|
186
|
-
return <ark.h2 {...mergedProps} />;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
// src/components/bottom-sheet/bottom-sheet-trigger.tsx
|
|
190
|
-
import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
191
|
-
var BottomSheetTrigger = (props) => {
|
|
192
|
-
const bottomSheet2 = useBottomSheetContext();
|
|
193
|
-
const presence = usePresenceContext();
|
|
194
|
-
const mergedProps = mergeProps9(
|
|
195
|
-
() => bottomSheet2().getTriggerProps(),
|
|
196
|
-
() => ({ "aria-controls": presence().unmounted && null }),
|
|
197
|
-
props
|
|
198
|
-
);
|
|
199
|
-
return <ark.button {...mergedProps} />;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
// src/components/bottom-sheet/bottom-sheet.ts
|
|
203
|
-
var bottom_sheet_exports = {};
|
|
204
|
-
__export(bottom_sheet_exports, {
|
|
205
|
-
Backdrop: () => BottomSheetBackdrop,
|
|
206
|
-
CloseTrigger: () => BottomSheetCloseTrigger,
|
|
207
|
-
Content: () => BottomSheetContent,
|
|
208
|
-
Context: () => BottomSheetContext,
|
|
209
|
-
Grabber: () => BottomSheetGrabber,
|
|
210
|
-
GrabberIndicator: () => BottomSheetGrabberIndicator,
|
|
211
|
-
Root: () => BottomSheetRoot,
|
|
212
|
-
RootProvider: () => BottomSheetRootProvider,
|
|
213
|
-
Title: () => BottomSheetTitle,
|
|
214
|
-
Trigger: () => BottomSheetTrigger
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
export {
|
|
218
|
-
useBottomSheetContext,
|
|
219
|
-
BottomSheetBackdrop,
|
|
220
|
-
BottomSheetCloseTrigger,
|
|
221
|
-
BottomSheetContent,
|
|
222
|
-
BottomSheetContext,
|
|
223
|
-
BottomSheetGrabber,
|
|
224
|
-
BottomSheetGrabberIndicator,
|
|
225
|
-
useBottomSheet,
|
|
226
|
-
BottomSheetRoot,
|
|
227
|
-
BottomSheetRootProvider,
|
|
228
|
-
BottomSheetTitle,
|
|
229
|
-
BottomSheetTrigger,
|
|
230
|
-
bottom_sheet_exports
|
|
231
|
-
};
|
package/dist/chunk/WMZBRARY.jsx
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import * as bottomSheet$1 from '@zag-js/bottom-sheet';
|
|
2
|
-
import { ContentProps, OpenChangeDetails } from '@zag-js/bottom-sheet';
|
|
3
|
-
export { OpenChangeDetails as BottomSheetOpenChangeDetails, anatomy as bottomSheetAnatomy } from '@zag-js/bottom-sheet';
|
|
4
|
-
import * as solid_js from 'solid-js';
|
|
5
|
-
import { Accessor, JSX } from 'solid-js';
|
|
6
|
-
import { HTMLProps, PolymorphicProps } from '../factory.js';
|
|
7
|
-
import { PropTypes } from '@zag-js/solid';
|
|
8
|
-
import { O as Optional, M as MaybeAccessor } from '../../types-Sr_80hg9.js';
|
|
9
|
-
import { U as UsePresenceProps } from '../../use-presence-DsfHkUSW.js';
|
|
10
|
-
import '@zag-js/presence';
|
|
11
|
-
import '../../render-strategy-B5MqQP3X.js';
|
|
12
|
-
|
|
13
|
-
interface BottomSheetBackdropBaseProps extends PolymorphicProps<'div'> {
|
|
14
|
-
}
|
|
15
|
-
interface BottomSheetBackdropProps extends HTMLProps<'div'>, BottomSheetBackdropBaseProps {
|
|
16
|
-
}
|
|
17
|
-
declare const BottomSheetBackdrop: (props: BottomSheetBackdropProps) => solid_js.JSX.Element;
|
|
18
|
-
|
|
19
|
-
interface BottomSheetCloseTriggerBaseProps extends PolymorphicProps<'button'> {
|
|
20
|
-
}
|
|
21
|
-
interface BottomSheetCloseTriggerProps extends HTMLProps<'button'>, BottomSheetCloseTriggerBaseProps {
|
|
22
|
-
}
|
|
23
|
-
declare const BottomSheetCloseTrigger: (props: BottomSheetCloseTriggerProps) => solid_js.JSX.Element;
|
|
24
|
-
|
|
25
|
-
interface BottomSheetContentBaseProps extends PolymorphicProps<'div'>, ContentProps {
|
|
26
|
-
}
|
|
27
|
-
interface BottomSheetContentProps extends Omit<HTMLProps<'div'>, 'draggable'>, BottomSheetContentBaseProps {
|
|
28
|
-
}
|
|
29
|
-
declare const BottomSheetContent: (props: BottomSheetContentProps) => solid_js.JSX.Element;
|
|
30
|
-
|
|
31
|
-
interface UseBottomSheetProps extends Optional<Omit<bottomSheet$1.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
32
|
-
}
|
|
33
|
-
interface UseBottomSheetReturn extends Accessor<bottomSheet$1.Api<PropTypes>> {
|
|
34
|
-
}
|
|
35
|
-
declare const useBottomSheet: (props?: MaybeAccessor<UseBottomSheetProps>) => UseBottomSheetReturn;
|
|
36
|
-
|
|
37
|
-
interface UseBottomSheetContext extends UseBottomSheetReturn {
|
|
38
|
-
}
|
|
39
|
-
declare const useBottomSheetContext: () => UseBottomSheetContext;
|
|
40
|
-
|
|
41
|
-
interface BottomSheetContextProps {
|
|
42
|
-
children: (context: UseBottomSheetContext) => JSX.Element;
|
|
43
|
-
}
|
|
44
|
-
declare const BottomSheetContext: (props: BottomSheetContextProps) => JSX.Element;
|
|
45
|
-
|
|
46
|
-
interface BottomSheetGrabberBaseProps extends PolymorphicProps<'div'> {
|
|
47
|
-
}
|
|
48
|
-
interface BottomSheetGrabberProps extends HTMLProps<'div'>, BottomSheetGrabberBaseProps {
|
|
49
|
-
}
|
|
50
|
-
declare const BottomSheetGrabber: (props: BottomSheetGrabberProps) => solid_js.JSX.Element;
|
|
51
|
-
|
|
52
|
-
interface BottomSheetGrabberIndicatorBaseProps extends PolymorphicProps<'div'> {
|
|
53
|
-
}
|
|
54
|
-
interface BottomSheetGrabberIndicatorProps extends HTMLProps<'div'>, BottomSheetGrabberIndicatorBaseProps {
|
|
55
|
-
}
|
|
56
|
-
declare const BottomSheetGrabberIndicator: (props: BottomSheetGrabberIndicatorProps) => solid_js.JSX.Element;
|
|
57
|
-
|
|
58
|
-
interface BottomSheetRootBaseProps extends UseBottomSheetProps, UsePresenceProps {
|
|
59
|
-
}
|
|
60
|
-
interface BottomSheetRootProps extends BottomSheetRootBaseProps {
|
|
61
|
-
children?: JSX.Element;
|
|
62
|
-
}
|
|
63
|
-
declare const BottomSheetRoot: (props: BottomSheetRootProps) => JSX.Element;
|
|
64
|
-
|
|
65
|
-
interface RootProviderProps {
|
|
66
|
-
value: UseBottomSheetReturn;
|
|
67
|
-
}
|
|
68
|
-
interface BottomSheetRootProviderBaseProps extends RootProviderProps, UsePresenceProps {
|
|
69
|
-
}
|
|
70
|
-
interface BottomSheetRootProviderProps extends BottomSheetRootProviderBaseProps {
|
|
71
|
-
children?: JSX.Element;
|
|
72
|
-
}
|
|
73
|
-
declare const BottomSheetRootProvider: (props: BottomSheetRootProviderProps) => JSX.Element;
|
|
74
|
-
|
|
75
|
-
interface BottomSheetTitleBaseProps extends PolymorphicProps<'h2'> {
|
|
76
|
-
}
|
|
77
|
-
interface BottomSheetTitleProps extends HTMLProps<'h2'>, BottomSheetTitleBaseProps {
|
|
78
|
-
}
|
|
79
|
-
declare const BottomSheetTitle: (props: BottomSheetTitleProps) => solid_js.JSX.Element;
|
|
80
|
-
|
|
81
|
-
interface BottomSheetTriggerBaseProps extends PolymorphicProps<'button'> {
|
|
82
|
-
}
|
|
83
|
-
interface BottomSheetTriggerProps extends HTMLProps<'button'>, BottomSheetTriggerBaseProps {
|
|
84
|
-
}
|
|
85
|
-
declare const BottomSheetTrigger: (props: BottomSheetTriggerProps) => solid_js.JSX.Element;
|
|
86
|
-
|
|
87
|
-
declare const bottomSheet_OpenChangeDetails: typeof OpenChangeDetails;
|
|
88
|
-
declare namespace bottomSheet {
|
|
89
|
-
export { BottomSheetBackdrop as Backdrop, type BottomSheetBackdropBaseProps as BackdropBaseProps, type BottomSheetBackdropProps as BackdropProps, BottomSheetCloseTrigger as CloseTrigger, type BottomSheetCloseTriggerBaseProps as CloseTriggerBaseProps, type BottomSheetCloseTriggerProps as CloseTriggerProps, BottomSheetContent as Content, type BottomSheetContentBaseProps as ContentBaseProps, type BottomSheetContentProps as ContentProps, BottomSheetContext as Context, type BottomSheetContextProps as ContextProps, BottomSheetGrabber as Grabber, type BottomSheetGrabberBaseProps as GrabberBaseProps, BottomSheetGrabberIndicator as GrabberIndicator, type BottomSheetGrabberIndicatorBaseProps as GrabberIndicatorBaseProps, type BottomSheetGrabberIndicatorProps as GrabberIndicatorProps, type BottomSheetGrabberProps as GrabberProps, bottomSheet_OpenChangeDetails as OpenChangeDetails, BottomSheetRoot as Root, type BottomSheetRootBaseProps as RootBaseProps, type BottomSheetRootProps as RootProps, BottomSheetRootProvider as RootProvider, type BottomSheetRootProviderBaseProps as RootProviderBaseProps, type BottomSheetRootProviderProps as RootProviderProps, BottomSheetTitle as Title, type BottomSheetTitleBaseProps as TitleBaseProps, type BottomSheetTitleProps as TitleProps, BottomSheetTrigger as Trigger, type BottomSheetTriggerBaseProps as TriggerBaseProps, type BottomSheetTriggerProps as TriggerProps };
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export { bottomSheet as BottomSheet, BottomSheetBackdrop, type BottomSheetBackdropBaseProps, type BottomSheetBackdropProps, BottomSheetCloseTrigger, type BottomSheetCloseTriggerBaseProps, type BottomSheetCloseTriggerProps, BottomSheetContent, type BottomSheetContentBaseProps, type BottomSheetContentProps, BottomSheetContext, type BottomSheetContextProps, BottomSheetGrabber, type BottomSheetGrabberBaseProps, BottomSheetGrabberIndicator, type BottomSheetGrabberIndicatorBaseProps, type BottomSheetGrabberIndicatorProps, type BottomSheetGrabberProps, BottomSheetRoot, type BottomSheetRootBaseProps, type BottomSheetRootProps, BottomSheetRootProvider, type BottomSheetRootProviderBaseProps, type BottomSheetRootProviderProps, BottomSheetTitle, type BottomSheetTitleBaseProps, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerBaseProps, type BottomSheetTriggerProps, type UseBottomSheetContext, type UseBottomSheetProps, type UseBottomSheetReturn, useBottomSheet, useBottomSheetContext };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { bottom_sheet_exports as BottomSheet, BottomSheetBackdrop, BottomSheetCloseTrigger, BottomSheetContent, BottomSheetContext, BottomSheetGrabber, BottomSheetGrabberIndicator, BottomSheetRoot, BottomSheetRootProvider, BottomSheetTitle, BottomSheetTrigger, useBottomSheet, useBottomSheetContext } from '../../chunk/M3S2UEA7.js';
|
|
2
|
-
export { anatomy as bottomSheetAnatomy } from '../../chunk/2R6SK2X3.js';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BottomSheetBackdrop,
|
|
3
|
-
BottomSheetCloseTrigger,
|
|
4
|
-
BottomSheetContent,
|
|
5
|
-
BottomSheetContext,
|
|
6
|
-
BottomSheetGrabber,
|
|
7
|
-
BottomSheetGrabberIndicator,
|
|
8
|
-
BottomSheetRoot,
|
|
9
|
-
BottomSheetRootProvider,
|
|
10
|
-
BottomSheetTitle,
|
|
11
|
-
BottomSheetTrigger,
|
|
12
|
-
bottom_sheet_exports,
|
|
13
|
-
useBottomSheet,
|
|
14
|
-
useBottomSheetContext
|
|
15
|
-
} from "../../chunk/UOTT3RUB.jsx";
|
|
16
|
-
import "../../chunk/2P5Y3YCK.jsx";
|
|
17
|
-
import "../../chunk/PT2CJE3O.jsx";
|
|
18
|
-
import "../../chunk/VNMGX67M.jsx";
|
|
19
|
-
import {
|
|
20
|
-
anatomy
|
|
21
|
-
} from "../../chunk/WMZBRARY.jsx";
|
|
22
|
-
import "../../chunk/6WEDGJKQ.jsx";
|
|
23
|
-
import "../../chunk/UFYZ7HLU.jsx";
|
|
24
|
-
import "../../chunk/ODQYYKL5.jsx";
|
|
25
|
-
import "../../chunk/CGW54HAQ.jsx";
|
|
26
|
-
import "../../chunk/JFOWNFC7.jsx";
|
|
27
|
-
import "../../chunk/KGOB2IMX.jsx";
|
|
28
|
-
import "../../chunk/UZJJWJQM.jsx";
|
|
29
|
-
import "../../chunk/7IUG3E2V.jsx";
|
|
30
|
-
export {
|
|
31
|
-
bottom_sheet_exports as BottomSheet,
|
|
32
|
-
BottomSheetBackdrop,
|
|
33
|
-
BottomSheetCloseTrigger,
|
|
34
|
-
BottomSheetContent,
|
|
35
|
-
BottomSheetContext,
|
|
36
|
-
BottomSheetGrabber,
|
|
37
|
-
BottomSheetGrabberIndicator,
|
|
38
|
-
BottomSheetRoot,
|
|
39
|
-
BottomSheetRootProvider,
|
|
40
|
-
BottomSheetTitle,
|
|
41
|
-
BottomSheetTrigger,
|
|
42
|
-
anatomy as bottomSheetAnatomy,
|
|
43
|
-
useBottomSheet,
|
|
44
|
-
useBottomSheetContext
|
|
45
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as _zag_js_anatomy from '@zag-js/anatomy';
|
|
2
|
-
|
|
3
|
-
declare const datePickerAnatomy: _zag_js_anatomy.AnatomyInstance<"label" | "input" | "root" | "table" | "view" | "content" | "trigger" | "control" | "nextTrigger" | "prevTrigger" | "positioner" | "clearTrigger" | "tableHeader" | "tableBody" | "tableRow" | "viewTrigger" | "monthSelect" | "yearSelect" | "presetTrigger" | "rangeText" | "tableCell" | "tableCellTrigger" | "tableHead" | "viewControl">;
|
|
4
|
-
|
|
5
|
-
export { datePickerAnatomy as d };
|
|
File without changes
|
|
File without changes
|