@billgangcom/theme-lib 1.125.4 → 1.125.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.
Files changed (41) hide show
  1. package/dist/{builder-B5L_sXTT.js → builder-2YNszRul.js} +5 -5
  2. package/dist/{builder-l3Mn4viI.cjs → builder-DT2MPQIe.cjs} +2 -2
  3. package/dist/{builder-components-BIfe6RPT.js → builder-components-CfB-cXOa.js} +4 -4
  4. package/dist/{builder-components-X1GAfroW.cjs → builder-components-HQ8ccfQi.cjs} +1 -1
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +23 -23
  7. package/dist/{charge-Di-4QINM.js → charge-CeL8jXzk.js} +397 -393
  8. package/dist/{charge-9VEQkwem.cjs → charge-Dd6podcM.cjs} +12 -12
  9. package/dist/{checkout-DsCj-O1M.js → checkout-dKBgx4_t.js} +5 -5
  10. package/dist/{checkout-DCuFIAUp.cjs → checkout-hG4nZAfL.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-CcSUuqaw.cjs → index-BBmLGlCP.cjs} +1 -1
  14. package/dist/{index-B98dVJaK.cjs → index-BGWhMhIz.cjs} +1 -1
  15. package/dist/{index-DymofhMw.js → index-BcBa6BVj.js} +2 -2
  16. package/dist/{index-CEGNqpya.js → index-BsRq6_oH.js} +5 -5
  17. package/dist/{index-x0UXGxZZ.js → index-CPXgL1Te.js} +1 -1
  18. package/dist/{index-F6Vdi_NY.js → index-DCCA87NY.js} +5 -5
  19. package/dist/{index-IAZX-Ulk.cjs → index-DH3suBKA.cjs} +1 -1
  20. package/dist/{index-78ELLFPJ.cjs → index-DrlEFa_A.cjs} +1 -1
  21. package/dist/{index-BpyYli2C.js → index-DxY9GcmW.js} +5 -5
  22. package/dist/{index-_V3o_Cpe.cjs → index-WlsBw3sd.cjs} +1 -1
  23. package/dist/{index-DFDIsooy.cjs → index-ljnGesWX.cjs} +1 -1
  24. package/dist/{index-BEH-iY-2.js → index-m8mNLWAF.js} +5 -5
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +6 -6
  27. package/dist/{order-BDBX80KD.js → order-bjCcFmx6.js} +5 -5
  28. package/dist/{order-DPalIxS2.cjs → order-f8DTpqHu.cjs} +1 -1
  29. package/dist/{subscription-aL3jcYCi.js → subscription-B520eImG.js} +5 -5
  30. package/dist/{subscription-6YfhKXW6.cjs → subscription-DuQaeZpz.cjs} +1 -1
  31. package/dist/{ticket-CjFb8U_g.cjs → ticket-C_4dunoG.cjs} +1 -1
  32. package/dist/{ticket-D73mbXt4.js → ticket-HPAqmPkQ.js} +5 -5
  33. package/dist/{top-up-BTDWKfwy.js → top-up-CE-L-n3m.js} +5 -5
  34. package/dist/{top-up-DRjxtNDd.cjs → top-up-xnDj358Z.cjs} +1 -1
  35. package/dist/{ui-components-CvWzKgkI.cjs → ui-components-CoVj1ReR.cjs} +1 -1
  36. package/dist/{ui-components-D2keDJbK.js → ui-components-t7AROe_i.js} +45 -44
  37. package/dist/ui.cjs.js +1 -1
  38. package/dist/ui.es.js +1 -1
  39. package/dist/{validation-BIkz39RU.cjs → validation-BFKCs4Vw.cjs} +1 -1
  40. package/dist/{validation-BeyWmqN7.js → validation-BmbrCdXv.js} +5 -5
  41. package/package.json +1 -1
