dawn-ui-react 1.0.0-alpha.2 → 1.0.0-alpha.4
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/{Input-DXDwtOqf.js → Input-OKlHdkuM.js} +4 -4
- package/dist/{clamp-CYKyjuJR.js → clamp-DmGg4LPI.js} +50 -50
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.types.d.ts +1 -0
- package/dist/components/drawer/drawer-close.d.ts +2 -0
- package/dist/components/drawer/drawer-content.d.ts +2 -0
- package/dist/components/drawer/drawer-description.d.ts +2 -0
- package/dist/components/drawer/drawer-header.d.ts +2 -0
- package/dist/components/drawer/drawer-popup.d.ts +2 -0
- package/dist/components/drawer/drawer-provider.d.ts +2 -0
- package/dist/components/drawer/drawer-title.d.ts +2 -0
- package/dist/components/drawer/drawer-trigger.d.ts +2 -0
- package/dist/components/drawer/drawer.d.ts +2 -0
- package/dist/components/drawer/drawer.types.d.ts +10 -0
- package/dist/components/drawer/index.d.ts +10 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-otp/index.d.ts +2 -1
- package/dist/components/input-otp/input-otp-separator.d.ts +2 -0
- package/dist/components/input-otp/input-otp-slot.d.ts +1 -1
- package/dist/components/input-otp/input-otp.types.d.ts +4 -3
- package/dist/components/layer-tree/index.d.ts +4 -1
- package/dist/components/layer-tree/layer-tree-body.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-footer.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-node-toggle.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-node.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-row.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-sort.d.ts +4 -0
- package/dist/components/layer-tree/layer-tree-utils.d.ts +83 -0
- package/dist/components/layer-tree/layer-tree.d.ts +9 -4
- package/dist/components/layer-tree/layer-tree.types.d.ts +11 -4
- package/dist/dawn-ui-react.js +12667 -7026
- package/dist/dawn-ui-react.umd.cjs +71 -24
- package/dist/field-errors--n7vO1Q7.js +21 -0
- package/dist/{field-input-Doplzz0V.js → field-input-DTMDvBjs.js} +3 -3
- package/dist/{field-input-group-CzX_hAjq.js → field-input-group-DJu_VEsX.js} +2 -2
- package/dist/{field-input-group-input-micw-J2Y.js → field-input-group-input-ChT-sn5W.js} +2 -2
- package/dist/{field-label-C2atREm0.js → field-label-CwhT-9uR.js} +1 -1
- package/dist/{field-select--mY7GbNz.js → field-select-CgVfjmOj.js} +427 -429
- package/dist/{field-slider-D54-Z8Ds.js → field-slider-DwZvJqd0.js} +303 -303
- package/dist/{form-context-DqrRdk0d.js → form-context-Cl2FGxOa.js} +37 -34
- package/dist/{input-group-DgFUfXr7.js → input-group-BGe0Ag-A.js} +1 -1
- package/dist/{input-group-input-DNZQ6g-3.js → input-group-input-DELPW-48.js} +1 -1
- package/dist/{input.types-D8b-1Bcm.js → input.types-BgnT0r4F.js} +1 -1
- package/dist/{useLabelableId-BaWKrZ8_.js → useLabelableId-BxNdsOlB.js} +51 -51
- package/package.json +23 -21
- package/dist/field-errors-DVQtEKG3.js +0 -19
|
@@ -3,7 +3,7 @@ import * as n from "react";
|
|
|
3
3
|
import { createContext as r, createElement as i, lazy as a, useCallback as o, useContext as s, useEffect as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
4
4
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
5
|
import { useSyncExternalStoreWithSelector as g } from "use-sync-external-store/shim/with-selector";
|
|
6
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
6
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/error.js
|
|
7
7
|
var _;
|
|
8
8
|
process.env.NODE_ENV !== "production" && (_ = /* @__PURE__ */ new Set());
|
|
9
9
|
function v(...e) {
|
|
@@ -13,14 +13,14 @@ function v(...e) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
16
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useRefWithInit.js
|
|
17
17
|
var y = {};
|
|
18
18
|
function b(e, t) {
|
|
19
19
|
let r = n.useRef(y);
|
|
20
20
|
return r.current === y && (r.current = e(t)), r;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
23
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useStableCallback.js
|
|
24
24
|
var ee = n[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], te = ee && ee !== n.useLayoutEffect ? ee : (e) => e();
|
|
25
25
|
function ne(e) {
|
|
26
26
|
let t = b(re).current;
|
|
@@ -49,7 +49,7 @@ function se(...e) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
52
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/formatErrorMessage.js
|
|
53
53
|
function ce(e, t) {
|
|
54
54
|
return function(n, ...r) {
|
|
55
55
|
let i = new URL(e);
|
|
@@ -58,7 +58,7 @@ function ce(e, t) {
|
|
|
58
58
|
}
|
|
59
59
|
var le = ce("https://base-ui.com/production-error", "Base UI");
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
61
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useMergedRefs.js
|
|
62
62
|
function ue(e, t, n, r) {
|
|
63
63
|
let i = b(fe).current;
|
|
64
64
|
return pe(i, e, t, n, r) && he(i, [
|
|
@@ -127,20 +127,20 @@ function he(e, t) {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
//#endregion
|
|
130
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
130
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/reactVersion.js
|
|
131
131
|
var ge = parseInt(n.version, 10);
|
|
132
132
|
function _e(e) {
|
|
133
133
|
return ge >= e;
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
136
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
137
137
|
function ve(e) {
|
|
138
138
|
if (!/* @__PURE__ */ n.isValidElement(e)) return null;
|
|
139
139
|
let t = e, r = t.props;
|
|
140
140
|
return (_e(19) ? r?.ref : t.ref) ?? null;
|
|
141
141
|
}
|
|
142
142
|
//#endregion
|
|
143
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
143
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/mergeObjects.js
|
|
144
144
|
function ye(e, t) {
|
|
145
145
|
if (e && !t) return e;
|
|
146
146
|
if (!e && t) return t;
|
|
@@ -150,11 +150,11 @@ function ye(e, t) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
//#endregion
|
|
153
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
153
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/empty.js
|
|
154
154
|
function be() {}
|
|
155
155
|
var xe = Object.freeze([]), x = Object.freeze({});
|
|
156
156
|
//#endregion
|
|
157
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
157
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js
|
|
158
158
|
function Se(e, t) {
|
|
159
159
|
let n = {};
|
|
160
160
|
for (let r in e) {
|
|
@@ -169,17 +169,17 @@ function Se(e, t) {
|
|
|
169
169
|
return n;
|
|
170
170
|
}
|
|
171
171
|
//#endregion
|
|
172
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
172
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/resolveClassName.js
|
|
173
173
|
function Ce(e, t) {
|
|
174
174
|
return typeof e == "function" ? e(t) : e;
|
|
175
175
|
}
|
|
176
176
|
//#endregion
|
|
177
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
177
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/resolveStyle.js
|
|
178
178
|
function we(e, t) {
|
|
179
179
|
return typeof e == "function" ? e(t) : e;
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
182
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/merge-props/mergeProps.js
|
|
183
183
|
var Te = {};
|
|
184
184
|
function S(e, t, n, r, i) {
|
|
185
185
|
if (!n && !r && !i && !e) return C(t);
|
|
@@ -264,7 +264,7 @@ function Fe(e) {
|
|
|
264
264
|
return typeof e == "object" && !!e && "nativeEvent" in e;
|
|
265
265
|
}
|
|
266
266
|
//#endregion
|
|
267
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
267
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/useRenderElement.js
|
|
268
268
|
function Ie(e, t, n = {}) {
|
|
269
269
|
let r = t.render, i = Le(t, n);
|
|
270
270
|
return n.enabled === !1 ? null : He(e, r, i, n.state ?? x);
|
|
@@ -313,7 +313,7 @@ function We(e, t) {
|
|
|
313
313
|
}) : /* @__PURE__ */ n.createElement(e, t);
|
|
314
314
|
}
|
|
315
315
|
//#endregion
|
|
316
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
316
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/safeReact.js
|
|
317
317
|
var Ge = { ...n };
|
|
318
318
|
//#endregion
|
|
319
319
|
//#region node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
@@ -412,7 +412,7 @@ function pt(e) {
|
|
|
412
412
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
413
413
|
}
|
|
414
414
|
//#endregion
|
|
415
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
415
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext.js
|
|
416
416
|
var mt = /* @__PURE__ */ n.createContext(void 0);
|
|
417
417
|
process.env.NODE_ENV !== "production" && (mt.displayName = "CompositeRootContext");
|
|
418
418
|
function ht(e = !1) {
|
|
@@ -421,7 +421,7 @@ function ht(e = !1) {
|
|
|
421
421
|
return t;
|
|
422
422
|
}
|
|
423
423
|
//#endregion
|
|
424
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
424
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js
|
|
425
425
|
function gt(e) {
|
|
426
426
|
let { focusableWhenDisabled: t, disabled: r, composite: i = !1, tabIndex: a = 0, isNativeButton: o } = e, s = i && t !== !1, c = i && t === !1;
|
|
427
427
|
return { props: n.useMemo(() => {
|
|
@@ -440,7 +440,7 @@ function gt(e) {
|
|
|
440
440
|
]) };
|
|
441
441
|
}
|
|
442
442
|
//#endregion
|
|
443
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
443
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/use-button/useButton.js
|
|
444
444
|
function _t(e = {}) {
|
|
445
445
|
let { disabled: t = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = e, s = n.useRef(null), c = ht(!0), l = o ?? c !== void 0, { props: u } = gt({
|
|
446
446
|
focusableWhenDisabled: r,
|
|
@@ -858,7 +858,7 @@ var Ot = St("inline-flex cursor-pointer items-center justify-center rounded-full
|
|
|
858
858
|
});
|
|
859
859
|
k.displayName = "IconBase";
|
|
860
860
|
//#endregion
|
|
861
|
-
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.
|
|
861
|
+
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@phosphor-icons/react/dist/csr/CircleNotch.es.js
|
|
862
862
|
var Nt = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(k, {
|
|
863
863
|
ref: t,
|
|
864
864
|
...e,
|
|
@@ -866,7 +866,7 @@ var Nt = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(k, {
|
|
|
866
866
|
}));
|
|
867
867
|
Nt.displayName = "CircleNotchIcon";
|
|
868
868
|
//#endregion
|
|
869
|
-
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.
|
|
869
|
+
//#region node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@phosphor-icons/react/dist/csr/XCircle.es.js
|
|
870
870
|
var Pt = n.forwardRef((e, t) => /* @__PURE__ */ n.createElement(k, {
|
|
871
871
|
ref: t,
|
|
872
872
|
...e,
|
|
@@ -2720,7 +2720,7 @@ function On(e, t) {
|
|
|
2720
2720
|
}), n;
|
|
2721
2721
|
}
|
|
2722
2722
|
//#endregion
|
|
2723
|
-
//#region node_modules/.pnpm/@tanstack+react-store@0.9.3_react-dom@19.2.
|
|
2723
|
+
//#region node_modules/.pnpm/@tanstack+react-store@0.9.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-store/dist/esm/useStore.js
|
|
2724
2724
|
function kn(e, t) {
|
|
2725
2725
|
return e === t;
|
|
2726
2726
|
}
|
|
@@ -2733,10 +2733,10 @@ function Q(e, t, n = kn) {
|
|
|
2733
2733
|
return g(r, i, i, t, n);
|
|
2734
2734
|
}
|
|
2735
2735
|
//#endregion
|
|
2736
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.
|
|
2736
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useIsomorphicLayoutEffect.js
|
|
2737
2737
|
var $ = typeof window < "u" ? l : c;
|
|
2738
2738
|
//#endregion
|
|
2739
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.
|
|
2739
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useField.js
|
|
2740
2740
|
function An(e) {
|
|
2741
2741
|
let [t, n] = f(() => ({
|
|
2742
2742
|
form: e.form,
|
|
@@ -2787,15 +2787,15 @@ var jn = (({ children: e, ...t }) => {
|
|
|
2787
2787
|
return /* @__PURE__ */ m(p, { children: u(() => I(e, n), [e, n]) });
|
|
2788
2788
|
});
|
|
2789
2789
|
//#endregion
|
|
2790
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.
|
|
2790
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useUUID.js
|
|
2791
2791
|
function Mn() {
|
|
2792
2792
|
return f(() => hn())[0];
|
|
2793
2793
|
}
|
|
2794
2794
|
//#endregion
|
|
2795
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.
|
|
2795
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useFormId.js
|
|
2796
2796
|
var Nn = n, Pn = n.version.split(".")[0] === "17" ? Mn : Nn.useId;
|
|
2797
2797
|
//#endregion
|
|
2798
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.
|
|
2798
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useForm.js
|
|
2799
2799
|
function Fn({ form: e, selector: t = (e) => e, children: n }) {
|
|
2800
2800
|
return /* @__PURE__ */ m(p, { children: I(n, Q(e.store, t)) });
|
|
2801
2801
|
}
|
|
@@ -2846,7 +2846,7 @@ function In(e) {
|
|
|
2846
2846
|
}), o;
|
|
2847
2847
|
}
|
|
2848
2848
|
//#endregion
|
|
2849
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.
|
|
2849
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useFieldGroup.js
|
|
2850
2850
|
function Ln({ lens: e, selector: t = (e) => e, children: n }) {
|
|
2851
2851
|
return /* @__PURE__ */ m(p, { children: I(n, Q(e.store, t)) });
|
|
2852
2852
|
}
|
|
@@ -2870,7 +2870,7 @@ function Rn(e) {
|
|
|
2870
2870
|
return $(t.mount, [t]), t;
|
|
2871
2871
|
}
|
|
2872
2872
|
//#endregion
|
|
2873
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.
|
|
2873
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.29.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/createFormHook.js
|
|
2874
2874
|
var zn = r(null), Bn = r(null);
|
|
2875
2875
|
function Vn() {
|
|
2876
2876
|
let e = s(Bn);
|
|
@@ -2968,11 +2968,14 @@ var Wn = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m(ir()
|
|
|
2968
2968
|
if (!a || a.length === 0) return null;
|
|
2969
2969
|
let o = [];
|
|
2970
2970
|
return a.forEach((e) => {
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2971
|
+
if (typeof e == "string") o.push(e);
|
|
2972
|
+
else if (e?.message && typeof e.message == "string") o.push(e.message);
|
|
2973
|
+
else if (typeof e == "object" && e) {
|
|
2974
|
+
let t = (e) => {
|
|
2975
|
+
typeof e == "string" ? o.push(e) : Array.isArray(e) ? e.forEach(t) : typeof e == "object" && e && ("message" in e && typeof e.message == "string" ? o.push(e.message) : Object.values(e).forEach(t));
|
|
2976
|
+
};
|
|
2977
|
+
t(e);
|
|
2978
|
+
}
|
|
2976
2979
|
}), /* @__PURE__ */ h(wt, {
|
|
2977
2980
|
className: t("", e),
|
|
2978
2981
|
ref: r,
|
|
@@ -3013,7 +3016,7 @@ var Wn = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m(ir()
|
|
|
3013
3016
|
weight: "bold"
|
|
3014
3017
|
}) : n
|
|
3015
3018
|
})
|
|
3016
|
-
}), qn = a(() => import("./field-description-BDRJXMS8.js").then((e) => e.n).then((e) => ({ default: e.FieldDescription }))), Jn = a(() => import("./field-errors
|
|
3019
|
+
}), qn = a(() => import("./field-description-BDRJXMS8.js").then((e) => e.n).then((e) => ({ default: e.FieldDescription }))), Jn = a(() => import("./field-errors--n7vO1Q7.js").then((e) => e.n).then((e) => ({ default: e.FieldErrors }))), Yn = a(() => import("./field-input-DTMDvBjs.js").then((e) => e.n).then((e) => ({ default: e.FieldInput }))), Xn = a(() => import("./field-input-group-DJu_VEsX.js").then((e) => ({ default: e.FieldInputGroup }))), Zn = a(() => import("./field-input-group-input-ChT-sn5W.js").then((e) => ({ default: e.FieldInputGroupInput }))), Qn = a(() => import("./field-label-CwhT-9uR.js").then((e) => e.n).then((e) => ({ default: e.FieldLabel }))), $n = a(() => import("./field-select-CgVfjmOj.js").then((e) => e.n).then((e) => ({ default: e.FieldSelect }))), er = a(() => import("./field-slider-DwZvJqd0.js").then((e) => e.n).then((e) => ({ default: e.FieldSlider }))), { fieldContext: tr, useFieldContext: nr, formContext: rr, useFormContext: ir } = Hn(), { useAppForm: ar, withFieldGroup: or, withForm: sr, useTypedAppFormContext: cr } = Un({
|
|
3017
3020
|
fieldContext: tr,
|
|
3018
3021
|
fieldComponents: {
|
|
3019
3022
|
FieldDescription: qn,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-CXogf8HW.js";
|
|
2
|
-
import { t } from "./input.types-
|
|
2
|
+
import { t } from "./input.types-BgnT0r4F.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/input-group/input-group.tsx
|
|
5
5
|
var r = ({ variant: r, className: i, children: a, ref: o, ...s }) => /* @__PURE__ */ n("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-CXogf8HW.js";
|
|
2
|
-
import { t } from "./Input-
|
|
2
|
+
import { t } from "./Input-OKlHdkuM.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/input-group/input-group-input.tsx
|
|
5
5
|
var r = ({ className: r, ref: i, ...a }) => /* @__PURE__ */ n(t, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./form-context-
|
|
1
|
+
import { _ as e } from "./form-context-Cl2FGxOa.js";
|
|
2
2
|
//#region src/components/input/input.types.tsx
|
|
3
3
|
var t = e("group flex w-full items-center rounded-full text-ellipsis caret-brand-border-strong outline outline-transparent transition-all placeholder:opacity-60 focus-within:outline-brand-border-strong not-focus-within:hover:outline-border-strong disabled:cursor-not-allowed aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:caret-error-border-strong aria-invalid:outline-error-border aria-invalid:focus-within:outline-error-border-strong aria-invalid:not-focus-within:hover:outline-error-border data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", {
|
|
4
4
|
variants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as e, B as t, G as n, I as r, J as i, Q as a, W as o, X as s, Z as c, j as ee } from "./form-context-
|
|
1
|
+
import { $ as e, B as t, G as n, I as r, J as i, Q as a, W as o, X as s, Z as c, j as ee } from "./form-context-Cl2FGxOa.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
3
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useControlled.js
|
|
4
4
|
function u({ controlled: t, default: n, name: r, state: i = "value" }) {
|
|
5
5
|
let { current: a } = l.useRef(t !== void 0), [o, s] = l.useState(n), c = a ? t : o;
|
|
6
6
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -45,11 +45,11 @@ function d(e) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
49
|
-
var f = "none", p = "trigger-press", m = "trigger-hover", h = "trigger-focus", g = "outside-press",
|
|
48
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/reason-parts.js
|
|
49
|
+
var f = "none", p = "trigger-press", m = "trigger-hover", h = "trigger-focus", g = "outside-press", te = "item-press", _ = "close-press", v = "clear-press", y = "chip-remove-press", b = "track-press", x = "increment-press", S = "decrement-press", ne = "input-change", re = "input-clear", ie = "input-blur", ae = "input-paste", C = "input-press", w = "focus-out", T = "escape-key", E = "close-watcher", D = "list-navigation", O = "keyboard", k = "pointer", A = "drag", j = "scrub", M = "cancel-open", N = "sibling-open", P = "disabled", F = "imperative-action", I = "swipe", L = "window-resize";
|
|
50
50
|
//#endregion
|
|
51
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
52
|
-
function
|
|
51
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails.js
|
|
52
|
+
function oe(e, t, n, r) {
|
|
53
53
|
let i = !1, a = !1, s = r ?? o;
|
|
54
54
|
return {
|
|
55
55
|
reason: e,
|
|
@@ -70,7 +70,7 @@ function F(e, t, n, r) {
|
|
|
70
70
|
...s
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function R(e, t, n) {
|
|
74
74
|
let r = n ?? o;
|
|
75
75
|
return {
|
|
76
76
|
reason: e,
|
|
@@ -79,35 +79,35 @@ function I(e, t, n) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
83
|
-
var
|
|
84
|
-
function
|
|
82
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/useId.js
|
|
83
|
+
var z = 0;
|
|
84
|
+
function B(e, t = "mui") {
|
|
85
85
|
let [n, r] = l.useState(e), i = e || n;
|
|
86
86
|
return l.useEffect(() => {
|
|
87
|
-
n ?? (
|
|
87
|
+
n ?? (z += 1, r(`${t}-${z}`));
|
|
88
88
|
}, [n, t]), i;
|
|
89
89
|
}
|
|
90
|
-
var
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
93
|
-
let n =
|
|
90
|
+
var V = t.useId;
|
|
91
|
+
function H(e, t) {
|
|
92
|
+
if (V !== void 0) {
|
|
93
|
+
let n = V();
|
|
94
94
|
return e ?? (t ? `${t}-${n}` : n);
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return B(e, t);
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
100
|
-
function
|
|
101
|
-
return
|
|
99
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/useBaseUiId.js
|
|
100
|
+
function U(e) {
|
|
101
|
+
return H(e, "base-ui");
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
105
|
-
function
|
|
104
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/shadowDom.js
|
|
105
|
+
function W(e) {
|
|
106
106
|
let t = e.activeElement;
|
|
107
107
|
for (; t?.shadowRoot?.activeElement != null;) t = t.shadowRoot.activeElement;
|
|
108
108
|
return t;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function G(e, t) {
|
|
111
111
|
if (!e || !t) return !1;
|
|
112
112
|
let n = t.getRootNode?.();
|
|
113
113
|
if (e.contains(t)) return !0;
|
|
@@ -120,19 +120,19 @@ function U(e, t) {
|
|
|
120
120
|
}
|
|
121
121
|
return !1;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function K(e) {
|
|
124
124
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
|
-
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.
|
|
128
|
-
function
|
|
127
|
+
//#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/utils/esm/owner.js
|
|
128
|
+
function q(e) {
|
|
129
129
|
return e?.ownerDocument || document;
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
133
|
-
var
|
|
132
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js
|
|
133
|
+
var J = /* @__PURE__ */ function(e) {
|
|
134
134
|
return e.disabled = "data-disabled", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
135
|
-
}({}),
|
|
135
|
+
}({}), se = {
|
|
136
136
|
badInput: !1,
|
|
137
137
|
customError: !1,
|
|
138
138
|
patternMismatch: !1,
|
|
@@ -144,22 +144,22 @@ var K = /* @__PURE__ */ function(e) {
|
|
|
144
144
|
typeMismatch: !1,
|
|
145
145
|
valid: null,
|
|
146
146
|
valueMissing: !1
|
|
147
|
-
},
|
|
147
|
+
}, Y = {
|
|
148
148
|
valid: null,
|
|
149
149
|
touched: !1,
|
|
150
150
|
dirty: !1,
|
|
151
151
|
filled: !1,
|
|
152
152
|
focused: !1
|
|
153
|
-
},
|
|
153
|
+
}, ce = {
|
|
154
154
|
disabled: !1,
|
|
155
|
-
...
|
|
156
|
-
},
|
|
157
|
-
return e === null ? null : e ? { [
|
|
158
|
-
} },
|
|
155
|
+
...Y
|
|
156
|
+
}, le = { valid(e) {
|
|
157
|
+
return e === null ? null : e ? { [J.valid]: "" } : { [J.invalid]: "" };
|
|
158
|
+
} }, X = /* @__PURE__ */ l.createContext({
|
|
159
159
|
invalid: void 0,
|
|
160
160
|
name: void 0,
|
|
161
161
|
validityData: {
|
|
162
|
-
state:
|
|
162
|
+
state: se,
|
|
163
163
|
errors: [],
|
|
164
164
|
error: "",
|
|
165
165
|
value: "",
|
|
@@ -167,19 +167,19 @@ var K = /* @__PURE__ */ function(e) {
|
|
|
167
167
|
},
|
|
168
168
|
setValidityData: n,
|
|
169
169
|
disabled: void 0,
|
|
170
|
-
touched:
|
|
170
|
+
touched: Y.touched,
|
|
171
171
|
setTouched: n,
|
|
172
|
-
dirty:
|
|
172
|
+
dirty: Y.dirty,
|
|
173
173
|
setDirty: n,
|
|
174
|
-
filled:
|
|
174
|
+
filled: Y.filled,
|
|
175
175
|
setFilled: n,
|
|
176
|
-
focused:
|
|
176
|
+
focused: Y.focused,
|
|
177
177
|
setFocused: n,
|
|
178
178
|
validate: () => null,
|
|
179
179
|
validationMode: "onSubmit",
|
|
180
180
|
validationDebounceTime: 0,
|
|
181
181
|
shouldValidateOnChange: () => !1,
|
|
182
|
-
state:
|
|
182
|
+
state: ce,
|
|
183
183
|
markedDirtyRef: { current: !1 },
|
|
184
184
|
registerFieldControl: n,
|
|
185
185
|
validation: {
|
|
@@ -189,16 +189,16 @@ var K = /* @__PURE__ */ function(e) {
|
|
|
189
189
|
commit: async () => {}
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
|
-
process.env.NODE_ENV !== "production" && (
|
|
193
|
-
function
|
|
194
|
-
let t = l.useContext(
|
|
192
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "FieldRootContext");
|
|
193
|
+
function Z(e = !0) {
|
|
194
|
+
let t = l.useContext(X);
|
|
195
195
|
if (t.setValidityData === n && !e) throw Error(process.env.NODE_ENV === "production" ? i(28) : "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");
|
|
196
196
|
return t;
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
200
|
-
function
|
|
201
|
-
let { enabled: n = !0, getValue: r, id: i, value: a } = t, { registerFieldControl: o } =
|
|
199
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/field-register-control/useRegisterFieldControl.js
|
|
200
|
+
function ue(e, t) {
|
|
201
|
+
let { enabled: n = !0, getValue: r, id: i, value: a } = t, { registerFieldControl: o } = Z(), c = l.useRef(null);
|
|
202
202
|
c.current ||= Symbol(), s(() => {
|
|
203
203
|
let t = c.current;
|
|
204
204
|
if (!(!t || !n)) return o(t, {
|
|
@@ -219,7 +219,7 @@ function Z(e, t) {
|
|
|
219
219
|
]);
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
222
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/labelable-provider/LabelableContext.js
|
|
223
223
|
var Q = /* @__PURE__ */ l.createContext({
|
|
224
224
|
controlId: void 0,
|
|
225
225
|
registerControlId: n,
|
|
@@ -234,9 +234,9 @@ function $() {
|
|
|
234
234
|
return l.useContext(Q);
|
|
235
235
|
}
|
|
236
236
|
//#endregion
|
|
237
|
-
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@
|
|
238
|
-
function
|
|
239
|
-
let { id: t, implicit: r = !1, controlRef: i } = e, { controlId: o, registerControlId: u } = $(), d =
|
|
237
|
+
//#region node_modules/.pnpm/@base-ui+react@1.4.1_@types+react@19.2.14_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@base-ui/react/esm/internals/labelable-provider/useLabelableId.js
|
|
238
|
+
function de(e = {}) {
|
|
239
|
+
let { id: t, implicit: r = !1, controlRef: i } = e, { controlId: o, registerControlId: u } = $(), d = U(t), f = r ? o : void 0, p = a(() => Symbol("labelable-control")), m = l.useRef(!1), h = l.useRef(t != null), g = c(() => {
|
|
240
240
|
!m.current || u === n || (m.current = !1, u(p.current, void 0));
|
|
241
241
|
});
|
|
242
242
|
return s(() => {
|
|
@@ -268,4 +268,4 @@ function le(e = {}) {
|
|
|
268
268
|
]), l.useEffect(() => g, [g]), o ?? d;
|
|
269
269
|
}
|
|
270
270
|
//#endregion
|
|
271
|
-
export {
|
|
271
|
+
export { ae as A, I as B, T as C, ie as D, x as E, f as F, L as G, h as H, g as I, u as K, k as L, te as M, O as N, ne as O, D as P, j as R, A as S, F as T, m as U, b as V, p as W, v as _, Y as a, S as b, W as c, U as d, H as f, y as g, M as h, Z as i, C as j, re as k, G as l, R as m, $ as n, le as o, oe as p, ue as r, q as s, de as t, K as u, _ as v, w, P as x, E as y, N as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dawn-ui-react",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@base-ui/react": "^1.4.1",
|
|
51
|
+
"@dnd-kit/dom": "^0.4.0",
|
|
52
|
+
"@dnd-kit/react": "^0.4.0",
|
|
51
53
|
"@phosphor-icons/react": "^2.1.10",
|
|
52
54
|
"@tailwindcss/cli": "^4.2.4",
|
|
53
55
|
"@tailwindcss/vite": "^4.2.4",
|
|
@@ -55,16 +57,15 @@
|
|
|
55
57
|
"@tanstack/react-table": "^8.21.3",
|
|
56
58
|
"class-variance-authority": "^0.7.1",
|
|
57
59
|
"clsx": "^2.1.1",
|
|
58
|
-
"
|
|
59
|
-
"react-resizable-panels": "^4.10.0",
|
|
60
|
+
"react-resizable-panels": "^4.11.0",
|
|
60
61
|
"tailwind-merge": "^3.5.0",
|
|
61
62
|
"tailwindcss": "^4.2.4",
|
|
62
63
|
"tw-animate-css": "^1.4.0"
|
|
63
64
|
},
|
|
64
65
|
"devDependencies": {
|
|
65
66
|
"@chromatic-com/storybook": "^5.1.2",
|
|
66
|
-
"@commitlint/cli": "^20.5.
|
|
67
|
-
"@commitlint/config-conventional": "^20.5.
|
|
67
|
+
"@commitlint/cli": "^20.5.3",
|
|
68
|
+
"@commitlint/config-conventional": "^20.5.3",
|
|
68
69
|
"@faker-js/faker": "^10.4.0",
|
|
69
70
|
"@semantic-release/changelog": "^6.0.3",
|
|
70
71
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
@@ -72,13 +73,13 @@
|
|
|
72
73
|
"@semantic-release/github": "^12.0.6",
|
|
73
74
|
"@semantic-release/npm": "^13.1.5",
|
|
74
75
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
75
|
-
"@storybook/addon-a11y": "^10.3.
|
|
76
|
-
"@storybook/addon-docs": "^10.3.
|
|
77
|
-
"@storybook/addon-themes": "^10.3.
|
|
78
|
-
"@storybook/addon-vitest": "^10.3.
|
|
79
|
-
"@storybook/react-vite": "^10.3.
|
|
76
|
+
"@storybook/addon-a11y": "^10.3.6",
|
|
77
|
+
"@storybook/addon-docs": "^10.3.6",
|
|
78
|
+
"@storybook/addon-themes": "^10.3.6",
|
|
79
|
+
"@storybook/addon-vitest": "^10.3.6",
|
|
80
|
+
"@storybook/react-vite": "^10.3.6",
|
|
80
81
|
"@tailwindcss/node": "^4.2.4",
|
|
81
|
-
"@types/node": "^25.6.
|
|
82
|
+
"@types/node": "^25.6.2",
|
|
82
83
|
"@types/react": "^19.2.14",
|
|
83
84
|
"@types/react-dom": "^19.2.3",
|
|
84
85
|
"@vitejs/plugin-react": "^6.0.1",
|
|
@@ -87,22 +88,23 @@
|
|
|
87
88
|
"commitizen": "^4.3.1",
|
|
88
89
|
"concurrently": "^9.2.1",
|
|
89
90
|
"cz-conventional-changelog": "^3.3.0",
|
|
90
|
-
"globals": "^17.
|
|
91
|
-
"jsdom": "^29.1.
|
|
91
|
+
"globals": "^17.6.0",
|
|
92
|
+
"jsdom": "^29.1.1",
|
|
92
93
|
"lefthook": "^2.1.6",
|
|
93
|
-
"lint-staged": "^
|
|
94
|
-
"oxfmt": "^0.
|
|
95
|
-
"oxlint": "^1.
|
|
96
|
-
"oxlint-tailwindcss": "^0.
|
|
94
|
+
"lint-staged": "^17.0.2",
|
|
95
|
+
"oxfmt": "^0.48.0",
|
|
96
|
+
"oxlint": "^1.63.0",
|
|
97
|
+
"oxlint-tailwindcss": "^0.7.0",
|
|
97
98
|
"oxlint-tsgolint": "^0.22.1",
|
|
98
99
|
"playwright": "^1.59.1",
|
|
99
100
|
"semantic-release": "^25.0.3",
|
|
100
|
-
"storybook": "^10.3.
|
|
101
|
+
"storybook": "^10.3.6",
|
|
101
102
|
"typescript": "~6.0.3",
|
|
102
|
-
"
|
|
103
|
-
"vite
|
|
103
|
+
"uuid": "^14.0.0",
|
|
104
|
+
"vite": "^8.0.11",
|
|
105
|
+
"vite-plugin-dts": "^5.0.0",
|
|
104
106
|
"vitest": "^4.1.5",
|
|
105
|
-
"zod": "^4.3
|
|
107
|
+
"zod": "^4.4.3"
|
|
106
108
|
},
|
|
107
109
|
"peerDependencies": {
|
|
108
110
|
"react": "^19.0.0",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { i as t } from "./form-context-DqrRdk0d.js";
|
|
3
|
-
import { t as n } from "./cn-CXogf8HW.js";
|
|
4
|
-
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/field/field-errors.tsx
|
|
6
|
-
var o = /* @__PURE__ */ e({ FieldErrors: () => s }), s = ({ className: e, children: o, ref: s, ...c }) => {
|
|
7
|
-
let l = t();
|
|
8
|
-
return l.state.meta.errors.length === 0 && !o ? null : /* @__PURE__ */ i(r, { children: l.state.meta.errors.length > 0 && /* @__PURE__ */ a("ul", {
|
|
9
|
-
className: n("space-y-3xs", e),
|
|
10
|
-
ref: s,
|
|
11
|
-
...c,
|
|
12
|
-
children: [l.state.meta.errors.map((e) => /* @__PURE__ */ i("li", {
|
|
13
|
-
className: "flex items-center gap-2xs style-text-strong--1 text-error-default",
|
|
14
|
-
children: e.message
|
|
15
|
-
}, e.message)), o]
|
|
16
|
-
}) });
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { o as n, s as t };
|