@cloudflare/component-notifications 10.1.8 → 10.1.9
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/CHANGELOG.md +6 -0
- package/es/Notification.js +2 -4
- package/es/NotificationGlobalContainer.js +1 -2
- package/es/NotificationItem.js +5 -16
- package/es/NotificationList.js +1 -2
- package/lib/Notification.js +2 -4
- package/lib/NotificationGlobalContainer.js +1 -2
- package/lib/NotificationItem.js +5 -16
- package/lib/NotificationList.js +1 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/es/Notification.js
CHANGED
|
@@ -131,13 +131,11 @@ class Notification extends React.Component {
|
|
|
131
131
|
onClick: this.handleClick.bind(this),
|
|
132
132
|
onMouseEnter: this.handleMouseEnter.bind(this),
|
|
133
133
|
onMouseLeave: this.handleMouseLeave.bind(this),
|
|
134
|
-
type: this.props.type
|
|
135
|
-
"data-source-file": "@cloudflare/component-notifications:src/Notification.tsx:152"
|
|
134
|
+
type: this.props.type
|
|
136
135
|
}, /*#__PURE__*/React.createElement(NotificationItem, {
|
|
137
136
|
closable: this.props.closable,
|
|
138
137
|
handleClickClose: this.handleClickClose.bind(this),
|
|
139
|
-
type: this.props.type
|
|
140
|
-
"data-source-file": "@cloudflare/component-notifications:src/Notification.tsx:159"
|
|
138
|
+
type: this.props.type
|
|
141
139
|
}, this.props.message));
|
|
142
140
|
}
|
|
143
141
|
|
|
@@ -22,8 +22,7 @@ var NotificationGlobalContainer = _ref2 => {
|
|
|
22
22
|
children
|
|
23
23
|
} = _ref2;
|
|
24
24
|
return /*#__PURE__*/React.createElement(StyledContainer, {
|
|
25
|
-
className: className
|
|
26
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationGlobalContainer.tsx:30"
|
|
25
|
+
className: className
|
|
27
26
|
}, children);
|
|
28
27
|
};
|
|
29
28
|
|
package/es/NotificationItem.js
CHANGED
|
@@ -83,29 +83,18 @@ var NotificationItem = _ref3 => {
|
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
return /*#__PURE__*/React.createElement(NotificationWrapper, {
|
|
87
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:96"
|
|
88
|
-
}, /*#__PURE__*/React.createElement(NotificationMessage, {
|
|
89
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:97"
|
|
90
|
-
}, /*#__PURE__*/React.createElement(IconWrapper, {
|
|
91
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:98"
|
|
92
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
86
|
+
return /*#__PURE__*/React.createElement(NotificationWrapper, null, /*#__PURE__*/React.createElement(NotificationMessage, null, /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(Icon, {
|
|
93
87
|
type: iconType,
|
|
94
88
|
label: type ? type : 'info-sign',
|
|
95
89
|
color: "white",
|
|
96
|
-
size: 24
|
|
97
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:99"
|
|
90
|
+
size: 24
|
|
98
91
|
})), children), closable && /*#__PURE__*/React.createElement(NotificationClose, {
|
|
99
92
|
onClick: handleClickClose,
|
|
100
|
-
type: type
|
|
101
|
-
|
|
102
|
-
}, /*#__PURE__*/React.createElement(CloseWrapper, {
|
|
103
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:111"
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
93
|
+
type: type
|
|
94
|
+
}, /*#__PURE__*/React.createElement(CloseWrapper, null, /*#__PURE__*/React.createElement(Icon, {
|
|
105
95
|
type: "remove",
|
|
106
96
|
label: "close",
|
|
107
|
-
color: "white"
|
|
108
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:112"
|
|
97
|
+
color: "white"
|
|
109
98
|
}))));
|
|
110
99
|
};
|
|
111
100
|
|
package/es/NotificationList.js
CHANGED
|
@@ -12,8 +12,7 @@ var NotificationList = _ref => {
|
|
|
12
12
|
children
|
|
13
13
|
} = _ref;
|
|
14
14
|
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className: className
|
|
16
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationList.tsx:15"
|
|
15
|
+
className: className
|
|
17
16
|
}, children);
|
|
18
17
|
};
|
|
19
18
|
|
package/lib/Notification.js
CHANGED
|
@@ -192,13 +192,11 @@ var Notification = /*#__PURE__*/function (_React$Component) {
|
|
|
192
192
|
onClick: this.handleClick.bind(this),
|
|
193
193
|
onMouseEnter: this.handleMouseEnter.bind(this),
|
|
194
194
|
onMouseLeave: this.handleMouseLeave.bind(this),
|
|
195
|
-
type: this.props.type
|
|
196
|
-
"data-source-file": "@cloudflare/component-notifications:src/Notification.tsx:152"
|
|
195
|
+
type: this.props.type
|
|
197
196
|
}, /*#__PURE__*/_react.default.createElement(_NotificationItem.default, {
|
|
198
197
|
closable: this.props.closable,
|
|
199
198
|
handleClickClose: this.handleClickClose.bind(this),
|
|
200
|
-
type: this.props.type
|
|
201
|
-
"data-source-file": "@cloudflare/component-notifications:src/Notification.tsx:159"
|
|
199
|
+
type: this.props.type
|
|
202
200
|
}, this.props.message));
|
|
203
201
|
}
|
|
204
202
|
}]);
|
|
@@ -29,8 +29,7 @@ var NotificationGlobalContainer = function NotificationGlobalContainer(_ref2) {
|
|
|
29
29
|
var className = _ref2.className,
|
|
30
30
|
children = _ref2.children;
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(StyledContainer, {
|
|
32
|
-
className: className
|
|
33
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationGlobalContainer.tsx:30"
|
|
32
|
+
className: className
|
|
34
33
|
}, children);
|
|
35
34
|
};
|
|
36
35
|
|
package/lib/NotificationItem.js
CHANGED
|
@@ -96,29 +96,18 @@ var NotificationItem = function NotificationItem(_ref3) {
|
|
|
96
96
|
break;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
return /*#__PURE__*/_react.default.createElement(NotificationWrapper, {
|
|
100
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:96"
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement(NotificationMessage, {
|
|
102
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:97"
|
|
103
|
-
}, /*#__PURE__*/_react.default.createElement(IconWrapper, {
|
|
104
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:98"
|
|
105
|
-
}, /*#__PURE__*/_react.default.createElement(_componentIcon.Icon, {
|
|
99
|
+
return /*#__PURE__*/_react.default.createElement(NotificationWrapper, null, /*#__PURE__*/_react.default.createElement(NotificationMessage, null, /*#__PURE__*/_react.default.createElement(IconWrapper, null, /*#__PURE__*/_react.default.createElement(_componentIcon.Icon, {
|
|
106
100
|
type: iconType,
|
|
107
101
|
label: type ? type : 'info-sign',
|
|
108
102
|
color: "white",
|
|
109
|
-
size: 24
|
|
110
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:99"
|
|
103
|
+
size: 24
|
|
111
104
|
})), children), closable && /*#__PURE__*/_react.default.createElement(NotificationClose, {
|
|
112
105
|
onClick: handleClickClose,
|
|
113
|
-
type: type
|
|
114
|
-
|
|
115
|
-
}, /*#__PURE__*/_react.default.createElement(CloseWrapper, {
|
|
116
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:111"
|
|
117
|
-
}, /*#__PURE__*/_react.default.createElement(_componentIcon.Icon, {
|
|
106
|
+
type: type
|
|
107
|
+
}, /*#__PURE__*/_react.default.createElement(CloseWrapper, null, /*#__PURE__*/_react.default.createElement(_componentIcon.Icon, {
|
|
118
108
|
type: "remove",
|
|
119
109
|
label: "close",
|
|
120
|
-
color: "white"
|
|
121
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationItem.tsx:112"
|
|
110
|
+
color: "white"
|
|
122
111
|
}))));
|
|
123
112
|
};
|
|
124
113
|
|
package/lib/NotificationList.js
CHANGED
|
@@ -22,8 +22,7 @@ var NotificationList = function NotificationList(_ref) {
|
|
|
22
22
|
var className = _ref.className,
|
|
23
23
|
children = _ref.children;
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
-
className: className
|
|
26
|
-
"data-source-file": "@cloudflare/component-notifications:src/NotificationList.tsx:15"
|
|
25
|
+
className: className
|
|
27
26
|
}, children);
|
|
28
27
|
};
|
|
29
28
|
|
package/package.json
CHANGED