@recursica/mantine-adapter 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/mantine-adapter.cjs +1 -1
  3. package/dist/mantine-adapter.cjs.map +1 -1
  4. package/dist/mantine-adapter.css +1 -1
  5. package/dist/mantine-adapter.js +963 -639
  6. package/dist/mantine-adapter.js.map +1 -1
  7. package/dist/src/components/Container/Container.d.ts +14 -0
  8. package/dist/src/components/Dropdown/Dropdown.d.ts +10 -2
  9. package/dist/src/components/Flex/Flex.d.ts +17 -0
  10. package/dist/src/components/Group/Group.d.ts +17 -0
  11. package/dist/src/components/Stack/Stack.d.ts +15 -0
  12. package/dist/src/components/TextArea/TextArea.d.ts +14 -2
  13. package/dist/src/components/index.d.ts +6 -0
  14. package/package.json +1 -1
  15. package/src/components/Container/CONTAINER_IMPLEMENTATION_NOTES.md +4 -0
  16. package/src/components/Container/Container.module.css +7 -0
  17. package/src/components/Container/Container.stories.tsx +102 -0
  18. package/src/components/Container/Container.tsx +63 -0
  19. package/src/components/Dropdown/DROPDOWN_IMPLEMENTATION_NOTES.md +7 -0
  20. package/src/components/Dropdown/Dropdown.module.css +272 -0
  21. package/src/components/Dropdown/Dropdown.stories.tsx +77 -5
  22. package/src/components/Dropdown/Dropdown.tsx +184 -5
  23. package/src/components/Flex/FLEX_IMPLEMENTATION_NOTES.md +4 -0
  24. package/src/components/Flex/Flex.module.css +7 -0
  25. package/src/components/Flex/Flex.stories.tsx +125 -0
  26. package/src/components/Flex/Flex.tsx +68 -0
  27. package/src/components/Group/GROUP_IMPLEMENTATION_NOTES.md +4 -0
  28. package/src/components/Group/Group.module.css +7 -0
  29. package/src/components/Group/Group.stories.tsx +117 -0
  30. package/src/components/Group/Group.tsx +68 -0
  31. package/src/components/Stack/STACK_IMPLEMENTATION_NOTES.md +4 -0
  32. package/src/components/Stack/Stack.module.css +7 -0
  33. package/src/components/Stack/Stack.stories.tsx +105 -0
  34. package/src/components/Stack/Stack.tsx +66 -0
  35. package/src/components/TextArea/TEXTAREA_IMPLEMENTATION_NOTES.md +7 -0
  36. package/src/components/TextArea/TextArea.module.css +225 -0
  37. package/src/components/TextArea/TextArea.stories.tsx +77 -5
  38. package/src/components/TextArea/TextArea.tsx +162 -5
  39. package/src/components/index.ts +6 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @recursica/mantine-adapter
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6e6256b: Updated with latest components
8
+
3
9
  ## 0.7.0
4
10
 
