@pingux/astro 1.27.0-alpha.16 → 1.27.0-alpha.18

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.
Files changed (41) hide show
  1. package/lib/cjs/index.js +2 -67
  2. package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +30 -38
  3. package/lib/cjs/recipes/MaskedValue.stories.js +5 -8
  4. package/lib/cjs/recipes/NeutralInput.stories.js +3 -6
  5. package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +33 -38
  6. package/lib/cjs/recipes/RowLineChart.stories.js +70 -58
  7. package/lib/cjs/styles/variants/variants.js +1 -4
  8. package/lib/index.js +1 -4
  9. package/lib/recipes/FlippableCaretMenuButton.stories.js +30 -38
  10. package/lib/recipes/MaskedValue.stories.js +5 -8
  11. package/lib/recipes/NeutralInput.stories.js +3 -6
  12. package/lib/recipes/OneWayToBidirectionalArrow.stories.js +33 -38
  13. package/lib/recipes/RowLineChart.stories.js +70 -58
  14. package/lib/styles/variants/variants.js +1 -3
  15. package/package.json +1 -1
  16. package/lib/cjs/components/DataTable/DataTable.js +0 -477
  17. package/lib/cjs/components/DataTable/DataTable.stories.js +0 -310
  18. package/lib/cjs/components/DataTable/DataTable.styles.js +0 -156
  19. package/lib/cjs/components/DataTable/DataTable.test.js +0 -1307
  20. package/lib/cjs/components/DataTable/DataTableChip.js +0 -63
  21. package/lib/cjs/components/DataTable/DataTableChip.test.js +0 -38
  22. package/lib/cjs/components/DataTable/DataTableMenu.js +0 -51
  23. package/lib/cjs/components/DataTable/DataTableMenu.test.js +0 -20
  24. package/lib/cjs/components/DataTable/DataTableMultiLine.js +0 -75
  25. package/lib/cjs/components/DataTable/DataTableMultiLine.test.js +0 -30
  26. package/lib/cjs/components/DataTable/DataTableVirtualizer.js +0 -188
  27. package/lib/cjs/components/DataTable/index.js +0 -54
  28. package/lib/cjs/context/DataTableContext/index.js +0 -31
  29. package/lib/components/DataTable/DataTable.js +0 -431
  30. package/lib/components/DataTable/DataTable.stories.js +0 -273
  31. package/lib/components/DataTable/DataTable.styles.js +0 -137
  32. package/lib/components/DataTable/DataTable.test.js +0 -1256
  33. package/lib/components/DataTable/DataTableChip.js +0 -33
  34. package/lib/components/DataTable/DataTableChip.test.js +0 -31
  35. package/lib/components/DataTable/DataTableMenu.js +0 -24
  36. package/lib/components/DataTable/DataTableMenu.test.js +0 -13
  37. package/lib/components/DataTable/DataTableMultiLine.js +0 -46
  38. package/lib/components/DataTable/DataTableMultiLine.test.js +0 -22
  39. package/lib/components/DataTable/DataTableVirtualizer.js +0 -157
  40. package/lib/components/DataTable/index.js +0 -5
  41. package/lib/context/DataTableContext/index.js +0 -5
