@purpurds/card 5.1.2 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/LICENSE.txt +36 -1
  2. package/dist/card-badge.d.ts +19 -0
  3. package/dist/card-badge.d.ts.map +1 -0
  4. package/dist/card-content-container.d.ts +19 -0
  5. package/dist/card-content-container.d.ts.map +1 -0
  6. package/dist/card-content.d.ts +15 -0
  7. package/dist/card-content.d.ts.map +1 -0
  8. package/dist/card-feature-list.d.ts +14 -0
  9. package/dist/card-feature-list.d.ts.map +1 -0
  10. package/dist/card-link-arrow.d.ts +22 -0
  11. package/dist/card-link-arrow.d.ts.map +1 -0
  12. package/dist/card-overline.d.ts +14 -0
  13. package/dist/card-overline.d.ts.map +1 -0
  14. package/dist/card-root.d.ts +58 -0
  15. package/dist/card-root.d.ts.map +1 -0
  16. package/dist/card-trigger-item.d.ts +11 -0
  17. package/dist/card-trigger-item.d.ts.map +1 -0
  18. package/dist/card.cjs.js +22 -2
  19. package/dist/card.cjs.js.map +1 -1
  20. package/dist/card.d.ts +21 -10
  21. package/dist/card.d.ts.map +1 -1
  22. package/dist/card.es.js +829 -38
  23. package/dist/card.es.js.map +1 -1
  24. package/dist/styles.css +1 -1
  25. package/package.json +12 -3
  26. package/readme.mdx +36 -2
  27. package/src/card-badge.module.scss +5 -0
  28. package/src/card-badge.test.tsx +29 -0
  29. package/src/card-badge.tsx +41 -0
  30. package/src/card-content-container.module.scss +10 -0
  31. package/src/card-content-container.test.tsx +49 -0
  32. package/src/card-content-container.tsx +43 -0
  33. package/src/card-content.module.scss +5 -0
  34. package/src/card-content.tsx +30 -0
  35. package/src/card-feature-list.module.scss +11 -0
  36. package/src/card-feature-list.test.tsx +29 -0
  37. package/src/card-feature-list.tsx +41 -0
  38. package/src/card-link-arrow.module.scss +16 -0
  39. package/src/card-link-arrow.test.tsx +49 -0
  40. package/src/card-link-arrow.tsx +61 -0
  41. package/src/card-overline.module.scss +6 -0
  42. package/src/card-overline.test.tsx +21 -0
  43. package/src/card-overline.tsx +31 -0
  44. package/src/card-root.module.scss +20 -0
  45. package/src/card-root.test.tsx +81 -0
  46. package/src/card-root.tsx +112 -0
  47. package/src/card-trigger-item.module.scss +19 -0
  48. package/src/card-trigger-item.test.tsx +97 -0
  49. package/src/card-trigger-item.tsx +72 -0
  50. package/src/card.module.scss +59 -2
  51. package/src/card.stories.tsx +64 -22
  52. package/src/card.tsx +49 -19
