@recursica/mantine-adapter 0.11.0 → 0.13.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @recursica/mantine-adapter
2
2
 
3
+ ## 0.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b5bacdb: Added polymorphic support
8
+
9
+ ## 0.12.0
10
+
11
+ ### Minor Changes
12
+
13
+ - d8f8580: Implemented menu component
14
+
15
+ ### Patch Changes
16
+
17
+ - 9c6e275: Updated documentation
18
+
3
19
  ## 0.11.0
4
20
 
5
21
  ### Minor Changes
package/README.md CHANGED
@@ -22,31 +22,16 @@ npm install @mantine/core@>=8.0.0 @mantine/dates@>=8.0.0 @mantine/hooks@>=8.0.0
22
22
 
23
23
  **Important**: Make sure you have these exact versions or higher installed, as the components rely on Mantine 8+ features and React 16.8+ hooks.
24
24
 
25
- ## Quick Start
26
-
27
- To use `@recursica/mantine-adapter` in your project, you **must** import its required CSS files in a specific order at the root of your application (e.g., in `App.tsx` or `main.tsx`). This ensures that Mantine styles load first, followed by the Recursica design tokens, and finally the adapter overrides.
28
-
29
- ```tsx
30
- import "@mantine/core/styles.css";
31
- import "../path/to/recursica_variables_scoped.css"; // Import your Recursica CSS variables
32
- import "@recursica/mantine-adapter/style.css";
33
-
34
- import React from "react";
35
- import { Button } from "@recursica/mantine-adapter";
25
+ ## Philosophy
36
26
 
37
- function App() {
38
- return <Button variant="solid">Click Me</Button>;
39
- }
40
- ```
27
+ Please read [PHILOSOPHY.md](./docs/PHILOSOPHY.md) to understand the core principles of the adapter.
41
28
 
42
- ## Philosophy
29
+ ## Developer & AI Guidelines
43
30
 
44
- The `@recursica/mantine-adapter` is designed to provide curated, strictly-typed UI components tailored specifically following the Recursica styling and behavior guidelines.
31
+ This repository provides dedicated routing documents for both human developers and AI Agents to ensure strict adherence to our design system constraints.
45
32
 
46
- - **Override, Don't Corrupt**: Recursica components are built as wrappers around Mantine components to seamlessly override their default appearance with Recursica stylings. We deliberately **leave the base Mantine global styles and theme alone** so that it does not negatively impact the overall project or third-party libraries depending on standard Mantine.
47
- - **Strictly Curated Props**: We expose a complete set of Mantine props via our Recursica components, but **not all props are fully supported**. We restrict certain props if they do not fit the established UI definition, styles, or behaviors of the Recursica design system.
48
- - **Avoid Overstyling**: Developers are encouraged to use Recursica components precisely as they are provided. You should **not overstyle them** (e.g., injecting custom styles or class names that conflict with the adapter) as this risks breaking the carefully constructed styling connections and visual consistency.
49
- - **Need Something Different?**: If you need to build a UI element with completely different styling that deviates from the design system, you are encouraged to import the base component directly from `@mantine/core` and style it yourself to achieve your goal.
33
+ - **For Human Developers:** This `README.md` acts as your primary routing document. If you are integrating this library into an application, please read [USAGE.md](./USAGE.md). If you are building or modifying components inside this library, please read [CONTRIBUTING.md](./CONTRIBUTING.md).
34
+ - **For AI Agents:** All AI Agents operating in this repository must start by reading [AGENT.md](./AGENT.md), which serves as the primary routing document for AI workflows.
50
35
 
51
36
  ## Development and Architecture
52
37
 
@@ -80,13 +65,6 @@ This will spin up a local server (typically at `http://localhost:6006`) with a h
80
65
 
81
66
  All newly built components will include full TypeScript support with comprehensive prop types exported.
82
67
 
83
- ## Developer & AI Guidelines
84
-
85
- This repository provides dedicated routing documents for both human developers and AI Agents to ensure strict adherence to our design system constraints.
86
-
87
- - **For Human Developers:** This `README.md` acts as your primary routing document. If you are integrating this library into an application, please read [USAGE.md](./USAGE.md). If you are building or modifying components inside this library, please read [CONTRIBUTING.md](./CONTRIBUTING.md).
88
- - **For AI Agents:** All AI Agents operating in this repository must start by reading [AGENT.md](./AGENT.md), which serves as the primary routing document for AI workflows.
89
-
90
68
  ## License
91
69
 
