Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@purpurds/text-field

Package Overview
Dependencies
Maintainers
0
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/text-field - npm Package Compare versions

Comparing version 5.27.3 to 5.27.4

12

dist/LICENSE.txt
Name: @purpurds/button
Version: 5.27.2
Version: 5.27.3
License: AGPL-3.0-only

@@ -9,3 +9,3 @@ Private: false

Name: @purpurds/field-error-text
Version: 5.27.2
Version: 5.27.3
License: AGPL-3.0-only

@@ -17,3 +17,3 @@ Private: false

Name: @purpurds/field-helper-text
Version: 5.27.2
Version: 5.27.3
License: AGPL-3.0-only

@@ -25,3 +25,3 @@ Private: false

Name: @purpurds/icon
Version: 5.27.2
Version: 5.27.3
License: AGPL-3.0-only

@@ -33,3 +33,3 @@ Private: false

Name: @purpurds/label
Version: 5.27.2
Version: 5.27.3
License: AGPL-3.0-only

@@ -41,3 +41,3 @@ Private: false

Name: @purpurds/spinner
Version: 5.27.2
Version: 5.27.3
License: AGPL-3.0-only

@@ -44,0 +44,0 @@ Private: false

@@ -1,38 +0,38 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("react");require("react-dom");const dr={LG:"lg"};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U={exports:{}};/*!
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("react");require("react-dom");const dr={SM:"sm",MD:"md",LG:"lg"};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(U);var fr=U.exports;const k=_r(fr),xr="_rotate_1xozj_1",vr="_dash_1xozj_1",j={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:xr,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:vr,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},$="purpur-spinner",mr={SM:"sm"},gr=({["data-testid"]:e,disabled:u=!1,negative:n=!1,size:a=mr.SM,...l})=>o.jsx("div",{className:k([j[$],j[`${$}--${a}`]]),"data-testid":e,...l,children:o.jsx("svg",{viewBox:"0 0 50 50",children:o.jsx("circle",{className:k(j[`${$}__circle`],{[j[`${$}__circle--disabled`]]:u,[j[`${$}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W={exports:{}};/*!
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(J);var fr=J.exports;const V=_r(fr),xr="_rotate_1xozj_1",vr="_dash_1xozj_1",j={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:xr,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:vr,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},$="purpur-spinner",mr={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},gr=({["data-testid"]:e,disabled:u=!1,negative:n=!1,size:a=mr.SM,...l})=>s.jsx("div",{className:V([j[$],j[`${$}--${a}`]]),"data-testid":e,...l,children:s.jsx("svg",{viewBox:"0 0 50 50",children:s.jsx("circle",{className:V(j[`${$}__circle`],{[j[`${$}__circle--disabled`]]:u,[j[`${$}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a.call(this,i)))}return r}function a(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 t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,this&&this[i]||i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(W);var yr=W.exports;const hr=br(yr),jr={"purpur-button":"_purpur-button_1acxn_1","purpur-button--sm":"_purpur-button--sm_1acxn_33","purpur-button--icon-only":"_purpur-button--icon-only_1acxn_36","purpur-button--md":"_purpur-button--md_1acxn_39","purpur-button--lg":"_purpur-button--lg_1acxn_45","purpur-button--full-width":"_purpur-button--full-width_1acxn_51","purpur-button--primary":"_purpur-button--primary_1acxn_54","purpur-button--disabled":"_purpur-button--disabled_1acxn_58","purpur-button--primary-negative":"_purpur-button--primary-negative_1acxn_64","purpur-button--secondary":"_purpur-button--secondary_1acxn_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_1acxn_87","purpur-button--expressive":"_purpur-button--expressive_1acxn_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_1acxn_108","purpur-button--negative":"_purpur-button--negative_1acxn_120","purpur-button--destructive":"_purpur-button--destructive_1acxn_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_1acxn_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_1acxn_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_1acxn_160","purpur-button--text-negative":"_purpur-button--text-negative_1acxn_175","purpur-button--text":"_purpur-button--text_1acxn_175"},$r=hr.bind(jr),m="purpur-button",wr=({children:e,className:u,["data-testid"]:n,disabled:a=!1,fullWidth:l=!1,iconOnly:r,loading:t=!1,negative:i=!1,onClick:x,size:h="md",variant:v,type:O="button",...N},p)=>{if(r&&v==="destructive")return null;const g=$r([m,`${m}--${i?`${v}-negative`:v}`,`${m}--${h}`],{[`${m}--icon-only`]:r,[`${m}--negative`]:i,[`${m}--full-width`]:l,[`${m}--disabled`]:a||t},u),z=d=>{a||t?d.preventDefault():x&&x(d)},b=!!N["aria-disabled"]||a||t;return o.jsxs("button",{className:g,"data-testid":n,type:O,ref:p,"aria-disabled":b,onClick:z,...N,children:[t&&o.jsx(gr,{size:h===dr.LG?"xs":"xxs",negative:i,disabled:b})," ",e]})},X=s.forwardRef(wr);X.displayName="Button";function Sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K={exports:{}};/*!
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a.call(this,i)))}return r}function a(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 t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,this&&this[i]||i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(U);var yr=U.exports;const hr=br(yr),jr={"purpur-button":"_purpur-button_1acxn_1","purpur-button--sm":"_purpur-button--sm_1acxn_33","purpur-button--icon-only":"_purpur-button--icon-only_1acxn_36","purpur-button--md":"_purpur-button--md_1acxn_39","purpur-button--lg":"_purpur-button--lg_1acxn_45","purpur-button--full-width":"_purpur-button--full-width_1acxn_51","purpur-button--primary":"_purpur-button--primary_1acxn_54","purpur-button--disabled":"_purpur-button--disabled_1acxn_58","purpur-button--primary-negative":"_purpur-button--primary-negative_1acxn_64","purpur-button--secondary":"_purpur-button--secondary_1acxn_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_1acxn_87","purpur-button--expressive":"_purpur-button--expressive_1acxn_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_1acxn_108","purpur-button--negative":"_purpur-button--negative_1acxn_120","purpur-button--destructive":"_purpur-button--destructive_1acxn_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_1acxn_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_1acxn_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_1acxn_160","purpur-button--text-negative":"_purpur-button--text-negative_1acxn_175","purpur-button--text":"_purpur-button--text_1acxn_175"},$r=hr.bind(jr),m="purpur-button",wr=({children:e,className:u,["data-testid"]:n,disabled:a=!1,fullWidth:l=!1,iconOnly:r,loading:t=!1,negative:i=!1,onClick:x,size:h="md",variant:v,type:O="button",...N},p)=>{if(r&&v==="destructive")return null;const g=$r([m,`${m}--${i?`${v}-negative`:v}`,`${m}--${h}`],{[`${m}--icon-only`]:r,[`${m}--negative`]:i,[`${m}--full-width`]:l,[`${m}--disabled`]:a||t},u),z=d=>{a||t?d.preventDefault():x&&x(d)},b=!!N["aria-disabled"]||a||t;return s.jsxs("button",{className:g,"data-testid":n,type:O,ref:p,"aria-disabled":b,onClick:z,...N,children:[t&&s.jsx(gr,{size:h===dr.LG?"xs":"xxs",negative:i,disabled:b})," ",e]})},W=o.forwardRef(wr);W.displayName="Button";function Sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a.call(this,i)))}return r}function a(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 t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,this&&this[i]||i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(K);var Nr=K.exports;const Or=Sr(Nr),zr={"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"},Mr={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"},Ar=Or.bind(zr),T="purpur-icon",Cr="md",qr=e=>e.filter(u=>Object.keys(u).length>=1).map(u=>`${u.name}="${u.value}"`).join(" "),Er=({content:e="",title:u}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},u?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=u?`<title>${u}</title>`:"";return`<svg ${qr(n)}>${a}${e}</svg>`},Ir=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Q=({["data-testid"]:e,svg:u,allyTitle:n,className:a,size:l=Cr,...r})=>{const t=Er({content:Ir(u.svg),title:n}),i=Ar(a,T,`${T}--${l}`);return o.jsx("span",{"aria-label":n,className:i,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};Q.displayName="Icon";function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr={exports:{}};/*!
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a.call(this,i)))}return r}function a(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 t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,this&&this[i]||i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(K);var Nr=K.exports;const Or=Sr(Nr),zr={"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"},Mr={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"},Ar=Or.bind(zr),k="purpur-icon",Cr="md",qr=e=>e.filter(u=>Object.keys(u).length>=1).map(u=>`${u.name}="${u.value}"`).join(" "),Er=({content:e="",title:u}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},u?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=u?`<title>${u}</title>`:"";return`<svg ${qr(n)}>${a}${e}</svg>`},Ir=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Q=({["data-testid"]:e,svg:u,allyTitle:n,className:a,size:l=Cr,...r})=>{const t=Er({content:Ir(u.svg),title:n}),i=Ar(a,k,`${k}--${l}`);return s.jsx("span",{"aria-label":n,className:i,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};Q.displayName="Icon";function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(rr);var Vr=rr.exports;const Br=Rr(Vr),Z={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},D="purpur-field-error-text",Fr=({["data-testid"]:e,children:u,className:n,relevant:a="additions text",...l})=>o.jsxs("div",{className:Br([n,Z[D]]),"data-testid":e,"aria-live":"assertive","aria-relevant":a,...l,children:[o.jsx(Q,{svg:Mr,size:"xs",className:Z[`${D}__icon`]}),u]});function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var er={exports:{}};/*!
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(rr);var Rr=rr.exports;const Br=Lr(Rr),T={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},X="purpur-field-error-text",Dr=({["data-testid"]:e,children:u,className:n,relevant:a="additions text",...l})=>s.jsxs("div",{className:Br([n,T[X]]),"data-testid":e,"aria-live":"assertive","aria-relevant":a,...l,children:[s.jsx(Q,{svg:Mr,size:"xs",className:T[`${X}__icon`]}),u]});function Fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var er={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(er);var Pr=er.exports;const kr=Lr(Pr),Y={"purpur-field-helper-text":"_purpur-field-helper-text_atw6b_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_atw6b_9"},G="purpur-field-helper-text",Tr=({["data-testid"]:e,children:u,className:n,disabled:a,id:l,...r})=>{const t=kr([n,Y[G],{[Y[`${G}--disabled`]]:a}]);return o.jsx("span",{id:l,className:t,"data-testid":e,...r,children:u})};function Zr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tr={exports:{}};/*!
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(er);var Pr=er.exports;const Vr=Fr(Pr),Z={"purpur-field-helper-text":"_purpur-field-helper-text_atw6b_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_atw6b_9"},G="purpur-field-helper-text",kr=({["data-testid"]:e,children:u,className:n,disabled:a,id:l,...r})=>{const t=Vr([n,Z[G],{[Z[`${G}--disabled`]]:a}]);return s.jsx("span",{id:l,className:t,"data-testid":e,...r,children:u})};function Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a.call(this,i)))}return r}function a(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 t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,this&&this[i]||i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(tr);var Dr=tr.exports;const Yr=Zr(Dr),Gr={"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"},Hr={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"},Jr={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"},nr=e=>o.jsx(R,{...e,svg:Hr});nr.displayName="IconCheckCircleFilled";const ir=e=>o.jsx(R,{...e,svg:Jr});ir.displayName="IconClose";const Ur=Yr.bind(Gr),H="purpur-icon",Wr="md",Xr=e=>e.filter(u=>Object.keys(u).length>=1).map(u=>`${u.name}="${u.value}"`).join(" "),Kr=({content:e="",title:u}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},u?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=u?`<title>${u}</title>`:"";return`<svg ${Xr(n)}>${a}${e}</svg>`},Qr=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),R=({["data-testid"]:e,svg:u,allyTitle:n,className:a,size:l=Wr,...r})=>{const t=Kr({content:Qr(u.svg),title:n}),i=Ur(a,H,`${H}--${l}`);return o.jsx("span",{"aria-label":n,className:i,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};R.displayName="Icon";function y(){return y=Object.assign?Object.assign.bind():function(e){for(var u=1;u<arguments.length;u++){var n=arguments[u];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},y.apply(null,arguments)}function re(e,u){typeof e=="function"?e(u):e!=null&&(e.current=u)}function ee(...e){return u=>e.forEach(n=>re(n,u))}const ur=s.forwardRef((e,u)=>{const{children:n,...a}=e,l=s.Children.toArray(n),r=l.find(ne);if(r){const t=r.props.children,i=l.map(x=>x===r?s.Children.count(t)>1?s.Children.only(null):s.isValidElement(t)?t.props.children:null:x);return s.createElement(I,y({},a,{ref:u}),s.isValidElement(t)?s.cloneElement(t,void 0,i):null)}return s.createElement(I,y({},a,{ref:u}),n)});ur.displayName="Slot";const I=s.forwardRef((e,u)=>{const{children:n,...a}=e;return s.isValidElement(n)?s.cloneElement(n,{...ie(a,n.props),ref:u?ee(u,n.ref):n.ref}):s.Children.count(n)>1?s.Children.only(null):null});I.displayName="SlotClone";const te=({children:e})=>s.createElement(s.Fragment,null,e);function ne(e){return s.isValidElement(e)&&e.type===te}function ie(e,u){const n={...u};for(const a in u){const l=e[a],r=u[a];/^on[A-Z]/.test(a)?l&&r?n[a]=(...t)=>{r(...t),l(...t)}:l&&(n[a]=l):a==="style"?n[a]={...l,...r}:a==="className"&&(n[a]=[l,r].filter(Boolean).join(" "))}return{...e,...n}}const ue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ae=ue.reduce((e,u)=>{const n=s.forwardRef((a,l)=>{const{asChild:r,...t}=a,i=r?ur:u;return s.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),s.createElement(i,y({},t,{ref:l}))});return n.displayName=`Primitive.${u}`,{...e,[u]:n}},{}),le=s.forwardRef((e,u)=>s.createElement(ae.label,y({},e,{ref:u,onMouseDown:n=>{var a;(a=e.onMouseDown)===null||a===void 0||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),oe=le;function se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ar={exports:{}};/*!
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a.call(this,i)))}return r}function a(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 t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,this&&this[i]||i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(tr);var Xr=tr.exports;const Zr=Tr(Xr),Gr={"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"},Hr={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"},Yr={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"},nr=e=>s.jsx(L,{...e,svg:Hr});nr.displayName="IconCheckCircleFilled";const ir=e=>s.jsx(L,{...e,svg:Yr});ir.displayName="IconClose";const Jr=Zr.bind(Gr),H="purpur-icon",Ur="md",Wr=e=>e.filter(u=>Object.keys(u).length>=1).map(u=>`${u.name}="${u.value}"`).join(" "),Kr=({content:e="",title:u}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},u?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=u?`<title>${u}</title>`:"";return`<svg ${Wr(n)}>${a}${e}</svg>`},Qr=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),L=({["data-testid"]:e,svg:u,allyTitle:n,className:a,size:l=Ur,...r})=>{const t=Kr({content:Qr(u.svg),title:n}),i=Jr(a,H,`${H}--${l}`);return s.jsx("span",{"aria-label":n,className:i,"data-testid":e,dangerouslySetInnerHTML:{__html:t},...r})};L.displayName="Icon";function y(){return y=Object.assign?Object.assign.bind():function(e){for(var u=1;u<arguments.length;u++){var n=arguments[u];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},y.apply(null,arguments)}function re(e,u){typeof e=="function"?e(u):e!=null&&(e.current=u)}function ee(...e){return u=>e.forEach(n=>re(n,u))}const ur=o.forwardRef((e,u)=>{const{children:n,...a}=e,l=o.Children.toArray(n),r=l.find(ne);if(r){const t=r.props.children,i=l.map(x=>x===r?o.Children.count(t)>1?o.Children.only(null):o.isValidElement(t)?t.props.children:null:x);return o.createElement(I,y({},a,{ref:u}),o.isValidElement(t)?o.cloneElement(t,void 0,i):null)}return o.createElement(I,y({},a,{ref:u}),n)});ur.displayName="Slot";const I=o.forwardRef((e,u)=>{const{children:n,...a}=e;return o.isValidElement(n)?o.cloneElement(n,{...ie(a,n.props),ref:u?ee(u,n.ref):n.ref}):o.Children.count(n)>1?o.Children.only(null):null});I.displayName="SlotClone";const te=({children:e})=>o.createElement(o.Fragment,null,e);function ne(e){return o.isValidElement(e)&&e.type===te}function ie(e,u){const n={...u};for(const a in u){const l=e[a],r=u[a];/^on[A-Z]/.test(a)?l&&r?n[a]=(...t)=>{r(...t),l(...t)}:l&&(n[a]=l):a==="style"?n[a]={...l,...r}:a==="className"&&(n[a]=[l,r].filter(Boolean).join(" "))}return{...e,...n}}const ue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ae=ue.reduce((e,u)=>{const n=o.forwardRef((a,l)=>{const{asChild:r,...t}=a,i=r?ur:u;return o.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),o.createElement(i,y({},t,{ref:l}))});return n.displayName=`Primitive.${u}`,{...e,[u]:n}},{}),le=o.forwardRef((e,u)=>o.createElement(ae.label,y({},e,{ref:u,onMouseDown:n=>{var a;(a=e.onMouseDown)===null||a===void 0||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),se=le;function oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ar={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ar);var pe=ar.exports;const ce=se(pe),q={"purpur-label":"_purpur-label_12cfi_1","purpur-label--negative":"_purpur-label--negative_12cfi_9","purpur-label--disabled":"_purpur-label--disabled_12cfi_12"},E="purpur-label",de=({children:e,className:u,htmlFor:n,"data-testid":a,disabled:l,negative:r=!1,...t})=>{const i=ce([u,q[E],{[q[`${E}--disabled`]]:l,[q[`${E}--negative`]]:r}]);return o.jsx(oe,{className:i,"data-testid":a,htmlFor:n,...t,children:e})};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lr={exports:{}};/*!
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ar);var pe=ar.exports;const ce=oe(pe),q={"purpur-label":"_purpur-label_12cfi_1","purpur-label--negative":"_purpur-label--negative_12cfi_9","purpur-label--disabled":"_purpur-label--disabled_12cfi_12"},E="purpur-label",de=({children:e,className:u,htmlFor:n,"data-testid":a,disabled:l,negative:r=!1,...t})=>{const i=ce([u,q[E],{[q[`${E}--disabled`]]:l,[q[`${E}--negative`]]:r}]);return s.jsx(se,{className:i,"data-testid":a,htmlFor:n,...t,children:e})};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lr);var fe=lr.exports;const J=_e(fe),xe="_rotate_1xozj_1",ve="_dash_1xozj_1",w={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:xe,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:ve,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},S="purpur-spinner",me={SM:"sm"},ge=({["data-testid"]:e,disabled:u=!1,negative:n=!1,size:a=me.SM,...l})=>o.jsx("div",{className:J([w[S],w[`${S}--${a}`]]),"data-testid":e,...l,children:o.jsx("svg",{viewBox:"0 0 50 50",children:o.jsx("circle",{className:J(w[`${S}__circle`],{[w[`${S}__circle--disabled`]]:u,[w[`${S}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var or={exports:{}};/*!
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a(i)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lr);var fe=lr.exports;const Y=_e(fe),xe="_rotate_1xozj_1",ve="_dash_1xozj_1",w={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:xe,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:ve,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},S="purpur-spinner",me={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},ge=({["data-testid"]:e,disabled:u=!1,negative:n=!1,size:a=me.SM,...l})=>s.jsx("div",{className:Y([w[S],w[`${S}--${a}`]]),"data-testid":e,...l,children:s.jsx("svg",{viewBox:"0 0 50 50",children:s.jsx("circle",{className:Y(w[`${S}__circle`],{[w[`${S}__circle--disabled`]]:u,[w[`${S}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a.call(this,i)))}return r}function a(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 t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,this&&this[i]||i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(or);var ye=or.exports;const he=be(ye),je={"purpur-text-field":"_purpur-text-field_nj9f4_1","purpur-text-field__label":"_purpur-text-field__label_nj9f4_7","purpur-text-field__label-text":"_purpur-text-field__label-text_nj9f4_13","purpur-text-field__field-row":"_purpur-text-field__field-row_nj9f4_16","purpur-text-field__frame":"_purpur-text-field__frame_nj9f4_20","purpur-text-field__input-container":"_purpur-text-field__input-container_nj9f4_27","purpur-text-field__input-container--disabled":"_purpur-text-field__input-container--disabled_nj9f4_38","purpur-text-field__input-container--readonly":"_purpur-text-field__input-container--readonly_nj9f4_41","purpur-text-field__input-container--has-clear-button":"_purpur-text-field__input-container--has-clear-button_nj9f4_44","purpur-text-field__input-container--end-adornment":"_purpur-text-field__input-container--end-adornment_nj9f4_47","purpur-text-field__input":"_purpur-text-field__input_nj9f4_27","purpur-text-field__input-container--start-adornment":"_purpur-text-field__input-container--start-adornment_nj9f4_53","purpur-text-field__input--valid":"_purpur-text-field__input--valid_nj9f4_94","purpur-text-field__input--error":"_purpur-text-field__input--error_nj9f4_94","purpur-text-field__adornment-container":"_purpur-text-field__adornment-container_nj9f4_106","purpur-text-field__valid-icon":"_purpur-text-field__valid-icon_nj9f4_111"},$e=e=>s.useRef(e),f=he.bind(je),c="purpur-text-field",we=({["data-testid"]:e,className:u,clearButtonAllyLabel:n,beforeField:a,afterField:l,endAdornment:r,errorText:t,helperText:i,label:x,loading:h=!1,onClear:v,startAdornment:O,valid:N=!1,...p},g)=>{var P;const z=s.useId(),b=p.id??z,d=_=>e?`${e}-${_}`:void 0,B=N&&!t,M=i?`${b}-helper-text`:void 0,A=[O].filter(_=>!!_),F=(typeof p.value=="number"?p.value!==void 0:(P=p.value)==null?void 0:P.length)&&!p.disabled&&!p.readOnly&&!h&&v&&n,L=$e(null),sr=_=>{L.current=_,typeof g=="function"?g(_):g&&(g.current=_)},pr=()=>{var _;v==null||v(),(_=L.current)==null||_.focus()},C=[h&&o.jsx(ge,{disabled:p.disabled,size:"xs","data-testid":d("spinner")},"spinner"),F&&o.jsx(X,{variant:"tertiary-purple",onClick:pr,iconOnly:!0,"aria-label":n??"","data-testid":d("clear-button"),tabIndex:-1,children:o.jsx(ir,{size:"xs"})},"clear-button"),B&&o.jsx(nr,{"data-testid":d("valid-icon"),className:f(`${c}__valid-icon`)},"valid-icon")].filter(_=>!!_),cr=f([`${c}__input-container`,{[`${c}__input-container--start-adornment`]:A.length,[`${c}__input-container--end-adornment`]:C.length||r,[`${c}__input-container--disabled`]:p.disabled,[`${c}__input-container--has-clear-button`]:F,[`${c}__input-container--readonly`]:p.readOnly&&!p.disabled}]);return o.jsxs("div",{className:f(u,c),children:[x&&o.jsx(de,{htmlFor:b,className:f(`${c}__label`),"data-testid":d("label"),disabled:p.disabled,children:`${p.required?"* ":""}${x}`}),o.jsxs("div",{className:f(`${c}__field-row`),children:[!!a&&a,o.jsxs("div",{className:cr,children:[!!A.length&&o.jsx("div",{"data-testid":d("start-adornments"),className:f(`${c}__adornment-container`),children:A}),o.jsx("input",{...p,id:b,ref:sr,"data-testid":d("input"),"aria-describedby":p["aria-describedby"]||M,"aria-invalid":p["aria-invalid"]||!!t,className:f([`${c}__input`,{[`${c}__input--valid`]:B,[`${c}__input--error`]:!!t}])}),o.jsx("div",{className:f(`${c}__frame`)}),(!!C.length||r)&&o.jsxs("div",{"data-testid":d("end-adornments"),className:f(`${c}__adornment-container`),children:[C,r]})]}),!!l&&l]}),M&&o.jsx(Tr,{"data-testid":d("helper-text"),id:M,children:i}),t&&o.jsx(Fr,{"data-testid":d("error-text"),children:t})]})},V=s.forwardRef(we);V.displayName="TextField";const Se=e=>s.isValidElement(e)&&e.type.displayName===V.displayName;exports.TextField=V;exports.isTextField=Se;
*/(function(e){(function(){var u={}.hasOwnProperty;function n(){for(var r="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(r=l(r,a.call(this,i)))}return r}function a(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 t="";for(var i in r)u.call(r,i)&&r[i]&&(t=l(t,this&&this[i]||i));return t}function l(r,t){return t?r?r+" "+t:r+t:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(sr);var ye=sr.exports;const he=be(ye),je={"purpur-text-field":"_purpur-text-field_nj9f4_1","purpur-text-field__label":"_purpur-text-field__label_nj9f4_7","purpur-text-field__label-text":"_purpur-text-field__label-text_nj9f4_13","purpur-text-field__field-row":"_purpur-text-field__field-row_nj9f4_16","purpur-text-field__frame":"_purpur-text-field__frame_nj9f4_20","purpur-text-field__input-container":"_purpur-text-field__input-container_nj9f4_27","purpur-text-field__input-container--disabled":"_purpur-text-field__input-container--disabled_nj9f4_38","purpur-text-field__input-container--readonly":"_purpur-text-field__input-container--readonly_nj9f4_41","purpur-text-field__input-container--has-clear-button":"_purpur-text-field__input-container--has-clear-button_nj9f4_44","purpur-text-field__input-container--end-adornment":"_purpur-text-field__input-container--end-adornment_nj9f4_47","purpur-text-field__input":"_purpur-text-field__input_nj9f4_27","purpur-text-field__input-container--start-adornment":"_purpur-text-field__input-container--start-adornment_nj9f4_53","purpur-text-field__input--valid":"_purpur-text-field__input--valid_nj9f4_94","purpur-text-field__input--error":"_purpur-text-field__input--error_nj9f4_94","purpur-text-field__adornment-container":"_purpur-text-field__adornment-container_nj9f4_106","purpur-text-field__valid-icon":"_purpur-text-field__valid-icon_nj9f4_111"},$e=e=>o.useRef(e),f=he.bind(je),c="purpur-text-field",we=({["data-testid"]:e,className:u,clearButtonAllyLabel:n,beforeField:a,afterField:l,endAdornment:r,errorText:t,helperText:i,label:x,loading:h=!1,onClear:v,startAdornment:O,valid:N=!1,...p},g)=>{var P;const z=o.useId(),b=p.id??z,d=_=>e?`${e}-${_}`:void 0,B=N&&!t,M=i?`${b}-helper-text`:void 0,A=[O].filter(_=>!!_),D=(typeof p.value=="number"?p.value!==void 0:(P=p.value)==null?void 0:P.length)&&!p.disabled&&!p.readOnly&&!h&&v&&n,F=$e(null),or=_=>{F.current=_,typeof g=="function"?g(_):g&&(g.current=_)},pr=()=>{var _;v==null||v(),(_=F.current)==null||_.focus()},C=[h&&s.jsx(ge,{disabled:p.disabled,size:"xs","data-testid":d("spinner")},"spinner"),D&&s.jsx(W,{variant:"tertiary-purple",onClick:pr,iconOnly:!0,"aria-label":n??"","data-testid":d("clear-button"),tabIndex:-1,children:s.jsx(ir,{size:"xs"})},"clear-button"),B&&s.jsx(nr,{"data-testid":d("valid-icon"),className:f(`${c}__valid-icon`)},"valid-icon")].filter(_=>!!_),cr=f([`${c}__input-container`,{[`${c}__input-container--start-adornment`]:A.length,[`${c}__input-container--end-adornment`]:C.length||r,[`${c}__input-container--disabled`]:p.disabled,[`${c}__input-container--has-clear-button`]:D,[`${c}__input-container--readonly`]:p.readOnly&&!p.disabled}]);return s.jsxs("div",{className:f(u,c),children:[x&&s.jsx(de,{htmlFor:b,className:f(`${c}__label`),"data-testid":d("label"),disabled:p.disabled,children:`${p.required?"* ":""}${x}`}),s.jsxs("div",{className:f(`${c}__field-row`),children:[!!a&&a,s.jsxs("div",{className:cr,children:[!!A.length&&s.jsx("div",{"data-testid":d("start-adornments"),className:f(`${c}__adornment-container`),children:A}),s.jsx("input",{...p,id:b,ref:or,"data-testid":d("input"),"aria-describedby":p["aria-describedby"]||M,"aria-invalid":p["aria-invalid"]||!!t,className:f([`${c}__input`,{[`${c}__input--valid`]:B,[`${c}__input--error`]:!!t}])}),s.jsx("div",{className:f(`${c}__frame`)}),(!!C.length||r)&&s.jsxs("div",{"data-testid":d("end-adornments"),className:f(`${c}__adornment-container`),children:[C,r]})]}),!!l&&l]}),M&&s.jsx(kr,{"data-testid":d("helper-text"),id:M,children:i}),t&&s.jsx(Dr,{"data-testid":d("error-text"),children:t})]})},R=o.forwardRef(we);R.displayName="TextField";const Se=e=>o.isValidElement(e)&&e.type.displayName===R.displayName;exports.TextField=R;exports.isTextField=Se;
//# sourceMappingURL=text-field.cjs.js.map
import { jsxs as b, jsx as p } from "react/jsx-runtime";
import { forwardRef as h, Children as O, isValidElement as z, createElement as M, Fragment as mr, cloneElement as K, useEffect as gr, useRef as br, useId as yr } from "react";
import { forwardRef as h, Children as O, isValidElement as z, createElement as M, cloneElement as K, useEffect as mr, Fragment as gr, useRef as br, useId as yr } from "react";
import "react-dom";
const hr = {
SM: "sm",
MD: "md",
LG: "lg"

@@ -47,3 +49,3 @@ };

var wr = Q.exports;
const T = /* @__PURE__ */ $r(wr), jr = "_rotate_1xozj_1", Sr = "_dash_1xozj_1", w = {
const V = /* @__PURE__ */ $r(wr), jr = "_rotate_1xozj_1", Sr = "_dash_1xozj_1", w = {
"purpur-spinner": "_purpur-spinner_1xozj_1",

@@ -61,3 +63,7 @@ rotate: jr,

}, j = "purpur-spinner", Nr = {
SM: "sm"
XXS: "xxs",
XS: "xs",
SM: "sm",
MD: "md",
LG: "lg"
}, Or = ({

@@ -72,3 +78,3 @@ ["data-testid"]: t,

{
className: T([w[j], w[`${j}--${a}`]]),
className: V([w[j], w[`${j}--${a}`]]),
"data-testid": t,

@@ -79,3 +85,3 @@ ...o,

{
className: T(w[`${j}__circle`], {
className: V(w[`${j}__circle`], {
[w[`${j}__circle--disabled`]]: u,

@@ -204,3 +210,3 @@ [w[`${j}__circle--negative`]]: n

tr.displayName = "Button";
function Br(t) {
function Lr(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;

@@ -244,4 +250,4 @@ }

})(er);
var Lr = er.exports;
const Er = /* @__PURE__ */ Br(Lr), Pr = {
var Br = er.exports;
const Dr = /* @__PURE__ */ Lr(Br), Er = {
"purpur-icon": "_purpur-icon_8u1lq_1",

@@ -254,3 +260,3 @@ "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",

"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
}, kr = {
}, Pr = {
name: "error-filled",

@@ -260,3 +266,3 @@ 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>',

category: "status"
}, Fr = Er.bind(Pr), Y = "purpur-icon", Vr = "md", Zr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Dr = ({ content: t = "", title: u } = {}) => {
}, kr = Dr.bind(Er), T = "purpur-icon", Fr = "md", Xr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Zr = ({ content: t = "", title: u } = {}) => {
const n = [

@@ -268,3 +274,3 @@ { name: "xmlns", value: "http://www.w3.org/2000/svg" },

], a = u ? `<title>${u}</title>` : "";
return `<svg ${Zr(n)}>${a}${t}</svg>`;
return `<svg ${Xr(n)}>${a}${t}</svg>`;
}, Rr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), nr = ({

@@ -275,9 +281,9 @@ ["data-testid"]: t,

className: a,
size: o = Vr,
size: o = Fr,
...r
}) => {
const e = Dr({
const e = Zr({
content: Rr(u.svg),
title: n
}), i = Fr(a, Y, `${Y}--${o}`);
}), i = kr(a, T, `${T}--${o}`);
return /* @__PURE__ */ p(

@@ -295,3 +301,3 @@ "span",

nr.displayName = "Icon";
function Tr(t) {
function Vr(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;

@@ -335,4 +341,4 @@ }

})(ir);
var Yr = ir.exports;
const Gr = /* @__PURE__ */ Tr(Yr), G = {
var Tr = ir.exports;
const Gr = /* @__PURE__ */ Vr(Tr), G = {
"purpur-field-error-text": "_purpur-field-error-text_1u768_1",

@@ -355,3 +361,3 @@ "purpur-field-error-text__icon": "_purpur-field-error-text__icon_1u768_12"

children: [
/* @__PURE__ */ p(nr, { svg: kr, size: "xs", className: G[`${H}__icon`] }),
/* @__PURE__ */ p(nr, { svg: Pr, size: "xs", className: G[`${H}__icon`] }),
u

@@ -361,3 +367,3 @@ ]

);
function Jr(t) {
function Yr(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;

@@ -401,7 +407,7 @@ }

})(ur);
var Ur = ur.exports;
const Wr = /* @__PURE__ */ Jr(Ur), J = {
var Jr = ur.exports;
const Ur = /* @__PURE__ */ Yr(Jr), Y = {
"purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"
}, U = "purpur-field-helper-text", Xr = ({
}, J = "purpur-field-helper-text", Wr = ({
["data-testid"]: t,

@@ -414,7 +420,7 @@ children: u,

}) => {
const e = Wr([
const e = Ur([
n,
J[U],
Y[J],
{
[J[`${U}--disabled`]]: a
[Y[`${J}--disabled`]]: a
}

@@ -483,3 +489,3 @@ ]);

}, or = (t) => /* @__PURE__ */ p(
F,
k,
{

@@ -492,3 +498,3 @@ ...t,

const pr = (t) => /* @__PURE__ */ p(
F,
k,
{

@@ -500,3 +506,3 @@ ...t,

pr.displayName = "IconClose";
const it = rt.bind(tt), W = "purpur-icon", ut = "md", at = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), ot = ({ content: t = "", title: u } = {}) => {
const it = rt.bind(tt), U = "purpur-icon", ut = "md", at = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), ot = ({ content: t = "", title: u } = {}) => {
const n = [

@@ -509,3 +515,3 @@ { name: "xmlns", value: "http://www.w3.org/2000/svg" },

return `<svg ${at(n)}>${a}${t}</svg>`;
}, pt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), F = ({
}, pt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), k = ({
["data-testid"]: t,

@@ -521,3 +527,3 @@ svg: u,

title: n
}), i = it(a, W, `${W}--${o}`);
}), i = it(a, U, `${U}--${o}`);
return /* @__PURE__ */ p(

@@ -534,3 +540,3 @@ "span",

};
F.displayName = "Icon";
k.displayName = "Icon";
function y() {

@@ -557,7 +563,7 @@ return y = Object.assign ? Object.assign.bind() : function(t) {

const e = r.props.children, i = o.map((f) => f === r ? O.count(e) > 1 ? O.only(null) : /* @__PURE__ */ z(e) ? e.props.children : null : f);
return /* @__PURE__ */ M(k, y({}, a, {
return /* @__PURE__ */ M(P, y({}, a, {
ref: u
}), /* @__PURE__ */ z(e) ? /* @__PURE__ */ K(e, void 0, i) : null);
}
return /* @__PURE__ */ M(k, y({}, a, {
return /* @__PURE__ */ M(P, y({}, a, {
ref: u

@@ -567,3 +573,3 @@ }), n);

lr.displayName = "Slot";
const k = /* @__PURE__ */ h((t, u) => {
const P = /* @__PURE__ */ h((t, u) => {
const { children: n, ...a } = t;

@@ -575,4 +581,4 @@ return /* @__PURE__ */ z(n) ? /* @__PURE__ */ K(n, {

});
k.displayName = "SlotClone";
const ct = ({ children: t }) => /* @__PURE__ */ M(mr, null, t);
P.displayName = "SlotClone";
const ct = ({ children: t }) => /* @__PURE__ */ M(gr, null, t);
function dt(t) {

@@ -622,3 +628,3 @@ return /* @__PURE__ */ z(t) && t.type === ct;

const { asChild: r, ...e } = a, i = r ? lr : u;
return gr(() => {
return mr(() => {
window[Symbol.for("radix-ui")] = !0;

@@ -680,7 +686,7 @@ }, []), /* @__PURE__ */ M(i, y({}, e, {

var bt = sr.exports;
const yt = /* @__PURE__ */ gt(bt), E = {
const yt = /* @__PURE__ */ gt(bt), D = {
"purpur-label": "_purpur-label_12cfi_1",
"purpur-label--negative": "_purpur-label--negative_12cfi_9",
"purpur-label--disabled": "_purpur-label--disabled_12cfi_12"
}, P = "purpur-label", ht = ({
}, E = "purpur-label", ht = ({
children: t,

@@ -696,6 +702,6 @@ className: u,

u,
E[P],
D[E],
{
[E[`${P}--disabled`]]: o,
[E[`${P}--negative`]]: r
[D[`${E}--disabled`]]: o,
[D[`${E}--negative`]]: r
}

@@ -745,3 +751,3 @@ ]);

var wt = cr.exports;
const X = /* @__PURE__ */ $t(wt), jt = "_rotate_1xozj_1", St = "_dash_1xozj_1", S = {
const W = /* @__PURE__ */ $t(wt), jt = "_rotate_1xozj_1", St = "_dash_1xozj_1", S = {
"purpur-spinner": "_purpur-spinner_1xozj_1",

@@ -759,3 +765,7 @@ rotate: jt,

}, N = "purpur-spinner", Nt = {
SM: "sm"
XXS: "xxs",
XS: "xs",
SM: "sm",
MD: "md",
LG: "lg"
}, Ot = ({

@@ -770,3 +780,3 @@ ["data-testid"]: t,

{
className: X([S[N], S[`${N}--${a}`]]),
className: W([S[N], S[`${N}--${a}`]]),
"data-testid": t,

@@ -777,3 +787,3 @@ ...o,

{
className: X(S[`${N}__circle`], {
className: W(S[`${N}__circle`], {
[S[`${N}__circle--disabled`]]: u,

@@ -863,8 +873,8 @@ [S[`${N}__circle--negative`]]: n

var R;
const q = yr(), g = l.id ?? q, c = (d) => t ? `${t}-${d}` : void 0, V = A && !e, I = i ? `${g}-helper-text` : void 0, B = [C].filter((d) => !!d), Z = (typeof l.value == "number" ? l.value !== void 0 : (R = l.value) == null ? void 0 : R.length) && !l.disabled && !l.readOnly && !$ && v && n, D = qt(null), fr = (d) => {
D.current = d, typeof m == "function" ? m(d) : m && (m.current = d);
const q = yr(), g = l.id ?? q, c = (d) => t ? `${t}-${d}` : void 0, F = A && !e, I = i ? `${g}-helper-text` : void 0, L = [C].filter((d) => !!d), X = (typeof l.value == "number" ? l.value !== void 0 : (R = l.value) == null ? void 0 : R.length) && !l.disabled && !l.readOnly && !$ && v && n, Z = qt(null), fr = (d) => {
Z.current = d, typeof m == "function" ? m(d) : m && (m.current = d);
}, vr = () => {
var d;
v == null || v(), (d = D.current) == null || d.focus();
}, L = [
v == null || v(), (d = Z.current) == null || d.focus();
}, B = [
$ && /* @__PURE__ */ p(

@@ -879,3 +889,3 @@ Ot,

),
Z && /* @__PURE__ */ p(
X && /* @__PURE__ */ p(
tr,

@@ -893,3 +903,3 @@ {

),
V && /* @__PURE__ */ p(
F && /* @__PURE__ */ p(
or,

@@ -905,6 +915,6 @@ {

{
[`${s}__input-container--start-adornment`]: B.length,
[`${s}__input-container--end-adornment`]: L.length || r,
[`${s}__input-container--start-adornment`]: L.length,
[`${s}__input-container--end-adornment`]: B.length || r,
[`${s}__input-container--disabled`]: l.disabled,
[`${s}__input-container--has-clear-button`]: Z,
[`${s}__input-container--has-clear-button`]: X,
[`${s}__input-container--readonly`]: l.readOnly && !l.disabled

@@ -927,3 +937,3 @@ }

/* @__PURE__ */ b("div", { className: xr, children: [
!!B.length && /* @__PURE__ */ p(
!!L.length && /* @__PURE__ */ p(
"div",

@@ -933,3 +943,3 @@ {

className: _(`${s}__adornment-container`),
children: B
children: L
}

@@ -949,3 +959,3 @@ ),

{
[`${s}__input--valid`]: V,
[`${s}__input--valid`]: F,
[`${s}__input--error`]: !!e

@@ -957,3 +967,3 @@ }

/* @__PURE__ */ p("div", { className: _(`${s}__frame`) }),
(!!L.length || r) && /* @__PURE__ */ b(
(!!B.length || r) && /* @__PURE__ */ b(
"div",

@@ -964,3 +974,3 @@ {

children: [
L,
B,
r

@@ -973,3 +983,3 @@ ]

] }),
I && /* @__PURE__ */ p(Xr, { "data-testid": c("helper-text"), id: I, children: i }),
I && /* @__PURE__ */ p(Wr, { "data-testid": c("helper-text"), id: I, children: i }),
e && /* @__PURE__ */ p(Hr, { "data-testid": c("error-text"), children: e })

@@ -979,7 +989,7 @@ ] });

_r.displayName = "TextField";
const kt = (t) => z(t) && t.type.displayName === _r.displayName;
const Pt = (t) => z(t) && t.type.displayName === _r.displayName;
export {
_r as TextField,
kt as isTextField
Pt as isTextField
};
//# sourceMappingURL=text-field.es.js.map
{
"name": "@purpurds/text-field",
"version": "5.27.3",
"version": "5.27.4",
"license": "AGPL-3.0-only",

@@ -18,9 +18,9 @@ "main": "./dist/text-field.cjs.js",

"classnames": "~2.5.0",
"@purpurds/field-error-text": "5.27.3",
"@purpurds/button": "5.27.3",
"@purpurds/icon": "5.27.3",
"@purpurds/label": "5.27.3",
"@purpurds/spinner": "5.27.3",
"@purpurds/tokens": "5.27.3",
"@purpurds/field-helper-text": "5.27.3"
"@purpurds/field-error-text": "5.27.4",
"@purpurds/icon": "5.27.4",
"@purpurds/button": "5.27.4",
"@purpurds/label": "5.27.4",
"@purpurds/field-helper-text": "5.27.4",
"@purpurds/spinner": "5.27.4",
"@purpurds/tokens": "5.27.4"
},

@@ -27,0 +27,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc