@pisell/private-materials 6.3.31 → 6.3.32

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 (221) 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/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  11. package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  12. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  13. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  14. package/es/components/appointmentBooking/hooks.d.ts +107 -0
  15. package/es/components/appointmentBooking/locales.d.ts +363 -0
  16. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  17. package/es/components/booking/components/footer/index.d.ts +0 -1
  18. package/es/components/booking/components/footer/utils.d.ts +41 -0
  19. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  20. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  21. package/es/components/booking/components/voucher/index.d.ts +3 -0
  22. package/es/components/booking/forms/table/index.d.ts +0 -1
  23. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
  24. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  25. package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  26. package/es/components/booking/info/main.d.ts +12 -0
  27. package/es/components/booking/info/model.d.ts +14 -0
  28. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  29. package/es/components/booking/info/service/editService/index.d.ts +7 -0
  30. package/es/components/booking/info/service/like/index.d.ts +0 -1
  31. package/es/components/booking/info/service2/utils.d.ts +1 -1
  32. package/es/components/booking/info2/index.d.ts +12 -0
  33. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  34. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  35. package/es/components/booking/info2/service/contactInfoMode/index.js +1 -0
  36. package/es/components/booking/locales.d.ts +840 -0
  37. package/es/components/booking/model.d.ts +120 -0
  38. package/es/components/booking/utils.d.ts +2 -2
  39. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  40. package/es/components/eftpos/form/index.d.ts +0 -1
  41. package/es/components/eftpos/group/index.d.ts +0 -1
  42. package/es/components/eftpos/hooks.d.ts +0 -1
  43. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  44. package/es/components/eftpos/icon/device.d.ts +0 -1
  45. package/es/components/eftpos/receipt/index.d.ts +0 -1
  46. package/es/components/eftposPay/amount.d.ts +1 -1
  47. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  48. package/es/components/eftposPay/component/fail/index.d.ts +3 -0
  49. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  50. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  51. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  52. package/es/components/eftposPay/device.d.ts +1 -1
  53. package/es/components/eftposPay/hooks.d.ts +2 -2
  54. package/es/components/eftposPay/store/index.d.ts +6 -6
  55. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  56. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  58. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  61. package/es/components/index.d.ts +22 -0
  62. package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  63. package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  66. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  67. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  68. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  69. package/es/components/ruleSetting/locales.d.ts +48 -0
  70. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  71. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  72. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  73. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  74. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  75. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  76. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  77. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  78. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  79. package/es/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  80. package/es/components/ticketBooking/index.d.ts +7 -0
  81. package/es/plus/clientName/index.d.ts +4 -0
  82. package/es/plus/clientName/type.d.ts +13 -0
  83. package/es/plus/clientName/utils.d.ts +2 -0
  84. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  85. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  86. package/es/plus/contactInfo/index.d.ts +6 -0
  87. package/es/plus/contactInfo/locales.d.ts +15 -0
  88. package/es/plus/contactInfo/types.d.ts +91 -0
  89. package/es/plus/contactInfo/utils.d.ts +7 -0
  90. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  91. package/es/plus/contactInfoModal/index.d.ts +40 -0
  92. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  93. package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
  94. package/es/plus/productSelect/index.d.ts +32 -0
  95. package/es/pro/Login2.0/Login2.js +7 -7
  96. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  97. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  98. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  99. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  100. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  101. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  102. package/es/pro/Login2.0/locales.d.ts +543 -0
  103. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  104. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  105. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  106. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  107. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  108. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  109. package/es/pro/Login2.0/steps/SetPassword.js +7 -7
  110. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  111. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  112. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  113. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  114. package/es/pro/Login2.0/types.d.ts +167 -0
  115. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  116. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
  117. package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
  118. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  119. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +3 -0
  120. package/lib/components/appointmentBooking/hooks.d.ts +107 -0
  121. package/lib/components/appointmentBooking/locales.d.ts +363 -0
  122. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  123. package/lib/components/booking/components/footer/index.d.ts +0 -1
  124. package/lib/components/booking/components/footer/utils.d.ts +41 -0
  125. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  126. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  127. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  128. package/lib/components/booking/forms/table/index.d.ts +0 -1
  129. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
  130. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  131. package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
  132. package/lib/components/booking/info/main.d.ts +12 -0
  133. package/lib/components/booking/info/model.d.ts +14 -0
  134. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  135. package/lib/components/booking/info/service/editService/index.d.ts +7 -0
  136. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  137. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  138. package/lib/components/booking/info2/index.d.ts +12 -0
  139. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  140. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  141. package/lib/components/booking/info2/service/contactInfoMode/index.js +8 -1
  142. package/lib/components/booking/locales.d.ts +840 -0
  143. package/lib/components/booking/model.d.ts +120 -0
  144. package/lib/components/booking/utils.d.ts +2 -2
  145. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  146. package/lib/components/eftpos/form/index.d.ts +0 -1
  147. package/lib/components/eftpos/group/index.d.ts +0 -1
  148. package/lib/components/eftpos/hooks.d.ts +0 -1
  149. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  150. package/lib/components/eftpos/icon/device.d.ts +0 -1
  151. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  152. package/lib/components/eftposPay/amount.d.ts +1 -1
  153. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  154. package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
  155. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  156. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  157. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  158. package/lib/components/eftposPay/device.d.ts +1 -1
  159. package/lib/components/eftposPay/hooks.d.ts +2 -2
  160. package/lib/components/eftposPay/store/index.d.ts +6 -6
  161. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  162. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  163. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  164. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  165. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  166. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  167. package/lib/components/index.d.ts +22 -0
  168. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
  169. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
  170. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  171. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  172. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  173. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  174. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  175. package/lib/components/ruleSetting/locales.d.ts +48 -0
  176. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  177. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  178. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  179. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  180. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  181. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  182. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  183. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -0
  184. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  185. package/lib/components/ticketBooking/components/timeBar/index.d.ts +12 -0
  186. package/lib/components/ticketBooking/index.d.ts +7 -0
  187. package/lib/plus/clientName/index.d.ts +4 -0
  188. package/lib/plus/clientName/type.d.ts +13 -0
  189. package/lib/plus/clientName/utils.d.ts +2 -0
  190. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  191. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  192. package/lib/plus/contactInfo/index.d.ts +6 -0
  193. package/lib/plus/contactInfo/locales.d.ts +15 -0
  194. package/lib/plus/contactInfo/types.d.ts +91 -0
  195. package/lib/plus/contactInfo/utils.d.ts +7 -0
  196. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  197. package/lib/plus/contactInfoModal/index.d.ts +40 -0
  198. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  199. package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
  200. package/lib/plus/productSelect/index.d.ts +32 -0
  201. package/lib/pro/Login2.0/Login2.js +7 -7
  202. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  203. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  204. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  205. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  206. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  207. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  208. package/lib/pro/Login2.0/locales.d.ts +543 -0
  209. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  210. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  211. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  212. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  213. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  214. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  215. package/lib/pro/Login2.0/steps/SetPassword.js +7 -7
  216. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  217. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  218. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  219. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  220. package/lib/pro/Login2.0/types.d.ts +167 -0
  221. package/package.json +3 -3
