@max-ts/kit 0.0.6 → 0.0.7
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/lib/index.mjs +1 -1
- package/lib/styles/theme.css.d.ts +54 -54
- package/package.json +7 -7
package/lib/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react/jsx-runtime";import*as s from"@radix-ui/react-slot";import*as l from"clsx";import*as t from"@radix-ui/react-label";import*as a from"@radix-ui/react-checkbox";import*as r from"lucide-react";import*as o from"@radix-ui/react-popover";import*as n from"react";import*as i from"@radix-ui/react-tooltip";import*as c from"@radix-ui/react-dropdown-menu";import*as d from"react-virtuoso";import*as _ from"@radix-ui/react-dialog";import*as m from"@radix-ui/react-slider";import*as x from"@radix-ui/react-select";import*as h from"@radix-ui/react-tabs";import*as u from"@vanilla-extract/css";var y,p={default:"default__1ersxw14 style__1ersxw10",destructive:"destructive__1ersxw15 style__1ersxw10",outline:"outline__1ersxw16 style__1ersxw10",ghost:"ghost__1ersxw17 style__1ersxw10",link:"link__1ersxw18 style__1ersxw10"},j={sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"};let g=({className:t,variant:a="default",size:r="md",asChild:o=!1,isLoading:n=!1,fullWidth:i,...c})=>{let d=o?s.Slot:"button";return(0,e.jsx)(d,{className:(0,l.clsx)(p[a],j[r],{style__1ersxw13:i,style__1ersxw12:n},t),...c})},b=({className:s,disabled:a,...r})=>(0,e.jsx)(t.Root,{className:(0,l.clsx)("style__c31e140",{style__c31e141:a},s),...r}),v=({value:s,onChange:t,options:a,size:r,className:o,label:n,multiple:i})=>{let c=!0===i,d=e=>c?s.includes(e):s===e,_=e=>{c?s.includes(e)?t(s.filter(s=>s!==e)):t([...s,e]):t(e)};return(0,e.jsxs)("div",{className:(0,l.clsx)("style__1iqvz720",o),children:[n&&(0,e.jsx)(b,{className:"style__1iqvz722",children:n}),a.map(s=>(0,e.jsx)(g,{size:r,className:"style__1iqvz721",disabled:s.disabled,onClick:()=>_(s.value),variant:d(s.value)?"default":"outline",children:s.label},s.value))]})},f=({className:s,...t})=>(0,e.jsx)("div",{className:(0,l.clsx)("style__oyalw00",s),...t}),w=({className:s,...t})=>(0,e.jsx)("div",{className:(0,l.clsx)("style__oyalw01",s),...t}),k=({className:s,...t})=>(0,e.jsx)("h3",{className:(0,l.clsx)("style__oyalw02",s),...t}),N=({className:s,...t})=>(0,e.jsx)("p",{className:(0,l.clsx)("style__oyalw03",s),...t}),C=({className:s,...t})=>(0,e.jsx)("div",{className:(0,l.clsx)("style__oyalw04",s),...t}),z=({className:s,...t})=>(0,e.jsx)("div",{className:(0,l.clsx)("style__oyalw05",s),...t}),S=({className:s,...t})=>(0,e.jsx)(a.Root,{className:(0,l.clsx)("style__b7yo4k0",s),...t,children:(0,e.jsx)(a.Indicator,{className:"style__b7yo4k1",children:(0,e.jsx)(r.Check,{className:"style__b7yo4k2"})})});var T={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"},D={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"};let P=({size:s=30,thickness:t=2.6,color:a="primary",value:r=0,variant:o="indeterminate",className:n})=>{let i=(s-t)/2,c=2*Math.PI*i;return(0,e.jsx)("div",{className:(0,l.default)("style__m6b9n22",T[o],D[a],n),style:{width:s,height:s},children:(0,e.jsxs)("svg",{className:"style__m6b9n23",viewBox:`0 0 ${s} ${s}`,children:[(0,e.jsx)("title",{children:"Progress bar"}),(0,e.jsx)("circle",{className:(0,l.default)("style__m6b9n24","determinate"===o&&T.determinate),cx:s/2,cy:s/2,r:i,fill:"none",strokeWidth:t,strokeDasharray:c,strokeDashoffset:"determinate"===o?c*(1-r/100):.25*c})]})})},I=({className:s,align:t="center",sideOffset:a=4,...r})=>(0,e.jsx)(o.Portal,{children:(0,e.jsx)(o.Content,{align:t,sideOffset:a,className:(0,l.clsx)("style__1xy4jvu2",s),...r})});var R={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi"},A={lowercase:"lowercase__1sba6zot",uppercase:"uppercase__1sba6zou",capitalize:"capitalize__1sba6zov"},L={left:"left__1sba6zoj",center:"center__1sba6zok",right:"right__1sba6zol",justify:"justify__1sba6zom"},M={normal:"normal__1sba6zop",medium:"medium__1sba6zoq",semibold:"semibold__1sba6zor",bold:"bold__1sba6zos"},E={h1:"h1__1sba6zo0",h2:"h2__1sba6zo1",h3:"h3__1sba6zo2",h4:"h4__1sba6zo3",h5:"h5__1sba6zo4",h6:"h6__1sba6zo5",subtitle1:"subtitle1__1sba6zo6",subtitle2:"subtitle2__1sba6zo7",body1:"body1__1sba6zo8",body2:"body2__1sba6zo9",caption:"caption__1sba6zoa",overline:"overline__1sba6zob"},q={none:"none__1sba6zow",underline:"underline__1sba6zox",lineThrough:"lineThrough__1sba6zoy"},O={block:"block__1sba6zon",inline:"inline__1sba6zoo"};let B={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},H=({className:s,variant:t="body1",component:a,color:r="primary",align:o="left",display:n="inline",weight:i="normal",transform:c,decoration:d="none",gutterBottom:_,children:m,...x})=>{let h=a||B[t||"body1"];return(0,e.jsx)(h,{className:(0,l.clsx)(q[d],E[t],R[r],M[i],c&&A[c],O[n],L[o],{style__1sba6zoz:_},s),...x,children:m})},V=({skipConfirm:e,onConfirm:s,confirmButtonProps:l})=>{let[t,a]=(0,n.useState)(!1);return{open:t,onActionComponentClick:()=>{e?s():a(!0)},confirmButtonProps:{variant:l?.isAccented?"destructive":"default",onClick:()=>{a(!1),s()},size:"sm"},onCancel:()=>{a(!1)},onOpenChange:e=>{a(e)}}},W=s=>{let{open:t,onActionComponentClick:a,onCancel:r,confirmButtonProps:n,onOpenChange:i}=V(s),{text:c,confirmButtonProps:d,popoverProps:_,actionComponent:m}=s,{text:x="Подтвердить"}=d||{},{side:h="bottom",align:u="center"}=_||{};return(0,e.jsxs)(o.Popover,{open:t,onOpenChange:i,children:[(0,e.jsx)(o.PopoverTrigger,{asChild:!0,children:m({onClick:a})}),(0,e.jsx)(I,{side:h,align:u,className:(0,l.clsx)("style__1q1uhgp2",{style__1q1uhgp3:!!c}),children:(0,e.jsxs)("div",{className:"style__1q1uhgp1",children:[c&&(0,e.jsx)(H,{children:c}),(0,e.jsxs)("div",{className:"style__1q1uhgp0",children:[(0,e.jsx)(g,{variant:"ghost",size:"sm",onClick:r,children:"Отмена"}),(0,e.jsx)(g,{...n,children:x})]})]})})]})};var $={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let F=s=>(0,e.jsx)("img",{alt:s.alt,src:s.src,className:(0,l.default)("style__1o97kvm0",$[s.size||"md"],s.className),width:s.width,height:s.height}),G={sm:"239px",md:"323px",lg:"458px"},U={sm:"119px",md:"161px",lg:"229px"},K={sm:"384px",md:"400px",lg:"460px"},X={sm:"subtitle1",md:"h6",lg:"h5"};var Y={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let J=({className:s,title:t,imgSrc:a,imgAlt:r,description:o,actions:i,size:c="sm",renderImage:d})=>{let _=(0,n.useMemo)(()=>d||F,[d]);return(0,e.jsxs)("div",{className:(0,l.default)("style__1nenzg00",Y[c],s),children:[(0,e.jsxs)("div",{className:"style__1nenzg04",style:{maxWidth:K[c]},children:[a&&(0,e.jsx)(_,{src:a,alt:r,width:G[c],height:U[c],size:c}),(0,e.jsx)(H,{align:"center",color:"secondary",variant:X[c],children:t}),o&&(0,e.jsx)(H,{className:"style__1nenzg05",component:"div",variant:"body1",children:o})]}),i&&(0,e.jsx)("footer",{className:"style__1nenzg06",children:i})]})},Q=({isLoading:s,isError:l,isCustom:t,errorState:a,customState:r,children:o,loadingContent:n=(0,e.jsx)(P,{color:"primary"})})=>{if(s)return(0,e.jsx)("div",{className:"style__nan0ao0",children:n});if(t&&r)return(0,e.jsx)(J,{...r});if(l&&a){let{title:s="Произошла ошибка",imgAlt:l,imgSrc:t,errorList:r,onRetry:o,actions:n=(0,e.jsx)(g,{onClick:o,children:"Попробовать снова"})}=a,i=r.map(s=>(0,e.jsx)(H,{component:"p",children:s},s));return(0,e.jsx)(J,{title:s,description:i,imgAlt:l,imgSrc:t,actions:n})}return o},Z=i.Provider,ee=i.Root,es=i.Trigger,el=({sideOffset:s=4,alignOffset:l,ref:t,...a})=>(0,e.jsx)(i.Content,{ref:t,sideOffset:s,...a}),et=({text:s,content:t,children:a,side:r="top",sideOffset:o,alignOffset:n,delayDuration:c=0,className:d,ref:_,...m})=>(0,e.jsx)(Z,{delayDuration:c,children:(0,e.jsxs)(ee,{...m,children:[(0,e.jsx)(es,{ref:_,asChild:!0,children:a}),t||s?(0,e.jsx)(i.Portal,{children:(0,e.jsxs)(el,{className:(0,l.default)("style__izacrl2",d),alignOffset:n,sideOffset:o,hideWhenDetached:!0,side:r,children:[t??(0,e.jsx)("p",{className:"style__izacrl3",children:s}),m.arrow&&(0,e.jsx)(i.Arrow,{className:"style__izacrl4"})]})}):null]})});var ea=((y={}).Copied="Скопировано",y.Error="Ошибка копирования",y.CanCopy="Скопировать",y);let er=({children:e,copyText:s,isShowCopyText:l,copyPosition:t})=>{let[a,r]=(0,n.useState)(ea.CanCopy),[o,i]=(0,n.useState)(!1);return{handleMouseLeave:()=>{a!==ea.CanCopy&&setTimeout(()=>{r(ea.CanCopy)},100),i(!1)},handleClick:l=>{l.stopPropagation(),navigator.clipboard.writeText(s||("string"==typeof e?e:"")).then(()=>r(ea.Copied)).catch(()=>r(ea.Error))},tooltipTitle:l?`${a}: ${s}`:a,isIconOnLeft:"left"===t,tooltipOpen:o,handleMouseEnter:()=>{i(!0)}}},eo=s=>{let{children:t,copyPosition:a="right",copyText:o,isShowCopyText:n,color:i,className:c,...d}=s,_=()=>(0,e.jsx)(r.Copy,{className:"style__1wpx85c1"}),{tooltipOpen:m,handleMouseEnter:x,handleMouseLeave:h,handleClick:u,tooltipTitle:y,isIconOnLeft:p}=er(s);return(0,e.jsx)(et,{open:m,arrow:!0,text:y,side:"bottom",children:(0,e.jsxs)(H,{onMouseLeave:h,onMouseEnter:x,onClick:u,component:"div",color:i,className:(0,l.clsx)("style__1wpx85c0",c),...d,children:[p&&_(),t,!p&&_()]})})};function en({row:s,column:t,rowIndex:a,height:r}){let{align:o,cellColor:n,isDisabled:i}=t;return(0,e.jsx)("td",{align:o??"left",style:{backgroundColor:n?.(s),height:r,width:t.width},className:(0,l.clsx)("style__1047swj0",{style__1047swj1:i},t.cellClassName?.(s)),children:(0,e.jsx)(()=>t.renderCell?t.renderCell(s,a):t.format?t.format(s)||"—":t.field?`${s[t.field]||"—"}`:"—",{})})}function ei({row:s,rowHeight:t,onRowClick:a,columns:r,rowIndex:o,rowId:i}){let c=(0,n.useCallback)(()=>{a?.(s)},[a,s]);return(0,e.jsx)("tr",{onClick:c,onKeyDown:c,className:(0,l.clsx)("style__gsm9mv0",{style__gsm9mv1:!!a}),children:r.map((l,a)=>{let r=`${i}-${a}`;return(0,e.jsx)(en,{row:s,rowIndex:o,column:l,height:t},r)})})}function ec({isLoading:s,isEmpty:l,columnsLength:t,emptyState:a={text:"Нет данных"},errorState:r={text:"Произошла ошибка"},isError:o,onRetry:n}){let i=({children:s})=>(0,e.jsx)("tr",{className:"style__15m2ib80",children:(0,e.jsx)("td",{colSpan:t,align:"center",children:s})});if(s)return(0,e.jsx)(i,{children:(0,e.jsx)("span",{className:"style__15m2ib81",children:(0,e.jsx)(P,{})})});if(l){let{imgSrc:s,imgAlt:l,text:t}=a;return(0,e.jsx)(i,{children:(0,e.jsx)(J,{title:t,imgSrc:s,imgAlt:l})})}if(o){let{imgSrc:s,imgAlt:l,text:t}=r;return(0,e.jsx)(i,{children:(0,e.jsx)(J,{title:t,imgSrc:s,imgAlt:l,actions:n?(0,e.jsx)(g,{variant:"outline",onClick:n,children:"Попробовать снова"}):void 0})})}return null}var ed="style__82af400";function e_({isError:s,isLoading:l,emptyState:t,errorState:a,columns:r,rows:o,rowHeight:n,keyId:i,onRowClick:c}){let d=0===o.length;return s||l||d?(0,e.jsx)("tbody",{className:ed,children:(0,e.jsx)(ec,{emptyState:t,errorState:a,isEmpty:d,isError:s,isLoading:l,columnsLength:r.length})}):(0,e.jsx)("tbody",{className:ed,children:o.map((s,l)=>{let t=String(s[i]);return(0,e.jsx)(ei,{row:s,rowId:t,rowHeight:n,columns:r,onRowClick:c,rowIndex:l},s[i])})})}function em({children:s,columnsLength:t,className:a}){return(0,e.jsx)("tfoot",{className:(0,l.clsx)("style__2s55b60",a),children:(0,e.jsx)("tr",{children:(0,e.jsx)("td",{colSpan:t,align:"center",children:s})})})}function ex({column:s,height:l,width:t}){return(0,e.jsx)("th",{style:{color:s.color,height:l,width:t},align:s.align??"left",title:s.title,className:"style__uma6hu0",children:s.renderHeaderCell?.(s)||s.title})}function eh({columns:s,height:t,sticky:a}){return(0,e.jsx)("thead",{children:(0,e.jsx)("tr",{className:(0,l.clsx)({style__fkgoub0:a}),children:s.map(s=>(0,e.jsx)(ex,{column:s,height:t,width:s.width},s.title))})})}function eu({rows:s,columns:t,height:a="100%",className:r,rowHeight:o=40,headerHeight:n=40,keyId:i,onRowClick:c,isLoading:d,isDisabled:_,isError:m,emptyState:x,errorState:h,footer:u,title:y,stickyHeader:p,onRetry:j}){return(0,e.jsxs)("div",{style:{height:a},className:(0,l.clsx)("style__1gqvluf0",r),children:[(0,e.jsxs)("table",{className:(0,l.clsx)("style__1gqvluf1",{style__1gqvluf2:_,style__1gqvluf3:d},r),children:[y&&(0,e.jsx)("caption",{className:"style__1gqvluf4",children:y}),(0,e.jsx)(eh,{columns:t,height:n,sticky:p}),(0,e.jsx)(e_,{rows:s,columns:t,rowHeight:o,keyId:i,onRowClick:c,isLoading:d,emptyState:x,errorState:h,isError:m,onRetry:j})]}),u&&(0,e.jsx)(em,{columnsLength:t.length,children:u})]})}var ey="style__1ib8wkt3";let ep=c.Root,ej=c.Trigger,eg=c.Group,eb=c.Portal,ev=c.Sub,ef=c.RadioGroup,ew=({className:s,inset:t,children:a,...o})=>(0,e.jsxs)(c.SubTrigger,{className:(0,l.default)("style__1ib8wkt2",{inset:t},s),...o,children:[a,(0,e.jsx)(r.ChevronRight,{className:ey})]}),ek=({className:s,...t})=>(0,e.jsx)(c.SubContent,{className:(0,l.default)("style__1ib8wkt4",s),...t}),eN=({className:s,sideOffset:t=4,...a})=>(0,e.jsx)(c.Portal,{children:(0,e.jsx)(c.Content,{sideOffset:t,className:(0,l.default)("style__1ib8wkt5",s),...a})}),eC=({className:s,inset:t,...a})=>(0,e.jsx)(c.Item,{className:(0,l.default)("style__1ib8wkt6",{inset:t},s),...a}),ez=({className:s,children:t,checked:a,...o})=>(0,e.jsxs)(c.CheckboxItem,{className:(0,l.default)("style__1ib8wkt7",s),checked:a,...o,children:[(0,e.jsx)("span",{className:"style__1ib8wkt9",children:(0,e.jsx)(c.ItemIndicator,{children:(0,e.jsx)(r.Check,{className:ey})})}),t]}),eS=({className:s,children:t,...a})=>(0,e.jsxs)(c.RadioItem,{className:(0,l.default)("style__1ib8wkt8",s),...a,children:[(0,e.jsx)("span",{className:"style__1ib8wkta",children:(0,e.jsx)(c.ItemIndicator,{children:(0,e.jsx)(r.Circle,{className:ey})})}),t]}),eT=({className:s,inset:t,...a})=>(0,e.jsx)(c.Label,{className:(0,l.default)("style__1ib8wktb",{inset:t},s),...a}),eD=({className:s,...t})=>(0,e.jsx)(c.Separator,{className:(0,l.default)("style__1ib8wktc",s),...t}),eP=({className:s,...t})=>(0,e.jsx)("span",{className:(0,l.default)("style__1ib8wktd",s),...t}),eI=({action:e})=>{let{isLoading:s,disabledReason:l,name:t}=e,[a,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{s&&r(!1)},[s]),{tooltipProps:{text:l||t,open:a,onOpenChange:e=>r(e)}}},eR=s=>{let{tooltipProps:l}=eI(s),{action:t,onActionClick:a,isDisabled:r,tooltipPlacement:o}=s,{name:n,icon:i,needConfirm:c,confirmText:d,confirmButtonProps:_,disabled:m,isLoading:x,onClick:h}=t,u=s=>(0,e.jsx)(et,{arrow:!0,side:o,...l,children:(0,e.jsx)(g,{disabled:r||m,isLoading:x,variant:"ghost",size:"icon",...s,children:i})},n);return(0,e.jsx)(e.Fragment,{children:c?(0,e.jsx)(W,{text:d,confirmButtonProps:_,actionComponent:e=>u(e),onConfirm:a(h)}):u({onClick:a(h)})})},eA=({action:s,onActionClick:l,isDisabled:t,tooltipPlacement:a})=>{if("actions"in s){let{disabled:r,icon:o,name:i,disabledReason:c,actions:d,isLoading:_}=s;return(0,e.jsxs)(ep,{children:[(0,e.jsx)(ej,{asChild:!0,children:(0,e.jsx)(et,{text:c||i,side:a,arrow:!0,children:(0,e.jsx)(g,{variant:"ghost",size:"icon",isLoading:_,disabled:t||r,children:o})},i)}),(0,e.jsx)(eN,{children:d.map(({name:s,onClick:t,...a})=>(0,n.createElement)(eC,{...a,key:s,asChild:!0},(0,e.jsx)(g,{size:"sm",onClick:l(t),children:s})))})]})}return(0,e.jsx)(eR,{action:s,onActionClick:l,isDisabled:t,tooltipPlacement:a})},eL=({actions:s,onActionClick:l,tooltipPlacement:t,isDisabled:a})=>(0,e.jsxs)(ep,{children:[(0,e.jsx)(ej,{asChild:!0,children:(0,e.jsx)(g,{disabled:a,variant:"ghost",size:"icon",children:(0,e.jsx)(r.EllipsisVertical,{})})}),(0,e.jsx)(eN,{children:s.map(s=>{let{onClick:a,name:r,disabledReason:o,isLoading:n}=s;return(0,e.jsx)(eC,{asChild:!0,children:(0,e.jsx)(et,{arrow:!0,side:t,text:o,children:(0,e.jsx)(g,{onClick:l(a),isLoading:n,variant:"ghost",size:"sm",fullWidth:!0,children:r})})},r)})})]}),eM=({row:e,actions:s})=>{let{main:l,secondary:t}=s,a=[...l,...t||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!a,handleActionClick:(0,n.useCallback)(s=>()=>{s?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}},eE={mainAction:"top",secondaryAction:"left"},eq=s=>{let{isDisabledAction:l,handleWrapperClick:t,handleActionClick:a}=eM(s),{actions:r}=s,{main:o,secondary:n}=r;return(0,e.jsxs)("div",{onClick:t,onKeyDown:t,className:"style__y44ln70",children:[o.map(s=>(0,e.jsx)(eA,{action:s,onActionClick:a,isDisabled:l,tooltipPlacement:eE.mainAction},s.name)),n&&(0,e.jsx)(eL,{actions:n,onActionClick:a,tooltipPlacement:eE.secondaryAction,isDisabled:l})]})};var eO={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function eB({sorting:s,setSorting:t,column:{title:a,field:o,align:n="left"},className:i}){return o?(0,e.jsxs)("button",{type:"button",className:(0,l.clsx)("style__o752f00",eO[n],i),onClick:()=>{s.key===o?t({key:o,order:"asc"===s.order?"desc":"asc"}):t({key:o,order:"asc"})},children:[a,s.key===o?"asc"===s.order?(0,e.jsx)(r.ArrowDownNarrowWide,{size:16}):(0,e.jsx)(r.ArrowDownWideNarrow,{size:16}):(0,e.jsx)(r.ArrowDownUp,{size:16})]}):null}let eH=e=>{let{initialState:s=!1,onInactive:l,onActive:t}=e||{},[a,r]=(0,n.useState)(s);return[a,(...e)=>{r(!0),t?.(...e)},(...e)=>{r(!1),l?.(...e)}]},eV="Вы достигли конца списка",eW=({endOfScrollMsg:s=eV})=>(0,e.jsx)("li",{className:"style__1syvw5e0",children:(0,e.jsx)(H,{children:s})}),e$=({onRetry:s})=>(0,e.jsxs)("li",{className:"style__qlujai0",children:[(0,e.jsx)(H,{align:"center",children:"Ошибка загрузки"}),(0,e.jsx)(g,{size:"sm",onClick:s,children:"Попробовать снова"})]}),eF=()=>(0,e.jsx)("li",{className:"style__111czea0",children:(0,e.jsx)(P,{color:"primary"})}),eG=({noDataImgSrc:s})=>(0,e.jsx)(J,{title:"Нет данных",imgSrc:s}),eU=({onClick:s,isVisible:t})=>(0,e.jsx)(g,{onClick:s,size:"icon",variant:"outline",className:(0,l.clsx)("style__1jg5nd90",{style__1jg5nd91:t}),children:(0,e.jsx)(r.ChevronUp,{})}),eK=({data:s,keyId:t,className:a,itemContent:r,noDataPlaceholder:o,endOfScrollMsg:i,errorState:c,isLoading:_,isError:m,isEndReached:x,onRetry:h,onEndReached:u,scrollTopIsDataChanged:y})=>{let p=(0,n.useRef)(null),[j,g,b]=eH(),v=(0,n.useCallback)(e=>{e.startIndex>2?g():b()},[b,g]),f=(0,n.useCallback)(()=>p.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[p]),w=(0,n.useCallback)(()=>{!x&&u&&u()},[x,u]),k=!!s?.length;return k||_||m?((0,n.useEffect)(()=>{y&&p.current?.scrollToIndex({index:0,align:"start"})},[y,s]),(0,e.jsxs)(Q,{isLoading:_&&!k,isError:m&&!k,errorState:c,children:[(0,e.jsx)(d.Virtuoso,{className:(0,l.clsx)("style__1ezen7g0",a),style:{height:"100%"},data:s,ref:p,overscan:30,endReached:w,rangeChanged:v,itemContent:(s,a)=>(0,e.jsx)("li",{children:r?.(a,{index:s,className:(0,l.clsx)("style__1ezen7g1","datalist_item")})},a[t]),components:{Footer:()=>(0,e.jsxs)(e.Fragment,{children:[_&&(0,e.jsx)(eF,{}),m&&(0,e.jsx)(e$,{onRetry:h}),x&&(0,e.jsx)(eW,{endOfScrollMsg:i})]})}}),(0,e.jsx)(eU,{isVisible:j,onClick:f})]})):o?(0,e.jsx)(e.Fragment,{children:o}):(0,e.jsx)(eG,{})},eX=":",eY="—",eJ="descriptionRoot",eQ=(0,n.createContext)({leader:!1,separator:eX,direction:"default"}),eZ=({children:s,leader:l,separator:t,direction:a})=>(0,e.jsx)(eQ.Provider,{value:{leader:l,separator:t,direction:a},children:s}),e0=({canCopy:e,children:s,stub:l="—"})=>{let{leader:t,direction:a}=(0,n.useContext)(eQ);return{valueToRender:s||l,isDefaultValueRender:!e||!s,leader:t,direction:a}};var e1="style__sdcsnp2";let e2=({direction:e="row",separator:s=eX})=>({descriptionContextProviderProps:{separator:"column"===e?"":s},direction:e});var e6={row:"row__1lociyw1",column:"column__1lociyw2"},e8={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"};let e5=s=>{let{descriptionContextProviderProps:t,direction:a}=e2(s),{justifyContent:r="start",component:o="dl",children:n,leader:i=!1}=s;return(0,e.jsx)(eZ,{leader:i,direction:a,...t,children:(0,e.jsx)(o,{className:(0,l.clsx)("style__1lociyw0",e6[a],e8[r],eJ),children:n})})};e5.Name=({children:s,color:t="secondary",...a})=>{let{leader:r,separator:o}=(0,n.useContext)(eQ);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("dt",{className:(0,l.clsx)("style__1tsgk1i0",{style__1tsgk1i1:r}),children:(0,e.jsxs)(H,{...a,color:t,children:[s,!r&&o]})}),r&&(0,e.jsx)("div",{className:"style__1tsgk1i2"})]})},e5.Value=s=>{let{valueToRender:t,isDefaultValueRender:a,leader:r}=e0(s),{copyPosition:o="right",copyText:n,canCopy:i,children:c,stub:d,..._}=s;return a?(0,e.jsx)(H,{className:(0,l.default)("style__sdcsnp1",{[e1]:r}),component:"dd",..._,children:t}):(0,e.jsx)("dd",{className:"style__sdcsnp0",children:(0,e.jsx)(eo,{className:(0,l.default)({[e1]:r}),copyPosition:o,copyText:n,..._,children:t})})};let e4=({title:s,description:t="",trigger:a,className:o,footer:n,children:i,...c})=>(0,e.jsxs)(_.Root,{...c,children:[a&&(0,e.jsx)(_.Trigger,{asChild:!0,children:a}),(0,e.jsxs)(_.Portal,{children:[(0,e.jsx)(_.Overlay,{className:(0,l.default)("style__8bkmbe2")}),(0,e.jsxs)(_.Content,{className:(0,l.default)("style__8bkmbe5",o),children:[(0,e.jsxs)("div",{className:(0,l.default)("style__8bkmbe8",{style__8bkmbe9:!!t}),children:[(0,e.jsx)(_.Title,{className:"style__8bkmbeb",children:s}),(0,e.jsx)(_.Description,{className:"style__8bkmbec",children:t}),c.onOpenChange&&(0,e.jsxs)(_.Close,{className:"style__8bkmbe6",children:[(0,e.jsx)(r.X,{size:24}),(0,e.jsx)("span",{className:"style__8bkmbe7",children:"Close"})]})]}),i,n&&(0,e.jsx)("div",{className:"style__8bkmbea",children:n})]})]})]});var e3="style__a5l83v4",e9="style__a5l83v0";let e7=({images:s=[],autoPlay:t=!1,interval:a=5e3})=>{let[o,i]=(0,n.useState)(0),c=e=>{i(e)};return((0,n.useEffect)(()=>{if(!t)return;let e=setInterval(()=>{i(e=>e===s.length-1?0:e+1)},a);return()=>clearInterval(e)},[t,s.length,a]),0===s.length)?(0,e.jsx)("div",{className:e9,children:"Нет изображений для отображения"}):(0,e.jsxs)("div",{className:e9,children:[(0,e.jsx)("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*o}%)`},children:s.map((s,l)=>(0,e.jsx)("div",{className:"style__a5l83v2",children:(0,e.jsx)("img",{src:s.src,alt:s.alt||`Slide ${l+1}`,className:"style__a5l83v3"})},s.src))}),s.length>1&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{type:"button",className:(0,l.clsx)(e3,"style__a5l83v5"),onClick:()=>{i(e=>0===e?s.length-1:e-1)},children:(0,e.jsx)(r.ChevronLeft,{size:24})}),(0,e.jsx)("button",{type:"button",className:(0,l.clsx)(e3,"style__a5l83v6"),onClick:()=>{i(e=>e===s.length-1?0:e+1)},children:(0,e.jsx)(r.ChevronRight,{size:24})}),(0,e.jsx)("div",{className:"style__a5l83v7",children:s.map(({src:s},l)=>(0,e.jsx)("button",{type:"button",className:`style__a5l83v8 ${o===l?"active":""}`,onClick:()=>c(l)},s))})]})]})};var se="style__1blk89uc",ss="style__1blk89u6",sl={small:"small__1blk89u9",medium:"medium__1blk89ua",large:"large__1blk89ub"},st={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"};let sa=n.default.forwardRef(({error:s,variant:t="outlined",size:a="medium",startAdornment:r,endAdornment:o,className:n,disabled:i,fullWidth:c,value:d,..._},m)=>(0,e.jsxs)("div",{className:(0,l.clsx)("style__1blk89u0",st[t],{style__1blk89u7:s},{[ss]:i},{style__1blk89u3:c},n),children:[r&&(0,e.jsx)("span",{className:se,children:r}),(0,e.jsx)("input",{className:(0,l.clsx)("style__1blk89u8",{[ss]:i},sl[a],r&&"style__1blk89ud",o&&"style__1blk89ue"),ref:m,disabled:i,value:d||"",..._}),o&&(0,e.jsx)("span",{className:se,children:o})]}));var sr="style__h9oy583";let so=({className:s,...t})=>(0,e.jsxs)(m.Root,{className:(0,l.clsx)("style__h9oy580",s),...t,children:[(0,e.jsx)(m.Track,{className:"style__h9oy581",children:(0,e.jsx)(m.Range,{className:"style__h9oy582"})}),(0,e.jsx)(m.Thumb,{className:sr}),t.value?.length===2&&(0,e.jsx)(m.Thumb,{className:sr})]});var sn={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},si="style__1pnwkko7",sc="style__1pnwkko6";function sd({min:s,max:t,onChange:a,minValue:r,maxValue:o,width:i=150,title:c,size:d="md",className:_,isActive:m,minInputRef:x,maxInputRef:h}){let[u,y]=(0,n.useState)(s),[p,j]=(0,n.useState)(t),g=e=>{"Enter"===e.key&&a(u>=s&&u<=t?u:s,p>=s&&p<=t?p:t)};return(0,n.useEffect)(()=>{y(r||s),j(o||t)},[r,o,s,t]),(0,e.jsxs)("div",{className:(0,l.clsx)("style__1pnwkko0",sn[d],{style__1pnwkko1:m},_),style:{width:i},children:[(0,e.jsx)(b,{className:"style__1pnwkko5",children:c}),(0,e.jsx)("span",{className:sc,children:"от"}),(0,e.jsx)("input",{className:si,type:"text",value:u,onChange:e=>{let{value:s}=e.target;Number.isNaN(+s)||y(+s)},onKeyDown:g,ref:x}),(0,e.jsx)("span",{className:sc,children:"до"}),(0,e.jsx)("input",{className:si,type:"text",value:p,onChange:e=>{let{value:s}=e.target;Number.isNaN(s)||j(+s)},onKeyDown:g,ref:h}),(0,e.jsx)("div",{className:"style__1pnwkko8",children:(0,e.jsx)(so,{min:s,max:t,value:[u,p],onValueChange:e=>{Array.isArray(e)&&(y(e[0]),j(e[1]))},onValueCommit:e=>{Array.isArray(e)&&a(e[0],e[1])}})})]})}function s_({onClick:s,variant:t="outline",...a}){let[o,i]=(0,n.useState)(!1),c=()=>{window.scrollY>400?i(!0):i(!1)};return(0,n.useEffect)(()=>(window.addEventListener("scroll",c),()=>{window.removeEventListener("scroll",c)}),[]),(0,e.jsx)(g,{type:"button",variant:t,className:(0,l.clsx)("style__1ou2vjc0",{style__1ou2vjc1:o}),onClick:s||(()=>{window.scrollTo({top:0,left:0,behavior:"auto"})}),...a,children:(0,e.jsx)(r.ChevronUp,{})})}var sm="style__5ilg7o3",sx="style__5ilg7oa";let sh=x.Root,su=x.Group,sy=x.Value,sp=({className:s,children:t,...a})=>(0,e.jsxs)(x.Trigger,{className:(0,l.clsx)("style__5ilg7o2",s),...a,children:[t,(0,e.jsx)(x.Icon,{asChild:!0,children:(0,e.jsx)(r.ChevronDown,{className:"style__5ilg7ob"})})]}),sj=({className:s,...t})=>(0,e.jsx)(x.ScrollUpButton,{className:(0,l.clsx)(sm,s),...t,children:(0,e.jsx)(r.ChevronUp,{className:sx})}),sg=({className:s,...t})=>(0,e.jsx)(x.ScrollDownButton,{className:(0,l.clsx)(sm,s),...t,children:(0,e.jsx)(r.ChevronDown,{className:sx})}),sb=({className:s,children:t,position:a="popper",...r})=>(0,e.jsx)(x.Portal,{children:(0,e.jsxs)(x.Content,{className:(0,l.clsx)("style__5ilg7o4",s),position:a,...r,children:[(0,e.jsx)(sj,{}),(0,e.jsx)(x.Viewport,{className:"style__5ilg7o5",children:t}),(0,e.jsx)(sg,{})]})}),sv=({className:s,...l})=>(0,e.jsx)(x.Label,{className:`style__5ilg7o6 ${s||""}`,...l}),sf=({className:s,children:l,...t})=>(0,e.jsxs)(x.Item,{className:`style__5ilg7o7 ${s||""}`,...t,children:[(0,e.jsx)("span",{className:"style__5ilg7o8",children:(0,e.jsx)(x.ItemIndicator,{children:(0,e.jsx)(r.Check,{className:sx})})}),(0,e.jsx)(x.ItemText,{children:l})]}),sw=({className:s,...l})=>(0,e.jsx)(x.Separator,{className:`style__5ilg7o9 ${s||""}`,...l}),sk=({className:s,...t})=>(0,e.jsx)(h.Content,{className:(0,l.clsx)("style__hworoa2",s),...t}),sN=({className:s,...t})=>(0,e.jsx)(h.List,{className:(0,l.clsx)("style__hworoa0",s),...t}),sC=({className:s,...t})=>(0,e.jsx)(h.Trigger,{className:(0,l.clsx)("style__hworoa1",s),...t});var sz="style__kqu4y22";let sS=({label:s,helperText:t,className:a,disabled:r,fullWidth:o,ref:n,labelClassName:i,...c})=>(0,e.jsxs)("div",{className:(0,l.clsx)("style__kqu4y20",{style__kqu4y24:o},a),children:[s&&(0,e.jsx)(b,{htmlFor:c.id||s,disabled:r,className:(0,l.clsx)(i,{[sz]:r}),children:s}),(0,e.jsx)(sa,{ref:n,disabled:r,fullWidth:o,id:c.id||s,...c}),t&&(0,e.jsx)("p",{className:(0,l.clsx)("style__kqu4y21",{style__kqu4y23:c.error,[sz]:r}),children:t})]});var sT={colors:{primary:"var(--colors-primary)",secondary:"var(--colors-secondary)",warning:"var(--colors-warning)",error:"var(--colors-error)",success:"var(--colors-success)",border:"var(--colors-border)",info:"var(--colors-info)",background:{tooltip:"var(--colors-background-tooltip)",paper:"var(--colors-background-paper)",element:"var(--colors-background-element)",elementHover:"var(--colors-background-elementHover)"},foreground:{primary:"var(--colors-foreground-primary)",secondary:"var(--colors-foreground-secondary)"},text:{primary:"var(--colors-text-primary)",secondary:"var(--colors-text-secondary)",disabled:"var(--colors-text-disabled)",hint:"var(--colors-text-hint)"}},spacing:{1:"var(--spacing-1)",2:"var(--spacing-2)",3:"var(--spacing-3)",4:"var(--spacing-4)",5:"var(--spacing-5)",6:"var(--spacing-6)",8:"var(--spacing-8)",10:"var(--spacing-10)",12:"var(--spacing-12)",16:"var(--spacing-16)",20:"var(--spacing-20)"},fontSize:{xs:"var(--fontSize-xs)",sm:"var(--fontSize-sm)",base:"var(--fontSize-base)",lg:"var(--fontSize-lg)",xl:"var(--fontSize-xl)","2xl":"var(--fontSize-2xl)","3xl":"var(--fontSize-3xl)","4xl":"var(--fontSize-4xl)"},fontWeight:{normal:"var(--fontWeight-normal)",medium:"var(--fontWeight-medium)",semibold:"var(--fontWeight-semibold)",bold:"var(--fontWeight-bold)"},lineHeight:{none:"var(--lineHeight-none)",tight:"var(--lineHeight-tight)",snug:"var(--lineHeight-snug)",normal:"var(--lineHeight-normal)",relaxed:"var(--lineHeight-relaxed)",loose:"var(--lineHeight-loose)"},borderRadius:{sm:"var(--borderRadius-sm)",md:"var(--borderRadius-md)",lg:"var(--borderRadius-lg)"},boxShadow:{sm:"var(--boxShadow-sm)",default:"var(--boxShadow-default)",md:"var(--boxShadow-md)",lg:"var(--boxShadow-lg)",xl:"var(--boxShadow-xl)"}},sD=o.Popover,sP=o.PopoverTrigger,sI=h.Tabs,sR=u.createTheme,sA=u.globalKeyframes,sL=u.globalStyle,sM=u.keyframes,sE=u.style,sq=u.styleVariants;export{g as Button,v as ButtonGroup,f as Card,C as CardContent,N as CardDescription,z as CardFooter,w as CardHeader,k as CardTitle,S as Checkbox,P as CircularProgress,W as ConfirmAction,Q as ContentState,eo as CopyTypography,eX as DEFAULT_SEPARATOR,eY as DEFAULT_SYMBOL,eJ as DESCRIPTION_ROOT_CLASSNAME,eu as DataGrid,eq as DataGridActionCell,eB as DataGridSortHeader,eK as DataList,e5 as Description,e4 as Dialog,ep as DropdownMenu,ez as DropdownMenuCheckboxItem,eN as DropdownMenuContent,eg as DropdownMenuGroup,eC as DropdownMenuItem,eT as DropdownMenuLabel,eb as DropdownMenuPortal,ef as DropdownMenuRadioGroup,eS as DropdownMenuRadioItem,eD as DropdownMenuSeparator,eP as DropdownMenuShortcut,ev as DropdownMenuSub,ek as DropdownMenuSubContent,ew as DropdownMenuSubTrigger,ej as DropdownMenuTrigger,F as Image,e7 as ImageCarousel,sa as Input,b as Label,J as Placeholder,I as PopoverContent,sd as RangeInput,s_ as ScrollTopButton,sh as Select,sb as SelectContent,su as SelectGroup,sf as SelectItem,sv as SelectLabel,sg as SelectScrollDownButton,sj as SelectScrollUpButton,sw as SelectSeparator,sp as SelectTrigger,sy as SelectValue,so as Slider,sk as TabsContent,sN as TabsList,sC as TabsTrigger,sS as TextField,et as Tooltip,H as Typography,L as alignments,j as buttonSizes,p as buttonVariants,R as colors,O as displays,A as transforms,E as variants,sT as vars,M as weights,sD as Popover,sP as PopoverTrigger,sI as Tabs,sR as createTheme,sA as globalKeyframes,sL as globalStyle,sM as keyframes,sE as style,sq as styleVariants};
|
|
1
|
+
import{Fragment as e,jsx as l,jsxs as t}from"react/jsx-runtime";import{Slot as a}from"@radix-ui/react-slot";import s,{clsx as r}from"clsx";import{Root as n}from"@radix-ui/react-label";import{Indicator as i,Root as o}from"@radix-ui/react-checkbox";import{ArrowDownNarrowWide as c,ArrowDownUp as d,ArrowDownWideNarrow as _,Check as m,ChevronDown as h,ChevronLeft as y,ChevronRight as u,ChevronUp as p,Circle as g,Copy as b,EllipsisVertical as v,X as f}from"lucide-react";import{Content as N,Popover as w,PopoverTrigger as k,Portal as x}from"@radix-ui/react-popover";import C,{createContext as z,createElement as S,useCallback as D,useContext as T,useEffect as P,useMemo as A,useRef as R,useState as L}from"react";import{Arrow as I,Content as M,Portal as q,Provider as O,Root as E,Trigger as j}from"@radix-ui/react-tooltip";import{CheckboxItem as B,Content as H,Group as $,Item as W,ItemIndicator as V,Label as G,Portal as F,RadioGroup as K,RadioItem as U,Root as Y,Separator as X,Sub as J,SubContent as Q,SubTrigger as Z,Trigger as ee}from"@radix-ui/react-dropdown-menu";import{Virtuoso as el}from"react-virtuoso";import{Close as et,Content as ea,Description as es,Overlay as er,Portal as en,Root as ei,Title as eo,Trigger as ec}from"@radix-ui/react-dialog";import{Range as ed,Root as e_,Thumb as em,Track as eh}from"@radix-ui/react-slider";import{Content as ey,Group as eu,Icon as ep,Item as eg,ItemIndicator as eb,ItemText as ev,Label as ef,Portal as eN,Root as ew,ScrollDownButton as ek,ScrollUpButton as ex,Separator as eC,Trigger as ez,Value as eS,Viewport as eD}from"@radix-ui/react-select";import{Content as eT,List as eP,Tabs as eA,Trigger as eR}from"@radix-ui/react-tabs";import{createTheme as eL,globalKeyframes as eI,globalStyle as eM,keyframes as eq,style as eO,styleVariants as eE}from"@vanilla-extract/css";var ej,eB={sm:"sm__1ersxw19",md:"md__1ersxw1a",lg:"lg__1ersxw1b",icon:"icon__1ersxw1c",iconSm:"iconSm__1ersxw1d"},eH={default:"default__1ersxw14 style__1ersxw10",destructive:"destructive__1ersxw15 style__1ersxw10",outline:"outline__1ersxw16 style__1ersxw10",ghost:"ghost__1ersxw17 style__1ersxw10",link:"link__1ersxw18 style__1ersxw10"};let e$=({className:e,variant:t="default",size:s="md",asChild:n=!1,isLoading:i=!1,fullWidth:o,...c})=>l(n?a:"button",{className:r(eH[t],eB[s],{style__1ersxw13:o,style__1ersxw12:i},e),...c}),eW=({className:e,disabled:t,...a})=>l(n,{className:r("style__c31e140",{style__c31e141:t},e),...a}),eV=({value:e,onChange:a,options:s,size:n,className:i,label:o,multiple:c})=>{let d=!0===c,_=l=>d?e.includes(l):e===l,m=l=>{d?e.includes(l)?a(e.filter(e=>e!==l)):a([...e,l]):a(l)};return t("div",{className:r("style__1iqvz720",i),children:[o&&l(eW,{className:"style__1iqvz722",children:o}),s.map(e=>l(e$,{size:n,className:"style__1iqvz721",disabled:e.disabled,onClick:()=>m(e.value),variant:_(e.value)?"default":"outline",children:e.label},e.value))]})},eG=({className:e,...t})=>l("div",{className:r("style__oyalw00",e),...t}),eF=({className:e,...t})=>l("div",{className:r("style__oyalw01",e),...t}),eK=({className:e,...t})=>l("h3",{className:r("style__oyalw02",e),...t}),eU=({className:e,...t})=>l("p",{className:r("style__oyalw03",e),...t}),eY=({className:e,...t})=>l("div",{className:r("style__oyalw04",e),...t}),eX=({className:e,...t})=>l("div",{className:r("style__oyalw05",e),...t}),eJ=({className:e,...t})=>l(o,{className:r("style__b7yo4k0",e),...t,children:l(i,{className:"style__b7yo4k1",children:l(m,{className:"style__b7yo4k2"})})});var eQ={determinate:"determinate__m6b9n25",indeterminate:"indeterminate__m6b9n26"},eZ={primary:"primary__m6b9n27",secondary:"secondary__m6b9n28",inherit:"inherit__m6b9n29"};let e1=({size:e=30,thickness:a=2.6,color:r="primary",value:n=0,variant:i="indeterminate",className:o})=>{let c=(e-a)/2,d=2*Math.PI*c;return l("div",{className:s("style__m6b9n22",eQ[i],eZ[r],o),style:{width:e,height:e},children:t("svg",{className:"style__m6b9n23",viewBox:`0 0 ${e} ${e}`,children:[l("title",{children:"Progress bar"}),l("circle",{className:s("style__m6b9n24","determinate"===i&&eQ.determinate),cx:e/2,cy:e/2,r:c,fill:"none",strokeWidth:a,strokeDasharray:d,strokeDashoffset:"determinate"===i?d*(1-n/100):.25*d})]})})},e0=({className:e,align:t="center",sideOffset:a=4,...s})=>l(x,{children:l(N,{align:t,sideOffset:a,className:r("style__1xy4jvu2",e),...s})});var e2={left:"left__1sba6zoj",center:"center__1sba6zok",right:"right__1sba6zol",justify:"justify__1sba6zom"},e6={primary:"primary__1sba6zoc",secondary:"secondary__1sba6zod",disabled:"disabled__1sba6zoe",success:"success__1sba6zof",error:"error__1sba6zog",warning:"warning__1sba6zoh",info:"info__1sba6zoi"},e8={h1:"h1__1sba6zo0",h2:"h2__1sba6zo1",h3:"h3__1sba6zo2",h4:"h4__1sba6zo3",h5:"h5__1sba6zo4",h6:"h6__1sba6zo5",subtitle1:"subtitle1__1sba6zo6",subtitle2:"subtitle2__1sba6zo7",body1:"body1__1sba6zo8",body2:"body2__1sba6zo9",caption:"caption__1sba6zoa",overline:"overline__1sba6zob"},e5={lowercase:"lowercase__1sba6zot",uppercase:"uppercase__1sba6zou",capitalize:"capitalize__1sba6zov"},e4={block:"block__1sba6zon",inline:"inline__1sba6zoo"},e3={normal:"normal__1sba6zop",medium:"medium__1sba6zoq",semibold:"semibold__1sba6zor",bold:"bold__1sba6zos"},e9={none:"none__1sba6zow",underline:"underline__1sba6zox",lineThrough:"lineThrough__1sba6zoy"};let e7={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",caption:"span",overline:"span"},le=({className:e,variant:t="body1",component:a,color:s="primary",align:n="left",display:i="inline",weight:o="normal",transform:c,decoration:d="none",gutterBottom:_,children:m,...h})=>l(a||e7[t||"body1"],{className:r(e9[d],e8[t],e6[s],e3[o],c&&e5[c],e4[i],e2[n],{style__1sba6zoz:_},e),...h,children:m}),ll=({skipConfirm:e,onConfirm:l,confirmButtonProps:t})=>{let[a,s]=L(!1);return{open:a,onActionComponentClick:()=>{e?l():s(!0)},confirmButtonProps:{variant:t?.isAccented?"destructive":"default",onClick:()=>{s(!1),l()},size:"sm"},onCancel:()=>{s(!1)},onOpenChange:e=>{s(e)}}},lt=e=>{let{open:a,onActionComponentClick:s,onCancel:n,confirmButtonProps:i,onOpenChange:o}=ll(e),{text:c,confirmButtonProps:d,popoverProps:_,actionComponent:m}=e,{text:h="Подтвердить"}=d||{},{side:y="bottom",align:u="center"}=_||{};return t(w,{open:a,onOpenChange:o,children:[l(k,{asChild:!0,children:m({onClick:s})}),l(e0,{side:y,align:u,className:r("style__1q1uhgp2",{style__1q1uhgp3:!!c}),children:t("div",{className:"style__1q1uhgp1",children:[c&&l(le,{children:c}),t("div",{className:"style__1q1uhgp0",children:[l(e$,{variant:"ghost",size:"sm",onClick:n,children:"Отмена"}),l(e$,{...i,children:h})]})]})})]})};var la={sm:"sm__1o97kvm1",md:"md__1o97kvm2",lg:"lg__1o97kvm3"};let ls=e=>l("img",{alt:e.alt,src:e.src,className:s("style__1o97kvm0",la[e.size||"md"],e.className),width:e.width,height:e.height}),lr={sm:"239px",md:"323px",lg:"458px"},ln={sm:"119px",md:"161px",lg:"229px"},li={sm:"384px",md:"400px",lg:"460px"},lo={sm:"subtitle1",md:"h6",lg:"h5"};var lc={sm:"sm__1nenzg01",md:"md__1nenzg02",lg:"lg__1nenzg03"};let ld=({className:e,title:a,imgSrc:r,imgAlt:n,description:i,actions:o,size:c="sm",renderImage:d})=>{let _=A(()=>d||ls,[d]);return t("div",{className:s("style__1nenzg00",lc[c],e),children:[t("div",{className:"style__1nenzg04",style:{maxWidth:li[c]},children:[r&&l(_,{src:r,alt:n,width:lr[c],height:ln[c],size:c}),l(le,{align:"center",color:"secondary",variant:lo[c],children:a}),i&&l(le,{className:"style__1nenzg05",component:"div",variant:"body1",children:i})]}),o&&l("footer",{className:"style__1nenzg06",children:o})]})},l_=({isLoading:e,isError:t,isCustom:a,errorState:s,customState:r,children:n,loadingContent:i=l(e1,{color:"primary"})})=>{if(e)return l("div",{className:"style__nan0ao0",children:i});if(a&&r)return l(ld,{...r});if(t&&s){let{title:e="Произошла ошибка",imgAlt:t,imgSrc:a,errorList:r,onRetry:n,actions:i=l(e$,{onClick:n,children:"Попробовать снова"})}=s,o=r.map(e=>l(le,{component:"p",children:e},e));return l(ld,{title:e,description:o,imgAlt:t,imgSrc:a,actions:i})}return n},lm=({sideOffset:e=4,alignOffset:t,ref:a,...s})=>l(M,{ref:a,sideOffset:e,...s}),lh=({text:e,content:a,children:r,side:n="top",sideOffset:i,alignOffset:o,delayDuration:c=0,className:d,ref:_,...m})=>l(O,{delayDuration:c,children:t(E,{...m,children:[l(j,{ref:_,asChild:!0,children:r}),a||e?l(q,{children:t(lm,{className:s("style__izacrl2",d),alignOffset:o,sideOffset:i,hideWhenDetached:!0,side:n,children:[a??l("p",{className:"style__izacrl3",children:e}),m.arrow&&l(I,{className:"style__izacrl4"})]})}):null]})});var ly=((ej={}).Copied="Скопировано",ej.Error="Ошибка копирования",ej.CanCopy="Скопировать",ej);let lu=({children:e,copyText:l,isShowCopyText:t,copyPosition:a})=>{let[s,r]=L(ly.CanCopy),[n,i]=L(!1);return{handleMouseLeave:()=>{s!==ly.CanCopy&&setTimeout(()=>{r(ly.CanCopy)},100),i(!1)},handleClick:t=>{t.stopPropagation(),navigator.clipboard.writeText(l||("string"==typeof e?e:"")).then(()=>r(ly.Copied)).catch(()=>r(ly.Error))},tooltipTitle:t?`${s}: ${l}`:s,isIconOnLeft:"left"===a,tooltipOpen:n,handleMouseEnter:()=>{i(!0)}}},lp=e=>{let{children:a,copyPosition:s="right",copyText:n,isShowCopyText:i,color:o,className:c,...d}=e,_=()=>l(b,{className:"style__1wpx85c1"}),{tooltipOpen:m,handleMouseEnter:h,handleMouseLeave:y,handleClick:u,tooltipTitle:p,isIconOnLeft:g}=lu(e);return l(lh,{open:m,arrow:!0,text:p,side:"bottom",children:t(le,{onMouseLeave:y,onMouseEnter:h,onClick:u,component:"div",color:o,className:r("style__1wpx85c0",c),...d,children:[g&&_(),a,!g&&_()]})})};function lg({row:e,column:t,rowIndex:a,height:s}){let{align:n,cellColor:i,isDisabled:o}=t;return l("td",{align:n??"left",style:{backgroundColor:i?.(e),height:s,width:t.width},className:r("style__1047swj0",{style__1047swj1:o},t.cellClassName?.(e)),children:l(()=>t.renderCell?t.renderCell(e,a):t.format?t.format(e)||"—":t.field?`${e[t.field]||"—"}`:"—",{})})}function lb({row:e,rowHeight:t,onRowClick:a,columns:s,rowIndex:n,rowId:i}){let o=D(()=>{a?.(e)},[a,e]);return l("tr",{onClick:o,onKeyDown:o,className:r("style__gsm9mv0",{style__gsm9mv1:!!a}),children:s.map((a,s)=>l(lg,{row:e,rowIndex:n,column:a,height:t},`${i}-${s}`))})}function lv({isLoading:e,isEmpty:t,columnsLength:a,emptyState:s={text:"Нет данных"},errorState:r={text:"Произошла ошибка"},isError:n,onRetry:i}){let o=({children:e})=>l("tr",{className:"style__15m2ib80",children:l("td",{colSpan:a,align:"center",children:e})});if(e)return l(o,{children:l("span",{className:"style__15m2ib81",children:l(e1,{})})});if(t){let{imgSrc:e,imgAlt:t,text:a}=s;return l(o,{children:l(ld,{title:a,imgSrc:e,imgAlt:t})})}if(n){let{imgSrc:e,imgAlt:t,text:a}=r;return l(o,{children:l(ld,{title:a,imgSrc:e,imgAlt:t,actions:i?l(e$,{variant:"outline",onClick:i,children:"Попробовать снова"}):void 0})})}return null}var lf="style__82af400";function lN({isError:e,isLoading:t,emptyState:a,errorState:s,columns:r,rows:n,rowHeight:i,keyId:o,onRowClick:c}){let d=0===n.length;return e||t||d?l("tbody",{className:lf,children:l(lv,{emptyState:a,errorState:s,isEmpty:d,isError:e,isLoading:t,columnsLength:r.length})}):l("tbody",{className:lf,children:n.map((e,t)=>{let a=String(e[o]);return l(lb,{row:e,rowId:a,rowHeight:i,columns:r,onRowClick:c,rowIndex:t},e[o])})})}function lw({children:e,columnsLength:t,className:a}){return l("tfoot",{className:r("style__2s55b60",a),children:l("tr",{children:l("td",{colSpan:t,align:"center",children:e})})})}function lk({column:e,height:t,width:a}){return l("th",{style:{color:e.color,height:t,width:a},align:e.align??"left",title:e.title,className:"style__uma6hu0",children:e.renderHeaderCell?.(e)||e.title})}function lx({columns:e,height:t,sticky:a}){return l("thead",{children:l("tr",{className:r({style__fkgoub0:a}),children:e.map(e=>l(lk,{column:e,height:t,width:e.width},e.title))})})}function lC({rows:e,columns:a,height:s="100%",className:n,rowHeight:i=40,headerHeight:o=40,keyId:c,onRowClick:d,isLoading:_,isDisabled:m,isError:h,emptyState:y,errorState:u,footer:p,title:g,stickyHeader:b,onRetry:v}){return t("div",{style:{height:s},className:r("style__1gqvluf0",n),children:[t("table",{className:r("style__1gqvluf1",{style__1gqvluf2:m,style__1gqvluf3:_},n),children:[g&&l("caption",{className:"style__1gqvluf4",children:g}),l(lx,{columns:a,height:o,sticky:b}),l(lN,{rows:e,columns:a,rowHeight:i,keyId:c,onRowClick:d,isLoading:_,emptyState:y,errorState:u,isError:h,onRetry:v})]}),p&&l(lw,{columnsLength:a.length,children:p})]})}var lz="style__1ib8wkt3";let lS=Y,lD=ee,lT=$,lP=F,lA=J,lR=K,lL=({className:e,inset:a,children:r,...n})=>t(Z,{className:s("style__1ib8wkt2",{inset:a},e),...n,children:[r,l(u,{className:lz})]}),lI=({className:e,...t})=>l(Q,{className:s("style__1ib8wkt4",e),...t}),lM=({className:e,sideOffset:t=4,...a})=>l(F,{children:l(H,{sideOffset:t,className:s("style__1ib8wkt5",e),...a})}),lq=({className:e,inset:t,...a})=>l(W,{className:s("style__1ib8wkt6",{inset:t},e),...a}),lO=({className:e,children:a,checked:r,...n})=>t(B,{className:s("style__1ib8wkt7",e),checked:r,...n,children:[l("span",{className:"style__1ib8wkt9",children:l(V,{children:l(m,{className:lz})})}),a]}),lE=({className:e,children:a,...r})=>t(U,{className:s("style__1ib8wkt8",e),...r,children:[l("span",{className:"style__1ib8wkta",children:l(V,{children:l(g,{className:lz})})}),a]}),lj=({className:e,inset:t,...a})=>l(G,{className:s("style__1ib8wktb",{inset:t},e),...a}),lB=({className:e,...t})=>l(X,{className:s("style__1ib8wktc",e),...t}),lH=({className:e,...t})=>l("span",{className:s("style__1ib8wktd",e),...t}),l$=({action:e})=>{let{isLoading:l,disabledReason:t,name:a}=e,[s,r]=L(!1);return P(()=>{l&&r(!1)},[l]),{tooltipProps:{text:t||a,open:s,onOpenChange:e=>r(e)}}},lW=t=>{let{tooltipProps:a}=l$(t),{action:s,onActionClick:r,isDisabled:n,tooltipPlacement:i}=t,{name:o,icon:c,needConfirm:d,confirmText:_,confirmButtonProps:m,disabled:h,isLoading:y,onClick:u}=s,p=e=>l(lh,{arrow:!0,side:i,...a,children:l(e$,{disabled:n||h,isLoading:y,variant:"ghost",size:"icon",...e,children:c})},o);return l(e,{children:d?l(lt,{text:_,confirmButtonProps:m,actionComponent:e=>p(e),onConfirm:r(u)}):p({onClick:r(u)})})},lV=({action:e,onActionClick:a,isDisabled:s,tooltipPlacement:r})=>{if("actions"in e){let{disabled:n,icon:i,name:o,disabledReason:c,actions:d,isLoading:_}=e;return t(lS,{children:[l(lD,{asChild:!0,children:l(lh,{text:c||o,side:r,arrow:!0,children:l(e$,{variant:"ghost",size:"icon",isLoading:_,disabled:s||n,children:i})},o)}),l(lM,{children:d.map(({name:e,onClick:t,...s})=>S(lq,{...s,key:e,asChild:!0},l(e$,{size:"sm",onClick:a(t),children:e})))})]})}return l(lW,{action:e,onActionClick:a,isDisabled:s,tooltipPlacement:r})},lG=({actions:e,onActionClick:a,tooltipPlacement:s,isDisabled:r})=>t(lS,{children:[l(lD,{asChild:!0,children:l(e$,{disabled:r,variant:"ghost",size:"icon",children:l(v,{})})}),l(lM,{children:e.map(e=>{let{onClick:t,name:r,disabledReason:n,isLoading:i}=e;return l(lq,{asChild:!0,children:l(lh,{arrow:!0,side:s,text:n,children:l(e$,{onClick:a(t),isLoading:i,variant:"ghost",size:"sm",fullWidth:!0,children:r})})},r)})})]}),lF=({row:e,actions:l})=>{let{main:t,secondary:a}=l,s=[...t,...a||[]].find(e=>e.isBlockingOperation&&e.isLoading);return{isDisabledAction:!!s,handleActionClick:D(l=>()=>{l?.(e)},[e]),handleWrapperClick:e=>{e.stopPropagation()}}},lK={mainAction:"top",secondaryAction:"left"},lU=e=>{let{isDisabledAction:a,handleWrapperClick:s,handleActionClick:r}=lF(e),{actions:n}=e,{main:i,secondary:o}=n;return t("div",{onClick:s,onKeyDown:s,className:"style__y44ln70",children:[i.map(e=>l(lV,{action:e,onActionClick:r,isDisabled:a,tooltipPlacement:lK.mainAction},e.name)),o&&l(lG,{actions:o,onActionClick:r,tooltipPlacement:lK.secondaryAction,isDisabled:a})]})};var lY={left:"left__o752f01",center:"center__o752f02",right:"right__o752f03",justify:"justify__o752f04"};function lX({sorting:e,setSorting:a,column:{title:s,field:n,align:i="left"},className:o}){return n?t("button",{type:"button",className:r("style__o752f00",lY[i],o),onClick:()=>{e.key===n?a({key:n,order:"asc"===e.order?"desc":"asc"}):a({key:n,order:"asc"})},children:[s,e.key===n?"asc"===e.order?l(c,{size:16}):l(_,{size:16}):l(d,{size:16})]}):null}let lJ=e=>{let{initialState:l=!1,onInactive:t,onActive:a}=e||{},[s,r]=L(l);return[s,(...e)=>{r(!0),a?.(...e)},(...e)=>{r(!1),t?.(...e)}]},lQ="Вы достигли конца списка",lZ=({endOfScrollMsg:e=lQ})=>l("li",{className:"style__1syvw5e0",children:l(le,{children:e})}),l1=({onRetry:e})=>t("li",{className:"style__qlujai0",children:[l(le,{align:"center",children:"Ошибка загрузки"}),l(e$,{size:"sm",onClick:e,children:"Попробовать снова"})]}),l0=()=>l("li",{className:"style__111czea0",children:l(e1,{color:"primary"})}),l2=({noDataImgSrc:e})=>l(ld,{title:"Нет данных",imgSrc:e}),l6=({onClick:e,isVisible:t})=>l(e$,{onClick:e,size:"icon",variant:"outline",className:r("style__1jg5nd90",{style__1jg5nd91:t}),children:l(p,{})}),l8=({data:a,keyId:s,className:n,itemContent:i,noDataPlaceholder:o,endOfScrollMsg:c,errorState:d,isLoading:_,isError:m,isEndReached:h,onRetry:y,onEndReached:u,scrollTopIsDataChanged:p})=>{let g=R(null),[b,v,f]=lJ(),N=D(e=>{e.startIndex>2?v():f()},[f,v]),w=D(()=>g.current?.scrollToIndex({index:0,align:"start",behavior:"smooth"}),[g]),k=D(()=>{!h&&u&&u()},[h,u]),x=!!a?.length;return x||_||m?(P(()=>{p&&g.current?.scrollToIndex({index:0,align:"start"})},[p,a]),t(l_,{isLoading:_&&!x,isError:m&&!x,errorState:d,children:[l(el,{className:r("style__1ezen7g0",n),style:{height:"100%"},data:a,ref:g,overscan:30,endReached:k,rangeChanged:N,itemContent:(e,t)=>l("li",{children:i?.(t,{index:e,className:r("style__1ezen7g1","datalist_item")})},t[s]),components:{Footer:()=>t(e,{children:[_&&l(l0,{}),m&&l(l1,{onRetry:y}),h&&l(lZ,{endOfScrollMsg:c})]})}}),l(l6,{isVisible:b,onClick:w})]})):o?l(e,{children:o}):l(l2,{})},l5=":",l4="—",l3="descriptionRoot",l9=z({leader:!1,separator:l5,direction:"default"}),l7=({children:e,leader:t,separator:a,direction:s})=>l(l9.Provider,{value:{leader:t,separator:a,direction:s},children:e}),te=({canCopy:e,children:l,stub:t="—"})=>{let{leader:a,direction:s}=T(l9);return{valueToRender:l||t,isDefaultValueRender:!e||!l,leader:a,direction:s}};var tl="style__sdcsnp2";let tt=({direction:e="row",separator:l=l5})=>({descriptionContextProviderProps:{separator:"column"===e?"":l},direction:e});var ta={row:"row__1lociyw1",column:"column__1lociyw2"},ts={spaceBetween:"spaceBetween__1lociyw3",start:"start__1lociyw4"};let tr=e=>{let{descriptionContextProviderProps:t,direction:a}=tt(e),{justifyContent:s="start",component:n="dl",children:i,leader:o=!1}=e;return l(l7,{leader:o,direction:a,...t,children:l(n,{className:r("style__1lociyw0",ta[a],ts[s],l3),children:i})})};tr.Name=({children:a,color:s="secondary",...n})=>{let{leader:i,separator:o}=T(l9);return t(e,{children:[l("dt",{className:r("style__1tsgk1i0",{style__1tsgk1i1:i}),children:t(le,{...n,color:s,children:[a,!i&&o]})}),i&&l("div",{className:"style__1tsgk1i2"})]})},tr.Value=e=>{let{valueToRender:t,isDefaultValueRender:a,leader:r}=te(e),{copyPosition:n="right",copyText:i,canCopy:o,children:c,stub:d,..._}=e;return a?l(le,{className:s("style__sdcsnp1",{[tl]:r}),component:"dd",..._,children:t}):l("dd",{className:"style__sdcsnp0",children:l(lp,{className:s({[tl]:r}),copyPosition:n,copyText:i,..._,children:t})})};let tn=({title:e,description:a="",trigger:r,className:n,footer:i,children:o,...c})=>t(ei,{...c,children:[r&&l(ec,{asChild:!0,children:r}),t(en,{children:[l(er,{className:s("style__8bkmbe2")}),t(ea,{className:s("style__8bkmbe5",n),children:[t("div",{className:s("style__8bkmbe8",{style__8bkmbe9:!!a}),children:[l(eo,{className:"style__8bkmbeb",children:e}),l(es,{className:"style__8bkmbec",children:a}),c.onOpenChange&&t(et,{className:"style__8bkmbe6",children:[l(f,{size:24}),l("span",{className:"style__8bkmbe7",children:"Close"})]})]}),o,i&&l("div",{className:"style__8bkmbea",children:i})]})]})]});var ti="style__a5l83v0",to="style__a5l83v4";let tc=({images:a=[],autoPlay:s=!1,interval:n=5e3})=>{let[i,o]=L(0),c=e=>{o(e)};return(P(()=>{if(!s)return;let e=setInterval(()=>{o(e=>e===a.length-1?0:e+1)},n);return()=>clearInterval(e)},[s,a.length,n]),0===a.length)?l("div",{className:ti,children:"Нет изображений для отображения"}):t("div",{className:ti,children:[l("div",{className:"style__a5l83v1",style:{transform:`translateX(-${100*i}%)`},children:a.map((e,t)=>l("div",{className:"style__a5l83v2",children:l("img",{src:e.src,alt:e.alt||`Slide ${t+1}`,className:"style__a5l83v3"})},e.src))}),a.length>1&&t(e,{children:[l("button",{type:"button",className:r(to,"style__a5l83v5"),onClick:()=>{o(e=>0===e?a.length-1:e-1)},children:l(y,{size:24})}),l("button",{type:"button",className:r(to,"style__a5l83v6"),onClick:()=>{o(e=>e===a.length-1?0:e+1)},children:l(u,{size:24})}),l("div",{className:"style__a5l83v7",children:a.map(({src:e},t)=>l("button",{type:"button",className:`style__a5l83v8 ${i===t?"active":""}`,onClick:()=>c(t)},e))})]})]})};var td={small:"small__1blk89u9",medium:"medium__1blk89ua",large:"large__1blk89ub"},t_="style__1blk89uc",tm={outlined:"outlined__1blk89u1",standard:"standard__1blk89u2"},th="style__1blk89u6";let ty=C.forwardRef(({error:e,variant:a="outlined",size:s="medium",startAdornment:n,endAdornment:i,className:o,disabled:c,fullWidth:d,value:_,...m},h)=>t("div",{className:r("style__1blk89u0",tm[a],{style__1blk89u7:e},{[th]:c},{style__1blk89u3:d},o),children:[n&&l("span",{className:t_,children:n}),l("input",{className:r("style__1blk89u8",{[th]:c},td[s],n&&"style__1blk89ud",i&&"style__1blk89ue"),ref:h,disabled:c,value:_||"",...m}),i&&l("span",{className:t_,children:i})]}));var tu="style__h9oy583";let tp=({className:e,...a})=>t(e_,{className:r("style__h9oy580",e),...a,children:[l(eh,{className:"style__h9oy581",children:l(ed,{className:"style__h9oy582"})}),l(em,{className:tu}),a.value?.length===2&&l(em,{className:tu})]});var tg={sm:"sm__1pnwkko2",md:"md__1pnwkko3",lg:"lg__1pnwkko4"},tb="style__1pnwkko7",tv="style__1pnwkko6";function tf({min:e,max:a,onChange:s,minValue:n,maxValue:i,width:o=150,title:c,size:d="md",className:_,isActive:m,minInputRef:h,maxInputRef:y}){let[u,p]=L(e),[g,b]=L(a),v=l=>{"Enter"===l.key&&s(u>=e&&u<=a?u:e,g>=e&&g<=a?g:a)};return P(()=>{p(n||e),b(i||a)},[n,i,e,a]),t("div",{className:r("style__1pnwkko0",tg[d],{style__1pnwkko1:m},_),style:{width:o},children:[l(eW,{className:"style__1pnwkko5",children:c}),l("span",{className:tv,children:"от"}),l("input",{className:tb,type:"text",value:u,onChange:e=>{let{value:l}=e.target;Number.isNaN(+l)||p(+l)},onKeyDown:v,ref:h}),l("span",{className:tv,children:"до"}),l("input",{className:tb,type:"text",value:g,onChange:e=>{let{value:l}=e.target;Number.isNaN(l)||b(+l)},onKeyDown:v,ref:y}),l("div",{className:"style__1pnwkko8",children:l(tp,{min:e,max:a,value:[u,g],onValueChange:e=>{Array.isArray(e)&&(p(e[0]),b(e[1]))},onValueCommit:e=>{Array.isArray(e)&&s(e[0],e[1])}})})]})}function tN({onClick:e,variant:t="outline",...a}){let[s,n]=L(!1),i=()=>{window.scrollY>400?n(!0):n(!1)};return P(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[]),l(e$,{type:"button",variant:t,className:r("style__1ou2vjc0",{style__1ou2vjc1:s}),onClick:e||(()=>{window.scrollTo({top:0,left:0,behavior:"auto"})}),...a,children:l(p,{})})}var tw="style__5ilg7oa",tk="style__5ilg7o3";let tx=ew,tC=eu,tz=eS,tS=({className:e,children:a,...s})=>t(ez,{className:r("style__5ilg7o2",e),...s,children:[a,l(ep,{asChild:!0,children:l(h,{className:"style__5ilg7ob"})})]}),tD=({className:e,...t})=>l(ex,{className:r(tk,e),...t,children:l(p,{className:tw})}),tT=({className:e,...t})=>l(ek,{className:r(tk,e),...t,children:l(h,{className:tw})}),tP=({className:e,children:a,position:s="popper",...n})=>l(eN,{children:t(ey,{className:r("style__5ilg7o4",e),position:s,...n,children:[l(tD,{}),l(eD,{className:"style__5ilg7o5",children:a}),l(tT,{})]})}),tA=({className:e,...t})=>l(ef,{className:`style__5ilg7o6 ${e||""}`,...t}),tR=({className:e,children:a,...s})=>t(eg,{className:`style__5ilg7o7 ${e||""}`,...s,children:[l("span",{className:"style__5ilg7o8",children:l(eb,{children:l(m,{className:tw})})}),l(ev,{children:a})]}),tL=({className:e,...t})=>l(eC,{className:`style__5ilg7o9 ${e||""}`,...t}),tI=({className:e,...t})=>l(eT,{className:r("style__hworoa2",e),...t}),tM=({className:e,...t})=>l(eP,{className:r("style__hworoa0",e),...t}),tq=({className:e,...t})=>l(eR,{className:r("style__hworoa1",e),...t});var tO="style__kqu4y22";let tE=({label:e,helperText:a,className:s,disabled:n,fullWidth:i,ref:o,labelClassName:c,...d})=>t("div",{className:r("style__kqu4y20",{style__kqu4y24:i},s),children:[e&&l(eW,{htmlFor:d.id||e,disabled:n,className:r(c,{[tO]:n}),children:e}),l(ty,{ref:o,disabled:n,fullWidth:i,id:d.id||e,...d}),a&&l("p",{className:r("style__kqu4y21",{style__kqu4y23:d.error,[tO]:n}),children:a})]});var tj={colors:{primary:"var(--colors-primary)",secondary:"var(--colors-secondary)",warning:"var(--colors-warning)",error:"var(--colors-error)",success:"var(--colors-success)",border:"var(--colors-border)",info:"var(--colors-info)",background:{tooltip:"var(--colors-background-tooltip)",paper:"var(--colors-background-paper)",element:"var(--colors-background-element)",elementHover:"var(--colors-background-elementHover)"},foreground:{primary:"var(--colors-foreground-primary)",secondary:"var(--colors-foreground-secondary)"},text:{primary:"var(--colors-text-primary)",secondary:"var(--colors-text-secondary)",disabled:"var(--colors-text-disabled)",hint:"var(--colors-text-hint)"}},spacing:{1:"var(--spacing-1)",2:"var(--spacing-2)",3:"var(--spacing-3)",4:"var(--spacing-4)",5:"var(--spacing-5)",6:"var(--spacing-6)",8:"var(--spacing-8)",10:"var(--spacing-10)",12:"var(--spacing-12)",16:"var(--spacing-16)",20:"var(--spacing-20)"},fontSize:{xs:"var(--fontSize-xs)",sm:"var(--fontSize-sm)",base:"var(--fontSize-base)",lg:"var(--fontSize-lg)",xl:"var(--fontSize-xl)","2xl":"var(--fontSize-2xl)","3xl":"var(--fontSize-3xl)","4xl":"var(--fontSize-4xl)"},fontWeight:{normal:"var(--fontWeight-normal)",medium:"var(--fontWeight-medium)",semibold:"var(--fontWeight-semibold)",bold:"var(--fontWeight-bold)"},lineHeight:{none:"var(--lineHeight-none)",tight:"var(--lineHeight-tight)",snug:"var(--lineHeight-snug)",normal:"var(--lineHeight-normal)",relaxed:"var(--lineHeight-relaxed)",loose:"var(--lineHeight-loose)"},borderRadius:{sm:"var(--borderRadius-sm)",md:"var(--borderRadius-md)",lg:"var(--borderRadius-lg)"},boxShadow:{sm:"var(--boxShadow-sm)",default:"var(--boxShadow-default)",md:"var(--boxShadow-md)",lg:"var(--boxShadow-lg)",xl:"var(--boxShadow-xl)"}};export{e$ as Button,eV as ButtonGroup,eG as Card,eY as CardContent,eU as CardDescription,eX as CardFooter,eF as CardHeader,eK as CardTitle,eJ as Checkbox,e1 as CircularProgress,lt as ConfirmAction,l_ as ContentState,lp as CopyTypography,l5 as DEFAULT_SEPARATOR,l4 as DEFAULT_SYMBOL,l3 as DESCRIPTION_ROOT_CLASSNAME,lC as DataGrid,lU as DataGridActionCell,lX as DataGridSortHeader,l8 as DataList,tr as Description,tn as Dialog,lS as DropdownMenu,lO as DropdownMenuCheckboxItem,lM as DropdownMenuContent,lT as DropdownMenuGroup,lq as DropdownMenuItem,lj as DropdownMenuLabel,lP as DropdownMenuPortal,lR as DropdownMenuRadioGroup,lE as DropdownMenuRadioItem,lB as DropdownMenuSeparator,lH as DropdownMenuShortcut,lA as DropdownMenuSub,lI as DropdownMenuSubContent,lL as DropdownMenuSubTrigger,lD as DropdownMenuTrigger,ls as Image,tc as ImageCarousel,ty as Input,eW as Label,ld as Placeholder,w as Popover,e0 as PopoverContent,k as PopoverTrigger,tf as RangeInput,tN as ScrollTopButton,tx as Select,tP as SelectContent,tC as SelectGroup,tR as SelectItem,tA as SelectLabel,tT as SelectScrollDownButton,tD as SelectScrollUpButton,tL as SelectSeparator,tS as SelectTrigger,tz as SelectValue,tp as Slider,eA as Tabs,tI as TabsContent,tM as TabsList,tq as TabsTrigger,tE as TextField,lh as Tooltip,le as Typography,e2 as alignments,eB as buttonSizes,eH as buttonVariants,e6 as colors,eL as createTheme,e4 as displays,eI as globalKeyframes,eM as globalStyle,eq as keyframes,eO as style,eE as styleVariants,e5 as transforms,e8 as variants,tj as vars,e3 as weights};
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
export declare const vars: {
|
|
2
2
|
colors: {
|
|
3
|
-
primary: `var(--${string})
|
|
4
|
-
secondary: `var(--${string})
|
|
5
|
-
warning: `var(--${string})
|
|
6
|
-
error: `var(--${string})
|
|
7
|
-
success: `var(--${string})
|
|
8
|
-
border: `var(--${string})
|
|
9
|
-
info: `var(--${string})
|
|
3
|
+
primary: `var(--${string})`;
|
|
4
|
+
secondary: `var(--${string})`;
|
|
5
|
+
warning: `var(--${string})`;
|
|
6
|
+
error: `var(--${string})`;
|
|
7
|
+
success: `var(--${string})`;
|
|
8
|
+
border: `var(--${string})`;
|
|
9
|
+
info: `var(--${string})`;
|
|
10
10
|
background: {
|
|
11
|
-
tooltip: `var(--${string})
|
|
12
|
-
paper: `var(--${string})
|
|
13
|
-
element: `var(--${string})
|
|
14
|
-
elementHover: `var(--${string})
|
|
11
|
+
tooltip: `var(--${string})`;
|
|
12
|
+
paper: `var(--${string})`;
|
|
13
|
+
element: `var(--${string})`;
|
|
14
|
+
elementHover: `var(--${string})`;
|
|
15
15
|
};
|
|
16
16
|
foreground: {
|
|
17
|
-
primary: `var(--${string})
|
|
18
|
-
secondary: `var(--${string})
|
|
17
|
+
primary: `var(--${string})`;
|
|
18
|
+
secondary: `var(--${string})`;
|
|
19
19
|
};
|
|
20
20
|
text: {
|
|
21
|
-
primary: `var(--${string})
|
|
22
|
-
secondary: `var(--${string})
|
|
23
|
-
disabled: `var(--${string})
|
|
24
|
-
hint: `var(--${string})
|
|
21
|
+
primary: `var(--${string})`;
|
|
22
|
+
secondary: `var(--${string})`;
|
|
23
|
+
disabled: `var(--${string})`;
|
|
24
|
+
hint: `var(--${string})`;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
spacing: {
|
|
28
|
-
1: `var(--${string})
|
|
29
|
-
2: `var(--${string})
|
|
30
|
-
3: `var(--${string})
|
|
31
|
-
4: `var(--${string})
|
|
32
|
-
5: `var(--${string})
|
|
33
|
-
6: `var(--${string})
|
|
34
|
-
8: `var(--${string})
|
|
35
|
-
10: `var(--${string})
|
|
36
|
-
12: `var(--${string})
|
|
37
|
-
16: `var(--${string})
|
|
38
|
-
20: `var(--${string})
|
|
28
|
+
1: `var(--${string})`;
|
|
29
|
+
2: `var(--${string})`;
|
|
30
|
+
3: `var(--${string})`;
|
|
31
|
+
4: `var(--${string})`;
|
|
32
|
+
5: `var(--${string})`;
|
|
33
|
+
6: `var(--${string})`;
|
|
34
|
+
8: `var(--${string})`;
|
|
35
|
+
10: `var(--${string})`;
|
|
36
|
+
12: `var(--${string})`;
|
|
37
|
+
16: `var(--${string})`;
|
|
38
|
+
20: `var(--${string})`;
|
|
39
39
|
};
|
|
40
40
|
fontSize: {
|
|
41
|
-
xs: `var(--${string})
|
|
42
|
-
sm: `var(--${string})
|
|
43
|
-
base: `var(--${string})
|
|
44
|
-
lg: `var(--${string})
|
|
45
|
-
xl: `var(--${string})
|
|
46
|
-
'2xl': `var(--${string})
|
|
47
|
-
'3xl': `var(--${string})
|
|
48
|
-
'4xl': `var(--${string})
|
|
41
|
+
xs: `var(--${string})`;
|
|
42
|
+
sm: `var(--${string})`;
|
|
43
|
+
base: `var(--${string})`;
|
|
44
|
+
lg: `var(--${string})`;
|
|
45
|
+
xl: `var(--${string})`;
|
|
46
|
+
'2xl': `var(--${string})`;
|
|
47
|
+
'3xl': `var(--${string})`;
|
|
48
|
+
'4xl': `var(--${string})`;
|
|
49
49
|
};
|
|
50
50
|
fontWeight: {
|
|
51
|
-
normal: `var(--${string})
|
|
52
|
-
medium: `var(--${string})
|
|
53
|
-
semibold: `var(--${string})
|
|
54
|
-
bold: `var(--${string})
|
|
51
|
+
normal: `var(--${string})`;
|
|
52
|
+
medium: `var(--${string})`;
|
|
53
|
+
semibold: `var(--${string})`;
|
|
54
|
+
bold: `var(--${string})`;
|
|
55
55
|
};
|
|
56
56
|
lineHeight: {
|
|
57
|
-
none: `var(--${string})
|
|
58
|
-
tight: `var(--${string})
|
|
59
|
-
snug: `var(--${string})
|
|
60
|
-
normal: `var(--${string})
|
|
61
|
-
relaxed: `var(--${string})
|
|
62
|
-
loose: `var(--${string})
|
|
57
|
+
none: `var(--${string})`;
|
|
58
|
+
tight: `var(--${string})`;
|
|
59
|
+
snug: `var(--${string})`;
|
|
60
|
+
normal: `var(--${string})`;
|
|
61
|
+
relaxed: `var(--${string})`;
|
|
62
|
+
loose: `var(--${string})`;
|
|
63
63
|
};
|
|
64
64
|
borderRadius: {
|
|
65
|
-
sm: `var(--${string})
|
|
66
|
-
md: `var(--${string})
|
|
67
|
-
lg: `var(--${string})
|
|
65
|
+
sm: `var(--${string})`;
|
|
66
|
+
md: `var(--${string})`;
|
|
67
|
+
lg: `var(--${string})`;
|
|
68
68
|
};
|
|
69
69
|
boxShadow: {
|
|
70
|
-
sm: `var(--${string})
|
|
71
|
-
default: `var(--${string})
|
|
72
|
-
md: `var(--${string})
|
|
73
|
-
lg: `var(--${string})
|
|
74
|
-
xl: `var(--${string})
|
|
70
|
+
sm: `var(--${string})`;
|
|
71
|
+
default: `var(--${string})`;
|
|
72
|
+
md: `var(--${string})`;
|
|
73
|
+
lg: `var(--${string})`;
|
|
74
|
+
xl: `var(--${string})`;
|
|
75
75
|
};
|
|
76
76
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-ts/kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"main": "./lib/index.mjs",
|
|
6
6
|
"module": "./lib/index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"registry": "https://registry.npmjs.org/"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fontsource-variable/roboto": "^5.2.
|
|
22
|
+
"@fontsource-variable/roboto": "^5.2.6",
|
|
23
23
|
"@radix-ui/react-checkbox": "^1.3.2",
|
|
24
24
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
25
25
|
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"@radix-ui/react-slot": "^1.2.3",
|
|
31
31
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
32
32
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
33
|
-
"@vanilla-extract/css": "^1.17.
|
|
33
|
+
"@vanilla-extract/css": "^1.17.4",
|
|
34
34
|
"clsx": "^2.1.1",
|
|
35
|
-
"lucide-react": "^0.
|
|
36
|
-
"react-virtuoso": "^4.
|
|
35
|
+
"lucide-react": "^0.517.0",
|
|
36
|
+
"react-virtuoso": "^4.13.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^19.1.0",
|
|
40
40
|
"react-dom": "^19.1.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@vanilla-extract/vite-plugin": "^5.0.
|
|
44
|
-
"@vanilla-extract/webpack-plugin": "^2.3.
|
|
43
|
+
"@vanilla-extract/vite-plugin": "^5.0.6",
|
|
44
|
+
"@vanilla-extract/webpack-plugin": "^2.3.22"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "rslib build",
|