@pisell/private-materials 6.3.30 → 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 (287) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +9 -1
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
  13. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +267 -76
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  15. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  16. package/es/components/appointmentBooking/hooks.js +30 -30
  17. package/es/components/appointmentBooking/locales.d.ts +3 -0
  18. package/es/components/appointmentBooking/locales.js +9 -6
  19. package/es/components/booking/addons/model.d.ts +10 -1
  20. package/es/components/booking/components/footer/index.js +4 -1
  21. package/es/components/booking/components/footer/utils.js +62 -46
  22. package/es/components/booking/forms/model.d.ts +10 -1
  23. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
  24. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  25. package/es/components/booking/info/main.js +3 -2
  26. package/es/components/booking/info/model.d.ts +10 -1
  27. package/es/components/booking/info/model.js +5 -0
  28. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  29. package/es/components/booking/info2/index.js +3 -2
  30. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  31. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  32. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  33. package/es/components/booking/locales.d.ts +3 -0
  34. package/es/components/booking/locales.js +9 -3
  35. package/es/components/booking/model.d.ts +13 -1
  36. package/es/components/booking/model.js +3 -0
  37. package/es/components/booking/notes/model.d.ts +10 -1
  38. package/es/components/booking/payments/model.d.ts +10 -1
  39. package/es/components/eftposPay/amount.d.ts +1 -1
  40. package/es/components/eftposPay/device.d.ts +1 -1
  41. package/es/components/eftposPay/store/index.d.ts +2 -2
  42. package/es/components/pay/toC/model.d.ts +9 -1
  43. package/es/components/schedules/model.d.ts +9 -1
  44. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  45. package/es/components/wallet/Detail/model.d.ts +13 -1
  46. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  47. package/es/components/wallet/PointCard/model.d.ts +13 -1
  48. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  49. package/es/components/wallet/Voucher/model.d.ts +13 -1
  50. package/es/components/wallet/model.d.ts +9 -1
  51. package/es/index.d.ts +3 -0
  52. package/es/index.js +4 -1
  53. package/es/plus/clientName/index.d.ts +4 -0
  54. package/es/plus/clientName/index.js +18 -0
  55. package/es/plus/clientName/index.less +10 -0
  56. package/es/plus/clientName/type.d.ts +13 -0
  57. package/es/plus/clientName/type.js +1 -0
  58. package/es/plus/clientName/utils.d.ts +2 -0
  59. package/es/plus/clientName/utils.js +18 -0
  60. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  61. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  62. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  63. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  64. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  65. package/es/plus/contactInfo/index.d.ts +6 -0
  66. package/es/plus/contactInfo/index.js +198 -0
  67. package/es/plus/contactInfo/index.less +621 -0
  68. package/es/plus/contactInfo/locales.d.ts +15 -0
  69. package/es/plus/contactInfo/locales.js +14 -0
  70. package/es/plus/contactInfo/types.d.ts +91 -0
  71. package/es/plus/contactInfo/types.js +1 -0
  72. package/es/plus/contactInfo/utils.d.ts +7 -0
  73. package/es/plus/contactInfo/utils.js +50 -0
  74. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  75. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  76. package/es/plus/contactInfoModal/index.d.ts +40 -0
  77. package/es/plus/contactInfoModal/index.js +154 -0
  78. package/es/plus/contactInfoModal/index.less +19 -0
  79. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  80. package/es/plus/contactInfoModal/locales.js +65 -0
  81. package/es/pro/Login2.0/AuthModal.d.ts +143 -0
  82. package/es/pro/Login2.0/AuthModal.js +624 -0
  83. package/es/pro/Login2.0/Login2.d.ts +61 -0
  84. package/es/pro/Login2.0/Login2.js +2157 -0
  85. package/es/pro/Login2.0/Register2.d.ts +65 -0
  86. package/es/pro/Login2.0/Register2.js +1501 -0
  87. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  88. package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
  89. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  90. package/es/pro/Login2.0/components/LegalTerms.js +51 -0
  91. package/es/pro/Login2.0/components/LegalTerms.less +74 -0
  92. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  93. package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
  94. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  95. package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
  96. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  97. package/es/pro/Login2.0/components/PhoneInput.js +414 -0
  98. package/es/pro/Login2.0/components/PhoneInput.less +148 -0
  99. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  100. package/es/pro/Login2.0/components/phoneValidation.js +228 -0
  101. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  102. package/es/pro/Login2.0/hooks/index.js +1 -0
  103. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  104. package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
  105. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  106. package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
  107. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  108. package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
  109. package/es/pro/Login2.0/index.js +8 -0
  110. package/es/pro/Login2.0/index.less +993 -0
  111. package/es/pro/Login2.0/locales.d.ts +543 -0
  112. package/es/pro/Login2.0/locales.js +622 -0
  113. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  114. package/es/pro/Login2.0/shared/Header.js +42 -0
  115. package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  116. package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
  117. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  118. package/es/pro/Login2.0/shared/registerFlow.js +171 -0
  119. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  120. package/es/pro/Login2.0/shared/types.js +1 -0
  121. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  122. package/es/pro/Login2.0/steps/CodeInput.js +209 -0
  123. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  124. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
  125. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  126. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
  127. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  128. package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
  129. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  130. package/es/pro/Login2.0/steps/SetPassword.js +148 -0
  131. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  132. package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
  133. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  134. package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
  135. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  136. package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
  137. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  138. package/es/pro/Login2.0/steps/index.js +11 -0
  139. package/es/pro/Login2.0/steps/steps.less +423 -0
  140. package/es/pro/Login2.0/types.d.ts +167 -0
  141. package/es/pro/Login2.0/types.js +1 -0
  142. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  143. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
  144. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
  145. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  146. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  147. package/lib/components/appointmentBooking/hooks.js +73 -35
  148. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  149. package/lib/components/appointmentBooking/locales.js +6 -3
  150. package/lib/components/booking/addons/model.d.ts +10 -1
  151. package/lib/components/booking/components/footer/index.js +4 -1
  152. package/lib/components/booking/components/footer/utils.js +70 -38
  153. package/lib/components/booking/forms/model.d.ts +10 -1
  154. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
  155. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  156. package/lib/components/booking/info/main.js +5 -4
  157. package/lib/components/booking/info/model.d.ts +10 -1
  158. package/lib/components/booking/info/model.js +5 -0
  159. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  160. package/lib/components/booking/info2/index.js +5 -4
  161. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  162. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  163. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  164. package/lib/components/booking/locales.d.ts +3 -0
  165. package/lib/components/booking/locales.js +9 -3
  166. package/lib/components/booking/model.d.ts +13 -1
  167. package/lib/components/booking/model.js +3 -0
  168. package/lib/components/booking/notes/model.d.ts +10 -1
  169. package/lib/components/booking/payments/model.d.ts +10 -1
  170. package/lib/components/eftposPay/amount.d.ts +1 -1
  171. package/lib/components/eftposPay/device.d.ts +1 -1
  172. package/lib/components/eftposPay/store/index.d.ts +2 -2
  173. package/lib/components/pay/toC/model.d.ts +9 -1
  174. package/lib/components/schedules/model.d.ts +9 -1
  175. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  176. package/lib/components/wallet/Detail/model.d.ts +13 -1
  177. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  178. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  179. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  180. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  181. package/lib/components/wallet/model.d.ts +9 -1
  182. package/lib/index.d.ts +3 -0
  183. package/lib/index.js +13 -0
  184. package/lib/plus/clientName/index.d.ts +4 -0
  185. package/lib/plus/clientName/index.js +53 -0
  186. package/lib/plus/clientName/index.less +10 -0
  187. package/lib/plus/clientName/type.d.ts +13 -0
  188. package/lib/plus/clientName/type.js +17 -0
  189. package/lib/plus/clientName/utils.d.ts +2 -0
  190. package/lib/plus/clientName/utils.js +43 -0
  191. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  192. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  193. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  194. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  195. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  196. package/lib/plus/contactInfo/index.d.ts +6 -0
  197. package/lib/plus/contactInfo/index.js +226 -0
  198. package/lib/plus/contactInfo/index.less +621 -0
  199. package/lib/plus/contactInfo/locales.d.ts +15 -0
  200. package/lib/plus/contactInfo/locales.js +38 -0
  201. package/lib/plus/contactInfo/types.d.ts +91 -0
  202. package/lib/plus/contactInfo/types.js +17 -0
  203. package/lib/plus/contactInfo/utils.d.ts +7 -0
  204. package/lib/plus/contactInfo/utils.js +64 -0
  205. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  206. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  207. package/lib/plus/contactInfoModal/index.d.ts +40 -0
  208. package/lib/plus/contactInfoModal/index.js +138 -0
  209. package/lib/plus/contactInfoModal/index.less +19 -0
  210. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  211. package/lib/plus/contactInfoModal/locales.js +89 -0
  212. package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
  213. package/lib/pro/Login2.0/AuthModal.js +498 -0
  214. package/lib/pro/Login2.0/Login2.d.ts +61 -0
  215. package/lib/pro/Login2.0/Login2.js +1468 -0
  216. package/lib/pro/Login2.0/Register2.d.ts +65 -0
  217. package/lib/pro/Login2.0/Register2.js +1062 -0
  218. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  219. package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
  220. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  221. package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
  222. package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
  223. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  224. package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
  225. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  226. package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
  227. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  228. package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
  229. package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
  230. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  231. package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
  232. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  233. package/lib/pro/Login2.0/hooks/index.js +29 -0
  234. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  235. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
  236. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  237. package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
  238. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  239. package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
  240. package/lib/pro/Login2.0/index.js +45 -0
  241. package/lib/pro/Login2.0/index.less +993 -0
  242. package/lib/pro/Login2.0/locales.d.ts +543 -0
  243. package/lib/pro/Login2.0/locales.js +646 -0
  244. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  245. package/lib/pro/Login2.0/shared/Header.js +81 -0
  246. package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  247. package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
  248. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  249. package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
  250. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  251. package/lib/pro/Login2.0/shared/types.js +17 -0
  252. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  253. package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
  254. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  255. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
  256. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  257. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
  258. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  259. package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
  260. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  261. package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
  262. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  263. package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
  264. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  265. package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
  266. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  267. package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
  268. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  269. package/lib/pro/Login2.0/steps/index.js +60 -0
  270. package/lib/pro/Login2.0/steps/steps.less +423 -0
  271. package/lib/pro/Login2.0/types.d.ts +167 -0
  272. package/lib/pro/Login2.0/types.js +17 -0
  273. package/lowcode/authmodal/meta.ts +395 -0
  274. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  275. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  276. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  277. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  278. package/lowcode/contact-info/meta.ts +199 -0
  279. package/lowcode/contact-info-modal/meta.ts +98 -0
  280. package/lowcode/login2/CONFIG.md +447 -0
  281. package/lowcode/login2/TEST_CONFIG.md +324 -0
  282. package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
  283. package/lowcode/login2/meta.ts +560 -0
  284. package/lowcode/login2/snippets.ts +124 -0
  285. package/lowcode/register2/meta.ts +562 -0
  286. package/lowcode/register2/snippets.ts +257 -0
  287. package/package.json +7 -5
