@purpurds/checkbox 6.0.1 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/LICENSE.txt CHANGED
@@ -1,69 +1,33 @@
1
1
  Name: @purpurds/field-error-text
2
- Version: 6.0.0
2
+ Version: 6.0.2
3
3
  License: AGPL-3.0-only
4
4
  Private: false
5
5
 
6
6
  ---
7
7
 
8
8
  Name: @purpurds/icon
9
- Version: 6.0.0
9
+ Version: 6.0.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: 6.0.0
16
+ Version: 6.0.2
17
17
  License: AGPL-3.0-only
18
18
  Private: false
19
19
 
20
20
  ---
21
21
 
22
22
  Name: @purpurds/paragraph
23
- Version: 6.0.0
23
+ Version: 6.0.2
24
24
  License: AGPL-3.0-only
25
25
  Private: false
26
26
 
27
27
  ---
28
28
 
29
- Name: @babel/runtime
30
- Version: 7.26.0
31
- License: MIT
32
- Private: false
33
- Description: babel's modular runtime helpers
34
- Repository: https://github.com/babel/babel.git
35
- Homepage: https://babel.dev/docs/en/next/babel-runtime
36
- Author: The Babel Team (https://babel.dev/team)
37
- License Copyright:
38
- ===
39
-
40
- MIT License
41
-
42
- Copyright (c) 2014-present Sebastian McKenzie and other contributors
43
-
44
- Permission is hereby granted, free of charge, to any person obtaining
45
- a copy of this software and associated documentation files (the
46
- "Software"), to deal in the Software without restriction, including
47
- without limitation the rights to use, copy, modify, merge, publish,
48
- distribute, sublicense, and/or sell copies of the Software, and to
49
- permit persons to whom the Software is furnished to do so, subject to
50
- the following conditions:
51
-
52
- The above copyright notice and this permission notice shall be
53
- included in all copies or substantial portions of the Software.
54
-
55
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
56
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
57
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
58
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
59
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
60
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
61
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
62
-
63
- ---
64
-
65
29
  Name: @radix-ui/react-compose-refs
66
- Version: 1.0.1
30
+ Version: 1.1.1
67
31
  License: MIT
68
32
  Private: false
69
33
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -72,7 +36,7 @@ Homepage: https://radix-ui.com/primitives
72
36
  ---
73
37
 
74
38
  Name: @radix-ui/react-context
75
- Version: 1.0.1
39
+ Version: 1.1.1
76
40
  License: MIT
77
41
  Private: false
78
42
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -81,7 +45,7 @@ Homepage: https://radix-ui.com/primitives
81
45
  ---
82
46
 
83
47
  Name: @radix-ui/primitive
84
- Version: 1.0.1
48
+ Version: 1.1.1
85
49
  License: MIT
86
50
  Private: false
87
51
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -90,7 +54,7 @@ Homepage: https://radix-ui.com/primitives
90
54
  ---
91
55
 
92
56
  Name: @radix-ui/react-use-callback-ref
93
- Version: 1.0.1
57
+ Version: 1.1.0
94
58
  License: MIT
95
59
  Private: false
96
60
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -99,7 +63,7 @@ Homepage: https://radix-ui.com/primitives
99
63
  ---
100
64
 
101
65
  Name: @radix-ui/react-use-controllable-state
102
- Version: 1.0.1
66
+ Version: 1.1.0
103
67
  License: MIT
104
68
  Private: false
105
69
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -108,7 +72,7 @@ Homepage: https://radix-ui.com/primitives
108
72
  ---
109
73
 
110
74
  Name: @radix-ui/react-use-previous
111
- Version: 1.0.1
75
+ Version: 1.1.0
112
76
  License: MIT
113
77
  Private: false
114
78
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -117,7 +81,7 @@ Homepage: https://radix-ui.com/primitives
117
81
  ---
118
82
 
119
83
  Name: @radix-ui/react-use-layout-effect
120
- Version: 1.0.1
84
+ Version: 1.1.0
121
85
  License: MIT
122
86
  Private: false
123
87
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -126,7 +90,7 @@ Homepage: https://radix-ui.com/primitives
126
90
  ---
127
91
 
128
92
  Name: @radix-ui/react-use-size
129
- Version: 1.0.1
93
+ Version: 1.1.0
130
94
  License: MIT
131
95
  Private: false
132
96
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -135,7 +99,7 @@ Homepage: https://radix-ui.com/primitives
135
99
  ---
136
100
 
137
101
  Name: @radix-ui/react-presence
138
- Version: 1.0.1
102
+ Version: 1.1.2
139
103
  License: MIT
140
104
  Private: false
141
105
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -144,7 +108,7 @@ Homepage: https://radix-ui.com/primitives
144
108
  ---
145
109
 
146
110
  Name: @radix-ui/react-slot
147
- Version: 1.0.2
111
+ Version: 1.1.2
148
112
  License: MIT
149
113
  Private: false
150
114
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -153,7 +117,7 @@ Homepage: https://radix-ui.com/primitives
153
117
  ---
154
118
 
155
119
  Name: @radix-ui/react-primitive
156
- Version: 1.0.3
120
+ Version: 2.0.2
157
121
  License: MIT
158
122
  Private: false
159
123
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -162,7 +126,7 @@ Homepage: https://radix-ui.com/primitives
162
126
  ---
163
127
 
164
128
  Name: @radix-ui/react-checkbox
165
- Version: 1.0.4
129
+ Version: 1.1.4
166
130
  License: MIT
167
131
  Private: false
168
132
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -1,26 +1,26 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),c=require("react"),ue=require("react-dom");function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),U=require("react");require("react-dom");function de(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=de(U);function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F={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
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,this&&this[u]||u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(T);var ce=T.exports;const se=ie(ce),le={"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"},pe=se.bind(le),D="purpur-icon",de="md",fe=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),he=({content:e="",title:n}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=n?`<title>${n}</title>`:"";return`<svg ${fe(t)}>${a}${e}</svg>`},me=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),U=({["data-testid"]:e,svg:n,allyTitle:t,className:a,size:i=de,...r})=>{const o=he({content:me(n.svg),title:t}),u=pe(a,D,`${D}--${i}`);return d.jsx("span",{"aria-label":t,className:u,"data-testid":e,dangerouslySetInnerHTML:{__html:o},...r})};U.displayName="Icon";const be={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 _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V={exports:{}};/*!
5
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,this&&this[u]||u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(F);var he=F.exports;const me=fe(he),ge={"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"},_e=me.bind(ge),I="purpur-icon",ve="md",be=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),xe=({content:e="",title:n}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=n?`<title>${n}</title>`:"";return`<svg ${be(t)}>${a}${e}</svg>`},ye=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),V=({["data-testid"]:e,svg:n,allyTitle:t,className:a,size:i=ve,...r})=>{const o=xe({content:ye(n.svg),title:t}),u=_e(a,I,`${I}--${i}`);return l.jsx("span",{"aria-label":t,className:u,"data-testid":e,dangerouslySetInnerHTML:{__html:o},...r})};V.displayName="Icon";const we={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 Se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H={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
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a(u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(V);var ge=V.exports;const ve=_e(ge),I={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},L="purpur-field-error-text",$e=({["data-testid"]:e,children:n,className:t,relevant:a="additions text",...i})=>d.jsxs("div",{className:ve([t,I[L]]),"data-testid":e,"aria-live":"assertive","aria-relevant":a,...i,children:[d.jsx(U,{svg:be,size:"xs",className:I[`${L}__icon`]}),n]});function xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H={exports:{}};/*!
9
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a(u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(H);var Ce=H.exports;const Ne=Se(Ce),q={"purpur-field-error-text":"_purpur-field-error-text_1u768_1","purpur-field-error-text__icon":"_purpur-field-error-text__icon_1u768_12"},L="purpur-field-error-text",$e=({["data-testid"]:e,children:n,className:t,relevant:a="additions text",...i})=>l.jsxs("div",{className:Ne([t,q[L]]),"data-testid":e,"aria-live":"assertive","aria-relevant":a,...i,children:[l.jsx(V,{svg:we,size:"xs",className:q[`${L}__icon`]}),n]});function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z={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
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,this&&this[u]||u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(H);var ye=H.exports;const we=xe(ye),Ce={"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"},Ne=we.bind(Ce),B="purpur-icon",Se="md",Ee=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),ke=({content:e="",title:n}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=n?`<title>${n}</title>`:"";return`<svg ${Ee(t)}>${a}${e}</svg>`},Ae=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),j=({["data-testid"]:e,svg:n,allyTitle:t,className:a,size:i=Se,...r})=>{const o=ke({content:Ae(n.svg),title:t}),u=Ne(a,B,`${B}--${i}`);return d.jsx("span",{"aria-label":t,className:u,"data-testid":e,dangerouslySetInnerHTML:{__html:o},...r})};j.displayName="Icon";const Pe={name:"checkmark-bold",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.243 4.176a2 2 0 0 1 .324 2.81l-10.45 13.176a2.092 2.092 0 0 1-3.118.18l-5.413-5.413A2 2 0 1 1 5.414 12.1l3.9 3.9 9.118-11.5a2 2 0 0 1 2.81-.324Z" clip-rule="evenodd"/></svg>',keywords:["checkmark-bold"],category:"utility"},Oe={name:"minus-bold",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 12c0-1.105.711-2 1.588-2h14.824c.877 0 1.588.895 1.588 2s-.711 2-1.588 2H4.588C3.711 14 3 13.105 3 12Z" clip-rule="evenodd"/></svg>',keywords:["minus-bold"],category:"utility"};function w(){return w=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},w.apply(null,arguments)}function je(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function Me(...e){return n=>e.forEach(t=>je(t,n))}const F=c.forwardRef((e,n)=>{const{children:t,...a}=e,i=c.Children.toArray(t),r=i.find(qe);if(r){const o=r.props.children,u=i.map(s=>s===r?c.Children.count(o)>1?c.Children.only(null):c.isValidElement(o)?o.props.children:null:s);return c.createElement(M,w({},a,{ref:n}),c.isValidElement(o)?c.cloneElement(o,void 0,u):null)}return c.createElement(M,w({},a,{ref:n}),t)});F.displayName="Slot";const M=c.forwardRef((e,n)=>{const{children:t,...a}=e;return c.isValidElement(t)?c.cloneElement(t,{...De(a,t.props),ref:n?Me(n,t.ref):t.ref}):c.Children.count(t)>1?c.Children.only(null):null});M.displayName="SlotClone";const Re=({children:e})=>c.createElement(c.Fragment,null,e);function qe(e){return c.isValidElement(e)&&e.type===Re}function De(e,n){const t={...n};for(const a in n){const i=e[a],r=n[a];/^on[A-Z]/.test(a)?i&&r?t[a]=(...o)=>{r(...o),i(...o)}:i&&(t[a]=i):a==="style"?t[a]={...i,...r}:a==="className"&&(t[a]=[i,r].filter(Boolean).join(" "))}return{...e,...t}}const Ie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Le=Ie.reduce((e,n)=>{const t=c.forwardRef((a,i)=>{const{asChild:r,...o}=a,u=r?F:n;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(u,w({},o,{ref:i}))});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),Be=c.forwardRef((e,n)=>c.createElement(Le.label,w({},e,{ref:n,onMouseDown:t=>{var a;(a=e.onMouseDown)===null||a===void 0||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))),ze=Be;function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z={exports:{}};/*!
13
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,this&&this[u]||u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Z);var Oe=Z.exports;const Pe=je(Oe),ke={"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"},Ae=Pe.bind(ke),z="purpur-icon",Re="md",Ee=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),Me=({content:e="",title:n}={})=>{const t=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},n?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=n?`<title>${n}</title>`:"";return`<svg ${Ee(t)}>${a}${e}</svg>`},De=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),A=({["data-testid"]:e,svg:n,allyTitle:t,className:a,size:i=Re,...r})=>{const o=Me({content:De(n.svg),title:t}),u=Ae(a,z,`${z}--${i}`);return l.jsx("span",{"aria-label":t,className:u,"data-testid":e,dangerouslySetInnerHTML:{__html:o},...r})};A.displayName="Icon";const Ie={name:"checkmark-bold",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.243 4.176a2 2 0 0 1 .324 2.81l-10.45 13.176a2.092 2.092 0 0 1-3.118.18l-5.413-5.413A2 2 0 1 1 5.414 12.1l3.9 3.9 9.118-11.5a2 2 0 0 1 2.81-.324Z" clip-rule="evenodd"/></svg>',keywords:["checkmark-bold"],category:"utility"},qe={name:"minus-bold",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3 12c0-1.105.711-2 1.588-2h14.824c.877 0 1.588.895 1.588 2s-.711 2-1.588 2H4.588C3.711 14 3 13.105 3 12Z" clip-rule="evenodd"/></svg>',keywords:["minus-bold"],category:"utility"};function B(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Le(...e){return n=>{let t=!1;const a=e.map(i=>{const r=B(i,n);return!t&&typeof r=="function"&&(t=!0),r});if(t)return()=>{for(let i=0;i<a.length;i++){const r=a[i];typeof r=="function"?r():B(e[i],null)}}}}var G=s.forwardRef((e,n)=>{const{children:t,...a}=e,i=s.Children.toArray(t),r=i.find(Be);if(r){const o=r.props.children,u=i.map(c=>c===r?s.Children.count(o)>1?s.Children.only(null):s.isValidElement(o)?o.props.children:null:c);return l.jsx(R,{...a,ref:n,children:s.isValidElement(o)?s.cloneElement(o,void 0,u):null})}return l.jsx(R,{...a,ref:n,children:t})});G.displayName="Slot";var R=s.forwardRef((e,n)=>{const{children:t,...a}=e;if(s.isValidElement(t)){const i=We(t),r=Te(a,t.props);return t.type!==s.Fragment&&(r.ref=n?Le(n,i):i),s.cloneElement(t,r)}return s.Children.count(t)>1?s.Children.only(null):null});R.displayName="SlotClone";var ze=({children:e})=>l.jsx(l.Fragment,{children:e});function Be(e){return s.isValidElement(e)&&e.type===ze}function Te(e,n){const t={...n};for(const a in n){const i=e[a],r=n[a];/^on[A-Z]/.test(a)?i&&r?t[a]=(...o)=>{r(...o),i(...o)}:i&&(t[a]=i):a==="style"?t[a]={...i,...r}:a==="className"&&(t[a]=[i,r].filter(Boolean).join(" "))}return{...e,...t}}function We(e){var n,t;let a=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?e.ref:(a=(t=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:t.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var Ue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Fe=Ue.reduce((e,n)=>{const t=s.forwardRef((a,i)=>{const{asChild:r,...o}=a,u=r?G:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...o,ref:i})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),Ve="Label",K=s.forwardRef((e,n)=>l.jsx(Fe.label,{...e,ref:n,onMouseDown:t=>{var a;t.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));K.displayName=Ve;var He=K;function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var X={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
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a(u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Z);var Ue=Z.exports;const Ve=Te(Ue),P={"purpur-label":"_purpur-label_12cfi_1","purpur-label--negative":"_purpur-label--negative_12cfi_9","purpur-label--disabled":"_purpur-label--disabled_12cfi_12"},O="purpur-label",He=({children:e,className:n,htmlFor:t,"data-testid":a,disabled:i,negative:r=!1,...o})=>{const u=Ve([n,P[O],{[P[`${O}--disabled`]]:i,[P[`${O}--negative`]]:r}]);return d.jsx(ze,{className:u,"data-testid":a,htmlFor:t,...o,children:e})};function Fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G={exports:{}};/*!
17
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a(u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(X);var Ge=X.exports;const Ke=Ze(Ge),P={"purpur-label":"_purpur-label_12cfi_1","purpur-label--negative":"_purpur-label--negative_12cfi_9","purpur-label--disabled":"_purpur-label--disabled_12cfi_12"},k="purpur-label",Xe=({children:e,className:n,htmlFor:t,"data-testid":a,disabled:i,negative:r=!1,...o})=>{const u=Ke([n,P[k],{[P[`${k}--disabled`]]:i,[P[`${k}--negative`]]:r}]);return l.jsx(He,{className:u,"data-testid":a,htmlFor:t,...o,children:e})};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J={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
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a(u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(G);var Ze=G.exports;const Ge=Fe(Ze),N={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},Ke={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},S="purpur-paragraph",K=({["data-testid"]:e,children:n,className:t,disabled:a,enableHyphenation:i=!1,negative:r=!1,variant:o=Ke.PARAGRAPH100,...u})=>{const s=Ge([t,N[S],N[`${S}--${o}`],{[N[`${S}--hyphens`]]:i,[N[`${S}--disabled`]]:a,[N[`${S}--negative`]]:r}]);return d.jsx("p",{...u,className:s,"data-testid":e,children:n})};K.displayName="Paragraph";function $(){return $=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},$.apply(null,arguments)}function We(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function W(...e){return n=>e.forEach(t=>We(t,n))}function X(...e){return c.useCallback(W(...e),e)}function Xe(e,n=[]){let t=[];function a(r,o){const u=c.createContext(o),s=t.length;t=[...t,o];function l(p){const{scope:h,children:b,..._}=p,E=(h==null?void 0:h[e][s])||u,g=c.useMemo(()=>_,Object.values(_));return c.createElement(E.Provider,{value:g},b)}function f(p,h){const b=(h==null?void 0:h[e][s])||u,_=c.useContext(b);if(_)return _;if(o!==void 0)return o;throw new Error(`\`${p}\` must be used within \`${r}\``)}return l.displayName=r+"Provider",[l,f]}const i=()=>{const r=t.map(o=>c.createContext(o));return function(u){const s=(u==null?void 0:u[e])||r;return c.useMemo(()=>({[`__scope${e}`]:{...u,[e]:s}}),[u,s])}};return i.scopeName=e,[a,Je(i,...n)]}function Je(...e){const n=e[0];if(e.length===1)return n;const t=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const o=a.reduce((u,{useScope:s,scopeName:l})=>{const p=s(r)[`__scope${l}`];return{...u,...p}},{});return c.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return t.scopeName=n.scopeName,t}function z(e,n,{checkForDefaultPrevented:t=!0}={}){return function(i){if(e==null||e(i),t===!1||!i.defaultPrevented)return n==null?void 0:n(i)}}function J(e){const n=c.useRef(e);return c.useEffect(()=>{n.current=e}),c.useMemo(()=>(...t)=>{var a;return(a=n.current)===null||a===void 0?void 0:a.call(n,...t)},[])}function Qe({prop:e,defaultProp:n,onChange:t=()=>{}}){const[a,i]=Ye({defaultProp:n,onChange:t}),r=e!==void 0,o=r?e:a,u=J(t),s=c.useCallback(l=>{if(r){const p=typeof l=="function"?l(e):l;p!==e&&u(p)}else i(l)},[r,e,i,u]);return[o,s]}function Ye({defaultProp:e,onChange:n}){const t=c.useState(e),[a]=t,i=c.useRef(a),r=J(n);return c.useEffect(()=>{i.current!==a&&(r(a),i.current=a)},[a,i,r]),t}function er(e){const n=c.useRef({value:e,previous:e});return c.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}const R=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{};function rr(e){const[n,t]=c.useState(void 0);return R(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let o,u;if("borderBoxSize"in r){const s=r.borderBoxSize,l=Array.isArray(s)?s[0]:s;o=l.inlineSize,u=l.blockSize}else o=e.offsetWidth,u=e.offsetHeight;t({width:o,height:u})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else t(void 0)},[e]),n}function tr(e,n){return c.useReducer((t,a)=>{const i=n[t][a];return i??t},e)}const Q=e=>{const{present:n,children:t}=e,a=nr(n),i=typeof t=="function"?t({present:a.isPresent}):c.Children.only(t),r=X(a.ref,i.ref);return typeof t=="function"||a.isPresent?c.cloneElement(i,{ref:r}):null};Q.displayName="Presence";function nr(e){const[n,t]=c.useState(),a=c.useRef({}),i=c.useRef(e),r=c.useRef("none"),o=e?"mounted":"unmounted",[u,s]=tr(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=k(a.current);r.current=u==="mounted"?l:"none"},[u]),R(()=>{const l=a.current,f=i.current;if(f!==e){const h=r.current,b=k(l);e?s("MOUNT"):b==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(f&&h!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,s]),R(()=>{if(n){const l=p=>{const b=k(a.current).includes(p.animationName);p.target===n&&b&&ue.flushSync(()=>s("ANIMATION_END"))},f=p=>{p.target===n&&(r.current=k(a.current))};return n.addEventListener("animationstart",f),n.addEventListener("animationcancel",l),n.addEventListener("animationend",l),()=>{n.removeEventListener("animationstart",f),n.removeEventListener("animationcancel",l),n.removeEventListener("animationend",l)}}else s("ANIMATION_END")},[n,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:c.useCallback(l=>{l&&(a.current=getComputedStyle(l)),t(l)},[])}}function k(e){return(e==null?void 0:e.animationName)||"none"}const Y=c.forwardRef((e,n)=>{const{children:t,...a}=e,i=c.Children.toArray(t),r=i.find(ar);if(r){const o=r.props.children,u=i.map(s=>s===r?c.Children.count(o)>1?c.Children.only(null):c.isValidElement(o)?o.props.children:null:s);return c.createElement(q,$({},a,{ref:n}),c.isValidElement(o)?c.cloneElement(o,void 0,u):null)}return c.createElement(q,$({},a,{ref:n}),t)});Y.displayName="Slot";const q=c.forwardRef((e,n)=>{const{children:t,...a}=e;return c.isValidElement(t)?c.cloneElement(t,{...ur(a,t.props),ref:n?W(n,t.ref):t.ref}):c.Children.count(t)>1?c.Children.only(null):null});q.displayName="SlotClone";const or=({children:e})=>c.createElement(c.Fragment,null,e);function ar(e){return c.isValidElement(e)&&e.type===or}function ur(e,n){const t={...n};for(const a in n){const i=e[a],r=n[a];/^on[A-Z]/.test(a)?i&&r?t[a]=(...u)=>{r(...u),i(...u)}:i&&(t[a]=i):a==="style"?t[a]={...i,...r}:a==="className"&&(t[a]=[i,r].filter(Boolean).join(" "))}return{...e,...t}}const ir=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ee=ir.reduce((e,n)=>{const t=c.forwardRef((a,i)=>{const{asChild:r,...o}=a,u=r?Y:n;return c.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),c.createElement(u,$({},o,{ref:i}))});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),re="Checkbox",[cr,wr]=Xe(re),[sr,lr]=cr(re),pr=c.forwardRef((e,n)=>{const{__scopeCheckbox:t,name:a,checked:i,defaultChecked:r,required:o,disabled:u,value:s="on",onCheckedChange:l,...f}=e,[p,h]=c.useState(null),b=X(n,m=>h(m)),_=c.useRef(!1),E=p?!!p.closest("form"):!0,[g=!1,A]=Qe({prop:i,defaultProp:r,onChange:l}),ae=c.useRef(g);return c.useEffect(()=>{const m=p==null?void 0:p.form;if(m){const C=()=>A(ae.current);return m.addEventListener("reset",C),()=>m.removeEventListener("reset",C)}},[p,A]),c.createElement(sr,{scope:t,state:g,disabled:u},c.createElement(ee.button,$({type:"button",role:"checkbox","aria-checked":x(g)?"mixed":g,"aria-required":o,"data-state":te(g),"data-disabled":u?"":void 0,disabled:u,value:s},f,{ref:b,onKeyDown:z(e.onKeyDown,m=>{m.key==="Enter"&&m.preventDefault()}),onClick:z(e.onClick,m=>{A(C=>x(C)?!0:!C),E&&(_.current=m.isPropagationStopped(),_.current||m.stopPropagation())})})),E&&c.createElement(hr,{control:p,bubbles:!_.current,name:a,value:s,checked:g,required:o,disabled:u,style:{transform:"translateX(-100%)"}}))}),dr="CheckboxIndicator",fr=c.forwardRef((e,n)=>{const{__scopeCheckbox:t,forceMount:a,...i}=e,r=lr(dr,t);return c.createElement(Q,{present:a||x(r.state)||r.state===!0},c.createElement(ee.span,$({"data-state":te(r.state),"data-disabled":r.disabled?"":void 0},i,{ref:n,style:{pointerEvents:"none",...e.style}})))}),hr=e=>{const{control:n,checked:t,bubbles:a=!0,...i}=e,r=c.useRef(null),o=er(t),u=rr(n);return c.useEffect(()=>{const s=r.current,l=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==t&&p){const h=new Event("click",{bubbles:a});s.indeterminate=x(t),p.call(s,x(t)?!1:t),s.dispatchEvent(h)}},[o,t,a]),c.createElement("input",$({type:"checkbox","aria-hidden":!0,defaultChecked:x(t)?!1:t},i,{tabIndex:-1,ref:r,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function x(e){return e==="indeterminate"}function te(e){return x(e)?"indeterminate":e?"checked":"unchecked"}const mr=pr,br=fr;function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ne={exports:{}};/*!
21
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a(u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(J);var Qe=J.exports;const Ye=Je(Qe),N={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},er={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},$="purpur-paragraph",Q=({["data-testid"]:e,children:n,className:t,disabled:a,enableHyphenation:i=!1,negative:r=!1,variant:o=er.PARAGRAPH100,...u})=>{const c=Ye([t,N[$],N[`${$}--${o}`],{[N[`${$}--hyphens`]]:i,[N[`${$}--disabled`]]:a,[N[`${$}--negative`]]:r}]);return l.jsx("p",{...u,className:c,"data-testid":e,children:n})};Q.displayName="Paragraph";function T(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Y(...e){return n=>{let t=!1;const a=e.map(i=>{const r=T(i,n);return!t&&typeof r=="function"&&(t=!0),r});if(t)return()=>{for(let i=0;i<a.length;i++){const r=a[i];typeof r=="function"?r():T(e[i],null)}}}}function ee(...e){return s.useCallback(Y(...e),e)}function rr(e,n=[]){let t=[];function a(r,o){const u=s.createContext(o),c=t.length;t=[...t,o];const p=h=>{var b;const{scope:d,children:m,...g}=h,v=((b=d==null?void 0:d[e])==null?void 0:b[c])||u,w=s.useMemo(()=>g,Object.values(g));return l.jsx(v.Provider,{value:w,children:m})};p.displayName=r+"Provider";function f(h,d){var v;const m=((v=d==null?void 0:d[e])==null?void 0:v[c])||u,g=s.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${r}\``)}return[p,f]}const i=()=>{const r=t.map(o=>s.createContext(o));return function(u){const c=(u==null?void 0:u[e])||r;return s.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return i.scopeName=e,[a,tr(i,...n)]}function tr(...e){const n=e[0];if(e.length===1)return n;const t=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const o=a.reduce((u,{useScope:c,scopeName:p})=>{const h=c(r)[`__scope${p}`];return{...u,...h}},{});return s.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return t.scopeName=n.scopeName,t}function W(e,n,{checkForDefaultPrevented:t=!0}={}){return function(i){if(e==null||e(i),t===!1||!i.defaultPrevented)return n==null?void 0:n(i)}}function re(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),s.useMemo(()=>(...t)=>{var a;return(a=n.current)==null?void 0:a.call(n,...t)},[])}function nr({prop:e,defaultProp:n,onChange:t=()=>{}}){const[a,i]=or({defaultProp:n,onChange:t}),r=e!==void 0,o=r?e:a,u=re(t),c=s.useCallback(p=>{if(r){const h=typeof p=="function"?p(e):p;h!==e&&u(h)}else i(p)},[r,e,i,u]);return[o,c]}function or({defaultProp:e,onChange:n}){const t=s.useState(e),[a]=t,i=s.useRef(a),r=re(n);return s.useEffect(()=>{i.current!==a&&(r(a),i.current=a)},[a,i,r]),t}function ar(e){const n=s.useRef({value:e,previous:e});return s.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var E=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{};function ir(e){const[n,t]=s.useState(void 0);return E(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let o,u;if("borderBoxSize"in r){const c=r.borderBoxSize,p=Array.isArray(c)?c[0]:c;o=p.inlineSize,u=p.blockSize}else o=e.offsetWidth,u=e.offsetHeight;t({width:o,height:u})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else t(void 0)},[e]),n}function ur(e,n){return s.useReducer((t,a)=>n[t][a]??t,e)}var te=e=>{const{present:n,children:t}=e,a=sr(n),i=typeof t=="function"?t({present:a.isPresent}):s.Children.only(t),r=ee(a.ref,cr(i));return typeof t=="function"||a.isPresent?s.cloneElement(i,{ref:r}):null};te.displayName="Presence";function sr(e){const[n,t]=s.useState(),a=s.useRef({}),i=s.useRef(e),r=s.useRef("none"),o=e?"mounted":"unmounted",[u,c]=ur(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const p=j(a.current);r.current=u==="mounted"?p:"none"},[u]),E(()=>{const p=a.current,f=i.current;if(f!==e){const d=r.current,m=j(p);e?c("MOUNT"):m==="none"||(p==null?void 0:p.display)==="none"?c("UNMOUNT"):c(f&&d!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),E(()=>{if(n){let p;const f=n.ownerDocument.defaultView??window,h=m=>{const v=j(a.current).includes(m.animationName);if(m.target===n&&v&&(c("ANIMATION_END"),!i.current)){const w=n.style.animationFillMode;n.style.animationFillMode="forwards",p=f.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=w)})}},d=m=>{m.target===n&&(r.current=j(a.current))};return n.addEventListener("animationstart",d),n.addEventListener("animationcancel",h),n.addEventListener("animationend",h),()=>{f.clearTimeout(p),n.removeEventListener("animationstart",d),n.removeEventListener("animationcancel",h),n.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(p=>{p&&(a.current=getComputedStyle(p)),t(p)},[])}}function j(e){return(e==null?void 0:e.animationName)||"none"}function cr(e){var a,i;let n=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var ne=s.forwardRef((e,n)=>{const{children:t,...a}=e,i=s.Children.toArray(t),r=i.find(pr);if(r){const o=r.props.children,u=i.map(c=>c===r?s.Children.count(o)>1?s.Children.only(null):s.isValidElement(o)?o.props.children:null:c);return l.jsx(M,{...a,ref:n,children:s.isValidElement(o)?s.cloneElement(o,void 0,u):null})}return l.jsx(M,{...a,ref:n,children:t})});ne.displayName="Slot";var M=s.forwardRef((e,n)=>{const{children:t,...a}=e;if(s.isValidElement(t)){const i=fr(t),r=dr(a,t.props);return t.type!==s.Fragment&&(r.ref=n?Y(n,i):i),s.cloneElement(t,r)}return s.Children.count(t)>1?s.Children.only(null):null});M.displayName="SlotClone";var lr=({children:e})=>l.jsx(l.Fragment,{children:e});function pr(e){return s.isValidElement(e)&&e.type===lr}function dr(e,n){const t={...n};for(const a in n){const i=e[a],r=n[a];/^on[A-Z]/.test(a)?i&&r?t[a]=(...u)=>{r(...u),i(...u)}:i&&(t[a]=i):a==="style"?t[a]={...i,...r}:a==="className"&&(t[a]=[i,r].filter(Boolean).join(" "))}return{...e,...t}}function fr(e){var a,i;let n=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var hr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],oe=hr.reduce((e,n)=>{const t=s.forwardRef((a,i)=>{const{asChild:r,...o}=a,u=r?ne:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...o,ref:i})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),D="Checkbox",[mr,jr]=rr(D),[gr,_r]=mr(D),ae=s.forwardRef((e,n)=>{const{__scopeCheckbox:t,name:a,checked:i,defaultChecked:r,required:o,disabled:u,value:c="on",onCheckedChange:p,form:f,...h}=e,[d,m]=s.useState(null),g=ee(n,_=>m(_)),v=s.useRef(!1),w=d?f||!!d.closest("form"):!0,[b=!1,O]=nr({prop:i,defaultProp:r,onChange:p}),pe=s.useRef(b);return s.useEffect(()=>{const _=d==null?void 0:d.form;if(_){const C=()=>O(pe.current);return _.addEventListener("reset",C),()=>_.removeEventListener("reset",C)}},[d,O]),l.jsxs(gr,{scope:t,state:b,disabled:u,children:[l.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":y(b)?"mixed":b,"aria-required":o,"data-state":se(b),"data-disabled":u?"":void 0,disabled:u,value:c,...h,ref:g,onKeyDown:W(e.onKeyDown,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:W(e.onClick,_=>{O(C=>y(C)?!0:!C),w&&(v.current=_.isPropagationStopped(),v.current||_.stopPropagation())})}),w&&l.jsx(vr,{control:d,bubbles:!v.current,name:a,value:c,checked:b,required:o,disabled:u,form:f,style:{transform:"translateX(-100%)"},defaultChecked:y(r)?!1:r})]})});ae.displayName=D;var ie="CheckboxIndicator",ue=s.forwardRef((e,n)=>{const{__scopeCheckbox:t,forceMount:a,...i}=e,r=_r(ie,t);return l.jsx(te,{present:a||y(r.state)||r.state===!0,children:l.jsx(oe.span,{"data-state":se(r.state),"data-disabled":r.disabled?"":void 0,...i,ref:n,style:{pointerEvents:"none",...e.style}})})});ue.displayName=ie;var vr=e=>{const{control:n,checked:t,bubbles:a=!0,defaultChecked:i,...r}=e,o=s.useRef(null),u=ar(t),c=ir(n);s.useEffect(()=>{const f=o.current,h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(u!==t&&m){const g=new Event("click",{bubbles:a});f.indeterminate=y(t),m.call(f,y(t)?!1:t),f.dispatchEvent(g)}},[u,t,a]);const p=s.useRef(y(t)?!1:t);return l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??p.current,...r,tabIndex:-1,ref:o,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return e==="indeterminate"}function se(e){return y(e)?"indeterminate":e?"checked":"unchecked"}var br=ae,xr=ue;function yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ce={exports:{}};/*!
22
22
  Copyright (c) 2018 Jed Watson.
23
23
  Licensed under the MIT License (MIT), see
24
24
  http://jedwatson.github.io/classnames
25
- */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,this&&this[u]||u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(ne);var gr=ne.exports;const vr=_r(gr),$r={"purpur-checkbox":"_purpur-checkbox_m4999_1","purpur-checkbox__box":"_purpur-checkbox__box_m4999_7","purpur-checkbox--error":"_purpur-checkbox--error_m4999_16","purpur-checkbox--error-checkbox":"_purpur-checkbox--error-checkbox_m4999_16","purpur-checkbox__indicator":"_purpur-checkbox__indicator_m4999_59","purpur-checkbox__label":"_purpur-checkbox__label_m4999_70","purpur-checkbox__wrapper":"_purpur-checkbox__wrapper_m4999_73","purpur-checkbox__container":"_purpur-checkbox__container_m4999_79"},y=vr.bind($r),xr=["indeterminate",!0,!1],v="purpur-checkbox",yr=({["data-testid"]:e,checked:n,className:t,error:a=!1,errorText:i,label:r,onChange:o,...u},s)=>{const l=i&&!n,f=a&&!n;return d.jsxs("div",{className:y([t,`${v}__wrapper`]),children:[d.jsxs("div",{className:y([t,`${v}__container`]),children:[d.jsx(mr,{...u,checked:n,className:y([v,{[`${v}--error`]:l,[`${v}--error-checkbox`]:f}]),"data-testid":e,onCheckedChange:o,ref:s,children:d.jsx("span",{className:y(`${v}__box`),children:d.jsx(br,{className:y(`${v}__indicator`),children:n==="indeterminate"?d.jsx(j,{"data-testid":e&&`${e}-checked-icon`,size:"xs",svg:Oe}):d.jsx(j,{"data-testid":e&&`${e}-indeterminate-icon`,size:"xs",svg:Pe})})})}),r&&d.jsx(He,{htmlFor:u.id,"data-testid":e&&`${e}-label`,disabled:u.disabled,className:y(`${v}__label`),children:d.jsx(K,{variant:"paragraph-100",disabled:u.disabled,children:`${u.required?"* ":""}${r}`})})]}),l&&d.jsx($e,{"data-testid":e&&`${e}-error-text`,children:i})]})},oe=c.forwardRef(yr);oe.displayName="Checkbox";exports.Checkbox=oe;exports.checkedState=xr;
25
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=i(r,a.call(this,u)))}return r}function a(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var u in r)n.call(r,u)&&r[u]&&(o=i(o,this&&this[u]||u));return o}function i(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(ce);var wr=ce.exports;const Sr=yr(wr),Cr={"purpur-checkbox":"_purpur-checkbox_m4999_1","purpur-checkbox__box":"_purpur-checkbox__box_m4999_7","purpur-checkbox--error":"_purpur-checkbox--error_m4999_16","purpur-checkbox--error-checkbox":"_purpur-checkbox--error-checkbox_m4999_16","purpur-checkbox__indicator":"_purpur-checkbox__indicator_m4999_59","purpur-checkbox__label":"_purpur-checkbox__label_m4999_70","purpur-checkbox__wrapper":"_purpur-checkbox__wrapper_m4999_73","purpur-checkbox__container":"_purpur-checkbox__container_m4999_79"},S=Sr.bind(Cr),Nr=["indeterminate",!0,!1],x="purpur-checkbox",$r=({["data-testid"]:e,checked:n,className:t,error:a=!1,errorText:i,label:r,onChange:o,...u},c)=>{const p=i&&!n,f=a&&!n;return l.jsxs("div",{className:S([t,`${x}__wrapper`]),children:[l.jsxs("div",{className:S([t,`${x}__container`]),children:[l.jsx(br,{...u,checked:n,className:S([x,{[`${x}--error`]:p,[`${x}--error-checkbox`]:f}]),"data-testid":e,onCheckedChange:o,ref:c,children:l.jsx("span",{className:S(`${x}__box`),children:l.jsx(xr,{className:S(`${x}__indicator`),children:n==="indeterminate"?l.jsx(A,{"data-testid":e&&`${e}-checked-icon`,size:"xs",svg:qe}):l.jsx(A,{"data-testid":e&&`${e}-indeterminate-icon`,size:"xs",svg:Ie})})})}),r&&l.jsx(Xe,{htmlFor:u.id,"data-testid":e&&`${e}-label`,disabled:u.disabled,className:S(`${x}__label`),children:l.jsx(Q,{variant:"paragraph-100",disabled:u.disabled,children:`${u.required?"* ":""}${r}`})})]}),p&&l.jsx($e,{"data-testid":e&&`${e}-error-text`,children:i})]})},le=U.forwardRef($r);le.displayName="Checkbox";exports.Checkbox=le;exports.checkedState=Nr;
26
26
  //# sourceMappingURL=checkbox.cjs.js.map