@purpurds/text-area 8.2.2 → 8.2.3

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.2.1
2
+ Version: 8.2.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.2.1
9
+ Version: 8.2.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.2.1
16
+ Version: 8.2.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.2.1
23
+ Version: 8.2.2
24
24
  License: AGPL-3.0-only
25
25
  Private: false
26
26
 
@@ -1,22 +1,22 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),f=require("react");require("react-dom");function z(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(a,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return a.default=r,Object.freeze(a)}const s=z(f);function k(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var $={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),_=require("react");require("react-dom");function Z(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(a,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}return a.default=r,Object.freeze(a)}const s=Z(_);function W(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var w={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var w;function I(){return w||(w=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})()}($)),$.exports}var L=I();const H=k(L),G={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},J=H.bind(G),j="purpur-icon",K="md",Q=r=>r.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),U=({content:r="",title:a}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${Q(t)}>${i}${r}</svg>`},X=r=>r.replace(/<(\/?)svg([^>]*)>/g,"").trim(),E=({svg:r,allyTitle:a,className:t,size:i=K,...u})=>{const e=U({content:X(r.svg),title:a}),n=J(t,j,`${j}--${i}`);return l.jsx("span",{className:n,dangerouslySetInnerHTML:{__html:e},...u})};E.displayName="Icon";const Y={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"};function ee(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var S={exports:{}};/*!
5
+ */var j;function z(){return j||(j=1,(function(r){(function(){var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];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 n.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=u(t,this&&this[o]||o));return t}function u(e,t){return t?e?e+" "+t:e+t:e}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(w)),w.exports}var F=z();const k=W(F),L={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},H=k.bind(L),S="purpur-icon",G="md",J=r=>r.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),K=({content:r="",title:a}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],i=a?`<title>${a}</title>`:"";return`<svg ${J(n)}>${i}${r}</svg>`},Q=r=>r.replace(/<(\/?)svg([^>]*)>/g,"").trim(),D=({svg:r,allyTitle:a,className:n,size:i=G,...u})=>{const e=K({content:Q(r.svg),title:a}),t=H(n,S,`${S}--${i}`);return l.jsx("span",{className:t,dangerouslySetInnerHTML:{__html:e},...u})};D.displayName="Icon";const U={name:"error-filled",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',keywords:["error-filled"],category:"status"};function X(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var q={exports:{}};/*!
6
6
  Copyright (c) 2018 Jed Watson.
7
7
  Licensed under the MIT License (MIT), see
8
8
  http://jedwatson.github.io/classnames
9
- */var q;function re(){return q||(q=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})()}(S)),S.exports}var te=re();const ne=ee(te),ae={"purpur-field-error-text":"_purpur-field-error-text_u1cy2_1","purpur-field-error-text--negative":"_purpur-field-error-text--negative_u1cy2_11","purpur-field-error-text__icon":"_purpur-field-error-text__icon_u1cy2_14"},O=ne.bind(ae),x="purpur-field-error-text",ie=({children:r,className:a,negative:t=!1,["aria-relevant"]:i="additions text",...u})=>l.jsxs("div",{className:O(a,x,{[`${x}--negative`]:t}),"aria-live":"assertive","aria-relevant":i,...u,children:[l.jsx(E,{svg:Y,size:"xs",className:O(`${x}__icon`)}),r]});function ue(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var N={exports:{}};/*!
9
+ */var O;function Y(){return O||(O=1,(function(r){(function(){var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];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 n.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=u(t,this&&this[o]||o));return t}function u(e,t){return t?e?e+" "+t:e+t:e}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(q)),q.exports}var ee=Y();const re=X(ee),te={"purpur-field-error-text":"_purpur-field-error-text_u1cy2_1","purpur-field-error-text--negative":"_purpur-field-error-text--negative_u1cy2_11","purpur-field-error-text__icon":"_purpur-field-error-text__icon_u1cy2_14"},N=re.bind(te),v="purpur-field-error-text",ne=({children:r,className:a,negative:n=!1,["aria-relevant"]:i="additions text",...u})=>l.jsxs("div",{className:N(a,v,{[`${v}--negative`]:n}),"aria-live":"assertive","aria-relevant":i,...u,children:[l.jsx(D,{svg:U,size:"xs",className:N(`${v}__icon`)}),r]});function ae(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var P={exports:{}};/*!
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 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:{}};/*!
13
+ */var C;function ie(){return C||(C=1,(function(r){(function(){var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];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 n.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=u(t,this&&this[o]||o));return t}function u(e,t){return t?e?e+" "+t:e+t:e}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(P)),P.exports}var ue=ie();const oe=ae(ue),le={"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"},se=oe.bind(le),m="purpur-field-helper-text",ce=({children:r,className:a,disabled:n,id:i,negative:u,...e})=>{const t=se(a,m,{[`${m}--disabled`]:n,[`${m}--negative`]:u});return l.jsx("span",{id:i,className:t,...e,children:r})};function A(r,a){if(typeof r=="function")return r(a);r!=null&&(r.current=a)}function pe(...r){return a=>{let n=!1;const i=r.map(u=>{const e=A(u,a);return!n&&typeof e=="function"&&(n=!0),e});if(n)return()=>{for(let u=0;u<i.length;u++){const e=i[u];typeof e=="function"?e():A(r[u],null)}}}}function de(r){const a=fe(r),n=s.forwardRef((i,u)=>{const{children:e,...t}=i,o=s.Children.toArray(e),c=o.find(xe);if(c){const d=c.props.children,x=o.map(f=>f===c?s.Children.count(d)>1?s.Children.only(null):s.isValidElement(d)?d.props.children:null:f);return l.jsx(a,{...t,ref:u,children:s.isValidElement(d)?s.cloneElement(d,void 0,x):null})}return l.jsx(a,{...t,ref:u,children:e})});return n.displayName=`${r}.Slot`,n}function fe(r){const a=s.forwardRef((n,i)=>{const{children:u,...e}=n;if(s.isValidElement(u)){const t=ve(u),o=he(e,u.props);return u.type!==s.Fragment&&(o.ref=i?pe(i,t):t),s.cloneElement(u,o)}return s.Children.count(u)>1?s.Children.only(null):null});return a.displayName=`${r}.SlotClone`,a}var _e=Symbol("radix.slottable");function xe(r){return s.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===_e}function he(r,a){const n={...a};for(const i in a){const u=r[i],e=a[i];/^on[A-Z]/.test(i)?u&&e?n[i]=(...t)=>{const o=e(...t);return u(...t),o}:u&&(n[i]=u):i==="style"?n[i]={...u,...e}:i==="className"&&(n[i]=[u,e].filter(Boolean).join(" "))}return{...r,...n}}function ve(r){var a,n;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=(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)}var me=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=me.reduce((r,a)=>{const n=de(`Primitive.${a}`),i=s.forwardRef((u,e)=>{const{asChild:t,...o}=u,c=t?n:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...o,ref:e})});return i.displayName=`Primitive.${a}`,{...r,[a]:i}},{}),ye="Label",B=s.forwardRef((r,a)=>l.jsx(ge.label,{...r,ref:a,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=r.onMouseDown)==null||i.call(r,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));B.displayName=ye;var be=B;function $e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var M={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})()}(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:{}};/*!
17
+ */var R;function we(){return R||(R=1,(function(r){(function(){var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];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 n.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=u(t,this&&this[o]||o));return t}function u(e,t){return t?e?e+" "+t:e+t:e}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(M)),M.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),g="purpur-label",Ne=({children:r,className:a,disabled:n,negative:i=!1,...u})=>{const e=Oe(a,g,{[`${g}--disabled`]:n,[`${g}--negative`]:i});return l.jsx(be,{className:e,...u,children:r})},Pe=_.createContext({colorScheme:"light",currentColorScheme:"light",setColorScheme:()=>{},options:{}}),Ce=()=>{const r=_.useContext(Pe);if(!r)throw new Error("useTheme must be used within a ThemeProvider");return r},Ae=()=>{const{currentColorScheme:r,setColorScheme:a}=Ce();return[r,a]};function Me(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var y={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",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;
21
+ */var E;function Re(){return E||(E=1,(function(r){(function(){var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];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 n.apply(this,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)a.call(e,o)&&e[o]&&(t=u(t,this&&this[o]||o));return t}function u(e,t){return t?e?e+" "+t:e+t:e}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(y)),y.exports}var Ee=Re();const De=Me(Ee),$={"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"},b=De.bind($),p="purpur-text-area",V=_.forwardRef(({id:r,["data-testid"]:a,className:n,errorText:i,helperText:u,label:e,rows:t=3,cols:o=90,...c},d)=>{const[x]=Ae(),f=T=>a?`${a}-${T}`:void 0,h=u?`${r}-helper-text`:void 0,I=b(`${p}__textarea-container`,{[`${p}__textarea-container--disabled`]:c.disabled,[`${p}__textarea-container--readonly`]:c.readOnly&&!c.disabled});return l.jsxs("div",{className:b(n,p),"data-testid":a,children:[e&&l.jsxs(Ne,{htmlFor:r,disabled:c.disabled,className:$[`${p}__label`],"data-testid":f("label"),children:[c.required&&l.jsx("span",{"aria-hidden":!0,children:"*"}),e]}),l.jsxs("div",{className:I,children:[l.jsx("textarea",{...c,ref:d,id:r,"data-testid":f("textarea"),"aria-describedby":c["aria-describedby"]||h,"aria-invalid":c["aria-invalid"]||!!i,className:b(`${p}__textarea`,`${p}__textarea--${x}`,{[`${p}__textarea--error`]:!!i}),rows:t,cols:o}),l.jsx("div",{className:$[`${p}__frame`]})]}),h&&l.jsx(ce,{"data-testid":f("helper-text"),id:h,children:u}),i&&l.jsx(ne,{"data-testid":f("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, 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,CAC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,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 f } from \"react/jsx-runtime\";\nimport * as a from \"react\";\nimport \"react-dom\";\nfunction b(t, o) {\n if (typeof t == \"function\")\n return t(o);\n t != null && (t.current = o);\n}\nfunction S(...t) {\n return (o) => {\n let n = !1;\n const i = t.map((r) => {\n const e = b(r, o);\n return !n && typeof e == \"function\" && (n = !0), e;\n });\n if (n)\n return () => {\n for (let r = 0; r < i.length; r++) {\n const e = i[r];\n typeof e == \"function\" ? e() : b(t[r], null);\n }\n };\n };\n}\n// @__NO_SIDE_EFFECTS__\nfunction g(t) {\n const o = /* @__PURE__ */ _(t), n = a.forwardRef((i, r) => {\n const { children: e, ...l } = i, s = a.Children.toArray(e), u = s.find(w);\n if (u) {\n const c = u.props.children, v = s.map((m) => m === u ? a.Children.count(c) > 1 ? a.Children.only(null) : a.isValidElement(c) ? c.props.children : null : m);\n return /* @__PURE__ */ f(o, { ...l, ref: r, children: a.isValidElement(c) ? a.cloneElement(c, void 0, v) : null });\n }\n return /* @__PURE__ */ f(o, { ...l, ref: r, children: e });\n });\n return n.displayName = `${t}.Slot`, n;\n}\n// @__NO_SIDE_EFFECTS__\nfunction _(t) {\n const o = a.forwardRef((n, i) => {\n const { children: r, ...e } = n;\n if (a.isValidElement(r)) {\n const l = C(r), s = x(e, r.props);\n return r.type !== a.Fragment && (s.ref = i ? S(i, l) : l), a.cloneElement(r, s);\n }\n return a.Children.count(r) > 1 ? a.Children.only(null) : null;\n });\n return o.displayName = `${t}.SlotClone`, o;\n}\nvar E = Symbol(\"radix.slottable\");\nfunction w(t) {\n return a.isValidElement(t) && typeof t.type == \"function\" && \"__radixId\" in t.type && t.type.__radixId === E;\n}\nfunction x(t, o) {\n const n = { ...o };\n for (const i in o) {\n const r = t[i], e = o[i];\n /^on[A-Z]/.test(i) ? r && e ? n[i] = (...s) => {\n const u = e(...s);\n return r(...s), u;\n } : r && (n[i] = r) : i === \"style\" ? n[i] = { ...r, ...e } : i === \"className\" && (n[i] = [r, e].filter(Boolean).join(\" \"));\n }\n return { ...t, ...n };\n}\nfunction C(t) {\n var i, r;\n let o = (i = Object.getOwnPropertyDescriptor(t.props, \"ref\")) == null ? void 0 : i.get, n = o && \"isReactWarning\" in o && o.isReactWarning;\n return n ? t.ref : (o = (r = Object.getOwnPropertyDescriptor(t, \"ref\")) == null ? void 0 : r.get, n = o && \"isReactWarning\" in o && o.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);\n}\nvar R = [\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 \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n], N = R.reduce((t, o) => {\n const n = /* @__PURE__ */ g(`Primitive.${o}`), i = a.forwardRef((r, e) => {\n const { asChild: l, ...s } = r, u = l ? n : o;\n return typeof window < \"u\" && (window[Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ f(u, { ...s, ref: e });\n });\n return i.displayName = `Primitive.${o}`, { ...t, [o]: i };\n}, {}), P = \"Label\", h = a.forwardRef((t, o) => /* @__PURE__ */ f(\n N.label,\n {\n ...t,\n ref: o,\n onMouseDown: (n) => {\n var r;\n n.target.closest(\"button, input, select, textarea\") || ((r = t.onMouseDown) == null || r.call(t, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());\n }\n }\n));\nh.displayName = P;\nvar O = h;\nfunction j(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\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 y;\nfunction D() {\n return y || (y = 1, (function(t) {\n (function() {\n var o = {}.hasOwnProperty;\n function n() {\n for (var e = \"\", l = 0; l < arguments.length; l++) {\n var s = arguments[l];\n s && (e = r(e, i.call(this, s)));\n }\n return e;\n }\n function i(e) {\n if (typeof e == \"string\" || typeof e == \"number\")\n return this && this[e] || e;\n if (typeof e != \"object\")\n return \"\";\n if (Array.isArray(e))\n return n.apply(this, e);\n if (e.toString !== Object.prototype.toString && !e.toString.toString().includes(\"[native code]\"))\n return e.toString();\n var l = \"\";\n for (var s in e)\n o.call(e, s) && e[s] && (l = r(l, this && this[s] || s));\n return l;\n }\n function r(e, l) {\n return l ? e ? e + \" \" + l : e + l : e;\n }\n t.exports ? (n.default = n, t.exports = n) : window.classNames = n;\n })();\n })(p)), p.exports;\n}\nvar A = D();\nconst V = /* @__PURE__ */ j(A), $ = {\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}, I = V.bind($), d = \"purpur-label\", B = ({\n children: t,\n className: o,\n disabled: n,\n negative: i = !1,\n ...r\n}) => {\n const e = I(o, d, {\n [`${d}--disabled`]: n,\n [`${d}--negative`]: i\n });\n return /* @__PURE__ */ f(O, { className: e, ...r, children: t });\n};\nexport {\n B 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","E","n","R","D","V","I","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,YA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EAAM,SAChB,UAAWZ,EAAO,GAAGC,CAAa,SAAS,EAC3C,cAAae,EAAU,OAAO,EAE7B,SAAA,CAAAJ,EAAM,UAAYU,EAAAA,IAAC,OAAA,CAAK,cAAW,GAAC,SAAA,IAAC,EACrCb,CAAA,CAAA,CAAA,EAGLW,EAAAA,KAAC,MAAA,CAAI,UAAWD,EACd,SAAA,CAAAG,EAAAA,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,CAC3C,EAEF,KAAAG,EACA,KAAAC,CAAA,CAAA,QAED,MAAA,CAAI,UAAWX,EAAO,GAAGC,CAAa,SAAS,CAAA,CAAG,CAAA,EACrD,EACCiB,SACEK,GAAA,CAAgB,cAAaP,EAAU,aAAa,EAAG,GAAIE,EACzD,SAAAV,CAAA,CACH,EAEDD,GACCe,EAAAA,IAACE,GAAA,CAAe,cAAaR,EAAU,YAAY,EAAI,SAAAT,CAAA,CAAU,CAAA,EAErE,CAEJ,CACF,EAEAL,EAAS,YAAc","x_google_ignoreList":[4]}
@@ -1,19 +1,19 @@
1
- import { jsxs as f, jsx as s, Fragment as z } from "react/jsx-runtime";
1
+ import { jsxs as _, jsx as p } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import { createContext as I, useContext as L, forwardRef as T } from "react";
3
+ import { createContext as Z, useContext as W, forwardRef as F } from "react";
4
4
  import "react-dom";
5
- function k(r) {
5
+ function z(r) {
6
6
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
7
7
  }
8
- var $ = { exports: {} };
8
+ var w = { exports: {} };
9
9
  /*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
13
  */
14
- var w;
15
- function H() {
16
- return w || (w = 1, function(r) {
14
+ var S;
15
+ function L() {
16
+ return S || (S = 1, (function(r) {
17
17
  (function() {
18
18
  var a = {}.hasOwnProperty;
19
19
  function n() {
@@ -42,10 +42,10 @@ function H() {
42
42
  }
43
43
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
44
44
  })();
45
- }($)), $.exports;
45
+ })(w)), w.exports;
46
46
  }
47
- var G = H();
48
- const J = /* @__PURE__ */ k(G), K = {
47
+ var T = L();
48
+ const k = /* @__PURE__ */ z(T), H = {
49
49
  "purpur-icon": "_purpur-icon_8u1lq_1",
50
50
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
51
51
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -53,40 +53,40 @@ const J = /* @__PURE__ */ k(G), K = {
53
53
  "purpur-icon--md": "_purpur-icon--md_8u1lq_16",
54
54
  "purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
55
55
  "purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
56
- }, Q = J.bind(K), S = "purpur-icon", U = "md", X = (r) => r.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Y = ({ content: r = "", title: a } = {}) => {
56
+ }, G = k.bind(H), q = "purpur-icon", J = "md", K = (r) => r.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), Q = ({ content: r = "", title: a } = {}) => {
57
57
  const n = [
58
58
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
59
59
  { name: "fill", value: "currentColor" },
60
60
  { name: "viewBox", value: "0 0 24 24" },
61
61
  a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
62
62
  ], i = a ? `<title>${a}</title>` : "";
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, ...u }) => {
65
- const e = Y({
66
- content: ee(r.svg),
63
+ return `<svg ${K(n)}>${i}${r}</svg>`;
64
+ }, U = (r) => r.replace(/<(\/?)svg([^>]*)>/g, "").trim(), B = ({ svg: r, allyTitle: a, className: n, size: i = J, ...u }) => {
65
+ const e = Q({
66
+ content: U(r.svg),
67
67
  title: a
68
- }), t = Q(n, S, `${S}--${i}`);
69
- return /* @__PURE__ */ s("span", { className: t, dangerouslySetInnerHTML: { __html: e }, ...u });
68
+ }), t = G(n, q, `${q}--${i}`);
69
+ return /* @__PURE__ */ p("span", { className: t, dangerouslySetInnerHTML: { __html: e }, ...u });
70
70
  };
71
- M.displayName = "Icon";
72
- const re = {
71
+ B.displayName = "Icon";
72
+ const X = {
73
73
  name: "error-filled",
74
74
  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>',
75
75
  keywords: ["error-filled"],
76
76
  category: "status"
77
77
  };
78
- function te(r) {
78
+ function Y(r) {
79
79
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
80
80
  }
81
- var q = { exports: {} };
81
+ var N = { exports: {} };
82
82
  /*!
83
83
  Copyright (c) 2018 Jed Watson.
84
84
  Licensed under the MIT License (MIT), see
85
85
  http://jedwatson.github.io/classnames
86
86
  */
87
- var N;
88
- function ne() {
89
- return N || (N = 1, function(r) {
87
+ var O;
88
+ function ee() {
89
+ return O || (O = 1, (function(r) {
90
90
  (function() {
91
91
  var a = {}.hasOwnProperty;
92
92
  function n() {
@@ -115,46 +115,46 @@ function ne() {
115
115
  }
116
116
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
117
117
  })();
118
- }(q)), q.exports;
118
+ })(N)), N.exports;
119
119
  }
120
- var ae = ne();
121
- const ie = /* @__PURE__ */ te(ae), ue = {
120
+ var re = ee();
121
+ const te = /* @__PURE__ */ Y(re), ne = {
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(ue), h = "purpur-field-error-text", oe = ({
125
+ }, j = te.bind(ne), v = "purpur-field-error-text", ae = ({
126
126
  children: r,
127
127
  className: a,
128
128
  negative: n = !1,
129
129
  ["aria-relevant"]: i = "additions text",
130
130
  ...u
131
- }) => /* @__PURE__ */ f(
131
+ }) => /* @__PURE__ */ _(
132
132
  "div",
133
133
  {
134
- className: O(a, h, {
135
- [`${h}--negative`]: n
134
+ className: j(a, v, {
135
+ [`${v}--negative`]: n
136
136
  }),
137
137
  "aria-live": "assertive",
138
138
  "aria-relevant": i,
139
139
  ...u,
140
140
  children: [
141
- /* @__PURE__ */ s(M, { svg: re, size: "xs", className: O(`${h}__icon`) }),
141
+ /* @__PURE__ */ p(B, { svg: X, size: "xs", className: j(`${v}__icon`) }),
142
142
  r
143
143
  ]
144
144
  }
145
145
  );
146
- function le(r) {
146
+ function ie(r) {
147
147
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
148
148
  }
149
- var j = { exports: {} };
149
+ var C = { exports: {} };
150
150
  /*!
151
151
  Copyright (c) 2018 Jed Watson.
152
152
  Licensed under the MIT License (MIT), see
153
153
  http://jedwatson.github.io/classnames
154
154
  */
155
- var C;
156
- function se() {
157
- return C || (C = 1, function(r) {
155
+ var P;
156
+ function ue() {
157
+ return P || (P = 1, (function(r) {
158
158
  (function() {
159
159
  var a = {}.hasOwnProperty;
160
160
  function n() {
@@ -183,14 +183,14 @@ function se() {
183
183
  }
184
184
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
185
185
  })();
186
- }(j)), j.exports;
186
+ })(C)), C.exports;
187
187
  }
188
- var pe = se();
189
- const ce = /* @__PURE__ */ le(pe), de = {
188
+ var oe = ue();
189
+ const le = /* @__PURE__ */ ie(oe), se = {
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), x = "purpur-field-helper-text", _e = ({
193
+ }, pe = le.bind(se), m = "purpur-field-helper-text", ce = ({
194
194
  children: r,
195
195
  className: a,
196
196
  disabled: n,
@@ -198,18 +198,18 @@ const ce = /* @__PURE__ */ le(pe), de = {
198
198
  negative: u,
199
199
  ...e
200
200
  }) => {
201
- const t = fe(a, x, {
202
- [`${x}--disabled`]: n,
203
- [`${x}--negative`]: u
201
+ const t = pe(a, m, {
202
+ [`${m}--disabled`]: n,
203
+ [`${m}--negative`]: u
204
204
  });
205
- return /* @__PURE__ */ s("span", { id: i, className: t, ...e, children: r });
205
+ return /* @__PURE__ */ p("span", { id: i, className: t, ...e, children: r });
206
206
  };
207
207
  function A(r, a) {
208
208
  if (typeof r == "function")
209
209
  return r(a);
210
210
  r != null && (r.current = a);
211
211
  }
212
- function he(...r) {
212
+ function de(...r) {
213
213
  return (a) => {
214
214
  let n = !1;
215
215
  const i = r.map((u) => {
@@ -225,39 +225,46 @@ function he(...r) {
225
225
  };
226
226
  };
227
227
  }
228
- var D = l.forwardRef((r, a) => {
229
- const { children: n, ...i } = r, u = l.Children.toArray(n), e = u.find(ve);
230
- if (e) {
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
- }
234
- return /* @__PURE__ */ s(y, { ...i, ref: a, children: n });
235
- });
236
- D.displayName = "Slot";
237
- var y = l.forwardRef((r, a) => {
238
- const { children: n, ...i } = r;
239
- if (l.isValidElement(n)) {
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
- }
243
- return l.Children.count(n) > 1 ? l.Children.only(null) : null;
244
- });
245
- y.displayName = "SlotClone";
246
- var xe = ({ children: r }) => /* @__PURE__ */ s(z, { children: r });
247
- function ve(r) {
248
- return l.isValidElement(r) && r.type === xe;
228
+ // @__NO_SIDE_EFFECTS__
229
+ function fe(r) {
230
+ const a = /* @__PURE__ */ _e(r), n = l.forwardRef((i, u) => {
231
+ const { children: e, ...t } = i, o = l.Children.toArray(e), s = o.find(he);
232
+ if (s) {
233
+ const d = s.props.children, x = o.map((f) => f === s ? l.Children.count(d) > 1 ? l.Children.only(null) : l.isValidElement(d) ? d.props.children : null : f);
234
+ return /* @__PURE__ */ p(a, { ...t, ref: u, children: l.isValidElement(d) ? l.cloneElement(d, void 0, x) : null });
235
+ }
236
+ return /* @__PURE__ */ p(a, { ...t, ref: u, children: e });
237
+ });
238
+ return n.displayName = `${r}.Slot`, n;
239
+ }
240
+ // @__NO_SIDE_EFFECTS__
241
+ function _e(r) {
242
+ const a = l.forwardRef((n, i) => {
243
+ const { children: u, ...e } = n;
244
+ if (l.isValidElement(u)) {
245
+ const t = me(u), o = ve(e, u.props);
246
+ return u.type !== l.Fragment && (o.ref = i ? de(i, t) : t), l.cloneElement(u, o);
247
+ }
248
+ return l.Children.count(u) > 1 ? l.Children.only(null) : null;
249
+ });
250
+ return a.displayName = `${r}.SlotClone`, a;
251
+ }
252
+ var xe = Symbol("radix.slottable");
253
+ function he(r) {
254
+ return l.isValidElement(r) && typeof r.type == "function" && "__radixId" in r.type && r.type.__radixId === xe;
249
255
  }
250
- function me(r, a) {
256
+ function ve(r, a) {
251
257
  const n = { ...a };
252
258
  for (const i in a) {
253
259
  const u = r[i], e = a[i];
254
260
  /^on[A-Z]/.test(i) ? u && e ? n[i] = (...t) => {
255
- e(...t), u(...t);
261
+ const o = e(...t);
262
+ return u(...t), o;
256
263
  } : u && (n[i] = u) : i === "style" ? n[i] = { ...u, ...e } : i === "className" && (n[i] = [u, e].filter(Boolean).join(" "));
257
264
  }
258
265
  return { ...r, ...n };
259
266
  }
260
- function ge(r) {
267
+ function me(r) {
261
268
  var a, n;
262
269
  let i = (a = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : a.get, u = i && "isReactWarning" in i && i.isReactWarning;
263
270
  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);
@@ -276,17 +283,18 @@ var ye = [
276
283
  "nav",
277
284
  "ol",
278
285
  "p",
286
+ "select",
279
287
  "span",
280
288
  "svg",
281
289
  "ul"
282
- ], be = ye.reduce((r, a) => {
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 });
290
+ ], ge = ye.reduce((r, a) => {
291
+ const n = /* @__PURE__ */ fe(`Primitive.${a}`), i = l.forwardRef((u, e) => {
292
+ const { asChild: t, ...o } = u, s = t ? n : a;
293
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(s, { ...o, ref: e });
286
294
  });
287
- return n.displayName = `Primitive.${a}`, { ...r, [a]: n };
288
- }, {}), $e = "Label", B = l.forwardRef((r, a) => /* @__PURE__ */ s(
289
- be.label,
295
+ return i.displayName = `Primitive.${a}`, { ...r, [a]: i };
296
+ }, {}), be = "Label", D = l.forwardRef((r, a) => /* @__PURE__ */ p(
297
+ ge.label,
290
298
  {
291
299
  ...r,
292
300
  ref: a,
@@ -296,20 +304,20 @@ var ye = [
296
304
  }
297
305
  }
298
306
  ));
299
- B.displayName = $e;
300
- var we = B;
301
- function Se(r) {
307
+ D.displayName = be;
308
+ var $e = D;
309
+ function we(r) {
302
310
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
303
311
  }
304
- var P = { exports: {} };
312
+ var R = { exports: {} };
305
313
  /*!
306
314
  Copyright (c) 2018 Jed Watson.
307
315
  Licensed under the MIT License (MIT), see
308
316
  http://jedwatson.github.io/classnames
309
317
  */
310
- var R;
311
- function qe() {
312
- return R || (R = 1, function(r) {
318
+ var E;
319
+ function Se() {
320
+ return E || (E = 1, (function(r) {
313
321
  (function() {
314
322
  var a = {}.hasOwnProperty;
315
323
  function n() {
@@ -338,52 +346,52 @@ function qe() {
338
346
  }
339
347
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
340
348
  })();
341
- }(P)), P.exports;
349
+ })(R)), R.exports;
342
350
  }
343
- var Ne = qe();
344
- const Oe = /* @__PURE__ */ Se(Ne), je = {
351
+ var qe = Se();
352
+ const Ne = /* @__PURE__ */ we(qe), Oe = {
345
353
  "purpur-label": "_purpur-label_1x80u_1",
346
354
  "purpur-label--negative": "_purpur-label--negative_1x80u_8",
347
355
  "purpur-label--disabled": "_purpur-label--disabled_1x80u_11"
348
- }, Ce = Oe.bind(je), v = "purpur-label", Ae = ({
356
+ }, je = Ne.bind(Oe), y = "purpur-label", Ce = ({
349
357
  children: r,
350
358
  className: a,
351
359
  disabled: n,
352
360
  negative: i = !1,
353
361
  ...u
354
362
  }) => {
355
- const e = Ce(a, v, {
356
- [`${v}--disabled`]: n,
357
- [`${v}--negative`]: i
363
+ const e = je(a, y, {
364
+ [`${y}--disabled`]: n,
365
+ [`${y}--negative`]: i
358
366
  });
359
- return /* @__PURE__ */ s(we, { className: e, ...u, children: r });
360
- }, Pe = I({
367
+ return /* @__PURE__ */ p($e, { className: e, ...u, children: r });
368
+ }, Pe = Z({
361
369
  colorScheme: "light",
362
370
  currentColorScheme: "light",
363
371
  setColorScheme: () => {
364
372
  },
365
373
  options: {}
366
- }), Re = () => {
367
- const r = L(Pe);
374
+ }), Ae = () => {
375
+ const r = W(Pe);
368
376
  if (!r)
369
377
  throw new Error("useTheme must be used within a ThemeProvider");
370
378
  return r;
371
- }, Ee = () => {
372
- const { currentColorScheme: r, setColorScheme: a } = Re();
379
+ }, Re = () => {
380
+ const { currentColorScheme: r, setColorScheme: a } = Ae();
373
381
  return [r, a];
374
382
  };
375
- function Me(r) {
383
+ function Ee(r) {
376
384
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
377
385
  }
378
- var m = { exports: {} };
386
+ var g = { exports: {} };
379
387
  /*!
380
388
  Copyright (c) 2018 Jed Watson.
381
389
  Licensed under the MIT License (MIT), see
382
390
  http://jedwatson.github.io/classnames
383
391
  */
384
- var E;
385
- function De() {
386
- return E || (E = 1, function(r) {
392
+ var M;
393
+ function Me() {
394
+ return M || (M = 1, (function(r) {
387
395
  (function() {
388
396
  var a = {}.hasOwnProperty;
389
397
  function n() {
@@ -412,10 +420,10 @@ function De() {
412
420
  }
413
421
  r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
414
422
  })();
415
- }(m)), m.exports;
423
+ })(g)), g.exports;
416
424
  }
417
- var Be = De();
418
- const Ve = /* @__PURE__ */ Me(Be), b = {
425
+ var Be = Me();
426
+ const De = /* @__PURE__ */ Ee(Be), $ = {
419
427
  "purpur-text-area": "_purpur-text-area_1qqf0_1",
420
428
  "purpur-text-area__label": "_purpur-text-area__label_1qqf0_8",
421
429
  "purpur-text-area__label-text": "_purpur-text-area__label-text_1qqf0_13",
@@ -428,7 +436,7 @@ const Ve = /* @__PURE__ */ Me(Be), b = {
428
436
  "purpur-text-area__textarea--dark": "_purpur-text-area__textarea--dark_1qqf0_60",
429
437
  "purpur-text-area__textarea--valid": "_purpur-text-area__textarea--valid_1qqf0_91",
430
438
  "purpur-text-area__textarea--error": "_purpur-text-area__textarea--error_1qqf0_91"
431
- }, g = Ve.bind(b), c = "purpur-text-area", Ze = T(
439
+ }, b = De.bind($), c = "purpur-text-area", Ve = F(
432
440
  ({
433
441
  id: r,
434
442
  ["data-testid"]: a,
@@ -438,39 +446,39 @@ const Ve = /* @__PURE__ */ Me(Be), b = {
438
446
  label: e,
439
447
  rows: t = 3,
440
448
  cols: o = 90,
441
- ...p
442
- }, V) => {
443
- const [Z] = Ee(), d = (W) => a ? `${a}-${W}` : void 0, _ = u ? `${r}-helper-text` : void 0, F = g(`${c}__textarea-container`, {
444
- [`${c}__textarea-container--disabled`]: p.disabled,
445
- [`${c}__textarea-container--readonly`]: p.readOnly && !p.disabled
449
+ ...s
450
+ }, d) => {
451
+ const [x] = Re(), f = (I) => a ? `${a}-${I}` : void 0, h = u ? `${r}-helper-text` : void 0, V = b(`${c}__textarea-container`, {
452
+ [`${c}__textarea-container--disabled`]: s.disabled,
453
+ [`${c}__textarea-container--readonly`]: s.readOnly && !s.disabled
446
454
  });
447
- return /* @__PURE__ */ f("div", { className: g(n, c), "data-testid": a, children: [
448
- e && /* @__PURE__ */ f(
449
- Ae,
455
+ return /* @__PURE__ */ _("div", { className: b(n, c), "data-testid": a, children: [
456
+ e && /* @__PURE__ */ _(
457
+ Ce,
450
458
  {
451
459
  htmlFor: r,
452
- disabled: p.disabled,
453
- className: b[`${c}__label`],
454
- "data-testid": d("label"),
460
+ disabled: s.disabled,
461
+ className: $[`${c}__label`],
462
+ "data-testid": f("label"),
455
463
  children: [
456
- p.required && /* @__PURE__ */ s("span", { "aria-hidden": !0, children: "*" }),
464
+ s.required && /* @__PURE__ */ p("span", { "aria-hidden": !0, children: "*" }),
457
465
  e
458
466
  ]
459
467
  }
460
468
  ),
461
- /* @__PURE__ */ f("div", { className: F, children: [
462
- /* @__PURE__ */ s(
469
+ /* @__PURE__ */ _("div", { className: V, children: [
470
+ /* @__PURE__ */ p(
463
471
  "textarea",
464
472
  {
465
- ...p,
466
- ref: V,
473
+ ...s,
474
+ ref: d,
467
475
  id: r,
468
- "data-testid": d("textarea"),
469
- "aria-describedby": p["aria-describedby"] || _,
470
- "aria-invalid": p["aria-invalid"] || !!i,
471
- className: g(
476
+ "data-testid": f("textarea"),
477
+ "aria-describedby": s["aria-describedby"] || h,
478
+ "aria-invalid": s["aria-invalid"] || !!i,
479
+ className: b(
472
480
  `${c}__textarea`,
473
- `${c}__textarea--${Z}`,
481
+ `${c}__textarea--${x}`,
474
482
  {
475
483
  [`${c}__textarea--error`]: !!i
476
484
  }
@@ -479,15 +487,15 @@ const Ve = /* @__PURE__ */ Me(Be), b = {
479
487
  cols: o
480
488
  }
481
489
  ),
482
- /* @__PURE__ */ s("div", { className: b[`${c}__frame`] })
490
+ /* @__PURE__ */ p("div", { className: $[`${c}__frame`] })
483
491
  ] }),
484
- _ && /* @__PURE__ */ s(_e, { "data-testid": d("helper-text"), id: _, children: u }),
485
- i && /* @__PURE__ */ s(oe, { "data-testid": d("error-text"), children: i })
492
+ h && /* @__PURE__ */ p(ce, { "data-testid": f("helper-text"), id: h, children: u }),
493
+ i && /* @__PURE__ */ p(ae, { "data-testid": f("error-text"), children: i })
486
494
  ] });
487
495
  }
488
496
  );
489
- Ze.displayName = "TextArea";
497
+ Ve.displayName = "TextArea";
490
498
  export {
491
- Ze as TextArea
499
+ Ve as TextArea
492
500
  };
493
501
  //# sourceMappingURL=text-area.es.js.map
@@ -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, 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,iBAAO;AACT,YAAI,MAAM,QAAQA,CAAC;AACjB,iBAAO,EAAE,MAAM,MAAMA,CAAC;AACxB,YAAIA,EAAE,aAAa,OAAO,UAAU,YAAY,CAACA,EAAE,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AAA,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 f } from \"react/jsx-runtime\";\nimport * as a from \"react\";\nimport \"react-dom\";\nfunction b(t, o) {\n if (typeof t == \"function\")\n return t(o);\n t != null && (t.current = o);\n}\nfunction S(...t) {\n return (o) => {\n let n = !1;\n const i = t.map((r) => {\n const e = b(r, o);\n return !n && typeof e == \"function\" && (n = !0), e;\n });\n if (n)\n return () => {\n for (let r = 0; r < i.length; r++) {\n const e = i[r];\n typeof e == \"function\" ? e() : b(t[r], null);\n }\n };\n };\n}\n// @__NO_SIDE_EFFECTS__\nfunction g(t) {\n const o = /* @__PURE__ */ _(t), n = a.forwardRef((i, r) => {\n const { children: e, ...l } = i, s = a.Children.toArray(e), u = s.find(w);\n if (u) {\n const c = u.props.children, v = s.map((m) => m === u ? a.Children.count(c) > 1 ? a.Children.only(null) : a.isValidElement(c) ? c.props.children : null : m);\n return /* @__PURE__ */ f(o, { ...l, ref: r, children: a.isValidElement(c) ? a.cloneElement(c, void 0, v) : null });\n }\n return /* @__PURE__ */ f(o, { ...l, ref: r, children: e });\n });\n return n.displayName = `${t}.Slot`, n;\n}\n// @__NO_SIDE_EFFECTS__\nfunction _(t) {\n const o = a.forwardRef((n, i) => {\n const { children: r, ...e } = n;\n if (a.isValidElement(r)) {\n const l = C(r), s = x(e, r.props);\n return r.type !== a.Fragment && (s.ref = i ? S(i, l) : l), a.cloneElement(r, s);\n }\n return a.Children.count(r) > 1 ? a.Children.only(null) : null;\n });\n return o.displayName = `${t}.SlotClone`, o;\n}\nvar E = Symbol(\"radix.slottable\");\nfunction w(t) {\n return a.isValidElement(t) && typeof t.type == \"function\" && \"__radixId\" in t.type && t.type.__radixId === E;\n}\nfunction x(t, o) {\n const n = { ...o };\n for (const i in o) {\n const r = t[i], e = o[i];\n /^on[A-Z]/.test(i) ? r && e ? n[i] = (...s) => {\n const u = e(...s);\n return r(...s), u;\n } : r && (n[i] = r) : i === \"style\" ? n[i] = { ...r, ...e } : i === \"className\" && (n[i] = [r, e].filter(Boolean).join(\" \"));\n }\n return { ...t, ...n };\n}\nfunction C(t) {\n var i, r;\n let o = (i = Object.getOwnPropertyDescriptor(t.props, \"ref\")) == null ? void 0 : i.get, n = o && \"isReactWarning\" in o && o.isReactWarning;\n return n ? t.ref : (o = (r = Object.getOwnPropertyDescriptor(t, \"ref\")) == null ? void 0 : r.get, n = o && \"isReactWarning\" in o && o.isReactWarning, n ? t.props.ref : t.props.ref || t.ref);\n}\nvar R = [\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 \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n], N = R.reduce((t, o) => {\n const n = /* @__PURE__ */ g(`Primitive.${o}`), i = a.forwardRef((r, e) => {\n const { asChild: l, ...s } = r, u = l ? n : o;\n return typeof window < \"u\" && (window[Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ f(u, { ...s, ref: e });\n });\n return i.displayName = `Primitive.${o}`, { ...t, [o]: i };\n}, {}), P = \"Label\", h = a.forwardRef((t, o) => /* @__PURE__ */ f(\n N.label,\n {\n ...t,\n ref: o,\n onMouseDown: (n) => {\n var r;\n n.target.closest(\"button, input, select, textarea\") || ((r = t.onMouseDown) == null || r.call(t, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault());\n }\n }\n));\nh.displayName = P;\nvar O = h;\nfunction j(t) {\n return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, \"default\") ? t.default : t;\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 y;\nfunction D() {\n return y || (y = 1, (function(t) {\n (function() {\n var o = {}.hasOwnProperty;\n function n() {\n for (var e = \"\", l = 0; l < arguments.length; l++) {\n var s = arguments[l];\n s && (e = r(e, i.call(this, s)));\n }\n return e;\n }\n function i(e) {\n if (typeof e == \"string\" || typeof e == \"number\")\n return this && this[e] || e;\n if (typeof e != \"object\")\n return \"\";\n if (Array.isArray(e))\n return n.apply(this, e);\n if (e.toString !== Object.prototype.toString && !e.toString.toString().includes(\"[native code]\"))\n return e.toString();\n var l = \"\";\n for (var s in e)\n o.call(e, s) && e[s] && (l = r(l, this && this[s] || s));\n return l;\n }\n function r(e, l) {\n return l ? e ? e + \" \" + l : e + l : e;\n }\n t.exports ? (n.default = n, t.exports = n) : window.classNames = n;\n })();\n })(p)), p.exports;\n}\nvar A = D();\nconst V = /* @__PURE__ */ j(A), $ = {\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}, I = V.bind($), d = \"purpur-label\", B = ({\n children: t,\n className: o,\n disabled: n,\n negative: i = !1,\n ...r\n}) => {\n const e = I(o, d, {\n [`${d}--disabled`]: n,\n [`${d}--negative`]: i\n });\n return /* @__PURE__ */ f(O, { className: e, ...r, children: t });\n};\nexport {\n B 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","E","n","R","D","V","I","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,GAAE;AACrB;AAAA;AAAA;AA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,UAAA,KAAC;AAAA,YACrCb;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAGL,gBAAAW,EAAC,OAAA,EAAI,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,YAC3C;AAAA,YAEF,MAAAG;AAAA,YACA,MAAAC;AAAA,UAAA;AAAA,QAAA;AAAA,0BAED,OAAA,EAAI,WAAWX,EAAO,GAAGC,CAAa,SAAS,EAAA,CAAG;AAAA,MAAA,GACrD;AAAA,MACCiB,uBACEK,IAAA,EAAgB,eAAaP,EAAU,aAAa,GAAG,IAAIE,GACzD,UAAAV,EAAA,CACH;AAAA,MAEDD,KACC,gBAAAe,EAACE,IAAA,EAAe,eAAaR,EAAU,YAAY,GAAI,UAAAT,EAAA,CAAU;AAAA,IAAA,GAErE;AAAA,EAEJ;AACF;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.2.2",
3
+ "version": "8.2.3",
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,11 @@
16
16
  "source": "src/text-area.tsx",
17
17
  "dependencies": {
18
18
  "classnames": "~2.5.0",
19
- "@purpurds/common-types": "8.2.2",
20
- "@purpurds/field-helper-text": "8.2.2",
21
- "@purpurds/label": "8.2.2",
22
- "@purpurds/field-error-text": "8.2.2",
23
- "@purpurds/theme": "8.2.2",
24
- "@purpurds/tokens": "8.2.2"
19
+ "@purpurds/common-types": "8.2.3",
20
+ "@purpurds/field-error-text": "8.2.3",
21
+ "@purpurds/field-helper-text": "8.2.3",
22
+ "@purpurds/label": "8.2.3",
23
+ "@purpurds/tokens": "8.2.3"
25
24
  },
26
25
  "devDependencies": {
27
26
  "@storybook/react-vite": "^9.0.18",
@@ -44,9 +43,11 @@
44
43
  "typescript": "^5.6.3",
45
44
  "vite": "^6.2.1",
46
45
  "vitest": "^3.1.2",
47
- "@purpurds/component-rig": "1.0.0"
46
+ "@purpurds/component-rig": "1.0.0",
47
+ "@purpurds/theme": "8.2.3"
48
48
  },
49
49
  "peerDependencies": {
50
+ "@purpurds/theme": "8.2.3",
50
51
  "@types/react": "^18 || ^19",
51
52
  "@types/react-dom": "^18 || ^19",
52
53
  "react": "^18 || ^19",