@hipay/hipay-material-ui 3.7.1 → 3.7.2
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/HiDatePicker/HiDateRangeSelector.js +7 -3
- package/HiForm/HiFormControl.js +2 -1
- package/HiForm/HiUploadField.js +4 -2
- package/HiIcon/HiIcon.js +7 -0
- package/HiSelect/HiSuggestSelect.js +12 -0
- package/HiSelectableList/HiSelectableList.js +16 -12
- package/es/HiDatePicker/HiDateRangeSelector.js +7 -3
- package/es/HiForm/HiFormControl.js +2 -1
- package/es/HiForm/HiUploadField.js +4 -2
- package/es/HiIcon/HiIcon.js +7 -0
- package/es/HiSelect/HiSuggestSelect.js +12 -0
- package/es/HiSelectableList/HiSelectableList.js +16 -12
- package/es/hi-svg-icons/HiInvoiceMenu.js +3 -3
- package/hi-svg-icons/HiInvoiceMenu.js +3 -3
- package/package.json +2 -2
- package/es/hi-svg-icons/index.text.js +0 -51
- package/es/styles/defaultOptions.js +0 -16
- package/es/test-utils/consoleErrorMock.js +0 -14
- package/hi-svg-icons/index.text.js +0 -51
- package/styles/defaultOptions.js +0 -16
- package/test-utils/consoleErrorMock.js +0 -14
@@ -415,7 +415,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
415
415
|
type: PRESET_PERIOD_LIST.includes(selectedPreset) ? "primary-highlight" : "highlight",
|
416
416
|
pinned: true,
|
417
417
|
icon: _ref2,
|
418
|
-
label: translations.preset_periods
|
418
|
+
label: translations.preset_periods,
|
419
|
+
selectable: false
|
419
420
|
});
|
420
421
|
presetOptionsAvailable.forEach(function (option) {
|
421
422
|
options.push(_this2.options.find(function (_option) {
|
@@ -430,7 +431,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
430
431
|
type: CUSTOM_PERIOD_LIST.includes(selectedPreset) ? "primary-highlight" : "highlight",
|
431
432
|
pinned: true,
|
432
433
|
icon: _ref3,
|
433
|
-
label: translations.custom_periods
|
434
|
+
label: translations.custom_periods,
|
435
|
+
selectable: false
|
434
436
|
});
|
435
437
|
customOptionsAvailable.forEach(function (option) {
|
436
438
|
options.push(_this2.options.find(function (_option) {
|
@@ -467,7 +469,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
467
469
|
classes = _this$props2.classes,
|
468
470
|
selectProps = _this$props2.selectProps,
|
469
471
|
staticPosition = _this$props2.staticPosition,
|
470
|
-
|
472
|
+
className = _this$props2.className,
|
473
|
+
props = (0, _objectWithoutProperties2.default)(_this$props2, ["availableOptionKeys", "disabled", "enableTime", "errorText", "fromError", "toError", "helperIcon", "helperText", "idRange", "idSelect", "minimumDate", "label", "from", "onChange", "required", "to", "translations", "classes", "selectProps", "staticPosition", "className"]);
|
471
474
|
var _this$state = this.state,
|
472
475
|
selectedPreset = _this$state.selectedPreset,
|
473
476
|
containerWidth = _this$state.containerWidth;
|
@@ -484,6 +487,7 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
484
487
|
errorText: errorText,
|
485
488
|
error: !!(fromError || toError),
|
486
489
|
label: ' ',
|
490
|
+
className: className,
|
487
491
|
InputLabelProps: {
|
488
492
|
className: classes.formControlLabel
|
489
493
|
}
|
package/HiForm/HiFormControl.js
CHANGED
package/HiForm/HiUploadField.js
CHANGED
@@ -52,7 +52,8 @@ var HiUploadField = /*#__PURE__*/function (_React$PureComponent) {
|
|
52
52
|
values = _this$props.values,
|
53
53
|
fullWidth = _this$props.fullWidth,
|
54
54
|
required = _this$props.required,
|
55
|
-
|
55
|
+
HiInputLabelProps = _this$props.HiInputLabelProps,
|
56
|
+
others = (0, _objectWithoutProperties2.default)(_this$props, ["className", "label", "helperIcon", "helperText", "values", "fullWidth", "required", "HiInputLabelProps"]);
|
56
57
|
var empty = true;
|
57
58
|
var error = false;
|
58
59
|
var errorText = '';
|
@@ -75,7 +76,8 @@ var HiUploadField = /*#__PURE__*/function (_React$PureComponent) {
|
|
75
76
|
helperIcon: helperIcon,
|
76
77
|
helperText: helperText,
|
77
78
|
fullWidth: fullWidth,
|
78
|
-
required: required
|
79
|
+
required: required,
|
80
|
+
InputLabelProps: HiInputLabelProps
|
79
81
|
}, /*#__PURE__*/_react.default.createElement(_HiUpload.default, (0, _extends2.default)({
|
80
82
|
values: values
|
81
83
|
}, others)));
|
package/HiIcon/HiIcon.js
CHANGED
@@ -13,6 +13,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/exten
|
|
13
13
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
15
15
|
|
16
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
|
17
|
+
|
16
18
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
17
19
|
|
18
20
|
var _react = _interopRequireWildcard(require("react"));
|
@@ -54,6 +56,11 @@ var HiIcon = _react.default.forwardRef(function (props, ref) {
|
|
54
56
|
color = props.color,
|
55
57
|
other = (0, _objectWithoutProperties2.default)(props, ["children", "className", "icon", "size", "color"]);
|
56
58
|
var classes = useStyles(props);
|
59
|
+
|
60
|
+
if ((0, _typeof2.default)(icon) === "object") {
|
61
|
+
return icon;
|
62
|
+
}
|
63
|
+
|
57
64
|
var iconName = icon !== null ? icon : children;
|
58
65
|
var iconType = (0, _react.useMemo)(function () {
|
59
66
|
if (iconName && iconName.indexOf('fa-') === 0) {
|
@@ -134,6 +134,18 @@ var HiSuggestSelect = /*#__PURE__*/function (_React$PureComponent) {
|
|
134
134
|
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'up');
|
135
135
|
} else if (key === 'tab') {
|
136
136
|
document.body.style.overflow = 'auto';
|
137
|
+
|
138
|
+
if ((0, _helpers.getNextItemSelectable)(document.activeElement, 'down') === null) {
|
139
|
+
_this.setState({
|
140
|
+
options: [],
|
141
|
+
focused: false,
|
142
|
+
suggestionFocusIndex: -1
|
143
|
+
});
|
144
|
+
|
145
|
+
if (_this.props.onBlurInput) {
|
146
|
+
_this.props.onBlurInput(event);
|
147
|
+
}
|
148
|
+
}
|
137
149
|
} else if (key === 'escape' || 'enter') {
|
138
150
|
event.preventDefault();
|
139
151
|
|
@@ -89,19 +89,23 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
|
|
89
89
|
};
|
90
90
|
|
91
91
|
_this.handleKeyDown = function (event) {
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
92
|
+
if (_this.props.onKeyDown) {
|
93
|
+
_this.props.onKeyDown(event);
|
94
|
+
} else {
|
95
|
+
var nextItem;
|
96
|
+
var key = (0, _keycode.default)(event);
|
97
|
+
|
98
|
+
if (key === 'down') {
|
99
|
+
event.preventDefault();
|
100
|
+
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'down');
|
101
|
+
} else if (key === 'up') {
|
102
|
+
event.preventDefault();
|
103
|
+
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'up');
|
104
|
+
}
|
102
105
|
|
103
|
-
|
104
|
-
|
106
|
+
if (nextItem) {
|
107
|
+
nextItem.focus();
|
108
|
+
}
|
105
109
|
}
|
106
110
|
};
|
107
111
|
|
@@ -415,7 +415,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
415
415
|
type: PRESET_PERIOD_LIST.includes(selectedPreset) ? "primary-highlight" : "highlight",
|
416
416
|
pinned: true,
|
417
417
|
icon: _ref2,
|
418
|
-
label: translations.preset_periods
|
418
|
+
label: translations.preset_periods,
|
419
|
+
selectable: false
|
419
420
|
});
|
420
421
|
presetOptionsAvailable.forEach(function (option) {
|
421
422
|
options.push(_this2.options.find(function (_option) {
|
@@ -430,7 +431,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
430
431
|
type: CUSTOM_PERIOD_LIST.includes(selectedPreset) ? "primary-highlight" : "highlight",
|
431
432
|
pinned: true,
|
432
433
|
icon: _ref3,
|
433
|
-
label: translations.custom_periods
|
434
|
+
label: translations.custom_periods,
|
435
|
+
selectable: false
|
434
436
|
});
|
435
437
|
customOptionsAvailable.forEach(function (option) {
|
436
438
|
options.push(_this2.options.find(function (_option) {
|
@@ -467,7 +469,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
467
469
|
classes = _this$props2.classes,
|
468
470
|
selectProps = _this$props2.selectProps,
|
469
471
|
staticPosition = _this$props2.staticPosition,
|
470
|
-
|
472
|
+
className = _this$props2.className,
|
473
|
+
props = (0, _objectWithoutProperties2.default)(_this$props2, ["availableOptionKeys", "disabled", "enableTime", "errorText", "fromError", "toError", "helperIcon", "helperText", "idRange", "idSelect", "minimumDate", "label", "from", "onChange", "required", "to", "translations", "classes", "selectProps", "staticPosition", "className"]);
|
471
474
|
var _this$state = this.state,
|
472
475
|
selectedPreset = _this$state.selectedPreset,
|
473
476
|
containerWidth = _this$state.containerWidth;
|
@@ -484,6 +487,7 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
484
487
|
errorText: errorText,
|
485
488
|
error: !!(fromError || toError),
|
486
489
|
label: ' ',
|
490
|
+
className: className,
|
487
491
|
InputLabelProps: {
|
488
492
|
className: classes.formControlLabel
|
489
493
|
}
|
@@ -52,7 +52,8 @@ var HiUploadField = /*#__PURE__*/function (_React$PureComponent) {
|
|
52
52
|
values = _this$props.values,
|
53
53
|
fullWidth = _this$props.fullWidth,
|
54
54
|
required = _this$props.required,
|
55
|
-
|
55
|
+
HiInputLabelProps = _this$props.HiInputLabelProps,
|
56
|
+
others = (0, _objectWithoutProperties2.default)(_this$props, ["className", "label", "helperIcon", "helperText", "values", "fullWidth", "required", "HiInputLabelProps"]);
|
56
57
|
var empty = true;
|
57
58
|
var error = false;
|
58
59
|
var errorText = '';
|
@@ -75,7 +76,8 @@ var HiUploadField = /*#__PURE__*/function (_React$PureComponent) {
|
|
75
76
|
helperIcon: helperIcon,
|
76
77
|
helperText: helperText,
|
77
78
|
fullWidth: fullWidth,
|
78
|
-
required: required
|
79
|
+
required: required,
|
80
|
+
InputLabelProps: HiInputLabelProps
|
79
81
|
}, /*#__PURE__*/_react.default.createElement(_HiUpload.default, (0, _extends2.default)({
|
80
82
|
values: values
|
81
83
|
}, others)));
|
package/es/HiIcon/HiIcon.js
CHANGED
@@ -13,6 +13,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/exten
|
|
13
13
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
15
15
|
|
16
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
|
17
|
+
|
16
18
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
17
19
|
|
18
20
|
var _react = _interopRequireWildcard(require("react"));
|
@@ -54,6 +56,11 @@ var HiIcon = _react.default.forwardRef(function (props, ref) {
|
|
54
56
|
color = props.color,
|
55
57
|
other = (0, _objectWithoutProperties2.default)(props, ["children", "className", "icon", "size", "color"]);
|
56
58
|
var classes = useStyles(props);
|
59
|
+
|
60
|
+
if ((0, _typeof2.default)(icon) === "object") {
|
61
|
+
return icon;
|
62
|
+
}
|
63
|
+
|
57
64
|
var iconName = icon !== null ? icon : children;
|
58
65
|
var iconType = (0, _react.useMemo)(function () {
|
59
66
|
if (iconName && iconName.indexOf('fa-') === 0) {
|
@@ -134,6 +134,18 @@ var HiSuggestSelect = /*#__PURE__*/function (_React$PureComponent) {
|
|
134
134
|
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'up');
|
135
135
|
} else if (key === 'tab') {
|
136
136
|
document.body.style.overflow = 'auto';
|
137
|
+
|
138
|
+
if ((0, _helpers.getNextItemSelectable)(document.activeElement, 'down') === null) {
|
139
|
+
_this.setState({
|
140
|
+
options: [],
|
141
|
+
focused: false,
|
142
|
+
suggestionFocusIndex: -1
|
143
|
+
});
|
144
|
+
|
145
|
+
if (_this.props.onBlurInput) {
|
146
|
+
_this.props.onBlurInput(event);
|
147
|
+
}
|
148
|
+
}
|
137
149
|
} else if (key === 'escape' || 'enter') {
|
138
150
|
event.preventDefault();
|
139
151
|
|
@@ -89,19 +89,23 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
|
|
89
89
|
};
|
90
90
|
|
91
91
|
_this.handleKeyDown = function (event) {
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
92
|
+
if (_this.props.onKeyDown) {
|
93
|
+
_this.props.onKeyDown(event);
|
94
|
+
} else {
|
95
|
+
var nextItem;
|
96
|
+
var key = (0, _keycode.default)(event);
|
97
|
+
|
98
|
+
if (key === 'down') {
|
99
|
+
event.preventDefault();
|
100
|
+
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'down');
|
101
|
+
} else if (key === 'up') {
|
102
|
+
event.preventDefault();
|
103
|
+
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'up');
|
104
|
+
}
|
102
105
|
|
103
|
-
|
104
|
-
|
106
|
+
if (nextItem) {
|
107
|
+
nextItem.focus();
|
108
|
+
}
|
105
109
|
}
|
106
110
|
};
|
107
111
|
|
@@ -24,7 +24,7 @@ var _styles = require("@material-ui/core/styles");
|
|
24
24
|
/**
|
25
25
|
* @ignore - internal component.
|
26
26
|
*/
|
27
|
-
var
|
27
|
+
var HiInvoiceMenu = (0, _pure.default)(function (props) {
|
28
28
|
var theme = (0, _styles.useTheme)();
|
29
29
|
var _props$color = props.color,
|
30
30
|
color = _props$color === void 0 ? props.color || theme.palette.neutral.main : _props$color,
|
@@ -41,6 +41,6 @@ var HiInvoice = (0, _pure.default)(function (props) {
|
|
41
41
|
fill: color
|
42
42
|
})));
|
43
43
|
});
|
44
|
-
|
45
|
-
var _default =
|
44
|
+
HiInvoiceMenu.muiName = 'SvgIcon';
|
45
|
+
var _default = HiInvoiceMenu;
|
46
46
|
exports.default = _default;
|
@@ -24,7 +24,7 @@ var _styles = require("@material-ui/core/styles");
|
|
24
24
|
/**
|
25
25
|
* @ignore - internal component.
|
26
26
|
*/
|
27
|
-
var
|
27
|
+
var HiInvoiceMenu = (0, _pure.default)(function (props) {
|
28
28
|
var theme = (0, _styles.useTheme)();
|
29
29
|
var _props$color = props.color,
|
30
30
|
color = _props$color === void 0 ? props.color || theme.palette.neutral.main : _props$color,
|
@@ -41,6 +41,6 @@ var HiInvoice = (0, _pure.default)(function (props) {
|
|
41
41
|
fill: color
|
42
42
|
})));
|
43
43
|
});
|
44
|
-
|
45
|
-
var _default =
|
44
|
+
HiInvoiceMenu.muiName = 'SvgIcon';
|
45
|
+
var _default = HiInvoiceMenu;
|
46
46
|
exports.default = _default;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hipay/hipay-material-ui",
|
3
3
|
"private": false,
|
4
|
-
"version": "3.7.
|
4
|
+
"version": "3.7.2",
|
5
5
|
"description": "React components that implement Google's Material Design.",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -69,4 +69,4 @@
|
|
69
69
|
},
|
70
70
|
"main": "./index.js",
|
71
71
|
"module": "./esm/index.js"
|
72
|
-
}
|
72
|
+
}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _fs = _interopRequireDefault(require("fs"));
|
6
|
-
|
7
|
-
var _path = _interopRequireDefault(require("path"));
|
8
|
-
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
10
|
-
|
11
|
-
var _chai = require("chai");
|
12
|
-
|
13
|
-
var _testUtils = require("../test-utils");
|
14
|
-
|
15
|
-
describe('hi-svg-icons', function () {
|
16
|
-
var shallow;
|
17
|
-
before(function () {
|
18
|
-
shallow = (0, _testUtils.createShallow)();
|
19
|
-
});
|
20
|
-
it('should be able to render all of them', function (done) {
|
21
|
-
// This test can only be run on the node env
|
22
|
-
if (!_fs.default.readdir) {
|
23
|
-
done();
|
24
|
-
return;
|
25
|
-
}
|
26
|
-
|
27
|
-
_fs.default.readdir(__dirname, function (err, files) {
|
28
|
-
files.forEach(function (file) {
|
29
|
-
// Ignore no js files and tests
|
30
|
-
if (file.indexOf('.js') === -1 || file.indexOf('text.js') > -1) {
|
31
|
-
return;
|
32
|
-
} // eslint-disable-next-line global-require, import/no-dynamic-require
|
33
|
-
|
34
|
-
|
35
|
-
var fileLoaded = require(_path.default.join(__dirname, file));
|
36
|
-
|
37
|
-
if (!fileLoaded.default) {
|
38
|
-
return;
|
39
|
-
}
|
40
|
-
|
41
|
-
var Icon = fileLoaded.default;
|
42
|
-
var wrapper = shallow(_react.default.createElement(Icon, {
|
43
|
-
className: "foo"
|
44
|
-
}));
|
45
|
-
|
46
|
-
_chai.assert.strictEqual(wrapper.hasClass('foo'), true);
|
47
|
-
});
|
48
|
-
done();
|
49
|
-
});
|
50
|
-
});
|
51
|
-
});
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.default = void 0;
|
9
|
-
|
10
|
-
var _theme = _interopRequireDefault(require("../theme"));
|
11
|
-
|
12
|
-
var _default = {
|
13
|
-
defaultTheme: _theme.default,
|
14
|
-
index: 1
|
15
|
-
};
|
16
|
-
exports.default = _default;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
|
8
|
-
var _sinon = require("sinon");
|
9
|
-
|
10
|
-
var _default = function _default() {
|
11
|
-
console.error = (0, _sinon.spy)();
|
12
|
-
};
|
13
|
-
|
14
|
-
exports.default = _default;
|
@@ -1,51 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _fs = _interopRequireDefault(require("fs"));
|
6
|
-
|
7
|
-
var _path = _interopRequireDefault(require("path"));
|
8
|
-
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
10
|
-
|
11
|
-
var _chai = require("chai");
|
12
|
-
|
13
|
-
var _testUtils = require("../test-utils");
|
14
|
-
|
15
|
-
describe('hi-svg-icons', function () {
|
16
|
-
var shallow;
|
17
|
-
before(function () {
|
18
|
-
shallow = (0, _testUtils.createShallow)();
|
19
|
-
});
|
20
|
-
it('should be able to render all of them', function (done) {
|
21
|
-
// This test can only be run on the node env
|
22
|
-
if (!_fs.default.readdir) {
|
23
|
-
done();
|
24
|
-
return;
|
25
|
-
}
|
26
|
-
|
27
|
-
_fs.default.readdir(__dirname, function (err, files) {
|
28
|
-
files.forEach(function (file) {
|
29
|
-
// Ignore no js files and tests
|
30
|
-
if (file.indexOf('.js') === -1 || file.indexOf('text.js') > -1) {
|
31
|
-
return;
|
32
|
-
} // eslint-disable-next-line global-require, import/no-dynamic-require
|
33
|
-
|
34
|
-
|
35
|
-
var fileLoaded = require(_path.default.join(__dirname, file));
|
36
|
-
|
37
|
-
if (!fileLoaded.default) {
|
38
|
-
return;
|
39
|
-
}
|
40
|
-
|
41
|
-
var Icon = fileLoaded.default;
|
42
|
-
var wrapper = shallow(_react.default.createElement(Icon, {
|
43
|
-
className: "foo"
|
44
|
-
}));
|
45
|
-
|
46
|
-
_chai.assert.strictEqual(wrapper.hasClass('foo'), true);
|
47
|
-
});
|
48
|
-
done();
|
49
|
-
});
|
50
|
-
});
|
51
|
-
});
|
package/styles/defaultOptions.js
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports.default = void 0;
|
9
|
-
|
10
|
-
var _theme = _interopRequireDefault(require("../theme"));
|
11
|
-
|
12
|
-
var _default = {
|
13
|
-
defaultTheme: _theme.default,
|
14
|
-
index: 1
|
15
|
-
};
|
16
|
-
exports.default = _default;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
|
8
|
-
var _sinon = require("sinon");
|
9
|
-
|
10
|
-
var _default = function _default() {
|
11
|
-
console.error = (0, _sinon.spy)();
|
12
|
-
};
|
13
|
-
|
14
|
-
exports.default = _default;
|