@tempots/beatui 0.82.0 → 0.83.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 (551) hide show
  1. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  2. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  3. package/dist/ar-CBrjAlIY.cjs +1 -0
  4. package/dist/ar-DjMvIww5.js +175 -0
  5. package/dist/{ar-NCCPhOpI.js → ar-DwDxAANU.js} +16 -1
  6. package/dist/ar-kZBzg02I.cjs +1 -0
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +64 -1351
  9. package/dist/auth-divider-C3_CgC0l.js +1375 -0
  10. package/dist/auth-divider-C4WTL71M.cjs +1 -0
  11. package/dist/beatui.css +11183 -5596
  12. package/dist/beatui.tailwind.css +11210 -5623
  13. package/dist/better-auth/index.cjs.js +1 -0
  14. package/dist/better-auth/index.es.js +741 -0
  15. package/dist/{colors-B2yrgHSW.cjs → colors-BI0YhONJ.cjs} +1 -1
  16. package/dist/{colors-DPo9GEJR.js → colors-BmLYKmoH.js} +38 -30
  17. package/dist/de-B03SM9eF.cjs +1 -0
  18. package/dist/{de-BVK2MkCk.js → de-CSGSC0xX.js} +18 -3
  19. package/dist/de-CrBw41po.cjs +1 -0
  20. package/dist/{de-f2xcEb34.js → de-wChFYqM4.js} +79 -5
  21. package/dist/deep-merge-CmQoIYPC.js +1689 -0
  22. package/dist/deep-merge-UghuPcyW.cjs +1 -0
  23. package/dist/duration-input-BJzKgI15.cjs +1 -0
  24. package/dist/{duration-input-B3vnnwBZ.js → duration-input-DaB6s0rL.js} +24 -23
  25. package/dist/editor-toolbar-group-BslfdazC.js +32 -0
  26. package/dist/editor-toolbar-group-_V1rDM-1.cjs +1 -0
  27. package/dist/{es-BxBeTRCv.cjs → es-BRa0hV-7.cjs} +1 -1
  28. package/dist/es-Ca5xT3NE.cjs +1 -0
  29. package/dist/es-CmPF3IGl.js +175 -0
  30. package/dist/{es-BQS8PL9j.js → es-dR46FTMF.js} +16 -1
  31. package/dist/{fa-DxPseW3g.cjs → fa-BxCSKn9j.cjs} +1 -1
  32. package/dist/fa-D696e75R.js +175 -0
  33. package/dist/fa-DhZJYuC6.cjs +1 -0
  34. package/dist/{fa-T-tkJSJr.js → fa-FsHBFjdY.js} +16 -1
  35. package/dist/fr-1nSKSIlw.cjs +1 -0
  36. package/dist/{fr-yOW_68YY.js → fr-B0jeX1Hx.js} +83 -9
  37. package/dist/{fr-CSRRhyCG.js → fr-Di6BT9_V.js} +18 -3
  38. package/dist/fr-Dq6RAY9s.cjs +1 -0
  39. package/dist/he-BBX1h9uD.cjs +1 -0
  40. package/dist/{he-Bxdc4M08.js → he-CXujw1Lw.js} +16 -1
  41. package/dist/he-DhcurPt5.cjs +1 -0
  42. package/dist/he-SgAsIYJA.js +175 -0
  43. package/dist/{hi-CJeFvTBe.js → hi-Bvh4d9bO.js} +16 -1
  44. package/dist/hi-Cd0YQZTU.cjs +1 -0
  45. package/dist/hi-CxsIxbfM.cjs +1 -0
  46. package/dist/hi-s9oiIihq.js +175 -0
  47. package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
  48. package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
  49. package/dist/{index-ChsRjiIp.cjs → index-Bm43lZqE.cjs} +19 -19
  50. package/dist/{index-C5YCCgnn.cjs → index-C2_iX1um.cjs} +1 -1
  51. package/dist/{index-DT6-HMMz.js → index-C32iUFIr.js} +1432 -1462
  52. package/dist/{index-CiAVfKIZ.js → index-CEqc0H3v.js} +1 -1
  53. package/dist/index-DH37GTQj.cjs +1 -0
  54. package/dist/{index-DklKfzD4.js → index-Di1_W_7Q.js} +351 -361
  55. package/dist/index.cjs.js +4 -4
  56. package/dist/index.es.js +6310 -3528
  57. package/dist/input-container-CSi72GI1.cjs +1 -0
  58. package/dist/input-container-Nx0gMAzS.js +258 -0
  59. package/dist/it-ByIEk5Cq.cjs +1 -0
  60. package/dist/it-D_IcaYxp.cjs +1 -0
  61. package/dist/{it-6e6X-4BB.js → it-Dc4IMciD.js} +80 -6
  62. package/dist/{it-Zmp0BhIj.js → it-EWhykhHv.js} +18 -3
  63. package/dist/ja-CMGqpPo7.cjs +1 -0
  64. package/dist/{ja-BxNuNo2H.js → ja-D2t2g5xj.js} +85 -11
  65. package/dist/ja-DV6Fpp18.cjs +1 -0
  66. package/dist/{ja-DWjoA-hQ.js → ja-YZ0P5woj.js} +16 -1
  67. package/dist/json-schema/index.cjs.js +1 -1
  68. package/dist/json-schema/index.es.js +212 -205
  69. package/dist/json-schema-display/index.cjs.js +1 -1
  70. package/dist/json-schema-display/index.es.js +1 -1
  71. package/dist/json-structure/index.cjs.js +1 -1
  72. package/dist/json-structure/index.es.js +623 -762
  73. package/dist/ko-BPl5rP97.cjs +1 -0
  74. package/dist/ko-BRylA5JZ.js +175 -0
  75. package/dist/ko-DR1f0as8.cjs +1 -0
  76. package/dist/{ko-BOlI-33h.js → ko-U7BSUAxZ.js} +16 -1
  77. package/dist/lexical/index.cjs.js +46 -0
  78. package/dist/lexical/index.es.js +21397 -0
  79. package/dist/lexical.css +1122 -0
  80. package/dist/menu-CX72LaZ3.cjs +1 -0
  81. package/dist/menu-D_slbwl8.js +374 -0
  82. package/dist/modal-DaI1jH-X.js +488 -0
  83. package/dist/modal-kyZfvVZb.cjs +1 -0
  84. package/dist/nl-BSfaHFt0.cjs +1 -0
  85. package/dist/{nl-Dr-l6zUy.cjs → nl-CQF0N7Mc.cjs} +1 -1
  86. package/dist/{nl-kQNcAdY1.js → nl-CqAxoB4J.js} +18 -3
  87. package/dist/nl-Dh7LUWAn.js +176 -0
  88. package/dist/notice-Bc1L4Zpr.cjs +1 -0
  89. package/dist/{notice-CZHWWwOQ.js → notice-Dz4nX57_.js} +49 -48
  90. package/dist/{oneof-branch-detection-BVNoKU9d.js → oneof-branch-detection-BED_n2MT.js} +523 -520
  91. package/dist/{oneof-branch-detection-C8g3eWnx.cjs → oneof-branch-detection-Vov_e3kI.cjs} +4 -4
  92. package/dist/{pl-CKyPFvss.js → pl-C-weXGCB.js} +16 -1
  93. package/dist/pl-D-O4sCnr.cjs +1 -0
  94. package/dist/{pl-Bs4nLJ__.js → pl-XEG-p1Q9.js} +77 -3
  95. package/dist/{pl-BK0i_yvq.cjs → pl-y_w3DWF3.cjs} +1 -1
  96. package/dist/prosemirror/index.cjs.js +1 -1
  97. package/dist/prosemirror/index.es.js +1 -1
  98. package/dist/{pt-DBmUhaNI.js → pt-BjNGOoZH.js} +18 -3
  99. package/dist/pt-DYsDA2sZ.js +175 -0
  100. package/dist/pt-DqaZWmbG.cjs +1 -0
  101. package/dist/pt-chEEYLlt.cjs +1 -0
  102. package/dist/ru-B46hVpFF.cjs +1 -0
  103. package/dist/{ru-Bi1_DEKM.js → ru-BTKBykp-.js} +86 -12
  104. package/dist/{ru-CsJ_yT-7.js → ru-CFmeZBXK.js} +16 -1
  105. package/dist/ru-CISMzCHR.cjs +1 -0
  106. package/dist/session-id-3KiilioY.js +8 -0
  107. package/dist/session-id-B5lJMzbB.cjs +1 -0
  108. package/dist/styles-url-CVCcF0ra.cjs +1 -0
  109. package/dist/styles-url-DUdp56Ts.js +4 -0
  110. package/dist/tailwind/index.cjs.js +1 -1
  111. package/dist/tailwind/index.es.js +3 -3
  112. package/dist/tailwind/preset.cjs.js +1 -1
  113. package/dist/tailwind/preset.es.js +74 -4
  114. package/dist/tailwind/vite-plugin.cjs.js +10 -10
  115. package/dist/tailwind/vite-plugin.es.js +289 -410
  116. package/dist/text-input-8v79fzEy.cjs +1 -0
  117. package/dist/text-input-CPJzUC2r.js +45 -0
  118. package/dist/{toolbar-DR2Zd4Oo.js → toolbar-CjQG7l7X.js} +4 -4
  119. package/dist/toolbar-D3ZsC0g_.cjs +1 -0
  120. package/dist/{tr-Bn5ldVJs.js → tr-C5X2gFZS.js} +17 -2
  121. package/dist/tr-CaMaflJL.cjs +1 -0
  122. package/dist/{tr-DiYB-FwX.js → tr-Cp8ZCUic.js} +77 -3
  123. package/dist/{tr-CgJ8uhZu.cjs → tr-mWu2E__o.cjs} +1 -1
  124. package/dist/{translations-Cq8bUKJP.js → translations-BGblCUBj.js} +144 -70
  125. package/dist/translations-CZ0KOii3.cjs +1 -0
  126. package/dist/translations-gVgMyNno.cjs +1 -0
  127. package/dist/translations-jUYta1_1.js +87 -0
  128. package/dist/types/auth/index.d.ts +13 -0
  129. package/dist/types/auth-i18n/default.d.ts +14 -0
  130. package/dist/types/auth-i18n/locales/ar.d.ts +14 -0
  131. package/dist/types/auth-i18n/locales/de.d.ts +14 -0
  132. package/dist/types/auth-i18n/locales/en.d.ts +14 -0
  133. package/dist/types/auth-i18n/locales/es.d.ts +14 -0
  134. package/dist/types/auth-i18n/locales/fa.d.ts +14 -0
  135. package/dist/types/auth-i18n/locales/fr.d.ts +14 -0
  136. package/dist/types/auth-i18n/locales/he.d.ts +14 -0
  137. package/dist/types/auth-i18n/locales/hi.d.ts +14 -0
  138. package/dist/types/auth-i18n/locales/it.d.ts +14 -0
  139. package/dist/types/auth-i18n/locales/ja.d.ts +14 -0
  140. package/dist/types/auth-i18n/locales/ko.d.ts +14 -0
  141. package/dist/types/auth-i18n/locales/nl.d.ts +14 -0
  142. package/dist/types/auth-i18n/locales/pl.d.ts +14 -0
  143. package/dist/types/auth-i18n/locales/pt.d.ts +14 -0
  144. package/dist/types/auth-i18n/locales/ru.d.ts +14 -0
  145. package/dist/types/auth-i18n/locales/tr.d.ts +14 -0
  146. package/dist/types/auth-i18n/locales/ur.d.ts +14 -0
  147. package/dist/types/auth-i18n/locales/vi.d.ts +14 -0
  148. package/dist/types/auth-i18n/locales/zh.d.ts +14 -0
  149. package/dist/types/auth-i18n/translations.d.ts +14 -0
  150. package/dist/types/beatui-i18n/default.d.ts +99 -0
  151. package/dist/types/beatui-i18n/index.d.ts +11 -0
  152. package/dist/types/beatui-i18n/locales/en.d.ts +63 -0
  153. package/dist/types/beatui-i18n/translations.d.ts +87 -0
  154. package/dist/types/better-auth/bridge.d.ts +2 -0
  155. package/dist/types/better-auth/callbacks.d.ts +6 -0
  156. package/dist/types/better-auth/components/authenticated.d.ts +4 -0
  157. package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
  158. package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
  159. package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
  160. package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
  161. package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
  162. package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
  163. package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
  164. package/dist/types/better-auth/i18n/default.d.ts +29 -0
  165. package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
  166. package/dist/types/better-auth/i18n/translations.d.ts +27 -0
  167. package/dist/types/better-auth/index.d.ts +35 -0
  168. package/dist/types/better-auth/provider.d.ts +39 -0
  169. package/dist/types/better-auth/session.d.ts +14 -0
  170. package/dist/types/better-auth/social-mapping.d.ts +2 -0
  171. package/dist/types/better-auth/types.d.ts +276 -0
  172. package/dist/types/components/auth/auth-container.d.ts +63 -2
  173. package/dist/types/components/auth/auth-divider.d.ts +30 -0
  174. package/dist/types/components/auth/auth-email-prop.d.ts +25 -0
  175. package/dist/types/components/auth/index.d.ts +9 -0
  176. package/dist/types/components/auth/password-strength-indicator.d.ts +58 -0
  177. package/dist/types/components/auth/reset-password-form.d.ts +33 -0
  178. package/dist/types/components/auth/schemas.d.ts +183 -5
  179. package/dist/types/components/auth/signin-form.d.ts +33 -0
  180. package/dist/types/components/auth/signup-form.d.ts +36 -0
  181. package/dist/types/components/auth/social-login-button.d.ts +213 -0
  182. package/dist/types/components/auth/social-providers.d.ts +27 -1
  183. package/dist/types/components/auth/types.d.ts +301 -0
  184. package/dist/types/components/auth/utils.d.ts +198 -0
  185. package/dist/types/components/beatui.d.ts +35 -0
  186. package/dist/types/components/button/button.d.ts +61 -0
  187. package/dist/types/components/button/close-button.d.ts +32 -1
  188. package/dist/types/components/button/index.d.ts +2 -0
  189. package/dist/types/components/button/toggle-button-group.d.ts +95 -0
  190. package/dist/types/components/button/toggle-button.d.ts +60 -0
  191. package/dist/types/components/data/avatar-group.d.ts +74 -0
  192. package/dist/types/components/data/avatar.d.ts +62 -0
  193. package/dist/types/components/data/badge.d.ts +49 -2
  194. package/dist/types/components/data/calendar-shared.d.ts +59 -0
  195. package/dist/types/components/data/calendar.d.ts +107 -0
  196. package/dist/types/components/data/history-timeline.d.ts +35 -0
  197. package/dist/types/components/data/icon-badge.d.ts +14 -0
  198. package/dist/types/components/data/icon.d.ts +55 -4
  199. package/dist/types/components/data/index.d.ts +9 -0
  200. package/dist/types/components/data/page-drop-zone.d.ts +61 -8
  201. package/dist/types/components/data/presence-overlay.d.ts +26 -0
  202. package/dist/types/components/data/progress-bar.d.ts +81 -0
  203. package/dist/types/components/data/range-calendar.d.ts +104 -0
  204. package/dist/types/components/data/skeleton.d.ts +70 -0
  205. package/dist/types/components/data/table.d.ts +38 -11
  206. package/dist/types/components/data/tag.d.ts +40 -0
  207. package/dist/types/components/data/unstyled-drop-zone.d.ts +73 -0
  208. package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
  209. package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
  210. package/dist/types/components/editor-toolbar/index.d.ts +2 -0
  211. package/dist/types/components/form/control/control.d.ts +155 -0
  212. package/dist/types/components/form/control/date-utils.d.ts +81 -0
  213. package/dist/types/components/form/control/ensure-control.d.ts +28 -0
  214. package/dist/types/components/form/control/form-status.d.ts +63 -0
  215. package/dist/types/components/form/control/index.d.ts +10 -0
  216. package/dist/types/components/form/control/list-control.d.ts +100 -1
  217. package/dist/types/components/form/control/list-item-controls.d.ts +65 -0
  218. package/dist/types/components/form/controller/color-controller.d.ts +29 -1
  219. package/dist/types/components/form/controller/controller-validation.d.ts +31 -0
  220. package/dist/types/components/form/controller/controller.d.ts +286 -0
  221. package/dist/types/components/form/controller/index.d.ts +12 -0
  222. package/dist/types/components/form/controller/path.d.ts +69 -0
  223. package/dist/types/components/form/controller/union-controller.d.ts +106 -11
  224. package/dist/types/components/form/controller/utils.d.ts +67 -0
  225. package/dist/types/components/form/input/advanced-slider.d.ts +143 -0
  226. package/dist/types/components/form/input/appearance-selector.d.ts +39 -0
  227. package/dist/types/components/form/input/base64-input.d.ts +34 -0
  228. package/dist/types/components/form/input/base64s-input.d.ts +47 -0
  229. package/dist/types/components/form/input/bigint-input.d.ts +27 -0
  230. package/dist/types/components/form/input/checkbox-input.d.ts +46 -0
  231. package/dist/types/components/form/input/color-input.d.ts +42 -0
  232. package/dist/types/components/form/input/color-swatch-input.d.ts +53 -0
  233. package/dist/types/components/form/input/combobox-input.d.ts +73 -0
  234. package/dist/types/components/form/input/combobox-tags-input.d.ts +54 -0
  235. package/dist/types/components/form/input/date-input.d.ts +33 -0
  236. package/dist/types/components/form/input/date-time-input.d.ts +34 -0
  237. package/dist/types/components/form/input/dropdown-base.d.ts +52 -0
  238. package/dist/types/components/form/input/dropdown-input.d.ts +86 -0
  239. package/dist/types/components/form/input/duration-input.d.ts +18 -0
  240. package/dist/types/components/form/input/duration-mask.d.ts +24 -0
  241. package/dist/types/components/form/input/editable-text.d.ts +33 -0
  242. package/dist/types/components/form/input/email-input.d.ts +34 -0
  243. package/dist/types/components/form/input/file-input.d.ts +33 -0
  244. package/dist/types/components/form/input/files-input.d.ts +44 -0
  245. package/dist/types/components/form/input/index.d.ts +5 -0
  246. package/dist/types/components/form/input/input-adornment.d.ts +38 -0
  247. package/dist/types/components/form/input/input-container.d.ts +65 -0
  248. package/dist/types/components/form/input/input-options.d.ts +70 -0
  249. package/dist/types/components/form/input/input-wrapper.d.ts +78 -0
  250. package/dist/types/components/form/input/instant-input.d.ts +18 -0
  251. package/dist/types/components/form/input/lazy-native-select.d.ts +43 -0
  252. package/dist/types/components/form/input/list-input.d.ts +50 -0
  253. package/dist/types/components/form/input/mask-input.d.ts +158 -0
  254. package/dist/types/components/form/input/native-select.d.ts +50 -0
  255. package/dist/types/components/form/input/nullable-base64-input.d.ts +25 -0
  256. package/dist/types/components/form/input/nullable-bigint-input.d.ts +26 -0
  257. package/dist/types/components/form/input/nullable-date-input.d.ts +18 -0
  258. package/dist/types/components/form/input/nullable-date-time-input.d.ts +19 -0
  259. package/dist/types/components/form/input/nullable-duration-input.d.ts +19 -0
  260. package/dist/types/components/form/input/nullable-email-input.d.ts +18 -0
  261. package/dist/types/components/form/input/nullable-instant-input.d.ts +19 -0
  262. package/dist/types/components/form/input/nullable-mask-input.d.ts +24 -0
  263. package/dist/types/components/form/input/nullable-number-input.d.ts +29 -0
  264. package/dist/types/components/form/input/nullable-password-input.d.ts +18 -0
  265. package/dist/types/components/form/input/nullable-plain-date-input.d.ts +18 -0
  266. package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +18 -0
  267. package/dist/types/components/form/input/nullable-plain-month-day-input.d.ts +18 -0
  268. package/dist/types/components/form/input/nullable-plain-time-input.d.ts +18 -0
  269. package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +18 -0
  270. package/dist/types/components/form/input/nullable-rating-input.d.ts +33 -0
  271. package/dist/types/components/form/input/nullable-text-area.d.ts +27 -0
  272. package/dist/types/components/form/input/nullable-text-input.d.ts +18 -0
  273. package/dist/types/components/form/input/nullable-url-input.d.ts +18 -0
  274. package/dist/types/components/form/input/nullable-utils.d.ts +22 -2
  275. package/dist/types/components/form/input/nullable-uuid-input.d.ts +18 -0
  276. package/dist/types/components/form/input/nullable-zoned-date-time-input.d.ts +20 -0
  277. package/dist/types/components/form/input/number-input.d.ts +49 -0
  278. package/dist/types/components/form/input/option.d.ts +165 -0
  279. package/dist/types/components/form/input/otp-input.d.ts +77 -0
  280. package/dist/types/components/form/input/password-input.d.ts +39 -0
  281. package/dist/types/components/form/input/plain-date-input.d.ts +17 -0
  282. package/dist/types/components/form/input/plain-date-time-input.d.ts +17 -0
  283. package/dist/types/components/form/input/plain-month-day-input.d.ts +18 -0
  284. package/dist/types/components/form/input/plain-time-input.d.ts +17 -0
  285. package/dist/types/components/form/input/plain-year-month-input.d.ts +17 -0
  286. package/dist/types/components/form/input/radio-group.d.ts +108 -0
  287. package/dist/types/components/form/input/rating-input.d.ts +57 -0
  288. package/dist/types/components/form/input/segmented-input.d.ts +70 -1
  289. package/dist/types/components/form/input/select-tags-input.d.ts +69 -0
  290. package/dist/types/components/form/input/slider-input.d.ts +82 -0
  291. package/dist/types/components/form/input/switch.d.ts +59 -1
  292. package/dist/types/components/form/input/tag-input.d.ts +19 -0
  293. package/dist/types/components/form/input/tag-utils.d.ts +111 -0
  294. package/dist/types/components/form/input/tags-input.d.ts +18 -0
  295. package/dist/types/components/form/input/text-area.d.ts +42 -0
  296. package/dist/types/components/form/input/text-input.d.ts +63 -1
  297. package/dist/types/components/form/input/url-input.d.ts +34 -0
  298. package/dist/types/components/form/input/uuid-input.d.ts +19 -0
  299. package/dist/types/components/form/input/zoned-date-time-input.d.ts +20 -0
  300. package/dist/types/components/form/schema/standard-schema-v1.d.ts +98 -23
  301. package/dist/types/components/form/use-form.d.ts +146 -2
  302. package/dist/types/components/i18n/index.d.ts +9 -0
  303. package/dist/types/components/i18n/locale-direction.d.ts +21 -1
  304. package/dist/types/components/i18n/locale-selector.d.ts +45 -0
  305. package/dist/types/components/i18n/make-i18nprovider.d.ts +42 -0
  306. package/dist/types/components/json-schema/schema-types.d.ts +133 -0
  307. package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
  308. package/dist/types/components/json-structure/controls/deprecation-utils.d.ts +2 -3
  309. package/dist/types/components/json-structure/controls/index.d.ts +1 -0
  310. package/dist/types/components/json-structure/structure-types.d.ts +473 -19
  311. package/dist/types/components/layout/accordion.d.ts +77 -0
  312. package/dist/types/components/layout/action-card.d.ts +90 -2
  313. package/dist/types/components/layout/app-shell.d.ts +76 -0
  314. package/dist/types/components/layout/card.d.ts +27 -0
  315. package/dist/types/components/layout/center.d.ts +39 -0
  316. package/dist/types/components/layout/collapse.d.ts +28 -0
  317. package/dist/types/components/layout/divider.d.ts +84 -0
  318. package/dist/types/components/layout/group.d.ts +15 -0
  319. package/dist/types/components/layout/index.d.ts +2 -0
  320. package/dist/types/components/layout/nine-slice-scroll-view.d.ts +105 -0
  321. package/dist/types/components/layout/scrollable-panel.d.ts +54 -0
  322. package/dist/types/components/layout/sink.d.ts +46 -0
  323. package/dist/types/components/layout/stack.d.ts +16 -0
  324. package/dist/types/components/layout/with-breakpoint.d.ts +194 -0
  325. package/dist/types/components/lexical/bare-editor.d.ts +29 -0
  326. package/dist/types/components/lexical/code/index.d.ts +1 -0
  327. package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
  328. package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
  329. package/dist/types/components/lexical/docked-editor.d.ts +23 -0
  330. package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
  331. package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
  332. package/dist/types/components/lexical/floating/index.d.ts +6 -0
  333. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
  334. package/dist/types/components/lexical/index.d.ts +8 -0
  335. package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
  336. package/dist/types/components/lexical/table/index.d.ts +1 -0
  337. package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
  338. package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
  339. package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
  340. package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
  341. package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
  342. package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +32 -0
  343. package/dist/types/components/misc/empty-state.d.ts +86 -0
  344. package/dist/types/components/misc/expando.d.ts +81 -0
  345. package/dist/types/components/misc/index.d.ts +2 -1
  346. package/dist/types/components/misc/link-portal.d.ts +40 -2
  347. package/dist/types/components/misc/notice.d.ts +93 -0
  348. package/dist/types/components/misc/notification-panel.d.ts +21 -0
  349. package/dist/types/components/misc/notification-provider.d.ts +141 -0
  350. package/dist/types/components/misc/notification.d.ts +93 -0
  351. package/dist/types/components/misc/style-portal.d.ts +31 -1
  352. package/dist/types/components/monaco/monaco-editor-input.d.ts +59 -2
  353. package/dist/types/components/navigation/breadcrumbs.d.ts +96 -0
  354. package/dist/types/components/navigation/flyout.d.ts +118 -16
  355. package/dist/types/components/navigation/index.d.ts +3 -0
  356. package/dist/types/components/navigation/link/link.d.ts +100 -0
  357. package/dist/types/components/navigation/menu.d.ts +155 -35
  358. package/dist/types/components/navigation/pagination.d.ts +82 -0
  359. package/dist/types/components/navigation/sidebar/sidebar-group.d.ts +42 -0
  360. package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +101 -0
  361. package/dist/types/components/navigation/sidebar/sidebar-separator.d.ts +17 -0
  362. package/dist/types/components/navigation/sidebar/sidebar.d.ts +57 -0
  363. package/dist/types/components/navigation/tabs/tabs.d.ts +3 -2
  364. package/dist/types/components/navigation/toolbar/toolbar.d.ts +125 -0
  365. package/dist/types/components/navigation/tree-view.d.ts +95 -0
  366. package/dist/types/components/overlay/announcement-bar.d.ts +41 -2
  367. package/dist/types/components/overlay/block-command-palette.d.ts +25 -0
  368. package/dist/types/components/overlay/command-palette.d.ts +17 -0
  369. package/dist/types/components/overlay/dialogs.d.ts +213 -0
  370. package/dist/types/components/overlay/drawer.d.ts +76 -12
  371. package/dist/types/components/overlay/index.d.ts +4 -0
  372. package/dist/types/components/overlay/lightbox.d.ts +53 -10
  373. package/dist/types/components/overlay/modal.d.ts +113 -13
  374. package/dist/types/components/overlay/overlay.d.ts +61 -0
  375. package/dist/types/components/overlay/popover.d.ts +100 -0
  376. package/dist/types/components/overlay/ribbon.d.ts +58 -9
  377. package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -11
  378. package/dist/types/components/prosemirror/etoolbar-group.d.ts +11 -4
  379. package/dist/types/components/prosemirror/link-control.d.ts +43 -2
  380. package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +46 -6
  381. package/dist/types/components/prosemirror/utils.d.ts +113 -1
  382. package/dist/types/components/theme/style-utils.d.ts +95 -0
  383. package/dist/types/components/theme/theme.d.ts +39 -0
  384. package/dist/types/components/theme/types.d.ts +133 -1
  385. package/dist/types/components/typography/index.d.ts +1 -0
  386. package/dist/types/components/typography/kbd.d.ts +48 -0
  387. package/dist/types/components/typography/label.d.ts +45 -0
  388. package/dist/types/index.d.ts +14 -0
  389. package/dist/types/json-schema/index.d.ts +13 -0
  390. package/dist/types/json-schema-display/index.d.ts +12 -0
  391. package/dist/types/json-structure/index.d.ts +9 -4
  392. package/dist/types/lexical/commands/index.d.ts +17 -0
  393. package/dist/types/lexical/headless.d.ts +39 -0
  394. package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
  395. package/dist/types/lexical/index.d.ts +20 -0
  396. package/dist/types/lexical/lazy-loader.d.ts +35 -0
  397. package/dist/types/lexical/nodes.d.ts +29 -0
  398. package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
  399. package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
  400. package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
  401. package/dist/types/lexical/plugins/code.d.ts +7 -0
  402. package/dist/types/lexical/plugins/dragon.d.ts +6 -0
  403. package/dist/types/lexical/plugins/file-io.d.ts +10 -0
  404. package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
  405. package/dist/types/lexical/plugins/history.d.ts +7 -0
  406. package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
  407. package/dist/types/lexical/plugins/html-io.d.ts +9 -0
  408. package/dist/types/lexical/plugins/index.d.ts +24 -0
  409. package/dist/types/lexical/plugins/link.d.ts +6 -0
  410. package/dist/types/lexical/plugins/list.d.ts +6 -0
  411. package/dist/types/lexical/plugins/mark.d.ts +15 -0
  412. package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
  413. package/dist/types/lexical/plugins/offset.d.ts +6 -0
  414. package/dist/types/lexical/plugins/overflow.d.ts +7 -0
  415. package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
  416. package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
  417. package/dist/types/lexical/plugins/selection.d.ts +6 -0
  418. package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
  419. package/dist/types/lexical/plugins/table.d.ts +11 -0
  420. package/dist/types/lexical/plugins/text.d.ts +13 -0
  421. package/dist/types/lexical/plugins/yjs.d.ts +9 -0
  422. package/dist/types/lexical/styles-url.d.ts +2 -0
  423. package/dist/types/lexical/styles.d.ts +2 -0
  424. package/dist/types/lexical/types.d.ts +634 -0
  425. package/dist/types/lexical-i18n/default.d.ts +92 -0
  426. package/dist/types/lexical-i18n/index.d.ts +21 -0
  427. package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
  428. package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
  429. package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
  430. package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
  431. package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
  432. package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
  433. package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
  434. package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
  435. package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
  436. package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
  437. package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
  438. package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
  439. package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
  440. package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
  441. package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
  442. package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
  443. package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
  444. package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
  445. package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
  446. package/dist/types/lexical-i18n/translations.d.ts +21 -0
  447. package/dist/types/markdown/index.d.ts +13 -0
  448. package/dist/types/monaco/index.d.ts +17 -0
  449. package/dist/types/monaco/lazy-loader.d.ts +79 -0
  450. package/dist/types/monaco/styles-url.d.ts +11 -0
  451. package/dist/types/monaco/styles.d.ts +11 -0
  452. package/dist/types/monaco/types.d.ts +47 -0
  453. package/dist/types/prosemirror/index.d.ts +12 -0
  454. package/dist/types/prosemirror/styles-url.d.ts +11 -0
  455. package/dist/types/prosemirror/styles.d.ts +10 -0
  456. package/dist/types/tailwind/google-fonts.d.ts +15 -0
  457. package/dist/types/tailwind/index.d.ts +13 -0
  458. package/dist/types/tailwind/preset.d.ts +111 -0
  459. package/dist/types/tailwind/vite-plugin.d.ts +39 -4
  460. package/dist/types/tokens/base-colors.d.ts +21 -0
  461. package/dist/types/tokens/breakpoints.d.ts +67 -0
  462. package/dist/types/tokens/colors.d.ts +213 -4
  463. package/dist/types/tokens/motion.d.ts +142 -3
  464. package/dist/types/tokens/radius.d.ts +99 -0
  465. package/dist/types/tokens/shadows.d.ts +85 -0
  466. package/dist/types/tokens/spacing.d.ts +111 -0
  467. package/dist/types/tokens/text-shadows.d.ts +82 -0
  468. package/dist/types/tokens/typography.d.ts +313 -25
  469. package/dist/types/tokens/z-index.d.ts +62 -0
  470. package/dist/types/utils/color.d.ts +297 -28
  471. package/dist/types/utils/download.d.ts +92 -0
  472. package/dist/types/utils/focus-trap.d.ts +67 -11
  473. package/dist/types/utils/format-file-size.d.ts +44 -0
  474. package/dist/ur-B6yB2JQ7.cjs +1 -0
  475. package/dist/ur-CvGP14xo.cjs +1 -0
  476. package/dist/{ur-Bg9eX81v.js → ur-Deo004ME.js} +16 -1
  477. package/dist/{ur-B69X-xNs.js → ur-DkIYJxsF.js} +82 -8
  478. package/dist/use-animated-toggle-89fKlXxy.js +195 -0
  479. package/dist/use-animated-toggle-DrqK7nUS.cjs +1 -0
  480. package/dist/{use-form-CgZyrACX.js → use-form-BurzbPVV.js} +271 -88
  481. package/dist/use-form-Uree6QFy.cjs +2 -0
  482. package/dist/vi-BYk1rJDv.js +53 -0
  483. package/dist/vi-DKw6PBja.js +175 -0
  484. package/dist/vi-Df4WZe9y.cjs +1 -0
  485. package/dist/vi-DneuUbkq.cjs +1 -0
  486. package/dist/{widget-customization-DRA7E9Zf.js → widget-customization-0is7oTeP.js} +233 -231
  487. package/dist/widget-customization-B-LmxkPE.cjs +1 -0
  488. package/dist/zh-C5a9NGFW.cjs +1 -0
  489. package/dist/zh-CaKHseXJ.js +175 -0
  490. package/dist/zh-DFHuW_5g.cjs +1 -0
  491. package/dist/{zh-BIykcEu9.js → zh-DR7QaM65.js} +16 -1
  492. package/package.json +48 -3
  493. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  494. package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
  495. package/dist/ar-BsUm-TCn.cjs +0 -1
  496. package/dist/ar-D7CXDmVZ.cjs +0 -1
  497. package/dist/ar-nOSKXpIW.js +0 -101
  498. package/dist/de-BUFLEyKr.cjs +0 -1
  499. package/dist/de-WzsOu9Gn.cjs +0 -1
  500. package/dist/deep-merge-CiOwVWn8.js +0 -1619
  501. package/dist/deep-merge-DxZqCkE5.cjs +0 -1
  502. package/dist/duration-input-Dg5SX3lM.cjs +0 -1
  503. package/dist/es-CDqqzpCw.js +0 -101
  504. package/dist/es-Ds2Xf3wV.cjs +0 -1
  505. package/dist/fa-C7tE_hR3.js +0 -101
  506. package/dist/fa-Ct1UtDB7.cjs +0 -1
  507. package/dist/fr-Cdyopuz3.cjs +0 -1
  508. package/dist/fr-CzAkRFed.cjs +0 -1
  509. package/dist/he-D2oUloCJ.js +0 -101
  510. package/dist/he-DarDNPn0.cjs +0 -1
  511. package/dist/he-DlXALrK7.cjs +0 -1
  512. package/dist/hi-3dBhLwDs.cjs +0 -1
  513. package/dist/hi-D5ZlZoQq.js +0 -101
  514. package/dist/hi-tATwsXJ6.cjs +0 -1
  515. package/dist/index-DE2tjivA.cjs +0 -1
  516. package/dist/it-BmFag7j0.cjs +0 -1
  517. package/dist/it-DohtcWi9.cjs +0 -1
  518. package/dist/ja-Dj-bAKLf.cjs +0 -1
  519. package/dist/ja-eyTArrgS.cjs +0 -1
  520. package/dist/ko-BFLCDMMs.cjs +0 -1
  521. package/dist/ko-BomUE-yQ.cjs +0 -1
  522. package/dist/ko-Ch0jFsBV.js +0 -101
  523. package/dist/modal-D2xE47kr.cjs +0 -1
  524. package/dist/modal-hkQD1bqZ.js +0 -655
  525. package/dist/nl-Bx2ACvr4.cjs +0 -1
  526. package/dist/nl-NuTdZO1s.js +0 -102
  527. package/dist/notice-C0SmlheE.cjs +0 -1
  528. package/dist/pl-QHl6sl8f.cjs +0 -1
  529. package/dist/pt-BETjHZrL.js +0 -101
  530. package/dist/pt-DZGw2Z-1.cjs +0 -1
  531. package/dist/pt-oBMmVYcu.cjs +0 -1
  532. package/dist/ru-CtxMmoa6.cjs +0 -1
  533. package/dist/ru-D03IuLqh.cjs +0 -1
  534. package/dist/text-input-CByq5OIo.cjs +0 -1
  535. package/dist/text-input-CFJntP7G.js +0 -287
  536. package/dist/toolbar-TPWYzoiF.cjs +0 -1
  537. package/dist/tr-B_-_1wua.cjs +0 -1
  538. package/dist/translations-B4-Zd2LM.cjs +0 -1
  539. package/dist/translations-D62qqNV9.cjs +0 -1
  540. package/dist/translations-DPr6c05Z.js +0 -67
  541. package/dist/ur-DvqAg9gW.cjs +0 -1
  542. package/dist/ur-DyUSmIbo.cjs +0 -1
  543. package/dist/use-form-JjeKCINk.cjs +0 -2
  544. package/dist/vi-BdzxA60L.js +0 -101
  545. package/dist/vi-CBmPaHxg.cjs +0 -1
  546. package/dist/vi-D5R3YcU0.cjs +0 -1
  547. package/dist/vi-DhdsHHf_.js +0 -38
  548. package/dist/widget-customization-G-QLB1rw.cjs +0 -1
  549. package/dist/zh-CCGXcj5r.cjs +0 -1
  550. package/dist/zh-Cb1b8uik.cjs +0 -1
  551. package/dist/zh-Dn1UJiZa.js +0 -101
