@tempots/beatui 0.38.0 → 0.40.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/{2019-DxwU2aOm.cjs → 2019-nWH_nAwT.cjs} +1 -1
- package/dist/{2019-CGWicU9n.js → 2019-sCKLAY8c.js} +2 -2
- package/dist/{2020-BRNvbMGL.js → 2020-B4xCW_nu.js} +2 -2
- package/dist/{2020-DHep9dU6.cjs → 2020-D7RWX09D.cjs} +1 -1
- package/dist/{ar-CqAHPRKu.cjs → ar-D_4BfIJO.cjs} +1 -1
- package/dist/{ar-avevuYiW.js → ar-i2uHmy8P.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +54 -49
- package/dist/beatui.css +463 -59
- package/dist/beatui.tailwind.css +463 -59
- package/dist/{de--4OtRESW.cjs → de-C0PZz9sE.cjs} +1 -1
- package/dist/{de-Cz7ah611.js → de-CeLwmVZz.js} +1 -1
- package/dist/{es-CE1wRgxl.cjs → es-C8qT1ins.cjs} +1 -1
- package/dist/{es-CiNQQzF1.js → es-DxOgARww.js} +1 -1
- package/dist/{fa-Gkt0b9XN.js → fa-B9pEff8A.js} +1 -1
- package/dist/{fa-DjuJZNLK.cjs → fa-BFV9MxMX.cjs} +1 -1
- package/dist/{fr-DotyzMGL.cjs → fr-BBx5IJ7G.cjs} +1 -1
- package/dist/{fr-xM9p9Q6G.js → fr-Caeevx56.js} +1 -1
- package/dist/{he-BQ6ygVEQ.cjs → he-CMOvd4Dr.cjs} +1 -1
- package/dist/{he-CoO6PsiS.js → he-DeN-WW3u.js} +1 -1
- package/dist/{hi-DA3-4Cdo.js → hi-Dey2HxiD.js} +1 -1
- package/dist/{hi-BCfJ0mRh.cjs → hi-IOU_PzvH.cjs} +1 -1
- package/dist/{index-CesoPnvj.cjs → index-B-SyWyCc.cjs} +1 -1
- package/dist/{index-DJJ67-RV.js → index-B-pudlMv.js} +58 -58
- package/dist/{index-Dtqe3URb.cjs → index-B0ff5lT-.cjs} +4 -4
- package/dist/{index-i9pAnFtS.js → index-BTZqW3-b.js} +1245 -1232
- package/dist/{index-C5-BM51Y.cjs → index-C2VAPX2b.cjs} +1 -1
- package/dist/{index-DjShJtXp.js → index-CAeOFdez.js} +1 -1
- package/dist/{index-BI5w0jSz.js → index-CBT2SLat.js} +224 -223
- package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
- package/dist/{index-CCu0qfNP.cjs → index-D8fg48Fv.cjs} +1 -1
- package/dist/{index-C_nSdynJ.js → index-DJqo6Guq.js} +1 -1
- package/dist/{index-CZQHL_pf.cjs → index-Dtka01mK.cjs} +12 -12
- package/dist/{index-C2rz3G1d.js → index-HqWBd-jW.js} +680 -677
- package/dist/{index-D41aREgo.js → index-IQ3lRaL0.js} +1 -1
- package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +3349 -3064
- package/dist/{it-EdPuWBJR.js → it-DghnQdZa.js} +1 -1
- package/dist/{it-pv2Gm3jb.cjs → it-uQF0jkDT.cjs} +1 -1
- package/dist/{ja-CuRaPMgh.cjs → ja-BJD6uPbl.cjs} +1 -1
- package/dist/{ja-BSRCR430.js → ja-Kb7rxmFg.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-Dm4oD1fh.js → ko-53o5WJ-v.js} +1 -1
- package/dist/{ko-C7YP1PL4.cjs → ko-B7bLdRnp.cjs} +1 -1
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/modal-BRUgTJG9.cjs +1 -0
- package/dist/modal-_2B8vIo0.js +658 -0
- package/dist/{nl-ClCD6lP-.cjs → nl-CJE0fC8g.cjs} +1 -1
- package/dist/{nl-B0l1kdfd.js → nl-DvUVT7xd.js} +1 -1
- package/dist/{notice-BuYqG6zM.js → notice-C4n5jXi6.js} +408 -391
- package/dist/notice-CncwkUTy.cjs +2 -0
- package/dist/{pl-DVKneBSY.js → pl-C3oYeTwf.js} +1 -1
- package/dist/{pl-fyCkqVrr.cjs → pl-DUaY5slY.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-BHExG3lf.cjs → pt-BAqNKCuy.cjs} +1 -1
- package/dist/{pt-Bw0sTDOX.js → pt-BJGeScun.js} +1 -1
- package/dist/{ru-B26VQ4f9.js → ru-2irv1YXp.js} +1 -1
- package/dist/{ru-PuEOLDw1.cjs → ru-CAlgJm3K.cjs} +1 -1
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +1 -1
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +1 -1
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{toolbar-kwkvH3nX.cjs → toolbar-B7HrL0vD.cjs} +1 -1
- package/dist/{toolbar-ClJbaKID.js → toolbar-CVDXVnje.js} +1 -1
- package/dist/{tr-DQMivdvy.js → tr-CkHLE5u7.js} +1 -1
- package/dist/{tr-CI97fTpD.cjs → tr-DMiXAhok.cjs} +1 -1
- package/dist/{translations-iam7PITs.js → translations-DEEflRUY.js} +96 -112
- package/dist/{translations-ZB5oDFId.cjs → translations-DRNj0YIi.cjs} +1 -1
- package/dist/translations-Dw1oO6Dh.cjs +1 -0
- package/dist/{translations-1yD6Rm5l.js → translations-Q5C5LyIi.js} +1 -1
- package/dist/types/components/beatui.d.ts +4 -1
- package/dist/types/components/button/button.d.ts +4 -3
- package/dist/types/components/form/input/input-wrapper.d.ts +2 -1
- package/dist/types/components/misc/index.d.ts +4 -0
- package/dist/types/components/misc/notification-provider.d.ts +47 -0
- package/dist/types/components/misc/notification.d.ts +17 -0
- package/dist/types/components/misc/opengraph.d.ts +111 -0
- package/dist/types/components/navigation/link/button-link.d.ts +2 -0
- package/dist/types/components/overlay/lightbox.d.ts +1 -1
- package/dist/types/components/overlay/modal.d.ts +2 -2
- package/dist/types/components/overlay/ribbon.d.ts +2 -2
- package/dist/types/utils/use-animated-toggle.d.ts +43 -9
- package/dist/{ur-B3CiO8KH.cjs → ur-BjiNs3SL.cjs} +1 -1
- package/dist/{ur-o3rog5MJ.js → ur-bxBR_9Z-.js} +1 -1
- package/dist/{utils-B_QSuN66.js → utils-BCbc19N0.js} +202 -193
- package/dist/utils-BJZipnfW.cjs +1 -0
- package/dist/{vi-FibsLfdk.cjs → vi-CByOZvV2.cjs} +1 -1
- package/dist/{vi-C7cb2K_B.js → vi-CKknZqol.js} +1 -1
- package/dist/{zh-BtSj_Euh.cjs → zh-C0QOebEA.cjs} +1 -1
- package/dist/{zh-NGrfqAHM.js → zh-CmUgcP9o.js} +1 -1
- package/package.json +4 -3
- package/dist/modal--1g8Y5LH.js +0 -601
- package/dist/modal-mA_AFUCI.cjs +0 -1
- package/dist/notice-DCuZEAQO.cjs +0 -2
- package/dist/translations-DQxg-W9w.cjs +0 -1
- package/dist/utils-BD6NGV1v.cjs +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const s=require("@tempots/dom"),w=require("./translations-Dw1oO6Dh.cjs"),L=new Map;function F(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const k={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return k.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return k.isSuccess(e)?e.value:t()},getOrNull(e){return k.isSuccess(e)?e.value:null},getOrUndefined(e){return k.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(k.isSuccess(e))return e.value;throw k.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:a,notAsked:r=a})=>k.isSuccess(e)?t(e.value):k.isFailure(e)?n(e.error):k.isNotAsked(e)?r():a(e.previousValue),whenSuccess:(e,t)=>(k.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(k.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(k.isSuccess(n))t.push(n.value);else return n;return k.success(t)},ofPromise:async e=>{try{const t=await e;return k.success(t)}catch(t){return k.failure(t instanceof Error?t:new Error(String(t)))}}},_=(e,t)=>e===t||e!==e&&t!==t,S={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>S.isValid(e)?t():n(e.error),toResult:(e,t)=>S.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(S.isValid(e)&&t(),e),whenInvalid:(e,t)=>(S.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>k.success(t),t=>k.failure(t))},toValidation(e){return f.match(e,()=>S.valid,t=>S.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,a)=>f.match(e,r=>f.match(t,i=>f.success(n(r,i)),i=>f.failure(i)),r=>f.match(t,i=>f.failure(r),i=>f.failure(a(r,i)))),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function N({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:a="full",color:r="base",onClick:i,label:o},...l){return s.Use(w.BeatUII18n,c=>{const m=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:a,disabled:n,color:r,onClick:i},s.attr.title(m),s.aria.label(m),...l,w.Icon({icon:t,size:e??"sm"}))})}function A(e){return`bc-label bc-label--${e}`}const ee=(...e)=>s.html.span(s.attr.class(A("emphasis")),...e),j=(...e)=>s.html.span(s.attr.class(A("default")),...e),q=(...e)=>s.html.span(s.attr.class(A("muted")),...e),te=(...e)=>s.html.span(s.attr.class(A("danger")),...e),se=e=>{const{value:t,onBlur:n,onChange:a,placeholder:r,disabled:i,id:o,checkedIcon:l,uncheckedIcon:c,iconSize:m="lg"}=e,u=o??F("checkbox"),b=`${u}-label`,y=()=>{if(s.Value.get(i??!1))return;const h=s.Value.get(t);a?.(!h)},g=h=>{s.Value.get(i??!1)||(h.key===" "||h.key==="Enter")&&(h.preventDefault(),y())};return w.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,h=>h?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,h=>h?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(u),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,h=>h?-1:0)),s.aria.checked(t),s.aria.disabled(i),r!=null?s.aria.labelledby(b):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((h,p,d)=>h?p??"akar-icons/check-box-fill":d??"akar-icons/box"),accessibility:"decorative",size:m})),r!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(b),s.attr.for(u),q(r)):s.Empty)},s.on.click(y))},U=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ne(e){const t=["bc-input-wrapper"];return e!=="vertical"&&t.push(`bc-input-wrapper--${e}`),t.join(" ")}function re(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}function x(e,t){if(e==="horizontal-fixed"&&t!=null)return`--input-wrapper-label-width: ${t}`}const B=({fullWidth:e=!1,required:t,label:n,labelChildren:a,context:r,description:i,content:o,error:l,labelFor:c,hasError:m,disabled:u,layout:b,labelWidth:y},...g)=>{const h=m??l!=null,p=u??!1,d=b??"vertical",C=F("input-wrapper"),I=i?`${C}-description`:void 0,O=l!=null?`${C}-error`:void 0,D=s.computedOf(d)(v=>v!=="vertical");return s.html.div(s.OnDispose(D),s.attr.class(s.Value.map(d,v=>ne(v))),s.attr.class(s.Value.map(e,v=>v?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(d,y??void 0)((v,V)=>x(v,V)!=null),()=>s.attr.style(s.Value.map(s.computedOf(d,y??void 0)((v,V)=>x(v,V)),v=>v))),n!=null||r!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),c!=null?s.attr.for(c):s.Empty,s.html.span(s.attr.class(s.computedOf(h,p)((v,V)=>re(v??!1,V??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(D,i)((v,V)=>v&&V!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(I),i))),r!=null?j(r):s.Empty,a):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[I,O].filter(Boolean).length>0?s.dataAttr.describedby([I,O].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(h,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(D,i)((v,V)=>!v&&V!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(h,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(O),s.aria.live("polite"),s.attr.role("alert"),l)):null,...g)};function ae(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ie=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:a,onBlur:r,onChange:i,onInput:o,placeholder:l}=t,c=a??w.Icon({icon:"line-md:email",size:"sm",color:"neutral"});return s.Use(w.BeatUII18n,m=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,m.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),r!=null?s.on.blur(s.emitValue(r)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,o!=null?s.on.input(s.emitValue(o)):s.Empty)}))},le=e=>{const{value:t,onBlur:n,onChange:a,onInput:r,before:i,after:o,hasError:l,disabled:c,autocomplete:m,placeholder:u,...b}=e,y={name:"password",disabled:c,...b},g=s.prop(!0),h=s.computedOf(g,m)((p,d)=>p?d??"current-password":"off");return s.Use(w.BeatUII18n,p=>{const d=s.computedOf(p.$.passwordPlaceholderText,g,u)((I,O,D)=>O?"•••••••••••••••":D??I),C=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(p.$.togglePasswordVisibility),s.on.click(()=>g.update(I=>!I)),s.When(g,()=>w.Icon({icon:"line-md:watch"}),()=>w.Icon({icon:"line-md:watch-off"})));return w.InputContainer({before:i,disabled:c,hasError:l,input:s.html.input(w.CommonInputAttributes({...y,autocomplete:h,placeholder:d}),s.When(g,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,a!=null?s.on.change(s.emitValue(a)):s.Empty,r!=null?s.on.input(s.emitValue(r)):s.Empty),after:o!=null?s.Fragment(C,o):C})})},W=(e,t)=>()=>{e.markTouched(),t?.()},H=(e,t)=>n=>{e.change(n),t?.(n)};function P(e,t){const{controller:n,onBlur:a,onChange:r,...i}=t;return e({id:n.name,disabled:n.disabled,value:n.signal,hasError:n.errorVisible,...i,onChange:H(n,r),onBlur:W(n,a)})}function oe(e,t,...n){return B({...t,content:P(e,t)},...n)}function z(e,t){const{toInput:n,fromInput:a,controller:r,...i}=t,o=r.transform(n,a);return P(e,{...i,controller:o})}function ce(e,t,...n){return B({...t,content:z(e,t)},...n)}function ue(e){return e.split(".").map(n=>{const a=n.match(/^\[(\d+)\]$/);return a?Number(a[1]):n})}function R(e){return typeof e=="number"?`[${e}]`:`.${e}`}function K(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(R)].join("")}function T(e){return function(n){if(n.type==="valid")return n;let a=n.error;for(const r of e)if(a=a?.dependencies?.[r],a==null)return S.valid;return S.invalid(a)}}class E{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,a,r,i,o=_){this.path=t,this.change=n,this.signal=a,this.status=r,this.#s=o,this.#t.set(a.value),this.error=r.map(l=>l?.type==="invalid"?l.error?.message:void 0),this.hasError=this.error.map(l=>l!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((l,c,m)=>m==="continuous"?!!l:!!l&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((l,c)=>!!l&&!!c),this.dirty=s.computedOf(this.signal,this.#t)((l,c)=>!this.#s(l,c)),this.dependencyErrors=r.map(l=>l?.type==="invalid"?l.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((l,c)=>l||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((l,c)=>l||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return K(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.signal.value)};reset=()=>{this.change(this.#t.value)};array=(t=_)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=_)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,a=[],r=_)=>new E([...this.path,...a],i=>this.change(n(i)),this.signal.map(t,r),this.status.map(T(a)),this.parent,r);asyncTransform=(t,n,a,r=[],i=_)=>new E([...this.path,...r],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,a,void 0,i),this.status.map(T(r)),this.parent,i)}class G extends E{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,o){super(t,n,a.map(c=>c??{},o),r,i,o),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const l=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),l()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async o=>{this.change({...this.signal.value,[t]:o})},a=new E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,a);const r=a.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,r);const i=a.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),a};markAllTouched=()=>{this.markTouched();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class J extends E{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,o){const l=a.map(u=>u??[],o);super(t,n,l,r,i,o);const c=l.on(u=>{const b=this.#e.length-u.length;b>0&&(this.#e.splice(u.length,b).forEach((y,g)=>{const h=u.length+g;y.dispose(),this.#t.get(h)?.(),this.#t.delete(h),this.#s.delete(h),this.#r.get(h)?.(),this.#r.delete(h),this.#a.delete(h)}),this.#o(),this.#i())});this.length=l.map(u=>u.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const m=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const u of this.#e)u.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const u of this.#t.values())u();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const u of this.#r.values())u();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),m()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async o=>{const l=this.signal.value.slice();l[t]=o,this.change(l)},a=new E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=a;const r=a.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,r);const i=a.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),a};push=(...t)=>{this.change([...this.signal.value,...t])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.signal.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const a=this.signal.value.slice();a.splice(t,n),this.change(a)};move=(t,n,a=1)=>{if(a<1||t===n)return;const r=this.signal.value.slice(),i=r.splice(t,a);r.splice(n,0,...i),this.change(r)};markAllTouched=()=>{this.markTouched();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function Q(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function X(e){const t=e.filter(r=>r.path==null||r.path.length===0).map(r=>r.message),n=e.filter(r=>r.path!=null&&r.path.length>0).reduce((r,i)=>{const o=Q(i.path),l=o.pop();let c=r;for(const m of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[m]==null&&(c.dependencies[m]={}),c=c.dependencies[m];return c.dependencies==null&&(c.dependencies={}),c.dependencies[l]={message:i.message},r},{}),a=t.join(`
|
|
2
|
+
`);return{...n,message:a!=""?a:void 0}}function Y({initialValue:e,onChange:t,validate:n,equals:a,validationMode:r,validateDebounceMs:i}){const o=s.Value.deriveProp(e),l=s.prop(S.valid),c=s.prop(!1),m=s.prop(r??"touchedOrSubmit"),u=p=>{l.set(p)};let b;const y=async p=>{if(n!=null){const d=await n(p);u(d)}},g=async p=>{o.set(p),t?.(p);const d=m.value;if(n!=null){if(d==="onSubmit")return;const C=i??0;C>0?(b&&clearTimeout(b),b=setTimeout(()=>{y(p)},C)):await y(p)}},h=new E([],g,o,l,{disabled:c,validationMode:m},a??_);return h.onDispose(()=>{c.dispose(),o.dispose(),l.dispose(),m.dispose(),b&&clearTimeout(b)}),{controller:h,setStatus:u}}function $(e){return s.Fragment(s.attr.disabled(e.disabled),s.attr.name(e.name))}function he(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.value(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValue(e.change)))}function pe(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.valueAsNumber(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValueAsNumber(e.change)))}function M(e){return e.issues!=null?S.invalid(X(e.issues)):S.valid}async function de({task:e,errorMessage:t,errorPath:n=["root"],validation:a}){try{const r=await e();return a!=null?a(r):S.valid}catch(r){const i=t??(r instanceof Error?r.message:"Operation failed");return n.length===1&&n[0]==="root"?S.invalid({message:i}):S.invalid({dependencies:Z(n,i)})}}function Z(e,t){if(e.length===1)return{[e[0]]:{message:t}};const[n,...a]=e;return{[n]:{dependencies:Z(a,t)}}}function me({initialValue:e={},schema:t,onSubmit:n=async()=>S.valid,validationMode:a,validateDebounceMs:r}){const{controller:i,setStatus:o}=Y({initialValue:e,validationMode:a??"touchedOrSubmit",validateDebounceMs:r,validate:(a??"touchedOrSubmit")==="onSubmit"||t==null?void 0:async u=>M(await t["~standard"].validate(u))}),l=s.prop(!1),c=i.object();return c.onDispose(l.dispose),{controller:c,setStatus:o,submit:async u=>{if(l.set(!0),u?.preventDefault(),c.markAllTouched(),(a??"touchedOrSubmit")==="onSubmit"){const y=c.signal.value,g=t?.["~standard"].validate;if(g==null){l.set(!1);return}const h=M(await g(y));if(o(h),h.type==="invalid"){l.set(!1);return}}const b=await n(c.signal.value);l.set(!1),b.type==="invalid"&&o(b)},submitting:l}}function fe(e){switch(e){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 be(e){switch(e){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function ge(e,t,n,a){const r=["bc-notice",`bc-notice--${e}`,`bc-notice--tone-${t}`];return n&&r.push("bc-notice--dismissible"),a&&a.length>0&&r.push(a),r.join(" ")}function ye({variant:e="info",tone:t="subtle",role:n,title:a,icon:r,closable:i=!1,onDismiss:o,class:l},...c){const m=s.Value.map(i,p=>!!p||o!=null),u=s.Value.map(e,p=>p??"info"),b=s.Value.map(t,p=>p??"subtle"),y=s.computedOf(n,u)((p,d)=>p??(d==="danger"?"alert":"status")),g=s.prop(!0),h=s.Use(w.BeatUII18n,p=>s.html.div(s.attr.class(s.computedOf(u,b,m,l)((d,C,I,O)=>ge(d,C,I,O))),s.attr.role(s.Value.map(y,d=>d)),s.Unless(s.Value.map(r,d=>d===!1),()=>s.html.div(s.attr.class("bc-notice__icon"),w.Icon({icon:s.computedOf(r,u)((d,C)=>d===void 0?fe(C):String(d)),size:"md",color:s.Value.map(u,be)}))),s.html.div(s.attr.class("bc-notice__body"),s.Ensure(a,d=>s.html.div(s.attr.class("bc-notice__title"),d)),s.html.div(s.attr.class("bc-notice__content"),...c)),s.When(m,()=>N({size:"xs",label:p.$.closeModal,onClick:()=>{g.set(!1),o?.()}}))));return s.Fragment(s.OnDispose(()=>{s.Value.dispose(m),s.Value.dispose(u),s.Value.dispose(b)},y,g),s.When(g,()=>h))}exports.ArrayController=J;exports.BaseControl=P;exports.BaseMappedControl=z;exports.CheckboxInput=se;exports.CloseButton=N;exports.Control=oe;exports.Controller=E;exports.DangerLabel=te;exports.EmailInput=ie;exports.EmphasisLabel=ee;exports.InputWrapper=B;exports.Label=j;exports.MappedControl=ce;exports.MutedLabel=q;exports.Notice=ye;exports.O=_;exports.ObjectController=G;exports.PasswordInput=le;exports.RequiredSymbol=U;exports.Stack=ae;exports.a=S;exports.connectCommonAttributes=$;exports.connectNumberInput=pe;exports.connectStringInput=he;exports.convertStandardSchemaIssues=X;exports.convertStandardSchemaPathToPath=Q;exports.makeMapValidation=T;exports.makeOnBlurHandler=W;exports.makeOnChangeHandler=H;exports.parsePath=ue;exports.pathToString=K;exports.sessionId=F;exports.standardSchemaResultToValidation=M;exports.taskToValidation=de;exports.useController=Y;exports.useForm=me;exports.wrapSegment=R;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-Dw1oO6Dh.cjs"),t={loadingExtended:"Ładowanie, proszę czekać",loadingShort:"Ładowanie...",locale:"Język",iconDescription:"Ikona",loadingIcon:"Ikona ładowania",failedToLoadIcon:"Nie udało się załadować ikony",editLabel:"Edytuj",selectOne:"Wybierz jeden",selectMany:"Wybierz wiele",noResults:"Brak wyników",passwordPlaceholderText:"Tajne hasło",togglePasswordVisibility:"Przełącz widoczność hasła",toggleMenu:"Przełącz menu",toggleAside:"Przełącz panel boczny",mainNavigation:"Główna nawigacja",sidebar:"Pasek boczny",closeDrawer:"Zamknij szufladę",closeModal:"Zamknij modal",confirm:"Potwierdź",cancel:"Anuluj",addLabel:"Dodaj",removeItem:"Usuń element",currentLocale:"Polski",ar:"Arabski",de:"Niemiecki",en:"Angielski",es:"Hiszpański",fr:"Francuski",hi:"Hindi",it:"Włoski",ja:"Japoński",ko:"Koreański",nl:"Holenderski",pl:"Polski",pt:"Portugalski",ru:"Rosyjski",tr:"Turecki",vi:"Wietnamski",zh:"Chiński",he:"Hebrajski",fa:"Perski",ur:"Urdu",emailPlaceholderText:"Wprowadź adres e-mail",incrementValue:"Zwiększ wartość",decrementValue:"Zmniejsz wartość",dropZoneInstructions:e=>e?"Kliknij aby wybrać lub przeciągnij pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików":"Przeciągnij pliki tutaj",fileSizeUnits:["Bajty","KB","MB","GB","TB"],removeFile:"Usuń plik",clearAllFiles:"Usuń wszystkie pliki",clearValue:"Wyczyść wartość",unknownType:"Nieznany typ",filesInputInstructions:(e,o,a)=>{let n=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||o){const i=[];if(e!=null&&e>1&&i.push(`do ${e} plików`),o&&a){const r=l.formatFileSize(o,{units:a});i.push(`maks ${r} każdy`)}i.length>0&&(n+=` (${i.join(", ")})`)}else if(o&&a){const i=l.formatFileSize(o,{units:a});n+=` (maks ${i})`}return n},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"}};exports.default=t;exports.pl=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-Dtka01mK.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-Dw1oO6Dh.cjs"),n={loadingExtended:"Carregando, por favor aguarde",loadingShort:"Carregando...",locale:"Idioma",iconDescription:"Ícone",loadingIcon:"Ícone de carregamento",failedToLoadIcon:"Falha ao carregar ícone",editLabel:"Editar",selectOne:"Selecionar um",selectMany:"Selecionar vários",noResults:"Sem resultados",passwordPlaceholderText:"Senha Secreta",togglePasswordVisibility:"Alternar visibilidade da senha",toggleMenu:"Alternar menu",toggleAside:"Alternar painel lateral",mainNavigation:"Navegação principal",sidebar:"Barra lateral",closeDrawer:"Fechar gaveta",closeModal:"Fechar modal",confirm:"Confirmar",cancel:"Cancelar",addLabel:"Adicionar",removeItem:"Remover item",currentLocale:"Português",ar:"Árabe",de:"Alemão",en:"Inglês",es:"Espanhol",fr:"Francês",hi:"Hindi",it:"Italiano",ja:"Japonês",ko:"Coreano",nl:"Holandês",pl:"Polonês",pt:"Português",ru:"Russo",tr:"Turco",vi:"Vietnamita",zh:"Chinês",he:"Hebraico",fa:"Persa",ur:"Urdu",emailPlaceholderText:"Digite seu e-mail",incrementValue:"Incrementar valor",decrementValue:"Decrementar valor",dropZoneInstructions:e=>e?"Clique para escolher ou arraste arquivos aqui, ou pressione Enter ou Espaço para abrir o seletor de arquivos":"Arraste arquivos aqui",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Remover arquivo",clearAllFiles:"Limpar todos os arquivos",clearValue:"Limpar valor",unknownType:"Tipo desconhecido",filesInputInstructions:(e,r,o)=>{let t=e==null||e>1?"Clique para escolher ou arraste arquivos aqui":"Clique para escolher ou arraste um arquivo aqui";if(e||r){const a=[];if(e!=null&&e>1&&a.push(`até ${e} arquivos`),r&&o){const l=i.formatFileSize(r,{units:o});a.push(`máx ${l} cada`)}a.length>0&&(t+=` (${a.join(", ")})`)}else if(r&&o){const a=i.formatFileSize(r,{units:o});t+=` (máx ${a})`}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"}};exports.default=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-Dw1oO6Dh.cjs"),c={loadingExtended:"Загрузка, пожалуйста подождите",loadingShort:"Загрузка...",locale:"Локаль",iconDescription:"Иконка",loadingIcon:"Иконка загрузки",failedToLoadIcon:"Не удалось загрузить иконку",editLabel:"Редактировать",selectOne:"Выберите один",selectMany:"Выберите несколько",noResults:"Нет результатов",passwordPlaceholderText:"Секретный пароль",togglePasswordVisibility:"Переключить видимость пароля",toggleMenu:"Переключить меню",toggleAside:"Переключить боковую панель",mainNavigation:"Основная навигация",sidebar:"Боковая панель",closeDrawer:"Закрыть выдвижную панель",closeModal:"Закрыть модальное окно",confirm:"Подтвердить",cancel:"Отменить",addLabel:"Добавить",removeItem:"Удалить элемент",currentLocale:"Русский",ar:"Арабский",de:"Немецкий",en:"Английский",es:"Испанский",fr:"Французский",hi:"Хинди",it:"Итальянский",ja:"Японский",ko:"Корейский",nl:"Нидерландский",pl:"Польский",pt:"Португальский",ru:"Русский",tr:"Турецкий",vi:"Вьетнамский",zh:"Китайский",he:"Иврит",fa:"Персидский",ur:"Урду",emailPlaceholderText:"Введите электронную почту",incrementValue:"Увеличить значение",decrementValue:"Уменьшить значение",dropZoneInstructions:e=>e?"Нажмите для выбора или перетащите файлы сюда, или нажмите Enter или Пробел, чтобы открыть выбор файлов":"Перетащите файлы сюда",fileSizeUnits:["Байт","КБ","МБ","ГБ","ТБ"],removeFile:"Удалить файл",clearAllFiles:"Очистить все файлы",clearValue:"Очистить значение",unknownType:"Неизвестный тип",filesInputInstructions:(e,t,l)=>{let r=e==null||e>1?"Нажмите для выбора или перетащите файлы сюда":"Нажмите для выбора или перетащите файл сюда";if(e||t){const o=[];if(e!=null&&e>1){let n="файлов";e<=4&&(n="файла"),o.push(`до ${e} ${n}`)}if(t&&l){const n=i.formatFileSize(t,{units:l});o.push(`макс ${n} каждый`)}o.length>0&&(r+=` (${o.join(", ")})`)}else if(t&&l){const o=i.formatFileSize(t,{units:l});r+=` (макс ${o})`}return r},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"}};exports.default=c;exports.ru=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-B-SyWyCc.cjs");exports.beatuiPreset=e.beatuiPreset;exports.createBeatuiPreset=e.createBeatuiPreset;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-B-SyWyCc.cjs");require("../colors-Qc1mmmfr.cjs");exports.beatuiPreset=e.beatuiPreset;exports.createBeatuiPreset=e.createBeatuiPreset;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("node:fs"),l=require("node:path"),te=require("node:module"),ne=require("node:url"),G=require("../index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("node:fs"),l=require("node:path"),te=require("node:module"),ne=require("node:url"),G=require("../index-B-SyWyCc.cjs"),k=require("node:fs/promises"),se=require("node:crypto");var B=typeof document<"u"?document.currentScript:null;const ae="https://fonts.googleapis.com/css2",W="normal",re=400,Q="Mozilla/5.0 (compatible; BeatUI Tailwind Plugin; +https://tempots.com)";async function oe(e){const{projectRoot:t,requests:n,logger:s}=e;if(!n||n.length===0)return null;const r=e.cacheDir?l.resolve(e.cacheDir):l.join(t,"node_modules",".beatui","google-fonts"),a=[],u=new Map;await k.mkdir(r,{recursive:!0}).catch(h=>{s?.(`Unable to create BeatUI Google Fonts cache directory: ${h}`)});for(const h of n)try{const d=X(h),m=await ie({request:h,cssUrl:d,cacheRoot:r,logger:s});if(!m)continue;const T=await he({cssText:m,cacheRoot:r,assetMap:u,logger:s});a.push(T)}catch(d){s?.(`Unexpected error while downloading Google Font "${h.family}": ${String(d)}`)}return a.length===0||u.size===0?null:{cssText:a.join(`
|
|
2
2
|
`),assets:Array.from(u.values())}}async function ie({request:e,cssUrl:t,cacheRoot:n,logger:s}){const r=l.join(n,ce(e,t));try{const a=await fetch(t,{headers:{"User-Agent":Q}});if(!a.ok)throw new Error(`Failed to download Google Font CSS: ${a.status} ${a.statusText}`);const u=await a.text();return await k.writeFile(r,u),u}catch(a){if(y.existsSync(r))try{const u=await k.readFile(r,"utf8");return s?.(`Using cached Google Font CSS for ${e.family} because download failed.`),u}catch(u){s?.(`Failed to read cached Google Font CSS for ${e.family}: ${u}`)}return s?.(`Unable to download Google Font CSS for ${e.family}: ${a}`),null}}function ce(e,t){const n=se.createHash("sha1").update(t).digest("hex").slice(0,10);return`${e.family.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-")||"font"}-${n}.css`}function X(e){const{family:t}=e,n=t.trim().replace(/\s+/g," "),s=le(e.weights),r=ue(e.styles),a=new URLSearchParams;return a.append("family",de(n,s,r)),e.display&&a.append("display",e.display),e.subsets&&e.subsets.length>0&&a.append("subset",e.subsets.join(",")),e.text&&a.append("text",e.text),`${ae}?${a.toString()}`}function le(e){return!e||e.length===0?[]:Array.from(new Set(e)).sort((t,n)=>t-n)}function ue(e){if(!e||e.length===0)return[W];const t=Array.from(new Set(e)),n=t.includes("italic"),s=t.includes("normal");return!n&&!s&&t.push(W),t.sort((r,a)=>r===a?0:r==="normal"?-1:1)}function de(e,t,n){if(t.length===0&&n.every(d=>d==="normal"))return e;const s=n.includes("italic"),r=n.includes("normal"),a=t.length>0?t:[re];if(!s)return`${e}:wght@${a.join(";")}`;const u=new Set;r&&a.forEach(d=>{u.add(`0,${d}`)}),a.forEach(d=>{u.add(`1,${d}`)});const h=Array.from(u).sort((d,m)=>{const[T,R]=d.split(",").map(Number),[E,U]=m.split(",").map(Number);return T-E||R-U});return`${e}:ital,wght@${h.join(";")}`}const fe=/url\(([^)]+)\)/g;async function he({cssText:e,cacheRoot:t,assetMap:n,logger:s}){let r=e;const a=new Set;let u;for(;(u=fe.exec(e))!==null;){const d=u[1].trim().replace(/^['"]|['"]$/g,"");d.startsWith("http")&&a.add(d)}for(const h of a){const d=await me(h,t,n,s);if(!d)continue;const m=h.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),T=new RegExp(`url\\((['"])${m}\\1\\)`,"g"),R=new RegExp(`url\\(${m}\\)`,"g");r=r.replace(T,`url(${d.placeholder})`),r=r.replace(R,`url(${d.placeholder})`)}return r}async function me(e,t,n,s){const r=n.get(e);if(r)return r;let a;try{const m=new URL(e);a=l.basename(m.pathname)}catch(m){return s?.(`Invalid Google Font URL skipped: ${e} (${m})`),null}if(!a)return s?.(`Unable to derive file name for Google Font URL: ${e}`),null;const u=l.join(t,a),h=`__BEATUI_GOOGLE_FONT_${n.size}__`;if(!y.existsSync(u))try{const m=await fetch(e,{headers:{"User-Agent":Q}});if(!m.ok)return s?.(`Failed to download Google Font asset ${a}: ${m.status} ${m.statusText}`),null;const T=Buffer.from(await m.arrayBuffer());await k.writeFile(u,T)}catch(m){return s?.(`Unexpected error while downloading Google Font asset ${a}: ${String(m)}`),null}const d={url:e,fileName:a,localPath:u,placeholder:h};return n.set(e,d),d}function K(e){const t=typeof e=="string"?new URL(e):e;if(t.protocol!=="file:")throw new TypeError(`Expected file URL, received: ${t.href}`);const n=t.hostname,s=n===""||n==="localhost",r=decodeURIComponent(t.pathname);if(process.platform==="win32"){let a=r.replace(/\//g,"\\");return!s&&n?`\\\\${n}${a}`:(a.startsWith("\\")&&(a=a.slice(1)),a)}return!s&&n?`//${n}${r}`:r}function ge(e){return typeof e=="object"&&e!==null}function pe(e){if(typeof e=="string")return e;if(typeof e=="function")return e.name;if(ge(e)){const t=e.name;if(typeof t=="string")return t;const n=e.postcssPlugin;if(typeof n=="string")return n}}const z="@tempots/beatui/tailwind.css",$="beatui.tailwind.css",b=l.dirname(K(typeof document>"u"?require("url").pathToFileURL(__filename).href:B&&B.tagName.toUpperCase()==="SCRIPT"&&B.src||new URL("tailwind/vite-plugin.cjs.js",document.baseURI).href)),L=we(b)??b;function H(e){if(Object.keys(e).length===0)return"";let t=`:root {
|
|
3
3
|
`;for(const[n,s]of Object.entries(e))t+=` ${n}: ${s};
|
|
4
4
|
`;return t+=`}
|
|
@@ -2,7 +2,7 @@ import y from "node:fs";
|
|
|
2
2
|
import c from "node:path";
|
|
3
3
|
import { createRequire as Z } from "node:module";
|
|
4
4
|
import { pathToFileURL as q } from "node:url";
|
|
5
|
-
import { g as ee, a as te, c as se } from "../index-
|
|
5
|
+
import { g as ee, a as te, c as se } from "../index-B-pudlMv.js";
|
|
6
6
|
import { mkdir as ne, writeFile as V, readFile as ae } from "node:fs/promises";
|
|
7
7
|
import { createHash as oe } from "node:crypto";
|
|
8
8
|
const re = "https://fonts.googleapis.com/css2", B = "normal", ie = 400, J = "Mozilla/5.0 (compatible; BeatUI Tailwind Plugin; +https://tempots.com)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@tempots/dom"),h=require("./translations-
|
|
1
|
+
"use strict";const e=require("@tempots/dom"),h=require("./translations-Dw1oO6Dh.cjs"),l=["button:not([disabled])",'[role="button"]:not([aria-disabled="true"])',"a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function m(...a){return e.html.div(e.attr.class("bc-toolbar"),e.attr.role("toolbar"),e.aria.orientation("horizontal"),e.WithElement(n=>{const f=()=>{const r=Array.from(n.querySelectorAll(l));r.length!==0&&r.forEach((t,o)=>t.setAttribute("tabindex",o===0?"0":"-1"))},c=r=>{const t=Array.from(n.querySelectorAll(l));if(t.length===0)return;const o=t.findIndex(u=>u===document.activeElement);let i=(o===-1?0:o)+r;i<0&&(i=t.length-1),i>=t.length&&(i=0),t.forEach(u=>u.setAttribute("tabindex","-1"));const d=t[i];d.setAttribute("tabindex","0"),d.focus()};setTimeout(f,0);const b=r=>{switch(r.key){case"ArrowRight":r.preventDefault(),c(1);break;case"ArrowLeft":r.preventDefault(),c(-1);break;case"Home":r.preventDefault(),c(-1);{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[0];o.setAttribute("tabindex","0"),o.focus()}}break;case"End":r.preventDefault();{const t=Array.from(n.querySelectorAll(l));if(t.length){t.forEach(s=>s.setAttribute("tabindex","-1"));const o=t[t.length-1];o.setAttribute("tabindex","0"),o.focus()}}break}};return n.addEventListener("keydown",b),e.OnDispose(()=>{n.removeEventListener("keydown",b)})}),...a)}function v(a,...n){return h.Button({color:"neutral",roundedness:"md",variant:"light",...a},e.attr.class("bc-toolbar__button"),...n)}function A(...a){return e.html.div(e.attr.class("bc-toolbar__group"),e.attr.role("group"),...a)}function x(){return e.html.div(e.attr.class("bc-toolbar__divider"),e.attr.role("separator"),e.aria.orientation("vertical"))}function p(){return e.html.div(e.attr.class("bc-toolbar__spacer"))}exports.Toolbar=m;exports.ToolbarButton=v;exports.ToolbarDivider=x;exports.ToolbarGroup=A;exports.ToolbarSpacer=p;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { html as c, attr as n, aria as m, WithElement as v, OnDispose as A } from "@tempots/dom";
|
|
2
|
-
import { B as x } from "./translations-
|
|
2
|
+
import { B as x } from "./translations-DEEflRUY.js";
|
|
3
3
|
const l = [
|
|
4
4
|
"button:not([disabled])",
|
|
5
5
|
'[role="button"]:not([aria-disabled="true"])',
|
|
@@ -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-Dw1oO6Dh.cjs"),t={loadingExtended:"Yükleniyor, lütfen bekleyin",loadingShort:"Yükleniyor...",locale:"Yerel",iconDescription:"Simge",loadingIcon:"Yükleme simgesi",failedToLoadIcon:"Simge yüklenemedi",editLabel:"Düzenle",selectOne:"Birini seç",selectMany:"Birden fazlasını seç",noResults:"Sonuç yok",passwordPlaceholderText:"Gizli Şifre",togglePasswordVisibility:"Şifre görünürlüğünü değiştir",toggleMenu:"Menüyü değiştir",toggleAside:"Yan paneli değiştir",mainNavigation:"Ana navigasyon",sidebar:"Kenar çubuğu",closeDrawer:"Çekmeceyi kapat",closeModal:"Modalı kapat",confirm:"Onayla",cancel:"İptal",addLabel:"Ekle",removeItem:"Öğeyi kaldır",currentLocale:"Türkçe",ar:"Arapça",de:"Almanca",en:"İngilizce",es:"İspanyolca",fr:"Fransızca",hi:"Hintçe",it:"İtalyanca",ja:"Japonca",ko:"Korece",nl:"Flemenkçe",pl:"Lehçe",pt:"Portekizce",ru:"Rusça",tr:"Türkçe",vi:"Vietnamca",zh:"Çince",he:"İbranice",fa:"Farsça",ur:"Urduca",emailPlaceholderText:"E-postanızı girin",incrementValue:"Değer artır",decrementValue:"Değer azalt",dropZoneInstructions:e=>e?"Seçmek için tıklayın veya dosyaları buraya sürükleyin, veya dosya seçiciyi açmak için Enter veya Boşluk tuşuna basın":"Dosyaları buraya sürükleyin",fileSizeUnits:["Bayt","KB","MB","GB","TB"],removeFile:"Dosyayı kaldır",clearAllFiles:"Tüm dosyaları temizle",clearValue:"Değeri temizle",unknownType:"Bilinmeyen tür",filesInputInstructions:(e,n,i)=>{let l=e==null||e>1?"Seçmek için tıklayın veya dosyaları buraya sürükleyin":"Seçmek için tıklayın veya dosyayı buraya sürükleyin";if(e||n){const a=[];if(e!=null&&e>1&&a.push(`en fazla ${e} dosya`),n&&i){const o=r.formatFileSize(n,{units:i});a.push(`her biri en fazla ${o}`)}a.length>0&&(l+=` (${a.join(", ")})`)}else if(n&&i){const a=r.formatFileSize(n,{units:i});l+=` (en fazla ${a})`}return l},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"}};exports.default=t;
|