@agregio-solutions/design-system 1.86.2 → 1.86.4

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 (41) hide show
  1. package/dist/design-system.cjs +6 -6
  2. package/dist/design-system.js +15 -8
  3. package/dist/packages/components/Accordion/Accordion.d.ts +1 -2
  4. package/dist/packages/components/Checkbox/index.d.ts +1 -1
  5. package/dist/packages/components/CheckboxGroup/index.d.ts +1 -1
  6. package/dist/packages/components/Chip/index.d.ts +1 -1
  7. package/dist/packages/components/DataTable/DataTableCell/index.d.ts +1 -2
  8. package/dist/packages/components/DataTable/DataTableEmptyPlaceholder/index.d.ts +1 -2
  9. package/dist/packages/components/DataTable/DataTableRoot/index.d.ts +1 -2
  10. package/dist/packages/components/DataTable/DataTableRow/index.d.ts +1 -2
  11. package/dist/packages/components/Dropdown/index.d.ts +1 -1
  12. package/dist/packages/components/FileUpload/index.d.ts +1 -1
  13. package/dist/packages/components/LinearProgressBar/LinearProgressBar.d.ts +1 -2
  14. package/dist/packages/components/Link/index.d.ts +1 -1
  15. package/dist/packages/components/Loader/index.d.ts +1 -2
  16. package/dist/packages/components/Menu/index.d.ts +1 -1
  17. package/dist/packages/components/Message/Message.d.ts +1 -2
  18. package/dist/packages/components/Navigation/index.d.ts +1 -2
  19. package/dist/packages/components/NavigationItem/getIsActive.test.d.ts +1 -0
  20. package/dist/packages/components/NavigationItem/index.d.ts +1 -1
  21. package/dist/packages/components/PageLayout/PageLayout.d.ts +1 -2
  22. package/dist/packages/components/Pagination/index.d.ts +1 -1
  23. package/dist/packages/components/Radio/index.d.ts +1 -1
  24. package/dist/packages/components/RouterProvider/index.d.ts +1 -1
  25. package/dist/packages/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  26. package/dist/packages/components/SegmentedControl/SegmentedControlButton/SegmentedControlButton.d.ts +1 -1
  27. package/dist/packages/components/SegmentedControl/SegmentedControlList/SegmentedControlList.d.ts +1 -1
  28. package/dist/packages/components/SegmentedControl/SegmentedControlPanel/SegmentedControlPanel.d.ts +1 -1
  29. package/dist/packages/components/Slider/Slider.d.ts +1 -2
  30. package/dist/packages/components/Switch/index.d.ts +1 -1
  31. package/dist/packages/components/Tabs/Tab/index.d.ts +1 -1
  32. package/dist/packages/components/Tabs/TabList/index.d.ts +1 -1
  33. package/dist/packages/components/Tabs/TabPanel/index.d.ts +1 -1
  34. package/dist/packages/components/Tabs/Tabs/index.d.ts +1 -1
  35. package/dist/packages/components/Timeline/components/BlockLineContainer/BlockLineContainer.d.ts +1 -2
  36. package/dist/packages/components/Timeline/components/BlockLineContainer/components/ExpandButton/ExpandButton.d.ts +1 -2
  37. package/dist/packages/components/Timeline/components/BlockLineContainer/components/NameBlock/NameBlock.d.ts +1 -2
  38. package/dist/packages/components/Timeline/components/TimelineRange/TimelineRange.d.ts +1 -1
  39. package/dist/packages/components/Timeline/utils/Timeline.types.d.ts +1 -1
  40. package/dist/packages/components/Toaster/index.d.ts +1 -2
  41. package/package.json +1 -1
@@ -1489,7 +1489,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1489
1489
  border-radius: var(--radius-rounded);
1490
1490
  }
1491
1491
 
