@pingux/astro 1.27.0-alpha.14 → 1.27.0-alpha.16
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/DataTable/DataTable.js +477 -0
- package/lib/cjs/components/DataTable/DataTable.stories.js +310 -0
- package/lib/cjs/components/DataTable/DataTable.styles.js +156 -0
- package/lib/cjs/components/DataTable/DataTable.test.js +1307 -0
- package/lib/cjs/components/DataTable/DataTableChip.js +63 -0
- package/lib/cjs/components/DataTable/DataTableChip.test.js +38 -0
- package/lib/cjs/components/DataTable/DataTableMenu.js +51 -0
- package/lib/cjs/components/DataTable/DataTableMenu.test.js +20 -0
- package/lib/cjs/components/DataTable/DataTableMultiLine.js +75 -0
- package/lib/cjs/components/DataTable/DataTableMultiLine.test.js +30 -0
- package/lib/cjs/components/DataTable/DataTableVirtualizer.js +188 -0
- package/lib/cjs/components/DataTable/index.js +54 -0
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +8 -2
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +35 -0
- package/lib/cjs/components/PageHeader/PageHeader.js +7 -1
- package/lib/cjs/context/DataTableContext/index.js +31 -0
- package/lib/cjs/index.js +67 -2
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +38 -30
- package/lib/cjs/recipes/ListAndPanel.stories.js +102 -87
- package/lib/cjs/recipes/MaskedValue.stories.js +8 -5
- package/lib/cjs/recipes/NeutralInput.stories.js +6 -3
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +38 -33
- package/lib/cjs/recipes/PageHeader.stories.js +73 -0
- package/lib/cjs/recipes/RowLineChart.stories.js +58 -70
- package/lib/cjs/recipes/SelectedFieldOverlay.story.js +25 -21
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +81 -72
- package/lib/cjs/styles/variants/variants.js +4 -1
- package/lib/components/DataTable/DataTable.js +431 -0
- package/lib/components/DataTable/DataTable.stories.js +273 -0
- package/lib/components/DataTable/DataTable.styles.js +137 -0
- package/lib/components/DataTable/DataTable.test.js +1256 -0
- package/lib/components/DataTable/DataTableChip.js +33 -0
- package/lib/components/DataTable/DataTableChip.test.js +31 -0
- package/lib/components/DataTable/DataTableMenu.js +24 -0
- package/lib/components/DataTable/DataTableMenu.test.js +13 -0
- package/lib/components/DataTable/DataTableMultiLine.js +46 -0
- package/lib/components/DataTable/DataTableMultiLine.test.js +22 -0
- package/lib/components/DataTable/DataTableVirtualizer.js +157 -0
- package/lib/components/DataTable/index.js +5 -0
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +7 -2
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +25 -0
- package/lib/components/PageHeader/PageHeader.js +8 -1
- package/lib/context/DataTableContext/index.js +5 -0
- package/lib/index.js +4 -1
- package/lib/recipes/FlippableCaretMenuButton.stories.js +38 -30
- package/lib/recipes/ListAndPanel.stories.js +102 -87
- package/lib/recipes/MaskedValue.stories.js +8 -5
- package/lib/recipes/NeutralInput.stories.js +6 -3
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +38 -33
- package/lib/recipes/PageHeader.stories.js +53 -0
- package/lib/recipes/RowLineChart.stories.js +58 -70
- package/lib/recipes/SelectedFieldOverlay.story.js +25 -21
- package/lib/recipes/TrialExperienceStatusBar.stories.js +81 -72
- package/lib/styles/variants/variants.js +3 -1
- package/package.json +55 -50
@@ -138,6 +138,34 @@ var zeroData = [{
|
|
138
138
|
id: 12,
|
139
139
|
value: 0
|
140
140
|
}];
|
141
|
+
var sx = {
|
142
|
+
container: {
|
143
|
+
backgroundColor: 'accent.99',
|
144
|
+
alignItems: 'center',
|
145
|
+
justifyContent: 'space-between',
|
146
|
+
pr: '20px'
|
147
|
+
},
|
148
|
+
button: {
|
149
|
+
ml: 'md',
|
150
|
+
pr: 'md'
|
151
|
+
},
|
152
|
+
chartTitleContainer: {
|
153
|
+
ml: '20px',
|
154
|
+
pr: 'md'
|
155
|
+
},
|
156
|
+
chartContainer: {
|
157
|
+
width: '100%',
|
158
|
+
height: '100%'
|
159
|
+
},
|
160
|
+
chart: {
|
161
|
+
width: '50',
|
162
|
+
height: '18'
|
163
|
+
},
|
164
|
+
chartTrendContainer: {
|
165
|
+
ml: 'md',
|
166
|
+
width: '50px'
|
167
|
+
}
|
168
|
+
};
|
141
169
|
export var Default = function Default() {
|
142
170
|
var _useResizeObserver = useResizeObserver(),
|
143
171
|
ref = _useResizeObserver.ref,
|
@@ -161,10 +189,7 @@ export var Default = function Default() {
|
|
161
189
|
|
162
190
|
var EmptyData = ___EmotionJSX(Box, {
|
163
191
|
isRow: true,
|
164
|
-
|
165
|
-
alignItems: "center",
|
166
|
-
justifyContent: "space-between",
|
167
|
-
pr: 20,
|
192
|
+
sx: sx.container,
|
168
193
|
ref: ref
|
169
194
|
}, ___EmotionJSX(Box, {
|
170
195
|
p: "md",
|
@@ -178,8 +203,7 @@ export var Default = function Default() {
|
|
178
203
|
alignItems: "center"
|
179
204
|
}, ___EmotionJSX(Box, _extends({
|
180
205
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
181
|
-
|
182
|
-
pr: 15
|
206
|
+
sx: sx.chartTitleContainer
|
183
207
|
}, hideIfMobile()), ___EmotionJSX(Text, {
|
184
208
|
variant: "expandableRow.lineChart.title"
|
185
209
|
}, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
|
@@ -192,8 +216,7 @@ export var Default = function Default() {
|
|
192
216
|
}, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
|
193
217
|
variant: "expandableRow.chartWrapper",
|
194
218
|
onPress: action('seeContributingDataAction'),
|
195
|
-
|
196
|
-
pr: 15,
|
219
|
+
sx: sx.button,
|
197
220
|
"aria-label": "line-chart button"
|
198
221
|
}, hideIfTablet()), ___EmotionJSX(Box, {
|
199
222
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -202,11 +225,9 @@ export var Default = function Default() {
|
|
202
225
|
}, ___EmotionJSX(Box, {
|
203
226
|
variant: "boxes.expandableRow.lineChart.chart"
|
204
227
|
}, ___EmotionJSX(ResponsiveContainer, {
|
205
|
-
|
206
|
-
height: "100%"
|
228
|
+
sx: sx.chartContainer
|
207
229
|
}, ___EmotionJSX(LineChart, {
|
208
|
-
|
209
|
-
height: 18,
|
230
|
+
sx: sx.chart,
|
210
231
|
data: chartData
|
211
232
|
}, ___EmotionJSX(Line, {
|
212
233
|
type: "monotone",
|
@@ -217,8 +238,7 @@ export var Default = function Default() {
|
|
217
238
|
variant: "expandableRow.lineChart.chartLabel"
|
218
239
|
}, "No data yet")), ___EmotionJSX(Box, {
|
219
240
|
size: "sm",
|
220
|
-
|
221
|
-
width: 50
|
241
|
+
sx: sx.chartTrendContainer
|
222
242
|
}, ___EmotionJSX(Text, {
|
223
243
|
variant: "expandableRow.lineChart.trend"
|
224
244
|
}, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
|
@@ -229,10 +249,7 @@ export var Default = function Default() {
|
|
229
249
|
|
230
250
|
var FullData = ___EmotionJSX(Box, {
|
231
251
|
isRow: true,
|
232
|
-
|
233
|
-
alignItems: "center",
|
234
|
-
justifyContent: "space-between",
|
235
|
-
pr: 20,
|
252
|
+
sx: sx.container,
|
236
253
|
mt: 20
|
237
254
|
}, ___EmotionJSX(Box, {
|
238
255
|
p: "md",
|
@@ -246,8 +263,7 @@ export var Default = function Default() {
|
|
246
263
|
alignItems: "center"
|
247
264
|
}, ___EmotionJSX(Box, _extends({
|
248
265
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
249
|
-
|
250
|
-
pr: 15
|
266
|
+
sx: sx.chartTitleContainer
|
251
267
|
}, hideIfMobile()), ___EmotionJSX(Text, {
|
252
268
|
variant: "expandableRow.lineChart.title"
|
253
269
|
}, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
|
@@ -260,8 +276,7 @@ export var Default = function Default() {
|
|
260
276
|
}, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
|
261
277
|
variant: "expandableRow.chartWrapper",
|
262
278
|
onPress: action('seeContributingDataAction'),
|
263
|
-
|
264
|
-
pr: 15,
|
279
|
+
sx: sx.button,
|
265
280
|
"aria-label": "line-chart button"
|
266
281
|
}, hideIfTablet()), ___EmotionJSX(Box, {
|
267
282
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -271,11 +286,9 @@ export var Default = function Default() {
|
|
271
286
|
variant: "boxes.expandableRow.lineChart.chart",
|
272
287
|
width: 50
|
273
288
|
}, ___EmotionJSX(ResponsiveContainer, {
|
274
|
-
|
275
|
-
height: "100%"
|
289
|
+
sx: sx.chartContainer
|
276
290
|
}, ___EmotionJSX(LineChart, {
|
277
|
-
|
278
|
-
height: 18,
|
291
|
+
sx: sx.chart,
|
279
292
|
data: chartData
|
280
293
|
}, ___EmotionJSX(Line, {
|
281
294
|
type: "monotone",
|
@@ -286,8 +299,7 @@ export var Default = function Default() {
|
|
286
299
|
variant: "expandableRow.lineChart.chartLabel"
|
287
300
|
}, "12 wk trend")), ___EmotionJSX(Box, {
|
288
301
|
size: "sm",
|
289
|
-
|
290
|
-
width: 50
|
302
|
+
sx: sx.chartTrendContainer
|
291
303
|
}, ___EmotionJSX(Text, {
|
292
304
|
variant: "expandableRow.lineChart.trend"
|
293
305
|
}, "+ 8.6%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
|
@@ -298,10 +310,7 @@ export var Default = function Default() {
|
|
298
310
|
|
299
311
|
var PartialData = ___EmotionJSX(Box, {
|
300
312
|
isRow: true,
|
301
|
-
|
302
|
-
alignItems: "center",
|
303
|
-
justifyContent: "space-between",
|
304
|
-
pr: 20,
|
313
|
+
sx: sx.container,
|
305
314
|
mt: 20
|
306
315
|
}, ___EmotionJSX(Box, {
|
307
316
|
p: "md",
|
@@ -315,8 +324,7 @@ export var Default = function Default() {
|
|
315
324
|
alignItems: "center"
|
316
325
|
}, ___EmotionJSX(Box, _extends({
|
317
326
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
318
|
-
|
319
|
-
pr: 15
|
327
|
+
sx: sx.chartTitleContainer
|
320
328
|
}, hideIfMobile()), ___EmotionJSX(Text, {
|
321
329
|
variant: "expandableRow.lineChart.title"
|
322
330
|
}, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
|
@@ -329,8 +337,7 @@ export var Default = function Default() {
|
|
329
337
|
}, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
|
330
338
|
variant: "expandableRow.chartWrapper",
|
331
339
|
onPress: action('seeContributingDataAction'),
|
332
|
-
|
333
|
-
pr: 15,
|
340
|
+
sx: sx.button,
|
334
341
|
"aria-label": "line-chart button"
|
335
342
|
}, hideIfTablet()), ___EmotionJSX(Box, {
|
336
343
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -340,11 +347,9 @@ export var Default = function Default() {
|
|
340
347
|
variant: "boxes.expandableRow.lineChart.chart",
|
341
348
|
width: 50
|
342
349
|
}, ___EmotionJSX(ResponsiveContainer, {
|
343
|
-
|
344
|
-
height: "100%"
|
350
|
+
sx: sx.chartContainer
|
345
351
|
}, ___EmotionJSX(LineChart, {
|
346
|
-
|
347
|
-
height: 18,
|
352
|
+
sx: sx.chart,
|
348
353
|
data: partialDataData
|
349
354
|
}, ___EmotionJSX(Line, {
|
350
355
|
type: "monotone",
|
@@ -355,8 +360,7 @@ export var Default = function Default() {
|
|
355
360
|
variant: "expandableRow.lineChart.chartLabel"
|
356
361
|
}, "12 wk trend")), ___EmotionJSX(Box, {
|
357
362
|
size: "sm",
|
358
|
-
|
359
|
-
width: 50
|
363
|
+
sx: sx.chartTrendContainer
|
360
364
|
}, ___EmotionJSX(Text, {
|
361
365
|
variant: "expandableRow.lineChart.trend"
|
362
366
|
}, "- 8.6%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
|
@@ -367,10 +371,7 @@ export var Default = function Default() {
|
|
367
371
|
|
368
372
|
var ZeroData = ___EmotionJSX(Box, {
|
369
373
|
isRow: true,
|
370
|
-
|
371
|
-
alignItems: "center",
|
372
|
-
justifyContent: "space-between",
|
373
|
-
pr: 20,
|
374
|
+
sx: sx.container,
|
374
375
|
mt: 20
|
375
376
|
}, ___EmotionJSX(Box, {
|
376
377
|
p: "md",
|
@@ -384,8 +385,7 @@ export var Default = function Default() {
|
|
384
385
|
alignItems: "center"
|
385
386
|
}, ___EmotionJSX(Box, _extends({
|
386
387
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
387
|
-
|
388
|
-
pr: 15
|
388
|
+
sx: sx.chartTitleContainer
|
389
389
|
}, hideIfMobile()), ___EmotionJSX(Text, {
|
390
390
|
variant: "expandableRow.lineChart.title"
|
391
391
|
}, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
|
@@ -398,8 +398,7 @@ export var Default = function Default() {
|
|
398
398
|
}, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
|
399
399
|
variant: "expandableRow.chartWrapper",
|
400
400
|
onPress: action('seeContributingDataAction'),
|
401
|
-
|
402
|
-
pr: 15,
|
401
|
+
sx: sx.button,
|
403
402
|
"aria-label": "line-chart button"
|
404
403
|
}, hideIfTablet()), ___EmotionJSX(Box, {
|
405
404
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -409,11 +408,9 @@ export var Default = function Default() {
|
|
409
408
|
variant: "boxes.expandableRow.lineChart.chart",
|
410
409
|
width: 50
|
411
410
|
}, ___EmotionJSX(ResponsiveContainer, {
|
412
|
-
|
413
|
-
height: "100%"
|
411
|
+
sx: sx.chartContainer
|
414
412
|
}, ___EmotionJSX(LineChart, {
|
415
|
-
|
416
|
-
height: 18,
|
413
|
+
sx: sx.chart,
|
417
414
|
data: zeroData
|
418
415
|
}, ___EmotionJSX(Line, {
|
419
416
|
type: "monotone",
|
@@ -424,8 +421,7 @@ export var Default = function Default() {
|
|
424
421
|
variant: "expandableRow.lineChart.chartLabel"
|
425
422
|
}, "12 wk trend")), ___EmotionJSX(Box, {
|
426
423
|
size: "sm",
|
427
|
-
|
428
|
-
width: 50
|
424
|
+
sx: sx.chartTrendContainer
|
429
425
|
}, ___EmotionJSX(Text, {
|
430
426
|
variant: "expandableRow.lineChart.trend"
|
431
427
|
}, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
|
@@ -436,10 +432,7 @@ export var Default = function Default() {
|
|
436
432
|
|
437
433
|
var ZeroValues = ___EmotionJSX(Box, {
|
438
434
|
isRow: true,
|
439
|
-
|
440
|
-
alignItems: "center",
|
441
|
-
justifyContent: "space-between",
|
442
|
-
pr: 20,
|
435
|
+
sx: sx.container,
|
443
436
|
mt: 20
|
444
437
|
}, ___EmotionJSX(Box, {
|
445
438
|
p: "md",
|
@@ -453,8 +446,7 @@ export var Default = function Default() {
|
|
453
446
|
alignItems: "center"
|
454
447
|
}, ___EmotionJSX(Box, _extends({
|
455
448
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
456
|
-
|
457
|
-
pr: 15
|
449
|
+
sx: sx.chartTitleContainer
|
458
450
|
}, hideIfMobile()), ___EmotionJSX(Text, {
|
459
451
|
variant: "expandableRow.lineChart.title"
|
460
452
|
}, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
|
@@ -467,8 +459,7 @@ export var Default = function Default() {
|
|
467
459
|
}, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
|
468
460
|
variant: "expandableRow.chartWrapper",
|
469
461
|
onPress: action('seeContributingDataAction'),
|
470
|
-
|
471
|
-
pr: 15,
|
462
|
+
sx: sx.button,
|
472
463
|
"aria-label": "line-chart button"
|
473
464
|
}, hideIfTablet()), ___EmotionJSX(Box, {
|
474
465
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -478,11 +469,9 @@ export var Default = function Default() {
|
|
478
469
|
variant: "boxes.expandableRow.lineChart.chart",
|
479
470
|
width: 50
|
480
471
|
}, ___EmotionJSX(ResponsiveContainer, {
|
481
|
-
|
482
|
-
height: "100%"
|
472
|
+
sx: sx.chartContainer
|
483
473
|
}, ___EmotionJSX(LineChart, {
|
484
|
-
|
485
|
-
height: 18,
|
474
|
+
sx: sx.chart,
|
486
475
|
data: zeroValuesData
|
487
476
|
}, ___EmotionJSX(Line, {
|
488
477
|
type: "monotone",
|
@@ -493,8 +482,7 @@ export var Default = function Default() {
|
|
493
482
|
variant: "expandableRow.lineChart.chartLabel"
|
494
483
|
}, "12 wk trend")), ___EmotionJSX(Box, {
|
495
484
|
size: "sm",
|
496
|
-
|
497
|
-
width: 50
|
485
|
+
sx: sx.chartTrendContainer
|
498
486
|
}, ___EmotionJSX(Text, {
|
499
487
|
variant: "expandableRow.lineChart.trend"
|
500
488
|
}, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
|
@@ -7,35 +7,39 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
7
|
export default {
|
8
8
|
title: 'Recipes/Selected Field Overlay'
|
9
9
|
};
|
10
|
+
var sx = {
|
11
|
+
container: {
|
12
|
+
padding: 'md',
|
13
|
+
position: 'relative',
|
14
|
+
borderWidth: 2,
|
15
|
+
borderStyle: 'solid',
|
16
|
+
borderColor: 'active',
|
17
|
+
borderRadius: 4,
|
18
|
+
cursor: 'pointer'
|
19
|
+
},
|
20
|
+
overlay: {
|
21
|
+
position: 'absolute',
|
22
|
+
width: '100%',
|
23
|
+
height: '100%',
|
24
|
+
top: 0,
|
25
|
+
left: 0,
|
26
|
+
alignItems: 'center',
|
27
|
+
justifyContent: 'center',
|
28
|
+
'&:focus': {
|
29
|
+
outline: 'none'
|
30
|
+
}
|
31
|
+
}
|
32
|
+
};
|
10
33
|
export var Default = function Default() {
|
11
34
|
return ___EmotionJSX(Box, {
|
12
|
-
|
13
|
-
sx: {
|
14
|
-
position: 'relative',
|
15
|
-
borderWidth: 2,
|
16
|
-
borderStyle: 'solid',
|
17
|
-
borderColor: 'active',
|
18
|
-
borderRadius: 4,
|
19
|
-
cursor: 'pointer'
|
20
|
-
}
|
35
|
+
sx: sx.container
|
21
36
|
}, ___EmotionJSX(TextField, {
|
22
37
|
label: "Name",
|
23
38
|
controlProps: {
|
24
39
|
tabIndex: '-1'
|
25
40
|
}
|
26
41
|
}), ___EmotionJSX(Box, {
|
27
|
-
sx:
|
28
|
-
position: 'absolute',
|
29
|
-
width: '100%',
|
30
|
-
height: '100%',
|
31
|
-
top: 0,
|
32
|
-
left: 0,
|
33
|
-
alignItems: 'center',
|
34
|
-
justifyContent: 'center',
|
35
|
-
'&:focus': {
|
36
|
-
outline: 'none'
|
37
|
-
}
|
38
|
-
},
|
42
|
+
sx: sx.overlay,
|
39
43
|
tabIndex: "0"
|
40
44
|
}, ___EmotionJSX(Icon, {
|
41
45
|
icon: VisibilityOffOutlineIcon,
|
@@ -104,6 +104,79 @@ var data = [{
|
|
104
104
|
title: 'View a workflow'
|
105
105
|
}]
|
106
106
|
}];
|
107
|
+
var sx = {
|
108
|
+
iconContainer: {
|
109
|
+
backgroundColor: 'accent.80',
|
110
|
+
alignItems: 'center',
|
111
|
+
justifyContent: 'center',
|
112
|
+
mr: 'sm',
|
113
|
+
borderRadius: '50%',
|
114
|
+
zIndex: 3
|
115
|
+
},
|
116
|
+
headingSeparator: {
|
117
|
+
flexGrow: 1,
|
118
|
+
backgroundColor: 'accent.80',
|
119
|
+
maxHeight: '100%',
|
120
|
+
width: '6px !important',
|
121
|
+
zIndex: 2,
|
122
|
+
m: '0px 5px 0px 17px !important'
|
123
|
+
},
|
124
|
+
title: {
|
125
|
+
fontSize: 'md',
|
126
|
+
color: 'accent.30',
|
127
|
+
lineHeight: '18px',
|
128
|
+
fontWeight: '3',
|
129
|
+
m: '12px 0px 28px 5px',
|
130
|
+
maxWidth: '195px'
|
131
|
+
},
|
132
|
+
linkRowIconButton: {
|
133
|
+
'&.is-pressed': {
|
134
|
+
backgroundColor: 'transparent'
|
135
|
+
},
|
136
|
+
'&.is-pressed > svg > path': {
|
137
|
+
fill: 'accent.30'
|
138
|
+
},
|
139
|
+
'&.is-hovered': {
|
140
|
+
backgroundColor: 'transparent'
|
141
|
+
}
|
142
|
+
},
|
143
|
+
linkRowIconSelected: {
|
144
|
+
zIndex: 3,
|
145
|
+
'path': {
|
146
|
+
fill: 'accent.30'
|
147
|
+
}
|
148
|
+
},
|
149
|
+
linkRowIconNotSelected: {
|
150
|
+
zIndex: 3,
|
151
|
+
'path': {
|
152
|
+
fill: 'accent.80'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
linkRowSeparator: {
|
156
|
+
flexGrow: 1,
|
157
|
+
backgroundColor: 'accent.30',
|
158
|
+
maxHeight: '100%',
|
159
|
+
width: '1px !important',
|
160
|
+
zIndex: 2,
|
161
|
+
m: '-5px 5px -5px 11.5px !important'
|
162
|
+
},
|
163
|
+
linkRowText: {
|
164
|
+
fontSize: 'md',
|
165
|
+
color: '#163CE3',
|
166
|
+
lineHeight: '18px',
|
167
|
+
fontWeight: '0',
|
168
|
+
m: '3px 0px 20px 10px',
|
169
|
+
maxWidth: '140px'
|
170
|
+
},
|
171
|
+
container: {
|
172
|
+
p: '15px 15px 0px 15px',
|
173
|
+
width: '280px',
|
174
|
+
backgroundColor: 'accent.95',
|
175
|
+
borderRadius: '8px',
|
176
|
+
zIndex: 1,
|
177
|
+
boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
|
178
|
+
}
|
179
|
+
};
|
107
180
|
|
108
181
|
var Stage = function Stage(props) {
|
109
182
|
var title = props.title,
|
@@ -139,14 +212,7 @@ var Stage = function Stage(props) {
|
|
139
212
|
}, ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
|
140
213
|
minWidth: "39.5px",
|
141
214
|
minHeight: "39.5px",
|
142
|
-
sx:
|
143
|
-
backgroundColor: 'accent.80',
|
144
|
-
alignItems: 'center',
|
145
|
-
justifyContent: 'center',
|
146
|
-
mr: '10px',
|
147
|
-
borderRadius: '50%',
|
148
|
-
zIndex: 3
|
149
|
-
}
|
215
|
+
sx: sx.iconContainer
|
150
216
|
}, ___EmotionJSX(Icon, {
|
151
217
|
icon: icon,
|
152
218
|
color: "accent.40",
|
@@ -155,24 +221,10 @@ var Stage = function Stage(props) {
|
|
155
221
|
zIndex: 3
|
156
222
|
}
|
157
223
|
})), !isLastStage && ___EmotionJSX(Separator, {
|
158
|
-
sx:
|
159
|
-
flexGrow: 1,
|
160
|
-
backgroundColor: 'accent.80',
|
161
|
-
maxHeight: '100%',
|
162
|
-
width: '6px !important',
|
163
|
-
zIndex: 2,
|
164
|
-
m: '0px 5px 0px 17px !important'
|
165
|
-
},
|
224
|
+
sx: sx.headingSeparator,
|
166
225
|
orientation: "vertical"
|
167
226
|
})), ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
|
168
|
-
sx:
|
169
|
-
fontSize: '15px',
|
170
|
-
color: 'accent.30',
|
171
|
-
lineHeight: '18px',
|
172
|
-
fontWeight: '3',
|
173
|
-
m: '12px 0px 28px 5px',
|
174
|
-
maxWidth: '195px'
|
175
|
-
}
|
227
|
+
sx: sx.title
|
176
228
|
}, title), ___EmotionJSX(Box, {
|
177
229
|
pl: "0px",
|
178
230
|
mb: "25px"
|
@@ -213,53 +265,19 @@ var LinkRow = function LinkRow(props) {
|
|
213
265
|
}
|
214
266
|
}, ___EmotionJSX(IconButton, {
|
215
267
|
onPress: onIconPress,
|
216
|
-
sx:
|
217
|
-
'&.is-pressed': {
|
218
|
-
backgroundColor: 'transparent'
|
219
|
-
},
|
220
|
-
'&.is-pressed > svg > path': {
|
221
|
-
fill: 'accent.30'
|
222
|
-
},
|
223
|
-
'&.is-hovered': {
|
224
|
-
backgroundColor: 'transparent'
|
225
|
-
}
|
226
|
-
},
|
268
|
+
sx: sx.linkRowIconButton,
|
227
269
|
"aria-label": "completed step icon indicator"
|
228
270
|
}, ___EmotionJSX(Icon, {
|
229
271
|
icon: isSelected ? CheckCircleIcon : RadioButtonIcon,
|
230
272
|
size: isSelected ? '20px' : '18px',
|
231
|
-
sx: isSelected ?
|
232
|
-
zIndex: 3,
|
233
|
-
'path': {
|
234
|
-
fill: 'accent.30'
|
235
|
-
}
|
236
|
-
} : {
|
237
|
-
zIndex: 3,
|
238
|
-
'path': {
|
239
|
-
fill: 'accent.80'
|
240
|
-
}
|
241
|
-
}
|
273
|
+
sx: isSelected ? sx.linkRowIconButton : sx.linkRowIconNotSelected
|
242
274
|
}))), !isLastLink && isLinkSelected && ___EmotionJSX(Separator, {
|
243
|
-
sx:
|
244
|
-
flexGrow: 1,
|
245
|
-
backgroundColor: 'accent.30',
|
246
|
-
maxHeight: '100%',
|
247
|
-
width: '1px !important',
|
248
|
-
zIndex: 2,
|
249
|
-
m: '-5px 5px -5px 11.5px !important'
|
250
|
-
},
|
275
|
+
sx: sx.linkRowSeparator,
|
251
276
|
orientation: "vertical"
|
252
277
|
})), ___EmotionJSX(Box, null, ___EmotionJSX(Link, {
|
253
278
|
href: "https://www.pingidentity.com",
|
254
279
|
target: "_blank",
|
255
|
-
sx:
|
256
|
-
fontSize: '15px',
|
257
|
-
color: '#163CE3',
|
258
|
-
lineHeight: '18px',
|
259
|
-
fontWeight: '0',
|
260
|
-
m: '3px 0px 20px 10px',
|
261
|
-
maxWidth: '140px'
|
262
|
-
}
|
280
|
+
sx: sx.linkRowText
|
263
281
|
}, title)));
|
264
282
|
};
|
265
283
|
|
@@ -267,16 +285,7 @@ export var Default = function Default() {
|
|
267
285
|
// Open the `Story` addons tab to view the source code for full context.
|
268
286
|
return ___EmotionJSX(Box, {
|
269
287
|
as: "nav",
|
270
|
-
|
271
|
-
width: "280px",
|
272
|
-
sx: {
|
273
|
-
p: '15px 15px 0px 15px',
|
274
|
-
width: '280px',
|
275
|
-
backgroundColor: 'accent.95',
|
276
|
-
borderRadius: '8px',
|
277
|
-
zIndex: 1,
|
278
|
-
boxShadow: '3px 8px 4px rgba(202, 206, 211, 0.36)'
|
279
|
-
}
|
288
|
+
sx: sx.container
|
280
289
|
}, ___EmotionJSX(Box, {
|
281
290
|
paddingLeft: "0px"
|
282
291
|
}, _mapInstanceProperty(data).call(data, function (stage, index) {
|
@@ -35,6 +35,7 @@ import table from './table';
|
|
35
35
|
import * as tabs from './tabs';
|
36
36
|
import tooltip from './tooltip';
|
37
37
|
import collapsiblePanel from './collapsiblePanel';
|
38
|
+
import dataTable from './../../components/DataTable/DataTable.styles';
|
38
39
|
export default _objectSpread(_objectSpread({
|
39
40
|
accordion: accordion,
|
40
41
|
boxes: boxes,
|
@@ -58,5 +59,6 @@ export default _objectSpread(_objectSpread({
|
|
58
59
|
stepper: stepper,
|
59
60
|
table: table
|
60
61
|
}, tabs), {}, {
|
61
|
-
tooltip: tooltip
|
62
|
+
tooltip: tooltip,
|
63
|
+
dataTable: dataTable
|
62
64
|
});
|