@purpurds/text-area 8.1.1 → 8.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/LICENSE.txt CHANGED
@@ -1,26 +1,26 @@
1
1
  Name: @purpurds/field-error-text
2
- Version: 8.1.0
2
+ Version: 8.1.2
3
3
  License: AGPL-3.0-only
4
4
  Private: false
5
5
 
6
6
  ---
7
7
 
8
8
  Name: @purpurds/field-helper-text
9
- Version: 8.1.0
9
+ Version: 8.1.2
10
10
  License: AGPL-3.0-only
11
11
  Private: false
12
12
 
13
13
  ---
14
14
 
15
15
  Name: @purpurds/label
16
- Version: 8.1.0
16
+ Version: 8.1.2
17
17
  License: AGPL-3.0-only
18
18
  Private: false
19
19
 
20
20
  ---
21
21
 
22
22
  Name: @purpurds/theme
23
- Version: 8.1.0
23
+ Version: 8.1.2
24
24
  License: AGPL-3.0-only
25
25
  Private: false
26
26
 
@@ -10,13 +10,13 @@
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
- */var P;function oe(){return P||(P=1,function(r){(function(){var a={}.hasOwnProperty;function t(){for(var e="",n=0;n<arguments.length;n++){var o=arguments[n];o&&(e=u(e,i.call(this,o)))}return e}function i(e){if(typeof e=="string"||typeof e=="number")return this&&this[e]||e;if(typeof e!="object")return"";if(Array.isArray(e))return t.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)a.call(e,o)&&e[o]&&(n=u(n,this&&this[o]||o));return n}function u(e,n){return n?e?e+" "+n:e+n:e}r.exports?(t.default=t,r.exports=t):window.classNames=t})()}(N)),N.exports}var le=oe();const se=ue(le),ce={"purpur-field-helper-text":"_purpur-field-helper-text_11nsh_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_11nsh_9","purpur-field-helper-text--negative":"_purpur-field-helper-text--negative_11nsh_12"},pe=se.bind(ce),h="purpur-field-helper-text",de=({children:r,className:a,disabled:t,id:i,negative:u,...e})=>{const n=pe(a,h,{[`${h}--disabled`]:t,[`${h}--negative`]:u});return l.jsx("span",{id:i,className:n,...e,children:r})};function A(r,a){if(typeof r=="function")return r(a);r!=null&&(r.current=a)}function fe(...r){return a=>{let t=!1;const i=r.map(u=>{const e=A(u,a);return!t&&typeof e=="function"&&(t=!0),e});if(t)return()=>{for(let u=0;u<i.length;u++){const e=i[u];typeof e=="function"?e():A(r[u],null)}}}}var D=s.forwardRef((r,a)=>{const{children:t,...i}=r,u=s.Children.toArray(t),e=u.find(xe);if(e){const n=e.props.children,o=u.map(c=>c===e?s.Children.count(n)>1?s.Children.only(null):s.isValidElement(n)?n.props.children:null:c);return l.jsx(y,{...i,ref:a,children:s.isValidElement(n)?s.cloneElement(n,void 0,o):null})}return l.jsx(y,{...i,ref:a,children:t})});D.displayName="Slot";var y=s.forwardRef((r,a)=>{const{children:t,...i}=r;if(s.isValidElement(t)){const u=ve(t),e=he(i,t.props);return t.type!==s.Fragment&&(e.ref=a?fe(a,u):u),s.cloneElement(t,e)}return s.Children.count(t)>1?s.Children.only(null):null});y.displayName="SlotClone";var _e=({children:r})=>l.jsx(l.Fragment,{children:r});function xe(r){return s.isValidElement(r)&&r.type===_e}function he(r,a){const t={...a};for(const i in a){const u=r[i],e=a[i];/^on[A-Z]/.test(i)?u&&e?t[i]=(...n)=>{e(...n),u(...n)}:u&&(t[i]=u):i==="style"?t[i]={...u,...e}:i==="className"&&(t[i]=[u,e].filter(Boolean).join(" "))}return{...r,...t}}function ve(r){var a,t;let i=(a=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:a.get,u=i&&"isReactWarning"in i&&i.isReactWarning;return u?r.ref:(i=(t=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:t.get,u=i&&"isReactWarning"in i&&i.isReactWarning,u?r.props.ref:r.props.ref||r.ref)}var me=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ge=me.reduce((r,a)=>{const t=s.forwardRef((i,u)=>{const{asChild:e,...n}=i,o=e?D:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(o,{...n,ref:u})});return t.displayName=`Primitive.${a}`,{...r,[a]:t}},{}),ye="Label",B=s.forwardRef((r,a)=>l.jsx(ge.label,{...r,ref:a,onMouseDown:t=>{var i;t.target.closest("button, input, select, textarea")||((i=r.onMouseDown)==null||i.call(r,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));B.displayName=ye;var be=B;function $e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var C={exports:{}};/*!
13
+ */var C;function oe(){return C||(C=1,function(r){(function(){var a={}.hasOwnProperty;function t(){for(var e="",n=0;n<arguments.length;n++){var o=arguments[n];o&&(e=u(e,i.call(this,o)))}return e}function i(e){if(typeof e=="string"||typeof e=="number")return this&&this[e]||e;if(typeof e!="object")return"";if(Array.isArray(e))return t.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)a.call(e,o)&&e[o]&&(n=u(n,this&&this[o]||o));return n}function u(e,n){return n?e?e+" "+n:e+n:e}r.exports?(t.default=t,r.exports=t):window.classNames=t})()}(N)),N.exports}var le=oe();const se=ue(le),ce={"purpur-field-helper-text":"_purpur-field-helper-text_11nsh_1","purpur-field-helper-text--disabled":"_purpur-field-helper-text--disabled_11nsh_9","purpur-field-helper-text--negative":"_purpur-field-helper-text--negative_11nsh_12"},pe=se.bind(ce),h="purpur-field-helper-text",de=({children:r,className:a,disabled:t,id:i,negative:u,...e})=>{const n=pe(a,h,{[`${h}--disabled`]:t,[`${h}--negative`]:u});return l.jsx("span",{id:i,className:n,...e,children:r})};function P(r,a){if(typeof r=="function")return r(a);r!=null&&(r.current=a)}function fe(...r){return a=>{let t=!1;const i=r.map(u=>{const e=P(u,a);return!t&&typeof e=="function"&&(t=!0),e});if(t)return()=>{for(let u=0;u<i.length;u++){const e=i[u];typeof e=="function"?e():P(r[u],null)}}}}var D=s.forwardRef((r,a)=>{const{children:t,...i}=r,u=s.Children.toArray(t),e=u.find(xe);if(e){const n=e.props.children,o=u.map(c=>c===e?s.Children.count(n)>1?s.Children.only(null):s.isValidElement(n)?n.props.children:null:c);return l.jsx(y,{...i,ref:a,children:s.isValidElement(n)?s.cloneElement(n,void 0,o):null})}return l.jsx(y,{...i,ref:a,children:t})});D.displayName="Slot";var y=s.forwardRef((r,a)=>{const{children:t,...i}=r;if(s.isValidElement(t)){const u=ve(t),e=he(i,t.props);return t.type!==s.Fragment&&(e.ref=a?fe(a,u):u),s.cloneElement(t,e)}return s.Children.count(t)>1?s.Children.only(null):null});y.displayName="SlotClone";var _e=({children:r})=>l.jsx(l.Fragment,{children:r});function xe(r){return s.isValidElement(r)&&r.type===_e}function he(r,a){const t={...a};for(const i in a){const u=r[i],e=a[i];/^on[A-Z]/.test(i)?u&&e?t[i]=(...n)=>{e(...n),u(...n)}:u&&(t[i]=u):i==="style"?t[i]={...u,...e}:i==="className"&&(t[i]=[u,e].filter(Boolean).join(" "))}return{...r,...t}}function ve(r){var a,t;let i=(a=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:a.get,u=i&&"isReactWarning"in i&&i.isReactWarning;return u?r.ref:(i=(t=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:t.get,u=i&&"isReactWarning"in i&&i.isReactWarning,u?r.props.ref:r.props.ref||r.ref)}var me=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ge=me.reduce((r,a)=>{const t=s.forwardRef((i,u)=>{const{asChild:e,...n}=i,o=e?D:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(o,{...n,ref:u})});return t.displayName=`Primitive.${a}`,{...r,[a]:t}},{}),ye="Label",B=s.forwardRef((r,a)=>l.jsx(ge.label,{...r,ref:a,onMouseDown:t=>{var i;t.target.closest("button, input, select, textarea")||((i=r.onMouseDown)==null||i.call(r,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));B.displayName=ye;var be=B;function $e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var A={exports:{}};/*!
14
14
  Copyright (c) 2018 Jed Watson.
15
15
  Licensed under the MIT License (MIT), see
16
16
  http://jedwatson.github.io/classnames
17
- */var M;function we(){return M||(M=1,function(r){(function(){var a={}.hasOwnProperty;function t(){for(var e="",n=0;n<arguments.length;n++){var o=arguments[n];o&&(e=u(e,i.call(this,o)))}return e}function i(e){if(typeof e=="string"||typeof e=="number")return this&&this[e]||e;if(typeof e!="object")return"";if(Array.isArray(e))return t.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)a.call(e,o)&&e[o]&&(n=u(n,this&&this[o]||o));return n}function u(e,n){return n?e?e+" "+n:e+n:e}r.exports?(t.default=t,r.exports=t):window.classNames=t})()}(C)),C.exports}var je=we();const Se=$e(je),qe={"purpur-label":"_purpur-label_1x80u_1","purpur-label--negative":"_purpur-label--negative_1x80u_8","purpur-label--disabled":"_purpur-label--disabled_1x80u_11"},Oe=Se.bind(qe),v="purpur-label",Ne=({children:r,className:a,disabled:t,negative:i=!1,...u})=>{const e=Oe(a,v,{[`${v}--disabled`]:t,[`${v}--negative`]:i});return l.jsx(be,{className:e,...u,children:r})},Pe=f.createContext({colorScheme:"light",setColorScheme:()=>{},options:{}}),Ae=()=>{const r=f.useContext(Pe);if(!r)throw new Error("useTheme must be used within a ThemeProvider");return r},Ce=()=>{const{colorScheme:r,setColorScheme:a}=Ae();return[r,a]};function Me(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var m={exports:{}};/*!
17
+ */var M;function we(){return M||(M=1,function(r){(function(){var a={}.hasOwnProperty;function t(){for(var e="",n=0;n<arguments.length;n++){var o=arguments[n];o&&(e=u(e,i.call(this,o)))}return e}function i(e){if(typeof e=="string"||typeof e=="number")return this&&this[e]||e;if(typeof e!="object")return"";if(Array.isArray(e))return t.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)a.call(e,o)&&e[o]&&(n=u(n,this&&this[o]||o));return n}function u(e,n){return n?e?e+" "+n:e+n:e}r.exports?(t.default=t,r.exports=t):window.classNames=t})()}(A)),A.exports}var je=we();const Se=$e(je),qe={"purpur-label":"_purpur-label_1x80u_1","purpur-label--negative":"_purpur-label--negative_1x80u_8","purpur-label--disabled":"_purpur-label--disabled_1x80u_11"},Oe=Se.bind(qe),v="purpur-label",Ne=({children:r,className:a,disabled:t,negative:i=!1,...u})=>{const e=Oe(a,v,{[`${v}--disabled`]:t,[`${v}--negative`]:i});return l.jsx(be,{className:e,...u,children:r})},Ce=f.createContext({colorScheme:"light",currentColorScheme:"light",setColorScheme:()=>{},options:{}}),Pe=()=>{const r=f.useContext(Ce);if(!r)throw new Error("useTheme must be used within a ThemeProvider");return r},Ae=()=>{const{currentColorScheme:r,setColorScheme:a}=Pe();return[r,a]};function Me(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var m={exports:{}};/*!
18
18
  Copyright (c) 2018 Jed Watson.
19
19
  Licensed under the MIT License (MIT), see
20
20
  http://jedwatson.github.io/classnames
21
- */var R;function Re(){return R||(R=1,function(r){(function(){var a={}.hasOwnProperty;function t(){for(var e="",n=0;n<arguments.length;n++){var o=arguments[n];o&&(e=u(e,i.call(this,o)))}return e}function i(e){if(typeof e=="string"||typeof e=="number")return this&&this[e]||e;if(typeof e!="object")return"";if(Array.isArray(e))return t.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)a.call(e,o)&&e[o]&&(n=u(n,this&&this[o]||o));return n}function u(e,n){return n?e?e+" "+n:e+n:e}r.exports?(t.default=t,r.exports=t):window.classNames=t})()}(m)),m.exports}var Ee=Re();const De=Me(Ee),b={"purpur-text-area":"_purpur-text-area_1qqf0_1","purpur-text-area__label":"_purpur-text-area__label_1qqf0_8","purpur-text-area__label-text":"_purpur-text-area__label-text_1qqf0_13","purpur-text-area__frame":"_purpur-text-area__frame_1qqf0_16","purpur-text-area__textarea-container":"_purpur-text-area__textarea-container_1qqf0_23","purpur-text-area__textarea-container--disabled":"_purpur-text-area__textarea-container--disabled_1qqf0_33","purpur-text-area__textarea-container--readonly":"_purpur-text-area__textarea-container--readonly_1qqf0_36","purpur-text-area__textarea":"_purpur-text-area__textarea_1qqf0_23","purpur-text-area__textarea--light":"_purpur-text-area__textarea--light_1qqf0_52","purpur-text-area__textarea--dark":"_purpur-text-area__textarea--dark_1qqf0_60","purpur-text-area__textarea--valid":"_purpur-text-area__textarea--valid_1qqf0_91","purpur-text-area__textarea--error":"_purpur-text-area__textarea--error_1qqf0_91"},g=De.bind(b),p="purpur-text-area",T=f.forwardRef(({id:r,["data-testid"]:a,className:t,errorText:i,helperText:u,label:e,rows:n=3,cols:o=90,...c},V)=>{const[Z]=Ce(),d=W=>a?`${a}-${W}`:void 0,_=u?`${r}-helper-text`:void 0,F=g(`${p}__textarea-container`,{[`${p}__textarea-container--disabled`]:c.disabled,[`${p}__textarea-container--readonly`]:c.readOnly&&!c.disabled});return l.jsxs("div",{className:g(t,p),"data-testid":a,children:[e&&l.jsxs(Ne,{htmlFor:r,disabled:c.disabled,className:b[`${p}__label`],"data-testid":d("label"),children:[c.required&&l.jsx("span",{"aria-hidden":!0,children:"*"}),e]}),l.jsxs("div",{className:F,children:[l.jsx("textarea",{...c,ref:V,id:r,"data-testid":d("textarea"),"aria-describedby":c["aria-describedby"]||_,"aria-invalid":c["aria-invalid"]||!!i,className:g(`${p}__textarea`,`${p}__textarea--${Z}`,{[`${p}__textarea--error`]:!!i}),rows:n,cols:o}),l.jsx("div",{className:b[`${p}__frame`]})]}),_&&l.jsx(de,{"data-testid":d("helper-text"),id:_,children:u}),i&&l.jsx(ie,{"data-testid":d("error-text"),children:i})]})});T.displayName="TextArea";exports.TextArea=T;
21
+ */var R;function Re(){return R||(R=1,function(r){(function(){var a={}.hasOwnProperty;function t(){for(var e="",n=0;n<arguments.length;n++){var o=arguments[n];o&&(e=u(e,i.call(this,o)))}return e}function i(e){if(typeof e=="string"||typeof e=="number")return this&&this[e]||e;if(typeof e!="object")return"";if(Array.isArray(e))return t.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var o in e)a.call(e,o)&&e[o]&&(n=u(n,this&&this[o]||o));return n}function u(e,n){return n?e?e+" "+n:e+n:e}r.exports?(t.default=t,r.exports=t):window.classNames=t})()}(m)),m.exports}var Ee=Re();const De=Me(Ee),b={"purpur-text-area":"_purpur-text-area_1qqf0_1","purpur-text-area__label":"_purpur-text-area__label_1qqf0_8","purpur-text-area__label-text":"_purpur-text-area__label-text_1qqf0_13","purpur-text-area__frame":"_purpur-text-area__frame_1qqf0_16","purpur-text-area__textarea-container":"_purpur-text-area__textarea-container_1qqf0_23","purpur-text-area__textarea-container--disabled":"_purpur-text-area__textarea-container--disabled_1qqf0_33","purpur-text-area__textarea-container--readonly":"_purpur-text-area__textarea-container--readonly_1qqf0_36","purpur-text-area__textarea":"_purpur-text-area__textarea_1qqf0_23","purpur-text-area__textarea--light":"_purpur-text-area__textarea--light_1qqf0_52","purpur-text-area__textarea--dark":"_purpur-text-area__textarea--dark_1qqf0_60","purpur-text-area__textarea--valid":"_purpur-text-area__textarea--valid_1qqf0_91","purpur-text-area__textarea--error":"_purpur-text-area__textarea--error_1qqf0_91"},g=De.bind(b),p="purpur-text-area",V=f.forwardRef(({id:r,["data-testid"]:a,className:t,errorText:i,helperText:u,label:e,rows:n=3,cols:o=90,...c},T)=>{const[Z]=Ae(),d=W=>a?`${a}-${W}`:void 0,_=u?`${r}-helper-text`:void 0,F=g(`${p}__textarea-container`,{[`${p}__textarea-container--disabled`]:c.disabled,[`${p}__textarea-container--readonly`]:c.readOnly&&!c.disabled});return l.jsxs("div",{className:g(t,p),"data-testid":a,children:[e&&l.jsxs(Ne,{htmlFor:r,disabled:c.disabled,className:b[`${p}__label`],"data-testid":d("label"),children:[c.required&&l.jsx("span",{"aria-hidden":!0,children:"*"}),e]}),l.jsxs("div",{className:F,children:[l.jsx("textarea",{...c,ref:T,id:r,"data-testid":d("textarea"),"aria-describedby":c["aria-describedby"]||_,"aria-invalid":c["aria-invalid"]||!!i,className:g(`${p}__textarea`,`${p}__textarea--${Z}`,{[`${p}__textarea--error`]:!!i}),rows:n,cols:o}),l.jsx("div",{className:b[`${p}__frame`]})]}),_&&l.jsx(de,{"data-testid":d("helper-text"),id:_,children:u}),i&&l.jsx(ie,{"data-testid":d("error-text"),children:i})]})});V.displayName="TextArea";exports.TextArea=V;
22
22
  //# sourceMappingURL=text-area.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.cjs.js","sources":["../../field-error-text/dist/field-error-text.es.js","../../field-helper-text/dist/field-helper-text.es.js","../../label/dist/label.es.js","../../../libraries/theme/dist/theme.es.js","../../../common/temp/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/bind.js","../src/text-area.tsx"],"sourcesContent":["import { jsx as _, jsxs as x } from \"react/jsx-runtime\";\nfunction g(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar p = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar c;\nfunction h() {\n return c || (c = 1, function(e) {\n (function() {\n var i = {}.hasOwnProperty;\n function n() {\n for (var r = \"\", t = 0; t < arguments.length; t++) {\n var o = arguments[t];\n o && (r = s(r, u.call(this, o)));\n }\n return r;\n }\n function u(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return n.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var t = \"\";\n for (var o in r)\n i.call(r, o) && r[o] && (t = s(t, this && this[o] || o));\n return t;\n }\n function s(r, t) {\n return t ? r ? r + \" \" + t : r + t : r;\n }\n e.exports ? (n.default = n, e.exports = n) : window.classNames = n;\n })();\n }(p)), p.exports;\n}\nvar y = h();\nconst w = /* @__PURE__ */ g(y), b = {\n \"purpur-icon\": \"_purpur-icon_8u1lq_1\",\n \"purpur-icon--xxs\": \"_purpur-icon--xxs_8u1lq_4\",\n \"purpur-icon--xs\": \"_purpur-icon--xs_8u1lq_8\",\n \"purpur-icon--sm\": \"_purpur-icon--sm_8u1lq_12\",\n \"purpur-icon--md\": \"_purpur-icon--md_8u1lq_16\",\n \"purpur-icon--lg\": \"_purpur-icon--lg_8u1lq_20\",\n \"purpur-icon--xl\": \"_purpur-icon--xl_8u1lq_24\"\n}, S = w.bind(b), f = \"purpur-icon\", j = \"md\", $ = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}=\"${i.value}\"`).join(\" \"), O = ({ content: e = \"\", title: i } = {}) => {\n const n = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"currentColor\" },\n { name: \"viewBox\", value: \"0 0 24 24\" },\n i ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], u = i ? `<title>${i}</title>` : \"\";\n return `<svg ${$(n)}>${u}${e}</svg>`;\n}, q = (e) => e.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), m = ({ svg: e, allyTitle: i, className: n, size: u = j, ...s }) => {\n const r = O({\n content: q(e.svg),\n title: i\n }), t = S(n, f, `${f}--${u}`);\n return /* @__PURE__ */ _(\"span\", { className: t, dangerouslySetInnerHTML: { __html: r }, ...s });\n};\nm.displayName = \"Icon\";\nconst N = {\n name: \"error-filled\",\n 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>',\n keywords: [\"error-filled\"],\n category: \"status\"\n};\nfunction A(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar l = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar d;\nfunction B() {\n return d || (d = 1, function(e) {\n (function() {\n var i = {}.hasOwnProperty;\n function n() {\n for (var r = \"\", t = 0; t < arguments.length; t++) {\n var o = arguments[t];\n o && (r = s(r, u.call(this, o)));\n }\n return r;\n }\n function u(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return n.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var t = \"\";\n for (var o in r)\n i.call(r, o) && r[o] && (t = s(t, this && this[o] || o));\n return t;\n }\n function s(r, t) {\n return t ? r ? r + \" \" + t : r + t : r;\n }\n e.exports ? (n.default = n, e.exports = n) : window.classNames = n;\n })();\n }(l)), l.exports;\n}\nvar M = B();\nconst P = /* @__PURE__ */ A(M), C = {\n \"purpur-field-error-text\": \"_purpur-field-error-text_u1cy2_1\",\n \"purpur-field-error-text--negative\": \"_purpur-field-error-text--negative_u1cy2_11\",\n \"purpur-field-error-text__icon\": \"_purpur-field-error-text__icon_u1cy2_14\"\n}, v = P.bind(C), T = [\n \"additions text\",\n \"additions\",\n \"removals\",\n \"text\",\n \"all\"\n], a = \"purpur-field-error-text\", Z = ({\n children: e,\n className: i,\n negative: n = !1,\n [\"aria-relevant\"]: u = \"additions text\",\n ...s\n}) => /* @__PURE__ */ x(\n \"div\",\n {\n className: v(i, a, {\n [`${a}--negative`]: n\n }),\n \"aria-live\": \"assertive\",\n \"aria-relevant\": u,\n ...s,\n children: [\n /* @__PURE__ */ _(m, { svg: N, size: \"xs\", className: v(`${a}__icon`) }),\n e\n ]\n }\n);\nexport {\n Z as FieldErrorText,\n T as ariaRelevantValues\n};\n//# sourceMappingURL=field-error-text.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nfunction c(r) {\n return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n}\nvar u = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar f;\nfunction d() {\n return f || (f = 1, function(r) {\n (function() {\n var p = {}.hasOwnProperty;\n function n() {\n for (var t = \"\", e = 0; e < arguments.length; e++) {\n var s = arguments[e];\n s && (t = i(t, o.call(this, s)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return n.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var e = \"\";\n for (var s in t)\n p.call(t, s) && t[s] && (e = i(e, this && this[s] || s));\n return e;\n }\n function i(t, e) {\n return e ? t ? t + \" \" + e : t + e : t;\n }\n r.exports ? (n.default = n, r.exports = n) : window.classNames = n;\n })();\n }(u)), u.exports;\n}\nvar h = d();\nconst x = /* @__PURE__ */ c(h), _ = {\n \"purpur-field-helper-text\": \"_purpur-field-helper-text_11nsh_1\",\n \"purpur-field-helper-text--disabled\": \"_purpur-field-helper-text--disabled_11nsh_9\",\n \"purpur-field-helper-text--negative\": \"_purpur-field-helper-text--negative_11nsh_12\"\n}, b = x.bind(_), l = \"purpur-field-helper-text\", m = ({\n children: r,\n className: p,\n disabled: n,\n id: o,\n negative: i,\n ...t\n}) => {\n const e = b(p, l, {\n [`${l}--disabled`]: n,\n [`${l}--negative`]: i\n });\n return /* @__PURE__ */ a(\"span\", { id: o, className: e, ...t, children: r });\n};\nexport {\n m as FieldHelperText\n};\n//# sourceMappingURL=field-helper-text.es.js.map\n","import { jsx as u, Fragment as v } from \"react/jsx-runtime\";\nimport * as s from \"react\";\nimport \"react-dom\";\nfunction m(e, n) {\n if (typeof e == \"function\")\n return e(n);\n e != null && (e.current = n);\n}\nfunction g(...e) {\n return (n) => {\n let r = !1;\n const o = e.map((i) => {\n const t = m(i, n);\n return !r && typeof t == \"function\" && (r = !0), t;\n });\n if (r)\n return () => {\n for (let i = 0; i < o.length; i++) {\n const t = o[i];\n typeof t == \"function\" ? t() : m(e[i], null);\n }\n };\n };\n}\nvar y = s.forwardRef((e, n) => {\n const { children: r, ...o } = e, i = s.Children.toArray(r), t = i.find(N);\n if (t) {\n const l = t.props.children, a = i.map((d) => d === t ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : d);\n return /* @__PURE__ */ u(p, { ...o, ref: n, children: s.isValidElement(l) ? s.cloneElement(l, void 0, a) : null });\n }\n return /* @__PURE__ */ u(p, { ...o, ref: n, children: r });\n});\ny.displayName = \"Slot\";\nvar p = s.forwardRef((e, n) => {\n const { children: r, ...o } = e;\n if (s.isValidElement(r)) {\n const i = S(r), t = R(o, r.props);\n return r.type !== s.Fragment && (t.ref = n ? g(n, i) : i), s.cloneElement(r, t);\n }\n return s.Children.count(r) > 1 ? s.Children.only(null) : null;\n});\np.displayName = \"SlotClone\";\nvar w = ({ children: e }) => /* @__PURE__ */ u(v, { children: e });\nfunction N(e) {\n return s.isValidElement(e) && e.type === w;\n}\nfunction R(e, n) {\n const r = { ...n };\n for (const o in n) {\n const i = e[o], t = n[o];\n /^on[A-Z]/.test(o) ? i && t ? r[o] = (...a) => {\n t(...a), i(...a);\n } : i && (r[o] = i) : o === \"style\" ? r[o] = { ...i, ...t } : o === \"className\" && (r[o] = [i, t].filter(Boolean).join(\" \"));\n }\n return { ...e, ...r };\n}\nfunction S(e) {\n var o, i;\n let n = (o = Object.getOwnPropertyDescriptor(e.props, \"ref\")) == null ? void 0 : o.get, r = n && \"isReactWarning\" in n && n.isReactWarning;\n return r ? e.ref : (n = (i = Object.getOwnPropertyDescriptor(e, \"ref\")) == null ? void 0 : i.get, r = n && \"isReactWarning\" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);\n}\nvar C = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n], E = C.reduce((e, n) => {\n const r = s.forwardRef((o, i) => {\n const { asChild: t, ...l } = o, a = t ? y : n;\n return typeof window < \"u\" && (window[Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ u(a, { ...l, ref: i });\n });\n return r.displayName = `Primitive.${n}`, { ...e, [n]: r };\n}, {}), x = \"Label\", h = s.forwardRef((e, n) => /* @__PURE__ */ u(\n E.label,\n {\n ...e,\n ref: n,\n onMouseDown: (r) => {\n var i;\n r.target.closest(\"button, input, select, textarea\") || ((i = e.onMouseDown) == null || i.call(e, r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());\n }\n }\n));\nh.displayName = x;\nvar P = h;\nfunction _(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar f = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar b;\nfunction O() {\n return b || (b = 1, function(e) {\n (function() {\n var n = {}.hasOwnProperty;\n function r() {\n for (var t = \"\", l = 0; l < arguments.length; l++) {\n var a = arguments[l];\n a && (t = i(t, o.call(this, a)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return r.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var l = \"\";\n for (var a in t)\n n.call(t, a) && t[a] && (l = i(l, this && this[a] || a));\n return l;\n }\n function i(t, l) {\n return l ? t ? t + \" \" + l : t + l : t;\n }\n e.exports ? (r.default = r, e.exports = r) : window.classNames = r;\n })();\n }(f)), f.exports;\n}\nvar j = O();\nconst D = /* @__PURE__ */ _(j), V = {\n \"purpur-label\": \"_purpur-label_1x80u_1\",\n \"purpur-label--negative\": \"_purpur-label--negative_1x80u_8\",\n \"purpur-label--disabled\": \"_purpur-label--disabled_1x80u_11\"\n}, A = D.bind(V), c = \"purpur-label\", $ = ({\n children: e,\n className: n,\n disabled: r,\n negative: o = !1,\n ...i\n}) => {\n const t = A(n, c, {\n [`${c}--disabled`]: r,\n [`${c}--negative`]: o\n });\n return /* @__PURE__ */ u(P, { className: t, ...i, children: e });\n};\nexport {\n $ as Label\n};\n//# sourceMappingURL=label.es.js.map\n","import { jsx as g } from \"react/jsx-runtime\";\nimport { useEffect as v, createContext as m, useState as d, useContext as C } from \"react\";\nconst N = {\n colorBrandDeepPurple: \"var(--purpur-color-purple-100)\",\n colorBrandCorePurple: \"var(--purpur-color-purple-400)\",\n colorBrandLightPurple: \"var(--purpur-color-purple-900)\",\n colorBrandDeepBeige: \"var(--purpur-color-beige-100)\",\n colorBrandBeige: \"var(--purpur-color-beige-700)\",\n colorBrandLightBeige: \"var(--purpur-color-beige-800)\",\n colorBrandOffBlack: \"var(--purpur-color-functional-white)\",\n colorBrandWhite: \"var(--purpur-color-gray-900)\",\n colorTextDefault: \"var(--purpur-color-transparent-white-950)\",\n colorTextMedium: \"var(--purpur-color-transparent-white-700)\",\n colorTextWeak: \"var(--purpur-color-transparent-white-400)\",\n colorTextDefaultNegative: \"var(--purpur-color-transparent-black-800)\",\n colorTextMediumNegative: \"var(--purpur-color-transparent-black-500)\",\n colorTextWeakNegative: \"var(--purpur-color-transparent-black-400)\",\n colorTextInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorTextInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorTextInteractivePrimaryActive: \"var(--purpur-color-purple-300)\",\n colorTextInteractiveOnPrimary: \"var(--purpur-color-purple-800)\",\n colorTextInteractiveOnExpressive: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveHover: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnExpressiveActive: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnDestructive: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveSelected: \"var(--purpur-color-purple-300)\",\n colorTextInteractivePrimaryNegative: \"var(--purpur-color-purple-700)\",\n colorTextInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-800)\",\n colorTextInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnPrimaryNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveHoverNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveActiveNegative: \"var(--purpur-color-functional-white)\",\n colorTextStatusInfoMedium: \"var(--purpur-color-blue-400)\",\n colorTextStatusInfoStrong: \"var(--purpur-color-blue-200)\",\n colorTextStatusSuccessMedium: \"var(--purpur-color-green-400)\",\n colorTextStatusSuccessStrong: \"var(--purpur-color-green-200)\",\n colorTextStatusWarningMedium: \"var(--purpur-color-orange-300)\",\n colorTextStatusWarningStrong: \"var(--purpur-color-orange-200)\",\n colorTextStatusErrorMedium: \"var(--purpur-color-red-400)\",\n colorTextStatusErrorStrong: \"var(--purpur-color-red-200)\",\n colorTextStatusNeutral: \"var(--purpur-color-functional-white)\",\n colorTextStatusSpecial: \"var(--purpur-color-functional-white)\",\n colorTextStatusAttention: \"var(--purpur-color-purple-800)\",\n colorTextStatusDiscount: \"var(--purpur-color-purple-300)\",\n colorTextStatusBlackFriday: \"var(--purpur-color-gray-900)\",\n colorTextStatusSuccessStrongNegative: \"var(--purpur-color-green-700)\",\n colorTextStatusErrorMediumNegative: \"var(--purpur-color-red-500)\",\n colorTextStatusErrorStrongNegative: \"var(--purpur-color-red-700)\",\n colorTextStatusWarningMediumNegative: \"var(--purpur-color-orange-500)\",\n colorTextToneOnTonePrimary: \"var(--purpur-color-purple-900)\",\n colorTextToneOnToneSecondary: \"var(--purpur-color-purple-100)\",\n colorTextToneOnToneTertiary: \"var(--purpur-color-functional-white)\",\n colorBackgroundPrimary: \"var(--purpur-color-gray-950)\",\n colorBackgroundSecondary: \"var(--purpur-color-gray-900)\",\n colorBackgroundOnImage: \"var(--purpur-color-transparent-black-700)\",\n colorBackgroundPrimaryNegative: \"var(--purpur-color-functional-white)\",\n colorBackgroundSecondaryNegative: \"var(--purpur-color-gray-50)\",\n colorBackgroundOnImageNegative: \"var(--purpur-color-transparent-white-850)\",\n colorBackgroundInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorBackgroundInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorBackgroundInteractivePrimaryActive: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveExpressive: \"var(--purpur-color-purple-550)\",\n colorBackgroundInteractiveExpressiveHover: \"var(--purpur-color-purple-400)\",\n colorBackgroundInteractiveExpressiveActive: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveTransparentHover: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractiveTransparentActive: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractiveDisabled: \"var(--purpur-color-transparent-white-100)\",\n colorBackgroundInteractiveReadOnly: \"var(--purpur-color-transparent-white-50)\",\n colorBackgroundInteractiveInactive: \"var(--purpur-color-transparent-white-150)\",\n colorBackgroundInteractiveDestructive: \"var(--purpur-color-red-500)\",\n colorBackgroundInteractiveDestructiveHover: \"var(--purpur-color-red-600)\",\n colorBackgroundInteractiveDestructiveActive: \"var(--purpur-color-red-700)\",\n colorBackgroundInteractiveAutoFill: \"var(--purpur-color-blue-800)\",\n colorBackgroundInteractivePrimaryNegative: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-600)\",\n colorBackgroundInteractiveExpressiveNegative: \"var(--purpur-color-purple-550)\",\n colorBackgroundInteractiveExpressiveHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractiveExpressiveActiveNegative: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractiveTransparentHoverNegative: \"var(--purpur-color-purple-200)\",\n colorBackgroundInteractiveTransparentActiveNegative: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveDisabledNegative: \"var(--purpur-color-transparent-black-100)\",\n colorBackgroundInteractiveInactiveNegative: \"var(--purpur-color-transparent-black-50)\",\n colorBackgroundInteractiveReadOnlyNegative: \"var(--purpur-color-transparent-black-50)\",\n colorBackgroundStatusInfoMedium: \"var(--purpur-color-blue-800)\",\n colorBackgroundStatusInfoStrong: \"var(--purpur-color-blue-300)\",\n colorBackgroundStatusSuccessMedium: \"var(--purpur-color-green-800)\",\n colorBackgroundStatusSuccessStrong: \"var(--purpur-color-green-300)\",\n colorBackgroundStatusWarningMedium: \"var(--purpur-color-orange-800)\",\n colorBackgroundStatusWarningStrong: \"var(--purpur-color-orange-300)\",\n colorBackgroundStatusErrorMedium: \"var(--purpur-color-red-800)\",\n colorBackgroundStatusErrorStrong: \"var(--purpur-color-red-300)\",\n colorBackgroundStatusNeutral: \"var(--purpur-color-gray-800)\",\n colorBackgroundStatusSpecial: \"var(--purpur-color-purple-700)\",\n colorBackgroundStatusAttention: \"var(--purpur-color-purple-100)\",\n colorBackgroundStatusBlackFriday: \"var(--purpur-color-functional-white)\",\n colorBackgroundStatusSuccessStrongNegative: \"var(--purpur-color-green-400)\",\n colorBackgroundStatusWarningStrongNegative: \"var(--purpur-color-orange-300)\",\n colorBackgroundStatusErrorStrongNegative: \"var(--purpur-color-red-400)\",\n colorBackgroundToneOnTonePrimary: \"var(--purpur-color-purple-100)\",\n colorBackgroundToneOnToneSecondary: \"var(--purpur-color-purple-900)\",\n colorBackgroundToneOnToneTertiary: \"var(--purpur-color-beige-700)\",\n colorBackgroundToneOnToneQuaternary: \"var(--purpur-color-beige-800)\",\n colorBorderWeak: \"var(--purpur-color-transparent-white-150)\",\n colorBorderMedium: \"var(--purpur-color-transparent-white-300)\",\n colorBorderStrong: \"var(--purpur-color-transparent-white-500)\",\n colorBorderWeakNegative: \"var(--purpur-color-transparent-black-150)\",\n colorBorderMediumNegative: \"var(--purpur-color-transparent-black-300)\",\n colorBorderStrongNegative: \"var(--purpur-color-transparent-black-500)\",\n colorBorderInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorBorderInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorBorderInteractivePrimaryActive: \"var(--purpur-color-purple-200)\",\n colorBorderInteractiveFocus: \"var(--purpur-color-purple-400)\",\n colorBorderInteractiveExpressive: \"var(--purpur-color-purple-550)\",\n colorBorderInteractiveSubtle: \"var(--purpur-color-transparent-white-400)\",\n colorBorderInteractiveSubtleHover: \"var(--purpur-color-purple-200)\",\n colorBorderInteractiveSelected: \"var(--purpur-color-purple-300)\",\n colorBorderInteractivePrimaryNegative: \"var(--purpur-color-purple-700)\",\n colorBorderInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-800)\",\n colorBorderInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-900)\",\n colorBorderInteractiveSubtleNegative: \"var(--purpur-color-transparent-black-400)\",\n colorBorderInteractiveSubtleHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBorderStatusError: \"var(--purpur-color-red-400)\",\n colorBorderStatusWarning: \"var(--purpur-color-orange-300)\",\n colorBorderStatusInfo: \"var(--purpur-color-blue-400)\",\n colorBorderStatusSuccess: \"var(--purpur-color-green-400)\",\n colorBorderStatusErrorNegative: \"var(--purpur-color-red-500)\",\n colorBorderStatusSuccessNegative: \"var(--purpur-color-green-500)\"\n}, y = \"#29003e\", P = \"#990ae3\", b = \"#f4e0ff\", E = \"#4f4741\", h = \"#ede1d8\", O = \"#f9f1ec\", A = \"#1e1e20\", H = \"#ffffff\", M = \"rgba(0, 0, 0, 0.84)\", w = \"rgba(0, 0, 0, 0.62)\", W = \"rgba(0, 0, 0, 0.44)\", D = \"rgba(255, 255, 255, 0.95)\", L = \"rgba(255, 255, 255, 0.66)\", R = \"rgba(255, 255, 255, 0.37)\", F = \"#6d02a3\", _ = \"#4e0174\", U = \"#29003e\", Q = \"#ffffff\", j = \"#4e0174\", X = \"#f4e0ff\", $ = \"#e4b6fb\", q = \"#e4b6fb\", G = \"#ffffff\", z = \"#ffffff\", J = \"#ffffff\", K = \"#29003e\", Y = \"#ffffff\", Z = \"#29003e\", V = \"#ffffff\", rr = \"#990ae3\", or = \"#990ae3\", er = \"#980233\", tr = \"#ff80ab\", ar = \"#e4175c\", cr = \"#fb4885\", ur = \"#02562b\", nr = \"#3dbf7c\", lr = \"#018842\", pr = \"#6a4102\", ir = \"#a86602\", vr = \"#f39200\", sr = \"#014d80\", gr = \"#0078cb\", dr = \"rgba(0, 0, 0, 0.71)\", Br = \"#4e0174\", Sr = \"#ffffff\", Ir = \"#ffffff\", fr = \"#f4e0ff\", Tr = \"#29003e\", kr = \"#4f4741\", xr = \"#ffffff\", mr = \"#1f002e\", Cr = \"#f5f5fa\", Nr = \"#29003e\", yr = \"rgba(255, 255, 255, 0.84)\", Pr = \"rgba(0, 0, 0, 0.71)\", br = \"#e8f6ff\", Er = \"#4e0174\", hr = \"#6d02a3\", Or = \"#8c07d0\", Ar = \"#f4e0ff\", Hr = \"#e4b6fb\", Mr = \"#d58df9\", wr = \"#990ae3\", Wr = \"#6d02a3\", Dr = \"#4e0174\", Lr = \"#990ae3\", Rr = \"#c461f7\", Fr = \"#d58df9\", _r = \"rgba(0, 0, 0, 0.1)\", Ur = \"rgba(255, 255, 255, 0.11)\", Qr = \"#f4e0ff\", jr = \"#4e0174\", Xr = \"#e4b6fb\", $r = \"#6d02a3\", qr = \"rgba(0, 0, 0, 0.05)\", Gr = \"rgba(255, 255, 255, 0.16)\", zr = \"rgba(0, 0, 0, 0.05)\", Jr = \"rgba(255, 255, 255, 0.11)\", Kr = \"#e4175c\", Yr = \"#c00543\", Zr = \"#980233\", Vr = \"#caeaff\", ro = \"#3694d3\", oo = \"#c5efd9\", eo = \"#1fa15e\", to = \"#3dbf7c\", ao = \"#ffdde8\", co = \"#fb4885\", uo = \"#ff80ab\", no = \"#ffe1b3\", lo = \"#cc7a00\", po = \"#f39200\", io = \"#d6d6dd\", vo = \"#f4e0ff\", so = \"#6d02a3\", go = \"#1e1e20\", Bo = \"#29003e\", So = \"#f4e0ff\", Io = \"#ede1d8\", fo = \"#f9f1ec\", To = \"rgba(0, 0, 0, 0.33)\", ko = \"rgba(255, 255, 255, 0.29)\", xo = \"rgba(0, 0, 0, 0.54)\", mo = \"rgba(255, 255, 255, 0.46)\", Co = \"rgba(0, 0, 0, 0.16)\", No = \"rgba(255, 255, 255, 0.16)\", yo = \"#b12df4\", Po = \"#6d02a3\", bo = \"#f4e0ff\", Eo = \"#4e0174\", ho = \"#29003e\", Oo = \"#e4b6fb\", Ao = \"#e4b6fb\", Ho = \"#990ae3\", Mo = \"#990ae3\", wo = \"rgba(0, 0, 0, 0.44)\", Wo = \"rgba(255, 255, 255, 0.46)\", Do = \"#6d02a3\", Lo = \"#c461f7\", Ro = \"#e4175c\", Fo = \"#fb4885\", _o = \"#cc7a00\", Uo = \"#0078cb\", Qo = \"#018842\", jo = \"#1fa15e\", Xo = {\n colorBrandDeepPurple: y,\n colorBrandCorePurple: P,\n colorBrandLightPurple: b,\n colorBrandDeepBeige: E,\n colorBrandBeige: h,\n colorBrandLightBeige: O,\n colorBrandOffBlack: A,\n colorBrandWhite: H,\n colorTextDefault: M,\n colorTextMedium: w,\n colorTextWeak: W,\n colorTextDefaultNegative: D,\n colorTextMediumNegative: L,\n colorTextWeakNegative: R,\n colorTextInteractivePrimary: F,\n colorTextInteractivePrimaryHover: _,\n colorTextInteractivePrimaryActive: U,\n colorTextInteractiveOnPrimary: Q,\n colorTextInteractiveOnExpressive: G,\n colorTextInteractiveOnExpressiveHover: J,\n colorTextInteractiveOnExpressiveActive: Y,\n colorTextInteractiveOnDestructive: V,\n colorTextInteractiveSelected: rr,\n colorTextInteractivePrimaryNegative: X,\n colorTextInteractivePrimaryHoverNegative: $,\n colorTextInteractivePrimaryActiveNegative: q,\n colorTextInteractiveOnPrimaryNegative: j,\n colorTextInteractiveOnExpressiveNegative: z,\n colorTextInteractiveOnExpressiveHoverNegative: K,\n colorTextInteractiveOnExpressiveActiveNegative: Z,\n colorTextStatusInfoMedium: gr,\n colorTextStatusInfoStrong: sr,\n colorTextStatusSuccessMedium: lr,\n colorTextStatusSuccessStrong: ur,\n colorTextStatusWarningMedium: ir,\n colorTextStatusWarningStrong: pr,\n colorTextStatusErrorMedium: ar,\n colorTextStatusErrorStrong: er,\n colorTextStatusNeutral: dr,\n colorTextStatusSpecial: Br,\n colorTextStatusAttention: Sr,\n colorTextStatusDiscount: or,\n colorTextStatusBlackFriday: Ir,\n colorTextStatusSuccessStrongNegative: nr,\n colorTextStatusErrorMediumNegative: cr,\n colorTextStatusErrorStrongNegative: tr,\n colorTextStatusWarningMediumNegative: vr,\n colorTextToneOnTonePrimary: fr,\n colorTextToneOnToneSecondary: Tr,\n colorTextToneOnToneTertiary: kr,\n colorBackgroundPrimary: xr,\n colorBackgroundSecondary: Cr,\n colorBackgroundOnImage: yr,\n colorBackgroundPrimaryNegative: mr,\n colorBackgroundSecondaryNegative: Nr,\n colorBackgroundOnImageNegative: Pr,\n colorBackgroundInteractivePrimary: Er,\n colorBackgroundInteractivePrimaryHover: hr,\n colorBackgroundInteractivePrimaryActive: Or,\n colorBackgroundInteractiveExpressive: wr,\n colorBackgroundInteractiveExpressiveHover: Wr,\n colorBackgroundInteractiveExpressiveActive: Dr,\n colorBackgroundInteractiveTransparentHover: Qr,\n colorBackgroundInteractiveTransparentActive: Xr,\n colorBackgroundInteractiveDisabled: _r,\n colorBackgroundInteractiveReadOnly: zr,\n colorBackgroundInteractiveInactive: qr,\n colorBackgroundInteractiveDestructive: Kr,\n colorBackgroundInteractiveDestructiveHover: Yr,\n colorBackgroundInteractiveDestructiveActive: Zr,\n colorBackgroundInteractiveAutoFill: br,\n colorBackgroundInteractivePrimaryNegative: Ar,\n colorBackgroundInteractivePrimaryHoverNegative: Hr,\n colorBackgroundInteractivePrimaryActiveNegative: Mr,\n colorBackgroundInteractiveExpressiveNegative: Lr,\n colorBackgroundInteractiveExpressiveHoverNegative: Rr,\n colorBackgroundInteractiveExpressiveActiveNegative: Fr,\n colorBackgroundInteractiveTransparentHoverNegative: jr,\n colorBackgroundInteractiveTransparentActiveNegative: $r,\n colorBackgroundInteractiveDisabledNegative: Ur,\n colorBackgroundInteractiveInactiveNegative: Gr,\n colorBackgroundInteractiveReadOnlyNegative: Jr,\n colorBackgroundStatusInfoMedium: Vr,\n colorBackgroundStatusInfoStrong: ro,\n colorBackgroundStatusSuccessMedium: oo,\n colorBackgroundStatusSuccessStrong: eo,\n colorBackgroundStatusWarningMedium: no,\n colorBackgroundStatusWarningStrong: lo,\n colorBackgroundStatusErrorMedium: ao,\n colorBackgroundStatusErrorStrong: co,\n colorBackgroundStatusNeutral: io,\n colorBackgroundStatusSpecial: vo,\n colorBackgroundStatusAttention: so,\n colorBackgroundStatusBlackFriday: go,\n colorBackgroundStatusSuccessStrongNegative: to,\n colorBackgroundStatusWarningStrongNegative: po,\n colorBackgroundStatusErrorStrongNegative: uo,\n colorBackgroundToneOnTonePrimary: Bo,\n colorBackgroundToneOnToneSecondary: So,\n colorBackgroundToneOnToneTertiary: Io,\n colorBackgroundToneOnToneQuaternary: fo,\n colorBorderWeak: Co,\n colorBorderMedium: To,\n colorBorderStrong: xo,\n colorBorderWeakNegative: No,\n colorBorderMediumNegative: ko,\n colorBorderStrongNegative: mo,\n colorBorderInteractivePrimary: Po,\n colorBorderInteractivePrimaryHover: Eo,\n colorBorderInteractivePrimaryActive: ho,\n colorBorderInteractiveFocus: yo,\n colorBorderInteractiveExpressive: Ho,\n colorBorderInteractiveSubtle: wo,\n colorBorderInteractiveSubtleHover: Do,\n colorBorderInteractiveSelected: Mo,\n colorBorderInteractivePrimaryNegative: bo,\n colorBorderInteractivePrimaryHoverNegative: Oo,\n colorBorderInteractivePrimaryActiveNegative: Ao,\n colorBorderInteractiveSubtleNegative: Wo,\n colorBorderInteractiveSubtleHoverNegative: Lo,\n colorBorderStatusError: Ro,\n colorBorderStatusWarning: _o,\n colorBorderStatusInfo: Uo,\n colorBorderStatusSuccess: Qo,\n colorBorderStatusErrorNegative: Fo,\n colorBorderStatusSuccessNegative: jo\n}, B = {\n light: Xo,\n dark: N\n}, $o = new RegExp(\"([\\\\p{Ll}\\\\d])(\\\\p{Lu})\", \"gu\"), qo = new RegExp(\"(\\\\p{Lu})([\\\\p{Lu}][\\\\p{Ll}])\", \"gu\"), Go = new RegExp(\"(\\\\d)\\\\p{Ll}|(\\\\p{L})\\\\d\", \"u\"), zo = /[^\\p{L}\\d]+/giu, S = \"$1\\0$2\", I = \"\";\nfunction f(o) {\n let r = o.trim();\n r = r.replace($o, S).replace(qo, S), r = r.replace(zo, \"\\0\");\n let e = 0, t = r.length;\n for (; r.charAt(e) === \"\\0\"; )\n e++;\n if (e === t)\n return [];\n for (; r.charAt(t - 1) === \"\\0\"; )\n t--;\n return r.slice(e, t).split(/\\0/g);\n}\nfunction Jo(o) {\n const r = f(o);\n for (let e = 0; e < r.length; e++) {\n const t = r[e], a = Go.exec(t);\n if (a) {\n const c = a.index + (a[1] ?? a[2]).length;\n r.splice(e, 1, t.slice(0, c), t.slice(c));\n }\n }\n return r;\n}\nfunction Ko(o, r) {\n const [e, t, a] = Vo(o, r);\n return e + t.map(Zo(r == null ? void 0 : r.locale)).join((r == null ? void 0 : r.delimiter) ?? \" \") + a;\n}\nfunction Yo(o, r) {\n return Ko(o, { delimiter: \"-\", ...r });\n}\nfunction Zo(o) {\n return o === !1 ? (r) => r.toLowerCase() : (r) => r.toLocaleLowerCase(o);\n}\nfunction Vo(o, r = {}) {\n const e = r.split ?? (r.separateNumbers ? Jo : f), t = r.prefixCharacters ?? I, a = r.suffixCharacters ?? I;\n let c = 0, u = o.length;\n for (; c < o.length; ) {\n const l = o.charAt(c);\n if (!t.includes(l))\n break;\n c++;\n }\n for (; u > c; ) {\n const l = u - 1, p = o.charAt(l);\n if (!a.includes(p))\n break;\n u = l;\n }\n return [\n o.slice(0, c),\n e(o.slice(c, u)),\n o.slice(u)\n ];\n}\nconst re = ({\n theme: o = B,\n cssVariablesSelector: r,\n currentColorScheme: e\n}) => {\n v(() => {\n e && Object.entries((o == null ? void 0 : o[e]) ?? B[e]).forEach(\n ([t, a]) => {\n ((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(\n `--purpur-${Yo(t)}`,\n a\n );\n }\n );\n }, [o, r, e]);\n}, T = m({\n colorScheme: \"light\",\n setColorScheme: () => {\n },\n options: {}\n}), ae = ({\n cssVariablesSelector: o,\n forceColorScheme: r,\n theme: e,\n children: t,\n options: a = {},\n ...c\n}) => {\n const [u, l] = d(r ?? \"auto\"), [p, i] = d(\n r ?? \"light\"\n );\n v(() => {\n if (r)\n l(r);\n else {\n const n = localStorage.getItem(\"colorScheme\");\n n && l(n);\n }\n }, [r]), v(() => {\n const n = window.matchMedia(\"(prefers-color-scheme: dark)\");\n i(u === \"auto\" ? n.matches ? \"dark\" : \"light\" : u);\n const s = (x) => {\n !r && u === \"auto\" && i(x.matches ? \"dark\" : \"light\");\n };\n return n.addEventListener(\"change\", s), () => {\n n.removeEventListener(\"change\", s);\n };\n }, [u, r]), re({ theme: e, cssVariablesSelector: o, currentColorScheme: p });\n const k = (n) => {\n r || (l(n), localStorage.setItem(\"colorScheme\", n));\n };\n return /* @__PURE__ */ g(T.Provider, { value: { colorScheme: u, setColorScheme: k, options: a }, children: /* @__PURE__ */ g(\"div\", { className: u, ...c, children: t }) });\n}, oe = () => {\n const o = C(T);\n if (!o)\n throw new Error(\"useTheme must be used within a ThemeProvider\");\n return o;\n}, ce = () => {\n const { colorScheme: o, setColorScheme: r } = oe();\n return [o, r];\n};\nexport {\n ae as ThemeProvider,\n B as teliaTheme,\n re as useApplyTheme,\n ce as useColorScheme,\n oe as useTheme\n};\n//# sourceMappingURL=theme.es.js.map\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue.call(this, arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn this && this[arg] || arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(this, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, this && this[key] || key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { forwardRef } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport { FieldErrorText } from \"@purpurds/field-error-text\";\nimport { FieldHelperText } from \"@purpurds/field-helper-text\";\nimport { Label } from \"@purpurds/label\";\nimport { useColorScheme } from \"@purpurds/theme\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./text-area.module.scss\";\n\nexport type TextAreaProps = Omit<BaseProps<\"textarea\">, \"id\"> & {\n id: string;\n /**\n * Use to render error message below the text area. The text area renders with error appearance.\n * */\n errorText?: string;\n /**\n * Use to give context about the text area's input. Renders below the text area.\n * */\n helperText?: string;\n /**\n * The label of the text area.\n * */\n label?: string;\n /**\n * The height of the text area, measured in number of rows.\n * */\n rows?: number;\n /**\n * The width of the text area, measured in number of cols.\n * */\n cols?: number;\n};\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-text-area\";\n\nexport const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n (\n {\n id,\n [\"data-testid\"]: dataTestId,\n className,\n errorText,\n helperText,\n label,\n rows = 3,\n cols = 90,\n ...props\n },\n ref\n ) => {\n const [colorScheme] = useColorScheme();\n\n const getTestId = (name: string) => (dataTestId ? `${dataTestId}-${name}` : undefined);\n\n const helperTextId = helperText ? `${id}-helper-text` : undefined;\n\n const textAreaContainerClassnames = cx(`${rootClassName}__textarea-container`, {\n [`${rootClassName}__textarea-container--disabled`]: props.disabled,\n [`${rootClassName}__textarea-container--readonly`]: props.readOnly && !props.disabled,\n });\n\n return (\n <div className={cx(className, rootClassName)} data-testid={dataTestId}>\n {label && (\n <Label\n htmlFor={id}\n disabled={props.disabled}\n className={styles[`${rootClassName}__label`]}\n data-testid={getTestId(\"label\")}\n >\n {props.required && <span aria-hidden>*</span>}\n {label}\n </Label>\n )}\n <div className={textAreaContainerClassnames}>\n <textarea\n {...props}\n ref={ref}\n id={id}\n data-testid={getTestId(\"textarea\")}\n aria-describedby={props[\"aria-describedby\"] || helperTextId}\n aria-invalid={props[\"aria-invalid\"] || !!errorText}\n className={cx(\n `${rootClassName}__textarea`,\n `${rootClassName}__textarea--${colorScheme}`,\n {\n [`${rootClassName}__textarea--error`]: !!errorText,\n }\n )}\n rows={rows}\n cols={cols}\n />\n <div className={styles[`${rootClassName}__frame`]} />\n </div>\n {helperTextId && (\n <FieldHelperText data-testid={getTestId(\"helper-text\")} id={helperTextId}>\n {helperText}\n </FieldHelperText>\n )}\n {errorText && (\n <FieldErrorText data-testid={getTestId(\"error-text\")}>{errorText}</FieldErrorText>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n"],"names":["g","e","p","c","h","i","n","r","t","s","u","y","w","b","S","f","j","$","O","q","m","_","N","A","l","d","B","M","P","C","v","a","Z","x","o","R","E","D","V","T","oe","ce","hasOwn","classNames","classes","arg","appendClass","parseValue","key","value","newClass","module","cx","styles","rootClassName","TextArea","forwardRef","id","dataTestId","className","errorText","helperText","label","rows","cols","props","ref","colorScheme","useColorScheme","getTestId","name","helperTextId","textAreaContainerClassnames","jsxs","Label","jsx","FieldHelperText","FieldErrorText"],"mappings":"ubACA,SAASA,EAAEC,EAAG,CACZ,OAAOA,GAAKA,EAAE,YAAc,OAAO,UAAU,eAAe,KAAKA,EAAG,SAAS,EAAIA,EAAE,QAAUA,CAC/F,CAC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A,CACH,EAEFW,EAAAA,KAAC,MAAI,CAAA,UAAWD,EACd,SAAA,CAAAG,EAAA,IAAC,WAAA,CACE,GAAGV,EACJ,IAAAC,EACA,GAAAT,EACA,cAAaY,EAAU,UAAU,EACjC,mBAAkBJ,EAAM,kBAAkB,GAAKM,EAC/C,eAAcN,EAAM,cAAc,GAAK,CAAC,CAACL,EACzC,UAAWR,EACT,GAAGE,CAAa,aAChB,GAAGA,CAAa,eAAea,CAAW,GAC1C,CACE,CAAC,GAAGb,CAAa,mBAAmB,EAAG,CAAC,CAACM,CAAA,CAE7C,EACA,KAAAG,EACA,KAAAC,CAAA,CACF,QACC,MAAI,CAAA,UAAWX,EAAO,GAAGC,CAAa,SAAS,CAAG,CAAA,CAAA,EACrD,EACCiB,SACEK,GAAgB,CAAA,cAAaP,EAAU,aAAa,EAAG,GAAIE,EACzD,SACHV,CAAA,CAAA,EAEDD,GACEe,EAAAA,IAAAE,GAAA,CAAe,cAAaR,EAAU,YAAY,EAAI,SAAUT,CAAA,CAAA,CAAA,EAErE,CAAA,CAGN,EAEAL,EAAS,YAAc","x_google_ignoreList":[4]}
1
+ {"version":3,"file":"text-area.cjs.js","sources":["../../field-error-text/dist/field-error-text.es.js","../../field-helper-text/dist/field-helper-text.es.js","../../label/dist/label.es.js","../../../libraries/theme/dist/theme.es.js","../../../common/temp/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/bind.js","../src/text-area.tsx"],"sourcesContent":["import { jsx as _, jsxs as x } from \"react/jsx-runtime\";\nfunction g(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar p = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar c;\nfunction h() {\n return c || (c = 1, function(e) {\n (function() {\n var i = {}.hasOwnProperty;\n function n() {\n for (var r = \"\", t = 0; t < arguments.length; t++) {\n var o = arguments[t];\n o && (r = s(r, u.call(this, o)));\n }\n return r;\n }\n function u(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return n.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var t = \"\";\n for (var o in r)\n i.call(r, o) && r[o] && (t = s(t, this && this[o] || o));\n return t;\n }\n function s(r, t) {\n return t ? r ? r + \" \" + t : r + t : r;\n }\n e.exports ? (n.default = n, e.exports = n) : window.classNames = n;\n })();\n }(p)), p.exports;\n}\nvar y = h();\nconst w = /* @__PURE__ */ g(y), b = {\n \"purpur-icon\": \"_purpur-icon_8u1lq_1\",\n \"purpur-icon--xxs\": \"_purpur-icon--xxs_8u1lq_4\",\n \"purpur-icon--xs\": \"_purpur-icon--xs_8u1lq_8\",\n \"purpur-icon--sm\": \"_purpur-icon--sm_8u1lq_12\",\n \"purpur-icon--md\": \"_purpur-icon--md_8u1lq_16\",\n \"purpur-icon--lg\": \"_purpur-icon--lg_8u1lq_20\",\n \"purpur-icon--xl\": \"_purpur-icon--xl_8u1lq_24\"\n}, S = w.bind(b), f = \"purpur-icon\", j = \"md\", $ = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}=\"${i.value}\"`).join(\" \"), O = ({ content: e = \"\", title: i } = {}) => {\n const n = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"currentColor\" },\n { name: \"viewBox\", value: \"0 0 24 24\" },\n i ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], u = i ? `<title>${i}</title>` : \"\";\n return `<svg ${$(n)}>${u}${e}</svg>`;\n}, q = (e) => e.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), m = ({ svg: e, allyTitle: i, className: n, size: u = j, ...s }) => {\n const r = O({\n content: q(e.svg),\n title: i\n }), t = S(n, f, `${f}--${u}`);\n return /* @__PURE__ */ _(\"span\", { className: t, dangerouslySetInnerHTML: { __html: r }, ...s });\n};\nm.displayName = \"Icon\";\nconst N = {\n name: \"error-filled\",\n 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>',\n keywords: [\"error-filled\"],\n category: \"status\"\n};\nfunction A(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar l = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar d;\nfunction B() {\n return d || (d = 1, function(e) {\n (function() {\n var i = {}.hasOwnProperty;\n function n() {\n for (var r = \"\", t = 0; t < arguments.length; t++) {\n var o = arguments[t];\n o && (r = s(r, u.call(this, o)));\n }\n return r;\n }\n function u(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return n.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var t = \"\";\n for (var o in r)\n i.call(r, o) && r[o] && (t = s(t, this && this[o] || o));\n return t;\n }\n function s(r, t) {\n return t ? r ? r + \" \" + t : r + t : r;\n }\n e.exports ? (n.default = n, e.exports = n) : window.classNames = n;\n })();\n }(l)), l.exports;\n}\nvar M = B();\nconst P = /* @__PURE__ */ A(M), C = {\n \"purpur-field-error-text\": \"_purpur-field-error-text_u1cy2_1\",\n \"purpur-field-error-text--negative\": \"_purpur-field-error-text--negative_u1cy2_11\",\n \"purpur-field-error-text__icon\": \"_purpur-field-error-text__icon_u1cy2_14\"\n}, v = P.bind(C), T = [\n \"additions text\",\n \"additions\",\n \"removals\",\n \"text\",\n \"all\"\n], a = \"purpur-field-error-text\", Z = ({\n children: e,\n className: i,\n negative: n = !1,\n [\"aria-relevant\"]: u = \"additions text\",\n ...s\n}) => /* @__PURE__ */ x(\n \"div\",\n {\n className: v(i, a, {\n [`${a}--negative`]: n\n }),\n \"aria-live\": \"assertive\",\n \"aria-relevant\": u,\n ...s,\n children: [\n /* @__PURE__ */ _(m, { svg: N, size: \"xs\", className: v(`${a}__icon`) }),\n e\n ]\n }\n);\nexport {\n Z as FieldErrorText,\n T as ariaRelevantValues\n};\n//# sourceMappingURL=field-error-text.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nfunction c(r) {\n return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n}\nvar u = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar f;\nfunction d() {\n return f || (f = 1, function(r) {\n (function() {\n var p = {}.hasOwnProperty;\n function n() {\n for (var t = \"\", e = 0; e < arguments.length; e++) {\n var s = arguments[e];\n s && (t = i(t, o.call(this, s)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return n.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var e = \"\";\n for (var s in t)\n p.call(t, s) && t[s] && (e = i(e, this && this[s] || s));\n return e;\n }\n function i(t, e) {\n return e ? t ? t + \" \" + e : t + e : t;\n }\n r.exports ? (n.default = n, r.exports = n) : window.classNames = n;\n })();\n }(u)), u.exports;\n}\nvar h = d();\nconst x = /* @__PURE__ */ c(h), _ = {\n \"purpur-field-helper-text\": \"_purpur-field-helper-text_11nsh_1\",\n \"purpur-field-helper-text--disabled\": \"_purpur-field-helper-text--disabled_11nsh_9\",\n \"purpur-field-helper-text--negative\": \"_purpur-field-helper-text--negative_11nsh_12\"\n}, b = x.bind(_), l = \"purpur-field-helper-text\", m = ({\n children: r,\n className: p,\n disabled: n,\n id: o,\n negative: i,\n ...t\n}) => {\n const e = b(p, l, {\n [`${l}--disabled`]: n,\n [`${l}--negative`]: i\n });\n return /* @__PURE__ */ a(\"span\", { id: o, className: e, ...t, children: r });\n};\nexport {\n m as FieldHelperText\n};\n//# sourceMappingURL=field-helper-text.es.js.map\n","import { jsx as u, Fragment as v } from \"react/jsx-runtime\";\nimport * as s from \"react\";\nimport \"react-dom\";\nfunction m(e, n) {\n if (typeof e == \"function\")\n return e(n);\n e != null && (e.current = n);\n}\nfunction g(...e) {\n return (n) => {\n let r = !1;\n const o = e.map((i) => {\n const t = m(i, n);\n return !r && typeof t == \"function\" && (r = !0), t;\n });\n if (r)\n return () => {\n for (let i = 0; i < o.length; i++) {\n const t = o[i];\n typeof t == \"function\" ? t() : m(e[i], null);\n }\n };\n };\n}\nvar y = s.forwardRef((e, n) => {\n const { children: r, ...o } = e, i = s.Children.toArray(r), t = i.find(N);\n if (t) {\n const l = t.props.children, a = i.map((d) => d === t ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : d);\n return /* @__PURE__ */ u(p, { ...o, ref: n, children: s.isValidElement(l) ? s.cloneElement(l, void 0, a) : null });\n }\n return /* @__PURE__ */ u(p, { ...o, ref: n, children: r });\n});\ny.displayName = \"Slot\";\nvar p = s.forwardRef((e, n) => {\n const { children: r, ...o } = e;\n if (s.isValidElement(r)) {\n const i = S(r), t = R(o, r.props);\n return r.type !== s.Fragment && (t.ref = n ? g(n, i) : i), s.cloneElement(r, t);\n }\n return s.Children.count(r) > 1 ? s.Children.only(null) : null;\n});\np.displayName = \"SlotClone\";\nvar w = ({ children: e }) => /* @__PURE__ */ u(v, { children: e });\nfunction N(e) {\n return s.isValidElement(e) && e.type === w;\n}\nfunction R(e, n) {\n const r = { ...n };\n for (const o in n) {\n const i = e[o], t = n[o];\n /^on[A-Z]/.test(o) ? i && t ? r[o] = (...a) => {\n t(...a), i(...a);\n } : i && (r[o] = i) : o === \"style\" ? r[o] = { ...i, ...t } : o === \"className\" && (r[o] = [i, t].filter(Boolean).join(\" \"));\n }\n return { ...e, ...r };\n}\nfunction S(e) {\n var o, i;\n let n = (o = Object.getOwnPropertyDescriptor(e.props, \"ref\")) == null ? void 0 : o.get, r = n && \"isReactWarning\" in n && n.isReactWarning;\n return r ? e.ref : (n = (i = Object.getOwnPropertyDescriptor(e, \"ref\")) == null ? void 0 : i.get, r = n && \"isReactWarning\" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);\n}\nvar C = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n], E = C.reduce((e, n) => {\n const r = s.forwardRef((o, i) => {\n const { asChild: t, ...l } = o, a = t ? y : n;\n return typeof window < \"u\" && (window[Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ u(a, { ...l, ref: i });\n });\n return r.displayName = `Primitive.${n}`, { ...e, [n]: r };\n}, {}), x = \"Label\", h = s.forwardRef((e, n) => /* @__PURE__ */ u(\n E.label,\n {\n ...e,\n ref: n,\n onMouseDown: (r) => {\n var i;\n r.target.closest(\"button, input, select, textarea\") || ((i = e.onMouseDown) == null || i.call(e, r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());\n }\n }\n));\nh.displayName = x;\nvar P = h;\nfunction _(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar f = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar b;\nfunction O() {\n return b || (b = 1, function(e) {\n (function() {\n var n = {}.hasOwnProperty;\n function r() {\n for (var t = \"\", l = 0; l < arguments.length; l++) {\n var a = arguments[l];\n a && (t = i(t, o.call(this, a)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return r.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var l = \"\";\n for (var a in t)\n n.call(t, a) && t[a] && (l = i(l, this && this[a] || a));\n return l;\n }\n function i(t, l) {\n return l ? t ? t + \" \" + l : t + l : t;\n }\n e.exports ? (r.default = r, e.exports = r) : window.classNames = r;\n })();\n }(f)), f.exports;\n}\nvar j = O();\nconst D = /* @__PURE__ */ _(j), V = {\n \"purpur-label\": \"_purpur-label_1x80u_1\",\n \"purpur-label--negative\": \"_purpur-label--negative_1x80u_8\",\n \"purpur-label--disabled\": \"_purpur-label--disabled_1x80u_11\"\n}, A = D.bind(V), c = \"purpur-label\", $ = ({\n children: e,\n className: n,\n disabled: r,\n negative: o = !1,\n ...i\n}) => {\n const t = A(n, c, {\n [`${c}--disabled`]: r,\n [`${c}--negative`]: o\n });\n return /* @__PURE__ */ u(P, { className: t, ...i, children: e });\n};\nexport {\n $ as Label\n};\n//# sourceMappingURL=label.es.js.map\n","import { jsx as g } from \"react/jsx-runtime\";\nimport { useEffect as v, createContext as m, useState as d, useMemo as C, useContext as N } from \"react\";\nconst y = {\n colorBrandDeepPurple: \"var(--purpur-color-purple-100)\",\n colorBrandCorePurple: \"var(--purpur-color-purple-400)\",\n colorBrandLightPurple: \"var(--purpur-color-purple-900)\",\n colorBrandDeepBeige: \"var(--purpur-color-beige-100)\",\n colorBrandBeige: \"var(--purpur-color-beige-700)\",\n colorBrandLightBeige: \"var(--purpur-color-beige-800)\",\n colorBrandOffBlack: \"var(--purpur-color-functional-white)\",\n colorBrandWhite: \"var(--purpur-color-gray-900)\",\n colorTextDefault: \"var(--purpur-color-transparent-white-950)\",\n colorTextMedium: \"var(--purpur-color-transparent-white-700)\",\n colorTextWeak: \"var(--purpur-color-transparent-white-400)\",\n colorTextDefaultNegative: \"var(--purpur-color-transparent-black-800)\",\n colorTextMediumNegative: \"var(--purpur-color-transparent-black-500)\",\n colorTextWeakNegative: \"var(--purpur-color-transparent-black-400)\",\n colorTextInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorTextInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorTextInteractivePrimaryActive: \"var(--purpur-color-purple-300)\",\n colorTextInteractiveOnPrimary: \"var(--purpur-color-purple-800)\",\n colorTextInteractiveOnExpressive: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveHover: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnExpressiveActive: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnDestructive: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveSelected: \"var(--purpur-color-purple-300)\",\n colorTextInteractivePrimaryNegative: \"var(--purpur-color-purple-700)\",\n colorTextInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-800)\",\n colorTextInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnPrimaryNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveHoverNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveActiveNegative: \"var(--purpur-color-functional-white)\",\n colorTextStatusInfoMedium: \"var(--purpur-color-blue-400)\",\n colorTextStatusInfoStrong: \"var(--purpur-color-blue-200)\",\n colorTextStatusSuccessMedium: \"var(--purpur-color-green-400)\",\n colorTextStatusSuccessStrong: \"var(--purpur-color-green-200)\",\n colorTextStatusWarningMedium: \"var(--purpur-color-orange-300)\",\n colorTextStatusWarningStrong: \"var(--purpur-color-orange-200)\",\n colorTextStatusErrorMedium: \"var(--purpur-color-red-400)\",\n colorTextStatusErrorStrong: \"var(--purpur-color-red-200)\",\n colorTextStatusNeutral: \"var(--purpur-color-functional-white)\",\n colorTextStatusSpecial: \"var(--purpur-color-functional-white)\",\n colorTextStatusAttention: \"var(--purpur-color-purple-800)\",\n colorTextStatusDiscount: \"var(--purpur-color-purple-300)\",\n colorTextStatusBlackFriday: \"var(--purpur-color-gray-900)\",\n colorTextStatusSuccessStrongNegative: \"var(--purpur-color-green-700)\",\n colorTextStatusErrorMediumNegative: \"var(--purpur-color-red-500)\",\n colorTextStatusErrorStrongNegative: \"var(--purpur-color-red-700)\",\n colorTextStatusWarningMediumNegative: \"var(--purpur-color-orange-500)\",\n colorTextToneOnTonePrimary: \"var(--purpur-color-purple-900)\",\n colorTextToneOnToneSecondary: \"var(--purpur-color-purple-100)\",\n colorTextToneOnToneTertiary: \"var(--purpur-color-functional-white)\",\n colorBackgroundPrimary: \"var(--purpur-color-gray-950)\",\n colorBackgroundSecondary: \"var(--purpur-color-gray-900)\",\n colorBackgroundOnImage: \"var(--purpur-color-transparent-black-700)\",\n colorBackgroundPrimaryNegative: \"var(--purpur-color-functional-white)\",\n colorBackgroundSecondaryNegative: \"var(--purpur-color-gray-50)\",\n colorBackgroundOnImageNegative: \"var(--purpur-color-transparent-white-850)\",\n colorBackgroundInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorBackgroundInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorBackgroundInteractivePrimaryActive: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveExpressive: \"var(--purpur-color-purple-550)\",\n colorBackgroundInteractiveExpressiveHover: \"var(--purpur-color-purple-400)\",\n colorBackgroundInteractiveExpressiveActive: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveTransparentHover: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractiveTransparentActive: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractiveDisabled: \"var(--purpur-color-transparent-white-100)\",\n colorBackgroundInteractiveReadOnly: \"var(--purpur-color-transparent-white-50)\",\n colorBackgroundInteractiveInactive: \"var(--purpur-color-transparent-white-150)\",\n colorBackgroundInteractiveDestructive: \"var(--purpur-color-red-500)\",\n colorBackgroundInteractiveDestructiveHover: \"var(--purpur-color-red-600)\",\n colorBackgroundInteractiveDestructiveActive: \"var(--purpur-color-red-700)\",\n colorBackgroundInteractiveAutoFill: \"var(--purpur-color-blue-800)\",\n colorBackgroundInteractivePrimaryNegative: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-600)\",\n colorBackgroundInteractiveExpressiveNegative: \"var(--purpur-color-purple-550)\",\n colorBackgroundInteractiveExpressiveHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractiveExpressiveActiveNegative: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractiveTransparentHoverNegative: \"var(--purpur-color-purple-200)\",\n colorBackgroundInteractiveTransparentActiveNegative: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveDisabledNegative: \"var(--purpur-color-transparent-black-100)\",\n colorBackgroundInteractiveInactiveNegative: \"var(--purpur-color-transparent-black-50)\",\n colorBackgroundInteractiveReadOnlyNegative: \"var(--purpur-color-transparent-black-50)\",\n colorBackgroundStatusInfoMedium: \"var(--purpur-color-blue-800)\",\n colorBackgroundStatusInfoStrong: \"var(--purpur-color-blue-300)\",\n colorBackgroundStatusSuccessMedium: \"var(--purpur-color-green-800)\",\n colorBackgroundStatusSuccessStrong: \"var(--purpur-color-green-300)\",\n colorBackgroundStatusWarningMedium: \"var(--purpur-color-orange-800)\",\n colorBackgroundStatusWarningStrong: \"var(--purpur-color-orange-300)\",\n colorBackgroundStatusErrorMedium: \"var(--purpur-color-red-800)\",\n colorBackgroundStatusErrorStrong: \"var(--purpur-color-red-300)\",\n colorBackgroundStatusNeutral: \"var(--purpur-color-gray-800)\",\n colorBackgroundStatusSpecial: \"var(--purpur-color-purple-700)\",\n colorBackgroundStatusAttention: \"var(--purpur-color-purple-100)\",\n colorBackgroundStatusBlackFriday: \"var(--purpur-color-functional-white)\",\n colorBackgroundStatusSuccessStrongNegative: \"var(--purpur-color-green-400)\",\n colorBackgroundStatusWarningStrongNegative: \"var(--purpur-color-orange-300)\",\n colorBackgroundStatusErrorStrongNegative: \"var(--purpur-color-red-400)\",\n colorBackgroundToneOnTonePrimary: \"var(--purpur-color-purple-100)\",\n colorBackgroundToneOnToneSecondary: \"var(--purpur-color-purple-900)\",\n colorBackgroundToneOnToneTertiary: \"var(--purpur-color-beige-700)\",\n colorBackgroundToneOnToneQuaternary: \"var(--purpur-color-beige-800)\",\n colorBorderWeak: \"var(--purpur-color-transparent-white-150)\",\n colorBorderMedium: \"var(--purpur-color-transparent-white-300)\",\n colorBorderStrong: \"var(--purpur-color-transparent-white-500)\",\n colorBorderWeakNegative: \"var(--purpur-color-transparent-black-150)\",\n colorBorderMediumNegative: \"var(--purpur-color-transparent-black-300)\",\n colorBorderStrongNegative: \"var(--purpur-color-transparent-black-500)\",\n colorBorderInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorBorderInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorBorderInteractivePrimaryActive: \"var(--purpur-color-purple-200)\",\n colorBorderInteractiveFocus: \"var(--purpur-color-purple-400)\",\n colorBorderInteractiveExpressive: \"var(--purpur-color-purple-550)\",\n colorBorderInteractiveSubtle: \"var(--purpur-color-transparent-white-400)\",\n colorBorderInteractiveSubtleHover: \"var(--purpur-color-purple-200)\",\n colorBorderInteractiveSelected: \"var(--purpur-color-purple-300)\",\n colorBorderInteractivePrimaryNegative: \"var(--purpur-color-purple-700)\",\n colorBorderInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-800)\",\n colorBorderInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-900)\",\n colorBorderInteractiveSubtleNegative: \"var(--purpur-color-transparent-black-400)\",\n colorBorderInteractiveSubtleHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBorderStatusError: \"var(--purpur-color-red-400)\",\n colorBorderStatusWarning: \"var(--purpur-color-orange-300)\",\n colorBorderStatusInfo: \"var(--purpur-color-blue-400)\",\n colorBorderStatusSuccess: \"var(--purpur-color-green-400)\",\n colorBorderStatusErrorNegative: \"var(--purpur-color-red-500)\",\n colorBorderStatusSuccessNegative: \"var(--purpur-color-green-500)\"\n}, P = \"#29003e\", b = \"#990ae3\", E = \"#f4e0ff\", h = \"#4f4741\", O = \"#ede1d8\", A = \"#f9f1ec\", H = \"#1e1e20\", M = \"#ffffff\", w = \"rgba(0, 0, 0, 0.84)\", W = \"rgba(0, 0, 0, 0.62)\", D = \"rgba(0, 0, 0, 0.44)\", L = \"rgba(255, 255, 255, 0.95)\", R = \"rgba(255, 255, 255, 0.66)\", F = \"rgba(255, 255, 255, 0.37)\", _ = \"#6d02a3\", U = \"#4e0174\", Q = \"#29003e\", j = \"#ffffff\", X = \"#4e0174\", $ = \"#f4e0ff\", q = \"#e4b6fb\", G = \"#e4b6fb\", z = \"#ffffff\", J = \"#ffffff\", K = \"#ffffff\", V = \"#29003e\", Y = \"#ffffff\", Z = \"#29003e\", rr = \"#ffffff\", or = \"#990ae3\", er = \"#990ae3\", tr = \"#980233\", ar = \"#ff80ab\", cr = \"#e4175c\", ur = \"#fb4885\", nr = \"#02562b\", lr = \"#3dbf7c\", pr = \"#018842\", ir = \"#6a4102\", vr = \"#a86602\", sr = \"#f39200\", gr = \"#014d80\", dr = \"#0078cb\", Br = \"rgba(0, 0, 0, 0.71)\", Sr = \"#4e0174\", Ir = \"#ffffff\", Tr = \"#ffffff\", fr = \"#f4e0ff\", kr = \"#29003e\", xr = \"#4f4741\", mr = \"#ffffff\", Cr = \"#1f002e\", Nr = \"#f5f5fa\", yr = \"#29003e\", Pr = \"rgba(255, 255, 255, 0.84)\", br = \"rgba(0, 0, 0, 0.71)\", Er = \"#e8f6ff\", hr = \"#4e0174\", Or = \"#6d02a3\", Ar = \"#8c07d0\", Hr = \"#f4e0ff\", Mr = \"#e4b6fb\", wr = \"#d58df9\", Wr = \"#990ae3\", Dr = \"#6d02a3\", Lr = \"#4e0174\", Rr = \"#990ae3\", Fr = \"#c461f7\", _r = \"#d58df9\", Ur = \"rgba(0, 0, 0, 0.1)\", Qr = \"rgba(255, 255, 255, 0.11)\", jr = \"#f4e0ff\", Xr = \"#4e0174\", $r = \"#e4b6fb\", qr = \"#6d02a3\", Gr = \"rgba(0, 0, 0, 0.05)\", zr = \"rgba(255, 255, 255, 0.16)\", Jr = \"rgba(0, 0, 0, 0.05)\", Kr = \"rgba(255, 255, 255, 0.11)\", Vr = \"#e4175c\", Yr = \"#c00543\", Zr = \"#980233\", ro = \"#caeaff\", oo = \"#3694d3\", eo = \"#c5efd9\", to = \"#1fa15e\", ao = \"#3dbf7c\", co = \"#ffdde8\", uo = \"#fb4885\", no = \"#ff80ab\", lo = \"#ffe1b3\", po = \"#cc7a00\", io = \"#f39200\", vo = \"#d6d6dd\", so = \"#f4e0ff\", go = \"#6d02a3\", Bo = \"#1e1e20\", So = \"#29003e\", Io = \"#f4e0ff\", To = \"#ede1d8\", fo = \"#f9f1ec\", ko = \"rgba(0, 0, 0, 0.33)\", xo = \"rgba(255, 255, 255, 0.29)\", mo = \"rgba(0, 0, 0, 0.54)\", Co = \"rgba(255, 255, 255, 0.46)\", No = \"rgba(0, 0, 0, 0.16)\", yo = \"rgba(255, 255, 255, 0.16)\", Po = \"#b12df4\", bo = \"#6d02a3\", Eo = \"#f4e0ff\", ho = \"#4e0174\", Oo = \"#29003e\", Ao = \"#e4b6fb\", Ho = \"#e4b6fb\", Mo = \"#990ae3\", wo = \"#990ae3\", Wo = \"rgba(0, 0, 0, 0.44)\", Do = \"rgba(255, 255, 255, 0.46)\", Lo = \"#6d02a3\", Ro = \"#c461f7\", Fo = \"#e4175c\", _o = \"#fb4885\", Uo = \"#cc7a00\", Qo = \"#0078cb\", jo = \"#018842\", Xo = \"#1fa15e\", $o = {\n colorBrandDeepPurple: P,\n colorBrandCorePurple: b,\n colorBrandLightPurple: E,\n colorBrandDeepBeige: h,\n colorBrandBeige: O,\n colorBrandLightBeige: A,\n colorBrandOffBlack: H,\n colorBrandWhite: M,\n colorTextDefault: w,\n colorTextMedium: W,\n colorTextWeak: D,\n colorTextDefaultNegative: L,\n colorTextMediumNegative: R,\n colorTextWeakNegative: F,\n colorTextInteractivePrimary: _,\n colorTextInteractivePrimaryHover: U,\n colorTextInteractivePrimaryActive: Q,\n colorTextInteractiveOnPrimary: j,\n colorTextInteractiveOnExpressive: z,\n colorTextInteractiveOnExpressiveHover: K,\n colorTextInteractiveOnExpressiveActive: Y,\n colorTextInteractiveOnDestructive: rr,\n colorTextInteractiveSelected: or,\n colorTextInteractivePrimaryNegative: $,\n colorTextInteractivePrimaryHoverNegative: q,\n colorTextInteractivePrimaryActiveNegative: G,\n colorTextInteractiveOnPrimaryNegative: X,\n colorTextInteractiveOnExpressiveNegative: J,\n colorTextInteractiveOnExpressiveHoverNegative: V,\n colorTextInteractiveOnExpressiveActiveNegative: Z,\n colorTextStatusInfoMedium: dr,\n colorTextStatusInfoStrong: gr,\n colorTextStatusSuccessMedium: pr,\n colorTextStatusSuccessStrong: nr,\n colorTextStatusWarningMedium: vr,\n colorTextStatusWarningStrong: ir,\n colorTextStatusErrorMedium: cr,\n colorTextStatusErrorStrong: tr,\n colorTextStatusNeutral: Br,\n colorTextStatusSpecial: Sr,\n colorTextStatusAttention: Ir,\n colorTextStatusDiscount: er,\n colorTextStatusBlackFriday: Tr,\n colorTextStatusSuccessStrongNegative: lr,\n colorTextStatusErrorMediumNegative: ur,\n colorTextStatusErrorStrongNegative: ar,\n colorTextStatusWarningMediumNegative: sr,\n colorTextToneOnTonePrimary: fr,\n colorTextToneOnToneSecondary: kr,\n colorTextToneOnToneTertiary: xr,\n colorBackgroundPrimary: mr,\n colorBackgroundSecondary: Nr,\n colorBackgroundOnImage: Pr,\n colorBackgroundPrimaryNegative: Cr,\n colorBackgroundSecondaryNegative: yr,\n colorBackgroundOnImageNegative: br,\n colorBackgroundInteractivePrimary: hr,\n colorBackgroundInteractivePrimaryHover: Or,\n colorBackgroundInteractivePrimaryActive: Ar,\n colorBackgroundInteractiveExpressive: Wr,\n colorBackgroundInteractiveExpressiveHover: Dr,\n colorBackgroundInteractiveExpressiveActive: Lr,\n colorBackgroundInteractiveTransparentHover: jr,\n colorBackgroundInteractiveTransparentActive: $r,\n colorBackgroundInteractiveDisabled: Ur,\n colorBackgroundInteractiveReadOnly: Jr,\n colorBackgroundInteractiveInactive: Gr,\n colorBackgroundInteractiveDestructive: Vr,\n colorBackgroundInteractiveDestructiveHover: Yr,\n colorBackgroundInteractiveDestructiveActive: Zr,\n colorBackgroundInteractiveAutoFill: Er,\n colorBackgroundInteractivePrimaryNegative: Hr,\n colorBackgroundInteractivePrimaryHoverNegative: Mr,\n colorBackgroundInteractivePrimaryActiveNegative: wr,\n colorBackgroundInteractiveExpressiveNegative: Rr,\n colorBackgroundInteractiveExpressiveHoverNegative: Fr,\n colorBackgroundInteractiveExpressiveActiveNegative: _r,\n colorBackgroundInteractiveTransparentHoverNegative: Xr,\n colorBackgroundInteractiveTransparentActiveNegative: qr,\n colorBackgroundInteractiveDisabledNegative: Qr,\n colorBackgroundInteractiveInactiveNegative: zr,\n colorBackgroundInteractiveReadOnlyNegative: Kr,\n colorBackgroundStatusInfoMedium: ro,\n colorBackgroundStatusInfoStrong: oo,\n colorBackgroundStatusSuccessMedium: eo,\n colorBackgroundStatusSuccessStrong: to,\n colorBackgroundStatusWarningMedium: lo,\n colorBackgroundStatusWarningStrong: po,\n colorBackgroundStatusErrorMedium: co,\n colorBackgroundStatusErrorStrong: uo,\n colorBackgroundStatusNeutral: vo,\n colorBackgroundStatusSpecial: so,\n colorBackgroundStatusAttention: go,\n colorBackgroundStatusBlackFriday: Bo,\n colorBackgroundStatusSuccessStrongNegative: ao,\n colorBackgroundStatusWarningStrongNegative: io,\n colorBackgroundStatusErrorStrongNegative: no,\n colorBackgroundToneOnTonePrimary: So,\n colorBackgroundToneOnToneSecondary: Io,\n colorBackgroundToneOnToneTertiary: To,\n colorBackgroundToneOnToneQuaternary: fo,\n colorBorderWeak: No,\n colorBorderMedium: ko,\n colorBorderStrong: mo,\n colorBorderWeakNegative: yo,\n colorBorderMediumNegative: xo,\n colorBorderStrongNegative: Co,\n colorBorderInteractivePrimary: bo,\n colorBorderInteractivePrimaryHover: ho,\n colorBorderInteractivePrimaryActive: Oo,\n colorBorderInteractiveFocus: Po,\n colorBorderInteractiveExpressive: Mo,\n colorBorderInteractiveSubtle: Wo,\n colorBorderInteractiveSubtleHover: Lo,\n colorBorderInteractiveSelected: wo,\n colorBorderInteractivePrimaryNegative: Eo,\n colorBorderInteractivePrimaryHoverNegative: Ao,\n colorBorderInteractivePrimaryActiveNegative: Ho,\n colorBorderInteractiveSubtleNegative: Do,\n colorBorderInteractiveSubtleHoverNegative: Ro,\n colorBorderStatusError: Fo,\n colorBorderStatusWarning: Uo,\n colorBorderStatusInfo: Qo,\n colorBorderStatusSuccess: jo,\n colorBorderStatusErrorNegative: _o,\n colorBorderStatusSuccessNegative: Xo\n}, B = {\n light: $o,\n dark: y\n}, qo = new RegExp(\"([\\\\p{Ll}\\\\d])(\\\\p{Lu})\", \"gu\"), Go = new RegExp(\"(\\\\p{Lu})([\\\\p{Lu}][\\\\p{Ll}])\", \"gu\"), zo = new RegExp(\"(\\\\d)\\\\p{Ll}|(\\\\p{L})\\\\d\", \"u\"), Jo = /[^\\p{L}\\d]+/giu, S = \"$1\\0$2\", I = \"\";\nfunction T(o) {\n let r = o.trim();\n r = r.replace(qo, S).replace(Go, S), r = r.replace(Jo, \"\\0\");\n let e = 0, t = r.length;\n for (; r.charAt(e) === \"\\0\"; )\n e++;\n if (e === t)\n return [];\n for (; r.charAt(t - 1) === \"\\0\"; )\n t--;\n return r.slice(e, t).split(/\\0/g);\n}\nfunction Ko(o) {\n const r = T(o);\n for (let e = 0; e < r.length; e++) {\n const t = r[e], a = zo.exec(t);\n if (a) {\n const c = a.index + (a[1] ?? a[2]).length;\n r.splice(e, 1, t.slice(0, c), t.slice(c));\n }\n }\n return r;\n}\nfunction Vo(o, r) {\n const [e, t, a] = re(o, r);\n return e + t.map(Zo(r == null ? void 0 : r.locale)).join((r == null ? void 0 : r.delimiter) ?? \" \") + a;\n}\nfunction Yo(o, r) {\n return Vo(o, { delimiter: \"-\", ...r });\n}\nfunction Zo(o) {\n return o === !1 ? (r) => r.toLowerCase() : (r) => r.toLocaleLowerCase(o);\n}\nfunction re(o, r = {}) {\n const e = r.split ?? (r.separateNumbers ? Ko : T), t = r.prefixCharacters ?? I, a = r.suffixCharacters ?? I;\n let c = 0, u = o.length;\n for (; c < o.length; ) {\n const l = o.charAt(c);\n if (!t.includes(l))\n break;\n c++;\n }\n for (; u > c; ) {\n const l = u - 1, p = o.charAt(l);\n if (!a.includes(p))\n break;\n u = l;\n }\n return [\n o.slice(0, c),\n e(o.slice(c, u)),\n o.slice(u)\n ];\n}\nconst oe = ({\n theme: o = B,\n cssVariablesSelector: r,\n currentColorScheme: e\n}) => {\n v(() => {\n e && Object.entries((o == null ? void 0 : o[e]) ?? B[e]).forEach(\n ([t, a]) => {\n ((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(\n `--purpur-${Yo(t)}`,\n a\n );\n }\n );\n }, [o, r, e]);\n}, f = m({\n colorScheme: \"light\",\n currentColorScheme: \"light\",\n setColorScheme: () => {\n },\n options: {}\n}), ce = ({\n cssVariablesSelector: o,\n forceColorScheme: r,\n theme: e,\n children: t,\n options: a = {},\n ...c\n}) => {\n const [u, l] = d(r ?? \"auto\"), [p, i] = d(\n r ?? \"light\"\n );\n v(() => {\n if (r)\n l(r);\n else {\n const n = localStorage.getItem(\"colorScheme\");\n n && l(n);\n }\n }, [r]), v(() => {\n const n = window.matchMedia(\"(prefers-color-scheme: dark)\");\n i(u === \"auto\" ? n.matches ? \"dark\" : \"light\" : u);\n const s = (x) => {\n !r && u === \"auto\" && i(x.matches ? \"dark\" : \"light\");\n };\n return n.addEventListener(\"change\", s), () => {\n n.removeEventListener(\"change\", s);\n };\n }, [u, r]), oe({ theme: e, cssVariablesSelector: o, currentColorScheme: p });\n const k = C(\n () => ({\n colorScheme: u,\n currentColorScheme: p,\n setColorScheme: (n) => {\n r || (l(n), localStorage.setItem(\"colorScheme\", n));\n }\n }),\n [u, p, r]\n );\n return /* @__PURE__ */ g(f.Provider, { value: { ...k, options: a }, children: /* @__PURE__ */ g(\"div\", { className: p, ...c, children: t }) });\n}, ee = () => {\n const o = N(f);\n if (!o)\n throw new Error(\"useTheme must be used within a ThemeProvider\");\n return o;\n}, ue = () => {\n const { currentColorScheme: o, setColorScheme: r } = ee();\n return [o, r];\n};\nexport {\n ce as ThemeProvider,\n B as teliaTheme,\n oe as useApplyTheme,\n ue as useColorScheme,\n ee as useTheme\n};\n//# sourceMappingURL=theme.es.js.map\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue.call(this, arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn this && this[arg] || arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(this, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, this && this[key] || key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { forwardRef } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport { FieldErrorText } from \"@purpurds/field-error-text\";\nimport { FieldHelperText } from \"@purpurds/field-helper-text\";\nimport { Label } from \"@purpurds/label\";\nimport { useColorScheme } from \"@purpurds/theme\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./text-area.module.scss\";\n\nexport type TextAreaProps = Omit<BaseProps<\"textarea\">, \"id\"> & {\n id: string;\n /**\n * Use to render error message below the text area. The text area renders with error appearance.\n * */\n errorText?: string;\n /**\n * Use to give context about the text area's input. Renders below the text area.\n * */\n helperText?: string;\n /**\n * The label of the text area.\n * */\n label?: string;\n /**\n * The height of the text area, measured in number of rows.\n * */\n rows?: number;\n /**\n * The width of the text area, measured in number of cols.\n * */\n cols?: number;\n};\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-text-area\";\n\nexport const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n (\n {\n id,\n [\"data-testid\"]: dataTestId,\n className,\n errorText,\n helperText,\n label,\n rows = 3,\n cols = 90,\n ...props\n },\n ref\n ) => {\n const [colorScheme] = useColorScheme();\n\n const getTestId = (name: string) => (dataTestId ? `${dataTestId}-${name}` : undefined);\n\n const helperTextId = helperText ? `${id}-helper-text` : undefined;\n\n const textAreaContainerClassnames = cx(`${rootClassName}__textarea-container`, {\n [`${rootClassName}__textarea-container--disabled`]: props.disabled,\n [`${rootClassName}__textarea-container--readonly`]: props.readOnly && !props.disabled,\n });\n\n return (\n <div className={cx(className, rootClassName)} data-testid={dataTestId}>\n {label && (\n <Label\n htmlFor={id}\n disabled={props.disabled}\n className={styles[`${rootClassName}__label`]}\n data-testid={getTestId(\"label\")}\n >\n {props.required && <span aria-hidden>*</span>}\n {label}\n </Label>\n )}\n <div className={textAreaContainerClassnames}>\n <textarea\n {...props}\n ref={ref}\n id={id}\n data-testid={getTestId(\"textarea\")}\n aria-describedby={props[\"aria-describedby\"] || helperTextId}\n aria-invalid={props[\"aria-invalid\"] || !!errorText}\n className={cx(\n `${rootClassName}__textarea`,\n `${rootClassName}__textarea--${colorScheme}`,\n {\n [`${rootClassName}__textarea--error`]: !!errorText,\n }\n )}\n rows={rows}\n cols={cols}\n />\n <div className={styles[`${rootClassName}__frame`]} />\n </div>\n {helperTextId && (\n <FieldHelperText data-testid={getTestId(\"helper-text\")} id={helperTextId}>\n {helperText}\n </FieldHelperText>\n )}\n {errorText && (\n <FieldErrorText data-testid={getTestId(\"error-text\")}>{errorText}</FieldErrorText>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n"],"names":["g","e","p","c","h","i","n","r","t","s","u","y","w","b","S","f","j","$","O","q","m","_","N","A","l","d","B","M","P","C","v","a","Z","x","o","R","E","D","V","ee","ue","hasOwn","classNames","classes","arg","appendClass","parseValue","key","value","newClass","module","cx","styles","rootClassName","TextArea","forwardRef","id","dataTestId","className","errorText","helperText","label","rows","cols","props","ref","colorScheme","useColorScheme","getTestId","name","helperTextId","textAreaContainerClassnames","jsxs","Label","jsx","FieldHelperText","FieldErrorText"],"mappings":"ubACA,SAASA,EAAEC,EAAG,CACZ,OAAOA,GAAKA,EAAE,YAAc,OAAO,UAAU,eAAe,KAAKA,EAAG,SAAS,EAAIA,EAAE,QAAUA,CAC/F,CACA,IAAIC,EAAI,CAAE,QAAS,EAAI,EACvB;AAAA;AAAA;AAAA;AAAA,EAKA,IAAIC,EACJ,SAASC,GAAI,CACX,OAAOD,IAAMA,EAAI,EAAG,SAASF,EAAG,EAC7B,UAAW,CACV,IAAII,EAAI,CAAA,EAAG,eACX,SAASC,GAAI,CACX,QAASC,EAAI,GAAIC,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CACjD,IAAI,EAAI,UAAUA,CAAC,EACnB,IAAMD,EAAIE,EAAEF,EAAGG,EAAE,KAAK,KAAM,CAAC,CAAC,EACxC,CACQ,OAAOH,CACf,CACM,SAASG,EAAEH,EAAG,CACZ,GAAI,OAAOA,GAAK,UAAY,OAAOA,GAAK,SACtC,OAAO,MAAQ,KAAKA,CAAC,GAAKA,EAC5B,GAAI,OAAOA,GAAK,SACd,MAAO,GACT,GAAI,MAAM,QAAQA,CAAC,EACjB,OAAOD,EAAE,MAAM,KAAMC,CAAC,EACxB,GAAIA,EAAE,WAAa,OAAO,UAAU,UAAY,CAACA,EAAE,SAAS,WAAW,SAAS,eAAe,EAC7F,OAAOA,EAAE,SAAU,EACrB,IAAIC,EAAI,GACR,QAAS,KAAKD,EACZF,EAAE,KAAKE,EAAG,CAAC,GAAKA,EAAE,CAAC,IAAMC,EAAIC,EAAED,EAAG,MAAQ,KAAK,CAAC,GAAK,CAAC,GACxD,OAAOA,CACf,CACM,SAASC,EAAEF,EAAGC,EAAG,CACf,OAAOA,EAAID,EAAIA,EAAI,IAAMC,EAAID,EAAIC,EAAID,CAC7C,CACMN,EAAE,SAAWK,EAAE,QAAUA,E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a,EAAG,cAAaI,EACxD,SAAA,CACCI,GAAAW,EAAA,KAACC,GAAA,CACC,QAASjB,EACT,SAAUQ,EAAM,SAChB,UAAWZ,EAAO,GAAGC,CAAa,SAAS,EAC3C,cAAae,EAAU,OAAO,EAE7B,SAAA,CAAAJ,EAAM,UAAYU,EAAAA,IAAC,OAAK,CAAA,cAAW,GAAC,SAAC,IAAA,EACrCb,CAAA,CAAA,CACH,EAEFW,EAAAA,KAAC,MAAI,CAAA,UAAWD,EACd,SAAA,CAAAG,EAAA,IAAC,WAAA,CACE,GAAGV,EACJ,IAAAC,EACA,GAAAT,EACA,cAAaY,EAAU,UAAU,EACjC,mBAAkBJ,EAAM,kBAAkB,GAAKM,EAC/C,eAAcN,EAAM,cAAc,GAAK,CAAC,CAACL,EACzC,UAAWR,EACT,GAAGE,CAAa,aAChB,GAAGA,CAAa,eAAea,CAAW,GAC1C,CACE,CAAC,GAAGb,CAAa,mBAAmB,EAAG,CAAC,CAACM,CAAA,CAE7C,EACA,KAAAG,EACA,KAAAC,CAAA,CACF,QACC,MAAI,CAAA,UAAWX,EAAO,GAAGC,CAAa,SAAS,CAAG,CAAA,CAAA,EACrD,EACCiB,SACEK,GAAgB,CAAA,cAAaP,EAAU,aAAa,EAAG,GAAIE,EACzD,SACHV,CAAA,CAAA,EAEDD,GACEe,EAAAA,IAAAE,GAAA,CAAe,cAAaR,EAAU,YAAY,EAAI,SAAUT,CAAA,CAAA,CAAA,EAErE,CAAA,CAGN,EAEAL,EAAS,YAAc","x_google_ignoreList":[4]}
@@ -1,6 +1,6 @@
1
- import { jsxs as f, jsx as s, Fragment as T } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as s, Fragment as z } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import { createContext as z, useContext as I, forwardRef as L } from "react";
3
+ import { createContext as I, useContext as L, forwardRef as T } from "react";
4
4
  import "react-dom";
5
5
  function k(r) {
6
6
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
@@ -18,8 +18,8 @@ function H() {
18
18
  var a = {}.hasOwnProperty;
19
19
  function n() {
20
20
  for (var e = "", t = 0; t < arguments.length; t++) {
21
- var u = arguments[t];
22
- u && (e = o(e, i.call(this, u)));
21
+ var o = arguments[t];
22
+ o && (e = u(e, i.call(this, o)));
23
23
  }
24
24
  return e;
25
25
  }
@@ -33,11 +33,11 @@ function H() {
33
33
  if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
34
34
  return e.toString();
35
35
  var t = "";
36
- for (var u in e)
37
- a.call(e, u) && e[u] && (t = o(t, this && this[u] || u));
36
+ for (var o in e)
37
+ a.call(e, o) && e[o] && (t = u(t, this && this[o] || o));
38
38
  return t;
39
39
  }
40
- function o(e, t) {
40
+ function u(e, t) {
41
41
  return t ? e ? e + " " + t : e + t : e;
42
42
  }
43
43
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
@@ -61,12 +61,12 @@ const J = /* @__PURE__ */ k(G), K = {
61
61
  a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
62
62
  ], i = a ? `<title>${a}</title>` : "";
63
63
  return `<svg ${X(n)}>${i}${r}</svg>`;
64
- }, ee = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), M = ({ svg: r, allyTitle: a, className: n, size: i = U, ...o }) => {
64
+ }, ee = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), M = ({ svg: r, allyTitle: a, className: n, size: i = U, ...u }) => {
65
65
  const e = Y({
66
66
  content: ee(r.svg),
67
67
  title: a
68
68
  }), t = Q(n, S, `${S}--${i}`);
69
- return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: e }, ...o });
69
+ return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: e }, ...u });
70
70
  };
71
71
  M.displayName = "Icon";
72
72
  const re = {
@@ -91,8 +91,8 @@ function ne() {
91
91
  var a = {}.hasOwnProperty;
92
92
  function n() {
93
93
  for (var e = "", t = 0; t < arguments.length; t++) {
94
- var u = arguments[t];
95
- u && (e = o(e, i.call(this, u)));
94
+ var o = arguments[t];
95
+ o && (e = u(e, i.call(this, o)));
96
96
  }
97
97
  return e;
98
98
  }
@@ -106,11 +106,11 @@ function ne() {
106
106
  if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
107
107
  return e.toString();
108
108
  var t = "";
109
- for (var u in e)
110
- a.call(e, u) && e[u] && (t = o(t, this && this[u] || u));
109
+ for (var o in e)
110
+ a.call(e, o) && e[o] && (t = u(t, this && this[o] || o));
111
111
  return t;
112
112
  }
113
- function o(e, t) {
113
+ function u(e, t) {
114
114
  return t ? e ? e + " " + t : e + t : e;
115
115
  }
116
116
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
@@ -118,27 +118,27 @@ function ne() {
118
118
  }(q)), q.exports;
119
119
  }
120
120
  var ae = ne();
121
- const ie = /* @__PURE__ */ te(ae), oe = {
121
+ const ie = /* @__PURE__ */ te(ae), ue = {
122
122
  "purpur-field-error-text": "_purpur-field-error-text_u1cy2_1",
123
123
  "purpur-field-error-text--negative": "_purpur-field-error-text--negative_u1cy2_11",
124
124
  "purpur-field-error-text__icon": "_purpur-field-error-text__icon_u1cy2_14"
125
- }, O = ie.bind(oe), x = "purpur-field-error-text", ue = ({
125
+ }, O = ie.bind(ue), h = "purpur-field-error-text", oe = ({
126
126
  children: r,
127
127
  className: a,
128
128
  negative: n = !1,
129
129
  ["aria-relevant"]: i = "additions text",
130
- ...o
130
+ ...u
131
131
  }) => /* @__PURE__ */ f(
132
132
  "div",
133
133
  {
134
- className: O(a, x, {
135
- [`${x}--negative`]: n
134
+ className: O(a, h, {
135
+ [`${h}--negative`]: n
136
136
  }),
137
137
  "aria-live": "assertive",
138
138
  "aria-relevant": i,
139
- ...o,
139
+ ...u,
140
140
  children: [
141
- /* @__PURE__ */ s(M, { svg: re, size: "xs", className: O(`${x}__icon`) }),
141
+ /* @__PURE__ */ s(M, { svg: re, size: "xs", className: O(`${h}__icon`) }),
142
142
  r
143
143
  ]
144
144
  }
@@ -159,8 +159,8 @@ function se() {
159
159
  var a = {}.hasOwnProperty;
160
160
  function n() {
161
161
  for (var e = "", t = 0; t < arguments.length; t++) {
162
- var u = arguments[t];
163
- u && (e = o(e, i.call(this, u)));
162
+ var o = arguments[t];
163
+ o && (e = u(e, i.call(this, o)));
164
164
  }
165
165
  return e;
166
166
  }
@@ -174,11 +174,11 @@ function se() {
174
174
  if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
175
175
  return e.toString();
176
176
  var t = "";
177
- for (var u in e)
178
- a.call(e, u) && e[u] && (t = o(t, this && this[u] || u));
177
+ for (var o in e)
178
+ a.call(e, o) && e[o] && (t = u(t, this && this[o] || o));
179
179
  return t;
180
180
  }
181
- function o(e, t) {
181
+ function u(e, t) {
182
182
  return t ? e ? e + " " + t : e + t : e;
183
183
  }
184
184
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
@@ -190,17 +190,17 @@ const ce = /* @__PURE__ */ le(pe), de = {
190
190
  "purpur-field-helper-text": "_purpur-field-helper-text_11nsh_1",
191
191
  "purpur-field-helper-text--disabled": "_purpur-field-helper-text--disabled_11nsh_9",
192
192
  "purpur-field-helper-text--negative": "_purpur-field-helper-text--negative_11nsh_12"
193
- }, fe = ce.bind(de), h = "purpur-field-helper-text", _e = ({
193
+ }, fe = ce.bind(de), x = "purpur-field-helper-text", _e = ({
194
194
  children: r,
195
195
  className: a,
196
196
  disabled: n,
197
197
  id: i,
198
- negative: o,
198
+ negative: u,
199
199
  ...e
200
200
  }) => {
201
- const t = fe(a, h, {
202
- [`${h}--disabled`]: n,
203
- [`${h}--negative`]: o
201
+ const t = fe(a, x, {
202
+ [`${x}--disabled`]: n,
203
+ [`${x}--negative`]: u
204
204
  });
205
205
  return /* @__PURE__ */ s("span", { id: i, className: t, ...e, children: r });
206
206
  };
@@ -209,27 +209,27 @@ function A(r, a) {
209
209
  return r(a);
210
210
  r != null && (r.current = a);
211
211
  }
212
- function xe(...r) {
212
+ function he(...r) {
213
213
  return (a) => {
214
214
  let n = !1;
215
- const i = r.map((o) => {
216
- const e = A(o, a);
215
+ const i = r.map((u) => {
216
+ const e = A(u, a);
217
217
  return !n && typeof e == "function" && (n = !0), e;
218
218
  });
219
219
  if (n)
220
220
  return () => {
221
- for (let o = 0; o < i.length; o++) {
222
- const e = i[o];
223
- typeof e == "function" ? e() : A(r[o], null);
221
+ for (let u = 0; u < i.length; u++) {
222
+ const e = i[u];
223
+ typeof e == "function" ? e() : A(r[u], null);
224
224
  }
225
225
  };
226
226
  };
227
227
  }
228
228
  var D = l.forwardRef((r, a) => {
229
- const { children: n, ...i } = r, o = l.Children.toArray(n), e = o.find(ve);
229
+ const { children: n, ...i } = r, u = l.Children.toArray(n), e = u.find(ve);
230
230
  if (e) {
231
- const t = e.props.children, u = o.map((p) => p === e ? l.Children.count(t) > 1 ? l.Children.only(null) : l.isValidElement(t) ? t.props.children : null : p);
232
- return /* @__PURE__ */ s(y, { ...i, ref: a, children: l.isValidElement(t) ? l.cloneElement(t, void 0, u) : null });
231
+ const t = e.props.children, o = u.map((p) => p === e ? l.Children.count(t) > 1 ? l.Children.only(null) : l.isValidElement(t) ? t.props.children : null : p);
232
+ return /* @__PURE__ */ s(y, { ...i, ref: a, children: l.isValidElement(t) ? l.cloneElement(t, void 0, o) : null });
233
233
  }
234
234
  return /* @__PURE__ */ s(y, { ...i, ref: a, children: n });
235
235
  });
@@ -237,30 +237,30 @@ D.displayName = "Slot";
237
237
  var y = l.forwardRef((r, a) => {
238
238
  const { children: n, ...i } = r;
239
239
  if (l.isValidElement(n)) {
240
- const o = ge(n), e = me(i, n.props);
241
- return n.type !== l.Fragment && (e.ref = a ? xe(a, o) : o), l.cloneElement(n, e);
240
+ const u = ge(n), e = me(i, n.props);
241
+ return n.type !== l.Fragment && (e.ref = a ? he(a, u) : u), l.cloneElement(n, e);
242
242
  }
243
243
  return l.Children.count(n) > 1 ? l.Children.only(null) : null;
244
244
  });
245
245
  y.displayName = "SlotClone";
246
- var he = ({ children: r }) => /* @__PURE__ */ s(T, { children: r });
246
+ var xe = ({ children: r }) => /* @__PURE__ */ s(z, { children: r });
247
247
  function ve(r) {
248
- return l.isValidElement(r) && r.type === he;
248
+ return l.isValidElement(r) && r.type === xe;
249
249
  }
250
250
  function me(r, a) {
251
251
  const n = { ...a };
252
252
  for (const i in a) {
253
- const o = r[i], e = a[i];
254
- /^on[A-Z]/.test(i) ? o && e ? n[i] = (...t) => {
255
- e(...t), o(...t);
256
- } : o && (n[i] = o) : i === "style" ? n[i] = { ...o, ...e } : i === "className" && (n[i] = [o, e].filter(Boolean).join(" "));
253
+ const u = r[i], e = a[i];
254
+ /^on[A-Z]/.test(i) ? u && e ? n[i] = (...t) => {
255
+ e(...t), u(...t);
256
+ } : u && (n[i] = u) : i === "style" ? n[i] = { ...u, ...e } : i === "className" && (n[i] = [u, e].filter(Boolean).join(" "));
257
257
  }
258
258
  return { ...r, ...n };
259
259
  }
260
260
  function ge(r) {
261
261
  var a, n;
262
- let i = (a = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : a.get, o = i && "isReactWarning" in i && i.isReactWarning;
263
- return o ? r.ref : (i = (n = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : n.get, o = i && "isReactWarning" in i && i.isReactWarning, o ? r.props.ref : r.props.ref || r.ref);
262
+ let i = (a = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : a.get, u = i && "isReactWarning" in i && i.isReactWarning;
263
+ return u ? r.ref : (i = (n = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : n.get, u = i && "isReactWarning" in i && i.isReactWarning, u ? r.props.ref : r.props.ref || r.ref);
264
264
  }
265
265
  var ye = [
266
266
  "a",
@@ -280,9 +280,9 @@ var ye = [
280
280
  "svg",
281
281
  "ul"
282
282
  ], be = ye.reduce((r, a) => {
283
- const n = l.forwardRef((i, o) => {
284
- const { asChild: e, ...t } = i, u = e ? D : a;
285
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(u, { ...t, ref: o });
283
+ const n = l.forwardRef((i, u) => {
284
+ const { asChild: e, ...t } = i, o = e ? D : a;
285
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(o, { ...t, ref: u });
286
286
  });
287
287
  return n.displayName = `Primitive.${a}`, { ...r, [a]: n };
288
288
  }, {}), $e = "Label", B = l.forwardRef((r, a) => /* @__PURE__ */ s(
@@ -314,8 +314,8 @@ function qe() {
314
314
  var a = {}.hasOwnProperty;
315
315
  function n() {
316
316
  for (var e = "", t = 0; t < arguments.length; t++) {
317
- var u = arguments[t];
318
- u && (e = o(e, i.call(this, u)));
317
+ var o = arguments[t];
318
+ o && (e = u(e, i.call(this, o)));
319
319
  }
320
320
  return e;
321
321
  }
@@ -329,11 +329,11 @@ function qe() {
329
329
  if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
330
330
  return e.toString();
331
331
  var t = "";
332
- for (var u in e)
333
- a.call(e, u) && e[u] && (t = o(t, this && this[u] || u));
332
+ for (var o in e)
333
+ a.call(e, o) && e[o] && (t = u(t, this && this[o] || o));
334
334
  return t;
335
335
  }
336
- function o(e, t) {
336
+ function u(e, t) {
337
337
  return t ? e ? e + " " + t : e + t : e;
338
338
  }
339
339
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
@@ -350,25 +350,26 @@ const Oe = /* @__PURE__ */ Se(Ne), je = {
350
350
  className: a,
351
351
  disabled: n,
352
352
  negative: i = !1,
353
- ...o
353
+ ...u
354
354
  }) => {
355
355
  const e = Ce(a, v, {
356
356
  [`${v}--disabled`]: n,
357
357
  [`${v}--negative`]: i
358
358
  });
359
- return /* @__PURE__ */ s(we, { className: e, ...o, children: r });
360
- }, Pe = z({
359
+ return /* @__PURE__ */ s(we, { className: e, ...u, children: r });
360
+ }, Pe = I({
361
361
  colorScheme: "light",
362
+ currentColorScheme: "light",
362
363
  setColorScheme: () => {
363
364
  },
364
365
  options: {}
365
366
  }), Re = () => {
366
- const r = I(Pe);
367
+ const r = L(Pe);
367
368
  if (!r)
368
369
  throw new Error("useTheme must be used within a ThemeProvider");
369
370
  return r;
370
371
  }, Ee = () => {
371
- const { colorScheme: r, setColorScheme: a } = Re();
372
+ const { currentColorScheme: r, setColorScheme: a } = Re();
372
373
  return [r, a];
373
374
  };
374
375
  function Me(r) {
@@ -387,8 +388,8 @@ function De() {
387
388
  var a = {}.hasOwnProperty;
388
389
  function n() {
389
390
  for (var e = "", t = 0; t < arguments.length; t++) {
390
- var u = arguments[t];
391
- u && (e = o(e, i.call(this, u)));
391
+ var o = arguments[t];
392
+ o && (e = u(e, i.call(this, o)));
392
393
  }
393
394
  return e;
394
395
  }
@@ -402,11 +403,11 @@ function De() {
402
403
  if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
403
404
  return e.toString();
404
405
  var t = "";
405
- for (var u in e)
406
- a.call(e, u) && e[u] && (t = o(t, this && this[u] || u));
406
+ for (var o in e)
407
+ a.call(e, o) && e[o] && (t = u(t, this && this[o] || o));
407
408
  return t;
408
409
  }
409
- function o(e, t) {
410
+ function u(e, t) {
410
411
  return t ? e ? e + " " + t : e + t : e;
411
412
  }
412
413
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
@@ -427,19 +428,19 @@ const Ve = /* @__PURE__ */ Me(Be), b = {
427
428
  "purpur-text-area__textarea--dark": "_purpur-text-area__textarea--dark_1qqf0_60",
428
429
  "purpur-text-area__textarea--valid": "_purpur-text-area__textarea--valid_1qqf0_91",
429
430
  "purpur-text-area__textarea--error": "_purpur-text-area__textarea--error_1qqf0_91"
430
- }, g = Ve.bind(b), c = "purpur-text-area", Ze = L(
431
+ }, g = Ve.bind(b), c = "purpur-text-area", Ze = T(
431
432
  ({
432
433
  id: r,
433
434
  ["data-testid"]: a,
434
435
  className: n,
435
436
  errorText: i,
436
- helperText: o,
437
+ helperText: u,
437
438
  label: e,
438
439
  rows: t = 3,
439
- cols: u = 90,
440
+ cols: o = 90,
440
441
  ...p
441
442
  }, V) => {
442
- const [Z] = Ee(), d = (W) => a ? `${a}-${W}` : void 0, _ = o ? `${r}-helper-text` : void 0, F = g(`${c}__textarea-container`, {
443
+ const [Z] = Ee(), d = (W) => a ? `${a}-${W}` : void 0, _ = u ? `${r}-helper-text` : void 0, F = g(`${c}__textarea-container`, {
443
444
  [`${c}__textarea-container--disabled`]: p.disabled,
444
445
  [`${c}__textarea-container--readonly`]: p.readOnly && !p.disabled
445
446
  });
@@ -475,13 +476,13 @@ const Ve = /* @__PURE__ */ Me(Be), b = {
475
476
  }
476
477
  ),
477
478
  rows: t,
478
- cols: u
479
+ cols: o
479
480
  }
480
481
  ),
481
482
  /* @__PURE__ */ s("div", { className: b[`${c}__frame`] })
482
483
  ] }),
483
- _ && /* @__PURE__ */ s(_e, { "data-testid": d("helper-text"), id: _, children: o }),
484
- i && /* @__PURE__ */ s(ue, { "data-testid": d("error-text"), children: i })
484
+ _ && /* @__PURE__ */ s(_e, { "data-testid": d("helper-text"), id: _, children: u }),
485
+ i && /* @__PURE__ */ s(oe, { "data-testid": d("error-text"), children: i })
485
486
  ] });
486
487
  }
487
488
  );
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.es.js","sources":["../../field-error-text/dist/field-error-text.es.js","../../field-helper-text/dist/field-helper-text.es.js","../../label/dist/label.es.js","../../../libraries/theme/dist/theme.es.js","../../../common/temp/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/bind.js","../src/text-area.tsx"],"sourcesContent":["import { jsx as _, jsxs as x } from \"react/jsx-runtime\";\nfunction g(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar p = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar c;\nfunction h() {\n return c || (c = 1, function(e) {\n (function() {\n var i = {}.hasOwnProperty;\n function n() {\n for (var r = \"\", t = 0; t < arguments.length; t++) {\n var o = arguments[t];\n o && (r = s(r, u.call(this, o)));\n }\n return r;\n }\n function u(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return n.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var t = \"\";\n for (var o in r)\n i.call(r, o) && r[o] && (t = s(t, this && this[o] || o));\n return t;\n }\n function s(r, t) {\n return t ? r ? r + \" \" + t : r + t : r;\n }\n e.exports ? (n.default = n, e.exports = n) : window.classNames = n;\n })();\n }(p)), p.exports;\n}\nvar y = h();\nconst w = /* @__PURE__ */ g(y), b = {\n \"purpur-icon\": \"_purpur-icon_8u1lq_1\",\n \"purpur-icon--xxs\": \"_purpur-icon--xxs_8u1lq_4\",\n \"purpur-icon--xs\": \"_purpur-icon--xs_8u1lq_8\",\n \"purpur-icon--sm\": \"_purpur-icon--sm_8u1lq_12\",\n \"purpur-icon--md\": \"_purpur-icon--md_8u1lq_16\",\n \"purpur-icon--lg\": \"_purpur-icon--lg_8u1lq_20\",\n \"purpur-icon--xl\": \"_purpur-icon--xl_8u1lq_24\"\n}, S = w.bind(b), f = \"purpur-icon\", j = \"md\", $ = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}=\"${i.value}\"`).join(\" \"), O = ({ content: e = \"\", title: i } = {}) => {\n const n = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"currentColor\" },\n { name: \"viewBox\", value: \"0 0 24 24\" },\n i ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], u = i ? `<title>${i}</title>` : \"\";\n return `<svg ${$(n)}>${u}${e}</svg>`;\n}, q = (e) => e.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), m = ({ svg: e, allyTitle: i, className: n, size: u = j, ...s }) => {\n const r = O({\n content: q(e.svg),\n title: i\n }), t = S(n, f, `${f}--${u}`);\n return /* @__PURE__ */ _(\"span\", { className: t, dangerouslySetInnerHTML: { __html: r }, ...s });\n};\nm.displayName = \"Icon\";\nconst N = {\n name: \"error-filled\",\n 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>',\n keywords: [\"error-filled\"],\n category: \"status\"\n};\nfunction A(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar l = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar d;\nfunction B() {\n return d || (d = 1, function(e) {\n (function() {\n var i = {}.hasOwnProperty;\n function n() {\n for (var r = \"\", t = 0; t < arguments.length; t++) {\n var o = arguments[t];\n o && (r = s(r, u.call(this, o)));\n }\n return r;\n }\n function u(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return n.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var t = \"\";\n for (var o in r)\n i.call(r, o) && r[o] && (t = s(t, this && this[o] || o));\n return t;\n }\n function s(r, t) {\n return t ? r ? r + \" \" + t : r + t : r;\n }\n e.exports ? (n.default = n, e.exports = n) : window.classNames = n;\n })();\n }(l)), l.exports;\n}\nvar M = B();\nconst P = /* @__PURE__ */ A(M), C = {\n \"purpur-field-error-text\": \"_purpur-field-error-text_u1cy2_1\",\n \"purpur-field-error-text--negative\": \"_purpur-field-error-text--negative_u1cy2_11\",\n \"purpur-field-error-text__icon\": \"_purpur-field-error-text__icon_u1cy2_14\"\n}, v = P.bind(C), T = [\n \"additions text\",\n \"additions\",\n \"removals\",\n \"text\",\n \"all\"\n], a = \"purpur-field-error-text\", Z = ({\n children: e,\n className: i,\n negative: n = !1,\n [\"aria-relevant\"]: u = \"additions text\",\n ...s\n}) => /* @__PURE__ */ x(\n \"div\",\n {\n className: v(i, a, {\n [`${a}--negative`]: n\n }),\n \"aria-live\": \"assertive\",\n \"aria-relevant\": u,\n ...s,\n children: [\n /* @__PURE__ */ _(m, { svg: N, size: \"xs\", className: v(`${a}__icon`) }),\n e\n ]\n }\n);\nexport {\n Z as FieldErrorText,\n T as ariaRelevantValues\n};\n//# sourceMappingURL=field-error-text.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nfunction c(r) {\n return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n}\nvar u = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar f;\nfunction d() {\n return f || (f = 1, function(r) {\n (function() {\n var p = {}.hasOwnProperty;\n function n() {\n for (var t = \"\", e = 0; e < arguments.length; e++) {\n var s = arguments[e];\n s && (t = i(t, o.call(this, s)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return n.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var e = \"\";\n for (var s in t)\n p.call(t, s) && t[s] && (e = i(e, this && this[s] || s));\n return e;\n }\n function i(t, e) {\n return e ? t ? t + \" \" + e : t + e : t;\n }\n r.exports ? (n.default = n, r.exports = n) : window.classNames = n;\n })();\n }(u)), u.exports;\n}\nvar h = d();\nconst x = /* @__PURE__ */ c(h), _ = {\n \"purpur-field-helper-text\": \"_purpur-field-helper-text_11nsh_1\",\n \"purpur-field-helper-text--disabled\": \"_purpur-field-helper-text--disabled_11nsh_9\",\n \"purpur-field-helper-text--negative\": \"_purpur-field-helper-text--negative_11nsh_12\"\n}, b = x.bind(_), l = \"purpur-field-helper-text\", m = ({\n children: r,\n className: p,\n disabled: n,\n id: o,\n negative: i,\n ...t\n}) => {\n const e = b(p, l, {\n [`${l}--disabled`]: n,\n [`${l}--negative`]: i\n });\n return /* @__PURE__ */ a(\"span\", { id: o, className: e, ...t, children: r });\n};\nexport {\n m as FieldHelperText\n};\n//# sourceMappingURL=field-helper-text.es.js.map\n","import { jsx as u, Fragment as v } from \"react/jsx-runtime\";\nimport * as s from \"react\";\nimport \"react-dom\";\nfunction m(e, n) {\n if (typeof e == \"function\")\n return e(n);\n e != null && (e.current = n);\n}\nfunction g(...e) {\n return (n) => {\n let r = !1;\n const o = e.map((i) => {\n const t = m(i, n);\n return !r && typeof t == \"function\" && (r = !0), t;\n });\n if (r)\n return () => {\n for (let i = 0; i < o.length; i++) {\n const t = o[i];\n typeof t == \"function\" ? t() : m(e[i], null);\n }\n };\n };\n}\nvar y = s.forwardRef((e, n) => {\n const { children: r, ...o } = e, i = s.Children.toArray(r), t = i.find(N);\n if (t) {\n const l = t.props.children, a = i.map((d) => d === t ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : d);\n return /* @__PURE__ */ u(p, { ...o, ref: n, children: s.isValidElement(l) ? s.cloneElement(l, void 0, a) : null });\n }\n return /* @__PURE__ */ u(p, { ...o, ref: n, children: r });\n});\ny.displayName = \"Slot\";\nvar p = s.forwardRef((e, n) => {\n const { children: r, ...o } = e;\n if (s.isValidElement(r)) {\n const i = S(r), t = R(o, r.props);\n return r.type !== s.Fragment && (t.ref = n ? g(n, i) : i), s.cloneElement(r, t);\n }\n return s.Children.count(r) > 1 ? s.Children.only(null) : null;\n});\np.displayName = \"SlotClone\";\nvar w = ({ children: e }) => /* @__PURE__ */ u(v, { children: e });\nfunction N(e) {\n return s.isValidElement(e) && e.type === w;\n}\nfunction R(e, n) {\n const r = { ...n };\n for (const o in n) {\n const i = e[o], t = n[o];\n /^on[A-Z]/.test(o) ? i && t ? r[o] = (...a) => {\n t(...a), i(...a);\n } : i && (r[o] = i) : o === \"style\" ? r[o] = { ...i, ...t } : o === \"className\" && (r[o] = [i, t].filter(Boolean).join(\" \"));\n }\n return { ...e, ...r };\n}\nfunction S(e) {\n var o, i;\n let n = (o = Object.getOwnPropertyDescriptor(e.props, \"ref\")) == null ? void 0 : o.get, r = n && \"isReactWarning\" in n && n.isReactWarning;\n return r ? e.ref : (n = (i = Object.getOwnPropertyDescriptor(e, \"ref\")) == null ? void 0 : i.get, r = n && \"isReactWarning\" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);\n}\nvar C = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n], E = C.reduce((e, n) => {\n const r = s.forwardRef((o, i) => {\n const { asChild: t, ...l } = o, a = t ? y : n;\n return typeof window < \"u\" && (window[Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ u(a, { ...l, ref: i });\n });\n return r.displayName = `Primitive.${n}`, { ...e, [n]: r };\n}, {}), x = \"Label\", h = s.forwardRef((e, n) => /* @__PURE__ */ u(\n E.label,\n {\n ...e,\n ref: n,\n onMouseDown: (r) => {\n var i;\n r.target.closest(\"button, input, select, textarea\") || ((i = e.onMouseDown) == null || i.call(e, r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());\n }\n }\n));\nh.displayName = x;\nvar P = h;\nfunction _(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar f = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar b;\nfunction O() {\n return b || (b = 1, function(e) {\n (function() {\n var n = {}.hasOwnProperty;\n function r() {\n for (var t = \"\", l = 0; l < arguments.length; l++) {\n var a = arguments[l];\n a && (t = i(t, o.call(this, a)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return r.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var l = \"\";\n for (var a in t)\n n.call(t, a) && t[a] && (l = i(l, this && this[a] || a));\n return l;\n }\n function i(t, l) {\n return l ? t ? t + \" \" + l : t + l : t;\n }\n e.exports ? (r.default = r, e.exports = r) : window.classNames = r;\n })();\n }(f)), f.exports;\n}\nvar j = O();\nconst D = /* @__PURE__ */ _(j), V = {\n \"purpur-label\": \"_purpur-label_1x80u_1\",\n \"purpur-label--negative\": \"_purpur-label--negative_1x80u_8\",\n \"purpur-label--disabled\": \"_purpur-label--disabled_1x80u_11\"\n}, A = D.bind(V), c = \"purpur-label\", $ = ({\n children: e,\n className: n,\n disabled: r,\n negative: o = !1,\n ...i\n}) => {\n const t = A(n, c, {\n [`${c}--disabled`]: r,\n [`${c}--negative`]: o\n });\n return /* @__PURE__ */ u(P, { className: t, ...i, children: e });\n};\nexport {\n $ as Label\n};\n//# sourceMappingURL=label.es.js.map\n","import { jsx as g } from \"react/jsx-runtime\";\nimport { useEffect as v, createContext as m, useState as d, useContext as C } from \"react\";\nconst N = {\n colorBrandDeepPurple: \"var(--purpur-color-purple-100)\",\n colorBrandCorePurple: \"var(--purpur-color-purple-400)\",\n colorBrandLightPurple: \"var(--purpur-color-purple-900)\",\n colorBrandDeepBeige: \"var(--purpur-color-beige-100)\",\n colorBrandBeige: \"var(--purpur-color-beige-700)\",\n colorBrandLightBeige: \"var(--purpur-color-beige-800)\",\n colorBrandOffBlack: \"var(--purpur-color-functional-white)\",\n colorBrandWhite: \"var(--purpur-color-gray-900)\",\n colorTextDefault: \"var(--purpur-color-transparent-white-950)\",\n colorTextMedium: \"var(--purpur-color-transparent-white-700)\",\n colorTextWeak: \"var(--purpur-color-transparent-white-400)\",\n colorTextDefaultNegative: \"var(--purpur-color-transparent-black-800)\",\n colorTextMediumNegative: \"var(--purpur-color-transparent-black-500)\",\n colorTextWeakNegative: \"var(--purpur-color-transparent-black-400)\",\n colorTextInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorTextInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorTextInteractivePrimaryActive: \"var(--purpur-color-purple-300)\",\n colorTextInteractiveOnPrimary: \"var(--purpur-color-purple-800)\",\n colorTextInteractiveOnExpressive: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveHover: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnExpressiveActive: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnDestructive: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveSelected: \"var(--purpur-color-purple-300)\",\n colorTextInteractivePrimaryNegative: \"var(--purpur-color-purple-700)\",\n colorTextInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-800)\",\n colorTextInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnPrimaryNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveHoverNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveActiveNegative: \"var(--purpur-color-functional-white)\",\n colorTextStatusInfoMedium: \"var(--purpur-color-blue-400)\",\n colorTextStatusInfoStrong: \"var(--purpur-color-blue-200)\",\n colorTextStatusSuccessMedium: \"var(--purpur-color-green-400)\",\n colorTextStatusSuccessStrong: \"var(--purpur-color-green-200)\",\n colorTextStatusWarningMedium: \"var(--purpur-color-orange-300)\",\n colorTextStatusWarningStrong: \"var(--purpur-color-orange-200)\",\n colorTextStatusErrorMedium: \"var(--purpur-color-red-400)\",\n colorTextStatusErrorStrong: \"var(--purpur-color-red-200)\",\n colorTextStatusNeutral: \"var(--purpur-color-functional-white)\",\n colorTextStatusSpecial: \"var(--purpur-color-functional-white)\",\n colorTextStatusAttention: \"var(--purpur-color-purple-800)\",\n colorTextStatusDiscount: \"var(--purpur-color-purple-300)\",\n colorTextStatusBlackFriday: \"var(--purpur-color-gray-900)\",\n colorTextStatusSuccessStrongNegative: \"var(--purpur-color-green-700)\",\n colorTextStatusErrorMediumNegative: \"var(--purpur-color-red-500)\",\n colorTextStatusErrorStrongNegative: \"var(--purpur-color-red-700)\",\n colorTextStatusWarningMediumNegative: \"var(--purpur-color-orange-500)\",\n colorTextToneOnTonePrimary: \"var(--purpur-color-purple-900)\",\n colorTextToneOnToneSecondary: \"var(--purpur-color-purple-100)\",\n colorTextToneOnToneTertiary: \"var(--purpur-color-functional-white)\",\n colorBackgroundPrimary: \"var(--purpur-color-gray-950)\",\n colorBackgroundSecondary: \"var(--purpur-color-gray-900)\",\n colorBackgroundOnImage: \"var(--purpur-color-transparent-black-700)\",\n colorBackgroundPrimaryNegative: \"var(--purpur-color-functional-white)\",\n colorBackgroundSecondaryNegative: \"var(--purpur-color-gray-50)\",\n colorBackgroundOnImageNegative: \"var(--purpur-color-transparent-white-850)\",\n colorBackgroundInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorBackgroundInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorBackgroundInteractivePrimaryActive: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveExpressive: \"var(--purpur-color-purple-550)\",\n colorBackgroundInteractiveExpressiveHover: \"var(--purpur-color-purple-400)\",\n colorBackgroundInteractiveExpressiveActive: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveTransparentHover: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractiveTransparentActive: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractiveDisabled: \"var(--purpur-color-transparent-white-100)\",\n colorBackgroundInteractiveReadOnly: \"var(--purpur-color-transparent-white-50)\",\n colorBackgroundInteractiveInactive: \"var(--purpur-color-transparent-white-150)\",\n colorBackgroundInteractiveDestructive: \"var(--purpur-color-red-500)\",\n colorBackgroundInteractiveDestructiveHover: \"var(--purpur-color-red-600)\",\n colorBackgroundInteractiveDestructiveActive: \"var(--purpur-color-red-700)\",\n colorBackgroundInteractiveAutoFill: \"var(--purpur-color-blue-800)\",\n colorBackgroundInteractivePrimaryNegative: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-600)\",\n colorBackgroundInteractiveExpressiveNegative: \"var(--purpur-color-purple-550)\",\n colorBackgroundInteractiveExpressiveHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractiveExpressiveActiveNegative: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractiveTransparentHoverNegative: \"var(--purpur-color-purple-200)\",\n colorBackgroundInteractiveTransparentActiveNegative: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveDisabledNegative: \"var(--purpur-color-transparent-black-100)\",\n colorBackgroundInteractiveInactiveNegative: \"var(--purpur-color-transparent-black-50)\",\n colorBackgroundInteractiveReadOnlyNegative: \"var(--purpur-color-transparent-black-50)\",\n colorBackgroundStatusInfoMedium: \"var(--purpur-color-blue-800)\",\n colorBackgroundStatusInfoStrong: \"var(--purpur-color-blue-300)\",\n colorBackgroundStatusSuccessMedium: \"var(--purpur-color-green-800)\",\n colorBackgroundStatusSuccessStrong: \"var(--purpur-color-green-300)\",\n colorBackgroundStatusWarningMedium: \"var(--purpur-color-orange-800)\",\n colorBackgroundStatusWarningStrong: \"var(--purpur-color-orange-300)\",\n colorBackgroundStatusErrorMedium: \"var(--purpur-color-red-800)\",\n colorBackgroundStatusErrorStrong: \"var(--purpur-color-red-300)\",\n colorBackgroundStatusNeutral: \"var(--purpur-color-gray-800)\",\n colorBackgroundStatusSpecial: \"var(--purpur-color-purple-700)\",\n colorBackgroundStatusAttention: \"var(--purpur-color-purple-100)\",\n colorBackgroundStatusBlackFriday: \"var(--purpur-color-functional-white)\",\n colorBackgroundStatusSuccessStrongNegative: \"var(--purpur-color-green-400)\",\n colorBackgroundStatusWarningStrongNegative: \"var(--purpur-color-orange-300)\",\n colorBackgroundStatusErrorStrongNegative: \"var(--purpur-color-red-400)\",\n colorBackgroundToneOnTonePrimary: \"var(--purpur-color-purple-100)\",\n colorBackgroundToneOnToneSecondary: \"var(--purpur-color-purple-900)\",\n colorBackgroundToneOnToneTertiary: \"var(--purpur-color-beige-700)\",\n colorBackgroundToneOnToneQuaternary: \"var(--purpur-color-beige-800)\",\n colorBorderWeak: \"var(--purpur-color-transparent-white-150)\",\n colorBorderMedium: \"var(--purpur-color-transparent-white-300)\",\n colorBorderStrong: \"var(--purpur-color-transparent-white-500)\",\n colorBorderWeakNegative: \"var(--purpur-color-transparent-black-150)\",\n colorBorderMediumNegative: \"var(--purpur-color-transparent-black-300)\",\n colorBorderStrongNegative: \"var(--purpur-color-transparent-black-500)\",\n colorBorderInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorBorderInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorBorderInteractivePrimaryActive: \"var(--purpur-color-purple-200)\",\n colorBorderInteractiveFocus: \"var(--purpur-color-purple-400)\",\n colorBorderInteractiveExpressive: \"var(--purpur-color-purple-550)\",\n colorBorderInteractiveSubtle: \"var(--purpur-color-transparent-white-400)\",\n colorBorderInteractiveSubtleHover: \"var(--purpur-color-purple-200)\",\n colorBorderInteractiveSelected: \"var(--purpur-color-purple-300)\",\n colorBorderInteractivePrimaryNegative: \"var(--purpur-color-purple-700)\",\n colorBorderInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-800)\",\n colorBorderInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-900)\",\n colorBorderInteractiveSubtleNegative: \"var(--purpur-color-transparent-black-400)\",\n colorBorderInteractiveSubtleHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBorderStatusError: \"var(--purpur-color-red-400)\",\n colorBorderStatusWarning: \"var(--purpur-color-orange-300)\",\n colorBorderStatusInfo: \"var(--purpur-color-blue-400)\",\n colorBorderStatusSuccess: \"var(--purpur-color-green-400)\",\n colorBorderStatusErrorNegative: \"var(--purpur-color-red-500)\",\n colorBorderStatusSuccessNegative: \"var(--purpur-color-green-500)\"\n}, y = \"#29003e\", P = \"#990ae3\", b = \"#f4e0ff\", E = \"#4f4741\", h = \"#ede1d8\", O = \"#f9f1ec\", A = \"#1e1e20\", H = \"#ffffff\", M = \"rgba(0, 0, 0, 0.84)\", w = \"rgba(0, 0, 0, 0.62)\", W = \"rgba(0, 0, 0, 0.44)\", D = \"rgba(255, 255, 255, 0.95)\", L = \"rgba(255, 255, 255, 0.66)\", R = \"rgba(255, 255, 255, 0.37)\", F = \"#6d02a3\", _ = \"#4e0174\", U = \"#29003e\", Q = \"#ffffff\", j = \"#4e0174\", X = \"#f4e0ff\", $ = \"#e4b6fb\", q = \"#e4b6fb\", G = \"#ffffff\", z = \"#ffffff\", J = \"#ffffff\", K = \"#29003e\", Y = \"#ffffff\", Z = \"#29003e\", V = \"#ffffff\", rr = \"#990ae3\", or = \"#990ae3\", er = \"#980233\", tr = \"#ff80ab\", ar = \"#e4175c\", cr = \"#fb4885\", ur = \"#02562b\", nr = \"#3dbf7c\", lr = \"#018842\", pr = \"#6a4102\", ir = \"#a86602\", vr = \"#f39200\", sr = \"#014d80\", gr = \"#0078cb\", dr = \"rgba(0, 0, 0, 0.71)\", Br = \"#4e0174\", Sr = \"#ffffff\", Ir = \"#ffffff\", fr = \"#f4e0ff\", Tr = \"#29003e\", kr = \"#4f4741\", xr = \"#ffffff\", mr = \"#1f002e\", Cr = \"#f5f5fa\", Nr = \"#29003e\", yr = \"rgba(255, 255, 255, 0.84)\", Pr = \"rgba(0, 0, 0, 0.71)\", br = \"#e8f6ff\", Er = \"#4e0174\", hr = \"#6d02a3\", Or = \"#8c07d0\", Ar = \"#f4e0ff\", Hr = \"#e4b6fb\", Mr = \"#d58df9\", wr = \"#990ae3\", Wr = \"#6d02a3\", Dr = \"#4e0174\", Lr = \"#990ae3\", Rr = \"#c461f7\", Fr = \"#d58df9\", _r = \"rgba(0, 0, 0, 0.1)\", Ur = \"rgba(255, 255, 255, 0.11)\", Qr = \"#f4e0ff\", jr = \"#4e0174\", Xr = \"#e4b6fb\", $r = \"#6d02a3\", qr = \"rgba(0, 0, 0, 0.05)\", Gr = \"rgba(255, 255, 255, 0.16)\", zr = \"rgba(0, 0, 0, 0.05)\", Jr = \"rgba(255, 255, 255, 0.11)\", Kr = \"#e4175c\", Yr = \"#c00543\", Zr = \"#980233\", Vr = \"#caeaff\", ro = \"#3694d3\", oo = \"#c5efd9\", eo = \"#1fa15e\", to = \"#3dbf7c\", ao = \"#ffdde8\", co = \"#fb4885\", uo = \"#ff80ab\", no = \"#ffe1b3\", lo = \"#cc7a00\", po = \"#f39200\", io = \"#d6d6dd\", vo = \"#f4e0ff\", so = \"#6d02a3\", go = \"#1e1e20\", Bo = \"#29003e\", So = \"#f4e0ff\", Io = \"#ede1d8\", fo = \"#f9f1ec\", To = \"rgba(0, 0, 0, 0.33)\", ko = \"rgba(255, 255, 255, 0.29)\", xo = \"rgba(0, 0, 0, 0.54)\", mo = \"rgba(255, 255, 255, 0.46)\", Co = \"rgba(0, 0, 0, 0.16)\", No = \"rgba(255, 255, 255, 0.16)\", yo = \"#b12df4\", Po = \"#6d02a3\", bo = \"#f4e0ff\", Eo = \"#4e0174\", ho = \"#29003e\", Oo = \"#e4b6fb\", Ao = \"#e4b6fb\", Ho = \"#990ae3\", Mo = \"#990ae3\", wo = \"rgba(0, 0, 0, 0.44)\", Wo = \"rgba(255, 255, 255, 0.46)\", Do = \"#6d02a3\", Lo = \"#c461f7\", Ro = \"#e4175c\", Fo = \"#fb4885\", _o = \"#cc7a00\", Uo = \"#0078cb\", Qo = \"#018842\", jo = \"#1fa15e\", Xo = {\n colorBrandDeepPurple: y,\n colorBrandCorePurple: P,\n colorBrandLightPurple: b,\n colorBrandDeepBeige: E,\n colorBrandBeige: h,\n colorBrandLightBeige: O,\n colorBrandOffBlack: A,\n colorBrandWhite: H,\n colorTextDefault: M,\n colorTextMedium: w,\n colorTextWeak: W,\n colorTextDefaultNegative: D,\n colorTextMediumNegative: L,\n colorTextWeakNegative: R,\n colorTextInteractivePrimary: F,\n colorTextInteractivePrimaryHover: _,\n colorTextInteractivePrimaryActive: U,\n colorTextInteractiveOnPrimary: Q,\n colorTextInteractiveOnExpressive: G,\n colorTextInteractiveOnExpressiveHover: J,\n colorTextInteractiveOnExpressiveActive: Y,\n colorTextInteractiveOnDestructive: V,\n colorTextInteractiveSelected: rr,\n colorTextInteractivePrimaryNegative: X,\n colorTextInteractivePrimaryHoverNegative: $,\n colorTextInteractivePrimaryActiveNegative: q,\n colorTextInteractiveOnPrimaryNegative: j,\n colorTextInteractiveOnExpressiveNegative: z,\n colorTextInteractiveOnExpressiveHoverNegative: K,\n colorTextInteractiveOnExpressiveActiveNegative: Z,\n colorTextStatusInfoMedium: gr,\n colorTextStatusInfoStrong: sr,\n colorTextStatusSuccessMedium: lr,\n colorTextStatusSuccessStrong: ur,\n colorTextStatusWarningMedium: ir,\n colorTextStatusWarningStrong: pr,\n colorTextStatusErrorMedium: ar,\n colorTextStatusErrorStrong: er,\n colorTextStatusNeutral: dr,\n colorTextStatusSpecial: Br,\n colorTextStatusAttention: Sr,\n colorTextStatusDiscount: or,\n colorTextStatusBlackFriday: Ir,\n colorTextStatusSuccessStrongNegative: nr,\n colorTextStatusErrorMediumNegative: cr,\n colorTextStatusErrorStrongNegative: tr,\n colorTextStatusWarningMediumNegative: vr,\n colorTextToneOnTonePrimary: fr,\n colorTextToneOnToneSecondary: Tr,\n colorTextToneOnToneTertiary: kr,\n colorBackgroundPrimary: xr,\n colorBackgroundSecondary: Cr,\n colorBackgroundOnImage: yr,\n colorBackgroundPrimaryNegative: mr,\n colorBackgroundSecondaryNegative: Nr,\n colorBackgroundOnImageNegative: Pr,\n colorBackgroundInteractivePrimary: Er,\n colorBackgroundInteractivePrimaryHover: hr,\n colorBackgroundInteractivePrimaryActive: Or,\n colorBackgroundInteractiveExpressive: wr,\n colorBackgroundInteractiveExpressiveHover: Wr,\n colorBackgroundInteractiveExpressiveActive: Dr,\n colorBackgroundInteractiveTransparentHover: Qr,\n colorBackgroundInteractiveTransparentActive: Xr,\n colorBackgroundInteractiveDisabled: _r,\n colorBackgroundInteractiveReadOnly: zr,\n colorBackgroundInteractiveInactive: qr,\n colorBackgroundInteractiveDestructive: Kr,\n colorBackgroundInteractiveDestructiveHover: Yr,\n colorBackgroundInteractiveDestructiveActive: Zr,\n colorBackgroundInteractiveAutoFill: br,\n colorBackgroundInteractivePrimaryNegative: Ar,\n colorBackgroundInteractivePrimaryHoverNegative: Hr,\n colorBackgroundInteractivePrimaryActiveNegative: Mr,\n colorBackgroundInteractiveExpressiveNegative: Lr,\n colorBackgroundInteractiveExpressiveHoverNegative: Rr,\n colorBackgroundInteractiveExpressiveActiveNegative: Fr,\n colorBackgroundInteractiveTransparentHoverNegative: jr,\n colorBackgroundInteractiveTransparentActiveNegative: $r,\n colorBackgroundInteractiveDisabledNegative: Ur,\n colorBackgroundInteractiveInactiveNegative: Gr,\n colorBackgroundInteractiveReadOnlyNegative: Jr,\n colorBackgroundStatusInfoMedium: Vr,\n colorBackgroundStatusInfoStrong: ro,\n colorBackgroundStatusSuccessMedium: oo,\n colorBackgroundStatusSuccessStrong: eo,\n colorBackgroundStatusWarningMedium: no,\n colorBackgroundStatusWarningStrong: lo,\n colorBackgroundStatusErrorMedium: ao,\n colorBackgroundStatusErrorStrong: co,\n colorBackgroundStatusNeutral: io,\n colorBackgroundStatusSpecial: vo,\n colorBackgroundStatusAttention: so,\n colorBackgroundStatusBlackFriday: go,\n colorBackgroundStatusSuccessStrongNegative: to,\n colorBackgroundStatusWarningStrongNegative: po,\n colorBackgroundStatusErrorStrongNegative: uo,\n colorBackgroundToneOnTonePrimary: Bo,\n colorBackgroundToneOnToneSecondary: So,\n colorBackgroundToneOnToneTertiary: Io,\n colorBackgroundToneOnToneQuaternary: fo,\n colorBorderWeak: Co,\n colorBorderMedium: To,\n colorBorderStrong: xo,\n colorBorderWeakNegative: No,\n colorBorderMediumNegative: ko,\n colorBorderStrongNegative: mo,\n colorBorderInteractivePrimary: Po,\n colorBorderInteractivePrimaryHover: Eo,\n colorBorderInteractivePrimaryActive: ho,\n colorBorderInteractiveFocus: yo,\n colorBorderInteractiveExpressive: Ho,\n colorBorderInteractiveSubtle: wo,\n colorBorderInteractiveSubtleHover: Do,\n colorBorderInteractiveSelected: Mo,\n colorBorderInteractivePrimaryNegative: bo,\n colorBorderInteractivePrimaryHoverNegative: Oo,\n colorBorderInteractivePrimaryActiveNegative: Ao,\n colorBorderInteractiveSubtleNegative: Wo,\n colorBorderInteractiveSubtleHoverNegative: Lo,\n colorBorderStatusError: Ro,\n colorBorderStatusWarning: _o,\n colorBorderStatusInfo: Uo,\n colorBorderStatusSuccess: Qo,\n colorBorderStatusErrorNegative: Fo,\n colorBorderStatusSuccessNegative: jo\n}, B = {\n light: Xo,\n dark: N\n}, $o = new RegExp(\"([\\\\p{Ll}\\\\d])(\\\\p{Lu})\", \"gu\"), qo = new RegExp(\"(\\\\p{Lu})([\\\\p{Lu}][\\\\p{Ll}])\", \"gu\"), Go = new RegExp(\"(\\\\d)\\\\p{Ll}|(\\\\p{L})\\\\d\", \"u\"), zo = /[^\\p{L}\\d]+/giu, S = \"$1\\0$2\", I = \"\";\nfunction f(o) {\n let r = o.trim();\n r = r.replace($o, S).replace(qo, S), r = r.replace(zo, \"\\0\");\n let e = 0, t = r.length;\n for (; r.charAt(e) === \"\\0\"; )\n e++;\n if (e === t)\n return [];\n for (; r.charAt(t - 1) === \"\\0\"; )\n t--;\n return r.slice(e, t).split(/\\0/g);\n}\nfunction Jo(o) {\n const r = f(o);\n for (let e = 0; e < r.length; e++) {\n const t = r[e], a = Go.exec(t);\n if (a) {\n const c = a.index + (a[1] ?? a[2]).length;\n r.splice(e, 1, t.slice(0, c), t.slice(c));\n }\n }\n return r;\n}\nfunction Ko(o, r) {\n const [e, t, a] = Vo(o, r);\n return e + t.map(Zo(r == null ? void 0 : r.locale)).join((r == null ? void 0 : r.delimiter) ?? \" \") + a;\n}\nfunction Yo(o, r) {\n return Ko(o, { delimiter: \"-\", ...r });\n}\nfunction Zo(o) {\n return o === !1 ? (r) => r.toLowerCase() : (r) => r.toLocaleLowerCase(o);\n}\nfunction Vo(o, r = {}) {\n const e = r.split ?? (r.separateNumbers ? Jo : f), t = r.prefixCharacters ?? I, a = r.suffixCharacters ?? I;\n let c = 0, u = o.length;\n for (; c < o.length; ) {\n const l = o.charAt(c);\n if (!t.includes(l))\n break;\n c++;\n }\n for (; u > c; ) {\n const l = u - 1, p = o.charAt(l);\n if (!a.includes(p))\n break;\n u = l;\n }\n return [\n o.slice(0, c),\n e(o.slice(c, u)),\n o.slice(u)\n ];\n}\nconst re = ({\n theme: o = B,\n cssVariablesSelector: r,\n currentColorScheme: e\n}) => {\n v(() => {\n e && Object.entries((o == null ? void 0 : o[e]) ?? B[e]).forEach(\n ([t, a]) => {\n ((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(\n `--purpur-${Yo(t)}`,\n a\n );\n }\n );\n }, [o, r, e]);\n}, T = m({\n colorScheme: \"light\",\n setColorScheme: () => {\n },\n options: {}\n}), ae = ({\n cssVariablesSelector: o,\n forceColorScheme: r,\n theme: e,\n children: t,\n options: a = {},\n ...c\n}) => {\n const [u, l] = d(r ?? \"auto\"), [p, i] = d(\n r ?? \"light\"\n );\n v(() => {\n if (r)\n l(r);\n else {\n const n = localStorage.getItem(\"colorScheme\");\n n && l(n);\n }\n }, [r]), v(() => {\n const n = window.matchMedia(\"(prefers-color-scheme: dark)\");\n i(u === \"auto\" ? n.matches ? \"dark\" : \"light\" : u);\n const s = (x) => {\n !r && u === \"auto\" && i(x.matches ? \"dark\" : \"light\");\n };\n return n.addEventListener(\"change\", s), () => {\n n.removeEventListener(\"change\", s);\n };\n }, [u, r]), re({ theme: e, cssVariablesSelector: o, currentColorScheme: p });\n const k = (n) => {\n r || (l(n), localStorage.setItem(\"colorScheme\", n));\n };\n return /* @__PURE__ */ g(T.Provider, { value: { colorScheme: u, setColorScheme: k, options: a }, children: /* @__PURE__ */ g(\"div\", { className: u, ...c, children: t }) });\n}, oe = () => {\n const o = C(T);\n if (!o)\n throw new Error(\"useTheme must be used within a ThemeProvider\");\n return o;\n}, ce = () => {\n const { colorScheme: o, setColorScheme: r } = oe();\n return [o, r];\n};\nexport {\n ae as ThemeProvider,\n B as teliaTheme,\n re as useApplyTheme,\n ce as useColorScheme,\n oe as useTheme\n};\n//# sourceMappingURL=theme.es.js.map\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue.call(this, arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn this && this[arg] || arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(this, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, this && this[key] || key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { forwardRef } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport { FieldErrorText } from \"@purpurds/field-error-text\";\nimport { FieldHelperText } from \"@purpurds/field-helper-text\";\nimport { Label } from \"@purpurds/label\";\nimport { useColorScheme } from \"@purpurds/theme\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./text-area.module.scss\";\n\nexport type TextAreaProps = Omit<BaseProps<\"textarea\">, \"id\"> & {\n id: string;\n /**\n * Use to render error message below the text area. The text area renders with error appearance.\n * */\n errorText?: string;\n /**\n * Use to give context about the text area's input. Renders below the text area.\n * */\n helperText?: string;\n /**\n * The label of the text area.\n * */\n label?: string;\n /**\n * The height of the text area, measured in number of rows.\n * */\n rows?: number;\n /**\n * The width of the text area, measured in number of cols.\n * */\n cols?: number;\n};\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-text-area\";\n\nexport const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n (\n {\n id,\n [\"data-testid\"]: dataTestId,\n className,\n errorText,\n helperText,\n label,\n rows = 3,\n cols = 90,\n ...props\n },\n ref\n ) => {\n const [colorScheme] = useColorScheme();\n\n const getTestId = (name: string) => (dataTestId ? `${dataTestId}-${name}` : undefined);\n\n const helperTextId = helperText ? `${id}-helper-text` : undefined;\n\n const textAreaContainerClassnames = cx(`${rootClassName}__textarea-container`, {\n [`${rootClassName}__textarea-container--disabled`]: props.disabled,\n [`${rootClassName}__textarea-container--readonly`]: props.readOnly && !props.disabled,\n });\n\n return (\n <div className={cx(className, rootClassName)} data-testid={dataTestId}>\n {label && (\n <Label\n htmlFor={id}\n disabled={props.disabled}\n className={styles[`${rootClassName}__label`]}\n data-testid={getTestId(\"label\")}\n >\n {props.required && <span aria-hidden>*</span>}\n {label}\n </Label>\n )}\n <div className={textAreaContainerClassnames}>\n <textarea\n {...props}\n ref={ref}\n id={id}\n data-testid={getTestId(\"textarea\")}\n aria-describedby={props[\"aria-describedby\"] || helperTextId}\n aria-invalid={props[\"aria-invalid\"] || !!errorText}\n className={cx(\n `${rootClassName}__textarea`,\n `${rootClassName}__textarea--${colorScheme}`,\n {\n [`${rootClassName}__textarea--error`]: !!errorText,\n }\n )}\n rows={rows}\n cols={cols}\n />\n <div className={styles[`${rootClassName}__frame`]} />\n </div>\n {helperTextId && (\n <FieldHelperText data-testid={getTestId(\"helper-text\")} id={helperTextId}>\n {helperText}\n </FieldHelperText>\n )}\n {errorText && (\n <FieldErrorText data-testid={getTestId(\"error-text\")}>{errorText}</FieldErrorText>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n"],"names":["g","e","p","c","h","i","r","o","s","u","y","w","b","S","f","j","$","O","q","m","_","N","A","l","d","B","M","P","C","v","a","Z","x","t","n","R","E","D","V","T","oe","ce","hasOwn","classNames","classes","arg","appendClass","parseValue","key","value","newClass","module","cx","styles","rootClassName","TextArea","forwardRef","id","dataTestId","className","errorText","helperText","label","rows","cols","props","ref","colorScheme","useColorScheme","getTestId","name","helperTextId","textAreaContainerClassnames","jsxs","Label","jsx","FieldHelperText","FieldErrorText"],"mappings":";;;;AACA,SAASA,EAAEC,GAAG;AACZ,SAAOA,KAAKA,EAAE,cAAc,OAAO,UAAU,eAAe,KAAKA,GAAG,SAAS,IAAIA,EAAE,UAAUA;AAC/F;AACA,IAAIC,IAAI,EAAE,SAAS,GAAI;AACvB;AAAA;AAAA;AAAA;AAAA;AAKA,IAAIC;AACJ,SAASC,IAAI;AACX,SAAOD,MAAMA,IAAI,GAAG,SAASF,GAAG;AAC9B,KAAC,WAAW;AACV,UAAII,IAAI,CAAA,EAAG;AACX,eAAS,IAAI;AACX,iBAASC,IAAI,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACjD,cAAIC,IAAI,UAAU,CAAC;AACnB,UAAAA,MAAMD,IAAIE,EAAEF,GAAGG,EAAE,KAAK,MAAMF,CAAC,CAAC;AAAA,QACxC;AACQ,eAAOD;AAAA,MACf;AACM,eAASG,EAAEH,GAAG;AACZ,YAAI,OAAOA,KAAK,YAAY,OAAOA,KAAK;AACtC,iBAAO,QAAQ,KAAKA,CAAC,KAAKA;AAC5B,YAAI,OAAOA,KAAK;AACd,iBAAO;AACT,YAAI,MAAM,QAAQA,CAAC;AACjB,iBAAO,EAAE,MAAM,MAAMA,CAAC;AACxB,YAAIA,EAAE,aAAa,OAAO,UAAU,YAAY,CAACA,EAAE,SAAS,WAAW,SAAS,eAAe;AAC7F,iBAAOA,EAAE,SAAU;AACrB,YAAI,IAAI;AACR,iBAASC,KAAKD;AACZ,UAAAD,EAAE,KAAKC,GAAGC,CAAC,KAAKD,EAAEC,CAAC,MAAM,IAAIC,EAAE,GAAG,QAAQ,KAAKD,CAAC,KAAKA,CAAC;AACxD,eAAO;AAAA,MACf;AACM,eAASC,EAAEF,GAAG,GAAG;AACf,eAAO,IAAIA,IAAIA,IAAI,MAAM,I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AAAW;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,SAASjB;AAAA,UACT,UAAUQ,EAAM;AAAA,UAChB,WAAWZ,EAAO,GAAGC,CAAa,SAAS;AAAA,UAC3C,eAAae,EAAU,OAAO;AAAA,UAE7B,UAAA;AAAA,YAAAJ,EAAM,YAAY,gBAAAU,EAAC,QAAK,EAAA,eAAW,IAAC,UAAC,KAAA;AAAA,YACrCb;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,MAEF,gBAAAW,EAAC,OAAI,EAAA,WAAWD,GACd,UAAA;AAAA,QAAA,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACE,GAAGV;AAAA,YACJ,KAAAC;AAAA,YACA,IAAAT;AAAA,YACA,eAAaY,EAAU,UAAU;AAAA,YACjC,oBAAkBJ,EAAM,kBAAkB,KAAKM;AAAA,YAC/C,gBAAcN,EAAM,cAAc,KAAK,CAAC,CAACL;AAAA,YACzC,WAAWR;AAAA,cACT,GAAGE,CAAa;AAAA,cAChB,GAAGA,CAAa,eAAea,CAAW;AAAA,cAC1C;AAAA,gBACE,CAAC,GAAGb,CAAa,mBAAmB,GAAG,CAAC,CAACM;AAAA,cAAA;AAAA,YAE7C;AAAA,YACA,MAAAG;AAAA,YACA,MAAAC;AAAA,UAAA;AAAA,QACF;AAAA,0BACC,OAAI,EAAA,WAAWX,EAAO,GAAGC,CAAa,SAAS,EAAG,CAAA;AAAA,MAAA,GACrD;AAAA,MACCiB,uBACEK,IAAgB,EAAA,eAAaP,EAAU,aAAa,GAAG,IAAIE,GACzD,UACHV,EAAA,CAAA;AAAA,MAEDD,KACE,gBAAAe,EAAAE,IAAA,EAAe,eAAaR,EAAU,YAAY,GAAI,UAAUT,EAAA,CAAA;AAAA,IAAA,GAErE;AAAA,EAAA;AAGN;AAEAL,GAAS,cAAc;","x_google_ignoreList":[4]}
1
+ {"version":3,"file":"text-area.es.js","sources":["../../field-error-text/dist/field-error-text.es.js","../../field-helper-text/dist/field-helper-text.es.js","../../label/dist/label.es.js","../../../libraries/theme/dist/theme.es.js","../../../common/temp/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/bind.js","../src/text-area.tsx"],"sourcesContent":["import { jsx as _, jsxs as x } from \"react/jsx-runtime\";\nfunction g(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar p = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar c;\nfunction h() {\n return c || (c = 1, function(e) {\n (function() {\n var i = {}.hasOwnProperty;\n function n() {\n for (var r = \"\", t = 0; t < arguments.length; t++) {\n var o = arguments[t];\n o && (r = s(r, u.call(this, o)));\n }\n return r;\n }\n function u(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return n.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var t = \"\";\n for (var o in r)\n i.call(r, o) && r[o] && (t = s(t, this && this[o] || o));\n return t;\n }\n function s(r, t) {\n return t ? r ? r + \" \" + t : r + t : r;\n }\n e.exports ? (n.default = n, e.exports = n) : window.classNames = n;\n })();\n }(p)), p.exports;\n}\nvar y = h();\nconst w = /* @__PURE__ */ g(y), b = {\n \"purpur-icon\": \"_purpur-icon_8u1lq_1\",\n \"purpur-icon--xxs\": \"_purpur-icon--xxs_8u1lq_4\",\n \"purpur-icon--xs\": \"_purpur-icon--xs_8u1lq_8\",\n \"purpur-icon--sm\": \"_purpur-icon--sm_8u1lq_12\",\n \"purpur-icon--md\": \"_purpur-icon--md_8u1lq_16\",\n \"purpur-icon--lg\": \"_purpur-icon--lg_8u1lq_20\",\n \"purpur-icon--xl\": \"_purpur-icon--xl_8u1lq_24\"\n}, S = w.bind(b), f = \"purpur-icon\", j = \"md\", $ = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}=\"${i.value}\"`).join(\" \"), O = ({ content: e = \"\", title: i } = {}) => {\n const n = [\n { name: \"xmlns\", value: \"http://www.w3.org/2000/svg\" },\n { name: \"fill\", value: \"currentColor\" },\n { name: \"viewBox\", value: \"0 0 24 24\" },\n i ? { name: \"role\", value: \"img\" } : { name: \"aria-hidden\", value: \"true\" }\n ], u = i ? `<title>${i}</title>` : \"\";\n return `<svg ${$(n)}>${u}${e}</svg>`;\n}, q = (e) => e.replace(/<(\\/?)svg([^>]*)>/g, \"\").trim(), m = ({ svg: e, allyTitle: i, className: n, size: u = j, ...s }) => {\n const r = O({\n content: q(e.svg),\n title: i\n }), t = S(n, f, `${f}--${u}`);\n return /* @__PURE__ */ _(\"span\", { className: t, dangerouslySetInnerHTML: { __html: r }, ...s });\n};\nm.displayName = \"Icon\";\nconst N = {\n name: \"error-filled\",\n 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>',\n keywords: [\"error-filled\"],\n category: \"status\"\n};\nfunction A(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar l = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar d;\nfunction B() {\n return d || (d = 1, function(e) {\n (function() {\n var i = {}.hasOwnProperty;\n function n() {\n for (var r = \"\", t = 0; t < arguments.length; t++) {\n var o = arguments[t];\n o && (r = s(r, u.call(this, o)));\n }\n return r;\n }\n function u(r) {\n if (typeof r == \"string\" || typeof r == \"number\")\n return this && this[r] || r;\n if (typeof r != \"object\")\n return \"\";\n if (Array.isArray(r))\n return n.apply(this, r);\n if (r.toString !== Object.prototype.toString && !r.toString.toString().includes(\"[native code]\"))\n return r.toString();\n var t = \"\";\n for (var o in r)\n i.call(r, o) && r[o] && (t = s(t, this && this[o] || o));\n return t;\n }\n function s(r, t) {\n return t ? r ? r + \" \" + t : r + t : r;\n }\n e.exports ? (n.default = n, e.exports = n) : window.classNames = n;\n })();\n }(l)), l.exports;\n}\nvar M = B();\nconst P = /* @__PURE__ */ A(M), C = {\n \"purpur-field-error-text\": \"_purpur-field-error-text_u1cy2_1\",\n \"purpur-field-error-text--negative\": \"_purpur-field-error-text--negative_u1cy2_11\",\n \"purpur-field-error-text__icon\": \"_purpur-field-error-text__icon_u1cy2_14\"\n}, v = P.bind(C), T = [\n \"additions text\",\n \"additions\",\n \"removals\",\n \"text\",\n \"all\"\n], a = \"purpur-field-error-text\", Z = ({\n children: e,\n className: i,\n negative: n = !1,\n [\"aria-relevant\"]: u = \"additions text\",\n ...s\n}) => /* @__PURE__ */ x(\n \"div\",\n {\n className: v(i, a, {\n [`${a}--negative`]: n\n }),\n \"aria-live\": \"assertive\",\n \"aria-relevant\": u,\n ...s,\n children: [\n /* @__PURE__ */ _(m, { svg: N, size: \"xs\", className: v(`${a}__icon`) }),\n e\n ]\n }\n);\nexport {\n Z as FieldErrorText,\n T as ariaRelevantValues\n};\n//# sourceMappingURL=field-error-text.es.js.map\n","import { jsx as a } from \"react/jsx-runtime\";\nfunction c(r) {\n return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, \"default\") ? r.default : r;\n}\nvar u = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar f;\nfunction d() {\n return f || (f = 1, function(r) {\n (function() {\n var p = {}.hasOwnProperty;\n function n() {\n for (var t = \"\", e = 0; e < arguments.length; e++) {\n var s = arguments[e];\n s && (t = i(t, o.call(this, s)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return n.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var e = \"\";\n for (var s in t)\n p.call(t, s) && t[s] && (e = i(e, this && this[s] || s));\n return e;\n }\n function i(t, e) {\n return e ? t ? t + \" \" + e : t + e : t;\n }\n r.exports ? (n.default = n, r.exports = n) : window.classNames = n;\n })();\n }(u)), u.exports;\n}\nvar h = d();\nconst x = /* @__PURE__ */ c(h), _ = {\n \"purpur-field-helper-text\": \"_purpur-field-helper-text_11nsh_1\",\n \"purpur-field-helper-text--disabled\": \"_purpur-field-helper-text--disabled_11nsh_9\",\n \"purpur-field-helper-text--negative\": \"_purpur-field-helper-text--negative_11nsh_12\"\n}, b = x.bind(_), l = \"purpur-field-helper-text\", m = ({\n children: r,\n className: p,\n disabled: n,\n id: o,\n negative: i,\n ...t\n}) => {\n const e = b(p, l, {\n [`${l}--disabled`]: n,\n [`${l}--negative`]: i\n });\n return /* @__PURE__ */ a(\"span\", { id: o, className: e, ...t, children: r });\n};\nexport {\n m as FieldHelperText\n};\n//# sourceMappingURL=field-helper-text.es.js.map\n","import { jsx as u, Fragment as v } from \"react/jsx-runtime\";\nimport * as s from \"react\";\nimport \"react-dom\";\nfunction m(e, n) {\n if (typeof e == \"function\")\n return e(n);\n e != null && (e.current = n);\n}\nfunction g(...e) {\n return (n) => {\n let r = !1;\n const o = e.map((i) => {\n const t = m(i, n);\n return !r && typeof t == \"function\" && (r = !0), t;\n });\n if (r)\n return () => {\n for (let i = 0; i < o.length; i++) {\n const t = o[i];\n typeof t == \"function\" ? t() : m(e[i], null);\n }\n };\n };\n}\nvar y = s.forwardRef((e, n) => {\n const { children: r, ...o } = e, i = s.Children.toArray(r), t = i.find(N);\n if (t) {\n const l = t.props.children, a = i.map((d) => d === t ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : d);\n return /* @__PURE__ */ u(p, { ...o, ref: n, children: s.isValidElement(l) ? s.cloneElement(l, void 0, a) : null });\n }\n return /* @__PURE__ */ u(p, { ...o, ref: n, children: r });\n});\ny.displayName = \"Slot\";\nvar p = s.forwardRef((e, n) => {\n const { children: r, ...o } = e;\n if (s.isValidElement(r)) {\n const i = S(r), t = R(o, r.props);\n return r.type !== s.Fragment && (t.ref = n ? g(n, i) : i), s.cloneElement(r, t);\n }\n return s.Children.count(r) > 1 ? s.Children.only(null) : null;\n});\np.displayName = \"SlotClone\";\nvar w = ({ children: e }) => /* @__PURE__ */ u(v, { children: e });\nfunction N(e) {\n return s.isValidElement(e) && e.type === w;\n}\nfunction R(e, n) {\n const r = { ...n };\n for (const o in n) {\n const i = e[o], t = n[o];\n /^on[A-Z]/.test(o) ? i && t ? r[o] = (...a) => {\n t(...a), i(...a);\n } : i && (r[o] = i) : o === \"style\" ? r[o] = { ...i, ...t } : o === \"className\" && (r[o] = [i, t].filter(Boolean).join(\" \"));\n }\n return { ...e, ...r };\n}\nfunction S(e) {\n var o, i;\n let n = (o = Object.getOwnPropertyDescriptor(e.props, \"ref\")) == null ? void 0 : o.get, r = n && \"isReactWarning\" in n && n.isReactWarning;\n return r ? e.ref : (n = (i = Object.getOwnPropertyDescriptor(e, \"ref\")) == null ? void 0 : i.get, r = n && \"isReactWarning\" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);\n}\nvar C = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n], E = C.reduce((e, n) => {\n const r = s.forwardRef((o, i) => {\n const { asChild: t, ...l } = o, a = t ? y : n;\n return typeof window < \"u\" && (window[Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ u(a, { ...l, ref: i });\n });\n return r.displayName = `Primitive.${n}`, { ...e, [n]: r };\n}, {}), x = \"Label\", h = s.forwardRef((e, n) => /* @__PURE__ */ u(\n E.label,\n {\n ...e,\n ref: n,\n onMouseDown: (r) => {\n var i;\n r.target.closest(\"button, input, select, textarea\") || ((i = e.onMouseDown) == null || i.call(e, r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());\n }\n }\n));\nh.displayName = x;\nvar P = h;\nfunction _(e) {\n return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, \"default\") ? e.default : e;\n}\nvar f = { exports: {} };\n/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\nvar b;\nfunction O() {\n return b || (b = 1, function(e) {\n (function() {\n var n = {}.hasOwnProperty;\n function r() {\n for (var t = \"\", l = 0; l < arguments.length; l++) {\n var a = arguments[l];\n a && (t = i(t, o.call(this, a)));\n }\n return t;\n }\n function o(t) {\n if (typeof t == \"string\" || typeof t == \"number\")\n return this && this[t] || t;\n if (typeof t != \"object\")\n return \"\";\n if (Array.isArray(t))\n return r.apply(this, t);\n if (t.toString !== Object.prototype.toString && !t.toString.toString().includes(\"[native code]\"))\n return t.toString();\n var l = \"\";\n for (var a in t)\n n.call(t, a) && t[a] && (l = i(l, this && this[a] || a));\n return l;\n }\n function i(t, l) {\n return l ? t ? t + \" \" + l : t + l : t;\n }\n e.exports ? (r.default = r, e.exports = r) : window.classNames = r;\n })();\n }(f)), f.exports;\n}\nvar j = O();\nconst D = /* @__PURE__ */ _(j), V = {\n \"purpur-label\": \"_purpur-label_1x80u_1\",\n \"purpur-label--negative\": \"_purpur-label--negative_1x80u_8\",\n \"purpur-label--disabled\": \"_purpur-label--disabled_1x80u_11\"\n}, A = D.bind(V), c = \"purpur-label\", $ = ({\n children: e,\n className: n,\n disabled: r,\n negative: o = !1,\n ...i\n}) => {\n const t = A(n, c, {\n [`${c}--disabled`]: r,\n [`${c}--negative`]: o\n });\n return /* @__PURE__ */ u(P, { className: t, ...i, children: e });\n};\nexport {\n $ as Label\n};\n//# sourceMappingURL=label.es.js.map\n","import { jsx as g } from \"react/jsx-runtime\";\nimport { useEffect as v, createContext as m, useState as d, useMemo as C, useContext as N } from \"react\";\nconst y = {\n colorBrandDeepPurple: \"var(--purpur-color-purple-100)\",\n colorBrandCorePurple: \"var(--purpur-color-purple-400)\",\n colorBrandLightPurple: \"var(--purpur-color-purple-900)\",\n colorBrandDeepBeige: \"var(--purpur-color-beige-100)\",\n colorBrandBeige: \"var(--purpur-color-beige-700)\",\n colorBrandLightBeige: \"var(--purpur-color-beige-800)\",\n colorBrandOffBlack: \"var(--purpur-color-functional-white)\",\n colorBrandWhite: \"var(--purpur-color-gray-900)\",\n colorTextDefault: \"var(--purpur-color-transparent-white-950)\",\n colorTextMedium: \"var(--purpur-color-transparent-white-700)\",\n colorTextWeak: \"var(--purpur-color-transparent-white-400)\",\n colorTextDefaultNegative: \"var(--purpur-color-transparent-black-800)\",\n colorTextMediumNegative: \"var(--purpur-color-transparent-black-500)\",\n colorTextWeakNegative: \"var(--purpur-color-transparent-black-400)\",\n colorTextInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorTextInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorTextInteractivePrimaryActive: \"var(--purpur-color-purple-300)\",\n colorTextInteractiveOnPrimary: \"var(--purpur-color-purple-800)\",\n colorTextInteractiveOnExpressive: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveHover: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnExpressiveActive: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnDestructive: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveSelected: \"var(--purpur-color-purple-300)\",\n colorTextInteractivePrimaryNegative: \"var(--purpur-color-purple-700)\",\n colorTextInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-800)\",\n colorTextInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-900)\",\n colorTextInteractiveOnPrimaryNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveHoverNegative: \"var(--purpur-color-functional-white)\",\n colorTextInteractiveOnExpressiveActiveNegative: \"var(--purpur-color-functional-white)\",\n colorTextStatusInfoMedium: \"var(--purpur-color-blue-400)\",\n colorTextStatusInfoStrong: \"var(--purpur-color-blue-200)\",\n colorTextStatusSuccessMedium: \"var(--purpur-color-green-400)\",\n colorTextStatusSuccessStrong: \"var(--purpur-color-green-200)\",\n colorTextStatusWarningMedium: \"var(--purpur-color-orange-300)\",\n colorTextStatusWarningStrong: \"var(--purpur-color-orange-200)\",\n colorTextStatusErrorMedium: \"var(--purpur-color-red-400)\",\n colorTextStatusErrorStrong: \"var(--purpur-color-red-200)\",\n colorTextStatusNeutral: \"var(--purpur-color-functional-white)\",\n colorTextStatusSpecial: \"var(--purpur-color-functional-white)\",\n colorTextStatusAttention: \"var(--purpur-color-purple-800)\",\n colorTextStatusDiscount: \"var(--purpur-color-purple-300)\",\n colorTextStatusBlackFriday: \"var(--purpur-color-gray-900)\",\n colorTextStatusSuccessStrongNegative: \"var(--purpur-color-green-700)\",\n colorTextStatusErrorMediumNegative: \"var(--purpur-color-red-500)\",\n colorTextStatusErrorStrongNegative: \"var(--purpur-color-red-700)\",\n colorTextStatusWarningMediumNegative: \"var(--purpur-color-orange-500)\",\n colorTextToneOnTonePrimary: \"var(--purpur-color-purple-900)\",\n colorTextToneOnToneSecondary: \"var(--purpur-color-purple-100)\",\n colorTextToneOnToneTertiary: \"var(--purpur-color-functional-white)\",\n colorBackgroundPrimary: \"var(--purpur-color-gray-950)\",\n colorBackgroundSecondary: \"var(--purpur-color-gray-900)\",\n colorBackgroundOnImage: \"var(--purpur-color-transparent-black-700)\",\n colorBackgroundPrimaryNegative: \"var(--purpur-color-functional-white)\",\n colorBackgroundSecondaryNegative: \"var(--purpur-color-gray-50)\",\n colorBackgroundOnImageNegative: \"var(--purpur-color-transparent-white-850)\",\n colorBackgroundInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorBackgroundInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorBackgroundInteractivePrimaryActive: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveExpressive: \"var(--purpur-color-purple-550)\",\n colorBackgroundInteractiveExpressiveHover: \"var(--purpur-color-purple-400)\",\n colorBackgroundInteractiveExpressiveActive: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveTransparentHover: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractiveTransparentActive: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractiveDisabled: \"var(--purpur-color-transparent-white-100)\",\n colorBackgroundInteractiveReadOnly: \"var(--purpur-color-transparent-white-50)\",\n colorBackgroundInteractiveInactive: \"var(--purpur-color-transparent-white-150)\",\n colorBackgroundInteractiveDestructive: \"var(--purpur-color-red-500)\",\n colorBackgroundInteractiveDestructiveHover: \"var(--purpur-color-red-600)\",\n colorBackgroundInteractiveDestructiveActive: \"var(--purpur-color-red-700)\",\n colorBackgroundInteractiveAutoFill: \"var(--purpur-color-blue-800)\",\n colorBackgroundInteractivePrimaryNegative: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-600)\",\n colorBackgroundInteractiveExpressiveNegative: \"var(--purpur-color-purple-550)\",\n colorBackgroundInteractiveExpressiveHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBackgroundInteractiveExpressiveActiveNegative: \"var(--purpur-color-purple-800)\",\n colorBackgroundInteractiveTransparentHoverNegative: \"var(--purpur-color-purple-200)\",\n colorBackgroundInteractiveTransparentActiveNegative: \"var(--purpur-color-purple-300)\",\n colorBackgroundInteractiveDisabledNegative: \"var(--purpur-color-transparent-black-100)\",\n colorBackgroundInteractiveInactiveNegative: \"var(--purpur-color-transparent-black-50)\",\n colorBackgroundInteractiveReadOnlyNegative: \"var(--purpur-color-transparent-black-50)\",\n colorBackgroundStatusInfoMedium: \"var(--purpur-color-blue-800)\",\n colorBackgroundStatusInfoStrong: \"var(--purpur-color-blue-300)\",\n colorBackgroundStatusSuccessMedium: \"var(--purpur-color-green-800)\",\n colorBackgroundStatusSuccessStrong: \"var(--purpur-color-green-300)\",\n colorBackgroundStatusWarningMedium: \"var(--purpur-color-orange-800)\",\n colorBackgroundStatusWarningStrong: \"var(--purpur-color-orange-300)\",\n colorBackgroundStatusErrorMedium: \"var(--purpur-color-red-800)\",\n colorBackgroundStatusErrorStrong: \"var(--purpur-color-red-300)\",\n colorBackgroundStatusNeutral: \"var(--purpur-color-gray-800)\",\n colorBackgroundStatusSpecial: \"var(--purpur-color-purple-700)\",\n colorBackgroundStatusAttention: \"var(--purpur-color-purple-100)\",\n colorBackgroundStatusBlackFriday: \"var(--purpur-color-functional-white)\",\n colorBackgroundStatusSuccessStrongNegative: \"var(--purpur-color-green-400)\",\n colorBackgroundStatusWarningStrongNegative: \"var(--purpur-color-orange-300)\",\n colorBackgroundStatusErrorStrongNegative: \"var(--purpur-color-red-400)\",\n colorBackgroundToneOnTonePrimary: \"var(--purpur-color-purple-100)\",\n colorBackgroundToneOnToneSecondary: \"var(--purpur-color-purple-900)\",\n colorBackgroundToneOnToneTertiary: \"var(--purpur-color-beige-700)\",\n colorBackgroundToneOnToneQuaternary: \"var(--purpur-color-beige-800)\",\n colorBorderWeak: \"var(--purpur-color-transparent-white-150)\",\n colorBorderMedium: \"var(--purpur-color-transparent-white-300)\",\n colorBorderStrong: \"var(--purpur-color-transparent-white-500)\",\n colorBorderWeakNegative: \"var(--purpur-color-transparent-black-150)\",\n colorBorderMediumNegative: \"var(--purpur-color-transparent-black-300)\",\n colorBorderStrongNegative: \"var(--purpur-color-transparent-black-500)\",\n colorBorderInteractivePrimary: \"var(--purpur-color-purple-100)\",\n colorBorderInteractivePrimaryHover: \"var(--purpur-color-purple-200)\",\n colorBorderInteractivePrimaryActive: \"var(--purpur-color-purple-200)\",\n colorBorderInteractiveFocus: \"var(--purpur-color-purple-400)\",\n colorBorderInteractiveExpressive: \"var(--purpur-color-purple-550)\",\n colorBorderInteractiveSubtle: \"var(--purpur-color-transparent-white-400)\",\n colorBorderInteractiveSubtleHover: \"var(--purpur-color-purple-200)\",\n colorBorderInteractiveSelected: \"var(--purpur-color-purple-300)\",\n colorBorderInteractivePrimaryNegative: \"var(--purpur-color-purple-700)\",\n colorBorderInteractivePrimaryHoverNegative: \"var(--purpur-color-purple-800)\",\n colorBorderInteractivePrimaryActiveNegative: \"var(--purpur-color-purple-900)\",\n colorBorderInteractiveSubtleNegative: \"var(--purpur-color-transparent-black-400)\",\n colorBorderInteractiveSubtleHoverNegative: \"var(--purpur-color-purple-700)\",\n colorBorderStatusError: \"var(--purpur-color-red-400)\",\n colorBorderStatusWarning: \"var(--purpur-color-orange-300)\",\n colorBorderStatusInfo: \"var(--purpur-color-blue-400)\",\n colorBorderStatusSuccess: \"var(--purpur-color-green-400)\",\n colorBorderStatusErrorNegative: \"var(--purpur-color-red-500)\",\n colorBorderStatusSuccessNegative: \"var(--purpur-color-green-500)\"\n}, P = \"#29003e\", b = \"#990ae3\", E = \"#f4e0ff\", h = \"#4f4741\", O = \"#ede1d8\", A = \"#f9f1ec\", H = \"#1e1e20\", M = \"#ffffff\", w = \"rgba(0, 0, 0, 0.84)\", W = \"rgba(0, 0, 0, 0.62)\", D = \"rgba(0, 0, 0, 0.44)\", L = \"rgba(255, 255, 255, 0.95)\", R = \"rgba(255, 255, 255, 0.66)\", F = \"rgba(255, 255, 255, 0.37)\", _ = \"#6d02a3\", U = \"#4e0174\", Q = \"#29003e\", j = \"#ffffff\", X = \"#4e0174\", $ = \"#f4e0ff\", q = \"#e4b6fb\", G = \"#e4b6fb\", z = \"#ffffff\", J = \"#ffffff\", K = \"#ffffff\", V = \"#29003e\", Y = \"#ffffff\", Z = \"#29003e\", rr = \"#ffffff\", or = \"#990ae3\", er = \"#990ae3\", tr = \"#980233\", ar = \"#ff80ab\", cr = \"#e4175c\", ur = \"#fb4885\", nr = \"#02562b\", lr = \"#3dbf7c\", pr = \"#018842\", ir = \"#6a4102\", vr = \"#a86602\", sr = \"#f39200\", gr = \"#014d80\", dr = \"#0078cb\", Br = \"rgba(0, 0, 0, 0.71)\", Sr = \"#4e0174\", Ir = \"#ffffff\", Tr = \"#ffffff\", fr = \"#f4e0ff\", kr = \"#29003e\", xr = \"#4f4741\", mr = \"#ffffff\", Cr = \"#1f002e\", Nr = \"#f5f5fa\", yr = \"#29003e\", Pr = \"rgba(255, 255, 255, 0.84)\", br = \"rgba(0, 0, 0, 0.71)\", Er = \"#e8f6ff\", hr = \"#4e0174\", Or = \"#6d02a3\", Ar = \"#8c07d0\", Hr = \"#f4e0ff\", Mr = \"#e4b6fb\", wr = \"#d58df9\", Wr = \"#990ae3\", Dr = \"#6d02a3\", Lr = \"#4e0174\", Rr = \"#990ae3\", Fr = \"#c461f7\", _r = \"#d58df9\", Ur = \"rgba(0, 0, 0, 0.1)\", Qr = \"rgba(255, 255, 255, 0.11)\", jr = \"#f4e0ff\", Xr = \"#4e0174\", $r = \"#e4b6fb\", qr = \"#6d02a3\", Gr = \"rgba(0, 0, 0, 0.05)\", zr = \"rgba(255, 255, 255, 0.16)\", Jr = \"rgba(0, 0, 0, 0.05)\", Kr = \"rgba(255, 255, 255, 0.11)\", Vr = \"#e4175c\", Yr = \"#c00543\", Zr = \"#980233\", ro = \"#caeaff\", oo = \"#3694d3\", eo = \"#c5efd9\", to = \"#1fa15e\", ao = \"#3dbf7c\", co = \"#ffdde8\", uo = \"#fb4885\", no = \"#ff80ab\", lo = \"#ffe1b3\", po = \"#cc7a00\", io = \"#f39200\", vo = \"#d6d6dd\", so = \"#f4e0ff\", go = \"#6d02a3\", Bo = \"#1e1e20\", So = \"#29003e\", Io = \"#f4e0ff\", To = \"#ede1d8\", fo = \"#f9f1ec\", ko = \"rgba(0, 0, 0, 0.33)\", xo = \"rgba(255, 255, 255, 0.29)\", mo = \"rgba(0, 0, 0, 0.54)\", Co = \"rgba(255, 255, 255, 0.46)\", No = \"rgba(0, 0, 0, 0.16)\", yo = \"rgba(255, 255, 255, 0.16)\", Po = \"#b12df4\", bo = \"#6d02a3\", Eo = \"#f4e0ff\", ho = \"#4e0174\", Oo = \"#29003e\", Ao = \"#e4b6fb\", Ho = \"#e4b6fb\", Mo = \"#990ae3\", wo = \"#990ae3\", Wo = \"rgba(0, 0, 0, 0.44)\", Do = \"rgba(255, 255, 255, 0.46)\", Lo = \"#6d02a3\", Ro = \"#c461f7\", Fo = \"#e4175c\", _o = \"#fb4885\", Uo = \"#cc7a00\", Qo = \"#0078cb\", jo = \"#018842\", Xo = \"#1fa15e\", $o = {\n colorBrandDeepPurple: P,\n colorBrandCorePurple: b,\n colorBrandLightPurple: E,\n colorBrandDeepBeige: h,\n colorBrandBeige: O,\n colorBrandLightBeige: A,\n colorBrandOffBlack: H,\n colorBrandWhite: M,\n colorTextDefault: w,\n colorTextMedium: W,\n colorTextWeak: D,\n colorTextDefaultNegative: L,\n colorTextMediumNegative: R,\n colorTextWeakNegative: F,\n colorTextInteractivePrimary: _,\n colorTextInteractivePrimaryHover: U,\n colorTextInteractivePrimaryActive: Q,\n colorTextInteractiveOnPrimary: j,\n colorTextInteractiveOnExpressive: z,\n colorTextInteractiveOnExpressiveHover: K,\n colorTextInteractiveOnExpressiveActive: Y,\n colorTextInteractiveOnDestructive: rr,\n colorTextInteractiveSelected: or,\n colorTextInteractivePrimaryNegative: $,\n colorTextInteractivePrimaryHoverNegative: q,\n colorTextInteractivePrimaryActiveNegative: G,\n colorTextInteractiveOnPrimaryNegative: X,\n colorTextInteractiveOnExpressiveNegative: J,\n colorTextInteractiveOnExpressiveHoverNegative: V,\n colorTextInteractiveOnExpressiveActiveNegative: Z,\n colorTextStatusInfoMedium: dr,\n colorTextStatusInfoStrong: gr,\n colorTextStatusSuccessMedium: pr,\n colorTextStatusSuccessStrong: nr,\n colorTextStatusWarningMedium: vr,\n colorTextStatusWarningStrong: ir,\n colorTextStatusErrorMedium: cr,\n colorTextStatusErrorStrong: tr,\n colorTextStatusNeutral: Br,\n colorTextStatusSpecial: Sr,\n colorTextStatusAttention: Ir,\n colorTextStatusDiscount: er,\n colorTextStatusBlackFriday: Tr,\n colorTextStatusSuccessStrongNegative: lr,\n colorTextStatusErrorMediumNegative: ur,\n colorTextStatusErrorStrongNegative: ar,\n colorTextStatusWarningMediumNegative: sr,\n colorTextToneOnTonePrimary: fr,\n colorTextToneOnToneSecondary: kr,\n colorTextToneOnToneTertiary: xr,\n colorBackgroundPrimary: mr,\n colorBackgroundSecondary: Nr,\n colorBackgroundOnImage: Pr,\n colorBackgroundPrimaryNegative: Cr,\n colorBackgroundSecondaryNegative: yr,\n colorBackgroundOnImageNegative: br,\n colorBackgroundInteractivePrimary: hr,\n colorBackgroundInteractivePrimaryHover: Or,\n colorBackgroundInteractivePrimaryActive: Ar,\n colorBackgroundInteractiveExpressive: Wr,\n colorBackgroundInteractiveExpressiveHover: Dr,\n colorBackgroundInteractiveExpressiveActive: Lr,\n colorBackgroundInteractiveTransparentHover: jr,\n colorBackgroundInteractiveTransparentActive: $r,\n colorBackgroundInteractiveDisabled: Ur,\n colorBackgroundInteractiveReadOnly: Jr,\n colorBackgroundInteractiveInactive: Gr,\n colorBackgroundInteractiveDestructive: Vr,\n colorBackgroundInteractiveDestructiveHover: Yr,\n colorBackgroundInteractiveDestructiveActive: Zr,\n colorBackgroundInteractiveAutoFill: Er,\n colorBackgroundInteractivePrimaryNegative: Hr,\n colorBackgroundInteractivePrimaryHoverNegative: Mr,\n colorBackgroundInteractivePrimaryActiveNegative: wr,\n colorBackgroundInteractiveExpressiveNegative: Rr,\n colorBackgroundInteractiveExpressiveHoverNegative: Fr,\n colorBackgroundInteractiveExpressiveActiveNegative: _r,\n colorBackgroundInteractiveTransparentHoverNegative: Xr,\n colorBackgroundInteractiveTransparentActiveNegative: qr,\n colorBackgroundInteractiveDisabledNegative: Qr,\n colorBackgroundInteractiveInactiveNegative: zr,\n colorBackgroundInteractiveReadOnlyNegative: Kr,\n colorBackgroundStatusInfoMedium: ro,\n colorBackgroundStatusInfoStrong: oo,\n colorBackgroundStatusSuccessMedium: eo,\n colorBackgroundStatusSuccessStrong: to,\n colorBackgroundStatusWarningMedium: lo,\n colorBackgroundStatusWarningStrong: po,\n colorBackgroundStatusErrorMedium: co,\n colorBackgroundStatusErrorStrong: uo,\n colorBackgroundStatusNeutral: vo,\n colorBackgroundStatusSpecial: so,\n colorBackgroundStatusAttention: go,\n colorBackgroundStatusBlackFriday: Bo,\n colorBackgroundStatusSuccessStrongNegative: ao,\n colorBackgroundStatusWarningStrongNegative: io,\n colorBackgroundStatusErrorStrongNegative: no,\n colorBackgroundToneOnTonePrimary: So,\n colorBackgroundToneOnToneSecondary: Io,\n colorBackgroundToneOnToneTertiary: To,\n colorBackgroundToneOnToneQuaternary: fo,\n colorBorderWeak: No,\n colorBorderMedium: ko,\n colorBorderStrong: mo,\n colorBorderWeakNegative: yo,\n colorBorderMediumNegative: xo,\n colorBorderStrongNegative: Co,\n colorBorderInteractivePrimary: bo,\n colorBorderInteractivePrimaryHover: ho,\n colorBorderInteractivePrimaryActive: Oo,\n colorBorderInteractiveFocus: Po,\n colorBorderInteractiveExpressive: Mo,\n colorBorderInteractiveSubtle: Wo,\n colorBorderInteractiveSubtleHover: Lo,\n colorBorderInteractiveSelected: wo,\n colorBorderInteractivePrimaryNegative: Eo,\n colorBorderInteractivePrimaryHoverNegative: Ao,\n colorBorderInteractivePrimaryActiveNegative: Ho,\n colorBorderInteractiveSubtleNegative: Do,\n colorBorderInteractiveSubtleHoverNegative: Ro,\n colorBorderStatusError: Fo,\n colorBorderStatusWarning: Uo,\n colorBorderStatusInfo: Qo,\n colorBorderStatusSuccess: jo,\n colorBorderStatusErrorNegative: _o,\n colorBorderStatusSuccessNegative: Xo\n}, B = {\n light: $o,\n dark: y\n}, qo = new RegExp(\"([\\\\p{Ll}\\\\d])(\\\\p{Lu})\", \"gu\"), Go = new RegExp(\"(\\\\p{Lu})([\\\\p{Lu}][\\\\p{Ll}])\", \"gu\"), zo = new RegExp(\"(\\\\d)\\\\p{Ll}|(\\\\p{L})\\\\d\", \"u\"), Jo = /[^\\p{L}\\d]+/giu, S = \"$1\\0$2\", I = \"\";\nfunction T(o) {\n let r = o.trim();\n r = r.replace(qo, S).replace(Go, S), r = r.replace(Jo, \"\\0\");\n let e = 0, t = r.length;\n for (; r.charAt(e) === \"\\0\"; )\n e++;\n if (e === t)\n return [];\n for (; r.charAt(t - 1) === \"\\0\"; )\n t--;\n return r.slice(e, t).split(/\\0/g);\n}\nfunction Ko(o) {\n const r = T(o);\n for (let e = 0; e < r.length; e++) {\n const t = r[e], a = zo.exec(t);\n if (a) {\n const c = a.index + (a[1] ?? a[2]).length;\n r.splice(e, 1, t.slice(0, c), t.slice(c));\n }\n }\n return r;\n}\nfunction Vo(o, r) {\n const [e, t, a] = re(o, r);\n return e + t.map(Zo(r == null ? void 0 : r.locale)).join((r == null ? void 0 : r.delimiter) ?? \" \") + a;\n}\nfunction Yo(o, r) {\n return Vo(o, { delimiter: \"-\", ...r });\n}\nfunction Zo(o) {\n return o === !1 ? (r) => r.toLowerCase() : (r) => r.toLocaleLowerCase(o);\n}\nfunction re(o, r = {}) {\n const e = r.split ?? (r.separateNumbers ? Ko : T), t = r.prefixCharacters ?? I, a = r.suffixCharacters ?? I;\n let c = 0, u = o.length;\n for (; c < o.length; ) {\n const l = o.charAt(c);\n if (!t.includes(l))\n break;\n c++;\n }\n for (; u > c; ) {\n const l = u - 1, p = o.charAt(l);\n if (!a.includes(p))\n break;\n u = l;\n }\n return [\n o.slice(0, c),\n e(o.slice(c, u)),\n o.slice(u)\n ];\n}\nconst oe = ({\n theme: o = B,\n cssVariablesSelector: r,\n currentColorScheme: e\n}) => {\n v(() => {\n e && Object.entries((o == null ? void 0 : o[e]) ?? B[e]).forEach(\n ([t, a]) => {\n ((r ? document.querySelector(r) : null) ?? document.documentElement).style.setProperty(\n `--purpur-${Yo(t)}`,\n a\n );\n }\n );\n }, [o, r, e]);\n}, f = m({\n colorScheme: \"light\",\n currentColorScheme: \"light\",\n setColorScheme: () => {\n },\n options: {}\n}), ce = ({\n cssVariablesSelector: o,\n forceColorScheme: r,\n theme: e,\n children: t,\n options: a = {},\n ...c\n}) => {\n const [u, l] = d(r ?? \"auto\"), [p, i] = d(\n r ?? \"light\"\n );\n v(() => {\n if (r)\n l(r);\n else {\n const n = localStorage.getItem(\"colorScheme\");\n n && l(n);\n }\n }, [r]), v(() => {\n const n = window.matchMedia(\"(prefers-color-scheme: dark)\");\n i(u === \"auto\" ? n.matches ? \"dark\" : \"light\" : u);\n const s = (x) => {\n !r && u === \"auto\" && i(x.matches ? \"dark\" : \"light\");\n };\n return n.addEventListener(\"change\", s), () => {\n n.removeEventListener(\"change\", s);\n };\n }, [u, r]), oe({ theme: e, cssVariablesSelector: o, currentColorScheme: p });\n const k = C(\n () => ({\n colorScheme: u,\n currentColorScheme: p,\n setColorScheme: (n) => {\n r || (l(n), localStorage.setItem(\"colorScheme\", n));\n }\n }),\n [u, p, r]\n );\n return /* @__PURE__ */ g(f.Provider, { value: { ...k, options: a }, children: /* @__PURE__ */ g(\"div\", { className: p, ...c, children: t }) });\n}, ee = () => {\n const o = N(f);\n if (!o)\n throw new Error(\"useTheme must be used within a ThemeProvider\");\n return o;\n}, ue = () => {\n const { currentColorScheme: o, setColorScheme: r } = ee();\n return [o, r];\n};\nexport {\n ce as ThemeProvider,\n B as teliaTheme,\n oe as useApplyTheme,\n ue as useColorScheme,\n ee as useTheme\n};\n//# sourceMappingURL=theme.es.js.map\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue.call(this, arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn this && this[arg] || arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(this, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, this && this[key] || key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { forwardRef } from \"react\";\nimport type { BaseProps } from \"@purpurds/common-types\";\nimport { FieldErrorText } from \"@purpurds/field-error-text\";\nimport { FieldHelperText } from \"@purpurds/field-helper-text\";\nimport { Label } from \"@purpurds/label\";\nimport { useColorScheme } from \"@purpurds/theme\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./text-area.module.scss\";\n\nexport type TextAreaProps = Omit<BaseProps<\"textarea\">, \"id\"> & {\n id: string;\n /**\n * Use to render error message below the text area. The text area renders with error appearance.\n * */\n errorText?: string;\n /**\n * Use to give context about the text area's input. Renders below the text area.\n * */\n helperText?: string;\n /**\n * The label of the text area.\n * */\n label?: string;\n /**\n * The height of the text area, measured in number of rows.\n * */\n rows?: number;\n /**\n * The width of the text area, measured in number of cols.\n * */\n cols?: number;\n};\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-text-area\";\n\nexport const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n (\n {\n id,\n [\"data-testid\"]: dataTestId,\n className,\n errorText,\n helperText,\n label,\n rows = 3,\n cols = 90,\n ...props\n },\n ref\n ) => {\n const [colorScheme] = useColorScheme();\n\n const getTestId = (name: string) => (dataTestId ? `${dataTestId}-${name}` : undefined);\n\n const helperTextId = helperText ? `${id}-helper-text` : undefined;\n\n const textAreaContainerClassnames = cx(`${rootClassName}__textarea-container`, {\n [`${rootClassName}__textarea-container--disabled`]: props.disabled,\n [`${rootClassName}__textarea-container--readonly`]: props.readOnly && !props.disabled,\n });\n\n return (\n <div className={cx(className, rootClassName)} data-testid={dataTestId}>\n {label && (\n <Label\n htmlFor={id}\n disabled={props.disabled}\n className={styles[`${rootClassName}__label`]}\n data-testid={getTestId(\"label\")}\n >\n {props.required && <span aria-hidden>*</span>}\n {label}\n </Label>\n )}\n <div className={textAreaContainerClassnames}>\n <textarea\n {...props}\n ref={ref}\n id={id}\n data-testid={getTestId(\"textarea\")}\n aria-describedby={props[\"aria-describedby\"] || helperTextId}\n aria-invalid={props[\"aria-invalid\"] || !!errorText}\n className={cx(\n `${rootClassName}__textarea`,\n `${rootClassName}__textarea--${colorScheme}`,\n {\n [`${rootClassName}__textarea--error`]: !!errorText,\n }\n )}\n rows={rows}\n cols={cols}\n />\n <div className={styles[`${rootClassName}__frame`]} />\n </div>\n {helperTextId && (\n <FieldHelperText data-testid={getTestId(\"helper-text\")} id={helperTextId}>\n {helperText}\n </FieldHelperText>\n )}\n {errorText && (\n <FieldErrorText data-testid={getTestId(\"error-text\")}>{errorText}</FieldErrorText>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n"],"names":["g","e","p","c","h","i","r","s","u","y","w","b","S","f","j","$","O","q","m","_","N","A","l","d","B","M","P","C","v","a","Z","x","t","o","n","R","E","D","V","ee","ue","hasOwn","classNames","classes","arg","appendClass","parseValue","key","value","newClass","module","cx","styles","rootClassName","TextArea","forwardRef","id","dataTestId","className","errorText","helperText","label","rows","cols","props","ref","colorScheme","useColorScheme","getTestId","name","helperTextId","textAreaContainerClassnames","jsxs","Label","jsx","FieldHelperText","FieldErrorText"],"mappings":";;;;AACA,SAASA,EAAEC,GAAG;AACZ,SAAOA,KAAKA,EAAE,cAAc,OAAO,UAAU,eAAe,KAAKA,GAAG,SAAS,IAAIA,EAAE,UAAUA;AAC/F;AACA,IAAIC,IAAI,EAAE,SAAS,GAAI;AACvB;AAAA;AAAA;AAAA;AAAA;AAKA,IAAIC;AACJ,SAASC,IAAI;AACX,SAAOD,MAAMA,IAAI,GAAG,SAASF,GAAG;AAC9B,KAAC,WAAW;AACV,UAAII,IAAI,CAAA,EAAG;AACX,eAAS,IAAI;AACX,iBAASC,IAAI,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AACjD,cAAI,IAAI,UAAU,CAAC;AACnB,gBAAMA,IAAIC,EAAED,GAAGE,EAAE,KAAK,MAAM,CAAC,CAAC;AAAA,QACxC;AACQ,eAAOF;AAAA,MACf;AACM,eAASE,EAAEF,GAAG;AACZ,YAAI,OAAOA,KAAK,YAAY,OAAOA,KAAK;AACtC,iBAAO,QAAQ,KAAKA,CAAC,KAAKA;AAC5B,YAAI,OAAOA,KAAK;AACd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UAAA;AAAA,QACF;AAAA,0BACC,OAAI,EAAA,WAAWX,EAAO,GAAGC,CAAa,SAAS,EAAG,CAAA;AAAA,MAAA,GACrD;AAAA,MACCiB,uBACEK,IAAgB,EAAA,eAAaP,EAAU,aAAa,GAAG,IAAIE,GACzD,UACHV,EAAA,CAAA;AAAA,MAEDD,KACE,gBAAAe,EAAAE,IAAA,EAAe,eAAaR,EAAU,YAAY,GAAI,UAAUT,EAAA,CAAA;AAAA,IAAA,GAErE;AAAA,EAAA;AAGN;AAEAL,GAAS,cAAc;","x_google_ignoreList":[4]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/text-area",
3
- "version": "8.1.1",
3
+ "version": "8.2.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/text-area.cjs.js",
6
6
  "types": "./dist/text-area.d.ts",
@@ -16,12 +16,12 @@
16
16
  "source": "src/text-area.tsx",
17
17
  "dependencies": {
18
18
  "classnames": "~2.5.0",
19
- "@purpurds/common-types": "8.1.1",
20
- "@purpurds/label": "8.1.1",
21
- "@purpurds/field-error-text": "8.1.1",
22
- "@purpurds/field-helper-text": "8.1.1",
23
- "@purpurds/tokens": "8.1.1",
24
- "@purpurds/theme": "8.1.1"
19
+ "@purpurds/field-error-text": "8.2.0",
20
+ "@purpurds/common-types": "8.2.0",
21
+ "@purpurds/field-helper-text": "8.2.0",
22
+ "@purpurds/theme": "8.2.0",
23
+ "@purpurds/label": "8.2.0",
24
+ "@purpurds/tokens": "8.2.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@storybook/react-vite": "^9.0.18",
@@ -37,7 +37,7 @@ describe("TextArea", () => {
37
37
 
38
38
  const textarea = screen.getByTestId("test-textarea");
39
39
  expect(textarea).toBeInTheDocument();
40
- expect(textarea).toHaveClass(`${rootClassName}__textarea`, `${rootClassName}__textarea--auto`);
40
+ expect(textarea).toHaveClass(`${rootClassName}__textarea`, `${rootClassName}__textarea--light`);
41
41
  expect(screen.queryByTestId("test-label")).not.toBeInTheDocument();
42
42
  expect(screen.queryByTestId("test-helper-text")).not.toBeInTheDocument();
43
43
  });
@@ -47,7 +47,7 @@ describe("TextArea", () => {
47
47
 
48
48
  const textarea = screen.getByTestId("test-textarea");
49
49
  expect(textarea).toBeInTheDocument();
50
- expect(textarea).toHaveClass(`${rootClassName}__textarea`, `${rootClassName}__textarea--auto`);
50
+ expect(textarea).toHaveClass(`${rootClassName}__textarea`, `${rootClassName}__textarea--light`);
51
51
  expect(screen.getByTestId("test-label")).toHaveTextContent("Test label");
52
52
  expect(screen.queryByTestId("test-helper-text")).not.toBeInTheDocument();
53
53
  });
@@ -62,7 +62,7 @@ describe("TextArea", () => {
62
62
 
63
63
  const textarea = screen.getByTestId("test-textarea");
64
64
  expect(textarea).toBeInTheDocument();
65
- expect(textarea).toHaveClass(`${rootClassName}__textarea`, `${rootClassName}__textarea--auto`);
65
+ expect(textarea).toHaveClass(`${rootClassName}__textarea`, `${rootClassName}__textarea--light`);
66
66
  expect(screen.getByTestId("test-label")).toHaveTextContent("Test label");
67
67
  expect(screen.getByTestId("test-helper-text")).toHaveTextContent("Helper text");
68
68
  });