@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
|
@@ -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";
|
|
@@ -48,9 +51,7 @@ var SliderDraggingIndicator = (props) => {
|
|
|
48
51
|
const slider2 = useSliderContext();
|
|
49
52
|
const thumbProps = useSliderThumbPropsContext();
|
|
50
53
|
const mergedProps = mergeProps2(() => slider2().getDraggingIndicatorProps(thumbProps), props);
|
|
51
|
-
return <ark.span {...mergedProps}>
|
|
52
|
-
{props.children || slider2().getThumbValue(thumbProps.index)}
|
|
53
|
-
</ark.span>;
|
|
54
|
+
return <ark.span {...mergedProps}>{props.children || slider2().getThumbValue(thumbProps.index)}</ark.span>;
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
// src/components/slider/slider-hidden-input.tsx
|
|
@@ -102,19 +103,18 @@ import { mergeProps as mergeProps8 } from "@zag-js/solid";
|
|
|
102
103
|
import * as slider from "@zag-js/slider";
|
|
103
104
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
104
105
|
import { createMemo, createUniqueId } from "solid-js";
|
|
105
|
-
var useSlider = (props
|
|
106
|
+
var useSlider = (props) => {
|
|
107
|
+
const id = createUniqueId();
|
|
106
108
|
const locale = useLocaleContext();
|
|
107
109
|
const environment = useEnvironmentContext();
|
|
108
|
-
const
|
|
109
|
-
const context = createMemo(() => ({
|
|
110
|
+
const machineProps = createMemo(() => ({
|
|
110
111
|
id,
|
|
111
112
|
dir: locale().dir,
|
|
112
113
|
getRootNode: environment().getRootNode,
|
|
113
|
-
|
|
114
|
-
...props
|
|
114
|
+
...runIfFn(props)
|
|
115
115
|
}));
|
|
116
|
-
const
|
|
117
|
-
return createMemo(() => slider.connect(
|
|
116
|
+
const service = useMachine(slider.machine, machineProps);
|
|
117
|
+
return createMemo(() => slider.connect(service, normalizeProps));
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
// src/components/slider/slider-root.tsx
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { splitRenderStrategyProps } from './
|
|
1
|
+
import { splitRenderStrategyProps } from './QFAL6GWC.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 } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -34,25 +35,23 @@ var CollapsibleContent = (props) => {
|
|
|
34
35
|
// src/components/collapsible/collapsible-context.tsx
|
|
35
36
|
var CollapsibleContext = (props) => props.children(useCollapsibleContext());
|
|
36
37
|
var useCollapsible = (props = {}) => {
|
|
38
|
+
const id = createUniqueId();
|
|
37
39
|
const locale = useLocaleContext();
|
|
38
40
|
const environment = useEnvironmentContext();
|
|
39
|
-
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
|
|
40
|
-
const
|
|
41
|
-
const context = createMemo(() => ({
|
|
41
|
+
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(runIfFn(props));
|
|
42
|
+
const machineProps = createMemo(() => ({
|
|
42
43
|
id,
|
|
43
44
|
dir: locale().dir,
|
|
44
45
|
getRootNode: environment().getRootNode,
|
|
45
|
-
open: props.defaultOpen,
|
|
46
|
-
"open.controlled": props.open !== void 0,
|
|
47
46
|
...collapsibleProps
|
|
48
47
|
}));
|
|
49
|
-
const
|
|
48
|
+
const service = useMachine(collapsible.machine, machineProps);
|
|
50
49
|
const [wasVisible, setWasVisible] = createSignal(false);
|
|
51
50
|
createEffect(() => {
|
|
52
51
|
const isPresent = api().visible;
|
|
53
52
|
if (isPresent) setWasVisible(true);
|
|
54
53
|
});
|
|
55
|
-
const api = createMemo(() => collapsible.connect(
|
|
54
|
+
const api = createMemo(() => collapsible.connect(service, normalizeProps));
|
|
56
55
|
return createMemo(() => ({
|
|
57
56
|
...api(),
|
|
58
57
|
unmounted: !api().visible && !wasVisible() && renderStrategyProps.lazyMount || renderStrategyProps.unmountOnExit && !api().visible && wasVisible()
|
|
@@ -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";
|
|
@@ -137,21 +140,19 @@ import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
|
137
140
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
138
141
|
import * as timePicker from "@zag-js/time-picker";
|
|
139
142
|
import { createMemo, createUniqueId } from "solid-js";
|
|
140
|
-
var useTimePicker = (props
|
|
143
|
+
var useTimePicker = (props) => {
|
|
144
|
+
const id = createUniqueId();
|
|
141
145
|
const locale = useLocaleContext();
|
|
142
146
|
const environment = useEnvironmentContext();
|
|
143
|
-
const
|
|
144
|
-
const context = createMemo(() => ({
|
|
147
|
+
const machineProps = createMemo(() => ({
|
|
145
148
|
id,
|
|
146
149
|
dir: locale().dir,
|
|
147
150
|
getRootNode: environment().getRootNode,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
value: props.defaultValue,
|
|
151
|
-
...props
|
|
151
|
+
locale: locale().locale,
|
|
152
|
+
...runIfFn(props)
|
|
152
153
|
}));
|
|
153
|
-
const
|
|
154
|
-
return createMemo(() => timePicker.connect(
|
|
154
|
+
const service = useMachine(timePicker.machine, machineProps);
|
|
155
|
+
return createMemo(() => timePicker.connect(service, normalizeProps));
|
|
155
156
|
};
|
|
156
157
|
|
|
157
158
|
// src/components/time-picker/time-picker-root.tsx
|
|
@@ -193,10 +194,7 @@ var TimePickerRoot = (props) => {
|
|
|
193
194
|
import { mergeProps as mergeProps10 } from "@zag-js/solid";
|
|
194
195
|
var TimePickerRootProvider = (props) => {
|
|
195
196
|
const [presenceProps, timePickerProps] = splitPresenceProps(props);
|
|
196
|
-
const [{ value: timePicker2 }, localProps] = createSplitProps()(
|
|
197
|
-
timePickerProps,
|
|
198
|
-
["value"]
|
|
199
|
-
);
|
|
197
|
+
const [{ value: timePicker2 }, localProps] = createSplitProps()(timePickerProps, ["value"]);
|
|
200
198
|
const apiPresence = usePresence(mergeProps10(presenceProps, () => ({ present: timePicker2().open })));
|
|
201
199
|
const mergedProps = mergeProps10(() => timePicker2().getRootProps(), localProps);
|
|
202
200
|
return <TimePickerProvider value={timePicker2}>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { useEnvironmentContext } from './
|
|
4
|
-
import { useLocaleContext } from './
|
|
5
|
-
import { createContext } from './
|
|
3
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
4
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
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';
|
|
@@ -44,20 +45,19 @@ var usePagination = (props) => {
|
|
|
44
45
|
const locale = useLocaleContext();
|
|
45
46
|
const environment = useEnvironmentContext();
|
|
46
47
|
const id = createUniqueId();
|
|
47
|
-
const
|
|
48
|
+
const machineProps = createMemo(() => ({
|
|
48
49
|
id,
|
|
49
50
|
dir: locale().dir,
|
|
50
51
|
getRootNode: environment().getRootNode,
|
|
51
|
-
|
|
52
|
-
...props
|
|
52
|
+
...runIfFn(props)
|
|
53
53
|
}));
|
|
54
|
-
const
|
|
55
|
-
return createMemo(() => pagination.connect(
|
|
54
|
+
const service = useMachine(pagination.machine, machineProps);
|
|
55
|
+
return createMemo(() => pagination.connect(service, normalizeProps));
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
// src/components/pagination/pagination-root.tsx
|
|
59
59
|
var PaginationRoot = (props) => {
|
|
60
|
-
const [usePaginationProps, localProps] = createSplitProps()(props, ["count", "defaultPage", "id", "ids", "onPageChange", "onPageSizeChange", "page", "pageSize", "siblingCount", "translations", "type"]);
|
|
60
|
+
const [usePaginationProps, localProps] = createSplitProps()(props, ["count", "defaultPage", "defaultPageSize", "id", "ids", "onPageChange", "onPageSizeChange", "page", "pageSize", "siblingCount", "translations", "type"]);
|
|
61
61
|
const api = usePagination(usePaginationProps);
|
|
62
62
|
const mergedProps = mergeProps(() => api().getRootProps(), localProps);
|
|
63
63
|
return createComponent(PaginationProvider, {
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { ark } from './EPLBB4QN.js';
|
|
2
|
-
import {
|
|
2
|
+
import { useEnvironmentContext } from './YMMMHJJS.js';
|
|
3
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
4
|
+
import { createContext } from './TROPIN4C.js';
|
|
3
5
|
import { __export } from './ESLJRKWD.js';
|
|
4
|
-
import
|
|
5
|
-
import * as toast from '@zag-js/toast';
|
|
6
|
+
import * as toast2 from '@zag-js/toast';
|
|
6
7
|
export { anatomy } from '@zag-js/toast';
|
|
7
|
-
import { createComponent, spread, mergeProps as mergeProps$1, insert
|
|
8
|
-
import {
|
|
8
|
+
import { createComponent, template, spread, mergeProps as mergeProps$1, insert } from 'solid-js/web';
|
|
9
|
+
import { mergeProps, useMachine, normalizeProps, Key } from '@zag-js/solid';
|
|
10
|
+
import { splitProps, createUniqueId, createMemo } from 'solid-js';
|
|
9
11
|
|
|
10
12
|
var createToaster = (props) => {
|
|
11
|
-
|
|
12
|
-
id: "1",
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
const api = toast.group.connect(machine, machine.send, normalizeProps);
|
|
16
|
-
return {
|
|
17
|
-
...api,
|
|
18
|
-
machine
|
|
19
|
-
};
|
|
13
|
+
return toast2.createStore(props);
|
|
20
14
|
};
|
|
21
15
|
|
|
22
16
|
// src/components/toast/use-toast-context.ts
|
|
@@ -64,21 +58,28 @@ var ToastTitle = (props) => {
|
|
|
64
58
|
};
|
|
65
59
|
var Toaster = (props) => {
|
|
66
60
|
const [toasterProps, localProps] = splitProps(props, ["toaster", "children"]);
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
const locale = useLocaleContext();
|
|
62
|
+
const env = useEnvironmentContext();
|
|
63
|
+
const service = useMachine(toast2.group.machine, () => ({
|
|
64
|
+
store: toasterProps.toaster,
|
|
65
|
+
id: createUniqueId(),
|
|
66
|
+
dir: locale()?.dir,
|
|
67
|
+
getRootNode: () => env()?.getDocument()
|
|
68
|
+
}));
|
|
69
|
+
const api = createMemo(() => toast2.group.connect(service, normalizeProps));
|
|
70
|
+
const toasts = createMemo(() => api().getToasts());
|
|
71
|
+
const mergedProps = mergeProps(api().getGroupProps(), localProps);
|
|
74
72
|
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
75
73
|
get children() {
|
|
76
|
-
return createComponent(
|
|
74
|
+
return createComponent(Key, {
|
|
77
75
|
get each() {
|
|
78
76
|
return toasts();
|
|
79
77
|
},
|
|
80
|
-
|
|
78
|
+
by: "id",
|
|
79
|
+
children: (toast3, index) => createComponent(ToastActor, {
|
|
81
80
|
value: toast3,
|
|
81
|
+
index,
|
|
82
|
+
parent: service,
|
|
82
83
|
children: (ctx) => toasterProps.children(ctx)
|
|
83
84
|
})
|
|
84
85
|
});
|
|
@@ -86,13 +87,17 @@ var Toaster = (props) => {
|
|
|
86
87
|
}));
|
|
87
88
|
};
|
|
88
89
|
var ToastActor = (props) => {
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
const localProps = createMemo(() => ({
|
|
91
|
+
...props.value(),
|
|
92
|
+
parent: props.parent,
|
|
93
|
+
index: props.index
|
|
94
|
+
}));
|
|
95
|
+
const service = useMachine(toast2.machine, localProps);
|
|
96
|
+
const api = createMemo(() => toast2.connect(service, normalizeProps));
|
|
92
97
|
return createComponent(ToastProvider, {
|
|
93
98
|
value: api,
|
|
94
99
|
get children() {
|
|
95
|
-
return props.children(
|
|
100
|
+
return props.children(props.value);
|
|
96
101
|
}
|
|
97
102
|
});
|
|
98
103
|
};
|
|
@@ -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";
|
|
@@ -24,12 +27,10 @@ import {
|
|
|
24
27
|
import { mergeProps } from "@zag-js/solid";
|
|
25
28
|
|
|
26
29
|
// src/components/signature-pad/use-signature-pad-context.ts
|
|
27
|
-
var [SignaturePadProvider, useSignaturePadContext] = createContext(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
);
|
|
30
|
+
var [SignaturePadProvider, useSignaturePadContext] = createContext({
|
|
31
|
+
hookName: "useSignaturePadContext",
|
|
32
|
+
providerName: "<SignaturePadProvider />"
|
|
33
|
+
});
|
|
33
34
|
|
|
34
35
|
// src/components/signature-pad/signature-pad-clear-trigger.tsx
|
|
35
36
|
var SignaturePadClearTrigger = (props) => {
|
|
@@ -62,10 +63,7 @@ import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
|
62
63
|
var SignaturePadHiddenInput = (props) => {
|
|
63
64
|
const [hiddenInputProps, localProps] = createSplitProps()(props, ["value"]);
|
|
64
65
|
const signaturePad2 = useSignaturePadContext();
|
|
65
|
-
const mergedProps = mergeProps4(
|
|
66
|
-
() => signaturePad2().getHiddenInputProps(hiddenInputProps),
|
|
67
|
-
localProps
|
|
68
|
-
);
|
|
66
|
+
const mergedProps = mergeProps4(() => signaturePad2().getHiddenInputProps(hiddenInputProps), localProps);
|
|
69
67
|
const field = useFieldContext();
|
|
70
68
|
return <ark.input aria-describedby={field?.().ariaDescribedby} {...mergedProps} />;
|
|
71
69
|
};
|
|
@@ -85,12 +83,12 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
85
83
|
import * as signaturePad from "@zag-js/signature-pad";
|
|
86
84
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
87
85
|
import { createMemo, createUniqueId } from "solid-js";
|
|
88
|
-
var useSignaturePad = (props
|
|
86
|
+
var useSignaturePad = (props) => {
|
|
87
|
+
const id = createUniqueId();
|
|
89
88
|
const locale = useLocaleContext();
|
|
90
89
|
const environment = useEnvironmentContext();
|
|
91
|
-
const id = createUniqueId();
|
|
92
90
|
const field = useFieldContext();
|
|
93
|
-
const
|
|
91
|
+
const machineProps = createMemo(() => ({
|
|
94
92
|
id,
|
|
95
93
|
ids: {
|
|
96
94
|
label: field?.().ids.label,
|
|
@@ -101,10 +99,10 @@ var useSignaturePad = (props = {}) => {
|
|
|
101
99
|
required: field?.().required,
|
|
102
100
|
dir: locale().dir,
|
|
103
101
|
getRootNode: environment().getRootNode,
|
|
104
|
-
...props
|
|
102
|
+
...runIfFn(props)
|
|
105
103
|
}));
|
|
106
|
-
const
|
|
107
|
-
return createMemo(() => signaturePad.connect(
|
|
104
|
+
const service = useMachine(signaturePad.machine, machineProps);
|
|
105
|
+
return createMemo(() => signaturePad.connect(service, normalizeProps));
|
|
108
106
|
};
|
|
109
107
|
|
|
110
108
|
// src/components/signature-pad/signature-pad-root.tsx
|
|
@@ -132,9 +130,7 @@ var SignaturePadRoot = (props) => {
|
|
|
132
130
|
// src/components/signature-pad/signature-pad-root-provider.tsx
|
|
133
131
|
import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
134
132
|
var SignaturePadRootProvider = (props) => {
|
|
135
|
-
const [{ value: signaturePad2 }, localProps] = createSplitProps()(props, [
|
|
136
|
-
"value"
|
|
137
|
-
]);
|
|
133
|
+
const [{ value: signaturePad2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
138
134
|
const mergedProps = mergeProps7(() => signaturePad2().getRootProps(), localProps);
|
|
139
135
|
return <SignaturePadProvider value={signaturePad2}>
|
|
140
136
|
<ark.div {...mergedProps} />
|
|
@@ -149,9 +145,7 @@ var SignaturePadSegment = (props) => {
|
|
|
149
145
|
const mergedProps = mergeProps8(() => signaturePad2().getSegmentProps(), props);
|
|
150
146
|
return <ark.svg {...mergedProps}>
|
|
151
147
|
<title>Signature</title>
|
|
152
|
-
<For each={signaturePad2().paths}>
|
|
153
|
-
{(path) => <path {...signaturePad2().getSegmentPathProps({ path })} />}
|
|
154
|
-
</For>
|
|
148
|
+
<For each={signaturePad2().paths}>{(path) => <path {...signaturePad2().getSegmentPathProps({ path })} />}</For>
|
|
155
149
|
<Show when={signaturePad2().currentPath}>
|
|
156
150
|
{
|
|
157
151
|
/* @ts-expect-error */
|
|
@@ -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";
|
|
@@ -93,9 +96,7 @@ var DatePickerMonthSelect = (props) => {
|
|
|
93
96
|
const datePicker2 = useDatePickerContext();
|
|
94
97
|
const mergedProps = mergeProps6(() => datePicker2().getMonthSelectProps(), props);
|
|
95
98
|
return <ark.select {...mergedProps}>
|
|
96
|
-
<Index each={datePicker2().getMonths()}>
|
|
97
|
-
{(month) => <option value={month().value}>{month().label}</option>}
|
|
98
|
-
</Index>
|
|
99
|
+
<Index each={datePicker2().getMonths()}>{(month) => <option value={month().value}>{month().label}</option>}</Index>
|
|
99
100
|
</ark.select>;
|
|
100
101
|
};
|
|
101
102
|
|
|
@@ -163,22 +164,19 @@ import { mergeProps as mergeProps12 } from "@zag-js/solid";
|
|
|
163
164
|
import * as datePicker from "@zag-js/date-picker";
|
|
164
165
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
165
166
|
import { createMemo, createUniqueId } from "solid-js";
|
|
166
|
-
var useDatePicker = (props
|
|
167
|
+
var useDatePicker = (props) => {
|
|
168
|
+
const id = createUniqueId();
|
|
167
169
|
const locale = useLocaleContext();
|
|
168
170
|
const environment = useEnvironmentContext();
|
|
169
|
-
const
|
|
170
|
-
const context = createMemo(() => ({
|
|
171
|
+
const machineProps = createMemo(() => ({
|
|
171
172
|
id,
|
|
172
173
|
dir: locale().dir,
|
|
174
|
+
locale: locale().locale,
|
|
173
175
|
getRootNode: environment().getRootNode,
|
|
174
|
-
|
|
175
|
-
"open.controlled": props.open !== void 0,
|
|
176
|
-
value: props.defaultValue,
|
|
177
|
-
view: props.defaultView,
|
|
178
|
-
...props
|
|
176
|
+
...runIfFn(props)
|
|
179
177
|
}));
|
|
180
|
-
const
|
|
181
|
-
return createMemo(() => datePicker.connect(
|
|
178
|
+
const service = useMachine(datePicker.machine, machineProps);
|
|
179
|
+
return createMemo(() => datePicker.connect(service, normalizeProps));
|
|
182
180
|
};
|
|
183
181
|
|
|
184
182
|
// src/components/date-picker/date-picker-root.tsx
|
|
@@ -186,6 +184,7 @@ var DatePickerRoot = (props) => {
|
|
|
186
184
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
187
185
|
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, [
|
|
188
186
|
"closeOnSelect",
|
|
187
|
+
"defaultFocusedValue",
|
|
189
188
|
"defaultOpen",
|
|
190
189
|
"defaultValue",
|
|
191
190
|
"defaultView",
|
|
@@ -234,10 +233,7 @@ var DatePickerRoot = (props) => {
|
|
|
234
233
|
import { mergeProps as mergeProps13 } from "@zag-js/solid";
|
|
235
234
|
var DatePickerRootProvider = (props) => {
|
|
236
235
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
237
|
-
const [{ value: datePicker2 }, localProps] = createSplitProps()(
|
|
238
|
-
datePickerProps,
|
|
239
|
-
["value"]
|
|
240
|
-
);
|
|
236
|
+
const [{ value: datePicker2 }, localProps] = createSplitProps()(datePickerProps, ["value"]);
|
|
241
237
|
const presence = usePresence(mergeProps13(presenceProps, () => ({ present: datePicker2().open })));
|
|
242
238
|
const mergedProps = mergeProps13(() => datePicker2().getRootProps(), localProps);
|
|
243
239
|
return <DatePickerProvider value={datePicker2}>
|
|
@@ -259,9 +255,7 @@ var [DatePickerTableProvider, useDatePickerTableContext] = createContext({
|
|
|
259
255
|
|
|
260
256
|
// src/components/date-picker/date-picker-table.tsx
|
|
261
257
|
var DatePickerTable = (props) => {
|
|
262
|
-
const [{ columns }, localProps] = createSplitProps()(props, [
|
|
263
|
-
"columns"
|
|
264
|
-
]);
|
|
258
|
+
const [{ columns }, localProps] = createSplitProps()(props, ["columns"]);
|
|
265
259
|
const api = useDatePickerContext();
|
|
266
260
|
const viewProps = useDatePickerViewContext();
|
|
267
261
|
const tableProps = { columns, id: createUniqueId2(), ...viewProps };
|
|
@@ -412,9 +406,7 @@ var DatePickerYearSelect = (props) => {
|
|
|
412
406
|
const datePicker2 = useDatePickerContext();
|
|
413
407
|
const mergedProps = mergeProps25(() => datePicker2().getYearSelectProps(), props);
|
|
414
408
|
return <ark.select {...mergedProps}>
|
|
415
|
-
<Index2 each={datePicker2().getYears()}>
|
|
416
|
-
{(year) => <option value={year().value}>{year().label}</option>}
|
|
417
|
-
</Index2>
|
|
409
|
+
<Index2 each={datePicker2().getYears()}>{(year) => <option value={year().value}>{year().label}</option>}</Index2>
|
|
418
410
|
</ark.select>;
|
|
419
411
|
};
|
|
420
412
|
|
|
@@ -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";
|
|
@@ -77,12 +80,12 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
77
80
|
import * as numberInput from "@zag-js/number-input";
|
|
78
81
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
79
82
|
import { createMemo, createUniqueId } from "solid-js";
|
|
80
|
-
var useNumberInput = (props
|
|
83
|
+
var useNumberInput = (props) => {
|
|
81
84
|
const id = createUniqueId();
|
|
82
85
|
const locale = useLocaleContext();
|
|
83
86
|
const environment = useEnvironmentContext();
|
|
84
87
|
const field = useFieldContext();
|
|
85
|
-
const
|
|
88
|
+
const machineProps = createMemo(() => ({
|
|
86
89
|
id,
|
|
87
90
|
ids: {
|
|
88
91
|
label: field?.().ids.label,
|
|
@@ -95,11 +98,10 @@ var useNumberInput = (props = {}) => {
|
|
|
95
98
|
dir: locale().dir,
|
|
96
99
|
locale: locale().locale,
|
|
97
100
|
getRootNode: environment().getRootNode,
|
|
98
|
-
|
|
99
|
-
...props
|
|
101
|
+
...runIfFn(props)
|
|
100
102
|
}));
|
|
101
|
-
const
|
|
102
|
-
return createMemo(() => numberInput.connect(
|
|
103
|
+
const service = useMachine(numberInput.machine, machineProps);
|
|
104
|
+
return createMemo(() => numberInput.connect(service, normalizeProps));
|
|
103
105
|
};
|
|
104
106
|
|
|
105
107
|
// src/components/number-input/number-input-root.tsx
|
|
@@ -142,9 +144,7 @@ var NumberInputRoot = (props) => {
|
|
|
142
144
|
// src/components/number-input/number-input-root-provider.tsx
|
|
143
145
|
import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
144
146
|
var NumberInputRootProvider = (props) => {
|
|
145
|
-
const [{ value: numberInput2 }, localProps] = createSplitProps()(props, [
|
|
146
|
-
"value"
|
|
147
|
-
]);
|
|
147
|
+
const [{ value: numberInput2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
148
148
|
const mergedProps = mergeProps7(() => numberInput2().getRootProps(), localProps);
|
|
149
149
|
return <NumberInputProvider value={numberInput2}>
|
|
150
150
|
<ark.div {...mergedProps} />
|
|
@@ -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";
|
|
@@ -47,10 +50,7 @@ var CarouselControl = (props) => {
|
|
|
47
50
|
// src/components/carousel/carousel-indicator.tsx
|
|
48
51
|
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
49
52
|
var CarouselIndicator = (props) => {
|
|
50
|
-
const [indicatorProps, localProps] = createSplitProps()(props, [
|
|
51
|
-
"index",
|
|
52
|
-
"readOnly"
|
|
53
|
-
]);
|
|
53
|
+
const [indicatorProps, localProps] = createSplitProps()(props, ["index", "readOnly"]);
|
|
54
54
|
const api = useCarouselContext();
|
|
55
55
|
const mergedProps = mergeProps3(() => api().getIndicatorProps(indicatorProps), localProps);
|
|
56
56
|
return <ark.button {...mergedProps} />;
|
|
@@ -104,19 +104,18 @@ import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
|
104
104
|
import * as carousel from "@zag-js/carousel";
|
|
105
105
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
106
106
|
import { createMemo, createUniqueId } from "solid-js";
|
|
107
|
-
var useCarousel = (props
|
|
107
|
+
var useCarousel = (props) => {
|
|
108
|
+
const id = createUniqueId();
|
|
108
109
|
const locale = useLocaleContext();
|
|
109
110
|
const environment = useEnvironmentContext();
|
|
110
|
-
const
|
|
111
|
-
const context = createMemo(() => ({
|
|
111
|
+
const machineProps = createMemo(() => ({
|
|
112
112
|
id,
|
|
113
113
|
dir: locale().dir,
|
|
114
114
|
getRootNode: environment().getRootNode,
|
|
115
|
-
|
|
116
|
-
...props
|
|
115
|
+
...runIfFn(props)
|
|
117
116
|
}));
|
|
118
|
-
const
|
|
119
|
-
return createMemo(() => carousel.connect(
|
|
117
|
+
const service = useMachine(carousel.machine, machineProps);
|
|
118
|
+
return createMemo(() => carousel.connect(service, normalizeProps));
|
|
120
119
|
};
|
|
121
120
|
|
|
122
121
|
// src/components/carousel/carousel-root.tsx
|