1492
- &[data-placeholder] {
1492
+ & span[data-placeholder] {
1493
1493
  color: var(--color-content-neutral-tertiary);
1494
1494
  }
1495
1495
 
@@ -1532,7 +1532,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1532
1532
  display: flex;
1533
1533
  align-items: center;
1534
1534
  column-gap: var(--spacing-xs);
1535
- `;function Hk(){return typeof window.ResizeObserver<"u"}function Yp(e){const{ref:t,onResize:n}=e;l.useEffect(()=>{const r=t?.current;if(r)if(Hk()){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 J1=l.forwardRef((e,t)=>{const n=je(Kk),r=e["aria-label"]??String(e.label),a=Pr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),o={...e.wrapperProps,htmlForId:e.id,label:e.label,labelIconRight:e.labelIconRight,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 Yp({ref:i,onResize:d}),e.mode==="multiple"?c.jsx(Ut,{...o,ref:t,children:c.jsxs(ju,{defaultOpen:e.defaultOpen,isOpen:e.open,onOpenChange:e.onOpenChange,children:[c.jsxs(Ic,{...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",{children:e.placeholder||""}),!!e.selectedKeys?.length&&c.jsxs(Ok,{children:[c.jsx(xa,{value:e.selectedKeys.length,nature:"informative"}),e.selectedKeys.length===1?` ${n.itemSelected}`:` ${n.itemsSelected}`]}),c.jsxs(Oc,{children:[e.triggerContentRight,c.jsx(Rc,{name:"expand_more","data-disabled":e.disabled})]})]}),c.jsx(jc,{offset:4,placement:"bottom",children:c.jsx(Lc,{"aria-label":`${n.selectionFor} ${r}`,selectionMode:"multiple",selectedKeys:e.selectedKeys,disabledKeys:e.disabledIds,onSelectionChange:p=>{p!=="all"&&e.onSelectionChange([...p].map(String))},style:{"--trigger-width":u},children:e.children})})]})}):c.jsx(Ut,{...o,children:c.jsxs(jk,{ref:t,id:e.id,isDisabled:e.disabled,isRequired:e.required,onSelectionChange:p=>e.onChange?.(String(p)),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(Ic,{...e.buttonProps,type:"button","data-nature":a,"data-fullwidth":e.fullWidth,children:[c.jsx(Lk,{children:p=>p.isPlaceholder?e.placeholder||"":p.selectedText}),c.jsxs(Oc,{children:[e.triggerContentRight,c.jsx(Rc,{name:"expand_more","data-disabled":e.disabled})]})]}),c.jsx(jc,{offset:4,placement:"bottom",children:c.jsx(Lc,{children:e.children})})]})})}),Kk={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 zk(e,t){return Array.from({length:e},(n,r)=>r+0)}const Nk=P.div`
1535
+ `;function Hk(){return typeof window.ResizeObserver<"u"}function Yp(e){const{ref:t,onResize:n}=e;l.useEffect(()=>{const r=t?.current;if(r)if(Hk()){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 J1=l.forwardRef((e,t)=>{const n=je(Kk),r=e["aria-label"]??String(e.label),a=Pr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),o={...e.wrapperProps,htmlForId:e.id,label:e.label,labelIconRight:e.labelIconRight,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 Yp({ref:i,onResize:d}),e.mode==="multiple"?c.jsx(Ut,{...o,ref:t,children:c.jsxs(ju,{defaultOpen:e.defaultOpen,isOpen:e.open,onOpenChange:e.onOpenChange,children:[c.jsxs(Ic,{...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(Ok,{children:[c.jsx(xa,{value:e.selectedKeys.length,nature:"informative"}),e.selectedKeys.length===1?` ${n.itemSelected}`:` ${n.itemsSelected}`]}),c.jsxs(Oc,{children:[e.triggerContentRight,c.jsx(Rc,{name:"expand_more","data-disabled":e.disabled})]})]}),c.jsx(jc,{offset:4,placement:"bottom",children:c.jsx(Lc,{"aria-label":`${n.selectionFor} ${r}`,selectionMode:"multiple",selectedKeys:e.selectedKeys,disabledKeys:e.disabledIds,onSelectionChange:p=>{p!=="all"&&e.onSelectionChange([...p].map(String))},style:{"--trigger-width":u},children:e.children})})]})}):c.jsx(Ut,{...o,children:c.jsxs(jk,{ref:t,id:e.id,isDisabled:e.disabled,isRequired:e.required,onSelectionChange:p=>e.onChange?.(String(p)),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(Ic,{...e.buttonProps,type:"button","data-nature":a,"data-fullwidth":e.fullWidth,children:[c.jsx(Lk,{children:p=>p.isPlaceholder?e.placeholder||"":p.selectedText}),c.jsxs(Oc,{children:[e.triggerContentRight,c.jsx(Rc,{name:"expand_more","data-disabled":e.disabled})]})]}),c.jsx(jc,{offset:4,placement:"bottom",children:c.jsx(Lc,{children:e.children})})]})})}),Kk={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 zk(e,t){return Array.from({length:e},(n,r)=>r+0)}const Nk=P.div`
1536
1536
  display: flex;
1537
1537
  align-items: center;
1538
1538
  justify-content: space-between;
@@ -1793,7 +1793,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1793
1793
  }
1794
1794
 
