@recursica/mantine-adapter 0.21.0 → 0.23.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 +18 -0
- package/dist/mantine-adapter.cjs +1 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +2017 -1630
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/AutoComplete/AutoComplete.d.ts +9 -0
- package/dist/src/components/Avatar/Avatar.d.ts +1 -1
- package/dist/src/components/Badge/Badge.d.ts +1 -1
- package/dist/src/components/Button/Button.d.ts +1 -1
- package/dist/src/components/Card/Card.d.ts +1 -1
- package/dist/src/components/DatePicker/DatePicker.d.ts +8 -2
- package/dist/src/components/Flex/Flex.d.ts +1 -1
- package/dist/src/components/Link/Link.d.ts +1 -1
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +6 -1
- package/dist/src/components/Slider/Slider.d.ts +24 -2
- package/dist/src/components/Text/Text.d.ts +1 -1
- package/dist/src/components/Toast/Toast.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/test.html +1 -0
- package/package.json +5 -2
- package/src/GlobalExemptions.modules.css +13 -0
- package/src/components/AutoComplete/AUTOCOMPLETE_IMPLEMENTATION_NOTES.md +21 -0
- package/src/components/AutoComplete/AutoComplete.module.css +311 -0
- package/src/components/AutoComplete/AutoComplete.stories.tsx +187 -0
- package/src/components/AutoComplete/AutoComplete.tsx +154 -0
- package/src/components/Avatar/Avatar.module.css +40 -36
- package/src/components/Badge/Badge.module.css +4 -1
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +3 -10
- package/src/components/Button/Button.module.css +215 -56
- package/src/components/Button/Button.stories.tsx +27 -0
- package/src/components/Button/Button.tsx +11 -4
- package/src/components/Card/Card.module.css +58 -1
- package/src/components/Card/Card.stories.tsx +4 -2
- package/src/components/Checkbox/Checkbox.module.css +74 -46
- package/src/components/Checkbox/Checkbox.stories.tsx +3 -0
- package/src/components/Checkbox/CheckboxGroup.tsx +1 -9
- package/src/components/Chip/Chip.module.css +19 -1
- package/src/components/DatePicker/DATEPICKER_IMPLEMENTATION_NOTES.md +16 -0
- package/src/components/DatePicker/DatePicker.module.css +286 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +127 -4
- package/src/components/DatePicker/DatePicker.tsx +166 -5
- package/src/components/Dropdown/Dropdown.module.css +42 -15
- package/src/components/Dropdown/Dropdown.stories.tsx +3 -0
- package/src/components/Dropdown/Dropdown.tsx +5 -1
- package/src/components/FileInput/FileInput.module.css +50 -0
- package/src/components/FileUpload/FileUpload.module.css +43 -0
- package/src/components/FormControlLayout/FormControlLayout.module.css +12 -2
- package/src/components/FormControlWrapper/FormControlWrapper.module.css +67 -0
- package/src/components/HoverCard/HoverCard.module.css +12 -5
- package/src/components/Label/Label.module.css +11 -3
- package/src/components/Link/Link.module.css +8 -0
- package/src/components/Loader/LOADER_IMPLEMENTATION_NOTES.md +1 -2
- package/src/components/Loader/Loader.module.css +3 -9
- package/src/components/Menu/Menu.module.css +73 -30
- package/src/components/Modal/Modal.module.css +92 -47
- package/src/components/NumberInput/NumberInput.module.css +46 -15
- package/src/components/NumberInput/NumberInput.tsx +5 -1
- package/src/components/Pagination/Pagination.module.css +123 -41
- package/src/components/Panel/Panel.module.css +55 -3
- package/src/components/Popover/Popover.module.css +6 -4
- package/src/components/Radio/Radio.module.css +72 -59
- package/src/components/Radio/Radio.stories.tsx +3 -0
- package/src/components/Radio/RadioGroup.tsx +1 -8
- package/src/components/ReadOnlyField/ReadOnlyField.module.css +14 -0
- package/src/components/ReadOnlyField/ReadOnlyField.tsx +16 -1
- package/src/components/SegmentedControl/SegmentedControl.module.css +106 -41
- package/src/components/SegmentedControl/SegmentedControl.stories.tsx +1 -4
- package/src/components/SegmentedControl/SegmentedControl.tsx +18 -4
- package/src/components/Slider/IMPLEMENTATION_NOTES.md +49 -0
- package/src/components/Slider/Slider.module.css +498 -0
- package/src/components/Slider/Slider.stories.tsx +159 -4
- package/src/components/Slider/Slider.tsx +283 -4
- package/src/components/Stepper/Stepper.module.css +53 -2
- package/src/components/Switch/Switch.module.css +62 -23
- package/src/components/Switch/Switch.stories.tsx +3 -0
- package/src/components/Switch/Switch.tsx +1 -0
- package/src/components/Switch/SwitchGroup.tsx +3 -10
- package/src/components/Tabs/Tabs.module.css +33 -12
- package/src/components/TextArea/TextArea.module.css +58 -120
- package/src/components/TextArea/TextArea.stories.tsx +3 -0
- package/src/components/TextArea/TextArea.tsx +7 -3
- package/src/components/TextField/TextField.module.css +46 -15
- package/src/components/TextField/TextField.tsx +5 -1
- package/src/components/TimePicker/TimePicker.module.css +44 -0
- package/src/components/Timeline/Timeline.module.css +6 -0
- package/src/components/Toast/Toast.module.css +56 -1
- package/src/components/Toast/Toast.tsx +1 -1
- package/src/components/Tooltip/Tooltip.module.css +9 -0
- package/src/components/TransferList/TransferList.module.css +41 -0
- package/src/components/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @recursica/mantine-adapter
|
|
2
2
|
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3cb6f89: Added Slider component
|
|
8
|
+
- fe9d24a: Added adapter tester and updated adapters
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 639ac9a: Fixed loader border issues
|
|
13
|
+
|
|
14
|
+
## 0.22.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 0ead0d7: Updated to latest version of JSON and CSS
|
|
19
|
+
- 0ead0d7: Updated with mui-adapter changes
|
|
20
|
+
|
|
3
21
|
## 0.21.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/mantine-adapter.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("react"),p=require("@mantine/core"),ht=["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"],lo=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Pe={"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 Me(l){const e={...l};for(const[a,r]of Object.entries(e))typeof r=="string"&&r.startsWith("rec-")&&lo.has(a)&&r in Pe&&(e[a]=Pe[r]);return e}function x(l,e){if(e)return l;const a={...l};for(const r of ht)r in a&&delete a[r];for(const[r,t]of Object.entries(a))typeof t=="string"&&t.startsWith("rec-")&&lo.has(r)&&t in Pe&&(a[r]=Pe[t]);return a}const xt="Accordion-module__root___Dem6d",$t="Accordion-module__item___7ryVk",vt="Accordion-module__noDivider___Ni2tT",Ct="Accordion-module__control___b4wgX",wt="Accordion-module__label___Ss7uW",Pt="Accordion-module__chevron___i-HVZ",gt="Accordion-module__iconLeftWrapper___5oLen",jt="Accordion-module__panel___Wx50w",Tt="Accordion-module__content___PEM9t",Q={root:xt,item:$t,noDivider:vt,control:Ct,label:wt,chevron:Pt,iconLeftWrapper:gt,panel:jt,content:Tt},io=function({variant:e="unstyled",overStyled:a=!1,...r}){const t=x(r,a),o={root:Q.root,item:Q.item,control:Q.control,label:Q.label,chevron:Q.chevron,panel:Q.panel,content:Q.content},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=t.className;return s.jsx(p.Accordion,{variant:e,className:i,classNames:o,...t})};io.displayName="Accordion";const Oe=u.forwardRef(function({title:e,leftIcon:a,divider:r=!0,children:t,overStyled:o=!1,...n},i){const c=x(n,o),d=c.className,m=[r?void 0:Q.noDivider,d].filter(Boolean).join(" ")||void 0;return s.jsx(p.Accordion.Item,{ref:i,className:m,...c,children:e?s.jsxs(s.Fragment,{children:[s.jsx(Te,{leftIcon:a,children:e}),s.jsx(Se,{children:t})]}):t})});Oe.displayName="AccordionItem";const Te=u.forwardRef(function({leftIcon:e,children:a,overStyled:r=!1,...t},o){const n=x(t,r),i=n.className;return s.jsx(p.Accordion.Control,{ref:o,className:i,icon:e?s.jsx("span",{className:Q.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...n,children:a})});Te.displayName="AccordionControl";const Se=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Accordion.Panel,{ref:r,className:o,...t})});Se.displayName="AccordionPanel";const Ae=io;Ae.Item=Oe;Ae.Control=Te;Ae.Panel=Se;const St="Avatar-module__root___fXu-J",At="Avatar-module__iconWrapper___ojly2",Rt="Avatar-module__textWrapper___zp-jD",Lt="Avatar-module__image___ieqGp",Wt="Avatar-module__placeholder___IDW7-",H={root:St,iconWrapper:At,textWrapper:Rt,image:Lt,placeholder:Wt},co=u.forwardRef(function({size:e="default",variant:a="solid",icon:r,children:t,src:o,overStyled:n=!1,...i},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},m={default:"md",small:"sm",large:"lg"},_=x(i,n),h=_;let b="text";o?b="image":r&&(b="icon");const f={root:H.root,image:H.image,placeholder:H.placeholder},N=h.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const $=N;f.root=$.root?`${H.root} ${$.root}`:H.root,f.image=$.image?`${H.image} ${$.image}`:H.image,f.placeholder=$.placeholder?`${H.placeholder} ${$.placeholder}`:H.placeholder}const C=h.className;return s.jsx(p.Avatar,{ref:c,className:C,classNames:f,variant:d[a],size:m[e],src:o,"data-variant":a,"data-size":e,"data-style":b,..._,children:r!=null?s.jsx("span",{className:H.iconWrapper,"aria-hidden":!0,children:r}):t!=null?s.jsx("span",{className:H.textWrapper,children:t}):void 0})});co.displayName="Avatar";const It=p.createPolymorphicComponent(co),Mt="Badge-module__root___5osNT",Y={root:Mt},po=u.forwardRef(function({variant:e="primary-color",overStyled:a=!1,...r},t){const o=x(r,a),n={root:Y.root,section:Y.section,label:Y.label},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const m=i;n.root=m.root?`${Y.root} ${m.root}`:Y.root,n.section=m.section??Y.section,n.label=m.label??Y.label}const c=o.className,d=c?`${Y.root} ${c}`:Y.root;return s.jsx(p.Badge,{ref:t,variant:"filled","data-variant":e,...o,className:d,classNames:n})});po.displayName="Badge";const Ot=p.createPolymorphicComponent(po),zt="Breadcrumb-module__root___x-9ln",kt="Breadcrumb-module__separator___qrUX-",se={root:zt,separator:kt},mo=u.forwardRef(function({overStyled:e=!1,separator:a=">",...r},t){const o=x({separator:a,...r},e),n={root:se.root,separator:se.separator},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const m=i;n.root=m.root?`${se.root} ${m.root}`:se.root,n.separator=m.separator?`${se.separator} ${m.separator}`:se.separator}const c=o.className,d=c?`${se.root} ${c}`:se.root;return s.jsx(p.Breadcrumbs,{ref:t,...o,className:d,classNames:n})});mo.displayName="Breadcrumb";const Ft="Loader-module__root___6iYOP",_e={root:Ft},ze=u.forwardRef(function({variant:e="oval",size:a="default",overStyled:r=!1,...t},o){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[a]||"default",c=x(t,r),d={root:_e.root},m=c.classNames;if(m&&typeof m=="object"&&!Array.isArray(m)){const b=m;d.root=b.root?`${_e.root} ${b.root}`:_e.root}const _=c.className,h=_?`${_e.root} ${_}`:_e.root;return s.jsx(p.Loader,{ref:o,type:e,"data-variant":e,"data-size":i,...c,className:h,classNames:d})});ze.displayName="Loader";const Bt="Button-module__root___Q2R8-",Et="Button-module__loader___X-9u-",Dt="Button-module__label___UJ3Zt",Vt="Button-module__labelText___rFV5p",Gt="Button-module__iconWrapper___uEKPa",qt="Button-module__section___f2mKr",G={root:Bt,loader:Et,label:Dt,labelText:Vt,iconWrapper:Gt,section:qt};function Ht(l){return l==null||l===""?!1:typeof l=="string"?l.trim()!=="":!0}const _o=u.forwardRef(function({variant:e="solid",size:a="default",icon:r,children:t,overStyled:o=!1,loaderVariant:n="oval",loaderSize:i,useRecursicaLoader:c=!0,...d},m){const _={solid:"filled",outline:"outline",text:"subtle"},h={default:"md",small:"sm"},b=x(d,o),f=b;delete f.fullWidth;const N=!!r||!!f.leftSection,C=!!f.rightSection,$=(N||C)&&!Ht(t);typeof process<"u"&&process.env.NODE_ENV!=="production"&&$&&!f["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const w={root:G.root,section:G.section,label:G.label,loader:G.loader},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const A=y;w.root=A.root?`${G.root} ${A.root}`:G.root,w.section=A.section??G.section,w.label=A.label??G.label}const g=f.className,v=g?`${G.root} ${g}`:G.root,M=f.loaderProps,S=i??(a==="small"?"small":"default");let j=M;return c&&(j={children:s.jsx(ze,{variant:n,size:S}),...M}),s.jsx(p.Button,{ref:m,className:v,classNames:w,variant:_[e],size:h[a],loaderProps:j,leftSection:r!=null?s.jsx("span",{className:G.iconWrapper,"aria-hidden":!0,children:r}):void 0,"data-variant":e,"data-size":a,...$?{"data-icon-only":""}:{},...b,disabled:!!f.disabled||!!f.loading,children:s.jsx("span",{className:G.labelText,children:t})})});_o.displayName="Button";const Ut=p.createPolymorphicComponent(_o),Zt="Card-module__root___c9KvZ",Yt="Card-module__header___PTXf2 recursica_brand_typography_h3",Kt="Card-module__footer___Mu-JC",Qt="Card-module__section___BRT8H",Xt="Card-module__content___oFIQa",J={root:Zt,header:Yt,footer:Kt,section:Qt,content:Xt},uo=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o={root:J.root},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=t.className;return s.jsx(p.Card,{ref:r,className:i,classNames:o,...t})});uo.displayName="Card";const ke=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Card.Section,{ref:r,className:o?`${J.section} ${o}`:J.section,...t})});ke.displayName="CardSection";const Fe=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Card.Section,{ref:r,className:o?`${J.header} ${o}`:J.header,...t})});Fe.displayName="CardHeader";const Be=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Card.Section,{ref:r,className:o?`${J.footer} ${o}`:J.footer,...t})});Be.displayName="CardFooter";const Ee=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx("div",{ref:r,className:o?`${J.content} ${o}`:J.content,...t})});Ee.displayName="CardContent";const fo=p.createPolymorphicComponent(uo),Re=fo;Re.Section=ke;Re.Header=Fe;Re.Footer=Be;Re.Content=Ee;const Jt=fo,es="Label-module__root___e6HXZ",os="Label-module__labelText___rieFR",ts="Label-module__required___Ggrzc",ss="Label-module__optionalText___Y2yun",rs="Label-module__actionAreaWrapper___ELoZK",as="Label-module__editIconWrapper___NG2xW",q={root:es,labelText:os,required:ts,optionalText:ss,actionAreaWrapper:rs,editIconWrapper:as},De=u.forwardRef(function({labelSize:e="default",labelAlignment:a,required:r=!1,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,children:c,overStyled:d=!1,...m},_){const h=a||"left";let b;r||(t===!0?b="optional":t&&(b=t));const f=x(m,d),N=f,C={label:q.root,required:q.required},$=N.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const g=$;C.label=g.label?`${q.root} ${g.label}`:q.root,C.required=g.required?`${q.required} ${g.required}`:q.required}const w=N.className,y=w?`${q.root} ${w}`:q.root;return s.jsxs(p.Input.Label,{ref:_,className:y,classNames:C,"data-size":e,"data-alignment":h,required:r&&!o,...f,children:[s.jsx("span",{className:q.labelText,children:c}),b&&s.jsx("span",{className:q.optionalText,children:typeof b=="string"?`(${b})`:b}),n?s.jsx("span",{className:q.actionAreaWrapper,children:n}):o?s.jsx("button",{type:"button",className:q.editIconWrapper,"data-replaces-asterisk":r?"true":void 0,onClick:i,"aria-label":"Edit",children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});De.displayName="Label";const ns="FormControlLayout-module__root___yNDhZ",ls="FormControlLayout-module__leftSection___GBM1r",is="FormControlLayout-module__rightSection___bcL4v",Ce={root:ns,leftSection:ls,rightSection:is},ee=u.forwardRef(function({formLayout:e="stacked",labelSize:a="default",controlMaxWidth:r,controlMinWidth:t,leftSection:o,children:n,className:i,style:c,...d},m){const _=i?`${Ce.root} ${i}`:Ce.root,b=o!=null||e==="side-by-side";return s.jsxs("div",{ref:m,className:_,"data-form-layout":e,style:{...c,...r?{"--form-control-max-width":r}:{},...t?{"--form-control-min-width":t}:{}},...d,children:[b&&s.jsx("div",{className:Ce.leftSection,"data-size":a,children:o}),s.jsx("div",{className:Ce.rightSection,children:n})]})});ee.displayName="FormControlLayout";const cs="AssistiveElement-module__root___WhQ43",ds="AssistiveElement-module__textWrapper___sfy5E",ps="AssistiveElement-module__iconWrapper___gObRF",We={root:cs,textWrapper:ds,iconWrapper:ps},ms=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M12 16v-4"}),s.jsx("path",{d:"M12 8h.01"})]}),_s=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),s.jsx("path",{d:"M12 9v4"}),s.jsx("path",{d:"M12 17h.01"})]}),Ie=u.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:a=!0,children:r,className:t,overStyled:o=!1,...n},i){const d=x(n,o),m=We.root,_=t?`${m} ${t}`:m,h=e==="error"?_s:ms;return s.jsxs("div",{ref:i,className:_,"data-variant":e,style:d.style,...d,children:[a&&s.jsx("span",{className:We.iconWrapper,children:s.jsx(h,{})}),s.jsx("span",{className:We.textWrapper,children:r})]})});Ie.displayName="AssistiveElement";const us="FormControlWrapper-module__inputSection___HenXk",to={inputSection:us},ge=u.forwardRef(function({formLayout:e,labelSize:a,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,label:c,description:d,assistiveText:m,assistiveWithIcon:_=!0,controlMaxWidth:h,controlMinWidth:b,error:f,required:N,withAsterisk:C,id:$,children:w,className:y,overStyled:g=!1,labelElement:v,...M},S){const j=u.useId(),A=$||`recursica-fc-${j}`,z=m||d,L=z?`${A}-assistive`:void 0,T=f?`${A}-error`:void 0,O=x(M,g),ne=y||O.className,ve=to.root,V=ne?`${ve} ${ne}`:ve,yt=u.isValidElement(w)?u.cloneElement(w,{...z&&!w.props["aria-describedby"]?{"aria-describedby":L}:{},...f&&!w.props["aria-errormessage"]?{"aria-errormessage":T}:{}}):w,Nt=c?s.jsx(De,{id:A,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,required:C??N,...v==="div"?{as:"div"}:{},children:c}):void 0;return s.jsx(ee,{ref:S,className:V,formLayout:e,labelSize:a,controlMaxWidth:h,controlMinWidth:b,leftSection:Nt,...O,children:s.jsxs("div",{className:to.inputSection,children:[yt,f&&s.jsx(Ie,{id:T,assistiveVariant:"error",assistiveWithIcon:_,children:f}),!f&&z&&s.jsx(Ie,{id:L,assistiveVariant:"help",assistiveWithIcon:_,children:z})]})})});ge.displayName="FormControlWrapper";const fs="_root_1qhn7_3",bs="_contents_1qhn7_18",pe={root:fs,contents:bs},bo=u.forwardRef(function({layer:l,contentsOnly:e,children:a,className:r,style:t,...o},n){const i=e?r?`${pe.root} ${pe.contents} ${r}`:`${pe.root} ${pe.contents}`:r?`${pe.root} ${r}`:pe.root;return s.jsx("div",{ref:n,className:i,style:t,...e?{}:{"data-recursica-layer":String(l)},...o,children:a})});bo.displayName="Layer";const xe=({emptyText:l="N/A"})=>s.jsx(u.Fragment,{children:l});xe.displayName="EmptyValueRenderer";xe.check=l=>l==null||l===""||Array.isArray(l)&&l.length===0;const so="data-recursica-theme";function ys({children:l,theme:e="light"}){return u.useEffect(()=>{const a=document.documentElement;return a.setAttribute(so,e),()=>{a.removeAttribute(so)}},[e]),s.jsx(s.Fragment,{children:l})}const Ns="ReadOnlyField-module__textField___qKn25",je={textField:Ns},he=({value:l,overStyled:e=!1,...a})=>{const r=x(a,e),t=r.className;return s.jsx(p.Box,{component:"p",className:t?`${je.textField} ${t}`:je.textField,...r,children:l!=null?u.isValidElement(l)?l:Array.isArray(l)?l.join(", "):String(l):""})};he.displayName="ReadOnlyTextField";const Ve=u.forwardRef(function({value:e,type:a="text",emptyValueComponent:r,overStyled:t=!1,...o},n){let i=null;const c=x(o,t),d=r||xe,_=(d.check?d.check(e):xe.check(e))?s.jsx(d,{value:e}):e;switch(a){case"boolean":i=s.jsx(he,{value:e===!0?"True":e===!1?"False":_,overStyled:t});break;case"switch":i=s.jsx(he,{value:e===!0?"On":e===!1?"Off":_,overStyled:t});break;case"text":default:i=s.jsx(he,{value:_,overStyled:t});break}return s.jsx(ge,{ref:n,overStyled:t,...c,children:i})});Ve.displayName="ReadOnlyField";const oe=u.forwardRef(function({readOnly:e,readOnlyComponent:a,readOnlyType:r="text",readOnlyValue:t,readOnlyNativeProps:o,emptyValueComponent:n,activeComponent:i,overStyled:c,onLabelEditClick:d,...m},_){if(e){if(a){const h=a;return s.jsx(ge,{ref:_,...m,onLabelEditClick:d,overStyled:c,children:s.jsx(h,{...o})})}return s.jsx(Ve,{ref:_,type:r,value:t,emptyValueComponent:n,onLabelEditClick:d,overStyled:c,...m})}return s.jsx(ge,{ref:_,...m,onLabelEditClick:d,overStyled:c,children:i})});oe.displayName="WithReadOnlyWrapper";const hs="Checkbox-module__groupRoot___cBS0o",xs="Checkbox-module__root___mY3qk",$s="Checkbox-module__body___5yC7q",vs="Checkbox-module__inner___rTke4",Cs="Checkbox-module__input___2kt-h",ws="Checkbox-module__icon___-O7i6",Ps="Checkbox-module__labelWrapper___GpZkr",gs="Checkbox-module__label___cwRtI",W={groupRoot:hs,root:xs,body:$s,inner:vs,input:Cs,icon:ws,labelWrapper:Ps,label:gs},Ge=u.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:b,error:f,required:N,withAsterisk:C,id:$,className:w,style:y,children:g,readOnly:v,readOnlyComponent:M,emptyValueComponent:S,value:j,defaultValue:A,...z}=e,L=x(z,r),T=L;return delete T.size,s.jsx(oe,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:b,error:f,required:N,withAsterisk:C,id:$,readOnly:v&&!!M,readOnlyComponent:M,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:j!==void 0?j:A,readOnlyNativeProps:e,activeComponent:s.jsx(p.Checkbox.Group,{ref:a,...L,disabled:v||T.disabled,value:j,defaultValue:A,children:s.jsx("div",{className:W.groupRoot,"data-layout":t,children:u.Children.map(g,P=>u.isValidElement(P)?u.cloneElement(P,{disabled:v||P.props.disabled}):P)})})})});Ge.displayName="CheckboxGroup";const qe=u.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:o,disabled:n,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,..._}=e,h=x(_,r),b=h;delete b.size,delete b.color,delete b.radius,delete b.variant,delete b.iconColor;const f={root:W.root,body:W.body,inner:W.inner,input:W.input,icon:W.icon,labelWrapper:W.labelWrapper,label:W.label},N=b.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const y=N;f.root=y.root?`${W.root} ${y.root}`:W.root,f.body=y.body?`${W.body} ${y.body}`:W.body,f.inner=y.inner?`${W.inner} ${y.inner}`:W.inner,f.input=y.input?`${W.input} ${y.input}`:W.input,f.icon=y.icon?`${W.icon} ${y.icon}`:W.icon,f.labelWrapper=y.labelWrapper?`${W.labelWrapper} ${y.labelWrapper}`:W.labelWrapper,f.label=y.label?`${W.label} ${y.label}`:W.label}const C=b.className,$=C?`${W.root} ${C}`:W.root;if(t&&o){const y=!!(b.checked??b.defaultChecked),g=o,v=s.jsx(g,{...e,checked:y,label:b.label});return i?s.jsx(ee,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:v}):s.jsx(s.Fragment,{children:v})}const w=s.jsx(p.Checkbox,{ref:a,className:$,classNames:f,disabled:t||n,...h});return i?s.jsx(ee,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:w}):w});qe.displayName="Checkbox";qe.Group=Ge;const js="Chip-module__root___f5pFk",Ts="Chip-module__label___Ov9pg",Ss="Chip-module__mantineIconWrapper___KLSz6",As="Chip-module__innerWrapper___EnrTF",Rs="Chip-module__children___zbRAR",Ls="Chip-module__leadingIcon___JBtjQ",Ws="Chip-module__removeIcon___pVju-",F={root:js,label:Ts,mantineIconWrapper:Ss,innerWrapper:As,children:Rs,leadingIcon:Ls,removeIcon:Ws};function Is(l){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...l,children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const yo=u.forwardRef(function({error:e=!1,icon:a,onRemove:r,removeLabel:t="Remove",children:o,overStyled:n=!1,...i},c){const d=x(i,n),m=d,_={root:F.root,label:F.label,input:F.input,iconWrapper:F.mantineIconWrapper,checkIcon:F.checkIcon},h=m.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const $=h;_.root=$.root?`${F.root} ${$.root}`:F.root,_.label=$.label?`${F.label} ${$.label}`:F.label}const b=m.className,f=b?`${F.root} ${b}`:F.root,N=e?"":void 0,C=!o&&(!!a||!!r);return s.jsx(p.Chip,{ref:c,className:f,classNames:_,...N!==void 0?{"data-error":""}:{},...C?{"data-icon-only":""}:{},...d,children:s.jsxs("span",{className:F.innerWrapper,children:[a&&s.jsx("span",{className:F.leadingIcon,"aria-hidden":!0,children:a}),s.jsx("span",{className:F.children,children:o}),r&&s.jsx("span",{role:"button",className:F.removeIcon,onClick:$=>{$.preventDefault(),$.stopPropagation(),r($)},"aria-label":t,onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),$.stopPropagation(),r($))},tabIndex:0,children:s.jsx(Is,{})})]})})});yo.displayName="Chip";const Ms="Container-module__root___UVssr",ue={root:Ms},No=u.forwardRef(function({children:e,size:a,...r},t){const o={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},n=typeof a=="string"&&o[a]?o[a]:a,i={root:ue.root},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${ue.root} ${_.root}`:ue.root}const d=r.className,m=d?`${ue.root} ${d}`:ue.root;return s.jsx(p.Container,{ref:t,size:n,className:m,classNames:i,...r,children:e})});No.displayName="Container";const Os=l=>s.jsx("div",{...l,children:"DatePicker"}),zs="Dropdown-module__root___uVyL0",ks="Dropdown-module__input___dK4dN",Fs="Dropdown-module__section___j3MRB",Bs="Dropdown-module__dropdown___gG-Sw",Es="Dropdown-module__option___nAGU-",B={root:zs,input:ks,section:Fs,dropdown:Bs,option:Es},ho=u.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",containerWidth:o,labelSize:n,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:m,label:_,assistiveText:h,assistiveWithIcon:b,error:f,required:N,withAsterisk:C,id:$,className:w,style:y,disabled:g,readOnly:v,readOnlyComponent:M,emptyValueComponent:S,value:j,defaultValue:A,data:z,...L}=e,T=x(L,r),P=T;delete P.size,delete P.variant,delete P.radius;const O={wrapper:B.root,input:B.input,section:B.section,dropdown:B.dropdown,option:B.option},ne=P.classNames;if(ne&&typeof ne=="object"&&!Array.isArray(ne)){const V=ne;O.wrapper=V.wrapper?`${B.root} ${V.wrapper}`:B.root,O.input=V.input?`${B.input} ${V.input}`:B.input,O.section=V.section?`${B.section} ${V.section}`:B.section,O.dropdown=V.dropdown?`${B.dropdown} ${V.dropdown}`:B.dropdown,O.option=V.option?`${B.option} ${V.option}`:B.option}const ve={...y||{},width:o||"100%"};return s.jsx(oe,{className:w,style:ve,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:r,formLayout:t,labelSize:n,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:m,label:_,assistiveText:h,assistiveWithIcon:b,error:f,required:N,withAsterisk:C,id:$,readOnly:v,readOnlyComponent:M,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:j!==void 0?String(j):A?String(A):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(p.Select,{ref:a,classNames:O,disabled:g,value:j,defaultValue:A,data:z||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":g?"true":void 0,"data-error":f?"true":void 0},...T})})});ho.displayName="Dropdown";const Ds=l=>s.jsx("div",{...l,children:"FileInput"}),Vs=l=>s.jsx("div",{...l,children:"FileUpload"}),Gs="Flex-module__root___yYser",fe={root:Gs},xo=u.forwardRef(function({children:e,gap:a="rec-default",rowGap:r,columnGap:t,...o},n){const i={root:fe.root},c=o.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${fe.root} ${_.root}`:fe.root}const d=o.className,m=d?`${fe.root} ${d}`:fe.root;return s.jsx(p.Flex,{ref:n,className:m,classNames:i,...Me({gap:a,rowGap:r,columnGap:t,...o}),children:e})});xo.displayName="Flex";const qs=p.createPolymorphicComponent(xo),Hs="Group-module__root___ftO64",be={root:Hs},$o=u.forwardRef(function({children:e,gap:a="rec-default",...r},t){const o={root:be.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;o.root=d.root?`${be.root} ${d.root}`:be.root}const i=r.className,c=i?`${be.root} ${i}`:be.root;return s.jsx(p.Group,{ref:t,className:c,classNames:o,...Me({gap:a,...r}),children:e})});$o.displayName="Group";const Us="HoverCard-module__dropdown___FBPFW",Zs="HoverCard-module__arrow___S9AkE",ro={dropdown:Us,arrow:Zs},vo=function({overStyled:e=!1,withBeak:a=!0,...r}){const t=x(r,e),o={dropdown:ro.dropdown,arrow:ro.arrow},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const m=n;Object.keys(m).forEach(_=>{o[_]?o[_]=`${o[_]} ${m[_]}`:o[_]=m[_]})}const i=t.arrowSize??16,c=t.withArrow,d=a??c;return s.jsx(p.HoverCard,{position:"top",arrowSize:i,withArrow:d,classNames:o,...t})};vo.displayName="HoverCard";const Co=function(e){return s.jsx(p.HoverCard.Target,{...e})};Co.displayName="HoverCardTarget";const wo=function({overStyled:e=!1,...a}){const r=x(a,e),t=r.className;return s.jsx(p.HoverCard.Dropdown,{className:t,...r})};wo.displayName="HoverCardDropdown";const He=vo;He.Target=Co;He.Dropdown=wo;const Ys="Link-module__root___I0VGE",Ks="Link-module__iconWrapper___W-LlF",Qs="Link-module__labelText___wSvUy",le={root:Ys,iconWrapper:Ks,labelText:Qs},Po=u.forwardRef(function({icon:e,children:a,overStyled:r=!1,...t},o){const n=x(t,r),i=n,c={root:le.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;c.root=h.root?`${le.root} ${h.root}`:le.root}const m=i.className,_=m?`${le.root} ${m}`:le.root;return s.jsxs(p.Anchor,{ref:o,className:_,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...n,children:[e&&s.jsx("span",{className:le.iconWrapper,"aria-hidden":!0,children:e}),s.jsx("span",{className:le.labelText,children:a})]})});Po.displayName="Link";const Xs=p.createPolymorphicComponent(Po),Js="Menu-module__dropdown___j4xuA",er="Menu-module__item___NMXha",or="Menu-module__itemLabel___zvcqC",tr="Menu-module__itemSection___pRIcn",sr="Menu-module__divider___wPiNq",rr="Menu-module__label___4FBGa",ar="Menu-module__chevron___hEEiy",ie={dropdown:Js,item:er,itemLabel:or,itemSection:tr,divider:sr,label:rr,chevron:ar},go=function({overStyled:e=!1,...a}){const r=x(a,e),t={dropdown:ie.dropdown,item:ie.item,itemLabel:ie.itemLabel,itemSection:ie.itemSection,divider:ie.divider,label:ie.label,chevron:ie.chevron},o=r.classNames;if(o&&typeof o=="object"&&!Array.isArray(o)){const n=o;Object.keys(n).forEach(i=>{t[i]?t[i]=`${t[i]} ${n[i]}`:t[i]=n[i]})}return s.jsx(p.Menu,{classNames:t,...r})};go.displayName="Menu";const jo=function(e){return s.jsx(p.Menu.Target,{...e})};jo.displayName="MenuTarget";const To=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Menu.Dropdown,{ref:r,className:o,...t})});To.displayName="MenuDropdown";const So=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t;e||delete o.color;const n=o.className;return s.jsx(p.Menu.Item,{ref:r,className:n,...t})});So.displayName="MenuItem";const nr=p.createPolymorphicComponent(So),Ao=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Menu.Divider,{ref:r,className:o,...t})});Ao.displayName="MenuDivider";const Ro=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Menu.Label,{ref:r,className:o,...t})});Ro.displayName="MenuLabel";const Lo=function(e){return s.jsx(p.Menu.Sub,{...e})};Lo.displayName="MenuSub";const Wo=function(e){return s.jsx(p.Menu.Sub.Target,{...e})};Wo.displayName="MenuSubTarget";const Io=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t;e||delete o.color;const n=o.className;return s.jsx(p.Menu.Sub.Item,{ref:r,className:n,...t})});Io.displayName="MenuSubItem";const lr=p.createPolymorphicComponent(Io),Mo=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className;return s.jsx(p.Menu.Sub.Dropdown,{ref:r,className:o,...t})});Mo.displayName="MenuSubDropdown";const Le=Lo;Le.Target=Wo;Le.Item=lr;Le.Dropdown=Mo;const de=go;de.Target=jo;de.Dropdown=To;de.Item=nr;de.Divider=Ao;de.Label=Ro;de.Sub=Le;const ir="Modal-module__root___ytPLl",cr="Modal-module__inner___SSUJE",dr="Modal-module__content___dWO-B",pr="Modal-module__header___ILG9i",mr="Modal-module__title___A5OeE recursica_brand_typography_h2",_r="Modal-module__bodyWrapper___5CCL-",ur="Modal-module__scrollArea___KD-hm recursica_brand_typography_body",fr="Modal-module__footer___rro2w",br="Modal-module__close___-ER1C",X={root:ir,inner:cr,content:dr,header:pr,title:mr,bodyWrapper:_r,scrollArea:ur,footer:fr,close:br},Oo=u.forwardRef(function({overStyled:e=!1,children:a,title:r,withCloseButton:t=!0,overlayProps:o,withOverlay:n=!0,closeButtonProps:i,...c},d){const m=x(c,e),_={root:X.root,inner:X.inner,content:X.content,header:X.header,title:X.title,close:X.close},h=m.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const b=h;Object.keys(b).forEach(f=>{_[f]?_[f]=`${_[f]} ${b[f]}`:_[f]=b[f]})}return s.jsxs(p.Modal.Root,{ref:d,classNames:_,...m,children:[n&&s.jsx(p.Modal.Overlay,{...o}),s.jsxs(p.Modal.Content,{children:[(r||t)&&s.jsxs(p.Modal.Header,{children:[r&&s.jsx(p.Modal.Title,{children:r}),t&&s.jsx(p.Modal.CloseButton,{...i})]}),s.jsx(Ze,{children:a})]})]})});Oo.displayName="Modal";const Ue=u.forwardRef(function({className:e,...a},r){return s.jsx("div",{ref:r,className:`${X.footer} ${e||""}`,...a})});Ue.displayName="Modal.Footer";const Ze=u.forwardRef(function({className:e,onScroll:a,children:r,...t},o){const n=u.useRef(null),[i,c]=u.useState(!1),[d,m]=u.useState(!1),_=u.useCallback(()=>{if(n.current){const{scrollTop:N,scrollHeight:C,clientHeight:$}=n.current;c(N>0),m(Math.ceil(N+$)<C)}},[]);u.useEffect(()=>(_(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_,r]);const h=N=>{_(),a==null||a(N)};let b=null;const f=[];return u.Children.forEach(r,N=>{var C;u.isValidElement(N)&&(N.type===Ue||((C=N.type)==null?void 0:C.displayName)==="Modal.Footer")?b=N:f.push(N)}),s.jsxs(p.Modal.Body,{...t,ref:N=>{typeof o=="function"?o(N):o&&(o.current=N)},className:`${X.bodyWrapper} ${e||""}`,children:[s.jsx("div",{ref:n,onScroll:h,"data-scrolled-top":i||void 0,"data-scrolled-bottom":d||void 0,className:X.scrollArea,children:f}),b]})});Ze.displayName="Modal.Body";const te=Oo;te.Root=p.Modal.Root;te.Overlay=p.Modal.Overlay;te.Content=p.Modal.Content;te.Header=p.Modal.Header;te.Title=p.Modal.Title;te.CloseButton=p.Modal.CloseButton;te.Body=Ze;te.Footer=Ue;const yr="NumberInput-module__root___C6rAn",Nr="NumberInput-module__input___Ss8p7",hr="NumberInput-module__section___MijP0",xr="NumberInput-module__controls___8UfQ2",$r="NumberInput-module__control___Qre9-",ye={root:yr,input:Nr,section:hr,controls:xr,control:$r},zo=u.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:b,required:f,withAsterisk:N,id:C,className:$,style:w,disabled:y,readOnly:g,readOnlyComponent:v,emptyValueComponent:M,value:S,defaultValue:j,hideControls:A=!1,...z}=e,L=x(z,r),T=L;delete T.size,delete T.variant,delete T.radius;const P={wrapper:ye.root,input:ye.input,section:ye.section,controls:ye.controls,control:ye.control};return s.jsx(oe,{className:$,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:r,formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:b,required:f,withAsterisk:N,id:C,readOnly:g,readOnlyComponent:v,emptyValueComponent:M,readOnlyType:"text",readOnlyValue:S!==void 0?S==null?void 0:S.toString():j==null?void 0:j.toString(),readOnlyNativeProps:e,activeComponent:s.jsx(p.NumberInput,{ref:a,classNames:P,disabled:y,value:S,defaultValue:j,hideControls:A,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":b?"true":void 0,"data-with-left-section":T.leftSection?"true":void 0,"data-with-right-section":T.rightSection||!A?"true":void 0},...L})})});zo.displayName="NumberInput";const vr="Pagination-module__root___ITRjt",Cr="Pagination-module__control___40yNT",wr="Pagination-module__dots___Yl9da",Pr="Pagination-module__iconWithLabel___pLM4O",gr="Pagination-module__baseIcon___Qw3bJ",k={root:vr,control:Cr,dots:wr,iconWithLabel:Pr,baseIcon:gr},jr="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Tr="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",Sr="M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",Ar="M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",Rr={next:jr,prev:Tr,first:Sr,last:Ar},$e=({type:l,className:e,...a})=>s.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${k.baseIcon} ${e||""}`.trim(),...a,children:s.jsx("path",{d:Rr[l],fill:"currentColor"})}),ko=l=>s.jsxs("div",{className:k.iconWithLabel,children:[s.jsx("span",{children:"Next"}),s.jsx($e,{type:"next",...l})]}),Fo=l=>s.jsxs("div",{className:k.iconWithLabel,children:[s.jsx($e,{type:"prev",...l}),s.jsx("span",{children:"Prev"})]}),Bo=l=>s.jsxs("div",{className:k.iconWithLabel,children:[s.jsx($e,{type:"first",...l}),s.jsx("span",{children:"First"})]}),Eo=l=>s.jsxs("div",{className:k.iconWithLabel,children:[s.jsx("span",{children:"Last"}),s.jsx($e,{type:"last",...l})]});function Do(l){const e={root:k.root,control:k.control,dots:k.dots},a=l.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const o=a;e.root=o.root?`${k.root} ${o.root}`:k.root,e.control=o.control?`${k.control} ${o.control}`:k.control,e.dots=o.dots?`${k.dots} ${o.dots}`:k.dots}const r=l.className;return{className:r?`${k.root} ${r}`:k.root,classNames:e}}const Vo=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=Do(t);return s.jsx(p.Pagination.Root,{ref:r,className:o.className,classNames:o.classNames,...t})});Vo.displayName="Pagination.Root";const Go=u.forwardRef(function({withLabel:e,icon:a,...r},t){const o=a||(e?ko:void 0);return s.jsx(p.Pagination.Next,{ref:t,"data-variant":"text",icon:o,...r})});Go.displayName="Pagination.Next";const qo=u.forwardRef(function({withLabel:e,icon:a,...r},t){const o=a||(e?Fo:void 0);return s.jsx(p.Pagination.Previous,{ref:t,"data-variant":"text",icon:o,...r})});qo.displayName="Pagination.Previous";const Ho=u.forwardRef(function({withLabel:e,icon:a,...r},t){const o=a||(e?Bo:void 0);return s.jsx(p.Pagination.First,{ref:t,"data-variant":"text",icon:o,...r})});Ho.displayName="Pagination.First";const Uo=u.forwardRef(function({withLabel:e,icon:a,...r},t){const o=a||(e?Eo:void 0);return s.jsx(p.Pagination.Last,{ref:t,"data-variant":"text",icon:o,...r})});Uo.displayName="Pagination.Last";const Zo=u.forwardRef(function({overStyled:e=!1,getControlProps:a,withLabels:r,...t},o){const n=x(t,e),i=Do(n),c=m=>{const _={"data-variant":"text"};return a?{..._,...a(m)}:_},d=r?{nextIcon:ko,previousIcon:Fo,firstIcon:Bo,lastIcon:Eo}:{};return s.jsx(p.Pagination,{ref:o,className:i.className,classNames:i.classNames,getControlProps:c,...d,...n})});Zo.displayName="Pagination";const U=Zo;U.Root=Vo;U.Items=p.Pagination.Items;U.Control=p.Pagination.Control;U.Dots=p.Pagination.Dots;U.Next=Go;U.Previous=qo;U.First=Ho;U.Last=Uo;U.Icon=$e;const Lr="Panel-module__content___wdGo-",Wr="Panel-module__inner___ruA2b",Ir="Panel-module__header___o7SiC",Mr="Panel-module__title___181OP recursica_brand_typography_h3",Or="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP recursica_brand_typography_h3",zr="Panel-module__body___SEC3T",kr="Panel-module__footer___t6-hz",ae={content:Lr,inner:Wr,header:Ir,title:Mr,titleTruncate:Or,body:zr,footer:kr},Yo=function({overStyled:e=!1,position:a="right",keepMounted:r=!0,wrapHeaderText:t=!1,...o}){const n=x(o,e),i={content:ae.content,header:ae.header,title:t?ae.titleTruncate:ae.title,body:ae.body,inner:ae.inner},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(m=>{i[m]?i[m]=`${i[m]} ${d[m]}`:i[m]=d[m]})}return s.jsx(p.Drawer,{position:a,keepMounted:r,closeOnClickOutside:o.closeOnClickOutside??!!o.opened,...n,classNames:i})};Yo.displayName="Panel";const Ye=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o=t.className,n=o?`${ae.footer} ${o}`:ae.footer;return s.jsx("div",{ref:r,className:n,...t})});Ye.displayName="PanelFooter";const Z=Yo;Z.Root=p.Drawer.Root;Z.Overlay=p.Drawer.Overlay;Z.Content=p.Drawer.Content;Z.Header=p.Drawer.Header;Z.Title=p.Drawer.Title;Z.CloseButton=p.Drawer.CloseButton;Z.Body=p.Drawer.Body;Z.Stack=p.Drawer.Stack;Z.Footer=Ye;const Fr="Popover-module__dropdown___svhS6",Br="Popover-module__arrow___5A-0e",ao={dropdown:Fr,arrow:Br},Ko=function({overStyled:e=!1,withBeak:a=!0,...r}){const t=x(r,e),o={dropdown:ao.dropdown,arrow:ao.arrow},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const m=n;Object.keys(m).forEach(_=>{o[_]?o[_]=`${o[_]} ${m[_]}`:o[_]=m[_]})}const i=t.arrowSize??16,c=t.withArrow,d=a??c;return s.jsx(p.Popover,{position:"top",arrowSize:i,withArrow:d,classNames:o,...t})};Ko.displayName="Popover";const Qo=function(e){return s.jsx(p.Popover.Target,{...e})};Qo.displayName="PopoverTarget";const Xo=function({overStyled:e=!1,...a}){const r=x(a,e),t=r.className;return s.jsx(p.Popover.Dropdown,{className:t,...r})};Xo.displayName="PopoverDropdown";const Ke=Ko;Ke.Target=Qo;Ke.Dropdown=Xo;const Er="Radio-module__groupRoot___bfUii",Dr="Radio-module__root___kAjTD",Vr="Radio-module__body___q2Wpj",Gr="Radio-module__inner___QaTBB",qr="Radio-module__radio___MfgN-",Hr="Radio-module__icon___DWznm",Ur="Radio-module__labelWrapper___dB0Gi",Zr="Radio-module__label___vAFIP",I={groupRoot:Er,root:Dr,body:Vr,inner:Gr,radio:qr,icon:Hr,labelWrapper:Ur,label:Zr},Qe=u.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:b,error:f,required:N,withAsterisk:C,id:$,className:w,style:y,children:g,readOnly:v,readOnlyComponent:M,emptyValueComponent:S,value:j,defaultValue:A,...z}=e,L=x(z,r),T=L;return delete T.size,s.jsx(oe,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:b,error:f,required:N,withAsterisk:C,id:$,readOnly:v&&!!M,readOnlyComponent:M,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:j!==void 0?j:A,readOnlyNativeProps:e,activeComponent:s.jsx(p.Radio.Group,{ref:a,...L,disabled:v||T.disabled,value:j,defaultValue:A,children:s.jsx("div",{className:I.groupRoot,"data-layout":t,children:u.Children.map(g,P=>u.isValidElement(P)?u.cloneElement(P,{disabled:v||P.props.disabled}):P)})})})});Qe.displayName="RadioGroup";const Yr=({className:l,style:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:l,style:e,children:s.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Xe=u.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:o,disabled:n,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,..._}=e,h=x(_,r),b=h;delete b.size,delete b.color,delete b.radius,delete b.variant,delete b.iconColor;const f={root:I.root,body:I.body,inner:I.inner,radio:I.radio,icon:I.icon,labelWrapper:I.labelWrapper,label:I.label},N=b.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const y=N;f.root=y.root?`${I.root} ${y.root}`:I.root,f.body=y.body?`${I.body} ${y.body}`:I.body,f.inner=y.inner?`${I.inner} ${y.inner}`:I.inner,f.radio=y.radio?`${I.radio} ${y.radio}`:I.radio,f.icon=y.icon?`${I.icon} ${y.icon}`:I.icon,f.labelWrapper=y.labelWrapper?`${I.labelWrapper} ${y.labelWrapper}`:I.labelWrapper,f.label=y.label?`${I.label} ${y.label}`:I.label}const C=b.className,$=C?`${I.root} ${C}`:I.root;if(t&&o){const y=!!(b.checked??b.defaultChecked),g=o,v=s.jsx(g,{...e,checked:y,label:b.label});return i?s.jsx(ee,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:v}):s.jsx(s.Fragment,{children:v})}const w=s.jsx(p.Radio,{ref:a,icon:Yr,className:$,classNames:f,disabled:t||n,...h});return i?s.jsx(ee,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:m,children:w}):w});Xe.displayName="Radio";Xe.Group=Qe;const Jo=({checked:l,label:e})=>s.jsxs(p.Box,{component:"span",className:je.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&s.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),s.jsx("span",{children:l?"On":"Off"})]});Jo.displayName="ReadOnlySwitchField";const et=({checked:l,label:e})=>s.jsxs(p.Box,{component:"span",className:je.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&s.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),s.jsx("span",{children:l?"True":"False"})]});et.displayName="ReadOnlyBooleanField";const Kr="SegmentedControl-module__root___JFRhg",Qr="SegmentedControl-module__label___mS17q",Xr="SegmentedControl-module__control___znOdQ",Jr="SegmentedControl-module__indicator___ZMcJy",D={root:Kr,label:Qr,control:Xr,indicator:Jr};function ea(l){const e={root:D.root,control:D.control,label:D.label,indicator:D.indicator},a=l.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const o=a;e.root=o.root?`${D.root} ${o.root}`:D.root,e.control=o.control?`${D.control} ${o.control}`:D.control,e.label=o.label?`${D.label} ${o.label}`:D.label,e.indicator=o.indicator?`${D.indicator} ${o.indicator}`:D.indicator}const r=l.className;return{className:r?`${D.root} ${r}`:D.root,classNames:e}}const ot=u.forwardRef(function({overStyled:e=!1,orientation:a="horizontal",fullWidth:r,...t},o){const n=x(t,e),i=ea(n);return s.jsx(p.SegmentedControl,{ref:o,className:i.className,classNames:i.classNames,orientation:a,fullWidth:r,"data-orientation":a,...n})});ot.displayName="SegmentedControl";const oa=ot,ta=l=>s.jsx("div",{...l,children:"Slider"}),sa="Stack-module__root___NUN-x",Ne={root:sa},tt=u.forwardRef(function({children:e,gap:a="rec-default",...r},t){const o={root:Ne.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;o.root=d.root?`${Ne.root} ${d.root}`:Ne.root}const i=r.className,c=i?`${Ne.root} ${i}`:Ne.root;return s.jsx(p.Stack,{ref:t,className:c,classNames:o,...Me({gap:a,...r}),children:e})});tt.displayName="Stack";const ra=p.createPolymorphicComponent(tt),aa="Stepper-module__root___jbSYO",na="Stepper-module__horizontal___USHT1",la="Stepper-module__steps___4HPO6",ia="Stepper-module__step___s2nqL",ca="Stepper-module__stepBody___TBvys",da="Stepper-module__stepLabel___N6nuy",pa="Stepper-module__stepDescription___DnDAy",ma="Stepper-module__separator___pU0No",_a="Stepper-module__vertical___d4mOs",ua="Stepper-module__large___J18-y",fa="Stepper-module__small___Ub-zb",ba="Stepper-module__stepIcon___YQHNq",ya="Stepper-module__stepCompletedIcon___B9MeL",Na="Stepper-module__verticalSeparator___frWc1",ha="Stepper-module__content___J-h8X",E={root:aa,horizontal:na,steps:la,step:ia,stepBody:ca,stepLabel:da,stepDescription:pa,separator:ma,vertical:_a,large:ua,small:fa,stepIcon:ba,stepCompletedIcon:ya,verticalSeparator:Na,content:ha},st=u.forwardRef(function(e,a){const{overStyled:r=!1,size:t="large",orientation:o="horizontal",className:n,style:i,...c}=e,d=x(c,r);return s.jsx(p.Stepper,{ref:a,orientation:o,className:`${E.root} ${o==="horizontal"?E.horizontal:E.vertical} ${t==="large"?E.large:E.small} ${n||""}`,style:i,"data-size":t,"data-orientation":o,classNames:{steps:E.steps,step:E.step,stepIcon:E.stepIcon,stepCompletedIcon:E.stepCompletedIcon,stepBody:E.stepBody,stepLabel:E.stepLabel,stepDescription:E.stepDescription,separator:E.separator,verticalSeparator:E.verticalSeparator,content:E.content},...d})}),xa=Object.assign(st,{Step:p.Stepper.Step,Completed:p.Stepper.Completed});st.displayName="Stepper";const $a="Switch-module__root___Y5Ydi",va="Switch-module__body___Sw9Wr",Ca="Switch-module__track___7ObdZ",wa="Switch-module__thumb___-FTeK",Pa="Switch-module__labelWrapper___YSOwx",ga="Switch-module__label___LrH7V",ja="Switch-module__thumbIconWrapper___sCY-1",Ta="Switch-module__checkIcon___ZBAQN",Sa="Switch-module__closeIcon___bLLGw",Aa="Switch-module__groupRoot___-Uepi",R={root:$a,body:va,track:Ca,thumb:wa,labelWrapper:Pa,label:ga,thumbIconWrapper:ja,checkIcon:Ta,closeIcon:Sa,groupRoot:Aa},Je=u.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:b,error:f,required:N,withAsterisk:C,id:$,className:w,style:y,children:g,readOnly:v,readOnlyComponent:M,emptyValueComponent:S,value:j,defaultValue:A,...z}=e,L=x(z,r),T=L;return delete T.size,s.jsx(oe,{className:w,style:y,controlMaxWidth:"var(--recursica_ui-kit_components_switch_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,description:_,assistiveText:h,assistiveWithIcon:b,error:f,required:N,withAsterisk:C,id:$,readOnly:v&&!!M,readOnlyComponent:M,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:j!==void 0?j:A,readOnlyNativeProps:e,activeComponent:s.jsx(p.Switch.Group,{ref:a,...L,disabled:v||T.disabled,value:j,defaultValue:A,children:s.jsx("div",{className:R.groupRoot,children:u.Children.map(g,P=>u.isValidElement(P)?u.cloneElement(P,{disabled:v||P.props.disabled}):P)})})})});Je.displayName="SwitchGroup";const eo=u.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:t,readOnlyComponent:o,disabled:n,thumbIcon:i,formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,...h}=e,b=x(h,r),f=b;delete f.size,delete f.color,delete f.radius,delete f.variant;const N={root:R.root,body:R.body,track:R.track,thumb:R.thumb,trackLabel:R.trackLabel,labelWrapper:R.labelWrapper,label:R.label},C=f.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const v=C;N.root=v.root?`${R.root} ${v.root}`:R.root,N.body=v.body?`${R.body} ${v.body}`:R.body,N.track=v.track?`${R.track} ${v.track}`:R.track,N.thumb=v.thumb?`${R.thumb} ${v.thumb}`:R.thumb,N.trackLabel=v.trackLabel?`${R.trackLabel} ${v.trackLabel}`:R.trackLabel,N.labelWrapper=v.labelWrapper?`${R.labelWrapper} ${v.labelWrapper}`:R.labelWrapper,N.label=v.label?`${R.label} ${v.label}`:R.label}const $=f.className,w=$?`${R.root} ${$}`:R.root;if(t&&o){const v=!!(f.checked??f.defaultChecked),M=o,S=s.jsx(M,{...e,checked:v,label:f.label});return c?s.jsx(ee,{formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,children:S}):s.jsx(s.Fragment,{children:S})}const y=s.jsxs("div",{className:R.thumbIconWrapper,children:[s.jsx(p.CheckIcon,{className:R.checkIcon}),s.jsx(p.CloseIcon,{className:R.closeIcon})]}),g=s.jsx(p.Switch,{ref:a,className:w,classNames:N,disabled:t||n,thumbIcon:i??y,...b});return c?s.jsx(ee,{formLayout:c,labelSize:d,controlMaxWidth:m,controlMinWidth:_,children:g}):g});eo.displayName="Switch";eo.Group=Je;const Ra=l=>s.jsx("div",{...l,children:"Table"}),La="Tabs-module__root___-VKVI",Wa="Tabs-module__list___qRVME",Ia="Tabs-module__tab___IdDYc",Ma="Tabs-module__panel___08i9c",we={root:La,list:Wa,tab:Ia,panel:Ma},rt=u.forwardRef(function(e,a){const{variant:r="default",orientation:t="horizontal",overStyled:o=!1,className:n,...i}=e,c=x(i,o);return s.jsx(p.Tabs,{ref:a,variant:r,orientation:t,className:`${we.root} ${n||""}`,"data-variant":r,"data-orientation":t,classNames:{list:we.list,tab:we.tab,panel:we.panel},...c})});rt.displayName="Tabs";const at=u.forwardRef(function(e,a){const{overStyled:r=!1,...t}=e;return s.jsx(p.Tabs.List,{ref:a,...x(t,r)})});at.displayName="Tabs.List";const nt=u.forwardRef(function(e,a){const{overStyled:r=!1,...t}=e;return s.jsx(p.Tabs.Tab,{ref:a,...x(t,r)})});nt.displayName="Tabs.Tab";const lt=u.forwardRef(function(e,a){const{overStyled:r=!1,...t}=e;return s.jsx(p.Tabs.Panel,{ref:a,...x(t,r)})});lt.displayName="Tabs.Panel";const Oa=Object.assign(rt,{List:at,Tab:nt,Panel:lt}),it=u.forwardRef(function({overStyled:e=!1,variant:a="body",...r},t){const o=x(r,e),n=o.className,i=`recursica_brand_typography_${a}`,c=n?`${i} ${n}`:i;return s.jsx(p.Text,{ref:t,className:c,...o})});it.displayName="Text";const za=p.createPolymorphicComponent(it),ka="TextArea-module__root___3dyeu",Fa="TextArea-module__input___8l36v",me={root:ka,input:Fa},ct=u.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:b,required:f,withAsterisk:N,id:C,className:$,style:w,disabled:y,readOnly:g,readOnlyComponent:v,emptyValueComponent:M,value:S,defaultValue:j,...A}=e,z=x(A,r),L=z;delete L.size,delete L.variant,delete L.radius;const T={wrapper:me.root,input:me.input},P=L.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const O=P;T.wrapper=O.wrapper?`${me.root} ${O.wrapper}`:me.root,T.input=O.input?`${me.input} ${O.input}`:me.input}return s.jsx(oe,{className:$,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:r,formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:b,required:f,withAsterisk:N,id:C,readOnly:g,readOnlyComponent:v,emptyValueComponent:M,readOnlyType:"text",readOnlyValue:S!==void 0?S:j,readOnlyNativeProps:e,activeComponent:s.jsx(p.Textarea,{ref:a,classNames:T,disabled:y,value:S,defaultValue:j,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":b?"true":void 0},...z})})});ct.displayName="TextArea";const Ba="TextField-module__root___2ZYkG",Ea="TextField-module__input___RL-My",Da="TextField-module__section___bCIJ0",K={root:Ba,input:Ea,section:Da},dt=u.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:t="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:b,required:f,withAsterisk:N,id:C,className:$,style:w,disabled:y,readOnly:g,readOnlyComponent:v,emptyValueComponent:M,value:S,defaultValue:j,...A}=e,z=x(A,r),L=z;delete L.size,delete L.variant,delete L.radius;const T={wrapper:K.root,input:K.input,section:K.section},P=L.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const O=P;T.wrapper=O.wrapper?`${K.root} ${O.wrapper}`:K.root,T.input=O.input?`${K.input} ${O.input}`:K.input,T.section=O.section?`${K.section} ${O.section}`:K.section}return s.jsx(oe,{className:$,style:w,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:r,formLayout:t,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:m,assistiveText:_,assistiveWithIcon:h,error:b,required:f,withAsterisk:N,id:C,readOnly:g,readOnlyComponent:v,emptyValueComponent:M,readOnlyType:"text",readOnlyValue:S!==void 0?S:j,readOnlyNativeProps:e,activeComponent:s.jsx(p.Input,{ref:a,classNames:T,disabled:y,value:S,defaultValue:j,wrapperProps:{"data-disabled":y?"true":void 0,"data-error":b?"true":void 0},...z})})});dt.displayName="TextField";const Va=l=>s.jsx("div",{...l,children:"TimePicker"}),Ga="Timeline-module__root___LwRdZ",qa="Timeline-module__item___T5xdQ",Ha="Timeline-module__itemBody___XAV-E",Ua="Timeline-module__itemBullet___rPXCy",Za="Timeline-module__itemTitle___GgRRW",Ya="Timeline-module__itemContent___vurs-",Ka="Timeline-module__description___f9sxV",Qa="Timeline-module__timestamp___owiRu",re={root:Ga,item:qa,itemBody:Ha,itemBullet:Ua,itemTitle:Za,itemContent:Ya,description:Ka,timestamp:Qa},pt=u.forwardRef(function({overStyled:e=!1,timestamp:a,bulletVariant:r="default",children:t,...o},n){const i=x(o,e),c={item:re.item,itemBody:re.itemBody,itemContent:re.itemContent,itemBullet:re.itemBullet,itemTitle:re.itemTitle},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const _=d;Object.keys(_).forEach(h=>{c[h]?c[h]=`${c[h]} ${_[h]}`:c[h]=_[h]})}const m=a?s.jsxs(s.Fragment,{children:[t&&s.jsx("div",{className:re.description,children:t}),s.jsx("div",{className:re.timestamp,children:a})]}):t;return s.jsx(p.TimelineItem,{ref:n,classNames:c,"data-variant":r,...i,children:m})});pt.displayName="TimelineItem";const mt=u.forwardRef(function({overStyled:e=!1,...a},r){const t=x(a,e),o={root:re.root},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;Object.keys(i).forEach(c=>{o[c]?o[c]=`${o[c]} ${i[c]}`:o[c]=i[c]})}return s.jsx(p.Timeline,{ref:r,classNames:o,...t})});mt.displayName="Timeline";const _t=mt;_t.Item=pt;const ut=u.forwardRef(function({overStyled:e=!1,order:a=1,...r},t){const o=x(r,e),n=o.className,i=`recursica_brand_typography_h${a}`,c=n?`${i} ${n}`:i;return s.jsx(p.Title,{ref:t,order:a,className:c,...o})});ut.displayName="Title";const Xa="Toast-module__root___MUvfI",Ja="Toast-module__icon___VwvE1",en="Toast-module__loader___8Gxd-",on="Toast-module__title___-H6R2",tn="Toast-module__description___-QwfC",sn="Toast-module__closeButton___vGr7g",rn="Toast-module__body___VLkXA",ce={root:Xa,icon:Ja,loader:en,title:on,description:tn,closeButton:sn,body:rn},ft=u.forwardRef(function({overStyled:e=!1,variant:a="default",withCloseButton:r=!0,...t},o){const n=x(t,e),i={root:ce.root,body:ce.body,title:ce.title,description:ce.description,closeButton:ce.closeButton,icon:ce.icon,loader:ce.loader},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(m=>{i[m]?i[m]=`${i[m]} ${d[m]}`:i[m]=d[m]})}return s.jsx(p.Notification,{ref:o,withCloseButton:r,withBorder:!1,"data-variant":a,classNames:i,loading:!1,...n})});ft.displayName="Toast";const an="Tooltip-module__tooltip___UA7H9",nn="Tooltip-module__arrow___4zROk",no={tooltip:an,arrow:nn},bt=function({overStyled:e=!1,withBeak:a=!0,...r}){const t=x(r,e),o={tooltip:no.tooltip,arrow:no.arrow},n=t.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const m=n;Object.keys(m).forEach(_=>{o[_]?o[_]=`${o[_]} ${m[_]}`:o[_]=m[_]})}const i=t.arrowSize??16,c=t.withArrow,d=a??c;return s.jsx(p.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:d,classNames:o,...t})};bt.displayName="Tooltip";const oo=bt;oo.Floating=p.Tooltip.Floating;oo.Group=p.Tooltip.Group;const ln=l=>s.jsx("div",{...l,children:"TransferList"});exports.Accordion=Ae;exports.AccordionControl=Te;exports.AccordionItem=Oe;exports.AccordionPanel=Se;exports.Avatar=It;exports.Badge=Ot;exports.Breadcrumb=mo;exports.Button=Ut;exports.Card=Jt;exports.CardContent=Ee;exports.CardFooter=Be;exports.CardHeader=Fe;exports.CardSection=ke;exports.Checkbox=qe;exports.CheckboxGroup=Ge;exports.Chip=yo;exports.Container=No;exports.DatePicker=Os;exports.Dropdown=ho;exports.EmptyValueRenderer=xe;exports.FileInput=Ds;exports.FileUpload=Vs;exports.Flex=qs;exports.FormControlLayout=ee;exports.Group=$o;exports.HoverCard=He;exports.Label=De;exports.Layer=bo;exports.Link=Xs;exports.Loader=ze;exports.Menu=de;exports.Modal=te;exports.NumberInput=zo;exports.Pagination=U;exports.Panel=Z;exports.PanelFooter=Ye;exports.Popover=Ke;exports.Radio=Xe;exports.RadioGroup=Qe;exports.ReadOnlyBooleanField=et;exports.ReadOnlyField=Ve;exports.ReadOnlySwitchField=Jo;exports.ReadOnlyTextField=he;exports.RecursicaThemeProvider=ys;exports.SegmentedControl=oa;exports.Slider=ta;exports.Stack=ra;exports.Stepper=xa;exports.Switch=eo;exports.SwitchGroup=Je;exports.Table=Ra;exports.Tabs=Oa;exports.Text=za;exports.TextArea=ct;exports.TextField=dt;exports.TimePicker=Va;exports.Timeline=_t;exports.Title=ut;exports.Toast=ft;exports.Tooltip=oo;exports.TransferList=ln;exports.WithReadOnlyWrapper=oe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),y=require("react"),p=require("@mantine/core"),Vt=require("@mantine/dates"),Gt=["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"],Co=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),ke={"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 He(l){const e={...l};for(const[a,r]of Object.entries(e))typeof r=="string"&&r.startsWith("rec-")&&Co.has(a)&&r in ke&&(e[a]=ke[r]);return e}function v(l,e){if(e)return l;const a={...l};for(const r of Gt)r in a&&delete a[r];for(const[r,s]of Object.entries(a))typeof s=="string"&&s.startsWith("rec-")&&Co.has(r)&&s in ke&&(a[r]=ke[s]);return a}const qt="Accordion-module__root___Dem6d",Ht="Accordion-module__item___7ryVk",Ut="Accordion-module__noDivider___Ni2tT",Zt="Accordion-module__control___b4wgX",Yt="Accordion-module__label___Ss7uW",Kt="Accordion-module__chevron___i-HVZ",Xt="Accordion-module__iconLeftWrapper___5oLen",Jt="Accordion-module__panel___Wx50w",Qt="Accordion-module__content___PEM9t",se={root:qt,item:Ht,noDivider:Ut,control:Zt,label:Yt,chevron:Kt,iconLeftWrapper:Xt,panel:Jt,content:Qt},wo=function({variant:e="unstyled",overStyled:a=!1,...r}){const s=v(r,a),o={root:se.root,item:se.item,control:se.control,label:se.label,chevron:se.chevron,panel:se.panel,content:se.content},n=s.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=s.className;return t.jsx(p.Accordion,{variant:e,className:i,classNames:o,...s})};wo.displayName="Accordion";const Ue=y.forwardRef(function({title:e,leftIcon:a,divider:r=!0,children:s,overStyled:o=!1,...n},i){const c=v(n,o),d=c.className,_=[r?void 0:se.noDivider,d].filter(Boolean).join(" ")||void 0;return t.jsx(p.Accordion.Item,{ref:i,className:_,...c,children:e?t.jsxs(t.Fragment,{children:[t.jsx(Me,{leftIcon:a,children:e}),t.jsx(ze,{children:s})]}):s})});Ue.displayName="AccordionItem";const Me=y.forwardRef(function({leftIcon:e,children:a,overStyled:r=!1,...s},o){const n=v(s,r),i=n.className;return t.jsx(p.Accordion.Control,{ref:o,className:i,icon:e?t.jsx("span",{className:se.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...n,children:a})});Me.displayName="AccordionControl";const ze=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx(p.Accordion.Panel,{ref:r,className:o,...s})});ze.displayName="AccordionPanel";const Fe=wo;Fe.Item=Ue;Fe.Control=Me;Fe.Panel=ze;const es="Label-module__root___e6HXZ",os="Label-module__labelText___rieFR",ts="Label-module__required___Ggrzc",ss="Label-module__optionalText___Y2yun",rs="Label-module__actionAreaWrapper___ELoZK",as="Label-module__editIconWrapper___NG2xW",Y={root:es,labelText:os,required:ts,optionalText:ss,actionAreaWrapper:rs,editIconWrapper:as},Ze=y.forwardRef(function({labelSize:e="default",labelAlignment:a,required:r=!1,labelOptionalText:s,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,children:c,overStyled:d=!1,..._},m){const h=a||"left";let f;r||(s===!0?f="optional":s&&(f=s));const u=v(_,d),b=u,C={label:Y.root,required:Y.required},x=b.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const S=x;C.label=S.label?`${Y.root} ${S.label}`:Y.root,C.required=S.required?`${Y.required} ${S.required}`:Y.required}const j=b.className,N=j?`${Y.root} ${j}`:Y.root;return t.jsxs(p.Input.Label,{ref:m,className:N,classNames:C,"data-size":e,"data-alignment":h,required:r&&!o,...u,children:[t.jsx("span",{className:Y.labelText,children:c}),f&&t.jsx("span",{className:Y.optionalText,children:typeof f=="string"?`(${f})`:f}),n?t.jsx("span",{className:Y.actionAreaWrapper,children:n}):o?t.jsx("button",{type:"button",className:Y.editIconWrapper,"data-replaces-asterisk":r?"true":void 0,onClick:i,"aria-label":"Edit",children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.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]})});Ze.displayName="Label";const ns="FormControlLayout-module__root___yNDhZ",ls="FormControlLayout-module__leftSection___GBM1r",is="FormControlLayout-module__rightSection___bcL4v",We={root:ns,leftSection:ls,rightSection:is},ae=y.forwardRef(function({formLayout:e="stacked",labelSize:a="default",controlMaxWidth:r,controlMinWidth:s,leftSection:o,children:n,className:i,style:c,...d},_){const m=i?`${We.root} ${i}`:We.root,f=o!=null||e==="side-by-side";return t.jsxs("div",{ref:_,className:m,"data-form-layout":e,style:{...c,...r?{"--form-control-max-width":r}:{},...s?{"--form-control-min-width":s}:{}},...d,children:[f&&t.jsx("div",{className:We.leftSection,"data-size":a,children:o}),t.jsx("div",{className:We.rightSection,children:n})]})});ae.displayName="FormControlLayout";const cs="AssistiveElement-module__root___WhQ43",ds="AssistiveElement-module__textWrapper___sfy5E",ps="AssistiveElement-module__iconWrapper___gObRF",Ge={root:cs,textWrapper:ds,iconWrapper:ps},_s=()=>t.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:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("path",{d:"M12 16v-4"}),t.jsx("path",{d:"M12 8h.01"})]}),ms=()=>t.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:[t.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"}),t.jsx("path",{d:"M12 9v4"}),t.jsx("path",{d:"M12 17h.01"})]}),qe=y.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:a=!0,children:r,className:s,overStyled:o=!1,...n},i){const d=v(n,o),_=Ge.root,m=s?`${_} ${s}`:_,h=e==="error"?ms:_s;return t.jsxs("div",{ref:i,className:m,"data-variant":e,style:d.style,...d,children:[a&&t.jsx("span",{className:Ge.iconWrapper,children:t.jsx(h,{})}),t.jsx("span",{className:Ge.textWrapper,children:r})]})});qe.displayName="AssistiveElement";const us="FormControlWrapper-module__root___c-UHo",fs="FormControlWrapper-module__inputSection___HenXk",No={root:us,inputSection:fs},Ie=y.forwardRef(function({formLayout:e,labelSize:a,labelAlignment:r,labelOptionalText:s,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,label:c,description:d,assistiveText:_,assistiveWithIcon:m=!0,controlMaxWidth:h,controlMinWidth:f,error:u,required:b,withAsterisk:C,id:x,children:j,className:N,overStyled:S=!1,labelElement:$,...L},A){const T=y.useId(),O=x||`recursica-fc-${T}`,R=_||d,w=R?`${O}-assistive`:void 0,P=u?`${O}-error`:void 0,M=v(L,S),g=N||M.className,me=No.root,ue=g?`${me} ${g}`:me,H=y.isValidElement(j)?y.cloneElement(j,{...R&&!j.props["aria-describedby"]?{"aria-describedby":w}:{},...u&&!j.props["aria-errormessage"]?{"aria-errormessage":P}:{}}):j,Ee=c?t.jsx(Ze,{id:O,labelAlignment:r,labelOptionalText:s,labelWithEditIcon:o,labelActionArea:n,onLabelEditClick:i,required:C??b,...$==="div"?{as:"div"}:{},children:c}):void 0;return t.jsx(ae,{ref:A,className:ue,formLayout:e,labelSize:a,controlMaxWidth:h,controlMinWidth:f,leftSection:Ee,...M,children:t.jsxs("div",{className:No.inputSection,children:[H,u&&t.jsx(qe,{id:P,assistiveVariant:"error",assistiveWithIcon:m,children:u}),!u&&R&&t.jsx(qe,{id:w,assistiveVariant:"help",assistiveWithIcon:m,children:R})]})})});Ie.displayName="FormControlWrapper";const ys="_root_1qhn7_3",bs="_contents_1qhn7_18",ve={root:ys,contents:bs},Po=y.forwardRef(function({layer:l,contentsOnly:e,children:a,className:r,style:s,...o},n){const i=e?r?`${ve.root} ${ve.contents} ${r}`:`${ve.root} ${ve.contents}`:r?`${ve.root} ${r}`:ve.root;return t.jsx("div",{ref:n,className:i,style:s,...e?{}:{"data-recursica-layer":String(l)},...o,children:a})});Po.displayName="Layer";const Ae=({emptyText:l="N/A"})=>t.jsx(y.Fragment,{children:l});Ae.displayName="EmptyValueRenderer";Ae.check=l=>l==null||l===""||Array.isArray(l)&&l.length===0;const ho="data-recursica-theme";function Ns({children:l,theme:e="light"}){return y.useEffect(()=>{const a=document.documentElement;return a.setAttribute(ho,e),()=>{a.removeAttribute(ho)}},[e]),t.jsx(t.Fragment,{children:l})}const hs="ReadOnlyField-module__layoutOverride___9fSsG",xs="ReadOnlyField-module__textField___qKn25",$e={layoutOverride:hs,textField:xs},Se=({value:l,overStyled:e=!1,...a})=>{const r=v(a,e),s=r.className;return t.jsx(p.Box,{component:"p",className:s?`${$e.textField} ${s}`:$e.textField,...r,children:l!=null?y.isValidElement(l)?l:Array.isArray(l)?l.join(", "):String(l):""})};Se.displayName="ReadOnlyTextField";const Ye=y.forwardRef(function({value:e,type:a="text",emptyValueComponent:r,overStyled:s=!1,className:o,style:n,...i},c){let d=null;const _=v(i,s),m=r||Ae,f=(m.check?m.check(e):Ae.check(e))?t.jsx(m,{value:e}):e;switch(a){case"boolean":d=t.jsx(Se,{value:e===!0?"True":e===!1?"False":f,overStyled:s});break;case"switch":d=t.jsx(Se,{value:e===!0?"On":e===!1?"Off":f,overStyled:s});break;case"text":default:d=t.jsx(Se,{value:f,overStyled:s});break}const u=o?`${$e.layoutOverride} ${o}`:$e.layoutOverride;return t.jsx(Ie,{ref:c,overStyled:s,className:u,style:n,..._,children:d})});Ye.displayName="ReadOnlyField";const X=y.forwardRef(function({readOnly:e,readOnlyComponent:a,readOnlyType:r="text",readOnlyValue:s,readOnlyNativeProps:o,emptyValueComponent:n,activeComponent:i,overStyled:c,onLabelEditClick:d,..._},m){if(e){if(a){const h=a;return t.jsx(Ie,{ref:m,..._,onLabelEditClick:d,overStyled:c,children:t.jsx(h,{...o})})}return t.jsx(Ye,{ref:m,type:r,value:s,emptyValueComponent:n,onLabelEditClick:d,overStyled:c,..._})}return t.jsx(Ie,{ref:m,..._,onLabelEditClick:d,overStyled:c,children:i})});X.displayName="WithReadOnlyWrapper";const vs="AutoComplete-module__layoutOverride___-K9WL",$s="AutoComplete-module__root___kANza",Cs="AutoComplete-module__input___g51MC",ws="AutoComplete-module__section___WAbf1",Ps="AutoComplete-module__dropdown___NqO3E",gs="AutoComplete-module__option___Y-Kja",D={layoutOverride:vs,root:$s,input:Cs,section:ws,dropdown:Ps,option:gs},go=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,className:x,style:j,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=v(O,r),w=R;delete w.size,delete w.variant,delete w.radius;const P={wrapper:D.root,input:D.input,section:D.section,dropdown:D.dropdown,option:D.option},W=w.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const g=W;P.wrapper=g.wrapper?`${D.root} ${g.wrapper}`:D.root,P.input=g.input?`${D.input} ${g.input}`:D.input,P.section=g.section?`${D.section} ${g.section}`:D.section,P.dropdown=g.dropdown?`${D.dropdown} ${g.dropdown}`:D.dropdown,P.option=g.option?`${D.option} ${g.option}`:D.option}const M=x?`${D.layoutOverride} ${x}`:D.layoutOverride;return t.jsx(X,{className:M,style:j,controlMaxWidth:"var(--recursica_ui-kit_components_autocomplete_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_autocomplete_properties_min-width)",overStyled:r,formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:t.jsx(p.Autocomplete,{ref:a,classNames:P,disabled:N,value:A,defaultValue:T,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});go.displayName="AutoComplete";const js="Avatar-module__root___fXu-J",Ts="Avatar-module__iconWrapper___ojly2",Ss="Avatar-module__textWrapper___zp-jD",As="Avatar-module__image___ieqGp",Os="Avatar-module__placeholder___IDW7-",J={root:js,iconWrapper:Ts,textWrapper:Ss,image:As,placeholder:Os},jo=y.forwardRef(function({size:e="default",variant:a="solid",icon:r,children:s,src:o,overStyled:n=!1,...i},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},_={default:"md",small:"sm",large:"lg"},m=v(i,n),h=m;let f="text";o?f="image":r&&(f="icon");const u={root:J.root,image:J.image,placeholder:J.placeholder},b=h.classNames;if(b&&typeof b=="object"&&!Array.isArray(b)){const x=b;u.root=x.root?`${J.root} ${x.root}`:J.root,u.image=x.image?`${J.image} ${x.image}`:J.image,u.placeholder=x.placeholder?`${J.placeholder} ${x.placeholder}`:J.placeholder}const C=h.className;return t.jsx(p.Avatar,{ref:c,className:C,classNames:u,variant:d[a],size:_[e],src:o,"data-variant":a,"data-size":e,"data-style":f,...m,children:r!=null?t.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:r}):s!=null?t.jsx("span",{className:J.textWrapper,children:s}):void 0})});jo.displayName="Avatar";const Rs=p.createPolymorphicComponent(jo),Ws="Badge-module__root___5osNT",te={root:Ws},To=y.forwardRef(function({variant:e="primary-color",overStyled:a=!1,...r},s){const o=v(r,a),n={root:te.root,section:te.section,label:te.label},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const _=i;n.root=_.root?`${te.root} ${_.root}`:te.root,n.section=_.section??te.section,n.label=_.label??te.label}const c=o.className,d=c?`${te.root} ${c}`:te.root;return t.jsx(p.Badge,{ref:s,variant:"filled","data-variant":e,...o,className:d,classNames:n})});To.displayName="Badge";const Ls=p.createPolymorphicComponent(To),ks="Breadcrumb-module__root___x-9ln",Is="Breadcrumb-module__separator___qrUX-",ce={root:ks,separator:Is},So=y.forwardRef(function({overStyled:e=!1,separator:a=">",...r},s){const o=v({separator:a,...r},e),n={root:ce.root,separator:ce.separator},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const _=i;n.root=_.root?`${ce.root} ${_.root}`:ce.root,n.separator=_.separator?`${ce.separator} ${_.separator}`:ce.separator}const c=o.className,d=c?`${ce.root} ${c}`:ce.root;return t.jsx(p.Breadcrumbs,{ref:s,...o,className:d,classNames:n})});So.displayName="Breadcrumb";const Ms="Loader-module__root___6iYOP",we={root:Ms},Ke=y.forwardRef(function({variant:e="oval",size:a="default",overStyled:r=!1,...s},o){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[a]||"default",c=v(s,r),d={root:we.root},_=c.classNames;if(_&&typeof _=="object"&&!Array.isArray(_)){const f=_;d.root=f.root?`${we.root} ${f.root}`:we.root}const m=c.className,h=m?`${we.root} ${m}`:we.root;return t.jsx(p.Loader,{ref:o,type:e,"data-variant":e,"data-size":i,...c,className:h,classNames:d})});Ke.displayName="Loader";const zs="Button-module__root___Q2R8-",Fs="Button-module__loader___X-9u-",Bs="Button-module__label___UJ3Zt",Ds="Button-module__labelText___rFV5p",Es="Button-module__iconWrapper___uEKPa",Vs="Button-module__section___f2mKr",K={root:zs,loader:Fs,label:Bs,labelText:Ds,iconWrapper:Es,section:Vs};function Gs(l){return l==null||l===""?!1:typeof l=="string"?l.trim()!=="":!0}const Ao=y.forwardRef(function({variant:e="solid",size:a="default",icon:r,children:s,overStyled:o=!1,loaderVariant:n="oval",loaderSize:i,useRecursicaLoader:c=!0,...d},_){const m={solid:"filled",outline:"outline",text:"subtle"},h={default:"md",small:"sm"},f=v(d,o),u=f;delete u.fullWidth;const b=!!r||!!u.leftSection,C=!!u.rightSection,x=Gs(s),j=(b||C)&&!x;let N="label";j?N="icon-only":(b||C)&&(N="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&j&&!u["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const S={root:K.root,section:K.section,label:K.label,loader:K.loader},$=u.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const w=$;S.root=w.root?`${K.root} ${w.root}`:K.root,S.section=w.section??K.section,S.label=w.label??K.label}const L=u.className,A=L?`${K.root} ${L}`:K.root,T=u.loaderProps,O=i??(a==="small"?"small":"default");let R=T;return c&&(R={children:t.jsx(Ke,{variant:n,size:O}),...T}),t.jsx(p.Button,{ref:_,className:A,classNames:S,variant:m[e],size:h[a],loaderProps:R,leftSection:r!=null?t.jsx("span",{className:K.iconWrapper,"aria-hidden":!0,children:r}):void 0,"data-variant":e,"data-size":a,"data-content":N,...f,disabled:!!u.disabled||!!u.loading,children:t.jsx("span",{className:K.labelText,children:s})})});Ao.displayName="Button";const qs=p.createPolymorphicComponent(Ao),Hs="Card-module__root___c9KvZ",Us="Card-module__header___PTXf2",Zs="Card-module__footer___Mu-JC",Ys="Card-module__section___BRT8H",Ks="Card-module__content___oFIQa",ne={root:Hs,header:Us,footer:Zs,section:Ys,content:Ks},Oo=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o={root:ne.root},n=s.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const c=n;Object.keys(c).forEach(d=>{o[d]?o[d]=`${o[d]} ${c[d]}`:o[d]=c[d]})}const i=s.className;return t.jsx(p.Card,{ref:r,className:i,classNames:o,...s})});Oo.displayName="Card";const Xe=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx(p.Card.Section,{ref:r,className:o?`${ne.section} ${o}`:ne.section,...s})});Xe.displayName="CardSection";const Je=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx(p.Card.Section,{ref:r,className:o?`${ne.header} ${o}`:ne.header,...s})});Je.displayName="CardHeader";const Qe=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx(p.Card.Section,{ref:r,className:o?`${ne.footer} ${o}`:ne.footer,...s})});Qe.displayName="CardFooter";const eo=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx("div",{ref:r,className:o?`${ne.content} ${o}`:ne.content,...s})});eo.displayName="CardContent";const Ro=p.createPolymorphicComponent(Oo),Be=Ro;Be.Section=Xe;Be.Header=Je;Be.Footer=Qe;Be.Content=eo;const Xs=Ro,Js="Checkbox-module__groupRoot___cBS0o",Qs="Checkbox-module__root___mY3qk",er="Checkbox-module__body___5yC7q",or="Checkbox-module__inner___rTke4",tr="Checkbox-module__input___2kt-h",sr="Checkbox-module__icon___-O7i6",rr="Checkbox-module__labelWrapper___GpZkr",ar="Checkbox-module__label___cwRtI",z={groupRoot:Js,root:Qs,body:er,inner:or,input:tr,icon:sr,labelWrapper:rr,label:ar},oo=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,description:m,assistiveText:h,assistiveWithIcon:f,error:u,required:b,withAsterisk:C,id:x,className:j,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,w=v(R,r),P=w;return delete P.size,t.jsx(X,{className:j,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,description:m,assistiveText:h,assistiveWithIcon:f,error:u,required:b,withAsterisk:C,id:x,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:t.jsx(p.Checkbox.Group,{ref:a,...w,disabled:$||P.disabled,value:T,defaultValue:O,children:t.jsx("div",{className:z.groupRoot,"data-layout":s,children:S})})})});oo.displayName="CheckboxGroup";const to=y.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:s,readOnlyComponent:o,disabled:n,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:_,...m}=e,h=v(m,r),f=h;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const u={root:z.root,body:z.body,inner:z.inner,input:z.input,icon:z.icon,labelWrapper:z.labelWrapper,label:z.label},b=f.classNames;if(b&&typeof b=="object"&&!Array.isArray(b)){const N=b;u.root=N.root?`${z.root} ${N.root}`:z.root,u.body=N.body?`${z.body} ${N.body}`:z.body,u.inner=N.inner?`${z.inner} ${N.inner}`:z.inner,u.input=N.input?`${z.input} ${N.input}`:z.input,u.icon=N.icon?`${z.icon} ${N.icon}`:z.icon,u.labelWrapper=N.labelWrapper?`${z.labelWrapper} ${N.labelWrapper}`:z.labelWrapper,u.label=N.label?`${z.label} ${N.label}`:z.label}const C=f.className,x=C?`${z.root} ${C}`:z.root;if(s&&o){const N=!!(f.checked??f.defaultChecked),S=o,$=t.jsx(S,{...e,checked:N,label:f.label});return i?t.jsx(ae,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:_,children:$}):t.jsx(t.Fragment,{children:$})}const j=t.jsx(p.Checkbox,{ref:a,className:x,classNames:u,disabled:s||n,...h});return i?t.jsx(ae,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:_,children:j}):j});to.displayName="Checkbox";to.Group=oo;const nr="Chip-module__root___f5pFk",lr="Chip-module__label___Ov9pg",ir="Chip-module__mantineIconWrapper___KLSz6",cr="Chip-module__innerWrapper___EnrTF",dr="Chip-module__children___zbRAR",pr="Chip-module__leadingIcon___JBtjQ",_r="Chip-module__removeIcon___pVju-",G={root:nr,label:lr,mantineIconWrapper:ir,innerWrapper:cr,children:dr,leadingIcon:pr,removeIcon:_r};function mr(l){return t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...l,children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Wo=y.forwardRef(function({error:e=!1,icon:a,onRemove:r,removeLabel:s="Remove",children:o,overStyled:n=!1,...i},c){const d=v(i,n),_=d,m={root:G.root,label:G.label,input:G.input,iconWrapper:G.mantineIconWrapper,checkIcon:G.checkIcon},h=_.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const x=h;m.root=x.root?`${G.root} ${x.root}`:G.root,m.label=x.label?`${G.label} ${x.label}`:G.label}const f=_.className,u=f?`${G.root} ${f}`:G.root,b=e?"":void 0,C=!o&&(!!a||!!r);return t.jsx(p.Chip,{ref:c,className:u,classNames:m,...b!==void 0?{"data-error":""}:{},...C?{"data-icon-only":""}:{},...d,children:t.jsxs("span",{className:G.innerWrapper,children:[a&&t.jsx("span",{className:G.leadingIcon,"aria-hidden":!0,children:a}),t.jsx("span",{className:G.children,children:o}),r&&t.jsx("span",{role:"button",className:G.removeIcon,onClick:x=>{x.preventDefault(),x.stopPropagation(),r(x)},"aria-label":s,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),r(x))},tabIndex:0,children:t.jsx(mr,{})})]})})});Wo.displayName="Chip";const ur="Container-module__root___UVssr",Pe={root:ur},Lo=y.forwardRef(function({children:e,size:a,...r},s){const o={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},n=typeof a=="string"&&o[a]?o[a]:a,i={root:Pe.root},c=r.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const m=c;i.root=m.root?`${Pe.root} ${m.root}`:Pe.root}const d=r.className,_=d?`${Pe.root} ${d}`:Pe.root;return t.jsx(p.Container,{ref:s,size:n,className:_,classNames:i,...r,children:e})});Lo.displayName="Container";const fr="DatePicker-module__layoutOverride___X9yaM",yr="DatePicker-module__root___6XvRT",br="DatePicker-module__input___pcSW8",Nr="DatePicker-module__section___n3iWA",hr="DatePicker-module__dropdown___wjt08",xr="DatePicker-module__calendarHeader___KHxno",vr="DatePicker-module__day___U03J2",U={layoutOverride:fr,root:yr,input:br,section:Nr,dropdown:hr,calendarHeader:xr,day:vr},ko=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,className:x,style:j,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=v(O,r),w=R;delete w.size,delete w.variant,delete w.radius,delete w.description;const P={wrapper:U.root,input:U.input,section:U.section,dropdown:U.dropdown,day:U.day,calendarHeader:U.calendarHeader},W=w.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const g=W;P.wrapper=g.wrapper?`${U.root} ${g.wrapper}`:U.root,P.input=g.input?`${U.input} ${g.input}`:U.input,P.section=g.section?`${U.section} ${g.section}`:U.section}const M=x?`${U.layoutOverride} ${x}`:U.layoutOverride;return t.jsx(X,{className:M,style:j,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:r,formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):T?String(T):void 0,readOnlyNativeProps:e,activeComponent:t.jsx(Vt.DatePickerInput,{ref:a,classNames:P,disabled:N,value:A,defaultValue:T,label:void 0,description:void 0,error:void 0,withAsterisk:!1,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});ko.displayName="DatePicker";const $r="Dropdown-module__layoutOverride___FNcvP",Cr="Dropdown-module__root___uVyL0",wr="Dropdown-module__input___dK4dN",Pr="Dropdown-module__section___j3MRB",gr="Dropdown-module__dropdown___gG-Sw",jr="Dropdown-module__option___nAGU-",E={layoutOverride:$r,root:Cr,input:wr,section:Pr,dropdown:gr,option:jr},Io=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",containerWidth:o,labelSize:n,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:_,label:m,assistiveText:h,assistiveWithIcon:f,error:u,required:b,withAsterisk:C,id:x,className:j,style:N,disabled:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,data:R,...w}=e,P=v(w,r),W=P;delete W.size,delete W.variant,delete W.radius;const M={wrapper:E.root,input:E.input,section:E.section,dropdown:E.dropdown,option:E.option},g=W.classNames;if(g&&typeof g=="object"&&!Array.isArray(g)){const H=g;M.wrapper=H.wrapper?`${E.root} ${H.wrapper}`:E.root,M.input=H.input?`${E.input} ${H.input}`:E.input,M.section=H.section?`${E.section} ${H.section}`:E.section,M.dropdown=H.dropdown?`${E.dropdown} ${H.dropdown}`:E.dropdown,M.option=H.option?`${E.option} ${H.option}`:E.option}const me={...N||{},width:o||"100%"},ue=j?`${E.layoutOverride} ${j}`:E.layoutOverride;return t.jsx(X,{className:ue,style:me,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:r,formLayout:s,labelSize:n,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:_,label:m,assistiveText:h,assistiveWithIcon:f,error:u,required:b,withAsterisk:C,id:x,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?String(T):O?String(O):void 0,readOnlyNativeProps:e,activeComponent:t.jsx(p.Select,{ref:a,classNames:M,disabled:S,value:T,defaultValue:O,data:R||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":u?"true":void 0},...P})})});Io.displayName="Dropdown";const Tr=l=>t.jsx("div",{...l,children:"FileInput"}),Sr=l=>t.jsx("div",{...l,children:"FileUpload"}),Ar="Flex-module__root___yYser",ge={root:Ar},Mo=y.forwardRef(function({children:e,gap:a="rec-default",rowGap:r,columnGap:s,...o},n){const i={root:ge.root},c=o.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const m=c;i.root=m.root?`${ge.root} ${m.root}`:ge.root}const d=o.className,_=d?`${ge.root} ${d}`:ge.root;return t.jsx(p.Flex,{ref:n,className:_,classNames:i,...He({gap:a,rowGap:r,columnGap:s,...o}),children:e})});Mo.displayName="Flex";const Or=p.createPolymorphicComponent(Mo),Rr="Group-module__root___ftO64",je={root:Rr},zo=y.forwardRef(function({children:e,gap:a="rec-default",...r},s){const o={root:je.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;o.root=d.root?`${je.root} ${d.root}`:je.root}const i=r.className,c=i?`${je.root} ${i}`:je.root;return t.jsx(p.Group,{ref:s,className:c,classNames:o,...He({gap:a,...r}),children:e})});zo.displayName="Group";const Wr="HoverCard-module__dropdown___FBPFW",Lr="HoverCard-module__arrow___S9AkE",xo={dropdown:Wr,arrow:Lr},Fo=function({overStyled:e=!1,withBeak:a=!0,...r}){const s=v(r,e),o={dropdown:xo.dropdown,arrow:xo.arrow},n=s.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const _=n;Object.keys(_).forEach(m=>{o[m]?o[m]=`${o[m]} ${_[m]}`:o[m]=_[m]})}const i=s.arrowSize??16,c=s.withArrow,d=a??c;return t.jsx(p.HoverCard,{position:"top",arrowSize:i,withArrow:d,classNames:o,...s})};Fo.displayName="HoverCard";const Bo=function(e){return t.jsx(p.HoverCard.Target,{...e})};Bo.displayName="HoverCardTarget";const Do=function({overStyled:e=!1,...a}){const r=v(a,e),s=r.className;return t.jsx(p.HoverCard.Dropdown,{className:s,...r})};Do.displayName="HoverCardDropdown";const so=Fo;so.Target=Bo;so.Dropdown=Do;const kr="Link-module__root___I0VGE",Ir="Link-module__iconWrapper___W-LlF",Mr="Link-module__labelText___wSvUy",ye={root:kr,iconWrapper:Ir,labelText:Mr},Eo=y.forwardRef(function({icon:e,children:a,overStyled:r=!1,...s},o){const n=v(s,r),i=n,c={root:ye.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;c.root=h.root?`${ye.root} ${h.root}`:ye.root}const _=i.className,m=_?`${ye.root} ${_}`:ye.root;return t.jsxs(p.Anchor,{ref:o,className:m,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...n,children:[e&&t.jsx("span",{className:ye.iconWrapper,"aria-hidden":!0,children:e}),t.jsx("span",{className:ye.labelText,children:a})]})});Eo.displayName="Link";const zr=p.createPolymorphicComponent(Eo),Fr="Menu-module__dropdown___j4xuA",Br="Menu-module__item___NMXha",Dr="Menu-module__itemLabel___zvcqC",Er="Menu-module__itemSection___pRIcn",Vr="Menu-module__divider___wPiNq",Gr="Menu-module__label___4FBGa",qr="Menu-module__chevron___hEEiy",be={dropdown:Fr,item:Br,itemLabel:Dr,itemSection:Er,divider:Vr,label:Gr,chevron:qr},Vo=function({overStyled:e=!1,...a}){const r=v(a,e),s={dropdown:be.dropdown,item:be.item,itemLabel:be.itemLabel,itemSection:be.itemSection,divider:be.divider,label:be.label,chevron:be.chevron},o=r.classNames;if(o&&typeof o=="object"&&!Array.isArray(o)){const n=o;Object.keys(n).forEach(i=>{s[i]?s[i]=`${s[i]} ${n[i]}`:s[i]=n[i]})}return t.jsx(p.Menu,{classNames:s,...r})};Vo.displayName="Menu";const Go=function(e){return t.jsx(p.Menu.Target,{...e})};Go.displayName="MenuTarget";const qo=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx(p.Menu.Dropdown,{ref:r,className:o,...s})});qo.displayName="MenuDropdown";const Ho=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s;e||delete o.color;const n=o.className;return t.jsx(p.Menu.Item,{ref:r,className:n,...s})});Ho.displayName="MenuItem";const Hr=p.createPolymorphicComponent(Ho),Uo=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx(p.Menu.Divider,{ref:r,className:o,...s})});Uo.displayName="MenuDivider";const Zo=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx(p.Menu.Label,{ref:r,className:o,...s})});Zo.displayName="MenuLabel";const Yo=function(e){return t.jsx(p.Menu.Sub,{...e})};Yo.displayName="MenuSub";const Ko=function(e){return t.jsx(p.Menu.Sub.Target,{...e})};Ko.displayName="MenuSubTarget";const Xo=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s;e||delete o.color;const n=o.className;return t.jsx(p.Menu.Sub.Item,{ref:r,className:n,...s})});Xo.displayName="MenuSubItem";const Ur=p.createPolymorphicComponent(Xo),Jo=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className;return t.jsx(p.Menu.Sub.Dropdown,{ref:r,className:o,...s})});Jo.displayName="MenuSubDropdown";const De=Yo;De.Target=Ko;De.Item=Ur;De.Dropdown=Jo;const xe=Vo;xe.Target=Go;xe.Dropdown=qo;xe.Item=Hr;xe.Divider=Uo;xe.Label=Zo;xe.Sub=De;const Zr="Modal-module__root___ytPLl",Yr="Modal-module__inner___SSUJE",Kr="Modal-module__content___dWO-B",Xr="Modal-module__header___ILG9i",Jr="Modal-module__title___A5OeE",Qr="Modal-module__bodyWrapper___5CCL-",ea="Modal-module__scrollArea___KD-hm",oa="Modal-module__footer___rro2w",ta="Modal-module__close___-ER1C",re={root:Zr,inner:Yr,content:Kr,header:Xr,title:Jr,bodyWrapper:Qr,scrollArea:ea,footer:oa,close:ta},Qo=y.forwardRef(function({overStyled:e=!1,children:a,title:r,withCloseButton:s=!0,overlayProps:o,withOverlay:n=!0,closeButtonProps:i,...c},d){const _=v(c,e),m={root:re.root,inner:re.inner,content:re.content,header:re.header,title:re.title,close:re.close},h=_.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const f=h;Object.keys(f).forEach(u=>{m[u]?m[u]=`${m[u]} ${f[u]}`:m[u]=f[u]})}return t.jsxs(p.Modal.Root,{ref:d,classNames:m,..._,children:[n&&t.jsx(p.Modal.Overlay,{...o}),t.jsxs(p.Modal.Content,{children:[(r||s)&&t.jsxs(p.Modal.Header,{children:[r&&t.jsx(p.Modal.Title,{children:r}),s&&t.jsx(p.Modal.CloseButton,{...i})]}),t.jsx(ao,{children:a})]})]})});Qo.displayName="Modal";const ro=y.forwardRef(function({className:e,...a},r){return t.jsx("div",{ref:r,className:`${re.footer} ${e||""}`,...a})});ro.displayName="Modal.Footer";const ao=y.forwardRef(function({className:e,onScroll:a,children:r,...s},o){const n=y.useRef(null),[i,c]=y.useState(!1),[d,_]=y.useState(!1),m=y.useCallback(()=>{if(n.current){const{scrollTop:b,scrollHeight:C,clientHeight:x}=n.current;c(b>0),_(Math.ceil(b+x)<C)}},[]);y.useEffect(()=>(m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)),[m,r]);const h=b=>{m(),a==null||a(b)};let f=null;const u=[];return y.Children.forEach(r,b=>{var C;y.isValidElement(b)&&(b.type===ro||((C=b.type)==null?void 0:C.displayName)==="Modal.Footer")?f=b:u.push(b)}),t.jsxs(p.Modal.Body,{...s,ref:b=>{typeof o=="function"?o(b):o&&(o.current=b)},className:`${re.bodyWrapper} ${e||""}`,children:[t.jsx("div",{ref:n,onScroll:h,"data-scrolled-top":i||void 0,"data-scrolled-bottom":d||void 0,className:re.scrollArea,children:u}),f]})});ao.displayName="Modal.Body";const le=Qo;le.Root=p.Modal.Root;le.Overlay=p.Modal.Overlay;le.Content=p.Modal.Content;le.Header=p.Modal.Header;le.Title=p.Modal.Title;le.CloseButton=p.Modal.CloseButton;le.Body=ao;le.Footer=ro;const sa="NumberInput-module__layoutOverride___5-9T4",ra="NumberInput-module__root___C6rAn",aa="NumberInput-module__input___Ss8p7",na="NumberInput-module__section___MijP0",la="NumberInput-module__controls___8UfQ2",ia="NumberInput-module__control___Qre9-",Ne={layoutOverride:sa,root:ra,input:aa,section:na,controls:la,control:ia},et=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,className:x,style:j,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,hideControls:O=!1,...R}=e,w=v(R,r),P=w;delete P.size,delete P.variant,delete P.radius;const W={wrapper:Ne.root,input:Ne.input,section:Ne.section,controls:Ne.controls,control:Ne.control},M=x?`${Ne.layoutOverride} ${x}`:Ne.layoutOverride;return t.jsx(X,{className:M,style:j,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:r,formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A==null?void 0:A.toString():T==null?void 0:T.toString(),readOnlyNativeProps:e,activeComponent:t.jsx(p.NumberInput,{ref:a,classNames:W,disabled:N,value:A,defaultValue:T,hideControls:O,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0,"data-with-left-section":P.leftSection?"true":void 0,"data-with-right-section":P.rightSection||!O?"true":void 0},...w})})});et.displayName="NumberInput";const ca="Pagination-module__root___ITRjt",da="Pagination-module__control___40yNT",pa="Pagination-module__dots___Yl9da",_a="Pagination-module__iconWithLabel___pLM4O",ma="Pagination-module__baseIcon___Qw3bJ",V={root:ca,control:da,dots:pa,iconWithLabel:_a,baseIcon:ma},ua="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",fa="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",ya="M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",ba="M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",Na={next:ua,prev:fa,first:ya,last:ba},Oe=({type:l,className:e,...a})=>t.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${V.baseIcon} ${e||""}`.trim(),...a,children:t.jsx("path",{d:Na[l],fill:"currentColor"})}),ot=l=>t.jsxs("div",{className:V.iconWithLabel,children:[t.jsx("span",{children:"Next"}),t.jsx(Oe,{type:"next",...l})]}),tt=l=>t.jsxs("div",{className:V.iconWithLabel,children:[t.jsx(Oe,{type:"prev",...l}),t.jsx("span",{children:"Prev"})]}),st=l=>t.jsxs("div",{className:V.iconWithLabel,children:[t.jsx(Oe,{type:"first",...l}),t.jsx("span",{children:"First"})]}),rt=l=>t.jsxs("div",{className:V.iconWithLabel,children:[t.jsx("span",{children:"Last"}),t.jsx(Oe,{type:"last",...l})]});function at(l){const e={root:V.root,control:V.control,dots:V.dots},a=l.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const o=a;e.root=o.root?`${V.root} ${o.root}`:V.root,e.control=o.control?`${V.control} ${o.control}`:V.control,e.dots=o.dots?`${V.dots} ${o.dots}`:V.dots}const r=l.className;return{className:r?`${V.root} ${r}`:V.root,classNames:e}}const nt=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=at(s);return t.jsx(p.Pagination.Root,{ref:r,className:o.className,classNames:o.classNames,...s})});nt.displayName="Pagination.Root";const lt=y.forwardRef(function({withLabel:e,icon:a,...r},s){const o=a||(e?ot:void 0);return t.jsx(p.Pagination.Next,{ref:s,"data-variant":"text",icon:o,...r})});lt.displayName="Pagination.Next";const it=y.forwardRef(function({withLabel:e,icon:a,...r},s){const o=a||(e?tt:void 0);return t.jsx(p.Pagination.Previous,{ref:s,"data-variant":"text",icon:o,...r})});it.displayName="Pagination.Previous";const ct=y.forwardRef(function({withLabel:e,icon:a,...r},s){const o=a||(e?st:void 0);return t.jsx(p.Pagination.First,{ref:s,"data-variant":"text",icon:o,...r})});ct.displayName="Pagination.First";const dt=y.forwardRef(function({withLabel:e,icon:a,...r},s){const o=a||(e?rt:void 0);return t.jsx(p.Pagination.Last,{ref:s,"data-variant":"text",icon:o,...r})});dt.displayName="Pagination.Last";const pt=y.forwardRef(function({overStyled:e=!1,getControlProps:a,withLabels:r,...s},o){const n=v(s,e),i=at(n),c=_=>{const m={"data-variant":"text"};return a?{...m,...a(_)}:m},d=r?{nextIcon:ot,previousIcon:tt,firstIcon:st,lastIcon:rt}:{};return t.jsx(p.Pagination,{ref:o,className:i.className,classNames:i.classNames,getControlProps:c,...d,...n})});pt.displayName="Pagination";const ee=pt;ee.Root=nt;ee.Items=p.Pagination.Items;ee.Control=p.Pagination.Control;ee.Dots=p.Pagination.Dots;ee.Next=lt;ee.Previous=it;ee.First=ct;ee.Last=dt;ee.Icon=Oe;const ha="Panel-module__content___wdGo-",xa="Panel-module__inner___ruA2b",va="Panel-module__header___o7SiC",$a="Panel-module__title___181OP",Ca="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",wa="Panel-module__body___SEC3T",Pa="Panel-module__footer___t6-hz",_e={content:ha,inner:xa,header:va,title:$a,titleTruncate:Ca,body:wa,footer:Pa},_t=function({overStyled:e=!1,position:a="right",keepMounted:r=!0,wrapHeaderText:s=!1,...o}){const n=v(o,e),i={content:_e.content,header:_e.header,title:s?_e.titleTruncate:_e.title,body:_e.body,inner:_e.inner},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(_=>{i[_]?i[_]=`${i[_]} ${d[_]}`:i[_]=d[_]})}return t.jsx(p.Drawer,{position:a,keepMounted:r,closeOnClickOutside:o.closeOnClickOutside??!!o.opened,...n,classNames:i})};_t.displayName="Panel";const no=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o=s.className,n=o?`${_e.footer} ${o}`:_e.footer;return t.jsx("div",{ref:r,className:n,...s})});no.displayName="PanelFooter";const oe=_t;oe.Root=p.Drawer.Root;oe.Overlay=p.Drawer.Overlay;oe.Content=p.Drawer.Content;oe.Header=p.Drawer.Header;oe.Title=p.Drawer.Title;oe.CloseButton=p.Drawer.CloseButton;oe.Body=p.Drawer.Body;oe.Stack=p.Drawer.Stack;oe.Footer=no;const ga="Popover-module__dropdown___svhS6",ja="Popover-module__arrow___5A-0e",vo={dropdown:ga,arrow:ja},mt=function({overStyled:e=!1,withBeak:a=!0,...r}){const s=v(r,e),o={dropdown:vo.dropdown,arrow:vo.arrow},n=s.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const _=n;Object.keys(_).forEach(m=>{o[m]?o[m]=`${o[m]} ${_[m]}`:o[m]=_[m]})}const i=s.arrowSize??16,c=s.withArrow,d=a??c;return t.jsx(p.Popover,{position:"top",arrowSize:i,withArrow:d,classNames:o,...s})};mt.displayName="Popover";const ut=function(e){return t.jsx(p.Popover.Target,{...e})};ut.displayName="PopoverTarget";const ft=function({overStyled:e=!1,...a}){const r=v(a,e),s=r.className;return t.jsx(p.Popover.Dropdown,{className:s,...r})};ft.displayName="PopoverDropdown";const lo=mt;lo.Target=ut;lo.Dropdown=ft;const Ta="Radio-module__groupRoot___bfUii",Sa="Radio-module__root___kAjTD",Aa="Radio-module__body___q2Wpj",Oa="Radio-module__inner___QaTBB",Ra="Radio-module__radio___MfgN-",Wa="Radio-module__icon___DWznm",La="Radio-module__labelWrapper___dB0Gi",ka="Radio-module__label___vAFIP",F={groupRoot:Ta,root:Sa,body:Aa,inner:Oa,radio:Ra,icon:Wa,labelWrapper:La,label:ka},io=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,description:m,assistiveText:h,assistiveWithIcon:f,error:u,required:b,withAsterisk:C,id:x,className:j,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,w=v(R,r),P=w;return delete P.size,t.jsx(X,{className:j,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,description:m,assistiveText:h,assistiveWithIcon:f,error:u,required:b,withAsterisk:C,id:x,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:t.jsx(p.Radio.Group,{ref:a,...w,disabled:$||P.disabled,value:T,defaultValue:O,children:t.jsx("div",{className:F.groupRoot,"data-layout":s,children:S})})})});io.displayName="RadioGroup";const Ia=({className:l,style:e})=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:l,style:e,children:t.jsx("circle",{cx:"8",cy:"8",r:"5"})}),co=y.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:s,readOnlyComponent:o,disabled:n,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:_,...m}=e,h=v(m,r),f=h;delete f.size,delete f.color,delete f.radius,delete f.variant,delete f.iconColor;const u={root:F.root,body:F.body,inner:F.inner,radio:F.radio,icon:F.icon,labelWrapper:F.labelWrapper,label:F.label},b=f.classNames;if(b&&typeof b=="object"&&!Array.isArray(b)){const N=b;u.root=N.root?`${F.root} ${N.root}`:F.root,u.body=N.body?`${F.body} ${N.body}`:F.body,u.inner=N.inner?`${F.inner} ${N.inner}`:F.inner,u.radio=N.radio?`${F.radio} ${N.radio}`:F.radio,u.icon=N.icon?`${F.icon} ${N.icon}`:F.icon,u.labelWrapper=N.labelWrapper?`${F.labelWrapper} ${N.labelWrapper}`:F.labelWrapper,u.label=N.label?`${F.label} ${N.label}`:F.label}const C=f.className,x=C?`${F.root} ${C}`:F.root;if(s&&o){const N=!!(f.checked??f.defaultChecked),S=o,$=t.jsx(S,{...e,checked:N,label:f.label});return i?t.jsx(ae,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:_,children:$}):t.jsx(t.Fragment,{children:$})}const j=t.jsx(p.Radio,{ref:a,icon:Ia,className:x,classNames:u,disabled:s||n,...h});return i?t.jsx(ae,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:_,children:j}):j});co.displayName="Radio";co.Group=io;const yt=({checked:l,label:e})=>t.jsxs(p.Box,{component:"span",className:$e.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&t.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),t.jsx("span",{children:l?"On":"Off"})]});yt.displayName="ReadOnlySwitchField";const bt=({checked:l,label:e})=>t.jsxs(p.Box,{component:"span",className:$e.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&t.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),t.jsx("span",{children:l?"True":"False"})]});bt.displayName="ReadOnlyBooleanField";const Ma="SegmentedControl-module__root___JFRhg",za="SegmentedControl-module__label___mS17q",Fa="SegmentedControl-module__control___znOdQ",Ba="SegmentedControl-module__indicator___ZMcJy",Z={root:Ma,label:za,control:Fa,indicator:Ba};function Da(l){const e={root:Z.root,control:Z.control,label:Z.label,indicator:Z.indicator},a=l.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const o=a;e.root=o.root?`${Z.root} ${o.root}`:Z.root,e.control=o.control?`${Z.control} ${o.control}`:Z.control,e.label=o.label?`${Z.label} ${o.label}`:Z.label,e.indicator=o.indicator?`${Z.indicator} ${o.indicator}`:Z.indicator}const r=l.className;return{className:r?`${Z.root} ${r}`:Z.root,classNames:e}}const Nt=y.forwardRef(function({overStyled:e=!1,orientation:a="horizontal",fullWidth:r,...s},o){const n=v(s,e),i=n;delete i.disabled;const c=Da(i);return t.jsx(p.SegmentedControl,{ref:o,className:c.className,classNames:c.classNames,orientation:a,fullWidth:r,"data-orientation":a,...n})});Nt.displayName="SegmentedControl";const Ea=Nt,Va="Slider-module__layoutOverride___zYPun",Ga="Slider-module__sliderContainer___y8I0J",qa="Slider-module__sliderTrackWrapper___UHpVh",Ha="Slider-module__iconWrapper___uqHpC",Ua="Slider-module__sliderRoot___LI86H",Za="Slider-module__sliderTrack___oqnlG",Ya="Slider-module__sliderBar___TI4VY",Ka="Slider-module__sliderThumb___OFn8p",Xa="Slider-module__sliderMark___1lM2B",Ja="Slider-module__minMaxGuide___TaGqz",Qa="Slider-module__rightGuideContainer___8dOT8",en="Slider-module__currentValue___dGV2T",on="Slider-module__inputField___6x578",tn="Slider-module__readOnlyValue___-ZzMW",k={layoutOverride:Va,sliderContainer:Ga,sliderTrackWrapper:qa,iconWrapper:Ha,sliderRoot:Ua,sliderTrack:Za,sliderBar:Ya,sliderThumb:Ka,sliderMark:Xa,minMaxGuide:Ja,rightGuideContainer:Qa,currentValue:en,inputField:on,readOnlyValue:tn},sn=({value:l})=>t.jsx("div",{className:k.readOnlyValue,children:l}),ht=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:_,label:m,tooltipLabel:h,assistiveText:f,assistiveWithIcon:u,error:b,required:C,withAsterisk:x,id:j,className:N,style:S,disabled:$,readOnly:L,readOnlyComponent:A,emptyValueComponent:T,value:O,defaultValue:R,icon:w,showInput:P=!1,showMinMaxLabels:W=!0,min:M=0,max:g=100,step:me=1,onChange:ue,onChangeEnd:H,...Ee}=e,[kt,It]=y.useState(()=>O!==void 0?O:R!==void 0?R:M),ie=O!==void 0?O:kt,[Mt,Ve]=y.useState(ie.toString());y.useEffect(()=>{Ve(ie.toString())},[ie]);const uo=B=>{O===void 0&&It(B),ue==null||ue(B)},zt=B=>{const yo=B.target.value;Ve(yo);const bo=parseFloat(yo);if(!isNaN(bo)){const Et=Math.max(M,Math.min(g,bo));uo(Et)}},Ft=()=>{Ve(ie.toString())},fo=v(Ee,r),Ce=fo;delete Ce.size,delete Ce.variant,delete Ce.radius,delete Ce.wrapperProps;const fe={root:k.sliderRoot,track:k.sliderTrack,bar:k.sliderBar,thumb:k.sliderThumb,mark:k.sliderMark,markLabel:k.sliderMarkLabel},Re=Ce.classNames;if(Re&&typeof Re=="object"&&!Array.isArray(Re)){const B=Re;fe.root=B.root?`${k.sliderRoot} ${B.root}`:k.sliderRoot,fe.track=B.track?`${k.sliderTrack} ${B.track}`:k.sliderTrack,fe.bar=B.bar?`${k.sliderBar} ${B.bar}`:k.sliderBar,fe.thumb=B.thumb?`${k.sliderThumb} ${B.thumb}`:k.sliderThumb,fe.mark=B.mark?`${k.sliderMark} ${B.mark}`:k.sliderMark,fe.markLabel=B.markLabel?`${k.sliderMarkLabel} ${B.markLabel}`:k.sliderMarkLabel}const Bt=N?`${k.layoutOverride} ${N}`:k.layoutOverride,Dt=w?t.jsx("span",{className:k.iconWrapper,"aria-hidden":!0,children:w}):null;return t.jsx(X,{ref:a,className:Bt,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:r,formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:_,label:m,assistiveText:f,assistiveWithIcon:u,error:b,required:C,withAsterisk:x,id:j,readOnly:L,readOnlyComponent:A||sn,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:ie,readOnlyNativeProps:{value:ie},activeComponent:t.jsxs("div",{className:k.sliderContainer,"data-form-layout":s,"data-disabled":$?"true":void 0,"data-error":b?"true":void 0,children:[Dt,W&&t.jsx("span",{className:k.minMaxGuide,children:M}),t.jsx("div",{className:k.sliderTrackWrapper,children:t.jsx(p.Slider,{classNames:fe,disabled:$,value:ie,onChange:uo,onChangeEnd:H,min:M,max:g,step:me,label:h,...fo})}),t.jsxs("div",{className:k.rightGuideContainer,children:[!P&&t.jsx("span",{className:k.currentValue,children:ie}),W&&t.jsx("span",{className:k.minMaxGuide,children:g})]}),P&&t.jsx("input",{type:"number",className:k.inputField,value:Mt,onChange:zt,onBlur:Ft,min:M,max:g,step:me,disabled:$,"data-error":b?"true":void 0})]})})});ht.displayName="Slider";const rn="Stack-module__root___NUN-x",Te={root:rn},xt=y.forwardRef(function({children:e,gap:a="rec-default",...r},s){const o={root:Te.root},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;o.root=d.root?`${Te.root} ${d.root}`:Te.root}const i=r.className,c=i?`${Te.root} ${i}`:Te.root;return t.jsx(p.Stack,{ref:s,className:c,classNames:o,...He({gap:a,...r}),children:e})});xt.displayName="Stack";const an=p.createPolymorphicComponent(xt),nn="Stepper-module__root___jbSYO",ln="Stepper-module__horizontal___USHT1",cn="Stepper-module__steps___4HPO6",dn="Stepper-module__step___s2nqL",pn="Stepper-module__stepBody___TBvys",_n="Stepper-module__stepLabel___N6nuy",mn="Stepper-module__stepDescription___DnDAy",un="Stepper-module__separator___pU0No",fn="Stepper-module__vertical___d4mOs",yn="Stepper-module__large___J18-y",bn="Stepper-module__small___Ub-zb",Nn="Stepper-module__stepIcon___YQHNq",hn="Stepper-module__stepCompletedIcon___B9MeL",xn="Stepper-module__verticalSeparator___frWc1",vn="Stepper-module__content___J-h8X",q={root:nn,horizontal:ln,steps:cn,step:dn,stepBody:pn,stepLabel:_n,stepDescription:mn,separator:un,vertical:fn,large:yn,small:bn,stepIcon:Nn,stepCompletedIcon:hn,verticalSeparator:xn,content:vn},vt=y.forwardRef(function(e,a){const{overStyled:r=!1,size:s="large",orientation:o="horizontal",className:n,style:i,...c}=e,d=v(c,r);return t.jsx(p.Stepper,{ref:a,orientation:o,className:`${q.root} ${o==="horizontal"?q.horizontal:q.vertical} ${s==="large"?q.large:q.small} ${n||""}`,style:i,"data-size":s,"data-orientation":o,classNames:{steps:q.steps,step:q.step,stepIcon:q.stepIcon,stepCompletedIcon:q.stepCompletedIcon,stepBody:q.stepBody,stepLabel:q.stepLabel,stepDescription:q.stepDescription,separator:q.separator,verticalSeparator:q.verticalSeparator,content:q.content},...d})}),$n=Object.assign(vt,{Step:p.Stepper.Step,Completed:p.Stepper.Completed});vt.displayName="Stepper";const Cn="Switch-module__root___Y5Ydi",wn="Switch-module__body___Sw9Wr",Pn="Switch-module__track___7ObdZ",gn="Switch-module__thumb___-FTeK",jn="Switch-module__labelWrapper___YSOwx",Tn="Switch-module__label___LrH7V",Sn="Switch-module__thumbIconWrapper___sCY-1",An="Switch-module__checkIcon___ZBAQN",On="Switch-module__closeIcon___bLLGw",Rn="Switch-module__groupRoot___-Uepi",I={root:Cn,body:wn,track:Pn,thumb:gn,labelWrapper:jn,label:Tn,thumbIconWrapper:Sn,checkIcon:An,closeIcon:On,groupRoot:Rn},po=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,description:m,assistiveText:h,assistiveWithIcon:f,error:u,required:b,withAsterisk:C,id:x,className:j,style:N,children:S,readOnly:$,readOnlyComponent:L,emptyValueComponent:A,value:T,defaultValue:O,...R}=e,w=v(R,r),P=w;return delete P.size,t.jsx(X,{className:j,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:r,labelElement:"div",formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,description:m,assistiveText:h,assistiveWithIcon:f,error:u,required:b,withAsterisk:C,id:x,readOnly:$&&!!L,readOnlyComponent:L,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:T!==void 0?T:O,readOnlyNativeProps:e,activeComponent:t.jsx(p.Switch.Group,{ref:a,...w,disabled:$||P.disabled,value:T,defaultValue:O,children:t.jsx("div",{className:I.groupRoot,"data-layout":s,children:S})})})});po.displayName="SwitchGroup";const _o=y.forwardRef(function(e,a){const{overStyled:r=!1,readOnly:s,readOnlyComponent:o,disabled:n,thumbIcon:i,formLayout:c,labelSize:d,controlMaxWidth:_,controlMinWidth:m,...h}=e,f=v(h,r),u=f;delete u.size,delete u.color,delete u.radius,delete u.variant;const b={root:I.root,body:I.body,track:I.track,thumb:I.thumb,trackLabel:I.trackLabel,labelWrapper:I.labelWrapper,label:I.label},C=u.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const $=C;b.root=$.root?`${I.root} ${$.root}`:I.root,b.body=$.body?`${I.body} ${$.body}`:I.body,b.track=$.track?`${I.track} ${$.track}`:I.track,b.thumb=$.thumb?`${I.thumb} ${$.thumb}`:I.thumb,b.trackLabel=$.trackLabel?`${I.trackLabel} ${$.trackLabel}`:I.trackLabel,b.labelWrapper=$.labelWrapper?`${I.labelWrapper} ${$.labelWrapper}`:I.labelWrapper,b.label=$.label?`${I.label} ${$.label}`:I.label}const x=u.className,j=x?`${I.root} ${x}`:I.root;if(s&&o){const $=!!(u.checked??u.defaultChecked),L=o,A=t.jsx(L,{...e,checked:$,label:u.label});return c?t.jsx(ae,{formLayout:c,labelSize:d,controlMaxWidth:_,controlMinWidth:m,children:A}):t.jsx(t.Fragment,{children:A})}const N=t.jsxs("div",{className:I.thumbIconWrapper,children:[t.jsx(p.CheckIcon,{className:I.checkIcon}),t.jsx(p.CloseIcon,{className:I.closeIcon})]}),S=t.jsx(p.Switch,{ref:a,className:j,classNames:b,disabled:s||n,"data-disabled":s||n||void 0,thumbIcon:i??N,...f});return c?t.jsx(ae,{formLayout:c,labelSize:d,controlMaxWidth:_,controlMinWidth:m,children:S}):S});_o.displayName="Switch";_o.Group=po;const Wn=l=>t.jsx("div",{...l,children:"Table"}),Ln="Tabs-module__root___-VKVI",kn="Tabs-module__list___qRVME",In="Tabs-module__tab___IdDYc",Mn="Tabs-module__panel___08i9c",Le={root:Ln,list:kn,tab:In,panel:Mn},$t=y.forwardRef(function(e,a){const{variant:r="default",orientation:s="horizontal",overStyled:o=!1,className:n,...i}=e,c=v(i,o);return t.jsx(p.Tabs,{ref:a,variant:r,orientation:s,className:`${Le.root} ${n||""}`,"data-variant":r,"data-orientation":s,classNames:{list:Le.list,tab:Le.tab,panel:Le.panel},...c})});$t.displayName="Tabs";const Ct=y.forwardRef(function(e,a){const{overStyled:r=!1,...s}=e;return t.jsx(p.Tabs.List,{ref:a,...v(s,r)})});Ct.displayName="Tabs.List";const wt=y.forwardRef(function(e,a){const{overStyled:r=!1,...s}=e;return t.jsx(p.Tabs.Tab,{ref:a,...v(s,r)})});wt.displayName="Tabs.Tab";const Pt=y.forwardRef(function(e,a){const{overStyled:r=!1,...s}=e;return t.jsx(p.Tabs.Panel,{ref:a,...v(s,r)})});Pt.displayName="Tabs.Panel";const zn=Object.assign($t,{List:Ct,Tab:wt,Panel:Pt}),gt=y.forwardRef(function({overStyled:e=!1,variant:a="body",...r},s){const o=v(r,e),n=o.className,i=`recursica_brand_typography_${a}`,c=n?`${i} ${n}`:i;return t.jsx(p.Text,{ref:s,className:c,...o})});gt.displayName="Text";const Fn=p.createPolymorphicComponent(gt),Bn="TextArea-module__layoutOverride___4MCdm",Dn="TextArea-module__root___3dyeu",En="TextArea-module__input___8l36v",de={layoutOverride:Bn,root:Dn,input:En},jt=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,className:x,style:j,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=v(O,r),w=R;delete w.size,delete w.variant,delete w.radius;const P={wrapper:de.root,input:de.input},W=w.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const g=W;P.wrapper=g.wrapper?`${de.root} ${g.wrapper}`:de.root,P.input=g.input?`${de.input} ${g.input}`:de.input}const M=x?`${de.layoutOverride} ${x}`:de.layoutOverride;return t.jsx(X,{className:M,style:j,controlMaxWidth:"var(--recursica_ui-kit_components_textarea_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_textarea_properties_min-width)",overStyled:r,formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:t.jsx(p.Textarea,{ref:a,classNames:P,disabled:N,value:A,defaultValue:T,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});jt.displayName="TextArea";const Vn="TextField-module__layoutOverride___SNZqc",Gn="TextField-module__root___2ZYkG",qn="TextField-module__input___RL-My",Hn="TextField-module__section___bCIJ0",Q={layoutOverride:Vn,root:Gn,input:qn,section:Hn},Tt=y.forwardRef(function(e,a){const{overStyled:r=!1,formLayout:s="stacked",labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,className:x,style:j,disabled:N,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,value:A,defaultValue:T,...O}=e,R=v(O,r),w=R;delete w.size,delete w.variant,delete w.radius;const P={wrapper:Q.root,input:Q.input,section:Q.section},W=w.classNames;if(W&&typeof W=="object"&&!Array.isArray(W)){const g=W;P.wrapper=g.wrapper?`${Q.root} ${g.wrapper}`:Q.root,P.input=g.input?`${Q.input} ${g.input}`:Q.input,P.section=g.section?`${Q.section} ${g.section}`:Q.section}const M=x?`${Q.layoutOverride} ${x}`:Q.layoutOverride;return t.jsx(X,{className:M,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:r,formLayout:s,labelSize:o,labelAlignment:n,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:_,assistiveText:m,assistiveWithIcon:h,error:f,required:u,withAsterisk:b,id:C,readOnly:S,readOnlyComponent:$,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:A!==void 0?A:T,readOnlyNativeProps:e,activeComponent:t.jsx(p.Input,{ref:a,classNames:P,disabled:N,value:A,defaultValue:T,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":f?"true":void 0},...R})})});Tt.displayName="TextField";const Un=l=>t.jsx("div",{...l,children:"TimePicker"}),Zn="Timeline-module__root___LwRdZ",Yn="Timeline-module__item___T5xdQ",Kn="Timeline-module__itemBody___XAV-E",Xn="Timeline-module__itemBullet___rPXCy",Jn="Timeline-module__itemTitle___GgRRW",Qn="Timeline-module__itemContent___vurs-",el="Timeline-module__description___f9sxV",ol="Timeline-module__timestamp___owiRu",pe={root:Zn,item:Yn,itemBody:Kn,itemBullet:Xn,itemTitle:Jn,itemContent:Qn,description:el,timestamp:ol},St=y.forwardRef(function({overStyled:e=!1,timestamp:a,bulletVariant:r="default",children:s,...o},n){const i=v(o,e),c={item:pe.item,itemBody:pe.itemBody,itemContent:pe.itemContent,itemBullet:pe.itemBullet,itemTitle:pe.itemTitle},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const m=d;Object.keys(m).forEach(h=>{c[h]?c[h]=`${c[h]} ${m[h]}`:c[h]=m[h]})}const _=a?t.jsxs(t.Fragment,{children:[s&&t.jsx("div",{className:pe.description,children:s}),t.jsx("div",{className:pe.timestamp,children:a})]}):s;return t.jsx(p.TimelineItem,{ref:n,classNames:c,"data-variant":r,...i,children:_})});St.displayName="TimelineItem";const At=y.forwardRef(function({overStyled:e=!1,...a},r){const s=v(a,e),o={root:pe.root},n=s.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;Object.keys(i).forEach(c=>{o[c]?o[c]=`${o[c]} ${i[c]}`:o[c]=i[c]})}return t.jsx(p.Timeline,{ref:r,classNames:o,...s})});At.displayName="Timeline";const Ot=At;Ot.Item=St;const Rt=y.forwardRef(function({overStyled:e=!1,order:a=1,...r},s){const o=v(r,e),n=o.className,i=`recursica_brand_typography_h${a}`,c=n?`${i} ${n}`:i;return t.jsx(p.Title,{ref:s,order:a,className:c,...o})});Rt.displayName="Title";const tl="Toast-module__root___MUvfI",sl="Toast-module__icon___VwvE1",rl="Toast-module__loader___8Gxd-",al="Toast-module__title___-H6R2",nl="Toast-module__description___-QwfC",ll="Toast-module__closeButton___vGr7g",il="Toast-module__body___VLkXA",he={root:tl,icon:sl,loader:rl,title:al,description:nl,closeButton:ll,body:il},Wt=y.forwardRef(function({overStyled:e=!1,variant:a="default",withCloseButton:r=!0,...s},o){const n=v(s,e),i={root:he.root,body:he.body,title:he.title,description:he.description,closeButton:he.closeButton,icon:he.icon,loader:he.loader},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(_=>{i[_]?i[_]=`${i[_]} ${d[_]}`:i[_]=d[_]})}return t.jsx(p.Notification,{ref:o,withCloseButton:r,withBorder:!1,"data-variant":a,classNames:i,loading:!1,...n})});Wt.displayName="Toast";const cl="Tooltip-module__tooltip___UA7H9",dl="Tooltip-module__arrow___4zROk",$o={tooltip:cl,arrow:dl},Lt=function({overStyled:e=!1,withBeak:a=!0,...r}){const s=v(r,e),o={tooltip:$o.tooltip,arrow:$o.arrow},n=s.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const _=n;Object.keys(_).forEach(m=>{o[m]?o[m]=`${o[m]} ${_[m]}`:o[m]=_[m]})}const i=s.arrowSize??16,c=s.withArrow,d=a??c;return t.jsx(p.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:d,classNames:o,...s})};Lt.displayName="Tooltip";const mo=Lt;mo.Floating=p.Tooltip.Floating;mo.Group=p.Tooltip.Group;const pl=l=>t.jsx("div",{...l,children:"TransferList"});exports.Accordion=Fe;exports.AccordionControl=Me;exports.AccordionItem=Ue;exports.AccordionPanel=ze;exports.AutoComplete=go;exports.Avatar=Rs;exports.Badge=Ls;exports.Breadcrumb=So;exports.Button=qs;exports.Card=Xs;exports.CardContent=eo;exports.CardFooter=Qe;exports.CardHeader=Je;exports.CardSection=Xe;exports.Checkbox=to;exports.CheckboxGroup=oo;exports.Chip=Wo;exports.Container=Lo;exports.DatePicker=ko;exports.Dropdown=Io;exports.EmptyValueRenderer=Ae;exports.FileInput=Tr;exports.FileUpload=Sr;exports.Flex=Or;exports.FormControlLayout=ae;exports.Group=zo;exports.HoverCard=so;exports.Label=Ze;exports.Layer=Po;exports.Link=zr;exports.Loader=Ke;exports.Menu=xe;exports.Modal=le;exports.NumberInput=et;exports.Pagination=ee;exports.Panel=oe;exports.PanelFooter=no;exports.Popover=lo;exports.Radio=co;exports.RadioGroup=io;exports.ReadOnlyBooleanField=bt;exports.ReadOnlyField=Ye;exports.ReadOnlySwitchField=yt;exports.ReadOnlyTextField=Se;exports.RecursicaThemeProvider=Ns;exports.SegmentedControl=Ea;exports.Slider=ht;exports.Stack=an;exports.Stepper=$n;exports.Switch=_o;exports.SwitchGroup=po;exports.Table=Wn;exports.Tabs=zn;exports.Text=Fn;exports.TextArea=jt;exports.TextField=Tt;exports.TimePicker=Un;exports.Timeline=Ot;exports.Title=Rt;exports.Toast=Wt;exports.Tooltip=mo;exports.TransferList=pl;exports.WithReadOnlyWrapper=X;
|
|
2
2
|
//# sourceMappingURL=mantine-adapter.cjs.map
|