New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@purpurds/autocomplete

Package Overview
Dependencies
Maintainers
0
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/autocomplete - npm Package Compare versions

Comparing version 5.25.0 to 5.25.1-0

24

dist/autocomplete.cjs.js

@@ -13,47 +13,47 @@ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),l=require("react");require("react-dom");function it(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var br={exports:{}};/*!

http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Nr);var ht=Nr.exports;const bt=gt(ht),yt={"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"},wt={name:"checkmark",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',keywords:["checkmark"],category:"utility"},Ar=t=>p.jsx(Or,{...t,svg:wt});Ar.displayName="IconCheckmark";const jt=bt.bind(yt),lr="purpur-icon",$t="md",St=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),Nt=({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 ${St(n)}>${i}${t}</svg>`},At=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Or=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=$t,...r})=>{const e=Nt({content:At(a.svg),title:n}),u=jt(i,lr,`${lr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};Or.displayName="Icon";function Ot(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Pr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Nr);var ht=Nr.exports;const bt=gt(ht),yt={"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"},wt={name:"checkmark",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',keywords:["checkmark"],category:"utility"},Or=t=>p.jsx(Ar,{...t,svg:wt});Or.displayName="IconCheckmark";const jt=bt.bind(yt),lr="purpur-icon",$t="md",St=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),Nt=({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 ${St(n)}>${i}${t}</svg>`},Ot=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Ar=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=$t,...r})=>{const e=Nt({content:Ot(a.svg),title:n}),u=jt(i,lr,`${lr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};Ar.displayName="Icon";function At(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Pr);var Pt=Pr.exports;const Ct=Ot(Pt),D={"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"},Mt={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},T="purpur-paragraph",Cr=({["data-testid"]:t,children:a,className:n,disabled:i,enableHyphenation:o=!1,negative:r=!1,variant:e=Mt.PARAGRAPH100,...u})=>{const v=Ct([n,D[T],D[`${T}--${e}`],{[D[`${T}--hyphens`]]:o,[D[`${T}--disabled`]]:i,[D[`${T}--negative`]]:r}]);return p.jsx("p",{...u,className:v,"data-testid":t,children:a})};Cr.displayName="Paragraph";const cr=$r.bind(Sr),I="purpur-listbox",nr=l.forwardRef((t,a)=>{const{disabled:n,highlighted:i,hovered:o,selected:r,children:e,noninteractive:u,...v}=t,y=cr(`${I}-item`,v.className,{[`${I}-item--highlighted`]:i,[`${I}-item--selected`]:r,[`${I}-item--hovered`]:o,[`${I}-item--disabled`]:n,[`${I}-item--noninteractive`]:u});return p.jsxs("li",{...v,ref:a,className:y,"aria-selected":!!r,role:"option","aria-disabled":!!n,children:[typeof e=="string"?p.jsx(Cr,{children:e}):e,r&&p.jsx(Ar,{size:"xs",className:cr(`${I}-item__icon`)})]})}),Rt=t=>l.isValidElement(t)&&(t==null?void 0:t.type)===nr;nr.displayName="ListBoxItem";const Et=$r.bind(Sr),It="purpur-listbox",X=l.forwardRef(({children:t,...a},n)=>p.jsx("ul",{...a,ref:n,className:Et(It,a.className),role:"listbox",children:l.Children.toArray(t).filter(Rt)}));X.Item=nr;X.displayName="ListBox";const qt={SM:"sm",MD:"md",LG:"lg"};function Lt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Cr);var Ct=Cr.exports;const Pt=At(Ct),T={"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"},qt={PARAGRAPH100:"paragraph-100"},D="purpur-paragraph",Pr=({["data-testid"]:t,children:a,className:n,disabled:i,enableHyphenation:o=!1,negative:r=!1,variant:e=qt.PARAGRAPH100,...u})=>{const v=Pt([n,T[D],T[`${D}--${e}`],{[T[`${D}--hyphens`]]:o,[T[`${D}--disabled`]]:i,[T[`${D}--negative`]]:r}]);return p.jsx("p",{...u,className:v,"data-testid":t,children:a})};Pr.displayName="Paragraph";const cr=$r.bind(Sr),I="purpur-listbox",nr=l.forwardRef((t,a)=>{const{disabled:n,highlighted:i,hovered:o,selected:r,children:e,noninteractive:u,...v}=t,y=cr(`${I}-item`,v.className,{[`${I}-item--highlighted`]:i,[`${I}-item--selected`]:r,[`${I}-item--hovered`]:o,[`${I}-item--disabled`]:n,[`${I}-item--noninteractive`]:u});return p.jsxs("li",{...v,ref:a,className:y,"aria-selected":!!r,role:"option","aria-disabled":!!n,children:[typeof e=="string"?p.jsx(Pr,{children:e}):e,r&&p.jsx(Or,{size:"xs",className:cr(`${I}-item__icon`)})]})}),Mt=t=>l.isValidElement(t)&&(t==null?void 0:t.type)===nr;nr.displayName="ListBoxItem";const kt=$r.bind(Sr),It="purpur-listbox",Y=l.forwardRef(({children:t,...a},n)=>p.jsx("ul",{...a,ref:n,className:kt(It,a.className),role:"listbox",children:l.Children.toArray(t).filter(Mt)}));Y.Item=nr;Y.displayName="ListBox";const zt={LG:"lg"};function Rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Mr);var kt=Mr.exports;const dr=Lt(kt),zt="_rotate_1xozj_1",Bt="_dash_1xozj_1",V={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:zt,"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:Bt,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},F="purpur-spinner",Dt={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},Tt=({["data-testid"]:t,disabled:a=!1,negative:n=!1,size:i=Dt.SM,...o})=>p.jsx("div",{className:dr([V[F],V[`${F}--${i}`]]),"data-testid":t,...o,children:p.jsx("svg",{viewBox:"0 0 50 50",children:p.jsx("circle",{className:dr(V[`${F}__circle`],{[V[`${F}__circle--disabled`]]:a,[V[`${F}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function Vt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Rr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(qr);var Et=qr.exports;const dr=Rt(Et),Bt="_rotate_1xozj_1",Lt="_dash_1xozj_1",V={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:Bt,"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:Lt,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},F="purpur-spinner",Tt={SM:"sm"},Dt=({["data-testid"]:t,disabled:a=!1,negative:n=!1,size:i=Tt.SM,...o})=>p.jsx("div",{className:dr([V[F],V[`${F}--${i}`]]),"data-testid":t,...o,children:p.jsx("svg",{viewBox:"0 0 50 50",children:p.jsx("circle",{className:dr(V[`${F}__circle`],{[V[`${F}__circle--disabled`]]:a,[V[`${F}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function Vt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Mr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Rr);var Ft=Rr.exports;const Gt=Vt(Ft),Ht={"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"},Zt=Gt.bind(Ht),q="purpur-button",Xt=({children:t,className:a,["data-testid"]:n,disabled:i=!1,fullWidth:o=!1,iconOnly:r,loading:e=!1,negative:u=!1,onClick:v,size:y="md",variant:g,type:S="button",...h},d)=>{if(r&&g==="destructive")return null;const j=Zt([q,`${q}--${u?`${g}-negative`:g}`,`${q}--${y}`],{[`${q}--icon-only`]:r,[`${q}--negative`]:u,[`${q}--full-width`]:o,[`${q}--disabled`]:i||e},a),O=_=>{i||e?_.preventDefault():v&&v(_)},P=!!h["aria-disabled"]||i||e;return p.jsxs("button",{className:j,"data-testid":n,type:S,ref:d,"aria-disabled":P,onClick:O,...h,children:[e&&p.jsx(Tt,{size:y===qt.LG?"xs":"xxs",negative:u,disabled:P})," ",t]})},Er=l.forwardRef(Xt);Er.displayName="Button";function Kt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ir={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Mr);var Ft=Mr.exports;const Zt=Vt(Ft),Ht={"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"},Kt=Zt.bind(Ht),z="purpur-button",Yt=({children:t,className:a,["data-testid"]:n,disabled:i=!1,fullWidth:o=!1,iconOnly:r,loading:e=!1,negative:u=!1,onClick:v,size:y="md",variant:g,type:S="button",...h},d)=>{if(r&&g==="destructive")return null;const j=Kt([z,`${z}--${u?`${g}-negative`:g}`,`${z}--${y}`],{[`${z}--icon-only`]:r,[`${z}--negative`]:u,[`${z}--full-width`]:o,[`${z}--disabled`]:i||e},a),A=_=>{i||e?_.preventDefault():v&&v(_)},C=!!h["aria-disabled"]||i||e;return p.jsxs("button",{className:j,"data-testid":n,type:S,ref:d,"aria-disabled":C,onClick:A,...h,children:[e&&p.jsx(Dt,{size:y===zt.LG?"xs":"xxs",negative:u,disabled:C})," ",t]})},kr=l.forwardRef(Yt);kr.displayName="Button";function Gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ir={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Ir);var Ut=Ir.exports;const Yt=Kt(Ut),Jt={"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"},Wt={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"},Qt=Yt.bind(Jt),_r="purpur-icon",re="md",te=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),ee=({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 ${te(n)}>${i}${t}</svg>`},ne=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),qr=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=re,...r})=>{const e=ee({content:ne(a.svg),title:n}),u=Qt(i,_r,`${_r}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};qr.displayName="Icon";function ue(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Ir);var Ut=Ir.exports;const Jt=Gt(Ut),Xt={"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"},Wt={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"},Qt=Jt.bind(Xt),_r="purpur-icon",re="md",te=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),ee=({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 ${te(n)}>${i}${t}</svg>`},ne=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),zr=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=re,...r})=>{const e=ee({content:ne(a.svg),title:n}),u=Qt(i,_r,`${_r}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};zr.displayName="Icon";function ue(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Rr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Lr);var ae=Lr.exports;const ie=ue(ae),fr={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},vr="purpur-field-error-text",oe=({["data-testid"]:t,children:a,className:n,relevant:i="additions text",...o})=>p.jsxs("div",{className:ie([n,fr[vr]]),"data-testid":t,"aria-live":"assertive","aria-relevant":i,...o,children:[p.jsx(qr,{svg:Wt,size:"xs",className:fr[`${vr}__icon`]}),a]});function se(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var kr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Rr);var ae=Rr.exports;const ie=ue(ae),fr={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},vr="purpur-field-error-text",oe=({["data-testid"]:t,children:a,className:n,relevant:i="additions text",...o})=>p.jsxs("div",{className:ie([n,fr[vr]]),"data-testid":t,"aria-live":"assertive","aria-relevant":i,...o,children:[p.jsx(zr,{svg:Wt,size:"xs",className:fr[`${vr}__icon`]}),a]});function se(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Er={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(kr);var pe=kr.exports;const le=se(pe),mr={"purpur-field-helper-text":"_purpur-field-helper-text_atw6b_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_atw6b_9"},xr="purpur-field-helper-text",ce=({["data-testid"]:t,children:a,className:n,disabled:i,id:o,...r})=>{const e=le([n,mr[xr],{[mr[`${xr}--disabled`]]:i}]);return p.jsx("span",{id:o,className:e,"data-testid":t,...r,children:a})};function de(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var zr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Er);var pe=Er.exports;const le=se(pe),mr={"purpur-field-helper-text":"_purpur-field-helper-text_atw6b_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_atw6b_9"},xr="purpur-field-helper-text",ce=({["data-testid"]:t,children:a,className:n,disabled:i,id:o,...r})=>{const e=le([n,mr[xr],{[mr[`${xr}--disabled`]]:i}]);return p.jsx("span",{id:o,className:e,"data-testid":t,...r,children:a})};function de(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Br={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(zr);var _e=zr.exports;const fe=de(_e),ve={"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"},me={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"},xe={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"},Br=t=>p.jsx(ur,{...t,svg:me});Br.displayName="IconCheckCircleFilled";const Dr=t=>p.jsx(ur,{...t,svg:xe});Dr.displayName="IconClose";const ge=fe.bind(ve),gr="purpur-icon",he="md",be=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),ye=({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 ${be(n)}>${i}${t}</svg>`},we=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),ur=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=he,...r})=>{const e=ye({content:we(a.svg),title:n}),u=ge(i,gr,`${gr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};ur.displayName="Icon";function B(){return B=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},B.apply(null,arguments)}function je(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function $e(...t){return a=>t.forEach(n=>je(n,a))}const Tr=l.forwardRef((t,a)=>{const{children:n,...i}=t,o=l.Children.toArray(n),r=o.find(Ne);if(r){const e=r.props.children,u=o.map(v=>v===r?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:v);return l.createElement(er,B({},i,{ref:a}),l.isValidElement(e)?l.cloneElement(e,void 0,u):null)}return l.createElement(er,B({},i,{ref:a}),n)});Tr.displayName="Slot";const er=l.forwardRef((t,a)=>{const{children:n,...i}=t;return l.isValidElement(n)?l.cloneElement(n,{...Ae(i,n.props),ref:a?$e(a,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null});er.displayName="SlotClone";const Se=({children:t})=>l.createElement(l.Fragment,null,t);function Ne(t){return l.isValidElement(t)&&t.type===Se}function Ae(t,a){const n={...a};for(const i in a){const o=t[i],r=a[i];/^on[A-Z]/.test(i)?o&&r?n[i]=(...e)=>{r(...e),o(...e)}:o&&(n[i]=o):i==="style"?n[i]={...o,...r}:i==="className"&&(n[i]=[o,r].filter(Boolean).join(" "))}return{...t,...n}}const Oe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Pe=Oe.reduce((t,a)=>{const n=l.forwardRef((i,o)=>{const{asChild:r,...e}=i,u=r?Tr:a;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(u,B({},e,{ref:o}))});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Ce=l.forwardRef((t,a)=>l.createElement(Pe.label,B({},t,{ref:a,onMouseDown:n=>{var i;(i=t.onMouseDown)===null||i===void 0||i.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),Me=Ce;function Re(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Br);var _e=Br.exports;const fe=de(_e),ve={"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"},me={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"},xe={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"},Lr=t=>p.jsx(ur,{...t,svg:me});Lr.displayName="IconCheckCircleFilled";const Tr=t=>p.jsx(ur,{...t,svg:xe});Tr.displayName="IconClose";const ge=fe.bind(ve),gr="purpur-icon",he="md",be=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),ye=({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 ${be(n)}>${i}${t}</svg>`},we=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),ur=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=he,...r})=>{const e=ye({content:we(a.svg),title:n}),u=ge(i,gr,`${gr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};ur.displayName="Icon";function L(){return L=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},L.apply(null,arguments)}function je(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function $e(...t){return a=>t.forEach(n=>je(n,a))}const Dr=l.forwardRef((t,a)=>{const{children:n,...i}=t,o=l.Children.toArray(n),r=o.find(Ne);if(r){const e=r.props.children,u=o.map(v=>v===r?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:v);return l.createElement(er,L({},i,{ref:a}),l.isValidElement(e)?l.cloneElement(e,void 0,u):null)}return l.createElement(er,L({},i,{ref:a}),n)});Dr.displayName="Slot";const er=l.forwardRef((t,a)=>{const{children:n,...i}=t;return l.isValidElement(n)?l.cloneElement(n,{...Oe(i,n.props),ref:a?$e(a,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null});er.displayName="SlotClone";const Se=({children:t})=>l.createElement(l.Fragment,null,t);function Ne(t){return l.isValidElement(t)&&t.type===Se}function Oe(t,a){const n={...a};for(const i in a){const o=t[i],r=a[i];/^on[A-Z]/.test(i)?o&&r?n[i]=(...e)=>{r(...e),o(...e)}:o&&(n[i]=o):i==="style"?n[i]={...o,...r}:i==="className"&&(n[i]=[o,r].filter(Boolean).join(" "))}return{...t,...n}}const Ae=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ce=Ae.reduce((t,a)=>{const n=l.forwardRef((i,o)=>{const{asChild:r,...e}=i,u=r?Dr:a;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(u,L({},e,{ref:o}))});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Pe=l.forwardRef((t,a)=>l.createElement(Ce.label,L({},t,{ref:a,onMouseDown:n=>{var i;(i=t.onMouseDown)===null||i===void 0||i.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),qe=Pe;function Me(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Vr);var Ee=Vr.exports;const Ie=Re(Ee),rr={"purpur-label":"_purpur-label_12cfi_1","purpur-label--negative":"_purpur-label--negative_12cfi_9","purpur-label--disabled":"_purpur-label--disabled_12cfi_12"},tr="purpur-label",qe=({children:t,className:a,htmlFor:n,"data-testid":i,disabled:o,negative:r=!1,...e})=>{const u=Ie([a,rr[tr],{[rr[`${tr}--disabled`]]:o,[rr[`${tr}--negative`]]:r}]);return p.jsx(Me,{className:u,"data-testid":i,htmlFor:n,...e,children:t})};function Le(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Vr);var ke=Vr.exports;const Ie=Me(ke),rr={"purpur-label":"_purpur-label_12cfi_1","purpur-label--negative":"_purpur-label--negative_12cfi_9","purpur-label--disabled":"_purpur-label--disabled_12cfi_12"},tr="purpur-label",ze=({children:t,className:a,htmlFor:n,"data-testid":i,disabled:o,negative:r=!1,...e})=>{const u=Ie([a,rr[tr],{[rr[`${tr}--disabled`]]:o,[rr[`${tr}--negative`]]:r}]);return p.jsx(qe,{className:u,"data-testid":i,htmlFor:n,...e,children:t})};function Re(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Fr);var ke=Fr.exports;const hr=Le(ke),ze="_rotate_1xozj_1",Be="_dash_1xozj_1",G={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:ze,"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:Be,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},H="purpur-spinner",De={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},Te=({["data-testid"]:t,disabled:a=!1,negative:n=!1,size:i=De.SM,...o})=>p.jsx("div",{className:hr([G[H],G[`${H}--${i}`]]),"data-testid":t,...o,children:p.jsx("svg",{viewBox:"0 0 50 50",children:p.jsx("circle",{className:hr(G[`${H}__circle`],{[G[`${H}__circle--disabled`]]:a,[G[`${H}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function Ve(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(r,i(u)))}return r}function i(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 e="";for(var u in r)a.call(r,u)&&r[u]&&(e=o(e,u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Fr);var Ee=Fr.exports;const hr=Re(Ee),Be="_rotate_1xozj_1",Le="_dash_1xozj_1",Z={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:Be,"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:Le,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},H="purpur-spinner",Te={SM:"sm"},De=({["data-testid"]:t,disabled:a=!1,negative:n=!1,size:i=Te.SM,...o})=>p.jsx("div",{className:hr([Z[H],Z[`${H}--${i}`]]),"data-testid":t,...o,children:p.jsx("svg",{viewBox:"0 0 50 50",children:p.jsx("circle",{className:hr(Z[`${H}__circle`],{[Z[`${H}__circle--disabled`]]:a,[Z[`${H}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function Ve(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Gr);var Fe=Gr.exports;const Ge=Ve(Fe),He={"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"},Ze=t=>l.useRef(t),A=Ge.bind(He),x="purpur-text-field",Xe=({["data-testid"]:t,className:a,clearButtonAllyLabel:n,beforeField:i,afterField:o,endAdornment:r,errorText:e,helperText:u,label:v,loading:y=!1,onClear:g,startAdornment:S,valid:h=!1,...d},j)=>{var O;const P=l.useId(),_=d.id??P,c=m=>t?`${t}-${m}`:void 0,b=h&&!e,$=u?`${_}-helper-text`:void 0,L=[S].filter(m=>!!m),k=(typeof d.value=="number"?d.value!==void 0:(O=d.value)==null?void 0:O.length)&&!d.disabled&&!d.readOnly&&!y&&g&&n,M=Ze(null),K=m=>{M.current=m,typeof j=="function"?j(m):j&&(j.current=m)},U=()=>{var m;g==null||g(),(m=M.current)==null||m.focus()},R=[y&&p.jsx(Te,{disabled:d.disabled,size:"xs","data-testid":c("spinner")},"spinner"),k&&p.jsx(Er,{variant:"tertiary-purple",onClick:U,iconOnly:!0,"aria-label":n??"","data-testid":c("clear-button"),tabIndex:-1,children:p.jsx(Dr,{size:"xs"})},"clear-button"),b&&p.jsx(Br,{"data-testid":c("valid-icon"),className:A(`${x}__valid-icon`)},"valid-icon")].filter(m=>!!m),z=A([`${x}__input-container`,{[`${x}__input-container--start-adornment`]:L.length,[`${x}__input-container--end-adornment`]:R.length||r,[`${x}__input-container--disabled`]:d.disabled,[`${x}__input-container--has-clear-button`]:k,[`${x}__input-container--readonly`]:d.readOnly&&!d.disabled}]);return p.jsxs("div",{className:A(a,x),children:[v&&p.jsx(qe,{htmlFor:_,className:A(`${x}__label`),"data-testid":c("label"),disabled:d.disabled,children:`${d.required?"* ":""}${v}`}),p.jsxs("div",{className:A(`${x}__field-row`),children:[!!i&&i,p.jsxs("div",{className:z,children:[!!L.length&&p.jsx("div",{"data-testid":c("start-adornments"),className:A(`${x}__adornment-container`),children:L}),p.jsx("input",{...d,id:_,ref:K,"data-testid":c("input"),"aria-describedby":d["aria-describedby"]||$,"aria-invalid":d["aria-invalid"]||!!e,className:A([`${x}__input`,{[`${x}__input--valid`]:b,[`${x}__input--error`]:!!e}])}),p.jsx("div",{className:A(`${x}__frame`)}),(!!R.length||r)&&p.jsxs("div",{"data-testid":c("end-adornments"),className:A(`${x}__adornment-container`),children:[R,r]})]}),!!o&&o]}),$&&p.jsx(ce,{"data-testid":c("helper-text"),id:$,children:u}),e&&p.jsx(oe,{"data-testid":c("error-text"),children:e})]})},Hr=l.forwardRef(Xe);Hr.displayName="TextField";const Ke=t=>l.isValidElement(t)&&t.type.displayName===Hr.displayName;function Ue(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zr={exports:{}};/*!
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Zr);var Fe=Zr.exports;const Ze=Ve(Fe),He={"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"},Ke=t=>l.useRef(t),O=Ze.bind(He),x="purpur-text-field",Ye=({["data-testid"]:t,className:a,clearButtonAllyLabel:n,beforeField:i,afterField:o,endAdornment:r,errorText:e,helperText:u,label:v,loading:y=!1,onClear:g,startAdornment:S,valid:h=!1,...d},j)=>{var A;const C=l.useId(),_=d.id??C,c=m=>t?`${t}-${m}`:void 0,b=h&&!e,$=u?`${_}-helper-text`:void 0,R=[S].filter(m=>!!m),E=(typeof d.value=="number"?d.value!==void 0:(A=d.value)==null?void 0:A.length)&&!d.disabled&&!d.readOnly&&!y&&g&&n,q=Ke(null),G=m=>{q.current=m,typeof j=="function"?j(m):j&&(j.current=m)},U=()=>{var m;g==null||g(),(m=q.current)==null||m.focus()},M=[y&&p.jsx(De,{disabled:d.disabled,size:"xs","data-testid":c("spinner")},"spinner"),E&&p.jsx(kr,{variant:"tertiary-purple",onClick:U,iconOnly:!0,"aria-label":n??"","data-testid":c("clear-button"),tabIndex:-1,children:p.jsx(Tr,{size:"xs"})},"clear-button"),b&&p.jsx(Lr,{"data-testid":c("valid-icon"),className:O(`${x}__valid-icon`)},"valid-icon")].filter(m=>!!m),B=O([`${x}__input-container`,{[`${x}__input-container--start-adornment`]:R.length,[`${x}__input-container--end-adornment`]:M.length||r,[`${x}__input-container--disabled`]:d.disabled,[`${x}__input-container--has-clear-button`]:E,[`${x}__input-container--readonly`]:d.readOnly&&!d.disabled}]);return p.jsxs("div",{className:O(a,x),children:[v&&p.jsx(ze,{htmlFor:_,className:O(`${x}__label`),"data-testid":c("label"),disabled:d.disabled,children:`${d.required?"* ":""}${v}`}),p.jsxs("div",{className:O(`${x}__field-row`),children:[!!i&&i,p.jsxs("div",{className:B,children:[!!R.length&&p.jsx("div",{"data-testid":c("start-adornments"),className:O(`${x}__adornment-container`),children:R}),p.jsx("input",{...d,id:_,ref:G,"data-testid":c("input"),"aria-describedby":d["aria-describedby"]||$,"aria-invalid":d["aria-invalid"]||!!e,className:O([`${x}__input`,{[`${x}__input--valid`]:b,[`${x}__input--error`]:!!e}])}),p.jsx("div",{className:O(`${x}__frame`)}),(!!M.length||r)&&p.jsxs("div",{"data-testid":c("end-adornments"),className:O(`${x}__adornment-container`),children:[M,r]})]}),!!o&&o]}),$&&p.jsx(ce,{"data-testid":c("helper-text"),id:$,children:u}),e&&p.jsx(oe,{"data-testid":c("error-text"),children:e})]})},Hr=l.forwardRef(Ye);Hr.displayName="TextField";const Ge=t=>l.isValidElement(t)&&t.type.displayName===Hr.displayName;function Ue(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kr={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Zr);var Ye=Zr.exports;const Je=Ue(Ye),We={"purpur-autocomplete":"_purpur-autocomplete_1u8x6_1","purpur-autocomplete__listbox":"_purpur-autocomplete__listbox_1u8x6_4","purpur-autocomplete__chevron-button":"_purpur-autocomplete__chevron-button_1u8x6_9","purpur-autocomplete__chevron-icon":"_purpur-autocomplete__chevron-icon_1u8x6_15","purpur-autocomplete__chevron-icon--up":"_purpur-autocomplete__chevron-icon--up_1u8x6_19"},Qe=t=>l.useRef(t),rn=(t,a)=>{const n=l.useCallback(i=>{t&&!t.contains(i.target)&&a()},[a,t]);l.useEffect(()=>(document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}),[n])},Xr=({combobox:t,highlightFirstOption:a,defaultInputValue:n,inputValue:i,filterOption:o,id:r,listboxLabel:e,listboxMaxHeight:u,onInputChange:v,openOnFocus:y,noOptionsText:g,onSelect:S,options:h,selectedOption:d,["data-testid"]:j})=>{const[O,P]=l.useState(((typeof i=="string"?i:n)||(d==null?void 0:d.label))??""),_=typeof i=="string"?i:O,[c,b]=l.useState(a?h[0]:void 0),$=l.useRef(null),L=Qe(null),k=l.useRef(null),M=l.useRef({}),[K,U]=l.useState(!1);function R(s){return j?`${j}-${s}`:void 0}const z=()=>{U(!1),b(void 0)};rn(L.current,z);const m=({eventType:s})=>{U(!0),d&&requestAnimationFrame(()=>{b({...d,isSetByClickEvent:s==="CLICK"}),W(M.current[d.id])})},Ur=s=>{if(o)return h.filter(w=>o(s,w));if(!s)return h;const f=s.toUpperCase().split(" ")||[];return h.filter(w=>f.every(N=>(w.value||w.label).toUpperCase().includes(N)))},ar=s=>d&&(d==null?void 0:d.label)===s?h:Ur(s),C=ar(_),J=s=>{v==null||v(s),P(s)},W=s=>{var f;if(s){const w=s.getBoundingClientRect(),N=((f=k.current)==null?void 0:f.getBoundingClientRect())||{top:0,bottom:0};(w.top<N.top||w.bottom>N.bottom)&&s.scrollIntoView({block:"nearest"})}},ir=s=>{var f;s&&((f=$.current)==null||f.focus(),J(s.label),S==null||S(s)),z()},Yr=s=>{const f=a&&!c?0:C.findIndex(N=>N&&(c==null?void 0:c.id)===N.id),w=C.length;return s==="ArrowDown"?C[(f??-1)+1]||C[0]:C[(f??w)-1]||C[w-1]},E=K&&(!!C.length||!!g),Jr=s=>{!E&&m({eventType:"KEYBOARD"});const f=Yr(s);b(f),f&&W(M.current[f.id])},Wr=s=>{switch(s.key){case"ArrowUp":case"ArrowDown":s.preventDefault(),Jr(s.key);break;case"Enter":{const f=c||(a?h[0]:void 0);E&&ir(f),!E&&m({eventType:"KEYBOARD"});break}case"Escape":case"Tab":z();break}},Qr=s=>{const f=ar(s.target.value);J(s.target.value),b(void 0),!E&&m({eventType:"KEYBOARD"}),a&&f[0]&&W(M.current[f[0].id])},rt=()=>{E?z():m({eventType:"CLICK"})},tt=()=>{var s;!K&&y&&m({eventType:"KEYBOARD"}),(s=$.current)==null||s.select()},et=()=>{t&&setTimeout(()=>{var s,f;!((s=$.current)!=null&&s.contains(document.activeElement))&&!((f=k.current)!=null&&f.contains(document.activeElement))&&J(d?d.label:"")})},nt={maxHeight:typeof u=="number"?`${u}px`:u},or={"aria-label":e,"aria-expanded":E,"data-testid":R("listbox"),id:`${r}-listbox`,ref:k,onMouseLeave:()=>b(void 0),style:u?nt:void 0},sr=s=>`${r}-listbox-item-${s.id}`,ut=(s,f)=>{const w=()=>s.id!==(c==null?void 0:c.id)&&b({...s,isSetByClickEvent:!0}),N=(s.id===(c==null?void 0:c.id)||!!a&&!c&&f===0)&&!(c!=null&&c.isSetByClickEvent);return{"data-testid":R(`listbox-item-${s.id}`),id:sr(s),key:s.id,onMouseMove:w,onMouseUp:()=>ir(s),ref:Q=>Q&&(M.current[s.id]=Q),tabIndex:-1,selected:s.id===(d==null?void 0:d.id),disabled:s.disabled,highlighted:N,hovered:s.id===(c==null?void 0:c.id)&&!!(c!=null&&c.isSetByClickEvent)}},at={"aria-activedescendant":c?sr(c):void 0,"aria-autocomplete":"list","aria-controls":or.id,"data-testid":R("input"),autoComplete:"off",id:`${r}-input`,onChange:Qr,onMouseDown:rt,onFocus:tt,onKeyDown:Wr,onBlur:et,ref:$,role:"combobox",value:_};return{id:r,inputProps:at,internalRef:L,optionsToShow:C,showListbox:E,noOptionsText:g,combobox:t,getListBoxItemProps:ut,listboxProps:or}},Y=Je.bind(We),Z="purpur-autocomplete",tn=({className:t,renderInput:a,renderOption:n,...i},o)=>{const{id:r,inputProps:e,internalRef:u,optionsToShow:v,showListbox:y,noOptionsText:g,combobox:S,getListBoxItemProps:h,listboxProps:d}=Xr(i),j=(_,c)=>{const{key:b,...$}=h(_,c);return p.jsx(X.Item,{...$,children:n?n==null?void 0:n(_):_.label},b)},O=_=>{u.current=_,typeof o=="function"?o(_):o&&(o.current=_)},P=()=>{const _=a(e);if(S&&g&&_&&Ke(_)){const b=p.jsxs(p.Fragment,{children:[_.props.endAdornment,p.jsx("button",{"data-testid":"chevron button",type:"button",className:Y(`${Z}__chevron-button`),onClick:()=>{e.onFocus(),e.onMouseDown()},"aria-hidden":"true",children:p.jsx(yr,{size:"sm",className:Y(`${Z}__chevron-icon`,{[`${Z}__chevron-icon--up`]:y})})})]});return l.cloneElement(_,{endAdornment:b})}return _};return p.jsxs("div",{id:r,ref:O,className:Y([t,Z]),children:[P(),y&&p.jsx(X,{...d,className:Y(`${Z}__listbox`),children:v.length?v.filter(_=>!!_).map(j):p.jsx(X.Item,{noninteractive:!0,children:g})})]})},Kr=l.forwardRef(tn);Kr.displayName="Autocomplete";exports.Autocomplete=Kr;exports.useAutocomplete=Xr;
*/(function(t){(function(){var a={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var u=arguments[e];u&&(r=o(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=o(e,this&&this[u]||u));return e}function o(r,e){return e?r?r+" "+e:r+e:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Kr);var Je=Kr.exports;const Xe=Ue(Je),We={"purpur-autocomplete":"_purpur-autocomplete_1u8x6_1","purpur-autocomplete__listbox":"_purpur-autocomplete__listbox_1u8x6_4","purpur-autocomplete__chevron-button":"_purpur-autocomplete__chevron-button_1u8x6_9","purpur-autocomplete__chevron-icon":"_purpur-autocomplete__chevron-icon_1u8x6_15","purpur-autocomplete__chevron-icon--up":"_purpur-autocomplete__chevron-icon--up_1u8x6_19"},Qe=t=>l.useRef(t),rn=(t,a)=>{const n=l.useCallback(i=>{t&&!t.contains(i.target)&&a()},[a,t]);l.useEffect(()=>(document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}),[n])},Yr=({combobox:t,highlightFirstOption:a,defaultInputValue:n,inputValue:i,filterOption:o,id:r,listboxLabel:e,listboxMaxHeight:u,onInputChange:v,openOnFocus:y,noOptionsText:g,onSelect:S,options:h,selectedOption:d,["data-testid"]:j})=>{const[A,C]=l.useState(((typeof i=="string"?i:n)||(d==null?void 0:d.label))??""),_=typeof i=="string"?i:A,[c,b]=l.useState(a?h[0]:void 0),$=l.useRef(null),R=Qe(null),E=l.useRef(null),q=l.useRef({}),[G,U]=l.useState(!1);function M(s){return j?`${j}-${s}`:void 0}const B=()=>{U(!1),b(void 0)};rn(R.current,B);const m=({eventType:s})=>{U(!0),d&&requestAnimationFrame(()=>{b({...d,isSetByClickEvent:s==="CLICK"}),W(q.current[d.id])})},Ur=s=>{if(o)return h.filter(w=>o(s,w));if(!s)return h;const f=s.toUpperCase().split(" ")||[];return h.filter(w=>f.every(N=>(w.value||w.label).toUpperCase().includes(N)))},ar=s=>d&&(d==null?void 0:d.label)===s?h:Ur(s),P=ar(_),X=s=>{v==null||v(s),C(s)},W=s=>{var f;if(s){const w=s.getBoundingClientRect(),N=((f=E.current)==null?void 0:f.getBoundingClientRect())||{top:0,bottom:0};(w.top<N.top||w.bottom>N.bottom)&&s.scrollIntoView({block:"nearest"})}},ir=s=>{var f;s&&((f=$.current)==null||f.focus(),X(s.label),S==null||S(s)),B()},Jr=s=>{const f=a&&!c?0:P.findIndex(N=>N&&(c==null?void 0:c.id)===N.id),w=P.length;return s==="ArrowDown"?P[(f??-1)+1]||P[0]:P[(f??w)-1]||P[w-1]},k=G&&(!!P.length||!!g),Xr=s=>{!k&&m({eventType:"KEYBOARD"});const f=Jr(s);b(f),f&&W(q.current[f.id])},Wr=s=>{switch(s.key){case"ArrowUp":case"ArrowDown":s.preventDefault(),Xr(s.key);break;case"Enter":{const f=c||(a?h[0]:void 0);k&&ir(f),!k&&m({eventType:"KEYBOARD"});break}case"Escape":case"Tab":B();break}},Qr=s=>{const f=ar(s.target.value);X(s.target.value),b(void 0),!k&&m({eventType:"KEYBOARD"}),a&&f[0]&&W(q.current[f[0].id])},rt=()=>{k?B():m({eventType:"CLICK"})},tt=()=>{var s;!G&&y&&m({eventType:"KEYBOARD"}),(s=$.current)==null||s.select()},et=()=>{t&&setTimeout(()=>{var s,f;!((s=$.current)!=null&&s.contains(document.activeElement))&&!((f=E.current)!=null&&f.contains(document.activeElement))&&X(d?d.label:"")})},nt={maxHeight:typeof u=="number"?`${u}px`:u},or={"aria-label":e,"aria-expanded":k,"data-testid":M("listbox"),id:`${r}-listbox`,ref:E,onMouseLeave:()=>b(void 0),style:u?nt:void 0},sr=s=>`${r}-listbox-item-${s.id}`,ut=(s,f)=>{const w=()=>s.id!==(c==null?void 0:c.id)&&b({...s,isSetByClickEvent:!0}),N=(s.id===(c==null?void 0:c.id)||!!a&&!c&&f===0)&&!(c!=null&&c.isSetByClickEvent);return{"data-testid":M(`listbox-item-${s.id}`),id:sr(s),key:s.id,onMouseMove:w,onMouseUp:()=>ir(s),ref:Q=>Q&&(q.current[s.id]=Q),tabIndex:-1,selected:s.id===(d==null?void 0:d.id),disabled:s.disabled,highlighted:N,hovered:s.id===(c==null?void 0:c.id)&&!!(c!=null&&c.isSetByClickEvent)}},at={"aria-activedescendant":c?sr(c):void 0,"aria-autocomplete":"list","aria-controls":or.id,"data-testid":M("input"),autoComplete:"off",id:`${r}-input`,onChange:Qr,onMouseDown:rt,onFocus:tt,onKeyDown:Wr,onBlur:et,ref:$,role:"combobox",value:_};return{id:r,inputProps:at,internalRef:R,optionsToShow:P,showListbox:k,noOptionsText:g,combobox:t,getListBoxItemProps:ut,listboxProps:or}},J=Xe.bind(We),K="purpur-autocomplete",tn=({className:t,renderInput:a,renderOption:n,...i},o)=>{const{id:r,inputProps:e,internalRef:u,optionsToShow:v,showListbox:y,noOptionsText:g,combobox:S,getListBoxItemProps:h,listboxProps:d}=Yr(i),j=(_,c)=>{const{key:b,...$}=h(_,c);return p.jsx(Y.Item,{...$,children:n?n==null?void 0:n(_):_.label},b)},A=_=>{u.current=_,typeof o=="function"?o(_):o&&(o.current=_)},C=()=>{const _=a(e);if(S&&g&&_&&Ge(_)){const b=p.jsxs(p.Fragment,{children:[_.props.endAdornment,p.jsx("button",{"data-testid":"chevron button",type:"button",className:J(`${K}__chevron-button`),onClick:()=>{e.onFocus(),e.onMouseDown()},"aria-hidden":"true",children:p.jsx(yr,{size:"sm",className:J(`${K}__chevron-icon`,{[`${K}__chevron-icon--up`]:y})})})]});return l.cloneElement(_,{endAdornment:b})}return _};return p.jsxs("div",{id:r,ref:A,className:J([t,K]),children:[C(),y&&p.jsx(Y,{...d,className:J(`${K}__listbox`),children:v.length?v.filter(_=>!!_).map(j):p.jsx(Y.Item,{noninteractive:!0,children:g})})]})},Gr=l.forwardRef(tn);Gr.displayName="Autocomplete";exports.Autocomplete=Gr;exports.useAutocomplete=Yr;
//# sourceMappingURL=autocomplete.cjs.js.map

@@ -1,3 +0,3 @@

import { jsx as s, jsxs as A, Fragment as dt } from "react/jsx-runtime";
import { forwardRef as O, Children as D, isValidElement as T, createElement as W, cloneElement as sr, useEffect as Ar, useId as _t, Fragment as ft, useRef as Y, useCallback as vt, useState as ar } from "react";
import { jsx as s, jsxs as O, Fragment as dt } from "react/jsx-runtime";
import { forwardRef as A, Children as T, isValidElement as D, createElement as W, Fragment as _t, cloneElement as sr, useEffect as Or, useId as ft, useRef as J, useCallback as vt, useState as ar } from "react";
import "react-dom";

@@ -7,3 +7,3 @@ function mt(t) {

}
var Or = { exports: {} };
var Ar = { exports: {} };
/*!

@@ -43,5 +43,5 @@ Copyright (c) 2018 Jed Watson.

})();
})(Or);
var gt = Or.exports;
const xt = /* @__PURE__ */ mt(gt), bt = {
})(Ar);
var gt = Ar.exports;
const xt = /* @__PURE__ */ mt(gt), ht = {
"purpur-icon": "_purpur-icon_8u1lq_1",

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

"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
}, ht = {
}, bt = {
name: "chevron-down",

@@ -60,11 +60,11 @@ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.136 7.864a.9.9 0 0 0-1.272 0L12 14.727 5.136 7.864a.9.9 0 0 0-1.272 1.272l7.5 7.5a.9.9 0 0 0 1.272 0l7.5-7.5a.9.9 0 0 0 0-1.272Z" clip-rule="evenodd"/></svg>',

category: "utility"
}, Pr = (t) => /* @__PURE__ */ s(
Mr,
}, Cr = (t) => /* @__PURE__ */ s(
Pr,
{
...t,
svg: ht
svg: bt
}
);
Pr.displayName = "IconChevronDown";
const yt = xt.bind(bt), mr = "purpur-icon", wt = "md", $t = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), jt = ({ content: t = "", title: a } = {}) => {
Cr.displayName = "IconChevronDown";
const yt = xt.bind(ht), mr = "purpur-icon", wt = "md", $t = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), jt = ({ content: t = "", title: a } = {}) => {
const n = [

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

return `<svg ${$t(n)}>${i}${t}</svg>`;
}, St = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Mr = ({
}, St = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Pr = ({
["data-testid"]: t,

@@ -101,7 +101,7 @@ svg: a,

};
Mr.displayName = "Icon";
Pr.displayName = "Icon";
function Nt(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Cr = { exports: {} };
var qr = { exports: {} };
/*!

@@ -141,5 +141,5 @@ Copyright (c) 2018 Jed Watson.

})();
})(Cr);
var At = Cr.exports;
const Ir = /* @__PURE__ */ Nt(At), Lr = {
})(qr);
var Ot = qr.exports;
const kr = /* @__PURE__ */ Nt(Ot), Ir = {
"purpur-listbox": "_purpur-listbox_qhoi7_1",

@@ -153,6 +153,6 @@ "purpur-listbox-item": "_purpur-listbox-item_qhoi7_15",

};
function Ot(t) {
function At(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var qr = { exports: {} };
var Mr = { exports: {} };
/*!

@@ -192,5 +192,5 @@ Copyright (c) 2018 Jed Watson.

})();
})(qr);
var Pt = qr.exports;
const Mt = /* @__PURE__ */ Ot(Pt), Ct = {
})(Mr);
var Ct = Mr.exports;
const Pt = /* @__PURE__ */ At(Ct), qt = {
"purpur-icon": "_purpur-icon_8u1lq_1",

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

"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
}, It = {
}, kt = {
name: "checkmark",

@@ -209,11 +209,11 @@ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',

category: "utility"
}, kr = (t) => /* @__PURE__ */ s(
zr,
}, zr = (t) => /* @__PURE__ */ s(
Br,
{
...t,
svg: It
svg: kt
}
);
kr.displayName = "IconCheckmark";
const Lt = Mt.bind(Ct), gr = "purpur-icon", qt = "md", kt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), zt = ({ content: t = "", title: a } = {}) => {
zr.displayName = "IconCheckmark";
const It = Pt.bind(qt), gr = "purpur-icon", Mt = "md", zt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Bt = ({ content: t = "", title: a } = {}) => {
const n = [

@@ -225,4 +225,4 @@ { name: "xmlns", value: "http://www.w3.org/2000/svg" },

], i = a ? `<title>${a}</title>` : "";
return `<svg ${kt(n)}>${i}${t}</svg>`;
}, Bt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), zr = ({
return `<svg ${zt(n)}>${i}${t}</svg>`;
}, Lt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Br = ({
["data-testid"]: t,

@@ -232,9 +232,9 @@ svg: a,

className: i,
size: o = qt,
size: o = Mt,
...r
}) => {
const e = zt({
content: Bt(a.svg),
const e = Bt({
content: Lt(a.svg),
title: n
}), u = Lt(i, gr, `${gr}--${o}`);
}), u = It(i, gr, `${gr}--${o}`);
return /* @__PURE__ */ s(

@@ -251,7 +251,7 @@ "span",

};
zr.displayName = "Icon";
Br.displayName = "Icon";
function Et(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Br = { exports: {} };
var Lr = { exports: {} };
/*!

@@ -291,5 +291,5 @@ Copyright (c) 2018 Jed Watson.

})();
})(Br);
var Rt = Br.exports;
const Dt = /* @__PURE__ */ Et(Rt), G = {
})(Lr);
var Rt = Lr.exports;
const Tt = /* @__PURE__ */ Et(Rt), Z = {
"purpur-paragraph": "_purpur-paragraph_1rh57_1",

@@ -309,14 +309,5 @@ "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",

"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
}, Tt = {
PARAGRAPH100: "paragraph-100",
PARAGRAPH100MEDIUM: "paragraph-100-medium",
PARAGRAPH100BOLD: "paragraph-100-bold",
PARAGRAPH200: "paragraph-200",
PREAMBLE100: "preamble-100",
PREAMBLE200: "preamble-200",
ADDITIONAL100: "additional-100",
ADDITIONAL100MEDIUM: "additional-100-medium",
OVERLINE100: "overline-100",
OVERLINE200: "overline-200"
}, H = "purpur-paragraph", Er = ({
}, Dt = {
PARAGRAPH100: "paragraph-100"
}, V = "purpur-paragraph", Er = ({
["data-testid"]: t,

@@ -328,13 +319,13 @@ children: a,

negative: r = !1,
variant: e = Tt.PARAGRAPH100,
variant: e = Dt.PARAGRAPH100,
...u
}) => {
const f = Dt([
const f = Tt([
n,
G[H],
G[`${H}--${e}`],
Z[V],
Z[`${V}--${e}`],
{
[G[`${H}--hyphens`]]: o,
[G[`${H}--disabled`]]: i,
[G[`${H}--negative`]]: r
[Z[`${V}--hyphens`]]: o,
[Z[`${V}--disabled`]]: i,
[Z[`${V}--negative`]]: r
}

@@ -345,12 +336,12 @@ ]);

Er.displayName = "Paragraph";
const xr = Ir.bind(Lr), k = "purpur-listbox", lr = O(
const xr = kr.bind(Ir), z = "purpur-listbox", lr = A(
(t, a) => {
const { disabled: n, highlighted: i, hovered: o, selected: r, children: e, noninteractive: u, ...f } = t, h = xr(`${k}-item`, f.className, {
[`${k}-item--highlighted`]: i,
[`${k}-item--selected`]: r,
[`${k}-item--hovered`]: o,
[`${k}-item--disabled`]: n,
[`${k}-item--noninteractive`]: u
const { disabled: n, highlighted: i, hovered: o, selected: r, children: e, noninteractive: u, ...f } = t, b = xr(`${z}-item`, f.className, {
[`${z}-item--highlighted`]: i,
[`${z}-item--selected`]: r,
[`${z}-item--hovered`]: o,
[`${z}-item--disabled`]: n,
[`${z}-item--noninteractive`]: u
});
return /* @__PURE__ */ A(
return /* @__PURE__ */ O(
"li",

@@ -360,3 +351,3 @@ {

ref: a,
className: h,
className: b,
"aria-selected": !!r,

@@ -367,3 +358,3 @@ role: "option",

typeof e == "string" ? /* @__PURE__ */ s(Er, { children: e }) : e,
r && /* @__PURE__ */ s(kr, { size: "xs", className: xr(`${k}-item__icon`) })
r && /* @__PURE__ */ s(zr, { size: "xs", className: xr(`${z}-item__icon`) })
]

@@ -373,5 +364,5 @@ }

}
), Ft = (t) => T(t) && (t == null ? void 0 : t.type) === lr;
), Ft = (t) => D(t) && (t == null ? void 0 : t.type) === lr;
lr.displayName = "ListBoxItem";
const Gt = Ir.bind(Lr), Ht = "purpur-listbox", J = O(
const Zt = kr.bind(Ir), Vt = "purpur-listbox", X = A(
({ children: t, ...a }, n) => /* @__PURE__ */ s(

@@ -382,16 +373,14 @@ "ul",

ref: n,
className: Gt(Ht, a.className),
className: Zt(Vt, a.className),
role: "listbox",
children: D.toArray(t).filter(Ft)
children: T.toArray(t).filter(Ft)
}
)
);
J.Item = lr;
J.displayName = "ListBox";
const Vt = {
SM: "sm",
MD: "md",
X.Item = lr;
X.displayName = "ListBox";
const Ht = {
LG: "lg"
};
function Zt(t) {
function Kt(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;

@@ -435,6 +424,6 @@ }

})(Rr);
var Xt = Rr.exports;
const br = /* @__PURE__ */ Zt(Xt), Kt = "_rotate_1xozj_1", Ut = "_dash_1xozj_1", V = {
var Yt = Rr.exports;
const hr = /* @__PURE__ */ Kt(Yt), Gt = "_rotate_1xozj_1", Ut = "_dash_1xozj_1", H = {
"purpur-spinner": "_purpur-spinner_1xozj_1",
rotate: Kt,
rotate: Gt,
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",

@@ -449,13 +438,9 @@ "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",

"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
}, Z = "purpur-spinner", Yt = {
XXS: "xxs",
XS: "xs",
SM: "sm",
MD: "md",
LG: "lg"
}, Jt = ({
}, K = "purpur-spinner", Jt = {
SM: "sm"
}, Xt = ({
["data-testid"]: t,
disabled: a = !1,
negative: n = !1,
size: i = Yt.SM,
size: i = Jt.SM,
...o

@@ -465,3 +450,3 @@ }) => /* @__PURE__ */ s(

{
className: br([V[Z], V[`${Z}--${i}`]]),
className: hr([H[K], H[`${K}--${i}`]]),
"data-testid": t,

@@ -472,5 +457,5 @@ ...o,

{
className: br(V[`${Z}__circle`], {
[V[`${Z}__circle--disabled`]]: a,
[V[`${Z}__circle--negative`]]: n
className: hr(H[`${K}__circle`], {
[H[`${K}__circle--disabled`]]: a,
[H[`${K}__circle--negative`]]: n
}),

@@ -487,3 +472,3 @@ cx: "25",

}
var Dr = { exports: {} };
var Tr = { exports: {} };
/*!

@@ -523,4 +508,4 @@ Copyright (c) 2018 Jed Watson.

})();
})(Dr);
var Qt = Dr.exports;
})(Tr);
var Qt = Tr.exports;
const re = /* @__PURE__ */ Wt(Qt), te = {

@@ -547,3 +532,3 @@ "purpur-button": "_purpur-button_1acxn_1",

"purpur-button--text": "_purpur-button--text_1acxn_175"
}, ee = re.bind(te), z = "purpur-button", ne = ({
}, ee = re.bind(te), B = "purpur-button", ne = ({
children: t,

@@ -558,3 +543,3 @@ className: a,

onClick: f,
size: h = "md",
size: b = "md",
variant: g,

@@ -568,17 +553,17 @@ type: j = "button",

[
z,
`${z}--${u ? `${g}-negative` : g}`,
`${z}--${h}`
B,
`${B}--${u ? `${g}-negative` : g}`,
`${B}--${b}`
],
{
[`${z}--icon-only`]: r,
[`${z}--negative`]: u,
[`${z}--full-width`]: o,
[`${z}--disabled`]: i || e
[`${B}--icon-only`]: r,
[`${B}--negative`]: u,
[`${B}--full-width`]: o,
[`${B}--disabled`]: i || e
},
a
), P = (d) => {
), C = (d) => {
i || e ? d.preventDefault() : f && f(d);
}, M = !!x["aria-disabled"] || i || e;
return /* @__PURE__ */ A(
}, P = !!x["aria-disabled"] || i || e;
return /* @__PURE__ */ O(
"button",

@@ -590,7 +575,7 @@ {

ref: c,
"aria-disabled": M,
onClick: P,
"aria-disabled": P,
onClick: C,
...x,
children: [
e && /* @__PURE__ */ s(Jt, { size: h === Vt.LG ? "xs" : "xxs", negative: u, disabled: M }),
e && /* @__PURE__ */ s(Xt, { size: b === Ht.LG ? "xs" : "xxs", negative: u, disabled: P }),
" ",

@@ -601,4 +586,4 @@ t

);
}, Tr = O(ne);
Tr.displayName = "Button";
}, Dr = A(ne);
Dr.displayName = "Button";
function ue(t) {

@@ -657,3 +642,3 @@ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;

category: "status"
}, se = ie.bind(oe), hr = "purpur-icon", le = "md", ce = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), de = ({ content: t = "", title: a } = {}) => {
}, se = ie.bind(oe), br = "purpur-icon", le = "md", ce = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), de = ({ content: t = "", title: a } = {}) => {
const n = [

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

return `<svg ${ce(n)}>${i}${t}</svg>`;
}, _e = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Gr = ({
}, _e = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Zr = ({
["data-testid"]: t,

@@ -678,3 +663,3 @@ svg: a,

title: n
}), u = se(i, hr, `${hr}--${o}`);
}), u = se(i, br, `${br}--${o}`);
return /* @__PURE__ */ s(

@@ -691,7 +676,7 @@ "span",

};
Gr.displayName = "Icon";
Zr.displayName = "Icon";
function fe(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Hr = { exports: {} };
var Vr = { exports: {} };
/*!

@@ -731,4 +716,4 @@ Copyright (c) 2018 Jed Watson.

})();
})(Hr);
var ve = Hr.exports;
})(Vr);
var ve = Vr.exports;
const me = /* @__PURE__ */ fe(ve), yr = {

@@ -743,3 +728,3 @@ "purpur-field-error-text": "_purpur-field-error-text_1u768_1",

...o
}) => /* @__PURE__ */ A(
}) => /* @__PURE__ */ O(
"div",

@@ -753,3 +738,3 @@ {

children: [
/* @__PURE__ */ s(Gr, { svg: pe, size: "xs", className: yr[`${wr}__icon`] }),
/* @__PURE__ */ s(Zr, { svg: pe, size: "xs", className: yr[`${wr}__icon`] }),
a

@@ -762,3 +747,3 @@ ]

}
var Vr = { exports: {} };
var Hr = { exports: {} };
/*!

@@ -798,5 +783,5 @@ Copyright (c) 2018 Jed Watson.

})();
})(Vr);
var be = Vr.exports;
const he = /* @__PURE__ */ xe(be), $r = {
})(Hr);
var he = Hr.exports;
const be = /* @__PURE__ */ xe(he), $r = {
"purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",

@@ -812,3 +797,3 @@ "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"

}) => {
const e = he([
const e = be([
n,

@@ -825,3 +810,3 @@ $r[jr],

}
var Zr = { exports: {} };
var Kr = { exports: {} };
/*!

@@ -861,4 +846,4 @@ Copyright (c) 2018 Jed Watson.

})();
})(Zr);
var $e = Zr.exports;
})(Kr);
var $e = Kr.exports;
const je = /* @__PURE__ */ we($e), Se = {

@@ -877,3 +862,3 @@ "purpur-icon": "_purpur-icon_8u1lq_1",

category: "status"
}, Ae = {
}, Oe = {
name: "close",

@@ -883,3 +868,3 @@ 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>',

category: "utility"
}, Xr = (t) => /* @__PURE__ */ s(
}, Yr = (t) => /* @__PURE__ */ s(
cr,

@@ -891,12 +876,12 @@ {

);
Xr.displayName = "IconCheckCircleFilled";
const Kr = (t) => /* @__PURE__ */ s(
Yr.displayName = "IconCheckCircleFilled";
const Gr = (t) => /* @__PURE__ */ s(
cr,
{
...t,
svg: Ae
svg: Oe
}
);
Kr.displayName = "IconClose";
const Oe = je.bind(Se), Sr = "purpur-icon", Pe = "md", Me = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Ce = ({ content: t = "", title: a } = {}) => {
Gr.displayName = "IconClose";
const Ae = je.bind(Se), Sr = "purpur-icon", Ce = "md", Pe = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), qe = ({ content: t = "", title: a } = {}) => {
const n = [

@@ -908,4 +893,4 @@ { name: "xmlns", value: "http://www.w3.org/2000/svg" },

], i = a ? `<title>${a}</title>` : "";
return `<svg ${Me(n)}>${i}${t}</svg>`;
}, Ie = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), cr = ({
return `<svg ${Pe(n)}>${i}${t}</svg>`;
}, ke = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), cr = ({
["data-testid"]: t,

@@ -915,9 +900,9 @@ svg: a,

className: i,
size: o = Pe,
size: o = Ce,
...r
}) => {
const e = Ce({
content: Ie(a.svg),
const e = qe({
content: ke(a.svg),
title: n
}), u = Oe(i, Sr, `${Sr}--${o}`);
}), u = Ae(i, Sr, `${Sr}--${o}`);
return /* @__PURE__ */ s(

@@ -944,17 +929,17 @@ "span",

}
function Le(t, a) {
function Ie(t, a) {
typeof t == "function" ? t(a) : t != null && (t.current = a);
}
function qe(...t) {
function Me(...t) {
return (a) => t.forEach(
(n) => Le(n, a)
(n) => Ie(n, a)
);
}
const Ur = /* @__PURE__ */ O((t, a) => {
const { children: n, ...i } = t, o = D.toArray(n), r = o.find(ze);
const Ur = /* @__PURE__ */ A((t, a) => {
const { children: n, ...i } = t, o = T.toArray(n), r = o.find(Be);
if (r) {
const e = r.props.children, u = o.map((f) => f === r ? D.count(e) > 1 ? D.only(null) : /* @__PURE__ */ T(e) ? e.props.children : null : f);
const e = r.props.children, u = o.map((f) => f === r ? T.count(e) > 1 ? T.only(null) : /* @__PURE__ */ D(e) ? e.props.children : null : f);
return /* @__PURE__ */ W(pr, F({}, i, {
ref: a
}), /* @__PURE__ */ T(e) ? /* @__PURE__ */ sr(e, void 0, u) : null);
}), /* @__PURE__ */ D(e) ? /* @__PURE__ */ sr(e, void 0, u) : null);
}

@@ -966,15 +951,15 @@ return /* @__PURE__ */ W(pr, F({}, i, {

Ur.displayName = "Slot";
const pr = /* @__PURE__ */ O((t, a) => {
const pr = /* @__PURE__ */ A((t, a) => {
const { children: n, ...i } = t;
return /* @__PURE__ */ T(n) ? /* @__PURE__ */ sr(n, {
...Be(i, n.props),
ref: a ? qe(a, n.ref) : n.ref
}) : D.count(n) > 1 ? D.only(null) : null;
return /* @__PURE__ */ D(n) ? /* @__PURE__ */ sr(n, {
...Le(i, n.props),
ref: a ? Me(a, n.ref) : n.ref
}) : T.count(n) > 1 ? T.only(null) : null;
});
pr.displayName = "SlotClone";
const ke = ({ children: t }) => /* @__PURE__ */ W(ft, null, t);
function ze(t) {
return /* @__PURE__ */ T(t) && t.type === ke;
const ze = ({ children: t }) => /* @__PURE__ */ W(_t, null, t);
function Be(t) {
return /* @__PURE__ */ D(t) && t.type === ze;
}
function Be(t, a) {
function Le(t, a) {
const n = {

@@ -1018,5 +1003,5 @@ ...a

], Re = Ee.reduce((t, a) => {
const n = /* @__PURE__ */ O((i, o) => {
const n = /* @__PURE__ */ A((i, o) => {
const { asChild: r, ...e } = i, u = r ? Ur : a;
return Ar(() => {
return Or(() => {
window[Symbol.for("radix-ui")] = !0;

@@ -1031,3 +1016,3 @@ }, []), /* @__PURE__ */ W(u, F({}, e, {

};
}, {}), De = /* @__PURE__ */ O((t, a) => /* @__PURE__ */ W(Re.label, F({}, t, {
}, {}), Te = /* @__PURE__ */ A((t, a) => /* @__PURE__ */ W(Re.label, F({}, t, {
ref: a,

@@ -1038,7 +1023,7 @@ onMouseDown: (n) => {

}
}))), Te = De;
}))), De = Te;
function Fe(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Yr = { exports: {} };
var Jr = { exports: {} };
/*!

@@ -1078,9 +1063,9 @@ Copyright (c) 2018 Jed Watson.

})();
})(Yr);
var Ge = Yr.exports;
const He = /* @__PURE__ */ Fe(Ge), ir = {
})(Jr);
var Ze = Jr.exports;
const Ve = /* @__PURE__ */ Fe(Ze), ir = {
"purpur-label": "_purpur-label_12cfi_1",
"purpur-label--negative": "_purpur-label--negative_12cfi_9",
"purpur-label--disabled": "_purpur-label--disabled_12cfi_12"
}, or = "purpur-label", Ve = ({
}, or = "purpur-label", He = ({
children: t,

@@ -1094,3 +1079,3 @@ className: a,

}) => {
const u = He([
const u = Ve([
a,

@@ -1103,8 +1088,8 @@ ir[or],

]);
return /* @__PURE__ */ s(Te, { className: u, "data-testid": i, htmlFor: n, ...e, children: t });
return /* @__PURE__ */ s(De, { className: u, "data-testid": i, htmlFor: n, ...e, children: t });
};
function Ze(t) {
function Ke(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Jr = { exports: {} };
var Xr = { exports: {} };
/*!

@@ -1144,7 +1129,7 @@ Copyright (c) 2018 Jed Watson.

})();
})(Jr);
var Xe = Jr.exports;
const Nr = /* @__PURE__ */ Ze(Xe), Ke = "_rotate_1xozj_1", Ue = "_dash_1xozj_1", X = {
})(Xr);
var Ye = Xr.exports;
const Nr = /* @__PURE__ */ Ke(Ye), Ge = "_rotate_1xozj_1", Ue = "_dash_1xozj_1", Y = {
"purpur-spinner": "_purpur-spinner_1xozj_1",
rotate: Ke,
rotate: Ge,
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",

@@ -1159,13 +1144,9 @@ "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",

"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
}, K = "purpur-spinner", Ye = {
XXS: "xxs",
XS: "xs",
SM: "sm",
MD: "md",
LG: "lg"
}, Je = ({
}, G = "purpur-spinner", Je = {
SM: "sm"
}, Xe = ({
["data-testid"]: t,
disabled: a = !1,
negative: n = !1,
size: i = Ye.SM,
size: i = Je.SM,
...o

@@ -1175,3 +1156,3 @@ }) => /* @__PURE__ */ s(

{
className: Nr([X[K], X[`${K}--${i}`]]),
className: Nr([Y[G], Y[`${G}--${i}`]]),
"data-testid": t,

@@ -1182,5 +1163,5 @@ ...o,

{
className: Nr(X[`${K}__circle`], {
[X[`${K}__circle--disabled`]]: a,
[X[`${K}__circle--negative`]]: n
className: Nr(Y[`${G}__circle`], {
[Y[`${G}__circle--disabled`]]: a,
[Y[`${G}__circle--negative`]]: n
}),

@@ -1251,3 +1232,3 @@ cx: "25",

"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_nj9f4_111"
}, en = (t) => Y(t), N = rn.bind(tn), m = "purpur-text-field", nn = ({
}, en = (t) => J(t), N = rn.bind(tn), m = "purpur-text-field", nn = ({
["data-testid"]: t,

@@ -1262,3 +1243,3 @@ className: a,

label: f,
loading: h = !1,
loading: b = !1,
onClear: g,

@@ -1269,11 +1250,11 @@ startAdornment: j,

}, w) => {
var P;
const M = _t(), d = c.id ?? M, l = (v) => t ? `${t}-${v}` : void 0, b = x && !e, $ = u ? `${d}-helper-text` : void 0, B = [j].filter((v) => !!v), E = (typeof c.value == "number" ? c.value !== void 0 : (P = c.value) == null ? void 0 : P.length) && !c.disabled && !c.readOnly && !h && g && n, I = en(null), Q = (v) => {
I.current = v, typeof w == "function" ? w(v) : w && (w.current = v);
var C;
const P = ft(), d = c.id ?? P, l = (v) => t ? `${t}-${v}` : void 0, h = x && !e, $ = u ? `${d}-helper-text` : void 0, L = [j].filter((v) => !!v), E = (typeof c.value == "number" ? c.value !== void 0 : (C = c.value) == null ? void 0 : C.length) && !c.disabled && !c.readOnly && !b && g && n, k = en(null), Q = (v) => {
k.current = v, typeof w == "function" ? w(v) : w && (w.current = v);
}, rr = () => {
var v;
g == null || g(), (v = I.current) == null || v.focus();
}, L = [
h && /* @__PURE__ */ s(
Je,
g == null || g(), (v = k.current) == null || v.focus();
}, I = [
b && /* @__PURE__ */ s(
Xe,
{

@@ -1287,3 +1268,3 @@ disabled: c.disabled,

E && /* @__PURE__ */ s(
Tr,
Dr,
{

@@ -1296,8 +1277,8 @@ variant: "tertiary-purple",

tabIndex: -1,
children: /* @__PURE__ */ s(Kr, { size: "xs" })
children: /* @__PURE__ */ s(Gr, { size: "xs" })
},
"clear-button"
),
b && /* @__PURE__ */ s(
Xr,
h && /* @__PURE__ */ s(
Yr,
{

@@ -1312,4 +1293,4 @@ "data-testid": l("valid-icon"),

{
[`${m}__input-container--start-adornment`]: B.length,
[`${m}__input-container--end-adornment`]: L.length || r,
[`${m}__input-container--start-adornment`]: L.length,
[`${m}__input-container--end-adornment`]: I.length || r,
[`${m}__input-container--disabled`]: c.disabled,

@@ -1320,5 +1301,5 @@ [`${m}__input-container--has-clear-button`]: E,

]);
return /* @__PURE__ */ A("div", { className: N(a, m), children: [
return /* @__PURE__ */ O("div", { className: N(a, m), children: [
f && /* @__PURE__ */ s(
Ve,
He,
{

@@ -1332,6 +1313,6 @@ htmlFor: d,

),
/* @__PURE__ */ A("div", { className: N(`${m}__field-row`), children: [
/* @__PURE__ */ O("div", { className: N(`${m}__field-row`), children: [
!!i && i,
/* @__PURE__ */ A("div", { className: R, children: [
!!B.length && /* @__PURE__ */ s(
/* @__PURE__ */ O("div", { className: R, children: [
!!L.length && /* @__PURE__ */ s(
"div",

@@ -1341,3 +1322,3 @@ {

className: N(`${m}__adornment-container`),
children: B
children: L
}

@@ -1357,3 +1338,3 @@ ),

{
[`${m}__input--valid`]: b,
[`${m}__input--valid`]: h,
[`${m}__input--error`]: !!e

@@ -1365,3 +1346,3 @@ }

/* @__PURE__ */ s("div", { className: N(`${m}__frame`) }),
(!!L.length || r) && /* @__PURE__ */ A(
(!!I.length || r) && /* @__PURE__ */ O(
"div",

@@ -1372,3 +1353,3 @@ {

children: [
L,
I,
r

@@ -1384,5 +1365,5 @@ ]

] });
}, Qr = O(nn);
}, Qr = A(nn);
Qr.displayName = "TextField";
const un = (t) => T(t) && t.type.displayName === Qr.displayName;
const un = (t) => D(t) && t.type.displayName === Qr.displayName;
function an(t) {

@@ -1434,3 +1415,3 @@ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;

"purpur-autocomplete__chevron-icon--up": "_purpur-autocomplete__chevron-icon--up_1u8x6_19"
}, ln = (t) => Y(t), cn = (t, a) => {
}, ln = (t) => J(t), cn = (t, a) => {
const n = vt(

@@ -1442,3 +1423,3 @@ (i) => {

);
Ar(() => (document.addEventListener("mousedown", n), () => {
Or(() => (document.addEventListener("mousedown", n), () => {
document.removeEventListener("mousedown", n);

@@ -1456,3 +1437,3 @@ }), [n]);

onInputChange: f,
openOnFocus: h,
openOnFocus: b,
noOptionsText: g,

@@ -1464,15 +1445,15 @@ onSelect: j,

}) => {
const [P, M] = ar(
const [C, P] = ar(
((typeof i == "string" ? i : n) || (c == null ? void 0 : c.label)) ?? ""
), d = typeof i == "string" ? i : P, [l, b] = ar(a ? x[0] : void 0), $ = Y(null), B = ln(null), E = Y(null), I = Y({}), [Q, rr] = ar(!1);
function L(p) {
), d = typeof i == "string" ? i : C, [l, h] = ar(a ? x[0] : void 0), $ = J(null), L = ln(null), E = J(null), k = J({}), [Q, rr] = ar(!1);
function I(p) {
return w ? `${w}-${p}` : void 0;
}
const R = () => {
rr(!1), b(void 0);
rr(!1), h(void 0);
};
cn(B.current, R);
cn(L.current, R);
const v = ({ eventType: p }) => {
rr(!0), c && requestAnimationFrame(() => {
b({ ...c, isSetByClickEvent: p === "CLICK" }), nr(I.current[c.id]);
h({ ...c, isSetByClickEvent: p === "CLICK" }), nr(k.current[c.id]);
});

@@ -1490,4 +1471,4 @@ }, tt = (p) => {

);
}, dr = (p) => c && (c == null ? void 0 : c.label) === p ? x : tt(p), C = dr(d), er = (p) => {
f == null || f(p), M(p);
}, dr = (p) => c && (c == null ? void 0 : c.label) === p ? x : tt(p), q = dr(d), er = (p) => {
f == null || f(p), P(p);
}, nr = (p) => {

@@ -1503,8 +1484,8 @@ var _;

}, et = (p) => {
const _ = a && !l ? 0 : C.findIndex((S) => S && (l == null ? void 0 : l.id) === S.id), y = C.length;
return p === "ArrowDown" ? C[(_ ?? -1) + 1] || C[0] : C[(_ ?? y) - 1] || C[y - 1];
}, q = Q && (!!C.length || !!g), nt = (p) => {
!q && v({ eventType: "KEYBOARD" });
const _ = a && !l ? 0 : q.findIndex((S) => S && (l == null ? void 0 : l.id) === S.id), y = q.length;
return p === "ArrowDown" ? q[(_ ?? -1) + 1] || q[0] : q[(_ ?? y) - 1] || q[y - 1];
}, M = Q && (!!q.length || !!g), nt = (p) => {
!M && v({ eventType: "KEYBOARD" });
const _ = et(p);
b(_), _ && nr(I.current[_.id]);
h(_), _ && nr(k.current[_.id]);
}, ut = (p) => {

@@ -1518,3 +1499,3 @@ switch (p.key) {

const _ = l || (a ? x[0] : void 0);
q && _r(_), !q && v({ eventType: "KEYBOARD" });
M && _r(_), !M && v({ eventType: "KEYBOARD" });
break;

@@ -1529,8 +1510,8 @@ }

const _ = dr(p.target.value);
er(p.target.value), b(void 0), !q && v({ eventType: "KEYBOARD" }), a && _[0] && nr(I.current[_[0].id]);
er(p.target.value), h(void 0), !M && v({ eventType: "KEYBOARD" }), a && _[0] && nr(k.current[_[0].id]);
}, it = () => {
q ? R() : v({ eventType: "CLICK" });
M ? R() : v({ eventType: "CLICK" });
}, ot = () => {
var p;
!Q && h && v({ eventType: "KEYBOARD" }), (p = $.current) == null || p.select();
!Q && b && v({ eventType: "KEYBOARD" }), (p = $.current) == null || p.select();
}, pt = () => {

@@ -1545,12 +1526,12 @@ t && setTimeout(() => {

"aria-label": e,
"aria-expanded": q,
"data-testid": L("listbox"),
"aria-expanded": M,
"data-testid": I("listbox"),
id: `${r}-listbox`,
ref: E,
onMouseLeave: () => b(void 0),
onMouseLeave: () => h(void 0),
style: u ? st : void 0
}, vr = (p) => `${r}-listbox-item-${p.id}`, lt = (p, _) => {
const y = () => p.id !== (l == null ? void 0 : l.id) && b({ ...p, isSetByClickEvent: !0 }), S = (p.id === (l == null ? void 0 : l.id) || !!a && !l && _ === 0) && !(l != null && l.isSetByClickEvent);
const y = () => p.id !== (l == null ? void 0 : l.id) && h({ ...p, isSetByClickEvent: !0 }), S = (p.id === (l == null ? void 0 : l.id) || !!a && !l && _ === 0) && !(l != null && l.isSetByClickEvent);
return {
"data-testid": L(`listbox-item-${p.id}`),
"data-testid": I(`listbox-item-${p.id}`),
id: vr(p),

@@ -1560,3 +1541,3 @@ key: p.id,

onMouseUp: () => _r(p),
ref: (ur) => ur && (I.current[p.id] = ur),
ref: (ur) => ur && (k.current[p.id] = ur),
tabIndex: -1,

@@ -1572,3 +1553,3 @@ selected: p.id === (c == null ? void 0 : c.id),

"aria-controls": fr.id,
"data-testid": L("input"),
"data-testid": I("input"),
autoComplete: "off",

@@ -1588,5 +1569,5 @@ id: `${r}-input`,

inputProps: ct,
internalRef: B,
optionsToShow: C,
showListbox: q,
internalRef: L,
optionsToShow: q,
showListbox: M,
noOptionsText: g,

@@ -1603,3 +1584,3 @@ combobox: t,

optionsToShow: f,
showListbox: h,
showListbox: b,
noOptionsText: g,

@@ -1610,10 +1591,10 @@ combobox: j,

} = dn(i), w = (d, l) => {
const { key: b, ...$ } = x(d, l);
return /* @__PURE__ */ s(J.Item, { ...$, children: n ? n == null ? void 0 : n(d) : d.label }, b);
}, P = (d) => {
const { key: h, ...$ } = x(d, l);
return /* @__PURE__ */ s(X.Item, { ...$, children: n ? n == null ? void 0 : n(d) : d.label }, h);
}, C = (d) => {
u.current = d, typeof o == "function" ? o(d) : o && (o.current = d);
}, M = () => {
}, P = () => {
const d = a(e);
if (j && g && d && un(d)) {
const b = /* @__PURE__ */ A(dt, { children: [
const h = /* @__PURE__ */ O(dt, { children: [
d.props.endAdornment,

@@ -1631,7 +1612,7 @@ /* @__PURE__ */ s(

children: /* @__PURE__ */ s(
Pr,
Cr,
{
size: "sm",
className: tr(`${U}__chevron-icon`, {
[`${U}__chevron-icon--up`]: h
[`${U}__chevron-icon--up`]: b
})

@@ -1643,11 +1624,11 @@ }

] });
return sr(d, { endAdornment: b });
return sr(d, { endAdornment: h });
}
return d;
};
return /* @__PURE__ */ A("div", { id: r, ref: P, className: tr([t, U]), children: [
M(),
h && /* @__PURE__ */ s(J, { ...c, className: tr(`${U}__listbox`), children: f.length ? f.filter((d) => !!d).map(w) : /* @__PURE__ */ s(J.Item, { noninteractive: !0, children: g }) })
return /* @__PURE__ */ O("div", { id: r, ref: C, className: tr([t, U]), children: [
P(),
b && /* @__PURE__ */ s(X, { ...c, className: tr(`${U}__listbox`), children: f.length ? f.filter((d) => !!d).map(w) : /* @__PURE__ */ s(X.Item, { noninteractive: !0, children: g }) })
] });
}, fn = O(_n);
}, fn = A(_n);
fn.displayName = "Autocomplete";

@@ -1654,0 +1635,0 @@ export {

Name: @purpurds/icon
Version: 5.24.3
Version: 5.25.0
License: AGPL-3.0-only

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

Name: @purpurds/listbox
Version: 5.24.3
Version: 5.25.0
License: AGPL-3.0-only

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

Name: @purpurds/text-field
Version: 5.24.3
Version: 5.25.0
License: AGPL-3.0-only

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

{
"name": "@purpurds/autocomplete",
"version": "5.25.0",
"version": "5.25.1-0",
"license": "AGPL-3.0-only",

@@ -18,7 +18,7 @@ "main": "./dist/autocomplete.cjs.js",

"classnames": "~2.5.0",
"@purpurds/icon": "5.25.0",
"@purpurds/text-field": "5.25.0",
"@purpurds/listbox": "5.25.0",
"@purpurds/paragraph": "5.25.0",
"@purpurds/tokens": "5.25.0"
"@purpurds/icon": "5.25.1-0",
"@purpurds/listbox": "5.25.1-0",
"@purpurds/paragraph": "5.25.1-0",
"@purpurds/tokens": "5.25.1-0",
"@purpurds/text-field": "5.25.1-0"
},

@@ -49,6 +49,6 @@ "devDependencies": {

"vitest": "^2.1.2",
"@purpurds/button": "5.25.0",
"@purpurds/button": "5.25.1-0",
"@purpurds/component-rig": "1.0.0",
"@purpurds/icon": "5.25.0",
"@purpurds/search-field": "5.25.0"
"@purpurds/icon": "5.25.1-0",
"@purpurds/search-field": "5.25.1-0"
},

@@ -55,0 +55,0 @@ "scripts": {

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