@alfadocs/ui-kit-debug 1.78.0 → 1.79.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.
Files changed (199) hide show
  1. package/dist/_chunks/{address-fields-BUPRs3n-.js → address-fields-GnoSkvh6.js} +2 -2
  2. package/dist/_chunks/{address-fields-BUPRs3n-.js.map → address-fields-GnoSkvh6.js.map} +1 -1
  3. package/dist/_chunks/{anamnesis-summary-rows-vNDyE5HW.js → anamnesis-summary-rows-lONg-zja.js} +2 -2
  4. package/dist/_chunks/{anamnesis-summary-rows-vNDyE5HW.js.map → anamnesis-summary-rows-lONg-zja.js.map} +1 -1
  5. package/dist/_chunks/{bishop-score-CdbU9Nl4.js → bishop-score-C5di6oAV.js} +2 -2
  6. package/dist/_chunks/{bishop-score-CdbU9Nl4.js.map → bishop-score-C5di6oAV.js.map} +1 -1
  7. package/dist/_chunks/{bmi-calculator-DnfiDh4Q.js → bmi-calculator-BIExHBZV.js} +2 -2
  8. package/dist/_chunks/{bmi-calculator-DnfiDh4Q.js.map → bmi-calculator-BIExHBZV.js.map} +1 -1
  9. package/dist/_chunks/{booking-Cz_QjIJe.js → booking-BV2s2J3C.js} +3 -3
  10. package/dist/_chunks/{booking-Cz_QjIJe.js.map → booking-BV2s2J3C.js.map} +1 -1
  11. package/dist/_chunks/{calendar-appointment-editor-dialog-cvUpUjj-.js → calendar-appointment-editor-dialog-DhTTWgXw.js} +3 -3
  12. package/dist/_chunks/{calendar-appointment-editor-dialog-cvUpUjj-.js.map → calendar-appointment-editor-dialog-DhTTWgXw.js.map} +1 -1
  13. package/dist/_chunks/{cycle-calculator-HO3s5InI.js → cycle-calculator-CQkjVSD2.js} +2 -2
  14. package/dist/_chunks/{cycle-calculator-HO3s5InI.js.map → cycle-calculator-CQkjVSD2.js.map} +1 -1
  15. package/dist/_chunks/{due-date-calculator-CDWTSblh.js → due-date-calculator-NjTlmoFK.js} +2 -2
  16. package/dist/_chunks/{due-date-calculator-CDWTSblh.js.map → due-date-calculator-NjTlmoFK.js.map} +1 -1
  17. package/dist/_chunks/{fetal-weight-CrtBFJl-.js → fetal-weight-Brl3n4LN.js} +2 -2
  18. package/dist/_chunks/{fetal-weight-CrtBFJl-.js.map → fetal-weight-Brl3n4LN.js.map} +1 -1
  19. package/dist/_chunks/{forgot-password-form-BSOZVrZG.js → forgot-password-form-BQPvDS7i.js} +2 -2
  20. package/dist/_chunks/{forgot-password-form-BSOZVrZG.js.map → forgot-password-form-BQPvDS7i.js.map} +1 -1
  21. package/dist/_chunks/form-field-CyHfOVKF.js +185 -0
  22. package/dist/_chunks/form-field-CyHfOVKF.js.map +1 -0
  23. package/dist/_chunks/{gestational-age-calculator-CTHeJJdb.js → gestational-age-calculator-Dr9hdDta.js} +2 -2
  24. package/dist/_chunks/{gestational-age-calculator-CTHeJJdb.js.map → gestational-age-calculator-Dr9hdDta.js.map} +1 -1
  25. package/dist/_chunks/{hcg-doubling-BBk-a33g.js → hcg-doubling-K41Wy7LB.js} +2 -2
  26. package/dist/_chunks/{hcg-doubling-BBk-a33g.js.map → hcg-doubling-K41Wy7LB.js.map} +1 -1
  27. package/dist/_chunks/{help-me-write-templates-Ds1FY-WY.js → help-me-write-templates-BJSf24xS.js} +2 -2
  28. package/dist/_chunks/{help-me-write-templates-Ds1FY-WY.js.map → help-me-write-templates-BJSf24xS.js.map} +1 -1
  29. package/dist/_chunks/key-round-DIgsnJSg.js +21 -0
  30. package/dist/_chunks/key-round-DIgsnJSg.js.map +1 -0
  31. package/dist/_chunks/{kit-extensions-sNTZWkoo.js → kit-extensions-a0G4COFH.js} +6 -6
  32. package/dist/_chunks/{kit-extensions-sNTZWkoo.js.map → kit-extensions-a0G4COFH.js.map} +1 -1
  33. package/dist/_chunks/login-dev-card-CvLHj-_N.js +353 -0
  34. package/dist/_chunks/login-dev-card-CvLHj-_N.js.map +1 -0
  35. package/dist/_chunks/{pregnancy-dating-JBAUbM40.js → pregnancy-dating-BHvfDxz4.js} +2 -2
  36. package/dist/_chunks/{pregnancy-dating-JBAUbM40.js.map → pregnancy-dating-BHvfDxz4.js.map} +1 -1
  37. package/dist/_chunks/{pregnancy-weight-gain--Bqv6AWu.js → pregnancy-weight-gain-BeQRxwdP.js} +2 -2
  38. package/dist/_chunks/{pregnancy-weight-gain--Bqv6AWu.js.map → pregnancy-weight-gain-BeQRxwdP.js.map} +1 -1
  39. package/dist/_chunks/{radiograph-panel.agent-DQh2SX8G.js → radiograph-panel.agent-BQ95uFCd.js} +2 -2
  40. package/dist/_chunks/{radiograph-panel.agent-DQh2SX8G.js.map → radiograph-panel.agent-BQ95uFCd.js.map} +1 -1
  41. package/dist/_chunks/registration-form-CNBfUduG.js +1337 -0
  42. package/dist/_chunks/registration-form-CNBfUduG.js.map +1 -0
  43. package/dist/_chunks/reset-password-form-Cf9QPEJu.js +367 -0
  44. package/dist/_chunks/reset-password-form-Cf9QPEJu.js.map +1 -0
  45. package/dist/_chunks/{send-registration-link-form-__DWY62q.js → send-registration-link-form-vTn1HxjA.js} +2 -2
  46. package/dist/_chunks/{send-registration-link-form-__DWY62q.js.map → send-registration-link-form-vTn1HxjA.js.map} +1 -1
  47. package/dist/_chunks/{task-editor-CRhfwP9T.js → task-editor-Cpw-NmND.js} +2 -2
  48. package/dist/_chunks/{task-editor-CRhfwP9T.js.map → task-editor-Cpw-NmND.js.map} +1 -1
  49. package/dist/_chunks/{unit-converter-D59L-gkf.js → unit-converter-BH5ueIhT.js} +2 -2
  50. package/dist/_chunks/{unit-converter-D59L-gkf.js.map → unit-converter-BH5ueIhT.js.map} +1 -1
  51. package/dist/_chunks/{voice-control-panel-DQJwe6_Q.js → voice-control-panel-BziKE-KK.js} +2 -2
  52. package/dist/_chunks/{voice-control-panel-DQJwe6_Q.js.map → voice-control-panel-BziKE-KK.js.map} +1 -1
  53. package/dist/_chunks/{workflow-webhook-action-BvVPZVpG.js → workflow-webhook-action-DulCpCRz.js} +96 -111
  54. package/dist/_chunks/workflow-webhook-action-DulCpCRz.js.map +1 -0
  55. package/dist/agent-catalog.json +89 -3
  56. package/dist/agent-i18n/en.json +11 -2
  57. package/dist/components/address-fields/index.js +1 -1
  58. package/dist/components/bishop-score/index.js +1 -1
  59. package/dist/components/bmi-calculator/index.js +1 -1
  60. package/dist/components/booking/index.js +1 -1
  61. package/dist/components/cycle-calculator/index.js +1 -1
  62. package/dist/components/due-date-calculator/index.js +1 -1
  63. package/dist/components/fetal-weight/index.js +1 -1
  64. package/dist/components/form-field/form-field.d.ts +6 -0
  65. package/dist/components/form-field/form-field.d.ts.map +1 -1
  66. package/dist/components/form-field/index.js +1 -1
  67. package/dist/components/gestational-age-calculator/index.js +1 -1
  68. package/dist/components/hcg-doubling/index.js +1 -1
  69. package/dist/components/index.d.ts +1 -0
  70. package/dist/components/index.d.ts.map +1 -1
  71. package/dist/components/pregnancy-dating/index.js +1 -1
  72. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  73. package/dist/components/radiograph-panel/index.js +1 -1
  74. package/dist/components/rich-text-editor/index.js +1 -1
  75. package/dist/components/task-editor/index.js +1 -1
  76. package/dist/components/unit-converter/index.js +1 -1
  77. package/dist/components/voice-control-panel/index.js +1 -1
  78. package/dist/i18n/locales/ar.d.ts +26 -0
  79. package/dist/i18n/locales/ar.d.ts.map +1 -1
  80. package/dist/i18n/locales/ar.js +27 -1
  81. package/dist/i18n/locales/ar.js.map +1 -1
  82. package/dist/i18n/locales/de.d.ts +26 -0
  83. package/dist/i18n/locales/de.d.ts.map +1 -1
  84. package/dist/i18n/locales/de.js +27 -1
  85. package/dist/i18n/locales/de.js.map +1 -1
  86. package/dist/i18n/locales/el.d.ts +26 -0
  87. package/dist/i18n/locales/el.d.ts.map +1 -1
  88. package/dist/i18n/locales/el.js +27 -1
  89. package/dist/i18n/locales/el.js.map +1 -1
  90. package/dist/i18n/locales/en.d.ts +26 -0
  91. package/dist/i18n/locales/en.d.ts.map +1 -1
  92. package/dist/i18n/locales/en.js +26 -0
  93. package/dist/i18n/locales/en.js.map +1 -1
  94. package/dist/i18n/locales/es.d.ts +26 -0
  95. package/dist/i18n/locales/es.d.ts.map +1 -1
  96. package/dist/i18n/locales/es.js +27 -1
  97. package/dist/i18n/locales/es.js.map +1 -1
  98. package/dist/i18n/locales/fr.d.ts +26 -0
  99. package/dist/i18n/locales/fr.d.ts.map +1 -1
  100. package/dist/i18n/locales/fr.js +27 -1
  101. package/dist/i18n/locales/fr.js.map +1 -1
  102. package/dist/i18n/locales/hi.d.ts +26 -0
  103. package/dist/i18n/locales/hi.d.ts.map +1 -1
  104. package/dist/i18n/locales/hi.js +27 -1
  105. package/dist/i18n/locales/hi.js.map +1 -1
  106. package/dist/i18n/locales/it.d.ts +26 -0
  107. package/dist/i18n/locales/it.d.ts.map +1 -1
  108. package/dist/i18n/locales/it.js +27 -1
  109. package/dist/i18n/locales/it.js.map +1 -1
  110. package/dist/i18n/locales/ja.d.ts +26 -0
  111. package/dist/i18n/locales/ja.d.ts.map +1 -1
  112. package/dist/i18n/locales/ja.js +27 -1
  113. package/dist/i18n/locales/ja.js.map +1 -1
  114. package/dist/i18n/locales/nl.d.ts +26 -0
  115. package/dist/i18n/locales/nl.d.ts.map +1 -1
  116. package/dist/i18n/locales/nl.js +27 -1
  117. package/dist/i18n/locales/nl.js.map +1 -1
  118. package/dist/i18n/locales/pl.d.ts +26 -0
  119. package/dist/i18n/locales/pl.d.ts.map +1 -1
  120. package/dist/i18n/locales/pl.js +27 -1
  121. package/dist/i18n/locales/pl.js.map +1 -1
  122. package/dist/i18n/locales/pt.d.ts +26 -0
  123. package/dist/i18n/locales/pt.d.ts.map +1 -1
  124. package/dist/i18n/locales/pt.js +27 -1
  125. package/dist/i18n/locales/pt.js.map +1 -1
  126. package/dist/i18n/locales/ro.d.ts +26 -0
  127. package/dist/i18n/locales/ro.d.ts.map +1 -1
  128. package/dist/i18n/locales/ro.js +27 -1
  129. package/dist/i18n/locales/ro.js.map +1 -1
  130. package/dist/i18n/locales/ru.d.ts +26 -0
  131. package/dist/i18n/locales/ru.d.ts.map +1 -1
  132. package/dist/i18n/locales/ru.js +27 -1
  133. package/dist/i18n/locales/ru.js.map +1 -1
  134. package/dist/i18n/locales/sq.d.ts +26 -0
  135. package/dist/i18n/locales/sq.d.ts.map +1 -1
  136. package/dist/i18n/locales/sq.js +27 -1
  137. package/dist/i18n/locales/sq.js.map +1 -1
  138. package/dist/i18n/locales/sv.d.ts +26 -0
  139. package/dist/i18n/locales/sv.d.ts.map +1 -1
  140. package/dist/i18n/locales/sv.js +27 -1
  141. package/dist/i18n/locales/sv.js.map +1 -1
  142. package/dist/i18n/locales/tr.d.ts +26 -0
  143. package/dist/i18n/locales/tr.d.ts.map +1 -1
  144. package/dist/i18n/locales/tr.js +27 -1
  145. package/dist/i18n/locales/tr.js.map +1 -1
  146. package/dist/i18n/locales/zh.d.ts +26 -0
  147. package/dist/i18n/locales/zh.d.ts.map +1 -1
  148. package/dist/i18n/locales/zh.js +27 -1
  149. package/dist/i18n/locales/zh.js.map +1 -1
  150. package/dist/index.js +89 -86
  151. package/dist/index.js.map +1 -1
  152. package/dist/locales/ar.json +27 -1
  153. package/dist/locales/de.json +27 -1
  154. package/dist/locales/el.json +27 -1
  155. package/dist/locales/en.json +26 -0
  156. package/dist/locales/es.json +27 -1
  157. package/dist/locales/fr.json +27 -1
  158. package/dist/locales/hi.json +27 -1
  159. package/dist/locales/it.json +27 -1
  160. package/dist/locales/ja.json +27 -1
  161. package/dist/locales/nl.json +27 -1
  162. package/dist/locales/pl.json +27 -1
  163. package/dist/locales/pt.json +27 -1
  164. package/dist/locales/ro.json +27 -1
  165. package/dist/locales/ru.json +27 -1
  166. package/dist/locales/sq.json +27 -1
  167. package/dist/locales/sv.json +27 -1
  168. package/dist/locales/tr.json +27 -1
  169. package/dist/locales/zh.json +27 -1
  170. package/dist/patterns/_shared/password-policy.d.ts +3 -0
  171. package/dist/patterns/_shared/password-policy.d.ts.map +1 -0
  172. package/dist/patterns/anamnesis/index.js +1 -1
  173. package/dist/patterns/calendar/index.js +1 -1
  174. package/dist/patterns/forgot-password-form/index.js +1 -1
  175. package/dist/patterns/help-me-write-templates/index.js +1 -1
  176. package/dist/patterns/login-form/index.js +1 -1
  177. package/dist/patterns/login-form/login-form.d.ts +24 -7
  178. package/dist/patterns/login-form/login-form.d.ts.map +1 -1
  179. package/dist/patterns/registration-form/index.d.ts +1 -1
  180. package/dist/patterns/registration-form/index.d.ts.map +1 -1
  181. package/dist/patterns/registration-form/index.js +1 -1
  182. package/dist/patterns/registration-form/registration-form.d.ts +27 -0
  183. package/dist/patterns/registration-form/registration-form.d.ts.map +1 -1
  184. package/dist/patterns/reset-password-form/index.d.ts +3 -0
  185. package/dist/patterns/reset-password-form/index.d.ts.map +1 -0
  186. package/dist/patterns/reset-password-form/index.js +6 -0
  187. package/dist/patterns/reset-password-form/index.js.map +1 -0
  188. package/dist/patterns/reset-password-form/reset-password-form.d.ts +108 -0
  189. package/dist/patterns/reset-password-form/reset-password-form.d.ts.map +1 -0
  190. package/dist/patterns/send-registration-link-form/index.js +1 -1
  191. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  192. package/package.json +5 -1
  193. package/dist/_chunks/form-field-Ani72sVY.js +0 -176
  194. package/dist/_chunks/form-field-Ani72sVY.js.map +0 -1
  195. package/dist/_chunks/login-dev-card-DRxTPkE9.js +0 -332
  196. package/dist/_chunks/login-dev-card-DRxTPkE9.js.map +0 -1
  197. package/dist/_chunks/registration-form-xORq2s4p.js +0 -1310
  198. package/dist/_chunks/registration-form-xORq2s4p.js.map +0 -1
  199. package/dist/_chunks/workflow-webhook-action-BvVPZVpG.js.map +0 -1
