glints-aries 4.0.330 → 4.0.331
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.
|
@@ -38,9 +38,11 @@ export var Banner = /*#__PURE__*/React.forwardRef(function Banner(_ref, ref) {
|
|
|
38
38
|
ref: ref,
|
|
39
39
|
"data-titled": !!title,
|
|
40
40
|
"data-status": status
|
|
41
|
-
}, props), /*#__PURE__*/React.createElement(StyledBannerTitleContainer, null, /*#__PURE__*/React.createElement(Icon, {
|
|
41
|
+
}, props), /*#__PURE__*/React.createElement(StyledBannerTitleContainer, null, showIcon && /*#__PURE__*/React.createElement(Icon, {
|
|
42
42
|
name: iconNameValue
|
|
43
|
-
}), title && /*#__PURE__*/React.createElement(StyledBannerTitle,
|
|
43
|
+
}), title && /*#__PURE__*/React.createElement(StyledBannerTitle, {
|
|
44
|
+
"data-show-icon": showIcon
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
44
46
|
as: "span",
|
|
45
47
|
variant: "subtitle1"
|
|
46
48
|
}, title)), dismissable && /*#__PURE__*/React.createElement(StyledCloseIconWrapper, {
|
|
@@ -50,10 +52,14 @@ export var Banner = /*#__PURE__*/React.forwardRef(function Banner(_ref, ref) {
|
|
|
50
52
|
}
|
|
51
53
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
52
54
|
name: "ri-close"
|
|
53
|
-
}))), /*#__PURE__*/React.createElement(StyledBannerContentContainer,
|
|
55
|
+
}))), /*#__PURE__*/React.createElement(StyledBannerContentContainer, {
|
|
56
|
+
"data-show-icon": showIcon
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
54
58
|
as: "div",
|
|
55
59
|
variant: "body1"
|
|
56
|
-
}, children)), /*#__PURE__*/React.createElement(StyledBannerContentContainer,
|
|
60
|
+
}, children)), /*#__PURE__*/React.createElement(StyledBannerContentContainer, {
|
|
61
|
+
"data-show-icon": showIcon
|
|
62
|
+
}, actionComponent));
|
|
57
63
|
return /*#__PURE__*/React.createElement(StyledFixedBanner, _extends({
|
|
58
64
|
ref: ref,
|
|
59
65
|
"data-status": status,
|
|
@@ -14,7 +14,7 @@ export var StyledBanner = styled.div.withConfig({
|
|
|
14
14
|
export var StyledBannerContentContainer = styled.div.withConfig({
|
|
15
15
|
displayName: "BannerStyle__StyledBannerContentContainer",
|
|
16
16
|
componentId: "sc-1suv683-2"
|
|
17
|
-
})(["padding-left:40px;button{margin-top:10px;}"]);
|
|
17
|
+
})(["&[data-show-icon='true']{padding-left:40px;}button{margin-top:10px;}"]);
|
|
18
18
|
export var StyledBannerTitleContainer = styled.div.withConfig({
|
|
19
19
|
displayName: "BannerStyle__StyledBannerTitleContainer",
|
|
20
20
|
componentId: "sc-1suv683-3"
|
|
@@ -22,4 +22,4 @@ export var StyledBannerTitleContainer = styled.div.withConfig({
|
|
|
22
22
|
export var StyledBannerTitle = styled.div.withConfig({
|
|
23
23
|
displayName: "BannerStyle__StyledBannerTitle",
|
|
24
24
|
componentId: "sc-1suv683-4"
|
|
25
|
-
})(["margin-bottom:", "
|
|
25
|
+
})(["margin-bottom:", ";&[data-show-icon='true']{padding-left:40px;}button{margin-top:10px;}"], space4);
|
|
@@ -43,9 +43,11 @@ var Banner = /*#__PURE__*/_react["default"].forwardRef(function Banner(_ref, ref
|
|
|
43
43
|
ref: ref,
|
|
44
44
|
"data-titled": !!title,
|
|
45
45
|
"data-status": status
|
|
46
|
-
}, props), /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledBannerTitleContainer, null, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
|
|
46
|
+
}, props), /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledBannerTitleContainer, null, showIcon && /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
|
|
47
47
|
name: iconNameValue
|
|
48
|
-
}), title && /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledBannerTitle,
|
|
48
|
+
}), title && /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledBannerTitle, {
|
|
49
|
+
"data-show-icon": showIcon
|
|
50
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
49
51
|
as: "span",
|
|
50
52
|
variant: "subtitle1"
|
|
51
53
|
}, title)), dismissable && /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledCloseIconWrapper, {
|
|
@@ -55,10 +57,14 @@ var Banner = /*#__PURE__*/_react["default"].forwardRef(function Banner(_ref, ref
|
|
|
55
57
|
}
|
|
56
58
|
}, /*#__PURE__*/_react["default"].createElement(_Icon.Icon, {
|
|
57
59
|
name: "ri-close"
|
|
58
|
-
}))), /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledBannerContentContainer,
|
|
60
|
+
}))), /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledBannerContentContainer, {
|
|
61
|
+
"data-show-icon": showIcon
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
59
63
|
as: "div",
|
|
60
64
|
variant: "body1"
|
|
61
|
-
}, children)), /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledBannerContentContainer,
|
|
65
|
+
}, children)), /*#__PURE__*/_react["default"].createElement(_BannerStyle.StyledBannerContentContainer, {
|
|
66
|
+
"data-show-icon": showIcon
|
|
67
|
+
}, actionComponent));
|
|
62
68
|
return /*#__PURE__*/_react["default"].createElement(_FixedBannerStyle.StyledFixedBanner, (0, _extends2["default"])({
|
|
63
69
|
ref: ref,
|
|
64
70
|
"data-status": status,
|
|
@@ -23,7 +23,7 @@ exports.StyledBanner = StyledBanner;
|
|
|
23
23
|
var StyledBannerContentContainer = _styledComponents["default"].div.withConfig({
|
|
24
24
|
displayName: "BannerStyle__StyledBannerContentContainer",
|
|
25
25
|
componentId: "sc-1suv683-2"
|
|
26
|
-
})(["padding-left:40px;button{margin-top:10px;}"]);
|
|
26
|
+
})(["&[data-show-icon='true']{padding-left:40px;}button{margin-top:10px;}"]);
|
|
27
27
|
exports.StyledBannerContentContainer = StyledBannerContentContainer;
|
|
28
28
|
var StyledBannerTitleContainer = _styledComponents["default"].div.withConfig({
|
|
29
29
|
displayName: "BannerStyle__StyledBannerTitleContainer",
|
|
@@ -33,5 +33,5 @@ exports.StyledBannerTitleContainer = StyledBannerTitleContainer;
|
|
|
33
33
|
var StyledBannerTitle = _styledComponents["default"].div.withConfig({
|
|
34
34
|
displayName: "BannerStyle__StyledBannerTitle",
|
|
35
35
|
componentId: "sc-1suv683-4"
|
|
36
|
-
})(["margin-bottom:", "
|
|
36
|
+
})(["margin-bottom:", ";&[data-show-icon='true']{padding-left:40px;}button{margin-top:10px;}"], _spacing.space4);
|
|
37
37
|
exports.StyledBannerTitle = StyledBannerTitle;
|