92
70
  This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("react"),v=require("@mantine/core"),oo=["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"],to=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Re={"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 C(o,t){if(t)return o;const n={...o};for(const s of oo)s in n&&delete n[s];for(const[s,r]of Object.entries(n))typeof r=="string"&&r.startsWith("rec-")&&to.has(s)&&r in Re&&(n[s]=Re[r]);return n}const ro="Accordion-module__root___Dem6d",so="Accordion-module__item___7ryVk",ao="Accordion-module__noDivider___Ni2tT",no="Accordion-module__control___b4wgX",lo="Accordion-module__label___Ss7uW",io="Accordion-module__chevron___i-HVZ",co="Accordion-module__iconLeftWrapper___5oLen",po="Accordion-module__panel___Wx50w",mo="Accordion-module__content___PEM9t",H={root:ro,item:so,noDivider:ao,control:no,label:lo,chevron:io,iconLeftWrapper:co,panel:po,content:mo},Te=function({variant:t="unstyled",overStyled:n=!1,...s}){const r=C(s,n),a={root:H.root,item:H.item,control:H.control,label:H.label,chevron:H.chevron,panel:H.panel,content:H.content},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(i=>{a[i]?a[i]=`${a[i]} ${d[i]}`:a[i]=d[i]})}const l=r.className;return e.jsx(v.Accordion,{variant:t,className:l,classNames:a,...r})};Te.displayName="Accordion";const ye=y.forwardRef(function({title:t,leftIcon:n,divider:s=!0,children:r,overStyled:a=!1,...c},l){const d=C(c,a),i=d.className,p=[s?void 0:H.noDivider,i].filter(Boolean).join(" ")||void 0;return e.jsx(v.Accordion.Item,{ref:l,className:p,...d,children:t?e.jsxs(e.Fragment,{children:[e.jsx(me,{leftIcon:n,children:t}),e.jsx(ue,{children:r})]}):r})});ye.displayName="AccordionItem";const me=y.forwardRef(function({leftIcon:t,children:n,overStyled:s=!1,...r},a){const c=C(r,s),l=c.className;return e.jsx(v.Accordion.Control,{ref:a,className:l,icon:t?e.jsx("span",{className:H.iconLeftWrapper,"aria-hidden":!0,children:t}):void 0,...c,children:n})});me.displayName="AccordionControl";const ue=y.forwardRef(function({overStyled:t=!1,...n},s){const r=C(n,t),a=r.className;return e.jsx(v.Accordion.Panel,{ref:s,className:a,...r})});ue.displayName="AccordionPanel";const _e=Te;_e.Item=ye;_e.Control=me;_e.Panel=ue;const uo="Avatar-module__root___fXu-J",_o="Avatar-module__iconWrapper___ojly2",fo="Avatar-module__textWrapper___zp-jD",bo="Avatar-module__image___ieqGp",yo="Avatar-module__placeholder___IDW7-",G={root:uo,iconWrapper:_o,textWrapper:fo,image:bo,placeholder:yo},Oe=y.forwardRef(function({size:t="default",variant:n="solid",icon:s,className:r,classNames:a,children:c,style:l,src:d,...i},p){const u={solid:"filled",outline:"outline",ghost:"transparent"},b={default:"md",small:"sm",large:"lg"};let m="text";d?m="image":s&&(m="icon");const _={root:G.root,image:G.image,placeholder:G.placeholder};if(a&&typeof a=="object"&&!Array.isArray(a)){const h=a;_.root=h.root?`${G.root} ${h.root}`:G.root,_.image=h.image?`${G.image} ${h.image}`:G.image,_.placeholder=h.placeholder?`${G.placeholder} ${h.placeholder}`:G.placeholder}return e.jsx(v.Avatar,{ref:p,className:r,classNames:_,variant:u[n],size:b[t],style:l,src:d,"data-variant":n,"data-size":t,"data-style":m,...i,children:s!=null?e.jsx("span",{className:G.iconWrapper,"aria-hidden":!0,children:s}):c!=null?e.jsx("span",{className:G.textWrapper,children:c}):void 0})});Oe.displayName="Avatar";const ho="Badge-module__root___5osNT",q={root:ho},Le=y.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...s},r){const a=C(s,n),c={root:q.root,section:q.section,label:q.label},l=a.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;c.root=p.root?`${q.root} ${p.root}`:q.root,c.section=p.section??q.section,c.label=p.label??q.label}const d=a.className,i=d?`${q.root} ${d}`:q.root;return e.jsx(v.Badge,{ref:r,variant:"filled","data-variant":t,...a,className:i,classNames:c})});Le.displayName="Badge";const xo="Breadcrumb-module__root___x-9ln",No="Breadcrumb-module__separator___qrUX-",K={root:xo,separator:No},Ie=y.forwardRef(function({overStyled:t=!1,separator:n=">",...s},r){const a=C({separator:n,...s},t),c={root:K.root,separator:K.separator},l=a.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;c.root=p.root?`${K.root} ${p.root}`:K.root,c.separator=p.separator?`${K.separator} ${p.separator}`:K.separator}const d=a.className,i=d?`${K.root} ${d}`:K.root;return e.jsx(v.Breadcrumbs,{ref:r,...a,className:i,classNames:c})});Ie.displayName="Breadcrumb";const $o="Button-module__root___Q2R8-",vo="Button-module__label___UJ3Zt",Co="Button-module__labelText___rFV5p",jo="Button-module__iconWrapper___uEKPa",wo="Button-module__section___f2mKr",M={root:$o,label:vo,labelText:Co,iconWrapper:jo,section:wo};function go(o){return o==null||o===""?!1:typeof o=="string"?o.trim()!=="":!0}const Fe=y.forwardRef(function({variant:t="solid",size:n="default",icon:s,children:r,overStyled:a=!1,...c},l){const d={solid:"filled",outline:"outline",text:"subtle"},i={default:"md",small:"sm"},p=C(c,a),u=p;delete u.fullWidth;const b=!!s||!!u.leftSection,m=!!u.rightSection,_=(b||m)&&!go(r);typeof process<"u"&&process.env.NODE_ENV!=="production"&&_&&!u["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const h={root:M.root,section:M.section,label:M.label},$=u.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const f=$;h.root=f.root?`${M.root} ${f.root}`:M.root,h.section=f.section??M.section,h.label=f.label??M.label}const x=u.className,j=x?`${M.root} ${x}`:M.root;return e.jsx(v.Button,{ref:l,className:j,classNames:h,variant:d[t],size:i[n],leftSection:s!=null?e.jsx("span",{className:M.iconWrapper,"aria-hidden":!0,children:s}):void 0,"data-variant":t,"data-size":n,..._?{"data-icon-only":""}:{},...p,children:e.jsx("span",{className:M.labelText,children:r})})});Fe.displayName="Button";const ko="Card-module__root___c9KvZ",Wo="Card-module__header___PTXf2",Ao="Card-module__footer___Mu-JC",Ro="Card-module__section___BRT8H",Po="Card-module__content___oFIQa",Y={root:ko,header:Wo,footer:Ao,section:Ro,content:Po},ze=y.forwardRef(function({overStyled:t=!1,...n},s){const r=C(n,t),a={root:Y.root},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(i=>{a[i]?a[i]=`${a[i]} ${d[i]}`:a[i]=d[i]})}const l=r.className;return e.jsx(v.Card,{ref:s,className:l,classNames:a,...r})});ze.displayName="Card";const he=y.forwardRef(function({overStyled:t=!1,...n},s){const r=C(n,t),a=r.className;return e.jsx(v.Card.Section,{ref:s,className:a?`${Y.section} ${a}`:Y.section,...r})});he.displayName="CardSection";const xe=y.forwardRef(function({overStyled:t=!1,...n},s){const r=C(n,t),a=r.className;return e.jsx(v.Card.Section,{ref:s,className:a?`${Y.header} ${a}`:Y.header,...r})});xe.displayName="CardHeader";const Ne=y.forwardRef(function({overStyled:t=!1,...n},s){const r=C(n,t),a=r.className;return e.jsx(v.Card.Section,{ref:s,className:a?`${Y.footer} ${a}`:Y.footer,...r})});Ne.displayName="CardFooter";const $e=y.forwardRef(function({overStyled:t=!1,...n},s){const r=C(n,t),a=r.className;return e.jsx("div",{ref:s,className:a?`${Y.content} ${a}`:Y.content,...r})});$e.displayName="CardContent";const le=ze;le.Section=he;le.Header=xe;le.Footer=Ne;le.Content=$e;const So="Label-module__root___e6HXZ",To="Label-module__labelText___rieFR",Oo="Label-module__required___Ggrzc",Lo="Label-module__optionalText___Y2yun",Io="Label-module__actionAreaWrapper___ELoZK",Fo="Label-module__editIconWrapper___NG2xW",V={root:So,labelText:To,required:Oo,optionalText:Lo,actionAreaWrapper:Io,editIconWrapper:Fo},ve=y.forwardRef(function({labelSize:t="default",labelAlignment:n,required:s=!1,labelOptionalText:r,labelWithEditIcon:a,labelActionArea:c,onLabelEditClick:l,children:d,overStyled:i=!1,...p},u){const b=n||"left";let m;s||(r===!0?m="optional":r&&(m=r));const _=C(p,i),h=_,$={label:V.root,required:V.required},x=h.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const k=x;$.label=k.label?`${V.root} ${k.label}`:V.root,$.required=k.required?`${V.required} ${k.required}`:V.required}const j=h.className,f=j?`${V.root} ${j}`:V.root;return e.jsxs(v.Input.Label,{ref:u,className:f,classNames:$,"data-size":t,"data-alignment":b,required:s&&!a,..._,children:[e.jsx("span",{className:V.labelText,children:d}),m&&e.jsx("span",{className:V.optionalText,children:typeof m=="string"?`(${m})`:m}),c?e.jsx("span",{className:V.actionAreaWrapper,children:c}):a?e.jsx("button",{type:"button",className:V.editIconWrapper,"data-replaces-asterisk":s?"true":void 0,onClick:l,"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]})});ve.displayName="Label";const zo="FormControlLayout-module__root___yNDhZ",Bo="FormControlLayout-module__leftSection___GBM1r",Eo="FormControlLayout-module__rightSection___bcL4v",ce={root:zo,leftSection:Bo,rightSection:Eo},Z=y.forwardRef(function({formLayout:t="stacked",labelSize:n="default",controlMaxWidth:s,controlMinWidth:r,leftSection:a,children:c,className:l,style:d,...i},p){const u=l?`${ce.root} ${l}`:ce.root,m=a!=null||t==="side-by-side";return e.jsxs("div",{ref:p,className:u,"data-form-layout":t,style:{...d,...s?{"--form-control-max-width":s}:{},...r?{"--form-control-min-width":r}:{}},...i,children:[m&&e.jsx("div",{className:ce.leftSection,"data-size":n,children:a}),e.jsx("div",{className:ce.rightSection,children:c})]})});Z.displayName="FormControlLayout";const Vo="AssistiveElement-module__root___WhQ43",Go="AssistiveElement-module__textWrapper___sfy5E",Mo="AssistiveElement-module__iconWrapper___gObRF",fe={root:Vo,textWrapper:Go,iconWrapper:Mo},qo=()=>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"})]}),Do=()=>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"})]}),be=y.forwardRef(function({assistiveVariant:t="help",assistiveWithIcon:n=!0,children:s,className:r,overStyled:a=!1,...c},l){const i=C(c,a),p=fe.root,u=r?`${p} ${r}`:p,b=t==="error"?Do:qo;return e.jsxs("div",{ref:l,className:u,"data-variant":t,style:i.style,...i,children:[n&&e.jsx("span",{className:fe.iconWrapper,children:e.jsx(b,{})}),e.jsx("span",{className:fe.textWrapper,children:s})]})});be.displayName="AssistiveElement";const Ho="FormControlWrapper-module__inputSection___HenXk",Pe={inputSection:Ho},de=y.forwardRef(function({formLayout:t,labelSize:n,labelAlignment:s,labelOptionalText:r,labelWithEditIcon:a,labelActionArea:c,onLabelEditClick:l,label:d,description:i,assistiveText:p,assistiveWithIcon:u=!0,controlMaxWidth:b,controlMinWidth:m,error:_,required:h,withAsterisk:$,id:x,children:j,className:f,overStyled:k=!1,labelElement:N,...I},O){const R=y.useId(),L=x||`recursica-fc-${R}`,F=p||i,P=F?`${L}-assistive`:void 0,S=_?`${L}-error`:void 0,T=C(I,k),Q=f||T.className,ie=Pe.root,E=Q?`${ie} ${Q}`:ie,Je=y.isValidElement(j)?y.cloneElement(j,{...F&&!j.props["aria-describedby"]?{"aria-describedby":P}:{},..._&&!j.props["aria-errormessage"]?{"aria-errormessage":S}:{}}):j,eo=d?e.jsx(ve,{id:L,labelAlignment:s,labelOptionalText:r,labelWithEditIcon:a,labelActionArea:c,onLabelEditClick:l,required:$??h,...N==="div"?{as:"div"}:{},children:d}):void 0;return e.jsx(Z,{ref:O,className:E,formLayout:t,labelSize:n,controlMaxWidth:b,controlMinWidth:m,leftSection:eo,...T,children:e.jsxs("div",{className:Pe.inputSection,children:[Je,_&&e.jsx(be,{id:S,assistiveVariant:"error",assistiveWithIcon:u,children:_}),!_&&F&&e.jsx(be,{id:P,assistiveVariant:"help",assistiveWithIcon:u,children:F})]})})});de.displayName="FormControlWrapper";const Yo="_root_1qhn7_3",Zo="_contents_1qhn7_18",X={root:Yo,contents:Zo},Be=y.forwardRef(function({layer:o,contentsOnly:t,children:n,className:s,style:r,...a},c){const l=t?s?`${X.root} ${X.contents} ${s}`:`${X.root} ${X.contents}`:s?`${X.root} ${s}`:X.root;return e.jsx("div",{ref:c,className:l,style:r,...t?{}:{"data-recursica-layer":String(o)},...a,children:n})});Be.displayName="Layer";const ne=({emptyText:o="N/A"})=>e.jsx(y.Fragment,{children:o});ne.displayName="EmptyValueRenderer";ne.check=o=>o==null||o===""||Array.isArray(o)&&o.length===0;const Se="data-recursica-theme";function Ko({children:o,theme:t="light"}){return y.useEffect(()=>{const n=document.documentElement;return n.setAttribute(Se,t),()=>{n.removeAttribute(Se)}},[t]),e.jsx(e.Fragment,{children:o})}const Uo="ReadOnlyField-module__textField___qKn25",pe={textField:Uo},ae=({value:o,overStyled:t=!1,...n})=>{const s=C(n,t),r=s.className;return e.jsx(v.Box,{component:"p",className:r?`${pe.textField} ${r}`:pe.textField,...s,children:o!=null?y.isValidElement(o)?o:Array.isArray(o)?o.join(", "):String(o):""})};ae.displayName="ReadOnlyTextField";const Ce=y.forwardRef(function({value:t,type:n="text",emptyValueComponent:s,overStyled:r=!1,...a},c){let l=null;const d=C(a,r),i=s||ne,u=(i.check?i.check(t):ne.check(t))?e.jsx(i,{value:t}):t;switch(n){case"boolean":l=e.jsx(ae,{value:t===!0?"True":t===!1?"False":u,overStyled:r});break;case"switch":l=e.jsx(ae,{value:t===!0?"On":t===!1?"Off":u,overStyled:r});break;case"text":default:l=e.jsx(ae,{value:u,overStyled:r});break}return e.jsx(de,{ref:c,overStyled:r,...d,children:l})});Ce.displayName="ReadOnlyField";const U=y.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:s="text",readOnlyValue:r,readOnlyNativeProps:a,emptyValueComponent:c,activeComponent:l,overStyled:d,onLabelEditClick:i,...p},u){if(t){if(n){const b=n;return e.jsx(de,{ref:u,...p,onLabelEditClick:i,overStyled:d,children:e.jsx(b,{...a})})}return e.jsx(Ce,{ref:u,type:s,value:r,emptyValueComponent:c,onLabelEditClick:i,overStyled:d,...p})}return e.jsx(de,{ref:u,...p,onLabelEditClick:i,overStyled:d,children:l})});U.displayName="WithReadOnlyWrapper";const Qo="Checkbox-module__groupRoot___cBS0o",Xo="Checkbox-module__root___mY3qk",Jo="Checkbox-module__body___5yC7q",et="Checkbox-module__inner___rTke4",ot="Checkbox-module__input___2kt-h",tt="Checkbox-module__icon___-O7i6",rt="Checkbox-module__labelWrapper___GpZkr",st="Checkbox-module__label___cwRtI",W={groupRoot:Qo,root:Xo,body:Jo,inner:et,input:ot,icon:tt,labelWrapper:rt,label:st},je=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:r="stacked",labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:u,assistiveText:b,assistiveWithIcon:m,error:_,required:h,withAsterisk:$,id:x,className:j,style:f,children:k,readOnly:N,readOnlyComponent:I,emptyValueComponent:O,value:R,defaultValue:L,...F}=t,P=C(F,s),S=P;return delete S.size,e.jsx(U,{className:j,style:f,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:r,labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:u,assistiveText:b,assistiveWithIcon:m,error:_,required:h,withAsterisk:$,id:x,readOnly:N&&!!I,readOnlyComponent:I,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:R!==void 0?R:L,readOnlyNativeProps:t,activeComponent:e.jsx(v.Checkbox.Group,{ref:n,...P,disabled:N||S.disabled,value:R,defaultValue:L,children:e.jsx("div",{className:W.groupRoot,"data-layout":r,children:y.Children.map(k,w=>y.isValidElement(w)?y.cloneElement(w,{disabled:N||w.props.disabled}):w)})})})});je.displayName="CheckboxGroup";const we=y.forwardRef(function(t,n){const{overStyled:s=!1,readOnly:r,readOnlyComponent:a,disabled:c,formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,...u}=t,b=C(u,s),m=b;delete m.size,delete m.color,delete m.radius,delete m.variant,delete m.iconColor;const _={root:W.root,body:W.body,inner:W.inner,input:W.input,icon:W.icon,labelWrapper:W.labelWrapper,label:W.label},h=m.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const f=h;_.root=f.root?`${W.root} ${f.root}`:W.root,_.body=f.body?`${W.body} ${f.body}`:W.body,_.inner=f.inner?`${W.inner} ${f.inner}`:W.inner,_.input=f.input?`${W.input} ${f.input}`:W.input,_.icon=f.icon?`${W.icon} ${f.icon}`:W.icon,_.labelWrapper=f.labelWrapper?`${W.labelWrapper} ${f.labelWrapper}`:W.labelWrapper,_.label=f.label?`${W.label} ${f.label}`:W.label}const $=m.className,x=$?`${W.root} ${$}`:W.root;if(r&&a){const f=!!(m.checked??m.defaultChecked),k=a,N=e.jsx(k,{...t,checked:f,label:m.label});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:N}):e.jsx(e.Fragment,{children:N})}const j=e.jsx(v.Checkbox,{ref:n,className:x,classNames:_,disabled:r||c,...b});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:j}):j});we.displayName="Checkbox";we.Group=je;const at="Chip-module__root___f5pFk",nt="Chip-module__label___Ov9pg",lt="Chip-module__mantineIconWrapper___KLSz6",it="Chip-module__innerWrapper___EnrTF",ct="Chip-module__children___zbRAR",dt="Chip-module__leadingIcon___JBtjQ",pt="Chip-module__removeIcon___pVju-",z={root:at,label:nt,mantineIconWrapper:lt,innerWrapper:it,children:ct,leadingIcon:dt,removeIcon:pt};function mt(o){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",...o,children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Ee=y.forwardRef(function({error:t=!1,icon:n,onRemove:s,removeLabel:r="Remove",children:a,overStyled:c=!1,...l},d){const i=C(l,c),p=i,u={root:z.root,label:z.label,input:z.input,iconWrapper:z.mantineIconWrapper,checkIcon:z.checkIcon},b=p.classNames;if(b&&typeof b=="object"&&!Array.isArray(b)){const x=b;u.root=x.root?`${z.root} ${x.root}`:z.root,u.label=x.label?`${z.label} ${x.label}`:z.label}const m=p.className,_=m?`${z.root} ${m}`:z.root,h=t?"":void 0,$=!a&&(!!n||!!s);return e.jsx(v.Chip,{ref:d,className:_,classNames:u,...h!==void 0?{"data-error":""}:{},...$?{"data-icon-only":""}:{},...i,children:e.jsxs("span",{className:z.innerWrapper,children:[n&&e.jsx("span",{className:z.leadingIcon,"aria-hidden":!0,children:n}),e.jsx("span",{className:z.children,children:a}),s&&e.jsx("span",{role:"button",className:z.removeIcon,onClick:x=>{x.preventDefault(),x.stopPropagation(),s(x)},"aria-label":r,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),s(x))},tabIndex:0,children:e.jsx(mt,{})})]})})});Ee.displayName="Chip";const ut="Container-module__root___UVssr",ee={root:ut},Ve=y.forwardRef(function({children:t,size:n,overStyled:s=!1,...r},a){const c=C(r,s),l=c,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:ee.root},u=l.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const _=u;p.root=_.root?`${ee.root} ${_.root}`:ee.root}const b=l.className,m=b?`${ee.root} ${b}`:ee.root;return e.jsx(v.Container,{ref:a,size:i,className:m,classNames:p,...c,children:t})});Ve.displayName="Container";const _t=o=>e.jsx("div",{...o,children:"DatePicker"}),ft="Dropdown-module__root___uVyL0",bt="Dropdown-module__input___dK4dN",yt="Dropdown-module__section___j3MRB",ht="Dropdown-module__dropdown___gG-Sw",xt="Dropdown-module__option___nAGU-",B={root:ft,input:bt,section:yt,dropdown:ht,option:xt},Ge=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:r="stacked",containerWidth:a,labelSize:c,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:i,onLabelEditClick:p,label:u,assistiveText:b,assistiveWithIcon:m,error:_,required:h,withAsterisk:$,id:x,className:j,style:f,disabled:k,readOnly:N,readOnlyComponent:I,emptyValueComponent:O,value:R,defaultValue:L,data:F,...P}=t,S=C(P,s),w=S;delete w.size,delete w.variant,delete w.radius;const T={wrapper:B.root,input:B.input,section:B.section,dropdown:B.dropdown,option:B.option},Q=w.classNames;if(Q&&typeof Q=="object"&&!Array.isArray(Q)){const E=Q;T.wrapper=E.wrapper?`${B.root} ${E.wrapper}`:B.root,T.input=E.input?`${B.input} ${E.input}`:B.input,T.section=E.section?`${B.section} ${E.section}`:B.section,T.dropdown=E.dropdown?`${B.dropdown} ${E.dropdown}`:B.dropdown,T.option=E.option?`${B.option} ${E.option}`:B.option}const ie={...f||{},width:a||"100%"};return e.jsx(U,{className:j,style:ie,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:s,formLayout:r,labelSize:c,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:i,onLabelEditClick:p,label:u,assistiveText:b,assistiveWithIcon:m,error:_,required:h,withAsterisk:$,id:x,readOnly:N,readOnlyComponent:I,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:R!==void 0?String(R):L?String(L):void 0,readOnlyNativeProps:t,activeComponent:e.jsx(v.Select,{ref:n,classNames:T,disabled:k,value:R,defaultValue:L,data:F||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":k?"true":void 0,"data-error":_?"true":void 0},...S})})});Ge.displayName="Dropdown";const Nt=o=>e.jsx("div",{...o,children:"FileInput"}),$t=o=>e.jsx("div",{...o,children:"FileUpload"}),vt="Flex-module__root___yYser",oe={root:vt},Me=y.forwardRef(function({children:t,overStyled:n=!1,gap:s="rec-default",...r},a){const c=C({...r,gap:s},n),l=c,d={root:oe.root},i=l.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const b=i;d.root=b.root?`${oe.root} ${b.root}`:oe.root}const p=l.className,u=p?`${oe.root} ${p}`:oe.root;return e.jsx(v.Flex,{ref:a,className:u,classNames:d,...c,children:t})});Me.displayName="Flex";const Ct="Group-module__root___ftO64",te={root:Ct},qe=y.forwardRef(function({children:t,overStyled:n=!1,gap:s="rec-default",...r},a){const c=C({...r,gap:s},n),l=c,d={root:te.root},i=l.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const b=i;d.root=b.root?`${te.root} ${b.root}`:te.root}const p=l.className,u=p?`${te.root} ${p}`:te.root;return e.jsx(v.Group,{ref:a,className:u,classNames:d,...c,children:t})});qe.displayName="Group";const jt=o=>e.jsx("div",{...o,children:"HoverCard"}),wt=o=>e.jsx("div",{...o,children:"Link"}),gt="Loader-module__root___6iYOP",re={root:gt},De=y.forwardRef(function({variant:t="oval",size:n="default",overStyled:s=!1,...r},a){const l={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",d=C(r,s),i={root:re.root},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const m=p;i.root=m.root?`${re.root} ${m.root}`:re.root}const u=d.className,b=u?`${re.root} ${u}`:re.root;return e.jsx(v.Loader,{ref:a,type:t,"data-variant":t,"data-size":l,...d,className:b,classNames:i})});De.displayName="Loader";const kt=o=>e.jsx("div",{...o,children:"Menu"}),Wt=o=>e.jsx("div",{...o,children:"Modal"}),At=o=>e.jsx("div",{...o,children:"NumberInput"}),Rt=o=>e.jsx("div",{...o,children:"Pagination"}),Pt=o=>e.jsx("div",{...o,children:"Panel"}),St=o=>e.jsx("div",{...o,children:"Popover"}),Tt="Radio-module__groupRoot___bfUii",Ot="Radio-module__root___kAjTD",Lt="Radio-module__body___q2Wpj",It="Radio-module__inner___QaTBB",Ft="Radio-module__radio___MfgN-",zt="Radio-module__icon___DWznm",Bt="Radio-module__labelWrapper___dB0Gi",Et="Radio-module__label___vAFIP",A={groupRoot:Tt,root:Ot,body:Lt,inner:It,radio:Ft,icon:zt,labelWrapper:Bt,label:Et},ge=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:r="stacked",labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:u,assistiveText:b,assistiveWithIcon:m,error:_,required:h,withAsterisk:$,id:x,className:j,style:f,children:k,readOnly:N,readOnlyComponent:I,emptyValueComponent:O,value:R,defaultValue:L,...F}=t,P=C(F,s),S=P;return delete S.size,e.jsx(U,{className:j,style:f,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:r,labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:u,assistiveText:b,assistiveWithIcon:m,error:_,required:h,withAsterisk:$,id:x,readOnly:N&&!!I,readOnlyComponent:I,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:R!==void 0?R:L,readOnlyNativeProps:t,activeComponent:e.jsx(v.Radio.Group,{ref:n,...P,disabled:N||S.disabled,value:R,defaultValue:L,children:e.jsx("div",{className:A.groupRoot,"data-layout":r,children:y.Children.map(k,w=>y.isValidElement(w)?y.cloneElement(w,{disabled:N||w.props.disabled}):w)})})})});ge.displayName="RadioGroup";const Vt=({className:o,style:t})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:o,style:t,children:e.jsx("circle",{cx:"8",cy:"8",r:"5"})}),ke=y.forwardRef(function(t,n){const{overStyled:s=!1,readOnly:r,readOnlyComponent:a,disabled:c,formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,...u}=t,b=C(u,s),m=b;delete m.size,delete m.color,delete m.radius,delete m.variant,delete m.iconColor;const _={root:A.root,body:A.body,inner:A.inner,radio:A.radio,icon:A.icon,labelWrapper:A.labelWrapper,label:A.label},h=m.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const f=h;_.root=f.root?`${A.root} ${f.root}`:A.root,_.body=f.body?`${A.body} ${f.body}`:A.body,_.inner=f.inner?`${A.inner} ${f.inner}`:A.inner,_.radio=f.radio?`${A.radio} ${f.radio}`:A.radio,_.icon=f.icon?`${A.icon} ${f.icon}`:A.icon,_.labelWrapper=f.labelWrapper?`${A.labelWrapper} ${f.labelWrapper}`:A.labelWrapper,_.label=f.label?`${A.label} ${f.label}`:A.label}const $=m.className,x=$?`${A.root} ${$}`:A.root;if(r&&a){const f=!!(m.checked??m.defaultChecked),k=a,N=e.jsx(k,{...t,checked:f,label:m.label});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:N}):e.jsx(e.Fragment,{children:N})}const j=e.jsx(v.Radio,{ref:n,icon:Vt,className:x,classNames:_,disabled:r||c,...b});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:j}):j});ke.displayName="Radio";ke.Group=ge;const He=({checked:o,label:t})=>e.jsxs(v.Box,{component:"span",className:pe.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[t&&e.jsxs("span",{style:{fontWeight:500},children:[t,":"]}),e.jsx("span",{children:o?"On":"Off"})]});He.displayName="ReadOnlySwitchField";const Ye=({checked:o,label:t})=>e.jsxs(v.Box,{component:"span",className:pe.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[t&&e.jsxs("span",{style:{fontWeight:500},children:[t,":"]}),e.jsx("span",{children:o?"True":"False"})]});Ye.displayName="ReadOnlyBooleanField";const Gt=o=>e.jsx("div",{...o,children:"Search"}),Mt=o=>e.jsx("div",{...o,children:"SegmentedControl"}),qt=o=>e.jsx("div",{...o,children:"Slider"}),Dt="Stack-module__root___NUN-x",se={root:Dt},Ze=y.forwardRef(function({children:t,overStyled:n=!1,gap:s="rec-default",...r},a){const c=C({...r,gap:s},n),l=c,d={root:se.root},i=l.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const b=i;d.root=b.root?`${se.root} ${b.root}`:se.root}const p=l.className,u=p?`${se.root} ${p}`:se.root;return e.jsx(v.Stack,{ref:a,className:u,classNames:d,...c,children:t})});Ze.displayName="Stack";const Ht=o=>e.jsx("div",{...o,children:"Stepper"}),Yt="Switch-module__root___Y5Ydi",Zt="Switch-module__body___Sw9Wr",Kt="Switch-module__track___7ObdZ",Ut="Switch-module__thumb___-FTeK",Qt="Switch-module__labelWrapper___YSOwx",Xt="Switch-module__label___LrH7V",Jt="Switch-module__thumbIconWrapper___sCY-1",er="Switch-module__checkIcon___ZBAQN",or="Switch-module__closeIcon___bLLGw",tr="Switch-module__groupRoot___-Uepi",g={root:Yt,body:Zt,track:Kt,thumb:Ut,labelWrapper:Qt,label:Xt,thumbIconWrapper:Jt,checkIcon:er,closeIcon:or,groupRoot:tr},We=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:r="stacked",labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:u,assistiveText:b,assistiveWithIcon:m,error:_,required:h,withAsterisk:$,id:x,className:j,style:f,children:k,readOnly:N,readOnlyComponent:I,emptyValueComponent:O,value:R,defaultValue:L,...F}=t,P=C(F,s),S=P;return delete S.size,e.jsx(U,{className:j,style:f,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:r,labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:u,assistiveText:b,assistiveWithIcon:m,error:_,required:h,withAsterisk:$,id:x,readOnly:N&&!!I,readOnlyComponent:I,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:R!==void 0?R:L,readOnlyNativeProps:t,activeComponent:e.jsx(v.Switch.Group,{ref:n,...P,disabled:N||S.disabled,value:R,defaultValue:L,children:e.jsx("div",{className:g.groupRoot,children:y.Children.map(k,w=>y.isValidElement(w)?y.cloneElement(w,{disabled:N||w.props.disabled}):w)})})})});We.displayName="SwitchGroup";const Ae=y.forwardRef(function(t,n){const{overStyled:s=!1,readOnly:r,readOnlyComponent:a,disabled:c,thumbIcon:l,formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:u,...b}=t,m=C(b,s),_=m;delete _.size,delete _.color,delete _.radius,delete _.variant;const h={root:g.root,body:g.body,track:g.track,thumb:g.thumb,trackLabel:g.trackLabel,labelWrapper:g.labelWrapper,label:g.label},$=_.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const N=$;h.root=N.root?`${g.root} ${N.root}`:g.root,h.body=N.body?`${g.body} ${N.body}`:g.body,h.track=N.track?`${g.track} ${N.track}`:g.track,h.thumb=N.thumb?`${g.thumb} ${N.thumb}`:g.thumb,h.trackLabel=N.trackLabel?`${g.trackLabel} ${N.trackLabel}`:g.trackLabel,h.labelWrapper=N.labelWrapper?`${g.labelWrapper} ${N.labelWrapper}`:g.labelWrapper,h.label=N.label?`${g.label} ${N.label}`:g.label}const x=_.className,j=x?`${g.root} ${x}`:g.root;if(r&&a){const N=!!(_.checked??_.defaultChecked),I=a,O=e.jsx(I,{...t,checked:N,label:_.label});return d?e.jsx(Z,{formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:u,children:O}):e.jsx(e.Fragment,{children:O})}const f=e.jsxs("div",{className:g.thumbIconWrapper,children:[e.jsx(v.CheckIcon,{className:g.checkIcon}),e.jsx(v.CloseIcon,{className:g.closeIcon})]}),k=e.jsx(v.Switch,{ref:n,className:j,classNames:h,disabled:r||c,thumbIcon:l??f,...m});return d?e.jsx(Z,{formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:u,children:k}):k});Ae.displayName="Switch";Ae.Group=We;const rr=o=>e.jsx("div",{...o,children:"Table"}),sr=o=>e.jsx("div",{...o,children:"Tabs"}),Ke=y.forwardRef(function({overStyled:t=!1,variant:n="body",...s},r){const a=C(s,t),c=a.className,l=`recursica_brand_typography_${n}`,d=c?`${l} ${c}`:l;return e.jsx(v.Text,{ref:r,className:d,...a})});Ke.displayName="Text";const ar="TextArea-module__root___3dyeu",nr="TextArea-module__input___8l36v",J={root:ar,input:nr},Ue=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:r="stacked",labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:u,assistiveWithIcon:b,error:m,required:_,withAsterisk:h,id:$,className:x,style:j,disabled:f,readOnly:k,readOnlyComponent:N,emptyValueComponent:I,value:O,defaultValue:R,...L}=t,F=C(L,s),P=F;delete P.size,delete P.variant,delete P.radius;const S={wrapper:J.root,input:J.input},w=P.classNames;if(w&&typeof w=="object"&&!Array.isArray(w)){const T=w;S.wrapper=T.wrapper?`${J.root} ${T.wrapper}`:J.root,S.input=T.input?`${J.input} ${T.input}`:J.input}return e.jsx(U,{className:x,style:j,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:r,labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:u,assistiveWithIcon:b,error:m,required:_,withAsterisk:h,id:$,readOnly:k,readOnlyComponent:N,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:O!==void 0?O:R,readOnlyNativeProps:t,activeComponent:e.jsx(v.Textarea,{ref:n,classNames:S,disabled:f,value:O,defaultValue:R,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":f?"true":void 0,"data-error":m?"true":void 0},...F})})});Ue.displayName="TextArea";const lr="TextField-module__root___2ZYkG",ir="TextField-module__input___RL-My",cr="TextField-module__section___bCIJ0",D={root:lr,input:ir,section:cr},Qe=y.forwardRef(function(t,n){const{overStyled:s=!1,formLayout:r="stacked",labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:u,assistiveWithIcon:b,error:m,required:_,withAsterisk:h,id:$,className:x,style:j,disabled:f,readOnly:k,readOnlyComponent:N,emptyValueComponent:I,value:O,defaultValue:R,...L}=t,F=C(L,s),P=F;delete P.size,delete P.variant,delete P.radius;const S={wrapper:D.root,input:D.input,section:D.section},w=P.classNames;if(w&&typeof w=="object"&&!Array.isArray(w)){const T=w;S.wrapper=T.wrapper?`${D.root} ${T.wrapper}`:D.root,S.input=T.input?`${D.input} ${T.input}`:D.input,S.section=T.section?`${D.section} ${T.section}`:D.section}return e.jsx(U,{className:x,style:j,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:r,labelSize:a,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:u,assistiveWithIcon:b,error:m,required:_,withAsterisk:h,id:$,readOnly:k,readOnlyComponent:N,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:O!==void 0?O:R,readOnlyNativeProps:t,activeComponent:e.jsx(v.Input,{ref:n,classNames:S,disabled:f,value:O,defaultValue:R,wrapperProps:{"data-disabled":f?"true":void 0,"data-error":m?"true":void 0},...F})})});Qe.displayName="TextField";const dr=o=>e.jsx("div",{...o,children:"TimePicker"}),pr=o=>e.jsx("div",{...o,children:"Timeline"}),Xe=y.forwardRef(function({overStyled:t=!1,order:n=1,...s},r){const a=C(s,t),c=a.className,l=`recursica_brand_typography_h${n}`,d=c?`${l} ${c}`:l;return e.jsx(v.Title,{ref:r,order:n,className:d,...a})});Xe.displayName="Title";const mr=o=>e.jsx("div",{...o,children:"Toast"}),ur=o=>e.jsx("div",{...o,children:"Tooltip"}),_r=o=>e.jsx("div",{...o,children:"TransferList"});exports.Accordion=_e;exports.AccordionControl=me;exports.AccordionItem=ye;exports.AccordionPanel=ue;exports.Avatar=Oe;exports.Badge=Le;exports.Breadcrumb=Ie;exports.Button=Fe;exports.Card=le;exports.CardContent=$e;exports.CardFooter=Ne;exports.CardHeader=xe;exports.CardSection=he;exports.Checkbox=we;exports.CheckboxGroup=je;exports.Chip=Ee;exports.Container=Ve;exports.DatePicker=_t;exports.Dropdown=Ge;exports.EmptyValueRenderer=ne;exports.FileInput=Nt;exports.FileUpload=$t;exports.Flex=Me;exports.FormControlLayout=Z;exports.Group=qe;exports.HoverCard=jt;exports.Label=ve;exports.Layer=Be;exports.Link=wt;exports.Loader=De;exports.Menu=kt;exports.Modal=Wt;exports.NumberInput=At;exports.Pagination=Rt;exports.Panel=Pt;exports.Popover=St;exports.Radio=ke;exports.RadioGroup=ge;exports.ReadOnlyBooleanField=Ye;exports.ReadOnlyField=Ce;exports.ReadOnlySwitchField=He;exports.ReadOnlyTextField=ae;exports.RecursicaThemeProvider=Ko;exports.Search=Gt;exports.SegmentedControl=Mt;exports.Slider=qt;exports.Stack=Ze;exports.Stepper=Ht;exports.Switch=Ae;exports.SwitchGroup=We;exports.Table=rr;exports.Tabs=sr;exports.Text=Ke;exports.TextArea=Ue;exports.TextField=Qe;exports.TimePicker=dr;exports.Timeline=pr;exports.Title=Xe;exports.Toast=mr;exports.Tooltip=ur;exports.TransferList=_r;exports.WithReadOnlyWrapper=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("react"),y=require("@mantine/core"),bo=["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"],yo=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Te={"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 v(r,o){if(o)return r;const n={...r};for(const a of bo)a in n&&delete n[a];for(const[a,t]of Object.entries(n))typeof t=="string"&&t.startsWith("rec-")&&yo.has(a)&&t in Te&&(n[a]=Te[t]);return n}const ho="Accordion-module__root___Dem6d",xo="Accordion-module__item___7ryVk",No="Accordion-module__noDivider___Ni2tT",$o="Accordion-module__control___b4wgX",vo="Accordion-module__label___Ss7uW",Co="Accordion-module__chevron___i-HVZ",jo="Accordion-module__iconLeftWrapper___5oLen",wo="Accordion-module__panel___Wx50w",go="Accordion-module__content___PEM9t",H={root:ho,item:xo,noDivider:No,control:$o,label:vo,chevron:Co,iconLeftWrapper:jo,panel:wo,content:go},Oe=function({variant:o="unstyled",overStyled:n=!1,...a}){const t=v(a,n),s={root:H.root,item:H.item,control:H.control,label:H.label,chevron:H.chevron,panel:H.panel,content:H.content},c=t.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(i=>{s[i]?s[i]=`${s[i]} ${d[i]}`:s[i]=d[i]})}const l=t.className;return e.jsx(y.Accordion,{variant:o,className:l,classNames:s,...t})};Oe.displayName="Accordion";const Ne=b.forwardRef(function({title:o,leftIcon:n,divider:a=!0,children:t,overStyled:s=!1,...c},l){const d=v(c,s),i=d.className,p=[a?void 0:H.noDivider,i].filter(Boolean).join(" ")||void 0;return e.jsx(y.Accordion.Item,{ref:l,className:p,...d,children:o?e.jsxs(e.Fragment,{children:[e.jsx(ue,{leftIcon:n,children:o}),e.jsx(_e,{children:t})]}):t})});Ne.displayName="AccordionItem";const ue=b.forwardRef(function({leftIcon:o,children:n,overStyled:a=!1,...t},s){const c=v(t,a),l=c.className;return e.jsx(y.Accordion.Control,{ref:s,className:l,icon:o?e.jsx("span",{className:H.iconLeftWrapper,"aria-hidden":!0,children:o}):void 0,...c,children:n})});ue.displayName="AccordionControl";const _e=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(y.Accordion.Panel,{ref:a,className:s,...t})});_e.displayName="AccordionPanel";const fe=Oe;fe.Item=Ne;fe.Control=ue;fe.Panel=_e;const Po="Avatar-module__root___fXu-J",Ro="Avatar-module__iconWrapper___ojly2",Ao="Avatar-module__textWrapper___zp-jD",Wo="Avatar-module__image___ieqGp",So="Avatar-module__placeholder___IDW7-",D={root:Po,iconWrapper:Ro,textWrapper:Ao,image:Wo,placeholder:So},Me=b.forwardRef(function({size:o="default",variant:n="solid",icon:a,children:t,src:s,overStyled:c=!1,...l},d){const i={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},m=v(l,c),h=m;let u="text";s?u="image":a&&(u="icon");const _={root:D.root,image:D.image,placeholder:D.placeholder},N=h.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const x=N;_.root=x.root?`${D.root} ${x.root}`:D.root,_.image=x.image?`${D.image} ${x.image}`:D.image,_.placeholder=x.placeholder?`${D.placeholder} ${x.placeholder}`:D.placeholder}const C=h.className;return e.jsx(y.Avatar,{ref:d,className:C,classNames:_,variant:i[n],size:p[o],src:s,"data-variant":n,"data-size":o,"data-style":u,...m,children:a!=null?e.jsx("span",{className:D.iconWrapper,"aria-hidden":!0,children:a}):t!=null?e.jsx("span",{className:D.textWrapper,children:t}):void 0})});Me.displayName="Avatar";const ko=y.createPolymorphicComponent(Me),To="Badge-module__root___5osNT",G={root:To},ze=b.forwardRef(function({variant:o="primary-color",overStyled:n=!1,...a},t){const s=v(a,n),c={root:G.root,section:G.section,label:G.label},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;c.root=p.root?`${G.root} ${p.root}`:G.root,c.section=p.section??G.section,c.label=p.label??G.label}const d=s.className,i=d?`${G.root} ${d}`:G.root;return e.jsx(y.Badge,{ref:t,variant:"filled","data-variant":o,...s,className:i,classNames:c})});ze.displayName="Badge";const Io=y.createPolymorphicComponent(ze),Lo="Breadcrumb-module__root___x-9ln",Oo="Breadcrumb-module__separator___qrUX-",K={root:Lo,separator:Oo},Fe=b.forwardRef(function({overStyled:o=!1,separator:n=">",...a},t){const s=v({separator:n,...a},o),c={root:K.root,separator:K.separator},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;c.root=p.root?`${K.root} ${p.root}`:K.root,c.separator=p.separator?`${K.separator} ${p.separator}`:K.separator}const d=s.className,i=d?`${K.root} ${d}`:K.root;return e.jsx(y.Breadcrumbs,{ref:t,...s,className:i,classNames:c})});Fe.displayName="Breadcrumb";const Mo="Button-module__root___Q2R8-",zo="Button-module__label___UJ3Zt",Fo="Button-module__labelText___rFV5p",Bo="Button-module__iconWrapper___uEKPa",Eo="Button-module__section___f2mKr",V={root:Mo,label:zo,labelText:Fo,iconWrapper:Bo,section:Eo};function Do(r){return r==null||r===""?!1:typeof r=="string"?r.trim()!=="":!0}const Be=b.forwardRef(function({variant:o="solid",size:n="default",icon:a,children:t,overStyled:s=!1,...c},l){const d={solid:"filled",outline:"outline",text:"subtle"},i={default:"md",small:"sm"},p=v(c,s),m=p;delete m.fullWidth;const h=!!a||!!m.leftSection,u=!!m.rightSection,_=(h||u)&&!Do(t);typeof process<"u"&&process.env.NODE_ENV!=="production"&&_&&!m["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const N={root:V.root,section:V.section,label:V.label},C=m.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const f=C;N.root=f.root?`${V.root} ${f.root}`:V.root,N.section=f.section??V.section,N.label=f.label??V.label}const x=m.className,j=x?`${V.root} ${x}`:V.root;return e.jsx(y.Button,{ref:l,className:j,classNames:N,variant:d[o],size:i[n],leftSection:a!=null?e.jsx("span",{className:V.iconWrapper,"aria-hidden":!0,children:a}):void 0,"data-variant":o,"data-size":n,..._?{"data-icon-only":""}:{},...p,children:e.jsx("span",{className:V.labelText,children:t})})});Be.displayName="Button";const Vo=y.createPolymorphicComponent(Be),Go="Card-module__root___c9KvZ",qo="Card-module__header___PTXf2",Ho="Card-module__footer___Mu-JC",Yo="Card-module__section___BRT8H",Zo="Card-module__content___oFIQa",Y={root:Go,header:qo,footer:Ho,section:Yo,content:Zo},Ee=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s={root:Y.root},c=t.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(i=>{s[i]?s[i]=`${s[i]} ${d[i]}`:s[i]=d[i]})}const l=t.className;return e.jsx(y.Card,{ref:a,className:l,classNames:s,...t})});Ee.displayName="Card";const $e=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(y.Card.Section,{ref:a,className:s?`${Y.section} ${s}`:Y.section,...t})});$e.displayName="CardSection";const ve=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(y.Card.Section,{ref:a,className:s?`${Y.header} ${s}`:Y.header,...t})});ve.displayName="CardHeader";const Ce=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(y.Card.Section,{ref:a,className:s?`${Y.footer} ${s}`:Y.footer,...t})});Ce.displayName="CardFooter";const je=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx("div",{ref:a,className:s?`${Y.content} ${s}`:Y.content,...t})});je.displayName="CardContent";const De=y.createPolymorphicComponent(Ee),be=De;be.Section=$e;be.Header=ve;be.Footer=Ce;be.Content=je;const Ko=De,Uo="Label-module__root___e6HXZ",Xo="Label-module__labelText___rieFR",Qo="Label-module__required___Ggrzc",Jo="Label-module__optionalText___Y2yun",et="Label-module__actionAreaWrapper___ELoZK",ot="Label-module__editIconWrapper___NG2xW",E={root:Uo,labelText:Xo,required:Qo,optionalText:Jo,actionAreaWrapper:et,editIconWrapper:ot},we=b.forwardRef(function({labelSize:o="default",labelAlignment:n,required:a=!1,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:c,onLabelEditClick:l,children:d,overStyled:i=!1,...p},m){const h=n||"left";let u;a||(t===!0?u="optional":t&&(u=t));const _=v(p,i),N=_,C={label:E.root,required:E.required},x=N.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const P=x;C.label=P.label?`${E.root} ${P.label}`:E.root,C.required=P.required?`${E.required} ${P.required}`:E.required}const j=N.className,f=j?`${E.root} ${j}`:E.root;return e.jsxs(y.Input.Label,{ref:m,className:f,classNames:C,"data-size":o,"data-alignment":h,required:a&&!s,..._,children:[e.jsx("span",{className:E.labelText,children:d}),u&&e.jsx("span",{className:E.optionalText,children:typeof u=="string"?`(${u})`:u}),c?e.jsx("span",{className:E.actionAreaWrapper,children:c}):s?e.jsx("button",{type:"button",className:E.editIconWrapper,"data-replaces-asterisk":a?"true":void 0,onClick:l,"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]})});we.displayName="Label";const tt="FormControlLayout-module__root___yNDhZ",rt="FormControlLayout-module__leftSection___GBM1r",st="FormControlLayout-module__rightSection___bcL4v",de={root:tt,leftSection:rt,rightSection:st},Z=b.forwardRef(function({formLayout:o="stacked",labelSize:n="default",controlMaxWidth:a,controlMinWidth:t,leftSection:s,children:c,className:l,style:d,...i},p){const m=l?`${de.root} ${l}`:de.root,u=s!=null||o==="side-by-side";return e.jsxs("div",{ref:p,className:m,"data-form-layout":o,style:{...d,...a?{"--form-control-max-width":a}:{},...t?{"--form-control-min-width":t}:{}},...i,children:[u&&e.jsx("div",{className:de.leftSection,"data-size":n,children:s}),e.jsx("div",{className:de.rightSection,children:c})]})});Z.displayName="FormControlLayout";const at="AssistiveElement-module__root___WhQ43",nt="AssistiveElement-module__textWrapper___sfy5E",lt="AssistiveElement-module__iconWrapper___gObRF",he={root:at,textWrapper:nt,iconWrapper:lt},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("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4"}),e.jsx("path",{d:"M12 8h.01"})]}),it=()=>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"})]}),xe=b.forwardRef(function({assistiveVariant:o="help",assistiveWithIcon:n=!0,children:a,className:t,overStyled:s=!1,...c},l){const i=v(c,s),p=he.root,m=t?`${p} ${t}`:p,h=o==="error"?it:ct;return e.jsxs("div",{ref:l,className:m,"data-variant":o,style:i.style,...i,children:[n&&e.jsx("span",{className:he.iconWrapper,children:e.jsx(h,{})}),e.jsx("span",{className:he.textWrapper,children:a})]})});xe.displayName="AssistiveElement";const dt="FormControlWrapper-module__inputSection___HenXk",Ie={inputSection:dt},pe=b.forwardRef(function({formLayout:o,labelSize:n,labelAlignment:a,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:c,onLabelEditClick:l,label:d,description:i,assistiveText:p,assistiveWithIcon:m=!0,controlMaxWidth:h,controlMinWidth:u,error:_,required:N,withAsterisk:C,id:x,children:j,className:f,overStyled:P=!1,labelElement:$,...O},I){const W=b.useId(),L=x||`recursica-fc-${W}`,M=p||i,S=M?`${L}-assistive`:void 0,k=_?`${L}-error`:void 0,T=v(O,P),X=f||T.className,ie=Ie.root,B=X?`${ie} ${X}`:ie,_o=b.isValidElement(j)?b.cloneElement(j,{...M&&!j.props["aria-describedby"]?{"aria-describedby":S}:{},..._&&!j.props["aria-errormessage"]?{"aria-errormessage":k}:{}}):j,fo=d?e.jsx(we,{id:L,labelAlignment:a,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:c,onLabelEditClick:l,required:C??N,...$==="div"?{as:"div"}:{},children:d}):void 0;return e.jsx(Z,{ref:I,className:B,formLayout:o,labelSize:n,controlMaxWidth:h,controlMinWidth:u,leftSection:fo,...T,children:e.jsxs("div",{className:Ie.inputSection,children:[_o,_&&e.jsx(xe,{id:k,assistiveVariant:"error",assistiveWithIcon:m,children:_}),!_&&M&&e.jsx(xe,{id:S,assistiveVariant:"help",assistiveWithIcon:m,children:M})]})})});pe.displayName="FormControlWrapper";const pt="_root_1qhn7_3",mt="_contents_1qhn7_18",ee={root:pt,contents:mt},Ve=b.forwardRef(function({layer:r,contentsOnly:o,children:n,className:a,style:t,...s},c){const l=o?a?`${ee.root} ${ee.contents} ${a}`:`${ee.root} ${ee.contents}`:a?`${ee.root} ${a}`:ee.root;return e.jsx("div",{ref:c,className:l,style:t,...o?{}:{"data-recursica-layer":String(r)},...s,children:n})});Ve.displayName="Layer";const ce=({emptyText:r="N/A"})=>e.jsx(b.Fragment,{children:r});ce.displayName="EmptyValueRenderer";ce.check=r=>r==null||r===""||Array.isArray(r)&&r.length===0;const Le="data-recursica-theme";function ut({children:r,theme:o="light"}){return b.useEffect(()=>{const n=document.documentElement;return n.setAttribute(Le,o),()=>{n.removeAttribute(Le)}},[o]),e.jsx(e.Fragment,{children:r})}const _t="ReadOnlyField-module__textField___qKn25",me={textField:_t},le=({value:r,overStyled:o=!1,...n})=>{const a=v(n,o),t=a.className;return e.jsx(y.Box,{component:"p",className:t?`${me.textField} ${t}`:me.textField,...a,children:r!=null?b.isValidElement(r)?r:Array.isArray(r)?r.join(", "):String(r):""})};le.displayName="ReadOnlyTextField";const ge=b.forwardRef(function({value:o,type:n="text",emptyValueComponent:a,overStyled:t=!1,...s},c){let l=null;const d=v(s,t),i=a||ce,m=(i.check?i.check(o):ce.check(o))?e.jsx(i,{value:o}):o;switch(n){case"boolean":l=e.jsx(le,{value:o===!0?"True":o===!1?"False":m,overStyled:t});break;case"switch":l=e.jsx(le,{value:o===!0?"On":o===!1?"Off":m,overStyled:t});break;case"text":default:l=e.jsx(le,{value:m,overStyled:t});break}return e.jsx(pe,{ref:c,overStyled:t,...d,children:l})});ge.displayName="ReadOnlyField";const U=b.forwardRef(function({readOnly:o,readOnlyComponent:n,readOnlyType:a="text",readOnlyValue:t,readOnlyNativeProps:s,emptyValueComponent:c,activeComponent:l,overStyled:d,onLabelEditClick:i,...p},m){if(o){if(n){const h=n;return e.jsx(pe,{ref:m,...p,onLabelEditClick:i,overStyled:d,children:e.jsx(h,{...s})})}return e.jsx(ge,{ref:m,type:a,value:t,emptyValueComponent:c,onLabelEditClick:i,overStyled:d,...p})}return e.jsx(pe,{ref:m,...p,onLabelEditClick:i,overStyled:d,children:l})});U.displayName="WithReadOnlyWrapper";const ft="Checkbox-module__groupRoot___cBS0o",bt="Checkbox-module__root___mY3qk",yt="Checkbox-module__body___5yC7q",ht="Checkbox-module__inner___rTke4",xt="Checkbox-module__input___2kt-h",Nt="Checkbox-module__icon___-O7i6",$t="Checkbox-module__labelWrapper___GpZkr",vt="Checkbox-module__label___cwRtI",R={groupRoot:ft,root:bt,body:yt,inner:ht,input:xt,icon:Nt,labelWrapper:$t,label:vt},Pe=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:u,error:_,required:N,withAsterisk:C,id:x,className:j,style:f,children:P,readOnly:$,readOnlyComponent:O,emptyValueComponent:I,value:W,defaultValue:L,...M}=o,S=v(M,a),k=S;return delete k.size,e.jsx(U,{className:j,style:f,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:a,labelElement:"div",formLayout:t,labelSize:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:u,error:_,required:N,withAsterisk:C,id:x,readOnly:$&&!!O,readOnlyComponent:O,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:W!==void 0?W:L,readOnlyNativeProps:o,activeComponent:e.jsx(y.Checkbox.Group,{ref:n,...S,disabled:$||k.disabled,value:W,defaultValue:L,children:e.jsx("div",{className:R.groupRoot,"data-layout":t,children:b.Children.map(P,w=>b.isValidElement(w)?b.cloneElement(w,{disabled:$||w.props.disabled}):w)})})})});Pe.displayName="CheckboxGroup";const Re=b.forwardRef(function(o,n){const{overStyled:a=!1,readOnly:t,readOnlyComponent:s,disabled:c,formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,...m}=o,h=v(m,a),u=h;delete u.size,delete u.color,delete u.radius,delete u.variant,delete u.iconColor;const _={root:R.root,body:R.body,inner:R.inner,input:R.input,icon:R.icon,labelWrapper:R.labelWrapper,label:R.label},N=u.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const f=N;_.root=f.root?`${R.root} ${f.root}`:R.root,_.body=f.body?`${R.body} ${f.body}`:R.body,_.inner=f.inner?`${R.inner} ${f.inner}`:R.inner,_.input=f.input?`${R.input} ${f.input}`:R.input,_.icon=f.icon?`${R.icon} ${f.icon}`:R.icon,_.labelWrapper=f.labelWrapper?`${R.labelWrapper} ${f.labelWrapper}`:R.labelWrapper,_.label=f.label?`${R.label} ${f.label}`:R.label}const C=u.className,x=C?`${R.root} ${C}`:R.root;if(t&&s){const f=!!(u.checked??u.defaultChecked),P=s,$=e.jsx(P,{...o,checked:f,label:u.label});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:$}):e.jsx(e.Fragment,{children:$})}const j=e.jsx(y.Checkbox,{ref:n,className:x,classNames:_,disabled:t||c,...h});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:j}):j});Re.displayName="Checkbox";Re.Group=Pe;const Ct="Chip-module__root___f5pFk",jt="Chip-module__label___Ov9pg",wt="Chip-module__mantineIconWrapper___KLSz6",gt="Chip-module__innerWrapper___EnrTF",Pt="Chip-module__children___zbRAR",Rt="Chip-module__leadingIcon___JBtjQ",At="Chip-module__removeIcon___pVju-",z={root:Ct,label:jt,mantineIconWrapper:wt,innerWrapper:gt,children:Pt,leadingIcon:Rt,removeIcon:At};function Wt(r){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",...r,children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Ge=b.forwardRef(function({error:o=!1,icon:n,onRemove:a,removeLabel:t="Remove",children:s,overStyled:c=!1,...l},d){const i=v(l,c),p=i,m={root:z.root,label:z.label,input:z.input,iconWrapper:z.mantineIconWrapper,checkIcon:z.checkIcon},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const x=h;m.root=x.root?`${z.root} ${x.root}`:z.root,m.label=x.label?`${z.label} ${x.label}`:z.label}const u=p.className,_=u?`${z.root} ${u}`:z.root,N=o?"":void 0,C=!s&&(!!n||!!a);return e.jsx(y.Chip,{ref:d,className:_,classNames:m,...N!==void 0?{"data-error":""}:{},...C?{"data-icon-only":""}:{},...i,children:e.jsxs("span",{className:z.innerWrapper,children:[n&&e.jsx("span",{className:z.leadingIcon,"aria-hidden":!0,children:n}),e.jsx("span",{className:z.children,children:s}),a&&e.jsx("span",{role:"button",className:z.removeIcon,onClick:x=>{x.preventDefault(),x.stopPropagation(),a(x)},"aria-label":t,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),a(x))},tabIndex:0,children:e.jsx(Wt,{})})]})})});Ge.displayName="Chip";const St="Container-module__root___UVssr",te={root:St},qe=b.forwardRef(function({children:o,size:n,overStyled:a=!1,...t},s){const c=v(t,a),l=c,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:te.root},m=l.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const _=m;p.root=_.root?`${te.root} ${_.root}`:te.root}const h=l.className,u=h?`${te.root} ${h}`:te.root;return e.jsx(y.Container,{ref:s,size:i,className:u,classNames:p,...c,children:o})});qe.displayName="Container";const kt=r=>e.jsx("div",{...r,children:"DatePicker"}),Tt="Dropdown-module__root___uVyL0",It="Dropdown-module__input___dK4dN",Lt="Dropdown-module__section___j3MRB",Ot="Dropdown-module__dropdown___gG-Sw",Mt="Dropdown-module__option___nAGU-",F={root:Tt,input:It,section:Lt,dropdown:Ot,option:Mt},He=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",containerWidth:s,labelSize:c,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:i,onLabelEditClick:p,label:m,assistiveText:h,assistiveWithIcon:u,error:_,required:N,withAsterisk:C,id:x,className:j,style:f,disabled:P,readOnly:$,readOnlyComponent:O,emptyValueComponent:I,value:W,defaultValue:L,data:M,...S}=o,k=v(S,a),w=k;delete w.size,delete w.variant,delete w.radius;const T={wrapper:F.root,input:F.input,section:F.section,dropdown:F.dropdown,option:F.option},X=w.classNames;if(X&&typeof X=="object"&&!Array.isArray(X)){const B=X;T.wrapper=B.wrapper?`${F.root} ${B.wrapper}`:F.root,T.input=B.input?`${F.input} ${B.input}`:F.input,T.section=B.section?`${F.section} ${B.section}`:F.section,T.dropdown=B.dropdown?`${F.dropdown} ${B.dropdown}`:F.dropdown,T.option=B.option?`${F.option} ${B.option}`:F.option}const ie={...f||{},width:s||"100%"};return e.jsx(U,{className:j,style:ie,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:c,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:i,onLabelEditClick:p,label:m,assistiveText:h,assistiveWithIcon:u,error:_,required:N,withAsterisk:C,id:x,readOnly:$,readOnlyComponent:O,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:W!==void 0?String(W):L?String(L):void 0,readOnlyNativeProps:o,activeComponent:e.jsx(y.Select,{ref:n,classNames:T,disabled:P,value:W,defaultValue:L,data:M||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":P?"true":void 0,"data-error":_?"true":void 0},...k})})});He.displayName="Dropdown";const zt=r=>e.jsx("div",{...r,children:"FileInput"}),Ft=r=>e.jsx("div",{...r,children:"FileUpload"}),Bt="Flex-module__root___yYser",re={root:Bt},Ye=b.forwardRef(function({children:o,overStyled:n=!1,gap:a="rec-default",...t},s){const c=v({...t,gap:a},n),l=c,d={root:re.root},i=l.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const h=i;d.root=h.root?`${re.root} ${h.root}`:re.root}const p=l.className,m=p?`${re.root} ${p}`:re.root;return e.jsx(y.Flex,{ref:s,className:m,classNames:d,...c,children:o})});Ye.displayName="Flex";const Et=y.createPolymorphicComponent(Ye),Dt="Group-module__root___ftO64",se={root:Dt},Ze=b.forwardRef(function({children:o,overStyled:n=!1,gap:a="rec-default",...t},s){const c=v({...t,gap:a},n),l=c,d={root:se.root},i=l.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const h=i;d.root=h.root?`${se.root} ${h.root}`:se.root}const p=l.className,m=p?`${se.root} ${p}`:se.root;return e.jsx(y.Group,{ref:s,className:m,classNames:d,...c,children:o})});Ze.displayName="Group";const Vt=r=>e.jsx("div",{...r,children:"HoverCard"}),Gt=r=>e.jsx("div",{...r,children:"Link"}),qt="Loader-module__root___6iYOP",ae={root:qt},Ke=b.forwardRef(function({variant:o="oval",size:n="default",overStyled:a=!1,...t},s){const l={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",d=v(t,a),i={root:ae.root},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const u=p;i.root=u.root?`${ae.root} ${u.root}`:ae.root}const m=d.className,h=m?`${ae.root} ${m}`:ae.root;return e.jsx(y.Loader,{ref:s,type:o,"data-variant":o,"data-size":l,...d,className:h,classNames:i})});Ke.displayName="Loader";const Ht="Menu-module__dropdown___j4xuA",Yt="Menu-module__item___NMXha",Zt="Menu-module__itemLabel___zvcqC",Kt="Menu-module__itemSection___pRIcn",Ut="Menu-module__divider___wPiNq",Xt="Menu-module__label___4FBGa",Qt="Menu-module__chevron___hEEiy",Q={dropdown:Ht,item:Yt,itemLabel:Zt,itemSection:Kt,divider:Ut,label:Xt,chevron:Qt},Ue=function({overStyled:o=!1,...n}){const a=v(n,o),t={dropdown:Q.dropdown,item:Q.item,itemLabel:Q.itemLabel,itemSection:Q.itemSection,divider:Q.divider,label:Q.label,chevron:Q.chevron},s=a.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const c=s;Object.keys(c).forEach(l=>{t[l]?t[l]=`${t[l]} ${c[l]}`:t[l]=c[l]})}return e.jsx(y.Menu,{classNames:t,...a})};Ue.displayName="Menu";const Xe=function(o){return e.jsx(y.Menu.Target,{...o})};Xe.displayName="MenuTarget";const Qe=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(y.Menu.Dropdown,{ref:a,className:s,...t})});Qe.displayName="MenuDropdown";const Je=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t;o||delete s.color;const c=s.className;return e.jsx(y.Menu.Item,{ref:a,className:c,...t})});Je.displayName="MenuItem";const Jt=y.createPolymorphicComponent(Je),eo=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(y.Menu.Divider,{ref:a,className:s,...t})});eo.displayName="MenuDivider";const oo=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(y.Menu.Label,{ref:a,className:s,...t})});oo.displayName="MenuLabel";const to=function(o){return e.jsx(y.Menu.Sub,{...o})};to.displayName="MenuSub";const ro=function(o){return e.jsx(y.Menu.Sub.Target,{...o})};ro.displayName="MenuSubTarget";const so=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t;o||delete s.color;const c=s.className;return e.jsx(y.Menu.Sub.Item,{ref:a,className:c,...t})});so.displayName="MenuSubItem";const er=y.createPolymorphicComponent(so),ao=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(y.Menu.Sub.Dropdown,{ref:a,className:s,...t})});ao.displayName="MenuSubDropdown";const ye=to;ye.Target=ro;ye.Item=er;ye.Dropdown=ao;const J=Ue;J.Target=Xe;J.Dropdown=Qe;J.Item=Jt;J.Divider=eo;J.Label=oo;J.Sub=ye;const or=r=>e.jsx("div",{...r,children:"Modal"}),tr=r=>e.jsx("div",{...r,children:"NumberInput"}),rr=r=>e.jsx("div",{...r,children:"Pagination"}),sr=r=>e.jsx("div",{...r,children:"Panel"}),ar=r=>e.jsx("div",{...r,children:"Popover"}),nr="Radio-module__groupRoot___bfUii",lr="Radio-module__root___kAjTD",cr="Radio-module__body___q2Wpj",ir="Radio-module__inner___QaTBB",dr="Radio-module__radio___MfgN-",pr="Radio-module__icon___DWznm",mr="Radio-module__labelWrapper___dB0Gi",ur="Radio-module__label___vAFIP",A={groupRoot:nr,root:lr,body:cr,inner:ir,radio:dr,icon:pr,labelWrapper:mr,label:ur},Ae=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:u,error:_,required:N,withAsterisk:C,id:x,className:j,style:f,children:P,readOnly:$,readOnlyComponent:O,emptyValueComponent:I,value:W,defaultValue:L,...M}=o,S=v(M,a),k=S;return delete k.size,e.jsx(U,{className:j,style:f,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:a,labelElement:"div",formLayout:t,labelSize:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:u,error:_,required:N,withAsterisk:C,id:x,readOnly:$&&!!O,readOnlyComponent:O,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:W!==void 0?W:L,readOnlyNativeProps:o,activeComponent:e.jsx(y.Radio.Group,{ref:n,...S,disabled:$||k.disabled,value:W,defaultValue:L,children:e.jsx("div",{className:A.groupRoot,"data-layout":t,children:b.Children.map(P,w=>b.isValidElement(w)?b.cloneElement(w,{disabled:$||w.props.disabled}):w)})})})});Ae.displayName="RadioGroup";const _r=({className:r,style:o})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:r,style:o,children:e.jsx("circle",{cx:"8",cy:"8",r:"5"})}),We=b.forwardRef(function(o,n){const{overStyled:a=!1,readOnly:t,readOnlyComponent:s,disabled:c,formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,...m}=o,h=v(m,a),u=h;delete u.size,delete u.color,delete u.radius,delete u.variant,delete u.iconColor;const _={root:A.root,body:A.body,inner:A.inner,radio:A.radio,icon:A.icon,labelWrapper:A.labelWrapper,label:A.label},N=u.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const f=N;_.root=f.root?`${A.root} ${f.root}`:A.root,_.body=f.body?`${A.body} ${f.body}`:A.body,_.inner=f.inner?`${A.inner} ${f.inner}`:A.inner,_.radio=f.radio?`${A.radio} ${f.radio}`:A.radio,_.icon=f.icon?`${A.icon} ${f.icon}`:A.icon,_.labelWrapper=f.labelWrapper?`${A.labelWrapper} ${f.labelWrapper}`:A.labelWrapper,_.label=f.label?`${A.label} ${f.label}`:A.label}const C=u.className,x=C?`${A.root} ${C}`:A.root;if(t&&s){const f=!!(u.checked??u.defaultChecked),P=s,$=e.jsx(P,{...o,checked:f,label:u.label});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:$}):e.jsx(e.Fragment,{children:$})}const j=e.jsx(y.Radio,{ref:n,icon:_r,className:x,classNames:_,disabled:t||c,...h});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:i,controlMinWidth:p,children:j}):j});We.displayName="Radio";We.Group=Ae;const no=({checked:r,label:o})=>e.jsxs(y.Box,{component:"span",className:me.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[o&&e.jsxs("span",{style:{fontWeight:500},children:[o,":"]}),e.jsx("span",{children:r?"On":"Off"})]});no.displayName="ReadOnlySwitchField";const lo=({checked:r,label:o})=>e.jsxs(y.Box,{component:"span",className:me.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[o&&e.jsxs("span",{style:{fontWeight:500},children:[o,":"]}),e.jsx("span",{children:r?"True":"False"})]});lo.displayName="ReadOnlyBooleanField";const fr=r=>e.jsx("div",{...r,children:"Search"}),br=r=>e.jsx("div",{...r,children:"SegmentedControl"}),yr=r=>e.jsx("div",{...r,children:"Slider"}),hr="Stack-module__root___NUN-x",ne={root:hr},co=b.forwardRef(function({children:o,overStyled:n=!1,gap:a="rec-default",...t},s){const c=v({...t,gap:a},n),l=c,d={root:ne.root},i=l.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const h=i;d.root=h.root?`${ne.root} ${h.root}`:ne.root}const p=l.className,m=p?`${ne.root} ${p}`:ne.root;return e.jsx(y.Stack,{ref:s,className:m,classNames:d,...c,children:o})});co.displayName="Stack";const xr=r=>e.jsx("div",{...r,children:"Stepper"}),Nr="Switch-module__root___Y5Ydi",$r="Switch-module__body___Sw9Wr",vr="Switch-module__track___7ObdZ",Cr="Switch-module__thumb___-FTeK",jr="Switch-module__labelWrapper___YSOwx",wr="Switch-module__label___LrH7V",gr="Switch-module__thumbIconWrapper___sCY-1",Pr="Switch-module__checkIcon___ZBAQN",Rr="Switch-module__closeIcon___bLLGw",Ar="Switch-module__groupRoot___-Uepi",g={root:Nr,body:$r,track:vr,thumb:Cr,labelWrapper:jr,label:wr,thumbIconWrapper:gr,checkIcon:Pr,closeIcon:Rr,groupRoot:Ar},Se=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:u,error:_,required:N,withAsterisk:C,id:x,className:j,style:f,children:P,readOnly:$,readOnlyComponent:O,emptyValueComponent:I,value:W,defaultValue:L,...M}=o,S=v(M,a),k=S;return delete k.size,e.jsx(U,{className:j,style:f,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:a,labelElement:"div",formLayout:t,labelSize:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,description:m,assistiveText:h,assistiveWithIcon:u,error:_,required:N,withAsterisk:C,id:x,readOnly:$&&!!O,readOnlyComponent:O,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:W!==void 0?W:L,readOnlyNativeProps:o,activeComponent:e.jsx(y.Switch.Group,{ref:n,...S,disabled:$||k.disabled,value:W,defaultValue:L,children:e.jsx("div",{className:g.groupRoot,children:b.Children.map(P,w=>b.isValidElement(w)?b.cloneElement(w,{disabled:$||w.props.disabled}):w)})})})});Se.displayName="SwitchGroup";const ke=b.forwardRef(function(o,n){const{overStyled:a=!1,readOnly:t,readOnlyComponent:s,disabled:c,thumbIcon:l,formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:m,...h}=o,u=v(h,a),_=u;delete _.size,delete _.color,delete _.radius,delete _.variant;const N={root:g.root,body:g.body,track:g.track,thumb:g.thumb,trackLabel:g.trackLabel,labelWrapper:g.labelWrapper,label:g.label},C=_.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const $=C;N.root=$.root?`${g.root} ${$.root}`:g.root,N.body=$.body?`${g.body} ${$.body}`:g.body,N.track=$.track?`${g.track} ${$.track}`:g.track,N.thumb=$.thumb?`${g.thumb} ${$.thumb}`:g.thumb,N.trackLabel=$.trackLabel?`${g.trackLabel} ${$.trackLabel}`:g.trackLabel,N.labelWrapper=$.labelWrapper?`${g.labelWrapper} ${$.labelWrapper}`:g.labelWrapper,N.label=$.label?`${g.label} ${$.label}`:g.label}const x=_.className,j=x?`${g.root} ${x}`:g.root;if(t&&s){const $=!!(_.checked??_.defaultChecked),O=s,I=e.jsx(O,{...o,checked:$,label:_.label});return d?e.jsx(Z,{formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:m,children:I}):e.jsx(e.Fragment,{children:I})}const f=e.jsxs("div",{className:g.thumbIconWrapper,children:[e.jsx(y.CheckIcon,{className:g.checkIcon}),e.jsx(y.CloseIcon,{className:g.closeIcon})]}),P=e.jsx(y.Switch,{ref:n,className:j,classNames:N,disabled:t||c,thumbIcon:l??f,...u});return d?e.jsx(Z,{formLayout:d,labelSize:i,controlMaxWidth:p,controlMinWidth:m,children:P}):P});ke.displayName="Switch";ke.Group=Se;const Wr=r=>e.jsx("div",{...r,children:"Table"}),Sr=r=>e.jsx("div",{...r,children:"Tabs"}),io=b.forwardRef(function({overStyled:o=!1,variant:n="body",...a},t){const s=v(a,o),c=s.className,l=`recursica_brand_typography_${n}`,d=c?`${l} ${c}`:l;return e.jsx(y.Text,{ref:t,className:d,...s})});io.displayName="Text";const kr=y.createPolymorphicComponent(io),Tr="TextArea-module__root___3dyeu",Ir="TextArea-module__input___8l36v",oe={root:Tr,input:Ir},po=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:u,required:_,withAsterisk:N,id:C,className:x,style:j,disabled:f,readOnly:P,readOnlyComponent:$,emptyValueComponent:O,value:I,defaultValue:W,...L}=o,M=v(L,a),S=M;delete S.size,delete S.variant,delete S.radius;const k={wrapper:oe.root,input:oe.input},w=S.classNames;if(w&&typeof w=="object"&&!Array.isArray(w)){const T=w;k.wrapper=T.wrapper?`${oe.root} ${T.wrapper}`:oe.root,k.input=T.input?`${oe.input} ${T.input}`:oe.input}return e.jsx(U,{className:x,style:j,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:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:u,required:_,withAsterisk:N,id:C,readOnly:P,readOnlyComponent:$,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:I!==void 0?I:W,readOnlyNativeProps:o,activeComponent:e.jsx(y.Textarea,{ref:n,classNames:k,disabled:f,value:I,defaultValue:W,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":f?"true":void 0,"data-error":u?"true":void 0},...M})})});po.displayName="TextArea";const Lr="TextField-module__root___2ZYkG",Or="TextField-module__input___RL-My",Mr="TextField-module__section___bCIJ0",q={root:Lr,input:Or,section:Mr},mo=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:u,required:_,withAsterisk:N,id:C,className:x,style:j,disabled:f,readOnly:P,readOnlyComponent:$,emptyValueComponent:O,value:I,defaultValue:W,...L}=o,M=v(L,a),S=M;delete S.size,delete S.variant,delete S.radius;const k={wrapper:q.root,input:q.input,section:q.section},w=S.classNames;if(w&&typeof w=="object"&&!Array.isArray(w)){const T=w;k.wrapper=T.wrapper?`${q.root} ${T.wrapper}`:q.root,k.input=T.input?`${q.input} ${T.input}`:q.input,k.section=T.section?`${q.section} ${T.section}`:q.section}return e.jsx(U,{className:x,style:j,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:s,labelAlignment:c,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:p,assistiveText:m,assistiveWithIcon:h,error:u,required:_,withAsterisk:N,id:C,readOnly:P,readOnlyComponent:$,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:I!==void 0?I:W,readOnlyNativeProps:o,activeComponent:e.jsx(y.Input,{ref:n,classNames:k,disabled:f,value:I,defaultValue:W,wrapperProps:{"data-disabled":f?"true":void 0,"data-error":u?"true":void 0},...M})})});mo.displayName="TextField";const zr=r=>e.jsx("div",{...r,children:"TimePicker"}),Fr=r=>e.jsx("div",{...r,children:"Timeline"}),uo=b.forwardRef(function({overStyled:o=!1,order:n=1,...a},t){const s=v(a,o),c=s.className,l=`recursica_brand_typography_h${n}`,d=c?`${l} ${c}`:l;return e.jsx(y.Title,{ref:t,order:n,className:d,...s})});uo.displayName="Title";const Br=r=>e.jsx("div",{...r,children:"Toast"}),Er=r=>e.jsx("div",{...r,children:"Tooltip"}),Dr=r=>e.jsx("div",{...r,children:"TransferList"});exports.Accordion=fe;exports.AccordionControl=ue;exports.AccordionItem=Ne;exports.AccordionPanel=_e;exports.Avatar=ko;exports.Badge=Io;exports.Breadcrumb=Fe;exports.Button=Vo;exports.Card=Ko;exports.CardContent=je;exports.CardFooter=Ce;exports.CardHeader=ve;exports.CardSection=$e;exports.Checkbox=Re;exports.CheckboxGroup=Pe;exports.Chip=Ge;exports.Container=qe;exports.DatePicker=kt;exports.Dropdown=He;exports.EmptyValueRenderer=ce;exports.FileInput=zt;exports.FileUpload=Ft;exports.Flex=Et;exports.FormControlLayout=Z;exports.Group=Ze;exports.HoverCard=Vt;exports.Label=we;exports.Layer=Ve;exports.Link=Gt;exports.Loader=Ke;exports.Menu=J;exports.Modal=or;exports.NumberInput=tr;exports.Pagination=rr;exports.Panel=sr;exports.Popover=ar;exports.Radio=We;exports.RadioGroup=Ae;exports.ReadOnlyBooleanField=lo;exports.ReadOnlyField=ge;exports.ReadOnlySwitchField=no;exports.ReadOnlyTextField=le;exports.RecursicaThemeProvider=ut;exports.Search=fr;exports.SegmentedControl=br;exports.Slider=yr;exports.Stack=co;exports.Stepper=xr;exports.Switch=ke;exports.SwitchGroup=Se;exports.Table=Wr;exports.Tabs=Sr;exports.Text=kr;exports.TextArea=po;exports.TextField=mo;exports.TimePicker=zr;exports.Timeline=Fr;exports.Title=uo;exports.Toast=Br;exports.Tooltip=Er;exports.TransferList=Dr;exports.WithReadOnlyWrapper=U;
2
2
  //# sourceMappingURL=mantine-adapter.cjs.map