@recursica/mantine-adapter 0.16.0 → 0.18.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/mantine-adapter.cjs +1 -1
  3. package/dist/mantine-adapter.cjs.map +1 -1
  4. package/dist/mantine-adapter.css +1 -1
  5. package/dist/mantine-adapter.js +1677 -1505
  6. package/dist/mantine-adapter.js.map +1 -1
  7. package/dist/src/OverStyling.d.ts +1 -0
  8. package/dist/src/Version.d.ts +1 -0
  9. package/dist/src/components/Container/Container.d.ts +8 -5
  10. package/dist/src/components/Flex/Flex.d.ts +10 -7
  11. package/dist/src/components/Group/Group.d.ts +8 -5
  12. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +16 -3
  13. package/dist/src/components/Stack/Stack.d.ts +8 -5
  14. package/dist/src/components/Stepper/Stepper.d.ts +12 -2
  15. package/dist/src/components/Tabs/Tabs.d.ts +19 -3
  16. package/dist/src/components/index.d.ts +0 -2
  17. package/package.json +4 -3
  18. package/src/Introduction.stories.tsx +180 -0
  19. package/src/{OverStyling.stories.tsx → OverStyling.tsx} +23 -11
  20. package/src/{Version.stories.tsx → Version.tsx} +1 -13
  21. package/src/components/Card/Card.tsx +1 -1
  22. package/src/components/Container/Container.tsx +13 -17
  23. package/src/components/Flex/Flex.tsx +13 -17
  24. package/src/components/Group/Group.tsx +13 -17
  25. package/src/components/Pagination/Pagination.stories.tsx +0 -1
  26. package/src/components/Panel/Panel.stories.tsx +1 -1
  27. package/src/components/SegmentedControl/IMPLEMENTATION_NOTES.md +17 -0
  28. package/src/components/SegmentedControl/SegmentedControl.module.css +138 -0
  29. package/src/components/SegmentedControl/SegmentedControl.stories.tsx +108 -6
  30. package/src/components/SegmentedControl/SegmentedControl.tsx +96 -5
  31. package/src/components/Stack/Stack.tsx +13 -17
  32. package/src/components/Stepper/Stepper.module.css +353 -0
  33. package/src/components/Stepper/Stepper.stories.tsx +135 -4
  34. package/src/components/Stepper/Stepper.tsx +68 -5
  35. package/src/components/Tabs/Tabs.module.css +401 -0
  36. package/src/components/Tabs/Tabs.stories.tsx +141 -4
  37. package/src/components/Tabs/Tabs.tsx +107 -5
  38. package/src/components/index.ts +0 -2
  39. package/dist/src/components/Popover/Popover.d.ts +0 -3
  40. package/dist/src/components/Search/Search.d.ts +0 -3
  41. package/src/components/Popover/Popover.stories.tsx +0 -17
  42. package/src/components/Popover/Popover.tsx +0 -7
  43. package/src/components/Search/Search.stories.tsx +0 -17
  44. package/src/components/Search/Search.tsx +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @recursica/mantine-adapter
2
2
 
3
+ ## 0.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 72174fc: Add MUI adapter, reworked storybook for adapter switching
8
+
9
+ ### Patch Changes
10
+
11
+ - 72174fc: Updated docs and README.md links
12
+
13
+ ## 0.17.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 687043f: Added Tabs and Stepper components
18
+
3
19
  ## 0.16.0
4
20
 
