@ark-ui/solid 4.2.0 → 4.3.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/dist/chunk/{QZBKZO47.js → 2HGEDMNF.js} +2 -2
- package/dist/chunk/2PEBPAD5.jsx +15 -0
- package/dist/chunk/{ONRWV73H.jsx → 3FKZ6KJD.jsx} +5 -5
- package/dist/chunk/{2ZIOTGL3.js → 42CZQMX2.js} +3 -5
- package/dist/chunk/{ZTGL23QZ.js → 4DPMLML4.js} +1 -1
- package/dist/chunk/{P2KJGUNW.jsx → 4ICFJW2D.jsx} +4 -4
- package/dist/chunk/{IZAFEKNG.jsx → 4TNW4LNT.jsx} +4 -4
- package/dist/chunk/{MVL2JW5G.js → 5G6GUK6S.js} +1 -1
- package/dist/chunk/{OYTB5QWY.js → 5JS7LFUQ.js} +11 -11
- package/dist/chunk/{NTCV3MLJ.jsx → 6EY2Z73Y.jsx} +4 -4
- package/dist/chunk/{VN3OG575.js → 7WAPCEAY.js} +2 -2
- package/dist/chunk/{X3GDAQGM.js → AK2LUFHG.js} +14 -3
- package/dist/chunk/{CC55N56R.jsx → AOG74HPY.jsx} +4 -4
- package/dist/chunk/{DNNMKWRH.js → BNMRTYLU.js} +1 -1
- package/dist/chunk/{KWJ6UCDT.js → CYRK6TAN.js} +2 -2
- package/dist/chunk/{E4VJ3RD7.jsx → E4USRLNU.jsx} +4 -4
- package/dist/chunk/{2C6A32GV.js → ENHIBLQ6.js} +1 -1
- package/dist/chunk/{QYFVBX63.js → F66KWWUN.js} +2 -2
- package/dist/chunk/FE2WXPJR.js +23 -0
- package/dist/chunk/{5CPCXJBB.jsx → FGNZD6WP.jsx} +5 -5
- package/dist/chunk/{KNA7F4FJ.jsx → GLJ4SETU.jsx} +5 -5
- package/dist/chunk/{AIXA3QCN.jsx → GTGJTQN4.jsx} +17 -17
- package/dist/chunk/{N7QLMQKV.js → HEKFQEI5.js} +2 -2
- package/dist/chunk/{42QLIV3W.jsx → HQFEUYOV.jsx} +4 -4
- package/dist/chunk/{3DQJUZWY.jsx → HXSFGTUH.jsx} +4 -4
- package/dist/chunk/{QK4E7K6M.js → IFXE5SWX.js} +1 -1
- package/dist/chunk/{UTOUEYJL.jsx → IZYDGYQY.jsx} +5 -5
- package/dist/chunk/{6N62F7GL.js → JS3C64H5.js} +2 -2
- package/dist/chunk/{DROJC4BX.js → JSMOACQ5.js} +1 -1
- package/dist/chunk/{QYMDDEMZ.js → KJ3FKIIK.js} +2 -2
- package/dist/chunk/{DY4JCG75.js → KKCBAUHZ.js} +1 -1
- package/dist/chunk/{QJASL3TD.js → KQLVMRLF.js} +1 -1
- package/dist/chunk/{B7JXC4RB.js → KUTJELYB.js} +1 -1
- package/dist/chunk/{WW54SYIV.js → L6HRKS4V.js} +1 -1
- package/dist/chunk/{P24MDGF3.jsx → LKZXE4D5.jsx} +4 -4
- package/dist/chunk/{T2ZJPLCD.jsx → LMMNUVZG.jsx} +4 -4
- package/dist/chunk/{YJ7NNN57.jsx → LS7TV3SH.jsx} +21 -2
- package/dist/chunk/{AEONTAXJ.js → NCE7GTLS.js} +2 -2
- package/dist/chunk/{U65C7SBP.jsx → OAZ77M7Q.jsx} +5 -5
- package/dist/chunk/{JFMVXKWP.jsx → OEWX5CKM.jsx} +5 -5
- package/dist/chunk/{LOR2W6S2.js → OKMXOUR3.js} +1 -1
- package/dist/chunk/{27BDPPYM.jsx → OTMHVJ6C.jsx} +4 -4
- package/dist/chunk/{KX4GXB3Z.jsx → OX5YYZLK.jsx} +5 -5
- package/dist/chunk/{LXXCX4RO.jsx → POMWY2MG.jsx} +5 -5
- package/dist/chunk/{LEAWZT55.jsx → PQ3UNZE4.jsx} +4 -4
- package/dist/chunk/{OBGOP5NZ.js → PTS474GD.js} +2 -2
- package/dist/chunk/{WJON42CL.jsx → PZEZKJF3.jsx} +4 -4
- package/dist/chunk/{KCIYSRM7.jsx → Q3STMYMV.jsx} +4 -4
- package/dist/chunk/{B2OPFF7J.js → Q5KLHHE3.js} +32 -6
- package/dist/chunk/{L2N5CD4D.jsx → QUGFFYRX.jsx} +10 -9
- package/dist/chunk/{X7HQ6AMW.jsx → QX424BJV.jsx} +1 -1
- package/dist/chunk/{BCFU7H7W.js → R3KGHDYR.js} +1 -1
- package/dist/chunk/{I5ZIFWV2.jsx → R5ZNIQWU.jsx} +4 -4
- package/dist/chunk/{TOA67336.js → RFPBNMT7.js} +2 -2
- package/dist/chunk/{Q3GD7QM3.js → SPA64RV2.js} +1 -1
- package/dist/chunk/{Z7SJCWPR.jsx → SWSA36TD.jsx} +5 -5
- package/dist/chunk/{F3S42GVW.js → SYODOK2B.js} +2 -2
- package/dist/chunk/{OEMG2RQ5.jsx → T7DQP6DT.jsx} +4 -4
- package/dist/chunk/{W5MHNAP5.jsx → UPYUPAKW.jsx} +5 -5
- package/dist/chunk/{55M5FJ22.js → UW63M5GW.js} +1 -1
- package/dist/chunk/{H6DC7RQL.js → UZJR5LMS.js} +1 -1
- package/dist/chunk/{NHCOYBY5.jsx → VDX7IT74.jsx} +5 -5
- package/dist/chunk/{PELFJH2D.jsx → VI2C2YY7.jsx} +4 -4
- package/dist/chunk/{D2XL4HJ4.js → VQXL4BNM.js} +13 -13
- package/dist/chunk/{VFUEJBXC.js → WEGHFH3B.js} +1 -1
- package/dist/chunk/{MHHYBEM2.js → WLUB7JYL.js} +1 -1
- package/dist/chunk/{BLPPWNTR.js → YBEQIVOS.js} +1 -1
- package/dist/chunk/{3CKNAJLS.jsx → YCYZZGN2.jsx} +18 -18
- package/dist/chunk/{AJ4XLXC4.jsx → YJZDRWMW.jsx} +4 -4
- package/dist/chunk/{R2IA2NWU.js → YN36NFIE.js} +1 -1
- package/dist/chunk/{YQNUA2C5.jsx → YQ7OK72K.jsx} +4 -4
- package/dist/chunk/{2XEXGBVI.jsx → ZSWRRXUI.jsx} +37 -24
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +3 -3
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +2 -2
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +2 -2
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +3 -3
- package/dist/components/clipboard/index.d.ts +1 -1
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +2 -2
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +2 -2
- package/dist/components/color-picker/index.d.ts +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/index.jsx +3 -3
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/index.jsx +3 -3
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/index.jsx +2 -2
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +2 -2
- package/dist/components/editable/index.d.ts +1 -1
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +3 -3
- package/dist/components/field/index.d.ts +15 -3
- package/dist/components/field/index.js +1 -1
- package/dist/components/field/index.jsx +3 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/file-upload/index.jsx +3 -3
- package/dist/components/format/index.jsx +1 -1
- package/dist/components/frame/index.jsx +1 -1
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/index.jsx +2 -2
- package/dist/components/index.d.ts +12 -3
- package/dist/components/index.js +36 -35
- package/dist/components/index.jsx +205 -196
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +2 -2
- package/dist/components/number-input/index.d.ts +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/index.jsx +3 -3
- package/dist/components/pagination/index.jsx +2 -2
- package/dist/components/pin-input/index.d.ts +1 -1
- package/dist/components/pin-input/index.js +1 -1
- package/dist/components/pin-input/index.jsx +3 -3
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +2 -2
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +2 -2
- package/dist/components/qr-code/index.d.ts +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/qr-code/index.jsx +2 -2
- package/dist/components/radio-group/index.d.ts +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/index.jsx +2 -2
- package/dist/components/rating-group/index.d.ts +1 -1
- package/dist/components/rating-group/index.js +1 -1
- package/dist/components/rating-group/index.jsx +3 -3
- package/dist/components/segment-group/index.d.ts +1 -1
- package/dist/components/segment-group/index.js +1 -1
- package/dist/components/segment-group/index.jsx +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.jsx +3 -3
- package/dist/components/signature-pad/index.d.ts +1 -1
- package/dist/components/signature-pad/index.js +1 -1
- package/dist/components/signature-pad/index.jsx +3 -3
- package/dist/components/slider/index.d.ts +9 -3
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +4 -2
- package/dist/components/splitter/index.d.ts +1 -1
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +2 -2
- package/dist/components/steps/index.jsx +2 -2
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +3 -3
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +2 -2
- package/dist/components/tags-input/index.d.ts +1 -1
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/index.jsx +3 -3
- package/dist/components/time-picker/index.d.ts +3 -14
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/time-picker/index.jsx +4 -2
- package/dist/components/timer/index.d.ts +13 -13
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +2 -2
- package/dist/components/toggle-group/index.d.ts +1 -1
- package/dist/components/toggle-group/index.js +1 -1
- package/dist/components/toggle-group/index.jsx +2 -2
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +2 -2
- package/dist/components/tree-view/index.d.ts +1 -1
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/tree-view/index.jsx +2 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +36 -35
- package/dist/index.jsx +208 -199
- package/dist/providers/index.jsx +4 -4
- package/package.json +60 -60
- package/dist/chunk/EZ2HOZZM.js +0 -1
- package/dist/chunk/P5DFHJ7G.jsx +0 -0
- package/dist/chunk/{GZVCPLKK.jsx → 6GRTONVL.jsx} +3 -3
- package/dist/chunk/{MRQ2UYM4.jsx → GRSRDWXO.jsx} +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './Q5KLHHE3.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -109,7 +109,7 @@ var TagsInputLabel = (props) => {
|
|
|
109
109
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
110
110
|
return createComponent(ark.label, mergedProps);
|
|
111
111
|
};
|
|
112
|
-
var useTagsInput = (props) => {
|
|
112
|
+
var useTagsInput = (props = {}) => {
|
|
113
113
|
const locale = useLocaleContext();
|
|
114
114
|
const environment = useEnvironmentContext();
|
|
115
115
|
const id = createUniqueId();
|
|
@@ -80,7 +80,7 @@ var RadioGroupLabel = (props) => {
|
|
|
80
80
|
const mergedProps = mergeProps(() => radioGroup().getLabelProps(), props);
|
|
81
81
|
return createComponent(ark.label, mergedProps);
|
|
82
82
|
};
|
|
83
|
-
var useRadioGroup = (props) => {
|
|
83
|
+
var useRadioGroup = (props = {}) => {
|
|
84
84
|
const locale = useLocaleContext();
|
|
85
85
|
const environment = useEnvironmentContext();
|
|
86
86
|
const id = createUniqueId();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './Q5KLHHE3.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -49,7 +49,7 @@ var NumberInputLabel = (props) => {
|
|
|
49
49
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
50
50
|
return createComponent(ark.label, mergedProps);
|
|
51
51
|
};
|
|
52
|
-
var useNumberInput = (props) => {
|
|
52
|
+
var useNumberInput = (props = {}) => {
|
|
53
53
|
const locale = useLocaleContext();
|
|
54
54
|
const environment = useEnvironmentContext();
|
|
55
55
|
const id = createUniqueId();
|
|
@@ -45,7 +45,7 @@ var ProgressRange = (props) => {
|
|
|
45
45
|
const mergedProps = mergeProps(() => api().getRangeProps(), props);
|
|
46
46
|
return createComponent(ark.div, mergedProps);
|
|
47
47
|
};
|
|
48
|
-
var useProgress = (props) => {
|
|
48
|
+
var useProgress = (props = {}) => {
|
|
49
49
|
const locale = useLocaleContext();
|
|
50
50
|
const environment = useEnvironmentContext();
|
|
51
51
|
const id = createUniqueId();
|
|
@@ -33,7 +33,7 @@ var CollapsibleContent = (props) => {
|
|
|
33
33
|
|
|
34
34
|
// src/components/collapsible/collapsible-context.tsx
|
|
35
35
|
var CollapsibleContext = (props) => props.children(useCollapsibleContext());
|
|
36
|
-
var useCollapsible = (props) => {
|
|
36
|
+
var useCollapsible = (props = {}) => {
|
|
37
37
|
const locale = useLocaleContext();
|
|
38
38
|
const environment = useEnvironmentContext();
|
|
39
39
|
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
|
|
@@ -28,7 +28,7 @@ var AvatarImage = (props) => {
|
|
|
28
28
|
const mergedProps = mergeProps(() => context().getImageProps(), props);
|
|
29
29
|
return createComponent(ark.img, mergedProps);
|
|
30
30
|
};
|
|
31
|
-
var useAvatar = (props) => {
|
|
31
|
+
var useAvatar = (props = {}) => {
|
|
32
32
|
const locale = useLocaleContext();
|
|
33
33
|
const environment = useEnvironmentContext();
|
|
34
34
|
const id = createUniqueId();
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./5O4RWSWO.jsx";
|
|
10
7
|
import {
|
|
11
8
|
useLocaleContext
|
|
12
9
|
} from "./3QQZKR3F.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./5O4RWSWO.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./NMGUCD2L.jsx";
|
|
@@ -42,7 +42,7 @@ import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
|
42
42
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
43
43
|
import * as toggleGroup from "@zag-js/toggle-group";
|
|
44
44
|
import { createMemo, createUniqueId } from "solid-js";
|
|
45
|
-
var useToggleGroup = (props) => {
|
|
45
|
+
var useToggleGroup = (props = {}) => {
|
|
46
46
|
const locale = useLocaleContext();
|
|
47
47
|
const environment = useEnvironmentContext();
|
|
48
48
|
const id = createUniqueId();
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ark
|
|
12
12
|
} from "./UFYZ7HLU.jsx";
|
|
13
|
-
import {
|
|
14
|
-
useEnvironmentContext
|
|
15
|
-
} from "./5O4RWSWO.jsx";
|
|
16
13
|
import {
|
|
17
14
|
useLocaleContext
|
|
18
15
|
} from "./3QQZKR3F.jsx";
|
|
16
|
+
import {
|
|
17
|
+
useEnvironmentContext
|
|
18
|
+
} from "./5O4RWSWO.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./NMGUCD2L.jsx";
|
|
@@ -258,7 +258,7 @@ import { createEffect } from "solid-js";
|
|
|
258
258
|
import * as menu from "@zag-js/menu";
|
|
259
259
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
260
260
|
import { createMemo as createMemo4, createUniqueId as createUniqueId3 } from "solid-js";
|
|
261
|
-
var useMenu = (props) => {
|
|
261
|
+
var useMenu = (props = {}) => {
|
|
262
262
|
const locale = useLocaleContext();
|
|
263
263
|
const environment = useEnvironmentContext();
|
|
264
264
|
const id = createUniqueId3();
|
|
@@ -82,7 +82,8 @@ var fieldAnatomy = createAnatomy("field").parts(
|
|
|
82
82
|
"input",
|
|
83
83
|
"label",
|
|
84
84
|
"select",
|
|
85
|
-
"textarea"
|
|
85
|
+
"textarea",
|
|
86
|
+
"requiredIndicator"
|
|
86
87
|
);
|
|
87
88
|
var parts = fieldAnatomy.build();
|
|
88
89
|
|
|
@@ -166,6 +167,10 @@ var useField = (props) => {
|
|
|
166
167
|
...parts.errorText.attrs,
|
|
167
168
|
"aria-live": "polite"
|
|
168
169
|
});
|
|
170
|
+
const getRequiredIndicatorProps = () => ({
|
|
171
|
+
"aria-hidden": true,
|
|
172
|
+
...parts.requiredIndicator.attrs
|
|
173
|
+
});
|
|
169
174
|
return createMemo(() => ({
|
|
170
175
|
ariaDescribedby: labelIds.join(" "),
|
|
171
176
|
ids: {
|
|
@@ -187,7 +192,8 @@ var useField = (props) => {
|
|
|
187
192
|
getTextareaProps,
|
|
188
193
|
getSelectProps,
|
|
189
194
|
getHelperTextProps,
|
|
190
|
-
getErrorTextProps
|
|
195
|
+
getErrorTextProps,
|
|
196
|
+
getRequiredIndicatorProps
|
|
191
197
|
}));
|
|
192
198
|
};
|
|
193
199
|
|
|
@@ -234,6 +240,17 @@ var FieldTextarea = (props) => {
|
|
|
234
240
|
return <ark.textarea {...mergedProps} />;
|
|
235
241
|
};
|
|
236
242
|
|
|
243
|
+
// src/components/field/field-required-indicator.tsx
|
|
244
|
+
import { mergeProps as mergeProps10 } from "@zag-js/solid";
|
|
245
|
+
import { Show as Show2 } from "solid-js";
|
|
246
|
+
var FieldRequiredIndicator = (props) => {
|
|
247
|
+
const field = useFieldContext();
|
|
248
|
+
const mergedProps = mergeProps10(() => field().getRequiredIndicatorProps(), props);
|
|
249
|
+
return <Show2 when={field().required} fallback={props.fallback}>
|
|
250
|
+
<ark.span {...mergedProps}>{props.children ?? "*"}</ark.span>
|
|
251
|
+
</Show2>;
|
|
252
|
+
};
|
|
253
|
+
|
|
237
254
|
// src/components/field/field.ts
|
|
238
255
|
var field_exports = {};
|
|
239
256
|
__export(field_exports, {
|
|
@@ -242,6 +259,7 @@ __export(field_exports, {
|
|
|
242
259
|
HelperText: () => FieldHelperText,
|
|
243
260
|
Input: () => FieldInput,
|
|
244
261
|
Label: () => FieldLabel,
|
|
262
|
+
RequiredIndicator: () => FieldRequiredIndicator,
|
|
245
263
|
Root: () => FieldRoot,
|
|
246
264
|
RootProvider: () => FieldRootProvider,
|
|
247
265
|
Select: () => FieldSelect,
|
|
@@ -260,5 +278,6 @@ export {
|
|
|
260
278
|
FieldRootProvider,
|
|
261
279
|
FieldSelect,
|
|
262
280
|
FieldTextarea,
|
|
281
|
+
FieldRequiredIndicator,
|
|
263
282
|
field_exports
|
|
264
283
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './Q5KLHHE3.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -45,7 +45,7 @@ var PinInputLabel = (props) => {
|
|
|
45
45
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
46
46
|
return createComponent(ark.label, mergedProps);
|
|
47
47
|
};
|
|
48
|
-
var usePinInput = (props) => {
|
|
48
|
+
var usePinInput = (props = {}) => {
|
|
49
49
|
const locale = useLocaleContext();
|
|
50
50
|
const environment = useEnvironmentContext();
|
|
51
51
|
const id = createUniqueId();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./LS7TV3SH.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
ark
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./5O4RWSWO.jsx";
|
|
13
10
|
import {
|
|
14
11
|
useLocaleContext
|
|
15
12
|
} from "./3QQZKR3F.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./5O4RWSWO.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./NMGUCD2L.jsx";
|
|
@@ -77,7 +77,7 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
77
77
|
import * as numberInput from "@zag-js/number-input";
|
|
78
78
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
79
79
|
import { createMemo, createUniqueId } from "solid-js";
|
|
80
|
-
var useNumberInput = (props) => {
|
|
80
|
+
var useNumberInput = (props = {}) => {
|
|
81
81
|
const locale = useLocaleContext();
|
|
82
82
|
const environment = useEnvironmentContext();
|
|
83
83
|
const id = createUniqueId();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./LS7TV3SH.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
ark
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./5O4RWSWO.jsx";
|
|
13
10
|
import {
|
|
14
11
|
useLocaleContext
|
|
15
12
|
} from "./3QQZKR3F.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./5O4RWSWO.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./NMGUCD2L.jsx";
|
|
@@ -85,7 +85,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
85
85
|
import * as rating 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
|
-
var useRatingGroup = (props) => {
|
|
88
|
+
var useRatingGroup = (props = {}) => {
|
|
89
89
|
const locale = useLocaleContext();
|
|
90
90
|
const environment = useEnvironmentContext();
|
|
91
91
|
const id = createUniqueId();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './LCESUDZB.js';
|
|
2
|
-
import { useFieldContext } from './
|
|
2
|
+
import { useFieldContext } from './Q5KLHHE3.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
5
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./5O4RWSWO.jsx";
|
|
10
7
|
import {
|
|
11
8
|
useLocaleContext
|
|
12
9
|
} from "./3QQZKR3F.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./5O4RWSWO.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./NMGUCD2L.jsx";
|
|
@@ -172,7 +172,7 @@ import { mergeProps as mergeProps11 } from "@zag-js/solid";
|
|
|
172
172
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
173
173
|
import * as treeView from "@zag-js/tree-view";
|
|
174
174
|
import { createMemo as createMemo2, createUniqueId } from "solid-js";
|
|
175
|
-
var useTreeView = (props) => {
|
|
175
|
+
var useTreeView = (props = {}) => {
|
|
176
176
|
const locale = useLocaleContext();
|
|
177
177
|
const environment = useEnvironmentContext();
|
|
178
178
|
const id = createUniqueId();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collapsible_exports,
|
|
3
3
|
useCollapsibleContext
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./PQ3UNZE4.jsx";
|
|
5
5
|
import {
|
|
6
6
|
RenderStrategyProvider,
|
|
7
7
|
splitRenderStrategyProps,
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
ark
|
|
15
15
|
} from "./UFYZ7HLU.jsx";
|
|
16
|
-
import {
|
|
17
|
-
useEnvironmentContext
|
|
18
|
-
} from "./5O4RWSWO.jsx";
|
|
19
16
|
import {
|
|
20
17
|
useLocaleContext
|
|
21
18
|
} from "./3QQZKR3F.jsx";
|
|
19
|
+
import {
|
|
20
|
+
useEnvironmentContext
|
|
21
|
+
} from "./5O4RWSWO.jsx";
|
|
22
22
|
import {
|
|
23
23
|
createContext
|
|
24
24
|
} from "./NMGUCD2L.jsx";
|
|
@@ -121,7 +121,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
121
121
|
import * as accordion from "@zag-js/accordion";
|
|
122
122
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
123
123
|
import { createMemo as createMemo3, createUniqueId } from "solid-js";
|
|
124
|
-
var useAccordion = (props) => {
|
|
124
|
+
var useAccordion = (props = {}) => {
|
|
125
125
|
const id = createUniqueId();
|
|
126
126
|
const locale = useLocaleContext();
|
|
127
127
|
const environment = useEnvironmentContext();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./LS7TV3SH.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
7
7
|
import {
|
|
8
8
|
ark
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./5O4RWSWO.jsx";
|
|
13
10
|
import {
|
|
14
11
|
useLocaleContext
|
|
15
12
|
} from "./3QQZKR3F.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./5O4RWSWO.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./NMGUCD2L.jsx";
|
|
@@ -151,7 +151,7 @@ import { mergeProps as mergeProps11 } from "@zag-js/solid";
|
|
|
151
151
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
152
152
|
import * as tagsInput from "@zag-js/tags-input";
|
|
153
153
|
import { createMemo as createMemo2, createUniqueId } from "solid-js";
|
|
154
|
-
var useTagsInput = (props) => {
|
|
154
|
+
var useTagsInput = (props = {}) => {
|
|
155
155
|
const locale = useLocaleContext();
|
|
156
156
|
const environment = useEnvironmentContext();
|
|
157
157
|
const id = createUniqueId();
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
ark
|
|
9
9
|
} from "./UFYZ7HLU.jsx";
|
|
10
|
-
import {
|
|
11
|
-
useEnvironmentContext
|
|
12
|
-
} from "./5O4RWSWO.jsx";
|
|
13
10
|
import {
|
|
14
11
|
useLocaleContext
|
|
15
12
|
} from "./3QQZKR3F.jsx";
|
|
13
|
+
import {
|
|
14
|
+
useEnvironmentContext
|
|
15
|
+
} from "./5O4RWSWO.jsx";
|
|
16
16
|
import {
|
|
17
17
|
createContext
|
|
18
18
|
} from "./NMGUCD2L.jsx";
|
|
@@ -49,7 +49,7 @@ import { mergeProps as mergeProps2 } from "@zag-js/solid";
|
|
|
49
49
|
import * as collapsible from "@zag-js/collapsible";
|
|
50
50
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
51
51
|
import { createEffect, createMemo, createSignal, createUniqueId } from "solid-js";
|
|
52
|
-
var useCollapsible = (props) => {
|
|
52
|
+
var useCollapsible = (props = {}) => {
|
|
53
53
|
const locale = useLocaleContext();
|
|
54
54
|
const environment = useEnvironmentContext();
|
|
55
55
|
const [renderStrategyProps, collapsibleProps] = splitRenderStrategyProps(props);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './Q5KLHHE3.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -62,7 +62,7 @@ var RatingGroupLabel = (props) => {
|
|
|
62
62
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
63
63
|
return createComponent(ark.label, mergedProps);
|
|
64
64
|
};
|
|
65
|
-
var useRatingGroup = (props) => {
|
|
65
|
+
var useRatingGroup = (props = {}) => {
|
|
66
66
|
const locale = useLocaleContext();
|
|
67
67
|
const environment = useEnvironmentContext();
|
|
68
68
|
const id = createUniqueId();
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./5O4RWSWO.jsx";
|
|
10
7
|
import {
|
|
11
8
|
useLocaleContext
|
|
12
9
|
} from "./3QQZKR3F.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./5O4RWSWO.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./NMGUCD2L.jsx";
|
|
@@ -99,7 +99,7 @@ import { mergeProps as mergeProps8 } from "@zag-js/solid";
|
|
|
99
99
|
import * as carousel from "@zag-js/carousel";
|
|
100
100
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
101
101
|
import { createMemo, createUniqueId } from "solid-js";
|
|
102
|
-
var useCarousel = (props) => {
|
|
102
|
+
var useCarousel = (props = {}) => {
|
|
103
103
|
const locale = useLocaleContext();
|
|
104
104
|
const environment = useEnvironmentContext();
|
|
105
105
|
const id = createUniqueId();
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./5O4RWSWO.jsx";
|
|
10
7
|
import {
|
|
11
8
|
useLocaleContext
|
|
12
9
|
} from "./3QQZKR3F.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./5O4RWSWO.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./NMGUCD2L.jsx";
|
|
@@ -112,7 +112,7 @@ import { mergeProps as mergeProps7 } from "@zag-js/solid";
|
|
|
112
112
|
import * as radio from "@zag-js/radio-group";
|
|
113
113
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
114
114
|
import { createMemo as createMemo2, createUniqueId } from "solid-js";
|
|
115
|
-
var useRadioGroup = (props) => {
|
|
115
|
+
var useRadioGroup = (props = {}) => {
|
|
116
116
|
const locale = useLocaleContext();
|
|
117
117
|
const environment = useEnvironmentContext();
|
|
118
118
|
const id = createUniqueId();
|
|
@@ -3,9 +3,9 @@ import { createSplitProps } from './ZMHI4GDJ.js';
|
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { createContext } from './I5UG2QUO.js';
|
|
5
5
|
import { __export } from './ESLJRKWD.js';
|
|
6
|
-
import { createComponent } from 'solid-js/web';
|
|
6
|
+
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
7
7
|
import { mergeProps } from '@zag-js/solid';
|
|
8
|
-
import { Show, mergeProps as mergeProps$
|
|
8
|
+
import { Show, mergeProps as mergeProps$2, createSignal, createUniqueId, createEffect, createMemo } from 'solid-js';
|
|
9
9
|
import { dataAttr, ariaAttr } from '@zag-js/dom-query';
|
|
10
10
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
11
11
|
|
|
@@ -52,14 +52,15 @@ var fieldAnatomy = createAnatomy("field").parts(
|
|
|
52
52
|
"input",
|
|
53
53
|
"label",
|
|
54
54
|
"select",
|
|
55
|
-
"textarea"
|
|
55
|
+
"textarea",
|
|
56
|
+
"requiredIndicator"
|
|
56
57
|
);
|
|
57
58
|
var parts = fieldAnatomy.build();
|
|
58
59
|
|
|
59
60
|
// src/components/field/use-field.ts
|
|
60
61
|
var useField = (props) => {
|
|
61
62
|
const fieldset = useFieldsetContext();
|
|
62
|
-
const fieldProps = mergeProps$
|
|
63
|
+
const fieldProps = mergeProps$2(
|
|
63
64
|
{ disabled: Boolean(fieldset?.().disabled), required: false, invalid: false, readOnly: false },
|
|
64
65
|
props
|
|
65
66
|
);
|
|
@@ -125,6 +126,10 @@ var useField = (props) => {
|
|
|
125
126
|
...parts.errorText.attrs,
|
|
126
127
|
"aria-live": "polite"
|
|
127
128
|
});
|
|
129
|
+
const getRequiredIndicatorProps = () => ({
|
|
130
|
+
"aria-hidden": true,
|
|
131
|
+
...parts.requiredIndicator.attrs
|
|
132
|
+
});
|
|
128
133
|
return createMemo(() => ({
|
|
129
134
|
ariaDescribedby: labelIds.join(" "),
|
|
130
135
|
ids: {
|
|
@@ -146,7 +151,8 @@ var useField = (props) => {
|
|
|
146
151
|
getTextareaProps,
|
|
147
152
|
getSelectProps,
|
|
148
153
|
getHelperTextProps,
|
|
149
|
-
getErrorTextProps
|
|
154
|
+
getErrorTextProps,
|
|
155
|
+
getRequiredIndicatorProps
|
|
150
156
|
}));
|
|
151
157
|
};
|
|
152
158
|
|
|
@@ -184,6 +190,25 @@ var FieldTextarea = (props) => {
|
|
|
184
190
|
const mergedProps = mergeProps(() => field?.().getTextareaProps(), props);
|
|
185
191
|
return createComponent(ark.textarea, mergedProps);
|
|
186
192
|
};
|
|
193
|
+
var FieldRequiredIndicator = (props) => {
|
|
194
|
+
const field = useFieldContext();
|
|
195
|
+
const mergedProps = mergeProps(() => field().getRequiredIndicatorProps(), props);
|
|
196
|
+
return createComponent(Show, {
|
|
197
|
+
get when() {
|
|
198
|
+
return field().required;
|
|
199
|
+
},
|
|
200
|
+
get fallback() {
|
|
201
|
+
return props.fallback;
|
|
202
|
+
},
|
|
203
|
+
get children() {
|
|
204
|
+
return createComponent(ark.span, mergeProps$1(mergedProps, {
|
|
205
|
+
get children() {
|
|
206
|
+
return props.children ?? "*";
|
|
207
|
+
}
|
|
208
|
+
}));
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
};
|
|
187
212
|
|
|
188
213
|
// src/components/field/field.ts
|
|
189
214
|
var field_exports = {};
|
|
@@ -193,10 +218,11 @@ __export(field_exports, {
|
|
|
193
218
|
HelperText: () => FieldHelperText,
|
|
194
219
|
Input: () => FieldInput,
|
|
195
220
|
Label: () => FieldLabel,
|
|
221
|
+
RequiredIndicator: () => FieldRequiredIndicator,
|
|
196
222
|
Root: () => FieldRoot,
|
|
197
223
|
RootProvider: () => FieldRootProvider,
|
|
198
224
|
Select: () => FieldSelect,
|
|
199
225
|
Textarea: () => FieldTextarea
|
|
200
226
|
});
|
|
201
227
|
|
|
202
|
-
export { FieldContext, FieldErrorText, FieldHelperText, FieldInput, FieldLabel, FieldRoot, FieldRootProvider, FieldSelect, FieldTextarea, fieldAnatomy, field_exports, useFieldContext };
|
|
228
|
+
export { FieldContext, FieldErrorText, FieldHelperText, FieldInput, FieldLabel, FieldRequiredIndicator, FieldRoot, FieldRootProvider, FieldSelect, FieldTextarea, fieldAnatomy, field_exports, useFieldContext };
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
ark
|
|
12
12
|
} from "./UFYZ7HLU.jsx";
|
|
13
|
-
import {
|
|
14
|
-
useEnvironmentContext
|
|
15
|
-
} from "./5O4RWSWO.jsx";
|
|
16
13
|
import {
|
|
17
14
|
useLocaleContext
|
|
18
15
|
} from "./3QQZKR3F.jsx";
|
|
16
|
+
import {
|
|
17
|
+
useEnvironmentContext
|
|
18
|
+
} from "./5O4RWSWO.jsx";
|
|
19
19
|
import {
|
|
20
20
|
createContext
|
|
21
21
|
} from "./NMGUCD2L.jsx";
|
|
@@ -23,6 +23,9 @@ import {
|
|
|
23
23
|
__export
|
|
24
24
|
} from "./7IUG3E2V.jsx";
|
|
25
25
|
|
|
26
|
+
// src/components/time-picker/index.tsx
|
|
27
|
+
import { parseTime } from "@internationalized/date";
|
|
28
|
+
|
|
26
29
|
// src/components/time-picker/time-picker-cell.tsx
|
|
27
30
|
import { mergeProps } from "@zag-js/solid";
|
|
28
31
|
|
|
@@ -131,7 +134,6 @@ var TimePickerPositioner = (props) => {
|
|
|
131
134
|
import { mergeProps as mergeProps9 } from "@zag-js/solid";
|
|
132
135
|
|
|
133
136
|
// src/components/time-picker/use-time-picker.ts
|
|
134
|
-
import { parseTime } from "@internationalized/date";
|
|
135
137
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
136
138
|
import * as timePicker from "@zag-js/time-picker";
|
|
137
139
|
import { createMemo, createUniqueId } from "solid-js";
|
|
@@ -145,10 +147,8 @@ var useTimePicker = (props = {}) => {
|
|
|
145
147
|
getRootNode: environment().getRootNode,
|
|
146
148
|
open: props.defaultOpen,
|
|
147
149
|
"open.controlled": props.open !== void 0,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
min: props.min ? parseTime(props.min) : void 0,
|
|
151
|
-
max: props.max ? parseTime(props.max) : void 0
|
|
150
|
+
value: props.defaultValue,
|
|
151
|
+
...props
|
|
152
152
|
}));
|
|
153
153
|
const [state, send] = useMachine(timePicker.machine(context()), { context });
|
|
154
154
|
return createMemo(() => timePicker.connect(state, send, normalizeProps));
|
|
@@ -256,5 +256,6 @@ export {
|
|
|
256
256
|
TimePickerRootProvider,
|
|
257
257
|
TimePickerSpacer,
|
|
258
258
|
TimePickerTrigger,
|
|
259
|
-
time_picker_exports
|
|
259
|
+
time_picker_exports,
|
|
260
|
+
parseTime
|
|
260
261
|
};
|
|
@@ -69,7 +69,7 @@ import { mergeProps as mergeProps5 } from "@zag-js/solid";
|
|
|
69
69
|
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
|
-
var useClipboard = (props) => {
|
|
72
|
+
var useClipboard = (props = {}) => {
|
|
73
73
|
const environment = useEnvironmentContext();
|
|
74
74
|
const id = createUniqueId();
|
|
75
75
|
const context = createMemo(() => ({
|
|
@@ -30,7 +30,7 @@ var SplitterResizeTrigger = (props) => {
|
|
|
30
30
|
const mergedProps = mergeProps(() => api().getResizeTriggerProps(resizeTriggerProps), restProps);
|
|
31
31
|
return createComponent(ark.button, mergedProps);
|
|
32
32
|
};
|
|
33
|
-
var useSplitter = (props) => {
|
|
33
|
+
var useSplitter = (props = {}) => {
|
|
34
34
|
const locale = useLocaleContext();
|
|
35
35
|
const environment = useEnvironmentContext();
|
|
36
36
|
const id = createUniqueId();
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ark
|
|
6
6
|
} from "./UFYZ7HLU.jsx";
|
|
7
|
-
import {
|
|
8
|
-
useEnvironmentContext
|
|
9
|
-
} from "./5O4RWSWO.jsx";
|
|
10
7
|
import {
|
|
11
8
|
useLocaleContext
|
|
12
9
|
} from "./3QQZKR3F.jsx";
|
|
10
|
+
import {
|
|
11
|
+
useEnvironmentContext
|
|
12
|
+
} from "./5O4RWSWO.jsx";
|
|
13
13
|
import {
|
|
14
14
|
createContext
|
|
15
15
|
} from "./NMGUCD2L.jsx";
|
|
@@ -57,7 +57,7 @@ import { mergeProps as mergeProps4 } from "@zag-js/solid";
|
|
|
57
57
|
import * as qrCode from "@zag-js/qr-code";
|
|
58
58
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
59
59
|
import { createMemo, createUniqueId } from "solid-js";
|
|
60
|
-
var useQrCode = (props) => {
|
|
60
|
+
var useQrCode = (props = {}) => {
|
|
61
61
|
const locale = useLocaleContext();
|
|
62
62
|
const environment = useEnvironmentContext();
|
|
63
63
|
const id = createUniqueId();
|