@scbt-ecom/ui 0.20.0 → 0.21.1
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/{CustomLink-BZ2X3A56.js → CustomLink-BHI03NwX.js} +39 -39
- package/dist/CustomLink-BHI03NwX.js.map +1 -0
- package/dist/shared/ui/badge/Badge.d.ts +6 -0
- package/dist/shared/ui/badge/index.d.ts +1 -0
- package/dist/shared/ui/brandLogos/index.d.ts +1 -0
- package/dist/shared/ui/breadcrumbs/index.d.ts +1 -0
- package/dist/shared/ui/buttonIcon/index.d.ts +1 -0
- package/dist/shared/ui/{CustomLink.d.ts → customLink/CustomLink.d.ts} +1 -1
- package/dist/shared/ui/customLink/index.d.ts +1 -0
- package/dist/shared/ui/document/index.d.ts +1 -0
- package/dist/shared/ui/{FloatButton.d.ts → floatButton/FloatButton.d.ts} +1 -1
- package/dist/shared/ui/floatButton/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +17 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +28 -0
- package/dist/shared/ui/formElements/controlled/radio/index.d.ts +1 -0
- package/dist/shared/ui/formElements/radioControl/RadioControl.d.ts +3 -0
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +78 -0
- package/dist/shared/ui/formElements/uncontrolled/maskInput/MaskInput.d.ts +2 -3
- package/dist/shared/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +51 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/index.d.ts +2 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +36 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/index.d.ts +1 -0
- package/dist/shared/ui/heading/index.d.ts +1 -0
- package/dist/shared/ui/hint/index.d.ts +1 -0
- package/dist/shared/ui/index.d.ts +25 -25
- package/dist/shared/ui/{KeyboardShortcuts.d.ts → keyboardShortcuts/KeyboardShortcuts.d.ts} +4 -4
- package/dist/shared/ui/keyboardShortcuts/index.d.ts +1 -0
- package/dist/shared/ui/ligal/index.d.ts +1 -0
- package/dist/shared/ui/{Loader.d.ts → loader/Loader.d.ts} +5 -5
- package/dist/shared/ui/loader/index.d.ts +1 -0
- package/dist/shared/ui/modal/Modal.d.ts +7 -4
- package/dist/shared/ui/modal/ui/ModalHeader.d.ts +6 -8
- package/dist/shared/ui/phoneView/index.d.ts +1 -0
- package/dist/shared/ui/{Popover.d.ts → popover/Popover.d.ts} +7 -7
- package/dist/shared/ui/popover/index.d.ts +1 -0
- package/dist/shared/ui/{ProgressBar.d.ts → progressBar/ProgressBar.d.ts} +7 -7
- package/dist/shared/ui/progressBar/index.d.ts +1 -0
- package/dist/shared/ui/responsiveContainer/index.d.ts +1 -0
- package/dist/shared/ui/section/index.d.ts +1 -0
- package/dist/shared/ui/skeleton/index.d.ts +1 -0
- package/dist/shared/ui/tabSwitcher/TabsSwitcher.d.ts +9 -0
- package/dist/shared/ui/tabSwitcher/index.d.ts +2 -0
- package/dist/shared/ui/tabSwitcher/model/types.d.ts +23 -0
- package/dist/shared/ui/tabSwitcher/ui/TabContent.d.ts +10 -0
- package/dist/ui.js +4932 -4798
- package/dist/ui.js.map +1 -1
- package/dist/useDevice-L83kSsN7.js.map +1 -1
- package/dist/widget.js +31 -31
- package/dist/widget.js.map +1 -1
- package/dist/widgets/authProvider/model/types.d.ts +5 -10
- package/dist/widgets/authProvider/ui/ui/AuthWrapper.d.ts +5 -4
- package/dist/widgets/authProvider/ui/ui/Links.d.ts +6 -5
- package/dist/widgets/stepper/Stepper.d.ts +2 -1
- package/package.json +1 -1
- package/dist/CustomLink-BZ2X3A56.js.map +0 -1
- package/dist/shared/hooks/useDevice/index.d.ts +0 -1
- package/dist/shared/ui/Badge.d.ts +0 -6
- package/dist/shared/ui/TabsSwitcher.d.ts +0 -35
- /package/dist/shared/hooks/{useDevice/useDevice.d.ts → useDevice.d.ts} +0 -0
- /package/dist/shared/ui/{brandLogos.d.ts → brandLogos/BrandLogos.d.ts} +0 -0
- /package/dist/shared/ui/{Breadcrumbs.d.ts → breadcrumbs/Breadcrumbs.d.ts} +0 -0
- /package/dist/shared/ui/{ButtonIcon.d.ts → buttonIcon/ButtonIcon.d.ts} +0 -0
- /package/dist/shared/ui/{Document.d.ts → document/Document.d.ts} +0 -0
- /package/dist/shared/ui/{Heading.d.ts → heading/Heading.d.ts} +0 -0
- /package/dist/shared/ui/{Hint.d.ts → hint/Hint.d.ts} +0 -0
- /package/dist/shared/ui/{Ligal.d.ts → ligal/Ligal.d.ts} +0 -0
- /package/dist/shared/ui/{PhoneView.d.ts → phoneView/PhoneView.d.ts} +0 -0
- /package/dist/shared/ui/{ResponsiveContainer.d.ts → responsiveContainer/ResponsiveContainer.d.ts} +0 -0
- /package/dist/shared/ui/{Section.d.ts → section/Section.d.ts} +0 -0
- /package/dist/shared/ui/{Skeleton.d.ts → skeleton/Skeleton.d.ts} +0 -0
|
@@ -662,37 +662,7 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
662
662
|
] : l;
|
|
663
663
|
}, []);
|
|
664
664
|
return Mn(e, a, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
665
|
-
}, pc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx("section", { className: L("pb-16 desktop:pb-20", t), ...n, children: e }), hc = ({ children: e, offset: t = !0, className: n, ...r }) => /* @__PURE__ */ y.jsx("div", { className: L("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": t }, n), ...r, children: e }), Ko =
|
|
666
|
-
variants: {
|
|
667
|
-
position: {
|
|
668
|
-
absolute: "absolute",
|
|
669
|
-
static: "static",
|
|
670
|
-
fixed: "fixed"
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
defaultVariants: {
|
|
674
|
-
position: "static"
|
|
675
|
-
}
|
|
676
|
-
}), Xo = ze("border-2 border-solid block animate-spin rounded-full", {
|
|
677
|
-
variants: {
|
|
678
|
-
intent: {
|
|
679
|
-
primary: "border-white border-b-transparent",
|
|
680
|
-
secondary: "border-primary-default border-b-transparent"
|
|
681
|
-
},
|
|
682
|
-
size: {
|
|
683
|
-
sm: "size-5 border-2",
|
|
684
|
-
md: "size-8 border-2",
|
|
685
|
-
lg: "size-12 border-4"
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
defaultVariants: {
|
|
689
|
-
size: "md",
|
|
690
|
-
intent: "primary"
|
|
691
|
-
}
|
|
692
|
-
}), Go = ({ size: e = "md", classes: t, intent: n = "secondary", position: r = "static", text: o, ...i }) => /* @__PURE__ */ y.jsxs("div", { className: L(Ko({ position: r }), { "flex flex-col items-center gap-2": o }, t == null ? void 0 : t.wrapper), children: [
|
|
693
|
-
/* @__PURE__ */ y.jsx("span", { "data-testid": "loader", className: L(Xo({ size: e, intent: n }), t == null ? void 0 : t.loader), ...i }),
|
|
694
|
-
o && /* @__PURE__ */ y.jsx("p", { className: L("desk-body-regular-l text-color-dark", t == null ? void 0 : t.text), children: o })
|
|
695
|
-
] }), qo = (e) => {
|
|
665
|
+
}, pc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx("section", { className: L("pb-16 desktop:pb-20", t), ...n, children: e }), hc = ({ children: e, offset: t = !0, className: n, ...r }) => /* @__PURE__ */ y.jsx("div", { className: L("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": t }, n), ...r, children: e }), Ko = (e) => {
|
|
696
666
|
switch (e) {
|
|
697
667
|
case "ghost":
|
|
698
668
|
case "secondary":
|
|
@@ -703,7 +673,7 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
703
673
|
default:
|
|
704
674
|
return e;
|
|
705
675
|
}
|
|
706
|
-
},
|
|
676
|
+
}, Xo = ze(
|
|
707
677
|
"relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-max px-4 outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
708
678
|
{
|
|
709
679
|
variants: {
|
|
@@ -781,9 +751,9 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
781
751
|
ref: v,
|
|
782
752
|
type: o,
|
|
783
753
|
disabled: s || u,
|
|
784
|
-
className: L(
|
|
754
|
+
className: L(Xo({ intent: e, size: t, textFormat: f, isLoading: u, isFull: l }), n),
|
|
785
755
|
...p,
|
|
786
|
-
children: u ? /* @__PURE__ */ y.jsx(
|
|
756
|
+
children: u ? /* @__PURE__ */ y.jsx(Jo, { size: "sm", intent: Ko(e) }) : /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
787
757
|
i && /* @__PURE__ */ y.jsx("span", { className: "flex size-5 items-center justify-center", children: i }),
|
|
788
758
|
r,
|
|
789
759
|
a && /* @__PURE__ */ y.jsx("span", { className: "flex size-5 items-center justify-center", children: a })
|
|
@@ -800,16 +770,47 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, z
|
|
|
800
770
|
}
|
|
801
771
|
),
|
|
802
772
|
/* @__PURE__ */ y.jsx("p", { className: L("desk-body-regular-s text-color-tetriary", n == null ? void 0 : n.text), children: t })
|
|
803
|
-
] }), gc = ({ children: e, className: t }) => /* @__PURE__ */ y.jsx(
|
|
773
|
+
] }), gc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx(
|
|
804
774
|
"span",
|
|
805
775
|
{
|
|
806
776
|
className: L(
|
|
807
777
|
"desk-body-regular-m flex min-h-6 min-w-6 items-center justify-center text-nowrap rounded-full bg-color-primary-default px-2 py-[2px] text-color-white",
|
|
808
778
|
t
|
|
809
779
|
),
|
|
780
|
+
...n,
|
|
810
781
|
children: e
|
|
811
782
|
}
|
|
812
|
-
)
|
|
783
|
+
), Go = ze("", {
|
|
784
|
+
variants: {
|
|
785
|
+
position: {
|
|
786
|
+
absolute: "absolute",
|
|
787
|
+
static: "static",
|
|
788
|
+
fixed: "fixed"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
defaultVariants: {
|
|
792
|
+
position: "static"
|
|
793
|
+
}
|
|
794
|
+
}), qo = ze("border-2 border-solid block animate-spin rounded-full", {
|
|
795
|
+
variants: {
|
|
796
|
+
intent: {
|
|
797
|
+
primary: "border-white border-b-transparent",
|
|
798
|
+
secondary: "border-primary-default border-b-transparent"
|
|
799
|
+
},
|
|
800
|
+
size: {
|
|
801
|
+
sm: "size-5 border-2",
|
|
802
|
+
md: "size-8 border-2",
|
|
803
|
+
lg: "size-12 border-4"
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
defaultVariants: {
|
|
807
|
+
size: "md",
|
|
808
|
+
intent: "primary"
|
|
809
|
+
}
|
|
810
|
+
}), Jo = ({ size: e = "md", classes: t, intent: n = "secondary", position: r = "static", text: o, ...i }) => /* @__PURE__ */ y.jsxs("div", { className: L(Go({ position: r }), { "flex flex-col items-center gap-2": o }, t == null ? void 0 : t.wrapper), children: [
|
|
811
|
+
/* @__PURE__ */ y.jsx("span", { "data-testid": "loader", className: L(qo({ size: e, intent: n }), t == null ? void 0 : t.loader), ...i }),
|
|
812
|
+
o && /* @__PURE__ */ y.jsx("p", { className: L("desk-body-regular-l text-color-dark", t == null ? void 0 : t.text), children: o })
|
|
813
|
+
] });
|
|
813
814
|
function Qe(e, t = []) {
|
|
814
815
|
let n = [];
|
|
815
816
|
function r(i, a) {
|
|
@@ -4379,7 +4380,6 @@ const Ec = ({
|
|
|
4379
4380
|
h2: "mob-headline-bold-s desktop:desk-headline-bold-m",
|
|
4380
4381
|
h3: "mob-title-bold-l desktop:desk-title-bold-l",
|
|
4381
4382
|
h4: "mob-title-bold-m desktop:desk-title-bold-s"
|
|
4382
|
-
// # add h5 and h6 if need
|
|
4383
4383
|
}
|
|
4384
4384
|
},
|
|
4385
4385
|
defaultVariants: {
|
|
@@ -4469,7 +4469,7 @@ export {
|
|
|
4469
4469
|
de as I,
|
|
4470
4470
|
yt as J,
|
|
4471
4471
|
Ma as K,
|
|
4472
|
-
|
|
4472
|
+
Jo as L,
|
|
4473
4473
|
La as M,
|
|
4474
4474
|
Fa as N,
|
|
4475
4475
|
Ra as O,
|
|
@@ -4504,4 +4504,4 @@ export {
|
|
|
4504
4504
|
pe as y,
|
|
4505
4505
|
Da as z
|
|
4506
4506
|
};
|
|
4507
|
-
//# sourceMappingURL=CustomLink-
|
|
4507
|
+
//# sourceMappingURL=CustomLink-BHI03NwX.js.map
|