1795
1795
  &[data-placeholder="true"] {
1796
- color: var(--color-content-neutral-secondary);
1796
+ color: var(--color-content-neutral-tertiary);
1797
1797
  }
1798
1798
  }
1799
1799
 
@@ -1886,7 +1886,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
1886
1886
  }
1887
1887
 
1888
1888
  &[data-placeholder="true"] {
1889
- color: var(--color-content-neutral-secondary);
1889
+ color: var(--color-content-neutral-tertiary);
1890
1890
  }
1891
1891
  }
1892
1892
 
@@ -2931,7 +2931,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
2931
2931
  display: none;
2932
2932
  }
2933
2933
  }
2934
- `;function DA({label:e,ariaLabel:t}){return t??String(e)}function nu({label:e,href:t,isActive:n,subLinks:r,iconLeft:a,defaultOpen:o,className:i,style:u,onClick:s,"aria-label":d,...p}){const{isCollapsed:f,setIsCollapsed:h,currentPath:g}=$h(),m=_u(),[v,x]=l.useState(o||!1),w=!!!t&&!!r?.length,y=r4({controlledIsActive:n,isDropdown:w,href:t,subLinks:r,currentPath:g}),$=!f&&v;return l.useEffect(()=>{g&&y&&w&&x(!0)},[g,y,w]),c.jsxs(c.Fragment,{children:[c.jsxs(bA,{"data-active":y,href:t,onPress:()=>{w||m?.setIsCollapsed(!0),s?s():w&&(x(B=>!B),h(!1))},"data-collapsed":f,className:i,style:u,"aria-label":DA({label:e,ariaLabel:d}),"data-is-dropdown":w,...p,children:[a&&c.jsx(xA,{name:a}),c.jsx($A,{"data-is-collapsed":f,children:e}),w&&c.jsx(yA,{"data-is-collapsed":f,name:"chevron_right","data-open":$})]}),w&&$&&c.jsx(c.Fragment,{children:r.map(B=>{const k=B.wrapperComponent||(D=>D);return c.jsx(l.Fragment,{children:k(c.jsx(nu,{href:B.href,isActive:r4({controlledIsActive:B.isActive,isDropdown:!1,href:B.href,currentPath:g}),label:B.label,"data-is-dropdown-item":!0}))},B.href)})})]})}const r4=({controlledIsActive:e,isDropdown:t,href:n,subLinks:r,currentPath:a})=>{if(e!=null)return e;if(a==null)return!1;const o=Ul(a);return t&&r&&r.length>0?r.some(i=>o.startsWith(Ul(i.href))):!!(n&&o.startsWith(Ul(n)))},Ul=e=>e.split("?")[0];function wA({children:e,logo:t,onParametersClick:n,onLogoutClick:r,footerElements:a,...o}){const i=je(BA),{isCollapsed:u,setIsCollapsed:s}=$h(),d=_u(),p=!!n||!!r;return c.jsxs(fA,{"data-collapsed":u,"data-page-layout-collapsed":d?.isCollapsed,...o,children:[c.jsxs(pA,{"data-collapsed":u,children:[!u&&c.jsx(vA,{title:t,"data-type":t}),c.jsx(xh,{"data-testid":"navigation-mobile-collapsed-menu",onPress:()=>s(f=>!f),"aria-label":u?i.open:i.close,"data-collapsed":u,children:c.jsx(ne,{name:"collapse_menu"})}),c.jsx(hA,{"data-testid":"navigation-mobile-close-menu",onPress:()=>d?.setIsCollapsed(f=>!f),"aria-label":d?.isCollapsed?i.open:i.close,"data-collapsed":d?.isCollapsed,children:c.jsx(ne,{name:"close"})})]}),c.jsx(mA,{children:e}),p&&c.jsxs(c.Fragment,{children:[c.jsx(gA,{"data-collapsed":u,children:c.jsx("hr",{})}),c.jsxs("footer",{children:[a,!!n&&c.jsx(nu,{iconLeft:"settings",label:i.settings,onClick:n,"aria-label":i.settings}),!!r&&c.jsx(nu,{iconLeft:"logout",label:i.logout,onClick:r,"aria-label":i.logout})]})]})]})}function EA({initialIsCollapsed:e,currentPath:t,...n}){return c.jsx(CA,{initialIsCollapsed:e,currentPath:t,children:c.jsx(wA,{...n})})}const BA={en:{close:"Close navigation",open:"Open navigation",settings:"Settings",logout:"Logout"},fr:{close:"Fermer la navigation",open:"Ouvrir la navigation",settings:"Paramètres",logout:"Déconnexion"}},kA=P(ju)``,SA=P(En)`
2934
+ `;function DA({label:e,ariaLabel:t}){return t??String(e)}function nu({label:e,href:t,isActive:n,subLinks:r,iconLeft:a,defaultOpen:o,className:i,style:u,onClick:s,"aria-label":d,...p}){const{isCollapsed:f,setIsCollapsed:h,currentPath:g}=$h(),m=_u(),[v,x]=l.useState(o||!1),w=!!!t&&!!r?.length,y=r4({controlledIsActive:n,isDropdown:w,href:t,subLinks:r,currentPath:g}),$=!f&&v;return l.useEffect(()=>{g&&y&&w&&x(!0)},[g,y,w]),c.jsxs(c.Fragment,{children:[c.jsxs(bA,{"data-active":y,href:t,onPress:()=>{w||m?.setIsCollapsed(!0),s?s():w&&(x(B=>!B),h(!1))},"data-collapsed":f,className:i,style:u,"aria-label":DA({label:e,ariaLabel:d}),"data-is-dropdown":w,...p,children:[a&&c.jsx(xA,{name:a}),c.jsx($A,{"data-is-collapsed":f,children:e}),w&&c.jsx(yA,{"data-is-collapsed":f,name:"chevron_right","data-open":$})]}),w&&$&&c.jsx(c.Fragment,{children:r.map(B=>{const k=B.wrapperComponent||(D=>D);return c.jsx(l.Fragment,{children:k(c.jsx(nu,{href:B.href,isActive:r4({controlledIsActive:B.isActive,isDropdown:!1,href:B.href,currentPath:g}),label:B.label,"data-is-dropdown-item":!0}))},B.href)})})]})}const r4=({controlledIsActive:e,isDropdown:t,href:n,subLinks:r,currentPath:a})=>{if(e!=null)return e;if(a==null)return!1;const o=Ul(a);if(t&&r&&r.length>0)return r.some(i=>o.startsWith(Ul(i.href)));if(n){const i=Ul(n);if(i==="/")return o==="/";if(o.startsWith(i))return!0}return!1},Ul=e=>e.split("?")[0];function wA({children:e,logo:t,onParametersClick:n,onLogoutClick:r,footerElements:a,...o}){const i=je(BA),{isCollapsed:u,setIsCollapsed:s}=$h(),d=_u(),p=!!n||!!r;return c.jsxs(fA,{"data-collapsed":u,"data-page-layout-collapsed":d?.isCollapsed,...o,children:[c.jsxs(pA,{"data-collapsed":u,children:[!u&&c.jsx(vA,{title:t,"data-type":t}),c.jsx(xh,{"data-testid":"navigation-mobile-collapsed-menu",onPress:()=>s(f=>!f),"aria-label":u?i.open:i.close,"data-collapsed":u,children:c.jsx(ne,{name:"collapse_menu"})}),c.jsx(hA,{"data-testid":"navigation-mobile-close-menu",onPress:()=>d?.setIsCollapsed(f=>!f),"aria-label":d?.isCollapsed?i.open:i.close,"data-collapsed":d?.isCollapsed,children:c.jsx(ne,{name:"close"})})]}),c.jsx(mA,{children:e}),p&&c.jsxs(c.Fragment,{children:[c.jsx(gA,{"data-collapsed":u,children:c.jsx("hr",{})}),c.jsxs("footer",{children:[a,!!n&&c.jsx(nu,{iconLeft:"settings",label:i.settings,onClick:n,"aria-label":i.settings}),!!r&&c.jsx(nu,{iconLeft:"logout",label:i.logout,onClick:r,"aria-label":i.logout})]})]})]})}function EA({initialIsCollapsed:e,currentPath:t,...n}){return c.jsx(CA,{initialIsCollapsed:e,currentPath:t,children:c.jsx(wA,{...n})})}const BA={en:{close:"Close navigation",open:"Open navigation",settings:"Settings",logout:"Logout"},fr:{close:"Fermer la navigation",open:"Ouvrir la navigation",settings:"Paramètres",logout:"Déconnexion"}},kA=P(ju)``,SA=P(En)`
2935
2935
  width: min(calc(100vw - var(--spacing-sm) * 2), 448px);
