@purpurds/checkbox 8.2.1 → 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,40 +1,40 @@
1
1
  Name: @purpurds/field-error-text
2
- Version: 8.2.0
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.0
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/icon
16
- Version: 8.2.0
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/label
23
- Version: 8.2.0
23
+ Version: 8.2.2
24
24
  License: AGPL-3.0-only
25
25
  Private: false
26
26
 
27
27
  ---
28
28
 
29
29
  Name: @purpurds/paragraph
30
- Version: 8.2.0
30
+ Version: 8.2.2
31
31
  License: AGPL-3.0-only
32
32
  Private: false
33
33
 
34
34
  ---
35
35
 
36
36
  Name: @radix-ui/react-compose-refs
37
- Version: 1.1.1
37
+ Version: 1.1.2
38
38
  License: MIT
39
39
  Private: false
40
40
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -43,7 +43,7 @@ Homepage: https://radix-ui.com/primitives
43
43
  ---
44
44
 
45
45
  Name: @radix-ui/react-context
46
- Version: 1.1.1
46
+ Version: 1.1.2
47
47
  License: MIT
48
48
  Private: false
49
49
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -52,7 +52,7 @@ Homepage: https://radix-ui.com/primitives
52
52
  ---
53
53
 
54
54
  Name: @radix-ui/primitive
55
- Version: 1.1.1
55
+ Version: 1.1.2
56
56
  License: MIT
57
57
  Private: false
58
58
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -61,7 +61,7 @@ Homepage: https://radix-ui.com/primitives
61
61
  ---
62
62
 
63
63
  Name: @radix-ui/react-use-callback-ref
64
- Version: 1.1.0
64
+ Version: 1.1.1
65
65
  License: MIT
66
66
  Private: false
67
67
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -70,7 +70,7 @@ Homepage: https://radix-ui.com/primitives
70
70
  ---
71
71
 
72
72
  Name: @radix-ui/react-use-controllable-state
73
- Version: 1.1.0
73
+ Version: 1.1.1
74
74
  License: MIT
75
75
  Private: false
76
76
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -79,7 +79,7 @@ Homepage: https://radix-ui.com/primitives
79
79
  ---
80
80
 
81
81
  Name: @radix-ui/react-use-previous
82
- Version: 1.1.0
82
+ Version: 1.1.1
83
83
  License: MIT
84
84
  Private: false
85
85
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -88,7 +88,7 @@ Homepage: https://radix-ui.com/primitives
88
88
  ---
89
89
 
90
90
  Name: @radix-ui/react-use-layout-effect
91
- Version: 1.1.0
91
+ Version: 1.1.1
92
92
  License: MIT
93
93
  Private: false
94
94
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -97,7 +97,7 @@ Homepage: https://radix-ui.com/primitives
97
97
  ---
98
98
 
99
99
  Name: @radix-ui/react-use-size
100
- Version: 1.1.0
100
+ Version: 1.1.1
101
101
  License: MIT
102
102
  Private: false
103
103
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -106,7 +106,7 @@ Homepage: https://radix-ui.com/primitives
106
106
  ---
107
107
 
108
108
  Name: @radix-ui/react-presence
109
- Version: 1.1.2
109
+ Version: 1.1.3
110
110
  License: MIT
111
111
  Private: false
112
112
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -115,7 +115,7 @@ Homepage: https://radix-ui.com/primitives
115
115
  ---
116
116
 
117
117
  Name: @radix-ui/react-slot
118
- Version: 1.1.2
118
+ Version: 1.2.0
119
119
  License: MIT
120
120
  Private: false
121
121
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -124,7 +124,7 @@ Homepage: https://radix-ui.com/primitives
124
124
  ---
125
125
 
126
126
  Name: @radix-ui/react-primitive
127
- Version: 2.0.2
127
+ Version: 2.0.3
128
128
  License: MIT
129
129
  Private: false
130
130
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -133,7 +133,7 @@ Homepage: https://radix-ui.com/primitives
133
133
  ---
134
134
 
135
135
  Name: @radix-ui/react-checkbox
136
- Version: 1.1.4
136
+ Version: 1.1.5
137
137
  License: MIT
138
138
  Private: false
139
139
  Repository: git+https://github.com/radix-ui/primitives.git
