@billgangcom/theme-lib 1.110.7 → 1.111.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 (63) hide show
  1. package/dist/{builder-D_zv5ue0.js → builder-B31b5UQu.js} +231 -227
  2. package/dist/{builder-B7hjBRYI.cjs → builder-BAYgntut.cjs} +9 -9
  3. package/dist/{builder-components-DN-mNdj8.js → builder-components-BrUaSzmu.js} +4 -4
  4. package/dist/{builder-components-BjoFBErH.cjs → builder-components-CitLV0Xf.cjs} +1 -1
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +109 -107
  7. package/dist/{charge-BQUHzEju.js → charge-DDPKMr1X.js} +10739 -9802
  8. package/dist/charge-Dj2R60Yu.cjs +109 -0
  9. package/dist/{checkout-uzxtu1pZ.js → checkout-CYXV8Y-_.js} +5 -5
  10. package/dist/{checkout-CUct7uCm.cjs → checkout-DBK6_t-t.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-CEMbDy4G.cjs → index-BCuCOhBc.cjs} +1 -1
  14. package/dist/{index-BBMTjm8A.cjs → index-BoPfKksa.cjs} +1 -1
  15. package/dist/{index-R_FZBtaZ.cjs → index-Bv1mSFy_.cjs} +1 -1
  16. package/dist/{index-Cbqz9kIG.cjs → index-CSe8H52Z.cjs} +1 -1
  17. package/dist/{index-hCDY-ip7.js → index-CWq55eW7.js} +10 -9
  18. package/dist/{index-CzkkQ8sH.js → index-C_XwNA_j.js} +5 -5
  19. package/dist/{index-CMECtXvH.js → index-CcF01H3S.js} +5 -5
  20. package/dist/{index-BXhAWCRX.cjs → index-CvjUdJSD.cjs} +1 -1
  21. package/dist/{index-BJMeFohP.js → index-CwFkr47f.js} +1 -1
  22. package/dist/{index-CX1FV9wS.js → index-XroJ5pVT.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +8 -8
  25. package/dist/order-BEbWtrZ2.cjs +1 -0
  26. package/dist/order-CCJq_uKK.js +228 -0
  27. package/dist/src/constants/notification.d.ts +2 -0
  28. package/dist/src/storefront/api/checkout.d.ts +1 -0
  29. package/dist/src/storefront/api/index.d.ts +1 -0
  30. package/dist/src/storefront/api/order.d.ts +8 -0
  31. package/dist/src/storefront/components/CheckoutPrices/index.d.ts +2 -0
  32. package/dist/src/storefront/components/CheckoutProduct/index.d.ts +4 -0
  33. package/dist/src/storefront/components/ProtectYourCheckout/index.d.ts +12 -0
  34. package/dist/src/storefront/components/ReplacementModal/index.d.ts +16 -0
  35. package/dist/src/storefront/components/ReplacementRequestItem/index.d.ts +10 -0
  36. package/dist/src/storefront/components/index.d.ts +1 -0
  37. package/dist/src/storefront/models/checkout.d.ts +17 -1
  38. package/dist/src/storefront/models/order.d.ts +27 -0
  39. package/dist/src/storefront/store/useCartStore.d.ts +3 -0
  40. package/dist/src/ui/CheckboxSettings/index.d.ts +7 -0
  41. package/dist/src/ui/NotificationAntistock/index.d.ts +1 -0
  42. package/dist/src/ui/NotificationBuilder/index.d.ts +1 -0
  43. package/dist/src/ui/Select/index.d.ts +1 -0
  44. package/dist/src/ui/Tip/index.d.ts +2 -1
  45. package/dist/src/ui/index.d.ts +1 -0
  46. package/dist/style.css +1 -1
  47. package/dist/{subscription-DIDUTEI3.js → subscription-CZuEUgCg.js} +5 -5
  48. package/dist/{subscription-iNnLGi0T.cjs → subscription-CoDJAA04.cjs} +1 -1
  49. package/dist/{ticket-B0VGIvyK.js → ticket-BsDG_oGJ.js} +5 -5
  50. package/dist/{ticket-DXz_-29l.cjs → ticket-BxlDrXfl.cjs} +1 -1
  51. package/dist/{top-up-BhB8jhP6.js → top-up-BAPxprNh.js} +5 -5
  52. package/dist/{top-up-B7E7FUjn.cjs → top-up-u-FuienE.cjs} +1 -1
  53. package/dist/ui-components-BByJn6K_.cjs +1 -0
  54. package/dist/{ui-components-BTotDG_w.js → ui-components-Bl4srrr1.js} +1856 -1787
  55. package/dist/ui.cjs.js +1 -1
  56. package/dist/ui.es.js +43 -42
  57. package/dist/{validation-BVAD1q1L.cjs → validation-DJUVonVy.cjs} +1 -1
  58. package/dist/{validation-jCwzu5MC.js → validation-DRQEnxuG.js} +5 -5
  59. package/package.json +1 -1
  60. package/dist/charge-BAP3iPAM.cjs +0 -107
  61. package/dist/order-BOaO9a-C.cjs +0 -1
  62. package/dist/order-CdPcB1OE.js +0 -222
  63. package/dist/ui-components-CWLDlDmG.cjs +0 -1
package/dist/ui.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-CWLDlDmG.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.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.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.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-BByJn6K_.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.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.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 { Z as t, A as e, X as o, g as n, B as i, x as r, v as g, t as S, D as d, i as l, a4 as u, b as p, C as c, O as I, E as B, F as M, a2 as C, H as T, I as h, c as x, f as y, s as L, p as P, _ as f, z as m, e as U, L as b, a0 as k, M as A, N as E, V as R, Q as w, P as F, $ as G, a1 as H, G as N, R as O, y as W, S as j, a5 as q, a3 as v, S as z, Y as D, J, K, d as Q, q as V, T as X, j as Y, h as Z, w as _, U as $, W as aa } from "./ui-components-BTotDG_w.js";
1
+ import { _ as t, A as e, Y as o, g as n, B as i, y as r, w as g, v as S, G as d, i as l, k as u, a5 as c, b as p, C as I, Q as B, E as C, F as M, a3 as T, J as h, I as x, c as y, f as L, t as P, q as f, $ as m, D as b, e as k, L as U, a1 as A, M as E, N as R, X as w, V as F, P as G, a0 as H, a2 as N, H as O, R as W, z as j, S as q, a6 as v, a4 as z, S as D, Z as J, K, O as Q, d as V, s as X, T as Y, j as Z, h as _, x as $, U as aa, W as sa } from "./ui-components-Bl4srrr1.js";
2
2
  export {
3
3
  t as Accordion,
4
4
  e as AlignText,
@@ -10,47 +10,48 @@ export {
10
10
  S as CategorySettings,
11
11
  d as ChargeTypes,
12
12
  l as Checkbox,
13
- u as ChooseImage,
13
+ u as CheckboxSettings,
14
+ c as ChooseImage,
14
15
  p as ChooseImageModal,
15
- c as ConfirmationModal,
16
- I as EmptyCart,
17
- B as ErrorableBlock,
16
+ I as ConfirmationModal,
17
+ B as EmptyCart,
18
+ C as ErrorableBlock,
18
19
  M as FormSettings,
19
- C as GroupCardModal,
20
- T as HeaderButtons,
21
- h as Icon,
22
- x as InputSettings,
23
- y as InputUI,
24
- L as ItemsSettings,
25
- P as LayoutSettings,
26
- f as Link,
27
- m as ListingSelector,
28
- U as Loader,
29
- b as LoaderBuilder,
30
- k as MetaInfoPost,
31
- A as Modal,
32
- E as NotificationBuilder,
33
- R as PagesMobileMenu,
34
- w as PagesMobileModal,
35
- F as PagesSettings,
36
- G as ProductCardButtons,
37
- H as ProductCardModal,
38
- N as ProductOptions,
39
- O as RadioUI,
40
- W as RangeSelector,
41
- j as Select,
42
- q as SelectInfiniteList,
43
- v as SelectTypeText,
44
- z as SelectUI,
45
- D as ShareLink,
46
- J as ShoppingButton,
47
- K as ShoppingModalCart,
48
- Q as Switch,
49
- V as TextSettings,
50
- X as TextareaSettings,
51
- Y as TextareaUI,
52
- Z as Tip,
53
- _ as TypesText,
54
- $ as UserInfo,
55
- aa as Wrapper
20
+ T as GroupCardModal,
21
+ h as HeaderButtons,
22
+ x as Icon,
23
+ y as InputSettings,
24
+ L as InputUI,
25
+ P as ItemsSettings,
26
+ f as LayoutSettings,
27
+ m as Link,
28
+ b as ListingSelector,
29
+ k as Loader,
30
+ U as LoaderBuilder,
31
+ A as MetaInfoPost,
32
+ E as Modal,
33
+ R as NotificationBuilder,
34
+ w as PagesMobileMenu,
35
+ F as PagesMobileModal,
36
+ G as PagesSettings,
37
+ H as ProductCardButtons,
38
+ N as ProductCardModal,
39
+ O as ProductOptions,
40
+ W as RadioUI,
41
+ j as RangeSelector,
42
+ q as Select,
43
+ v as SelectInfiniteList,
44
+ z as SelectTypeText,
45
+ D as SelectUI,
46
+ J as ShareLink,
47
+ K as ShoppingButton,
48
+ Q as ShoppingModalCart,
49
+ V as Switch,
50
+ X as TextSettings,
51
+ Y as TextareaSettings,
52
+ Z as TextareaUI,
53
+ _ as Tip,
54
+ $ as TypesText,
55
+ aa as UserInfo,
56
+ sa as Wrapper
56
57
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-BAP3iPAM.cjs"),d=require("./builder-B7hjBRYI.cjs"),u=require("./ui-components-CWLDlDmG.cjs");require("./builder-components-BjoFBErH.cjs");require("./ticket-DXz_-29l.cjs");require("react-dom");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-Dj2R60Yu.cjs"),d=require("./builder-BAYgntut.cjs"),u=require("./ui-components-BByJn6K_.cjs");require("./builder-components-CitLV0Xf.cjs");require("./ticket-BxlDrXfl.cjs");require("react-dom");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,10 +1,10 @@
1
1
  import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
2
  import r from "react";
3
- import { V as g } from "./charge-BQUHzEju.js";
4
- import { V as I, M as b, ab as x, p as N } from "./builder-D_zv5ue0.js";
5
- import { I as y, f as k, g as V, e as L } from "./ui-components-BTotDG_w.js";
6
- import "./builder-components-DN-mNdj8.js";
7
- import "./ticket-B0VGIvyK.js";
3
+ import { V as g } from "./charge-DDPKMr1X.js";
4
+ import { V as I, M as b, ab as x, p as N } from "./builder-B31b5UQu.js";
5
+ import { I as y, f as k, g as V, e as L } from "./ui-components-Bl4srrr1.js";
6
+ import "./builder-components-BrUaSzmu.js";
7
+ import "./ticket-BsDG_oGJ.js";
8
8
  import "react-dom";
9
9
  const E = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C = "_info_1mxa7_31", q = "_buttons_1mxa7_38", B = "_button_1mxa7_38", M = "_input_1mxa7_50", R = "_error_1mxa7_57", t = {
10
10
  lock: E,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@billgangcom/theme-lib",
3
- "version": "1.110.7",
3
+ "version": "1.111.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"