@@ -0,0 +1,91 @@
1
+ import React, { CSSProperties } from 'react';
2
+ /**
3
+ * 联系信息数据
4
+ */
5
+ export interface ContactInfoData {
6
+ first_name?: string;
7
+ last_name?: string;
8
+ phone?: {
9
+ phone: string;
10
+ country_calling_code: string;
11
+ country_code?: string;
12
+ };
13
+ email?: string;
14
+ avatar?: string;
15
+ }
16
+ /**
17
+ * 卡片布局类型
18
+ */
19
+ export declare type Direction = 'horizontal' | 'vertical';
20
+ /**
21
+ * 头像尺寸类型
22
+ */
23
+ export declare type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
24
+ /**
25
+ * 头像形状类型
26
+ */
27
+ export declare type AvatarShape = 'circle' | 'square';
28
+ /**
29
+ * 头像配置
30
+ */
31
+ export interface AvatarConfig {
32
+ shape?: AvatarShape;
33
+ borderRadius?: number;
34
+ size?: AvatarSize;
35
+ useTextAvatar?: boolean;
36
+ children?: string;
37
+ }
38
+ /**
39
+ * 姓名样式配置
40
+ */
41
+ export interface NameStyle {
42
+ fontSize?: number | string;
43
+ fontWeight?: number | string;
44
+ color?: string;
45
+ textDecoration?: string;
46
+ }
47
+ export interface StyleConfig {
48
+ width?: number | string;
49
+ border?: 'solid' | 'unset';
50
+ borderWidth?: number | string;
51
+ borderColor?: string;
52
+ borderRadius?: number | string;
53
+ padding?: number | string;
54
+ [key: string]: any;
55
+ }
56
+ /**
57
+ * 文本样式配置
58
+ */
59
+ export interface TextStyle {
60
+ fontSize?: number | string;
61
+ fontWeight?: number | string;
62
+ color?: string;
63
+ }
64
+ /**
65
+ * ContactInfo 组件属性接口
66
+ */
67
+ export interface ContactInfoProps {
68
+ dataSource?: ContactInfoData;
69
+ defaultName?: string;
70
+ placeholder?: string | React.ReactNode;
71
+ isShowDelete?: boolean;
72
+ children?: React.ReactNode;
73
+ direction?: Direction;
74
+ horizontalGap?: number | string;
75
+ verticalGap?: number | string;
76
+ isShowAvatar?: boolean;
77
+ isShowPhone?: boolean;
78
+ isShowEmail?: boolean;
79
+ avatar?: AvatarConfig;
80
+ style?: StyleConfig;
81
+ nameStyle?: NameStyle;
82
+ textStyle?: TextStyle;
83
+ placeholderStyle?: CSSProperties;
84
+ button?: {
85
+ addButtonIcon?: string;
86
+ editButtonIcon?: string;
87
+ };
88
+ onSave?: (value: any) => void;
89
+ onDelete?: () => void;
90
+ onCancel?: () => void;
91
+ }
@@ -0,0 +1,7 @@
1
+ interface FieldMapping<T = any, R = any> {
2
+ [key: string]: string | ((data: T) => R) | undefined;
3
+ }
4
+ export declare function getFieldValue<T, R = any>(data: T, fieldKey: string): R | undefined;
5
+ export declare function getFieldValue<T, R = any>(data: T, fieldKey: string, mapping: FieldMapping<T, R>): R | undefined;
6
+ export declare const getAvatarText: (name: string) => string;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const ContactInfoContent: (props: any) => JSX.Element;
3
+ export default ContactInfoContent;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ContactInfoModalProps {
4
+ open: boolean;
5
+ title?: string;
6
+ onCancel: () => void;
7
+ onSave: (values: any) => void;
8
+ isShowDelete?: boolean;
9
+ onDelete: () => void;
10
+ dataSource?: {
11
+ first_name?: string;
12
+ last_name?: string;
13
+ email?: string;
14
+ phone?: {
15
+ phone: string;
16
+ country_calling_code: string;
17
+ country_code?: string;
18
+ };
19
+ };
20
+ config?: {
21
+ first_name?: {
22
+ visible?: boolean;
23
+ required?: boolean;
24
+ };
25
+ last_name?: {
26
+ visible?: boolean;
27
+ required?: boolean;
28
+ };
29
+ phone?: {
30
+ visible?: boolean;
31
+ required?: boolean;
32
+ };
33
+ email?: {
34
+ visible?: boolean;
35
+ required?: boolean;
36
+ };
37
+ };
38
+ }
39
+ declare const ContactInfoModal: React.FC<ContactInfoModalProps>;
40
+ export default ContactInfoModal;
@@ -0,0 +1,66 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.text.button.save': string;
4
+ 'pisell2.text.button.delete': string;
5
+ 'pisell2.text.button.cancel': string;
6
+ 'pisell2.text.contact-info.actions.delete': string;
7
+ 'pisell2.text.contact-info.modal.title': string;
8
+ 'pisell2.text.contact-info.modal.first-name': string;
9
+ 'pisell2.text.contact-info.modal.first-name-placeholder': string;
10
+ 'pisell2.text.contact-info.modal.first-name-required': string;
11
+ 'pisell2.text.contact-info.modal.last-name': string;
12
+ 'pisell2.text.contact-info.modal.last-name-placeholder': string;
13
+ 'pisell2.text.contact-info.modal.last-name-required': string;
14
+ 'pisell2.text.contact-info.modal.mobile': string;
15
+ 'pisell2.text.contact-info.modal.mobile-placeholder': string;
16
+ 'pisell2.text.contact-info.modal.mobile-required': string;
17
+ 'pisell2.text.contact-info.modal.mobile-error': string;
18
+ 'pisell2.text.contact-info.modal.email': string;
19
+ 'pisell2.text.contact-info.modal.email-placeholder': string;
20
+ 'pisell2.text.contact-info.modal.email-required': string;
21
+ 'pisell2.text.contact-info.modal.email-error': string;
22
+ };
23
+ 'zh-CN': {
24
+ 'pisell2.text.button.save': string;
25
+ 'pisell2.text.button.delete': string;
26
+ 'pisell2.text.button.cancel': string;
27
+ 'pisell2.text.contact-info.actions.delete': string;
28
+ 'pisell2.text.contact-info.modal.title': string;
29
+ 'pisell2.text.contact-info.modal.first-name': string;
30
+ 'pisell2.text.contact-info.modal.first-name-placeholder': string;
31
+ 'pisell2.text.contact-info.modal.first-name-required': string;
32
+ 'pisell2.text.contact-info.modal.last-name': string;
33
+ 'pisell2.text.contact-info.modal.last-name-placeholder': string;
34
+ 'pisell2.text.contact-info.modal.last-name-required': string;
35
+ 'pisell2.text.contact-info.modal.mobile': string;
36
+ 'pisell2.text.contact-info.modal.mobile-placeholder': string;
37
+ 'pisell2.text.contact-info.modal.mobile-required': string;
38
+ 'pisell2.text.contact-info.modal.mobile-error': string;
39
+ 'pisell2.text.contact-info.modal.email': string;
40
+ 'pisell2.text.contact-info.modal.email-placeholder': string;
41
+ 'pisell2.text.contact-info.modal.email-required': string;
42
+ 'pisell2.text.contact-info.modal.email-error': string;
43
+ };
44
+ 'zh-HK': {
45
+ 'pisell2.text.button.save': string;
46
+ 'pisell2.text.button.delete': string;
47
+ 'pisell2.text.button.cancel': string;
48
+ 'pisell2.text.contact-info.actions.delete': string;
49
+ 'pisell2.text.contact-info.modal.title': string;
50
+ 'pisell2.text.contact-info.modal.first-name': string;
51
+ 'pisell2.text.contact-info.modal.first-name-placeholder': string;
52
+ 'pisell2.text.contact-info.modal.first-name-required': string;
53
+ 'pisell2.text.contact-info.modal.last-name': string;
54
+ 'pisell2.text.contact-info.modal.last-name-placeholder': string;
55
+ 'pisell2.text.contact-info.modal.last-name-required': string;
56
+ 'pisell2.text.contact-info.modal.mobile': string;
57
+ 'pisell2.text.contact-info.modal.mobile-placeholder': string;
58
+ 'pisell2.text.contact-info.modal.mobile-required': string;
59
+ 'pisell2.text.contact-info.modal.mobile-error': string;
60
+ 'pisell2.text.contact-info.modal.email': string;
61
+ 'pisell2.text.contact-info.modal.email-placeholder': string;
62
+ 'pisell2.text.contact-info.modal.email-required': string;
63
+ 'pisell2.text.contact-info.modal.email-error': string;
64
+ };
65
+ };
66
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import React from 'react';
2
+ import ProductCardSkeleton from './ProductCardSkeleton';
3
+ import './index.less';
4
+ declare type BoolConfigVal = 0 | 1;
5
+ export interface ProductCardConfig {
6
+ isProductCover?: BoolConfigVal;
7
+ imgWidth?: string;
8
+ imgHeight?: string;
9
+ radius?: number;
10
+ isTitle?: BoolConfigVal;
11
+ isSubtitle?: BoolConfigVal;
12
+ showSpec?: boolean;
13
+ isTag?: BoolConfigVal;
14
+ isPrice?: BoolConfigVal;
15
+ isOriginPrice?: BoolConfigVal;
16
+ showZeroPrice?: boolean;
17
+ showMarketingTag?: boolean;
18
+ showRemark?: boolean;
19
+ isStock?: BoolConfigVal;
20
+ }
21
+ export interface ProductCardProps {
22
+ item: any;
23
+ index: number;
24
+ context?: {
25
+ onItemIntersectionIn: (item: any) => void;
26
+ onItemIntersectionOut: (item: any) => void;
27
+ };
28
+ className?: string;
29
+ onSelectProduct?: (item: any) => void;
30
+ currentProductId?: number;
31
+ onSelect?: (item: any) => void;
32
+ onSelectCover?: (item: any) => void;
33
+ onSelectInfo?: (item: any) => void;
34
+ isSelected?: boolean;
35
+ decorateConfig?: ProductCardConfig;
36
+ }
37
+ export declare const ProductCard: React.MemoExoticComponent<({ item, index, context, onSelect, onSelectCover, onSelectInfo, isSelected, className, decorateConfig, }: ProductCardProps) => JSX.Element>;
38
+ export declare const DefaultItemContent: React.MemoExoticComponent<(props: {
39
+ item: any;
40
+ index: number;
41
+ context?: {
42
+ onItemIntersectionIn: (item: any) => void;
43
+ onItemIntersectionOut: (item: any) => void;
44
+ } | undefined;
45
+ }) => JSX.Element>;
46
+ export default ProductCard;
47
+ export { ProductCardSkeleton };
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ProductSelectProps {
4
+ dataSource: any[];
5
+ showSearch?: boolean;
6
+ showTab?: boolean;
7
+ layout?: {
8
+ grid: boolean;
9
+ config: string;
10
+ };
11
+ onChange: (value: any, type?: string) => void;
12
+ value?: number;
13
+ loading?: boolean;
14
+ style?: React.CSSProperties;
15
+ emptyDescription?: string;
16
+ /** 当前滚动元素 */
17
+ scrollDom?: string;
18
+ /** 商品列表上方的其它组件 */
19
+ offsetDom?: any;
20
+ /** 样式变量 */
21
+ token?: Partial<any>;
22
+ /** 后台装修单选模式下的已选中项 */
23
+ selectedItems?: Array<any>;
24
+ /** 后台装修配置 */
25
+ productListSetting?: Partial<any>;
26
+ /** 兼容scrollDom */
27
+ customScrollParent?: HTMLElement | string;
28
+ hideCategoryWhenOne?: boolean;
29
+ }
30
+ export declare const PREFIX = "pisell-product-select";
31
+ declare const index: ({ dataSource, emptyDescription, showSearch, scrollDom, offsetDom, style, token: customToken, onChange, value, selectedItems, productListSetting, customScrollParent, loading, layout, hideCategoryWhenOne, ...rest }: ProductSelectProps) => JSX.Element;
32
+ export default index;
@@ -88,13 +88,13 @@ var Login2 = ({
88
88
  translate: import_utils.locales.getText,
89
89
  fallbackMinLength: 6,
90
90
  messageKeys: {
91
- required: "pisell-login2-password-required",
92
- minLength: "pisell-set-password-min-length",
93
- requireUppercase: "pisell-set-password-require-uppercase",
94
- requireLowercase: "pisell-set-password-require-lowercase",
95
- requireNumber: "pisell-set-password-require-number",
96
- requireSpecialCharacters: "pisell-set-password-require-special",
97
- summary: "pisell-set-password-must-contain"
91
+ required: import_utils.locales.getText("pisell-login2-password-required"),
92
+ minLength: import_utils.locales.getText("pisell-set-password-min-length"),
93
+ requireUppercase: import_utils.locales.getText("pisell-set-password-require-uppercase"),
94
+ requireLowercase: import_utils.locales.getText("pisell-set-password-require-lowercase"),
95
+ requireNumber: import_utils.locales.getText("pisell-set-password-require-number"),
96
+ requireSpecialCharacters: import_utils.locales.getText("pisell-set-password-require-special"),
97
+ summary: import_utils.locales.getText("pisell-set-password-must-contain")
98
98
  }
99
99
  }
100
100
  );
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { PhoneValueObject } from './PhoneInput';
3
+ export interface ForgotPasswordFlowProps {
4
+ /** 初始账号(可选,如果用户在登录页已输入) */
5
+ initialEmail?: string | PhoneValueObject;
6
+ /** 账号类型 */
7
+ accountType: 'email' | 'phone';
8
+ /** 发送验证码回调 */
9
+ onSendCode?: (account: string | PhoneValueObject) => Promise<void>;
10
+ /** 验证验证码回调 */
11
+ onVerifyCode?: (account: string | PhoneValueObject, code: string) => Promise<void>;
12
+ /** 发送重置密码链接回调 */
13
+ onSendResetLink?: (account: string) => Promise<void>;
14
+ /** 重置密码回调 */
15
+ onResetPassword?: (account: string | PhoneValueObject, password: string, code: string) => Promise<void>;
16
+ /** 返回登录页 */
17
+ onBack?: () => void;
18
+ /** 加载状态 */
19
+ loading?: boolean;
20
+ /** 倒计时 */
21
+ countdown?: number;
22
+ /** 可用的国家/地区列表 */
23
+ countries?: Array<{
24
+ name: string;
25
+ code: string;
26
+ calling_code: string;
27
+ currency_code: string;
28
+ }>;
29
+ }
30
+ declare function ForgotPasswordFlow({ initialEmail, accountType, onSendCode, onVerifyCode, onResetPassword, onSendResetLink, onBack, loading, countdown, countries, }: ForgotPasswordFlowProps): JSX.Element | null;
31
+ export default ForgotPasswordFlow;
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ export interface LoginCodeInputProps {
3
+ /** 账号(邮箱或手机号) */
4
+ account: string;
5
+ /** 账号类型 */
6
+ accountType: 'email' | 'phone';
7
+ /** 验证码长度 */
8
+ codeLength?: number;
9
+ /** 提交验证码 */
10
+ onSubmit?: (code: string) => void;
11
+ /** 重新发送 */
12
+ onResend?: () => void;
13
+ /** 返回 */
14
+ onBack?: () => void;
15
+ /** 倒计时秒数 */
16
+ countdown?: number;
17
+ /** 加载状态 */
18
+ loading?: boolean;
19
+ /** 按钮文案(默认为"Log in",忘记密码场景为"Verify") */
20
+ submitButtonText?: string;
21
+ /** 错误信息 */
22
+ error?: string;
23
+ /** 当用户输入时清除错误的回调 */
24
+ onClearError?: () => void;
25
+ }
26
+ declare function LoginCodeInput({ account, accountType, codeLength, onSubmit, onResend, onBack, countdown, loading, submitButtonText, error, onClearError, }: LoginCodeInputProps): JSX.Element;
27
+ export default LoginCodeInput;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ export interface OAuthProviderConfig {
3
+ key: string;
4
+ label: React.ReactNode;
5
+ onClick: () => void;
6
+ icon?: React.ReactNode;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ badge?: string;
10
+ badgeClassName?: string;
11
+ }
12
+ export interface OAuthButtonGroupProps {
13
+ providers: OAuthProviderConfig[];
14
+ layout?: 'vertical' | 'horizontal';
15
+ size?: 'large' | 'middle' | 'small';
16
+ block?: boolean;
17
+ wrapperClassName?: string;
18
+ buttonClassName?: string;
19
+ gap?: number;
20
+ }
21
+ declare const OAuthButtonGroup: React.FC<OAuthButtonGroupProps>;
22
+ export default OAuthButtonGroup;
@@ -0,0 +1,53 @@
1
+ import React from 'react';
2
+ import './PhoneInput.less';
3
+ /** 国家/地区配置(后端返回格式) */
4
+ export interface CountryOption {
5
+ /** 国家/地区名称 */
6
+ name: string;
7
+ /** 国家/地区代码 */
8
+ code: string;
9
+ /** 区号(不带+号) */
10
+ calling_code: string;
11
+ /** 货币代码 */
12
+ currency_code: string;
13
+ }
14
+ /** 手机号对象格式 */
15
+ export interface PhoneValueObject {
16
+ /** 手机号(不含区号) */
17
+ phone: string;
18
+ /** 国家区号(不带+号) */
19
+ country_calling_code: string;
20
+ }
21
+ /** 值格式类型 */
22
+ export declare type ValueFormat = 'string' | 'object';
23
+ /** 手机号输入组件属性 */
24
+ export interface PhoneInputProps {
25
+ /** 完整的手机号值(包含区号),格式:+86138****,或 +1555****(字符串模式) */
26
+ value?: string | PhoneValueObject;
27
+ /** 值变化回调 */
28
+ onChange?: (value: string | PhoneValueObject) => void;
29
+ /** Placeholder */
30
+ placeholder?: string;
31
+ /** 大小 */
32
+ size?: 'large' | 'middle' | 'small';
33
+ /** 是否禁用 */
34
+ disabled?: boolean;
35
+ /** 自定义类名 */
36
+ className?: string;
37
+ /** 可用的国家/地区列表 */
38
+ countries?: CountryOption[];
39
+ /** 默认国家/地区代码 */
40
+ defaultCountry?: string;
41
+ /** 值格式:'string' 返回 "+8613800138000",'object' 返回 { phone: "13800138000", country_calling_code: "86" } */
42
+ valueFormat?: ValueFormat;
43
+ /** 键盘按键事件回调 */
44
+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
45
+ }
46
+ /**
47
+ * 手机号输入组件
48
+ *
49
+ * 支持国际区号选择和手机号输入
50
+ * 值格式:+区号+手机号,例如:+8613800138000 或 +15551234567
51
+ */
52
+ declare function PhoneInput({ value, onChange, placeholder, onKeyDown, size, disabled, className, countries, defaultCountry, valueFormat, }: PhoneInputProps): JSX.Element;
53
+ export default PhoneInput;
@@ -0,0 +1,17 @@
1
+ import { PhoneValueObject } from './PhoneInput';
2
+ declare type GetTextFunction = (key: string) => string;
3
+ /**
4
+ * 手机号校验函数,用于 Ant Design Form 的 rules
5
+ * @param value 手机号值,可以是字符串或对象格式
6
+ * @param getText 国际化文本获取函数
7
+ * @returns Promise<void> 校验通过时 resolve,失败时 reject 并返回错误信息
8
+ */
9
+ export declare const validatePhoneNumber: (value: string | PhoneValueObject, getText: GetTextFunction) => Promise<void>;
10
+ /**
11
+ * 创建手机号校验规则,用于 Form.Item 的 rules 属性
12
+ * @param getText 国际化文本获取函数
13
+ * @param required 是否必填
14
+ * @returns Form 校验规则数组
15
+ */
16
+ export declare const createPhoneValidationRules: (getText: GetTextFunction, required?: boolean) => any[];
17
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { Rule } from 'antd/es/form';
2
+ export interface PasswordRuleConfig {
3
+ minLength?: number;
4
+ requireUppercase?: boolean;
5
+ requireLowercase?: boolean;
6
+ requireNumber?: boolean;
7
+ requireSpecialCharacters?: boolean;
8
+ }
9
+ interface PasswordRuleMessages {
10
+ required?: string;
11
+ minLength?: string;
12
+ requireUppercase?: string;
13
+ requireLowercase?: string;
14
+ requireNumber?: string;
15
+ requireSpecialCharacters?: string;
16
+ summary?: string;
17
+ }
18
+ interface UsePasswordValidationRulesOptions {
19
+ translate?: (key: string) => string;
20
+ fallbackMinLength?: number;
21
+ messageKeys?: PasswordRuleMessages;
22
+ }
23
+ export declare const usePasswordValidationRules: (passwordRules?: PasswordRuleConfig, options?: UsePasswordValidationRulesOptions) => Rule[];
24
+ export default usePasswordValidationRules;