@oaknational/oak-components 3.14.0 → 3.14.2
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
|
@@ -3937,7 +3937,7 @@ var OakInlineBanner = function (_a) {
|
|
|
3937
3937
|
iconLogic,
|
|
3938
3938
|
canDismiss && (React__default.default.createElement(OakFlex, tslib.__assign({ "$order": 2 }, bannerVariants[variant].closeButtonWrapper),
|
|
3939
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)))),
|
|
3940
|
-
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"] },
|
|
3941
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 },
|
|
3942
3942
|
title && (React__default.default.createElement(OakHeading, tslib.__assign({ "data-testid": "inline-banner-title", tag: titleTag }, bannerVariants[variant].heading), title)),
|
|
3943
3943
|
React__default.default.createElement(OakBox, { "$font": "body-2", "data-testid": "inline-banner-message" }, message)),
|
|
@@ -4603,7 +4603,7 @@ function OakTabs(props) {
|
|
|
4603
4603
|
React__default.default.createElement(StyledFocusOutline, { "$width": "100%", "$height": "100%", "$borderRadius": "border-radius-circle", "$pa": "spacing-4", "$alignItems": "center", "$justifyContent": "center", "$whiteSpace": "nowrap" },
|
|
4604
4604
|
React__default.default.createElement(OakFlex, { "$alignItems": "center", "$gap": "spacing-8" },
|
|
4605
4605
|
React__default.default.createElement(OakSpan, null, label),
|
|
4606
|
-
showPromo && (React__default.default.createElement(OakPromoTag, { variant: isSelected ? "default" : "inverted" })))))));
|
|
4606
|
+
showPromo && (React__default.default.createElement(OakPromoTag, { display: ["none", "flex", "flex"], variant: isSelected ? "default" : "inverted" })))))));
|
|
4607
4607
|
})));
|
|
4608
4608
|
}
|
|
4609
4609
|
var templateObject_1$R, templateObject_2$n;
|
|
@@ -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)),
|
|
@@ -43,7 +43,7 @@ function OakTabs(props) {
|
|
|
43
43
|
React.createElement(StyledFocusOutline, { "$width": "100%", "$height": "100%", "$borderRadius": "border-radius-circle", "$pa": "spacing-4", "$alignItems": "center", "$justifyContent": "center", "$whiteSpace": "nowrap" },
|
|
44
44
|
React.createElement(OakFlex, { "$alignItems": "center", "$gap": "spacing-8" },
|
|
45
45
|
React.createElement(OakSpan, null, label),
|
|
46
|
-
showPromo && (React.createElement(OakPromoTag, { variant: isSelected ? "default" : "inverted" })))))));
|
|
46
|
+
showPromo && (React.createElement(OakPromoTag, { display: ["none", "flex", "flex"], variant: isSelected ? "default" : "inverted" })))))));
|
|
47
47
|
})));
|
|
48
48
|
}
|
|
49
49
|
var templateObject_1, templateObject_2;
|