@dss-kit/ui-kit 0.1.33 → 0.1.34

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Portal.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Portal/Portal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAM7E,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAsBxC,CAAC"}
1
+ {"version":3,"file":"Portal.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Portal/Portal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAM7E,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CA4BxC,CAAC"}
@@ -2,7 +2,8 @@
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var es;function Ha(){return es||(es=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",r=0;r<arguments.length;r++){var a=arguments[r];a&&(o=s(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var r="";for(var a in o)t.call(o,a)&&o[a]&&(r=s(r,a));return r}function s(o,r){return r?o?o+" "+r:o+r:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(dn)),dn.exports}var Ga=Ha();const Ne=Na(Ga),Wa="_rippleOverlay_s2kim_8",Ua="_ripple_s2kim_8",ts={rippleOverlay:Wa,ripple:Ua},fn="button, a, input, label, [role='button'], [data-ripple]";function Ka(e){if(typeof e.composedPath=="function")return e.composedPath();const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentNode||n.host;return t.push(window),t}const st=v.forwardRef(({color:e="rgba(0,0,0,0.18)",duration:t=1e3,radius:n="auto",className:i},s)=>{const o=v.useRef(null),[r,a]=v.useState([]),l=v.useRef([]),u=v.useRef(1),c=v.useRef(null),d=()=>{l.current.forEach(g=>clearTimeout(g)),l.current=[]},f=v.useCallback((g,x,w,C)=>{if(typeof window>"u")return;const y=w.getBoundingClientRect(),S=n==="auto"?Math.max(y.width,y.height)*2:n,_=g-C.left,b=x-C.top,E=Math.max(0,y.top-C.top),R=Math.max(0,y.left-C.left),I=Math.max(0,C.right-y.right),A=Math.max(0,C.bottom-y.bottom),J=window.getComputedStyle(w).borderRadius||"0px",N=u.current++,ee={id:N,left:_-S/2,top:b-S/2,size:Math.ceil(S),clip:{top:Math.round(E),right:Math.round(I),bottom:Math.round(A),left:Math.round(R)},borderRadius:J};a(se=>[...se,ee]);const te=window.setTimeout(()=>{a(se=>se.filter($=>$.id!==N))},t+80);l.current.push(te)},[t,n]),h=v.useCallback(g=>{try{if(!o.current)return;const x=o.current,w=x.parentElement;if(!w)return;const C=Ka(g);let y=null;for(const R of C)if(R instanceof Element){if(R===w)break;if(R.matches&&R.matches(fn)){y=R;break}}if(y||(y=w),y.closest&&(y.closest("[disabled]")||y.getAttribute("aria-disabled")==="true"||y.classList.contains("ripple-disabled")))return;const S=g.target;if(S&&S.closest&&(S.closest("[disabled]")||S.getAttribute?.("aria-disabled")==="true"))return;const _=x.getBoundingClientRect(),{clientX:b}=g,{clientY:E}=g;f(b,E,y,_)}catch{}},[f]),p=v.useCallback(g=>{if(!o.current||!(g.key==="Enter"||g.key===" "))return;const x=o.current,w=x.parentElement;if(!w)return;const C=document.activeElement;let y=null;if(C instanceof Element&&C.matches(fn)&&(y=C),y||(y=w),y.closest&&(y.closest("[disabled]")||y.getAttribute("aria-disabled")==="true"))return;const S=x.getBoundingClientRect(),_=y.getBoundingClientRect().left+y.getBoundingClientRect().width/2,b=y.getBoundingClientRect().top+y.getBoundingClientRect().height/2;f(_,b,y,S)},[f]);return v.useImperativeHandle(s,()=>({trigger:({center:g=!0,x,y:w}={})=>{const C=o.current;if(!C)return;const y=C.parentElement;if(!y)return;const S=C.getBoundingClientRect(),_=document.activeElement instanceof Element&&document.activeElement.matches(fn)?document.activeElement:y,b=g?_.getBoundingClientRect().left+_.getBoundingClientRect().width/2:x??S.left+S.width/2,E=g?_.getBoundingClientRect().top+_.getBoundingClientRect().height/2:w??S.top+S.height/2;f(b,E,_,S)}}),[f]),v.useEffect(()=>{const g=o.current;if(!g)return;const x=g.parentElement;if(!x||typeof window>"u")return;const w=window.getComputedStyle(x);let C=!1;return w.position==="static"&&(x.style.position="relative",C=!0,c.current=x),x.addEventListener("pointerdown",h,!0),x.addEventListener("keydown",p),()=>{x.removeEventListener("pointerdown",h,!0),x.removeEventListener("keydown",p),C&&c.current&&(c.current.style.position="",c.current=null),d()}},[h,p]),v.useEffect(()=>()=>d(),[]),m.jsx("div",{ref:o,className:`${ts.rippleOverlay} ${i??""}`,"aria-hidden":!0,children:r.map(g=>m.jsx("span",{className:ts.ripple,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.size}px`,height:`${g.size}px`,backgroundColor:e,animationDuration:`${t}ms`,clipPath:`inset(${g.clip.top}px ${g.clip.right}px ${g.clip.bottom}px ${g.clip.left}px round ${g.borderRadius})`}},g.id))})});function Yt(e,t){const{current:n}=v.useRef(e!==void 0),[i,s]=v.useState(t),o=n?e:i,r=v.useCallback(a=>{n||s(a)},[n]);return[o,r]}const Ao=(e,t)=>{const[n,i]=v.useState({top:0,left:0,width:0});return v.useLayoutEffect(()=>{if(!t||!e.current||typeof window>"u")return;const s=()=>{const r=e.current.getBoundingClientRect();i({top:r.bottom+window.scrollY+4,left:r.left+window.scrollX,width:r.width})};s(),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0);const o=new ResizeObserver(()=>s());return o.observe(e.current),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0),o.disconnect()}},[t,e]),n};function Zt(e,t,n,i=""){if(n)return e[`${t}_${n}${i}`]}function yt(e,t,n){return Zt(e,t,n,"Size")}const qa="_button_11ykb_8",Xa="_button_primary_11ykb_19",Ya="_button_secondary_11ykb_22",Za="_button_negative_11ykb_25",Ja="_button_positive_11ykb_28",Qa="_button_warning_11ykb_31",el="_button_neutral_11ykb_34",tl="_button_mdSize_11ykb_118",nl="_button_smSize_11ykb_128",il="_button_xsSize_11ykb_138",hn={button:qa,button_primary:Xa,button_secondary:Ya,button_negative:Za,button_positive:Ja,button_warning:Qa,button_neutral:el,"button_neutral-white":"_button_neutral-white_11ykb_37","button_no-bg":"_button_no-bg_11ykb_40",button_mdSize:tl,button_smSize:nl,button_xsSize:il};function wt({attr:e,children:t,className:n,type:i="button",color:s="primary",size:o="md",...r}){const a="button";return m.jsxs("button",{...e,...r,type:i,className:Ne(hn[a],n,yt(hn,a,o),Zt(hn,a,s)),children:[m.jsx(st,{}),t]})}const sl="_avatar_1oe2p_8",ol="_avatar_primary_1oe2p_22",rl="_avatar_secondary_1oe2p_25",al="_avatar_negative_1oe2p_28",ll="_avatar_positive_1oe2p_31",ul="_avatar_warning_1oe2p_34",cl="_avatar_lgSize_1oe2p_71",dl="_avatar_mdSize_1oe2p_85",fl="_avatar_smSize_1oe2p_99",gn={avatar:sl,avatar_primary:ol,avatar_secondary:rl,avatar_negative:al,avatar_positive:ll,avatar_warning:ul,avatar_lgSize:cl,avatar_mdSize:dl,avatar_smSize:fl};function hl({attr:e,children:t,className:n,color:i="primary",size:s="md",...o}){const r="avatar";return m.jsx("div",{...e,...o,className:Ne(gn[r],n,yt(gn,r,s),Zt(gn,r,i)),children:t})}const gl=e=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.15}),T.createElement("path",{d:"M16 9L10.0337 15L8 12.9548",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ns=e=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor",fillOpacity:.15}),T.createElement("path",{d:"M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z",fill:"currentColor"}),T.createElement("path",{d:"M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z",fill:"currentColor"})),pl=e=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.12}),T.createElement("path",{d:"M16 8L8 16M16 16L8 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),ml=e=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"black",...e},T.createElement("path",{d:"M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),vl="_hint_prca1_8",yl="_md_prca1_19",wl="_sm_prca1_24",xl="_icon_prca1_29",Cl="_content_prca1_40",Sl="_title_prca1_46",_l="_subtitle_prca1_50",bl="_disabled_prca1_55",Rl="_warning_prca1_60",Pl="_solid_prca1_60",Ml="_negative_prca1_65",Tl="_positive_prca1_70",El="_accent_prca1_75",Vl="_neutral_prca1_80",Al="_soft_prca1_85",ge={hint:vl,md:yl,sm:wl,icon:xl,content:Cl,title:Sl,subtitle:_l,disabled:bl,warning:Rl,solid:Pl,negative:Ml,positive:Tl,accent:El,neutral:Vl,soft:Al},Dl={negative:m.jsx(pl,{}),positive:m.jsx(gl,{}),accent:m.jsx(ns,{}),warning:m.jsx(ns,{}),neutral:m.jsx(ml,{})},Fl=({title:e,subtitle:t,color:n="warning",variant:i="soft",size:s="md",icon:o,disabled:r=!1,className:a,style:l})=>{const u=o||Dl[n];return m.jsxs("div",{className:Ne(ge.hint,ge[n],ge[i],ge[s],r&&ge.disabled,a),style:l,"aria-disabled":r,children:[u&&m.jsx("span",{className:Ne(ge.icon,ge[n]),children:u}),m.jsxs("div",{className:ge.content,children:[e&&m.jsx(B,{className:Ne(ge.title,yt(ge,"title",s)),variant:s==="md"?"body-1":"caption-2",children:e}),t&&m.jsx(B,{className:Ne(ge.subtitle,yt(ge,"subtitle",s)),variant:s==="md"?"body-2":"caption-1",children:t})]})]})},Jt=({children:e})=>{const[t,n]=v.useState(null);return v.useEffect(()=>{let i=document.getElementById("portal-root");return i||(i=document.createElement("div"),i.id="portal-root",document.body.appendChild(i)),n(i),()=>{i&&i.children.length===0&&i.remove()}},[]),t?Eo.createPortal(e,t):null},kl=M.css({position:"relative",zIndex:1}),Il=({children:e,className:t,...n})=>m.jsx(V,{className:M.cx(kl,t),...n,children:e}),Ll=M.keyframes`
5
+ */var es;function Ha(){return es||(es=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",r=0;r<arguments.length;r++){var a=arguments[r];a&&(o=s(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var r="";for(var a in o)t.call(o,a)&&o[a]&&(r=s(r,a));return r}function s(o,r){return r?o?o+" "+r:o+r:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(dn)),dn.exports}var Ga=Ha();const Ne=Na(Ga),Wa="_rippleOverlay_s2kim_8",Ua="_ripple_s2kim_8",ts={rippleOverlay:Wa,ripple:Ua},fn="button, a, input, label, [role='button'], [data-ripple]";function Ka(e){if(typeof e.composedPath=="function")return e.composedPath();const t=[];let n=e.target;for(;n;)t.push(n),n=n.parentNode||n.host;return t.push(window),t}const st=v.forwardRef(({color:e="rgba(0,0,0,0.18)",duration:t=1e3,radius:n="auto",className:i},s)=>{const o=v.useRef(null),[r,a]=v.useState([]),l=v.useRef([]),u=v.useRef(1),c=v.useRef(null),d=()=>{l.current.forEach(g=>clearTimeout(g)),l.current=[]},f=v.useCallback((g,x,w,C)=>{if(typeof window>"u")return;const y=w.getBoundingClientRect(),S=n==="auto"?Math.max(y.width,y.height)*2:n,_=g-C.left,b=x-C.top,E=Math.max(0,y.top-C.top),R=Math.max(0,y.left-C.left),I=Math.max(0,C.right-y.right),A=Math.max(0,C.bottom-y.bottom),J=window.getComputedStyle(w).borderRadius||"0px",N=u.current++,ee={id:N,left:_-S/2,top:b-S/2,size:Math.ceil(S),clip:{top:Math.round(E),right:Math.round(I),bottom:Math.round(A),left:Math.round(R)},borderRadius:J};a(se=>[...se,ee]);const te=window.setTimeout(()=>{a(se=>se.filter($=>$.id!==N))},t+80);l.current.push(te)},[t,n]),h=v.useCallback(g=>{try{if(!o.current)return;const x=o.current,w=x.parentElement;if(!w)return;const C=Ka(g);let y=null;for(const R of C)if(R instanceof Element){if(R===w)break;if(R.matches&&R.matches(fn)){y=R;break}}if(y||(y=w),y.closest&&(y.closest("[disabled]")||y.getAttribute("aria-disabled")==="true"||y.classList.contains("ripple-disabled")))return;const S=g.target;if(S&&S.closest&&(S.closest("[disabled]")||S.getAttribute?.("aria-disabled")==="true"))return;const _=x.getBoundingClientRect(),{clientX:b}=g,{clientY:E}=g;f(b,E,y,_)}catch{}},[f]),p=v.useCallback(g=>{if(!o.current||!(g.key==="Enter"||g.key===" "))return;const x=o.current,w=x.parentElement;if(!w)return;const C=document.activeElement;let y=null;if(C instanceof Element&&C.matches(fn)&&(y=C),y||(y=w),y.closest&&(y.closest("[disabled]")||y.getAttribute("aria-disabled")==="true"))return;const S=x.getBoundingClientRect(),_=y.getBoundingClientRect().left+y.getBoundingClientRect().width/2,b=y.getBoundingClientRect().top+y.getBoundingClientRect().height/2;f(_,b,y,S)},[f]);return v.useImperativeHandle(s,()=>({trigger:({center:g=!0,x,y:w}={})=>{const C=o.current;if(!C)return;const y=C.parentElement;if(!y)return;const S=C.getBoundingClientRect(),_=document.activeElement instanceof Element&&document.activeElement.matches(fn)?document.activeElement:y,b=g?_.getBoundingClientRect().left+_.getBoundingClientRect().width/2:x??S.left+S.width/2,E=g?_.getBoundingClientRect().top+_.getBoundingClientRect().height/2:w??S.top+S.height/2;f(b,E,_,S)}}),[f]),v.useEffect(()=>{const g=o.current;if(!g)return;const x=g.parentElement;if(!x||typeof window>"u")return;const w=window.getComputedStyle(x);let C=!1;return w.position==="static"&&(x.style.position="relative",C=!0,c.current=x),x.addEventListener("pointerdown",h,!0),x.addEventListener("keydown",p),()=>{x.removeEventListener("pointerdown",h,!0),x.removeEventListener("keydown",p),C&&c.current&&(c.current.style.position="",c.current=null),d()}},[h,p]),v.useEffect(()=>()=>d(),[]),m.jsx("div",{ref:o,className:`${ts.rippleOverlay} ${i??""}`,"aria-hidden":!0,children:r.map(g=>m.jsx("span",{className:ts.ripple,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.size}px`,height:`${g.size}px`,backgroundColor:e,animationDuration:`${t}ms`,clipPath:`inset(${g.clip.top}px ${g.clip.right}px ${g.clip.bottom}px ${g.clip.left}px round ${g.borderRadius})`}},g.id))})});function Yt(e,t){const{current:n}=v.useRef(e!==void 0),[i,s]=v.useState(t),o=n?e:i,r=v.useCallback(a=>{n||s(a)},[n]);return[o,r]}const Ao=(e,t)=>{const[n,i]=v.useState({top:0,left:0,width:0});return v.useLayoutEffect(()=>{if(!t||!e.current||typeof window>"u")return;const s=()=>{const r=e.current.getBoundingClientRect();i({top:r.bottom+window.scrollY+4,left:r.left+window.scrollX,width:r.width})};s(),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0);const o=new ResizeObserver(()=>s());return o.observe(e.current),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0),o.disconnect()}},[t,e]),n};function Zt(e,t,n,i=""){if(n)return e[`${t}_${n}${i}`]}function yt(e,t,n){return Zt(e,t,n,"Size")}const qa="_button_11ykb_8",Xa="_button_primary_11ykb_19",Ya="_button_secondary_11ykb_22",Za="_button_negative_11ykb_25",Ja="_button_positive_11ykb_28",Qa="_button_warning_11ykb_31",el="_button_neutral_11ykb_34",tl="_button_mdSize_11ykb_118",nl="_button_smSize_11ykb_128",il="_button_xsSize_11ykb_138",hn={button:qa,button_primary:Xa,button_secondary:Ya,button_negative:Za,button_positive:Ja,button_warning:Qa,button_neutral:el,"button_neutral-white":"_button_neutral-white_11ykb_37","button_no-bg":"_button_no-bg_11ykb_40",button_mdSize:tl,button_smSize:nl,button_xsSize:il};function wt({attr:e,children:t,className:n,type:i="button",color:s="primary",size:o="md",...r}){const a="button";return m.jsxs("button",{...e,...r,type:i,className:Ne(hn[a],n,yt(hn,a,o),Zt(hn,a,s)),children:[m.jsx(st,{}),t]})}const sl="_avatar_1oe2p_8",ol="_avatar_primary_1oe2p_22",rl="_avatar_secondary_1oe2p_25",al="_avatar_negative_1oe2p_28",ll="_avatar_positive_1oe2p_31",ul="_avatar_warning_1oe2p_34",cl="_avatar_lgSize_1oe2p_71",dl="_avatar_mdSize_1oe2p_85",fl="_avatar_smSize_1oe2p_99",gn={avatar:sl,avatar_primary:ol,avatar_secondary:rl,avatar_negative:al,avatar_positive:ll,avatar_warning:ul,avatar_lgSize:cl,avatar_mdSize:dl,avatar_smSize:fl};function hl({attr:e,children:t,className:n,color:i="primary",size:s="md",...o}){const r="avatar";return m.jsx("div",{...e,...o,className:Ne(gn[r],n,yt(gn,r,s),Zt(gn,r,i)),children:t})}const gl=e=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.15}),T.createElement("path",{d:"M16 9L10.0337 15L8 12.9548",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ns=e=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor",fillOpacity:.15}),T.createElement("path",{d:"M12 6C11.4477 6 11 6.44772 11 7V13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V7C13 6.44772 12.5523 6 12 6Z",fill:"currentColor"}),T.createElement("path",{d:"M12 15C11.4477 15 11 15.4477 11 16V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V16C13 15.4477 12.5523 15 12 15Z",fill:"currentColor"})),pl=e=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},T.createElement("circle",{cx:12,cy:12,r:10,fill:"currentColor",fillOpacity:.12}),T.createElement("path",{d:"M16 8L8 16M16 16L8 8",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"})),ml=e=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"black",...e},T.createElement("path",{d:"M12 2V22M19.0711 4.92893L4.92893 19.0711M22 12H2M19.0711 19.0711L4.92893 4.92893",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),vl="_hint_prca1_8",yl="_md_prca1_19",wl="_sm_prca1_24",xl="_icon_prca1_29",Cl="_content_prca1_40",Sl="_title_prca1_46",_l="_subtitle_prca1_50",bl="_disabled_prca1_55",Rl="_warning_prca1_60",Pl="_solid_prca1_60",Ml="_negative_prca1_65",Tl="_positive_prca1_70",El="_accent_prca1_75",Vl="_neutral_prca1_80",Al="_soft_prca1_85",ge={hint:vl,md:yl,sm:wl,icon:xl,content:Cl,title:Sl,subtitle:_l,disabled:bl,warning:Rl,solid:Pl,negative:Ml,positive:Tl,accent:El,neutral:Vl,soft:Al},Dl={negative:m.jsx(pl,{}),positive:m.jsx(gl,{}),accent:m.jsx(ns,{}),warning:m.jsx(ns,{}),neutral:m.jsx(ml,{})},Fl=({title:e,subtitle:t,color:n="warning",variant:i="soft",size:s="md",icon:o,disabled:r=!1,className:a,style:l})=>{const u=o||Dl[n];return m.jsxs("div",{className:Ne(ge.hint,ge[n],ge[i],ge[s],r&&ge.disabled,a),style:l,"aria-disabled":r,children:[u&&m.jsx("span",{className:Ne(ge.icon,ge[n]),children:u}),m.jsxs("div",{className:ge.content,children:[e&&m.jsx(B,{className:Ne(ge.title,yt(ge,"title",s)),variant:s==="md"?"body-1":"caption-2",children:e}),t&&m.jsx(B,{className:Ne(ge.subtitle,yt(ge,"subtitle",s)),variant:s==="md"?"body-2":"caption-1",children:t})]})]})},Jt=({children:e})=>{const[t,n]=v.useState(null);return v.useEffect(()=>{let i=document.getElementById("portal-root");if(!i){const s=document.getElementById("theme-provider-scoped");if(!s){console.error(`[Portal] Не найден #theme-provider-scoped.
6
+ Добавь провайдер темы или создай его в HTML-шаблоне.`);return}i=document.createElement("div"),i.id="portal-root",s.appendChild(i)}n(i)},[]),t?Eo.createPortal(e,t):null},kl=M.css({position:"relative",zIndex:1}),Il=({children:e,className:t,...n})=>m.jsx(V,{className:M.cx(kl,t),...n,children:e}),Ll=M.keyframes`
6
7
  from {
7
8
  opacity: 0;
8
9
  }