@@ -1,1353 +1,66 @@
1
- import { localStorageProp as ie, prop as V, Use as x, html as i, attr as t, on as z, When as b, coalesce as h, Ensure as D, computedOf as g, Fragment as C, bind as ce, ForEach as le, Value as ee, OneOfValue as me } from "@tempots/dom";
2
- import { i as oe, S as $ } from "../stack-BJgsPJ9A.js";
3
- import { t as ue, u as W, a as se, b as T } from "../use-form-CgZyrACX.js";
4
- import { s as A, o as G, b as N, M as pe } from "../modal-hkQD1bqZ.js";
5
- import { AuthI18n as q } from "../translations-DPr6c05Z.js";
6
- import { P as R, E as H, N as j } from "../notice-CZHWWwOQ.js";
7
- import { B as F, T as de } from "../text-input-CFJntP7G.js";
8
- import { I as he } from "../translations-Cq8bUKJP.js";
9
- import { classes as ge } from "@tempots/ui";
10
- const X = {
11
- google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
12
- github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
13
- apple: { name: "Apple", icon: "logos:apple", color: "#000" },
14
- facebook: { name: "Facebook", icon: "logos:facebook", color: "#1877f2" },
15
- twitter: { name: "Twitter", icon: "logos:twitter", color: "#1da1f2" },
16
- microsoft: {
17
- name: "Microsoft",
18
- icon: "logos:microsoft-icon",
19
- color: "#00a4ef"
20
- },
21
- discord: { name: "Discord", icon: "logos:discord-icon", color: "#5865f2" },
22
- linkedin: { name: "LinkedIn", icon: "logos:linkedin-icon", color: "#0077b5" },
23
- instagram: {
24
- name: "Instagram",
25
- icon: "logos:instagram-icon",
26
- color: "#e4405f"
27
- },
28
- tiktok: { name: "TikTok", icon: "logos:tiktok-icon", color: "#000" },
29
- snapchat: { name: "Snapchat", icon: "logos:snapchat-icon", color: "#fffc00" },
30
- reddit: { name: "Reddit", icon: "logos:reddit-icon", color: "#ff4500" },
31
- pinterest: {
32
- name: "Pinterest",
33
- icon: "logos:pinterest-icon",
34
- color: "#bd081c"
35
- },
36
- twitch: { name: "Twitch", icon: "logos:twitch", color: "#9146ff" },
37
- steam: { name: "Steam", icon: "logos:steam-icon", color: "#000" },
38
- epic: {
39
- name: "Epic Games",
40
- icon: "simple-icons:epicgames",
41
- color: "#313131"
42
- },
43
- playstation: {
44
- name: "PlayStation",
45
- icon: "logos:playstation-icon",
46
- color: "#003791"
47
- },
48
- xbox: { name: "Xbox", icon: "logos:xbox-icon", color: "#107c10" },
49
- whatsapp: { name: "WhatsApp", icon: "logos:whatsapp-icon", color: "#25d366" },
50
- wechat: { name: "WeChat", icon: "logos:wechat-icon", color: "#1aad19" },
51
- amazon: { name: "Amazon", icon: "logos:amazon-icon", color: "#ff9900" },
52
- yahoo: { name: "Yahoo", icon: "logos:yahoo-icon", color: "#720e9e" },
53
- paypal: { name: "PayPal", icon: "logos:paypal", color: "#0070ba" },
54
- x: { name: "X", icon: "simple-icons:x", color: "#000" }
55
- };
56
- function fe(e) {
57
- return X[e]?.name || e;
58
- }
59
- function Ce(e) {
60
- return X[e]?.icon || "mdi:account";
61
- }
62
- function ze(e) {
63
- return X[e]?.color || "#666";
64
- }
65
- function Ee(e, o = "Continue with {provider}") {
66
- return o.replace("{provider}", fe(e));
67
- }
68
- const I = {
69
- minLength: 8,
70
- requireUppercase: !0,
71
- requireLowercase: !0,
72
- requireNumbers: !0,
73
- requireSymbols: !1
74
- };
75
- function Ue(e) {
76
- return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
77
- }
78
- function be(e = 32) {
79
- const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
80
- let c = "";
81
- for (let m = 0; m < e; m++)
82
- c += o.charAt(Math.floor(Math.random() * o.length));
83
- return c;
84
- }
85
- function Ve(e, o, c, m = [], l = {}) {
86
- const s = {
87
- google: "https://accounts.google.com/oauth/authorize",
88
- github: "https://github.com/login/oauth/authorize",
89
- apple: "https://appleid.apple.com/auth/authorize",
90
- facebook: "https://www.facebook.com/v18.0/dialog/oauth",
91
- twitter: "https://twitter.com/i/oauth2/authorize",
92
- microsoft: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
93
- discord: "https://discord.com/api/oauth2/authorize",
94
- linkedin: "https://www.linkedin.com/oauth/v2/authorization",
95
- instagram: "https://api.instagram.com/oauth/authorize",
96
- tiktok: "https://www.tiktok.com/v2/auth/authorize",
97
- snapchat: "https://accounts.snapchat.com/accounts/oauth2/authorize",
98
- reddit: "https://www.reddit.com/api/v1/authorize",
99
- pinterest: "https://api.pinterest.com/oauth/",
100
- twitch: "https://id.twitch.tv/oauth2/authorize",
101
- steam: "https://steamcommunity.com/oauth/authorize",
102
- epic: "https://auth.epicgames.com/authorize",
103
- playstation: "https://auth.api.sonyentertainmentnetwork.com/oauth/authorize",
104
- xbox: "https://login.live.com/oauth20_authorize.srf",
105
- whatsapp: "https://web.whatsapp.com/oauth/authorize",
106
- wechat: "https://open.weixin.qq.com/connect/qrconnect",
107
- amazon: "https://www.amazon.com/ap/oa",
108
- yahoo: "https://api.login.yahoo.com/oauth2/request_auth",
109
- paypal: "https://www.paypal.com/signin/authorize",
110
- x: "https://api.twitter.com/oauth2/authorize"
111
- }, u = {
112
- google: ["openid", "email", "profile"],
113
- github: ["user:email"],
114
- apple: ["email", "name"],
115
- facebook: ["email"],
116
- twitter: ["users.read"],
117
- microsoft: ["openid", "email", "profile"],
118
- discord: ["identify", "email"],
119
- linkedin: ["r_liteprofile", "r_emailaddress"],
120
- instagram: ["user_profile", "user_media"],
121
- tiktok: ["user.info.basic", "user.external.id"],
122
- snapchat: ["user.info.basic", "user.external.id"],
123
- reddit: ["identity", "email"],
124
- pinterest: ["read_public", "read_relationships"],
125
- twitch: ["openid", "email", "profile"],
126
- steam: ["openid", "email", "profile"],
127
- epic: ["openid", "email", "profile"],
128
- playstation: ["openid", "email", "profile"],
129
- xbox: ["openid", "email", "profile"],
130
- whatsapp: ["openid", "email", "profile"],
131
- wechat: ["openid", "email", "profile"],
132
- amazon: ["openid", "email", "profile"],
133
- yahoo: ["openid", "email", "profile"],
134
- paypal: ["openid", "email", "profile"],
135
- x: ["openid", "email", "profile"]
136
- }, n = s[e];
137
- if (!n)
138
- throw new Error(`Unsupported provider: ${e}`);
139
- const r = m.length > 0 ? m : u[e], a = be(), f = new URLSearchParams({
140
- client_id: o,
141
- redirect_uri: c,
142
- scope: r.join(" "),
143
- state: a,
144
- response_type: "code",
145
- ...l
146
- });
147
- return `${n}?${f.toString()}`;
148
- }
149
- function Fe(e, o, c, m) {
150
- const l = window.open(
151
- e,
152
- `${o}_login`,
153
- "width=500,height=600,scrollbars=yes,resizable=yes"
154
- );
155
- if (!l) {
156
- m?.(new Error("Failed to open popup window"));
157
- return;
158
- }
159
- const s = setInterval(() => {
160
- l.closed && (clearInterval(s), m?.(new Error("Login cancelled")));
161
- }, 1e3), u = (n) => {
162
- n.origin === window.location.origin && (n.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(s), l.close(), window.removeEventListener("message", u), c?.(n.data.result)) : n.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(s), l.close(), window.removeEventListener("message", u), m?.(new Error(n.data.error))));
163
- };
164
- window.addEventListener("message", u);
165
- }
166
- function Me(e) {
167
- return e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "An unexpected error occurred";
168
- }
169
- function Oe() {
170
- return typeof window < "u" && typeof document < "u";
171
- }
172
- function Y({
173
- task: e,
174
- message: o,
175
- onStart: c,
176
- onEnd: m
177
- }) {
178
- return async (l) => {
179
- c?.();
180
- const s = await ue({
181
- task: e != null ? () => e(l) : async () => null,
182
- errorMessage: o,
183
- errorPath: ["root"],
184
- validation: (u) => u != null ? oe.invalid({ message: u }) : oe.valid
185
- });
186
- return m?.(), s;
187
- };
188
- }
189
- function Z(e = I) {
190
- let o = A();
191
- return e.minLength && (o = o.min(
192
- e.minLength,
193
- `Password must be at least ${e.minLength} characters`
194
- )), e.requireUppercase && (o = o.regex(
195
- /[A-Z]/,
196
- "Password must contain at least one uppercase letter"
197
- )), e.requireLowercase && (o = o.regex(
198
- /[a-z]/,
199
- "Password must contain at least one lowercase letter"
200
- )), e.requireNumbers && (o = o.regex(
201
- /[0-9]/,
202
- "Password must contain at least one number"
203
- )), e.requireSymbols && (o = o.regex(
204
- /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/,
205
- "Password must contain at least one special character"
206
- )), e.customValidation && (o = o.refine((c) => e.customValidation(c))), o;
207
- }
208
- const M = A().min(1, "Email is required").email("Please enter a valid email address");
209
- function J(e) {
210
- const o = e ? Z(e) : A().refine(
211
- (c) => c.length > 0 ? null : "Password is required"
212
- );
213
- return G({
214
- email: M,
215
- password: o,
216
- rememberMe: N().default(!1)
217
- }).schema();
218
- }
219
- function K(e = I, o) {
220
- const c = Z(e), m = o?.showNameField !== !1, l = o?.showConfirmPassword !== !1, s = o?.showAcceptTermsAndConditions !== !1, u = {
221
- name: m ? A().min(1, "Name is required").optional() : A().optional(),
222
- email: M,
223
- password: c,
224
- // Always require confirmPassword as string to match SignUpData interface
225
- // When not shown, it should accept any value (including empty string)
226
- confirmPassword: l ? A().min(1, "Please confirm your password") : A(),
227
- // Accept any string value when not shown
228
- acceptTerms: s ? N().refine(
229
- (r) => r === !0,
230
- "You must accept the terms and conditions"
231
- ) : N().default(!0)
232
- // Default to true when not shown
233
- }, n = G(u);
234
- return l ? n.refine(
235
- (r) => r.password === r.confirmPassword ? null : "Passwords don't match",
236
- { path: ["confirmPassword"] }
237
- ).schema() : n.schema();
238
- }
239
- const ae = G({
240
- email: M
241
- }).schema(), Ne = J(), Re = K(), De = {
242
- signIn: J,
243
- signUp: K,
244
- resetPassword: () => ae
245
- };
246
- function We(e) {
247
- const o = M.validate(e);
248
- return o.success ? null : o.errors[0]?.message || "Invalid email";
249
- }
250
- function Ge(e, o = I) {
251
- const m = Z(o).validate(e);
252
- return m.success ? null : m.errors[0]?.message || "Invalid password";
253
- }
254
- function Q(e, o = I) {
255
- const c = {
256
- length: e.length >= (o.minLength || 8),
257
- uppercase: /[A-Z]/.test(e),
258
- lowercase: /[a-z]/.test(e),
259
- numbers: /[0-9]/.test(e),
260
- symbols: /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(e),
261
- custom: o.customValidation ? o.customValidation(e) === null : e.length > 0
262
- // For consistency, fail if password is empty
263
- }, m = [
264
- !0,
265
- // length is always enabled
266
- o.requireUppercase,
267
- o.requireLowercase,
268
- o.requireNumbers,
269
- o.requireSymbols,
270
- !!o.customValidation
271
- ].filter(Boolean).length, l = [
272
- c.length,
273
- o.requireUppercase ? c.uppercase : null,
274
- o.requireLowercase ? c.lowercase : null,
275
- o.requireNumbers ? c.numbers : null,
276
- o.requireSymbols ? c.symbols : null,
277
- o.customValidation ? c.custom : null
278
- ].filter((n) => n === !0).length, s = m > 0 ? Math.round(l / m * 100) : 0;
279
- let u;
280
- return s < 40 ? u = "weak" : s < 60 ? u = "fair" : s < 80 ? u = "good" : u = "strong", { strength: u, score: s, checks: c };
281
- }
282
- const re = () => ie({
283
- key: "bui_auth_email",
284
- defaultValue: null
285
- });
286
- function we({
287
- onSignIn: e,
288
- passwordRules: o,
289
- labels: c,
290
- showRememberMe: m
291
- }) {
292
- const l = V(!1), s = re(), u = J(o), n = W({
293
- schema: u,
294
- onSubmit: Y({
295
- task: e,
296
- message: "Reset password failed",
297
- onStart: () => {
298
- l.set(!0), n.controller.disable();
299
- },
300
- onEnd: () => {
301
- l.set(!1), n.controller.enable();
302
- }
303
- }),
304
- initialValue: {
305
- email: "",
306
- password: ""
307
- }
308
- }), { controller: r, submit: a } = n;
309
- l.on(r.setDisabled);
310
- const f = r.field("email"), w = r.field("password");
311
- return s.on((_) => {
312
- _ != null && f.change(_);
313
- }), f.signal.on((_) => {
314
- s.value != null && (s.value = _);
315
- }), x(
316
- q,
317
- (_) => (
318
- // Email/Password form
319
- i.form(
320
- t.class("bc-auth-form__form"),
321
- z.submit(a),
322
- $(
323
- t.class("bc-auth-form__fields"),
324
- D(
325
- r.error,
326
- (k) => j(
327
- { variant: "danger", tone: "prominent", role: "alert" },
328
- i.div(k)
329
- )
330
- ),
331
- // Email field
332
- T(H, {
333
- controller: f,
334
- label: h(c?.emailLabel, _.$.emailLabel)
335
- }),
336
- // Password field
337
- T(R, {
338
- controller: w,
339
- label: h(c?.passwordLabel, _.$.passwordLabel)
340
- }),
341
- // Remember me checkbox
342
- b(
343
- m ?? !0,
344
- () => i.div(
345
- t.class("bc-auth-form__remember-me"),
346
- i.label(
347
- t.class("bc-auth-form__checkbox-label"),
348
- se({
349
- value: s.map((k) => k != null),
350
- after: i.span(
351
- h(c?.rememberMeLabel, _.$.rememberMeLabel)
352
- ),
353
- onChange: (k) => {
354
- k ? s.value = f.signal.value ?? "" : s.value = null;
355
- }
356
- })
357
- )
358
- )
359
- )
360
- ),
361
- // Submit button
362
- F(
363
- {
364
- type: "submit",
365
- variant: "filled",
366
- color: "primary",
367
- loading: l,
368
- disabled: r.disabledOrHasErrors
369
- },
370
- t.class("bc-auth-form__submit"),
371
- h(c?.signInButton, _.$.signInButton)
372
- )
373
- )
374
- )
375
- );
376
- }
377
- function _e({
378
- password: e,
379
- rules: o = I,
380
- showLabel: c = !0,
381
- className: m
382
- }) {
383
- const l = g(e)((a) => !a || a.length === 0 ? {
384
- strength: "weak",
385
- score: 0,
386
- checks: {
387
- length: !1,
388
- uppercase: !1,
389
- lowercase: !1,
390
- numbers: !1,
391
- symbols: !1,
392
- custom: !1
393
- }
394
- } : Q(a, o)), s = l.map((a) => a.strength), u = l.map((a) => a.score), n = l.map((a) => a.checks), r = g(
395
- s,
396
- m
397
- )((a, f) => [
398
- "bc-password-strength",
399
- `bc-password-strength--${a}`,
400
- f
401
- ].filter(Boolean).join(" "));
402
- return i.div(
403
- t.class(r),
404
- // Strength bar
405
- i.div(
406
- t.class("bc-password-strength__bar"),
407
- i.div(
408
- t.class("bc-password-strength__fill"),
409
- t.style(u.map((a) => `width: ${a}%`))
410
- )
411
- ),
412
- // Strength label (optional)
413
- b(
414
- c,
415
- () => x(
416
- q,
417
- (a) => i.div(
418
- t.class("bc-password-strength__label"),
419
- g(
420
- s,
421
- a
422
- )((f, w) => {
423
- switch (f) {
424
- case "weak":
425
- return w.passwordStrengthWeak;
426
- case "fair":
427
- return w.passwordStrengthFair;
428
- case "good":
429
- return w.passwordStrengthGood;
430
- case "strong":
431
- return w.passwordStrengthStrong;
432
- default:
433
- return w.passwordStrengthWeak;
434
- }
435
- })
436
- )
437
- )
438
- ),
439
- // Requirements checklist
440
- i.div(
441
- t.class("bc-password-strength__requirements"),
442
- // Length requirement
443
- b(
444
- o.minLength !== void 0,
445
- () => i.div(
446
- t.class("bc-password-strength__requirement"),
447
- t.class(
448
- g(n)(
449
- (a) => a.length ? "bc-password-strength__requirement--met" : ""
450
- )
451
- ),
452
- i.span(
453
- t.class("bc-password-strength__requirement-icon"),
454
- g(n)((a) => a.length ? "✓" : "○")
455
- ),
456
- i.span(
457
- t.class("bc-password-strength__requirement-text"),
458
- `At least ${o.minLength} characters`
459
- )
460
- )
461
- ),
462
- // Uppercase requirement
463
- b(
464
- o.requireUppercase === !0,
465
- () => i.div(
466
- t.class("bc-password-strength__requirement"),
467
- t.class(
468
- g(n)(
469
- (a) => a.uppercase ? "bc-password-strength__requirement--met" : ""
470
- )
471
- ),
472
- i.span(
473
- t.class("bc-password-strength__requirement-icon"),
474
- g(n)((a) => a.uppercase ? "✓" : "○")
475
- ),
476
- i.span(
477
- t.class("bc-password-strength__requirement-text"),
478
- "One uppercase letter"
479
- )
480
- )
481
- ),
482
- // Lowercase requirement
483
- b(
484
- o.requireLowercase === !0,
485
- () => i.div(
486
- t.class("bc-password-strength__requirement"),
487
- t.class(
488
- g(n)(
489
- (a) => a.lowercase ? "bc-password-strength__requirement--met" : ""
490
- )
491
- ),
492
- i.span(
493
- t.class("bc-password-strength__requirement-icon"),
494
- g(n)((a) => a.lowercase ? "✓" : "○")
495
- ),
496
- i.span(
497
- t.class("bc-password-strength__requirement-text"),
498
- "One lowercase letter"
499
- )
500
- )
501
- ),
502
- // Numbers requirement
503
- b(
504
- o.requireNumbers === !0,
505
- () => i.div(
506
- t.class("bc-password-strength__requirement"),
507
- t.class(
508
- g(n)(
509
- (a) => a.numbers ? "bc-password-strength__requirement--met" : ""
510
- )
511
- ),
512
- i.span(
513
- t.class("bc-password-strength__requirement-icon"),
514
- g(n)((a) => a.numbers ? "✓" : "○")
515
- ),
516
- i.span(
517
- t.class("bc-password-strength__requirement-text"),
518
- "One number"
519
- )
520
- )
521
- ),
522
- // Symbols requirement
523
- b(
524
- o.requireSymbols === !0,
525
- () => i.div(
526
- t.class("bc-password-strength__requirement"),
527
- t.class(
528
- g(n)(
529
- (a) => a.symbols ? "bc-password-strength__requirement--met" : ""
530
- )
531
- ),
532
- i.span(
533
- t.class("bc-password-strength__requirement-icon"),
534
- g(n)((a) => a.symbols ? "✓" : "○")
535
- ),
536
- i.span(
537
- t.class("bc-password-strength__requirement-text"),
538
- "One special character"
539
- )
540
- )
541
- )
542
- )
543
- );
544
- }
545
- function He({
546
- password: e,
547
- rules: o = I,
548
- className: c
549
- }) {
550
- const m = g(e)((n) => !n || n.length === 0 ? { strength: "weak", score: 0 } : Q(n, o)), l = m.map((n) => n.strength), s = m.map((n) => n.score), u = g(
551
- l,
552
- c
553
- )((n, r) => [
554
- "bc-password-strength-bar",
555
- `bc-password-strength-bar--${n}`,
556
- r
557
- ].filter(Boolean).join(" "));
558
- return i.div(
559
- t.class(u),
560
- i.div(
561
- t.class("bc-password-strength-bar__fill"),
562
- t.style(s.map((n) => `width: ${n}%`))
563
- )
564
- );
565
- }
566
- function je({
567
- password: e,
568
- rules: o = I,
569
- className: c
570
- }) {
571
- const m = g(e)((s) => !s || s.length === 0 ? "weak" : Q(s, o).strength), l = g(
572
- m,
573
- c
574
- )((s, u) => [
575
- "bc-password-strength-text",
576
- `bc-password-strength-text--${s}`,
577
- u
578
- ].filter(Boolean).join(" "));
579
- return C(
580
- x(
581
- q,
582
- (s) => i.span(
583
- t.class(l),
584
- g(
585
- m,
586
- s
587
- )((u, n) => {
588
- switch (u) {
589
- case "weak":
590
- return n.passwordStrengthWeak;
591
- case "fair":
592
- return n.passwordStrengthFair;
593
- case "good":
594
- return n.passwordStrengthGood;
595
- case "strong":
596
- return n.passwordStrengthStrong;
597
- default:
598
- return n.passwordStrengthWeak;
599
- }
600
- })
601
- )
602
- )
603
- );
604
- }
605
- function Le({
606
- passwordRules: e,
607
- labels: o,
608
- initialEmail: c,
609
- initialName: m,
610
- showPasswordStrength: l,
611
- onSignUp: s,
612
- showNameField: u,
613
- showConfirmPassword: n,
614
- showAcceptTermsAndConditions: r,
615
- termsAndConditions: a
616
- }) {
617
- const f = V(!1), w = e || I, _ = K(w, {
618
- showNameField: u !== !1,
619
- showConfirmPassword: n !== !1,
620
- showAcceptTermsAndConditions: r !== !1
621
- }), k = W({
622
- schema: _,
623
- onSubmit: Y({
624
- task: s != null ? (v) => s({
625
- email: v.email,
626
- password: v.password,
627
- name: v.name,
628
- acceptTerms: v.acceptTerms
629
- }) : void 0,
630
- message: "Reset password failed",
631
- onStart: () => {
632
- f.set(!0), k.controller.disable();
633
- },
634
- onEnd: () => {
635
- f.set(!1), k.controller.enable();
636
- }
637
- }),
638
- initialValue: {
639
- name: m ?? "",
640
- email: c ?? "",
641
- password: "",
642
- confirmPassword: "",
643
- acceptTerms: !1
644
- }
645
- }), { controller: y, submit: B } = k;
646
- f.on(y.setDisabled);
647
- const S = y.field("name"), E = y.field("email"), U = y.field("password"), O = y.field("confirmPassword"), P = y.field("acceptTerms");
648
- return x(
649
- q,
650
- (v) => (
651
- // Registration form
652
- i.form(
653
- t.class("bc-auth-form__form"),
654
- z.submit(B),
655
- $(
656
- t.class("bc-auth-form__fields"),
657
- D(
658
- y.error,
659
- (L) => j(
660
- { variant: "danger", tone: "prominent", role: "alert" },
661
- i.div(L)
662
- )
663
- ),
664
- // Name field (optional)
665
- b(
666
- u !== !1,
667
- () => T(de, {
668
- controller: S.transform(
669
- (L) => L ?? "",
670
- (L) => L === "" ? void 0 : L
671
- ),
672
- label: h(o?.nameLabel, v.$.nameLabel)
673
- })
674
- ),
675
- // Email field
676
- T(H, {
677
- controller: E,
678
- label: h(o?.emailLabel, v.$.emailLabel)
679
- }),
680
- // Password field
681
- T(R, {
682
- controller: U,
683
- label: h(o?.passwordLabel, v.$.passwordLabel)
684
- }),
685
- // Password strength indicator
686
- b(
687
- l ?? !1,
688
- () => _e({
689
- password: U.signal,
690
- rules: w,
691
- showLabel: !0
692
- })
693
- ),
694
- // Confirm password field
695
- b(
696
- n ?? !1,
697
- () => T(R, {
698
- controller: O,
699
- label: h(
700
- o?.confirmPasswordLabel,
701
- v.$.confirmPasswordLabel
702
- )
703
- })
704
- ),
705
- // Terms acceptance checkbox
706
- b(
707
- r ?? !1,
708
- () => i.div(
709
- t.class("bc-auth-form__terms"),
710
- i.label(
711
- t.class("bc-auth-form__checkbox-label"),
712
- se({
713
- value: P.signal.map((L) => L ?? !1),
714
- onChange: (L) => P.change(L)
715
- }),
716
- i.span(
717
- a || h(o?.acceptTermsLabel, v.$.acceptTermsLabel)
718
- )
719
- ),
720
- b(
721
- P.errorVisible,
722
- () => i.div(
723
- t.class("bc-auth-form__field-error"),
724
- P.error.map((L) => L || "")
725
- )
726
- )
727
- )
728
- )
729
- ),
730
- // Submit button
731
- F(
732
- {
733
- type: "submit",
734
- variant: "filled",
735
- color: "primary",
736
- loading: f,
737
- disabled: y.disabledOrHasErrors
738
- },
739
- t.class("bc-auth-form__submit"),
740
- h(o?.signUpButton, v.$.signUpButton)
741
- )
742
- )
743
- )
744
- );
745
- }
746
- function ke({
747
- onResetPassword: e,
748
- labels: o = {}
749
- }) {
750
- const c = re(), m = V(!1), l = W({
751
- schema: ae,
752
- onSubmit: Y({
753
- task: e,
754
- message: "Reset password failed",
755
- onStart: () => {
756
- m.set(!0), l.controller.disable();
757
- },
758
- onEnd: () => {
759
- m.set(!1), l.controller.enable();
760
- }
761
- }),
762
- initialValue: {
763
- email: ""
764
- }
765
- }), { controller: s, submit: u } = l;
766
- m.on(s.setDisabled);
767
- const n = s.field("email");
768
- return c.on((r) => {
769
- r != null && n.change(r);
770
- }), x(
771
- q,
772
- (r) => (
773
- // Reset password form
774
- i.form(
775
- t.class("bc-auth-form__form"),
776
- D(
777
- s.error,
778
- (a) => j(
779
- { variant: "danger", tone: "prominent", role: "alert" },
780
- i.div(a)
781
- )
782
- ),
783
- // Description
784
- i.p(
785
- t.class("bc-auth-form__description"),
786
- h(o?.resetPasswordDescription, r.$.resetPasswordDescription)
787
- ),
788
- z.submit(u),
789
- $(
790
- t.class("bc-auth-form__fields"),
791
- // Email field
792
- T(H, {
793
- controller: n,
794
- label: h(o?.emailLabel, r.$.emailLabel)
795
- })
796
- ),
797
- // Submit button
798
- F(
799
- {
800
- loading: m,
801
- type: "submit",
802
- variant: "filled",
803
- color: "primary",
804
- disabled: s.disabledOrHasErrors
805
- },
806
- t.class("bc-auth-form__submit"),
807
- h(o?.resetPasswordButton, r.$.resetPasswordButton)
808
- )
809
- )
810
- )
811
- );
812
- }
813
- function d({
814
- provider: e,
815
- onClick: o,
816
- size: c = "md",
817
- name: m,
818
- icon: l,
819
- color: s,
820
- flow: u,
821
- labels: n
822
- }) {
823
- return F(
824
- {
825
- type: "button",
826
- variant: "filled",
827
- size: c,
828
- color: s,
829
- onClick: async () => {
830
- if (o)
831
- try {
832
- u === "popup" ? await o() : await o();
833
- } catch (a) {
834
- console.error(
835
- `Social login error for ${e} (${u || "redirect"} flow):`,
836
- a
837
- );
838
- }
839
- },
840
- roundedness: "full"
841
- },
842
- t.class("bc-social-login-button"),
843
- t.class(
844
- g(e)((a) => `bc-social-login-button--${a}`)
845
- ),
846
- i.span(
847
- t.class("bc-social-login-button__inner"),
848
- i.span(
849
- t.class("bc-social-login-button__icon"),
850
- he({ icon: l, size: c }, t.class("bc-social-login-button__icon-inner"))
851
- ),
852
- x(
853
- q,
854
- (a) => i.span(
855
- t.class("bc-social-login-button__label"),
856
- ce(
857
- h(n?.continueWithProvider, a.$.continueWithProvider)
858
- )(m)
859
- )
860
- )
861
- )
862
- );
863
- }
864
- function ve({
865
- providers: e,
866
- onProviderClick: o,
867
- size: c = "md",
868
- className: m
869
- }) {
870
- return $(
871
- t.class("bc-social-login-buttons"),
872
- t.class(m),
873
- le(
874
- e,
875
- (l) => d({
876
- provider: l.$.provider,
877
- flow: l.$.flow,
878
- color: l.map(
879
- ({ provider: s }) => p[s].color
880
- ),
881
- name: l.map(({ provider: s }) => p[s].name),
882
- icon: l.map(({ provider: s }) => p[s].icon),
883
- onClick: async () => {
884
- o && await o(l.$.provider.value);
885
- },
886
- size: c
887
- })
888
- )
889
- );
890
- }
891
- const p = {
892
- // Core
893
- google: {
894
- name: "Google",
895
- icon: "logos:google-icon",
896
- color: "red"
897
- },
898
- github: {
899
- name: "GitHub",
900
- icon: "logos:github-icon",
901
- color: "black"
902
- },
903
- apple: {
904
- name: "Apple",
905
- icon: "logos:apple",
906
- color: "stone"
907
- // using stone to differentiate from GitHub/X
908
- },
909
- facebook: {
910
- name: "Facebook",
911
- icon: "logos:facebook",
912
- color: "blue"
913
- },
914
- twitter: {
915
- name: "Twitter",
916
- icon: "logos:twitter",
917
- color: "sky"
918
- },
919
- x: {
920
- name: "X",
921
- icon: "logos:x",
922
- color: "zinc"
923
- // avoids duplicate black
924
- },
925
- microsoft: {
926
- name: "Microsoft",
927
- icon: "logos:microsoft-icon",
928
- color: "amber"
929
- },
930
- discord: {
931
- name: "Discord",
932
- icon: "logos:discord-icon",
933
- color: "indigo"
934
- },
935
- linkedin: {
936
- name: "LinkedIn",
937
- icon: "logos:linkedin-icon",
938
- color: "cyan"
939
- },
940
- // Social / Media
941
- instagram: {
942
- name: "Instagram",
943
- icon: "logos:instagram-icon",
944
- color: "fuchsia"
945
- },
946
- tiktok: {
947
- name: "TikTok",
948
- icon: "logos:tiktok-icon",
949
- color: "teal"
950
- },
951
- snapchat: {
952
- name: "Snapchat",
953
- icon: "simple-icons:snapchat",
954
- color: "yellow"
955
- },
956
- reddit: {
957
- name: "Reddit",
958
- icon: "logos:reddit-icon",
959
- color: "orange"
960
- },
961
- pinterest: {
962
- name: "Pinterest",
963
- icon: "logos:pinterest",
964
- color: "rose"
965
- },
966
- // Gaming / Entertainment
967
- twitch: {
968
- name: "Twitch",
969
- icon: "logos:twitch",
970
- color: "purple"
971
- },
972
- steam: {
973
- name: "Steam",
974
- icon: "logos:steam",
975
- color: "slate"
976
- },
977
- epic: {
978
- name: "Epic Games",
979
- icon: "simple-icons:epicgames",
980
- color: "neutral"
981
- },
982
- playstation: {
983
- name: "PlayStation",
984
- icon: "simple-icons:playstation",
985
- color: "violet"
986
- },
987
- xbox: {
988
- name: "Xbox",
989
- icon: "simple-icons:xbox",
990
- color: "green"
991
- },
992
- // Messaging
993
- whatsapp: {
994
- name: "WhatsApp",
995
- icon: "logos:whatsapp-icon",
996
- color: "emerald"
997
- },
998
- wechat: {
999
- name: "WeChat",
1000
- icon: "simple-icons:wechat",
1001
- color: "lime"
1002
- },
1003
- // Other Identity
1004
- amazon: {
1005
- name: "Amazon",
1006
- icon: "simple-icons:amazon",
1007
- color: "red"
1008
- // distinct warm tone (not used elsewhere here)
1009
- },
1010
- yahoo: {
1011
- name: "Yahoo",
1012
- icon: "logos:yahoo",
1013
- color: "rose"
1014
- // unique variation for Yahoo
1015
- },
1016
- paypal: {
1017
- name: "PayPal",
1018
- icon: "logos:paypal",
1019
- color: "blue"
1020
- // distinct deep blue tone (not Facebook’s exact blue)
1021
- }
1022
- }, Xe = (e) => d({
1023
- ...e,
1024
- ...p.google,
1025
- provider: "google"
1026
- }), Ye = (e) => d({
1027
- ...e,
1028
- ...p.github,
1029
- provider: "github"
1030
- }), Ze = (e) => d({
1031
- ...e,
1032
- ...p.apple,
1033
- provider: "apple"
1034
- }), Je = (e) => d({
1035
- ...e,
1036
- ...p.facebook,
1037
- provider: "facebook"
1038
- }), Ke = (e) => d({
1039
- ...e,
1040
- ...p.x,
1041
- provider: "x"
1042
- }), Qe = (e) => d({
1043
- ...e,
1044
- ...p.twitter,
1045
- provider: "twitter"
1046
- }), eo = (e) => d({
1047
- ...e,
1048
- ...p.microsoft,
1049
- provider: "microsoft"
1050
- }), oo = (e) => d({
1051
- ...e,
1052
- ...p.discord,
1053
- provider: "discord"
1054
- }), to = (e) => d({
1055
- ...e,
1056
- ...p.linkedin,
1057
- provider: "linkedin"
1058
- }), no = (e) => d({
1059
- ...e,
1060
- ...p.instagram,
1061
- provider: "instagram"
1062
- }), so = (e) => d({
1063
- ...e,
1064
- ...p.tiktok,
1065
- provider: "tiktok"
1066
- }), ao = (e) => d({
1067
- ...e,
1068
- ...p.snapchat,
1069
- provider: "snapchat"
1070
- }), ro = (e) => d({
1071
- ...e,
1072
- ...p.reddit,
1073
- provider: "reddit"
1074
- }), io = (e) => d({
1075
- ...e,
1076
- ...p.pinterest,
1077
- provider: "pinterest"
1078
- }), co = (e) => d({
1079
- ...e,
1080
- ...p.twitch,
1081
- provider: "twitch"
1082
- }), lo = (e) => d({
1083
- ...e,
1084
- ...p.steam,
1085
- provider: "steam"
1086
- }), mo = (e) => d({
1087
- ...e,
1088
- ...p.epic,
1089
- provider: "epic"
1090
- }), uo = (e) => d({
1091
- ...e,
1092
- ...p.playstation,
1093
- provider: "playstation"
1094
- }), po = (e) => d({
1095
- ...e,
1096
- ...p.xbox,
1097
- provider: "xbox"
1098
- }), ho = (e) => d({
1099
- ...e,
1100
- ...p.whatsapp,
1101
- provider: "whatsapp"
1102
- }), go = (e) => d({
1103
- ...e,
1104
- ...p.wechat,
1105
- provider: "wechat"
1106
- }), fo = (e) => d({
1107
- ...e,
1108
- ...p.amazon,
1109
- provider: "amazon"
1110
- }), bo = (e) => d({
1111
- ...e,
1112
- ...p.yahoo,
1113
- provider: "yahoo"
1114
- }), wo = (e) => d({
1115
- ...e,
1116
- ...p.paypal,
1117
- provider: "paypal"
1118
- });
1119
- function te({ providers: e }) {
1120
- return $(
1121
- ve({
1122
- providers: e
1123
- })
1124
- );
1125
- }
1126
- function ye({
1127
- mode: e,
1128
- socialProviders: o,
1129
- initialName: c,
1130
- initialEmail: m,
1131
- passwordRules: l,
1132
- showRememberMe: s,
1133
- showSocialDivider: u,
1134
- showPasswordStrength: n,
1135
- labels: r,
1136
- onSignIn: a,
1137
- onSignUp: f,
1138
- onResetPassword: w,
1139
- onModeChange: _,
1140
- // onSocialLogin,
1141
- showContainer: k
1142
- }, ...y) {
1143
- const B = e != null ? ee.deriveProp(e) : V("signin");
1144
- return B.on((S) => _?.(S)), x(q, (S) => {
1145
- function E() {
1146
- const P = h(r?.hasAccountLink, S.$.hasAccountLink);
1147
- return i.button(
1148
- t.type("button"),
1149
- t.class("bc-auth-form__link"),
1150
- z.click(() => B.set("signin")),
1151
- P
1152
- );
1153
- }
1154
- function U() {
1155
- return i.button(
1156
- t.type("button"),
1157
- t.class("bc-auth-form__link"),
1158
- z.click(() => B.set("signup")),
1159
- h(r?.noAccountLink, S.$.noAccountLink)
1160
- );
1161
- }
1162
- function O() {
1163
- return i.button(
1164
- t.type("button"),
1165
- t.class("bc-auth-form__link"),
1166
- z.click(() => B.set("reset-password")),
1167
- h(r?.forgotPasswordLink, S.$.forgotPasswordLink)
1168
- );
1169
- }
1170
- return i.div(
1171
- ge({
1172
- "bc-auth-container": !0,
1173
- "bc-auth-container--styled": ee.map(k ?? !0, (P) => P)
1174
- }),
1175
- t.class(B.map((P) => `bc-auth-container--${P}`)),
1176
- t.class("bc-auth-form"),
1177
- me(B, {
1178
- signin: () => C(
1179
- i.h2(
1180
- t.class("bc-auth-form__title"),
1181
- h(r?.signInTitle, S.$.signInTitle)
1182
- ),
1183
- o != null ? C(
1184
- te({ providers: o }),
1185
- b(u ?? !1, ne)
1186
- ) : null,
1187
- we({
1188
- onSignIn: a,
1189
- showRememberMe: s,
1190
- passwordRules: l,
1191
- labels: {
1192
- emailLabel: r?.emailLabel,
1193
- passwordLabel: r?.passwordLabel,
1194
- rememberMeLabel: r?.rememberMeLabel,
1195
- signInButton: r?.signInButton,
1196
- forgotPasswordLink: r?.forgotPasswordLink,
1197
- noAccountLink: r?.noAccountLink
1198
- }
1199
- }),
1200
- $(
1201
- t.class("bc-auth-form__footer"),
1202
- U(),
1203
- O()
1204
- )
1205
- ),
1206
- signup: () => C(
1207
- i.h2(
1208
- t.class("bc-auth-form__title"),
1209
- h(r?.signUpTitle, S.$.signUpTitle)
1210
- ),
1211
- o != null ? C(
1212
- te({ providers: o }),
1213
- b(u ?? !1, ne)
1214
- ) : null,
1215
- Le({
1216
- labels: {
1217
- nameLabel: r?.nameLabel,
1218
- emailLabel: r?.emailLabel,
1219
- passwordLabel: r?.passwordLabel,
1220
- confirmPasswordLabel: r?.confirmPasswordLabel,
1221
- acceptTermsLabel: r?.acceptTermsLabel,
1222
- signUpButton: r?.signUpButton,
1223
- hasAccountLink: r?.hasAccountLink
1224
- },
1225
- initialEmail: m,
1226
- initialName: c,
1227
- onSignUp: f,
1228
- passwordRules: l,
1229
- showPasswordStrength: n
1230
- }),
1231
- $(t.class("bc-auth-form__footer"), E())
1232
- ),
1233
- "reset-password": () => C(
1234
- i.h2(
1235
- t.class("bc-auth-form__title"),
1236
- h(r?.resetPasswordTitle, S.$.resetPasswordTitle)
1237
- ),
1238
- ke({
1239
- labels: {
1240
- backToSignInLink: r?.backToSignInLink,
1241
- emailLabel: r?.emailLabel,
1242
- resetPasswordButton: r?.resetPasswordButton,
1243
- resetPasswordDescription: r?.resetPasswordDescription
1244
- },
1245
- onResetPassword: w
1246
- }),
1247
- $(t.class("bc-auth-form__footer"), E())
1248
- )
1249
- }),
1250
- ...y
1251
- );
1252
- });
1253
- }
1254
- function _o(e) {
1255
- return pe(
1256
- {
1257
- size: "sm",
1258
- dismissable: !0,
1259
- showCloseButton: !0
1260
- },
1261
- (o, c) => e(
1262
- (m) => o({
1263
- body: ye({ showContainer: !1, ...m }),
1264
- header: x(
1265
- q,
1266
- (l) => h(m.modalTitle, l.$.authenticationTitle)
1267
- )
1268
- })
1269
- )
1270
- );
1271
- }
1272
- function ne({
1273
- labels: e,
1274
- className: o
1275
- } = {}) {
1276
- return i.div(
1277
- t.class("bc-auth-divider"),
1278
- t.class(o),
1279
- i.div(t.class("bc-auth-divider__line")),
1280
- x(
1281
- q,
1282
- (c) => i.span(
1283
- t.class("bc-auth-divider__text"),
1284
- h(e?.text, c.$.orDivider)
1285
- )
1286
- ),
1287
- i.div(t.class("bc-auth-divider__line"))
1288
- );
1289
- }
1
+ import { O as t, w as s, A as n, b as i, a as e, D as r, H as g, F as u, t as c, G as l, I as d, L, M as S, c as B, P as m, d as h, Q as P, B as p, J as w, z as f, R as v, S as I, o as A, y as E, p as T, q as k, U as x, E as C, x as F, C as R, T as U, N as b, W as y, X as D, K as G, Y as M, l as V, n as W, f as X, e as q, h as z, i as H, a4 as N, a1 as Y, j, k as J, g as K, a6 as O, Z as Q, a0 as Z, a3 as _, $, _ as aa, a7 as oa, a2 as ta, a5 as sa, V as na, a8 as ia, r as ea, s as ra, u as ga, v as ua, m as ca } from "../auth-divider-C3_CgC0l.js";
1290
2
  export {
1291
- fo as AmazonLoginButton,
1292
- Ze as AppleLoginButton,
1293
- ye as AuthContainer,
1294
- ne as AuthDivider,
1295
- _o as AuthModal,
1296
- oo as DiscordLoginButton,
1297
- mo as EpicLoginButton,
1298
- Je as FacebookLoginButton,
1299
- Ye as GitHubLoginButton,
1300
- Xe as GoogleLoginButton,
1301
- no as InstagramLoginButton,
1302
- to as LinkedInLoginButton,
1303
- eo as MicrosoftLoginButton,
1304
- He as PasswordStrengthBar,
1305
- _e as PasswordStrengthIndicator,
1306
- je as PasswordStrengthText,
1307
- wo as PayPalLoginButton,
1308
- io as PinterestLoginButton,
1309
- uo as PlayStationLoginButton,
1310
- ro as RedditLoginButton,
1311
- ke as ResetPasswordForm,
1312
- we as SignInForm,
1313
- Le as SignUpForm,
1314
- ao as SnapchatLoginButton,
1315
- d as SocialLoginButton,
1316
- ve as SocialLoginButtons,
1317
- te as SocialProviders,
1318
- lo as SteamLoginButton,
1319
- so as TiktokLoginButton,
1320
- co as TwitchLoginButton,
1321
- Qe as TwitterLoginButton,
1322
- go as WeChatLoginButton,
1323
- ho as WhatsAppLoginButton,
1324
- Ke as XLoginButtin,
1325
- po as XboxLoginButton,
1326
- bo as YahooLoginButton,
1327
- De as authSchemas,
1328
- Q as calculatePasswordStrength,
1329
- Z as createPasswordSchema,
1330
- J as createSignInSchema,
1331
- K as createSignUpSchema,
1332
- Ve as createSocialLoginUrl,
1333
- I as defaultPasswordRules,
1334
- Ne as defaultSignInSchema,
1335
- Re as defaultSignUpSchema,
1336
- M as emailSchema,
1337
- Me as formatAuthError,
1338
- fe as formatProviderName,
1339
- Ee as formatSocialLoginText,
1340
- be as generateRandomString,
1341
- ze as getProviderColor,
1342
- Ce as getProviderIcon,
1343
- Oe as isBrowser,
1344
- Ue as isValidEmail,
1345
- Fe as openSocialLoginPopup,
1346
- X as providerInfo,
1347
- Y as requestToControllerValidation,
1348
- ae as resetPasswordSchema,
1349
- p as socialProviderInfo,
1350
- re as useAuthEmailProp,
1351
- We as validateEmail,
1352
- Ge as validatePassword
3
+ t as AmazonLoginButton,
4
+ s as AppleLoginButton,
5
+ n as AuthContainer,
6
+ i as AuthDivider,
7
+ e as AuthModal,
8
+ r as DiscordLoginButton,
9
+ g as EpicLoginButton,
10
+ u as FacebookLoginButton,
11
+ c as GitHubLoginButton,
12
+ l as GoogleLoginButton,
13
+ d as InstagramLoginButton,
14
+ L as LinkedInLoginButton,
15
+ S as MicrosoftLoginButton,
16
+ B as PasswordStrengthBar,
17
+ m as PasswordStrengthIndicator,
18
+ h as PasswordStrengthText,
19
+ P as PayPalLoginButton,
20
+ p as PinterestLoginButton,
21
+ w as PlayStationLoginButton,
22
+ f as RedditLoginButton,
23
+ v as ResetPasswordForm,
24
+ I as SignInForm,
25
+ A as SignUpForm,
26
+ E as SnapchatLoginButton,
27
+ T as SocialLoginButton,
28
+ k as SocialLoginButtons,
29
+ x as SocialProviders,
30
+ C as SteamLoginButton,
31
+ F as TiktokLoginButton,
32
+ R as TwitchLoginButton,
33
+ U as TwitterLoginButton,
34
+ b as WeChatLoginButton,
35
+ y as WhatsAppLoginButton,
36
+ D as XLoginButtin,
37
+ G as XboxLoginButton,
38
+ M as YahooLoginButton,
39
+ V as authSchemas,
40
+ W as calculatePasswordStrength,
41
+ X as createEmailSchema,
42
+ q as createPasswordSchema,
43
+ z as createSignInSchema,
44
+ H as createSignUpSchema,
45
+ N as createSocialLoginUrl,
46
+ Y as defaultPasswordRules,
47
+ j as defaultSignInSchema,
48
+ J as defaultSignUpSchema,
49
+ K as emailSchema,
50
+ O as formatAuthError,
51
+ Q as formatProviderName,
52
+ Z as formatSocialLoginText,
53
+ _ as generateRandomString,
54
+ $ as getProviderColor,
55
+ aa as getProviderIcon,
56
+ oa as isBrowser,
57
+ ta as isValidEmail,
58
+ sa as openSocialLoginPopup,
59
+ na as providerInfo,
60
+ ia as requestToControllerValidation,
61
+ ea as resetPasswordSchema,
62
+ ra as socialProviderInfo,
63
+ ga as useAuthEmailProp,
64
+ ua as validateEmail,
65
+ ca as validatePassword
1353
66
  };