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