@pingux/astro 1.27.0-alpha.10 → 1.27.0-alpha.12
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 +8 -2
- package/lib/cjs/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +35 -0
- package/lib/cjs/recipes/FlippableCaretMenuButton.stories.js +38 -30
- package/lib/cjs/recipes/MaskedValue.stories.js +8 -5
- package/lib/cjs/recipes/NeutralInput.stories.js +6 -3
- 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/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.js +7 -2
- package/lib/components/EnvironmentBreadcrumb/EnvironmentBreadcrumb.test.js +25 -0
- package/lib/recipes/FlippableCaretMenuButton.stories.js +38 -30
- package/lib/recipes/MaskedValue.stories.js +8 -5
- package/lib/recipes/NeutralInput.stories.js +6 -3
- 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/package.json +1 -1
@@ -58,6 +58,8 @@ var _overlays = require("@react-stately/overlays");
|
|
58
58
|
|
59
59
|
var _overlays2 = require("@react-aria/overlays");
|
60
60
|
|
61
|
+
var _utils = require("@react-aria/utils");
|
62
|
+
|
61
63
|
var _ArrowDropUpIcon = _interopRequireDefault(require("mdi-react/ArrowDropUpIcon"));
|
62
64
|
|
63
65
|
var _ArrowDropDownIcon = _interopRequireDefault(require("mdi-react/ArrowDropDownIcon"));
|
@@ -74,7 +76,7 @@ var _index = require("../../index");
|
|
74
76
|
|
75
77
|
var _react2 = require("@emotion/react");
|
76
78
|
|
77
|
-
var _excluded = ["children", "disabledKeys", "emptySearchText", "isDefaultOpen", "isOpen", "items", "itemsFilter", "onOpenChange", "onNamePress", "onPopoverClose", "onPopoverOpen", "onSelectionChange", "name", "searchProps", "selectedItem"];
|
79
|
+
var _excluded = ["children", "disabledKeys", "emptySearchText", "isDefaultOpen", "isOpen", "items", "itemsFilter", "onOpenChange", "onNamePress", "onPopoverClose", "onPopoverOpen", "onSelectionChange", "name", "searchProps", "selectedItem", "popoverProps"];
|
78
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
|
|
@@ -101,6 +103,7 @@ var EnvironmentBreadcrumb = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
101
103
|
name = props.name,
|
102
104
|
searchProps = props.searchProps,
|
103
105
|
selectedItem = props.selectedItem,
|
106
|
+
popoverProps = props.popoverProps,
|
104
107
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
105
108
|
|
106
109
|
var _useState = (0, _react.useState)(''),
|
@@ -267,7 +270,7 @@ var EnvironmentBreadcrumb = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
267
270
|
"aria-label": "".concat((typeof selectedItem === 'string' ? selectedItem : selectedValue) || 'Selected Item')
|
268
271
|
}), selectedItem, (0, _react2.jsx)(_index.Icon, {
|
269
272
|
icon: popoverState.isOpen ? _ArrowDropUpIcon["default"] : _ArrowDropDownIcon["default"]
|
270
|
-
})), (0, _react2.jsx)(_index.PopoverContainer, (0, _extends2["default"])({}, overlayProps, positionProps, {
|
273
|
+
})), (0, _react2.jsx)(_index.PopoverContainer, (0, _extends2["default"])({}, overlayProps, positionProps, (0, _utils.mergeProps)(overlayProps, positionProps, popoverProps), {
|
271
274
|
ref: overlayRef,
|
272
275
|
isOpen: popoverState.isOpen,
|
273
276
|
scrollRef: scrollBoxRef,
|
@@ -355,6 +358,9 @@ EnvironmentBreadcrumb.propTypes = {
|
|
355
358
|
/** Callback function that fires when the dropdown is closed. */
|
356
359
|
onPopoverClose: _propTypes["default"].func,
|
357
360
|
|
361
|
+
/** Props object that is spread directly into the popover container component. */
|
362
|
+
popoverProps: _propTypes["default"].shape({}),
|
363
|
+
|
358
364
|
/** Props object that is spread directly into the SearchField element. */
|
359
365
|
searchProps: _propTypes["default"].shape({}),
|
360
366
|
|
@@ -2,10 +2,28 @@
|
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
4
4
|
|
5
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
6
|
+
|
7
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
8
|
+
|
9
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
10
|
+
|
11
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
12
|
+
|
13
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
14
|
+
|
15
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
16
|
+
|
17
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
18
|
+
|
19
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
20
|
+
|
5
21
|
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator"));
|
6
22
|
|
7
23
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
|
8
24
|
|
25
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
26
|
+
|
9
27
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
10
28
|
|
11
29
|
var _react = _interopRequireDefault(require("react"));
|
@@ -22,6 +40,10 @@ var _index = require("../../index");
|
|
22
40
|
|
23
41
|
var _react2 = require("@emotion/react");
|
24
42
|
|
43
|
+
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; }
|
44
|
+
|
45
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(source), !0)).call(_context3, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
46
|
+
|
25
47
|
var testEnvBreadcrumb = 'test-env-breadcrumb';
|
26
48
|
var testName = 'test-name';
|
27
49
|
var testSelectedItem = 'test-selected-item';
|
@@ -52,6 +74,10 @@ var defaultProps = {
|
|
52
74
|
},
|
53
75
|
items: items
|
54
76
|
};
|
77
|
+
var popoverProps = {
|
78
|
+
maxWidth: '100px',
|
79
|
+
'data-testid': 'popover-container'
|
80
|
+
};
|
55
81
|
var defaultWithSectionsProps = {
|
56
82
|
'data-testid': testEnvBreadcrumb,
|
57
83
|
name: testName,
|
@@ -135,6 +161,15 @@ test('should display name', function () {
|
|
135
161
|
getComponent();
|
136
162
|
expect(_testWrapper.screen.getByText(testName)).toBeInTheDocument();
|
137
163
|
});
|
164
|
+
test('should spread props into popover container', function () {
|
165
|
+
getComponent(_objectSpread(_objectSpread({}, popoverProps), {}, {
|
166
|
+
isDefaultOpen: true
|
167
|
+
}));
|
168
|
+
|
169
|
+
_userEvent["default"].click(_testWrapper.screen.getByText(testSelectedItem));
|
170
|
+
|
171
|
+
expect(_testWrapper.screen.queryByTestId('popover-container')).toHaveStyle('max-width: 100px');
|
172
|
+
});
|
138
173
|
test('should display selectedItem', function () {
|
139
174
|
getComponent();
|
140
175
|
expect(_testWrapper.screen.getByText(testSelectedItem)).toBeInTheDocument();
|
@@ -73,6 +73,40 @@ var _default = {
|
|
73
73
|
};
|
74
74
|
exports["default"] = _default;
|
75
75
|
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'];
|
76
|
+
var sx = {
|
77
|
+
openButton: {
|
78
|
+
height: '30px',
|
79
|
+
borderRadius: 'md',
|
80
|
+
fontSize: '13px',
|
81
|
+
mb: 'sm'
|
82
|
+
},
|
83
|
+
closeIconButton: {
|
84
|
+
position: 'absolute',
|
85
|
+
top: '14px',
|
86
|
+
right: 'sm'
|
87
|
+
},
|
88
|
+
buttonsContainer: {
|
89
|
+
p: 'lg',
|
90
|
+
flexDirection: 'initial !important',
|
91
|
+
alignContent: 'space-between',
|
92
|
+
flexWrap: 'wrap'
|
93
|
+
},
|
94
|
+
selectedButton: {
|
95
|
+
mb: 'sm',
|
96
|
+
mr: '4px',
|
97
|
+
height: '30px',
|
98
|
+
borderRadius: '15px',
|
99
|
+
fontSize: '13px'
|
100
|
+
},
|
101
|
+
unSelectedButton: {
|
102
|
+
mb: 'sm',
|
103
|
+
mr: '4px',
|
104
|
+
borderColor: 'neutral.80',
|
105
|
+
height: '30px',
|
106
|
+
borderRadius: '15px',
|
107
|
+
fontSize: '13px'
|
108
|
+
}
|
109
|
+
};
|
76
110
|
|
77
111
|
var Default = function Default() {
|
78
112
|
var buttonRef = (0, _react.useRef)();
|
@@ -131,14 +165,9 @@ var Default = function Default() {
|
|
131
165
|
|
132
166
|
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.Button, {
|
133
167
|
ref: buttonRef,
|
134
|
-
mb: "sm",
|
135
168
|
variant: "inline",
|
136
169
|
onPress: onChange,
|
137
|
-
sx:
|
138
|
-
height: '30px',
|
139
|
-
borderRadius: '15px',
|
140
|
-
fontSize: '13px'
|
141
|
-
}
|
170
|
+
sx: sx.openButton
|
142
171
|
}, (0, _react2.jsx)(_index.Box, {
|
143
172
|
isRow: true,
|
144
173
|
alignItems: "center"
|
@@ -161,36 +190,15 @@ var Default = function Default() {
|
|
161
190
|
onPress: function onPress() {
|
162
191
|
return setIsOpen(false);
|
163
192
|
},
|
164
|
-
sx:
|
165
|
-
position: 'absolute',
|
166
|
-
top: 14,
|
167
|
-
right: 10
|
168
|
-
}
|
193
|
+
sx: sx.closeIconButton
|
169
194
|
}, (0, _react2.jsx)(_index.Icon, {
|
170
195
|
icon: _CloseIcon["default"]
|
171
196
|
})), (0, _react2.jsx)(_index.Box, {
|
172
|
-
sx:
|
173
|
-
p: 'lg',
|
174
|
-
flexDirection: 'initial !important',
|
175
|
-
alignContent: 'space-between',
|
176
|
-
flexWrap: 'wrap'
|
177
|
-
}
|
197
|
+
sx: sx.buttonsContainer
|
178
198
|
}, (0, _map["default"])(buttonArray).call(buttonArray, function (item) {
|
179
199
|
return (0, _react2.jsx)(_index.Button, {
|
180
|
-
mb: "sm",
|
181
200
|
variant: "inline",
|
182
|
-
sx: (0, _includes["default"])(selectedButtons).call(selectedButtons, item) ?
|
183
|
-
mr: '4px',
|
184
|
-
height: '30px',
|
185
|
-
borderRadius: '15px',
|
186
|
-
fontSize: '13px'
|
187
|
-
} : {
|
188
|
-
mr: '4px',
|
189
|
-
borderColor: 'neutral.80',
|
190
|
-
height: '30px',
|
191
|
-
borderRadius: '15px',
|
192
|
-
fontSize: '13px'
|
193
|
-
},
|
201
|
+
sx: (0, _includes["default"])(selectedButtons).call(selectedButtons, item) ? sx.selectedButton : sx.unSelectedButton,
|
194
202
|
key: item,
|
195
203
|
onPress: function onPress() {
|
196
204
|
return toggleButton(item);
|
@@ -54,6 +54,13 @@ var _default = {
|
|
54
54
|
}
|
55
55
|
};
|
56
56
|
exports["default"] = _default;
|
57
|
+
var sx = {
|
58
|
+
showHideButton: {
|
59
|
+
width: 'fit-content',
|
60
|
+
marginLeft: 'sm',
|
61
|
+
alignSelf: 'auto'
|
62
|
+
}
|
63
|
+
};
|
57
64
|
|
58
65
|
var Default = function Default(_ref) {
|
59
66
|
var _context;
|
@@ -84,11 +91,7 @@ var Default = function Default(_ref) {
|
|
84
91
|
onPress: function onPress() {
|
85
92
|
return setIsMasked(!isMasked);
|
86
93
|
},
|
87
|
-
sx:
|
88
|
-
width: 'fit-content',
|
89
|
-
marginLeft: 10,
|
90
|
-
alignSelf: 'auto'
|
91
|
-
}
|
94
|
+
sx: sx.showHideButton
|
92
95
|
}, (0, _react2.jsx)(_index.Icon, {
|
93
96
|
icon: isMasked ? _EyeOffOutlineIcon["default"] : _EyeOutlineIcon["default"]
|
94
97
|
}))));
|
@@ -20,12 +20,15 @@ var _default = {
|
|
20
20
|
title: 'Recipes/NeutralCheckboxField'
|
21
21
|
};
|
22
22
|
exports["default"] = _default;
|
23
|
+
var sx = {
|
24
|
+
checkboxColor: {
|
25
|
+
color: 'neutral.10'
|
26
|
+
}
|
27
|
+
};
|
23
28
|
|
24
29
|
var Default = function Default() {
|
25
30
|
return (0, _react2.jsx)(_CheckboxField["default"], {
|
26
|
-
|
27
|
-
color: 'neutral.10'
|
28
|
-
}
|
31
|
+
sx: sx.checkboxColor
|
29
32
|
}, "Click me");
|
30
33
|
};
|
31
34
|
|
@@ -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"],
|