dawn-ui-react 1.0.0-alpha.3 → 1.0.0-alpha.5
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-CcHtcKpV.js → Input-DtHcqeCc.js} +2 -2
- package/dist/{clamp-CKgqaxcU.js → clamp-DQOKpe2d.js} +2 -2
- package/dist/dawn-ui-react.js +22 -22
- package/dist/dawn-ui-react.umd.cjs +3 -3
- package/dist/field-errors-BndE4fDS.js +21 -0
- package/dist/{field-input-qIw9X6Ab.js → field-input-BPNlupYr.js} +3 -3
- package/dist/{field-input-group-BhLWbbuz.js → field-input-group-DRO7BT9K.js} +2 -2
- package/dist/{field-input-group-input-E_r5HrPw.js → field-input-group-input-D1w5gEYu.js} +2 -2
- package/dist/{field-label-crBMOJm1.js → field-label-DiJO_3-h.js} +1 -1
- package/dist/{field-select-BCO8NSzS.js → field-select-BRibIEnZ.js} +3 -3
- package/dist/{field-slider-BhSg1byn.js → field-slider-SYOU6bVj.js} +4 -4
- package/dist/{form-context-DScGBFYs.js → form-context-DBHjPCAB.js} +42 -42
- package/dist/{input-group-BlPsN5Zd.js → input-group-CDZSzmGh.js} +1 -1
- package/dist/{input-group-input-D-x5ovI-.js → input-group-input-DksiPZS5.js} +1 -1
- package/dist/{input.types-DS4BNmw3.js → input.types-BToTmX-b.js} +1 -1
- package/dist/styles.css +120 -96
- package/dist/{useLabelableId-BsYhJQW7.js → useLabelableId-Bsez0mIm.js} +1 -1
- package/package.json +14 -14
- package/dist/field-errors-CA0345jw.js +0 -19
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { i as t } from "./form-context-DBHjPCAB.js";
|
|
3
|
+
import { t as n } from "./cn-CXogf8HW.js";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/field/field-errors.tsx
|
|
6
|
+
var a = /* @__PURE__ */ e({ FieldErrors: () => o }), o = ({ className: e, children: a, ref: o, ...s }) => {
|
|
7
|
+
let c = t();
|
|
8
|
+
if (c.state.meta.errors.length === 0 && !a) return null;
|
|
9
|
+
let l = c.state.meta.errors.map((e) => typeof e == "string" ? e : e && typeof e == "object" && "message" in e && typeof e.message == "string" ? e.message : null).filter((e) => e !== null);
|
|
10
|
+
return l.length === 0 && !a ? null : /* @__PURE__ */ i("ul", {
|
|
11
|
+
className: n("space-y-3xs", e),
|
|
12
|
+
ref: o,
|
|
13
|
+
...s,
|
|
14
|
+
children: [l.map((e) => /* @__PURE__ */ r("li", {
|
|
15
|
+
className: "flex items-center gap-2xs style-text-strong--1 text-error-default",
|
|
16
|
+
children: e
|
|
17
|
+
}, e)), a]
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { a as n, o as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { i as t } from "./form-context-
|
|
2
|
+
import { i as t } from "./form-context-DBHjPCAB.js";
|
|
3
3
|
import { t as n } from "./cn-CXogf8HW.js";
|
|
4
|
-
import { t as r } from "./Input-
|
|
5
|
-
import { t as i } from "./input.types-
|
|
4
|
+
import { t as r } from "./Input-DtHcqeCc.js";
|
|
5
|
+
import { t as i } from "./input.types-BToTmX-b.js";
|
|
6
6
|
import { useRef as a, useState as o } from "react";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/input/input.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e } from "./form-context-
|
|
1
|
+
import { i as e } from "./form-context-DBHjPCAB.js";
|
|
2
2
|
import { t } from "./cn-CXogf8HW.js";
|
|
3
|
-
import { t as n } from "./input-group-
|
|
3
|
+
import { t as n } from "./input-group-CDZSzmGh.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/field/field-input-group.tsx
|
|
6
6
|
var i = ({ className: i, children: a, ref: o, ...s }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e } from "./form-context-
|
|
1
|
+
import { i as e } from "./form-context-DBHjPCAB.js";
|
|
2
2
|
import { t } from "./cn-CXogf8HW.js";
|
|
3
|
-
import { t as n } from "./input-group-input-
|
|
3
|
+
import { t as n } from "./input-group-input-DksiPZS5.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/field/field-input-group-input.tsx
|
|
6
6
|
var i = ({ className: i, ref: a, ...o }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { i as t } from "./form-context-
|
|
2
|
+
import { i as t } from "./form-context-DBHjPCAB.js";
|
|
3
3
|
import { t as n } from "./cn-CXogf8HW.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/field/field-label.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { F as t, G as n, H as r, I as i, J as a, K as o, M as s, Q as c, T as l, U as u, V as d, W as f, X as p, Z as m, _ as h, f as g, i as _, k as v, q as y, v as b } from "./form-context-
|
|
3
|
-
import { F as x, G as S, K as C, P as w, W as T, c as E, h as ee, i as D, l as O, n as te, o as k, p as ne, r as A, s as j, t as re, u as M, w as ie } from "./useLabelableId-
|
|
4
|
-
import { $t as N, At as P, Bt as ae, Ct as F, D as I, Dt as oe, E as L, Et as R, Ft as z, G as B, H as V, Ht as H, I as se, J as U, Jt as ce, K as le, Lt as W, M as G, Mt as ue, Nt as K, Ot as de, P as fe, Pt as pe, Q as q, Qt as me, Rt as he, S as J, St as ge, T as Y, Tt as _e, U as ve, Ut as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Z as Ee, Zt as De, _ as Oe, _t as ke, a as Ae, an as X, at as je, c as Me, dn as Ne, f as Pe, fn as Fe, g as Ie, h as Le, hn as Re, i as ze, j as Be, jt as Ve, kt as He, l as Ue, ln as We, m as Ge, mn as Ke, n as qe, nn as Je, on as Ye, p as Xe, q as Ze, qt as Qe, r as $e, t as et, un as tt, vt as nt, wt as rt, x as it, yt as at, z as ot, zt as st } from "./clamp-
|
|
2
|
+
import { F as t, G as n, H as r, I as i, J as a, K as o, M as s, Q as c, T as l, U as u, V as d, W as f, X as p, Z as m, _ as h, f as g, i as _, k as v, q as y, v as b } from "./form-context-DBHjPCAB.js";
|
|
3
|
+
import { F as x, G as S, K as C, P as w, W as T, c as E, h as ee, i as D, l as O, n as te, o as k, p as ne, r as A, s as j, t as re, u as M, w as ie } from "./useLabelableId-Bsez0mIm.js";
|
|
4
|
+
import { $t as N, At as P, Bt as ae, Ct as F, D as I, Dt as oe, E as L, Et as R, Ft as z, G as B, H as V, Ht as H, I as se, J as U, Jt as ce, K as le, Lt as W, M as G, Mt as ue, Nt as K, Ot as de, P as fe, Pt as pe, Q as q, Qt as me, Rt as he, S as J, St as ge, T as Y, Tt as _e, U as ve, Ut as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Z as Ee, Zt as De, _ as Oe, _t as ke, a as Ae, an as X, at as je, c as Me, dn as Ne, f as Pe, fn as Fe, g as Ie, h as Le, hn as Re, i as ze, j as Be, jt as Ve, kt as He, l as Ue, ln as We, m as Ge, mn as Ke, n as qe, nn as Je, on as Ye, p as Xe, q as Ze, qt as Qe, r as $e, t as et, un as tt, vt as nt, wt as rt, x as it, yt as at, z as ot, zt as st } from "./clamp-DQOKpe2d.js";
|
|
5
5
|
import { t as ct } from "./cn-CXogf8HW.js";
|
|
6
6
|
import * as Z from "react";
|
|
7
7
|
import { jsx as Q, jsxs as lt } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { G as t, H as n, J as r, M as i, Q as a, V as o, W as s, X as c, Y as l, Z as u, i as d, j as f, k as p, q as m } from "./form-context-
|
|
3
|
-
import { F as h, H as g, K as _, N as v, O as y, S as b, T as x, U as S, V as C, c as w, d as T, f as E, i as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as ee, u as te, x as F } from "./useLabelableId-
|
|
4
|
-
import { C as ne, D as I, F as L, Gt as R, H as z, J as re, Jt as B, K as ie, Kt as V, M as ae, Q as H, Rt as U, T as W, Ut as oe, V as G, W as se, X as ce, Y as K, Yt as le, Z as q, a as ue, at as J, b as de, c as fe, d as pe, dt as me, et as he, f as ge, fn as _e, g as ve, gn as ye, h as be, hn as xe, i as Se, in as Ce, it as we, j as Te, l as Ee, ln as De, m as Oe, mn as ke, n as Ae, nt as je, o as Y, on as Me, ot as Ne, pn as Pe, q as Fe, r as Ie, rn as Le, rt as Re, s as ze, t as X, ut as Be, v as Ve, w as He, y as Ue } from "./clamp-
|
|
2
|
+
import { G as t, H as n, J as r, M as i, Q as a, V as o, W as s, X as c, Y as l, Z as u, i as d, j as f, k as p, q as m } from "./form-context-DBHjPCAB.js";
|
|
3
|
+
import { F as h, H as g, K as _, N as v, O as y, S as b, T as x, U as S, V as C, c as w, d as T, f as E, i as D, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as ee, u as te, x as F } from "./useLabelableId-Bsez0mIm.js";
|
|
4
|
+
import { C as ne, D as I, F as L, Gt as R, H as z, J as re, Jt as B, K as ie, Kt as V, M as ae, Q as H, Rt as U, T as W, Ut as oe, V as G, W as se, X as ce, Y as K, Yt as le, Z as q, a as ue, at as J, b as de, c as fe, d as pe, dt as me, et as he, f as ge, fn as _e, g as ve, gn as ye, h as be, hn as xe, i as Se, in as Ce, it as we, j as Te, l as Ee, ln as De, m as Oe, mn as ke, n as Ae, nt as je, o as Y, on as Me, ot as Ne, pn as Pe, q as Fe, r as Ie, rn as Le, rt as Re, s as ze, t as X, ut as Be, v as Ve, w as He, y as Ue } from "./clamp-DQOKpe2d.js";
|
|
5
5
|
import { t as We } from "./cn-CXogf8HW.js";
|
|
6
6
|
import * as Z from "react";
|
|
7
7
|
import Ge from "react";
|
|
@@ -2073,7 +2073,7 @@ var Bn = ({ children: e, ...t }) => /* @__PURE__ */ Q(zn, { children: /* @__PURE
|
|
|
2073
2073
|
})
|
|
2074
2074
|
}) }), Hn = ({ children: e, ...t }) => /* @__PURE__ */ Q(An, {
|
|
2075
2075
|
...t,
|
|
2076
|
-
|
|
2076
|
+
render: () => e
|
|
2077
2077
|
}), Un = ({ className: e, children: t, ref: n, ...r }) => {
|
|
2078
2078
|
let [i, a] = Ge.useState(!1), [o, s] = Ge.useState(!1);
|
|
2079
2079
|
return Ge.useEffect(() => {
|
|
@@ -1301,7 +1301,7 @@ var en = class {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
}();
|
|
1303
1303
|
//#endregion
|
|
1304
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.
|
|
1304
|
+
//#region node_modules/.pnpm/@tanstack+form-core@1.31.0/node_modules/@tanstack/form-core/dist/esm/utils.js
|
|
1305
1305
|
function I(e, t) {
|
|
1306
1306
|
return typeof e == "function" ? e(t) : e;
|
|
1307
1307
|
}
|
|
@@ -1514,7 +1514,7 @@ function q(e) {
|
|
|
1514
1514
|
return t;
|
|
1515
1515
|
}
|
|
1516
1516
|
//#endregion
|
|
1517
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.
|
|
1517
|
+
//#region node_modules/.pnpm/@tanstack+form-core@1.31.0/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js
|
|
1518
1518
|
var J = (e) => {
|
|
1519
1519
|
if (!e.validators) return e.runValidation({
|
|
1520
1520
|
validators: [],
|
|
@@ -1566,7 +1566,7 @@ var J = (e) => {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
};
|
|
1568
1568
|
//#endregion
|
|
1569
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.
|
|
1569
|
+
//#region node_modules/.pnpm/@tanstack+form-core@1.31.0/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js
|
|
1570
1570
|
function _n(e, t) {
|
|
1571
1571
|
let n = /* @__PURE__ */ new Map();
|
|
1572
1572
|
for (let r of e) {
|
|
@@ -1678,7 +1678,7 @@ function bn(e) {
|
|
|
1678
1678
|
};
|
|
1679
1679
|
}
|
|
1680
1680
|
//#endregion
|
|
1681
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.
|
|
1681
|
+
//#region node_modules/.pnpm/@tanstack+form-core@1.31.0/node_modules/@tanstack/form-core/dist/esm/FormApi.js
|
|
1682
1682
|
function xn(e) {
|
|
1683
1683
|
return {
|
|
1684
1684
|
values: e.values ?? {},
|
|
@@ -2300,7 +2300,7 @@ function Z(e) {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
}
|
|
2302
2302
|
//#endregion
|
|
2303
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.
|
|
2303
|
+
//#region node_modules/.pnpm/@tanstack+form-core@1.31.0/node_modules/@tanstack/form-core/dist/esm/FieldApi.js
|
|
2304
2304
|
var wn = class {
|
|
2305
2305
|
constructor(e) {
|
|
2306
2306
|
this.options = {}, this.mount = () => {
|
|
@@ -2650,7 +2650,7 @@ function En(e) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
}
|
|
2652
2652
|
//#endregion
|
|
2653
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.
|
|
2653
|
+
//#region node_modules/.pnpm/@tanstack+form-core@1.31.0/node_modules/@tanstack/form-core/dist/esm/FieldGroupApi.js
|
|
2654
2654
|
var Dn = class e {
|
|
2655
2655
|
constructor(t) {
|
|
2656
2656
|
if (this.getFormFieldName = (e) => {
|
|
@@ -2696,7 +2696,7 @@ var Dn = class e {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
};
|
|
2698
2698
|
//#endregion
|
|
2699
|
-
//#region node_modules/.pnpm/@tanstack+form-core@1.
|
|
2699
|
+
//#region node_modules/.pnpm/@tanstack+form-core@1.31.0/node_modules/@tanstack/form-core/dist/esm/transform.js
|
|
2700
2700
|
function On(e, t) {
|
|
2701
2701
|
if (!t) return;
|
|
2702
2702
|
let n = Object.assign({}, e, { state: q(e.state) });
|
|
@@ -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.
|
|
2736
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.31.0_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.
|
|
2739
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.31.0_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,
|
|
@@ -2746,28 +2746,25 @@ function An(e) {
|
|
|
2746
2746
|
form: e.form,
|
|
2747
2747
|
name: e.name
|
|
2748
2748
|
}));
|
|
2749
|
-
let a = Q(r.store, e.mode === "array" ? (e) => Object.keys(e.value ?? []).length : (e) => e.value), o = Q(r.store, (e) => e.meta.isTouched), s = Q(r.store, (e) => e.meta.isBlurred), c = Q(r.store, (e) => e.meta.isDirty), l = Q(r.store, (e) => e.meta.errorMap), d = Q(r.store, (e) => e.meta.errorSourceMap), p = Q(r.store, (e) => e.meta.isValidating), m = u(() => {
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
};
|
|
2769
|
-
return t.Field = jn, t;
|
|
2770
|
-
}, [
|
|
2749
|
+
let a = Q(r.store, e.mode === "array" ? (e) => Object.keys(e.value ?? []).length : (e) => e.value), o = Q(r.store, (e) => e.meta.isTouched), s = Q(r.store, (e) => e.meta.isBlurred), c = Q(r.store, (e) => e.meta.isDirty), l = Q(r.store, (e) => e.meta.errorMap), d = Q(r.store, (e) => e.meta.errorSourceMap), p = Q(r.store, (e) => e.meta.isValidating), m = u(() => ({
|
|
2750
|
+
...r,
|
|
2751
|
+
get state() {
|
|
2752
|
+
return {
|
|
2753
|
+
value: e.mode === "array" ? r.state.value : a,
|
|
2754
|
+
get meta() {
|
|
2755
|
+
return {
|
|
2756
|
+
...r.state.meta,
|
|
2757
|
+
isTouched: o,
|
|
2758
|
+
isBlurred: s,
|
|
2759
|
+
isDirty: c,
|
|
2760
|
+
errorMap: l,
|
|
2761
|
+
errorSourceMap: d,
|
|
2762
|
+
isValidating: p
|
|
2763
|
+
};
|
|
2764
|
+
}
|
|
2765
|
+
};
|
|
2766
|
+
}
|
|
2767
|
+
}), [
|
|
2771
2768
|
r,
|
|
2772
2769
|
e.mode,
|
|
2773
2770
|
a,
|
|
@@ -2787,15 +2784,15 @@ var jn = (({ children: e, ...t }) => {
|
|
|
2787
2784
|
return /* @__PURE__ */ m(p, { children: u(() => I(e, n), [e, n]) });
|
|
2788
2785
|
});
|
|
2789
2786
|
//#endregion
|
|
2790
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.
|
|
2787
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.31.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useUUID.js
|
|
2791
2788
|
function Mn() {
|
|
2792
2789
|
return f(() => hn())[0];
|
|
2793
2790
|
}
|
|
2794
2791
|
//#endregion
|
|
2795
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.
|
|
2792
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.31.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useFormId.js
|
|
2796
2793
|
var Nn = n, Pn = n.version.split(".")[0] === "17" ? Mn : Nn.useId;
|
|
2797
2794
|
//#endregion
|
|
2798
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.
|
|
2795
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.31.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useForm.js
|
|
2799
2796
|
function Fn({ form: e, selector: t = (e) => e, children: n }) {
|
|
2800
2797
|
return /* @__PURE__ */ m(p, { children: I(n, Q(e.store, t)) });
|
|
2801
2798
|
}
|
|
@@ -2846,7 +2843,7 @@ function In(e) {
|
|
|
2846
2843
|
}), o;
|
|
2847
2844
|
}
|
|
2848
2845
|
//#endregion
|
|
2849
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.
|
|
2846
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.31.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/useFieldGroup.js
|
|
2850
2847
|
function Ln({ lens: e, selector: t = (e) => e, children: n }) {
|
|
2851
2848
|
return /* @__PURE__ */ m(p, { children: I(n, Q(e.store, t)) });
|
|
2852
2849
|
}
|
|
@@ -2870,7 +2867,7 @@ function Rn(e) {
|
|
|
2870
2867
|
return $(t.mount, [t]), t;
|
|
2871
2868
|
}
|
|
2872
2869
|
//#endregion
|
|
2873
|
-
//#region node_modules/.pnpm/@tanstack+react-form@1.
|
|
2870
|
+
//#region node_modules/.pnpm/@tanstack+react-form@1.31.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-form/dist/esm/createFormHook.js
|
|
2874
2871
|
var zn = r(null), Bn = r(null);
|
|
2875
2872
|
function Vn() {
|
|
2876
2873
|
let e = s(Bn);
|
|
@@ -2968,11 +2965,14 @@ var Wn = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m(ir()
|
|
|
2968
2965
|
if (!a || a.length === 0) return null;
|
|
2969
2966
|
let o = [];
|
|
2970
2967
|
return a.forEach((e) => {
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2968
|
+
if (typeof e == "string") o.push(e);
|
|
2969
|
+
else if (e?.message && typeof e.message == "string") o.push(e.message);
|
|
2970
|
+
else if (typeof e == "object" && e) {
|
|
2971
|
+
let t = (e) => {
|
|
2972
|
+
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));
|
|
2973
|
+
};
|
|
2974
|
+
t(e);
|
|
2975
|
+
}
|
|
2976
2976
|
}), /* @__PURE__ */ h(wt, {
|
|
2977
2977
|
className: t("", e),
|
|
2978
2978
|
ref: r,
|
|
@@ -3013,7 +3013,7 @@ var Wn = ({ className: e, children: n, ref: r, ...i }) => /* @__PURE__ */ m(ir()
|
|
|
3013
3013
|
weight: "bold"
|
|
3014
3014
|
}) : n
|
|
3015
3015
|
})
|
|
3016
|
-
}), qn = a(() => import("./field-description-BDRJXMS8.js").then((e) => e.n).then((e) => ({ default: e.FieldDescription }))), Jn = a(() => import("./field-errors-
|
|
3016
|
+
}), qn = a(() => import("./field-description-BDRJXMS8.js").then((e) => e.n).then((e) => ({ default: e.FieldDescription }))), Jn = a(() => import("./field-errors-BndE4fDS.js").then((e) => e.n).then((e) => ({ default: e.FieldErrors }))), Yn = a(() => import("./field-input-BPNlupYr.js").then((e) => e.n).then((e) => ({ default: e.FieldInput }))), Xn = a(() => import("./field-input-group-DRO7BT9K.js").then((e) => ({ default: e.FieldInputGroup }))), Zn = a(() => import("./field-input-group-input-D1w5gEYu.js").then((e) => ({ default: e.FieldInputGroupInput }))), Qn = a(() => import("./field-label-DiJO_3-h.js").then((e) => e.n).then((e) => ({ default: e.FieldLabel }))), $n = a(() => import("./field-select-BRibIEnZ.js").then((e) => e.n).then((e) => ({ default: e.FieldSelect }))), er = a(() => import("./field-slider-SYOU6bVj.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
3017
|
fieldContext: tr,
|
|
3018
3018
|
fieldComponents: {
|
|
3019
3019
|
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-BToTmX-b.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-DtHcqeCc.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-DBHjPCAB.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: {
|
package/dist/styles.css
CHANGED
|
@@ -610,170 +610,194 @@
|
|
|
610
610
|
box-shadow: --value(--shadow-*) var(--dawn-shadow);
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
@utility style-text-* {
|
|
614
|
-
font-family: var(--text-font);
|
|
615
|
-
font-weight: var(--text-weight);
|
|
616
|
-
font-size: var(--text-size);
|
|
617
|
-
line-height: var(--text-leading, normal);
|
|
618
|
-
letter-spacing: normal;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
613
|
@utility style-text-default-5 {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
614
|
+
font-family: var(--font-body);
|
|
615
|
+
font-weight: 500;
|
|
616
|
+
font-size: var(--text-4xl);
|
|
617
|
+
line-height: normal;
|
|
618
|
+
letter-spacing: normal;
|
|
625
619
|
}
|
|
626
620
|
|
|
627
621
|
@utility style-text-default-4 {
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
622
|
+
font-family: var(--font-body);
|
|
623
|
+
font-weight: 500;
|
|
624
|
+
font-size: var(--text-3xl);
|
|
625
|
+
line-height: normal;
|
|
626
|
+
letter-spacing: normal;
|
|
631
627
|
}
|
|
632
628
|
|
|
633
629
|
@utility style-text-default-3 {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
630
|
+
font-family: var(--font-body);
|
|
631
|
+
font-weight: 500;
|
|
632
|
+
font-size: var(--text-2xl);
|
|
633
|
+
line-height: normal;
|
|
634
|
+
letter-spacing: normal;
|
|
637
635
|
}
|
|
638
636
|
|
|
639
637
|
@utility style-text-default-2 {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
638
|
+
font-family: var(--font-body);
|
|
639
|
+
font-weight: 500;
|
|
640
|
+
font-size: var(--text-xl);
|
|
641
|
+
line-height: normal;
|
|
642
|
+
letter-spacing: normal;
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
@utility style-text-default-1 {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
646
|
+
font-family: var(--font-body);
|
|
647
|
+
font-weight: 500;
|
|
648
|
+
font-size: var(--text-lg);
|
|
649
|
+
line-height: normal;
|
|
650
|
+
letter-spacing: normal;
|
|
649
651
|
}
|
|
650
652
|
|
|
651
653
|
@utility style-text-default-0 {
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
654
|
+
font-family: var(--font-body);
|
|
655
|
+
font-weight: 500;
|
|
656
|
+
font-size: var(--text-base);
|
|
657
|
+
line-height: normal;
|
|
658
|
+
letter-spacing: normal;
|
|
655
659
|
}
|
|
656
660
|
|
|
657
661
|
@utility style-text-default--1 {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
662
|
+
font-family: var(--font-body);
|
|
663
|
+
font-weight: 500;
|
|
664
|
+
font-size: var(--text-sm);
|
|
665
|
+
line-height: normal;
|
|
666
|
+
letter-spacing: normal;
|
|
661
667
|
}
|
|
662
668
|
|
|
663
669
|
@utility style-text-default--2 {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
670
|
+
font-family: var(--font-body);
|
|
671
|
+
font-weight: 500;
|
|
672
|
+
font-size: var(--text-xs);
|
|
673
|
+
line-height: normal;
|
|
674
|
+
letter-spacing: normal;
|
|
667
675
|
}
|
|
668
676
|
|
|
669
677
|
@utility style-text-prose-5 {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
678
|
+
font-family: var(--font-body);
|
|
679
|
+
font-weight: 400;
|
|
680
|
+
font-size: var(--text-4xl);
|
|
681
|
+
line-height: 160%;
|
|
682
|
+
letter-spacing: normal;
|
|
674
683
|
}
|
|
675
684
|
|
|
676
685
|
@utility style-text-prose-4 {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
686
|
+
font-family: var(--font-body);
|
|
687
|
+
font-weight: 400;
|
|
688
|
+
font-size: var(--text-3xl);
|
|
689
|
+
line-height: 160%;
|
|
690
|
+
letter-spacing: normal;
|
|
681
691
|
}
|
|
682
692
|
|
|
683
693
|
@utility style-text-prose-3 {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
694
|
+
font-family: var(--font-body);
|
|
695
|
+
font-weight: 400;
|
|
696
|
+
font-size: var(--text-2xl);
|
|
697
|
+
line-height: 160%;
|
|
698
|
+
letter-spacing: normal;
|
|
688
699
|
}
|
|
689
700
|
|
|
690
701
|
@utility style-text-prose-2 {
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
702
|
+
font-family: var(--font-body);
|
|
703
|
+
font-weight: 400;
|
|
704
|
+
font-size: var(--text-xl);
|
|
705
|
+
line-height: 160%;
|
|
706
|
+
letter-spacing: normal;
|
|
695
707
|
}
|
|
696
708
|
|
|
697
709
|
@utility style-text-prose-1 {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
710
|
+
font-family: var(--font-body);
|
|
711
|
+
font-weight: 400;
|
|
712
|
+
font-size: var(--text-lg);
|
|
713
|
+
line-height: 160%;
|
|
714
|
+
letter-spacing: normal;
|
|
702
715
|
}
|
|
703
716
|
|
|
704
717
|
@utility style-text-prose-0 {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
718
|
+
font-family: var(--font-body);
|
|
719
|
+
font-weight: 400;
|
|
720
|
+
font-size: var(--text-base);
|
|
721
|
+
line-height: 160%;
|
|
722
|
+
letter-spacing: normal;
|
|
709
723
|
}
|
|
710
724
|
|
|
711
725
|
@utility style-text-prose--1 {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
726
|
+
font-family: var(--font-body);
|
|
727
|
+
font-weight: 400;
|
|
728
|
+
font-size: var(--text-sm);
|
|
729
|
+
line-height: 160%;
|
|
730
|
+
letter-spacing: normal;
|
|
716
731
|
}
|
|
717
732
|
|
|
718
733
|
@utility style-text-prose--2 {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
734
|
+
font-family: var(--font-body);
|
|
735
|
+
font-weight: 400;
|
|
736
|
+
font-size: var(--text-xs);
|
|
737
|
+
line-height: 160%;
|
|
738
|
+
letter-spacing: normal;
|
|
723
739
|
}
|
|
724
740
|
|
|
725
741
|
@utility style-text-strong-5 {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
742
|
+
font-family: var(--font-heading);
|
|
743
|
+
font-weight: 700;
|
|
744
|
+
font-size: var(--text-4xl);
|
|
745
|
+
line-height: 120%;
|
|
746
|
+
letter-spacing: normal;
|
|
730
747
|
}
|
|
731
748
|
|
|
732
749
|
@utility style-text-strong-4 {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
750
|
+
font-family: var(--font-heading);
|
|
751
|
+
font-weight: 700;
|
|
752
|
+
font-size: var(--text-3xl);
|
|
753
|
+
line-height: 120%;
|
|
754
|
+
letter-spacing: normal;
|
|
737
755
|
}
|
|
738
756
|
|
|
739
757
|
@utility style-text-strong-3 {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
758
|
+
font-family: var(--font-heading);
|
|
759
|
+
font-weight: 700;
|
|
760
|
+
font-size: var(--text-2xl);
|
|
761
|
+
line-height: 120%;
|
|
762
|
+
letter-spacing: normal;
|
|
744
763
|
}
|
|
745
764
|
|
|
746
765
|
@utility style-text-strong-2 {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
766
|
+
font-family: var(--font-heading);
|
|
767
|
+
font-weight: 700;
|
|
768
|
+
font-size: var(--text-xl);
|
|
769
|
+
line-height: 120%;
|
|
770
|
+
letter-spacing: normal;
|
|
751
771
|
}
|
|
752
772
|
|
|
753
773
|
@utility style-text-strong-1 {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
774
|
+
font-family: var(--font-heading);
|
|
775
|
+
font-weight: 700;
|
|
776
|
+
font-size: var(--text-lg);
|
|
777
|
+
line-height: 120%;
|
|
778
|
+
letter-spacing: normal;
|
|
758
779
|
}
|
|
759
780
|
|
|
760
781
|
@utility style-text-strong-0 {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
782
|
+
font-family: var(--font-heading);
|
|
783
|
+
font-weight: 700;
|
|
784
|
+
font-size: var(--text-base);
|
|
785
|
+
line-height: 120%;
|
|
786
|
+
letter-spacing: normal;
|
|
765
787
|
}
|
|
766
788
|
|
|
767
789
|
@utility style-text-strong--1 {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
790
|
+
font-family: var(--font-heading);
|
|
791
|
+
font-weight: 700;
|
|
792
|
+
font-size: var(--text-sm);
|
|
793
|
+
line-height: 120%;
|
|
794
|
+
letter-spacing: normal;
|
|
772
795
|
}
|
|
773
796
|
|
|
774
797
|
@utility style-text-strong--2 {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
798
|
+
font-family: var(--font-heading);
|
|
799
|
+
font-weight: 700;
|
|
800
|
+
font-size: var(--text-xs);
|
|
801
|
+
line-height: 120%;
|
|
802
|
+
letter-spacing: normal;
|
|
779
803
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
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-DBHjPCAB.js";
|
|
2
2
|
import * as l from "react";
|
|
3
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" }) {
|