@purpurds/radio-card-group 8.2.2 → 8.2.4
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 +19 -19
- package/dist/radio-card-group.cjs.js +5 -5
- package/dist/radio-card-group.cjs.js.map +1 -1
- package/dist/radio-card-group.es.js +436 -430
- package/dist/radio-card-group.es.js.map +1 -1
- package/dist/radio-card-item-image.d.ts.map +1 -1
- package/dist/radio-card-item.d.ts.map +1 -1
- package/package.json +11 -11
package/dist/LICENSE.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Name: @purpurds/heading
|
|
2
|
-
Version: 8.2.
|
|
2
|
+
Version: 8.2.3
|
|
3
3
|
License: AGPL-3.0-only
|
|
4
4
|
Private: false
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
Name: @radix-ui/primitive
|
|
9
|
-
Version: 1.1.
|
|
9
|
+
Version: 1.1.2
|
|
10
10
|
License: MIT
|
|
11
11
|
Private: false
|
|
12
12
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -15,7 +15,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
Name: @radix-ui/react-compose-refs
|
|
18
|
-
Version: 1.1.
|
|
18
|
+
Version: 1.1.2
|
|
19
19
|
License: MIT
|
|
20
20
|
Private: false
|
|
21
21
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -24,7 +24,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
26
|
Name: @radix-ui/react-context
|
|
27
|
-
Version: 1.1.
|
|
27
|
+
Version: 1.1.2
|
|
28
28
|
License: MIT
|
|
29
29
|
Private: false
|
|
30
30
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -33,7 +33,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
35
|
Name: @radix-ui/react-slot
|
|
36
|
-
Version: 1.
|
|
36
|
+
Version: 1.2.0
|
|
37
37
|
License: MIT
|
|
38
38
|
Private: false
|
|
39
39
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -42,7 +42,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
44
|
Name: @radix-ui/react-primitive
|
|
45
|
-
Version: 2.0.
|
|
45
|
+
Version: 2.0.3
|
|
46
46
|
License: MIT
|
|
47
47
|
Private: false
|
|
48
48
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -51,7 +51,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
53
|
Name: @radix-ui/react-collection
|
|
54
|
-
Version: 1.1.
|
|
54
|
+
Version: 1.1.3
|
|
55
55
|
License: MIT
|
|
56
56
|
Private: false
|
|
57
57
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -60,7 +60,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
60
60
|
---
|
|
61
61
|
|
|
62
62
|
Name: @radix-ui/react-use-layout-effect
|
|
63
|
-
Version: 1.1.
|
|
63
|
+
Version: 1.1.1
|
|
64
64
|
License: MIT
|
|
65
65
|
Private: false
|
|
66
66
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -69,7 +69,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
69
69
|
---
|
|
70
70
|
|
|
71
71
|
Name: @radix-ui/react-id
|
|
72
|
-
Version: 1.1.
|
|
72
|
+
Version: 1.1.1
|
|
73
73
|
License: MIT
|
|
74
74
|
Private: false
|
|
75
75
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -78,7 +78,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
78
78
|
---
|
|
79
79
|
|
|
80
80
|
Name: @radix-ui/react-use-callback-ref
|
|
81
|
-
Version: 1.1.
|
|
81
|
+
Version: 1.1.1
|
|
82
82
|
License: MIT
|
|
83
83
|
Private: false
|
|
84
84
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -87,7 +87,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
87
87
|
---
|
|
88
88
|
|
|
89
89
|
Name: @radix-ui/react-use-controllable-state
|
|
90
|
-
Version: 1.1.
|
|
90
|
+
Version: 1.1.1
|
|
91
91
|
License: MIT
|
|
92
92
|
Private: false
|
|
93
93
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -96,7 +96,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
96
96
|
---
|
|
97
97
|
|
|
98
98
|
Name: @radix-ui/react-direction
|
|
99
|
-
Version: 1.1.
|
|
99
|
+
Version: 1.1.1
|
|
100
100
|
License: MIT
|
|
101
101
|
Private: false
|
|
102
102
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -105,7 +105,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
105
105
|
---
|
|
106
106
|
|
|
107
107
|
Name: @radix-ui/react-roving-focus
|
|
108
|
-
Version: 1.1.
|
|
108
|
+
Version: 1.1.3
|
|
109
109
|
License: MIT
|
|
110
110
|
Private: false
|
|
111
111
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -114,7 +114,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
114
114
|
---
|
|
115
115
|
|
|
116
116
|
Name: @radix-ui/react-use-size
|
|
117
|
-
Version: 1.1.
|
|
117
|
+
Version: 1.1.1
|
|
118
118
|
License: MIT
|
|
119
119
|
Private: false
|
|
120
120
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -123,7 +123,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
123
123
|
---
|
|
124
124
|
|
|
125
125
|
Name: @radix-ui/react-use-previous
|
|
126
|
-
Version: 1.1.
|
|
126
|
+
Version: 1.1.1
|
|
127
127
|
License: MIT
|
|
128
128
|
Private: false
|
|
129
129
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -132,7 +132,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
132
132
|
---
|
|
133
133
|
|
|
134
134
|
Name: @radix-ui/react-presence
|
|
135
|
-
Version: 1.1.
|
|
135
|
+
Version: 1.1.3
|
|
136
136
|
License: MIT
|
|
137
137
|
Private: false
|
|
138
138
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -141,7 +141,7 @@ Homepage: https://radix-ui.com/primitives
|
|
|
141
141
|
---
|
|
142
142
|
|
|
143
143
|
Name: @radix-ui/react-radio-group
|
|
144
|
-
Version: 1.2.
|
|
144
|
+
Version: 1.2.4
|
|
145
145
|
License: MIT
|
|
146
146
|
Private: false
|
|
147
147
|
Repository: git+https://github.com/radix-ui/primitives.git
|
|
@@ -184,13 +184,13 @@ SOFTWARE.
|
|
|
184
184
|
---
|
|
185
185
|
|
|
186
186
|
Name: @purpurds/paragraph
|
|
187
|
-
Version: 8.2.
|
|
187
|
+
Version: 8.2.3
|
|
188
188
|
License: AGPL-3.0-only
|
|
189
189
|
Private: false
|
|
190
190
|
|
|
191
191
|
---
|
|
192
192
|
|
|
193
193
|
Name: @purpurds/skeleton
|
|
194
|
-
Version: 8.2.
|
|
194
|
+
Version: 8.2.3
|
|
195
195
|
License: AGPL-3.0-only
|
|
196
196
|
Private: false
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),R=require("react");require("react-dom");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),R=require("react");require("react-dom");function De(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=De(R);function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var te={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 ne;function ze(){return ne||(ne=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=a(r,o(u)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var i="";for(var u in r)t.call(r,u)&&r[u]&&(i=a(i,u));return i}function a(r,i){return i?r?r+" "+i:r+i:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(te)),te.exports}var Ue=ze();const Ve=Le(Ue),T={"purpur-heading":"_purpur-heading_vo751_1","purpur-heading--hyphens":"_purpur-heading--hyphens_vo751_8","purpur-heading--negative":"_purpur-heading--negative_vo751_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_vo751_14","purpur-heading--title-100":"_purpur-heading--title-100_vo751_20","purpur-heading--title-200":"_purpur-heading--title-200_vo751_26","purpur-heading--title-300":"_purpur-heading--title-300_vo751_32","purpur-heading--title-400":"_purpur-heading--title-400_vo751_38","purpur-heading--title-500":"_purpur-heading--title-500_vo751_44","purpur-heading--title-600":"_purpur-heading--title-600_vo751_50","purpur-heading--title-700":"_purpur-heading--title-700_vo751_56","purpur-heading--display-5":"_purpur-heading--display-5_vo751_62","purpur-heading--display-10":"_purpur-heading--display-10_vo751_68","purpur-heading--display-15":"_purpur-heading--display-15_vo751_74","purpur-heading--display-20":"_purpur-heading--display-20_vo751_80","purpur-heading--display-25":"_purpur-heading--display-25_vo751_86","purpur-heading--display-50":"_purpur-heading--display-50_vo751_92","purpur-heading--display-100":"_purpur-heading--display-100_vo751_98","purpur-heading--display-200":"_purpur-heading--display-200_vo751_104"},Ke={TITLE100:"title-100"},M="purpur-heading",pe=({children:e,className:t="",enableHyphenation:n=!1,negative:o=!1,tag:a,variant:r=Ke.TITLE100,...i})=>{const u=a,c=Ve([t,T[M],T[`${M}--${r}`],{[T[`${M}--hyphens`]]:n,[T[`${M}--negative`]]:o}]);return d.jsx(u,{className:c,...i,children:e})};pe.displayName="Heading";function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function oe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function de(...e){return t=>{let n=!1;const o=e.map(a=>{const r=oe(a,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let a=0;a<o.length;a++){const r=o[a];typeof r=="function"?r():oe(e[a],null)}}}}function O(...e){return s.useCallback(de(...e),e)}function L(e,t=[]){let n=[];function o(r,i){const u=s.createContext(i),c=n.length;n=[...n,i];const p=_=>{var y;const{scope:g,children:l,...f}=_,h=((y=g==null?void 0:g[e])==null?void 0:y[c])||u,v=s.useMemo(()=>f,Object.values(f));return d.jsx(h.Provider,{value:v,children:l})};p.displayName=r+"Provider";function m(_,g){var h;const l=((h=g==null?void 0:g[e])==null?void 0:h[c])||u,f=s.useContext(l);if(f)return f;if(i!==void 0)return i;throw new Error(`\`${_}\` must be used within \`${r}\``)}return[p,m]}const a=()=>{const r=n.map(i=>s.createContext(i));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,[o,Be(a,...t)]}function Be(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(r){const i=o.reduce((u,{useScope:c,scopeName:p})=>{const _=c(r)[`__scope${p}`];return{...u,..._}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var D=s.forwardRef((e,t)=>{const{children:n,...o}=e,a=s.Children.toArray(n),r=a.find(qe);if(r){const i=r.props.children,u=a.map(c=>c===r?s.Children.count(i)>1?s.Children.only(null):s.isValidElement(i)?i.props.children:null:c);return d.jsx(H,{...o,ref:t,children:s.isValidElement(i)?s.cloneElement(i,void 0,u):null})}return d.jsx(H,{...o,ref:t,children:n})});D.displayName="Slot";var H=s.forwardRef((e,t)=>{const{children:n,...o}=e;if(s.isValidElement(n)){const a=Ye(n),r=He(o,n.props);return n.type!==s.Fragment&&(r.ref=t?de(t,a):a),s.cloneElement(n,r)}return s.Children.count(n)>1?s.Children.only(null):null});H.displayName="SlotClone";var We=({children:e})=>d.jsx(d.Fragment,{children:e});function qe(e){return s.isValidElement(e)&&e.type===We}function He(e,t){const n={...t};for(const o in t){const a=e[o],r=t[o];/^on[A-Z]/.test(o)?a&&r?n[o]=(...u)=>{r(...u),a(...u)}:a&&(n[o]=a):o==="style"?n[o]={...a,...r}:o==="className"&&(n[o]=[a,r].filter(Boolean).join(" "))}return{...e,...n}}function Ye(e){var o,a;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],j=Xe.reduce((e,t)=>{const n=s.forwardRef((o,a)=>{const{asChild:r,...i}=o,u=r?D:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(u,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ze(e){const t=e+"CollectionProvider",[n,o]=L(t),[a,r]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=l=>{const{scope:f,children:h}=l,v=R.useRef(null),y=R.useRef(new Map).current;return d.jsx(a,{scope:f,itemMap:y,collectionRef:v,children:h})};i.displayName=t;const u=e+"CollectionSlot",c=R.forwardRef((l,f)=>{const{scope:h,children:v}=l,y=r(u,h),b=O(f,y.collectionRef);return d.jsx(D,{ref:b,children:v})});c.displayName=u;const p=e+"CollectionItemSlot",m="data-radix-collection-item",_=R.forwardRef((l,f)=>{const{scope:h,children:v,...y}=l,b=R.useRef(null),A=O(f,b),w=r(p,h);return R.useEffect(()=>(w.itemMap.set(b,{ref:b,...y}),()=>void w.itemMap.delete(b))),d.jsx(D,{[m]:"",ref:A,children:v})});_.displayName=p;function g(l){const f=r(e+"CollectionConsumer",l);return R.useCallback(()=>{const v=f.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(f.itemMap.values()).sort((w,E)=>y.indexOf(w.ref.current)-y.indexOf(E.ref.current))},[f.collectionRef,f.itemMap])}return[{Provider:i,Slot:c,ItemSlot:_},g,o]}var G=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{},Je=s.useId||(()=>{}),Qe=0;function er(e){const[t,n]=s.useState(Je());return G(()=>{n(o=>o??String(Qe++))},[e]),t?`radix-${t}`:""}function Z(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function le({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,a]=rr({defaultProp:t,onChange:n}),r=e!==void 0,i=r?e:o,u=Z(n),c=s.useCallback(p=>{if(r){const _=typeof p=="function"?p(e):p;_!==e&&u(_)}else a(p)},[r,e,a,u]);return[i,c]}function rr({defaultProp:e,onChange:t}){const n=s.useState(e),[o]=n,a=s.useRef(o),r=Z(t);return s.useEffect(()=>{a.current!==o&&(r(o),a.current=o)},[o,a,r]),n}var tr=s.createContext(void 0);function fe(e){const t=s.useContext(tr);return e||t||"ltr"}var K="rovingFocusGroup.onEntryFocus",nr={bubbles:!1,cancelable:!0},z="RovingFocusGroup",[Y,_e,or]=Ze(z),[ar,me]=L(z,[or]),[ir,ur]=ar(z),ge=s.forwardRef((e,t)=>d.jsx(Y.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Y.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(sr,{...e,ref:t})})}));ge.displayName=z;var sr=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:a=!1,dir:r,currentTabStopId:i,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,..._}=e,g=s.useRef(null),l=O(t,g),f=fe(r),[h=null,v]=le({prop:i,defaultProp:u,onChange:c}),[y,b]=s.useState(!1),A=Z(p),w=_e(n),E=s.useRef(!1),[Me,ee]=s.useState(0);return s.useEffect(()=>{const S=g.current;if(S)return S.addEventListener(K,A),()=>S.removeEventListener(K,A)},[A]),d.jsx(ir,{scope:n,orientation:o,dir:f,loop:a,currentTabStopId:h,onItemFocus:s.useCallback(S=>v(S),[v]),onItemShiftTab:s.useCallback(()=>b(!0),[]),onFocusableItemAdd:s.useCallback(()=>ee(S=>S+1),[]),onFocusableItemRemove:s.useCallback(()=>ee(S=>S-1),[]),children:d.jsx(j.div,{tabIndex:y||Me===0?-1:0,"data-orientation":o,..._,ref:l,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{E.current=!0}),onFocus:N(e.onFocus,S=>{const $e=!E.current;if(S.target===S.currentTarget&&$e&&!y){const re=new CustomEvent(K,nr);if(S.currentTarget.dispatchEvent(re),!re.defaultPrevented){const V=w().filter(I=>I.focusable),Fe=V.find(I=>I.active),ke=V.find(I=>I.id===h),De=[Fe,ke,...V].filter(Boolean).map(I=>I.ref.current);ye(De,m)}}E.current=!1}),onBlur:N(e.onBlur,()=>b(!1))})})}),he="RovingFocusGroupItem",ve=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:r,...i}=e,u=er(),c=r||u,p=ur(he,n),m=p.currentTabStopId===c,_=_e(n),{onFocusableItemAdd:g,onFocusableItemRemove:l}=p;return s.useEffect(()=>{if(o)return g(),()=>l()},[o,g,l]),d.jsx(Y.ItemSlot,{scope:n,id:c,focusable:o,active:a,children:d.jsx(j.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...i,ref:t,onMouseDown:N(e.onMouseDown,f=>{o?p.onItemFocus(c):f.preventDefault()}),onFocus:N(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:N(e.onKeyDown,f=>{if(f.key==="Tab"&&f.shiftKey){p.onItemShiftTab();return}if(f.target!==f.currentTarget)return;const h=dr(f,p.orientation,p.dir);if(h!==void 0){if(f.metaKey||f.ctrlKey||f.altKey||f.shiftKey)return;f.preventDefault();let y=_().filter(b=>b.focusable).map(b=>b.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const b=y.indexOf(f.currentTarget);y=p.loop?lr(y,b+1):y.slice(b+1)}setTimeout(()=>ye(y))}})})})});ve.displayName=he;var cr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pr(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function dr(e,t,n){const o=pr(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return cr[o]}function ye(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function lr(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var fr=ge,_r=ve;function mr(e){const[t,n]=s.useState(void 0);return G(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const r=a[0];let i,u;if("borderBoxSize"in r){const c=r.borderBoxSize,p=Array.isArray(c)?c[0]:c;i=p.inlineSize,u=p.blockSize}else i=e.offsetWidth,u=e.offsetHeight;n({width:i,height:u})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function gr(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])}function hr(e,t){return s.useReducer((n,o)=>t[n][o]??n,e)}var be=e=>{const{present:t,children:n}=e,o=vr(t),a=typeof n=="function"?n({present:o.isPresent}):s.Children.only(n),r=O(o.ref,yr(a));return typeof n=="function"||o.isPresent?s.cloneElement(a,{ref:r}):null};be.displayName="Presence";function vr(e){const[t,n]=s.useState(),o=s.useRef({}),a=s.useRef(e),r=s.useRef("none"),i=e?"mounted":"unmounted",[u,c]=hr(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const p=$(o.current);r.current=u==="mounted"?p:"none"},[u]),G(()=>{const p=o.current,m=a.current;if(m!==e){const g=r.current,l=$(p);e?c("MOUNT"):l==="none"||(p==null?void 0:p.display)==="none"?c("UNMOUNT"):c(m&&g!==l?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),G(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,_=l=>{const h=$(o.current).includes(l.animationName);if(l.target===t&&h&&(c("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=l=>{l.target===t&&(r.current=$(o.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",_),t.addEventListener("animationend",_),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",_),t.removeEventListener("animationend",_)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(p=>{p&&(o.current=getComputedStyle(p)),n(p)},[])}}function $(e){return(e==null?void 0:e.animationName)||"none"}function yr(e){var o,a;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var J="Radio",[br,Re]=L(J),[Rr,Sr]=br(J),Se=s.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:a=!1,required:r,disabled:i,value:u="on",onCheck:c,form:p,...m}=e,[_,g]=s.useState(null),l=O(t,v=>g(v)),f=s.useRef(!1),h=_?p||!!_.closest("form"):!0;return d.jsxs(Rr,{scope:n,checked:a,disabled:i,children:[d.jsx(j.button,{type:"button",role:"radio","aria-checked":a,"data-state":Ne(a),"data-disabled":i?"":void 0,disabled:i,value:u,...m,ref:l,onClick:N(e.onClick,v=>{a||c==null||c(),h&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})}),h&&d.jsx(xr,{control:_,bubbles:!f.current,name:o,value:u,checked:a,required:r,disabled:i,form:p,style:{transform:"translateX(-100%)"}})]})});Se.displayName=J;var xe="RadioIndicator",Ce=s.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...a}=e,r=Sr(xe,n);return d.jsx(be,{present:o||r.checked,children:d.jsx(j.span,{"data-state":Ne(r.checked),"data-disabled":r.disabled?"":void 0,...a,ref:t})})});Ce.displayName=xe;var xr=e=>{const{control:t,checked:n,bubbles:o=!0,...a}=e,r=s.useRef(null),i=gr(n),u=mr(t);return s.useEffect(()=>{const c=r.current,p=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(p,"checked").set;if(i!==n&&_){const g=new Event("click",{bubbles:o});_.call(c,n),c.dispatchEvent(g)}},[i,n,o]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:r,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ne(e){return e?"checked":"unchecked"}var Cr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Q="RadioGroup",[Nr,nt]=L(Q,[me,Re]),Ie=me(),Ae=Re(),[Ir,Ar]=Nr(Q),we=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:a,value:r,required:i=!1,disabled:u=!1,orientation:c,dir:p,loop:m=!0,onValueChange:_,...g}=e,l=Ie(n),f=fe(p),[h,v]=le({prop:r,defaultProp:a,onChange:_});return d.jsx(Ir,{scope:n,name:o,required:i,disabled:u,value:h,onValueChange:v,children:d.jsx(fr,{asChild:!0,...l,orientation:c,dir:f,loop:m,children:d.jsx(j.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":u?"":void 0,dir:f,...g,ref:t})})})});we.displayName=Q;var Oe="RadioGroupItem",Ee=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...a}=e,r=Ar(Oe,n),i=r.disabled||o,u=Ie(n),c=Ae(n),p=s.useRef(null),m=O(t,p),_=r.value===a.value,g=s.useRef(!1);return s.useEffect(()=>{const l=h=>{Cr.includes(h.key)&&(g.current=!0)},f=()=>g.current=!1;return document.addEventListener("keydown",l),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",f)}},[]),d.jsx(_r,{asChild:!0,...u,focusable:!i,active:_,children:d.jsx(Se,{disabled:i,required:r.required,checked:_,...c,...a,name:r.name,ref:m,onCheck:()=>r.onValueChange(a.value),onKeyDown:N(l=>{l.key==="Enter"&&l.preventDefault()}),onFocus:N(a.onFocus,()=>{var l;g.current&&((l=p.current)==null||l.click())})})})});Ee.displayName=Oe;var wr="RadioGroupIndicator",Pe=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,a=Ae(n);return d.jsx(Ce,{...a,...o,ref:t})});Pe.displayName=wr;var Or=we,Er=Ee,Pr=Pe;function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var B={exports:{}};/*!
|
|
5
|
+
*/var ne;function Le(){return ne||(ne=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=a(r,o(u)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var i="";for(var u in r)t.call(r,u)&&r[u]&&(i=a(i,u));return i}function a(r,i){return i?r?r+" "+i:r+i:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(te)),te.exports}var ze=Le();const Ue=Ge(ze),M={"purpur-heading":"_purpur-heading_vo751_1","purpur-heading--hyphens":"_purpur-heading--hyphens_vo751_8","purpur-heading--negative":"_purpur-heading--negative_vo751_11","purpur-heading--subsection-100":"_purpur-heading--subsection-100_vo751_14","purpur-heading--title-100":"_purpur-heading--title-100_vo751_20","purpur-heading--title-200":"_purpur-heading--title-200_vo751_26","purpur-heading--title-300":"_purpur-heading--title-300_vo751_32","purpur-heading--title-400":"_purpur-heading--title-400_vo751_38","purpur-heading--title-500":"_purpur-heading--title-500_vo751_44","purpur-heading--title-600":"_purpur-heading--title-600_vo751_50","purpur-heading--title-700":"_purpur-heading--title-700_vo751_56","purpur-heading--display-5":"_purpur-heading--display-5_vo751_62","purpur-heading--display-10":"_purpur-heading--display-10_vo751_68","purpur-heading--display-15":"_purpur-heading--display-15_vo751_74","purpur-heading--display-20":"_purpur-heading--display-20_vo751_80","purpur-heading--display-25":"_purpur-heading--display-25_vo751_86","purpur-heading--display-50":"_purpur-heading--display-50_vo751_92","purpur-heading--display-100":"_purpur-heading--display-100_vo751_98","purpur-heading--display-200":"_purpur-heading--display-200_vo751_104"},Ve={TITLE100:"title-100"},F="purpur-heading",pe=({children:e,className:t="",enableHyphenation:n=!1,negative:o=!1,tag:a,variant:r=Ve.TITLE100,...i})=>{const u=a,p=Ue([t,M[F],M[`${F}--${r}`],{[M[`${F}--hyphens`]]:n,[M[`${F}--negative`]]:o}]);return d.jsx(u,{className:p,...i,children:e})};pe.displayName="Heading";function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function oe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function de(...e){return t=>{let n=!1;const o=e.map(a=>{const r=oe(a,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let a=0;a<o.length;a++){const r=o[a];typeof r=="function"?r():oe(e[a],null)}}}}function P(...e){return s.useCallback(de(...e),e)}function z(e,t=[]){let n=[];function o(r,i){const u=s.createContext(i),p=n.length;n=[...n,i];const c=f=>{var y;const{scope:g,children:l,...m}=f,h=((y=g==null?void 0:g[e])==null?void 0:y[p])||u,v=s.useMemo(()=>m,Object.values(m));return d.jsx(h.Provider,{value:v,children:l})};c.displayName=r+"Provider";function _(f,g){var h;const l=((h=g==null?void 0:g[e])==null?void 0:h[p])||u,m=s.useContext(l);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${r}\``)}return[c,_]}const a=()=>{const r=n.map(i=>s.createContext(i));return function(u){const p=(u==null?void 0:u[e])||r;return s.useMemo(()=>({[`__scope${e}`]:{...u,[e]:p}}),[u,p])}};return a.scopeName=e,[o,Ke(a,...t)]}function Ke(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(r){const i=o.reduce((u,{useScope:p,scopeName:c})=>{const f=p(r)[`__scope${c}`];return{...u,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Y(e){const t=Be(e),n=s.forwardRef((o,a)=>{const{children:r,...i}=o,u=s.Children.toArray(r),p=u.find(qe);if(p){const c=p.props.children,_=u.map(f=>f===p?s.Children.count(c)>1?s.Children.only(null):s.isValidElement(c)?c.props.children:null:f);return d.jsx(t,{...i,ref:a,children:s.isValidElement(c)?s.cloneElement(c,void 0,_):null})}return d.jsx(t,{...i,ref:a,children:r})});return n.displayName=`${e}.Slot`,n}function Be(e){const t=s.forwardRef((n,o)=>{const{children:a,...r}=n;if(s.isValidElement(a)){const i=Ye(a),u=He(r,a.props);return a.type!==s.Fragment&&(u.ref=o?de(o,i):i),s.cloneElement(a,u)}return s.Children.count(a)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var We=Symbol("radix.slottable");function qe(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===We}function He(e,t){const n={...t};for(const o in t){const a=e[o],r=t[o];/^on[A-Z]/.test(o)?a&&r?n[o]=(...u)=>{r(...u),a(...u)}:a&&(n[o]=a):o==="style"?n[o]={...a,...r}:o==="className"&&(n[o]=[a,r].filter(Boolean).join(" "))}return{...e,...n}}function Ye(e){var o,a;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],T=Xe.reduce((e,t)=>{const n=Y(`Primitive.${t}`),o=s.forwardRef((a,r)=>{const{asChild:i,...u}=a,p=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...u,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ze(e){const t=e+"CollectionProvider",[n,o]=z(t),[a,r]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:v,children:y}=h,b=R.useRef(null),x=R.useRef(new Map).current;return d.jsx(a,{scope:v,itemMap:x,collectionRef:b,children:y})};i.displayName=t;const u=e+"CollectionSlot",p=Y(u),c=R.forwardRef((h,v)=>{const{scope:y,children:b}=h,x=r(u,y),N=P(v,x.collectionRef);return d.jsx(p,{ref:N,children:b})});c.displayName=u;const _=e+"CollectionItemSlot",f="data-radix-collection-item",g=Y(_),l=R.forwardRef((h,v)=>{const{scope:y,children:b,...x}=h,N=R.useRef(null),O=P(v,N),E=r(_,y);return R.useEffect(()=>(E.itemMap.set(N,{ref:N,...x}),()=>void E.itemMap.delete(N))),d.jsx(g,{[f]:"",ref:O,children:b})});l.displayName=_;function m(h){const v=r(e+"CollectionConsumer",h);return R.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((E,$)=>x.indexOf(E.ref.current)-x.indexOf($.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:c,ItemSlot:l},m,o]}var L=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{},Je=s[" useId ".trim().toString()]||(()=>{}),Qe=0;function er(e){const[t,n]=s.useState(Je());return L(()=>{n(o=>o??String(Qe++))},[e]),t?`radix-${t}`:""}function J(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function le({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,a]=rr({defaultProp:t,onChange:n}),r=e!==void 0,i=r?e:o,u=J(n),p=s.useCallback(c=>{if(r){const f=typeof c=="function"?c(e):c;f!==e&&u(f)}else a(c)},[r,e,a,u]);return[i,p]}function rr({defaultProp:e,onChange:t}){const n=s.useState(e),[o]=n,a=s.useRef(o),r=J(t);return s.useEffect(()=>{a.current!==o&&(r(o),a.current=o)},[o,a,r]),n}var tr=s.createContext(void 0);function fe(e){const t=s.useContext(tr);return e||t||"ltr"}var B="rovingFocusGroup.onEntryFocus",nr={bubbles:!1,cancelable:!0},U="RovingFocusGroup",[X,_e,or]=Ze(U),[ar,me]=z(U,[or]),[ir,ur]=ar(U),ge=s.forwardRef((e,t)=>d.jsx(X.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(X.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(sr,{...e,ref:t})})}));ge.displayName=U;var sr=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:a=!1,dir:r,currentTabStopId:i,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:p,onEntryFocus:c,preventScrollOnEntryFocus:_=!1,...f}=e,g=s.useRef(null),l=P(t,g),m=fe(r),[h=null,v]=le({prop:i,defaultProp:u,onChange:p}),[y,b]=s.useState(!1),x=J(c),N=_e(n),O=s.useRef(!1),[E,$]=s.useState(0);return s.useEffect(()=>{const S=g.current;if(S)return S.addEventListener(B,x),()=>S.removeEventListener(B,x)},[x]),d.jsx(ir,{scope:n,orientation:o,dir:m,loop:a,currentTabStopId:h,onItemFocus:s.useCallback(S=>v(S),[v]),onItemShiftTab:s.useCallback(()=>b(!0),[]),onFocusableItemAdd:s.useCallback(()=>$(S=>S+1),[]),onFocusableItemRemove:s.useCallback(()=>$(S=>S-1),[]),children:d.jsx(T.div,{tabIndex:y||E===0?-1:0,"data-orientation":o,...f,ref:l,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{O.current=!0}),onFocus:A(e.onFocus,S=>{const $e=!O.current;if(S.target===S.currentTarget&&$e&&!y){const re=new CustomEvent(B,nr);if(S.currentTarget.dispatchEvent(re),!re.defaultPrevented){const K=N().filter(w=>w.focusable),Me=K.find(w=>w.active),Fe=K.find(w=>w.id===h),ke=[Me,Fe,...K].filter(Boolean).map(w=>w.ref.current);ye(ke,_)}}O.current=!1}),onBlur:A(e.onBlur,()=>b(!1))})})}),he="RovingFocusGroupItem",ve=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:r,...i}=e,u=er(),p=r||u,c=ur(he,n),_=c.currentTabStopId===p,f=_e(n),{onFocusableItemAdd:g,onFocusableItemRemove:l}=c;return s.useEffect(()=>{if(o)return g(),()=>l()},[o,g,l]),d.jsx(X.ItemSlot,{scope:n,id:p,focusable:o,active:a,children:d.jsx(T.span,{tabIndex:_?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:A(e.onMouseDown,m=>{o?c.onItemFocus(p):m.preventDefault()}),onFocus:A(e.onFocus,()=>c.onItemFocus(p)),onKeyDown:A(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const h=dr(m,c.orientation,c.dir);if(h!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let y=f().filter(b=>b.focusable).map(b=>b.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const b=y.indexOf(m.currentTarget);y=c.loop?lr(y,b+1):y.slice(b+1)}setTimeout(()=>ye(y))}})})})});ve.displayName=he;var cr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function pr(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function dr(e,t,n){const o=pr(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return cr[o]}function ye(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function lr(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var fr=ge,_r=ve;function mr(e){const[t,n]=s.useState(void 0);return L(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const r=a[0];let i,u;if("borderBoxSize"in r){const p=r.borderBoxSize,c=Array.isArray(p)?p[0]:p;i=c.inlineSize,u=c.blockSize}else i=e.offsetWidth,u=e.offsetHeight;n({width:i,height:u})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function gr(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])}function hr(e,t){return s.useReducer((n,o)=>t[n][o]??n,e)}var be=e=>{const{present:t,children:n}=e,o=vr(t),a=typeof n=="function"?n({present:o.isPresent}):s.Children.only(n),r=P(o.ref,yr(a));return typeof n=="function"||o.isPresent?s.cloneElement(a,{ref:r}):null};be.displayName="Presence";function vr(e){const[t,n]=s.useState(),o=s.useRef({}),a=s.useRef(e),r=s.useRef("none"),i=e?"mounted":"unmounted",[u,p]=hr(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const c=k(o.current);r.current=u==="mounted"?c:"none"},[u]),L(()=>{const c=o.current,_=a.current;if(_!==e){const g=r.current,l=k(c);e?p("MOUNT"):l==="none"||(c==null?void 0:c.display)==="none"?p("UNMOUNT"):p(_&&g!==l?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,p]),L(()=>{if(t){let c;const _=t.ownerDocument.defaultView??window,f=l=>{const h=k(o.current).includes(l.animationName);if(l.target===t&&h&&(p("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=_.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=l=>{l.target===t&&(r.current=k(o.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{_.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(c=>{c&&(o.current=getComputedStyle(c)),n(c)},[])}}function k(e){return(e==null?void 0:e.animationName)||"none"}function yr(e){var o,a;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Q="Radio",[br,Re]=z(Q),[Rr,Sr]=br(Q),Se=s.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:a=!1,required:r,disabled:i,value:u="on",onCheck:p,form:c,..._}=e,[f,g]=s.useState(null),l=P(t,v=>g(v)),m=s.useRef(!1),h=f?c||!!f.closest("form"):!0;return d.jsxs(Rr,{scope:n,checked:a,disabled:i,children:[d.jsx(T.button,{type:"button",role:"radio","aria-checked":a,"data-state":Ne(a),"data-disabled":i?"":void 0,disabled:i,value:u,..._,ref:l,onClick:A(e.onClick,v=>{a||p==null||p(),h&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})}),h&&d.jsx(Cr,{control:f,bubbles:!m.current,name:o,value:u,checked:a,required:r,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});Se.displayName=Q;var Ce="RadioIndicator",xe=s.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...a}=e,r=Sr(Ce,n);return d.jsx(be,{present:o||r.checked,children:d.jsx(T.span,{"data-state":Ne(r.checked),"data-disabled":r.disabled?"":void 0,...a,ref:t})})});xe.displayName=Ce;var Cr=e=>{const{control:t,checked:n,bubbles:o=!0,...a}=e,r=s.useRef(null),i=gr(n),u=mr(t);return s.useEffect(()=>{const p=r.current,c=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&f){const g=new Event("click",{bubbles:o});f.call(p,n),p.dispatchEvent(g)}},[i,n,o]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:r,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ne(e){return e?"checked":"unchecked"}var xr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ee="RadioGroup",[Nr]=z(ee,[me,Re]),Ie=me(),Ae=Re(),[Ir,Ar]=Nr(ee),we=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:a,value:r,required:i=!1,disabled:u=!1,orientation:p,dir:c,loop:_=!0,onValueChange:f,...g}=e,l=Ie(n),m=fe(c),[h,v]=le({prop:r,defaultProp:a,onChange:f});return d.jsx(Ir,{scope:n,name:o,required:i,disabled:u,value:h,onValueChange:v,children:d.jsx(fr,{asChild:!0,...l,orientation:p,dir:m,loop:_,children:d.jsx(T.div,{role:"radiogroup","aria-required":i,"aria-orientation":p,"data-disabled":u?"":void 0,dir:m,...g,ref:t})})})});we.displayName=ee;var Oe="RadioGroupItem",Ee=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...a}=e,r=Ar(Oe,n),i=r.disabled||o,u=Ie(n),p=Ae(n),c=s.useRef(null),_=P(t,c),f=r.value===a.value,g=s.useRef(!1);return s.useEffect(()=>{const l=h=>{xr.includes(h.key)&&(g.current=!0)},m=()=>g.current=!1;return document.addEventListener("keydown",l),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",m)}},[]),d.jsx(_r,{asChild:!0,...u,focusable:!i,active:f,children:d.jsx(Se,{disabled:i,required:r.required,checked:f,...p,...a,name:r.name,ref:_,onCheck:()=>r.onValueChange(a.value),onKeyDown:A(l=>{l.key==="Enter"&&l.preventDefault()}),onFocus:A(a.onFocus,()=>{var l;g.current&&((l=c.current)==null||l.click())})})})});Ee.displayName=Oe;var wr="RadioGroupIndicator",Pe=s.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,a=Ae(n);return d.jsx(xe,{...a,...o,ref:t})});Pe.displayName=wr;var Or=we,Er=Ee,Pr=Pe;function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W={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 ae;function Tr(){return ae||(ae=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=a(r,o.call(this,u)))}return r}function o(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 i="";for(var u in r)t.call(r,u)&&r[u]&&(i=a(i,this&&this[u]||u));return i}function a(r,i){return i?r?r+" "+i:r+i:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(
|
|
9
|
+
*/var ae;function Tr(){return ae||(ae=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=a(r,o.call(this,u)))}return r}function o(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 i="";for(var u in r)t.call(r,u)&&r[u]&&(i=a(i,this&&this[u]||u));return i}function a(r,i){return i?r?r+" "+i:r+i:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(W)),W.exports}var $r=Tr();const Mr=jr($r),Fr={"purpur-radio-card-group":"_purpur-radio-card-group_19msf_1","purpur-radio-card-group--vertical":"_purpur-radio-card-group--vertical_19msf_5","purpur-radio-card-group--horizontal":"_purpur-radio-card-group--horizontal_19msf_9","purpur-radio-card-group--radio-left":"_purpur-radio-card-group--radio-left_19msf_18","purpur-radio-card-group__item":"_purpur-radio-card-group__item_19msf_18","purpur-radio-card-group__item-bottom-container":"_purpur-radio-card-group__item-bottom-container_19msf_21","purpur-radio-card-group__item-top-container":"_purpur-radio-card-group__item-top-container_19msf_24","purpur-radio-card-group__container":"_purpur-radio-card-group__container_19msf_35","purpur-radio-card-group__item-container":"_purpur-radio-card-group__item-container_19msf_42","purpur-radio-card-group__item-radio":"_purpur-radio-card-group__item-radio_19msf_77","purpur-radio-card-group__item-content":"_purpur-radio-card-group__item-content_19msf_108","purpur-radio-card-group__item-title":"_purpur-radio-card-group__item-title_19msf_121","purpur-radio-card-group__item-indicator":"_purpur-radio-card-group__item-indicator_19msf_141","purpur-radio-card-group__item-image-container":"_purpur-radio-card-group__item-image-container_19msf_151","purpur-radio-card-group__item-image":"_purpur-radio-card-group__item-image_19msf_151","purpur-radio-card-group__item-image--loaded":"_purpur-radio-card-group__item-image--loaded_19msf_164","purpur-radio-card-group__item-image-placeholder":"_purpur-radio-card-group__item-image-placeholder_19msf_167","purpur-radio-card-group__item-image-placeholder--loaded":"_purpur-radio-card-group__item-image-placeholder--loaded_19msf_172","purpur-radio-card-group__item-children":"_purpur-radio-card-group__item-children_19msf_175"},C=Mr.bind(Fr);function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ie={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 ue;function Dr(){return ue||(ue=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=a(r,o.call(this,u)))}return r}function o(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 i="";for(var u in r)t.call(r,u)&&r[u]&&(i=a(i,this&&this[u]||u));return i}function a(r,i){return i?r?r+" "+i:r+i:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(ie)),ie.exports}var Gr=Dr();const Lr=kr(Gr),zr={"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"},Ur=Lr.bind(zr),Vr={PARAGRAPH100:"paragraph-100"},
|
|
13
|
+
*/var ue;function Dr(){return ue||(ue=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=a(r,o.call(this,u)))}return r}function o(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 i="";for(var u in r)t.call(r,u)&&r[u]&&(i=a(i,this&&this[u]||u));return i}function a(r,i){return i?r?r+" "+i:r+i:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ie)),ie.exports}var Gr=Dr();const Lr=kr(Gr),zr={"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"},Ur=Lr.bind(zr),Vr={PARAGRAPH100:"paragraph-100"},j="purpur-paragraph",Z=({children:e,className:t,disabled:n,enableHyphenation:o=!1,negative:a=!1,variant:r=Vr.PARAGRAPH100,...i})=>{const u=Ur(t,j,`${j}--${r}`,{[`${j}--hyphens`]:o,[`${j}--disabled`]:n,[`${j}--negative`]:a});return d.jsx("p",{...i,className:u,children:e})};Z.displayName="Paragraph";function Kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var se={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 ce;function Br(){return ce||(ce=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=a(r,o.call(this,u)))}return r}function o(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 i="";for(var u in r)t.call(r,u)&&r[u]&&(i=a(i,this&&this[u]||u));return i}function a(r,i){return i?r?r+" "+i:r+i:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(se)),se.exports}var Wr=Br();const qr=Kr(Wr),Hr="_loading_rzc29_1",Yr={"purpur-skeleton":"_purpur-skeleton_rzc29_1",loading:Hr,"purpur-skeleton--default":"_purpur-skeleton--default_rzc29_24","purpur-skeleton--negative":"_purpur-skeleton--negative_rzc29_30","purpur-skeleton--xs":"_purpur-skeleton--xs_rzc29_36","purpur-skeleton--sm":"_purpur-skeleton--sm_rzc29_39","purpur-skeleton--md":"_purpur-skeleton--md_rzc29_42","purpur-skeleton--lg":"_purpur-skeleton--lg_rzc29_45","purpur-skeleton--full":"_purpur-skeleton--full_rzc29_48"},Xr=qr.bind(Yr),
|
|
17
|
+
*/var ce;function Br(){return ce||(ce=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(r=a(r,o.call(this,u)))}return r}function o(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 i="";for(var u in r)t.call(r,u)&&r[u]&&(i=a(i,this&&this[u]||u));return i}function a(r,i){return i?r?r+" "+i:r+i:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(se)),se.exports}var Wr=Br();const qr=Kr(Wr),Hr="_loading_rzc29_1",Yr={"purpur-skeleton":"_purpur-skeleton_rzc29_1",loading:Hr,"purpur-skeleton--default":"_purpur-skeleton--default_rzc29_24","purpur-skeleton--negative":"_purpur-skeleton--negative_rzc29_30","purpur-skeleton--xs":"_purpur-skeleton--xs_rzc29_36","purpur-skeleton--sm":"_purpur-skeleton--sm_rzc29_39","purpur-skeleton--md":"_purpur-skeleton--md_rzc29_42","purpur-skeleton--lg":"_purpur-skeleton--lg_rzc29_45","purpur-skeleton--full":"_purpur-skeleton--full_rzc29_48"},Xr=qr.bind(Yr),q="purpur-skeleton",je=({className:e,radius:t="xs",negative:n=!1,...o})=>{const a=Xr(e,q,`${q}--${n?"negative":"default"}`,`${q}--${t}`);return d.jsx("div",{className:a,...o})};je.displayName="Skeleton";const D="purpur-radio-card-group__item-image",Zr=e=>!!(e!=null&&e.src)&&!!e.altText,Jr=({src:e,altText:t,noPlaceholder:n,loading:o="lazy",["data-testid"]:a})=>{const[r,i]=R.useState(!1),u=()=>i(!0),p=C(D,{[`${D}--loaded`]:r}),c=C(`${D}-placeholder`,{[`${D}-placeholder--loaded`]:r});return d.jsxs(d.Fragment,{children:[d.jsx("img",{"data-testid":a,className:p,src:e,alt:t,loading:o,onLoad:u}),!n&&d.jsx(je,{className:c})]})},I="purpur-radio-card-group__item",H=(e,{disabled:t})=>typeof e=="function"?e({disabled:t}):e,V=R.forwardRef(({title:e,...t},n)=>{const{["data-testid"]:o,body:a,children:r,disabled:i,id:u,image:p,value:c}=t,_={...t};return d.jsxs("div",{className:C(`${I}-container`),ref:n,children:[d.jsxs(Er,{className:C(I),"data-testid":o,disabled:i,id:u,value:c,children:[p&&d.jsx("span",{className:C(`${I}-image-container`),children:Zr(p)?d.jsx(Jr,{...p,"data-testid":o&&`${o}-image`}):H(p,_)}),d.jsxs("span",{className:C(`${I}-content`),children:[d.jsxs("span",{className:C(`${I}-top-container`),children:[typeof e=="string"?d.jsx(Z,{className:C(`${I}-title`),"data-testid":o&&`${o}-title`,variant:"paragraph-100",disabled:i,children:e}):H(e,_),d.jsx("span",{className:C(`${I}-radio`),children:d.jsx(Pr,{className:C(`${I}-indicator`)})})]}),a&&d.jsx("span",{className:C(`${I}-bottom-container`),children:typeof a=="string"?d.jsx(Z,{"data-testid":o&&`${o}-body`,variant:"paragraph-100",disabled:i,children:a}):H(a,_)})]})]}),r]})});V.displayName="RadioCardItem";const Qr=e=>R.isValidElement(e)&&(e==null?void 0:e.type)===V,et=["horizontal","vertical"],rt=["right","left"],G="purpur-radio-card-group",Te=R.forwardRef(({"data-testid":e,"aria-labelledby":t,children:n,className:o,items:a,heading:r,headingTag:i="h2",loop:u=!0,orientation:p="vertical",radioPosition:c="right",..._},f)=>{const g=R.Children.toArray(n).filter(Qr);return d.jsxs("div",{className:C(o,`${G}__container`),ref:f,children:[r&&d.jsxs(pe,{"data-testid":e?`${e}-heading`:void 0,id:`${_.id}-heading`,tag:i,variant:"subsection-100",children:[_.required&&d.jsx("span",{"aria-hidden":!0,children:"* "}),r]}),(!!(a!=null&&a.length)||g.length)&&d.jsxs(Or,{..._,"aria-labelledby":t||(r?`${_.id}-heading`:void 0),className:C(G,`${G}--${p}`,`${G}--radio-${c}`),"data-testid":e,loop:u,children:[a==null?void 0:a.map(l=>d.jsx(V,{...l,disabled:l.disabled||_.disabled,"data-testid":e?`${e}-item`:void 0},l.id)),R.Children.map(g,l=>R.cloneElement(l,{disabled:l.props.disabled||_.disabled}))]})]})});Te.displayName="RadioCardGroup";exports.RADIO_CARD_GROUP_ORIENTATION=et;exports.RADIO_POSITION=rt;exports.RadioCardGroup=Te;exports.RadioCardItem=V;
|
|
18
18
|
//# sourceMappingURL=radio-card-group.cjs.js.map
|