@oaknational/oak-components 2.20.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +5 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -3499,6 +3499,10 @@ type OakCardProps = {
|
|
|
3499
3499
|
* The heading text of the card.
|
|
3500
3500
|
*/
|
|
3501
3501
|
heading: string;
|
|
3502
|
+
/**
|
|
3503
|
+
* The heading level of the card.
|
|
3504
|
+
*/
|
|
3505
|
+
headingLevel?: OakHeadingTag;
|
|
3502
3506
|
/**
|
|
3503
3507
|
* The URL that the card links to.
|
|
3504
3508
|
*/
|
|
@@ -3552,7 +3556,7 @@ type OakCardProps = {
|
|
|
3552
3556
|
* The card can be oriented in a row or column layout and its width can be adjusted using spacing tokens.
|
|
3553
3557
|
* The image aspect ratio can be set to either 1:1 or 4:3.
|
|
3554
3558
|
*/
|
|
3555
|
-
declare const OakCard: ({ heading, href, cardOrientation, cardWidth, imageSrc, imageAlt, aspectRatio, subCopy, tagName, tagBackground, linkText, linkIconName, }: OakCardProps) => React__default.JSX.Element;
|
|
3559
|
+
declare const OakCard: ({ heading, headingLevel, href, cardOrientation, cardWidth, imageSrc, imageAlt, aspectRatio, subCopy, tagName, tagBackground, linkText, linkIconName, }: OakCardProps) => React__default.JSX.Element;
|
|
3556
3560
|
|
|
3557
3561
|
type OakBreadcrumb = {
|
|
3558
3562
|
text: string;
|