@pingux/astro 2.0.2 → 2.0.3-alpha.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/lib/cjs/components/Breadcrumbs/Breadcrumbs.stories.js +8 -9
- package/lib/cjs/components/Messages/Messages.stories.js +15 -25
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.js +8 -9
- package/lib/components/Messages/Messages.stories.js +15 -25
- package/package.json +1 -1
- package/NOTICE.html +0 -12399
@@ -51,23 +51,22 @@ var Default = function Default(args) {
|
|
51
51
|
return (0, _react2.jsx)(_index.Breadcrumbs, (0, _extends2["default"])({
|
52
52
|
onAction: onAction
|
53
53
|
}, args), (0, _react2.jsx)(_reactStately.Item, {
|
54
|
-
key: "home",
|
55
54
|
"aria-label": "home",
|
56
|
-
variant: "buttons.link",
|
57
55
|
"data-id": "home",
|
58
|
-
href: "https://www.pingidentity.com"
|
56
|
+
href: "https://www.pingidentity.com",
|
57
|
+
key: "home",
|
58
|
+
variant: "buttons.link"
|
59
59
|
}, "Home"), (0, _react2.jsx)(_reactStately.Item, {
|
60
|
-
key: "trendy",
|
61
60
|
"aria-label": "trendy",
|
62
|
-
variant: "buttons.link",
|
63
61
|
"data-id": "trendy",
|
64
|
-
href: "https://www.pingidentity.com"
|
62
|
+
href: "https://www.pingidentity.com",
|
63
|
+
key: "trendy",
|
64
|
+
variant: "buttons.link"
|
65
65
|
}, "Trendy"), (0, _react2.jsx)(_reactStately.Item, {
|
66
|
-
key: "march 2020 assets",
|
67
66
|
"aria-label": "march-2020-assets",
|
68
|
-
variant: "buttons.link",
|
69
67
|
"data-id": "march",
|
70
|
-
|
68
|
+
key: "march 2020 assets",
|
69
|
+
variant: "buttons.link"
|
71
70
|
}, "March 2020 Assets"));
|
72
71
|
};
|
73
72
|
exports.Default = Default;
|
@@ -58,32 +58,32 @@ var _default = {
|
|
58
58
|
}
|
59
59
|
};
|
60
60
|
exports["default"] = _default;
|
61
|
+
var loremText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
|
61
62
|
var messages = [{
|
62
63
|
key: 'message1',
|
63
|
-
text:
|
64
|
+
text: loremText
|
64
65
|
}, {
|
65
66
|
key: 'message2',
|
66
|
-
text:
|
67
|
+
text: loremText,
|
67
68
|
status: 'success'
|
68
69
|
}, {
|
69
70
|
key: 'message3',
|
70
|
-
text:
|
71
|
+
text: loremText,
|
71
72
|
status: 'warning'
|
72
73
|
}, {
|
73
74
|
key: 'message4',
|
74
|
-
text:
|
75
|
+
text: loremText,
|
75
76
|
status: 'error'
|
76
77
|
}];
|
77
|
-
var messageText = ['WINDMILLS DO NOT WORK THAT WAY! GOOD NIGHT! Oh yeah, good luck with that.', "Oh no! The professor will hit me! But if Zoidberg 'fixes' it… then perhaps gifts! You've killed me! Oh, you've killed me!", 'Does anybody else feel jealous and aroused and worried?', "Stop it, stop it. It's fine. I will 'destroy' you! Um, is this the boring, peaceful kind of taking to the streets?", "She also liked to shut up! Fry! Stay back! He's too powerful!", "This opera's as lousy as it is brilliant! Your lyrics lack subtlety. You can't just have your characters announce how they feel."];
|
78
78
|
var Default = function Default(args) {
|
79
79
|
return (0, _react2.jsx)(_index.Messages, args, (0, _react2.jsx)(_reactStately.Item, {
|
80
80
|
key: "message1",
|
81
81
|
"data-id": "message1"
|
82
|
-
},
|
82
|
+
}, loremText), (0, _react2.jsx)(_reactStately.Item, {
|
83
83
|
key: "message2",
|
84
84
|
"data-id": "message2",
|
85
85
|
status: "success"
|
86
|
-
},
|
86
|
+
}, loremText));
|
87
87
|
};
|
88
88
|
exports.Default = Default;
|
89
89
|
var DefaultDynamic = function DefaultDynamic(args) {
|
@@ -135,7 +135,7 @@ var ControlledWithButton = function ControlledWithButton(args) {
|
|
135
135
|
var _context;
|
136
136
|
setItems((0, _concat["default"])(_context = []).call(_context, items, [{
|
137
137
|
key: "message".concat(items.length + 1),
|
138
|
-
text:
|
138
|
+
text: loremText,
|
139
139
|
status: (0, _values["default"])(_statuses["default"])[Math.floor(Math.random() * 4)]
|
140
140
|
}]));
|
141
141
|
};
|
@@ -166,15 +166,7 @@ var WithCustomColorsAndIcons = function WithCustomColorsAndIcons(args) {
|
|
166
166
|
bg: "accent.99",
|
167
167
|
color: "active",
|
168
168
|
icon: _AccountIcon["default"]
|
169
|
-
},
|
170
|
-
bg: "accent.99",
|
171
|
-
color: "active",
|
172
|
-
icon: _AccountIcon["default"]
|
173
|
-
}, "Who said that? SURE you can die! You want to die?! Oh yeah, good luck with that. Stop! Do not shoot fire stick in space canoe! Cause explosive decompression!"), (0, _react2.jsx)(_reactStately.Item, {
|
174
|
-
bg: "accent.99",
|
175
|
-
color: "active",
|
176
|
-
icon: _AccountIcon["default"]
|
177
|
-
}, "Oh God, what have I done?"));
|
169
|
+
}, loremText));
|
178
170
|
};
|
179
171
|
exports.WithCustomColorsAndIcons = WithCustomColorsAndIcons;
|
180
172
|
var UseReducer = function UseReducer() {
|
@@ -197,8 +189,7 @@ var UseReducer = function UseReducer() {
|
|
197
189
|
dispatch = _useReducer2[1];
|
198
190
|
var showAMessage = function showAMessage() {
|
199
191
|
var actionFn = [_index2.messagesReducerStory.actions.showSuccessMessage, _index2.messagesReducerStory.actions.showErrorMessage, _index2.messagesReducerStory.actions.showWarningMessage][Math.floor(Math.random() * 3)];
|
200
|
-
|
201
|
-
actionFn(message)(dispatch);
|
192
|
+
actionFn(loremText)(dispatch);
|
202
193
|
};
|
203
194
|
var removeMessage = function removeMessage(key) {
|
204
195
|
dispatch(_index2.messagesReducerStory.actions.hideMessage(key));
|
@@ -231,8 +222,7 @@ var UseReducerWithMultipleContainers = function UseReducerWithMultipleContainers
|
|
231
222
|
dispatch = _useReducer4[1];
|
232
223
|
var showAMessage = function showAMessage(container) {
|
233
224
|
var actionFn = [_index2.multiMessagesReducerStory.actions.showSuccessMessage, _index2.multiMessagesReducerStory.actions.showCriticalMessage, _index2.multiMessagesReducerStory.actions.showWarningMessage][Math.floor(Math.random() * 3)];
|
234
|
-
|
235
|
-
actionFn(container, message)(dispatch);
|
225
|
+
actionFn(container, loremText)(dispatch);
|
236
226
|
};
|
237
227
|
var removeMessage = function removeMessage(key, container) {
|
238
228
|
dispatch(_index2.multiMessagesReducerStory.actions.hideMessage(container, key));
|
@@ -277,18 +267,18 @@ exports.UseReducerWithMultipleContainers = UseReducerWithMultipleContainers;
|
|
277
267
|
var WithTextStyling = function WithTextStyling(args) {
|
278
268
|
var items = [{
|
279
269
|
key: 'message1',
|
280
|
-
node: (0, _react2.jsx)("strong", null,
|
270
|
+
node: (0, _react2.jsx)("strong", null, loremText)
|
281
271
|
}, {
|
282
272
|
key: 'message2',
|
283
|
-
text:
|
273
|
+
text: loremText,
|
284
274
|
status: 'success'
|
285
275
|
}, {
|
286
276
|
key: 'message3',
|
287
|
-
text:
|
277
|
+
text: loremText,
|
288
278
|
status: 'warning'
|
289
279
|
}, {
|
290
280
|
key: 'message4',
|
291
|
-
node: (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)("b", null, "
|
281
|
+
node: (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)("b", null, "Lorem Ipsum! "), loremText),
|
292
282
|
status: 'error'
|
293
283
|
}];
|
294
284
|
return (0, _react2.jsx)(_index.Messages, (0, _extends2["default"])({}, args, {
|
@@ -42,22 +42,21 @@ export var Default = function Default(args) {
|
|
42
42
|
return ___EmotionJSX(Breadcrumbs, _extends({
|
43
43
|
onAction: onAction
|
44
44
|
}, args), ___EmotionJSX(Item, {
|
45
|
-
key: "home",
|
46
45
|
"aria-label": "home",
|
47
|
-
variant: "buttons.link",
|
48
46
|
"data-id": "home",
|
49
|
-
href: "https://www.pingidentity.com"
|
47
|
+
href: "https://www.pingidentity.com",
|
48
|
+
key: "home",
|
49
|
+
variant: "buttons.link"
|
50
50
|
}, "Home"), ___EmotionJSX(Item, {
|
51
|
-
key: "trendy",
|
52
51
|
"aria-label": "trendy",
|
53
|
-
variant: "buttons.link",
|
54
52
|
"data-id": "trendy",
|
55
|
-
href: "https://www.pingidentity.com"
|
53
|
+
href: "https://www.pingidentity.com",
|
54
|
+
key: "trendy",
|
55
|
+
variant: "buttons.link"
|
56
56
|
}, "Trendy"), ___EmotionJSX(Item, {
|
57
|
-
key: "march 2020 assets",
|
58
57
|
"aria-label": "march-2020-assets",
|
59
|
-
variant: "buttons.link",
|
60
58
|
"data-id": "march",
|
61
|
-
|
59
|
+
key: "march 2020 assets",
|
60
|
+
variant: "buttons.link"
|
62
61
|
}, "March 2020 Assets"));
|
63
62
|
};
|
@@ -45,32 +45,32 @@ export default {
|
|
45
45
|
}
|
46
46
|
}
|
47
47
|
};
|
48
|
+
var loremText = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
|
48
49
|
var messages = [{
|
49
50
|
key: 'message1',
|
50
|
-
text:
|
51
|
+
text: loremText
|
51
52
|
}, {
|
52
53
|
key: 'message2',
|
53
|
-
text:
|
54
|
+
text: loremText,
|
54
55
|
status: 'success'
|
55
56
|
}, {
|
56
57
|
key: 'message3',
|
57
|
-
text:
|
58
|
+
text: loremText,
|
58
59
|
status: 'warning'
|
59
60
|
}, {
|
60
61
|
key: 'message4',
|
61
|
-
text:
|
62
|
+
text: loremText,
|
62
63
|
status: 'error'
|
63
64
|
}];
|
64
|
-
var messageText = ['WINDMILLS DO NOT WORK THAT WAY! GOOD NIGHT! Oh yeah, good luck with that.', "Oh no! The professor will hit me! But if Zoidberg 'fixes' it… then perhaps gifts! You've killed me! Oh, you've killed me!", 'Does anybody else feel jealous and aroused and worried?', "Stop it, stop it. It's fine. I will 'destroy' you! Um, is this the boring, peaceful kind of taking to the streets?", "She also liked to shut up! Fry! Stay back! He's too powerful!", "This opera's as lousy as it is brilliant! Your lyrics lack subtlety. You can't just have your characters announce how they feel."];
|
65
65
|
export var Default = function Default(args) {
|
66
66
|
return ___EmotionJSX(Messages, args, ___EmotionJSX(Item, {
|
67
67
|
key: "message1",
|
68
68
|
"data-id": "message1"
|
69
|
-
},
|
69
|
+
}, loremText), ___EmotionJSX(Item, {
|
70
70
|
key: "message2",
|
71
71
|
"data-id": "message2",
|
72
72
|
status: "success"
|
73
|
-
},
|
73
|
+
}, loremText));
|
74
74
|
};
|
75
75
|
export var DefaultDynamic = function DefaultDynamic(args) {
|
76
76
|
return (
|
@@ -119,7 +119,7 @@ export var ControlledWithButton = function ControlledWithButton(args) {
|
|
119
119
|
var _context;
|
120
120
|
setItems(_concatInstanceProperty(_context = []).call(_context, items, [{
|
121
121
|
key: "message".concat(items.length + 1),
|
122
|
-
text:
|
122
|
+
text: loremText,
|
123
123
|
status: _Object$values(statuses)[Math.floor(Math.random() * 4)]
|
124
124
|
}]));
|
125
125
|
};
|
@@ -149,15 +149,7 @@ export var WithCustomColorsAndIcons = function WithCustomColorsAndIcons(args) {
|
|
149
149
|
bg: "accent.99",
|
150
150
|
color: "active",
|
151
151
|
icon: AccountIcon
|
152
|
-
},
|
153
|
-
bg: "accent.99",
|
154
|
-
color: "active",
|
155
|
-
icon: AccountIcon
|
156
|
-
}, "Who said that? SURE you can die! You want to die?! Oh yeah, good luck with that. Stop! Do not shoot fire stick in space canoe! Cause explosive decompression!"), ___EmotionJSX(Item, {
|
157
|
-
bg: "accent.99",
|
158
|
-
color: "active",
|
159
|
-
icon: AccountIcon
|
160
|
-
}, "Oh God, what have I done?"));
|
152
|
+
}, loremText));
|
161
153
|
};
|
162
154
|
export var UseReducer = function UseReducer() {
|
163
155
|
// import { messagesReducer as messagesReducerCore } from '@pingux/astro';
|
@@ -179,8 +171,7 @@ export var UseReducer = function UseReducer() {
|
|
179
171
|
dispatch = _useReducer2[1];
|
180
172
|
var showAMessage = function showAMessage() {
|
181
173
|
var actionFn = [messagesReducer.actions.showSuccessMessage, messagesReducer.actions.showErrorMessage, messagesReducer.actions.showWarningMessage][Math.floor(Math.random() * 3)];
|
182
|
-
|
183
|
-
actionFn(message)(dispatch);
|
174
|
+
actionFn(loremText)(dispatch);
|
184
175
|
};
|
185
176
|
var removeMessage = function removeMessage(key) {
|
186
177
|
dispatch(messagesReducer.actions.hideMessage(key));
|
@@ -212,8 +203,7 @@ export var UseReducerWithMultipleContainers = function UseReducerWithMultipleCon
|
|
212
203
|
dispatch = _useReducer4[1];
|
213
204
|
var showAMessage = function showAMessage(container) {
|
214
205
|
var actionFn = [multiMessagesReducer.actions.showSuccessMessage, multiMessagesReducer.actions.showCriticalMessage, multiMessagesReducer.actions.showWarningMessage][Math.floor(Math.random() * 3)];
|
215
|
-
|
216
|
-
actionFn(container, message)(dispatch);
|
206
|
+
actionFn(container, loremText)(dispatch);
|
217
207
|
};
|
218
208
|
var removeMessage = function removeMessage(key, container) {
|
219
209
|
dispatch(multiMessagesReducer.actions.hideMessage(container, key));
|
@@ -257,18 +247,18 @@ export var UseReducerWithMultipleContainers = function UseReducerWithMultipleCon
|
|
257
247
|
export var WithTextStyling = function WithTextStyling(args) {
|
258
248
|
var items = [{
|
259
249
|
key: 'message1',
|
260
|
-
node: ___EmotionJSX("strong", null,
|
250
|
+
node: ___EmotionJSX("strong", null, loremText)
|
261
251
|
}, {
|
262
252
|
key: 'message2',
|
263
|
-
text:
|
253
|
+
text: loremText,
|
264
254
|
status: 'success'
|
265
255
|
}, {
|
266
256
|
key: 'message3',
|
267
|
-
text:
|
257
|
+
text: loremText,
|
268
258
|
status: 'warning'
|
269
259
|
}, {
|
270
260
|
key: 'message4',
|
271
|
-
node: ___EmotionJSX(React.Fragment, null, ___EmotionJSX("b", null, "
|
261
|
+
node: ___EmotionJSX(React.Fragment, null, ___EmotionJSX("b", null, "Lorem Ipsum! "), loremText),
|
272
262
|
status: 'error'
|
273
263
|
}];
|
274
264
|
return ___EmotionJSX(Messages, _extends({}, args, {
|