@worldresources/wri-design-systems 2.202.6 → 2.202.8

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
@@ -1953,7 +1953,7 @@
1953
1953
  padding: ${k(200)} ${k(300)};
1954
1954
  border-bottom: ${M(100)} solid
1955
1955
  ${w("neutral",300)};
1956
- min-height: ${k(1600)};
1956
+ min-height: ${k(1e3)};
1957
1957
 
1958
1958
  .ds-map-pop-up-close-button {
1959
1959
  margin-top: ${k(100)};
@@ -2735,21 +2735,19 @@ function _E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2735
2735
  }
2736
2736
  `},kT=i.css`
2737
2737
  display: flex;
2738
- align-items: flex-start;
2738
+ align-items: baseline;
2739
2739
  gap: ${k(200)};
2740
2740
 
2741
2741
  svg {
2742
2742
  margin-top: 0.1875rem;
2743
2743
  }
2744
2744
  `,ST=e=>i.css`
2745
- max-width: 45rem;
2746
2745
  color: ${w("neutral",800)};
2747
2746
  font-size: ${C("small"===e?300:500)};
2748
2747
  line-height: ${S("small"===e?500:700)};
2749
2748
  font-weight: 400;
2750
2749
  text-align: left;
2751
2750
  `,$T=(e,t)=>i.css`
2752
- max-width: 45rem;
2753
2751
  color: ${w("neutral",700)};
2754
2752
  font-size: ${C("small"===e?200:400)};
2755
2753
  line-height: ${S("small"===e?400:600)};
@@ -2757,7 +2755,6 @@ function _E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2757
2755
  margin-left: ${t?k(600):"0"};
2758
2756
  text-align: left;
2759
2757
  `,MT=(e,t)=>i.css`
2760
- max-width: 45rem;
2761
2758
  color: ${w("neutral",700)};
2762
2759
  font-size: ${C("small"===e?200:400)};
2763
2760
  line-height: ${S("small"===e?400:600)};
@@ -2796,7 +2793,7 @@ function _E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2796
2793
  p {
2797
2794
  color: ${w("error",900)};
2798
2795
  }
2799
- `,AT=({label:e,caption:t,variant:n,size:o="large",icon:i=r.jsx(Kf,{height:"1rem",width:"1rem"}),onActionClick:s,actionLabel:a,isButtonRight:l,buttonLeftIcon:c,buttonRightIcon:d,labels:u})=>{const h=Vf("InlineMessage",u);let p=ET;"info-grey"===n?p=jT:"success"===n?p=TT:"warning"===n?p=OT:"error"===n&&(p=LT);const f="error"===n||"warning"===n?"alert":"status",m="alert"===f?"assertive":"polite";return r.jsxs("div",{css:[CT(o,l),p],role:f,"aria-live":m,"aria-roledescription":h.roleDescription,children:[r.jsxs("div",{children:[r.jsxs("div",{css:kT,children:[i,r.jsx("p",{css:ST(o),children:e})]}),t&&"string"==typeof t?r.jsx("p",{css:$T(o,!!i),children:t}):t?r.jsx("div",{css:MT(o,!!i),children:t}):null]}),a?r.jsx(Bf,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===o?"default":"small",onClick:s,leftIcon:c,rightIcon:d}):null]})},RT=i.css`
2796
+ `,AT=({label:e,caption:t,variant:n,size:o="large",icon:i=r.jsx(Kf,{height:"1rem",width:"1rem"}),onActionClick:s,actionLabel:a,isButtonRight:l,buttonLeftIcon:c,buttonRightIcon:d,labels:u})=>{const h=Vf("InlineMessage",u);let p=ET;"info-grey"===n?p=jT:"success"===n?p=TT:"warning"===n?p=OT:"error"===n&&(p=LT);const f="error"===n||"warning"===n?"alert":"status",m="alert"===f?"assertive":"polite";return r.jsxs("div",{css:[CT(o,l),p],role:f,"aria-live":m,"aria-roledescription":h.roleDescription,children:[r.jsxs("div",{children:[r.jsxs("div",{css:kT,children:[i,"string"==typeof e?r.jsx("p",{css:ST(o),children:e}):r.jsx("div",{css:ST(o),children:e})]}),t&&"string"==typeof t?r.jsx("p",{css:$T(o,!!i),children:t}):t?r.jsx("div",{css:MT(o,!!i),children:t}):null]}),a?r.jsx(Bf,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===o?"default":"small",onClick:s,leftIcon:c,rightIcon:d}):null]})},RT=i.css`
2800
2797
  width: 100%;
2801
2798
  min-height: calc(${k(1200)} * 12);
2802
2799
  background-color: ${w("neutral",100)};
