@pingux/astro 2.20.0-alpha.0 → 2.20.0-alpha.10

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 (52) hide show
  1. package/lib/cjs/{experimental → components}/ButtonBar/ButtonBar.js +6 -9
  2. package/lib/{experimental → cjs/components}/ButtonBar/ButtonBar.mdx +1 -2
  3. package/lib/cjs/{experimental → components}/ButtonBar/ButtonBar.stories.js +22 -9
  4. package/lib/cjs/components/ButtonBar/ButtonBar.styles.js +33 -0
  5. package/lib/cjs/{experimental → components}/ButtonBar/ButtonBar.test.js +5 -5
  6. package/lib/cjs/components/ColorField/ColorField.js +4 -1
  7. package/lib/cjs/components/ListView/ListView.js +8 -2
  8. package/lib/cjs/components/TreeView/TreeView.js +100 -0
  9. package/lib/cjs/components/TreeView/TreeView.mdx +16 -0
  10. package/lib/cjs/components/TreeView/TreeView.stories.js +89 -0
  11. package/lib/cjs/components/TreeView/TreeView.styles.js +32 -0
  12. package/lib/cjs/components/TreeView/TreeView.test.js +124 -0
  13. package/lib/cjs/components/TreeView/TreeViewItem.js +74 -0
  14. package/lib/cjs/components/TreeView/TreeViewRow.js +147 -0
  15. package/lib/cjs/components/TreeView/TreeViewSection.js +88 -0
  16. package/lib/cjs/components/TreeView/index.js +28 -0
  17. package/lib/cjs/context/TreeViewContext/index.js +14 -0
  18. package/lib/cjs/index.d.ts +4 -2
  19. package/lib/cjs/index.js +32 -6
  20. package/lib/cjs/recipes/CountryPicker.stories.js +11 -2
  21. package/lib/cjs/recipes/{EditableInput.stories.js → InlineEditing.stories.js} +12 -2
  22. package/lib/cjs/recipes/OneWayToBidirectionalArrow.stories.js +8 -1
  23. package/lib/cjs/styles/variants/variants.js +5 -1
  24. package/lib/cjs/utils/designUtils/figmaLinks.js +13 -0
  25. package/lib/{experimental → components}/ButtonBar/ButtonBar.js +6 -9
  26. package/lib/{cjs/experimental → components}/ButtonBar/ButtonBar.mdx +1 -2
  27. package/lib/{experimental → components}/ButtonBar/ButtonBar.stories.js +15 -2
  28. package/lib/components/ButtonBar/ButtonBar.styles.js +25 -0
  29. package/lib/{experimental → components}/ButtonBar/ButtonBar.test.js +1 -1
  30. package/lib/components/ColorField/ColorField.js +4 -1
  31. package/lib/components/ListView/ListView.js +8 -2
  32. package/lib/components/TreeView/TreeView.js +89 -0
  33. package/lib/components/TreeView/TreeView.mdx +16 -0
  34. package/lib/components/TreeView/TreeView.stories.js +79 -0
  35. package/lib/components/TreeView/TreeView.styles.js +24 -0
  36. package/lib/components/TreeView/TreeView.test.js +121 -0
  37. package/lib/components/TreeView/TreeViewItem.js +60 -0
  38. package/lib/components/TreeView/TreeViewRow.js +135 -0
  39. package/lib/components/TreeView/TreeViewSection.js +74 -0
  40. package/lib/components/TreeView/index.js +3 -0
  41. package/lib/context/TreeViewContext/index.js +5 -0
  42. package/lib/index.js +4 -2
  43. package/lib/recipes/CountryPicker.stories.js +10 -1
  44. package/lib/recipes/{EditableInput.stories.js → InlineEditing.stories.js} +10 -1
  45. package/lib/recipes/OneWayToBidirectionalArrow.stories.js +7 -0
  46. package/lib/styles/variants/variants.js +5 -1
  47. package/lib/utils/designUtils/figmaLinks.js +13 -0
  48. package/package.json +1 -1
  49. package/lib/cjs/recipes/RowLineChart.stories.js +0 -578
  50. package/lib/recipes/RowLineChart.stories.js +0 -565
  51. /package/lib/cjs/{experimental → components}/ButtonBar/index.js +0 -0
  52. /package/lib/{experimental → components}/ButtonBar/index.js +0 -0
