@agregio-solutions/design-system 1.90.1 → 1.91.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.
@@ -689,6 +689,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
689
689
  background: var(--color-content-neutral-primary-reversed);
690
690
  box-shadow: 10px 10px 24px 0 rgba(0, 0, 0, 0.05);
691
691
  list-style: none;
692
+
693
+ &[data-tall="true"] {
694
+ max-height: 400px;
695
+ }
692
696
  `,Xk=P.div`
693
697
  ${zo}
694
698
  `,ys=P(oe)`
@@ -849,7 +853,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
849
853
  width: calc(20px - var(--spacing-xxs));
850
854
  height: calc(20px - var(--spacing-xxs));
851
855
  }
852
- `,Qh=l.forwardRef(({label:e,hideLabel:t,disabled:n,defaultSelected:r,isIndeterminate:a,isSelected:o,onChange:i,readOnly:u,value:s,required:d,...f},p)=>c.jsx(eS,{...f,ref:p,"aria-label":t?e:void 0,isDisabled:n,defaultSelected:r,isIndeterminate:a,isSelected:o,onChange:i,isReadOnly:u,value:s,isRequired:d,"data-hide-label":t,"data-design-system-component":"Checkbox",children:c.jsxs(Vi,{children:[c.jsx(tS,{"data-hide-label":t,children:c.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{className:"checkbox-svg-square",d:"M0.5 2.0437C0.5 1.21527 1.17157 0.543701 2 0.543701H14C14.8284 0.543701 15.5 1.21527 15.5 2.0437V14.0437C15.5 14.8721 14.8284 15.5437 14 15.5437H2C1.17157 15.5437 0.5 14.8721 0.5 14.0437V2.0437Z"}),c.jsx("path",{className:"checkbox-svg-checkmark",d:"M5.86331 10.6271L3.54998 8.31372C3.28998 8.05372 2.86998 8.05372 2.60998 8.31372C2.34998 8.57372 2.34998 8.99372 2.60998 9.25372L5.39665 12.0404C5.65665 12.3004 6.07664 12.3004 6.33664 12.0404L13.39 4.98705C13.65 4.72705 13.65 4.30705 13.39 4.04705C13.13 3.78705 12.71 3.78705 12.45 4.04705L5.86331 10.6271Z"}),c.jsx("path",{className:"checkbox-svg-indeterminate",d:"M4.66667 7.37701H11.3333C11.7 7.37701 12 7.67701 12 8.04368C12 8.41035 11.7 8.71035 11.3333 8.71035H4.66667C4.3 8.71035 4 8.41035 4 8.04368C4 7.67701 4.3 7.37701 4.66667 7.37701Z",fill:"white"})]})}),t?"":e]})})),sl=l.forwardRef(({text:e,iconLeft:t,iconRight:n,selected:r,disabled:a,isMultipleSelection:o,...i},u)=>c.jsxs(Jk,{...i,ref:u,"data-selected":!!r,"data-disabled":a,children:[o&&c.jsx(Qh,{label:`item ${e} ${r?"selected":"not selected"}`,hideLabel:!0,isSelected:r,readOnly:!0,disabled:a}),!!t&&c.jsx(ys,{name:t}),!!e&&c.jsx(Qk,{"aria-label":`DropdownItem ${e}`,children:e}),!!n&&c.jsx(ys,{name:n})]})),em=l.forwardRef(({items:e,children:t,...n},r)=>c.jsxs(Xk,{...n,ref:r,children:[e?.map(a=>c.jsx(sl,{...a},a.text)),t]}));function Lr({text:e,id:t,iconRight:n,iconLeft:r,isSelected:a,href:o,routerOptions:i,className:u,selectionMode:s,...d}){return c.jsx(s8,{...d,textValue:e,id:t,style:{outline:"none",textDecoration:"none"},href:o,routerOptions:i,className:u,children:f=>c.jsx(sl,{text:e,disabled:f.isDisabled,selected:a??f.isSelected,"data-hovered":f.isHovered,"data-pressed":f.isPressed,"data-focused":f.isFocused,"data-focus-visible":f.isFocusVisible,iconLeft:r,iconRight:n,isMultipleSelection:s==="multiple"||f.selectionMode==="multiple"})})}const nS=P.ol`
856
+ `,Qh=l.forwardRef(({label:e,hideLabel:t,disabled:n,defaultSelected:r,isIndeterminate:a,isSelected:o,onChange:i,readOnly:u,value:s,required:d,...f},p)=>c.jsx(eS,{...f,ref:p,"aria-label":t?e:void 0,isDisabled:n,defaultSelected:r,isIndeterminate:a,isSelected:o,onChange:i,isReadOnly:u,value:s,isRequired:d,"data-hide-label":t,"data-design-system-component":"Checkbox",children:c.jsxs(Vi,{children:[c.jsx(tS,{"data-hide-label":t,children:c.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("path",{className:"checkbox-svg-square",d:"M0.5 2.0437C0.5 1.21527 1.17157 0.543701 2 0.543701H14C14.8284 0.543701 15.5 1.21527 15.5 2.0437V14.0437C15.5 14.8721 14.8284 15.5437 14 15.5437H2C1.17157 15.5437 0.5 14.8721 0.5 14.0437V2.0437Z"}),c.jsx("path",{className:"checkbox-svg-checkmark",d:"M5.86331 10.6271L3.54998 8.31372C3.28998 8.05372 2.86998 8.05372 2.60998 8.31372C2.34998 8.57372 2.34998 8.99372 2.60998 9.25372L5.39665 12.0404C5.65665 12.3004 6.07664 12.3004 6.33664 12.0404L13.39 4.98705C13.65 4.72705 13.65 4.30705 13.39 4.04705C13.13 3.78705 12.71 3.78705 12.45 4.04705L5.86331 10.6271Z"}),c.jsx("path",{className:"checkbox-svg-indeterminate",d:"M4.66667 7.37701H11.3333C11.7 7.37701 12 7.67701 12 8.04368C12 8.41035 11.7 8.71035 11.3333 8.71035H4.66667C4.3 8.71035 4 8.41035 4 8.04368C4 7.67701 4.3 7.37701 4.66667 7.37701Z",fill:"white"})]})}),t?"":e]})})),sl=l.forwardRef(({text:e,iconLeft:t,iconRight:n,selected:r,disabled:a,isMultipleSelection:o,...i},u)=>c.jsxs(Jk,{...i,ref:u,"data-selected":!!r,"data-disabled":a,children:[o&&c.jsx(Qh,{label:`item ${e} ${r?"selected":"not selected"}`,hideLabel:!0,isSelected:r,readOnly:!0,disabled:a}),!!t&&c.jsx(ys,{name:t}),!!e&&c.jsx(Qk,{"aria-label":`DropdownItem ${e}`,children:e}),!!n&&c.jsx(ys,{name:n})]})),em=l.forwardRef(({items:e,children:t,tallDropdown:n,...r},a)=>c.jsxs(Xk,{...r,ref:a,"data-tall":n||void 0,children:[e?.map(o=>c.jsx(sl,{...o},o.text)),t]}));function Lr({text:e,id:t,iconRight:n,iconLeft:r,isSelected:a,href:o,routerOptions:i,className:u,selectionMode:s,...d}){return c.jsx(s8,{...d,textValue:e,id:t,style:{outline:"none",textDecoration:"none"},href:o,routerOptions:i,className:u,children:f=>c.jsx(sl,{text:e,disabled:f.isDisabled,selected:a??f.isSelected,"data-hovered":f.isHovered,"data-pressed":f.isPressed,"data-focused":f.isFocused,"data-focus-visible":f.isFocusVisible,iconLeft:r,iconRight:n,isMultipleSelection:s==="multiple"||f.selectionMode==="multiple"})})}const nS=P.ol`
853
857
  display: flex;
854
858
  flex-wrap: wrap;
855
859
  align-items: center;
@@ -1467,7 +1471,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1467
1471
  --color: var(--color-content-neutral-secondary);
1468
1472
  --placeholder-color: var(--color-content-neutral-tertiary);
1469
1473
  }
