@ark-ui/solid 4.10.2 → 5.0.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/{E72NMPSK.jsx → 2FYSIKNK.jsx} +5 -13
- package/dist/chunk/{ASCGEGA5.jsx → 2TEQVFZN.jsx} +11 -15
- package/dist/chunk/{2H4WHODR.js → 3CUJRNYI.js} +7 -10
- package/dist/chunk/{MRQ2UYM4.jsx → 3VB4UGEY.jsx} +8 -10
- package/dist/chunk/{ATMUKDFF.js → 44YJVOL2.js} +8 -10
- package/dist/chunk/{7YIHAT7J.jsx → 4D76BVTD.jsx} +35 -17
- package/dist/chunk/{VARNCRUN.js → 4E5OPUFZ.js} +16 -18
- package/dist/chunk/{5JS7LFUQ.js → 4GOBFWQB.js} +9 -8
- package/dist/chunk/{RAEDLHD3.js → 55NHLACH.js} +11 -14
- package/dist/chunk/{2HTNQLGP.jsx → 676ULDTZ.jsx} +9 -13
- package/dist/chunk/{U7SPBSDD.jsx → 6AKFQH4M.jsx} +8 -13
- package/dist/chunk/{QODB3C3M.js → 6MQ6S5JP.js} +8 -5
- package/dist/chunk/{CIPYIXIW.js → 6NMPU3T3.js} +8 -10
- package/dist/chunk/{FNEB2RAF.js → 6VITT55B.js} +9 -10
- package/dist/chunk/{MQDN267C.jsx → 7AJYNPOZ.jsx} +8 -11
- package/dist/chunk/{EHJDQTTW.jsx → 7IAJIOJR.jsx} +3 -16
- package/dist/chunk/{UGKLUHKU.js → A4HLKXDW.js} +8 -11
- package/dist/chunk/{3LRXHWW2.js → A6LAAZDX.js} +32 -27
- package/dist/chunk/{LVPQ6GR4.js → AIQ2GVFX.js} +6 -7
- package/dist/chunk/{JVXNYKNA.js → ANDTZLCB.js} +8 -10
- package/dist/chunk/{5O4RWSWO.jsx → BPYAMTER.jsx} +6 -4
- package/dist/chunk/{AIQFNVCU.jsx → BTPWLTJU.jsx} +9 -18
- package/dist/chunk/{6MXKM4GA.js → C4WAO4VB.js} +9 -10
- package/dist/chunk/{2W32Z6JZ.js → DBAO7VQW.js} +9 -10
- package/dist/chunk/{5SRZ3YYC.js → DEA5DIWS.js} +7 -8
- package/dist/chunk/{CCA5XJM6.jsx → DH5DKFFF.jsx} +19 -37
- package/dist/chunk/{Y4LH2CR6.jsx → DS2MX7YY.jsx} +8 -11
- package/dist/chunk/{34OZO53S.js → DVI7TRLG.js} +9 -12
- package/dist/chunk/{QQUR4MWN.js → E2TLJMGI.js} +15 -17
- package/dist/chunk/{H4RSHLA7.jsx → EH5LPBSV.jsx} +9 -13
- package/dist/chunk/{F3QPTRGW.jsx → EIGYBOW2.jsx} +27 -34
- package/dist/chunk/{HU7FZMJI.jsx → ENXUS2WG.jsx} +9 -14
- package/dist/chunk/{AX5SMQMA.js → EUXWRO3A.js} +16 -17
- package/dist/chunk/{K54W24N6.jsx → FHWNUAQM.jsx} +10 -15
- package/dist/chunk/{7S43DIPW.js → FX6TOMB3.js} +13 -25
- package/dist/chunk/{MBQQASZE.js → GUQTNAZU.js} +9 -10
- package/dist/chunk/{B7LE23PE.jsx → H5QZC4VW.jsx} +9 -13
- package/dist/chunk/{NK4T7LIZ.jsx → H7SWP54F.jsx} +7 -11
- package/dist/chunk/{M2FICVVI.js → HQEG6EKY.js} +9 -11
- package/dist/chunk/{U3XJZI3X.jsx → I4VF53LH.jsx} +15 -25
- package/dist/chunk/{G2WIACWP.js → JOWPVE6E.js} +8 -9
- package/dist/chunk/{SN5TXTB6.jsx → JZ7ZQZT4.jsx} +17 -54
- package/dist/chunk/{X3BMEEJH.js → KMFRZGLF.js} +34 -14
- package/dist/chunk/{GZVCPLKK.jsx → KQ4BIFPS.jsx} +9 -10
- package/dist/chunk/{WPFSEVTX.js → LFWIA7VB.js} +11 -14
- package/dist/chunk/{3O5VTKDF.jsx → LKOJO4VB.jsx} +16 -32
- package/dist/chunk/{5XD5ZSBX.js → M2C67TPA.js} +13 -17
- package/dist/chunk/{2GATVLPK.js → M63JXHU4.js} +7 -8
- package/dist/chunk/MOG4V2NQ.jsx +15 -0
- package/dist/chunk/{XUVXUPEH.js → MZD7ZKWI.js} +2 -7
- package/dist/chunk/{YCYZZGN2.jsx → NCURFCYQ.jsx} +9 -8
- package/dist/chunk/{5ONYCKM3.jsx → NEBB7COJ.jsx} +1 -1
- package/dist/chunk/{Q7NPTAJI.js → NNZQ2FQW.js} +8 -9
- package/dist/chunk/{QGV2SUTQ.jsx → O5AHG7DQ.jsx} +16 -19
- package/dist/chunk/{6YQ3EF2J.js → O62NKGT4.js} +9 -11
- package/dist/chunk/{2J42A7KM.js → OA5UZFKE.js} +2 -2
- package/dist/chunk/{CPMYIT5J.jsx → OAH52ZNM.jsx} +11 -12
- package/dist/chunk/OAPCRIL5.js +8 -0
- package/dist/chunk/{T4NRAKVA.jsx → OEZAIQU2.jsx} +9 -10
- package/dist/chunk/{YV5BACLX.js → OIGKROX4.js} +9 -9
- package/dist/chunk/{IQJBNZOX.jsx → PES3MXH3.jsx} +8 -6
- package/dist/chunk/{DXYB7RYX.js → PJNGX4UT.js} +9 -8
- package/dist/chunk/{3HMZSTYX.js → PL4PGQFF.js} +8 -10
- package/dist/chunk/{PRMWTLUY.jsx → POFK2TVP.jsx} +8 -9
- package/dist/chunk/{WKVZFHUH.jsx → PVOFTEOB.jsx} +14 -25
- package/dist/chunk/{HPDOBQ3V.js → QEMQBM6W.js} +1 -1
- package/dist/chunk/{L7OSYHVR.js → QFAL6GWC.js} +1 -1
- package/dist/chunk/{PSLLOEMD.js → QKFZ3XTM.js} +14 -28
- package/dist/chunk/{IZC6PKGT.jsx → QZQUUXCF.jsx} +10 -14
- package/dist/chunk/{MMS6MJ72.js → R6Q7TUSQ.js} +8 -11
- package/dist/chunk/{3QQZKR3F.jsx → RCXMZN3G.jsx} +1 -1
- package/dist/chunk/{WM2IZOYM.jsx → RG3IJESS.jsx} +48 -80
- package/dist/chunk/{SWUA2VFC.js → SAI3RCJY.js} +7 -10
- package/dist/chunk/{ZC6KWJ4T.jsx → SBKJA5N2.jsx} +7 -12
- package/dist/chunk/{RZBYC7DR.jsx → SBLZHOW2.jsx} +3 -12
- package/dist/chunk/SDD2HKR3.js +71 -0
- package/dist/chunk/{WIVXL7HJ.jsx → SL2ZPLSH.jsx} +9 -13
- package/dist/chunk/{3WGLTS6O.js → SRPSYZUL.js} +7 -8
- package/dist/chunk/{DOPROT6M.jsx → SWZSXMPJ.jsx} +10 -8
- package/dist/chunk/{BY62F4IV.jsx → TEZHN26Z.jsx} +8 -11
- package/dist/chunk/{5EVN6V64.js → TMTD3AUG.js} +12 -15
- package/dist/chunk/{I5UG2QUO.js → TROPIN4C.js} +1 -7
- package/dist/chunk/{NMGUCD2L.jsx → TVCIHLER.jsx} +2 -11
- package/dist/chunk/{5CYHETDY.js → UIAQFG6P.js} +7 -7
- package/dist/chunk/{7PKUSZKY.jsx → USV2CYTP.jsx} +9 -9
- package/dist/chunk/{GXWVYON6.js → V2YBSJKS.js} +8 -10
- package/dist/chunk/{WQQVH7YG.jsx → VLUE7XIS.jsx} +34 -19
- package/dist/chunk/{TC2QHQ47.jsx → WPEIDU6T.jsx} +17 -42
- package/dist/chunk/{LCESUDZB.js → WRLQ7Y6E.js} +5 -13
- package/dist/chunk/{34MDPAG6.js → WT3OTYHP.js} +27 -11
- package/dist/chunk/{IOTZAUDA.jsx → WUTUKX4C.jsx} +1 -1
- package/dist/chunk/{DU4TY3XA.jsx → WZ7FNJXM.jsx} +11 -15
- package/dist/chunk/X34KVQNW.js +1 -1
- package/dist/chunk/{P7I44WC4.jsx → XHA6B6L2.jsx} +21 -22
- package/dist/chunk/{TOVWS5LG.jsx → XNZ7GOP4.jsx} +15 -24
- package/dist/chunk/{MYMGOYXH.js → XR4WJDUT.js} +2 -2
- package/dist/chunk/{SJSLQDBZ.jsx → YE6V66JY.jsx} +10 -18
- package/dist/chunk/{W43X4SNE.js → YS6KIHEB.js} +6 -6
- package/dist/chunk/{QZYE5W7T.jsx → ZOMTU4P2.jsx} +11 -19
- package/dist/components/accordion/index.d.ts +2 -7
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +7 -8
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +5 -6
- package/dist/components/carousel/index.d.ts +3 -8
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +5 -6
- package/dist/components/checkbox/index.d.ts +3 -8
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +8 -9
- package/dist/components/clipboard/index.d.ts +2 -2
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +5 -6
- package/dist/components/collapsible/index.d.ts +2 -7
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +6 -7
- 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 +4 -14
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +10 -10
- package/dist/components/combobox/index.d.ts +3 -13
- package/dist/components/combobox/index.js +2 -2
- package/dist/components/combobox/index.jsx +12 -12
- package/dist/components/date-picker/index.d.ts +4 -16
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +7 -8
- package/dist/components/dialog/index.d.ts +3 -8
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +7 -8
- package/dist/components/editable/index.d.ts +2 -12
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +8 -8
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +4 -3
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/fieldset/index.js +1 -1
- package/dist/components/fieldset/index.jsx +2 -2
- 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 +8 -8
- package/dist/components/focus-trap/index.d.ts +1 -1
- package/dist/components/format/index.js +1 -1
- package/dist/components/format/index.jsx +4 -5
- package/dist/components/frame/index.js +1 -1
- package/dist/components/frame/index.jsx +4 -5
- package/dist/components/hover-card/index.d.ts +3 -8
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +7 -8
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +45 -45
- package/dist/components/index.jsx +295 -297
- package/dist/components/menu/index.d.ts +4 -9
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +7 -8
- package/dist/components/number-input/index.d.ts +2 -7
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +8 -8
- package/dist/components/pagination/index.d.ts +2 -7
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.jsx +5 -6
- package/dist/components/pin-input/index.d.ts +2 -7
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +8 -8
- package/dist/components/popover/index.d.ts +3 -8
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +7 -8
- package/dist/components/presence/index.d.ts +2 -2
- package/dist/components/presence/index.js +1 -1
- package/dist/components/presence/index.jsx +3 -3
- package/dist/components/progress/index.d.ts +2 -7
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +5 -6
- package/dist/components/qr-code/index.d.ts +2 -7
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +5 -6
- package/dist/components/radio-group/index.d.ts +2 -7
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +5 -6
- package/dist/components/rating-group/index.d.ts +5 -10
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +8 -8
- package/dist/components/segment-group/index.d.ts +3 -8
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +5 -6
- package/dist/components/select/index.d.ts +3 -13
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/index.jsx +12 -12
- 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 +8 -8
- package/dist/components/slider/index.d.ts +3 -8
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +5 -6
- package/dist/components/splitter/index.d.ts +3 -8
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +5 -6
- package/dist/components/steps/index.d.ts +6 -10
- package/dist/components/steps/index.js +1 -1
- package/dist/components/steps/index.jsx +5 -6
- package/dist/components/switch/index.d.ts +2 -7
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +8 -8
- package/dist/components/tabs/index.d.ts +2 -7
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +7 -8
- package/dist/components/tags-input/index.d.ts +2 -7
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +8 -8
- package/dist/components/time-picker/index.d.ts +3 -13
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/index.jsx +7 -8
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +5 -6
- package/dist/components/toast/index.d.ts +6 -7
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.jsx +5 -2
- package/dist/components/toggle/index.d.ts +5 -34
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/index.jsx +2 -4
- package/dist/components/toggle-group/index.d.ts +3 -8
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +5 -6
- package/dist/components/tooltip/index.d.ts +3 -8
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +7 -8
- package/dist/components/tour/index.d.ts +4 -4
- package/dist/components/tour/index.js +1 -1
- package/dist/components/tour/index.jsx +7 -8
- package/dist/components/tree-view/index.d.ts +6 -16
- package/dist/components/tree-view/index.js +2 -2
- package/dist/components/tree-view/index.jsx +9 -10
- package/dist/index.d.ts +2 -1
- package/dist/index.js +47 -47
- package/dist/index.jsx +295 -297
- package/dist/providers/environment/index.js +1 -1
- package/dist/providers/environment/index.jsx +2 -3
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.jsx +3 -4
- package/dist/providers/locale/index.js +1 -1
- package/dist/providers/locale/index.jsx +2 -2
- package/dist/{use-presence-Ct1onT3-.d.ts → use-presence-C07V_WCb.d.ts} +1 -1
- 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/DT73WLR4.js +0 -5
- package/dist/chunk/JHG4EID2.jsx +0 -233
- package/dist/chunk/KGOB2IMX.jsx +0 -7
- package/dist/chunk/MV3KTL7M.js +0 -107
|
@@ -1,8 +1,8 @@
|
|
|
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 './6MQ6S5JP.js';
|
|
4
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
5
|
+
import { createContext } from './TROPIN4C.js';
|
|
6
6
|
import { __export } from './ESLJRKWD.js';
|
|
7
7
|
import { createComponent } from 'solid-js/web';
|
|
8
8
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -62,19 +62,18 @@ var CarouselPrevTrigger = (props) => {
|
|
|
62
62
|
const mergedProps = mergeProps(() => api().getPrevTriggerProps(), props);
|
|
63
63
|
return createComponent(ark.button, mergedProps);
|
|
64
64
|
};
|
|
65
|
-
var useCarousel = (props
|
|
65
|
+
var useCarousel = (props) => {
|
|
66
|
+
const id = createUniqueId();
|
|
66
67
|
const locale = useLocaleContext();
|
|
67
68
|
const environment = useEnvironmentContext();
|
|
68
|
-
const
|
|
69
|
-
const context = createMemo(() => ({
|
|
69
|
+
const machineProps = createMemo(() => ({
|
|
70
70
|
id,
|
|
71
71
|
dir: locale().dir,
|
|
72
72
|
getRootNode: environment().getRootNode,
|
|
73
|
-
index: props.defaultPage,
|
|
74
73
|
...props
|
|
75
74
|
}));
|
|
76
|
-
const
|
|
77
|
-
return createMemo(() => carousel.connect(
|
|
75
|
+
const service = useMachine(carousel.machine, machineProps);
|
|
76
|
+
return createMemo(() => carousel.connect(service, normalizeProps));
|
|
78
77
|
};
|
|
79
78
|
|
|
80
79
|
// src/components/carousel/carousel-root.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./XHA6B6L2.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
10
|
import {
|
|
11
11
|
useEnvironmentContext
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./BPYAMTER.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
19
|
import {
|
|
20
20
|
__export
|
|
21
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -32,16 +32,16 @@ var RatingGroupContext = (props) => props.children(useRatingGroupContext());
|
|
|
32
32
|
// src/components/rating-group/rating-group-control.tsx
|
|
33
33
|
import { mergeProps } from "@zag-js/solid";
|
|
34
34
|
var RatingGroupControl = (props) => {
|
|
35
|
-
const
|
|
36
|
-
const mergedProps = mergeProps(() =>
|
|
35
|
+
const ratingGroup2 = useRatingGroupContext();
|
|
36
|
+
const mergedProps = mergeProps(() => ratingGroup2().getControlProps(), props);
|
|
37
37
|
return <ark.div {...mergedProps} />;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
// src/components/rating-group/rating-group-hidden-input.tsx
|
|
41
41
|
import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
42
42
|
var RatingGroupHiddenInput = (props) => {
|
|
43
|
-
const
|
|
44
|
-
const mergedProps = mergeProps2(() =>
|
|
43
|
+
const ratingGroup2 = useRatingGroupContext();
|
|
44
|
+
const mergedProps = mergeProps2(() => ratingGroup2().getHiddenInputProps(), props);
|
|
45
45
|
const field = useFieldContext();
|
|
46
46
|
return <ark.input aria-describedby={field?.().ariaDescribedby} {...mergedProps} />;
|
|
47
47
|
};
|
|
@@ -82,15 +82,15 @@ var RatingGroupLabel = (props) => {
|
|
|
82
82
|
import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
83
83
|
|
|
84
84
|
// src/components/rating-group/use-rating-group.ts
|
|
85
|
-
import * as
|
|
85
|
+
import * as ratingGroup from "@zag-js/rating-group";
|
|
86
86
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
87
87
|
import { createMemo as createMemo2, createUniqueId } from "solid-js";
|
|
88
88
|
var useRatingGroup = (props = {}) => {
|
|
89
|
+
const id = createUniqueId();
|
|
89
90
|
const locale = useLocaleContext();
|
|
90
91
|
const environment = useEnvironmentContext();
|
|
91
|
-
const id = createUniqueId();
|
|
92
92
|
const field = useFieldContext();
|
|
93
|
-
const
|
|
93
|
+
const machineProps = createMemo2(() => ({
|
|
94
94
|
id,
|
|
95
95
|
ids: {
|
|
96
96
|
label: field?.().ids.label,
|
|
@@ -101,11 +101,10 @@ var useRatingGroup = (props = {}) => {
|
|
|
101
101
|
required: field?.().required,
|
|
102
102
|
dir: locale().dir,
|
|
103
103
|
getRootNode: environment().getRootNode,
|
|
104
|
-
value: props.defaultValue,
|
|
105
104
|
...props
|
|
106
105
|
}));
|
|
107
|
-
const
|
|
108
|
-
return createMemo2(() =>
|
|
106
|
+
const service = useMachine(ratingGroup.machine, machineProps);
|
|
107
|
+
return createMemo2(() => ratingGroup.connect(service, normalizeProps));
|
|
109
108
|
};
|
|
110
109
|
|
|
111
110
|
// src/components/rating-group/rating-group-root.tsx
|
|
@@ -137,11 +136,9 @@ var RatingGroupRoot = (props) => {
|
|
|
137
136
|
// src/components/rating-group/rating-group-root-provider.tsx
|
|
138
137
|
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
139
138
|
var RatingGroupRootProvider = (props) => {
|
|
140
|
-
const [{ value:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
const mergedProps = mergeProps6(() => ratingGroup().getRootProps(), localProps);
|
|
144
|
-
return <RatingGroupProvider value={ratingGroup}>
|
|
139
|
+
const [{ value: ratingGroup2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
140
|
+
const mergedProps = mergeProps6(() => ratingGroup2().getRootProps(), localProps);
|
|
141
|
+
return <RatingGroupProvider value={ratingGroup2}>
|
|
145
142
|
<ark.div {...mergedProps} />
|
|
146
143
|
</RatingGroupProvider>;
|
|
147
144
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './WRLQ7Y6E.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 './6MQ6S5JP.js';
|
|
6
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
7
|
+
import { createContext } from './TROPIN4C.js';
|
|
8
8
|
import { __export } from './ESLJRKWD.js';
|
|
9
9
|
import { createComponent } from 'solid-js/web';
|
|
10
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -75,19 +75,17 @@ var DialogPositioner = (props) => {
|
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
77
|
var useDialog = (props = {}) => {
|
|
78
|
+
const id = createUniqueId();
|
|
78
79
|
const locale = useLocaleContext();
|
|
79
80
|
const environment = useEnvironmentContext();
|
|
80
|
-
const
|
|
81
|
-
const context = createMemo(() => ({
|
|
81
|
+
const machineProps = createMemo(() => ({
|
|
82
82
|
id,
|
|
83
83
|
dir: locale().dir,
|
|
84
84
|
getRootNode: environment().getRootNode,
|
|
85
|
-
open: props.defaultOpen,
|
|
86
|
-
"open.controlled": props.open !== void 0,
|
|
87
85
|
...props
|
|
88
86
|
}));
|
|
89
|
-
const
|
|
90
|
-
return createMemo(() => dialog.connect(
|
|
87
|
+
const service = useMachine(dialog.machine, machineProps);
|
|
88
|
+
return createMemo(() => dialog.connect(service, normalizeProps));
|
|
91
89
|
};
|
|
92
90
|
|
|
93
91
|
// src/components/dialog/dialog-root.tsx
|
|
@@ -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 './6MQ6S5JP.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) => {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./2FYSIKNK.jsx";
|
|
7
7
|
import {
|
|
8
8
|
createSplitProps
|
|
9
9
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./UFYZ7HLU.jsx";
|
|
13
13
|
import {
|
|
14
14
|
useEnvironmentContext
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./BPYAMTER.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
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -89,16 +89,14 @@ var useHoverCard = (props = {}) => {
|
|
|
89
89
|
const locale = useLocaleContext();
|
|
90
90
|
const environment = useEnvironmentContext();
|
|
91
91
|
const id = createUniqueId();
|
|
92
|
-
const
|
|
92
|
+
const machineProps = createMemo(() => ({
|
|
93
93
|
id,
|
|
94
94
|
dir: locale().dir,
|
|
95
95
|
getRootNode: environment().getRootNode,
|
|
96
|
-
open: props.defaultOpen,
|
|
97
|
-
"open.controlled": props.open !== void 0,
|
|
98
96
|
...props
|
|
99
97
|
}));
|
|
100
|
-
const
|
|
101
|
-
return createMemo(() => hoverCard.connect(
|
|
98
|
+
const service = useMachine(hoverCard.machine, machineProps);
|
|
99
|
+
return createMemo(() => hoverCard.connect(service, normalizeProps));
|
|
102
100
|
};
|
|
103
101
|
|
|
104
102
|
// src/components/hover-card/hover-card-root.tsx
|
|
@@ -109,7 +107,10 @@ var HoverCardRoot = (props) => {
|
|
|
109
107
|
"defaultOpen",
|
|
110
108
|
"id",
|
|
111
109
|
"ids",
|
|
110
|
+
"onFocusOutside",
|
|
111
|
+
"onInteractOutside",
|
|
112
112
|
"onOpenChange",
|
|
113
|
+
"onPointerDownOutside",
|
|
113
114
|
"open",
|
|
114
115
|
"openDelay",
|
|
115
116
|
"positioning"
|
|
@@ -125,9 +126,7 @@ var HoverCardRoot = (props) => {
|
|
|
125
126
|
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
126
127
|
var HoverCardRootProvider = (props) => {
|
|
127
128
|
const [presenceProps, hoverCardProps] = splitPresenceProps(props);
|
|
128
|
-
const presence = usePresence(
|
|
129
|
-
mergeProps6(presenceProps, () => ({ present: hoverCardProps.value().open }))
|
|
130
|
-
);
|
|
129
|
+
const presence = usePresence(mergeProps6(presenceProps, () => ({ present: hoverCardProps.value().open })));
|
|
131
130
|
return <HoverCardProvider value={hoverCardProps.value}>
|
|
132
131
|
<PresenceProvider value={presence}>{hoverCardProps.children}</PresenceProvider>
|
|
133
132
|
</HoverCardProvider>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ListCollection, TreeCollection, filePathToTree } from '@zag-js/collection';
|
|
2
|
+
|
|
3
|
+
// src/components/collection.ts
|
|
4
|
+
var createListCollection = (options) => new ListCollection(options);
|
|
5
|
+
var createTreeCollection = (options) => new TreeCollection(options);
|
|
6
|
+
var createFileTreeCollection = (paths) => filePathToTree(paths);
|
|
7
|
+
|
|
8
|
+
export { createFileTreeCollection, createListCollection, createTreeCollection };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PresenceProvider,
|
|
3
3
|
usePresence
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./2FYSIKNK.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,13 @@ import {
|
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
16
|
import {
|
|
17
17
|
useEnvironmentContext
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./BPYAMTER.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
25
|
import {
|
|
26
26
|
__export
|
|
27
27
|
} from "./7IUG3E2V.jsx";
|
|
@@ -95,18 +95,17 @@ import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
|
95
95
|
import * as tabs from "@zag-js/tabs";
|
|
96
96
|
import { createMemo, createUniqueId } from "solid-js";
|
|
97
97
|
var useTabs = (props = {}) => {
|
|
98
|
+
const id = createUniqueId();
|
|
98
99
|
const locale = useLocaleContext();
|
|
99
100
|
const environment = useEnvironmentContext();
|
|
100
|
-
const
|
|
101
|
-
const context = createMemo(() => ({
|
|
101
|
+
const machineProps = createMemo(() => ({
|
|
102
102
|
id,
|
|
103
103
|
dir: locale().dir,
|
|
104
104
|
getRootNode: environment().getRootNode,
|
|
105
|
-
value: props.defaultValue,
|
|
106
105
|
...props
|
|
107
106
|
}));
|
|
108
|
-
const
|
|
109
|
-
return createMemo(() => tabs.connect(
|
|
107
|
+
const service = useMachine(tabs.machine, machineProps);
|
|
108
|
+
return createMemo(() => tabs.connect(service, normalizeProps));
|
|
110
109
|
};
|
|
111
110
|
|
|
112
111
|
// src/components/tabs/tabs-root.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
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 './6MQ6S5JP.js';
|
|
4
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
5
|
+
import { createContext } from './TROPIN4C.js';
|
|
6
6
|
import { __export } from './ESLJRKWD.js';
|
|
7
7
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
8
8
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -46,23 +46,23 @@ var ProgressRange = (props) => {
|
|
|
46
46
|
return createComponent(ark.div, mergedProps);
|
|
47
47
|
};
|
|
48
48
|
var useProgress = (props = {}) => {
|
|
49
|
+
const id = createUniqueId();
|
|
49
50
|
const locale = useLocaleContext();
|
|
50
51
|
const environment = useEnvironmentContext();
|
|
51
|
-
const
|
|
52
|
-
const context = createMemo(() => ({
|
|
52
|
+
const machineProps = createMemo(() => ({
|
|
53
53
|
id,
|
|
54
54
|
dir: locale().dir,
|
|
55
|
+
locale: locale().locale,
|
|
55
56
|
getRootNode: environment().getRootNode,
|
|
56
|
-
value: props.defaultValue,
|
|
57
57
|
...props
|
|
58
58
|
}));
|
|
59
|
-
const
|
|
60
|
-
return createMemo(() => progress.connect(
|
|
59
|
+
const service = useMachine(progress.machine, machineProps);
|
|
60
|
+
return createMemo(() => progress.connect(service, normalizeProps));
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// src/components/progress/progress-root.tsx
|
|
64
64
|
var ProgressRoot = (props) => {
|
|
65
|
-
const [progressProps, localProps] = createSplitProps()(props, ["defaultValue", "id", "ids", "max", "min", "onValueChange", "orientation", "translations", "value"]);
|
|
65
|
+
const [progressProps, localProps] = createSplitProps()(props, ["defaultValue", "formatOptions", "id", "ids", "locale", "max", "min", "onValueChange", "orientation", "translations", "value"]);
|
|
66
66
|
const api = useProgress(progressProps);
|
|
67
67
|
const mergedProps = mergeProps(() => api().getRootProps(), localProps);
|
|
68
68
|
return createComponent(ProgressProvider, {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useEnvironmentContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./BPYAMTER.jsx";
|
|
10
10
|
import {
|
|
11
11
|
createContext
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./TVCIHLER.jsx";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./7IUG3E2V.jsx";
|
|
@@ -70,23 +70,25 @@ import * as clipboard from "@zag-js/clipboard";
|
|
|
70
70
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
71
71
|
import { createMemo, createUniqueId } from "solid-js";
|
|
72
72
|
var useClipboard = (props = {}) => {
|
|
73
|
-
const environment = useEnvironmentContext();
|
|
74
73
|
const id = createUniqueId();
|
|
75
|
-
const
|
|
74
|
+
const environment = useEnvironmentContext();
|
|
75
|
+
const machineProps = createMemo(() => ({
|
|
76
76
|
id,
|
|
77
77
|
getRootNode: environment().getRootNode,
|
|
78
78
|
...props
|
|
79
79
|
}));
|
|
80
|
-
const
|
|
81
|
-
return createMemo(() => clipboard.connect(
|
|
80
|
+
const service = useMachine(clipboard.machine, machineProps);
|
|
81
|
+
return createMemo(() => clipboard.connect(service, normalizeProps));
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
// src/components/clipboard/clipboard-root.tsx
|
|
85
85
|
var ClipboardRoot = (props) => {
|
|
86
86
|
const [useClipboardProps, localProps] = createSplitProps()(props, [
|
|
87
|
+
"defaultValue",
|
|
87
88
|
"id",
|
|
88
89
|
"ids",
|
|
89
90
|
"onStatusChange",
|
|
91
|
+
"onValueChange",
|
|
90
92
|
"timeout",
|
|
91
93
|
"value"
|
|
92
94
|
]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './KMFRZGLF.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 './6MQ6S5JP.js';
|
|
5
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
|
+
import { createContext } from './TROPIN4C.js';
|
|
7
7
|
import { __export } from './ESLJRKWD.js';
|
|
8
8
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
9
9
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -126,11 +126,11 @@ var FileUploadLabel = (props) => {
|
|
|
126
126
|
return createComponent(ark.label, mergedProps);
|
|
127
127
|
};
|
|
128
128
|
var useFileUpload = (props = {}) => {
|
|
129
|
+
const id = createUniqueId();
|
|
129
130
|
const locale = useLocaleContext();
|
|
130
131
|
const environment = useEnvironmentContext();
|
|
131
|
-
const id = createUniqueId();
|
|
132
132
|
const field = useFieldContext();
|
|
133
|
-
const
|
|
133
|
+
const machineProps = createMemo(() => ({
|
|
134
134
|
id,
|
|
135
135
|
ids: {
|
|
136
136
|
label: field?.().ids.label,
|
|
@@ -138,13 +138,14 @@ var useFileUpload = (props = {}) => {
|
|
|
138
138
|
},
|
|
139
139
|
dir: locale().dir,
|
|
140
140
|
disabled: field?.().disabled,
|
|
141
|
+
locale: locale().locale,
|
|
141
142
|
required: field?.().required,
|
|
142
143
|
invalid: field?.().invalid,
|
|
143
144
|
getRootNode: environment().getRootNode,
|
|
144
145
|
...props
|
|
145
146
|
}));
|
|
146
|
-
const
|
|
147
|
-
return createMemo(() => fileUpload.connect(
|
|
147
|
+
const service = useMachine(fileUpload.machine, machineProps);
|
|
148
|
+
return createMemo(() => fileUpload.connect(service, normalizeProps));
|
|
148
149
|
};
|
|
149
150
|
|
|
150
151
|
// src/components/file-upload/file-upload-root.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
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 './6MQ6S5JP.js';
|
|
5
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
6
|
+
import { createContext } from './TROPIN4C.js';
|
|
7
7
|
import { __export } from './ESLJRKWD.js';
|
|
8
8
|
import { createComponent } from 'solid-js/web';
|
|
9
9
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
@@ -34,25 +34,23 @@ var CollapsibleContent = (props) => {
|
|
|
34
34
|
// src/components/collapsible/collapsible-context.tsx
|
|
35
35
|
var CollapsibleContext = (props) => props.children(useCollapsibleContext());
|
|
36
36
|
var useCollapsible = (props = {}) => {
|
|
37
|
+
const id = createUniqueId();
|
|
37
38
|
const locale = useLocaleContext();
|
|
38
39
|
const environment = useEnvironmentContext();
|
|
39
40
|
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
|
|
40
|
-
const
|
|
41
|
-
const context = createMemo(() => ({
|
|
41
|
+
const machineProps = createMemo(() => ({
|
|
42
42
|
id,
|
|
43
43
|
dir: locale().dir,
|
|
44
44
|
getRootNode: environment().getRootNode,
|
|
45
|
-
open: props.defaultOpen,
|
|
46
|
-
"open.controlled": props.open !== void 0,
|
|
47
45
|
...collapsibleProps
|
|
48
46
|
}));
|
|
49
|
-
const
|
|
47
|
+
const service = useMachine(collapsible.machine, machineProps);
|
|
50
48
|
const [wasVisible, setWasVisible] = createSignal(false);
|
|
51
49
|
createEffect(() => {
|
|
52
50
|
const isPresent = api().visible;
|
|
53
51
|
if (isPresent) setWasVisible(true);
|
|
54
52
|
});
|
|
55
|
-
const api = createMemo(() => collapsible.connect(
|
|
53
|
+
const api = createMemo(() => collapsible.connect(service, normalizeProps));
|
|
56
54
|
return createMemo(() => ({
|
|
57
55
|
...api(),
|
|
58
56
|
unmounted: !api().visible && !wasVisible() && renderStrategyProps.lazyMount || renderStrategyProps.unmountOnExit && !api().visible && wasVisible()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./XHA6B6L2.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
10
|
import {
|
|
11
11
|
useEnvironmentContext
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./BPYAMTER.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
19
|
import {
|
|
20
20
|
__export
|
|
21
21
|
} from "./7IUG3E2V.jsx";
|
|
@@ -62,11 +62,11 @@ import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
|
62
62
|
import * as zagSwitch from "@zag-js/switch";
|
|
63
63
|
import { createMemo, createUniqueId } from "solid-js";
|
|
64
64
|
var useSwitch = (props = {}) => {
|
|
65
|
+
const id = createUniqueId();
|
|
65
66
|
const locale = useLocaleContext();
|
|
66
67
|
const environment = useEnvironmentContext();
|
|
67
|
-
const id = createUniqueId();
|
|
68
68
|
const field = useFieldContext();
|
|
69
|
-
const
|
|
69
|
+
const machineProps = createMemo(() => ({
|
|
70
70
|
id,
|
|
71
71
|
ids: {
|
|
72
72
|
label: field?.().ids.label,
|
|
@@ -78,11 +78,10 @@ var useSwitch = (props = {}) => {
|
|
|
78
78
|
required: field?.().required,
|
|
79
79
|
dir: locale().dir,
|
|
80
80
|
getRootNode: environment().getRootNode,
|
|
81
|
-
checked: props.defaultChecked,
|
|
82
81
|
...props
|
|
83
82
|
}));
|
|
84
|
-
const
|
|
85
|
-
return createMemo(() => zagSwitch.connect(
|
|
83
|
+
const service = useMachine(zagSwitch.machine, machineProps);
|
|
84
|
+
return createMemo(() => zagSwitch.connect(service, normalizeProps));
|
|
86
85
|
};
|
|
87
86
|
|
|
88
87
|
// src/components/switch/switch-root.tsx
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./2FYSIKNK.jsx";
|
|
7
7
|
import {
|
|
8
8
|
createSplitProps
|
|
9
9
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./UFYZ7HLU.jsx";
|
|
13
13
|
import {
|
|
14
14
|
useEnvironmentContext
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./BPYAMTER.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
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./7IUG3E2V.jsx";
|
|
@@ -93,9 +93,7 @@ var DatePickerMonthSelect = (props) => {
|
|
|
93
93
|
const datePicker2 = useDatePickerContext();
|
|
94
94
|
const mergedProps = mergeProps6(() => datePicker2().getMonthSelectProps(), props);
|
|
95
95
|
return <ark.select {...mergedProps}>
|
|
96
|
-
<Index each={datePicker2().getMonths()}>
|
|
97
|
-
{(month) => <option value={month().value}>{month().label}</option>}
|
|
98
|
-
</Index>
|
|
96
|
+
<Index each={datePicker2().getMonths()}>{(month) => <option value={month().value}>{month().label}</option>}</Index>
|
|
99
97
|
</ark.select>;
|
|
100
98
|
};
|
|
101
99
|
|
|
@@ -164,21 +162,18 @@ import * as datePicker from "@zag-js/date-picker";
|
|
|
164
162
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
165
163
|
import { createMemo, createUniqueId } from "solid-js";
|
|
166
164
|
var useDatePicker = (props = {}) => {
|
|
165
|
+
const id = createUniqueId();
|
|
167
166
|
const locale = useLocaleContext();
|
|
168
167
|
const environment = useEnvironmentContext();
|
|
169
|
-
const
|
|
170
|
-
const context = createMemo(() => ({
|
|
168
|
+
const machineProps = createMemo(() => ({
|
|
171
169
|
id,
|
|
172
170
|
dir: locale().dir,
|
|
171
|
+
locale: locale().locale,
|
|
173
172
|
getRootNode: environment().getRootNode,
|
|
174
|
-
open: props.defaultOpen,
|
|
175
|
-
"open.controlled": props.open !== void 0,
|
|
176
|
-
value: props.defaultValue,
|
|
177
|
-
view: props.defaultView,
|
|
178
173
|
...props
|
|
179
174
|
}));
|
|
180
|
-
const
|
|
181
|
-
return createMemo(() => datePicker.connect(
|
|
175
|
+
const service = useMachine(datePicker.machine, machineProps);
|
|
176
|
+
return createMemo(() => datePicker.connect(service, normalizeProps));
|
|
182
177
|
};
|
|
183
178
|
|
|
184
179
|
// src/components/date-picker/date-picker-root.tsx
|
|
@@ -186,6 +181,7 @@ var DatePickerRoot = (props) => {
|
|
|
186
181
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
187
182
|
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, [
|
|
188
183
|
"closeOnSelect",
|
|
184
|
+
"defaultFocusedValue",
|
|
189
185
|
"defaultOpen",
|
|
190
186
|
"defaultValue",
|
|
191
187
|
"defaultView",
|
|
@@ -234,10 +230,7 @@ var DatePickerRoot = (props) => {
|
|
|
234
230
|
import { mergeProps as mergeProps13 } from "@zag-js/solid";
|
|
235
231
|
var DatePickerRootProvider = (props) => {
|
|
236
232
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
237
|
-
const [{ value: datePicker2 }, localProps] = createSplitProps()(
|
|
238
|
-
datePickerProps,
|
|
239
|
-
["value"]
|
|
240
|
-
);
|
|
233
|
+
const [{ value: datePicker2 }, localProps] = createSplitProps()(datePickerProps, ["value"]);
|
|
241
234
|
const presence = usePresence(mergeProps13(presenceProps, () => ({ present: datePicker2().open })));
|
|
242
235
|
const mergedProps = mergeProps13(() => datePicker2().getRootProps(), localProps);
|
|
243
236
|
return <DatePickerProvider value={datePicker2}>
|
|
@@ -259,9 +252,7 @@ var [DatePickerTableProvider, useDatePickerTableContext] = createContext({
|
|
|
259
252
|
|
|
260
253
|
// src/components/date-picker/date-picker-table.tsx
|
|
261
254
|
var DatePickerTable = (props) => {
|
|
262
|
-
const [{ columns }, localProps] = createSplitProps()(props, [
|
|
263
|
-
"columns"
|
|
264
|
-
]);
|
|
255
|
+
const [{ columns }, localProps] = createSplitProps()(props, ["columns"]);
|
|
265
256
|
const api = useDatePickerContext();
|
|
266
257
|
const viewProps = useDatePickerViewContext();
|
|
267
258
|
const tableProps = { columns, id: createUniqueId2(), ...viewProps };
|
|
@@ -412,9 +403,7 @@ var DatePickerYearSelect = (props) => {
|
|
|
412
403
|
const datePicker2 = useDatePickerContext();
|
|
413
404
|
const mergedProps = mergeProps25(() => datePicker2().getYearSelectProps(), props);
|
|
414
405
|
return <ark.select {...mergedProps}>
|
|
415
|
-
<Index2 each={datePicker2().getYears()}>
|
|
416
|
-
{(year) => <option value={year().value}>{year().label}</option>}
|
|
417
|
-
</Index2>
|
|
406
|
+
<Index2 each={datePicker2().getYears()}>{(year) => <option value={year().value}>{year().label}</option>}</Index2>
|
|
418
407
|
</ark.select>;
|
|
419
408
|
};
|
|
420
409
|
|