5
11
  ### Minor Changes
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),j=require("@mantine/core"),Ae=["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"],We=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),me={"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 y(o,s){if(s)return o;const a={...o};for(const n of Ae)n in a&&delete a[n];for(const[n,t]of Object.entries(a))typeof t=="string"&&t.startsWith("rec-")&&We.has(n)&&t in me&&(a[n]=me[t]);return a}const we="Accordion-module__root___Dem6d",Re="Accordion-module__item___7ryVk",ke="Accordion-module__noDivider___Ni2tT",Te="Accordion-module__control___b4wgX",Fe="Accordion-module__label___Ss7uW",Ie="Accordion-module__chevron___i-HVZ",Se="Accordion-module__iconLeftWrapper___5oLen",Le="Accordion-module__panel___Wx50w",Be="Accordion-module__content___PEM9t",L={root:we,item:Re,noDivider:ke,control:Te,label:Fe,chevron:Ie,iconLeftWrapper:Se,panel:Le,content:Be},xe=function({variant:s="unstyled",overStyled:a=!1,...n}){const t=y(n,a),r={root:L.root,item:L.item,control:L.control,label:L.label,chevron:L.chevron,panel:L.panel,content:L.content},i=t.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(c=>{r[c]?r[c]=`${r[c]} ${d[c]}`:r[c]=d[c]})}const l=t.className;return e.jsx(j.Accordion,{variant:s,className:l,classNames:r,...t})};xe.displayName="Accordion";const ee=m.forwardRef(function({title:s,leftIcon:a,divider:n=!0,children:t,overStyled:r=!1,...i},l){const d=y(i,r),c=d.className,p=[n?void 0:L.noDivider,c].filter(Boolean).join(" ")||void 0;return e.jsx(j.Accordion.Item,{ref:l,className:p,...d,children:s?e.jsxs(e.Fragment,{children:[e.jsx(K,{leftIcon:a,children:s}),e.jsx(Z,{children:t})]}):t})});ee.displayName="AccordionItem";const K=m.forwardRef(function({leftIcon:s,children:a,overStyled:n=!1,...t},r){const i=y(t,n),l=i.className;return e.jsx(j.Accordion.Control,{ref:r,className:l,icon:s?e.jsx("span",{className:L.iconLeftWrapper,"aria-hidden":!0,children:s}):void 0,...i,children:a})});K.displayName="AccordionControl";const Z=m.forwardRef(function({overStyled:s=!1,...a},n){const t=y(a,s),r=t.className;return e.jsx(j.Accordion.Panel,{ref:n,className:r,...t})});Z.displayName="AccordionPanel";const U=xe;U.Item=ee;U.Control=K;U.Panel=Z;const ze="Avatar-module__root___fXu-J",Ee="Avatar-module__iconWrapper___ojly2",Oe="Avatar-module__textWrapper___zp-jD",Me="Avatar-module__image___ieqGp",qe="Avatar-module__placeholder___IDW7-",w={root:ze,iconWrapper:Ee,textWrapper:Oe,image:Me,placeholder:qe},he=m.forwardRef(function({size:s="default",variant:a="solid",icon:n,className:t,classNames:r,children:i,style:l,src:d,...c},p){const u={solid:"filled",outline:"outline",ghost:"transparent"},N={default:"md",small:"sm",large:"lg"};let _="text";d?_="image":n&&(_="icon");const x={root:w.root,image:w.image,placeholder:w.placeholder};if(r&&typeof r=="object"&&!Array.isArray(r)){const b=r;x.root=b.root?`${w.root} ${b.root}`:w.root,x.image=b.image?`${w.image} ${b.image}`:w.image,x.placeholder=b.placeholder?`${w.placeholder} ${b.placeholder}`:w.placeholder}return e.jsx(j.Avatar,{ref:p,className:t,classNames:x,variant:u[a],size:N[s],style:l,src:d,"data-variant":a,"data-size":s,"data-style":_,...c,children:n!=null?e.jsx("span",{className:w.iconWrapper,"aria-hidden":!0,children:n}):i!=null?e.jsx("span",{className:w.textWrapper,children:i}):void 0})});he.displayName="Avatar";const De="Badge-module__root___5osNT",I={root:De},be=m.forwardRef(function({variant:s="primary-color",overStyled:a=!1,...n},t){const r=y(n,a),i={root:I.root,section:I.section,label:I.label},l=r.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;i.root=p.root?`${I.root} ${p.root}`:I.root,i.section=p.section??I.section,i.label=p.label??I.label}const d=r.className,c=d?`${I.root} ${d}`:I.root;return e.jsx(j.Badge,{ref:t,variant:"filled","data-variant":s,...r,className:c,classNames:i})});be.displayName="Badge";const Ve="Breadcrumb-module__root___x-9ln",Ge="Breadcrumb-module__separator___qrUX-",z={root:Ve,separator:Ge},Ne=m.forwardRef(function({overStyled:s=!1,separator:a=">",...n},t){const r=y({separator:a,...n},s),i={root:z.root,separator:z.separator},l=r.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;i.root=p.root?`${z.root} ${p.root}`:z.root,i.separator=p.separator?`${z.separator} ${p.separator}`:z.separator}const d=r.className,c=d?`${z.root} ${d}`:z.root;return e.jsx(j.Breadcrumbs,{ref:t,...r,className:c,classNames:i})});Ne.displayName="Breadcrumb";const He="Button-module__root___Q2R8-",Ke="Button-module__label___UJ3Zt",Ze="Button-module__labelText___rFV5p",Ue="Button-module__iconWrapper___uEKPa",Ye="Button-module__section___f2mKr",R={root:He,label:Ke,labelText:Ze,iconWrapper:Ue,section:Ye};function Xe(o){return o==null||o===""?!1:typeof o=="string"?o.trim()!=="":!0}const ye=m.forwardRef(function({variant:s="solid",size:a="default",icon:n,children:t,overStyled:r=!1,...i},l){const d={solid:"filled",outline:"outline",text:"subtle"},c={default:"md",small:"sm"},p=y(i,r),u=p;delete u.fullWidth;const N=!!n||!!u.leftSection,_=!!u.rightSection,x=(N||_)&&!Xe(t);typeof process<"u"&&process.env.NODE_ENV!=="production"&&x&&!u["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const b={root:R.root,section:R.section,label:R.label},C=u.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const g=C;b.root=g.root?`${R.root} ${g.root}`:R.root,b.section=g.section??R.section,b.label=g.label??R.label}const f=u.className,v=f?`${R.root} ${f}`:R.root;return e.jsx(j.Button,{ref:l,className:v,classNames:b,variant:d[s],size:c[a],leftSection:n!=null?e.jsx("span",{className:R.iconWrapper,"aria-hidden":!0,children:n}):void 0,"data-variant":s,"data-size":a,...x?{"data-icon-only":""}:{},...p,children:e.jsx("span",{className:R.labelText,children:t})})});ye.displayName="Button";const Je="Card-module__root___c9KvZ",Qe="Card-module__header___PTXf2",eo="Card-module__footer___Mu-JC",oo="Card-module__section___BRT8H",to="Card-module__content___oFIQa",B={root:Je,header:Qe,footer:eo,section:oo,content:to},je=m.forwardRef(function({overStyled:s=!1,...a},n){const t=y(a,s),r={root:B.root},i=t.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(c=>{r[c]?r[c]=`${r[c]} ${d[c]}`:r[c]=d[c]})}const l=t.className;return e.jsx(j.Card,{ref:n,className:l,classNames:r,...t})});je.displayName="Card";const oe=m.forwardRef(function({overStyled:s=!1,...a},n){const t=y(a,s),r=t.className;return e.jsx(j.Card.Section,{ref:n,className:r?`${B.section} ${r}`:B.section,...t})});oe.displayName="CardSection";const te=m.forwardRef(function({overStyled:s=!1,...a},n){const t=y(a,s),r=t.className;return e.jsx(j.Card.Section,{ref:n,className:r?`${B.header} ${r}`:B.header,...t})});te.displayName="CardHeader";const re=m.forwardRef(function({overStyled:s=!1,...a},n){const t=y(a,s),r=t.className;return e.jsx(j.Card.Section,{ref:n,className:r?`${B.footer} ${r}`:B.footer,...t})});re.displayName="CardFooter";const se=m.forwardRef(function({overStyled:s=!1,...a},n){const t=y(a,s),r=t.className;return e.jsx("div",{ref:n,className:r?`${B.content} ${r}`:B.content,...t})});se.displayName="CardContent";const H=je;H.Section=oe;H.Header=te;H.Footer=re;H.Content=se;const ro="Label-module__root___e6HXZ",so="Label-module__labelText___rieFR",no="Label-module__required___Ggrzc",ao="Label-module__optionalText___Y2yun",co="Label-module__actionAreaWrapper___ELoZK",io="Label-module__editIconWrapper___NG2xW",A={root:ro,labelText:so,required:no,optionalText:ao,actionAreaWrapper:co,editIconWrapper:io},ne=m.forwardRef(function({formLayout:s="stacked",labelSize:a="default",labelAlignment:n,required:t=!1,labelOptionalText:r,labelWithEditIcon:i,labelActionArea:l,onLabelEditClick:d,children:c,overStyled:p=!1,...u},N){const _=n||(s==="side-by-side"?"right":"left");let x;t||(r===!0?x="optional":r&&(x=r));const b=y(u,p),C=b,f={label:A.root,required:A.required},v=C.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const W=v;f.label=W.label?`${A.root} ${W.label}`:A.root,f.required=W.required?`${A.required} ${W.required}`:A.required}const g=C.className,k=g?`${A.root} ${g}`:A.root;return e.jsxs(j.Input.Label,{ref:N,className:k,classNames:f,"data-layout":s,"data-size":a,"data-alignment":_,required:t&&!i,...b,children:[e.jsx("span",{className:A.labelText,children:c}),x&&e.jsx("span",{className:A.optionalText,children:typeof x=="string"?`(${x})`:x}),l?e.jsx("span",{className:A.actionAreaWrapper,children:l}):i?e.jsx("button",{type:"button",className:A.editIconWrapper,"data-replaces-asterisk":t?"true":void 0,onClick:d,"aria-label":"Edit",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});ne.displayName="Label";const lo="AssistiveElement-module__root___WhQ43",po="AssistiveElement-module__textWrapper___sfy5E",_o="AssistiveElement-module__iconWrapper___gObRF",X={root:lo,textWrapper:po,iconWrapper:_o},mo=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4"}),e.jsx("path",{d:"M12 8h.01"})]}),uo=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),e.jsx("path",{d:"M12 9v4"}),e.jsx("path",{d:"M12 17h.01"})]}),Q=m.forwardRef(function({assistiveVariant:s="help",assistiveWithIcon:a=!0,children:n,className:t,overStyled:r=!1,...i},l){const c=y(i,r),p=X.root,u=t?`${p} ${t}`:p,N=s==="error"?uo:mo;return e.jsxs("div",{ref:l,className:u,"data-variant":s,style:c.style,...c,children:[a&&e.jsx("span",{className:X.iconWrapper,children:e.jsx(N,{})}),e.jsx("span",{className:X.textWrapper,children:n})]})});Q.displayName="AssistiveElement";const fo="FormControlWrapper-module__root___c-UHo",xo="FormControlWrapper-module__labelSection___hxSY4",ho="FormControlWrapper-module__inputSection___HenXk",J={root:fo,labelSection:xo,inputSection:ho},O=m.forwardRef(function({formLayout:s,labelSize:a,labelAlignment:n,labelOptionalText:t,labelWithEditIcon:r,labelActionArea:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:u=!0,controlMaxWidth:N,controlMinWidth:_,error:x,required:b,withAsterisk:C,id:f,children:v,className:g,overStyled:k=!1,labelElement:W,...V},M){const q=m.useId(),P=f||`recursica-fc-${q}`,T=p||c,E=T?`${P}-assistive`:void 0,F=x?`${P}-error`:void 0,Y=y(V,k),pe=g||Y.className,_e=J.root,ge=pe?`${_e} ${pe}`:_e,Pe=m.isValidElement(v)?m.cloneElement(v,{...T&&!v.props["aria-describedby"]?{"aria-describedby":E}:{},...x&&!v.props["aria-errormessage"]?{"aria-errormessage":F}:{}}):v;return e.jsxs(j.Box,{ref:M,className:ge,"data-form-layout":s||"stacked","data-form-alignment":n||"left",style:{...Y.style||{},...N?{"--form-control-max-width":N}:{},..._?{"--form-control-min-width":_}:{}},...Y,children:[d&&e.jsx("div",{className:J.labelSection,children:e.jsx(ne,{id:P,formLayout:s,labelSize:a,labelAlignment:n,labelOptionalText:t,labelWithEditIcon:r,labelActionArea:i,onLabelEditClick:l,required:C??b,...W==="div"?{as:"div"}:{},children:d})}),e.jsxs("div",{className:J.inputSection,children:[Pe,x&&e.jsx(Q,{id:F,assistiveVariant:"error",assistiveWithIcon:u,children:x}),!x&&T&&e.jsx(Q,{id:E,assistiveVariant:"help",assistiveWithIcon:u,children:T})]})]})});O.displayName="FormControlWrapper";const bo="Checkbox-module__groupRoot___cBS0o",No="Checkbox-module__root___mY3qk",yo="Checkbox-module__body___5yC7q",jo="Checkbox-module__inner___rTke4",Co="Checkbox-module__input___2kt-h",vo="Checkbox-module__icon___-O7i6",$o="Checkbox-module__labelWrapper___GpZkr",go="Checkbox-module__label___cwRtI",h={groupRoot:bo,root:No,body:yo,inner:jo,input:Co,icon:vo,labelWrapper:$o,label:go},ae=m.forwardRef(function({overStyled:s=!1,formLayout:a="stacked",labelSize:n,labelAlignment:t,labelOptionalText:r,labelWithEditIcon:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:u,error:N,required:_,withAsterisk:x,id:b,className:C,style:f,children:v,readOnly:g,readOnlyComponent:k,...W},V){const M=y(W,s),q=M;return delete q.size,g&&k?e.jsx(O,{className:C,style:f,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:a,labelSize:n,labelAlignment:t,labelOptionalText:r,labelWithEditIcon:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:u,error:N,required:_,withAsterisk:x,id:b,children:k}):e.jsx(O,{className:C,style:f,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:a,labelSize:n,labelAlignment:t,labelOptionalText:r,labelWithEditIcon:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:u,error:N,required:_,withAsterisk:x,id:b,children:e.jsx(j.Checkbox.Group,{ref:V,...M,children:e.jsx("div",{className:h.groupRoot,"data-layout":a,children:m.Children.map(v,P=>m.isValidElement(P)?m.cloneElement(P,{disabled:g||P.props.disabled}):P)})})})});ae.displayName="CheckboxGroup";const ce=m.forwardRef(function({overStyled:s=!1,readOnly:a,readOnlyComponent:n,disabled:t,...r},i){const l=y(r,s),d=l;if(delete d.size,delete d.color,delete d.radius,delete d.variant,delete d.iconColor,a&&n)return e.jsx(O,{overStyled:s,...l,children:n});const c={root:h.root,body:h.body,inner:h.inner,input:h.input,icon:h.icon,labelWrapper:h.labelWrapper,label:h.label},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const _=p;c.root=_.root?`${h.root} ${_.root}`:h.root,c.body=_.body?`${h.body} ${_.body}`:h.body,c.inner=_.inner?`${h.inner} ${_.inner}`:h.inner,c.input=_.input?`${h.input} ${_.input}`:h.input,c.icon=_.icon?`${h.icon} ${_.icon}`:h.icon,c.labelWrapper=_.labelWrapper?`${h.labelWrapper} ${_.labelWrapper}`:h.labelWrapper,c.label=_.label?`${h.label} ${_.label}`:h.label}const u=d.className,N=u?`${h.root} ${u}`:h.root;return e.jsx(j.Checkbox,{ref:i,className:N,classNames:c,disabled:a||t,...l})});ce.displayName="Checkbox";ce.Group=ae;const Po="Chip-module__root___f5pFk",Ao="Chip-module__label___Ov9pg",Wo="Chip-module__mantineIconWrapper___KLSz6",wo="Chip-module__innerWrapper___EnrTF",Ro="Chip-module__children___zbRAR",ko="Chip-module__leadingIcon___JBtjQ",To="Chip-module__removeIcon___pVju-",$={root:Po,label:Ao,mantineIconWrapper:Wo,innerWrapper:wo,children:Ro,leadingIcon:ko,removeIcon:To};function Fo(o){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...o,children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Ce=m.forwardRef(function({error:s=!1,icon:a,onRemove:n,removeLabel:t="Remove",children:r,overStyled:i=!1,...l},d){const c=y(l,i),p=c,u={root:$.root,label:$.label,input:$.input,iconWrapper:$.mantineIconWrapper,checkIcon:$.checkIcon},N=p.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const f=N;u.root=f.root?`${$.root} ${f.root}`:$.root,u.label=f.label?`${$.label} ${f.label}`:$.label}const _=p.className,x=_?`${$.root} ${_}`:$.root,b=s?"":void 0,C=!r&&(!!a||!!n);return e.jsx(j.Chip,{ref:d,className:x,classNames:u,...b!==void 0?{"data-error":""}:{},...C?{"data-icon-only":""}:{},...c,children:e.jsxs("span",{className:$.innerWrapper,children:[a&&e.jsx("span",{className:$.leadingIcon,"aria-hidden":!0,children:a}),e.jsx("span",{className:$.children,children:r}),n&&e.jsx("span",{role:"button",className:$.removeIcon,onClick:f=>{f.preventDefault(),f.stopPropagation(),n(f)},"aria-label":t,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),f.stopPropagation(),n(f))},tabIndex:0,children:e.jsx(Fo,{})})]})})});Ce.displayName="Chip";const Io=o=>e.jsx("div",{...o,children:"DatePicker"}),So=o=>e.jsx("div",{...o,children:"Dropdown"}),Lo=o=>e.jsx("div",{...o,children:"FileInput"}),Bo=o=>e.jsx("div",{...o,children:"FileUpload"}),zo=o=>e.jsx("div",{...o,children:"HoverCard"}),Eo=o=>e.jsx("div",{...o,children:"Link"}),Oo=o=>e.jsx("div",{...o,children:"Loader"}),Mo=o=>e.jsx("div",{...o,children:"Menu"}),qo=o=>e.jsx("div",{...o,children:"Modal"}),Do=o=>e.jsx("div",{...o,children:"NumberInput"}),Vo=o=>e.jsx("div",{...o,children:"Pagination"}),Go=o=>e.jsx("div",{...o,children:"Panel"}),Ho=o=>e.jsx("div",{...o,children:"Popover"}),Ko=o=>e.jsx("div",{...o,children:"Radio"}),Zo="_root_1qhn7_3",Uo="_contents_1qhn7_18",D={root:Zo,contents:Uo},ve=m.forwardRef(function({layer:o,contentsOnly:s,children:a,className:n,style:t,...r},i){const l=s?n?`${D.root} ${D.contents} ${n}`:`${D.root} ${D.contents}`:n?`${D.root} ${n}`:D.root;return e.jsx("div",{ref:i,className:l,style:t,...s?{}:{"data-recursica-layer":String(o)},...r,children:a})});ve.displayName="Layer";const G=({emptyText:o="N/A"})=>e.jsx(m.Fragment,{children:o});G.displayName="EmptyValueRenderer";G.check=o=>o==null||o===""||Array.isArray(o)&&o.length===0;const ue="data-recursica-theme";function Yo({children:o,theme:s="light"}){return m.useEffect(()=>{const a=document.documentElement;return a.setAttribute(ue,s),()=>{a.removeAttribute(ue)}},[s]),e.jsx(e.Fragment,{children:o})}const Xo="ReadOnlyField-module__textField___qKn25",fe={textField:Xo},ie=({value:o,overStyled:s=!1,...a})=>{const n=y(a,s),t=n.className;return e.jsx(j.Box,{component:"p",className:t?`${fe.textField} ${t}`:fe.textField,...n,children:o!=null?m.isValidElement(o)?o:String(o):""})};ie.displayName="ReadOnlyTextField";const le=m.forwardRef(function({value:s,type:a="text",emptyValueComponent:n,overStyled:t=!1,...r},i){let l=null;const d=y(r,t),c=n||G,u=(c.check?c.check(s):G.check(s))?e.jsx(c,{value:s}):s;switch(a){case"text":default:l=e.jsx(ie,{value:u,overStyled:t});break}return e.jsx(O,{ref:i,overStyled:t,...d,children:l})});le.displayName="ReadOnlyField";const de=m.forwardRef(function({readOnly:s,readOnlyComponent:a,readOnlyType:n="text",readOnlyValue:t,activeComponent:r,overStyled:i,onLabelEditClick:l,...d},c){return s?a?e.jsx(O,{ref:c,...d,onLabelEditClick:l,overStyled:i,children:a}):e.jsx(le,{ref:c,type:n,value:t,onLabelEditClick:l,overStyled:i,...d}):e.jsx(O,{ref:c,...d,onLabelEditClick:l,overStyled:i,children:r})});de.displayName="WithReadOnlyWrapper";const Jo=o=>e.jsx("div",{...o,children:"Search"}),Qo=o=>e.jsx("div",{...o,children:"SegmentedControl"}),et=o=>e.jsx("div",{...o,children:"Slider"}),ot=o=>e.jsx("div",{...o,children:"Stepper"}),tt=o=>e.jsx("div",{...o,children:"Switch"}),rt=o=>e.jsx("div",{...o,children:"Table"}),st=o=>e.jsx("div",{...o,children:"Tabs"}),nt=o=>e.jsx("div",{...o,children:"TextArea"}),at="TextField-module__root___2ZYkG",ct="TextField-module__input___RL-My",it="TextField-module__section___bCIJ0",S={root:at,input:ct,section:it},$e=m.forwardRef(function({overStyled:s=!1,formLayout:a="stacked",labelSize:n,labelAlignment:t,labelOptionalText:r,labelWithEditIcon:i,onLabelEditClick:l,label:d,assistiveText:c,assistiveWithIcon:p,error:u,required:N,withAsterisk:_,id:x,className:b,style:C,disabled:f,readOnly:v,readOnlyComponent:g,value:k,defaultValue:W,...V},M){const q=y(V,s),P=q;delete P.size,delete P.variant,delete P.radius;const T={wrapper:S.root,input:S.input,section:S.section},E=P.classNames;if(E&&typeof E=="object"&&!Array.isArray(E)){const F=E;T.wrapper=F.wrapper?`${S.root} ${F.wrapper}`:S.root,T.input=F.input?`${S.input} ${F.input}`:S.input,T.section=F.section?`${S.section} ${F.section}`:S.section}return e.jsx(de,{className:b,style:C,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:s,formLayout:a,labelSize:n,labelAlignment:t,labelOptionalText:r,labelWithEditIcon:i,onLabelEditClick:l,label:d,assistiveText:c,assistiveWithIcon:p,error:u,required:N,withAsterisk:_,id:x,readOnly:v,readOnlyComponent:g,readOnlyType:"text",readOnlyValue:k!==void 0?k:W,activeComponent:e.jsx(j.Input,{ref:M,classNames:T,disabled:f,value:k,defaultValue:W,wrapperProps:{"data-disabled":f?"true":void 0,"data-error":u?"true":void 0},...q})})});$e.displayName="TextField";const lt=o=>e.jsx("div",{...o,children:"TimePicker"}),dt=o=>e.jsx("div",{...o,children:"Timeline"}),pt=o=>e.jsx("div",{...o,children:"Toast"}),_t=o=>e.jsx("div",{...o,children:"Tooltip"}),mt=o=>e.jsx("div",{...o,children:"TransferList"});exports.Accordion=U;exports.AccordionControl=K;exports.AccordionItem=ee;exports.AccordionPanel=Z;exports.Avatar=he;exports.Badge=be;exports.Breadcrumb=Ne;exports.Button=ye;exports.Card=H;exports.CardContent=se;exports.CardFooter=re;exports.CardHeader=te;exports.CardSection=oe;exports.Checkbox=ce;exports.CheckboxGroup=ae;exports.Chip=Ce;exports.DatePicker=Io;exports.Dropdown=So;exports.EmptyValueRenderer=G;exports.FileInput=Lo;exports.FileUpload=Bo;exports.HoverCard=zo;exports.Label=ne;exports.Layer=ve;exports.Link=Eo;exports.Loader=Oo;exports.Menu=Mo;exports.Modal=qo;exports.NumberInput=Do;exports.Pagination=Vo;exports.Panel=Go;exports.Popover=Ho;exports.Radio=Ko;exports.ReadOnlyField=le;exports.ReadOnlyTextField=ie;exports.RecursicaThemeProvider=Yo;exports.Search=Jo;exports.SegmentedControl=Qo;exports.Slider=et;exports.Stepper=ot;exports.Switch=tt;exports.Table=rt;exports.Tabs=st;exports.TextArea=nt;exports.TextField=$e;exports.TimePicker=lt;exports.Timeline=dt;exports.Toast=pt;exports.Tooltip=_t;exports.TransferList=mt;exports.WithReadOnlyWrapper=de;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),y=require("@mantine/core"),De=["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"],Ge=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),ye={"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 N(o,s){if(s)return o;const a={...o};for(const n of De)n in a&&delete a[n];for(const[n,r]of Object.entries(a))typeof r=="string"&&r.startsWith("rec-")&&Ge.has(n)&&r in ye&&(a[n]=ye[r]);return a}const qe="Accordion-module__root___Dem6d",Ve="Accordion-module__item___7ryVk",He="Accordion-module__noDivider___Ni2tT",Ke="Accordion-module__control___b4wgX",Ue="Accordion-module__label___Ss7uW",Ze="Accordion-module__chevron___i-HVZ",Ye="Accordion-module__iconLeftWrapper___5oLen",Xe="Accordion-module__panel___Wx50w",Je="Accordion-module__content___PEM9t",D={root:qe,item:Ve,noDivider:He,control:Ke,label:Ue,chevron:Ze,iconLeftWrapper:Ye,panel:Xe,content:Je},je=function({variant:s="unstyled",overStyled:a=!1,...n}){const r=N(n,a),t={root:D.root,item:D.item,control:D.control,label:D.label,chevron:D.chevron,panel:D.panel,content:D.content},i=r.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(c=>{t[c]?t[c]=`${t[c]} ${d[c]}`:t[c]=d[c]})}const l=r.className;return e.jsx(y.Accordion,{variant:s,className:l,classNames:t,...r})};je.displayName="Accordion";const le=m.forwardRef(function({title:s,leftIcon:a,divider:n=!0,children:r,overStyled:t=!1,...i},l){const d=N(i,t),c=d.className,p=[n?void 0:D.noDivider,c].filter(Boolean).join(" ")||void 0;return e.jsx(y.Accordion.Item,{ref:l,className:p,...d,children:s?e.jsxs(e.Fragment,{children:[e.jsx(re,{leftIcon:a,children:s}),e.jsx(se,{children:r})]}):r})});le.displayName="AccordionItem";const re=m.forwardRef(function({leftIcon:s,children:a,overStyled:n=!1,...r},t){const i=N(r,n),l=i.className;return e.jsx(y.Accordion.Control,{ref:t,className:l,icon:s?e.jsx("span",{className:D.iconLeftWrapper,"aria-hidden":!0,children:s}):void 0,...i,children:a})});re.displayName="AccordionControl";const se=m.forwardRef(function({overStyled:s=!1,...a},n){const r=N(a,s),t=r.className;return e.jsx(y.Accordion.Panel,{ref:n,className:t,...r})});se.displayName="AccordionPanel";const ne=je;ne.Item=le;ne.Control=re;ne.Panel=se;const Qe="Avatar-module__root___fXu-J",eo="Avatar-module__iconWrapper___ojly2",oo="Avatar-module__textWrapper___zp-jD",to="Avatar-module__image___ieqGp",ro="Avatar-module__placeholder___IDW7-",L={root:Qe,iconWrapper:eo,textWrapper:oo,image:to,placeholder:ro},ve=m.forwardRef(function({size:s="default",variant:a="solid",icon:n,className:r,classNames:t,children:i,style:l,src:d,...c},p){const _={solid:"filled",outline:"outline",ghost:"transparent"},f={default:"md",small:"sm",large:"lg"};let u="text";d?u="image":n&&(u="icon");const h={root:L.root,image:L.image,placeholder:L.placeholder};if(t&&typeof t=="object"&&!Array.isArray(t)){const b=t;h.root=b.root?`${L.root} ${b.root}`:L.root,h.image=b.image?`${L.image} ${b.image}`:L.image,h.placeholder=b.placeholder?`${L.placeholder} ${b.placeholder}`:L.placeholder}return e.jsx(y.Avatar,{ref:p,className:r,classNames:h,variant:_[a],size:f[s],style:l,src:d,"data-variant":a,"data-size":s,"data-style":u,...c,children:n!=null?e.jsx("span",{className:L.iconWrapper,"aria-hidden":!0,children:n}):i!=null?e.jsx("span",{className:L.textWrapper,children:i}):void 0})});ve.displayName="Avatar";const so="Badge-module__root___5osNT",O={root:so},we=m.forwardRef(function({variant:s="primary-color",overStyled:a=!1,...n},r){const t=N(n,a),i={root:O.root,section:O.section,label:O.label},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;i.root=p.root?`${O.root} ${p.root}`:O.root,i.section=p.section??O.section,i.label=p.label??O.label}const d=t.className,c=d?`${O.root} ${d}`:O.root;return e.jsx(y.Badge,{ref:r,variant:"filled","data-variant":s,...t,className:c,classNames:i})});we.displayName="Badge";const no="Breadcrumb-module__root___x-9ln",ao="Breadcrumb-module__separator___qrUX-",q={root:no,separator:ao},ge=m.forwardRef(function({overStyled:s=!1,separator:a=">",...n},r){const t=N({separator:a,...n},s),i={root:q.root,separator:q.separator},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;i.root=p.root?`${q.root} ${p.root}`:q.root,i.separator=p.separator?`${q.separator} ${p.separator}`:q.separator}const d=t.className,c=d?`${q.root} ${d}`:q.root;return e.jsx(y.Breadcrumbs,{ref:r,...t,className:c,classNames:i})});ge.displayName="Breadcrumb";const co="Button-module__root___Q2R8-",io="Button-module__label___UJ3Zt",lo="Button-module__labelText___rFV5p",po="Button-module__iconWrapper___uEKPa",_o="Button-module__section___f2mKr",B={root:co,label:io,labelText:lo,iconWrapper:po,section:_o};function mo(o){return o==null||o===""?!1:typeof o=="string"?o.trim()!=="":!0}const Pe=m.forwardRef(function({variant:s="solid",size:a="default",icon:n,children:r,overStyled:t=!1,...i},l){const d={solid:"filled",outline:"outline",text:"subtle"},c={default:"md",small:"sm"},p=N(i,t),_=p;delete _.fullWidth;const f=!!n||!!_.leftSection,u=!!_.rightSection,h=(f||u)&&!mo(r);typeof process<"u"&&process.env.NODE_ENV!=="production"&&h&&!_["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const b={root:B.root,section:B.section,label:B.label},v=_.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const g=v;b.root=g.root?`${B.root} ${g.root}`:B.root,b.section=g.section??B.section,b.label=g.label??B.label}const x=_.className,C=x?`${B.root} ${x}`:B.root;return e.jsx(y.Button,{ref:l,className:C,classNames:b,variant:d[s],size:c[a],leftSection:n!=null?e.jsx("span",{className:B.iconWrapper,"aria-hidden":!0,children:n}):void 0,"data-variant":s,"data-size":a,...h?{"data-icon-only":""}:{},...p,children:e.jsx("span",{className:B.labelText,children:r})})});Pe.displayName="Button";const uo="Card-module__root___c9KvZ",fo="Card-module__header___PTXf2",xo="Card-module__footer___Mu-JC",ho="Card-module__section___BRT8H",No="Card-module__content___oFIQa",G={root:uo,header:fo,footer:xo,section:ho,content:No},Ae=m.forwardRef(function({overStyled:s=!1,...a},n){const r=N(a,s),t={root:G.root},i=r.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(c=>{t[c]?t[c]=`${t[c]} ${d[c]}`:t[c]=d[c]})}const l=r.className;return e.jsx(y.Card,{ref:n,className:l,classNames:t,...r})});Ae.displayName="Card";const de=m.forwardRef(function({overStyled:s=!1,...a},n){const r=N(a,s),t=r.className;return e.jsx(y.Card.Section,{ref:n,className:t?`${G.section} ${t}`:G.section,...r})});de.displayName="CardSection";const pe=m.forwardRef(function({overStyled:s=!1,...a},n){const r=N(a,s),t=r.className;return e.jsx(y.Card.Section,{ref:n,className:t?`${G.header} ${t}`:G.header,...r})});pe.displayName="CardHeader";const _e=m.forwardRef(function({overStyled:s=!1,...a},n){const r=N(a,s),t=r.className;return e.jsx(y.Card.Section,{ref:n,className:t?`${G.footer} ${t}`:G.footer,...r})});_e.displayName="CardFooter";const me=m.forwardRef(function({overStyled:s=!1,...a},n){const r=N(a,s),t=r.className;return e.jsx("div",{ref:n,className:t?`${G.content} ${t}`:G.content,...r})});me.displayName="CardContent";const oe=Ae;oe.Section=de;oe.Header=pe;oe.Footer=_e;oe.Content=me;const bo="Label-module__root___e6HXZ",yo="Label-module__labelText___rieFR",$o="Label-module__required___Ggrzc",Co="Label-module__optionalText___Y2yun",jo="Label-module__actionAreaWrapper___ELoZK",vo="Label-module__editIconWrapper___NG2xW",F={root:bo,labelText:yo,required:$o,optionalText:Co,actionAreaWrapper:jo,editIconWrapper:vo},ue=m.forwardRef(function({formLayout:s="stacked",labelSize:a="default",labelAlignment:n,required:r=!1,labelOptionalText:t,labelWithEditIcon:i,labelActionArea:l,onLabelEditClick:d,children:c,overStyled:p=!1,..._},f){const u=n||(s==="side-by-side"?"right":"left");let h;r||(t===!0?h="optional":t&&(h=t));const b=N(_,p),v=b,x={label:F.root,required:F.required},C=v.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const P=C;x.label=P.label?`${F.root} ${P.label}`:F.root,x.required=P.required?`${F.required} ${P.required}`:F.required}const g=v.className,R=g?`${F.root} ${g}`:F.root;return e.jsxs(y.Input.Label,{ref:f,className:R,classNames:x,"data-layout":s,"data-size":a,"data-alignment":u,required:r&&!i,...b,children:[e.jsx("span",{className:F.labelText,children:c}),h&&e.jsx("span",{className:F.optionalText,children:typeof h=="string"?`(${h})`:h}),l?e.jsx("span",{className:F.actionAreaWrapper,children:l}):i?e.jsx("button",{type:"button",className:F.editIconWrapper,"data-replaces-asterisk":r?"true":void 0,onClick:d,"aria-label":"Edit",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});ue.displayName="Label";const wo="AssistiveElement-module__root___WhQ43",go="AssistiveElement-module__textWrapper___sfy5E",Po="AssistiveElement-module__iconWrapper___gObRF",ae={root:wo,textWrapper:go,iconWrapper:Po},Ao=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4"}),e.jsx("path",{d:"M12 8h.01"})]}),Ro=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),e.jsx("path",{d:"M12 9v4"}),e.jsx("path",{d:"M12 17h.01"})]}),ie=m.forwardRef(function({assistiveVariant:s="help",assistiveWithIcon:a=!0,children:n,className:r,overStyled:t=!1,...i},l){const c=N(i,t),p=ae.root,_=r?`${p} ${r}`:p,f=s==="error"?Ro:Ao;return e.jsxs("div",{ref:l,className:_,"data-variant":s,style:c.style,...c,children:[a&&e.jsx("span",{className:ae.iconWrapper,children:e.jsx(f,{})}),e.jsx("span",{className:ae.textWrapper,children:n})]})});ie.displayName="AssistiveElement";const Wo="FormControlWrapper-module__root___c-UHo",ko="FormControlWrapper-module__labelSection___hxSY4",To="FormControlWrapper-module__inputSection___HenXk",ce={root:Wo,labelSection:ko,inputSection:To},V=m.forwardRef(function({formLayout:s,labelSize:a,labelAlignment:n,labelOptionalText:r,labelWithEditIcon:t,labelActionArea:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:_=!0,controlMaxWidth:f,controlMinWidth:u,error:h,required:b,withAsterisk:v,id:x,children:C,className:g,overStyled:R=!1,labelElement:P,...z},E){const I=m.useId(),w=x||`recursica-fc-${I}`,W=p||c,A=W?`${w}-assistive`:void 0,j=h?`${w}-error`:void 0,Z=N(z,R),S=g||Z.className,be=ce.root,Oe=S?`${be} ${S}`:be,Me=m.isValidElement(C)?m.cloneElement(C,{...W&&!C.props["aria-describedby"]?{"aria-describedby":A}:{},...h&&!C.props["aria-errormessage"]?{"aria-errormessage":j}:{}}):C;return e.jsxs(y.Box,{ref:E,className:Oe,"data-form-layout":s||"stacked","data-form-alignment":n||"left",style:{...Z.style||{},...f?{"--form-control-max-width":f}:{},...u?{"--form-control-min-width":u}:{}},...Z,children:[d&&e.jsx("div",{className:ce.labelSection,children:e.jsx(ue,{id:w,formLayout:s,labelSize:a,labelAlignment:n,labelOptionalText:r,labelWithEditIcon:t,labelActionArea:i,onLabelEditClick:l,required:v??b,...P==="div"?{as:"div"}:{},children:d})}),e.jsxs("div",{className:ce.inputSection,children:[Me,h&&e.jsx(ie,{id:j,assistiveVariant:"error",assistiveWithIcon:_,children:h}),!h&&W&&e.jsx(ie,{id:A,assistiveVariant:"help",assistiveWithIcon:_,children:W})]})]})});V.displayName="FormControlWrapper";const So="Checkbox-module__groupRoot___cBS0o",Fo="Checkbox-module__root___mY3qk",zo="Checkbox-module__body___5yC7q",Io="Checkbox-module__inner___rTke4",Lo="Checkbox-module__input___2kt-h",Bo="Checkbox-module__icon___-O7i6",Eo="Checkbox-module__labelWrapper___GpZkr",Oo="Checkbox-module__label___cwRtI",$={groupRoot:So,root:Fo,body:zo,inner:Io,input:Lo,icon:Bo,labelWrapper:Eo,label:Oo},fe=m.forwardRef(function({overStyled:s=!1,formLayout:a="stacked",labelSize:n,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:_,error:f,required:u,withAsterisk:h,id:b,className:v,style:x,children:C,readOnly:g,readOnlyComponent:R,...P},z){const E=N(P,s),I=E;return delete I.size,g&&R?e.jsx(V,{className:v,style:x,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:a,labelSize:n,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:_,error:f,required:u,withAsterisk:h,id:b,children:R}):e.jsx(V,{className:v,style:x,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:s,labelElement:"div",formLayout:a,labelSize:n,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:i,onLabelEditClick:l,label:d,description:c,assistiveText:p,assistiveWithIcon:_,error:f,required:u,withAsterisk:h,id:b,children:e.jsx(y.Checkbox.Group,{ref:z,...E,children:e.jsx("div",{className:$.groupRoot,"data-layout":a,children:m.Children.map(C,w=>m.isValidElement(w)?m.cloneElement(w,{disabled:g||w.props.disabled}):w)})})})});fe.displayName="CheckboxGroup";const xe=m.forwardRef(function({overStyled:s=!1,readOnly:a,readOnlyComponent:n,disabled:r,...t},i){const l=N(t,s),d=l;if(delete d.size,delete d.color,delete d.radius,delete d.variant,delete d.iconColor,a&&n)return e.jsx(V,{overStyled:s,...l,children:n});const c={root:$.root,body:$.body,inner:$.inner,input:$.input,icon:$.icon,labelWrapper:$.labelWrapper,label:$.label},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const u=p;c.root=u.root?`${$.root} ${u.root}`:$.root,c.body=u.body?`${$.body} ${u.body}`:$.body,c.inner=u.inner?`${$.inner} ${u.inner}`:$.inner,c.input=u.input?`${$.input} ${u.input}`:$.input,c.icon=u.icon?`${$.icon} ${u.icon}`:$.icon,c.labelWrapper=u.labelWrapper?`${$.labelWrapper} ${u.labelWrapper}`:$.labelWrapper,c.label=u.label?`${$.label} ${u.label}`:$.label}const _=d.className,f=_?`${$.root} ${_}`:$.root;return e.jsx(y.Checkbox,{ref:i,className:f,classNames:c,disabled:a||r,...l})});xe.displayName="Checkbox";xe.Group=fe;const Mo="Chip-module__root___f5pFk",Do="Chip-module__label___Ov9pg",Go="Chip-module__mantineIconWrapper___KLSz6",qo="Chip-module__innerWrapper___EnrTF",Vo="Chip-module__children___zbRAR",Ho="Chip-module__leadingIcon___JBtjQ",Ko="Chip-module__removeIcon___pVju-",k={root:Mo,label:Do,mantineIconWrapper:Go,innerWrapper:qo,children:Vo,leadingIcon:Ho,removeIcon:Ko};function Uo(o){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...o,children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Re=m.forwardRef(function({error:s=!1,icon:a,onRemove:n,removeLabel:r="Remove",children:t,overStyled:i=!1,...l},d){const c=N(l,i),p=c,_={root:k.root,label:k.label,input:k.input,iconWrapper:k.mantineIconWrapper,checkIcon:k.checkIcon},f=p.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const x=f;_.root=x.root?`${k.root} ${x.root}`:k.root,_.label=x.label?`${k.label} ${x.label}`:k.label}const u=p.className,h=u?`${k.root} ${u}`:k.root,b=s?"":void 0,v=!t&&(!!a||!!n);return e.jsx(y.Chip,{ref:d,className:h,classNames:_,...b!==void 0?{"data-error":""}:{},...v?{"data-icon-only":""}:{},...c,children:e.jsxs("span",{className:k.innerWrapper,children:[a&&e.jsx("span",{className:k.leadingIcon,"aria-hidden":!0,children:a}),e.jsx("span",{className:k.children,children:t}),n&&e.jsx("span",{role:"button",className:k.removeIcon,onClick:x=>{x.preventDefault(),x.stopPropagation(),n(x)},"aria-label":r,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),n(x))},tabIndex:0,children:e.jsx(Uo,{})})]})})});Re.displayName="Chip";const Zo="Container-module__root___UVssr",Y={root:Zo},We=m.forwardRef(function({children:s,overStyled:a=!1,...n},r){const t=N(n,a),i=t,l={root:Y.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const _=d;l.root=_.root?`${Y.root} ${_.root}`:Y.root}const c=i.className,p=c?`${Y.root} ${c}`:Y.root;return e.jsx(y.Container,{ref:r,className:p,classNames:l,...t,children:s})});We.displayName="Container";const Yo=o=>e.jsx("div",{...o,children:"DatePicker"}),Xo="_root_1qhn7_3",Jo="_contents_1qhn7_18",H={root:Xo,contents:Jo},ke=m.forwardRef(function({layer:o,contentsOnly:s,children:a,className:n,style:r,...t},i){const l=s?n?`${H.root} ${H.contents} ${n}`:`${H.root} ${H.contents}`:n?`${H.root} ${n}`:H.root;return e.jsx("div",{ref:i,className:l,style:r,...s?{}:{"data-recursica-layer":String(o)},...t,children:a})});ke.displayName="Layer";const ee=({emptyText:o="N/A"})=>e.jsx(m.Fragment,{children:o});ee.displayName="EmptyValueRenderer";ee.check=o=>o==null||o===""||Array.isArray(o)&&o.length===0;const $e="data-recursica-theme";function Qo({children:o,theme:s="light"}){return m.useEffect(()=>{const a=document.documentElement;return a.setAttribute($e,s),()=>{a.removeAttribute($e)}},[s]),e.jsx(e.Fragment,{children:o})}const et="ReadOnlyField-module__textField___qKn25",Ce={textField:et},he=({value:o,overStyled:s=!1,...a})=>{const n=N(a,s),r=n.className;return e.jsx(y.Box,{component:"p",className:r?`${Ce.textField} ${r}`:Ce.textField,...n,children:o!=null?m.isValidElement(o)?o:String(o):""})};he.displayName="ReadOnlyTextField";const Ne=m.forwardRef(function({value:s,type:a="text",emptyValueComponent:n,overStyled:r=!1,...t},i){let l=null;const d=N(t,r),c=n||ee,_=(c.check?c.check(s):ee.check(s))?e.jsx(c,{value:s}):s;switch(a){case"text":default:l=e.jsx(he,{value:_,overStyled:r});break}return e.jsx(V,{ref:i,overStyled:r,...d,children:l})});Ne.displayName="ReadOnlyField";const te=m.forwardRef(function({readOnly:s,readOnlyComponent:a,readOnlyType:n="text",readOnlyValue:r,activeComponent:t,overStyled:i,onLabelEditClick:l,...d},c){return s?a?e.jsx(V,{ref:c,...d,onLabelEditClick:l,overStyled:i,children:a}):e.jsx(Ne,{ref:c,type:n,value:r,onLabelEditClick:l,overStyled:i,...d}):e.jsx(V,{ref:c,...d,onLabelEditClick:l,overStyled:i,children:t})});te.displayName="WithReadOnlyWrapper";const ot="Dropdown-module__root___uVyL0",tt="Dropdown-module__input___dK4dN",rt="Dropdown-module__section___j3MRB",st="Dropdown-module__dropdown___gG-Sw",nt="Dropdown-module__option___nAGU-",T={root:ot,input:tt,section:rt,dropdown:st,option:nt},Te=m.forwardRef(function({overStyled:s=!1,formLayout:a="stacked",containerWidth:n,labelSize:r,labelAlignment:t,labelOptionalText:i,labelWithEditIcon:l,onLabelEditClick:d,label:c,assistiveText:p,assistiveWithIcon:_,error:f,required:u,withAsterisk:h,id:b,className:v,style:x,disabled:C,readOnly:g,readOnlyComponent:R,value:P,defaultValue:z,data:E,...I},w){const W=N(I,s),A=W;delete A.size,delete A.variant,delete A.radius;const j={wrapper:T.root,input:T.input,section:T.section,dropdown:T.dropdown,option:T.option},U=A.classNames;if(U&&typeof U=="object"&&!Array.isArray(U)){const S=U;j.wrapper=S.wrapper?`${T.root} ${S.wrapper}`:T.root,j.input=S.input?`${T.input} ${S.input}`:T.input,j.section=S.section?`${T.section} ${S.section}`:T.section,j.dropdown=S.dropdown?`${T.dropdown} ${S.dropdown}`:T.dropdown,j.option=S.option?`${T.option} ${S.option}`:T.option}const Z={...x||{},width:n||"100%"};return e.jsx(te,{className:v,style:Z,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:s,formLayout:a,labelSize:r,labelAlignment:t,labelOptionalText:i,labelWithEditIcon:l,onLabelEditClick:d,label:c,assistiveText:p,assistiveWithIcon:_,error:f,required:u,withAsterisk:h,id:b,readOnly:g,readOnlyComponent:R,readOnlyType:"text",readOnlyValue:P!==void 0?String(P):z?String(z):void 0,activeComponent:e.jsx(y.Select,{ref:w,classNames:j,disabled:C,value:P,defaultValue:z,data:E||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":C?"true":void 0,"data-error":f?"true":void 0},...W})})});Te.displayName="Dropdown";const at=o=>e.jsx("div",{...o,children:"FileInput"}),ct=o=>e.jsx("div",{...o,children:"FileUpload"}),it="Flex-module__root___yYser",X={root:it},Se=m.forwardRef(function({children:s,overStyled:a=!1,gap:n="rec-default",...r},t){const i=N({...r,gap:n},a),l=i,d={root:X.root},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const f=c;d.root=f.root?`${X.root} ${f.root}`:X.root}const p=l.className,_=p?`${X.root} ${p}`:X.root;return e.jsx(y.Flex,{ref:t,className:_,classNames:d,...i,children:s})});Se.displayName="Flex";const lt="Group-module__root___ftO64",J={root:lt},Fe=m.forwardRef(function({children:s,overStyled:a=!1,gap:n="rec-default",...r},t){const i=N({...r,gap:n},a),l=i,d={root:J.root},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const f=c;d.root=f.root?`${J.root} ${f.root}`:J.root}const p=l.className,_=p?`${J.root} ${p}`:J.root;return e.jsx(y.Group,{ref:t,className:_,classNames:d,...i,children:s})});Fe.displayName="Group";const dt=o=>e.jsx("div",{...o,children:"HoverCard"}),pt=o=>e.jsx("div",{...o,children:"Link"}),_t=o=>e.jsx("div",{...o,children:"Loader"}),mt=o=>e.jsx("div",{...o,children:"Menu"}),ut=o=>e.jsx("div",{...o,children:"Modal"}),ft=o=>e.jsx("div",{...o,children:"NumberInput"}),xt=o=>e.jsx("div",{...o,children:"Pagination"}),ht=o=>e.jsx("div",{...o,children:"Panel"}),Nt=o=>e.jsx("div",{...o,children:"Popover"}),bt=o=>e.jsx("div",{...o,children:"Radio"}),yt=o=>e.jsx("div",{...o,children:"Search"}),$t=o=>e.jsx("div",{...o,children:"SegmentedControl"}),Ct=o=>e.jsx("div",{...o,children:"Slider"}),jt="Stack-module__root___NUN-x",Q={root:jt},ze=m.forwardRef(function({children:s,overStyled:a=!1,gap:n="rec-default",...r},t){const i=N({...r,gap:n},a),l=i,d={root:Q.root},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const f=c;d.root=f.root?`${Q.root} ${f.root}`:Q.root}const p=l.className,_=p?`${Q.root} ${p}`:Q.root;return e.jsx(y.Stack,{ref:t,className:_,classNames:d,...i,children:s})});ze.displayName="Stack";const vt=o=>e.jsx("div",{...o,children:"Stepper"}),wt=o=>e.jsx("div",{...o,children:"Switch"}),gt=o=>e.jsx("div",{...o,children:"Table"}),Pt=o=>e.jsx("div",{...o,children:"Tabs"}),Ie=m.forwardRef(function({overStyled:s=!1,variant:a="body",...n},r){const t=N(n,s),i=t.className,l=`recursica_brand_typography_${a}`,d=i?`${l} ${i}`:l;return e.jsx(y.Text,{ref:r,className:d,...t})});Ie.displayName="Text";const At="TextArea-module__root___3dyeu",Rt="TextArea-module__input___8l36v",K={root:At,input:Rt},Le=m.forwardRef(function({overStyled:s=!1,formLayout:a="stacked",labelSize:n,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:i,onLabelEditClick:l,label:d,assistiveText:c,assistiveWithIcon:p,error:_,required:f,withAsterisk:u,id:h,className:b,style:v,disabled:x,readOnly:C,readOnlyComponent:g,value:R,defaultValue:P,...z},E){const I=N(z,s),w=I;delete w.size,delete w.variant,delete w.radius;const W={wrapper:K.root,input:K.input},A=w.classNames;if(A&&typeof A=="object"&&!Array.isArray(A)){const j=A;W.wrapper=j.wrapper?`${K.root} ${j.wrapper}`:K.root,W.input=j.input?`${K.input} ${j.input}`:K.input}return e.jsx(te,{className:b,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:s,formLayout:a,labelSize:n,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:i,onLabelEditClick:l,label:d,assistiveText:c,assistiveWithIcon:p,error:_,required:f,withAsterisk:u,id:h,readOnly:C,readOnlyComponent:g,readOnlyType:"text",readOnlyValue:R!==void 0?R:P,activeComponent:e.jsx(y.Textarea,{ref:E,classNames:W,disabled:x,value:R,defaultValue:P,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":x?"true":void 0,"data-error":_?"true":void 0},...I})})});Le.displayName="TextArea";const Wt="TextField-module__root___2ZYkG",kt="TextField-module__input___RL-My",Tt="TextField-module__section___bCIJ0",M={root:Wt,input:kt,section:Tt},Be=m.forwardRef(function({overStyled:s=!1,formLayout:a="stacked",labelSize:n,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:i,onLabelEditClick:l,label:d,assistiveText:c,assistiveWithIcon:p,error:_,required:f,withAsterisk:u,id:h,className:b,style:v,disabled:x,readOnly:C,readOnlyComponent:g,value:R,defaultValue:P,...z},E){const I=N(z,s),w=I;delete w.size,delete w.variant,delete w.radius;const W={wrapper:M.root,input:M.input,section:M.section},A=w.classNames;if(A&&typeof A=="object"&&!Array.isArray(A)){const j=A;W.wrapper=j.wrapper?`${M.root} ${j.wrapper}`:M.root,W.input=j.input?`${M.input} ${j.input}`:M.input,W.section=j.section?`${M.section} ${j.section}`:M.section}return e.jsx(te,{className:b,style:v,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:s,formLayout:a,labelSize:n,labelAlignment:r,labelOptionalText:t,labelWithEditIcon:i,onLabelEditClick:l,label:d,assistiveText:c,assistiveWithIcon:p,error:_,required:f,withAsterisk:u,id:h,readOnly:C,readOnlyComponent:g,readOnlyType:"text",readOnlyValue:R!==void 0?R:P,activeComponent:e.jsx(y.Input,{ref:E,classNames:W,disabled:x,value:R,defaultValue:P,wrapperProps:{"data-disabled":x?"true":void 0,"data-error":_?"true":void 0},...I})})});Be.displayName="TextField";const St=o=>e.jsx("div",{...o,children:"TimePicker"}),Ft=o=>e.jsx("div",{...o,children:"Timeline"}),Ee=m.forwardRef(function({overStyled:s=!1,order:a=1,...n},r){const t=N(n,s),i=t.className,l=`recursica_brand_typography_h${a}`,d=i?`${l} ${i}`:l;return e.jsx(y.Title,{ref:r,order:a,className:d,...t})});Ee.displayName="Title";const zt=o=>e.jsx("div",{...o,children:"Toast"}),It=o=>e.jsx("div",{...o,children:"Tooltip"}),Lt=o=>e.jsx("div",{...o,children:"TransferList"});exports.Accordion=ne;exports.AccordionControl=re;exports.AccordionItem=le;exports.AccordionPanel=se;exports.Avatar=ve;exports.Badge=we;exports.Breadcrumb=ge;exports.Button=Pe;exports.Card=oe;exports.CardContent=me;exports.CardFooter=_e;exports.CardHeader=pe;exports.CardSection=de;exports.Checkbox=xe;exports.CheckboxGroup=fe;exports.Chip=Re;exports.Container=We;exports.DatePicker=Yo;exports.Dropdown=Te;exports.EmptyValueRenderer=ee;exports.FileInput=at;exports.FileUpload=ct;exports.Flex=Se;exports.Group=Fe;exports.HoverCard=dt;exports.Label=ue;exports.Layer=ke;exports.Link=pt;exports.Loader=_t;exports.Menu=mt;exports.Modal=ut;exports.NumberInput=ft;exports.Pagination=xt;exports.Panel=ht;exports.Popover=Nt;exports.Radio=bt;exports.ReadOnlyField=Ne;exports.ReadOnlyTextField=he;exports.RecursicaThemeProvider=Qo;exports.Search=yt;exports.SegmentedControl=$t;exports.Slider=Ct;exports.Stack=ze;exports.Stepper=vt;exports.Switch=wt;exports.Table=gt;exports.Tabs=Pt;exports.Text=Ie;exports.TextArea=Le;exports.TextField=Be;exports.TimePicker=St;exports.Timeline=Ft;exports.Title=Ee;exports.Toast=zt;exports.Tooltip=It;exports.TransferList=Lt;exports.WithReadOnlyWrapper=te;
2
2
  //# sourceMappingURL=mantine-adapter.cjs.map