1470
- `,qS=l.forwardRef((e,t)=>{const n=e["aria-label"]??String(e.label),r=sr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),a={...e.wrapperProps,htmlForId:e.id,label:e.label,labelIconRight:e.labelIconRight,labelIconRightTooltip:e.labelIconRightTooltip,description:e.description,helperTextIcon:e.helperTextIcon,helperText:e.helperText,errorHelperText:e.errorHelperText,errorHelperTextIcon:e.errorHelperTextIcon,successHelperText:e.successHelperText,successHelperTextIcon:e.successHelperTextIcon,warningHelperText:e.warningHelperText,warningHelperTextIcon:e.warningHelperTextIcon,orientation:e.orientation,required:e.required};return c.jsx(Kt,{...a,children:c.jsxs(ZS,{id:e.id,isDisabled:e.disabled,isRequired:e.required,onSelectionChange:o=>e.onChange?.(String(o||"")),selectedKey:e.value,disabledKeys:e.disabledIds,"data-fullwidth":e.fullWidth,"aria-label":n,defaultFilter:e.defaultFilter,inputValue:e.inputValue,defaultInputValue:e.defaultInputValue,onInputChange:e.onInputChange,items:e.items,defaultItems:e.defaultItems,children:[c.jsxs(_S,{children:[c.jsx(lm,{...e.inputProps,placeholder:e.placeholder||e.inputProps?.placeholder,ref:t,"data-nature":r,"data-fullwidth":e.fullWidth,hasIcon:!0}),c.jsx(US,{iconLeft:"expand_more",mode:"tertiary"})]}),c.jsx(WS,{offset:4,placement:"bottom",children:c.jsx(GS,{children:o=>c.jsx(Lr,{...o,selectionMode:e.selectionMode??"single"})})})]})})});function f4(e,t){return e?YS(e)?Rt.createElement(e,t):e:null}function YS(e){return XS(e)||typeof e=="function"||JS(e)}function XS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function JS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const QS=P.tr`
1474
+ `,qS=l.forwardRef((e,t)=>{const n=e["aria-label"]??String(e.label),r=sr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),a={...e.wrapperProps,htmlForId:e.id,label:e.label,labelIconRight:e.labelIconRight,labelIconRightTooltip:e.labelIconRightTooltip,description:e.description,helperTextIcon:e.helperTextIcon,helperText:e.helperText,errorHelperText:e.errorHelperText,errorHelperTextIcon:e.errorHelperTextIcon,successHelperText:e.successHelperText,successHelperTextIcon:e.successHelperTextIcon,warningHelperText:e.warningHelperText,warningHelperTextIcon:e.warningHelperTextIcon,orientation:e.orientation,required:e.required};return c.jsx(Kt,{...a,children:c.jsxs(ZS,{id:e.id,isDisabled:e.disabled,isRequired:e.required,onSelectionChange:o=>e.onChange?.(String(o||"")),selectedKey:e.value,disabledKeys:e.disabledIds,"data-fullwidth":e.fullWidth,"aria-label":n,defaultFilter:e.defaultFilter,inputValue:e.inputValue,defaultInputValue:e.defaultInputValue,onInputChange:e.onInputChange,items:e.items,defaultItems:e.defaultItems,children:[c.jsxs(_S,{children:[c.jsx(lm,{...e.inputProps,placeholder:e.placeholder||e.inputProps?.placeholder,ref:t,"data-nature":r,"data-fullwidth":e.fullWidth,hasIcon:!0}),c.jsx(US,{iconLeft:"expand_more",mode:"tertiary"})]}),c.jsx(WS,{offset:4,placement:"bottom",children:c.jsx(GS,{"data-tall":e.tallDropdown||void 0,children:o=>c.jsx(Lr,{...o,selectionMode:e.selectionMode??"single"})})})]})})});function f4(e,t){return e?YS(e)?Rt.createElement(e,t):e:null}function YS(e){return XS(e)||typeof e=="function"||JS(e)}function XS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function JS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const QS=P.tr`
1471
1475
  background-color: var(--color-content-neutral-primary-reversed);
1472
1476
 