@@ -5694,6 +5694,12 @@
5694
5694
  "rateLimited": "Çok fazla deneme yapıldı. Biraz bekleyip tekrar deneyin.",
5695
5695
  "sendFailed": "Kod gönderilemedi. Tekrar deneyin.",
5696
5696
  "devCode": "Yalnızca geliştirme için: kod {{code}}"
5697
+ },
5698
+ "existingAccount": {
5699
+ "message": "Bu e-posta ile zaten bir hesap var.",
5700
+ "messageSignInOrReset": "Bu e-posta ile zaten bir hesap var. Oturum açın veya şifrenizi sıfırlayın.",
5701
+ "messageSignIn": "Bu e-posta ile zaten bir hesap var. Bunun yerine oturum açın.",
5702
+ "messageReset": "Bu e-posta ile zaten bir hesap var. Bunun yerine şifrenizi sıfırlayın."
5697
5703
  }
5698
5704
  },
5699
5705
  "loginForm": {
@@ -5703,7 +5709,8 @@
5703
5709
  "submit": "Oturum aç",
5704
5710
  "forgot": "Şifrenizi mi unuttunuz?",
5705
5711
  "emailRequired": "E-posta adresinizi girin.",
5706
- "passwordRequired": "Şifrenizi girin."
5712
+ "passwordRequired": "Şifrenizi girin.",
5713
+ "rememberMe": "Beni bu bilgisayarda hatırla"
5707
5714
  },