2936
2936
  outline: none;
2937
2937
  `,PA=P(Sr)`
@@ -4155,7 +4155,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
4155
4155
  &[data-nature="warning"] {
4156
4156
  outline-color: var(--color-content-message-warning-darker);
4157
4157
  }
4158
- `,OM=l.forwardRef(({wrapperProps:e,id:t,label:n,labelIconRight:r,description:a,helperTextIcon:o,helperText:i,errorHelperText:u,errorHelperTextIcon:s,successHelperText:d,successHelperTextIcon:p,warningHelperText:f,warningHelperTextIcon:h,required:g,nature:m,fullWidth:v,isDisabled:x,defaultValue:C,onChange:w,value:y,ampm:$,orientation:B,...k},D)=>{const T=k["aria-label"]??String(n),F=Pr({nature:m,successHelperText:d,errorHelperText:u,warningHelperText:f}),A={...e,htmlForId:t,label:n,labelIconRight:r,description:a,helperTextIcon:o,helperText:i,errorHelperText:u,errorHelperTextIcon:s,successHelperText:d,successHelperTextIcon:p,warningHelperText:f,warningHelperTextIcon:h,required:g,orientation:B};let V;return $===!0&&(V=12),$===!1&&(V=24),c.jsx(Ut,{...A,ref:D,children:c.jsx(jM,{...k,id:t,isDisabled:x,"aria-label":T,isRequired:g,"data-fullwidth":v,defaultValue:C?xd(C):void 0,onChange:_=>w?.((_||"").toString()),value:typeof y=="string"?xd(y):y,hourCycle:V,children:c.jsx(LM,{"data-fullwidth":v,"aria-disabled":x,"data-nature":F,children:_=>c.jsx(Qi,{segment:_})})})})});function HM(e){return e.type==="group"}const kh=150,KM=58,zM=40,Sh=e=>e>0?zM:KM,NM=5,ZM=3,Ph=e=>e>0?ZM:NM,_M=le.div`
4158
+ `,OM=l.forwardRef(({wrapperProps:e,id:t,label:n,labelIconRight:r,description:a,helperTextIcon:o,helperText:i,errorHelperText:u,errorHelperTextIcon:s,successHelperText:d,successHelperTextIcon:p,warningHelperText:f,warningHelperTextIcon:h,required:g,nature:m,fullWidth:v,isDisabled:x,defaultValue:C,onChange:w,value:y,ampm:$,orientation:B,...k},D)=>{const T=k["aria-label"]??String(n),F=Pr({nature:m,successHelperText:d,errorHelperText:u,warningHelperText:f}),A={...e,htmlForId:t,label:n,labelIconRight:r,description:a,helperTextIcon:o,helperText:i,errorHelperText:u,errorHelperTextIcon:s,successHelperText:d,successHelperTextIcon:p,warningHelperText:f,warningHelperTextIcon:h,required:g,orientation:B};let V;return $===!0&&(V=12),$===!1&&(V=24),c.jsx(Ut,{...A,ref:D,children:c.jsx(jM,{...k,id:t,isDisabled:x,"aria-label":T,isRequired:g,"data-fullwidth":v,defaultValue:C?xd(C):void 0,onChange:_=>w?.((_||"").toString()),value:typeof y=="string"?xd(y):y,hourCycle:V,children:c.jsx(LM,{"data-fullwidth":v,"aria-disabled":x,"data-nature":F,children:_=>c.jsx(Qi,{segment:_})})})})});function HM(e){return e.type==="group"}const kh=188,KM=58,zM=40,Sh=e=>e>0?zM:KM,NM=5,ZM=3,Ph=e=>e>0?ZM:NM,_M=le.div`
4159
4159
  display: flex;
