@primer/react 38.45.0-rc.faa269337 → 38.46.0-rc.1183278ce

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 (50) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/ActionList/LinkItem.js +97 -30
  3. package/dist/Breadcrumbs/{Breadcrumbs-16d81430.css → Breadcrumbs-6c9aadcf.css} +2 -2
  4. package/dist/Breadcrumbs/Breadcrumbs-6c9aadcf.css.map +1 -0
  5. package/dist/Breadcrumbs/Breadcrumbs.js +403 -391
  6. package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
  7. package/dist/Card/Card-0e84ee3c.css +2 -0
  8. package/dist/Card/Card-0e84ee3c.css.map +1 -0
  9. package/dist/Card/Card.d.ts +13 -3
  10. package/dist/Card/Card.js +286 -161
  11. package/dist/Card/Card.module.css.js +2 -1
  12. package/dist/Card/index.d.ts +13 -3
  13. package/dist/Card/index.js +3 -1
  14. package/dist/ProgressBar/ProgressBar-3d1db6c7.css +2 -0
  15. package/dist/ProgressBar/ProgressBar-3d1db6c7.css.map +1 -0
  16. package/dist/ProgressBar/ProgressBar.module.css.js +1 -1
  17. package/dist/Skeleton/SkeletonBox-6305aba6.css +2 -0
  18. package/dist/Skeleton/SkeletonBox-6305aba6.css.map +1 -0
  19. package/dist/Skeleton/SkeletonBox.js +2 -1
  20. package/dist/Skeleton/SkeletonBox.module.css.js +2 -5
  21. package/dist/Skeleton/skeleton-bdbe6bf2.css +2 -0
  22. package/dist/Skeleton/skeleton-bdbe6bf2.css.map +1 -0
  23. package/dist/Skeleton/skeleton.module.css.js +8 -0
  24. package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +3 -0
  25. package/dist/SkeletonAvatar/SkeletonAvatar.js +75 -59
  26. package/dist/SkeletonText/SkeletonText.d.ts +3 -0
  27. package/dist/SkeletonText/SkeletonText.js +86 -70
  28. package/dist/Stack/Stack-1790a166.css +2 -0
  29. package/dist/Stack/Stack-1790a166.css.map +1 -0
  30. package/dist/Stack/Stack.d.ts +1 -1
  31. package/dist/Stack/Stack.module.css.js +1 -1
  32. package/dist/TooltipV2/Tooltip.js +55 -51
  33. package/dist/TreeView/TreeView.js +29 -15
  34. package/dist/TreeView/useTreeRovingTabIndex.js +155 -0
  35. package/dist/experimental/index.d.ts +2 -2
  36. package/dist/hooks/useOnEscapePress.d.ts +2 -0
  37. package/dist/hooks/useOnEscapePress.js +11 -4
  38. package/dist/hooks/useOnOutsideClick.js +2 -1
  39. package/dist/index.js +1 -1
  40. package/generated/components.json +83 -4
  41. package/package.json +10 -10
  42. package/dist/Breadcrumbs/Breadcrumbs-16d81430.css.map +0 -1
  43. package/dist/Card/Card-59b77d05.css +0 -2
  44. package/dist/Card/Card-59b77d05.css.map +0 -1
  45. package/dist/ProgressBar/ProgressBar-e403d83d.css +0 -2
  46. package/dist/ProgressBar/ProgressBar-e403d83d.css.map +0 -1
  47. package/dist/Skeleton/SkeletonBox-e078be7c.css +0 -2
  48. package/dist/Skeleton/SkeletonBox-e078be7c.css.map +0 -1
  49. package/dist/Stack/Stack-58c33984.css +0 -2
  50. package/dist/Stack/Stack-58c33984.css.map +0 -1
@@ -1,4 +1,4 @@
1
- import "./Breadcrumbs-16d81430.css";
1
+ import "./Breadcrumbs-6c9aadcf.css";
2
2
  //#region src/Breadcrumbs/Breadcrumbs.module.css.js
