@pisell/private-materials 6.6.11 → 6.6.12
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Voucher/index.js +22 -7
- package/es/components/booking/addons/index.js +3 -2
- package/es/components/booking/components/footer/amount.js +2 -2
- package/es/components/booking/components/footer/index.js +7 -0
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +5 -3
- package/es/components/booking/components/voucher/index.js +6 -0
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/info2/service/editService/index.js +33 -2
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +14 -3
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +310 -189
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +66 -27
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/systemSettings/registry/components/SectionList.js +5 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
- package/es/plus/walletPassGallery/serve.js +2 -0
- package/es/pro/Login2.0/AuthModal.js +12 -4
- package/es/pro/Login2.0/index.less +7 -7
- package/lib/components/appointmentBooking/components/Voucher/index.js +10 -2
- package/lib/components/booking/addons/index.js +3 -2
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +9 -0
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +5 -3
- package/lib/components/booking/components/voucher/index.js +6 -0
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/info2/service/editService/index.js +48 -24
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +13 -2
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +151 -104
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +52 -11
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
- package/lib/plus/walletPassGallery/serve.js +2 -0
- package/lib/pro/Login2.0/AuthModal.js +15 -7
- package/lib/pro/Login2.0/index.less +7 -7
- package/package.json +2 -2
- package/es/components/checkout/PaymentModal.d.ts +0 -31
- package/lib/components/checkout/PaymentModal.d.ts +0 -31
|
@@ -81,7 +81,7 @@ var AuthModal = () => {
|
|
|
81
81
|
}
|
|
82
82
|
}, [currentView]);
|
|
83
83
|
const login2Config = (0, import_react.useMemo)(() => {
|
|
84
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
84
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
85
85
|
if (!localesInitialized) {
|
|
86
86
|
return {
|
|
87
87
|
loginMethods: [],
|
|
@@ -262,9 +262,13 @@ var AuthModal = () => {
|
|
|
262
262
|
show: (config == null ? void 0 : config.logo) ? true : false,
|
|
263
263
|
url: config == null ? void 0 : config.logo,
|
|
264
264
|
// 直接从 config.logo 读取
|
|
265
|
-
position: "center"
|
|
265
|
+
position: "center",
|
|
266
|
+
size: {
|
|
267
|
+
width: ((_v = config == null ? void 0 : config.logoSize) == null ? void 0 : _v.width) || 48,
|
|
268
|
+
height: ((_w = config == null ? void 0 : config.logoSize) == null ? void 0 : _w.height) || 48
|
|
269
|
+
}
|
|
266
270
|
} : void 0,
|
|
267
|
-
themeColor: ((
|
|
271
|
+
themeColor: ((_z = (_y = (_x = config == null ? void 0 : config.page) == null ? void 0 : _x.login) == null ? void 0 : _y.ui) == null ? void 0 : _z.themeColor) || "#7F56D9",
|
|
268
272
|
formLabels: {
|
|
269
273
|
email: { show: false },
|
|
270
274
|
phone: { show: false },
|
|
@@ -275,7 +279,7 @@ var AuthModal = () => {
|
|
|
275
279
|
};
|
|
276
280
|
}, [config, channel, emailLinkVerification, localesInitialized]);
|
|
277
281
|
const register2Config = (0, import_react.useMemo)(() => {
|
|
278
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
282
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
279
283
|
if (!localesInitialized) {
|
|
280
284
|
return {
|
|
281
285
|
registrationMethods: [],
|
|
@@ -395,10 +399,14 @@ var AuthModal = () => {
|
|
|
395
399
|
show: config.logo ? true : false,
|
|
396
400
|
url: config.logo,
|
|
397
401
|
// 直接从 config.logo 读取
|
|
398
|
-
position: "center"
|
|
402
|
+
position: "center",
|
|
403
|
+
size: {
|
|
404
|
+
width: ((_l = config == null ? void 0 : config.logoSize) == null ? void 0 : _l.width) || 48,
|
|
405
|
+
height: ((_m = config == null ? void 0 : config.logoSize) == null ? void 0 : _m.height) || 48
|
|
406
|
+
}
|
|
399
407
|
} : void 0,
|
|
400
|
-
themeColor: ((
|
|
401
|
-
passwordRules: transformPasswordRules((
|
|
408
|
+
themeColor: ((_p = (_o = (_n = config.page) == null ? void 0 : _n.register) == null ? void 0 : _o.ui) == null ? void 0 : _p.themeColor) || "#7F56D9",
|
|
409
|
+
passwordRules: transformPasswordRules((_q = config.auth) == null ? void 0 : _q.password),
|
|
402
410
|
// 传递密码规则
|
|
403
411
|
formLabels: {
|
|
404
412
|
email: { show: false },
|
|
@@ -326,21 +326,21 @@
|
|
|
326
326
|
.login2-submit-button {
|
|
327
327
|
height: 44px;
|
|
328
328
|
border-radius: 8px;
|
|
329
|
-
border: 1px solid var(--theme-color, #7f56d9);
|
|
330
|
-
background: var(--theme-color, #7f56d9);
|
|
329
|
+
border: 1px solid var(--custom-button-bg-color, var(--theme-color, #7f56d9));
|
|
330
|
+
background: var(--custom-button-bg-color, var(--theme-color, #7f56d9));
|
|
331
331
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
332
332
|
font-size: 16px;
|
|
333
333
|
font-weight: 600;
|
|
334
|
-
color: #ffffff;
|
|
334
|
+
color: var(--custom-button-text-color, #ffffff);
|
|
335
335
|
|
|
336
336
|
&:hover:not(:disabled) {
|
|
337
|
-
background: #6941c6;
|
|
338
|
-
border-color: #6941c6;
|
|
337
|
+
background: var(--custom-button-bg-color, #6941c6);
|
|
338
|
+
border-color: var(--custom-button-bg-color, #6941c6);
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
&:focus {
|
|
342
|
-
background: var(--theme-color, #7f56d9);
|
|
343
|
-
border-color: var(--theme-color, #7f56d9);
|
|
342
|
+
background: var(--custom-button-bg-color, var(--theme-color, #7f56d9));
|
|
343
|
+
border-color: var(--custom-button-bg-color, var(--theme-color, #7f56d9));
|
|
344
344
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05),
|
|
345
345
|
0px 0px 0px 4px rgba(127, 86, 217, 0.1);
|
|
346
346
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.12",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
64
|
"@pisell/utils": "3.0.2",
|
|
65
|
-
"@pisell/materials": "6.6.
|
|
65
|
+
"@pisell/materials": "6.6.5",
|
|
66
66
|
"@pisell/icon": "0.0.11",
|
|
67
67
|
"@pisell/date-picker": "3.0.7"
|
|
68
68
|
},
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface PaymentModalData {
|
|
4
|
-
order_info: any;
|
|
5
|
-
subtotal_info: {
|
|
6
|
-
subTotalList: any[];
|
|
7
|
-
orderTotalList: any[];
|
|
8
|
-
total: number;
|
|
9
|
-
showDetail: boolean;
|
|
10
|
-
};
|
|
11
|
-
total: any;
|
|
12
|
-
}
|
|
13
|
-
interface PaymentModalProps {
|
|
14
|
-
open?: boolean;
|
|
15
|
-
data?: PaymentModalData;
|
|
16
|
-
callback?: (result: any) => void;
|
|
17
|
-
onClose?: (reset?: boolean) => void;
|
|
18
|
-
dispatch?: (action: {
|
|
19
|
-
type: string;
|
|
20
|
-
payload?: any;
|
|
21
|
-
}) => void;
|
|
22
|
-
state?: any;
|
|
23
|
-
}
|
|
24
|
-
interface PaymentModalMainProps extends PaymentModalProps {
|
|
25
|
-
onClose?: (reset?: boolean) => void;
|
|
26
|
-
setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
|
|
27
|
-
editOrderId?: number;
|
|
28
|
-
}
|
|
29
|
-
declare const PaymentModal: React.FC<PaymentModalMainProps>;
|
|
30
|
-
export type { PaymentModalData, PaymentModalProps };
|
|
31
|
-
export default PaymentModal;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface PaymentModalData {
|
|
4
|
-
order_info: any;
|
|
5
|
-
subtotal_info: {
|
|
6
|
-
subTotalList: any[];
|
|
7
|
-
orderTotalList: any[];
|
|
8
|
-
total: number;
|
|
9
|
-
showDetail: boolean;
|
|
10
|
-
};
|
|
11
|
-
total: any;
|
|
12
|
-
}
|
|
13
|
-
interface PaymentModalProps {
|
|
14
|
-
open?: boolean;
|
|
15
|
-
data?: PaymentModalData;
|
|
16
|
-
callback?: (result: any) => void;
|
|
17
|
-
onClose?: (reset?: boolean) => void;
|
|
18
|
-
dispatch?: (action: {
|
|
19
|
-
type: string;
|
|
20
|
-
payload?: any;
|
|
21
|
-
}) => void;
|
|
22
|
-
state?: any;
|
|
23
|
-
}
|
|
24
|
-
interface PaymentModalMainProps extends PaymentModalProps {
|
|
25
|
-
onClose?: (reset?: boolean) => void;
|
|
26
|
-
setEditCartMode?: (order_id: number, payData: any, closeModal: boolean) => void;
|
|
27
|
-
editOrderId?: number;
|
|
28
|
-
}
|
|
29
|
-
declare const PaymentModal: React.FC<PaymentModalMainProps>;
|
|
30
|
-
export type { PaymentModalData, PaymentModalProps };
|
|
31
|
-
export default PaymentModal;
|