@tempots/beatui 0.89.0 → 0.91.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-MUKILk4c.js → ar-8Cko5i-Z.js} +18 -10
- package/dist/{ar-CBrjAlIY.cjs → ar-D2DjoXta.cjs} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-DvVmqjnk.js → auth-divider-B4n8lGx5.js} +7 -7
- package/dist/{auth-divider-Cj-xJxF_.cjs → auth-divider-VzrKnv2d.cjs} +1 -1
- package/dist/beatui.css +88 -79
- package/dist/beatui.tailwind.css +88 -79
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +5 -5
- package/dist/{de-CEsW1rVX.js → de-Bt-d2iKj.js} +12 -4
- package/dist/{de-CrBw41po.cjs → de-Cdf3432J.cjs} +1 -1
- package/dist/{deep-merge-OvVqSLSN.js → deep-merge-BdRgguFO.js} +38 -38
- package/dist/deep-merge-CI1g9sjh.cjs +1 -0
- package/dist/{duration-input-BCXujp0V.js → duration-input-BZhzeELL.js} +4 -4
- package/dist/{duration-input-MJz6UO6E.cjs → duration-input-a1fCTfKl.cjs} +1 -1
- package/dist/{editor-toolbar-group-Cnta0SOa.js → editor-toolbar-group-CzdBZ1yr.js} +2 -2
- package/dist/{editor-toolbar-group-BgWLVgMZ.cjs → editor-toolbar-group-DhKJdqER.cjs} +1 -1
- package/dist/{es-ChP-aFwC.js → es-2llfNFX2.js} +10 -2
- package/dist/{es-Ca5xT3NE.cjs → es-6fFPkKHL.cjs} +1 -1
- package/dist/{fa-CNsrlIqh.js → fa-CQVIBjKP.js} +18 -10
- package/dist/{fa-DhZJYuC6.cjs → fa-GXyNzAXz.cjs} +1 -1
- package/dist/{fr-1nSKSIlw.cjs → fr-C6EYTwSH.cjs} +1 -1
- package/dist/{fr-DgEFKpML.js → fr-CC3smTlW.js} +19 -11
- package/dist/{he-DhcurPt5.cjs → he-CJUgxvi8.cjs} +1 -1
- package/dist/{he-B4TqfISZ.js → he-CZilsN75.js} +16 -8
- package/dist/{hi-TSoDsngT.js → hi-CAZjwGv-.js} +16 -8
- package/dist/{hi-CxsIxbfM.cjs → hi-DqIR4VtX.cjs} +1 -1
- package/dist/{index-D4ZFV8Rs.cjs → index-B-cwxUsP.cjs} +1 -1
- package/dist/{index-DOc1_-Nm.js → index-BFzxpY7y.js} +1 -1
- package/dist/{index-D3QVPAme.cjs → index-BOC0cVoY.cjs} +2 -2
- package/dist/{index-D_aTUfqS.js → index-DJ9YIJcG.js} +6 -6
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +1847 -1822
- package/dist/{input-container-BBWCDGTv.js → input-container-9r1F3KuX.js} +1 -1
- package/dist/{input-container-B31Seozh.cjs → input-container-DiYEl_y8.cjs} +1 -1
- package/dist/{it-D_IcaYxp.cjs → it-BvHsJ7fH.cjs} +1 -1
- package/dist/{it-BrbebXg4.js → it-D6RXFIL6.js} +19 -11
- package/dist/{ja-CMGqpPo7.cjs → ja-B2gP7OHY.cjs} +1 -1
- package/dist/{ja-DcfOktrV.js → ja-D7zsz4Ij.js} +15 -7
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +11 -12
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +1 -1
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +6 -6
- package/dist/{ko-BPl5rP97.cjs → ko-BddhddIA.cjs} +1 -1
- package/dist/{ko-73e6t369.js → ko-taN2Npr4.js} +12 -4
- package/dist/lexical/index.cjs.js +30 -30
- package/dist/lexical/index.es.js +5741 -5527
- package/dist/lexical.css +31 -28
- package/dist/{modal-jJMS0ZlW.cjs → modal-C-d5Btti.cjs} +1 -1
- package/dist/{modal-BBJWY7NB.js → modal-DTz98Dk7.js} +3 -3
- package/dist/{nl-BSfaHFt0.cjs → nl-COrtZUnH.cjs} +1 -1
- package/dist/{nl-Bq-1-ulc.js → nl-CRC6r4Q4.js} +22 -14
- package/dist/{notice-9lpZ-VDn.cjs → notice-BDTfBGtx.cjs} +1 -1
- package/dist/{notice-AUVH8Lho.js → notice-CZuh-h6a.js} +4 -4
- package/dist/{oneof-branch-detection-BsGhMslW.cjs → oneof-branch-detection-D6Xa8qNR.cjs} +1 -1
- package/dist/{oneof-branch-detection-BQnRjp9P.js → oneof-branch-detection-DCPwyutI.js} +1 -1
- package/dist/{pl-D-O4sCnr.cjs → pl-BHI4zBgV.cjs} +1 -1
- package/dist/{pl-Du9-VCfW.js → pl-C6qNs0Lq.js} +19 -11
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-chEEYLlt.cjs → pt-BGzC9MhU.cjs} +1 -1
- package/dist/{pt-B2UqqSAB.js → pt-CcWPLqBh.js} +20 -12
- package/dist/{ru-B46hVpFF.cjs → ru-CXeFbIPb.cjs} +1 -1
- package/dist/{ru-DiWa2inw.js → ru-Dt9-9m0E.js} +20 -12
- package/dist/tailwind/vite-plugin.es.js +0 -1
- package/dist/{text-input-6FD7p7hN.js → text-input-BgPx8BbG.js} +1 -1
- package/dist/{text-input-w0eVcqk5.cjs → text-input-DUnhBUd6.cjs} +1 -1
- package/dist/{toolbar-Cr0JGj5h.js → toolbar-DKOh_gbA.js} +1 -1
- package/dist/{toolbar-BR8In7O0.cjs → toolbar-Dkc2y1dI.cjs} +1 -1
- package/dist/{tr-Culcm2Zb.js → tr-CDTWeRY0.js} +14 -6
- package/dist/{tr-CaMaflJL.cjs → tr-CdOtQAtA.cjs} +1 -1
- package/dist/{translations-CZ0KOii3.cjs → translations-BdCtLBZt.cjs} +1 -1
- package/dist/{translations-uEUkO6gJ.js → translations-CiBhB2FV.js} +135 -127
- package/dist/translations-Cy9hoMGV.cjs +1 -0
- package/dist/{translations-Cttn6w0G.js → translations-NBY7SubC.js} +1 -1
- package/dist/types/beatui-i18n/default.d.ts +8 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +8 -0
- package/dist/types/beatui-i18n/translations.d.ts +8 -0
- package/dist/types/components/form/input/index.d.ts +2 -0
- package/dist/types/components/form/input/nullable-color-input.d.ts +31 -0
- package/dist/types/components/form/input/nullable-color-swatch-input.d.ts +39 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +3 -1
- package/dist/types/components/lexical/toolbar/index.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-registry.d.ts +16 -0
- package/dist/types/lexical/index.d.ts +2 -1
- package/dist/types/lexical/plugins/element-style.d.ts +29 -0
- package/dist/types/lexical/plugins/index.d.ts +1 -0
- package/dist/types/lexical/types.d.ts +43 -2
- package/dist/{ur-CvGP14xo.cjs → ur-C7itXvnC.cjs} +1 -1
- package/dist/{ur-Deb-uH6b.js → ur-CLrK5FPQ.js} +16 -8
- package/dist/{use-form-lg6-7Brc.js → use-form-Cd8YFWaN.js} +3 -3
- package/dist/{use-form-i97PToWB.cjs → use-form-DQVN_Zjb.cjs} +2 -2
- package/dist/{vi-CUsCVh3n.js → vi-B1_QDUQJ.js} +21 -13
- package/dist/{vi-Df4WZe9y.cjs → vi-CQrUWB3y.cjs} +1 -1
- package/dist/{widget-customization-CDD72zYs.js → widget-customization-BY4Ox_4e.js} +25 -25
- package/dist/{widget-customization-BLvD4Lqt.cjs → widget-customization-eyQ2pxvu.cjs} +1 -1
- package/dist/{zh-C5a9NGFW.cjs → zh-DWswYYTS.cjs} +1 -1
- package/dist/{zh-Dil2Jft8.js → zh-rDtQ92Pp.js} +12 -4
- package/package.json +1 -1
- package/dist/deep-merge-Dgy9xj6w.cjs +0 -1
- package/dist/translations-gVgMyNno.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { localStorageProp as w, computedOf as p, makeProviderMark as B, Use as
|
|
2
|
-
import { WhenInViewport as
|
|
1
|
+
import { localStorageProp as w, computedOf as p, makeProviderMark as B, Use as R, html as g, attr as u, When as k, Fragment as v, aria as f, coalesce as T, style as I, prop as P } from "@tempots/dom";
|
|
2
|
+
import { WhenInViewport as M, Query as N } from "@tempots/ui";
|
|
3
3
|
import { b as $, g as V } from "./colors-BY0Ja_bf.js";
|
|
4
4
|
function O(e, {
|
|
5
5
|
units: t = ["B", "KB", "MB", "GB", "TB"],
|
|
@@ -13,21 +13,21 @@ function O(e, {
|
|
|
13
13
|
unitDisplay: "short",
|
|
14
14
|
maximumFractionDigits: 0
|
|
15
15
|
}).format(0).replace("byte", t[0]);
|
|
16
|
-
let
|
|
16
|
+
let r, n;
|
|
17
17
|
if (typeof e == "bigint") {
|
|
18
|
-
let
|
|
19
|
-
for (
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
let i = e < 0n ? -e : e;
|
|
19
|
+
for (r = 0; i >= 1024n && r < t.length - 1; )
|
|
20
|
+
i = i / 1024n, r++;
|
|
21
|
+
n = Number(e) / Math.pow(1024, r);
|
|
22
22
|
} else
|
|
23
|
-
|
|
23
|
+
r = Math.floor(Math.log(Math.abs(e)) / Math.log(1024)), r = Math.min(r, t.length - 1), n = e / Math.pow(1024, r);
|
|
24
24
|
return new Intl.NumberFormat(a, {
|
|
25
25
|
style: "unit",
|
|
26
26
|
unit: "byte",
|
|
27
27
|
unitDisplay: "short",
|
|
28
|
-
minimumFractionDigits:
|
|
29
|
-
maximumFractionDigits:
|
|
30
|
-
}).format(
|
|
28
|
+
minimumFractionDigits: r === 0 ? 0 : o,
|
|
29
|
+
maximumFractionDigits: r === 0 ? 0 : o
|
|
30
|
+
}).format(n).replace("byte", t[r]);
|
|
31
31
|
}
|
|
32
32
|
const U = {
|
|
33
33
|
loadingExtended: "Loading, please wait",
|
|
@@ -91,14 +91,14 @@ const U = {
|
|
|
91
91
|
filesInputInstructions: (e, t, o) => {
|
|
92
92
|
let a = e == null || e > 1 ? "Click to choose or drag files here" : "Click to choose or drag a file here";
|
|
93
93
|
if (e || t) {
|
|
94
|
-
const
|
|
95
|
-
if (e != null && e > 1 &&
|
|
96
|
-
const
|
|
94
|
+
const r = [];
|
|
95
|
+
if (e != null && e > 1 && r.push(`up to ${e} files`), t && o) {
|
|
96
|
+
const n = O(t, {
|
|
97
97
|
units: o
|
|
98
98
|
});
|
|
99
|
-
|
|
99
|
+
r.push(`max ${n} each`);
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
r.length > 0 && (a += ` (${r.join(", ")})`);
|
|
102
102
|
}
|
|
103
103
|
return a;
|
|
104
104
|
},
|
|
@@ -174,7 +174,15 @@ const U = {
|
|
|
174
174
|
noCommandsFound: "No commands found",
|
|
175
175
|
changeBlockType: "Change block type",
|
|
176
176
|
blockTypes: "Block types",
|
|
177
|
-
enterUrl: "Enter URL:"
|
|
177
|
+
enterUrl: "Enter URL:",
|
|
178
|
+
tableActions: "Table actions",
|
|
179
|
+
insertRowAbove: "Insert row above",
|
|
180
|
+
insertRowBelow: "Insert row below",
|
|
181
|
+
insertColumnLeft: "Insert column left",
|
|
182
|
+
insertColumnRight: "Insert column right",
|
|
183
|
+
deleteRow: "Delete row",
|
|
184
|
+
deleteColumn: "Delete column",
|
|
185
|
+
deleteTable: "Delete table"
|
|
178
186
|
},
|
|
179
187
|
// ProseMirror editor
|
|
180
188
|
prosemirror: {
|
|
@@ -199,7 +207,7 @@ const U = {
|
|
|
199
207
|
pageOutOfRange: (e, t) => `Page ${e} is out of range (1-${t})`,
|
|
200
208
|
renderFailed: "Failed to render PDF page"
|
|
201
209
|
}
|
|
202
|
-
}, C = U,
|
|
210
|
+
}, C = U, x = "en", A = /* @__PURE__ */ new Set([
|
|
203
211
|
"ar",
|
|
204
212
|
// Arabic
|
|
205
213
|
"he",
|
|
@@ -228,9 +236,9 @@ const U = {
|
|
|
228
236
|
function D(e) {
|
|
229
237
|
if (!e) return "ltr";
|
|
230
238
|
const t = e.split(/[-_]/)[0].toLowerCase();
|
|
231
|
-
return
|
|
239
|
+
return A.has(t) ? "rtl" : "ltr";
|
|
232
240
|
}
|
|
233
|
-
function
|
|
241
|
+
function j(e, t) {
|
|
234
242
|
return e === "auto" ? D(t) : e;
|
|
235
243
|
}
|
|
236
244
|
function ue(e) {
|
|
@@ -272,15 +280,15 @@ const z = {
|
|
|
272
280
|
t,
|
|
273
281
|
o
|
|
274
282
|
)(
|
|
275
|
-
(
|
|
283
|
+
(n, l) => j(l, n)
|
|
276
284
|
);
|
|
277
285
|
return {
|
|
278
286
|
value: {
|
|
279
287
|
locale: t,
|
|
280
|
-
setLocale: (
|
|
288
|
+
setLocale: (n) => t.set(n),
|
|
281
289
|
direction: a,
|
|
282
290
|
directionPreference: o,
|
|
283
|
-
setDirectionPreference: (
|
|
291
|
+
setDirectionPreference: (n) => o.set(n)
|
|
284
292
|
},
|
|
285
293
|
dispose: () => {
|
|
286
294
|
t.dispose(), o.dispose(), a.dispose();
|
|
@@ -315,22 +323,22 @@ function S(e, t) {
|
|
|
315
323
|
function ge(e, t, o) {
|
|
316
324
|
const a = y[e];
|
|
317
325
|
if (a) {
|
|
318
|
-
const
|
|
319
|
-
if (
|
|
320
|
-
return { backgroundColor:
|
|
326
|
+
const n = a[o];
|
|
327
|
+
if (n)
|
|
328
|
+
return { backgroundColor: n.backgroundColor, textColor: n.color };
|
|
321
329
|
}
|
|
322
330
|
if (t === "solid") {
|
|
323
|
-
const
|
|
324
|
-
if (
|
|
331
|
+
const n = S(e, o);
|
|
332
|
+
if (n)
|
|
325
333
|
return {
|
|
326
|
-
backgroundColor:
|
|
327
|
-
textColor:
|
|
334
|
+
backgroundColor: n.backgroundColor,
|
|
335
|
+
textColor: n.color
|
|
328
336
|
};
|
|
329
337
|
}
|
|
330
|
-
const
|
|
338
|
+
const r = H[t][o];
|
|
331
339
|
return {
|
|
332
|
-
backgroundColor: d(e,
|
|
333
|
-
textColor:
|
|
340
|
+
backgroundColor: d(e, r.bgShade),
|
|
341
|
+
textColor: r.textColor
|
|
334
342
|
};
|
|
335
343
|
}
|
|
336
344
|
const q = {
|
|
@@ -346,27 +354,27 @@ const q = {
|
|
|
346
354
|
function pe(e, t, o) {
|
|
347
355
|
const a = y[e];
|
|
348
356
|
if (a) {
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
351
|
-
return { backgroundColor:
|
|
357
|
+
const n = a[o];
|
|
358
|
+
if (n)
|
|
359
|
+
return { backgroundColor: n.backgroundColor, textColor: n.color };
|
|
352
360
|
}
|
|
353
361
|
if (t === "solid") {
|
|
354
|
-
const
|
|
355
|
-
if (
|
|
362
|
+
const n = S(e, o);
|
|
363
|
+
if (n)
|
|
356
364
|
return {
|
|
357
|
-
backgroundColor:
|
|
358
|
-
textColor:
|
|
365
|
+
backgroundColor: n.backgroundColor,
|
|
366
|
+
textColor: n.color
|
|
359
367
|
};
|
|
360
|
-
const
|
|
368
|
+
const l = q[o];
|
|
361
369
|
return {
|
|
362
|
-
backgroundColor: d(e,
|
|
363
|
-
textColor:
|
|
370
|
+
backgroundColor: d(e, l.shade),
|
|
371
|
+
textColor: l.textColor
|
|
364
372
|
};
|
|
365
373
|
}
|
|
366
|
-
const
|
|
374
|
+
const r = t === "light" ? G[o] : K[o];
|
|
367
375
|
return {
|
|
368
|
-
backgroundColor: d(e,
|
|
369
|
-
textColor:
|
|
376
|
+
backgroundColor: d(e, r.shade),
|
|
377
|
+
textColor: r.textColor
|
|
370
378
|
};
|
|
371
379
|
}
|
|
372
380
|
function me(e, t) {
|
|
@@ -382,7 +390,7 @@ function me(e, t) {
|
|
|
382
390
|
return d(e, o);
|
|
383
391
|
}
|
|
384
392
|
}
|
|
385
|
-
function
|
|
393
|
+
function be(e, t) {
|
|
386
394
|
return e === "white" ? "var(--color-white)" : e === "black" ? "var(--color-black)" : e === "transparent" ? "inherit" : d(e, t === "light" ? 800 : 200);
|
|
387
395
|
}
|
|
388
396
|
function L(e, t, o) {
|
|
@@ -399,8 +407,8 @@ function J() {
|
|
|
399
407
|
return F ? new Promise((e, t) => {
|
|
400
408
|
const o = indexedDB.open(W, 1);
|
|
401
409
|
o.onupgradeneeded = function(a) {
|
|
402
|
-
const
|
|
403
|
-
|
|
410
|
+
const r = a.target.result;
|
|
411
|
+
r.objectStoreNames.contains("icons") || r.createObjectStore("icons");
|
|
404
412
|
}, o.onsuccess = function() {
|
|
405
413
|
e(o.result);
|
|
406
414
|
}, o.onerror = function() {
|
|
@@ -408,14 +416,14 @@ function J() {
|
|
|
408
416
|
};
|
|
409
417
|
}) : Promise.reject(new Error("IndexedDB not available"));
|
|
410
418
|
}
|
|
411
|
-
const
|
|
419
|
+
const b = F ? J() : null;
|
|
412
420
|
async function Q(e, t) {
|
|
413
421
|
try {
|
|
414
|
-
if (
|
|
415
|
-
const o = await
|
|
416
|
-
return new Promise((a,
|
|
417
|
-
const
|
|
418
|
-
|
|
422
|
+
if (b) {
|
|
423
|
+
const o = await b;
|
|
424
|
+
return new Promise((a, r) => {
|
|
425
|
+
const n = o.transaction("icons", "readwrite");
|
|
426
|
+
n.objectStore("icons").put(t, e), n.oncomplete = () => a(), n.onerror = r;
|
|
419
427
|
});
|
|
420
428
|
} else
|
|
421
429
|
m.set(e, t);
|
|
@@ -425,13 +433,13 @@ async function Q(e, t) {
|
|
|
425
433
|
}
|
|
426
434
|
async function Y(e) {
|
|
427
435
|
try {
|
|
428
|
-
if (
|
|
429
|
-
const t = await
|
|
436
|
+
if (b) {
|
|
437
|
+
const t = await b;
|
|
430
438
|
return new Promise((o, a) => {
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
o(
|
|
434
|
-
},
|
|
439
|
+
const l = t.transaction("icons", "readonly").objectStore("icons").get(e);
|
|
440
|
+
l.onsuccess = function() {
|
|
441
|
+
o(l.result);
|
|
442
|
+
}, l.onerror = a;
|
|
435
443
|
});
|
|
436
444
|
} else
|
|
437
445
|
return m.get(e) || null;
|
|
@@ -462,58 +470,58 @@ function te(e, t = "solid") {
|
|
|
462
470
|
const o = L(e, t, "light"), a = L(e, t, "dark");
|
|
463
471
|
return `--icon-color: ${o}; --icon-color-dark: ${a}`;
|
|
464
472
|
}
|
|
465
|
-
function
|
|
473
|
+
function ke({
|
|
466
474
|
icon: e,
|
|
467
475
|
size: t = "md",
|
|
468
476
|
color: o,
|
|
469
477
|
title: a,
|
|
470
|
-
accessibility:
|
|
471
|
-
tone:
|
|
472
|
-
}, ...
|
|
478
|
+
accessibility: r = "auto",
|
|
479
|
+
tone: n = "solid"
|
|
480
|
+
}, ...l) {
|
|
473
481
|
const c = p(
|
|
474
|
-
|
|
482
|
+
r,
|
|
475
483
|
a
|
|
476
|
-
)((
|
|
477
|
-
return
|
|
478
|
-
|
|
479
|
-
(
|
|
484
|
+
)((i, s) => i === "decorative" ? !1 : i === "informative" ? !0 : s != null && s !== "");
|
|
485
|
+
return R(
|
|
486
|
+
le,
|
|
487
|
+
(i) => g.span(
|
|
480
488
|
u.class(
|
|
481
489
|
p(t, o)((s) => ee(s ?? "md"))
|
|
482
490
|
),
|
|
483
491
|
u.style(
|
|
484
492
|
p(
|
|
485
493
|
o,
|
|
486
|
-
|
|
494
|
+
n
|
|
487
495
|
)(
|
|
488
496
|
(s, h) => te(s ?? void 0, h ?? "solid")
|
|
489
497
|
)
|
|
490
498
|
),
|
|
491
499
|
// Add accessibility attributes based on icon type
|
|
492
|
-
|
|
500
|
+
k(
|
|
493
501
|
c,
|
|
494
502
|
() => v(
|
|
495
503
|
u.role("img"),
|
|
496
|
-
f.label(
|
|
504
|
+
f.label(T(a, i.$.iconDescription))
|
|
497
505
|
),
|
|
498
506
|
() => f.hidden(!0)
|
|
499
507
|
),
|
|
500
|
-
|
|
508
|
+
M(
|
|
501
509
|
{ once: !0 },
|
|
502
|
-
() =>
|
|
510
|
+
() => N({
|
|
503
511
|
request: e,
|
|
504
512
|
load: ({ request: s }) => X(s),
|
|
505
513
|
convertError: String,
|
|
506
514
|
success: ({ value: s }) => g.span(
|
|
507
|
-
|
|
508
|
-
|
|
515
|
+
I.width("100%"),
|
|
516
|
+
I.height("100%"),
|
|
509
517
|
u.innerHTML(s)
|
|
510
518
|
),
|
|
511
519
|
pending: () => g.span(
|
|
512
520
|
u.class("animate-spin"),
|
|
513
521
|
// Loading state accessibility
|
|
514
|
-
|
|
522
|
+
k(
|
|
515
523
|
c,
|
|
516
|
-
() => v(u.role("img"), f.label(
|
|
524
|
+
() => v(u.role("img"), f.label(i.$.loadingIcon)),
|
|
517
525
|
() => f.hidden(!0)
|
|
518
526
|
),
|
|
519
527
|
"↻"
|
|
@@ -522,16 +530,16 @@ function be({
|
|
|
522
530
|
u.title(s),
|
|
523
531
|
u.class("text-red-500"),
|
|
524
532
|
// Error state accessibility
|
|
525
|
-
|
|
533
|
+
k(
|
|
526
534
|
c,
|
|
527
|
-
() => v(u.role("img"), f.label(
|
|
535
|
+
() => v(u.role("img"), f.label(i.$.failedToLoadIcon)),
|
|
528
536
|
() => f.hidden(!0)
|
|
529
537
|
),
|
|
530
538
|
"🚫"
|
|
531
539
|
)
|
|
532
540
|
})
|
|
533
541
|
),
|
|
534
|
-
...
|
|
542
|
+
...l
|
|
535
543
|
)
|
|
536
544
|
);
|
|
537
545
|
}
|
|
@@ -539,17 +547,17 @@ function oe(e) {
|
|
|
539
547
|
const t = e.split("-"), o = [e];
|
|
540
548
|
return t.length > 1 && o.push(t[0]), o;
|
|
541
549
|
}
|
|
542
|
-
function
|
|
550
|
+
function ne({
|
|
543
551
|
locale: e,
|
|
544
552
|
defaultLocale: t = "en-US",
|
|
545
553
|
defaultMessages: o,
|
|
546
554
|
localeLoader: a
|
|
547
555
|
}) {
|
|
548
|
-
const
|
|
549
|
-
if (c ===
|
|
550
|
-
|
|
551
|
-
const
|
|
552
|
-
for (const s of
|
|
556
|
+
const r = P(t), n = P(o), l = e.on(async (c) => {
|
|
557
|
+
if (c === r.value) return;
|
|
558
|
+
r.set(c);
|
|
559
|
+
const i = oe(c);
|
|
560
|
+
for (const s of i)
|
|
553
561
|
try {
|
|
554
562
|
const h = await a(s);
|
|
555
563
|
if (
|
|
@@ -561,25 +569,25 @@ function re({
|
|
|
561
569
|
);
|
|
562
570
|
return;
|
|
563
571
|
}
|
|
564
|
-
if (c ===
|
|
565
|
-
|
|
572
|
+
if (c === r.value) {
|
|
573
|
+
n.set(h);
|
|
566
574
|
return;
|
|
567
575
|
}
|
|
568
576
|
} catch {
|
|
569
577
|
continue;
|
|
570
578
|
}
|
|
571
|
-
console.warn(`No locale found for "${e.value}", using fallback`), c ===
|
|
579
|
+
console.warn(`No locale found for "${e.value}", using fallback`), c === r.value && n.set(o);
|
|
572
580
|
});
|
|
573
581
|
return {
|
|
574
582
|
/** Clean up all resources and event listeners */
|
|
575
583
|
dispose: () => {
|
|
576
|
-
|
|
584
|
+
l(), r.dispose(), n.dispose();
|
|
577
585
|
},
|
|
578
586
|
/** Translation functions that return reactive signals */
|
|
579
|
-
t:
|
|
587
|
+
t: n
|
|
580
588
|
};
|
|
581
589
|
}
|
|
582
|
-
function
|
|
590
|
+
function re({
|
|
583
591
|
defaultLocale: e,
|
|
584
592
|
defaultMessages: t,
|
|
585
593
|
localeLoader: o,
|
|
@@ -587,60 +595,60 @@ function ne({
|
|
|
587
595
|
}) {
|
|
588
596
|
return {
|
|
589
597
|
mark: B(a),
|
|
590
|
-
create: (
|
|
598
|
+
create: (r, n) => {
|
|
591
599
|
const {
|
|
592
|
-
value: { locale:
|
|
593
|
-
} =
|
|
594
|
-
locale:
|
|
600
|
+
value: { locale: l }
|
|
601
|
+
} = n.getProvider(z.mark), { t: c, dispose: i } = ne({
|
|
602
|
+
locale: l,
|
|
595
603
|
defaultMessages: t,
|
|
596
604
|
defaultLocale: e,
|
|
597
605
|
localeLoader: o
|
|
598
606
|
});
|
|
599
607
|
return {
|
|
600
608
|
value: c,
|
|
601
|
-
dispose:
|
|
609
|
+
dispose: i
|
|
602
610
|
};
|
|
603
611
|
}
|
|
604
612
|
};
|
|
605
613
|
}
|
|
606
614
|
const ae = /* @__PURE__ */ Object.assign({
|
|
607
|
-
"./locales/ar.ts": () => import("./ar-
|
|
608
|
-
"./locales/de.ts": () => import("./de-
|
|
609
|
-
"./locales/es.ts": () => import("./es-
|
|
610
|
-
"./locales/fa.ts": () => import("./fa-
|
|
611
|
-
"./locales/fr.ts": () => import("./fr-
|
|
612
|
-
"./locales/he.ts": () => import("./he-
|
|
613
|
-
"./locales/hi.ts": () => import("./hi-
|
|
614
|
-
"./locales/it.ts": () => import("./it-
|
|
615
|
-
"./locales/ja.ts": () => import("./ja-
|
|
616
|
-
"./locales/ko.ts": () => import("./ko-
|
|
617
|
-
"./locales/nl.ts": () => import("./nl-
|
|
618
|
-
"./locales/pl.ts": () => import("./pl-
|
|
619
|
-
"./locales/pt.ts": () => import("./pt-
|
|
620
|
-
"./locales/ru.ts": () => import("./ru-
|
|
621
|
-
"./locales/tr.ts": () => import("./tr-
|
|
622
|
-
"./locales/ur.ts": () => import("./ur-
|
|
623
|
-
"./locales/vi.ts": () => import("./vi-
|
|
624
|
-
"./locales/zh.ts": () => import("./zh-
|
|
625
|
-
}),
|
|
626
|
-
defaultLocale:
|
|
615
|
+
"./locales/ar.ts": () => import("./ar-8Cko5i-Z.js").then((e) => e.default),
|
|
616
|
+
"./locales/de.ts": () => import("./de-Bt-d2iKj.js").then((e) => e.default),
|
|
617
|
+
"./locales/es.ts": () => import("./es-2llfNFX2.js").then((e) => e.default),
|
|
618
|
+
"./locales/fa.ts": () => import("./fa-CQVIBjKP.js").then((e) => e.default),
|
|
619
|
+
"./locales/fr.ts": () => import("./fr-CC3smTlW.js").then((e) => e.default),
|
|
620
|
+
"./locales/he.ts": () => import("./he-CZilsN75.js").then((e) => e.default),
|
|
621
|
+
"./locales/hi.ts": () => import("./hi-CAZjwGv-.js").then((e) => e.default),
|
|
622
|
+
"./locales/it.ts": () => import("./it-D6RXFIL6.js").then((e) => e.default),
|
|
623
|
+
"./locales/ja.ts": () => import("./ja-D7zsz4Ij.js").then((e) => e.default),
|
|
624
|
+
"./locales/ko.ts": () => import("./ko-taN2Npr4.js").then((e) => e.default),
|
|
625
|
+
"./locales/nl.ts": () => import("./nl-CRC6r4Q4.js").then((e) => e.default),
|
|
626
|
+
"./locales/pl.ts": () => import("./pl-C6qNs0Lq.js").then((e) => e.default),
|
|
627
|
+
"./locales/pt.ts": () => import("./pt-CcWPLqBh.js").then((e) => e.default),
|
|
628
|
+
"./locales/ru.ts": () => import("./ru-Dt9-9m0E.js").then((e) => e.default),
|
|
629
|
+
"./locales/tr.ts": () => import("./tr-CDTWeRY0.js").then((e) => e.default),
|
|
630
|
+
"./locales/ur.ts": () => import("./ur-CLrK5FPQ.js").then((e) => e.default),
|
|
631
|
+
"./locales/vi.ts": () => import("./vi-B1_QDUQJ.js").then((e) => e.default),
|
|
632
|
+
"./locales/zh.ts": () => import("./zh-rDtQ92Pp.js").then((e) => e.default)
|
|
633
|
+
}), le = re({
|
|
634
|
+
defaultLocale: x,
|
|
627
635
|
defaultMessages: C,
|
|
628
636
|
localeLoader: async (e) => {
|
|
629
|
-
if (e ===
|
|
637
|
+
if (e === x) return C;
|
|
630
638
|
const t = ae[`./locales/${e}.ts`];
|
|
631
639
|
return t ? await t() : C;
|
|
632
640
|
},
|
|
633
641
|
providerName: "BeatUII18n"
|
|
634
642
|
});
|
|
635
643
|
export {
|
|
636
|
-
|
|
637
|
-
|
|
644
|
+
le as B,
|
|
645
|
+
ke as I,
|
|
638
646
|
z as L,
|
|
639
647
|
me as a,
|
|
640
648
|
ge as b,
|
|
641
649
|
E as c,
|
|
642
650
|
C as d,
|
|
643
|
-
|
|
651
|
+
x as e,
|
|
644
652
|
O as f,
|
|
645
653
|
ue as g,
|
|
646
654
|
pe as h,
|
|
@@ -648,11 +656,11 @@ export {
|
|
|
648
656
|
Y as j,
|
|
649
657
|
fe as k,
|
|
650
658
|
he as l,
|
|
651
|
-
|
|
659
|
+
re as m,
|
|
652
660
|
F as n,
|
|
653
661
|
de as o,
|
|
654
|
-
|
|
655
|
-
|
|
662
|
+
ne as p,
|
|
663
|
+
j as r,
|
|
656
664
|
Q as s,
|
|
657
|
-
|
|
665
|
+
be as t
|
|
658
666
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("@tempots/dom"),C=require("@tempots/ui"),y=require("./colors-BI0YhONJ.cjs");function w(e,{units:t=["B","KB","MB","GB","TB"],decimalPlaces:o=0,locale:l}={}){if(e===0||e===0n)return new Intl.NumberFormat(l,{style:"unit",unit:"byte",unitDisplay:"short",maximumFractionDigits:0}).format(0).replace("byte",t[0]);let n,r;if(typeof e=="bigint"){let s=e<0n?-e:e;for(n=0;s>=1024n&&n<t.length-1;)s=s/1024n,n++;r=Number(e)/Math.pow(1024,n)}else n=Math.floor(Math.log(Math.abs(e))/Math.log(1024)),n=Math.min(n,t.length-1),r=e/Math.pow(1024,n);return new Intl.NumberFormat(l,{style:"unit",unit:"byte",unitDisplay:"short",minimumFractionDigits:n===0?0:o,maximumFractionDigits:n===0?0:o}).format(r).replace("byte",t[n])}const T={loadingExtended:"Loading, please wait",loadingShort:"Loading...",locale:"Locale",iconDescription:"Icon",loadingIcon:"Loading icon",failedToLoadIcon:"Failed to load icon",editLabel:"Edit",selectOne:"Select one",selectNone:"None",selectMany:"Select many",noResults:"No results",passwordPlaceholderText:"Secret Password",togglePasswordVisibility:"Toggle password visibility",toggleMenu:"Toggle menu",toggleAside:"Toggle aside",mainNavigation:"Main navigation",sidebar:"Sidebar",closeDrawer:"Close drawer",closeModal:"Close modal",confirm:"Confirm",cancel:"Cancel",addLabel:"Add",removeItem:"Remove item",currentLocale:"English",ar:"Arabic",de:"German",en:"English",es:"Spanish",fr:"French",hi:"Hindi",it:"Italian",ja:"Japanese",ko:"Korean",nl:"Dutch",pl:"Polish",pt:"Portuguese",ru:"Russian",tr:"Turkish",vi:"Vietnamese",zh:"Chinese",he:"Hebrew",fa:"Persian",ur:"Urdu",emailPlaceholderText:"Enter your email",incrementValue:"Increment value",decrementValue:"Decrement value",dropZoneInstructions:e=>e?"Click to choose or drag files here, or press Enter or Space to open file selector":"Drag files here",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Remove file",clearAllFiles:"Clear all files",clearValue:"Reset",unknownType:"Unknown type",filesInputInstructions:(e,t,o)=>{let l=e==null||e>1?"Click to choose or drag files here":"Click to choose or drag a file here";if(e||t){const n=[];if(e!=null&&e>1&&n.push(`up to ${e} files`),t&&o){const r=w(t,{units:o});n.push(`max ${r} each`)}n.length>0&&(l+=` (${n.join(", ")})`)}return l},paginationLabel:"Pagination",firstPage:"First page",previousPage:"Previous page",nextPage:"Next page",lastPage:"Last page",breadcrumbs:"Breadcrumbs",commandPalette:"Command palette",typeACommand:"Type a command...",noResultsFound:"No results found",noMatchingCommands:"No matching commands",appearanceSystem:"System",appearanceLight:"Light",appearanceDark:"Dark",ok:"OK",changeTypeConfirmation:"Changing type will clear the current value. Continue?",notifications:"Notifications",markAllAsRead:"Mark all as read",noNotifications:"No notifications",schemaConflictsDetected:"Schema Conflicts Detected",schemaViolationsDetected:"Schema Violations Detected",properties:"Properties",uploading:"Uploading...",dropFilesOrBrowse:"Drop files here or click to browse",acceptedTypes:e=>`Accepted types: ${e}`,enterUrlPrompt:"Enter URL:",exceeded:"(exceeded)",pdfPreview:"PDF Preview",lexical:{fontFamily:"Font Family",fontSize:"Font Size",fontColor:"Font Color",highlightColor:"Highlight Color",backgroundColor:"Background Color",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Code",clearFormatting:"Clear Formatting",normal:"Normal",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",checkList:"Check List",indent:"Indent",outdent:"Outdent",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",insertTable:"Insert Table",link:"Link",undo:"Undo",redo:"Redo",cut:"Cut",copy:"Copy",paste:"Paste",defaultOption:"Default",slashCommands:"Slash commands",noCommandsFound:"No commands found",changeBlockType:"Change block type",blockTypes:"Block types",enterUrl:"Enter URL:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},prosemirror:{bold:"Bold",italic:"Italic",code:"Inline code",link:"Insert link",removeLink:"Remove link",heading:e=>`Heading ${e}`,bulletList:"Bullet list",orderedList:"Ordered list",blockquote:"Blockquote",codeBlock:"Code block",horizontalRule:"Horizontal rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,t)=>`Page ${e} is out of range (1-${t})`,renderFailed:"Failed to render PDF page"}},f=T,p="en",M=new Set(["ar","he","fa","ur","ps","sd","ku","dv","yi","ji","iw","in"]);function v(e){if(!e)return"ltr";const t=e.split(/[-_]/)[0].toLowerCase();return M.has(t)?"rtl":"ltr"}function I(e,t){return e==="auto"?v(t):e}function O(e){return`b-${e}`}function V(e){return v(e)==="rtl"}function N(e){return e==="ltr"?"rtl":"ltr"}const L={ltr:{"inline-start":"left","inline-end":"right","block-start":"top","block-end":"bottom"},rtl:{"inline-start":"right","inline-end":"left","block-start":"top","block-end":"bottom"}};function $(e,t){return L[t][e]}const x={mark:a.makeProviderMark("Locale"),create:e=>{const t=a.localStorageProp({defaultValue:navigator.language??"en-US",key:"beatui-locale"}),o=a.localStorageProp({defaultValue:"auto",key:"beatui-direction-preference"}),l=a.computedOf(t,o)((r,i)=>I(i,r));return{value:{locale:t,setLocale:r=>t.set(r),direction:l,directionPreference:o,setDirectionPreference:r=>o.set(r)},dispose:()=>{t.dispose(),o.dispose(),l.dispose()}}}},{variants:A,special:U,overrides:k}=y.backgroundConfig;function d(e,t){switch(e){case"white":return"var(--color-white)";case"black":return"var(--color-black)";case"transparent":return"transparent";default:return y.getColorVar(e,t)}}function D(e,t){const o=U[e];if(!o)return;if(t==="light")return o;const l=k[e];return l?l[t]:o}function E(e,t,o){const l=k[e];if(l){const r=l[o];if(r)return{backgroundColor:r.backgroundColor,textColor:r.color}}if(t==="solid"){const r=D(e,o);if(r)return{backgroundColor:r.backgroundColor,textColor:r.color}}const n=A[t][o];return{backgroundColor:d(e,n.bgShade),textColor:n.textColor}}const j={light:{shade:700,textColor:"var(--color-white)"},dark:{shade:500,textColor:"var(--text-inverted-dark)"}},_={light:{shade:200,textColor:"var(--text-normal-light)"},dark:{shade:700,textColor:"var(--text-normal-dark)"}},z={light:{shade:400,textColor:"var(--text-normal-light)"},dark:{shade:600,textColor:"var(--text-normal-dark)"}};function H(e,t,o){const l=k[e];if(l){const r=l[o];if(r)return{backgroundColor:r.backgroundColor,textColor:r.color}}if(t==="solid"){const r=D(e,o);if(r)return{backgroundColor:r.backgroundColor,textColor:r.color};const i=j[o];return{backgroundColor:d(e,i.shade),textColor:i.textColor}}const n=t==="light"?_[o]:z[o];return{backgroundColor:d(e,n.shade),textColor:n.textColor}}function G(e,t){const o=t==="light"?500:600;switch(e){case"white":return t==="light"?"var(--text-inverse-light)":"var(--text-inverted-dark)";case"black":return"var(--color-black)";case"transparent":return"transparent";default:return d(e,o)}}function K(e,t){return e==="white"?"var(--color-white)":e==="black"?"var(--color-black)":e==="transparent"?"inherit":d(e,t==="light"?800:200)}function P(e,t,o){return t==="soft"?d(e,o==="light"?300:700):d(e,o==="light"?500:600)}const W="bui-icons",g=new Map,b=(()=>{try{return typeof indexedDB<"u"&&indexedDB!==null}catch{return!1}})();function Y(){return b?new Promise((e,t)=>{const o=indexedDB.open(W,1);o.onupgradeneeded=function(l){const n=l.target.result;n.objectStoreNames.contains("icons")||n.createObjectStore("icons")},o.onsuccess=function(){e(o.result)},o.onerror=function(){t(o.error)}}):Promise.reject(new Error("IndexedDB not available"))}const m=b?Y():null;async function B(e,t){try{if(m){const o=await m;return new Promise((l,n)=>{const r=o.transaction("icons","readwrite");r.objectStore("icons").put(t,e),r.oncomplete=()=>l(),r.onerror=n})}else g.set(e,t)}catch{g.set(e,t)}}async function S(e){try{if(m){const t=await m;return new Promise((o,l)=>{const i=t.transaction("icons","readonly").objectStore("icons").get(e);i.onsuccess=function(){o(i.result)},i.onerror=l})}else return g.get(e)||null}catch{return g.get(e)||null}}async function J(e){const t=`https://api.iconify.design/${e}.svg`;return fetch(t).then(o=>{if(o.status===200)return o.text();throw new Error(`Failed to load icon: ${e}`)})}async function Q(e){const t=e.replace(":","/"),o=await S(t);if(o)return o;const l=await J(t);return await B(t,l),l}function Z(e){return["bc-icon",`bc-icon--${e}`].join(" ")}function X(e,t="solid"){if(!e)return"";const o=P(e,t,"light"),l=P(e,t,"dark");return`--icon-color: ${o}; --icon-color-dark: ${l}`}function ee({icon:e,size:t="md",color:o,title:l,accessibility:n="auto",tone:r="solid"},...i){const u=a.computedOf(n,l)((s,c)=>s==="decorative"?!1:s==="informative"?!0:c!=null&&c!=="");return a.Use(R,s=>a.html.span(a.attr.class(a.computedOf(t,o)(c=>Z(c??"md"))),a.attr.style(a.computedOf(o,r)((c,h)=>X(c??void 0,h??"solid"))),a.When(u,()=>a.Fragment(a.attr.role("img"),a.aria.label(a.coalesce(l,s.$.iconDescription))),()=>a.aria.hidden(!0)),C.WhenInViewport({once:!0},()=>C.Query({request:e,load:({request:c})=>Q(c),convertError:String,success:({value:c})=>a.html.span(a.style.width("100%"),a.style.height("100%"),a.attr.innerHTML(c)),pending:()=>a.html.span(a.attr.class("animate-spin"),a.When(u,()=>a.Fragment(a.attr.role("img"),a.aria.label(s.$.loadingIcon)),()=>a.aria.hidden(!0)),"↻"),failure:({error:c})=>a.html.span(a.attr.title(c),a.attr.class("text-red-500"),a.When(u,()=>a.Fragment(a.attr.role("img"),a.aria.label(s.$.failedToLoadIcon)),()=>a.aria.hidden(!0)),"🚫")})),...i))}function te(e){const t=e.split("-"),o=[e];return t.length>1&&o.push(t[0]),o}function F({locale:e,defaultLocale:t="en-US",defaultMessages:o,localeLoader:l}){const n=a.prop(t),r=a.prop(o),i=e.on(async u=>{if(u===n.value)return;n.set(u);const s=te(u);for(const c of s)try{const h=await l(c);if(typeof h.default=="object"&&Object.keys(h).length===1){console.error("It appears that you are trying to load a translation module without referencing the default export. Please use `(await import(...)).default` in your loader function.");return}if(u===n.value){r.set(h);return}}catch{continue}console.warn(`No locale found for "${e.value}", using fallback`),u===n.value&&r.set(o)});return{dispose:()=>{i(),n.dispose(),r.dispose()},t:r}}function q({defaultLocale:e,defaultMessages:t,localeLoader:o,providerName:l="I18nProvider"}){return{mark:a.makeProviderMark(l),create:(n,r)=>{const{value:{locale:i}}=r.getProvider(x.mark),{t:u,dispose:s}=F({locale:i,defaultMessages:t,defaultLocale:e,localeLoader:o});return{value:u,dispose:s}}}}const oe=Object.assign({"./locales/ar.ts":()=>Promise.resolve().then(()=>require("./ar-D2DjoXta.cjs")).then(e=>e.default),"./locales/de.ts":()=>Promise.resolve().then(()=>require("./de-Cdf3432J.cjs")).then(e=>e.default),"./locales/es.ts":()=>Promise.resolve().then(()=>require("./es-6fFPkKHL.cjs")).then(e=>e.default),"./locales/fa.ts":()=>Promise.resolve().then(()=>require("./fa-GXyNzAXz.cjs")).then(e=>e.default),"./locales/fr.ts":()=>Promise.resolve().then(()=>require("./fr-C6EYTwSH.cjs")).then(e=>e.default),"./locales/he.ts":()=>Promise.resolve().then(()=>require("./he-CJUgxvi8.cjs")).then(e=>e.default),"./locales/hi.ts":()=>Promise.resolve().then(()=>require("./hi-DqIR4VtX.cjs")).then(e=>e.default),"./locales/it.ts":()=>Promise.resolve().then(()=>require("./it-BvHsJ7fH.cjs")).then(e=>e.default),"./locales/ja.ts":()=>Promise.resolve().then(()=>require("./ja-B2gP7OHY.cjs")).then(e=>e.default),"./locales/ko.ts":()=>Promise.resolve().then(()=>require("./ko-BddhddIA.cjs")).then(e=>e.default),"./locales/nl.ts":()=>Promise.resolve().then(()=>require("./nl-COrtZUnH.cjs")).then(e=>e.default),"./locales/pl.ts":()=>Promise.resolve().then(()=>require("./pl-BHI4zBgV.cjs")).then(e=>e.default),"./locales/pt.ts":()=>Promise.resolve().then(()=>require("./pt-BGzC9MhU.cjs")).then(e=>e.default),"./locales/ru.ts":()=>Promise.resolve().then(()=>require("./ru-CXeFbIPb.cjs")).then(e=>e.default),"./locales/tr.ts":()=>Promise.resolve().then(()=>require("./tr-CdOtQAtA.cjs")).then(e=>e.default),"./locales/ur.ts":()=>Promise.resolve().then(()=>require("./ur-C7itXvnC.cjs")).then(e=>e.default),"./locales/vi.ts":()=>Promise.resolve().then(()=>require("./vi-CQrUWB3y.cjs")).then(e=>e.default),"./locales/zh.ts":()=>Promise.resolve().then(()=>require("./zh-DWswYYTS.cjs")).then(e=>e.default)}),R=q({defaultLocale:p,defaultMessages:f,localeLoader:async e=>{if(e===p)return f;const t=oe[`./locales/${e}.ts`];return t?await t():f},providerName:"BeatUII18n"});exports.BeatUII18n=R;exports.Icon=ee;exports.LOGICAL_PROPERTY_MAP=L;exports.Locale=x;exports.backgroundValue=E;exports.borderColorValue=G;exports.defaultLocale=p;exports.defaultMessages=f;exports.formatFileSize=w;exports.getDirectionClassName=O;exports.getDirectionFromLocale=v;exports.getIconLocally=S;exports.getOppositeDirection=N;exports.getPhysicalProperty=$;exports.hoverBackgroundValue=H;exports.isIndexedDBAvailable=b;exports.isRTLLocale=V;exports.makeI18nProvider=q;exports.makeMessages=F;exports.resolveDirection=I;exports.storeIconLocally=B;exports.textColorValue=K;
|
|
@@ -128,6 +128,14 @@ export declare const defaultMessages: {
|
|
|
128
128
|
changeBlockType: string;
|
|
129
129
|
blockTypes: string;
|
|
130
130
|
enterUrl: string;
|
|
131
|
+
tableActions: string;
|
|
132
|
+
insertRowAbove: string;
|
|
133
|
+
insertRowBelow: string;
|
|
134
|
+
insertColumnLeft: string;
|
|
135
|
+
insertColumnRight: string;
|
|
136
|
+
deleteRow: string;
|
|
137
|
+
deleteColumn: string;
|
|
138
|
+
deleteTable: string;
|
|
131
139
|
};
|
|
132
140
|
prosemirror: {
|
|
133
141
|
bold: string;
|
|
@@ -114,6 +114,14 @@ declare const en: {
|
|
|
114
114
|
changeBlockType: string;
|
|
115
115
|
blockTypes: string;
|
|
116
116
|
enterUrl: string;
|
|
117
|
+
tableActions: string;
|
|
118
|
+
insertRowAbove: string;
|
|
119
|
+
insertRowBelow: string;
|
|
120
|
+
insertColumnLeft: string;
|
|
121
|
+
insertColumnRight: string;
|
|
122
|
+
deleteRow: string;
|
|
123
|
+
deleteColumn: string;
|
|
124
|
+
deleteTable: string;
|
|
117
125
|
};
|
|
118
126
|
prosemirror: {
|
|
119
127
|
bold: string;
|
|
@@ -138,6 +138,14 @@ export declare const BeatUII18n: import("@tempots/dom").Provider<import("@tempot
|
|
|
138
138
|
changeBlockType: string;
|
|
139
139
|
blockTypes: string;
|
|
140
140
|
enterUrl: string;
|
|
141
|
+
tableActions: string;
|
|
142
|
+
insertRowAbove: string;
|
|
143
|
+
insertRowBelow: string;
|
|
144
|
+
insertColumnLeft: string;
|
|
145
|
+
insertColumnRight: string;
|
|
146
|
+
deleteRow: string;
|
|
147
|
+
deleteColumn: string;
|
|
148
|
+
deleteTable: string;
|
|
141
149
|
};
|
|
142
150
|
prosemirror: {
|
|
143
151
|
bold: string;
|
|
@@ -4,6 +4,8 @@ export * from './base64s-input';
|
|
|
4
4
|
export * from './checkbox-input';
|
|
5
5
|
export * from './color-input';
|
|
6
6
|
export * from './color-swatch-input';
|
|
7
|
+
export * from './nullable-color-input';
|
|
8
|
+
export * from './nullable-color-swatch-input';
|
|
7
9
|
export * from './dropdown-input';
|
|
8
10
|
export * from './dropdown-base';
|
|
9
11
|
export * from './combobox-input';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Renderable, Value } from '@tempots/dom';
|
|
2
|
+
import { InputOptions } from './input-options';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration options for the {@link NullableColorInput} component.
|
|
5
|
+
*
|
|
6
|
+
* Extends {@link InputOptions} for `string | null` color values with an optional
|
|
7
|
+
* size property for the color swatch preview.
|
|
8
|
+
*/
|
|
9
|
+
export type NullableColorInputOptions = InputOptions<string | null> & {
|
|
10
|
+
/** Size in pixels of the color swatch preview (square). @default 32 */
|
|
11
|
+
size?: Value<number>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A nullable variant of {@link ColorInput} for `string | null` values.
|
|
15
|
+
*
|
|
16
|
+
* Displays as a standard color input where `null` values show as an empty text field.
|
|
17
|
+
* Includes a reset button to clear the value back to `null`. Empty strings entered
|
|
18
|
+
* by the user are converted to `null` on change.
|
|
19
|
+
*
|
|
20
|
+
* @param options - Configuration options for the nullable color input.
|
|
21
|
+
* @returns A renderable nullable color input component.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* NullableColorInput({
|
|
26
|
+
* value: prop<string | null>(null),
|
|
27
|
+
* onChange: v => console.log('Color:', v), // null or string
|
|
28
|
+
* })
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const NullableColorInput: (options: NullableColorInputOptions) => Renderable;
|