@scbt-ecom/ui 0.13.1 → 0.13.3

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/hybrid.d.ts CHANGED
@@ -18,7 +18,6 @@ export * from './shared/validation';
18
18
  export * from './shared/constants';
19
19
  export * from './configs';
20
20
  export * from './shared/api';
21
- export * from './widgets/Advantages';
22
21
  export * from './widgets/footer';
23
22
  export * from './widgets/pageHeader';
24
23
  export * from './widgets/stepper';
package/dist/hybrid.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var He = Object.defineProperty;
2
- var Ae = (a, r, e) => r in a ? He(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e;
3
- var l = (a, r, e) => Ae(a, typeof r != "symbol" ? r + "" : r, e);
4
- import { j as i, c as d, I as P, a as O, R as A, B as J, z as D, g as he, H as xe, P as Re } from "./Advantages-BIWy5o6G.js";
5
- import { A as zn, b as qn, L as Qn, i as $n, s as Vn } from "./Advantages-BIWy5o6G.js";
2
+ var Re = (a, r, e) => r in a ? He(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e;
3
+ var l = (a, r, e) => Re(a, typeof r != "symbol" ? r + "" : r, e);
4
+ import { j as i, c as d, I as P, a as O, R, B as J, z as D, g as he, H as xe, P as Ae } from "./index-CC-TDkSs.js";
5
+ import { b as zn, L as qn, i as Qn, s as $n } from "./index-CC-TDkSs.js";
6
6
  import * as z from "react";
7
7
  import { forwardRef as Be } from "react";
8
8
  const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase()).join("-"), gn = (...a) => {
@@ -194,7 +194,7 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
194
194
  business: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoBusiness" }),
195
195
  insurance: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoInsurance" })
196
196
  }, jn = ({ isVisible: a, classes: r, children: e, buttonProps: t }) => /* @__PURE__ */ i.jsxs(
197
- A,
197
+ R,
198
198
  {
199
199
  className: d(
200
200
  "fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
@@ -258,12 +258,12 @@ function ye(a, r, e) {
258
258
  return isNaN(r) ? v((e == null ? void 0 : e.in) || a, NaN) : (r && t.setDate(t.getDate() + r), t);
259
259
  }
260
260
  let et = {};
261
- function R() {
261
+ function A() {
262
262
  return et;
263
263
  }
264
264
  function C(a, r) {
265
265
  var u, h, x, k;
266
- const e = R(), t = (r == null ? void 0 : r.weekStartsOn) ?? ((h = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? e.weekStartsOn ?? ((k = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : k.weekStartsOn) ?? 0, n = T(a, r == null ? void 0 : r.in), o = n.getDay(), s = (o < t ? 7 : 0) + o - t;
266
+ const e = A(), t = (r == null ? void 0 : r.weekStartsOn) ?? ((h = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? e.weekStartsOn ?? ((k = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : k.weekStartsOn) ?? 0, n = T(a, r == null ? void 0 : r.in), o = n.getDay(), s = (o < t ? 7 : 0) + o - t;
267
267
  return n.setDate(n.getDate() - s), n.setHours(0, 0, 0, 0), n;
268
268
  }
269
269
  function L(a, r) {
@@ -738,20 +738,20 @@ function Ht(a, r) {
738
738
  }
739
739
  function ke(a, r) {
740
740
  var k, c, _, F;
741
- const e = T(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = R(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (k = r == null ? void 0 : r.locale) == null ? void 0 : k.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (_ = n.locale) == null ? void 0 : _.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, s = v((r == null ? void 0 : r.in) || a, 0);
741
+ const e = T(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = A(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (k = r == null ? void 0 : r.locale) == null ? void 0 : k.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (_ = n.locale) == null ? void 0 : _.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, s = v((r == null ? void 0 : r.in) || a, 0);
742
742
  s.setFullYear(t + 1, 0, o), s.setHours(0, 0, 0, 0);
743
743
  const u = C(s, r), h = v((r == null ? void 0 : r.in) || a, 0);
744
744
  h.setFullYear(t, 0, o), h.setHours(0, 0, 0, 0);
745
745
  const x = C(h, r);
746
746
  return +e >= +u ? t + 1 : +e >= +x ? t : t - 1;
747
747
  }
748
- function At(a, r) {
748
+ function Rt(a, r) {
749
749
  var u, h, x, k;
750
- const e = R(), t = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((h = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((k = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, n = ke(a, r), o = v((r == null ? void 0 : r.in) || a, 0);
750
+ const e = A(), t = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((h = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((k = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, n = ke(a, r), o = v((r == null ? void 0 : r.in) || a, 0);
751
751
  return o.setFullYear(n, 0, t), o.setHours(0, 0, 0, 0), C(o, r);
752
752
  }
753
- function Rt(a, r) {
754
- const e = T(a, r == null ? void 0 : r.in), t = +C(e, r) - +At(e, r);
753
+ function At(a, r) {
754
+ const e = T(a, r == null ? void 0 : r.in), t = +C(e, r) - +Rt(e, r);
755
755
  return Math.round(t / we) + 1;
756
756
  }
757
757
  const ue = (a, r) => {
@@ -818,7 +818,7 @@ function Gt(a, r, e) {
818
818
  return `Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
819
819
  }
820
820
  function Xt() {
821
- return Object.assign({}, R());
821
+ return Object.assign({}, A());
822
822
  }
823
823
  function Zt(a, r) {
824
824
  const e = T(a, r == null ? void 0 : r.in).getDay();
@@ -1436,7 +1436,7 @@ class lr extends m {
1436
1436
  }
1437
1437
  }
1438
1438
  function ur(a, r, e) {
1439
- const t = T(a, e == null ? void 0 : e.in), n = Rt(t, e) - r;
1439
+ const t = T(a, e == null ? void 0 : e.in), n = At(t, e) - r;
1440
1440
  return t.setDate(t.getDate() - n * 7), T(t, e == null ? void 0 : e.in);
1441
1441
  }
1442
1442
  class cr extends m {
@@ -1614,7 +1614,7 @@ class br extends m {
1614
1614
  }
1615
1615
  function S(a, r, e) {
1616
1616
  var c, _, F, M;
1617
- const t = R(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((_ = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : _.weekStartsOn) ?? t.weekStartsOn ?? ((M = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : M.weekStartsOn) ?? 0, o = T(a, e == null ? void 0 : e.in), s = o.getDay(), h = (r % 7 + 7) % 7, x = 7 - n, k = r < 0 || r > 6 ? r - (s + x) % 7 : (h + x) % 7 - (s + x) % 7;
1617
+ const t = A(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((_ = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : _.weekStartsOn) ?? t.weekStartsOn ?? ((M = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : M.weekStartsOn) ?? 0, o = T(a, e == null ? void 0 : e.in), s = o.getDay(), h = (r % 7 + 7) % 7, x = 7 - n, k = r < 0 || r > 6 ? r - (s + x) % 7 : (h + x) % 7 - (s + x) % 7;
1618
1618
  return ye(o, k, e);
1619
1619
  }
1620
1620
  class wr extends m {
@@ -2287,14 +2287,14 @@ const Wr = {
2287
2287
  x: new Fr(),
2288
2288
  t: new Yr(),
2289
2289
  T: new Lr()
2290
- }, Hr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ar = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Rr = /^'([^]*?)'?$/, Br = /''/g, zr = /\S/, qr = /[a-zA-Z]/;
2290
+ }, Hr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Rr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ar = /^'([^]*?)'?$/, Br = /''/g, zr = /\S/, qr = /[a-zA-Z]/;
2291
2291
  function Qr(a, r, e, t) {
2292
2292
  var te, re, ne, ae;
2293
2293
  const n = () => v(e, NaN), o = Xt(), s = o.locale ?? Wt, u = o.firstWeekContainsDate ?? ((re = (te = o.locale) == null ? void 0 : te.options) == null ? void 0 : re.firstWeekContainsDate) ?? 1, h = o.weekStartsOn ?? ((ae = (ne = o.locale) == null ? void 0 : ne.options) == null ? void 0 : ae.weekStartsOn) ?? 0, x = {
2294
2294
  firstWeekContainsDate: u,
2295
2295
  weekStartsOn: h,
2296
2296
  locale: s
2297
- }, k = [new er(t == null ? void 0 : t.in, e)], c = r.match(Ar).map((f) => {
2297
+ }, k = [new er(t == null ? void 0 : t.in, e)], c = r.match(Rr).map((f) => {
2298
2298
  const b = f[0];
2299
2299
  if (b in ce) {
2300
2300
  const N = ce[b];
@@ -2357,7 +2357,7 @@ function Qr(a, r, e, t) {
2357
2357
  return M;
2358
2358
  }
2359
2359
  function $r(a) {
2360
- return a.match(Rr)[1].replace(Br, "'");
2360
+ return a.match(Ar)[1].replace(Br, "'");
2361
2361
  }
2362
2362
  const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r) => {
2363
2363
  const [e, t, n] = (a == null ? void 0 : a.split(".")) ?? "", o = Qr(`${e}/${t}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
@@ -3179,7 +3179,7 @@ const Ur = {
3179
3179
  ligal: x = Kr,
3180
3180
  copyright: k = Jr,
3181
3181
  classes: c
3182
- }) => /* @__PURE__ */ i.jsx(pe, { className: d("w-full", c == null ? void 0 : c.section), children: /* @__PURE__ */ i.jsx(A, { className: d(c == null ? void 0 : c.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("bg-color-footer px-4 py-8 desktop:px-6 desktop:py-10", c == null ? void 0 : c.footerRoot), children: [
3182
+ }) => /* @__PURE__ */ i.jsx(pe, { className: d("w-full", c == null ? void 0 : c.section), children: /* @__PURE__ */ i.jsx(R, { className: d(c == null ? void 0 : c.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("bg-color-footer px-4 py-8 desktop:px-6 desktop:py-10", c == null ? void 0 : c.footerRoot), children: [
3183
3183
  /* @__PURE__ */ i.jsxs("div", { className: d("mb-8 flex items-center justify-between gap-6", c == null ? void 0 : c.footerHead), children: [
3184
3184
  /* @__PURE__ */ i.jsxs("div", { className: d(c == null ? void 0 : c.footerSocialBlock), children: [
3185
3185
  /* @__PURE__ */ i.jsx("a", { "aria-label": "logo", href: "/", className: d(c == null ? void 0 : c.footerLogo), children: /* @__PURE__ */ i.jsx(P, { name: "brandLogos/logoWhite", className: "h-[32px] w-[194px]" }) }),
@@ -3215,7 +3215,7 @@ const Ur = {
3215
3215
  }
3216
3216
  }, Wn = (a) => {
3217
3217
  const { logoPath: r = "/", logoType: e = "main", classes: t } = a;
3218
- return /* @__PURE__ */ i.jsx("header", { className: d("flex h-[72px] items-center justify-center bg-color-white", t == null ? void 0 : t.header), children: /* @__PURE__ */ i.jsx(A, { className: d(t == null ? void 0 : t.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("flex items-center justify-between gap-5", t == null ? void 0 : t.wrapper), children: [
3218
+ return /* @__PURE__ */ i.jsx("header", { className: d("flex h-[72px] items-center justify-center bg-color-white", t == null ? void 0 : t.header), children: /* @__PURE__ */ i.jsx(R, { className: d(t == null ? void 0 : t.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("flex items-center justify-between gap-5", t == null ? void 0 : t.wrapper), children: [
3219
3219
  /* @__PURE__ */ i.jsx(
3220
3220
  "a",
3221
3221
  {
@@ -3256,7 +3256,7 @@ const Ur = {
3256
3256
  ] })
3257
3257
  ]
3258
3258
  }
3259
- ), Hn = ({ heading: a, stepsList: r, classes: e }) => /* @__PURE__ */ i.jsx(pe, { children: /* @__PURE__ */ i.jsx(A, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-12 desktop:items-start", e == null ? void 0 : e.root), children: [
3259
+ ), Hn = ({ heading: a, stepsList: r, classes: e }) => /* @__PURE__ */ i.jsx(pe, { children: /* @__PURE__ */ i.jsx(R, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-12 desktop:items-start", e == null ? void 0 : e.root), children: [
3260
3260
  /* @__PURE__ */ i.jsx(xe, { as: "h2", className: d("text-color-dark", e == null ? void 0 : e.headline), children: a }),
3261
3261
  /* @__PURE__ */ i.jsx(
3262
3262
  "div",
@@ -3357,11 +3357,11 @@ const Ur = {
3357
3357
  return /* @__PURE__ */ i.jsx("li", { className: d(fn({ intent: r })), children: /* @__PURE__ */ i.jsxs("div", { className: "desktop:max-w-[264px]", children: [
3358
3358
  /* @__PURE__ */ i.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
3359
3359
  /* @__PURE__ */ i.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: e }),
3360
- n && /* @__PURE__ */ i.jsx(Re, { triggerElement: /* @__PURE__ */ i.jsx(P, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n })
3360
+ n && /* @__PURE__ */ i.jsx(Ae, { triggerElement: /* @__PURE__ */ i.jsx(P, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n })
3361
3361
  ] }),
3362
3362
  /* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-l text-color-secondary"), children: t })
3363
3363
  ] }) });
3364
- }, U = ({ intent: a, title: r, desktopHidden: e = !1, mobileHidden: t = !1 }) => /* @__PURE__ */ i.jsx("h2", { className: d(un({ intent: a, desktopHidden: e, mobileHidden: t })), children: r }), xn = ({ textContent: a, intent: r, withButton: e }) => /* @__PURE__ */ i.jsx("ul", { className: d(cn({ intent: r, withButton: e })), children: a == null ? void 0 : a.map((t, n) => /* @__PURE__ */ i.jsx(hn, { intent: r, data: t }, n)) }), An = ({
3364
+ }, U = ({ intent: a, title: r, desktopHidden: e = !1, mobileHidden: t = !1 }) => /* @__PURE__ */ i.jsx("h2", { className: d(un({ intent: a, desktopHidden: e, mobileHidden: t })), children: r }), xn = ({ textContent: a, intent: r, withButton: e }) => /* @__PURE__ */ i.jsx("ul", { className: d(cn({ intent: r, withButton: e })), children: a == null ? void 0 : a.map((t, n) => /* @__PURE__ */ i.jsx(hn, { intent: r, data: t }, n)) }), Rn = ({
3365
3365
  title: a,
3366
3366
  buttonConfig: r,
3367
3367
  intent: e = "twoItems",
@@ -3370,7 +3370,7 @@ const Ur = {
3370
3370
  classes: o
3371
3371
  }) => {
3372
3372
  const s = !!r, u = e === "fourItems", h = e === "twoItems";
3373
- return /* @__PURE__ */ i.jsx("section", { className: d(o == null ? void 0 : o.section), children: /* @__PURE__ */ i.jsxs(A, { className: d(o == null ? void 0 : o.mainContainer), children: [
3373
+ return /* @__PURE__ */ i.jsx("section", { className: d(o == null ? void 0 : o.section), children: /* @__PURE__ */ i.jsxs(R, { className: d(o == null ? void 0 : o.mainContainer), children: [
3374
3374
  h && /* @__PURE__ */ i.jsx(U, { intent: e, title: a }),
3375
3375
  /* @__PURE__ */ i.jsxs(
3376
3376
  "div",
@@ -3408,9 +3408,8 @@ const Ur = {
3408
3408
  ] }) });
3409
3409
  };
3410
3410
  export {
3411
- zn as Advantages,
3412
3411
  Zr as ApiError,
3413
- qn as Badge,
3412
+ zn as Badge,
3414
3413
  kn as Breadcrumbs,
3415
3414
  J as Button,
3416
3415
  vn as ButtonIcon,
@@ -3420,12 +3419,12 @@ export {
3420
3419
  Ln as Footer,
3421
3420
  xe as Heading,
3422
3421
  P as Icon,
3423
- Qn as Loader,
3424
- An as LongBanner,
3422
+ qn as Loader,
3423
+ Rn as LongBanner,
3425
3424
  Wn as PageHeader,
3426
3425
  be as PhoneView,
3427
3426
  Pn as ProgressBar,
3428
- A as ResponsiveContainer,
3427
+ R as ResponsiveContainer,
3429
3428
  de as RgxCheckForHyphen,
3430
3429
  Ze as RgxPatronymic,
3431
3430
  Xe as RgxUnicode,
@@ -3450,10 +3449,10 @@ export {
3450
3449
  Ur as defaultHeaders,
3451
3450
  On as extendsPreset,
3452
3451
  Ue as formattedDadataFio,
3453
- $n as isClient,
3452
+ Qn as isClient,
3454
3453
  gn as mergeRefs,
3455
3454
  Fn as resetPreset,
3456
- Vn as scrollToElement,
3455
+ $n as scrollToElement,
3457
3456
  Cn as tailwindConfigBase,
3458
3457
  _n as zodCalendarValidate,
3459
3458
  In as zodDadataFioSchema,