@pingux/astro 1.27.0-alpha.12 → 1.27.0-alpha.14
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/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -8
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +0 -35
- package/lib/cjs/components/PageHeader/PageHeader.js +1 -7
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +30 -38
- package/lib/cjs/recipes/ListAndPanel.stories.js +87 -102
- package/lib/cjs/recipes/MaskedValue.stories.js +5 -8
- package/lib/cjs/recipes/NeutralInput.stories.js +3 -6
- package/lib/cjs/recipes/RowLineChart.stories.js +70 -58
- package/lib/cjs/recipes/SelectedFieldOverlay.story.js +21 -25
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +72 -81
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -7
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +0 -25
- package/lib/components/PageHeader/PageHeader.js +1 -8
- package/lib/recipes/FlippableCaretMenuButton.stories.js +30 -38
- package/lib/recipes/ListAndPanel.stories.js +87 -102
- package/lib/recipes/MaskedValue.stories.js +5 -8
- package/lib/recipes/NeutralInput.stories.js +3 -6
- package/lib/recipes/RowLineChart.stories.js +70 -58
- package/lib/recipes/SelectedFieldOverlay.story.js +21 -25
- package/lib/recipes/TrialExperienceStatusBar.stories.js +72 -81
- package/package.json +1 -1
- package/lib/cjs/recipes/PageHeader.stories.js +0 -73
- package/lib/recipes/PageHeader.stories.js +0 -53
@@ -170,34 +170,6 @@ var zeroData = [{
|
|
170
170
|
id: 12,
|
171
171
|
value: 0
|
172
172
|
}];
|
173
|
-
var sx = {
|
174
|
-
container: {
|
175
|
-
backgroundColor: 'accent.99',
|
176
|
-
alignItems: 'center',
|
177
|
-
justifyContent: 'space-between',
|
178
|
-
pr: '20px'
|
179
|
-
},
|
180
|
-
button: {
|
181
|
-
ml: 'md',
|
182
|
-
pr: 'md'
|
183
|
-
},
|
184
|
-
chartTitleContainer: {
|
185
|
-
ml: '20px',
|
186
|
-
pr: 'md'
|
187
|
-
},
|
188
|
-
chartContainer: {
|
189
|
-
width: '100%',
|
190
|
-
height: '100%'
|
191
|
-
},
|
192
|
-
chart: {
|
193
|
-
width: '50',
|
194
|
-
height: '18'
|
195
|
-
},
|
196
|
-
chartTrendContainer: {
|
197
|
-
ml: 'md',
|
198
|
-
width: '50px'
|
199
|
-
}
|
200
|
-
};
|
201
173
|
|
202
174
|
var Default = function Default() {
|
203
175
|
var _useResizeObserver = (0, _useResizeObserver2["default"])(),
|
@@ -221,7 +193,10 @@ var Default = function Default() {
|
|
221
193
|
}, [isMobile]);
|
222
194
|
var EmptyData = (0, _react2.jsx)(_index.Box, {
|
223
195
|
isRow: true,
|
224
|
-
|
196
|
+
bg: "accent.99",
|
197
|
+
alignItems: "center",
|
198
|
+
justifyContent: "space-between",
|
199
|
+
pr: 20,
|
225
200
|
ref: ref
|
226
201
|
}, (0, _react2.jsx)(_index.Box, {
|
227
202
|
p: "md",
|
@@ -235,7 +210,8 @@ var Default = function Default() {
|
|
235
210
|
alignItems: "center"
|
236
211
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
237
212
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
238
|
-
|
213
|
+
ml: 20,
|
214
|
+
pr: 15
|
239
215
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
240
216
|
variant: "expandableRow.lineChart.title"
|
241
217
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -248,7 +224,8 @@ var Default = function Default() {
|
|
248
224
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
249
225
|
variant: "expandableRow.chartWrapper",
|
250
226
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
251
|
-
|
227
|
+
ml: 15,
|
228
|
+
pr: 15,
|
252
229
|
"aria-label": "line-chart button"
|
253
230
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
254
231
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -257,9 +234,11 @@ var Default = function Default() {
|
|
257
234
|
}, (0, _react2.jsx)(_index.Box, {
|
258
235
|
variant: "boxes.expandableRow.lineChart.chart"
|
259
236
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
260
|
-
|
237
|
+
width: "100%",
|
238
|
+
height: "100%"
|
261
239
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
262
|
-
|
240
|
+
width: 50,
|
241
|
+
height: 18,
|
263
242
|
data: chartData
|
264
243
|
}, (0, _react2.jsx)(_recharts.Line, {
|
265
244
|
type: "monotone",
|
@@ -270,7 +249,8 @@ var Default = function Default() {
|
|
270
249
|
variant: "expandableRow.lineChart.chartLabel"
|
271
250
|
}, "No data yet")), (0, _react2.jsx)(_index.Box, {
|
272
251
|
size: "sm",
|
273
|
-
|
252
|
+
ml: 15,
|
253
|
+
width: 50
|
274
254
|
}, (0, _react2.jsx)(_index.Text, {
|
275
255
|
variant: "expandableRow.lineChart.trend"
|
276
256
|
}, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -280,7 +260,10 @@ var Default = function Default() {
|
|
280
260
|
}))));
|
281
261
|
var FullData = (0, _react2.jsx)(_index.Box, {
|
282
262
|
isRow: true,
|
283
|
-
|
263
|
+
bg: "accent.99",
|
264
|
+
alignItems: "center",
|
265
|
+
justifyContent: "space-between",
|
266
|
+
pr: 20,
|
284
267
|
mt: 20
|
285
268
|
}, (0, _react2.jsx)(_index.Box, {
|
286
269
|
p: "md",
|
@@ -294,7 +277,8 @@ var Default = function Default() {
|
|
294
277
|
alignItems: "center"
|
295
278
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
296
279
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
297
|
-
|
280
|
+
ml: 20,
|
281
|
+
pr: 15
|
298
282
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
299
283
|
variant: "expandableRow.lineChart.title"
|
300
284
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -307,7 +291,8 @@ var Default = function Default() {
|
|
307
291
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
308
292
|
variant: "expandableRow.chartWrapper",
|
309
293
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
310
|
-
|
294
|
+
ml: 15,
|
295
|
+
pr: 15,
|
311
296
|
"aria-label": "line-chart button"
|
312
297
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
313
298
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -317,9 +302,11 @@ var Default = function Default() {
|
|
317
302
|
variant: "boxes.expandableRow.lineChart.chart",
|
318
303
|
width: 50
|
319
304
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
320
|
-
|
305
|
+
width: "100%",
|
306
|
+
height: "100%"
|
321
307
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
322
|
-
|
308
|
+
width: 50,
|
309
|
+
height: 18,
|
323
310
|
data: chartData
|
324
311
|
}, (0, _react2.jsx)(_recharts.Line, {
|
325
312
|
type: "monotone",
|
@@ -330,7 +317,8 @@ var Default = function Default() {
|
|
330
317
|
variant: "expandableRow.lineChart.chartLabel"
|
331
318
|
}, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
|
332
319
|
size: "sm",
|
333
|
-
|
320
|
+
ml: 15,
|
321
|
+
width: 50
|
334
322
|
}, (0, _react2.jsx)(_index.Text, {
|
335
323
|
variant: "expandableRow.lineChart.trend"
|
336
324
|
}, "+ 8.6%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -340,7 +328,10 @@ var Default = function Default() {
|
|
340
328
|
}))));
|
341
329
|
var PartialData = (0, _react2.jsx)(_index.Box, {
|
342
330
|
isRow: true,
|
343
|
-
|
331
|
+
bg: "accent.99",
|
332
|
+
alignItems: "center",
|
333
|
+
justifyContent: "space-between",
|
334
|
+
pr: 20,
|
344
335
|
mt: 20
|
345
336
|
}, (0, _react2.jsx)(_index.Box, {
|
346
337
|
p: "md",
|
@@ -354,7 +345,8 @@ var Default = function Default() {
|
|
354
345
|
alignItems: "center"
|
355
346
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
356
347
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
357
|
-
|
348
|
+
ml: 20,
|
349
|
+
pr: 15
|
358
350
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
359
351
|
variant: "expandableRow.lineChart.title"
|
360
352
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -367,7 +359,8 @@ var Default = function Default() {
|
|
367
359
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
368
360
|
variant: "expandableRow.chartWrapper",
|
369
361
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
370
|
-
|
362
|
+
ml: 15,
|
363
|
+
pr: 15,
|
371
364
|
"aria-label": "line-chart button"
|
372
365
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
373
366
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -377,9 +370,11 @@ var Default = function Default() {
|
|
377
370
|
variant: "boxes.expandableRow.lineChart.chart",
|
378
371
|
width: 50
|
379
372
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
380
|
-
|
373
|
+
width: "100%",
|
374
|
+
height: "100%"
|
381
375
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
382
|
-
|
376
|
+
width: 50,
|
377
|
+
height: 18,
|
383
378
|
data: partialDataData
|
384
379
|
}, (0, _react2.jsx)(_recharts.Line, {
|
385
380
|
type: "monotone",
|
@@ -390,7 +385,8 @@ var Default = function Default() {
|
|
390
385
|
variant: "expandableRow.lineChart.chartLabel"
|
391
386
|
}, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
|
392
387
|
size: "sm",
|
393
|
-
|
388
|
+
ml: 15,
|
389
|
+
width: 50
|
394
390
|
}, (0, _react2.jsx)(_index.Text, {
|
395
391
|
variant: "expandableRow.lineChart.trend"
|
396
392
|
}, "- 8.6%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -400,7 +396,10 @@ var Default = function Default() {
|
|
400
396
|
}))));
|
401
397
|
var ZeroData = (0, _react2.jsx)(_index.Box, {
|
402
398
|
isRow: true,
|
403
|
-
|
399
|
+
bg: "accent.99",
|
400
|
+
alignItems: "center",
|
401
|
+
justifyContent: "space-between",
|
402
|
+
pr: 20,
|
404
403
|
mt: 20
|
405
404
|
}, (0, _react2.jsx)(_index.Box, {
|
406
405
|
p: "md",
|
@@ -414,7 +413,8 @@ var Default = function Default() {
|
|
414
413
|
alignItems: "center"
|
415
414
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
416
415
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
417
|
-
|
416
|
+
ml: 20,
|
417
|
+
pr: 15
|
418
418
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
419
419
|
variant: "expandableRow.lineChart.title"
|
420
420
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -427,7 +427,8 @@ var Default = function Default() {
|
|
427
427
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
428
428
|
variant: "expandableRow.chartWrapper",
|
429
429
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
430
|
-
|
430
|
+
ml: 15,
|
431
|
+
pr: 15,
|
431
432
|
"aria-label": "line-chart button"
|
432
433
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
433
434
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -437,9 +438,11 @@ var Default = function Default() {
|
|
437
438
|
variant: "boxes.expandableRow.lineChart.chart",
|
438
439
|
width: 50
|
439
440
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
440
|
-
|
441
|
+
width: "100%",
|
442
|
+
height: "100%"
|
441
443
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
442
|
-
|
444
|
+
width: 50,
|
445
|
+
height: 18,
|
443
446
|
data: zeroData
|
444
447
|
}, (0, _react2.jsx)(_recharts.Line, {
|
445
448
|
type: "monotone",
|
@@ -450,7 +453,8 @@ var Default = function Default() {
|
|
450
453
|
variant: "expandableRow.lineChart.chartLabel"
|
451
454
|
}, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
|
452
455
|
size: "sm",
|
453
|
-
|
456
|
+
ml: 15,
|
457
|
+
width: 50
|
454
458
|
}, (0, _react2.jsx)(_index.Text, {
|
455
459
|
variant: "expandableRow.lineChart.trend"
|
456
460
|
}, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -460,7 +464,10 @@ var Default = function Default() {
|
|
460
464
|
}))));
|
461
465
|
var ZeroValues = (0, _react2.jsx)(_index.Box, {
|
462
466
|
isRow: true,
|
463
|
-
|
467
|
+
bg: "accent.99",
|
468
|
+
alignItems: "center",
|
469
|
+
justifyContent: "space-between",
|
470
|
+
pr: 20,
|
464
471
|
mt: 20
|
465
472
|
}, (0, _react2.jsx)(_index.Box, {
|
466
473
|
p: "md",
|
@@ -474,7 +481,8 @@ var Default = function Default() {
|
|
474
481
|
alignItems: "center"
|
475
482
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
476
483
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
477
|
-
|
484
|
+
ml: 20,
|
485
|
+
pr: 15
|
478
486
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
479
487
|
variant: "expandableRow.lineChart.title"
|
480
488
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -487,7 +495,8 @@ var Default = function Default() {
|
|
487
495
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
488
496
|
variant: "expandableRow.chartWrapper",
|
489
497
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
490
|
-
|
498
|
+
ml: 15,
|
499
|
+
pr: 15,
|
491
500
|
"aria-label": "line-chart button"
|
492
501
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
493
502
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -497,9 +506,11 @@ var Default = function Default() {
|
|
497
506
|
variant: "boxes.expandableRow.lineChart.chart",
|
498
507
|
width: 50
|
499
508
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
500
|
-
|
509
|
+
width: "100%",
|
510
|
+
height: "100%"
|
501
511
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
502
|
-
|
512
|
+
width: 50,
|
513
|
+
height: 18,
|
503
514
|
data: zeroValuesData
|
504
515
|
}, (0, _react2.jsx)(_recharts.Line, {
|
505
516
|
type: "monotone",
|
@@ -510,7 +521,8 @@ var Default = function Default() {
|
|
510
521
|
variant: "expandableRow.lineChart.chartLabel"
|
511
522
|
}, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
|
512
523
|
size: "sm",
|
513
|
-
|
524
|
+
ml: 15,
|
525
|
+
width: 50
|
514
526
|
}, (0, _react2.jsx)(_index.Text, {
|
515
527
|
variant: "expandableRow.lineChart.trend"
|
516
528
|
}, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -26,40 +26,36 @@ var _default = {
|
|
26
26
|
title: 'Recipes/Selected Field Overlay'
|
27
27
|
};
|
28
28
|
exports["default"] = _default;
|
29
|
-
var sx = {
|
30
|
-
container: {
|
31
|
-
padding: 'md',
|
32
|
-
position: 'relative',
|
33
|
-
borderWidth: 2,
|
34
|
-
borderStyle: 'solid',
|
35
|
-
borderColor: 'active',
|
36
|
-
borderRadius: 4,
|
37
|
-
cursor: 'pointer'
|
38
|
-
},
|
39
|
-
overlay: {
|
40
|
-
position: 'absolute',
|
41
|
-
width: '100%',
|
42
|
-
height: '100%',
|
43
|
-
top: 0,
|
44
|
-
left: 0,
|
45
|
-
alignItems: 'center',
|
46
|
-
justifyContent: 'center',
|
47
|
-
'&:focus': {
|
48
|
-
outline: 'none'
|
49
|
-
}
|
50
|
-
}
|
51
|
-
};
|
52
29
|
|
53
30
|
var Default = function Default() {
|
54
31
|
return (0, _react2.jsx)(_Box["default"], {
|
55
|
-
|
32
|
+
p: 15,
|
33
|
+
sx: {
|
34
|
+
position: 'relative',
|
35
|
+
borderWidth: 2,
|
36
|
+
borderStyle: 'solid',
|
37
|
+
borderColor: 'active',
|
38
|
+
borderRadius: 4,
|
39
|
+
cursor: 'pointer'
|
40
|
+
}
|
56
41
|
}, (0, _react2.jsx)(_TextField["default"], {
|
57
42
|
label: "Name",
|
58
43
|
controlProps: {
|
59
44
|
tabIndex: '-1'
|
60
45
|
}
|
61
46
|
}), (0, _react2.jsx)(_Box["default"], {
|
62
|
-
sx:
|
47
|
+
sx: {
|
48
|
+
position: 'absolute',
|
49
|
+
width: '100%',
|
50
|
+
height: '100%',
|
51
|
+
top: 0,
|
52
|
+
left: 0,
|
53
|
+
alignItems: 'center',
|
54
|
+
justifyContent: 'center',
|
55
|
+
'&:focus': {
|
56
|
+
outline: 'none'
|
57
|
+
}
|
58
|
+
},
|
63
59
|
tabIndex: "0"
|
64
60
|
}, (0, _react2.jsx)(_Icon["default"], {
|
65
61
|
icon: _VisibilityOffOutlineIcon["default"],
|
@@ -137,79 +137,6 @@ var data = [{
|
|
137
137
|
title: 'View a workflow'
|
138
138
|
}]
|
139
139
|
}];
|
140
|
-
var sx = {
|
141
|
-
iconContainer: {
|
142
|
-
backgroundColor: 'accent.80',
|
143
|
-
alignItems: 'center',
|
144
|
-
justifyContent: 'center',
|
145
|
-
mr: 'sm',
|
146
|
-
borderRadius: '50%',
|
147
|
-
zIndex: 3
|
148
|
-
},
|
149
|
-
headingSeparator: {
|
150
|
-
flexGrow: 1,
|
151
|
-
backgroundColor: 'accent.80',
|
152
|
-
maxHeight: '100%',
|
153
|
-
width: '6px !important',
|
154
|
-
zIndex: 2,
|
155
|
-
m: '0px 5px 0px 17px !important'
|
156
|
-
},
|
157
|
-
title: {
|
158
|
-
fontSize: 'md',
|
159
|
-
color: 'accent.30',
|
160
|
-
lineHeight: '18px',
|
161
|
-
fontWeight: '3',
|
162
|
-
m: '12px 0px 28px 5px',
|
163
|
-
maxWidth: '195px'
|
164
|
-
},
|
165
|
-
linkRowIconButton: {
|
166
|
-
'&.is-pressed': {
|
167
|
-
backgroundColor: 'transparent'
|
168
|
-
},
|
169
|
-
'&.is-pressed > svg > path': {
|
170
|
-
fill: 'accent.30'
|
171
|
-
},
|
172
|
-
'&.is-hovered': {
|
173
|
-
backgroundColor: 'transparent'
|
174
|
-
}
|
175
|
-
},
|
176
|
-
linkRowIconSelected: {
|
177
|
-
zIndex: 3,
|
178
|
-
'path': {
|
179
|
-
fill: 'accent.30'
|
180
|
-
}
|
181
|
-
},
|
182
|
-
linkRowIconNotSelected: {
|
183
|
-
zIndex: 3,
|
184
|
-
'path': {
|
185
|
-
fill: 'accent.80'
|
186
|
-
}
|
187
|
-
},
|
188
|
-
linkRowSeparator: {
|
189
|
-
flexGrow: 1,
|
190
|
-
backgroundColor: 'accent.30',
|
191
|
-
maxHeight: '100%',
|
192
|
-
width: '1px !important',
|
193
|
-
zIndex: 2,
|
194
|
-
m: '-5px 5px -5px 11.5px !important'
|
195
|
-
},
|
196
|
-
linkRowText: {
|
197
|
-
fontSize: 'md',
|
198
|
-
color: '#163CE3',
|
199
|
-
lineHeight: '18px',
|
200
|
-
fontWeight: '0',
|
201
|
-
m: '3px 0px 20px 10px',
|
202
|
-
maxWidth: '140px'
|
203
|
-
},
|
204
|
-
container: {
|
205
|
-
p: '15px 15px 0px 15px',
|
206
|
-
width: '280px',
|
207
|
-
backgroundColor: 'accent.95',
|
208
|
-
borderRadius: '8px',
|
209
|
-
zIndex: 1,
|
210
|
-
boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
|
211
|
-
}
|
212
|
-
};
|
213
140
|
|
214
141
|
var Stage = function Stage(props) {
|
215
142
|
var title = props.title,
|
@@ -245,7 +172,14 @@ var Stage = function Stage(props) {
|
|
245
172
|
}, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
|
246
173
|
minWidth: "39.5px",
|
247
174
|
minHeight: "39.5px",
|
248
|
-
sx:
|
175
|
+
sx: {
|
176
|
+
backgroundColor: 'accent.80',
|
177
|
+
alignItems: 'center',
|
178
|
+
justifyContent: 'center',
|
179
|
+
mr: '10px',
|
180
|
+
borderRadius: '50%',
|
181
|
+
zIndex: 3
|
182
|
+
}
|
249
183
|
}, (0, _react2.jsx)(_index.Icon, {
|
250
184
|
icon: icon,
|
251
185
|
color: "accent.40",
|
@@ -254,10 +188,24 @@ var Stage = function Stage(props) {
|
|
254
188
|
zIndex: 3
|
255
189
|
}
|
256
190
|
})), !isLastStage && (0, _react2.jsx)(_index.Separator, {
|
257
|
-
sx:
|
191
|
+
sx: {
|
192
|
+
flexGrow: 1,
|
193
|
+
backgroundColor: 'accent.80',
|
194
|
+
maxHeight: '100%',
|
195
|
+
width: '6px !important',
|
196
|
+
zIndex: 2,
|
197
|
+
m: '0px 5px 0px 17px !important'
|
198
|
+
},
|
258
199
|
orientation: "vertical"
|
259
200
|
})), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, {
|
260
|
-
sx:
|
201
|
+
sx: {
|
202
|
+
fontSize: '15px',
|
203
|
+
color: 'accent.30',
|
204
|
+
lineHeight: '18px',
|
205
|
+
fontWeight: '3',
|
206
|
+
m: '12px 0px 28px 5px',
|
207
|
+
maxWidth: '195px'
|
208
|
+
}
|
261
209
|
}, title), (0, _react2.jsx)(_index.Box, {
|
262
210
|
pl: "0px",
|
263
211
|
mb: "25px"
|
@@ -298,19 +246,53 @@ var LinkRow = function LinkRow(props) {
|
|
298
246
|
}
|
299
247
|
}, (0, _react2.jsx)(_index.IconButton, {
|
300
248
|
onPress: onIconPress,
|
301
|
-
sx:
|
249
|
+
sx: {
|
250
|
+
'&.is-pressed': {
|
251
|
+
backgroundColor: 'transparent'
|
252
|
+
},
|
253
|
+
'&.is-pressed > svg > path': {
|
254
|
+
fill: 'accent.30'
|
255
|
+
},
|
256
|
+
'&.is-hovered': {
|
257
|
+
backgroundColor: 'transparent'
|
258
|
+
}
|
259
|
+
},
|
302
260
|
"aria-label": "completed step icon indicator"
|
303
261
|
}, (0, _react2.jsx)(_index.Icon, {
|
304
262
|
icon: isSelected ? _CheckCircleIcon["default"] : RadioButtonIcon,
|
305
263
|
size: isSelected ? '20px' : '18px',
|
306
|
-
sx: isSelected ?
|
264
|
+
sx: isSelected ? {
|
265
|
+
zIndex: 3,
|
266
|
+
'path': {
|
267
|
+
fill: 'accent.30'
|
268
|
+
}
|
269
|
+
} : {
|
270
|
+
zIndex: 3,
|
271
|
+
'path': {
|
272
|
+
fill: 'accent.80'
|
273
|
+
}
|
274
|
+
}
|
307
275
|
}))), !isLastLink && isLinkSelected && (0, _react2.jsx)(_index.Separator, {
|
308
|
-
sx:
|
276
|
+
sx: {
|
277
|
+
flexGrow: 1,
|
278
|
+
backgroundColor: 'accent.30',
|
279
|
+
maxHeight: '100%',
|
280
|
+
width: '1px !important',
|
281
|
+
zIndex: 2,
|
282
|
+
m: '-5px 5px -5px 11.5px !important'
|
283
|
+
},
|
309
284
|
orientation: "vertical"
|
310
285
|
})), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, {
|
311
286
|
href: "https://www.pingidentity.com",
|
312
287
|
target: "_blank",
|
313
|
-
sx:
|
288
|
+
sx: {
|
289
|
+
fontSize: '15px',
|
290
|
+
color: '#163CE3',
|
291
|
+
lineHeight: '18px',
|
292
|
+
fontWeight: '0',
|
293
|
+
m: '3px 0px 20px 10px',
|
294
|
+
maxWidth: '140px'
|
295
|
+
}
|
314
296
|
}, title)));
|
315
297
|
};
|
316
298
|
|
@@ -318,7 +300,16 @@ var Default = function Default() {
|
|
318
300
|
// Open the `Story` addons tab to view the source code for full context.
|
319
301
|
return (0, _react2.jsx)(_index.Box, {
|
320
302
|
as: "nav",
|
321
|
-
|
303
|
+
backgroundColor: "accent.95",
|
304
|
+
width: "280px",
|
305
|
+
sx: {
|
306
|
+
p: '15px 15px 0px 15px',
|
307
|
+
width: '280px',
|
308
|
+
backgroundColor: 'accent.95',
|
309
|
+
borderRadius: '8px',
|
310
|
+
zIndex: 1,
|
311
|
+
boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
|
312
|
+
}
|
322
313
|
}, (0, _react2.jsx)(_index.Box, {
|
323
314
|
paddingLeft: "0px"
|
324
315
|
}, (0, _map["default"])(data).call(data, function (stage, index) {
|
@@ -12,7 +12,7 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
|
|
12
12
|
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
13
13
|
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
14
14
|
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
15
|
-
var _excluded = ["children", "disabledKeys", "emptySearchText", "isDefaultOpen", "isOpen", "items", "itemsFilter", "onOpenChange", "onNamePress", "onPopoverClose", "onPopoverOpen", "onSelectionChange", "name", "searchProps", "selectedItem"
|
15
|
+
var _excluded = ["children", "disabledKeys", "emptySearchText", "isDefaultOpen", "isOpen", "items", "itemsFilter", "onOpenChange", "onNamePress", "onPopoverClose", "onPopoverOpen", "onSelectionChange", "name", "searchProps", "selectedItem"];
|
16
16
|
|
17
17
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
18
18
|
|
@@ -25,7 +25,6 @@ import HomeIcon from 'mdi-react/HomeIcon';
|
|
25
25
|
import PropTypes from 'prop-types';
|
26
26
|
import { useOverlayTriggerState } from '@react-stately/overlays';
|
27
27
|
import { useOverlayPosition, useOverlayTrigger } from '@react-aria/overlays';
|
28
|
-
import { mergeProps } from '@react-aria/utils';
|
29
28
|
import ArrowDropUpIcon from 'mdi-react/ArrowDropUpIcon';
|
30
29
|
import ArrowDropDownIcon from 'mdi-react/ArrowDropDownIcon';
|
31
30
|
import { FocusScope } from '@react-aria/focus';
|
@@ -52,7 +51,6 @@ var EnvironmentBreadcrumb = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
52
51
|
name = props.name,
|
53
52
|
searchProps = props.searchProps,
|
54
53
|
selectedItem = props.selectedItem,
|
55
|
-
popoverProps = props.popoverProps,
|
56
54
|
others = _objectWithoutProperties(props, _excluded);
|
57
55
|
|
58
56
|
var _useState = useState(''),
|
@@ -217,7 +215,7 @@ var EnvironmentBreadcrumb = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
217
215
|
"aria-label": "".concat((typeof selectedItem === 'string' ? selectedItem : selectedValue) || 'Selected Item')
|
218
216
|
}), selectedItem, ___EmotionJSX(Icon, {
|
219
217
|
icon: popoverState.isOpen ? ArrowDropUpIcon : ArrowDropDownIcon
|
220
|
-
})), ___EmotionJSX(PopoverContainer, _extends({}, overlayProps, positionProps,
|
218
|
+
})), ___EmotionJSX(PopoverContainer, _extends({}, overlayProps, positionProps, {
|
221
219
|
ref: overlayRef,
|
222
220
|
isOpen: popoverState.isOpen,
|
223
221
|
scrollRef: scrollBoxRef,
|
@@ -305,9 +303,6 @@ EnvironmentBreadcrumb.propTypes = {
|
|
305
303
|
/** Callback function that fires when the dropdown is closed. */
|
306
304
|
onPopoverClose: PropTypes.func,
|
307
305
|
|
308
|
-
/** Props object that is spread directly into the popover container component. */
|
309
|
-
popoverProps: PropTypes.shape({}),
|
310
|
-
|
311
306
|
/** Props object that is spread directly into the SearchField element. */
|
312
307
|
searchProps: PropTypes.shape({}),
|
313
308
|
|
@@ -1,20 +1,6 @@
|
|
1
|
-
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
2
|
-
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
3
|
-
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
4
|
-
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
5
|
-
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
6
|
-
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
7
|
-
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
8
|
-
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
9
1
|
import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
|
10
2
|
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
11
|
-
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
12
3
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
13
|
-
|
14
|
-
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
15
|
-
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
17
|
-
|
18
4
|
import React from 'react';
|
19
5
|
import userEvent from '@testing-library/user-event';
|
20
6
|
import { Section } from '@react-stately/collections';
|
@@ -52,10 +38,6 @@ var defaultProps = {
|
|
52
38
|
},
|
53
39
|
items: items
|
54
40
|
};
|
55
|
-
var popoverProps = {
|
56
|
-
maxWidth: '100px',
|
57
|
-
'data-testid': 'popover-container'
|
58
|
-
};
|
59
41
|
var defaultWithSectionsProps = {
|
60
42
|
'data-testid': testEnvBreadcrumb,
|
61
43
|
name: testName,
|
@@ -133,13 +115,6 @@ test('should display name', function () {
|
|
133
115
|
getComponent();
|
134
116
|
expect(screen.getByText(testName)).toBeInTheDocument();
|
135
117
|
});
|
136
|
-
test('should spread props into popover container', function () {
|
137
|
-
getComponent(_objectSpread(_objectSpread({}, popoverProps), {}, {
|
138
|
-
isDefaultOpen: true
|
139
|
-
}));
|
140
|
-
userEvent.click(screen.getByText(testSelectedItem));
|
141
|
-
expect(screen.queryByTestId('popover-container')).toHaveStyle('max-width: 100px');
|
142
|
-
});
|
143
118
|
test('should display selectedItem', function () {
|
144
119
|
getComponent();
|
145
120
|
expect(screen.getByText(testSelectedItem)).toBeInTheDocument();
|
@@ -6,20 +6,13 @@ import PropTypes from 'prop-types';
|
|
6
6
|
import Text from '../Text/Text';
|
7
7
|
import Box from '../Box/Box';
|
8
8
|
import { useDeprecationWarning } from '../../hooks';
|
9
|
-
/**
|
10
|
-
* A `Page Header` is a composed component using text and icon button.
|
11
|
-
* The component is separated from the body and appears at the top.
|
12
|
-
* For customization,
|
13
|
-
* please see [Page Header](./?path=/story/recipes-page-header--default) recipe docs.
|
14
|
-
*/
|
15
|
-
|
16
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
17
10
|
var PageHeader = /*#__PURE__*/forwardRef(function (props, ref) {
|
18
11
|
var title = props.title,
|
19
12
|
children = props.children,
|
20
13
|
others = _objectWithoutProperties(props, _excluded);
|
21
14
|
|
22
|
-
useDeprecationWarning('The Page Header component will be deprecated in Astro-UI 2.0.0.
|
15
|
+
useDeprecationWarning('The Page Header component will be deprecated in Astro-UI 2.0.0.');
|
23
16
|
return ___EmotionJSX(Box, _extends({
|
24
17
|
isRow: true,
|
25
18
|
justifyContent: "space-between",
|