@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.
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{ar-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
- package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +63 -1349
- package/dist/auth-divider-BqZPH1-z.cjs +1 -0
- package/dist/auth-divider-Wr-S16kF.js +1355 -0
- package/dist/beatui.css +2035 -295
- package/dist/beatui.tailwind.css +2036 -296
- package/dist/better-auth/index.cjs.js +1 -0
- package/dist/better-auth/index.es.js +754 -0
- package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
- package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
- package/dist/{deep-merge-1uN6CG6K.js → deep-merge-BYm0y62g.js} +271 -285
- package/dist/deep-merge-d7sf0xmN.cjs +1 -0
- package/dist/duration-input-B9UNmUCh.cjs +1 -0
- package/dist/{duration-input-C9kpsw-t.js → duration-input-DqcJbxKD.js} +31 -29
- package/dist/editor-toolbar-group--a-xgsJw.cjs +1 -0
- package/dist/editor-toolbar-group-CVpl5mxF.js +31 -0
- package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
- package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
- package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
- package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
- package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
- package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
- package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
- package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
- package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
- package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
- package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
- package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
- package/dist/{index-CfaWytS2.cjs → index-05UbKOYe.cjs} +1 -1
- package/dist/{index-K6u33-GC.cjs → index-Bt7FYl80.cjs} +19 -19
- package/dist/{index-YtW7SCWB.js → index-C2Lq1m45.js} +1434 -1463
- package/dist/{index-CGEzILlC.js → index-lYhXnu6I.js} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2389 -2738
- package/dist/input-container-C6qEIjcA.cjs +1 -0
- package/dist/input-container-DiCjOzR2.js +247 -0
- package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
- package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
- package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
- package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -8
- package/dist/json-schema/index.es.js +1359 -7608
- package/dist/json-schema-display/index.cjs.js +1 -0
- package/dist/json-schema-display/index.es.js +846 -0
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +542 -698
- package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
- package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
- package/dist/lexical/index.cjs.js +46 -0
- package/dist/lexical/index.es.js +21370 -0
- package/dist/lexical.css +1124 -0
- package/dist/menu-CZzRsQP_.js +372 -0
- package/dist/menu-ClrU72xH.cjs +1 -0
- package/dist/modal-I5srcntN.cjs +1 -0
- package/dist/modal-v3u2Fpnd.js +488 -0
- package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
- package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
- package/dist/{notice-C-964yaY.js → notice-BuZvdvZh.js} +84 -82
- package/dist/notice-CLDdy1MW.cjs +1 -0
- package/dist/oneof-branch-detection-DsM1K5xc.cjs +8 -0
- package/dist/oneof-branch-detection-Dt8ss9lc.js +6281 -0
- package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
- package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
- package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
- package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
- package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
- package/dist/session-id-3KiilioY.js +8 -0
- package/dist/session-id-B5lJMzbB.cjs +1 -0
- package/dist/stack-BJgsPJ9A.js +873 -0
- package/dist/stack-DcZ_u50f.cjs +1 -0
- package/dist/string-B9vVyfq3.cjs +1 -0
- package/dist/string-DYyMxBl-.js +19 -0
- package/dist/styles-url-B2dzXrYt.cjs +1 -0
- package/dist/styles-url-Cw_mxshe.js +4 -0
- package/dist/text-input-B3VBat1k.js +44 -0
- package/dist/text-input-Ds8e7Z1G.cjs +1 -0
- package/dist/{toolbar-DNpBIoJo.js → toolbar-D994_E_s.js} +4 -4
- package/dist/toolbar-x0_8lmKu.cjs +1 -0
- package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
- package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
- package/dist/translations-B4-Zd2LM.cjs +1 -0
- package/dist/translations-Cq8bUKJP.js +584 -0
- package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
- package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
- package/dist/types/better-auth/bridge.d.ts +2 -0
- package/dist/types/better-auth/callbacks.d.ts +6 -0
- package/dist/types/better-auth/components/authenticated.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
- package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
- package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
- package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
- package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
- package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
- package/dist/types/better-auth/i18n/default.d.ts +29 -0
- package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
- package/dist/types/better-auth/i18n/translations.d.ts +27 -0
- package/dist/types/better-auth/index.d.ts +22 -0
- package/dist/types/better-auth/provider.d.ts +6 -0
- package/dist/types/better-auth/session.d.ts +14 -0
- package/dist/types/better-auth/social-mapping.d.ts +2 -0
- package/dist/types/better-auth/types.d.ts +164 -0
- package/dist/types/components/auth/auth-container.d.ts +1 -1
- package/dist/types/components/auth/social-providers.d.ts +1 -1
- package/dist/types/components/auth/types.d.ts +2 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
- package/dist/types/components/editor-toolbar/index.d.ts +2 -0
- package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
- package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
- package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/index.d.ts +14 -0
- package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
- package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
- package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
- package/dist/types/components/json-structure/controls/index.d.ts +1 -0
- package/dist/types/components/lexical/bare-editor.d.ts +29 -0
- package/dist/types/components/lexical/code/index.d.ts +1 -0
- package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
- package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
- package/dist/types/components/lexical/docked-editor.d.ts +23 -0
- package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/floating/index.d.ts +6 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
- package/dist/types/components/lexical/index.d.ts +8 -0
- package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
- package/dist/types/components/lexical/table/index.d.ts +1 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +30 -0
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +1 -11
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +1 -4
- package/dist/types/json-schema-display/index.d.ts +1 -0
- package/dist/types/lexical/commands/index.d.ts +17 -0
- package/dist/types/lexical/headless.d.ts +39 -0
- package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
- package/dist/types/lexical/index.d.ts +20 -0
- package/dist/types/lexical/lazy-loader.d.ts +35 -0
- package/dist/types/lexical/nodes.d.ts +29 -0
- package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
- package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
- package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
- package/dist/types/lexical/plugins/code.d.ts +7 -0
- package/dist/types/lexical/plugins/dragon.d.ts +6 -0
- package/dist/types/lexical/plugins/file-io.d.ts +10 -0
- package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
- package/dist/types/lexical/plugins/history.d.ts +7 -0
- package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
- package/dist/types/lexical/plugins/html-io.d.ts +9 -0
- package/dist/types/lexical/plugins/index.d.ts +24 -0
- package/dist/types/lexical/plugins/link.d.ts +6 -0
- package/dist/types/lexical/plugins/list.d.ts +6 -0
- package/dist/types/lexical/plugins/mark.d.ts +15 -0
- package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
- package/dist/types/lexical/plugins/offset.d.ts +6 -0
- package/dist/types/lexical/plugins/overflow.d.ts +7 -0
- package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
- package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
- package/dist/types/lexical/plugins/selection.d.ts +6 -0
- package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
- package/dist/types/lexical/plugins/table.d.ts +11 -0
- package/dist/types/lexical/plugins/text.d.ts +13 -0
- package/dist/types/lexical/plugins/yjs.d.ts +9 -0
- package/dist/types/lexical/styles-url.d.ts +2 -0
- package/dist/types/lexical/styles.d.ts +2 -0
- package/dist/types/lexical/types.d.ts +634 -0
- package/dist/types/lexical-i18n/default.d.ts +92 -0
- package/dist/types/lexical-i18n/index.d.ts +21 -0
- package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
- package/dist/types/lexical-i18n/translations.d.ts +21 -0
- package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
- package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
- package/dist/use-animated-toggle-ChycsEoj.js +175 -0
- package/dist/use-animated-toggle-DR6CyMac.cjs +1 -0
- package/dist/use-form-B56E_x5Y.js +859 -0
- package/dist/use-form-Cnp3XQ5X.cjs +2 -0
- package/dist/utils-DEbsp9Q9.js +129 -0
- package/dist/utils-DIUEhA-Z.cjs +1 -0
- package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
- package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
- package/dist/widget-customization-Dk7XcVly.cjs +1 -0
- package/dist/widget-customization-Ds9sicAg.js +1073 -0
- package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
- package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
- package/package.json +59 -8
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/deep-merge-CBIkQM4E.cjs +0 -1
- package/dist/duration-input-DHWhQJnn.cjs +0 -1
- package/dist/modal-CSHIhHvI.js +0 -654
- package/dist/modal-cc8Ehngz.cjs +0 -1
- package/dist/notice-C_BWqu2K.cjs +0 -1
- package/dist/toolbar-D5FcnRju.cjs +0 -1
- package/dist/translations-0tLX4x7M.js +0 -866
- package/dist/translations-WPN3ibDg.cjs +0 -1
- package/dist/use-form-D4JFOcjo.cjs +0 -2
- package/dist/use-form-D4rqJkvG.js +0 -1731
- package/dist/widget-customization-BSjJz3_Y.js +0 -1195
- package/dist/widget-customization-CrFVrt4V.cjs +0 -1
|
@@ -1,103 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Use as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { C as z } from "./text-input-B3VBat1k.js";
|
|
2
|
+
import { Use as V, input as j, attr as t, coalesce as A, on as m, Empty as w, emitValue as I, prop as O, computedOf as C, html as p, aria as F, When as P, Fragment as $, Value as g, Unless as M, Ensure as R } from "@tempots/dom";
|
|
3
|
+
import { a as S, I as k } from "./input-container-DiCjOzR2.js";
|
|
4
|
+
import { B as x, I as E } from "./translations-Cq8bUKJP.js";
|
|
5
|
+
import { C as W } from "./use-form-B56E_x5Y.js";
|
|
6
|
+
const X = (n) => {
|
|
5
7
|
const l = {
|
|
6
8
|
name: "email",
|
|
7
9
|
autocomplete: "email",
|
|
8
|
-
...
|
|
10
|
+
...n
|
|
9
11
|
}, {
|
|
10
|
-
value:
|
|
12
|
+
value: r,
|
|
11
13
|
before: s,
|
|
12
14
|
onBlur: o,
|
|
13
15
|
onChange: d,
|
|
14
|
-
onInput:
|
|
15
|
-
placeholder:
|
|
16
|
-
} = l, b = s ??
|
|
16
|
+
onInput: c,
|
|
17
|
+
placeholder: v
|
|
18
|
+
} = l, b = s ?? S({
|
|
17
19
|
icon: "line-md:email",
|
|
18
|
-
size:
|
|
20
|
+
size: n.size,
|
|
19
21
|
color: "neutral"
|
|
20
22
|
});
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
(f) =>
|
|
24
|
-
...
|
|
23
|
+
return V(
|
|
24
|
+
x,
|
|
25
|
+
(f) => k({
|
|
26
|
+
...n,
|
|
25
27
|
before: b,
|
|
26
|
-
input:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
o != null ? m.blur(
|
|
32
|
-
d != null ? m.change(
|
|
33
|
-
|
|
28
|
+
input: j.email(
|
|
29
|
+
z(l),
|
|
30
|
+
t.placeholder(A(v, f.$.emailPlaceholderText)),
|
|
31
|
+
t.value(r),
|
|
32
|
+
t.class("bc-input"),
|
|
33
|
+
o != null ? m.blur(I(o)) : w,
|
|
34
|
+
d != null ? m.change(I(d)) : w,
|
|
35
|
+
c != null ? m.input(I(c)) : w
|
|
34
36
|
)
|
|
35
37
|
})
|
|
36
38
|
);
|
|
37
|
-
},
|
|
39
|
+
}, Y = (n) => {
|
|
38
40
|
const {
|
|
39
41
|
value: l,
|
|
40
|
-
onBlur:
|
|
42
|
+
onBlur: r,
|
|
41
43
|
onChange: s,
|
|
42
44
|
onInput: o,
|
|
43
45
|
before: d,
|
|
44
|
-
after:
|
|
45
|
-
hasError:
|
|
46
|
+
after: c,
|
|
47
|
+
hasError: v,
|
|
46
48
|
disabled: b,
|
|
47
49
|
autocomplete: f,
|
|
48
50
|
placeholder: _,
|
|
49
51
|
...h
|
|
50
|
-
} =
|
|
52
|
+
} = n, T = {
|
|
51
53
|
name: "password",
|
|
52
54
|
disabled: b,
|
|
53
55
|
...h
|
|
54
|
-
}, i =
|
|
56
|
+
}, i = O(!0), a = C(
|
|
55
57
|
i,
|
|
56
58
|
f
|
|
57
59
|
)((e, u) => e ? u ?? "current-password" : "off");
|
|
58
|
-
return x
|
|
60
|
+
return V(x, (e) => {
|
|
59
61
|
const u = C(
|
|
60
62
|
e.$.passwordPlaceholderText,
|
|
61
63
|
i,
|
|
62
64
|
_
|
|
63
|
-
)((y, N, U) => N ? "•••••••••••••••" : U ?? y),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
)((y, N, U) => N ? "•••••••••••••••" : U ?? y), B = p.button(
|
|
66
|
+
t.type("button"),
|
|
67
|
+
t.class("bc-input-container__password-toggle"),
|
|
68
|
+
F.label(e.$.togglePasswordVisibility),
|
|
67
69
|
m.click(() => i.update((y) => !y)),
|
|
68
|
-
|
|
70
|
+
P(
|
|
69
71
|
i,
|
|
70
72
|
() => E({ icon: "line-md:watch" }),
|
|
71
73
|
() => E({ icon: "line-md:watch-off" })
|
|
72
74
|
)
|
|
73
75
|
);
|
|
74
|
-
return
|
|
76
|
+
return k({
|
|
75
77
|
before: d,
|
|
76
78
|
disabled: b,
|
|
77
|
-
hasError:
|
|
79
|
+
hasError: v,
|
|
78
80
|
input: p.input(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
z({
|
|
82
|
+
...T,
|
|
81
83
|
autocomplete: a,
|
|
82
84
|
placeholder: u
|
|
83
85
|
}),
|
|
84
|
-
|
|
86
|
+
P(
|
|
85
87
|
i,
|
|
86
|
-
() =>
|
|
87
|
-
() =>
|
|
88
|
+
() => $(t.type("password")),
|
|
89
|
+
() => $(t.type("text"))
|
|
88
90
|
),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
s != null ? m.change(
|
|
93
|
-
o != null ? m.input(
|
|
91
|
+
t.class("bc-input"),
|
|
92
|
+
t.value(l),
|
|
93
|
+
r != null ? m.blur(I(r)) : w,
|
|
94
|
+
s != null ? m.change(I(s)) : w,
|
|
95
|
+
o != null ? m.input(I(o)) : w
|
|
94
96
|
),
|
|
95
|
-
after:
|
|
97
|
+
after: c != null ? $(B, c) : B
|
|
96
98
|
});
|
|
97
99
|
});
|
|
98
100
|
};
|
|
99
|
-
function q(
|
|
100
|
-
switch (
|
|
101
|
+
function q(n) {
|
|
102
|
+
switch (n) {
|
|
101
103
|
case "success":
|
|
102
104
|
return "material-symbols:check-circle-outline";
|
|
103
105
|
case "warning":
|
|
@@ -109,8 +111,8 @@ function q(t) {
|
|
|
109
111
|
return "material-symbols:info-outline";
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
|
-
function D(
|
|
113
|
-
switch (
|
|
114
|
+
function D(n) {
|
|
115
|
+
switch (n) {
|
|
114
116
|
case "success":
|
|
115
117
|
return "success";
|
|
116
118
|
case "warning":
|
|
@@ -122,52 +124,52 @@ function D(t) {
|
|
|
122
124
|
return "info";
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
|
-
function G(
|
|
127
|
+
function G(n, l, r, s) {
|
|
126
128
|
const o = [
|
|
127
129
|
"bc-notice",
|
|
128
|
-
`bc-notice--${
|
|
130
|
+
`bc-notice--${n}`,
|
|
129
131
|
`bc-notice--tone-${l}`
|
|
130
132
|
];
|
|
131
|
-
return
|
|
133
|
+
return r && o.push("bc-notice--dismissible"), s && s.length > 0 && o.push(s), o.join(" ");
|
|
132
134
|
}
|
|
133
|
-
function
|
|
134
|
-
variant:
|
|
135
|
+
function Z({
|
|
136
|
+
variant: n = "info",
|
|
135
137
|
tone: l = "subtle",
|
|
136
|
-
role:
|
|
138
|
+
role: r,
|
|
137
139
|
title: s,
|
|
138
140
|
icon: o,
|
|
139
141
|
closable: d = !1,
|
|
140
|
-
onDismiss:
|
|
141
|
-
class:
|
|
142
|
+
onDismiss: c,
|
|
143
|
+
class: v
|
|
142
144
|
}, ...b) {
|
|
143
|
-
const f =
|
|
144
|
-
return
|
|
145
|
+
const f = O(!0);
|
|
146
|
+
return P(f, () => {
|
|
145
147
|
const _ = g.map(
|
|
146
148
|
d,
|
|
147
|
-
(a) => !!a ||
|
|
148
|
-
), h = g.map(
|
|
149
|
-
|
|
149
|
+
(a) => !!a || c != null
|
|
150
|
+
), h = g.map(n, (a) => a ?? "info"), T = g.map(l, (a) => a ?? "subtle"), i = C(
|
|
151
|
+
r,
|
|
150
152
|
h
|
|
151
153
|
)(
|
|
152
154
|
(a, e) => a ?? (e === "danger" ? "alert" : "status")
|
|
153
155
|
);
|
|
154
|
-
return
|
|
155
|
-
|
|
156
|
+
return V(
|
|
157
|
+
x,
|
|
156
158
|
(a) => p.div(
|
|
157
|
-
|
|
159
|
+
t.class(
|
|
158
160
|
C(
|
|
159
161
|
h,
|
|
160
|
-
|
|
162
|
+
T,
|
|
161
163
|
_,
|
|
162
|
-
|
|
163
|
-
)((e, u,
|
|
164
|
+
v
|
|
165
|
+
)((e, u, B, y) => G(e, u, B, y))
|
|
164
166
|
),
|
|
165
167
|
// Accessibility role mapping (always defined)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
+
t.role(g.map(i, (e) => e)),
|
|
169
|
+
M(
|
|
168
170
|
g.map(o, (e) => e === !1),
|
|
169
171
|
() => p.div(
|
|
170
|
-
|
|
172
|
+
t.class("bc-notice__icon"),
|
|
171
173
|
E({
|
|
172
174
|
icon: C(
|
|
173
175
|
o,
|
|
@@ -181,20 +183,20 @@ function X({
|
|
|
181
183
|
)
|
|
182
184
|
),
|
|
183
185
|
p.div(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
t.class("bc-notice__body"),
|
|
187
|
+
R(
|
|
186
188
|
s,
|
|
187
|
-
(e) => p.div(
|
|
189
|
+
(e) => p.div(t.class("bc-notice__title"), e)
|
|
188
190
|
),
|
|
189
|
-
p.div(
|
|
191
|
+
p.div(t.class("bc-notice__content"), ...b)
|
|
190
192
|
),
|
|
191
|
-
|
|
193
|
+
P(
|
|
192
194
|
_,
|
|
193
195
|
() => W({
|
|
194
196
|
size: "xs",
|
|
195
197
|
label: a.$.closeModal,
|
|
196
198
|
onClick: () => {
|
|
197
|
-
f.set(!1),
|
|
199
|
+
f.set(!1), c?.();
|
|
198
200
|
}
|
|
199
201
|
})
|
|
200
202
|
)
|
|
@@ -203,7 +205,7 @@ function X({
|
|
|
203
205
|
});
|
|
204
206
|
}
|
|
205
207
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
208
|
+
X as E,
|
|
209
|
+
Z as N,
|
|
210
|
+
Y as P
|
|
209
211
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const v=require("./text-input-Ds8e7Z1G.cjs"),t=require("@tempots/dom"),V=require("./input-container-C6qEIjcA.cjs"),f=require("./translations-B4-Zd2LM.cjs"),_=require("./use-form-Cnp3XQ5X.cjs"),O=n=>{const r={name:"email",autocomplete:"email",...n},{value:s,before:l,onBlur:o,onChange:p,onInput:c,placeholder:h}=r,m=l??V.InputIcon({icon:"line-md:email",size:n.size,color:"neutral"});return t.Use(f.BeatUII18n,d=>V.InputContainer({...n,before:m,input:t.input.email(v.CommonInputAttributes(r),t.attr.placeholder(t.coalesce(h,d.$.emailPlaceholderText)),t.attr.value(s),t.attr.class("bc-input"),o!=null?t.on.blur(t.emitValue(o)):t.Empty,p!=null?t.on.change(t.emitValue(p)):t.Empty,c!=null?t.on.input(t.emitValue(c)):t.Empty)}))},B=n=>{const{value:r,onBlur:s,onChange:l,onInput:o,before:p,after:c,hasError:h,disabled:m,autocomplete:d,placeholder:I,...b}=n,y={name:"password",disabled:m,...b},i=t.prop(!0),a=t.computedOf(i,d)((e,u)=>e?u??"current-password":"off");return t.Use(f.BeatUII18n,e=>{const u=t.computedOf(e.$.passwordPlaceholderText,i,I)((g,C,E)=>C?"•••••••••••••••":E??g),w=t.html.button(t.attr.type("button"),t.attr.class("bc-input-container__password-toggle"),t.aria.label(e.$.togglePasswordVisibility),t.on.click(()=>i.update(g=>!g)),t.When(i,()=>f.Icon({icon:"line-md:watch"}),()=>f.Icon({icon:"line-md:watch-off"})));return V.InputContainer({before:p,disabled:m,hasError:h,input:t.html.input(v.CommonInputAttributes({...y,autocomplete:a,placeholder:u}),t.When(i,()=>t.Fragment(t.attr.type("password")),()=>t.Fragment(t.attr.type("text"))),t.attr.class("bc-input"),t.attr.value(r),s!=null?t.on.blur(t.emitValue(s)):t.Empty,l!=null?t.on.change(t.emitValue(l)):t.Empty,o!=null?t.on.input(t.emitValue(o)):t.Empty),after:c!=null?t.Fragment(w,c):w})})};function U(n){switch(n){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function P(n){switch(n){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function T(n,r,s,l){const o=["bc-notice",`bc-notice--${n}`,`bc-notice--tone-${r}`];return s&&o.push("bc-notice--dismissible"),l&&l.length>0&&o.push(l),o.join(" ")}function $({variant:n="info",tone:r="subtle",role:s,title:l,icon:o,closable:p=!1,onDismiss:c,class:h},...m){const d=t.prop(!0);return t.When(d,()=>{const I=t.Value.map(p,a=>!!a||c!=null),b=t.Value.map(n,a=>a??"info"),y=t.Value.map(r,a=>a??"subtle"),i=t.computedOf(s,b)((a,e)=>a??(e==="danger"?"alert":"status"));return t.Use(f.BeatUII18n,a=>t.html.div(t.attr.class(t.computedOf(b,y,I,h)((e,u,w,g)=>T(e,u,w,g))),t.attr.role(t.Value.map(i,e=>e)),t.Unless(t.Value.map(o,e=>e===!1),()=>t.html.div(t.attr.class("bc-notice__icon"),f.Icon({icon:t.computedOf(o,b)((e,u)=>e===void 0?U(u):String(e)),size:"md",color:t.Value.map(b,P)}))),t.html.div(t.attr.class("bc-notice__body"),t.Ensure(l,e=>t.html.div(t.attr.class("bc-notice__title"),e)),t.html.div(t.attr.class("bc-notice__content"),...m)),t.When(I,()=>_.CloseButton({size:"xs",label:a.$.closeModal,onClick:()=>{d.set(!1),c?.()}}))))})}exports.EmailInput=O;exports.Notice=$;exports.PasswordInput=B;
|