4160
4160
  align-items: flex-end;
4161
4161
  overflow-x: auto;
@@ -27846,7 +27846,7 @@ const zk = S(Hp)`
27846
27846
  border-radius: var(--radius-rounded);
27847
27847
  }
27848
27848
 
27849
- &[data-placeholder] {
27849
+ & span[data-placeholder] {
27850
27850
  color: var(--color-content-neutral-tertiary);
27851
27851
  }
27852
27852
 
@@ -27954,7 +27954,7 @@ const Jc = D.forwardRef((e, t) => {
27954
27954
  "aria-label": r,
27955
27955
  isDisabled: e.disabled,
27956
27956
  children: [
27957
- !e.selectedKeys?.length && /* @__PURE__ */ f("span", { children: e.placeholder || "" }),
27957
+ !e.selectedKeys?.length && /* @__PURE__ */ f("span", { "data-placeholder": !0, children: e.placeholder || "" }),
27958
27958
  !!e.selectedKeys?.length && /* @__PURE__ */ _(Zk, { children: [
27959
27959
  /* @__PURE__ */ f(Lo, { value: e.selectedKeys.length, nature: "informative" }),
27960
27960
  e.selectedKeys.length === 1 ? ` ${n.itemSelected}` : ` ${n.itemsSelected}`
@@ -28591,7 +28591,7 @@ const mP = S(j$)`
28591
28591
  }
