@pingux/astro 1.27.0-alpha.12 → 1.27.0-alpha.14
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/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -8
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +0 -35
- package/lib/cjs/components/PageHeader/PageHeader.js +1 -7
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +30 -38
- package/lib/cjs/recipes/ListAndPanel.stories.js +87 -102
- package/lib/cjs/recipes/MaskedValue.stories.js +5 -8
- package/lib/cjs/recipes/NeutralInput.stories.js +3 -6
- package/lib/cjs/recipes/RowLineChart.stories.js +70 -58
- package/lib/cjs/recipes/SelectedFieldOverlay.story.js +21 -25
- package/lib/cjs/recipes/TrialExperienceStatusBar.stories.js +72 -81
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +2 -7
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +0 -25
- package/lib/components/PageHeader/PageHeader.js +1 -8
- package/lib/recipes/FlippableCaretMenuButton.stories.js +30 -38
- package/lib/recipes/ListAndPanel.stories.js +87 -102
- package/lib/recipes/MaskedValue.stories.js +5 -8
- package/lib/recipes/NeutralInput.stories.js +3 -6
- package/lib/recipes/RowLineChart.stories.js +70 -58
- package/lib/recipes/SelectedFieldOverlay.story.js +21 -25
- package/lib/recipes/TrialExperienceStatusBar.stories.js +72 -81
- package/package.json +1 -1
- package/lib/cjs/recipes/PageHeader.stories.js +0 -73
- package/lib/recipes/PageHeader.stories.js +0 -53
@@ -31,40 +31,6 @@ export default {
|
|
31
31
|
title: 'Recipes/FlippableCaretMenuButton'
|
32
32
|
};
|
33
33
|
var buttonArray = ['Web App', 'Native App', 'Single Page App', 'Non-Interactive', 'Worker', 'Advanced Configuration', 'Built-in admin console for this environment', 'Built-in Application portal'];
|
34
|
-
var sx = {
|
35
|
-
openButton: {
|
36
|
-
height: '30px',
|
37
|
-
borderRadius: 'md',
|
38
|
-
fontSize: '13px',
|
39
|
-
mb: 'sm'
|
40
|
-
},
|
41
|
-
closeIconButton: {
|
42
|
-
position: 'absolute',
|
43
|
-
top: '14px',
|
44
|
-
right: 'sm'
|
45
|
-
},
|
46
|
-
buttonsContainer: {
|
47
|
-
p: 'lg',
|
48
|
-
flexDirection: 'initial !important',
|
49
|
-
alignContent: 'space-between',
|
50
|
-
flexWrap: 'wrap'
|
51
|
-
},
|
52
|
-
selectedButton: {
|
53
|
-
mb: 'sm',
|
54
|
-
mr: '4px',
|
55
|
-
height: '30px',
|
56
|
-
borderRadius: '15px',
|
57
|
-
fontSize: '13px'
|
58
|
-
},
|
59
|
-
unSelectedButton: {
|
60
|
-
mb: 'sm',
|
61
|
-
mr: '4px',
|
62
|
-
borderColor: 'neutral.80',
|
63
|
-
height: '30px',
|
64
|
-
borderRadius: '15px',
|
65
|
-
fontSize: '13px'
|
66
|
-
}
|
67
|
-
};
|
68
34
|
export var Default = function Default() {
|
69
35
|
var buttonRef = useRef();
|
70
36
|
var popoverRef = useRef();
|
@@ -123,9 +89,14 @@ export var Default = function Default() {
|
|
123
89
|
|
124
90
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Button, {
|
125
91
|
ref: buttonRef,
|
92
|
+
mb: "sm",
|
126
93
|
variant: "inline",
|
127
94
|
onPress: onChange,
|
128
|
-
sx:
|
95
|
+
sx: {
|
96
|
+
height: '30px',
|
97
|
+
borderRadius: '15px',
|
98
|
+
fontSize: '13px'
|
99
|
+
}
|
129
100
|
}, ___EmotionJSX(Box, {
|
130
101
|
isRow: true,
|
131
102
|
alignItems: "center"
|
@@ -148,15 +119,36 @@ export var Default = function Default() {
|
|
148
119
|
onPress: function onPress() {
|
149
120
|
return setIsOpen(false);
|
150
121
|
},
|
151
|
-
sx:
|
122
|
+
sx: {
|
123
|
+
position: 'absolute',
|
124
|
+
top: 14,
|
125
|
+
right: 10
|
126
|
+
}
|
152
127
|
}, ___EmotionJSX(Icon, {
|
153
128
|
icon: CloseIcon
|
154
129
|
})), ___EmotionJSX(Box, {
|
155
|
-
sx:
|
130
|
+
sx: {
|
131
|
+
p: 'lg',
|
132
|
+
flexDirection: 'initial !important',
|
133
|
+
alignContent: 'space-between',
|
134
|
+
flexWrap: 'wrap'
|
135
|
+
}
|
156
136
|
}, _mapInstanceProperty(buttonArray).call(buttonArray, function (item) {
|
157
137
|
return ___EmotionJSX(Button, {
|
138
|
+
mb: "sm",
|
158
139
|
variant: "inline",
|
159
|
-
sx: _includesInstanceProperty(selectedButtons).call(selectedButtons, item) ?
|
140
|
+
sx: _includesInstanceProperty(selectedButtons).call(selectedButtons, item) ? {
|
141
|
+
mr: '4px',
|
142
|
+
height: '30px',
|
143
|
+
borderRadius: '15px',
|
144
|
+
fontSize: '13px'
|
145
|
+
} : {
|
146
|
+
mr: '4px',
|
147
|
+
borderColor: 'neutral.80',
|
148
|
+
height: '30px',
|
149
|
+
borderRadius: '15px',
|
150
|
+
fontSize: '13px'
|
151
|
+
},
|
160
152
|
key: item,
|
161
153
|
onPress: function onPress() {
|
162
154
|
return toggleButton(item);
|
@@ -92,106 +92,44 @@ var items = [{
|
|
92
92
|
avatar: AccountIcon,
|
93
93
|
hasSeparator: false
|
94
94
|
}];
|
95
|
-
var sx = {
|
96
|
-
wrapper: {
|
97
|
-
px: 'lg',
|
98
|
-
py: 'lg',
|
99
|
-
bg: 'accent.99',
|
100
|
-
height: '900px',
|
101
|
-
overflowY: 'scroll'
|
102
|
-
},
|
103
|
-
searchField: {
|
104
|
-
position: 'fixed',
|
105
|
-
mb: 'sm',
|
106
|
-
width: '400px'
|
107
|
-
},
|
108
|
-
listElementWrapper: {
|
109
|
-
px: 'md',
|
110
|
-
bg: 'accent.99',
|
111
|
-
justifyContent: 'center'
|
112
|
-
},
|
113
|
-
separator: {
|
114
|
-
bg: 'accent.90'
|
115
|
-
},
|
116
|
-
tabsWrapper: {
|
117
|
-
px: 'lg',
|
118
|
-
pt: 'xs'
|
119
|
-
},
|
120
|
-
iconButton: {
|
121
|
-
position: 'absolute',
|
122
|
-
top: 0,
|
123
|
-
right: 0
|
124
|
-
},
|
125
|
-
itemLabel: {
|
126
|
-
fontSize: 'sm',
|
127
|
-
fontWeight: 3,
|
128
|
-
lineHeight: '16px',
|
129
|
-
mb: 'xs'
|
130
|
-
},
|
131
|
-
itemValue: {
|
132
|
-
fontWeight: 0,
|
133
|
-
lineHeight: '18px',
|
134
|
-
variant: 'base',
|
135
|
-
mb: 'md'
|
136
|
-
},
|
137
|
-
listElement: {
|
138
|
-
wrapper: {
|
139
|
-
minHeight: '60px'
|
140
|
-
},
|
141
|
-
iconWrapper: {
|
142
|
-
mr: 'auto',
|
143
|
-
alignItems: 'center'
|
144
|
-
},
|
145
|
-
icon: {
|
146
|
-
mr: 'sm',
|
147
|
-
alignSelf: 'center',
|
148
|
-
color: 'accent.40'
|
149
|
-
},
|
150
|
-
avatar: {
|
151
|
-
width: '25px',
|
152
|
-
height: '25px',
|
153
|
-
mr: 'md'
|
154
|
-
},
|
155
|
-
title: {
|
156
|
-
alignSelf: 'start'
|
157
|
-
},
|
158
|
-
subtitle: {
|
159
|
-
fontSize: 'sm',
|
160
|
-
my: '1px',
|
161
|
-
lineHeight: '16px',
|
162
|
-
alignSelf: 'start'
|
163
|
-
},
|
164
|
-
menuWrapper: {
|
165
|
-
alignSelf: 'center'
|
166
|
-
}
|
167
|
-
}
|
168
|
-
};
|
169
95
|
|
170
96
|
var ListElement = function ListElement(_ref) {
|
171
97
|
var item = _ref.item,
|
172
98
|
onClosePanel = _ref.onClosePanel;
|
173
99
|
return ___EmotionJSX(Box, {
|
174
100
|
isRow: true,
|
175
|
-
|
101
|
+
minHeight: "60px"
|
176
102
|
}, ___EmotionJSX(Box, {
|
177
103
|
isRow: true,
|
178
|
-
|
104
|
+
mr: "auto",
|
105
|
+
alignItems: "center"
|
179
106
|
}, item.hasIcon ? ___EmotionJSX(Icon, {
|
180
107
|
icon: item.avatar,
|
108
|
+
alignSelf: "center",
|
181
109
|
size: 24,
|
182
|
-
|
110
|
+
mr: "sm",
|
111
|
+
color: "accent.40"
|
183
112
|
}) : ___EmotionJSX(Avatar, {
|
184
|
-
|
113
|
+
mr: "md",
|
114
|
+
sx: {
|
115
|
+
width: '25px',
|
116
|
+
height: '25px'
|
117
|
+
},
|
185
118
|
src: item.avatar
|
186
119
|
}), ___EmotionJSX(Box, null, ___EmotionJSX(Text, {
|
187
120
|
variant: "bodyStrong",
|
188
|
-
|
121
|
+
alignSelf: "start"
|
189
122
|
}, item.lastName, ", ", item.firstName), ___EmotionJSX(Text, {
|
123
|
+
sx: {
|
124
|
+
fontSize: 'sm',
|
125
|
+
my: '1px',
|
126
|
+
lineHeight: '16px'
|
127
|
+
},
|
190
128
|
variant: "subtitle",
|
191
|
-
|
129
|
+
alignSelf: "start"
|
192
130
|
}, item.email))), ___EmotionJSX(Box, {
|
193
131
|
isRow: true,
|
194
|
-
|
132
|
+
alignSelf: "center"
|
195
133
|
}, ___EmotionJSX(SwitchField, {
|
196
134
|
"aria-label": "active user",
|
197
135
|
isDefaultSelected: true,
|
@@ -248,7 +186,11 @@ export var Default = function Default() {
|
|
248
186
|
};
|
249
187
|
|
250
188
|
return ___EmotionJSX(Box, {
|
251
|
-
|
189
|
+
px: "lg",
|
190
|
+
py: "lg",
|
191
|
+
bg: "accent.99",
|
192
|
+
height: "900px",
|
193
|
+
overflowY: "scroll"
|
252
194
|
}, ___EmotionJSX(SearchField, {
|
253
195
|
position: "fixed",
|
254
196
|
mb: "sm",
|
@@ -282,15 +224,18 @@ export var Default = function Default() {
|
|
282
224
|
restoreFocus: true,
|
283
225
|
autoFocus: true
|
284
226
|
}, ___EmotionJSX(Box, {
|
285
|
-
|
227
|
+
px: "md",
|
228
|
+
bg: "accent.99",
|
229
|
+
justifyContent: "center"
|
286
230
|
}, ___EmotionJSX(ListElement, {
|
287
231
|
item: selectedItemId >= 0 ? items[selectedItemId] : [],
|
288
232
|
onClosePanel: closePanelHandler
|
289
233
|
})), ___EmotionJSX(Separator, {
|
290
234
|
margin: 0,
|
291
|
-
|
235
|
+
bg: "accent.90"
|
292
236
|
}), ___EmotionJSX(Box, {
|
293
|
-
|
237
|
+
px: "lg",
|
238
|
+
pt: "xs"
|
294
239
|
}, ___EmotionJSX(Tabs, {
|
295
240
|
tabListProps: {
|
296
241
|
justifyContent: 'center'
|
@@ -304,33 +249,73 @@ export var Default = function Default() {
|
|
304
249
|
title: "Profile"
|
305
250
|
}, selectedItemId >= 0 && ___EmotionJSX(React.Fragment, null, ___EmotionJSX(IconButton, {
|
306
251
|
variant: "inverted",
|
307
|
-
sx:
|
252
|
+
sx: {
|
253
|
+
position: 'absolute',
|
254
|
+
top: 0,
|
255
|
+
right: 0
|
256
|
+
}
|
308
257
|
}, ___EmotionJSX(PencilIcon, {
|
309
258
|
size: 20
|
310
259
|
})), ___EmotionJSX(Text, {
|
311
|
-
sx:
|
312
|
-
|
260
|
+
sx: {
|
261
|
+
fontSize: 'sm',
|
262
|
+
fontWeight: 3,
|
263
|
+
lineHeight: '16px'
|
264
|
+
},
|
265
|
+
variant: "base",
|
266
|
+
mb: "xs"
|
313
267
|
}, "Full Name"), ___EmotionJSX(Text, {
|
314
|
-
sx:
|
315
|
-
|
268
|
+
sx: {
|
269
|
+
fontWeight: 0,
|
270
|
+
lineHeight: '18px'
|
271
|
+
},
|
272
|
+
variant: "base",
|
273
|
+
mb: "md"
|
316
274
|
}, items[selectedItemId].firstName, " ", items[selectedItemId].lastName), ___EmotionJSX(Text, {
|
317
|
-
sx:
|
318
|
-
|
275
|
+
sx: {
|
276
|
+
fontSize: 'sm',
|
277
|
+
fontWeight: 3,
|
278
|
+
lineHeight: '16px'
|
279
|
+
},
|
280
|
+
variant: "base",
|
281
|
+
mb: "xs"
|
319
282
|
}, "First Name"), ___EmotionJSX(Text, {
|
320
|
-
sx:
|
321
|
-
|
283
|
+
sx: {
|
284
|
+
fontWeight: 0,
|
285
|
+
lineHeight: '18px'
|
286
|
+
},
|
287
|
+
variant: "base",
|
288
|
+
mb: "md"
|
322
289
|
}, items[selectedItemId].firstName), ___EmotionJSX(Text, {
|
323
|
-
sx:
|
324
|
-
|
290
|
+
sx: {
|
291
|
+
fontSize: 'sm',
|
292
|
+
fontWeight: 3,
|
293
|
+
lineHeight: '16px'
|
294
|
+
},
|
295
|
+
variant: "base",
|
296
|
+
mb: "xs"
|
325
297
|
}, "Last Name"), ___EmotionJSX(Text, {
|
326
|
-
sx:
|
327
|
-
|
298
|
+
sx: {
|
299
|
+
fontWeight: 0,
|
300
|
+
lineHeight: '18px'
|
301
|
+
},
|
302
|
+
variant: "base",
|
303
|
+
mb: "md"
|
328
304
|
}, items[selectedItemId].lastName), ___EmotionJSX(Text, {
|
329
|
-
sx:
|
330
|
-
|
305
|
+
sx: {
|
306
|
+
fontSize: 'sm',
|
307
|
+
fontWeight: 3,
|
308
|
+
lineHeight: '16px'
|
309
|
+
},
|
310
|
+
variant: "base",
|
311
|
+
mb: "xs"
|
331
312
|
}, "Email"), ___EmotionJSX(Text, {
|
332
|
-
sx:
|
333
|
-
|
313
|
+
sx: {
|
314
|
+
fontWeight: 0,
|
315
|
+
lineHeight: '18px'
|
316
|
+
},
|
317
|
+
variant: "base",
|
318
|
+
mb: "md"
|
334
319
|
}, items[selectedItemId].email))), ___EmotionJSX(Tab, {
|
335
320
|
title: "Group Memberships"
|
336
321
|
}, ___EmotionJSX(Text, null, "Group Memberships")), ___EmotionJSX(Tab, {
|
@@ -23,13 +23,6 @@ export default {
|
|
23
23
|
}
|
24
24
|
}
|
25
25
|
};
|
26
|
-
var sx = {
|
27
|
-
showHideButton: {
|
28
|
-
width: 'fit-content',
|
29
|
-
marginLeft: 'sm',
|
30
|
-
alignSelf: 'auto'
|
31
|
-
}
|
32
|
-
};
|
33
26
|
export var Default = function Default(_ref) {
|
34
27
|
var _context;
|
35
28
|
|
@@ -59,7 +52,11 @@ export var Default = function Default(_ref) {
|
|
59
52
|
onPress: function onPress() {
|
60
53
|
return setIsMasked(!isMasked);
|
61
54
|
},
|
62
|
-
sx:
|
55
|
+
sx: {
|
56
|
+
width: 'fit-content',
|
57
|
+
marginLeft: 10,
|
58
|
+
alignSelf: 'auto'
|
59
|
+
}
|
63
60
|
}, ___EmotionJSX(Icon, {
|
64
61
|
icon: isMasked ? EyeOffIcon : EyeIcon
|
65
62
|
}))));
|
@@ -4,13 +4,10 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
4
4
|
export default {
|
5
5
|
title: 'Recipes/NeutralCheckboxField'
|
6
6
|
};
|
7
|
-
var sx = {
|
8
|
-
checkboxColor: {
|
9
|
-
color: 'neutral.10'
|
10
|
-
}
|
11
|
-
};
|
12
7
|
export var Default = function Default() {
|
13
8
|
return ___EmotionJSX(CheckboxField, {
|
14
|
-
|
9
|
+
controlProps: {
|
10
|
+
color: 'neutral.10'
|
11
|
+
}
|
15
12
|
}, "Click me");
|
16
13
|
};
|
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
205
|
+
width: "100%",
|
206
|
+
height: "100%"
|
229
207
|
}, ___EmotionJSX(LineChart, {
|
230
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
274
|
+
width: "100%",
|
275
|
+
height: "100%"
|
290
276
|
}, ___EmotionJSX(LineChart, {
|
291
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
343
|
+
width: "100%",
|
344
|
+
height: "100%"
|
351
345
|
}, ___EmotionJSX(LineChart, {
|
352
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
412
|
+
width: "100%",
|
413
|
+
height: "100%"
|
412
414
|
}, ___EmotionJSX(LineChart, {
|
413
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
481
|
+
width: "100%",
|
482
|
+
height: "100%"
|
473
483
|
}, ___EmotionJSX(LineChart, {
|
474
|
-
|
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
|
-
|
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, {
|