@ark-ui/solid 4.10.2 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -9
- package/dist/chunk/{ATMUKDFF.js → 26K66CRD.js} +11 -12
- package/dist/chunk/{U3XJZI3X.jsx → 2LZKFXR5.jsx} +19 -26
- package/dist/chunk/{H4RSHLA7.jsx → 3FYZXSQZ.jsx} +14 -15
- package/dist/chunk/{MQDN267C.jsx → 3VO34CGN.jsx} +13 -13
- package/dist/chunk/{YV5BACLX.js → 46YZVE6D.js} +12 -11
- package/dist/chunk/{MBQQASZE.js → 4QFED3VE.js} +12 -12
- package/dist/chunk/{SWUA2VFC.js → 4UD3WT4B.js} +10 -12
- package/dist/chunk/{IQJBNZOX.jsx → 5T73FAJY.jsx} +13 -8
- package/dist/chunk/{IZC6PKGT.jsx → 65SQKHCI.jsx} +15 -16
- package/dist/chunk/{WM2IZOYM.jsx → 72UBZBQP.jsx} +53 -82
- package/dist/chunk/{F3QPTRGW.jsx → 7IHVZWMT.jsx} +32 -36
- package/dist/chunk/{X34KVQNW.js → 7KGMTGCS.js} +3 -2
- package/dist/chunk/{34MDPAG6.js → 7RR233CD.js} +30 -12
- package/dist/chunk/{7S43DIPW.js → 7S7524Q3.js} +15 -26
- package/dist/chunk/{E72NMPSK.jsx → A4744EEE.jsx} +9 -14
- package/dist/chunk/{BY62F4IV.jsx → AD2EIGNX.jsx} +13 -13
- package/dist/chunk/{3HMZSTYX.js → B246J3FR.js} +10 -11
- package/dist/chunk/{K54W24N6.jsx → B2KZ5VSW.jsx} +15 -17
- package/dist/chunk/{2GATVLPK.js → C4PG7WMU.js} +9 -9
- package/dist/chunk/{3LRXHWW2.js → C745EVQO.js} +32 -27
- package/dist/chunk/{TOVWS5LG.jsx → CA4LWAR2.jsx} +20 -26
- package/dist/chunk/{WKVZFHUH.jsx → CABZW4BQ.jsx} +19 -27
- package/dist/chunk/{Y4LH2CR6.jsx → CGBS64C2.jsx} +13 -13
- package/dist/chunk/{2HTNQLGP.jsx → CHLRHJV2.jsx} +13 -14
- package/dist/chunk/{SJSLQDBZ.jsx → CSDXHOTM.jsx} +15 -20
- package/dist/chunk/{5O4RWSWO.jsx → D2Z5BEON.jsx} +3 -3
- package/dist/chunk/{CPMYIT5J.jsx → D6BC5RCX.jsx} +16 -14
- package/dist/chunk/{6MXKM4GA.js → E4A5DGUC.js} +12 -12
- package/dist/chunk/{2J42A7KM.js → E5BXBABH.js} +2 -2
- package/dist/chunk/{U7SPBSDD.jsx → EEG3DZXG.jsx} +13 -15
- package/dist/chunk/{M2FICVVI.js → EI7I4DR6.js} +12 -13
- package/dist/chunk/{5CYHETDY.js → EWPKE75H.js} +10 -9
- package/dist/chunk/{2W32Z6JZ.js → F5GOQFKX.js} +12 -12
- package/dist/chunk/{CIPYIXIW.js → F7JP3DGZ.js} +11 -12
- package/dist/chunk/{PRMWTLUY.jsx → FUS6GOJL.jsx} +13 -11
- package/dist/chunk/{ASCGEGA5.jsx → GCDTOEZN.jsx} +16 -17
- package/dist/chunk/{G2WIACWP.js → GJSXT6PD.js} +11 -11
- package/dist/chunk/{LVPQ6GR4.js → GMNTJ5KE.js} +9 -9
- package/dist/chunk/{WPFSEVTX.js → I2RQ2435.js} +14 -16
- package/dist/chunk/{AIQFNVCU.jsx → IKA3JJFV.jsx} +14 -20
- package/dist/chunk/{3O5VTKDF.jsx → IYMTFLF3.jsx} +20 -33
- package/dist/chunk/{EHJDQTTW.jsx → JRMTU7C7.jsx} +3 -16
- package/dist/chunk/{VARNCRUN.js → JUYBJNX6.js} +19 -20
- package/dist/chunk/{FNEB2RAF.js → JWXGONCE.js} +12 -12
- package/dist/chunk/{SN5TXTB6.jsx → JZ7ZQZT4.jsx} +17 -54
- package/dist/chunk/{WQQVH7YG.jsx → KBHIJYMD.jsx} +34 -19
- package/dist/chunk/{MMS6MJ72.js → KFJJXGK6.js} +11 -13
- package/dist/chunk/{X3BMEEJH.js → KVVYU5Z3.js} +34 -14
- package/dist/chunk/{T4NRAKVA.jsx → KZCXBFHA.jsx} +14 -12
- package/dist/chunk/{5EVN6V64.js → LK5627GR.js} +15 -17
- package/dist/chunk/{5JS7LFUQ.js → LTZUX6NG.js} +12 -10
- package/dist/chunk/{NK4T7LIZ.jsx → MA35L6TV.jsx} +12 -13
- package/dist/chunk/{ZC6KWJ4T.jsx → MDJAL2LV.jsx} +12 -14
- package/dist/chunk/{CCA5XJM6.jsx → MERJALY6.jsx} +23 -38
- package/dist/chunk/MOG4V2NQ.jsx +15 -0
- package/dist/chunk/{2H4WHODR.js → MSLAT5GQ.js} +10 -12
- package/dist/chunk/{5ONYCKM3.jsx → NEBB7COJ.jsx} +1 -1
- package/dist/chunk/{DU4TY3XA.jsx → NEYCBIOW.jsx} +16 -17
- package/dist/chunk/{DXYB7RYX.js → NF3HZO6T.js} +12 -10
- package/dist/chunk/{5XD5ZSBX.js → NZEL4233.js} +15 -18
- package/dist/chunk/OAPCRIL5.js +8 -0
- package/dist/chunk/{LCESUDZB.js → OY4ARTMM.js} +7 -14
- package/dist/chunk/{Q7NPTAJI.js → QBFJVUX3.js} +10 -10
- package/dist/chunk/{HPDOBQ3V.js → QEMQBM6W.js} +1 -1
- package/dist/chunk/{L7OSYHVR.js → QFAL6GWC.js} +1 -1
- package/dist/chunk/{34OZO53S.js → QTSWXPKO.js} +12 -14
- package/dist/chunk/{JVXNYKNA.js → R5NPBVOA.js} +11 -12
- package/dist/chunk/{3QQZKR3F.jsx → RCXMZN3G.jsx} +1 -1
- package/dist/chunk/{5SRZ3YYC.js → ROXCI3ZP.js} +10 -10
- package/dist/chunk/{GZVCPLKK.jsx → RY6GW37O.jsx} +14 -12
- package/dist/chunk/SDD2HKR3.js +71 -0
- package/dist/chunk/{RAEDLHD3.js → TKGOCHK5.js} +14 -16
- package/dist/chunk/{I5UG2QUO.js → TROPIN4C.js} +1 -7
- package/dist/chunk/{AX5SMQMA.js → TRUQMF25.js} +19 -19
- package/dist/chunk/{NMGUCD2L.jsx → TVCIHLER.jsx} +2 -11
- package/dist/chunk/{YCYZZGN2.jsx → TZDLUIKR.jsx} +14 -10
- package/dist/chunk/{QGV2SUTQ.jsx → U3J33PVO.jsx} +21 -21
- package/dist/chunk/{P7I44WC4.jsx → UCYPIMZC.jsx} +21 -22
- package/dist/chunk/{GXWVYON6.js → UODFV2GS.js} +11 -12
- package/dist/chunk/{7YIHAT7J.jsx → V564AMKR.jsx} +39 -18
- package/dist/chunk/{PSLLOEMD.js → VLQWCBZM.js} +16 -29
- package/dist/chunk/{3WGLTS6O.js → VNK2NPTS.js} +10 -10
- package/dist/chunk/{WIVXL7HJ.jsx → WDXH3NHK.jsx} +14 -15
- package/dist/chunk/{QQUR4MWN.js → WGFUGTWA.js} +18 -19
- package/dist/chunk/{B7LE23PE.jsx → WNIFZKTJ.jsx} +13 -14
- package/dist/chunk/{IOTZAUDA.jsx → WUTUKX4C.jsx} +1 -1
- package/dist/chunk/{XUVXUPEH.js → XN3MSM3M.js} +14 -18
- package/dist/chunk/{MYMGOYXH.js → XR4WJDUT.js} +2 -2
- package/dist/chunk/{DOPROT6M.jsx → XZZ6TULR.jsx} +15 -10
- package/dist/chunk/{QZYE5W7T.jsx → Y7EY3OTU.jsx} +16 -21
- package/dist/chunk/{MRQ2UYM4.jsx → YIVTZ7BP.jsx} +12 -11
- package/dist/chunk/{QODB3C3M.js → YMMMHJJS.js} +3 -3
- package/dist/chunk/{HU7FZMJI.jsx → YPH7FBUN.jsx} +14 -16
- package/dist/chunk/{TC2QHQ47.jsx → Z254KIAA.jsx} +22 -44
- package/dist/chunk/{W43X4SNE.js → Z2TDX72A.js} +9 -8
- package/dist/chunk/{6YQ3EF2J.js → ZGXZNLX2.js} +12 -13
- package/dist/chunk/{R6RE56DG.jsx → ZJM2GZS7.jsx} +4 -1
- package/dist/chunk/{UGKLUHKU.js → ZOGAU3AQ.js} +11 -13
- package/dist/chunk/{7PKUSZKY.jsx → ZPSBF7S2.jsx} +14 -11
- package/dist/chunk/{RZBYC7DR.jsx → ZYF7GVNI.jsx} +21 -27
- package/dist/components/accordion/index.d.ts +4 -9
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +7 -7
- package/dist/components/avatar/index.d.ts +4 -4
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +5 -5
- package/dist/components/carousel/index.d.ts +4 -9
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +5 -5
- package/dist/components/checkbox/index.d.ts +5 -10
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +8 -8
- package/dist/components/clipboard/index.d.ts +4 -4
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +5 -5
- package/dist/components/collapsible/index.d.ts +4 -9
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +6 -6
- package/dist/components/collection.d.ts +3 -3
- package/dist/components/collection.js +1 -1
- package/dist/components/collection.jsx +1 -1
- package/dist/components/color-picker/index.d.ts +6 -16
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +10 -9
- package/dist/components/combobox/index.d.ts +5 -15
- package/dist/components/combobox/index.js +2 -2
- package/dist/components/combobox/index.jsx +12 -11
- package/dist/components/date-picker/index.d.ts +6 -18
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +7 -7
- package/dist/components/dialog/index.d.ts +5 -10
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +7 -7
- package/dist/components/editable/index.d.ts +4 -14
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +8 -7
- package/dist/components/factory.d.ts +1 -1
- package/dist/components/field/index.d.ts +4 -4
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +5 -3
- package/dist/components/fieldset/index.d.ts +4 -4
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/fieldset/index.jsx +3 -2
- package/dist/components/file-upload/index.d.ts +4 -4
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +8 -7
- package/dist/components/focus-trap/index.d.ts +2 -2
- package/dist/components/format/index.js +1 -1
- package/dist/components/format/index.jsx +4 -4
- package/dist/components/frame/index.d.ts +1 -1
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/index.jsx +4 -4
- 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 +5 -10
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +7 -7
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +46 -46
- package/dist/components/index.jsx +289 -290
- package/dist/components/menu/index.d.ts +6 -11
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +7 -7
- package/dist/components/number-input/index.d.ts +4 -9
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +8 -7
- package/dist/components/pagination/index.d.ts +4 -9
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +5 -5
- package/dist/components/pin-input/index.d.ts +4 -9
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +8 -7
- package/dist/components/popover/index.d.ts +5 -10
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +7 -7
- package/dist/components/presence/index.d.ts +3 -3
- package/dist/components/presence/index.js +1 -1
- package/dist/components/presence/index.jsx +4 -3
- package/dist/components/progress/index.d.ts +4 -9
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +5 -5
- package/dist/components/qr-code/index.d.ts +4 -9
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +5 -5
- package/dist/components/radio-group/index.d.ts +4 -9
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +5 -5
- package/dist/components/rating-group/index.d.ts +6 -11
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +8 -7
- package/dist/components/segment-group/index.d.ts +5 -10
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +5 -5
- package/dist/components/select/index.d.ts +5 -15
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/index.jsx +12 -11
- package/dist/components/signature-pad/index.d.ts +4 -4
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +8 -7
- package/dist/components/slider/index.d.ts +4 -9
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +5 -5
- package/dist/components/splitter/index.d.ts +4 -9
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +5 -5
- package/dist/components/steps/index.d.ts +8 -12
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +5 -5
- package/dist/components/switch/index.d.ts +4 -9
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +8 -7
- package/dist/components/tabs/index.d.ts +4 -9
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +7 -7
- package/dist/components/tags-input/index.d.ts +4 -9
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +8 -7
- package/dist/components/time-picker/index.d.ts +5 -15
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/index.jsx +7 -7
- package/dist/components/timer/index.d.ts +4 -4
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +5 -5
- package/dist/components/toast/index.d.ts +6 -7
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +6 -2
- package/dist/components/toggle/index.d.ts +7 -36
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/index.jsx +2 -4
- package/dist/components/toggle-group/index.d.ts +4 -9
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +5 -5
- package/dist/components/tooltip/index.d.ts +5 -10
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +7 -7
- package/dist/components/tour/index.d.ts +6 -6
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +7 -7
- package/dist/components/tree-view/index.d.ts +7 -17
- package/dist/components/tree-view/index.js +2 -2
- package/dist/components/tree-view/index.jsx +9 -9
- package/dist/index.d.ts +3 -2
- package/dist/index.js +48 -48
- package/dist/index.jsx +290 -291
- package/dist/providers/environment/index.js +1 -1
- package/dist/providers/environment/index.jsx +2 -2
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.jsx +4 -4
- package/dist/providers/locale/index.js +1 -1
- package/dist/providers/locale/index.jsx +2 -2
- package/dist/types-CxryXVkR.d.ts +8 -0
- package/dist/{use-presence-Ct1onT3-.d.ts → use-presence-B6QV_j94.d.ts} +3 -3
- package/package.json +71 -78
- package/dist/chunk/52WUF3CY.jsx +0 -26
- package/dist/chunk/BSPFGETO.js +0 -21
- package/dist/chunk/CTTG4GSG.js +0 -30
- package/dist/chunk/JHG4EID2.jsx +0 -233
- package/dist/chunk/MV3KTL7M.js +0 -107
- package/dist/types-B277wCdv.d.ts +0 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collapsible_exports,
|
|
3
3
|
useCollapsibleContext
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./WNIFZKTJ.jsx";
|
|
5
5
|
import {
|
|
6
6
|
RenderStrategyProvider,
|
|
7
7
|
splitRenderStrategyProps,
|
|
8
8
|
useRenderStrategyContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./NEBB7COJ.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
|
-
} from "./
|
|
21
|
+
} from "./RCXMZN3G.jsx";
|
|
22
22
|
import {
|
|
23
23
|
createContext
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./TVCIHLER.jsx";
|
|
25
|
+
import {
|
|
26
|
+
runIfFn
|
|
27
|
+
} from "./KGOB2IMX.jsx";
|
|
25
28
|
import {
|
|
26
29
|
__export
|
|
27
30
|
} from "./7IUG3E2V.jsx";
|
|
@@ -80,10 +83,7 @@ var AccordionItemContent = (props) => {
|
|
|
80
83
|
const itemProps = useAccordionItemPropsContext();
|
|
81
84
|
const itemContentProps = createMemo2(() => {
|
|
82
85
|
const contentProps = accordion2().getItemContentProps(itemProps);
|
|
83
|
-
const [, ownProps] = splitVisibilityProps(contentProps, [
|
|
84
|
-
"hidden",
|
|
85
|
-
"data-state"
|
|
86
|
-
]);
|
|
86
|
+
const [, ownProps] = splitVisibilityProps(contentProps, ["hidden", "data-state"]);
|
|
87
87
|
return ownProps;
|
|
88
88
|
});
|
|
89
89
|
const mergedProps = mergeProps2(() => itemContentProps(), props);
|
|
@@ -121,21 +121,18 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
121
121
|
import * as accordion from "@zag-js/accordion";
|
|
122
122
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
123
123
|
import { createMemo as createMemo3, createUniqueId } from "solid-js";
|
|
124
|
-
var useAccordion = (props
|
|
124
|
+
var useAccordion = (props) => {
|
|
125
125
|
const id = createUniqueId();
|
|
126
126
|
const locale = useLocaleContext();
|
|
127
127
|
const environment = useEnvironmentContext();
|
|
128
|
-
const
|
|
128
|
+
const machineProps = createMemo3(() => ({
|
|
129
129
|
id,
|
|
130
130
|
dir: locale().dir,
|
|
131
|
-
value: props.defaultValue,
|
|
132
131
|
getRootNode: environment().getRootNode,
|
|
133
|
-
...props
|
|
132
|
+
...runIfFn(props)
|
|
134
133
|
}));
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
});
|
|
138
|
-
return createMemo3(() => accordion.connect(state, send, normalizeProps));
|
|
134
|
+
const service = useMachine(accordion.machine, machineProps);
|
|
135
|
+
return createMemo3(() => accordion.connect(service, normalizeProps));
|
|
139
136
|
};
|
|
140
137
|
|
|
141
138
|
// src/components/accordion/accordion-root.tsx
|
|
@@ -166,9 +163,7 @@ var AccordionRoot = (props) => {
|
|
|
166
163
|
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
167
164
|
var AccordionRootProvider = (props) => {
|
|
168
165
|
const [renderStrategyProps, accordionProps] = splitRenderStrategyProps(props);
|
|
169
|
-
const [{ value: accordion2 }, localProps] = createSplitProps()(accordionProps, [
|
|
170
|
-
"value"
|
|
171
|
-
]);
|
|
166
|
+
const [{ value: accordion2 }, localProps] = createSplitProps()(accordionProps, ["value"]);
|
|
172
167
|
const mergedProps = mergeProps6(() => accordion2().getRootProps(), localProps);
|
|
173
168
|
return <AccordionProvider value={accordion2}>
|
|
174
169
|
<RenderStrategyProvider value={renderStrategyProps}>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createContext
|
|
3
|
+
} from "./TVCIHLER.jsx";
|
|
1
4
|
import {
|
|
2
5
|
runIfFn
|
|
3
6
|
} from "./KGOB2IMX.jsx";
|
|
4
|
-
import {
|
|
5
|
-
createContext
|
|
6
|
-
} from "./NMGUCD2L.jsx";
|
|
7
7
|
|
|
8
8
|
// src/providers/environment/environment-provider.tsx
|
|
9
9
|
import { getDocument, getWindow } from "@zag-js/dom-query";
|
|
@@ -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
|
-
} from "./
|
|
18
|
+
} from "./RCXMZN3G.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./TVCIHLER.jsx";
|
|
22
|
+
import {
|
|
23
|
+
runIfFn
|
|
24
|
+
} from "./KGOB2IMX.jsx";
|
|
22
25
|
import {
|
|
23
26
|
__export
|
|
24
27
|
} from "./7IUG3E2V.jsx";
|
|
@@ -85,20 +88,18 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
85
88
|
import * as hoverCard from "@zag-js/hover-card";
|
|
86
89
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
87
90
|
import { createMemo, createUniqueId } from "solid-js";
|
|
88
|
-
var useHoverCard = (props
|
|
91
|
+
var useHoverCard = (props) => {
|
|
89
92
|
const locale = useLocaleContext();
|
|
90
93
|
const environment = useEnvironmentContext();
|
|
91
94
|
const id = createUniqueId();
|
|
92
|
-
const
|
|
95
|
+
const machineProps = createMemo(() => ({
|
|
93
96
|
id,
|
|
94
97
|
dir: locale().dir,
|
|
95
98
|
getRootNode: environment().getRootNode,
|
|
96
|
-
|
|
97
|
-
"open.controlled": props.open !== void 0,
|
|
98
|
-
...props
|
|
99
|
+
...runIfFn(props)
|
|
99
100
|
}));
|
|
100
|
-
const
|
|
101
|
-
return createMemo(() => hoverCard.connect(
|
|
101
|
+
const service = useMachine(hoverCard.machine, machineProps);
|
|
102
|
+
return createMemo(() => hoverCard.connect(service, normalizeProps));
|
|
102
103
|
};
|
|
103
104
|
|
|
104
105
|
// src/components/hover-card/hover-card-root.tsx
|
|
@@ -109,7 +110,10 @@ var HoverCardRoot = (props) => {
|
|
|
109
110
|
"defaultOpen",
|
|
110
111
|
"id",
|
|
111
112
|
"ids",
|
|
113
|
+
"onFocusOutside",
|
|
114
|
+
"onInteractOutside",
|
|
112
115
|
"onOpenChange",
|
|
116
|
+
"onPointerDownOutside",
|
|
113
117
|
"open",
|
|
114
118
|
"openDelay",
|
|
115
119
|
"positioning"
|
|
@@ -125,9 +129,7 @@ var HoverCardRoot = (props) => {
|
|
|
125
129
|
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
126
130
|
var HoverCardRootProvider = (props) => {
|
|
127
131
|
const [presenceProps, hoverCardProps] = splitPresenceProps(props);
|
|
128
|
-
const presence = usePresence(
|
|
129
|
-
mergeProps6(presenceProps, () => ({ present: hoverCardProps.value().open }))
|
|
130
|
-
);
|
|
132
|
+
const presence = usePresence(mergeProps6(presenceProps, () => ({ present: hoverCardProps.value().open })));
|
|
131
133
|
return <HoverCardProvider value={hoverCardProps.value}>
|
|
132
134
|
<PresenceProvider value={presence}>{hoverCardProps.children}</PresenceProvider>
|
|
133
135
|
</HoverCardProvider>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './KVVYU5Z3.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
5
|
-
import { useLocaleContext } from './
|
|
6
|
-
import { createContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
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,12 +46,12 @@ 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) => {
|
|
50
|
+
const id = createUniqueId();
|
|
49
51
|
const locale = useLocaleContext();
|
|
50
52
|
const environment = useEnvironmentContext();
|
|
51
|
-
const id = createUniqueId();
|
|
52
53
|
const field = useFieldContext();
|
|
53
|
-
const
|
|
54
|
+
const machineProps = createMemo(() => ({
|
|
54
55
|
id,
|
|
55
56
|
ids: {
|
|
56
57
|
label: field?.().ids.label,
|
|
@@ -62,16 +63,15 @@ var usePinInput = (props = {}) => {
|
|
|
62
63
|
invalid: field?.().invalid,
|
|
63
64
|
dir: locale().dir,
|
|
64
65
|
getRootNode: environment().getRootNode,
|
|
65
|
-
|
|
66
|
-
...props
|
|
66
|
+
...runIfFn(props)
|
|
67
67
|
}));
|
|
68
|
-
const
|
|
69
|
-
return createMemo(() => pinInput.connect(
|
|
68
|
+
const service = useMachine(pinInput.machine, machineProps);
|
|
69
|
+
return createMemo(() => pinInput.connect(service, normalizeProps));
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
// src/components/pin-input/pin-input-root.tsx
|
|
73
73
|
var PinInputRoot = (props) => {
|
|
74
|
-
const [usePinInputProps, localProps] = createSplitProps()(props, ["autoFocus", "blurOnComplete", "defaultValue", "disabled", "form", "id", "ids", "invalid", "mask", "name", "onValueChange", "onValueComplete", "onValueInvalid", "otp", "pattern", "placeholder", "readOnly", "required", "selectOnFocus", "translations", "type", "value"]);
|
|
74
|
+
const [usePinInputProps, localProps] = createSplitProps()(props, ["autoFocus", "blurOnComplete", "count", "defaultValue", "disabled", "form", "id", "ids", "invalid", "mask", "name", "onValueChange", "onValueComplete", "onValueInvalid", "otp", "pattern", "placeholder", "readOnly", "required", "selectOnFocus", "translations", "type", "value"]);
|
|
75
75
|
const pinInput2 = usePinInput(usePinInputProps);
|
|
76
76
|
const mergedProps = mergeProps(() => pinInput2().getRootProps(), localProps);
|
|
77
77
|
return createComponent(PinInputProvider, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { composeRefs } from './XN6EERRM.js';
|
|
2
|
-
import { EnvironmentProvider } from './
|
|
3
|
-
import { createComponent, use, spread, insert, Portal
|
|
2
|
+
import { EnvironmentProvider } from './YMMMHJJS.js';
|
|
3
|
+
import { createComponent, template, use, spread, insert, Portal } from 'solid-js/web';
|
|
4
4
|
import { splitProps, createMemo, createSignal, createEffect, onCleanup, Show } from 'solid-js';
|
|
5
5
|
|
|
6
6
|
var FrameContent = (props) => {
|
|
@@ -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
|
-
} from "./
|
|
12
|
+
} from "./RCXMZN3G.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./TVCIHLER.jsx";
|
|
16
|
+
import {
|
|
17
|
+
runIfFn
|
|
18
|
+
} from "./KGOB2IMX.jsx";
|
|
16
19
|
import {
|
|
17
20
|
__export
|
|
18
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -42,21 +45,18 @@ import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
|
42
45
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
43
46
|
import * as toggleGroup from "@zag-js/toggle-group";
|
|
44
47
|
import { createMemo, createUniqueId } from "solid-js";
|
|
45
|
-
var useToggleGroup = (props
|
|
48
|
+
var useToggleGroup = (props) => {
|
|
49
|
+
const id = createUniqueId();
|
|
46
50
|
const locale = useLocaleContext();
|
|
47
51
|
const environment = useEnvironmentContext();
|
|
48
|
-
const
|
|
49
|
-
const context = createMemo(() => ({
|
|
52
|
+
const machineProps = createMemo(() => ({
|
|
50
53
|
id,
|
|
51
54
|
dir: locale().dir,
|
|
52
55
|
getRootNode: environment().getRootNode,
|
|
53
|
-
|
|
54
|
-
...props
|
|
56
|
+
...runIfFn(props)
|
|
55
57
|
}));
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
});
|
|
59
|
-
return createMemo(() => toggleGroup.connect(state, send, normalizeProps));
|
|
58
|
+
const service = useMachine(toggleGroup.machine, machineProps);
|
|
59
|
+
return createMemo(() => toggleGroup.connect(service, normalizeProps));
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
// src/components/toggle-group/toggle-group-root.tsx
|
|
@@ -83,9 +83,7 @@ var ToggleGroupRoot = (props) => {
|
|
|
83
83
|
// src/components/toggle-group/toggle-group-root-provider.tsx
|
|
84
84
|
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
85
85
|
var ToggleGroupRootProvider = (props) => {
|
|
86
|
-
const [{ value: toggleGroup2 }, localProps] = createSplitProps()(props, [
|
|
87
|
-
"value"
|
|
88
|
-
]);
|
|
86
|
+
const [{ value: toggleGroup2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
89
87
|
const mergedProps = mergeProps3(() => toggleGroup2().getRootProps(), localProps);
|
|
90
88
|
return <ToggleGroupProvider value={toggleGroup2}>
|
|
91
89
|
<ark.div {...mergedProps} />
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
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 './
|
|
5
|
-
import { useLocaleContext } from './
|
|
6
|
-
import { createContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
|
+
import { createContext } from './TROPIN4C.js';
|
|
7
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
7
8
|
import { __export } from './ESLJRKWD.js';
|
|
8
9
|
export { parseTime } from '@internationalized/date';
|
|
9
10
|
import { createComponent } from 'solid-js/web';
|
|
@@ -98,21 +99,19 @@ var TimePickerPositioner = (props) => {
|
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
};
|
|
101
|
-
var useTimePicker = (props
|
|
102
|
+
var useTimePicker = (props) => {
|
|
103
|
+
const id = createUniqueId();
|
|
102
104
|
const locale = useLocaleContext();
|
|
103
105
|
const environment = useEnvironmentContext();
|
|
104
|
-
const
|
|
105
|
-
const context = createMemo(() => ({
|
|
106
|
+
const machineProps = createMemo(() => ({
|
|
106
107
|
id,
|
|
107
108
|
dir: locale().dir,
|
|
108
109
|
getRootNode: environment().getRootNode,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
value: props.defaultValue,
|
|
112
|
-
...props
|
|
110
|
+
locale: locale().locale,
|
|
111
|
+
...runIfFn(props)
|
|
113
112
|
}));
|
|
114
|
-
const
|
|
115
|
-
return createMemo(() => timePicker.connect(
|
|
113
|
+
const service = useMachine(timePicker.machine, machineProps);
|
|
114
|
+
return createMemo(() => timePicker.connect(service, normalizeProps));
|
|
116
115
|
};
|
|
117
116
|
|
|
118
117
|
// src/components/time-picker/time-picker-root.tsx
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
4
|
-
import { createContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
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';
|
|
@@ -55,21 +56,21 @@ var ClipboardLabel = (props) => {
|
|
|
55
56
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
56
57
|
return createComponent(ark.label, mergedProps);
|
|
57
58
|
};
|
|
58
|
-
var useClipboard = (props
|
|
59
|
-
const environment = useEnvironmentContext();
|
|
59
|
+
var useClipboard = (props) => {
|
|
60
60
|
const id = createUniqueId();
|
|
61
|
-
const
|
|
61
|
+
const environment = useEnvironmentContext();
|
|
62
|
+
const machineProps = createMemo(() => ({
|
|
62
63
|
id,
|
|
63
64
|
getRootNode: environment().getRootNode,
|
|
64
|
-
...props
|
|
65
|
+
...runIfFn(props)
|
|
65
66
|
}));
|
|
66
|
-
const
|
|
67
|
-
return createMemo(() => clipboard.connect(
|
|
67
|
+
const service = useMachine(clipboard.machine, machineProps);
|
|
68
|
+
return createMemo(() => clipboard.connect(service, normalizeProps));
|
|
68
69
|
};
|
|
69
70
|
|
|
70
71
|
// src/components/clipboard/clipboard-root.tsx
|
|
71
72
|
var ClipboardRoot = (props) => {
|
|
72
|
-
const [useClipboardProps, localProps] = createSplitProps()(props, ["id", "ids", "onStatusChange", "timeout", "value"]);
|
|
73
|
+
const [useClipboardProps, localProps] = createSplitProps()(props, ["defaultValue", "id", "ids", "onStatusChange", "onValueChange", "timeout", "value"]);
|
|
73
74
|
const api = useClipboard(useClipboardProps);
|
|
74
75
|
const mergedProps = mergeProps(() => api().getRootProps(), localProps);
|
|
75
76
|
return createComponent(ClipboardProvider, {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { usePresence, PresenceProvider } from './
|
|
2
|
-
import {
|
|
1
|
+
import { usePresence, PresenceProvider } from './OY4ARTMM.js';
|
|
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 './
|
|
6
|
-
import { useLocaleContext } from './
|
|
7
|
-
import { createContext } from './
|
|
5
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
6
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
7
|
+
import { createContext } from './TROPIN4C.js';
|
|
8
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
8
9
|
import { __export } from './ESLJRKWD.js';
|
|
9
10
|
import { createComponent } from 'solid-js/web';
|
|
10
11
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -61,19 +62,18 @@ var TabTrigger = (props) => {
|
|
|
61
62
|
|
|
62
63
|
// src/components/tabs/tabs-context.tsx
|
|
63
64
|
var TabsContext = (props) => props.children(useTabsContext());
|
|
64
|
-
var useTabs = (props
|
|
65
|
+
var useTabs = (props) => {
|
|
66
|
+
const id = createUniqueId();
|
|
65
67
|
const locale = useLocaleContext();
|
|
66
68
|
const environment = useEnvironmentContext();
|
|
67
|
-
const
|
|
68
|
-
const context = createMemo(() => ({
|
|
69
|
+
const machineProps = createMemo(() => ({
|
|
69
70
|
id,
|
|
70
71
|
dir: locale().dir,
|
|
71
72
|
getRootNode: environment().getRootNode,
|
|
72
|
-
|
|
73
|
-
...props
|
|
73
|
+
...runIfFn(props)
|
|
74
74
|
}));
|
|
75
|
-
const
|
|
76
|
-
return createMemo(() => tabs.connect(
|
|
75
|
+
const service = useMachine(tabs.machine, machineProps);
|
|
76
|
+
return createMemo(() => tabs.connect(service, normalizeProps));
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
// src/components/tabs/tabs-root.tsx
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { usePresence,
|
|
2
|
-
import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './
|
|
1
|
+
import { usePresence, splitPresenceProps, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
|
|
2
|
+
import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './QFAL6GWC.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
|
-
import { useEnvironmentContext } from './
|
|
6
|
-
import { useLocaleContext } from './
|
|
7
|
-
import { createContext } from './
|
|
5
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
6
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
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';
|
|
@@ -188,20 +189,18 @@ var TourTitle = (props) => {
|
|
|
188
189
|
}
|
|
189
190
|
}));
|
|
190
191
|
};
|
|
191
|
-
var useTour = (props
|
|
192
|
+
var useTour = (props) => {
|
|
192
193
|
const id = createUniqueId();
|
|
193
194
|
const locale = useLocaleContext();
|
|
194
195
|
const environment = useEnvironmentContext();
|
|
195
|
-
const
|
|
196
|
+
const machineProps = createMemo(() => ({
|
|
196
197
|
id,
|
|
197
198
|
dir: locale().dir,
|
|
198
199
|
getRootNode: environment().getRootNode,
|
|
199
|
-
...props
|
|
200
|
+
...runIfFn(props)
|
|
200
201
|
}));
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
});
|
|
204
|
-
return createMemo(() => tour.connect(state, send, normalizeProps));
|
|
202
|
+
const service = useMachine(tour.machine, machineProps);
|
|
203
|
+
return createMemo(() => tour.connect(service, normalizeProps));
|
|
205
204
|
};
|
|
206
205
|
|
|
207
206
|
// src/components/tour/tour.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./UCYPIMZC.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
|
-
} from "./
|
|
15
|
+
} from "./RCXMZN3G.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
19
22
|
import {
|
|
20
23
|
__export
|
|
21
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -61,12 +64,12 @@ 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) => {
|
|
68
|
+
const id = createUniqueId();
|
|
65
69
|
const locale = useLocaleContext();
|
|
66
70
|
const environment = useEnvironmentContext();
|
|
67
|
-
const id = createUniqueId();
|
|
68
71
|
const field = useFieldContext();
|
|
69
|
-
const
|
|
72
|
+
const machineProps = createMemo(() => ({
|
|
70
73
|
id,
|
|
71
74
|
ids: {
|
|
72
75
|
label: field?.().ids.label,
|
|
@@ -78,11 +81,10 @@ var useSwitch = (props = {}) => {
|
|
|
78
81
|
required: field?.().required,
|
|
79
82
|
dir: locale().dir,
|
|
80
83
|
getRootNode: environment().getRootNode,
|
|
81
|
-
|
|
82
|
-
...props
|
|
84
|
+
...runIfFn(props)
|
|
83
85
|
}));
|
|
84
|
-
const
|
|
85
|
-
return createMemo(() => zagSwitch.connect(
|
|
86
|
+
const service = useMachine(zagSwitch.machine, machineProps);
|
|
87
|
+
return createMemo(() => zagSwitch.connect(service, normalizeProps));
|
|
86
88
|
};
|
|
87
89
|
|
|
88
90
|
// src/components/switch/switch-root.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./UCYPIMZC.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
|
-
} from "./
|
|
15
|
+
} from "./RCXMZN3G.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./TVCIHLER.jsx";
|
|
19
|
+
import {
|
|
20
|
+
runIfFn
|
|
21
|
+
} from "./KGOB2IMX.jsx";
|
|
19
22
|
import {
|
|
20
23
|
__export
|
|
21
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -123,10 +126,7 @@ var FileUploadItemPreviewImage = (props) => {
|
|
|
123
126
|
const cleanup = fileUpload2().createFileUrl(itemProps.file, (url2) => setUrl(url2));
|
|
124
127
|
onCleanup(cleanup);
|
|
125
128
|
});
|
|
126
|
-
const mergedProps = mergeProps9(
|
|
127
|
-
() => fileUpload2().getItemPreviewImageProps({ ...itemProps, url: url() }),
|
|
128
|
-
props
|
|
129
|
-
);
|
|
129
|
+
const mergedProps = mergeProps9(() => fileUpload2().getItemPreviewImageProps({ ...itemProps, url: url() }), props);
|
|
130
130
|
return <Show when={url()}>
|
|
131
131
|
<ark.img {...mergedProps} />
|
|
132
132
|
</Show>;
|
|
@@ -156,12 +156,12 @@ import { mergeProps as mergeProps12 } from "@zag-js/solid";
|
|
|
156
156
|
import * as fileUpload from "@zag-js/file-upload";
|
|
157
157
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
158
158
|
import { createMemo, createUniqueId } from "solid-js";
|
|
159
|
-
var useFileUpload = (props
|
|
159
|
+
var useFileUpload = (props) => {
|
|
160
|
+
const id = createUniqueId();
|
|
160
161
|
const locale = useLocaleContext();
|
|
161
162
|
const environment = useEnvironmentContext();
|
|
162
|
-
const id = createUniqueId();
|
|
163
163
|
const field = useFieldContext();
|
|
164
|
-
const
|
|
164
|
+
const machineProps = createMemo(() => ({
|
|
165
165
|
id,
|
|
166
166
|
ids: {
|
|
167
167
|
label: field?.().ids.label,
|
|
@@ -169,13 +169,14 @@ var useFileUpload = (props = {}) => {
|
|
|
169
169
|
},
|
|
170
170
|
dir: locale().dir,
|
|
171
171
|
disabled: field?.().disabled,
|
|
172
|
+
locale: locale().locale,
|
|
172
173
|
required: field?.().required,
|
|
173
174
|
invalid: field?.().invalid,
|
|
174
175
|
getRootNode: environment().getRootNode,
|
|
175
|
-
...props
|
|
176
|
+
...runIfFn(props)
|
|
176
177
|
}));
|
|
177
|
-
const
|
|
178
|
-
return createMemo(() => fileUpload.connect(
|
|
178
|
+
const service = useMachine(fileUpload.machine, machineProps);
|
|
179
|
+
return createMemo(() => fileUpload.connect(service, normalizeProps));
|
|
179
180
|
};
|
|
180
181
|
|
|
181
182
|
// src/components/file-upload/file-upload-root.tsx
|
|
@@ -212,9 +213,7 @@ var FileUploadRoot = (props) => {
|
|
|
212
213
|
// src/components/file-upload/file-upload-root-provider.tsx
|
|
213
214
|
import { mergeProps as mergeProps13 } from "@zag-js/solid";
|
|
214
215
|
var FileUploadRootProvider = (props) => {
|
|
215
|
-
const [{ value: fileUpload2 }, localProps] = createSplitProps()(props, [
|
|
216
|
-
"value"
|
|
217
|
-
]);
|
|
216
|
+
const [{ value: fileUpload2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
218
217
|
const mergedProps = mergeProps13(() => fileUpload2().getRootProps(), localProps);
|
|
219
218
|
return <FileUploadProvider value={fileUpload2}>
|
|
220
219
|
<ark.div {...mergedProps} />
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './KVVYU5Z3.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
|
-
import { useEnvironmentContext } from './
|
|
5
|
-
import { useLocaleContext } from './
|
|
6
|
-
import { createContext } from './
|
|
4
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
5
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
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,12 +40,12 @@ 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) => {
|
|
44
|
+
const id = createUniqueId();
|
|
43
45
|
const locale = useLocaleContext();
|
|
44
46
|
const environment = useEnvironmentContext();
|
|
45
|
-
const id = createUniqueId();
|
|
46
47
|
const field = useFieldContext();
|
|
47
|
-
const
|
|
48
|
+
const machineProps = createMemo(() => ({
|
|
48
49
|
id,
|
|
49
50
|
ids: {
|
|
50
51
|
label: field?.().ids.label,
|
|
@@ -56,11 +57,10 @@ var useSwitch = (props = {}) => {
|
|
|
56
57
|
required: field?.().required,
|
|
57
58
|
dir: locale().dir,
|
|
58
59
|
getRootNode: environment().getRootNode,
|
|
59
|
-
|
|
60
|
-
...props
|
|
60
|
+
...runIfFn(props)
|
|
61
61
|
}));
|
|
62
|
-
const
|
|
63
|
-
return createMemo(() => zagSwitch.connect(
|
|
62
|
+
const service = useMachine(zagSwitch.machine, machineProps);
|
|
63
|
+
return createMemo(() => zagSwitch.connect(service, normalizeProps));
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// src/components/switch/switch-root.tsx
|