@tempots/beatui 0.80.0 → 0.82.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-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
- package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +101 -99
- package/dist/beatui.css +393 -0
- package/dist/beatui.tailwind.css +393 -0
- package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
- package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
- package/dist/{deep-merge-1uN6CG6K.js → deep-merge-CiOwVWn8.js} +269 -284
- package/dist/deep-merge-DxZqCkE5.cjs +1 -0
- package/dist/{duration-input-C9kpsw-t.js → duration-input-B3vnnwBZ.js} +30 -29
- package/dist/duration-input-Dg5SX3lM.cjs +1 -0
- package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
- package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
- package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
- package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
- package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
- package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
- package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
- package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
- package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
- package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
- package/dist/{index-CfaWytS2.cjs → index-C5YCCgnn.cjs} +1 -1
- package/dist/{index-K6u33-GC.cjs → index-ChsRjiIp.cjs} +17 -17
- package/dist/{index-CGEzILlC.js → index-CiAVfKIZ.js} +1 -1
- package/dist/{index-YtW7SCWB.js → index-DT6-HMMz.js} +8 -7
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +296 -291
- package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
- package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
- package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
- package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -8
- package/dist/json-schema/index.es.js +1391 -7471
- package/dist/json-schema-display/index.cjs.js +1 -0
- package/dist/json-schema-display/index.es.js +846 -0
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +89 -87
- package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
- package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
- package/dist/modal-D2xE47kr.cjs +1 -0
- package/dist/{modal-CSHIhHvI.js → modal-hkQD1bqZ.js} +22 -21
- package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
- package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
- package/dist/notice-C0SmlheE.cjs +1 -0
- package/dist/{notice-C-964yaY.js → notice-CZHWWwOQ.js} +52 -51
- package/dist/oneof-branch-detection-BVNoKU9d.js +6281 -0
- package/dist/oneof-branch-detection-C8g3eWnx.cjs +8 -0
- package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
- package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
- package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
- package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
- package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
- package/dist/stack-BJgsPJ9A.js +873 -0
- package/dist/stack-DcZ_u50f.cjs +1 -0
- package/dist/string-B9vVyfq3.cjs +1 -0
- package/dist/string-DYyMxBl-.js +19 -0
- package/dist/text-input-CByq5OIo.cjs +1 -0
- package/dist/text-input-CFJntP7G.js +287 -0
- package/dist/{toolbar-DNpBIoJo.js → toolbar-DR2Zd4Oo.js} +1 -1
- package/dist/toolbar-TPWYzoiF.cjs +1 -0
- package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
- package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
- package/dist/translations-B4-Zd2LM.cjs +1 -0
- package/dist/translations-Cq8bUKJP.js +584 -0
- package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
- package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
- package/dist/types/components/json-schema/schema-conditionals.d.ts +11 -0
- package/dist/types/components/json-schema/schema-context.d.ts +1 -1
- package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
- package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
- package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/index.d.ts +14 -0
- package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
- package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
- package/dist/types/json-schema-display/index.d.ts +1 -0
- package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
- package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
- package/dist/use-form-CgZyrACX.js +864 -0
- package/dist/use-form-JjeKCINk.cjs +2 -0
- package/dist/utils-DEbsp9Q9.js +129 -0
- package/dist/utils-DIUEhA-Z.cjs +1 -0
- package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
- package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
- package/dist/widget-customization-DRA7E9Zf.js +1072 -0
- package/dist/widget-customization-G-QLB1rw.cjs +1 -0
- package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
- package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
- package/package.json +13 -7
- package/dist/deep-merge-CBIkQM4E.cjs +0 -1
- package/dist/duration-input-DHWhQJnn.cjs +0 -1
- package/dist/modal-cc8Ehngz.cjs +0 -1
- package/dist/notice-C_BWqu2K.cjs +0 -1
- package/dist/toolbar-D5FcnRju.cjs +0 -1
- package/dist/translations-0tLX4x7M.js +0 -866
- package/dist/translations-WPN3ibDg.cjs +0 -1
- package/dist/use-form-D4JFOcjo.cjs +0 -2
- package/dist/use-form-D4rqJkvG.js +0 -1731
- package/dist/widget-customization-BSjJz3_Y.js +0 -1195
- package/dist/widget-customization-CrFVrt4V.cjs +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { WithElement as S, OnDispose as z, prop as R, computedOf as A, Fragment as M, attr as g, WithBrowserCtx as J, Value as U, render as Q, html as k, dataAttr as
|
|
1
|
+
import { WithElement as S, OnDispose as z, prop as R, computedOf as A, Fragment as M, attr as g, WithBrowserCtx as J, Value as U, render as Q, html as k, dataAttr as V, aria as B, on as X, When as j, Use as H, coalesce as q } from "@tempots/dom";
|
|
2
2
|
import { g as $, I as _ } from "./timer-Rd2sKnvH.js";
|
|
3
|
-
import { s as Y, C as Z } from "./use-form-
|
|
4
|
-
import {
|
|
3
|
+
import { s as Y, C as Z } from "./use-form-CgZyrACX.js";
|
|
4
|
+
import { B as K } from "./translations-Cq8bUKJP.js";
|
|
5
|
+
import { B as P } from "./text-input-CFJntP7G.js";
|
|
5
6
|
const ee = [
|
|
6
7
|
"a[href]",
|
|
7
8
|
"button:not([disabled])",
|
|
@@ -78,7 +79,7 @@ function F(o = {}) {
|
|
|
78
79
|
});
|
|
79
80
|
});
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function he(o = {}) {
|
|
82
83
|
return {
|
|
83
84
|
activate: () => F({ ...o, active: !0 }),
|
|
84
85
|
deactivate: () => F({ ...o, active: !1 })
|
|
@@ -148,7 +149,7 @@ function N({
|
|
|
148
149
|
listenOnClosed: p
|
|
149
150
|
};
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
+
function ge({
|
|
152
153
|
initialStatus: o = "closed",
|
|
153
154
|
duration: t,
|
|
154
155
|
openDuration: s = t ?? 500,
|
|
@@ -234,7 +235,7 @@ function oe({
|
|
|
234
235
|
});
|
|
235
236
|
return M(g.class(s), g.style(e));
|
|
236
237
|
}
|
|
237
|
-
function
|
|
238
|
+
function be({
|
|
238
239
|
initialStatus: o = "closed",
|
|
239
240
|
animation: t
|
|
240
241
|
}, s) {
|
|
@@ -421,7 +422,7 @@ class D extends T {
|
|
|
421
422
|
}, e;
|
|
422
423
|
}
|
|
423
424
|
}
|
|
424
|
-
const
|
|
425
|
+
const ve = () => new C(), ye = () => new O(), Ee = (o) => new D(o);
|
|
425
426
|
function ce(o) {
|
|
426
427
|
return J((t) => {
|
|
427
428
|
const s = [], e = () => s.forEach((r) => r());
|
|
@@ -465,8 +466,8 @@ function ce(o) {
|
|
|
465
466
|
E.clear();
|
|
466
467
|
}), document.activeElement?.blur?.(), k.div(
|
|
467
468
|
S((d) => c.setElement(d)),
|
|
468
|
-
|
|
469
|
-
|
|
469
|
+
V.status(c.status.map(String)),
|
|
470
|
+
V.overlay("true"),
|
|
470
471
|
g.class(
|
|
471
472
|
A(
|
|
472
473
|
r ?? "opaque",
|
|
@@ -519,13 +520,13 @@ function le(o, t) {
|
|
|
519
520
|
),
|
|
520
521
|
// Essential ARIA attributes for modal dialog
|
|
521
522
|
g.role("dialog"),
|
|
522
|
-
|
|
523
|
-
...h.header ? [
|
|
524
|
-
|
|
523
|
+
B.modal(!0),
|
|
524
|
+
...h.header ? [B.labelledby(i)] : [],
|
|
525
|
+
B.describedby(w),
|
|
525
526
|
g.tabindex(-1),
|
|
526
527
|
// Make modal focusable for initial focus
|
|
527
528
|
g.id(l),
|
|
528
|
-
|
|
529
|
+
V.focusTrap("true"),
|
|
529
530
|
// Mark as focus trap container
|
|
530
531
|
X.mousedown((d) => d.stopPropagation()),
|
|
531
532
|
// Prevent overlay click-outside when clicking modal content
|
|
@@ -597,7 +598,7 @@ function le(o, t) {
|
|
|
597
598
|
});
|
|
598
599
|
});
|
|
599
600
|
}
|
|
600
|
-
function
|
|
601
|
+
function Le(o, t) {
|
|
601
602
|
const { confirmText: s, cancelText: e, onConfirm: n, onCancel: r, ...a } = o;
|
|
602
603
|
return H(
|
|
603
604
|
K,
|
|
@@ -636,19 +637,19 @@ function Ee(o, t) {
|
|
|
636
637
|
export {
|
|
637
638
|
oe as A,
|
|
638
639
|
O as B,
|
|
639
|
-
|
|
640
|
+
Le as C,
|
|
640
641
|
F,
|
|
641
642
|
le as M,
|
|
642
643
|
ce as O,
|
|
643
644
|
C as S,
|
|
644
|
-
|
|
645
|
-
|
|
645
|
+
be as a,
|
|
646
|
+
ye as b,
|
|
646
647
|
D as c,
|
|
647
648
|
re as d,
|
|
648
|
-
|
|
649
|
+
he as e,
|
|
649
650
|
N as f,
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
651
|
+
ge as g,
|
|
652
|
+
Ee as o,
|
|
653
|
+
ve as s,
|
|
653
654
|
G as u
|
|
654
655
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-B4-Zd2LM.cjs"),a={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectNone:"Geen",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,n,l)=>{let t=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||n){const i=[];if(e!=null&&e>1&&i.push(`tot ${e} bestanden`),n&&l){const o=r.formatFileSize(n,{units:l});i.push(`max ${o} elk`)}i.length>0&&(t+=` (${i.join(", ")})`)}return t},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"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:"PDF laden...",loadFailed:"PDF laden mislukt",invalidPdf:"Ongeldig PDF-bestand",pageOutOfRange:(e,n)=>`Pagina ${e} valt buiten bereik (1-${n})`,renderFailed:"PDF-pagina weergeven mislukt"}};exports.default=a;exports.nl=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I=require("./text-input-CByq5OIo.cjs"),t=require("@tempots/dom"),f=require("./translations-B4-Zd2LM.cjs"),E=require("./use-form-JjeKCINk.cjs"),_=n=>{const r={name:"email",autocomplete:"email",...n},{value:s,before:l,onBlur:a,onChange:m,onInput:c,placeholder:h}=r,p=l??I.InputIcon({icon:"line-md:email",size:n.size,color:"neutral"});return t.Use(f.BeatUII18n,d=>I.InputContainer({...n,before:p,input:t.input.email(I.CommonInputAttributes(r),t.attr.placeholder(t.coalesce(h,d.$.emailPlaceholderText)),t.attr.value(s),t.attr.class("bc-input"),a!=null?t.on.blur(t.emitValue(a)):t.Empty,m!=null?t.on.change(t.emitValue(m)):t.Empty,c!=null?t.on.input(t.emitValue(c)):t.Empty)}))},O=n=>{const{value:r,onBlur:s,onChange:l,onInput:a,before:m,after:c,hasError:h,disabled:p,autocomplete:d,placeholder:w,...b}=n,V={name:"password",disabled:p,...b},u=t.prop(!0),o=t.computedOf(u,d)((e,i)=>e?i??"current-password":"off");return t.Use(f.BeatUII18n,e=>{const i=t.computedOf(e.$.passwordPlaceholderText,u,w)((g,v,C)=>v?"•••••••••••••••":C??g),y=t.html.button(t.attr.type("button"),t.attr.class("bc-input-container__password-toggle"),t.aria.label(e.$.togglePasswordVisibility),t.on.click(()=>u.update(g=>!g)),t.When(u,()=>f.Icon({icon:"line-md:watch"}),()=>f.Icon({icon:"line-md:watch-off"})));return I.InputContainer({before:m,disabled:p,hasError:h,input:t.html.input(I.CommonInputAttributes({...V,autocomplete:o,placeholder:i}),t.When(u,()=>t.Fragment(t.attr.type("password")),()=>t.Fragment(t.attr.type("text"))),t.attr.class("bc-input"),t.attr.value(r),s!=null?t.on.blur(t.emitValue(s)):t.Empty,l!=null?t.on.change(t.emitValue(l)):t.Empty,a!=null?t.on.input(t.emitValue(a)):t.Empty),after:c!=null?t.Fragment(y,c):y})})};function B(n){switch(n){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function U(n){switch(n){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function P(n,r,s,l){const a=["bc-notice",`bc-notice--${n}`,`bc-notice--tone-${r}`];return s&&a.push("bc-notice--dismissible"),l&&l.length>0&&a.push(l),a.join(" ")}function T({variant:n="info",tone:r="subtle",role:s,title:l,icon:a,closable:m=!1,onDismiss:c,class:h},...p){const d=t.prop(!0);return t.When(d,()=>{const w=t.Value.map(m,o=>!!o||c!=null),b=t.Value.map(n,o=>o??"info"),V=t.Value.map(r,o=>o??"subtle"),u=t.computedOf(s,b)((o,e)=>o??(e==="danger"?"alert":"status"));return t.Use(f.BeatUII18n,o=>t.html.div(t.attr.class(t.computedOf(b,V,w,h)((e,i,y,g)=>P(e,i,y,g))),t.attr.role(t.Value.map(u,e=>e)),t.Unless(t.Value.map(a,e=>e===!1),()=>t.html.div(t.attr.class("bc-notice__icon"),f.Icon({icon:t.computedOf(a,b)((e,i)=>e===void 0?B(i):String(e)),size:"md",color:t.Value.map(b,U)}))),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"),...p)),t.When(w,()=>E.CloseButton({size:"xs",label:o.$.closeModal,onClick:()=>{d.set(!1),c?.()}}))))})}exports.EmailInput=_;exports.Notice=T;exports.PasswordInput=O;
|
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { I as j, a as
|
|
2
|
-
import { Use as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { I as j, a as z, C as O } from "./text-input-CFJntP7G.js";
|
|
2
|
+
import { Use as V, input as A, attr as n, coalesce as F, on as m, Empty as w, emitValue as I, prop as k, computedOf as C, html as p, aria as M, When as P, Fragment as $, Value as g, Unless as R, Ensure as S } from "@tempots/dom";
|
|
3
|
+
import { B as x, I as E } from "./translations-Cq8bUKJP.js";
|
|
4
|
+
import { C as W } from "./use-form-CgZyrACX.js";
|
|
5
|
+
const Q = (t) => {
|
|
5
6
|
const l = {
|
|
6
7
|
name: "email",
|
|
7
8
|
autocomplete: "email",
|
|
8
9
|
...t
|
|
9
10
|
}, {
|
|
10
|
-
value:
|
|
11
|
+
value: r,
|
|
11
12
|
before: s,
|
|
12
13
|
onBlur: o,
|
|
13
14
|
onChange: d,
|
|
14
|
-
onInput:
|
|
15
|
-
placeholder:
|
|
15
|
+
onInput: c,
|
|
16
|
+
placeholder: v
|
|
16
17
|
} = l, b = s ?? j({
|
|
17
18
|
icon: "line-md:email",
|
|
18
19
|
size: t.size,
|
|
19
20
|
color: "neutral"
|
|
20
21
|
});
|
|
21
|
-
return
|
|
22
|
-
|
|
22
|
+
return V(
|
|
23
|
+
x,
|
|
23
24
|
(f) => z({
|
|
24
25
|
...t,
|
|
25
26
|
before: b,
|
|
26
27
|
input: A.email(
|
|
27
28
|
O(l),
|
|
28
|
-
n.placeholder(F(
|
|
29
|
-
n.value(
|
|
29
|
+
n.placeholder(F(v, f.$.emailPlaceholderText)),
|
|
30
|
+
n.value(r),
|
|
30
31
|
n.class("bc-input"),
|
|
31
|
-
o != null ? m.blur(
|
|
32
|
-
d != null ? m.change(
|
|
33
|
-
|
|
32
|
+
o != null ? m.blur(I(o)) : w,
|
|
33
|
+
d != null ? m.change(I(d)) : w,
|
|
34
|
+
c != null ? m.input(I(c)) : w
|
|
34
35
|
)
|
|
35
36
|
})
|
|
36
37
|
);
|
|
37
|
-
},
|
|
38
|
+
}, X = (t) => {
|
|
38
39
|
const {
|
|
39
40
|
value: l,
|
|
40
|
-
onBlur:
|
|
41
|
+
onBlur: r,
|
|
41
42
|
onChange: s,
|
|
42
43
|
onInput: o,
|
|
43
44
|
before: d,
|
|
44
|
-
after:
|
|
45
|
-
hasError:
|
|
45
|
+
after: c,
|
|
46
|
+
hasError: v,
|
|
46
47
|
disabled: b,
|
|
47
48
|
autocomplete: f,
|
|
48
49
|
placeholder: _,
|
|
49
50
|
...h
|
|
50
|
-
} = t,
|
|
51
|
+
} = t, T = {
|
|
51
52
|
name: "password",
|
|
52
53
|
disabled: b,
|
|
53
54
|
...h
|
|
@@ -55,17 +56,17 @@ const L = (t) => {
|
|
|
55
56
|
i,
|
|
56
57
|
f
|
|
57
58
|
)((e, u) => e ? u ?? "current-password" : "off");
|
|
58
|
-
return x
|
|
59
|
+
return V(x, (e) => {
|
|
59
60
|
const u = C(
|
|
60
61
|
e.$.passwordPlaceholderText,
|
|
61
62
|
i,
|
|
62
63
|
_
|
|
63
|
-
)((y, N, U) => N ? "•••••••••••••••" : U ?? y),
|
|
64
|
+
)((y, N, U) => N ? "•••••••••••••••" : U ?? y), B = p.button(
|
|
64
65
|
n.type("button"),
|
|
65
66
|
n.class("bc-input-container__password-toggle"),
|
|
66
67
|
M.label(e.$.togglePasswordVisibility),
|
|
67
68
|
m.click(() => i.update((y) => !y)),
|
|
68
|
-
|
|
69
|
+
P(
|
|
69
70
|
i,
|
|
70
71
|
() => E({ icon: "line-md:watch" }),
|
|
71
72
|
() => E({ icon: "line-md:watch-off" })
|
|
@@ -74,25 +75,25 @@ const L = (t) => {
|
|
|
74
75
|
return z({
|
|
75
76
|
before: d,
|
|
76
77
|
disabled: b,
|
|
77
|
-
hasError:
|
|
78
|
+
hasError: v,
|
|
78
79
|
input: p.input(
|
|
79
80
|
O({
|
|
80
|
-
|
|
81
|
+
...T,
|
|
81
82
|
autocomplete: a,
|
|
82
83
|
placeholder: u
|
|
83
84
|
}),
|
|
84
|
-
|
|
85
|
+
P(
|
|
85
86
|
i,
|
|
86
|
-
() =>
|
|
87
|
-
() =>
|
|
87
|
+
() => $(n.type("password")),
|
|
88
|
+
() => $(n.type("text"))
|
|
88
89
|
),
|
|
89
90
|
n.class("bc-input"),
|
|
90
91
|
n.value(l),
|
|
91
|
-
|
|
92
|
-
s != null ? m.change(
|
|
93
|
-
o != null ? m.input(
|
|
92
|
+
r != null ? m.blur(I(r)) : w,
|
|
93
|
+
s != null ? m.change(I(s)) : w,
|
|
94
|
+
o != null ? m.input(I(o)) : w
|
|
94
95
|
),
|
|
95
|
-
after:
|
|
96
|
+
after: c != null ? $(B, c) : B
|
|
96
97
|
});
|
|
97
98
|
});
|
|
98
99
|
};
|
|
@@ -122,45 +123,45 @@ function D(t) {
|
|
|
122
123
|
return "info";
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
|
-
function G(t, l,
|
|
126
|
+
function G(t, l, r, s) {
|
|
126
127
|
const o = [
|
|
127
128
|
"bc-notice",
|
|
128
129
|
`bc-notice--${t}`,
|
|
129
130
|
`bc-notice--tone-${l}`
|
|
130
131
|
];
|
|
131
|
-
return
|
|
132
|
+
return r && o.push("bc-notice--dismissible"), s && s.length > 0 && o.push(s), o.join(" ");
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function Y({
|
|
134
135
|
variant: t = "info",
|
|
135
136
|
tone: l = "subtle",
|
|
136
|
-
role:
|
|
137
|
+
role: r,
|
|
137
138
|
title: s,
|
|
138
139
|
icon: o,
|
|
139
140
|
closable: d = !1,
|
|
140
|
-
onDismiss:
|
|
141
|
-
class:
|
|
141
|
+
onDismiss: c,
|
|
142
|
+
class: v
|
|
142
143
|
}, ...b) {
|
|
143
144
|
const f = k(!0);
|
|
144
|
-
return
|
|
145
|
+
return P(f, () => {
|
|
145
146
|
const _ = g.map(
|
|
146
147
|
d,
|
|
147
|
-
(a) => !!a ||
|
|
148
|
-
), h = g.map(t, (a) => a ?? "info"),
|
|
149
|
-
|
|
148
|
+
(a) => !!a || c != null
|
|
149
|
+
), h = g.map(t, (a) => a ?? "info"), T = g.map(l, (a) => a ?? "subtle"), i = C(
|
|
150
|
+
r,
|
|
150
151
|
h
|
|
151
152
|
)(
|
|
152
153
|
(a, e) => a ?? (e === "danger" ? "alert" : "status")
|
|
153
154
|
);
|
|
154
|
-
return
|
|
155
|
-
|
|
155
|
+
return V(
|
|
156
|
+
x,
|
|
156
157
|
(a) => p.div(
|
|
157
158
|
n.class(
|
|
158
159
|
C(
|
|
159
160
|
h,
|
|
160
|
-
|
|
161
|
+
T,
|
|
161
162
|
_,
|
|
162
|
-
|
|
163
|
-
)((e, u,
|
|
163
|
+
v
|
|
164
|
+
)((e, u, B, y) => G(e, u, B, y))
|
|
164
165
|
),
|
|
165
166
|
// Accessibility role mapping (always defined)
|
|
166
167
|
n.role(g.map(i, (e) => e)),
|
|
@@ -188,13 +189,13 @@ function X({
|
|
|
188
189
|
),
|
|
189
190
|
p.div(n.class("bc-notice__content"), ...b)
|
|
190
191
|
),
|
|
191
|
-
|
|
192
|
+
P(
|
|
192
193
|
_,
|
|
193
194
|
() => W({
|
|
194
195
|
size: "xs",
|
|
195
196
|
label: a.$.closeModal,
|
|
196
197
|
onClick: () => {
|
|
197
|
-
f.set(!1),
|
|
198
|
+
f.set(!1), c?.();
|
|
198
199
|
}
|
|
199
200
|
})
|
|
200
201
|
)
|
|
@@ -203,7 +204,7 @@ function X({
|
|
|
203
204
|
});
|
|
204
205
|
}
|
|
205
206
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
Q as E,
|
|
208
|
+
Y as N,
|
|
209
|
+
X as P
|
|
209
210
|
};
|