@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,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';
|
|
@@ -68,7 +69,7 @@ var SliderRange = (props) => {
|
|
|
68
69
|
const mergedProps = mergeProps(() => api().getRangeProps(), props);
|
|
69
70
|
return createComponent(ark.div, mergedProps);
|
|
70
71
|
};
|
|
71
|
-
var useSlider = (props
|
|
72
|
+
var useSlider = (props) => {
|
|
72
73
|
const id = createUniqueId();
|
|
73
74
|
const locale = useLocaleContext();
|
|
74
75
|
const environment = useEnvironmentContext();
|
|
@@ -76,7 +77,7 @@ var useSlider = (props = {}) => {
|
|
|
76
77
|
id,
|
|
77
78
|
dir: locale().dir,
|
|
78
79
|
getRootNode: environment().getRootNode,
|
|
79
|
-
...props
|
|
80
|
+
...runIfFn(props)
|
|
80
81
|
}));
|
|
81
82
|
const service = useMachine(slider.machine, machineProps);
|
|
82
83
|
return createMemo(() => slider.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";
|
|
@@ -153,7 +156,7 @@ import { mergeProps as mergeProps12 } from "@zag-js/solid";
|
|
|
153
156
|
import * as fileUpload from "@zag-js/file-upload";
|
|
154
157
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
155
158
|
import { createMemo, createUniqueId } from "solid-js";
|
|
156
|
-
var useFileUpload = (props
|
|
159
|
+
var useFileUpload = (props) => {
|
|
157
160
|
const id = createUniqueId();
|
|
158
161
|
const locale = useLocaleContext();
|
|
159
162
|
const environment = useEnvironmentContext();
|
|
@@ -170,7 +173,7 @@ var useFileUpload = (props = {}) => {
|
|
|
170
173
|
required: field?.().required,
|
|
171
174
|
invalid: field?.().invalid,
|
|
172
175
|
getRootNode: environment().getRootNode,
|
|
173
|
-
...props
|
|
176
|
+
...runIfFn(props)
|
|
174
177
|
}));
|
|
175
178
|
const service = useMachine(fileUpload.machine, machineProps);
|
|
176
179
|
return createMemo(() => fileUpload.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";
|
|
@@ -133,7 +136,7 @@ import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
|
133
136
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
134
137
|
import * as steps from "@zag-js/steps";
|
|
135
138
|
import { createMemo as createMemo2, createUniqueId } from "solid-js";
|
|
136
|
-
function useSteps(props
|
|
139
|
+
function useSteps(props) {
|
|
137
140
|
const id = createUniqueId();
|
|
138
141
|
const environment = useEnvironmentContext();
|
|
139
142
|
const locale = useLocaleContext();
|
|
@@ -141,7 +144,7 @@ function useSteps(props = {}) {
|
|
|
141
144
|
id,
|
|
142
145
|
dir: locale().dir,
|
|
143
146
|
getRootNode: environment().getRootNode,
|
|
144
|
-
...props
|
|
147
|
+
...runIfFn(props)
|
|
145
148
|
}));
|
|
146
149
|
const service = useMachine(steps.machine, machineProps);
|
|
147
150
|
return createMemo2(() => steps.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 * as colorPicker from '@zag-js/color-picker';
|
|
10
11
|
import { anatomy } from '@zag-js/color-picker';
|
|
@@ -194,7 +195,7 @@ var ColorPickerPositioner = (props) => {
|
|
|
194
195
|
}
|
|
195
196
|
});
|
|
196
197
|
};
|
|
197
|
-
var useColorPicker = (props
|
|
198
|
+
var useColorPicker = (props) => {
|
|
198
199
|
const id = createUniqueId();
|
|
199
200
|
const locale = useLocaleContext();
|
|
200
201
|
const environment = useEnvironmentContext();
|
|
@@ -211,7 +212,7 @@ var useColorPicker = (props = {}) => {
|
|
|
211
212
|
readOnly: field?.().readOnly,
|
|
212
213
|
required: field?.().required,
|
|
213
214
|
getRootNode: environment().getRootNode,
|
|
214
|
-
...props
|
|
215
|
+
...runIfFn(props)
|
|
215
216
|
}));
|
|
216
217
|
const service = useMachine(colorPicker.machine, machineProps);
|
|
217
218
|
return createMemo(() => colorPicker.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';
|
|
@@ -49,7 +50,7 @@ var NumberInputLabel = (props) => {
|
|
|
49
50
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
50
51
|
return createComponent(ark.label, mergedProps);
|
|
51
52
|
};
|
|
52
|
-
var useNumberInput = (props
|
|
53
|
+
var useNumberInput = (props) => {
|
|
53
54
|
const id = createUniqueId();
|
|
54
55
|
const locale = useLocaleContext();
|
|
55
56
|
const environment = useEnvironmentContext();
|
|
@@ -67,7 +68,7 @@ var useNumberInput = (props = {}) => {
|
|
|
67
68
|
dir: locale().dir,
|
|
68
69
|
locale: locale().locale,
|
|
69
70
|
getRootNode: environment().getRootNode,
|
|
70
|
-
...props
|
|
71
|
+
...runIfFn(props)
|
|
71
72
|
}));
|
|
72
73
|
const service = useMachine(numberInput.machine, machineProps);
|
|
73
74
|
return createMemo(() => numberInput.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';
|
|
@@ -45,7 +46,7 @@ var PinInputLabel = (props) => {
|
|
|
45
46
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
46
47
|
return createComponent(ark.label, mergedProps);
|
|
47
48
|
};
|
|
48
|
-
var usePinInput = (props
|
|
49
|
+
var usePinInput = (props) => {
|
|
49
50
|
const id = createUniqueId();
|
|
50
51
|
const locale = useLocaleContext();
|
|
51
52
|
const environment = useEnvironmentContext();
|
|
@@ -62,7 +63,7 @@ var usePinInput = (props = {}) => {
|
|
|
62
63
|
invalid: field?.().invalid,
|
|
63
64
|
dir: locale().dir,
|
|
64
65
|
getRootNode: environment().getRootNode,
|
|
65
|
-
...props
|
|
66
|
+
...runIfFn(props)
|
|
66
67
|
}));
|
|
67
68
|
const service = useMachine(pinInput.machine, machineProps);
|
|
68
69
|
return createMemo(() => pinInput.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';
|
|
@@ -84,7 +85,7 @@ var SegmentGroupLabel = (props) => {
|
|
|
84
85
|
const mergedProps = mergeProps(() => segmentGroup2().getLabelProps(), parts.label.attrs, props);
|
|
85
86
|
return createComponent(ark.label, mergedProps);
|
|
86
87
|
};
|
|
87
|
-
var useSegmentGroup = (props
|
|
88
|
+
var useSegmentGroup = (props) => {
|
|
88
89
|
const id = createUniqueId();
|
|
89
90
|
const locale = useLocaleContext();
|
|
90
91
|
const environment = useEnvironmentContext();
|
|
@@ -92,7 +93,7 @@ var useSegmentGroup = (props = {}) => {
|
|
|
92
93
|
id,
|
|
93
94
|
dir: locale().dir,
|
|
94
95
|
getRootNode: environment().getRootNode,
|
|
95
|
-
...props
|
|
96
|
+
...runIfFn(props)
|
|
96
97
|
}));
|
|
97
98
|
const service = useMachine(segmentGroup.machine, machineProps);
|
|
98
99
|
return createMemo(() => segmentGroup.connect(service, normalizeProps));
|
|
@@ -6,10 +6,13 @@ import {
|
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useEnvironmentContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./D2Z5BEON.jsx";
|
|
10
10
|
import {
|
|
11
11
|
createContext
|
|
12
12
|
} from "./TVCIHLER.jsx";
|
|
13
|
+
import {
|
|
14
|
+
runIfFn
|
|
15
|
+
} from "./KGOB2IMX.jsx";
|
|
13
16
|
import {
|
|
14
17
|
__export
|
|
15
18
|
} from "./7IUG3E2V.jsx";
|
|
@@ -66,13 +69,13 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
66
69
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
67
70
|
import * as timer from "@zag-js/timer";
|
|
68
71
|
import { createMemo, createUniqueId } from "solid-js";
|
|
69
|
-
var useTimer = (props
|
|
72
|
+
var useTimer = (props) => {
|
|
70
73
|
const id = createUniqueId();
|
|
71
74
|
const environment = useEnvironmentContext();
|
|
72
75
|
const machineProps = createMemo(() => ({
|
|
73
76
|
id,
|
|
74
77
|
getRootNode: environment().getRootNode,
|
|
75
|
-
...props
|
|
78
|
+
...runIfFn(props)
|
|
76
79
|
}));
|
|
77
80
|
const service = useMachine(timer.machine, machineProps);
|
|
78
81
|
return createMemo(() => timer.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 { createComponent } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -57,7 +58,7 @@ var TooltipPositioner = (props) => {
|
|
|
57
58
|
}
|
|
58
59
|
});
|
|
59
60
|
};
|
|
60
|
-
var useTooltip = (props
|
|
61
|
+
var useTooltip = (props) => {
|
|
61
62
|
const id = createUniqueId();
|
|
62
63
|
const locale = useLocaleContext();
|
|
63
64
|
const environment = useEnvironmentContext();
|
|
@@ -65,7 +66,7 @@ var useTooltip = (props = {}) => {
|
|
|
65
66
|
id,
|
|
66
67
|
dir: locale().dir,
|
|
67
68
|
getRootNode: environment().getRootNode,
|
|
68
|
-
...props
|
|
69
|
+
...runIfFn(props)
|
|
69
70
|
}));
|
|
70
71
|
const service = useMachine(tooltip.machine, machineProps);
|
|
71
72
|
return createMemo(() => tooltip.connect(service, normalizeProps));
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./A4744EEE.jsx";
|
|
7
7
|
import {
|
|
8
8
|
createSplitProps
|
|
9
9
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -12,13 +12,16 @@ import {
|
|
|
12
12
|
} from "./UFYZ7HLU.jsx";
|
|
13
13
|
import {
|
|
14
14
|
useEnvironmentContext
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./D2Z5BEON.jsx";
|
|
16
16
|
import {
|
|
17
17
|
useLocaleContext
|
|
18
18
|
} from "./RCXMZN3G.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./TVCIHLER.jsx";
|
|
22
|
+
import {
|
|
23
|
+
runIfFn
|
|
24
|
+
} from "./KGOB2IMX.jsx";
|
|
22
25
|
import {
|
|
23
26
|
__export
|
|
24
27
|
} from "./7IUG3E2V.jsx";
|
|
@@ -85,7 +88,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
85
88
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
86
89
|
import * as tooltip from "@zag-js/tooltip";
|
|
87
90
|
import { createMemo, createUniqueId } from "solid-js";
|
|
88
|
-
var useTooltip = (props
|
|
91
|
+
var useTooltip = (props) => {
|
|
89
92
|
const id = createUniqueId();
|
|
90
93
|
const locale = useLocaleContext();
|
|
91
94
|
const environment = useEnvironmentContext();
|
|
@@ -93,7 +96,7 @@ var useTooltip = (props = {}) => {
|
|
|
93
96
|
id,
|
|
94
97
|
dir: locale().dir,
|
|
95
98
|
getRootNode: environment().getRootNode,
|
|
96
|
-
...props
|
|
99
|
+
...runIfFn(props)
|
|
97
100
|
}));
|
|
98
101
|
const service = useMachine(tooltip.machine, machineProps);
|
|
99
102
|
return createMemo(() => tooltip.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";
|
|
@@ -8,15 +8,17 @@ import {
|
|
|
8
8
|
ark
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
10
|
import {
|
|
11
|
-
runIfFn,
|
|
12
11
|
useEnvironmentContext
|
|
13
|
-
} from "./
|
|
12
|
+
} from "./D2Z5BEON.jsx";
|
|
14
13
|
import {
|
|
15
14
|
useLocaleContext
|
|
16
15
|
} from "./RCXMZN3G.jsx";
|
|
17
16
|
import {
|
|
18
17
|
createContext
|
|
19
18
|
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
20
22
|
import {
|
|
21
23
|
__export
|
|
22
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -180,7 +182,8 @@ import { createMemo as createMemo3, createUniqueId } from "solid-js";
|
|
|
180
182
|
var useCheckbox = (ownProps = {}) => {
|
|
181
183
|
const checkboxGroup = useCheckboxGroupContext();
|
|
182
184
|
const props = createMemo3(() => {
|
|
183
|
-
|
|
185
|
+
const resolvedProps = runIfFn(ownProps);
|
|
186
|
+
return mergeProps5(resolvedProps, checkboxGroup?.().getItemProps({ value: resolvedProps.value }) ?? {});
|
|
184
187
|
}, [ownProps, checkboxGroup]);
|
|
185
188
|
const id = createUniqueId();
|
|
186
189
|
const locale = useLocaleContext();
|
|
@@ -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";
|
|
@@ -53,7 +56,7 @@ var useCollapsible = (props = {}) => {
|
|
|
53
56
|
const id = createUniqueId();
|
|
54
57
|
const locale = useLocaleContext();
|
|
55
58
|
const environment = useEnvironmentContext();
|
|
56
|
-
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
|
|
59
|
+
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(runIfFn(props));
|
|
57
60
|
const machineProps = createMemo(() => ({
|
|
58
61
|
id,
|
|
59
62
|
dir: locale().dir,
|
|
@@ -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, template, spread } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -52,7 +53,7 @@ var SignaturePadLabel = (props) => {
|
|
|
52
53
|
const mergedProps = mergeProps(() => signaturePad2().getLabelProps(), props);
|
|
53
54
|
return createComponent(ark.label, mergedProps);
|
|
54
55
|
};
|
|
55
|
-
var useSignaturePad = (props
|
|
56
|
+
var useSignaturePad = (props) => {
|
|
56
57
|
const id = createUniqueId();
|
|
57
58
|
const locale = useLocaleContext();
|
|
58
59
|
const environment = useEnvironmentContext();
|
|
@@ -68,7 +69,7 @@ var useSignaturePad = (props = {}) => {
|
|
|
68
69
|
required: field?.().required,
|
|
69
70
|
dir: locale().dir,
|
|
70
71
|
getRootNode: environment().getRootNode,
|
|
71
|
-
...props
|
|
72
|
+
...runIfFn(props)
|
|
72
73
|
}));
|
|
73
74
|
const service = useMachine(signaturePad.machine, machineProps);
|
|
74
75
|
return createMemo(() => signaturePad.connect(service, normalizeProps));
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
3
|
import { createContext } from './TROPIN4C.js';
|
|
4
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
4
5
|
import { __export } from './ESLJRKWD.js';
|
|
5
6
|
import { createComponent } from 'solid-js/web';
|
|
6
7
|
import { mergeProps } from '@zag-js/solid';
|
|
7
|
-
import { Show, createUniqueId, createSignal, createEffect, createMemo } from 'solid-js';
|
|
8
|
+
import { Show, mergeProps as mergeProps$1, createUniqueId, createSignal, createEffect, createMemo } from 'solid-js';
|
|
8
9
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
9
10
|
|
|
10
11
|
// src/components/fieldset/use-fieldset-context.ts
|
|
@@ -43,9 +44,9 @@ var parts = fieldsetAnatomy.build();
|
|
|
43
44
|
|
|
44
45
|
// src/components/fieldset/use-fieldset.ts
|
|
45
46
|
var useFieldset = (props) => {
|
|
46
|
-
const { disabled
|
|
47
|
+
const mergedProps = mergeProps$1({ disabled: false, invalid: false }, runIfFn(props));
|
|
47
48
|
let rootRef;
|
|
48
|
-
const id =
|
|
49
|
+
const id = mergedProps.id ?? createUniqueId();
|
|
49
50
|
const errorTextId = `fieldset::${id}::error-text`;
|
|
50
51
|
const helperTextId = `fieldset::${id}::helper-text`;
|
|
51
52
|
const [hasErrorText, setHasErrorText] = createSignal(false);
|
|
@@ -54,19 +55,19 @@ var useFieldset = (props) => {
|
|
|
54
55
|
return;
|
|
55
56
|
});
|
|
56
57
|
const labelIds = [];
|
|
57
|
-
if (hasErrorText() && invalid) labelIds.push(errorTextId);
|
|
58
|
+
if (hasErrorText() && mergedProps.invalid) labelIds.push(errorTextId);
|
|
58
59
|
if (hasHelperText()) labelIds.push(helperTextId);
|
|
59
60
|
const getRootProps = () => ({
|
|
60
61
|
...parts.root.attrs,
|
|
61
|
-
disabled,
|
|
62
|
-
"data-disabled": dataAttr(disabled),
|
|
63
|
-
"data-invalid": dataAttr(invalid),
|
|
62
|
+
disabled: mergedProps.disabled,
|
|
63
|
+
"data-disabled": dataAttr(mergedProps.disabled),
|
|
64
|
+
"data-invalid": dataAttr(mergedProps.invalid),
|
|
64
65
|
"aria-describedby": labelIds.join(" ") || void 0
|
|
65
66
|
});
|
|
66
67
|
const getLegendProps = () => ({
|
|
67
68
|
...parts.legend.attrs,
|
|
68
|
-
"data-disabled": dataAttr(disabled),
|
|
69
|
-
"data-invalid": dataAttr(invalid)
|
|
69
|
+
"data-disabled": dataAttr(mergedProps.disabled),
|
|
70
|
+
"data-invalid": dataAttr(mergedProps.invalid)
|
|
70
71
|
});
|
|
71
72
|
const getHelperTextProps = () => ({
|
|
72
73
|
id: helperTextId,
|
|
@@ -81,8 +82,8 @@ var useFieldset = (props) => {
|
|
|
81
82
|
refs: {
|
|
82
83
|
rootRef
|
|
83
84
|
},
|
|
84
|
-
disabled,
|
|
85
|
-
invalid,
|
|
85
|
+
disabled: mergedProps.disabled,
|
|
86
|
+
invalid: mergedProps.invalid,
|
|
86
87
|
getRootProps,
|
|
87
88
|
getLegendProps,
|
|
88
89
|
getHelperTextProps,
|
|
@@ -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";
|
|
@@ -75,7 +78,7 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
75
78
|
import * as progress from "@zag-js/progress";
|
|
76
79
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
77
80
|
import { createMemo, createUniqueId } from "solid-js";
|
|
78
|
-
var useProgress = (props
|
|
81
|
+
var useProgress = (props) => {
|
|
79
82
|
const id = createUniqueId();
|
|
80
83
|
const locale = useLocaleContext();
|
|
81
84
|
const environment = useEnvironmentContext();
|
|
@@ -84,7 +87,7 @@ var useProgress = (props = {}) => {
|
|
|
84
87
|
dir: locale().dir,
|
|
85
88
|
locale: locale().locale,
|
|
86
89
|
getRootNode: environment().getRootNode,
|
|
87
|
-
...props
|
|
90
|
+
...runIfFn(props)
|
|
88
91
|
}));
|
|
89
92
|
const service = useMachine(progress.machine, machineProps);
|
|
90
93
|
return createMemo(() => progress.connect(service, normalizeProps));
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./A4744EEE.jsx";
|
|
7
7
|
import {
|
|
8
8
|
RenderStrategyProvider,
|
|
9
9
|
splitRenderStrategyProps,
|
|
@@ -17,13 +17,16 @@ import {
|
|
|
17
17
|
} from "./UFYZ7HLU.jsx";
|
|
18
18
|
import {
|
|
19
19
|
useEnvironmentContext
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./D2Z5BEON.jsx";
|
|
21
21
|
import {
|
|
22
22
|
useLocaleContext
|
|
23
23
|
} from "./RCXMZN3G.jsx";
|
|
24
24
|
import {
|
|
25
25
|
createContext
|
|
26
26
|
} from "./TVCIHLER.jsx";
|
|
27
|
+
import {
|
|
28
|
+
runIfFn
|
|
29
|
+
} from "./KGOB2IMX.jsx";
|
|
27
30
|
import {
|
|
28
31
|
__export
|
|
29
32
|
} from "./7IUG3E2V.jsx";
|
|
@@ -198,7 +201,7 @@ var TourTitle = (props) => {
|
|
|
198
201
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
199
202
|
import * as tour from "@zag-js/tour";
|
|
200
203
|
import { createMemo, createUniqueId } from "solid-js";
|
|
201
|
-
var useTour = (props
|
|
204
|
+
var useTour = (props) => {
|
|
202
205
|
const id = createUniqueId();
|
|
203
206
|
const locale = useLocaleContext();
|
|
204
207
|
const environment = useEnvironmentContext();
|
|
@@ -206,7 +209,7 @@ var useTour = (props = {}) => {
|
|
|
206
209
|
id,
|
|
207
210
|
dir: locale().dir,
|
|
208
211
|
getRootNode: environment().getRootNode,
|
|
209
|
-
...props
|
|
212
|
+
...runIfFn(props)
|
|
210
213
|
}));
|
|
211
214
|
const service = useMachine(tour.machine, machineProps);
|
|
212
215
|
return createMemo(() => tour.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";
|
|
@@ -75,7 +78,7 @@ var usePagination = (props) => {
|
|
|
75
78
|
id,
|
|
76
79
|
dir: locale().dir,
|
|
77
80
|
getRootNode: environment().getRootNode,
|
|
78
|
-
...props
|
|
81
|
+
...runIfFn(props)
|
|
79
82
|
}));
|
|
80
83
|
const service = useMachine(pagination.machine, machineProps);
|
|
81
84
|
return createMemo(() => pagination.connect(service, normalizeProps));
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { createContext } from './TROPIN4C.js';
|
|
2
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
2
3
|
import { createComponent, memo, template, use } from 'solid-js/web';
|
|
3
4
|
import { getWindow, getDocument } from '@zag-js/dom-query';
|
|
4
5
|
import { createSignal, createMemo, Show } from 'solid-js';
|
|
5
6
|
|
|
6
|
-
// src/utils/run-if-fn.ts
|
|
7
|
-
var isFunction = (value) => typeof value === "function";
|
|
8
|
-
var runIfFn = (valueOrFn, ...args) => isFunction(valueOrFn) ? valueOrFn(...args) : valueOrFn;
|
|
9
|
-
|
|
10
7
|
// src/providers/environment/use-environment-context.ts
|
|
11
8
|
var [EnvironmentContextProvider, useEnvironmentContext] = createContext({
|
|
12
9
|
hookName: "useEnvironmentContext",
|
|
@@ -46,4 +43,4 @@ var EnvironmentProvider = (props) => {
|
|
|
46
43
|
});
|
|
47
44
|
};
|
|
48
45
|
|
|
49
|
-
export { EnvironmentProvider,
|
|
46
|
+
export { EnvironmentProvider, useEnvironmentContext };
|
|
@@ -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";
|
|
@@ -70,7 +73,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
70
73
|
import * as qrCode from "@zag-js/qr-code";
|
|
71
74
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
72
75
|
import { createMemo, createUniqueId } from "solid-js";
|
|
73
|
-
var useQrCode = (props
|
|
76
|
+
var useQrCode = (props) => {
|
|
74
77
|
const id = createUniqueId();
|
|
75
78
|
const locale = useLocaleContext();
|
|
76
79
|
const environment = useEnvironmentContext();
|
|
@@ -78,7 +81,7 @@ var useQrCode = (props = {}) => {
|
|
|
78
81
|
id,
|
|
79
82
|
dir: locale().dir,
|
|
80
83
|
getRootNode: environment().getRootNode,
|
|
81
|
-
...props
|
|
84
|
+
...runIfFn(props)
|
|
82
85
|
}));
|
|
83
86
|
const service = useMachine(qrCode.machine, machineProps);
|
|
84
87
|
return createMemo(() => qrCode.connect(service, normalizeProps));
|