@worldresources/wri-design-systems 2.133.2 → 2.133.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -2788,7 +2788,7 @@
|
|
2788
2788
|
color: ${p("error",100)};
|
2789
2789
|
`,$i=(e,t)=>r.css`
|
2790
2790
|
width: 100%;
|
2791
|
-
min-width: ${"small"===e?"234px":"
|
2791
|
+
min-width: ${"small"===e?"234px":"320px"};
|
2792
2792
|
border-radius: 4px;
|
2793
2793
|
padding: ${"small"===e?"8px 8px 12px 8px":"8px 12px 12px 12px"};
|
2794
2794
|
display: flex;
|
package/dist/index.esm.js
CHANGED
@@ -2842,7 +2842,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
2842
2842
|
color: ${ne("error",100)};
|
2843
2843
|
`,Bl=({hasNotification:e,notificationCount:t,label:r})=>{const[n,o]=Y(!1);X((()=>{const e=()=>{window.innerWidth<1024?o(!0):o(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const i=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let l="16px";return t&&t>99?l="28px":t&&t>9&&(l="22px"),P("div",n?{css:zl,role:"status","aria-live":"polite",children:[P("div",{css:El(),children:[T(ke,{color:"currentColor",height:"16px",width:"16px"}),!e||t||r?null:T("div",{css:Hl,"aria-hidden":!0})]}),r?T("p",{children:r}):null,i.length>0?T("div",{css:Tl,children:T("p",{css:Ol,"aria-label":`${t} unread message`,children:i})}):null]}:{css:zl,role:"status","aria-live":"polite",children:[r?T("p",{children:r}):null,P("div",{css:El(l),children:[i.length>0?T("div",{css:jl,children:T("p",{css:Pl,"aria-label":`${t} unread message`,children:i})}):null,e&&!t?T("div",{css:Hl,"aria-hidden":!0}):null,T(ke,{color:"currentColor",height:"16px",width:"16px"})]})]})},Nl=(e,t)=>B`
|
2844
2844
|
width: 100%;
|
2845
|
-
min-width: ${"small"===e?"234px":"
|
2845
|
+
min-width: ${"small"===e?"234px":"320px"};
|
2846
2846
|
border-radius: 4px;
|
2847
2847
|
padding: ${"small"===e?"8px 8px 12px 8px":"8px 12px 12px 12px"};
|
2848
2848
|
display: flex;
|