@worldresources/wri-design-systems 2.194.0 → 2.194.1

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 CHANGED
@@ -2204,11 +2204,11 @@
2204
2204
  `,uw=e=>{const t=e.map(((t,n)=>`${n/(e.length-1)*100}%`));return`linear-gradient(to right, ${e.map(((e,n)=>`${e} ${t[n]}`)).join(", ")})`},hw=i.css`
2205
2205
  display: flex;
2206
2206
  flex-direction: column;
2207
- `,pw=i.css`
2207
+ `,pw=e=>i.css`
2208
2208
  display: flex;
2209
2209
  gap: ${k(400)};
2210
2210
  align-items: center;
2211
- margin-bottom: ${k(300)};
2211
+ margin-bottom: ${e?k(300):0};
2212
2212
 
2213
2213
  .ds-select-input-container {
2214
2214
  margin-bottom: 0rem;
@@ -2218,7 +2218,7 @@
2218
2218
  line-height: ${S(700)};
2219
2219
  font-weight: 400;
2220
2220
  color: ${w("neutral",700)};
2221
- `,mw=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:o,showItemCountText:i,labels:s})=>{const a=Mf("ItemCount",s),l=0===n?0:(t-1)*e+1,c=0===n?0:Math.min(l+e-1,n);return r.jsxs("div",{css:hw,children:[r.jsxs("div",{css:pw,children:[r.jsx("div",{style:{width:"5rem"},children:r.jsx(Lv,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{o&&o(parseInt(e[0],10))},required:!0})}),r.jsx("p",{css:fw,children:a.perPageLabel})]}),i?r.jsx("p",{css:fw,children:a.showingLabel(l,c,n)}):null]})},gw=e=>i.css`
2221
+ `,mw=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:o,showItemCountText:i,labels:s})=>{const a=Mf("ItemCount",s),l=0===n?0:(t-1)*e+1,c=0===n?0:Math.min(l+e-1,n);return r.jsxs("div",{css:hw,children:[r.jsxs("div",{css:pw(i),children:[r.jsx("div",{style:{width:"5rem"},children:r.jsx(Lv,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{o&&o(parseInt(e[0],10))},required:!0})}),r.jsx("p",{css:fw,children:a.perPageLabel})]}),i?r.jsx("p",{css:fw,children:a.showingLabel(l,c,n)}):null]})},gw=e=>i.css`
2222
2222
  border: ${E(100)} solid ${w("neutral",300)};
2223
2223
  ${e?"border: none;":""}
2224
2224
  `,vw=e=>i.css`
@@ -3652,7 +3652,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3652
3652
  line-height: ${S(600)};
3653
3653
  font-weight: 700;
3654
3654
  color: ${w("error",100)};
3655
- `,CO=(e,t)=>{let n="14.625rem";return"full-width"===e?n="100%":"large"===e&&(n="20rem"),i.css`
3655
+ `,CO=(e,t)=>{let n="14.875rem";return"full-width"===e?n="100%":"large"===e&&(n="22.875rem"),i.css`
3656
3656
  width: 100%;
3657
3657
  max-width: ${n};
3658
3658
  border-radius: ${$(300)};
@@ -3672,7 +3672,7 @@ function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3672
3672
  gap: ${k(200)};
3673
3673
 
3674
3674
  svg {
3675
- margin-top: 0.375rem;
3675
+ margin-top: 0.1875rem;
3676
3676
  }
3677
3677
  `,SO=e=>i.css`
3678
3678
  max-width: 45rem;
package/dist/index.esm.js CHANGED
@@ -2262,11 +2262,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2262
2262
  `)}:{css:Ux,children:e?.map(((e,n)=>be("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),be("div",{css:Gx,children:t?.map((e=>be("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:be("p",{css:Zx,children:e})},e)))}),n&&n.length?be("div",{css:Gx,children:n.map((e=>be("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:be("p",{css:Jx,style:{width:"100%"},children:e})},e)))}):null]});var o},Qx=$e`
2263
2263
  display: flex;
2264
2264
  flex-direction: column;
2265
- `,ek=$e`
2265
+ `,ek=e=>$e`
2266
2266
  display: flex;
2267
2267
  gap: ${_e(400)};
2268
2268
  align-items: center;
2269
- margin-bottom: ${_e(300)};
2269
+ margin-bottom: ${e?_e(300):0};
2270
2270
 
2271
2271
  .ds-select-input-container {
2272
2272
  margin-bottom: 0rem;
@@ -2276,7 +2276,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2276
2276
  line-height: ${He(700)};
2277
2277
  font-weight: 400;
2278
2278
  color: ${ze("neutral",700)};
2279
- `,nk=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:o,labels:i})=>{const s=qm("ItemCount",i),a=0===n?0:(t-1)*e+1,l=0===n?0:Math.min(a+e-1,n);return ye("div",{css:Qx,children:[ye("div",{css:ek,children:[be("div",{style:{width:"5rem"},children:be(nb,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{r&&r(parseInt(e[0],10))},required:!0})}),be("p",{css:tk,children:s.perPageLabel})]}),o?be("p",{css:tk,children:s.showingLabel(a,l,n)}):null]})},rk=e=>$e`
2279
+ `,nk=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:o,labels:i})=>{const s=qm("ItemCount",i),a=0===n?0:(t-1)*e+1,l=0===n?0:Math.min(a+e-1,n);return ye("div",{css:Qx,children:[ye("div",{css:ek(o),children:[be("div",{style:{width:"5rem"},children:be(nb,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{r&&r(parseInt(e[0],10))},required:!0})}),be("p",{css:tk,children:s.perPageLabel})]}),o?be("p",{css:tk,children:s.showingLabel(a,l,n)}):null]})},rk=e=>$e`
2280
2280
  border: ${Be(100)} solid ${ze("neutral",300)};
2281
2281
  ${e?"border: none;":""}
2282
2282
  `,ok=e=>$e`
@@ -3710,7 +3710,7 @@ function SO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3710
3710
  line-height: ${He(600)};
3711
3711
  font-weight: 700;
3712
3712
  color: ${ze("error",100)};
3713
- `,xN=({hasNotification:e,notificationCount:t,label:n})=>{const[r,o]=le(!1);de((()=>{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 s="1rem";return t&&t>99?s="1.75rem":t&&t>9&&(s="1.375rem"),ye("div",r?{css:mN,role:"status","aria-live":"polite",children:[ye("div",{css:gN(),children:[be(cg,{color:"currentColor",height:"1rem",width:"1rem"}),!e||t||n?null:be("div",{css:vN,"aria-hidden":!0})]}),n?be("p",{children:n}):null,i.length>0?be("div",{css:wN,children:be("p",{css:CN,"aria-label":`${t} unread message`,children:i})}):null]}:{css:mN,role:"status","aria-live":"polite",children:[n?be("p",{children:n}):null,ye("div",{css:gN(s),children:[i.length>0?be("div",{css:yN,children:be("p",{css:bN,"aria-label":`${t} unread message`,children:i})}):null,e&&!t?be("div",{css:vN,"aria-hidden":!0}):null,be(cg,{color:"currentColor",height:"1rem",width:"1rem"})]})]})},kN=(e,t)=>{let n="14.625rem";return"full-width"===e?n="100%":"large"===e&&(n="20rem"),$e`
3713
+ `,xN=({hasNotification:e,notificationCount:t,label:n})=>{const[r,o]=le(!1);de((()=>{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 s="1rem";return t&&t>99?s="1.75rem":t&&t>9&&(s="1.375rem"),ye("div",r?{css:mN,role:"status","aria-live":"polite",children:[ye("div",{css:gN(),children:[be(cg,{color:"currentColor",height:"1rem",width:"1rem"}),!e||t||n?null:be("div",{css:vN,"aria-hidden":!0})]}),n?be("p",{children:n}):null,i.length>0?be("div",{css:wN,children:be("p",{css:CN,"aria-label":`${t} unread message`,children:i})}):null]}:{css:mN,role:"status","aria-live":"polite",children:[n?be("p",{children:n}):null,ye("div",{css:gN(s),children:[i.length>0?be("div",{css:yN,children:be("p",{css:bN,"aria-label":`${t} unread message`,children:i})}):null,e&&!t?be("div",{css:vN,"aria-hidden":!0}):null,be(cg,{color:"currentColor",height:"1rem",width:"1rem"})]})]})},kN=(e,t)=>{let n="14.875rem";return"full-width"===e?n="100%":"large"===e&&(n="22.875rem"),$e`
3714
3714
  width: 100%;
3715
3715
  max-width: ${n};
3716
3716
  border-radius: ${je(300)};
@@ -3730,7 +3730,7 @@ function SO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3730
3730
  gap: ${_e(200)};
3731
3731
 
3732
3732
  svg {
3733
- margin-top: 0.375rem;
3733
+ margin-top: 0.1875rem;
3734
3734
  }
3735
3735
  `,SN=e=>$e`
3736
3736
  max-width: 45rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldresources/wri-design-systems",
3
- "version": "2.194.0",
3
+ "version": "2.194.1",
4
4
  "description": "WRI UI Library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",