5
21
  ### Minor Changes
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),u=require("@mantine/core"),Ho=["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"],Zo=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Ge={"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 x(n,o){if(o)return n;const a={...n};for(const r of Ho)r in a&&delete a[r];for(const[r,t]of Object.entries(a))typeof t=="string"&&t.startsWith("rec-")&&Zo.has(r)&&t in Ge&&(a[r]=Ge[t]);return a}const Uo="Accordion-module__root___Dem6d",Yo="Accordion-module__item___7ryVk",Ko="Accordion-module__noDivider___Ni2tT",Qo="Accordion-module__control___b4wgX",Xo="Accordion-module__label___Ss7uW",Jo="Accordion-module__chevron___i-HVZ",et="Accordion-module__iconLeftWrapper___5oLen",ot="Accordion-module__panel___Wx50w",tt="Accordion-module__content___PEM9t",Y={root:Uo,item:Yo,noDivider:Ko,control:Qo,label:Xo,chevron:Jo,iconLeftWrapper:et,panel:ot,content:tt},Ue=function({variant:o="unstyled",overStyled:a=!1,...r}){const t=x(r,a),s={root:Y.root,item:Y.item,control:Y.control,label:Y.label,chevron:Y.chevron,panel:Y.panel,content:Y.content},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;Object.keys(d).forEach(c=>{s[c]?s[c]=`${s[c]} ${d[c]}`:s[c]=d[c]})}const i=t.className;return e.jsx(u.Accordion,{variant:o,className:i,classNames:s,...t})};Ue.displayName="Accordion";const je=f.forwardRef(function({title:o,leftIcon:a,divider:r=!0,children:t,overStyled:s=!1,...l},i){const d=x(l,s),c=d.className,p=[r?void 0:Y.noDivider,c].filter(Boolean).join(" ")||void 0;return e.jsx(u.Accordion.Item,{ref:i,className:p,...d,children:o?e.jsxs(e.Fragment,{children:[e.jsx(xe,{leftIcon:a,children:o}),e.jsx($e,{children:t})]}):t})});je.displayName="AccordionItem";const xe=f.forwardRef(function({leftIcon:o,children:a,overStyled:r=!1,...t},s){const l=x(t,r),i=l.className;return e.jsx(u.Accordion.Control,{ref:s,className:i,icon:o?e.jsx("span",{className:Y.iconLeftWrapper,"aria-hidden":!0,children:o}):void 0,...l,children:a})});xe.displayName="AccordionControl";const $e=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx(u.Accordion.Panel,{ref:r,className:s,...t})});$e.displayName="AccordionPanel";const Ce=Ue;Ce.Item=je;Ce.Control=xe;Ce.Panel=$e;const st="Avatar-module__root___fXu-J",rt="Avatar-module__iconWrapper___ojly2",at="Avatar-module__textWrapper___zp-jD",nt="Avatar-module__image___ieqGp",lt="Avatar-module__placeholder___IDW7-",G={root:st,iconWrapper:rt,textWrapper:at,image:nt,placeholder:lt},Ye=f.forwardRef(function({size:o="default",variant:a="solid",icon:r,children:t,src:s,overStyled:l=!1,...i},d){const c={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},m=x(i,l),h=m;let _="text";s?_="image":r&&(_="icon");const b={root:G.root,image:G.image,placeholder:G.placeholder},$=h.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const N=$;b.root=N.root?`${G.root} ${N.root}`:G.root,b.image=N.image?`${G.image} ${N.image}`:G.image,b.placeholder=N.placeholder?`${G.placeholder} ${N.placeholder}`:G.placeholder}const v=h.className;return e.jsx(u.Avatar,{ref:d,className:v,classNames:b,variant:c[a],size:p[o],src:s,"data-variant":a,"data-size":o,"data-style":_,...m,children:r!=null?e.jsx("span",{className:G.iconWrapper,"aria-hidden":!0,children:r}):t!=null?e.jsx("span",{className:G.textWrapper,children:t}):void 0})});Ye.displayName="Avatar";const it=u.createPolymorphicComponent(Ye),ct="Badge-module__root___5osNT",Z={root:ct},Ke=f.forwardRef(function({variant:o="primary-color",overStyled:a=!1,...r},t){const s=x(r,a),l={root:Z.root,section:Z.section,label:Z.label},i=s.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${Z.root} ${p.root}`:Z.root,l.section=p.section??Z.section,l.label=p.label??Z.label}const d=s.className,c=d?`${Z.root} ${d}`:Z.root;return e.jsx(u.Badge,{ref:t,variant:"filled","data-variant":o,...s,className:c,classNames:l})});Ke.displayName="Badge";const dt=u.createPolymorphicComponent(Ke),pt="Breadcrumb-module__root___x-9ln",mt="Breadcrumb-module__separator___qrUX-",J={root:pt,separator:mt},Qe=f.forwardRef(function({overStyled:o=!1,separator:a=">",...r},t){const s=x({separator:a,...r},o),l={root:J.root,separator:J.separator},i=s.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${J.root} ${p.root}`:J.root,l.separator=p.separator?`${J.separator} ${p.separator}`:J.separator}const d=s.className,c=d?`${J.root} ${d}`:J.root;return e.jsx(u.Breadcrumbs,{ref:t,...s,className:c,classNames:l})});Qe.displayName="Breadcrumb";const ut="Button-module__root___Q2R8-",_t="Button-module__label___UJ3Zt",ft="Button-module__labelText___rFV5p",bt="Button-module__iconWrapper___uEKPa",yt="Button-module__section___f2mKr",V={root:ut,label:_t,labelText:ft,iconWrapper:bt,section:yt};function ht(n){return n==null||n===""?!1:typeof n=="string"?n.trim()!=="":!0}const Xe=f.forwardRef(function({variant:o="solid",size:a="default",icon:r,children:t,overStyled:s=!1,...l},i){const d={solid:"filled",outline:"outline",text:"subtle"},c={default:"md",small:"sm"},p=x(l,s),m=p;delete m.fullWidth;const h=!!r||!!m.leftSection,_=!!m.rightSection,b=(h||_)&&!ht(t);typeof process<"u"&&process.env.NODE_ENV!=="production"&&b&&!m["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const $={root:V.root,section:V.section,label:V.label},v=m.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const y=v;$.root=y.root?`${V.root} ${y.root}`:V.root,$.section=y.section??V.section,$.label=y.label??V.label}const N=m.className,w=N?`${V.root} ${N}`:V.root;return e.jsx(u.Button,{ref:i,className:w,classNames:$,variant:d[o],size:c[a],leftSection:r!=null?e.jsx("span",{className:V.iconWrapper,"aria-hidden":!0,children:r}):void 0,"data-variant":o,"data-size":a,...b?{"data-icon-only":""}:{},...p,children:e.jsx("span",{className:V.labelText,children:t})})});Xe.displayName="Button";const Nt=u.createPolymorphicComponent(Xe),xt="Card-module__root___c9KvZ",$t="Card-module__header___PTXf2 recursica_brand_typography_h3",Ct="Card-module__footer___Mu-JC",vt="Card-module__section___BRT8H",wt="Card-module__content___oFIQa",K={root:xt,header:$t,footer:Ct,section:vt,content:wt},Je=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s={root:K.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;Object.keys(d).forEach(c=>{s[c]?s[c]=`${s[c]} ${d[c]}`:s[c]=d[c]})}const i=t.className;return e.jsx(u.Card,{ref:r,className:i,classNames:s,...t})});Je.displayName="Card";const Ae=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx(u.Card.Section,{ref:r,className:s?`${K.section} ${s}`:K.section,...t})});Ae.displayName="CardSection";const Re=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx(u.Card.Section,{ref:r,className:s?`${K.header} ${s}`:K.header,...t})});Re.displayName="CardHeader";const We=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx(u.Card.Section,{ref:r,className:s?`${K.footer} ${s}`:K.footer,...t})});We.displayName="CardFooter";const Se=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx("div",{ref:r,className:s?`${K.content} ${s}`:K.content,...t})});Se.displayName="CardContent";const eo=u.createPolymorphicComponent(Je),ve=eo;ve.Section=Ae;ve.Header=Re;ve.Footer=We;ve.Content=Se;const Pt=eo,gt="Label-module__root___e6HXZ",jt="Label-module__labelText___rieFR",At="Label-module__required___Ggrzc",Rt="Label-module__optionalText___Y2yun",Wt="Label-module__actionAreaWrapper___ELoZK",St="Label-module__editIconWrapper___NG2xW",D={root:gt,labelText:jt,required:At,optionalText:Rt,actionAreaWrapper:Wt,editIconWrapper:St},Le=f.forwardRef(function({labelSize:o="default",labelAlignment:a,required:r=!1,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:i,children:d,overStyled:c=!1,...p},m){const h=a||"left";let _;r||(t===!0?_="optional":t&&(_=t));const b=x(p,c),$=b,v={label:D.root,required:D.required},N=$.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const j=N;v.label=j.label?`${D.root} ${j.label}`:D.root,v.required=j.required?`${D.required} ${j.required}`:D.required}const w=$.className,y=w?`${D.root} ${w}`:D.root;return e.jsxs(u.Input.Label,{ref:m,className:y,classNames:v,"data-size":o,"data-alignment":h,required:r&&!s,...b,children:[e.jsx("span",{className:D.labelText,children:d}),_&&e.jsx("span",{className:D.optionalText,children:typeof _=="string"?`(${_})`:_}),l?e.jsx("span",{className:D.actionAreaWrapper,children:l}):s?e.jsx("button",{type:"button",className:D.editIconWrapper,"data-replaces-asterisk":r?"true":void 0,onClick:i,"aria-label":"Edit",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.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]})});Le.displayName="Label";const Lt="FormControlLayout-module__root___yNDhZ",Tt="FormControlLayout-module__leftSection___GBM1r",kt="FormControlLayout-module__rightSection___bcL4v",ye={root:Lt,leftSection:Tt,rightSection:kt},Q=f.forwardRef(function({formLayout:o="stacked",labelSize:a="default",controlMaxWidth:r,controlMinWidth:t,leftSection:s,children:l,className:i,style:d,...c},p){const m=i?`${ye.root} ${i}`:ye.root,_=s!=null||o==="side-by-side";return e.jsxs("div",{ref:p,className:m,"data-form-layout":o,style:{...d,...r?{"--form-control-max-width":r}:{},...t?{"--form-control-min-width":t}:{}},...c,children:[_&&e.jsx("div",{className:ye.leftSection,"data-size":a,children:s}),e.jsx("div",{className:ye.rightSection,children:l})]})});Q.displayName="FormControlLayout";const It="AssistiveElement-module__root___WhQ43",Ot="AssistiveElement-module__textWrapper___sfy5E",zt="AssistiveElement-module__iconWrapper___gObRF",Pe={root:It,textWrapper:Ot,iconWrapper:zt},Mt=()=>e.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:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4"}),e.jsx("path",{d:"M12 8h.01"})]}),Ft=()=>e.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:[e.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"}),e.jsx("path",{d:"M12 9v4"}),e.jsx("path",{d:"M12 17h.01"})]}),ge=f.forwardRef(function({assistiveVariant:o="help",assistiveWithIcon:a=!0,children:r,className:t,overStyled:s=!1,...l},i){const c=x(l,s),p=Pe.root,m=t?`${p} ${t}`:p,h=o==="error"?Ft:Mt;return e.jsxs("div",{ref:i,className:m,"data-variant":o,style:c.style,...c,children:[a&&e.jsx("span",{className:Pe.iconWrapper,children:e.jsx(h,{})}),e.jsx("span",{className:Pe.textWrapper,children:r})]})});ge.displayName="AssistiveElement";const Bt="FormControlWrapper-module__inputSection___HenXk",Ve={inputSection:Bt},he=f.forwardRef(function({formLayout:o,labelSize:a,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:i,label:d,description:c,assistiveText:p,assistiveWithIcon:m=!0,controlMaxWidth:h,controlMinWidth:_,error:b,required:$,withAsterisk:v,id:N,children:w,className:y,overStyled:j=!1,labelElement:C,...O},W){const A=f.useId(),k=N||`recursica-fc-${A}`,z=p||c,S=z?`${k}-assistive`:void 0,g=b?`${k}-error`:void 0,I=x(O,j),oe=y||I.className,be=Ve.root,E=oe?`${be} ${oe}`:be,Vo=f.isValidElement(w)?f.cloneElement(w,{...z&&!w.props["aria-describedby"]?{"aria-describedby":S}:{},...b&&!w.props["aria-errormessage"]?{"aria-errormessage":g}:{}}):w,qo=d?e.jsx(Le,{id:k,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:i,required:v??$,...C==="div"?{as:"div"}:{},children:d}):void 0;return e.jsx(Q,{ref:W,className:E,formLayout:o,labelSize:a,controlMaxWidth:h,controlMinWidth:_,leftSection:qo,...I,children:e.jsxs("div",{className:Ve.inputSection,children:[Vo,b&&e.jsx(ge,{id:g,assistiveVariant:"error",assistiveWithIcon:m,children:b}),!b&&z&&e.jsx(ge,{id:S,assistiveVariant:"help",assistiveWithIcon:m,children:z})]})})});he.displayName="FormControlWrapper";const Et="_root_1qhn7_3",Dt="_contents_1qhn7_18",ae={root:Et,contents:Dt},oo=f.forwardRef(function({layer:n,contentsOnly:o,children:a,className:r,style:t,...s},l){const i=o?r?`${ae.root} ${ae.contents} ${r}`:`${ae.root} ${ae.contents}`:r?`${ae.root} ${r}`:ae.root;return e.jsx("div",{ref:l,className:i,style:t,...o?{}:{"data-recursica-layer":String(n)},...s,children:a})});oo.displayName="Layer";const _e=({emptyText:n="N/A"})=>e.jsx(f.Fragment,{children:n});_e.displayName="EmptyValueRenderer";_e.check=n=>n==null||n===""||Array.isArray(n)&&n.length===0;const qe="data-recursica-theme";function Gt({children:n,theme:o="light"}){return f.useEffect(()=>{const a=document.documentElement;return a.setAttribute(qe,o),()=>{a.removeAttribute(qe)}},[o]),e.jsx(e.Fragment,{children:n})}const Vt="ReadOnlyField-module__textField___qKn25",Ne={textField:Vt},ue=({value:n,overStyled:o=!1,...a})=>{const r=x(a,o),t=r.className;return e.jsx(u.Box,{component:"p",className:t?`${Ne.textField} ${t}`:Ne.textField,...r,children:n!=null?f.isValidElement(n)?n:Array.isArray(n)?n.join(", "):String(n):""})};ue.displayName="ReadOnlyTextField";const Te=f.forwardRef(function({value:o,type:a="text",emptyValueComponent:r,overStyled:t=!1,...s},l){let i=null;const d=x(s,t),c=r||_e,m=(c.check?c.check(o):_e.check(o))?e.jsx(c,{value:o}):o;switch(a){case"boolean":i=e.jsx(ue,{value:o===!0?"True":o===!1?"False":m,overStyled:t});break;case"switch":i=e.jsx(ue,{value:o===!0?"On":o===!1?"Off":m,overStyled:t});break;case"text":default:i=e.jsx(ue,{value:m,overStyled:t});break}return e.jsx(he,{ref:l,overStyled:t,...d,children:i})});Te.displayName="ReadOnlyField";const X=f.forwardRef(function({readOnly:o,readOnlyComponent:a,readOnlyType:r="text",readOnlyValue:t,readOnlyNativeProps:s,emptyValueComponent:l,activeComponent:i,overStyled:d,onLabelEditClick:c,...p},m){if(o){if(a){const h=a;return e.jsx(he,{ref:m,...p,onLabelEditClick:c,overStyled:d,children:e.jsx(h,{...s})})}return e.jsx(Te,{ref:m,type:r,value:t,emptyValueComponent:l,onLabelEditClick:c,overStyled:d,...p})}return e.jsx(he,{ref:m,...p,onLabelEditClick:c,overStyled:d,children:i})});X.displayName="WithReadOnlyWrapper";const qt="Checkbox-module__groupRoot___cBS0o",Ht="Checkbox-module__root___mY3qk",Zt="Checkbox-module__body___5yC7q",Ut="Checkbox-module__inner___rTke4",Yt="Checkbox-module__input___2kt-h",Kt="Checkbox-module__icon___-O7i6",Qt="Checkbox-module__labelWrapper___GpZkr",Xt="Checkbox-module__label___cwRtI",L={groupRoot:qt,root:Ht,body:Zt,inner:Ut,input:Yt,icon:Kt,labelWrapper:Qt,label:Xt},ke=f.forwardRef(function(o,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:b,required:$,withAsterisk:v,id:N,className:w,style:y,children:j,readOnly:C,readOnlyComponent:O,emptyValueComponent:W,value:A,defaultValue:k,...z}=o,S=x(z,r),g=S;return delete g.size,e.jsx(X,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:b,required:$,withAsterisk:v,id:N,readOnly:C&&!!O,readOnlyComponent:O,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?A:k,readOnlyNativeProps:o,activeComponent:e.jsx(u.Checkbox.Group,{ref:a,...S,disabled:C||g.disabled,value:A,defaultValue:k,children:e.jsx("div",{className:L.groupRoot,"data-layout":t,children:f.Children.map(j,P=>f.isValidElement(P)?f.cloneElement(P,{disabled:C||P.props.disabled}):P)})})})});ke.displayName="CheckboxGroup";const Ie=f.forwardRef(function(o,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:s,disabled:l,formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,...m}=o,h=x(m,r),_=h;delete _.size,delete _.color,delete _.radius,delete _.variant,delete _.iconColor;const b={root:L.root,body:L.body,inner:L.inner,input:L.input,icon:L.icon,labelWrapper:L.labelWrapper,label:L.label},$=_.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const y=$;b.root=y.root?`${L.root} ${y.root}`:L.root,b.body=y.body?`${L.body} ${y.body}`:L.body,b.inner=y.inner?`${L.inner} ${y.inner}`:L.inner,b.input=y.input?`${L.input} ${y.input}`:L.input,b.icon=y.icon?`${L.icon} ${y.icon}`:L.icon,b.labelWrapper=y.labelWrapper?`${L.labelWrapper} ${y.labelWrapper}`:L.labelWrapper,b.label=y.label?`${L.label} ${y.label}`:L.label}const v=_.className,N=v?`${L.root} ${v}`:L.root;if(t&&s){const y=!!(_.checked??_.defaultChecked),j=s,C=e.jsx(j,{...o,checked:y,label:_.label});return i?e.jsx(Q,{formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:C}):e.jsx(e.Fragment,{children:C})}const w=e.jsx(u.Checkbox,{ref:a,className:N,classNames:b,disabled:t||l,...h});return i?e.jsx(Q,{formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:w}):w});Ie.displayName="Checkbox";Ie.Group=ke;const Jt="Chip-module__root___f5pFk",es="Chip-module__label___Ov9pg",os="Chip-module__mantineIconWrapper___KLSz6",ts="Chip-module__innerWrapper___EnrTF",ss="Chip-module__children___zbRAR",rs="Chip-module__leadingIcon___JBtjQ",as="Chip-module__removeIcon___pVju-",F={root:Jt,label:es,mantineIconWrapper:os,innerWrapper:ts,children:ss,leadingIcon:rs,removeIcon:as};function ns(n){return e.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:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const to=f.forwardRef(function({error:o=!1,icon:a,onRemove:r,removeLabel:t="Remove",children:s,overStyled:l=!1,...i},d){const c=x(i,l),p=c,m={root:F.root,label:F.label,input:F.input,iconWrapper:F.mantineIconWrapper,checkIcon:F.checkIcon},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const N=h;m.root=N.root?`${F.root} ${N.root}`:F.root,m.label=N.label?`${F.label} ${N.label}`:F.label}const _=p.className,b=_?`${F.root} ${_}`:F.root,$=o?"":void 0,v=!s&&(!!a||!!r);return e.jsx(u.Chip,{ref:d,className:b,classNames:m,...$!==void 0?{"data-error":""}:{},...v?{"data-icon-only":""}:{},...c,children:e.jsxs("span",{className:F.innerWrapper,children:[a&&e.jsx("span",{className:F.leadingIcon,"aria-hidden":!0,children:a}),e.jsx("span",{className:F.children,children:s}),r&&e.jsx("span",{role:"button",className:F.removeIcon,onClick:N=>{N.preventDefault(),N.stopPropagation(),r(N)},"aria-label":t,onKeyDown:N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),N.stopPropagation(),r(N))},tabIndex:0,children:e.jsx(ns,{})})]})})});to.displayName="Chip";const ls="Container-module__root___UVssr",le={root:ls},so=f.forwardRef(function({children:o,size:a,overStyled:r=!1,...t},s){const l=x(t,r),i=l,d={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},c=typeof a=="string"&&d[a]?d[a]:a,p={root:le.root},m=i.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const b=m;p.root=b.root?`${le.root} ${b.root}`:le.root}const h=i.className,_=h?`${le.root} ${h}`:le.root;return e.jsx(u.Container,{ref:s,size:c,className:_,classNames:p,...l,children:o})});so.displayName="Container";const is=n=>e.jsx("div",{...n,children:"DatePicker"}),cs="Dropdown-module__root___uVyL0",ds="Dropdown-module__input___dK4dN",ps="Dropdown-module__section___j3MRB",ms="Dropdown-module__dropdown___gG-Sw",us="Dropdown-module__option___nAGU-",B={root:cs,input:ds,section:ps,dropdown:ms,option:us},ro=f.forwardRef(function(o,a){const{overStyled:r=!1,formLayout:t="stacked",containerWidth:s,labelSize:l,labelAlignment:i,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:p,label:m,assistiveText:h,assistiveWithIcon:_,error:b,required:$,withAsterisk:v,id:N,className:w,style:y,disabled:j,readOnly:C,readOnlyComponent:O,emptyValueComponent:W,value:A,defaultValue:k,data:z,...S}=o,g=x(S,r),P=g;delete P.size,delete P.variant,delete P.radius;const I={wrapper:B.root,input:B.input,section:B.section,dropdown:B.dropdown,option:B.option},oe=P.classNames;if(oe&&typeof oe=="object"&&!Array.isArray(oe)){const E=oe;I.wrapper=E.wrapper?`${B.root} ${E.wrapper}`:B.root,I.input=E.input?`${B.input} ${E.input}`:B.input,I.section=E.section?`${B.section} ${E.section}`:B.section,I.dropdown=E.dropdown?`${B.dropdown} ${E.dropdown}`:B.dropdown,I.option=E.option?`${B.option} ${E.option}`:B.option}const be={...y||{},width:s||"100%"};return e.jsx(X,{className:w,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:t,labelSize:l,labelAlignment:i,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:p,label:m,assistiveText:h,assistiveWithIcon:_,error:b,required:$,withAsterisk:v,id:N,readOnly:C,readOnlyComponent:O,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):k?String(k):void 0,readOnlyNativeProps:o,activeComponent:e.jsx(u.Select,{ref:a,classNames:I,disabled:j,value:A,defaultValue:k,data:z||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":j?"true":void 0,"data-error":b?"true":void 0},...g})})});ro.displayName="Dropdown";const _s=n=>e.jsx("div",{...n,children:"FileInput"}),fs=n=>e.jsx("div",{...n,children:"FileUpload"}),bs="Flex-module__root___yYser",ie={root:bs},ao=f.forwardRef(function({children:o,overStyled:a=!1,gap:r="rec-default",...t},s){const l=x({...t,gap:r},a),i=l,d={root:ie.root},c=i.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const h=c;d.root=h.root?`${ie.root} ${h.root}`:ie.root}const p=i.className,m=p?`${ie.root} ${p}`:ie.root;return e.jsx(u.Flex,{ref:s,className:m,classNames:d,...l,children:o})});ao.displayName="Flex";const ys=u.createPolymorphicComponent(ao),hs="Group-module__root___ftO64",ce={root:hs},no=f.forwardRef(function({children:o,overStyled:a=!1,gap:r="rec-default",...t},s){const l=x({...t,gap:r},a),i=l,d={root:ce.root},c=i.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const h=c;d.root=h.root?`${ce.root} ${h.root}`:ce.root}const p=i.className,m=p?`${ce.root} ${p}`:ce.root;return e.jsx(u.Group,{ref:s,className:m,classNames:d,...l,children:o})});no.displayName="Group";const Ns="HoverCard-module__dropdown___FBPFW",xs="HoverCard-module__arrow___S9AkE",He={dropdown:Ns,arrow:xs},lo=function({overStyled:o=!1,withBeak:a=!0,...r}){const t=x(r,o),s={dropdown:He.dropdown,arrow:He.arrow},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{s[m]?s[m]=`${s[m]} ${p[m]}`:s[m]=p[m]})}const i=t.arrowSize??16,d=t.withArrow,c=a??d;return e.jsx(u.HoverCard,{position:"top",arrowSize:i,withArrow:c,classNames:s,...t})};lo.displayName="HoverCard";const io=function(o){return e.jsx(u.HoverCard.Target,{...o})};io.displayName="HoverCardTarget";const co=function({overStyled:o=!1,...a}){const r=x(a,o),t=r.className;return e.jsx(u.HoverCard.Dropdown,{className:t,...r})};co.displayName="HoverCardDropdown";const Oe=lo;Oe.Target=io;Oe.Dropdown=co;const $s="Link-module__root___I0VGE",Cs="Link-module__iconWrapper___W-LlF",vs="Link-module__labelText___wSvUy",te={root:$s,iconWrapper:Cs,labelText:vs},po=f.forwardRef(function({icon:o,children:a,overStyled:r=!1,...t},s){const l=x(t,r),i=l,d={root:te.root},c=i.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const h=c;d.root=h.root?`${te.root} ${h.root}`:te.root}const p=i.className,m=p?`${te.root} ${p}`:te.root;return e.jsxs(u.Anchor,{ref:s,className:m,classNames:d,underline:"never",...o?{"data-has-icon":""}:{},...l,children:[o&&e.jsx("span",{className:te.iconWrapper,"aria-hidden":!0,children:o}),e.jsx("span",{className:te.labelText,children:a})]})});po.displayName="Link";const ws=u.createPolymorphicComponent(po),Ps="Loader-module__root___6iYOP",de={root:Ps},mo=f.forwardRef(function({variant:o="oval",size:a="default",overStyled:r=!1,...t},s){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[a]||"default",d=x(t,r),c={root:de.root},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const _=p;c.root=_.root?`${de.root} ${_.root}`:de.root}const m=d.className,h=m?`${de.root} ${m}`:de.root;return e.jsx(u.Loader,{ref:s,type:o,"data-variant":o,"data-size":i,...d,className:h,classNames:c})});mo.displayName="Loader";const gs="Menu-module__dropdown___j4xuA",js="Menu-module__item___NMXha",As="Menu-module__itemLabel___zvcqC",Rs="Menu-module__itemSection___pRIcn",Ws="Menu-module__divider___wPiNq",Ss="Menu-module__label___4FBGa",Ls="Menu-module__chevron___hEEiy",se={dropdown:gs,item:js,itemLabel:As,itemSection:Rs,divider:Ws,label:Ss,chevron:Ls},uo=function({overStyled:o=!1,...a}){const r=x(a,o),t={dropdown:se.dropdown,item:se.item,itemLabel:se.itemLabel,itemSection:se.itemSection,divider:se.divider,label:se.label,chevron:se.chevron},s=r.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const l=s;Object.keys(l).forEach(i=>{t[i]?t[i]=`${t[i]} ${l[i]}`:t[i]=l[i]})}return e.jsx(u.Menu,{classNames:t,...r})};uo.displayName="Menu";const _o=function(o){return e.jsx(u.Menu.Target,{...o})};_o.displayName="MenuTarget";const fo=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx(u.Menu.Dropdown,{ref:r,className:s,...t})});fo.displayName="MenuDropdown";const bo=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t;o||delete s.color;const l=s.className;return e.jsx(u.Menu.Item,{ref:r,className:l,...t})});bo.displayName="MenuItem";const Ts=u.createPolymorphicComponent(bo),yo=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx(u.Menu.Divider,{ref:r,className:s,...t})});yo.displayName="MenuDivider";const ho=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx(u.Menu.Label,{ref:r,className:s,...t})});ho.displayName="MenuLabel";const No=function(o){return e.jsx(u.Menu.Sub,{...o})};No.displayName="MenuSub";const xo=function(o){return e.jsx(u.Menu.Sub.Target,{...o})};xo.displayName="MenuSubTarget";const $o=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t;o||delete s.color;const l=s.className;return e.jsx(u.Menu.Sub.Item,{ref:r,className:l,...t})});$o.displayName="MenuSubItem";const ks=u.createPolymorphicComponent($o),Co=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className;return e.jsx(u.Menu.Sub.Dropdown,{ref:r,className:s,...t})});Co.displayName="MenuSubDropdown";const we=No;we.Target=xo;we.Item=ks;we.Dropdown=Co;const re=uo;re.Target=_o;re.Dropdown=fo;re.Item=Ts;re.Divider=yo;re.Label=ho;re.Sub=we;const Is=n=>e.jsx("div",{...n,children:"Modal"}),Os="NumberInput-module__root___C6rAn",zs="NumberInput-module__input___Ss8p7",Ms="NumberInput-module__section___MijP0",Fs="NumberInput-module__controls___8UfQ2",Bs="NumberInput-module__control___Qre9-",pe={root:Os,input:zs,section:Ms,controls:Fs,control:Bs},vo=f.forwardRef(function(o,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:b,withAsterisk:$,id:v,className:N,style:w,disabled:y,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,value:W,defaultValue:A,hideControls:k=!1,...z}=o,S=x(z,r),g=S;delete g.size,delete g.variant,delete g.radius;const P={wrapper:pe.root,input:pe.input,section:pe.section,controls:pe.controls,control:pe.control};return e.jsx(X,{className:N,style:w,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:t,labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:b,withAsterisk:$,id:v,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:W!==void 0?W==null?void 0:W.toString():A==null?void 0:A.toString(),readOnlyNativeProps:o,activeComponent:e.jsx(u.NumberInput,{ref:a,classNames:P,disabled:y,value:W,defaultValue:A,hideControls:k,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":_?"true":void 0,"data-with-left-section":g.leftSection?"true":void 0,"data-with-right-section":g.rightSection||!k?"true":void 0},...S})})});vo.displayName="NumberInput";const Es="Pagination-module__root___ITRjt",Ds="Pagination-module__control___40yNT",Gs="Pagination-module__dots___Yl9da",Vs="Pagination-module__iconWithLabel___pLM4O",qs="Pagination-module__baseIcon___Qw3bJ",M={root:Es,control:Ds,dots:Gs,iconWithLabel:Vs,baseIcon:qs},Hs="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Zs="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",Us="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",Ys="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",Ks={next:Hs,prev:Zs,first:Us,last:Ys},fe=({type:n,className:o,...a})=>e.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${M.baseIcon} ${o||""}`.trim(),...a,children:e.jsx("path",{d:Ks[n],fill:"currentColor"})}),wo=n=>e.jsxs("div",{className:M.iconWithLabel,children:[e.jsx("span",{children:"Next"}),e.jsx(fe,{type:"next",...n})]}),Po=n=>e.jsxs("div",{className:M.iconWithLabel,children:[e.jsx(fe,{type:"prev",...n}),e.jsx("span",{children:"Prev"})]}),go=n=>e.jsxs("div",{className:M.iconWithLabel,children:[e.jsx(fe,{type:"first",...n}),e.jsx("span",{children:"First"})]}),jo=n=>e.jsxs("div",{className:M.iconWithLabel,children:[e.jsx("span",{children:"Last"}),e.jsx(fe,{type:"last",...n})]});function Ao(n){const o={root:M.root,control:M.control,dots:M.dots},a=n.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const s=a;o.root=s.root?`${M.root} ${s.root}`:M.root,o.control=s.control?`${M.control} ${s.control}`:M.control,o.dots=s.dots?`${M.dots} ${s.dots}`:M.dots}const r=n.className;return{className:r?`${M.root} ${r}`:M.root,classNames:o}}const Ro=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=Ao(t);return e.jsx(u.Pagination.Root,{ref:r,className:s.className,classNames:s.classNames,...t})});Ro.displayName="Pagination.Root";const Wo=f.forwardRef(function({withLabel:o,icon:a,...r},t){const s=a||(o?wo:void 0);return e.jsx(u.Pagination.Next,{ref:t,"data-variant":"text",icon:s,...r})});Wo.displayName="Pagination.Next";const So=f.forwardRef(function({withLabel:o,icon:a,...r},t){const s=a||(o?Po:void 0);return e.jsx(u.Pagination.Previous,{ref:t,"data-variant":"text",icon:s,...r})});So.displayName="Pagination.Previous";const Lo=f.forwardRef(function({withLabel:o,icon:a,...r},t){const s=a||(o?go:void 0);return e.jsx(u.Pagination.First,{ref:t,"data-variant":"text",icon:s,...r})});Lo.displayName="Pagination.First";const To=f.forwardRef(function({withLabel:o,icon:a,...r},t){const s=a||(o?jo:void 0);return e.jsx(u.Pagination.Last,{ref:t,"data-variant":"text",icon:s,...r})});To.displayName="Pagination.Last";const ko=f.forwardRef(function({overStyled:o=!1,getControlProps:a,withLabels:r,...t},s){const l=x(t,o),i=Ao(l),d=p=>{const m={"data-variant":"text"};return a?{...m,...a(p)}:m},c=r?{nextIcon:wo,previousIcon:Po,firstIcon:go,lastIcon:jo}:{};return e.jsx(u.Pagination,{ref:s,className:i.className,classNames:i.classNames,getControlProps:d,...c,...l})});ko.displayName="Pagination";const q=ko;q.Root=Ro;q.Items=u.Pagination.Items;q.Control=u.Pagination.Control;q.Dots=u.Pagination.Dots;q.Next=Wo;q.Previous=So;q.First=Lo;q.Last=To;q.Icon=fe;const Qs="Panel-module__content___wdGo-",Xs="Panel-module__inner___ruA2b",Js="Panel-module__header___o7SiC",er="Panel-module__title___181OP recursica_brand_typography_h3",or="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP recursica_brand_typography_h3",tr="Panel-module__body___SEC3T",sr="Panel-module__footer___t6-hz",ee={content:Qs,inner:Xs,header:Js,title:er,titleTruncate:or,body:tr,footer:sr},Io=function({overStyled:o=!1,position:a="right",keepMounted:r=!0,wrapHeaderText:t=!1,...s}){const l=x(s,o),i={content:ee.content,header:ee.header,title:t?ee.titleTruncate:ee.title,body:ee.body,inner:ee.inner},d=l.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const c=d;Object.keys(c).forEach(p=>{i[p]?i[p]=`${i[p]} ${c[p]}`:i[p]=c[p]})}return e.jsx(u.Drawer,{position:a,keepMounted:r,closeOnClickOutside:s.closeOnClickOutside??!!s.opened,...l,classNames:i})};Io.displayName="Panel";const ze=f.forwardRef(function({overStyled:o=!1,...a},r){const t=x(a,o),s=t.className,l=s?`${ee.footer} ${s}`:ee.footer;return e.jsx("div",{ref:r,className:l,...t})});ze.displayName="PanelFooter";const H=Io;H.Root=u.Drawer.Root;H.Overlay=u.Drawer.Overlay;H.Content=u.Drawer.Content;H.Header=u.Drawer.Header;H.Title=u.Drawer.Title;H.CloseButton=u.Drawer.CloseButton;H.Body=u.Drawer.Body;H.Stack=u.Drawer.Stack;H.Footer=ze;const rr=n=>e.jsx("div",{...n,children:"Popover"}),ar="Radio-module__groupRoot___bfUii",nr="Radio-module__root___kAjTD",lr="Radio-module__body___q2Wpj",ir="Radio-module__inner___QaTBB",cr="Radio-module__radio___MfgN-",dr="Radio-module__icon___DWznm",pr="Radio-module__labelWrapper___dB0Gi",mr="Radio-module__label___vAFIP",T={groupRoot:ar,root:nr,body:lr,inner:ir,radio:cr,icon:dr,labelWrapper:pr,label:mr},Me=f.forwardRef(function(o,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:b,required:$,withAsterisk:v,id:N,className:w,style:y,children:j,readOnly:C,readOnlyComponent:O,emptyValueComponent:W,value:A,defaultValue:k,...z}=o,S=x(z,r),g=S;return delete g.size,e.jsx(X,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:b,required:$,withAsterisk:v,id:N,readOnly:C&&!!O,readOnlyComponent:O,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?A:k,readOnlyNativeProps:o,activeComponent:e.jsx(u.Radio.Group,{ref:a,...S,disabled:C||g.disabled,value:A,defaultValue:k,children:e.jsx("div",{className:T.groupRoot,"data-layout":t,children:f.Children.map(j,P=>f.isValidElement(P)?f.cloneElement(P,{disabled:C||P.props.disabled}):P)})})})});Me.displayName="RadioGroup";const ur=({className:n,style:o})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:n,style:o,children:e.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Fe=f.forwardRef(function(o,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:s,disabled:l,formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,...m}=o,h=x(m,r),_=h;delete _.size,delete _.color,delete _.radius,delete _.variant,delete _.iconColor;const b={root:T.root,body:T.body,inner:T.inner,radio:T.radio,icon:T.icon,labelWrapper:T.labelWrapper,label:T.label},$=_.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const y=$;b.root=y.root?`${T.root} ${y.root}`:T.root,b.body=y.body?`${T.body} ${y.body}`:T.body,b.inner=y.inner?`${T.inner} ${y.inner}`:T.inner,b.radio=y.radio?`${T.radio} ${y.radio}`:T.radio,b.icon=y.icon?`${T.icon} ${y.icon}`:T.icon,b.labelWrapper=y.labelWrapper?`${T.labelWrapper} ${y.labelWrapper}`:T.labelWrapper,b.label=y.label?`${T.label} ${y.label}`:T.label}const v=_.className,N=v?`${T.root} ${v}`:T.root;if(t&&s){const y=!!(_.checked??_.defaultChecked),j=s,C=e.jsx(j,{...o,checked:y,label:_.label});return i?e.jsx(Q,{formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:C}):e.jsx(e.Fragment,{children:C})}const w=e.jsx(u.Radio,{ref:a,icon:ur,className:N,classNames:b,disabled:t||l,...h});return i?e.jsx(Q,{formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:w}):w});Fe.displayName="Radio";Fe.Group=Me;const Oo=({checked:n,label:o})=>e.jsxs(u.Box,{component:"span",className:Ne.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[o&&e.jsxs("span",{style:{fontWeight:500},children:[o,":"]}),e.jsx("span",{children:n?"On":"Off"})]});Oo.displayName="ReadOnlySwitchField";const zo=({checked:n,label:o})=>e.jsxs(u.Box,{component:"span",className:Ne.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[o&&e.jsxs("span",{style:{fontWeight:500},children:[o,":"]}),e.jsx("span",{children:n?"True":"False"})]});zo.displayName="ReadOnlyBooleanField";const _r=n=>e.jsx("div",{...n,children:"Search"}),fr=n=>e.jsx("div",{...n,children:"SegmentedControl"}),br=n=>e.jsx("div",{...n,children:"Slider"}),yr="Stack-module__root___NUN-x",me={root:yr},Mo=f.forwardRef(function({children:o,overStyled:a=!1,gap:r="rec-default",...t},s){const l=x({...t,gap:r},a),i=l,d={root:me.root},c=i.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const h=c;d.root=h.root?`${me.root} ${h.root}`:me.root}const p=i.className,m=p?`${me.root} ${p}`:me.root;return e.jsx(u.Stack,{ref:s,className:m,classNames:d,...l,children:o})});Mo.displayName="Stack";const hr=n=>e.jsx("div",{...n,children:"Stepper"}),Nr="Switch-module__root___Y5Ydi",xr="Switch-module__body___Sw9Wr",$r="Switch-module__track___7ObdZ",Cr="Switch-module__thumb___-FTeK",vr="Switch-module__labelWrapper___YSOwx",wr="Switch-module__label___LrH7V",Pr="Switch-module__thumbIconWrapper___sCY-1",gr="Switch-module__checkIcon___ZBAQN",jr="Switch-module__closeIcon___bLLGw",Ar="Switch-module__groupRoot___-Uepi",R={root:Nr,body:xr,track:$r,thumb:Cr,labelWrapper:vr,label:wr,thumbIconWrapper:Pr,checkIcon:gr,closeIcon:jr,groupRoot:Ar},Be=f.forwardRef(function(o,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:b,required:$,withAsterisk:v,id:N,className:w,style:y,children:j,readOnly:C,readOnlyComponent:O,emptyValueComponent:W,value:A,defaultValue:k,...z}=o,S=x(z,r),g=S;return delete g.size,e.jsx(X,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:b,required:$,withAsterisk:v,id:N,readOnly:C&&!!O,readOnlyComponent:O,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?A:k,readOnlyNativeProps:o,activeComponent:e.jsx(u.Switch.Group,{ref:a,...S,disabled:C||g.disabled,value:A,defaultValue:k,children:e.jsx("div",{className:R.groupRoot,children:f.Children.map(j,P=>f.isValidElement(P)?f.cloneElement(P,{disabled:C||P.props.disabled}):P)})})})});Be.displayName="SwitchGroup";const Ee=f.forwardRef(function(o,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:s,disabled:l,thumbIcon:i,formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:m,...h}=o,_=x(h,r),b=_;delete b.size,delete b.color,delete b.radius,delete b.variant;const $={root:R.root,body:R.body,track:R.track,thumb:R.thumb,trackLabel:R.trackLabel,labelWrapper:R.labelWrapper,label:R.label},v=b.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const C=v;$.root=C.root?`${R.root} ${C.root}`:R.root,$.body=C.body?`${R.body} ${C.body}`:R.body,$.track=C.track?`${R.track} ${C.track}`:R.track,$.thumb=C.thumb?`${R.thumb} ${C.thumb}`:R.thumb,$.trackLabel=C.trackLabel?`${R.trackLabel} ${C.trackLabel}`:R.trackLabel,$.labelWrapper=C.labelWrapper?`${R.labelWrapper} ${C.labelWrapper}`:R.labelWrapper,$.label=C.label?`${R.label} ${C.label}`:R.label}const N=b.className,w=N?`${R.root} ${N}`:R.root;if(t&&s){const C=!!(b.checked??b.defaultChecked),O=s,W=e.jsx(O,{...o,checked:C,label:b.label});return d?e.jsx(Q,{formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:m,children:W}):e.jsx(e.Fragment,{children:W})}const y=e.jsxs("div",{className:R.thumbIconWrapper,children:[e.jsx(u.CheckIcon,{className:R.checkIcon}),e.jsx(u.CloseIcon,{className:R.closeIcon})]}),j=e.jsx(u.Switch,{ref:a,className:w,classNames:$,disabled:t||l,thumbIcon:i??y,..._});return d?e.jsx(Q,{formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:m,children:j}):j});Ee.displayName="Switch";Ee.Group=Be;const Rr=n=>e.jsx("div",{...n,children:"Table"}),Wr=n=>e.jsx("div",{...n,children:"Tabs"}),Fo=f.forwardRef(function({overStyled:o=!1,variant:a="body",...r},t){const s=x(r,o),l=s.className,i=`recursica_brand_typography_${a}`,d=l?`${i} ${l}`:i;return e.jsx(u.Text,{ref:t,className:d,...s})});Fo.displayName="Text";const Sr=u.createPolymorphicComponent(Fo),Lr="TextArea-module__root___3dyeu",Tr="TextArea-module__input___8l36v",ne={root:Lr,input:Tr},Bo=f.forwardRef(function(o,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:b,withAsterisk:$,id:v,className:N,style:w,disabled:y,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,value:W,defaultValue:A,...k}=o,z=x(k,r),S=z;delete S.size,delete S.variant,delete S.radius;const g={wrapper:ne.root,input:ne.input},P=S.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const I=P;g.wrapper=I.wrapper?`${ne.root} ${I.wrapper}`:ne.root,g.input=I.input?`${ne.input} ${I.input}`:ne.input}return e.jsx(X,{className:N,style:w,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:t,labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:b,withAsterisk:$,id:v,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:W!==void 0?W:A,readOnlyNativeProps:o,activeComponent:e.jsx(u.Textarea,{ref:a,classNames:g,disabled:y,value:W,defaultValue:A,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":_?"true":void 0},...z})})});Bo.displayName="TextArea";const kr="TextField-module__root___2ZYkG",Ir="TextField-module__input___RL-My",Or="TextField-module__section___bCIJ0",U={root:kr,input:Ir,section:Or},Eo=f.forwardRef(function(o,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:b,withAsterisk:$,id:v,className:N,style:w,disabled:y,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,value:W,defaultValue:A,...k}=o,z=x(k,r),S=z;delete S.size,delete S.variant,delete S.radius;const g={wrapper:U.root,input:U.input,section:U.section},P=S.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const I=P;g.wrapper=I.wrapper?`${U.root} ${I.wrapper}`:U.root,g.input=I.input?`${U.input} ${I.input}`:U.input,g.section=I.section?`${U.section} ${I.section}`:U.section}return e.jsx(X,{className:N,style:w,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:t,labelSize:s,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:b,withAsterisk:$,id:v,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:W!==void 0?W:A,readOnlyNativeProps:o,activeComponent:e.jsx(u.Input,{ref:a,classNames:g,disabled:y,value:W,defaultValue:A,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":_?"true":void 0},...z})})});Eo.displayName="TextField";const zr=n=>e.jsx("div",{...n,children:"TimePicker"}),Mr=n=>e.jsx("div",{...n,children:"Timeline"}),Do=f.forwardRef(function({overStyled:o=!1,order:a=1,...r},t){const s=x(r,o),l=s.className,i=`recursica_brand_typography_h${a}`,d=l?`${i} ${l}`:i;return e.jsx(u.Title,{ref:t,order:a,className:d,...s})});Do.displayName="Title";const Fr=n=>e.jsx("div",{...n,children:"Toast"}),Br="Tooltip-module__tooltip___UA7H9",Er="Tooltip-module__arrow___4zROk",Ze={tooltip:Br,arrow:Er},Go=function({overStyled:o=!1,withBeak:a=!0,...r}){const t=x(r,o),s={tooltip:Ze.tooltip,arrow:Ze.arrow},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{s[m]?s[m]=`${s[m]} ${p[m]}`:s[m]=p[m]})}const i=t.arrowSize??16,d=t.withArrow,c=a??d;return e.jsx(u.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:c,classNames:s,...t})};Go.displayName="Tooltip";const De=Go;De.Floating=u.Tooltip.Floating;De.Group=u.Tooltip.Group;const Dr=n=>e.jsx("div",{...n,children:"TransferList"});exports.Accordion=Ce;exports.AccordionControl=xe;exports.AccordionItem=je;exports.AccordionPanel=$e;exports.Avatar=it;exports.Badge=dt;exports.Breadcrumb=Qe;exports.Button=Nt;exports.Card=Pt;exports.CardContent=Se;exports.CardFooter=We;exports.CardHeader=Re;exports.CardSection=Ae;exports.Checkbox=Ie;exports.CheckboxGroup=ke;exports.Chip=to;exports.Container=so;exports.DatePicker=is;exports.Dropdown=ro;exports.EmptyValueRenderer=_e;exports.FileInput=_s;exports.FileUpload=fs;exports.Flex=ys;exports.FormControlLayout=Q;exports.Group=no;exports.HoverCard=Oe;exports.Label=Le;exports.Layer=oo;exports.Link=ws;exports.Loader=mo;exports.Menu=re;exports.Modal=Is;exports.NumberInput=vo;exports.Pagination=q;exports.Panel=H;exports.PanelFooter=ze;exports.Popover=rr;exports.Radio=Fe;exports.RadioGroup=Me;exports.ReadOnlyBooleanField=zo;exports.ReadOnlyField=Te;exports.ReadOnlySwitchField=Oo;exports.ReadOnlyTextField=ue;exports.RecursicaThemeProvider=Gt;exports.Search=_r;exports.SegmentedControl=fr;exports.Slider=br;exports.Stack=Mo;exports.Stepper=hr;exports.Switch=Ee;exports.SwitchGroup=Be;exports.Table=Rr;exports.Tabs=Wr;exports.Text=Sr;exports.TextArea=Bo;exports.TextField=Eo;exports.TimePicker=zr;exports.Timeline=Mr;exports.Title=Do;exports.Toast=Fr;exports.Tooltip=De;exports.TransferList=Dr;exports.WithReadOnlyWrapper=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("react"),p=require("@mantine/core"),ot=["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"],tt=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),He={"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 N(n,e){if(e)return n;const r={...n};for(const a of ot)a in r&&delete r[a];for(const[a,t]of Object.entries(r))typeof t=="string"&&t.startsWith("rec-")&&tt.has(a)&&t in He&&(r[a]=He[t]);return r}const st="Accordion-module__root___Dem6d",at="Accordion-module__item___7ryVk",rt="Accordion-module__noDivider___Ni2tT",nt="Accordion-module__control___b4wgX",lt="Accordion-module__label___Ss7uW",it="Accordion-module__chevron___i-HVZ",ct="Accordion-module__iconLeftWrapper___5oLen",dt="Accordion-module__panel___Wx50w",pt="Accordion-module__content___PEM9t",Q={root:st,item:at,noDivider:rt,control:nt,label:lt,chevron:it,iconLeftWrapper:ct,panel:dt,content:pt},Qe=function({variant:e="unstyled",overStyled:r=!1,...a}){const t=N(a,r),o={root:Q.root,item:Q.item,control:Q.control,label:Q.label,chevron:Q.chevron,panel:Q.panel,content:Q.content},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const c=l;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=t.className;return s.jsx(p.Accordion,{variant:e,className:i,classNames:o,...t})};Qe.displayName="Accordion";const Ae=u.forwardRef(function({title:e,leftIcon:r,divider:a=!0,children:t,overStyled:o=!1,...l},i){const c=N(l,o),d=c.className,m=[a?void 0:Q.noDivider,d].filter(Boolean).join(" ")||void 0;return s.jsx(p.Accordion.Item,{ref:i,className:m,...c,children:e?s.jsxs(s.Fragment,{children:[s.jsx(ve,{leftIcon:r,children:e}),s.jsx(we,{children:t})]}):t})});Ae.displayName="AccordionItem";const ve=u.forwardRef(function({leftIcon:e,children:r,overStyled:a=!1,...t},o){const l=N(t,a),i=l.className;return s.jsx(p.Accordion.Control,{ref:o,className:i,icon:e?s.jsx("span",{className:Q.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...l,children:r})});ve.displayName="AccordionControl";const we=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx(p.Accordion.Panel,{ref:a,className:o,...t})});we.displayName="AccordionPanel";const ge=Qe;ge.Item=Ae;ge.Control=ve;ge.Panel=we;const mt="Avatar-module__root___fXu-J",_t="Avatar-module__iconWrapper___ojly2",ut="Avatar-module__textWrapper___zp-jD",ft="Avatar-module__image___ieqGp",bt="Avatar-module__placeholder___IDW7-",q={root:mt,iconWrapper:_t,textWrapper:ut,image:ft,placeholder:bt},Je=u.forwardRef(function({size:e="default",variant:r="solid",icon:a,children:t,src:o,overStyled:l=!1,...i},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},m={default:"md",small:"sm",large:"lg"},_=N(i,l),$=_;let f="text";o?f="image":a&&(f="icon");const b={root:q.root,image:q.image,placeholder:q.placeholder},x=$.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const h=x;b.root=h.root?`${q.root} ${h.root}`:q.root,b.image=h.image?`${q.image} ${h.image}`:q.image,b.placeholder=h.placeholder?`${q.placeholder} ${h.placeholder}`:q.placeholder}const v=$.className;return s.jsx(p.Avatar,{ref:c,className:v,classNames:b,variant:d[r],size:m[e],src:o,"data-variant":r,"data-size":e,"data-style":f,..._,children:a!=null?s.jsx("span",{className:q.iconWrapper,"aria-hidden":!0,children:a}):t!=null?s.jsx("span",{className:q.textWrapper,children:t}):void 0})});Je.displayName="Avatar";const yt=p.createPolymorphicComponent(Je),Nt="Badge-module__root___5osNT",Y={root:Nt},Xe=u.forwardRef(function({variant:e="primary-color",overStyled:r=!1,...a},t){const o=N(a,r),l={root:Y.root,section:Y.section,label:Y.label},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const m=i;l.root=m.root?`${Y.root} ${m.root}`:Y.root,l.section=m.section??Y.section,l.label=m.label??Y.label}const c=o.className,d=c?`${Y.root} ${c}`:Y.root;return s.jsx(p.Badge,{ref:t,variant:"filled","data-variant":e,...o,className:d,classNames:l})});Xe.displayName="Badge";const ht=p.createPolymorphicComponent(Xe),xt="Breadcrumb-module__root___x-9ln",$t="Breadcrumb-module__separator___qrUX-",oe={root:xt,separator:$t},eo=u.forwardRef(function({overStyled:e=!1,separator:r=">",...a},t){const o=N({separator:r,...a},e),l={root:oe.root,separator:oe.separator},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const m=i;l.root=m.root?`${oe.root} ${m.root}`:oe.root,l.separator=m.separator?`${oe.separator} ${m.separator}`:oe.separator}const c=o.className,d=c?`${oe.root} ${c}`:oe.root;return s.jsx(p.Breadcrumbs,{ref:t,...o,className:d,classNames:l})});eo.displayName="Breadcrumb";const Ct="Button-module__root___Q2R8-",vt="Button-module__label___UJ3Zt",wt="Button-module__labelText___rFV5p",gt="Button-module__iconWrapper___uEKPa",Pt="Button-module__section___f2mKr",H={root:Ct,label:vt,labelText:wt,iconWrapper:gt,section:Pt};function jt(n){return n==null||n===""?!1:typeof n=="string"?n.trim()!=="":!0}const oo=u.forwardRef(function({variant:e="solid",size:r="default",icon:a,children:t,overStyled:o=!1,...l},i){const c={solid:"filled",outline:"outline",text:"subtle"},d={default:"md",small:"sm"},m=N(l,o),_=m;delete _.fullWidth;const $=!!a||!!_.leftSection,f=!!_.rightSection,b=($||f)&&!jt(t);typeof process<"u"&&process.env.NODE_ENV!=="production"&&b&&!_["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const x={root:H.root,section:H.section,label:H.label},v=_.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const y=v;x.root=y.root?`${H.root} ${y.root}`:H.root,x.section=y.section??H.section,x.label=y.label??H.label}const h=_.className,w=h?`${H.root} ${h}`:H.root;return s.jsx(p.Button,{ref:i,className:w,classNames:x,variant:c[e],size:d[r],leftSection:a!=null?s.jsx("span",{className:H.iconWrapper,"aria-hidden":!0,children:a}):void 0,"data-variant":e,"data-size":r,...b?{"data-icon-only":""}:{},...m,children:s.jsx("span",{className:H.labelText,children:t})})});oo.displayName="Button";const St=p.createPolymorphicComponent(oo),Tt="Card-module__root___c9KvZ",At="Card-module__header___PTXf2 recursica_brand_typography_h3",Rt="Card-module__footer___Mu-JC",Wt="Card-module__section___BRT8H",Lt="Card-module__content___oFIQa",J={root:Tt,header:At,footer:Rt,section:Wt,content:Lt},to=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o={root:J.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const c=l;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=t.className;return s.jsx(p.Card,{ref:a,className:i,classNames:o,...t})});to.displayName="Card";const Re=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx(p.Card.Section,{ref:a,className:o?`${J.section} ${o}`:J.section,...t})});Re.displayName="CardSection";const We=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx(p.Card.Section,{ref:a,className:o?`${J.header} ${o}`:J.header,...t})});We.displayName="CardHeader";const Le=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx(p.Card.Section,{ref:a,className:o?`${J.footer} ${o}`:J.footer,...t})});Le.displayName="CardFooter";const Ie=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx("div",{ref:a,className:o?`${J.content} ${o}`:J.content,...t})});Ie.displayName="CardContent";const so=p.createPolymorphicComponent(to),Pe=so;Pe.Section=Re;Pe.Header=We;Pe.Footer=Le;Pe.Content=Ie;const It=so,kt="Label-module__root___e6HXZ",Ot="Label-module__labelText___rieFR",zt="Label-module__required___Ggrzc",Mt="Label-module__optionalText___Y2yun",Ft="Label-module__actionAreaWrapper___ELoZK",Bt="Label-module__editIconWrapper___NG2xW",G={root:kt,labelText:Ot,required:zt,optionalText:Mt,actionAreaWrapper:Ft,editIconWrapper:Bt},ke=u.forwardRef(function({labelSize:e="default",labelAlignment:r,required:a=!1,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:l,onLabelEditClick:i,children:c,overStyled:d=!1,...m},_){const $=r||"left";let f;a||(t===!0?f="optional":t&&(f=t));const b=N(m,d),x=b,v={label:G.root,required:G.required},h=x.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const j=h;v.label=j.label?`${G.root} ${j.label}`:G.root,v.required=j.required?`${G.required} ${j.required}`:G.required}const w=x.className,y=w?`${G.root} ${w}`:G.root;return s.jsxs(p.Input.Label,{ref:_,className:y,classNames:v,"data-size":e,"data-alignment":$,required:a&&!o,...b,children:[s.jsx("span",{className:G.labelText,children:c}),f&&s.jsx("span",{className:G.optionalText,children:typeof f=="string"?`(${f})`:f}),l?s.jsx("span",{className:G.actionAreaWrapper,children:l}):o?s.jsx("button",{type:"button",className:G.editIconWrapper,"data-replaces-asterisk":a?"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]})});ke.displayName="Label";const Dt="FormControlLayout-module__root___yNDhZ",Et="FormControlLayout-module__leftSection___GBM1r",Vt="FormControlLayout-module__rightSection___bcL4v",he={root:Dt,leftSection:Et,rightSection:Vt},X=u.forwardRef(function({formLayout:e="stacked",labelSize:r="default",controlMaxWidth:a,controlMinWidth:t,leftSection:o,children:l,className:i,style:c,...d},m){const _=i?`${he.root} ${i}`:he.root,f=o!=null||e==="side-by-side";return s.jsxs("div",{ref:m,className:_,"data-form-layout":e,style:{...c,...a?{"--form-control-max-width":a}:{},...t?{"--form-control-min-width":t}:{}},...d,children:[f&&s.jsx("div",{className:he.leftSection,"data-size":r,children:o}),s.jsx("div",{className:he.rightSection,children:l})]})});X.displayName="FormControlLayout";const Gt="AssistiveElement-module__root___WhQ43",qt="AssistiveElement-module__textWrapper___sfy5E",Ht="AssistiveElement-module__iconWrapper___gObRF",Se={root:Gt,textWrapper:qt,iconWrapper:Ht},Ut=()=>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"})]}),Zt=()=>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"})]}),Te=u.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:r=!0,children:a,className:t,overStyled:o=!1,...l},i){const d=N(l,o),m=Se.root,_=t?`${m} ${t}`:m,$=e==="error"?Zt:Ut;return s.jsxs("div",{ref:i,className:_,"data-variant":e,style:d.style,...d,children:[r&&s.jsx("span",{className:Se.iconWrapper,children:s.jsx($,{})}),s.jsx("span",{className:Se.textWrapper,children:a})]})});Te.displayName="AssistiveElement";const Yt="FormControlWrapper-module__inputSection___HenXk",Ue={inputSection:Yt},$e=u.forwardRef(function({formLayout:e,labelSize:r,labelAlignment:a,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:l,onLabelEditClick:i,label:c,description:d,assistiveText:m,assistiveWithIcon:_=!0,controlMaxWidth:$,controlMinWidth:f,error:b,required:x,withAsterisk:v,id:h,children:w,className:y,overStyled:j=!1,labelElement:C,...O},A){const S=u.useId(),I=h||`recursica-fc-${S}`,z=m||d,R=z?`${I}-assistive`:void 0,P=b?`${I}-error`:void 0,k=N(O,j),se=y||k.className,Ne=Ue.root,V=se?`${Ne} ${se}`:Ne,Xo=u.isValidElement(w)?u.cloneElement(w,{...z&&!w.props["aria-describedby"]?{"aria-describedby":R}:{},...b&&!w.props["aria-errormessage"]?{"aria-errormessage":P}:{}}):w,et=c?s.jsx(ke,{id:I,labelAlignment:a,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:l,onLabelEditClick:i,required:v??x,...C==="div"?{as:"div"}:{},children:c}):void 0;return s.jsx(X,{ref:A,className:V,formLayout:e,labelSize:r,controlMaxWidth:$,controlMinWidth:f,leftSection:et,...k,children:s.jsxs("div",{className:Ue.inputSection,children:[Xo,b&&s.jsx(Te,{id:P,assistiveVariant:"error",assistiveWithIcon:_,children:b}),!b&&z&&s.jsx(Te,{id:R,assistiveVariant:"help",assistiveWithIcon:_,children:z})]})})});$e.displayName="FormControlWrapper";const Kt="_root_1qhn7_3",Qt="_contents_1qhn7_18",le={root:Kt,contents:Qt},ao=u.forwardRef(function({layer:n,contentsOnly:e,children:r,className:a,style:t,...o},l){const i=e?a?`${le.root} ${le.contents} ${a}`:`${le.root} ${le.contents}`:a?`${le.root} ${a}`:le.root;return s.jsx("div",{ref:l,className:i,style:t,...e?{}:{"data-recursica-layer":String(n)},...o,children:r})});ao.displayName="Layer";const be=({emptyText:n="N/A"})=>s.jsx(u.Fragment,{children:n});be.displayName="EmptyValueRenderer";be.check=n=>n==null||n===""||Array.isArray(n)&&n.length===0;const Ze="data-recursica-theme";function Jt({children:n,theme:e="light"}){return u.useEffect(()=>{const r=document.documentElement;return r.setAttribute(Ze,e),()=>{r.removeAttribute(Ze)}},[e]),s.jsx(s.Fragment,{children:n})}const Xt="ReadOnlyField-module__textField___qKn25",Ce={textField:Xt},fe=({value:n,overStyled:e=!1,...r})=>{const a=N(r,e),t=a.className;return s.jsx(p.Box,{component:"p",className:t?`${Ce.textField} ${t}`:Ce.textField,...a,children:n!=null?u.isValidElement(n)?n:Array.isArray(n)?n.join(", "):String(n):""})};fe.displayName="ReadOnlyTextField";const Oe=u.forwardRef(function({value:e,type:r="text",emptyValueComponent:a,overStyled:t=!1,...o},l){let i=null;const c=N(o,t),d=a||be,_=(d.check?d.check(e):be.check(e))?s.jsx(d,{value:e}):e;switch(r){case"boolean":i=s.jsx(fe,{value:e===!0?"True":e===!1?"False":_,overStyled:t});break;case"switch":i=s.jsx(fe,{value:e===!0?"On":e===!1?"Off":_,overStyled:t});break;case"text":default:i=s.jsx(fe,{value:_,overStyled:t});break}return s.jsx($e,{ref:l,overStyled:t,...c,children:i})});Oe.displayName="ReadOnlyField";const ee=u.forwardRef(function({readOnly:e,readOnlyComponent:r,readOnlyType:a="text",readOnlyValue:t,readOnlyNativeProps:o,emptyValueComponent:l,activeComponent:i,overStyled:c,onLabelEditClick:d,...m},_){if(e){if(r){const $=r;return s.jsx($e,{ref:_,...m,onLabelEditClick:d,overStyled:c,children:s.jsx($,{...o})})}return s.jsx(Oe,{ref:_,type:a,value:t,emptyValueComponent:l,onLabelEditClick:d,overStyled:c,...m})}return s.jsx($e,{ref:_,...m,onLabelEditClick:d,overStyled:c,children:i})});ee.displayName="WithReadOnlyWrapper";const es="Checkbox-module__groupRoot___cBS0o",os="Checkbox-module__root___mY3qk",ts="Checkbox-module__body___5yC7q",ss="Checkbox-module__inner___rTke4",as="Checkbox-module__input___2kt-h",rs="Checkbox-module__icon___-O7i6",ns="Checkbox-module__labelWrapper___GpZkr",ls="Checkbox-module__label___cwRtI",W={groupRoot:es,root:os,body:ts,inner:ss,input:as,icon:rs,labelWrapper:ns,label:ls},ze=u.forwardRef(function(e,r){const{overStyled:a=!1,formLayout:t="stacked",labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:$,assistiveWithIcon:f,error:b,required:x,withAsterisk:v,id:h,className:w,style:y,children:j,readOnly:C,readOnlyComponent:O,emptyValueComponent:A,value:S,defaultValue:I,...z}=e,R=N(z,a),P=R;return delete P.size,s.jsx(ee,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:a,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:$,assistiveWithIcon:f,error:b,required:x,withAsterisk:v,id:h,readOnly:C&&!!O,readOnlyComponent:O,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:S!==void 0?S:I,readOnlyNativeProps:e,activeComponent:s.jsx(p.Checkbox.Group,{ref:r,...R,disabled:C||P.disabled,value:S,defaultValue:I,children:s.jsx("div",{className:W.groupRoot,"data-layout":t,children:u.Children.map(j,g=>u.isValidElement(g)?u.cloneElement(g,{disabled:C||g.props.disabled}):g)})})})});ze.displayName="CheckboxGroup";const Me=u.forwardRef(function(e,r){const{overStyled:a=!1,readOnly:t,readOnlyComponent:o,disabled:l,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,..._}=e,$=N(_,a),f=$;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const b={root:W.root,body:W.body,inner:W.inner,input:W.input,icon:W.icon,labelWrapper:W.labelWrapper,label:W.label},x=f.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const y=x;b.root=y.root?`${W.root} ${y.root}`:W.root,b.body=y.body?`${W.body} ${y.body}`:W.body,b.inner=y.inner?`${W.inner} ${y.inner}`:W.inner,b.input=y.input?`${W.input} ${y.input}`:W.input,b.icon=y.icon?`${W.icon} ${y.icon}`:W.icon,b.labelWrapper=y.labelWrapper?`${W.labelWrapper} ${y.labelWrapper}`:W.labelWrapper,b.label=y.label?`${W.label} ${y.label}`:W.label}const v=f.className,h=v?`${W.root} ${v}`:W.root;if(t&&o){const y=!!(f.checked??f.defaultChecked),j=o,C=s.jsx(j,{...e,checked:y,label:f.label});return i?s.jsx(X,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:C}):s.jsx(s.Fragment,{children:C})}const w=s.jsx(p.Checkbox,{ref:r,className:h,classNames:b,disabled:t||l,...$});return i?s.jsx(X,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:w}):w});Me.displayName="Checkbox";Me.Group=ze;const is="Chip-module__root___f5pFk",cs="Chip-module__label___Ov9pg",ds="Chip-module__mantineIconWrapper___KLSz6",ps="Chip-module__innerWrapper___EnrTF",ms="Chip-module__children___zbRAR",_s="Chip-module__leadingIcon___JBtjQ",us="Chip-module__removeIcon___pVju-",F={root:is,label:cs,mantineIconWrapper:ds,innerWrapper:ps,children:ms,leadingIcon:_s,removeIcon:us};function fs(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 ro=u.forwardRef(function({error:e=!1,icon:r,onRemove:a,removeLabel:t="Remove",children:o,overStyled:l=!1,...i},c){const d=N(i,l),m=d,_={root:F.root,label:F.label,input:F.input,iconWrapper:F.mantineIconWrapper,checkIcon:F.checkIcon},$=m.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const h=$;_.root=h.root?`${F.root} ${h.root}`:F.root,_.label=h.label?`${F.label} ${h.label}`:F.label}const f=m.className,b=f?`${F.root} ${f}`:F.root,x=e?"":void 0,v=!o&&(!!r||!!a);return s.jsx(p.Chip,{ref:c,className:b,classNames:_,...x!==void 0?{"data-error":""}:{},...v?{"data-icon-only":""}:{},...d,children:s.jsxs("span",{className:F.innerWrapper,children:[r&&s.jsx("span",{className:F.leadingIcon,"aria-hidden":!0,children:r}),s.jsx("span",{className:F.children,children:o}),a&&s.jsx("span",{role:"button",className:F.removeIcon,onClick:h=>{h.preventDefault(),h.stopPropagation(),a(h)},"aria-label":t,onKeyDown:h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),h.stopPropagation(),a(h))},tabIndex:0,children:s.jsx(fs,{})})]})})});ro.displayName="Chip";const bs="Container-module__root___UVssr",ce={root:bs},no=u.forwardRef(function({children:e,size:r,...a},t){const o={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof r=="string"&&o[r]?o[r]:r,i={root:ce.root},c=a.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${ce.root} ${_.root}`:ce.root}const d=a.className,m=d?`${ce.root} ${d}`:ce.root;return s.jsx(p.Container,{ref:t,size:l,className:m,classNames:i,...a,children:e})});no.displayName="Container";const ys=n=>s.jsx("div",{...n,children:"DatePicker"}),Ns="Dropdown-module__root___uVyL0",hs="Dropdown-module__input___dK4dN",xs="Dropdown-module__section___j3MRB",$s="Dropdown-module__dropdown___gG-Sw",Cs="Dropdown-module__option___nAGU-",B={root:Ns,input:hs,section:xs,dropdown:$s,option:Cs},lo=u.forwardRef(function(e,r){const{overStyled:a=!1,formLayout:t="stacked",containerWidth:o,labelSize:l,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:m,label:_,assistiveText:$,assistiveWithIcon:f,error:b,required:x,withAsterisk:v,id:h,className:w,style:y,disabled:j,readOnly:C,readOnlyComponent:O,emptyValueComponent:A,value:S,defaultValue:I,data:z,...R}=e,P=N(R,a),g=P;delete g.size,delete g.variant,delete g.radius;const k={wrapper:B.root,input:B.input,section:B.section,dropdown:B.dropdown,option:B.option},se=g.classNames;if(se&&typeof se=="object"&&!Array.isArray(se)){const V=se;k.wrapper=V.wrapper?`${B.root} ${V.wrapper}`:B.root,k.input=V.input?`${B.input} ${V.input}`:B.input,k.section=V.section?`${B.section} ${V.section}`:B.section,k.dropdown=V.dropdown?`${B.dropdown} ${V.dropdown}`:B.dropdown,k.option=V.option?`${B.option} ${V.option}`:B.option}const Ne={...y||{},width:o||"100%"};return s.jsx(ee,{className:w,style:Ne,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:a,formLayout:t,labelSize:l,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:m,label:_,assistiveText:$,assistiveWithIcon:f,error:b,required:x,withAsterisk:v,id:h,readOnly:C,readOnlyComponent:O,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:S!==void 0?String(S):I?String(I):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(p.Select,{ref:r,classNames:k,disabled:j,value:S,defaultValue:I,data:z||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":j?"true":void 0,"data-error":b?"true":void 0},...P})})});lo.displayName="Dropdown";const vs=n=>s.jsx("div",{...n,children:"FileInput"}),ws=n=>s.jsx("div",{...n,children:"FileUpload"}),gs="Flex-module__root___yYser",de={root:gs},io=u.forwardRef(function({children:e,gap:r="rec-default",...a},t){const o={root:de.root},l=a.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;o.root=d.root?`${de.root} ${d.root}`:de.root}const i=a.className,c=i?`${de.root} ${i}`:de.root;return s.jsx(p.Flex,{ref:t,className:c,classNames:o,gap:r,...a,children:e})});io.displayName="Flex";const Ps=p.createPolymorphicComponent(io),js="Group-module__root___ftO64",pe={root:js},co=u.forwardRef(function({children:e,gap:r="rec-default",...a},t){const o={root:pe.root},l=a.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;o.root=d.root?`${pe.root} ${d.root}`:pe.root}const i=a.className,c=i?`${pe.root} ${i}`:pe.root;return s.jsx(p.Group,{ref:t,className:c,classNames:o,gap:r,...a,children:e})});co.displayName="Group";const Ss="HoverCard-module__dropdown___FBPFW",Ts="HoverCard-module__arrow___S9AkE",Ye={dropdown:Ss,arrow:Ts},po=function({overStyled:e=!1,withBeak:r=!0,...a}){const t=N(a,e),o={dropdown:Ye.dropdown,arrow:Ye.arrow},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const m=l;Object.keys(m).forEach(_=>{o[_]?o[_]=`${o[_]} ${m[_]}`:o[_]=m[_]})}const i=t.arrowSize??16,c=t.withArrow,d=r??c;return s.jsx(p.HoverCard,{position:"top",arrowSize:i,withArrow:d,classNames:o,...t})};po.displayName="HoverCard";const mo=function(e){return s.jsx(p.HoverCard.Target,{...e})};mo.displayName="HoverCardTarget";const _o=function({overStyled:e=!1,...r}){const a=N(r,e),t=a.className;return s.jsx(p.HoverCard.Dropdown,{className:t,...a})};_o.displayName="HoverCardDropdown";const Fe=po;Fe.Target=mo;Fe.Dropdown=_o;const As="Link-module__root___I0VGE",Rs="Link-module__iconWrapper___W-LlF",Ws="Link-module__labelText___wSvUy",ae={root:As,iconWrapper:Rs,labelText:Ws},uo=u.forwardRef(function({icon:e,children:r,overStyled:a=!1,...t},o){const l=N(t,a),i=l,c={root:ae.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const $=d;c.root=$.root?`${ae.root} ${$.root}`:ae.root}const m=i.className,_=m?`${ae.root} ${m}`:ae.root;return s.jsxs(p.Anchor,{ref:o,className:_,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...l,children:[e&&s.jsx("span",{className:ae.iconWrapper,"aria-hidden":!0,children:e}),s.jsx("span",{className:ae.labelText,children:r})]})});uo.displayName="Link";const Ls=p.createPolymorphicComponent(uo),Is="Loader-module__root___6iYOP",me={root:Is},fo=u.forwardRef(function({variant:e="oval",size:r="default",overStyled:a=!1,...t},o){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[r]||"default",c=N(t,a),d={root:me.root},m=c.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const f=m;d.root=f.root?`${me.root} ${f.root}`:me.root}const _=c.className,$=_?`${me.root} ${_}`:me.root;return s.jsx(p.Loader,{ref:o,type:e,"data-variant":e,"data-size":i,...c,className:$,classNames:d})});fo.displayName="Loader";const ks="Menu-module__dropdown___j4xuA",Os="Menu-module__item___NMXha",zs="Menu-module__itemLabel___zvcqC",Ms="Menu-module__itemSection___pRIcn",Fs="Menu-module__divider___wPiNq",Bs="Menu-module__label___4FBGa",Ds="Menu-module__chevron___hEEiy",re={dropdown:ks,item:Os,itemLabel:zs,itemSection:Ms,divider:Fs,label:Bs,chevron:Ds},bo=function({overStyled:e=!1,...r}){const a=N(r,e),t={dropdown:re.dropdown,item:re.item,itemLabel:re.itemLabel,itemSection:re.itemSection,divider:re.divider,label:re.label,chevron:re.chevron},o=a.classNames;if(o&&typeof o=="object"&&!Array.isArray(o)){const l=o;Object.keys(l).forEach(i=>{t[i]?t[i]=`${t[i]} ${l[i]}`:t[i]=l[i]})}return s.jsx(p.Menu,{classNames:t,...a})};bo.displayName="Menu";const yo=function(e){return s.jsx(p.Menu.Target,{...e})};yo.displayName="MenuTarget";const No=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx(p.Menu.Dropdown,{ref:a,className:o,...t})});No.displayName="MenuDropdown";const ho=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t;e||delete o.color;const l=o.className;return s.jsx(p.Menu.Item,{ref:a,className:l,...t})});ho.displayName="MenuItem";const Es=p.createPolymorphicComponent(ho),xo=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx(p.Menu.Divider,{ref:a,className:o,...t})});xo.displayName="MenuDivider";const $o=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx(p.Menu.Label,{ref:a,className:o,...t})});$o.displayName="MenuLabel";const Co=function(e){return s.jsx(p.Menu.Sub,{...e})};Co.displayName="MenuSub";const vo=function(e){return s.jsx(p.Menu.Sub.Target,{...e})};vo.displayName="MenuSubTarget";const wo=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t;e||delete o.color;const l=o.className;return s.jsx(p.Menu.Sub.Item,{ref:a,className:l,...t})});wo.displayName="MenuSubItem";const Vs=p.createPolymorphicComponent(wo),go=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className;return s.jsx(p.Menu.Sub.Dropdown,{ref:a,className:o,...t})});go.displayName="MenuSubDropdown";const je=Co;je.Target=vo;je.Item=Vs;je.Dropdown=go;const ne=bo;ne.Target=yo;ne.Dropdown=No;ne.Item=Es;ne.Divider=xo;ne.Label=$o;ne.Sub=je;const Gs=n=>s.jsx("div",{...n,children:"Modal"}),qs="NumberInput-module__root___C6rAn",Hs="NumberInput-module__input___Ss8p7",Us="NumberInput-module__section___MijP0",Zs="NumberInput-module__controls___8UfQ2",Ys="NumberInput-module__control___Qre9-",_e={root:qs,input:Hs,section:Us,controls:Zs,control:Ys},Po=u.forwardRef(function(e,r){const{overStyled:a=!1,formLayout:t="stacked",labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:$,error:f,required:b,withAsterisk:x,id:v,className:h,style:w,disabled:y,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,value:A,defaultValue:S,hideControls:I=!1,...z}=e,R=N(z,a),P=R;delete P.size,delete P.variant,delete P.radius;const g={wrapper:_e.root,input:_e.input,section:_e.section,controls:_e.controls,control:_e.control};return s.jsx(ee,{className:h,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:a,formLayout:t,labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:$,error:f,required:b,withAsterisk:x,id:v,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:A!==void 0?A==null?void 0:A.toString():S==null?void 0:S.toString(),readOnlyNativeProps:e,activeComponent:s.jsx(p.NumberInput,{ref:r,classNames:g,disabled:y,value:A,defaultValue:S,hideControls:I,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":f?"true":void 0,"data-with-left-section":P.leftSection?"true":void 0,"data-with-right-section":P.rightSection||!I?"true":void 0},...R})})});Po.displayName="NumberInput";const Ks="Pagination-module__root___ITRjt",Qs="Pagination-module__control___40yNT",Js="Pagination-module__dots___Yl9da",Xs="Pagination-module__iconWithLabel___pLM4O",ea="Pagination-module__baseIcon___Qw3bJ",M={root:Ks,control:Qs,dots:Js,iconWithLabel:Xs,baseIcon:ea},oa="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",ta="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",sa="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",aa="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",ra={next:oa,prev:ta,first:sa,last:aa},ye=({type:n,className:e,...r})=>s.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${M.baseIcon} ${e||""}`.trim(),...r,children:s.jsx("path",{d:ra[n],fill:"currentColor"})}),jo=n=>s.jsxs("div",{className:M.iconWithLabel,children:[s.jsx("span",{children:"Next"}),s.jsx(ye,{type:"next",...n})]}),So=n=>s.jsxs("div",{className:M.iconWithLabel,children:[s.jsx(ye,{type:"prev",...n}),s.jsx("span",{children:"Prev"})]}),To=n=>s.jsxs("div",{className:M.iconWithLabel,children:[s.jsx(ye,{type:"first",...n}),s.jsx("span",{children:"First"})]}),Ao=n=>s.jsxs("div",{className:M.iconWithLabel,children:[s.jsx("span",{children:"Last"}),s.jsx(ye,{type:"last",...n})]});function Ro(n){const e={root:M.root,control:M.control,dots:M.dots},r=n.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const o=r;e.root=o.root?`${M.root} ${o.root}`:M.root,e.control=o.control?`${M.control} ${o.control}`:M.control,e.dots=o.dots?`${M.dots} ${o.dots}`:M.dots}const a=n.className;return{className:a?`${M.root} ${a}`:M.root,classNames:e}}const Wo=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=Ro(t);return s.jsx(p.Pagination.Root,{ref:a,className:o.className,classNames:o.classNames,...t})});Wo.displayName="Pagination.Root";const Lo=u.forwardRef(function({withLabel:e,icon:r,...a},t){const o=r||(e?jo:void 0);return s.jsx(p.Pagination.Next,{ref:t,"data-variant":"text",icon:o,...a})});Lo.displayName="Pagination.Next";const Io=u.forwardRef(function({withLabel:e,icon:r,...a},t){const o=r||(e?So:void 0);return s.jsx(p.Pagination.Previous,{ref:t,"data-variant":"text",icon:o,...a})});Io.displayName="Pagination.Previous";const ko=u.forwardRef(function({withLabel:e,icon:r,...a},t){const o=r||(e?To:void 0);return s.jsx(p.Pagination.First,{ref:t,"data-variant":"text",icon:o,...a})});ko.displayName="Pagination.First";const Oo=u.forwardRef(function({withLabel:e,icon:r,...a},t){const o=r||(e?Ao:void 0);return s.jsx(p.Pagination.Last,{ref:t,"data-variant":"text",icon:o,...a})});Oo.displayName="Pagination.Last";const zo=u.forwardRef(function({overStyled:e=!1,getControlProps:r,withLabels:a,...t},o){const l=N(t,e),i=Ro(l),c=m=>{const _={"data-variant":"text"};return r?{..._,...r(m)}:_},d=a?{nextIcon:jo,previousIcon:So,firstIcon:To,lastIcon:Ao}:{};return s.jsx(p.Pagination,{ref:o,className:i.className,classNames:i.classNames,getControlProps:c,...d,...l})});zo.displayName="Pagination";const U=zo;U.Root=Wo;U.Items=p.Pagination.Items;U.Control=p.Pagination.Control;U.Dots=p.Pagination.Dots;U.Next=Lo;U.Previous=Io;U.First=ko;U.Last=Oo;U.Icon=ye;const na="Panel-module__content___wdGo-",la="Panel-module__inner___ruA2b",ia="Panel-module__header___o7SiC",ca="Panel-module__title___181OP recursica_brand_typography_h3",da="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP recursica_brand_typography_h3",pa="Panel-module__body___SEC3T",ma="Panel-module__footer___t6-hz",te={content:na,inner:la,header:ia,title:ca,titleTruncate:da,body:pa,footer:ma},Mo=function({overStyled:e=!1,position:r="right",keepMounted:a=!0,wrapHeaderText:t=!1,...o}){const l=N(o,e),i={content:te.content,header:te.header,title:t?te.titleTruncate:te.title,body:te.body,inner:te.inner},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(m=>{i[m]?i[m]=`${i[m]} ${d[m]}`:i[m]=d[m]})}return s.jsx(p.Drawer,{position:r,keepMounted:a,closeOnClickOutside:o.closeOnClickOutside??!!o.opened,...l,classNames:i})};Mo.displayName="Panel";const Be=u.forwardRef(function({overStyled:e=!1,...r},a){const t=N(r,e),o=t.className,l=o?`${te.footer} ${o}`:te.footer;return s.jsx("div",{ref:a,className:l,...t})});Be.displayName="PanelFooter";const Z=Mo;Z.Root=p.Drawer.Root;Z.Overlay=p.Drawer.Overlay;Z.Content=p.Drawer.Content;Z.Header=p.Drawer.Header;Z.Title=p.Drawer.Title;Z.CloseButton=p.Drawer.CloseButton;Z.Body=p.Drawer.Body;Z.Stack=p.Drawer.Stack;Z.Footer=Be;const _a="Radio-module__groupRoot___bfUii",ua="Radio-module__root___kAjTD",fa="Radio-module__body___q2Wpj",ba="Radio-module__inner___QaTBB",ya="Radio-module__radio___MfgN-",Na="Radio-module__icon___DWznm",ha="Radio-module__labelWrapper___dB0Gi",xa="Radio-module__label___vAFIP",L={groupRoot:_a,root:ua,body:fa,inner:ba,radio:ya,icon:Na,labelWrapper:ha,label:xa},De=u.forwardRef(function(e,r){const{overStyled:a=!1,formLayout:t="stacked",labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:$,assistiveWithIcon:f,error:b,required:x,withAsterisk:v,id:h,className:w,style:y,children:j,readOnly:C,readOnlyComponent:O,emptyValueComponent:A,value:S,defaultValue:I,...z}=e,R=N(z,a),P=R;return delete P.size,s.jsx(ee,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:a,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:$,assistiveWithIcon:f,error:b,required:x,withAsterisk:v,id:h,readOnly:C&&!!O,readOnlyComponent:O,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:S!==void 0?S:I,readOnlyNativeProps:e,activeComponent:s.jsx(p.Radio.Group,{ref:r,...R,disabled:C||P.disabled,value:S,defaultValue:I,children:s.jsx("div",{className:L.groupRoot,"data-layout":t,children:u.Children.map(j,g=>u.isValidElement(g)?u.cloneElement(g,{disabled:C||g.props.disabled}):g)})})})});De.displayName="RadioGroup";const $a=({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"})}),Ee=u.forwardRef(function(e,r){const{overStyled:a=!1,readOnly:t,readOnlyComponent:o,disabled:l,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,..._}=e,$=N(_,a),f=$;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const b={root:L.root,body:L.body,inner:L.inner,radio:L.radio,icon:L.icon,labelWrapper:L.labelWrapper,label:L.label},x=f.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const y=x;b.root=y.root?`${L.root} ${y.root}`:L.root,b.body=y.body?`${L.body} ${y.body}`:L.body,b.inner=y.inner?`${L.inner} ${y.inner}`:L.inner,b.radio=y.radio?`${L.radio} ${y.radio}`:L.radio,b.icon=y.icon?`${L.icon} ${y.icon}`:L.icon,b.labelWrapper=y.labelWrapper?`${L.labelWrapper} ${y.labelWrapper}`:L.labelWrapper,b.label=y.label?`${L.label} ${y.label}`:L.label}const v=f.className,h=v?`${L.root} ${v}`:L.root;if(t&&o){const y=!!(f.checked??f.defaultChecked),j=o,C=s.jsx(j,{...e,checked:y,label:f.label});return i?s.jsx(X,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:C}):s.jsx(s.Fragment,{children:C})}const w=s.jsx(p.Radio,{ref:r,icon:$a,className:h,classNames:b,disabled:t||l,...$});return i?s.jsx(X,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:w}):w});Ee.displayName="Radio";Ee.Group=De;const Fo=({checked:n,label:e})=>s.jsxs(p.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:n?"On":"Off"})]});Fo.displayName="ReadOnlySwitchField";const Bo=({checked:n,label:e})=>s.jsxs(p.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:n?"True":"False"})]});Bo.displayName="ReadOnlyBooleanField";const Ca="SegmentedControl-module__root___JFRhg",va="SegmentedControl-module__label___mS17q",wa="SegmentedControl-module__control___znOdQ",ga="SegmentedControl-module__indicator___ZMcJy",E={root:Ca,label:va,control:wa,indicator:ga};function Pa(n){const e={root:E.root,control:E.control,label:E.label,indicator:E.indicator},r=n.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const o=r;e.root=o.root?`${E.root} ${o.root}`:E.root,e.control=o.control?`${E.control} ${o.control}`:E.control,e.label=o.label?`${E.label} ${o.label}`:E.label,e.indicator=o.indicator?`${E.indicator} ${o.indicator}`:E.indicator}const a=n.className;return{className:a?`${E.root} ${a}`:E.root,classNames:e}}const Do=u.forwardRef(function({overStyled:e=!1,orientation:r="horizontal",fullWidth:a,...t},o){const l=N(t,e),i=Pa(l);return s.jsx(p.SegmentedControl,{ref:o,className:i.className,classNames:i.classNames,orientation:r,fullWidth:a,"data-orientation":r,...l})});Do.displayName="SegmentedControl";const ja=Do,Sa=n=>s.jsx("div",{...n,children:"Slider"}),Ta="Stack-module__root___NUN-x",ue={root:Ta},Eo=u.forwardRef(function({children:e,gap:r="rec-default",...a},t){const o={root:ue.root},l=a.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;o.root=d.root?`${ue.root} ${d.root}`:ue.root}const i=a.className,c=i?`${ue.root} ${i}`:ue.root;return s.jsx(p.Stack,{ref:t,className:c,classNames:o,gap:r,...a,children:e})});Eo.displayName="Stack";const Aa="Stepper-module__root___jbSYO",Ra="Stepper-module__horizontal___USHT1",Wa="Stepper-module__steps___4HPO6",La="Stepper-module__step___s2nqL",Ia="Stepper-module__stepBody___TBvys",ka="Stepper-module__stepLabel___N6nuy",Oa="Stepper-module__stepDescription___DnDAy",za="Stepper-module__separator___pU0No",Ma="Stepper-module__vertical___d4mOs",Fa="Stepper-module__large___J18-y",Ba="Stepper-module__small___Ub-zb",Da="Stepper-module__stepIcon___YQHNq",Ea="Stepper-module__stepCompletedIcon___B9MeL",Va="Stepper-module__verticalSeparator___frWc1",Ga="Stepper-module__content___J-h8X",D={root:Aa,horizontal:Ra,steps:Wa,step:La,stepBody:Ia,stepLabel:ka,stepDescription:Oa,separator:za,vertical:Ma,large:Fa,small:Ba,stepIcon:Da,stepCompletedIcon:Ea,verticalSeparator:Va,content:Ga},Vo=u.forwardRef(function(e,r){const{overStyled:a=!1,size:t="large",orientation:o="horizontal",className:l,style:i,...c}=e,d=N(c,a);return s.jsx(p.Stepper,{ref:r,orientation:o,className:`${D.root} ${o==="horizontal"?D.horizontal:D.vertical} ${t==="large"?D.large:D.small} ${l||""}`,style:i,"data-size":t,"data-orientation":o,classNames:{steps:D.steps,step:D.step,stepIcon:D.stepIcon,stepCompletedIcon:D.stepCompletedIcon,stepBody:D.stepBody,stepLabel:D.stepLabel,stepDescription:D.stepDescription,separator:D.separator,verticalSeparator:D.verticalSeparator,content:D.content},...d})}),qa=Object.assign(Vo,{Step:p.Stepper.Step,Completed:p.Stepper.Completed});Vo.displayName="Stepper";const Ha="Switch-module__root___Y5Ydi",Ua="Switch-module__body___Sw9Wr",Za="Switch-module__track___7ObdZ",Ya="Switch-module__thumb___-FTeK",Ka="Switch-module__labelWrapper___YSOwx",Qa="Switch-module__label___LrH7V",Ja="Switch-module__thumbIconWrapper___sCY-1",Xa="Switch-module__checkIcon___ZBAQN",er="Switch-module__closeIcon___bLLGw",or="Switch-module__groupRoot___-Uepi",T={root:Ha,body:Ua,track:Za,thumb:Ya,labelWrapper:Ka,label:Qa,thumbIconWrapper:Ja,checkIcon:Xa,closeIcon:er,groupRoot:or},Ve=u.forwardRef(function(e,r){const{overStyled:a=!1,formLayout:t="stacked",labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:$,assistiveWithIcon:f,error:b,required:x,withAsterisk:v,id:h,className:w,style:y,children:j,readOnly:C,readOnlyComponent:O,emptyValueComponent:A,value:S,defaultValue:I,...z}=e,R=N(z,a),P=R;return delete P.size,s.jsx(ee,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:a,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:$,assistiveWithIcon:f,error:b,required:x,withAsterisk:v,id:h,readOnly:C&&!!O,readOnlyComponent:O,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:S!==void 0?S:I,readOnlyNativeProps:e,activeComponent:s.jsx(p.Switch.Group,{ref:r,...R,disabled:C||P.disabled,value:S,defaultValue:I,children:s.jsx("div",{className:T.groupRoot,children:u.Children.map(j,g=>u.isValidElement(g)?u.cloneElement(g,{disabled:C||g.props.disabled}):g)})})})});Ve.displayName="SwitchGroup";const Ge=u.forwardRef(function(e,r){const{overStyled:a=!1,readOnly:t,readOnlyComponent:o,disabled:l,thumbIcon:i,formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,...$}=e,f=N($,a),b=f;delete b.size,delete b.color,delete b.radius,delete b.variant;const x={root:T.root,body:T.body,track:T.track,thumb:T.thumb,trackLabel:T.trackLabel,labelWrapper:T.labelWrapper,label:T.label},v=b.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const C=v;x.root=C.root?`${T.root} ${C.root}`:T.root,x.body=C.body?`${T.body} ${C.body}`:T.body,x.track=C.track?`${T.track} ${C.track}`:T.track,x.thumb=C.thumb?`${T.thumb} ${C.thumb}`:T.thumb,x.trackLabel=C.trackLabel?`${T.trackLabel} ${C.trackLabel}`:T.trackLabel,x.labelWrapper=C.labelWrapper?`${T.labelWrapper} ${C.labelWrapper}`:T.labelWrapper,x.label=C.label?`${T.label} ${C.label}`:T.label}const h=b.className,w=h?`${T.root} ${h}`:T.root;if(t&&o){const C=!!(b.checked??b.defaultChecked),O=o,A=s.jsx(O,{...e,checked:C,label:b.label});return c?s.jsx(X,{formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,children:A}):s.jsx(s.Fragment,{children:A})}const y=s.jsxs("div",{className:T.thumbIconWrapper,children:[s.jsx(p.CheckIcon,{className:T.checkIcon}),s.jsx(p.CloseIcon,{className:T.closeIcon})]}),j=s.jsx(p.Switch,{ref:r,className:w,classNames:x,disabled:t||l,thumbIcon:i??y,...f});return c?s.jsx(X,{formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,children:j}):j});Ge.displayName="Switch";Ge.Group=Ve;const tr=n=>s.jsx("div",{...n,children:"Table"}),sr="Tabs-module__root___-VKVI",ar="Tabs-module__list___qRVME",rr="Tabs-module__tab___IdDYc",nr="Tabs-module__panel___08i9c",xe={root:sr,list:ar,tab:rr,panel:nr},Go=u.forwardRef(function(e,r){const{variant:a="default",orientation:t="horizontal",overStyled:o=!1,className:l,...i}=e,c=N(i,o);return s.jsx(p.Tabs,{ref:r,variant:a,orientation:t,className:`${xe.root} ${l||""}`,"data-variant":a,"data-orientation":t,classNames:{list:xe.list,tab:xe.tab,panel:xe.panel},...c})});Go.displayName="Tabs";const qo=u.forwardRef(function(e,r){const{overStyled:a=!1,...t}=e;return s.jsx(p.Tabs.List,{ref:r,...N(t,a)})});qo.displayName="Tabs.List";const Ho=u.forwardRef(function(e,r){const{overStyled:a=!1,...t}=e;return s.jsx(p.Tabs.Tab,{ref:r,...N(t,a)})});Ho.displayName="Tabs.Tab";const Uo=u.forwardRef(function(e,r){const{overStyled:a=!1,...t}=e;return s.jsx(p.Tabs.Panel,{ref:r,...N(t,a)})});Uo.displayName="Tabs.Panel";const lr=Object.assign(Go,{List:qo,Tab:Ho,Panel:Uo}),Zo=u.forwardRef(function({overStyled:e=!1,variant:r="body",...a},t){const o=N(a,e),l=o.className,i=`recursica_brand_typography_${r}`,c=l?`${i} ${l}`:i;return s.jsx(p.Text,{ref:t,className:c,...o})});Zo.displayName="Text";const ir=p.createPolymorphicComponent(Zo),cr="TextArea-module__root___3dyeu",dr="TextArea-module__input___8l36v",ie={root:cr,input:dr},Yo=u.forwardRef(function(e,r){const{overStyled:a=!1,formLayout:t="stacked",labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:$,error:f,required:b,withAsterisk:x,id:v,className:h,style:w,disabled:y,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,value:A,defaultValue:S,...I}=e,z=N(I,a),R=z;delete R.size,delete R.variant,delete R.radius;const P={wrapper:ie.root,input:ie.input},g=R.classNames;if(g&&typeof g=="object"&&!Array.isArray(g)){const k=g;P.wrapper=k.wrapper?`${ie.root} ${k.wrapper}`:ie.root,P.input=k.input?`${ie.input} ${k.input}`:ie.input}return s.jsx(ee,{className:h,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:a,formLayout:t,labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:$,error:f,required:b,withAsterisk:x,id:v,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:A!==void 0?A:S,readOnlyNativeProps:e,activeComponent:s.jsx(p.Textarea,{ref:r,classNames:P,disabled:y,value:A,defaultValue:S,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":f?"true":void 0},...z})})});Yo.displayName="TextArea";const pr="TextField-module__root___2ZYkG",mr="TextField-module__input___RL-My",_r="TextField-module__section___bCIJ0",K={root:pr,input:mr,section:_r},Ko=u.forwardRef(function(e,r){const{overStyled:a=!1,formLayout:t="stacked",labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:$,error:f,required:b,withAsterisk:x,id:v,className:h,style:w,disabled:y,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,value:A,defaultValue:S,...I}=e,z=N(I,a),R=z;delete R.size,delete R.variant,delete R.radius;const P={wrapper:K.root,input:K.input,section:K.section},g=R.classNames;if(g&&typeof g=="object"&&!Array.isArray(g)){const k=g;P.wrapper=k.wrapper?`${K.root} ${k.wrapper}`:K.root,P.input=k.input?`${K.input} ${k.input}`:K.input,P.section=k.section?`${K.section} ${k.section}`:K.section}return s.jsx(ee,{className:h,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:a,formLayout:t,labelSize:o,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:$,error:f,required:b,withAsterisk:x,id:v,readOnly:j,readOnlyComponent:C,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:A!==void 0?A:S,readOnlyNativeProps:e,activeComponent:s.jsx(p.Input,{ref:r,classNames:P,disabled:y,value:A,defaultValue:S,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":f?"true":void 0},...z})})});Ko.displayName="TextField";const ur=n=>s.jsx("div",{...n,children:"TimePicker"}),fr=n=>s.jsx("div",{...n,children:"Timeline"}),Qo=u.forwardRef(function({overStyled:e=!1,order:r=1,...a},t){const o=N(a,e),l=o.className,i=`recursica_brand_typography_h${r}`,c=l?`${i} ${l}`:i;return s.jsx(p.Title,{ref:t,order:r,className:c,...o})});Qo.displayName="Title";const br=n=>s.jsx("div",{...n,children:"Toast"}),yr="Tooltip-module__tooltip___UA7H9",Nr="Tooltip-module__arrow___4zROk",Ke={tooltip:yr,arrow:Nr},Jo=function({overStyled:e=!1,withBeak:r=!0,...a}){const t=N(a,e),o={tooltip:Ke.tooltip,arrow:Ke.arrow},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const m=l;Object.keys(m).forEach(_=>{o[_]?o[_]=`${o[_]} ${m[_]}`:o[_]=m[_]})}const i=t.arrowSize??16,c=t.withArrow,d=r??c;return s.jsx(p.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:d,classNames:o,...t})};Jo.displayName="Tooltip";const qe=Jo;qe.Floating=p.Tooltip.Floating;qe.Group=p.Tooltip.Group;const hr=n=>s.jsx("div",{...n,children:"TransferList"});exports.Accordion=ge;exports.AccordionControl=ve;exports.AccordionItem=Ae;exports.AccordionPanel=we;exports.Avatar=yt;exports.Badge=ht;exports.Breadcrumb=eo;exports.Button=St;exports.Card=It;exports.CardContent=Ie;exports.CardFooter=Le;exports.CardHeader=We;exports.CardSection=Re;exports.Checkbox=Me;exports.CheckboxGroup=ze;exports.Chip=ro;exports.Container=no;exports.DatePicker=ys;exports.Dropdown=lo;exports.EmptyValueRenderer=be;exports.FileInput=vs;exports.FileUpload=ws;exports.Flex=Ps;exports.FormControlLayout=X;exports.Group=co;exports.HoverCard=Fe;exports.Label=ke;exports.Layer=ao;exports.Link=Ls;exports.Loader=fo;exports.Menu=ne;exports.Modal=Gs;exports.NumberInput=Po;exports.Pagination=U;exports.Panel=Z;exports.PanelFooter=Be;exports.Radio=Ee;exports.RadioGroup=De;exports.ReadOnlyBooleanField=Bo;exports.ReadOnlyField=Oe;exports.ReadOnlySwitchField=Fo;exports.ReadOnlyTextField=fe;exports.RecursicaThemeProvider=Jt;exports.SegmentedControl=ja;exports.Slider=Sa;exports.Stack=Eo;exports.Stepper=qa;exports.Switch=Ge;exports.SwitchGroup=Ve;exports.Table=tr;exports.Tabs=lr;exports.Text=ir;exports.TextArea=Yo;exports.TextField=Ko;exports.TimePicker=ur;exports.Timeline=fr;exports.Title=Qo;exports.Toast=br;exports.Tooltip=qe;exports.TransferList=hr;exports.WithReadOnlyWrapper=ee;
2
2
  //# sourceMappingURL=mantine-adapter.cjs.map