@recursica/mantine-adapter 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +6 -28
  3. package/dist/mantine-adapter.cjs +1 -1
  4. package/dist/mantine-adapter.cjs.map +1 -1
  5. package/dist/mantine-adapter.css +1 -1
  6. package/dist/mantine-adapter.js +1650 -1344
  7. package/dist/mantine-adapter.js.map +1 -1
  8. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
  9. package/dist/src/components/FormControlLayout/FormControlLayout.d.ts +21 -0
  10. package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +2 -0
  11. package/dist/src/components/Label/Label.d.ts +1 -3
  12. package/dist/src/components/Menu/Menu.d.ts +85 -3
  13. package/dist/src/components/Radio/Radio.d.ts +3 -1
  14. package/dist/src/components/ReadOnlyField/ReadOnlyBooleanField.d.ts +5 -0
  15. package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +6 -6
  16. package/dist/src/components/ReadOnlyField/ReadOnlySwitchField.d.ts +5 -0
  17. package/dist/src/components/ReadOnlyField/WithReadOnlyWrapper.d.ts +7 -1
  18. package/dist/src/components/ReadOnlyField/index.d.ts +2 -0
  19. package/dist/src/components/Switch/Switch.d.ts +3 -1
  20. package/dist/src/components/index.d.ts +1 -0
  21. package/dist/src/utils/RequireAccessibleLabel.d.ts +18 -0
  22. package/package.json +1 -1
  23. package/src/components/AssistiveElement/AssistiveElement.stories.tsx +6 -4
  24. package/src/components/Avatar/Avatar.stories.tsx +10 -5
  25. package/src/components/Badge/Badge.stories.tsx +2 -1
  26. package/src/components/Button/Button.stories.tsx +2 -4
  27. package/src/components/Checkbox/Checkbox.module.css +1 -1
  28. package/src/components/Checkbox/Checkbox.stories.tsx +24 -3
  29. package/src/components/Checkbox/Checkbox.tsx +72 -15
  30. package/src/components/Checkbox/CheckboxGroup.stories.tsx +26 -25
  31. package/src/components/Checkbox/CheckboxGroup.tsx +38 -58
  32. package/src/components/Container/Container.stories.tsx +6 -3
  33. package/src/components/DatePicker/DatePicker.stories.tsx +1 -5
  34. package/src/components/Dropdown/Dropdown.stories.tsx +0 -3
  35. package/src/components/Dropdown/Dropdown.tsx +6 -5
  36. package/src/components/FileInput/FileInput.stories.tsx +1 -5
  37. package/src/components/FileUpload/FileUpload.stories.tsx +1 -5
  38. package/src/components/Flex/Flex.stories.tsx +6 -3
  39. package/src/components/FormControlLayout/FormControlLayout.module.css +80 -0
  40. package/src/components/FormControlLayout/FormControlLayout.stories.tsx +82 -0
  41. package/src/components/FormControlLayout/FormControlLayout.tsx +78 -0
  42. package/src/components/FormControlWrapper/FormControlWrapper.module.css +3 -41
  43. package/src/components/FormControlWrapper/FormControlWrapper.stories.tsx +18 -5
  44. package/src/components/FormControlWrapper/FormControlWrapper.tsx +28 -41
  45. package/src/components/Group/Group.stories.tsx +6 -3
  46. package/src/components/Label/Label.module.css +0 -37
  47. package/src/components/Label/Label.stories.tsx +8 -9
  48. package/src/components/Label/Label.tsx +2 -7
  49. package/src/components/Loader/Loader.stories.tsx +10 -5
  50. package/src/components/Menu/MENU_IMPLEMENTATION_NOTES.md +78 -0
  51. package/src/components/Menu/Menu.module.css +244 -0
  52. package/src/components/Menu/Menu.stories.tsx +309 -5
  53. package/src/components/Menu/Menu.tsx +317 -4
  54. package/src/components/NumberInput/NumberInput.stories.tsx +1 -5
  55. package/src/components/Radio/Radio.stories.tsx +22 -8
  56. package/src/components/Radio/Radio.tsx +134 -75
  57. package/src/components/Radio/RadioGroup.stories.tsx +26 -7
  58. package/src/components/Radio/RadioGroup.tsx +37 -57
  59. package/src/components/ReadOnlyField/ReadOnlyBooleanField.tsx +21 -0
  60. package/src/components/ReadOnlyField/ReadOnlyField.stories.tsx +43 -0
  61. package/src/components/ReadOnlyField/ReadOnlyField.tsx +30 -3
  62. package/src/components/ReadOnlyField/ReadOnlySwitchField.tsx +21 -0
  63. package/src/components/ReadOnlyField/ReadOnlyTextField.tsx +3 -1
  64. package/src/components/ReadOnlyField/WithReadOnlyWrapper.tsx +10 -2
  65. package/src/components/ReadOnlyField/index.ts +2 -0
  66. package/src/components/SegmentedControl/SegmentedControl.stories.tsx +1 -5
  67. package/src/components/Slider/Slider.stories.tsx +1 -5
  68. package/src/components/Stack/Stack.stories.tsx +6 -3
  69. package/src/components/Switch/Switch.module.css +2 -10
  70. package/src/components/Switch/Switch.stories.tsx +42 -27
  71. package/src/components/Switch/Switch.tsx +138 -89
  72. package/src/components/Switch/SwitchGroup.stories.tsx +28 -8
  73. package/src/components/Switch/SwitchGroup.tsx +37 -57
  74. package/src/components/TextArea/TextArea.stories.tsx +0 -3
  75. package/src/components/TextArea/TextArea.tsx +6 -5
  76. package/src/components/TextField/TextField.tsx +6 -5
  77. package/src/components/TimePicker/TimePicker.stories.tsx +1 -5
  78. package/src/components/index.ts +1 -0
  79. package/src/utils/RequireAccessibleLabel.ts +12 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @recursica/mantine-adapter
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d8f8580: Implemented menu component
8
+
9
+ ### Patch Changes
10
+
11
+ - 9c6e275: Updated documentation
12
+
13
+ ## 0.11.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 7898170: Updated read-only states for all components
18
+
3
19
  ## 0.10.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 o=require("react/jsx-runtime"),f=require("react"),N=require("@mantine/core"),Qo=["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"],Xo=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Ro={"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 $(e,t){if(t)return e;const s={...e};for(const c of Qo)c in s&&delete s[c];for(const[c,a]of Object.entries(s))typeof a=="string"&&a.startsWith("rec-")&&Xo.has(c)&&a in Ro&&(s[c]=Ro[a]);return s}const Jo="Accordion-module__root___Dem6d",oe="Accordion-module__item___7ryVk",ee="Accordion-module__noDivider___Ni2tT",te="Accordion-module__control___b4wgX",re="Accordion-module__label___Ss7uW",se="Accordion-module__chevron___i-HVZ",ae="Accordion-module__iconLeftWrapper___5oLen",ne="Accordion-module__panel___Wx50w",ce="Accordion-module__content___PEM9t",O={root:Jo,item:oe,noDivider:ee,control:te,label:re,chevron:se,iconLeftWrapper:ae,panel:ne,content:ce},ko=function({variant:t="unstyled",overStyled:s=!1,...c}){const a=$(c,s),n={root:O.root,item:O.item,control:O.control,label:O.label,chevron:O.chevron,panel:O.panel,content:O.content},l=a.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const i=l;Object.keys(i).forEach(r=>{n[r]?n[r]=`${n[r]} ${i[r]}`:n[r]=i[r]})}const d=a.className;return o.jsx(N.Accordion,{variant:t,className:d,classNames:n,...a})};ko.displayName="Accordion";const mo=f.forwardRef(function({title:t,leftIcon:s,divider:c=!0,children:a,overStyled:n=!1,...l},d){const i=$(l,n),r=i.className,p=[c?void 0:O.noDivider,r].filter(Boolean).join(" ")||void 0;return o.jsx(N.Accordion.Item,{ref:d,className:p,...i,children:t?o.jsxs(o.Fragment,{children:[o.jsx(no,{leftIcon:s,children:t}),o.jsx(co,{children:a})]}):a})});mo.displayName="AccordionItem";const no=f.forwardRef(function({leftIcon:t,children:s,overStyled:c=!1,...a},n){const l=$(a,c),d=l.className;return o.jsx(N.Accordion.Control,{ref:n,className:d,icon:t?o.jsx("span",{className:O.iconLeftWrapper,"aria-hidden":!0,children:t}):void 0,...l,children:s})});no.displayName="AccordionControl";const co=f.forwardRef(function({overStyled:t=!1,...s},c){const a=$(s,t),n=a.className;return o.jsx(N.Accordion.Panel,{ref:c,className:n,...a})});co.displayName="AccordionPanel";const io=ko;io.Item=mo;io.Control=no;io.Panel=co;const ie="Avatar-module__root___fXu-J",le="Avatar-module__iconWrapper___ojly2",de="Avatar-module__textWrapper___zp-jD",pe="Avatar-module__image___ieqGp",_e="Avatar-module__placeholder___IDW7-",M={root:ie,iconWrapper:le,textWrapper:de,image:pe,placeholder:_e},So=f.forwardRef(function({size:t="default",variant:s="solid",icon:c,className:a,classNames:n,children:l,style:d,src:i,...r},p){const m={solid:"filled",outline:"outline",ghost:"transparent"},u={default:"md",small:"sm",large:"lg"};let _="text";i?_="image":c&&(_="icon");const h={root:M.root,image:M.image,placeholder:M.placeholder};if(n&&typeof n=="object"&&!Array.isArray(n)){const b=n;h.root=b.root?`${M.root} ${b.root}`:M.root,h.image=b.image?`${M.image} ${b.image}`:M.image,h.placeholder=b.placeholder?`${M.placeholder} ${b.placeholder}`:M.placeholder}return o.jsx(N.Avatar,{ref:p,className:a,classNames:h,variant:m[s],size:u[t],style:d,src:i,"data-variant":s,"data-size":t,"data-style":_,...r,children:c!=null?o.jsx("span",{className:M.iconWrapper,"aria-hidden":!0,children:c}):l!=null?o.jsx("span",{className:M.textWrapper,children:l}):void 0})});So.displayName="Avatar";const me="Badge-module__root___5osNT",V={root:me},To=f.forwardRef(function({variant:t="primary-color",overStyled:s=!1,...c},a){const n=$(c,s),l={root:V.root,section:V.section,label:V.label},d=n.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const p=d;l.root=p.root?`${V.root} ${p.root}`:V.root,l.section=p.section??V.section,l.label=p.label??V.label}const i=n.className,r=i?`${V.root} ${i}`:V.root;return o.jsx(N.Badge,{ref:a,variant:"filled","data-variant":t,...n,className:r,classNames:l})});To.displayName="Badge";const ue="Breadcrumb-module__root___x-9ln",fe="Breadcrumb-module__separator___qrUX-",Y={root:ue,separator:fe},Io=f.forwardRef(function({overStyled:t=!1,separator:s=">",...c},a){const n=$({separator:s,...c},t),l={root:Y.root,separator:Y.separator},d=n.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const p=d;l.root=p.root?`${Y.root} ${p.root}`:Y.root,l.separator=p.separator?`${Y.separator} ${p.separator}`:Y.separator}const i=n.className,r=i?`${Y.root} ${i}`:Y.root;return o.jsx(N.Breadcrumbs,{ref:a,...n,className:r,classNames:l})});Io.displayName="Breadcrumb";const be="Button-module__root___Q2R8-",he="Button-module__label___UJ3Zt",xe="Button-module__labelText___rFV5p",Ne="Button-module__iconWrapper___uEKPa",$e="Button-module__section___f2mKr",E={root:be,label:he,labelText:xe,iconWrapper:Ne,section:$e};function ye(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const zo=f.forwardRef(function({variant:t="solid",size:s="default",icon:c,children:a,overStyled:n=!1,...l},d){const i={solid:"filled",outline:"outline",text:"subtle"},r={default:"md",small:"sm"},p=$(l,n),m=p;delete m.fullWidth;const u=!!c||!!m.leftSection,_=!!m.rightSection,h=(u||_)&&!ye(a);typeof process<"u"&&process.env.NODE_ENV!=="production"&&h&&!m["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const b={root:E.root,section:E.section,label:E.label},v=m.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const C=v;b.root=C.root?`${E.root} ${C.root}`:E.root,b.section=C.section??E.section,b.label=C.label??E.label}const x=m.className,w=x?`${E.root} ${x}`:E.root;return o.jsx(N.Button,{ref:d,className:w,classNames:b,variant:i[t],size:r[s],leftSection:c!=null?o.jsx("span",{className:E.iconWrapper,"aria-hidden":!0,children:c}):void 0,"data-variant":t,"data-size":s,...h?{"data-icon-only":""}:{},...p,children:o.jsx("span",{className:E.labelText,children:a})})});zo.displayName="Button";const je="Card-module__root___c9KvZ",ve="Card-module__header___PTXf2",we="Card-module__footer___Mu-JC",Ce="Card-module__section___BRT8H",ge="Card-module__content___oFIQa",H={root:je,header:ve,footer:we,section:Ce,content:ge},Fo=f.forwardRef(function({overStyled:t=!1,...s},c){const a=$(s,t),n={root:H.root},l=a.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const i=l;Object.keys(i).forEach(r=>{n[r]?n[r]=`${n[r]} ${i[r]}`:n[r]=i[r]})}const d=a.className;return o.jsx(N.Card,{ref:c,className:d,classNames:n,...a})});Fo.displayName="Card";const uo=f.forwardRef(function({overStyled:t=!1,...s},c){const a=$(s,t),n=a.className;return o.jsx(N.Card.Section,{ref:c,className:n?`${H.section} ${n}`:H.section,...a})});uo.displayName="CardSection";const fo=f.forwardRef(function({overStyled:t=!1,...s},c){const a=$(s,t),n=a.className;return o.jsx(N.Card.Section,{ref:c,className:n?`${H.header} ${n}`:H.header,...a})});fo.displayName="CardHeader";const bo=f.forwardRef(function({overStyled:t=!1,...s},c){const a=$(s,t),n=a.className;return o.jsx(N.Card.Section,{ref:c,className:n?`${H.footer} ${n}`:H.footer,...a})});bo.displayName="CardFooter";const ho=f.forwardRef(function({overStyled:t=!1,...s},c){const a=$(s,t),n=a.className;return o.jsx("div",{ref:c,className:n?`${H.content} ${n}`:H.content,...a})});ho.displayName="CardContent";const so=Fo;so.Section=uo;so.Header=fo;so.Footer=bo;so.Content=ho;const Pe="Label-module__root___e6HXZ",Re="Label-module__labelText___rieFR",We="Label-module__required___Ggrzc",Ae="Label-module__optionalText___Y2yun",ke="Label-module__actionAreaWrapper___ELoZK",Se="Label-module__editIconWrapper___NG2xW",G={root:Pe,labelText:Re,required:We,optionalText:Ae,actionAreaWrapper:ke,editIconWrapper:Se},xo=f.forwardRef(function({formLayout:t="stacked",labelSize:s="default",labelAlignment:c,required:a=!1,labelOptionalText:n,labelWithEditIcon:l,labelActionArea:d,onLabelEditClick:i,children:r,overStyled:p=!1,...m},u){const _=c||(t==="side-by-side"?"right":"left");let h;a||(n===!0?h="optional":n&&(h=n));const b=$(m,p),v=b,x={label:G.root,required:G.required},w=v.classNames;if(w&&typeof w=="object"&&!Array.isArray(w)){const W=w;x.label=W.label?`${G.root} ${W.label}`:G.root,x.required=W.required?`${G.required} ${W.required}`:G.required}const C=v.className,R=C?`${G.root} ${C}`:G.root;return o.jsxs(N.Input.Label,{ref:u,className:R,classNames:x,"data-layout":t,"data-size":s,"data-alignment":_,required:a&&!l,...b,children:[o.jsx("span",{className:G.labelText,children:r}),h&&o.jsx("span",{className:G.optionalText,children:typeof h=="string"?`(${h})`:h}),d?o.jsx("span",{className:G.actionAreaWrapper,children:d}):l?o.jsx("button",{type:"button",className:G.editIconWrapper,"data-replaces-asterisk":a?"true":void 0,onClick:i,"aria-label":"Edit",children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.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]})});xo.displayName="Label";const Te="AssistiveElement-module__root___WhQ43",Ie="AssistiveElement-module__textWrapper___sfy5E",ze="AssistiveElement-module__iconWrapper___gObRF",lo={root:Te,textWrapper:Ie,iconWrapper:ze},Fe=()=>o.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:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"M12 16v-4"}),o.jsx("path",{d:"M12 8h.01"})]}),Le=()=>o.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:[o.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"}),o.jsx("path",{d:"M12 9v4"}),o.jsx("path",{d:"M12 17h.01"})]}),_o=f.forwardRef(function({assistiveVariant:t="help",assistiveWithIcon:s=!0,children:c,className:a,overStyled:n=!1,...l},d){const r=$(l,n),p=lo.root,m=a?`${p} ${a}`:p,u=t==="error"?Le:Fe;return o.jsxs("div",{ref:d,className:m,"data-variant":t,style:r.style,...r,children:[s&&o.jsx("span",{className:lo.iconWrapper,children:o.jsx(u,{})}),o.jsx("span",{className:lo.textWrapper,children:c})]})});_o.displayName="AssistiveElement";const Be="FormControlWrapper-module__root___c-UHo",Ge="FormControlWrapper-module__labelSection___hxSY4",Me="FormControlWrapper-module__inputSection___HenXk",po={root:Be,labelSection:Ge,inputSection:Me},D=f.forwardRef(function({formLayout:t,labelSize:s,labelAlignment:c,labelOptionalText:a,labelWithEditIcon:n,labelActionArea:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m=!0,controlMaxWidth:u,controlMinWidth:_,error:h,required:b,withAsterisk:v,id:x,children:w,className:C,overStyled:R=!1,labelElement:W,...I},S){const z=f.useId(),y=x||`recursica-fc-${z}`,T=p||r,k=T?`${y}-assistive`:void 0,A=h?`${y}-error`:void 0,Q=$(I,R),B=C||Q.className,Po=po.root,Ko=B?`${Po} ${B}`:Po,Zo=f.isValidElement(w)?f.cloneElement(w,{...T&&!w.props["aria-describedby"]?{"aria-describedby":k}:{},...h&&!w.props["aria-errormessage"]?{"aria-errormessage":A}:{}}):w;return o.jsxs(N.Box,{ref:S,className:Ko,"data-form-layout":t||"stacked","data-form-alignment":c||"left",style:{...Q.style||{},...u?{"--form-control-max-width":u}:{},..._?{"--form-control-min-width":_}:{}},...Q,children:[i&&o.jsx("div",{className:po.labelSection,children:o.jsx(xo,{id:y,formLayout:t,labelSize:s,labelAlignment:c,labelOptionalText:a,labelWithEditIcon:n,labelActionArea:l,onLabelEditClick:d,required:v??b,...W==="div"?{as:"div"}:{},children:i})}),o.jsxs("div",{className:po.inputSection,children:[Zo,h&&o.jsx(_o,{id:A,assistiveVariant:"error",assistiveWithIcon:m,children:h}),!h&&T&&o.jsx(_o,{id:k,assistiveVariant:"help",assistiveWithIcon:m,children:T})]})]})});D.displayName="FormControlWrapper";const Ee="Checkbox-module__groupRoot___cBS0o",De="Checkbox-module__root___mY3qk",Ve="Checkbox-module__body___5yC7q",qe="Checkbox-module__inner___rTke4",Oe="Checkbox-module__input___2kt-h",He="Checkbox-module__icon___-O7i6",Ye="Checkbox-module__labelWrapper___GpZkr",Ue="Checkbox-module__label___cwRtI",g={groupRoot:Ee,root:De,body:Ve,inner:qe,input:Oe,icon:He,labelWrapper:Ye,label:Ue},No=f.forwardRef(function({overStyled:t=!1,formLayout:s="stacked",labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,className:v,style:x,children:w,readOnly:C,readOnlyComponent:R,...W},I){const S=$(W,t),z=S;return delete z.size,C&&R?o.jsx(D,{className:v,style:x,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,children:R}):o.jsx(D,{className:v,style:x,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,children:o.jsx(N.Checkbox.Group,{ref:I,...S,children:o.jsx("div",{className:g.groupRoot,"data-layout":s,children:f.Children.map(w,y=>f.isValidElement(y)?f.cloneElement(y,{disabled:C||y.props.disabled}):y)})})})});No.displayName="CheckboxGroup";const $o=f.forwardRef(function({overStyled:t=!1,readOnly:s,readOnlyComponent:c,disabled:a,...n},l){const d=$(n,t),i=d;if(delete i.size,delete i.color,delete i.radius,delete i.variant,delete i.iconColor,s&&c)return o.jsx(o.Fragment,{children:c});const r={root:g.root,body:g.body,inner:g.inner,input:g.input,icon:g.icon,labelWrapper:g.labelWrapper,label:g.label},p=i.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const _=p;r.root=_.root?`${g.root} ${_.root}`:g.root,r.body=_.body?`${g.body} ${_.body}`:g.body,r.inner=_.inner?`${g.inner} ${_.inner}`:g.inner,r.input=_.input?`${g.input} ${_.input}`:g.input,r.icon=_.icon?`${g.icon} ${_.icon}`:g.icon,r.labelWrapper=_.labelWrapper?`${g.labelWrapper} ${_.labelWrapper}`:g.labelWrapper,r.label=_.label?`${g.label} ${_.label}`:g.label}const m=i.className,u=m?`${g.root} ${m}`:g.root;return o.jsx(N.Checkbox,{ref:l,className:u,classNames:r,disabled:s||a,...d})});$o.displayName="Checkbox";$o.Group=No;const Ke="Chip-module__root___f5pFk",Ze="Chip-module__label___Ov9pg",Qe="Chip-module__mantineIconWrapper___KLSz6",Xe="Chip-module__innerWrapper___EnrTF",Je="Chip-module__children___zbRAR",ot="Chip-module__leadingIcon___JBtjQ",et="Chip-module__removeIcon___pVju-",F={root:Ke,label:Ze,mantineIconWrapper:Qe,innerWrapper:Xe,children:Je,leadingIcon:ot,removeIcon:et};function tt(e){return o.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",...e,children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Lo=f.forwardRef(function({error:t=!1,icon:s,onRemove:c,removeLabel:a="Remove",children:n,overStyled:l=!1,...d},i){const r=$(d,l),p=r,m={root:F.root,label:F.label,input:F.input,iconWrapper:F.mantineIconWrapper,checkIcon:F.checkIcon},u=p.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const x=u;m.root=x.root?`${F.root} ${x.root}`:F.root,m.label=x.label?`${F.label} ${x.label}`:F.label}const _=p.className,h=_?`${F.root} ${_}`:F.root,b=t?"":void 0,v=!n&&(!!s||!!c);return o.jsx(N.Chip,{ref:i,className:h,classNames:m,...b!==void 0?{"data-error":""}:{},...v?{"data-icon-only":""}:{},...r,children:o.jsxs("span",{className:F.innerWrapper,children:[s&&o.jsx("span",{className:F.leadingIcon,"aria-hidden":!0,children:s}),o.jsx("span",{className:F.children,children:n}),c&&o.jsx("span",{role:"button",className:F.removeIcon,onClick:x=>{x.preventDefault(),x.stopPropagation(),c(x)},"aria-label":a,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),c(x))},tabIndex:0,children:o.jsx(tt,{})})]})})});Lo.displayName="Chip";const rt="Container-module__root___UVssr",X={root:rt},Bo=f.forwardRef(function({children:t,size:s,overStyled:c=!1,...a},n){const l=$(a,c),d=l,i={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},r=typeof s=="string"&&i[s]?i[s]:s,p={root:X.root},m=d.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const h=m;p.root=h.root?`${X.root} ${h.root}`:X.root}const u=d.className,_=u?`${X.root} ${u}`:X.root;return o.jsx(N.Container,{ref:n,size:r,className:_,classNames:p,...l,children:t})});Bo.displayName="Container";const st=e=>o.jsx("div",{...e,children:"DatePicker"}),at="_root_1qhn7_3",nt="_contents_1qhn7_18",U={root:at,contents:nt},Go=f.forwardRef(function({layer:e,contentsOnly:t,children:s,className:c,style:a,...n},l){const d=t?c?`${U.root} ${U.contents} ${c}`:`${U.root} ${U.contents}`:c?`${U.root} ${c}`:U.root;return o.jsx("div",{ref:l,className:d,style:a,...t?{}:{"data-recursica-layer":String(e)},...n,children:s})});Go.displayName="Layer";const ro=({emptyText:e="N/A"})=>o.jsx(f.Fragment,{children:e});ro.displayName="EmptyValueRenderer";ro.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const Wo="data-recursica-theme";function ct({children:e,theme:t="light"}){return f.useEffect(()=>{const s=document.documentElement;return s.setAttribute(Wo,t),()=>{s.removeAttribute(Wo)}},[t]),o.jsx(o.Fragment,{children:e})}const it="ReadOnlyField-module__textField___qKn25",Ao={textField:it},yo=({value:e,overStyled:t=!1,...s})=>{const c=$(s,t),a=c.className;return o.jsx(N.Box,{component:"p",className:a?`${Ao.textField} ${a}`:Ao.textField,...c,children:e!=null?f.isValidElement(e)?e:String(e):""})};yo.displayName="ReadOnlyTextField";const jo=f.forwardRef(function({value:t,type:s="text",emptyValueComponent:c,overStyled:a=!1,...n},l){let d=null;const i=$(n,a),r=c||ro,m=(r.check?r.check(t):ro.check(t))?o.jsx(r,{value:t}):t;switch(s){case"text":default:d=o.jsx(yo,{value:m,overStyled:a});break}return o.jsx(D,{ref:l,overStyled:a,...i,children:d})});jo.displayName="ReadOnlyField";const ao=f.forwardRef(function({readOnly:t,readOnlyComponent:s,readOnlyType:c="text",readOnlyValue:a,activeComponent:n,overStyled:l,onLabelEditClick:d,...i},r){return t?s?o.jsx(D,{ref:r,...i,onLabelEditClick:d,overStyled:l,children:s}):o.jsx(jo,{ref:r,type:c,value:a,onLabelEditClick:d,overStyled:l,...i}):o.jsx(D,{ref:r,...i,onLabelEditClick:d,overStyled:l,children:n})});ao.displayName="WithReadOnlyWrapper";const lt="Dropdown-module__root___uVyL0",dt="Dropdown-module__input___dK4dN",pt="Dropdown-module__section___j3MRB",_t="Dropdown-module__dropdown___gG-Sw",mt="Dropdown-module__option___nAGU-",L={root:lt,input:dt,section:pt,dropdown:_t,option:mt},Mo=f.forwardRef(function({overStyled:t=!1,formLayout:s="stacked",containerWidth:c,labelSize:a,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,className:v,style:x,disabled:w,readOnly:C,readOnlyComponent:R,value:W,defaultValue:I,data:S,...z},y){const T=$(z,t),k=T;delete k.size,delete k.variant,delete k.radius;const A={wrapper:L.root,input:L.input,section:L.section,dropdown:L.dropdown,option:L.option},Z=k.classNames;if(Z&&typeof Z=="object"&&!Array.isArray(Z)){const B=Z;A.wrapper=B.wrapper?`${L.root} ${B.wrapper}`:L.root,A.input=B.input?`${L.input} ${B.input}`:L.input,A.section=B.section?`${L.section} ${B.section}`:L.section,A.dropdown=B.dropdown?`${L.dropdown} ${B.dropdown}`:L.dropdown,A.option=B.option?`${L.option} ${B.option}`:L.option}const Q={...x||{},width:c||"100%"};return o.jsx(ao,{className:v,style:Q,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:t,formLayout:s,labelSize:a,labelAlignment:n,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:i,label:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,readOnly:C,readOnlyComponent:R,readOnlyType:"text",readOnlyValue:W!==void 0?String(W):I?String(I):void 0,activeComponent:o.jsx(N.Select,{ref:y,classNames:A,disabled:w,value:W,defaultValue:I,data:S||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":w?"true":void 0,"data-error":u?"true":void 0},...T})})});Mo.displayName="Dropdown";const ut=e=>o.jsx("div",{...e,children:"FileInput"}),ft=e=>o.jsx("div",{...e,children:"FileUpload"}),bt="Flex-module__root___yYser",J={root:bt},Eo=f.forwardRef(function({children:t,overStyled:s=!1,gap:c="rec-default",...a},n){const l=$({...a,gap:c},s),d=l,i={root:J.root},r=d.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const u=r;i.root=u.root?`${J.root} ${u.root}`:J.root}const p=d.className,m=p?`${J.root} ${p}`:J.root;return o.jsx(N.Flex,{ref:n,className:m,classNames:i,...l,children:t})});Eo.displayName="Flex";const ht="Group-module__root___ftO64",oo={root:ht},Do=f.forwardRef(function({children:t,overStyled:s=!1,gap:c="rec-default",...a},n){const l=$({...a,gap:c},s),d=l,i={root:oo.root},r=d.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const u=r;i.root=u.root?`${oo.root} ${u.root}`:oo.root}const p=d.className,m=p?`${oo.root} ${p}`:oo.root;return o.jsx(N.Group,{ref:n,className:m,classNames:i,...l,children:t})});Do.displayName="Group";const xt=e=>o.jsx("div",{...e,children:"HoverCard"}),Nt=e=>o.jsx("div",{...e,children:"Link"}),$t="Loader-module__root___6iYOP",eo={root:$t},Vo=f.forwardRef(function({variant:t="oval",size:s="default",overStyled:c=!1,...a},n){const d={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[s]||"default",i=$(a,c),r={root:eo.root},p=i.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const _=p;r.root=_.root?`${eo.root} ${_.root}`:eo.root}const m=i.className,u=m?`${eo.root} ${m}`:eo.root;return o.jsx(N.Loader,{ref:n,type:t,"data-variant":t,"data-size":d,...i,className:u,classNames:r})});Vo.displayName="Loader";const yt=e=>o.jsx("div",{...e,children:"Menu"}),jt=e=>o.jsx("div",{...e,children:"Modal"}),vt=e=>o.jsx("div",{...e,children:"NumberInput"}),wt=e=>o.jsx("div",{...e,children:"Pagination"}),Ct=e=>o.jsx("div",{...e,children:"Panel"}),gt=e=>o.jsx("div",{...e,children:"Popover"}),Pt="Radio-module__groupRoot___bfUii",Rt="Radio-module__root___kAjTD",Wt="Radio-module__body___q2Wpj",At="Radio-module__inner___QaTBB",kt="Radio-module__radio___MfgN-",St="Radio-module__icon___DWznm",Tt="Radio-module__labelWrapper___dB0Gi",It="Radio-module__label___vAFIP",P={groupRoot:Pt,root:Rt,body:Wt,inner:At,radio:kt,icon:St,labelWrapper:Tt,label:It},vo=f.forwardRef(function({overStyled:t=!1,formLayout:s="stacked",labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,className:v,style:x,children:w,readOnly:C,readOnlyComponent:R,...W},I){const S=$(W,t),z=S;return delete z.size,C&&R?o.jsx(D,{className:v,style:x,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,children:R}):o.jsx(D,{className:v,style:x,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,children:o.jsx(N.Radio.Group,{ref:I,...S,children:o.jsx("div",{className:P.groupRoot,"data-layout":s,children:f.Children.map(w,y=>f.isValidElement(y)?f.cloneElement(y,{disabled:C||y.props.disabled}):y)})})})});vo.displayName="RadioGroup";const zt=({className:e,style:t})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:o.jsx("circle",{cx:"8",cy:"8",r:"5"})}),wo=f.forwardRef(function({overStyled:t=!1,readOnly:s,readOnlyComponent:c,disabled:a,...n},l){const d=$(n,t),i=d;if(delete i.size,delete i.color,delete i.radius,delete i.variant,delete i.iconColor,s&&c)return o.jsx(o.Fragment,{children:c});const r={root:P.root,body:P.body,inner:P.inner,radio:P.radio,icon:P.icon,labelWrapper:P.labelWrapper,label:P.label},p=i.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const _=p;r.root=_.root?`${P.root} ${_.root}`:P.root,r.body=_.body?`${P.body} ${_.body}`:P.body,r.inner=_.inner?`${P.inner} ${_.inner}`:P.inner,r.radio=_.radio?`${P.radio} ${_.radio}`:P.radio,r.icon=_.icon?`${P.icon} ${_.icon}`:P.icon,r.labelWrapper=_.labelWrapper?`${P.labelWrapper} ${_.labelWrapper}`:P.labelWrapper,r.label=_.label?`${P.label} ${_.label}`:P.label}const m=i.className,u=m?`${P.root} ${m}`:P.root;return o.jsx(N.Radio,{ref:l,icon:zt,className:u,classNames:r,disabled:s||a,...d})});wo.displayName="Radio";wo.Group=vo;const Ft=e=>o.jsx("div",{...e,children:"Search"}),Lt=e=>o.jsx("div",{...e,children:"SegmentedControl"}),Bt=e=>o.jsx("div",{...e,children:"Slider"}),Gt="Stack-module__root___NUN-x",to={root:Gt},qo=f.forwardRef(function({children:t,overStyled:s=!1,gap:c="rec-default",...a},n){const l=$({...a,gap:c},s),d=l,i={root:to.root},r=d.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const u=r;i.root=u.root?`${to.root} ${u.root}`:to.root}const p=d.className,m=p?`${to.root} ${p}`:to.root;return o.jsx(N.Stack,{ref:n,className:m,classNames:i,...l,children:t})});qo.displayName="Stack";const Mt=e=>o.jsx("div",{...e,children:"Stepper"}),Et="Switch-module__root___Y5Ydi",Dt="Switch-module__body___Sw9Wr",Vt="Switch-module__track___7ObdZ",qt="Switch-module__thumb___-FTeK",Ot="Switch-module__labelWrapper___YSOwx",Ht="Switch-module__label___LrH7V",Yt="Switch-module__thumbIconWrapper___sCY-1",Ut="Switch-module__checkIcon___ZBAQN",Kt="Switch-module__closeIcon___bLLGw",Zt="Switch-module__groupRoot___-Uepi",j={root:Et,body:Dt,track:Vt,thumb:qt,labelWrapper:Ot,label:Ht,thumbIconWrapper:Yt,checkIcon:Ut,closeIcon:Kt,groupRoot:Zt},Co=f.forwardRef(function({overStyled:t=!1,formLayout:s="stacked",labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,className:v,style:x,children:w,readOnly:C,readOnlyComponent:R,...W},I){const S=$(W,t),z=S;return delete z.size,C&&R?o.jsx(D,{className:v,style:x,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,children:R}):o.jsx(D,{className:v,style:x,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,description:r,assistiveText:p,assistiveWithIcon:m,error:u,required:_,withAsterisk:h,id:b,children:o.jsx(N.Switch.Group,{ref:I,...S,children:o.jsx("div",{className:j.groupRoot,"data-layout":s,children:f.Children.map(w,y=>f.isValidElement(y)?f.cloneElement(y,{disabled:C||y.props.disabled}):y)})})})});Co.displayName="SwitchGroup";const go=f.forwardRef(function({overStyled:t=!1,readOnly:s,readOnlyComponent:c,disabled:a,thumbIcon:n,...l},d){const i=$(l,t),r=i;if(delete r.size,delete r.color,delete r.radius,delete r.variant,s&&c)return o.jsx(o.Fragment,{children:c});const p={root:j.root,body:j.body,track:j.track,thumb:j.thumb,trackLabel:j.trackLabel,labelWrapper:j.labelWrapper,label:j.label},m=r.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const b=m;p.root=b.root?`${j.root} ${b.root}`:j.root,p.body=b.body?`${j.body} ${b.body}`:j.body,p.track=b.track?`${j.track} ${b.track}`:j.track,p.thumb=b.thumb?`${j.thumb} ${b.thumb}`:j.thumb,p.trackLabel=b.trackLabel?`${j.trackLabel} ${b.trackLabel}`:j.trackLabel,p.labelWrapper=b.labelWrapper?`${j.labelWrapper} ${b.labelWrapper}`:j.labelWrapper,p.label=b.label?`${j.label} ${b.label}`:j.label}const u=r.className,_=u?`${j.root} ${u}`:j.root,h=o.jsxs("div",{className:j.thumbIconWrapper,children:[o.jsx(N.CheckIcon,{className:j.checkIcon}),o.jsx(N.CloseIcon,{className:j.closeIcon})]});return o.jsx(N.Switch,{ref:d,className:_,classNames:p,disabled:s||a,thumbIcon:n??h,...i})});go.displayName="Switch";go.Group=Co;const Qt=e=>o.jsx("div",{...e,children:"Table"}),Xt=e=>o.jsx("div",{...e,children:"Tabs"}),Oo=f.forwardRef(function({overStyled:t=!1,variant:s="body",...c},a){const n=$(c,t),l=n.className,d=`recursica_brand_typography_${s}`,i=l?`${d} ${l}`:d;return o.jsx(N.Text,{ref:a,className:i,...n})});Oo.displayName="Text";const Jt="TextArea-module__root___3dyeu",or="TextArea-module__input___8l36v",K={root:Jt,input:or},Ho=f.forwardRef(function({overStyled:t=!1,formLayout:s="stacked",labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,assistiveText:r,assistiveWithIcon:p,error:m,required:u,withAsterisk:_,id:h,className:b,style:v,disabled:x,readOnly:w,readOnlyComponent:C,value:R,defaultValue:W,...I},S){const z=$(I,t),y=z;delete y.size,delete y.variant,delete y.radius;const T={wrapper:K.root,input:K.input},k=y.classNames;if(k&&typeof k=="object"&&!Array.isArray(k)){const A=k;T.wrapper=A.wrapper?`${K.root} ${A.wrapper}`:K.root,T.input=A.input?`${K.input} ${A.input}`:K.input}return o.jsx(ao,{className:b,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:t,formLayout:s,labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,assistiveText:r,assistiveWithIcon:p,error:m,required:u,withAsterisk:_,id:h,readOnly:w,readOnlyComponent:C,readOnlyType:"text",readOnlyValue:R!==void 0?R:W,activeComponent:o.jsx(N.Textarea,{ref:S,classNames:T,disabled:x,value:R,defaultValue:W,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":x?"true":void 0,"data-error":m?"true":void 0},...z})})});Ho.displayName="TextArea";const er="TextField-module__root___2ZYkG",tr="TextField-module__input___RL-My",rr="TextField-module__section___bCIJ0",q={root:er,input:tr,section:rr},Yo=f.forwardRef(function({overStyled:t=!1,formLayout:s="stacked",labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,assistiveText:r,assistiveWithIcon:p,error:m,required:u,withAsterisk:_,id:h,className:b,style:v,disabled:x,readOnly:w,readOnlyComponent:C,value:R,defaultValue:W,...I},S){const z=$(I,t),y=z;delete y.size,delete y.variant,delete y.radius;const T={wrapper:q.root,input:q.input,section:q.section},k=y.classNames;if(k&&typeof k=="object"&&!Array.isArray(k)){const A=k;T.wrapper=A.wrapper?`${q.root} ${A.wrapper}`:q.root,T.input=A.input?`${q.input} ${A.input}`:q.input,T.section=A.section?`${q.section} ${A.section}`:q.section}return o.jsx(ao,{className:b,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:t,formLayout:s,labelSize:c,labelAlignment:a,labelOptionalText:n,labelWithEditIcon:l,onLabelEditClick:d,label:i,assistiveText:r,assistiveWithIcon:p,error:m,required:u,withAsterisk:_,id:h,readOnly:w,readOnlyComponent:C,readOnlyType:"text",readOnlyValue:R!==void 0?R:W,activeComponent:o.jsx(N.Input,{ref:S,classNames:T,disabled:x,value:R,defaultValue:W,wrapperProps:{"data-disabled":x?"true":void 0,"data-error":m?"true":void 0},...z})})});Yo.displayName="TextField";const sr=e=>o.jsx("div",{...e,children:"TimePicker"}),ar=e=>o.jsx("div",{...e,children:"Timeline"}),Uo=f.forwardRef(function({overStyled:t=!1,order:s=1,...c},a){const n=$(c,t),l=n.className,d=`recursica_brand_typography_h${s}`,i=l?`${d} ${l}`:d;return o.jsx(N.Title,{ref:a,order:s,className:i,...n})});Uo.displayName="Title";const nr=e=>o.jsx("div",{...e,children:"Toast"}),cr=e=>o.jsx("div",{...e,children:"Tooltip"}),ir=e=>o.jsx("div",{...e,children:"TransferList"});exports.Accordion=io;exports.AccordionControl=no;exports.AccordionItem=mo;exports.AccordionPanel=co;exports.Avatar=So;exports.Badge=To;exports.Breadcrumb=Io;exports.Button=zo;exports.Card=so;exports.CardContent=ho;exports.CardFooter=bo;exports.CardHeader=fo;exports.CardSection=uo;exports.Checkbox=$o;exports.CheckboxGroup=No;exports.Chip=Lo;exports.Container=Bo;exports.DatePicker=st;exports.Dropdown=Mo;exports.EmptyValueRenderer=ro;exports.FileInput=ut;exports.FileUpload=ft;exports.Flex=Eo;exports.Group=Do;exports.HoverCard=xt;exports.Label=xo;exports.Layer=Go;exports.Link=Nt;exports.Loader=Vo;exports.Menu=yt;exports.Modal=jt;exports.NumberInput=vt;exports.Pagination=wt;exports.Panel=Ct;exports.Popover=gt;exports.Radio=wo;exports.RadioGroup=vo;exports.ReadOnlyField=jo;exports.ReadOnlyTextField=yo;exports.RecursicaThemeProvider=ct;exports.Search=Ft;exports.SegmentedControl=Lt;exports.Slider=Bt;exports.Stack=qo;exports.Stepper=Mt;exports.Switch=go;exports.SwitchGroup=Co;exports.Table=Qt;exports.Tabs=Xt;exports.Text=Oo;exports.TextArea=Ho;exports.TextField=Yo;exports.TimePicker=sr;exports.Timeline=ar;exports.Title=Uo;exports.Toast=nr;exports.Tooltip=cr;exports.TransferList=ir;exports.WithReadOnlyWrapper=ao;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("react"),x=require("@mantine/core"),fo=["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"],bo=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 fo)a in n&&delete n[a];for(const[a,t]of Object.entries(n))typeof t=="string"&&t.startsWith("rec-")&&bo.has(a)&&t in Te&&(n[a]=Te[t]);return n}const yo="Accordion-module__root___Dem6d",ho="Accordion-module__item___7ryVk",xo="Accordion-module__noDivider___Ni2tT",No="Accordion-module__control___b4wgX",$o="Accordion-module__label___Ss7uW",vo="Accordion-module__chevron___i-HVZ",Co="Accordion-module__iconLeftWrapper___5oLen",jo="Accordion-module__panel___Wx50w",wo="Accordion-module__content___PEM9t",H={root:yo,item:ho,noDivider:xo,control:No,label:$o,chevron:vo,iconLeftWrapper:Co,panel:jo,content:wo},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},i=t.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(c=>{s[c]?s[c]=`${s[c]} ${d[c]}`:s[c]=d[c]})}const l=t.className;return e.jsx(x.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,...i},l){const d=v(i,s),c=d.className,p=[a?void 0:H.noDivider,c].filter(Boolean).join(" ")||void 0;return e.jsx(x.Accordion.Item,{ref:l,className:p,...d,children:o?e.jsxs(e.Fragment,{children:[e.jsx(_e,{leftIcon:n,children:o}),e.jsx(fe,{children:t})]}):t})});Ne.displayName="AccordionItem";const _e=b.forwardRef(function({leftIcon:o,children:n,overStyled:a=!1,...t},s){const i=v(t,a),l=i.className;return e.jsx(x.Accordion.Control,{ref:s,className:l,icon:o?e.jsx("span",{className:H.iconLeftWrapper,"aria-hidden":!0,children:o}):void 0,...i,children:n})});_e.displayName="AccordionControl";const fe=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(x.Accordion.Panel,{ref:a,className:s,...t})});fe.displayName="AccordionPanel";const be=Oe;be.Item=Ne;be.Control=_e;be.Panel=fe;const go="Avatar-module__root___fXu-J",Po="Avatar-module__iconWrapper___ojly2",Ro="Avatar-module__textWrapper___zp-jD",Wo="Avatar-module__image___ieqGp",Ao="Avatar-module__placeholder___IDW7-",D={root:go,iconWrapper:Po,textWrapper:Ro,image:Wo,placeholder:Ao},Me=b.forwardRef(function({size:o="default",variant:n="solid",icon:a,className:t,classNames:s,children:i,style:l,src:d,...c},p){const u={solid:"filled",outline:"outline",ghost:"transparent"},y={default:"md",small:"sm",large:"lg"};let m="text";d?m="image":a&&(m="icon");const _={root:D.root,image:D.image,placeholder:D.placeholder};if(s&&typeof s=="object"&&!Array.isArray(s)){const h=s;_.root=h.root?`${D.root} ${h.root}`:D.root,_.image=h.image?`${D.image} ${h.image}`:D.image,_.placeholder=h.placeholder?`${D.placeholder} ${h.placeholder}`:D.placeholder}return e.jsx(x.Avatar,{ref:p,className:t,classNames:_,variant:u[n],size:y[o],style:l,src:d,"data-variant":n,"data-size":o,"data-style":m,...c,children:a!=null?e.jsx("span",{className:D.iconWrapper,"aria-hidden":!0,children:a}):i!=null?e.jsx("span",{className:D.textWrapper,children:i}):void 0})});Me.displayName="Avatar";const So="Badge-module__root___5osNT",G={root:So},ze=b.forwardRef(function({variant:o="primary-color",overStyled:n=!1,...a},t){const s=v(a,n),i={root:G.root,section:G.section,label:G.label},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;i.root=p.root?`${G.root} ${p.root}`:G.root,i.section=p.section??G.section,i.label=p.label??G.label}const d=s.className,c=d?`${G.root} ${d}`:G.root;return e.jsx(x.Badge,{ref:t,variant:"filled","data-variant":o,...s,className:c,classNames:i})});ze.displayName="Badge";const ko="Breadcrumb-module__root___x-9ln",To="Breadcrumb-module__separator___qrUX-",K={root:ko,separator:To},Fe=b.forwardRef(function({overStyled:o=!1,separator:n=">",...a},t){const s=v({separator:n,...a},o),i={root:K.root,separator:K.separator},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;i.root=p.root?`${K.root} ${p.root}`:K.root,i.separator=p.separator?`${K.separator} ${p.separator}`:K.separator}const d=s.className,c=d?`${K.root} ${d}`:K.root;return e.jsx(x.Breadcrumbs,{ref:t,...s,className:c,classNames:i})});Fe.displayName="Breadcrumb";const Lo="Button-module__root___Q2R8-",Io="Button-module__label___UJ3Zt",Oo="Button-module__labelText___rFV5p",Mo="Button-module__iconWrapper___uEKPa",zo="Button-module__section___f2mKr",V={root:Lo,label:Io,labelText:Oo,iconWrapper:Mo,section:zo};function Fo(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,...i},l){const d={solid:"filled",outline:"outline",text:"subtle"},c={default:"md",small:"sm"},p=v(i,s),u=p;delete u.fullWidth;const y=!!a||!!u.leftSection,m=!!u.rightSection,_=(y||m)&&!Fo(t);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:V.root,section:V.section,label:V.label},C=u.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const f=C;h.root=f.root?`${V.root} ${f.root}`:V.root,h.section=f.section??V.section,h.label=f.label??V.label}const N=u.className,j=N?`${V.root} ${N}`:V.root;return e.jsx(x.Button,{ref:l,className:j,classNames:h,variant:d[o],size:c[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 Bo="Card-module__root___c9KvZ",Eo="Card-module__header___PTXf2",Do="Card-module__footer___Mu-JC",Vo="Card-module__section___BRT8H",Go="Card-module__content___oFIQa",Y={root:Bo,header:Eo,footer:Do,section:Vo,content:Go},Ee=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s={root:Y.root},i=t.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(c=>{s[c]?s[c]=`${s[c]} ${d[c]}`:s[c]=d[c]})}const l=t.className;return e.jsx(x.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(x.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(x.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(x.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 ce=Ee;ce.Section=$e;ce.Header=ve;ce.Footer=Ce;ce.Content=je;const qo="Label-module__root___e6HXZ",Ho="Label-module__labelText___rieFR",Yo="Label-module__required___Ggrzc",Zo="Label-module__optionalText___Y2yun",Ko="Label-module__actionAreaWrapper___ELoZK",Uo="Label-module__editIconWrapper___NG2xW",E={root:qo,labelText:Ho,required:Yo,optionalText:Zo,actionAreaWrapper:Ko,editIconWrapper:Uo},we=b.forwardRef(function({labelSize:o="default",labelAlignment:n,required:a=!1,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:i,onLabelEditClick:l,children:d,overStyled:c=!1,...p},u){const y=n||"left";let m;a||(t===!0?m="optional":t&&(m=t));const _=v(p,c),h=_,C={label:E.root,required:E.required},N=h.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 j=h.className,f=j?`${E.root} ${j}`:E.root;return e.jsxs(x.Input.Label,{ref:u,className:f,classNames:C,"data-size":o,"data-alignment":y,required:a&&!s,..._,children:[e.jsx("span",{className:E.labelText,children:d}),m&&e.jsx("span",{className:E.optionalText,children:typeof m=="string"?`(${m})`:m}),i?e.jsx("span",{className:E.actionAreaWrapper,children:i}):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 Xo="FormControlLayout-module__root___yNDhZ",Qo="FormControlLayout-module__leftSection___GBM1r",Jo="FormControlLayout-module__rightSection___bcL4v",pe={root:Xo,leftSection:Qo,rightSection:Jo},Z=b.forwardRef(function({formLayout:o="stacked",labelSize:n="default",controlMaxWidth:a,controlMinWidth:t,leftSection:s,children:i,className:l,style:d,...c},p){const u=l?`${pe.root} ${l}`:pe.root,m=s!=null||o==="side-by-side";return e.jsxs("div",{ref:p,className:u,"data-form-layout":o,style:{...d,...a?{"--form-control-max-width":a}:{},...t?{"--form-control-min-width":t}:{}},...c,children:[m&&e.jsx("div",{className:pe.leftSection,"data-size":n,children:s}),e.jsx("div",{className:pe.rightSection,children:i})]})});Z.displayName="FormControlLayout";const et="AssistiveElement-module__root___WhQ43",ot="AssistiveElement-module__textWrapper___sfy5E",tt="AssistiveElement-module__iconWrapper___gObRF",he={root:et,textWrapper:ot,iconWrapper:tt},rt=()=>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"})]}),st=()=>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,...i},l){const c=v(i,s),p=he.root,u=t?`${p} ${t}`:p,y=o==="error"?st:rt;return e.jsxs("div",{ref:l,className:u,"data-variant":o,style:c.style,...c,children:[n&&e.jsx("span",{className:he.iconWrapper,children:e.jsx(y,{})}),e.jsx("span",{className:he.textWrapper,children:a})]})});xe.displayName="AssistiveElement";const at="FormControlWrapper-module__inputSection___HenXk",Le={inputSection:at},me=b.forwardRef(function({formLayout:o,labelSize:n,labelAlignment:a,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:u=!0,controlMaxWidth:y,controlMinWidth:m,error:_,required:h,withAsterisk:C,id:N,children:j,className:f,overStyled:P=!1,labelElement:$,...O},L){const A=b.useId(),I=N||`recursica-fc-${A}`,M=p||c,S=M?`${I}-assistive`:void 0,k=_?`${I}-error`:void 0,T=v(O,P),X=f||T.className,de=Le.root,B=X?`${de} ${X}`:de,uo=b.isValidElement(j)?b.cloneElement(j,{...M&&!j.props["aria-describedby"]?{"aria-describedby":S}:{},..._&&!j.props["aria-errormessage"]?{"aria-errormessage":k}:{}}):j,_o=d?e.jsx(we,{id:I,labelAlignment:a,labelOptionalText:t,labelWithEditIcon:s,labelActionArea:i,onLabelEditClick:l,required:C??h,...$==="div"?{as:"div"}:{},children:d}):void 0;return e.jsx(Z,{ref:L,className:B,formLayout:o,labelSize:n,controlMaxWidth:y,controlMinWidth:m,leftSection:_o,...T,children:e.jsxs("div",{className:Le.inputSection,children:[uo,_&&e.jsx(xe,{id:k,assistiveVariant:"error",assistiveWithIcon:u,children:_}),!_&&M&&e.jsx(xe,{id:S,assistiveVariant:"help",assistiveWithIcon:u,children:M})]})})});me.displayName="FormControlWrapper";const nt="_root_1qhn7_3",lt="_contents_1qhn7_18",ee={root:nt,contents:lt},De=b.forwardRef(function({layer:r,contentsOnly:o,children:n,className:a,style:t,...s},i){const l=o?a?`${ee.root} ${ee.contents} ${a}`:`${ee.root} ${ee.contents}`:a?`${ee.root} ${a}`:ee.root;return e.jsx("div",{ref:i,className:l,style:t,...o?{}:{"data-recursica-layer":String(r)},...s,children:n})});De.displayName="Layer";const ie=({emptyText:r="N/A"})=>e.jsx(b.Fragment,{children:r});ie.displayName="EmptyValueRenderer";ie.check=r=>r==null||r===""||Array.isArray(r)&&r.length===0;const Ie="data-recursica-theme";function it({children:r,theme:o="light"}){return b.useEffect(()=>{const n=document.documentElement;return n.setAttribute(Ie,o),()=>{n.removeAttribute(Ie)}},[o]),e.jsx(e.Fragment,{children:r})}const ct="ReadOnlyField-module__textField___qKn25",ue={textField:ct},le=({value:r,overStyled:o=!1,...n})=>{const a=v(n,o),t=a.className;return e.jsx(x.Box,{component:"p",className:t?`${ue.textField} ${t}`:ue.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},i){let l=null;const d=v(s,t),c=a||ie,u=(c.check?c.check(o):ie.check(o))?e.jsx(c,{value:o}):o;switch(n){case"boolean":l=e.jsx(le,{value:o===!0?"True":o===!1?"False":u,overStyled:t});break;case"switch":l=e.jsx(le,{value:o===!0?"On":o===!1?"Off":u,overStyled:t});break;case"text":default:l=e.jsx(le,{value:u,overStyled:t});break}return e.jsx(me,{ref:i,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:i,activeComponent:l,overStyled:d,onLabelEditClick:c,...p},u){if(o){if(n){const y=n;return e.jsx(me,{ref:u,...p,onLabelEditClick:c,overStyled:d,children:e.jsx(y,{...s})})}return e.jsx(ge,{ref:u,type:a,value:t,emptyValueComponent:i,onLabelEditClick:c,overStyled:d,...p})}return e.jsx(me,{ref:u,...p,onLabelEditClick:c,overStyled:d,children:l})});U.displayName="WithReadOnlyWrapper";const dt="Checkbox-module__groupRoot___cBS0o",pt="Checkbox-module__root___mY3qk",mt="Checkbox-module__body___5yC7q",ut="Checkbox-module__inner___rTke4",_t="Checkbox-module__input___2kt-h",ft="Checkbox-module__icon___-O7i6",bt="Checkbox-module__labelWrapper___GpZkr",yt="Checkbox-module__label___cwRtI",R={groupRoot:dt,root:pt,body:mt,inner:ut,input:_t,icon:ft,labelWrapper:bt,label:yt},Pe=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:u,assistiveText:y,assistiveWithIcon:m,error:_,required:h,withAsterisk:C,id:N,className:j,style:f,children:P,readOnly:$,readOnlyComponent:O,emptyValueComponent:L,value:A,defaultValue:I,...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:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:u,assistiveText:y,assistiveWithIcon:m,error:_,required:h,withAsterisk:C,id:N,readOnly:$&&!!O,readOnlyComponent:O,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:I,readOnlyNativeProps:o,activeComponent:e.jsx(x.Checkbox.Group,{ref:n,...S,disabled:$||k.disabled,value:A,defaultValue:I,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:i,formLayout:l,labelSize:d,controlMaxWidth:c,controlMinWidth:p,...u}=o,y=v(u,a),m=y;delete m.size,delete m.color,delete m.radius,delete m.variant,delete m.iconColor;const _={root:R.root,body:R.body,inner:R.inner,input:R.input,icon:R.icon,labelWrapper:R.labelWrapper,label:R.label},h=m.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const f=h;_.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=m.className,N=C?`${R.root} ${C}`:R.root;if(t&&s){const f=!!(m.checked??m.defaultChecked),P=s,$=e.jsx(P,{...o,checked:f,label:m.label});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:$}):e.jsx(e.Fragment,{children:$})}const j=e.jsx(x.Checkbox,{ref:n,className:N,classNames:_,disabled:t||i,...y});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:j}):j});Re.displayName="Checkbox";Re.Group=Pe;const ht="Chip-module__root___f5pFk",xt="Chip-module__label___Ov9pg",Nt="Chip-module__mantineIconWrapper___KLSz6",$t="Chip-module__innerWrapper___EnrTF",vt="Chip-module__children___zbRAR",Ct="Chip-module__leadingIcon___JBtjQ",jt="Chip-module__removeIcon___pVju-",z={root:ht,label:xt,mantineIconWrapper:Nt,innerWrapper:$t,children:vt,leadingIcon:Ct,removeIcon:jt};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 Ve=b.forwardRef(function({error:o=!1,icon:n,onRemove:a,removeLabel:t="Remove",children:s,overStyled:i=!1,...l},d){const c=v(l,i),p=c,u={root:z.root,label:z.label,input:z.input,iconWrapper:z.mantineIconWrapper,checkIcon:z.checkIcon},y=p.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const N=y;u.root=N.root?`${z.root} ${N.root}`:z.root,u.label=N.label?`${z.label} ${N.label}`:z.label}const m=p.className,_=m?`${z.root} ${m}`:z.root,h=o?"":void 0,C=!s&&(!!n||!!a);return e.jsx(x.Chip,{ref:d,className:_,classNames:u,...h!==void 0?{"data-error":""}:{},...C?{"data-icon-only":""}:{},...c,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:N=>{N.preventDefault(),N.stopPropagation(),a(N)},"aria-label":t,onKeyDown:N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),N.stopPropagation(),a(N))},tabIndex:0,children:e.jsx(wt,{})})]})})});Ve.displayName="Chip";const gt="Container-module__root___UVssr",te={root:gt},Ge=b.forwardRef(function({children:o,size:n,overStyled:a=!1,...t},s){const i=v(t,a),l=i,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:te.root},u=l.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const _=u;p.root=_.root?`${te.root} ${_.root}`:te.root}const y=l.className,m=y?`${te.root} ${y}`:te.root;return e.jsx(x.Container,{ref:s,size:c,className:m,classNames:p,...i,children:o})});Ge.displayName="Container";const Pt=r=>e.jsx("div",{...r,children:"DatePicker"}),Rt="Dropdown-module__root___uVyL0",Wt="Dropdown-module__input___dK4dN",At="Dropdown-module__section___j3MRB",St="Dropdown-module__dropdown___gG-Sw",kt="Dropdown-module__option___nAGU-",F={root:Rt,input:Wt,section:At,dropdown:St,option:kt},qe=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",containerWidth:s,labelSize:i,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:p,label:u,assistiveText:y,assistiveWithIcon:m,error:_,required:h,withAsterisk:C,id:N,className:j,style:f,disabled:P,readOnly:$,readOnlyComponent:O,emptyValueComponent:L,value:A,defaultValue:I,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 de={...f||{},width:s||"100%"};return e.jsx(U,{className:j,style:de,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:i,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:p,label:u,assistiveText:y,assistiveWithIcon:m,error:_,required:h,withAsterisk:C,id:N,readOnly:$,readOnlyComponent:O,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):I?String(I):void 0,readOnlyNativeProps:o,activeComponent:e.jsx(x.Select,{ref:n,classNames:T,disabled:P,value:A,defaultValue:I,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})})});qe.displayName="Dropdown";const Tt=r=>e.jsx("div",{...r,children:"FileInput"}),Lt=r=>e.jsx("div",{...r,children:"FileUpload"}),It="Flex-module__root___yYser",re={root:It},He=b.forwardRef(function({children:o,overStyled:n=!1,gap:a="rec-default",...t},s){const i=v({...t,gap:a},n),l=i,d={root:re.root},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const y=c;d.root=y.root?`${re.root} ${y.root}`:re.root}const p=l.className,u=p?`${re.root} ${p}`:re.root;return e.jsx(x.Flex,{ref:s,className:u,classNames:d,...i,children:o})});He.displayName="Flex";const Ot="Group-module__root___ftO64",se={root:Ot},Ye=b.forwardRef(function({children:o,overStyled:n=!1,gap:a="rec-default",...t},s){const i=v({...t,gap:a},n),l=i,d={root:se.root},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const y=c;d.root=y.root?`${se.root} ${y.root}`:se.root}const p=l.className,u=p?`${se.root} ${p}`:se.root;return e.jsx(x.Group,{ref:s,className:u,classNames:d,...i,children:o})});Ye.displayName="Group";const Mt=r=>e.jsx("div",{...r,children:"HoverCard"}),zt=r=>e.jsx("div",{...r,children:"Link"}),Ft="Loader-module__root___6iYOP",ae={root:Ft},Ze=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),c={root:ae.root},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const m=p;c.root=m.root?`${ae.root} ${m.root}`:ae.root}const u=d.className,y=u?`${ae.root} ${u}`:ae.root;return e.jsx(x.Loader,{ref:s,type:o,"data-variant":o,"data-size":l,...d,className:y,classNames:c})});Ze.displayName="Loader";const Bt="Menu-module__dropdown___j4xuA",Et="Menu-module__item___NMXha",Dt="Menu-module__itemLabel___zvcqC",Vt="Menu-module__itemSection___pRIcn",Gt="Menu-module__divider___wPiNq",qt="Menu-module__label___4FBGa",Ht="Menu-module__chevron___hEEiy",Q={dropdown:Bt,item:Et,itemLabel:Dt,itemSection:Vt,divider:Gt,label:qt,chevron:Ht},Ke=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 i=s;Object.keys(i).forEach(l=>{t[l]?t[l]=`${t[l]} ${i[l]}`:t[l]=i[l]})}return e.jsx(x.Menu,{classNames:t,...a})};Ke.displayName="Menu";const Ue=function(o){return e.jsx(x.Menu.Target,{...o})};Ue.displayName="MenuTarget";const Xe=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(x.Menu.Dropdown,{ref:a,className:s,...t})});Xe.displayName="MenuDropdown";const Qe=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t;o||delete s.color;const i=s.className;return e.jsx(x.Menu.Item,{ref:a,className:i,...t})});Qe.displayName="MenuItem";const Je=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(x.Menu.Divider,{ref:a,className:s,...t})});Je.displayName="MenuDivider";const eo=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(x.Menu.Label,{ref:a,className:s,...t})});eo.displayName="MenuLabel";const oo=function(o){return e.jsx(x.Menu.Sub,{...o})};oo.displayName="MenuSub";const to=function(o){return e.jsx(x.Menu.Sub.Target,{...o})};to.displayName="MenuSubTarget";const ro=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t;o||delete s.color;const i=s.className;return e.jsx(x.Menu.Sub.Item,{ref:a,className:i,...t})});ro.displayName="MenuSubItem";const so=b.forwardRef(function({overStyled:o=!1,...n},a){const t=v(n,o),s=t.className;return e.jsx(x.Menu.Sub.Dropdown,{ref:a,className:s,...t})});so.displayName="MenuSubDropdown";const ye=oo;ye.Target=to;ye.Item=ro;ye.Dropdown=so;const J=Ke;J.Target=Ue;J.Dropdown=Xe;J.Item=Qe;J.Divider=Je;J.Label=eo;J.Sub=ye;const Yt=r=>e.jsx("div",{...r,children:"Modal"}),Zt=r=>e.jsx("div",{...r,children:"NumberInput"}),Kt=r=>e.jsx("div",{...r,children:"Pagination"}),Ut=r=>e.jsx("div",{...r,children:"Panel"}),Xt=r=>e.jsx("div",{...r,children:"Popover"}),Qt="Radio-module__groupRoot___bfUii",Jt="Radio-module__root___kAjTD",er="Radio-module__body___q2Wpj",or="Radio-module__inner___QaTBB",tr="Radio-module__radio___MfgN-",rr="Radio-module__icon___DWznm",sr="Radio-module__labelWrapper___dB0Gi",ar="Radio-module__label___vAFIP",W={groupRoot:Qt,root:Jt,body:er,inner:or,radio:tr,icon:rr,labelWrapper:sr,label:ar},We=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:u,assistiveText:y,assistiveWithIcon:m,error:_,required:h,withAsterisk:C,id:N,className:j,style:f,children:P,readOnly:$,readOnlyComponent:O,emptyValueComponent:L,value:A,defaultValue:I,...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:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:u,assistiveText:y,assistiveWithIcon:m,error:_,required:h,withAsterisk:C,id:N,readOnly:$&&!!O,readOnlyComponent:O,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:I,readOnlyNativeProps:o,activeComponent:e.jsx(x.Radio.Group,{ref:n,...S,disabled:$||k.disabled,value:A,defaultValue:I,children:e.jsx("div",{className:W.groupRoot,"data-layout":t,children:b.Children.map(P,w=>b.isValidElement(w)?b.cloneElement(w,{disabled:$||w.props.disabled}):w)})})})});We.displayName="RadioGroup";const nr=({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"})}),Ae=b.forwardRef(function(o,n){const{overStyled:a=!1,readOnly:t,readOnlyComponent:s,disabled:i,formLayout:l,labelSize:d,controlMaxWidth:c,controlMinWidth:p,...u}=o,y=v(u,a),m=y;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,radio:W.radio,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,_.radio=f.radio?`${W.radio} ${f.radio}`:W.radio,_.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 C=m.className,N=C?`${W.root} ${C}`:W.root;if(t&&s){const f=!!(m.checked??m.defaultChecked),P=s,$=e.jsx(P,{...o,checked:f,label:m.label});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:$}):e.jsx(e.Fragment,{children:$})}const j=e.jsx(x.Radio,{ref:n,icon:nr,className:N,classNames:_,disabled:t||i,...y});return l?e.jsx(Z,{formLayout:l,labelSize:d,controlMaxWidth:c,controlMinWidth:p,children:j}):j});Ae.displayName="Radio";Ae.Group=We;const ao=({checked:r,label:o})=>e.jsxs(x.Box,{component:"span",className:ue.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"})]});ao.displayName="ReadOnlySwitchField";const no=({checked:r,label:o})=>e.jsxs(x.Box,{component:"span",className:ue.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"})]});no.displayName="ReadOnlyBooleanField";const lr=r=>e.jsx("div",{...r,children:"Search"}),ir=r=>e.jsx("div",{...r,children:"SegmentedControl"}),cr=r=>e.jsx("div",{...r,children:"Slider"}),dr="Stack-module__root___NUN-x",ne={root:dr},lo=b.forwardRef(function({children:o,overStyled:n=!1,gap:a="rec-default",...t},s){const i=v({...t,gap:a},n),l=i,d={root:ne.root},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const y=c;d.root=y.root?`${ne.root} ${y.root}`:ne.root}const p=l.className,u=p?`${ne.root} ${p}`:ne.root;return e.jsx(x.Stack,{ref:s,className:u,classNames:d,...i,children:o})});lo.displayName="Stack";const pr=r=>e.jsx("div",{...r,children:"Stepper"}),mr="Switch-module__root___Y5Ydi",ur="Switch-module__body___Sw9Wr",_r="Switch-module__track___7ObdZ",fr="Switch-module__thumb___-FTeK",br="Switch-module__labelWrapper___YSOwx",yr="Switch-module__label___LrH7V",hr="Switch-module__thumbIconWrapper___sCY-1",xr="Switch-module__checkIcon___ZBAQN",Nr="Switch-module__closeIcon___bLLGw",$r="Switch-module__groupRoot___-Uepi",g={root:mr,body:ur,track:_r,thumb:fr,labelWrapper:br,label:yr,thumbIconWrapper:hr,checkIcon:xr,closeIcon:Nr,groupRoot:$r},Se=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:u,assistiveText:y,assistiveWithIcon:m,error:_,required:h,withAsterisk:C,id:N,className:j,style:f,children:P,readOnly:$,readOnlyComponent:O,emptyValueComponent:L,value:A,defaultValue:I,...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:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,description:u,assistiveText:y,assistiveWithIcon:m,error:_,required:h,withAsterisk:C,id:N,readOnly:$&&!!O,readOnlyComponent:O,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:I,readOnlyNativeProps:o,activeComponent:e.jsx(x.Switch.Group,{ref:n,...S,disabled:$||k.disabled,value:A,defaultValue:I,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:i,thumbIcon:l,formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:u,...y}=o,m=v(y,a),_=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},C=_.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const $=C;h.root=$.root?`${g.root} ${$.root}`:g.root,h.body=$.body?`${g.body} ${$.body}`:g.body,h.track=$.track?`${g.track} ${$.track}`:g.track,h.thumb=$.thumb?`${g.thumb} ${$.thumb}`:g.thumb,h.trackLabel=$.trackLabel?`${g.trackLabel} ${$.trackLabel}`:g.trackLabel,h.labelWrapper=$.labelWrapper?`${g.labelWrapper} ${$.labelWrapper}`:g.labelWrapper,h.label=$.label?`${g.label} ${$.label}`:g.label}const N=_.className,j=N?`${g.root} ${N}`:g.root;if(t&&s){const $=!!(_.checked??_.defaultChecked),O=s,L=e.jsx(O,{...o,checked:$,label:_.label});return d?e.jsx(Z,{formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:u,children:L}):e.jsx(e.Fragment,{children:L})}const f=e.jsxs("div",{className:g.thumbIconWrapper,children:[e.jsx(x.CheckIcon,{className:g.checkIcon}),e.jsx(x.CloseIcon,{className:g.closeIcon})]}),P=e.jsx(x.Switch,{ref:n,className:j,classNames:h,disabled:t||i,thumbIcon:l??f,...m});return d?e.jsx(Z,{formLayout:d,labelSize:c,controlMaxWidth:p,controlMinWidth:u,children:P}):P});ke.displayName="Switch";ke.Group=Se;const vr=r=>e.jsx("div",{...r,children:"Table"}),Cr=r=>e.jsx("div",{...r,children:"Tabs"}),io=b.forwardRef(function({overStyled:o=!1,variant:n="body",...a},t){const s=v(a,o),i=s.className,l=`recursica_brand_typography_${n}`,d=i?`${l} ${i}`:l;return e.jsx(x.Text,{ref:t,className:d,...s})});io.displayName="Text";const jr="TextArea-module__root___3dyeu",wr="TextArea-module__input___8l36v",oe={root:jr,input:wr},co=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:u,assistiveWithIcon:y,error:m,required:_,withAsterisk:h,id:C,className:N,style:j,disabled:f,readOnly:P,readOnlyComponent:$,emptyValueComponent:O,value:L,defaultValue:A,...I}=o,M=v(I,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:N,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:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:u,assistiveWithIcon:y,error:m,required:_,withAsterisk:h,id:C,readOnly:P,readOnlyComponent:$,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:L!==void 0?L:A,readOnlyNativeProps:o,activeComponent:e.jsx(x.Textarea,{ref:n,classNames:k,disabled:f,value:L,defaultValue:A,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},...M})})});co.displayName="TextArea";const gr="TextField-module__root___2ZYkG",Pr="TextField-module__input___RL-My",Rr="TextField-module__section___bCIJ0",q={root:gr,input:Pr,section:Rr},po=b.forwardRef(function(o,n){const{overStyled:a=!1,formLayout:t="stacked",labelSize:s,labelAlignment:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:u,assistiveWithIcon:y,error:m,required:_,withAsterisk:h,id:C,className:N,style:j,disabled:f,readOnly:P,readOnlyComponent:$,emptyValueComponent:O,value:L,defaultValue:A,...I}=o,M=v(I,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:N,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:i,labelOptionalText:l,labelWithEditIcon:d,onLabelEditClick:c,label:p,assistiveText:u,assistiveWithIcon:y,error:m,required:_,withAsterisk:h,id:C,readOnly:P,readOnlyComponent:$,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:L!==void 0?L:A,readOnlyNativeProps:o,activeComponent:e.jsx(x.Input,{ref:n,classNames:k,disabled:f,value:L,defaultValue:A,wrapperProps:{"data-disabled":f?"true":void 0,"data-error":m?"true":void 0},...M})})});po.displayName="TextField";const Wr=r=>e.jsx("div",{...r,children:"TimePicker"}),Ar=r=>e.jsx("div",{...r,children:"Timeline"}),mo=b.forwardRef(function({overStyled:o=!1,order:n=1,...a},t){const s=v(a,o),i=s.className,l=`recursica_brand_typography_h${n}`,d=i?`${l} ${i}`:l;return e.jsx(x.Title,{ref:t,order:n,className:d,...s})});mo.displayName="Title";const Sr=r=>e.jsx("div",{...r,children:"Toast"}),kr=r=>e.jsx("div",{...r,children:"Tooltip"}),Tr=r=>e.jsx("div",{...r,children:"TransferList"});exports.Accordion=be;exports.AccordionControl=_e;exports.AccordionItem=Ne;exports.AccordionPanel=fe;exports.Avatar=Me;exports.Badge=ze;exports.Breadcrumb=Fe;exports.Button=Be;exports.Card=ce;exports.CardContent=je;exports.CardFooter=Ce;exports.CardHeader=ve;exports.CardSection=$e;exports.Checkbox=Re;exports.CheckboxGroup=Pe;exports.Chip=Ve;exports.Container=Ge;exports.DatePicker=Pt;exports.Dropdown=qe;exports.EmptyValueRenderer=ie;exports.FileInput=Tt;exports.FileUpload=Lt;exports.Flex=He;exports.FormControlLayout=Z;exports.Group=Ye;exports.HoverCard=Mt;exports.Label=we;exports.Layer=De;exports.Link=zt;exports.Loader=Ze;exports.Menu=J;exports.Modal=Yt;exports.NumberInput=Zt;exports.Pagination=Kt;exports.Panel=Ut;exports.Popover=Xt;exports.Radio=Ae;exports.RadioGroup=We;exports.ReadOnlyBooleanField=no;exports.ReadOnlyField=ge;exports.ReadOnlySwitchField=ao;exports.ReadOnlyTextField=le;exports.RecursicaThemeProvider=it;exports.Search=lr;exports.SegmentedControl=ir;exports.Slider=cr;exports.Stack=lo;exports.Stepper=pr;exports.Switch=ke;exports.SwitchGroup=Se;exports.Table=vr;exports.Tabs=Cr;exports.Text=io;exports.TextArea=co;exports.TextField=po;exports.TimePicker=Wr;exports.Timeline=Ar;exports.Title=mo;exports.Toast=Sr;exports.Tooltip=kr;exports.TransferList=Tr;exports.WithReadOnlyWrapper=U;
2
2
  //# sourceMappingURL=mantine-adapter.cjs.map