1473
1477
  &[data-sub-row-expanded="true"] {
@@ -1567,7 +1571,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1567
1571
  display: flex;
1568
1572
  align-items: center;
1569
1573
  column-gap: var(--spacing-xs);
1570
- `;function rP(){return typeof window.ResizeObserver<"u"}function cm(e){const{ref:t,onResize:n}=e;l.useEffect(()=>{const r=t?.current;if(r)if(rP()){const a=new window.ResizeObserver(o=>{o.length&&n()});return a.observe(r),()=>{r&&a.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}const $s=l.forwardRef((e,t)=>{const n=Re(aP),r=e["aria-label"]??String(e.label),a=sr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),o={...e.wrapperProps,htmlForId:e.id,label:e.label,labelIconRight:e.labelIconRight,labelIconRightTooltip:e.labelIconRightTooltip,description:e.description,helperTextIcon:e.helperTextIcon,helperText:e.helperText,errorHelperText:e.errorHelperText,errorHelperTextIcon:e.errorHelperTextIcon,successHelperText:e.successHelperText,successHelperTextIcon:e.successHelperTextIcon,warningHelperText:e.warningHelperText,warningHelperTextIcon:e.warningHelperTextIcon,orientation:e.orientation,required:e.required},i=l.useRef(null),[u,s]=l.useState(null),d=l.useCallback(()=>{i.current&&s(i.current.offsetWidth+"px")},[i]);return cm({ref:i,onResize:d}),e.mode==="multiple"?c.jsx(Kt,{...o,ref:t,children:c.jsxs(rl,{defaultOpen:e.defaultOpen,isOpen:e.open,onOpenChange:e.onOpenChange,children:[c.jsxs(p4,{...e.buttonProps,type:"button",ref:i,"data-nature":a,"data-fullwidth":e.fullWidth,"aria-label":r,isDisabled:e.disabled,children:[!e.selectedKeys?.length&&c.jsx("span",{"data-placeholder":!0,children:e.placeholder||""}),!!e.selectedKeys?.length&&c.jsxs(nP,{children:[c.jsx(Aa,{value:e.selectedKeys.length,nature:"informative"}),e.selectedKeys.length===1?` ${n.itemSelected}`:` ${n.itemsSelected}`]}),c.jsxs(b4,{children:[e.triggerContentRight,c.jsx(h4,{name:"expand_more","data-disabled":e.disabled})]})]}),c.jsx(m4,{offset:4,placement:"bottom",children:c.jsx(g4,{"aria-label":`${n.selectionFor} ${r}`,selectionMode:"multiple",selectedKeys:e.selectedKeys,disabledKeys:e.disabledIds,onSelectionChange:f=>{f!=="all"&&e.onSelectionChange([...f].map(String))},style:{"--trigger-width":u},children:e.children})})]})}):c.jsx(Kt,{...o,children:c.jsxs(eP,{ref:t,id:e.id,isDisabled:e.disabled,isRequired:e.required,onSelectionChange:f=>e.onChange?.(String(f)),selectedKey:e.value,name:e.name,disabledKeys:e.disabledIds,defaultOpen:e.defaultOpen,isOpen:e.open,onOpenChange:e.onOpenChange,"data-fullwidth":e.fullWidth,"aria-label":r,children:[c.jsxs(p4,{...e.buttonProps,type:"button","data-nature":a,"data-fullwidth":e.fullWidth,children:[c.jsx(tP,{children:f=>f.isPlaceholder?e.placeholder||"":f.selectedText}),c.jsxs(b4,{children:[e.triggerContentRight,c.jsx(h4,{name:"expand_more","data-disabled":e.disabled})]})]}),c.jsx(m4,{offset:4,placement:"bottom",children:c.jsx(g4,{children:e.children})})]})})}),aP={en:{itemsSelected:" items selected",itemSelected:" item selected",selectionFor:" selection for"},fr:{itemsSelected:" éléments sélectionnés",itemSelected:" élément sélectionné",selectionFor:" sélection pour"}};function oP(e,t){return Array.from({length:e},(n,r)=>r+0)}const iP=P.div`
1574
+ `;function rP(){return typeof window.ResizeObserver<"u"}function cm(e){const{ref:t,onResize:n}=e;l.useEffect(()=>{const r=t?.current;if(r)if(rP()){const a=new window.ResizeObserver(o=>{o.length&&n()});return a.observe(r),()=>{r&&a.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}const $s=l.forwardRef((e,t)=>{const n=Re(aP),r=e["aria-label"]??String(e.label),a=sr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),o={...e.wrapperProps,htmlForId:e.id,label:e.label,labelIconRight:e.labelIconRight,labelIconRightTooltip:e.labelIconRightTooltip,description:e.description,helperTextIcon:e.helperTextIcon,helperText:e.helperText,errorHelperText:e.errorHelperText,errorHelperTextIcon:e.errorHelperTextIcon,successHelperText:e.successHelperText,successHelperTextIcon:e.successHelperTextIcon,warningHelperText:e.warningHelperText,warningHelperTextIcon:e.warningHelperTextIcon,orientation:e.orientation,required:e.required},i=l.useRef(null),[u,s]=l.useState(null),d=l.useCallback(()=>{i.current&&s(i.current.offsetWidth+"px")},[i]);return cm({ref:i,onResize:d}),e.mode==="multiple"?c.jsx(Kt,{...o,ref:t,children:c.jsxs(rl,{defaultOpen:e.defaultOpen,isOpen:e.open,onOpenChange:e.onOpenChange,children:[c.jsxs(p4,{...e.buttonProps,type:"button",ref:i,"data-nature":a,"data-fullwidth":e.fullWidth,"aria-label":r,isDisabled:e.disabled,children:[!e.selectedKeys?.length&&c.jsx("span",{"data-placeholder":!0,children:e.placeholder||""}),!!e.selectedKeys?.length&&c.jsxs(nP,{children:[c.jsx(Aa,{value:e.selectedKeys.length,nature:"informative"}),e.selectedKeys.length===1?` ${n.itemSelected}`:` ${n.itemsSelected}`]}),c.jsxs(b4,{children:[e.triggerContentRight,c.jsx(h4,{name:"expand_more","data-disabled":e.disabled})]})]}),c.jsx(m4,{offset:4,placement:"bottom",children:c.jsx(g4,{"aria-label":`${n.selectionFor} ${r}`,selectionMode:"multiple",selectedKeys:e.selectedKeys,disabledKeys:e.disabledIds,onSelectionChange:f=>{f!=="all"&&e.onSelectionChange([...f].map(String))},style:{"--trigger-width":u},"data-tall":e.tallDropdown||void 0,children:e.children})})]})}):c.jsx(Kt,{...o,children:c.jsxs(eP,{ref:t,id:e.id,isDisabled:e.disabled,isRequired:e.required,onSelectionChange:f=>e.onChange?.(String(f)),selectedKey:e.value,name:e.name,disabledKeys:e.disabledIds,defaultOpen:e.defaultOpen,isOpen:e.open,onOpenChange:e.onOpenChange,"data-fullwidth":e.fullWidth,"aria-label":r,children:[c.jsxs(p4,{...e.buttonProps,type:"button","data-nature":a,"data-fullwidth":e.fullWidth,children:[c.jsx(tP,{children:f=>f.isPlaceholder?e.placeholder||"":f.selectedText}),c.jsxs(b4,{children:[e.triggerContentRight,c.jsx(h4,{name:"expand_more","data-disabled":e.disabled})]})]}),c.jsx(m4,{offset:4,placement:"bottom",children:c.jsx(g4,{"data-tall":e.tallDropdown||void 0,children:e.children})})]})})}),aP={en:{itemsSelected:" items selected",itemSelected:" item selected",selectionFor:" selection for"},fr:{itemsSelected:" éléments sélectionnés",itemSelected:" élément sélectionné",selectionFor:" sélection pour"}};function oP(e,t){return Array.from({length:e},(n,r)=>r+0)}const iP=P.div`
1571
1575
  display: flex;
1572
1576
  align-items: center;
1573
1577
  justify-content: space-between;
@@ -2616,7 +2620,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2616
2620
  ${zo};
2617
2621
  z-index: var(--z-index-dropdown);
2618
2622
  outline: none;
2619
- `;function Fm({children:e,buttonProps:t,isOpen:n,onOpenChange:r,defaultOpen:a,placement:o="bottom"}){return c.jsxs(iF,{isOpen:n,onOpenChange:r,defaultOpen:a,children:[c.jsx(De,{...t}),c.jsx(uF,{offset:8,placement:o,children:c.jsx(lF,{children:e})})]})}function Mm({text:e,iconRight:t,iconLeft:n,href:r,routerOptions:a,onClick:o,isDisabled:i,style:u,className:s,...d}){return c.jsx(f$,{...d,textValue:e,style:{outline:"none",textDecoration:"none"},href:r,routerOptions:a,onAction:o,isDisabled:i,children:f=>c.jsx(sl,{text:e,"data-hovered":f.isHovered,"data-pressed":f.isPressed,"data-focused":f.isFocused,"data-focus-visible":f.isFocusVisible,iconLeft:n,iconRight:t,disabled:i,style:u,className:s})})}const sF=P.div`
2623
+ `;function Fm({children:e,buttonProps:t,isOpen:n,onOpenChange:r,defaultOpen:a,placement:o="bottom",tallDropdown:i}){return c.jsxs(iF,{isOpen:n,onOpenChange:r,defaultOpen:a,children:[c.jsx(De,{...t}),c.jsx(uF,{offset:8,placement:o,children:c.jsx(lF,{"data-tall":i||void 0,children:e})})]})}function Mm({text:e,iconRight:t,iconLeft:n,href:r,routerOptions:a,onClick:o,isDisabled:i,style:u,className:s,...d}){return c.jsx(f$,{...d,textValue:e,style:{outline:"none",textDecoration:"none"},href:r,routerOptions:a,onAction:o,isDisabled:i,children:f=>c.jsx(sl,{text:e,"data-hovered":f.isHovered,"data-pressed":f.isPressed,"data-focused":f.isFocused,"data-focus-visible":f.isFocusVisible,iconLeft:n,iconRight:t,disabled:i,style:u,className:s})})}const sF=P.div`
2620
2624
  display: flex;
2621
2625
  flex: 1;
2622
2626
  padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-sm)
@@ -4833,7 +4837,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
4833
4837
  z-index: var(--z-index-dropdown);
4834
4838
  outline: none;
4835
4839
  width: var(--trigger-width);
