@scbt-ecom/ui 0.38.1 → 0.38.2
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-BQOhJbbq.js → CustomLink-Cqhmw5ZU.js} +36 -36
- package/dist/CustomLink-Cqhmw5ZU.js.map +1 -0
- package/dist/shared/ui/floatButton/FloatButton.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/index.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +1 -1
- package/dist/ui.js +3 -3
- package/dist/ui.js.map +1 -1
- package/dist/widget.js +1 -1
- package/package.json +2 -1
- package/dist/CustomLink-BQOhJbbq.js.map +0 -1
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
|
@@ -669,7 +669,37 @@ const pc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx("secti
|
|
|
669
669
|
default:
|
|
670
670
|
return e;
|
|
671
671
|
}
|
|
672
|
-
}, Xo = ze(
|
|
672
|
+
}, Xo = ze("", {
|
|
673
|
+
variants: {
|
|
674
|
+
position: {
|
|
675
|
+
absolute: "absolute",
|
|
676
|
+
static: "static",
|
|
677
|
+
fixed: "fixed"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
defaultVariants: {
|
|
681
|
+
position: "static"
|
|
682
|
+
}
|
|
683
|
+
}), Go = ze("border-2 border-solid block animate-spin rounded-full", {
|
|
684
|
+
variants: {
|
|
685
|
+
intent: {
|
|
686
|
+
primary: "border-white border-b-transparent",
|
|
687
|
+
secondary: "border-primary-default border-b-transparent"
|
|
688
|
+
},
|
|
689
|
+
size: {
|
|
690
|
+
sm: "size-5 border-2",
|
|
691
|
+
md: "size-8 border-2",
|
|
692
|
+
lg: "size-12 border-4"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
defaultVariants: {
|
|
696
|
+
size: "md",
|
|
697
|
+
intent: "primary"
|
|
698
|
+
}
|
|
699
|
+
}), qo = ({ size: e = "md", classes: t, intent: n = "secondary", position: r = "static", text: o, ...i }) => /* @__PURE__ */ y.jsxs("div", { className: L(Xo({ position: r }), { "flex flex-col items-center gap-2": o }, t == null ? void 0 : t.wrapper), children: [
|
|
700
|
+
/* @__PURE__ */ y.jsx("span", { "data-testid": "loader", className: L(Go({ size: e, intent: n }), t == null ? void 0 : t.loader), ...i }),
|
|
701
|
+
o && /* @__PURE__ */ y.jsx("p", { className: L("desk-body-regular-l text-color-dark", t == null ? void 0 : t.text), children: o })
|
|
702
|
+
] }), Jo = ze(
|
|
673
703
|
"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",
|
|
674
704
|
{
|
|
675
705
|
variants: {
|
|
@@ -747,9 +777,9 @@ const pc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx("secti
|
|
|
747
777
|
ref: m,
|
|
748
778
|
type: o,
|
|
749
779
|
disabled: s || u,
|
|
750
|
-
className: L(
|
|
780
|
+
className: L(Jo({ intent: e, size: t, textFormat: f, isLoading: u, isFull: l }), n),
|
|
751
781
|
...p,
|
|
752
|
-
children: u ? /* @__PURE__ */ y.jsx(
|
|
782
|
+
children: u ? /* @__PURE__ */ y.jsx(qo, { size: "sm", intent: Ko(e) }) : /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
753
783
|
i && /* @__PURE__ */ y.jsx("span", { className: "flex size-5 items-center justify-center", children: i }),
|
|
754
784
|
r,
|
|
755
785
|
a && /* @__PURE__ */ y.jsx("span", { className: "flex size-5 items-center justify-center", children: a })
|
|
@@ -776,37 +806,7 @@ const pc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx("secti
|
|
|
776
806
|
...n,
|
|
777
807
|
children: e
|
|
778
808
|
}
|
|
779
|
-
)
|
|
780
|
-
variants: {
|
|
781
|
-
position: {
|
|
782
|
-
absolute: "absolute",
|
|
783
|
-
static: "static",
|
|
784
|
-
fixed: "fixed"
|
|
785
|
-
}
|
|
786
|
-
},
|
|
787
|
-
defaultVariants: {
|
|
788
|
-
position: "static"
|
|
789
|
-
}
|
|
790
|
-
}), qo = ze("border-2 border-solid block animate-spin rounded-full", {
|
|
791
|
-
variants: {
|
|
792
|
-
intent: {
|
|
793
|
-
primary: "border-white border-b-transparent",
|
|
794
|
-
secondary: "border-primary-default border-b-transparent"
|
|
795
|
-
},
|
|
796
|
-
size: {
|
|
797
|
-
sm: "size-5 border-2",
|
|
798
|
-
md: "size-8 border-2",
|
|
799
|
-
lg: "size-12 border-4"
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
defaultVariants: {
|
|
803
|
-
size: "md",
|
|
804
|
-
intent: "primary"
|
|
805
|
-
}
|
|
806
|
-
}), 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: [
|
|
807
|
-
/* @__PURE__ */ y.jsx("span", { "data-testid": "loader", className: L(qo({ size: e, intent: n }), t == null ? void 0 : t.loader), ...i }),
|
|
808
|
-
o && /* @__PURE__ */ y.jsx("p", { className: L("desk-body-regular-l text-color-dark", t == null ? void 0 : t.text), children: o })
|
|
809
|
-
] });
|
|
809
|
+
);
|
|
810
810
|
function Ze(e, t = []) {
|
|
811
811
|
let n = [];
|
|
812
812
|
function r(i, a) {
|
|
@@ -4455,7 +4455,7 @@ export {
|
|
|
4455
4455
|
de as I,
|
|
4456
4456
|
Ma as J,
|
|
4457
4457
|
La as K,
|
|
4458
|
-
|
|
4458
|
+
qo as L,
|
|
4459
4459
|
Fa as M,
|
|
4460
4460
|
Ra as N,
|
|
4461
4461
|
za as O,
|
|
@@ -4490,4 +4490,4 @@ export {
|
|
|
4490
4490
|
Da as y,
|
|
4491
4491
|
xc as z
|
|
4492
4492
|
};
|
|
4493
|
-
//# sourceMappingURL=CustomLink-
|
|
4493
|
+
//# sourceMappingURL=CustomLink-Cqhmw5ZU.js.map
|