@recursica/mantine-adapter 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/mantine-adapter.cjs +11 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +2036 -1851
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Panel/Panel.d.ts +1 -1
- package/dist/src/components/Popover/Popover.d.ts +3 -1
- package/dist/src/components/Tree/Tree.d.ts +9 -0
- package/dist/src/components/Tree/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/index.d.ts +153 -1
- package/package.json +2 -2
- package/src/OverStyling.tsx +67 -3
- package/src/components/AutoComplete/AutoComplete.tsx +2 -2
- package/src/components/Button/Button.module.css +42 -0
- package/src/components/Card/Card.tsx +3 -1
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -1
- package/src/components/Dropdown/Dropdown.stories.tsx +0 -6
- package/src/components/Dropdown/Dropdown.tsx +1 -1
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/NumberInput/NumberInput.stories.tsx +0 -2
- package/src/components/Panel/Panel.tsx +1 -1
- package/src/components/Popover/Popover.tsx +8 -3
- package/src/components/SegmentedControl/SegmentedControl.module.css +1 -0
- package/src/components/Slider/Slider.module.css +29 -0
- package/src/components/Table/Table.module.css +387 -2
- package/src/components/Table/Table.tsx +1 -1
- package/src/components/Tabs/Tabs.module.css +2 -0
- package/src/components/Toast/Toast.module.css +6 -1
- package/src/components/Tree/Tree.module.css +43 -0
- package/src/components/Tree/Tree.stories.tsx +14 -0
- package/src/components/Tree/Tree.tsx +24 -0
- package/src/components/Tree/index.ts +1 -0
- package/src/components/index.ts +2 -0
- package/src/index.ts +157 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @recursica/mantine-adapter
|
|
2
2
|
|
|
3
|
+
## 0.29.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f4036cf: Updated official release and added Tree component
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- f45006a: Fixed linting and typescript errors
|
|
12
|
+
- Updated dependencies [f4036cf]
|
|
13
|
+
- Updated dependencies [f4036cf]
|
|
14
|
+
- Updated dependencies [f45006a]
|
|
15
|
+
- @recursica/official-release@2.2.0
|
|
16
|
+
- @recursica/adapter-common@0.9.1
|
|
17
|
+
|
|
18
|
+
## 0.28.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- 8a1ecc5: Updated overStyled and fixed exports
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [8a1ecc5]
|
|
27
|
+
- @recursica/adapter-common@0.9.0
|
|
28
|
+
|
|
3
29
|
## 0.27.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/dist/mantine-adapter.cjs
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),b=require("react"),m=require("@mantine/core"),Ht=require("@mantine/dates"),qt=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],wo=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Ie={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function Ue(i){const e={...i};for(const[a,r]of Object.entries(e))typeof r=="string"&&r.startsWith("rec-")&&wo.has(a)&&r in Ie&&(e[a]=Ie[r]);return e}function x(i,e){if(e)return i;const a={...i};for(const r of qt)r in a&&delete a[r];for(const[r,o]of Object.entries(a))typeof o=="string"&&o.startsWith("rec-")&&wo.has(r)&&o in Ie&&(a[r]=Ie[o]);return a}const Ut="Accordion-module__root___Dem6d",Zt="Accordion-module__item___7ryVk",Yt="Accordion-module__noDivider___Ni2tT",Kt="Accordion-module__control___b4wgX",Xt="Accordion-module__label___Ss7uW",Jt="Accordion-module__chevron___i-HVZ",Qt="Accordion-module__iconLeftWrapper___5oLen",es="Accordion-module__panel___Wx50w",os="Accordion-module__content___PEM9t",se={root:Ut,item:Zt,noDivider:Yt,control:Kt,label:Xt,chevron:Jt,iconLeftWrapper:Qt,panel:es,content:os},Po=function({variant:e="unstyled",overStyled:a=!1,...r}){const o=x(r,a),t={root:se.root,item:se.item,control:se.control,label:se.label,chevron:se.chevron,panel:se.panel,content:se.content},n=o.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{t[d]?t[d]=`${t[d]} ${c[d]}`:t[d]=c[d]})}const l=o.className;return s.jsx(m.Accordion,{variant:e,className:l,classNames:t,...o})};Po.displayName="Accordion";const Ze=b.forwardRef(function({title:e,leftIcon:a,divider:r=!0,children:o,overStyled:t=!1,...n},l){const c=x(n,t),d=c.className,p=[r?void 0:se.noDivider,d].filter(Boolean).join(" ")||void 0;return s.jsx(m.Accordion.Item,{ref:l,className:p,...c,children:e?s.jsxs(s.Fragment,{children:[s.jsx(ze,{leftIcon:a,children:e}),s.jsx(Fe,{children:o})]}):o})});Ze.displayName="AccordionItem";const ze=b.forwardRef(function({leftIcon:e,children:a,overStyled:r=!1,...o},t){const n=x(o,r),l=n.className;return s.jsx(m.Accordion.Control,{ref:t,className:l,icon:e?s.jsx("span",{className:se.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...n,children:a})});ze.displayName="AccordionControl";const Fe=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx(m.Accordion.Panel,{ref:r,className:t,...o})});Fe.displayName="AccordionPanel";const Be=Po;Be.Item=Ze;Be.Control=ze;Be.Panel=Fe;const ts="Label-module__root___e6HXZ",ss="Label-module__labelText___rieFR",rs="Label-module__required___Ggrzc",as="Label-module__optionalText___Y2yun",ns="Label-module__actionAreaWrapper___ELoZK",ls="Label-module__editIconWrapper___NG2xW",Y={root:ts,labelText:ss,required:rs,optionalText:as,actionAreaWrapper:ns,editIconWrapper:ls},Ye=b.forwardRef(function({labelSize:e="default",labelAlignment:a,required:r=!1,labelOptionalText:o,labelWithEditIcon:t,labelActionArea:n,onLabelEditClick:l,children:c,overStyled:d=!1,...p},_){const h=a||"left";let f;r||(o===!0?f="optional":o&&(f=o));const u=x(p,d),y=u,w={label:Y.root,required:Y.required},C=y.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const S=C;w.label=S.label?`${Y.root} ${S.label}`:Y.root,w.required=S.required?`${Y.required} ${S.required}`:Y.required}const v=y.className,N=v?`${Y.root} ${v}`:Y.root;return s.jsxs(m.Input.Label,{ref:_,className:N,classNames:w,"data-size":e,"data-alignment":h,required:r&&!t,...u,children:[s.jsx("span",{className:Y.labelText,children:c}),f&&s.jsx("span",{className:Y.optionalText,children:typeof f=="string"?`(${f})`:f}),n?s.jsx("span",{className:Y.actionAreaWrapper,children:n}):t?s.jsx("button",{type:"button",className:Y.editIconWrapper,"data-replaces-asterisk":r?"true":void 0,onClick:l,"aria-label":"Edit",children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});Ye.displayName="Label";const is="FormControlLayout-module__root___yNDhZ",cs="FormControlLayout-module__leftSection___GBM1r",ds="FormControlLayout-module__rightSection___bcL4v",Le={root:is,leftSection:cs,rightSection:ds},ae=b.forwardRef(function({formLayout:e="stacked",labelSize:a="default",controlMaxWidth:r,controlMinWidth:o,leftSection:t,children:n,className:l,style:c,...d},p){const _=l?`${Le.root} ${l}`:Le.root,f=t!=null||e==="side-by-side";return s.jsxs("div",{ref:p,className:_,"data-form-layout":e,style:{...c,...r?{"--form-control-max-width":r}:{},...o?{"--form-control-min-width":o}:{}},...d,children:[f&&s.jsx("div",{className:Le.leftSection,"data-size":a,children:t}),s.jsx("div",{className:Le.rightSection,children:n})]})});ae.displayName="FormControlLayout";const ps="AssistiveElement-module__root___WhQ43",ms="AssistiveElement-module__textWrapper___sfy5E",_s="AssistiveElement-module__iconWrapper___gObRF",He={root:ps,textWrapper:ms,iconWrapper:_s},us=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M12 16v-4"}),s.jsx("path",{d:"M12 8h.01"})]}),fs=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),s.jsx("path",{d:"M12 9v4"}),s.jsx("path",{d:"M12 17h.01"})]}),qe=b.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:a=!0,children:r,className:o,overStyled:t=!1,...n},l){const d=x(n,t),p=He.root,_=o?`${p} ${o}`:p,h=e==="error"?fs:us;return s.jsxs("div",{ref:l,className:_,"data-variant":e,style:d.style,...d,children:[a&&s.jsx("span",{className:He.iconWrapper,children:s.jsx(h,{})}),s.jsx("span",{className:He.textWrapper,children:r})]})});qe.displayName="AssistiveElement";const bs="FormControlWrapper-module__root___c-UHo",ys="FormControlWrapper-module__inputSection___HenXk",ho={root:bs,inputSection:ys},Me=b.forwardRef(function({formLayout:e,labelSize:a,labelAlignment:r,labelOptionalText:o,labelWithEditIcon:t,labelActionArea:n,onLabelEditClick:l,label:c,description:d,assistiveText:p,assistiveWithIcon:_=!0,controlMaxWidth:h,controlMinWidth:f,error:u,required:y,withAsterisk:w,id:C,children:v,className:N,overStyled:S=!1,labelElement:$,...L},A){const T=b.useId(),O=C||`recursica-fc-${T}`,R=p||d,P=R?`${O}-assistive`:void 0,g=u?`${O}-error`:void 0,M=x(L,S),j=N||M.className,ue=ho.root,fe=j?`${ue} ${j}`:ue,q=b.isValidElement(v)?b.cloneElement(v,{...R&&!v.props["aria-describedby"]?{"aria-describedby":P}:{},...u&&!v.props["aria-errormessage"]?{"aria-errormessage":g}:{}}):v,Ve=c?s.jsx(Ye,{id:O,labelAlignment:r,labelOptionalText:o,labelWithEditIcon:t,labelActionArea:n,onLabelEditClick:l,required:w??y,...$==="div"?{as:"div"}:{},children:c}):void 0;return s.jsx(ae,{ref:A,className:fe,formLayout:e,labelSize:a,controlMaxWidth:h,controlMinWidth:f,leftSection:Ve,...M,children:s.jsxs("div",{className:ho.inputSection,children:[q,u&&s.jsx(qe,{id:g,assistiveVariant:"error",assistiveWithIcon:_,children:u}),!u&&R&&s.jsx(qe,{id:P,assistiveVariant:"help",assistiveWithIcon:_,children:R})]})})});Me.displayName="FormControlWrapper";const Ns="_root_1qhn7_3",hs="_contents_1qhn7_18",$e={root:Ns,contents:hs},go=b.forwardRef(function({layer:i,contentsOnly:e,children:a,className:r,style:o,...t},n){const l=e?r?`${$e.root} ${$e.contents} ${r}`:`${$e.root} ${$e.contents}`:r?`${$e.root} ${r}`:$e.root;return s.jsx("div",{ref:n,className:l,style:o,...e?{}:{"data-recursica-layer":String(i)},...t,children:a})});go.displayName="Layer";const Oe=({emptyText:i="N/A"})=>s.jsx(b.Fragment,{children:i});Oe.displayName="EmptyValueRenderer";Oe.check=i=>i==null||i===""||Array.isArray(i)&&i.length===0;const xo="data-recursica-theme";function xs({children:i,theme:e="light"}){return b.useEffect(()=>{const a=document.documentElement;return a.setAttribute(xo,e),()=>{a.removeAttribute(xo)}},[e]),s.jsx(s.Fragment,{children:i})}const vs=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],$s="ReadOnlyField-module__layoutOverride___9fSsG",Cs="ReadOnlyField-module__textField___qKn25",Ce={layoutOverride:$s,textField:Cs},Ae=({value:i,overStyled:e=!1,...a})=>{const r=x(a,e),o=r.className;return s.jsx(m.Box,{component:"p",className:o?`${Ce.textField} ${o}`:Ce.textField,...r,children:i!=null?b.isValidElement(i)?i:Array.isArray(i)?i.join(", "):String(i):""})};Ae.displayName="ReadOnlyTextField";const Ke=b.forwardRef(function({value:e,type:a="text",emptyValueComponent:r,overStyled:o=!1,className:t,style:n,...l},c){let d=null;const p=x(l,o),_=r||Oe,f=(_.check?_.check(e):Oe.check(e))?s.jsx(_,{value:e}):e;switch(a){case"boolean":d=s.jsx(Ae,{value:e===!0?"True":e===!1?"False":f,overStyled:o});break;case"switch":d=s.jsx(Ae,{value:e===!0?"On":e===!1?"Off":f,overStyled:o});break;case"text":default:d=s.jsx(Ae,{value:f,overStyled:o});break}const u=t?`${Ce.layoutOverride} ${t}`:Ce.layoutOverride;return s.jsx(Me,{ref:c,overStyled:o,className:u,style:n,...p,children:d})});Ke.displayName="ReadOnlyField";const X=b.forwardRef(function({readOnly:e,readOnlyComponent:a,readOnlyType:r="text",readOnlyValue:o,readOnlyNativeProps:t,emptyValueComponent:n,activeComponent:l,overStyled:c,onLabelEditClick:d,...p},_){if(e){if(a){const h=a;return s.jsx(Me,{ref:_,...p,onLabelEditClick:d,overStyled:c,children:s.jsx(h,{...t})})}return s.jsx(Ke,{ref:_,type:r,value:o,emptyValueComponent:n,onLabelEditClick:d,overStyled:c,...p})}return s.jsx(Me,{ref:_,...p,onLabelEditClick:d,overStyled:c,children:l})});X.displayName="WithReadOnlyWrapper";const ws="AutoComplete-module__layoutOverride___-K9WL",Ps="AutoComplete-module__root___kANza",gs="AutoComplete-module__input___g51MC",js="AutoComplete-module__section___WAbf1",Ts="AutoComplete-module__dropdown___NqO3E",Ss="AutoComplete-module__option___Y-Kja",D={layoutOverride:ws,root:Ps,input:gs,section:js,dropdown:Ts,option:Ss},jo=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=x(O,r),P=R;delete P.size,delete P.variant,delete P.radius;const g={wrapper:D.root,input:D.input,section:D.section,dropdown:D.dropdown,option:D.option},W=P.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const j=W;g.wrapper=j.wrapper?`${D.root} ${j.wrapper}`:D.root,g.input=j.input?`${D.input} ${j.input}`:D.input,g.section=j.section?`${D.section} ${j.section}`:D.section,g.dropdown=j.dropdown?`${D.dropdown} ${j.dropdown}`:D.dropdown,g.option=j.option?`${D.option} ${j.option}`:D.option}const M=C?`${D.layoutOverride} ${C}`:D.layoutOverride;return s.jsx(X,{className:M,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_autocomplete_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_autocomplete_properties_min-width)",overStyled:r,formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:s.jsx(m.Autocomplete,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});jo.displayName="AutoComplete";const As="Avatar-module__root___fXu-J",Os="Avatar-module__iconWrapper___ojly2",Rs="Avatar-module__textWrapper___zp-jD",Ws="Avatar-module__image___ieqGp",Ls="Avatar-module__placeholder___IDW7-",J={root:As,iconWrapper:Os,textWrapper:Rs,image:Ws,placeholder:Ls},To=b.forwardRef(function({size:e="default",variant:a="solid",icon:r,children:o,src:t,overStyled:n=!1,...l},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},_=x(l,n),h=_;let f="text";t?f="image":r&&(f="icon");const u={root:J.root,image:J.image,placeholder:J.placeholder},y=h.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const C=y;u.root=C.root?`${J.root} ${C.root}`:J.root,u.image=C.image?`${J.image} ${C.image}`:J.image,u.placeholder=C.placeholder?`${J.placeholder} ${C.placeholder}`:J.placeholder}const w=h.className;return s.jsx(m.Avatar,{ref:c,className:w,classNames:u,variant:d[a],size:p[e],src:t,"data-variant":a,"data-size":e,"data-style":f,..._,children:r!=null?s.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:r}):o!=null?s.jsx("span",{className:J.textWrapper,children:o}):void 0})});To.displayName="Avatar";const ks=m.createPolymorphicComponent(To),Is="Badge-module__root___5osNT",te={root:Is},So=b.forwardRef(function({variant:e="primary-color",overStyled:a=!1,...r},o){const t=x(r,a),n={root:te.root,section:te.section,label:te.label},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;n.root=p.root?`${te.root} ${p.root}`:te.root,n.section=p.section??te.section,n.label=p.label??te.label}const c=t.className,d=c?`${te.root} ${c}`:te.root;return s.jsx(m.Badge,{ref:o,variant:"filled","data-variant":e,...t,className:d,classNames:n})});So.displayName="Badge";const Ms=m.createPolymorphicComponent(So),zs="Breadcrumb-module__root___x-9ln",Fs="Breadcrumb-module__separator___qrUX-",de={root:zs,separator:Fs},Ao=b.forwardRef(function({overStyled:e=!1,separator:a=">",...r},o){const t=x({separator:a,...r},e),n={root:de.root,separator:de.separator},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;n.root=p.root?`${de.root} ${p.root}`:de.root,n.separator=p.separator?`${de.separator} ${p.separator}`:de.separator}const c=t.className,d=c?`${de.root} ${c}`:de.root;return s.jsx(m.Breadcrumbs,{ref:o,...t,className:d,classNames:n})});Ao.displayName="Breadcrumb";const Bs="Loader-module__root___6iYOP",Pe={root:Bs},Xe=b.forwardRef(function({variant:e="oval",size:a="default",overStyled:r=!1,...o},t){const l={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[a]||"default",c=x(o,r),d={root:Pe.root},p=c.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const f=p;d.root=f.root?`${Pe.root} ${f.root}`:Pe.root}const _=c.className,h=_?`${Pe.root} ${_}`:Pe.root;return s.jsx(m.Loader,{ref:t,type:e,"data-variant":e,"data-size":l,...c,className:h,classNames:d})});Xe.displayName="Loader";const Ds="Button-module__root___Q2R8-",Es="Button-module__loader___X-9u-",Vs="Button-module__label___UJ3Zt",Gs="Button-module__labelText___rFV5p",Hs="Button-module__iconWrapper___uEKPa",qs="Button-module__section___f2mKr",K={root:Ds,loader:Es,label:Vs,labelText:Gs,iconWrapper:Hs,section:qs};function Us(i){return i==null||i===""?!1:typeof i=="string"?i.trim()!=="":!0}const Oo=b.forwardRef(function({variant:e="solid",size:a="default",icon:r,children:o,overStyled:t=!1,loaderVariant:n="oval",loaderSize:l,useRecursicaLoader:c=!0,...d},p){const _={solid:"filled",outline:"outline",text:"subtle"},h={default:"md",small:"sm"},f=x(d,t),u=f;delete u.fullWidth;const y=!!r||!!u.leftSection,w=!!u.rightSection,C=Us(o),v=(y||w)&&!C;let N="label";v?N="icon-only":(y||w)&&(N="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&v&&!u["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const S={root:K.root,section:K.section,label:K.label,loader:K.loader},$=u.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const P=$;S.root=P.root?`${K.root} ${P.root}`:K.root,S.section=P.section??K.section,S.label=P.label??K.label}const L=u.className,A=L?`${K.root} ${L}`:K.root,T=u.loaderProps,O=l??(a==="small"?"small":"default");let R=T;return c&&(R={children:s.jsx(Xe,{variant:n,size:O}),...T}),s.jsx(m.Button,{ref:p,className:A,classNames:S,variant:_[e],size:h[a],loaderProps:R,leftSection:r!=null?s.jsx("span",{className:K.iconWrapper,"aria-hidden":!0,children:r}):void 0,"data-variant":e,"data-size":a,"data-content":N,...f,disabled:!!u.disabled||!!u.loading,children:s.jsx("span",{className:K.labelText,children:o})})});Oo.displayName="Button";const Zs=m.createPolymorphicComponent(Oo),Ys="Card-module__root___c9KvZ",Ks="Card-module__header___PTXf2",Xs="Card-module__footer___Mu-JC",Js="Card-module__section___BRT8H",Qs="Card-module__content___oFIQa",ne={root:Ys,header:Ks,footer:Xs,section:Js,content:Qs},Ro=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in a&&!(d in o)&&(o[d]=a[d])});const n={root:ne.root},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;Object.keys(d).forEach(p=>{n[p]?n[p]=`${n[p]} ${d[p]}`:n[p]=d[p]})}const c=o.className;return s.jsx(m.Card,{ref:r,className:c,classNames:n,...o})});Ro.displayName="Card";const Je=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx(m.Card.Section,{ref:r,className:t?`${ne.section} ${t}`:ne.section,...o})});Je.displayName="CardSection";const Qe=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx(m.Card.Section,{ref:r,className:t?`${ne.header} ${t}`:ne.header,...o})});Qe.displayName="CardHeader";const eo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx(m.Card.Section,{ref:r,className:t?`${ne.footer} ${t}`:ne.footer,...o})});eo.displayName="CardFooter";const oo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx("div",{ref:r,className:t?`${ne.content} ${t}`:ne.content,...o})});oo.displayName="CardContent";const Wo=m.createPolymorphicComponent(Ro),De=Wo;De.Section=Je;De.Header=Qe;De.Footer=eo;De.Content=oo;const er=Wo,or="Checkbox-module__groupRoot___cBS0o",tr="Checkbox-module__root___mY3qk",sr="Checkbox-module__body___5yC7q",rr="Checkbox-module__inner___rTke4",ar="Checkbox-module__input___2kt-h",nr="Checkbox-module__icon___-O7i6",lr="Checkbox-module__labelWrapper___GpZkr",ir="Checkbox-module__label___cwRtI",z={groupRoot:or,root:tr,body:sr,inner:rr,input:ar,icon:nr,labelWrapper:lr,label:ir},to=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,className:v,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,P=x(R,r),g=P;return delete g.size,s.jsx(X,{className:v,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:s.jsx(m.Checkbox.Group,{ref:a,...P,disabled:$||g.disabled,value:T,defaultValue:O,children:s.jsx("div",{className:z.groupRoot,"data-layout":o,children:S})})})});to.displayName="CheckboxGroup";const so=b.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:o,readOnlyComponent:t,disabled:n,formLayout:l,labelSize:c,controlMaxWidth:d,controlMinWidth:p,..._}=e,h=x(_,r),f=h;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const u={root:z.root,body:z.body,inner:z.inner,input:z.input,icon:z.icon,labelWrapper:z.labelWrapper,label:z.label},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const N=y;u.root=N.root?`${z.root} ${N.root}`:z.root,u.body=N.body?`${z.body} ${N.body}`:z.body,u.inner=N.inner?`${z.inner} ${N.inner}`:z.inner,u.input=N.input?`${z.input} ${N.input}`:z.input,u.icon=N.icon?`${z.icon} ${N.icon}`:z.icon,u.labelWrapper=N.labelWrapper?`${z.labelWrapper} ${N.labelWrapper}`:z.labelWrapper,u.label=N.label?`${z.label} ${N.label}`:z.label}const w=f.className,C=w?`${z.root} ${w}`:z.root;if(o&&t){const N=!!(f.checked??f.defaultChecked),S=t,$=s.jsx(S,{...e,checked:N,label:f.label});return l?s.jsx(ae,{formLayout:l,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:$}):s.jsx(s.Fragment,{children:$})}const v=s.jsx(m.Checkbox,{ref:a,className:C,classNames:u,disabled:o||n,...h});return l?s.jsx(ae,{formLayout:l,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:v}):v});so.displayName="Checkbox";so.Group=to;const cr="Chip-module__root___f5pFk",dr="Chip-module__label___Ov9pg",pr="Chip-module__mantineIconWrapper___KLSz6",mr="Chip-module__innerWrapper___EnrTF",_r="Chip-module__children___zbRAR",ur="Chip-module__leadingIcon___JBtjQ",fr="Chip-module__removeIcon___pVju-",G={root:cr,label:dr,mantineIconWrapper:pr,innerWrapper:mr,children:_r,leadingIcon:ur,removeIcon:fr};function br(i){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...i,children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Lo=b.forwardRef(function({error:e=!1,icon:a,onRemove:r,removeLabel:o="Remove",children:t,overStyled:n=!1,...l},c){const d=x(l,n),p=d,_={root:G.root,label:G.label,input:G.input,iconWrapper:G.mantineIconWrapper,checkIcon:G.checkIcon},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const v=h;_.root=v.root?`${G.root} ${v.root}`:G.root,_.label=v.label?`${G.label} ${v.label}`:G.label}const f=p.className,u=f?`${G.root} ${f}`:G.root,y=e?"":void 0,w=!t&&(!!a||!!r),C=p.checked!==void 0||p.defaultChecked!==void 0||r!==void 0||p.onClick!==void 0;return s.jsx(m.Chip,{ref:c,className:u,classNames:_,wrapperProps:y!==void 0?{"data-error":""}:void 0,...w?{"data-icon-only":""}:{},...C?{}:{tabIndex:-1,"aria-hidden":!0},...d,children:s.jsxs("span",{className:G.innerWrapper,children:[a&&s.jsx("span",{className:G.leadingIcon,"aria-hidden":!0,children:a}),s.jsx("span",{className:G.children,children:t}),r&&s.jsx("span",{role:"button",className:G.removeIcon,onClick:v=>{v.preventDefault(),v.stopPropagation(),r(v)},"aria-label":o,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation(),r(v))},tabIndex:0,children:s.jsx(br,{})})]})})});Lo.displayName="Chip";const yr="Container-module__root___UVssr",ge={root:yr},ko=b.forwardRef(function({children:e,size:a,...r},o){const t={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},n=typeof a=="string"&&t[a]?t[a]:a,l={root:ge.root},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;l.root=_.root?`${ge.root} ${_.root}`:ge.root}const d=r.className,p=d?`${ge.root} ${d}`:ge.root;return s.jsx(m.Container,{ref:o,size:n,className:p,classNames:l,...r,children:e})});ko.displayName="Container";const Nr="DatePicker-module__layoutOverride___X9yaM",hr="DatePicker-module__root___6XvRT",xr="DatePicker-module__input___pcSW8",vr="DatePicker-module__section___n3iWA",$r="DatePicker-module__dropdown___wjt08",Cr="DatePicker-module__calendarHeader___KHxno",wr="DatePicker-module__day___U03J2",U={layoutOverride:Nr,root:hr,input:xr,section:vr,dropdown:$r,calendarHeader:Cr,day:wr},Io=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=x(O,r),P=R;delete P.size,delete P.variant,delete P.radius,delete P.description;const g={wrapper:U.root,input:U.input,section:U.section,dropdown:U.dropdown,day:U.day,calendarHeader:U.calendarHeader},W=P.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const j=W;g.wrapper=j.wrapper?`${U.root} ${j.wrapper}`:U.root,g.input=j.input?`${U.input} ${j.input}`:U.input,g.section=j.section?`${U.section} ${j.section}`:U.section}const M=C?`${U.layoutOverride} ${C}`:U.layoutOverride;return s.jsx(X,{className:M,style:v,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:r,formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):T?String(T):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(Ht.DatePickerInput,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,label:void 0,description:void 0,error:void 0,withAsterisk:!1,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});Io.displayName="DatePicker";const Pr="Dropdown-module__layoutOverride___FNcvP",gr="Dropdown-module__root___uVyL0",jr="Dropdown-module__input___dK4dN",Tr="Dropdown-module__section___j3MRB",Sr="Dropdown-module__dropdown___gG-Sw",Ar="Dropdown-module__option___nAGU-",E={layoutOverride:Pr,root:gr,input:jr,section:Tr,dropdown:Sr,option:Ar},Mo=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",containerWidth:t,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,className:v,style:N,disabled:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,data:R,...P}=e,g=x(P,r),W=g;delete W.size,delete W.variant,delete W.radius;const M={wrapper:E.root,input:E.input,section:E.section,dropdown:E.dropdown,option:E.option},j=W.classNames;if(j&&typeof j=="object"&&!Array.isArray(j)){const q=j;M.wrapper=q.wrapper?`${E.root} ${q.wrapper}`:E.root,M.input=q.input?`${E.input} ${q.input}`:E.input,M.section=q.section?`${E.section} ${q.section}`:E.section,M.dropdown=q.dropdown?`${E.dropdown} ${q.dropdown}`:E.dropdown,M.option=q.option?`${E.option} ${q.option}`:E.option}const ue={...N||{},width:t||"100%"},fe=v?`${E.layoutOverride} ${v}`:E.layoutOverride;return s.jsx(X,{className:fe,style:ue,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:r,formLayout:o,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?String(T):O?String(O):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(m.Select,{ref:a,classNames:M,disabled:S,value:T,defaultValue:O,data:R||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":u?"true":void 0},...g})})});Mo.displayName="Dropdown";const Or=i=>s.jsx("div",{...i,children:"FileInput"}),Rr=i=>s.jsx("div",{...i,children:"FileUpload"}),Wr="Flex-module__root___yYser",je={root:Wr},zo=b.forwardRef(function({children:e,gap:a="rec-default",rowGap:r,columnGap:o,...t},n){const l={root:je.root},c=t.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;l.root=_.root?`${je.root} ${_.root}`:je.root}const d=t.className,p=d?`${je.root} ${d}`:je.root;return s.jsx(m.Flex,{ref:n,className:p,classNames:l,...Ue({gap:a,rowGap:r,columnGap:o,...t}),children:e})});zo.displayName="Flex";const Lr=m.createPolymorphicComponent(zo),kr="Group-module__root___ftO64",Te={root:kr},Fo=b.forwardRef(function({children:e,gap:a="rec-default",...r},o){const t={root:Te.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;t.root=d.root?`${Te.root} ${d.root}`:Te.root}const l=r.className,c=l?`${Te.root} ${l}`:Te.root;return s.jsx(m.Group,{ref:o,className:c,classNames:t,...Ue({gap:a,...r}),children:e})});Fo.displayName="Group";const Ir="HoverCard-module__dropdown___FBPFW",Mr="HoverCard-module__arrow___S9AkE",vo={dropdown:Ir,arrow:Mr},Bo=function({overStyled:e=!1,withBeak:a=!0,...r}){const o=x(r,e),t={dropdown:vo.dropdown,arrow:vo.arrow},n=o.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const p=n;Object.keys(p).forEach(_=>{t[_]?t[_]=`${t[_]} ${p[_]}`:t[_]=p[_]})}const l=o.arrowSize??16,c=o.withArrow,d=a??c;return s.jsx(m.HoverCard,{position:"top",arrowSize:l,withArrow:d,classNames:t,...o})};Bo.displayName="HoverCard";const Do=function(e){return s.jsx(m.HoverCard.Target,{...e})};Do.displayName="HoverCardTarget";const Eo=function({overStyled:e=!1,...a}){const r=x(a,e),o=r.className;return s.jsx(m.HoverCard.Dropdown,{className:o,...r})};Eo.displayName="HoverCardDropdown";const ro=Bo;ro.Target=Do;ro.Dropdown=Eo;const zr="Link-module__root___I0VGE",Fr="Link-module__iconWrapper___W-LlF",Br="Link-module__labelText___wSvUy",ye={root:zr,iconWrapper:Fr,labelText:Br},Vo=b.forwardRef(function({icon:e,children:a,overStyled:r=!1,...o},t){const n=x(o,r),l=n,c={root:ye.root},d=l.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;c.root=h.root?`${ye.root} ${h.root}`:ye.root}const p=l.className,_=p?`${ye.root} ${p}`:ye.root;return s.jsxs(m.Anchor,{ref:t,className:_,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...n,children:[e&&s.jsx("span",{className:ye.iconWrapper,"aria-hidden":!0,children:e}),s.jsx("span",{className:ye.labelText,children:a})]})});Vo.displayName="Link";const Dr=m.createPolymorphicComponent(Vo),Er="Menu-module__dropdown___j4xuA",Vr="Menu-module__item___NMXha",Gr="Menu-module__itemLabel___zvcqC",Hr="Menu-module__itemSection___pRIcn",qr="Menu-module__divider___wPiNq",Ur="Menu-module__label___4FBGa",Zr="Menu-module__chevron___hEEiy",Ne={dropdown:Er,item:Vr,itemLabel:Gr,itemSection:Hr,divider:qr,label:Ur,chevron:Zr},Go=function({overStyled:e=!1,...a}){const r=x(a,e),o={dropdown:Ne.dropdown,item:Ne.item,itemLabel:Ne.itemLabel,itemSection:Ne.itemSection,divider:Ne.divider,label:Ne.label,chevron:Ne.chevron},t=r.classNames;if(t&&typeof t=="object"&&!Array.isArray(t)){const n=t;Object.keys(n).forEach(l=>{o[l]?o[l]=`${o[l]} ${n[l]}`:o[l]=n[l]})}return s.jsx(m.Menu,{classNames:o,...r})};Go.displayName="Menu";const Ho=function(e){return s.jsx(m.Menu.Target,{...e})};Ho.displayName="MenuTarget";const qo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx(m.Menu.Dropdown,{ref:r,className:t,...o})});qo.displayName="MenuDropdown";const Uo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o;e||delete t.color;const n=t.className;return s.jsx(m.Menu.Item,{ref:r,className:n,...o})});Uo.displayName="MenuItem";const Yr=m.createPolymorphicComponent(Uo),Zo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx(m.Menu.Divider,{ref:r,className:t,...o})});Zo.displayName="MenuDivider";const Yo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx(m.Menu.Label,{ref:r,className:t,...o})});Yo.displayName="MenuLabel";const Ko=function(e){return s.jsx(m.Menu.Sub,{...e})};Ko.displayName="MenuSub";const Xo=function(e){return s.jsx(m.Menu.Sub.Target,{...e})};Xo.displayName="MenuSubTarget";const Jo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o;e||delete t.color;const n=t.className;return s.jsx(m.Menu.Sub.Item,{ref:r,className:n,...o})});Jo.displayName="MenuSubItem";const Kr=m.createPolymorphicComponent(Jo),Qo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className;return s.jsx(m.Menu.Sub.Dropdown,{ref:r,className:t,...o})});Qo.displayName="MenuSubDropdown";const Ee=Ko;Ee.Target=Xo;Ee.Item=Kr;Ee.Dropdown=Qo;const ve=Go;ve.Target=Ho;ve.Dropdown=qo;ve.Item=Yr;ve.Divider=Zo;ve.Label=Yo;ve.Sub=Ee;const Xr="Modal-module__root___ytPLl",Jr="Modal-module__inner___SSUJE",Qr="Modal-module__content___dWO-B",ea="Modal-module__header___ILG9i",oa="Modal-module__title___A5OeE",ta="Modal-module__bodyWrapper___5CCL-",sa="Modal-module__scrollArea___KD-hm",ra="Modal-module__footer___rro2w",aa="Modal-module__close___-ER1C",re={root:Xr,inner:Jr,content:Qr,header:ea,title:oa,bodyWrapper:ta,scrollArea:sa,footer:ra,close:aa},et=b.forwardRef(function({overStyled:e=!1,children:a,title:r,withCloseButton:o=!0,overlayProps:t,withOverlay:n=!0,closeButtonProps:l,...c},d){const p=x(c,e),_={root:re.root,inner:re.inner,content:re.content,header:re.header,title:re.title,close:re.close},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const f=h;Object.keys(f).forEach(u=>{_[u]?_[u]=`${_[u]} ${f[u]}`:_[u]=f[u]})}return s.jsxs(m.Modal.Root,{ref:d,classNames:_,...p,children:[n&&s.jsx(m.Modal.Overlay,{...t}),s.jsxs(m.Modal.Content,{children:[(r||o)&&s.jsxs(m.Modal.Header,{children:[r&&s.jsx(m.Modal.Title,{children:r}),o&&s.jsx(m.Modal.CloseButton,{...l})]}),s.jsx(no,{children:a})]})]})});et.displayName="Modal";const ao=b.forwardRef(function({className:e,...a},r){return s.jsx("div",{ref:r,className:`${re.footer} ${e||""}`,...a})});ao.displayName="Modal.Footer";const no=b.forwardRef(function({className:e,onScroll:a,children:r,...o},t){const n=b.useRef(null),[l,c]=b.useState(!1),[d,p]=b.useState(!1),_=b.useCallback(()=>{if(n.current){const{scrollTop:y,scrollHeight:w,clientHeight:C}=n.current;c(y>0),p(Math.ceil(y+C)<w)}},[]);b.useEffect(()=>(_(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_,r]);const h=y=>{_(),a==null||a(y)};let f=null;const u=[];return b.Children.forEach(r,y=>{var w;b.isValidElement(y)&&(y.type===ao||((w=y.type)==null?void 0:w.displayName)==="Modal.Footer")?f=y:u.push(y)}),s.jsxs(m.Modal.Body,{...o,ref:y=>{typeof t=="function"?t(y):t&&(t.current=y)},className:`${re.bodyWrapper} ${e||""}`,children:[s.jsx("div",{ref:n,onScroll:h,"data-scrolled-top":l||void 0,"data-scrolled-bottom":d||void 0,className:re.scrollArea,children:u}),f]})});no.displayName="Modal.Body";const le=et;le.Root=m.Modal.Root;le.Overlay=m.Modal.Overlay;le.Content=m.Modal.Content;le.Header=m.Modal.Header;le.Title=m.Modal.Title;le.CloseButton=m.Modal.CloseButton;le.Body=no;le.Footer=ao;const na="NumberInput-module__layoutOverride___5-9T4",la="NumberInput-module__root___C6rAn",ia="NumberInput-module__input___Ss8p7",ca="NumberInput-module__section___MijP0",da="NumberInput-module__controls___8UfQ2",pa="NumberInput-module__control___Qre9-",he={layoutOverride:na,root:la,input:ia,section:ca,controls:da,control:pa},ot=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,hideControls:O=!1,...R}=e,P=x(R,r),g=P;delete g.size,delete g.variant,delete g.radius;const W={wrapper:he.root,input:he.input,section:he.section,controls:he.controls,control:he.control},M=C?`${he.layoutOverride} ${C}`:he.layoutOverride;return s.jsx(X,{className:M,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:r,formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A==null?void 0:A.toString():T==null?void 0:T.toString(),readOnlyNativeProps:e,activeComponent:s.jsx(m.NumberInput,{ref:a,classNames:W,disabled:N,value:A,defaultValue:T,hideControls:O,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0,"data-with-left-section":g.leftSection?"true":void 0,"data-with-right-section":g.rightSection||!O?"true":void 0},...P})})});ot.displayName="NumberInput";const ma="Pagination-module__root___ITRjt",_a="Pagination-module__control___40yNT",ua="Pagination-module__dots___Yl9da",fa="Pagination-module__iconWithLabel___pLM4O",ba="Pagination-module__baseIcon___Qw3bJ",V={root:ma,control:_a,dots:ua,iconWithLabel:fa,baseIcon:ba},ya="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Na="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",ha="M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",xa="M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",va={next:ya,prev:Na,first:ha,last:xa},Re=({type:i,className:e,...a})=>s.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${V.baseIcon} ${e||""}`.trim(),...a,children:s.jsx("path",{d:va[i],fill:"currentColor"})}),tt=i=>s.jsxs("div",{className:V.iconWithLabel,children:[s.jsx("span",{children:"Next"}),s.jsx(Re,{type:"next",...i})]}),st=i=>s.jsxs("div",{className:V.iconWithLabel,children:[s.jsx(Re,{type:"prev",...i}),s.jsx("span",{children:"Prev"})]}),rt=i=>s.jsxs("div",{className:V.iconWithLabel,children:[s.jsx(Re,{type:"first",...i}),s.jsx("span",{children:"First"})]}),at=i=>s.jsxs("div",{className:V.iconWithLabel,children:[s.jsx("span",{children:"Last"}),s.jsx(Re,{type:"last",...i})]});function nt(i){const e={root:V.root,control:V.control,dots:V.dots},a=i.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const t=a;e.root=t.root?`${V.root} ${t.root}`:V.root,e.control=t.control?`${V.control} ${t.control}`:V.control,e.dots=t.dots?`${V.dots} ${t.dots}`:V.dots}const r=i.className;return{className:r?`${V.root} ${r}`:V.root,classNames:e}}const lt=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=nt(o);return s.jsx(m.Pagination.Root,{ref:r,className:t.className,classNames:t.classNames,...o})});lt.displayName="Pagination.Root";const it=b.forwardRef(function({withLabel:e,icon:a,...r},o){const t=a||(e?tt:void 0);return s.jsx(m.Pagination.Next,{ref:o,"data-variant":"text",icon:t,...r})});it.displayName="Pagination.Next";const ct=b.forwardRef(function({withLabel:e,icon:a,...r},o){const t=a||(e?st:void 0);return s.jsx(m.Pagination.Previous,{ref:o,"data-variant":"text",icon:t,...r})});ct.displayName="Pagination.Previous";const dt=b.forwardRef(function({withLabel:e,icon:a,...r},o){const t=a||(e?rt:void 0);return s.jsx(m.Pagination.First,{ref:o,"data-variant":"text",icon:t,...r})});dt.displayName="Pagination.First";const pt=b.forwardRef(function({withLabel:e,icon:a,...r},o){const t=a||(e?at:void 0);return s.jsx(m.Pagination.Last,{ref:o,"data-variant":"text",icon:t,...r})});pt.displayName="Pagination.Last";const mt=b.forwardRef(function({overStyled:e=!1,getControlProps:a,withLabels:r,...o},t){const n=x(o,e),l=nt(n),c=p=>{const _={"data-variant":"text"};return a?{..._,...a(p)}:_},d=r?{nextIcon:tt,previousIcon:st,firstIcon:rt,lastIcon:at}:{};return s.jsx(m.Pagination,{ref:t,className:l.className,classNames:l.classNames,getControlProps:c,...d,...n})});mt.displayName="Pagination";const ee=mt;ee.Root=lt;ee.Items=m.Pagination.Items;ee.Control=m.Pagination.Control;ee.Dots=m.Pagination.Dots;ee.Next=it;ee.Previous=ct;ee.First=dt;ee.Last=pt;ee.Icon=Re;const $a="Panel-module__content___wdGo-",Ca="Panel-module__inner___ruA2b",wa="Panel-module__header___o7SiC",Pa="Panel-module__title___181OP",ga="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",ja="Panel-module__body___SEC3T",Ta="Panel-module__footer___t6-hz",_e={content:$a,inner:Ca,header:wa,title:Pa,titleTruncate:ga,body:ja,footer:Ta},_t=function({overStyled:e=!1,placement:a="right",keepMounted:r=!0,wrapHeaderText:o=!1,...t}){const n=x(t,e),l={content:_e.content,header:_e.header,title:o?_e.titleTruncate:_e.title,body:_e.body,inner:_e.inner},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{l[p]?l[p]=`${l[p]} ${d[p]}`:l[p]=d[p]})}return s.jsx(m.Drawer,{position:a,keepMounted:r,closeOnClickOutside:t.closeOnClickOutside??!!t.opened,...n,classNames:l})};_t.displayName="Panel";const lo=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t=o.className,n=t?`${_e.footer} ${t}`:_e.footer;return s.jsx("div",{ref:r,className:n,...o})});lo.displayName="PanelFooter";const oe=_t;oe.Root=m.Drawer.Root;oe.Overlay=m.Drawer.Overlay;oe.Content=m.Drawer.Content;oe.Header=m.Drawer.Header;oe.Title=m.Drawer.Title;oe.CloseButton=m.Drawer.CloseButton;oe.Body=m.Drawer.Body;oe.Stack=m.Drawer.Stack;oe.Footer=lo;const Sa="Popover-module__dropdown___svhS6",Aa="Popover-module__arrow___5A-0e",$o={dropdown:Sa,arrow:Aa},ut=function({overStyled:e=!1,withBeak:a=!0,...r}){const o=x(r,e),t={dropdown:$o.dropdown,arrow:$o.arrow},n=o.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const p=n;Object.keys(p).forEach(_=>{t[_]?t[_]=`${t[_]} ${p[_]}`:t[_]=p[_]})}const l=o.arrowSize??16,c=o.withArrow,d=a??c;return s.jsx(m.Popover,{position:"top",arrowSize:l,withArrow:d,classNames:t,...o})};ut.displayName="Popover";const ft=function(e){return s.jsx(m.Popover.Target,{...e})};ft.displayName="PopoverTarget";const bt=function({overStyled:e=!1,...a}){const r=x(a,e),o=r.className;return s.jsx(m.Popover.Dropdown,{className:o,...r})};bt.displayName="PopoverDropdown";const io=ut;io.Target=ft;io.Dropdown=bt;const Oa="Radio-module__groupRoot___bfUii",Ra="Radio-module__root___kAjTD",Wa="Radio-module__body___q2Wpj",La="Radio-module__inner___QaTBB",ka="Radio-module__radio___MfgN-",Ia="Radio-module__icon___DWznm",Ma="Radio-module__labelWrapper___dB0Gi",za="Radio-module__label___vAFIP",F={groupRoot:Oa,root:Ra,body:Wa,inner:La,radio:ka,icon:Ia,labelWrapper:Ma,label:za},co=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,className:v,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,P=x(R,r),g=P;return delete g.size,s.jsx(X,{className:v,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:s.jsx(m.Radio.Group,{ref:a,...P,disabled:$||g.disabled,value:T,defaultValue:O,children:s.jsx("div",{className:F.groupRoot,"data-layout":o,children:S})})})});co.displayName="RadioGroup";const Fa=({className:i,style:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:i,style:e,children:s.jsx("circle",{cx:"8",cy:"8",r:"5"})}),po=b.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:o,readOnlyComponent:t,disabled:n,formLayout:l,labelSize:c,controlMaxWidth:d,controlMinWidth:p,..._}=e,h=x(_,r),f=h;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const u={root:F.root,body:F.body,inner:F.inner,radio:F.radio,icon:F.icon,labelWrapper:F.labelWrapper,label:F.label},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const N=y;u.root=N.root?`${F.root} ${N.root}`:F.root,u.body=N.body?`${F.body} ${N.body}`:F.body,u.inner=N.inner?`${F.inner} ${N.inner}`:F.inner,u.radio=N.radio?`${F.radio} ${N.radio}`:F.radio,u.icon=N.icon?`${F.icon} ${N.icon}`:F.icon,u.labelWrapper=N.labelWrapper?`${F.labelWrapper} ${N.labelWrapper}`:F.labelWrapper,u.label=N.label?`${F.label} ${N.label}`:F.label}const w=f.className,C=w?`${F.root} ${w}`:F.root;if(o&&t){const N=!!(f.checked??f.defaultChecked),S=t,$=s.jsx(S,{...e,checked:N,label:f.label});return l?s.jsx(ae,{formLayout:l,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:$}):s.jsx(s.Fragment,{children:$})}const v=s.jsx(m.Radio,{ref:a,icon:Fa,className:C,classNames:u,disabled:o||n,...h});return l?s.jsx(ae,{formLayout:l,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:v}):v});po.displayName="Radio";po.Group=co;const yt=({checked:i,label:e})=>s.jsxs(m.Box,{component:"span",className:Ce.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&s.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),s.jsx("span",{children:i?"On":"Off"})]});yt.displayName="ReadOnlySwitchField";const Nt=({checked:i,label:e})=>s.jsxs(m.Box,{component:"span",className:Ce.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&s.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),s.jsx("span",{children:i?"True":"False"})]});Nt.displayName="ReadOnlyBooleanField";const Ba="SegmentedControl-module__root___JFRhg",Da="SegmentedControl-module__label___mS17q",Ea="SegmentedControl-module__control___znOdQ",Va="SegmentedControl-module__indicator___ZMcJy",Z={root:Ba,label:Da,control:Ea,indicator:Va};function Ga(i){const e={root:Z.root,control:Z.control,label:Z.label,indicator:Z.indicator},a=i.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const t=a;e.root=t.root?`${Z.root} ${t.root}`:Z.root,e.control=t.control?`${Z.control} ${t.control}`:Z.control,e.label=t.label?`${Z.label} ${t.label}`:Z.label,e.indicator=t.indicator?`${Z.indicator} ${t.indicator}`:Z.indicator}const r=i.className;return{className:r?`${Z.root} ${r}`:Z.root,classNames:e}}const ht=b.forwardRef(function({overStyled:e=!1,orientation:a="horizontal",fullWidth:r,...o},t){const n=x(o,e),l=n;delete l.disabled;const c=Ga(l);return s.jsx(m.SegmentedControl,{ref:t,className:c.className,classNames:c.classNames,orientation:a,fullWidth:r,"data-orientation":a,...n})});ht.displayName="SegmentedControl";const Ha=ht,qa="Slider-module__layoutOverride___zYPun",Ua="Slider-module__sliderContainer___y8I0J",Za="Slider-module__sliderTrackWrapper___UHpVh",Ya="Slider-module__iconWrapper___uqHpC",Ka="Slider-module__sliderRoot___LI86H",Xa="Slider-module__sliderTrack___oqnlG",Ja="Slider-module__sliderBar___TI4VY",Qa="Slider-module__sliderThumb___OFn8p",en="Slider-module__sliderMark___1lM2B",on="Slider-module__minMaxGuide___TaGqz",tn="Slider-module__rightGuideContainer___8dOT8",sn="Slider-module__currentValue___dGV2T",rn="Slider-module__inputField___6x578",an="Slider-module__readOnlyValue___-ZzMW",k={layoutOverride:qa,sliderContainer:Ua,sliderTrackWrapper:Za,iconWrapper:Ya,sliderRoot:Ka,sliderTrack:Xa,sliderBar:Ja,sliderThumb:Qa,sliderMark:en,minMaxGuide:on,rightGuideContainer:tn,currentValue:sn,inputField:rn,readOnlyValue:an},nn=({value:i})=>s.jsx("div",{className:k.readOnlyValue,children:i}),xt=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:_,tooltipLabel:h,assistiveText:f,assistiveWithIcon:u,error:y,required:w,withAsterisk:C,id:v,className:N,style:S,disabled:$,readOnly:L,readOnlyComponent:A,emptyValueComponent:T,value:O,defaultValue:R,icon:P,showInput:g=!1,showMinMaxLabels:W=!0,min:M=0,max:j=100,step:ue=1,onChange:fe,onChangeEnd:q,...Ve}=e,[Mt,zt]=b.useState(()=>O!==void 0?O:R!==void 0?R:M),ce=O!==void 0?O:Mt,[Ft,Ge]=b.useState(ce.toString());b.useEffect(()=>{Ge(ce.toString())},[ce]);const fo=B=>{O===void 0&&zt(B),fe==null||fe(B)},Bt=B=>{const yo=B.target.value;Ge(yo);const No=parseFloat(yo);if(!isNaN(No)){const Gt=Math.max(M,Math.min(j,No));fo(Gt)}},Dt=()=>{Ge(ce.toString())},bo=x(Ve,r),we=bo;delete we.size,delete we.variant,delete we.radius,delete we.wrapperProps;const be={root:k.sliderRoot,track:k.sliderTrack,bar:k.sliderBar,thumb:k.sliderThumb,mark:k.sliderMark,markLabel:k.sliderMarkLabel},We=we.classNames;if(We&&typeof We=="object"&&!Array.isArray(We)){const B=We;be.root=B.root?`${k.sliderRoot} ${B.root}`:k.sliderRoot,be.track=B.track?`${k.sliderTrack} ${B.track}`:k.sliderTrack,be.bar=B.bar?`${k.sliderBar} ${B.bar}`:k.sliderBar,be.thumb=B.thumb?`${k.sliderThumb} ${B.thumb}`:k.sliderThumb,be.mark=B.mark?`${k.sliderMark} ${B.mark}`:k.sliderMark,be.markLabel=B.markLabel?`${k.sliderMarkLabel} ${B.markLabel}`:k.sliderMarkLabel}const Et=N?`${k.layoutOverride} ${N}`:k.layoutOverride,Vt=P?s.jsx("span",{className:k.iconWrapper,"aria-hidden":!0,children:P}):null;return s.jsx(X,{ref:a,className:Et,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:r,formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:u,error:y,required:w,withAsterisk:C,id:v,readOnly:L,readOnlyComponent:A||nn,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:ce,readOnlyNativeProps:{value:ce},activeComponent:s.jsxs("div",{className:k.sliderContainer,"data-form-layout":o,"data-disabled":$?"true":void 0,"data-error":y?"true":void 0,children:[Vt,W&&s.jsx("span",{className:k.minMaxGuide,children:M}),s.jsx("div",{className:k.sliderTrackWrapper,children:s.jsx(m.Slider,{classNames:be,disabled:$,value:ce,onChange:fo,onChangeEnd:q,min:M,max:j,step:ue,label:h,...bo})}),s.jsxs("div",{className:k.rightGuideContainer,children:[!g&&s.jsx("span",{className:k.currentValue,children:ce}),W&&s.jsx("span",{className:k.minMaxGuide,children:j})]}),g&&s.jsx("input",{type:"number",className:k.inputField,value:Ft,onChange:Bt,onBlur:Dt,min:M,max:j,step:ue,disabled:$,"data-error":y?"true":void 0})]})})});xt.displayName="Slider";const ln="Stack-module__root___NUN-x",Se={root:ln},vt=b.forwardRef(function({children:e,gap:a="rec-default",...r},o){const t={root:Se.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;t.root=d.root?`${Se.root} ${d.root}`:Se.root}const l=r.className,c=l?`${Se.root} ${l}`:Se.root;return s.jsx(m.Stack,{ref:o,className:c,classNames:t,...Ue({gap:a,...r}),children:e})});vt.displayName="Stack";const cn=m.createPolymorphicComponent(vt),dn="Stepper-module__root___jbSYO",pn="Stepper-module__horizontal___USHT1",mn="Stepper-module__steps___4HPO6",_n="Stepper-module__step___s2nqL",un="Stepper-module__stepBody___TBvys",fn="Stepper-module__stepLabel___N6nuy",bn="Stepper-module__stepDescription___DnDAy",yn="Stepper-module__separator___pU0No",Nn="Stepper-module__vertical___d4mOs",hn="Stepper-module__large___J18-y",xn="Stepper-module__small___Ub-zb",vn="Stepper-module__stepIcon___YQHNq",$n="Stepper-module__stepCompletedIcon___B9MeL",Cn="Stepper-module__verticalSeparator___frWc1",wn="Stepper-module__content___J-h8X",H={root:dn,horizontal:pn,steps:mn,step:_n,stepBody:un,stepLabel:fn,stepDescription:bn,separator:yn,vertical:Nn,large:hn,small:xn,stepIcon:vn,stepCompletedIcon:$n,verticalSeparator:Cn,content:wn},$t=b.forwardRef(function(e,a){const{overStyled:r=!1,size:o="large",orientation:t="horizontal",className:n,style:l,...c}=e,d=x(c,r);return s.jsx(m.Stepper,{ref:a,orientation:t,className:`${H.root} ${t==="horizontal"?H.horizontal:H.vertical} ${o==="large"?H.large:H.small} ${n||""}`,style:l,"data-size":o,"data-orientation":t,classNames:{steps:H.steps,step:H.step,stepIcon:H.stepIcon,stepCompletedIcon:H.stepCompletedIcon,stepBody:H.stepBody,stepLabel:H.stepLabel,stepDescription:H.stepDescription,separator:H.separator,verticalSeparator:H.verticalSeparator,content:H.content},...d})}),Pn=Object.assign($t,{Step:m.Stepper.Step,Completed:m.Stepper.Completed});$t.displayName="Stepper";const gn="Switch-module__root___Y5Ydi",jn="Switch-module__body___Sw9Wr",Tn="Switch-module__track___7ObdZ",Sn="Switch-module__thumb___-FTeK",An="Switch-module__labelWrapper___YSOwx",On="Switch-module__label___LrH7V",Rn="Switch-module__thumbIconWrapper___sCY-1",Wn="Switch-module__checkIcon___ZBAQN",Ln="Switch-module__closeIcon___bLLGw",kn="Switch-module__groupRoot___-Uepi",I={root:gn,body:jn,track:Tn,thumb:Sn,labelWrapper:An,label:On,thumbIconWrapper:Rn,checkIcon:Wn,closeIcon:Ln,groupRoot:kn},mo=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,className:v,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,P=x(R,r),g=P;return delete g.size,s.jsx(X,{className:v,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:h,assistiveWithIcon:f,error:u,required:y,withAsterisk:w,id:C,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:s.jsx(m.Switch.Group,{ref:a,...P,disabled:$||g.disabled,value:T,defaultValue:O,children:s.jsx("div",{className:I.groupRoot,"data-layout":o,children:S})})})});mo.displayName="SwitchGroup";const _o=b.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:o,readOnlyComponent:t,disabled:n,thumbIcon:l,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,...h}=e,f=x(h,r),u=f;delete u.size,delete u.color,delete u.radius,delete u.variant;const y={root:I.root,body:I.body,track:I.track,thumb:I.thumb,trackLabel:I.trackLabel,labelWrapper:I.labelWrapper,label:I.label},w=u.classNames;if(w&&typeof w=="object"&&!Array.isArray(w)){const $=w;y.root=$.root?`${I.root} ${$.root}`:I.root,y.body=$.body?`${I.body} ${$.body}`:I.body,y.track=$.track?`${I.track} ${$.track}`:I.track,y.thumb=$.thumb?`${I.thumb} ${$.thumb}`:I.thumb,y.trackLabel=$.trackLabel?`${I.trackLabel} ${$.trackLabel}`:I.trackLabel,y.labelWrapper=$.labelWrapper?`${I.labelWrapper} ${$.labelWrapper}`:I.labelWrapper,y.label=$.label?`${I.label} ${$.label}`:I.label}const C=u.className,v=C?`${I.root} ${C}`:I.root;if(o&&t){const $=!!(u.checked??u.defaultChecked),L=t,A=s.jsx(L,{...e,checked:$,label:u.label});return c?s.jsx(ae,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:A}):s.jsx(s.Fragment,{children:A})}const N=s.jsxs("div",{className:I.thumbIconWrapper,children:[s.jsx(m.CheckIcon,{className:I.checkIcon}),s.jsx(m.CloseIcon,{className:I.closeIcon})]}),S=s.jsx(m.Switch,{ref:a,className:v,classNames:y,disabled:o||n,"data-disabled":o||n||void 0,thumbIcon:l??N,...f});return c?s.jsx(ae,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:S}):S});_o.displayName="Switch";_o.Group=mo;const In="Table-module__root___aMWWS",Mn={root:In},Ct=b.forwardRef(function({overStyled:e=!1,className:a,...r},o){const t=x(r,e),n=t.className,l=Mn.root,c=n?`${l} ${n}`:l;return s.jsx(m.Table,{ref:o,className:c,...t})});Ct.displayName="Table";const ie=Ct;ie.Thead=m.Table.Thead;ie.Tbody=m.Table.Tbody;ie.Tr=m.Table.Tr;ie.Th=m.Table.Th;ie.Td=m.Table.Td;ie.Tfoot=m.Table.Tfoot;ie.Caption=m.Table.Caption;ie.ScrollContainer=m.Table.ScrollContainer;const zn="Tabs-module__root___-VKVI",Fn="Tabs-module__list___qRVME",Bn="Tabs-module__tab___IdDYc",Dn="Tabs-module__panel___08i9c",ke={root:zn,list:Fn,tab:Bn,panel:Dn},wt=b.forwardRef(function(e,a){const{variant:r="default",orientation:o="horizontal",overStyled:t=!1,className:n,...l}=e,c=x(l,t);return s.jsx(m.Tabs,{ref:a,variant:r,orientation:o,className:`${ke.root} ${n||""}`,"data-variant":r,"data-orientation":o,classNames:{list:ke.list,tab:ke.tab,panel:ke.panel},...c})});wt.displayName="Tabs";const Pt=b.forwardRef(function(e,a){const{overStyled:r=!1,...o}=e;return s.jsx(m.Tabs.List,{ref:a,...x(o,r)})});Pt.displayName="Tabs.List";const gt=b.forwardRef(function(e,a){const{overStyled:r=!1,...o}=e;return s.jsx(m.Tabs.Tab,{ref:a,...x(o,r)})});gt.displayName="Tabs.Tab";const jt=b.forwardRef(function(e,a){const{overStyled:r=!1,...o}=e;return s.jsx(m.Tabs.Panel,{ref:a,...x(o,r)})});jt.displayName="Tabs.Panel";const En=Object.assign(wt,{List:Pt,Tab:gt,Panel:jt}),Tt=b.forwardRef(function({overStyled:e=!1,variant:a="body",...r},o){const t=x(r,e),n=t.className,l=`recursica_brand_typography_${a}`,c=n?`${l} ${n}`:l;return s.jsx(m.Text,{ref:o,className:c,...t})});Tt.displayName="Text";const Vn=m.createPolymorphicComponent(Tt),Gn="TextArea-module__layoutOverride___4MCdm",Hn="TextArea-module__root___3dyeu",qn="TextArea-module__input___8l36v",pe={layoutOverride:Gn,root:Hn,input:qn},St=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=x(O,r),P=R;delete P.size,delete P.variant,delete P.radius;const g={wrapper:pe.root,input:pe.input},W=P.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const j=W;g.wrapper=j.wrapper?`${pe.root} ${j.wrapper}`:pe.root,g.input=j.input?`${pe.input} ${j.input}`:pe.input}const M=C?`${pe.layoutOverride} ${C}`:pe.layoutOverride;return s.jsx(X,{className:M,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_textarea_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_textarea_properties_min-width)",overStyled:r,formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:s.jsx(m.Textarea,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});St.displayName="TextArea";const Un="TextField-module__layoutOverride___SNZqc",Zn="TextField-module__root___2ZYkG",Yn="TextField-module__input___RL-My",Kn="TextField-module__section___bCIJ0",Q={layoutOverride:Un,root:Zn,input:Yn,section:Kn},At=b.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,className:C,style:v,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=x(O,r),P=R;delete P.size,delete P.variant,delete P.radius;const g={wrapper:Q.root,input:Q.input,section:Q.section},W=P.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const j=W;g.wrapper=j.wrapper?`${Q.root} ${j.wrapper}`:Q.root,g.input=j.input?`${Q.input} ${j.input}`:Q.input,g.section=j.section?`${Q.section} ${j.section}`:Q.section}const M=C?`${Q.layoutOverride} ${C}`:Q.layoutOverride;return s.jsx(X,{className:M,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:r,formLayout:o,labelSize:t,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:h,error:f,required:u,withAsterisk:y,id:w,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:s.jsx(m.Input,{ref:a,classNames:g,disabled:N,value:A,defaultValue:T,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});At.displayName="TextField";const Xn=i=>s.jsx("div",{...i,children:"TimePicker"}),Jn="Timeline-module__root___LwRdZ",Qn="Timeline-module__item___T5xdQ",el="Timeline-module__itemBody___XAV-E",ol="Timeline-module__itemBullet___rPXCy",tl="Timeline-module__itemTitle___GgRRW",sl="Timeline-module__itemContent___vurs-",rl="Timeline-module__description___f9sxV",al="Timeline-module__timestamp___owiRu",me={root:Jn,item:Qn,itemBody:el,itemBullet:ol,itemTitle:tl,itemContent:sl,description:rl,timestamp:al},Ot=b.forwardRef(function({overStyled:e=!1,timestamp:a,bulletVariant:r="default",children:o,...t},n){const l=x(t,e),c={item:me.item,itemBody:me.itemBody,itemContent:me.itemContent,itemBullet:me.itemBullet,itemTitle:me.itemTitle},d=l.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const _=d;Object.keys(_).forEach(h=>{c[h]?c[h]=`${c[h]} ${_[h]}`:c[h]=_[h]})}const p=a?s.jsxs(s.Fragment,{children:[o&&s.jsx("div",{className:me.description,children:o}),s.jsx("div",{className:me.timestamp,children:a})]}):o;return s.jsx(m.TimelineItem,{ref:n,classNames:c,"data-variant":r,...l,children:p})});Ot.displayName="TimelineItem";const Rt=b.forwardRef(function({overStyled:e=!1,...a},r){const o=x(a,e),t={root:me.root},n=o.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const l=n;Object.keys(l).forEach(c=>{t[c]?t[c]=`${t[c]} ${l[c]}`:t[c]=l[c]})}return s.jsx(m.Timeline,{ref:r,classNames:t,...o})});Rt.displayName="Timeline";const Wt=Rt;Wt.Item=Ot;const Lt=b.forwardRef(function({overStyled:e=!1,order:a=1,...r},o){const t=x(r,e),n=t.className,l=`recursica_brand_typography_h${a}`,c=n?`${l} ${n}`:l;return s.jsx(m.Title,{ref:o,order:a,className:c,...t})});Lt.displayName="Title";const nl="Toast-module__root___MUvfI",ll="Toast-module__icon___VwvE1",il="Toast-module__loader___8Gxd-",cl="Toast-module__title___-H6R2",dl="Toast-module__description___-QwfC",pl="Toast-module__closeButton___vGr7g",ml="Toast-module__body___VLkXA",xe={root:nl,icon:ll,loader:il,title:cl,description:dl,closeButton:pl,body:ml},kt=b.forwardRef(function({overStyled:e=!1,variant:a="default",withCloseButton:r=!0,...o},t){const n=x(o,e),l={root:xe.root,body:xe.body,title:xe.title,description:xe.description,closeButton:xe.closeButton,icon:xe.icon,loader:xe.loader},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{l[p]?l[p]=`${l[p]} ${d[p]}`:l[p]=d[p]})}return s.jsx(m.Notification,{ref:t,withCloseButton:r,withBorder:!1,"data-variant":a,classNames:l,loading:!1,...n})});kt.displayName="Toast";const _l="Tooltip-module__tooltip___UA7H9",ul="Tooltip-module__arrow___4zROk",Co={tooltip:_l,arrow:ul},It=function({overStyled:e=!1,withBeak:a=!0,...r}){const o=x(r,e),t={tooltip:Co.tooltip,arrow:Co.arrow},n=o.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const p=n;Object.keys(p).forEach(_=>{t[_]?t[_]=`${t[_]} ${p[_]}`:t[_]=p[_]})}const l=o.arrowSize??16,c=o.withArrow,d=a??c;return s.jsx(m.Tooltip,{position:"top",multiline:!0,arrowSize:l,withArrow:d,classNames:t,...o})};It.displayName="Tooltip";const uo=It;uo.Floating=m.Tooltip.Floating;uo.Group=m.Tooltip.Group;const fl=i=>s.jsx("div",{...i,children:"TransferList"});exports.Accordion=Be;exports.AccordionControl=ze;exports.AccordionItem=Ze;exports.AccordionPanel=Fe;exports.AutoComplete=jo;exports.Avatar=ks;exports.Badge=Ms;exports.Breadcrumb=Ao;exports.Button=Zs;exports.Card=er;exports.CardContent=oo;exports.CardFooter=eo;exports.CardHeader=Qe;exports.CardSection=Je;exports.Checkbox=so;exports.CheckboxGroup=to;exports.Chip=Lo;exports.Container=ko;exports.DatePicker=Io;exports.Dropdown=Mo;exports.EmptyValueRenderer=Oe;exports.FileInput=Or;exports.FileUpload=Rr;exports.Flex=Lr;exports.FormControlLayout=ae;exports.Group=Fo;exports.HoverCard=ro;exports.Label=Ye;exports.Layer=go;exports.Link=Dr;exports.Loader=Xe;exports.Menu=ve;exports.Modal=le;exports.NumberInput=ot;exports.Pagination=ee;exports.Panel=oe;exports.PanelFooter=lo;exports.Popover=io;exports.RECURSICA_COMPONENTS=vs;exports.Radio=po;exports.RadioGroup=co;exports.ReadOnlyBooleanField=Nt;exports.ReadOnlyField=Ke;exports.ReadOnlySwitchField=yt;exports.ReadOnlyTextField=Ae;exports.RecursicaThemeProvider=xs;exports.SegmentedControl=Ha;exports.Slider=xt;exports.Stack=cn;exports.Stepper=Pn;exports.Switch=_o;exports.SwitchGroup=mo;exports.Table=ie;exports.Tabs=En;exports.Text=Vn;exports.TextArea=St;exports.TextField=At;exports.TimePicker=Xn;exports.Timeline=Wt;exports.Title=Lt;exports.Toast=kt;exports.Tooltip=uo;exports.TransferList=fl;exports.WithReadOnlyWrapper=X;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),_=require("react"),u=require("@mantine/core"),er=require("@mantine/dates");var Ye=typeof document<"u"?document.currentScript:null;const or=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],So=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),ze={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function Qe(n){const e={...n};for(const[a,r]of Object.entries(e))typeof r=="string"&&r.startsWith("rec-")&&So.has(a)&&r in ze&&(e[a]=ze[r]);return e}function $(n,e){if(e)return n;const a={...n};for(const r of or)r in a&&delete a[r];for(const[r,o]of Object.entries(a))typeof o=="string"&&o.startsWith("rec-")&&So.has(r)&&o in ze&&(a[r]=ze[o]);return a}const tr="Accordion-module__root___Dem6d",rr="Accordion-module__item___7ryVk",sr="Accordion-module__noDivider___Ni2tT",ar="Accordion-module__control___b4wgX",nr="Accordion-module__label___Ss7uW",lr="Accordion-module__chevron___i-HVZ",ir="Accordion-module__iconLeftWrapper___5oLen",cr="Accordion-module__panel___Wx50w",dr="Accordion-module__content___PEM9t",se={root:tr,item:rr,noDivider:sr,control:ar,label:nr,chevron:lr,iconLeftWrapper:ir,panel:cr,content:dr},Ao=function({variant:e="unstyled",overStyled:a=!1,...r}){const o=$(r,a),t={root:se.root,item:se.item,control:se.control,label:se.label,chevron:se.chevron,panel:se.panel,content:se.content},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const c=l;Object.keys(c).forEach(d=>{t[d]?t[d]=`${t[d]} ${c[d]}`:t[d]=c[d]})}const i=o.className;return s.jsx(u.Accordion,{variant:e,className:i,classNames:t,...o})};Ao.displayName="Accordion";const Je=_.forwardRef(function({title:e,leftIcon:a,divider:r=!0,children:o,overStyled:t=!1,...l},i){const c=$(l,t),d=c.className,p=[r?void 0:se.noDivider,d].filter(Boolean).join(" ")||void 0;return s.jsx(u.Accordion.Item,{ref:i,className:p,...c,children:e?s.jsxs(s.Fragment,{children:[s.jsx(Be,{leftIcon:a,children:e}),s.jsx(De,{children:o})]}):o})});Je.displayName="AccordionItem";const Be=_.forwardRef(function({leftIcon:e,children:a,overStyled:r=!1,...o},t){const l=$(o,r),i=l.className;return s.jsx(u.Accordion.Control,{ref:t,className:i,icon:e?s.jsx("span",{className:se.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...l,children:a})});Be.displayName="AccordionControl";const De=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx(u.Accordion.Panel,{ref:r,className:t,...o})});De.displayName="AccordionPanel";const Ve=Ao;Ve.Item=Je;Ve.Control=Be;Ve.Panel=De;const pr="Label-module__root___e6HXZ",ur="Label-module__labelText___rieFR",mr="Label-module__required___Ggrzc",_r="Label-module__optionalText___Y2yun",fr="Label-module__actionAreaWrapper___ELoZK",yr="Label-module__editIconWrapper___NG2xW",K={root:pr,labelText:ur,required:mr,optionalText:_r,actionAreaWrapper:fr,editIconWrapper:yr},eo=_.forwardRef(function({labelSize:e="default",labelAlignment:a,required:r=!1,labelOptionalText:o,labelWithEditIcon:t,labelActionArea:l,onLabelEditClick:i,children:c,overStyled:d=!1,...p},m){const N=a||"left";let y;r||(o===!0?y="optional":o&&(y=o));const f=$(p,d),b=f,P={label:K.root,required:K.required},C=b.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const A=C;P.label=A.label?`${K.root} ${A.label}`:K.root,P.required=A.required?`${K.required} ${A.required}`:K.required}const v=b.className,h=v?`${K.root} ${v}`:K.root;return s.jsxs(u.Input.Label,{ref:m,className:h,classNames:P,"data-size":e,"data-alignment":N,required:r&&!t,...f,children:[s.jsx("span",{className:K.labelText,children:c}),y&&s.jsx("span",{className:K.optionalText,children:typeof y=="string"?`(${y})`:y}),l?s.jsx("span",{className:K.actionAreaWrapper,children:l}):t?s.jsx("button",{type:"button",className:K.editIconWrapper,"data-replaces-asterisk":r?"true":void 0,onClick:i,"aria-label":"Edit",children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});eo.displayName="Label";const br="FormControlLayout-module__root___yNDhZ",hr="FormControlLayout-module__leftSection___GBM1r",Nr="FormControlLayout-module__rightSection___bcL4v",We={root:br,leftSection:hr,rightSection:Nr},ne=_.forwardRef(function({formLayout:e="stacked",labelSize:a="default",controlMaxWidth:r,controlMinWidth:o,leftSection:t,children:l,className:i,style:c,...d},p){const m=i?`${We.root} ${i}`:We.root,y=t!=null||e==="side-by-side";return s.jsxs("div",{ref:p,className:m,"data-form-layout":e,style:{...c,...r?{"--form-control-max-width":r}:{},...o?{"--form-control-min-width":o}:{}},...d,children:[y&&s.jsx("div",{className:We.leftSection,"data-size":a,children:t}),s.jsx("div",{className:We.rightSection,children:l})]})});ne.displayName="FormControlLayout";const $r="AssistiveElement-module__root___WhQ43",vr="AssistiveElement-module__textWrapper___sfy5E",xr="AssistiveElement-module__iconWrapper___gObRF",Ze={root:$r,textWrapper:vr,iconWrapper:xr},Cr=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M12 16v-4"}),s.jsx("path",{d:"M12 8h.01"})]}),wr=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),s.jsx("path",{d:"M12 9v4"}),s.jsx("path",{d:"M12 17h.01"})]}),Ke=_.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:a=!0,children:r,className:o,overStyled:t=!1,...l},i){const d=$(l,t),p=Ze.root,m=o?`${p} ${o}`:p,N=e==="error"?wr:Cr;return s.jsxs("div",{ref:i,className:m,"data-variant":e,style:d.style,...d,children:[a&&s.jsx("span",{className:Ze.iconWrapper,children:s.jsx(N,{})}),s.jsx("span",{className:Ze.textWrapper,children:r})]})});Ke.displayName="AssistiveElement";const Pr="FormControlWrapper-module__root___c-UHo",gr="FormControlWrapper-module__inputSection___HenXk",Co={root:Pr,inputSection:gr},Ee=_.forwardRef(function({formLayout:e,labelSize:a,labelAlignment:r,labelOptionalText:o,labelWithEditIcon:t,labelActionArea:l,onLabelEditClick:i,label:c,description:d,assistiveText:p,assistiveWithIcon:m=!0,controlMaxWidth:N,controlMinWidth:y,error:f,required:b,withAsterisk:P,id:C,children:v,className:h,overStyled:A=!1,labelElement:x,...W},R){const S=_.useId(),L=C||`recursica-fc-${S}`,O=p||d,g=O?`${L}-assistive`:void 0,T=f?`${L}-error`:void 0,z=$(W,A),j=h||z.className,be=Co.root,he=j?`${be} ${j}`:be,U=_.isValidElement(v)?_.cloneElement(v,{...O&&!v.props["aria-describedby"]?{"aria-describedby":g}:{},...f&&!v.props["aria-errormessage"]?{"aria-errormessage":T}:{}}):v,qe=c?s.jsx(eo,{id:L,labelAlignment:r,labelOptionalText:o,labelWithEditIcon:t,labelActionArea:l,onLabelEditClick:i,required:P??b,...x==="div"?{as:"div"}:{},children:c}):void 0;return s.jsx(ne,{ref:R,className:he,formLayout:e,labelSize:a,controlMaxWidth:N,controlMinWidth:y,leftSection:qe,...z,children:s.jsxs("div",{className:Co.inputSection,children:[U,f&&s.jsx(Ke,{id:T,assistiveVariant:"error",assistiveWithIcon:m,children:f}),!f&&O&&s.jsx(Ke,{id:g,assistiveVariant:"help",assistiveWithIcon:m,children:O})]})})});Ee.displayName="FormControlWrapper";const Tr="_root_1qhn7_3",jr="_contents_1qhn7_18",Pe={root:Tr,contents:jr},Ro=_.forwardRef(function({layer:n,contentsOnly:e,children:a,className:r,style:o,...t},l){const i=e?r?`${Pe.root} ${Pe.contents} ${r}`:`${Pe.root} ${Pe.contents}`:r?`${Pe.root} ${r}`:Pe.root;return s.jsx("div",{ref:l,className:i,style:o,...e?{}:{"data-recursica-layer":String(n)},...t,children:a})});Ro.displayName="Layer";const Le=({emptyText:n="N/A"})=>s.jsx(_.Fragment,{children:n});Le.displayName="EmptyValueRenderer";Le.check=n=>n==null||n===""||Array.isArray(n)&&n.length===0;const Sr={BASE_URL:"/",DEV:!1,MODE:"library",PROD:!0,SSR:!1,VITE_PLUGIN_MODE:"production",VITE_PLUGIN_PHRASE:"recursica_plugin_@K9mX7pQw2VbN8fRt3LzY6HjE4CuA5DsG1WvM9nP0XcB7",VITE_PLUGIN_PHRASE_TEST:"recursica_plugin_@19866374",VITE_RECURSICA_API_TEST:"https://dev-api.recursica.com",VITE_RECURSICA_API_URL:"https://api.recursica.com",VITE_RECURSICA_UI_URL:"https://api.recursica.com"},ye=(()=>{try{if(typeof process<"u"&&process.env&&process.env.NODE_ENV)return process.env.NODE_ENV!=="production"}catch{}try{if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("mantine-adapter.cjs",document.baseURI).href}&&Sr)return!0}catch{}if(typeof window<"u"){const n=window.location.hostname;return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")}return!1})(),Xe=new Set;let fe=!1;function Lo(n){if(!ye)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(fe=n!==void 0?n:!fe,typeof document<"u"){const e=document.documentElement,a=fe?"0 0 0 2px cyan":"none";e.style.setProperty("--recursica-over-styled-shadow",a),console.log(`[Recursica] Highlight outlines toggled: ${fe?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return Xe.forEach(e=>e()),fe}function Ar(){return ye&&fe}function Oo(){const[n,e]=_.useState(fe);return _.useEffect(()=>{if(!ye)return;oo(),to();const a=()=>e(fe);return Xe.add(a),()=>{Xe.delete(a)}},[]),ye&&n}function oo(){if(!ye)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const n="recursica-over-styled-styles";let e=document.getElementById(n);e||(e=document.createElement("style"),e.id=n,e.textContent=`
|
|
2
|
+
:root {
|
|
3
|
+
--recursica-over-styled-shadow: none;
|
|
4
|
+
}
|
|
5
|
+
.recursica-over-styled {
|
|
6
|
+
display: contents !important;
|
|
7
|
+
}
|
|
8
|
+
.recursica-over-styled > * {
|
|
9
|
+
box-shadow: var(--recursica-over-styled-shadow) !important;
|
|
10
|
+
}
|
|
11
|
+
`,document.head.appendChild(e))}function to(){if(!ye)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const n=e=>{try{e.recursica=e.recursica||{},e.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Lo()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};n(window),window.parent&&window.parent!==window&&n(window.parent)}const wo="data-recursica-theme";function Rr({children:n,theme:e="light"}){return _.useEffect(()=>{const a=document.documentElement;return a.setAttribute(wo,e),()=>{a.removeAttribute(wo)}},[e]),_.useEffect(()=>{oo(),to()},[]),s.jsx(s.Fragment,{children:n})}const Lr=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],Or=(n,e)=>{const a=document.activeElement;return new Promise((r,o)=>{if(e&&e.current){const t=document.createElement("textarea");t.readOnly=!0,t.defaultValue=n,e.current.appendChild(t),t.select();const l=document.execCommand("copy");e.current.removeChild(t),a&&a.focus(),l?r():o(new Error("Failed to copy"))}else o(new Error("Copy area reference is not defined"))})};function w(n){if(!ye||typeof n!="function"&&!(n&&n.$$typeof))return n;const e=_.forwardRef((a,r)=>{const{overStyled:o}=a,t=Oo(),l=_.createElement(n,{...a,ref:r});return o&&t?s.jsx("div",{className:"recursica-over-styled",children:l}):l});return e.displayName=n.displayName||n.name||"Component",e}const Ir="ReadOnlyField-module__layoutOverride___9fSsG",Wr="ReadOnlyField-module__textField___qKn25",Fe={layoutOverride:Ir,textField:Wr},Me=({value:n,overStyled:e=!1,...a})=>{const r=$(a,e),o=r.className;return s.jsx(u.Box,{component:"p",className:o?`${Fe.textField} ${o}`:Fe.textField,...r,children:n!=null?_.isValidElement(n)?n:Array.isArray(n)?n.join(", "):String(n):""})};Me.displayName="ReadOnlyTextField";const ro=_.forwardRef(function({value:e,type:a="text",emptyValueComponent:r,overStyled:o=!1,className:t,style:l,...i},c){let d=null;const p=$(i,o),m=r||Le,y=(m.check?m.check(e):Le.check(e))?s.jsx(m,{value:e}):e;switch(a){case"boolean":d=s.jsx(Me,{value:e===!0?"True":e===!1?"False":y,overStyled:o});break;case"switch":d=s.jsx(Me,{value:e===!0?"On":e===!1?"Off":y,overStyled:o});break;case"text":default:d=s.jsx(Me,{value:y,overStyled:o});break}const f=t?`${Fe.layoutOverride} ${t}`:Fe.layoutOverride;return s.jsx(Ee,{ref:c,overStyled:o,className:f,style:l,...p,children:d})});ro.displayName="ReadOnlyField";const ee=_.forwardRef(function({readOnly:e,readOnlyComponent:a,readOnlyType:r="text",readOnlyValue:o,readOnlyNativeProps:t,emptyValueComponent:l,activeComponent:i,overStyled:c,onLabelEditClick:d,...p},m){if(e){if(a){const N=a;return s.jsx(Ee,{ref:m,...p,onLabelEditClick:d,overStyled:c,children:s.jsx(N,{...t})})}return s.jsx(ro,{ref:m,type:r,value:o,emptyValueComponent:l,onLabelEditClick:d,overStyled:c,...p})}return s.jsx(Ee,{ref:m,...p,onLabelEditClick:d,overStyled:c,children:i})});ee.displayName="WithReadOnlyWrapper";const kr="AutoComplete-module__layoutOverride___-K9WL",Mr="AutoComplete-module__root___kANza",zr="AutoComplete-module__input___g51MC",Er="AutoComplete-module__section___WAbf1",Fr="AutoComplete-module__dropdown___NqO3E",Br="AutoComplete-module__option___Y-Kja",D={layoutOverride:kr,root:Mr,input:zr,section:Er,dropdown:Fr,option:Br},Io=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,className:C,style:v,disabled:h,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,value:R,defaultValue:S,...L}=e,O=$(L,r),g=O;delete g.size,delete g.variant,delete g.radius;const T={wrapper:D.root,input:D.input,section:D.section,dropdown:D.dropdown,option:D.option},I=g.classNames;if(I&&typeof I=="object"&&!Array.isArray(I)){const j=I;T.wrapper=j.wrapper?`${D.root} ${j.wrapper}`:D.root,T.input=j.input?`${D.input} ${j.input}`:D.input,T.section=j.section?`${D.section} ${j.section}`:D.section,T.dropdown=j.dropdown?`${D.dropdown} ${j.dropdown}`:D.dropdown,T.option=j.option?`${D.option} ${j.option}`:D.option}const z=C?`${D.layoutOverride} ${C}`:D.layoutOverride;return s.jsx(ee,{className:z,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_autocomplete_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_autocomplete_properties_min-width)",overStyled:r,formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:R!==void 0?R:S,readOnlyNativeProps:e,activeComponent:s.jsx(u.Autocomplete,{ref:a,classNames:T,disabled:h,value:R,defaultValue:S,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":y?"true":void 0},...O})})});Io.displayName="AutoComplete";const Dr="Avatar-module__root___fXu-J",Vr="Avatar-module__iconWrapper___ojly2",Gr="Avatar-module__textWrapper___zp-jD",Hr="Avatar-module__image___ieqGp",qr="Avatar-module__placeholder___IDW7-",Q={root:Dr,iconWrapper:Vr,textWrapper:Gr,image:Hr,placeholder:qr},Wo=_.forwardRef(function({size:e="default",variant:a="solid",icon:r,children:o,src:t,overStyled:l=!1,...i},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},m=$(i,l),N=m;let y="text";t?y="image":r&&(y="icon");const f={root:Q.root,image:Q.image,placeholder:Q.placeholder},b=N.classNames;if(b&&typeof b=="object"&&!Array.isArray(b)){const C=b;f.root=C.root?`${Q.root} ${C.root}`:Q.root,f.image=C.image?`${Q.image} ${C.image}`:Q.image,f.placeholder=C.placeholder?`${Q.placeholder} ${C.placeholder}`:Q.placeholder}const P=N.className;return s.jsx(u.Avatar,{ref:c,className:P,classNames:f,variant:d[a],size:p[e],src:t,"data-variant":a,"data-size":e,"data-style":y,...m,children:r!=null?s.jsx("span",{className:Q.iconWrapper,"aria-hidden":!0,children:r}):o!=null?s.jsx("span",{className:Q.textWrapper,children:o}):void 0})});Wo.displayName="Avatar";const Ur=u.createPolymorphicComponent(Wo),Yr="Badge-module__root___5osNT",re={root:Yr},ko=_.forwardRef(function({variant:e="primary-color",overStyled:a=!1,...r},o){const t=$(r,a),l={root:re.root,section:re.section,label:re.label},i=t.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${re.root} ${p.root}`:re.root,l.section=p.section??re.section,l.label=p.label??re.label}const c=t.className,d=c?`${re.root} ${c}`:re.root;return s.jsx(u.Badge,{ref:o,variant:"filled","data-variant":e,...t,className:d,classNames:l})});ko.displayName="Badge";const Zr=u.createPolymorphicComponent(ko),Kr="Breadcrumb-module__root___x-9ln",Xr="Breadcrumb-module__separator___qrUX-",pe={root:Kr,separator:Xr},Mo=_.forwardRef(function({overStyled:e=!1,separator:a=">",...r},o){const t=$({separator:a,...r},e),l={root:pe.root,separator:pe.separator},i=t.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${pe.root} ${p.root}`:pe.root,l.separator=p.separator?`${pe.separator} ${p.separator}`:pe.separator}const c=t.className,d=c?`${pe.root} ${c}`:pe.root;return s.jsx(u.Breadcrumbs,{ref:o,...t,className:d,classNames:l})});Mo.displayName="Breadcrumb";const Qr="Loader-module__root___6iYOP",Te={root:Qr},so=_.forwardRef(function({variant:e="oval",size:a="default",overStyled:r=!1,...o},t){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[a]||"default",c=$(o,r),d={root:Te.root},p=c.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const y=p;d.root=y.root?`${Te.root} ${y.root}`:Te.root}const m=c.className,N=m?`${Te.root} ${m}`:Te.root;return s.jsx(u.Loader,{ref:t,type:e,"data-variant":e,"data-size":i,...c,className:N,classNames:d})});so.displayName="Loader";const Jr="Button-module__root___Q2R8-",es="Button-module__loader___X-9u-",os="Button-module__label___UJ3Zt",ts="Button-module__labelText___rFV5p",rs="Button-module__iconWrapper___uEKPa",ss="Button-module__section___f2mKr",X={root:Jr,loader:es,label:os,labelText:ts,iconWrapper:rs,section:ss};function as(n){return n==null||n===""?!1:typeof n=="string"?n.trim()!=="":!0}const zo=_.forwardRef(function({variant:e="solid",size:a="default",icon:r,children:o,overStyled:t=!1,loaderVariant:l="oval",loaderSize:i,useRecursicaLoader:c=!0,...d},p){const m={solid:"filled",outline:"outline",text:"subtle"},N={default:"md",small:"sm"},y=$(d,t),f=y;delete f.fullWidth;const b=!!r||!!f.leftSection,P=!!f.rightSection,C=as(o),v=(b||P)&&!C;let h="label";v?h="icon-only":(b||P)&&(h="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&v&&!f["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const A={root:X.root,section:X.section,label:X.label,loader:X.loader},x=f.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const g=x;A.root=g.root?`${X.root} ${g.root}`:X.root,A.section=g.section??X.section,A.label=g.label??X.label}const W=f.className,R=W?`${X.root} ${W}`:X.root,S=f.loaderProps,L=i??(a==="small"?"small":"default");let O=S;return c&&(O={children:s.jsx(so,{variant:l,size:L}),...S}),s.jsx(u.Button,{ref:p,className:R,classNames:A,variant:m[e],size:N[a],loaderProps:O,leftSection:r!=null?s.jsx("span",{className:X.iconWrapper,"aria-hidden":!0,children:r}):void 0,"data-variant":e,"data-size":a,"data-content":h,...y,disabled:!!f.disabled||!!f.loading,children:s.jsx("span",{className:X.labelText,children:o})})});zo.displayName="Button";const ns=u.createPolymorphicComponent(zo),ls="Card-module__root___c9KvZ",is="Card-module__header___PTXf2",cs="Card-module__footer___Mu-JC",ds="Card-module__section___BRT8H",ps="Card-module__content___oFIQa",le={root:ls,header:is,footer:cs,section:ds,content:ps},Eo=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in a&&!(d in o)&&(o[d]=a[d])});const l={root:le.root},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(p=>{l[p]?l[p]=`${l[p]} ${d[p]}`:l[p]=d[p]})}const c=o.className;return s.jsx(u.Card,{ref:r,className:c,classNames:l,...o})});Eo.displayName="Card";const Fo=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx(u.Card.Section,{ref:r,className:t?`${le.section} ${t}`:le.section,...o})});Fo.displayName="CardSection";const Bo=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx(u.Card.Section,{ref:r,className:t?`${le.header} ${t}`:le.header,...o})});Bo.displayName="CardHeader";const Do=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx(u.Card.Section,{ref:r,className:t?`${le.footer} ${t}`:le.footer,...o})});Do.displayName="CardFooter";const Vo=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx("div",{ref:r,className:t?`${le.content} ${t}`:le.content,...o})});Vo.displayName="CardContent";const Go=u.createPolymorphicComponent(Eo),Ge=Go;Ge.Section=Fo;Ge.Header=Bo;Ge.Footer=Do;Ge.Content=Vo;const us=Go,ms="Checkbox-module__groupRoot___cBS0o",_s="Checkbox-module__root___mY3qk",fs="Checkbox-module__body___5yC7q",ys="Checkbox-module__inner___rTke4",bs="Checkbox-module__input___2kt-h",hs="Checkbox-module__icon___-O7i6",Ns="Checkbox-module__labelWrapper___GpZkr",$s="Checkbox-module__label___cwRtI",E={groupRoot:ms,root:_s,body:fs,inner:ys,input:bs,icon:hs,labelWrapper:Ns,label:$s},ao=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:m,assistiveText:N,assistiveWithIcon:y,error:f,required:b,withAsterisk:P,id:C,className:v,style:h,children:A,readOnly:x,readOnlyComponent:W,emptyValueComponent:R,value:S,defaultValue:L,...O}=e,g=$(O,r),T=g;return delete T.size,s.jsx(ee,{className:v,style:h,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:m,assistiveText:N,assistiveWithIcon:y,error:f,required:b,withAsterisk:P,id:C,readOnly:x&&!!W,readOnlyComponent:W,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:S!==void 0?S:L,readOnlyNativeProps:e,activeComponent:s.jsx(u.Checkbox.Group,{ref:a,...g,disabled:x||T.disabled,value:S,defaultValue:L,children:s.jsx("div",{className:E.groupRoot,"data-layout":o,children:A})})})});ao.displayName="CheckboxGroup";const no=_.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:o,readOnlyComponent:t,disabled:l,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,...m}=e,N=$(m,r),y=N;delete y.size,delete y.color,delete y.radius,delete y.variant,delete y.iconColor;const f={root:E.root,body:E.body,inner:E.inner,input:E.input,icon:E.icon,labelWrapper:E.labelWrapper,label:E.label},b=y.classNames;if(b&&typeof b=="object"&&!Array.isArray(b)){const h=b;f.root=h.root?`${E.root} ${h.root}`:E.root,f.body=h.body?`${E.body} ${h.body}`:E.body,f.inner=h.inner?`${E.inner} ${h.inner}`:E.inner,f.input=h.input?`${E.input} ${h.input}`:E.input,f.icon=h.icon?`${E.icon} ${h.icon}`:E.icon,f.labelWrapper=h.labelWrapper?`${E.labelWrapper} ${h.labelWrapper}`:E.labelWrapper,f.label=h.label?`${E.label} ${h.label}`:E.label}const P=y.className,C=P?`${E.root} ${P}`:E.root;if(o&&t){const h=!!(y.checked??y.defaultChecked),A=t,x=s.jsx(A,{...e,checked:h,label:y.label});return i?s.jsx(ne,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:x}):s.jsx(s.Fragment,{children:x})}const v=s.jsx(u.Checkbox,{ref:a,className:C,classNames:f,disabled:o||l,...N});return i?s.jsx(ne,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:v}):v});no.displayName="Checkbox";no.Group=ao;const vs="Chip-module__root___f5pFk",xs="Chip-module__label___Ov9pg",Cs="Chip-module__mantineIconWrapper___KLSz6",ws="Chip-module__innerWrapper___EnrTF",Ps="Chip-module__children___zbRAR",gs="Chip-module__leadingIcon___JBtjQ",Ts="Chip-module__removeIcon___pVju-",H={root:vs,label:xs,mantineIconWrapper:Cs,innerWrapper:ws,children:Ps,leadingIcon:gs,removeIcon:Ts};function js(n){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Ho=_.forwardRef(function({error:e=!1,icon:a,onRemove:r,removeLabel:o="Remove",children:t,overStyled:l=!1,...i},c){const d=$(i,l),p=d,m={root:H.root,label:H.label,input:H.input,iconWrapper:H.mantineIconWrapper,checkIcon:H.checkIcon},N=p.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const v=N;m.root=v.root?`${H.root} ${v.root}`:H.root,m.label=v.label?`${H.label} ${v.label}`:H.label}const y=p.className,f=y?`${H.root} ${y}`:H.root,b=e?"":void 0,P=!t&&(!!a||!!r),C=p.checked!==void 0||p.defaultChecked!==void 0||r!==void 0||p.onClick!==void 0;return s.jsx(u.Chip,{ref:c,className:f,classNames:m,wrapperProps:b!==void 0?{"data-error":""}:void 0,...P?{"data-icon-only":""}:{},...C?{}:{tabIndex:-1,"aria-hidden":!0},...d,children:s.jsxs("span",{className:H.innerWrapper,children:[a&&s.jsx("span",{className:H.leadingIcon,"aria-hidden":!0,children:a}),s.jsx("span",{className:H.children,children:t}),r&&s.jsx("span",{role:"button",className:H.removeIcon,onClick:v=>{v.preventDefault(),v.stopPropagation(),r(v)},"aria-label":o,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation(),r(v))},tabIndex:0,children:s.jsx(js,{})})]})})});Ho.displayName="Chip";const Ss="Container-module__root___UVssr",je={root:Ss},qo=_.forwardRef(function({children:e,size:a,...r},o){const t={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof a=="string"&&t[a]?t[a]:a,i={root:je.root},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const m=c;i.root=m.root?`${je.root} ${m.root}`:je.root}const d=r.className,p=d?`${je.root} ${d}`:je.root;return s.jsx(u.Container,{ref:o,size:l,className:p,classNames:i,...r,children:e})});qo.displayName="Container";const As="DatePicker-module__layoutOverride___X9yaM",Rs="DatePicker-module__root___6XvRT",Ls="DatePicker-module__input___pcSW8",Os="DatePicker-module__section___n3iWA",Is="DatePicker-module__dropdown___wjt08",Ws="DatePicker-module__calendarHeader___KHxno",ks="DatePicker-module__day___U03J2",Y={layoutOverride:As,root:Rs,input:Ls,section:Os,dropdown:Is,calendarHeader:Ws,day:ks},Uo=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,className:C,style:v,disabled:h,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,value:R,defaultValue:S,...L}=e,O=$(L,r),g=O;delete g.size,delete g.variant,delete g.radius,delete g.description;const T={wrapper:Y.root,input:Y.input,section:Y.section,dropdown:Y.dropdown,day:Y.day,calendarHeader:Y.calendarHeader},I=g.classNames;if(I&&typeof I=="object"&&!Array.isArray(I)){const j=I;T.wrapper=j.wrapper?`${Y.root} ${j.wrapper}`:Y.root,T.input=j.input?`${Y.input} ${j.input}`:Y.input,T.section=j.section?`${Y.section} ${j.section}`:Y.section}const z=C?`${Y.layoutOverride} ${C}`:Y.layoutOverride;return s.jsx(ee,{className:z,style:v,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:r,formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:R!==void 0?String(R):S?String(S):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(er.DatePickerInput,{ref:a,classNames:T,disabled:h,value:R,defaultValue:S,label:void 0,description:void 0,error:void 0,withAsterisk:!1,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":y?"true":void 0},...O})})});Uo.displayName="DatePicker";const Ms="Dropdown-module__layoutOverride___FNcvP",zs="Dropdown-module__root___uVyL0",Es="Dropdown-module__input___dK4dN",Fs="Dropdown-module__section___j3MRB",Bs="Dropdown-module__dropdown___gG-Sw",Ds="Dropdown-module__option___nAGU-",V={layoutOverride:Ms,root:zs,input:Es,section:Fs,dropdown:Bs,option:Ds},Yo=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",containerWidth:t,labelSize:l,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:m,assistiveText:N,assistiveWithIcon:y,error:f,required:b,withAsterisk:P,id:C,className:v,style:h,disabled:A,readOnly:x,readOnlyComponent:W,emptyValueComponent:R,value:S,defaultValue:L,data:O,...g}=e,T=$(g,r),I=T;delete I.size,delete I.variant,delete I.radius;const z={wrapper:V.root,input:V.input,section:V.section,dropdown:V.dropdown,option:V.option},j=I.classNames;if(j&&typeof j=="object"&&!Array.isArray(j)){const U=j;z.wrapper=U.wrapper?`${V.root} ${U.wrapper}`:V.root,z.input=U.input?`${V.input} ${U.input}`:V.input,z.section=U.section?`${V.section} ${U.section}`:V.section,z.dropdown=U.dropdown?`${V.dropdown} ${U.dropdown}`:V.dropdown,z.option=U.option?`${V.option} ${U.option}`:V.option}const be={...h||{},width:t||"100%"},he=v?`${V.layoutOverride} ${v}`:V.layoutOverride;return s.jsx(ee,{className:he,style:be,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:r,formLayout:o,labelSize:l,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:m,assistiveText:N,assistiveWithIcon:y,error:f,required:b,withAsterisk:P,id:C,readOnly:x,readOnlyComponent:W,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:S!==void 0?String(S):L?String(L):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(u.Select,{ref:a,classNames:z,disabled:A,value:S,defaultValue:L,data:O||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":A?"true":void 0,"data-error":f?"true":void 0},...T})})});Yo.displayName="Dropdown";const Vs=n=>s.jsx("div",{...n,children:"FileInput"}),Gs=n=>s.jsx("div",{...n,children:"FileUpload"}),Hs="Flex-module__root___yYser",Se={root:Hs},Zo=_.forwardRef(function({children:e,gap:a="rec-default",rowGap:r,columnGap:o,...t},l){const i={root:Se.root},c=t.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const m=c;i.root=m.root?`${Se.root} ${m.root}`:Se.root}const d=t.className,p=d?`${Se.root} ${d}`:Se.root;return s.jsx(u.Flex,{ref:l,className:p,classNames:i,...Qe({gap:a,rowGap:r,columnGap:o,...t}),children:e})});Zo.displayName="Flex";const qs=u.createPolymorphicComponent(Zo),Us="Group-module__root___ftO64",Ae={root:Us},Ko=_.forwardRef(function({children:e,gap:a="rec-default",...r},o){const t={root:Ae.root},l=r.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;t.root=d.root?`${Ae.root} ${d.root}`:Ae.root}const i=r.className,c=i?`${Ae.root} ${i}`:Ae.root;return s.jsx(u.Group,{ref:o,className:c,classNames:t,...Qe({gap:a,...r}),children:e})});Ko.displayName="Group";const Ys="HoverCard-module__dropdown___FBPFW",Zs="HoverCard-module__arrow___S9AkE",Po={dropdown:Ys,arrow:Zs},Xo=function({overStyled:e=!1,withBeak:a=!0,...r}){const o=$(r,e),t={dropdown:Po.dropdown,arrow:Po.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{t[m]?t[m]=`${t[m]} ${p[m]}`:t[m]=p[m]})}const i=o.arrowSize??16,c=o.withArrow,d=a??c;return s.jsx(u.HoverCard,{position:"top",arrowSize:i,withArrow:d,classNames:t,...o})};Xo.displayName="HoverCard";const Qo=function(e){return s.jsx(u.HoverCard.Target,{...e})};Qo.displayName="HoverCardTarget";const Jo=function({overStyled:e=!1,...a}){const r=$(a,e),o=r.className;return s.jsx(u.HoverCard.Dropdown,{className:o,...r})};Jo.displayName="HoverCardDropdown";const lo=Xo;lo.Target=Qo;lo.Dropdown=Jo;const Ks="Link-module__root___I0VGE",Xs="Link-module__iconWrapper___W-LlF",Qs="Link-module__labelText___wSvUy",$e={root:Ks,iconWrapper:Xs,labelText:Qs},et=_.forwardRef(function({icon:e,children:a,overStyled:r=!1,...o},t){const l=$(o,r),i=l,c={root:$e.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const N=d;c.root=N.root?`${$e.root} ${N.root}`:$e.root}const p=i.className,m=p?`${$e.root} ${p}`:$e.root;return s.jsxs(u.Anchor,{ref:t,className:m,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...l,children:[e&&s.jsx("span",{className:$e.iconWrapper,"aria-hidden":!0,children:e}),s.jsx("span",{className:$e.labelText,children:a})]})});et.displayName="Link";const Js=u.createPolymorphicComponent(et),ea="Menu-module__dropdown___j4xuA",oa="Menu-module__item___NMXha",ta="Menu-module__itemLabel___zvcqC",ra="Menu-module__itemSection___pRIcn",sa="Menu-module__divider___wPiNq",aa="Menu-module__label___4FBGa",na="Menu-module__chevron___hEEiy",ve={dropdown:ea,item:oa,itemLabel:ta,itemSection:ra,divider:sa,label:aa,chevron:na},ot=function({overStyled:e=!1,...a}){const r=$(a,e),o={dropdown:ve.dropdown,item:ve.item,itemLabel:ve.itemLabel,itemSection:ve.itemSection,divider:ve.divider,label:ve.label,chevron:ve.chevron},t=r.classNames;if(t&&typeof t=="object"&&!Array.isArray(t)){const l=t;Object.keys(l).forEach(i=>{o[i]?o[i]=`${o[i]} ${l[i]}`:o[i]=l[i]})}return s.jsx(u.Menu,{classNames:o,...r})};ot.displayName="Menu";const tt=function(e){return s.jsx(u.Menu.Target,{...e})};tt.displayName="MenuTarget";const rt=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx(u.Menu.Dropdown,{ref:r,className:t,...o})});rt.displayName="MenuDropdown";const st=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o;e||delete t.color;const l=t.className;return s.jsx(u.Menu.Item,{ref:r,className:l,...o})});st.displayName="MenuItem";const la=u.createPolymorphicComponent(st),at=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx(u.Menu.Divider,{ref:r,className:t,...o})});at.displayName="MenuDivider";const nt=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx(u.Menu.Label,{ref:r,className:t,...o})});nt.displayName="MenuLabel";const lt=function(e){return s.jsx(u.Menu.Sub,{...e})};lt.displayName="MenuSub";const it=function(e){return s.jsx(u.Menu.Sub.Target,{...e})};it.displayName="MenuSubTarget";const ct=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o;e||delete t.color;const l=t.className;return s.jsx(u.Menu.Sub.Item,{ref:r,className:l,...o})});ct.displayName="MenuSubItem";const ia=u.createPolymorphicComponent(ct),dt=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className;return s.jsx(u.Menu.Sub.Dropdown,{ref:r,className:t,...o})});dt.displayName="MenuSubDropdown";const He=lt;He.Target=it;He.Item=ia;He.Dropdown=dt;const we=ot;we.Target=tt;we.Dropdown=rt;we.Item=la;we.Divider=at;we.Label=nt;we.Sub=He;const ca="Modal-module__root___ytPLl",da="Modal-module__inner___SSUJE",pa="Modal-module__content___dWO-B",ua="Modal-module__header___ILG9i",ma="Modal-module__title___A5OeE",_a="Modal-module__bodyWrapper___5CCL-",fa="Modal-module__scrollArea___KD-hm",ya="Modal-module__footer___rro2w",ba="Modal-module__close___-ER1C",ae={root:ca,inner:da,content:pa,header:ua,title:ma,bodyWrapper:_a,scrollArea:fa,footer:ya,close:ba},pt=_.forwardRef(function({overStyled:e=!1,children:a,title:r,withCloseButton:o=!0,overlayProps:t,withOverlay:l=!0,closeButtonProps:i,...c},d){const p=$(c,e),m={root:ae.root,inner:ae.inner,content:ae.content,header:ae.header,title:ae.title,close:ae.close},N=p.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const y=N;Object.keys(y).forEach(f=>{m[f]?m[f]=`${m[f]} ${y[f]}`:m[f]=y[f]})}return s.jsxs(u.Modal.Root,{ref:d,classNames:m,...p,children:[l&&s.jsx(u.Modal.Overlay,{...t}),s.jsxs(u.Modal.Content,{children:[(r||o)&&s.jsxs(u.Modal.Header,{children:[r&&s.jsx(u.Modal.Title,{children:r}),o&&s.jsx(u.Modal.CloseButton,{...i})]}),s.jsx(co,{children:a})]})]})});pt.displayName="Modal";const io=_.forwardRef(function({className:e,...a},r){return s.jsx("div",{ref:r,className:`${ae.footer} ${e||""}`,...a})});io.displayName="Modal.Footer";const co=_.forwardRef(function({className:e,onScroll:a,children:r,...o},t){const l=_.useRef(null),[i,c]=_.useState(!1),[d,p]=_.useState(!1),m=_.useCallback(()=>{if(l.current){const{scrollTop:b,scrollHeight:P,clientHeight:C}=l.current;c(b>0),p(Math.ceil(b+C)<P)}},[]);_.useEffect(()=>(m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)),[m,r]);const N=b=>{m(),a==null||a(b)};let y=null;const f=[];return _.Children.forEach(r,b=>{var P;_.isValidElement(b)&&(b.type===io||((P=b.type)==null?void 0:P.displayName)==="Modal.Footer")?y=b:f.push(b)}),s.jsxs(u.Modal.Body,{...o,ref:b=>{typeof t=="function"?t(b):t&&(t.current=b)},className:`${ae.bodyWrapper} ${e||""}`,children:[s.jsx("div",{ref:l,onScroll:N,"data-scrolled-top":i||void 0,"data-scrolled-bottom":d||void 0,className:ae.scrollArea,children:f}),y]})});co.displayName="Modal.Body";const ie=pt;ie.Root=u.Modal.Root;ie.Overlay=u.Modal.Overlay;ie.Content=u.Modal.Content;ie.Header=u.Modal.Header;ie.Title=u.Modal.Title;ie.CloseButton=u.Modal.CloseButton;ie.Body=co;ie.Footer=io;const ha="NumberInput-module__layoutOverride___5-9T4",Na="NumberInput-module__root___C6rAn",$a="NumberInput-module__input___Ss8p7",va="NumberInput-module__section___MijP0",xa="NumberInput-module__controls___8UfQ2",Ca="NumberInput-module__control___Qre9-",xe={layoutOverride:ha,root:Na,input:$a,section:va,controls:xa,control:Ca},ut=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,className:C,style:v,disabled:h,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,value:R,defaultValue:S,hideControls:L=!1,...O}=e,g=$(O,r),T=g;delete T.size,delete T.variant,delete T.radius;const I={wrapper:xe.root,input:xe.input,section:xe.section,controls:xe.controls,control:xe.control},z=C?`${xe.layoutOverride} ${C}`:xe.layoutOverride;return s.jsx(ee,{className:z,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:r,formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:R!==void 0?R==null?void 0:R.toString():S==null?void 0:S.toString(),readOnlyNativeProps:e,activeComponent:s.jsx(u.NumberInput,{ref:a,classNames:I,disabled:h,value:R,defaultValue:S,hideControls:L,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":y?"true":void 0,"data-with-left-section":T.leftSection?"true":void 0,"data-with-right-section":T.rightSection||!L?"true":void 0},...g})})});ut.displayName="NumberInput";const wa="Pagination-module__root___ITRjt",Pa="Pagination-module__control___40yNT",ga="Pagination-module__dots___Yl9da",Ta="Pagination-module__iconWithLabel___pLM4O",ja="Pagination-module__baseIcon___Qw3bJ",G={root:wa,control:Pa,dots:ga,iconWithLabel:Ta,baseIcon:ja},Sa="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Aa="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",Ra="M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",La="M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",Oa={next:Sa,prev:Aa,first:Ra,last:La},Oe=({type:n,className:e,...a})=>s.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${G.baseIcon} ${e||""}`.trim(),...a,children:s.jsx("path",{d:Oa[n],fill:"currentColor"})}),mt=n=>s.jsxs("div",{className:G.iconWithLabel,children:[s.jsx("span",{children:"Next"}),s.jsx(Oe,{type:"next",...n})]}),_t=n=>s.jsxs("div",{className:G.iconWithLabel,children:[s.jsx(Oe,{type:"prev",...n}),s.jsx("span",{children:"Prev"})]}),ft=n=>s.jsxs("div",{className:G.iconWithLabel,children:[s.jsx(Oe,{type:"first",...n}),s.jsx("span",{children:"First"})]}),yt=n=>s.jsxs("div",{className:G.iconWithLabel,children:[s.jsx("span",{children:"Last"}),s.jsx(Oe,{type:"last",...n})]});function bt(n){const e={root:G.root,control:G.control,dots:G.dots},a=n.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const t=a;e.root=t.root?`${G.root} ${t.root}`:G.root,e.control=t.control?`${G.control} ${t.control}`:G.control,e.dots=t.dots?`${G.dots} ${t.dots}`:G.dots}const r=n.className;return{className:r?`${G.root} ${r}`:G.root,classNames:e}}const ht=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=bt(o);return s.jsx(u.Pagination.Root,{ref:r,className:t.className,classNames:t.classNames,...o})});ht.displayName="Pagination.Root";const Nt=_.forwardRef(function({withLabel:e,icon:a,...r},o){const t=a||(e?mt:void 0);return s.jsx(u.Pagination.Next,{ref:o,"data-variant":"text",icon:t,...r})});Nt.displayName="Pagination.Next";const $t=_.forwardRef(function({withLabel:e,icon:a,...r},o){const t=a||(e?_t:void 0);return s.jsx(u.Pagination.Previous,{ref:o,"data-variant":"text",icon:t,...r})});$t.displayName="Pagination.Previous";const vt=_.forwardRef(function({withLabel:e,icon:a,...r},o){const t=a||(e?ft:void 0);return s.jsx(u.Pagination.First,{ref:o,"data-variant":"text",icon:t,...r})});vt.displayName="Pagination.First";const xt=_.forwardRef(function({withLabel:e,icon:a,...r},o){const t=a||(e?yt:void 0);return s.jsx(u.Pagination.Last,{ref:o,"data-variant":"text",icon:t,...r})});xt.displayName="Pagination.Last";const Ct=_.forwardRef(function({overStyled:e=!1,getControlProps:a,withLabels:r,...o},t){const l=$(o,e),i=bt(l),c=p=>{const m={"data-variant":"text"};return a?{...m,...a(p)}:m},d=r?{nextIcon:mt,previousIcon:_t,firstIcon:ft,lastIcon:yt}:{};return s.jsx(u.Pagination,{ref:t,className:i.className,classNames:i.classNames,getControlProps:c,...d,...l})});Ct.displayName="Pagination";const oe=Ct;oe.Root=ht;oe.Items=u.Pagination.Items;oe.Control=u.Pagination.Control;oe.Dots=u.Pagination.Dots;oe.Next=Nt;oe.Previous=$t;oe.First=vt;oe.Last=xt;oe.Icon=Oe;const Ia="Panel-module__content___wdGo-",Wa="Panel-module__inner___ruA2b",ka="Panel-module__header___o7SiC",Ma="Panel-module__title___181OP",za="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Ea="Panel-module__body___SEC3T",Fa="Panel-module__footer___t6-hz",_e={content:Ia,inner:Wa,header:ka,title:Ma,titleTruncate:za,body:Ea,footer:Fa},wt=function({overStyled:e=!1,placement:a="right",keepMounted:r=!0,wrapHeaderText:o=!1,...t}){const l=$(t,e),i={content:_e.content,header:_e.header,title:o?_e.titleTruncate:_e.title,body:_e.body,inner:_e.inner},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{i[p]?i[p]=`${i[p]} ${d[p]}`:i[p]=d[p]})}return s.jsx(u.Drawer,{position:a,keepMounted:r,closeOnClickOutside:t.closeOnClickOutside??!!t.opened,...l,classNames:i})};wt.displayName="Panel";const po=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className,l=t?`${_e.footer} ${t}`:_e.footer;return s.jsx("div",{ref:r,className:l,...o})});po.displayName="PanelFooter";const te=wt;te.Root=u.Drawer.Root;te.Overlay=u.Drawer.Overlay;te.Content=u.Drawer.Content;te.Header=u.Drawer.Header;te.Title=u.Drawer.Title;te.CloseButton=u.Drawer.CloseButton;te.Body=u.Drawer.Body;te.Stack=u.Drawer.Stack;te.Footer=po;const Ba="Popover-module__dropdown___svhS6",Da="Popover-module__arrow___5A-0e",go={dropdown:Ba,arrow:Da},Pt=function({overStyled:e=!1,withBeak:a=!0,...r}){const o=$(r,e),t={dropdown:go.dropdown,arrow:go.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{t[m]?t[m]=`${t[m]} ${p[m]}`:t[m]=p[m]})}const i=o.arrowSize??16,c=o.withArrow,d=a??c;return s.jsx(u.Popover,{position:"top",arrowSize:i,withArrow:d,classNames:t,...o})};Pt.displayName="Popover";const gt=function(e){return s.jsx(u.Popover.Target,{...e})};gt.displayName="PopoverTarget";const Tt=function({overStyled:e=!1,...a}){const r=$(a,e),o=r.className;return s.jsx(u.Popover.Dropdown,{className:o,...r})};Tt.displayName="PopoverDropdown";const uo=Pt;uo.Target=gt;uo.Dropdown=Tt;const Va="Radio-module__groupRoot___bfUii",Ga="Radio-module__root___kAjTD",Ha="Radio-module__body___q2Wpj",qa="Radio-module__inner___QaTBB",Ua="Radio-module__radio___MfgN-",Ya="Radio-module__icon___DWznm",Za="Radio-module__labelWrapper___dB0Gi",Ka="Radio-module__label___vAFIP",F={groupRoot:Va,root:Ga,body:Ha,inner:qa,radio:Ua,icon:Ya,labelWrapper:Za,label:Ka},mo=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:m,assistiveText:N,assistiveWithIcon:y,error:f,required:b,withAsterisk:P,id:C,className:v,style:h,children:A,readOnly:x,readOnlyComponent:W,emptyValueComponent:R,value:S,defaultValue:L,...O}=e,g=$(O,r),T=g;return delete T.size,s.jsx(ee,{className:v,style:h,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:m,assistiveText:N,assistiveWithIcon:y,error:f,required:b,withAsterisk:P,id:C,readOnly:x&&!!W,readOnlyComponent:W,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:S!==void 0?S:L,readOnlyNativeProps:e,activeComponent:s.jsx(u.Radio.Group,{ref:a,...g,disabled:x||T.disabled,value:S,defaultValue:L,children:s.jsx("div",{className:F.groupRoot,"data-layout":o,children:A})})})});mo.displayName="RadioGroup";const Xa=({className:n,style:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:n,style:e,children:s.jsx("circle",{cx:"8",cy:"8",r:"5"})}),_o=_.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:o,readOnlyComponent:t,disabled:l,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,...m}=e,N=$(m,r),y=N;delete y.size,delete y.color,delete y.radius,delete y.variant,delete y.iconColor;const f={root:F.root,body:F.body,inner:F.inner,radio:F.radio,icon:F.icon,labelWrapper:F.labelWrapper,label:F.label},b=y.classNames;if(b&&typeof b=="object"&&!Array.isArray(b)){const h=b;f.root=h.root?`${F.root} ${h.root}`:F.root,f.body=h.body?`${F.body} ${h.body}`:F.body,f.inner=h.inner?`${F.inner} ${h.inner}`:F.inner,f.radio=h.radio?`${F.radio} ${h.radio}`:F.radio,f.icon=h.icon?`${F.icon} ${h.icon}`:F.icon,f.labelWrapper=h.labelWrapper?`${F.labelWrapper} ${h.labelWrapper}`:F.labelWrapper,f.label=h.label?`${F.label} ${h.label}`:F.label}const P=y.className,C=P?`${F.root} ${P}`:F.root;if(o&&t){const h=!!(y.checked??y.defaultChecked),A=t,x=s.jsx(A,{...e,checked:h,label:y.label});return i?s.jsx(ne,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:x}):s.jsx(s.Fragment,{children:x})}const v=s.jsx(u.Radio,{ref:a,icon:Xa,className:C,classNames:f,disabled:o||l,...N});return i?s.jsx(ne,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:v}):v});_o.displayName="Radio";_o.Group=mo;const Qa="SegmentedControl-module__root___JFRhg",Ja="SegmentedControl-module__label___mS17q",en="SegmentedControl-module__control___znOdQ",on="SegmentedControl-module__indicator___ZMcJy",Z={root:Qa,label:Ja,control:en,indicator:on};function tn(n){const e={root:Z.root,control:Z.control,label:Z.label,indicator:Z.indicator},a=n.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const t=a;e.root=t.root?`${Z.root} ${t.root}`:Z.root,e.control=t.control?`${Z.control} ${t.control}`:Z.control,e.label=t.label?`${Z.label} ${t.label}`:Z.label,e.indicator=t.indicator?`${Z.indicator} ${t.indicator}`:Z.indicator}const r=n.className;return{className:r?`${Z.root} ${r}`:Z.root,classNames:e}}const jt=_.forwardRef(function({overStyled:e=!1,orientation:a="horizontal",fullWidth:r,...o},t){const l=$(o,e),i=l;delete i.disabled;const c=tn(i);return s.jsx(u.SegmentedControl,{ref:t,className:c.className,classNames:c.classNames,orientation:a,fullWidth:r,"data-orientation":a,...l})});jt.displayName="SegmentedControl";const rn=jt,sn="Slider-module__layoutOverride___zYPun",an="Slider-module__sliderContainer___y8I0J",nn="Slider-module__sliderTrackWrapper___UHpVh",ln="Slider-module__iconWrapper___uqHpC",cn="Slider-module__sliderRoot___LI86H",dn="Slider-module__sliderTrack___oqnlG",pn="Slider-module__sliderBar___TI4VY",un="Slider-module__sliderThumb___OFn8p",mn="Slider-module__sliderMark___1lM2B",_n="Slider-module__minMaxGuide___TaGqz",fn="Slider-module__rightGuideContainer___8dOT8",yn="Slider-module__currentValue___dGV2T",bn="Slider-module__inputField___6x578",hn="Slider-module__readOnlyValue___-ZzMW",k={layoutOverride:sn,sliderContainer:an,sliderTrackWrapper:nn,iconWrapper:ln,sliderRoot:cn,sliderTrack:dn,sliderBar:pn,sliderThumb:un,sliderMark:mn,minMaxGuide:_n,rightGuideContainer:fn,currentValue:yn,inputField:bn,readOnlyValue:hn},Nn=({value:n})=>s.jsx("div",{className:k.readOnlyValue,children:n}),St=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:m,tooltipLabel:N,assistiveText:y,assistiveWithIcon:f,error:b,required:P,withAsterisk:C,id:v,className:h,style:A,disabled:x,readOnly:W,readOnlyComponent:R,emptyValueComponent:S,value:L,defaultValue:O,icon:g,showInput:T=!1,showMinMaxLabels:I=!0,min:z=0,max:j=100,step:be=1,onChange:he,onChangeEnd:U,...qe}=e,[qt,Ut]=_.useState(()=>L!==void 0?L:O!==void 0?O:z),de=L!==void 0?L:qt,[Yt,Ue]=_.useState(de.toString());_.useEffect(()=>{Ue(de.toString())},[de]);const No=B=>{L===void 0&&Ut(B),he==null||he(B)},Zt=B=>{const vo=B.target.value;Ue(vo);const xo=parseFloat(vo);if(!isNaN(xo)){const Jt=Math.max(z,Math.min(j,xo));No(Jt)}},Kt=()=>{Ue(de.toString())},$o=$(qe,r),ge=$o;delete ge.size,delete ge.variant,delete ge.radius,delete ge.wrapperProps;const Ne={root:k.sliderRoot,track:k.sliderTrack,bar:k.sliderBar,thumb:k.sliderThumb,mark:k.sliderMark,markLabel:k.sliderMarkLabel},Ie=ge.classNames;if(Ie&&typeof Ie=="object"&&!Array.isArray(Ie)){const B=Ie;Ne.root=B.root?`${k.sliderRoot} ${B.root}`:k.sliderRoot,Ne.track=B.track?`${k.sliderTrack} ${B.track}`:k.sliderTrack,Ne.bar=B.bar?`${k.sliderBar} ${B.bar}`:k.sliderBar,Ne.thumb=B.thumb?`${k.sliderThumb} ${B.thumb}`:k.sliderThumb,Ne.mark=B.mark?`${k.sliderMark} ${B.mark}`:k.sliderMark,Ne.markLabel=B.markLabel?`${k.sliderMarkLabel} ${B.markLabel}`:k.sliderMarkLabel}const Xt=h?`${k.layoutOverride} ${h}`:k.layoutOverride,Qt=g?s.jsx("span",{className:k.iconWrapper,"aria-hidden":!0,children:g}):null;return s.jsx(ee,{ref:a,className:Xt,style:A,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:r,formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:m,assistiveText:y,assistiveWithIcon:f,error:b,required:P,withAsterisk:C,id:v,readOnly:W,readOnlyComponent:R||Nn,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:de,readOnlyNativeProps:{value:de},activeComponent:s.jsxs("div",{className:k.sliderContainer,"data-form-layout":o,"data-disabled":x?"true":void 0,"data-error":b?"true":void 0,children:[Qt,I&&s.jsx("span",{className:k.minMaxGuide,children:z}),s.jsx("div",{className:k.sliderTrackWrapper,children:s.jsx(u.Slider,{classNames:Ne,disabled:x,value:de,onChange:No,onChangeEnd:U,min:z,max:j,step:be,label:N,...$o})}),s.jsxs("div",{className:k.rightGuideContainer,children:[!T&&s.jsx("span",{className:k.currentValue,children:de}),I&&s.jsx("span",{className:k.minMaxGuide,children:j})]}),T&&s.jsx("input",{type:"number",className:k.inputField,value:Yt,onChange:Zt,onBlur:Kt,min:z,max:j,step:be,disabled:x,"data-error":b?"true":void 0})]})})});St.displayName="Slider";const $n="Stack-module__root___NUN-x",Re={root:$n},At=_.forwardRef(function({children:e,gap:a="rec-default",...r},o){const t={root:Re.root},l=r.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;t.root=d.root?`${Re.root} ${d.root}`:Re.root}const i=r.className,c=i?`${Re.root} ${i}`:Re.root;return s.jsx(u.Stack,{ref:o,className:c,classNames:t,...Qe({gap:a,...r}),children:e})});At.displayName="Stack";const vn=u.createPolymorphicComponent(At),xn="Stepper-module__root___jbSYO",Cn="Stepper-module__horizontal___USHT1",wn="Stepper-module__steps___4HPO6",Pn="Stepper-module__step___s2nqL",gn="Stepper-module__stepBody___TBvys",Tn="Stepper-module__stepLabel___N6nuy",jn="Stepper-module__stepDescription___DnDAy",Sn="Stepper-module__separator___pU0No",An="Stepper-module__vertical___d4mOs",Rn="Stepper-module__large___J18-y",Ln="Stepper-module__small___Ub-zb",On="Stepper-module__stepIcon___YQHNq",In="Stepper-module__stepCompletedIcon___B9MeL",Wn="Stepper-module__verticalSeparator___frWc1",kn="Stepper-module__content___J-h8X",q={root:xn,horizontal:Cn,steps:wn,step:Pn,stepBody:gn,stepLabel:Tn,stepDescription:jn,separator:Sn,vertical:An,large:Rn,small:Ln,stepIcon:On,stepCompletedIcon:In,verticalSeparator:Wn,content:kn},Rt=_.forwardRef(function(e,a){const{overStyled:r=!1,size:o="large",orientation:t="horizontal",className:l,style:i,...c}=e,d=$(c,r);return s.jsx(u.Stepper,{ref:a,orientation:t,className:`${q.root} ${t==="horizontal"?q.horizontal:q.vertical} ${o==="large"?q.large:q.small} ${l||""}`,style:i,"data-size":o,"data-orientation":t,classNames:{steps:q.steps,step:q.step,stepIcon:q.stepIcon,stepCompletedIcon:q.stepCompletedIcon,stepBody:q.stepBody,stepLabel:q.stepLabel,stepDescription:q.stepDescription,separator:q.separator,verticalSeparator:q.verticalSeparator,content:q.content},...d})}),Mn=Object.assign(Rt,{Step:u.Stepper.Step,Completed:u.Stepper.Completed});Rt.displayName="Stepper";const zn="Switch-module__root___Y5Ydi",En="Switch-module__body___Sw9Wr",Fn="Switch-module__track___7ObdZ",Bn="Switch-module__thumb___-FTeK",Dn="Switch-module__labelWrapper___YSOwx",Vn="Switch-module__label___LrH7V",Gn="Switch-module__thumbIconWrapper___sCY-1",Hn="Switch-module__checkIcon___ZBAQN",qn="Switch-module__closeIcon___bLLGw",Un="Switch-module__groupRoot___-Uepi",M={root:zn,body:En,track:Fn,thumb:Bn,labelWrapper:Dn,label:Vn,thumbIconWrapper:Gn,checkIcon:Hn,closeIcon:qn,groupRoot:Un},fo=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:m,assistiveText:N,assistiveWithIcon:y,error:f,required:b,withAsterisk:P,id:C,className:v,style:h,children:A,readOnly:x,readOnlyComponent:W,emptyValueComponent:R,value:S,defaultValue:L,...O}=e,g=$(O,r),T=g;return delete T.size,s.jsx(ee,{className:v,style:h,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:m,assistiveText:N,assistiveWithIcon:y,error:f,required:b,withAsterisk:P,id:C,readOnly:x&&!!W,readOnlyComponent:W,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:S!==void 0?S:L,readOnlyNativeProps:e,activeComponent:s.jsx(u.Switch.Group,{ref:a,...g,disabled:x||T.disabled,value:S,defaultValue:L,children:s.jsx("div",{className:M.groupRoot,"data-layout":o,children:A})})})});fo.displayName="SwitchGroup";const yo=_.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:o,readOnlyComponent:t,disabled:l,thumbIcon:i,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:m,...N}=e,y=$(N,r),f=y;delete f.size,delete f.color,delete f.radius,delete f.variant;const b={root:M.root,body:M.body,track:M.track,thumb:M.thumb,trackLabel:M.trackLabel,labelWrapper:M.labelWrapper,label:M.label},P=f.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const x=P;b.root=x.root?`${M.root} ${x.root}`:M.root,b.body=x.body?`${M.body} ${x.body}`:M.body,b.track=x.track?`${M.track} ${x.track}`:M.track,b.thumb=x.thumb?`${M.thumb} ${x.thumb}`:M.thumb,b.trackLabel=x.trackLabel?`${M.trackLabel} ${x.trackLabel}`:M.trackLabel,b.labelWrapper=x.labelWrapper?`${M.labelWrapper} ${x.labelWrapper}`:M.labelWrapper,b.label=x.label?`${M.label} ${x.label}`:M.label}const C=f.className,v=C?`${M.root} ${C}`:M.root;if(o&&t){const x=!!(f.checked??f.defaultChecked),W=t,R=s.jsx(W,{...e,checked:x,label:f.label});return c?s.jsx(ne,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:m,children:R}):s.jsx(s.Fragment,{children:R})}const h=s.jsxs("div",{className:M.thumbIconWrapper,children:[s.jsx(u.CheckIcon,{className:M.checkIcon}),s.jsx(u.CloseIcon,{className:M.closeIcon})]}),A=s.jsx(u.Switch,{ref:a,className:v,classNames:b,disabled:o||l,"data-disabled":o||l||void 0,thumbIcon:i??h,...y});return c?s.jsx(ne,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:m,children:A}):A});yo.displayName="Switch";yo.Group=fo;const Yn="Table-module__root___aMWWS",Zn={root:Yn},Lt=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t=o.className,l=Zn.root,i=t?`${l} ${t}`:l;return s.jsx(u.Table,{ref:r,className:i,...o})});Lt.displayName="Table";const ce=Lt;ce.Thead=u.Table.Thead;ce.Tbody=u.Table.Tbody;ce.Tr=u.Table.Tr;ce.Th=u.Table.Th;ce.Td=u.Table.Td;ce.Tfoot=u.Table.Tfoot;ce.Caption=u.Table.Caption;ce.ScrollContainer=u.Table.ScrollContainer;const Kn="Tabs-module__root___-VKVI",Xn="Tabs-module__list___qRVME",Qn="Tabs-module__tab___IdDYc",Jn="Tabs-module__panel___08i9c",ke={root:Kn,list:Xn,tab:Qn,panel:Jn},Ot=_.forwardRef(function(e,a){const{variant:r="default",orientation:o="horizontal",overStyled:t=!1,className:l,...i}=e,c=$(i,t);return s.jsx(u.Tabs,{ref:a,variant:r,orientation:o,className:`${ke.root} ${l||""}`,"data-variant":r,"data-orientation":o,classNames:{list:ke.list,tab:ke.tab,panel:ke.panel},...c})});Ot.displayName="Tabs";const It=_.forwardRef(function(e,a){const{overStyled:r=!1,...o}=e;return s.jsx(u.Tabs.List,{ref:a,...$(o,r)})});It.displayName="Tabs.List";const Wt=_.forwardRef(function(e,a){const{overStyled:r=!1,...o}=e;return s.jsx(u.Tabs.Tab,{ref:a,...$(o,r)})});Wt.displayName="Tabs.Tab";const kt=_.forwardRef(function(e,a){const{overStyled:r=!1,...o}=e;return s.jsx(u.Tabs.Panel,{ref:a,...$(o,r)})});kt.displayName="Tabs.Panel";const el=Object.assign(Ot,{List:It,Tab:Wt,Panel:kt}),Mt=_.forwardRef(function({overStyled:e=!1,variant:a="body",...r},o){const t=$(r,e),l=t.className,i=`recursica_brand_typography_${a}`,c=l?`${i} ${l}`:i;return s.jsx(u.Text,{ref:o,className:c,...t})});Mt.displayName="Text";const ol=u.createPolymorphicComponent(Mt),tl="TextArea-module__layoutOverride___4MCdm",rl="TextArea-module__root___3dyeu",sl="TextArea-module__input___8l36v",ue={layoutOverride:tl,root:rl,input:sl},zt=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,className:C,style:v,disabled:h,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,value:R,defaultValue:S,...L}=e,O=$(L,r),g=O;delete g.size,delete g.variant,delete g.radius;const T={wrapper:ue.root,input:ue.input},I=g.classNames;if(I&&typeof I=="object"&&!Array.isArray(I)){const j=I;T.wrapper=j.wrapper?`${ue.root} ${j.wrapper}`:ue.root,T.input=j.input?`${ue.input} ${j.input}`:ue.input}const z=C?`${ue.layoutOverride} ${C}`:ue.layoutOverride;return s.jsx(ee,{className:z,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_textarea_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_textarea_properties_min-width)",overStyled:r,formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:R!==void 0?R:S,readOnlyNativeProps:e,activeComponent:s.jsx(u.Textarea,{ref:a,classNames:T,disabled:h,value:R,defaultValue:S,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":y?"true":void 0},...O})})});zt.displayName="TextArea";const al="TextField-module__layoutOverride___SNZqc",nl="TextField-module__root___2ZYkG",ll="TextField-module__input___RL-My",il="TextField-module__section___bCIJ0",J={layoutOverride:al,root:nl,input:ll,section:il},Et=_.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:o="stacked",labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,className:C,style:v,disabled:h,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,value:R,defaultValue:S,...L}=e,O=$(L,r),g=O;delete g.size,delete g.variant,delete g.radius;const T={wrapper:J.root,input:J.input,section:J.section},I=g.classNames;if(I&&typeof I=="object"&&!Array.isArray(I)){const j=I;T.wrapper=j.wrapper?`${J.root} ${j.wrapper}`:J.root,T.input=j.input?`${J.input} ${j.input}`:J.input,T.section=j.section?`${J.section} ${j.section}`:J.section}const z=C?`${J.layoutOverride} ${C}`:J.layoutOverride;return s.jsx(ee,{className:z,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:r,formLayout:o,labelSize:t,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:m,assistiveWithIcon:N,error:y,required:f,withAsterisk:b,id:P,readOnly:A,readOnlyComponent:x,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:R!==void 0?R:S,readOnlyNativeProps:e,activeComponent:s.jsx(u.Input,{ref:a,classNames:T,disabled:h,value:R,defaultValue:S,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":y?"true":void 0},...O})})});Et.displayName="TextField";const cl=n=>s.jsx("div",{...n,children:"TimePicker"}),dl="Timeline-module__root___LwRdZ",pl="Timeline-module__item___T5xdQ",ul="Timeline-module__itemBody___XAV-E",ml="Timeline-module__itemBullet___rPXCy",_l="Timeline-module__itemTitle___GgRRW",fl="Timeline-module__itemContent___vurs-",yl="Timeline-module__description___f9sxV",bl="Timeline-module__timestamp___owiRu",me={root:dl,item:pl,itemBody:ul,itemBullet:ml,itemTitle:_l,itemContent:fl,description:yl,timestamp:bl},bo=_.forwardRef(function({overStyled:e=!1,timestamp:a,bulletVariant:r="default",children:o,...t},l){const i=$(t,e),c={item:me.item,itemBody:me.itemBody,itemContent:me.itemContent,itemBullet:me.itemBullet,itemTitle:me.itemTitle},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const m=d;Object.keys(m).forEach(N=>{c[N]?c[N]=`${c[N]} ${m[N]}`:c[N]=m[N]})}const p=a?s.jsxs(s.Fragment,{children:[o&&s.jsx("div",{className:me.description,children:o}),s.jsx("div",{className:me.timestamp,children:a})]}):o;return s.jsx(u.TimelineItem,{ref:l,classNames:c,"data-variant":r,...i,children:p})});bo.displayName="TimelineItem";const Ft=_.forwardRef(function({overStyled:e=!1,...a},r){const o=$(a,e),t={root:me.root},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const i=l;Object.keys(i).forEach(c=>{t[c]?t[c]=`${t[c]} ${i[c]}`:t[c]=i[c]})}return s.jsx(u.Timeline,{ref:r,classNames:t,...o})});Ft.displayName="Timeline";const Bt=Ft;Bt.Item=bo;const Dt=_.forwardRef(function({overStyled:e=!1,order:a=1,...r},o){const t=$(r,e),l=t.className,i=`recursica_brand_typography_h${a}`,c=l?`${i} ${l}`:i;return s.jsx(u.Title,{ref:o,order:a,className:c,...t})});Dt.displayName="Title";const hl="Toast-module__root___MUvfI",Nl="Toast-module__icon___VwvE1",$l="Toast-module__loader___8Gxd-",vl="Toast-module__title___-H6R2",xl="Toast-module__description___-QwfC",Cl="Toast-module__closeButton___vGr7g",wl="Toast-module__body___VLkXA",Ce={root:hl,icon:Nl,loader:$l,title:vl,description:xl,closeButton:Cl,body:wl},Vt=_.forwardRef(function({overStyled:e=!1,variant:a="default",withCloseButton:r=!0,...o},t){const l=$(o,e),i={root:Ce.root,body:Ce.body,title:Ce.title,description:Ce.description,closeButton:Ce.closeButton,icon:Ce.icon,loader:Ce.loader},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{i[p]?i[p]=`${i[p]} ${d[p]}`:i[p]=d[p]})}return s.jsx(u.Notification,{ref:t,withCloseButton:r,withBorder:!1,"data-variant":a,classNames:i,loading:!1,...l})});Vt.displayName="Toast";const Pl="Tooltip-module__tooltip___UA7H9",gl="Tooltip-module__arrow___4zROk",To={tooltip:Pl,arrow:gl},Gt=function({overStyled:e=!1,withBeak:a=!0,...r}){const o=$(r,e),t={tooltip:To.tooltip,arrow:To.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{t[m]?t[m]=`${t[m]} ${p[m]}`:t[m]=p[m]})}const i=o.arrowSize??16,c=o.withArrow,d=a??c;return s.jsx(u.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:d,classNames:t,...o})};Gt.displayName="Tooltip";const ho=Gt;ho.Floating=u.Tooltip.Floating;ho.Group=u.Tooltip.Group;const Tl=n=>s.jsx("div",{...n,children:"TransferList"}),jl="Tree-module__root___ANcH3",jo={root:jl},Ht=_.forwardRef(function({overStyled:e=!1,className:a,...r},o){const t=a?`${jo.root} ${a}`:jo.root;return s.jsx("div",{ref:o,className:t,...r,children:"Tree (Coming Soon)"})});Ht.displayName="Tree";const Sl=qs,Al=Ko,Rl=vn,Ll=qo,Ol=Js,Il=ol,Wl=w(Ve),kl=w(Je),Ml=w(Be),zl=w(De),El=w(Io),Fl=w(Ur),Bl=w(Zr),Dl=w(Mo),Vl=w(ns),Gl=w(us),Hl=w(no),ql=w(ao),Ul=w(Ho),Yl=w(Uo),Zl=w(Yo),Kl=w(Vs),Xl=w(Gs),Ql=w(ne),Jl=w(lo),ei=w(so),oi=w(eo),ti=w(we),ri=w(ie),si=w(ut),ai=w(oe),ni=w(te),li=w(po),ii=w(uo),ci=w(_o),di=w(mo),pi=w(ro),ui=w(rn),mi=w(St),_i=w(Mn),fi=w(yo),yi=w(fo),bi=w(ce),hi=w(el),Ni=w(zt),$i=w(Et),vi=w(cl),xi=w(Bt),Ci=w(bo),wi=w(Dt),Pi=w(Vt),gi=w(ho),Ti=w(Tl),ji=w(Ht);exports.Accordion=Wl;exports.AccordionControl=Ml;exports.AccordionItem=kl;exports.AccordionPanel=zl;exports.AutoComplete=El;exports.Avatar=Fl;exports.Badge=Bl;exports.Breadcrumb=Dl;exports.Button=Vl;exports.Card=Gl;exports.Checkbox=Hl;exports.CheckboxGroup=ql;exports.Chip=Ul;exports.Container=Ll;exports.DatePicker=Yl;exports.Dropdown=Zl;exports.EmptyValueRenderer=Le;exports.FileInput=Kl;exports.FileUpload=Xl;exports.Flex=Sl;exports.FormControlLayout=Ql;exports.Group=Al;exports.HoverCard=Jl;exports.IS_DEV=ye;exports.Label=oi;exports.Layer=Ro;exports.Link=Ol;exports.Loader=ei;exports.Menu=ti;exports.Modal=ri;exports.NumberInput=si;exports.Pagination=ai;exports.Panel=ni;exports.PanelFooter=li;exports.Popover=ii;exports.RECURSICA_COMPONENTS=Lr;exports.Radio=ci;exports.RadioGroup=di;exports.ReadOnlyField=pi;exports.RecursicaThemeProvider=Rr;exports.SegmentedControl=ui;exports.Slider=mi;exports.Stack=Rl;exports.Stepper=_i;exports.Switch=fi;exports.SwitchGroup=yi;exports.Table=bi;exports.Tabs=hi;exports.Text=Il;exports.TextArea=Ni;exports.TextField=$i;exports.TimePicker=vi;exports.Timeline=xi;exports.TimelineItem=Ci;exports.Title=wi;exports.Toast=Pi;exports.Tooltip=gi;exports.TransferList=Ti;exports.Tree=ji;exports.copyToClipboard=Or;exports.injectOverStyledStyles=oo;exports.isGlobalOverStyledActive=Ar;exports.registerOverStyledConsoleCommand=to;exports.toggleGlobalOverStyled=Lo;exports.useGlobalOverStyled=Oo;exports.wrapComponent=w;
|
|
2
12
|
//# sourceMappingURL=mantine-adapter.cjs.map
|