@beaubrain/web-design-system 0.1.3 → 0.1.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/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import I from "react";
|
|
|
4
4
|
function Ot(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var se = { exports: {} };
|
|
8
8
|
/*!
|
|
9
9
|
Copyright (c) 2018 Jed Watson.
|
|
10
10
|
Licensed under the MIT License (MIT), see
|
|
@@ -41,7 +41,7 @@ function At() {
|
|
|
41
41
|
}
|
|
42
42
|
e.exports ? (o.default = o, e.exports = o) : window.classNames = o;
|
|
43
43
|
})();
|
|
44
|
-
})(
|
|
44
|
+
})(se)), se.exports;
|
|
45
45
|
}
|
|
46
46
|
var Gt = At();
|
|
47
47
|
const x = /* @__PURE__ */ Ot(Gt), Bt = (e, t) => {
|
|
@@ -58,7 +58,7 @@ const x = /* @__PURE__ */ Ot(Gt), Bt = (e, t) => {
|
|
|
58
58
|
if (typeof e == "function")
|
|
59
59
|
return e(t);
|
|
60
60
|
e != null && (e.current = t);
|
|
61
|
-
},
|
|
61
|
+
}, de = (...e) => (t) => {
|
|
62
62
|
let o = !1;
|
|
63
63
|
const r = e.map((s) => {
|
|
64
64
|
const n = xe(s, t);
|
|
@@ -74,7 +74,7 @@ const x = /* @__PURE__ */ Ot(Gt), Bt = (e, t) => {
|
|
|
74
74
|
return t && "isReactWarning" in t && t.isReactWarning ? e.ref : e.props.ref || e.ref;
|
|
75
75
|
};
|
|
76
76
|
function E(...e) {
|
|
77
|
-
return I.useCallback(
|
|
77
|
+
return I.useCallback(de(...e), e);
|
|
78
78
|
}
|
|
79
79
|
const Pe = (...e) => {
|
|
80
80
|
let t = {};
|
|
@@ -266,11 +266,11 @@ function qt({
|
|
|
266
266
|
function Kt(e) {
|
|
267
267
|
return typeof e == "function";
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function pe(e) {
|
|
270
270
|
const t = i.useRef({ value: e, previous: e });
|
|
271
271
|
return i.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function fe(e) {
|
|
274
274
|
const [t, o] = i.useState(void 0);
|
|
275
275
|
return L(() => {
|
|
276
276
|
if (e) {
|
|
@@ -301,7 +301,7 @@ const Xt = (e) => {
|
|
|
301
301
|
const { children: s, ...n } = o;
|
|
302
302
|
if (I.isValidElement(s)) {
|
|
303
303
|
const c = Ie(s), a = Bt(n, s.props);
|
|
304
|
-
return a.ref = r ?
|
|
304
|
+
return a.ref = r ? de(r, c) : c, I.cloneElement(s, a);
|
|
305
305
|
}
|
|
306
306
|
throw new Error(
|
|
307
307
|
`[${e}.OutletClone] Invalid children passed, expected a single valid React element.`
|
|
@@ -463,11 +463,11 @@ so.displayName = "Reset";
|
|
|
463
463
|
const S = (e, t, { checkForDefaultPrevented: o = !0 } = {}) => function(s) {
|
|
464
464
|
if (e?.(s), o === !1 || !s.defaultPrevented)
|
|
465
465
|
return t?.(s);
|
|
466
|
-
},
|
|
466
|
+
}, ne = "rovingFocusGroup.onEntryFocus", no = { bubbles: !1, cancelable: !0 }, J = "RovingFocusGroup", [ie, Te, ro] = Qt(J), [co, me] = _(
|
|
467
467
|
J,
|
|
468
468
|
[ro]
|
|
469
469
|
), [ao, io] = co(J), Oe = i.forwardRef(
|
|
470
|
-
(e, t) => /* @__PURE__ */ u(
|
|
470
|
+
(e, t) => /* @__PURE__ */ u(ie.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u(ie.Outlet, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u(lo, { ...e, ref: t }) }) })
|
|
471
471
|
), lo = i.forwardRef((e, t) => {
|
|
472
472
|
const {
|
|
473
473
|
__scopeRovingFocusGroup: o,
|
|
@@ -488,7 +488,7 @@ const S = (e, t, { checkForDefaultPrevented: o = !0 } = {}) => function(s) {
|
|
|
488
488
|
return i.useEffect(() => {
|
|
489
489
|
const w = p.current;
|
|
490
490
|
if (w)
|
|
491
|
-
return w.addEventListener(
|
|
491
|
+
return w.addEventListener(ne, y), () => w.removeEventListener(ne, y);
|
|
492
492
|
}, [y]), /* @__PURE__ */ u(
|
|
493
493
|
ao,
|
|
494
494
|
{
|
|
@@ -523,9 +523,9 @@ const S = (e, t, { checkForDefaultPrevented: o = !0 } = {}) => function(s) {
|
|
|
523
523
|
onFocus: S(e.onFocus, (w) => {
|
|
524
524
|
const V = !C.current;
|
|
525
525
|
if (w.target === w.currentTarget && V && !v) {
|
|
526
|
-
const Ne = new CustomEvent(
|
|
526
|
+
const Ne = new CustomEvent(ne, no);
|
|
527
527
|
if (w.currentTarget.dispatchEvent(Ne), !Ne.defaultPrevented) {
|
|
528
|
-
const
|
|
528
|
+
const oe = R().filter((G) => G.focusable), Et = oe.find((G) => G.active), _t = oe.find((G) => G.id === m), Tt = [Et, _t, ...oe].filter(
|
|
529
529
|
Boolean
|
|
530
530
|
).map((G) => G.ref.current);
|
|
531
531
|
Ge(Tt, d);
|
|
@@ -552,7 +552,7 @@ const S = (e, t, { checkForDefaultPrevented: o = !0 } = {}) => function(s) {
|
|
|
552
552
|
if (r)
|
|
553
553
|
return m(), () => g();
|
|
554
554
|
}, [r, m, g]), /* @__PURE__ */ u(
|
|
555
|
-
|
|
555
|
+
ie.ItemOutlet,
|
|
556
556
|
{
|
|
557
557
|
scope: o,
|
|
558
558
|
id: d,
|
|
@@ -621,10 +621,10 @@ const $ = {
|
|
|
621
621
|
asChild: {
|
|
622
622
|
type: "boolean"
|
|
623
623
|
}
|
|
624
|
-
},
|
|
624
|
+
}, Q = ["gray50", "gray100", "gray200", "gray300", "gray400", "gray500", "gray600", "gray700", "gray800", "gray900", "gray1000", "gray1100", "gray1200", "gray1300", "gray1400", "gray1500", "blue50", "blue100", "blue200", "blue300", "blue400", "blue500", "blue600", "blue700", "blue800", "blue900", "blue1000", "blue1100", "blue1200", "blue1300", "blue1400", "green50", "green100", "green200", "green300", "green400", "green500", "green600", "green700", "green800", "green900", "green1000", "green1100", "green1200", "red50", "red100", "red200", "red300", "red400", "red500", "red600", "red700", "red800", "red900", "red1000", "red1100"], bo = {
|
|
625
625
|
color: {
|
|
626
626
|
type: "enum | string",
|
|
627
|
-
values:
|
|
627
|
+
values: Q,
|
|
628
628
|
className: "bd-color",
|
|
629
629
|
customProperties: ["--color"],
|
|
630
630
|
default: void 0
|
|
@@ -632,11 +632,19 @@ const $ = {
|
|
|
632
632
|
}, ho = {
|
|
633
633
|
borderColor: {
|
|
634
634
|
type: "enum | string",
|
|
635
|
-
values:
|
|
635
|
+
values: Q,
|
|
636
636
|
className: "bd-br-color",
|
|
637
637
|
customProperties: ["--border-color"],
|
|
638
638
|
default: void 0
|
|
639
639
|
}
|
|
640
|
+
}, go = {
|
|
641
|
+
accentColor: {
|
|
642
|
+
type: "enum | string",
|
|
643
|
+
values: Q,
|
|
644
|
+
className: "bd-ac-color",
|
|
645
|
+
customProperties: ["--accent-color"],
|
|
646
|
+
default: void 0
|
|
647
|
+
}
|
|
640
648
|
}, B = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], q = {
|
|
641
649
|
p: {
|
|
642
650
|
type: "enum | string",
|
|
@@ -696,7 +704,7 @@ const $ = {
|
|
|
696
704
|
className: "bd-max-w",
|
|
697
705
|
customProperties: ["--max-width"]
|
|
698
706
|
}
|
|
699
|
-
},
|
|
707
|
+
}, yo = {
|
|
700
708
|
height: {
|
|
701
709
|
type: "string",
|
|
702
710
|
className: "bd-h",
|
|
@@ -712,14 +720,14 @@ const $ = {
|
|
|
712
720
|
className: "bd-max-h",
|
|
713
721
|
customProperties: ["--max-height"]
|
|
714
722
|
}
|
|
715
|
-
},
|
|
723
|
+
}, vo = ["static", "relative", "absolute", "fixed", "sticky"], re = ["visible", "hidden", "clip", "scroll", "auto"], z = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"], Co = ["0", "1"], Ro = ["0", "1"], No = ["start", "center", "end", "baseline", "stretch"], wo = ["start", "center", "end", "baseline", "stretch"], xo = {
|
|
716
724
|
...Be,
|
|
717
|
-
...
|
|
725
|
+
...yo,
|
|
718
726
|
...q,
|
|
719
727
|
position: {
|
|
720
728
|
type: "enum",
|
|
721
729
|
className: "bd-position",
|
|
722
|
-
values:
|
|
730
|
+
values: vo
|
|
723
731
|
},
|
|
724
732
|
inset: {
|
|
725
733
|
type: "enum | string",
|
|
@@ -754,17 +762,17 @@ const $ = {
|
|
|
754
762
|
overflow: {
|
|
755
763
|
type: "enum",
|
|
756
764
|
className: "bd-overflow",
|
|
757
|
-
values:
|
|
765
|
+
values: re
|
|
758
766
|
},
|
|
759
767
|
overflowX: {
|
|
760
768
|
type: "enum",
|
|
761
769
|
className: "bd-ox",
|
|
762
|
-
values:
|
|
770
|
+
values: re
|
|
763
771
|
},
|
|
764
772
|
overflowY: {
|
|
765
773
|
type: "enum",
|
|
766
774
|
className: "bd-oy",
|
|
767
|
-
values:
|
|
775
|
+
values: re
|
|
768
776
|
},
|
|
769
777
|
flexBasis: {
|
|
770
778
|
type: "string",
|
|
@@ -775,13 +783,13 @@ const $ = {
|
|
|
775
783
|
type: "enum | string",
|
|
776
784
|
className: "bd-fs",
|
|
777
785
|
customProperties: ["--flex-shrink"],
|
|
778
|
-
values:
|
|
786
|
+
values: Co
|
|
779
787
|
},
|
|
780
788
|
flexGrow: {
|
|
781
789
|
type: "enum | string",
|
|
782
790
|
className: "bd-fg",
|
|
783
791
|
customProperties: ["--flex-grow"],
|
|
784
|
-
values:
|
|
792
|
+
values: Ro
|
|
785
793
|
},
|
|
786
794
|
gridArea: {
|
|
787
795
|
type: "string",
|
|
@@ -821,12 +829,12 @@ const $ = {
|
|
|
821
829
|
alignSelf: {
|
|
822
830
|
type: "enum",
|
|
823
831
|
className: "bd-as",
|
|
824
|
-
values:
|
|
832
|
+
values: No
|
|
825
833
|
},
|
|
826
834
|
justifySelf: {
|
|
827
835
|
type: "enum",
|
|
828
836
|
className: "bd-js",
|
|
829
|
-
values:
|
|
837
|
+
values: wo
|
|
830
838
|
}
|
|
831
839
|
}, F = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9", "-10", "-11", "-12"], M = {
|
|
832
840
|
m: {
|
|
@@ -871,79 +879,79 @@ const $ = {
|
|
|
871
879
|
className: "bd-ml",
|
|
872
880
|
customProperties: ["--ml"]
|
|
873
881
|
}
|
|
874
|
-
},
|
|
882
|
+
}, Po = ["left", "center", "right"], ko = {
|
|
875
883
|
align: {
|
|
876
884
|
type: "enum",
|
|
877
|
-
values:
|
|
885
|
+
values: Po,
|
|
878
886
|
className: "bd-ta"
|
|
879
887
|
}
|
|
880
|
-
},
|
|
888
|
+
}, Io = ["wrap", "nowrap", "pretty", "balance"], So = {
|
|
881
889
|
wrap: {
|
|
882
890
|
type: "enum",
|
|
883
891
|
className: "bd-tw",
|
|
884
|
-
values:
|
|
892
|
+
values: Io
|
|
885
893
|
}
|
|
886
|
-
},
|
|
894
|
+
}, Eo = ["light", "regular", "medium", "semibold", "bold"], Fe = {
|
|
887
895
|
weight: {
|
|
888
896
|
type: "enum",
|
|
889
|
-
values:
|
|
897
|
+
values: Eo,
|
|
890
898
|
className: "bd-weight"
|
|
891
899
|
}
|
|
892
|
-
},
|
|
900
|
+
}, _o = {
|
|
893
901
|
truncate: {
|
|
894
902
|
type: "boolean",
|
|
895
903
|
className: "bd-truncate"
|
|
896
904
|
}
|
|
897
|
-
},
|
|
905
|
+
}, To = ["normal", "start", "end", "both"], Oo = {
|
|
898
906
|
trim: {
|
|
899
907
|
type: "enum",
|
|
900
908
|
className: "bd-lt",
|
|
901
|
-
values:
|
|
909
|
+
values: To,
|
|
902
910
|
default: "normal"
|
|
903
911
|
}
|
|
904
|
-
},
|
|
912
|
+
}, Ao = ["none", "s", "m", "l", "full"], Go = {
|
|
905
913
|
radius: {
|
|
906
914
|
type: "enum | string",
|
|
907
|
-
values:
|
|
915
|
+
values: Ao,
|
|
908
916
|
default: void 0,
|
|
909
917
|
className: "bd-radius",
|
|
910
918
|
customProperties: ["--radius"]
|
|
911
919
|
}
|
|
912
|
-
},
|
|
920
|
+
}, ce = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], De = {
|
|
913
921
|
gap: {
|
|
914
922
|
type: "enum | string",
|
|
915
923
|
className: "bd-gap",
|
|
916
924
|
customProperties: ["--gap"],
|
|
917
|
-
values:
|
|
925
|
+
values: ce
|
|
918
926
|
},
|
|
919
927
|
gapX: {
|
|
920
928
|
type: "enum | string",
|
|
921
929
|
className: "bd-cg",
|
|
922
930
|
customProperties: ["--col-gap"],
|
|
923
|
-
values:
|
|
931
|
+
values: ce
|
|
924
932
|
},
|
|
925
933
|
gapY: {
|
|
926
934
|
type: "enum | string",
|
|
927
935
|
className: "bd-rg",
|
|
928
936
|
customProperties: ["--row-gap"],
|
|
929
|
-
values:
|
|
937
|
+
values: ce
|
|
930
938
|
}
|
|
931
|
-
},
|
|
932
|
-
as: { type: "enum", values:
|
|
939
|
+
}, Bo = ["span", "div", "label", "p"], Fo = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"], Do = {
|
|
940
|
+
as: { type: "enum", values: Bo, default: "span" },
|
|
933
941
|
...$,
|
|
934
942
|
size: {
|
|
935
943
|
type: "enum | string",
|
|
936
944
|
className: "bd-size",
|
|
937
|
-
values:
|
|
945
|
+
values: Fo,
|
|
938
946
|
customProperties: ["--size"]
|
|
939
947
|
},
|
|
940
948
|
...$,
|
|
941
949
|
...M,
|
|
942
|
-
...
|
|
943
|
-
...
|
|
950
|
+
...ko,
|
|
951
|
+
...So,
|
|
944
952
|
...Fe,
|
|
945
|
-
...
|
|
946
|
-
...
|
|
953
|
+
..._o,
|
|
954
|
+
...Oo,
|
|
947
955
|
...bo
|
|
948
956
|
}, be = i.forwardRef((e, t) => {
|
|
949
957
|
const {
|
|
@@ -952,56 +960,56 @@ const $ = {
|
|
|
952
960
|
asChild: s,
|
|
953
961
|
as: n = "span",
|
|
954
962
|
...c
|
|
955
|
-
} = P(e,
|
|
963
|
+
} = P(e, Do);
|
|
956
964
|
return /* @__PURE__ */ u(Z, { ...c, ref: t, className: x("bd-Text", r), children: s ? o : /* @__PURE__ */ u(n, { children: o }) });
|
|
957
965
|
});
|
|
958
966
|
be.displayName = "Text";
|
|
959
|
-
const
|
|
960
|
-
as: { type: "enum", values:
|
|
967
|
+
const Mo = (e) => e === "between" ? "space-between" : e, $o = ["div", "span"], Vo = ["none", "inline-flex", "flex"], zo = ["row", "column", "row-reverse", "column-reverse"], Lo = ["start", "center", "end", "baseline", "stretch"], Uo = ["start", "center", "end", "between"], jo = ["nowrap", "wrap", "wrap-reverse"], Me = {
|
|
968
|
+
as: { type: "enum", values: $o, default: "div" },
|
|
961
969
|
...$,
|
|
962
970
|
display: {
|
|
963
971
|
type: "enum",
|
|
964
972
|
className: "bd-display",
|
|
965
|
-
values:
|
|
973
|
+
values: Vo
|
|
966
974
|
},
|
|
967
975
|
direction: {
|
|
968
976
|
type: "enum",
|
|
969
977
|
className: "bd-fd",
|
|
970
|
-
values:
|
|
978
|
+
values: zo
|
|
971
979
|
},
|
|
972
980
|
align: {
|
|
973
981
|
type: "enum",
|
|
974
982
|
className: "bd-ai",
|
|
975
|
-
values:
|
|
983
|
+
values: Lo
|
|
976
984
|
},
|
|
977
985
|
justify: {
|
|
978
986
|
type: "enum",
|
|
979
987
|
className: "bd-jc",
|
|
980
|
-
values:
|
|
981
|
-
parseValue:
|
|
988
|
+
values: Uo,
|
|
989
|
+
parseValue: Mo
|
|
982
990
|
},
|
|
983
991
|
wrap: {
|
|
984
992
|
type: "enum",
|
|
985
993
|
className: "bd-fw",
|
|
986
|
-
values:
|
|
994
|
+
values: jo
|
|
987
995
|
},
|
|
988
996
|
...De,
|
|
989
|
-
...
|
|
997
|
+
...xo,
|
|
990
998
|
...M
|
|
991
999
|
}, Y = i.forwardRef((e, t) => {
|
|
992
1000
|
const { className: o, asChild: r, as: s = "div", ...n } = P(e, Me);
|
|
993
1001
|
return /* @__PURE__ */ u(r ? Z : s, { ...n, ref: t, className: x("bd-Flex", o) });
|
|
994
1002
|
});
|
|
995
1003
|
Y.displayName = "Flex";
|
|
996
|
-
const
|
|
997
|
-
size: { type: "enum", className: "bd-size", values:
|
|
1004
|
+
const Ho = ["1", "2", "3"], qo = {
|
|
1005
|
+
size: { type: "enum", className: "bd-size", values: Ho, default: "2" },
|
|
998
1006
|
loading: { type: "boolean", default: !0 },
|
|
999
|
-
color: { type: "enum", className: "bd-color", values:
|
|
1007
|
+
color: { type: "enum", className: "bd-color", values: Q },
|
|
1000
1008
|
...M
|
|
1001
1009
|
}, $e = i.forwardRef((e, t) => {
|
|
1002
1010
|
const { className: o, children: r, loading: s, ...n } = P(
|
|
1003
1011
|
e,
|
|
1004
|
-
|
|
1012
|
+
qo,
|
|
1005
1013
|
ho
|
|
1006
1014
|
);
|
|
1007
1015
|
if (!s) return r;
|
|
@@ -1012,13 +1020,13 @@ const jo = ["1", "2", "3"], Ho = {
|
|
|
1012
1020
|
] });
|
|
1013
1021
|
});
|
|
1014
1022
|
$e.displayName = "Spinner";
|
|
1015
|
-
const
|
|
1023
|
+
const Ko = ["1", "2", "3", "4", "5"], Wo = [
|
|
1016
1024
|
"fill-primary",
|
|
1017
1025
|
"fill-secondary",
|
|
1018
1026
|
"outline-primary",
|
|
1019
1027
|
"outline-secondary",
|
|
1020
1028
|
"ghost"
|
|
1021
|
-
],
|
|
1029
|
+
], ae = {
|
|
1022
1030
|
...$,
|
|
1023
1031
|
/**
|
|
1024
1032
|
* @description 버튼의 높이 기준
|
|
@@ -1029,15 +1037,15 @@ const qo = ["1", "2", "3", "4", "5"], Ko = [
|
|
|
1029
1037
|
* 4="48px"
|
|
1030
1038
|
* 5="56px"
|
|
1031
1039
|
*/
|
|
1032
|
-
size: { type: "enum", className: "bd-size", values:
|
|
1033
|
-
variant: { type: "enum", className: "bd-variant", values:
|
|
1040
|
+
size: { type: "enum", className: "bd-size", values: Ko, default: "5" },
|
|
1041
|
+
variant: { type: "enum", className: "bd-variant", values: Wo, default: "fill-primary" },
|
|
1034
1042
|
...Be,
|
|
1035
1043
|
...M,
|
|
1036
1044
|
...De,
|
|
1037
|
-
...
|
|
1045
|
+
...Go,
|
|
1038
1046
|
...Fe,
|
|
1039
1047
|
loading: { type: "boolean", className: "bd-loading", default: !1 }
|
|
1040
|
-
},
|
|
1048
|
+
}, Xo = (e) => {
|
|
1041
1049
|
switch (e) {
|
|
1042
1050
|
case "1":
|
|
1043
1051
|
return "1";
|
|
@@ -1048,7 +1056,7 @@ const qo = ["1", "2", "3", "4", "5"], Ko = [
|
|
|
1048
1056
|
case "5":
|
|
1049
1057
|
return "3";
|
|
1050
1058
|
}
|
|
1051
|
-
},
|
|
1059
|
+
}, Yo = (e) => {
|
|
1052
1060
|
switch (e) {
|
|
1053
1061
|
case "fill-primary":
|
|
1054
1062
|
return;
|
|
@@ -1060,14 +1068,14 @@ const qo = ["1", "2", "3", "4", "5"], Ko = [
|
|
|
1060
1068
|
default:
|
|
1061
1069
|
return;
|
|
1062
1070
|
}
|
|
1063
|
-
},
|
|
1064
|
-
const { variant: o =
|
|
1071
|
+
}, Zo = i.forwardRef((e, t) => {
|
|
1072
|
+
const { variant: o = ae.variant.default, size: r = ae.size.default } = e, {
|
|
1065
1073
|
className: s,
|
|
1066
1074
|
children: n,
|
|
1067
1075
|
asChild: c,
|
|
1068
1076
|
disabled: a = e.loading,
|
|
1069
1077
|
...l
|
|
1070
|
-
} = P(e,
|
|
1078
|
+
} = P(e, ae);
|
|
1071
1079
|
return /* @__PURE__ */ u(
|
|
1072
1080
|
c ? Z : "button",
|
|
1073
1081
|
{
|
|
@@ -1083,15 +1091,15 @@ const qo = ["1", "2", "3", "4", "5"], Ko = [
|
|
|
1083
1091
|
/* @__PURE__ */ u(Y, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0", children: /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(
|
|
1084
1092
|
$e,
|
|
1085
1093
|
{
|
|
1086
|
-
size:
|
|
1087
|
-
color:
|
|
1094
|
+
size: Xo(r),
|
|
1095
|
+
color: Yo(o)
|
|
1088
1096
|
}
|
|
1089
1097
|
) }) })
|
|
1090
1098
|
] }) : n
|
|
1091
1099
|
}
|
|
1092
1100
|
);
|
|
1093
1101
|
});
|
|
1094
|
-
|
|
1102
|
+
Zo.displayName = "Button";
|
|
1095
1103
|
const Ve = i.forwardRef((e, t) => {
|
|
1096
1104
|
const { color: o = "currentColor", ...r } = e;
|
|
1097
1105
|
return /* @__PURE__ */ u(
|
|
@@ -1116,7 +1124,7 @@ const Ve = i.forwardRef((e, t) => {
|
|
|
1116
1124
|
)
|
|
1117
1125
|
}
|
|
1118
1126
|
);
|
|
1119
|
-
}),
|
|
1127
|
+
}), Jo = i.forwardRef((e, t) => {
|
|
1120
1128
|
const { color: o = "currentColor", ...r } = e;
|
|
1121
1129
|
return /* @__PURE__ */ u(
|
|
1122
1130
|
"svg",
|
|
@@ -1138,11 +1146,11 @@ const Ve = i.forwardRef((e, t) => {
|
|
|
1138
1146
|
)
|
|
1139
1147
|
}
|
|
1140
1148
|
);
|
|
1141
|
-
}),
|
|
1142
|
-
size: { type: "enum", className: "bd-size", values:
|
|
1143
|
-
variant: { type: "enum", className: "bd-variant", values:
|
|
1144
|
-
}, he = "Checkbox", [
|
|
1145
|
-
function
|
|
1149
|
+
}), Qo = ["1", "2", "3", "4"], es = ["classic", "circle", "outline"], ze = {
|
|
1150
|
+
size: { type: "enum", className: "bd-size", values: Qo, default: "2" },
|
|
1151
|
+
variant: { type: "enum", className: "bd-variant", values: es, default: "classic" }
|
|
1152
|
+
}, he = "Checkbox", [ts, Le] = _(he), [os, ge] = ts(he);
|
|
1153
|
+
function ss(e) {
|
|
1146
1154
|
const {
|
|
1147
1155
|
__scopeCheckbox: t,
|
|
1148
1156
|
checked: o,
|
|
@@ -1178,11 +1186,11 @@ function os(e) {
|
|
|
1178
1186
|
setBubbleInput: y
|
|
1179
1187
|
};
|
|
1180
1188
|
return /* @__PURE__ */ u(
|
|
1181
|
-
|
|
1189
|
+
os,
|
|
1182
1190
|
{
|
|
1183
1191
|
scope: t,
|
|
1184
1192
|
...N,
|
|
1185
|
-
children:
|
|
1193
|
+
children: ns(p) ? p(N) : d
|
|
1186
1194
|
}
|
|
1187
1195
|
);
|
|
1188
1196
|
}
|
|
@@ -1250,7 +1258,7 @@ const He = i.forwardRef(
|
|
|
1250
1258
|
...p
|
|
1251
1259
|
} = e;
|
|
1252
1260
|
return /* @__PURE__ */ u(
|
|
1253
|
-
|
|
1261
|
+
ss,
|
|
1254
1262
|
{
|
|
1255
1263
|
__scopeCheckbox: o,
|
|
1256
1264
|
checked: s,
|
|
@@ -1294,7 +1302,7 @@ const He = i.forwardRef(
|
|
|
1294
1302
|
bubbleInput: p,
|
|
1295
1303
|
setBubbleInput: h,
|
|
1296
1304
|
hasConsumerStoppedPropagationRef: m
|
|
1297
|
-
} = ge(qe, e), g = E(o, h), v =
|
|
1305
|
+
} = ge(qe, e), g = E(o, h), v = pe(s), b = fe(r);
|
|
1298
1306
|
i.useEffect(() => {
|
|
1299
1307
|
const R = p;
|
|
1300
1308
|
if (!R) return;
|
|
@@ -1350,7 +1358,7 @@ const We = "CheckboxIndicator", ye = i.forwardRef((e, t) => {
|
|
|
1350
1358
|
) });
|
|
1351
1359
|
});
|
|
1352
1360
|
ye.displayName = We;
|
|
1353
|
-
function
|
|
1361
|
+
function ns(e) {
|
|
1354
1362
|
return typeof e == "function";
|
|
1355
1363
|
}
|
|
1356
1364
|
function O(e) {
|
|
@@ -1359,7 +1367,7 @@ function O(e) {
|
|
|
1359
1367
|
function Xe(e) {
|
|
1360
1368
|
return O(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
1361
1369
|
}
|
|
1362
|
-
const
|
|
1370
|
+
const rs = i.forwardRef((e, t) => {
|
|
1363
1371
|
const {
|
|
1364
1372
|
className: o,
|
|
1365
1373
|
checked: r,
|
|
@@ -1381,18 +1389,18 @@ const ns = i.forwardRef((e, t) => {
|
|
|
1381
1389
|
asChild: !1,
|
|
1382
1390
|
ref: t,
|
|
1383
1391
|
className: x("bd-reset", "bd-CheckboxRoot", o),
|
|
1384
|
-
children: /* @__PURE__ */ u(ye, { asChild: !0, className: "bd-CheckboxIndicator", children: a === "indeterminate" ? /* @__PURE__ */ u(
|
|
1392
|
+
children: /* @__PURE__ */ u(ye, { asChild: !0, className: "bd-CheckboxIndicator", children: a === "indeterminate" ? /* @__PURE__ */ u(Jo, {}) : /* @__PURE__ */ u(Ve, {}) })
|
|
1385
1393
|
}
|
|
1386
1394
|
);
|
|
1387
1395
|
});
|
|
1388
|
-
|
|
1396
|
+
rs.displayName = "Checkbox";
|
|
1389
1397
|
const K = {
|
|
1390
1398
|
...$,
|
|
1391
1399
|
...ze
|
|
1392
|
-
}, ve = "CheckboxGroup", [
|
|
1400
|
+
}, ve = "CheckboxGroup", [cs, Ye] = _(
|
|
1393
1401
|
ve,
|
|
1394
|
-
[
|
|
1395
|
-
), Ze =
|
|
1402
|
+
[me, Le]
|
|
1403
|
+
), Ze = me(), Je = Le(), [as, is] = cs(ve), Qe = i.forwardRef(
|
|
1396
1404
|
(e, t) => {
|
|
1397
1405
|
const {
|
|
1398
1406
|
__scopeCheckboxGroup: o,
|
|
@@ -1417,7 +1425,7 @@ const K = {
|
|
|
1417
1425
|
[g]
|
|
1418
1426
|
);
|
|
1419
1427
|
return /* @__PURE__ */ u(
|
|
1420
|
-
|
|
1428
|
+
as,
|
|
1421
1429
|
{
|
|
1422
1430
|
scope: o,
|
|
1423
1431
|
name: r,
|
|
@@ -1441,7 +1449,7 @@ const K = {
|
|
|
1441
1449
|
);
|
|
1442
1450
|
Qe.displayName = ve;
|
|
1443
1451
|
const et = "CheckboxGroupItem", tt = i.forwardRef((e, t) => {
|
|
1444
|
-
const { __scopeCheckboxGroup: o, disabled: r, ...s } = e, n =
|
|
1452
|
+
const { __scopeCheckboxGroup: o, disabled: r, ...s } = e, n = is(et, o), c = n.disabled || r, a = Ze(o), l = Je(o), d = i.useRef(null), f = E(t, d), p = n.value?.includes(s.value);
|
|
1445
1453
|
return /* @__PURE__ */ u(
|
|
1446
1454
|
Ae,
|
|
1447
1455
|
{
|
|
@@ -1468,14 +1476,14 @@ const et = "CheckboxGroupItem", tt = i.forwardRef((e, t) => {
|
|
|
1468
1476
|
);
|
|
1469
1477
|
});
|
|
1470
1478
|
tt.displayName = et;
|
|
1471
|
-
const
|
|
1479
|
+
const ls = "CheckboxGroupIndicator", ot = i.forwardRef((e, t) => {
|
|
1472
1480
|
const { __scopeCheckboxGroup: o, ...r } = e, s = Je(o);
|
|
1473
1481
|
return /* @__PURE__ */ u(ye, { ...s, ...r, ref: t });
|
|
1474
1482
|
});
|
|
1475
|
-
ot.displayName =
|
|
1476
|
-
const U = "CheckboxGroup", [
|
|
1483
|
+
ot.displayName = ls;
|
|
1484
|
+
const U = "CheckboxGroup", [us] = _(U, [
|
|
1477
1485
|
Ye
|
|
1478
|
-
]), st = Ye(), [
|
|
1486
|
+
]), st = Ye(), [ds, nt] = us(U), rt = i.forwardRef(
|
|
1479
1487
|
(e, t) => {
|
|
1480
1488
|
const {
|
|
1481
1489
|
size: o = K.size.default,
|
|
@@ -1485,7 +1493,7 @@ const U = "CheckboxGroup", [ls] = _(U, [
|
|
|
1485
1493
|
s,
|
|
1486
1494
|
K
|
|
1487
1495
|
), l = st(n);
|
|
1488
|
-
return /* @__PURE__ */ u(
|
|
1496
|
+
return /* @__PURE__ */ u(ds, { scope: n, size: o, variant: r, children: /* @__PURE__ */ u(
|
|
1489
1497
|
Qe,
|
|
1490
1498
|
{
|
|
1491
1499
|
...l,
|
|
@@ -1509,7 +1517,7 @@ const ct = i.forwardRef(
|
|
|
1509
1517
|
style: n,
|
|
1510
1518
|
children: [
|
|
1511
1519
|
/* @__PURE__ */ u(
|
|
1512
|
-
|
|
1520
|
+
le,
|
|
1513
1521
|
{
|
|
1514
1522
|
__scopeCheckboxGroup: o,
|
|
1515
1523
|
...c,
|
|
@@ -1520,7 +1528,7 @@ const ct = i.forwardRef(
|
|
|
1520
1528
|
]
|
|
1521
1529
|
}
|
|
1522
1530
|
) : /* @__PURE__ */ u(
|
|
1523
|
-
|
|
1531
|
+
le,
|
|
1524
1532
|
{
|
|
1525
1533
|
__scopeCheckboxGroup: o,
|
|
1526
1534
|
...c,
|
|
@@ -1532,7 +1540,7 @@ const ct = i.forwardRef(
|
|
|
1532
1540
|
}
|
|
1533
1541
|
);
|
|
1534
1542
|
ct.displayName = `${U}.Item`;
|
|
1535
|
-
const
|
|
1543
|
+
const le = i.forwardRef(({ __scopeCheckboxGroup: e, ...t }, o) => {
|
|
1536
1544
|
const r = nt("CheckboxGroupItemCheckbox", e), s = st(e), { className: n } = P({ ...t, ...r }, K);
|
|
1537
1545
|
return /* @__PURE__ */ u(
|
|
1538
1546
|
tt,
|
|
@@ -1550,14 +1558,14 @@ const ie = i.forwardRef(({ __scopeCheckboxGroup: e, ...t }, o) => {
|
|
|
1550
1558
|
}
|
|
1551
1559
|
);
|
|
1552
1560
|
});
|
|
1553
|
-
|
|
1554
|
-
const
|
|
1561
|
+
le.displayName = `${U}.ItemCheckbox`;
|
|
1562
|
+
const Hs = {
|
|
1555
1563
|
Root: rt,
|
|
1556
1564
|
Item: ct
|
|
1557
|
-
},
|
|
1558
|
-
size: { type: "enum", className: "bd-size", values:
|
|
1559
|
-
variant: { type: "enum", className: "bd-variant", values:
|
|
1560
|
-
}, Ce = "Radio", [
|
|
1565
|
+
}, ps = ["1", "2", "3", "4"], fs = ["classic", "outline"], ms = {
|
|
1566
|
+
size: { type: "enum", className: "bd-size", values: ps, default: "2" },
|
|
1567
|
+
variant: { type: "enum", className: "bd-variant", values: fs, default: "classic" }
|
|
1568
|
+
}, Ce = "Radio", [bs, at] = _(Ce), [hs, gs] = bs(Ce), Re = i.forwardRef(
|
|
1561
1569
|
(e, t) => {
|
|
1562
1570
|
const {
|
|
1563
1571
|
__scopeRadio: o,
|
|
@@ -1570,7 +1578,7 @@ const js = {
|
|
|
1570
1578
|
form: d,
|
|
1571
1579
|
...f
|
|
1572
1580
|
} = e, [p, h] = i.useState(null), m = E(t, h), g = i.useRef(!1), v = p ? d || !!p.closest("form") : !0;
|
|
1573
|
-
return /* @__PURE__ */ A(
|
|
1581
|
+
return /* @__PURE__ */ A(hs, { scope: o, checked: s, disabled: c, children: [
|
|
1574
1582
|
/* @__PURE__ */ u(
|
|
1575
1583
|
k.button,
|
|
1576
1584
|
{
|
|
@@ -1608,7 +1616,7 @@ const js = {
|
|
|
1608
1616
|
Re.displayName = Ce;
|
|
1609
1617
|
const it = "RadioIndicator", lt = i.forwardRef(
|
|
1610
1618
|
(e, t) => {
|
|
1611
|
-
const { __scopeRadio: o, forceMount: r, ...s } = e, n =
|
|
1619
|
+
const { __scopeRadio: o, forceMount: r, ...s } = e, n = gs(it, o);
|
|
1612
1620
|
return /* @__PURE__ */ u(Ee, { remain: r || n.checked, children: /* @__PURE__ */ u(
|
|
1613
1621
|
k.span,
|
|
1614
1622
|
{
|
|
@@ -1621,9 +1629,9 @@ const it = "RadioIndicator", lt = i.forwardRef(
|
|
|
1621
1629
|
}
|
|
1622
1630
|
);
|
|
1623
1631
|
lt.displayName = it;
|
|
1624
|
-
const
|
|
1632
|
+
const ys = "RadioBubbleInput", ut = i.forwardRef(
|
|
1625
1633
|
({ control: e, checked: t, bubbles: o = !0, ...r }, s) => {
|
|
1626
|
-
const n = i.useRef(null), c = E(n, s), a =
|
|
1634
|
+
const n = i.useRef(null), c = E(n, s), a = pe(t), l = fe(e);
|
|
1627
1635
|
return i.useEffect(() => {
|
|
1628
1636
|
const d = n.current;
|
|
1629
1637
|
if (!d) return;
|
|
@@ -1656,18 +1664,18 @@ const gs = "RadioBubbleInput", ut = i.forwardRef(
|
|
|
1656
1664
|
);
|
|
1657
1665
|
}
|
|
1658
1666
|
);
|
|
1659
|
-
ut.displayName =
|
|
1667
|
+
ut.displayName = ys;
|
|
1660
1668
|
function dt(e) {
|
|
1661
1669
|
return e ? "checked" : "unchecked";
|
|
1662
1670
|
}
|
|
1663
|
-
const
|
|
1671
|
+
const vs = i.forwardRef((e, t) => {
|
|
1664
1672
|
const {
|
|
1665
1673
|
className: o,
|
|
1666
1674
|
checked: r,
|
|
1667
1675
|
defaultChecked: s = !1,
|
|
1668
1676
|
onCheck: n,
|
|
1669
1677
|
...c
|
|
1670
|
-
} = P(e,
|
|
1678
|
+
} = P(e, ms), [a, l] = D({
|
|
1671
1679
|
prop: r,
|
|
1672
1680
|
defaultProp: s,
|
|
1673
1681
|
onChange: n
|
|
@@ -1684,11 +1692,11 @@ const ys = i.forwardRef((e, t) => {
|
|
|
1684
1692
|
}
|
|
1685
1693
|
);
|
|
1686
1694
|
});
|
|
1687
|
-
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1695
|
+
vs.displayName = "Radio";
|
|
1696
|
+
const Cs = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ee = "RadioGroup", [Rs, pt] = _(
|
|
1697
|
+
ee,
|
|
1690
1698
|
[at]
|
|
1691
|
-
), ft =
|
|
1699
|
+
), ft = me(), mt = at(), [Ns, ws] = Rs(ee), bt = i.forwardRef(
|
|
1692
1700
|
(e, t) => {
|
|
1693
1701
|
const {
|
|
1694
1702
|
__scopeRadioGroup: o,
|
|
@@ -1705,10 +1713,10 @@ const vs = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Q = "RadioGroup"
|
|
|
1705
1713
|
prop: n,
|
|
1706
1714
|
defaultProp: s ?? null,
|
|
1707
1715
|
onChange: f,
|
|
1708
|
-
caller:
|
|
1716
|
+
caller: ee
|
|
1709
1717
|
});
|
|
1710
1718
|
return /* @__PURE__ */ u(
|
|
1711
|
-
|
|
1719
|
+
Ns,
|
|
1712
1720
|
{
|
|
1713
1721
|
scope: o,
|
|
1714
1722
|
name: r,
|
|
@@ -1731,13 +1739,13 @@ const vs = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Q = "RadioGroup"
|
|
|
1731
1739
|
);
|
|
1732
1740
|
}
|
|
1733
1741
|
);
|
|
1734
|
-
bt.displayName =
|
|
1742
|
+
bt.displayName = ee;
|
|
1735
1743
|
const ht = "RadioGroupItem", gt = i.forwardRef(
|
|
1736
1744
|
(e, t) => {
|
|
1737
|
-
const { __scopeRadioGroup: o, disabled: r, ...s } = e, n =
|
|
1745
|
+
const { __scopeRadioGroup: o, disabled: r, ...s } = e, n = ws(ht, o), c = n.disabled || r, a = ft(o), l = mt(o), d = i.useRef(null), f = E(t, d), p = n.value === s.value, h = i.useRef(!1);
|
|
1738
1746
|
return i.useEffect(() => {
|
|
1739
1747
|
const m = (v) => {
|
|
1740
|
-
|
|
1748
|
+
Cs.includes(v.key) && (h.current = !0);
|
|
1741
1749
|
}, g = () => h.current = !1;
|
|
1742
1750
|
return document.addEventListener("keydown", m), document.addEventListener("keyup", g), () => {
|
|
1743
1751
|
document.removeEventListener("keydown", m), document.removeEventListener("keyup", g);
|
|
@@ -1773,17 +1781,17 @@ const ht = "RadioGroupItem", gt = i.forwardRef(
|
|
|
1773
1781
|
}
|
|
1774
1782
|
);
|
|
1775
1783
|
gt.displayName = ht;
|
|
1776
|
-
const
|
|
1784
|
+
const xs = "RadioGroupBaseIndicator", Ps = i.forwardRef((e, t) => {
|
|
1777
1785
|
const { __scopeRadioGroup: o, ...r } = e, s = mt(o);
|
|
1778
1786
|
return /* @__PURE__ */ u(lt, { ...s, ...r, ref: t });
|
|
1779
1787
|
});
|
|
1780
|
-
|
|
1781
|
-
const
|
|
1788
|
+
Ps.displayName = xs;
|
|
1789
|
+
const ks = ["1", "2", "3"], Is = ["classic", "outline"], W = {
|
|
1782
1790
|
...$,
|
|
1783
|
-
size: { type: "enum", className: "bd-size", values:
|
|
1784
|
-
variant: { type: "enum", className: "bd-variant", values:
|
|
1791
|
+
size: { type: "enum", className: "bd-size", values: ks, default: "2" },
|
|
1792
|
+
variant: { type: "enum", className: "bd-variant", values: Is, default: "classic" },
|
|
1785
1793
|
...M
|
|
1786
|
-
}, j = "RadioGroup", [
|
|
1794
|
+
}, j = "RadioGroup", [Ss] = _(j, [pt]), yt = pt(), [Es, vt] = Ss(j), Ct = i.forwardRef(
|
|
1787
1795
|
({
|
|
1788
1796
|
size: e = W.size.default,
|
|
1789
1797
|
variant: t = W.variant.default,
|
|
@@ -1793,7 +1801,7 @@ const Ps = ["1", "2", "3"], ks = ["classic", "outline"], W = {
|
|
|
1793
1801
|
o,
|
|
1794
1802
|
W
|
|
1795
1803
|
), a = yt(s);
|
|
1796
|
-
return /* @__PURE__ */ u(
|
|
1804
|
+
return /* @__PURE__ */ u(Es, { scope: s, size: e, variant: t, children: /* @__PURE__ */ u(
|
|
1797
1805
|
bt,
|
|
1798
1806
|
{
|
|
1799
1807
|
...a,
|
|
@@ -1817,7 +1825,7 @@ const Rt = i.forwardRef(
|
|
|
1817
1825
|
style: n,
|
|
1818
1826
|
children: [
|
|
1819
1827
|
/* @__PURE__ */ u(
|
|
1820
|
-
|
|
1828
|
+
ue,
|
|
1821
1829
|
{
|
|
1822
1830
|
__scopeRadioGroup: o,
|
|
1823
1831
|
...c,
|
|
@@ -1828,7 +1836,7 @@ const Rt = i.forwardRef(
|
|
|
1828
1836
|
]
|
|
1829
1837
|
}
|
|
1830
1838
|
) : /* @__PURE__ */ u(
|
|
1831
|
-
|
|
1839
|
+
ue,
|
|
1832
1840
|
{
|
|
1833
1841
|
__scopeRadioGroup: o,
|
|
1834
1842
|
...c,
|
|
@@ -1840,7 +1848,7 @@ const Rt = i.forwardRef(
|
|
|
1840
1848
|
}
|
|
1841
1849
|
);
|
|
1842
1850
|
Rt.displayName = `${j}.Item`;
|
|
1843
|
-
const
|
|
1851
|
+
const ue = i.forwardRef(({ __scopeRadioGroup: e, ...t }, o) => {
|
|
1844
1852
|
const r = vt("RadioGroupItemRadio", e), s = yt(e), { className: n } = P({ ...t, ...r }, W);
|
|
1845
1853
|
return /* @__PURE__ */ u(
|
|
1846
1854
|
gt,
|
|
@@ -1853,11 +1861,11 @@ const le = i.forwardRef(({ __scopeRadioGroup: e, ...t }, o) => {
|
|
|
1853
1861
|
}
|
|
1854
1862
|
);
|
|
1855
1863
|
});
|
|
1856
|
-
|
|
1857
|
-
const
|
|
1864
|
+
ue.displayName = `${j}.ItemRadio`;
|
|
1865
|
+
const qs = {
|
|
1858
1866
|
Root: Ct,
|
|
1859
1867
|
Item: Rt
|
|
1860
|
-
},
|
|
1868
|
+
}, te = "Switch", [_s] = _(te), [Ts, Os] = _s(te), Nt = i.forwardRef(
|
|
1861
1869
|
(e, t) => {
|
|
1862
1870
|
const {
|
|
1863
1871
|
__scopeSwitch: o,
|
|
@@ -1874,9 +1882,9 @@ const Hs = {
|
|
|
1874
1882
|
prop: s,
|
|
1875
1883
|
defaultProp: n ?? !1,
|
|
1876
1884
|
onChange: d,
|
|
1877
|
-
caller:
|
|
1885
|
+
caller: te
|
|
1878
1886
|
});
|
|
1879
|
-
return /* @__PURE__ */ A(
|
|
1887
|
+
return /* @__PURE__ */ A(Ts, { scope: o, checked: y, disabled: a, children: [
|
|
1880
1888
|
/* @__PURE__ */ u(
|
|
1881
1889
|
k.button,
|
|
1882
1890
|
{
|
|
@@ -1912,10 +1920,10 @@ const Hs = {
|
|
|
1912
1920
|
] });
|
|
1913
1921
|
}
|
|
1914
1922
|
);
|
|
1915
|
-
Nt.displayName =
|
|
1923
|
+
Nt.displayName = te;
|
|
1916
1924
|
const wt = "SwitchThumb", xt = i.forwardRef(
|
|
1917
1925
|
(e, t) => {
|
|
1918
|
-
const { __scopeSwitch: o, ...r } = e, s =
|
|
1926
|
+
const { __scopeSwitch: o, ...r } = e, s = Os(wt, o);
|
|
1919
1927
|
return /* @__PURE__ */ u(
|
|
1920
1928
|
k.span,
|
|
1921
1929
|
{
|
|
@@ -1928,9 +1936,9 @@ const wt = "SwitchThumb", xt = i.forwardRef(
|
|
|
1928
1936
|
}
|
|
1929
1937
|
);
|
|
1930
1938
|
xt.displayName = wt;
|
|
1931
|
-
const
|
|
1939
|
+
const As = "SwitchBubbleInput", Pt = i.forwardRef(
|
|
1932
1940
|
(e, t) => {
|
|
1933
|
-
const { checked: o, control: r, bubbles: s = !0, ...n } = e, c = i.useRef(null), a = E(c, t), l =
|
|
1941
|
+
const { checked: o, control: r, bubbles: s = !0, ...n } = e, c = i.useRef(null), a = E(c, t), l = pe(o), d = fe(r);
|
|
1934
1942
|
return i.useEffect(() => {
|
|
1935
1943
|
const f = c.current;
|
|
1936
1944
|
if (!f) return;
|
|
@@ -1963,15 +1971,15 @@ const Os = "SwitchBubbleInput", Pt = i.forwardRef(
|
|
|
1963
1971
|
);
|
|
1964
1972
|
}
|
|
1965
1973
|
);
|
|
1966
|
-
Pt.displayName =
|
|
1974
|
+
Pt.displayName = As;
|
|
1967
1975
|
function kt(e) {
|
|
1968
1976
|
return e ? "checked" : "unchecked";
|
|
1969
1977
|
}
|
|
1970
|
-
const
|
|
1971
|
-
size: { type: "enum", className: "bd-size", values:
|
|
1978
|
+
const Gs = ["1", "2", "3"], Bs = {
|
|
1979
|
+
size: { type: "enum", className: "bd-size", values: Gs, default: "2" },
|
|
1972
1980
|
...M
|
|
1973
|
-
},
|
|
1974
|
-
const { className: o, ...r } = P(e,
|
|
1981
|
+
}, Fs = i.forwardRef((e, t) => {
|
|
1982
|
+
const { className: o, ...r } = P(e, Bs);
|
|
1975
1983
|
return /* @__PURE__ */ u(
|
|
1976
1984
|
Nt,
|
|
1977
1985
|
{
|
|
@@ -1983,13 +1991,14 @@ const As = ["1", "2", "3"], Gs = {
|
|
|
1983
1991
|
}
|
|
1984
1992
|
);
|
|
1985
1993
|
});
|
|
1986
|
-
|
|
1987
|
-
const
|
|
1988
|
-
size: { type: "enum", className: "bd-size", values:
|
|
1989
|
-
variant: { type: "enum", className: "bd-variant", values:
|
|
1990
|
-
...M
|
|
1991
|
-
|
|
1992
|
-
|
|
1994
|
+
Fs.displayName = "Switch";
|
|
1995
|
+
const Ds = ["1", "2", "3", "4", "5"], Ms = ["classic", "underlined", "rounded"], $s = {
|
|
1996
|
+
size: { type: "enum", className: "bd-size", values: Ds, default: "2" },
|
|
1997
|
+
variant: { type: "enum", className: "bd-variant", values: Ms, default: "classic" },
|
|
1998
|
+
...M,
|
|
1999
|
+
...go
|
|
2000
|
+
}, Vs = ["left", "right"], zs = {
|
|
2001
|
+
side: { type: "enum", values: Vs },
|
|
1993
2002
|
gap: Me.gap,
|
|
1994
2003
|
px: q.px,
|
|
1995
2004
|
pl: q.pl,
|
|
@@ -1998,7 +2007,7 @@ const Fs = ["1", "2", "3", "4", "5"], Ds = ["classic", "underlined", "rounded"],
|
|
|
1998
2007
|
(e, t) => {
|
|
1999
2008
|
const o = i.useRef(null), { children: r, className: s, style: n, ...c } = P(
|
|
2000
2009
|
e,
|
|
2001
|
-
|
|
2010
|
+
$s
|
|
2002
2011
|
);
|
|
2003
2012
|
return /* @__PURE__ */ A(
|
|
2004
2013
|
"div",
|
|
@@ -2028,7 +2037,7 @@ const Fs = ["1", "2", "3", "4", "5"], Ds = ["classic", "underlined", "rounded"],
|
|
|
2028
2037
|
{
|
|
2029
2038
|
spellCheck: "false",
|
|
2030
2039
|
...c,
|
|
2031
|
-
ref:
|
|
2040
|
+
ref: de(o, t),
|
|
2032
2041
|
className: "bd-reset bd-TextFieldInput"
|
|
2033
2042
|
}
|
|
2034
2043
|
),
|
|
@@ -2041,7 +2050,7 @@ const Fs = ["1", "2", "3", "4", "5"], Ds = ["classic", "underlined", "rounded"],
|
|
|
2041
2050
|
It.displayName = "TextFieldRoot";
|
|
2042
2051
|
const St = i.forwardRef(
|
|
2043
2052
|
(e, t) => {
|
|
2044
|
-
const { className: o, side: r, ...s } = P(e,
|
|
2053
|
+
const { className: o, side: r, ...s } = P(e, zs);
|
|
2045
2054
|
return /* @__PURE__ */ u(
|
|
2046
2055
|
"div",
|
|
2047
2056
|
{
|
|
@@ -2054,18 +2063,18 @@ const St = i.forwardRef(
|
|
|
2054
2063
|
}
|
|
2055
2064
|
);
|
|
2056
2065
|
St.displayName = "TextFieldSlot";
|
|
2057
|
-
const
|
|
2066
|
+
const Ks = Object.assign(It, { Slot: St });
|
|
2058
2067
|
export {
|
|
2059
|
-
|
|
2068
|
+
Zo as Button,
|
|
2060
2069
|
Ve as CheckLineIcon,
|
|
2061
|
-
|
|
2062
|
-
|
|
2070
|
+
rs as Checkbox,
|
|
2071
|
+
Hs as CheckboxGroup,
|
|
2063
2072
|
Y as Flex,
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2073
|
+
Jo as IndeterminateLineIcon,
|
|
2074
|
+
vs as Radio,
|
|
2075
|
+
qs as RadioGroup,
|
|
2067
2076
|
$e as Spinner,
|
|
2068
|
-
|
|
2077
|
+
Fs as Switch,
|
|
2069
2078
|
be as Text,
|
|
2070
|
-
|
|
2079
|
+
Ks as TextField
|
|
2071
2080
|
};
|