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

@purpurds/autocomplete

Package Overview
Dependencies
Maintainers
0
Versions
47
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.14.0 to 5.15.0

34

dist/autocomplete.cjs.js

@@ -1,50 +0,58 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),l=require("react");require("react-dom");function tt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var br={exports:{}};/*!
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),l=require("react");require("react-dom");function nt(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})()})(br);var et=br.exports;const nt=tt(et),ut={"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"},at={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"},it={name:"chevron-down",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>',keywords:["chevron-down"],category:"utility"},hr=t=>p.jsx(yr,{...t,svg:it});hr.displayName="IconChevronDown";const ot=nt.bind(ut),pr="purpur-icon",st="md",pt=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),lt=({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 ${pt(n)}>${i}${t}</svg>`},ct=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),yr=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=st,...r})=>{const e=lt({content:ct(a.svg),title:n}),u=ot(i,pr,`${pr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})},dt={SM:"sm",MD:"md",LG:"lg"};function _t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wr={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 ut=br.exports;const at=nt(ut),it={"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"},ot={name:"chevron-down",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>',keywords:["chevron-down"],category:"utility"},hr=t=>p.jsx(_t,{...t,svg:ot});hr.displayName="IconChevronDown";const st=at.bind(it),sr="purpur-icon",pt="md",lt=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),ct=({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 ${lt(n)}>${i}${t}</svg>`},dt=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),_t=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=pt,...r})=>{const e=ct({content:dt(a.svg),title:n}),u=st(i,sr,`${sr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};function ft(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yr={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})()})(wr);var ft=wr.exports;const lr=_t(ft),vt="_rotate_1xozj_1",mt="_dash_1xozj_1",D={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:vt,"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:mt,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},T="purpur-spinner",xt={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},gt=({["data-testid"]:t,disabled:a=!1,negative:n=!1,size:i=xt.SM,...o})=>p.jsx("div",{className:lr([D[T],D[`${T}--${i}`]]),"data-testid":t,...o,children:p.jsx("svg",{viewBox:"0 0 50 50",children:p.jsx("circle",{className:lr(D[`${T}__circle`],{[D[`${T}__circle--disabled`]]:a,[D[`${T}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function bt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jr={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})()})(yr);var vt=yr.exports;const wr=ft(vt),jr={"purpur-listbox":"_purpur-listbox_qhoi7_1","purpur-listbox-item":"_purpur-listbox-item_qhoi7_15","purpur-listbox-item--hovered":"_purpur-listbox-item--hovered_qhoi7_29","purpur-listbox-item--highlighted":"_purpur-listbox-item--highlighted_qhoi7_37","purpur-listbox-item--noninteractive":"_purpur-listbox-item--noninteractive_qhoi7_41","purpur-listbox-item--disabled":"_purpur-listbox-item--disabled_qhoi7_44","purpur-listbox-item__icon":"_purpur-listbox-item__icon_qhoi7_51"};function mt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $r={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})()})(jr);var ht=jr.exports;const yt=bt(ht),wt={"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"},jt=yt.bind(wt),L="purpur-button",$t=({children:t,className:a,["data-testid"]:n,disabled:i=!1,fullWidth:o=!1,iconOnly:r,loading:e=!1,negative:u=!1,onClick:m,size:h="md",variant:w,type:$="button",..._},f)=>{if(r&&w==="destructive")return null;const S=jt([L,`${L}--${u?`${w}-negative`:w}`,`${L}--${h}`],{[`${L}--icon-only`]:r,[`${L}--negative`]:u,[`${L}--full-width`]:o,[`${L}--disabled`]:i||e},a),R=c=>{i||e?c.preventDefault():m&&m(c)},j=!!_["aria-disabled"]||i||e;return p.jsxs("button",{className:S,"data-testid":n,type:$,ref:f,"aria-disabled":j,onClick:R,..._,children:[e&&p.jsx(gt,{size:h===dt.LG?"xs":"xxs",negative:u,disabled:j})," ",t]})},$r=l.forwardRef($t);$r.displayName="Button";function St(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Sr={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})()})($r);var xt=$r.exports;const gt=mt(xt),bt={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},ht={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"},Sr=t=>p.jsx(Nt,{...t,svg:ht});Sr.displayName="IconCheckmark";const yt=gt.bind(bt),pr="purpur-icon",wt="md",jt=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),$t=({content:t="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${jt(n)}>${i}${t}</svg>`},St=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Nt=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=wt,...r})=>{const e=$t({content:St(a.svg),title:n}),u=yt(i,pr,`${pr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};function At(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nr={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})()})(Sr);var Nt=Sr.exports;const At=St(Nt),Ot={"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"},Pt={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"},Ct=At.bind(Ot),cr="purpur-icon",Rt="md",Mt=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),Lt=({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 ${Mt(n)}>${i}${t}</svg>`},Et=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),It=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=Rt,...r})=>{const e=Lt({content:Et(a.svg),title:n}),u=Ct(i,cr,`${cr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};function qt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nr={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})()})(Nr);var Ot=Nr.exports;const Pt=At(Ot),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"},Ct={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"},V="purpur-paragraph",Ar=({["data-testid"]:t,children:a,className:n,disabled:i,enableHyphenation:o=!1,negative:r=!1,variant:e=Ct.PARAGRAPH100,...u})=>{const m=Pt([n,T[V],T[`${V}--${e}`],{[T[`${V}--hyphens`]]:o,[T[`${V}--disabled`]]:i,[T[`${V}--negative`]]:r}]);return p.jsx("p",{...u,className:m,"data-testid":t,children:a})};Ar.displayName="Paragraph";const lr=wr.bind(jr),R="purpur-listbox",nr=l.forwardRef((t,a)=>{const{disabled:n,highlighted:i,hovered:o,selected:r,children:e,noninteractive:u,...m}=t,h=lr(`${R}-item`,m.className,{[`${R}-item--highlighted`]:i,[`${R}-item--selected`]:r,[`${R}-item--hovered`]:o,[`${R}-item--disabled`]:n,[`${R}-item--noninteractive`]:u});return p.jsxs("li",{...m,ref:a,className:h,"aria-selected":!!r,role:"option","aria-disabled":!!n,children:[typeof e=="string"?p.jsx(Ar,{children:e}):e,r&&p.jsx(Sr,{size:"xs",className:lr(`${R}-item__icon`)})]})}),Mt=t=>l.isValidElement(t)&&(t==null?void 0:t.type)===nr;nr.displayName="ListBoxItem";const Rt=wr.bind(jr),Et="purpur-listbox",X=l.forwardRef(({children:t,...a},n)=>p.jsx("ul",{...a,ref:n,className:Rt(Et,a.className),role:"listbox",children:l.Children.toArray(t).filter(Mt)}));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 Or={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})()})(Nr);var zt=Nr.exports;const Bt=qt(zt),dr={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},_r="purpur-field-error-text",kt=({["data-testid"]:t,children:a,className:n,relevant:i="additions text",...o})=>p.jsxs("div",{className:Bt([n,dr[_r]]),"data-testid":t,"aria-live":"assertive","aria-relevant":i,...o,children:[p.jsx(It,{svg:Pt,size:"xs",className:dr[`${_r}__icon`]}),a]});function Dt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ar={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})()})(Or);var It=Or.exports;const cr=Lt(It),kt="_rotate_1xozj_1",zt="_dash_1xozj_1",F={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:kt,"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:zt,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},G="purpur-spinner",Bt={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},Dt=({["data-testid"]:t,disabled:a=!1,negative:n=!1,size:i=Bt.SM,...o})=>p.jsx("div",{className:cr([F[G],F[`${G}--${i}`]]),"data-testid":t,...o,children:p.jsx("svg",{viewBox:"0 0 50 50",children:p.jsx("circle",{className:cr(F[`${G}__circle`],{[F[`${G}__circle--disabled`]]:a,[F[`${G}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function Tt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Pr={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})()})(Ar);var Tt=Ar.exports;const Vt=Dt(Tt),fr={"purpur-field-helper-text":"_purpur-field-helper-text_atw6b_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_atw6b_9"},vr="purpur-field-helper-text",Ft=({["data-testid"]:t,children:a,className:n,disabled:i,id:o,...r})=>{const e=Vt([n,fr[vr],{[fr[`${vr}--disabled`]]:i}]);return p.jsx("span",{id:o,className:e,"data-testid":t,...r,children:a})};function Gt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Or={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})()})(Pr);var Vt=Pr.exports;const Ft=Tt(Vt),Gt={"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"},Ht=Ft.bind(Gt),E="purpur-button",Zt=({children:t,className:a,["data-testid"]:n,disabled:i=!1,fullWidth:o=!1,iconOnly:r,loading:e=!1,negative:u=!1,onClick:m,size:h="md",variant:w,type:$="button",..._},f)=>{if(r&&w==="destructive")return null;const S=Ht([E,`${E}--${u?`${w}-negative`:w}`,`${E}--${h}`],{[`${E}--icon-only`]:r,[`${E}--negative`]:u,[`${E}--full-width`]:o,[`${E}--disabled`]:i||e},a),C=c=>{i||e?c.preventDefault():m&&m(c)},j=!!_["aria-disabled"]||i||e;return p.jsxs("button",{className:S,"data-testid":n,type:$,ref:f,"aria-disabled":j,onClick:C,..._,children:[e&&p.jsx(Dt,{size:h===qt.LG?"xs":"xxs",negative:u,disabled:j})," ",t]})},Cr=l.forwardRef(Zt);Cr.displayName="Button";function Kt(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})()})(Or);var Zt=Or.exports;const Ht=Gt(Zt),Kt={"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"},Xt={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"},Ut={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"},Pr=t=>p.jsx(Rr,{...t,svg:Xt});Pr.displayName="IconCheckCircleFilled";const Cr=t=>p.jsx(Rr,{...t,svg:Ut});Cr.displayName="IconClose";const Yt=Ht.bind(Kt),mr="purpur-icon",Jt="md",Qt=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),Wt=({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 ${Qt(n)}>${i}${t}</svg>`},re=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Rr=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=Jt,...r})=>{const e=Wt({content:re(a.svg),title:n}),u=Yt(i,mr,`${mr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};function tr(){return tr=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},tr.apply(this,arguments)}function K(){return K=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},K.apply(this,arguments)}function te(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function ee(...t){return a=>t.forEach(n=>te(n,a))}const Mr=l.forwardRef((t,a)=>{const{children:n,...i}=t,o=l.Children.toArray(n),r=o.find(ue);if(r){const e=r.props.children,u=o.map(m=>m===r?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:m);return l.createElement(er,K({},i,{ref:a}),l.isValidElement(e)?l.cloneElement(e,void 0,u):null)}return l.createElement(er,K({},i,{ref:a}),n)});Mr.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?ee(a,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null});er.displayName="SlotClone";const ne=({children:t})=>l.createElement(l.Fragment,null,t);function ue(t){return l.isValidElement(t)&&t.type===ne}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 ie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],oe=ie.reduce((t,a)=>{const n=l.forwardRef((i,o)=>{const{asChild:r,...e}=i,u=r?Mr:a;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(u,K({},e,{ref:o}))});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),se=l.forwardRef((t,a)=>l.createElement(oe.label,tr({},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()}}))),pe=se;function le(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})()})(Mr);var Xt=Mr.exports;const Ut=Kt(Xt),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"},Jt={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"},Wt=Ut.bind(Yt),dr="purpur-icon",Qt="md",re=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),te=({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 ${re(n)}>${i}${t}</svg>`},ee=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),ne=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=Qt,...r})=>{const e=te({content:ee(a.svg),title:n}),u=Wt(i,dr,`${dr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};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 ce=Lr.exports;const de=le(ce),W={"purpur-label":"_purpur-label_12cfi_1","purpur-label--negative":"_purpur-label--negative_12cfi_9","purpur-label--disabled":"_purpur-label--disabled_12cfi_12"},rr="purpur-label",_e=({children:t,className:a,htmlFor:n,"data-testid":i,disabled:o,negative:r=!1,...e})=>{const u=de([a,W[rr],{[W[`${rr}--disabled`]]:o,[W[`${rr}--negative`]]:r}]);return p.jsx(pe,{className:u,"data-testid":i,htmlFor:n,...e,children:t})};function fe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Er={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),_r={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},fr="purpur-field-error-text",oe=({["data-testid"]:t,children:a,className:n,relevant:i="additions text",...o})=>p.jsxs("div",{className:ie([n,_r[fr]]),"data-testid":t,"aria-live":"assertive","aria-relevant":i,...o,children:[p.jsx(ne,{svg:Jt,size:"xs",className:_r[`${fr}__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})()})(Er);var ve=Er.exports;const xr=fe(ve),me="_rotate_1xozj_1",xe="_dash_1xozj_1",V={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:me,"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:xe,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},F="purpur-spinner",ge={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},be=({["data-testid"]:t,disabled:a=!1,negative:n=!1,size:i=ge.SM,...o})=>p.jsx("div",{className:xr([V[F],V[`${F}--${i}`]]),"data-testid":t,...o,children:p.jsx("svg",{viewBox:"0 0 50 50",children:p.jsx("circle",{className:xr(V[`${F}__circle`],{[V[`${F}__circle--disabled`]]:a,[V[`${F}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function he(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(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),vr={"purpur-field-helper-text":"_purpur-field-helper-text_atw6b_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_atw6b_9"},mr="purpur-field-helper-text",ce=({["data-testid"]:t,children:a,className:n,disabled:i,id:o,...r})=>{const e=le([n,vr[mr],{[vr[`${mr}--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 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.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 ye=Ir.exports;const we=he(ye),je={"purpur-text-field":"_purpur-text-field_nj9f4_1","purpur-text-field__label":"_purpur-text-field__label_nj9f4_7","purpur-text-field__label-text":"_purpur-text-field__label-text_nj9f4_13","purpur-text-field__field-row":"_purpur-text-field__field-row_nj9f4_16","purpur-text-field__frame":"_purpur-text-field__frame_nj9f4_20","purpur-text-field__input-container":"_purpur-text-field__input-container_nj9f4_27","purpur-text-field__input-container--disabled":"_purpur-text-field__input-container--disabled_nj9f4_38","purpur-text-field__input-container--readonly":"_purpur-text-field__input-container--readonly_nj9f4_41","purpur-text-field__input-container--has-clear-button":"_purpur-text-field__input-container--has-clear-button_nj9f4_44","purpur-text-field__input-container--end-adornment":"_purpur-text-field__input-container--end-adornment_nj9f4_47","purpur-text-field__input":"_purpur-text-field__input_nj9f4_27","purpur-text-field__input-container--start-adornment":"_purpur-text-field__input-container--start-adornment_nj9f4_53","purpur-text-field__input--valid":"_purpur-text-field__input--valid_nj9f4_94","purpur-text-field__input--error":"_purpur-text-field__input--error_nj9f4_94","purpur-text-field__adornment-container":"_purpur-text-field__adornment-container_nj9f4_106","purpur-text-field__valid-icon":"_purpur-text-field__valid-icon_nj9f4_111"},$e=t=>l.useRef(t),O=we.bind(je),g="purpur-text-field",Se=({["data-testid"]:t,className:a,clearButtonAllyLabel:n,afterField:i,endAdornment:o,errorText:r,helperText:e,label:u,loading:m=!1,onClear:h,startAdornment:w,valid:$=!1,..._},f)=>{var S;const R=l.useId(),j=_.id??R,c=x=>t?`${t}-${x}`:void 0,d=$&&!r,b=e?`${j}-helper-text`:void 0,N=[w].filter(x=>!!x),q=(typeof _.value=="number"?_.value!==void 0:(S=_.value)==null?void 0:S.length)&&!_.disabled&&!_.readOnly&&!m&&h&&n,z=$e(null),E=x=>{z.current=x,typeof f=="function"?f(x):f&&(f.current=x)},X=()=>{var x;h==null||h(),(x=z.current)==null||x.focus()},I=[m&&p.jsx(be,{disabled:_.disabled,size:"xs","data-testid":c("spinner")},"spinner"),q&&p.jsx($r,{variant:"tertiary-purple",onClick:X,iconOnly:!0,"aria-label":n??"","data-testid":c("clear-button"),tabIndex:-1,children:p.jsx(Cr,{size:"xs"})},"clear-button"),d&&p.jsx(Pr,{"data-testid":c("valid-icon"),className:O(`${g}__valid-icon`)},"valid-icon")].filter(x=>!!x),B=O([`${g}__input-container`,{[`${g}__input-container--start-adornment`]:N.length,[`${g}__input-container--end-adornment`]:I.length||o,[`${g}__input-container--disabled`]:_.disabled,[`${g}__input-container--has-clear-button`]:q,[`${g}__input-container--readonly`]:_.readOnly&&!_.disabled}]);return p.jsxs("div",{className:O(a,g),children:[u&&p.jsx(_e,{htmlFor:j,className:O(`${g}__label`),"data-testid":c("label"),disabled:_.disabled,children:`${_.required?"* ":""}${u}`}),p.jsxs("div",{className:O(`${g}__field-row`),children:[p.jsxs("div",{className:B,children:[!!N.length&&p.jsx("div",{"data-testid":c("start-adornments"),className:O(`${g}__adornment-container`),children:N}),p.jsx("input",{..._,id:j,ref:E,"data-testid":c("input"),"aria-describedby":_["aria-describedby"]||b,"aria-invalid":_["aria-invalid"]||!!r,className:O([`${g}__input`,{[`${g}__input--valid`]:d,[`${g}__input--error`]:!!r}])}),p.jsx("div",{className:O(`${g}__frame`)}),(!!I.length||o)&&p.jsxs("div",{"data-testid":c("end-adornments"),className:O(`${g}__adornment-container`),children:[I,o]})]}),!!i&&i]}),b&&p.jsx(Ft,{"data-testid":c("helper-text"),id:b,children:e}),r&&p.jsx(kt,{"data-testid":c("error-text"),children:r})]})},qr=l.forwardRef(Se);qr.displayName="TextField";const Ne=t=>l.isValidElement(t)&&t.type.displayName===qr.displayName;function Ae(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})()})(qr);var _e=qr.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(kr,{...t,svg:me});Lr.displayName="IconCheckCircleFilled";const Ir=t=>p.jsx(kr,{...t,svg:xe});Ir.displayName="IconClose";const ge=fe.bind(ve),xr="purpur-icon",be="md",he=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 ${he(n)}>${i}${t}</svg>`},we=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),kr=({["data-testid"]:t,svg:a,allyTitle:n,className:i,size:o=be,...r})=>{const e=ye({content:we(a.svg),title:n}),u=ge(i,xr,`${xr}--${o}`);return p.jsx("span",{"aria-label":n,className:u,"data-testid":t,dangerouslySetInnerHTML:{__html:e},...r})};function I(){return I=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},I.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 zr=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(m=>m===r?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:m);return l.createElement(er,I({},i,{ref:a}),l.isValidElement(e)?l.cloneElement(e,void 0,u):null)}return l.createElement(er,I({},i,{ref:a}),n)});zr.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?zr:a;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(u,I({},e,{ref:o}))});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Ce=l.forwardRef((t,a)=>l.createElement(Pe.label,I({},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 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 Oe=zr.exports;const Br=Ae(Oe),Pe={"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"};function Ce(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})()})(Br);var Ee=Br.exports;const qe=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",Le=({children:t,className:a,htmlFor:n,"data-testid":i,disabled:o,negative:r=!1,...e})=>{const u=qe([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 Ie(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dr={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 Re=kr.exports;const Me=Ce(Re),G={"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"},Le={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"},Z="purpur-paragraph",Dr=({["data-testid"]:t,children:a,className:n,disabled:i,enableHyphenation:o=!1,negative:r=!1,variant:e=Le.PARAGRAPH100,...u})=>{const m=Me([n,G[Z],G[`${Z}--${e}`],{[G[`${Z}--hyphens`]]:o,[G[`${Z}--disabled`]]:i,[G[`${Z}--negative`]]:r}]);return p.jsx("p",{...u,className:m,"data-testid":t,children:a})};Dr.displayName="Paragraph";const Ee={"purpur-listbox":"_purpur-listbox_qhoi7_1","purpur-listbox-item":"_purpur-listbox-item_qhoi7_15","purpur-listbox-item--hovered":"_purpur-listbox-item--hovered_qhoi7_29","purpur-listbox-item--highlighted":"_purpur-listbox-item--highlighted_qhoi7_37","purpur-listbox-item--noninteractive":"_purpur-listbox-item--noninteractive_qhoi7_41","purpur-listbox-item--disabled":"_purpur-listbox-item--disabled_qhoi7_44","purpur-listbox-item__icon":"_purpur-listbox-item__icon_qhoi7_51"},Ie=t=>l.useRef(t),qe=(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])},Tr=({combobox:t,highlightFirstOption:a,defaultInputValue:n,inputValue:i,filterOption:o,id:r,listboxLabel:e,listboxMaxHeight:u,onInputChange:m,openOnFocus:h,noOptionsText:w,onSelect:$,options:_,selectedOption:f,["data-testid"]:S})=>{const[R,j]=l.useState(((typeof i=="string"?i:n)||(f==null?void 0:f.label))??""),c=typeof i=="string"?i:R,[d,b]=l.useState(a?_[0]:void 0),N=l.useRef(null),q=Ie(null),z=l.useRef(null),E=l.useRef({}),[X,I]=l.useState(!1);function B(s){return S?`${S}-${s}`:void 0}const x=()=>{I(!1),b(void 0)};qe(q.current,x);const k=({eventType:s})=>{I(!0),f&&requestAnimationFrame(()=>{b({...f,isSetByClickEvent:s==="CLICK"}),J(E.current[f.id])})},Gr=s=>{if(o)return _.filter(y=>o(s,y));if(!s)return _;const v=s.toUpperCase().split(" ")||[];return _.filter(y=>v.every(A=>(y.value||y.label).toUpperCase().includes(A)))},ar=s=>f&&(f==null?void 0:f.label)===s?_:Gr(s),P=ar(c),Y=s=>{m==null||m(s),j(s)},J=s=>{var v;if(s){const y=s.getBoundingClientRect(),A=((v=z.current)==null?void 0:v.getBoundingClientRect())||{top:0,bottom:0};(y.top<A.top||y.bottom>A.bottom)&&s.scrollIntoView({block:"nearest"})}},ir=s=>{var v;s&&((v=N.current)==null||v.focus(),Y(s.label),$==null||$(s)),x()},Zr=s=>{const v=a&&!d?0:P.findIndex(A=>A&&(d==null?void 0:d.id)===A.id),y=P.length;return s==="ArrowDown"?P[(v??-1)+1]||P[0]:P[(v??y)-1]||P[y-1]},M=X&&(!!P.length||!!w),Hr=s=>{!M&&k({eventType:"KEYBOARD"});const v=Zr(s);b(v),v&&J(E.current[v.id])},Kr=s=>{switch(s.key){case"ArrowUp":case"ArrowDown":s.preventDefault(),Hr(s.key);break;case"Enter":{const v=d||(a?_[0]:void 0);M&&ir(v),!M&&k({eventType:"KEYBOARD"});break}case"Escape":case"Tab":x();break}},Xr=s=>{const v=ar(s.target.value);Y(s.target.value),b(void 0),!M&&k({eventType:"KEYBOARD"}),a&&v[0]&&J(E.current[v[0].id])},Ur=()=>{M?x():k({eventType:"CLICK"})},Yr=()=>{var s;!X&&h&&k({eventType:"KEYBOARD"}),(s=N.current)==null||s.select()},Jr=()=>{t&&Y((f==null?void 0:f.label)??"")},Qr={maxHeight:typeof u=="number"?`${u}px`:u},or={"aria-label":e,"aria-expanded":M,"data-testid":B("listbox"),id:`${r}-listbox`,ref:z,onMouseLeave:()=>b(void 0),style:u?Qr:void 0},sr=s=>`${r}-listbox-item-${s.id}`,Wr=(s,v)=>{const y=()=>s.id!==(d==null?void 0:d.id)&&b({...s,isSetByClickEvent:!0}),A=(s.id===(d==null?void 0:d.id)||!!a&&!d&&v===0)&&!(d!=null&&d.isSetByClickEvent);return{"data-testid":B(`listbox-item-${s.id}`),id:sr(s),key:s.id,onMouseMove:y,onMouseUp:()=>ir(s),ref:Q=>Q&&(E.current[s.id]=Q),tabIndex:-1,selected:s.id===(f==null?void 0:f.id),disabled:s.disabled,highlighted:A,hovered:s.id===(d==null?void 0:d.id)&&!!(d!=null&&d.isSetByClickEvent)}},rt={"aria-activedescendant":d?sr(d):void 0,"aria-autocomplete":"list","aria-controls":or.id,"data-testid":B("input"),autoComplete:"off",id:`${r}-input`,onChange:Xr,onMouseDown:Ur,onFocus:Yr,onKeyDown:Kr,onBlur:Jr,ref:N,role:"combobox",value:c};return{id:r,inputProps:rt,internalRef:q,optionsToShow:P,showListbox:M,noOptionsText:w,combobox:t,getListBoxItemProps:Wr,listboxProps:or}},nr=Br.bind(Ee),C="purpur-listbox",Vr=l.forwardRef(({children:t,...a},n)=>p.jsx("ul",{...a,ref:n,className:nr(C,a.className),role:"listbox",children:l.Children.toArray(t).filter(ze)}));Vr.displayName="ListBox";const ur=l.forwardRef((t,a)=>{const{disabled:n,highlighted:i,hovered:o,selected:r,children:e,noninteractive:u,...m}=t,h=nr(`${C}-item`,m.className,{[`${C}-item--highlighted`]:i,[`${C}-item--selected`]:r,[`${C}-item--hovered`]:o,[`${C}-item--disabled`]:n,[`${C}-item--noninteractive`]:u});return p.jsxs("li",{...m,ref:a,className:h,"aria-selected":!!r,role:"option","aria-disabled":!!n,children:[typeof e=="string"?p.jsx(Dr,{children:e}):e,r&&p.jsx(yr,{svg:at,size:"xs",className:nr(`${C}-item__icon`)})]})});ur.displayName="ListBoxItem";function ze(t){return l.isValidElement(t)&&(t==null?void 0:t.type)===ur}const Be=Vr,gr=ur,U=Br.bind(Pe),H="purpur-autocomplete",ke=({className:t,renderInput:a,renderOption:n,...i},o)=>{const{id:r,inputProps:e,internalRef:u,optionsToShow:m,showListbox:h,noOptionsText:w,combobox:$,getListBoxItemProps:_,listboxProps:f}=Tr(i),S=(c,d)=>{const{key:b,...N}=_(c,d);return p.jsx(gr,{...N,children:n?n==null?void 0:n(c):c.label},b)},R=c=>{u.current=c,typeof o=="function"?o(c):o&&(o.current=c)},j=()=>{const c=a(e);if($&&w&&c&&Ne(c)){const b=p.jsxs(p.Fragment,{children:[c.props.endAdornment,p.jsx("button",{"data-testid":"chevron button",type:"button",className:U(`${H}__chevron-button`),onClick:()=>{e.onFocus(),e.onMouseDown()},"aria-hidden":"true",children:p.jsx(hr,{size:"sm",className:U(`${H}__chevron-icon`,{[`${H}__chevron-icon--up`]:h})})})]});return l.cloneElement(c,{endAdornment:b})}return c};return p.jsxs("div",{id:r,ref:R,className:U([t,H]),children:[j(),h&&p.jsx(Be,{...f,className:U(`${H}__listbox`),children:m.length?m.filter(c=>!!c).map(S):p.jsx(gr,{noninteractive:!0,children:w})})]})},Fr=l.forwardRef(ke);Fr.displayName="Autocomplete";exports.Autocomplete=Fr;exports.useAutocomplete=Tr;
*/(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})()})(Dr);var ke=Dr.exports;const gr=Ie(ke),ze="_rotate_1xozj_1",Be="_dash_1xozj_1",H={"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"},Z="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:gr([H[Z],H[`${Z}--${i}`]]),"data-testid":t,...o,children:p.jsx("svg",{viewBox:"0 0 50 50",children:p.jsx("circle",{className:gr(H[`${Z}__circle`],{[H[`${Z}__circle--disabled`]]:a,[H[`${Z}__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 Tr={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})()})(Tr);var Fe=Tr.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),O=Ge.bind(He),g="purpur-text-field",Ke=({["data-testid"]:t,className:a,clearButtonAllyLabel:n,afterField:i,endAdornment:o,errorText:r,helperText:e,label:u,loading:m=!1,onClear:h,startAdornment:w,valid:$=!1,..._},f)=>{var S;const C=l.useId(),j=_.id??C,c=x=>t?`${t}-${x}`:void 0,d=$&&!r,b=e?`${j}-helper-text`:void 0,N=[w].filter(x=>!!x),k=(typeof _.value=="number"?_.value!==void 0:(S=_.value)==null?void 0:S.length)&&!_.disabled&&!_.readOnly&&!m&&h&&n,z=Ze(null),q=x=>{z.current=x,typeof f=="function"?f(x):f&&(f.current=x)},U=()=>{var x;h==null||h(),(x=z.current)==null||x.focus()},L=[m&&p.jsx(Te,{disabled:_.disabled,size:"xs","data-testid":c("spinner")},"spinner"),k&&p.jsx(Cr,{variant:"tertiary-purple",onClick:U,iconOnly:!0,"aria-label":n??"","data-testid":c("clear-button"),tabIndex:-1,children:p.jsx(Ir,{size:"xs"})},"clear-button"),d&&p.jsx(Lr,{"data-testid":c("valid-icon"),className:O(`${g}__valid-icon`)},"valid-icon")].filter(x=>!!x),B=O([`${g}__input-container`,{[`${g}__input-container--start-adornment`]:N.length,[`${g}__input-container--end-adornment`]:L.length||o,[`${g}__input-container--disabled`]:_.disabled,[`${g}__input-container--has-clear-button`]:k,[`${g}__input-container--readonly`]:_.readOnly&&!_.disabled}]);return p.jsxs("div",{className:O(a,g),children:[u&&p.jsx(Le,{htmlFor:j,className:O(`${g}__label`),"data-testid":c("label"),disabled:_.disabled,children:`${_.required?"* ":""}${u}`}),p.jsxs("div",{className:O(`${g}__field-row`),children:[p.jsxs("div",{className:B,children:[!!N.length&&p.jsx("div",{"data-testid":c("start-adornments"),className:O(`${g}__adornment-container`),children:N}),p.jsx("input",{..._,id:j,ref:q,"data-testid":c("input"),"aria-describedby":_["aria-describedby"]||b,"aria-invalid":_["aria-invalid"]||!!r,className:O([`${g}__input`,{[`${g}__input--valid`]:d,[`${g}__input--error`]:!!r}])}),p.jsx("div",{className:O(`${g}__frame`)}),(!!L.length||o)&&p.jsxs("div",{"data-testid":c("end-adornments"),className:O(`${g}__adornment-container`),children:[L,o]})]}),!!i&&i]}),b&&p.jsx(ce,{"data-testid":c("helper-text"),id:b,children:e}),r&&p.jsx(oe,{"data-testid":c("error-text"),children:r})]})},Vr=l.forwardRef(Ke);Vr.displayName="TextField";const Xe=t=>l.isValidElement(t)&&t.type.displayName===Vr.displayName;function Ue(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.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})()})(Fr);var Ye=Fr.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])},Gr=({combobox:t,highlightFirstOption:a,defaultInputValue:n,inputValue:i,filterOption:o,id:r,listboxLabel:e,listboxMaxHeight:u,onInputChange:m,openOnFocus:h,noOptionsText:w,onSelect:$,options:_,selectedOption:f,["data-testid"]:S})=>{const[C,j]=l.useState(((typeof i=="string"?i:n)||(f==null?void 0:f.label))??""),c=typeof i=="string"?i:C,[d,b]=l.useState(a?_[0]:void 0),N=l.useRef(null),k=Qe(null),z=l.useRef(null),q=l.useRef({}),[U,L]=l.useState(!1);function B(s){return S?`${S}-${s}`:void 0}const x=()=>{L(!1),b(void 0)};rn(k.current,x);const D=({eventType:s})=>{L(!0),f&&requestAnimationFrame(()=>{b({...f,isSetByClickEvent:s==="CLICK"}),W(q.current[f.id])})},Zr=s=>{if(o)return _.filter(y=>o(s,y));if(!s)return _;const v=s.toUpperCase().split(" ")||[];return _.filter(y=>v.every(A=>(y.value||y.label).toUpperCase().includes(A)))},ur=s=>f&&(f==null?void 0:f.label)===s?_:Zr(s),P=ur(c),J=s=>{m==null||m(s),j(s)},W=s=>{var v;if(s){const y=s.getBoundingClientRect(),A=((v=z.current)==null?void 0:v.getBoundingClientRect())||{top:0,bottom:0};(y.top<A.top||y.bottom>A.bottom)&&s.scrollIntoView({block:"nearest"})}},ar=s=>{var v;s&&((v=N.current)==null||v.focus(),J(s.label),$==null||$(s)),x()},Kr=s=>{const v=a&&!d?0:P.findIndex(A=>A&&(d==null?void 0:d.id)===A.id),y=P.length;return s==="ArrowDown"?P[(v??-1)+1]||P[0]:P[(v??y)-1]||P[y-1]},M=U&&(!!P.length||!!w),Xr=s=>{!M&&D({eventType:"KEYBOARD"});const v=Kr(s);b(v),v&&W(q.current[v.id])},Ur=s=>{switch(s.key){case"ArrowUp":case"ArrowDown":s.preventDefault(),Xr(s.key);break;case"Enter":{const v=d||(a?_[0]:void 0);M&&ar(v),!M&&D({eventType:"KEYBOARD"});break}case"Escape":case"Tab":x();break}},Yr=s=>{const v=ur(s.target.value);J(s.target.value),b(void 0),!M&&D({eventType:"KEYBOARD"}),a&&v[0]&&W(q.current[v[0].id])},Jr=()=>{M?x():D({eventType:"CLICK"})},Wr=()=>{var s;!U&&h&&D({eventType:"KEYBOARD"}),(s=N.current)==null||s.select()},Qr=()=>{t&&J((f==null?void 0:f.label)??"")},rt={maxHeight:typeof u=="number"?`${u}px`:u},ir={"aria-label":e,"aria-expanded":M,"data-testid":B("listbox"),id:`${r}-listbox`,ref:z,onMouseLeave:()=>b(void 0),style:u?rt:void 0},or=s=>`${r}-listbox-item-${s.id}`,tt=(s,v)=>{const y=()=>s.id!==(d==null?void 0:d.id)&&b({...s,isSetByClickEvent:!0}),A=(s.id===(d==null?void 0:d.id)||!!a&&!d&&v===0)&&!(d!=null&&d.isSetByClickEvent);return{"data-testid":B(`listbox-item-${s.id}`),id:or(s),key:s.id,onMouseMove:y,onMouseUp:()=>ar(s),ref:Q=>Q&&(q.current[s.id]=Q),tabIndex:-1,selected:s.id===(f==null?void 0:f.id),disabled:s.disabled,highlighted:A,hovered:s.id===(d==null?void 0:d.id)&&!!(d!=null&&d.isSetByClickEvent)}},et={"aria-activedescendant":d?or(d):void 0,"aria-autocomplete":"list","aria-controls":ir.id,"data-testid":B("input"),autoComplete:"off",id:`${r}-input`,onChange:Yr,onMouseDown:Jr,onFocus:Wr,onKeyDown:Ur,onBlur:Qr,ref:N,role:"combobox",value:c};return{id:r,inputProps:et,internalRef:k,optionsToShow:P,showListbox:M,noOptionsText:w,combobox:t,getListBoxItemProps:tt,listboxProps:ir}},Y=Je.bind(We),K="purpur-autocomplete",tn=({className:t,renderInput:a,renderOption:n,...i},o)=>{const{id:r,inputProps:e,internalRef:u,optionsToShow:m,showListbox:h,noOptionsText:w,combobox:$,getListBoxItemProps:_,listboxProps:f}=Gr(i),S=(c,d)=>{const{key:b,...N}=_(c,d);return p.jsx(X.Item,{...N,children:n?n==null?void 0:n(c):c.label},b)},C=c=>{u.current=c,typeof o=="function"?o(c):o&&(o.current=c)},j=()=>{const c=a(e);if($&&w&&c&&Xe(c)){const b=p.jsxs(p.Fragment,{children:[c.props.endAdornment,p.jsx("button",{"data-testid":"chevron button",type:"button",className:Y(`${K}__chevron-button`),onClick:()=>{e.onFocus(),e.onMouseDown()},"aria-hidden":"true",children:p.jsx(hr,{size:"sm",className:Y(`${K}__chevron-icon`,{[`${K}__chevron-icon--up`]:h})})})]});return l.cloneElement(c,{endAdornment:b})}return c};return p.jsxs("div",{id:r,ref:C,className:Y([t,K]),children:[j(),h&&p.jsx(X,{...f,className:Y(`${K}__listbox`),children:m.length?m.filter(c=>!!c).map(S):p.jsx(X.Item,{noninteractive:!0,children:w})})]})},Hr=l.forwardRef(tn);Hr.displayName="Autocomplete";exports.Autocomplete=Hr;exports.useAutocomplete=Gr;
//# sourceMappingURL=autocomplete.cjs.js.map
import { ComponentPropsWithRef, ReactNode, default as React } from 'react';
import { Option } from './useAutocomplete';
import * as ListBox from "./listbox";
export declare const Autocomplete: React.ForwardRefExoticComponent<{

@@ -9,3 +9,3 @@ combobox?: boolean | undefined;

inputValue?: string | undefined;
filterOption?: ((inputValue: string | undefined, option: ListBox.Option) => boolean) | undefined;
filterOption?: ((inputValue: string | undefined, option: Option) => boolean) | undefined;
id: string;

@@ -17,9 +17,9 @@ listboxLabel: string;

openOnFocus?: boolean | undefined;
onSelect?: ((option: ListBox.Option | undefined) => void) | undefined;
options: ListBox.Option[];
selectedOption?: ListBox.Option | undefined;
onSelect?: ((option: Option | undefined) => void) | undefined;
options: Option[];
selectedOption?: Option | undefined;
"data-testid"?: string | undefined;
className?: string | undefined;
renderInput: (props: ComponentPropsWithRef<"input">) => ReactNode;
renderOption?: ((option: ListBox.Option) => ReactNode) | undefined;
renderOption?: ((option: Option) => ReactNode) | undefined;
} & React.RefAttributes<HTMLDivElement>>;