4836
- `;function PR({startYear:e,endYear:t,actualDate:n=new Date,sortYears:r="ascending"}){const a=n.getFullYear(),i=Array.from({length:(t??a)-e+1},(u,s)=>(e+s).toString());return r==="descending"&&i.reverse(),i}const TR=l.forwardRef((e,t)=>{const n=l.useId(),r=e.id||n,a=e["aria-label"]??String(e.label),[o,i]=l.useState(!1),[u,s]=l.useState(!1),d=sr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),f=Re(AR),p=Z4.find(({id:y})=>y===e.value?.month)?.text,h=p?f[p]:"",m=l.useRef(null),[g,b]=l.useState(null),C=l.useCallback(()=>{m.current&&b(m.current.offsetWidth+"px")},[m]);cm({ref:m,onResize:C});const x=PR({startYear:e.firstYear??2e3,endYear:e.lastYear??2050,sortYears:e.sortYears});return c.jsx(Kt,{...e.wrapperProps,htmlForId:r,label:e.label,labelIconRight:e.labelIconRight,labelIconRightTooltip:e.labelIconRightTooltip,description:e.description,helperTextIcon:e.helperTextIcon,helperText:e.helperText,errorHelperText:e.errorHelperText,errorHelperTextIcon:e.errorHelperTextIcon,successHelperText:e.successHelperText,successHelperTextIcon:e.successHelperTextIcon,warningHelperText:e.warningHelperText,warningHelperTextIcon:e.warningHelperTextIcon,required:e.required,orientation:e.orientation,ref:t,children:c.jsxs(rl,{children:[c.jsxs(kR,{...e.buttonProps,type:"button",ref:m,id:r,"aria-label":`${f.open} ${a}`,"data-nature":d,"data-fullwidth":e.fullWidth,isDisabled:e.disabled,onPress:()=>{e.mode==="month"&&i(!0),e.mode==="year"&&s(!0),e.mode==="month-year"&&i(!0)},children:[h&&h,h&&e.value?.year&&" ",e.value?.year&&e.value.year,c.jsx(SR,{name:e.inputIcon??"calendar_today","data-disabled":e.disabled})]}),(e.mode==="month"||e.mode==="month-year")&&c.jsx(N4,{offset:4,placement:"bottom",isOpen:o,onOpenChange:i,children:c.jsx(z4,{"aria-label":`${f.monthSelectionFor} ${a}`,selectionMode:"single",selectedKeys:e.value?.month?[e.value.month]:[],onSelectionChange:y=>{if(y==="all")return;if(y.size===0)return e.mode==="month-year"&&s(!0),i(!1);const[v]=y;e.mode==="month"&&e.onChange({month:v?.toString()}),e.mode==="month-year"&&(e.onChange({month:v?.toString(),year:e.value?.year}),s(!0)),i(!1)},style:{"--trigger-width":g},children:Z4.map(({id:y,text:v})=>c.jsx(Lr,{text:f[v],id:y},y))})}),(e.mode==="year"||e.mode==="month-year")&&c.jsx(N4,{offset:4,placement:"bottom",isOpen:u,onOpenChange:s,children:c.jsx(z4,{"aria-label":`${f.yearSelectionFor} ${a}`,selectionMode:"single",selectedKeys:e.value?.year?[e.value.year]:[],onSelectionChange:y=>{if(y==="all")return;if(y.size===0)return s(!1);const[v]=y;e.mode==="year"&&e.onChange({year:v?.toString()}),e.mode==="month-year"&&e.onChange({month:e.value?.month,year:v?.toString()}),s(!1)},style:{"--trigger-width":g},children:x.map(y=>c.jsx(Lr,{text:y,id:y},y))})})]})})}),AR={en:{open:"Open:",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",monthSelectionFor:"Month selection for",yearSelectionFor:"Year selection for"},fr:{open:"Ouvrir:",january:"Janvier",february:"Février",march:"Mars",april:"Avril",may:"Mai",june:"Juin",july:"Juillet",august:"Août",september:"Septembre",october:"Octobre",november:"Novembre",december:"Décembre",monthSelectionFor:"Sélection du mois pour",yearSelectionFor:"Sélection de l'année pour"}},Z4=[{id:"01",text:"january"},{id:"02",text:"february"},{id:"03",text:"march"},{id:"04",text:"april"},{id:"05",text:"may"},{id:"06",text:"june"},{id:"07",text:"july"},{id:"08",text:"august"},{id:"09",text:"september"},{id:"10",text:"october"},{id:"11",text:"november"},{id:"12",text:"december"}],FR=({children:e,...t})=>c.jsx(Nb,{...t,children:e});function ia(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Um(e){if(Rt.isValidElement(e)||!ia(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Um(e[n])}),t}function dn(e,t,n={clone:!0}){const r=n.clone?We({},e):e;return ia(e)&&ia(t)&&Object.keys(t).forEach(a=>{Rt.isValidElement(t[a])?r[a]=t[a]:ia(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ia(e[a])?r[a]=dn(e[a],t[a],n):n.clone?r[a]=ia(t[a])?Um(t[a]):t[a]:r[a]=t[a]}),r}var Ci={exports:{}},vi={exports:{}},ye={};var _4;function MR(){if(_4)return ye;_4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function v(B){if(typeof B=="object"&&B!==null){var k=B.$$typeof;switch(k){case t:switch(B=B.type,B){case s:case d:case r:case o:case a:case p:return B;default:switch(B=B&&B.$$typeof,B){case u:case f:case g:case m:case i:return B;default:return k}}case n:return k}}}function w(B){return v(B)===d}return ye.AsyncMode=s,ye.ConcurrentMode=d,ye.ContextConsumer=u,ye.ContextProvider=i,ye.Element=t,ye.ForwardRef=f,ye.Fragment=r,ye.Lazy=g,ye.Memo=m,ye.Portal=n,ye.Profiler=o,ye.StrictMode=a,ye.Suspense=p,ye.isAsyncMode=function(B){return w(B)||v(B)===s},ye.isConcurrentMode=w,ye.isContextConsumer=function(B){return v(B)===u},ye.isContextProvider=function(B){return v(B)===i},ye.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},ye.isForwardRef=function(B){return v(B)===f},ye.isFragment=function(B){return v(B)===r},ye.isLazy=function(B){return v(B)===g},ye.isMemo=function(B){return v(B)===m},ye.isPortal=function(B){return v(B)===n},ye.isProfiler=function(B){return v(B)===o},ye.isStrictMode=function(B){return v(B)===a},ye.isSuspense=function(B){return v(B)===p},ye.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===d||B===o||B===a||B===p||B===h||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===m||B.$$typeof===i||B.$$typeof===u||B.$$typeof===f||B.$$typeof===C||B.$$typeof===x||B.$$typeof===y||B.$$typeof===b)},ye.typeOf=v,ye}var $e={};var U4;function VR(){return U4||(U4=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function v(X){return typeof X=="string"||typeof X=="function"||X===r||X===d||X===o||X===a||X===p||X===h||typeof X=="object"&&X!==null&&(X.$$typeof===g||X.$$typeof===m||X.$$typeof===i||X.$$typeof===u||X.$$typeof===f||X.$$typeof===C||X.$$typeof===x||X.$$typeof===y||X.$$typeof===b)}function w(X){if(typeof X=="object"&&X!==null){var Ee=X.$$typeof;switch(Ee){case t:var et=X.type;switch(et){case s:case d:case r:case o:case a:case p:return et;default:var Pt=et&&et.$$typeof;switch(Pt){case u:case f:case g:case m:case i:return Pt;default:return Ee}}case n:return Ee}}}var B=s,k=d,$=u,S=i,T=t,I=f,L=r,N=g,O=m,D=n,M=o,F=a,V=p,H=!1;function A(X){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(X)||w(X)===s}function E(X){return w(X)===d}function j(X){return w(X)===u}function K(X){return w(X)===i}function R(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function U(X){return w(X)===f}function _(X){return w(X)===r}function q(X){return w(X)===g}function Z(X){return w(X)===m}function z(X){return w(X)===n}function J(X){return w(X)===o}function W(X){return w(X)===a}function ae(X){return w(X)===p}$e.AsyncMode=B,$e.ConcurrentMode=k,$e.ContextConsumer=$,$e.ContextProvider=S,$e.Element=T,$e.ForwardRef=I,$e.Fragment=L,$e.Lazy=N,$e.Memo=O,$e.Portal=D,$e.Profiler=M,$e.StrictMode=F,$e.Suspense=V,$e.isAsyncMode=A,$e.isConcurrentMode=E,$e.isContextConsumer=j,$e.isContextProvider=K,$e.isElement=R,$e.isForwardRef=U,$e.isFragment=_,$e.isLazy=q,$e.isMemo=Z,$e.isPortal=z,$e.isProfiler=J,$e.isStrictMode=W,$e.isSuspense=ae,$e.isValidElementType=v,$e.typeOf=w})()),$e}var W4;function Wm(){return W4||(W4=1,process.env.NODE_ENV==="production"?vi.exports=MR():vi.exports=VR()),vi.exports}var C1,G4;function IR(){if(G4)return C1;G4=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(s.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return C1=a()?Object.assign:function(o,i){for(var u,s=r(o),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var p in u)t.call(u,p)&&(s[p]=u[p]);if(e){d=e(u);for(var h=0;h<d.length;h++)n.call(u,d[h])&&(s[d[h]]=u[d[h]])}}return s},C1}var v1,q4;function W3(){if(q4)return v1;q4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return v1=e,v1}var x1,Y4;function Gm(){return Y4||(Y4=1,x1=Function.call.bind(Object.prototype.hasOwnProperty)),x1}var y1,X4;function RR(){if(X4)return y1;X4=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=W3(),n={},r=Gm();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,u,s,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var p;try{if(typeof o[f]!="function"){var h=Error((s||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=o[f](i,f,s,u,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var m=d?d():"";e("Failed "+u+" type: "+p.message+(m??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},y1=a,y1}var $1,J4;function LR(){if(J4)return $1;J4=1;var e=Wm(),t=IR(),n=W3(),r=Gm(),a=RR(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function i(){return null}return $1=function(u,s){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(E){var j=E&&(d&&E[d]||E[f]);if(typeof j=="function")return j}var h="<<anonymous>>",m={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:y(),arrayOf:v,element:w(),elementType:B(),instanceOf:k,node:I(),objectOf:S,oneOf:$,oneOfType:T,shape:N,exact:O};function g(E,j){return E===j?E!==0||1/E===1/j:E!==E&&j!==j}function b(E,j){this.message=E,this.data=j&&typeof j=="object"?j:{},this.stack=""}b.prototype=Error.prototype;function C(E){if(process.env.NODE_ENV!=="production")var j={},K=0;function R(_,q,Z,z,J,W,ae){if(z=z||h,W=W||Z,ae!==n){if(s){var X=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=z+":"+Z;!j[Ee]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[Ee]=!0,K++)}}return q[Z]==null?_?q[Z]===null?new b("The "+J+" `"+W+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new b("The "+J+" `"+W+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:E(q,Z,z,J,W)}var U=R.bind(null,!1);return U.isRequired=R.bind(null,!0),U}function x(E){function j(K,R,U,_,q,Z){var z=K[R],J=F(z);if(J!==E){var W=V(z);return new b("Invalid "+_+" `"+q+"` of type "+("`"+W+"` supplied to `"+U+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return C(j)}function y(){return C(i)}function v(E){function j(K,R,U,_,q){if(typeof E!="function")return new b("Property `"+q+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var Z=K[R];if(!Array.isArray(Z)){var z=F(Z);return new b("Invalid "+_+" `"+q+"` of type "+("`"+z+"` supplied to `"+U+"`, expected an array."))}for(var J=0;J<Z.length;J++){var W=E(Z,J,U,_,q+"["+J+"]",n);if(W instanceof Error)return W}return null}return C(j)}function w(){function E(j,K,R,U,_){var q=j[K];if(!u(q)){var Z=F(q);return new b("Invalid "+U+" `"+_+"` of type "+("`"+Z+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return C(E)}function B(){function E(j,K,R,U,_){var q=j[K];if(!e.isValidElementType(q)){var Z=F(q);return new b("Invalid "+U+" `"+_+"` of type "+("`"+Z+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return C(E)}function k(E){function j(K,R,U,_,q){if(!(K[R]instanceof E)){var Z=E.name||h,z=A(K[R]);return new b("Invalid "+_+" `"+q+"` of type "+("`"+z+"` supplied to `"+U+"`, expected ")+("instance of `"+Z+"`."))}return null}return C(j)}function $(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function j(K,R,U,_,q){for(var Z=K[R],z=0;z<E.length;z++)if(g(Z,E[z]))return null;var J=JSON.stringify(E,function(ae,X){var Ee=V(X);return Ee==="symbol"?String(X):X});return new b("Invalid "+_+" `"+q+"` of value `"+String(Z)+"` "+("supplied to `"+U+"`, expected one of "+J+"."))}return C(j)}function S(E){function j(K,R,U,_,q){if(typeof E!="function")return new b("Property `"+q+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var Z=K[R],z=F(Z);if(z!=="object")return new b("Invalid "+_+" `"+q+"` of type "+("`"+z+"` supplied to `"+U+"`, expected an object."));for(var J in Z)if(r(Z,J)){var W=E(Z,J,U,_,q+"."+J,n);if(W instanceof Error)return W}return null}return C(j)}function T(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var j=0;j<E.length;j++){var K=E[j];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(K)+" at index "+j+"."),i}function R(U,_,q,Z,z){for(var J=[],W=0;W<E.length;W++){var ae=E[W],X=ae(U,_,q,Z,z,n);if(X==null)return null;X.data&&r(X.data,"expectedType")&&J.push(X.data.expectedType)}var Ee=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new b("Invalid "+Z+" `"+z+"` supplied to "+("`"+q+"`"+Ee+"."))}return C(R)}function I(){function E(j,K,R,U,_){return D(j[K])?null:new b("Invalid "+U+" `"+_+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return C(E)}function L(E,j,K,R,U){return new b((E||"React class")+": "+j+" type `"+K+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function N(E){function j(K,R,U,_,q){var Z=K[R],z=F(Z);if(z!=="object")return new b("Invalid "+_+" `"+q+"` of type `"+z+"` "+("supplied to `"+U+"`, expected `object`."));for(var J in E){var W=E[J];if(typeof W!="function")return L(U,_,q,J,V(W));var ae=W(Z,J,U,_,q+"."+J,n);if(ae)return ae}return null}return C(j)}function O(E){function j(K,R,U,_,q){var Z=K[R],z=F(Z);if(z!=="object")return new b("Invalid "+_+" `"+q+"` of type `"+z+"` "+("supplied to `"+U+"`, expected `object`."));var J=t({},K[R],E);for(var W in J){var ae=E[W];if(r(E,W)&&typeof ae!="function")return L(U,_,q,W,V(ae));if(!ae)return new b("Invalid "+_+" `"+q+"` key `"+W+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(K[R],null," ")+`
4840
+ `;function PR({startYear:e,endYear:t,actualDate:n=new Date,sortYears:r="ascending"}){const a=n.getFullYear(),i=Array.from({length:(t??a)-e+1},(u,s)=>(e+s).toString());return r==="descending"&&i.reverse(),i}const TR=l.forwardRef((e,t)=>{const n=l.useId(),r=e.id||n,a=e["aria-label"]??String(e.label),[o,i]=l.useState(!1),[u,s]=l.useState(!1),d=sr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),f=Re(AR),p=Z4.find(({id:y})=>y===e.value?.month)?.text,h=p?f[p]:"",m=l.useRef(null),[g,b]=l.useState(null),C=l.useCallback(()=>{m.current&&b(m.current.offsetWidth+"px")},[m]);cm({ref:m,onResize:C});const x=PR({startYear:e.firstYear??2e3,endYear:e.lastYear??2050,sortYears:e.sortYears});return c.jsx(Kt,{...e.wrapperProps,htmlForId:r,label:e.label,labelIconRight:e.labelIconRight,labelIconRightTooltip:e.labelIconRightTooltip,description:e.description,helperTextIcon:e.helperTextIcon,helperText:e.helperText,errorHelperText:e.errorHelperText,errorHelperTextIcon:e.errorHelperTextIcon,successHelperText:e.successHelperText,successHelperTextIcon:e.successHelperTextIcon,warningHelperText:e.warningHelperText,warningHelperTextIcon:e.warningHelperTextIcon,required:e.required,orientation:e.orientation,ref:t,children:c.jsxs(rl,{children:[c.jsxs(kR,{...e.buttonProps,type:"button",ref:m,id:r,"aria-label":`${f.open} ${a}`,"data-nature":d,"data-fullwidth":e.fullWidth,isDisabled:e.disabled,onPress:()=>{e.mode==="month"&&i(!0),e.mode==="year"&&s(!0),e.mode==="month-year"&&i(!0)},children:[h&&h,h&&e.value?.year&&" ",e.value?.year&&e.value.year,c.jsx(SR,{name:e.inputIcon??"calendar_today","data-disabled":e.disabled})]}),(e.mode==="month"||e.mode==="month-year")&&c.jsx(N4,{offset:4,placement:"bottom",isOpen:o,onOpenChange:i,children:c.jsx(z4,{"aria-label":`${f.monthSelectionFor} ${a}`,selectionMode:"single",selectedKeys:e.value?.month?[e.value.month]:[],onSelectionChange:y=>{if(y==="all")return;if(y.size===0)return e.mode==="month-year"&&s(!0),i(!1);const[v]=y;e.mode==="month"&&e.onChange({month:v?.toString()}),e.mode==="month-year"&&(e.onChange({month:v?.toString(),year:e.value?.year}),s(!0)),i(!1)},style:{"--trigger-width":g},"data-tall":e.tallDropdown||void 0,children:Z4.map(({id:y,text:v})=>c.jsx(Lr,{text:f[v],id:y},y))})}),(e.mode==="year"||e.mode==="month-year")&&c.jsx(N4,{offset:4,placement:"bottom",isOpen:u,onOpenChange:s,children:c.jsx(z4,{"aria-label":`${f.yearSelectionFor} ${a}`,selectionMode:"single",selectedKeys:e.value?.year?[e.value.year]:[],onSelectionChange:y=>{if(y==="all")return;if(y.size===0)return s(!1);const[v]=y;e.mode==="year"&&e.onChange({year:v?.toString()}),e.mode==="month-year"&&e.onChange({month:e.value?.month,year:v?.toString()}),s(!1)},style:{"--trigger-width":g},"data-tall":e.tallDropdown||void 0,children:x.map(y=>c.jsx(Lr,{text:y,id:y},y))})})]})})}),AR={en:{open:"Open:",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",monthSelectionFor:"Month selection for",yearSelectionFor:"Year selection for"},fr:{open:"Ouvrir:",january:"Janvier",february:"Février",march:"Mars",april:"Avril",may:"Mai",june:"Juin",july:"Juillet",august:"Août",september:"Septembre",october:"Octobre",november:"Novembre",december:"Décembre",monthSelectionFor:"Sélection du mois pour",yearSelectionFor:"Sélection de l'année pour"}},Z4=[{id:"01",text:"january"},{id:"02",text:"february"},{id:"03",text:"march"},{id:"04",text:"april"},{id:"05",text:"may"},{id:"06",text:"june"},{id:"07",text:"july"},{id:"08",text:"august"},{id:"09",text:"september"},{id:"10",text:"october"},{id:"11",text:"november"},{id:"12",text:"december"}],FR=({children:e,...t})=>c.jsx(Nb,{...t,children:e});function ia(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Um(e){if(Rt.isValidElement(e)||!ia(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Um(e[n])}),t}function dn(e,t,n={clone:!0}){const r=n.clone?We({},e):e;return ia(e)&&ia(t)&&Object.keys(t).forEach(a=>{Rt.isValidElement(t[a])?r[a]=t[a]:ia(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ia(e[a])?r[a]=dn(e[a],t[a],n):n.clone?r[a]=ia(t[a])?Um(t[a]):t[a]:r[a]=t[a]}),r}var Ci={exports:{}},vi={exports:{}},ye={};var _4;function MR(){if(_4)return ye;_4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function v(B){if(typeof B=="object"&&B!==null){var k=B.$$typeof;switch(k){case t:switch(B=B.type,B){case s:case d:case r:case o:case a:case p:return B;default:switch(B=B&&B.$$typeof,B){case u:case f:case g:case m:case i:return B;default:return k}}case n:return k}}}function w(B){return v(B)===d}return ye.AsyncMode=s,ye.ConcurrentMode=d,ye.ContextConsumer=u,ye.ContextProvider=i,ye.Element=t,ye.ForwardRef=f,ye.Fragment=r,ye.Lazy=g,ye.Memo=m,ye.Portal=n,ye.Profiler=o,ye.StrictMode=a,ye.Suspense=p,ye.isAsyncMode=function(B){return w(B)||v(B)===s},ye.isConcurrentMode=w,ye.isContextConsumer=function(B){return v(B)===u},ye.isContextProvider=function(B){return v(B)===i},ye.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},ye.isForwardRef=function(B){return v(B)===f},ye.isFragment=function(B){return v(B)===r},ye.isLazy=function(B){return v(B)===g},ye.isMemo=function(B){return v(B)===m},ye.isPortal=function(B){return v(B)===n},ye.isProfiler=function(B){return v(B)===o},ye.isStrictMode=function(B){return v(B)===a},ye.isSuspense=function(B){return v(B)===p},ye.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===d||B===o||B===a||B===p||B===h||typeof B=="object"&&B!==null&&(B.$$typeof===g||B.$$typeof===m||B.$$typeof===i||B.$$typeof===u||B.$$typeof===f||B.$$typeof===C||B.$$typeof===x||B.$$typeof===y||B.$$typeof===b)},ye.typeOf=v,ye}var $e={};var U4;function VR(){return U4||(U4=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function v(X){return typeof X=="string"||typeof X=="function"||X===r||X===d||X===o||X===a||X===p||X===h||typeof X=="object"&&X!==null&&(X.$$typeof===g||X.$$typeof===m||X.$$typeof===i||X.$$typeof===u||X.$$typeof===f||X.$$typeof===C||X.$$typeof===x||X.$$typeof===y||X.$$typeof===b)}function w(X){if(typeof X=="object"&&X!==null){var Ee=X.$$typeof;switch(Ee){case t:var et=X.type;switch(et){case s:case d:case r:case o:case a:case p:return et;default:var Pt=et&&et.$$typeof;switch(Pt){case u:case f:case g:case m:case i:return Pt;default:return Ee}}case n:return Ee}}}var B=s,k=d,$=u,S=i,T=t,I=f,L=r,N=g,O=m,D=n,M=o,F=a,V=p,H=!1;function A(X){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(X)||w(X)===s}function E(X){return w(X)===d}function j(X){return w(X)===u}function K(X){return w(X)===i}function R(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function U(X){return w(X)===f}function _(X){return w(X)===r}function q(X){return w(X)===g}function Z(X){return w(X)===m}function z(X){return w(X)===n}function J(X){return w(X)===o}function W(X){return w(X)===a}function ae(X){return w(X)===p}$e.AsyncMode=B,$e.ConcurrentMode=k,$e.ContextConsumer=$,$e.ContextProvider=S,$e.Element=T,$e.ForwardRef=I,$e.Fragment=L,$e.Lazy=N,$e.Memo=O,$e.Portal=D,$e.Profiler=M,$e.StrictMode=F,$e.Suspense=V,$e.isAsyncMode=A,$e.isConcurrentMode=E,$e.isContextConsumer=j,$e.isContextProvider=K,$e.isElement=R,$e.isForwardRef=U,$e.isFragment=_,$e.isLazy=q,$e.isMemo=Z,$e.isPortal=z,$e.isProfiler=J,$e.isStrictMode=W,$e.isSuspense=ae,$e.isValidElementType=v,$e.typeOf=w})()),$e}var W4;function Wm(){return W4||(W4=1,process.env.NODE_ENV==="production"?vi.exports=MR():vi.exports=VR()),vi.exports}var C1,G4;function IR(){if(G4)return C1;G4=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(s.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return C1=a()?Object.assign:function(o,i){for(var u,s=r(o),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var p in u)t.call(u,p)&&(s[p]=u[p]);if(e){d=e(u);for(var h=0;h<d.length;h++)n.call(u,d[h])&&(s[d[h]]=u[d[h]])}}return s},C1}var v1,q4;function W3(){if(q4)return v1;q4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return v1=e,v1}var x1,Y4;function Gm(){return Y4||(Y4=1,x1=Function.call.bind(Object.prototype.hasOwnProperty)),x1}var y1,X4;function RR(){if(X4)return y1;X4=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=W3(),n={},r=Gm();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,u,s,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var p;try{if(typeof o[f]!="function"){var h=Error((s||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=o[f](i,f,s,u,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var m=d?d():"";e("Failed "+u+" type: "+p.message+(m??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},y1=a,y1}var $1,J4;function LR(){if(J4)return $1;J4=1;var e=Wm(),t=IR(),n=W3(),r=Gm(),a=RR(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function i(){return null}return $1=function(u,s){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(E){var j=E&&(d&&E[d]||E[f]);if(typeof j=="function")return j}var h="<<anonymous>>",m={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:y(),arrayOf:v,element:w(),elementType:B(),instanceOf:k,node:I(),objectOf:S,oneOf:$,oneOfType:T,shape:N,exact:O};function g(E,j){return E===j?E!==0||1/E===1/j:E!==E&&j!==j}function b(E,j){this.message=E,this.data=j&&typeof j=="object"?j:{},this.stack=""}b.prototype=Error.prototype;function C(E){if(process.env.NODE_ENV!=="production")var j={},K=0;function R(_,q,Z,z,J,W,ae){if(z=z||h,W=W||Z,ae!==n){if(s){var X=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw X.name="Invariant Violation",X}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=z+":"+Z;!j[Ee]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[Ee]=!0,K++)}}return q[Z]==null?_?q[Z]===null?new b("The "+J+" `"+W+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new b("The "+J+" `"+W+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:E(q,Z,z,J,W)}var U=R.bind(null,!1);return U.isRequired=R.bind(null,!0),U}function x(E){function j(K,R,U,_,q,Z){var z=K[R],J=F(z);if(J!==E){var W=V(z);return new b("Invalid "+_+" `"+q+"` of type "+("`"+W+"` supplied to `"+U+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return C(j)}function y(){return C(i)}function v(E){function j(K,R,U,_,q){if(typeof E!="function")return new b("Property `"+q+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var Z=K[R];if(!Array.isArray(Z)){var z=F(Z);return new b("Invalid "+_+" `"+q+"` of type "+("`"+z+"` supplied to `"+U+"`, expected an array."))}for(var J=0;J<Z.length;J++){var W=E(Z,J,U,_,q+"["+J+"]",n);if(W instanceof Error)return W}return null}return C(j)}function w(){function E(j,K,R,U,_){var q=j[K];if(!u(q)){var Z=F(q);return new b("Invalid "+U+" `"+_+"` of type "+("`"+Z+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return C(E)}function B(){function E(j,K,R,U,_){var q=j[K];if(!e.isValidElementType(q)){var Z=F(q);return new b("Invalid "+U+" `"+_+"` of type "+("`"+Z+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return C(E)}function k(E){function j(K,R,U,_,q){if(!(K[R]instanceof E)){var Z=E.name||h,z=A(K[R]);return new b("Invalid "+_+" `"+q+"` of type "+("`"+z+"` supplied to `"+U+"`, expected ")+("instance of `"+Z+"`."))}return null}return C(j)}function $(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function j(K,R,U,_,q){for(var Z=K[R],z=0;z<E.length;z++)if(g(Z,E[z]))return null;var J=JSON.stringify(E,function(ae,X){var Ee=V(X);return Ee==="symbol"?String(X):X});return new b("Invalid "+_+" `"+q+"` of value `"+String(Z)+"` "+("supplied to `"+U+"`, expected one of "+J+"."))}return C(j)}function S(E){function j(K,R,U,_,q){if(typeof E!="function")return new b("Property `"+q+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var Z=K[R],z=F(Z);if(z!=="object")return new b("Invalid "+_+" `"+q+"` of type "+("`"+z+"` supplied to `"+U+"`, expected an object."));for(var J in Z)if(r(Z,J)){var W=E(Z,J,U,_,q+"."+J,n);if(W instanceof Error)return W}return null}return C(j)}function T(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var j=0;j<E.length;j++){var K=E[j];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(K)+" at index "+j+"."),i}function R(U,_,q,Z,z){for(var J=[],W=0;W<E.length;W++){var ae=E[W],X=ae(U,_,q,Z,z,n);if(X==null)return null;X.data&&r(X.data,"expectedType")&&J.push(X.data.expectedType)}var Ee=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new b("Invalid "+Z+" `"+z+"` supplied to "+("`"+q+"`"+Ee+"."))}return C(R)}function I(){function E(j,K,R,U,_){return D(j[K])?null:new b("Invalid "+U+" `"+_+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return C(E)}function L(E,j,K,R,U){return new b((E||"React class")+": "+j+" type `"+K+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function N(E){function j(K,R,U,_,q){var Z=K[R],z=F(Z);if(z!=="object")return new b("Invalid "+_+" `"+q+"` of type `"+z+"` "+("supplied to `"+U+"`, expected `object`."));for(var J in E){var W=E[J];if(typeof W!="function")return L(U,_,q,J,V(W));var ae=W(Z,J,U,_,q+"."+J,n);if(ae)return ae}return null}return C(j)}function O(E){function j(K,R,U,_,q){var Z=K[R],z=F(Z);if(z!=="object")return new b("Invalid "+_+" `"+q+"` of type `"+z+"` "+("supplied to `"+U+"`, expected `object`."));var J=t({},K[R],E);for(var W in J){var ae=E[W];if(r(E,W)&&typeof ae!="function")return L(U,_,q,W,V(ae));if(!ae)return new b("Invalid "+_+" `"+q+"` key `"+W+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(K[R],null," ")+`
4837
4841
  Valid keys: `+JSON.stringify(Object.keys(E),null," "));var X=ae(Z,W,U,_,q+"."+W,n);if(X)return X}return null}return C(j)}function D(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(D);if(E===null||u(E))return!0;var j=p(E);if(j){var K=j.call(E),R;if(j!==E.entries){for(;!(R=K.next()).done;)if(!D(R.value))return!1}else for(;!(R=K.next()).done;){var U=R.value;if(U&&!D(U[1]))return!1}}else return!1;return!0;default:return!1}}function M(E,j){return E==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function F(E){var j=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":M(j,E)?"symbol":j}function V(E){if(typeof E>"u"||E===null)return""+E;var j=F(E);if(j==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return j}function H(E){var j=V(E);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function A(E){return!E.constructor||!E.constructor.name?h:E.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},$1}var D1,Q4;function jR(){if(Q4)return D1;Q4=1;var e=W3();function t(){}function n(){}return n.resetWarningCache=t,D1=function(){function r(i,u,s,d,f,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},D1}var e2;function OR(){if(e2)return Ci.exports;if(e2=1,process.env.NODE_ENV!=="production"){var e=Wm(),t=!0;Ci.exports=LR()(e.isElement,t)}else Ci.exports=jR()();return Ci.exports}var KR=OR();const Ka=CC(KR);function wo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const HR=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"}));function qm(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":wo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const t2=e=>e,NR=()=>{let e=t2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=t2}}},zR=NR(),ZR={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _R(e,t,n="Mui"){const r=ZR[t];return r?`${n}-${r}`:`${zR.generate(e)}-${t}`}function UR(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const WR=Object.freeze(Object.defineProperty({__proto__:null,default:UR},Symbol.toStringTag,{value:"Module"}));function Ma(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const GR=["values","unit","step"],qR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>We({},n,{[r.key]:r.val}),{})};function YR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,a=Ma(e,GR),o=qR(t),i=Object.keys(o);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function s(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function d(h,m){const g=i.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:m)-r/100}${n})`}function f(h){return i.indexOf(h)+1<i.length?d(h,i[i.indexOf(h)+1]):u(h)}function p(h){const m=i.indexOf(h);return m===0?u(i[1]):m===i.length-1?s(i[m]):d(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return We({keys:i,values:o,up:u,down:s,between:d,only:f,not:p,unit:n},a)}const XR={borderRadius:4},cr=process.env.NODE_ENV!=="production"?Ka.oneOfType([Ka.number,Ka.string,Ka.object,Ka.array]):{};function ro(e,t){return t?dn(e,t,{clone:!1}):e}const G3={xs:0,sm:600,md:900,lg:1200,xl:1536},n2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${G3[e]}px)`};function An(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||n2;return t.reduce((i,u,s)=>(i[o.up(o.keys[s])]=n(t[s]),i),{})}if(typeof t=="object"){const o=r.breakpoints||n2;return Object.keys(t).reduce((i,u)=>{if(Object.keys(o.values||G3).indexOf(u)!==-1){const s=o.up(u);i[s]=n(t[u],u)}else{const s=u;i[s]=t[s]}return i},{})}return n(t)}function JR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,a)=>{const o=e.up(a);return r[o]={},r},{}))||{}}function r2(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function ml(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function xu(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=ml(e,n)||r,t&&(a=t(a,r,e)),a}function ze(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=i=>{if(i[t]==null)return null;const u=i[t],s=i.theme,d=ml(s,r)||{};return An(i,u,p=>{let h=xu(d,a,p);return p===h&&typeof p=="string"&&(h=xu(d,a,`${t}${p==="default"?"":qm(p)}`,p)),n===!1?h:{[n]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:cr}:{},o.filterProps=[t],o}function QR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const eL={m:"margin",p:"padding"},tL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},a2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nL=QR(e=>{if(e.length>2)if(a2[e])e=a2[e];else return[e];const[t,n]=e.split(""),r=eL[t],a=tL[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),gl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rL=[...gl,...bl];function _o(e,t,n,r){var a;const o=(a=ml(e,t,!1))!=null?a:n;return typeof o=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),o*i):Array.isArray(o)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>o.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${i} > ${o.length-1}, you need to add the missing values.`].join(`
4838
4842
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
4839
4843
  `))),o[i]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