@@ -0,0 +1,423 @@
1
+ /**
2
+ * 注册步骤组件样式
3
+ */
4
+
5
+ .register-step-container {
6
+ width: 100%;
7
+ min-height: 400px;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ padding: 40px 0;
12
+ }
13
+
14
+ /* 左上角返回按钮 */
15
+ .back-button-top {
16
+ position: absolute;
17
+ top: 2px;
18
+ left: 2px;
19
+ width: 40px;
20
+ height: 40px;
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ background: transparent;
25
+ border: none;
26
+ cursor: pointer;
27
+ color: #344054;
28
+ transition: all 0.2s ease;
29
+ padding: 0;
30
+ .login-lm-drawer-popover & {
31
+ position: fixed;
32
+ top: 12px;
33
+ left: 12px;
34
+ }
35
+ .ant-modal-body & {
36
+ position: absolute;
37
+ left: -55px;
38
+ top: -14px;
39
+ }
40
+
41
+ &:hover {
42
+ color: #101828;
43
+ background: #F9FAFB;
44
+ border-radius: 8px;
45
+ }
46
+
47
+ &:active {
48
+ color: #101828;
49
+ background: #F2F4F7;
50
+ }
51
+
52
+ .anticon {
53
+ font-size: 24px;
54
+ }
55
+ }
56
+
57
+ .register-step-content {
58
+ width: 100%;
59
+ text-align: center;
60
+ }
61
+
62
+ .register-step-title {
63
+ margin: 0 0 8px 0;
64
+ font-size: 16px;
65
+ font-weight: 600;
66
+ line-height: 32px;
67
+ color: #101828;
68
+ text-align: center;
69
+ }
70
+
71
+ .register-step-desc {
72
+ margin: 0 0 24px 0;
73
+ font-size: 14px;
74
+ font-weight: 400;
75
+ line-height: 24px;
76
+ color: #475467;
77
+ text-align: center;
78
+ }
79
+ .register-step-title-verify-email {
80
+ margin: 0 0 8px 0;
81
+ font-size: 16px;
82
+ font-weight: 600;
83
+ color: #101828;
84
+ text-align: center;
85
+ }
86
+ .register-step-desc-verify-email {
87
+ margin: 0 0 8px 0;
88
+ font-size: 14px;
89
+ font-weight: 400;
90
+ color: #475467;
91
+ text-align: center;
92
+ }
93
+
94
+ /* 重发区域 */
95
+ .register-resend-section {
96
+ margin-top: 24px;
97
+ text-align: center;
98
+ font-size: 14px;
99
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
100
+ line-height: 20px;
101
+
102
+ .resend-text {
103
+ color: #475467;
104
+ font-weight: 400;
105
+ }
106
+
107
+ .resend-link {
108
+ color: var(--theme-color, #7F56D9);
109
+ font-weight: 600;
110
+ background: transparent;
111
+ border: none;
112
+ cursor: pointer;
113
+ padding: 0;
114
+ text-decoration: none;
115
+ transition: all 0.2s ease;
116
+
117
+ &:hover:not(:disabled) {
118
+ opacity: 0.8;
119
+ text-decoration: underline;
120
+ }
121
+
122
+ &:active:not(:disabled) {
123
+ opacity: 0.6;
124
+ }
125
+
126
+ &:disabled {
127
+ opacity: 0.4;
128
+ cursor: not-allowed;
129
+ }
130
+ }
131
+ }
132
+
133
+ /* 登录提示 */
134
+ .register-login-prompt {
135
+ margin-top: 32px;
136
+ text-align: center;
137
+ font-size: 14px;
138
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
139
+ line-height: 20px;
140
+
141
+ .prompt-text {
142
+ color: #475467;
143
+ font-weight: 400;
144
+ }
145
+
146
+ .login-link {
147
+ color: var(--theme-color, #7F56D9);
148
+ font-weight: 600;
149
+ background: transparent;
150
+ border: none;
151
+ cursor: pointer;
152
+ padding: 0;
153
+ text-decoration: none;
154
+ transition: all 0.2s ease;
155
+
156
+ &:hover {
157
+ opacity: 0.8;
158
+ text-decoration: underline;
159
+ }
160
+
161
+ &:active {
162
+ opacity: 0.6;
163
+ }
164
+ }
165
+ }
166
+
167
+ /* 邮箱已注册提示消息 */
168
+ .email-already-registered-message {
169
+ margin: 0 0 32px 0;
170
+ font-size: 16px;
171
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
172
+ font-weight: 600;
173
+ line-height: 24px;
174
+ color: #101828;
175
+ text-align: center;
176
+ }
177
+
178
+ /* 验证码输入 */
179
+ .code-input-group {
180
+ display: flex;
181
+ gap: 12px;
182
+ justify-content: center;
183
+ margin: 24px 0 24px 0;
184
+ }
185
+
186
+ .code-input-box {
187
+ width: 80px;
188
+ height: 80px;
189
+ font-size: 40px;
190
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
191
+ font-weight: 600;
192
+ text-align: center;
193
+ color: var(--theme-color, #7F56D9);
194
+ background: #FFFFFF;
195
+ border: 2px solid #D0D5DD;
196
+ border-radius: 8px;
197
+ outline: none;
198
+ transition: all 0.2s ease;
199
+
200
+ &:focus {
201
+ border-color: var(--theme-color, #7F56D9);
202
+ box-shadow: 0px 0px 0px 4px rgba(127, 86, 217, 0.12);
203
+ }
204
+
205
+ &.has-value {
206
+ border-color: var(--theme-color, #7F56D9);
207
+ }
208
+
209
+ &.has-error {
210
+ border-color: #ff4d4f;
211
+ box-shadow: 0px 0px 0px 4px rgba(255, 77, 79, 0.12);
212
+ }
213
+
214
+ &:disabled {
215
+ background: #F9FAFB;
216
+ cursor: not-allowed;
217
+ }
218
+ }
219
+
220
+ .code-input-error {
221
+ color: #ff4d4f;
222
+ font-size: 14px;
223
+ margin-top: -20px;
224
+ margin-bottom: 24px;
225
+ text-align: left;
226
+ line-height: 22px;
227
+ min-height: 22px;
228
+ }
229
+
230
+ /* 按钮样式 */
231
+ .register-submit-btn {
232
+ height: 44px;
233
+ margin-bottom: 12px;
234
+ border-radius: 8px;
235
+ font-size: 16px;
236
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
237
+ font-weight: 600;
238
+ background: var(--theme-color, #7F56D9);
239
+ border-color: var(--theme-color, #7F56D9);
240
+
241
+ &:hover:not(:disabled) {
242
+ background: var(--theme-color-hover, #6941C6);
243
+ border-color: var(--theme-color-hover, #6941C6);
244
+ }
245
+
246
+ &:active:not(:disabled) {
247
+ background: var(--theme-color-active, #53389E);
248
+ border-color: var(--theme-color-active, #53389E);
249
+ }
250
+ }
251
+
252
+ .register-back-btn {
253
+ height: 44px;
254
+ border-radius: 8px;
255
+ font-size: 16px;
256
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
257
+ font-weight: 600;
258
+ color: #344054;
259
+ border: 1px solid #D0D5DD;
260
+ background: #FFFFFF;
261
+
262
+ &:hover {
263
+ border-color: #98A2B3;
264
+ background: #F9FAFB;
265
+ color: #344054;
266
+ }
267
+
268
+ &:active {
269
+ border-color: #667085;
270
+ background: #F2F4F7;
271
+ color: #344054;
272
+ }
273
+ }
274
+
275
+ /* 成功图标 */
276
+ .success-icon-wrapper {
277
+ margin: 0 auto 24px auto;
278
+ display: flex;
279
+ align-items: center;
280
+ justify-content: center;
281
+ }
282
+
283
+ /* 密码设置表单 */
284
+ .password-set-form {
285
+ margin-top: 32px;
286
+
287
+ .password-input {
288
+ height: 44px;
289
+ border-radius: 8px;
290
+ font-size: 16px;
291
+
292
+ input {
293
+ font-size: 16px;
294
+ }
295
+
296
+ .ant-input-password-icon {
297
+ color: #667085;
298
+ font-size: 20px;
299
+ }
300
+ }
301
+
302
+ .ant-form-item {
303
+ margin-bottom: 16px;
304
+ }
305
+
306
+ .ant-form-item-explain-error {
307
+ font-size: 14px;
308
+ line-height: 20px;
309
+ text-align: left;
310
+ }
311
+ }
312
+
313
+ /* 邮箱显示区域 */
314
+ .register-email-display {
315
+ display: flex;
316
+ align-items: center;
317
+ justify-content: center;
318
+ gap: 10px;
319
+ margin: 0 0 32px 0;
320
+
321
+ .email-text {
322
+ line-height: 24px;
323
+ color: #475467;
324
+ font-size: 14px;
325
+ }
326
+
327
+ .edit-email-btn {
328
+ display: flex;
329
+ align-items: center;
330
+ justify-content: center;
331
+ background: transparent;
332
+ border: none;
333
+ cursor: pointer;
334
+ padding: 0;
335
+ border-radius: 4px;
336
+ transition: all 0.2s ease;
337
+
338
+ &:hover {
339
+ background: #F9FAFB;
340
+ }
341
+
342
+ &:active {
343
+ background: #F2F4F7;
344
+ }
345
+ }
346
+ }
347
+
348
+ /* 邮件链接验证页面 */
349
+ .verifying-email-link-page {
350
+ .register-step-content {
351
+ display: flex;
352
+ flex-direction: column;
353
+ align-items: center;
354
+ justify-content: center;
355
+ min-height: 400px;
356
+ }
357
+
358
+ .verifying-text {
359
+ margin-top: 24px;
360
+ font-size: 16px;
361
+ font-weight: 600;
362
+ line-height: 24px;
363
+ color: #101828;
364
+ text-align: center;
365
+ }
366
+ }
367
+
368
+ /* 邮件链接结果页面(过期、已使用) */
369
+ .email-link-expired-page,
370
+ .email-link-already-used-page {
371
+ .email-link-result-title {
372
+ margin: 0 0 12px 0;
373
+ font-size: 16px;
374
+ font-weight: 600;
375
+ line-height: 24px;
376
+ color: #101828;
377
+ text-align: center;
378
+ }
379
+
380
+ .email-link-result-desc {
381
+ margin: 0 0 32px 0;
382
+ font-size: 14px;
383
+ font-weight: 400;
384
+ line-height: 24px;
385
+ color: #475467;
386
+ text-align: center;
387
+ }
388
+
389
+ .register-footer-prompt {
390
+ margin-top: 32px;
391
+ text-align: center;
392
+ font-size: 14px;
393
+ font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
394
+ font-weight: 400;
395
+ line-height: 20px;
396
+ color: #475467;
397
+
398
+ .prompt-text {
399
+ color: #475467;
400
+ }
401
+
402
+ .prompt-link {
403
+ color: var(--theme-color, #7F56D9);
404
+ font-weight: 600;
405
+ cursor: pointer;
406
+ background: transparent;
407
+ border: none;
408
+ padding: 0;
409
+ text-decoration: none;
410
+ transition: all 0.2s ease;
411
+
412
+ &:hover {
413
+ opacity: 0.8;
414
+ text-decoration: underline;
415
+ }
416
+
417
+ &:active {
418
+ opacity: 0.6;
419
+ }
420
+ }
421
+ }
422
+ }
423
+
@@ -0,0 +1,167 @@
1
+ /**
2
+ * 登录注册 2.0 组件类型定义
3
+ */
4
+ /// <reference types="react" />
5
+ /** 验证方式枚举 */
6
+ export declare type VerificationMethod = 'verification_code' | 'password';
7
+ /** 邮箱注册验证方式 */
8
+ export declare type EmailRegistrationVerification = 'verification_link' | 'verification_code';
9
+ /** 认证方式类型 */
10
+ export declare type AuthMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple';
11
+ /** 当前状态:登录或注册 */
12
+ export declare type AuthState = 'login' | 'register';
13
+ /** 邮箱认证配置 */
14
+ export interface EmailAuthConfig {
15
+ /** 是否启用邮箱认证 */
16
+ enable_email: boolean;
17
+ /** 注册验证方式 */
18
+ registration_verification: EmailRegistrationVerification;
19
+ /** 登录验证方式列表 */
20
+ login_verification_methods: VerificationMethod[];
21
+ }
22
+ /** 手机认证配置 */
23
+ export interface PhoneAuthConfig {
24
+ /** 是否启用手机认证 */
25
+ enable_phone_number: boolean;
26
+ /** 注册验证方式(手机仅支持验证码) */
27
+ registration_verification: 'verification_code';
28
+ /** 登录验证方式列表 */
29
+ login_verification_methods: VerificationMethod[];
30
+ }
31
+ /** 三方 OAuth 配置 */
32
+ export interface OAuthConfig {
33
+ /** Google 登录 */
34
+ google?: {
35
+ enabled: boolean;
36
+ client_id?: string;
37
+ };
38
+ /** Facebook 登录 */
39
+ facebook?: {
40
+ enabled: boolean;
41
+ app_id?: string;
42
+ };
43
+ /** Apple 登录 */
44
+ apple?: {
45
+ enabled: boolean;
46
+ client_id?: string;
47
+ };
48
+ }
49
+ /** UI 配置 */
50
+ export interface UIConfig {
51
+ /** Logo 配置 */
52
+ logo?: {
53
+ show: boolean;
54
+ url?: string;
55
+ position?: 'left' | 'center' | 'right';
56
+ size?: {
57
+ width: number;
58
+ height: number;
59
+ };
60
+ };
61
+ /** 标题配置 */
62
+ title?: {
63
+ show: boolean;
64
+ text?: string;
65
+ align?: 'left' | 'center' | 'right';
66
+ };
67
+ /** 副标题配置 */
68
+ subtitle?: {
69
+ show: boolean;
70
+ text?: string;
71
+ align?: 'left' | 'center' | 'right';
72
+ };
73
+ /** 描述配置 */
74
+ desc?: {
75
+ show: boolean;
76
+ text?: string;
77
+ align?: 'left' | 'center' | 'right';
78
+ };
79
+ /** 标签页配置 */
80
+ tabs?: {
81
+ show: boolean;
82
+ loginText?: string;
83
+ registerText?: string;
84
+ };
85
+ /** 主题色 */
86
+ themeColor?: string;
87
+ }
88
+ /** 组件总配置 */
89
+ export interface Login2Config {
90
+ /** 邮箱认证配置 */
91
+ email?: EmailAuthConfig;
92
+ /** 手机认证配置 */
93
+ phone?: PhoneAuthConfig;
94
+ /** 三方 OAuth 配置 */
95
+ oauth?: OAuthConfig;
96
+ /** UI 配置 */
97
+ ui?: UIConfig;
98
+ /** 默认认证方式 */
99
+ defaultAuthMethod?: AuthMethodType;
100
+ /** 默认状态(登录或注册) */
101
+ defaultState?: AuthState;
102
+ }
103
+ /** 登录表单数据 */
104
+ export interface LoginFormData {
105
+ /** 邮箱或手机号 */
106
+ account: string;
107
+ /** 密码 */
108
+ password?: string;
109
+ /** 验证码 */
110
+ verification_code?: string;
111
+ /** 记住我 */
112
+ remember_me?: boolean;
113
+ }
114
+ /** 注册表单数据 */
115
+ export interface RegisterFormData {
116
+ /** 邮箱或手机号 */
117
+ account: string;
118
+ /** 密码 */
119
+ password?: string;
120
+ /** 确认密码 */
121
+ confirm_password?: string;
122
+ /** 验证码 */
123
+ verification_code?: string;
124
+ /** 验证链接 token */
125
+ verification_token?: string;
126
+ }
127
+ /** 组件事件回调 */
128
+ export interface Login2Events {
129
+ /** 登录回调 */
130
+ onLogin?: (data: LoginFormData, method: AuthMethodType) => Promise<void> | void;
131
+ /** 注册回调 */
132
+ onRegister?: (data: RegisterFormData, method: AuthMethodType) => Promise<void> | void;
133
+ /** 三方登录回调 */
134
+ onOAuthLogin?: (provider: 'google' | 'facebook' | 'apple') => Promise<void> | void;
135
+ /** 发送验证码回调 */
136
+ onSendVerificationCode?: (account: string, type: 'email' | 'phone') => Promise<void> | void;
137
+ /** 忘记密码回调 */
138
+ onForgotPassword?: (account: string) => Promise<void> | void;
139
+ }
140
+ /** 组件完整属性 */
141
+ export interface Login2Props extends Login2Events {
142
+ /** 配置对象 */
143
+ config: Login2Config;
144
+ /** 是否显示 */
145
+ visible?: boolean;
146
+ /** 关闭回调 */
147
+ onClose?: () => void;
148
+ /** 自定义类名 */
149
+ className?: string;
150
+ /** 自定义样式 */
151
+ style?: React.CSSProperties;
152
+ }
153
+ /** 组件内部状态 */
154
+ export interface Login2State {
155
+ /** 当前状态:登录或注册 */
156
+ authState: AuthState;
157
+ /** 当前认证方式 */
158
+ currentAuthMethod: AuthMethodType;
159
+ /** 当前使用的验证方式 */
160
+ currentVerificationMethod: VerificationMethod;
161
+ /** 加载状态 */
162
+ loading: boolean;
163
+ /** 验证码倒计时 */
164
+ countdown: number;
165
+ /** 表单数据 */
166
+ formData: Partial<LoginFormData | RegisterFormData>;
167
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/pro/Login2.0/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);