@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.
- package/dist/{builder-D_zv5ue0.js → builder-B31b5UQu.js} +231 -227
- package/dist/{builder-B7hjBRYI.cjs → builder-BAYgntut.cjs} +9 -9
- package/dist/{builder-components-DN-mNdj8.js → builder-components-BrUaSzmu.js} +4 -4
- package/dist/{builder-components-BjoFBErH.cjs → builder-components-CitLV0Xf.cjs} +1 -1
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +109 -107
- package/dist/{charge-BQUHzEju.js → charge-DDPKMr1X.js} +10739 -9802
- package/dist/charge-Dj2R60Yu.cjs +109 -0
- package/dist/{checkout-uzxtu1pZ.js → checkout-CYXV8Y-_.js} +5 -5
- package/dist/{checkout-CUct7uCm.cjs → checkout-DBK6_t-t.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-CEMbDy4G.cjs → index-BCuCOhBc.cjs} +1 -1
- package/dist/{index-BBMTjm8A.cjs → index-BoPfKksa.cjs} +1 -1
- package/dist/{index-R_FZBtaZ.cjs → index-Bv1mSFy_.cjs} +1 -1
- package/dist/{index-Cbqz9kIG.cjs → index-CSe8H52Z.cjs} +1 -1
- package/dist/{index-hCDY-ip7.js → index-CWq55eW7.js} +10 -9
- package/dist/{index-CzkkQ8sH.js → index-C_XwNA_j.js} +5 -5
- package/dist/{index-CMECtXvH.js → index-CcF01H3S.js} +5 -5
- package/dist/{index-BXhAWCRX.cjs → index-CvjUdJSD.cjs} +1 -1
- package/dist/{index-BJMeFohP.js → index-CwFkr47f.js} +1 -1
- package/dist/{index-CX1FV9wS.js → index-XroJ5pVT.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +8 -8
- package/dist/order-BEbWtrZ2.cjs +1 -0
- package/dist/order-CCJq_uKK.js +228 -0
- package/dist/src/constants/notification.d.ts +2 -0
- package/dist/src/storefront/api/checkout.d.ts +1 -0
- package/dist/src/storefront/api/index.d.ts +1 -0
- package/dist/src/storefront/api/order.d.ts +8 -0
- package/dist/src/storefront/components/CheckoutPrices/index.d.ts +2 -0
- package/dist/src/storefront/components/CheckoutProduct/index.d.ts +4 -0
- package/dist/src/storefront/components/ProtectYourCheckout/index.d.ts +12 -0
- package/dist/src/storefront/components/ReplacementModal/index.d.ts +16 -0
- package/dist/src/storefront/components/ReplacementRequestItem/index.d.ts +10 -0
- package/dist/src/storefront/components/index.d.ts +1 -0
- package/dist/src/storefront/models/checkout.d.ts +17 -1
- package/dist/src/storefront/models/order.d.ts +27 -0
- package/dist/src/storefront/store/useCartStore.d.ts +3 -0
- package/dist/src/ui/CheckboxSettings/index.d.ts +7 -0
- package/dist/src/ui/NotificationAntistock/index.d.ts +1 -0
- package/dist/src/ui/NotificationBuilder/index.d.ts +1 -0
- package/dist/src/ui/Select/index.d.ts +1 -0
- package/dist/src/ui/Tip/index.d.ts +2 -1
- package/dist/src/ui/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{subscription-DIDUTEI3.js → subscription-CZuEUgCg.js} +5 -5
- package/dist/{subscription-iNnLGi0T.cjs → subscription-CoDJAA04.cjs} +1 -1
- package/dist/{ticket-B0VGIvyK.js → ticket-BsDG_oGJ.js} +5 -5
- package/dist/{ticket-DXz_-29l.cjs → ticket-BxlDrXfl.cjs} +1 -1
- package/dist/{top-up-BhB8jhP6.js → top-up-BAPxprNh.js} +5 -5
- package/dist/{top-up-B7E7FUjn.cjs → top-up-u-FuienE.cjs} +1 -1
- package/dist/ui-components-BByJn6K_.cjs +1 -0
- package/dist/{ui-components-BTotDG_w.js → ui-components-Bl4srrr1.js} +1856 -1787
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +43 -42
- package/dist/{validation-BVAD1q1L.cjs → validation-DJUVonVy.cjs} +1 -1
- package/dist/{validation-jCwzu5MC.js → validation-DRQEnxuG.js} +5 -5
- package/package.json +1 -1
- package/dist/charge-BAP3iPAM.cjs +0 -107
- package/dist/order-BOaO9a-C.cjs +0 -1
- package/dist/order-CdPcB1OE.js +0 -222
- 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-
|
|
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 {
|
|
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
|
|
13
|
+
u as CheckboxSettings,
|
|
14
|
+
c as ChooseImage,
|
|
14
15
|
p as ChooseImageModal,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
I as ConfirmationModal,
|
|
17
|
+
B as EmptyCart,
|
|
18
|
+
C as ErrorableBlock,
|
|
18
19
|
M as FormSettings,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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-
|
|
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-
|
|
4
|
-
import { V as I, M as b, ab as x, p as N } from "./builder-
|
|
5
|
-
import { I as y, f as k, g as V, e as L } from "./ui-components-
|
|
6
|
-
import "./builder-components-
|
|
7
|
-
import "./ticket-
|
|
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,
|