@pedidopago/ui 1.0.8 → 1.1.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/dist/components/Alert/alert.test.js +9 -1
- package/dist/components/Alert/index.js +47 -35
- package/dist/components/Avatar/avatar.test.js +9 -1
- package/dist/components/Avatar/index.js +47 -27
- package/dist/components/Avatar/styles.d.ts.map +1 -1
- package/dist/components/Avatar/styles.js +4 -4
- package/dist/components/Badge/badge.test.js +9 -1
- package/dist/components/Badge/index.js +24 -15
- package/dist/components/Button/Button.test.js +19 -7
- package/dist/components/Button/index.js +28 -16
- package/dist/components/Card/ButtonCard/index.js +24 -10
- package/dist/components/Card/Expansion/index.js +24 -17
- package/dist/components/Card/card.test.js +9 -1
- package/dist/components/Card/index.js +43 -19
- package/dist/components/CheckboxInput/checkbox-input.test.js +9 -1
- package/dist/components/CheckboxInput/components/MultipleCheckbox.js +58 -43
- package/dist/components/CheckboxInput/index.js +29 -18
- package/dist/components/ColorPicker/colorpicker.test.js +9 -1
- package/dist/components/ColorPicker/components/ColorHue.js +17 -10
- package/dist/components/ColorPicker/components/ColorInput.js +3 -1
- package/dist/components/ColorPicker/components/ColorPickerBox.js +13 -9
- package/dist/components/ColorPicker/components/ColorPointer.js +3 -1
- package/dist/components/ColorPicker/components/ColorSelector.js +8 -2
- package/dist/components/ColorPicker/index.js +44 -34
- package/dist/components/DatePicker/components/DatePickerContent.js +113 -79
- package/dist/components/DatePicker/components/DateYearPicker.js +45 -32
- package/dist/components/DatePicker/datepicker.test.js +9 -1
- package/dist/components/DatePicker/index.js +40 -29
- package/dist/components/Dialog/dialog-example.js +21 -13
- package/dist/components/Dialog/dialog.test.js +5 -1
- package/dist/components/Dialog/index.js +59 -46
- package/dist/components/Dropzone/dropzone.test.js +9 -1
- package/dist/components/Dropzone/index.js +122 -97
- package/dist/components/Flex/flex.test.js +128 -14
- package/dist/components/Flex/index.js +11 -3
- package/dist/components/Grid/grid.test.js +86 -81
- package/dist/components/Grid/index.js +11 -3
- package/dist/components/Icon/icon.test.js +3 -3
- package/dist/components/Icon/index.js +8 -2
- package/dist/components/IconItem/IconItem.test.js +9 -1
- package/dist/components/IconItem/index.js +33 -18
- package/dist/components/ImageItem/imageFake.js +13 -9
- package/dist/components/ImageItem/index.js +36 -24
- package/dist/components/ImageItem/input.test.js +10 -7
- package/dist/components/Input/index.js +67 -40
- package/dist/components/Input/input.test.js +4 -4
- package/dist/components/Label/index.js +12 -9
- package/dist/components/Label/input.test.js +3 -1
- package/dist/components/List/index.js +15 -4
- package/dist/components/List/list.test.js +36 -18
- package/dist/components/Menu/components/Submenu.d.ts.map +1 -1
- package/dist/components/Menu/components/Submenu.js +49 -26
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +19 -10
- package/dist/components/Menu/menu.test.js +14 -14
- package/dist/components/Menu/styles.d.ts +1 -0
- package/dist/components/Menu/styles.d.ts.map +1 -1
- package/dist/components/Menu/styles.js +19 -15
- package/dist/components/Modal/index.js +24 -19
- package/dist/components/Modal/modal.test.js +44 -12
- package/dist/components/Pagination/index.js +54 -45
- package/dist/components/Pagination/pagination.test.js +13 -11
- package/dist/components/Progress/Circle/index.js +38 -29
- package/dist/components/Progress/Linear/index.js +24 -17
- package/dist/components/Progress/index.js +4 -2
- package/dist/components/Progress/progress.test.js +9 -1
- package/dist/components/RadioInput/components/ChoiceList/index.js +28 -20
- package/dist/components/RadioInput/index.js +27 -22
- package/dist/components/RadioInput/radio-input.test.js +118 -87
- package/dist/components/Rating/components/GradientIcon/index.js +24 -17
- package/dist/components/Rating/components/RatingWithMultipleValues/RatingWithMultipleValues.js +24 -22
- package/dist/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.js +21 -17
- package/dist/components/Rating/index.js +29 -26
- package/dist/components/Rating/rating.test.js +3 -1
- package/dist/components/SelectInput/components/OptionsArea/index.js +37 -32
- package/dist/components/SelectInput/components/SelectArea/index.js +46 -34
- package/dist/components/SelectInput/index.js +26 -23
- package/dist/components/SelectInput/selectInput.test.js +10 -4
- package/dist/components/Skeleton/index.js +11 -1
- package/dist/components/Skeleton/skeleton.test.js +3 -1
- package/dist/components/Slider/components/SliderPointer.d.ts.map +1 -1
- package/dist/components/Slider/components/SliderPointer.js +23 -8
- package/dist/components/Slider/components/SliderRail.js +8 -2
- package/dist/components/Slider/components/SliderSelector.js +86 -78
- package/dist/components/Slider/index.js +28 -16
- package/dist/components/Slider/slider.test.js +9 -1
- package/dist/components/Spinner/index.js +3 -1
- package/dist/components/Spinner/spinner.test.js +9 -1
- package/dist/components/Steps/index.js +25 -17
- package/dist/components/Steps/steps.test.js +3 -1
- package/dist/components/Switch/index.js +23 -17
- package/dist/components/Switch/input.test.js +3 -1
- package/dist/components/Table/components/MenuItem.js +16 -13
- package/dist/components/Table/index.js +139 -99
- package/dist/components/Table/table.test.js +3 -1
- package/dist/components/Tabs/TabsExample.js +37 -23
- package/dist/components/Tabs/components/Tab.js +12 -3
- package/dist/components/Tabs/components/TabPanel.js +8 -3
- package/dist/components/Tabs/components/Tabs.js +33 -23
- package/dist/components/Tabs/tabs.test.js +103 -83
- package/dist/components/Tag/index.js +21 -16
- package/dist/components/Tag/tag.test.js +9 -7
- package/dist/components/TextAreaInput/index.js +25 -15
- package/dist/components/TextAreaInput/text-area-input.test.js +8 -2
- package/dist/components/Thumbnail/index.js +71 -60
- package/dist/components/Thumbnail/thumbnail.test.js +9 -1
- package/dist/components/Timeline/components/Timeline.js +9 -5
- package/dist/components/Timeline/components/TimelineContent.js +31 -15
- package/dist/components/Timeline/components/TimelineItem.js +11 -1
- package/dist/components/Timeline/components/TimelineSeparator.js +9 -4
- package/dist/components/Timeline/timeline.test.js +105 -76
- package/dist/components/Toast/button-example.js +10 -5
- package/dist/components/Toast/components/Toast.js +16 -11
- package/dist/components/Toast/contexts/ToastProvider.js +6 -3
- package/dist/components/Toast/index.js +90 -62
- package/dist/components/Toast/toast.test.js +11 -1
- package/dist/components/Tooltip/componenteTeste.js +42 -14
- package/dist/components/Tooltip/index.js +56 -46
- package/dist/components/Tooltip/tooltip.test.js +13 -8
- package/dist/components/Typography/index.js +11 -3
- package/dist/components/Typography/typography.test.js +3 -1
- package/dist/shared/components/FocusLock/index.js +11 -4
- package/dist/shared/tests/test-utils.js +6 -3
- package/dist/shared/theme/button-example.js +6 -3
- package/dist/shared/theme/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/shared/theme/contexts/ThemeContext.js +12 -29
- package/dist/shared/theme/theme.test.js +25 -11
- package/package.json +1 -1
- package/dist/components/Slider/icons/pointer.js +0 -15
- package/dist/shared/logos/pp_logo_horizontal.js +0 -51
- package/dist/shared/logos/pp_logo_horizontal_dark_mode.js +0 -51
- package/dist/shared/logos/pp_logo_vertical.js +0 -51
- package/dist/shared/logos/pp_logo_vertical_dark_mode.js +0 -51
|
@@ -6,10 +6,18 @@ require("@testing-library/jest-dom");
|
|
|
6
6
|
|
|
7
7
|
var _ = _interopRequireDefault(require("."));
|
|
8
8
|
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
|
|
9
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
12
|
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
|
|
11
19
|
var setup = function setup(props) {
|
|
12
|
-
return (0, _testUtils.render)( /*#__PURE__*/
|
|
20
|
+
return (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
13
21
|
};
|
|
14
22
|
|
|
15
23
|
describe('Alert', function () {
|
|
@@ -11,6 +11,8 @@ var _Typography = _interopRequireDefault(require("../Typography"));
|
|
|
11
11
|
|
|
12
12
|
var _styles = require("./styles");
|
|
13
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
18
|
var Alert = function Alert(_ref) {
|
|
@@ -25,41 +27,51 @@ var Alert = function Alert(_ref) {
|
|
|
25
27
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
26
28
|
_ref$variant = _ref.variant,
|
|
27
29
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant;
|
|
28
|
-
return /*#__PURE__*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledAlertContainer, {
|
|
31
|
+
children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledAlertSkeleton, {
|
|
32
|
+
fullWidth: fullWidth
|
|
33
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.StyledAlertWrapper, {
|
|
34
|
+
variant: variant,
|
|
35
|
+
type: type,
|
|
36
|
+
fullWidth: fullWidth,
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledIconBox, {
|
|
38
|
+
type: type,
|
|
39
|
+
variant: variant,
|
|
40
|
+
havePadding: variant === 'outlined',
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
42
|
+
name: "info",
|
|
43
|
+
size: variant === 'outlined' ? '1.375rem' : '2rem'
|
|
44
|
+
})
|
|
45
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.StyledColumn, {
|
|
46
|
+
variant: variant,
|
|
47
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
48
|
+
fontSize: "xs",
|
|
49
|
+
fontWeight: "bold",
|
|
50
|
+
children: title
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
52
|
+
fontSize: "xs",
|
|
53
|
+
fontWeight: "400",
|
|
54
|
+
children: message
|
|
55
|
+
}), buttonTitle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledButtonRow, {
|
|
56
|
+
variant: variant,
|
|
57
|
+
type: type,
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledButton, {
|
|
59
|
+
onClick: function onClick() {
|
|
60
|
+
return onButtonClick && onButtonClick();
|
|
61
|
+
},
|
|
62
|
+
children: buttonTitle
|
|
63
|
+
})
|
|
64
|
+
})]
|
|
65
|
+
}), variant === 'closable' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StyledCloseIcon, {
|
|
66
|
+
onClick: function onClick() {
|
|
67
|
+
return onClose && onClose();
|
|
68
|
+
},
|
|
69
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
70
|
+
name: "x"
|
|
71
|
+
})
|
|
72
|
+
})]
|
|
73
|
+
})
|
|
74
|
+
});
|
|
63
75
|
};
|
|
64
76
|
|
|
65
77
|
var _default = Alert;
|
|
@@ -6,10 +6,18 @@ require("@testing-library/jest-dom");
|
|
|
6
6
|
|
|
7
7
|
var _ = _interopRequireDefault(require("."));
|
|
8
8
|
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
|
|
9
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
12
|
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
|
|
11
19
|
var setup = function setup(props) {
|
|
12
|
-
var utils = (0, _testUtils.render)( /*#__PURE__*/
|
|
20
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
13
21
|
return utils;
|
|
14
22
|
};
|
|
15
23
|
|
|
@@ -15,10 +15,18 @@ var _Skeleton = _interopRequireDefault(require("../Skeleton"));
|
|
|
15
15
|
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
|
|
18
20
|
var _excluded = ["src", "name", "information", "boxColor", "size", "isLoading"];
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
24
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
|
+
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
|
+
|
|
28
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
+
|
|
22
30
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
31
|
|
|
24
32
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -62,35 +70,47 @@ var Avatar = function Avatar(_ref) {
|
|
|
62
70
|
setImageBroken(true);
|
|
63
71
|
}
|
|
64
72
|
|
|
65
|
-
return /*#__PURE__*/
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.ThemeProvider, {
|
|
66
74
|
theme: {
|
|
67
75
|
size: size || 'medium'
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
76
|
+
},
|
|
77
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.AvatarWrapper, _objectSpread(_objectSpread({}, rest), {}, {
|
|
78
|
+
children: [isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
|
|
79
|
+
variant: "circle",
|
|
80
|
+
animation: "wave",
|
|
81
|
+
height: 60,
|
|
82
|
+
width: 60
|
|
83
|
+
}) : src && !imageBroken ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.AvatarImage, {
|
|
84
|
+
src: src,
|
|
85
|
+
alt: name,
|
|
86
|
+
onError: handleImageError
|
|
87
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.AvatarInitials, {
|
|
88
|
+
boxColor: boxColor,
|
|
89
|
+
children: getInitials(name)
|
|
90
|
+
}), information && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.AvatarInformation, {
|
|
91
|
+
children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
92
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
|
|
93
|
+
variant: "text",
|
|
94
|
+
animation: "wave",
|
|
95
|
+
width: 50
|
|
96
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
|
|
97
|
+
variant: "text",
|
|
98
|
+
animation: "wave",
|
|
99
|
+
width: 100
|
|
100
|
+
})]
|
|
101
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
102
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.Typography, {
|
|
103
|
+
fontSize: "xxs",
|
|
104
|
+
fontWeight: "600",
|
|
105
|
+
children: name
|
|
106
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Typography, {
|
|
107
|
+
fontSize: "xxs",
|
|
108
|
+
children: information
|
|
109
|
+
})]
|
|
110
|
+
})
|
|
111
|
+
})]
|
|
112
|
+
}))
|
|
113
|
+
});
|
|
94
114
|
};
|
|
95
115
|
|
|
96
116
|
var _default = Avatar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAG9C,eAAO,MAAM,aAAa;;;+HAMzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAG9C,eAAO,MAAM,aAAa;;;+HAMzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;sIAWtB,CAAC;AAEH,eAAO,MAAM,cAAc;;;+HAsCzB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;+HAsB7B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;yGA8C1B,CAAC"}
|
|
@@ -27,7 +27,7 @@ exports.AvatarWrapper = AvatarWrapper;
|
|
|
27
27
|
|
|
28
28
|
var AvatarImage = _styled.default.img(function (props) {
|
|
29
29
|
var size = props.theme.size === 'small' ? '32px' : props.theme.size === 'medium' ? '48px' : '80px';
|
|
30
|
-
return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n border-radius: 99999999px;\n object-fit: cover;\n "])), size, size);
|
|
30
|
+
return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n border-radius: 99999999px;\n object-fit: cover;\n flex-shrink: 0;\n "])), size, size);
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
exports.AvatarImage = AvatarImage;
|
|
@@ -39,7 +39,7 @@ var AvatarInitials = _styled.default.div(function (props) {
|
|
|
39
39
|
var colorIsRgb = (0, _colorCheck.isRgbHslColor)(props.boxColor || '');
|
|
40
40
|
var colorIsThemeColor = (0, _colorCheck.stripThemeColors)(props.boxColor || '', props.theme.colors);
|
|
41
41
|
var color = colorIsHex || colorIsRgb ? props.boxColor : colorIsThemeColor || props.theme.colors.primary.disabled;
|
|
42
|
-
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 99999999px;\n white-space: nowrap;\n overflow: hidden;\n font-size: ", ";\n text-overflow: ellipsis;\n background-color: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n "])), fontSize, color, props.theme.colors.neutral.black, size, size);
|
|
42
|
+
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 99999999px;\n white-space: nowrap;\n overflow: hidden;\n font-size: ", ";\n text-overflow: ellipsis;\n background-color: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n "])), fontSize, color, props.theme.colors.neutral.black, size, size);
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
exports.AvatarInitials = AvatarInitials;
|
|
@@ -49,9 +49,9 @@ var AvatarInformation = _styled.default.div(_templateObject4 || (_templateObject
|
|
|
49
49
|
}, function (props) {
|
|
50
50
|
return props.theme.size === 'small' ? 0 : props.theme.size === 'large' ? '0.25rem' : '0.5rem';
|
|
51
51
|
}, function (props) {
|
|
52
|
-
return props.theme.colors.neutral.black;
|
|
52
|
+
return props.theme.colorMode === 'dark' ? props.theme.colors.neutral.white : props.theme.colors.neutral.black;
|
|
53
53
|
}, function (props) {
|
|
54
|
-
return props.theme.colors.neutral.neutral5;
|
|
54
|
+
return props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral3 : props.theme.colors.neutral.neutral5;
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
exports.AvatarInformation = AvatarInformation;
|
|
@@ -6,10 +6,18 @@ require("@testing-library/jest-dom");
|
|
|
6
6
|
|
|
7
7
|
var _ = _interopRequireDefault(require("."));
|
|
8
8
|
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
|
|
9
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
12
|
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
+
|
|
17
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
|
|
11
19
|
var setup = function setup(props) {
|
|
12
|
-
var utils = (0, _testUtils.render)( /*#__PURE__*/
|
|
20
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
|
|
13
21
|
return utils;
|
|
14
22
|
};
|
|
15
23
|
|
|
@@ -11,6 +11,8 @@ var _Skeleton = _interopRequireDefault(require("../Skeleton"));
|
|
|
11
11
|
|
|
12
12
|
var _styles = require("./styles");
|
|
13
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
18
|
// Styles
|
|
@@ -18,21 +20,28 @@ var Badge = function Badge(_ref) {
|
|
|
18
20
|
var type = _ref.type,
|
|
19
21
|
text = _ref.text,
|
|
20
22
|
isLoading = _ref.isLoading;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BadgeContainer, {
|
|
24
|
+
children: !isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
25
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BadgeCircle, {
|
|
26
|
+
type: type
|
|
27
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BadgeText, {
|
|
28
|
+
children: text
|
|
29
|
+
})]
|
|
30
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Flex.default, {
|
|
31
|
+
spacing: "2",
|
|
32
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
|
|
33
|
+
animation: "wave",
|
|
34
|
+
variant: "circle",
|
|
35
|
+
width: 15,
|
|
36
|
+
height: 15
|
|
37
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
|
|
38
|
+
animation: "wave",
|
|
39
|
+
variant: "text",
|
|
40
|
+
width: 70,
|
|
41
|
+
height: 15
|
|
42
|
+
})]
|
|
43
|
+
})
|
|
44
|
+
});
|
|
36
45
|
};
|
|
37
46
|
|
|
38
47
|
var _default = Badge;
|
|
@@ -8,10 +8,20 @@ require("@testing-library/jest-dom");
|
|
|
8
8
|
|
|
9
9
|
var _ = _interopRequireDefault(require("."));
|
|
10
10
|
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
|
|
11
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
14
|
|
|
15
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
+
|
|
17
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
18
|
+
|
|
19
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
+
|
|
13
21
|
var setup = function setup(props) {
|
|
14
|
-
var utils = (0, _testUtils.render)( /*#__PURE__*/
|
|
22
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread(_objectSpread({}, props), {}, {
|
|
23
|
+
children: "Button test"
|
|
24
|
+
})));
|
|
15
25
|
return utils;
|
|
16
26
|
};
|
|
17
27
|
|
|
@@ -28,12 +38,13 @@ describe('Button', function () {
|
|
|
28
38
|
});
|
|
29
39
|
it('calls onClick prop when clicked', function () {
|
|
30
40
|
var handleClick = jest.fn();
|
|
31
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
41
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
32
42
|
text: "button text",
|
|
33
43
|
variant: "solid",
|
|
34
44
|
color: "#fff",
|
|
35
|
-
onClick: handleClick
|
|
36
|
-
|
|
45
|
+
onClick: handleClick,
|
|
46
|
+
children: "Click Me"
|
|
47
|
+
}));
|
|
37
48
|
|
|
38
49
|
_react.fireEvent.click(_react.screen.getByRole('button'));
|
|
39
50
|
|
|
@@ -41,13 +52,14 @@ describe('Button', function () {
|
|
|
41
52
|
});
|
|
42
53
|
it('disabled button', function () {
|
|
43
54
|
var handleClick = jest.fn();
|
|
44
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
55
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
45
56
|
disabled: true,
|
|
46
57
|
text: "button text",
|
|
47
58
|
variant: "solid",
|
|
48
59
|
color: "#fff",
|
|
49
|
-
onClick: handleClick
|
|
50
|
-
|
|
60
|
+
onClick: handleClick,
|
|
61
|
+
children: "Click Me"
|
|
62
|
+
}));
|
|
51
63
|
expect(_react.screen.getByRole('button')).toBeDisabled();
|
|
52
64
|
});
|
|
53
65
|
});
|
|
@@ -15,11 +15,17 @@ var _styles = require("./styles");
|
|
|
15
15
|
|
|
16
16
|
var _getColorValue = require("../../utils/getColorValue");
|
|
17
17
|
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
|
|
18
20
|
var _excluded = ["children", "disabled", "icon", "isLoading", "onClick", "text", "variant", "color", "size", "hoverSolid", "focusSolid", "disabledColor", "iconPosition", "fullWidth", "colorText"];
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
|
-
function
|
|
24
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
|
+
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
|
+
|
|
28
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
29
|
|
|
24
30
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
31
|
|
|
@@ -76,32 +82,38 @@ var Button = function Button(_ref) {
|
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
if (isLoading) {
|
|
79
|
-
return /*#__PURE__*/
|
|
85
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.LoadingButton, {
|
|
80
86
|
variant: variant,
|
|
81
87
|
size: size,
|
|
82
88
|
fullWidth: fullWidth
|
|
83
89
|
});
|
|
84
90
|
}
|
|
85
91
|
|
|
86
|
-
return /*#__PURE__*/
|
|
92
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Buttons, _objectSpread(_objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
87
93
|
hoverSolid: newHover,
|
|
88
94
|
colorText: colorr,
|
|
89
95
|
focusSolid: newFocus,
|
|
90
96
|
onClick: onClick,
|
|
91
97
|
disabled: disabled
|
|
92
|
-
}, rest),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
}, rest), {}, {
|
|
99
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.DivIcon, _objectSpread(_objectSpread({
|
|
100
|
+
disabled: disabled,
|
|
101
|
+
hoverSolid: newHover,
|
|
102
|
+
focusSolid: newFocus
|
|
103
|
+
}, sharedProps), {}, {
|
|
104
|
+
children: [iconPosition === 'left' && !isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
105
|
+
name: icon
|
|
106
|
+
}), children, text, /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.SpanIcon, _objectSpread(_objectSpread({
|
|
107
|
+
disabled: disabled,
|
|
108
|
+
hoverSolid: newHover,
|
|
109
|
+
focusSolid: newFocus
|
|
110
|
+
}, sharedProps), {}, {
|
|
111
|
+
children: iconPosition === 'right' && !isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
112
|
+
name: icon
|
|
113
|
+
})
|
|
114
|
+
}))]
|
|
115
|
+
}))
|
|
116
|
+
}));
|
|
105
117
|
};
|
|
106
118
|
|
|
107
119
|
var _default = Button;
|
|
@@ -11,20 +11,34 @@ var _Button = _interopRequireDefault(require("../../Button"));
|
|
|
11
11
|
|
|
12
12
|
var _Grid = _interopRequireDefault(require("../../Grid"));
|
|
13
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
16
24
|
function ButtonCardArea(_ref) {
|
|
17
25
|
var btSecondary = _ref.btSecondary,
|
|
18
26
|
btPrimary = _ref.btPrimary,
|
|
19
27
|
btColumn = _ref.btColumn;
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
29
|
+
children: (btSecondary || btPrimary) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ButtonArea, {
|
|
30
|
+
children: btSecondary && btPrimary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.MultipleButton, {
|
|
31
|
+
btColumn: btColumn,
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Grid.default, {
|
|
33
|
+
container: true,
|
|
34
|
+
templateColumns: {
|
|
35
|
+
sm: 'repeat(1, 1fr)',
|
|
36
|
+
md: !btColumn ? 'repeat(2, 1fr)' : 'repeat(1, 1fr)'
|
|
37
|
+
},
|
|
38
|
+
gridGap: 10,
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread({}, btSecondary)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread({}, btPrimary))]
|
|
40
|
+
})
|
|
41
|
+
}) : btPrimary && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, _objectSpread({}, btPrimary))
|
|
42
|
+
})
|
|
43
|
+
});
|
|
30
44
|
}
|
|
@@ -13,6 +13,8 @@ var _Icon = _interopRequireDefault(require("../../Icon"));
|
|
|
13
13
|
|
|
14
14
|
var _style = require("./style");
|
|
15
15
|
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
19
|
|
|
18
20
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -37,21 +39,26 @@ function Expansion(_ref) {
|
|
|
37
39
|
setExpanded = _useState2[1];
|
|
38
40
|
|
|
39
41
|
var theme = (0, _react.useTheme)();
|
|
40
|
-
return /*#__PURE__*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
43
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
|
+
onClick: function onClick() {
|
|
45
|
+
return setExpanded(!expanded);
|
|
46
|
+
},
|
|
47
|
+
style: {
|
|
48
|
+
display: 'flex',
|
|
49
|
+
justifyContent: 'flex-end'
|
|
50
|
+
},
|
|
51
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.ExpandIcon, {
|
|
52
|
+
expanded: expanded,
|
|
53
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
54
|
+
color: theme.colorMode === 'dark' ? 'neutral.white' : 'neutral.black',
|
|
55
|
+
name: "arrow-down"
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.ExpandBody, {
|
|
59
|
+
expanded: expanded,
|
|
60
|
+
expandedHeight: expandedHeight,
|
|
61
|
+
children: children
|
|
62
|
+
})]
|
|
63
|
+
});
|
|
57
64
|
}
|
|
@@ -6,8 +6,16 @@ require("@testing-library/jest-dom");
|
|
|
6
6
|
|
|
7
7
|
var _ = require(".");
|
|
8
8
|
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
|
|
11
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
+
|
|
13
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
|
+
|
|
15
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
|
|
9
17
|
var setup = function setup(props) {
|
|
10
|
-
var utils = (0, _testUtils.render)( /*#__PURE__*/
|
|
18
|
+
var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Card, _objectSpread({}, props)));
|
|
11
19
|
return utils;
|
|
12
20
|
};
|
|
13
21
|
|