@ark-ui/solid 4.2.1 → 4.4.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/2PEBPAD5.jsx +15 -0
- package/dist/chunk/{ZTGL23QZ.js → 4DPMLML4.js} +1 -1
- package/dist/chunk/{W7ARB4RD.jsx → 4ICFJW2D.jsx} +1 -1
- package/dist/chunk/{QPV7P3RM.jsx → 4TNW4LNT.jsx} +1 -1
- package/dist/chunk/{RAMP76RX.jsx → 57637BHV.jsx} +1 -1
- package/dist/chunk/{OYTB5QWY.js → 5JS7LFUQ.js} +11 -11
- package/dist/chunk/{52UPAMUX.jsx → 6EY2Z73Y.jsx} +1 -1
- package/dist/chunk/{X3GDAQGM.js → AK2LUFHG.js} +14 -3
- package/dist/chunk/{XOMMWT5J.jsx → AZBVL3C5.jsx} +2 -2
- package/dist/chunk/{DNNMKWRH.js → BNMRTYLU.js} +1 -1
- package/dist/chunk/DFMOPRAE.jsx +299 -0
- package/dist/chunk/{PIUV7KP7.js → DLHPAHCZ.js} +4 -2
- package/dist/chunk/{YQYOROY7.jsx → DV2ZLINV.jsx} +2 -2
- package/dist/chunk/{QZBKZO47.js → DYAAMWKJ.js} +2 -2
- package/dist/chunk/{KBVWLUJ7.jsx → EDCPFD3E.jsx} +10 -2
- package/dist/chunk/{2C6A32GV.js → ENHIBLQ6.js} +1 -1
- package/dist/chunk/FE2WXPJR.js +23 -0
- package/dist/chunk/{5WUHQS6Z.jsx → FNDB3E7F.jsx} +2 -2
- package/dist/chunk/{ERLD5LJI.jsx → FZ3HSYOZ.jsx} +2 -2
- package/dist/chunk/{HSUP2TTG.jsx → GTGJTQN4.jsx} +1 -1
- package/dist/chunk/{OMSDY5OI.jsx → HQFEUYOV.jsx} +1 -1
- package/dist/chunk/{AEONTAXJ.js → HWURSPSE.js} +2 -2
- package/dist/chunk/{4QFM6QV6.jsx → HXSFGTUH.jsx} +1 -1
- package/dist/chunk/{OBGOP5NZ.js → I5OAZLKD.js} +2 -2
- package/dist/chunk/{DROJC4BX.js → JSMOACQ5.js} +1 -1
- 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/{E24BRDL3.jsx → LKZXE4D5.jsx} +1 -1
- package/dist/chunk/{47KR5N4Y.jsx → LMMNUVZG.jsx} +1 -1
- package/dist/chunk/{QK4E7K6M.js → LNX6MNBX.js} +1 -1
- package/dist/chunk/{SMWURVP2.jsx → LQVOH74V.jsx} +2 -2
- package/dist/chunk/{N7QLMQKV.js → ND6ULTIP.js} +3 -3
- package/dist/chunk/{VN3OG575.js → PAR3AJGR.js} +2 -2
- package/dist/chunk/{B2OPFF7J.js → PBJ7MGGS.js} +53 -8
- package/dist/chunk/{3DRWVGGU.jsx → PQ3UNZE4.jsx} +1 -1
- package/dist/chunk/{35W72PCD.jsx → PSWXIR5X.jsx} +2 -2
- package/dist/chunk/{QESOHNJZ.jsx → PZDCODVM.jsx} +3 -3
- package/dist/chunk/{VHCWCT42.jsx → PZEZKJF3.jsx} +1 -1
- package/dist/chunk/{M4DS7MOB.jsx → Q3STMYMV.jsx} +1 -1
- package/dist/chunk/{KWJ6UCDT.js → Q55I4ULB.js} +3 -3
- package/dist/chunk/{X7HQ6AMW.jsx → QX424BJV.jsx} +1 -1
- package/dist/chunk/{QYMDDEMZ.js → QXDC5XNT.js} +2 -2
- package/dist/chunk/{BCFU7H7W.js → R3KGHDYR.js} +1 -1
- package/dist/chunk/{6YHAMTNY.jsx → R5ZNIQWU.jsx} +1 -1
- package/dist/chunk/{RIBPOJCE.jsx → RSBH7AZU.jsx} +3 -3
- package/dist/chunk/{Q3GD7QM3.js → SPA64RV2.js} +1 -1
- package/dist/chunk/{276CD5ZR.jsx → T3B55CSO.jsx} +1 -2
- package/dist/chunk/{3RQAXTAW.jsx → T7DQP6DT.jsx} +1 -1
- package/dist/chunk/TRSBHTDC.js +214 -0
- package/dist/chunk/{YJ7NNN57.jsx → TY6NCPFG.jsx} +41 -4
- package/dist/chunk/{RKKIRTHU.jsx → U6PDXLCA.jsx} +2 -2
- package/dist/chunk/{QYFVBX63.js → UMKKXI44.js} +2 -2
- package/dist/chunk/{55M5FJ22.js → UW63M5GW.js} +1 -1
- package/dist/chunk/{2ZTI3KY5.jsx → UYIC346K.jsx} +2 -2
- package/dist/chunk/{H6DC7RQL.js → UZJR5LMS.js} +1 -1
- package/dist/chunk/{7HCCUF5N.jsx → VI2C2YY7.jsx} +1 -1
- package/dist/chunk/{F3S42GVW.js → VKM3Y5SS.js} +2 -2
- package/dist/chunk/{6N62F7GL.js → VO46CN3P.js} +2 -2
- package/dist/chunk/{NPI5WNO3.js → VQXL4BNM.js} +1 -1
- package/dist/chunk/{VFUEJBXC.js → WEGHFH3B.js} +1 -1
- package/dist/chunk/{TOA67336.js → WLTUCUPQ.js} +2 -2
- 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/{LOR2W6S2.js → YEVD47QN.js} +2 -2
- package/dist/chunk/{VDEU2H3V.jsx → YJZDRWMW.jsx} +1 -1
- package/dist/chunk/{R2IA2NWU.js → YN36NFIE.js} +1 -1
- package/dist/chunk/{HHXZ2XZQ.jsx → YQ7OK72K.jsx} +1 -1
- package/dist/chunk/{IYVZTV3F.jsx → ZSWRRXUI.jsx} +34 -21
- package/dist/chunk/{WTIOAOZ4.jsx → ZX3QOLR2.jsx} +2 -2
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/index.jsx +2 -2
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/index.jsx +1 -1
- package/dist/components/carousel/index.d.ts +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.jsx +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.jsx +2 -2
- package/dist/components/clipboard/index.d.ts +1 -1
- package/dist/components/clipboard/index.js +1 -1
- package/dist/components/clipboard/index.jsx +1 -1
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/index.jsx +1 -1
- package/dist/components/collection.d.ts +6 -3
- package/dist/components/collection.js +1 -1
- package/dist/components/collection.jsx +7 -3
- 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 +2 -2
- package/dist/components/combobox/index.js +2 -2
- 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 +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/index.jsx +1 -1
- package/dist/components/editable/index.d.ts +1 -1
- package/dist/components/editable/index.js +1 -1
- package/dist/components/editable/index.jsx +2 -2
- package/dist/components/field/index.d.ts +20 -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 +2 -2
- 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 +1 -1
- package/dist/components/index.d.ts +14 -6
- package/dist/components/index.js +38 -37
- package/dist/components/index.jsx +204 -197
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.jsx +1 -1
- 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 +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 +2 -2
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/index.jsx +1 -1
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.jsx +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/components/select/index.js +2 -2
- 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 +2 -2
- package/dist/components/slider/index.d.ts +9 -3
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.jsx +3 -1
- package/dist/components/splitter/index.d.ts +1 -1
- package/dist/components/splitter/index.js +1 -1
- package/dist/components/splitter/index.jsx +1 -1
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.jsx +2 -2
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/index.jsx +1 -1
- 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 +2 -2
- package/dist/components/timer/index.d.ts +13 -13
- package/dist/components/timer/index.js +1 -1
- package/dist/components/timer/index.jsx +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- 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 +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.jsx +1 -1
- package/dist/components/tree-view/index.d.ts +73 -59
- package/dist/components/tree-view/index.js +2 -1
- package/dist/components/tree-view/index.jsx +15 -11
- package/dist/index.d.ts +6 -5
- package/dist/index.js +38 -37
- package/dist/index.jsx +204 -197
- package/package.json +60 -59
- package/dist/chunk/DI6H2YIE.jsx +0 -279
- package/dist/chunk/EZ2HOZZM.js +0 -1
- package/dist/chunk/MVL2JW5G.js +0 -213
- package/dist/chunk/P5DFHJ7G.jsx +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.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();
|
|
@@ -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();
|
|
@@ -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();
|
|
@@ -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();
|
|
@@ -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();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.js';
|
|
1
2
|
import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider } from './LCESUDZB.js';
|
|
2
|
-
import { useFieldContext } from './B2OPFF7J.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
5
5
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./TY6NCPFG.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.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,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -96,7 +96,7 @@ var FileUploadItemPreviewImage = (props) => {
|
|
|
96
96
|
const cleanup = fileUpload2().createFileUrl(itemProps.file, (url2) => setUrl(url2));
|
|
97
97
|
onCleanup(cleanup);
|
|
98
98
|
});
|
|
99
|
-
const mergedProps = mergeProps(fileUpload2().getItemPreviewImageProps({
|
|
99
|
+
const mergedProps = mergeProps(() => fileUpload2().getItemPreviewImageProps({
|
|
100
100
|
...itemProps,
|
|
101
101
|
url: url()
|
|
102
102
|
}), props);
|
|
@@ -117,7 +117,7 @@ var FileUploadLabel = (props) => {
|
|
|
117
117
|
const mergedProps = mergeProps(() => fileUpload2().getLabelProps(), props);
|
|
118
118
|
return createComponent(ark.label, mergedProps);
|
|
119
119
|
};
|
|
120
|
-
var useFileUpload = (props) => {
|
|
120
|
+
var useFileUpload = (props = {}) => {
|
|
121
121
|
const locale = useLocaleContext();
|
|
122
122
|
const environment = useEnvironmentContext();
|
|
123
123
|
const id = createUniqueId();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.js';
|
|
2
2
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
3
3
|
import { ark } from './EPLBB4QN.js';
|
|
4
4
|
import { useLocaleContext } from './HPDOBQ3V.js';
|
|
@@ -39,7 +39,7 @@ var SwitchLabel = (props) => {
|
|
|
39
39
|
const mergedProps = mergeProps(() => api().getLabelProps(), props);
|
|
40
40
|
return createComponent(ark.span, mergedProps);
|
|
41
41
|
};
|
|
42
|
-
var useSwitch = (props) => {
|
|
42
|
+
var useSwitch = (props = {}) => {
|
|
43
43
|
const locale = useLocaleContext();
|
|
44
44
|
const environment = useEnvironmentContext();
|
|
45
45
|
const id = createUniqueId();
|
|
@@ -3,11 +3,12 @@ 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, createEffect, mergeProps as mergeProps$2, createSignal, createUniqueId, createMemo } from 'solid-js';
|
|
9
9
|
import { dataAttr, ariaAttr } from '@zag-js/dom-query';
|
|
10
10
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
11
|
+
import { autoresizeTextarea } from '@zag-js/auto-resize';
|
|
11
12
|
|
|
12
13
|
// src/components/field/use-field-context.ts
|
|
13
14
|
var [FieldProvider, useFieldContext] = createContext({
|
|
@@ -52,14 +53,15 @@ var fieldAnatomy = createAnatomy("field").parts(
|
|
|
52
53
|
"input",
|
|
53
54
|
"label",
|
|
54
55
|
"select",
|
|
55
|
-
"textarea"
|
|
56
|
+
"textarea",
|
|
57
|
+
"requiredIndicator"
|
|
56
58
|
);
|
|
57
59
|
var parts = fieldAnatomy.build();
|
|
58
60
|
|
|
59
61
|
// src/components/field/use-field.ts
|
|
60
62
|
var useField = (props) => {
|
|
61
63
|
const fieldset = useFieldsetContext();
|
|
62
|
-
const fieldProps = mergeProps$
|
|
64
|
+
const fieldProps = mergeProps$2(
|
|
63
65
|
{ disabled: Boolean(fieldset?.().disabled), required: false, invalid: false, readOnly: false },
|
|
64
66
|
props
|
|
65
67
|
);
|
|
@@ -125,6 +127,10 @@ var useField = (props) => {
|
|
|
125
127
|
...parts.errorText.attrs,
|
|
126
128
|
"aria-live": "polite"
|
|
127
129
|
});
|
|
130
|
+
const getRequiredIndicatorProps = () => ({
|
|
131
|
+
"aria-hidden": true,
|
|
132
|
+
...parts.requiredIndicator.attrs
|
|
133
|
+
});
|
|
128
134
|
return createMemo(() => ({
|
|
129
135
|
ariaDescribedby: labelIds.join(" "),
|
|
130
136
|
ids: {
|
|
@@ -146,7 +152,8 @@ var useField = (props) => {
|
|
|
146
152
|
getTextareaProps,
|
|
147
153
|
getSelectProps,
|
|
148
154
|
getHelperTextProps,
|
|
149
|
-
getErrorTextProps
|
|
155
|
+
getErrorTextProps,
|
|
156
|
+
getRequiredIndicatorProps
|
|
150
157
|
}));
|
|
151
158
|
};
|
|
152
159
|
|
|
@@ -181,8 +188,45 @@ var FieldSelect = (props) => {
|
|
|
181
188
|
};
|
|
182
189
|
var FieldTextarea = (props) => {
|
|
183
190
|
const field = useFieldContext();
|
|
184
|
-
|
|
185
|
-
|
|
191
|
+
let textareaRef;
|
|
192
|
+
const {
|
|
193
|
+
autoresize,
|
|
194
|
+
...textareaProps
|
|
195
|
+
} = props;
|
|
196
|
+
const mergedProps = mergeProps(() => field?.().getTextareaProps(), () => ({
|
|
197
|
+
style: {
|
|
198
|
+
resize: autoresize ? "none" : void 0
|
|
199
|
+
}
|
|
200
|
+
}), textareaProps);
|
|
201
|
+
createEffect(() => {
|
|
202
|
+
if (!autoresize) return;
|
|
203
|
+
const cleanup = autoresizeTextarea(textareaRef);
|
|
204
|
+
return cleanup;
|
|
205
|
+
});
|
|
206
|
+
return createComponent(ark.textarea, mergeProps$1(mergedProps, {
|
|
207
|
+
ref: (el) => {
|
|
208
|
+
textareaRef = el;
|
|
209
|
+
}
|
|
210
|
+
}));
|
|
211
|
+
};
|
|
212
|
+
var FieldRequiredIndicator = (props) => {
|
|
213
|
+
const field = useFieldContext();
|
|
214
|
+
const mergedProps = mergeProps(() => field().getRequiredIndicatorProps(), props);
|
|
215
|
+
return createComponent(Show, {
|
|
216
|
+
get when() {
|
|
217
|
+
return field().required;
|
|
218
|
+
},
|
|
219
|
+
get fallback() {
|
|
220
|
+
return props.fallback;
|
|
221
|
+
},
|
|
222
|
+
get children() {
|
|
223
|
+
return createComponent(ark.span, mergeProps$1(mergedProps, {
|
|
224
|
+
get children() {
|
|
225
|
+
return props.children ?? "*";
|
|
226
|
+
}
|
|
227
|
+
}));
|
|
228
|
+
}
|
|
229
|
+
});
|
|
186
230
|
};
|
|
187
231
|
|
|
188
232
|
// src/components/field/field.ts
|
|
@@ -193,10 +237,11 @@ __export(field_exports, {
|
|
|
193
237
|
HelperText: () => FieldHelperText,
|
|
194
238
|
Input: () => FieldInput,
|
|
195
239
|
Label: () => FieldLabel,
|
|
240
|
+
RequiredIndicator: () => FieldRequiredIndicator,
|
|
196
241
|
Root: () => FieldRoot,
|
|
197
242
|
RootProvider: () => FieldRootProvider,
|
|
198
243
|
Select: () => FieldSelect,
|
|
199
244
|
Textarea: () => FieldTextarea
|
|
200
245
|
});
|
|
201
246
|
|
|
202
|
-
export { FieldContext, FieldErrorText, FieldHelperText, FieldInput, FieldLabel, FieldRoot, FieldRootProvider, FieldSelect, FieldTextarea, fieldAnatomy, field_exports, useFieldContext };
|
|
247
|
+
export { FieldContext, FieldErrorText, FieldHelperText, FieldInput, FieldLabel, FieldRequiredIndicator, FieldRoot, FieldRootProvider, FieldSelect, FieldTextarea, fieldAnatomy, field_exports, useFieldContext };
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./TY6NCPFG.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -95,7 +95,7 @@ import { mergeProps as mergeProps8 } from "@zag-js/solid";
|
|
|
95
95
|
import * as editable from "@zag-js/editable";
|
|
96
96
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
97
97
|
import { createMemo, createUniqueId } from "solid-js";
|
|
98
|
-
var useEditable = (props) => {
|
|
98
|
+
var useEditable = (props = {}) => {
|
|
99
99
|
const locale = useLocaleContext();
|
|
100
100
|
const environment = useEnvironmentContext();
|
|
101
101
|
const id = createUniqueId();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldContext
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./TY6NCPFG.jsx";
|
|
4
4
|
import {
|
|
5
5
|
createSplitProps
|
|
6
6
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -123,7 +123,7 @@ var FileUploadItemPreviewImage = (props) => {
|
|
|
123
123
|
onCleanup(cleanup);
|
|
124
124
|
});
|
|
125
125
|
const mergedProps = mergeProps9(
|
|
126
|
-
fileUpload2().getItemPreviewImageProps({ ...itemProps, url: url() }),
|
|
126
|
+
() => fileUpload2().getItemPreviewImageProps({ ...itemProps, url: url() }),
|
|
127
127
|
props
|
|
128
128
|
);
|
|
129
129
|
return <ark.img {...mergedProps} />;
|
|
@@ -153,7 +153,7 @@ import { mergeProps as mergeProps12 } from "@zag-js/solid";
|
|
|
153
153
|
import * as fileUpload from "@zag-js/file-upload";
|
|
154
154
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
155
155
|
import { createMemo, createUniqueId } from "solid-js";
|
|
156
|
-
var useFileUpload = (props) => {
|
|
156
|
+
var useFileUpload = (props = {}) => {
|
|
157
157
|
const locale = useLocaleContext();
|
|
158
158
|
const environment = useEnvironmentContext();
|
|
159
159
|
const id = createUniqueId();
|
|
@@ -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();
|
|
@@ -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();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { collapsible_exports, useCollapsibleContext } from './
|
|
1
|
+
import { collapsible_exports, useCollapsibleContext } from './KQLVMRLF.js';
|
|
2
2
|
import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './L7OSYHVR.js';
|
|
3
3
|
import { createSplitProps } from './ZMHI4GDJ.js';
|
|
4
4
|
import { ark } from './EPLBB4QN.js';
|
|
@@ -71,7 +71,7 @@ var AccordionItemContent = (props) => {
|
|
|
71
71
|
const [, ownProps] = splitVisibilityProps(contentProps, ["hidden", "data-state"]);
|
|
72
72
|
return ownProps;
|
|
73
73
|
});
|
|
74
|
-
const mergedProps = mergeProps(itemContentProps, props);
|
|
74
|
+
const mergedProps = mergeProps(() => itemContentProps(), props);
|
|
75
75
|
return createComponent(collapsible_exports.Content, mergedProps);
|
|
76
76
|
};
|
|
77
77
|
|
|
@@ -91,7 +91,7 @@ var AccordionItemTrigger = (props) => {
|
|
|
91
91
|
const [ariaControls, buttonProps] = splitProps(mergedProps, ["aria-controls"]);
|
|
92
92
|
return createComponent(ark.button, mergeProps$1(buttonProps, () => !collapsible().unmounted && ariaControls));
|
|
93
93
|
};
|
|
94
|
-
var useAccordion = (props) => {
|
|
94
|
+
var useAccordion = (props = {}) => {
|
|
95
95
|
const id = createUniqueId();
|
|
96
96
|
const locale = useLocaleContext();
|
|
97
97
|
const environment = useEnvironmentContext();
|
|
@@ -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(() => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFieldContext } from './
|
|
1
|
+
import { useFieldContext } from './PBJ7MGGS.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();
|
|
@@ -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();
|
|
@@ -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();
|
|
@@ -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,
|
|
@@ -86,7 +86,7 @@ var AccordionItemContent = (props) => {
|
|
|
86
86
|
]);
|
|
87
87
|
return ownProps;
|
|
88
88
|
});
|
|
89
|
-
const mergedProps = mergeProps2(itemContentProps, props);
|
|
89
|
+
const mergedProps = mergeProps2(() => itemContentProps(), props);
|
|
90
90
|
return <collapsible_exports.Content {...mergedProps} />;
|
|
91
91
|
};
|
|
92
92
|
|
|
@@ -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();
|
|
@@ -61,7 +61,7 @@ var TabTrigger = (props) => {
|
|
|
61
61
|
|
|
62
62
|
// src/components/tabs/tabs-context.tsx
|
|
63
63
|
var TabsContext = (props) => props.children(useTabsContext());
|
|
64
|
-
var useTabs = (props) => {
|
|
64
|
+
var useTabs = (props = {}) => {
|
|
65
65
|
const locale = useLocaleContext();
|
|
66
66
|
const environment = useEnvironmentContext();
|
|
67
67
|
const id = createUniqueId();
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./E72NMPSK.jsx";
|
|
7
7
|
import {
|
|
8
8
|
useFieldContext
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./TY6NCPFG.jsx";
|
|
10
10
|
import {
|
|
11
11
|
createSplitProps
|
|
12
12
|
} from "./6WEDGJKQ.jsx";
|
|
@@ -247,7 +247,6 @@ var ComboboxRoot = (props) => {
|
|
|
247
247
|
"disabled",
|
|
248
248
|
"disableLayer",
|
|
249
249
|
"form",
|
|
250
|
-
"getSelectionValue",
|
|
251
250
|
"highlightedValue",
|
|
252
251
|
"id",
|
|
253
252
|
"ids",
|
|
@@ -107,7 +107,7 @@ import { mergeProps as mergeProps6 } from "@zag-js/solid";
|
|
|
107
107
|
import * as dialog from "@zag-js/dialog";
|
|
108
108
|
import { normalizeProps, useMachine } from "@zag-js/solid";
|
|
109
109
|
import { createMemo, createUniqueId } from "solid-js";
|
|
110
|
-
var useDialog = (props) => {
|
|
110
|
+
var useDialog = (props = {}) => {
|
|
111
111
|
const locale = useLocaleContext();
|
|
112
112
|
const environment = useEnvironmentContext();
|
|
113
113
|
const id = createUniqueId();
|