@oaknational/oak-components 3.13.0 → 3.14.1
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
|
@@ -1044,6 +1044,7 @@ var icons = {
|
|
|
1044
1044
|
globe: "v1776851811/icons/globe.svg",
|
|
1045
1045
|
"video-2": "v1787662089/icons/video-2.svg",
|
|
1046
1046
|
audio: "v1787662158/icons/audio.svg",
|
|
1047
|
+
"video-3": "v1788369484/icons/video-3.svg",
|
|
1047
1048
|
};
|
|
1048
1049
|
var backgrounds = {
|
|
1049
1050
|
"confetti-pink": "v1734522868/pupil-journey/confetti-pink.svg",
|
|
@@ -3936,7 +3937,7 @@ var OakInlineBanner = function (_a) {
|
|
|
3936
3937
|
iconLogic,
|
|
3937
3938
|
canDismiss && (React__default.default.createElement(OakFlex, tslib.__assign({ "$order": 2 }, bannerVariants[variant].closeButtonWrapper),
|
|
3938
3939
|
React__default.default.createElement(InternalShadowRoundButton, tslib.__assign({ "aria-label": "Dismiss banner", defaultIconBackground: "transparent", defaultIconColor: "icon-primary", defaultTextColor: "transparent", hoverTextColor: "transparent", disabledTextColor: "transparent", hoverIconBackground: "icon-primary", hoverIconColor: "icon-inverted", disabledIconBackground: "transparent", iconBackgroundSize: "spacing-24", iconSize: "spacing-24", iconName: "cross", "data-testid": "inline-banner-close-button", onClick: onDismiss }, closeButtonOverrideProps)))),
|
|
3939
|
-
React__default.default.createElement(OakFlex, { "$order": 1, "$flexDirection": title ? "column" : ["column", "row"], "$gap": title ? "spacing-24" : ["spacing-12", "spacing-24"], "$width": "100%", "$alignItems": "start" },
|
|
3940
|
+
React__default.default.createElement(OakFlex, { "$order": 1, "$flexDirection": title ? "column" : ["column", "row"], "$gap": title ? "spacing-24" : ["spacing-12", "spacing-24"], "$width": "100%", "$alignItems": title ? "start" : ["start", "center"] },
|
|
3940
3941
|
React__default.default.createElement(OakFlex, { "$width": "100%", "$flexDirection": title ? "column" : "row", "$justifyContent": title ? "center" : "space-between", "$alignItems": title ? "start" : "center", "$gap": bannerVariants[variant].textContentGap },
|
|
3941
3942
|
title && (React__default.default.createElement(OakHeading, tslib.__assign({ "data-testid": "inline-banner-title", tag: titleTag }, bannerVariants[variant].heading), title)),
|
|
3942
3943
|
React__default.default.createElement(OakBox, { "$font": "body-2", "data-testid": "inline-banner-message" }, message)),
|
package/dist/npm/cjs/types.d.ts
CHANGED
|
@@ -789,6 +789,7 @@ declare const icons: {
|
|
|
789
789
|
readonly globe: "v1776851811/icons/globe.svg";
|
|
790
790
|
readonly "video-2": "v1787662089/icons/video-2.svg";
|
|
791
791
|
readonly audio: "v1787662158/icons/audio.svg";
|
|
792
|
+
readonly "video-3": "v1788369484/icons/video-3.svg";
|
|
792
793
|
};
|
|
793
794
|
type IconName = keyof typeof icons;
|
|
794
795
|
|
|
@@ -114,7 +114,7 @@ var OakInlineBanner = function (_a) {
|
|
|
114
114
|
iconLogic,
|
|
115
115
|
canDismiss && (React.createElement(OakFlex, __assign({ "$order": 2 }, bannerVariants[variant].closeButtonWrapper),
|
|
116
116
|
React.createElement(InternalShadowRoundButton, __assign({ "aria-label": "Dismiss banner", defaultIconBackground: "transparent", defaultIconColor: "icon-primary", defaultTextColor: "transparent", hoverTextColor: "transparent", disabledTextColor: "transparent", hoverIconBackground: "icon-primary", hoverIconColor: "icon-inverted", disabledIconBackground: "transparent", iconBackgroundSize: "spacing-24", iconSize: "spacing-24", iconName: "cross", "data-testid": "inline-banner-close-button", onClick: onDismiss }, closeButtonOverrideProps)))),
|
|
117
|
-
React.createElement(OakFlex, { "$order": 1, "$flexDirection": title ? "column" : ["column", "row"], "$gap": title ? "spacing-24" : ["spacing-12", "spacing-24"], "$width": "100%", "$alignItems": "start" },
|
|
117
|
+
React.createElement(OakFlex, { "$order": 1, "$flexDirection": title ? "column" : ["column", "row"], "$gap": title ? "spacing-24" : ["spacing-12", "spacing-24"], "$width": "100%", "$alignItems": title ? "start" : ["start", "center"] },
|
|
118
118
|
React.createElement(OakFlex, { "$width": "100%", "$flexDirection": title ? "column" : "row", "$justifyContent": title ? "center" : "space-between", "$alignItems": title ? "start" : "center", "$gap": bannerVariants[variant].textContentGap },
|
|
119
119
|
title && (React.createElement(OakHeading, __assign({ "data-testid": "inline-banner-title", tag: titleTag }, bannerVariants[variant].heading), title)),
|
|
120
120
|
React.createElement(OakBox, { "$font": "body-2", "data-testid": "inline-banner-message" }, message)),
|
package/dist/npm/es/image-map.js
CHANGED
|
@@ -195,6 +195,7 @@ var icons = {
|
|
|
195
195
|
globe: "v1776851811/icons/globe.svg",
|
|
196
196
|
"video-2": "v1787662089/icons/video-2.svg",
|
|
197
197
|
audio: "v1787662158/icons/audio.svg",
|
|
198
|
+
"video-3": "v1788369484/icons/video-3.svg",
|
|
198
199
|
};
|
|
199
200
|
var backgrounds = {
|
|
200
201
|
"confetti-pink": "v1734522868/pupil-journey/confetti-pink.svg",
|
package/dist/npm/es/types.d.ts
CHANGED
|
@@ -789,6 +789,7 @@ declare const icons: {
|
|
|
789
789
|
readonly globe: "v1776851811/icons/globe.svg";
|
|
790
790
|
readonly "video-2": "v1787662089/icons/video-2.svg";
|
|
791
791
|
readonly audio: "v1787662158/icons/audio.svg";
|
|
792
|
+
readonly "video-3": "v1788369484/icons/video-3.svg";
|
|
792
793
|
};
|
|
793
794
|
type IconName = keyof typeof icons;
|
|
794
795
|
|