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