@sakura-ui/forms 0.0.7 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FieldsetControl.d.ts.map +1 -1
- package/dist/components/Input.d.ts +5 -0
- package/dist/components/Input.d.ts.map +1 -0
- package/dist/components/LabelControl.d.ts.map +1 -1
- package/dist/components/controlled/InputControl.d.ts +10 -0
- package/dist/components/controlled/InputControl.d.ts.map +1 -0
- package/dist/components/controlled/index.d.ts +1 -1
- package/dist/components/controlled/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs.js +13 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +94 -90
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Text.d.ts +0 -5
- package/dist/components/Text.d.ts.map +0 -1
- package/dist/components/controlled/TextControl.d.ts +0 -10
- package/dist/components/controlled/TextControl.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -15,7 +15,7 @@ function dr() {
|
|
|
15
15
|
return W;
|
|
16
16
|
Ce = 1;
|
|
17
17
|
var f = x, m = Symbol.for("react.element"), v = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, s = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function
|
|
18
|
+
function b(c, o, j) {
|
|
19
19
|
var g, R = {}, C = null, w = null;
|
|
20
20
|
j !== void 0 && (C = "" + j), o.key !== void 0 && (C = "" + o.key), o.ref !== void 0 && (w = o.ref);
|
|
21
21
|
for (g in o)
|
|
@@ -25,7 +25,7 @@ function dr() {
|
|
|
25
25
|
R[g] === void 0 && (R[g] = o[g]);
|
|
26
26
|
return { $$typeof: m, type: c, key: C, ref: w, props: R, _owner: s.current };
|
|
27
27
|
}
|
|
28
|
-
return W.Fragment = v, W.jsx =
|
|
28
|
+
return W.Fragment = v, W.jsx = b, W.jsxs = b, W;
|
|
29
29
|
}
|
|
30
30
|
var Y = {};
|
|
31
31
|
/**
|
|
@@ -40,7 +40,7 @@ var Y = {};
|
|
|
40
40
|
var Pe;
|
|
41
41
|
function fr() {
|
|
42
42
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var f = x, m = Symbol.for("react.element"), v = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"),
|
|
43
|
+
var f = x, m = Symbol.for("react.element"), v = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), F = Symbol.iterator, Se = "@@iterator";
|
|
44
44
|
function Oe(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -59,16 +59,16 @@ function fr() {
|
|
|
59
59
|
{
|
|
60
60
|
var n = D.ReactDebugCurrentFrame, p = n.getStackAddendum();
|
|
61
61
|
p !== "" && (r += "%s", t = t.concat([p]));
|
|
62
|
-
var
|
|
62
|
+
var h = t.map(function(u) {
|
|
63
63
|
return String(u);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
var ke = !1, Fe = !1, De = !1, Ae = !1, Me = !1, ae;
|
|
69
69
|
ae = Symbol.for("react.module.reference");
|
|
70
70
|
function $e(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e === a || Me || e === s || e === j || e === g || Ae || e === w || ke || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === a || Me || e === s || e === j || e === g || Ae || e === w || ke || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === R || e.$$typeof === b || e.$$typeof === c || e.$$typeof === o || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -110,7 +110,7 @@ function fr() {
|
|
|
110
110
|
case c:
|
|
111
111
|
var r = e;
|
|
112
112
|
return ne(r) + ".Consumer";
|
|
113
|
-
case
|
|
113
|
+
case b:
|
|
114
114
|
var t = e;
|
|
115
115
|
return ne(t._context) + ".Provider";
|
|
116
116
|
case o:
|
|
@@ -119,9 +119,9 @@ function fr() {
|
|
|
119
119
|
var n = e.displayName || null;
|
|
120
120
|
return n !== null ? n : S(e.type) || "Memo";
|
|
121
121
|
case C: {
|
|
122
|
-
var p = e,
|
|
122
|
+
var p = e, h = p._payload, u = p._init;
|
|
123
123
|
try {
|
|
124
|
-
return S(u(
|
|
124
|
+
return S(u(h));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -222,8 +222,8 @@ function fr() {
|
|
|
222
222
|
K = !0;
|
|
223
223
|
var p = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var h;
|
|
226
|
+
h = J.current, J.current = null, We();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
229
|
var u = function() {
|
|
@@ -276,7 +276,7 @@ function fr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
K = !1, J.current =
|
|
279
|
+
K = !1, J.current = h, Ye(), Error.prepareStackTrace = p;
|
|
280
280
|
}
|
|
281
281
|
var M = e ? e.displayName || e.name : "", we = M ? L(M) : "";
|
|
282
282
|
return typeof e == "function" && V.set(e, we), we;
|
|
@@ -308,9 +308,9 @@ function fr() {
|
|
|
308
308
|
case R:
|
|
309
309
|
return U(e.type, r, t);
|
|
310
310
|
case C: {
|
|
311
|
-
var n = e, p = n._payload,
|
|
311
|
+
var n = e, p = n._payload, h = n._init;
|
|
312
312
|
try {
|
|
313
|
-
return U(
|
|
313
|
+
return U(h(p), r, t);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -327,9 +327,9 @@ function fr() {
|
|
|
327
327
|
}
|
|
328
328
|
function Be(e, r, t, n, p) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var h = Function.call.bind(B);
|
|
331
331
|
for (var u in e)
|
|
332
|
-
if (
|
|
332
|
+
if (h(e, u)) {
|
|
333
333
|
var l = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof e[u] != "function") {
|
|
@@ -356,17 +356,17 @@ function fr() {
|
|
|
356
356
|
}
|
|
357
357
|
function ze(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return be(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function be(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function he(e) {
|
|
368
368
|
if (ze(e))
|
|
369
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)),
|
|
369
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), be(e);
|
|
370
370
|
}
|
|
371
371
|
var q = D.ReactCurrentOwner, Ke = {
|
|
372
372
|
key: !0,
|
|
@@ -419,7 +419,7 @@ function fr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var rr = function(e, r, t, n, p,
|
|
422
|
+
var rr = function(e, r, t, n, p, h, u) {
|
|
423
423
|
var l = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: m,
|
|
@@ -429,7 +429,7 @@ function fr() {
|
|
|
429
429
|
ref: t,
|
|
430
430
|
props: u,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: h
|
|
433
433
|
};
|
|
434
434
|
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
@@ -450,14 +450,14 @@ function fr() {
|
|
|
450
450
|
};
|
|
451
451
|
function tr(e, r, t, n, p) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
t !== void 0 && (
|
|
455
|
-
for (
|
|
456
|
-
B.call(r,
|
|
453
|
+
var h, u = {}, l = null, T = null;
|
|
454
|
+
t !== void 0 && (he(t), l = "" + t), Xe(r) && (he(r.key), l = "" + r.key), He(r) && (T = r.ref, Ze(r, p));
|
|
455
|
+
for (h in r)
|
|
456
|
+
B.call(r, h) && !Ke.hasOwnProperty(h) && (u[h] = r[h]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var y = e.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
u[
|
|
459
|
+
for (h in y)
|
|
460
|
+
u[h] === void 0 && (u[h] = y[h]);
|
|
461
461
|
}
|
|
462
462
|
if (l || T) {
|
|
463
463
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
@@ -542,7 +542,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
542
542
|
else if (e) {
|
|
543
543
|
var p = Oe(e);
|
|
544
544
|
if (typeof p == "function" && p !== e.entries)
|
|
545
|
-
for (var
|
|
545
|
+
for (var h = p.call(e), u; !(u = h.next()).done; )
|
|
546
546
|
ee(u.value) && _e(u.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
@@ -584,7 +584,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
584
584
|
e.ref !== null && (A(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function je(e, r, t, n, p,
|
|
587
|
+
function je(e, r, t, n, p, h) {
|
|
588
588
|
{
|
|
589
589
|
var u = $e(e);
|
|
590
590
|
if (!u) {
|
|
@@ -595,7 +595,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
595
595
|
var y;
|
|
596
596
|
e === null ? y = "null" : H(e) ? y = "array" : e !== void 0 && e.$$typeof === m ? (y = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, l);
|
|
597
597
|
}
|
|
598
|
-
var E = tr(e, r, t, p,
|
|
598
|
+
var E = tr(e, r, t, p, h);
|
|
599
599
|
if (E == null)
|
|
600
600
|
return E;
|
|
601
601
|
if (u) {
|
|
@@ -635,9 +635,9 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
635
635
|
(f, m) => {
|
|
636
636
|
const { className: v, children: d, ...s } = f, a = x.useContext(k);
|
|
637
637
|
a.isRequired && (s.required = !0), a.groupName && (s.name = a.groupName);
|
|
638
|
-
const
|
|
638
|
+
const b = `
|
|
639
639
|
inline-block
|
|
640
|
-
text-
|
|
640
|
+
text-base
|
|
641
641
|
cursor-pointer
|
|
642
642
|
py-2
|
|
643
643
|
mr-4
|
|
@@ -659,7 +659,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
659
659
|
peer-checked:border-none
|
|
660
660
|
peer-disabled:border-sumi-500
|
|
661
661
|
`;
|
|
662
|
-
return /* @__PURE__ */ i.jsx("label", { htmlFor: s.id, className: I(
|
|
662
|
+
return /* @__PURE__ */ i.jsx("label", { htmlFor: s.id, className: I(b, v), children: /* @__PURE__ */ i.jsxs("span", { className: "flex items-center", children: [
|
|
663
663
|
/* @__PURE__ */ i.jsx(
|
|
664
664
|
"input",
|
|
665
665
|
{
|
|
@@ -679,9 +679,9 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
679
679
|
), vr = x.forwardRef((f, m) => {
|
|
680
680
|
const { className: v, children: d, ...s } = f, a = x.useContext(k);
|
|
681
681
|
a.isRequired && (s.required = !0), a.groupName && (s.name = a.groupName);
|
|
682
|
-
const
|
|
682
|
+
const b = `
|
|
683
683
|
inline-block
|
|
684
|
-
text-
|
|
684
|
+
text-base
|
|
685
685
|
cursor-pointer
|
|
686
686
|
py-2
|
|
687
687
|
mr-4
|
|
@@ -703,7 +703,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
703
703
|
peer-checked:border-sea-600
|
|
704
704
|
peer-disabled:border-sumi-500
|
|
705
705
|
`;
|
|
706
|
-
return /* @__PURE__ */ i.jsx("label", { htmlFor: s.id, className: I(
|
|
706
|
+
return /* @__PURE__ */ i.jsx("label", { htmlFor: s.id, className: I(b, v), children: /* @__PURE__ */ i.jsxs("span", { className: "flex items-center", children: [
|
|
707
707
|
/* @__PURE__ */ i.jsx(
|
|
708
708
|
"input",
|
|
709
709
|
{
|
|
@@ -723,7 +723,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
723
723
|
(f, m) => {
|
|
724
724
|
const { className: v, children: d, ...s } = f, a = x.useContext(k);
|
|
725
725
|
a.isRequired && (s.required = !0);
|
|
726
|
-
const
|
|
726
|
+
const b = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
|
|
727
727
|
peer
|
|
728
728
|
cursor-pointer
|
|
729
729
|
appearance-none
|
|
@@ -752,7 +752,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
752
752
|
"select",
|
|
753
753
|
{
|
|
754
754
|
id: s.id ?? a.id,
|
|
755
|
-
className: I(c,
|
|
755
|
+
className: I(c, b, f.className),
|
|
756
756
|
"aria-describedby": a.helperTextId,
|
|
757
757
|
"aria-errormessage": a.errorMessageId,
|
|
758
758
|
"aria-invalid": a.isInvalid ?? !1,
|
|
@@ -764,11 +764,11 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
764
764
|
/* @__PURE__ */ i.jsx("span", { className: o, children: /* @__PURE__ */ i.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", children: /* @__PURE__ */ i.jsx("path", { d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z" }) }) })
|
|
765
765
|
] });
|
|
766
766
|
}
|
|
767
|
-
),
|
|
767
|
+
), br = x.forwardRef(
|
|
768
768
|
(f, m) => {
|
|
769
769
|
const { className: v, ...d } = f, s = x.useContext(k);
|
|
770
770
|
s.isRequired && (d.required = !0);
|
|
771
|
-
const a = s.isInvalid ? "border-sun-800" : "border-sumi-900",
|
|
771
|
+
const a = s.isInvalid ? "border-sun-800" : "border-sumi-900", b = `
|
|
772
772
|
p-4
|
|
773
773
|
rounded-lg
|
|
774
774
|
border
|
|
@@ -785,7 +785,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
785
785
|
{
|
|
786
786
|
type: "text",
|
|
787
787
|
id: d.id ?? s.id,
|
|
788
|
-
className: I(
|
|
788
|
+
className: I(b, a, v),
|
|
789
789
|
"aria-describedby": s.helperTextId,
|
|
790
790
|
"aria-errormessage": s.errorMessageId,
|
|
791
791
|
"aria-invalid": s.isInvalid ?? !1,
|
|
@@ -794,11 +794,11 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
794
794
|
}
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
),
|
|
797
|
+
), hr = x.forwardRef(
|
|
798
798
|
(f, m) => {
|
|
799
799
|
const { className: v, children: d, ...s } = f, a = x.useContext(k);
|
|
800
800
|
a.isRequired && (s.required = !0);
|
|
801
|
-
const
|
|
801
|
+
const b = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
|
|
802
802
|
p-4
|
|
803
803
|
rounded-lg
|
|
804
804
|
border
|
|
@@ -814,7 +814,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
814
814
|
"textarea",
|
|
815
815
|
{
|
|
816
816
|
id: s.id ?? a.id,
|
|
817
|
-
className: I(c,
|
|
817
|
+
className: I(c, b, v),
|
|
818
818
|
"aria-describedby": a.helperTextId,
|
|
819
819
|
"aria-errormessage": a.errorMessageId,
|
|
820
820
|
"aria-invalid": a.isInvalid ?? !1,
|
|
@@ -829,7 +829,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
829
829
|
labelText: d,
|
|
830
830
|
className: s,
|
|
831
831
|
helperText: a,
|
|
832
|
-
errorMessage:
|
|
832
|
+
errorMessage: b,
|
|
833
833
|
isInvalid: c,
|
|
834
834
|
isRequired: o,
|
|
835
835
|
children: j,
|
|
@@ -845,7 +845,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
845
845
|
/* @__PURE__ */ i.jsxs(
|
|
846
846
|
"label",
|
|
847
847
|
{
|
|
848
|
-
className: I("block mb-2", c && "text-sun-800"),
|
|
848
|
+
className: I("block mb-2 text-label", c && "text-sun-800"),
|
|
849
849
|
htmlFor: R.id,
|
|
850
850
|
ref: m,
|
|
851
851
|
...g,
|
|
@@ -855,14 +855,14 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
855
855
|
]
|
|
856
856
|
}
|
|
857
857
|
),
|
|
858
|
+
a && /* @__PURE__ */ i.jsx("p", { id: R.helperTextId, className: "text-xs text-sumi-700 mb-2", children: a }),
|
|
858
859
|
j,
|
|
859
|
-
a && /* @__PURE__ */ i.jsx("p", { id: R.helperTextId, className: "text-sm text-sumi-700 mt-2", children: a }),
|
|
860
860
|
c && /* @__PURE__ */ i.jsx(
|
|
861
861
|
"p",
|
|
862
862
|
{
|
|
863
863
|
id: R.errorMessageId,
|
|
864
|
-
className: I("text-
|
|
865
|
-
children:
|
|
864
|
+
className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
|
|
865
|
+
children: b
|
|
866
866
|
}
|
|
867
867
|
)
|
|
868
868
|
] }) });
|
|
@@ -871,7 +871,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
871
871
|
labelText: d,
|
|
872
872
|
className: s,
|
|
873
873
|
helperText: a,
|
|
874
|
-
errorMessage:
|
|
874
|
+
errorMessage: b,
|
|
875
875
|
isInvalid: c,
|
|
876
876
|
isRequired: o,
|
|
877
877
|
direction: j,
|
|
@@ -885,18 +885,24 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
885
885
|
isRequired: o ?? !1
|
|
886
886
|
}, F = j ?? "flex-col";
|
|
887
887
|
return /* @__PURE__ */ i.jsx(k.Provider, { value: w, children: /* @__PURE__ */ i.jsxs("fieldset", { className: I("mb-4", s), ref: m, ...R, children: [
|
|
888
|
-
/* @__PURE__ */ i.jsx("legend", { children: /* @__PURE__ */ i.jsxs(
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
888
|
+
/* @__PURE__ */ i.jsx("legend", { children: /* @__PURE__ */ i.jsxs(
|
|
889
|
+
"p",
|
|
890
|
+
{
|
|
891
|
+
className: I("block mb-2 text-label", c && "text-sun-800"),
|
|
892
|
+
children: [
|
|
893
|
+
d,
|
|
894
|
+
o && /* @__PURE__ */ i.jsx("span", { className: "text-sun-800", children: " *" })
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
) }),
|
|
892
898
|
/* @__PURE__ */ i.jsx("div", { className: I("inline-flex", F), children: g }),
|
|
893
|
-
a && /* @__PURE__ */ i.jsx("p", { id: w.helperTextId, className: "text-
|
|
899
|
+
a && /* @__PURE__ */ i.jsx("p", { id: w.helperTextId, className: "text-xs text-sumi-700 mt-2", children: a }),
|
|
894
900
|
c && /* @__PURE__ */ i.jsx(
|
|
895
901
|
"p",
|
|
896
902
|
{
|
|
897
903
|
id: w.errorMessageId,
|
|
898
|
-
className: I("text-
|
|
899
|
-
children:
|
|
904
|
+
className: I("text-xs text-sun-800", a ? "mt-1" : "mt-2"),
|
|
905
|
+
children: b
|
|
900
906
|
}
|
|
901
907
|
)
|
|
902
908
|
] }) });
|
|
@@ -906,7 +912,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
906
912
|
onChange: d,
|
|
907
913
|
className: s,
|
|
908
914
|
labelText: a,
|
|
909
|
-
helperText:
|
|
915
|
+
helperText: b,
|
|
910
916
|
errorMessage: c,
|
|
911
917
|
isInvalid: o,
|
|
912
918
|
isRequired: j,
|
|
@@ -917,7 +923,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
917
923
|
{
|
|
918
924
|
className: s,
|
|
919
925
|
labelText: a,
|
|
920
|
-
helperText:
|
|
926
|
+
helperText: b,
|
|
921
927
|
errorMessage: c,
|
|
922
928
|
isInvalid: o,
|
|
923
929
|
isRequired: j,
|
|
@@ -932,7 +938,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
932
938
|
onChange: d,
|
|
933
939
|
className: s,
|
|
934
940
|
labelText: a,
|
|
935
|
-
helperText:
|
|
941
|
+
helperText: b,
|
|
936
942
|
errorMessage: c,
|
|
937
943
|
isInvalid: o,
|
|
938
944
|
isRequired: j,
|
|
@@ -944,7 +950,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
944
950
|
{
|
|
945
951
|
className: s,
|
|
946
952
|
labelText: a,
|
|
947
|
-
helperText:
|
|
953
|
+
helperText: b,
|
|
948
954
|
errorMessage: c,
|
|
949
955
|
isInvalid: o,
|
|
950
956
|
isRequired: j,
|
|
@@ -968,7 +974,7 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
968
974
|
labelText: d,
|
|
969
975
|
helperText: s,
|
|
970
976
|
errorMessage: a,
|
|
971
|
-
isInvalid:
|
|
977
|
+
isInvalid: b,
|
|
972
978
|
isRequired: c,
|
|
973
979
|
...o
|
|
974
980
|
} = f;
|
|
@@ -979,42 +985,40 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
979
985
|
labelText: d,
|
|
980
986
|
helperText: s,
|
|
981
987
|
errorMessage: a,
|
|
982
|
-
isInvalid:
|
|
988
|
+
isInvalid: b,
|
|
983
989
|
isRequired: c,
|
|
984
990
|
children: /* @__PURE__ */ i.jsx(mr, { ref: m, ...o })
|
|
985
991
|
}
|
|
986
992
|
);
|
|
987
|
-
}), Er = x.forwardRef(
|
|
988
|
-
|
|
989
|
-
|
|
993
|
+
}), Er = x.forwardRef((f, m) => {
|
|
994
|
+
const {
|
|
995
|
+
className: v,
|
|
996
|
+
labelText: d,
|
|
997
|
+
helperText: s,
|
|
998
|
+
errorMessage: a,
|
|
999
|
+
isInvalid: b,
|
|
1000
|
+
isRequired: c,
|
|
1001
|
+
...o
|
|
1002
|
+
} = f;
|
|
1003
|
+
return /* @__PURE__ */ i.jsx(
|
|
1004
|
+
te,
|
|
1005
|
+
{
|
|
990
1006
|
className: v,
|
|
991
1007
|
labelText: d,
|
|
992
1008
|
helperText: s,
|
|
993
1009
|
errorMessage: a,
|
|
994
|
-
isInvalid:
|
|
1010
|
+
isInvalid: b,
|
|
995
1011
|
isRequired: c,
|
|
996
|
-
...o
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
{
|
|
1001
|
-
className: v,
|
|
1002
|
-
labelText: d,
|
|
1003
|
-
helperText: s,
|
|
1004
|
-
errorMessage: a,
|
|
1005
|
-
isInvalid: h,
|
|
1006
|
-
isRequired: c,
|
|
1007
|
-
children: /* @__PURE__ */ i.jsx(hr, { ref: m, ...o })
|
|
1008
|
-
}
|
|
1009
|
-
);
|
|
1010
|
-
}
|
|
1011
|
-
), _r = x.forwardRef((f, m) => {
|
|
1012
|
+
children: /* @__PURE__ */ i.jsx(br, { ref: m, ...o })
|
|
1013
|
+
}
|
|
1014
|
+
);
|
|
1015
|
+
}), _r = x.forwardRef((f, m) => {
|
|
1012
1016
|
const {
|
|
1013
1017
|
className: v,
|
|
1014
1018
|
labelText: d,
|
|
1015
1019
|
helperText: s,
|
|
1016
1020
|
errorMessage: a,
|
|
1017
|
-
isInvalid:
|
|
1021
|
+
isInvalid: b,
|
|
1018
1022
|
isRequired: c,
|
|
1019
1023
|
...o
|
|
1020
1024
|
} = f;
|
|
@@ -1025,9 +1029,9 @@ const I = (...f) => f.filter(Boolean).join(" "), k = x.createContext({
|
|
|
1025
1029
|
labelText: d,
|
|
1026
1030
|
helperText: s,
|
|
1027
1031
|
errorMessage: a,
|
|
1028
|
-
isInvalid:
|
|
1032
|
+
isInvalid: b,
|
|
1029
1033
|
isRequired: c,
|
|
1030
|
-
children: /* @__PURE__ */ i.jsx(
|
|
1034
|
+
children: /* @__PURE__ */ i.jsx(hr, { ref: m, ...o })
|
|
1031
1035
|
}
|
|
1032
1036
|
);
|
|
1033
1037
|
});
|
|
@@ -1035,14 +1039,14 @@ export {
|
|
|
1035
1039
|
pr as Checkbox,
|
|
1036
1040
|
gr as CheckboxGroup,
|
|
1037
1041
|
Ie as FieldsetControl,
|
|
1042
|
+
br as Input,
|
|
1043
|
+
Er as InputControl,
|
|
1038
1044
|
te as LabelControl,
|
|
1039
1045
|
vr as Radio,
|
|
1040
1046
|
Rr as RadioGroup,
|
|
1041
1047
|
mr as Select,
|
|
1042
1048
|
yr as SelectControl,
|
|
1043
|
-
hr as
|
|
1044
|
-
Er as TextControl,
|
|
1045
|
-
br as Textarea,
|
|
1049
|
+
hr as Textarea,
|
|
1046
1050
|
_r as TextareaControl
|
|
1047
1051
|
};
|
|
1048
1052
|
//# sourceMappingURL=index.es.js.map
|