package/dist/index.d.ts CHANGED
@@ -1760,7 +1760,7 @@ type BadgeProps = {
1760
1760
  declare const Badge: ({ hasNotification, notificationCount, label, labels, }: BadgeProps) => _emotion_react_jsx_runtime.JSX.Element;
1761
1761
 
1762
1762
  type InlineMessageProps = {
1763
- label: string;
1763
+ label: string | React.ReactNode;
1764
1764
  caption?: string | React.ReactNode;
1765
1765
  variant: 'info-white' | 'info-grey' | 'success' | 'warning' | 'error';
1766
1766
  size?: 'small' | 'large' | 'full-width';
package/dist/index.esm.js CHANGED
@@ -2072,7 +2072,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2072
2072
  padding: ${He(200)} ${He(300)};
2073
2073
  border-bottom: ${je(100)} solid
2074
2074
  ${ze("neutral",300)};
2075
- min-height: ${He(1600)};
2075
+ min-height: ${He(1e3)};
2076
2076
 
2077
2077
  .ds-map-pop-up-close-button {
2078
2078
  margin-top: ${He(100)};
@@ -2861,21 +2861,19 @@ function DO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2861
2861
  }
2862
2862
  `},gA=$e`
2863
2863
  display: flex;
2864
- align-items: flex-start;
2864
+ align-items: baseline;
2865
2865
  gap: ${He(200)};
2866
2866
 
2867
2867
  svg {
2868
2868
  margin-top: 0.1875rem;
2869
2869
  }
2870
2870
  `,bA=e=>$e`
2871
- max-width: 45rem;
2872
2871
  color: ${ze("neutral",800)};
2873
2872
  font-size: ${Ve("small"===e?300:500)};
2874
2873
  line-height: ${Be("small"===e?500:700)};
2875
2874
  font-weight: 400;
2876
2875
  text-align: left;
2877
2876
  `,vA=(e,t)=>$e`
2878
- max-width: 45rem;
2879
2877
  color: ${ze("neutral",700)};
2880
2878
  font-size: ${Ve("small"===e?200:400)};
2881
2879
  line-height: ${Be("small"===e?400:600)};
@@ -2883,7 +2881,6 @@ function DO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2883
2881
  margin-left: ${t?He(600):"0"};
2884
2882
  text-align: left;
2885
2883
  `,yA=(e,t)=>$e`
2886
- max-width: 45rem;
2887
2884
  color: ${ze("neutral",700)};
2888
2885
  font-size: ${Ve("small"===e?200:400)};
2889
2886
  line-height: ${Be("small"===e?400:600)};
@@ -2922,7 +2919,7 @@ function DO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2922
2919
  p {
2923
2920
  color: ${ze("error",900)};
2924
2921
  }
2925
- `,SA=({label:e,caption:t,variant:n,size:r="large",icon:o=ye(dg,{height:"1rem",width:"1rem"}),onActionClick:i,actionLabel:s,isButtonRight:a,buttonLeftIcon:l,buttonRightIcon:c,labels:d})=>{const u=ng("InlineMessage",d);let h=wA;"info-grey"===n?h=CA:"success"===n?h=xA:"warning"===n?h=kA:"error"===n&&(h=$A);const p="error"===n||"warning"===n?"alert":"status",f="alert"===p?"assertive":"polite";return ve("div",{css:[mA(r,a),h],role:p,"aria-live":f,"aria-roledescription":u.roleDescription,children:[ve("div",{children:[ve("div",{css:gA,children:[o,ye("p",{css:bA(r),children:e})]}),t&&"string"==typeof t?ye("p",{css:vA(r,!!o),children:t}):t?ye("div",{css:yA(r,!!o),children:t}):null]}),s?ye(rg,{label:s,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:i,leftIcon:l,rightIcon:c}):null]})},MA=$e`
2922
+ `,SA=({label:e,caption:t,variant:n,size:r="large",icon:o=ye(dg,{height:"1rem",width:"1rem"}),onActionClick:i,actionLabel:s,isButtonRight:a,buttonLeftIcon:l,buttonRightIcon:c,labels:d})=>{const u=ng("InlineMessage",d);let h=wA;"info-grey"===n?h=CA:"success"===n?h=xA:"warning"===n?h=kA:"error"===n&&(h=$A);const p="error"===n||"warning"===n?"alert":"status",f="alert"===p?"assertive":"polite";return ve("div",{css:[mA(r,a),h],role:p,"aria-live":f,"aria-roledescription":u.roleDescription,children:[ve("div",{children:[ve("div",{css:gA,children:[o,ye("string"==typeof e?"p":"div",{css:bA(r),children:e})]}),t&&"string"==typeof t?ye("p",{css:vA(r,!!o),children:t}):t?ye("div",{css:yA(r,!!o),children:t}):null]}),s?ye(rg,{label:s,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:i,leftIcon:l,rightIcon:c}):null]})},MA=$e`
2926
2923
  width: 100%;
2927
2924
  min-height: calc(${He(1200)} * 12);
2928
2925
  background-color: ${ze("neutral",100)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldresources/wri-design-systems",
3
- "version": "2.202.6",
3
+ "version": "2.202.8",
4
4
  "description": "WRI UI Library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",