@donkit-ai/design-system 1.1.0 → 1.1.2
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/index.cjs.js +3 -3
- package/dist/index.es.js +157 -152
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ae;function fe(){if(ae)return C;ae=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(c,n,a){var
|
|
9
|
+
*/var ae;function fe(){if(ae)return C;ae=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(c,n,a){var l=null;if(a!==void 0&&(l=""+a),n.key!==void 0&&(l=""+n.key),"key"in n){a={};for(var i in n)i!=="key"&&(a[i]=n[i])}else a=n;return n=a.ref,{$$typeof:t,type:c,key:l,ref:n!==void 0?n:null,props:a}}return C.Fragment=e,C.jsx=r,C.jsxs=r,C}var H={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var oe;function me(){return oe||(oe=1,process.env.NODE_ENV!=="production"&&function(){function t(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===L?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case T:return"Fragment";case A:return"Profiler";case $:return"StrictMode";case I:return"Suspense";case P:return"SuspenseList";case N:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case j:return"Portal";case w:return o.displayName||"Context";case p:return(o._context.displayName||"Context")+".Consumer";case S:var x=o.render;return o=o.displayName,o||(o=x.displayName||x.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case B:return x=o.displayName||null,x!==null?x:t(o.type)||"Memo";case Y:x=o._payload,o=o._init;try{return t(o(x))}catch{}}return null}function e(o){return""+o}function r(o){try{e(o);var x=!1}catch{x=!0}if(x){x=console;var y=x.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return y.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),e(o)}}function c(o){if(o===T)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===Y)return"<...>";try{var x=t(o);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function n(){var o=D.A;return o===null?null:o.getOwner()}function a(){return Error("react-stack-top-frame")}function
|
|
17
|
+
*/var oe;function me(){return oe||(oe=1,process.env.NODE_ENV!=="production"&&function(){function t(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===L?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case T:return"Fragment";case A:return"Profiler";case $:return"StrictMode";case I:return"Suspense";case P:return"SuspenseList";case N:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case j:return"Portal";case w:return o.displayName||"Context";case p:return(o._context.displayName||"Context")+".Consumer";case S:var x=o.render;return o=o.displayName,o||(o=x.displayName||x.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case B:return x=o.displayName||null,x!==null?x:t(o.type)||"Memo";case Y:x=o._payload,o=o._init;try{return t(o(x))}catch{}}return null}function e(o){return""+o}function r(o){try{e(o);var x=!1}catch{x=!0}if(x){x=console;var y=x.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return y.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),e(o)}}function c(o){if(o===T)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===Y)return"<...>";try{var x=t(o);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function n(){var o=D.A;return o===null?null:o.getOwner()}function a(){return Error("react-stack-top-frame")}function l(o){if(U.call(o,"key")){var x=Object.getOwnPropertyDescriptor(o,"key").get;if(x&&x.isReactWarning)return!1}return o.key!==void 0}function i(o,x){function y(){V||(V=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}y.isReactWarning=!0,Object.defineProperty(o,"key",{get:y,configurable:!0})}function b(){var o=t(this.type);return te[o]||(te[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function f(o,x,y,k,q,G){var R=y.ref;return o={$$typeof:_,type:o,key:x,props:y,_owner:k},(R!==void 0?R:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:b}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function d(o,x,y,k,q,G){var R=x.children;if(R!==void 0)if(k)if(ee(R)){for(k=0;k<R.length;k++)u(R[k]);Object.freeze&&Object.freeze(R)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(R);if(U.call(x,"key")){R=t(o);var F=Object.keys(x).filter(function(ue){return ue!=="key"});k=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",ne[R+k]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,k,R,F,R),ne[R+k]=!0)}if(R=null,y!==void 0&&(r(y),R=""+y),i(x)&&(r(x.key),R=""+x.key),"key"in x){y={};for(var J in x)J!=="key"&&(y[J]=x[J])}else y=x;return R&&l(y,typeof o=="function"?o.displayName||o.name||"Unknown":o),f(o,R,y,n(),q,G)}function u(o){v(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===Y&&(o._payload.status==="fulfilled"?v(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function v(o){return typeof o=="object"&&o!==null&&o.$$typeof===_}var h=m,_=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),D=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,ee=Array.isArray,M=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(o){return o()}};var V,te={},se=h.react_stack_bottom_frame.bind(h,a)(),re=M(c(a)),ne={};H.Fragment=T,H.jsx=function(o,x,y){var k=1e4>D.recentlyCreatedOwnerStacks++;return d(o,x,y,!1,k?Error("react-stack-top-frame"):se,k?M(c(o)):re)},H.jsxs=function(o,x,y){var k=1e4>D.recentlyCreatedOwnerStacks++;return d(o,x,y,!0,k?Error("react-stack-top-frame"):se,k?M(c(o)):re)}}()),H}process.env.NODE_ENV==="production"?K.exports=fe():K.exports=me();var s=K.exports;function le({children:t,variant:e="primary",size:r="m",fullWidth:c=!1,icon:n,disabled:a=!1,onClick:i,type:l="button",href:b,"aria-label":f,...d}){const u=n&&!t,v=["ds-button",`ds-button--${e}`,`ds-button--${r}`,c&&"ds-button--full",u&&"ds-button--icon-only"].filter(Boolean).join(" "),h=s.jsxs(s.Fragment,{children:[n&&!u&&s.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:n}),t,u&&s.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:n})]});if(b){const _=j=>{if(a){j.preventDefault();return}j.metaKey||j.ctrlKey||j.button===1||(j.preventDefault(),i==null||i(j))};return s.jsx("a",{className:v,href:a?void 0:b,onClick:_,"aria-label":f,"aria-disabled":a?"true":void 0,...d,children:h})}return s.jsx("button",{type:l,className:v,disabled:a,onClick:i,"aria-label":f,...d,children:h})}function pe({label:t,error:e,hint:r,fullWidth:c=!0,icon:n,iconRight:a,onIconRightClick:i,size:l="m",disabled:b,id:f,...d}){const u=f||`input-${m.useId()}`,v=r?`${u}-hint`:void 0,h=e?`${u}-error`:void 0,_=h||v;return s.jsxs("div",{className:`ds-input-wrapper ${c?"ds-input-wrapper--full":""} ${b?"ds-input-wrapper--disabled":""}`,children:[t&&s.jsx("label",{className:"ds-input-label",htmlFor:u,children:t}),s.jsxs("div",{className:"ds-input-container",children:[n&&s.jsx("span",{className:`ds-input-icon ds-input-icon--${l}`,"aria-hidden":"true",children:n}),s.jsx("input",{id:u,className:`ds-input ds-input--${l} ${n?"ds-input--with-icon":""} ${a?"ds-input--with-icon-right":""} ${e?"ds-input--error":""}`,disabled:b,"aria-invalid":e?"true":"false","aria-describedby":_,...d}),a&&s.jsx("button",{type:"button",className:`ds-input-icon-right ds-input-icon-right--${l}`,onClick:i,tabIndex:-1,"aria-label":"Toggle visibility",children:a})]}),r&&!e&&s.jsx("span",{id:v,className:"ds-input-hint",children:r}),e&&s.jsx("span",{id:h,className:"ds-input-error",role:"alert",children:e})]})}function be({label:t,error:e,hint:r,fullWidth:c=!0,size:n="m",disabled:a,id:i,resize:l=!0,rows:b=3,...f}){const d=i||`textarea-${m.useId()}`,u=r?`${d}-hint`:void 0,v=e?`${d}-error`:void 0,h=v||u;return s.jsxs("div",{className:`ds-textarea-wrapper ${c?"ds-textarea-wrapper--full":""} ${a?"ds-textarea-wrapper--disabled":""}`,children:[t&&s.jsx("label",{className:"ds-textarea-label",htmlFor:d,children:t}),s.jsx("textarea",{id:d,className:`ds-textarea ds-textarea--${n} ${e?"ds-textarea--error":""} ${l?"":"ds-textarea--no-resize"}`,disabled:a,"aria-invalid":e?"true":"false","aria-describedby":h,rows:b,...f}),r&&!e&&s.jsx("span",{id:u,className:"ds-textarea-hint",children:r}),e&&s.jsx("span",{id:v,className:"ds-textarea-error",role:"alert",children:e})]})}function he({label:t,value:e,onChange:r,options:c=[],placeholder:n="Select option",error:a,fullWidth:i=!0,size:l="m",disabled:b=!1,id:f,...d}){const[u,v]=m.useState(!1),[h,_]=m.useState({}),[j,T]=m.useState("down"),$=m.useRef(null),A=m.useRef(null),p=f||`select-${m.useId()}`,w=`${p}-label`,S=a?`${p}-error`:void 0,I=()=>{var V;const N=(V=$.current)==null?void 0:V.getBoundingClientRect();if(!N)return;const L=window.innerHeight,D=L-N.bottom,U=N.top,M=D<300&&U>D;T(M?"up":"down"),_(M?{bottom:L-N.top+4,left:N.left,width:N.width}:{top:N.bottom+4,left:N.left,width:N.width})};m.useEffect(()=>{if(u)return I(),window.addEventListener("scroll",I,!0),window.addEventListener("resize",I),()=>{window.removeEventListener("scroll",I,!0),window.removeEventListener("resize",I)}},[u]),m.useEffect(()=>{const N=L=>{$.current&&!$.current.contains(L.target)&&A.current&&!A.current.contains(L.target)&&v(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const P=c.find(N=>N.value===e),B=l==="xs"?g[1]:l==="small"?g[2]:g[3],Y=u&&s.jsx("div",{ref:A,role:"listbox","aria-labelledby":t?w:void 0,className:`ds-select-dropdown ds-select-dropdown--${l} ds-select-dropdown--${j}`,style:h,children:c.map(N=>s.jsx("button",{type:"button",role:"option","aria-selected":e===N.value,className:`ds-select-option ds-select-option--${l} ${e===N.value?"ds-select-option--selected":""}`,onClick:()=>{r==null||r(N.value),v(!1)},children:N.label},N.value))});return s.jsxs("div",{className:`ds-select-wrapper ${i?"ds-select-wrapper--full":""} ${b?"ds-select-wrapper--disabled":""}`,children:[t&&s.jsx("label",{id:w,className:"ds-select-label",children:t}),s.jsx("div",{className:"ds-select-container",ref:$,children:s.jsxs("button",{type:"button",id:p,role:"combobox","aria-haspopup":"listbox","aria-expanded":u,"aria-labelledby":t?w:void 0,"aria-invalid":a?"true":"false","aria-describedby":S,className:`ds-select-trigger ds-select-trigger--${l} ${a?"ds-select-trigger--error":""}`,onClick:()=>!b&&v(!u),disabled:b,...d,children:[s.jsx("span",{className:P?"":"ds-select-placeholder",children:(P==null?void 0:P.label)||n}),s.jsx(E.ChevronDown,{size:B,strokeWidth:1.5,className:`ds-select-icon ${u&&j==="down"?"ds-select-icon--open":""} ${u&&j==="up"?"ds-select-icon--up":""}`,"aria-hidden":"true"})]})}),a&&s.jsx("span",{id:S,className:"ds-select-error",role:"alert",children:a}),typeof document<"u"&&X.createPortal(Y,document.body)]})}function xe({label:t,value:e=0,onChange:r,min:c=0,max:n=100,step:a=1,size:i="m",disabled:l=!1,hint:b,error:f,...d}){const u=()=>{if(l)return;const $=Math.min(Number(e)+a,n);r==null||r($)},v=()=>{if(l)return;const $=Math.max(Number(e)-a,c);r==null||r($)},h=$=>{if(l)return;const A=$.target.value;if(A===""){r==null||r(c);return}const p=Number(A);if(!isNaN(p)){const w=Math.min(Math.max(p,c),n);r==null||r(w)}},_=["ds-stepper-wrapper",l&&"ds-stepper-wrapper--disabled",f&&"ds-stepper-wrapper--error"].filter(Boolean).join(" "),j=["ds-stepper",`ds-stepper--${i}`,l&&"ds-stepper--disabled"].filter(Boolean).join(" "),T=i==="xs"?g[1]:i==="small"?g[2]:g[3];return s.jsxs("div",{className:_,children:[t&&s.jsx("label",{className:"ds-stepper-label",children:t}),s.jsxs("div",{className:j,children:[s.jsx("button",{type:"button",className:"ds-stepper-button ds-stepper-button--minus",onClick:v,disabled:l||e<=c,"aria-label":"Decrease",children:s.jsx(E.Minus,{size:T,strokeWidth:1.5})}),s.jsx("input",{type:"number",className:"ds-stepper-input",value:e,onChange:h,min:c,max:n,step:a,disabled:l,...d}),s.jsx("button",{type:"button",className:"ds-stepper-button ds-stepper-button--plus",onClick:u,disabled:l||e>=n,"aria-label":"Increase",children:s.jsx(E.Plus,{size:T,strokeWidth:1.5})})]}),b&&!f&&s.jsx("div",{className:"ds-stepper-hint",children:b}),f&&s.jsx("div",{className:"ds-stepper-error",children:f})]})}function ve({children:t,padding:e="m",variant:r="info",hover:c=!1,onClick:n,href:a,disabled:i=!1,...l}){const f=(c?"interactive":r)==="interactive"||n||a,d=["ds-card",`ds-card--${e}`,f&&"ds-card--interactive"].filter(Boolean).join(" ");if(a){const h=_=>{if(i){_.preventDefault();return}_.metaKey||_.ctrlKey||_.button===1||(_.preventDefault(),n==null||n(_))};return s.jsx("a",{className:d,href:i?void 0:a,onClick:h,"aria-disabled":i?"true":void 0,...l,children:t})}const u=f&&n?"button":"div",v=f&&n?{type:"button",onClick:n,disabled:i}:{};return s.jsx(u,{className:d,role:f&&!n?"article":void 0,...v,...l,children:t})}function je({children:t,...e}){return s.jsx("h1",{className:"ds-h1",...e,children:t})}function _e({children:t,...e}){return s.jsx("h2",{className:"ds-h2",...e,children:t})}function we({children:t,...e}){return s.jsx("h3",{className:"ds-h3",...e,children:t})}function Ne({children:t,...e}){return s.jsx("h4",{className:"ds-h4",...e,children:t})}function ye({children:t,secondary:e=!1,...r}){return s.jsx("p",{className:`ds-p1 ${e?"ds-p1--secondary":""}`,...r,children:t})}function Ee({children:t,secondary:e=!1,...r}){return s.jsx("p",{className:`ds-p2 ${e?"ds-p2--secondary":""}`,...r,children:t})}function ke({children:t,secondary:e=!1,...r}){return s.jsx("p",{className:`ds-p3 ${e?"ds-p3--secondary":""}`,...r,children:t})}function Re({children:t,variant:e="default",size:r="m",role:c,...n}){const a=["ds-badge",`ds-badge--${e}`,`ds-badge--${r}`].filter(Boolean).join(" "),i=c||(["info","success","warning","error"].includes(e)?"status":void 0);return s.jsx("span",{className:a,role:i,...n,children:t})}const Te={info:E.Info,success:E.CheckCircle,warning:E.AlertTriangle,error:E.XCircle};function $e({children:t,variant:e="info",title:r,onClose:c,role:n,...a}){const i=Te[e],l=n||(e==="error"?"alert":"status");return s.jsxs("div",{className:`ds-alert ds-alert--${e} ${r?"":"ds-alert--no-title"}`,role:l,...a,children:[i&&s.jsx("div",{className:"ds-alert__icon",children:s.jsx(i,{size:g[3],strokeWidth:1.5})}),s.jsxs("div",{className:"ds-alert__content",children:[r&&s.jsx("div",{className:"ds-alert__title",children:r}),t&&s.jsx("div",{className:"ds-alert__message",children:t})]}),c&&s.jsx("button",{type:"button",className:"ds-alert__close",onClick:c,"aria-label":"Close alert",children:s.jsx(E.X,{size:g[3],strokeWidth:1.5})})]})}function Se({children:t,title:e,onClose:r,size:c="m",...n}){const a=m.useRef(null),i=m.useId();m.useEffect(()=>{const d=v=>{v.key==="Escape"&&(r==null||r())},u=v=>{a.current&&!a.current.contains(v.target)&&(r==null||r())};return document.addEventListener("keydown",d),document.addEventListener("mousedown",u),()=>{document.removeEventListener("keydown",d),document.removeEventListener("mousedown",u)}},[r]);const l=m.Children.toArray(t),b=l.find(d=>(d==null?void 0:d.type)===Z),f=l.filter(d=>(d==null?void 0:d.type)!==Z);return s.jsx("div",{className:"ds-modal-overlay",...n,children:s.jsxs("div",{className:`ds-modal ds-modal--${c}`,ref:a,role:"dialog","aria-modal":"true","aria-labelledby":e?i:void 0,children:[(e||r)&&s.jsxs("div",{className:"ds-modal__header",children:[e&&s.jsx("h3",{id:i,className:"ds-modal__title",children:e}),r&&s.jsx(le,{variant:"ghost",size:"small",icon:s.jsx(E.X,{size:g[2],strokeWidth:1.5}),onClick:r,"aria-label":"Close modal"})]}),s.jsx("div",{className:"ds-modal__body",children:f}),b]})})}function Z({children:t}){return s.jsx("div",{className:"ds-modal__footer",children:t})}function ie({children:t,title:e="Code",defaultExpanded:r=!1,expanded:c,onToggle:n,padding:a="s",className:i="",...l}){const[b,f]=m.useState(r),d=c!==void 0,u=d?c:b,v=()=>{d?n==null||n(!c):f(_=>!_)},h=["ds-code-accordion",`ds-code-accordion--${a}`,i].filter(Boolean).join(" ");return s.jsxs("div",{className:h,...l,children:[s.jsxs("button",{type:"button",className:"ds-code-accordion__header",onClick:v,"aria-expanded":u,children:[s.jsx("span",{className:"ds-code-accordion__title",children:e}),s.jsx(E.ChevronDown,{size:g[2],strokeWidth:1.5,className:`ds-code-accordion__icon ${u?"ds-code-accordion__icon--expanded":""}`})]}),u&&s.jsx("pre",{className:"ds-code-accordion__content",children:s.jsx("code",{children:t})})]})}function ge({children:t,block:e=!1,collapsible:r=!1,title:c="Code",defaultExpanded:n=!1,...a}){return e?r?s.jsx(ie,{title:c,defaultExpanded:n,...a,children:t}):s.jsx("pre",{className:"ds-code-block",...a,children:s.jsx("code",{children:t})}):s.jsx("code",{className:"ds-code-inline",...a,children:t})}function Ae({href:t,children:e,onClick:r,target:c,rel:n,...a}){const l=c==="_blank"?n?`${n} noopener noreferrer`:"noopener noreferrer":n;return s.jsx("a",{href:t,className:"ds-link",onClick:r,target:c,rel:l,...a,children:e})}function Ie({children:t,size:e="m",variant:r="ghost",...c}){return s.jsx("div",{className:"ds-tabs",role:"tablist",...c,children:m.Children.map(t,n=>m.isValidElement(n)?m.cloneElement(n,{size:e,variant:r}):n)})}function Pe({children:t,selected:e=!1,onClick:r,size:c="m",variant:n="ghost",disabled:a=!1,icon:i,href:l,...b}){const f=i&&!t,d=["ds-tab",`ds-tab--${c}`,`ds-tab--${n}`,e&&"ds-tab--selected",f&&"ds-tab--icon-only"].filter(Boolean).join(" "),u=s.jsxs(s.Fragment,{children:[i&&s.jsx("span",{className:"ds-tab-icon",children:i}),t]});if(l){const v=h=>{if(a){h.preventDefault();return}h.metaKey||h.ctrlKey||h.button===1||(h.preventDefault(),r==null||r(h))};return s.jsx("a",{role:"tab","aria-current":e?"page":void 0,"aria-disabled":a?"true":void 0,className:d,href:a?void 0:l,onClick:v,...b,children:u})}return s.jsx("button",{role:"tab","aria-selected":e,className:d,onClick:r,disabled:a,...b,children:u})}function Oe({children:t,title:e,defaultExpanded:r=!1,expanded:c,onToggle:n,padding:a="m",...i}){const[l,b]=m.useState(r),f=c!==void 0,d=f?c:l,u=()=>{f?n==null||n(!c):b(h=>!h)},v=["ds-accordion",`ds-accordion--${a}`].filter(Boolean).join(" ");return s.jsxs("div",{className:v,...i,children:[s.jsxs("button",{type:"button",className:"ds-accordion__header",onClick:u,"aria-expanded":d,children:[s.jsx("span",{className:"ds-accordion__title",children:e}),s.jsx(E.ChevronDown,{size:g[2],strokeWidth:1.5,className:`ds-accordion__icon ${d?"ds-accordion__icon--expanded":""}`})]}),d&&s.jsx("div",{className:"ds-accordion__content",children:t})]})}const O=8,W=8;function Le(t,e,r){const c=window.innerWidth;let n,a;switch(t){case"top":n=e.top-r.height-O,a=e.left+e.width/2-r.width/2;break;case"bottom":n=e.bottom+O,a=e.left+e.width/2-r.width/2;break;case"left":n=e.top+e.height/2-r.height/2,a=e.left-r.width-O;break;case"right":n=e.top+e.height/2-r.height/2,a=e.right+O;break;default:n=e.bottom+O,a=e.left}const i=Math.max(W,Math.min(c-r.width-W,a)),l=a-i;return{top:n,left:i,arrowOffset:l}}function Be(t,e,r){const c=window.innerWidth,n=window.innerHeight;if(t.top>=e+O+W)return"top";if(n-t.bottom>=e+O+W)return"bottom";if(c-t.right>=r+O+W)return"right";if(t.left>=r+O+W)return"left";const a=Math.max(t.top,n-t.bottom,t.left,c-t.right);return a===t.top?"top":a===n-t.bottom?"bottom":a===c-t.right?"right":"left"}function De({children:t,content:e,position:r,...c}){const[n,a]=m.useState(!1),[i,l]=m.useState({visibility:"hidden"}),[b,f]=m.useState(r||"top"),d=m.useRef(null),u=m.useRef(null),v=m.useRef(!1),h=()=>{if(!d.current||!u.current)return;const j=d.current.getBoundingClientRect(),T=u.current.getBoundingClientRect(),$=r||Be(j,T.height,T.width),{top:A,left:p,arrowOffset:w}=Le($,j,T);f($),l({position:"fixed",top:A,left:p,visibility:"visible","--arrow-offset":`${w}px`})};if(m.useEffect(()=>{if(!n)return;l({position:"fixed",visibility:"hidden"});const j=requestAnimationFrame(h);return window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{cancelAnimationFrame(j),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[n,r]),m.useEffect(()=>{if(!n)return;const j=T=>{d.current&&!d.current.contains(T.target)&&a(!1)};return document.addEventListener("touchstart",j),()=>document.removeEventListener("touchstart",j)},[n]),!e)return t;const _=n&&s.jsx("div",{ref:u,className:`ds-tooltip ds-tooltip--${b}`,role:"tooltip",style:i,children:e});return s.jsxs("div",{ref:d,className:"ds-tooltip-wrapper",onMouseEnter:()=>{v.current||a(!0)},onMouseLeave:()=>{v.current||a(!1)},onTouchStart:()=>{v.current=!0,a(j=>!j)},...c,children:[t,typeof document<"u"&&X.createPortal(_,document.body)]})}function Me({checked:t=!1,onChange:e,size:r="m",disabled:c=!1,label:n,id:a,...i}){const l=a||`toggle-${m.useId()}`,b=["ds-toggle",`ds-toggle--${r}`,c&&"ds-toggle--disabled"].filter(Boolean).join(" ");return s.jsxs("label",{className:b,htmlFor:l,children:[s.jsx("input",{type:"checkbox",id:l,className:"ds-toggle__input",checked:t,onChange:f=>e==null?void 0:e(f.target.checked),disabled:c,...i}),s.jsx("span",{className:"ds-toggle__track",children:s.jsx("span",{className:"ds-toggle__thumb"})}),n&&s.jsx("span",{className:"ds-toggle__label",children:n})]})}function Fe({checked:t=!1,onChange:e,size:r="m",disabled:c=!1,label:n,id:a,...i}){const l=a||`checkbox-${m.useId()}`,b=["ds-checkbox",`ds-checkbox--${r}`,c&&"ds-checkbox--disabled"].filter(Boolean).join(" "),f=r==="xs"?10:r==="small"?14:r==="large"?20:16;return s.jsxs("label",{className:b,htmlFor:l,children:[s.jsx("input",{type:"checkbox",id:l,className:"ds-checkbox__input",checked:t,onChange:d=>e==null?void 0:e(d.target.checked),disabled:c,...i}),s.jsx("span",{className:"ds-checkbox__box",children:t&&s.jsx(E.Check,{size:f,strokeWidth:2.5,className:"ds-checkbox__icon"})}),n&&s.jsx("span",{className:"ds-checkbox__label",children:n})]})}function We({checked:t=!1,onChange:e,size:r="m",disabled:c=!1,label:n,name:a,value:i,id:l,...b}){const f=l||`radio-${m.useId()}`,d=["ds-radio",`ds-radio--${r}`,c&&"ds-radio--disabled"].filter(Boolean).join(" ");return s.jsxs("label",{className:d,htmlFor:f,children:[s.jsx("input",{type:"radio",id:f,className:"ds-radio__input",checked:t,onChange:u=>e==null?void 0:e(u.target.checked),disabled:c,name:a,value:i,...b}),s.jsx("span",{className:"ds-radio__circle",children:s.jsx("span",{className:"ds-radio__dot"})}),n&&s.jsx("span",{className:"ds-radio__label",children:n})]})}function ze({size:t="m",color:e="default",className:r="",...c}){return s.jsx("span",{className:["ds-spinner",`ds-spinner--${t}`,`ds-spinner--${e}`,r].filter(Boolean).join(" "),role:"status","aria-label":"Loading",...c})}function Ye({width:t,height:e,shape:r="rect",className:c="",style:n={},...a}){return s.jsx("span",{className:["ds-skeleton",`ds-skeleton--${r}`,c].filter(Boolean).join(" "),style:{width:t,height:e,...n},"aria-hidden":"true",...a})}function Ve(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619)>>>0;return e%360}function Ce(t){if(!t)return"";const e=t.trim().split(/\s+/);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():t[0].toUpperCase()}function He({seed:t,icon:e,src:r,size:c=32,className:n="",style:a={},...i}){const l=Ve(t??""),[b,f]=m.useState(!1),d=e??s.jsx("span",{className:"ds-avatar__initials",children:Ce(t)});return s.jsx("div",{className:["ds-avatar",n].filter(Boolean).join(" "),style:{width:c,height:c,"--ds-avatar-h":l,...a},"aria-hidden":"true",...i,children:r&&!b?s.jsx("img",{src:r,alt:"",onError:()=>f(!0)}):d})}function Ue({children:t,size:e="compact",stickyTop:r,maxHeight:c,className:n="",style:a={},...i}){const l={...c?{maxHeight:c}:{},...r!==void 0?{"--ds-table-sticky-top":typeof r=="number"?`${r}px`:r}:{},...a};return s.jsx("div",{className:["ds-table-wrap",c?"ds-table-wrap--scroll":""].filter(Boolean).join(" "),style:l,children:s.jsx("table",{className:["ds-table",`ds-table--${e}`,n].filter(Boolean).join(" "),...i,children:t})})}function qe({children:t,...e}){return s.jsx("thead",{...e,children:t})}function Xe({children:t,...e}){return s.jsx("tbody",{...e,children:t})}function Ge({children:t,interactive:e,selected:r,className:c="",onClick:n,...a}){return s.jsx("tr",{className:["ds-table-row",e||n?"ds-table-row--interactive":"",r?"ds-table-row--selected":"",c].filter(Boolean).join(" "),onClick:n,...a,children:t})}function Je({children:t,align:e="left",sortDir:r,onSort:c,width:n,className:a="",style:i={},...l}){const b=!!c||r!==void 0,f=r==="asc"?E.ChevronUp:r==="desc"?E.ChevronDown:E.ChevronsUpDown;return s.jsx("th",{className:["ds-th",b?"ds-th--sortable":"",r?"ds-th--sorted":"",e!=="left"?`ds-table-cell--${e}`:"",a].filter(Boolean).join(" "),onClick:c,style:{width:n,...i},...l,children:b?s.jsxs("span",{className:"ds-th__inner",children:[t,s.jsx("span",{className:"ds-th__sort-icon",children:s.jsx(f,{size:11,strokeWidth:2.5})})]}):t})}function Ke({children:t,align:e="left",secondary:r,muted:c,truncate:n,nowrap:a,className:i="",...l}){return s.jsx("td",{className:["ds-td",e!=="left"?`ds-table-cell--${e}`:"",r?"ds-table-cell--secondary":"",c?"ds-table-cell--muted":"",n?"ds-table-cell--truncate":"",a?"ds-table-cell--nowrap":"",i].filter(Boolean).join(" "),...l,children:t})}function Ze({icon:t,title:e,description:r,action:c,size:n="m",className:a="",...i}){return s.jsxs("div",{className:["ds-empty-state",`ds-empty-state--${n}`,a].filter(Boolean).join(" "),...i,children:[t&&s.jsx("div",{className:"ds-empty-state__icon",children:t}),s.jsx("div",{className:"ds-empty-state__title",children:e}),r&&s.jsx("div",{className:"ds-empty-state__description",children:r}),c&&s.jsx("div",{className:"ds-empty-state__action",children:c})]})}function Qe({trigger:t,items:e=[],open:r,onOpenChange:c,align:n="left",className:a="",style:i,...l}){const[b,f]=m.useState(!1),d=r!==void 0,u=d?r:b,v=m.useRef(null),h=m.useRef(null),[_,j]=m.useState({}),T=()=>{d?c==null||c(!1):f(!1)},$=()=>{const p=!u;d?c==null||c(p):f(p)};m.useEffect(()=>{if(!u)return;const p=()=>{var S;const w=(S=v.current)==null?void 0:S.getBoundingClientRect();w&&j(n==="right"?{top:w.bottom+4,right:window.innerWidth-w.right}:{top:w.bottom+4,left:w.left})};return p(),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p),()=>{window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p)}},[u,n]),m.useEffect(()=>{if(!u)return;const p=S=>{var I,P;!((I=v.current)!=null&&I.contains(S.target))&&!((P=h.current)!=null&&P.contains(S.target))&&T()},w=S=>{S.key==="Escape"&&T()};return document.addEventListener("mousedown",p),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("keydown",w)}},[u]);const A=u&&s.jsx("div",{ref:h,className:["ds-dropdown__menu",`ds-dropdown__menu--${n}`].join(" "),style:_,children:e.map((p,w)=>{if(p.separator)return s.jsx("div",{className:"ds-dropdown__separator"},w);if(p.type==="section")return s.jsxs("div",{className:"ds-dropdown__section",children:[p.label&&s.jsx("div",{className:"ds-dropdown__section-label",children:p.label}),s.jsx("div",{className:"ds-dropdown__section-content",children:p.content})]},w);const S=!!p.href,I=S?"a":"button",P=S?{href:p.disabled?void 0:p.href,"aria-disabled":p.disabled?"true":void 0}:{type:"button",disabled:p.disabled};return s.jsxs(I,{className:["ds-dropdown__item",p.danger&&"ds-dropdown__item--danger"].filter(Boolean).join(" "),...P,onClick:()=>{var B;(B=p.onClick)==null||B.call(p),T()},children:[p.icon&&s.jsx("span",{className:"ds-dropdown__item-icon",children:p.icon}),s.jsx("span",{className:"ds-dropdown__item-label",children:p.label}),p.shortcut&&s.jsx("span",{className:"ds-dropdown__item-shortcut",children:p.shortcut})]},w)})});return s.jsxs("div",{ref:v,className:["ds-dropdown",a].filter(Boolean).join(" "),style:i,...l,children:[s.jsx("div",{className:"ds-dropdown__trigger",onClick:$,children:t}),typeof document<"u"&&X.createPortal(A,document.body)]})}const ce={default:E.Info,success:E.CheckCircle,warning:E.AlertTriangle,error:E.XCircle};let z=[];const Q=new Set;function de(){Q.forEach(t=>t([...z]))}function et(t){z=[...z,t],de()}function tt(t){z=z.filter(e=>e.id!==t),de()}function st(){const t=(e,r={})=>{et({id:`${Date.now()}-${Math.random()}`,message:e,type:"default",duration:4e3,...r})};return t.success=(e,r)=>t(e,{...r,type:"success"}),t.error=(e,r)=>t(e,{...r,type:"error"}),t.warning=(e,r)=>t(e,{...r,type:"warning"}),{toast:t}}function rt({data:t,onDismiss:e}){const[r,c]=m.useState(!1),n=m.useRef(null);m.useEffect(()=>(requestAnimationFrame(()=>c(!0)),t.duration>0&&(n.current=setTimeout(()=>a(),t.duration)),()=>clearTimeout(n.current)),[]);function a(){c(!1),setTimeout(()=>e(t.id),250)}const i=ce[t.type]??ce.default;return s.jsxs("div",{className:["ds-toast",`ds-toast--${t.type}`,r&&"ds-toast--visible"].filter(Boolean).join(" "),role:t.type==="error"?"alert":"status","aria-live":"polite",children:[s.jsx("div",{className:"ds-toast__icon",children:s.jsx(i,{size:g[3],strokeWidth:1.5})}),s.jsx("span",{className:"ds-toast__message",children:t.message}),s.jsx("button",{className:"ds-toast__close",onClick:a,"aria-label":"Закрыть",children:s.jsx(E.X,{size:g[3],strokeWidth:1.5})})]})}function nt({position:t="bottom-right"}){const[e,r]=m.useState(()=>[...z]);return m.useEffect(()=>(Q.add(r),()=>Q.delete(r)),[]),!e.length||typeof document>"u"?null:X.createPortal(s.jsx("div",{className:["ds-toast-container",`ds-toast-container--${t}`].join(" "),children:e.map(c=>s.jsx(rt,{data:c,onDismiss:tt},c.id))}),document.body)}exports.Accordion=Oe;exports.Alert=$e;exports.Avatar=He;exports.Badge=Re;exports.Button=le;exports.Card=ve;exports.Checkbox=Fe;exports.Code=ge;exports.CodeAccordion=ie;exports.Dropdown=Qe;exports.EmptyState=Ze;exports.H1=je;exports.H2=_e;exports.H3=we;exports.H4=Ne;exports.Input=pe;exports.Link=Ae;exports.Modal=Se;exports.ModalFooter=Z;exports.P1=ye;exports.P2=Ee;exports.P3=ke;exports.Radio=We;exports.Select=he;exports.Skeleton=Ye;exports.Spinner=ze;exports.Stepper=xe;exports.Tab=Pe;exports.Table=Ue;exports.TableBody=Xe;exports.TableHead=qe;exports.TableRow=Ge;exports.Tabs=Ie;exports.Td=Ke;exports.Textarea=be;exports.Th=Je;exports.ToastContainer=nt;exports.Toggle=Me;exports.Tooltip=De;exports.iconSizes=g;exports.useToast=st;
|
|
22
|
+
<%s key={someKey} {...props} />`,k,R,F,R),ne[R+k]=!0)}if(R=null,y!==void 0&&(r(y),R=""+y),l(x)&&(r(x.key),R=""+x.key),"key"in x){y={};for(var J in x)J!=="key"&&(y[J]=x[J])}else y=x;return R&&i(y,typeof o=="function"?o.displayName||o.name||"Unknown":o),f(o,R,y,n(),q,G)}function u(o){v(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===Y&&(o._payload.status==="fulfilled"?v(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function v(o){return typeof o=="object"&&o!==null&&o.$$typeof===_}var h=m,_=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),D=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,ee=Array.isArray,M=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(o){return o()}};var V,te={},se=h.react_stack_bottom_frame.bind(h,a)(),re=M(c(a)),ne={};H.Fragment=T,H.jsx=function(o,x,y){var k=1e4>D.recentlyCreatedOwnerStacks++;return d(o,x,y,!1,k?Error("react-stack-top-frame"):se,k?M(c(o)):re)},H.jsxs=function(o,x,y){var k=1e4>D.recentlyCreatedOwnerStacks++;return d(o,x,y,!0,k?Error("react-stack-top-frame"):se,k?M(c(o)):re)}}()),H}process.env.NODE_ENV==="production"?K.exports=fe():K.exports=me();var s=K.exports;function le({children:t,variant:e="primary",size:r="m",fullWidth:c=!1,icon:n,disabled:a=!1,onClick:l,type:i="button",href:b,"aria-label":f,...d}){const u=n&&!t,v=["ds-button",`ds-button--${e}`,`ds-button--${r}`,c&&"ds-button--full",u&&"ds-button--icon-only"].filter(Boolean).join(" "),h=s.jsxs(s.Fragment,{children:[n&&!u&&s.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:n}),t,u&&s.jsx("span",{className:"ds-button__icon","aria-hidden":"true",children:n})]});if(b){const _=j=>{if(a){j.preventDefault();return}j.metaKey||j.ctrlKey||j.button===1||(j.preventDefault(),l==null||l(j))};return s.jsx("a",{className:v,href:a?void 0:b,onClick:_,"aria-label":f,"aria-disabled":a?"true":void 0,...d,children:h})}return s.jsx("button",{type:i,className:v,disabled:a,onClick:l,"aria-label":f,...d,children:h})}function pe({label:t,error:e,hint:r,fullWidth:c=!0,icon:n,iconRight:a,onIconRightClick:l,size:i="m",disabled:b,id:f,...d}){const u=f||`input-${m.useId()}`,v=r?`${u}-hint`:void 0,h=e?`${u}-error`:void 0,_=h||v;return s.jsxs("div",{className:`ds-input-wrapper ${c?"ds-input-wrapper--full":""} ${b?"ds-input-wrapper--disabled":""}`,children:[t&&s.jsx("label",{className:"ds-input-label",htmlFor:u,children:t}),s.jsxs("div",{className:"ds-input-container",children:[n&&s.jsx("span",{className:`ds-input-icon ds-input-icon--${i}`,"aria-hidden":"true",children:n}),s.jsx("input",{id:u,className:`ds-input ds-input--${i} ${n?"ds-input--with-icon":""} ${a?"ds-input--with-icon-right":""} ${e?"ds-input--error":""}`,disabled:b,"aria-invalid":e?"true":"false","aria-describedby":_,...d}),a&&s.jsx("button",{type:"button",className:`ds-input-icon-right ds-input-icon-right--${i}`,onClick:l,tabIndex:-1,"aria-label":"Toggle visibility",children:a})]}),r&&!e&&s.jsx("span",{id:v,className:"ds-input-hint",children:r}),e&&s.jsx("span",{id:h,className:"ds-input-error",role:"alert",children:e})]})}function be({label:t,error:e,hint:r,fullWidth:c=!0,size:n="m",disabled:a,id:l,resize:i=!0,rows:b=3,...f}){const d=l||`textarea-${m.useId()}`,u=r?`${d}-hint`:void 0,v=e?`${d}-error`:void 0,h=v||u;return s.jsxs("div",{className:`ds-textarea-wrapper ${c?"ds-textarea-wrapper--full":""} ${a?"ds-textarea-wrapper--disabled":""}`,children:[t&&s.jsx("label",{className:"ds-textarea-label",htmlFor:d,children:t}),s.jsx("textarea",{id:d,className:`ds-textarea ds-textarea--${n} ${e?"ds-textarea--error":""} ${i?"":"ds-textarea--no-resize"}`,disabled:a,"aria-invalid":e?"true":"false","aria-describedby":h,rows:b,...f}),r&&!e&&s.jsx("span",{id:u,className:"ds-textarea-hint",children:r}),e&&s.jsx("span",{id:v,className:"ds-textarea-error",role:"alert",children:e})]})}function he({label:t,value:e,onChange:r,options:c=[],placeholder:n="Select option",error:a,fullWidth:l=!0,size:i="m",disabled:b=!1,id:f,...d}){const[u,v]=m.useState(!1),[h,_]=m.useState({}),[j,T]=m.useState("down"),$=m.useRef(null),A=m.useRef(null),p=f||`select-${m.useId()}`,w=`${p}-label`,S=a?`${p}-error`:void 0,I=()=>{var V;const N=(V=$.current)==null?void 0:V.getBoundingClientRect();if(!N)return;const L=window.innerHeight,D=L-N.bottom,U=N.top,M=D<300&&U>D;T(M?"up":"down"),_(M?{bottom:L-N.top+4,left:N.left,width:N.width}:{top:N.bottom+4,left:N.left,width:N.width})};m.useEffect(()=>{if(u)return I(),window.addEventListener("scroll",I,!0),window.addEventListener("resize",I),()=>{window.removeEventListener("scroll",I,!0),window.removeEventListener("resize",I)}},[u]),m.useEffect(()=>{const N=L=>{$.current&&!$.current.contains(L.target)&&A.current&&!A.current.contains(L.target)&&v(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const P=c.find(N=>N.value===e),B=i==="xs"?g[1]:i==="small"?g[2]:g[3],Y=u&&s.jsx("div",{ref:A,role:"listbox","aria-labelledby":t?w:void 0,className:`ds-select-dropdown ds-select-dropdown--${i} ds-select-dropdown--${j}`,style:h,children:c.map(N=>s.jsx("button",{type:"button",role:"option","aria-selected":e===N.value,className:`ds-select-option ds-select-option--${i} ${e===N.value?"ds-select-option--selected":""}`,onClick:()=>{r==null||r(N.value),v(!1)},children:N.label},N.value))});return s.jsxs("div",{className:`ds-select-wrapper ${l?"ds-select-wrapper--full":""} ${b?"ds-select-wrapper--disabled":""}`,children:[t&&s.jsx("label",{id:w,className:"ds-select-label",children:t}),s.jsx("div",{className:"ds-select-container",ref:$,children:s.jsxs("button",{type:"button",id:p,role:"combobox","aria-haspopup":"listbox","aria-expanded":u,"aria-labelledby":t?w:void 0,"aria-invalid":a?"true":"false","aria-describedby":S,className:`ds-select-trigger ds-select-trigger--${i} ${a?"ds-select-trigger--error":""}`,onClick:()=>!b&&v(!u),disabled:b,...d,children:[s.jsx("span",{className:P?"":"ds-select-placeholder",children:(P==null?void 0:P.label)||n}),s.jsx(E.ChevronDown,{size:B,strokeWidth:1.5,className:`ds-select-icon ${u&&j==="down"?"ds-select-icon--open":""} ${u&&j==="up"?"ds-select-icon--up":""}`,"aria-hidden":"true"})]})}),a&&s.jsx("span",{id:S,className:"ds-select-error",role:"alert",children:a}),typeof document<"u"&&X.createPortal(Y,document.body)]})}function xe({label:t,value:e=0,onChange:r,min:c=0,max:n=100,step:a=1,size:l="m",disabled:i=!1,hint:b,error:f,...d}){const u=()=>{if(i)return;const $=Math.min(Number(e)+a,n);r==null||r($)},v=()=>{if(i)return;const $=Math.max(Number(e)-a,c);r==null||r($)},h=$=>{if(i)return;const A=$.target.value;if(A===""){r==null||r(c);return}const p=Number(A);if(!isNaN(p)){const w=Math.min(Math.max(p,c),n);r==null||r(w)}},_=["ds-stepper-wrapper",i&&"ds-stepper-wrapper--disabled",f&&"ds-stepper-wrapper--error"].filter(Boolean).join(" "),j=["ds-stepper",`ds-stepper--${l}`,i&&"ds-stepper--disabled"].filter(Boolean).join(" "),T=l==="xs"?g[1]:l==="small"?g[2]:g[3];return s.jsxs("div",{className:_,children:[t&&s.jsx("label",{className:"ds-stepper-label",children:t}),s.jsxs("div",{className:j,children:[s.jsx("button",{type:"button",className:"ds-stepper-button ds-stepper-button--minus",onClick:v,disabled:i||e<=c,"aria-label":"Decrease",children:s.jsx(E.Minus,{size:T,strokeWidth:1.5})}),s.jsx("input",{type:"number",className:"ds-stepper-input",value:e,onChange:h,min:c,max:n,step:a,disabled:i,...d}),s.jsx("button",{type:"button",className:"ds-stepper-button ds-stepper-button--plus",onClick:u,disabled:i||e>=n,"aria-label":"Increase",children:s.jsx(E.Plus,{size:T,strokeWidth:1.5})})]}),b&&!f&&s.jsx("div",{className:"ds-stepper-hint",children:b}),f&&s.jsx("div",{className:"ds-stepper-error",children:f})]})}function ve({children:t,padding:e="m",variant:r="info",hover:c=!1,onClick:n,href:a,disabled:l=!1,...i}){const f=(c?"interactive":r)==="interactive"||n||a,d=["ds-card",`ds-card--${e}`,f&&"ds-card--interactive"].filter(Boolean).join(" ");if(a){const h=_=>{if(l){_.preventDefault();return}_.metaKey||_.ctrlKey||_.button===1||(_.preventDefault(),n==null||n(_))};return s.jsx("a",{className:d,href:l?void 0:a,onClick:h,"aria-disabled":l?"true":void 0,...i,children:t})}const u=f&&n?"button":"div",v=f&&n?{type:"button",onClick:n,disabled:l}:{};return s.jsx(u,{className:d,role:f&&!n?"article":void 0,...v,...i,children:t})}function je({children:t,...e}){return s.jsx("h1",{className:"ds-h1",...e,children:t})}function _e({children:t,...e}){return s.jsx("h2",{className:"ds-h2",...e,children:t})}function we({children:t,...e}){return s.jsx("h3",{className:"ds-h3",...e,children:t})}function Ne({children:t,...e}){return s.jsx("h4",{className:"ds-h4",...e,children:t})}function ye({children:t,secondary:e=!1,...r}){return s.jsx("p",{className:`ds-p1 ${e?"ds-p1--secondary":""}`,...r,children:t})}function Ee({children:t,secondary:e=!1,...r}){return s.jsx("p",{className:`ds-p2 ${e?"ds-p2--secondary":""}`,...r,children:t})}function ke({children:t,secondary:e=!1,...r}){return s.jsx("p",{className:`ds-p3 ${e?"ds-p3--secondary":""}`,...r,children:t})}function Re({children:t,variant:e="default",size:r="m",role:c,...n}){const a=["ds-badge",`ds-badge--${e}`,`ds-badge--${r}`].filter(Boolean).join(" "),l=c||(["info","success","warning","error"].includes(e)?"status":void 0);return s.jsx("span",{className:a,role:l,...n,children:t})}const Te={info:E.Info,success:E.CheckCircle,warning:E.AlertTriangle,error:E.XCircle};function $e({children:t,variant:e="info",title:r,onClose:c,role:n,...a}){const l=Te[e],i=n||(e==="error"?"alert":"status");return s.jsxs("div",{className:`ds-alert ds-alert--${e} ${r?"":"ds-alert--no-title"}`,role:i,...a,children:[l&&s.jsx("div",{className:"ds-alert__icon",children:s.jsx(l,{size:g[3],strokeWidth:1.5})}),s.jsxs("div",{className:"ds-alert__content",children:[r&&s.jsx("div",{className:"ds-alert__title",children:r}),t&&s.jsx("div",{className:"ds-alert__message",children:t})]}),c&&s.jsx("button",{type:"button",className:"ds-alert__close",onClick:c,"aria-label":"Close alert",children:s.jsx(E.X,{size:g[3],strokeWidth:1.5})})]})}function Se({children:t,title:e,onClose:r,size:c="m",...n}){const a=m.useRef(null),l=m.useId();m.useEffect(()=>{const d=v=>{v.key==="Escape"&&(r==null||r())},u=v=>{a.current&&!a.current.contains(v.target)&&(r==null||r())};return document.addEventListener("keydown",d),document.addEventListener("mousedown",u),()=>{document.removeEventListener("keydown",d),document.removeEventListener("mousedown",u)}},[r]);const i=m.Children.toArray(t),b=i.find(d=>(d==null?void 0:d.type)===Z),f=i.filter(d=>(d==null?void 0:d.type)!==Z);return s.jsx("div",{className:"ds-modal-overlay",...n,children:s.jsxs("div",{className:`ds-modal ds-modal--${c}`,ref:a,role:"dialog","aria-modal":"true","aria-labelledby":e?l:void 0,children:[(e||r)&&s.jsxs("div",{className:"ds-modal__header",children:[e&&s.jsx("h3",{id:l,className:"ds-modal__title",children:e}),r&&s.jsx(le,{variant:"ghost",size:"small",icon:s.jsx(E.X,{size:g[2],strokeWidth:1.5}),onClick:r,"aria-label":"Close modal"})]}),s.jsx("div",{className:"ds-modal__body",children:f}),b]})})}function Z({children:t}){return s.jsx("div",{className:"ds-modal__footer",children:t})}function ie({children:t,title:e="Code",defaultExpanded:r=!1,expanded:c,onToggle:n,padding:a="s",className:l="",...i}){const[b,f]=m.useState(r),d=c!==void 0,u=d?c:b,v=()=>{d?n==null||n(!c):f(_=>!_)},h=["ds-code-accordion",`ds-code-accordion--${a}`,l].filter(Boolean).join(" ");return s.jsxs("div",{className:h,...i,children:[s.jsxs("button",{type:"button",className:"ds-code-accordion__header",onClick:v,"aria-expanded":u,children:[s.jsx("span",{className:"ds-code-accordion__title",children:e}),s.jsx(E.ChevronDown,{size:g[2],strokeWidth:1.5,className:`ds-code-accordion__icon ${u?"ds-code-accordion__icon--expanded":""}`})]}),u&&s.jsx("pre",{className:"ds-code-accordion__content",children:s.jsx("code",{children:t})})]})}function ge({children:t,block:e=!1,collapsible:r=!1,title:c="Code",defaultExpanded:n=!1,...a}){return e?r?s.jsx(ie,{title:c,defaultExpanded:n,...a,children:t}):s.jsx("pre",{className:"ds-code-block",...a,children:s.jsx("code",{children:t})}):s.jsx("code",{className:"ds-code-inline",...a,children:t})}function Ae({href:t,children:e,onClick:r,target:c,rel:n,...a}){const i=c==="_blank"?n?`${n} noopener noreferrer`:"noopener noreferrer":n;return s.jsx("a",{href:t,className:"ds-link",onClick:r,target:c,rel:i,...a,children:e})}function Ie({children:t,size:e="m",variant:r="ghost",...c}){return s.jsx("div",{className:"ds-tabs",role:"tablist",...c,children:m.Children.map(t,n=>m.isValidElement(n)?m.cloneElement(n,{size:e,variant:r}):n)})}function Pe({children:t,selected:e=!1,onClick:r,size:c="m",variant:n="ghost",disabled:a=!1,icon:l,href:i,...b}){const f=l&&!t,d=["ds-tab",`ds-tab--${c}`,`ds-tab--${n}`,e&&"ds-tab--selected",f&&"ds-tab--icon-only"].filter(Boolean).join(" "),u=s.jsxs(s.Fragment,{children:[l&&s.jsx("span",{className:"ds-tab-icon",children:l}),t]});if(i){const v=h=>{if(a){h.preventDefault();return}h.metaKey||h.ctrlKey||h.button===1||(h.preventDefault(),r==null||r(h))};return s.jsx("a",{role:"tab","aria-current":e?"page":void 0,"aria-disabled":a?"true":void 0,className:d,href:a?void 0:i,onClick:v,...b,children:u})}return s.jsx("button",{role:"tab","aria-selected":e,className:d,onClick:r,disabled:a,...b,children:u})}function Oe({children:t,title:e,defaultExpanded:r=!1,expanded:c,onToggle:n,padding:a="m",...l}){const[i,b]=m.useState(r),f=c!==void 0,d=f?c:i,u=()=>{f?n==null||n(!c):b(h=>!h)},v=["ds-accordion",`ds-accordion--${a}`].filter(Boolean).join(" ");return s.jsxs("div",{className:v,...l,children:[s.jsxs("button",{type:"button",className:"ds-accordion__header",onClick:u,"aria-expanded":d,children:[s.jsx("span",{className:"ds-accordion__title",children:e}),s.jsx(E.ChevronDown,{size:g[2],strokeWidth:1.5,className:`ds-accordion__icon ${d?"ds-accordion__icon--expanded":""}`})]}),d&&s.jsx("div",{className:"ds-accordion__content",children:t})]})}const O=8,W=8;function Le(t,e,r){const c=window.innerWidth;let n,a;switch(t){case"top":n=e.top-r.height-O,a=e.left+e.width/2-r.width/2;break;case"bottom":n=e.bottom+O,a=e.left+e.width/2-r.width/2;break;case"left":n=e.top+e.height/2-r.height/2,a=e.left-r.width-O;break;case"right":n=e.top+e.height/2-r.height/2,a=e.right+O;break;default:n=e.bottom+O,a=e.left}const l=Math.max(W,Math.min(c-r.width-W,a)),i=a-l;return{top:n,left:l,arrowOffset:i}}function Be(t,e,r){const c=window.innerWidth,n=window.innerHeight;if(t.top>=e+O+W)return"top";if(n-t.bottom>=e+O+W)return"bottom";if(c-t.right>=r+O+W)return"right";if(t.left>=r+O+W)return"left";const a=Math.max(t.top,n-t.bottom,t.left,c-t.right);return a===t.top?"top":a===n-t.bottom?"bottom":a===c-t.right?"right":"left"}function De({children:t,content:e,position:r,...c}){const[n,a]=m.useState(!1),[l,i]=m.useState({visibility:"hidden"}),[b,f]=m.useState(r||"top"),d=m.useRef(null),u=m.useRef(null),v=m.useRef(!1),h=()=>{if(!d.current||!u.current)return;const j=d.current.getBoundingClientRect(),T=u.current.getBoundingClientRect(),$=r||Be(j,T.height,T.width),{top:A,left:p,arrowOffset:w}=Le($,j,T);f($),i({position:"fixed",top:A,left:p,visibility:"visible","--arrow-offset":`${w}px`})};if(m.useEffect(()=>{if(!n)return;i({position:"fixed",visibility:"hidden"});const j=requestAnimationFrame(h);return window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{cancelAnimationFrame(j),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[n,r]),m.useEffect(()=>{if(!n)return;const j=T=>{d.current&&!d.current.contains(T.target)&&a(!1)};return document.addEventListener("touchstart",j),()=>document.removeEventListener("touchstart",j)},[n]),!e)return t;const _=n&&s.jsx("div",{ref:u,className:`ds-tooltip ds-tooltip--${b}`,role:"tooltip",style:l,children:e});return s.jsxs("div",{ref:d,className:"ds-tooltip-wrapper",onMouseEnter:()=>{v.current||a(!0)},onMouseLeave:()=>{v.current||a(!1)},onTouchStart:()=>{v.current=!0,a(j=>!j)},...c,children:[t,typeof document<"u"&&X.createPortal(_,document.body)]})}function Me({checked:t=!1,onChange:e,size:r="m",disabled:c=!1,label:n,id:a,...l}){const i=a||`toggle-${m.useId()}`,b=["ds-toggle",`ds-toggle--${r}`,c&&"ds-toggle--disabled"].filter(Boolean).join(" ");return s.jsxs("label",{className:b,htmlFor:i,children:[s.jsx("input",{type:"checkbox",id:i,className:"ds-toggle__input",checked:t,onChange:f=>e==null?void 0:e(f.target.checked),disabled:c,...l}),s.jsx("span",{className:"ds-toggle__track",children:s.jsx("span",{className:"ds-toggle__thumb"})}),n&&s.jsx("span",{className:"ds-toggle__label",children:n})]})}function Fe({checked:t=!1,onChange:e,size:r="m",disabled:c=!1,label:n,id:a,...l}){const i=a||`checkbox-${m.useId()}`,b=["ds-checkbox",`ds-checkbox--${r}`,c&&"ds-checkbox--disabled"].filter(Boolean).join(" "),f=r==="xs"?10:r==="small"?14:r==="large"?20:16;return s.jsxs("label",{className:b,htmlFor:i,children:[s.jsx("input",{type:"checkbox",id:i,className:"ds-checkbox__input",checked:t,onChange:d=>e==null?void 0:e(d.target.checked),disabled:c,...l}),s.jsx("span",{className:"ds-checkbox__box",children:t&&s.jsx(E.Check,{size:f,strokeWidth:2.5,className:"ds-checkbox__icon"})}),n&&s.jsx("span",{className:"ds-checkbox__label",children:n})]})}function We({checked:t=!1,onChange:e,size:r="m",disabled:c=!1,label:n,name:a,value:l,id:i,...b}){const f=i||`radio-${m.useId()}`,d=["ds-radio",`ds-radio--${r}`,c&&"ds-radio--disabled"].filter(Boolean).join(" ");return s.jsxs("label",{className:d,htmlFor:f,children:[s.jsx("input",{type:"radio",id:f,className:"ds-radio__input",checked:t,onChange:u=>e==null?void 0:e(u.target.checked),disabled:c,name:a,value:l,...b}),s.jsx("span",{className:"ds-radio__circle",children:s.jsx("span",{className:"ds-radio__dot"})}),n&&s.jsx("span",{className:"ds-radio__label",children:n})]})}function ze({size:t="m",color:e="default",className:r="",...c}){return s.jsx("span",{className:["ds-spinner",`ds-spinner--${t}`,`ds-spinner--${e}`,r].filter(Boolean).join(" "),role:"status","aria-label":"Loading",...c})}function Ye({width:t,height:e,shape:r="rect",className:c="",style:n={},...a}){return s.jsx("span",{className:["ds-skeleton",`ds-skeleton--${r}`,c].filter(Boolean).join(" "),style:{width:t,height:e,...n},"aria-hidden":"true",...a})}function Ve(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619)>>>0;return e%360}function Ce(t){if(!t)return"";const e=t.trim().split(/\s+/);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():t[0].toUpperCase()}function He({seed:t,icon:e,src:r,size:c=32,className:n="",style:a={},...l}){const i=Ve(t??""),[b,f]=m.useState(!1),d=e??s.jsx("span",{className:"ds-avatar__initials",children:Ce(t)});return s.jsx("div",{className:["ds-avatar",n].filter(Boolean).join(" "),style:{width:c,height:c,"--ds-avatar-h":i,...a},"aria-hidden":"true",...l,children:r&&!b?s.jsx("img",{src:r,alt:"",onError:()=>f(!0)}):d})}function Ue({children:t,size:e="compact",stickyTop:r,maxHeight:c,className:n="",style:a={},...l}){const i={...c?{maxHeight:c}:{},...r!==void 0?{"--ds-table-sticky-top":typeof r=="number"?`${r}px`:r}:{},...a};return s.jsx("div",{className:["ds-table-wrap",c?"ds-table-wrap--scroll":""].filter(Boolean).join(" "),style:i,children:s.jsx("table",{className:["ds-table",`ds-table--${e}`,n].filter(Boolean).join(" "),...l,children:t})})}function qe({children:t,...e}){return s.jsx("thead",{...e,children:t})}function Xe({children:t,...e}){return s.jsx("tbody",{...e,children:t})}function Ge({children:t,interactive:e,selected:r,subheader:c,className:n="",onClick:a,...l}){return s.jsx("tr",{className:["ds-table-row",e||a?"ds-table-row--interactive":"",r?"ds-table-row--selected":"",c?"ds-table-row--subheader":"",n].filter(Boolean).join(" "),onClick:a,...l,children:t})}function Je({children:t,colSpan:e=999,...r}){return s.jsx("tr",{className:"ds-table-row ds-table-row--subheader",...r,children:s.jsx("td",{colSpan:e,children:t})})}function Ke({children:t,align:e="left",sortDir:r,onSort:c,width:n,className:a="",style:l={},...i}){const b=!!c||r!==void 0,f=r==="asc"?E.ChevronUp:r==="desc"?E.ChevronDown:E.ChevronsUpDown;return s.jsx("th",{className:["ds-th",b?"ds-th--sortable":"",r?"ds-th--sorted":"",e!=="left"?`ds-table-cell--${e}`:"",a].filter(Boolean).join(" "),onClick:c,style:{width:n,...l},...i,children:b?s.jsxs("span",{className:"ds-th__inner",children:[t,s.jsx("span",{className:"ds-th__sort-icon",children:s.jsx(f,{size:11,strokeWidth:2.5})})]}):t})}function Ze({children:t,align:e="left",secondary:r,muted:c,truncate:n,nowrap:a,className:l="",...i}){return s.jsx("td",{className:["ds-td",e!=="left"?`ds-table-cell--${e}`:"",r?"ds-table-cell--secondary":"",c?"ds-table-cell--muted":"",n?"ds-table-cell--truncate":"",a?"ds-table-cell--nowrap":"",l].filter(Boolean).join(" "),...i,children:t})}function Qe({icon:t,title:e,description:r,action:c,size:n="m",className:a="",...l}){return s.jsxs("div",{className:["ds-empty-state",`ds-empty-state--${n}`,a].filter(Boolean).join(" "),...l,children:[t&&s.jsx("div",{className:"ds-empty-state__icon",children:t}),s.jsx("div",{className:"ds-empty-state__title",children:e}),r&&s.jsx("div",{className:"ds-empty-state__description",children:r}),c&&s.jsx("div",{className:"ds-empty-state__action",children:c})]})}function et({trigger:t,items:e=[],open:r,onOpenChange:c,align:n="left",className:a="",style:l,...i}){const[b,f]=m.useState(!1),d=r!==void 0,u=d?r:b,v=m.useRef(null),h=m.useRef(null),[_,j]=m.useState({}),T=()=>{d?c==null||c(!1):f(!1)},$=()=>{const p=!u;d?c==null||c(p):f(p)};m.useEffect(()=>{if(!u)return;const p=()=>{var S;const w=(S=v.current)==null?void 0:S.getBoundingClientRect();w&&j(n==="right"?{top:w.bottom+4,right:window.innerWidth-w.right}:{top:w.bottom+4,left:w.left})};return p(),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p),()=>{window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p)}},[u,n]),m.useEffect(()=>{if(!u)return;const p=S=>{var I,P;!((I=v.current)!=null&&I.contains(S.target))&&!((P=h.current)!=null&&P.contains(S.target))&&T()},w=S=>{S.key==="Escape"&&T()};return document.addEventListener("mousedown",p),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("keydown",w)}},[u]);const A=u&&s.jsx("div",{ref:h,className:["ds-dropdown__menu",`ds-dropdown__menu--${n}`].join(" "),style:_,children:e.map((p,w)=>{if(p.separator)return s.jsx("div",{className:"ds-dropdown__separator"},w);if(p.type==="section")return s.jsxs("div",{className:"ds-dropdown__section",children:[p.label&&s.jsx("div",{className:"ds-dropdown__section-label",children:p.label}),s.jsx("div",{className:"ds-dropdown__section-content",children:p.content})]},w);const S=!!p.href,I=S?"a":"button",P=S?{href:p.disabled?void 0:p.href,"aria-disabled":p.disabled?"true":void 0}:{type:"button",disabled:p.disabled};return s.jsxs(I,{className:["ds-dropdown__item",p.danger&&"ds-dropdown__item--danger"].filter(Boolean).join(" "),...P,onClick:()=>{var B;(B=p.onClick)==null||B.call(p),T()},children:[p.icon&&s.jsx("span",{className:"ds-dropdown__item-icon",children:p.icon}),s.jsx("span",{className:"ds-dropdown__item-label",children:p.label}),p.shortcut&&s.jsx("span",{className:"ds-dropdown__item-shortcut",children:p.shortcut})]},w)})});return s.jsxs("div",{ref:v,className:["ds-dropdown",a].filter(Boolean).join(" "),style:l,...i,children:[s.jsx("div",{className:"ds-dropdown__trigger",onClick:$,children:t}),typeof document<"u"&&X.createPortal(A,document.body)]})}const ce={default:E.Info,success:E.CheckCircle,warning:E.AlertTriangle,error:E.XCircle};let z=[];const Q=new Set;function de(){Q.forEach(t=>t([...z]))}function tt(t){z=[...z,t],de()}function st(t){z=z.filter(e=>e.id!==t),de()}function rt(){const t=(e,r={})=>{tt({id:`${Date.now()}-${Math.random()}`,message:e,type:"default",duration:4e3,...r})};return t.success=(e,r)=>t(e,{...r,type:"success"}),t.error=(e,r)=>t(e,{...r,type:"error"}),t.warning=(e,r)=>t(e,{...r,type:"warning"}),{toast:t}}function nt({data:t,onDismiss:e}){const[r,c]=m.useState(!1),n=m.useRef(null);m.useEffect(()=>(requestAnimationFrame(()=>c(!0)),t.duration>0&&(n.current=setTimeout(()=>a(),t.duration)),()=>clearTimeout(n.current)),[]);function a(){c(!1),setTimeout(()=>e(t.id),250)}const l=ce[t.type]??ce.default;return s.jsxs("div",{className:["ds-toast",`ds-toast--${t.type}`,r&&"ds-toast--visible"].filter(Boolean).join(" "),role:t.type==="error"?"alert":"status","aria-live":"polite",children:[s.jsx("div",{className:"ds-toast__icon",children:s.jsx(l,{size:g[3],strokeWidth:1.5})}),s.jsx("span",{className:"ds-toast__message",children:t.message}),s.jsx("button",{className:"ds-toast__close",onClick:a,"aria-label":"Закрыть",children:s.jsx(E.X,{size:g[3],strokeWidth:1.5})})]})}function at({position:t="bottom-right"}){const[e,r]=m.useState(()=>[...z]);return m.useEffect(()=>(Q.add(r),()=>Q.delete(r)),[]),!e.length||typeof document>"u"?null:X.createPortal(s.jsx("div",{className:["ds-toast-container",`ds-toast-container--${t}`].join(" "),children:e.map(c=>s.jsx(nt,{data:c,onDismiss:st},c.id))}),document.body)}exports.Accordion=Oe;exports.Alert=$e;exports.Avatar=He;exports.Badge=Re;exports.Button=le;exports.Card=ve;exports.Checkbox=Fe;exports.Code=ge;exports.CodeAccordion=ie;exports.Dropdown=et;exports.EmptyState=Qe;exports.H1=je;exports.H2=_e;exports.H3=we;exports.H4=Ne;exports.Input=pe;exports.Link=Ae;exports.Modal=Se;exports.ModalFooter=Z;exports.P1=ye;exports.P2=Ee;exports.P3=ke;exports.Radio=We;exports.Select=he;exports.Skeleton=Ye;exports.Spinner=ze;exports.Stepper=xe;exports.Tab=Pe;exports.Table=Ue;exports.TableBody=Xe;exports.TableHead=qe;exports.TableRow=Ge;exports.TableSubheaderRow=Je;exports.Tabs=Ie;exports.Td=Ze;exports.Textarea=be;exports.Th=Ke;exports.ToastContainer=at;exports.Toggle=Me;exports.Tooltip=De;exports.iconSizes=g;exports.useToast=rt;
|