@ark-ui/solid 5.0.0 → 5.1.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/dist/chunk/{44YJVOL2.js → 26K66CRD.js} +5 -4
- package/dist/chunk/{WZ7FNJXM.jsx → 2EXNPKDT.jsx} +7 -4
- package/dist/chunk/{I4VF53LH.jsx → 2LZKFXR5.jsx} +6 -3
- package/dist/chunk/{DH5DKFFF.jsx → 2XUYX7MZ.jsx} +7 -4
- package/dist/chunk/{EH5LPBSV.jsx → 3FYZXSQZ.jsx} +7 -4
- package/dist/chunk/{OIGKROX4.js → 46YZVE6D.js} +4 -3
- package/dist/chunk/{SAI3RCJY.js → 4UD3WT4B.js} +4 -3
- package/dist/chunk/{R6Q7TUSQ.js → 5GDLVWNX.js} +5 -4
- package/dist/chunk/{PES3MXH3.jsx → 5T73FAJY.jsx} +6 -3
- package/dist/chunk/{7AJYNPOZ.jsx → 65ORPGOJ.jsx} +7 -4
- package/dist/chunk/{QZQUUXCF.jsx → 65SQKHCI.jsx} +7 -4
- package/dist/chunk/{EIGYBOW2.jsx → 7IHVZWMT.jsx} +7 -4
- package/dist/chunk/{X34KVQNW.js → 7KGMTGCS.js} +2 -1
- package/dist/chunk/{2FYSIKNK.jsx → A4744EEE.jsx} +4 -1
- package/dist/chunk/{TEZHN26Z.jsx → AD2EIGNX.jsx} +6 -3
- package/dist/chunk/{PL4PGQFF.js → B246J3FR.js} +3 -2
- package/dist/chunk/{FHWNUAQM.jsx → B2KZ5VSW.jsx} +7 -4
- package/dist/chunk/{DS2MX7YY.jsx → BOR2APHS.jsx} +7 -4
- package/dist/chunk/{M63JXHU4.js → C4PG7WMU.js} +3 -2
- package/dist/chunk/{A6LAAZDX.js → C745EVQO.js} +1 -1
- package/dist/chunk/{PVOFTEOB.jsx → CABZW4BQ.jsx} +7 -4
- package/dist/chunk/{676ULDTZ.jsx → CHLRHJV2.jsx} +5 -2
- package/dist/chunk/{KMFRZGLF.js → CIIDKCDP.js} +2 -2
- package/dist/chunk/{YE6V66JY.jsx → CSDXHOTM.jsx} +7 -4
- package/dist/chunk/{BPYAMTER.jsx → D2Z5BEON.jsx} +3 -5
- package/dist/chunk/{OAH52ZNM.jsx → D6BC5RCX.jsx} +7 -4
- package/dist/chunk/{RG3IJESS.jsx → DJ375Z4C.jsx} +8 -5
- package/dist/chunk/DT73WLR4.js +5 -0
- package/dist/chunk/{USV2CYTP.jsx → DU2LAUIJ.jsx} +7 -4
- package/dist/chunk/{OA5UZFKE.js → E5BXBABH.js} +1 -1
- package/dist/chunk/{6AKFQH4M.jsx → EEG3DZXG.jsx} +6 -3
- package/dist/chunk/{HQEG6EKY.js → EI7I4DR6.js} +5 -4
- package/dist/chunk/{UIAQFG6P.js → EWPKE75H.js} +4 -3
- package/dist/chunk/{DBAO7VQW.js → F5GOQFKX.js} +5 -4
- package/dist/chunk/{6NMPU3T3.js → F7JP3DGZ.js} +5 -4
- package/dist/chunk/{GUQTNAZU.js → FMI5WHH2.js} +5 -4
- package/dist/chunk/{EUXWRO3A.js → FZIYLDQP.js} +5 -4
- package/dist/chunk/{QKFZ3XTM.js → GLMPR4B7.js} +5 -4
- package/dist/chunk/{AIQ2GVFX.js → GMNTJ5KE.js} +4 -3
- package/dist/chunk/{BTPWLTJU.jsx → IKA3JJFV.jsx} +6 -3
- package/dist/chunk/{XHA6B6L2.jsx → JC46XP74.jsx} +2 -1
- package/dist/chunk/{7IAJIOJR.jsx → JRMTU7C7.jsx} +1 -1
- package/dist/chunk/{4E5OPUFZ.js → JUYBJNX6.js} +5 -4
- package/dist/chunk/{6VITT55B.js → JWXGONCE.js} +4 -3
- package/dist/chunk/{XNZ7GOP4.jsx → K4MFB3SM.jsx} +7 -4
- package/dist/chunk/{VLUE7XIS.jsx → KBHIJYMD.jsx} +1 -1
- package/dist/chunk/KGOB2IMX.jsx +7 -0
- package/dist/chunk/{OEZAIQU2.jsx → KZCXBFHA.jsx} +7 -4
- package/dist/chunk/{LKOJO4VB.jsx → LJAETAOB.jsx} +7 -4
- package/dist/chunk/{TMTD3AUG.js → LK5627GR.js} +5 -4
- package/dist/chunk/{4GOBFWQB.js → LTZUX6NG.js} +4 -3
- package/dist/chunk/{H7SWP54F.jsx → MA35L6TV.jsx} +6 -3
- package/dist/chunk/{JOWPVE6E.js → MBJCX2DE.js} +5 -4
- package/dist/chunk/{SBKJA5N2.jsx → MDJAL2LV.jsx} +6 -3
- package/dist/chunk/{POFK2TVP.jsx → MKI4DBPU.jsx} +7 -4
- package/dist/chunk/{FX6TOMB3.js → MOQT5762.js} +5 -4
- package/dist/chunk/{3CUJRNYI.js → MSLAT5GQ.js} +4 -3
- package/dist/chunk/{M2C67TPA.js → NZEL4233.js} +4 -3
- package/dist/chunk/{WRLQ7Y6E.js → OY4ARTMM.js} +2 -1
- package/dist/chunk/{PJNGX4UT.js → QB2OYQ6F.js} +5 -4
- package/dist/chunk/{NNZQ2FQW.js → QBFJVUX3.js} +3 -2
- package/dist/chunk/{DVI7TRLG.js → QTSWXPKO.js} +5 -4
- package/dist/chunk/{ANDTZLCB.js → R5NPBVOA.js} +5 -4
- package/dist/chunk/{WT3OTYHP.js → RIHGRA4D.js} +5 -3
- package/dist/chunk/{DEA5DIWS.js → ROXCI3ZP.js} +4 -3
- package/dist/chunk/{2TEQVFZN.jsx → RUFFRSXB.jsx} +7 -4
- package/dist/chunk/{KQ4BIFPS.jsx → RY6GW37O.jsx} +6 -3
- package/dist/chunk/{LFWIA7VB.js → S6TQNQE6.js} +6 -5
- package/dist/chunk/{SRPSYZUL.js → SPF2T7O4.js} +5 -4
- package/dist/chunk/{C4WAO4VB.js → T7DC3WIE.js} +5 -4
- package/dist/chunk/{55NHLACH.js → TKGOCHK5.js} +4 -3
- package/dist/chunk/{NCURFCYQ.jsx → TZDLUIKR.jsx} +6 -3
- package/dist/chunk/{V2YBSJKS.js → UODFV2GS.js} +5 -4
- package/dist/chunk/{SL2ZPLSH.jsx → WDXH3NHK.jsx} +7 -4
- package/dist/chunk/{4D76BVTD.jsx → WIVJD73Q.jsx} +7 -4
- package/dist/chunk/{H5QZC4VW.jsx → WNIFZKTJ.jsx} +5 -2
- package/dist/chunk/{E2TLJMGI.js → XF64K6LQ.js} +5 -4
- package/dist/chunk/{MZD7ZKWI.js → XN3MSM3M.js} +12 -11
- package/dist/chunk/{SWZSXMPJ.jsx → XZZ6TULR.jsx} +6 -3
- package/dist/chunk/{ZOMTU4P2.jsx → Y7EY3OTU.jsx} +7 -4
- package/dist/chunk/{3VB4UGEY.jsx → YIVTZ7BP.jsx} +5 -2
- package/dist/chunk/{6MQ6S5JP.js → YMMMHJJS.js} +2 -5
- package/dist/chunk/{ENXUS2WG.jsx → YPH7FBUN.jsx} +6 -3
- package/dist/chunk/{WPEIDU6T.jsx → Z254KIAA.jsx} +6 -3
- package/dist/chunk/{YS6KIHEB.js → Z2TDX72A.js} +4 -3
- package/dist/chunk/{O5AHG7DQ.jsx → Z2XFIGHD.jsx} +7 -4
- package/dist/chunk/{O62NKGT4.js → ZGXZNLX2.js} +5 -4
- package/dist/chunk/{R6RE56DG.jsx → ZJM2GZS7.jsx} +4 -1
- package/dist/chunk/{A4HLKXDW.js → ZOGAU3AQ.js} +4 -3
- package/dist/chunk/{SBLZHOW2.jsx → ZYF7GVNI.jsx} +18 -15
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +4 -3
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +3 -2
- package/dist/components/carousel/index.d.ts +2 -2
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +3 -2
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +5 -4
- package/dist/components/clipboard/index.d.ts +2 -2
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +3 -2
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +3 -2
- package/dist/components/color-picker/index.d.ts +3 -3
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +6 -5
- package/dist/components/combobox/index.d.ts +3 -3
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +6 -5
- package/dist/components/date-picker/index.d.ts +3 -3
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +4 -3
- package/dist/components/dialog/index.d.ts +3 -3
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +4 -3
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +5 -4
- package/dist/components/factory.d.ts +1 -1
- package/dist/components/field/index.d.ts +3 -3
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +5 -2
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/fieldset/index.jsx +2 -1
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +5 -4
- package/dist/components/focus-trap/index.d.ts +1 -1
- package/dist/components/format/index.jsx +2 -1
- package/dist/components/frame/index.d.ts +1 -1
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/index.jsx +3 -2
- package/dist/components/highlight/index.d.ts +2 -2
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/highlight/index.jsx +2 -1
- package/dist/components/hover-card/index.d.ts +3 -3
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +4 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +43 -43
- package/dist/components/index.jsx +117 -114
- package/dist/components/menu/index.d.ts +3 -3
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +4 -3
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +5 -4
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +3 -2
- package/dist/components/pin-input/index.d.ts +2 -2
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +5 -4
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +4 -3
- package/dist/components/presence/index.d.ts +3 -3
- package/dist/components/presence/index.js +1 -1
- package/dist/components/presence/index.jsx +2 -1
- package/dist/components/progress/index.d.ts +2 -2
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +3 -2
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +3 -2
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +3 -2
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +5 -4
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +3 -2
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +6 -5
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +5 -4
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +3 -2
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +3 -2
- package/dist/components/steps/index.d.ts +2 -2
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +3 -2
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +5 -4
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +4 -3
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +5 -4
- package/dist/components/time-picker/index.d.ts +3 -3
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/index.jsx +4 -3
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +3 -2
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +3 -2
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +3 -2
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +4 -3
- package/dist/components/tour/index.d.ts +3 -3
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +4 -3
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +4 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +44 -44
- package/dist/index.jsx +117 -114
- package/dist/providers/environment/index.js +1 -1
- package/dist/providers/environment/index.jsx +2 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.jsx +2 -1
- package/dist/types-CxryXVkR.d.ts +8 -0
- package/dist/{use-presence-C07V_WCb.d.ts → use-presence-B6QV_j94.d.ts} +2 -2
- package/package.json +60 -60
- package/dist/types-B277wCdv.d.ts +0 -5
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './OY4ARTMM.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
6
|
import { createContext } from './TROPIN4C.js';
|
|
7
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
7
8
|
import { __export } from './ESLJRKWD.js';
|
|
8
9
|
import { createComponent } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -198,7 +199,7 @@ var MenuRadioItemGroup = (props) => {
|
|
|
198
199
|
}
|
|
199
200
|
});
|
|
200
201
|
};
|
|
201
|
-
var useMenu = (props
|
|
202
|
+
var useMenu = (props) => {
|
|
202
203
|
const id = createUniqueId();
|
|
203
204
|
const locale = useLocaleContext();
|
|
204
205
|
const environment = useEnvironmentContext();
|
|
@@ -206,7 +207,7 @@ var useMenu = (props = {}) => {
|
|
|
206
207
|
id,
|
|
207
208
|
dir: locale().dir,
|
|
208
209
|
getRootNode: environment().getRootNode,
|
|
209
|
-
...props
|
|
210
|
+
...runIfFn(props)
|
|
210
211
|
}));
|
|
211
212
|
const service = useMachine(menu.machine, machineProps);
|
|
212
213
|
const api = createMemo(() => menu.connect(service, normalizeProps));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
4
4
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
5
5
|
import { createContext } from './TROPIN4C.js';
|
|
6
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
6
7
|
import { __export } from './ESLJRKWD.js';
|
|
7
8
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
8
9
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -101,7 +102,7 @@ var StepsProgress = (props) => {
|
|
|
101
102
|
const mergedProps = mergeProps(() => steps2().getProgressProps(), props);
|
|
102
103
|
return createComponent(ark.div, mergedProps);
|
|
103
104
|
};
|
|
104
|
-
function useSteps(props
|
|
105
|
+
function useSteps(props) {
|
|
105
106
|
const id = createUniqueId();
|
|
106
107
|
const environment = useEnvironmentContext();
|
|
107
108
|
const locale = useLocaleContext();
|
|
@@ -109,7 +110,7 @@ function useSteps(props = {}) {
|
|
|
109
110
|
id,
|
|
110
111
|
dir: locale().dir,
|
|
111
112
|
getRootNode: environment().getRootNode,
|
|
112
|
-
...props
|
|
113
|
+
...runIfFn(props)
|
|
113
114
|
}));
|
|
114
115
|
const service = useMachine(steps.machine, machineProps);
|
|
115
116
|
return createMemo(() => steps.connect(service, normalizeProps));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./JC46XP74.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -9,13 +9,16 @@ import {
|
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
10
|
import {
|
|
11
11
|
useEnvironmentContext
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./D2Z5BEON.jsx";
|
|
13
13
|
import {
|
|
14
14
|
useLocaleContext
|
|
15
15
|
} from "./RCXMZN3G.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
19
22
|
import {
|
|
20
23
|
__export
|
|
21
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -80,7 +83,7 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
80
83
|
import * as signaturePad from "@zag-js/signature-pad";
|
|
81
84
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
82
85
|
import { createMemo, createUniqueId } from "solid-js";
|
|
83
|
-
var useSignaturePad = (props
|
|
86
|
+
var useSignaturePad = (props) => {
|
|
84
87
|
const id = createUniqueId();
|
|
85
88
|
const locale = useLocaleContext();
|
|
86
89
|
const environment = useEnvironmentContext();
|
|
@@ -96,7 +99,7 @@ var useSignaturePad = (props = {}) => {
|
|
|
96
99
|
required: field?.().required,
|
|
97
100
|
dir: locale().dir,
|
|
98
101
|
getRootNode: environment().getRootNode,
|
|
99
|
-
...props
|
|
102
|
+
...runIfFn(props)
|
|
100
103
|
}));
|
|
101
104
|
const service = useMachine(signaturePad.machine, machineProps);
|
|
102
105
|
return createMemo(() => signaturePad.connect(service, normalizeProps));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PresenceProvider,
|
|
3
3
|
usePresence
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./A4744EEE.jsx";
|
|
5
5
|
import {
|
|
6
6
|
RenderStrategyProvider,
|
|
7
7
|
splitRenderStrategyProps,
|
|
@@ -15,13 +15,16 @@ import {
|
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
16
|
import {
|
|
17
17
|
useEnvironmentContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./D2Z5BEON.jsx";
|
|
19
19
|
import {
|
|
20
20
|
useLocaleContext
|
|
21
21
|
} from "./RCXMZN3G.jsx";
|
|
22
22
|
import {
|
|
23
23
|
createContext
|
|
24
24
|
} from "./TVCIHLER.jsx";
|
|
25
|
+
import {
|
|
26
|
+
runIfFn
|
|
27
|
+
} from "./KGOB2IMX.jsx";
|
|
25
28
|
import {
|
|
26
29
|
__export
|
|
27
30
|
} from "./7IUG3E2V.jsx";
|
|
@@ -94,7 +97,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
94
97
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
95
98
|
import * as tabs from "@zag-js/tabs";
|
|
96
99
|
import { createMemo, createUniqueId } from "solid-js";
|
|
97
|
-
var useTabs = (props
|
|
100
|
+
var useTabs = (props) => {
|
|
98
101
|
const id = createUniqueId();
|
|
99
102
|
const locale = useLocaleContext();
|
|
100
103
|
const environment = useEnvironmentContext();
|
|
@@ -102,7 +105,7 @@ var useTabs = (props = {}) => {
|
|
|
102
105
|
id,
|
|
103
106
|
dir: locale().dir,
|
|
104
107
|
getRootNode: environment().getRootNode,
|
|
105
|
-
...props
|
|
108
|
+
...runIfFn(props)
|
|
106
109
|
}));
|
|
107
110
|
const service = useMachine(tabs.machine, machineProps);
|
|
108
111
|
return createMemo(() => tabs.connect(service, normalizeProps));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./JC46XP74.jsx";
|
|
4
4
|
import {
|
|
5
5
|
PresenceProvider,
|
|
6
6
|
splitPresenceProps,
|
|
7
7
|
usePresence,
|
|
8
8
|
usePresenceContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./A4744EEE.jsx";
|
|
10
10
|
import {
|
|
11
11
|
createSplitProps
|
|
12
12
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -15,13 +15,16 @@ import {
|
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
16
|
import {
|
|
17
17
|
useEnvironmentContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./D2Z5BEON.jsx";
|
|
19
19
|
import {
|
|
20
20
|
useLocaleContext
|
|
21
21
|
} from "./RCXMZN3G.jsx";
|
|
22
22
|
import {
|
|
23
23
|
createContext
|
|
24
24
|
} from "./TVCIHLER.jsx";
|
|
25
|
+
import {
|
|
26
|
+
runIfFn
|
|
27
|
+
} from "./KGOB2IMX.jsx";
|
|
25
28
|
import {
|
|
26
29
|
__export
|
|
27
30
|
} from "./7IUG3E2V.jsx";
|
|
@@ -232,7 +235,7 @@ var useSelect = (props) => {
|
|
|
232
235
|
required: field?.().required,
|
|
233
236
|
dir: locale().dir,
|
|
234
237
|
getRootNode: environment().getRootNode,
|
|
235
|
-
...props
|
|
238
|
+
...runIfFn(props)
|
|
236
239
|
}));
|
|
237
240
|
const service = useMachine(select.machine, machineProps);
|
|
238
241
|
return createMemo3(() => select.connect(service, normalizeProps));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './
|
|
1
|
+
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
6
|
import { createContext } from './TROPIN4C.js';
|
|
7
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
7
8
|
import { __export } from './ESLJRKWD.js';
|
|
8
9
|
import * as datePicker from '@zag-js/date-picker';
|
|
9
10
|
import { anatomy } from '@zag-js/date-picker';
|
|
@@ -126,7 +127,7 @@ var DatePickerRangeText = (props) => {
|
|
|
126
127
|
}
|
|
127
128
|
}));
|
|
128
129
|
};
|
|
129
|
-
var useDatePicker = (props
|
|
130
|
+
var useDatePicker = (props) => {
|
|
130
131
|
const id = createUniqueId();
|
|
131
132
|
const locale = useLocaleContext();
|
|
132
133
|
const environment = useEnvironmentContext();
|
|
@@ -135,7 +136,7 @@ var useDatePicker = (props = {}) => {
|
|
|
135
136
|
dir: locale().dir,
|
|
136
137
|
locale: locale().locale,
|
|
137
138
|
getRootNode: environment().getRootNode,
|
|
138
|
-
...props
|
|
139
|
+
...runIfFn(props)
|
|
139
140
|
}));
|
|
140
141
|
const service = useMachine(datePicker.machine, machineProps);
|
|
141
142
|
return createMemo(() => datePicker.connect(service, normalizeProps));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
4
4
|
import { createContext } from './TROPIN4C.js';
|
|
5
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
5
6
|
import { __export } from './ESLJRKWD.js';
|
|
6
7
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
7
8
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -45,13 +46,13 @@ var TimerItem = (props) => {
|
|
|
45
46
|
}
|
|
46
47
|
}));
|
|
47
48
|
};
|
|
48
|
-
var useTimer = (props
|
|
49
|
+
var useTimer = (props) => {
|
|
49
50
|
const id = createUniqueId();
|
|
50
51
|
const environment = useEnvironmentContext();
|
|
51
52
|
const machineProps = createMemo(() => ({
|
|
52
53
|
id,
|
|
53
54
|
getRootNode: environment().getRootNode,
|
|
54
|
-
...props
|
|
55
|
+
...runIfFn(props)
|
|
55
56
|
}));
|
|
56
57
|
const service = useMachine(timer.machine, machineProps);
|
|
57
58
|
return createMemo(() => timer.connect(service, normalizeProps));
|
|
@@ -6,13 +6,16 @@ import {
|
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useEnvironmentContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./D2Z5BEON.jsx";
|
|
10
10
|
import {
|
|
11
11
|
useLocaleContext
|
|
12
12
|
} from "./RCXMZN3G.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./TVCIHLER.jsx";
|
|
16
|
+
import {
|
|
17
|
+
runIfFn
|
|
18
|
+
} from "./KGOB2IMX.jsx";
|
|
16
19
|
import {
|
|
17
20
|
__export
|
|
18
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -49,7 +52,7 @@ import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
|
49
52
|
import * as avatar from "@zag-js/avatar";
|
|
50
53
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
51
54
|
import { createMemo, createUniqueId } from "solid-js";
|
|
52
|
-
var useAvatar = (props
|
|
55
|
+
var useAvatar = (props) => {
|
|
53
56
|
const locale = useLocaleContext();
|
|
54
57
|
const environment = useEnvironmentContext();
|
|
55
58
|
const id = createUniqueId();
|
|
@@ -57,7 +60,7 @@ var useAvatar = (props = {}) => {
|
|
|
57
60
|
id,
|
|
58
61
|
dir: locale().dir,
|
|
59
62
|
getRootNode: environment().getRootNode,
|
|
60
|
-
...props
|
|
63
|
+
...runIfFn(props)
|
|
61
64
|
}));
|
|
62
65
|
const service = useMachine(avatar.machine, machineProps);
|
|
63
66
|
return createMemo(() => avatar.connect(service, normalizeProps));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './CIIDKCDP.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
6
|
import { createContext } from './TROPIN4C.js';
|
|
7
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
7
8
|
import { __export } from './ESLJRKWD.js';
|
|
8
9
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -39,7 +40,7 @@ var SwitchLabel = (props) => {
|
|
|
39
40
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
40
41
|
return createComponent(ark.span, mergedProps);
|
|
41
42
|
};
|
|
42
|
-
var useSwitch = (props
|
|
43
|
+
var useSwitch = (props) => {
|
|
43
44
|
const id = createUniqueId();
|
|
44
45
|
const locale = useLocaleContext();
|
|
45
46
|
const environment = useEnvironmentContext();
|
|
@@ -56,7 +57,7 @@ var useSwitch = (props = {}) => {
|
|
|
56
57
|
required: field?.().required,
|
|
57
58
|
dir: locale().dir,
|
|
58
59
|
getRootNode: environment().getRootNode,
|
|
59
|
-
...props
|
|
60
|
+
...runIfFn(props)
|
|
60
61
|
}));
|
|
61
62
|
const service = useMachine(zagSwitch.machine, machineProps);
|
|
62
63
|
return createMemo(() => zagSwitch.connect(service, normalizeProps));
|
|
@@ -6,13 +6,16 @@ import {
|
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useEnvironmentContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./D2Z5BEON.jsx";
|
|
10
10
|
import {
|
|
11
11
|
useLocaleContext
|
|
12
12
|
} from "./RCXMZN3G.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./TVCIHLER.jsx";
|
|
16
|
+
import {
|
|
17
|
+
runIfFn
|
|
18
|
+
} from "./KGOB2IMX.jsx";
|
|
16
19
|
import {
|
|
17
20
|
__export
|
|
18
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -51,7 +54,7 @@ import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
|
51
54
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
52
55
|
import * as splitter from "@zag-js/splitter";
|
|
53
56
|
import { createMemo, createUniqueId } from "solid-js";
|
|
54
|
-
var useSplitter = (props
|
|
57
|
+
var useSplitter = (props) => {
|
|
55
58
|
const locale = useLocaleContext();
|
|
56
59
|
const environment = useEnvironmentContext();
|
|
57
60
|
const id = createUniqueId();
|
|
@@ -59,7 +62,7 @@ var useSplitter = (props = {}) => {
|
|
|
59
62
|
id,
|
|
60
63
|
dir: locale().dir,
|
|
61
64
|
getRootNode: environment().getRootNode,
|
|
62
|
-
...props
|
|
65
|
+
...runIfFn(props)
|
|
63
66
|
}));
|
|
64
67
|
const service = useMachine(splitter.machine, machineProps);
|
|
65
68
|
return createMemo(() => splitter.connect(service, normalizeProps));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./JC46XP74.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -9,13 +9,16 @@ import {
|
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
10
|
import {
|
|
11
11
|
useEnvironmentContext
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./D2Z5BEON.jsx";
|
|
13
13
|
import {
|
|
14
14
|
useLocaleContext
|
|
15
15
|
} from "./RCXMZN3G.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
19
22
|
import {
|
|
20
23
|
__export
|
|
21
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -61,7 +64,7 @@ import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
|
61
64
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
62
65
|
import * as zagSwitch from "@zag-js/switch";
|
|
63
66
|
import { createMemo, createUniqueId } from "solid-js";
|
|
64
|
-
var useSwitch = (props
|
|
67
|
+
var useSwitch = (props) => {
|
|
65
68
|
const id = createUniqueId();
|
|
66
69
|
const locale = useLocaleContext();
|
|
67
70
|
const environment = useEnvironmentContext();
|
|
@@ -78,7 +81,7 @@ var useSwitch = (props = {}) => {
|
|
|
78
81
|
required: field?.().required,
|
|
79
82
|
dir: locale().dir,
|
|
80
83
|
getRootNode: environment().getRootNode,
|
|
81
|
-
...props
|
|
84
|
+
...runIfFn(props)
|
|
82
85
|
}));
|
|
83
86
|
const service = useMachine(zagSwitch.machine, machineProps);
|
|
84
87
|
return createMemo(() => zagSwitch.connect(service, normalizeProps));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
2
|
-
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './
|
|
1
|
+
import { useFieldContext } from './CIIDKCDP.js';
|
|
2
|
+
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './
|
|
5
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
6
6
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
7
7
|
import { createContext } from './TROPIN4C.js';
|
|
8
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
8
9
|
import { __export } from './ESLJRKWD.js';
|
|
9
10
|
import { createComponent, mergeProps as mergeProps$1, template, insert, effect } from 'solid-js/web';
|
|
10
11
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -201,7 +202,7 @@ var useSelect = (props) => {
|
|
|
201
202
|
required: field?.().required,
|
|
202
203
|
dir: locale().dir,
|
|
203
204
|
getRootNode: environment().getRootNode,
|
|
204
|
-
...props
|
|
205
|
+
...runIfFn(props)
|
|
205
206
|
}));
|
|
206
207
|
const service = useMachine(select.machine, machineProps);
|
|
207
208
|
return createMemo(() => select.connect(service, normalizeProps));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
4
4
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
5
5
|
import { createContext } from './TROPIN4C.js';
|
|
6
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
6
7
|
import { __export } from './ESLJRKWD.js';
|
|
7
8
|
import { createComponent } from 'solid-js/web';
|
|
8
9
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -80,7 +81,7 @@ var RadioGroupLabel = (props) => {
|
|
|
80
81
|
const mergedProps = mergeProps(() => radioGroup().getLabelProps(), props);
|
|
81
82
|
return createComponent(ark.label, mergedProps);
|
|
82
83
|
};
|
|
83
|
-
var useRadioGroup = (props
|
|
84
|
+
var useRadioGroup = (props) => {
|
|
84
85
|
const id = createUniqueId();
|
|
85
86
|
const locale = useLocaleContext();
|
|
86
87
|
const environment = useEnvironmentContext();
|
|
@@ -88,7 +89,7 @@ var useRadioGroup = (props = {}) => {
|
|
|
88
89
|
id,
|
|
89
90
|
dir: locale().dir,
|
|
90
91
|
getRootNode: environment().getRootNode,
|
|
91
|
-
...props
|
|
92
|
+
...runIfFn(props)
|
|
92
93
|
}));
|
|
93
94
|
const service = useMachine(radio.machine, machineProps);
|
|
94
95
|
return createMemo(() => radio.connect(service, normalizeProps));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { collapsible_exports } from './
|
|
1
|
+
import { collapsible_exports } from './B246J3FR.js';
|
|
2
2
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './
|
|
5
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
6
6
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
7
7
|
import { createContext } from './TROPIN4C.js';
|
|
8
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
8
9
|
import { __export } from './ESLJRKWD.js';
|
|
9
10
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
10
11
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -137,7 +138,7 @@ var useTreeView = (props) => {
|
|
|
137
138
|
id,
|
|
138
139
|
dir: locale().dir,
|
|
139
140
|
getRootNode: environment().getRootNode,
|
|
140
|
-
...props
|
|
141
|
+
...runIfFn(props)
|
|
141
142
|
}));
|
|
142
143
|
const service = useMachine(treeView.machine, machineProps);
|
|
143
144
|
return createMemo(() => treeView.connect(service, normalizeProps));
|
|
@@ -2,6 +2,7 @@ import { splitRenderStrategyProps } from './QFAL6GWC.js';
|
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { createContext } from './TROPIN4C.js';
|
|
5
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
5
6
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
6
7
|
import { useMachine, normalizeProps, mergeProps } from '@zag-js/solid';
|
|
7
8
|
import { createSignal, createMemo, createEffect, Show } from 'solid-js';
|
|
@@ -10,7 +11,7 @@ import * as presence from '@zag-js/presence';
|
|
|
10
11
|
// src/components/presence/split-presence-props.ts
|
|
11
12
|
var splitPresenceProps = (props) => createSplitProps()(props, ["immediate", "lazyMount", "onExitComplete", "present", "unmountOnExit"]);
|
|
12
13
|
var usePresence = (props) => {
|
|
13
|
-
const [renderStrategyProps, context] = splitRenderStrategyProps(props);
|
|
14
|
+
const [renderStrategyProps, context] = splitRenderStrategyProps(runIfFn(props));
|
|
14
15
|
const [wasEverPresent, setWasEverPresent] = createSignal(false);
|
|
15
16
|
const service = useMachine(presence.machine, props);
|
|
16
17
|
const api = createMemo(() => presence.connect(service, normalizeProps));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './CIIDKCDP.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
6
|
import { createContext } from './TROPIN4C.js';
|
|
7
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
7
8
|
import { __export } from './ESLJRKWD.js';
|
|
8
9
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -125,7 +126,7 @@ var FileUploadLabel = (props) => {
|
|
|
125
126
|
const mergedProps = mergeProps(() => fileUpload2().getLabelProps(), props);
|
|
126
127
|
return createComponent(ark.label, mergedProps);
|
|
127
128
|
};
|
|
128
|
-
var useFileUpload = (props
|
|
129
|
+
var useFileUpload = (props) => {
|
|
129
130
|
const id = createUniqueId();
|
|
130
131
|
const locale = useLocaleContext();
|
|
131
132
|
const environment = useEnvironmentContext();
|
|
@@ -142,7 +143,7 @@ var useFileUpload = (props = {}) => {
|
|
|
142
143
|
required: field?.().required,
|
|
143
144
|
invalid: field?.().invalid,
|
|
144
145
|
getRootNode: environment().getRootNode,
|
|
145
|
-
...props
|
|
146
|
+
...runIfFn(props)
|
|
146
147
|
}));
|
|
147
148
|
const service = useMachine(fileUpload.machine, machineProps);
|
|
148
149
|
return createMemo(() => fileUpload.connect(service, normalizeProps));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
4
4
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
5
5
|
import { createContext } from './TROPIN4C.js';
|
|
6
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
6
7
|
import { __export } from './ESLJRKWD.js';
|
|
7
8
|
import { createComponent } from 'solid-js/web';
|
|
8
9
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -70,7 +71,7 @@ var useCarousel = (props) => {
|
|
|
70
71
|
id,
|
|
71
72
|
dir: locale().dir,
|
|
72
73
|
getRootNode: environment().getRootNode,
|
|
73
|
-
...props
|
|
74
|
+
...runIfFn(props)
|
|
74
75
|
}));
|
|
75
76
|
const service = useMachine(carousel.machine, machineProps);
|
|
76
77
|
return createMemo(() => carousel.connect(service, normalizeProps));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { useCollapsibleContext, collapsible_exports } from './
|
|
1
|
+
import { useCollapsibleContext, collapsible_exports } from './B246J3FR.js';
|
|
2
2
|
import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './
|
|
5
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
6
6
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
7
7
|
import { createContext } from './TROPIN4C.js';
|
|
8
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
8
9
|
import { __export } from './ESLJRKWD.js';
|
|
9
10
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
10
11
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -91,7 +92,7 @@ var AccordionItemTrigger = (props) => {
|
|
|
91
92
|
const [ariaControls, buttonProps] = splitProps(mergedProps, ["aria-controls"]);
|
|
92
93
|
return createComponent(ark.button, mergeProps$1(buttonProps, () => !collapsible().unmounted && ariaControls));
|
|
93
94
|
};
|
|
94
|
-
var useAccordion = (props
|
|
95
|
+
var useAccordion = (props) => {
|
|
95
96
|
const id = createUniqueId();
|
|
96
97
|
const locale = useLocaleContext();
|
|
97
98
|
const environment = useEnvironmentContext();
|
|
@@ -99,7 +100,7 @@ var useAccordion = (props = {}) => {
|
|
|
99
100
|
id,
|
|
100
101
|
dir: locale().dir,
|
|
101
102
|
getRootNode: environment().getRootNode,
|
|
102
|
-
...props
|
|
103
|
+
...runIfFn(props)
|
|
103
104
|
}));
|
|
104
105
|
const service = useMachine(accordion.machine, machineProps);
|
|
105
106
|
return createMemo(() => accordion.connect(service, normalizeProps));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './OY4ARTMM.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
6
|
import { createContext } from './TROPIN4C.js';
|
|
7
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
7
8
|
import { __export } from './ESLJRKWD.js';
|
|
8
9
|
import { createComponent } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -77,7 +78,7 @@ var PopoverPositioner = (props) => {
|
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
80
|
};
|
|
80
|
-
var usePopover = (props
|
|
81
|
+
var usePopover = (props) => {
|
|
81
82
|
const id = createUniqueId();
|
|
82
83
|
const locale = useLocaleContext();
|
|
83
84
|
const environment = useEnvironmentContext();
|
|
@@ -85,7 +86,7 @@ var usePopover = (props = {}) => {
|
|
|
85
86
|
id,
|
|
86
87
|
dir: locale().dir,
|
|
87
88
|
getRootNode: environment().getRootNode,
|
|
88
|
-
...props
|
|
89
|
+
...runIfFn(props)
|
|
89
90
|
}));
|
|
90
91
|
const service = useMachine(popover.machine, machineProps);
|
|
91
92
|
return createMemo(() => popover.connect(service, normalizeProps));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './CIIDKCDP.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
5
|
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
6
|
import { createContext } from './TROPIN4C.js';
|
|
7
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
7
8
|
import { __export } from './ESLJRKWD.js';
|
|
8
9
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -143,7 +144,8 @@ var CheckboxLabel = (props) => {
|
|
|
143
144
|
var useCheckbox = (ownProps = {}) => {
|
|
144
145
|
const checkboxGroup = useCheckboxGroupContext();
|
|
145
146
|
const props = createMemo(() => {
|
|
146
|
-
|
|
147
|
+
const resolvedProps = runIfFn(ownProps);
|
|
148
|
+
return mergeProps(resolvedProps, checkboxGroup?.().getItemProps({ value: resolvedProps.value }) ?? {});
|
|
147
149
|
}, [ownProps, checkboxGroup]);
|
|
148
150
|
const id = createUniqueId();
|
|
149
151
|
const locale = useLocaleContext();
|