@scbt-ecom/ui 0.20.0 → 0.21.0

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.
Files changed (70) hide show
  1. package/dist/{CustomLink-BZ2X3A56.js → CustomLink-BHI03NwX.js} +39 -39
  2. package/dist/CustomLink-BHI03NwX.js.map +1 -0
  3. package/dist/shared/ui/badge/Badge.d.ts +6 -0
  4. package/dist/shared/ui/badge/index.d.ts +1 -0
  5. package/dist/shared/ui/brandLogos/index.d.ts +1 -0
  6. package/dist/shared/ui/breadcrumbs/index.d.ts +1 -0
  7. package/dist/shared/ui/buttonIcon/index.d.ts +1 -0
  8. package/dist/shared/ui/{CustomLink.d.ts → customLink/CustomLink.d.ts} +1 -1
  9. package/dist/shared/ui/customLink/index.d.ts +1 -0
  10. package/dist/shared/ui/document/index.d.ts +1 -0
  11. package/dist/shared/ui/{FloatButton.d.ts → floatButton/FloatButton.d.ts} +1 -1
  12. package/dist/shared/ui/floatButton/index.d.ts +1 -0
  13. package/dist/shared/ui/formElements/controlled/index.d.ts +17 -0
  14. package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +28 -0
  15. package/dist/shared/ui/formElements/controlled/radio/index.d.ts +1 -0
  16. package/dist/shared/ui/formElements/radioControl/RadioControl.d.ts +3 -0
  17. package/dist/shared/ui/formElements/uncontrolled/index.d.ts +78 -0
  18. package/dist/shared/ui/formElements/uncontrolled/maskInput/MaskInput.d.ts +2 -3
  19. package/dist/shared/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +51 -0
  20. package/dist/shared/ui/formElements/uncontrolled/radio/index.d.ts +2 -0
  21. package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +36 -0
  22. package/dist/shared/ui/formElements/uncontrolled/radio/ui/index.d.ts +1 -0
  23. package/dist/shared/ui/heading/index.d.ts +1 -0
  24. package/dist/shared/ui/hint/index.d.ts +1 -0
  25. package/dist/shared/ui/index.d.ts +25 -25
  26. package/dist/shared/ui/{KeyboardShortcuts.d.ts → keyboardShortcuts/KeyboardShortcuts.d.ts} +4 -4
  27. package/dist/shared/ui/keyboardShortcuts/index.d.ts +1 -0
  28. package/dist/shared/ui/ligal/index.d.ts +1 -0
  29. package/dist/shared/ui/{Loader.d.ts → loader/Loader.d.ts} +5 -5
  30. package/dist/shared/ui/loader/index.d.ts +1 -0
  31. package/dist/shared/ui/modal/Modal.d.ts +7 -4
  32. package/dist/shared/ui/modal/ui/ModalHeader.d.ts +6 -8
  33. package/dist/shared/ui/phoneView/index.d.ts +1 -0
  34. package/dist/shared/ui/{Popover.d.ts → popover/Popover.d.ts} +7 -7
  35. package/dist/shared/ui/popover/index.d.ts +1 -0
  36. package/dist/shared/ui/{ProgressBar.d.ts → progressBar/ProgressBar.d.ts} +7 -7
  37. package/dist/shared/ui/progressBar/index.d.ts +1 -0
  38. package/dist/shared/ui/responsiveContainer/index.d.ts +1 -0
  39. package/dist/shared/ui/section/index.d.ts +1 -0
  40. package/dist/shared/ui/skeleton/index.d.ts +1 -0
  41. package/dist/shared/ui/tabSwitcher/TabsSwitcher.d.ts +9 -0
  42. package/dist/shared/ui/tabSwitcher/index.d.ts +2 -0
  43. package/dist/shared/ui/tabSwitcher/model/types.d.ts +23 -0
  44. package/dist/shared/ui/tabSwitcher/ui/TabContent.d.ts +10 -0
  45. package/dist/ui.js +4932 -4798
  46. package/dist/ui.js.map +1 -1
  47. package/dist/useDevice-L83kSsN7.js.map +1 -1
  48. package/dist/widget.js +31 -31
  49. package/dist/widget.js.map +1 -1
  50. package/dist/widgets/authProvider/model/types.d.ts +5 -10
  51. package/dist/widgets/authProvider/ui/ui/AuthWrapper.d.ts +5 -4
  52. package/dist/widgets/authProvider/ui/ui/Links.d.ts +6 -5
  53. package/dist/widgets/stepper/Stepper.d.ts +2 -1
  54. package/package.json +1 -1
  55. package/dist/CustomLink-BZ2X3A56.js.map +0 -1
  56. package/dist/shared/hooks/useDevice/index.d.ts +0 -1
  57. package/dist/shared/ui/Badge.d.ts +0 -6
  58. package/dist/shared/ui/TabsSwitcher.d.ts +0 -35
  59. /package/dist/shared/hooks/{useDevice/useDevice.d.ts → useDevice.d.ts} +0 -0
  60. /package/dist/shared/ui/{brandLogos.d.ts → brandLogos/BrandLogos.d.ts} +0 -0
  61. /package/dist/shared/ui/{Breadcrumbs.d.ts → breadcrumbs/Breadcrumbs.d.ts} +0 -0
  62. /package/dist/shared/ui/{ButtonIcon.d.ts → buttonIcon/ButtonIcon.d.ts} +0 -0
  63. /package/dist/shared/ui/{Document.d.ts → document/Document.d.ts} +0 -0
  64. /package/dist/shared/ui/{Heading.d.ts → heading/Heading.d.ts} +0 -0
  65. /package/dist/shared/ui/{Hint.d.ts → hint/Hint.d.ts} +0 -0
  66. /package/dist/shared/ui/{Ligal.d.ts → ligal/Ligal.d.ts} +0 -0
  67. /package/dist/shared/ui/{PhoneView.d.ts → phoneView/PhoneView.d.ts} +0 -0
  68. /package/dist/shared/ui/{ResponsiveContainer.d.ts → responsiveContainer/ResponsiveContainer.d.ts} +0 -0
  69. /package/dist/shared/ui/{Section.d.ts → section/Section.d.ts} +0 -0
  70. /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 = ze("", {
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
- }, Jo = ze(
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(Jo({ intent: e, size: t, textFormat: f, isLoading: u, isFull: l }), n),
754
+ className: L(Xo({ intent: e, size: t, textFormat: f, isLoading: u, isFull: l }), n),
785
755
  ...p,
786
- children: u ? /* @__PURE__ */ y.jsx(Go, { size: "sm", intent: qo(e) }) : /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
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
- Go as L,
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-BZ2X3A56.js.map
4507
+ //# sourceMappingURL=CustomLink-BHI03NwX.js.map