@@ -138,34 +138,6 @@ 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
- };
169
141
  export var Default = function Default() {
170
142
  var _useResizeObserver = useResizeObserver(),
171
143
  ref = _useResizeObserver.ref,
@@ -189,7 +161,10 @@ export var Default = function Default() {
189
161
 
190
162
  var EmptyData = ___EmotionJSX(Box, {
191
163
  isRow: true,
192
- sx: sx.container,
164
+ bg: "accent.99",
165
+ alignItems: "center",
166
+ justifyContent: "space-between",
167
+ pr: 20,
193
168
  ref: ref
194
169
  }, ___EmotionJSX(Box, {
195
170
  p: "md",
@@ -203,7 +178,8 @@ export var Default = function Default() {
203
178
  alignItems: "center"
204
179
  }, ___EmotionJSX(Box, _extends({
205
180
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
206
- sx: sx.chartTitleContainer
181
+ ml: 20,
182
+ pr: 15
207
183
  }, hideIfMobile()), ___EmotionJSX(Text, {
208
184
  variant: "expandableRow.lineChart.title"
209
185
  }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
@@ -216,7 +192,8 @@ export var Default = function Default() {
216
192
  }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
217
193
  variant: "expandableRow.chartWrapper",
218
194
  onPress: action('seeContributingDataAction'),
219
- sx: sx.button,
195
+ ml: 15,
196
+ pr: 15,
220
197
  "aria-label": "line-chart button"
221
198
  }, hideIfTablet()), ___EmotionJSX(Box, {
222
199
  variant: "boxes.expandableRow.lineChart.divider"
@@ -225,9 +202,11 @@ export var Default = function Default() {
225
202
  }, ___EmotionJSX(Box, {
226
203
  variant: "boxes.expandableRow.lineChart.chart"
227
204
  }, ___EmotionJSX(ResponsiveContainer, {
228
- sx: sx.chartContainer
205
+ width: "100%",
206
+ height: "100%"
229
207
  }, ___EmotionJSX(LineChart, {
230
- sx: sx.chart,
208
+ width: 50,
209
+ height: 18,
231
210
  data: chartData
232
211
  }, ___EmotionJSX(Line, {
233
212
  type: "monotone",
@@ -238,7 +217,8 @@ export var Default = function Default() {
238
217
  variant: "expandableRow.lineChart.chartLabel"
239
218
  }, "No data yet")), ___EmotionJSX(Box, {
240
219
  size: "sm",
241
- sx: sx.chartTrendContainer
220
+ ml: 15,
221
+ width: 50
242
222
  }, ___EmotionJSX(Text, {
243
223
  variant: "expandableRow.lineChart.trend"
244
224
  }, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
@@ -249,7 +229,10 @@ export var Default = function Default() {
249
229
 
250
230
  var FullData = ___EmotionJSX(Box, {
251
231
  isRow: true,
252
- sx: sx.container,
232
+ bg: "accent.99",
233
+ alignItems: "center",
234
+ justifyContent: "space-between",
235
+ pr: 20,
253
236
  mt: 20
254
237
  }, ___EmotionJSX(Box, {
255
238
  p: "md",
@@ -263,7 +246,8 @@ export var Default = function Default() {
263
246
  alignItems: "center"
264
247
  }, ___EmotionJSX(Box, _extends({
265
248
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
266
- sx: sx.chartTitleContainer
249
+ ml: 20,
250
+ pr: 15
267
251
  }, hideIfMobile()), ___EmotionJSX(Text, {
268
252
  variant: "expandableRow.lineChart.title"
269
253
  }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
@@ -276,7 +260,8 @@ export var Default = function Default() {
276
260
  }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
277
261
  variant: "expandableRow.chartWrapper",
278
262
  onPress: action('seeContributingDataAction'),
279
- sx: sx.button,
263
+ ml: 15,
264
+ pr: 15,
280
265
  "aria-label": "line-chart button"
281
266
  }, hideIfTablet()), ___EmotionJSX(Box, {
282
267
  variant: "boxes.expandableRow.lineChart.divider"
@@ -286,9 +271,11 @@ export var Default = function Default() {
286
271
  variant: "boxes.expandableRow.lineChart.chart",
287
272
  width: 50
288
273
  }, ___EmotionJSX(ResponsiveContainer, {
289
- sx: sx.chartContainer
274
+ width: "100%",
275
+ height: "100%"
290
276
  }, ___EmotionJSX(LineChart, {
291
- sx: sx.chart,
277
+ width: 50,
278
+ height: 18,
292
279
  data: chartData
293
280
  }, ___EmotionJSX(Line, {
294
281
  type: "monotone",
@@ -299,7 +286,8 @@ export var Default = function Default() {
299
286
  variant: "expandableRow.lineChart.chartLabel"
300
287
  }, "12 wk trend")), ___EmotionJSX(Box, {
301
288
  size: "sm",
302
- sx: sx.chartTrendContainer
289
+ ml: 15,
290
+ width: 50
303
291
  }, ___EmotionJSX(Text, {
304
292
  variant: "expandableRow.lineChart.trend"
305
293
  }, "+ 8.6%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
@@ -310,7 +298,10 @@ export var Default = function Default() {
310
298
 
311
299
  var PartialData = ___EmotionJSX(Box, {
312
300
  isRow: true,
313
- sx: sx.container,
301
+ bg: "accent.99",
302
+ alignItems: "center",
303
+ justifyContent: "space-between",
304
+ pr: 20,
314
305
  mt: 20
315
306
  }, ___EmotionJSX(Box, {
316
307
  p: "md",
@@ -324,7 +315,8 @@ export var Default = function Default() {
324
315
  alignItems: "center"
325
316
  }, ___EmotionJSX(Box, _extends({
326
317
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
327
- sx: sx.chartTitleContainer
318
+ ml: 20,
319
+ pr: 15
328
320
  }, hideIfMobile()), ___EmotionJSX(Text, {
329
321
  variant: "expandableRow.lineChart.title"
330
322
  }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
@@ -337,7 +329,8 @@ export var Default = function Default() {
337
329
  }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
338
330
  variant: "expandableRow.chartWrapper",
339
331
  onPress: action('seeContributingDataAction'),
340
- sx: sx.button,
332
+ ml: 15,
333
+ pr: 15,
341
334
  "aria-label": "line-chart button"
342
335
  }, hideIfTablet()), ___EmotionJSX(Box, {
343
336
  variant: "boxes.expandableRow.lineChart.divider"
@@ -347,9 +340,11 @@ export var Default = function Default() {
347
340
  variant: "boxes.expandableRow.lineChart.chart",
348
341
  width: 50
349
342
  }, ___EmotionJSX(ResponsiveContainer, {
350
- sx: sx.chartContainer
343
+ width: "100%",
344
+ height: "100%"
351
345
  }, ___EmotionJSX(LineChart, {
352
- sx: sx.chart,
346
+ width: 50,
347
+ height: 18,
353
348
  data: partialDataData
354
349
  }, ___EmotionJSX(Line, {
355
350
  type: "monotone",
@@ -360,7 +355,8 @@ export var Default = function Default() {
360
355
  variant: "expandableRow.lineChart.chartLabel"
361
356
  }, "12 wk trend")), ___EmotionJSX(Box, {
362
357
  size: "sm",
363
- sx: sx.chartTrendContainer
358
+ ml: 15,
359
+ width: 50
364
360
  }, ___EmotionJSX(Text, {
365
361
  variant: "expandableRow.lineChart.trend"
366
362
  }, "- 8.6%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
@@ -371,7 +367,10 @@ export var Default = function Default() {
371
367
 
372
368
  var ZeroData = ___EmotionJSX(Box, {
373
369
  isRow: true,
374
- sx: sx.container,
370
+ bg: "accent.99",
371
+ alignItems: "center",
372
+ justifyContent: "space-between",
373
+ pr: 20,
375
374
  mt: 20
376
375
  }, ___EmotionJSX(Box, {
377
376
  p: "md",
@@ -385,7 +384,8 @@ export var Default = function Default() {
385
384
  alignItems: "center"
386
385
  }, ___EmotionJSX(Box, _extends({
387
386
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
388
- sx: sx.chartTitleContainer
387
+ ml: 20,
388
+ pr: 15
389
389
  }, hideIfMobile()), ___EmotionJSX(Text, {
390
390
  variant: "expandableRow.lineChart.title"
391
391
  }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
@@ -398,7 +398,8 @@ 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
- sx: sx.button,
401
+ ml: 15,
402
+ pr: 15,
402
403
  "aria-label": "line-chart button"
403
404
  }, hideIfTablet()), ___EmotionJSX(Box, {
404
405
  variant: "boxes.expandableRow.lineChart.divider"
@@ -408,9 +409,11 @@ export var Default = function Default() {
408
409
  variant: "boxes.expandableRow.lineChart.chart",
409
410
  width: 50
410
411
  }, ___EmotionJSX(ResponsiveContainer, {
411
- sx: sx.chartContainer
412
+ width: "100%",
413
+ height: "100%"
412
414
  }, ___EmotionJSX(LineChart, {
413
- sx: sx.chart,
415
+ width: 50,
416
+ height: 18,
414
417
  data: zeroData
415
418
  }, ___EmotionJSX(Line, {
416
419
  type: "monotone",
@@ -421,7 +424,8 @@ export var Default = function Default() {
421
424
  variant: "expandableRow.lineChart.chartLabel"
422
425
  }, "12 wk trend")), ___EmotionJSX(Box, {
423
426
  size: "sm",
424
- sx: sx.chartTrendContainer
427
+ ml: 15,
428
+ width: 50
425
429
  }, ___EmotionJSX(Text, {
426
430
  variant: "expandableRow.lineChart.trend"
427
431
  }, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
@@ -432,7 +436,10 @@ export var Default = function Default() {
432
436
 
433
437
  var ZeroValues = ___EmotionJSX(Box, {
434
438
  isRow: true,
435
- sx: sx.container,
439
+ bg: "accent.99",
440
+ alignItems: "center",
441
+ justifyContent: "space-between",
442
+ pr: 20,
436
443
  mt: 20
437
444
  }, ___EmotionJSX(Box, {
438
445
  p: "md",
@@ -446,7 +453,8 @@ export var Default = function Default() {
446
453
  alignItems: "center"
447
454
  }, ___EmotionJSX(Box, _extends({
448
455
  variant: "boxes.expandableRow.lineChart.alignCellRightWrapper",
449
- sx: sx.chartTitleContainer
456
+ ml: 20,
457
+ pr: 15
450
458
  }, hideIfMobile()), ___EmotionJSX(Text, {
451
459
  variant: "expandableRow.lineChart.title"
452
460
  }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
@@ -459,7 +467,8 @@ export var Default = function Default() {
459
467
  }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
460
468
  variant: "expandableRow.chartWrapper",
461
469
  onPress: action('seeContributingDataAction'),
462
- sx: sx.button,
470
+ ml: 15,
471
+ pr: 15,
463
472
  "aria-label": "line-chart button"
464
473
  }, hideIfTablet()), ___EmotionJSX(Box, {
465
474
  variant: "boxes.expandableRow.lineChart.divider"
@@ -469,9 +478,11 @@ export var Default = function Default() {
469
478
  variant: "boxes.expandableRow.lineChart.chart",
470
479
  width: 50
471
480
  }, ___EmotionJSX(ResponsiveContainer, {
472
- sx: sx.chartContainer
481
+ width: "100%",
482
+ height: "100%"
473
483
  }, ___EmotionJSX(LineChart, {
474
- sx: sx.chart,
484
+ width: 50,
485
+ height: 18,
475
486
  data: zeroValuesData
476
487
  }, ___EmotionJSX(Line, {
477
488
  type: "monotone",
@@ -482,7 +493,8 @@ export var Default = function Default() {
482
493
  variant: "expandableRow.lineChart.chartLabel"
483
494
  }, "12 wk trend")), ___EmotionJSX(Box, {
484
495
  size: "sm",
485
- sx: sx.chartTrendContainer
496
+ ml: 15,
497
+ width: 50
486
498
  }, ___EmotionJSX(Text, {
487
499
  variant: "expandableRow.lineChart.trend"
488
500
  }, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
@@ -35,7 +35,6 @@ 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';
39
38
  export default _objectSpread(_objectSpread({
40
39
  accordion: accordion,
41
40
  boxes: boxes,
@@ -59,6 +58,5 @@ export default _objectSpread(_objectSpread({
59
58
  stepper: stepper,
60
59
  table: table
61
60
  }, tabs), {}, {
62
- tooltip: tooltip,
63
- dataTable: dataTable
61
+ tooltip: tooltip
64
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.27.0-alpha.16",
3
+ "version": "1.27.0-alpha.18",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",