@@ -1,30 +1,30 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),te=require("react");require("react-dom");function be(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const s=be(te);function xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),ee=require("react");require("react-dom");function me(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=me(ee);function ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={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 B;function ye(){return B||(B=1,function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=a(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return 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=a(o,this&&this[u]||u));return o}function a(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()}(z)),z.exports}var we=ye();const $e=xe(we),Se={"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=$e.bind(Se),W="purpur-icon",Ce="md",je=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"}],i=n?`<title>${n}</title>`:"";return`<svg ${je(t)}>${i}${e}</svg>`},Oe=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),ne=({svg:e,allyTitle:n,className:t,size:i=Ce,...a})=>{const r=ke({content:Oe(e.svg),title:n}),o=Ne(t,W,`${W}--${i}`);return l.jsx("span",{className:o,dangerouslySetInnerHTML:{__html:r},...a})};ne.displayName="Icon";const Pe={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 Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I={exports:{}};/*!
5
+ */var q;function _e(){return q||(q=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){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 n.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)t.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?(n.default=n,e.exports=n):window.classNames=n})()})(D)),D.exports}var ve=_e();const be=ge(ve),xe={"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"},ye=be.bind(xe),I="purpur-icon",$e="md",we=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),Se=({content:e="",title:t}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},t?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=t?`<title>${t}</title>`:"";return`<svg ${we(n)}>${a}${e}</svg>`},Ce=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),re=({svg:e,allyTitle:t,className:n,size:a=$e,...i})=>{const r=Se({content:Ce(e.svg),title:t}),o=ye(n,I,`${I}--${a}`);return p.jsx("span",{className:o,dangerouslySetInnerHTML:{__html:r},...i})};re.displayName="Icon";const Ne={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 je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var z={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 L;function Re(){return L||(L=1,function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=a(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return 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=a(o,this&&this[u]||u));return o}function a(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()}(I)),I.exports}var Ee=Re();const Me=Ae(Ee),qe={"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"},U=Me.bind(qe),k="purpur-field-error-text",De=({children:e,className:n,negative:t=!1,["aria-relevant"]:i="additions text",...a})=>l.jsxs("div",{className:U(n,k,{[`${k}--negative`]:t}),"aria-live":"assertive","aria-relevant":i,...a,children:[l.jsx(ne,{svg:Pe,size:"xs",className:U(`${k}__icon`)}),e]});function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F={exports:{}};/*!
9
+ */var B;function ke(){return B||(B=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){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 n.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)t.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?(n.default=n,e.exports=n):window.classNames=n})()})(z)),z.exports}var Oe=ke();const Pe=je(Oe),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"},W=Pe.bind(Ae),k="purpur-field-error-text",Re=({children:e,className:t,negative:n=!1,["aria-relevant"]:a="additions text",...i})=>p.jsxs("div",{className:W(t,k,{[`${k}--negative`]:n}),"aria-live":"assertive","aria-relevant":a,...i,children:[p.jsx(re,{svg:Ne,size:"xs",className:W(`${k}__icon`)}),e]});function Ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L={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 T;function Be(){return T||(T=1,function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=a(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return 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=a(o,this&&this[u]||u));return o}function a(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()}(F)),F.exports}var We=Be();const Ie=ze(We),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"},Ue=Ie.bind(Le),O="purpur-field-helper-text",Fe=({children:e,className:n,disabled:t,id:i,negative:a,...r})=>{const o=Ue(n,O,{[`${O}--disabled`]:t,[`${O}--negative`]:a});return l.jsx("span",{id:i,className:o,...r,children:e})};function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V={exports:{}};/*!
13
+ */var T;function Me(){return T||(T=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){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 n.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)t.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?(n.default=n,e.exports=n):window.classNames=n})()})(L)),L.exports}var De=Me();const qe=Ee(De),Ie={"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"},ze=qe.bind(Ie),O="purpur-field-helper-text",Be=({children:e,className:t,disabled:n,id:a,negative:i,...r})=>{const o=ze(t,O,{[`${O}--disabled`]:n,[`${O}--negative`]:i});return p.jsx("span",{id:a,className:o,...r,children:e})};function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var U={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 Z;function Ve(){return Z||(Z=1,function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=a(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return 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=a(o,this&&this[u]||u));return o}function a(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()}(V)),V.exports}var Ze=Ve();const He=Te(Ze),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"},Ge=He.bind(Ke),H="purpur-icon",Xe="md",Je=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),Qe=({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"}],i=n?`<title>${n}</title>`:"";return`<svg ${Je(t)}>${i}${e}</svg>`},Ye=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),R=({svg:e,allyTitle:n,className:t,size:i=Xe,...a})=>{const r=Qe({content:Ye(e.svg),title:n}),o=Ge(t,H,`${H}--${i}`);return l.jsx("span",{className:o,dangerouslySetInnerHTML:{__html:r},...a})};R.displayName="Icon";const er={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"},rr={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 K(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function tr(...e){return n=>{let t=!1;const i=e.map(a=>{const r=K(a,n);return!t&&typeof r=="function"&&(t=!0),r});if(t)return()=>{for(let a=0;a<i.length;a++){const r=i[a];typeof r=="function"?r():K(e[a],null)}}}}var oe=s.forwardRef((e,n)=>{const{children:t,...i}=e,a=s.Children.toArray(t),r=a.find(or);if(r){const o=r.props.children,u=a.map(c=>c===r?s.Children.count(o)>1?s.Children.only(null):s.isValidElement(o)?o.props.children:null:c);return l.jsx(E,{...i,ref:n,children:s.isValidElement(o)?s.cloneElement(o,void 0,u):null})}return l.jsx(E,{...i,ref:n,children:t})});oe.displayName="Slot";var E=s.forwardRef((e,n)=>{const{children:t,...i}=e;if(s.isValidElement(t)){const a=ar(t),r=ir(i,t.props);return t.type!==s.Fragment&&(r.ref=n?tr(n,a):a),s.cloneElement(t,r)}return s.Children.count(t)>1?s.Children.only(null):null});E.displayName="SlotClone";var nr=({children:e})=>l.jsx(l.Fragment,{children:e});function or(e){return s.isValidElement(e)&&e.type===nr}function ir(e,n){const t={...n};for(const i in n){const a=e[i],r=n[i];/^on[A-Z]/.test(i)?a&&r?t[i]=(...o)=>{r(...o),a(...o)}:a&&(t[i]=a):i==="style"?t[i]={...a,...r}:i==="className"&&(t[i]=[a,r].filter(Boolean).join(" "))}return{...e,...t}}function ar(e){var n,t;let i=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,a=i&&"isReactWarning"in i&&i.isReactWarning;return a?e.ref:(i=(t=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:t.get,a=i&&"isReactWarning"in i&&i.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var ur=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],sr=ur.reduce((e,n)=>{const t=s.forwardRef((i,a)=>{const{asChild:r,...o}=i,u=r?oe:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...o,ref:a})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),cr="Label",ie=s.forwardRef((e,n)=>l.jsx(sr.label,{...e,ref:n,onMouseDown:t=>{var i;t.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));ie.displayName=cr;var lr=ie;function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G={exports:{}};/*!
17
+ */var V;function Le(){return V||(V=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){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 n.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)t.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?(n.default=n,e.exports=n):window.classNames=n})()})(U)),U.exports}var Te=Le();const Ue=We(Te),Ve={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Fe=Ue.bind(Ve),F="purpur-icon",Ze="md",He=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),Ke=({content:e="",title:t}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},t?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],a=t?`<title>${t}</title>`:"";return`<svg ${He(n)}>${a}${e}</svg>`},Ge=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),R=({svg:e,allyTitle:t,className:n,size:a=Ze,...i})=>{const r=Ke({content:Ge(e.svg),title:t}),o=Fe(n,F,`${F}--${a}`);return p.jsx("span",{className:o,dangerouslySetInnerHTML:{__html:r},...i})};R.displayName="Icon";const Xe={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"},Je={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 Z(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qe(...e){return t=>{let n=!1;const a=e.map(i=>{const r=Z(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<a.length;i++){const r=a[i];typeof r=="function"?r():Z(e[i],null)}}}}function Ye(e){const t=er(e),n=s.forwardRef((a,i)=>{const{children:r,...o}=a,u=s.Children.toArray(r),c=u.find(tr);if(c){const l=c.props.children,d=u.map(f=>f===c?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...o,ref:i,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...o,ref:i,children:r})});return n.displayName=`${e}.Slot`,n}function er(e){const t=s.forwardRef((n,a)=>{const{children:i,...r}=n;if(s.isValidElement(i)){const o=or(i),u=nr(r,i.props);return i.type!==s.Fragment&&(u.ref=a?Qe(a,o):o),s.cloneElement(i,u)}return s.Children.count(i)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rr=Symbol("radix.slottable");function tr(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rr}function nr(e,t){const n={...t};for(const a in t){const i=e[a],r=t[a];/^on[A-Z]/.test(a)?i&&r?n[a]=(...o)=>{const u=r(...o);return i(...o),u}:i&&(n[a]=i):a==="style"?n[a]={...i,...r}:a==="className"&&(n[a]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}function or(e){var t,n;let a=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?e.ref:(a=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var ir=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ar=ir.reduce((e,t)=>{const n=Ye(`Primitive.${t}`),a=s.forwardRef((i,r)=>{const{asChild:o,...u}=i,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...u,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),ur="Label",te=s.forwardRef((e,t)=>p.jsx(ar.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));te.displayName=ur;var sr=te;function cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H={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 X;function fr(){return X||(X=1,function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=a(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return 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=a(o,this&&this[u]||u));return o}function a(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()}(G)),G.exports}var dr=fr();const hr=pr(dr),mr={"purpur-label":"_purpur-label_1x80u_1","purpur-label--negative":"_purpur-label--negative_1x80u_8","purpur-label--disabled":"_purpur-label--disabled_1x80u_11"},gr=hr.bind(mr),P="purpur-label",vr=({children:e,className:n,disabled:t,negative:i=!1,...a})=>{const r=gr(n,P,{[`${P}--disabled`]:t,[`${P}--negative`]:i});return l.jsx(lr,{className:r,...a,children:e})};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J={exports:{}};/*!
21
+ */var K;function lr(){return K||(K=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){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 n.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)t.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?(n.default=n,e.exports=n):window.classNames=n})()})(H)),H.exports}var pr=lr();const fr=cr(pr),dr={"purpur-label":"_purpur-label_1x80u_1","purpur-label--negative":"_purpur-label--negative_1x80u_8","purpur-label--disabled":"_purpur-label--disabled_1x80u_11"},hr=fr.bind(dr),P="purpur-label",mr=({children:e,className:t,disabled:n,negative:a=!1,...i})=>{const r=hr(t,P,{[`${P}--disabled`]:n,[`${P}--negative`]:a});return p.jsx(sr,{className:r,...i,children:e})};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var G={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
- */var Q;function br(){return Q||(Q=1,function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=a(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return 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=a(o,this&&this[u]||u));return o}function a(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()}(J)),J.exports}var xr=br();const yr=_r(xr),wr={"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"},$r=yr.bind(wr),Sr={PARAGRAPH100:"paragraph-100"},N="purpur-paragraph",ae=({children:e,className:n,disabled:t,enableHyphenation:i=!1,negative:a=!1,variant:r=Sr.PARAGRAPH100,...o})=>{const u=$r(n,N,`${N}--${r}`,{[`${N}--hyphens`]:i,[`${N}--disabled`]:t,[`${N}--negative`]:a});return l.jsx("p",{...o,className:u,children:e})};ae.displayName="Paragraph";function Y(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function ue(...e){return n=>{let t=!1;const i=e.map(a=>{const r=Y(a,n);return!t&&typeof r=="function"&&(t=!0),r});if(t)return()=>{for(let a=0;a<i.length;a++){const r=i[a];typeof r=="function"?r():Y(e[a],null)}}}}function se(...e){return s.useCallback(ue(...e),e)}function Nr(e,n=[]){let t=[];function i(r,o){const u=s.createContext(o),c=t.length;t=[...t,o];const p=d=>{var b;const{scope:f,children:m,...g}=d,_=((b=f==null?void 0:f[e])==null?void 0:b[c])||u,$=s.useMemo(()=>g,Object.values(g));return l.jsx(_.Provider,{value:$,children:m})};p.displayName=r+"Provider";function h(d,f){var _;const m=((_=f==null?void 0:f[e])==null?void 0:_[c])||u,g=s.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[p,h]}const a=()=>{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 a.scopeName=e,[i,Cr(a,...n)]}function Cr(...e){const n=e[0];if(e.length===1)return n;const t=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(r){const o=i.reduce((u,{useScope:c,scopeName:p})=>{const d=c(r)[`__scope${p}`];return{...u,...d}},{});return s.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return t.scopeName=n.scopeName,t}function ee(e,n,{checkForDefaultPrevented:t=!0}={}){return function(a){if(e==null||e(a),t===!1||!a.defaultPrevented)return n==null?void 0:n(a)}}function ce(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),s.useMemo(()=>(...t)=>{var i;return(i=n.current)==null?void 0:i.call(n,...t)},[])}function jr({prop:e,defaultProp:n,onChange:t=()=>{}}){const[i,a]=kr({defaultProp:n,onChange:t}),r=e!==void 0,o=r?e:i,u=ce(t),c=s.useCallback(p=>{if(r){const d=typeof p=="function"?p(e):p;d!==e&&u(d)}else a(p)},[r,e,a,u]);return[o,c]}function kr({defaultProp:e,onChange:n}){const t=s.useState(e),[i]=t,a=s.useRef(i),r=ce(n);return s.useEffect(()=>{a.current!==i&&(r(i),a.current=i)},[i,a,r]),t}function Or(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 M=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{};function Pr(e){const[n,t]=s.useState(void 0);return M(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const r=a[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 i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),n}function Ar(e,n){return s.useReducer((t,i)=>n[t][i]??t,e)}var le=e=>{const{present:n,children:t}=e,i=Rr(n),a=typeof t=="function"?t({present:i.isPresent}):s.Children.only(t),r=se(i.ref,Er(a));return typeof t=="function"||i.isPresent?s.cloneElement(a,{ref:r}):null};le.displayName="Presence";function Rr(e){const[n,t]=s.useState(),i=s.useRef({}),a=s.useRef(e),r=s.useRef("none"),o=e?"mounted":"unmounted",[u,c]=Ar(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const p=C(i.current);r.current=u==="mounted"?p:"none"},[u]),M(()=>{const p=i.current,h=a.current;if(h!==e){const f=r.current,m=C(p);e?c("MOUNT"):m==="none"||(p==null?void 0:p.display)==="none"?c("UNMOUNT"):c(h&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),M(()=>{if(n){let p;const h=n.ownerDocument.defaultView??window,d=m=>{const _=C(i.current).includes(m.animationName);if(m.target===n&&_&&(c("ANIMATION_END"),!a.current)){const $=n.style.animationFillMode;n.style.animationFillMode="forwards",p=h.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=$)})}},f=m=>{m.target===n&&(r.current=C(i.current))};return n.addEventListener("animationstart",f),n.addEventListener("animationcancel",d),n.addEventListener("animationend",d),()=>{h.clearTimeout(p),n.removeEventListener("animationstart",f),n.removeEventListener("animationcancel",d),n.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(p=>{p&&(i.current=getComputedStyle(p)),t(p)},[])}}function C(e){return(e==null?void 0:e.animationName)||"none"}function Er(e){var i,a;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var pe=s.forwardRef((e,n)=>{const{children:t,...i}=e,a=s.Children.toArray(t),r=a.find(qr);if(r){const o=r.props.children,u=a.map(c=>c===r?s.Children.count(o)>1?s.Children.only(null):s.isValidElement(o)?o.props.children:null:c);return l.jsx(q,{...i,ref:n,children:s.isValidElement(o)?s.cloneElement(o,void 0,u):null})}return l.jsx(q,{...i,ref:n,children:t})});pe.displayName="Slot";var q=s.forwardRef((e,n)=>{const{children:t,...i}=e;if(s.isValidElement(t)){const a=zr(t),r=Dr(i,t.props);return t.type!==s.Fragment&&(r.ref=n?ue(n,a):a),s.cloneElement(t,r)}return s.Children.count(t)>1?s.Children.only(null):null});q.displayName="SlotClone";var Mr=({children:e})=>l.jsx(l.Fragment,{children:e});function qr(e){return s.isValidElement(e)&&e.type===Mr}function Dr(e,n){const t={...n};for(const i in n){const a=e[i],r=n[i];/^on[A-Z]/.test(i)?a&&r?t[i]=(...u)=>{r(...u),a(...u)}:a&&(t[i]=a):i==="style"?t[i]={...a,...r}:i==="className"&&(t[i]=[a,r].filter(Boolean).join(" "))}return{...e,...t}}function zr(e){var i,a;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Br=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fe=Br.reduce((e,n)=>{const t=s.forwardRef((i,a)=>{const{asChild:r,...o}=i,u=r?pe:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...o,ref:a})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),D="Checkbox",[Wr,Jr]=Nr(D),[Ir,Lr]=Wr(D),de=s.forwardRef((e,n)=>{const{__scopeCheckbox:t,name:i,checked:a,defaultChecked:r,required:o,disabled:u,value:c="on",onCheckedChange:p,form:h,...d}=e,[f,m]=s.useState(null),g=se(n,v=>m(v)),_=s.useRef(!1),$=f?h||!!f.closest("form"):!0,[b=!1,j]=jr({prop:a,defaultProp:r,onChange:p}),_e=s.useRef(b);return s.useEffect(()=>{const v=f==null?void 0:f.form;if(v){const S=()=>j(_e.current);return v.addEventListener("reset",S),()=>v.removeEventListener("reset",S)}},[f,j]),l.jsxs(Ir,{scope:t,state:b,disabled:u,children:[l.jsx(fe.button,{type:"button",role:"checkbox","aria-checked":y(b)?"mixed":b,"aria-required":o,"data-state":ge(b),"data-disabled":u?"":void 0,disabled:u,value:c,...d,ref:g,onKeyDown:ee(e.onKeyDown,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:ee(e.onClick,v=>{j(S=>y(S)?!0:!S),$&&(_.current=v.isPropagationStopped(),_.current||v.stopPropagation())})}),$&&l.jsx(Ur,{control:f,bubbles:!_.current,name:i,value:c,checked:b,required:o,disabled:u,form:h,style:{transform:"translateX(-100%)"},defaultChecked:y(r)?!1:r})]})});de.displayName=D;var he="CheckboxIndicator",me=s.forwardRef((e,n)=>{const{__scopeCheckbox:t,forceMount:i,...a}=e,r=Lr(he,t);return l.jsx(le,{present:i||y(r.state)||r.state===!0,children:l.jsx(fe.span,{"data-state":ge(r.state),"data-disabled":r.disabled?"":void 0,...a,ref:n,style:{pointerEvents:"none",...e.style}})})});me.displayName=he;var Ur=e=>{const{control:n,checked:t,bubbles:i=!0,defaultChecked:a,...r}=e,o=s.useRef(null),u=Or(t),c=Pr(n);s.useEffect(()=>{const h=o.current,d=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(d,"checked").set;if(u!==t&&m){const g=new Event("click",{bubbles:i});h.indeterminate=y(t),m.call(h,y(t)?!1:t),h.dispatchEvent(g)}},[u,t,i]);const p=s.useRef(y(t)?!1:t);return l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??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 ge(e){return y(e)?"indeterminate":e?"checked":"unchecked"}var Fr=de,Tr=me;function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A={exports:{}};/*!
25
+ */var X;function _r(){return X||(X=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){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 n.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)t.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?(n.default=n,e.exports=n):window.classNames=n})()})(G)),G.exports}var vr=_r();const br=gr(vr),xr={"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"},yr=br.bind(xr),$r={PARAGRAPH100:"paragraph-100"},C="purpur-paragraph",ne=({children:e,className:t,disabled:n,enableHyphenation:a=!1,negative:i=!1,variant:r=$r.PARAGRAPH100,...o})=>{const u=yr(t,C,`${C}--${r}`,{[`${C}--hyphens`]:a,[`${C}--disabled`]:n,[`${C}--negative`]:i});return p.jsx("p",{...o,className:u,children:e})};ne.displayName="Paragraph";function J(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oe(...e){return t=>{let n=!1;const a=e.map(i=>{const r=J(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<a.length;i++){const r=a[i];typeof r=="function"?r():J(e[i],null)}}}}function ie(...e){return s.useCallback(oe(...e),e)}function wr(e,t=[]){let n=[];function a(r,o){const u=s.createContext(o),c=n.length;n=[...n,o];const l=f=>{var b;const{scope:h,children:m,...g}=f,v=((b=h==null?void 0:h[e])==null?void 0:b[c])||u,w=s.useMemo(()=>g,Object.values(g));return p.jsx(v.Provider,{value:w,children:m})};l.displayName=r+"Provider";function d(f,h){var v;const m=((v=h==null?void 0:h[e])==null?void 0:v[c])||u,g=s.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${r}\``)}return[l,d]}const i=()=>{const r=n.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,Sr(i,...t)]}function Sr(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const o=a.reduce((u,{useScope:c,scopeName:l})=>{const f=c(r)[`__scope${l}`];return{...u,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function ae(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function Cr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[a,i]=Nr({defaultProp:t,onChange:n}),r=e!==void 0,o=r?e:a,u=ae(n),c=s.useCallback(l=>{if(r){const f=typeof l=="function"?l(e):l;f!==e&&u(f)}else i(l)},[r,e,i,u]);return[o,c]}function Nr({defaultProp:e,onChange:t}){const n=s.useState(e),[a]=n,i=s.useRef(a),r=ae(t);return s.useEffect(()=>{i.current!==a&&(r(a),i.current=a)},[a,i,r]),n}function jr(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var E=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{};function kr(e){const[t,n]=s.useState(void 0);return E(()=>{if(e){n({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,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,u=l.blockSize}else o=e.offsetWidth,u=e.offsetHeight;n({width:o,height:u})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}function Or(e,t){return s.useReducer((n,a)=>t[n][a]??n,e)}var ue=e=>{const{present:t,children:n}=e,a=Pr(t),i=typeof n=="function"?n({present:a.isPresent}):s.Children.only(n),r=ie(a.ref,Ar(i));return typeof n=="function"||a.isPresent?s.cloneElement(i,{ref:r}):null};ue.displayName="Presence";function Pr(e){const[t,n]=s.useState(),a=s.useRef({}),i=s.useRef(e),r=s.useRef("none"),o=e?"mounted":"unmounted",[u,c]=Or(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const l=N(a.current);r.current=u==="mounted"?l:"none"},[u]),E(()=>{const l=a.current,d=i.current;if(d!==e){const h=r.current,m=N(l);e?c("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),E(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=m=>{const v=N(a.current).includes(m.animationName);if(m.target===t&&v&&(c("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=m=>{m.target===t&&(r.current=N(a.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(l=>{l&&(a.current=getComputedStyle(l)),n(l)},[])}}function N(e){return(e==null?void 0:e.animationName)||"none"}function Ar(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Rr(e){const t=Er(e),n=s.forwardRef((a,i)=>{const{children:r,...o}=a,u=s.Children.toArray(r),c=u.find(Dr);if(c){const l=c.props.children,d=u.map(f=>f===c?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:f);return p.jsx(t,{...o,ref:i,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return p.jsx(t,{...o,ref:i,children:r})});return n.displayName=`${e}.Slot`,n}function Er(e){const t=s.forwardRef((n,a)=>{const{children:i,...r}=n;if(s.isValidElement(i)){const o=Ir(i),u=qr(r,i.props);return i.type!==s.Fragment&&(u.ref=a?oe(a,o):o),s.cloneElement(i,u)}return s.Children.count(i)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mr=Symbol("radix.slottable");function Dr(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mr}function qr(e,t){const n={...t};for(const a in t){const i=e[a],r=t[a];/^on[A-Z]/.test(a)?i&&r?n[a]=(...u)=>{r(...u),i(...u)}:i&&(n[a]=i):a==="style"?n[a]={...i,...r}:a==="className"&&(n[a]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}function Ir(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],se=zr.reduce((e,t)=>{const n=Rr(`Primitive.${t}`),a=s.forwardRef((i,r)=>{const{asChild:o,...u}=i,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...u,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),M="Checkbox",[Br]=wr(M),[Wr,Lr]=Br(M),ce=s.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:i,defaultChecked:r,required:o,disabled:u,value:c="on",onCheckedChange:l,form:d,...f}=e,[h,m]=s.useState(null),g=ie(t,_=>m(_)),v=s.useRef(!1),w=h?d||!!h.closest("form"):!0,[b=!1,j]=Cr({prop:i,defaultProp:r,onChange:l}),he=s.useRef(b);return s.useEffect(()=>{const _=h==null?void 0:h.form;if(_){const S=()=>j(he.current);return _.addEventListener("reset",S),()=>_.removeEventListener("reset",S)}},[h,j]),p.jsxs(Wr,{scope:n,state:b,disabled:u,children:[p.jsx(se.button,{type:"button",role:"checkbox","aria-checked":y(b)?"mixed":b,"aria-required":o,"data-state":fe(b),"data-disabled":u?"":void 0,disabled:u,value:c,...f,ref:g,onKeyDown:Q(e.onKeyDown,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:Q(e.onClick,_=>{j(S=>y(S)?!0:!S),w&&(v.current=_.isPropagationStopped(),v.current||_.stopPropagation())})}),w&&p.jsx(Tr,{control:h,bubbles:!v.current,name:a,value:c,checked:b,required:o,disabled:u,form:d,style:{transform:"translateX(-100%)"},defaultChecked:y(r)?!1:r})]})});ce.displayName=M;var le="CheckboxIndicator",pe=s.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a,...i}=e,r=Lr(le,n);return p.jsx(ue,{present:a||y(r.state)||r.state===!0,children:p.jsx(se.span,{"data-state":fe(r.state),"data-disabled":r.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});pe.displayName=le;var Tr=e=>{const{control:t,checked:n,bubbles:a=!0,defaultChecked:i,...r}=e,o=s.useRef(null),u=jr(n),c=kr(t);s.useEffect(()=>{const d=o.current,f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(u!==n&&m){const g=new Event("click",{bubbles:a});d.indeterminate=y(n),m.call(d,y(n)?!1:n),d.dispatchEvent(g)}},[u,n,a]);const l=s.useRef(y(n)?!1:n);return p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i??l.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 fe(e){return y(e)?"indeterminate":e?"checked":"unchecked"}var Ur=ce,Vr=pe;function Fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A={exports:{}};/*!
26
26
  Copyright (c) 2018 Jed Watson.
27
27
  Licensed under the MIT License (MIT), see
28
28
  http://jedwatson.github.io/classnames
29
- */var re;function Zr(){return re||(re=1,function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(r=a(r,i.call(this,u)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return 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=a(o,this&&this[u]||u));return o}function a(r,o){return o?r?r+" "+o:r+o:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()}(A)),A.exports}var Hr=Zr();const Kr=Vr(Hr),Gr={"purpur-checkbox":"_purpur-checkbox_150ck_1","purpur-checkbox__box":"_purpur-checkbox__box_150ck_7","purpur-checkbox--error":"_purpur-checkbox--error_150ck_16","purpur-checkbox--error-checkbox":"_purpur-checkbox--error-checkbox_150ck_16","purpur-checkbox__indicator":"_purpur-checkbox__indicator_150ck_59","purpur-checkbox__label-container":"_purpur-checkbox__label-container_150ck_70","purpur-checkbox__wrapper":"_purpur-checkbox__wrapper_150ck_76","purpur-checkbox__container":"_purpur-checkbox__container_150ck_82"},w=Kr.bind(Gr),Xr=["indeterminate",!0,!1],x="purpur-checkbox",ve=te.forwardRef(({["data-testid"]:e,checked:n,className:t,error:i=!1,errorText:a,label:r,helperText:o,onChange:u,...c},p)=>{const h=a&&!n,d=i&&!n;return l.jsxs("div",{className:w([t,`${x}__wrapper`]),children:[l.jsxs("div",{className:w([t,`${x}__container`]),children:[l.jsx(Fr,{...c,checked:n,className:w([x,{[`${x}--error`]:h,[`${x}--error-checkbox`]:d}]),"data-testid":e,onCheckedChange:u,ref:p,children:l.jsx("span",{className:w(`${x}__box`),children:l.jsx(Tr,{className:w(`${x}__indicator`),children:n==="indeterminate"?l.jsx(R,{"data-testid":e&&`${e}-checked-icon`,size:"xs",svg:rr}):l.jsx(R,{"data-testid":e&&`${e}-indeterminate-icon`,size:"xs",svg:er})})})}),l.jsxs("span",{className:w(`${x}__label-container`),children:[r&&l.jsx(vr,{htmlFor:c.id,"data-testid":e&&`${e}-label`,disabled:c.disabled,children:l.jsxs(ae,{variant:"paragraph-100",disabled:c.disabled,children:[c.required&&l.jsx("span",{"aria-hidden":!0,children:"* "}),r]})}),o&&l.jsx(Fe,{className:w(`${x}__helper`),"data-testid":e&&`${e}-helper-text`,disabled:c.disabled,id:`${c.id}-helper-text`,children:o})]})]}),h&&l.jsx(De,{"data-testid":e&&`${e}-error-text`,children:a})]})});ve.displayName="Checkbox";exports.Checkbox=ve;exports.checkedState=Xr;
29
+ */var Y;function Zr(){return Y||(Y=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){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 n.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)t.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?(n.default=n,e.exports=n):window.classNames=n})()})(A)),A.exports}var Hr=Zr();const Kr=Fr(Hr),Gr={"purpur-checkbox":"_purpur-checkbox_150ck_1","purpur-checkbox__box":"_purpur-checkbox__box_150ck_7","purpur-checkbox--error":"_purpur-checkbox--error_150ck_16","purpur-checkbox--error-checkbox":"_purpur-checkbox--error-checkbox_150ck_16","purpur-checkbox__indicator":"_purpur-checkbox__indicator_150ck_59","purpur-checkbox__label-container":"_purpur-checkbox__label-container_150ck_70","purpur-checkbox__wrapper":"_purpur-checkbox__wrapper_150ck_76","purpur-checkbox__container":"_purpur-checkbox__container_150ck_82"},$=Kr.bind(Gr),Xr=["indeterminate",!0,!1],x="purpur-checkbox",de=ee.forwardRef(({["data-testid"]:e,checked:t,className:n,error:a=!1,errorText:i,label:r,helperText:o,onChange:u,...c},l)=>{const d=i&&!t,f=a&&!t;return p.jsxs("div",{className:$([n,`${x}__wrapper`]),children:[p.jsxs("div",{className:$([n,`${x}__container`]),children:[p.jsx(Ur,{...c,checked:t,className:$([x,{[`${x}--error`]:d,[`${x}--error-checkbox`]:f}]),"data-testid":e,onCheckedChange:u,ref:l,children:p.jsx("span",{className:$(`${x}__box`),children:p.jsx(Vr,{className:$(`${x}__indicator`),children:t==="indeterminate"?p.jsx(R,{"data-testid":e&&`${e}-checked-icon`,size:"xs",svg:Je}):p.jsx(R,{"data-testid":e&&`${e}-indeterminate-icon`,size:"xs",svg:Xe})})})}),p.jsxs("span",{className:$(`${x}__label-container`),children:[r&&p.jsx(mr,{htmlFor:c.id,"data-testid":e&&`${e}-label`,disabled:c.disabled,children:p.jsxs(ne,{variant:"paragraph-100",disabled:c.disabled,children:[c.required&&p.jsx("span",{"aria-hidden":!0,children:"* "}),r]})}),o&&p.jsx(Be,{className:$(`${x}__helper`),"data-testid":e&&`${e}-helper-text`,disabled:c.disabled,id:`${c.id}-helper-text`,children:o})]})]}),d&&p.jsx(Re,{"data-testid":e&&`${e}-error-text`,children:i})]})});de.displayName="Checkbox";exports.Checkbox=de;exports.checkedState=Xr;
30
30
  //# sourceMappingURL=checkbox.cjs.js.map