@worldresources/wri-design-systems 2.126.2 → 2.126.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 CHANGED
@@ -1779,7 +1779,6 @@
1779
1779
  height: 10px;
1780
1780
  }
1781
1781
  `,Nr=r.css`
1782
- min-height: 36px;
1783
1782
  width: 100%;
1784
1783
  display: flex;
1785
1784
  justify-content: space-between;
@@ -2595,7 +2594,7 @@
2595
2594
  font-weight: 700;
2596
2595
  color: ${p("Medium"===b?"warning":"Strong"===b||"Very Strong"===b?"success":"error",900)};
2597
2596
  }
2598
- `),children:["Password Strength: ",t.jsx("span",{children:g.strength})]}),t.jsx("div",{css:Tt(g.strength),children:t.jsx("div",{})}),t.jsxs("div",{css:_t(g.length),children:[t.jsx("div",{children:g.length?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsxs("p",{children:["Use a minimum of ",s," characters"]})]}),a?.uppercase?null:t.jsxs("div",{css:_t(g.uppercase),children:[t.jsx("div",{children:g.uppercase?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use an uppercase letter"})]}),a?.lowercase?null:t.jsxs("div",{css:_t(g.lowercase),children:[t.jsx("div",{children:g.lowercase?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a lowercase letter"})]}),a?.numbers?null:t.jsxs("div",{css:_t(g.numbers),children:[t.jsx("div",{children:g.numbers?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a number"})]}),a?.specialCharacters?null:t.jsxs("div",{css:_t(g.specialCharacters),children:[t.jsx("div",{children:g.specialCharacters?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a special character"})]})]}):null]});var b},exports.QualitativeAttribute=({type:e,label:r,caption:n,color:l,onActionClick:a,showActionButton:i,pointIcon:s})=>{const[c,d]=o.useState(!0),p="raster"===e,u="line"===e,x="point"===e;return t.jsxs("div",{css:Nr,children:[t.jsxs("div",{css:Fr,children:[t.jsxs("div",{children:[p&&t.jsx("div",{css:Er(l)}),u&&t.jsx("div",{css:zr(l)}),x&&t.jsx("div",{css:Or(l),children:s})]}),t.jsxs("div",{children:[t.jsx("p",{css:Ar,"aria-label":r,children:r}),t.jsx("p",{css:Zr,"aria-label":n,children:n})]})]}),a&&i?t.jsx("div",{css:Wr,children:t.jsx(C,{variant:"borderless",label:c?"Hide":"Show",rightIcon:c?t.jsx(S,{}):t.jsx(L,{}),"aria-label":"Show or Hide action",onClick:()=>{d(!c),a&&a()}})}):null]})},exports.Radio=$e,exports.RadioGroup=ke,exports.RadioList=({label:e,caption:n,name:o,radios:l,defaultValue:a,onCheckedChange:i,errorMessage:s,horizontal:c,variant:d="default",required:p})=>{return t.jsxs("div",{css:Pt,"aria-roledescription":"group","aria-labelledby":e,children:[s?t.jsx("div",{css:zt}):null,t.jsxs("div",{css:(u=!!s,r.css`
2597
+ `),children:["Password Strength: ",t.jsx("span",{children:g.strength})]}),t.jsx("div",{css:Tt(g.strength),children:t.jsx("div",{})}),t.jsxs("div",{css:_t(g.length),children:[t.jsx("div",{children:g.length?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsxs("p",{children:["Use a minimum of ",s," characters"]})]}),a?.uppercase?null:t.jsxs("div",{css:_t(g.uppercase),children:[t.jsx("div",{children:g.uppercase?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use an uppercase letter"})]}),a?.lowercase?null:t.jsxs("div",{css:_t(g.lowercase),children:[t.jsx("div",{children:g.lowercase?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a lowercase letter"})]}),a?.numbers?null:t.jsxs("div",{css:_t(g.numbers),children:[t.jsx("div",{children:g.numbers?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a number"})]}),a?.specialCharacters?null:t.jsxs("div",{css:_t(g.specialCharacters),children:[t.jsx("div",{children:g.specialCharacters?t.jsx(j,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):t.jsx(k,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),t.jsx("p",{children:"Use a special character"})]})]}):null]});var b},exports.QualitativeAttribute=({type:e,label:r,caption:n,color:l,onActionClick:a,showActionButton:i,pointIcon:s})=>{const[c,d]=o.useState(!0),p="raster"===e,u="line"===e,x="point"===e;return t.jsxs("div",{css:Nr,children:[t.jsxs("div",{css:Fr,children:[t.jsxs("div",{children:[p&&t.jsx("div",{css:Er(l)}),u&&t.jsx("div",{css:zr(l)}),x&&t.jsx("div",{css:Or(l),children:s})]}),t.jsxs("div",{children:[t.jsx("p",{css:Ar,"aria-label":r,children:r}),n?t.jsx("p",{css:Zr,"aria-label":n,children:n}):null]})]}),a&&i?t.jsx("div",{css:Wr,children:t.jsx(C,{variant:"borderless",label:c?"Hide":"Show",rightIcon:c?t.jsx(S,{}):t.jsx(L,{}),"aria-label":"Show or Hide action",onClick:()=>{d(!c),a&&a()}})}):null]})},exports.Radio=$e,exports.RadioGroup=ke,exports.RadioList=({label:e,caption:n,name:o,radios:l,defaultValue:a,onCheckedChange:i,errorMessage:s,horizontal:c,variant:d="default",required:p})=>{return t.jsxs("div",{css:Pt,"aria-roledescription":"group","aria-labelledby":e,children:[s?t.jsx("div",{css:zt}):null,t.jsxs("div",{css:(u=!!s,r.css`
2599
2598
  margin-left: ${u?"19px":"0px"};