@@ -26973,6 +26973,10 @@ const Qk = {
26973
26973
  background: var(--color-content-neutral-primary-reversed);
26974
26974
  box-shadow: 10px 10px 24px 0 rgba(0, 0, 0, 0.05);
26975
26975
  list-style: none;
26976
+
26977
+ &[data-tall="true"] {
26978
+ max-height: 400px;
26979
+ }
26976
26980
  `, eP = S.div`
26977
26981
  ${Qo}
26978
26982
  `, Ps = S(he)`
@@ -27235,8 +27239,8 @@ const Qk = {
27235
27239
  }
27236
27240
  )
27237
27241
  ), iP = y.forwardRef(
27238
- ({ items: e, children: t, ...n }, r) => /* @__PURE__ */ Z(eP, { ...n, ref: r, children: [
27239
- e?.map((a) => /* @__PURE__ */ f(ec, { ...a }, a.text)),
27242
+ ({ items: e, children: t, tallDropdown: n, ...r }, a) => /* @__PURE__ */ Z(eP, { ...r, ref: a, "data-tall": n || void 0, children: [
27243
+ e?.map((o) => /* @__PURE__ */ f(ec, { ...o }, o.text)),
27240
27244
  t
27241
27245
  ] })
27242
27246
  );
@@ -28537,7 +28541,7 @@ const vm = S(Ju).withConfig({
28537
28541
  ),
28538
28542
  /* @__PURE__ */ f(qP, { iconLeft: "expand_more", mode: "tertiary" })
28539
28543
  ] }),
28540
- /* @__PURE__ */ f(YP, { offset: 4, placement: "bottom", children: /* @__PURE__ */ f(XP, { children: (o) => /* @__PURE__ */ f(
28544
+ /* @__PURE__ */ f(YP, { offset: 4, placement: "bottom", children: /* @__PURE__ */ f(XP, { "data-tall": e.tallDropdown || void 0, children: (o) => /* @__PURE__ */ f(
28541
28545
  Aa,
28542
28546
  {
28543
28547
  ...o,
@@ -28760,6 +28764,7 @@ const S4 = y.forwardRef((e, t) => {
28760
28764
  c !== "all" && e.onSelectionChange([...c].map(String));
28761
28765
  },
28762
28766
  style: { "--trigger-width": u },
28767
+ "data-tall": e.tallDropdown || void 0,
28763
28768
  children: e.children
28764
28769
  }
28765
28770
  ) })
@@ -28798,7 +28803,7 @@ const S4 = y.forwardRef((e, t) => {
28798
28803
  ]
28799
28804
  }
28800
28805
  ),
28801
- /* @__PURE__ */ f(B4, { offset: 4, placement: "bottom", children: /* @__PURE__ */ f(k4, { children: e.children }) })
28806
+ /* @__PURE__ */ f(B4, { offset: 4, placement: "bottom", children: /* @__PURE__ */ f(k4, { "data-tall": e.tallDropdown || void 0, children: e.children }) })
28802
28807
  ]
28803
28808
  }
28804
28809
  ) });
@@ -32624,7 +32629,8 @@ function aF({
32624
32629
  isOpen: n,
32625
32630
  onOpenChange: r,
32626
32631
  defaultOpen: a,
32627
- placement: o = "bottom"
32632
+ placement: o = "bottom",
32633
+ tallDropdown: i
32628
32634
  }) {
32629
32635
  return /* @__PURE__ */ Z(
32630
32636
  tF,
@@ -32634,7 +32640,7 @@ function aF({
32634
32640
  defaultOpen: a,
32635
32641
  children: [
32636
32642
  /* @__PURE__ */ f(Me, { ...t }),
32637
- /* @__PURE__ */ f(nF, { offset: 8, placement: o, children: /* @__PURE__ */ f(rF, { children: e }) })
32643
+ /* @__PURE__ */ f(nF, { offset: 8, placement: o, children: /* @__PURE__ */ f(rF, { "data-tall": i || void 0, children: e }) })
32638
32644
  ]
32639
32645
  }
32640
32646
  );
@@ -37610,6 +37616,7 @@ const KO = y.forwardRef(
37610
37616
  }), l(!0)), i(!1);
37611
37617
  },
37612
37618
  style: { "--trigger-width": m },
37619
+ "data-tall": e.tallDropdown || void 0,
37613
37620
  children: n2.map(({ id: x, text: C }) => /* @__PURE__ */ f(Aa, { text: c[C], id: x }, x))
37614
37621
  }
37615
37622
  )
