@tempots/beatui 0.81.0 → 0.82.1

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 (237) hide show
  1. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  2. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  3. package/dist/{ar-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
  4. package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
  5. package/dist/auth/index.cjs.js +1 -1
  6. package/dist/auth/index.es.js +63 -1349
  7. package/dist/auth-divider-BqZPH1-z.cjs +1 -0
  8. package/dist/auth-divider-Wr-S16kF.js +1355 -0
  9. package/dist/beatui.css +2035 -295
  10. package/dist/beatui.tailwind.css +2036 -296
  11. package/dist/better-auth/index.cjs.js +1 -0
  12. package/dist/better-auth/index.es.js +754 -0
  13. package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
  14. package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
  15. package/dist/{deep-merge-1uN6CG6K.js → deep-merge-BYm0y62g.js} +271 -285
  16. package/dist/deep-merge-d7sf0xmN.cjs +1 -0
  17. package/dist/duration-input-B9UNmUCh.cjs +1 -0
  18. package/dist/{duration-input-C9kpsw-t.js → duration-input-DqcJbxKD.js} +31 -29
  19. package/dist/editor-toolbar-group--a-xgsJw.cjs +1 -0
  20. package/dist/editor-toolbar-group-CVpl5mxF.js +31 -0
  21. package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
  22. package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
  23. package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
  24. package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
  25. package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
  26. package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
  27. package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
  28. package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
  29. package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
  30. package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
  31. package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
  32. package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
  33. package/dist/{index-CfaWytS2.cjs → index-05UbKOYe.cjs} +1 -1
  34. package/dist/{index-K6u33-GC.cjs → index-Bt7FYl80.cjs} +19 -19
  35. package/dist/{index-YtW7SCWB.js → index-C2Lq1m45.js} +1434 -1463
  36. package/dist/{index-CGEzILlC.js → index-lYhXnu6I.js} +1 -1
  37. package/dist/index.cjs.js +4 -4
  38. package/dist/index.es.js +2389 -2738
  39. package/dist/input-container-C6qEIjcA.cjs +1 -0
  40. package/dist/input-container-DiCjOzR2.js +247 -0
  41. package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
  42. package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
  43. package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
  44. package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
  45. package/dist/json-schema/index.cjs.js +1 -8
  46. package/dist/json-schema/index.es.js +1359 -7608
  47. package/dist/json-schema-display/index.cjs.js +1 -0
  48. package/dist/json-schema-display/index.es.js +846 -0
  49. package/dist/json-structure/index.cjs.js +1 -1
  50. package/dist/json-structure/index.es.js +542 -698
  51. package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
  52. package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
  53. package/dist/lexical/index.cjs.js +46 -0
  54. package/dist/lexical/index.es.js +21370 -0
  55. package/dist/lexical.css +1124 -0
  56. package/dist/menu-CZzRsQP_.js +372 -0
  57. package/dist/menu-ClrU72xH.cjs +1 -0
  58. package/dist/modal-I5srcntN.cjs +1 -0
  59. package/dist/modal-v3u2Fpnd.js +488 -0
  60. package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
  61. package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
  62. package/dist/{notice-C-964yaY.js → notice-BuZvdvZh.js} +84 -82
  63. package/dist/notice-CLDdy1MW.cjs +1 -0
  64. package/dist/oneof-branch-detection-DsM1K5xc.cjs +8 -0
  65. package/dist/oneof-branch-detection-Dt8ss9lc.js +6281 -0
  66. package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
  67. package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
  68. package/dist/prosemirror/index.cjs.js +1 -1
  69. package/dist/prosemirror/index.es.js +1 -1
  70. package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
  71. package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
  72. package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
  73. package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
  74. package/dist/session-id-3KiilioY.js +8 -0
  75. package/dist/session-id-B5lJMzbB.cjs +1 -0
  76. package/dist/stack-BJgsPJ9A.js +873 -0
  77. package/dist/stack-DcZ_u50f.cjs +1 -0
  78. package/dist/string-B9vVyfq3.cjs +1 -0
  79. package/dist/string-DYyMxBl-.js +19 -0
  80. package/dist/styles-url-B2dzXrYt.cjs +1 -0
  81. package/dist/styles-url-Cw_mxshe.js +4 -0
  82. package/dist/text-input-B3VBat1k.js +44 -0
  83. package/dist/text-input-Ds8e7Z1G.cjs +1 -0
  84. package/dist/{toolbar-DNpBIoJo.js → toolbar-D994_E_s.js} +4 -4
  85. package/dist/toolbar-x0_8lmKu.cjs +1 -0
  86. package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
  87. package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
  88. package/dist/translations-B4-Zd2LM.cjs +1 -0
  89. package/dist/translations-Cq8bUKJP.js +584 -0
  90. package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
  91. package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
  92. package/dist/types/better-auth/bridge.d.ts +2 -0
  93. package/dist/types/better-auth/callbacks.d.ts +6 -0
  94. package/dist/types/better-auth/components/authenticated.d.ts +4 -0
  95. package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
  96. package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
  97. package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
  98. package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
  99. package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
  100. package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
  101. package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
  102. package/dist/types/better-auth/i18n/default.d.ts +29 -0
  103. package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
  104. package/dist/types/better-auth/i18n/translations.d.ts +27 -0
  105. package/dist/types/better-auth/index.d.ts +22 -0
  106. package/dist/types/better-auth/provider.d.ts +6 -0
  107. package/dist/types/better-auth/session.d.ts +14 -0
  108. package/dist/types/better-auth/social-mapping.d.ts +2 -0
  109. package/dist/types/better-auth/types.d.ts +164 -0
  110. package/dist/types/components/auth/auth-container.d.ts +1 -1
  111. package/dist/types/components/auth/social-providers.d.ts +1 -1
  112. package/dist/types/components/auth/types.d.ts +2 -0
  113. package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
  114. package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
  115. package/dist/types/components/editor-toolbar/index.d.ts +2 -0
  116. package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
  117. package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
  118. package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
  119. package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
  120. package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
  121. package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
  122. package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
  123. package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
  124. package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
  125. package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
  126. package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
  127. package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
  128. package/dist/types/components/json-schema-display/index.d.ts +14 -0
  129. package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
  130. package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
  131. package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
  132. package/dist/types/components/json-structure/controls/index.d.ts +1 -0
  133. package/dist/types/components/lexical/bare-editor.d.ts +29 -0
  134. package/dist/types/components/lexical/code/index.d.ts +1 -0
  135. package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
  136. package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
  137. package/dist/types/components/lexical/docked-editor.d.ts +23 -0
  138. package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
  139. package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
  140. package/dist/types/components/lexical/floating/index.d.ts +6 -0
  141. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
  142. package/dist/types/components/lexical/index.d.ts +8 -0
  143. package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
  144. package/dist/types/components/lexical/table/index.d.ts +1 -0
  145. package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
  146. package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
  147. package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
  148. package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
  149. package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
  150. package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +30 -0
  151. package/dist/types/components/prosemirror/etoolbar-button.d.ts +1 -11
  152. package/dist/types/components/prosemirror/etoolbar-group.d.ts +1 -4
  153. package/dist/types/json-schema-display/index.d.ts +1 -0
  154. package/dist/types/lexical/commands/index.d.ts +17 -0
  155. package/dist/types/lexical/headless.d.ts +39 -0
  156. package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
  157. package/dist/types/lexical/index.d.ts +20 -0
  158. package/dist/types/lexical/lazy-loader.d.ts +35 -0
  159. package/dist/types/lexical/nodes.d.ts +29 -0
  160. package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
  161. package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
  162. package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
  163. package/dist/types/lexical/plugins/code.d.ts +7 -0
  164. package/dist/types/lexical/plugins/dragon.d.ts +6 -0
  165. package/dist/types/lexical/plugins/file-io.d.ts +10 -0
  166. package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
  167. package/dist/types/lexical/plugins/history.d.ts +7 -0
  168. package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
  169. package/dist/types/lexical/plugins/html-io.d.ts +9 -0
  170. package/dist/types/lexical/plugins/index.d.ts +24 -0
  171. package/dist/types/lexical/plugins/link.d.ts +6 -0
  172. package/dist/types/lexical/plugins/list.d.ts +6 -0
  173. package/dist/types/lexical/plugins/mark.d.ts +15 -0
  174. package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
  175. package/dist/types/lexical/plugins/offset.d.ts +6 -0
  176. package/dist/types/lexical/plugins/overflow.d.ts +7 -0
  177. package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
  178. package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
  179. package/dist/types/lexical/plugins/selection.d.ts +6 -0
  180. package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
  181. package/dist/types/lexical/plugins/table.d.ts +11 -0
  182. package/dist/types/lexical/plugins/text.d.ts +13 -0
  183. package/dist/types/lexical/plugins/yjs.d.ts +9 -0
  184. package/dist/types/lexical/styles-url.d.ts +2 -0
  185. package/dist/types/lexical/styles.d.ts +2 -0
  186. package/dist/types/lexical/types.d.ts +634 -0
  187. package/dist/types/lexical-i18n/default.d.ts +92 -0
  188. package/dist/types/lexical-i18n/index.d.ts +21 -0
  189. package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
  190. package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
  191. package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
  192. package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
  193. package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
  194. package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
  195. package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
  196. package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
  197. package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
  198. package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
  199. package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
  200. package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
  201. package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
  202. package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
  203. package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
  204. package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
  205. package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
  206. package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
  207. package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
  208. package/dist/types/lexical-i18n/translations.d.ts +21 -0
  209. package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
  210. package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
  211. package/dist/use-animated-toggle-ChycsEoj.js +175 -0
  212. package/dist/use-animated-toggle-DR6CyMac.cjs +1 -0
  213. package/dist/use-form-B56E_x5Y.js +859 -0
  214. package/dist/use-form-Cnp3XQ5X.cjs +2 -0
  215. package/dist/utils-DEbsp9Q9.js +129 -0
  216. package/dist/utils-DIUEhA-Z.cjs +1 -0
  217. package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
  218. package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
  219. package/dist/widget-customization-Dk7XcVly.cjs +1 -0
  220. package/dist/widget-customization-Ds9sicAg.js +1073 -0
  221. package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
  222. package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
  223. package/package.json +59 -8
  224. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  225. package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
  226. package/dist/deep-merge-CBIkQM4E.cjs +0 -1
  227. package/dist/duration-input-DHWhQJnn.cjs +0 -1
  228. package/dist/modal-CSHIhHvI.js +0 -654
  229. package/dist/modal-cc8Ehngz.cjs +0 -1
  230. package/dist/notice-C_BWqu2K.cjs +0 -1
  231. package/dist/toolbar-D5FcnRju.cjs +0 -1
  232. package/dist/translations-0tLX4x7M.js +0 -866
  233. package/dist/translations-WPN3ibDg.cjs +0 -1
  234. package/dist/use-form-D4JFOcjo.cjs +0 -2
  235. package/dist/use-form-D4rqJkvG.js +0 -1731
  236. package/dist/widget-customization-BSjJz3_Y.js +0 -1195
  237. package/dist/widget-customization-CrFVrt4V.cjs +0 -1
@@ -0,0 +1,584 @@
1
+ import { makeProviderMark as B, localStorageProp as w, computedOf as p, Use as $, html as g, attr as u, When as k, Fragment as v, aria as f, coalesce as V, style as I, prop as x } from "@tempots/dom";
2
+ import { WhenInViewport as F, Query as T } from "@tempots/ui";
3
+ import { b as j, g as R } from "./colors-DPo9GEJR.js";
4
+ function N(e, {
5
+ units: t = ["B", "KB", "MB", "GB", "TB"],
6
+ decimalPlaces: o = 0,
7
+ locale: a
8
+ } = {}) {
9
+ if (e === 0 || e === 0n)
10
+ return new Intl.NumberFormat(a, {
11
+ style: "unit",
12
+ unit: "byte",
13
+ unitDisplay: "short",
14
+ maximumFractionDigits: 0
15
+ }).format(0).replace("byte", t[0]);
16
+ let n, r;
17
+ if (typeof e == "bigint") {
18
+ let l = e < 0n ? -e : e;
19
+ for (n = 0; l >= 1024n && n < t.length - 1; )
20
+ l = l / 1024n, n++;
21
+ r = Number(e) / Math.pow(1024, n);
22
+ } else
23
+ n = Math.floor(Math.log(Math.abs(e)) / Math.log(1024)), n = Math.min(n, t.length - 1), r = e / Math.pow(1024, n);
24
+ return new Intl.NumberFormat(a, {
25
+ style: "unit",
26
+ unit: "byte",
27
+ unitDisplay: "short",
28
+ minimumFractionDigits: n === 0 ? 0 : o,
29
+ maximumFractionDigits: n === 0 ? 0 : o
30
+ }).format(r).replace("byte", t[n]);
31
+ }
32
+ const O = {
33
+ loadingExtended: "Loading, please wait",
34
+ loadingShort: "Loading...",
35
+ locale: "Locale",
36
+ iconDescription: "Icon",
37
+ loadingIcon: "Loading icon",
38
+ failedToLoadIcon: "Failed to load icon",
39
+ editLabel: "Edit",
40
+ selectOne: "Select one",
41
+ selectNone: "None",
42
+ selectMany: "Select many",
43
+ noResults: "No results",
44
+ passwordPlaceholderText: "Secret Password",
45
+ togglePasswordVisibility: "Toggle password visibility",
46
+ toggleMenu: "Toggle menu",
47
+ toggleAside: "Toggle aside",
48
+ mainNavigation: "Main navigation",
49
+ sidebar: "Sidebar",
50
+ closeDrawer: "Close drawer",
51
+ closeModal: "Close modal",
52
+ confirm: "Confirm",
53
+ cancel: "Cancel",
54
+ addLabel: "Add",
55
+ removeItem: "Remove item",
56
+ // languages
57
+ currentLocale: "English",
58
+ ar: "Arabic",
59
+ de: "German",
60
+ en: "English",
61
+ es: "Spanish",
62
+ fr: "French",
63
+ hi: "Hindi",
64
+ it: "Italian",
65
+ ja: "Japanese",
66
+ ko: "Korean",
67
+ nl: "Dutch",
68
+ pl: "Polish",
69
+ pt: "Portuguese",
70
+ ru: "Russian",
71
+ tr: "Turkish",
72
+ vi: "Vietnamese",
73
+ zh: "Chinese",
74
+ he: "Hebrew",
75
+ fa: "Persian",
76
+ ur: "Urdu",
77
+ // input
78
+ emailPlaceholderText: "Enter your email",
79
+ incrementValue: "Increment value",
80
+ decrementValue: "Decrement value",
81
+ // drop zone
82
+ dropZoneInstructions: (e) => e ? "Click to choose or drag files here, or press Enter or Space to open file selector" : "Drag files here",
83
+ // size
84
+ fileSizeUnits: ["Bytes", "KB", "MB", "GB", "TB"],
85
+ // file input
86
+ removeFile: "Remove file",
87
+ clearAllFiles: "Clear all files",
88
+ // inputs reset
89
+ clearValue: "Reset",
90
+ unknownType: "Unknown type",
91
+ filesInputInstructions: (e, t, o) => {
92
+ let a = e == null || e > 1 ? "Click to choose or drag files here" : "Click to choose or drag a file here";
93
+ if (e || t) {
94
+ const n = [];
95
+ if (e != null && e > 1 && n.push(`up to ${e} files`), t && o) {
96
+ const r = N(t, {
97
+ units: o
98
+ });
99
+ n.push(`max ${r} each`);
100
+ }
101
+ n.length > 0 && (a += ` (${n.join(", ")})`);
102
+ }
103
+ return a;
104
+ },
105
+ // ProseMirror editor
106
+ prosemirror: {
107
+ bold: "Bold",
108
+ italic: "Italic",
109
+ code: "Inline code",
110
+ link: "Insert link",
111
+ removeLink: "Remove link",
112
+ heading: (e) => `Heading ${e}`,
113
+ bulletList: "Bullet list",
114
+ orderedList: "Ordered list",
115
+ blockquote: "Blockquote",
116
+ codeBlock: "Code block",
117
+ horizontalRule: "Horizontal rule",
118
+ linkUrlPlaceholder: "https://example.com"
119
+ },
120
+ // PDF Page Viewer
121
+ pdfPageViewer: {
122
+ loading: "Loading PDF...",
123
+ loadFailed: "Failed to load PDF",
124
+ invalidPdf: "Invalid PDF file",
125
+ pageOutOfRange: (e, t) => `Page ${e} is out of range (1-${t})`,
126
+ renderFailed: "Failed to render PDF page"
127
+ }
128
+ }, C = O, P = "en", E = /* @__PURE__ */ new Set([
129
+ "ar",
130
+ // Arabic
131
+ "he",
132
+ // Hebrew
133
+ "fa",
134
+ // Persian/Farsi
135
+ "ur",
136
+ // Urdu
137
+ "ps",
138
+ // Pashto
139
+ "sd",
140
+ // Sindhi
141
+ "ku",
142
+ // Kurdish
143
+ "dv",
144
+ // Divehi/Maldivian
145
+ "yi",
146
+ // Yiddish
147
+ "ji",
148
+ // Yiddish (alternative code)
149
+ "iw",
150
+ // Hebrew (deprecated, but still used)
151
+ "in"
152
+ // Indonesian (deprecated, but sometimes confused)
153
+ ]);
154
+ function D(e) {
155
+ if (!e) return "ltr";
156
+ const t = e.split(/[-_]/)[0].toLowerCase();
157
+ return E.has(t) ? "rtl" : "ltr";
158
+ }
159
+ function A(e, t) {
160
+ return e === "auto" ? D(t) : e;
161
+ }
162
+ function ue(e) {
163
+ return `b-${e}`;
164
+ }
165
+ function de(e) {
166
+ return D(e) === "rtl";
167
+ }
168
+ function fe(e) {
169
+ return e === "ltr" ? "rtl" : "ltr";
170
+ }
171
+ const U = {
172
+ ltr: {
173
+ "inline-start": "left",
174
+ "inline-end": "right",
175
+ "block-start": "top",
176
+ "block-end": "bottom"
177
+ },
178
+ rtl: {
179
+ "inline-start": "right",
180
+ "inline-end": "left",
181
+ "block-start": "top",
182
+ "block-end": "bottom"
183
+ }
184
+ };
185
+ function he(e, t) {
186
+ return U[t][e];
187
+ }
188
+ const _ = {
189
+ mark: B("Locale"),
190
+ create: (e) => {
191
+ const t = w({
192
+ defaultValue: navigator.language ?? "en-US",
193
+ key: "beatui-locale"
194
+ }), o = w({
195
+ defaultValue: "auto",
196
+ key: "beatui-direction-preference"
197
+ }), a = p(
198
+ t,
199
+ o
200
+ )(
201
+ (r, i) => A(i, r)
202
+ );
203
+ return {
204
+ value: {
205
+ locale: t,
206
+ setLocale: (r) => t.set(r),
207
+ direction: a,
208
+ directionPreference: o,
209
+ setDirectionPreference: (r) => o.set(r)
210
+ },
211
+ dispose: () => {
212
+ t.dispose(), o.dispose(), a.dispose();
213
+ }
214
+ };
215
+ }
216
+ }, {
217
+ variants: G,
218
+ special: q,
219
+ overrides: y
220
+ } = j;
221
+ function d(e, t) {
222
+ switch (e) {
223
+ case "white":
224
+ return "var(--color-white)";
225
+ case "black":
226
+ return "var(--color-black)";
227
+ case "transparent":
228
+ return "transparent";
229
+ default:
230
+ return R(e, t);
231
+ }
232
+ }
233
+ function S(e, t) {
234
+ const o = q[e];
235
+ if (!o) return;
236
+ if (t === "light")
237
+ return o;
238
+ const a = y[e];
239
+ return a ? a[t] : o;
240
+ }
241
+ function ge(e, t, o) {
242
+ const a = y[e];
243
+ if (a) {
244
+ const r = a[o];
245
+ if (r)
246
+ return { backgroundColor: r.backgroundColor, textColor: r.color };
247
+ }
248
+ if (t === "solid") {
249
+ const r = S(e, o);
250
+ if (r)
251
+ return {
252
+ backgroundColor: r.backgroundColor,
253
+ textColor: r.color
254
+ };
255
+ }
256
+ const n = G[t][o];
257
+ return {
258
+ backgroundColor: d(e, n.bgShade),
259
+ textColor: n.textColor
260
+ };
261
+ }
262
+ const H = {
263
+ light: { shade: 600, textColor: "var(--color-white)" },
264
+ dark: { shade: 600, textColor: "var(--text-inverted-dark)" }
265
+ }, z = {
266
+ light: { shade: 300, textColor: "var(--text-normal-light)" },
267
+ dark: { shade: 700, textColor: "var(--text-normal-dark)" }
268
+ }, K = {
269
+ light: { shade: 400, textColor: "var(--text-normal-light)" },
270
+ dark: { shade: 600, textColor: "var(--text-normal-dark)" }
271
+ };
272
+ function pe(e, t, o) {
273
+ const a = y[e];
274
+ if (a) {
275
+ const r = a[o];
276
+ if (r)
277
+ return { backgroundColor: r.backgroundColor, textColor: r.color };
278
+ }
279
+ if (t === "solid") {
280
+ const r = S(e, o);
281
+ if (r)
282
+ return {
283
+ backgroundColor: r.backgroundColor,
284
+ textColor: r.color
285
+ };
286
+ const i = H[o];
287
+ return {
288
+ backgroundColor: d(e, i.shade),
289
+ textColor: i.textColor
290
+ };
291
+ }
292
+ const n = t === "light" ? z[o] : K[o];
293
+ return {
294
+ backgroundColor: d(e, n.shade),
295
+ textColor: n.textColor
296
+ };
297
+ }
298
+ function me(e, t) {
299
+ const o = t === "light" ? 500 : 600;
300
+ switch (e) {
301
+ case "white":
302
+ return t === "light" ? "var(--text-inverse-light)" : "var(--text-inverted-dark)";
303
+ case "black":
304
+ return "var(--color-black)";
305
+ case "transparent":
306
+ return "transparent";
307
+ default:
308
+ return d(e, o);
309
+ }
310
+ }
311
+ function be(e, t) {
312
+ return e === "white" ? "var(--color-white)" : e === "black" ? "var(--color-black)" : e === "transparent" ? "inherit" : d(e, t === "light" ? 800 : 200);
313
+ }
314
+ function L(e, t, o) {
315
+ return t === "soft" ? d(e, o === "light" ? 300 : 700) : d(e, o === "light" ? 500 : 600);
316
+ }
317
+ const W = "bui-icons", m = /* @__PURE__ */ new Map(), M = (() => {
318
+ try {
319
+ return typeof indexedDB < "u" && indexedDB !== null;
320
+ } catch {
321
+ return !1;
322
+ }
323
+ })();
324
+ function J() {
325
+ return M ? new Promise((e, t) => {
326
+ const o = indexedDB.open(W, 1);
327
+ o.onupgradeneeded = function(a) {
328
+ const n = a.target.result;
329
+ n.objectStoreNames.contains("icons") || n.createObjectStore("icons");
330
+ }, o.onsuccess = function() {
331
+ e(o.result);
332
+ }, o.onerror = function() {
333
+ t(o.error);
334
+ };
335
+ }) : Promise.reject(new Error("IndexedDB not available"));
336
+ }
337
+ const b = M ? J() : null;
338
+ async function Q(e, t) {
339
+ try {
340
+ if (b) {
341
+ const o = await b;
342
+ return new Promise((a, n) => {
343
+ const r = o.transaction("icons", "readwrite");
344
+ r.objectStore("icons").put(t, e), r.oncomplete = () => a(), r.onerror = n;
345
+ });
346
+ } else
347
+ m.set(e, t);
348
+ } catch {
349
+ m.set(e, t);
350
+ }
351
+ }
352
+ async function Y(e) {
353
+ try {
354
+ if (b) {
355
+ const t = await b;
356
+ return new Promise((o, a) => {
357
+ const i = t.transaction("icons", "readonly").objectStore("icons").get(e);
358
+ i.onsuccess = function() {
359
+ o(i.result);
360
+ }, i.onerror = a;
361
+ });
362
+ } else
363
+ return m.get(e) || null;
364
+ } catch {
365
+ return m.get(e) || null;
366
+ }
367
+ }
368
+ async function Z(e) {
369
+ const t = `https://api.iconify.design/${e}.svg`;
370
+ return fetch(t).then((o) => {
371
+ if (o.status === 200)
372
+ return o.text();
373
+ throw new Error(`Failed to load icon: ${e}`);
374
+ });
375
+ }
376
+ async function X(e) {
377
+ const t = e.replace(":", "/"), o = await Y(t);
378
+ if (o)
379
+ return o;
380
+ const a = await Z(t);
381
+ return await Q(t, a), a;
382
+ }
383
+ function ee(e) {
384
+ return ["bc-icon", `bc-icon--${e}`].join(" ");
385
+ }
386
+ function te(e, t = "solid") {
387
+ if (!e) return "";
388
+ const o = L(e, t, "light"), a = L(e, t, "dark");
389
+ return `--icon-color: ${o}; --icon-color-dark: ${a}`;
390
+ }
391
+ function ke({
392
+ icon: e,
393
+ size: t = "md",
394
+ color: o,
395
+ title: a,
396
+ accessibility: n = "auto",
397
+ tone: r = "solid"
398
+ }, ...i) {
399
+ const c = p(
400
+ n,
401
+ a
402
+ )((l, s) => l === "decorative" ? !1 : l === "informative" ? !0 : s != null && s !== "");
403
+ return $(
404
+ ie,
405
+ (l) => g.span(
406
+ u.class(
407
+ p(t, o)((s) => ee(s ?? "md"))
408
+ ),
409
+ u.style(
410
+ p(
411
+ o,
412
+ r
413
+ )(
414
+ (s, h) => te(s ?? void 0, h ?? "solid")
415
+ )
416
+ ),
417
+ // Add accessibility attributes based on icon type
418
+ k(
419
+ c,
420
+ () => v(
421
+ u.role("img"),
422
+ f.label(V(a, l.$.iconDescription))
423
+ ),
424
+ () => f.hidden(!0)
425
+ ),
426
+ F(
427
+ { once: !0 },
428
+ () => T({
429
+ request: e,
430
+ load: ({ request: s }) => X(s),
431
+ convertError: String,
432
+ success: ({ value: s }) => g.span(
433
+ I.width("100%"),
434
+ I.height("100%"),
435
+ u.innerHTML(s)
436
+ ),
437
+ pending: () => g.span(
438
+ u.class("animate-spin"),
439
+ // Loading state accessibility
440
+ k(
441
+ c,
442
+ () => v(u.role("img"), f.label(l.$.loadingIcon)),
443
+ () => f.hidden(!0)
444
+ ),
445
+ "↻"
446
+ ),
447
+ failure: ({ error: s }) => g.span(
448
+ u.title(s),
449
+ u.class("text-red-500"),
450
+ // Error state accessibility
451
+ k(
452
+ c,
453
+ () => v(u.role("img"), f.label(l.$.failedToLoadIcon)),
454
+ () => f.hidden(!0)
455
+ ),
456
+ "🚫"
457
+ )
458
+ })
459
+ ),
460
+ ...i
461
+ )
462
+ );
463
+ }
464
+ function oe(e) {
465
+ const t = e.split("-"), o = [e];
466
+ return t.length > 1 && o.push(t[0]), o;
467
+ }
468
+ function re({
469
+ locale: e,
470
+ defaultLocale: t = "en-US",
471
+ defaultMessages: o,
472
+ localeLoader: a
473
+ }) {
474
+ const n = x(t), r = x(o), i = e.on(async (c) => {
475
+ if (c === n.value) return;
476
+ n.set(c);
477
+ const l = oe(c);
478
+ for (const s of l)
479
+ try {
480
+ const h = await a(s);
481
+ if (
482
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
483
+ typeof h.default == "object" && Object.keys(h).length === 1
484
+ ) {
485
+ console.error(
486
+ "It appears that you are trying to load a translation module without referencing the default export. Please use `(await import(...)).default` in your loader function."
487
+ );
488
+ return;
489
+ }
490
+ if (c === n.value) {
491
+ r.set(h);
492
+ return;
493
+ }
494
+ } catch {
495
+ continue;
496
+ }
497
+ console.warn(`No locale found for "${e.value}", using fallback`), c === n.value && r.set(o);
498
+ });
499
+ return {
500
+ /** Clean up all resources and event listeners */
501
+ dispose: () => {
502
+ i(), n.dispose(), r.dispose();
503
+ },
504
+ /** Translation functions that return reactive signals */
505
+ t: r
506
+ };
507
+ }
508
+ function ne({
509
+ defaultLocale: e,
510
+ defaultMessages: t,
511
+ localeLoader: o,
512
+ providerName: a = "I18nProvider"
513
+ }) {
514
+ return {
515
+ mark: B(a),
516
+ create: (n, r) => {
517
+ const {
518
+ value: { locale: i }
519
+ } = r.getProvider(_.mark), { t: c, dispose: l } = re({
520
+ locale: i,
521
+ defaultMessages: t,
522
+ defaultLocale: e,
523
+ localeLoader: o
524
+ });
525
+ return {
526
+ value: c,
527
+ dispose: l
528
+ };
529
+ }
530
+ };
531
+ }
532
+ const ae = /* @__PURE__ */ Object.assign({
533
+ "./locales/ar.ts": () => import("./ar-nOSKXpIW.js").then((e) => e.default),
534
+ "./locales/de.ts": () => import("./de-f2xcEb34.js").then((e) => e.default),
535
+ "./locales/es.ts": () => import("./es-CDqqzpCw.js").then((e) => e.default),
536
+ "./locales/fa.ts": () => import("./fa-C7tE_hR3.js").then((e) => e.default),
537
+ "./locales/fr.ts": () => import("./fr-yOW_68YY.js").then((e) => e.default),
538
+ "./locales/he.ts": () => import("./he-D2oUloCJ.js").then((e) => e.default),
539
+ "./locales/hi.ts": () => import("./hi-D5ZlZoQq.js").then((e) => e.default),
540
+ "./locales/it.ts": () => import("./it-6e6X-4BB.js").then((e) => e.default),
541
+ "./locales/ja.ts": () => import("./ja-BxNuNo2H.js").then((e) => e.default),
542
+ "./locales/ko.ts": () => import("./ko-Ch0jFsBV.js").then((e) => e.default),
543
+ "./locales/nl.ts": () => import("./nl-NuTdZO1s.js").then((e) => e.default),
544
+ "./locales/pl.ts": () => import("./pl-Bs4nLJ__.js").then((e) => e.default),
545
+ "./locales/pt.ts": () => import("./pt-BETjHZrL.js").then((e) => e.default),
546
+ "./locales/ru.ts": () => import("./ru-Bi1_DEKM.js").then((e) => e.default),
547
+ "./locales/tr.ts": () => import("./tr-DiYB-FwX.js").then((e) => e.default),
548
+ "./locales/ur.ts": () => import("./ur-B69X-xNs.js").then((e) => e.default),
549
+ "./locales/vi.ts": () => import("./vi-BdzxA60L.js").then((e) => e.default),
550
+ "./locales/zh.ts": () => import("./zh-Dn1UJiZa.js").then((e) => e.default)
551
+ }), ie = ne({
552
+ defaultLocale: P,
553
+ defaultMessages: C,
554
+ localeLoader: async (e) => {
555
+ if (e === P) return C;
556
+ const t = ae[`./locales/${e}.ts`];
557
+ return t ? await t() : C;
558
+ },
559
+ providerName: "BeatUII18n"
560
+ });
561
+ export {
562
+ ie as B,
563
+ ke as I,
564
+ _ as L,
565
+ me as a,
566
+ ge as b,
567
+ P as c,
568
+ C as d,
569
+ re as e,
570
+ N as f,
571
+ Y as g,
572
+ pe as h,
573
+ M as i,
574
+ D as j,
575
+ ue as k,
576
+ de as l,
577
+ ne as m,
578
+ fe as n,
579
+ U as o,
580
+ he as p,
581
+ A as r,
582
+ Q as s,
583
+ be as t
584
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./translations-WPN3ibDg.cjs"),n={signInTitle:"Sign In",signInButton:"Sign In",emailLabel:"Email",passwordLabel:"Password",rememberMeLabel:"Remember me",forgotPasswordLink:"Forgot password?",noAccountLink:"Don't have an account? Sign up",signUpTitle:"Sign Up",signUpButton:"Sign Up",nameLabel:"Name",confirmPasswordLabel:"Confirm Password",acceptTermsLabel:"I accept the terms and conditions",hasAccountLink:"Already have an account? Sign in",resetPasswordTitle:"Reset Password",resetPasswordButton:"Reset Password",resetPasswordDescription:"Enter your email to reset your password.",backToSignInLink:"Back to sign in",continueWithProvider:e=>`Continue with ${e}`,passwordStrengthWeak:"Weak",passwordStrengthFair:"Fair",passwordStrengthGood:"Good",passwordStrengthStrong:"Strong",orDivider:"or",error:"An error occurred",required:"Required",authenticationTitle:"Authentication"},r=n,s="en",a=Object.assign({"./locales/ar.ts":()=>Promise.resolve().then(()=>require("./ar-BsUm-TCn.cjs")).then(e=>e.default),"./locales/de.ts":()=>Promise.resolve().then(()=>require("./de-BUFLEyKr.cjs")).then(e=>e.default),"./locales/es.ts":()=>Promise.resolve().then(()=>require("./es-BxBeTRCv.cjs")).then(e=>e.default),"./locales/fa.ts":()=>Promise.resolve().then(()=>require("./fa-DxPseW3g.cjs")).then(e=>e.default),"./locales/fr.ts":()=>Promise.resolve().then(()=>require("./fr-Cdyopuz3.cjs")).then(e=>e.default),"./locales/he.ts":()=>Promise.resolve().then(()=>require("./he-DarDNPn0.cjs")).then(e=>e.default),"./locales/hi.ts":()=>Promise.resolve().then(()=>require("./hi-tATwsXJ6.cjs")).then(e=>e.default),"./locales/it.ts":()=>Promise.resolve().then(()=>require("./it-BmFag7j0.cjs")).then(e=>e.default),"./locales/ja.ts":()=>Promise.resolve().then(()=>require("./ja-Dj-bAKLf.cjs")).then(e=>e.default),"./locales/ko.ts":()=>Promise.resolve().then(()=>require("./ko-BomUE-yQ.cjs")).then(e=>e.default),"./locales/nl.ts":()=>Promise.resolve().then(()=>require("./nl-Dr-l6zUy.cjs")).then(e=>e.default),"./locales/pl.ts":()=>Promise.resolve().then(()=>require("./pl-BK0i_yvq.cjs")).then(e=>e.default),"./locales/pt.ts":()=>Promise.resolve().then(()=>require("./pt-oBMmVYcu.cjs")).then(e=>e.default),"./locales/ru.ts":()=>Promise.resolve().then(()=>require("./ru-CtxMmoa6.cjs")).then(e=>e.default),"./locales/tr.ts":()=>Promise.resolve().then(()=>require("./tr-CgJ8uhZu.cjs")).then(e=>e.default),"./locales/ur.ts":()=>Promise.resolve().then(()=>require("./ur-DvqAg9gW.cjs")).then(e=>e.default),"./locales/vi.ts":()=>Promise.resolve().then(()=>require("./vi-D5R3YcU0.cjs")).then(e=>e.default),"./locales/zh.ts":()=>Promise.resolve().then(()=>require("./zh-CCGXcj5r.cjs")).then(e=>e.default)}),l=o.makeI18nProvider({defaultLocale:s,defaultMessages:r,localeLoader:async e=>{if(e===s)return r;const t=a[`./locales/${e}.ts`];return t?await t():r},providerName:"AuthI18n"});exports.AuthI18n=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./translations-B4-Zd2LM.cjs"),n={signInTitle:"Sign In",signInButton:"Sign In",emailLabel:"Email",passwordLabel:"Password",rememberMeLabel:"Remember me",forgotPasswordLink:"Forgot password?",noAccountLink:"Don't have an account? Sign up",signUpTitle:"Sign Up",signUpButton:"Sign Up",nameLabel:"Name",confirmPasswordLabel:"Confirm Password",acceptTermsLabel:"I accept the terms and conditions",hasAccountLink:"Already have an account? Sign in",resetPasswordTitle:"Reset Password",resetPasswordButton:"Reset Password",resetPasswordDescription:"Enter your email to reset your password.",backToSignInLink:"Back to sign in",continueWithProvider:e=>`Continue with ${e}`,passwordStrengthWeak:"Weak",passwordStrengthFair:"Fair",passwordStrengthGood:"Good",passwordStrengthStrong:"Strong",orDivider:"or",error:"An error occurred",required:"Required",authenticationTitle:"Authentication"},r=n,s="en",a=Object.assign({"./locales/ar.ts":()=>Promise.resolve().then(()=>require("./ar-BsUm-TCn.cjs")).then(e=>e.default),"./locales/de.ts":()=>Promise.resolve().then(()=>require("./de-BUFLEyKr.cjs")).then(e=>e.default),"./locales/es.ts":()=>Promise.resolve().then(()=>require("./es-BxBeTRCv.cjs")).then(e=>e.default),"./locales/fa.ts":()=>Promise.resolve().then(()=>require("./fa-DxPseW3g.cjs")).then(e=>e.default),"./locales/fr.ts":()=>Promise.resolve().then(()=>require("./fr-Cdyopuz3.cjs")).then(e=>e.default),"./locales/he.ts":()=>Promise.resolve().then(()=>require("./he-DarDNPn0.cjs")).then(e=>e.default),"./locales/hi.ts":()=>Promise.resolve().then(()=>require("./hi-tATwsXJ6.cjs")).then(e=>e.default),"./locales/it.ts":()=>Promise.resolve().then(()=>require("./it-BmFag7j0.cjs")).then(e=>e.default),"./locales/ja.ts":()=>Promise.resolve().then(()=>require("./ja-Dj-bAKLf.cjs")).then(e=>e.default),"./locales/ko.ts":()=>Promise.resolve().then(()=>require("./ko-BomUE-yQ.cjs")).then(e=>e.default),"./locales/nl.ts":()=>Promise.resolve().then(()=>require("./nl-Dr-l6zUy.cjs")).then(e=>e.default),"./locales/pl.ts":()=>Promise.resolve().then(()=>require("./pl-BK0i_yvq.cjs")).then(e=>e.default),"./locales/pt.ts":()=>Promise.resolve().then(()=>require("./pt-oBMmVYcu.cjs")).then(e=>e.default),"./locales/ru.ts":()=>Promise.resolve().then(()=>require("./ru-CtxMmoa6.cjs")).then(e=>e.default),"./locales/tr.ts":()=>Promise.resolve().then(()=>require("./tr-CgJ8uhZu.cjs")).then(e=>e.default),"./locales/ur.ts":()=>Promise.resolve().then(()=>require("./ur-DvqAg9gW.cjs")).then(e=>e.default),"./locales/vi.ts":()=>Promise.resolve().then(()=>require("./vi-D5R3YcU0.cjs")).then(e=>e.default),"./locales/zh.ts":()=>Promise.resolve().then(()=>require("./zh-CCGXcj5r.cjs")).then(e=>e.default)}),l=o.makeI18nProvider({defaultLocale:s,defaultMessages:r,localeLoader:async e=>{if(e===s)return r;const t=a[`./locales/${e}.ts`];return t?await t():r},providerName:"AuthI18n"});exports.AuthI18n=l;
@@ -1,4 +1,4 @@
1
- import { m as s } from "./translations-0tLX4x7M.js";
1
+ import { m as s } from "./translations-Cq8bUKJP.js";
2
2
  const r = {
3
3
  // Sign In
4
4
  signInTitle: "Sign In",
@@ -0,0 +1,2 @@
1
+ import { BetterAuthBridge, BetterAuthBridgeOptions, BetterAuthClient } from './types';
2
+ export declare function createBetterAuthBridge(client: BetterAuthClient, options?: BetterAuthBridgeOptions): BetterAuthBridge;
@@ -0,0 +1,6 @@
1
+ import { SignInData, SignUpData, ResetPasswordData } from '../components/auth';
2
+ import { BetterAuthClient, BetterAuthBridgeOptions } from './types';
3
+ export declare function createSignInCallback(client: BetterAuthClient, opts: BetterAuthBridgeOptions, onSuccess: () => Promise<void>): (data: SignInData) => Promise<string | null>;
4
+ export declare function createSignUpCallback(client: BetterAuthClient, opts: BetterAuthBridgeOptions, onSuccess: () => Promise<void>): (data: SignUpData) => Promise<string | null>;
5
+ export declare function createResetPasswordCallback(client: BetterAuthClient, opts: BetterAuthBridgeOptions): (data: ResetPasswordData) => Promise<string | null>;
6
+ export declare function createSocialLoginHandler(client: BetterAuthClient, opts: BetterAuthBridgeOptions): (provider: string) => Promise<void>;
@@ -0,0 +1,4 @@
1
+ import { TNode } from '@tempots/dom';
2
+ import { BetterAuthBridge } from '../types';
3
+ export declare function Authenticated(auth: BetterAuthBridge, children: () => TNode): TNode;
4
+ export declare function Unauthenticated(auth: BetterAuthBridge, children: () => TNode): TNode;
@@ -0,0 +1,4 @@
1
+ import { TNode } from '@tempots/dom';
2
+ import { AuthContainerOptions } from '../../components/auth';
3
+ import { BetterAuthBridge } from '../types';
4
+ export declare function BetterAuthContainer(auth: BetterAuthBridge, overrides?: Partial<AuthContainerOptions>, ...children: TNode[]): TNode;
@@ -0,0 +1,4 @@
1
+ import { TNode } from '@tempots/dom';
2
+ import { AuthContainerOptions } from '../../components/auth';
3
+ import { BetterAuthBridge } from '../types';
4
+ export declare function BetterAuthModal(auth: BetterAuthBridge, fn: (open: (overrides?: Partial<AuthContainerOptions>) => void) => TNode): TNode;
@@ -0,0 +1,7 @@
1
+ import { Renderable } from '@tempots/dom';
2
+ import { BetterAuthClient } from '../types';
3
+ export interface MagicLinkFormOptions {
4
+ client: BetterAuthClient;
5
+ callbackURL?: string;
6
+ }
7
+ export declare function MagicLinkForm({ client, callbackURL, }: MagicLinkFormOptions): Renderable;
@@ -0,0 +1,6 @@
1
+ import { Renderable } from '@tempots/dom';
2
+ import { PasskeyClient } from '../types';
3
+ export interface PasskeyManagementOptions {
4
+ passkey: PasskeyClient;
5
+ }
6
+ export declare function PasskeyManagement({ passkey, }: PasskeyManagementOptions): Renderable;
@@ -0,0 +1,12 @@
1
+ import { Renderable } from '@tempots/dom';
2
+ import { BetterAuthClient } from '../types';
3
+ export interface PasskeySignInOptions {
4
+ client: BetterAuthClient;
5
+ autoFill?: boolean;
6
+ onSuccess?: () => void;
7
+ onError?: (error: {
8
+ message: string;
9
+ status: number;
10
+ }) => void;
11
+ }
12
+ export declare function PasskeySignIn({ client, autoFill, onSuccess, onError, }: PasskeySignInOptions): Renderable;
@@ -0,0 +1,8 @@
1
+ import { Renderable } from '@tempots/dom';
2
+ import { TwoFactorClient } from '../types';
3
+ export interface TwoFactorSetupOptions {
4
+ twoFactor: TwoFactorClient;
5
+ issuer?: string;
6
+ onComplete?: () => void;
7
+ }
8
+ export declare function TwoFactorSetup({ twoFactor, issuer, onComplete, }: TwoFactorSetupOptions): Renderable;
@@ -0,0 +1,10 @@
1
+ import { Renderable } from '@tempots/dom';
2
+ import { TwoFactorClient } from '../types';
3
+ export type TwoFactorMethod = 'totp' | 'otp' | 'backup';
4
+ export interface TwoFactorVerifyOptions {
5
+ twoFactor: TwoFactorClient;
6
+ methods?: TwoFactorMethod[];
7
+ trustDevice?: boolean;
8
+ onVerified?: () => void;
9
+ }
10
+ export declare function TwoFactorVerify({ twoFactor, methods, trustDevice, onVerified, }: TwoFactorVerifyOptions): Renderable;