@sakura-ui/forms 0.1.5 → 0.1.6
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/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +26 -23
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +1 -0
- package/dist/components/Input.js.map +1 -1
- package/dist/components/Radio.d.ts.map +1 -1
- package/dist/components/Radio.js +25 -23
- package/dist/components/Radio.js.map +1 -1
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.js +1 -0
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.js +1 -0
- package/dist/components/Textarea.js.map +1 -1
- package/dist/index.cjs.js +62 -54
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +116 -108
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -14,16 +14,16 @@ function vr() {
|
|
|
14
14
|
if (Ne)
|
|
15
15
|
return W;
|
|
16
16
|
Ne = 1;
|
|
17
|
-
var p = y,
|
|
17
|
+
var p = y, h = Symbol.for("react.element"), m = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, i = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
18
|
function v(c, o, _) {
|
|
19
|
-
var
|
|
19
|
+
var b, g = {}, C = null, T = null;
|
|
20
20
|
_ !== void 0 && (C = "" + _), o.key !== void 0 && (C = "" + o.key), o.ref !== void 0 && (T = o.ref);
|
|
21
|
-
for (
|
|
22
|
-
f.call(o,
|
|
21
|
+
for (b in o)
|
|
22
|
+
f.call(o, b) && !a.hasOwnProperty(b) && (g[b] = o[b]);
|
|
23
23
|
if (c && c.defaultProps)
|
|
24
|
-
for (
|
|
25
|
-
g[
|
|
26
|
-
return { $$typeof:
|
|
24
|
+
for (b in o = c.defaultProps, o)
|
|
25
|
+
g[b] === void 0 && (g[b] = o[b]);
|
|
26
|
+
return { $$typeof: h, type: c, key: C, ref: T, props: g, _owner: i.current };
|
|
27
27
|
}
|
|
28
28
|
return W.Fragment = m, W.jsx = v, W.jsxs = v, W;
|
|
29
29
|
}
|
|
@@ -40,7 +40,7 @@ var Y = {};
|
|
|
40
40
|
var Pe;
|
|
41
41
|
function mr() {
|
|
42
42
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var p = y,
|
|
43
|
+
var p = y, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), I = Symbol.iterator, ke = "@@iterator";
|
|
44
44
|
function Fe(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
@@ -68,7 +68,7 @@ function mr() {
|
|
|
68
68
|
var Ae = !1, Me = !1, $e = !1, qe = !1, We = !1, ne;
|
|
69
69
|
ne = Symbol.for("react.module.reference");
|
|
70
70
|
function Ye(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === f || e === a || We || e === i || e === _ || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === a || We || e === i || e === _ || e === b || qe || e === T || Ae || Me || $e || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === g || e.$$typeof === v || 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.
|
|
@@ -102,7 +102,7 @@ function mr() {
|
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case _:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case b:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
@@ -298,7 +298,7 @@ function mr() {
|
|
|
298
298
|
switch (e) {
|
|
299
299
|
case _:
|
|
300
300
|
return L("Suspense");
|
|
301
|
-
case
|
|
301
|
+
case b:
|
|
302
302
|
return L("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
@@ -317,13 +317,13 @@ function mr() {
|
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var B = Object.prototype.hasOwnProperty, me = {},
|
|
320
|
+
var B = Object.prototype.hasOwnProperty, me = {}, be = D.ReactDebugCurrentFrame;
|
|
321
321
|
function G(e) {
|
|
322
322
|
if (e) {
|
|
323
323
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
324
|
-
|
|
324
|
+
be.setExtraStackFrame(t);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
be.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
328
|
function ze(e, r, t, n, d) {
|
|
329
329
|
{
|
|
@@ -356,17 +356,17 @@ function mr() {
|
|
|
356
356
|
}
|
|
357
357
|
function Xe(e) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return he(e), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function he(e) {
|
|
365
365
|
return "" + e;
|
|
366
366
|
}
|
|
367
367
|
function xe(e) {
|
|
368
368
|
if (Xe(e))
|
|
369
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)),
|
|
369
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), he(e);
|
|
370
370
|
}
|
|
371
371
|
var q = D.ReactCurrentOwner, Ze = {
|
|
372
372
|
key: !0,
|
|
@@ -422,7 +422,7 @@ function mr() {
|
|
|
422
422
|
var nr = function(e, r, t, n, d, x, u) {
|
|
423
423
|
var l = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
425
|
+
$$typeof: h,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
@@ -477,7 +477,7 @@ function mr() {
|
|
|
477
477
|
var Q;
|
|
478
478
|
Q = !1;
|
|
479
479
|
function ee(e) {
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
480
|
+
return typeof e == "object" && e !== null && e.$$typeof === h;
|
|
481
481
|
}
|
|
482
482
|
function Ee() {
|
|
483
483
|
{
|
|
@@ -593,7 +593,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
593
593
|
var w = ir(d);
|
|
594
594
|
w ? l += w : l += Ee();
|
|
595
595
|
var R;
|
|
596
|
-
e === null ? R = "null" : K(e) ? R = "array" : e !== void 0 && e.$$typeof ===
|
|
596
|
+
e === null ? R = "null" : K(e) ? R = "array" : e !== void 0 && e.$$typeof === h ? (R = "<" + (S(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, l);
|
|
597
597
|
}
|
|
598
598
|
var E = sr(e, r, t, d, x);
|
|
599
599
|
if (E == null)
|
|
@@ -632,33 +632,36 @@ const P = (...p) => p.filter(Boolean).join(" "), F = y.createContext({
|
|
|
632
632
|
isInvalid: !1,
|
|
633
633
|
isRequired: !1
|
|
634
634
|
}), Ie = y.forwardRef(
|
|
635
|
-
(p,
|
|
635
|
+
(p, h) => {
|
|
636
636
|
const { className: m, children: f, ...i } = p, a = y.useContext(F);
|
|
637
637
|
a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
|
|
638
638
|
const v = `
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
639
|
+
inline-block
|
|
640
|
+
text-base
|
|
641
|
+
cursor-pointer
|
|
642
|
+
py-2
|
|
643
|
+
mr-4
|
|
644
|
+
`, c = `
|
|
645
|
+
peer
|
|
646
|
+
sr-only
|
|
647
|
+
`, o = `
|
|
648
|
+
bg-clip-content
|
|
649
|
+
w-6 h-6
|
|
650
|
+
ml-1
|
|
651
|
+
mr-2
|
|
652
|
+
rounded
|
|
653
|
+
border
|
|
654
|
+
border-solid
|
|
655
|
+
border-sumi-900
|
|
656
|
+
fill-transparent
|
|
657
|
+
peer-checked:fill-white-1000
|
|
658
|
+
peer-checked:bg-sea-600
|
|
659
|
+
peer-checked:border-none
|
|
660
|
+
peer-disabled:border-sumi-500
|
|
661
|
+
peer-focus-visible:ring-2
|
|
662
|
+
peer-focus-visible:ring-offset-2
|
|
663
|
+
peer-focus-visible:ring-wood-500
|
|
664
|
+
`;
|
|
662
665
|
return /* @__PURE__ */ s.jsx("label", { htmlFor: i.id, className: P(v, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
663
666
|
/* @__PURE__ */ s.jsx(
|
|
664
667
|
"input",
|
|
@@ -669,7 +672,7 @@ const P = (...p) => p.filter(Boolean).join(" "), F = y.createContext({
|
|
|
669
672
|
"aria-errormessage": a.errorMessageId,
|
|
670
673
|
"aria-invalid": a.isInvalid ?? !1,
|
|
671
674
|
...i,
|
|
672
|
-
ref:
|
|
675
|
+
ref: h
|
|
673
676
|
}
|
|
674
677
|
),
|
|
675
678
|
/* @__PURE__ */ s.jsx("span", { className: o, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ s.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) }) }),
|
|
@@ -679,33 +682,35 @@ const P = (...p) => p.filter(Boolean).join(" "), F = y.createContext({
|
|
|
679
682
|
);
|
|
680
683
|
Ie.displayName = "Checkbox";
|
|
681
684
|
const Se = y.forwardRef(
|
|
682
|
-
(p,
|
|
685
|
+
(p, h) => {
|
|
683
686
|
const { className: m, children: f, ...i } = p, a = y.useContext(F);
|
|
684
687
|
a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
|
|
685
688
|
const v = `
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
689
|
+
inline-block
|
|
690
|
+
text-base
|
|
691
|
+
cursor-pointer
|
|
692
|
+
py-2
|
|
693
|
+
mr-4
|
|
694
|
+
`, c = `
|
|
695
|
+
peer
|
|
696
|
+
sr-only
|
|
697
|
+
`, o = `
|
|
698
|
+
bg-clip-content
|
|
699
|
+
w-6 h-6
|
|
700
|
+
ml-1
|
|
701
|
+
mr-2
|
|
702
|
+
p-1
|
|
703
|
+
rounded-full
|
|
704
|
+
border
|
|
705
|
+
border-solid
|
|
706
|
+
border-sumi-900
|
|
707
|
+
peer-checked:bg-sea-600
|
|
708
|
+
peer-checked:border-sea-600
|
|
709
|
+
peer-disabled:border-sumi-500
|
|
710
|
+
peer-focus-visible:ring-2
|
|
711
|
+
peer-focus-visible:ring-offset-2
|
|
712
|
+
peer-focus-visible:ring-wood-500
|
|
713
|
+
`;
|
|
709
714
|
return /* @__PURE__ */ s.jsx("label", { htmlFor: i.id, className: P(v, m), children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
710
715
|
/* @__PURE__ */ s.jsx(
|
|
711
716
|
"input",
|
|
@@ -716,7 +721,7 @@ const Se = y.forwardRef(
|
|
|
716
721
|
"aria-errormessage": a.errorMessageId,
|
|
717
722
|
"aria-invalid": a.isInvalid ?? !1,
|
|
718
723
|
...i,
|
|
719
|
-
ref:
|
|
724
|
+
ref: h
|
|
720
725
|
}
|
|
721
726
|
),
|
|
722
727
|
/* @__PURE__ */ s.jsx("span", { className: o }),
|
|
@@ -725,8 +730,8 @@ const Se = y.forwardRef(
|
|
|
725
730
|
}
|
|
726
731
|
);
|
|
727
732
|
Se.displayName = "Radio";
|
|
728
|
-
const
|
|
729
|
-
(p,
|
|
733
|
+
const br = y.forwardRef(
|
|
734
|
+
(p, h) => {
|
|
730
735
|
const { className: m, children: f, ...i } = p, a = y.useContext(F);
|
|
731
736
|
a.isRequired && (i.required = !0);
|
|
732
737
|
const v = a.isInvalid ? "border-sun-800" : "border-sumi-900", c = `
|
|
@@ -740,6 +745,7 @@ const hr = y.forwardRef(
|
|
|
740
745
|
border-solid
|
|
741
746
|
py-4 px-4 pr-8
|
|
742
747
|
rounded-[8px]
|
|
748
|
+
outline-offset-2
|
|
743
749
|
focus:outline
|
|
744
750
|
focus:outline-2
|
|
745
751
|
focus:outline-wood-500
|
|
@@ -763,15 +769,15 @@ const hr = y.forwardRef(
|
|
|
763
769
|
"aria-errormessage": a.errorMessageId,
|
|
764
770
|
"aria-invalid": a.isInvalid ?? !1,
|
|
765
771
|
...i,
|
|
766
|
-
ref:
|
|
772
|
+
ref: h,
|
|
767
773
|
children: f
|
|
768
774
|
}
|
|
769
775
|
),
|
|
770
776
|
/* @__PURE__ */ s.jsx("span", { className: o, children: /* @__PURE__ */ s.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24", width: "24", children: /* @__PURE__ */ s.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" }) }) })
|
|
771
777
|
] });
|
|
772
778
|
}
|
|
773
|
-
),
|
|
774
|
-
(p,
|
|
779
|
+
), hr = y.forwardRef(
|
|
780
|
+
(p, h) => {
|
|
775
781
|
const { className: m, ...f } = p, i = y.useContext(F);
|
|
776
782
|
i.isRequired && (f.required = !0);
|
|
777
783
|
const a = i.isInvalid ? "border-sun-800" : "border-sumi-900", v = `
|
|
@@ -779,6 +785,7 @@ const hr = y.forwardRef(
|
|
|
779
785
|
rounded-lg
|
|
780
786
|
border
|
|
781
787
|
border-solid
|
|
788
|
+
outline-offset-2
|
|
782
789
|
focus:outline
|
|
783
790
|
focus:outline-2
|
|
784
791
|
focus:outline-wood-500
|
|
@@ -795,24 +802,25 @@ const hr = y.forwardRef(
|
|
|
795
802
|
"aria-describedby": i.helperTextId,
|
|
796
803
|
"aria-errormessage": i.errorMessageId,
|
|
797
804
|
"aria-invalid": i.isInvalid ?? !1,
|
|
798
|
-
ref:
|
|
805
|
+
ref: h,
|
|
799
806
|
...f
|
|
800
807
|
}
|
|
801
808
|
);
|
|
802
809
|
}
|
|
803
810
|
);
|
|
804
|
-
|
|
811
|
+
hr.displayName = "Input";
|
|
805
812
|
const Oe = y.forwardRef(
|
|
806
|
-
(p,
|
|
813
|
+
(p, h) => {
|
|
807
814
|
const { className: m, children: f, onChange: i, maxLength: a, ...v } = p, [c, o] = y.useState(0), _ = (I) => {
|
|
808
815
|
i && i(I), o(I.target.value.length);
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
const g =
|
|
816
|
+
}, b = y.useContext(F);
|
|
817
|
+
b.isRequired && (v.required = !0);
|
|
818
|
+
const g = b.isInvalid ? "border-sun-800" : "border-sumi-900", C = c > (a || 0) ? "text-sun-800" : "text-sumi-700", T = `
|
|
812
819
|
p-4
|
|
813
820
|
rounded-lg
|
|
814
821
|
border
|
|
815
822
|
border-solid
|
|
823
|
+
outline-offset-2
|
|
816
824
|
focus:outline
|
|
817
825
|
focus:outline-2
|
|
818
826
|
focus:outline-wood-500
|
|
@@ -824,14 +832,14 @@ const Oe = y.forwardRef(
|
|
|
824
832
|
/* @__PURE__ */ s.jsx(
|
|
825
833
|
"textarea",
|
|
826
834
|
{
|
|
827
|
-
id: v.id ??
|
|
835
|
+
id: v.id ?? b.id,
|
|
828
836
|
className: P(T, g, m),
|
|
829
|
-
"aria-describedby":
|
|
830
|
-
"aria-errormessage":
|
|
831
|
-
"aria-invalid":
|
|
837
|
+
"aria-describedby": b.helperTextId,
|
|
838
|
+
"aria-errormessage": b.errorMessageId,
|
|
839
|
+
"aria-invalid": b.isInvalid ?? !1,
|
|
832
840
|
onChange: _,
|
|
833
841
|
...v,
|
|
834
|
-
ref:
|
|
842
|
+
ref: h,
|
|
835
843
|
children: f
|
|
836
844
|
}
|
|
837
845
|
),
|
|
@@ -844,7 +852,7 @@ const Oe = y.forwardRef(
|
|
|
844
852
|
}
|
|
845
853
|
);
|
|
846
854
|
Oe.displayName = "Textarea";
|
|
847
|
-
const te = y.forwardRef((p,
|
|
855
|
+
const te = y.forwardRef((p, h) => {
|
|
848
856
|
const m = y.useId(), {
|
|
849
857
|
labelText: f,
|
|
850
858
|
className: i,
|
|
@@ -853,7 +861,7 @@ const te = y.forwardRef((p, b) => {
|
|
|
853
861
|
isInvalid: c,
|
|
854
862
|
isRequired: o,
|
|
855
863
|
children: _,
|
|
856
|
-
...
|
|
864
|
+
...b
|
|
857
865
|
} = p, g = {
|
|
858
866
|
id: p.htmlFor ?? `input-${m}`,
|
|
859
867
|
helperTextId: `helper-text-${m}`,
|
|
@@ -867,8 +875,8 @@ const te = y.forwardRef((p, b) => {
|
|
|
867
875
|
{
|
|
868
876
|
className: P("block mb-2 text-label", c && "text-sun-800"),
|
|
869
877
|
htmlFor: g.id,
|
|
870
|
-
ref:
|
|
871
|
-
...
|
|
878
|
+
ref: h,
|
|
879
|
+
...b,
|
|
872
880
|
children: [
|
|
873
881
|
f,
|
|
874
882
|
o && /* @__PURE__ */ s.jsx("span", { className: "text-sun-800", children: " *" })
|
|
@@ -891,7 +899,7 @@ const te = y.forwardRef((p, b) => {
|
|
|
891
899
|
] }) });
|
|
892
900
|
});
|
|
893
901
|
te.displayName = "LabelControl";
|
|
894
|
-
const ae = y.forwardRef((p,
|
|
902
|
+
const ae = y.forwardRef((p, h) => {
|
|
895
903
|
const m = y.useId(), {
|
|
896
904
|
labelText: f,
|
|
897
905
|
className: i,
|
|
@@ -900,7 +908,7 @@ const ae = y.forwardRef((p, b) => {
|
|
|
900
908
|
isInvalid: c,
|
|
901
909
|
isRequired: o,
|
|
902
910
|
direction: _,
|
|
903
|
-
children:
|
|
911
|
+
children: b,
|
|
904
912
|
...g
|
|
905
913
|
} = p, T = {
|
|
906
914
|
groupName: g.name ?? `group-${m}`,
|
|
@@ -909,7 +917,7 @@ const ae = y.forwardRef((p, b) => {
|
|
|
909
917
|
isInvalid: c ?? !1,
|
|
910
918
|
isRequired: o ?? !1
|
|
911
919
|
}, I = _ ?? "flex-col";
|
|
912
|
-
return /* @__PURE__ */ s.jsx(F.Provider, { value: T, children: /* @__PURE__ */ s.jsxs("fieldset", { className: P("mb-4", i), ref:
|
|
920
|
+
return /* @__PURE__ */ s.jsx(F.Provider, { value: T, children: /* @__PURE__ */ s.jsxs("fieldset", { className: P("mb-4", i), ref: h, ...g, children: [
|
|
913
921
|
/* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
|
|
914
922
|
"p",
|
|
915
923
|
{
|
|
@@ -920,7 +928,7 @@ const ae = y.forwardRef((p, b) => {
|
|
|
920
928
|
]
|
|
921
929
|
}
|
|
922
930
|
) }),
|
|
923
|
-
/* @__PURE__ */ s.jsx("div", { className: P("inline-flex", I), children:
|
|
931
|
+
/* @__PURE__ */ s.jsx("div", { className: P("inline-flex", I), children: b }),
|
|
924
932
|
a && /* @__PURE__ */ s.jsx("p", { id: T.helperTextId, className: "text-sup text-sumi-700 mt-2", children: a }),
|
|
925
933
|
c && /* @__PURE__ */ s.jsx(
|
|
926
934
|
"p",
|
|
@@ -936,7 +944,7 @@ const ae = y.forwardRef((p, b) => {
|
|
|
936
944
|
] }) });
|
|
937
945
|
});
|
|
938
946
|
ae.displayName = "FieldsetControl";
|
|
939
|
-
const xr = y.forwardRef((p,
|
|
947
|
+
const xr = y.forwardRef((p, h) => {
|
|
940
948
|
const {
|
|
941
949
|
items: m,
|
|
942
950
|
onChange: f,
|
|
@@ -946,7 +954,7 @@ const xr = y.forwardRef((p, b) => {
|
|
|
946
954
|
errorMessage: c,
|
|
947
955
|
isInvalid: o,
|
|
948
956
|
isRequired: _,
|
|
949
|
-
...
|
|
957
|
+
...b
|
|
950
958
|
} = p;
|
|
951
959
|
return /* @__PURE__ */ s.jsx(
|
|
952
960
|
ae,
|
|
@@ -957,14 +965,14 @@ const xr = y.forwardRef((p, b) => {
|
|
|
957
965
|
errorMessage: c,
|
|
958
966
|
isInvalid: o,
|
|
959
967
|
isRequired: _,
|
|
960
|
-
ref:
|
|
961
|
-
...
|
|
968
|
+
ref: h,
|
|
969
|
+
...b,
|
|
962
970
|
children: m.map(({ label: g, value: C }, T) => /* @__PURE__ */ s.jsx(Ie, { value: C, onChange: f, children: g }, T))
|
|
963
971
|
}
|
|
964
972
|
);
|
|
965
973
|
});
|
|
966
974
|
xr.displayName = "CheckboxGroup";
|
|
967
|
-
const gr = y.forwardRef((p,
|
|
975
|
+
const gr = y.forwardRef((p, h) => {
|
|
968
976
|
const {
|
|
969
977
|
items: m,
|
|
970
978
|
onChange: f,
|
|
@@ -974,7 +982,7 @@ const gr = y.forwardRef((p, b) => {
|
|
|
974
982
|
errorMessage: c,
|
|
975
983
|
isInvalid: o,
|
|
976
984
|
isRequired: _,
|
|
977
|
-
defaultValue:
|
|
985
|
+
defaultValue: b,
|
|
978
986
|
...g
|
|
979
987
|
} = p;
|
|
980
988
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -986,14 +994,14 @@ const gr = y.forwardRef((p, b) => {
|
|
|
986
994
|
errorMessage: c,
|
|
987
995
|
isInvalid: o,
|
|
988
996
|
isRequired: _,
|
|
989
|
-
ref:
|
|
997
|
+
ref: h,
|
|
990
998
|
...g,
|
|
991
999
|
children: m.map(({ label: C, value: T }, I) => /* @__PURE__ */ s.jsx(
|
|
992
1000
|
Se,
|
|
993
1001
|
{
|
|
994
1002
|
value: T,
|
|
995
1003
|
onChange: f,
|
|
996
|
-
defaultChecked:
|
|
1004
|
+
defaultChecked: b === T,
|
|
997
1005
|
children: C
|
|
998
1006
|
},
|
|
999
1007
|
I
|
|
@@ -1002,7 +1010,7 @@ const gr = y.forwardRef((p, b) => {
|
|
|
1002
1010
|
);
|
|
1003
1011
|
});
|
|
1004
1012
|
gr.displayName = "RadioGroup";
|
|
1005
|
-
const yr = y.forwardRef((p,
|
|
1013
|
+
const yr = y.forwardRef((p, h) => {
|
|
1006
1014
|
const {
|
|
1007
1015
|
className: m,
|
|
1008
1016
|
labelText: f,
|
|
@@ -1021,12 +1029,12 @@ const yr = y.forwardRef((p, b) => {
|
|
|
1021
1029
|
errorMessage: a,
|
|
1022
1030
|
isInvalid: v,
|
|
1023
1031
|
isRequired: c,
|
|
1024
|
-
children: /* @__PURE__ */ s.jsx(
|
|
1032
|
+
children: /* @__PURE__ */ s.jsx(br, { ref: h, ...o })
|
|
1025
1033
|
}
|
|
1026
1034
|
);
|
|
1027
1035
|
});
|
|
1028
1036
|
yr.displayName = "SelectControl";
|
|
1029
|
-
const Rr = y.forwardRef((p,
|
|
1037
|
+
const Rr = y.forwardRef((p, h) => {
|
|
1030
1038
|
const {
|
|
1031
1039
|
className: m,
|
|
1032
1040
|
labelText: f,
|
|
@@ -1045,7 +1053,7 @@ const Rr = y.forwardRef((p, b) => {
|
|
|
1045
1053
|
errorMessage: a,
|
|
1046
1054
|
isInvalid: v,
|
|
1047
1055
|
isRequired: c,
|
|
1048
|
-
children: /* @__PURE__ */ s.jsx(Oe, { ref:
|
|
1056
|
+
children: /* @__PURE__ */ s.jsx(Oe, { ref: h, ...o })
|
|
1049
1057
|
}
|
|
1050
1058
|
);
|
|
1051
1059
|
});
|
|
@@ -1054,11 +1062,11 @@ export {
|
|
|
1054
1062
|
Ie as Checkbox,
|
|
1055
1063
|
xr as CheckboxGroup,
|
|
1056
1064
|
ae as FieldsetControl,
|
|
1057
|
-
|
|
1065
|
+
hr as Input,
|
|
1058
1066
|
te as LabelControl,
|
|
1059
1067
|
Se as Radio,
|
|
1060
1068
|
gr as RadioGroup,
|
|
1061
|
-
|
|
1069
|
+
br as Select,
|
|
1062
1070
|
yr as SelectControl,
|
|
1063
1071
|
Oe as Textarea,
|
|
1064
1072
|
Rr as TextareaControl
|