@@ -37638,6 +37645,7 @@ const KO = y.forwardRef(
37638
37645
  }), l(!1);
37639
37646
  },
37640
37647
  style: { "--trigger-width": m },
37648
+ "data-tall": e.tallDropdown || void 0,
37641
37649
  children: v.map((x) => /* @__PURE__ */ f(Aa, { text: x, id: x }, x))
37642
37650
  }
37643
37651
  )
@@ -80,6 +80,10 @@ export type Props = Pick<LabelProps, "label" | "labelIconRight" | "labelIconRigh
80
80
  * The filter function used to determine if a option should be included in the combo box list.
81
81
  */
82
82
  defaultFilter?: (textValue: string, inputValue: string) => boolean;
83
+ /**
84
+ * When true, increases the dropdown max-height from 200px to 400px.
85
+ */
86
+ tallDropdown?: boolean;
83
87
  };
84
88
  declare const Combobox: React.ForwardRefExoticComponent<Pick<LabelProps, "label" | "required" | "labelIconRight" | "labelIconRightTooltip"> & Pick<FormGroupWrapperProps, "orientation" | "description" | "helperText" | "helperTextIcon" | "errorHelperText" | "errorHelperTextIcon" | "successHelperText" | "successHelperTextIcon" | "warningHelperText" | "warningHelperTextIcon"> & {
85
89
  /**
@@ -158,5 +162,9 @@ declare const Combobox: React.ForwardRefExoticComponent<Pick<LabelProps, "label"
158
162
  * The filter function used to determine if a option should be included in the combo box list.
159
163
  */
160
164
  defaultFilter?: (textValue: string, inputValue: string) => boolean;
165
+ /**
166
+ * When true, increases the dropdown max-height from 200px to 400px.
167
+ */
168
+ tallDropdown?: boolean;
161
169
  } & React.RefAttributes<HTMLInputElement>>;