@@ -1,565 +0,0 @@
1
- import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
- import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
- import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
4
- import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
- import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
- import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
- import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
- import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
- import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
10
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
11
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
13
- import React, { useCallback, useMemo } from 'react';
14
- import { useVisuallyHidden } from 'react-aria';
15
- import { action } from '@storybook/addon-actions';
16
- import { Line, LineChart, ResponsiveContainer } from 'recharts';
17
- import useResizeObserver from 'use-resize-observer';
18
- import { Box, Button, SwitchField, Text, Tooltip, TooltipTrigger } from '../index';
19
- import { neutral } from '../styles/colors';
20
- import { jsx as ___EmotionJSX } from "@emotion/react";
21
- export default {
22
- title: 'Recipes/Row Line Chart',
23
- parameters: {
24
- chromatic: {
25
- diffThreshold: 0.9
26
- }
27
- }
28
- };
29
- var chartData = [{
30
- id: 1,
31
- emptyData: 0,
32
- fullData: 1
33
- }, {
34
- id: 2,
35
- emptyData: 0,
36
- fullData: 5
37
- }, {
38
- id: 3,
39
- emptyData: 0,
40
- fullData: 3
41
- }, {
42
- id: 4,
43
- emptyData: 0,
44
- fullData: 2
45
- }, {
46
- id: 5,
47
- emptyData: 0,
48
- fullData: 5
49
- }, {
50
- id: 6,
51
- emptyData: 0,
52
- fullData: 1
53
- }, {
54
- id: 7,
55
- emptyData: 0,
56
- fullData: 5
57
- }, {
58
- id: 8,
59
- emptyData: 0,
60
- fullData: 5
61
- }, {
62
- id: 9,
63
- emptyData: 0,
64
- fullData: 1
65
- }, {
66
- id: 10,
67
- emptyData: 0,
68
- fullData: 2
69
- }, {
70
- id: 11,
71
- emptyData: 0,
72
- fullData: 4
73
- }, {
74
- id: 12,
75
- emptyData: 0,
76
- fullData: 11
77
- }];
78
- var partialDataData = [{
79
- id: 1
80
- }, {
81
- id: 2
82
- }, {
83
- id: 3
84
- }, {
85
- id: 4
86
- }, {
87
- id: 5
88
- }, {
89
- id: 6
90
- }, {
91
- id: 7,
92
- value: 6
93
- }, {
94
- id: 8,
95
- value: 5
96
- }, {
97
- id: 9,
98
- value: 4
99
- }, {
100
- id: 10,
101
- value: 3
102
- }, {
103
- id: 11,
104
- value: 2
105
- }, {
106
- id: 12,
107
- value: 1
108
- }];
109
- var zeroValuesData = [{
110
- id: 1,
111
- value: 0
112
- }, {
113
- id: 2,
114
- value: 0
115
- }, {
116
- id: 3,
117
- value: 0
118
- }, {
119
- id: 4,
120
- value: 0
121
- }];
122
- var zeroData = [{
123
- id: 1
124
- }, {
125
- id: 2
126
- }, {
127
- id: 3
128
- }, {
129
- id: 4
130
- }, {
131
- id: 5
132
- }, {
133
- id: 6
134
- }, {
135
- id: 7
136
- }, {
137
- id: 8,
138
- value: 0
139
- }, {
140
- id: 9,
141
- value: 0
142
- }, {
143
- id: 10,
144
- value: 0
145
- }, {
146
- id: 11,
147
- value: 0
148
- }, {
149
- id: 12,
150
- value: 0
151
- }];
152
- var expandableRowSharedStyle = {
153
- textOverflow: 'ellipsis',
154
- overflow: 'hidden',
155
- whiteSpace: 'nowrap'
156
- };
157
- var alignCellRightWrapper = {
158
- display: 'flex',
159
- flexDirection: 'column',
160
- alignItems: 'flex-end'
161
- };
162
- var sx = {
163
- container: {
164
- backgroundColor: 'accent.99',
165
- alignItems: 'center',
166
- justifyContent: 'space-between',
167
- pr: '20px'
168
- },
169
- chartTitleContainer: {},
170
- chartContainer: {
171
- width: '100%',
172
- height: '100%'
173
- },
174
- chart: {
175
- width: '50',
176
- height: '18'
177
- },
178
- chartTrendContainer: {
179
- ml: 'md',
180
- width: '50px'
181
- },
182
- expandableRow: {
183
- titleWrapper: {
184
- maxWidth: '50%',
185
- p: 'md'
186
- },
187
- lineChart: {
188
- title: _objectSpread(_objectSpread({}, alignCellRightWrapper), {}, {
189
- ml: '20px',
190
- pr: 'md'
191
- }),
192
- content: _objectSpread(_objectSpread({}, alignCellRightWrapper), {}, {
193
- width: 100
194
- }),
195
- chart: {
196
- width: '50px',
197
- height: '18px'
198
- },
199
- chartWrapper: {
200
- '&:hover': {
201
- backgroundColor: '#4462ED1A'
202
- }
203
- },
204
- divider: {
205
- backgroundColor: 'neutral.80',
206
- height: '35px',
207
- width: '1px'
208
- }
209
- }
210
- },
211
- expandableRowButton: {
212
- chartWrapper: {
213
- display: 'flex',
214
- flexDirection: 'row',
215
- alignItems: 'center',
216
- color: 'black',
217
- background: 'none',
218
- cursor: 'pointer',
219
- height: 60,
220
- padding: 0,
221
- ml: 'md',
222
- pr: 'md',
223
- border: 'none',
224
- '&:hover': {
225
- backgroundColor: '#4462ED1A'
226
- }
227
- }
228
- },
229
- expandableRowText: {
230
- title: _objectSpread({
231
- fontSize: 'lg',
232
- color: 'neutral.20'
233
- }, expandableRowSharedStyle),
234
- subtitle: _objectSpread({
235
- fontSize: 'sm',
236
- color: 'neutral.60'
237
- }, expandableRowSharedStyle),
238
- lineChart: {
239
- title: _objectSpread({
240
- fontSize: 'sm',
241
- color: 'neutral.40',
242
- maxWidth: '100%'
243
- }, expandableRowSharedStyle),
244
- count: {
245
- color: 'neutral.20',
246
- fontSize: 22,
247
- fontWeight: 2
248
- },
249
- countLabel: {
250
- fontSize: 'xs',
251
- color: 'neutral.50'
252
- },
253
- chartLabel: {
254
- fontSize: 'xs',
255
- color: 'neutral.50',
256
- minWidth: '60px'
257
- },
258
- trend: {
259
- color: 'neutral.20',
260
- fontSize: 'sm',
261
- fontWeight: 3,
262
- whiteSpace: 'nowrap'
263
- }
264
- }
265
- }
266
- };
267
- export var Default = function Default() {
268
- var _useResizeObserver = useResizeObserver(),
269
- ref = _useResizeObserver.ref,
270
- width = _useResizeObserver.width;
271
- var _useVisuallyHidden = useVisuallyHidden(),
272
- visuallyHiddenProps = _useVisuallyHidden.visuallyHiddenProps;
273
- var isTablet = useMemo(function () {
274
- return width <= 605;
275
- }, [width]);
276
- var isMobile = useMemo(function () {
277
- return width <= 350;
278
- }, [width]);
279
- var hideIfTablet = useCallback(function () {
280
- return isTablet && visuallyHiddenProps;
281
- }, [isTablet]);
282
- var hideIfMobile = useCallback(function () {
283
- return isMobile && visuallyHiddenProps;
284
- }, [isMobile]);
285
- var EmptyData = ___EmotionJSX(Box, {
286
- isRow: true,
287
- sx: sx.container,
288
- ref: ref
289
- }, ___EmotionJSX(Box, {
290
- sx: sx.expandableRow.titleWrapper
291
- }, ___EmotionJSX(Text, {
292
- sx: sx.expandableRowText.title
293
- }, "Expanded Row with Line Chart"), ___EmotionJSX(Text, {
294
- sx: sx.expandableRowText.subtitle
295
- }, "Empty Data")), ___EmotionJSX(Box, {
296
- isRow: true,
297
- alignItems: "center"
298
- }, ___EmotionJSX(Box, _extends({
299
- sx: sx.expandableRow.lineChart.title
300
- }, hideIfMobile()), ___EmotionJSX(Text, {
301
- sx: sx.expandableRowText.lineChart.title
302
- }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
303
- sx: sx.expandableRow.lineChart.content
304
- }, hideIfTablet()), ___EmotionJSX(Text, {
305
- sx: sx.expandableRowText.lineChart.count
306
- }, "0"), ___EmotionJSX(Text, {
307
- sx: sx.expandableRowText.lineChart.countLabel
308
- }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
309
- sx: sx.expandableRowButton.chartWrapper,
310
- onPress: action('seeContributingDataAction'),
311
- "aria-label": "line-chart button"
312
- }, hideIfTablet()), ___EmotionJSX(Box, {
313
- sx: sx.expandableRow.lineChart.divider
314
- }), ___EmotionJSX(Box, {
315
- ml: 15
316
- }, ___EmotionJSX(Box, {
317
- sx: sx.expandableRow.lineChart.chart
318
- }, ___EmotionJSX(ResponsiveContainer, {
319
- sx: sx.chartContainer
320
- }, ___EmotionJSX(LineChart, {
321
- sx: sx.chart,
322
- data: chartData
323
- }, ___EmotionJSX(Line, {
324
- type: "monotone",
325
- dataKey: "emptyData",
326
- dot: false,
327
- stroke: neutral[20]
328
- })))), ___EmotionJSX(Text, {
329
- sx: sx.expandableRowText.lineChart.chartLabel
330
- }, "No data yet")), ___EmotionJSX(Box, {
331
- size: "sm",
332
- sx: sx.chartTrendContainer
333
- }, ___EmotionJSX(Text, {
334
- sx: sx.expandableRowText.lineChart.trend
335
- }, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
336
- size: "sm"
337
- }, ___EmotionJSX(SwitchField, {
338
- "aria-label": "line-chart switch-field"
339
- }))));
340
- var FullData = ___EmotionJSX(Box, {
341
- isRow: true,
342
- sx: sx.container,
343
- mt: 20
344
- }, ___EmotionJSX(Box, {
345
- sx: sx.expandableRow.titleWrapper
346
- }, ___EmotionJSX(Text, {
347
- sx: sx.expandableRowText.title
348
- }, "Expanded Row with Line Chart"), ___EmotionJSX(Text, {
349
- sx: sx.expandableRowText.subtitle
350
- }, "Full Data")), ___EmotionJSX(Box, {
351
- isRow: true,
352
- alignItems: "center"
353
- }, ___EmotionJSX(Box, _extends({
354
- sx: sx.expandableRow.lineChart.title
355
- }, hideIfMobile()), ___EmotionJSX(Text, {
356
- sx: sx.expandableRowText.lineChart.title
357
- }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
358
- sx: sx.expandableRow.lineChart.content
359
- }, hideIfTablet()), ___EmotionJSX(Text, {
360
- sx: sx.expandableRowText.lineChart.count
361
- }, "1,234,234"), ___EmotionJSX(Text, {
362
- sx: sx.expandableRowText.lineChart.countLabel
363
- }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
364
- sx: sx.expandableRowButton.chartWrapper,
365
- onPress: action('seeContributingDataAction'),
366
- "aria-label": "line-chart button"
367
- }, hideIfTablet()), ___EmotionJSX(Box, {
368
- sx: sx.expandableRow.lineChart.divider
369
- }), ___EmotionJSX(Box, {
370
- ml: 15
371
- }, ___EmotionJSX(Box, {
372
- sx: sx.expandableRow.lineChart.chart,
373
- width: 50
374
- }, ___EmotionJSX(ResponsiveContainer, {
375
- sx: sx.chartContainer
376
- }, ___EmotionJSX(LineChart, {
377
- sx: sx.chart,
378
- data: chartData
379
- }, ___EmotionJSX(Line, {
380
- type: "monotone",
381
- dataKey: "fullData",
382
- dot: false,
383
- stroke: neutral[20]
384
- })))), ___EmotionJSX(Text, {
385
- sx: sx.expandableRowText.lineChart.chartLabel
386
- }, "12 wk trend")), ___EmotionJSX(Box, {
387
- size: "sm",
388
- sx: sx.chartTrendContainer
389
- }, ___EmotionJSX(Text, {
390
- sx: sx.expandableRowText.lineChart.trend
391
- }, "+ 8.6%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
392
- size: "sm"
393
- }, ___EmotionJSX(SwitchField, {
394
- "aria-label": "line-chart switch-field"
395
- }))));
396
- var PartialData = ___EmotionJSX(Box, {
397
- isRow: true,
398
- sx: sx.container,
399
- mt: 20
400
- }, ___EmotionJSX(Box, {
401
- sx: sx.expandableRow.titleWrapper
402
- }, ___EmotionJSX(Text, {
403
- sx: sx.expandableRowText.title
404
- }, "Expanded Row with Line Chart"), ___EmotionJSX(Text, {
405
- sx: sx.expandableRowText.subtitle
406
- }, "Partial Data")), ___EmotionJSX(Box, {
407
- isRow: true,
408
- alignItems: "center"
409
- }, ___EmotionJSX(Box, _extends({
410
- sx: sx.expandableRow.lineChart.title
411
- }, hideIfMobile()), ___EmotionJSX(Text, {
412
- sx: sx.expandableRowText.lineChart.title
413
- }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
414
- sx: sx.expandableRow.lineChart.content
415
- }, hideIfTablet()), ___EmotionJSX(Text, {
416
- sx: sx.expandableRowText.lineChart.count
417
- }, "234,234"), ___EmotionJSX(Text, {
418
- sx: sx.expandableRowText.lineChart.countLabel
419
- }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
420
- sx: sx.expandableRowButton.chartWrapper,
421
- onPress: action('seeContributingDataAction'),
422
- "aria-label": "line-chart button"
423
- }, hideIfTablet()), ___EmotionJSX(Box, {
424
- sx: sx.expandableRow.lineChart.divider
425
- }), ___EmotionJSX(Box, {
426
- ml: 15
427
- }, ___EmotionJSX(Box, {
428
- sx: sx.expandableRow.lineChart.chart,
429
- width: 50
430
- }, ___EmotionJSX(ResponsiveContainer, {
431
- sx: sx.chartContainer
432
- }, ___EmotionJSX(LineChart, {
433
- sx: sx.chart,
434
- data: partialDataData
435
- }, ___EmotionJSX(Line, {
436
- type: "monotone",
437
- dataKey: "value",
438
- dot: false,
439
- stroke: neutral[20]
440
- })))), ___EmotionJSX(Text, {
441
- sx: sx.expandableRowText.lineChart.chartLabel
442
- }, "12 wk trend")), ___EmotionJSX(Box, {
443
- size: "sm",
444
- sx: sx.chartTrendContainer
445
- }, ___EmotionJSX(Text, {
446
- sx: sx.expandableRowText.lineChart.trend
447
- }, "- 8.6%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
448
- size: "sm"
449
- }, ___EmotionJSX(SwitchField, {
450
- "aria-label": "line-chart switch-field"
451
- }))));
452
- var ZeroData = ___EmotionJSX(Box, {
453
- isRow: true,
454
- sx: sx.container,
455
- mt: 20
456
- }, ___EmotionJSX(Box, {
457
- sx: sx.expandableRow.titleWrapper
458
- }, ___EmotionJSX(Text, {
459
- sx: sx.expandableRowText.title
460
- }, "Expanded Row with Line Chart"), ___EmotionJSX(Text, {
461
- sx: sx.expandableRowText.subtitle
462
- }, "Zero Data")), ___EmotionJSX(Box, {
463
- isRow: true,
464
- alignItems: "center"
465
- }, ___EmotionJSX(Box, _extends({
466
- sx: sx.expandableRow.lineChart.title
467
- }, hideIfMobile()), ___EmotionJSX(Text, {
468
- sx: sx.expandableRowText.lineChart.title
469
- }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
470
- sx: sx.expandableRow.lineChart.content
471
- }, hideIfTablet()), ___EmotionJSX(Text, {
472
- sx: sx.expandableRowText.lineChart.count
473
- }, "0"), ___EmotionJSX(Text, {
474
- sx: sx.expandableRowText.lineChart.countLabel
475
- }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
476
- sx: sx.expandableRowButton.chartWrapper,
477
- onPress: action('seeContributingDataAction'),
478
- "aria-label": "line-chart button"
479
- }, hideIfTablet()), ___EmotionJSX(Box, {
480
- sx: sx.expandableRow.lineChart.divider
481
- }), ___EmotionJSX(Box, {
482
- ml: 15
483
- }, ___EmotionJSX(Box, {
484
- sx: sx.expandableRow.lineChart.chart,
485
- width: 50
486
- }, ___EmotionJSX(ResponsiveContainer, {
487
- sx: sx.chartContainer
488
- }, ___EmotionJSX(LineChart, {
489
- sx: sx.chart,
490
- data: zeroData
491
- }, ___EmotionJSX(Line, {
492
- type: "monotone",
493
- dataKey: "value",
494
- dot: false,
495
- stroke: neutral[20]
496
- })))), ___EmotionJSX(Text, {
497
- sx: sx.expandableRowText.lineChart.chartLabel
498
- }, "12 wk trend")), ___EmotionJSX(Box, {
499
- size: "sm",
500
- sx: sx.chartTrendContainer
501
- }, ___EmotionJSX(Text, {
502
- sx: sx.expandableRowText.lineChart.trend
503
- }, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
504
- size: "sm"
505
- }, ___EmotionJSX(SwitchField, {
506
- "aria-label": "line-chart switch-field"
507
- }))));
508
- var ZeroValues = ___EmotionJSX(Box, {
509
- isRow: true,
510
- sx: sx.container,
511
- mt: 20
512
- }, ___EmotionJSX(Box, {
513
- sx: sx.expandableRow.titleWrapper
514
- }, ___EmotionJSX(Text, {
515
- sx: sx.expandableRowText.title
516
- }, "Expanded Row with Line Chart"), ___EmotionJSX(Text, {
517
- sx: sx.expandableRowText.subtitle
518
- }, "Zero Values")), ___EmotionJSX(Box, {
519
- isRow: true,
520
- alignItems: "center"
521
- }, ___EmotionJSX(Box, _extends({
522
- sx: sx.expandableRow.lineChart.title
523
- }, hideIfMobile()), ___EmotionJSX(Text, {
524
- sx: sx.expandableRowText.lineChart.title
525
- }, "Avg daily sign-ons:")), ___EmotionJSX(Box, _extends({
526
- sx: sx.expandableRow.lineChart.content
527
- }, hideIfTablet()), ___EmotionJSX(Text, {
528
- sx: sx.expandableRowText.lineChart.count
529
- }, "0"), ___EmotionJSX(Text, {
530
- sx: sx.expandableRowText.lineChart.countLabel
531
- }, "Past 7 days")), ___EmotionJSX(TooltipTrigger, null, ___EmotionJSX(Button, _extends({
532
- sx: sx.expandableRowButton.chartWrapper,
533
- onPress: action('seeContributingDataAction'),
534
- "aria-label": "line-chart button"
535
- }, hideIfTablet()), ___EmotionJSX(Box, {
536
- sx: sx.expandableRow.lineChart.divider
537
- }), ___EmotionJSX(Box, {
538
- ml: 15
539
- }, ___EmotionJSX(Box, {
540
- sx: sx.expandableRow.lineChart.chart,
541
- width: 50
542
- }, ___EmotionJSX(ResponsiveContainer, {
543
- sx: sx.chartContainer
544
- }, ___EmotionJSX(LineChart, {
545
- sx: sx.chart,
546
- data: zeroValuesData
547
- }, ___EmotionJSX(Line, {
548
- type: "monotone",
549
- dataKey: "value",
550
- dot: false,
551
- stroke: neutral[20]
552
- })))), ___EmotionJSX(Text, {
553
- sx: sx.expandableRowText.lineChart.chartLabel
554
- }, "12 wk trend")), ___EmotionJSX(Box, {
555
- size: "sm",
556
- sx: sx.chartTrendContainer
557
- }, ___EmotionJSX(Text, {
558
- sx: sx.expandableRowText.lineChart.trend
559
- }, "+ 0%"))), ___EmotionJSX(Tooltip, null, "See Contributing Data")), ___EmotionJSX(Box, {
560
- size: "sm"
561
- }, ___EmotionJSX(SwitchField, {
562
- "aria-label": "line-chart switch-field"
563
- }))));
564
- return ___EmotionJSX(React.Fragment, null, EmptyData, FullData, PartialData, ZeroData, ZeroValues);
565
- };