28592
28592
 
28593
28593
  &[data-placeholder="true"] {
28594
- color: var(--color-content-neutral-secondary);
28594
+ color: var(--color-content-neutral-tertiary);
28595
28595
  }
28596
28596
  }
28597
28597
 
@@ -28786,7 +28786,7 @@ const mP = S(j$)`
28786
28786
  }
28787
28787
 
28788
28788
  &[data-placeholder="true"] {
28789
- color: var(--color-content-neutral-secondary);
28789
+ color: var(--color-content-neutral-tertiary);
28790
28790
  }
28791
28791
  }
28792
28792
 
@@ -32395,9 +32395,16 @@ const m4 = ({
32395
32395
  if (e != null) return e;
32396
32396
  if (a == null) return !1;
32397
32397
  const o = Xl(a);
32398
- return t && r && r.length > 0 ? r.some(
32399
- (i) => o.startsWith(Xl(i.href))
32400
- ) : !!(n && o.startsWith(Xl(n)));
32398
+ if (t && r && r.length > 0)
32399
+ return r.some(
32400
+ (i) => o.startsWith(Xl(i.href))
32401
+ );
32402
+ if (n) {
32403
+ const i = Xl(n);
32404
+ if (i === "/") return o === "/";
32405
+ if (o.startsWith(i)) return !0;
32406
+ }
32407
+ return !1;
32401
32408
  }, Xl = (e) => e.split("?")[0];
32402
32409
  function vA({
32403
32410
  children: e,
@@ -34644,7 +34651,7 @@ const rM = (e) => {
34644
34651
  function cM(e) {
34645
34652
  return e.type === "group";
34646
34653
  }
34647
- const Th = 150, fM = 58, pM = 40, Ah = (e) => e > 0 ? pM : fM, hM = 5, mM = 3, Fh = (e) => e > 0 ? mM : hM, gM = ve.div`
34654
+ const Th = 188, fM = 58, pM = 40, Ah = (e) => e > 0 ? pM : fM, hM = 5, mM = 3, Fh = (e) => e > 0 ? mM : hM, gM = ve.div`
34648
34655
  display: flex;
34649
34656
  align-items: flex-end;
34650
34657
  overflow-x: auto;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface Props {
2
+ export interface Props {
3
3
  /**
4
4
  * Content of the accordion when it is open.
5
5
  */
@@ -68,4 +68,3 @@ interface Props {
68
68
  style?: React.CSSProperties;
69
69
  }
70
70
  export default function Accordion({ children, title, titleContentLeft, titleContentRight, description, unmountOnExit, defaultExpanded, isExpanded, onExpandedChange, isDisabled, className, style, nature, noPadding, withBottomCloseButton, }: Props): import("react/jsx-runtime").JSX.Element;
71
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * Label to display next to the Radio input.
5
5
  * It is required for a11y, but you can make it invisible with the `hideLabel` prop
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { CheckboxGroupRenderProps } from 'react-aria-components';
3
- type Props = {
3
+ export type Props = {
4
4
  /**
5
5
  * The children checkboxes to be rendered inside the CheckboxGroup.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The value to display.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconName } from '../../Icon';
3
- type Props = {
3
+ export type Props = {
4
4
  /**
5
5
  * Icon displayed on the extreme left.
6
6
  */
@@ -47,4 +47,3 @@ type Props = {
47
47
  compact?: boolean;
48
48
  };
49
49
  export default function DataTableCell({ children, iconLeft, border, align, size, compact, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
50
- export {};
@@ -1,9 +1,8 @@
1
1
  import { default as React } from 'react';
2
- type Props = React.HTMLProps<HTMLDivElement> & {
2
+ export type Props = React.HTMLProps<HTMLDivElement> & {
3
3
  /**
4
4
  * Whether the filters are active.
5
5
  */
6
6
  withFilters: boolean;
7
7
  };
8
8
  export default function DataTableEmptyPlaceholder({ withFilters }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The CSS className for the element.
5
5
  */
@@ -11,4 +11,3 @@ type Props = {
11
11
  children: React.ReactNode;
12
12
  };
13
13
  export default function DataTableRoot({ children, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The level of the row, mainly to change its background color. Defaults to "root".
5
5
  * @deprecated sub rows styling are now handled internally
@@ -16,4 +16,3 @@ type Props = {
16
16
  children?: React.ReactNode;
17
17
  };
18
18
  export default function DataTableRow({ children, depth, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as DropdownListItemProps } from './components/DropdownListItem';
3
- type Props = {
3
+ export type Props = {
4
4
  /**
5
5
  * The items to display in the dropdown. Same props as `DropdownListItem`.
6
6
  * @deprecated use `children` instead
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as FileDetailsProps } from './components/FileDetails';
3
3
  import { Props as FormGroupWrapperProps } from '../../internal-components/FormGroupWrapper';
4
- type Props = {
4
+ export type Props = {
5
5
  /**
6
6
  * Specifies what mime type of files are allowed.
7
7
  */
@@ -1,4 +1,4 @@
1
- interface Props {
1
+ export interface Props {
2
2
  /**
3
3
  * Should be between 0 and 100.
4
4
  @default 0
@@ -43,4 +43,3 @@ interface Props {
43
43
  className?: string;
44
44
  }
45
45
  export default function LinearProgressBar({ title, percentage, description, hidePercentValue, size, nature, hideStatusIcon, ...rootProps }: Props): import("react/jsx-runtime").JSX.Element;
46
- export {};
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { LinkProps } from 'react-aria-components';
3
- type Props = {
3
+ export type Props = {
4
4
  /**
5
5
  * Text for the link.
6
6
  */
@@ -1,4 +1,4 @@
1
- type Props = {
1
+ export type Props = {
2
2
  /**
3
3
  * Specifies the size of the loader.
4
4
  * @default "medium".
@@ -6,4 +6,3 @@ type Props = {
6
6
  size?: "small" | "medium" | "large";
7
7
  };
8
8
  export default function Loader({ size }: Props): import("react/jsx-runtime").JSX.Element | undefined;
9
- export {};
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as ButtonProps } from '../Button';
3
3
  type Placement = "bottom" | "bottom left" | "bottom right" | "bottom start" | "bottom end" | "top" | "top left" | "top right" | "top start" | "top end" | "left" | "left top" | "left bottom" | "start" | "start top" | "start bottom" | "right" | "right top" | "right bottom" | "end" | "end top" | "end bottom";
4
- interface Props {
4
+ export interface Props {
5
5
  /**
6
6
  * Options to display in the dropdown.
7
7
  * Should be a list of MenuItem.
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as ButtonProps } from '../Button';
3
- interface Props {
3
+ export interface Props {
4
4
  /**
5
5
  * The message content to display.
6
6
  */
@@ -39,4 +39,3 @@ interface Props {
39
39
  style?: React.CSSProperties;
40
40
  }
41
41
  export default function Message({ children, title, nature, actions, onClose, className, style, autoHide, }: Props): import("react/jsx-runtime").JSX.Element | null;
42
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * Navigation items to display in the navigation.
5
5
  */
@@ -42,4 +42,3 @@ type Props = {
42
42
  footerElements?: React.ReactNode;
43
43
  };
44
44
  export default function Navigation({ initialIsCollapsed, currentPath, ...props }: Props): import("react/jsx-runtime").JSX.Element;
45
- export {};
@@ -1,6 +1,6 @@
1
1
  import { IconName } from '../Icon';
2
2
  import { default as React, ReactNode } from 'react';
3
- type Props = {
3
+ export type Props = {
4
4
  /**
5
5
  * The label of the navigation item.
6
6
  */
@@ -1,4 +1,4 @@
1
- interface Props {
1
+ export interface Props {
2
2
  /**
3
3
  * Give here the required `<Navigation />` component with corresponding props
4
4
  */
@@ -9,4 +9,3 @@ interface Props {
9
9
  children: React.ReactNode;
10
10
  }
11
11
  export default function PageLayout(props: Props): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The total number of items/rows.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = Omit<React.HTMLProps<HTMLInputElement>, "label" | "type"> & {
2
+ export type Props = Omit<React.HTMLProps<HTMLInputElement>, "label" | "type"> & {
3
3
  /**
4
4
  * The text to display next to the radio button.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Href, RouterOptions } from '@react-types/shared';
3
- type Props = {
3
+ export type Props = {
4
4
  /**
5
5
  * See the React Aria docs for more details on the RouterProvider usage
6
6
  * https://react-spectrum.adobe.com/react-aria/routing.html
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The children of the component.
5
5
  * Must include other components required for the SegmentedControl component to work (SegmentedControlList, SegmentedControlButton, and SegmentedControlPanels).
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconName } from '../../Icon/index.tsx';
3
- type Props = {
3
+ export type Props = {
4
4
  /**
5
5
  * Required unique Key of the SegmentedControlButton.
6
6
  * Used in pair with `selectedKey` / `defaultSelectedKey` on the parent `SegmentedControl` component.
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The children of the component.
5
5
  * Must be `SegmentedControlButton` components
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The children of the component, to be shown when the segmented control button is selected.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconName } from '../Icon';
3
- interface Props {
3
+ export interface Props {
4
4
  /**
5
5
  * Required label for the field
6
6
  */
@@ -109,4 +109,3 @@ interface Props {
109
109
  "aria-label"?: string;
110
110
  }
111
111
  export default function Slider({ id, label, minValue, maxValue, step, isDisabled, style, className, onChange, onChangeEnd, value: initialValue, thumbLabels, labelIconRight, description, helperText, helperTextIcon, errorHelperText, errorHelperTextIcon, successHelperText, successHelperTextIcon, isInvalid, withTrackDots, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
112
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The label of the switch, can be a React Component for more advanced styling or bold text for example
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { Props as BadgeProps } from '../../Badge';
3
- type Props = {
3
+ export type Props = {
4
4
  /**
5
5
  * Required unique Key of the tab.
6
6
  * Used in pair with `selectedKey` / `defaultSelectedKey` on the parent `Tabs` component.
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The children of the component.
5
5
  * Must be `Tab` components
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The children of the component, to be shown when the tab is selected.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ export type Props = {
3
3
  /**
4
4
  * The children of the component.
5
5
  * Must include other components required for the Tabs component to work (TabList, Tab, and TabPanels).
@@ -1,5 +1,5 @@
1
1
  import { Block } from '../../utils/Timeline.types';
2
- interface Props {
2
+ export interface Props {
3
3
  /**
4
4
  * The name of the line, displayed at the left
5
5
  */
@@ -34,4 +34,3 @@ interface Props {
34
34
  indentLevel?: number;
35
35
  }
36
36
  export default function BlockLineContainer({ name, blocks, lineStartDate, lineEndDate, isGroupParent, isGroupExpanded, onNameClick, indentLevel, ...props }: Props): import("react/jsx-runtime").JSX.Element;
37
- export {};
@@ -1,5 +1,5 @@
1
1
  import { Block } from '../../../../utils/Timeline.types';
2
- interface Props {
2
+ export interface Props {
3
3
  /**
4
4
  * The function to call when the button is clicked
5
5
  */
@@ -18,4 +18,3 @@ interface Props {
18
18
  lineEndDate: Block["endDate"];
19
19
  }
20
20
  export default function ExpandButton(props: Props): import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1,4 +1,4 @@
1
- type Props = {
1
+ export type Props = {
2
2
  name: string;
3
3
  /** Whether this name block is a group parent (displays a chevron) */
4
4
  isGroupParent?: boolean;
@@ -10,4 +10,3 @@ type Props = {
10
10
  indentLevel?: number;
11
11
  };
12
12
  export declare const NameBlock: ({ name, isGroupParent, isExpanded, onClick, indentLevel, }: Props) => import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,4 +1,4 @@
1
1
  import { TimelineProps } from '../../Timeline';
2
- type Props = Pick<TimelineProps, "startDate" | "endDate">;
2
+ export type Props = Pick<TimelineProps, "startDate" | "endDate">;
3
3
  declare const TimelineRange: ({ startDate, endDate }: Props) => import("react/jsx-runtime").JSX.Element;
4
4
  export default TimelineRange;
@@ -69,7 +69,7 @@ export type GroupLine = {
69
69
  };
70
70
  export type Line = SimpleLine | GroupLine;
71
71
  export declare function isGroupLine(line: Line): line is GroupLine;
72
- export declare const NAMES_SECTION_WIDTH = 150;
72
+ export declare const NAMES_SECTION_WIDTH = 188;
73
73
  export declare const lineHeightForIndentLevel: (indentLevel: number) => 40 | 58;
74
74
  export declare const maxBlocksToDisplayBeforeCollapsingForIndentLevel: (indentLevel: number) => 3 | 5;
75
75
  export {};
@@ -1,4 +1,4 @@
1
- type Props = {
1
+ export type Props = {
2
2
  /**
3
3
  * By default, when you hover on one of the toasts, they will expand.
4
4
  * You can make all the toasts always visible by setting this prop to true.
@@ -22,4 +22,3 @@ type Props = {
22
22
  offset?: number;
23
23
  };
24
24
  export default function Toaster({ position, expand, visibleToasts, offset, }: Props): import("react/jsx-runtime").JSX.Element;
25
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agregio-solutions/design-system",
3
- "version": "1.86.2",
3
+ "version": "1.86.4",
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",