162
170
  export default Combobox;
@@ -18,6 +18,10 @@ export type Props = {
18
18
  * The inline style for the element.
19
19
  */
20
20
  style?: React.CSSProperties;
21
+ /**
22
+ * When true, increases the dropdown max-height from 200px to 400px.
23
+ */
24
+ tallDropdown?: boolean;
21
25
  };
22
26
  declare const Dropdown: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
23
27
  export default Dropdown;
@@ -28,6 +28,10 @@ export interface Props {
28
28
  * @default "bottom"
29
29
  */
30
30
  placement?: Placement;
31
+ /**
32
+ * When true, increases the dropdown max-height from 200px to 400px.
33
+ */
34
+ tallDropdown?: boolean;
31
35
  }
32
- export default function Menu({ children, buttonProps, isOpen, onOpenChange, defaultOpen, placement, }: Props): import("react/jsx-runtime").JSX.Element;
36
+ export default function Menu({ children, buttonProps, isOpen, onOpenChange, defaultOpen, placement, tallDropdown, }: Props): import("react/jsx-runtime").JSX.Element;
33
37
  export {};
@@ -60,6 +60,10 @@ interface GenericProps extends Pick<LabelProps, "label" | "labelIconRight" | "la
60
60
  * If you give a ReactNode as label, you should then provide an aria-label as string to ensure there is no accessibility issue
