@oaknational/oak-components 3.22.2 → 3.23.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/npm/cjs/index.js
CHANGED
|
@@ -4502,7 +4502,7 @@ var OakCard = function (_a) {
|
|
|
4502
4502
|
var displayImage = Array.isArray(showImage)
|
|
4503
4503
|
? showImage.map(function (value) { return boolAsDisplay(value); })
|
|
4504
4504
|
: boolAsDisplay(showImage);
|
|
4505
|
-
return (React__default.default.createElement(OakFocusIndicator, { as: as, "$height": "100%", "$width": cardWidth },
|
|
4505
|
+
return (React__default.default.createElement(OakFocusIndicator, { as: as, "$height": "100%", "$width": cardWidth, "$borderRadius": $borderRadius },
|
|
4506
4506
|
React__default.default.createElement(StyledOakFlex$2, tslib.__assign({ as: "a", href: href, "$cardOrientation": cardOrientation, "$height": "100%", "$pa": "spacing-16", "$gap": "spacing-16", "$hoverBackground": hoverBackground, "$background": $background, "$borderRadius": $borderRadius }, styleProps),
|
|
4507
4507
|
imageSrc && (React__default.default.createElement(OakBox, { "$display": displayImage },
|
|
4508
4508
|
React__default.default.createElement(StyledOakImage, { src: imageSrc || "", alt: imageAlt || "", "$width": "auto", "$aspectRatio": aspectRatio, "$background": imageBackgroundColor, "$borderRadius": "border-radius-m2" }))),
|
package/dist/npm/cjs/types.d.ts
CHANGED
|
@@ -3340,6 +3340,7 @@ type OakTagFunctionalProps = {
|
|
|
3340
3340
|
iconName?: OakIconName;
|
|
3341
3341
|
isTrailingIcon?: boolean;
|
|
3342
3342
|
useSpan?: boolean;
|
|
3343
|
+
as?: "span" | "div";
|
|
3343
3344
|
} & Omit<OakFlexProps, "onClick" | "label">;
|
|
3344
3345
|
declare const OakTagFunctional: (props: OakTagFunctionalProps) => React__default.JSX.Element;
|
|
3345
3346
|
|
|
@@ -5110,7 +5111,7 @@ declare const StyledMediaClipImage: styled_components_dist_types.IStyledComponen
|
|
|
5110
5111
|
imageProps?: Partial<Omit<any, "ref">> | undefined;
|
|
5111
5112
|
}, "style"> & {
|
|
5112
5113
|
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5113
|
-
}, StyledImageProps>> & string & Omit<(<C extends React__default.ElementType = React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "width" | "
|
|
5114
|
+
}, StyledImageProps>> & string & Omit<(<C extends React__default.ElementType = React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "width" | "height" | "alt" | "src" | "srcSet" | "loading"> & {
|
|
5114
5115
|
src: string | next_dist_shared_lib_get_img_props.StaticImport;
|
|
5115
5116
|
alt: string;
|
|
5116
5117
|
width?: number | `${number}`;
|
|
@@ -65,7 +65,7 @@ var OakCard = function (_a) {
|
|
|
65
65
|
var displayImage = Array.isArray(showImage)
|
|
66
66
|
? showImage.map(function (value) { return boolAsDisplay(value); })
|
|
67
67
|
: boolAsDisplay(showImage);
|
|
68
|
-
return (React.createElement(OakFocusIndicator, { as: as, "$height": "100%", "$width": cardWidth },
|
|
68
|
+
return (React.createElement(OakFocusIndicator, { as: as, "$height": "100%", "$width": cardWidth, "$borderRadius": $borderRadius },
|
|
69
69
|
React.createElement(StyledOakFlex, __assign({ as: "a", href: href, "$cardOrientation": cardOrientation, "$height": "100%", "$pa": "spacing-16", "$gap": "spacing-16", "$hoverBackground": hoverBackground, "$background": $background, "$borderRadius": $borderRadius }, styleProps),
|
|
70
70
|
imageSrc && (React.createElement(OakBox, { "$display": displayImage },
|
|
71
71
|
React.createElement(StyledOakImage, { src: imageSrc || "", alt: imageAlt || "", "$width": "auto", "$aspectRatio": aspectRatio, "$background": imageBackgroundColor, "$borderRadius": "border-radius-m2" }))),
|
package/dist/npm/es/types.d.ts
CHANGED
|
@@ -3340,6 +3340,7 @@ type OakTagFunctionalProps = {
|
|
|
3340
3340
|
iconName?: OakIconName;
|
|
3341
3341
|
isTrailingIcon?: boolean;
|
|
3342
3342
|
useSpan?: boolean;
|
|
3343
|
+
as?: "span" | "div";
|
|
3343
3344
|
} & Omit<OakFlexProps, "onClick" | "label">;
|
|
3344
3345
|
declare const OakTagFunctional: (props: OakTagFunctionalProps) => React__default.JSX.Element;
|
|
3345
3346
|
|
|
@@ -5110,7 +5111,7 @@ declare const StyledMediaClipImage: styled_components_dist_types.IStyledComponen
|
|
|
5110
5111
|
imageProps?: Partial<Omit<any, "ref">> | undefined;
|
|
5111
5112
|
}, "style"> & {
|
|
5112
5113
|
style?: React__default.CSSProperties | styled_components_dist_types.CSSPropertiesWithVars | undefined;
|
|
5113
|
-
}, StyledImageProps>> & string & Omit<(<C extends React__default.ElementType = React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "width" | "
|
|
5114
|
+
}, StyledImageProps>> & string & Omit<(<C extends React__default.ElementType = React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref" | "width" | "height" | "alt" | "src" | "srcSet" | "loading"> & {
|
|
5114
5115
|
src: string | next_dist_shared_lib_get_img_props.StaticImport;
|
|
5115
5116
|
alt: string;
|
|
5116
5117
|
width?: number | `${number}`;
|