@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.
Files changed (71) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/appointmentBooking/components/Voucher/index.js +22 -7
  10. package/es/components/booking/addons/index.js +3 -2
  11. package/es/components/booking/components/footer/amount.js +2 -2
  12. package/es/components/booking/components/footer/index.js +7 -0
  13. package/es/components/booking/components/footer/utils.d.ts +1 -1
  14. package/es/components/booking/components/footer/utils.js +5 -3
  15. package/es/components/booking/components/voucher/index.js +6 -0
  16. package/es/components/booking/components/voucher/index.less +4 -1
  17. package/es/components/booking/components/voucherModal/index.less +1 -0
  18. package/es/components/booking/info2/service/editService/index.js +33 -2
  19. package/es/components/checkout/components/WalletPassModule/index.js +1 -0
  20. package/es/components/checkout/components/WalletPassModule/utils.js +14 -3
  21. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  22. package/es/components/checkout/hooks/useWalletPass.js +310 -189
  23. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  24. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
  25. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  26. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
  27. package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
  28. package/es/components/pay/toC/index.js +66 -27
  29. package/es/components/pay/toC/model.d.ts +1 -0
  30. package/es/components/pay/toC/serve.d.ts +18 -0
  31. package/es/components/pay/toC/serve.js +29 -1
  32. package/es/components/pay/toC/utils.d.ts +2 -2
  33. package/es/components/pay/toC/utils.js +4 -0
  34. package/es/components/systemSettings/registry/components/SectionList.js +5 -1
  35. package/es/components/ticketBooking/components/addServiceVariant/addService.js +7 -4
  36. package/es/plus/walletPassGallery/serve.js +2 -0
  37. package/es/pro/Login2.0/AuthModal.js +12 -4
  38. package/es/pro/Login2.0/index.less +7 -7
  39. package/lib/components/appointmentBooking/components/Voucher/index.js +10 -2
  40. package/lib/components/booking/addons/index.js +3 -2
  41. package/lib/components/booking/components/footer/amount.js +1 -1
  42. package/lib/components/booking/components/footer/index.js +9 -0
  43. package/lib/components/booking/components/footer/utils.d.ts +1 -1
  44. package/lib/components/booking/components/footer/utils.js +5 -3
  45. package/lib/components/booking/components/voucher/index.js +6 -0
  46. package/lib/components/booking/components/voucher/index.less +4 -1
  47. package/lib/components/booking/components/voucherModal/index.less +1 -0
  48. package/lib/components/booking/info2/service/editService/index.js +48 -24
  49. package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
  50. package/lib/components/checkout/components/WalletPassModule/utils.js +13 -2
  51. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  52. package/lib/components/checkout/hooks/useWalletPass.js +151 -104
  53. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  54. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
  55. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
  56. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
  57. package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
  58. package/lib/components/pay/toC/index.js +52 -11
  59. package/lib/components/pay/toC/model.d.ts +1 -0
  60. package/lib/components/pay/toC/serve.d.ts +18 -0
  61. package/lib/components/pay/toC/serve.js +6 -0
  62. package/lib/components/pay/toC/utils.d.ts +2 -2
  63. package/lib/components/pay/toC/utils.js +4 -0
  64. package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
  65. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +11 -7
  66. package/lib/plus/walletPassGallery/serve.js +2 -0
  67. package/lib/pro/Login2.0/AuthModal.js +15 -7
  68. package/lib/pro/Login2.0/index.less +7 -7
  69. package/package.json +2 -2
  70. package/es/components/checkout/PaymentModal.d.ts +0 -31
  71. 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: ((_x = (_w = (_v = config == null ? void 0 : config.page) == null ? void 0 : _v.login) == null ? void 0 : _w.ui) == null ? void 0 : _x.themeColor) || "#7F56D9",
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: ((_n = (_m = (_l = config.page) == null ? void 0 : _l.register) == null ? void 0 : _m.ui) == null ? void 0 : _n.themeColor) || "#7F56D9",
401
- passwordRules: transformPasswordRules((_o = config.auth) == null ? void 0 : _o.password),
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.11",
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.4",
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;