package/dist/LICENSE.txt CHANGED
@@ -28,4 +28,39 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
28
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
29
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
30
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
- SOFTWARE.
31
+ SOFTWARE.
32
+
33
+ ---
34
+
35
+ Name: @purpurds/badge
36
+ Version: 5.1.2
37
+ License: AGPL-3.0-only
38
+ Private: false
39
+
40
+ ---
41
+
42
+ Name: @purpurds/icon
43
+ Version: 5.1.2
44
+ License: AGPL-3.0-only
45
+ Private: false
46
+
47
+ ---
48
+
49
+ Name: @purpurds/paragraph
50
+ Version: 5.1.2
51
+ License: AGPL-3.0-only
52
+ Private: false
53
+
54
+ ---
55
+
56
+ Name: @purpurds/spinner
57
+ Version: 5.1.2
58
+ License: AGPL-3.0-only
59
+ Private: false
60
+
61
+ ---
62
+
63
+ Name: @purpurds/visually-hidden
64
+ Version: 5.1.2
65
+ License: AGPL-3.0-only
66
+ Private: false
@@ -0,0 +1,19 @@
1
+ import { BadgeVariant } from '@purpurds/badge';
2
+ import { default as React } from 'react';
3
+
4
+ export type CardBadgeProps = {
5
+ /**
6
+ * Use this to set a testid on the badge
7
+ */
8
+ ["data-testid"]?: string;
9
+ /**
10
+ * The variant (color) of the badge in the top right corner of the card. This is coupled with the text prop. Both needs to be set for the badge to be displayed.
11
+ */
12
+ variant?: BadgeVariant;
13
+ /**
14
+ * The text that will be in the badge in the top right corner of the card. This is coupled with the variant prop. Both needs to be set for the badge to be displayed.
15
+ */
16
+ text?: string;
17
+ };
18
+ export declare const CardBadge: ({ ["data-testid"]: dataTestId, variant, text, }: CardBadgeProps) => React.JSX.Element | null;
19
+ //# sourceMappingURL=card-badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-badge.d.ts","sourceRoot":"","sources":["../src/card-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOtD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAIF,eAAO,MAAM,SAAS,oDAInB,cAAc,6BAWhB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+
3
+ type CardContentContainerProps = {
4
+ /**
5
+ * Use this to set a testid on the content container
6
+ */
7
+ ["data-testid"]?: string;
8
+ /**
9
+ * The child elements of the content container (React.ReactNode)
10
+ */
11
+ children: React.ReactNode;
12
+ /**
13
+ * Flag to remove the top padding
14
+ */
15
+ isFooter?: boolean;
16
+ };
17
+ export declare const CardContentContainer: ({ ["data-testid"]: dataTestId, children, isFooter, }: CardContentContainerProps) => React.JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=card-content-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-content-container.d.ts","sourceRoot":"","sources":["../src/card-content-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,yBAAyB,GAAG;IAC/B;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,oBAAoB,yDAI9B,yBAAyB,sBAc3B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+
3
+ type CardContentProps = {
4
+ /**
5
+ * Use this to set a testid on the content
6
+ */
7
+ ["data-testid"]?: string;
8
+ /**
9
+ * The child elements of the content (React.ReactNode)
10
+ */
11
+ children: React.ReactNode;
12
+ };
13
+ export declare const CardContent: ({ ["data-testid"]: dataTestId, children, }: CardContentProps) => React.JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=card-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-content.d.ts","sourceRoot":"","sources":["../src/card-content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,gBAAgB,GAAG;IACtB;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,WAAW,+CAGrB,gBAAgB,sBAMlB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type CardFeatureListProps = {
4
+ /**
5
+ * Use this to set a testid on the feature list
6
+ */
7
+ ["data-testid"]?: string;
8
+ /**
9
+ * This is the feature list where each entry is preceded by a checkmark. If the feature list provided is falsy or empty nothing will be rendered.
10
+ */
11
+ listItems?: string[];
12
+ };
13
+ export declare const CardFeatureList: ({ ["data-testid"]: dataTestId, listItems, }: CardFeatureListProps) => React.JSX.Element | null;
14
+ //# sourceMappingURL=card-feature-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-feature-list.d.ts","sourceRoot":"","sources":["../src/card-feature-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAIF,eAAO,MAAM,eAAe,gDAGzB,oBAAoB,6BAetB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type CardLinkArrowProps = {
4
+ /**
5
+ * Use this to set a testid on the link arrow
6
+ */
7
+ ["data-testid"]?: string;
8
+ /**
9
+ * Classname added to the root element
10
+ */
11
+ className?: string;
12
+ /**
13
+ * If the card link arrow should have disabled styling - defaults to false
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * If the link arrow should display a spinner - defaults to false
18
+ */
19
+ loading?: boolean;
20
+ };
21
+ export declare const CardLinkArrow: ({ ["data-testid"]: dataTestId, className, disabled, loading, ...props }: CardLinkArrowProps) => React.JSX.Element;
22
+ //# sourceMappingURL=card-link-arrow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-link-arrow.d.ts","sourceRoot":"","sources":["../src/card-link-arrow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAIF,eAAO,MAAM,aAAa,4EAMvB,kBAAkB,sBAuBpB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type CardOverlineProps = {
4
+ /**
5
+ * Use this to set a testid on the overline
6
+ */
7
+ ["data-testid"]?: string;
8
+ /**
9
+ * The text displayed in the overline
10
+ */
11
+ overline?: string;
12
+ };
13
+ export declare const CardOverline: ({ ["data-testid"]: dataTestId, overline, }: CardOverlineProps) => React.JSX.Element | null;
14
+ //# sourceMappingURL=card-overline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-overline.d.ts","sourceRoot":"","sources":["../src/card-overline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAIF,eAAO,MAAM,YAAY,+CAGtB,iBAAiB,6BAMnB,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { DetailedHTMLProps, HTMLAttributes, ReactNode, default as React } from 'react';
2
+
3
+ type CardRootDefaultProps = {
4
+ /**
5
+ * Use this to set a testid on the card
6
+ */
7
+ ["data-testid"]?: string;
8
+ children: ReactNode;
9
+ className?: string;
10
+ fullHeight?: boolean;
11
+ variant?: "primary" | "secondary";
12
+ };
13
+ export type CardRootNonInteractiveProps = {
14
+ disabled?: never;
15
+ href?: never;
16
+ onClick?: never;
17
+ screenReaderText?: never;
18
+ };
19
+ export type CardRootLinkProps = {
20
+ /**
21
+ * Use this to disable the card. Can be used both with a link card and a button card. In the case of the button the clickHandler will not be called and if a anchor tag the href will be removed.
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * Makes the card become a link to the provided href.
26
+ */
27
+ href: string;
28
+ /**
29
+ * If the href prop is not provided the clickable element will be a button and use this clickHandler when the user presses the card.
30
+ */
31
+ onClick?: () => unknown;
32
+ /**
33
+ * This is the text that will be read for screen readers when the link/button in the card gets focus. Try to create a text with all the important information about the card here. This text will not be visible in the UI.
34
+ */
35
+ screenReaderText: string;
36
+ };
37
+ export type CardRootButtonProps = {
38
+ /**
39
+ * Use this to disable the card. Can be used both with a link card and a button card. In the case of the button the clickHandler will not be called and if a anchor tag the href will be removed.
40
+ */
41
+ disabled?: boolean;
42
+ /**
43
+ * Makes the card become a link to the provided href.
44
+ */
45
+ href?: never;
46
+ /**
47
+ * If the href prop is not provided the clickable element will be a button and use this clickHandler when the user presses the card.
48
+ */
49
+ onClick: () => unknown;
50
+ /**
51
+ * This is the text that will be read for screen readers when the link/button in the card gets focus. Try to create a text with all the important information about the card here. This text will not be visible in the UI.
52
+ */
53
+ screenReaderText: string;
54
+ };
55
+ export type CardRootProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> & CardRootDefaultProps;
56
+ export declare const CardRoot: React.ForwardRefExoticComponent<(Omit<React.ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & CardRootDefaultProps & CardRootNonInteractiveProps, "ref"> | Omit<React.ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & CardRootDefaultProps & CardRootLinkProps, "ref"> | Omit<React.ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & CardRootDefaultProps & CardRootButtonProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
57
+ export {};
58
+ //# sourceMappingURL=card-root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-root.d.ts","sourceRoot":"","sources":["../src/card-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAgB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxF,OAAO,KAAqB,MAAM,OAAO,CAAC;AAQ1C,KAAK,oBAAoB,GAAG;IAC1B;;OAEG;IACH,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,gBAAgB,CAAC,EAAE,KAAK,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,GAC3F,oBAAoB,CAAC;AAIvB,eAAO,MAAM,QAAQ,udAuCpB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type CardTriggerItemProps = {
4
+ ["data-testid"]?: string;
5
+ disabled?: boolean;
6
+ href?: string;
7
+ onClick?: () => unknown;
8
+ screenReaderText: string;
9
+ };
10
+ export declare const CardTriggerItem: ({ ["data-testid"]: dataTestId, disabled, href, onClick, screenReaderText, }: CardTriggerItemProps) => React.JSX.Element;
11
+ //# sourceMappingURL=card-trigger-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card-trigger-item.d.ts","sourceRoot":"","sources":["../src/card-trigger-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAS1C,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAIF,eAAO,MAAM,eAAe,gFAMzB,oBAAoB,sBA8CtB,CAAC"}
package/dist/card.cjs.js CHANGED
@@ -1,6 +1,26 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime");function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d={exports:{}};/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("react");require("react-dom");function J(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var o={}.hasOwnProperty;function n(){for(var t="",r=0;r<arguments.length;r++){var s=arguments[r];s&&(t=i(t,a.call(this,s)))}return t}function a(t){if(typeof t=="string"||typeof t=="number")return this&&this[t]||t;if(typeof t!="object")return"";if(Array.isArray(t))return n.apply(this,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var s in t)o.call(t,s)&&t[s]&&(r=i(r,this&&this[s]||s));return r}function i(t,r){return r?t?t+" "+r:t+r:t}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(d);var _=d.exports;const h=l(_),m={"purpur-card":"_purpur-card_172jf_1","purpur-card__container":"_purpur-card__container_172jf_10"},u=h.bind(m),p="purpur-card",f=({["data-testid"]:e,children:o,className:n,containerClassName:a,...i})=>c.jsx("div",{className:u(`${p}__container`,a),children:c.jsx("div",{className:u([p,n]),"data-testid":e,...i,children:o})});f.displayName="Card";exports.Card=f;
5
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(r=i(r,p.call(this,u)))}return r}function p(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 a="";for(var u in r)n.call(r,u)&&r[u]&&(a=i(a,this&&this[u]||u));return a}function i(r,a){return a?r?r+" "+a:r+a:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Z);var K=Z.exports;const c=J(K),Q={"purpur-card":"_purpur-card_5j8zb_1"};function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P={exports:{}};/*!
6
+ Copyright (c) 2018 Jed Watson.
7
+ Licensed under the MIT License (MIT), see
8
+ http://jedwatson.github.io/classnames
9
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(r=i(r,p.call(this,u)))}return r}function p(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 a="";for(var u in r)n.call(r,u)&&r[u]&&(a=i(a,this&&this[u]||u));return a}function i(r,a){return a?r?r+" "+a:r+a:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(P);var rr=P.exports;const er=Y(rr),tr={"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"},ar={name:"alert",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m13.038 7.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.586 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.664 0 1.25.601 1.25 1.234Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["alert"],category:"status"},nr={name:"check-circle",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16.487 9.514a.872.872 0 1 0-1.42-1.014l-4.248 5.948-2.18-2.18a.872.872 0 0 0-1.233 1.234l2.908 2.908a.872.872 0 0 0 1.326-.11l4.847-6.786Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["check-circle"],category:"status"},ur={name:"error",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.354 3.05c.732-1.267 2.56-1.267 3.291 0l8.66 15c.732 1.267-.182 2.85-1.645 2.85H3.34c-1.463 0-2.377-1.583-1.646-2.85l8.66-15Zm1.595.862a.092.092 0 0 0-.036.038l-8.66 15a.092.092 0 0 0-.015.05c0 .014.005.032.015.05a.11.11 0 0 0 .036.038.09.09 0 0 0 .05.012H20.66a.088.088 0 0 0 .05-.012.106.106 0 0 0 .037-.038.105.105 0 0 0 .015-.05.092.092 0 0 0-.015-.05l-8.66-15a.092.092 0 0 0-.036-.038A.106.106 0 0 0 12 3.9a.105.105 0 0 0-.05.012Z" clip-rule="evenodd"/><path d="m12.523 14.922.412-6.25a.936.936 0 1 0-1.868 0l.421 6.25h1.035ZM12 17.52c.44 0 .826-.387.826-.815 0-.418-.387-.816-.826-.816-.428 0-.825.398-.825.816 0 .428.397.815.825.815Z"/><path fill-rule="evenodd" d="M12.691 15.096h-1.37l-.431-6.53a1 1 0 0 1 .997-1.066h.227a1 1 0 0 1 .998 1.064l-.42 6.532Zm.244-6.425a.936.936 0 1 0-1.868.002l.421 6.249h1.035l.412-6.25ZM13 16.706c0 .526-.466.99-1 .99-.522 0-1-.463-1-.99 0-.264.125-.51.304-.689.18-.178.429-.301.696-.301.536 0 1 .475 1 .99Zm-.174 0c0 .428-.387.815-.826.815-.428 0-.825-.387-.825-.815 0-.418.397-.816.825-.816.44 0 .826.398.826.816Z" clip-rule="evenodd"/></svg>',keywords:["error"],category:"status"},pr={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},ir={name:"offering",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M7.118 4.6H7a1.9 1.9 0 0 0-1.9 1.9V8a1.9 1.9 0 0 0 1.5 1.858v.642a.9.9 0 1 0 1.8 0v-.6h3.2v.6a.9.9 0 0 0 1.8 0v-.6h3.7V11a.9.9 0 0 0 1.8 0V9.858A1.9 1.9 0 0 0 20.4 8V6.5a1.9 1.9 0 0 0-1.9-1.9h-.618c-.063-.708-.3-1.394-.756-1.943-.56-.674-1.384-1.057-2.376-1.057-.92 0-1.696.33-2.25.915-.554-.585-1.33-.915-2.25-.915-.992 0-1.816.383-2.376 1.057-.457.549-.693 1.235-.756 1.943Zm1.812 0h2.64c-.053-.34-.174-.607-.328-.792-.192-.232-.493-.408-.992-.408s-.8.176-.992.408c-.154.185-.275.452-.328.792Zm4.5 0h2.64c-.053-.34-.174-.607-.328-.792-.192-.232-.493-.408-.992-.408s-.8.176-.992.408c-.154.185-.275.452-.328.792Zm-.03 3.5h5.1a.1.1 0 0 0 .1-.1V6.5a.1.1 0 0 0-.1-.1h-5.1v1.7Zm-1.8-1.7H7a.1.1 0 0 0-.1.1V8a.1.1 0 0 0 .1.1h4.6V6.4Zm8.335 5.147c.743-.107 1.52.135 2.201.817.474.473.695 1.011.708 1.548.012.508-.163.927-.318 1.2-.185.326-.47.607-.634.77l-.049.047-4.414 4.414a1.9 1.9 0 0 1-1.343.557H7.914a.1.1 0 0 0-.07.03l-.5.5a1.9 1.9 0 0 1-2.687 0L2.57 19.342a1.9 1.9 0 0 1 0-2.686l4-4a1.9 1.9 0 0 1 1.343-.557H14.5v.9-.9h.041l.065.004a2.73 2.73 0 0 1 .79.185 2.665 2.665 0 0 1 1.46 1.417c.188-.162.375-.324.551-.479.46-.401.815-.722.957-.863.338-.34.882-.719 1.571-.817ZM15.088 15.1a1.06 1.06 0 0 0 .08-.145c.1-.207.113-.38.027-.553a.867.867 0 0 0-.668-.497.628.628 0 0 0-.042-.005h-6.57a.1.1 0 0 0-.071.03l-4 4a.1.1 0 0 0 0 .14l2.085 2.087a.1.1 0 0 0 .142 0l.5-.5a1.9 1.9 0 0 1 1.343-.557h8.172a.1.1 0 0 0 .07-.03l4.415-4.414c.225-.225.334-.335.39-.434a.539.539 0 0 0 .083-.266.283.283 0 0 0-.026-.11.712.712 0 0 0-.154-.21c-.319-.318-.542-.326-.674-.307-.186.026-.392.146-.554.307-.191.192-.595.553-1.043.946-.904.79-2.143 1.838-2.561 2.144l-.238.174H10.5a.9.9 0 0 1 0-1.8h4.588Z" clip-rule="evenodd"/></svg>',keywords:["offering"],category:"other"},sr={name:"question",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13.672 12.056c-.635.547-1.242 1.07-1.164 2.062h-1.385c-.309-1.553.504-2.214 1.23-2.805.514-.419.986-.802.986-1.442 0-.593-.489-1.068-1.267-1.068-.764 0-1.345.422-1.872 1.187L9 9.067C9.712 7.92 10.807 7.3 12.086 7.3 13.906 7.3 15 8.42 15 9.78c0 1.133-.678 1.717-1.328 2.277Zm-.822 3.763c0 .54-.487 1.028-1.041 1.028-.554 0-1.042-.488-1.042-1.028 0-.528.488-1.029 1.042-1.029s1.042.501 1.042 1.029Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["question"],category:"status"},or=er.bind(tr),j="purpur-icon",lr="md",cr=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),dr=({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"}],p=n?`<title>${n}</title>`:"";return`<svg ${cr(t)}>${p}${e}</svg>`},_r=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),gr=({["data-testid"]:e,svg:n,allyTitle:t,className:p="",size:i=lr,...r})=>{const a=dr({content:_r(n.svg),title:t}),u=or(p,j,`${j}--${i}`);return s.jsx("span",{"aria-label":t,className:u,"data-testid":e,dangerouslySetInnerHTML:{__html:a},...r})};function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q={exports:{}};/*!
10
+ Copyright (c) 2018 Jed Watson.
11
+ Licensed under the MIT License (MIT), see
12
+ http://jedwatson.github.io/classnames
13
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(r=i(r,p(u)))}return r}function p(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var u in r)n.call(r,u)&&r[u]&&(a=i(a,u));return a}function i(r,a){return a?r?r+" "+a:r+a:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(q);var mr=q.exports;const fr=hr(mr),N={"purpur-badge":"_purpur-badge_stlab_1","purpur-badge--attention":"_purpur-badge--attention_stlab_13","purpur-badge--special":"_purpur-badge--special_stlab_17","purpur-badge--neutral":"_purpur-badge--neutral_stlab_21","purpur-badge--information":"_purpur-badge--information_stlab_25","purpur-badge--success":"_purpur-badge--success_stlab_29","purpur-badge--warning":"_purpur-badge--warning_stlab_33","purpur-badge--error":"_purpur-badge--error_stlab_37"},C="purpur-badge",_={ATTENTION:"attention",SPECIAL:"special",NEUTRAL:"neutral",INFORMATION:"information",SUCCESS:"success",WARNING:"warning",ERROR:"error"},vr=e=>{switch(e){case _.ATTENTION:case _.SPECIAL:return ir;case _.INFORMATION:return pr;case _.SUCCESS:return nr;case _.WARNING:return ar;case _.ERROR:return ur;case _.NEUTRAL:return sr;default:return}},wr=({children:e,showIcon:n=!0,variant:t,["data-testid"]:p,allyLabel:i,className:r="",...a})=>{const u=vr(t),l=fr([r,N[C],N[`${C}--${t}`]]);return s.jsxs("span",{"aria-label":i,className:l,"data-testid":p,...a,children:[n&&u&&s.jsx(gr,{"data-testid":`${p}-icon`,allyTitle:i,size:"xs",svg:u}),e]})},yr={"purpur-card-badge":"_purpur-card-badge_r7moe_1"},xr=c.bind(yr),br="purpur-card-badge",$r=({["data-testid"]:e="purpur-card-badge",variant:n,text:t})=>n&&t?s.jsx(wr,{className:xr(br),variant:n,showIcon:!1,"data-testid":e,children:t}):null,jr={"purpur-card-content":"_purpur-card-content_2uc00_1"},Nr=c.bind(jr),Cr="purpur-card-content",Sr=({["data-testid"]:e="purpur-card-content",children:n})=>s.jsx("div",{className:Nr(Cr),"data-testid":e,children:n}),Ar={"purpur-card-content-container":"_purpur-card-content-container_dx1e4_1","purpur-card-content-container--footer":"_purpur-card-content-container--footer_dx1e4_7"},kr=c.bind(Ar),S="purpur-card-content-container",Or=({["data-testid"]:e="purpur-card-content-container",children:n,isFooter:t=!1})=>s.jsx("div",{className:kr([S,{[`${S}--footer`]:t}]),"data-testid":e,children:n});function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I={exports:{}};/*!
14
+ Copyright (c) 2018 Jed Watson.
15
+ Licensed under the MIT License (MIT), see
16
+ http://jedwatson.github.io/classnames
17
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(r=i(r,p.call(this,u)))}return r}function p(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 a="";for(var u in r)n.call(r,u)&&r[u]&&(a=i(a,this&&this[u]||u));return a}function i(r,a){return a?r?r+" "+a:r+a:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(I);var Mr=I.exports;const Rr=Er(Mr),zr={"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"},Zr={name:"arrow-right",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.9 12a.9.9 0 0 1-.264.636l-5.5 5.5a.9.9 0 0 1-1.272-1.272l3.963-3.964H4a.9.9 0 0 1 0-1.8h13.827l-3.963-3.964a.9.9 0 1 1 1.272-1.272l5.5 5.5A.9.9 0 0 1 20.9 12Z" clip-rule="evenodd"/></svg>',keywords:["arrow-right"],category:"utility"},Pr={name:"checkmark",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',keywords:["checkmark"],category:"utility"},L=e=>s.jsx(B,{...e,svg:Zr});L.displayName="IconArrowRight";const H=e=>s.jsx(B,{...e,svg:Pr});H.displayName="IconCheckmark";const qr=Rr.bind(zr),A="purpur-icon",Ir="md",Lr=e=>e.filter(n=>Object.keys(n).length>=1).map(n=>`${n.name}="${n.value}"`).join(" "),Hr=({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"}],p=n?`<title>${n}</title>`:"";return`<svg ${Lr(t)}>${p}${e}</svg>`},Br=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),B=({["data-testid"]:e,svg:n,allyTitle:t,className:p="",size:i=Ir,...r})=>{const a=Hr({content:Br(n.svg),title:t}),u=qr(p,A,`${A}--${i}`);return s.jsx("span",{"aria-label":t,className:u,"data-testid":e,dangerouslySetInnerHTML:{__html:a},...r})};function Vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V={exports:{}};/*!
18
+ Copyright (c) 2018 Jed Watson.
19
+ Licensed under the MIT License (MIT), see
20
+ http://jedwatson.github.io/classnames
21
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(r=i(r,p(u)))}return r}function p(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var u in r)n.call(r,u)&&r[u]&&(a=i(a,u));return a}function i(r,a){return a?r?r+" "+a:r+a:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(V);var Tr=V.exports;const Dr=Vr(Tr),f={"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"},Gr={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},v="purpur-paragraph",T=({["data-testid"]:e,children:n,className:t="",disabled:p,enableHyphenation:i=!1,negative:r=!1,variant:a=Gr.PARAGRAPH100,...u})=>{const l=Dr([t,f[v],f[`${v}--${a}`],{[f[`${v}--hyphens`]]:i,[f[`${v}--disabled`]]:p,[f[`${v}--negative`]]:r}]);return s.jsx("p",{...u,className:l,"data-testid":e,children:n})},Fr={"purpur-card-feature-list":"_purpur-card-feature-list_ej4qm_1","purpur-card-feature-list__list-item":"_purpur-card-feature-list__list-item_ej4qm_6"},k=c.bind(Fr),O="purpur-card-feature-list",Ur=({["data-testid"]:e="purpur-card-feature-list",listItems:n})=>n&&n.length>0?s.jsx("ul",{className:k(O),"data-testid":e,children:n.map(t=>s.jsxs("li",{className:k(`${O}__list-item`),"data-testid":`${e}-item`,children:[s.jsx(H,{size:"xs"}),s.jsx(T,{children:t})]},t))}):null;function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={exports:{}};/*!
22
+ Copyright (c) 2018 Jed Watson.
23
+ Licensed under the MIT License (MIT), see
24
+ http://jedwatson.github.io/classnames
25
+ */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var r="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(r=i(r,p(u)))}return r}function p(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var u in r)n.call(r,u)&&r[u]&&(a=i(a,u));return a}function i(r,a){return a?r?r+" "+a:r+a:r}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(D);var Xr=D.exports;const E=Wr(Xr),Jr="_rotate_1xozj_1",Kr="_dash_1xozj_1",w={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:Jr,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:Kr,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},y="purpur-spinner",Qr={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},Yr=({["data-testid"]:e,disabled:n=!1,negative:t=!1,size:p=Qr.SM,...i})=>s.jsx("div",{className:E([w[y],w[`${y}--${p}`]]),"data-testid":e,...i,children:s.jsx("svg",{viewBox:"0 0 50 50",children:s.jsx("circle",{className:E(w[`${y}__circle`],{[w[`${y}__circle--disabled`]]:n,[w[`${y}__circle--negative`]]:t}),cx:"25",cy:"25",r:"20"})})}),re={"purpur-card-link-arrow":"_purpur-card-link-arrow_1r4zu_1","purpur-card-link-arrow--sm":"_purpur-card-link-arrow--sm_1r4zu_33","purpur-card-link-arrow--icon-only":"_purpur-card-link-arrow--icon-only_1r4zu_36","purpur-card-link-arrow--md":"_purpur-card-link-arrow--md_1r4zu_39","purpur-card-link-arrow--lg":"_purpur-card-link-arrow--lg_1r4zu_45","purpur-card-link-arrow--full-width":"_purpur-card-link-arrow--full-width_1r4zu_51","purpur-card-link-arrow--primary":"_purpur-card-link-arrow--primary_1r4zu_54","purpur-card-link-arrow--disabled":"_purpur-card-link-arrow--disabled_1r4zu_58","purpur-card-link-arrow--primary-negative":"_purpur-card-link-arrow--primary-negative_1r4zu_64","purpur-card-link-arrow--secondary":"_purpur-card-link-arrow--secondary_1r4zu_76","purpur-card-link-arrow--secondary-negative":"_purpur-card-link-arrow--secondary-negative_1r4zu_87","purpur-card-link-arrow--expressive":"_purpur-card-link-arrow--expressive_1r4zu_98","purpur-card-link-arrow--expressive-negative":"_purpur-card-link-arrow--expressive-negative_1r4zu_108"},ee=c.bind(re),h="purpur-card-link-arrow",te=({["data-testid"]:e="purpur-card-link-arrow",className:n,disabled:t=!1,loading:p=!1,...i})=>s.jsx("div",{className:`${ee([h,n,`${h}--md`,`${h}--icon-only`,`${h}--secondary`,{[`${h}--disabled`]:t}])} ${h}`,"data-testid":e,...i,children:p?s.jsx(Yr,{"data-testid":`${e}-spinner`,size:"xs",disabled:t}):s.jsx(L,{"data-testid":`${e}-arrow`,size:"md"})}),ae={"purpur-card-overline":"_purpur-card-overline_142el_1"},ne=c.bind(ae),ue="purpur-card-overline",pe=({["data-testid"]:e="purpur-card-overline",overline:n})=>n?s.jsx(T,{className:ne(ue),"data-testid":e,children:n}):null,ie={"purpur-card-root":"_purpur-card-root_bqk1d_1","purpur-card-root--primary":"_purpur-card-root--primary_bqk1d_8","purpur-card-root--secondary":"_purpur-card-root--secondary_bqk1d_11","purpur-card-root--full-height":"_purpur-card-root--full-height_bqk1d_14"},se={"purpur-card-trigger-item":"_purpur-card-trigger-item_1sp43_1","purpur-card-trigger-item--button":"_purpur-card-trigger-item--button_1sp43_6","purpur-card-trigger-item--disabled":"_purpur-card-trigger-item--disabled_1sp43_11"};function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var p in t)Object.prototype.hasOwnProperty.call(t,p)&&(e[p]=t[p])}return e},m.apply(this,arguments)}function oe(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function le(...e){return n=>e.forEach(t=>oe(t,n))}const G=o.forwardRef((e,n)=>{const{children:t,...p}=e,i=o.Children.toArray(t),r=i.find(de);if(r){const a=r.props.children,u=i.map(l=>l===r?o.Children.count(a)>1?o.Children.only(null):o.isValidElement(a)?a.props.children:null:l);return o.createElement($,m({},p,{ref:n}),o.isValidElement(a)?o.cloneElement(a,void 0,u):null)}return o.createElement($,m({},p,{ref:n}),t)});G.displayName="Slot";const $=o.forwardRef((e,n)=>{const{children:t,...p}=e;return o.isValidElement(t)?o.cloneElement(t,{..._e(p,t.props),ref:n?le(n,t.ref):t.ref}):o.Children.count(t)>1?o.Children.only(null):null});$.displayName="SlotClone";const ce=({children:e})=>o.createElement(o.Fragment,null,e);function de(e){return o.isValidElement(e)&&e.type===ce}function _e(e,n){const t={...n};for(const p in n){const i=e[p],r=n[p];/^on[A-Z]/.test(p)?i&&r?t[p]=(...a)=>{r(...a),i(...a)}:i&&(t[p]=i):p==="style"?t[p]={...i,...r}:p==="className"&&(t[p]=[i,r].filter(Boolean).join(" "))}return{...e,...t}}const ge=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],he=ge.reduce((e,n)=>{const t=o.forwardRef((p,i)=>{const{asChild:r,...a}=p,u=r?G:n;return o.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),o.createElement(u,m({},a,{ref:i}))});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{}),me=o.forwardRef((e,n)=>o.createElement(he.span,m({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),fe=me,M=({asChild:e,children:n,className:t="",["data-testid"]:p})=>s.jsx(fe,{asChild:e,"data-testid":p,className:t,children:n}),R=c.bind(se),g="purpur-card-trigger-item",ve=({["data-testid"]:e="purpur-card-trigger-item",disabled:n=!1,href:t,onClick:p,screenReaderText:i})=>{const r=u=>{n?u.preventDefault():p&&p()},a=`${g} ${n?`${g}--disabled`:""}`;return t?s.jsx("a",{"aria-disabled":n,className:`${R([g,{[`${g}--disabled`]:n}])} ${a}`,"data-testid":e,href:n?void 0:t,tabIndex:n?0:void 0,children:s.jsx(M,{children:i})}):s.jsx("button",{"aria-disabled":n,className:`${R([g,`${g}--button`,{[`${g}--disabled`]:n}])} ${a}`,"data-testid":e,type:"button",onClick:r,children:s.jsx(M,{children:i})})},we=c.bind(ie),x="purpur-card-root",F=o.forwardRef(({["data-testid"]:e="purpur-card-root",children:n,className:t,disabled:p,fullHeight:i,href:r,onClick:a,screenReaderText:u,variant:l,...U},W)=>{const X=we([x,t,{[`${x}--${l}`]:l,[`${x}--full-height`]:i}]);return s.jsxs("div",{className:X,"data-testid":e,ref:W,...U,children:[n,(a||r)&&u&&s.jsx(ve,{disabled:p,href:r,onClick:a,screenReaderText:u})]})});F.displayName="CardRoot";const z=c.bind(Q),b="purpur-card",d=({children:e,className:n,...t})=>{const p=z([b,n,{[`${b}--is-interactive`]:t.onClick||t.href,[`${b}--disabled`]:t.disabled}]);return s.jsx(F,{className:z(p),...t,children:e})};d.Badge=$r;d.LinkArrow=te;d.Content=Sr;d.ContentContainer=Or;d.FeatureList=Ur;d.Overline=pe;d.displayName="Card";exports.Card=d;
6
26
  //# sourceMappingURL=card.cjs.js.map