@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,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './OY4ARTMM.js';
|
|
2
|
+
import { useFieldContext } from './KVVYU5Z3.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';
|
|
11
|
-
import { Show,
|
|
12
|
+
import { Show, createUniqueId, createMemo } from 'solid-js';
|
|
12
13
|
import * as combobox from '@zag-js/combobox';
|
|
13
14
|
export { anatomy } from '@zag-js/combobox';
|
|
14
15
|
|
|
@@ -57,12 +58,10 @@ var ComboboxInput = (props) => {
|
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
// src/components/combobox/use-combobox-item-context.ts
|
|
60
|
-
var [ComboboxItemProvider, useComboboxItemContext] = createContext(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
);
|
|
61
|
+
var [ComboboxItemProvider, useComboboxItemContext] = createContext({
|
|
62
|
+
hookName: "useComboboxItemContext",
|
|
63
|
+
providerName: "<ComboboxItemProvider />"
|
|
64
|
+
});
|
|
66
65
|
|
|
67
66
|
// src/components/combobox/use-combobox-item-props-context.ts
|
|
68
67
|
var [ComboboxItemPropsProvider, useComboboxItemPropsContext] = createContext({
|
|
@@ -161,7 +160,7 @@ var useCombobox = (props) => {
|
|
|
161
160
|
const environment = useEnvironmentContext();
|
|
162
161
|
const id = createUniqueId();
|
|
163
162
|
const field = useFieldContext();
|
|
164
|
-
const
|
|
163
|
+
const machineProps = createMemo(() => ({
|
|
165
164
|
id,
|
|
166
165
|
ids: {
|
|
167
166
|
label: field?.().ids.label,
|
|
@@ -173,28 +172,16 @@ var useCombobox = (props) => {
|
|
|
173
172
|
invalid: field?.().invalid,
|
|
174
173
|
dir: locale().dir,
|
|
175
174
|
getRootNode: environment().getRootNode,
|
|
176
|
-
|
|
177
|
-
value: props.defaultValue,
|
|
178
|
-
"open.controlled": props.open !== void 0,
|
|
179
|
-
...props
|
|
175
|
+
...runIfFn(props)
|
|
180
176
|
}));
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
return restProps;
|
|
184
|
-
});
|
|
185
|
-
const [state, send, service] = useMachine(combobox.machine(initialContext()), {
|
|
186
|
-
context
|
|
187
|
-
});
|
|
188
|
-
createEffect(() => {
|
|
189
|
-
service.setContext({ collection: props.collection });
|
|
190
|
-
});
|
|
191
|
-
return createMemo(() => combobox.connect(state, send, normalizeProps));
|
|
177
|
+
const service = useMachine(combobox.machine, machineProps);
|
|
178
|
+
return createMemo(() => combobox.connect(service, normalizeProps));
|
|
192
179
|
};
|
|
193
180
|
|
|
194
181
|
// src/components/combobox/combobox-root.tsx
|
|
195
182
|
var ComboboxRoot = (props) => {
|
|
196
183
|
const [presenceProps, comboboxProps] = splitPresenceProps(props);
|
|
197
|
-
const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ["allowCustomValue", "autoFocus", "closeOnSelect", "collection", "composite", "defaultOpen", "defaultValue", "disabled", "disableLayer", "form", "highlightedValue", "id", "ids", "inputBehavior", "inputValue", "invalid", "loopFocus", "multiple", "name", "navigate", "onFocusOutside", "onHighlightChange", "onInputValueChange", "onInteractOutside", "onOpenChange", "onOpenChange", "onPointerDownOutside", "onValueChange", "open", "openOnChange", "openOnClick", "openOnKeyPress", "placeholder", "positioning", "readOnly", "required", "scrollToIndexFn", "selectionBehavior", "translations", "value"]);
|
|
184
|
+
const [useComboboxProps, localProps] = createSplitProps()(comboboxProps, ["allowCustomValue", "autoFocus", "closeOnSelect", "collection", "composite", "defaultHighlightedValue", "defaultInputValue", "defaultOpen", "defaultValue", "disabled", "disableLayer", "form", "highlightedValue", "id", "ids", "inputBehavior", "inputValue", "invalid", "loopFocus", "multiple", "name", "navigate", "onFocusOutside", "onHighlightChange", "onInputValueChange", "onInteractOutside", "onOpenChange", "onOpenChange", "onPointerDownOutside", "onValueChange", "open", "openOnChange", "openOnClick", "openOnKeyPress", "placeholder", "positioning", "readOnly", "required", "scrollToIndexFn", "selectionBehavior", "translations", "value"]);
|
|
198
185
|
const api = useCombobox(useComboboxProps);
|
|
199
186
|
const apiPresence = usePresence(mergeProps(presenceProps, () => ({
|
|
200
187
|
present: api().open
|
|
@@ -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';
|
|
@@ -49,12 +50,12 @@ var NumberInputLabel = (props) => {
|
|
|
49
50
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
50
51
|
return createComponent(ark.label, mergedProps);
|
|
51
52
|
};
|
|
52
|
-
var useNumberInput = (props
|
|
53
|
+
var useNumberInput = (props) => {
|
|
53
54
|
const id = createUniqueId();
|
|
54
55
|
const locale = useLocaleContext();
|
|
55
56
|
const environment = useEnvironmentContext();
|
|
56
57
|
const field = useFieldContext();
|
|
57
|
-
const
|
|
58
|
+
const machineProps = createMemo(() => ({
|
|
58
59
|
id,
|
|
59
60
|
ids: {
|
|
60
61
|
label: field?.().ids.label,
|
|
@@ -67,11 +68,10 @@ var useNumberInput = (props = {}) => {
|
|
|
67
68
|
dir: locale().dir,
|
|
68
69
|
locale: locale().locale,
|
|
69
70
|
getRootNode: environment().getRootNode,
|
|
70
|
-
|
|
71
|
-
...props
|
|
71
|
+
...runIfFn(props)
|
|
72
72
|
}));
|
|
73
|
-
const
|
|
74
|
-
return createMemo(() => numberInput.connect(
|
|
73
|
+
const service = useMachine(numberInput.machine, machineProps);
|
|
74
|
+
return createMemo(() => numberInput.connect(service, normalizeProps));
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/components/number-input/number-input-root.tsx
|
|
@@ -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 { normalizeProps, useMachine } from "@zag-js/solid";
|
|
86
89
|
import * as tooltip from "@zag-js/tooltip";
|
|
87
90
|
import { createMemo, createUniqueId } from "solid-js";
|
|
88
|
-
var useTooltip = (props
|
|
91
|
+
var useTooltip = (props) => {
|
|
92
|
+
const id = createUniqueId();
|
|
89
93
|
const locale = useLocaleContext();
|
|
90
94
|
const environment = useEnvironmentContext();
|
|
91
|
-
const
|
|
92
|
-
const context = createMemo(() => ({
|
|
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(() => tooltip.connect(
|
|
101
|
+
const service = useMachine(tooltip.machine, machineProps);
|
|
102
|
+
return createMemo(() => tooltip.connect(service, normalizeProps));
|
|
102
103
|
};
|
|
103
104
|
|
|
104
105
|
// src/components/tooltip/tooltip-root.tsx
|
|
@@ -132,9 +133,7 @@ var TooltipRoot = (props) => {
|
|
|
132
133
|
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
133
134
|
var TooltipRootProvider = (props) => {
|
|
134
135
|
const [presenceProps, tooltipProps] = splitPresenceProps(props);
|
|
135
|
-
const presence = usePresence(
|
|
136
|
-
mergeProps6(presenceProps, () => ({ present: tooltipProps.value().open }))
|
|
137
|
-
);
|
|
136
|
+
const presence = usePresence(mergeProps6(presenceProps, () => ({ present: tooltipProps.value().open })));
|
|
138
137
|
return <TooltipProvider value={tooltipProps.value}>
|
|
139
138
|
<PresenceProvider value={presence}>{tooltipProps.children}</PresenceProvider>
|
|
140
139
|
</TooltipProvider>;
|
|
@@ -1,23 +1,22 @@
|
|
|
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
|
-
import { createComponent, mergeProps as mergeProps$1,
|
|
9
|
+
import { createComponent, mergeProps as mergeProps$1, template, spread } from 'solid-js/web';
|
|
9
10
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
10
11
|
import * as signaturePad from '@zag-js/signature-pad';
|
|
11
12
|
export { anatomy } from '@zag-js/signature-pad';
|
|
12
|
-
import {
|
|
13
|
+
import { For, Show, createUniqueId, createMemo } from 'solid-js';
|
|
13
14
|
|
|
14
15
|
// src/components/signature-pad/use-signature-pad-context.ts
|
|
15
|
-
var [SignaturePadProvider, useSignaturePadContext] = createContext(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
);
|
|
16
|
+
var [SignaturePadProvider, useSignaturePadContext] = createContext({
|
|
17
|
+
hookName: "useSignaturePadContext",
|
|
18
|
+
providerName: "<SignaturePadProvider />"
|
|
19
|
+
});
|
|
21
20
|
|
|
22
21
|
// src/components/signature-pad/signature-pad-clear-trigger.tsx
|
|
23
22
|
var SignaturePadClearTrigger = (props) => {
|
|
@@ -54,12 +53,12 @@ var SignaturePadLabel = (props) => {
|
|
|
54
53
|
const mergedProps = mergeProps(() => signaturePad2().getLabelProps(), props);
|
|
55
54
|
return createComponent(ark.label, mergedProps);
|
|
56
55
|
};
|
|
57
|
-
var useSignaturePad = (props
|
|
56
|
+
var useSignaturePad = (props) => {
|
|
57
|
+
const id = createUniqueId();
|
|
58
58
|
const locale = useLocaleContext();
|
|
59
59
|
const environment = useEnvironmentContext();
|
|
60
|
-
const id = createUniqueId();
|
|
61
60
|
const field = useFieldContext();
|
|
62
|
-
const
|
|
61
|
+
const machineProps = createMemo(() => ({
|
|
63
62
|
id,
|
|
64
63
|
ids: {
|
|
65
64
|
label: field?.().ids.label,
|
|
@@ -70,10 +69,10 @@ var useSignaturePad = (props = {}) => {
|
|
|
70
69
|
required: field?.().required,
|
|
71
70
|
dir: locale().dir,
|
|
72
71
|
getRootNode: environment().getRootNode,
|
|
73
|
-
...props
|
|
72
|
+
...runIfFn(props)
|
|
74
73
|
}));
|
|
75
|
-
const
|
|
76
|
-
return createMemo(() => signaturePad.connect(
|
|
74
|
+
const service = useMachine(signaturePad.machine, machineProps);
|
|
75
|
+
return createMemo(() => signaturePad.connect(service, normalizeProps));
|
|
77
76
|
};
|
|
78
77
|
|
|
79
78
|
// src/components/signature-pad/signature-pad-root.tsx
|
|
@@ -101,7 +100,7 @@ var SignaturePadRootProvider = (props) => {
|
|
|
101
100
|
});
|
|
102
101
|
};
|
|
103
102
|
var _tmpl$ = /* @__PURE__ */ template(`<title>Signature`);
|
|
104
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<svg><path></svg>`, false, true);
|
|
103
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<svg><path></svg>`, false, true, false);
|
|
105
104
|
var SignaturePadSegment = (props) => {
|
|
106
105
|
const signaturePad2 = useSignaturePadContext();
|
|
107
106
|
const mergedProps = mergeProps(() => signaturePad2().getSegmentProps(), props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
splitRenderStrategyProps
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./NEBB7COJ.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";
|
|
@@ -50,25 +53,23 @@ import * as collapsible from "@zag-js/collapsible";
|
|
|
50
53
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
51
54
|
import { createEffect, createMemo, createSignal, createUniqueId } from "solid-js";
|
|
52
55
|
var useCollapsible = (props = {}) => {
|
|
56
|
+
const id = createUniqueId();
|
|
53
57
|
const locale = useLocaleContext();
|
|
54
58
|
const environment = useEnvironmentContext();
|
|
55
|
-
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
|
|
56
|
-
const
|
|
57
|
-
const context = createMemo(() => ({
|
|
59
|
+
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(runIfFn(props));
|
|
60
|
+
const machineProps = createMemo(() => ({
|
|
58
61
|
id,
|
|
59
62
|
dir: locale().dir,
|
|
60
63
|
getRootNode: environment().getRootNode,
|
|
61
|
-
open: props.defaultOpen,
|
|
62
|
-
"open.controlled": props.open !== void 0,
|
|
63
64
|
...collapsibleProps
|
|
64
65
|
}));
|
|
65
|
-
const
|
|
66
|
+
const service = useMachine(collapsible.machine, machineProps);
|
|
66
67
|
const [wasVisible, setWasVisible] = createSignal(false);
|
|
67
68
|
createEffect(() => {
|
|
68
69
|
const isPresent = api().visible;
|
|
69
70
|
if (isPresent) setWasVisible(true);
|
|
70
71
|
});
|
|
71
|
-
const api = createMemo(() => collapsible.connect(
|
|
72
|
+
const api = createMemo(() => collapsible.connect(service, normalizeProps));
|
|
72
73
|
return createMemo(() => ({
|
|
73
74
|
...api(),
|
|
74
75
|
unmounted: !api().visible && !wasVisible() && renderStrategyProps.lazyMount || renderStrategyProps.unmountOnExit && !api().visible && wasVisible()
|
|
@@ -98,9 +99,7 @@ var CollapsibleRoot = (props) => {
|
|
|
98
99
|
// src/components/collapsible/collapsible-root-provider.tsx
|
|
99
100
|
import { mergeProps as mergeProps3 } from "@zag-js/solid";
|
|
100
101
|
var CollapsibleRootProvider = (props) => {
|
|
101
|
-
const [{ value: collapsible2 }, localProps] = createSplitProps()(props, [
|
|
102
|
-
"value"
|
|
103
|
-
]);
|
|
102
|
+
const [{ value: collapsible2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
104
103
|
const mergedProps = mergeProps3(() => collapsible2().getRootProps(), localProps);
|
|
105
104
|
return <CollapsibleProvider value={collapsible2}>
|
|
106
105
|
<ark.div {...mergedProps} />
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
2
2
|
import { ark } from './EPLBB4QN.js';
|
|
3
|
-
import { createContext } from './
|
|
3
|
+
import { createContext } from './TROPIN4C.js';
|
|
4
|
+
import { runIfFn } from './DT73WLR4.js';
|
|
4
5
|
import { __export } from './ESLJRKWD.js';
|
|
5
6
|
import { createComponent } from 'solid-js/web';
|
|
6
7
|
import { mergeProps } from '@zag-js/solid';
|
|
7
|
-
import { Show, createUniqueId, createSignal, createEffect, createMemo } from 'solid-js';
|
|
8
|
+
import { Show, mergeProps as mergeProps$1, createUniqueId, createSignal, createEffect, createMemo } from 'solid-js';
|
|
8
9
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
9
10
|
|
|
10
11
|
// src/components/fieldset/use-fieldset-context.ts
|
|
@@ -38,19 +39,14 @@ var FieldsetLegend = (props) => {
|
|
|
38
39
|
const mergedProps = mergeProps(() => fieldset().getLegendProps(), props);
|
|
39
40
|
return createComponent(ark.legend, mergedProps);
|
|
40
41
|
};
|
|
41
|
-
var fieldsetAnatomy = createAnatomy("fieldset").parts(
|
|
42
|
-
"root",
|
|
43
|
-
"errorText",
|
|
44
|
-
"helperText",
|
|
45
|
-
"legend"
|
|
46
|
-
);
|
|
42
|
+
var fieldsetAnatomy = createAnatomy("fieldset").parts("root", "errorText", "helperText", "legend");
|
|
47
43
|
var parts = fieldsetAnatomy.build();
|
|
48
44
|
|
|
49
45
|
// src/components/fieldset/use-fieldset.ts
|
|
50
46
|
var useFieldset = (props) => {
|
|
51
|
-
const { disabled
|
|
47
|
+
const mergedProps = mergeProps$1({ disabled: false, invalid: false }, runIfFn(props));
|
|
52
48
|
let rootRef;
|
|
53
|
-
const id =
|
|
49
|
+
const id = mergedProps.id ?? createUniqueId();
|
|
54
50
|
const errorTextId = `fieldset::${id}::error-text`;
|
|
55
51
|
const helperTextId = `fieldset::${id}::helper-text`;
|
|
56
52
|
const [hasErrorText, setHasErrorText] = createSignal(false);
|
|
@@ -59,19 +55,19 @@ var useFieldset = (props) => {
|
|
|
59
55
|
return;
|
|
60
56
|
});
|
|
61
57
|
const labelIds = [];
|
|
62
|
-
if (hasErrorText() && invalid) labelIds.push(errorTextId);
|
|
58
|
+
if (hasErrorText() && mergedProps.invalid) labelIds.push(errorTextId);
|
|
63
59
|
if (hasHelperText()) labelIds.push(helperTextId);
|
|
64
60
|
const getRootProps = () => ({
|
|
65
61
|
...parts.root.attrs,
|
|
66
|
-
disabled,
|
|
67
|
-
"data-disabled": dataAttr(disabled),
|
|
68
|
-
"data-invalid": dataAttr(invalid),
|
|
62
|
+
disabled: mergedProps.disabled,
|
|
63
|
+
"data-disabled": dataAttr(mergedProps.disabled),
|
|
64
|
+
"data-invalid": dataAttr(mergedProps.invalid),
|
|
69
65
|
"aria-describedby": labelIds.join(" ") || void 0
|
|
70
66
|
});
|
|
71
67
|
const getLegendProps = () => ({
|
|
72
68
|
...parts.legend.attrs,
|
|
73
|
-
"data-disabled": dataAttr(disabled),
|
|
74
|
-
"data-invalid": dataAttr(invalid)
|
|
69
|
+
"data-disabled": dataAttr(mergedProps.disabled),
|
|
70
|
+
"data-invalid": dataAttr(mergedProps.invalid)
|
|
75
71
|
});
|
|
76
72
|
const getHelperTextProps = () => ({
|
|
77
73
|
id: helperTextId,
|
|
@@ -86,8 +82,8 @@ var useFieldset = (props) => {
|
|
|
86
82
|
refs: {
|
|
87
83
|
rootRef
|
|
88
84
|
},
|
|
89
|
-
disabled,
|
|
90
|
-
invalid,
|
|
85
|
+
disabled: mergedProps.disabled,
|
|
86
|
+
invalid: mergedProps.invalid,
|
|
91
87
|
getRootProps,
|
|
92
88
|
getLegendProps,
|
|
93
89
|
getHelperTextProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useLocaleContext } from './
|
|
1
|
+
import { useLocaleContext } from './QEMQBM6W.js';
|
|
2
2
|
import { __export } from './ESLJRKWD.js';
|
|
3
|
-
import {
|
|
3
|
+
import { formatNumber, formatBytes } from '@zag-js/i18n-utils';
|
|
4
4
|
import { splitProps, createMemo } from 'solid-js';
|
|
5
5
|
|
|
6
6
|
var FormatByte = (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";
|
|
@@ -75,27 +78,29 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
75
78
|
import * as progress from "@zag-js/progress";
|
|
76
79
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
77
80
|
import { createMemo, createUniqueId } from "solid-js";
|
|
78
|
-
var useProgress = (props
|
|
81
|
+
var useProgress = (props) => {
|
|
82
|
+
const id = createUniqueId();
|
|
79
83
|
const locale = useLocaleContext();
|
|
80
84
|
const environment = useEnvironmentContext();
|
|
81
|
-
const
|
|
82
|
-
const context = createMemo(() => ({
|
|
85
|
+
const machineProps = createMemo(() => ({
|
|
83
86
|
id,
|
|
84
87
|
dir: locale().dir,
|
|
88
|
+
locale: locale().locale,
|
|
85
89
|
getRootNode: environment().getRootNode,
|
|
86
|
-
|
|
87
|
-
...props
|
|
90
|
+
...runIfFn(props)
|
|
88
91
|
}));
|
|
89
|
-
const
|
|
90
|
-
return createMemo(() => progress.connect(
|
|
92
|
+
const service = useMachine(progress.machine, machineProps);
|
|
93
|
+
return createMemo(() => progress.connect(service, normalizeProps));
|
|
91
94
|
};
|
|
92
95
|
|
|
93
96
|
// src/components/progress/progress-root.tsx
|
|
94
97
|
var ProgressRoot = (props) => {
|
|
95
98
|
const [progressProps, localProps] = createSplitProps()(props, [
|
|
96
99
|
"defaultValue",
|
|
100
|
+
"formatOptions",
|
|
97
101
|
"id",
|
|
98
102
|
"ids",
|
|
103
|
+
"locale",
|
|
99
104
|
"max",
|
|
100
105
|
"min",
|
|
101
106
|
"onValueChange",
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
splitPresenceProps,
|
|
4
4
|
usePresence,
|
|
5
5
|
usePresenceContext
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./A4744EEE.jsx";
|
|
7
7
|
import {
|
|
8
8
|
RenderStrategyProvider,
|
|
9
9
|
splitRenderStrategyProps,
|
|
10
10
|
useRenderStrategyContext
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./NEBB7COJ.jsx";
|
|
12
12
|
import {
|
|
13
13
|
createSplitProps
|
|
14
14
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -17,13 +17,16 @@ import {
|
|
|
17
17
|
} from "./UFYZ7HLU.jsx";
|
|
18
18
|
import {
|
|
19
19
|
useEnvironmentContext
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./D2Z5BEON.jsx";
|
|
21
21
|
import {
|
|
22
22
|
useLocaleContext
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./RCXMZN3G.jsx";
|
|
24
24
|
import {
|
|
25
25
|
createContext
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./TVCIHLER.jsx";
|
|
27
|
+
import {
|
|
28
|
+
runIfFn
|
|
29
|
+
} from "./KGOB2IMX.jsx";
|
|
27
30
|
import {
|
|
28
31
|
__export
|
|
29
32
|
} from "./7IUG3E2V.jsx";
|
|
@@ -39,14 +42,10 @@ var [TourProvider, useTourContext] = createContext({
|
|
|
39
42
|
|
|
40
43
|
// src/components/tour/tour-action-trigger.tsx
|
|
41
44
|
var TourActionTrigger = (props) => {
|
|
42
|
-
const [actionTriggerProps, localProps] = createSplitProps()(props, [
|
|
43
|
-
"action"
|
|
44
|
-
]);
|
|
45
|
+
const [actionTriggerProps, localProps] = createSplitProps()(props, ["action"]);
|
|
45
46
|
const tour2 = useTourContext();
|
|
46
47
|
const mergedProps = mergeProps(() => tour2().getActionTriggerProps(actionTriggerProps), localProps);
|
|
47
|
-
return <ark.button {...mergedProps}>
|
|
48
|
-
{mergedProps.children || actionTriggerProps.action.label}
|
|
49
|
-
</ark.button>;
|
|
48
|
+
return <ark.button {...mergedProps}>{mergedProps.children || actionTriggerProps.action.label}</ark.button>;
|
|
50
49
|
};
|
|
51
50
|
|
|
52
51
|
// src/components/tour/tour-actions.tsx
|
|
@@ -165,9 +164,7 @@ import { mergeProps as mergeProps11 } from "@zag-js/solid";
|
|
|
165
164
|
var TourRoot = (props) => {
|
|
166
165
|
const [presenceProps, rootProps] = splitPresenceProps(props);
|
|
167
166
|
const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);
|
|
168
|
-
const presence = usePresence(
|
|
169
|
-
mergeProps11(presenceProps, () => ({ present: rootProps.tour().open }))
|
|
170
|
-
);
|
|
167
|
+
const presence = usePresence(mergeProps11(presenceProps, () => ({ present: rootProps.tour().open })));
|
|
171
168
|
return <TourProvider value={rootProps.tour}>
|
|
172
169
|
<RenderStrategyProvider value={renderStrategyProps}>
|
|
173
170
|
<PresenceProvider value={presence}>{rootProps.children}</PresenceProvider>
|
|
@@ -204,20 +201,18 @@ var TourTitle = (props) => {
|
|
|
204
201
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
205
202
|
import * as tour from "@zag-js/tour";
|
|
206
203
|
import { createMemo, createUniqueId } from "solid-js";
|
|
207
|
-
var useTour = (props
|
|
204
|
+
var useTour = (props) => {
|
|
208
205
|
const id = createUniqueId();
|
|
209
206
|
const locale = useLocaleContext();
|
|
210
207
|
const environment = useEnvironmentContext();
|
|
211
|
-
const
|
|
208
|
+
const machineProps = createMemo(() => ({
|
|
212
209
|
id,
|
|
213
210
|
dir: locale().dir,
|
|
214
211
|
getRootNode: environment().getRootNode,
|
|
215
|
-
...props
|
|
212
|
+
...runIfFn(props)
|
|
216
213
|
}));
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
});
|
|
220
|
-
return createMemo(() => tour.connect(state, send, normalizeProps));
|
|
214
|
+
const service = useMachine(tour.machine, machineProps);
|
|
215
|
+
return createMemo(() => tour.connect(service, normalizeProps));
|
|
221
216
|
};
|
|
222
217
|
|
|
223
218
|
// src/components/tour/tour.ts
|
|
@@ -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";
|
|
@@ -71,15 +74,14 @@ var usePagination = (props) => {
|
|
|
71
74
|
const locale = useLocaleContext();
|
|
72
75
|
const environment = useEnvironmentContext();
|
|
73
76
|
const id = createUniqueId();
|
|
74
|
-
const
|
|
77
|
+
const machineProps = createMemo(() => ({
|
|
75
78
|
id,
|
|
76
79
|
dir: locale().dir,
|
|
77
80
|
getRootNode: environment().getRootNode,
|
|
78
|
-
|
|
79
|
-
...props
|
|
81
|
+
...runIfFn(props)
|
|
80
82
|
}));
|
|
81
|
-
const
|
|
82
|
-
return createMemo(() => pagination.connect(
|
|
83
|
+
const service = useMachine(pagination.machine, machineProps);
|
|
84
|
+
return createMemo(() => pagination.connect(service, normalizeProps));
|
|
83
85
|
};
|
|
84
86
|
|
|
85
87
|
// src/components/pagination/pagination-root.tsx
|
|
@@ -87,6 +89,7 @@ var PaginationRoot = (props) => {
|
|
|
87
89
|
const [usePaginationProps, localProps] = createSplitProps()(props, [
|
|
88
90
|
"count",
|
|
89
91
|
"defaultPage",
|
|
92
|
+
"defaultPageSize",
|
|
90
93
|
"id",
|
|
91
94
|
"ids",
|
|
92
95
|
"onPageChange",
|
|
@@ -107,9 +110,7 @@ var PaginationRoot = (props) => {
|
|
|
107
110
|
// src/components/pagination/pagination-root-provider.tsx
|
|
108
111
|
import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
109
112
|
var PaginationRootProvider = (props) => {
|
|
110
|
-
const [{ value: pagination2 }, localProps] = createSplitProps()(props, [
|
|
111
|
-
"value"
|
|
112
|
-
]);
|
|
113
|
+
const [{ value: pagination2 }, localProps] = createSplitProps()(props, ["value"]);
|
|
113
114
|
const mergedProps = mergeProps6(() => pagination2().getRootProps(), localProps);
|
|
114
115
|
return <PaginationProvider value={pagination2}>
|
|
115
116
|
<ark.nav {...mergedProps} />
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { createContext } from './TROPIN4C.js';
|
|
1
2
|
import { runIfFn } from './DT73WLR4.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { getDocument, getWindow } from '@zag-js/dom-query';
|
|
3
|
+
import { createComponent, memo, template, use } from 'solid-js/web';
|
|
4
|
+
import { getWindow, getDocument } from '@zag-js/dom-query';
|
|
5
5
|
import { createSignal, createMemo, Show } from 'solid-js';
|
|
6
6
|
|
|
7
7
|
// src/providers/environment/use-environment-context.ts
|