orcs-design-system 2.0.50 → 2.0.53
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.
|
@@ -74,9 +74,11 @@ var NotificationWrapper = styled("div").withConfig({
|
|
|
74
74
|
var NotificationContent = styled("p").withConfig({
|
|
75
75
|
displayName: "Notification__NotificationContent",
|
|
76
76
|
componentId: "sc-1p26rkq-1"
|
|
77
|
-
})(
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
})(function (props) {
|
|
78
|
+
return css({
|
|
79
|
+
pr: props.closable === false ? "0" : "s"
|
|
80
|
+
});
|
|
81
|
+
});
|
|
80
82
|
var Close = styled("button").withConfig({
|
|
81
83
|
displayName: "Notification__Close",
|
|
82
84
|
componentId: "sc-1p26rkq-2"
|
|
@@ -187,7 +189,9 @@ export default function Notification(_ref) {
|
|
|
187
189
|
}, props), icon && /*#__PURE__*/React.createElement(NotificationIcon, _extends({
|
|
188
190
|
colour: colour,
|
|
189
191
|
icon: icon
|
|
190
|
-
}, iconProps)), loading && /*#__PURE__*/React.createElement(LoadingIcon, null), /*#__PURE__*/React.createElement(NotificationContent,
|
|
192
|
+
}, iconProps)), loading && /*#__PURE__*/React.createElement(LoadingIcon, null), /*#__PURE__*/React.createElement(NotificationContent, {
|
|
193
|
+
closable: closable
|
|
194
|
+
}, children), closable && /*#__PURE__*/React.createElement(Close, {
|
|
191
195
|
className: "close-button",
|
|
192
196
|
tabIndex: "0",
|
|
193
197
|
onClick: onToggle
|
|
@@ -53,7 +53,7 @@ export default function Popover(_ref2) {
|
|
|
53
53
|
theme: theme
|
|
54
54
|
}, /*#__PURE__*/React.createElement(Container, _extends({
|
|
55
55
|
inlineBlock: inlineBlock
|
|
56
|
-
}, props), /*#__PURE__*/React.createElement(Text, {
|
|
56
|
+
}, props), !!text && /*#__PURE__*/React.createElement(Text, {
|
|
57
57
|
className: "popoverText",
|
|
58
58
|
textAlign: textAlign,
|
|
59
59
|
direction: direction,
|