5708
5715
  "forgotPasswordForm": {
5709
5716
  "title": "Şifrenizi sıfırlayın",
@@ -5715,6 +5722,25 @@
5715
5722
  "sentTitle": "Gelen kutunuzu kontrol edin",
5716
5723
  "sentDescription": "Bu adres için bir hesap varsa, şifreyi sıfırlamak için bir bağlantı gönderdik."
5717
5724
  },
5725
+ "resetPasswordForm": {
5726
+ "title": "Yeni şifre belirleyin",
5727
+ "description": "Hesabınız için yeni bir şifre girin.",
5728
+ "pageTitle": "Şifrenizi sıfırlayın",
5729
+ "email": "E-posta",
5730
+ "password": "Yeni şifre",
5731
+ "passwordConfirm": "Yeni şifreyi onaylayın",
5732
+ "submit": "Şifreyi değiştir",
5733
+ "passwordRequired": "Yeni bir şifre girin.",
5734
+ "passwordInvalid": "Şifre gereksinimleri karşılamıyor.",
5735
+ "passwordConfirmRequired": "Yeni şifrenizi onaylayın.",
5736
+ "doneTitle": "Şifreniz değiştirildi.",
5737
+ "doneDescription": "Artık yeni şifrenizle oturum açabilirsiniz.",
5738
+ "doneDescriptionEmail": "Artık yeni şifrenizle {{email}} olarak oturum açabilirsiniz.",
5739
+ "signIn": "Oturum aç",
5740
+ "expiredTitle": "Bu bağlantının süresi doldu veya bağlantı daha önce kullanıldı.",
5741
+ "expiredDescription": "Şifrenizi belirlemek için yeni bir bağlantı isteyin.",
5742
+ "requestLink": "Yeni bağlantı iste"
5743
+ },
5718
5744
  "signedOutHeader": {
5719
5745
  "login": "Oturum aç",
5720
5746
  "registerDoctor": "Doktor olarak kaydol",
@@ -5694,6 +5694,12 @@
5694
5694
  "rateLimited": "尝试次数过多。请稍等片刻后重试。",
5695
5695
  "sendFailed": "我们无法发送验证码。请重试。",
5696
5696
  "devCode": "仅用于开发:验证码为 {{code}}"
5697
+ },
5698
+ "existingAccount": {
5699
+ "message": "该邮箱已有账户。",
5700
+ "messageSignInOrReset": "该邮箱已有账户。请登录或重置密码。",
5701
+ "messageSignIn": "该邮箱已有账户。请直接登录。",
5702
+ "messageReset": "该邮箱已有账户。请重置密码。"
5697
5703
  }