@@ -3,11 +3,11 @@ var un = (e, n, o) => n in e ? In(e, n, { enumerable: !0, configurable: !0, writ
3
3
  var Ot = (e, n, o) => un(e, typeof n != "symbol" ? n + "" : n, o);
4
4
  import { jsx as t, jsxs as d, Fragment as Y } from "react/jsx-runtime";
5
5
  import b, { useState as st, useRef as ft, useCallback as Xe, useEffect as gn, createElement as yt, PureComponent as fn } from "react";
6
- import { f as O, ad as lt, z as Ne, j as Zt, r as en, m as _t, ae as tn, K as Ae, v as me, af as Dt, ag as Ft, b as Ye, l as _n, e as Ge, p as St, W as Ce, a5 as Sn, N as bn, ah as Cn, ai as nn, k as yn } from "./builder-B5L_sXTT.js";
7
- import { X as vn, Y as wn, E as kn, Z as Tn, u as We, I as Pn } from "./charge-Di-4QINM.js";
8
- import { u as Je, d as Qe, D as Ze, e as et, v as tt, f as nt, g as ot, C as rt, F as Mt } from "./builder-components-BIfe6RPT.js";
6
+ import { f as O, ad as lt, z as Te, j as Zt, r as en, m as _t, ae as tn, K as Ae, v as me, af as Dt, ag as Ft, b as Ye, l as _n, e as Ge, p as St, W as Ce, a5 as Sn, N as bn, ah as Cn, ai as nn, k as yn } from "./builder-2YNszRul.js";
7
+ import { X as vn, Y as wn, E as kn, Z as Tn, u as We, I as Pn } from "./charge-CeL8jXzk.js";
8
+ import { u as Je, d as Qe, D as Ze, e as et, v as tt, f as nt, g as ot, C as rt, F as Mt } from "./builder-components-CfB-cXOa.js";
9
9
  import Nn, { createPortal as An } from "react-dom";
10
- import { s as Me, g as Ln, u as xn } from "./ticket-D73mbXt4.js";
10
+ import { s as Me, g as Ln, u as xn } from "./ticket-HPAqmPkQ.js";
11
11
  const Bn = "_wrapper_5w9s8_1", Dn = {
12
12
  wrapper: Bn
13
13
  }, Eh = (e) => {
@@ -517,7 +517,7 @@ const Rn = "_block_18ndr_8", Hn = "_title_18ndr_16", En = "_subtitle_18ndr_23",
517
517
  setTypeFont: m,
518
518
  alignText: S,
519
519
  setAlignText: f
520
- } = e, { isAntistock: g } = Ne();
520
+ } = e, { isAntistock: g } = Te();
521
521
  return /* @__PURE__ */ d("div", { className: Ee.text, children: [
522
522
  (h || o !== void 0) && /* @__PURE__ */ d("div", { className: Ee.top, children: [
523
523
  h && /* @__PURE__ */ t("h3", { className: Ee.title, children: h }),
@@ -641,7 +641,7 @@ const Rn = "_block_18ndr_8", Hn = "_title_18ndr_16", En = "_subtitle_18ndr_23",
641
641
  disabled: i = !1,
642
642
  type: s = "Primary",
643
643
  dangerouslySetInnerHTML: h
644
- } = e, { themeSettings: p } = _t(), { isAntistock: a } = Ne(), m = (l) => typeof l == "string" ? /* @__PURE__ */ t(wn, { children: l }) : l, S = {
644
+ } = e, { themeSettings: p } = _t(), { isAntistock: a } = Te(), m = (l) => typeof l == "string" ? /* @__PURE__ */ t(wn, { children: l }) : l, S = {
645
645
  onClick: o,
646
646
  disabled: i,
647
647
  style: r,
@@ -692,7 +692,7 @@ const Rn = "_block_18ndr_8", Hn = "_title_18ndr_16", En = "_subtitle_18ndr_23",
692
692
  loader: vr,
693
693
  loaderAntistock: wr
694
694
  }, ln = (e) => {
695
- const { isAntistock: n } = Ne();
695
+ const { isAntistock: n } = Te();
696
696
  return n ? /* @__PURE__ */ t(
697
697
  "span",
698
698
  {
@@ -777,7 +777,7 @@ const Rn = "_block_18ndr_8", Hn = "_title_18ndr_16", En = "_subtitle_18ndr_23",
777
777
  )
778
778
  }
779
779
  );
780
- }, Dr = "_wrapper_bjppv_1", Fr = "_label_bjppv_10", Mr = "_contentBorder_bjppv_19", $r = "_textarea_bjppv_23", Or = "_contentField_bjppv_35", Rr = "_antistock_bjppv_49", Hr = "_length_bjppv_58", Er = "_requiredStar_bjppv_66", Ur = "_contentError_bjppv_70", Te = {
780
+ }, Dr = "_wrapper_bjppv_1", Fr = "_label_bjppv_10", Mr = "_contentBorder_bjppv_19", $r = "_textarea_bjppv_23", Or = "_contentField_bjppv_35", Rr = "_antistock_bjppv_49", Hr = "_length_bjppv_58", Er = "_requiredStar_bjppv_66", Ur = "_contentError_bjppv_70", Pe = {
781
781
  wrapper: Dr,
782
782
  label: Fr,
783
783
  contentBorder: Mr,
@@ -797,15 +797,15 @@ const Rn = "_block_18ndr_8", Hn = "_title_18ndr_16", En = "_subtitle_18ndr_23",
797
797
  type: s = "text",
798
798
  required: h = !1,
799
799
  error: p
800
- } = e, [a, m] = b.useState(r.length), { themeSettings: S } = _t(), { isAntistock: f } = Ne();
800
+ } = e, [a, m] = b.useState(r.length), { themeSettings: S } = _t(), { isAntistock: f } = Te();
801
801
  function g(C) {
802
802
  return s === "number" ? C.replace(/[^\d\n]+/g, "") : C;
803
803
  }
804
- return /* @__PURE__ */ d("div", { className: Te.wrapper, children: [
804
+ return /* @__PURE__ */ d("div", { className: Pe.wrapper, children: [
805
805
  o && /* @__PURE__ */ d(
806
806
  "label",
807
807
  {
808
- className: Te.label,
808
+ className: Pe.label,
809
809
  htmlFor: o,
810
810
  style: {
811
811
  color: f ? "var(--text-secondary)" : void 0
@@ -813,9 +813,9 @@ const Rn = "_block_18ndr_8", Hn = "_title_18ndr_16", En = "_subtitle_18ndr_23",
813
813
  children: [
814
814
  o.includes("*") ? /* @__PURE__ */ d(Y, { children: [
815
815
  o.replace(" *", "").replace("*", ""),
816
- /* @__PURE__ */ t("span", { className: Te.requiredStar, children: " *" })
816
+ /* @__PURE__ */ t("span", { className: Pe.requiredStar, children: " *" })
817
817
  ] }) : o,
818
- h && /* @__PURE__ */ t("span", { className: Te.requiredStar, children: "*" })
818
+ h && /* @__PURE__ */ t("span", { className: Pe.requiredStar, children: "*" })
819
819
  ]
820
820
  }
821
821
  ),
@@ -829,16 +829,16 @@ const Rn = "_block_18ndr_8", Hn = "_title_18ndr_16", En = "_subtitle_18ndr_23",
829
829
  m(l.length), n(l);
830
830
  },
831
831
  placeholder: i,
832
- className: O(Te.textarea, {
833
- [Te.contentBorder]: S.inputs.border.active,
834
- [Te.contentField]: S.inputs.field.active,
835
- [Te.antistock]: f,
836
- [Te.contentError]: p
832
+ className: O(Pe.textarea, {
833
+ [Pe.contentBorder]: S.inputs.border.active,
834
+ [Pe.contentField]: S.inputs.field.active,
835
+ [Pe.antistock]: f,
836
+ [Pe.contentError]: p
837
837
  }),
838
838
  maxLength: c
839
839
  }
840
840
  ),
841
- c && /* @__PURE__ */ d("div", { className: Te.length, children: [
841
+ c && /* @__PURE__ */ d("div", { className: Pe.length, children: [
842
842
  a,
843
843
  "/",
844
844
  c
@@ -902,7 +902,7 @@ const Rn = "_block_18ndr_8", Hn = "_title_18ndr_16", En = "_subtitle_18ndr_23",
902
902
  }
903
903
  ) });
904
904
  }, Vh = () => {
905
- const { setOpenModal: e, onChange: n, tip: o, setTip: r } = tn(), { setIsOpen: c } = Ae(), { isAntistock: i } = Ne(), [s, h] = b.useState(!1), p = () => {
905
+ const { setOpenModal: e, onChange: n, tip: o, setTip: r } = tn(), { setIsOpen: c } = Ae(), { isAntistock: i } = Te(), [s, h] = b.useState(!1), p = () => {
906
906
  var N;
907
907
  (N = a.current) == null || N.click();
908
908
  }, a = b.useRef(null), [m, S] = b.useState([]), [f, g] = b.useState(!1), [C, l] = b.useState(1), [_, I] = b.useState(0), v = async (N) => {
@@ -1144,7 +1144,7 @@ function ct(e, n, o) {
1144
1144
  }
1145
1145
  const zr = b.forwardRef(
1146
1146
  (e, n) => {
1147
- const { activeItem: o, setActiveItem: r, popupPosition: c, modalOptions: i, setIsOpenModal: s } = e, { isAntistock: h } = Ne();
1147
+ const { activeItem: o, setActiveItem: r, popupPosition: c, modalOptions: i, setIsOpenModal: s } = e, { isAntistock: h } = Te();
1148
1148
  ct(n, () => {
1149
1149
  r(null), s(!1);
1150
1150
  });
@@ -2445,7 +2445,7 @@ const Xh = (e) => {
2445
2445
  closeIcon: Ri
2446
2446
  }, Hi = b.forwardRef(
2447
2447
  (e, n) => {
2448
- const { activeItem: o, setActiveItem: r, popupPosition: c, modalOptions: i, setIsOpenModal: s } = e, { isAntistock: h } = Ne();
2448
+ const { activeItem: o, setActiveItem: r, popupPosition: c, modalOptions: i, setIsOpenModal: s } = e, { isAntistock: h } = Te();
2449
2449
  return ct(n, () => {
2450
2450
  r(null), s(!1);
2451
2451
  }), /* @__PURE__ */ d(
@@ -3800,7 +3800,7 @@ const Jh = (e) => {
3800
3800
  onFocus: k,
3801
3801
  leftIcon: w,
3802
3802
  error: x
3803
- } = e, { themeSettings: R } = _t(), { isAntistock: N } = Ne(), { inputs: u } = R, [A, B] = b.useState(!1);
3803
+ } = e, { themeSettings: R } = _t(), { isAntistock: N } = Te(), { inputs: u } = R, [A, B] = b.useState(!1);
3804
3804
  function U(P) {
3805
3805
  if (Number(P) < 0) return String(s);
3806
3806
  const z = P.replace(/[^\d-]/g, "");
@@ -4796,7 +4796,7 @@ const Da = (e) => {
4796
4796
  )
4797
4797
  ] })
4798
4798
  ] }), hn = ({ signUp: e, close: n }) => {
4799
- const { token: o } = bn(), { isAntistock: r } = Ne(), c = St(), [i, s] = b.useState("test-email@gmail.com");
4799
+ const { token: o } = bn(), { isAntistock: r } = Te(), c = St(), [i, s] = b.useState("test-email@gmail.com");
4800
4800
  b.useEffect(() => {
4801
4801
  o && (async () => {
4802
4802
  if (!o) return;
@@ -5221,7 +5221,7 @@ const Da = (e) => {
5221
5221
  logo: qs,
5222
5222
  info: zs
5223
5223
  }, rd = ({ date: e }) => {
5224
- const { general: n } = Ne();
5224
+ const { general: n } = Te();
5225
5225
  if (!n) return /* @__PURE__ */ t(Y, {});
5226
5226
  function o(r) {
5227
5227
  const c = new Date(r), i = {
@@ -5875,7 +5875,7 @@ const Da = (e) => {
5875
5875
  ]
5876
5876
  }
5877
5877
  );
5878
- }, Rl = "_wrapper_1215l_1", Hl = "_active_1215l_27", El = "_toggle_1215l_30", Ul = "_background_1215l_42", ql = "_padding_1215l_46", Pe = {
5878
+ }, Rl = "_wrapper_1215l_1", Hl = "_active_1215l_27", El = "_toggle_1215l_30", Ul = "_background_1215l_42", ql = "_padding_1215l_46", Ne = {
5879
5879
  wrapper: Rl,
5880
5880
  switch: "_switch_1215l_14",
5881
5881
  active: Hl,
@@ -5891,34 +5891,34 @@ const Da = (e) => {
5891
5891
  }, [r]), /* @__PURE__ */ t(Y, { children: c ? /* @__PURE__ */ d(
5892
5892
  "div",
5893
5893
  {
5894
- className: O(Pe.wrapper, {
5895
- [Pe.background]: i,
5896
- [Pe.padding]: !s
5894
+ className: O(Ne.wrapper, {
5895
+ [Ne.background]: i,
5896
+ [Ne.padding]: !s
5897
5897
  }),
5898
5898
  children: [
5899
5899
  /* @__PURE__ */ t(
5900
5900
  "div",
5901
5901
  {
5902
- className: O(Pe.switch, {
5903
- [Pe.active]: h
5902
+ className: O(Ne.switch, {
5903
+ [Ne.active]: h
5904
5904
  }),
5905
5905
  onClick: a,
5906
5906
  style: o,
5907
- children: /* @__PURE__ */ t("div", { className: Pe.toggle })
5907
+ children: /* @__PURE__ */ t("div", { className: Ne.toggle })
5908
5908
  }
5909
5909
  ),
5910
- /* @__PURE__ */ t("span", { className: Pe.value, children: c })
5910
+ /* @__PURE__ */ t("span", { className: Ne.value, children: c })
5911
5911
  ]
5912
5912
  }
5913
5913
  ) : /* @__PURE__ */ t(
5914
5914
  "div",
5915
5915
  {
5916
- className: O(Pe.switch, {
5917
- [Pe.active]: h
5916
+ className: O(Ne.switch, {
5917
+ [Ne.active]: h
5918
5918
  }),
5919
5919
  onClick: a,
5920
5920
  style: o,
5921
- children: /* @__PURE__ */ t("div", { className: Pe.toggle })
5921
+ children: /* @__PURE__ */ t("div", { className: Ne.toggle })
5922
5922
  }
5923
5923
  ) });
5924
5924
  };
@@ -8119,23 +8119,24 @@ const mn = (e) => {
8119
8119
  checked: vp,
8120
8120
  icon: wp
8121
8121
  }, kp = (e) => {
8122
- const { value: n, onChange: o } = e, [r, c] = b.useState(n), i = () => {
8123
- c(!r), o(!r);
8122
+ const { value: n, onChange: o } = e, { isAntistock: r } = Te(), [c, i] = b.useState(n), s = () => {
8123
+ i(!c), o(!c);
8124
8124
  };
8125
8125
  return b.useEffect(() => {
8126
- c(n);
8126
+ i(n);
8127
8127
  }, [n]), /* @__PURE__ */ d(
8128
8128
  "label",
8129
8129
  {
8130
8130
  className: dt.customCheckbox,
8131
- onClick: (s) => s.stopPropagation(),
8131
+ onClick: (h) => h.stopPropagation(),
8132
+ style: r ? { display: "flex", alignItems: "center" } : void 0,
8132
8133
  children: [
8133
8134
  /* @__PURE__ */ t(
8134
8135
  "input",
8135
8136
  {
8136
8137
  type: "checkbox",
8137
- checked: r,
8138
- onChange: i,
8138
+ checked: c,
8139
+ onChange: s,
8139
8140
  style: { display: "none" }
8140
8141
  }
8141
8142
  ),
@@ -8143,11 +8144,11 @@ const mn = (e) => {
8143
8144
  "span",
8144
8145
  {
8145
8146
  className: O(dt.checkboxBox, {
8146
- [dt.checked]: r
8147
+ [dt.checked]: c
8147
8148
  })
8148
8149
  }
8149
8150
  ),
8150
- r && /* @__PURE__ */ t("div", { className: dt.icon, children: /* @__PURE__ */ t(
8151
+ c && /* @__PURE__ */ t("div", { className: dt.icon, children: /* @__PURE__ */ t(
8151
8152
  L,
8152
8153
  {
8153
8154
  name: "Check",
package/dist/ui.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-CvWzKgkI.cjs");exports.Accordion=t.Accordion;exports.AlignText=t.AlignText;exports.BurgerMenuButton=t.BurgerMenuButton;exports.Button=t.Button;exports.ButtonSettings=t.ButtonSettings;exports.ButtonTypeSettings=t.ButtonTypeSettings;exports.ButtonsSettings=t.ButtonsSettings;exports.CategorySettings=t.CategorySettings;exports.ChargeTypes=t.ChargeTypes;exports.Checkbox=t.Checkbox;exports.CheckboxSettings=t.CheckboxSettings;exports.ChooseImage=t.ChooseImage;exports.ChooseImageModal=t.ChooseImageModal;exports.ConfirmationModal=t.ConfirmationModal;exports.EmptyCart=t.EmptyCart;exports.ErrorableBlock=t.ErrorableBlock;exports.FormSettings=t.FormSettings;exports.GroupCardModal=t.GroupCardModal;exports.HeaderButtons=t.HeaderButtons;exports.Icon=t.Icon;exports.ImagesLoader=t.ImagesLoader;exports.InputSettings=t.InputSettings;exports.InputUI=t.Input;exports.ItemsSettings=t.ItemsSettings;exports.LayoutSettings=t.LayoutSettings;exports.Link=t.Link;exports.ListingSelector=t.ListingSelector;exports.Loader=t.Loader;exports.LoaderBuilder=t.LoaderBuilder;exports.MetaInfoPost=t.MetaInfoPost;exports.Modal=t.Modal;exports.NotificationBuilder=t.NotificationBuilder;exports.PagesMobileMenu=t.PagesMobileMenu;exports.PagesMobileModal=t.PagesMobileModal;exports.PagesSettings=t.PagesSettings;exports.ProductCardButtons=t.ProductCardButtons;exports.ProductCardModal=t.ProductCardModal;exports.ProductOptions=t.ProductOptions;exports.RadioUI=t.Radio;exports.RangeSelector=t.RangeSelector;exports.Select=t.Select;exports.SelectInfiniteList=t.SelectInfiniteList;exports.SelectSettings=t.SelectSettings;exports.SelectTypeText=t.SelectTypeText;exports.SelectUI=t.Select;exports.ShareLink=t.ShareLink;exports.ShoppingButton=t.ShoppingButton;exports.ShoppingModalCart=t.ShoppingModalCart;exports.Switch=t.Switch;exports.TextSettings=t.TextSettings;exports.TextareaSettings=t.TextareaSettings;exports.TextareaUI=t.Textarea;exports.Tip=t.Tip;exports.TypesText=t.TypesText;exports.UserInfo=t.UserInfo;exports.Wrapper=t.Wrapper;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-CoVj1ReR.cjs");exports.Accordion=t.Accordion;exports.AlignText=t.AlignText;exports.BurgerMenuButton=t.BurgerMenuButton;exports.Button=t.Button;exports.ButtonSettings=t.ButtonSettings;exports.ButtonTypeSettings=t.ButtonTypeSettings;exports.ButtonsSettings=t.ButtonsSettings;exports.CategorySettings=t.CategorySettings;exports.ChargeTypes=t.ChargeTypes;exports.Checkbox=t.Checkbox;exports.CheckboxSettings=t.CheckboxSettings;exports.ChooseImage=t.ChooseImage;exports.ChooseImageModal=t.ChooseImageModal;exports.ConfirmationModal=t.ConfirmationModal;exports.EmptyCart=t.EmptyCart;exports.ErrorableBlock=t.ErrorableBlock;exports.FormSettings=t.FormSettings;exports.GroupCardModal=t.GroupCardModal;exports.HeaderButtons=t.HeaderButtons;exports.Icon=t.Icon;exports.ImagesLoader=t.ImagesLoader;exports.InputSettings=t.InputSettings;exports.InputUI=t.Input;exports.ItemsSettings=t.ItemsSettings;exports.LayoutSettings=t.LayoutSettings;exports.Link=t.Link;exports.ListingSelector=t.ListingSelector;exports.Loader=t.Loader;exports.LoaderBuilder=t.LoaderBuilder;exports.MetaInfoPost=t.MetaInfoPost;exports.Modal=t.Modal;exports.NotificationBuilder=t.NotificationBuilder;exports.PagesMobileMenu=t.PagesMobileMenu;exports.PagesMobileModal=t.PagesMobileModal;exports.PagesSettings=t.PagesSettings;exports.ProductCardButtons=t.ProductCardButtons;exports.ProductCardModal=t.ProductCardModal;exports.ProductOptions=t.ProductOptions;exports.RadioUI=t.Radio;exports.RangeSelector=t.RangeSelector;exports.Select=t.Select;exports.SelectInfiniteList=t.SelectInfiniteList;exports.SelectSettings=t.SelectSettings;exports.SelectTypeText=t.SelectTypeText;exports.SelectUI=t.Select;exports.ShareLink=t.ShareLink;exports.ShoppingButton=t.ShoppingButton;exports.ShoppingModalCart=t.ShoppingModalCart;exports.Switch=t.Switch;exports.TextSettings=t.TextSettings;exports.TextareaSettings=t.TextareaSettings;exports.TextareaUI=t.Textarea;exports.Tip=t.Tip;exports.TypesText=t.TypesText;exports.UserInfo=t.UserInfo;exports.Wrapper=t.Wrapper;
package/dist/ui.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a4 as t, J as e, a2 as o, g as n, B as i, K as r, G as g, D as S, U as d, j as l, m as c, ab as u, b as p, C as I, _ as B, E as C, F as M, a9 as T, X as h, I as m, k as x, c as L, f as y, A as P, y as b, a5 as f, Q as k, e as U, L as A, a7 as E, M as R, N as F, a1 as G, a0 as H, P as N, a6 as O, a8 as W, V as j, R as w, O as z, h as D, ac as J, S as K, aa as Q, h as V, a3 as X, Y, Z, d as _, z as $, T as q, l as v, i as aa, H as sa, $ as ta, W as ea } from "./ui-components-D2keDJbK.js";
1
+ import { a4 as t, J as e, a2 as o, g as n, B as i, K as r, G as g, D as S, U as d, j as l, m as c, ab as u, b as p, C as I, _ as B, E as C, F as M, a9 as T, X as h, I as m, k as x, c as L, f as y, A as P, y as b, a5 as f, Q as k, e as U, L as A, a7 as E, M as R, N as F, a1 as G, a0 as H, P as N, a6 as O, a8 as W, V as j, R as w, O as z, h as D, ac as J, S as K, aa as Q, h as V, a3 as X, Y, Z, d as _, z as $, T as q, l as v, i as aa, H as sa, $ as ta, W as ea } from "./ui-components-t7AROe_i.js";
2
2
  export {
3
3
  t as Accordion,
4
4
  e as AlignText,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-9VEQkwem.cjs"),d=require("./builder-l3Mn4viI.cjs"),u=require("./ui-components-CvWzKgkI.cjs");require("./builder-components-X1GAfroW.cjs");require("react-dom");require("./ticket-CjFb8U_g.cjs");const j="_lock_1mxa7_1",b="_wrapper_1mxa7_12",I="_content_1mxa7_22",y="_info_1mxa7_31",N="_buttons_1mxa7_38",q="_button_1mxa7_38",k="_input_1mxa7_50",L="_error_1mxa7_57",s={lock:j,wrapper:b,content:I,info:y,buttons:N,button:q,input:k,error:L},V=()=>{const[f,n]=r.useState(!1),[h,w]=r.useState(!1),[c,P]=r.useState(""),{general:o,setGeneral:_}=d.useGeneralStore(),{setShopPassword:p}=d.useStorefrontStore(),i=d.useLocation(),m=d.useNavigate();r.useEffect(()=>{if(o&&(!o.info.passwordProtected||o.isPasswordValid)){const t=i.state.from==="/validation"?"/":i.state.from;m(t)}},[o]),r.useEffect(()=>{o||(async()=>{var x;n(!0);const l=localStorage.getItem("shopPassword")||"",a=await g.fetchGeneral(l);if(a.isPasswordValid){const S=((x=i.state)==null?void 0:x.from)||"/";m(S)}a.info.passwordProtected||(localStorage.removeItem("shopPassword"),p("")),_(a),n(!1)})()},[o]);async function v(){var l;n(!0);const t=await g.fetchGeneral(c);if(!t.isPasswordValid)w(!0);else{localStorage.setItem("shopPassword",c),p(c);const a=((l=i.state)==null?void 0:l.from)||"/";m(a),t.info.passwordProtected||(localStorage.removeItem("shopPassword"),p("")),_(t)}n(!1)}return e.jsxs("div",{className:s.wrapper,children:[!f&&e.jsxs("div",{className:s.content,children:[e.jsx("div",{className:s.lock,children:e.jsx(u.Icon,{name:"Lock",fill:"var(--text-secondary)",width:64,height:64})}),e.jsxs("div",{className:s.info,children:[e.jsx("h2",{id:"h2",className:s.title,children:"The store is password protected"}),e.jsx("p",{id:"p",className:s.description,children:"If you do not have a password, we recommend you to contact the technical support of the store or write to the mail"})]}),e.jsxs("div",{className:s.input,children:[e.jsx(u.Input,{type:"password",onChange:t=>{w(!1),P(t)},value:c,placeholder:"Password",required:!0}),e.jsx("span",{className:s.error,children:h&&"Incorrect password"})]}),e.jsx("div",{className:s.buttons,children:e.jsx(u.Button,{type:"Primary",className:s.button,disabled:h,onClick:v,children:"Submit"})})]}),f&&e.jsx(u.Loader,{})]})};exports.ValidationPage=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-Dd6podcM.cjs"),d=require("./builder-DT2MPQIe.cjs"),u=require("./ui-components-CoVj1ReR.cjs");require("./builder-components-HQ8ccfQi.cjs");require("react-dom");require("./ticket-C_4dunoG.cjs");const j="_lock_1mxa7_1",b="_wrapper_1mxa7_12",I="_content_1mxa7_22",y="_info_1mxa7_31",N="_buttons_1mxa7_38",q="_button_1mxa7_38",k="_input_1mxa7_50",L="_error_1mxa7_57",s={lock:j,wrapper:b,content:I,info:y,buttons:N,button:q,input:k,error:L},V=()=>{const[f,n]=r.useState(!1),[h,w]=r.useState(!1),[c,P]=r.useState(""),{general:o,setGeneral:_}=d.useGeneralStore(),{setShopPassword:p}=d.useStorefrontStore(),i=d.useLocation(),m=d.useNavigate();r.useEffect(()=>{if(o&&(!o.info.passwordProtected||o.isPasswordValid)){const t=i.state.from==="/validation"?"/":i.state.from;m(t)}},[o]),r.useEffect(()=>{o||(async()=>{var x;n(!0);const l=localStorage.getItem("shopPassword")||"",a=await g.fetchGeneral(l);if(a.isPasswordValid){const S=((x=i.state)==null?void 0:x.from)||"/";m(S)}a.info.passwordProtected||(localStorage.removeItem("shopPassword"),p("")),_(a),n(!1)})()},[o]);async function v(){var l;n(!0);const t=await g.fetchGeneral(c);if(!t.isPasswordValid)w(!0);else{localStorage.setItem("shopPassword",c),p(c);const a=((l=i.state)==null?void 0:l.from)||"/";m(a),t.info.passwordProtected||(localStorage.removeItem("shopPassword"),p("")),_(t)}n(!1)}return e.jsxs("div",{className:s.wrapper,children:[!f&&e.jsxs("div",{className:s.content,children:[e.jsx("div",{className:s.lock,children:e.jsx(u.Icon,{name:"Lock",fill:"var(--text-secondary)",width:64,height:64})}),e.jsxs("div",{className:s.info,children:[e.jsx("h2",{id:"h2",className:s.title,children:"The store is password protected"}),e.jsx("p",{id:"p",className:s.description,children:"If you do not have a password, we recommend you to contact the technical support of the store or write to the mail"})]}),e.jsxs("div",{className:s.input,children:[e.jsx(u.Input,{type:"password",onChange:t=>{w(!1),P(t)},value:c,placeholder:"Password",required:!0}),e.jsx("span",{className:s.error,children:h&&"Incorrect password"})]}),e.jsx("div",{className:s.buttons,children:e.jsx(u.Button,{type:"Primary",className:s.button,disabled:h,onClick:v,children:"Submit"})})]}),f&&e.jsx(u.Loader,{})]})};exports.ValidationPage=V;
@@ -1,11 +1,11 @@
1
1
  import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
2
  import r from "react";
3
- import { _ as g } from "./charge-Di-4QINM.js";
4
- import { z as I, N as x, ac as N, p as b } from "./builder-B5L_sXTT.js";
5
- import { I as y, f as k, g as L, e as E } from "./ui-components-D2keDJbK.js";
6
- import "./builder-components-BIfe6RPT.js";
3
+ import { _ as g } from "./charge-CeL8jXzk.js";
4
+ import { z as I, N as x, ac as N, p as b } from "./builder-2YNszRul.js";
5
+ import { I as y, f as k, g as L, e as E } from "./ui-components-t7AROe_i.js";
6
+ import "./builder-components-CfB-cXOa.js";
7
7
  import "react-dom";
8
- import "./ticket-D73mbXt4.js";
8
+ import "./ticket-HPAqmPkQ.js";
9
9
  const V = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C = "_info_1mxa7_31", q = "_buttons_1mxa7_38", z = "_button_1mxa7_38", B = "_input_1mxa7_50", R = "_error_1mxa7_57", t = {
10
10
  lock: V,
11
11
  wrapper: G,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@billgangcom/theme-lib",
3
- "version": "1.125.4",
3
+ "version": "1.125.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"