@purpurds/password-field 8.5.0 → 8.5.2
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/LICENSE.txt +4 -4
- package/dist/{main-BNSzwB-v.js → main-CWlCCnV6.js} +2 -2
- package/dist/{main-BNSzwB-v.js.map → main-CWlCCnV6.js.map} +1 -1
- package/dist/{main-CGRCMmFx.mjs → main-DlqwQKmD.mjs} +2 -2
- package/dist/{main-CGRCMmFx.mjs.map → main-DlqwQKmD.mjs.map} +1 -1
- package/dist/{password-field-B8r8kBIm.mjs → password-field-Ca-Iu-6j.mjs} +5 -5
- package/dist/{password-field-B8r8kBIm.mjs.map → password-field-Ca-Iu-6j.mjs.map} +1 -1
- package/dist/{password-field-BKKiOiYa.js → password-field-VT53_xW1.js} +5 -5
- package/dist/{password-field-BKKiOiYa.js.map → password-field-VT53_xW1.js.map} +1 -1
- package/dist/password-field.cjs.js +1 -1
- package/dist/password-field.es.js +1 -1
- package/package.json +10 -10
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
|
-
*/var ar;function vt(){return ar||(ar=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)a.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(ur)),ur.exports}var mt=vt();const xt=ht(mt),bt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},yt=xt.bind(bt),pr="purpur-icon",wt="md",jt=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),$t=({content:t="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${jt(n)}>${i}${t}</svg>`},St=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),F=({svg:t,allyTitle:a,className:n,size:i=wt,...p})=>{const r=$t({content:St(t.svg),title:a}),e=yt(
|
|
13
|
+
*/var ar;function vt(){return ar||(ar=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)a.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(ur)),ur.exports}var mt=vt();const xt=ht(mt),bt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},yt=xt.bind(bt),pr="purpur-icon",wt="md",jt=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),$t=({content:t="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${jt(n)}>${i}${t}</svg>`},St=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),F=({svg:t,allyTitle:a,className:n,size:i=wt,...p})=>{const r=$t({content:St(t.svg),title:a}),e=yt(pr,`${pr}--${i}`,n);return s.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...p})};F.displayName="Icon";const Nt={name:"password-invisible",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M2.364 2.364a.9.9 0 0 1 1.272 0l3.809 3.808a11.61 11.61 0 0 1 2.218-.789A9.944 9.944 0 0 1 12 5.1c2.652 0 5 1.103 6.826 2.42 1.827 1.317 3.2 2.897 3.923 3.98l.333.5-.333.5c-.647.969-1.81 2.33-3.349 3.547a.9.9 0 0 1-1.116-1.413A15.273 15.273 0 0 0 20.894 12a15.297 15.297 0 0 0-3.12-3.02C16.134 7.797 14.148 6.9 12 6.9c-.655 0-1.295.083-1.914.233-.435.105-.86.242-1.274.407l.418.417a4.9 4.9 0 0 1 7.632 4.654.9.9 0 1 1-1.786-.222 3.1 3.1 0 0 0-4.538-3.123l11.098 11.098a.9.9 0 1 1-1.272 1.272l-3.809-3.808c-1.362.642-2.9 1.072-4.555 1.072-2.651 0-5-1.103-6.826-2.42-1.827-1.317-3.2-2.897-3.923-3.98L.918 12l.333-.5c.645-.966 1.804-2.322 3.335-3.536a.9.9 0 1 1 1.118 1.411A15.266 15.266 0 0 0 3.107 12a15.294 15.294 0 0 0 3.12 3.02C7.866 16.203 9.85 17.1 12 17.1c1.114 0 2.185-.24 3.188-.64l-.418-.418A4.9 4.9 0 0 1 7.1 12a8.888 8.888 0 0 1-.007-.225 2.488 2.488 0 0 1 .014-.385.9.9 0 1 1 1.786.222.79.79 0 0 0-.001.11A6.245 6.245 0 0 1 8.9 12a3.1 3.1 0 0 0 4.562 2.734L8.586 9.859a.912.912 0 0 1-.102-.102l-6.12-6.12a.9.9 0 0 1 0-1.273Z" clip-rule="evenodd"/></svg>',keywords:["password-invisible"],category:"action"},Br=t=>s.jsx(F,{...t,svg:Nt});Br.displayName="IconPasswordInvisible";const Ot={name:"password-visible",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.107 12a15.294 15.294 0 0 0 3.12 3.02C7.866 16.203 9.85 17.1 12 17.1c2.149 0 4.134-.897 5.774-2.08a15.295 15.295 0 0 0 3.12-3.02 15.3 15.3 0 0 0-3.12-3.02C16.134 7.797 14.148 6.9 12 6.9c-2.149 0-4.134.897-5.774 2.08A15.299 15.299 0 0 0 3.106 12Zm2.067-4.48C7 6.203 9.349 5.1 12 5.1c2.652 0 5 1.103 6.826 2.42 1.827 1.317 3.2 2.897 3.923 3.98l.333.5-.333.5c-.722 1.083-2.096 2.663-3.923 3.98C17 17.797 14.651 18.9 12 18.9s-5-1.103-6.826-2.42c-1.827-1.317-3.2-2.897-3.923-3.98L.918 12l.333-.5c.722-1.083 2.096-2.663 3.923-3.98ZM12 8.9a3.1 3.1 0 1 0 0 6.2 3.1 3.1 0 0 0 0-6.2ZM7.1 12a4.9 4.9 0 1 1 9.8 0 4.9 4.9 0 0 1-9.8 0Zm4-1.538a.9.9 0 0 1 .9-.9A2.438 2.438 0 0 1 14.438 12a.9.9 0 0 1-1.8 0 .638.638 0 0 0-.638-.638.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',keywords:["password-visible"],category:"action"},Lr=t=>s.jsx(F,{...t,svg:Ot});Lr.displayName="IconPasswordVisible";const Pt={LG:"lg"};function At(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ir={exports:{}};/*!
|
|
14
14
|
Copyright (c) 2018 Jed Watson.
|
|
15
15
|
Licensed under the MIT License (MIT), see
|
|
16
16
|
http://jedwatson.github.io/classnames
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
Copyright (c) 2018 Jed Watson.
|
|
23
23
|
Licensed under the MIT License (MIT), see
|
|
24
24
|
http://jedwatson.github.io/classnames
|
|
25
|
-
*/var fr;function Zt(){return fr||(fr=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)a.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(_r)),_r.exports}var Ft=Zt();const Gt=Wt(Ft),Vt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Ht=Gt.bind(Vt),gr="purpur-icon",Kt="md",Ut=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),Yt=({content:t="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${Ut(n)}>${i}${t}</svg>`},Xt=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Zr=({svg:t,allyTitle:a,className:n,size:i=Kt,...p})=>{const r=Yt({content:Xt(t.svg),title:a}),e=Ht(
|
|
25
|
+
*/var fr;function Zt(){return fr||(fr=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)a.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(_r)),_r.exports}var Ft=Zt();const Gt=Wt(Ft),Vt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Ht=Gt.bind(Vt),gr="purpur-icon",Kt="md",Ut=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),Yt=({content:t="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${Ut(n)}>${i}${t}</svg>`},Xt=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Zr=({svg:t,allyTitle:a,className:n,size:i=Kt,...p})=>{const r=Yt({content:Xt(t.svg),title:a}),e=Ht(gr,`${gr}--${i}`,n);return s.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...p})};Zr.displayName="Icon";const Jt={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"};function Qt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hr={exports:{}};/*!
|
|
26
26
|
Copyright (c) 2018 Jed Watson.
|
|
27
27
|
Licensed under the MIT License (MIT), see
|
|
28
28
|
http://jedwatson.github.io/classnames
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
Copyright (c) 2018 Jed Watson.
|
|
35
35
|
Licensed under the MIT License (MIT), see
|
|
36
36
|
http://jedwatson.github.io/classnames
|
|
37
|
-
*/var wr;function _e(){return wr||(wr=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)a.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(yr)),yr.exports}var fe=_e();const ge=de(fe),he={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},ve=ge.bind(he),jr="purpur-icon",me="md",xe=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),be=({content:t="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${xe(n)}>${i}${t}</svg>`},ye=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),G=({svg:t,allyTitle:a,className:n,size:i=me,...p})=>{const r=be({content:ye(t.svg),title:a}),e=ve(
|
|
37
|
+
*/var wr;function _e(){return wr||(wr=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)a.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(yr)),yr.exports}var fe=_e();const ge=de(fe),he={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},ve=ge.bind(he),jr="purpur-icon",me="md",xe=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),be=({content:t="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${xe(n)}>${i}${t}</svg>`},ye=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),G=({svg:t,allyTitle:a,className:n,size:i=me,...p})=>{const r=be({content:ye(t.svg),title:a}),e=ve(jr,`${jr}--${i}`,n);return s.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...p})};G.displayName="Icon";const we={name:"check-circle-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',keywords:["check-circle-filled"],category:"status"},Fr=t=>s.jsx(G,{...t,svg:we});Fr.displayName="IconCheckCircleFilled";const je={name:"close",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',keywords:["close"],category:"utility"},Gr=t=>s.jsx(G,{...t,svg:je});Gr.displayName="IconClose";function $r(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function $e(...t){return a=>{let n=!1;const i=t.map(p=>{const r=$r(p,a);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let p=0;p<i.length;p++){const r=i[p];typeof r=="function"?r():$r(t[p],null)}}}}function Se(t){const a=Ne(t),n=g.forwardRef((i,p)=>{const{children:r,...e}=i,u=g.Children.toArray(r),d=u.find(Pe);if(d){const o=d.props.children,_=u.map(l=>l===d?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:l);return s.jsx(a,{...e,ref:p,children:g.isValidElement(o)?g.cloneElement(o,void 0,_):null})}return s.jsx(a,{...e,ref:p,children:r})});return n.displayName=`${t}.Slot`,n}function Ne(t){const a=g.forwardRef((n,i)=>{const{children:p,...r}=n;if(g.isValidElement(p)){const e=Me(p),u=Ae(r,p.props);return p.type!==g.Fragment&&(u.ref=i?$e(i,e):e),g.cloneElement(p,u)}return g.Children.count(p)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var Oe=Symbol("radix.slottable");function Pe(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Oe}function Ae(t,a){const n={...a};for(const i in a){const p=t[i],r=a[i];/^on[A-Z]/.test(i)?p&&r?n[i]=(...e)=>{const u=r(...e);return p(...e),u}:p&&(n[i]=p):i==="style"?n[i]={...p,...r}:i==="className"&&(n[i]=[p,r].filter(Boolean).join(" "))}return{...t,...n}}function Me(t){var a,n;let i=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,p=i&&"isReactWarning"in i&&i.isReactWarning;return p?t.ref:(i=(n=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:n.get,p=i&&"isReactWarning"in i&&i.isReactWarning,p?t.props.ref:t.props.ref||t.ref)}var Ce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ke=Ce.reduce((t,a)=>{const n=Se(`Primitive.${a}`),i=g.forwardRef((p,r)=>{const{asChild:e,...u}=p,d=e?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(d,{...u,ref:r})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{}),Re="Label",Vr=g.forwardRef((t,a)=>s.jsx(ke.label,{...t,ref:a,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=t.onMouseDown)==null||i.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Vr.displayName=Re;var qe=Vr;function ze(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Sr={exports:{}};/*!
|
|
38
38
|
Copyright (c) 2018 Jed Watson.
|
|
39
39
|
Licensed under the MIT License (MIT), see
|
|
40
40
|
http://jedwatson.github.io/classnames
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
Copyright (c) 2018 Jed Watson.
|
|
55
55
|
Licensed under the MIT License (MIT), see
|
|
56
56
|
http://jedwatson.github.io/classnames
|
|
57
|
-
*/var qr;function pn(){return qr||(qr=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)a.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Rr)),Rr.exports}var sn=pn();const on=an(sn),ln={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},cn=on.bind(ln),dn={PARAGRAPH100:"paragraph-100"},C="purpur-paragraph",Yr=({children:t,className:a,disabled:n,enableHyphenation:i=!1,negative:p=!1,variant:r=dn.PARAGRAPH100,...e})=>{const u=cn(a,C,`${C}--${r}`,{[`${C}--hyphens`]:i,[`${C}--disabled`]:n,[`${C}--negative`]:p});return s.jsx("p",{...e,className:u,children:t})};Yr.displayName="Paragraph";const _n={"purpur-password-strength":"_purpur-password-strength_sa1ua_1","purpur-password-strength__indicator-container":"_purpur-password-strength__indicator-container_sa1ua_6","purpur-password-strength__password-strength-text--weak":"_purpur-password-strength__password-strength-text--weak_sa1ua_10","purpur-password-strength__password-strength-text--medium":"_purpur-password-strength__password-strength-text--medium_sa1ua_13","purpur-password-strength__password-strength-text--strong":"_purpur-password-strength__password-strength-text--strong_sa1ua_16","purpur-password-strength__password-strength-label":"_purpur-password-strength__password-strength-label_sa1ua_19"},fn={"purpur-password-strength-indicator":"_purpur-password-strength-indicator_1o6zr_1","purpur-password-strength-indicator--active":"_purpur-password-strength-indicator--active_1o6zr_7","purpur-password-strength-indicator--weak":"_purpur-password-strength-indicator--weak_1o6zr_7","purpur-password-strength-indicator--medium":"_purpur-password-strength-indicator--medium_1o6zr_10","purpur-password-strength-indicator--strong":"_purpur-password-strength-indicator--strong_1o6zr_13"},gn=V.bind(fn),Z="purpur-password-strength-indicator",q=h.forwardRef(({["data-testid"]:t="password-strength-indicator",active:a,className:n,passwordStrength:i,...p},r)=>{const e=gn(n,Z,{[`${Z}--${i}`]:i},{[`${Z}--active`]:a});return s.jsx("div",{...p,"data-testid":t,className:e,ref:r})});q.displayName="PasswordStrengthIndicator";const hn=(t,a,n,i)=>{const[p,r]=h.useState(0),[e,u]=h.useState(),[d,o]=h.useState(void 0),_=h.useMemo(()=>({0:[M.WEAK,a],1:[M.WEAK,a],2:[M.MEDIUM,n],3:[M.STRONG,i],4:[M.STRONG,i]}),[a,n,i]);return h.useEffect(()=>{(async()=>{if(!t)r(0),u(void 0),o(void 0);else{const{default:l}=await Promise.resolve().then(()=>require("./main-
|
|
58
|
-
//# sourceMappingURL=password-field-
|
|
57
|
+
*/var qr;function pn(){return qr||(qr=1,(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=p(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var u in r)a.call(r,u)&&r[u]&&(e=p(e,this&&this[u]||u));return e}function p(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Rr)),Rr.exports}var sn=pn();const on=an(sn),ln={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},cn=on.bind(ln),dn={PARAGRAPH100:"paragraph-100"},C="purpur-paragraph",Yr=({children:t,className:a,disabled:n,enableHyphenation:i=!1,negative:p=!1,variant:r=dn.PARAGRAPH100,...e})=>{const u=cn(a,C,`${C}--${r}`,{[`${C}--hyphens`]:i,[`${C}--disabled`]:n,[`${C}--negative`]:p});return s.jsx("p",{...e,className:u,children:t})};Yr.displayName="Paragraph";const _n={"purpur-password-strength":"_purpur-password-strength_sa1ua_1","purpur-password-strength__indicator-container":"_purpur-password-strength__indicator-container_sa1ua_6","purpur-password-strength__password-strength-text--weak":"_purpur-password-strength__password-strength-text--weak_sa1ua_10","purpur-password-strength__password-strength-text--medium":"_purpur-password-strength__password-strength-text--medium_sa1ua_13","purpur-password-strength__password-strength-text--strong":"_purpur-password-strength__password-strength-text--strong_sa1ua_16","purpur-password-strength__password-strength-label":"_purpur-password-strength__password-strength-label_sa1ua_19"},fn={"purpur-password-strength-indicator":"_purpur-password-strength-indicator_1o6zr_1","purpur-password-strength-indicator--active":"_purpur-password-strength-indicator--active_1o6zr_7","purpur-password-strength-indicator--weak":"_purpur-password-strength-indicator--weak_1o6zr_7","purpur-password-strength-indicator--medium":"_purpur-password-strength-indicator--medium_1o6zr_10","purpur-password-strength-indicator--strong":"_purpur-password-strength-indicator--strong_1o6zr_13"},gn=V.bind(fn),Z="purpur-password-strength-indicator",q=h.forwardRef(({["data-testid"]:t="password-strength-indicator",active:a,className:n,passwordStrength:i,...p},r)=>{const e=gn(n,Z,{[`${Z}--${i}`]:i},{[`${Z}--active`]:a});return s.jsx("div",{...p,"data-testid":t,className:e,ref:r})});q.displayName="PasswordStrengthIndicator";const hn=(t,a,n,i)=>{const[p,r]=h.useState(0),[e,u]=h.useState(),[d,o]=h.useState(void 0),_=h.useMemo(()=>({0:[M.WEAK,a],1:[M.WEAK,a],2:[M.MEDIUM,n],3:[M.STRONG,i],4:[M.STRONG,i]}),[a,n,i]);return h.useEffect(()=>{(async()=>{if(!t)r(0),u(void 0),o(void 0);else{const{default:l}=await Promise.resolve().then(()=>require("./main-CWlCCnV6.js")).then(m=>m.main),{score:v}=l(t),[b,c]=_[v];r(v),u(b),o(c)}})()},[t,_]),{score:p,passwordStrength:e,currentPasswordStrengthText:d}},R=V.bind(_n),k="purpur-password-strength",H=h.forwardRef(({["data-testid"]:t="password-strength",className:a,value:n,label:i,weakText:p,mediumText:r,strongText:e,...u},d)=>{const o=R(a,k),{score:_,passwordStrength:l,currentPasswordStrengthText:v}=hn(n,p,r,e);return s.jsxs("div",{"data-testid":t,className:o,ref:d,...u,children:[s.jsxs("div",{className:R(`${k}__indicator-container`),children:[s.jsx(q,{active:!!l,passwordStrength:l}),s.jsx(q,{active:!!l&&_>1,passwordStrength:l}),s.jsx(q,{active:!!l&&_>2,passwordStrength:l})]}),s.jsxs(Yr,{"aria-live":"polite","data-testid":`${t}-text`,className:R(`${k}__password-strength-text`,{[`${k}__password-strength-text--${l}`]:l}),children:[s.jsxs("span",{className:R(`${k}__password-strength-label`),children:[i,v?": ":""]}),v]})]})});H.displayName="PasswordStrength";const zr=V.bind(un),Dr="purpur-password-field",K=h.forwardRef(({["data-testid"]:t="password-field",children:a,className:n,hidePasswordAriaLabel:i,onChange:p,showPasswordAriaLabel:r,...e},u)=>{const d=zr(n,Dr),[o,_]=h.useState(N.PASSWORD),l=async c=>{p==null||p(c)},v=()=>{_(o===N.PASSWORD?N.TEXT:N.PASSWORD)},b=o===N.PASSWORD?Lr:Br;return s.jsxs("div",{className:d,children:[s.jsx(Kr,{className:zr(`${Dr}__text-field`),"data-testid":t,onChange:l,ref:u,type:o,endAdornment:s.jsx(Ir,{"aria-label":o===N.PASSWORD?r:i,"data-testid":`${t}-type-toggle-button`,onClick:v,size:"sm",variant:"tertiary-purple",iconOnly:!0,children:s.jsx(b,{size:"sm"})}),...e}),a]})});K.PasswordStrength=H;K.displayName="PasswordField";const vn=t=>h.isValidElement(t)&&(t==null?void 0:t.type)===H;exports.PasswordField=K;exports.getDefaultExportFromCjs=Ur;exports.isPasswordStrength=vn;
|
|
58
|
+
//# sourceMappingURL=password-field-VT53_xW1.js.map
|