5698
5704
  },
5699
5705
  "loginForm": {
@@ -5703,7 +5709,8 @@
5703
5709
  "submit": "登录",
5704
5710
  "forgot": "忘记密码?",
5705
5711
  "emailRequired": "请输入电子邮件地址。",
5706
- "passwordRequired": "请输入密码。"
5712
+ "passwordRequired": "请输入密码。",
5713
+ "rememberMe": "在此电脑上记住我"
5707
5714
  },
5708
5715
  "forgotPasswordForm": {
5709
5716
  "title": "重置密码",
@@ -5715,6 +5722,25 @@
5715
5722
  "sentTitle": "请查收邮件",
5716
5723
  "sentDescription": "如果该地址对应的账户存在,我们已发送重置密码的链接。"
5717
5724
  },
5725
+ "resetPasswordForm": {
5726
+ "title": "设置新密码",
5727
+ "description": "请为您的账户输入新密码。",
5728
+ "pageTitle": "重置密码",
5729
+ "email": "电子邮件",
5730
+ "password": "新密码",
5731
+ "passwordConfirm": "确认新密码",
5732
+ "submit": "修改密码",
5733
+ "passwordRequired": "请输入新密码。",
5734
+ "passwordInvalid": "密码不符合要求。",
5735
+ "passwordConfirmRequired": "请确认新密码。",
5736
+ "doneTitle": "您的密码已修改。",
5737
+ "doneDescription": "现在您可以使用新密码登录。",
5738
+ "doneDescriptionEmail": "现在您可以使用新密码以 {{email}} 登录。",
5739
+ "signIn": "登录",
5740
+ "expiredTitle": "此链接已过期或已被使用。",
5741
+ "expiredDescription": "请申请新链接以设置密码。",
5742
+ "requestLink": "申请新链接"
5743
+ },
5718
5744
  "signedOutHeader": {
5719
5745
  "login": "登录",
5720
5746
  "registerDoctor": "注册为医生",
@@ -0,0 +1,3 @@
1
+ import type { UsePasswordRequirementsOptions } from '../../components/password-input';
2
+ export declare const PLATFORM_PASSWORD_POLICY: UsePasswordRequirementsOptions;
3
+ //# sourceMappingURL=password-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-policy.d.ts","sourceRoot":"","sources":["../../../src/patterns/_shared/password-policy.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEtF,eAAO,MAAM,wBAAwB,EAAE,8BAMtC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-vNDyE5HW.js";
1
+ import { A as e, a as i, L as r, P as n, S as o, T as t, b as l, c as d, d as g, e as A, f as m, g as c, h as E, i as P, j as f, k as S, l as h, m as u, n as T, o as I, p as N, r as R, q as _, s as C, t as L, u as b } from "../../_chunks/anamnesis-summary-rows-lONg-zja.js";
2
2
  export {
3
3
  e as Anamnesis,
4
4
  i as AnamnesisConfigEditor,
@@ -1,4 +1,4 @@
1
- import { A as s, C as r, a as o, b as t, c as E, D as P, d as S, S as i, V as A, W as C, e as d, i as n, m as D, r as l, u as p, f as W, g as _ } from "../../_chunks/calendar-appointment-editor-dialog-cvUpUjj-.js";
1
+ import { A as s, C as r, a as o, b as t, c as E, D as P, d as S, S as i, V as A, W as C, e as d, i as n, m as D, r as l, u as p, f as W, g as _ } from "../../_chunks/calendar-appointment-editor-dialog-DhTTWgXw.js";
2
2
  export {
3
3
  s as AppointmentEditorDialog,
4
4
  r as CALENDAR_PREFERENCE_KEYS,
@@ -1,4 +1,4 @@
1
- import { F as r, a } from "../../_chunks/forgot-password-form-BSOZVrZG.js";
1
+ import { F as r, a } from "../../_chunks/forgot-password-form-BQPvDS7i.js";
2
2
  export {
3
3
  r as FORGOT_PASSWORD_FORM_FIELDS,
4
4
  a as ForgotPasswordForm
@@ -1,4 +1,4 @@
1
- import { A as r, a as t, H as s, b as i, u as o } from "../../_chunks/help-me-write-templates-Ds1FY-WY.js";
1
+ import { A as r, a as t, H as s, b as i, u as o } from "../../_chunks/help-me-write-templates-BJSf24xS.js";
2
2
  import { A as l } from "../../_chunks/ai-credits-exhausted-notice-CwZnSACy.js";
3
3
  export {
4
4
  r as AiCreditsExhaustedError,
@@ -1,4 +1,4 @@
1
- import { L, a as r, b as s } from "../../_chunks/login-dev-card-DRxTPkE9.js";
1
+ import { L, a as r, b as s } from "../../_chunks/login-dev-card-CvLHj-_N.js";
2
2
  export {
3
3
  L as LOGIN_FORM_FIELDS,
4
4
  r as LoginDevCard,
@@ -7,17 +7,23 @@ export type LoginFormField = (typeof LOGIN_FORM_FIELDS)[number];
7
7
  export interface LoginFormValues {
8
8
  email: string;
9
9
  password: string;
10
+ /** True when the "Remember me" box is ticked. Always false when the
11
+ * box is not shown. */
12
+ rememberMe: boolean;
10
13
  }
11
14
  /** Values to show when the form opens. There is no password here, on
12
15
  * purpose: a password is never sent back to the browser. */
13
- export type LoginFormInitialValues = Partial<Pick<LoginFormValues, 'email'>>;
16
+ export type LoginFormInitialValues = Partial<Pick<LoginFormValues, 'email' | 'rememberMe'>>;
14
17
  /** Messages from the server, already translated: one per field, plus
15
18
  * `form` for a message about the whole form, such as "the email or
16
19
  * password is incorrect". */
17
20
  export type LoginFormErrors = Partial<Record<LoginFormField | 'form', string>>;
18
- /** The host's own form field names, for a native form post. Both are
19
- * needed: a field without a name is not posted. */
20
- export type LoginFormFieldNames = Record<LoginFormField, string>;
21
+ /** The host's own form field names, for a native form post. `email` and
22
+ * `password` are needed: a field without a name is not posted.
23
+ * `rememberMe` is optional and also turns the "Remember me" box on. */
24
+ export type LoginFormFieldNames = Record<LoginFormField, string> & {
25
+ rememberMe?: string;
26
+ };
21
27
  export interface LoginFormProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onSubmit'> {
22
28
  /** Replaces the heading "Sign in to Alfadocs". Pass it translated. */
23
29
  title?: string;
@@ -47,8 +53,9 @@ export interface LoginFormProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ti
47
53
  * it is posted. Keep any heading inside it below the card's own level.
48
54
  */
49
55
  children?: ReactNode;
50
- /** The email to show when the form opens, such as the one last used.
51
- * Read once. There is never an initial password. */
56
+ /** The email to show when the form opens, such as the one last used,
57
+ * and whether "Remember me" starts ticked (default false). Read once.
58
+ * There is never an initial password. */
52
59
  initialValues?: LoginFormInitialValues;
53
60
  /**
54
61
  * Messages from the server, already translated. A field's message
@@ -73,6 +80,14 @@ export interface LoginFormProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ti
73
80
  * link. The same rule holds for the two addresses below.
74
81
  */
75
82
  forgotPasswordHref?: string;
83
+ /**
84
+ * Adds a "Remember me on this computer" box under the password, unticked
85
+ * by default. Off unless you set this or name the box in
86
+ * `fieldNames.rememberMe`. What "remember" means is the server's: the
87
+ * kit only reports the box (`rememberMe` in `onSubmit`, or the posted
88
+ * field).
89
+ */
90
+ showRememberMe?: boolean;
76
91
  /** Adds "Register as a doctor" under the button. */
77
92
  registerDoctorHref?: string;
78
93
  /** Adds "Register as a patient" under the button. */
@@ -91,7 +106,9 @@ export interface LoginFormProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ti
91
106
  /**
92
107
  * For a native form post: the host's own field names, both of them,
93
108
  * e.g. `{ email: 'email', password: 'password' }`. When set, the inputs
94
- * carry these names and the browser posts the form.
109
+ * carry these names and the browser posts the form. Add `rememberMe`
110
+ * (e.g. `'_remember_me'`) to show the "Remember me" box: ticked, it posts
111
+ * `<name>=on`; unticked, it posts nothing.
95
112
  */
96
113
  fieldNames?: LoginFormFieldNames;
97
114
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"login-form.d.ts","sourceRoot":"","sources":["../../../src/patterns/login-form/login-form.tsx"],"names":[],"mappings":"AAaA,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAsBf,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAW7D,wDAAwD;AACxD,eAAO,MAAM,iBAAiB,gCAAiC,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,6DAA6D;AAC7D,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;6DAC6D;AAC7D,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;AAE7E;;8BAE8B;AAC9B,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE/E;oDACoD;AACpD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAEjE,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,cAAc,CAAC,cAAc,CAAC,EAC9B,OAAO,GAAG,UAAU,CACrB;IACC,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;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CAAC;IAC5B,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;uDACmD;IACnD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAiDD;;;GAGG;AACH,eAAO,MAAM,SAAS,2GAyZrB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { RegistrationForm, REGISTRATION_FORM_FIELDS, } from './registration-form';
2
- export type { RegistrationFormProps, RegistrationFormField, RegistrationFormTextField, RegistrationFormFieldNames, RegistrationFormValues, RegistrationFormInitialValues, RegistrationFormErrors, RegistrationFormDevBypass, RegistrationFormDevValues, } from './registration-form';
2
+ export type { RegistrationFormProps, RegistrationFormField, RegistrationFormTextField, RegistrationFormFieldNames, RegistrationFormValues, RegistrationFormInitialValues, RegistrationFormErrors, RegistrationFormExistingAccount, RegistrationFormDevBypass, RegistrationFormDevValues, } from './registration-form';
3
3
  export type { RegistrationVerifiableField, RegistrationFieldVerification, RegistrationFieldVerificationOptions, RegistrationFieldVerificationCallbacks, RegistrationFieldVerificationUrls, RegistrationCodeResult, RegistrationCodeFailure, } from './use-contact-verification';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/registration-form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,2BAA2B,EAC3B,6BAA6B,EAC7B,oCAAoC,EACpC,sCAAsC,EACtC,iCAAiC,EACjC,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/registration-form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,2BAA2B,EAC3B,6BAA6B,EAC7B,oCAAoC,EACpC,sCAAsC,EACtC,iCAAiC,EACjC,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,4BAA4B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { R as o, a as r } from "../../_chunks/registration-form-xORq2s4p.js";
1
+ import { R as o, a as r } from "../../_chunks/registration-form-CNBfUduG.js";
2
2
  export {
3
3
  o as REGISTRATION_FORM_FIELDS,
4
4
  r as RegistrationForm
@@ -62,6 +62,13 @@ export interface RegistrationFormDevBypass {
62
62
  /** Messages from the server, already translated by the host: one per
63
63
  * field, plus `form` for a message about the whole form. */
64
64
  export type RegistrationFormErrors = Partial<Record<RegistrationFormField | 'form', string>>;
65
+ /** The data behind the existing-account state of `RegistrationForm`. */
66
+ export interface RegistrationFormExistingAccount {
67
+ /** Where "Sign in" goes. Same tab. An unsafe address is dropped. */
68
+ loginHref: string;
69
+ /** Where "Reset password" goes. Optional. Same tab. An unsafe address is dropped. */
70
+ resetPasswordHref?: string;
71
+ }
65
72
  /** The host's own form field names, for a native form post. `captcha`
66
73
  * names the hidden field that carries the reCAPTCHA token. */
67
74
  export type RegistrationFormFieldNames = Partial<Record<RegistrationFormField | 'captcha', string>>;
@@ -205,6 +212,26 @@ export interface RegistrationFormProps extends Omit<HTMLAttributes<HTMLDivElemen
205
212
  termsDescriptionText?: string;
206
213
  /** Adds "Already have an account? Sign in". Same rule as `termsHref`. */
207
214
  loginHref?: string;
215
+ /**
216
+ * The server refused the email because an account already has it. The email
217
+ * field shows the kit's own message, naming the way forward, with a link to
218
+ * sign in and a link to reset the password. Data only, so it works from JSON.
219
+ *
220
+ * The state is read against the email the form opened with
221
+ * (`initialValues.email`, which must not be empty), so it is for a page the
222
+ * server renders again after refusing the post. A React host that answers
223
+ * through `onSubmit` mounts the form again (a new `key`) with
224
+ * `initialValues.email` set to the refused address. Any edit to the email
225
+ * removes the message and the links; typing the opening address back brings
226
+ * them back. While it shows, the card's footer sign-in line is hidden, so
227
+ * there is one "Sign in".
228
+ *
229
+ * Privacy: an address in a link's URL lands in server logs and in analytics
230
+ * page URLs. Preferred: keep the address in the host's own session and link
231
+ * plainly (`/login`). Allowed: put it in the query string
232
+ * (`/login?email=...`).
233
+ */
234
+ existingAccount?: RegistrationFormExistingAccount;
208
235
  /** A Google reCAPTCHA v2 site key of the invisible type. The check
209
236
  * runs when the user submits. Leave it out where the server does not
210
237
  * verify a token. */
@@ -1 +1 @@
1
- {"version":3,"file":"registration-form.d.ts","sourceRoot":"","sources":["../../../src/patterns/registration-form/registration-form.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAiBf,OAAO,EAGL,KAAK,8BAA8B,EACpC,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAU,KAAK,YA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AAC;IAChD;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,OAAO,CACpB,MAAM,CAAC,2BAA2B,EAAE,6BAA6B,CAAC,CACnE,CAAC;IACF;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAyND;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,kHAsjC5B,CAAC"}
1
+ {"version":3,"file":"registration-form.d.ts","sourceRoot":"","sources":["../../../src/patterns/registration-form/registration-form.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAQL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAiBf,OAAO,EAGL,KAAK,8BAA8B,EACpC,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMpE,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxE,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EACjC,MAAM,4BAA4B,CAAC;AAYpC,wDAAwD;AACxD,eAAO,MAAM,wBAAwB,wHAU3B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,uEAAuE;AACvE,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,qBAAqB,EACnB,WAAW,GACX,UAAU,GACV,OAAO,GACP,cAAc,GACd,UAAU,GACV,iBAAiB,CACpB,CAAC;AAEF;oEACoE;AACpE,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,eAAe,EAAE,MAAM,CAAC;IACxB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,C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AAC,EAAE,SAAS,CAAC;IAC7B;oEACgE;IAChE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAAe,CAAC,EAAE,+BAA+B,CAAC;IAClD;;0BAEsB;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;0CACsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC;uDACmD;IACnD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACpD;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,OAAO,CACpB,MAAM,CAAC,2BAA2B,EAAE,6BAA6B,CAAC,CACnE,CAAC;IACF;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAyND;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,kHAqmC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ResetPasswordForm, RESET_PASSWORD_FORM_FIELDS, } from './reset-password-form';
2
+ export type { ResetPasswordFormProps, ResetPasswordFormField, ResetPasswordFormFieldNames, ResetPasswordFormState, ResetPasswordFormValues, ResetPasswordFormErrors, } from './reset-password-form';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/reset-password-form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { R as a, a as o } from "../../_chunks/reset-password-form-Cf9QPEJu.js";
2
+ export {
3
+ a as RESET_PASSWORD_FORM_FIELDS,
4
+ o as ResetPasswordForm
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,108 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ import type { BrandMarkMotion } from '../_shared/brand-mark';
3
+ /** The form's two fields. */
4
+ export declare const RESET_PASSWORD_FORM_FIELDS: readonly ["password", "passwordConfirm"];
5
+ export type ResetPasswordFormField = (typeof RESET_PASSWORD_FORM_FIELDS)[number];
6
+ /** What the card shows: the form, the result after a good change, or the
7
+ * result for a link that no longer works. */
8
+ export type ResetPasswordFormState = 'form' | 'done' | 'expired';
9
+ /** What `onSubmit` receives once both passwords have passed their checks. */
10
+ export interface ResetPasswordFormValues {
11
+ password: string;
12
+ passwordConfirm: string;
13
+ }
14
+ /** Messages from the server, already translated: one for each field, plus
15
+ * `form` for a message about the whole form. */
16
+ export type ResetPasswordFormErrors = Partial<Record<ResetPasswordFormField | 'form', string>>;
17
+ /** The host's own form field names, for a native form post. They are
18
+ * needed: a field without a name is not posted. */
19
+ export type ResetPasswordFormFieldNames = Record<ResetPasswordFormField, string>;
20
+ export interface ResetPasswordFormProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'onSubmit'> {
21
+ /**
22
+ * What the card shows. Default `form`. `done` and `expired` replace the
23
+ * form and take focus when they appear.
24
+ */
25
+ state?: ResetPasswordFormState;
26
+ /** Replaces the form's heading "Choose a new password". Pass it
27
+ * translated. The result states have their own heading. */
28
+ title?: string;
29
+ /** Replaces the line under the form's heading ("Enter a new password
30
+ * for your account."). Pass it translated. */
31
+ description?: string;
32
+ /**
33
+ * The heading's level. Default 1: this page usually has no other
34
+ * heading. Pass 2 on a page that has its own `h1`.
35
+ */
36
+ headingLevel?: 1 | 2 | 3;
37
+ /** Shows the Alfadocs mark above the heading. Default true. */
38
+ showLogo?: boolean;
39
+ /** How the mark arrives when the card opens. Default `assemble`. */
40
+ logoMotion?: BrandMarkMotion;
41
+ /**
42
+ * Host content between the heading and the fields, such as a notice. It
43
+ * sits outside the form, so nothing in it is posted.
44
+ */
45
+ children?: ReactNode;
46
+ /**
47
+ * The address the password is for. In the form it shows read-only, and
48
+ * is the username a password manager saves the new password under. In
49
+ * the `done` state it is named in the line under the result.
50
+ */
51
+ email?: string;
52
+ /**
53
+ * The `done` state's action, "Sign in". A path on the same site, or an
54
+ * address written in full. Anything else shows no button.
55
+ */
56
+ loginHref?: string;
57
+ /**
58
+ * The `expired` state's action, "Ask for a new link". A path on the
59
+ * same site, or an address written in full. Anything else shows no
60
+ * button.
61
+ */
62
+ requestHref?: string;
63
+ /**
64
+ * Messages from the server, already translated. A field's message shows
65
+ * on the field until the user changes it; `form` shows above the
66
+ * fields. When messages arrive, focus moves to the error summary when a
67
+ * field has one, or to the message above the fields when only that
68
+ * says something. Passwords the server refused are emptied.
69
+ */
70
+ errors?: ResetPasswordFormErrors;
71
+ /** Replaces the button's "Change password". Pass it translated. */
72
+ submitLabel?: string;
73
+ /**
74
+ * True while the host sends the passwords: the button shows a spinner
75
+ * and a second submit is ignored. Set it inside `onSubmit`, before
76
+ * anything is awaited.
77
+ */
78
+ submitting?: boolean;
79
+ /** For React hosts: called with both passwords once they have passed
80
+ * their checks. Not called when `fieldNames` is set. */
81
+ onSubmit?: (values: ResetPasswordFormValues) => void;
82
+ /**
83
+ * For a native form post: the host's own field names, e.g.
84
+ * `{ password: 'lost_password_reset[password1]', passwordConfirm:
85
+ * 'lost_password_reset[password2]' }`. When set, the inputs carry those
86
+ * names and the browser posts the form.
87
+ */
88
+ fieldNames?: ResetPasswordFormFieldNames;
89
+ /**
90
+ * Where a native form post goes. Default: the current address. Only a
91
+ * path, or an address on the page's own origin, is accepted: another
92
+ * origin is never sent what the user typed. Does nothing without
93
+ * `fieldNames`.
94
+ */
95
+ action?: string;
96
+ /**
97
+ * Extra hidden inputs posted with a native form, by name: a CSRF token,
98
+ * e.g. `{ 'lost_password_reset[_token]': token }`. Not used with
99
+ * `onSubmit`. A name that is also in `fieldNames` is left out.
100
+ */
101
+ hiddenFields?: Readonly<Record<string, string>>;
102
+ }
103
+ /**
104
+ * The card for the page the reset email opens. Mount it on the
105
+ * reset-password page, inside `SignedOutFrame` or the host's own chrome.
106
+ */
107
+ export declare const ResetPasswordForm: import("react").ForwardRefExoticComponent<ResetPasswordFormProps & import("react").RefAttributes<HTMLDivElement>>;
108
+ //# sourceMappingURL=reset-password-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-password-form.d.ts","sourceRoot":"","sources":["../../../src/patterns/reset-password-form/reset-password-form.tsx"],"names":[],"mappings":"AAYA,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAwBf,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAY7D,6BAA6B;AAC7B,eAAO,MAAM,0BAA0B,0CAG7B,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9C;8CAC8C;AAC9C,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjE,6EAA6E;AAC7E,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;iDACiD;AACjD,MAAM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AM,EAAE,MAAM,CAAC,CAAC,CAAC;CACjD;AA2CD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,mHA+d7B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { S as o, a as r } from "../../_chunks/send-registration-link-form-__DWY62q.js";
1
+ import { S as o, a as r } from "../../_chunks/send-registration-link-form-vTn1HxjA.js";
2
2
  export {
3
3
  o as SEND_REGISTRATION_LINK_FIELDS,
4
4
  r as SendRegistrationLinkForm
@@ -1,4 +1,4 @@
1
- import { W as O, a } from "../../_chunks/workflow-webhook-action-BvVPZVpG.js";
1
+ import { W as O, a } from "../../_chunks/workflow-webhook-action-DulCpCRz.js";
2
2
  export {
3
3
  O as WORKFLOW_WEBHOOK_ACTION_FIELDS,
4
4
  a as WorkflowWebhookAction
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit-debug",
3
- "version": "1.78.0",
3
+ "version": "1.79.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe. (debug build — identical runtime to @alfadocs/ui-kit, ships source maps for symbolication).",
6
6
  "license": "BUSL-1.1",
@@ -891,6 +891,10 @@
891
891
  "types": "./dist/patterns/registration-form/index.d.ts",
892
892
  "import": "./dist/patterns/registration-form/index.js"
893
893
  },
894
+ "./patterns/reset-password-form": {
895
+ "types": "./dist/patterns/reset-password-form/index.d.ts",
896
+ "import": "./dist/patterns/reset-password-form/index.js"
897
+ },
894
898
  "./patterns/send-registration-link-form": {
895
899
  "types": "./dist/patterns/send-registration-link-form/index.d.ts",
896
900
  "import": "./dist/patterns/send-registration-link-form/index.js"