@recursica/mantine-adapter 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/mantine-adapter.cjs +1 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +678 -676
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Panel/Panel.d.ts +10 -2
- package/package.json +1 -1
- package/src/components/Card/Card.module.css +1 -0
- package/src/components/Card/Card.stories.tsx +48 -58
- package/src/components/Panel/PANEL_IMPLEMENTATION_NOTES.md +3 -3
- package/src/components/Panel/Panel.module.css +11 -0
- package/src/components/Panel/Panel.stories.tsx +12 -1
- package/src/components/Panel/Panel.tsx +12 -2
package/CHANGELOG.md
CHANGED
package/dist/mantine-adapter.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("react"),u=require("@mantine/core"),Ro=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],Wo=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Fe={"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 $(a,t){if(t)return a;const n={...a};for(const s of Ro)s in n&&delete n[s];for(const[s,o]of Object.entries(n))typeof o=="string"&&o.startsWith("rec-")&&Wo.has(s)&&o in Fe&&(n[s]=Fe[o]);return n}const ko="Accordion-module__root___Dem6d",To="Accordion-module__item___7ryVk",Oo="Accordion-module__noDivider___Ni2tT",Io="Accordion-module__control___b4wgX",Lo="Accordion-module__label___Ss7uW",zo="Accordion-module__chevron___i-HVZ",Mo="Accordion-module__iconLeftWrapper___5oLen",Fo="Accordion-module__panel___Wx50w",Bo="Accordion-module__content___PEM9t",U={root:ko,item:To,noDivider:Oo,control:Io,label:Lo,chevron:zo,iconLeftWrapper:Mo,panel:Fo,content:Bo},Ve=function({variant:t="unstyled",overStyled:n=!1,...s}){const o=$(s,n),r={root:U.root,item:U.item,control:U.control,label:U.label,chevron:U.chevron,panel:U.panel,content:U.content},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;Object.keys(d).forEach(c=>{r[c]?r[c]=`${r[c]} ${d[c]}`:r[c]=d[c]})}const i=o.className;return e.jsx(u.Accordion,{variant:t,className:i,classNames:r,...o})};Ve.displayName="Accordion";const Ce=y.forwardRef(function({title:t,leftIcon:n,divider:s=!0,children:o,overStyled:r=!1,...l},i){const d=$(l,r),c=d.className,p=[s?void 0:U.noDivider,c].filter(Boolean).join(" ")||void 0;return e.jsx(u.Accordion.Item,{ref:i,className:p,...d,children:t?e.jsxs(e.Fragment,{children:[e.jsx(be,{leftIcon:n,children:t}),e.jsx(ye,{children:o})]}):o})});Ce.displayName="AccordionItem";const be=y.forwardRef(function({leftIcon:t,children:n,overStyled:s=!1,...o},r){const l=$(o,s),i=l.className;return e.jsx(u.Accordion.Control,{ref:r,className:i,icon:t?e.jsx("span",{className:U.iconLeftWrapper,"aria-hidden":!0,children:t}):void 0,...l,children:n})});be.displayName="AccordionControl";const ye=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx(u.Accordion.Panel,{ref:s,className:r,...o})});ye.displayName="AccordionPanel";const he=Ve;he.Item=Ce;he.Control=be;he.Panel=ye;const Eo="Avatar-module__root___fXu-J",Do="Avatar-module__iconWrapper___ojly2",Go="Avatar-module__textWrapper___zp-jD",Vo="Avatar-module__image___ieqGp",qo="Avatar-module__placeholder___IDW7-",D={root:Eo,iconWrapper:Do,textWrapper:Go,image:Vo,placeholder:qo},qe=y.forwardRef(function({size:t="default",variant:n="solid",icon:s,children:o,src:r,overStyled:l=!1,...i},d){const c={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},m=$(i,l),h=m;let _="text";r?_="image":s&&(_="icon");const f={root:D.root,image:D.image,placeholder:D.placeholder},x=h.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const N=x;f.root=N.root?`${D.root} ${N.root}`:D.root,f.image=N.image?`${D.image} ${N.image}`:D.image,f.placeholder=N.placeholder?`${D.placeholder} ${N.placeholder}`:D.placeholder}const C=h.className;return e.jsx(u.Avatar,{ref:d,className:C,classNames:f,variant:c[n],size:p[t],src:r,"data-variant":n,"data-size":t,"data-style":_,...m,children:s!=null?e.jsx("span",{className:D.iconWrapper,"aria-hidden":!0,children:s}):o!=null?e.jsx("span",{className:D.textWrapper,children:o}):void 0})});qe.displayName="Avatar";const Ho=u.createPolymorphicComponent(qe),Uo="Badge-module__root___5osNT",q={root:Uo},He=y.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...s},o){const r=$(s,n),l={root:q.root,section:q.section,label:q.label},i=r.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${q.root} ${p.root}`:q.root,l.section=p.section??q.section,l.label=p.label??q.label}const d=r.className,c=d?`${q.root} ${d}`:q.root;return e.jsx(u.Badge,{ref:o,variant:"filled","data-variant":t,...r,className:c,classNames:l})});He.displayName="Badge";const Yo=u.createPolymorphicComponent(He),Zo="Breadcrumb-module__root___x-9ln",Ko="Breadcrumb-module__separator___qrUX-",Q={root:Zo,separator:Ko},Ue=y.forwardRef(function({overStyled:t=!1,separator:n=">",...s},o){const r=$({separator:n,...s},t),l={root:Q.root,separator:Q.separator},i=r.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${Q.root} ${p.root}`:Q.root,l.separator=p.separator?`${Q.separator} ${p.separator}`:Q.separator}const d=r.className,c=d?`${Q.root} ${d}`:Q.root;return e.jsx(u.Breadcrumbs,{ref:o,...r,className:c,classNames:l})});Ue.displayName="Breadcrumb";const Qo="Button-module__root___Q2R8-",Xo="Button-module__label___UJ3Zt",Jo="Button-module__labelText___rFV5p",et="Button-module__iconWrapper___uEKPa",ot="Button-module__section___f2mKr",G={root:Qo,label:Xo,labelText:Jo,iconWrapper:et,section:ot};function tt(a){return a==null||a===""?!1:typeof a=="string"?a.trim()!=="":!0}const Ye=y.forwardRef(function({variant:t="solid",size:n="default",icon:s,children:o,overStyled:r=!1,...l},i){const d={solid:"filled",outline:"outline",text:"subtle"},c={default:"md",small:"sm"},p=$(l,r),m=p;delete m.fullWidth;const h=!!s||!!m.leftSection,_=!!m.rightSection,f=(h||_)&&!tt(o);typeof process<"u"&&process.env.NODE_ENV!=="production"&&f&&!m["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:G.root,section:G.section,label:G.label},C=m.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const b=C;x.root=b.root?`${G.root} ${b.root}`:G.root,x.section=b.section??G.section,x.label=b.label??G.label}const N=m.className,w=N?`${G.root} ${N}`:G.root;return e.jsx(u.Button,{ref:i,className:w,classNames:x,variant:d[t],size:c[n],leftSection:s!=null?e.jsx("span",{className:G.iconWrapper,"aria-hidden":!0,children:s}):void 0,"data-variant":t,"data-size":n,...f?{"data-icon-only":""}:{},...p,children:e.jsx("span",{className:G.labelText,children:o})})});Ye.displayName="Button";const rt=u.createPolymorphicComponent(Ye),st="Card-module__root___c9KvZ",at="Card-module__header___PTXf2",nt="Card-module__footer___Mu-JC",lt="Card-module__section___BRT8H",it="Card-module__content___oFIQa",Y={root:st,header:at,footer:nt,section:lt,content:it},Ze=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r={root:Y.root},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;Object.keys(d).forEach(c=>{r[c]?r[c]=`${r[c]} ${d[c]}`:r[c]=d[c]})}const i=o.className;return e.jsx(u.Card,{ref:s,className:i,classNames:r,...o})});Ze.displayName="Card";const we=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx(u.Card.Section,{ref:s,className:r?`${Y.section} ${r}`:Y.section,...o})});we.displayName="CardSection";const je=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx(u.Card.Section,{ref:s,className:r?`${Y.header} ${r}`:Y.header,...o})});je.displayName="CardHeader";const ge=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx(u.Card.Section,{ref:s,className:r?`${Y.footer} ${r}`:Y.footer,...o})});ge.displayName="CardFooter";const Pe=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx("div",{ref:s,className:r?`${Y.content} ${r}`:Y.content,...o})});Pe.displayName="CardContent";const Ke=u.createPolymorphicComponent(Ze),Ne=Ke;Ne.Section=we;Ne.Header=je;Ne.Footer=ge;Ne.Content=Pe;const ct=Ke,dt="Label-module__root___e6HXZ",pt="Label-module__labelText___rieFR",mt="Label-module__required___Ggrzc",ut="Label-module__optionalText___Y2yun",_t="Label-module__actionAreaWrapper___ELoZK",ft="Label-module__editIconWrapper___NG2xW",E={root:dt,labelText:pt,required:mt,optionalText:ut,actionAreaWrapper:_t,editIconWrapper:ft},Ae=y.forwardRef(function({labelSize:t="default",labelAlignment:n,required:s=!1,labelOptionalText:o,labelWithEditIcon:r,labelActionArea:l,onLabelEditClick:i,children:d,overStyled:c=!1,...p},m){const h=n||"left";let _;s||(o===!0?_="optional":o&&(_=o));const f=$(p,c),x=f,C={label:E.root,required:E.required},N=x.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const P=N;C.label=P.label?`${E.root} ${P.label}`:E.root,C.required=P.required?`${E.required} ${P.required}`:E.required}const w=x.className,b=w?`${E.root} ${w}`:E.root;return e.jsxs(u.Input.Label,{ref:m,className:b,classNames:C,"data-size":t,"data-alignment":h,required:s&&!r,...f,children:[e.jsx("span",{className:E.labelText,children:d}),_&&e.jsx("span",{className:E.optionalText,children:typeof _=="string"?`(${_})`:_}),l?e.jsx("span",{className:E.actionAreaWrapper,children:l}):r?e.jsx("button",{type:"button",className:E.editIconWrapper,"data-replaces-asterisk":s?"true":void 0,onClick:i,"aria-label":"Edit",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});Ae.displayName="Label";const bt="FormControlLayout-module__root___yNDhZ",yt="FormControlLayout-module__leftSection___GBM1r",ht="FormControlLayout-module__rightSection___bcL4v",ue={root:bt,leftSection:yt,rightSection:ht},Z=y.forwardRef(function({formLayout:t="stacked",labelSize:n="default",controlMaxWidth:s,controlMinWidth:o,leftSection:r,children:l,className:i,style:d,...c},p){const m=i?`${ue.root} ${i}`:ue.root,_=r!=null||t==="side-by-side";return e.jsxs("div",{ref:p,className:m,"data-form-layout":t,style:{...d,...s?{"--form-control-max-width":s}:{},...o?{"--form-control-min-width":o}:{}},...c,children:[_&&e.jsx("div",{className:ue.leftSection,"data-size":n,children:r}),e.jsx("div",{className:ue.rightSection,children:l})]})});Z.displayName="FormControlLayout";const Nt="AssistiveElement-module__root___WhQ43",xt="AssistiveElement-module__textWrapper___sfy5E",$t="AssistiveElement-module__iconWrapper___gObRF",$e={root:Nt,textWrapper:xt,iconWrapper:$t},vt=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4"}),e.jsx("path",{d:"M12 8h.01"})]}),Ct=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),e.jsx("path",{d:"M12 9v4"}),e.jsx("path",{d:"M12 17h.01"})]}),ve=y.forwardRef(function({assistiveVariant:t="help",assistiveWithIcon:n=!0,children:s,className:o,overStyled:r=!1,...l},i){const c=$(l,r),p=$e.root,m=o?`${p} ${o}`:p,h=t==="error"?Ct:vt;return e.jsxs("div",{ref:i,className:m,"data-variant":t,style:c.style,...c,children:[n&&e.jsx("span",{className:$e.iconWrapper,children:e.jsx(h,{})}),e.jsx("span",{className:$e.textWrapper,children:s})]})});ve.displayName="AssistiveElement";const wt="FormControlWrapper-module__inputSection___HenXk",Be={inputSection:wt},_e=y.forwardRef(function({formLayout:t,labelSize:n,labelAlignment:s,labelOptionalText:o,labelWithEditIcon:r,labelActionArea:l,onLabelEditClick:i,label:d,description:c,assistiveText:p,assistiveWithIcon:m=!0,controlMaxWidth:h,controlMinWidth:_,error:f,required:x,withAsterisk:C,id:N,children:w,className:b,overStyled:P=!1,labelElement:v,...L},R){const A=y.useId(),O=N||`recursica-fc-${A}`,z=p||c,W=z?`${O}-assistive`:void 0,g=f?`${O}-error`:void 0,I=$(L,P),X=b||I.className,me=Be.root,B=X?`${me} ${X}`:me,Ao=y.isValidElement(w)?y.cloneElement(w,{...z&&!w.props["aria-describedby"]?{"aria-describedby":W}:{},...f&&!w.props["aria-errormessage"]?{"aria-errormessage":g}:{}}):w,So=d?e.jsx(Ae,{id:O,labelAlignment:s,labelOptionalText:o,labelWithEditIcon:r,labelActionArea:l,onLabelEditClick:i,required:C??x,...v==="div"?{as:"div"}:{},children:d}):void 0;return e.jsx(Z,{ref:R,className:B,formLayout:t,labelSize:n,controlMaxWidth:h,controlMinWidth:_,leftSection:So,...I,children:e.jsxs("div",{className:Be.inputSection,children:[Ao,f&&e.jsx(ve,{id:g,assistiveVariant:"error",assistiveWithIcon:m,children:f}),!f&&z&&e.jsx(ve,{id:W,assistiveVariant:"help",assistiveWithIcon:m,children:z})]})})});_e.displayName="FormControlWrapper";const jt="_root_1qhn7_3",gt="_contents_1qhn7_18",te={root:jt,contents:gt},Qe=y.forwardRef(function({layer:a,contentsOnly:t,children:n,className:s,style:o,...r},l){const i=t?s?`${te.root} ${te.contents} ${s}`:`${te.root} ${te.contents}`:s?`${te.root} ${s}`:te.root;return e.jsx("div",{ref:l,className:i,style:o,...t?{}:{"data-recursica-layer":String(a)},...r,children:n})});Qe.displayName="Layer";const pe=({emptyText:a="N/A"})=>e.jsx(y.Fragment,{children:a});pe.displayName="EmptyValueRenderer";pe.check=a=>a==null||a===""||Array.isArray(a)&&a.length===0;const Ee="data-recursica-theme";function Pt({children:a,theme:t="light"}){return y.useEffect(()=>{const n=document.documentElement;return n.setAttribute(Ee,t),()=>{n.removeAttribute(Ee)}},[t]),e.jsx(e.Fragment,{children:a})}const At="ReadOnlyField-module__textField___qKn25",fe={textField:At},de=({value:a,overStyled:t=!1,...n})=>{const s=$(n,t),o=s.className;return e.jsx(u.Box,{component:"p",className:o?`${fe.textField} ${o}`:fe.textField,...s,children:a!=null?y.isValidElement(a)?a:Array.isArray(a)?a.join(", "):String(a):""})};de.displayName="ReadOnlyTextField";const Se=y.forwardRef(function({value:t,type:n="text",emptyValueComponent:s,overStyled:o=!1,...r},l){let i=null;const d=$(r,o),c=s||pe,m=(c.check?c.check(t):pe.check(t))?e.jsx(c,{value:t}):t;switch(n){case"boolean":i=e.jsx(de,{value:t===!0?"True":t===!1?"False":m,overStyled:o});break;case"switch":i=e.jsx(de,{value:t===!0?"On":t===!1?"Off":m,overStyled:o});break;case"text":default:i=e.jsx(de,{value:m,overStyled:o});break}return e.jsx(_e,{ref:l,overStyled:o,...d,children:i})});Se.displayName="ReadOnlyField";const K=y.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:s="text",readOnlyValue:o,readOnlyNativeProps:r,emptyValueComponent:l,activeComponent:i,overStyled:d,onLabelEditClick:c,...p},m){if(t){if(n){const h=n;return e.jsx(_e,{ref:m,...p,onLabelEditClick:c,overStyled:d,children:e.jsx(h,{...r})})}return e.jsx(Se,{ref:m,type:s,value:o,emptyValueComponent:l,onLabelEditClick:c,overStyled:d,...p})}return e.jsx(_e,{ref:m,...p,onLabelEditClick:c,overStyled:d,children:i})});K.displayName="WithReadOnlyWrapper";const St="Checkbox-module__groupRoot___cBS0o",Rt="Checkbox-module__root___mY3qk",Wt="Checkbox-module__body___5yC7q",kt="Checkbox-module__inner___rTke4",Tt="Checkbox-module__input___2kt-h",Ot="Checkbox-module__icon___-O7i6",It="Checkbox-module__labelWrapper___GpZkr",Lt="Checkbox-module__label___cwRtI",k={groupRoot:St,root:Rt,body:Wt,inner:kt,input:Tt,icon:Ot,labelWrapper:It,label:Lt},Re=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:o="stacked",labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,className:w,style:b,children:P,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,value:A,defaultValue:O,...z}=t,W=$(z,s),g=W;return delete g.size,e.jsx(K,{className:w,style:b,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:o,labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,readOnly:v&&!!L,readOnlyComponent:L,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:t,activeComponent:e.jsx(u.Checkbox.Group,{ref:n,...W,disabled:v||g.disabled,value:A,defaultValue:O,children:e.jsx("div",{className:k.groupRoot,"data-layout":o,children:y.Children.map(P,j=>y.isValidElement(j)?y.cloneElement(j,{disabled:v||j.props.disabled}):j)})})})});Re.displayName="CheckboxGroup";const We=y.forwardRef(function(t,n){const{overStyled:s=!1,readOnly:o,readOnlyComponent:r,disabled:l,formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,...m}=t,h=$(m,s),_=h;delete _.size,delete _.color,delete _.radius,delete _.variant,delete _.iconColor;const f={root:k.root,body:k.body,inner:k.inner,input:k.input,icon:k.icon,labelWrapper:k.labelWrapper,label:k.label},x=_.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const b=x;f.root=b.root?`${k.root} ${b.root}`:k.root,f.body=b.body?`${k.body} ${b.body}`:k.body,f.inner=b.inner?`${k.inner} ${b.inner}`:k.inner,f.input=b.input?`${k.input} ${b.input}`:k.input,f.icon=b.icon?`${k.icon} ${b.icon}`:k.icon,f.labelWrapper=b.labelWrapper?`${k.labelWrapper} ${b.labelWrapper}`:k.labelWrapper,f.label=b.label?`${k.label} ${b.label}`:k.label}const C=_.className,N=C?`${k.root} ${C}`:k.root;if(o&&r){const b=!!(_.checked??_.defaultChecked),P=r,v=e.jsx(P,{...t,checked:b,label:_.label});return i?e.jsx(Z,{formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:v}):e.jsx(e.Fragment,{children:v})}const w=e.jsx(u.Checkbox,{ref:n,className:N,classNames:f,disabled:o||l,...h});return i?e.jsx(Z,{formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:w}):w});We.displayName="Checkbox";We.Group=Re;const zt="Chip-module__root___f5pFk",Mt="Chip-module__label___Ov9pg",Ft="Chip-module__mantineIconWrapper___KLSz6",Bt="Chip-module__innerWrapper___EnrTF",Et="Chip-module__children___zbRAR",Dt="Chip-module__leadingIcon___JBtjQ",Gt="Chip-module__removeIcon___pVju-",M={root:zt,label:Mt,mantineIconWrapper:Ft,innerWrapper:Bt,children:Et,leadingIcon:Dt,removeIcon:Gt};function Vt(a){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...a,children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Xe=y.forwardRef(function({error:t=!1,icon:n,onRemove:s,removeLabel:o="Remove",children:r,overStyled:l=!1,...i},d){const c=$(i,l),p=c,m={root:M.root,label:M.label,input:M.input,iconWrapper:M.mantineIconWrapper,checkIcon:M.checkIcon},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const N=h;m.root=N.root?`${M.root} ${N.root}`:M.root,m.label=N.label?`${M.label} ${N.label}`:M.label}const _=p.className,f=_?`${M.root} ${_}`:M.root,x=t?"":void 0,C=!r&&(!!n||!!s);return e.jsx(u.Chip,{ref:d,className:f,classNames:m,...x!==void 0?{"data-error":""}:{},...C?{"data-icon-only":""}:{},...c,children:e.jsxs("span",{className:M.innerWrapper,children:[n&&e.jsx("span",{className:M.leadingIcon,"aria-hidden":!0,children:n}),e.jsx("span",{className:M.children,children:r}),s&&e.jsx("span",{role:"button",className:M.removeIcon,onClick:N=>{N.preventDefault(),N.stopPropagation(),s(N)},"aria-label":o,onKeyDown:N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),N.stopPropagation(),s(N))},tabIndex:0,children:e.jsx(Vt,{})})]})})});Xe.displayName="Chip";const qt="Container-module__root___UVssr",se={root:qt},Je=y.forwardRef(function({children:t,size:n,overStyled:s=!1,...o},r){const l=$(o,s),i=l,d={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},c=typeof n=="string"&&d[n]?d[n]:n,p={root:se.root},m=i.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const f=m;p.root=f.root?`${se.root} ${f.root}`:se.root}const h=i.className,_=h?`${se.root} ${h}`:se.root;return e.jsx(u.Container,{ref:r,size:c,className:_,classNames:p,...l,children:t})});Je.displayName="Container";const Ht=a=>e.jsx("div",{...a,children:"DatePicker"}),Ut="Dropdown-module__root___uVyL0",Yt="Dropdown-module__input___dK4dN",Zt="Dropdown-module__section___j3MRB",Kt="Dropdown-module__dropdown___gG-Sw",Qt="Dropdown-module__option___nAGU-",F={root:Ut,input:Yt,section:Zt,dropdown:Kt,option:Qt},eo=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:o="stacked",containerWidth:r,labelSize:l,labelAlignment:i,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:p,label:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,className:w,style:b,disabled:P,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,value:A,defaultValue:O,data:z,...W}=t,g=$(W,s),j=g;delete j.size,delete j.variant,delete j.radius;const I={wrapper:F.root,input:F.input,section:F.section,dropdown:F.dropdown,option:F.option},X=j.classNames;if(X&&typeof X=="object"&&!Array.isArray(X)){const B=X;I.wrapper=B.wrapper?`${F.root} ${B.wrapper}`:F.root,I.input=B.input?`${F.input} ${B.input}`:F.input,I.section=B.section?`${F.section} ${B.section}`:F.section,I.dropdown=B.dropdown?`${F.dropdown} ${B.dropdown}`:F.dropdown,I.option=B.option?`${F.option} ${B.option}`:F.option}const me={...b||{},width:r||"100%"};return e.jsx(K,{className:w,style:me,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:s,formLayout:o,labelSize:l,labelAlignment:i,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:p,label:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):O?String(O):void 0,readOnlyNativeProps:t,activeComponent:e.jsx(u.Select,{ref:n,classNames:I,disabled:P,value:A,defaultValue:O,data:z||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":P?"true":void 0,"data-error":f?"true":void 0},...g})})});eo.displayName="Dropdown";const Xt=a=>e.jsx("div",{...a,children:"FileInput"}),Jt=a=>e.jsx("div",{...a,children:"FileUpload"}),er="Flex-module__root___yYser",ae={root:er},oo=y.forwardRef(function({children:t,overStyled:n=!1,gap:s="rec-default",...o},r){const l=$({...o,gap:s},n),i=l,d={root:ae.root},c=i.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const h=c;d.root=h.root?`${ae.root} ${h.root}`:ae.root}const p=i.className,m=p?`${ae.root} ${p}`:ae.root;return e.jsx(u.Flex,{ref:r,className:m,classNames:d,...l,children:t})});oo.displayName="Flex";const or=u.createPolymorphicComponent(oo),tr="Group-module__root___ftO64",ne={root:tr},to=y.forwardRef(function({children:t,overStyled:n=!1,gap:s="rec-default",...o},r){const l=$({...o,gap:s},n),i=l,d={root:ne.root},c=i.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const h=c;d.root=h.root?`${ne.root} ${h.root}`:ne.root}const p=i.className,m=p?`${ne.root} ${p}`:ne.root;return e.jsx(u.Group,{ref:r,className:m,classNames:d,...l,children:t})});to.displayName="Group";const rr="HoverCard-module__dropdown___FBPFW",sr="HoverCard-module__arrow___S9AkE",De={dropdown:rr,arrow:sr},ro=function({overStyled:t=!1,withBeak:n=!0,...s}){const o=$(s,t),r={dropdown:De.dropdown,arrow:De.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{r[m]?r[m]=`${r[m]} ${p[m]}`:r[m]=p[m]})}const i=o.arrowSize??16,d=o.withArrow,c=n??d;return e.jsx(u.HoverCard,{position:"top",arrowSize:i,withArrow:c,classNames:r,...o})};ro.displayName="HoverCard";const so=function(t){return e.jsx(u.HoverCard.Target,{...t})};so.displayName="HoverCardTarget";const ao=function({overStyled:t=!1,...n}){const s=$(n,t),o=s.className;return e.jsx(u.HoverCard.Dropdown,{className:o,...s})};ao.displayName="HoverCardDropdown";const ke=ro;ke.Target=so;ke.Dropdown=ao;const ar=a=>e.jsx("div",{...a,children:"Link"}),nr="Loader-module__root___6iYOP",le={root:nr},no=y.forwardRef(function({variant:t="oval",size:n="default",overStyled:s=!1,...o},r){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",d=$(o,s),c={root:le.root},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const _=p;c.root=_.root?`${le.root} ${_.root}`:le.root}const m=d.className,h=m?`${le.root} ${m}`:le.root;return e.jsx(u.Loader,{ref:r,type:t,"data-variant":t,"data-size":i,...d,className:h,classNames:c})});no.displayName="Loader";const lr="Menu-module__dropdown___j4xuA",ir="Menu-module__item___NMXha",cr="Menu-module__itemLabel___zvcqC",dr="Menu-module__itemSection___pRIcn",pr="Menu-module__divider___wPiNq",mr="Menu-module__label___4FBGa",ur="Menu-module__chevron___hEEiy",J={dropdown:lr,item:ir,itemLabel:cr,itemSection:dr,divider:pr,label:mr,chevron:ur},lo=function({overStyled:t=!1,...n}){const s=$(n,t),o={dropdown:J.dropdown,item:J.item,itemLabel:J.itemLabel,itemSection:J.itemSection,divider:J.divider,label:J.label,chevron:J.chevron},r=s.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const l=r;Object.keys(l).forEach(i=>{o[i]?o[i]=`${o[i]} ${l[i]}`:o[i]=l[i]})}return e.jsx(u.Menu,{classNames:o,...s})};lo.displayName="Menu";const io=function(t){return e.jsx(u.Menu.Target,{...t})};io.displayName="MenuTarget";const co=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx(u.Menu.Dropdown,{ref:s,className:r,...o})});co.displayName="MenuDropdown";const po=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o;t||delete r.color;const l=r.className;return e.jsx(u.Menu.Item,{ref:s,className:l,...o})});po.displayName="MenuItem";const _r=u.createPolymorphicComponent(po),mo=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx(u.Menu.Divider,{ref:s,className:r,...o})});mo.displayName="MenuDivider";const uo=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx(u.Menu.Label,{ref:s,className:r,...o})});uo.displayName="MenuLabel";const _o=function(t){return e.jsx(u.Menu.Sub,{...t})};_o.displayName="MenuSub";const fo=function(t){return e.jsx(u.Menu.Sub.Target,{...t})};fo.displayName="MenuSubTarget";const bo=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o;t||delete r.color;const l=r.className;return e.jsx(u.Menu.Sub.Item,{ref:s,className:l,...o})});bo.displayName="MenuSubItem";const fr=u.createPolymorphicComponent(bo),yo=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className;return e.jsx(u.Menu.Sub.Dropdown,{ref:s,className:r,...o})});yo.displayName="MenuSubDropdown";const xe=_o;xe.Target=fo;xe.Item=fr;xe.Dropdown=yo;const oe=lo;oe.Target=io;oe.Dropdown=co;oe.Item=_r;oe.Divider=mo;oe.Label=uo;oe.Sub=xe;const br=a=>e.jsx("div",{...a,children:"Modal"}),yr="NumberInput-module__root___C6rAn",hr="NumberInput-module__input___Ss8p7",Nr="NumberInput-module__section___MijP0",xr="NumberInput-module__controls___8UfQ2",$r="NumberInput-module__control___Qre9-",ie={root:yr,input:hr,section:Nr,controls:xr,control:$r},ho=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:o="stacked",labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,className:N,style:w,disabled:b,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,value:R,defaultValue:A,hideControls:O=!1,...z}=t,W=$(z,s),g=W;delete g.size,delete g.variant,delete g.radius;const j={wrapper:ie.root,input:ie.input,section:ie.section,controls:ie.controls,control:ie.control};return e.jsx(K,{className:N,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:s,formLayout:o,labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:R!==void 0?R==null?void 0:R.toString():A==null?void 0:A.toString(),readOnlyNativeProps:t,activeComponent:e.jsx(u.NumberInput,{ref:n,classNames:j,disabled:b,value:R,defaultValue:A,hideControls:O,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":b?"true":void 0,"data-error":_?"true":void 0,"data-with-left-section":g.leftSection?"true":void 0,"data-with-right-section":g.rightSection||!O?"true":void 0},...W})})});ho.displayName="NumberInput";const vr=a=>e.jsx("div",{...a,children:"Pagination"}),Cr="Panel-module__content___wdGo-",wr="Panel-module__inner___ruA2b",jr="Panel-module__header___o7SiC",gr="Panel-module__title___181OP",Pr="Panel-module__body___SEC3T",Ar="Panel-module__footer___t6-hz",ee={content:Cr,inner:wr,header:jr,title:gr,body:Pr,footer:Ar},No=function({overStyled:t=!1,position:n="right",keepMounted:s=!0,...o}){const r=$(o,t),l={content:ee.content,header:ee.header,title:ee.title,body:ee.body,inner:ee.inner},i=r.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(c=>{l[c]?l[c]=`${l[c]} ${d[c]}`:l[c]=d[c]})}return e.jsx(u.Drawer,{position:n,keepMounted:s,closeOnClickOutside:o.closeOnClickOutside??!!o.opened,...r,classNames:l})};No.displayName="Panel";const Te=y.forwardRef(function({overStyled:t=!1,...n},s){const o=$(n,t),r=o.className,l=r?`${ee.footer} ${r}`:ee.footer;return e.jsx("div",{ref:s,className:l,...o})});Te.displayName="PanelFooter";const V=No;V.Root=u.Drawer.Root;V.Overlay=u.Drawer.Overlay;V.Content=u.Drawer.Content;V.Header=u.Drawer.Header;V.Title=u.Drawer.Title;V.CloseButton=u.Drawer.CloseButton;V.Body=u.Drawer.Body;V.Stack=u.Drawer.Stack;V.Footer=Te;const Sr=a=>e.jsx("div",{...a,children:"Popover"}),Rr="Radio-module__groupRoot___bfUii",Wr="Radio-module__root___kAjTD",kr="Radio-module__body___q2Wpj",Tr="Radio-module__inner___QaTBB",Or="Radio-module__radio___MfgN-",Ir="Radio-module__icon___DWznm",Lr="Radio-module__labelWrapper___dB0Gi",zr="Radio-module__label___vAFIP",T={groupRoot:Rr,root:Wr,body:kr,inner:Tr,radio:Or,icon:Ir,labelWrapper:Lr,label:zr},Oe=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:o="stacked",labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,className:w,style:b,children:P,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,value:A,defaultValue:O,...z}=t,W=$(z,s),g=W;return delete g.size,e.jsx(K,{className:w,style:b,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:o,labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,readOnly:v&&!!L,readOnlyComponent:L,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:t,activeComponent:e.jsx(u.Radio.Group,{ref:n,...W,disabled:v||g.disabled,value:A,defaultValue:O,children:e.jsx("div",{className:T.groupRoot,"data-layout":o,children:y.Children.map(P,j=>y.isValidElement(j)?y.cloneElement(j,{disabled:v||j.props.disabled}):j)})})})});Oe.displayName="RadioGroup";const Mr=({className:a,style:t})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:a,style:t,children:e.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Ie=y.forwardRef(function(t,n){const{overStyled:s=!1,readOnly:o,readOnlyComponent:r,disabled:l,formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,...m}=t,h=$(m,s),_=h;delete _.size,delete _.color,delete _.radius,delete _.variant,delete _.iconColor;const f={root:T.root,body:T.body,inner:T.inner,radio:T.radio,icon:T.icon,labelWrapper:T.labelWrapper,label:T.label},x=_.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const b=x;f.root=b.root?`${T.root} ${b.root}`:T.root,f.body=b.body?`${T.body} ${b.body}`:T.body,f.inner=b.inner?`${T.inner} ${b.inner}`:T.inner,f.radio=b.radio?`${T.radio} ${b.radio}`:T.radio,f.icon=b.icon?`${T.icon} ${b.icon}`:T.icon,f.labelWrapper=b.labelWrapper?`${T.labelWrapper} ${b.labelWrapper}`:T.labelWrapper,f.label=b.label?`${T.label} ${b.label}`:T.label}const C=_.className,N=C?`${T.root} ${C}`:T.root;if(o&&r){const b=!!(_.checked??_.defaultChecked),P=r,v=e.jsx(P,{...t,checked:b,label:_.label});return i?e.jsx(Z,{formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:v}):e.jsx(e.Fragment,{children:v})}const w=e.jsx(u.Radio,{ref:n,icon:Mr,className:N,classNames:f,disabled:o||l,...h});return i?e.jsx(Z,{formLayout:i,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:w}):w});Ie.displayName="Radio";Ie.Group=Oe;const xo=({checked:a,label:t})=>e.jsxs(u.Box,{component:"span",className:fe.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[t&&e.jsxs("span",{style:{fontWeight:500},children:[t,":"]}),e.jsx("span",{children:a?"On":"Off"})]});xo.displayName="ReadOnlySwitchField";const $o=({checked:a,label:t})=>e.jsxs(u.Box,{component:"span",className:fe.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[t&&e.jsxs("span",{style:{fontWeight:500},children:[t,":"]}),e.jsx("span",{children:a?"True":"False"})]});$o.displayName="ReadOnlyBooleanField";const Fr=a=>e.jsx("div",{...a,children:"Search"}),Br=a=>e.jsx("div",{...a,children:"SegmentedControl"}),Er=a=>e.jsx("div",{...a,children:"Slider"}),Dr="Stack-module__root___NUN-x",ce={root:Dr},vo=y.forwardRef(function({children:t,overStyled:n=!1,gap:s="rec-default",...o},r){const l=$({...o,gap:s},n),i=l,d={root:ce.root},c=i.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const h=c;d.root=h.root?`${ce.root} ${h.root}`:ce.root}const p=i.className,m=p?`${ce.root} ${p}`:ce.root;return e.jsx(u.Stack,{ref:r,className:m,classNames:d,...l,children:t})});vo.displayName="Stack";const Gr=a=>e.jsx("div",{...a,children:"Stepper"}),Vr="Switch-module__root___Y5Ydi",qr="Switch-module__body___Sw9Wr",Hr="Switch-module__track___7ObdZ",Ur="Switch-module__thumb___-FTeK",Yr="Switch-module__labelWrapper___YSOwx",Zr="Switch-module__label___LrH7V",Kr="Switch-module__thumbIconWrapper___sCY-1",Qr="Switch-module__checkIcon___ZBAQN",Xr="Switch-module__closeIcon___bLLGw",Jr="Switch-module__groupRoot___-Uepi",S={root:Vr,body:qr,track:Hr,thumb:Ur,labelWrapper:Yr,label:Zr,thumbIconWrapper:Kr,checkIcon:Qr,closeIcon:Xr,groupRoot:Jr},Le=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:o="stacked",labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,className:w,style:b,children:P,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,value:A,defaultValue:O,...z}=t,W=$(z,s),g=W;return delete g.size,e.jsx(K,{className:w,style:b,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:o,labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,readOnly:v&&!!L,readOnlyComponent:L,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:t,activeComponent:e.jsx(u.Switch.Group,{ref:n,...W,disabled:v||g.disabled,value:A,defaultValue:O,children:e.jsx("div",{className:S.groupRoot,children:y.Children.map(P,j=>y.isValidElement(j)?y.cloneElement(j,{disabled:v||j.props.disabled}):j)})})})});Le.displayName="SwitchGroup";const ze=y.forwardRef(function(t,n){const{overStyled:s=!1,readOnly:o,readOnlyComponent:r,disabled:l,thumbIcon:i,formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:m,...h}=t,_=$(h,s),f=_;delete f.size,delete f.color,delete f.radius,delete f.variant;const x={root:S.root,body:S.body,track:S.track,thumb:S.thumb,trackLabel:S.trackLabel,labelWrapper:S.labelWrapper,label:S.label},C=f.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const v=C;x.root=v.root?`${S.root} ${v.root}`:S.root,x.body=v.body?`${S.body} ${v.body}`:S.body,x.track=v.track?`${S.track} ${v.track}`:S.track,x.thumb=v.thumb?`${S.thumb} ${v.thumb}`:S.thumb,x.trackLabel=v.trackLabel?`${S.trackLabel} ${v.trackLabel}`:S.trackLabel,x.labelWrapper=v.labelWrapper?`${S.labelWrapper} ${v.labelWrapper}`:S.labelWrapper,x.label=v.label?`${S.label} ${v.label}`:S.label}const N=f.className,w=N?`${S.root} ${N}`:S.root;if(o&&r){const v=!!(f.checked??f.defaultChecked),L=r,R=e.jsx(L,{...t,checked:v,label:f.label});return d?e.jsx(Z,{formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:m,children:R}):e.jsx(e.Fragment,{children:R})}const b=e.jsxs("div",{className:S.thumbIconWrapper,children:[e.jsx(u.CheckIcon,{className:S.checkIcon}),e.jsx(u.CloseIcon,{className:S.closeIcon})]}),P=e.jsx(u.Switch,{ref:n,className:w,classNames:x,disabled:o||l,thumbIcon:i??b,..._});return d?e.jsx(Z,{formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:m,children:P}):P});ze.displayName="Switch";ze.Group=Le;const es=a=>e.jsx("div",{...a,children:"Table"}),os=a=>e.jsx("div",{...a,children:"Tabs"}),Co=y.forwardRef(function({overStyled:t=!1,variant:n="body",...s},o){const r=$(s,t),l=r.className,i=`recursica_brand_typography_${n}`,d=l?`${i} ${l}`:i;return e.jsx(u.Text,{ref:o,className:d,...r})});Co.displayName="Text";const ts=u.createPolymorphicComponent(Co),rs="TextArea-module__root___3dyeu",ss="TextArea-module__input___8l36v",re={root:rs,input:ss},wo=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:o="stacked",labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,className:N,style:w,disabled:b,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,value:R,defaultValue:A,...O}=t,z=$(O,s),W=z;delete W.size,delete W.variant,delete W.radius;const g={wrapper:re.root,input:re.input},j=W.classNames;if(j&&typeof j=="object"&&!Array.isArray(j)){const I=j;g.wrapper=I.wrapper?`${re.root} ${I.wrapper}`:re.root,g.input=I.input?`${re.input} ${I.input}`:re.input}return e.jsx(K,{className:N,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:s,formLayout:o,labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:R!==void 0?R:A,readOnlyNativeProps:t,activeComponent:e.jsx(u.Textarea,{ref:n,classNames:g,disabled:b,value:R,defaultValue:A,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":b?"true":void 0,"data-error":_?"true":void 0},...z})})});wo.displayName="TextArea";const as="TextField-module__root___2ZYkG",ns="TextField-module__input___RL-My",ls="TextField-module__section___bCIJ0",H={root:as,input:ns,section:ls},jo=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:o="stacked",labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,className:N,style:w,disabled:b,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,value:R,defaultValue:A,...O}=t,z=$(O,s),W=z;delete W.size,delete W.variant,delete W.radius;const g={wrapper:H.root,input:H.input,section:H.section},j=W.classNames;if(j&&typeof j=="object"&&!Array.isArray(j)){const I=j;g.wrapper=I.wrapper?`${H.root} ${I.wrapper}`:H.root,g.input=I.input?`${H.input} ${I.input}`:H.input,g.section=I.section?`${H.section} ${I.section}`:H.section}return e.jsx(K,{className:N,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:s,formLayout:o,labelSize:r,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:R!==void 0?R:A,readOnlyNativeProps:t,activeComponent:e.jsx(u.Input,{ref:n,classNames:g,disabled:b,value:R,defaultValue:A,wrapperProps:{"data-disabled":b?"true":void 0,"data-error":_?"true":void 0},...z})})});jo.displayName="TextField";const is=a=>e.jsx("div",{...a,children:"TimePicker"}),cs=a=>e.jsx("div",{...a,children:"Timeline"}),go=y.forwardRef(function({overStyled:t=!1,order:n=1,...s},o){const r=$(s,t),l=r.className,i=`recursica_brand_typography_h${n}`,d=l?`${i} ${l}`:i;return e.jsx(u.Title,{ref:o,order:n,className:d,...r})});go.displayName="Title";const ds=a=>e.jsx("div",{...a,children:"Toast"}),ps="Tooltip-module__tooltip___UA7H9",ms="Tooltip-module__arrow___4zROk",Ge={tooltip:ps,arrow:ms},Po=function({overStyled:t=!1,withBeak:n=!0,...s}){const o=$(s,t),r={tooltip:Ge.tooltip,arrow:Ge.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{r[m]?r[m]=`${r[m]} ${p[m]}`:r[m]=p[m]})}const i=o.arrowSize??16,d=o.withArrow,c=n??d;return e.jsx(u.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:c,classNames:r,...o})};Po.displayName="Tooltip";const Me=Po;Me.Floating=u.Tooltip.Floating;Me.Group=u.Tooltip.Group;const us=a=>e.jsx("div",{...a,children:"TransferList"});exports.Accordion=he;exports.AccordionControl=be;exports.AccordionItem=Ce;exports.AccordionPanel=ye;exports.Avatar=Ho;exports.Badge=Yo;exports.Breadcrumb=Ue;exports.Button=rt;exports.Card=ct;exports.CardContent=Pe;exports.CardFooter=ge;exports.CardHeader=je;exports.CardSection=we;exports.Checkbox=We;exports.CheckboxGroup=Re;exports.Chip=Xe;exports.Container=Je;exports.DatePicker=Ht;exports.Dropdown=eo;exports.EmptyValueRenderer=pe;exports.FileInput=Xt;exports.FileUpload=Jt;exports.Flex=or;exports.FormControlLayout=Z;exports.Group=to;exports.HoverCard=ke;exports.Label=Ae;exports.Layer=Qe;exports.Link=ar;exports.Loader=no;exports.Menu=oe;exports.Modal=br;exports.NumberInput=ho;exports.Pagination=vr;exports.Panel=V;exports.PanelFooter=Te;exports.Popover=Sr;exports.Radio=Ie;exports.RadioGroup=Oe;exports.ReadOnlyBooleanField=$o;exports.ReadOnlyField=Se;exports.ReadOnlySwitchField=xo;exports.ReadOnlyTextField=de;exports.RecursicaThemeProvider=Pt;exports.Search=Fr;exports.SegmentedControl=Br;exports.Slider=Er;exports.Stack=vo;exports.Stepper=Gr;exports.Switch=ze;exports.SwitchGroup=Le;exports.Table=es;exports.Tabs=os;exports.Text=ts;exports.TextArea=wo;exports.TextField=jo;exports.TimePicker=is;exports.Timeline=cs;exports.Title=go;exports.Toast=ds;exports.Tooltip=Me;exports.TransferList=us;exports.WithReadOnlyWrapper=K;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("react"),u=require("@mantine/core"),Ro=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],Wo=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Fe={"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 $(a,o){if(o)return a;const n={...a};for(const s of Ro)s in n&&delete n[s];for(const[s,t]of Object.entries(n))typeof t=="string"&&t.startsWith("rec-")&&Wo.has(s)&&t in Fe&&(n[s]=Fe[t]);return n}const To="Accordion-module__root___Dem6d",ko="Accordion-module__item___7ryVk",Oo="Accordion-module__noDivider___Ni2tT",Io="Accordion-module__control___b4wgX",Lo="Accordion-module__label___Ss7uW",zo="Accordion-module__chevron___i-HVZ",Mo="Accordion-module__iconLeftWrapper___5oLen",Fo="Accordion-module__panel___Wx50w",Bo="Accordion-module__content___PEM9t",U={root:To,item:ko,noDivider:Oo,control:Io,label:Lo,chevron:zo,iconLeftWrapper:Mo,panel:Fo,content:Bo},Ve=function({variant:o="unstyled",overStyled:n=!1,...s}){const t=$(s,n),r={root:U.root,item:U.item,control:U.control,label:U.label,chevron:U.chevron,panel:U.panel,content:U.content},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;Object.keys(d).forEach(i=>{r[i]?r[i]=`${r[i]} ${d[i]}`:r[i]=d[i]})}const c=t.className;return e.jsx(u.Accordion,{variant:o,className:c,classNames:r,...t})};Ve.displayName="Accordion";const Ce=y.forwardRef(function({title:o,leftIcon:n,divider:s=!0,children:t,overStyled:r=!1,...l},c){const d=$(l,r),i=d.className,p=[s?void 0:U.noDivider,i].filter(Boolean).join(" ")||void 0;return e.jsx(u.Accordion.Item,{ref:c,className:p,...d,children:o?e.jsxs(e.Fragment,{children:[e.jsx(be,{leftIcon:n,children:o}),e.jsx(ye,{children:t})]}):t})});Ce.displayName="AccordionItem";const be=y.forwardRef(function({leftIcon:o,children:n,overStyled:s=!1,...t},r){const l=$(t,s),c=l.className;return e.jsx(u.Accordion.Control,{ref:r,className:c,icon:o?e.jsx("span",{className:U.iconLeftWrapper,"aria-hidden":!0,children:o}):void 0,...l,children:n})});be.displayName="AccordionControl";const ye=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx(u.Accordion.Panel,{ref:s,className:r,...t})});ye.displayName="AccordionPanel";const he=Ve;he.Item=Ce;he.Control=be;he.Panel=ye;const Eo="Avatar-module__root___fXu-J",Do="Avatar-module__iconWrapper___ojly2",Go="Avatar-module__textWrapper___zp-jD",Vo="Avatar-module__image___ieqGp",qo="Avatar-module__placeholder___IDW7-",D={root:Eo,iconWrapper:Do,textWrapper:Go,image:Vo,placeholder:qo},qe=y.forwardRef(function({size:o="default",variant:n="solid",icon:s,children:t,src:r,overStyled:l=!1,...c},d){const i={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},m=$(c,l),h=m;let _="text";r?_="image":s&&(_="icon");const f={root:D.root,image:D.image,placeholder:D.placeholder},x=h.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const N=x;f.root=N.root?`${D.root} ${N.root}`:D.root,f.image=N.image?`${D.image} ${N.image}`:D.image,f.placeholder=N.placeholder?`${D.placeholder} ${N.placeholder}`:D.placeholder}const C=h.className;return e.jsx(u.Avatar,{ref:d,className:C,classNames:f,variant:i[n],size:p[o],src:r,"data-variant":n,"data-size":o,"data-style":_,...m,children:s!=null?e.jsx("span",{className:D.iconWrapper,"aria-hidden":!0,children:s}):t!=null?e.jsx("span",{className:D.textWrapper,children:t}):void 0})});qe.displayName="Avatar";const Ho=u.createPolymorphicComponent(qe),Uo="Badge-module__root___5osNT",q={root:Uo},He=y.forwardRef(function({variant:o="primary-color",overStyled:n=!1,...s},t){const r=$(s,n),l={root:q.root,section:q.section,label:q.label},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const p=c;l.root=p.root?`${q.root} ${p.root}`:q.root,l.section=p.section??q.section,l.label=p.label??q.label}const d=r.className,i=d?`${q.root} ${d}`:q.root;return e.jsx(u.Badge,{ref:t,variant:"filled","data-variant":o,...r,className:i,classNames:l})});He.displayName="Badge";const Yo=u.createPolymorphicComponent(He),Zo="Breadcrumb-module__root___x-9ln",Ko="Breadcrumb-module__separator___qrUX-",Q={root:Zo,separator:Ko},Ue=y.forwardRef(function({overStyled:o=!1,separator:n=">",...s},t){const r=$({separator:n,...s},o),l={root:Q.root,separator:Q.separator},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const p=c;l.root=p.root?`${Q.root} ${p.root}`:Q.root,l.separator=p.separator?`${Q.separator} ${p.separator}`:Q.separator}const d=r.className,i=d?`${Q.root} ${d}`:Q.root;return e.jsx(u.Breadcrumbs,{ref:t,...r,className:i,classNames:l})});Ue.displayName="Breadcrumb";const Qo="Button-module__root___Q2R8-",Xo="Button-module__label___UJ3Zt",Jo="Button-module__labelText___rFV5p",et="Button-module__iconWrapper___uEKPa",ot="Button-module__section___f2mKr",G={root:Qo,label:Xo,labelText:Jo,iconWrapper:et,section:ot};function tt(a){return a==null||a===""?!1:typeof a=="string"?a.trim()!=="":!0}const Ye=y.forwardRef(function({variant:o="solid",size:n="default",icon:s,children:t,overStyled:r=!1,...l},c){const d={solid:"filled",outline:"outline",text:"subtle"},i={default:"md",small:"sm"},p=$(l,r),m=p;delete m.fullWidth;const h=!!s||!!m.leftSection,_=!!m.rightSection,f=(h||_)&&!tt(t);typeof process<"u"&&process.env.NODE_ENV!=="production"&&f&&!m["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:G.root,section:G.section,label:G.label},C=m.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const b=C;x.root=b.root?`${G.root} ${b.root}`:G.root,x.section=b.section??G.section,x.label=b.label??G.label}const N=m.className,w=N?`${G.root} ${N}`:G.root;return e.jsx(u.Button,{ref:c,className:w,classNames:x,variant:d[o],size:i[n],leftSection:s!=null?e.jsx("span",{className:G.iconWrapper,"aria-hidden":!0,children:s}):void 0,"data-variant":o,"data-size":n,...f?{"data-icon-only":""}:{},...p,children:e.jsx("span",{className:G.labelText,children:t})})});Ye.displayName="Button";const rt=u.createPolymorphicComponent(Ye),st="Card-module__root___c9KvZ",at="Card-module__header___PTXf2 recursica_brand_typography_h3",nt="Card-module__footer___Mu-JC",lt="Card-module__section___BRT8H",ct="Card-module__content___oFIQa",Y={root:st,header:at,footer:nt,section:lt,content:ct},Ze=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r={root:Y.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;Object.keys(d).forEach(i=>{r[i]?r[i]=`${r[i]} ${d[i]}`:r[i]=d[i]})}const c=t.className;return e.jsx(u.Card,{ref:s,className:c,classNames:r,...t})});Ze.displayName="Card";const we=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx(u.Card.Section,{ref:s,className:r?`${Y.section} ${r}`:Y.section,...t})});we.displayName="CardSection";const je=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx(u.Card.Section,{ref:s,className:r?`${Y.header} ${r}`:Y.header,...t})});je.displayName="CardHeader";const ge=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx(u.Card.Section,{ref:s,className:r?`${Y.footer} ${r}`:Y.footer,...t})});ge.displayName="CardFooter";const Pe=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx("div",{ref:s,className:r?`${Y.content} ${r}`:Y.content,...t})});Pe.displayName="CardContent";const Ke=u.createPolymorphicComponent(Ze),Ne=Ke;Ne.Section=we;Ne.Header=je;Ne.Footer=ge;Ne.Content=Pe;const it=Ke,dt="Label-module__root___e6HXZ",pt="Label-module__labelText___rieFR",mt="Label-module__required___Ggrzc",ut="Label-module__optionalText___Y2yun",_t="Label-module__actionAreaWrapper___ELoZK",ft="Label-module__editIconWrapper___NG2xW",E={root:dt,labelText:pt,required:mt,optionalText:ut,actionAreaWrapper:_t,editIconWrapper:ft},Ae=y.forwardRef(function({labelSize:o="default",labelAlignment:n,required:s=!1,labelOptionalText:t,labelWithEditIcon:r,labelActionArea:l,onLabelEditClick:c,children:d,overStyled:i=!1,...p},m){const h=n||"left";let _;s||(t===!0?_="optional":t&&(_=t));const f=$(p,i),x=f,C={label:E.root,required:E.required},N=x.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const P=N;C.label=P.label?`${E.root} ${P.label}`:E.root,C.required=P.required?`${E.required} ${P.required}`:E.required}const w=x.className,b=w?`${E.root} ${w}`:E.root;return e.jsxs(u.Input.Label,{ref:m,className:b,classNames:C,"data-size":o,"data-alignment":h,required:s&&!r,...f,children:[e.jsx("span",{className:E.labelText,children:d}),_&&e.jsx("span",{className:E.optionalText,children:typeof _=="string"?`(${_})`:_}),l?e.jsx("span",{className:E.actionAreaWrapper,children:l}):r?e.jsx("button",{type:"button",className:E.editIconWrapper,"data-replaces-asterisk":s?"true":void 0,onClick:c,"aria-label":"Edit",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});Ae.displayName="Label";const bt="FormControlLayout-module__root___yNDhZ",yt="FormControlLayout-module__leftSection___GBM1r",ht="FormControlLayout-module__rightSection___bcL4v",ue={root:bt,leftSection:yt,rightSection:ht},Z=y.forwardRef(function({formLayout:o="stacked",labelSize:n="default",controlMaxWidth:s,controlMinWidth:t,leftSection:r,children:l,className:c,style:d,...i},p){const m=c?`${ue.root} ${c}`:ue.root,_=r!=null||o==="side-by-side";return e.jsxs("div",{ref:p,className:m,"data-form-layout":o,style:{...d,...s?{"--form-control-max-width":s}:{},...t?{"--form-control-min-width":t}:{}},...i,children:[_&&e.jsx("div",{className:ue.leftSection,"data-size":n,children:r}),e.jsx("div",{className:ue.rightSection,children:l})]})});Z.displayName="FormControlLayout";const Nt="AssistiveElement-module__root___WhQ43",xt="AssistiveElement-module__textWrapper___sfy5E",$t="AssistiveElement-module__iconWrapper___gObRF",$e={root:Nt,textWrapper:xt,iconWrapper:$t},vt=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4"}),e.jsx("path",{d:"M12 8h.01"})]}),Ct=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),e.jsx("path",{d:"M12 9v4"}),e.jsx("path",{d:"M12 17h.01"})]}),ve=y.forwardRef(function({assistiveVariant:o="help",assistiveWithIcon:n=!0,children:s,className:t,overStyled:r=!1,...l},c){const i=$(l,r),p=$e.root,m=t?`${p} ${t}`:p,h=o==="error"?Ct:vt;return e.jsxs("div",{ref:c,className:m,"data-variant":o,style:i.style,...i,children:[n&&e.jsx("span",{className:$e.iconWrapper,children:e.jsx(h,{})}),e.jsx("span",{className:$e.textWrapper,children:s})]})});ve.displayName="AssistiveElement";const wt="FormControlWrapper-module__inputSection___HenXk",Be={inputSection:wt},_e=y.forwardRef(function({formLayout:o,labelSize:n,labelAlignment:s,labelOptionalText:t,labelWithEditIcon:r,labelActionArea:l,onLabelEditClick:c,label:d,description:i,assistiveText:p,assistiveWithIcon:m=!0,controlMaxWidth:h,controlMinWidth:_,error:f,required:x,withAsterisk:C,id:N,children:w,className:b,overStyled:P=!1,labelElement:v,...L},R){const A=y.useId(),O=N||`recursica-fc-${A}`,z=p||i,W=z?`${O}-assistive`:void 0,g=f?`${O}-error`:void 0,I=$(L,P),J=b||I.className,me=Be.root,B=J?`${me} ${J}`:me,Ao=y.isValidElement(w)?y.cloneElement(w,{...z&&!w.props["aria-describedby"]?{"aria-describedby":W}:{},...f&&!w.props["aria-errormessage"]?{"aria-errormessage":g}:{}}):w,So=d?e.jsx(Ae,{id:O,labelAlignment:s,labelOptionalText:t,labelWithEditIcon:r,labelActionArea:l,onLabelEditClick:c,required:C??x,...v==="div"?{as:"div"}:{},children:d}):void 0;return e.jsx(Z,{ref:R,className:B,formLayout:o,labelSize:n,controlMaxWidth:h,controlMinWidth:_,leftSection:So,...I,children:e.jsxs("div",{className:Be.inputSection,children:[Ao,f&&e.jsx(ve,{id:g,assistiveVariant:"error",assistiveWithIcon:m,children:f}),!f&&z&&e.jsx(ve,{id:W,assistiveVariant:"help",assistiveWithIcon:m,children:z})]})})});_e.displayName="FormControlWrapper";const jt="_root_1qhn7_3",gt="_contents_1qhn7_18",te={root:jt,contents:gt},Qe=y.forwardRef(function({layer:a,contentsOnly:o,children:n,className:s,style:t,...r},l){const c=o?s?`${te.root} ${te.contents} ${s}`:`${te.root} ${te.contents}`:s?`${te.root} ${s}`:te.root;return e.jsx("div",{ref:l,className:c,style:t,...o?{}:{"data-recursica-layer":String(a)},...r,children:n})});Qe.displayName="Layer";const pe=({emptyText:a="N/A"})=>e.jsx(y.Fragment,{children:a});pe.displayName="EmptyValueRenderer";pe.check=a=>a==null||a===""||Array.isArray(a)&&a.length===0;const Ee="data-recursica-theme";function Pt({children:a,theme:o="light"}){return y.useEffect(()=>{const n=document.documentElement;return n.setAttribute(Ee,o),()=>{n.removeAttribute(Ee)}},[o]),e.jsx(e.Fragment,{children:a})}const At="ReadOnlyField-module__textField___qKn25",fe={textField:At},de=({value:a,overStyled:o=!1,...n})=>{const s=$(n,o),t=s.className;return e.jsx(u.Box,{component:"p",className:t?`${fe.textField} ${t}`:fe.textField,...s,children:a!=null?y.isValidElement(a)?a:Array.isArray(a)?a.join(", "):String(a):""})};de.displayName="ReadOnlyTextField";const Se=y.forwardRef(function({value:o,type:n="text",emptyValueComponent:s,overStyled:t=!1,...r},l){let c=null;const d=$(r,t),i=s||pe,m=(i.check?i.check(o):pe.check(o))?e.jsx(i,{value:o}):o;switch(n){case"boolean":c=e.jsx(de,{value:o===!0?"True":o===!1?"False":m,overStyled:t});break;case"switch":c=e.jsx(de,{value:o===!0?"On":o===!1?"Off":m,overStyled:t});break;case"text":default:c=e.jsx(de,{value:m,overStyled:t});break}return e.jsx(_e,{ref:l,overStyled:t,...d,children:c})});Se.displayName="ReadOnlyField";const K=y.forwardRef(function({readOnly:o,readOnlyComponent:n,readOnlyType:s="text",readOnlyValue:t,readOnlyNativeProps:r,emptyValueComponent:l,activeComponent:c,overStyled:d,onLabelEditClick:i,...p},m){if(o){if(n){const h=n;return e.jsx(_e,{ref:m,...p,onLabelEditClick:i,overStyled:d,children:e.jsx(h,{...r})})}return e.jsx(Se,{ref:m,type:s,value:t,emptyValueComponent:l,onLabelEditClick:i,overStyled:d,...p})}return e.jsx(_e,{ref:m,...p,onLabelEditClick:i,overStyled:d,children:c})});K.displayName="WithReadOnlyWrapper";const St="Checkbox-module__groupRoot___cBS0o",Rt="Checkbox-module__root___mY3qk",Wt="Checkbox-module__body___5yC7q",Tt="Checkbox-module__inner___rTke4",kt="Checkbox-module__input___2kt-h",Ot="Checkbox-module__icon___-O7i6",It="Checkbox-module__labelWrapper___GpZkr",Lt="Checkbox-module__label___cwRtI",T={groupRoot:St,root:Rt,body:Wt,inner:Tt,input:kt,icon:Ot,labelWrapper:It,label:Lt},Re=y.forwardRef(function(o,n){const{overStyled:s=!1,formLayout:t="stacked",labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,className:w,style:b,children:P,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,value:A,defaultValue:O,...z}=o,W=$(z,s),g=W;return delete g.size,e.jsx(K,{className:w,style:b,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:t,labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,readOnly:v&&!!L,readOnlyComponent:L,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:o,activeComponent:e.jsx(u.Checkbox.Group,{ref:n,...W,disabled:v||g.disabled,value:A,defaultValue:O,children:e.jsx("div",{className:T.groupRoot,"data-layout":t,children:y.Children.map(P,j=>y.isValidElement(j)?y.cloneElement(j,{disabled:v||j.props.disabled}):j)})})})});Re.displayName="CheckboxGroup";const We=y.forwardRef(function(o,n){const{overStyled:s=!1,readOnly:t,readOnlyComponent:r,disabled:l,formLayout:c,labelSize:d,controlMaxWidth:i,controlMinWidth:p,...m}=o,h=$(m,s),_=h;delete _.size,delete _.color,delete _.radius,delete _.variant,delete _.iconColor;const f={root:T.root,body:T.body,inner:T.inner,input:T.input,icon:T.icon,labelWrapper:T.labelWrapper,label:T.label},x=_.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const b=x;f.root=b.root?`${T.root} ${b.root}`:T.root,f.body=b.body?`${T.body} ${b.body}`:T.body,f.inner=b.inner?`${T.inner} ${b.inner}`:T.inner,f.input=b.input?`${T.input} ${b.input}`:T.input,f.icon=b.icon?`${T.icon} ${b.icon}`:T.icon,f.labelWrapper=b.labelWrapper?`${T.labelWrapper} ${b.labelWrapper}`:T.labelWrapper,f.label=b.label?`${T.label} ${b.label}`:T.label}const C=_.className,N=C?`${T.root} ${C}`:T.root;if(t&&r){const b=!!(_.checked??_.defaultChecked),P=r,v=e.jsx(P,{...o,checked:b,label:_.label});return c?e.jsx(Z,{formLayout:c,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:v}):e.jsx(e.Fragment,{children:v})}const w=e.jsx(u.Checkbox,{ref:n,className:N,classNames:f,disabled:t||l,...h});return c?e.jsx(Z,{formLayout:c,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:w}):w});We.displayName="Checkbox";We.Group=Re;const zt="Chip-module__root___f5pFk",Mt="Chip-module__label___Ov9pg",Ft="Chip-module__mantineIconWrapper___KLSz6",Bt="Chip-module__innerWrapper___EnrTF",Et="Chip-module__children___zbRAR",Dt="Chip-module__leadingIcon___JBtjQ",Gt="Chip-module__removeIcon___pVju-",M={root:zt,label:Mt,mantineIconWrapper:Ft,innerWrapper:Bt,children:Et,leadingIcon:Dt,removeIcon:Gt};function Vt(a){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...a,children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Xe=y.forwardRef(function({error:o=!1,icon:n,onRemove:s,removeLabel:t="Remove",children:r,overStyled:l=!1,...c},d){const i=$(c,l),p=i,m={root:M.root,label:M.label,input:M.input,iconWrapper:M.mantineIconWrapper,checkIcon:M.checkIcon},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const N=h;m.root=N.root?`${M.root} ${N.root}`:M.root,m.label=N.label?`${M.label} ${N.label}`:M.label}const _=p.className,f=_?`${M.root} ${_}`:M.root,x=o?"":void 0,C=!r&&(!!n||!!s);return e.jsx(u.Chip,{ref:d,className:f,classNames:m,...x!==void 0?{"data-error":""}:{},...C?{"data-icon-only":""}:{},...i,children:e.jsxs("span",{className:M.innerWrapper,children:[n&&e.jsx("span",{className:M.leadingIcon,"aria-hidden":!0,children:n}),e.jsx("span",{className:M.children,children:r}),s&&e.jsx("span",{role:"button",className:M.removeIcon,onClick:N=>{N.preventDefault(),N.stopPropagation(),s(N)},"aria-label":t,onKeyDown:N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),N.stopPropagation(),s(N))},tabIndex:0,children:e.jsx(Vt,{})})]})})});Xe.displayName="Chip";const qt="Container-module__root___UVssr",se={root:qt},Je=y.forwardRef(function({children:o,size:n,overStyled:s=!1,...t},r){const l=$(t,s),c=l,d={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},i=typeof n=="string"&&d[n]?d[n]:n,p={root:se.root},m=c.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const f=m;p.root=f.root?`${se.root} ${f.root}`:se.root}const h=c.className,_=h?`${se.root} ${h}`:se.root;return e.jsx(u.Container,{ref:r,size:i,className:_,classNames:p,...l,children:o})});Je.displayName="Container";const Ht=a=>e.jsx("div",{...a,children:"DatePicker"}),Ut="Dropdown-module__root___uVyL0",Yt="Dropdown-module__input___dK4dN",Zt="Dropdown-module__section___j3MRB",Kt="Dropdown-module__dropdown___gG-Sw",Qt="Dropdown-module__option___nAGU-",F={root:Ut,input:Yt,section:Zt,dropdown:Kt,option:Qt},eo=y.forwardRef(function(o,n){const{overStyled:s=!1,formLayout:t="stacked",containerWidth:r,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:i,onLabelEditClick:p,label:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,className:w,style:b,disabled:P,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,value:A,defaultValue:O,data:z,...W}=o,g=$(W,s),j=g;delete j.size,delete j.variant,delete j.radius;const I={wrapper:F.root,input:F.input,section:F.section,dropdown:F.dropdown,option:F.option},J=j.classNames;if(J&&typeof J=="object"&&!Array.isArray(J)){const B=J;I.wrapper=B.wrapper?`${F.root} ${B.wrapper}`:F.root,I.input=B.input?`${F.input} ${B.input}`:F.input,I.section=B.section?`${F.section} ${B.section}`:F.section,I.dropdown=B.dropdown?`${F.dropdown} ${B.dropdown}`:F.dropdown,I.option=B.option?`${F.option} ${B.option}`:F.option}const me={...b||{},width:r||"100%"};return e.jsx(K,{className:w,style:me,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:s,formLayout:t,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:i,onLabelEditClick:p,label:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):O?String(O):void 0,readOnlyNativeProps:o,activeComponent:e.jsx(u.Select,{ref:n,classNames:I,disabled:P,value:A,defaultValue:O,data:z||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":P?"true":void 0,"data-error":f?"true":void 0},...g})})});eo.displayName="Dropdown";const Xt=a=>e.jsx("div",{...a,children:"FileInput"}),Jt=a=>e.jsx("div",{...a,children:"FileUpload"}),er="Flex-module__root___yYser",ae={root:er},oo=y.forwardRef(function({children:o,overStyled:n=!1,gap:s="rec-default",...t},r){const l=$({...t,gap:s},n),c=l,d={root:ae.root},i=c.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const h=i;d.root=h.root?`${ae.root} ${h.root}`:ae.root}const p=c.className,m=p?`${ae.root} ${p}`:ae.root;return e.jsx(u.Flex,{ref:r,className:m,classNames:d,...l,children:o})});oo.displayName="Flex";const or=u.createPolymorphicComponent(oo),tr="Group-module__root___ftO64",ne={root:tr},to=y.forwardRef(function({children:o,overStyled:n=!1,gap:s="rec-default",...t},r){const l=$({...t,gap:s},n),c=l,d={root:ne.root},i=c.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const h=i;d.root=h.root?`${ne.root} ${h.root}`:ne.root}const p=c.className,m=p?`${ne.root} ${p}`:ne.root;return e.jsx(u.Group,{ref:r,className:m,classNames:d,...l,children:o})});to.displayName="Group";const rr="HoverCard-module__dropdown___FBPFW",sr="HoverCard-module__arrow___S9AkE",De={dropdown:rr,arrow:sr},ro=function({overStyled:o=!1,withBeak:n=!0,...s}){const t=$(s,o),r={dropdown:De.dropdown,arrow:De.arrow},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{r[m]?r[m]=`${r[m]} ${p[m]}`:r[m]=p[m]})}const c=t.arrowSize??16,d=t.withArrow,i=n??d;return e.jsx(u.HoverCard,{position:"top",arrowSize:c,withArrow:i,classNames:r,...t})};ro.displayName="HoverCard";const so=function(o){return e.jsx(u.HoverCard.Target,{...o})};so.displayName="HoverCardTarget";const ao=function({overStyled:o=!1,...n}){const s=$(n,o),t=s.className;return e.jsx(u.HoverCard.Dropdown,{className:t,...s})};ao.displayName="HoverCardDropdown";const Te=ro;Te.Target=so;Te.Dropdown=ao;const ar=a=>e.jsx("div",{...a,children:"Link"}),nr="Loader-module__root___6iYOP",le={root:nr},no=y.forwardRef(function({variant:o="oval",size:n="default",overStyled:s=!1,...t},r){const c={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",d=$(t,s),i={root:le.root},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const _=p;i.root=_.root?`${le.root} ${_.root}`:le.root}const m=d.className,h=m?`${le.root} ${m}`:le.root;return e.jsx(u.Loader,{ref:r,type:o,"data-variant":o,"data-size":c,...d,className:h,classNames:i})});no.displayName="Loader";const lr="Menu-module__dropdown___j4xuA",cr="Menu-module__item___NMXha",ir="Menu-module__itemLabel___zvcqC",dr="Menu-module__itemSection___pRIcn",pr="Menu-module__divider___wPiNq",mr="Menu-module__label___4FBGa",ur="Menu-module__chevron___hEEiy",ee={dropdown:lr,item:cr,itemLabel:ir,itemSection:dr,divider:pr,label:mr,chevron:ur},lo=function({overStyled:o=!1,...n}){const s=$(n,o),t={dropdown:ee.dropdown,item:ee.item,itemLabel:ee.itemLabel,itemSection:ee.itemSection,divider:ee.divider,label:ee.label,chevron:ee.chevron},r=s.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const l=r;Object.keys(l).forEach(c=>{t[c]?t[c]=`${t[c]} ${l[c]}`:t[c]=l[c]})}return e.jsx(u.Menu,{classNames:t,...s})};lo.displayName="Menu";const co=function(o){return e.jsx(u.Menu.Target,{...o})};co.displayName="MenuTarget";const io=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx(u.Menu.Dropdown,{ref:s,className:r,...t})});io.displayName="MenuDropdown";const po=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t;o||delete r.color;const l=r.className;return e.jsx(u.Menu.Item,{ref:s,className:l,...t})});po.displayName="MenuItem";const _r=u.createPolymorphicComponent(po),mo=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx(u.Menu.Divider,{ref:s,className:r,...t})});mo.displayName="MenuDivider";const uo=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx(u.Menu.Label,{ref:s,className:r,...t})});uo.displayName="MenuLabel";const _o=function(o){return e.jsx(u.Menu.Sub,{...o})};_o.displayName="MenuSub";const fo=function(o){return e.jsx(u.Menu.Sub.Target,{...o})};fo.displayName="MenuSubTarget";const bo=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t;o||delete r.color;const l=r.className;return e.jsx(u.Menu.Sub.Item,{ref:s,className:l,...t})});bo.displayName="MenuSubItem";const fr=u.createPolymorphicComponent(bo),yo=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className;return e.jsx(u.Menu.Sub.Dropdown,{ref:s,className:r,...t})});yo.displayName="MenuSubDropdown";const xe=_o;xe.Target=fo;xe.Item=fr;xe.Dropdown=yo;const oe=lo;oe.Target=co;oe.Dropdown=io;oe.Item=_r;oe.Divider=mo;oe.Label=uo;oe.Sub=xe;const br=a=>e.jsx("div",{...a,children:"Modal"}),yr="NumberInput-module__root___C6rAn",hr="NumberInput-module__input___Ss8p7",Nr="NumberInput-module__section___MijP0",xr="NumberInput-module__controls___8UfQ2",$r="NumberInput-module__control___Qre9-",ce={root:yr,input:hr,section:Nr,controls:xr,control:$r},ho=y.forwardRef(function(o,n){const{overStyled:s=!1,formLayout:t="stacked",labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,className:N,style:w,disabled:b,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,value:R,defaultValue:A,hideControls:O=!1,...z}=o,W=$(z,s),g=W;delete g.size,delete g.variant,delete g.radius;const j={wrapper:ce.root,input:ce.input,section:ce.section,controls:ce.controls,control:ce.control};return e.jsx(K,{className:N,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:s,formLayout:t,labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:R!==void 0?R==null?void 0:R.toString():A==null?void 0:A.toString(),readOnlyNativeProps:o,activeComponent:e.jsx(u.NumberInput,{ref:n,classNames:j,disabled:b,value:R,defaultValue:A,hideControls:O,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":b?"true":void 0,"data-error":_?"true":void 0,"data-with-left-section":g.leftSection?"true":void 0,"data-with-right-section":g.rightSection||!O?"true":void 0},...W})})});ho.displayName="NumberInput";const vr=a=>e.jsx("div",{...a,children:"Pagination"}),Cr="Panel-module__content___wdGo-",wr="Panel-module__inner___ruA2b",jr="Panel-module__header___o7SiC",gr="Panel-module__title___181OP recursica_brand_typography_h3",Pr="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP recursica_brand_typography_h3",Ar="Panel-module__body___SEC3T",Sr="Panel-module__footer___t6-hz",X={content:Cr,inner:wr,header:jr,title:gr,titleTruncate:Pr,body:Ar,footer:Sr},No=function({overStyled:o=!1,position:n="right",keepMounted:s=!0,wrapHeaderText:t=!1,...r}){const l=$(r,o),c={content:X.content,header:X.header,title:t?X.titleTruncate:X.title,body:X.body,inner:X.inner},d=l.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const i=d;Object.keys(i).forEach(p=>{c[p]?c[p]=`${c[p]} ${i[p]}`:c[p]=i[p]})}return e.jsx(u.Drawer,{position:n,keepMounted:s,closeOnClickOutside:r.closeOnClickOutside??!!r.opened,...l,classNames:c})};No.displayName="Panel";const ke=y.forwardRef(function({overStyled:o=!1,...n},s){const t=$(n,o),r=t.className,l=r?`${X.footer} ${r}`:X.footer;return e.jsx("div",{ref:s,className:l,...t})});ke.displayName="PanelFooter";const V=No;V.Root=u.Drawer.Root;V.Overlay=u.Drawer.Overlay;V.Content=u.Drawer.Content;V.Header=u.Drawer.Header;V.Title=u.Drawer.Title;V.CloseButton=u.Drawer.CloseButton;V.Body=u.Drawer.Body;V.Stack=u.Drawer.Stack;V.Footer=ke;const Rr=a=>e.jsx("div",{...a,children:"Popover"}),Wr="Radio-module__groupRoot___bfUii",Tr="Radio-module__root___kAjTD",kr="Radio-module__body___q2Wpj",Or="Radio-module__inner___QaTBB",Ir="Radio-module__radio___MfgN-",Lr="Radio-module__icon___DWznm",zr="Radio-module__labelWrapper___dB0Gi",Mr="Radio-module__label___vAFIP",k={groupRoot:Wr,root:Tr,body:kr,inner:Or,radio:Ir,icon:Lr,labelWrapper:zr,label:Mr},Oe=y.forwardRef(function(o,n){const{overStyled:s=!1,formLayout:t="stacked",labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,className:w,style:b,children:P,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,value:A,defaultValue:O,...z}=o,W=$(z,s),g=W;return delete g.size,e.jsx(K,{className:w,style:b,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:t,labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,readOnly:v&&!!L,readOnlyComponent:L,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:o,activeComponent:e.jsx(u.Radio.Group,{ref:n,...W,disabled:v||g.disabled,value:A,defaultValue:O,children:e.jsx("div",{className:k.groupRoot,"data-layout":t,children:y.Children.map(P,j=>y.isValidElement(j)?y.cloneElement(j,{disabled:v||j.props.disabled}):j)})})})});Oe.displayName="RadioGroup";const Fr=({className:a,style:o})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:a,style:o,children:e.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Ie=y.forwardRef(function(o,n){const{overStyled:s=!1,readOnly:t,readOnlyComponent:r,disabled:l,formLayout:c,labelSize:d,controlMaxWidth:i,controlMinWidth:p,...m}=o,h=$(m,s),_=h;delete _.size,delete _.color,delete _.radius,delete _.variant,delete _.iconColor;const f={root:k.root,body:k.body,inner:k.inner,radio:k.radio,icon:k.icon,labelWrapper:k.labelWrapper,label:k.label},x=_.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const b=x;f.root=b.root?`${k.root} ${b.root}`:k.root,f.body=b.body?`${k.body} ${b.body}`:k.body,f.inner=b.inner?`${k.inner} ${b.inner}`:k.inner,f.radio=b.radio?`${k.radio} ${b.radio}`:k.radio,f.icon=b.icon?`${k.icon} ${b.icon}`:k.icon,f.labelWrapper=b.labelWrapper?`${k.labelWrapper} ${b.labelWrapper}`:k.labelWrapper,f.label=b.label?`${k.label} ${b.label}`:k.label}const C=_.className,N=C?`${k.root} ${C}`:k.root;if(t&&r){const b=!!(_.checked??_.defaultChecked),P=r,v=e.jsx(P,{...o,checked:b,label:_.label});return c?e.jsx(Z,{formLayout:c,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:v}):e.jsx(e.Fragment,{children:v})}const w=e.jsx(u.Radio,{ref:n,icon:Fr,className:N,classNames:f,disabled:t||l,...h});return c?e.jsx(Z,{formLayout:c,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:w}):w});Ie.displayName="Radio";Ie.Group=Oe;const xo=({checked:a,label:o})=>e.jsxs(u.Box,{component:"span",className:fe.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[o&&e.jsxs("span",{style:{fontWeight:500},children:[o,":"]}),e.jsx("span",{children:a?"On":"Off"})]});xo.displayName="ReadOnlySwitchField";const $o=({checked:a,label:o})=>e.jsxs(u.Box,{component:"span",className:fe.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[o&&e.jsxs("span",{style:{fontWeight:500},children:[o,":"]}),e.jsx("span",{children:a?"True":"False"})]});$o.displayName="ReadOnlyBooleanField";const Br=a=>e.jsx("div",{...a,children:"Search"}),Er=a=>e.jsx("div",{...a,children:"SegmentedControl"}),Dr=a=>e.jsx("div",{...a,children:"Slider"}),Gr="Stack-module__root___NUN-x",ie={root:Gr},vo=y.forwardRef(function({children:o,overStyled:n=!1,gap:s="rec-default",...t},r){const l=$({...t,gap:s},n),c=l,d={root:ie.root},i=c.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const h=i;d.root=h.root?`${ie.root} ${h.root}`:ie.root}const p=c.className,m=p?`${ie.root} ${p}`:ie.root;return e.jsx(u.Stack,{ref:r,className:m,classNames:d,...l,children:o})});vo.displayName="Stack";const Vr=a=>e.jsx("div",{...a,children:"Stepper"}),qr="Switch-module__root___Y5Ydi",Hr="Switch-module__body___Sw9Wr",Ur="Switch-module__track___7ObdZ",Yr="Switch-module__thumb___-FTeK",Zr="Switch-module__labelWrapper___YSOwx",Kr="Switch-module__label___LrH7V",Qr="Switch-module__thumbIconWrapper___sCY-1",Xr="Switch-module__checkIcon___ZBAQN",Jr="Switch-module__closeIcon___bLLGw",es="Switch-module__groupRoot___-Uepi",S={root:qr,body:Hr,track:Ur,thumb:Yr,labelWrapper:Zr,label:Kr,thumbIconWrapper:Qr,checkIcon:Xr,closeIcon:Jr,groupRoot:es},Le=y.forwardRef(function(o,n){const{overStyled:s=!1,formLayout:t="stacked",labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,className:w,style:b,children:P,readOnly:v,readOnlyComponent:L,emptyValueComponent:R,value:A,defaultValue:O,...z}=o,W=$(z,s),g=W;return delete g.size,e.jsx(K,{className:w,style:b,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:t,labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:_,error:f,required:x,withAsterisk:C,id:N,readOnly:v&&!!L,readOnlyComponent:L,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:o,activeComponent:e.jsx(u.Switch.Group,{ref:n,...W,disabled:v||g.disabled,value:A,defaultValue:O,children:e.jsx("div",{className:S.groupRoot,children:y.Children.map(P,j=>y.isValidElement(j)?y.cloneElement(j,{disabled:v||j.props.disabled}):j)})})})});Le.displayName="SwitchGroup";const ze=y.forwardRef(function(o,n){const{overStyled:s=!1,readOnly:t,readOnlyComponent:r,disabled:l,thumbIcon:c,formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:m,...h}=o,_=$(h,s),f=_;delete f.size,delete f.color,delete f.radius,delete f.variant;const x={root:S.root,body:S.body,track:S.track,thumb:S.thumb,trackLabel:S.trackLabel,labelWrapper:S.labelWrapper,label:S.label},C=f.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const v=C;x.root=v.root?`${S.root} ${v.root}`:S.root,x.body=v.body?`${S.body} ${v.body}`:S.body,x.track=v.track?`${S.track} ${v.track}`:S.track,x.thumb=v.thumb?`${S.thumb} ${v.thumb}`:S.thumb,x.trackLabel=v.trackLabel?`${S.trackLabel} ${v.trackLabel}`:S.trackLabel,x.labelWrapper=v.labelWrapper?`${S.labelWrapper} ${v.labelWrapper}`:S.labelWrapper,x.label=v.label?`${S.label} ${v.label}`:S.label}const N=f.className,w=N?`${S.root} ${N}`:S.root;if(t&&r){const v=!!(f.checked??f.defaultChecked),L=r,R=e.jsx(L,{...o,checked:v,label:f.label});return d?e.jsx(Z,{formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:m,children:R}):e.jsx(e.Fragment,{children:R})}const b=e.jsxs("div",{className:S.thumbIconWrapper,children:[e.jsx(u.CheckIcon,{className:S.checkIcon}),e.jsx(u.CloseIcon,{className:S.closeIcon})]}),P=e.jsx(u.Switch,{ref:n,className:w,classNames:x,disabled:t||l,thumbIcon:c??b,..._});return d?e.jsx(Z,{formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:m,children:P}):P});ze.displayName="Switch";ze.Group=Le;const os=a=>e.jsx("div",{...a,children:"Table"}),ts=a=>e.jsx("div",{...a,children:"Tabs"}),Co=y.forwardRef(function({overStyled:o=!1,variant:n="body",...s},t){const r=$(s,o),l=r.className,c=`recursica_brand_typography_${n}`,d=l?`${c} ${l}`:c;return e.jsx(u.Text,{ref:t,className:d,...r})});Co.displayName="Text";const rs=u.createPolymorphicComponent(Co),ss="TextArea-module__root___3dyeu",as="TextArea-module__input___8l36v",re={root:ss,input:as},wo=y.forwardRef(function(o,n){const{overStyled:s=!1,formLayout:t="stacked",labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,className:N,style:w,disabled:b,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,value:R,defaultValue:A,...O}=o,z=$(O,s),W=z;delete W.size,delete W.variant,delete W.radius;const g={wrapper:re.root,input:re.input},j=W.classNames;if(j&&typeof j=="object"&&!Array.isArray(j)){const I=j;g.wrapper=I.wrapper?`${re.root} ${I.wrapper}`:re.root,g.input=I.input?`${re.input} ${I.input}`:re.input}return e.jsx(K,{className:N,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:s,formLayout:t,labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:R!==void 0?R:A,readOnlyNativeProps:o,activeComponent:e.jsx(u.Textarea,{ref:n,classNames:g,disabled:b,value:R,defaultValue:A,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":b?"true":void 0,"data-error":_?"true":void 0},...z})})});wo.displayName="TextArea";const ns="TextField-module__root___2ZYkG",ls="TextField-module__input___RL-My",cs="TextField-module__section___bCIJ0",H={root:ns,input:ls,section:cs},jo=y.forwardRef(function(o,n){const{overStyled:s=!1,formLayout:t="stacked",labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,className:N,style:w,disabled:b,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,value:R,defaultValue:A,...O}=o,z=$(O,s),W=z;delete W.size,delete W.variant,delete W.radius;const g={wrapper:H.root,input:H.input,section:H.section},j=W.classNames;if(j&&typeof j=="object"&&!Array.isArray(j)){const I=j;g.wrapper=I.wrapper?`${H.root} ${I.wrapper}`:H.root,g.input=I.input?`${H.input} ${I.input}`:H.input,g.section=I.section?`${H.section} ${I.section}`:H.section}return e.jsx(K,{className:N,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:s,formLayout:t,labelSize:r,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:_,required:f,withAsterisk:x,id:C,readOnly:P,readOnlyComponent:v,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:R!==void 0?R:A,readOnlyNativeProps:o,activeComponent:e.jsx(u.Input,{ref:n,classNames:g,disabled:b,value:R,defaultValue:A,wrapperProps:{"data-disabled":b?"true":void 0,"data-error":_?"true":void 0},...z})})});jo.displayName="TextField";const is=a=>e.jsx("div",{...a,children:"TimePicker"}),ds=a=>e.jsx("div",{...a,children:"Timeline"}),go=y.forwardRef(function({overStyled:o=!1,order:n=1,...s},t){const r=$(s,o),l=r.className,c=`recursica_brand_typography_h${n}`,d=l?`${c} ${l}`:c;return e.jsx(u.Title,{ref:t,order:n,className:d,...r})});go.displayName="Title";const ps=a=>e.jsx("div",{...a,children:"Toast"}),ms="Tooltip-module__tooltip___UA7H9",us="Tooltip-module__arrow___4zROk",Ge={tooltip:ms,arrow:us},Po=function({overStyled:o=!1,withBeak:n=!0,...s}){const t=$(s,o),r={tooltip:Ge.tooltip,arrow:Ge.arrow},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(m=>{r[m]?r[m]=`${r[m]} ${p[m]}`:r[m]=p[m]})}const c=t.arrowSize??16,d=t.withArrow,i=n??d;return e.jsx(u.Tooltip,{position:"top",multiline:!0,arrowSize:c,withArrow:i,classNames:r,...t})};Po.displayName="Tooltip";const Me=Po;Me.Floating=u.Tooltip.Floating;Me.Group=u.Tooltip.Group;const _s=a=>e.jsx("div",{...a,children:"TransferList"});exports.Accordion=he;exports.AccordionControl=be;exports.AccordionItem=Ce;exports.AccordionPanel=ye;exports.Avatar=Ho;exports.Badge=Yo;exports.Breadcrumb=Ue;exports.Button=rt;exports.Card=it;exports.CardContent=Pe;exports.CardFooter=ge;exports.CardHeader=je;exports.CardSection=we;exports.Checkbox=We;exports.CheckboxGroup=Re;exports.Chip=Xe;exports.Container=Je;exports.DatePicker=Ht;exports.Dropdown=eo;exports.EmptyValueRenderer=pe;exports.FileInput=Xt;exports.FileUpload=Jt;exports.Flex=or;exports.FormControlLayout=Z;exports.Group=to;exports.HoverCard=Te;exports.Label=Ae;exports.Layer=Qe;exports.Link=ar;exports.Loader=no;exports.Menu=oe;exports.Modal=br;exports.NumberInput=ho;exports.Pagination=vr;exports.Panel=V;exports.PanelFooter=ke;exports.Popover=Rr;exports.Radio=Ie;exports.RadioGroup=Oe;exports.ReadOnlyBooleanField=$o;exports.ReadOnlyField=Se;exports.ReadOnlySwitchField=xo;exports.ReadOnlyTextField=de;exports.RecursicaThemeProvider=Pt;exports.Search=Br;exports.SegmentedControl=Er;exports.Slider=Dr;exports.Stack=vo;exports.Stepper=Vr;exports.Switch=ze;exports.SwitchGroup=Le;exports.Table=os;exports.Tabs=ts;exports.Text=rs;exports.TextArea=wo;exports.TextField=jo;exports.TimePicker=is;exports.Timeline=ds;exports.Title=go;exports.Toast=ps;exports.Tooltip=Me;exports.TransferList=_s;exports.WithReadOnlyWrapper=K;
|
|
2
2
|
//# sourceMappingURL=mantine-adapter.cjs.map
|