@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
package/dist/index-yOU4Ceaq.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { R as $, S as x, F as u, N as I, l as S, c as w, f as R, a as L } from "./index-vowHNIPH.js";
|
|
2
|
-
function b(d, t = null) {
|
|
3
|
-
return function(e, n) {
|
|
4
|
-
let { $from: o, $to: l } = e.selection, f = o.blockRange(l);
|
|
5
|
-
if (!f)
|
|
6
|
-
return !1;
|
|
7
|
-
let i = n ? e.tr : null;
|
|
8
|
-
return v(i, f, d, t) ? (n && n(i.scrollIntoView()), !0) : !1;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function v(d, t, e, n = null) {
|
|
12
|
-
let o = !1, l = t, f = t.$from.doc;
|
|
13
|
-
if (t.depth >= 2 && t.$from.node(t.depth - 1).type.compatibleContent(e) && t.startIndex == 0) {
|
|
14
|
-
if (t.$from.index(t.depth - 1) == 0)
|
|
15
|
-
return !1;
|
|
16
|
-
let r = f.resolve(t.start - 2);
|
|
17
|
-
l = new I(r, r, t.depth), t.endIndex < t.parent.childCount && (t = new I(t.$from, f.resolve(t.$to.end(t.depth)), t.depth)), o = !0;
|
|
18
|
-
}
|
|
19
|
-
let i = R(l, e, n, t);
|
|
20
|
-
return i ? (d && C(d, t, i, o, e), !0) : !1;
|
|
21
|
-
}
|
|
22
|
-
function C(d, t, e, n, o) {
|
|
23
|
-
let l = u.empty;
|
|
24
|
-
for (let s = e.length - 1; s >= 0; s--)
|
|
25
|
-
l = u.from(e[s].type.create(e[s].attrs, l));
|
|
26
|
-
d.step(new $(t.start - (n ? 2 : 0), t.end, t.start, t.end, new x(l, 0, 0), e.length, !0));
|
|
27
|
-
let f = 0;
|
|
28
|
-
for (let s = 0; s < e.length; s++)
|
|
29
|
-
e[s].type == o && (f = s + 1);
|
|
30
|
-
let i = e.length - f, r = t.start + e.length - (n ? 2 : 0), m = t.parent;
|
|
31
|
-
for (let s = t.startIndex, p = t.endIndex, c = !0; s < p; s++, c = !1)
|
|
32
|
-
!c && L(d.doc, r, i) && (d.split(r, i), r += 2 * i), r += m.child(s).nodeSize;
|
|
33
|
-
return d;
|
|
34
|
-
}
|
|
35
|
-
function V(d) {
|
|
36
|
-
return function(t, e) {
|
|
37
|
-
let { $from: n, $to: o } = t.selection, l = n.blockRange(o, (f) => f.childCount > 0 && f.firstChild.type == d);
|
|
38
|
-
return l ? e ? n.node(l.depth - 1).type == d ? z(t, e, d, l) : A(t, e, l) : !0 : !1;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function z(d, t, e, n) {
|
|
42
|
-
let o = d.tr, l = n.end, f = n.$to.end(n.depth);
|
|
43
|
-
l < f && (o.step(new $(l - 1, f, l, f, new x(u.from(e.create(null, n.parent.copy())), 1, 0), 1, !0)), n = new I(o.doc.resolve(n.$from.pos), o.doc.resolve(f), n.depth));
|
|
44
|
-
const i = S(n);
|
|
45
|
-
if (i == null)
|
|
46
|
-
return !1;
|
|
47
|
-
o.lift(n, i);
|
|
48
|
-
let r = o.doc.resolve(o.mapping.map(l, -1) - 1);
|
|
49
|
-
return w(o.doc, r.pos) && r.nodeBefore.type == r.nodeAfter.type && o.join(r.pos), t(o.scrollIntoView()), !0;
|
|
50
|
-
}
|
|
51
|
-
function A(d, t, e) {
|
|
52
|
-
let n = d.tr, o = e.parent;
|
|
53
|
-
for (let h = e.end, a = e.endIndex - 1, y = e.startIndex; a > y; a--)
|
|
54
|
-
h -= o.child(a).nodeSize, n.delete(h - 1, h + 1);
|
|
55
|
-
let l = n.doc.resolve(e.start), f = l.nodeAfter;
|
|
56
|
-
if (n.mapping.map(e.end) != e.start + l.nodeAfter.nodeSize)
|
|
57
|
-
return !1;
|
|
58
|
-
let i = e.startIndex == 0, r = e.endIndex == o.childCount, m = l.node(-1), s = l.index(-1);
|
|
59
|
-
if (!m.canReplace(s + (i ? 0 : 1), s + 1, f.content.append(r ? u.empty : u.from(o))))
|
|
60
|
-
return !1;
|
|
61
|
-
let p = l.pos, c = p + f.nodeSize;
|
|
62
|
-
return n.step(new $(p - (i ? 1 : 0), c + (r ? 1 : 0), p + 1, c - 1, new x((i ? u.empty : u.from(o.copy(u.empty))).append(r ? u.empty : u.from(o.copy(u.empty))), i ? 0 : 1, r ? 0 : 1), i ? 0 : 1)), t(n.scrollIntoView()), !0;
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
65
|
-
V as liftListItem,
|
|
66
|
-
b as wrapInList,
|
|
67
|
-
v as wrapRangeInList
|
|
68
|
-
};
|
package/dist/index-zQ3IYJFH.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-D_zOXmU5.cjs");function S(f,t=null){return function(e,n){let{$from:o,$to:l}=e.selection,i=o.blockRange(l);if(!i)return!1;let d=n?e.tr:null;return h(d,i,f,t)?(n&&n(d.scrollIntoView()),!0):!1}}function h(f,t,e,n=null){let o=!1,l=t,i=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(e)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let u=i.resolve(t.start-2);l=new r.NodeRange(u,u,t.depth),t.endIndex<t.parent.childCount&&(t=new r.NodeRange(t.$from,i.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let d=r.findWrapping(l,e,n,t);return d?(f&&$(f,t,d,o,e),!0):!1}function $(f,t,e,n,o){let l=r.Fragment.empty;for(let p=e.length-1;p>=0;p--)l=r.Fragment.from(e[p].type.create(e[p].attrs,l));f.step(new r.ReplaceAroundStep(t.start-(n?2:0),t.end,t.start,t.end,new r.Slice(l,0,0),e.length,!0));let i=0;for(let p=0;p<e.length;p++)e[p].type==o&&(i=p+1);let d=e.length-i,u=t.start+e.length-(n?2:0),m=t.parent;for(let p=t.startIndex,s=t.endIndex,c=!0;p<s;p++,c=!1)!c&&r.canSplit(f.doc,u,d)&&(f.split(u,d),u+=2*d),u+=m.child(p).nodeSize;return f}function R(f){return function(t,e){let{$from:n,$to:o}=t.selection,l=n.blockRange(o,i=>i.childCount>0&&i.firstChild.type==f);return l?e?n.node(l.depth-1).type==f?x(t,e,f,l):F(t,e,l):!0:!1}}function x(f,t,e,n){let o=f.tr,l=n.end,i=n.$to.end(n.depth);l<i&&(o.step(new r.ReplaceAroundStep(l-1,i,l,i,new r.Slice(r.Fragment.from(e.create(null,n.parent.copy())),1,0),1,!0)),n=new r.NodeRange(o.doc.resolve(n.$from.pos),o.doc.resolve(i),n.depth));const d=r.liftTarget(n);if(d==null)return!1;o.lift(n,d);let u=o.doc.resolve(o.mapping.map(l,-1)-1);return r.canJoin(o.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&o.join(u.pos),t(o.scrollIntoView()),!0}function F(f,t,e){let n=f.tr,o=e.parent;for(let a=e.end,I=e.endIndex-1,y=e.startIndex;I>y;I--)a-=o.child(I).nodeSize,n.delete(a-1,a+1);let l=n.doc.resolve(e.start),i=l.nodeAfter;if(n.mapping.map(e.end)!=e.start+l.nodeAfter.nodeSize)return!1;let d=e.startIndex==0,u=e.endIndex==o.childCount,m=l.node(-1),p=l.index(-1);if(!m.canReplace(p+(d?0:1),p+1,i.content.append(u?r.Fragment.empty:r.Fragment.from(o))))return!1;let s=l.pos,c=s+i.nodeSize;return n.step(new r.ReplaceAroundStep(s-(d?1:0),c+(u?1:0),s+1,c-1,new r.Slice((d?r.Fragment.empty:r.Fragment.from(o.copy(r.Fragment.empty))).append(u?r.Fragment.empty:r.Fragment.from(o.copy(r.Fragment.empty))),d?0:1,u?0:1),d?0:1)),t(n.scrollIntoView()),!0}exports.liftListItem=R;exports.wrapInList=S;exports.wrapRangeInList=h;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("@tempots/dom"),n=require("./translations-OOsMRpX9.cjs"),m=require("@tempots/ui");function f(l,o,r,t){const d=["bc-button",`bc-button--size-${l}`,`bc-control--padding-${l}`,`bc-control--rounded-${o}`];return r&&d.push("bc-button--loading"),t&&d.push("bc-button--full-width"),d.join(" ")}function C(l,o,r){const t=new Map;t.set("--button-text-shadow","var(--text-shadow-none)"),t.set("--button-text-shadow-dark","var(--text-shadow-none)");const d=(s,u,b,i)=>{r||(t.set("--button-bg-hover",s),t.set("--button-text-hover",b),t.set("--button-bg-hover-dark",u),t.set("--button-text-hover-dark",i))};switch(l){case"filled":{const s=n.backgroundValue(o,"solid","light"),u=n.backgroundValue(o,"solid","dark");t.set("--button-bg",s.backgroundColor),t.set("--button-text",s.textColor),t.set("--button-bg-dark",u.backgroundColor),t.set("--button-text-dark",u.textColor),t.set("--button-text-shadow","var(--text-shadow-button-filled, var(--text-shadow-sm))"),t.set("--button-text-shadow-dark","var(--text-shadow-button-filled, var(--text-shadow-sm))");const b=n.hoverBackgroundValue(o,"solid","light"),i=n.hoverBackgroundValue(o,"solid","dark");d(b.backgroundColor,i.backgroundColor,b.textColor,i.textColor);break}case"light":{const s=n.backgroundValue(o,"light","light"),u=n.backgroundValue(o,"light","dark");t.set("--button-bg",s.backgroundColor),t.set("--button-text",s.textColor),t.set("--button-bg-dark",u.backgroundColor),t.set("--button-text-dark",u.textColor);const b=n.hoverBackgroundValue(o,"light","light"),i=n.hoverBackgroundValue(o,"light","dark");d(b.backgroundColor,i.backgroundColor,b.textColor,i.textColor);break}case"outline":{t.set("--button-bg","transparent"),t.set("--button-bg-dark","transparent"),t.set("--button-border",n.borderColorValue(o,"light")),t.set("--button-border-dark",n.borderColorValue(o,"dark")),t.set("--button-text",n.textColorValue(o,"light")),t.set("--button-text-dark",n.textColorValue(o,"dark")),t.set("--button-text-shadow","var(--text-shadow-button-light, var(--text-shadow-xs))"),t.set("--button-text-shadow-dark","var(--text-shadow-button-light, var(--text-shadow-xs))");const s=n.hoverBackgroundValue(o,"light","light"),u=n.hoverBackgroundValue(o,"light","dark");d(s.backgroundColor,u.backgroundColor,s.textColor,u.textColor);break}case"dashed":{t.set("--button-bg","transparent"),t.set("--button-bg-dark","transparent"),t.set("--button-border",n.borderColorValue(o,"light")),t.set("--button-border-dark",n.borderColorValue(o,"dark")),t.set("--button-border-style","dashed"),t.set("--button-text",n.textColorValue(o,"light")),t.set("--button-text-dark",n.textColorValue(o,"dark"));const s=n.hoverBackgroundValue(o,"light","light"),u=n.hoverBackgroundValue(o,"light","dark");d(s.backgroundColor,u.backgroundColor,s.textColor,u.textColor);break}case"default":{const s=n.backgroundValue("neutral","light","light"),u=n.backgroundValue("neutral","light","dark");t.set("--button-bg",s.backgroundColor),t.set("--button-text",n.textColorValue(o,"light")),t.set("--button-bg-dark",u.backgroundColor),t.set("--button-text-dark",n.textColorValue(o,"dark")),t.set("--button-text-shadow","var(--text-shadow-button-default, var(--text-shadow-2xs))"),t.set("--button-text-shadow-dark","var(--text-shadow-button-default, var(--text-shadow-2xs))");const b=n.hoverBackgroundValue("base","light","light"),i=n.hoverBackgroundValue("base","light","dark");d(b.backgroundColor,i.backgroundColor,t.get("--button-text")??s.textColor,t.get("--button-text-dark")??u.textColor);break}case"text":{t.set("--button-bg","transparent"),t.set("--button-bg-dark","transparent"),t.set("--button-text",n.textColorValue(o,"light")),t.set("--button-text-dark",n.textColorValue(o,"dark")),r||t.set("--button-hover-decoration","underline");break}}return Array.from(t.entries()).map(([s,u])=>`${s}: ${u}`).join("; ")}function V({type:l="button",disabled:o=!1,loading:r=!1,variant:t="filled",size:d="md",color:s="base",roundedness:u="sm",onClick:b=()=>{},fullWidth:i=!1,stopPropagation:k=!0},...x){const h=e.prop(null);return e.Use(n.BeatUII18n,g=>e.html.button(e.attr.type(l),e.attr.disabled(e.computedOf(o,r)((a,c)=>a||c)),e.aria.busy(r??!1),e.When(r??!1,()=>e.aria.label(g.$.loadingExtended)),e.attr.class(e.computedOf(d,u,r,i)(f)),e.attr.style(e.computedOf(t,s,o)(C)),e.When(r??!1,()=>e.Fragment(e.style.width(h.map(a=>a==null?"":`${a.width}px`)),e.style.height(h.map(a=>a==null?"":`${a.height}px`)),n.Icon({icon:"line-md:loading-twotone-loop",size:d??"md"}),e.html.span(e.attr.class("sr-only"),e.aria.live("polite"),g.$.loadingExtended)),()=>e.Fragment(e.on.click(a=>{l!=="submit"&&a.preventDefault(),k&&a.stopPropagation(),b()}),...x)),e.When(r!=null,()=>m.ElementRect(a=>(a.on(c=>{e.Value.get(r??!1)||h.set(c)}),e.Empty)))))}function w(l,o,r){const t=[l?"bc-base-input-container":"bc-input-container"];return o?t.push(l?"bc-base-input-container--disabled":"bc-input-container--disabled"):t.push(l?"bc-base-input-container--default":"bc-input-container--default"),r&&t.push("bc-input-container--error"),t.join(" ")}function v(l,o){const r=["bc-input-container__input"];return l||(r.push(`bc-control--padding-${o}`),r.push(`bc-control--text-size-${o}`)),r.join(" ")}const B=({baseContainer:l,class:o,classes:r,disabled:t,input:d,before:s,after:u,hasError:b,focusableSelector:i="input, select, textarea",growInput:k=!0,size:x},...h)=>{const g=e.Value.map(t??!1,a=>a);return e.html.div(e.WithElement(a=>{const c=()=>{a.querySelector(i)?.focus()};return a.addEventListener("click",c),e.OnDispose(()=>a.removeEventListener("click",c))}),e.attr.class(e.computedOf(l,g,b??!1)((a,c,p)=>w(a??!1,c??!1,p??!1))),e.attr.class(o),e.attr.class(r?.container),s!=null?e.html.span(e.attr.class("bc-input-container__before"),s):null,e.html.div(e.attr.class(e.computedOf(l,x??"md")((a,c)=>v(a??!1,c??"md"))),e.attr.class(e.Value.map(k,a=>a?"bc-input-container__input--grow":"")),e.attr.class(r?.wrapper),d),u!=null?e.html.span(e.attr.class("bc-input-container__after"),u):null,...h)};function I({icon:l,size:o="md",color:r="neutral"}){return e.html.span(e.attr.class("bc-input-container__icon"),n.Icon({icon:l,size:o,color:r}))}exports.Button=V;exports.InputContainer=B;exports.InputIcon=I;exports.generateButtonClasses=f;exports.generateButtonStyles=C;exports.generateInputContainerInputClasses=v;
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { prop as B, Use as E, html as g, attr as l, computedOf as p, aria as m, When as D, Fragment as y, style as L, on as V, Value as I, Empty as j, WithElement as S, OnDispose as O } from "@tempots/dom";
|
|
2
|
-
import { B as U, I as _, t as h, b as k, h as c, a as v } from "./translations-DyCmyLE_.js";
|
|
3
|
-
import { ElementRect as W } from "@tempots/ui";
|
|
4
|
-
function q(r, e, o, t) {
|
|
5
|
-
const u = [
|
|
6
|
-
"bc-button",
|
|
7
|
-
`bc-button--size-${r}`,
|
|
8
|
-
`bc-control--padding-${r}`,
|
|
9
|
-
`bc-control--rounded-${e}`
|
|
10
|
-
];
|
|
11
|
-
return o && u.push("bc-button--loading"), t && u.push("bc-button--full-width"), u.join(" ");
|
|
12
|
-
}
|
|
13
|
-
function z(r, e, o) {
|
|
14
|
-
const t = /* @__PURE__ */ new Map();
|
|
15
|
-
t.set("--button-text-shadow", "var(--text-shadow-none)"), t.set("--button-text-shadow-dark", "var(--text-shadow-none)");
|
|
16
|
-
const u = (a, s, b, i) => {
|
|
17
|
-
o || (t.set("--button-bg-hover", a), t.set("--button-text-hover", b), t.set("--button-bg-hover-dark", s), t.set("--button-text-hover-dark", i));
|
|
18
|
-
};
|
|
19
|
-
switch (r) {
|
|
20
|
-
case "filled": {
|
|
21
|
-
const a = k(e, "solid", "light"), s = k(e, "solid", "dark");
|
|
22
|
-
t.set("--button-bg", a.backgroundColor), t.set("--button-text", a.textColor), t.set("--button-bg-dark", s.backgroundColor), t.set("--button-text-dark", s.textColor), t.set(
|
|
23
|
-
"--button-text-shadow",
|
|
24
|
-
"var(--text-shadow-button-filled, var(--text-shadow-sm))"
|
|
25
|
-
), t.set(
|
|
26
|
-
"--button-text-shadow-dark",
|
|
27
|
-
"var(--text-shadow-button-filled, var(--text-shadow-sm))"
|
|
28
|
-
);
|
|
29
|
-
const b = c(e, "solid", "light"), i = c(e, "solid", "dark");
|
|
30
|
-
u(
|
|
31
|
-
b.backgroundColor,
|
|
32
|
-
i.backgroundColor,
|
|
33
|
-
b.textColor,
|
|
34
|
-
i.textColor
|
|
35
|
-
);
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
case "light": {
|
|
39
|
-
const a = k(e, "light", "light"), s = k(e, "light", "dark");
|
|
40
|
-
t.set("--button-bg", a.backgroundColor), t.set("--button-text", a.textColor), t.set("--button-bg-dark", s.backgroundColor), t.set("--button-text-dark", s.textColor);
|
|
41
|
-
const b = c(e, "light", "light"), i = c(e, "light", "dark");
|
|
42
|
-
u(
|
|
43
|
-
b.backgroundColor,
|
|
44
|
-
i.backgroundColor,
|
|
45
|
-
b.textColor,
|
|
46
|
-
i.textColor
|
|
47
|
-
);
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
case "outline": {
|
|
51
|
-
t.set("--button-bg", "transparent"), t.set("--button-bg-dark", "transparent"), t.set("--button-border", v(e, "light")), t.set("--button-border-dark", v(e, "dark")), t.set("--button-text", h(e, "light")), t.set("--button-text-dark", h(e, "dark")), t.set(
|
|
52
|
-
"--button-text-shadow",
|
|
53
|
-
"var(--text-shadow-button-light, var(--text-shadow-xs))"
|
|
54
|
-
), t.set(
|
|
55
|
-
"--button-text-shadow-dark",
|
|
56
|
-
"var(--text-shadow-button-light, var(--text-shadow-xs))"
|
|
57
|
-
);
|
|
58
|
-
const a = c(e, "light", "light"), s = c(e, "light", "dark");
|
|
59
|
-
u(
|
|
60
|
-
a.backgroundColor,
|
|
61
|
-
s.backgroundColor,
|
|
62
|
-
a.textColor,
|
|
63
|
-
s.textColor
|
|
64
|
-
);
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
case "dashed": {
|
|
68
|
-
t.set("--button-bg", "transparent"), t.set("--button-bg-dark", "transparent"), t.set("--button-border", v(e, "light")), t.set("--button-border-dark", v(e, "dark")), t.set("--button-border-style", "dashed"), t.set("--button-text", h(e, "light")), t.set("--button-text-dark", h(e, "dark"));
|
|
69
|
-
const a = c(e, "light", "light"), s = c(e, "light", "dark");
|
|
70
|
-
u(
|
|
71
|
-
a.backgroundColor,
|
|
72
|
-
s.backgroundColor,
|
|
73
|
-
a.textColor,
|
|
74
|
-
s.textColor
|
|
75
|
-
);
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
case "default": {
|
|
79
|
-
const a = k("neutral", "light", "light"), s = k("neutral", "light", "dark");
|
|
80
|
-
t.set("--button-bg", a.backgroundColor), t.set("--button-text", h(e, "light")), t.set("--button-bg-dark", s.backgroundColor), t.set("--button-text-dark", h(e, "dark")), t.set(
|
|
81
|
-
"--button-text-shadow",
|
|
82
|
-
"var(--text-shadow-button-default, var(--text-shadow-2xs))"
|
|
83
|
-
), t.set(
|
|
84
|
-
"--button-text-shadow-dark",
|
|
85
|
-
"var(--text-shadow-button-default, var(--text-shadow-2xs))"
|
|
86
|
-
);
|
|
87
|
-
const b = c("base", "light", "light"), i = c("base", "light", "dark");
|
|
88
|
-
u(
|
|
89
|
-
b.backgroundColor,
|
|
90
|
-
i.backgroundColor,
|
|
91
|
-
t.get("--button-text") ?? a.textColor,
|
|
92
|
-
t.get("--button-text-dark") ?? s.textColor
|
|
93
|
-
);
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
case "text": {
|
|
97
|
-
t.set("--button-bg", "transparent"), t.set("--button-bg-dark", "transparent"), t.set("--button-text", h(e, "light")), t.set("--button-text-dark", h(e, "dark")), o || t.set("--button-hover-decoration", "underline");
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return Array.from(t.entries()).map(([a, s]) => `${a}: ${s}`).join("; ");
|
|
102
|
-
}
|
|
103
|
-
function R({
|
|
104
|
-
type: r = "button",
|
|
105
|
-
disabled: e = !1,
|
|
106
|
-
loading: o = !1,
|
|
107
|
-
variant: t = "filled",
|
|
108
|
-
size: u = "md",
|
|
109
|
-
color: a = "base",
|
|
110
|
-
roundedness: s = "sm",
|
|
111
|
-
onClick: b = () => {
|
|
112
|
-
},
|
|
113
|
-
fullWidth: i = !1,
|
|
114
|
-
stopPropagation: C = !0
|
|
115
|
-
}, ...w) {
|
|
116
|
-
const x = B(null);
|
|
117
|
-
return E(
|
|
118
|
-
U,
|
|
119
|
-
(f) => g.button(
|
|
120
|
-
l.type(r),
|
|
121
|
-
l.disabled(
|
|
122
|
-
p(
|
|
123
|
-
e,
|
|
124
|
-
o
|
|
125
|
-
)((n, d) => n || d)
|
|
126
|
-
),
|
|
127
|
-
// Add ARIA attributes for accessibility
|
|
128
|
-
m.busy(o ?? !1),
|
|
129
|
-
D(o ?? !1, () => m.label(f.$.loadingExtended)),
|
|
130
|
-
l.class(
|
|
131
|
-
p(u, s, o, i)(q)
|
|
132
|
-
),
|
|
133
|
-
l.style(p(t, a, e)(z)),
|
|
134
|
-
D(
|
|
135
|
-
o ?? !1,
|
|
136
|
-
() => y(
|
|
137
|
-
L.width(
|
|
138
|
-
x.map((n) => n == null ? "" : `${n.width}px`)
|
|
139
|
-
),
|
|
140
|
-
L.height(
|
|
141
|
-
x.map((n) => n == null ? "" : `${n.height}px`)
|
|
142
|
-
),
|
|
143
|
-
_({ icon: "line-md:loading-twotone-loop", size: u ?? "md" }),
|
|
144
|
-
// Hidden live region for screen reader announcements
|
|
145
|
-
g.span(
|
|
146
|
-
l.class("sr-only"),
|
|
147
|
-
m.live("polite"),
|
|
148
|
-
f.$.loadingExtended
|
|
149
|
-
)
|
|
150
|
-
),
|
|
151
|
-
() => y(
|
|
152
|
-
V.click((n) => {
|
|
153
|
-
r !== "submit" && n.preventDefault(), C && n.stopPropagation(), b();
|
|
154
|
-
}),
|
|
155
|
-
...w
|
|
156
|
-
)
|
|
157
|
-
),
|
|
158
|
-
D(
|
|
159
|
-
o != null,
|
|
160
|
-
() => W((n) => (n.on((d) => {
|
|
161
|
-
I.get(o ?? !1) || x.set(d);
|
|
162
|
-
}), j))
|
|
163
|
-
)
|
|
164
|
-
)
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
function A(r, e, o) {
|
|
168
|
-
const t = [
|
|
169
|
-
r ? "bc-base-input-container" : "bc-input-container"
|
|
170
|
-
];
|
|
171
|
-
return e ? t.push(
|
|
172
|
-
r ? "bc-base-input-container--disabled" : "bc-input-container--disabled"
|
|
173
|
-
) : t.push(
|
|
174
|
-
r ? "bc-base-input-container--default" : "bc-input-container--default"
|
|
175
|
-
), o && t.push("bc-input-container--error"), t.join(" ");
|
|
176
|
-
}
|
|
177
|
-
function F(r, e) {
|
|
178
|
-
const o = ["bc-input-container__input"];
|
|
179
|
-
return r || (o.push(`bc-control--padding-${e}`), o.push(`bc-control--text-size-${e}`)), o.join(" ");
|
|
180
|
-
}
|
|
181
|
-
const G = ({
|
|
182
|
-
baseContainer: r,
|
|
183
|
-
class: e,
|
|
184
|
-
classes: o,
|
|
185
|
-
disabled: t,
|
|
186
|
-
input: u,
|
|
187
|
-
before: a,
|
|
188
|
-
after: s,
|
|
189
|
-
hasError: b,
|
|
190
|
-
focusableSelector: i = "input, select, textarea",
|
|
191
|
-
growInput: C = !0,
|
|
192
|
-
size: w
|
|
193
|
-
}, ...x) => {
|
|
194
|
-
const f = I.map(t ?? !1, (n) => n);
|
|
195
|
-
return g.div(
|
|
196
|
-
S((n) => {
|
|
197
|
-
const d = () => {
|
|
198
|
-
n.querySelector(i)?.focus();
|
|
199
|
-
};
|
|
200
|
-
return n.addEventListener("click", d), O(() => n.removeEventListener("click", d));
|
|
201
|
-
}),
|
|
202
|
-
l.class(
|
|
203
|
-
p(
|
|
204
|
-
r,
|
|
205
|
-
f,
|
|
206
|
-
b ?? !1
|
|
207
|
-
// size ?? 'md'
|
|
208
|
-
)(
|
|
209
|
-
(n, d, $) => A(
|
|
210
|
-
n ?? !1,
|
|
211
|
-
d ?? !1,
|
|
212
|
-
$ ?? !1
|
|
213
|
-
// (size ?? 'md') as ControlSize
|
|
214
|
-
)
|
|
215
|
-
)
|
|
216
|
-
),
|
|
217
|
-
l.class(e),
|
|
218
|
-
l.class(o?.container),
|
|
219
|
-
a != null ? g.span(l.class("bc-input-container__before"), a) : null,
|
|
220
|
-
g.div(
|
|
221
|
-
l.class(
|
|
222
|
-
p(
|
|
223
|
-
r,
|
|
224
|
-
w ?? "md"
|
|
225
|
-
)(
|
|
226
|
-
(n, d) => F(
|
|
227
|
-
n ?? !1,
|
|
228
|
-
d ?? "md"
|
|
229
|
-
)
|
|
230
|
-
)
|
|
231
|
-
),
|
|
232
|
-
// attr.class('bc-input-container__input'),
|
|
233
|
-
l.class(
|
|
234
|
-
I.map(
|
|
235
|
-
C,
|
|
236
|
-
(n) => n ? "bc-input-container__input--grow" : ""
|
|
237
|
-
)
|
|
238
|
-
),
|
|
239
|
-
l.class(o?.wrapper),
|
|
240
|
-
u
|
|
241
|
-
),
|
|
242
|
-
s != null ? g.span(l.class("bc-input-container__after"), s) : null,
|
|
243
|
-
...x
|
|
244
|
-
);
|
|
245
|
-
};
|
|
246
|
-
function J({
|
|
247
|
-
icon: r,
|
|
248
|
-
size: e = "md",
|
|
249
|
-
color: o = "neutral"
|
|
250
|
-
}) {
|
|
251
|
-
return g.span(
|
|
252
|
-
l.class("bc-input-container__icon"),
|
|
253
|
-
_({ icon: r, size: e, color: o })
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
export {
|
|
257
|
-
R as B,
|
|
258
|
-
G as I,
|
|
259
|
-
J as a,
|
|
260
|
-
q as b,
|
|
261
|
-
z as c,
|
|
262
|
-
F as g
|
|
263
|
-
};
|
package/dist/menu-De_-sGeb.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("@tempots/dom"),q=require("@tempots/ui"),_=require("./timer-BJHOsuS6.cjs"),W=require("./use-animated-toggle-DrqK7nUS.cjs"),S=require("./session-id-B5lJMzbB.cjs");function K(c){const l={fade:!0,scale:!0};return c.startsWith("top")?(l.slide="down",l.transformOrigin="bottom"):c.startsWith("bottom")?(l.slide="up",l.transformOrigin="top"):c.startsWith("left")?(l.slide="right",l.transformOrigin="right"):c.startsWith("right")&&(l.slide="left",l.transformOrigin="left"),l}function M(c){const{content:l,placement:I="top",showDelay:D=250,hideDelay:L=500,mainAxisOffset:E=8,crossAxisOffset:V=0,showOn:f="hover-focus",closable:g=!0,arrow:w,role:p,hasPopup:T="dialog"}=c;return q.PopOver((v,b)=>{const r=W.useAnimatedElementToggle({initialStatus:"closed"}),O=S.sessionId("flyout"),m=e.prop(!1);let h=null,d=null,F=!1,y;function P(){t!=null&&(clearTimeout(t),t=null),a!=null&&(clearTimeout(a),a=null),d&&(d(),d=null),h&&(document.removeEventListener("keydown",h),h=null),m.set(!1),F=!1}function x(){e.Value.get(g)&&(h=i=>{i.key==="Escape"&&s()},document.addEventListener("keydown",h)),F=!0,m.set(!0),v({placement:I??"top",mainAxisOffset:E,crossAxisOffset:V,arrow:w,content:e.WithElement(i=>{r.setElement(i);const o=typeof f=="function"?null:e.Value.get(f);(o==="hover"||o==="hover-focus")&&(i.addEventListener("mouseenter",()=>n()),i.addEventListener("mouseleave",()=>s())),d=_.g(()=>{r.open(),d=null});const u=A=>{e.Value.get(g)&&A.key==="Escape"&&(A.preventDefault(),A.stopPropagation(),s(),m.set(!1))};document.addEventListener("keydown",u,!0);let k=null;return e.Value.get(g)&&(k=A=>{const C=A.target;!i.contains(C)&&!y?.contains(C)&&s()},document.addEventListener("click",k)),e.Fragment(e.OnDispose(()=>{k&&(document.removeEventListener("click",k),k=null),P(),document.removeEventListener("keydown",u,!0)}),e.attr.class("bc-flyout-container"),W.AnimatedToggleClass({animation:e.Value.map(I,K),status:r.status}),e.attr.id(O),e.attr.tabindex(-1),e.html.div(e.attr.class("bc-flyout"),p?e.attr.role(p):e.attr.role("dialog"),l()))})})}let t=null;function n(){if(t!=null&&(clearTimeout(t),t=null),a!=null&&(clearTimeout(a),a=null),r.isOpened.value||r.isOpening.value||r.isStartOpening.value)return;if(r.isClosing.value||r.isStartClosing.value){r.open();return}const i=e.Value.get(D);t=setTimeout(()=>{t=null,x()},i)}let a=null;function s(){if(t!=null&&(clearTimeout(t),t=null),a!=null&&(clearTimeout(a),a=null),m.set(!1),d&&(d(),d=null,F)){b(),P();return}const i=e.Value.get(L);a=setTimeout(()=>{a=null,r.close(),r.listenOnClosed(()=>{b(),P()})},i)}return e.WithElement(i=>{y=i;const o=()=>{n(),m.set(!0)},u=()=>{s(),m.set(!1)},k=e.Fragment(e.aria.expanded(m),e.aria.controls(O),e.aria.haspopup(T));if(typeof f=="function")return e.Fragment(k,f(o,u));const A=f;return e.Fragment(k,e.OneOfValue(A,{"hover-focus":()=>e.Fragment(e.on.mouseenter(()=>o()),e.on.mouseleave(()=>u()),e.on.focus(()=>o()),e.on.blur(()=>u())),hover:()=>e.Fragment(e.on.mouseenter(()=>o()),e.on.mouseleave(()=>u())),focus:()=>e.Fragment(e.on.focus(()=>o()),e.on.blur(()=>u())),click:()=>{function C(){document.removeEventListener("click",$)}function $(){C(),u()}return e.Fragment(e.OnDispose(C),e.on.click(()=>{o(),_.g(()=>{document.addEventListener("click",$,{once:!0})})}))},never:()=>null}))})})}function H(c){const{items:l,placement:I="bottom-start",showDelay:D=0,hideDelay:L=100,mainAxisOffset:E=4,crossAxisOffset:V=0,showOn:f="click",closable:g=!0,onClose:w,onAction:p,ariaLabel:T,ariaLabelledBy:v}=c,b=S.sessionId("menu"),r=e.prop(-1),O=e.prop([]);let m=null;return M({content:()=>e.WithElement(h=>{m=document.activeElement;const d=(t,n,a)=>{if(n.length===0)return-1;let s=t+a,i=0;for(;i<n.length;){s>=n.length&&(s=0),s<0&&(s=n.length-1);const o=n[s];if(o&&o.getAttribute("aria-disabled")!=="true")return s;s+=a,i++}return t},F=t=>{const n=O.value,a=r.value;switch(t.key){case"ArrowDown":t.preventDefault(),t.stopPropagation();const s=d(a,n,1);y(s,n);break;case"ArrowUp":t.preventDefault(),t.stopPropagation();const i=d(a,n,-1);y(i,n);break;case"Enter":case" ":if(t.preventDefault(),t.stopPropagation(),a>=0&&n[a]){const o=n[a];if(o.getAttribute("aria-disabled")==="true")return;const u=o.getAttribute("data-key");u&&p&&p(u),o.click(),w?.()}break;case"Escape":w?.();break;case"Home":t.preventDefault(),t.stopPropagation(),n.length>0&&y(0,n);break;case"End":t.preventDefault(),t.stopPropagation(),n.length>0&&y(n.length-1,n);break;case"ArrowRight":if(t.preventDefault(),t.stopPropagation(),a>=0&&n[a]){const o=n[a];o.classList.contains("bc-menu-item--has-submenu")&&o.dispatchEvent(new Event("mouseenter"))}break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),w?.();break}},y=(t,n)=>{r.value>=0&&n[r.value]&&(n[r.value].classList.remove("bc-menu-item--focused"),n[r.value].removeAttribute("aria-selected")),t>=0&&n[t]&&(n[t].classList.add("bc-menu-item--focused"),n[t].setAttribute("aria-selected","true"),r.set(t),typeof n[t].scrollIntoView=="function"&&n[t].scrollIntoView({block:"nearest"}))},P=()=>{const t=Array.from(h.querySelectorAll('[role="menuitem"]'));if(O.set(t),t.length>0){const n=t.findIndex(a=>a.getAttribute("aria-disabled")!=="true");n>=0&&y(n,t)}},x=new MutationObserver(P);return x.observe(h,{childList:!0,subtree:!0}),setTimeout(()=>{P(),h.focus()},0),document.addEventListener("keydown",F,!0),e.Fragment(e.OnDispose(()=>{x.disconnect(),document.removeEventListener("keydown",F,!0),m&&m.focus()}),e.attr.class("bc-menu"),e.attr.id(b),e.attr.role("menu"),e.attr.tabindex(-1),e.aria.orientation("vertical"),T?e.aria.label(T):e.Empty,v?e.aria.labelledby(v):e.Empty,e.aria.activedescendant(r.map(t=>{const n=O.value;return t>=0&&n[t]?n[t].id||`${b}-item-${t}`:""})),e.on.click(t=>{const a=t.target.closest('[role="menuitem"]');if(a&&a.getAttribute("aria-disabled")!=="true"){const s=a.getAttribute("data-key");s&&p&&p(s)}}),e.html.div(e.attr.class("sr-only"),e.aria.live("polite"),e.aria.atomic(!0),r.map(t=>{const n=O.value;if(t>=0&&n[t]){const a=n[t].textContent||"";return n[t].getAttribute("aria-disabled")==="true"?`${a}, disabled`:`${a}, ${t+1} of ${n.length}`}return""})),...l())}),placement:I,showDelay:D,hideDelay:L,mainAxisOffset:E,crossAxisOffset:V,showOn:f,closable:g,role:"menu"})}function z(c){const{key:l,content:I,startContent:D,endContent:L,disabled:E=!1,onClick:V,ariaLabel:f,submenu:g,submenuPlacement:w="right-start"}=c,p=l??S.sessionId("menu-item"),T=`menu-item-${p}`,v=g!=null;return e.html.div(e.attr.class(e.computedOf(E)(b=>`bc-menu-item ${b?"bc-menu-item--disabled":""} ${v?"bc-menu-item--has-submenu":""}`)),e.attr.id(T),e.attr.role("menuitem"),e.attr.tabindex(-1),e.dataAttr.key(p),e.aria.disabled(E),e.aria.selected(!1),v?e.aria.expanded(!1):e.Empty,f?e.aria.label(f):e.Empty,e.on.click(b=>{if(e.Value.get(E)){b.preventDefault(),b.stopPropagation();return}V?.()}),D&&e.html.span(e.attr.class("bc-menu-item__start"),D),e.html.span(e.attr.class("bc-menu-item__content"),I),L&&e.html.span(e.attr.class("bc-menu-item__end"),L),v&&g?M({content:()=>e.Fragment(e.attr.class("bc-menu bc-submenu"),e.attr.role("menu"),...g()),placement:w,showOn:"hover",hasPopup:"menu",showDelay:100,hideDelay:300,mainAxisOffset:0,crossAxisOffset:0,role:"menu"}):e.Empty)}function B(c={}){const{label:l}=c;return e.html.div(e.attr.class("bc-menu-separator"),e.attr.role("separator"),e.aria.orientation("horizontal"),l&&e.html.span(e.attr.class("bc-menu-separator__label"),l))}exports.Flyout=M;exports.Menu=H;exports.MenuItem=z;exports.MenuSeparator=B;
|
package/dist/modal-CiGmgsOI.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("@tempots/dom"),S=require("./use-animated-toggle-DrqK7nUS.cjs"),$=require("./timer-BJHOsuS6.cjs"),D=require("./session-id-B5lJMzbB.cjs"),q=require("./translations-OOsMRpX9.cjs"),j=require("./use-form-ClA0ZRco.cjs"),B=require("./input-container-BWYHj0Iq.cjs"),W=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"audio[controls]","video[controls]","details > summary:first-of-type","details[open]"].join(", ");function _(u){return Array.from(u.querySelectorAll(W)).filter(e=>{const s=e;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function V(u={}){const{active:e=!0,escapeDeactivates:s=!0,onEscape:t,initialFocus:a,returnFocus:i,clickOutsideDeactivates:c=!1,onClickOutside:d}=u;return n.WithElement(g=>{let h=e,f=null,l=[],b=null,p=null,m=null;typeof document<"u"&&(f=document.activeElement);const y=()=>{l=_(g)},C=r=>{if(h){if(s&&r.key==="Escape"){r.preventDefault(),t?.();return}if(r.key==="Tab"){if(y(),l.length===0){r.preventDefault();return}const o=l.indexOf(document.activeElement);r.shiftKey?o<=0&&(r.preventDefault(),l[l.length-1]?.focus()):o>=l.length-1&&(r.preventDefault(),l[0]?.focus())}}},v=r=>{if(!h||!c)return;const o=r.target;g.contains(o)||d?.()},x=()=>{if(!h)return;y();let r=null;typeof a=="function"?r=a():a?r=a:l.length>0&&(r=l[0]),r&&(p=setTimeout(()=>{p=null,r?.focus()},50)),document.addEventListener("keydown",C,!0),c&&document.addEventListener("click",v,!0)},w=()=>{h=!1,document.removeEventListener("keydown",C,!0),document.removeEventListener("click",v,!0);let r=null;typeof i=="function"?r=i():i?r=i:f&&(r=f),r&&document.body.contains(r)&&(m=setTimeout(()=>{m=null,r?.focus()},0))};return b=setTimeout(()=>{b=null,x()},0),n.OnDispose(()=>{b!=null&&clearTimeout(b),p!=null&&clearTimeout(p),m!=null&&clearTimeout(m),w()})})}function P(u={}){return{activate:()=>V({...u,active:!0}),deactivate:()=>V({...u,active:!1})}}function I(u){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const t=u.validate(s);return t.success?{value:t.data}:{issues:t.errors.map(a=>({message:a.message,path:a.path}))}},types:void 0},safeParse:s=>{const t=u.validate(s);return t.success?{success:!0,data:t.data}:{success:!1,error:{errors:t.errors.map(a=>({message:a.message,path:a.path?.map(i=>typeof i=="object"&&"key"in i?i.key.toString():i.toString())||[]}))}}}}}class k{optional(){return new U(this)}default(e){return new z(this,e)}schema(){return I(this)}}class E extends k{minLength;maxLength;pattern;customValidations=[];validate(e){if(typeof e!="string")return{success:!1,errors:[{message:"Expected string"}]};const s=[];this.minLength!==void 0&&e.length<this.minLength&&s.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&e.length>this.maxLength&&s.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(e)&&s.push({message:"Invalid format"});for(const t of this.customValidations){const a=t(e);a&&s.push({message:a})}return s.length>0?{success:!1,errors:s}:{success:!0,data:e}}min(e,s){const t=new E;return t.minLength=e,t.maxLength=this.maxLength,t.pattern=this.pattern,t.customValidations=[...this.customValidations],s&&t.customValidations.push(a=>a.length<e?s:null),t}max(e,s){const t=new E;return t.minLength=this.minLength,t.maxLength=e,t.pattern=this.pattern,t.customValidations=[...this.customValidations],s&&t.customValidations.push(a=>a.length>e?s:null),t}regex(e,s){const t=new E;return t.minLength=this.minLength,t.maxLength=this.maxLength,t.pattern=e,t.customValidations=[...this.customValidations],s&&t.customValidations.push(a=>e.test(a)?null:s),t}email(e="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,t=new E;return t.minLength=this.minLength,t.maxLength=this.maxLength,t.pattern=this.pattern,t.customValidations=[...this.customValidations,a=>s.test(a)?null:e],t}refine(e){const s=new E;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,e],s}}class T extends k{mustBeTrue=!1;trueMessage;validate(e){return typeof e!="boolean"?{success:!1,errors:[{message:"Expected boolean"}]}:this.mustBeTrue&&e!==!0?{success:!1,errors:[{message:this.trueMessage||"Must be true"}]}:{success:!0,data:e}}refine(e,s){const t=new T;t.mustBeTrue=this.mustBeTrue,t.trueMessage=this.trueMessage;const a=t.validate.bind(t);return t.validate=i=>{const c=a(i);return c.success?e(c.data)?c:{success:!1,errors:[{message:s}]}:c},t}literal(e,s){const t=new T;return t.mustBeTrue=!0,t.trueMessage=s,t}}class U extends k{constructor(e){super(),this.inner=e}validate(e){if(e===void 0)return{success:!0,data:void 0};const s=this.inner.validate(e);return s.success?{success:!0,data:s.data}:{success:!1,errors:s.errors}}}class z extends k{constructor(e,s){super(),this.inner=e,this.defaultValue=s}validate(e){return e===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(e)}}class F extends k{constructor(e){super(),this.shape=e}validate(e){if(typeof e!="object"||e===null||Array.isArray(e))return{success:!1,errors:[{message:"Expected object"}]};const s=e,t={},a=[];for(const[i,c]of Object.entries(this.shape)){const d=c.validate(s[i]);if(d.success)t[i]=d.data;else for(const g of d.errors)a.push({message:g.message,path:[i,...g.path||[]]})}return a.length>0?{success:!1,errors:a}:{success:!0,data:t}}refine(e,s){const t=new F(this.shape),a=t.validate.bind(t);return t.validate=i=>{const c=a(i);if(!c.success)return c;const d=e(c.data);return d?{success:!1,errors:[{message:d,path:s?.path}]}:{success:!0,data:c.data}},t}}const R=()=>new E,H=()=>new T,K=u=>new F(u);function O(u){return n.WithBrowserCtx(e=>{const s=[],t=()=>s.forEach(i=>i());return u(({effect:i="opaque",mode:c="capturing",onClickOutside:d,onEscape:g,content:h,container:f="body"})=>{f==="body"&&(e=e.makePortal("body"));const l=S.useAnimatedElementToggle();l.listenOnClosed(t);let b=()=>{},p=()=>{};const m=r=>{r.key==="Escape"&&(g?.(),l.close())},y=()=>{d?.(),l.close()},C=r=>{b(),p(),r==="capturing"?(document.addEventListener("keydown",m),b=()=>document.removeEventListener("keydown",m),e.element.addEventListener("mousedown",y),p=()=>e.element.removeEventListener("mousedown",y)):(b=()=>{},p=()=>{})},v=n.Value.on(c,C);s.push(v),s.push(()=>{l.dispose(),b(),p()});const x=()=>{const r=new Set;for(const o of e.element.querySelectorAll(":scope > :not([data-overlay])"))o.hasAttribute("inert")?r.add(o):o.setAttribute("inert","");return s.push(()=>{for(const o of e.element.querySelectorAll(":scope > :not([data-overlay])"))r.has(o)||o.removeAttribute("inert");r.clear()}),document.activeElement?.blur?.(),n.html.div(n.WithElement(o=>l.setElement(o)),n.dataAttr.status(l.status.map(String)),n.dataAttr.overlay("true"),n.attr.class(n.computedOf(i??"opaque",c)((o,L)=>`bc-overlay bc-overlay--effect-${o} bc-overlay--mode-${L}`)),h)},w=n.render(x(),e.element,{disposeWithParent:!0,clear:!1,providers:e.providers});s.push(w),$.g(()=>l.open())},t)})}function M(u,e){const{size:s="md",dismissable:t=!0,showCloseButton:a=!0,onClose:i,overlayEffect:c="opaque",container:d="body",position:g="center"}=u;return O((h,f)=>{let l=()=>{};return e(m=>{l=f;const y=n.prop("capturing");n.Value.on(t,o=>{y.set(o?"capturing":"non-capturing")});const C=n.computedOf(m.header!=null,a)((o,L)=>o||L),v=D.sessionId("modal"),x=`${v}-header`,w=`${v}-body`,r=n.html.div(n.attr.class(n.computedOf(s,g)((o,L)=>`bc-modal bc-modal--size-${o} bc-modal--container-${d} bc-modal--position-${L}`)),n.attr.role("dialog"),n.aria.modal(!0),...m.header?[n.aria.labelledby(x)]:[],n.aria.describedby(w),n.attr.tabindex(-1),n.attr.id(v),n.dataAttr.focusTrap("true"),n.on.mousedown(o=>o.stopPropagation()),V({escapeDeactivates:!1,initialFocus:()=>{const o=document.getElementById(v);if(!o)return null;const L=o.querySelector('[aria-label="Close modal"]');if(L)return L;const A=o.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return A||o}}),n.html.div(n.attr.class("bc-modal__content"),n.When(C,()=>n.html.div(n.attr.class("bc-modal__header"),n.html.div(n.attr.class("bc-modal__title"),...m.header?[n.attr.id(x)]:[],m.header),n.When(a,()=>n.Use(q.BeatUII18n,o=>j.CloseButton({size:"sm",label:o.$.closeModal,onClick:()=>{l(),f()}}))))),n.html.div(n.attr.class("bc-modal__body"),n.attr.id(w),m.body),m.footer&&n.html.div(n.attr.class("bc-modal__footer"),m.footer)));h({mode:y,effect:c??"opaque",container:d,content:r,onClickOutside:()=>{i?.(),f()},onEscape:()=>{i?.(),f()}})},()=>{l(),f()})})}function G(u,e){const{confirmText:s,cancelText:t,onConfirm:a,onCancel:i,...c}=u;return n.Use(q.BeatUII18n,d=>M({showCloseButton:!1,...c},(g,h)=>{const f=()=>{a?.(),h()},l=()=>{i?.(),h()};return e(p=>{g({body:p,footer:n.Fragment(n.attr.class("bc-modal__actions"),B.Button({variant:"outline",onClick:l},n.coalesce(t,d.$.cancel)),B.Button({color:"primary",variant:"filled",onClick:f},n.coalesce(s,d.$.confirm)))})},h)}))}exports.BooleanValidator=T;exports.ConfirmModal=G;exports.FocusTrap=V;exports.Modal=M;exports.ObjectValidator=F;exports.Overlay=O;exports.StringValidator=E;exports.boolean=H;exports.createStandardSchema=I;exports.object=K;exports.string=R;exports.useFocusTrap=P;
|
package/dist/notice-CPZQuxcA.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("./text-input-M6WBhhVj.cjs"),t=require("@tempots/dom"),V=require("./input-container-BWYHj0Iq.cjs"),f=require("./translations-OOsMRpX9.cjs"),_=require("./use-form-ClA0ZRco.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:g,...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,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 V.InputContainer({before:p,disabled:m,hasError:h,input:t.html.input(v.CommonInputAttributes({...y,autocomplete:a,placeholder:u}),t.When(i,()=>t.attr.type("password"),()=>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";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,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 g=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,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(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(g,()=>_.CloseButton({size:"xs",label:a.$.closeModal,onClick:()=>{d.set(!1),c?.()}}))))})}exports.EmailInput=O;exports.Notice=$;exports.PasswordInput=B;
|