@tempots/beatui 0.87.2 → 0.87.4
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-DjMvIww5.js → ar-Dn7AkNO5.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-BIefTDoO.js → auth-divider-BZPM2Xd3.js} +101 -103
- package/dist/{auth-divider-V_Se6Qhe.cjs → auth-divider-Cj-xJxF_.cjs} +1 -1
- package/dist/beatui.css +23 -0
- package/dist/beatui.tailwind.css +23 -0
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +12 -12
- package/dist/{colors-BmLYKmoH.js → colors-CatA-RXf.js} +9 -9
- package/dist/{de-wChFYqM4.js → de-QYhBiWv7.js} +1 -1
- package/dist/deep-merge-BmxkFFi1.cjs +1 -0
- package/dist/{deep-merge-BRqRzEQs.js → deep-merge-D076XcC5.js} +152 -156
- package/dist/{duration-input-BDEb1Bb7.js → duration-input-6RN16H08.js} +5 -5
- package/dist/{duration-input-BtFL5Vjx.cjs → duration-input-CJU-yeKk.cjs} +1 -1
- package/dist/{editor-toolbar-group-CwCCGzEC.js → editor-toolbar-group-DRCbXeQP.js} +6 -3
- package/dist/{es-CmPF3IGl.js → es-Ba31pZAd.js} +1 -1
- package/dist/{fa-D696e75R.js → fa-DvLjl_Ha.js} +1 -1
- package/dist/{fr-B0jeX1Hx.js → fr-D64yBpAp.js} +1 -1
- package/dist/{he-SgAsIYJA.js → he-DHZGEQ7C.js} +1 -1
- package/dist/{hi-s9oiIihq.js → hi-CeAXVCvp.js} +1 -1
- package/dist/{index-CaWDj1Vg.cjs → index-BIGCKfNz.cjs} +10 -10
- package/dist/{index-DdqGL9Jk.js → index-BTITknMc.js} +701 -684
- package/dist/{index-qa82MK4Z.cjs → index-Bso_SkEn.cjs} +1 -1
- package/dist/{index-B0t-nt7i.js → index-DWDC-qRY.js} +4 -4
- package/dist/{index-D2_J_-XS.js → index-rHnH2IGb.js} +77 -77
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +1015 -1018
- package/dist/{index.esm-ChUrm4xR.js → index.esm-By0m3ki1.js} +3 -3
- package/dist/{input-container-DhUiLmXE.js → input-container-BTyCOubf.js} +1 -1
- package/dist/{it-Dc4IMciD.js → it-Im0KgKWL.js} +1 -1
- package/dist/{ja-D2t2g5xj.js → ja-lliCbC19.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +97 -103
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +15 -15
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +349 -351
- package/dist/{ko-BRylA5JZ.js → ko-B9W4RBBs.js} +1 -1
- package/dist/lexical/index.cjs.js +5 -12
- package/dist/lexical/index.es.js +54 -84
- package/dist/{menu-Ui4lUPHM.js → menu-CV85y3Xf.js} +1 -1
- package/dist/{modal-Dkje8L_l.js → modal-CD3DwAlD.js} +5 -5
- package/dist/{modal-Coenk8Fy.cjs → modal-jJMS0ZlW.cjs} +1 -1
- package/dist/monaco/index.es.js +1 -1
- package/dist/{nl-Dh7LUWAn.js → nl-ba5SyHsw.js} +1 -1
- package/dist/notice-9lpZ-VDn.cjs +1 -0
- package/dist/{notice-BmkckDsD.js → notice-Cc26kgiB.js} +26 -28
- package/dist/{oneof-branch-detection-Vov_e3kI.cjs → oneof-branch-detection-BsGhMslW.cjs} +6 -6
- package/dist/{oneof-branch-detection-BED_n2MT.js → oneof-branch-detection-DiAtgGQH.js} +1740 -1734
- package/dist/{pl-XEG-p1Q9.js → pl-DCiJAZWC.js} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYsDA2sZ.js → pt-Df5bAGWA.js} +1 -1
- package/dist/{ru-BTKBykp-.js → ru-Dg-c670Y.js} +1 -1
- package/dist/stack-4VUGISn6.cjs +1 -0
- package/dist/{stack-BJgsPJ9A.js → stack-Bm-UZosx.js} +145 -139
- package/dist/tailwind/preset.es.js +2 -2
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{text-input-BZmAB3_o.js → text-input-Cux5iiUC.js} +5 -5
- package/dist/{theme-BzpMLdvH.js → theme-kQZEeusG.js} +4 -4
- package/dist/{toolbar-Pdj-F80l.js → toolbar-DYmKrtic.js} +1 -1
- package/dist/{tr-Cp8ZCUic.js → tr-Dhpiq0u_.js} +1 -1
- package/dist/{translations-BGblCUBj.js → translations-BLlzvZgw.js} +30 -30
- package/dist/{translations-jUYta1_1.js → translations-COSDzhvR.js} +1 -1
- package/dist/types/auth-i18n/translations.d.ts +2 -2
- package/dist/types/beatui-i18n/translations.d.ts +2 -2
- package/dist/types/better-auth/components/authenticated.d.ts +2 -2
- package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
- package/dist/types/better-auth/i18n/translations.d.ts +2 -2
- package/dist/types/better-auth/provider.d.ts +2 -2
- package/dist/types/components/auth/auth-container.d.ts +1 -1
- package/dist/types/components/auth/auth-email-prop.d.ts +1 -1
- package/dist/types/components/beatui.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/content/native-pdf-preview.d.ts +1 -1
- package/dist/types/components/content/pdfjs-preview.d.ts +1 -1
- package/dist/types/components/data/icon.d.ts +1 -1
- package/dist/types/components/data/page-drop-zone.d.ts +1 -1
- package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +1 -1
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +1 -1
- package/dist/types/components/form/control/control.d.ts +2 -2
- package/dist/types/components/form/control/ensure-control.d.ts +1 -1
- package/dist/types/components/form/control/list-control.d.ts +1 -1
- package/dist/types/components/form/controller/color-controller.d.ts +4 -4
- package/dist/types/components/form/input/appearance-selector.d.ts +2 -2
- package/dist/types/components/form/input/base64-input.d.ts +1 -1
- package/dist/types/components/form/input/base64s-input.d.ts +1 -1
- package/dist/types/components/form/input/combobox-tags-input.d.ts +1 -1
- package/dist/types/components/form/input/email-input.d.ts +1 -1
- package/dist/types/components/form/input/file-input.d.ts +1 -1
- package/dist/types/components/form/input/files-input.d.ts +1 -1
- package/dist/types/components/form/input/input-options.d.ts +1 -1
- package/dist/types/components/form/input/list-input.d.ts +1 -1
- package/dist/types/components/form/input/nullable-base64-input.d.ts +1 -1
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +12 -12
- package/dist/types/components/form/input/password-input.d.ts +1 -1
- package/dist/types/components/form/input/plain-date-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-date-time-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-time-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-year-month-input.d.ts +12 -12
- package/dist/types/components/form/input/select-tags-input.d.ts +3 -3
- package/dist/types/components/form/use-form.d.ts +3 -3
- package/dist/types/components/i18n/locale-direction.d.ts +1 -1
- package/dist/types/components/i18n/locale-selector.d.ts +1 -1
- package/dist/types/components/i18n/locale.d.ts +1 -1
- package/dist/types/components/i18n/make-i18nprovider.d.ts +2 -2
- package/dist/types/components/layout/app-shell.d.ts +1 -1
- package/dist/types/components/lexical/code/language-selector.d.ts +1 -1
- package/dist/types/components/lexical/floating/block-handle.d.ts +1 -1
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +1 -1
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +1 -1
- package/dist/types/components/lexical/table/table-controls.d.ts +1 -1
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +1 -1
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +2 -2
- package/dist/types/components/media/pdf-page-viewer.d.ts +1 -1
- package/dist/types/components/misc/notification-provider.d.ts +2 -2
- package/dist/types/components/navigation/link/button-link.d.ts +1 -1
- package/dist/types/components/navigation/link/link.d.ts +1 -1
- package/dist/types/components/navigation/link/navigation-link.d.ts +1 -1
- package/dist/types/components/navigation/pagination.d.ts +1 -1
- package/dist/types/components/navigation/sidebar/sidebar.d.ts +2 -2
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +1 -1
- package/dist/types/components/prosemirror/link-control.d.ts +1 -1
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +1 -1
- package/dist/types/components/prosemirror/utils.d.ts +2 -2
- package/dist/types/components/theme/theme.d.ts +2 -2
- package/dist/types/i18n/translate.d.ts +1 -1
- package/dist/types/utils/delay-signal.d.ts +1 -1
- package/dist/types/utils/use-animated-toggle.d.ts +22 -22
- package/dist/{ur-DkIYJxsF.js → ur-Lr1p8f9y.js} +1 -1
- package/dist/{use-animated-toggle-89fKlXxy.js → use-animated-toggle-C7PTmnZi.js} +7 -7
- package/dist/{use-form-BSvvERhX.js → use-form-BfzX3bwL.js} +13 -13
- package/dist/{use-form-B_mCauP0.cjs → use-form-i97PToWB.cjs} +1 -1
- package/dist/{vi-DKw6PBja.js → vi-jozfaxSj.js} +1 -1
- package/dist/widget-customization-BZqPoojo.cjs +1 -0
- package/dist/{widget-customization-DFr3ycD7.js → widget-customization-fMNSVtuP.js} +29 -29
- package/dist/{zh-CaKHseXJ.js → zh-BBYKq49d.js} +1 -1
- package/package.json +35 -31
- package/dist/deep-merge-CvN7Xvd1.cjs +0 -1
- package/dist/notice-DMK7dx9a.cjs +0 -1
- package/dist/stack-DcZ_u50f.cjs +0 -1
- package/dist/widget-customization-BASfRpF7.cjs +0 -1
package/dist/lexical/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as rd } from "../_commonjsHelpers-DaMA6jEr.js";
|
|
2
2
|
import { Use as Tr, html as q, Task as Cc, attr as L, Value as _e, WithElement as mn, OnDispose as _n, Ensure as wc, signal as ie, When as zn, on as ln, prop as $e, style as Z, aria as Na, ForEach as K_, computedOf as W_ } from "@tempots/dom";
|
|
3
3
|
import { L as vc } from "../link-portal-Cr2l9f3k.js";
|
|
4
|
-
import { T as Ec } from "../theme-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { I as V_ } from "../input-container-
|
|
4
|
+
import { T as Ec } from "../theme-kQZEeusG.js";
|
|
5
|
+
import { M as j_, b as H_ } from "../menu-CV85y3Xf.js";
|
|
6
|
+
import { B as Vo, I as Aa } from "../translations-BLlzvZgw.js";
|
|
7
|
+
import { E as J_, a as vt } from "../editor-toolbar-group-DRCbXeQP.js";
|
|
8
|
+
import { b as G_ } from "../toolbar-DYmKrtic.js";
|
|
9
|
+
import { I as V_ } from "../input-container-BTyCOubf.js";
|
|
10
10
|
function D(n, ...e) {
|
|
11
11
|
const t = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
12
12
|
r.append("code", n);
|
|
@@ -995,7 +995,7 @@ function ja(n, e, t) {
|
|
|
995
995
|
function By(n) {
|
|
996
996
|
return n;
|
|
997
997
|
}
|
|
998
|
-
const gg = Symbol.for("ephemeral");
|
|
998
|
+
const gg = /* @__PURE__ */ Symbol.for("ephemeral");
|
|
999
999
|
function xo(n) {
|
|
1000
1000
|
return n[gg] || !1;
|
|
1001
1001
|
}
|
|
@@ -5836,7 +5836,7 @@ function Gb(n, e) {
|
|
|
5836
5836
|
r !== void 0 && n.setData(t, r);
|
|
5837
5837
|
}
|
|
5838
5838
|
}
|
|
5839
|
-
const Vb = Symbol.for("preact-signals");
|
|
5839
|
+
const Vb = /* @__PURE__ */ Symbol.for("preact-signals");
|
|
5840
5840
|
function vl() {
|
|
5841
5841
|
if (Bn > 1) return void Bn--;
|
|
5842
5842
|
let n, e = !1;
|
|
@@ -6225,7 +6225,7 @@ const rx = { config: { setOptions: sf, updateOptions: sf }, init: ({ $initialEdi
|
|
|
6225
6225
|
}
|
|
6226
6226
|
return () => {
|
|
6227
6227
|
};
|
|
6228
|
-
}, name: "@lexical/extension/InitialState", nodes: [$r, lt, Nr, Ar, Ir] }, of = Symbol.for("@lexical/extension/LexicalBuilder");
|
|
6228
|
+
}, name: "@lexical/extension/InitialState", nodes: [$r, lt, Nr, Ar, Ir] }, of = /* @__PURE__ */ Symbol.for("@lexical/extension/LexicalBuilder");
|
|
6229
6229
|
function lf() {
|
|
6230
6230
|
}
|
|
6231
6231
|
function ix(n) {
|
|
@@ -8786,14 +8786,6 @@ var da = { exports: {} }, Df;
|
|
|
8786
8786
|
function qx() {
|
|
8787
8787
|
return Df || (Df = 1, (function(n) {
|
|
8788
8788
|
var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
8789
|
-
/**
|
|
8790
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
8791
|
-
*
|
|
8792
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
8793
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
8794
|
-
* @namespace
|
|
8795
|
-
* @public
|
|
8796
|
-
*/
|
|
8797
8789
|
var t = (function(r) {
|
|
8798
8790
|
var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, s = 0, o = {}, l = {
|
|
8799
8791
|
/**
|
|
@@ -13358,7 +13350,7 @@ try {
|
|
|
13358
13350
|
typeof localStorage < "u" && localStorage && (xm = localStorage, WC = !1);
|
|
13359
13351
|
} catch {
|
|
13360
13352
|
}
|
|
13361
|
-
const jC = xm, ds = Symbol("Equality"), Sm = (n, e) => n === e || !!n?.[ds]?.(e) || !1, HC = (n) => typeof n == "object", JC = Object.assign, GC = Object.keys, VC = (n, e) => {
|
|
13353
|
+
const jC = xm, ds = /* @__PURE__ */ Symbol("Equality"), Sm = (n, e) => n === e || !!n?.[ds]?.(e) || !1, HC = (n) => typeof n == "object", JC = Object.assign, GC = Object.keys, VC = (n, e) => {
|
|
13362
13354
|
for (const t in n)
|
|
13363
13355
|
e(n[t], t);
|
|
13364
13356
|
}, Uo = (n) => GC(n).length, YC = (n) => {
|
|
@@ -13474,7 +13466,7 @@ const sn = (n, e) => new rw(n, e), Eh = (n) => n.next() >= 0.5, Sa = (n, e, t) =
|
|
|
13474
13466
|
for (let s = 0; s < r; s++)
|
|
13475
13467
|
i += iw(n);
|
|
13476
13468
|
return i;
|
|
13477
|
-
}, Ca = (n, e) => e[Ou(n, 0, e.length - 1)], ow = Symbol("0schema");
|
|
13469
|
+
}, Ca = (n, e) => e[Ou(n, 0, e.length - 1)], ow = /* @__PURE__ */ Symbol("0schema");
|
|
13478
13470
|
class lw {
|
|
13479
13471
|
constructor() {
|
|
13480
13472
|
this._rerrs = [];
|
|
@@ -13720,7 +13712,7 @@ class cw extends at {
|
|
|
13720
13712
|
}
|
|
13721
13713
|
}
|
|
13722
13714
|
Ne(cw);
|
|
13723
|
-
const uw = Symbol("optional");
|
|
13715
|
+
const uw = /* @__PURE__ */ Symbol("optional");
|
|
13724
13716
|
class Tm extends at {
|
|
13725
13717
|
/**
|
|
13726
13718
|
* @param {S} shape
|
|
@@ -15915,37 +15907,20 @@ class Sc {
|
|
|
15915
15907
|
* Only call this if you know that this.right is defined
|
|
15916
15908
|
*/
|
|
15917
15909
|
forward() {
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
this.right.content
|
|
15924
|
-
);
|
|
15925
|
-
break;
|
|
15926
|
-
default:
|
|
15927
|
-
this.right.deleted || (this.index += this.right.length);
|
|
15928
|
-
break;
|
|
15929
|
-
}
|
|
15930
|
-
this.left = this.right, this.right = this.right.right;
|
|
15910
|
+
this.right === null && Cn(), this.right.content.constructor === ze ? this.right.deleted || Ei(
|
|
15911
|
+
this.currentAttributes,
|
|
15912
|
+
/** @type {ContentFormat} */
|
|
15913
|
+
this.right.content
|
|
15914
|
+
) : this.right.deleted || (this.index += this.right.length), this.left = this.right, this.right = this.right.right;
|
|
15931
15915
|
}
|
|
15932
15916
|
}
|
|
15933
15917
|
const Fh = (n, e, t) => {
|
|
15934
|
-
for (; e.right !== null && t > 0; )
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
|
|
15939
|
-
|
|
15940
|
-
e.right.content
|
|
15941
|
-
);
|
|
15942
|
-
break;
|
|
15943
|
-
default:
|
|
15944
|
-
e.right.deleted || (t < e.right.length && Gn(n, Se(e.right.id.client, e.right.id.clock + t)), e.index += e.right.length, t -= e.right.length);
|
|
15945
|
-
break;
|
|
15946
|
-
}
|
|
15947
|
-
e.left = e.right, e.right = e.right.right;
|
|
15948
|
-
}
|
|
15918
|
+
for (; e.right !== null && t > 0; )
|
|
15919
|
+
e.right.content.constructor === ze ? e.right.deleted || Ei(
|
|
15920
|
+
e.currentAttributes,
|
|
15921
|
+
/** @type {ContentFormat} */
|
|
15922
|
+
e.right.content
|
|
15923
|
+
) : e.right.deleted || (t < e.right.length && Gn(n, Se(e.right.id.client, e.right.id.clock + t)), e.index += e.right.length, t -= e.right.length), e.left = e.right, e.right = e.right.right;
|
|
15949
15924
|
return e;
|
|
15950
15925
|
}, Xs = (n, e, t, r) => {
|
|
15951
15926
|
const i = /* @__PURE__ */ new Map(), s = r ? Pl(e, t) : null;
|
|
@@ -16068,19 +16043,16 @@ const Fh = (n, e, t) => {
|
|
|
16068
16043
|
for (; e !== s; ) {
|
|
16069
16044
|
if (t === e && (a = !0), !e.deleted) {
|
|
16070
16045
|
const c = e.content;
|
|
16071
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
);
|
|
16082
|
-
break;
|
|
16083
|
-
}
|
|
16046
|
+
if (c.constructor === ze) {
|
|
16047
|
+
const { key: u, value: d } = (
|
|
16048
|
+
/** @type {ContentFormat} */
|
|
16049
|
+
c
|
|
16050
|
+
), f = r.get(u) ?? null;
|
|
16051
|
+
(o.get(u) !== c || f === d) && (e.delete(n), l++, !a && (i.get(u) ?? null) === d && f !== d && (f === null ? i.delete(u) : i.set(u, f))), !a && !e.deleted && Ei(
|
|
16052
|
+
i,
|
|
16053
|
+
/** @type {ContentFormat} */
|
|
16054
|
+
c
|
|
16055
|
+
);
|
|
16084
16056
|
}
|
|
16085
16057
|
}
|
|
16086
16058
|
e = /** @type {Item} */
|
|
@@ -16112,22 +16084,12 @@ const Fh = (n, e, t) => {
|
|
|
16112
16084
|
n._start
|
|
16113
16085
|
), i = n._start, s = Zt();
|
|
16114
16086
|
const o = gc(s);
|
|
16115
|
-
for (; i; )
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
/** @type {ContentFormat} */
|
|
16122
|
-
i.content
|
|
16123
|
-
);
|
|
16124
|
-
break;
|
|
16125
|
-
default:
|
|
16126
|
-
e += p_(t, r, i, s, o), s = gc(o), r = i;
|
|
16127
|
-
break;
|
|
16128
|
-
}
|
|
16129
|
-
i = i.right;
|
|
16130
|
-
}
|
|
16087
|
+
for (; i; )
|
|
16088
|
+
i.deleted === !1 && (i.content.constructor === ze ? Ei(
|
|
16089
|
+
o,
|
|
16090
|
+
/** @type {ContentFormat} */
|
|
16091
|
+
i.content
|
|
16092
|
+
) : (e += p_(t, r, i, s, o), s = gc(o), r = i)), i = i.right;
|
|
16131
16093
|
}
|
|
16132
16094
|
), e;
|
|
16133
16095
|
}, Ev = (n) => {
|
|
@@ -19274,7 +19236,8 @@ const i0 = (n) => {
|
|
|
19274
19236
|
L.class("bc-lexical-editor"),
|
|
19275
19237
|
L.class(`bc-lexical-editor--${a}`),
|
|
19276
19238
|
L.contenteditable(
|
|
19277
|
-
|
|
19239
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19240
|
+
i != null ? _e.map(i, (p) => !p) : !0
|
|
19278
19241
|
),
|
|
19279
19242
|
i != null ? L.class(
|
|
19280
19243
|
_e.map(
|
|
@@ -19526,7 +19489,7 @@ function k_(n, e, t) {
|
|
|
19526
19489
|
};
|
|
19527
19490
|
}
|
|
19528
19491
|
function T_(n, e) {
|
|
19529
|
-
return (t) => (r) =>
|
|
19492
|
+
return (t) => (r) => J_({
|
|
19530
19493
|
...r,
|
|
19531
19494
|
display: t,
|
|
19532
19495
|
disabled: n,
|
|
@@ -19700,7 +19663,7 @@ function l0({
|
|
|
19700
19663
|
}
|
|
19701
19664
|
}), U.focus());
|
|
19702
19665
|
};
|
|
19703
|
-
return
|
|
19666
|
+
return G_(
|
|
19704
19667
|
L.class("bc-lexical-toolbar"),
|
|
19705
19668
|
// Font group (font family and font size selects)
|
|
19706
19669
|
zn(
|
|
@@ -20189,7 +20152,10 @@ const V0 = (n) => {
|
|
|
20189
20152
|
L.class("bc-lexical-editor"),
|
|
20190
20153
|
L.class(`bc-lexical-editor--${a}`),
|
|
20191
20154
|
L.contenteditable(
|
|
20192
|
-
i != null ?
|
|
20155
|
+
i != null ? (
|
|
20156
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20157
|
+
_e.map(i, (S) => !S)
|
|
20158
|
+
) : !0
|
|
20193
20159
|
),
|
|
20194
20160
|
i != null ? L.class(
|
|
20195
20161
|
_e.map(
|
|
@@ -20706,6 +20672,7 @@ function q0({
|
|
|
20706
20672
|
L.class("bc-slash-command-palette__item"),
|
|
20707
20673
|
L.id(p),
|
|
20708
20674
|
L.role("option"),
|
|
20675
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20709
20676
|
Na.selected(g),
|
|
20710
20677
|
// Mouse hover handlers
|
|
20711
20678
|
mn((m) => {
|
|
@@ -20969,9 +20936,9 @@ function u0({
|
|
|
20969
20936
|
}), _n(() => $.disconnect());
|
|
20970
20937
|
}),
|
|
20971
20938
|
// Block type menu (uses BeatUI Menu + MenuItem)
|
|
20972
|
-
|
|
20939
|
+
j_({
|
|
20973
20940
|
items: () => r.map(
|
|
20974
|
-
(k) =>
|
|
20941
|
+
(k) => H_({
|
|
20975
20942
|
key: k.id,
|
|
20976
20943
|
content: k.label,
|
|
20977
20944
|
startContent: Aa({ icon: k.icon, size: "sm" }),
|
|
@@ -21053,7 +21020,10 @@ const Z0 = (n) => {
|
|
|
21053
21020
|
L.class("bc-lexical-editor"),
|
|
21054
21021
|
L.class(`bc-lexical-editor--${a}`),
|
|
21055
21022
|
L.contenteditable(
|
|
21056
|
-
i != null ?
|
|
21023
|
+
i != null ? (
|
|
21024
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21025
|
+
_e.map(i, (S) => !S)
|
|
21026
|
+
) : !0
|
|
21057
21027
|
),
|
|
21058
21028
|
i != null ? L.class(
|
|
21059
21029
|
_e.map(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { prop as H, WithElement as q, Fragment as v, aria as u, OneOfValue as j, OnDispose as z, on as p, Value as E, attr as s, html as D, Empty as W, computedOf as G, dataAttr as J } from "@tempots/dom";
|
|
2
2
|
import { PopOver as Q } from "@tempots/ui";
|
|
3
3
|
import { g as R } from "./timer-Rd2sKnvH.js";
|
|
4
|
-
import { u as X, A as Y } from "./use-animated-toggle-
|
|
4
|
+
import { u as X, A as Y } from "./use-animated-toggle-C7PTmnZi.js";
|
|
5
5
|
import { s as B } from "./session-id-3KiilioY.js";
|
|
6
6
|
function Z(m) {
|
|
7
7
|
const l = { fade: !0, scale: !0 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { WithElement as q, OnDispose as W, WithBrowserCtx as z, Value as j, render as R, html as E, dataAttr as F, attr as f, computedOf as A, prop as U, aria as B, on as H, When as O,
|
|
2
|
-
import { u as G } from "./use-animated-toggle-
|
|
1
|
+
import { WithElement as q, OnDispose as W, WithBrowserCtx as z, Value as j, render as R, html as E, dataAttr as F, attr as f, computedOf as A, Use as _, prop as U, aria as B, on as H, When as O, Fragment as K, coalesce as S } from "@tempots/dom";
|
|
2
|
+
import { u as G } from "./use-animated-toggle-C7PTmnZi.js";
|
|
3
3
|
import { g as J } from "./timer-Rd2sKnvH.js";
|
|
4
4
|
import { s as N } from "./session-id-3KiilioY.js";
|
|
5
|
-
import { B as P } from "./translations-
|
|
6
|
-
import { C as Q } from "./use-form-
|
|
7
|
-
import { B as D } from "./input-container-
|
|
5
|
+
import { B as P } from "./translations-BLlzvZgw.js";
|
|
6
|
+
import { C as Q } from "./use-form-BfzX3bwL.js";
|
|
7
|
+
import { B as D } from "./input-container-BTyCOubf.js";
|
|
8
8
|
const X = [
|
|
9
9
|
"a[href]",
|
|
10
10
|
"button:not([disabled])",
|
|
@@ -1 +1 @@
|
|
|
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-gVgMyNno.cjs"),j=require("./use-form-
|
|
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-gVgMyNno.cjs"),j=require("./use-form-i97PToWB.cjs"),B=require("./input-container-B31Seozh.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/monaco/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Value as c, Use as B, html as W, Task as F, attr as m, WithElement as I, OnDispose as R, effectOf as $ } from "@tempots/dom";
|
|
2
2
|
import { x as _ } from "../timer-Rd2sKnvH.js";
|
|
3
3
|
import { L as z } from "../link-portal-Cr2l9f3k.js";
|
|
4
|
-
import { T as N } from "../theme-
|
|
4
|
+
import { T as N } from "../theme-kQZEeusG.js";
|
|
5
5
|
const g = "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/", G = (e) => {
|
|
6
6
|
if (!e || typeof e != "object") return !1;
|
|
7
7
|
const o = e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const v=require("./text-input-w0eVcqk5.cjs"),t=require("@tempots/dom"),V=require("./input-container-B31Seozh.cjs"),f=require("./translations-gVgMyNno.cjs"),_=require("./use-form-i97PToWB.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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { Use as
|
|
3
|
-
import { a as S, I as
|
|
4
|
-
import { B as
|
|
5
|
-
import { C as W } from "./use-form-
|
|
1
|
+
import { C as x } from "./text-input-Cux5iiUC.js";
|
|
2
|
+
import { Use as E, input as U, attr as t, coalesce as j, Empty as w, on as m, emitValue as I, prop as z, computedOf as C, html as p, aria as A, When as P, Fragment as F, Value as g, Unless as M, Ensure as R } from "@tempots/dom";
|
|
3
|
+
import { a as S, I as O } from "./input-container-BTyCOubf.js";
|
|
4
|
+
import { B as V, I as $ } from "./translations-BLlzvZgw.js";
|
|
5
|
+
import { C as W } from "./use-form-BfzX3bwL.js";
|
|
6
6
|
const X = (n) => {
|
|
7
7
|
const l = {
|
|
8
8
|
name: "email",
|
|
@@ -20,14 +20,14 @@ const X = (n) => {
|
|
|
20
20
|
size: n.size,
|
|
21
21
|
color: "neutral"
|
|
22
22
|
});
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
(f) =>
|
|
23
|
+
return E(
|
|
24
|
+
V,
|
|
25
|
+
(f) => O({
|
|
26
26
|
...n,
|
|
27
27
|
before: b,
|
|
28
|
-
input:
|
|
29
|
-
|
|
30
|
-
t.placeholder(
|
|
28
|
+
input: U.email(
|
|
29
|
+
x(l),
|
|
30
|
+
t.placeholder(j(v, f.$.emailPlaceholderText)),
|
|
31
31
|
t.value(r),
|
|
32
32
|
t.class("bc-input"),
|
|
33
33
|
o != null ? m.blur(I(o)) : w,
|
|
@@ -53,40 +53,40 @@ const X = (n) => {
|
|
|
53
53
|
name: "password",
|
|
54
54
|
disabled: b,
|
|
55
55
|
...h
|
|
56
|
-
}, i =
|
|
56
|
+
}, i = z(!0), a = C(
|
|
57
57
|
i,
|
|
58
58
|
f
|
|
59
59
|
)((e, u) => e ? u ?? "current-password" : "off");
|
|
60
|
-
return V
|
|
60
|
+
return E(V, (e) => {
|
|
61
61
|
const u = C(
|
|
62
62
|
e.$.passwordPlaceholderText,
|
|
63
63
|
i,
|
|
64
64
|
_
|
|
65
|
-
)((y,
|
|
65
|
+
)((y, k, N) => k ? "•••••••••••••••" : N ?? y), B = p.button(
|
|
66
66
|
t.type("button"),
|
|
67
67
|
t.class("bc-input-container__password-toggle"),
|
|
68
|
-
|
|
68
|
+
A.label(e.$.togglePasswordVisibility),
|
|
69
69
|
m.click(() => i.update((y) => !y)),
|
|
70
70
|
P(
|
|
71
71
|
i,
|
|
72
|
-
() =>
|
|
73
|
-
() =>
|
|
72
|
+
() => $({ icon: "line-md:watch" }),
|
|
73
|
+
() => $({ icon: "line-md:watch-off" })
|
|
74
74
|
)
|
|
75
75
|
);
|
|
76
|
-
return
|
|
76
|
+
return O({
|
|
77
77
|
before: d,
|
|
78
78
|
disabled: b,
|
|
79
79
|
hasError: v,
|
|
80
80
|
input: p.input(
|
|
81
|
-
|
|
81
|
+
x({
|
|
82
82
|
...T,
|
|
83
83
|
autocomplete: a,
|
|
84
84
|
placeholder: u
|
|
85
85
|
}),
|
|
86
86
|
P(
|
|
87
87
|
i,
|
|
88
|
-
() =>
|
|
89
|
-
() =>
|
|
88
|
+
() => t.type("password"),
|
|
89
|
+
() => t.type("text")
|
|
90
90
|
),
|
|
91
91
|
t.class("bc-input"),
|
|
92
92
|
t.value(l),
|
|
@@ -94,7 +94,7 @@ const X = (n) => {
|
|
|
94
94
|
s != null ? m.change(I(s)) : w,
|
|
95
95
|
o != null ? m.input(I(o)) : w
|
|
96
96
|
),
|
|
97
|
-
after: c != null ?
|
|
97
|
+
after: c != null ? F(B, c) : B
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
};
|
|
@@ -106,7 +106,6 @@ function q(n) {
|
|
|
106
106
|
return "material-symbols:warning-outline";
|
|
107
107
|
case "danger":
|
|
108
108
|
return "material-symbols:error-outline";
|
|
109
|
-
case "info":
|
|
110
109
|
default:
|
|
111
110
|
return "material-symbols:info-outline";
|
|
112
111
|
}
|
|
@@ -119,7 +118,6 @@ function D(n) {
|
|
|
119
118
|
return "warning";
|
|
120
119
|
case "danger":
|
|
121
120
|
return "danger";
|
|
122
|
-
case "info":
|
|
123
121
|
default:
|
|
124
122
|
return "info";
|
|
125
123
|
}
|
|
@@ -142,7 +140,7 @@ function Z({
|
|
|
142
140
|
onDismiss: c,
|
|
143
141
|
class: v
|
|
144
142
|
}, ...b) {
|
|
145
|
-
const f =
|
|
143
|
+
const f = z(!0);
|
|
146
144
|
return P(f, () => {
|
|
147
145
|
const _ = g.map(
|
|
148
146
|
d,
|
|
@@ -153,8 +151,8 @@ function Z({
|
|
|
153
151
|
)(
|
|
154
152
|
(a, e) => a ?? (e === "danger" ? "alert" : "status")
|
|
155
153
|
);
|
|
156
|
-
return
|
|
157
|
-
|
|
154
|
+
return E(
|
|
155
|
+
V,
|
|
158
156
|
(a) => p.div(
|
|
159
157
|
t.class(
|
|
160
158
|
C(
|
|
@@ -170,7 +168,7 @@ function Z({
|
|
|
170
168
|
g.map(o, (e) => e === !1),
|
|
171
169
|
() => p.div(
|
|
172
170
|
t.class("bc-notice__icon"),
|
|
173
|
-
|
|
171
|
+
$({
|
|
174
172
|
icon: C(
|
|
175
173
|
o,
|
|
176
174
|
h
|