@@ -26,0 +26,0 @@ export type { Option, UseAutocompleteOptions } from './useAutocomplete';

@@ -1,5 +0,5 @@

import { jsx as s, jsxs as O, Fragment as ot } from "react/jsx-runtime";
import { forwardRef as P, Children as k, isValidElement as q, createElement as J, cloneElement as lr, useEffect as Nr, useId as pt, Fragment as st, useRef as Y, useCallback as lt, useState as ur } from "react";
import { jsx as s, jsxs as O, Fragment as st } from "react/jsx-runtime";
import { forwardRef as P, Children as B, isValidElement as R, createElement as Q, cloneElement as sr, useEffect as Nr, useId as lt, Fragment as ct, useRef as J, useCallback as dt, useState as ar } from "react";
import "react-dom";
function ct(t) {
function _t(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;

@@ -43,4 +43,4 @@ }

})(Ar);
var dt = Ar.exports;
const _t = /* @__PURE__ */ ct(dt), ft = {
var ft = Ar.exports;
const vt = /* @__PURE__ */ _t(ft), mt = {
"purpur-icon": "_purpur-icon_8u1lq_1",

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

"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
}, vt = {
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"
}, mt = {
}, gt = {
name: "chevron-down",

@@ -65,10 +60,10 @@ 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>',

}, Or = (t) => /* @__PURE__ */ s(
Pr,
$t,
{
...t,
svg: mt
svg: gt
}
);
Or.displayName = "IconChevronDown";
const gt = _t.bind(ft), mr = "purpur-icon", xt = "md", bt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), ht = ({ content: t = "", title: a } = {}) => {
const xt = vt.bind(mt), vr = "purpur-icon", bt = "md", ht = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), yt = ({ content: t = "", title: a } = {}) => {
const n = [

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

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

@@ -87,9 +82,9 @@ svg: a,

className: i,
size: o = xt,
size: o = bt,
...r
}) => {
const e = ht({
content: yt(a.svg),
const e = yt({
content: wt(a.svg),
title: n
}), u = gt(i, mr, `${mr}--${o}`);
}), u = xt(i, vr, `${vr}--${o}`);
return /* @__PURE__ */ s(

@@ -105,3 +100,275 @@ "span",

);
}, wt = {
};
function jt(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Pr = { 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;
})();
})(Pr);
var St = Pr.exports;
const Mr = /* @__PURE__ */ jt(St), Cr = {
"purpur-listbox": "_purpur-listbox_qhoi7_1",
"purpur-listbox-item": "_purpur-listbox-item_qhoi7_15",
"purpur-listbox-item--hovered": "_purpur-listbox-item--hovered_qhoi7_29",
"purpur-listbox-item--highlighted": "_purpur-listbox-item--highlighted_qhoi7_37",
"purpur-listbox-item--noninteractive": "_purpur-listbox-item--noninteractive_qhoi7_41",
"purpur-listbox-item--disabled": "_purpur-listbox-item--disabled_qhoi7_44",
"purpur-listbox-item__icon": "_purpur-listbox-item__icon_qhoi7_51"
};
function Nt(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Lr = { 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;
})();
})(Lr);
var At = Lr.exports;
const Ot = /* @__PURE__ */ Nt(At), Pt = {
"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"
}, Mt = {
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"
}, qr = (t) => /* @__PURE__ */ s(
zt,
{
...t,
svg: Mt
}
);
qr.displayName = "IconCheckmark";
const Ct = Ot.bind(Pt), mr = "purpur-icon", Lt = "md", qt = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), It = ({ 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 ${qt(n)}>${i}${t}</svg>`;
}, kt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), zt = ({
["data-testid"]: t,
svg: a,
allyTitle: n,
className: i,
size: o = Lt,
...r
}) => {
const e = It({
content: kt(a.svg),
title: n
}), u = Ct(i, mr, `${mr}--${o}`);
return /* @__PURE__ */ s(
"span",
{
"aria-label": n,
className: u,
"data-testid": t,
dangerouslySetInnerHTML: { __html: e },
...r
}
);
};
function Bt(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(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;
})();
})(Ir);
var Rt = Ir.exports;
const Et = /* @__PURE__ */ Bt(Rt), H = {
"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"
}, Dt = {
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"
}, V = "purpur-paragraph", kr = ({
["data-testid"]: t,
children: a,
className: n,
disabled: i,
enableHyphenation: o = !1,
negative: r = !1,
variant: e = Dt.PARAGRAPH100,
...u
}) => {
const v = Et([
n,
H[V],
H[`${V}--${e}`],
{
[H[`${V}--hyphens`]]: o,
[H[`${V}--disabled`]]: i,
[H[`${V}--negative`]]: r
}
]);
return /* @__PURE__ */ s("p", { ...u, className: v, "data-testid": t, children: a });
};
kr.displayName = "Paragraph";
const gr = Mr.bind(Cr), q = "purpur-listbox", lr = P(
(t, a) => {
const { disabled: n, highlighted: i, hovered: o, selected: r, children: e, noninteractive: u, ...v } = t, b = gr(`${q}-item`, v.className, {
[`${q}-item--highlighted`]: i,
[`${q}-item--selected`]: r,
[`${q}-item--hovered`]: o,
[`${q}-item--disabled`]: n,
[`${q}-item--noninteractive`]: u
});
return /* @__PURE__ */ O(
"li",
{
...v,
ref: a,
className: b,
"aria-selected": !!r,
role: "option",
"aria-disabled": !!n,
children: [
typeof e == "string" ? /* @__PURE__ */ s(kr, { children: e }) : e,
r && /* @__PURE__ */ s(qr, { size: "xs", className: gr(`${q}-item__icon`) })
]
}
);
}
), Tt = (t) => R(t) && (t == null ? void 0 : t.type) === lr;
lr.displayName = "ListBoxItem";
const Ft = Mr.bind(Cr), Gt = "purpur-listbox", W = P(
({ children: t, ...a }, n) => /* @__PURE__ */ s(
"ul",
{
...a,
ref: n,
className: Ft(Gt, a.className),
role: "listbox",
children: B.toArray(t).filter(Tt)
}
)
);
W.Item = lr;
W.displayName = "ListBox";
const Ht = {
SM: "sm",

@@ -111,6 +378,6 @@ MD: "md",

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

@@ -150,7 +417,7 @@ Copyright (c) 2018 Jed Watson.

})();
})(Lr);
var jt = Lr.exports;
const gr = /* @__PURE__ */ $t(jt), St = "_rotate_1xozj_1", Nt = "_dash_1xozj_1", G = {
})(zr);
var Zt = zr.exports;
const xr = /* @__PURE__ */ Vt(Zt), Kt = "_rotate_1xozj_1", Xt = "_dash_1xozj_1", Z = {
"purpur-spinner": "_purpur-spinner_1xozj_1",
rotate: St,
rotate: Kt,
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",

@@ -162,6 +429,6 @@ "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",

"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
dash: Nt,
dash: Xt,
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
}, V = "purpur-spinner", At = {
}, K = "purpur-spinner", Ut = {
XXS: "xxs",

@@ -172,7 +439,7 @@ XS: "xs",

LG: "lg"
}, Ot = ({
}, Yt = ({
["data-testid"]: t,
disabled: a = !1,
negative: n = !1,
size: i = At.SM,
size: i = Ut.SM,
...o

@@ -182,3 +449,3 @@ }) => /* @__PURE__ */ s(

{
className: gr([G[V], G[`${V}--${i}`]]),
className: xr([Z[K], Z[`${K}--${i}`]]),
"data-testid": t,

@@ -189,5 +456,5 @@ ...o,

{
className: gr(G[`${V}__circle`], {
[G[`${V}__circle--disabled`]]: a,
[G[`${V}__circle--negative`]]: n
className: xr(Z[`${K}__circle`], {
[Z[`${K}__circle--disabled`]]: a,
[Z[`${K}__circle--negative`]]: n
}),

@@ -201,6 +468,6 @@ cx: "25",

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

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

})();
})(Mr);
var Lt = Mr.exports;
const Mt = /* @__PURE__ */ Pt(Lt), Ct = {
})(Br);
var Wt = Br.exports;
const Qt = /* @__PURE__ */ Jt(Wt), re = {
"purpur-button": "_purpur-button_1acxn_1",

@@ -264,3 +531,3 @@ "purpur-button--sm": "_purpur-button--sm_1acxn_33",

"purpur-button--text": "_purpur-button--text_1acxn_175"
}, It = Mt.bind(Ct), z = "purpur-button", zt = ({
}, te = Qt.bind(re), I = "purpur-button", ee = ({
children: t,

@@ -282,13 +549,13 @@ className: a,

return null;
const j = It(
const j = te(
[
z,
`${z}--${u ? `${y}-negative` : y}`,
`${z}--${b}`
I,
`${I}--${u ? `${y}-negative` : y}`,
`${I}--${b}`
],
{
[`${z}--icon-only`]: r,
[`${z}--negative`]: u,
[`${z}--full-width`]: o,
[`${z}--disabled`]: i || e
[`${I}--icon-only`]: r,
[`${I}--negative`]: u,
[`${I}--full-width`]: o,
[`${I}--disabled`]: i || e
},

@@ -310,3 +577,3 @@ a

children: [
e && /* @__PURE__ */ s(Ot, { size: b === wt.LG ? "xs" : "xxs", negative: u, disabled: w }),
e && /* @__PURE__ */ s(Yt, { size: b === Ht.LG ? "xs" : "xxs", negative: u, disabled: w }),
" ",

@@ -317,8 +584,8 @@ t

);
}, Cr = P(zt);
Cr.displayName = "Button";
function Bt(t) {
}, Rr = P(ee);
Rr.displayName = "Button";
function ne(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Ir = { exports: {} };
var Er = { exports: {} };
/*!

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

})();
})(Ir);
var Rt = Ir.exports;
const kt = /* @__PURE__ */ Bt(Rt), qt = {
})(Er);
var ue = Er.exports;
const ae = /* @__PURE__ */ ne(ue), ie = {
"purpur-icon": "_purpur-icon_8u1lq_1",

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

"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
}, Et = {
}, oe = {
name: "error-filled",

@@ -375,3 +642,3 @@ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',

category: "status"
}, Dt = kt.bind(qt), xr = "purpur-icon", Tt = "md", Ft = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Gt = ({ content: t = "", title: a } = {}) => {
}, pe = ae.bind(ie), br = "purpur-icon", se = "md", le = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), ce = ({ content: t = "", title: a } = {}) => {
const n = [

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

], i = a ? `<title>${a}</title>` : "";
return `<svg ${Ft(n)}>${i}${t}</svg>`;
}, Vt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Zt = ({
return `<svg ${le(n)}>${i}${t}</svg>`;
}, de = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), _e = ({
["data-testid"]: t,

@@ -390,9 +657,9 @@ svg: a,

className: i,
size: o = Tt,
size: o = se,
...r
}) => {
const e = Gt({
content: Vt(a.svg),
const e = ce({
content: de(a.svg),
title: n
}), u = Dt(i, xr, `${xr}--${o}`);
}), u = pe(i, br, `${br}--${o}`);
return /* @__PURE__ */ s(

@@ -409,6 +676,6 @@ "span",

};
function Ht(t) {
function fe(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var zr = { exports: {} };
var Dr = { exports: {} };
/*!

@@ -448,8 +715,8 @@ Copyright (c) 2018 Jed Watson.

})();
})(zr);
var Kt = zr.exports;
const Xt = /* @__PURE__ */ Ht(Kt), br = {
})(Dr);
var ve = Dr.exports;
const me = /* @__PURE__ */ fe(ve), hr = {
"purpur-field-error-text": "_purpur-field-error-text_1u768_1",
"purpur-field-error-text__icon": "_purpur-field-error-text__icon_1u768_12"
}, hr = "purpur-field-error-text", Ut = ({
}, yr = "purpur-field-error-text", ge = ({
["data-testid"]: t,

@@ -463,3 +730,3 @@ children: a,

{
className: Xt([n, br[hr]]),
className: me([n, hr[yr]]),
"data-testid": t,

@@ -470,3 +737,3 @@ "aria-live": "assertive",

children: [
/* @__PURE__ */ s(Zt, { svg: Et, size: "xs", className: br[`${hr}__icon`] }),
/* @__PURE__ */ s(_e, { svg: oe, size: "xs", className: hr[`${yr}__icon`] }),
a

@@ -476,6 +743,6 @@ ]

);
function Yt(t) {
function xe(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Br = { exports: {} };
var Tr = { exports: {} };
/*!

@@ -515,8 +782,8 @@ Copyright (c) 2018 Jed Watson.

})();
})(Br);
var Jt = Br.exports;
const Qt = /* @__PURE__ */ Yt(Jt), yr = {
})(Tr);
var be = Tr.exports;
const he = /* @__PURE__ */ xe(be), wr = {
"purpur-field-helper-text": "_purpur-field-helper-text_atw6b_1",
"purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_atw6b_9"
}, wr = "purpur-field-helper-text", Wt = ({
}, $r = "purpur-field-helper-text", ye = ({
["data-testid"]: t,

@@ -529,7 +796,7 @@ children: a,

}) => {
const e = Qt([
const e = he([
n,
yr[wr],
wr[$r],
{
[yr[`${wr}--disabled`]]: i
[wr[`${$r}--disabled`]]: i
}

@@ -539,6 +806,6 @@ ]);

};
function re(t) {
function we(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Rr = { exports: {} };
var Fr = { exports: {} };
/*!

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

})();
})(Rr);
var te = Rr.exports;
const ee = /* @__PURE__ */ re(te), ne = {
})(Fr);
var $e = Fr.exports;
const je = /* @__PURE__ */ we($e), Se = {
"purpur-icon": "_purpur-icon_8u1lq_1",

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

"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
}, ue = {
}, Ne = {
name: "check-circle-filled",

@@ -595,3 +862,3 @@ 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>',

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

@@ -601,19 +868,19 @@ 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"
}, kr = (t) => /* @__PURE__ */ s(
Er,
}, Gr = (t) => /* @__PURE__ */ s(
Vr,
{
...t,
svg: ue
svg: Ne
}
);
kr.displayName = "IconCheckCircleFilled";
const qr = (t) => /* @__PURE__ */ s(
Er,
Gr.displayName = "IconCheckCircleFilled";
const Hr = (t) => /* @__PURE__ */ s(
Vr,
{
...t,
svg: ae
svg: Ae
}
);
qr.displayName = "IconClose";
const ie = ee.bind(ne), $r = "purpur-icon", oe = "md", pe = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), se = ({ content: t = "", title: a } = {}) => {
Hr.displayName = "IconClose";
const Oe = je.bind(Se), jr = "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 } = {}) => {
const n = [

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

], i = a ? `<title>${a}</title>` : "";
return `<svg ${pe(n)}>${i}${t}</svg>`;
}, le = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Er = ({
return `<svg ${Me(n)}>${i}${t}</svg>`;
}, Le = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Vr = ({
["data-testid"]: t,

@@ -632,9 +899,9 @@ svg: a,

className: i,
size: o = oe,
size: o = Pe,
...r
}) => {
const e = se({
content: le(a.svg),
const e = Ce({
content: Le(a.svg),
title: n
}), u = ie(i, $r, `${$r}--${o}`);
}), u = Oe(i, jr, `${jr}--${o}`);
return /* @__PURE__ */ s(

@@ -651,56 +918,45 @@ "span",

};
function or() {
return or = Object.assign ? Object.assign.bind() : function(t) {
function E() {
return E = Object.assign ? Object.assign.bind() : function(t) {
for (var a = 1; a < arguments.length; a++) {
var n = arguments[a];
for (var i in n)
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
for (var i in n) ({}).hasOwnProperty.call(n, i) && (t[i] = n[i]);
}
return t;
}, or.apply(this, arguments);
}, E.apply(null, arguments);
}
function Q() {
return Q = Object.assign ? Object.assign.bind() : function(t) {
for (var a = 1; a < arguments.length; a++) {
var n = arguments[a];
for (var i in n)
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
}
return t;
}, Q.apply(this, arguments);
}
function ce(t, a) {
function qe(t, a) {
typeof t == "function" ? t(a) : t != null && (t.current = a);
}
function de(...t) {
function Ie(...t) {
return (a) => t.forEach(
(n) => ce(n, a)
(n) => qe(n, a)
);
}
const Dr = /* @__PURE__ */ P((t, a) => {
const { children: n, ...i } = t, o = k.toArray(n), r = o.find(fe);
const Zr = /* @__PURE__ */ P((t, a) => {
const { children: n, ...i } = t, o = B.toArray(n), r = o.find(ze);
if (r) {
const e = r.props.children, u = o.map((v) => v === r ? k.count(e) > 1 ? k.only(null) : /* @__PURE__ */ q(e) ? e.props.children : null : v);
return /* @__PURE__ */ J(pr, Q({}, i, {
const e = r.props.children, u = o.map((v) => v === r ? B.count(e) > 1 ? B.only(null) : /* @__PURE__ */ R(e) ? e.props.children : null : v);
return /* @__PURE__ */ Q(pr, E({}, i, {
ref: a
}), /* @__PURE__ */ q(e) ? /* @__PURE__ */ lr(e, void 0, u) : null);
}), /* @__PURE__ */ R(e) ? /* @__PURE__ */ sr(e, void 0, u) : null);
}
return /* @__PURE__ */ J(pr, Q({}, i, {
return /* @__PURE__ */ Q(pr, E({}, i, {
ref: a
}), n);
});
Dr.displayName = "Slot";
Zr.displayName = "Slot";
const pr = /* @__PURE__ */ P((t, a) => {
const { children: n, ...i } = t;
return /* @__PURE__ */ q(n) ? /* @__PURE__ */ lr(n, {
...ve(i, n.props),
ref: a ? de(a, n.ref) : n.ref
}) : k.count(n) > 1 ? k.only(null) : null;
return /* @__PURE__ */ R(n) ? /* @__PURE__ */ sr(n, {
...Be(i, n.props),
ref: a ? Ie(a, n.ref) : n.ref
}) : B.count(n) > 1 ? B.only(null) : null;
});
pr.displayName = "SlotClone";
const _e = ({ children: t }) => /* @__PURE__ */ J(st, null, t);
function fe(t) {
return /* @__PURE__ */ q(t) && t.type === _e;
const ke = ({ children: t }) => /* @__PURE__ */ Q(ct, null, t);
function ze(t) {
return /* @__PURE__ */ R(t) && t.type === ke;
}
function ve(t, a) {
function Be(t, a) {
const n = {

@@ -726,3 +982,3 @@ ...a

}
const me = [
const Re = [
"a",

@@ -744,8 +1000,8 @@ "button",

"ul"
], ge = me.reduce((t, a) => {
], Ee = Re.reduce((t, a) => {
const n = /* @__PURE__ */ P((i, o) => {
const { asChild: r, ...e } = i, u = r ? Dr : a;
const { asChild: r, ...e } = i, u = r ? Zr : a;
return Nr(() => {
window[Symbol.for("radix-ui")] = !0;
}, []), /* @__PURE__ */ J(u, Q({}, e, {
}, []), /* @__PURE__ */ Q(u, E({}, e, {
ref: o

@@ -758,3 +1014,3 @@ }));

};
}, {}), xe = /* @__PURE__ */ P((t, a) => /* @__PURE__ */ J(ge.label, or({}, t, {
}, {}), De = /* @__PURE__ */ P((t, a) => /* @__PURE__ */ Q(Ee.label, E({}, t, {
ref: a,

@@ -765,7 +1021,7 @@ onMouseDown: (n) => {

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

@@ -805,9 +1061,9 @@ Copyright (c) 2018 Jed Watson.

})();
})(Tr);
var ye = Tr.exports;
const we = /* @__PURE__ */ he(ye), ar = {
})(Kr);
var Ge = Kr.exports;
const He = /* @__PURE__ */ Fe(Ge), ir = {
"purpur-label": "_purpur-label_12cfi_1",
"purpur-label--negative": "_purpur-label--negative_12cfi_9",
"purpur-label--disabled": "_purpur-label--disabled_12cfi_12"
}, ir = "purpur-label", $e = ({
}, or = "purpur-label", Ve = ({
children: t,

@@ -821,16 +1077,16 @@ className: a,

}) => {
const u = we([
const u = He([
a,
ar[ir],
ir[or],
{
[ar[`${ir}--disabled`]]: o,
[ar[`${ir}--negative`]]: r
[ir[`${or}--disabled`]]: o,
[ir[`${or}--negative`]]: r
}
]);
return /* @__PURE__ */ s(be, { className: u, "data-testid": i, htmlFor: n, ...e, children: t });
return /* @__PURE__ */ s(Te, { className: u, "data-testid": i, htmlFor: n, ...e, children: t });
};
function je(t) {
function Ze(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Fr = { exports: {} };
var Xr = { exports: {} };
/*!

@@ -870,7 +1126,7 @@ Copyright (c) 2018 Jed Watson.

})();
})(Fr);
var Se = Fr.exports;
const jr = /* @__PURE__ */ je(Se), Ne = "_rotate_1xozj_1", Ae = "_dash_1xozj_1", Z = {
})(Xr);
var Ke = Xr.exports;
const Sr = /* @__PURE__ */ Ze(Ke), Xe = "_rotate_1xozj_1", Ue = "_dash_1xozj_1", X = {
"purpur-spinner": "_purpur-spinner_1xozj_1",
rotate: Ne,
rotate: Xe,
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",

@@ -882,6 +1138,6 @@ "purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",

"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
dash: Ae,
dash: Ue,
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
}, H = "purpur-spinner", Oe = {
}, U = "purpur-spinner", Ye = {
XXS: "xxs",

@@ -892,7 +1148,7 @@ XS: "xs",

LG: "lg"
}, Pe = ({
}, Je = ({
["data-testid"]: t,
disabled: a = !1,
negative: n = !1,
size: i = Oe.SM,
size: i = Ye.SM,
...o

@@ -902,3 +1158,3 @@ }) => /* @__PURE__ */ s(

{
className: jr([Z[H], Z[`${H}--${i}`]]),
className: Sr([X[U], X[`${U}--${i}`]]),
"data-testid": t,

@@ -909,5 +1165,5 @@ ...o,

{
className: jr(Z[`${H}__circle`], {
[Z[`${H}__circle--disabled`]]: a,
[Z[`${H}__circle--negative`]]: n
className: Sr(X[`${U}__circle`], {
[X[`${U}__circle--disabled`]]: a,
[X[`${U}__circle--negative`]]: n
}),

@@ -921,6 +1177,6 @@ cx: "25",

);
function Le(t) {
function We(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Gr = { exports: {} };
var Ur = { exports: {} };
/*!

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

})();
})(Gr);
var Me = Gr.exports;
const Ce = /* @__PURE__ */ Le(Me), Ie = {
})(Ur);
var Qe = Ur.exports;
const rn = /* @__PURE__ */ We(Qe), tn = {
"purpur-text-field": "_purpur-text-field_nj9f4_1",

@@ -980,3 +1236,3 @@ "purpur-text-field__label": "_purpur-text-field__label_nj9f4_7",

"purpur-text-field__valid-icon": "_purpur-text-field__valid-icon_nj9f4_111"
}, ze = (t) => Y(t), A = Ce.bind(Ie), g = "purpur-text-field", Be = ({
}, en = (t) => J(t), A = rn.bind(tn), g = "purpur-text-field", nn = ({
["data-testid"]: t,

@@ -997,10 +1253,10 @@ className: a,

var j;
const C = pt(), w = d.id ?? C, l = (m) => t ? `${t}-${m}` : void 0, c = $ && !r, x = e ? `${w}-helper-text` : void 0, S = [y].filter((m) => !!m), E = (typeof d.value == "number" ? d.value !== void 0 : (j = d.value) == null ? void 0 : j.length) && !d.disabled && !d.readOnly && !v && b && n, D = ze(null), B = (m) => {
D.current = m, typeof _ == "function" ? _(m) : _ && (_.current = m);
}, W = () => {
const C = lt(), w = d.id ?? C, l = (m) => t ? `${t}-${m}` : void 0, c = $ && !r, x = e ? `${w}-helper-text` : void 0, S = [y].filter((m) => !!m), D = (typeof d.value == "number" ? d.value !== void 0 : (j = d.value) == null ? void 0 : j.length) && !d.disabled && !d.readOnly && !v && b && n, T = en(null), k = (m) => {
T.current = m, typeof _ == "function" ? _(m) : _ && (_.current = m);
}, rr = () => {
var m;
b == null || b(), (m = D.current) == null || m.focus();
}, R = [
b == null || b(), (m = T.current) == null || m.focus();
}, z = [
v && /* @__PURE__ */ s(
Pe,
Je,
{

@@ -1013,7 +1269,7 @@ disabled: d.disabled,

),
E && /* @__PURE__ */ s(
Cr,
D && /* @__PURE__ */ s(
Rr,
{
variant: "tertiary-purple",
onClick: W,
onClick: rr,
iconOnly: !0,

@@ -1023,3 +1279,3 @@ "aria-label": n ?? "",

tabIndex: -1,
children: /* @__PURE__ */ s(qr, { size: "xs" })
children: /* @__PURE__ */ s(Hr, { size: "xs" })
},

@@ -1029,3 +1285,3 @@ "clear-button"

c && /* @__PURE__ */ s(
kr,
Gr,
{

@@ -1037,9 +1293,9 @@ "data-testid": l("valid-icon"),

)
].filter((m) => !!m), T = A([
].filter((m) => !!m), F = A([
`${g}__input-container`,
{
[`${g}__input-container--start-adornment`]: S.length,
[`${g}__input-container--end-adornment`]: R.length || o,
[`${g}__input-container--end-adornment`]: z.length || o,
[`${g}__input-container--disabled`]: d.disabled,
[`${g}__input-container--has-clear-button`]: E,
[`${g}__input-container--has-clear-button`]: D,
[`${g}__input-container--readonly`]: d.readOnly && !d.disabled

@@ -1050,3 +1306,3 @@ }

u && /* @__PURE__ */ s(
$e,
Ve,
{

@@ -1061,3 +1317,3 @@ htmlFor: w,

/* @__PURE__ */ O("div", { className: A(`${g}__field-row`), children: [
/* @__PURE__ */ O("div", { className: T, children: [
/* @__PURE__ */ O("div", { className: F, children: [
!!S.length && /* @__PURE__ */ s(

@@ -1076,3 +1332,3 @@ "div",

id: w,
ref: B,
ref: k,
"data-testid": l("input"),

@@ -1091,3 +1347,3 @@ "aria-describedby": d["aria-describedby"] || x,

/* @__PURE__ */ s("div", { className: A(`${g}__frame`) }),
(!!R.length || o) && /* @__PURE__ */ O(
(!!z.length || o) && /* @__PURE__ */ O(
"div",

@@ -1098,3 +1354,3 @@ {

children: [
R,
z,
o

@@ -1107,12 +1363,12 @@ ]

] }),
x && /* @__PURE__ */ s(Wt, { "data-testid": l("helper-text"), id: x, children: e }),
r && /* @__PURE__ */ s(Ut, { "data-testid": l("error-text"), children: r })
x && /* @__PURE__ */ s(ye, { "data-testid": l("helper-text"), id: x, children: e }),
r && /* @__PURE__ */ s(ge, { "data-testid": l("error-text"), children: r })
] });
}, Vr = P(Be);
Vr.displayName = "TextField";
const Re = (t) => q(t) && t.type.displayName === Vr.displayName;
function ke(t) {
}, Yr = P(nn);
Yr.displayName = "TextField";
const un = (t) => R(t) && t.type.displayName === Yr.displayName;
function an(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var Zr = { exports: {} };
var Jr = { exports: {} };
/*!

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

})();
})(Zr);
var qe = Zr.exports;
const Hr = /* @__PURE__ */ ke(qe), Ee = {
})(Jr);
var on = Jr.exports;
const pn = /* @__PURE__ */ an(on), sn = {
"purpur-autocomplete": "_purpur-autocomplete_1u8x6_1",

@@ -1161,102 +1417,4 @@ "purpur-autocomplete__listbox": "_purpur-autocomplete__listbox_1u8x6_4",

"purpur-autocomplete__chevron-icon--up": "_purpur-autocomplete__chevron-icon--up_1u8x6_19"
};
function De(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(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 Te = Kr.exports;
const Fe = /* @__PURE__ */ De(Te), K = {
"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"
}, Ge = {
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"
}, X = "purpur-paragraph", Xr = ({
["data-testid"]: t,
children: a,
className: n,
disabled: i,
enableHyphenation: o = !1,
negative: r = !1,
variant: e = Ge.PARAGRAPH100,
...u
}) => {
const v = Fe([
n,
K[X],
K[`${X}--${e}`],
{
[K[`${X}--hyphens`]]: o,
[K[`${X}--disabled`]]: i,
[K[`${X}--negative`]]: r
}
]);
return /* @__PURE__ */ s("p", { ...u, className: v, "data-testid": t, children: a });
};
Xr.displayName = "Paragraph";
const Ve = {
"purpur-listbox": "_purpur-listbox_qhoi7_1",
"purpur-listbox-item": "_purpur-listbox-item_qhoi7_15",
"purpur-listbox-item--hovered": "_purpur-listbox-item--hovered_qhoi7_29",
"purpur-listbox-item--highlighted": "_purpur-listbox-item--highlighted_qhoi7_37",
"purpur-listbox-item--noninteractive": "_purpur-listbox-item--noninteractive_qhoi7_41",
"purpur-listbox-item--disabled": "_purpur-listbox-item--disabled_qhoi7_44",
"purpur-listbox-item__icon": "_purpur-listbox-item__icon_qhoi7_51"
}, Ze = (t) => Y(t), He = (t, a) => {
const n = lt(
}, ln = (t) => J(t), cn = (t, a) => {
const n = dt(
(i) => {

@@ -1270,3 +1428,3 @@ t && !t.contains(i.target) && a();

}), [n]);
}, Ke = ({
}, dn = ({
combobox: t,

@@ -1288,17 +1446,17 @@ highlightFirstOption: a,

}) => {
const [C, w] = ur(
const [C, w] = ar(
((typeof i == "string" ? i : n) || (_ == null ? void 0 : _.label)) ?? ""
), l = typeof i == "string" ? i : C, [c, x] = ur(a ? d[0] : void 0), S = Y(null), E = Ze(null), D = Y(null), B = Y({}), [W, R] = ur(!1);
function T(p) {
), l = typeof i == "string" ? i : C, [c, x] = ar(a ? d[0] : void 0), S = J(null), D = ln(null), T = J(null), k = J({}), [rr, z] = ar(!1);
function F(p) {
return j ? `${j}-${p}` : void 0;
}
const m = () => {
R(!1), x(void 0);
z(!1), x(void 0);
};
He(E.current, m);
const F = ({ eventType: p }) => {
R(!0), _ && requestAnimationFrame(() => {
x({ ..._, isSetByClickEvent: p === "CLICK" }), er(B.current[_.id]);
cn(D.current, m);
const G = ({ eventType: p }) => {
z(!0), _ && requestAnimationFrame(() => {
x({ ..._, isSetByClickEvent: p === "CLICK" }), nr(k.current[_.id]);
});
}, Yr = (p) => {
}, Wr = (p) => {
if (o)

@@ -1314,29 +1472,29 @@ return d.filter((h) => o(p, h));

);
}, dr = (p) => _ && (_ == null ? void 0 : _.label) === p ? d : Yr(p), L = dr(l), tr = (p) => {
}, cr = (p) => _ && (_ == null ? void 0 : _.label) === p ? d : Wr(p), M = cr(l), er = (p) => {
v == null || v(p), w(p);
}, er = (p) => {
}, nr = (p) => {
var f;
if (p) {
const h = p.getBoundingClientRect(), N = ((f = D.current) == null ? void 0 : f.getBoundingClientRect()) || { top: 0, bottom: 0 };
const h = p.getBoundingClientRect(), N = ((f = T.current) == null ? void 0 : f.getBoundingClientRect()) || { top: 0, bottom: 0 };
(h.top < N.top || h.bottom > N.bottom) && p.scrollIntoView({ block: "nearest" });
}
}, _r = (p) => {
}, dr = (p) => {
var f;
p && ((f = S.current) == null || f.focus(), tr(p.label), $ == null || $(p)), m();
}, Jr = (p) => {
const f = a && !c ? 0 : L.findIndex((N) => N && (c == null ? void 0 : c.id) === N.id), h = L.length;
return p === "ArrowDown" ? L[(f ?? -1) + 1] || L[0] : L[(f ?? h) - 1] || L[h - 1];
}, I = W && (!!L.length || !!y), Qr = (p) => {
!I && F({ eventType: "KEYBOARD" });
const f = Jr(p);
x(f), f && er(B.current[f.id]);
}, Wr = (p) => {
p && ((f = S.current) == null || f.focus(), er(p.label), $ == null || $(p)), m();
}, Qr = (p) => {
const f = a && !c ? 0 : M.findIndex((N) => N && (c == null ? void 0 : c.id) === N.id), h = M.length;
return p === "ArrowDown" ? M[(f ?? -1) + 1] || M[0] : M[(f ?? h) - 1] || M[h - 1];
}, L = rr && (!!M.length || !!y), rt = (p) => {
!L && G({ eventType: "KEYBOARD" });
const f = Qr(p);
x(f), f && nr(k.current[f.id]);
}, tt = (p) => {
switch (p.key) {
case "ArrowUp":
case "ArrowDown":
p.preventDefault(), Qr(p.key);
p.preventDefault(), rt(p.key);
break;
case "Enter": {
const f = c || (a ? d[0] : void 0);
I && _r(f), !I && F({ eventType: "KEYBOARD" });
L && dr(f), !L && G({ eventType: "KEYBOARD" });
break;

@@ -1349,31 +1507,31 @@ }

}
}, rt = (p) => {
const f = dr(p.target.value);
tr(p.target.value), x(void 0), !I && F({ eventType: "KEYBOARD" }), a && f[0] && er(B.current[f[0].id]);
}, tt = () => {
I ? m() : F({ eventType: "CLICK" });
}, et = () => {
}, et = (p) => {
const f = cr(p.target.value);
er(p.target.value), x(void 0), !L && G({ eventType: "KEYBOARD" }), a && f[0] && nr(k.current[f[0].id]);
}, nt = () => {
L ? m() : G({ eventType: "CLICK" });
}, ut = () => {
var p;
!W && b && F({ eventType: "KEYBOARD" }), (p = S.current) == null || p.select();
}, nt = () => {
t && tr((_ == null ? void 0 : _.label) ?? "");
}, ut = {
!rr && b && G({ eventType: "KEYBOARD" }), (p = S.current) == null || p.select();
}, at = () => {
t && er((_ == null ? void 0 : _.label) ?? "");
}, it = {
maxHeight: typeof u == "number" ? `${u}px` : u
}, fr = {
}, _r = {
"aria-label": e,
"aria-expanded": I,
"data-testid": T("listbox"),
"aria-expanded": L,
"data-testid": F("listbox"),
id: `${r}-listbox`,
ref: D,
ref: T,
onMouseLeave: () => x(void 0),
style: u ? ut : void 0
}, vr = (p) => `${r}-listbox-item-${p.id}`, at = (p, f) => {
style: u ? it : void 0
}, fr = (p) => `${r}-listbox-item-${p.id}`, ot = (p, f) => {
const h = () => p.id !== (c == null ? void 0 : c.id) && x({ ...p, isSetByClickEvent: !0 }), N = (p.id === (c == null ? void 0 : c.id) || !!a && !c && f === 0) && !(c != null && c.isSetByClickEvent);
return {
"data-testid": T(`listbox-item-${p.id}`),
id: vr(p),
"data-testid": F(`listbox-item-${p.id}`),
id: fr(p),
key: p.id,
onMouseMove: h,
onMouseUp: () => _r(p),
ref: (nr) => nr && (B.current[p.id] = nr),
onMouseUp: () => dr(p),
ref: (ur) => ur && (k.current[p.id] = ur),
tabIndex: -1,

@@ -1385,14 +1543,14 @@ selected: p.id === (_ == null ? void 0 : _.id),

};
}, it = {
"aria-activedescendant": c ? vr(c) : void 0,
}, pt = {
"aria-activedescendant": c ? fr(c) : void 0,
"aria-autocomplete": "list",
"aria-controls": fr.id,
"data-testid": T("input"),
"aria-controls": _r.id,
"data-testid": F("input"),
autoComplete: "off",
id: `${r}-input`,
onChange: rt,
onMouseDown: tt,
onFocus: et,
onKeyDown: Wr,
onBlur: nt,
onChange: et,
onMouseDown: nt,
onFocus: ut,
onKeyDown: tt,
onBlur: at,
ref: S,

@@ -1404,53 +1562,12 @@ role: "combobox",

id: r,
inputProps: it,
internalRef: E,
optionsToShow: L,
showListbox: I,
inputProps: pt,
internalRef: D,
optionsToShow: M,
showListbox: L,
noOptionsText: y,
combobox: t,
getListBoxItemProps: at,
listboxProps: fr
getListBoxItemProps: ot,
listboxProps: _r
};
}, sr = Hr.bind(Ve), M = "purpur-listbox", Ur = P(
({ children: t, ...a }, n) => /* @__PURE__ */ s(
"ul",
{
...a,
ref: n,
className: sr(M, a.className),
role: "listbox",
children: k.toArray(t).filter(Xe)
}
)
);
Ur.displayName = "ListBox";
const cr = P((t, a) => {
const { disabled: n, highlighted: i, hovered: o, selected: r, children: e, noninteractive: u, ...v } = t, b = sr(`${M}-item`, v.className, {
[`${M}-item--highlighted`]: i,
[`${M}-item--selected`]: r,
[`${M}-item--hovered`]: o,
[`${M}-item--disabled`]: n,
[`${M}-item--noninteractive`]: u
});
return /* @__PURE__ */ O(
"li",
{
...v,
ref: a,
className: b,
"aria-selected": !!r,
role: "option",
"aria-disabled": !!n,
children: [
typeof e == "string" ? /* @__PURE__ */ s(Xr, { children: e }) : e,
r && /* @__PURE__ */ s(Pr, { svg: vt, size: "xs", className: sr(`${M}-item__icon`) })
]
}
);
});
cr.displayName = "ListBoxItem";
function Xe(t) {
return q(t) && (t == null ? void 0 : t.type) === cr;
}
const Ue = Ur, Sr = cr, rr = Hr.bind(Ee), U = "purpur-autocomplete", Ye = ({ className: t, renderInput: a, renderOption: n, ...i }, o) => {
}, tr = pn.bind(sn), Y = "purpur-autocomplete", _n = ({ className: t, renderInput: a, renderOption: n, ...i }, o) => {
const {

@@ -1466,5 +1583,5 @@ id: r,

listboxProps: _
} = Ke(i), j = (l, c) => {
} = dn(i), j = (l, c) => {
const { key: x, ...S } = d(l, c);
return /* @__PURE__ */ s(Sr, { ...S, children: n ? n == null ? void 0 : n(l) : l.label }, x);
return /* @__PURE__ */ s(W.Item, { ...S, children: n ? n == null ? void 0 : n(l) : l.label }, x);
}, C = (l) => {

@@ -1474,4 +1591,4 @@ u.current = l, typeof o == "function" ? o(l) : o && (o.current = l);

const l = a(e);
if ($ && y && l && Re(l)) {
const x = /* @__PURE__ */ O(ot, { children: [
if ($ && y && l && un(l)) {
const x = /* @__PURE__ */ O(st, { children: [
l.props.endAdornment,

@@ -1483,3 +1600,3 @@ /* @__PURE__ */ s(

type: "button",
className: rr(`${U}__chevron-button`),
className: tr(`${Y}__chevron-button`),
onClick: () => {

@@ -1493,4 +1610,4 @@ e.onFocus(), e.onMouseDown();

size: "sm",
className: rr(`${U}__chevron-icon`, {
[`${U}__chevron-icon--up`]: b
className: tr(`${Y}__chevron-icon`, {
[`${Y}__chevron-icon--up`]: b
})

@@ -1502,16 +1619,16 @@ }

] });
return lr(l, { endAdornment: x });
return sr(l, { endAdornment: x });
}
return l;
};
return /* @__PURE__ */ O("div", { id: r, ref: C, className: rr([t, U]), children: [
return /* @__PURE__ */ O("div", { id: r, ref: C, className: tr([t, Y]), children: [
w(),
b && /* @__PURE__ */ s(Ue, { ..._, className: rr(`${U}__listbox`), children: v.length ? v.filter((l) => !!l).map(j) : /* @__PURE__ */ s(Sr, { noninteractive: !0, children: y }) })
b && /* @__PURE__ */ s(W, { ..._, className: tr(`${Y}__listbox`), children: v.length ? v.filter((l) => !!l).map(j) : /* @__PURE__ */ s(W.Item, { noninteractive: !0, children: y }) })
] });
}, Je = P(Ye);
Je.displayName = "Autocomplete";
}, fn = P(_n);
fn.displayName = "Autocomplete";
export {
Je as Autocomplete,
Ke as useAutocomplete
fn as Autocomplete,
dn as useAutocomplete
};
//# sourceMappingURL=autocomplete.es.js.map
Name: @purpurds/icon
Version: 5.13.0
Version: 5.14.0
License: AGPL-3.0-only

@@ -8,4 +8,11 @@ Private: false

Name: @purpurds/listbox
Version: 0.0.1
License: AGPL-3.0-only
Private: false
---
Name: @purpurds/text-field
Version: 5.13.0
Version: 5.14.0
License: AGPL-3.0-only

@@ -46,9 +53,2 @@ Private: false

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---
Name: @purpurds/paragraph
Version: 5.13.0
License: AGPL-3.0-only
Private: false
SOFTWARE.

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

import { ListboxItemProps, ListboxProps } from './listbox';
import { ComponentPropsWithRef, ReactNode } from 'react';
import { ListboxItemProps, ListboxProps } from '@purpurds/listbox';

@@ -4,0 +4,0 @@ export type Option = {

{
"name": "@purpurds/autocomplete",
"version": "5.14.0",
"version": "5.15.0",
"license": "AGPL-3.0-only",

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

"classnames": "~2.5.0",
"@purpurds/icon": "5.14.0",
"@purpurds/text-field": "5.14.0",
"@purpurds/tokens": "5.14.0",
"@purpurds/paragraph": "5.14.0"
"@purpurds/icon": "5.15.0",
"@purpurds/listbox": "5.15.0",
"@purpurds/paragraph": "5.15.0",
"@purpurds/text-field": "5.15.0",
"@purpurds/tokens": "5.15.0"
},

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

"vitest": "~1.5.0",
"@purpurds/button": "5.14.0",
"@purpurds/icon": "5.14.0",
"@purpurds/search-field": "5.14.0",
"@purpurds/component-rig": "1.0.0"
"@purpurds/button": "5.15.0",
"@purpurds/component-rig": "1.0.0",
"@purpurds/icon": "5.15.0",
"@purpurds/search-field": "5.15.0"
},

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

import type { ComponentPropsWithRef, CSSProperties, ReactNode } from "react";
import { useRef, useState } from "react";
import type { ListboxItemProps, ListboxProps } from "@purpurds/listbox";
import type { ListboxItemProps, ListboxProps } from "./listbox";
import { useMutableRefObject, useOnClickOutside } from "./utils";

@@ -6,0 +6,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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