@pingux/astro 1.27.0-alpha.9 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/NOTICE.html +5016 -0
- 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/MultivaluesField/MultivaluesField.js +10 -10
- 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/MaskedValue.stories.js +8 -5
- package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +38 -33
- package/lib/cjs/recipes/RowLineChart.stories.js +58 -70
- 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/MultivaluesField/MultivaluesField.js +10 -10
- 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/MaskedValue.stories.js +8 -5
- package/lib/recipes/OneWayToBidirectionalArrow.stories.js +38 -33
- package/lib/recipes/RowLineChart.stories.js +58 -70
- package/lib/styles/variants/variants.js +3 -1
- package/package.json +55 -50
@@ -19,6 +19,29 @@ var items = [{
|
|
19
19
|
name: 'Third Option',
|
20
20
|
id: '3'
|
21
21
|
}];
|
22
|
+
var sx = {
|
23
|
+
actionIcon: {
|
24
|
+
color: 'neutral.30'
|
25
|
+
},
|
26
|
+
dragVerticalIcon: {
|
27
|
+
color: 'neutral.50'
|
28
|
+
},
|
29
|
+
iconButton: {
|
30
|
+
ml: 'xs'
|
31
|
+
},
|
32
|
+
iconButtonToggleContainer: {
|
33
|
+
mx: 'sm',
|
34
|
+
flexShrink: 0
|
35
|
+
},
|
36
|
+
iconContainer: {
|
37
|
+
alignItems: 'center',
|
38
|
+
ml: '12px',
|
39
|
+
mr: '12px'
|
40
|
+
},
|
41
|
+
outerContainer: {
|
42
|
+
alignItems: 'center'
|
43
|
+
}
|
44
|
+
};
|
22
45
|
export var Default = function Default() {
|
23
46
|
var CustomOnSvg = function CustomOnSvg(props) {
|
24
47
|
return ___EmotionJSX("svg", _extends({
|
@@ -66,24 +89,22 @@ export var Default = function Default() {
|
|
66
89
|
};
|
67
90
|
|
68
91
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Box, {
|
69
|
-
sx:
|
70
|
-
alignItems: 'center'
|
71
|
-
},
|
92
|
+
sx: sx.outerContainer,
|
72
93
|
isRow: true
|
73
94
|
}, ___EmotionJSX(Icon, {
|
74
95
|
icon: DragVerticalIcon,
|
75
96
|
size: 25,
|
76
|
-
|
97
|
+
sx: sx.dragVerticalIcon
|
77
98
|
}), ___EmotionJSX(ComboBoxField, {
|
78
99
|
items: items,
|
79
100
|
defaultSelectedKey: "Last Name",
|
101
|
+
"aria-label": "Row one value",
|
80
102
|
containerProps: {
|
81
103
|
width: '275px'
|
82
104
|
},
|
83
105
|
labelProps: {
|
84
106
|
mb: 0
|
85
107
|
},
|
86
|
-
"aria-label": "Row one value",
|
87
108
|
controlProps: {
|
88
109
|
'aria-label': 'test'
|
89
110
|
}
|
@@ -93,10 +114,7 @@ export var Default = function Default() {
|
|
93
114
|
"data-id": item.name
|
94
115
|
}, item.name);
|
95
116
|
}), ___EmotionJSX(Box, {
|
96
|
-
sx:
|
97
|
-
mx: 'sm',
|
98
|
-
flexShrink: 0
|
99
|
-
}
|
117
|
+
sx: sx.iconButtonToggleContainer
|
100
118
|
}, ___EmotionJSX(IconButtonToggle, {
|
101
119
|
toggledIcon: CustomOnSvg,
|
102
120
|
defaultIcon: CustomOffSvg,
|
@@ -126,35 +144,29 @@ export var Default = function Default() {
|
|
126
144
|
}, item.name);
|
127
145
|
}), ___EmotionJSX(Box, {
|
128
146
|
isRow: true,
|
129
|
-
|
130
|
-
sx: {
|
131
|
-
marginLeft: '12px',
|
132
|
-
marginRight: '12px'
|
133
|
-
}
|
147
|
+
sx: sx.iconContainer
|
134
148
|
}, ___EmotionJSX(IconButton, {
|
135
149
|
"aria-label": "Edit"
|
136
150
|
}, ___EmotionJSX(Icon, {
|
137
151
|
icon: CogsIcon,
|
138
|
-
|
152
|
+
sx: sx.actionIcon,
|
139
153
|
size: 20,
|
140
154
|
title: "edit icon"
|
141
155
|
})), ___EmotionJSX(IconButton, {
|
142
|
-
|
156
|
+
sx: sx.iconButton,
|
143
157
|
"aria-label": "Delete"
|
144
158
|
}, ___EmotionJSX(Icon, {
|
145
159
|
icon: DeleteIcon,
|
146
|
-
|
160
|
+
sx: sx.actionIcon,
|
147
161
|
size: 20,
|
148
162
|
title: "delete icon"
|
149
163
|
})))), ___EmotionJSX(Box, {
|
150
|
-
sx:
|
151
|
-
alignItems: 'center'
|
152
|
-
},
|
164
|
+
sx: sx.outerContainer,
|
153
165
|
isRow: true
|
154
166
|
}, ___EmotionJSX(Icon, {
|
155
167
|
icon: DragVerticalIcon,
|
156
168
|
size: 25,
|
157
|
-
|
169
|
+
sx: sx.dragVerticalIcon
|
158
170
|
}), ___EmotionJSX(ComboBoxField, {
|
159
171
|
items: items,
|
160
172
|
defaultSelectedKey: "Last Name",
|
@@ -174,10 +186,7 @@ export var Default = function Default() {
|
|
174
186
|
"data-id": item.name
|
175
187
|
}, item.name);
|
176
188
|
}), ___EmotionJSX(Box, {
|
177
|
-
sx:
|
178
|
-
mx: 'sm',
|
179
|
-
flexShrink: 0
|
180
|
-
}
|
189
|
+
sx: sx.iconButtonToggleContainer
|
181
190
|
}, ___EmotionJSX(IconButtonToggle, {
|
182
191
|
toggledIcon: CustomRightSvg,
|
183
192
|
defaultIcon: CustomRightSvg,
|
@@ -207,24 +216,20 @@ export var Default = function Default() {
|
|
207
216
|
}, item.name);
|
208
217
|
}), ___EmotionJSX(Box, {
|
209
218
|
isRow: true,
|
210
|
-
|
211
|
-
sx: {
|
212
|
-
marginLeft: '12px',
|
213
|
-
marginRight: '12px'
|
214
|
-
}
|
219
|
+
sx: sx.iconContainer
|
215
220
|
}, ___EmotionJSX(IconButton, {
|
216
221
|
"aria-label": "Edit"
|
217
222
|
}, ___EmotionJSX(Icon, {
|
218
223
|
icon: CogsIcon,
|
219
|
-
|
224
|
+
sx: sx.actionIcon,
|
220
225
|
size: 20,
|
221
226
|
title: "edit icon"
|
222
227
|
})), ___EmotionJSX(IconButton, {
|
223
|
-
|
228
|
+
sx: sx.iconButton,
|
224
229
|
"aria-label": "Delete"
|
225
230
|
}, ___EmotionJSX(Icon, {
|
226
231
|
icon: DeleteIcon,
|
227
|
-
|
232
|
+
sx: sx.actionIcon,
|
228
233
|
size: 20,
|
229
234
|
title: "delete icon"
|
230
235
|
})))));
|
@@ -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, {
|
@@ -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
|
});
|
package/package.json
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pingux/astro",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.28.0",
|
4
4
|
"description": "PingUX themeable React component library",
|
5
|
-
"
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "git@gitlab.corp.pingidentity.com:ux/pingux.git"
|
8
|
+
},
|
6
9
|
"license": "Apache-2.0",
|
10
|
+
"author": "ux-development@pingidentity.com",
|
7
11
|
"main": "lib/cjs/index.js",
|
8
12
|
"module": "lib/index.js",
|
9
13
|
"directories": {
|
@@ -12,10 +16,6 @@
|
|
12
16
|
"files": [
|
13
17
|
"lib"
|
14
18
|
],
|
15
|
-
"repository": {
|
16
|
-
"type": "git",
|
17
|
-
"url": "git@gitlab.corp.pingidentity.com:ux/pingux.git"
|
18
|
-
},
|
19
19
|
"scripts": {
|
20
20
|
"build": "rm -rf lib && npm-run-all build:*",
|
21
21
|
"build:cjs": "BABEL_ENV=cjs babel --config-file ./babel.config.js ./src --out-dir lib/cjs",
|
@@ -24,51 +24,10 @@
|
|
24
24
|
"coverage": "yarn test --coverage",
|
25
25
|
"coverage-ci": "yarn test --coverage --ci",
|
26
26
|
"demo": "rm -rf ./demo && build-storybook -o demo",
|
27
|
-
"test": "jest",
|
28
27
|
"lint": "eslint --ext .js,.jsx .",
|
29
28
|
"start": "start-storybook -p 6006",
|
30
|
-
"storybook": "yarn start"
|
31
|
-
|
32
|
-
"devDependencies": {
|
33
|
-
"@babel/core": "^7.11.6",
|
34
|
-
"@babel/preset-env": "^7.11.5",
|
35
|
-
"@babel/preset-react": "^7.10.4",
|
36
|
-
"@emotion/babel-preset-css-prop": "^11.2.0",
|
37
|
-
"@emotion/cache": "^11.4.0",
|
38
|
-
"@emotion/eslint-plugin": "^11.2.0",
|
39
|
-
"@faker-js/faker": "^7.1.0",
|
40
|
-
"@storybook/addon-a11y": "^6.4.19",
|
41
|
-
"@storybook/addon-actions": "^6.4.19",
|
42
|
-
"@storybook/addon-console": "^1.2.3",
|
43
|
-
"@storybook/addon-docs": "^6.4.19",
|
44
|
-
"@storybook/addon-essentials": "^6.4.19",
|
45
|
-
"@storybook/addon-links": "^6.4.19",
|
46
|
-
"@storybook/addon-storysource": "^6.4.19",
|
47
|
-
"@storybook/addons": "^6.4.19",
|
48
|
-
"@storybook/react": "^6.4.19",
|
49
|
-
"@storybook/theming": "^6.4.19",
|
50
|
-
"@testing-library/jest-dom": "^5.11.4",
|
51
|
-
"@testing-library/react": "^11.0.4",
|
52
|
-
"@testing-library/react-hooks": "^3.4.1",
|
53
|
-
"@testing-library/user-event": "^12.8.3",
|
54
|
-
"babel-loader": "^8.1.0",
|
55
|
-
"babel-plugin-transform-node-env-inline": "^0.4.3",
|
56
|
-
"chromatic": "^6.5.3",
|
57
|
-
"countries-list": "^2.6.1",
|
58
|
-
"eslint-plugin-jest-dom": "^3.9.0",
|
59
|
-
"eslint-plugin-react-hooks": "^2.5.1",
|
60
|
-
"eslint-plugin-testing-library": "^4.6.0",
|
61
|
-
"jest-axe": "^5.0.1",
|
62
|
-
"jest-emotion": "^11.0.0",
|
63
|
-
"mutationobserver-shim": "^0.3.7",
|
64
|
-
"react": "^16.8.6",
|
65
|
-
"react-dom": "^16.13.1",
|
66
|
-
"react-is": "^16.13.1",
|
67
|
-
"use-resize-observer": "^8.0.0"
|
68
|
-
},
|
69
|
-
"peerDependencies": {
|
70
|
-
"react": "^16.8.6",
|
71
|
-
"react-dom": "^16.13.1"
|
29
|
+
"storybook": "yarn start",
|
30
|
+
"test": "jest"
|
72
31
|
},
|
73
32
|
"dependencies": {
|
74
33
|
"@emotion/jest": "^11.5.0",
|
@@ -101,19 +60,22 @@
|
|
101
60
|
"@react-aria/separator": "^3.1.1",
|
102
61
|
"@react-aria/slider": "^3.0.7",
|
103
62
|
"@react-aria/switch": "3.1.1",
|
63
|
+
"@react-aria/table": "^3.3.0",
|
104
64
|
"@react-aria/tabs": "^3.0.1",
|
105
65
|
"@react-aria/tooltip": "^3.1.2",
|
106
66
|
"@react-aria/utils": "^3.12.0",
|
107
67
|
"@react-aria/virtualizer": "^3.3.2",
|
108
68
|
"@react-aria/visually-hidden": "3.2.1",
|
109
69
|
"@react-spectrum/provider": "^3.2.1",
|
70
|
+
"@react-spectrum/table": "^3.3.0",
|
71
|
+
"@react-spectrum/tooltip": "^3.2.1",
|
110
72
|
"@react-spectrum/utils": "3.6.1",
|
111
73
|
"@react-stately/collections": "~3.3.8",
|
112
74
|
"@react-stately/color": "^3.0.0-beta.2",
|
113
75
|
"@react-stately/combobox": "^3.0.0",
|
114
76
|
"@react-stately/data": "^3.4.0",
|
115
77
|
"@react-stately/grid": "^3.1.4",
|
116
|
-
"@react-stately/layout": "
|
78
|
+
"@react-stately/layout": "~3.6.0",
|
117
79
|
"@react-stately/list": "^3.2.1",
|
118
80
|
"@react-stately/menu": "^3.2.1",
|
119
81
|
"@react-stately/numberfield": "~3.0.7",
|
@@ -123,11 +85,13 @@
|
|
123
85
|
"@react-stately/select": "^3.1.1",
|
124
86
|
"@react-stately/selection": "~3.10.2",
|
125
87
|
"@react-stately/slider": "^3.0.7",
|
88
|
+
"@react-stately/table": "^3.2.1",
|
126
89
|
"@react-stately/tabs": "^3.0.1",
|
127
90
|
"@react-stately/toggle": "^3.2.0",
|
128
91
|
"@react-stately/tooltip": "^3.0.4",
|
129
92
|
"@react-stately/tree": "^3.1.2",
|
130
93
|
"@react-stately/utils": "~3.4.1",
|
94
|
+
"@react-stately/virtualizer": "^3.2.1",
|
131
95
|
"@rebass/forms": "^4.0.6",
|
132
96
|
"@styled-system/prop-types": "^5.1.5",
|
133
97
|
"@styled-system/props": "^5.1.5",
|
@@ -152,5 +116,46 @@
|
|
152
116
|
"theme-ui": "^0.10.0",
|
153
117
|
"tippy.js": "6.2.7",
|
154
118
|
"uuid": "^8.3.2"
|
119
|
+
},
|
120
|
+
"devDependencies": {
|
121
|
+
"@babel/core": "^7.11.6",
|
122
|
+
"@babel/preset-env": "^7.11.5",
|
123
|
+
"@babel/preset-react": "^7.10.4",
|
124
|
+
"@emotion/babel-preset-css-prop": "^11.2.0",
|
125
|
+
"@emotion/cache": "^11.4.0",
|
126
|
+
"@emotion/eslint-plugin": "^11.2.0",
|
127
|
+
"@faker-js/faker": "~7.5.0",
|
128
|
+
"@storybook/addon-a11y": "^6.4.19",
|
129
|
+
"@storybook/addon-actions": "^6.4.19",
|
130
|
+
"@storybook/addon-console": "^1.2.3",
|
131
|
+
"@storybook/addon-docs": "^6.4.19",
|
132
|
+
"@storybook/addon-essentials": "^6.4.19",
|
133
|
+
"@storybook/addon-links": "^6.4.19",
|
134
|
+
"@storybook/addon-storysource": "^6.4.19",
|
135
|
+
"@storybook/addons": "^6.4.19",
|
136
|
+
"@storybook/react": "^6.4.19",
|
137
|
+
"@storybook/theming": "^6.4.19",
|
138
|
+
"@testing-library/jest-dom": "^5.11.4",
|
139
|
+
"@testing-library/react": "^11.0.4",
|
140
|
+
"@testing-library/react-hooks": "^3.4.1",
|
141
|
+
"@testing-library/user-event": "^12.8.3",
|
142
|
+
"babel-loader": "^8.1.0",
|
143
|
+
"babel-plugin-transform-node-env-inline": "^0.4.3",
|
144
|
+
"chromatic": "^6.5.3",
|
145
|
+
"countries-list": "^2.6.1",
|
146
|
+
"eslint-plugin-jest-dom": "^3.9.0",
|
147
|
+
"eslint-plugin-react-hooks": "^2.5.1",
|
148
|
+
"eslint-plugin-testing-library": "^4.6.0",
|
149
|
+
"jest-axe": "^5.0.1",
|
150
|
+
"jest-emotion": "^11.0.0",
|
151
|
+
"mutationobserver-shim": "^0.3.7",
|
152
|
+
"react": "^16.8.6",
|
153
|
+
"react-dom": "^16.13.1",
|
154
|
+
"react-is": "^16.13.1",
|
155
|
+
"use-resize-observer": "^8.0.0"
|
156
|
+
},
|
157
|
+
"peerDependencies": {
|
158
|
+
"react": "^16.8.6",
|
159
|
+
"react-dom": "^16.13.1"
|
155
160
|
}
|
156
161
|
}
|