@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
@@ -0,0 +1,73 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
|
+
|
7
|
+
_Object$defineProperty(exports, "__esModule", {
|
8
|
+
value: true
|
9
|
+
});
|
10
|
+
|
11
|
+
exports["default"] = exports.Default = void 0;
|
12
|
+
|
13
|
+
var _react = _interopRequireDefault(require("react"));
|
14
|
+
|
15
|
+
var _PlusIcon = _interopRequireDefault(require("mdi-react/PlusIcon"));
|
16
|
+
|
17
|
+
var _index = require("../index");
|
18
|
+
|
19
|
+
var _react2 = require("@emotion/react");
|
20
|
+
|
21
|
+
var _default = {
|
22
|
+
title: 'Recipes/Page Header'
|
23
|
+
};
|
24
|
+
exports["default"] = _default;
|
25
|
+
|
26
|
+
var Default = function Default() {
|
27
|
+
var heading = 'Title of the Page';
|
28
|
+
var description = 'The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page. The description of the page.';
|
29
|
+
return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
|
30
|
+
align: "center",
|
31
|
+
isRow: true,
|
32
|
+
mb: "xs",
|
33
|
+
role: "heading",
|
34
|
+
"aria-level": "1"
|
35
|
+
}, (0, _react2.jsx)(_index.Text, {
|
36
|
+
variant: "title",
|
37
|
+
fontWeight: 3
|
38
|
+
}, heading), (0, _react2.jsx)(_index.Button, {
|
39
|
+
variant: "inlinePrimary",
|
40
|
+
ml: "sm"
|
41
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
42
|
+
icon: _PlusIcon["default"],
|
43
|
+
color: "white",
|
44
|
+
size: 13,
|
45
|
+
mr: "4px"
|
46
|
+
}), "\xA0", "Add")), (0, _react2.jsx)(_index.Text, {
|
47
|
+
variant: "bodyWeak"
|
48
|
+
}, description)), (0, _react2.jsx)(_index.Box, {
|
49
|
+
mt: "xl"
|
50
|
+
}, (0, _react2.jsx)(_index.Box, {
|
51
|
+
align: "center",
|
52
|
+
isRow: true,
|
53
|
+
mb: "xs",
|
54
|
+
role: "heading",
|
55
|
+
"aria-level": "1"
|
56
|
+
}, (0, _react2.jsx)(_index.Text, {
|
57
|
+
variant: "title",
|
58
|
+
fontWeight: 3
|
59
|
+
}, heading), (0, _react2.jsx)(_index.IconButton, {
|
60
|
+
"aria-label": "icon button",
|
61
|
+
ml: "sm",
|
62
|
+
mt: "3px",
|
63
|
+
variant: "inverted"
|
64
|
+
}, (0, _react2.jsx)(_index.Icon, {
|
65
|
+
icon: _PlusIcon["default"],
|
66
|
+
color: "white",
|
67
|
+
size: 13
|
68
|
+
}))), (0, _react2.jsx)(_index.Text, {
|
69
|
+
variant: "bodyWeak"
|
70
|
+
}, description)));
|
71
|
+
};
|
72
|
+
|
73
|
+
exports.Default = Default;
|
@@ -170,6 +170,34 @@ 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
|
+
};
|
173
201
|
|
174
202
|
var Default = function Default() {
|
175
203
|
var _useResizeObserver = (0, _useResizeObserver2["default"])(),
|
@@ -193,10 +221,7 @@ var Default = function Default() {
|
|
193
221
|
}, [isMobile]);
|
194
222
|
var EmptyData = (0, _react2.jsx)(_index.Box, {
|
195
223
|
isRow: true,
|
196
|
-
|
197
|
-
alignItems: "center",
|
198
|
-
justifyContent: "space-between",
|
199
|
-
pr: 20,
|
224
|
+
sx: sx.container,
|
200
225
|
ref: ref
|
201
226
|
}, (0, _react2.jsx)(_index.Box, {
|
202
227
|
p: "md",
|
@@ -210,8 +235,7 @@ var Default = function Default() {
|
|
210
235
|
alignItems: "center"
|
211
236
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
212
237
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
213
|
-
|
214
|
-
pr: 15
|
238
|
+
sx: sx.chartTitleContainer
|
215
239
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
216
240
|
variant: "expandableRow.lineChart.title"
|
217
241
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -224,8 +248,7 @@ var Default = function Default() {
|
|
224
248
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
225
249
|
variant: "expandableRow.chartWrapper",
|
226
250
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
227
|
-
|
228
|
-
pr: 15,
|
251
|
+
sx: sx.button,
|
229
252
|
"aria-label": "line-chart button"
|
230
253
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
231
254
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -234,11 +257,9 @@ var Default = function Default() {
|
|
234
257
|
}, (0, _react2.jsx)(_index.Box, {
|
235
258
|
variant: "boxes.expandableRow.lineChart.chart"
|
236
259
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
237
|
-
|
238
|
-
height: "100%"
|
260
|
+
sx: sx.chartContainer
|
239
261
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
240
|
-
|
241
|
-
height: 18,
|
262
|
+
sx: sx.chart,
|
242
263
|
data: chartData
|
243
264
|
}, (0, _react2.jsx)(_recharts.Line, {
|
244
265
|
type: "monotone",
|
@@ -249,8 +270,7 @@ var Default = function Default() {
|
|
249
270
|
variant: "expandableRow.lineChart.chartLabel"
|
250
271
|
}, "No data yet")), (0, _react2.jsx)(_index.Box, {
|
251
272
|
size: "sm",
|
252
|
-
|
253
|
-
width: 50
|
273
|
+
sx: sx.chartTrendContainer
|
254
274
|
}, (0, _react2.jsx)(_index.Text, {
|
255
275
|
variant: "expandableRow.lineChart.trend"
|
256
276
|
}, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -260,10 +280,7 @@ var Default = function Default() {
|
|
260
280
|
}))));
|
261
281
|
var FullData = (0, _react2.jsx)(_index.Box, {
|
262
282
|
isRow: true,
|
263
|
-
|
264
|
-
alignItems: "center",
|
265
|
-
justifyContent: "space-between",
|
266
|
-
pr: 20,
|
283
|
+
sx: sx.container,
|
267
284
|
mt: 20
|
268
285
|
}, (0, _react2.jsx)(_index.Box, {
|
269
286
|
p: "md",
|
@@ -277,8 +294,7 @@ var Default = function Default() {
|
|
277
294
|
alignItems: "center"
|
278
295
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
279
296
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
280
|
-
|
281
|
-
pr: 15
|
297
|
+
sx: sx.chartTitleContainer
|
282
298
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
283
299
|
variant: "expandableRow.lineChart.title"
|
284
300
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -291,8 +307,7 @@ var Default = function Default() {
|
|
291
307
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
292
308
|
variant: "expandableRow.chartWrapper",
|
293
309
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
294
|
-
|
295
|
-
pr: 15,
|
310
|
+
sx: sx.button,
|
296
311
|
"aria-label": "line-chart button"
|
297
312
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
298
313
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -302,11 +317,9 @@ var Default = function Default() {
|
|
302
317
|
variant: "boxes.expandableRow.lineChart.chart",
|
303
318
|
width: 50
|
304
319
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
305
|
-
|
306
|
-
height: "100%"
|
320
|
+
sx: sx.chartContainer
|
307
321
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
308
|
-
|
309
|
-
height: 18,
|
322
|
+
sx: sx.chart,
|
310
323
|
data: chartData
|
311
324
|
}, (0, _react2.jsx)(_recharts.Line, {
|
312
325
|
type: "monotone",
|
@@ -317,8 +330,7 @@ var Default = function Default() {
|
|
317
330
|
variant: "expandableRow.lineChart.chartLabel"
|
318
331
|
}, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
|
319
332
|
size: "sm",
|
320
|
-
|
321
|
-
width: 50
|
333
|
+
sx: sx.chartTrendContainer
|
322
334
|
}, (0, _react2.jsx)(_index.Text, {
|
323
335
|
variant: "expandableRow.lineChart.trend"
|
324
336
|
}, "+ 8.6%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -328,10 +340,7 @@ var Default = function Default() {
|
|
328
340
|
}))));
|
329
341
|
var PartialData = (0, _react2.jsx)(_index.Box, {
|
330
342
|
isRow: true,
|
331
|
-
|
332
|
-
alignItems: "center",
|
333
|
-
justifyContent: "space-between",
|
334
|
-
pr: 20,
|
343
|
+
sx: sx.container,
|
335
344
|
mt: 20
|
336
345
|
}, (0, _react2.jsx)(_index.Box, {
|
337
346
|
p: "md",
|
@@ -345,8 +354,7 @@ var Default = function Default() {
|
|
345
354
|
alignItems: "center"
|
346
355
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
347
356
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
348
|
-
|
349
|
-
pr: 15
|
357
|
+
sx: sx.chartTitleContainer
|
350
358
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
351
359
|
variant: "expandableRow.lineChart.title"
|
352
360
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -359,8 +367,7 @@ var Default = function Default() {
|
|
359
367
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
360
368
|
variant: "expandableRow.chartWrapper",
|
361
369
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
362
|
-
|
363
|
-
pr: 15,
|
370
|
+
sx: sx.button,
|
364
371
|
"aria-label": "line-chart button"
|
365
372
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
366
373
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -370,11 +377,9 @@ var Default = function Default() {
|
|
370
377
|
variant: "boxes.expandableRow.lineChart.chart",
|
371
378
|
width: 50
|
372
379
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
373
|
-
|
374
|
-
height: "100%"
|
380
|
+
sx: sx.chartContainer
|
375
381
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
376
|
-
|
377
|
-
height: 18,
|
382
|
+
sx: sx.chart,
|
378
383
|
data: partialDataData
|
379
384
|
}, (0, _react2.jsx)(_recharts.Line, {
|
380
385
|
type: "monotone",
|
@@ -385,8 +390,7 @@ var Default = function Default() {
|
|
385
390
|
variant: "expandableRow.lineChart.chartLabel"
|
386
391
|
}, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
|
387
392
|
size: "sm",
|
388
|
-
|
389
|
-
width: 50
|
393
|
+
sx: sx.chartTrendContainer
|
390
394
|
}, (0, _react2.jsx)(_index.Text, {
|
391
395
|
variant: "expandableRow.lineChart.trend"
|
392
396
|
}, "- 8.6%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -396,10 +400,7 @@ var Default = function Default() {
|
|
396
400
|
}))));
|
397
401
|
var ZeroData = (0, _react2.jsx)(_index.Box, {
|
398
402
|
isRow: true,
|
399
|
-
|
400
|
-
alignItems: "center",
|
401
|
-
justifyContent: "space-between",
|
402
|
-
pr: 20,
|
403
|
+
sx: sx.container,
|
403
404
|
mt: 20
|
404
405
|
}, (0, _react2.jsx)(_index.Box, {
|
405
406
|
p: "md",
|
@@ -413,8 +414,7 @@ var Default = function Default() {
|
|
413
414
|
alignItems: "center"
|
414
415
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
415
416
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
416
|
-
|
417
|
-
pr: 15
|
417
|
+
sx: sx.chartTitleContainer
|
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,8 +427,7 @@ 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
|
-
|
431
|
-
pr: 15,
|
430
|
+
sx: sx.button,
|
432
431
|
"aria-label": "line-chart button"
|
433
432
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
434
433
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -438,11 +437,9 @@ var Default = function Default() {
|
|
438
437
|
variant: "boxes.expandableRow.lineChart.chart",
|
439
438
|
width: 50
|
440
439
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
441
|
-
|
442
|
-
height: "100%"
|
440
|
+
sx: sx.chartContainer
|
443
441
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
444
|
-
|
445
|
-
height: 18,
|
442
|
+
sx: sx.chart,
|
446
443
|
data: zeroData
|
447
444
|
}, (0, _react2.jsx)(_recharts.Line, {
|
448
445
|
type: "monotone",
|
@@ -453,8 +450,7 @@ var Default = function Default() {
|
|
453
450
|
variant: "expandableRow.lineChart.chartLabel"
|
454
451
|
}, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
|
455
452
|
size: "sm",
|
456
|
-
|
457
|
-
width: 50
|
453
|
+
sx: sx.chartTrendContainer
|
458
454
|
}, (0, _react2.jsx)(_index.Text, {
|
459
455
|
variant: "expandableRow.lineChart.trend"
|
460
456
|
}, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -464,10 +460,7 @@ var Default = function Default() {
|
|
464
460
|
}))));
|
465
461
|
var ZeroValues = (0, _react2.jsx)(_index.Box, {
|
466
462
|
isRow: true,
|
467
|
-
|
468
|
-
alignItems: "center",
|
469
|
-
justifyContent: "space-between",
|
470
|
-
pr: 20,
|
463
|
+
sx: sx.container,
|
471
464
|
mt: 20
|
472
465
|
}, (0, _react2.jsx)(_index.Box, {
|
473
466
|
p: "md",
|
@@ -481,8 +474,7 @@ var Default = function Default() {
|
|
481
474
|
alignItems: "center"
|
482
475
|
}, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
483
476
|
variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
|
484
|
-
|
485
|
-
pr: 15
|
477
|
+
sx: sx.chartTitleContainer
|
486
478
|
}, hideIfMobile()), (0, _react2.jsx)(_index.Text, {
|
487
479
|
variant: "expandableRow.lineChart.title"
|
488
480
|
}, "Avg daily sign-ons:")), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
@@ -495,8 +487,7 @@ var Default = function Default() {
|
|
495
487
|
}, "Past 7 days")), (0, _react2.jsx)(_index.TooltipTrigger, null, (0, _react2.jsx)(_index.Button, (0, _extends2["default"])({
|
496
488
|
variant: "expandableRow.chartWrapper",
|
497
489
|
onPress: (0, _addonActions.action)('seeContributingDataAction'),
|
498
|
-
|
499
|
-
pr: 15,
|
490
|
+
sx: sx.button,
|
500
491
|
"aria-label": "line-chart button"
|
501
492
|
}, hideIfTablet()), (0, _react2.jsx)(_index.Box, {
|
502
493
|
variant: "boxes.expandableRow.lineChart.divider"
|
@@ -506,11 +497,9 @@ var Default = function Default() {
|
|
506
497
|
variant: "boxes.expandableRow.lineChart.chart",
|
507
498
|
width: 50
|
508
499
|
}, (0, _react2.jsx)(_recharts.ResponsiveContainer, {
|
509
|
-
|
510
|
-
height: "100%"
|
500
|
+
sx: sx.chartContainer
|
511
501
|
}, (0, _react2.jsx)(_recharts.LineChart, {
|
512
|
-
|
513
|
-
height: 18,
|
502
|
+
sx: sx.chart,
|
514
503
|
data: zeroValuesData
|
515
504
|
}, (0, _react2.jsx)(_recharts.Line, {
|
516
505
|
type: "monotone",
|
@@ -521,8 +510,7 @@ var Default = function Default() {
|
|
521
510
|
variant: "expandableRow.lineChart.chartLabel"
|
522
511
|
}, "12 wk trend")), (0, _react2.jsx)(_index.Box, {
|
523
512
|
size: "sm",
|
524
|
-
|
525
|
-
width: 50
|
513
|
+
sx: sx.chartTrendContainer
|
526
514
|
}, (0, _react2.jsx)(_index.Text, {
|
527
515
|
variant: "expandableRow.lineChart.trend"
|
528
516
|
}, "+ 0%"))), (0, _react2.jsx)(_index.Tooltip, null, "See Contributing Data")), (0, _react2.jsx)(_index.Box, {
|
@@ -26,36 +26,40 @@ 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
|
+
};
|
29
52
|
|
30
53
|
var Default = function Default() {
|
31
54
|
return (0, _react2.jsx)(_Box["default"], {
|
32
|
-
|
33
|
-
sx: {
|
34
|
-
position: 'relative',
|
35
|
-
borderWidth: 2,
|
36
|
-
borderStyle: 'solid',
|
37
|
-
borderColor: 'active',
|
38
|
-
borderRadius: 4,
|
39
|
-
cursor: 'pointer'
|
40
|
-
}
|
55
|
+
sx: sx.container
|
41
56
|
}, (0, _react2.jsx)(_TextField["default"], {
|
42
57
|
label: "Name",
|
43
58
|
controlProps: {
|
44
59
|
tabIndex: '-1'
|
45
60
|
}
|
46
61
|
}), (0, _react2.jsx)(_Box["default"], {
|
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
|
-
},
|
62
|
+
sx: sx.overlay,
|
59
63
|
tabIndex: "0"
|
60
64
|
}, (0, _react2.jsx)(_Icon["default"], {
|
61
65
|
icon: _VisibilityOffOutlineIcon["default"],
|
@@ -137,6 +137,79 @@ 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
|
+
};
|
140
213
|
|
141
214
|
var Stage = function Stage(props) {
|
142
215
|
var title = props.title,
|
@@ -172,14 +245,7 @@ var Stage = function Stage(props) {
|
|
172
245
|
}, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
|
173
246
|
minWidth: "39.5px",
|
174
247
|
minHeight: "39.5px",
|
175
|
-
sx:
|
176
|
-
backgroundColor: 'accent.80',
|
177
|
-
alignItems: 'center',
|
178
|
-
justifyContent: 'center',
|
179
|
-
mr: '10px',
|
180
|
-
borderRadius: '50%',
|
181
|
-
zIndex: 3
|
182
|
-
}
|
248
|
+
sx: sx.iconContainer
|
183
249
|
}, (0, _react2.jsx)(_index.Icon, {
|
184
250
|
icon: icon,
|
185
251
|
color: "accent.40",
|
@@ -188,24 +254,10 @@ var Stage = function Stage(props) {
|
|
188
254
|
zIndex: 3
|
189
255
|
}
|
190
256
|
})), !isLastStage && (0, _react2.jsx)(_index.Separator, {
|
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
|
-
},
|
257
|
+
sx: sx.headingSeparator,
|
199
258
|
orientation: "vertical"
|
200
259
|
})), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, {
|
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
|
-
}
|
260
|
+
sx: sx.title
|
209
261
|
}, title), (0, _react2.jsx)(_index.Box, {
|
210
262
|
pl: "0px",
|
211
263
|
mb: "25px"
|
@@ -246,53 +298,19 @@ var LinkRow = function LinkRow(props) {
|
|
246
298
|
}
|
247
299
|
}, (0, _react2.jsx)(_index.IconButton, {
|
248
300
|
onPress: onIconPress,
|
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
|
-
},
|
301
|
+
sx: sx.linkRowIconButton,
|
260
302
|
"aria-label": "completed step icon indicator"
|
261
303
|
}, (0, _react2.jsx)(_index.Icon, {
|
262
304
|
icon: isSelected ? _CheckCircleIcon["default"] : RadioButtonIcon,
|
263
305
|
size: isSelected ? '20px' : '18px',
|
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
|
-
}
|
306
|
+
sx: isSelected ? sx.linkRowIconButton : sx.linkRowIconNotSelected
|
275
307
|
}))), !isLastLink && isLinkSelected && (0, _react2.jsx)(_index.Separator, {
|
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
|
-
},
|
308
|
+
sx: sx.linkRowSeparator,
|
284
309
|
orientation: "vertical"
|
285
310
|
})), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, {
|
286
311
|
href: "https://www.pingidentity.com",
|
287
312
|
target: "_blank",
|
288
|
-
sx:
|
289
|
-
fontSize: '15px',
|
290
|
-
color: '#163CE3',
|
291
|
-
lineHeight: '18px',
|
292
|
-
fontWeight: '0',
|
293
|
-
m: '3px 0px 20px 10px',
|
294
|
-
maxWidth: '140px'
|
295
|
-
}
|
313
|
+
sx: sx.linkRowText
|
296
314
|
}, title)));
|
297
315
|
};
|
298
316
|
|
@@ -300,16 +318,7 @@ var Default = function Default() {
|
|
300
318
|
// Open the `Story` addons tab to view the source code for full context.
|
301
319
|
return (0, _react2.jsx)(_index.Box, {
|
302
320
|
as: "nav",
|
303
|
-
|
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
|
-
}
|
321
|
+
sx: sx.container
|
313
322
|
}, (0, _react2.jsx)(_index.Box, {
|
314
323
|
paddingLeft: "0px"
|
315
324
|
}, (0, _map["default"])(data).call(data, function (stage, index) {
|
@@ -76,6 +76,8 @@ var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
76
76
|
|
77
77
|
var _collapsiblePanel = _interopRequireDefault(require("./collapsiblePanel"));
|
78
78
|
|
79
|
+
var _DataTable = _interopRequireDefault(require("./../../components/DataTable/DataTable.styles"));
|
80
|
+
|
79
81
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
80
82
|
|
81
83
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
@@ -107,7 +109,8 @@ var _default = _objectSpread(_objectSpread({
|
|
107
109
|
stepper: _stepper["default"],
|
108
110
|
table: _table["default"]
|
109
111
|
}, tabs), {}, {
|
110
|
-
tooltip: _tooltip["default"]
|
112
|
+
tooltip: _tooltip["default"],
|
113
|
+
dataTable: _DataTable["default"]
|
111
114
|
});
|
112
115
|
|
113
116
|
exports["default"] = _default;
|