61
61
  */
62
62
  "aria-label"?: string;
63
+ /**
64
+ * When true, increases the dropdown max-height from 200px to 400px.
65
+ */
66
+ tallDropdown?: boolean;
63
67
  }
64
68
  interface SelectSingleProps extends GenericProps {
65
69
  /**
@@ -80,6 +80,10 @@ export type Props = Pick<LabelProps, "label" | "labelIconRight" | "labelIconRigh
80
80
  * @default "ascending"
81
81
  */
82
82
  sortYears?: "ascending" | "descending";
83
+ /**
84
+ * When true, increases the dropdown max-height from 200px to 400px.
85
+ */
86
+ tallDropdown?: boolean;
83
87
  };
84
88
  declare const YearMonthPicker: React.ForwardRefExoticComponent<Pick<LabelProps, "label" | "required" | "labelIconRight" | "labelIconRightTooltip"> & Pick<FormGroupWrapperProps, "orientation" | "description" | "helperText" | "helperTextIcon" | "errorHelperText" | "errorHelperTextIcon" | "successHelperText" | "successHelperTextIcon" | "warningHelperText" | "warningHelperTextIcon"> & {
85
89
  /**
@@ -148,5 +152,9 @@ declare const YearMonthPicker: React.ForwardRefExoticComponent<Pick<LabelProps,
148
152
  * @default "ascending"
149
153
  */
150
154
  sortYears?: "ascending" | "descending";
155
+ /**
156
+ * When true, increases the dropdown max-height from 200px to 400px.
157
+ */
158
+ tallDropdown?: boolean;
151
159
  } & React.RefAttributes<HTMLDivElement>>;
152
160
  export default YearMonthPicker;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agregio-solutions/design-system",
3
- "version": "1.90.1",
3
+ "version": "1.91.0",
4
4
  "description": "React Component library and Storybook that is part of the Design System for Agregio Solutions",
5
5
  "type": "module",
6
6
  "module": "dist/design-system.js",