@worldresources/wri-design-systems 2.126.1 → 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 +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -1764,6 +1764,7 @@
|
|
1764
1764
|
border-radius: 2px;
|
1765
1765
|
background-color: ${e};
|
1766
1766
|
border: 1px solid ${p("neutral",400)};
|
1767
|
+
margin-top: 5px;
|
1767
1768
|
`,Or=e=>r.css`
|
1768
1769
|
width: 20px;
|
1769
1770
|
height: 20px;
|
@@ -1778,7 +1779,6 @@
|
|
1778
1779
|
height: 10px;
|
1779
1780
|
}
|
1780
1781
|
`,Nr=r.css`
|
1781
|
-
min-height: 36px;
|
1782
1782
|
width: 100%;
|
1783
1783
|
display: flex;
|
1784
1784
|
justify-content: space-between;
|
@@ -2594,7 +2594,7 @@
|
|
2594
2594
|
font-weight: 700;
|
2595
2595
|
color: ${p("Medium"===b?"warning":"Strong"===b||"Very Strong"===b?"success":"error",900)};
|
2596
2596
|
}
|
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}),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`
|
2598
2598
|
margin-left: ${u?"19px":"0px"};
|
2599
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`
|
2600
2600
|
height: 20px;
|
package/dist/index.esm.js
CHANGED
@@ -1805,6 +1805,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
1805
1805
|
border-radius: 2px;
|
1806
1806
|
background-color: ${e};
|
1807
1807
|
border: 1px solid ${te("neutral",400)};
|
1808
|
+
margin-top: 5px;
|
1808
1809
|
`,Yn=e=>j`
|
1809
1810
|
width: 20px;
|
1810
1811
|
height: 20px;
|
@@ -1819,7 +1820,6 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
1819
1820
|
height: 10px;
|
1820
1821
|
}
|
1821
1822
|
`,Xn=j`
|
1822
|
-
min-height: 36px;
|
1823
1823
|
width: 100%;
|
1824
1824
|
display: flex;
|
1825
1825
|
justify-content: space-between;
|
@@ -1847,7 +1847,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
1847
1847
|
color: ${te("neutral",600)};
|
1848
1848
|
padding: 0 10px;
|
1849
1849
|
}
|
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}),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`
|
1851
1851
|
width: 100%;
|
1852
1852
|
display: flex;
|
1853
1853
|
flex-direction: column;
|