2600
2599
  `),children:[t.jsxs("p",{css:Ht,"aria-label":e,children:[p&&t.jsx("span",{"aria-label":"required",children:"*"}),e]}),t.jsx("p",{css:Bt,"aria-label":n,children:n}),s?t.jsx("p",{css:Ot,"aria-label":s,children:s}):null,t.jsx("div",{css:Et,children:t.jsx(ke,{name:o,defaultValue:a,onChange:i,horizontal:c&&"card"!==d,children:l.map((e=>t.jsx($e,{css:"card"===d?Nt:{},...e},e.value)))})})]})]});var u},exports.SSOButtons=ul,exports.ScaleBar=({colors:e,values:n,subLabels:o,isGradient:l})=>{return t.jsxs("div",{css:Yr,children:[l?t.jsx("div",{css:(a=Kr(e),r.css`
2601
2600
  height: 20px;
package/dist/index.esm.js CHANGED
@@ -1820,7 +1820,6 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
1820
1820
  height: 10px;
1821
1821
  }
1822
1822
  `,Xn=j`
1823
- min-height: 36px;
1824
1823
  width: 100%;
1825
1824
  display: flex;
1826
1825
  justify-content: space-between;
@@ -1848,7 +1847,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
1848
1847
  color: ${te("neutral",600)};
1849
1848
  padding: 0 10px;
1850
1849
  }
1851
- `,Jn=({type:e,label:t,caption:r,color:n,onActionClick:o,showActionButton:l,pointIcon:a})=>{const[i,s]=Y(!0),c="line"===e,d="point"===e;return z("div",{css:Xn,children:[z("div",{css:Un,children:[z("div",{children:["raster"===e&&O("div",{css:An(n)}),c&&O("div",{css:Wn(n)}),d&&O("div",{css:Yn(n),children:a})]}),z("div",{children:[O("p",{css:qn,"aria-label":t,children:t}),O("p",{css:Gn,"aria-label":r,children:r})]})]}),o&&l?O("div",{css:Kn,children:O(ie,{variant:"borderless",label:i?"Hide":"Show",rightIcon:O(i?Ce:fe,{}),"aria-label":"Show or Hide action",onClick:()=>{s(!i),o&&o()}})}):null]})},Qn=j`
1850
+ `,Jn=({type:e,label:t,caption:r,color:n,onActionClick:o,showActionButton:l,pointIcon:a})=>{const[i,s]=Y(!0),c="line"===e,d="point"===e;return z("div",{css:Xn,children:[z("div",{css:Un,children:[z("div",{children:["raster"===e&&O("div",{css:An(n)}),c&&O("div",{css:Wn(n)}),d&&O("div",{css:Yn(n),children:a})]}),z("div",{children:[O("p",{css:qn,"aria-label":t,children:t}),r?O("p",{css:Gn,"aria-label":r,children:r}):null]})]}),o&&l?O("div",{css:Kn,children:O(ie,{variant:"borderless",label:i?"Hide":"Show",rightIcon:O(i?Ce:fe,{}),"aria-label":"Show or Hide action",onClick:()=>{s(!i),o&&o()}})}):null]})},Qn=j`
1852
1851
  width: 100%;
1853
1852
  display: flex;
1854
1853
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldresources/wri-design-systems",
3
- "version": "2.126.2",
3
+ "version": "2.126.3",
4
4
  "description": "WRI UI Library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",