@scbt-ecom/ui 0.31.4 → 0.31.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/widget.js +39 -32
- package/dist/widget.js.map +1 -1
- package/dist/widgets/interLinking/InterLinking.d.ts +3 -4
- package/dist/widgets/interLinking/model/helpers.d.ts +28 -18
- package/dist/widgets/interLinking/model/types.d.ts +3 -4
- package/dist/widgets/interLinking/ui/Column.d.ts +4 -4
- package/dist/widgets/interLinking/ui/ColumnGroup.d.ts +2 -4
- package/dist/widgets/interLinking/ui/LinksList.d.ts +2 -2
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -475,7 +475,7 @@ const yt = I(
|
|
|
475
475
|
}
|
|
476
476
|
)
|
|
477
477
|
] }) }) });
|
|
478
|
-
var
|
|
478
|
+
var Ge = {}, ae = {}, le = {}, O = {}, de = {}, ue = {};
|
|
479
479
|
(function(e) {
|
|
480
480
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
|
|
481
481
|
var t;
|
|
@@ -592,7 +592,7 @@ var X = (
|
|
|
592
592
|
}(fe)
|
|
593
593
|
);
|
|
594
594
|
x.DataNode = X;
|
|
595
|
-
var
|
|
595
|
+
var ze = (
|
|
596
596
|
/** @class */
|
|
597
597
|
function(e) {
|
|
598
598
|
T(t, e);
|
|
@@ -609,7 +609,7 @@ var Ge = (
|
|
|
609
609
|
}), t;
|
|
610
610
|
}(X)
|
|
611
611
|
);
|
|
612
|
-
x.Text =
|
|
612
|
+
x.Text = ze;
|
|
613
613
|
var Ve = (
|
|
614
614
|
/** @class */
|
|
615
615
|
function(e) {
|
|
@@ -803,7 +803,7 @@ function pe(e, t) {
|
|
|
803
803
|
t === void 0 && (t = !1);
|
|
804
804
|
var r;
|
|
805
805
|
if (Ze(e))
|
|
806
|
-
r = new
|
|
806
|
+
r = new ze(e.data);
|
|
807
807
|
else if (Ke(e))
|
|
808
808
|
r = new Ve(e.data);
|
|
809
809
|
else if (qe(e)) {
|
|
@@ -1008,7 +1008,7 @@ function nt(e, t, r) {
|
|
|
1008
1008
|
return r && (i = new B.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), i.next = n[0] || null, i.parent = t, n.unshift(i), n[1] && (n[1].prev = n[0])), n;
|
|
1009
1009
|
}
|
|
1010
1010
|
Object.defineProperty(le, "__esModule", { value: !0 });
|
|
1011
|
-
le.default =
|
|
1011
|
+
le.default = Gt;
|
|
1012
1012
|
var Lt = O, be = "html", ke = "head", F = "body", Ht = /<([a-zA-Z]+[0-9]?)/, Ee = /<head[^]*>/i, we = /<body[^]*>/i, V = function(e, t) {
|
|
1013
1013
|
throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
|
|
1014
1014
|
}, re = function(e, t) {
|
|
@@ -1021,20 +1021,20 @@ if (typeof je == "function") {
|
|
|
1021
1021
|
}, V = re;
|
|
1022
1022
|
}
|
|
1023
1023
|
if (typeof document == "object" && document.implementation) {
|
|
1024
|
-
var
|
|
1024
|
+
var G = document.implementation.createHTMLDocument();
|
|
1025
1025
|
V = function(e, t) {
|
|
1026
1026
|
if (t) {
|
|
1027
|
-
var r =
|
|
1028
|
-
return r && (r.innerHTML = e),
|
|
1027
|
+
var r = G.documentElement.querySelector(t);
|
|
1028
|
+
return r && (r.innerHTML = e), G;
|
|
1029
1029
|
}
|
|
1030
|
-
return
|
|
1030
|
+
return G.documentElement.innerHTML = e, G;
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
1033
|
-
var
|
|
1034
|
-
|
|
1035
|
-
return
|
|
1033
|
+
var z = typeof document == "object" && document.createElement("template"), ne;
|
|
1034
|
+
z && z.content && (ne = function(e) {
|
|
1035
|
+
return z.innerHTML = e, z.content.childNodes;
|
|
1036
1036
|
});
|
|
1037
|
-
function
|
|
1037
|
+
function Gt(e) {
|
|
1038
1038
|
var t, r;
|
|
1039
1039
|
e = (0, Lt.escapeSpecialCharacters)(e);
|
|
1040
1040
|
var n = e.match(Ht), i = n && n[1] ? n[1].toLowerCase() : "";
|
|
@@ -1065,12 +1065,12 @@ function zt(e) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
var
|
|
1068
|
+
var zt = v && v.__importDefault || function(e) {
|
|
1069
1069
|
return e && e.__esModule ? e : { default: e };
|
|
1070
1070
|
};
|
|
1071
1071
|
Object.defineProperty(ae, "__esModule", { value: !0 });
|
|
1072
1072
|
ae.default = Wt;
|
|
1073
|
-
var Vt =
|
|
1073
|
+
var Vt = zt(le), Ut = O, Xt = /<(![a-zA-Z\s]+)>/;
|
|
1074
1074
|
function Wt(e) {
|
|
1075
1075
|
if (typeof e != "string")
|
|
1076
1076
|
throw new TypeError("First argument must be a string");
|
|
@@ -2297,8 +2297,8 @@ function Lr(e) {
|
|
|
2297
2297
|
throw new TypeError("First argument must be a string");
|
|
2298
2298
|
return u ? (0, i.default)((0, r.default)(u, (h == null ? void 0 : h.htmlparser2) || f), h) : [];
|
|
2299
2299
|
}
|
|
2300
|
-
})(
|
|
2301
|
-
const Se = /* @__PURE__ */ gt(
|
|
2300
|
+
})(Ge);
|
|
2301
|
+
const Se = /* @__PURE__ */ gt(Ge), Hr = Se.default || Se, Br = ({ classes: e, index: t, variant: r, title: n, description: i }) => {
|
|
2302
2302
|
const a = r === "withTitleAndDescription" && n;
|
|
2303
2303
|
return /* @__PURE__ */ o.jsxs(
|
|
2304
2304
|
"div",
|
|
@@ -2353,7 +2353,7 @@ const Se = /* @__PURE__ */ gt(ze), Hr = Se.default || Se, Br = ({ classes: e, in
|
|
|
2353
2353
|
defaultVariants: {
|
|
2354
2354
|
intent: "twoItems"
|
|
2355
2355
|
}
|
|
2356
|
-
}),
|
|
2356
|
+
}), Gr = I("", {
|
|
2357
2357
|
variants: {
|
|
2358
2358
|
intent: {
|
|
2359
2359
|
twoItems: "",
|
|
@@ -2385,7 +2385,7 @@ const Se = /* @__PURE__ */ gt(ze), Hr = Se.default || Se, Br = ({ classes: e, in
|
|
|
2385
2385
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
2386
2386
|
}
|
|
2387
2387
|
]
|
|
2388
|
-
}),
|
|
2388
|
+
}), zr = I("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
2389
2389
|
variants: {
|
|
2390
2390
|
intent: {
|
|
2391
2391
|
twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
|
|
@@ -2423,14 +2423,14 @@ const Se = /* @__PURE__ */ gt(ze), Hr = Se.default || Se, Br = ({ classes: e, in
|
|
|
2423
2423
|
]
|
|
2424
2424
|
}), Ur = ({ data: e, intent: t }) => {
|
|
2425
2425
|
const { title: r, description: n, popoverText: i } = e;
|
|
2426
|
-
return /* @__PURE__ */ o.jsx("li", { className: l(
|
|
2426
|
+
return /* @__PURE__ */ o.jsx("li", { className: l(zr({ intent: t })), children: /* @__PURE__ */ o.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
2427
2427
|
/* @__PURE__ */ o.jsxs("div", { className: l("mb-2 flex items-center gap-2"), children: [
|
|
2428
2428
|
/* @__PURE__ */ o.jsx("h4", { className: l("mob-title-bold-m text-color-dark"), children: r }),
|
|
2429
2429
|
i && /* @__PURE__ */ o.jsx(ct, { triggerElement: /* @__PURE__ */ o.jsx(j, { className: l("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i })
|
|
2430
2430
|
] }),
|
|
2431
2431
|
/* @__PURE__ */ o.jsx("p", { className: l("mob-body-regular-l text-color-secondary"), children: n })
|
|
2432
2432
|
] }) });
|
|
2433
|
-
}, ee = ({ intent: e, title: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: l(Fr({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), Xr = ({ textContent: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: l(
|
|
2433
|
+
}, ee = ({ intent: e, title: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: l(Fr({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), Xr = ({ textContent: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: l(Gr({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ o.jsx(Ur, { intent: t, data: n }, i)) }), un = ({
|
|
2434
2434
|
title: e,
|
|
2435
2435
|
buttonConfig: t,
|
|
2436
2436
|
intent: r = "twoItems",
|
|
@@ -2687,30 +2687,37 @@ const Se = /* @__PURE__ */ gt(ze), Hr = Se.default || Se, Br = ({ classes: e, in
|
|
|
2687
2687
|
}
|
|
2688
2688
|
)
|
|
2689
2689
|
] });
|
|
2690
|
-
}, Yr = ({
|
|
2690
|
+
}, Yr = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: l("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx(qr, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), Zr = I("grid gap-4 grid-cols-1", {
|
|
2691
2691
|
variants: {
|
|
2692
|
-
|
|
2692
|
+
variant: {
|
|
2693
2693
|
twoCols: "desktop:grid-cols-2",
|
|
2694
2694
|
threeCols: "desktop:grid-cols-3",
|
|
2695
2695
|
fourCols: "desktop:grid-cols-4"
|
|
2696
2696
|
}
|
|
2697
2697
|
},
|
|
2698
2698
|
defaultVariants: {
|
|
2699
|
-
|
|
2699
|
+
variant: "fourCols"
|
|
2700
2700
|
}
|
|
2701
|
-
}), pn = ({
|
|
2702
|
-
|
|
2703
|
-
|
|
2701
|
+
}), pn = ({
|
|
2702
|
+
columns: e,
|
|
2703
|
+
variant: t,
|
|
2704
|
+
headline: r,
|
|
2705
|
+
mobileAccordionProps: n,
|
|
2706
|
+
rootAccordionProps: i,
|
|
2707
|
+
classes: a
|
|
2708
|
+
}) => {
|
|
2709
|
+
var f;
|
|
2710
|
+
return /* @__PURE__ */ o.jsx("section", { id: "inter-linking", className: l("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root), children: /* @__PURE__ */ o.jsx(N, { children: /* @__PURE__ */ o.jsx(
|
|
2704
2711
|
Le,
|
|
2705
2712
|
{
|
|
2706
2713
|
defaultOpen: !0,
|
|
2707
|
-
label: /* @__PURE__ */ o.jsx(C, { as: "h4", className: l("text-left",
|
|
2708
|
-
...
|
|
2714
|
+
label: /* @__PURE__ */ o.jsx(C, { as: "h4", className: l("text-left", a == null ? void 0 : a.headline), children: r }),
|
|
2715
|
+
...i,
|
|
2709
2716
|
classes: {
|
|
2710
|
-
...
|
|
2711
|
-
content: l("max-w-full bg-color-blue-grey-100 relative", (
|
|
2717
|
+
...i == null ? void 0 : i.classes,
|
|
2718
|
+
content: l("max-w-full bg-color-blue-grey-100 relative", (f = i == null ? void 0 : i.classes) == null ? void 0 : f.content)
|
|
2712
2719
|
},
|
|
2713
|
-
children: /* @__PURE__ */ o.jsx("div", { className: l(Zr({
|
|
2720
|
+
children: /* @__PURE__ */ o.jsx("div", { className: l(Zr({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, u) => /* @__PURE__ */ o.jsx(Yr, { ...p, ...n, classes: a == null ? void 0 : a.column }, u)) })
|
|
2714
2721
|
}
|
|
2715
2722
|
) }) });
|
|
2716
2723
|
};
|