3
3
  var Breadcrumbs_module_css_default = {
4
4
  "BreadcrumbsBase": "prc-Breadcrumbs-BreadcrumbsBase-3Gb-B",
@@ -0,0 +1,2 @@
1
+ .prc-Card-Card-pYjuL{--card-padding:var(--stack-padding-spacious,1.5rem);background-color:var(--bgColor-default,#fff);border:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);box-shadow:var(--shadow-resting-small,0 1px 1px 0 #1f23280a,0 1px 2px 0 #1f232808);display:grid;gap:var(--stack-gap-normal,1rem);grid-auto-rows:max-content auto;isolation:isolate;min-width:0;overflow:hidden;padding:var(--card-padding);position:relative}.prc-Card-Card-pYjuL[data-content=custom]{grid-auto-rows:auto}.prc-Card-Card-pYjuL[data-content=structured][data-has-header=false]{grid-template-rows:minmax(0,1fr)}.prc-Card-Card-pYjuL[data-shadow=false]{box-shadow:none}.prc-Card-Card-pYjuL[data-border-radius=large]{border-radius:var(--borderRadius-large,.75rem)}.prc-Card-Card-pYjuL[data-border-radius=medium]{border-radius:var(--borderRadius-medium,.375rem)}.prc-Card-Card-pYjuL[data-padding=regular]{--card-padding:var(--stack-padding-normal,1rem)}.prc-Card-Card-pYjuL[data-padding=spacious]{--card-padding:var(--stack-padding-spacious,1.5rem)}.prc-Card-Card-pYjuL[data-padding=condensed]{--card-padding:var(--stack-padding-condensed,0.5rem)}.prc-Card-Card-pYjuL[data-padding=none]{--card-padding:0px}.prc-Card-Card-pYjuL[data-layout=compact]{align-items:flex-start;display:flex;gap:var(--stack-gap-condensed,.5rem)}.prc-Card-Card-pYjuL[data-layout=compact][data-padding=normal]{--card-padding:var(--stack-padding-normal,1rem)}:where(.prc-Card-Card-pYjuL) :where([contenteditable=true]),:where(.prc-Card-Card-pYjuL) :where([tabindex]),:where(.prc-Card-Card-pYjuL) :where(a),:where(.prc-Card-Card-pYjuL) :where(button),:where(.prc-Card-Card-pYjuL) :where(input),:where(.prc-Card-Card-pYjuL) :where(label),:where(.prc-Card-Card-pYjuL) :where(select),:where(.prc-Card-Card-pYjuL) :where(summary),:where(.prc-Card-Card-pYjuL) :where(textarea){position:relative;z-index:1}.prc-Card-CardHeader-P5Qbb{display:block;height:auto;width:100%}.prc-Card-Card-pYjuL:where([data-layout=compact]) .prc-Card-CardHeader-P5Qbb{flex:0 0 auto;width:auto}.prc-Card-CardHeaderEdgeToEdge-3yCqT{margin-left:calc(var(--card-padding)*-1);margin-right:calc(var(--card-padding)*-1);margin-top:calc(var(--card-padding)*-1);width:calc(100% + var(--card-padding)*2)}.prc-Card-CardImage-2M8DM{display:block;height:auto;width:100%}.prc-Card-CardIcon-mIMfj{align-items:center;color:var(--fgColor-muted,#59636e);display:flex;justify-content:flex-start}.prc-Card-Card-pYjuL:where([data-layout=default]) .prc-Card-CardIcon-mIMfj{background-color:var(--bgColor-muted,#f6f8fa);border-radius:var(--borderRadius-medium,.375rem);height:var(--base-size-32,2rem);justify-content:center;width:var(--base-size-32,2rem)}.prc-Card-CardBody-W1o-l{display:grid;gap:var(--stack-gap-normal,1rem);min-width:0}.prc-Card-Card-pYjuL:where([data-layout=compact]) .prc-Card-CardBody-W1o-l{flex:1 1 auto}.prc-Card-CardContent-omZDS{align-content:start;display:grid;gap:var(--stack-gap-condensed,.5rem);min-width:0}.prc-Card-CardHeading-3HXyS{color:var(--fgColor-default,#1f2328);font:var(--text-title-shorthand-small,600 1rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji");margin:0}.prc-Card-Card-pYjuL:where([data-layout=compact]) .prc-Card-CardHeading-3HXyS{font-size:var(--text-body-size-medium,.875rem);margin-bottom:var(--base-size-4,.25rem);margin-top:calc(var(--base-size-4,.25rem)*-1)}.prc-Card-CardPrimaryAction-2mRXB{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;position:relative;text-align:inherit;-webkit-text-decoration:none;text-decoration:none;z-index:1}.prc-Card-CardPrimaryAction-2mRXB:hover:not(:disabled){-webkit-text-decoration:underline;text-decoration:underline}.prc-Card-CardPrimaryAction-2mRXB:focus-visible{outline:var(--borderWidth-thick,.125rem) solid var(--focus-outlineColor,#0969da);outline-offset:var(--borderWidth-thick,.125rem)}.prc-Card-CardPrimaryAction-2mRXB[data-full-card-hit-area=true]{position:static;z-index:auto}.prc-Card-CardPrimaryAction-2mRXB[data-full-card-hit-area=true]:after{border-radius:var(--borderRadius-large,.75rem);content:"";inset:0;position:absolute;z-index:0}.prc-Card-Card-pYjuL:where([data-border-radius=medium]) .prc-Card-CardPrimaryAction-2mRXB[data-full-card-hit-area=true]::-csstools-invalid-after{border-radius:var(--borderRadius-medium,.375rem)}.prc-Card-CardPrimaryAction-2mRXB[data-full-card-hit-area=true]:hover:where(:not(:disabled)):after{outline:var(--borderWidth-thin,.0625rem) solid var(--borderColor-accent-emphasis,#0969da);outline-offset:calc(var(--borderWidth-thin,.0625rem)*-1)}.prc-Card-CardPrimaryAction-2mRXB[data-full-card-hit-area=true]:focus-visible{outline:none}.prc-Card-CardPrimaryAction-2mRXB[data-full-card-hit-area=true]:focus-visible:after{outline:var(--borderWidth-thick,.125rem) solid var(--focus-outlineColor,#0969da);outline-offset:calc(var(--base-size-4,.25rem)*-1)}.prc-Card-CardPrimaryAction-2mRXB:disabled{color:var(--fgColor-disabled,#818b98);cursor:default}.prc-Card-CardDescription-MnJ3F{margin:0}.prc-Card-CardDescription-MnJ3F,.prc-Card-CardMetadataContainer-K-UlH{color:var(--fgColor-muted,#59636e);font:var(--text-body-shorthand-medium,400 .875rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji")}.prc-Card-CardMetadataContainer-K-UlH{align-items:center;align-self:end;display:flex;gap:var(--stack-gap-normal,1rem)}.prc-Card-CardMetadataItem-ellY9{align-items:center;display:flex;font:var(--text-body-shorthand-small,400 .75rem/1.625 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji");gap:var(--stack-gap-condensed,.5rem)}.prc-Card-CardAction-VtI49{position:absolute;right:var(--base-size-16,1rem);top:var(--base-size-16,1rem);z-index:1}
2
+ /*# sourceMappingURL=Card-0e84ee3c.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Card/Card.module.css.js"],"names":[],"mappings":"AAAA,qBACE,mDAA6C,CAU7C,4CAAwC,CAFxC,gFAAgE,CAChE,kFAAuC,CAPvC,YAAa,CASb,gCAA4B,CAJ5B,+BAAgC,CAHhC,iBAAkB,CAElB,WAAY,CADZ,eAAgB,CAQhB,2BAA4B,CAV5B,iBAyDF,CA7CE,0CACE,mBACF,CAEA,qEACE,gCACF,CAEA,wCACE,eACF,CAEA,+CACE,8CACF,CAEA,gDACE,gDACF,CAEA,2CACE,+CACF,CAEA,4CACE,mDACF,CAEA,6CACE,oDACF,CAEA,wCACE,kBACF,CAEA,0CAEE,sBAAuB,CADvB,YAAa,CAEb,oCACF,CAEA,+DACE,+CACF,CAIA,4ZASE,iBAAkB,CAClB,SACF,CAGF,2BACE,aAAc,CAEd,WAAY,CADZ,UAOF,CAJE,6EACE,aAAc,CACd,UACF,CAGF,qCAIE,wCAA2C,CAD3C,yCAA4C,CAD5C,uCAA0C,CAG1C,wCAEF,CAEA,0BACE,aAAc,CAEd,WAAY,CADZ,UAEF,CAEA,yBAEE,kBAAmB,CAEnB,kCAA2B,CAH3B,YAAa,CAEb,0BAUF,CAPE,2EAKE,6CAAsC,CADtC,gDAAyC,CADzC,+BAA2B,CAF3B,sBAAuB,CACvB,8BAIF,CAGF,yBACE,YAAa,CAEb,gCAA4B,CAD5B,WAMF,CAHE,2EACE,aACF,CAGF,4BAGE,mBAAoB,CAFpB,YAAa,CAGb,oCAA+B,CAF/B,WAGF,CAEA,4BAEE,oCAA6B,CAD7B,2KAAuC,CAEvC,QAOF,CALE,8EAGE,8CAAuC,CADvC,uCAAiC,CADjC,6CAGF,CAGF,kCAKE,eAAgB,CADhB,QAAS,CAGT,aAAc,CAGd,cAAe,CAJf,YAAa,CAHb,SAAU,CAFV,iBAAkB,CAOlB,kBAAmB,CACnB,4BAAqB,CAArB,oBAAqB,CAPrB,SAsDF,CA5CE,uDACE,iCAA0B,CAA1B,yBACF,CAEA,gDACE,gFAAiE,CACjE,+CACF,CAEA,gEACE,eAAgB,CAChB,YA2BF,CAzBE,sEAKE,8CAAwC,CADxC,UAAW,CAFX,OAAQ,CADR,iBAAkB,CAElB,SAOF,CAHE,iJACE,gDACF,CAGF,mGACE,yFAAyE,CACzE,wDACF,CAEA,8EACE,YACF,CAEA,oFACE,gFAAiE,CACjE,iDACF,CAGF,2CACE,qCAA8B,CAC9B,cACF,CAGF,gCAGE,QACF,CAEA,sEAJE,kCAA2B,CAD3B,8KAYF,CAPA,sCAGE,kBAAmB,CADnB,cAAe,CADf,YAAa,CAGb,gCAGF,CAEA,iCAEE,kBAAmB,CADnB,YAAa,CAGb,8KAAsC,CADtC,oCAEF,CAEA,2BACE,iBAAkB,CAElB,8BAA0B,CAD1B,4BAAwB,CAExB,SACF","file":"Card-0e84ee3c.css","sourcesContent":[".Card {\n --card-padding: var(--stack-padding-spacious);\n\n display: grid;\n position: relative;\n isolation: isolate;\n overflow: hidden;\n min-width: 0;\n grid-auto-rows: max-content auto;\n border: var(--borderWidth-thin) solid var(--borderColor-default);\n box-shadow: var(--shadow-resting-small);\n background-color: var(--bgColor-default);\n gap: var(--stack-gap-normal);\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--card-padding);\n\n &[data-content='custom'] {\n grid-auto-rows: auto;\n }\n\n &[data-content='structured'][data-has-header='false'] {\n grid-template-rows: minmax(0, 1fr);\n }\n\n &[data-shadow='false'] {\n box-shadow: none;\n }\n\n &[data-border-radius='large'] {\n border-radius: var(--borderRadius-large);\n }\n\n &[data-border-radius='medium'] {\n border-radius: var(--borderRadius-medium);\n }\n\n &[data-padding='regular'] {\n --card-padding: var(--stack-padding-normal);\n }\n\n &[data-padding='spacious'] {\n --card-padding: var(--stack-padding-spacious);\n }\n\n &[data-padding='condensed'] {\n --card-padding: var(--stack-padding-condensed);\n }\n\n &[data-padding='none'] {\n --card-padding: 0px;\n }\n\n &[data-layout='compact'] {\n display: flex;\n align-items: flex-start;\n gap: var(--stack-gap-condensed);\n }\n\n &[data-layout='compact'][data-padding='normal'] {\n --card-padding: var(--stack-padding-normal);\n }\n}\n\n:where(.Card) {\n :where(a),\n :where(button),\n :where(input),\n :where(select),\n :where(textarea),\n :where(summary),\n :where(label),\n :where([tabindex]),\n :where([contenteditable='true']) {\n position: relative;\n z-index: 1;\n }\n}\n\n.CardHeader {\n display: block;\n width: 100%;\n height: auto;\n\n .Card:where([data-layout='compact']) & {\n flex: 0 0 auto;\n width: auto;\n }\n}\n\n.CardHeaderEdgeToEdge {\n /* stylelint-disable primer/spacing */\n margin-top: calc(-1 * var(--card-padding));\n margin-right: calc(-1 * var(--card-padding));\n margin-left: calc(-1 * var(--card-padding));\n width: calc(100% + 2 * var(--card-padding));\n /* stylelint-enable primer/spacing */\n}\n\n.CardImage {\n display: block;\n width: 100%;\n height: auto;\n}\n\n.CardIcon {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n color: var(--fgColor-muted);\n\n .Card:where([data-layout='default']) & {\n justify-content: center;\n width: var(--base-size-32);\n height: var(--base-size-32);\n border-radius: var(--borderRadius-medium);\n background-color: var(--bgColor-muted);\n }\n}\n\n.CardBody {\n display: grid;\n min-width: 0;\n gap: var(--stack-gap-normal);\n\n .Card:where([data-layout='compact']) & {\n flex: 1 1 auto;\n }\n}\n\n.CardContent {\n display: grid;\n min-width: 0;\n align-content: start;\n gap: var(--stack-gap-condensed);\n}\n\n.CardHeading {\n font: var(--text-title-shorthand-small);\n color: var(--fgColor-default);\n margin: 0;\n\n .Card:where([data-layout='compact']) & {\n margin-top: calc(-1 * var(--base-size-4));\n margin-bottom: var(--base-size-4);\n font-size: var(--text-body-size-medium);\n }\n}\n\n.CardPrimaryAction {\n position: relative;\n z-index: 1;\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n color: inherit;\n text-align: inherit;\n text-decoration: none;\n cursor: pointer;\n\n &:hover:not(:disabled) {\n text-decoration: underline;\n }\n\n &:focus-visible {\n outline: var(--borderWidth-thick) solid var(--focus-outlineColor);\n outline-offset: var(--borderWidth-thick);\n }\n\n &[data-full-card-hit-area='true'] {\n position: static;\n z-index: auto;\n\n &::after {\n position: absolute;\n inset: 0;\n z-index: 0;\n content: '';\n border-radius: var(--borderRadius-large);\n\n .Card:where([data-border-radius='medium']) & {\n border-radius: var(--borderRadius-medium);\n }\n }\n\n &:hover:where(:not(:disabled))::after {\n outline: var(--borderWidth-thin) solid var(--borderColor-accent-emphasis);\n outline-offset: calc(-1 * var(--borderWidth-thin));\n }\n\n &:focus-visible {\n outline: none;\n }\n\n &:focus-visible::after {\n outline: var(--borderWidth-thick) solid var(--focus-outlineColor);\n outline-offset: calc(-1 * var(--base-size-4));\n }\n }\n\n &:disabled {\n color: var(--fgColor-disabled);\n cursor: default;\n }\n}\n\n.CardDescription {\n font: var(--text-body-shorthand-medium);\n color: var(--fgColor-muted);\n margin: 0;\n}\n\n.CardMetadataContainer {\n display: flex;\n align-self: end;\n align-items: center;\n gap: var(--stack-gap-normal);\n font: var(--text-body-shorthand-medium);\n color: var(--fgColor-muted);\n}\n\n.CardMetadataItem {\n display: flex;\n align-items: center;\n gap: var(--stack-gap-condensed);\n font: var(--text-body-shorthand-small);\n}\n\n.CardAction {\n position: absolute;\n top: var(--base-size-16);\n right: var(--base-size-16);\n z-index: 1;\n}\n"]}
@@ -4,8 +4,9 @@ import React from "react";
4
4
  //#region src/Card/Card.d.ts
5
5
  type CardAs = 'div' | 'section';
6
6
  type CardProps<As extends CardAs = 'div'> = PolymorphicProps<As, 'div', {
7
- /** Optional className for the root element. */className?: string; /** Internal padding. @default 'normal' */
8
- padding?: 'none' | 'condensed' | 'normal'; /** Border radius. @default 'large' */
7
+ /** Optional className for the root element. */className?: string; /** Internal padding: none (0px), condensed (8px), regular (16px), spacious (24px), normal (24px, or 16px in compact layout). @default 'normal' */
8
+ padding?: 'none' | 'condensed' | 'regular' | 'spacious' | 'normal'; /** Whether to show the card's shadow. @default true */
9
+ shadow?: boolean; /** Border radius. @default 'large' */
9
10
  borderRadius?: 'medium' | 'large';
10
11
  /**
11
12
  * Layout of the card. `compact` uses tighter spacing, removes the icon
@@ -20,6 +21,15 @@ type CardProps<As extends CardAs = 'div'> = PolymorphicProps<As, 'div', {
20
21
  children: React.ReactNode;
21
22
  }>;
22
23
  type HeadingLevel = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
24
+ type LinkProps = React.ComponentPropsWithoutRef<'a'> & {
25
+ /** Destination for the link. */href: string; /** Expand the link's hit area over the entire card. @default false */
26
+ fullCardHitArea?: boolean;
27
+ children: React.ReactNode;
28
+ };
29
+ type ButtonProps = React.ComponentPropsWithoutRef<'button'> & {
30
+ /** Expand the button's hit area over the entire card. @default false */fullCardHitArea?: boolean;
31
+ children: React.ReactNode;
32
+ };
23
33
  type HeadingProps = React.ComponentPropsWithoutRef<'h3'> & {
24
34
  /**
25
35
  * The heading level to render. Defaults to 'h3'.
@@ -101,4 +111,4 @@ declare namespace CardAction {
101
111
  var displayName: string;
102
112
  }
103
113
  //#endregion
104
- export { CardAction, type ActionProps as CardActionProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, CardIcon, type IconProps as CardIconProps, CardImage, type ImageProps as CardImageProps, type MetadataProps as CardMetadataProps, CardProps };
114
+ export { CardAction, type ActionProps as CardActionProps, type ButtonProps as CardButtonProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, CardIcon, type IconProps as CardIconProps, CardImage, type ImageProps as CardImageProps, type LinkProps as CardLinkProps, type MetadataProps as CardMetadataProps, CardProps };
package/dist/Card/Card.js CHANGED
@@ -8,12 +8,13 @@ import { clsx } from "clsx";
8
8
  //#region src/Card/Card.tsx
9
9
  const CardContext = /*#__PURE__*/ createContext({});
10
10
  function CardComponent(props, ref) {
11
- const $ = c(71);
12
- const { children, className, padding: t0, borderRadius: t1, layout: t2, as: t3, ...rest } = props;
11
+ const $ = c(79);
12
+ const { children, className, padding: t0, shadow: t1, borderRadius: t2, layout: t3, as: t4, ...rest } = props;
13
13
  const padding = t0 === void 0 ? "normal" : t0;
14
- const borderRadius = t1 === void 0 ? "large" : t1;
15
- const layout = t2 === void 0 ? "default" : t2;
16
- const as = t3 === void 0 ? "div" : t3;
14
+ const shadow = t1 === void 0 ? true : t1;
15
+ const borderRadius = t2 === void 0 ? "large" : t2;
16
+ const layout = t3 === void 0 ? "default" : t3;
17
+ const as = t4 === void 0 ? "div" : t4;
17
18
  const Component = as;
18
19
  const generatedId = useId$1();
19
20
  const titleId = as === "section" ? generatedId : void 0;
@@ -28,14 +29,17 @@ function CardComponent(props, ref) {
28
29
  let t11;
29
30
  let t12;
30
31
  let t13;
31
- let t4;
32
+ let t14;
33
+ let t15;
34
+ let t16;
35
+ let t17;
32
36
  let t5;
33
37
  let t6;
34
38
  let t7;
35
39
  let t8;
36
40
  let t9;
37
- if ($[0] !== Component || $[1] !== borderRadius || $[2] !== children || $[3] !== className || $[4] !== layout || $[5] !== padding || $[6] !== ref || $[7] !== rest || $[8] !== titleId) {
38
- t13 = Symbol.for("react.early_return_sentinel");
41
+ if ($[0] !== Component || $[1] !== borderRadius || $[2] !== children || $[3] !== className || $[4] !== layout || $[5] !== padding || $[6] !== ref || $[7] !== rest || $[8] !== shadow || $[9] !== titleId) {
42
+ t17 = Symbol.for("react.early_return_sentinel");
39
43
  bb0: {
40
44
  let icon = null;
41
45
  let image = null;
@@ -55,76 +59,82 @@ function CardComponent(props, ref) {
55
59
  }
56
60
  const hasSlotChildren = icon || image || heading || description || metadata || menu;
57
61
  if (!hasSlotChildren && childArray.length === 0) {
58
- t13 = null;
62
+ t17 = null;
59
63
  break bb0;
60
64
  }
61
65
  if (!hasSlotChildren) {
62
- let t14;
63
- if ($[25] !== titleId) {
64
- t14 = { titleId };
65
- $[25] = titleId;
66
- $[26] = t14;
67
- } else t14 = $[26];
68
- let t15;
69
- if ($[27] !== className) {
70
- t15 = clsx(Card_module_css_default.Card, className);
71
- $[27] = className;
72
- $[28] = t15;
73
- } else t15 = $[28];
74
- let t16;
75
- if ($[29] !== Component || $[30] !== borderRadius || $[31] !== children || $[32] !== layout || $[33] !== padding || $[34] !== ref || $[35] !== rest || $[36] !== t15) {
76
- t16 = /* @__PURE__ */ jsx(Component, {
66
+ let t18;
67
+ if ($[29] !== titleId) {
68
+ t18 = { titleId };
69
+ $[29] = titleId;
70
+ $[30] = t18;
71
+ } else t18 = $[30];
72
+ let t19;
73
+ if ($[31] !== className) {
74
+ t19 = clsx(Card_module_css_default.Card, className);
75
+ $[31] = className;
76
+ $[32] = t19;
77
+ } else t19 = $[32];
78
+ let t20;
79
+ if ($[33] !== Component || $[34] !== borderRadius || $[35] !== children || $[36] !== layout || $[37] !== padding || $[38] !== ref || $[39] !== rest || $[40] !== shadow || $[41] !== t19) {
80
+ t20 = /* @__PURE__ */ jsx(Component, {
77
81
  ref,
78
- className: t15,
82
+ className: t19,
79
83
  "data-component": "Card",
84
+ "data-content": "custom",
80
85
  "data-padding": padding,
86
+ "data-shadow": shadow,
81
87
  "data-border-radius": borderRadius,
82
88
  "data-layout": layout,
83
89
  ...rest,
84
90
  children
85
91
  });
86
- $[29] = Component;
87
- $[30] = borderRadius;
88
- $[31] = children;
89
- $[32] = layout;
90
- $[33] = padding;
91
- $[34] = ref;
92
- $[35] = rest;
93
- $[36] = t15;
94
- $[37] = t16;
95
- } else t16 = $[37];
96
- let t17;
97
- if ($[38] !== t14 || $[39] !== t16) {
98
- t17 = /* @__PURE__ */ jsx(CardContext.Provider, {
99
- value: t14,
100
- children: t16
92
+ $[33] = Component;
93
+ $[34] = borderRadius;
94
+ $[35] = children;
95
+ $[36] = layout;
96
+ $[37] = padding;
97
+ $[38] = ref;
98
+ $[39] = rest;
99
+ $[40] = shadow;
100
+ $[41] = t19;
101
+ $[42] = t20;
102
+ } else t20 = $[42];
103
+ let t21;
104
+ if ($[43] !== t18 || $[44] !== t20) {
105
+ t21 = /* @__PURE__ */ jsx(CardContext.Provider, {
106
+ value: t18,
107
+ children: t20
101
108
  });
102
- $[38] = t14;
103
- $[39] = t16;
104
- $[40] = t17;
105
- } else t17 = $[40];
106
- t13 = t17;
109
+ $[43] = t18;
110
+ $[44] = t20;
111
+ $[45] = t21;
112
+ } else t21 = $[45];
113
+ t17 = t21;
107
114
  break bb0;
108
115
  }
109
116
  T1 = CardContext.Provider;
110
- if ($[41] !== titleId) {
111
- t12 = { titleId };
112
- $[41] = titleId;
113
- $[42] = t12;
114
- } else t12 = $[42];
117
+ if ($[46] !== titleId) {
118
+ t16 = { titleId };
119
+ $[46] = titleId;
120
+ $[47] = t16;
121
+ } else t16 = $[47];
115
122
  T0 = Component;
116
- t4 = ref;
117
- if ($[43] !== className) {
118
- t5 = clsx(Card_module_css_default.Card, className);
119
- $[43] = className;
120
- $[44] = t5;
121
- } else t5 = $[44];
122
- t6 = "Card";
123
- t7 = padding;
124
- t8 = borderRadius;
125
- t9 = layout;
126
- t10 = rest;
127
- t11 = (image || icon) && /* @__PURE__ */ jsx("div", {
123
+ t5 = ref;
124
+ if ($[48] !== className) {
125
+ t6 = clsx(Card_module_css_default.Card, className);
126
+ $[48] = className;
127
+ $[49] = t6;
128
+ } else t6 = $[49];
129
+ t7 = "Card";
130
+ t8 = "structured";
131
+ t9 = Boolean(image || icon);
132
+ t10 = padding;
133
+ t11 = shadow;
134
+ t12 = borderRadius;
135
+ t13 = layout;
136
+ t14 = rest;
137
+ t15 = (image || icon) && /* @__PURE__ */ jsx("div", {
128
138
  className: clsx(Card_module_css_default.CardHeader, image && Card_module_css_default.CardHeaderEdgeToEdge),
129
139
  children: image || icon
130
140
  });
@@ -137,121 +147,134 @@ function CardComponent(props, ref) {
137
147
  $[5] = padding;
138
148
  $[6] = ref;
139
149
  $[7] = rest;
140
- $[8] = titleId;
141
- $[9] = T0;
142
- $[10] = T1;
143
- $[11] = description;
144
- $[12] = heading;
145
- $[13] = menu;
146
- $[14] = metadata;
147
- $[15] = t10;
148
- $[16] = t11;
149
- $[17] = t12;
150
- $[18] = t13;
151
- $[19] = t4;
152
- $[20] = t5;
153
- $[21] = t6;
154
- $[22] = t7;
155
- $[23] = t8;
156
- $[24] = t9;
150
+ $[8] = shadow;
151
+ $[9] = titleId;
152
+ $[10] = T0;
153
+ $[11] = T1;
154
+ $[12] = description;
155
+ $[13] = heading;
156
+ $[14] = menu;
157
+ $[15] = metadata;
158
+ $[16] = t10;
159
+ $[17] = t11;
160
+ $[18] = t12;
161
+ $[19] = t13;
162
+ $[20] = t14;
163
+ $[21] = t15;
164
+ $[22] = t16;
165
+ $[23] = t17;
166
+ $[24] = t5;
167
+ $[25] = t6;
168
+ $[26] = t7;
169
+ $[27] = t8;
170
+ $[28] = t9;
157
171
  } else {
158
- T0 = $[9];
159
- T1 = $[10];
160
- description = $[11];
161
- heading = $[12];
162
- menu = $[13];
163
- metadata = $[14];
164
- t10 = $[15];
165
- t11 = $[16];
166
- t12 = $[17];
167
- t13 = $[18];
168
- t4 = $[19];
169
- t5 = $[20];
170
- t6 = $[21];
171
- t7 = $[22];
172
- t8 = $[23];
173
- t9 = $[24];
172
+ T0 = $[10];
173
+ T1 = $[11];
174
+ description = $[12];
175
+ heading = $[13];
176
+ menu = $[14];
177
+ metadata = $[15];
178
+ t10 = $[16];
179
+ t11 = $[17];
180
+ t12 = $[18];
181
+ t13 = $[19];
182
+ t14 = $[20];
183
+ t15 = $[21];
184
+ t16 = $[22];
185
+ t17 = $[23];
186
+ t5 = $[24];
187
+ t6 = $[25];
188
+ t7 = $[26];
189
+ t8 = $[27];
190
+ t9 = $[28];
174
191
  }
175
- if (t13 !== Symbol.for("react.early_return_sentinel")) return t13;
176
- let t14;
177
- if ($[45] !== description || $[46] !== heading) {
178
- t14 = /* @__PURE__ */ jsxs("div", {
192
+ if (t17 !== Symbol.for("react.early_return_sentinel")) return t17;
193
+ let t18;
194
+ if ($[50] !== description || $[51] !== heading) {
195
+ t18 = /* @__PURE__ */ jsxs("div", {
179
196
  className: Card_module_css_default.CardContent,
180
197
  children: [heading, description]
181
198
  });
182
- $[45] = description;
183
- $[46] = heading;
184
- $[47] = t14;
185
- } else t14 = $[47];
186
- let t15;
187
- if ($[48] !== metadata) {
188
- t15 = metadata ? /* @__PURE__ */ jsx("div", {
199
+ $[50] = description;
200
+ $[51] = heading;
201
+ $[52] = t18;
202
+ } else t18 = $[52];
203
+ let t19;
204
+ if ($[53] !== metadata) {
205
+ t19 = metadata ? /* @__PURE__ */ jsx("div", {
189
206
  className: Card_module_css_default.CardMetadataContainer,
190
207
  children: metadata
191
208
  }) : null;
192
- $[48] = metadata;
193
- $[49] = t15;
194
- } else t15 = $[49];
195
- let t16;
196
- if ($[50] !== t14 || $[51] !== t15) {
197
- t16 = /* @__PURE__ */ jsxs("div", {
209
+ $[53] = metadata;
210
+ $[54] = t19;
211
+ } else t19 = $[54];
212
+ let t20;
213
+ if ($[55] !== t18 || $[56] !== t19) {
214
+ t20 = /* @__PURE__ */ jsxs("div", {
198
215
  className: Card_module_css_default.CardBody,
199
- children: [t14, t15]
216
+ children: [t18, t19]
200
217
  });
201
- $[50] = t14;
202
- $[51] = t15;
203
- $[52] = t16;
204
- } else t16 = $[52];
205
- let t17;
206
- if ($[53] !== menu) {
207
- t17 = menu ? /* @__PURE__ */ jsx("div", {
218
+ $[55] = t18;
219
+ $[56] = t19;
220
+ $[57] = t20;
221
+ } else t20 = $[57];
222
+ let t21;
223
+ if ($[58] !== menu) {
224
+ t21 = menu ? /* @__PURE__ */ jsx("div", {
208
225
  className: Card_module_css_default.CardAction,
209
226
  children: menu
210
227
  }) : null;
211
- $[53] = menu;
212
- $[54] = t17;
213
- } else t17 = $[54];
214
- let t18;
215
- if ($[55] !== T0 || $[56] !== t10 || $[57] !== t11 || $[58] !== t16 || $[59] !== t17 || $[60] !== t4 || $[61] !== t5 || $[62] !== t6 || $[63] !== t7 || $[64] !== t8 || $[65] !== t9) {
216
- t18 = /* @__PURE__ */ jsxs(T0, {
217
- ref: t4,
218
- className: t5,
219
- "data-component": t6,
220
- "data-padding": t7,
221
- "data-border-radius": t8,
222
- "data-layout": t9,
223
- ...t10,
228
+ $[58] = menu;
229
+ $[59] = t21;
230
+ } else t21 = $[59];
231
+ let t22;
232
+ if ($[60] !== T0 || $[61] !== t10 || $[62] !== t11 || $[63] !== t12 || $[64] !== t13 || $[65] !== t14 || $[66] !== t15 || $[67] !== t20 || $[68] !== t21 || $[69] !== t5 || $[70] !== t6 || $[71] !== t7 || $[72] !== t8 || $[73] !== t9) {
233
+ t22 = /* @__PURE__ */ jsxs(T0, {
234
+ ref: t5,
235
+ className: t6,
236
+ "data-component": t7,
237
+ "data-content": t8,
238
+ "data-has-header": t9,
239
+ "data-padding": t10,
240
+ "data-shadow": t11,
241
+ "data-border-radius": t12,
242
+ "data-layout": t13,
243
+ ...t14,
224
244
  children: [
225
- t11,
226
- t16,
227
- t17
245
+ t15,
246
+ t20,
247
+ t21
228
248
  ]
229
249
  });
230
- $[55] = T0;
231
- $[56] = t10;
232
- $[57] = t11;
233
- $[58] = t16;
234
- $[59] = t17;
235
- $[60] = t4;
236
- $[61] = t5;
237
- $[62] = t6;
238
- $[63] = t7;
239
- $[64] = t8;
240
- $[65] = t9;
241
- $[66] = t18;
242
- } else t18 = $[66];
243
- let t19;
244
- if ($[67] !== T1 || $[68] !== t12 || $[69] !== t18) {
245
- t19 = /* @__PURE__ */ jsx(T1, {
246
- value: t12,
247
- children: t18
250
+ $[60] = T0;
251
+ $[61] = t10;
252
+ $[62] = t11;
253
+ $[63] = t12;
254
+ $[64] = t13;
255
+ $[65] = t14;
256
+ $[66] = t15;
257
+ $[67] = t20;
258
+ $[68] = t21;
259
+ $[69] = t5;
260
+ $[70] = t6;
261
+ $[71] = t7;
262
+ $[72] = t8;
263
+ $[73] = t9;
264
+ $[74] = t22;
265
+ } else t22 = $[74];
266
+ let t23;
267
+ if ($[75] !== T1 || $[76] !== t16 || $[77] !== t22) {
268
+ t23 = /* @__PURE__ */ jsx(T1, {
269
+ value: t16,
270
+ children: t22
248
271
  });
249
- $[67] = T1;
250
- $[68] = t12;
251
- $[69] = t18;
252
- $[70] = t19;
253
- } else t19 = $[70];
254
- return t19;
272
+ $[75] = T1;
273
+ $[76] = t16;
274
+ $[77] = t22;
275
+ $[78] = t23;
276
+ } else t23 = $[78];
277
+ return t23;
255
278
  }
256
279
  CardComponent.displayName = "Card";
257
280
  const CardImpl = fixedForwardRef(CardComponent);
@@ -394,6 +417,108 @@ const CardHeading = /*#__PURE__*/ forwardRef(function CardHeading(t0, ref) {
394
417
  return t4;
395
418
  });
396
419
  CardHeading.displayName = "Card.Heading";
420
+ /**
421
+ * Place inside Card.Heading and set fullCardHitArea for whole-card navigation.
422
+ * Keep secondary controls outside the link, in Card.Action or Card.Metadata.
423
+ */
424
+ const CardLink = /*#__PURE__*/ forwardRef(function CardLink(t0, ref) {
425
+ const $ = c(13);
426
+ let children;
427
+ let className;
428
+ let rest;
429
+ let t1;
430
+ if ($[0] !== t0) {
431
+ ({children, className, fullCardHitArea: t1, ...rest} = t0);
432
+ $[0] = t0;
433
+ $[1] = children;
434
+ $[2] = className;
435
+ $[3] = rest;
436
+ $[4] = t1;
437
+ } else {
438
+ children = $[1];
439
+ className = $[2];
440
+ rest = $[3];
441
+ t1 = $[4];
442
+ }
443
+ const fullCardHitArea = t1 === void 0 ? false : t1;
444
+ let t2;
445
+ if ($[5] !== className) {
446
+ t2 = clsx(Card_module_css_default.CardPrimaryAction, className);
447
+ $[5] = className;
448
+ $[6] = t2;
449
+ } else t2 = $[6];
450
+ let t3;
451
+ if ($[7] !== children || $[8] !== fullCardHitArea || $[9] !== ref || $[10] !== rest || $[11] !== t2) {
452
+ t3 = /* @__PURE__ */ jsx("a", {
453
+ ...rest,
454
+ ref,
455
+ className: t2,
456
+ "data-component": "Card.Link",
457
+ "data-full-card-hit-area": fullCardHitArea,
458
+ children
459
+ });
460
+ $[7] = children;
461
+ $[8] = fullCardHitArea;
462
+ $[9] = ref;
463
+ $[10] = rest;
464
+ $[11] = t2;
465
+ $[12] = t3;
466
+ } else t3 = $[12];
467
+ return t3;
468
+ });
469
+ CardLink.displayName = "Card.Link";
470
+ /**
471
+ * Place inside Card.Heading and set fullCardHitArea for a whole-card action.
472
+ * Native button semantics provide Enter, Space, and disabled support.
473
+ */
474
+ const CardButton = /*#__PURE__*/ forwardRef(function CardButton(t0, ref) {
475
+ const $ = c(13);
476
+ let className;
477
+ let rest;
478
+ let t1;
479
+ let t2;
480
+ if ($[0] !== t0) {
481
+ ({className, type: t1, fullCardHitArea: t2, ...rest} = t0);
482
+ $[0] = t0;
483
+ $[1] = className;
484
+ $[2] = rest;
485
+ $[3] = t1;
486
+ $[4] = t2;
487
+ } else {
488
+ className = $[1];
489
+ rest = $[2];
490
+ t1 = $[3];
491
+ t2 = $[4];
492
+ }
493
+ const type = t1 === void 0 ? "button" : t1;
494
+ const fullCardHitArea = t2 === void 0 ? false : t2;
495
+ const t3 = type === "submit" ? "submit" : type === "reset" ? "reset" : "button";
496
+ let t4;
497
+ if ($[5] !== className) {
498
+ t4 = clsx(Card_module_css_default.CardPrimaryAction, className);
499
+ $[5] = className;
500
+ $[6] = t4;
501
+ } else t4 = $[6];
502
+ let t5;
503
+ if ($[7] !== fullCardHitArea || $[8] !== ref || $[9] !== rest || $[10] !== t3 || $[11] !== t4) {
504
+ t5 = /* @__PURE__ */ jsx("button", {
505
+ ...rest,
506
+ ref,
507
+ type: t3,
508
+ className: t4,
509
+ "data-component": "Card.Button",
510
+ "data-full-card-hit-area": fullCardHitArea
511
+ });
512
+ $[7] = fullCardHitArea;
513
+ $[8] = ref;
514
+ $[9] = rest;
515
+ $[10] = t3;
516
+ $[11] = t4;
517
+ $[12] = t5;
518
+ } else t5 = $[12];
519
+ return t5;
520
+ });
521
+ CardButton.displayName = "Card.Button";
397
522
  const CardDescription = /*#__PURE__*/ forwardRef(function CardDescription(t0, ref) {
398
523
  const $ = c(11);
399
524
  let children;
@@ -497,4 +622,4 @@ const CardMetadata = /*#__PURE__*/ forwardRef(function CardMetadata(t0, ref) {
497
622
  });
498
623
  CardMetadata.displayName = "Card.Metadata";
499
624
  //#endregion
500
- export { CardAction, CardDescription, CardHeading, CardIcon, CardImage, CardImpl, CardMetadata };
625
+ export { CardAction, CardButton, CardDescription, CardHeading, CardIcon, CardImage, CardImpl, CardLink, CardMetadata };
@@ -1,4 +1,4 @@
1
- import "./Card-59b77d05.css";
1
+ import "./Card-0e84ee3c.css";
2
2
  //#region src/Card/Card.module.css.js
3
3
  var Card_module_css_default = {
4
4
  "Card": "prc-Card-Card-pYjuL",
@@ -9,6 +9,7 @@ var Card_module_css_default = {
9
9
  "CardBody": "prc-Card-CardBody-W1o-l",
10
10
  "CardContent": "prc-Card-CardContent-omZDS",
11
11
  "CardHeading": "prc-Card-CardHeading-3HXyS",
12
+ "CardPrimaryAction": "prc-Card-CardPrimaryAction-2mRXB",
12
13
  "CardDescription": "prc-Card-CardDescription-MnJ3F",
13
14
  "CardMetadataContainer": "prc-Card-CardMetadataContainer-K-UlH",
14
15
  "CardMetadataItem": "prc-Card-CardMetadataItem-ellY9",
@@ -1,10 +1,11 @@
1
1
  import { DistributiveOmit } from "../utils/modern-polymorphic.js";
2
- import { CardAction, CardActionProps as ActionProps, CardDescriptionProps as DescriptionProps, CardHeadingProps as HeadingProps, CardIcon, CardIconProps as IconProps, CardImage, CardImageProps as ImageProps, CardMetadataProps as MetadataProps, CardProps } from "./Card.js";
2
+ import { CardAction, CardActionProps as ActionProps, CardButtonProps as ButtonProps, CardDescriptionProps as DescriptionProps, CardHeadingProps as HeadingProps, CardIcon, CardIconProps as IconProps, CardImage, CardImageProps as ImageProps, CardLinkProps as LinkProps, CardMetadataProps as MetadataProps, CardProps } from "./Card.js";
3
3
 
4
4
  //#region src/Card/index.d.ts
5
5
  declare const Card: (<As extends "div" | "section">(props: DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As>, "as"> & Omit<{
6
6
  className?: string;
7
- padding?: "none" | "condensed" | "normal";
7
+ padding?: "none" | "condensed" | "regular" | "spacious" | "normal";
8
+ shadow?: boolean;
8
9
  borderRadius?: "medium" | "large";
9
10
  layout?: "default" | "compact";
10
11
  children: React.ReactNode;
@@ -17,6 +18,15 @@ declare const Card: (<As extends "div" | "section">(props: DistributiveOmit<impo
17
18
  as?: "h2" | "h3" | "h4" | "h5" | "h6";
18
19
  children: React.ReactNode;
19
20
  } & import("react").RefAttributes<HTMLHeadingElement>>;
21
+ Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
22
+ href: string;
23
+ fullCardHitArea?: boolean;
24
+ children: React.ReactNode;
25
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
26
+ Button: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
27
+ fullCardHitArea?: boolean;
28
+ children: React.ReactNode;
29
+ } & import("react").RefAttributes<HTMLButtonElement>>;
20
30
  Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
21
31
  children: React.ReactNode;
22
32
  } & import("react").RefAttributes<HTMLParagraphElement>>;
@@ -26,4 +36,4 @@ declare const Card: (<As extends "div" | "section">(props: DistributiveOmit<impo
26
36
  } & import("react").RefAttributes<HTMLDivElement>>;
27
37
  };
28
38
  //#endregion
29
- export { Card, type ActionProps as CardActionProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, type IconProps as CardIconProps, type ImageProps as CardImageProps, type MetadataProps as CardMetadataProps, type CardProps };
39
+ export { Card, type ActionProps as CardActionProps, type ButtonProps as CardButtonProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, type IconProps as CardIconProps, type ImageProps as CardImageProps, type LinkProps as CardLinkProps, type MetadataProps as CardMetadataProps, type CardProps };
@@ -1,9 +1,11 @@
1
- import { CardAction, CardDescription, CardHeading, CardIcon, CardImage, CardImpl, CardMetadata } from "./Card.js";
1
+ import { CardAction, CardButton, CardDescription, CardHeading, CardIcon, CardImage, CardImpl, CardLink, CardMetadata } from "./Card.js";
2
2
  //#region src/Card/index.ts
3
3
  const Card = Object.assign(CardImpl, {
4
4
  Icon: CardIcon,
5
5
  Image: CardImage,
6
6
  Heading: CardHeading,
7
+ Link: CardLink,
8
+ Button: CardButton,
7
9
  Description: CardDescription,
8
10
  Action: CardAction,
9
11
  Metadata: CardMetadata