@solibo/solibo-ui 0.5.3 → 0.5.5
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/assets/index.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/_avatar/index.cjs +1 -1
- package/dist/components/_avatar/index.js +1 -1
- package/dist/components/_card/index.cjs +1 -1
- package/dist/components/_card/index.cjs.map +1 -1
- package/dist/components/_card/index.js +40 -17
- package/dist/components/_card/index.js.map +1 -1
- package/dist/components/_collapsible/index.cjs +1 -1
- package/dist/components/_collapsible/index.js +2 -2
- package/dist/components/_croppable/index.cjs +1 -1
- package/dist/components/_croppable/index.js +123 -123
- package/dist/components/_dropdown/index.cjs +1 -1
- package/dist/components/_dropdown/index.js +4 -4
- package/dist/components/_dropzone/index.cjs +1 -1
- package/dist/components/_dropzone/index.js +1 -1
- package/dist/components/_editor/index.cjs +1 -1
- package/dist/components/_editor/index.js +1 -1
- package/dist/components/_messages/index.cjs +1 -1
- package/dist/components/_messages/index.js +1 -1
- package/dist/components/_portal/index.cjs +1 -1
- package/dist/components/_portal/index.js +1 -1
- package/dist/components/_sortable/index.cjs +1 -1
- package/dist/components/_sortable/index.cjs.map +1 -1
- package/dist/components/_sortable/index.js +55 -61
- package/dist/components/_sortable/index.js.map +1 -1
- package/dist/components/_toasts/index.cjs +1 -1
- package/dist/components/_toasts/index.js +1 -1
- package/dist/components/_widget/index.cjs +1 -1
- package/dist/components/_widget/index.js +1 -1
- package/dist/components/accordion/index.cjs +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.js +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +1 -1
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.js +15 -15
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +1 -1
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.js +2 -2
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +4 -4
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +2 -2
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +2 -2
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +15 -15
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +2 -2
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/toolbar/index.cjs +1 -1
- package/dist/components/toolbar/index.js +6 -6
- package/dist/{icons-DfmpRbxE.js → icons-DkF2p6NO.js} +9 -5
- package/dist/{icons-DfmpRbxE.js.map → icons-DkF2p6NO.js.map} +1 -1
- package/dist/{icons-C_cX1FYp.cjs → icons-vqS7W0cD.cjs} +2 -2
- package/dist/{icons-C_cX1FYp.cjs.map → icons-vqS7W0cD.cjs.map} +1 -1
- package/dist/{index-ClrKYsAQ.cjs → index-908yg65J.cjs} +2 -2
- package/dist/{index-ClrKYsAQ.cjs.map → index-908yg65J.cjs.map} +1 -1
- package/dist/{index-CiEbbnD6.js → index-BGqIgxnV.js} +2 -2
- package/dist/{index-CiEbbnD6.js.map → index-BGqIgxnV.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +36 -14
- package/dist/index.js +1 -1
- package/dist/styles.module-BUYR37kC.js +9 -0
- package/dist/styles.module-BUYR37kC.js.map +1 -0
- package/dist/styles.module-DvIhipVo.cjs +2 -0
- package/dist/styles.module-DvIhipVo.cjs.map +1 -0
- package/dist/tokens.css +14 -7
- package/dist/tokens.json +111 -32
- package/package.json +1 -1
- package/dist/styles.module-BOTEBJ0C.js +0 -9
- package/dist/styles.module-BOTEBJ0C.js.map +0 -1
- package/dist/styles.module-BPvMQa_x.cjs +0 -2
- package/dist/styles.module-BPvMQa_x.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";require('../../assets/
|
|
1
|
+
"use strict";require('../../assets/index21.css');var p0=Object.defineProperty;var g0=(n,e,t)=>e in n?p0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var mn=(n,e,t)=>g0(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react/jsx-runtime"),z=require("react"),Fs=require("react-dom"),js=require("../../classix-5H4IWnMA.cjs"),Ke=require("../button/index.cjs"),Je=require("../icon/index.cjs"),qs=require("../input/index.cjs"),m0=require("../toolbar/index.cjs");function b0(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Ru=b0(z);function fn(n){return{}}const du={},y0={},ka={},It={},Yt={},Ln={},en={},hu={},ei={},Dn={},Mn={},$e={},Wi={},$i={},_0={},Na={},x0={},Aa={},v0={},Oa={},Ia={},Fr={},w0={},Pa={},La={},Da={},S0={},T0={},C0={},Us={},Ma={},E0={},Ra={},Ba={},k0={},pu={},Hi={},ti={},N0={},A0={},hr={},pr={},O0={},I0={},P0={},Be=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,L0=Be&&"documentMode"in document?document.documentMode:null,Pe=Be&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),_t=Be&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),jr=!(!Be||!("InputEvent"in window)||L0)&&"getTargetRanges"in new window.InputEvent("input"),gu=Be&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Kn=Be&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,D0=Be&&/Android/.test(navigator.userAgent),Fa=Be&&/^(?=.*Chrome).*/i.test(navigator.userAgent),M0=Be&&D0&&Fa,Vi=Be&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Fa,Jn=1,wt=3,Lt=0,ja=1,rn=2,R0=0,B0=1,F0=2,qr=4,Ur=8,Gi=128,j0=112|(3|qr|Ur)|Gi,Ki=1,Ji=2,Xi=3,Zi=4,Qi=5,Yi=6,mu=gu||Kn||Vi?" ":"",rt=`
|
|
2
2
|
|
|
3
3
|
`,q0=_t?" ":mu,qa="֑-߿יִ-﷽ﹰ-ﻼ",Ua="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",U0=new RegExp("^[^"+Ua+"]*["+qa+"]"),z0=new RegExp("^[^"+qa+"]*["+Ua+"]"),Dt={bold:1,code:16,highlight:Gi,italic:2,strikethrough:qr,subscript:32,superscript:64,underline:Ur},W0={directionless:1,unmergeable:2},zs={center:Ji,end:Yi,justify:Zi,left:Ki,right:Xi,start:Qi},$0={[Ji]:"center",[Yi]:"end",[Zi]:"justify",[Ki]:"left",[Xi]:"right",[Qi]:"start"},H0={normal:0,segmented:2,token:1},V0={[R0]:"normal",[F0]:"segmented",[B0]:"token"};function G0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var M=G0(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function zr(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const K0=100;let ni=!1,es=0;function J0(n){es=n.timeStamp}function Bu(n,e,t){const r=n.nodeName==="BR",u=e.__lexicalLineBreak;return u&&(n===u||r&&n.previousSibling===u)||r&&yu(n,t)!==void 0}function X0(n,e,t){const r=Ne(t._window);let u=null,i=null;r!==null&&r.anchorNode===n&&(u=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&is(e,s,u,i,!1)}function Z0(n,e,t){if(P(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===wt&&t.isAttached()}function Q0(n,e,t,r){for(let u=n;u&&!hf(u);u=Zn(u)){const i=yu(u,e);if(i!==void 0){const s=ae(i,t);if(s)return ne(s)?void 0:[u,s]}else if(u===r)return[r,Xa(t)]}}function za(n,e,t){ni=!0;const r=performance.now()-es>K0;try{Se(n,()=>{const u=j()||function(c){return c.getEditorState().read(()=>{const d=j();return d!==null?d.clone():null})}(n),i=new Map,s=n.getRootElement(),o=n._editorState,a=n._blockCursorElement;let l=!1,f="";for(let c=0;c<e.length;c++){const d=e[c],p=d.type,m=d.target,g=Q0(m,n,o,s);if(!g)continue;const[y,b]=g;if(p==="characterData")r&&D(b)&&Z0(u,m,b)&&X0(m,b,n);else if(p==="childList"){l=!0;const x=d.addedNodes;for(let S=0;S<x.length;S++){const I=x[S],C=Ka(I),L=I.parentNode;if(L!=null&&I!==a&&C===null&&!Bu(I,L,n)){if(_t){const U=I.innerText||I.nodeValue;U&&(f+=U)}L.removeChild(I)}}const w=d.removedNodes,T=w.length;if(T>0){let S=0;for(let I=0;I<T;I++){const C=w[I];(Bu(C,m,n)||a===C)&&(m.appendChild(C),S++)}T!==S&&i.set(y,b)}}}if(i.size>0)for(const[c,d]of i)d.reconcileObservedMutation(c,n);const h=t.takeRecords();if(h.length>0){for(let c=0;c<h.length;c++){const d=h[c],p=d.addedNodes,m=d.target;for(let g=0;g<p.length;g++){const y=p[g],b=y.parentNode;b==null||y.nodeName!=="BR"||Bu(y,m,n)||b.removeChild(y)}}t.takeRecords()}u!==null&&(l&&(u.dirty=!0,ke(u)),_t&&el(n)&&u.insertRawText(f))})}finally{ni=!1}}function Wa(n){const e=n._observer;e!==null&&za(n,e.takeRecords(),e)}function $a(n){(function(e){es===0&&xu(e).addEventListener("textInput",J0,!0)})(n),n._observer=new MutationObserver((e,t)=>{za(n,e,t)})}function Ws(n,e){const t=n.__mode,r=n.__format,u=n.__style,i=e.__mode,s=e.__format,o=e.__style;return!(t!==null&&t!==i||r!==null&&r!==s||u!==null&&u!==o)}function $s(n,e){const t=n.mergeWithSibling(e),r=ue()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function Hs(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&D(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Ws(e,r)){r=$s(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&D(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Ws(r,t)){r=$s(r,t);break}break}t.remove()}}else r.remove()}function Ha(n){return Vs(n.anchor),Vs(n.focus),n}function Vs(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,u;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),u=!0):(r=e.getChildAtIndex(t),u=!1),D(r)){n.set(r.__key,u?r.getTextContentSize():0,"text");break}if(!E(r))break;n.set(r.__key,u?r.getChildrenSize():0,"element")}}let Y0=1;const ef=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function ts(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return ne(un(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&bu(e)==null)}function Xn(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!ts(e)&&Va(e)===n}catch{return!1}}function ns(n){return n instanceof Cu}function Va(n){let e=n;for(;e!=null;){const t=bu(e);if(ns(t))return t;e=Zn(e)}return null}function bu(n){return n?n.__lexicalEditor:null}function At(n){return n.isToken()||n.isSegmented()}function tf(n){return n.nodeType===wt}function Wr(n){let e=n;for(;e!=null;){if(tf(e))return e;e=e.firstChild}return null}function $r(n,e,t){const r=Dt[e];if(t!==null&&(n&r)==(t&r))return n;let u=n^r;return e==="subscript"?u&=-65:e==="superscript"&&(u&=-33),u}function Ga(n){return D(n)||xt(n)||ne(n)}function nf(n,e){if(e!=null)return void(n.__key=e);ye(),xl();const t=ue(),r=ot(),u=""+Y0++;r._nodeMap.set(u,n),E(n)?t._dirtyElements.set(u,!0):t._dirtyLeaves.add(u),t._cloneNotNeeded.add(u),t._dirtyType=ja,n.__key=u}function Pt(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),u=n.getPreviousSibling(),i=n.getNextSibling();if(u===null)if(i!==null){const s=i.getWritable();r.__first=i.__key,s.__prev=null}else r.__first=null;else{const s=u.getWritable();if(i!==null){const o=i.getWritable();o.__prev=s.__key,s.__next=o.__key}else s.__next=null;t.__prev=null}if(i===null)if(u!==null){const s=u.getWritable();r.__last=u.__key,s.__next=null}else r.__last=null;else{const s=i.getWritable();if(u!==null){const o=u.getWritable();o.__next=s.__key,s.__prev=o.__key}else s.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function Hr(n){xl();const e=n.getLatest(),t=e.__parent,r=ot(),u=ue(),i=r._nodeMap,s=u._dirtyElements;t!==null&&function(a,l,f){let h=a;for(;h!==null;){if(f.has(h))return;const c=l.get(h);if(c===void 0)break;f.set(h,!1),h=c.__parent}}(t,i,s);const o=e.__key;u._dirtyType=ja,E(n)?s.set(o,!0):u._dirtyLeaves.add(o)}function fe(n){ye();const e=ue(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=ae(t);r!==null&&r.getWritable()}if(n!==null){const r=ae(n);r!==null&&r.getWritable()}}}function gt(){return nr()?null:ue()._compositionKey}function ae(n,e){const t=(e||ot())._nodeMap.get(n);return t===void 0?null:t}function Ka(n,e){const t=yu(n,ue());return t!==void 0?ae(t,e):null}function yu(n,e){return n[`__lexicalKey_${e._key}`]}function un(n,e){let t=n;for(;t!=null;){const r=Ka(t,e);if(r!==null)return r;t=Zn(t)}return null}function Ja(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function Gs(n){return n.read(()=>ie().getTextContent())}function ie(){return Xa(ot())}function Xa(n){return n._nodeMap.get("root")}function ke(n){ye();const e=ot();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function Zt(n){const e=ue(),t=function(r,u){let i=r;for(;i!=null;){const s=yu(i,u);if(s!==void 0)return s;i=Zn(i)}return null}(n,e);return t===null?n===e.getRootElement()?ae("root"):null:ae(t)}function Ks(n,e){return e?n.getTextContentSize():0}function Za(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function rs(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Qa(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Ya(n){return n.nodeType===wt?n.nodeValue:null}function us(n,e,t){const r=Ne(e._window);if(r===null)return;const u=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(u!==null){let o=Ya(u);const a=un(u);if(o!==null&&D(a)){if(o===mu&&t){const l=t.length;o=t,i=l,s=l}o!==null&&is(a,o,i,s,n)}}}function is(n,e,t,r,u){let i=n;if(i.isAttached()&&(u||!i.isDirty())){const s=i.isComposing();let o=e;(s||u)&&e[e.length-1]===mu&&(o=e.slice(0,-1));const a=i.getTextContent();if(u||o!==a){if(o===""){if(fe(null),gu||Kn||Vi)i.remove();else{const m=ue();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=tr(),h=i.getTextContentSize(),c=gt(),d=i.getKey();if(i.isToken()||c!==null&&d===c&&!s||P(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===n.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===n.__key&&f.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=j();if(!P(p)||t===null||r===null)return void i.setTextContent(o);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=se(i.getTextContent());i.replace(m),i=m}i.setTextContent(o)}}}function rf(n,e){if(e.isSegmented())return!0;if(!n.isCollapsed())return!1;const t=n.anchor.offset,r=e.getParentOrThrow(),u=e.isToken();return t===0?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||u||function(i){const s=i.getPreviousSibling();return(D(s)||E(s)&&s.isInline())&&!s.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||u)}function Js(n){return n==="ArrowLeft"}function Xs(n){return n==="ArrowRight"}function Tn(n,e){return Pe?n:e}function Zs(n){return n==="Enter"}function bn(n){return n==="Backspace"}function yn(n){return n==="Delete"}function Qs(n,e,t){return n.toLowerCase()==="a"&&Tn(e,t)}function uf(){const n=ie();ke(Ha(n.select(0,n.getChildrenSize())))}function En(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const u=n[e];if(typeof u=="string"){const i=zr(u);return t[e]=i,i}return u}function ss(n,e,t,r,u){if(t.size===0)return;const i=r.__type,s=r.__key,o=e.get(i);o===void 0&&M(33,i);const a=o.klass;let l=n.get(a);l===void 0&&(l=new Map,n.set(a,l));const f=l.get(s),h=f==="destroyed"&&u==="created";(f===void 0||h)&&l.set(s,h?"updated":u)}function Ys(n,e,t){const r=n.getParent();let u=t,i=n;return r!==null&&(e&&t===0?(u=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(u=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?u-1:u)}function Rn(n,e){const t=n.offset;if(n.type==="element")return Ys(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const u=e?r.getPreviousSibling():r.getNextSibling();return u===null?Ys(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):u}}return null}function el(n){const e=xu(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function F(n,e,t){return Sl(n,e,t)}function _u(n){return!he(n)&&!n.isLastChild()&&!n.isInline()}function Vr(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&M(75,e),t}function Zn(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function kn(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function xu(n){const e=n._window;return e===null&&M(78),e}function sf(n){let e=n.getParentOrThrow();for(;e!==null;){if(ut(e))return e;e=e.getParentOrThrow()}return e}function ut(n){return he(n)||E(n)&&n.isShadowRoot()}function St(n){const e=ue(),t=n.constructor.getType(),r=e._nodes.get(t);r===void 0&&M(200,n.constructor.name,t);const{replace:u,replaceWithKlass:i}=r;if(u!==null){const s=u(n),o=s.constructor;return i!==null?s instanceof i||M(201,i.name,i.getType(),o.name,o.getType(),n.constructor.name,t):s instanceof n.constructor&&o!==n.constructor||M(202,o.name,o.getType(),n.constructor.name,t),s.__key===n.__key&&M(203,n.constructor.name,t,o.name,o.getType()),s}return n}function Fu(n,e){!he(n.getParent())||E(e)||ne(e)||M(99)}function ju(n){return(ne(n)||E(n)&&!n.canBeEmpty())&&!n.isInline()}function os(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function of(n,e,t){let r=n._blockCursorElement;if(P(t)&&t.isCollapsed()&&t.anchor.type==="element"&&e.contains(document.activeElement)){const u=t.anchor,i=u.getNode(),s=u.offset;let o=!1,a=null;if(s===i.getChildrenSize())ju(i.getChildAtIndex(s-1))&&(o=!0);else{const l=i.getChildAtIndex(s);if(l!==null&&ju(l)){const f=l.getPreviousSibling();(f===null||ju(f))&&(o=!0,a=n.getElementByKey(l.__key))}}if(o){const l=n.getElementByKey(i.__key);return r===null&&(n._blockCursorElement=r=function(f){const h=f.theme,c=document.createElement("div");c.contentEditable="false",c.setAttribute("data-lexical-cursor","true");let d=h.blockCursor;if(d!==void 0){if(typeof d=="string"){const p=zr(d);d=h.blockCursor=p}d!==void 0&&c.classList.add(...d)}return c}(n._config)),e.style.caretColor="transparent",void(a===null?l.appendChild(r):l.insertBefore(r,a))}}r!==null&&os(r,n,e)}function Ne(n){return Be?(n||window).getSelection():null}function af(n){return Ut(n)&&n.tagName==="A"}function Ut(n){return n.nodeType===1}function eo(n){return n.nodeType===11}function ri(n){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(e)!==null}function Gr(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function ht(n){if(ne(n)&&!n.isInline())return!0;if(!E(n)||ut(n))return!1;const e=n.getFirstChild(),t=e===null||xt(e)||D(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function _n(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function lf(){return ue()}const to=new WeakMap,cf=new Map;function ff(n){if(!n._readOnly&&n.isEmpty())return cf;n._readOnly||M(192);let e=to.get(n);if(!e){e=new Map,to.set(n,e);for(const[t,r]of n._nodeMap){const u=r.__type;let i=e.get(u);i||(i=new Map,e.set(u,i)),i.set(t,r)}}return e}function as(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function df(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function hf(n){return n.__lexicalUnmanaged===!0}function tl(n,e,t,r,u,i){let s=n.getFirstChild();for(;s!==null;){const o=s.__key;s.__parent===e&&(E(s)&&tl(s,o,t,r,u,i),t.has(o)||i.delete(o),u.push(o)),s=s.getNextSibling()}}let vt,pe,Bn,vu,ui,ii,Mt,Re,si,Fn,oe="",de="",qe=null,Le="",et="",nl=!1,jn=!1,Ir=null;function Kr(n,e){const t=Mt.get(n);if(e!==null){const r=li(n);r.parentNode===e&&e.removeChild(r)}if(Re.has(n)||pe._keyToDOMMap.delete(n),E(t)){const r=Xr(t,Mt);oi(r,0,r.length-1,null)}t!==void 0&&ss(Fn,Bn,vu,t,"destroyed")}function oi(n,e,t,r){let u=e;for(;u<=t;++u){const i=n[u];i!==void 0&&Kr(i,r)}}function Nt(n,e){n.setProperty("text-align",e)}const pf="40px";function rl(n,e){const t=vt.theme.indent;if(typeof t=="string"){const u=n.classList.contains(t);e>0&&!u?n.classList.add(t):e<1&&u&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||pf;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function ul(n,e){const t=n.style;e===0?Nt(t,""):e===Ki?Nt(t,"left"):e===Ji?Nt(t,"center"):e===Xi?Nt(t,"right"):e===Zi?Nt(t,"justify"):e===Qi?Nt(t,"start"):e===Yi&&Nt(t,"end")}function Jr(n,e){const t=Re.get(n);t===void 0&&M(60);const r=t.createDOM(vt,pe);if(function(u,i,s){const o=s._keyToDOMMap;(function(a,l,f){a[`__lexicalKey_${l._key}`]=f})(i,s,u),o.set(u,i)}(n,r,pe),D(t)?r.setAttribute("data-lexical-text","true"):ne(t)&&r.setAttribute("data-lexical-decorator","true"),E(t)){const u=t.__indent,i=t.__size;if(u!==0&&rl(r,u),i!==0){const o=i-1;(function(a,l,f,h){const c=de;de="",ai(a,f,0,l,f.getDOMSlot(h)),sl(f,h),de=c})(Xr(t,Re),o,t,r)}const s=t.__format;s!==0&&ul(r,s),t.isInline()||il(null,t,r),_u(t)&&(oe+=rt,et+=rt)}else{const u=t.getTextContent();if(ne(t)){const i=t.decorate(pe,vt);i!==null&&ol(n,i),r.contentEditable="false"}else D(t)&&(t.isDirectionless()||(de+=u));oe+=u,et+=u}return e!==null&&e.insertChild(r),ss(Fn,Bn,vu,t,"created"),r}function ai(n,e,t,r,u){const i=oe;oe="";let s=t;for(;s<=r;++s){Jr(n[s],u);const o=Re.get(n[s]);o!==null&&D(o)&&(qe===null&&(qe=o.getFormat()),Le===""&&(Le=o.getStyle()))}_u(e)&&(oe+=rt),u.element.__lexicalTextContent=oe,oe=i+oe}function no(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return xt(r)?"line-break":ne(r)&&r.isInline()?"decorator":null}return"empty"}return null}function il(n,e,t){const r=no(n,Mt),u=no(e,Re);r!==u&&e.getDOMSlot(t).setManagedLineBreak(u)}function sl(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==de||r!==Ir){const i=de==="",s=i?Ir:(u=de,U0.test(u)?"rtl":z0.test(u)?"ltr":null);if(s!==r){const o=e.classList,a=vt.theme;let l=r!==null?a[r]:void 0,f=s!==null?a[s]:void 0;if(l!==void 0){if(typeof l=="string"){const h=zr(l);l=a[r]=h}o.remove(...l)}if(s===null||i&&s==="ltr")e.removeAttribute("dir");else{if(f!==void 0){if(typeof f=="string"){const h=zr(f);f=a[s]=h}f!==void 0&&o.add(...f)}e.dir=s}jn||(n.getWritable().__dir=s)}Ir=s,e.__lexicalDirTextContent=de,e.__lexicalDir=s}var u}function gf(n,e,t){const r=de;var u;de="",qe=null,Le="",function(i,s,o){const a=oe,l=i.__size,f=s.__size;oe="";const h=o.element;if(l===1&&f===1){const c=i.__first,d=s.__first;if(c===d)Cn(c,h);else{const m=li(c),g=Jr(d,null);try{h.replaceChild(g,m)}catch(y){if(typeof y=="object"&&y!=null){const b=`${y.toString()} Parent: ${h.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${m.tagName}, key: ${c}}.`;throw new Error(b)}throw y}Kr(c,null)}const p=Re.get(d);D(p)&&(qe===null&&(qe=p.getFormat()),Le===""&&(Le=p.getStyle()))}else{const c=Xr(i,Mt),d=Xr(s,Re);if(c.length!==l&&M(227),d.length!==f&&M(228),l===0)f!==0&&ai(d,s,0,f-1,o);else if(f===0){if(l!==0){const p=o.after==null&&o.before==null&&o.element.__lexicalLineBreak==null;oi(c,0,l-1,p?null:h),p&&(h.textContent="")}}else(function(p,m,g,y,b,x){const w=y-1,T=b-1;let S,I,C=x.getFirstChild(),L=0,U=0;for(;L<=w&&U<=T;){const A=m[L],B=g[U];if(A===B)C=qu(Cn(B,x.element)),L++,U++;else{S===void 0&&(S=new Set(m)),I===void 0&&(I=new Set(g));const O=I.has(A),N=S.has(B);if(O)if(N){const q=Vr(pe,B);q===C?C=qu(Cn(B,x.element)):(x.withBefore(C).insertChild(q),Cn(B,x.element)),L++,U++}else Jr(B,x.withBefore(C)),U++;else C=qu(li(A)),Kr(A,x.element),L++}const _=Re.get(B);_!==null&&D(_)&&(qe===null&&(qe=_.getFormat()),Le===""&&(Le=_.getStyle()))}const v=L>w,k=U>T;if(v&&!k){const A=g[T+1],B=A===void 0?null:pe.getElementByKey(A);ai(g,p,U,T,x.withBefore(B))}else k&&!v&&oi(m,L,w,x.element)})(s,c,d,l,f,o)}_u(s)&&(oe+=rt),h.__lexicalTextContent=oe,oe=a+oe}(n,e,e.getDOMSlot(t)),sl(e,t),Bt(u=e)&&qe!=null&&qe!==u.__textFormat&&!jn&&(u.setTextFormat(qe),u.setTextStyle(Le)),function(i){Bt(i)&&Le!==""&&Le!==i.__textStyle&&!jn&&i.setTextStyle(Le)}(e),de=r}function Xr(n,e){const t=[];let r=n.__first;for(;r!==null;){const u=e.get(r);u===void 0&&M(101),t.push(r),r=u.__next}return t}function Cn(n,e){const t=Mt.get(n);let r=Re.get(n);t!==void 0&&r!==void 0||M(61);const u=nl||ii.has(n)||ui.has(n),i=Vr(pe,n);if(t===r&&!u){if(E(t)){const s=i.__lexicalTextContent;s!==void 0&&(oe+=s,et+=s);const o=i.__lexicalDirTextContent;o!==void 0&&(de+=o)}else{const s=t.getTextContent();D(t)&&!t.isDirectionless()&&(de+=s),et+=s,oe+=s}return i}if(t!==r&&u&&ss(Fn,Bn,vu,r,"updated"),r.updateDOM(t,i,vt)){const s=Jr(n,null);return e===null&&M(62),e.replaceChild(s,i),Kr(n,null),s}if(E(t)&&E(r)){const s=r.__indent;s!==t.__indent&&rl(i,s);const o=r.__format;o!==t.__format&&ul(i,o),u&&(gf(t,r,i),he(r)||r.isInline()||il(t,r,i)),_u(r)&&(oe+=rt,et+=rt)}else{const s=r.getTextContent();if(ne(r)){const o=r.decorate(pe,vt);o!==null&&ol(n,o)}else D(r)&&!r.isDirectionless()&&(de+=s);oe+=s,et+=s}if(!jn&&he(r)&&r.__cachedText!==et){const s=r.getWritable();s.__cachedText=et,r=s}return i}function ol(n,e){let t=pe._pendingDecorators;const r=pe._decorators;if(t===null){if(r[n]===e)return;t=Ja(pe)}t[n]=e}function qu(n){let e=n.nextSibling;return e!==null&&e===pe._blockCursorElement&&(e=e.nextSibling),e}function mf(n,e,t,r,u,i){oe="",et="",de="",nl=r===rn,Ir=null,pe=t,vt=t._config,Bn=t._nodes,vu=pe._listeners.mutation,ui=u,ii=i,Mt=n._nodeMap,Re=e._nodeMap,jn=e._readOnly,si=new Map(t._keyToDOMMap);const s=new Map;return Fn=s,Cn("root",null),pe=void 0,Bn=void 0,ui=void 0,ii=void 0,Mt=void 0,Re=void 0,vt=void 0,si=void 0,Fn=void 0,s}function li(n){const e=si.get(n);return e===void 0&&M(75,n),e}const Xe=Object.freeze({}),ci=30,fi=[["keydown",function(n,e){if(Nn=n.timeStamp,al=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:u,metaKey:i,altKey:s}=n;if(!F(e,_0,n)&&t!=null){if(function(o,a,l,f){return Xs(o)&&!a&&!f&&!l}(t,u,s,i))F(e,Na,n);else if(function(o,a,l,f,h){return Xs(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))F(e,x0,n);else if(function(o,a,l,f){return Js(o)&&!a&&!f&&!l}(t,u,s,i))F(e,Aa,n);else if(function(o,a,l,f,h){return Js(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))F(e,v0,n);else if(function(o,a,l){return function(f){return f==="ArrowUp"}(o)&&!a&&!l}(t,u,i))F(e,Oa,n);else if(function(o,a,l){return function(f){return f==="ArrowDown"}(o)&&!a&&!l}(t,u,i))F(e,Ia,n);else if(function(o,a){return Zs(o)&&a}(t,r))An=!0,F(e,Fr,n);else if(function(o){return o===" "}(t))F(e,w0,n);else if(function(o,a){return Pe&&a&&o.toLowerCase()==="o"}(t,u))n.preventDefault(),An=!0,F(e,Yt,!0);else if(function(o,a){return Zs(o)&&!a}(t,r))An=!1,F(e,Fr,n);else if(function(o,a,l,f){return Pe?!a&&!l&&(bn(o)||o.toLowerCase()==="h"&&f):!(f||a||l)&&bn(o)}(t,s,i,u))bn(t)?F(e,Pa,n):(n.preventDefault(),F(e,It,!0));else if(function(o){return o==="Escape"}(t))F(e,La,n);else if(function(o,a,l,f,h){return Pe?!(l||f||h)&&(yn(o)||o.toLowerCase()==="d"&&a):!(a||f||h)&&yn(o)}(t,u,r,s,i))yn(t)?F(e,Da,n):(n.preventDefault(),F(e,It,!1));else if(function(o,a,l){return bn(o)&&(Pe?a:l)}(t,s,u))n.preventDefault(),F(e,Dn,!0);else if(function(o,a,l){return yn(o)&&(Pe?a:l)}(t,s,u))n.preventDefault(),F(e,Dn,!1);else if(function(o,a){return Pe&&a&&bn(o)}(t,i))n.preventDefault(),F(e,Mn,!0);else if(function(o,a){return Pe&&a&&yn(o)}(t,i))n.preventDefault(),F(e,Mn,!1);else if(function(o,a,l,f){return o.toLowerCase()==="b"&&!a&&Tn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"bold");else if(function(o,a,l,f){return o.toLowerCase()==="u"&&!a&&Tn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"underline");else if(function(o,a,l,f){return o.toLowerCase()==="i"&&!a&&Tn(l,f)}(t,s,i,u))n.preventDefault(),F(e,$e,"italic");else if(function(o,a,l,f){return o==="Tab"&&!a&&!l&&!f}(t,s,u,i))F(e,S0,n);else if(function(o,a,l,f){return o.toLowerCase()==="z"&&!a&&Tn(l,f)}(t,r,i,u))n.preventDefault(),F(e,Wi,void 0);else if(function(o,a,l,f){return Pe?o.toLowerCase()==="z"&&l&&a:o.toLowerCase()==="y"&&f||o.toLowerCase()==="z"&&f&&a}(t,r,i,u))n.preventDefault(),F(e,$i,void 0);else{const o=e._editorState._selection;o===null||P(o)?!_t&&Qs(t,i,u)&&(n.preventDefault(),F(e,ti,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="c"&&(Pe?f:h)}(t,r,i,u)?(n.preventDefault(),F(e,pu,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="x"&&(Pe?f:h)}(t,r,i,u)?(n.preventDefault(),F(e,Hi,n)):Qs(t,i,u)&&(n.preventDefault(),F(e,ti,n))}(function(o,a,l,f){return o||a||l||f})(u,r,s,i)&&F(e,P0,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Se(e,()=>{ne(un(t))||(hi=!0)})}],["compositionstart",function(n,e){Se(e,()=>{const t=j();if(P(t)&&!e.isComposing()){const r=t.anchor,u=t.anchor.getNode();fe(r.key),(n.timeStamp<Nn+ci||r.type==="element"||!t.isCollapsed()||u.getFormat()!==t.format||D(u)&&u.getStyle()!==t.style)&&F(e,en,q0)}})}],["compositionend",function(n,e){_t?xn=!0:Se(e,()=>{Uu(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Se(e,()=>{const t=j(),r=n.data,u=dl(n);if(r!=null&&P(t)&&fl(t,u,r,n.timeStamp,!1)){xn&&(Uu(e,r),xn=!1);const i=t.anchor.getNode(),s=Ne(e._window);if(s===null)return;const o=t.isBackward(),a=o?t.anchor.offset:t.focus.offset,l=o?t.focus.offset:t.anchor.offset;jr&&!t.isCollapsed()&&D(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+l)===Ya(s.anchorNode)||F(e,en,r);const f=r.length;_t&&f>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=f),gu||Kn||Vi||!e.isComposing()||(Nn=0,fe(null))}else us(!1,e,r!==null?r:void 0),xn&&(Uu(e,r||void 0),xn=!1);ye(),Wa(ue())}),Kt=null}],["click",function(n,e){Se(e,()=>{const t=j(),r=Ne(e._window),u=tr();if(r){if(P(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!he(s)&&ie().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&u!==null&&t.is(u)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()&&(E(s)?s.select(0):s.getParentOrThrow().select(0))}else if(n.pointerType==="touch"){const i=r.anchorNode;if(i!==null){const s=i.nodeType;(s===Jn||s===wt)&&ke(cs(u,r,e,n))}}}F(e,ka,n)})}],["cut",Xe],["copy",Xe],["dragstart",Xe],["dragover",Xe],["dragend",Xe],["paste",Xe],["focus",Xe],["blur",Xe],["drop",Xe]];jr&&fi.push(["beforeinput",(n,e)=>function(t,r){const u=t.inputType,i=dl(t);u==="deleteCompositionText"||_t&&el(r)||u!=="insertCompositionText"&&Se(r,()=>{const s=j();if(u==="deleteContentBackward"){if(s===null){const d=tr();if(!P(d))return;ke(d.clone())}if(P(s)){const d=s.anchor.key===s.focus.key;if(o=t.timeStamp,al==="MediaLast"&&o<Nn+ci&&r.isComposing()&&d){if(fe(null),Nn=0,setTimeout(()=>{Se(r,()=>{fe(null)})},ci),P(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),D(p)||M(142),s.style=p.getStyle()}}else{fe(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),g=p.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===m.length;M0&&d&&!y&&g||F(r,It,!0)}return}}var o;if(!P(s))return;const a=t.data;Kt!==null&&us(!1,r,Kt),s.dirty&&Kt===null||!s.isCollapsed()||he(s.anchor.getNode())||i===null||s.applyDOMRange(i),Kt=null;const l=s.anchor,f=s.focus,h=l.getNode(),c=f.getNode();if(u!=="insertText"&&u!=="insertTranspose")switch(t.preventDefault(),u){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":F(r,en,t);break;case"insertFromComposition":fe(null),F(r,en,t);break;case"insertLineBreak":fe(null),F(r,Yt,!1);break;case"insertParagraph":fe(null),An&&!Kn?(An=!1,F(r,Yt,!1)):F(r,Ln,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":F(r,hu,t);break;case"deleteByComposition":(function(d,p){return d!==p||E(d)||E(p)||!d.isToken()||!p.isToken()})(h,c)&&F(r,ei,t);break;case"deleteByDrag":case"deleteByCut":F(r,ei,t);break;case"deleteContent":F(r,It,!1);break;case"deleteWordBackward":F(r,Dn,!0);break;case"deleteWordForward":F(r,Dn,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":F(r,Mn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":F(r,Mn,!1);break;case"formatStrikeThrough":F(r,$e,"strikethrough");break;case"formatBold":F(r,$e,"bold");break;case"formatItalic":F(r,$e,"italic");break;case"formatUnderline":F(r,$e,"underline");break;case"historyUndo":F(r,Wi,void 0);break;case"historyRedo":F(r,$i,void 0)}else{if(a===`
|
|
4
4
|
`)t.preventDefault(),F(r,Yt,!1);else if(a===rt)t.preventDefault(),F(r,Ln,void 0);else if(a==null&&t.dataTransfer){const d=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(d)}else a!=null&&fl(s,i,a,t.timeStamp,!0)?(t.preventDefault(),F(r,en,a)):Kt=a;ll=t.timeStamp}})}(n,e)]);let Nn=0,al=null,ll=0,Kt=null;const Zr=new WeakMap;let di=!1,hi=!1,An=!1,xn=!1,cl=[0,"",0,"root",0];function fl(n,e,t,r,u){const i=n.anchor,s=n.focus,o=i.getNode(),a=ue(),l=Ne(a._window),f=l!==null?l.anchorNode:null,h=i.key,c=a.getElementByKey(h),d=t.length;return h!==s.key||!D(o)||(!u&&(!jr||ll<r+50)||o.isDirty()&&d<2||Za(t))&&i.offset!==s.offset&&!o.isComposing()||At(o)||o.isDirty()&&d>1||(u||!jr)&&c!==null&&!o.isComposing()&&f!==Wr(c)||l!==null&&e!==null&&(!e.collapsed||e.startContainer!==l.anchorNode||e.startOffset!==l.anchorOffset)||o.getFormat()!==n.format||o.getStyle()!==n.style||rf(n,o)}function ro(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===wt&&e!==0&&e!==n.nodeValue.length}function uo(n,e,t){const{anchorNode:r,anchorOffset:u,focusNode:i,focusOffset:s}=n;di&&(di=!1,ro(r,u)&&ro(i,s))||Se(e,()=>{if(!t)return void ke(null);if(!Xn(e,r,i))return;const o=j();if(P(o)){const a=o.anchor,l=a.getNode();if(o.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(o.dirty=!0);const f=xu(e).event,h=f?f.timeStamp:performance.now(),[c,d,p,m,g]=cl,y=ie(),b=e.isComposing()===!1&&y.getTextContent()==="";if(h<g+200&&a.offset===p&&a.key===m)o.format=c,o.style=d;else if(a.type==="text")D(l)||M(141),o.format=l.getFormat(),o.style=l.getStyle();else if(a.type==="element"&&!b){const x=a.getNode();o.style="",x instanceof dn&&x.getChildrenSize()===0?(o.format=x.getTextFormat(),o.style=x.getTextStyle()):o.format=0}}else{const f=a.key,h=o.focus.key,c=o.getNodes(),d=c.length,p=o.isBackward(),m=p?s:u,g=p?u:s,y=p?h:f,b=p?f:h;let x=j0,w=!1;for(let T=0;T<d;T++){const S=c[T],I=S.getTextContentSize();if(D(S)&&I!==0&&!(T===0&&S.__key===y&&m===I||T===d-1&&S.__key===b&&g===0)&&(w=!0,x&=S.getFormat(),x===0))break}o.format=w?x:0}}F(e,du,void 0)})}function dl(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function Uu(n,e){const t=n._compositionKey;if(fe(null),t!==null&&e!=null){if(e===""){const r=ae(t),u=Wr(n.getElementByKey(t));return void(u!==null&&u.nodeValue!==null&&D(r)&&is(r,u.nodeValue,null,null,!0))}if(e[e.length-1]===`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../assets/
|
|
1
|
+
import '../../assets/index21.css';var v0 = Object.defineProperty;
|
|
2
2
|
var w0 = (n, e, t) => e in n ? v0(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var xn = (n, e, t) => w0(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { jsx as H, jsxs as Lt, Fragment as Wr } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index22.css');const e=require("react/jsx-runtime"),m=require("../_dropzone/index.cjs"),u=require("../button/index.cjs"),d=require("../form/index.cjs"),_=require("../icon/index.cjs"),x=require("../list/index.cjs"),p=require("../textarea/index.cjs"),j=require("../message/index.cjs"),g="_messages_143n4_1",b="_controls_143n4_23",t={messages:g,controls:b},q=({handleUpload:r,message:s,messages:o,onChange:i,onSubmit:a,placeholder:c,sending:l})=>e.jsxs("div",{className:t.messages,"data-component":"messages",children:[e.jsx(x.List,{children:o.map(n=>e.jsx(j.Message,{...n},n.id))}),e.jsxs(d.Form,{onSubmit:n=>{n.preventDefault(),a()},children:[e.jsx(p.Textarea,{onChange:i,placeholder:c,value:s}),e.jsxs("div",{className:t.controls,children:[e.jsx(m.Dropzone,{label:"",multiple:!0,onChange:n=>{n.currentTarget.files&&r(n.currentTarget.files)},variant:"minimal"}),e.jsx(u.Button,{"aria-label":"Send message",disabled:l||!(s!=null&&s.trim()),type:"submit",variant:"primary",children:e.jsx(_.Icon,{fill:!0,name:"plane",variant:"white"})})]})]})]});exports.Messages=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -6,7 +6,7 @@ import { Icon as u } from "../icon/index.js";
|
|
|
6
6
|
import { List as h } from "../list/index.js";
|
|
7
7
|
import { Textarea as v } from "../textarea/index.js";
|
|
8
8
|
import { Message as _ } from "../message/index.js";
|
|
9
|
-
import '../../assets/
|
|
9
|
+
import '../../assets/index22.css';const b = "_messages_143n4_1", g = "_controls_143n4_23", i = {
|
|
10
10
|
messages: b,
|
|
11
11
|
controls: g
|
|
12
12
|
}, w = ({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index23.css');const e=require("react/jsx-runtime"),i=require("../aside/index.cjs"),a=require("../branding/index.cjs"),c=require("../figure/index.cjs"),u=require("../icon/index.cjs"),l=require("../nav/index.cjs"),m="_menu_1q9tu_29",d="_portal_1q9tu_55",o={menu:m,portal:d},_=({accessibleLabel:t="Show menu",children:n,portals:r,open:s=!0})=>e.jsxs("details",{className:o.menu,open:s||void 0,"data-component":"portal",children:[e.jsx("summary",{"aria-label":t,children:e.jsx(u.Icon,{name:"menu",size:"large",variant:"primary"})}),e.jsxs(i.Aside,{className:o.portal,children:[e.jsx(c.Figure,{children:e.jsx(a.Branding,{name:"logo",size:86,variant:"white"})}),r&&e.jsx(l.Nav,{horizontal:!0,children:r}),n&&n]})]});exports.Portal=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -4,7 +4,7 @@ import { Branding as l } from "../branding/index.js";
|
|
|
4
4
|
import { Figure as s } from "../figure/index.js";
|
|
5
5
|
import { Icon as p } from "../icon/index.js";
|
|
6
6
|
import { Nav as u } from "../nav/index.js";
|
|
7
|
-
import '../../assets/
|
|
7
|
+
import '../../assets/index23.css';const c = "_menu_1q9tu_29", d = "_portal_1q9tu_55", a = {
|
|
8
8
|
menu: c,
|
|
9
9
|
portal: d
|
|
10
10
|
}, y = ({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index24.css');const D=require("react/jsx-runtime"),y=require("../../classix-5H4IWnMA.cjs"),o=require("react"),A=require("../../icons-vqS7W0cD.cjs"),H=require("../list/index.cjs"),M="_sortable_scp0q_5",V="_dragging_scp0q_35",k="_dropping_scp0q_50",z="_columns_scp0q_63",B="_pseudo_scp0q_72",c={sortable:M,dragging:V,dropping:k,columns:z,pseudo:B,"target-above":"_target-above_scp0q_87","target-below":"_target-below_scp0q_88"};function N({children:h,className:T,columns:g=1,isRearranging:d=!1,onChangeOrder:f,...b}){const x=Number.isFinite(g)?Math.max(1,Math.floor(g)):1,S=o.useMemo(()=>o.Children.toArray(h),[h]),n=o.useRef(-1),[p,I]=o.useState({height:0,width:0}),[a,m]=o.useState(null),[E,q]=o.useState(null),$={...b.style,"--icon-svg":A.iconSVG("sort",!0),"--height":`${p.height}px`,"--width":x>1?`calc(${p.width}px - var(--utils-tokens-unit))`:`${p.width}px`},v=()=>{n.current=-1,m(null)};return o.useEffect(()=>{d||q(null)},[d]),D.jsx(H.List,{className:y.t(T,c.sortable,x>1&&c.columns),columns:g,ordered:!0,style:$,...b,"data-component":"sortable",children:S.map((_,t)=>{const j=o.isValidElement(_)?_.key:null;return D.jsx("li",{className:y.t(a!==null&&a>t-10&&a<t+10&&c.pseudo,a===t&&n.current<t&&c["target-below"],a===t&&n.current>t&&c["target-above"],n.current===t&&c.dragging,E===t&&d&&c.dropping),draggable:!d,onDragEnd:()=>v(),onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="move";const r=n.current;if(r<0||r===t)return;const s=e.currentTarget.getBoundingClientRect(),l=t===r+1?p.height:s.height,u=e.clientY>s.top+l/2?t+1:t,i=u>r?u-1:u;m(i)},onDragStart:e=>{n.current=t,I({height:e.currentTarget.offsetHeight,width:e.currentTarget.offsetWidth}),e.dataTransfer.setData("text/plain",""),e.dataTransfer.effectAllowed="move",m(t)},onDrop:e=>{e.preventDefault();const r=n.current,s=a;if(r<0||s===null||r===s)return;q(s);const l=S.slice(),[w]=l.splice(r,1);l.splice(s,0,w),f==null||f(l.map((u,i)=>({id:String(o.isValidElement(u)?u.props["data-id"]??`idx-${i}`:`idx-${i}`),weight:l.length-1-i}))),v()},"data-component":"sortable",children:_},j??t)})})}exports.Sortable=N;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/_sortable/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport React, { useMemo, useRef, useState } from 'react';\n\nimport { List } from '@/components/list';\n\nimport styles from './styles.module.css';\n\ntype SortItem = { id: string; weight: number };\n\ntype SortableProps = React.ComponentPropsWithoutRef<'ol'> & {\n columns?: number;\n onChangeOrder: (order: SortItem[]) => void;\n};\n\ntype withVars = React.CSSProperties & {\n '--height'?: string;\n '--width'?: string;\n};\n\n/**\n * Children must provide a stable `data-id` for emits `{ id, weight }` and `key` (reconciliation).\n */\n\nexport function Sortable({\n children,\n className,\n columns = 1,\n onChangeOrder,\n ...props\n}: SortableProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n const arr = useMemo(() => React.Children.toArray(children), [children]);\n const drag = useRef(-1);\n const [zoneSize, setZoneSize] = useState({\n height: 0,\n width: 0,\n });\n const [dropIndex, setDropIndex] = useState<number | null>(null);\n
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/_sortable/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\n\nimport { iconSVG } from '@/components/icon/icons.ts';\nimport { List } from '@/components/list';\n\nimport styles from './styles.module.css';\n\ntype SortItem = { id: string; weight: number };\n\ntype SortableProps = React.ComponentPropsWithoutRef<'ol'> & {\n columns?: number;\n isRearranging?: boolean;\n onChangeOrder: (order: SortItem[]) => void;\n};\n\ntype withVars = React.CSSProperties & {\n '--height'?: string;\n '--width'?: string;\n '--icon-svg'?: string;\n};\n\n/**\n * Children must provide a stable `data-id` for emits `{ id, weight }` and `key` (reconciliation).\n */\n\nexport function Sortable({\n children,\n className,\n columns = 1,\n isRearranging = false,\n onChangeOrder,\n ...props\n}: SortableProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n const arr = useMemo(() => React.Children.toArray(children), [children]);\n const drag = useRef(-1);\n const [zoneSize, setZoneSize] = useState({\n height: 0,\n width: 0,\n });\n const [dropIndex, setDropIndex] = useState<number | null>(null);\n const [droppedAtIndex, setDroppedAtIndex] = useState<number | null>(null);\n const withVars: withVars = {\n ...props.style,\n '--icon-svg': iconSVG('sort', true),\n '--height': `${zoneSize.height}px`,\n '--width':\n cols > 1 ? `calc(${zoneSize.width}px - var(--utils-tokens-unit))` : `${zoneSize.width}px`,\n };\n\n const resetDragState = () => {\n drag.current = -1;\n setDropIndex(null);\n };\n\n useEffect(() => {\n if (!isRearranging) {\n setDroppedAtIndex(null);\n }\n }, [isRearranging]);\n\n return (\n <List\n className={cx(className, styles.sortable, cols > 1 && styles.columns)}\n columns={columns}\n ordered\n style={withVars}\n {...props}\n >\n {arr.map((child, i) => {\n const key = React.isValidElement(child) ? child.key : null;\n\n return (\n <li\n key={key ?? i}\n className={cx(\n dropIndex !== null && dropIndex > i - 10 && dropIndex < i + 10 && styles.pseudo,\n dropIndex === i && drag.current < i && styles['target-below'],\n dropIndex === i && drag.current > i && styles['target-above'],\n drag.current === i && styles.dragging,\n droppedAtIndex === i && isRearranging && styles.dropping\n )}\n draggable={!isRearranging}\n onDragEnd={() => resetDragState()}\n onDragOver={(e) => {\n e.preventDefault();\n e.dataTransfer.dropEffect = 'move';\n const from = drag.current;\n if (from < 0 || from === i) return;\n\n const rect = e.currentTarget.getBoundingClientRect();\n const itemHeight = i === from + 1 ? zoneSize.height : rect.height;\n const isBottomHalf = e.clientY > rect.top + itemHeight / 2;\n const rawIndex = isBottomHalf ? i + 1 : i;\n const nextDropIndex = rawIndex > from ? rawIndex - 1 : rawIndex;\n\n setDropIndex(nextDropIndex);\n }}\n onDragStart={(e) => {\n drag.current = i;\n setZoneSize({\n height: e.currentTarget.offsetHeight,\n width: e.currentTarget.offsetWidth,\n });\n e.dataTransfer.setData('text/plain', '');\n e.dataTransfer.effectAllowed = 'move';\n setDropIndex(i);\n }}\n onDrop={(e) => {\n e.preventDefault();\n const from = drag.current;\n const to = dropIndex;\n if (from < 0 || to === null || from === to) return;\n\n setDroppedAtIndex(to);\n const next = arr.slice();\n const [moved] = next.splice(from, 1);\n next.splice(to, 0, moved);\n\n onChangeOrder?.(\n next.map((c, idx) => ({\n id: String(\n React.isValidElement(c)\n ? ((c.props as { 'data-id'?: string })['data-id'] ?? `idx-${idx}`)\n : `idx-${idx}`\n ),\n\n weight: next.length - 1 - idx,\n }))\n );\n\n resetDragState();\n }}\n >\n {child}\n </li>\n );\n })}\n </List>\n );\n}\n"],"names":["Sortable","children","className","columns","isRearranging","onChangeOrder","props","cols","Number","isFinite","Math","max","floor","arr","useMemo","React","Children","toArray","drag","useRef","zoneSize","setZoneSize","useState","height","width","dropIndex","setDropIndex","droppedAtIndex","setDroppedAtIndex","withVars","style","iconSVG","resetDragState","current","useEffect","jsx","List","cx","styles","sortable","map","child","i","key","isValidElement","pseudo","dragging","dropping","e","preventDefault","dataTransfer","dropEffect","from","rect","currentTarget","getBoundingClientRect","itemHeight","rawIndex","clientY","top","nextDropIndex","offsetHeight","offsetWidth","setData","effectAllowed","to","next","slice","moved","splice","c","idx","id","String","weight","length"],"mappings":"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"}
|
|
@@ -1,71 +1,65 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { t as I } from "../../classix-DG18itHa.js";
|
|
3
|
+
import _, { useMemo as V, useRef as k, useState as h, useEffect as z } from "react";
|
|
4
|
+
import { i as B } from "../../icons-DkF2p6NO.js";
|
|
5
|
+
import { List as M } from "../list/index.js";
|
|
6
|
+
import '../../assets/index24.css';const N = "_sortable_scp0q_5", j = "_dragging_scp0q_35", F = "_dropping_scp0q_50", G = "_columns_scp0q_63", L = "_pseudo_scp0q_72", s = {
|
|
7
|
+
sortable: N,
|
|
8
|
+
dragging: j,
|
|
9
|
+
dropping: F,
|
|
10
|
+
columns: G,
|
|
11
|
+
pseudo: L,
|
|
12
|
+
"target-above": "_target-above_scp0q_87",
|
|
13
|
+
"target-below": "_target-below_scp0q_88"
|
|
12
14
|
};
|
|
13
|
-
function
|
|
14
|
-
children:
|
|
15
|
-
className:
|
|
16
|
-
columns:
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
function P({
|
|
16
|
+
children: b,
|
|
17
|
+
className: T,
|
|
18
|
+
columns: u = 1,
|
|
19
|
+
isRearranging: d = !1,
|
|
20
|
+
onChangeOrder: g,
|
|
21
|
+
...x
|
|
19
22
|
}) {
|
|
20
|
-
const
|
|
23
|
+
const w = Number.isFinite(u) ? Math.max(1, Math.floor(u)) : 1, v = V(() => _.Children.toArray(b), [b]), r = k(-1), [i, E] = h({
|
|
21
24
|
height: 0,
|
|
22
25
|
width: 0
|
|
23
|
-
}), [
|
|
24
|
-
...
|
|
25
|
-
"--
|
|
26
|
-
"--
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
}), [a, f] = h(null), [$, D] = h(null), A = {
|
|
27
|
+
...x.style,
|
|
28
|
+
"--icon-svg": B("sort", !0),
|
|
29
|
+
"--height": `${i.height}px`,
|
|
30
|
+
"--width": w > 1 ? `calc(${i.width}px - var(--utils-tokens-unit))` : `${i.width}px`
|
|
31
|
+
}, S = () => {
|
|
32
|
+
r.current = -1, f(null);
|
|
29
33
|
};
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
a.splice(s, 0, y), d == null || d(a.map((c, i) => ({
|
|
57
|
-
id: String(p.isValidElement(c) ? c.props["data-id"] ?? `idx-${i}` : `idx-${i}`),
|
|
58
|
-
weight: a.length - 1 - i
|
|
59
|
-
}))), w();
|
|
60
|
-
},
|
|
61
|
-
"data-component": "sortable",
|
|
62
|
-
children: f
|
|
63
|
-
},
|
|
64
|
-
E ?? t
|
|
65
|
-
);
|
|
34
|
+
return z(() => {
|
|
35
|
+
d || D(null);
|
|
36
|
+
}, [d]), /* @__PURE__ */ y(M, { className: I(T, s.sortable, w > 1 && s.columns), columns: u, ordered: !0, style: A, ...x, "data-component": "sortable", children: v.map((m, t) => {
|
|
37
|
+
const H = _.isValidElement(m) ? m.key : null;
|
|
38
|
+
return /* @__PURE__ */ y("li", { className: I(a !== null && a > t - 10 && a < t + 10 && s.pseudo, a === t && r.current < t && s["target-below"], a === t && r.current > t && s["target-above"], r.current === t && s.dragging, $ === t && d && s.dropping), draggable: !d, onDragEnd: () => S(), onDragOver: (e) => {
|
|
39
|
+
e.preventDefault(), e.dataTransfer.dropEffect = "move";
|
|
40
|
+
const o = r.current;
|
|
41
|
+
if (o < 0 || o === t) return;
|
|
42
|
+
const n = e.currentTarget.getBoundingClientRect(), c = t === o + 1 ? i.height : n.height, l = e.clientY > n.top + c / 2 ? t + 1 : t, p = l > o ? l - 1 : l;
|
|
43
|
+
f(p);
|
|
44
|
+
}, onDragStart: (e) => {
|
|
45
|
+
r.current = t, E({
|
|
46
|
+
height: e.currentTarget.offsetHeight,
|
|
47
|
+
width: e.currentTarget.offsetWidth
|
|
48
|
+
}), e.dataTransfer.setData("text/plain", ""), e.dataTransfer.effectAllowed = "move", f(t);
|
|
49
|
+
}, onDrop: (e) => {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
const o = r.current, n = a;
|
|
52
|
+
if (o < 0 || n === null || o === n) return;
|
|
53
|
+
D(n);
|
|
54
|
+
const c = v.slice(), [q] = c.splice(o, 1);
|
|
55
|
+
c.splice(n, 0, q), g == null || g(c.map((l, p) => ({
|
|
56
|
+
id: String(_.isValidElement(l) ? l.props["data-id"] ?? `idx-${p}` : `idx-${p}`),
|
|
57
|
+
weight: c.length - 1 - p
|
|
58
|
+
}))), S();
|
|
59
|
+
}, "data-component": "sortable", children: m }, H ?? t);
|
|
66
60
|
}) });
|
|
67
61
|
}
|
|
68
62
|
export {
|
|
69
|
-
|
|
63
|
+
P as Sortable
|
|
70
64
|
};
|
|
71
65
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/_sortable/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport React, { useMemo, useRef, useState } from 'react';\n\nimport { List } from '@/components/list';\n\nimport styles from './styles.module.css';\n\ntype SortItem = { id: string; weight: number };\n\ntype SortableProps = React.ComponentPropsWithoutRef<'ol'> & {\n columns?: number;\n onChangeOrder: (order: SortItem[]) => void;\n};\n\ntype withVars = React.CSSProperties & {\n '--height'?: string;\n '--width'?: string;\n};\n\n/**\n * Children must provide a stable `data-id` for emits `{ id, weight }` and `key` (reconciliation).\n */\n\nexport function Sortable({\n children,\n className,\n columns = 1,\n onChangeOrder,\n ...props\n}: SortableProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n const arr = useMemo(() => React.Children.toArray(children), [children]);\n const drag = useRef(-1);\n const [zoneSize, setZoneSize] = useState({\n height: 0,\n width: 0,\n });\n const [dropIndex, setDropIndex] = useState<number | null>(null);\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/_sortable/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\n\nimport { iconSVG } from '@/components/icon/icons.ts';\nimport { List } from '@/components/list';\n\nimport styles from './styles.module.css';\n\ntype SortItem = { id: string; weight: number };\n\ntype SortableProps = React.ComponentPropsWithoutRef<'ol'> & {\n columns?: number;\n isRearranging?: boolean;\n onChangeOrder: (order: SortItem[]) => void;\n};\n\ntype withVars = React.CSSProperties & {\n '--height'?: string;\n '--width'?: string;\n '--icon-svg'?: string;\n};\n\n/**\n * Children must provide a stable `data-id` for emits `{ id, weight }` and `key` (reconciliation).\n */\n\nexport function Sortable({\n children,\n className,\n columns = 1,\n isRearranging = false,\n onChangeOrder,\n ...props\n}: SortableProps) {\n const cols = Number.isFinite(columns) ? Math.max(1, Math.floor(columns)) : 1;\n const arr = useMemo(() => React.Children.toArray(children), [children]);\n const drag = useRef(-1);\n const [zoneSize, setZoneSize] = useState({\n height: 0,\n width: 0,\n });\n const [dropIndex, setDropIndex] = useState<number | null>(null);\n const [droppedAtIndex, setDroppedAtIndex] = useState<number | null>(null);\n const withVars: withVars = {\n ...props.style,\n '--icon-svg': iconSVG('sort', true),\n '--height': `${zoneSize.height}px`,\n '--width':\n cols > 1 ? `calc(${zoneSize.width}px - var(--utils-tokens-unit))` : `${zoneSize.width}px`,\n };\n\n const resetDragState = () => {\n drag.current = -1;\n setDropIndex(null);\n };\n\n useEffect(() => {\n if (!isRearranging) {\n setDroppedAtIndex(null);\n }\n }, [isRearranging]);\n\n return (\n <List\n className={cx(className, styles.sortable, cols > 1 && styles.columns)}\n columns={columns}\n ordered\n style={withVars}\n {...props}\n >\n {arr.map((child, i) => {\n const key = React.isValidElement(child) ? child.key : null;\n\n return (\n <li\n key={key ?? i}\n className={cx(\n dropIndex !== null && dropIndex > i - 10 && dropIndex < i + 10 && styles.pseudo,\n dropIndex === i && drag.current < i && styles['target-below'],\n dropIndex === i && drag.current > i && styles['target-above'],\n drag.current === i && styles.dragging,\n droppedAtIndex === i && isRearranging && styles.dropping\n )}\n draggable={!isRearranging}\n onDragEnd={() => resetDragState()}\n onDragOver={(e) => {\n e.preventDefault();\n e.dataTransfer.dropEffect = 'move';\n const from = drag.current;\n if (from < 0 || from === i) return;\n\n const rect = e.currentTarget.getBoundingClientRect();\n const itemHeight = i === from + 1 ? zoneSize.height : rect.height;\n const isBottomHalf = e.clientY > rect.top + itemHeight / 2;\n const rawIndex = isBottomHalf ? i + 1 : i;\n const nextDropIndex = rawIndex > from ? rawIndex - 1 : rawIndex;\n\n setDropIndex(nextDropIndex);\n }}\n onDragStart={(e) => {\n drag.current = i;\n setZoneSize({\n height: e.currentTarget.offsetHeight,\n width: e.currentTarget.offsetWidth,\n });\n e.dataTransfer.setData('text/plain', '');\n e.dataTransfer.effectAllowed = 'move';\n setDropIndex(i);\n }}\n onDrop={(e) => {\n e.preventDefault();\n const from = drag.current;\n const to = dropIndex;\n if (from < 0 || to === null || from === to) return;\n\n setDroppedAtIndex(to);\n const next = arr.slice();\n const [moved] = next.splice(from, 1);\n next.splice(to, 0, moved);\n\n onChangeOrder?.(\n next.map((c, idx) => ({\n id: String(\n React.isValidElement(c)\n ? ((c.props as { 'data-id'?: string })['data-id'] ?? `idx-${idx}`)\n : `idx-${idx}`\n ),\n\n weight: next.length - 1 - idx,\n }))\n );\n\n resetDragState();\n }}\n >\n {child}\n </li>\n );\n })}\n </List>\n );\n}\n"],"names":["Sortable","children","className","columns","isRearranging","onChangeOrder","props","cols","Number","isFinite","Math","max","floor","arr","useMemo","React","Children","toArray","drag","useRef","zoneSize","setZoneSize","useState","height","width","dropIndex","setDropIndex","droppedAtIndex","setDroppedAtIndex","withVars","style","iconSVG","resetDragState","current","useEffect","jsx","List","cx","styles","sortable","map","child","i","key","isValidElement","pseudo","dragging","dropping","e","preventDefault","dataTransfer","dropEffect","from","rect","currentTarget","getBoundingClientRect","itemHeight","rawIndex","clientY","top","nextDropIndex","offsetHeight","offsetWidth","setData","effectAllowed","to","next","slice","moved","splice","c","idx","id","String","weight","length"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index25.css');const u=require("react/jsx-runtime"),i=require("react"),w=require("../toast/index.cjs"),p="_toasts_19qwq_1",h={toasts:p},T=({defaultDurationMs:r=5e3,onRemove:m,toasts:n})=>{const d=i.useRef(new Map),[c,l]=i.useState(new Set),a=i.useCallback(e=>{l(s=>s.has(e)?s:new Set(s).add(e))},[]);return i.useEffect(()=>{const e=d.current,s=new Set(n.map(t=>t.id));l(t=>{const o=new Set([...t].filter(f=>s.has(f)));return o.size===t.size?t:o});for(const t of n){if(c.has(t.id)||e.has(t.id))continue;const o=t.durationMs??r;e.set(t.id,window.setTimeout(()=>{a(t.id)},o))}for(const[t,o]of e)s.has(t)&&!c.has(t)||(window.clearTimeout(o),e.delete(t))},[c,r,a,n]),i.useEffect(()=>{const e=d.current;return()=>{for(const s of e.values())window.clearTimeout(s);e.clear()}},[]),n.length?u.jsx("div",{className:h.toasts,"data-component":"toasts",children:n.map(e=>u.jsx(w.Toast,{label:e.label,onClick:()=>a(e.id),onExitComplete:()=>m(e.id),open:!c.has(e.id),type:e.type},e.id))}):null};exports.Toasts=T;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as p, useState as w, useCallback as h, useEffect as m } from "react";
|
|
3
3
|
import { Toast as T } from "../toast/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index25.css';const v = "_toasts_19qwq_1", S = {
|
|
5
5
|
toasts: v
|
|
6
6
|
}, g = ({
|
|
7
7
|
defaultDurationMs: c = 5e3,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index26.css');const e=require("react/jsx-runtime"),d=require("../_card/index.cjs"),n="_widget_lea1t_1",s={widget:n},o=({children:t,...i})=>e.jsx("div",{className:s.widget,...i,"data-component":"widget",children:e.jsx(d.Card,{children:t})});exports.Widget=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Card as i } from "../_card/index.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index26.css';const o = "_widget_lea1t_1", r = {
|
|
4
4
|
widget: o
|
|
5
5
|
}, a = ({
|
|
6
6
|
children: e,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index27.css');const t=require("react/jsx-runtime"),s="_accordion_1vtp0_6",a={accordion:s},d=({children:e,open:c,summary:r})=>{const i=n=>{const o=n.currentTarget.closest("details");!o||!document.startViewTransition||(n.preventDefault(),document.startViewTransition(()=>o.open=!o.open))};return t.jsxs("details",{className:a.accordion,open:c||void 0,"data-component":"accordion",children:[t.jsx("summary",{onClick:i,children:r}),e]})};exports.Accordion=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index14.css');const l=require("react/jsx-runtime"),s=require("../../classix-5H4IWnMA.cjs"),a=require("../link/index.cjs"),t="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='24'%20fill='none'%3e%3cpath%20fill='%23000'%20d='M16.705%2012.763c.012-.92.262-1.822.727-2.622a5.5%205.5%200%200%201%201.933-1.954A5.7%205.7%200%200%200%2017.4%206.478a5.8%205.8%200%200%200-2.54-.669c-1.896-.194-3.734%201.107-4.7%201.107-.985%200-2.472-1.088-4.074-1.056a6.1%206.1%200%200%200-2.93.854%205.9%205.9%200%200%200-2.12%202.153c-2.182%203.69-.554%209.114%201.537%2012.097%201.047%201.46%202.27%203.092%203.87%203.035%201.566-.064%202.15-.975%204.04-.975%201.873%200%202.422.974%204.054.938%201.68-.027%202.74-1.468%203.749-2.942A12%2012%200%200%200%2020%2017.612a5.37%205.37%200%200%201-2.395-1.94%205.2%205.2%200%200%201-.9-2.909M13.62%203.847A5.29%205.29%200%200%200%2014.88%200a5.64%205.64%200%200%200-3.621%201.83%205.1%205.1%200%200%200-1.023%201.726%205%205%200%200%200-.268%201.978c.7.007%201.393-.141%202.025-.433a4.6%204.6%200%200%200%201.629-1.254'/%3e%3c/svg%3e",p="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='74'%20height='15'%3e%3cpath%20d='M57.518%2011.41h1.629V.398h-1.629zm14.67-7.045-1.866%204.774h-.056l-1.938-4.774h-1.755l2.906%206.672-1.656%203.712h1.698L74%204.365zm-9.236%205.794c-.534%200-1.278-.269-1.278-.936%200-.849.926-1.175%201.727-1.175.715%200%201.053.156%201.488.369-.127%201.02-.997%201.742-1.937%201.742m.196-6.035c-1.179%200-2.401.524-2.906%201.686l1.446.609c.309-.609.884-.808%201.488-.808.843%200%201.699.51%201.713%201.417v.113c-.295-.17-.926-.425-1.699-.425-1.558%200-3.145.865-3.145%202.48%200%201.473%201.278%202.422%202.71%202.422%201.095%200%201.7-.495%202.078-1.077h.056v.85h1.572V7.17c0-1.954-1.446-3.045-3.313-3.045M53.082%205.705h-2.316V1.931h2.316c1.218%200%201.91%201.017%201.91%201.887%200%20.853-.692%201.887-1.91%201.887M53.04.398h-3.902V11.41h1.628V7.238h2.274c1.805%200%203.58-1.32%203.58-3.42%200-2.101-1.775-3.42-3.58-3.42m-21.282%209.763c-1.125%200-2.067-.95-2.067-2.256%200-1.32.942-2.285%202.067-2.285%201.112%200%201.983.965%201.983%202.285%200%201.305-.871%202.256-1.983%202.256m1.87-5.18h-.056c-.366-.44-1.068-.837-1.954-.837-1.857%200-3.558%201.646-3.558%203.76%200%202.1%201.701%203.733%203.558%203.733.886%200%201.588-.397%201.954-.852h.057v.54c0%201.433-.76%202.2-1.983%202.2-.999%200-1.618-.725-1.87-1.335l-1.421.596c.408.994%201.49%202.214%203.29%202.214%201.913%200%203.53-1.135%203.53-3.902V4.37H33.63zm2.673%206.429h1.631V.397h-1.631zm4.035-3.633c-.042-1.447%201.111-2.185%201.94-2.185.648%200%201.196.326%201.379.794zM45.4%206.528c-.31-.837-1.252-2.384-3.178-2.384-1.913%200-3.501%201.518-3.501%203.747%200%202.1%201.574%203.746%203.683%203.746%201.702%200%202.687-1.05%203.095-1.66l-1.266-.852c-.422.624-.999%201.036-1.829%201.036s-1.42-.384-1.8-1.135l4.964-2.073zM5.85%205.294v1.589h3.768c-.112.894-.407%201.547-.857%202-.549.554-1.407%201.165-2.91%201.165-2.322%200-4.136-1.888-4.136-4.23%200-2.341%201.814-4.228%204.135-4.228%201.252%200%202.166.497%202.84%201.135l1.112-1.121C8.859.696%207.608%200%205.85%200%202.672%200%200%202.612%200%205.819s2.672%205.818%205.85%205.818c1.715%200%203.009-.568%204.021-1.632%201.042-1.05%201.365-2.526%201.365-3.718%200-.37-.028-.71-.085-.993zm9.67%204.867c-1.124%200-2.095-.937-2.095-2.27%200-1.349.97-2.271%202.096-2.271%201.124%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.727%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747m8.13%206.017c-1.125%200-2.096-.937-2.096-2.27%200-1.349.97-2.271%202.096-2.271%201.125%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.726%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747'/%3e%3c/svg%3e",g="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='24'%20fill='none'%3e%3cpath%20fill='%23EA4335'%20d='M9.805%2011.462.09%2022.006l.001.006C.39%2023.158%201.411%2024%202.625%2024c.486%200%20.941-.134%201.332-.37l.03-.018%2010.936-6.453z'/%3e%3cpath%20fill='%23FBBC04'%20d='m19.633%209.666-.009-.006-4.721-2.799-5.32%204.84%205.339%205.457%204.696-2.77A2.7%202.7%200%200%200%2021%2012.022a2.69%202.69%200%200%200-1.367-2.356'/%3e%3cpath%20fill='%234285F4'%20d='M.09%201.993a2.7%202.7%200%200%200-.09.69v18.633q0%20.36.09.69L10.14%2011.73z'/%3e%3cpath%20fill='%2334A853'%20d='m9.877%2012%205.027-5.14L3.982.383A2.6%202.6%200%200%200%202.626%200C1.412%200%20.389.844.09%201.99v.003z'/%3e%3c/svg%3e",i="_apple_zdked_17",h="_google_zdked_49",c={"app-link":"_app-link_zdked_1",apple:i,google:h},n=({label:o,type:e})=>l.jsxs(a.Link,{to:e==="apple"?"https://apps.apple.com/app/6478964287":"https://play.google.com/store/apps/details?id=no.solibo.mobile.home",className:s.t(c["app-link"],c[e]),"data-component":"applink",children:[e==="apple"?l.jsx("img",{src:t,alt:"Apple logo"}):l.jsx("img",{src:g,alt:"Google logo"}),l.jsxs("div",{children:[l.jsx("span",{children:o}),l.jsx("span",{children:e==="google"?l.jsx("img",{src:p,alt:"Google Play logo"}):"App Store"})]})]});exports.AppLink=n;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { t as a } from "../../classix-DG18itHa.js";
|
|
3
3
|
import { Link as s } from "../link/index.js";
|
|
4
|
-
import '../../assets/
|
|
4
|
+
import '../../assets/index14.css';const t = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='24'%20fill='none'%3e%3cpath%20fill='%23000'%20d='M16.705%2012.763c.012-.92.262-1.822.727-2.622a5.5%205.5%200%200%201%201.933-1.954A5.7%205.7%200%200%200%2017.4%206.478a5.8%205.8%200%200%200-2.54-.669c-1.896-.194-3.734%201.107-4.7%201.107-.985%200-2.472-1.088-4.074-1.056a6.1%206.1%200%200%200-2.93.854%205.9%205.9%200%200%200-2.12%202.153c-2.182%203.69-.554%209.114%201.537%2012.097%201.047%201.46%202.27%203.092%203.87%203.035%201.566-.064%202.15-.975%204.04-.975%201.873%200%202.422.974%204.054.938%201.68-.027%202.74-1.468%203.749-2.942A12%2012%200%200%200%2020%2017.612a5.37%205.37%200%200%201-2.395-1.94%205.2%205.2%200%200%201-.9-2.909M13.62%203.847A5.29%205.29%200%200%200%2014.88%200a5.64%205.64%200%200%200-3.621%201.83%205.1%205.1%200%200%200-1.023%201.726%205%205%200%200%200-.268%201.978c.7.007%201.393-.141%202.025-.433a4.6%204.6%200%200%200%201.629-1.254'/%3e%3c/svg%3e", g = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='74'%20height='15'%3e%3cpath%20d='M57.518%2011.41h1.629V.398h-1.629zm14.67-7.045-1.866%204.774h-.056l-1.938-4.774h-1.755l2.906%206.672-1.656%203.712h1.698L74%204.365zm-9.236%205.794c-.534%200-1.278-.269-1.278-.936%200-.849.926-1.175%201.727-1.175.715%200%201.053.156%201.488.369-.127%201.02-.997%201.742-1.937%201.742m.196-6.035c-1.179%200-2.401.524-2.906%201.686l1.446.609c.309-.609.884-.808%201.488-.808.843%200%201.699.51%201.713%201.417v.113c-.295-.17-.926-.425-1.699-.425-1.558%200-3.145.865-3.145%202.48%200%201.473%201.278%202.422%202.71%202.422%201.095%200%201.7-.495%202.078-1.077h.056v.85h1.572V7.17c0-1.954-1.446-3.045-3.313-3.045M53.082%205.705h-2.316V1.931h2.316c1.218%200%201.91%201.017%201.91%201.887%200%20.853-.692%201.887-1.91%201.887M53.04.398h-3.902V11.41h1.628V7.238h2.274c1.805%200%203.58-1.32%203.58-3.42%200-2.101-1.775-3.42-3.58-3.42m-21.282%209.763c-1.125%200-2.067-.95-2.067-2.256%200-1.32.942-2.285%202.067-2.285%201.112%200%201.983.965%201.983%202.285%200%201.305-.871%202.256-1.983%202.256m1.87-5.18h-.056c-.366-.44-1.068-.837-1.954-.837-1.857%200-3.558%201.646-3.558%203.76%200%202.1%201.701%203.733%203.558%203.733.886%200%201.588-.397%201.954-.852h.057v.54c0%201.433-.76%202.2-1.983%202.2-.999%200-1.618-.725-1.87-1.335l-1.421.596c.408.994%201.49%202.214%203.29%202.214%201.913%200%203.53-1.135%203.53-3.902V4.37H33.63zm2.673%206.429h1.631V.397h-1.631zm4.035-3.633c-.042-1.447%201.111-2.185%201.94-2.185.648%200%201.196.326%201.379.794zM45.4%206.528c-.31-.837-1.252-2.384-3.178-2.384-1.913%200-3.501%201.518-3.501%203.747%200%202.1%201.574%203.746%203.683%203.746%201.702%200%202.687-1.05%203.095-1.66l-1.266-.852c-.422.624-.999%201.036-1.829%201.036s-1.42-.384-1.8-1.135l4.964-2.073zM5.85%205.294v1.589h3.768c-.112.894-.407%201.547-.857%202-.549.554-1.407%201.165-2.91%201.165-2.322%200-4.136-1.888-4.136-4.23%200-2.341%201.814-4.228%204.135-4.228%201.252%200%202.166.497%202.84%201.135l1.112-1.121C8.859.696%207.608%200%205.85%200%202.672%200%200%202.612%200%205.819s2.672%205.818%205.85%205.818c1.715%200%203.009-.568%204.021-1.632%201.042-1.05%201.365-2.526%201.365-3.718%200-.37-.028-.71-.085-.993zm9.67%204.867c-1.124%200-2.095-.937-2.095-2.27%200-1.349.97-2.271%202.096-2.271%201.124%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.727%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747m8.13%206.017c-1.125%200-2.096-.937-2.096-2.27%200-1.349.97-2.271%202.096-2.271%201.125%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.726%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747'/%3e%3c/svg%3e", h = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='24'%20fill='none'%3e%3cpath%20fill='%23EA4335'%20d='M9.805%2011.462.09%2022.006l.001.006C.39%2023.158%201.411%2024%202.625%2024c.486%200%20.941-.134%201.332-.37l.03-.018%2010.936-6.453z'/%3e%3cpath%20fill='%23FBBC04'%20d='m19.633%209.666-.009-.006-4.721-2.799-5.32%204.84%205.339%205.457%204.696-2.77A2.7%202.7%200%200%200%2021%2012.022a2.69%202.69%200%200%200-1.367-2.356'/%3e%3cpath%20fill='%234285F4'%20d='M.09%201.993a2.7%202.7%200%200%200-.09.69v18.633q0%20.36.09.69L10.14%2011.73z'/%3e%3cpath%20fill='%2334A853'%20d='m9.877%2012%205.027-5.14L3.982.383A2.6%202.6%200%200%200%202.626%200C1.412%200%20.389.844.09%201.99v.003z'/%3e%3c/svg%3e", i = "_apple_zdked_17", m = "_google_zdked_49", e = {
|
|
5
5
|
"app-link": "_app-link_zdked_1",
|
|
6
6
|
apple: i,
|
|
7
7
|
google: m
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index28.css');const n=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs"),d="_aside_mn1ep_1",o="_meta_mn1ep_14",m="_sticky_mn1ep_41",e={aside:d,meta:o,sticky:m},r={default:e.default,meta:e.meta},u=({children:s,className:t,sticky:a=!1,variant:i="default"})=>n.jsx("aside",{className:c.t(t&&t,e.aside,a&&e.sticky,r[i]),"data-component":"aside",children:s});exports.Aside=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { t as n } from "../../classix-DG18itHa.js";
|
|
3
|
-
import '../../assets/
|
|
3
|
+
import '../../assets/index28.css';const o = "_aside_mn1ep_1", c = "_meta_mn1ep_14", d = "_sticky_mn1ep_41", t = {
|
|
4
4
|
aside: o,
|
|
5
5
|
meta: c,
|
|
6
6
|
sticky: d
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index29.css');const e=require("react/jsx-runtime"),r=require("../../classix-5H4IWnMA.cjs"),s=require("../button/index.cjs"),c=require("../icon/index.cjs"),d="_badge_17jf9_1",m="_primary_17jf9_7",l="_info_17jf9_12",n={badge:d,primary:m,info:l},u={default:n.default,info:n.info,primary:n.primary},_=({children:t,deleteAccessibleLabel:i="Remove",onDelete:a,variant:o="default"})=>e.jsxs("span",{className:r.t(n.badge,u[o]),"data-component":"badge",children:[t,a&&e.jsx(s.Button,{"aria-label":i,onClick:a,variant:"minimal",children:e.jsx(c.Icon,{name:"x"})})]});exports.Badge=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { t as e } from "../../classix-DG18itHa.js";
|
|
3
|
-
import { Button as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import '../../assets/
|
|
6
|
-
badge:
|
|
7
|
-
primary:
|
|
3
|
+
import { Button as f } from "../button/index.js";
|
|
4
|
+
import { Icon as s } from "../icon/index.js";
|
|
5
|
+
import '../../assets/index29.css';const c = "_badge_17jf9_1", d = "_primary_17jf9_7", p = "_info_17jf9_12", a = {
|
|
6
|
+
badge: c,
|
|
7
|
+
primary: d,
|
|
8
8
|
info: p
|
|
9
9
|
}, l = {
|
|
10
|
-
default:
|
|
11
|
-
info:
|
|
12
|
-
primary:
|
|
13
|
-
},
|
|
10
|
+
default: a.default,
|
|
11
|
+
info: a.info,
|
|
12
|
+
primary: a.primary
|
|
13
|
+
}, j = ({
|
|
14
14
|
children: n,
|
|
15
15
|
deleteAccessibleLabel: i = "Remove",
|
|
16
|
-
onDelete:
|
|
17
|
-
variant:
|
|
18
|
-
}) => /* @__PURE__ */
|
|
16
|
+
onDelete: r,
|
|
17
|
+
variant: t = "default"
|
|
18
|
+
}) => /* @__PURE__ */ m("span", { className: e(a.badge, l[t]), "data-component": "badge", children: [
|
|
19
19
|
n,
|
|
20
|
-
|
|
20
|
+
r && /* @__PURE__ */ o(f, { "aria-label": i, onClick: r, variant: "minimal", children: /* @__PURE__ */ o(s, { name: "x" }) })
|
|
21
21
|
] });
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
j as Badge
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const t=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),b=require("../button/index.cjs"),o="_banner_14108_13",u="_visible_14108_34",r={banner:o,visible:u},d=({button:a,message:s,onClick:e,onDismiss:n,visible:c=!1})=>{const i=()=>{e==null||e(),n==null||n()};return t.jsxs("div",{"aria-live":"assertive",className:l.t(r.banner,c&&r.visible),"data-component":"banner",children:[s,t.jsx(b.Button,{onClick:i,children:a})]})};exports.Banner=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|