@oaknational/oak-components 2.44.0 → 2.45.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 +3 -3
- 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 +4 -2
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -3219,7 +3219,8 @@ type OakTooltipProps = InternalTooltipProps & {
|
|
|
3219
3219
|
*/
|
|
3220
3220
|
declare const OakTooltip: ({ tooltipPosition, children, tooltip, isOpen, domContainer, ...props }: OakTooltipProps) => React$1.JSX.Element;
|
|
3221
3221
|
|
|
3222
|
-
type OakFocusIndicatorProps = {
|
|
3222
|
+
type OakFocusIndicatorProps = OakBoxProps & {
|
|
3223
|
+
as?: "div" | "li";
|
|
3223
3224
|
hoverBackground?: OakUiRoleToken;
|
|
3224
3225
|
dropShadow?: OakDropShadowToken;
|
|
3225
3226
|
hoverDropShadow?: OakDropShadowToken;
|
|
@@ -3405,6 +3406,7 @@ type OakTabsProps<T extends string> = {
|
|
|
3405
3406
|
declare function OakTabs<T extends string>(props: Readonly<OakTabsProps<T>>): React$1.JSX.Element;
|
|
3406
3407
|
|
|
3407
3408
|
type OakCardProps = {
|
|
3409
|
+
as?: "div" | "li";
|
|
3408
3410
|
/**
|
|
3409
3411
|
* The heading text of the card.
|
|
3410
3412
|
*/
|
|
@@ -3478,7 +3480,7 @@ type OakCardProps = {
|
|
|
3478
3480
|
* The card can be oriented in a row or column layout and its width can be adjusted using spacing tokens.
|
|
3479
3481
|
* The image aspect ratio can be set to either 1:1 or 4:3.
|
|
3480
3482
|
*/
|
|
3481
|
-
declare const OakCard: ({ heading, headingLevel, href, cardOrientation, cardWidth, imageSrc, imageAlt, aspectRatio, subCopy, subCopyColor, tagName, tagBackground, linkText, linkIconName, hoverBackground, imageBackgroundColor, }: OakCardProps) => React$1.JSX.Element;
|
|
3483
|
+
declare const OakCard: ({ as, heading, headingLevel, href, cardOrientation, cardWidth, imageSrc, imageAlt, aspectRatio, subCopy, subCopyColor, tagName, tagBackground, linkText, linkIconName, hoverBackground, imageBackgroundColor, }: OakCardProps) => React$1.JSX.Element;
|
|
3482
3484
|
|
|
3483
3485
|
type OakBreadcrumb = {
|
|
3484
3486
|
text: string;
|