@tempots/beatui 0.95.0 → 1.0.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.
- package/dist/{ar-BVXPzVJB.cjs → ar-CuI1Jgt6.cjs} +1 -1
- package/dist/{ar-B4jDJwHQ.js → ar-DaKbK_t8.js} +87 -11
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-BPwKk8MW.js → auth-divider-BQIhr3-R.js} +99 -98
- package/dist/auth-divider-DvnUModP.cjs +1 -0
- package/dist/beatui.css +1628 -541
- package/dist/beatui.tailwind.css +1629 -542
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +9 -9
- package/dist/codehighlight/index.cjs.js +22 -0
- package/dist/codehighlight/index.es.js +76 -0
- package/dist/colors-B-p6IzX9.cjs +1 -0
- package/dist/{colors-BY0Ja_bf.js → colors-DwufPN8S.js} +18 -18
- package/dist/{de-Dd33yWzb.js → de-3MTPDS1i.js} +82 -6
- package/dist/{de-BdfPZskW.cjs → de-DthHehbh.cjs} +1 -1
- package/dist/{deep-merge-C8dSqIXI.js → deep-merge-BzIheQtH.js} +511 -517
- package/dist/deep-merge-EkjEgK0N.cjs +1 -0
- package/dist/{duration-input-IuFWywO5.cjs → duration-input-ClgYjeBa.cjs} +1 -1
- package/dist/{duration-input-DFZwkg6M.js → duration-input-DGzmIImj.js} +5 -5
- package/dist/{editor-toolbar-group-DiJFgGcI.js → editor-toolbar-group-Crlu1QJw.js} +3 -3
- package/dist/{editor-toolbar-group-BCBfu8pG.cjs → editor-toolbar-group-mkL4QozO.cjs} +1 -1
- package/dist/es-B6GJLk9h.cjs +1 -0
- package/dist/{es-jHMT3_7O.js → es-DwMUvBeU.js} +94 -18
- package/dist/{fa-eX3_BAZR.js → fa-0rvQiKrJ.js} +87 -11
- package/dist/{fa-BXnP4pbN.cjs → fa-BwgP93iV.cjs} +1 -1
- package/dist/{fr-Bj-GjMJm.js → fr-B4i6NzLl.js} +86 -10
- package/dist/{fr-HJDhGjI2.cjs → fr-CQzk5zqY.cjs} +1 -1
- package/dist/{he-DYgmPPkG.js → he-C71n-hsn.js} +87 -11
- package/dist/{he-C6nEVZhN.cjs → he-DcxxvRfs.cjs} +1 -1
- package/dist/{hi-DMVSXAJt.cjs → hi-D-KHVWg4.cjs} +1 -1
- package/dist/{hi-CgYLonE9.js → hi-xmrXpeVU.js} +87 -11
- package/dist/index-B5MAsOC-.cjs +1 -0
- package/dist/{index-B8cqD9ny.js → index-C3o9GSH6.js} +106 -105
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +8055 -5285
- package/dist/input-container-BvEcp7FU.js +275 -0
- package/dist/input-container-Di1YvVB_.cjs +1 -0
- package/dist/{it-CO2BPqah.js → it-CDZTtOBC.js} +83 -7
- package/dist/{it-DhfVcjKb.cjs → it-D344Dutu.cjs} +1 -1
- package/dist/{ja-Bt6fGS_Q.cjs → ja-BNgnDZ27.cjs} +1 -1
- package/dist/{ja-BrzwjH8T.js → ja-Zz1LzidW.js} +91 -15
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +261 -257
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +2 -2
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +132 -133
- package/dist/{ko-D-lJ4wYQ.js → ko-9laUsZDL.js} +90 -14
- package/dist/{ko-DfAaBGrz.cjs → ko-D-WJ9NK7.cjs} +1 -1
- package/dist/lexical/index.cjs.js +2 -39
- package/dist/lexical/index.es.js +2056 -20626
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +41 -4
- package/dist/{menu-CV85y3Xf.js → menu-B8yoDMRS.js} +23 -23
- package/dist/menu-B92oSDct.cjs +1 -0
- package/dist/modal-BT0jjDqX.cjs +1 -0
- package/dist/{modal-CwZuWiSK.js → modal-DBguyX-b.js} +9 -9
- package/dist/monaco/index.cjs.js +2 -2
- package/dist/monaco/index.es.js +7 -7
- package/dist/{nl-CNWBQjK5.cjs → nl-CrqUlFie.cjs} +1 -1
- package/dist/{nl-ClsworIe.js → nl-Dcll9fVA.js} +86 -10
- package/dist/{notice-D7hYFM5A.js → notice-E19wu9lA.js} +51 -51
- package/dist/notice-_9XhdrFw.cjs +1 -0
- package/dist/oneof-branch-detection-J_DYEEcD.js +1077 -0
- package/dist/oneof-branch-detection-ZUBZ6hqy.cjs +1 -0
- package/dist/{pl-CqHTeu3-.cjs → pl-9UksIrvX.cjs} +1 -1
- package/dist/{pl-WTwLAxnV.js → pl-Dm9N9Gbr.js} +83 -7
- package/dist/prosemirror/index.cjs.js +3 -1
- package/dist/prosemirror/index.es.js +636 -4
- package/dist/{pt-CgkjJnsG.js → pt-CFi5cn0k.js} +88 -12
- package/dist/{pt-BQmsiqbo.cjs → pt-_kfdzwqi.cjs} +1 -1
- package/dist/{ru-CtgH7OY9.js → ru-CEhZUw8R.js} +91 -15
- package/dist/{ru-CG56A2To.cjs → ru-CW1WNNlr.cjs} +1 -1
- package/dist/stack-BLMteGTn.js +15 -0
- package/dist/stack-dwLevGa2.cjs +1 -0
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +2 -2
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/text-input-DfqXolVe.js +55 -0
- package/dist/text-input-X_q01NsY.cjs +1 -0
- package/dist/toolbar-DY0ax2Qd.js +130 -0
- package/dist/toolbar-DoKdYXIL.cjs +1 -0
- package/dist/{tr-DE7_VtKu.cjs → tr-B6GIRegf.cjs} +1 -1
- package/dist/{tr-D1O1vEmr.js → tr-ZmnVDhLP.js} +81 -5
- package/dist/{translations-yu4gNqlP.js → translations-A4kR7CW8.js} +1 -1
- package/dist/{translations-DyCmyLE_.js → translations-B1_yyDUK.js} +207 -129
- package/dist/{translations-DBxIjvWR.cjs → translations-C81buKAw.cjs} +1 -1
- package/dist/translations-Dbx7L7Q1.cjs +1 -0
- package/dist/types/beatui-i18n/default.d.ts +71 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +71 -0
- package/dist/types/beatui-i18n/translations.d.ts +71 -0
- package/dist/types/codehighlight/code-highlight.d.ts +21 -0
- package/dist/types/codehighlight/index.d.ts +14 -0
- package/dist/types/components/button/toggle-button.d.ts +4 -4
- package/dist/types/components/data/avatar.d.ts +3 -1
- package/dist/types/components/data/badge.d.ts +10 -18
- package/dist/types/components/data/column-filter-panel.d.ts +31 -0
- package/dist/types/components/data/column-filter.d.ts +110 -0
- package/dist/types/components/data/column-header-menu.d.ts +42 -0
- package/dist/types/components/data/data-source.d.ts +190 -0
- package/dist/types/components/data/data-table-body.d.ts +12 -0
- package/dist/types/components/data/data-table-column-toggle.d.ts +4 -0
- package/dist/types/components/data/data-table-context.d.ts +53 -0
- package/dist/types/components/data/data-table-header.d.ts +6 -0
- package/dist/types/components/data/data-table-resolve.d.ts +26 -0
- package/dist/types/components/data/data-table-types.d.ts +201 -0
- package/dist/types/components/data/data-table.d.ts +38 -0
- package/dist/types/components/data/data-toolbar.d.ts +44 -0
- package/dist/types/components/data/date-picker-shared.d.ts +55 -0
- package/dist/types/components/data/date-picker.d.ts +58 -0
- package/dist/types/components/data/date-range-picker.d.ts +56 -0
- package/dist/types/components/data/filter.d.ts +268 -0
- package/dist/types/components/data/index.d.ts +13 -4
- package/dist/types/components/data/indicator.d.ts +41 -0
- package/dist/types/components/data/progress-bar.d.ts +2 -2
- package/dist/types/components/data/selection-checkbox.d.ts +63 -0
- package/dist/types/components/data/skeleton.d.ts +1 -1
- package/dist/types/components/data/sortable-header.d.ts +55 -0
- package/dist/types/components/data/unstyled-drop-zone.d.ts +2 -2
- package/dist/types/components/form/control/control.d.ts +9 -9
- package/dist/types/components/form/input/advanced-slider.d.ts +6 -6
- package/dist/types/components/form/input/appearance-selector.d.ts +9 -2
- package/dist/types/components/form/input/checkbox-input.d.ts +6 -7
- package/dist/types/components/form/input/color-input.d.ts +1 -1
- package/dist/types/components/form/input/color-swatch-input.d.ts +3 -3
- package/dist/types/components/form/input/combobox-input.d.ts +5 -5
- package/dist/types/components/form/input/combobox-tags-input.d.ts +5 -5
- package/dist/types/components/form/input/create-nullable-string-input.d.ts +2 -2
- package/dist/types/components/form/input/date-input.d.ts +4 -4
- package/dist/types/components/form/input/dropdown-input.d.ts +5 -5
- package/dist/types/components/form/input/editable-text.d.ts +2 -2
- package/dist/types/components/form/input/email-input.d.ts +4 -4
- package/dist/types/components/form/input/index.d.ts +1 -0
- package/dist/types/components/form/input/input-container.d.ts +1 -1
- package/dist/types/components/form/input/input-options.d.ts +28 -1
- package/dist/types/components/form/input/mask-input.d.ts +8 -2
- package/dist/types/components/form/input/native-select.d.ts +3 -3
- package/dist/types/components/form/input/nullable-date-input.d.ts +2 -2
- package/dist/types/components/form/input/nullable-email-input.d.ts +3 -3
- package/dist/types/components/form/input/nullable-rating-input.d.ts +8 -8
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +4 -4
- package/dist/types/components/form/input/number-input.d.ts +3 -3
- package/dist/types/components/form/input/otp-input.d.ts +12 -12
- package/dist/types/components/form/input/rating-input.d.ts +7 -8
- package/dist/types/components/form/input/select-tags-input.d.ts +5 -5
- package/dist/types/components/form/input/switch.d.ts +2 -2
- package/dist/types/components/form/input/tri-state-checkbox-input.d.ts +82 -0
- package/dist/types/components/form/input/uuid-input.d.ts +2 -2
- package/dist/types/components/json-structure/controls/uuid-control.d.ts +1 -1
- package/dist/types/components/layout/card.d.ts +66 -0
- package/dist/types/components/layout/collapse.d.ts +2 -2
- package/dist/types/components/layout/flex.d.ts +26 -0
- package/dist/types/components/layout/index.d.ts +1 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +2 -2
- package/dist/types/components/media/pdf-page-viewer.d.ts +8 -5
- package/dist/types/components/misc/index.d.ts +1 -0
- package/dist/types/components/misc/loading-overlay.d.ts +29 -0
- package/dist/types/components/misc/notice.d.ts +4 -4
- package/dist/types/components/misc/notification-provider.d.ts +9 -3
- package/dist/types/components/misc/notification.d.ts +9 -9
- package/dist/types/components/navigation/breadcrumbs.d.ts +1 -1
- package/dist/types/components/navigation/menu.d.ts +6 -6
- package/dist/types/components/navigation/pagination.d.ts +17 -4
- package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +2 -2
- package/dist/types/components/navigation/tabs/tabs.d.ts +17 -8
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +12 -6
- package/dist/types/components/overlay/announcement-bar.d.ts +12 -4
- package/dist/types/components/overlay/dialogs.d.ts +2 -2
- package/dist/types/components/overlay/modal.d.ts +9 -2
- package/dist/types/components/overlay/tooltip.d.ts +6 -6
- package/dist/types/components/theme/types.d.ts +15 -4
- package/dist/types/lexical/plugins/slash-commands.d.ts +1 -1
- package/dist/types/tokens/z-index.d.ts +18 -18
- package/dist/types/utils/use-animated-toggle.d.ts +12 -4
- package/dist/{ur-ZJgsSpG2.cjs → ur-CtFl_tz6.cjs} +1 -1
- package/dist/{ur-BcuB7IqE.js → ur-yYgj3NmT.js} +87 -11
- package/dist/use-animated-toggle-C3asw_Sg.js +207 -0
- package/dist/use-animated-toggle-cKcuItmz.cjs +1 -0
- package/dist/use-form-CaW192gw.cjs +2 -0
- package/dist/{use-form-CfxvyTfd.js → use-form-Dn6v2tEh.js} +153 -152
- package/dist/utils-DmEuG3Np.cjs +1 -0
- package/dist/utils-vUtP6iPG.js +165 -0
- package/dist/{vi-D0rQ3dIx.js → vi-D5u4CLQO.js} +88 -12
- package/dist/{vi-BOgLRkuK.cjs → vi-DyCZSpsk.cjs} +1 -1
- package/dist/widget-customization-DgW1SXN6.cjs +1 -0
- package/dist/{widget-customization-CLZNGavL.js → widget-customization-Dkx7kNSe.js} +413 -398
- package/dist/{zh-DoYqiZO1.js → zh-B0kwMMer.js} +90 -14
- package/dist/{zh-BTZ8OZ4H.cjs → zh-C3ZxMQKb.cjs} +1 -1
- package/package.json +208 -37
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/auth-divider-BgaQ8ifw.cjs +0 -1
- package/dist/colors-BI0YhONJ.cjs +0 -1
- package/dist/deep-merge-ChJQbUKq.cjs +0 -1
- package/dist/es-C8TpneCm.cjs +0 -1
- package/dist/hls.light.min-C6xKDzRR.cjs +0 -27
- package/dist/hls.light.min-hEMf_E8u.js +0 -8311
- package/dist/index-1JaBwDB-.js +0 -921
- package/dist/index-CN10Cyqr.cjs +0 -1
- package/dist/index-CTcbhnPw.cjs +0 -4
- package/dist/index-DF7RFzD9.cjs +0 -1
- package/dist/index-D_zOXmU5.cjs +0 -36
- package/dist/index-DfPkCwdC.js +0 -2709
- package/dist/index-vowHNIPH.js +0 -14308
- package/dist/index-yOU4Ceaq.js +0 -68
- package/dist/index-zQ3IYJFH.cjs +0 -1
- package/dist/input-container-BWYHj0Iq.cjs +0 -1
- package/dist/input-container-DMoVdH6E.js +0 -263
- package/dist/menu-De_-sGeb.cjs +0 -1
- package/dist/modal-CiGmgsOI.cjs +0 -1
- package/dist/notice-CPZQuxcA.cjs +0 -1
- package/dist/oneof-branch-detection-BFxukD63.cjs +0 -8
- package/dist/oneof-branch-detection-izpPjBCR.js +0 -6290
- package/dist/stack-4VUGISn6.cjs +0 -1
- package/dist/stack-Bm-UZosx.js +0 -879
- package/dist/string-B9vVyfq3.cjs +0 -1
- package/dist/string-DYyMxBl-.js +0 -19
- package/dist/text-input-BLupB3cU.js +0 -45
- package/dist/text-input-M6WBhhVj.cjs +0 -1
- package/dist/timer-BJHOsuS6.cjs +0 -1
- package/dist/timer-Rd2sKnvH.js +0 -65
- package/dist/toolbar-Be1eU0qU.js +0 -118
- package/dist/toolbar-WWv5kcYG.cjs +0 -1
- package/dist/translations-OOsMRpX9.cjs +0 -1
- package/dist/types/components/data/calendar-shared.d.ts +0 -59
- package/dist/types/components/data/calendar.d.ts +0 -107
- package/dist/types/components/data/icon-badge.d.ts +0 -14
- package/dist/types/components/data/range-calendar.d.ts +0 -104
- package/dist/types/components/data/tag.d.ts +0 -51
- package/dist/use-animated-toggle-C7PTmnZi.js +0 -195
- package/dist/use-animated-toggle-DrqK7nUS.cjs +0 -1
- package/dist/use-form-ClA0ZRco.cjs +0 -2
- package/dist/utils-DEbsp9Q9.js +0 -129
- package/dist/utils-DIUEhA-Z.cjs +0 -1
- package/dist/widget-customization-DtEEo35Y.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { Use as
|
|
3
|
-
import { a as
|
|
4
|
-
import { B as
|
|
5
|
-
import { C as
|
|
1
|
+
import { C as z } from "./text-input-DfqXolVe.js";
|
|
2
|
+
import { Use as V, input as U, attr as t, coalesce as j, Empty as w, on as m, emitValue as v, prop as E, computedOf as _, html as p, aria as A, When as P, Fragment as D, Value as g, Unless as F, Ensure as M } from "@tempots/dom";
|
|
3
|
+
import { a as R, I as N } from "./input-container-BvEcp7FU.js";
|
|
4
|
+
import { B as x, I as $ } from "./translations-B1_yyDUK.js";
|
|
5
|
+
import { C as S } from "./use-form-Dn6v2tEh.js";
|
|
6
6
|
const X = (n) => {
|
|
7
7
|
const l = {
|
|
8
8
|
name: "email",
|
|
@@ -14,25 +14,25 @@ const X = (n) => {
|
|
|
14
14
|
onBlur: o,
|
|
15
15
|
onChange: d,
|
|
16
16
|
onInput: c,
|
|
17
|
-
placeholder:
|
|
18
|
-
} = l, b = s ??
|
|
17
|
+
placeholder: I
|
|
18
|
+
} = l, b = s ?? R({
|
|
19
19
|
icon: "line-md:email",
|
|
20
20
|
size: n.size,
|
|
21
21
|
color: "neutral"
|
|
22
22
|
});
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
(f) =>
|
|
23
|
+
return V(
|
|
24
|
+
x,
|
|
25
|
+
(f) => N({
|
|
26
26
|
...n,
|
|
27
27
|
before: b,
|
|
28
28
|
input: U.email(
|
|
29
|
-
|
|
30
|
-
t.placeholder(j(
|
|
29
|
+
z(l),
|
|
30
|
+
t.placeholder(j(I, f.$.emailPlaceholderText)),
|
|
31
31
|
t.value(r),
|
|
32
32
|
t.class("bc-input"),
|
|
33
|
-
o != null ? m.blur(
|
|
34
|
-
d != null ? m.change(
|
|
35
|
-
c != null ? m.input(
|
|
33
|
+
o != null ? m.blur(v(o)) : w,
|
|
34
|
+
d != null ? m.change(v(d)) : w,
|
|
35
|
+
c != null ? m.input(v(c)) : w
|
|
36
36
|
)
|
|
37
37
|
})
|
|
38
38
|
);
|
|
@@ -44,25 +44,25 @@ const X = (n) => {
|
|
|
44
44
|
onInput: o,
|
|
45
45
|
before: d,
|
|
46
46
|
after: c,
|
|
47
|
-
hasError:
|
|
47
|
+
hasError: I,
|
|
48
48
|
disabled: b,
|
|
49
49
|
autocomplete: f,
|
|
50
|
-
placeholder:
|
|
50
|
+
placeholder: C,
|
|
51
51
|
...h
|
|
52
52
|
} = n, T = {
|
|
53
53
|
name: "password",
|
|
54
54
|
disabled: b,
|
|
55
55
|
...h
|
|
56
|
-
}, i =
|
|
56
|
+
}, i = E(!0), a = _(
|
|
57
57
|
i,
|
|
58
58
|
f
|
|
59
59
|
)((e, u) => e ? u ?? "current-password" : "off");
|
|
60
|
-
return
|
|
61
|
-
const u =
|
|
60
|
+
return V(x, (e) => {
|
|
61
|
+
const u = _(
|
|
62
62
|
e.$.passwordPlaceholderText,
|
|
63
63
|
i,
|
|
64
|
-
|
|
65
|
-
)((y,
|
|
64
|
+
C
|
|
65
|
+
)((y, O, k) => O ? "•••••••••••••••" : k ?? y), B = p.button(
|
|
66
66
|
t.type("button"),
|
|
67
67
|
t.class("bc-input-container__password-toggle"),
|
|
68
68
|
A.label(e.$.togglePasswordVisibility),
|
|
@@ -73,12 +73,12 @@ const X = (n) => {
|
|
|
73
73
|
() => $({ icon: "line-md:watch-off" })
|
|
74
74
|
)
|
|
75
75
|
);
|
|
76
|
-
return
|
|
76
|
+
return N({
|
|
77
77
|
before: d,
|
|
78
78
|
disabled: b,
|
|
79
|
-
hasError:
|
|
79
|
+
hasError: I,
|
|
80
80
|
input: p.input(
|
|
81
|
-
|
|
81
|
+
z({
|
|
82
82
|
...T,
|
|
83
83
|
autocomplete: a,
|
|
84
84
|
placeholder: u
|
|
@@ -90,15 +90,15 @@ const X = (n) => {
|
|
|
90
90
|
),
|
|
91
91
|
t.class("bc-input"),
|
|
92
92
|
t.value(l),
|
|
93
|
-
r != null ? m.blur(
|
|
94
|
-
s != null ? m.change(
|
|
95
|
-
o != null ? m.input(
|
|
93
|
+
r != null ? m.blur(v(r)) : w,
|
|
94
|
+
s != null ? m.change(v(s)) : w,
|
|
95
|
+
o != null ? m.input(v(o)) : w
|
|
96
96
|
),
|
|
97
|
-
after: c != null ?
|
|
97
|
+
after: c != null ? D(B, c) : B
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
|
-
function
|
|
101
|
+
function W(n) {
|
|
102
102
|
switch (n) {
|
|
103
103
|
case "success":
|
|
104
104
|
return "material-symbols:check-circle-outline";
|
|
@@ -110,7 +110,7 @@ function q(n) {
|
|
|
110
110
|
return "material-symbols:info-outline";
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function q(n) {
|
|
114
114
|
switch (n) {
|
|
115
115
|
case "success":
|
|
116
116
|
return "success";
|
|
@@ -137,60 +137,60 @@ function Z({
|
|
|
137
137
|
title: s,
|
|
138
138
|
icon: o,
|
|
139
139
|
closable: d = !1,
|
|
140
|
-
|
|
141
|
-
class:
|
|
140
|
+
onClose: c,
|
|
141
|
+
class: I
|
|
142
142
|
}, ...b) {
|
|
143
|
-
const f =
|
|
143
|
+
const f = E(!0);
|
|
144
144
|
return P(f, () => {
|
|
145
|
-
const
|
|
145
|
+
const C = g.map(
|
|
146
146
|
d,
|
|
147
147
|
(a) => !!a || c != null
|
|
148
|
-
), h = g.map(n, (a) => a ?? "info"), T = g.map(l, (a) => a ?? "subtle"), i =
|
|
148
|
+
), h = g.map(n, (a) => a ?? "info"), T = g.map(l, (a) => a ?? "subtle"), i = _(
|
|
149
149
|
r,
|
|
150
150
|
h
|
|
151
151
|
)(
|
|
152
152
|
(a, e) => a ?? (e === "danger" ? "alert" : "status")
|
|
153
153
|
);
|
|
154
|
-
return
|
|
155
|
-
|
|
154
|
+
return V(
|
|
155
|
+
x,
|
|
156
156
|
(a) => p.div(
|
|
157
157
|
t.class(
|
|
158
|
-
|
|
158
|
+
_(
|
|
159
159
|
h,
|
|
160
160
|
T,
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
C,
|
|
162
|
+
I
|
|
163
163
|
)((e, u, B, y) => G(e, u, B, y))
|
|
164
164
|
),
|
|
165
165
|
// Accessibility role mapping (always defined)
|
|
166
166
|
t.role(g.map(i, (e) => e)),
|
|
167
|
-
|
|
167
|
+
F(
|
|
168
168
|
g.map(o, (e) => e === !1),
|
|
169
169
|
() => p.div(
|
|
170
170
|
t.class("bc-notice__icon"),
|
|
171
171
|
$({
|
|
172
|
-
icon:
|
|
172
|
+
icon: _(
|
|
173
173
|
o,
|
|
174
174
|
h
|
|
175
175
|
)(
|
|
176
|
-
(e, u) => e === void 0 ?
|
|
176
|
+
(e, u) => e === void 0 ? W(u) : String(e)
|
|
177
177
|
),
|
|
178
178
|
size: "md",
|
|
179
|
-
color: g.map(h,
|
|
179
|
+
color: g.map(h, q)
|
|
180
180
|
})
|
|
181
181
|
)
|
|
182
182
|
),
|
|
183
183
|
p.div(
|
|
184
184
|
t.class("bc-notice__body"),
|
|
185
|
-
|
|
185
|
+
M(
|
|
186
186
|
s,
|
|
187
187
|
(e) => p.div(t.class("bc-notice__title"), e)
|
|
188
188
|
),
|
|
189
189
|
p.div(t.class("bc-notice__content"), ...b)
|
|
190
190
|
),
|
|
191
191
|
P(
|
|
192
|
-
|
|
193
|
-
() =>
|
|
192
|
+
C,
|
|
193
|
+
() => S({
|
|
194
194
|
size: "xs",
|
|
195
195
|
label: a.$.closeModal,
|
|
196
196
|
onClick: () => {
|
|
@@ -203,7 +203,7 @@ function Z({
|
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
export {
|
|
206
|
-
X as
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
X as N,
|
|
207
|
+
Y as P,
|
|
208
|
+
Z as a
|
|
209
209
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const V=require("./text-input-X_q01NsY.cjs"),t=require("@tempots/dom"),y=require("./input-container-Di1YvVB_.cjs"),f=require("./translations-Dbx7L7Q1.cjs"),_=require("./use-form-CaW192gw.cjs"),O=n=>{const l={name:"email",autocomplete:"email",...n},{value:r,before:s,onBlur:a,onChange:p,onInput:c,placeholder:h}=l,m=s??y.InputIcon({icon:"line-md:email",size:n.size,color:"neutral"});return t.Use(f.BeatUII18n,d=>y.InputContainer({...n,before:m,input:t.input.email(V.CommonInputAttributes(l),t.attr.placeholder(t.coalesce(h,d.$.emailPlaceholderText)),t.attr.value(r),t.attr.class("bc-input"),a!=null?t.on.blur(t.emitValue(a)):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:l,onBlur:r,onChange:s,onInput:a,before:p,after:c,hasError:h,disabled:m,autocomplete:d,placeholder:g,...b}=n,v={name:"password",disabled:m,...b},i=t.prop(!0),o=t.computedOf(i,d)((e,u)=>e?u??"current-password":"off");return t.Use(f.BeatUII18n,e=>{const u=t.computedOf(e.$.passwordPlaceholderText,i,g)((I,C,E)=>C?"•••••••••••••••":E??I),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(I=>!I)),t.When(i,()=>f.Icon({icon:"line-md:watch"}),()=>f.Icon({icon:"line-md:watch-off"})));return y.InputContainer({before:p,disabled:m,hasError:h,input:t.html.input(V.CommonInputAttributes({...v,autocomplete:o,placeholder:u}),t.When(i,()=>t.attr.type("password"),()=>t.attr.type("text")),t.attr.class("bc-input"),t.attr.value(l),r!=null?t.on.blur(t.emitValue(r)):t.Empty,s!=null?t.on.change(t.emitValue(s)):t.Empty,a!=null?t.on.input(t.emitValue(a)):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";default:return"material-symbols:info-outline"}}function P(n){switch(n){case"success":return"success";case"warning":return"warning";case"danger":return"danger";default:return"info"}}function T(n,l,r,s){const a=["bc-notice",`bc-notice--${n}`,`bc-notice--tone-${l}`];return r&&a.push("bc-notice--dismissible"),s&&s.length>0&&a.push(s),a.join(" ")}function $({variant:n="info",tone:l="subtle",role:r,title:s,icon:a,closable:p=!1,onClose:c,class:h},...m){const d=t.prop(!0);return t.When(d,()=>{const g=t.Value.map(p,o=>!!o||c!=null),b=t.Value.map(n,o=>o??"info"),v=t.Value.map(l,o=>o??"subtle"),i=t.computedOf(r,b)((o,e)=>o??(e==="danger"?"alert":"status"));return t.Use(f.BeatUII18n,o=>t.html.div(t.attr.class(t.computedOf(b,v,g,h)((e,u,w,I)=>T(e,u,w,I))),t.attr.role(t.Value.map(i,e=>e)),t.Unless(t.Value.map(a,e=>e===!1),()=>t.html.div(t.attr.class("bc-notice__icon"),f.Icon({icon:t.computedOf(a,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(s,e=>t.html.div(t.attr.class("bc-notice__title"),e)),t.html.div(t.attr.class("bc-notice__content"),...m)),t.When(g,()=>_.CloseButton({size:"xs",label:o.$.closeModal,onClick:()=>{d.set(!1),c?.()}}))))})}exports.NativeEmailInput=O;exports.Notice=$;exports.PasswordInput=B;
|