@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
|
@@ -48,7 +48,7 @@ var SidebarWrap = _styled.default.div(_templateObject7 || (_templateObject7 = _t
|
|
|
48
48
|
|
|
49
49
|
exports.SidebarWrap = SidebarWrap;
|
|
50
50
|
|
|
51
|
-
var SidebarLink = _styled.default.a(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n cursor: pointer;\n justify-content: space-between;\n text-transform: uppercase;\n align-items: center;\n height: 3.75rem;\n font-size: 0.875rem;\n padding: 1rem 1.5rem 1rem 1.5rem;\n text-decoration: none;\n font-weight: ", ";\n color: ", ";\n border-top: 1px solid ", ";\n border-bottom: 1px solid ", ";\n\n &:focus {\n color: ", ";\n }\n\n & > div {\n display: flex;\n align-items: center;\n }\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
51
|
+
var SidebarLink = _styled.default.a(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n cursor: pointer;\n justify-content: space-between;\n text-transform: uppercase;\n align-items: center;\n height: 3.75rem;\n font-size: 0.875rem;\n padding: 1rem 1.5rem 1rem 1.5rem;\n text-decoration: none;\n font-weight: ", ";\n color: ", ";\n border-top: 1px solid ", ";\n user-select: none;\n\n &:not(:last-of-type) {\n border-bottom: ", ";\n }\n\n &:last-of-type {\n border-bottom: 1px solid ", ";\n }\n\n &:focus {\n color: ", ";\n }\n\n & > div {\n display: flex;\n align-items: center;\n }\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
52
52
|
var theme = _ref3.theme;
|
|
53
53
|
return theme.fontWeight[600];
|
|
54
54
|
}, function (_ref4) {
|
|
@@ -58,16 +58,20 @@ var SidebarLink = _styled.default.a(_templateObject8 || (_templateObject8 = _tag
|
|
|
58
58
|
var theme = _ref5.theme;
|
|
59
59
|
return theme.colors.tertiary.disabled;
|
|
60
60
|
}, function (_ref6) {
|
|
61
|
-
var theme = _ref6.theme
|
|
62
|
-
|
|
61
|
+
var theme = _ref6.theme,
|
|
62
|
+
isOpen = _ref6.isOpen;
|
|
63
|
+
return isOpen ? "1px solid ".concat(theme.colors.tertiary.disabled) : 'none';
|
|
63
64
|
}, function (_ref7) {
|
|
64
65
|
var theme = _ref7.theme;
|
|
65
|
-
return theme.colors.
|
|
66
|
+
return theme.colors.tertiary.disabled;
|
|
66
67
|
}, function (_ref8) {
|
|
67
68
|
var theme = _ref8.theme;
|
|
68
|
-
return theme.
|
|
69
|
+
return theme.colors.neutral.neutral5;
|
|
69
70
|
}, function (_ref9) {
|
|
70
71
|
var theme = _ref9.theme;
|
|
72
|
+
return theme.colorMode === 'dark' ? theme.colors.neutral.neutral1 : theme.colors.neutral.neutral4;
|
|
73
|
+
}, function (_ref10) {
|
|
74
|
+
var theme = _ref10.theme;
|
|
71
75
|
return theme.colorMode === 'dark' ? theme.colors.neutral.neutral4 : theme.colors.neutral.neutral1;
|
|
72
76
|
}, function (props) {
|
|
73
77
|
return props.disabled && (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n cursor: not-allowed;\n pointer-events: none;\n "])), props.theme.colors.neutral.neutral3);
|
|
@@ -81,33 +85,33 @@ var SidebarLabel = _styled.default.span(_templateObject11 || (_templateObject11
|
|
|
81
85
|
|
|
82
86
|
exports.SidebarLabel = SidebarLabel;
|
|
83
87
|
|
|
84
|
-
var DropdownLink = _styled.default.a(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n cursor: pointer;\n justify-content: flex-start;\n align-items: center;\n height: 3.75rem;\n font-size: 0.875rem;\n padding: 1rem 1.5rem 1rem 1.5rem;\n text-decoration: none;\n font-weight: ", ";\n color: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n div {\n svg {\n color: ", ";\n }\n }\n }\n\n &:focus {\n background: ", ";\n border-top: none;\n border-bottom: none;\n color: ", ";\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n top: 5;\n height: 60%;\n width: 3px;\n background: ", ";\n }\n\n & > div {\n svg {\n path {\n color: ", ";\n }\n }\n }\n }\n\n ", "\n"])), function (
|
|
85
|
-
var theme = _ref10.theme;
|
|
86
|
-
return theme.fontWeight[600];
|
|
87
|
-
}, function (_ref11) {
|
|
88
|
+
var DropdownLink = _styled.default.a(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n cursor: pointer;\n justify-content: flex-start;\n align-items: center;\n height: 3.75rem;\n font-size: 0.875rem;\n padding: 1rem 1.5rem 1rem 1.5rem;\n text-decoration: none;\n font-weight: ", ";\n color: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n div {\n svg {\n color: ", ";\n }\n }\n }\n\n &:focus {\n background: ", ";\n border-top: none;\n border-bottom: none;\n color: ", ";\n position: relative;\n\n &:after {\n content: '';\n position: absolute;\n left: 0;\n top: 5;\n height: 60%;\n width: 3px;\n background: ", ";\n }\n\n & > div {\n svg {\n path {\n color: ", ";\n }\n }\n }\n }\n\n ", "\n"])), function (_ref11) {
|
|
88
89
|
var theme = _ref11.theme;
|
|
89
|
-
return theme.
|
|
90
|
+
return theme.fontWeight[600];
|
|
90
91
|
}, function (_ref12) {
|
|
91
92
|
var theme = _ref12.theme;
|
|
92
|
-
return theme.
|
|
93
|
+
return theme.colors.neutral.neutral3;
|
|
93
94
|
}, function (_ref13) {
|
|
94
95
|
var theme = _ref13.theme;
|
|
95
|
-
return theme.colorMode === 'dark' ? theme.colors.neutral.
|
|
96
|
+
return theme.colorMode === 'dark' ? theme.colors.neutral.neutral1 : theme.colors.neutral.neutral4;
|
|
96
97
|
}, function (_ref14) {
|
|
97
98
|
var theme = _ref14.theme;
|
|
98
|
-
return theme.colors.neutral.
|
|
99
|
+
return theme.colorMode === 'dark' ? theme.colors.neutral.neutral5 : theme.colors.neutral.neutral1;
|
|
99
100
|
}, function (_ref15) {
|
|
100
101
|
var theme = _ref15.theme;
|
|
101
|
-
return theme.
|
|
102
|
+
return theme.colors.neutral.neutral3;
|
|
102
103
|
}, function (_ref16) {
|
|
103
104
|
var theme = _ref16.theme;
|
|
104
|
-
return theme.
|
|
105
|
+
return theme.colorMode === 'dark' ? 'linear-gradient(99.07deg, rgba(72, 85, 80, 0.8) 12.62%, rgba(72, 85, 80, 0) 94.05%)' : 'linear-gradient(90deg, #eaefed 23.36%, rgba(234, 239, 237, 0) 100%)';
|
|
105
106
|
}, function (_ref17) {
|
|
106
107
|
var theme = _ref17.theme;
|
|
107
108
|
return theme.colors.primary.default;
|
|
108
109
|
}, function (_ref18) {
|
|
109
110
|
var theme = _ref18.theme;
|
|
110
111
|
return theme.colors.primary.default;
|
|
112
|
+
}, function (_ref19) {
|
|
113
|
+
var theme = _ref19.theme;
|
|
114
|
+
return theme.colors.primary.default;
|
|
111
115
|
}, function (props) {
|
|
112
116
|
return props.disabled && (0, _react.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n color: ", ";\n pointer-events: none;\n cursor: not-allowed;\n :focus-within {\n border-left: none;\n color: ", ";\n }\n "])), props.theme.colors.neutral.neutral3, props.theme.colors.neutral.neutral3);
|
|
113
117
|
});
|
|
@@ -9,6 +9,8 @@ var _useKeyPress = require("../../shared/hooks/useKeyPress");
|
|
|
9
9
|
|
|
10
10
|
var _styles = require("./styles");
|
|
11
11
|
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
|
|
12
14
|
// Styles
|
|
13
15
|
function Modal(_ref) {
|
|
14
16
|
var open = _ref.open,
|
|
@@ -84,23 +86,26 @@ function Modal(_ref) {
|
|
|
84
86
|
return "translate(".concat(percentageX, "%, ").concat(percentageY, "%)");
|
|
85
87
|
}
|
|
86
88
|
|
|
87
|
-
return /*#__PURE__*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
89
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
90
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Overlay, {
|
|
91
|
+
style: {
|
|
92
|
+
// display: open ? 'block' : 'none',
|
|
93
|
+
opacity: open ? 0.1 : 0,
|
|
94
|
+
pointerEvents: open ? 'auto' : 'none'
|
|
95
|
+
},
|
|
96
|
+
onClick: function onClick() {
|
|
97
|
+
return onClose();
|
|
98
|
+
}
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
100
|
+
style: {
|
|
101
|
+
left: "calc(".concat(left, " + ").concat(offsetX, ")"),
|
|
102
|
+
top: "calc(".concat(top, " + ").concat(offsetY, ")"),
|
|
103
|
+
transform: "".concat(getAnchorTranslate(), " scale(").concat(open ? 1 : 0.8, ")"),
|
|
104
|
+
opacity: open ? 1 : 0,
|
|
105
|
+
pointerEvents: open ? 'auto' : 'none'
|
|
106
|
+
},
|
|
107
|
+
maxWidth: maxWidth,
|
|
108
|
+
children: children
|
|
109
|
+
})]
|
|
110
|
+
});
|
|
106
111
|
}
|
|
@@ -8,8 +8,18 @@ var _ = require(".");
|
|
|
8
8
|
|
|
9
9
|
var _ThemeContext = require("../../shared/theme/contexts/ThemeContext");
|
|
10
10
|
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
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
|
function setup(props) {
|
|
12
|
-
var componentRender = (0, _testUtils.render)( /*#__PURE__*/
|
|
20
|
+
var componentRender = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ThemeContext.PPUIThemeProvider, {
|
|
21
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Modal, _objectSpread({}, props))
|
|
22
|
+
}));
|
|
13
23
|
return {
|
|
14
24
|
overlay: componentRender.container.childNodes[0],
|
|
15
25
|
modal: componentRender.container.childNodes[1]
|
|
@@ -21,7 +31,9 @@ describe('Modal', function () {
|
|
|
21
31
|
var _setup = setup({
|
|
22
32
|
open: true,
|
|
23
33
|
onClose: function onClose() {},
|
|
24
|
-
children: /*#__PURE__*/
|
|
34
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
children: "Modal"
|
|
36
|
+
})
|
|
25
37
|
}),
|
|
26
38
|
modal = _setup.modal;
|
|
27
39
|
|
|
@@ -31,7 +43,9 @@ describe('Modal', function () {
|
|
|
31
43
|
var modal = setup({
|
|
32
44
|
open: true,
|
|
33
45
|
onClose: function onClose() {},
|
|
34
|
-
children: /*#__PURE__*/
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
47
|
+
children: "Hello world!"
|
|
48
|
+
})
|
|
35
49
|
});
|
|
36
50
|
expect(modal.overlay).toHaveStyle({
|
|
37
51
|
opacity: 0.1,
|
|
@@ -46,7 +60,9 @@ describe('Modal', function () {
|
|
|
46
60
|
var modal = setup({
|
|
47
61
|
open: false,
|
|
48
62
|
onClose: function onClose() {},
|
|
49
|
-
children: /*#__PURE__*/
|
|
63
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
64
|
+
children: "Hello world!"
|
|
65
|
+
})
|
|
50
66
|
});
|
|
51
67
|
expect(modal.overlay).toHaveStyle({
|
|
52
68
|
opacity: 0,
|
|
@@ -63,7 +79,9 @@ describe('Modal', function () {
|
|
|
63
79
|
onClose: function onClose() {},
|
|
64
80
|
left: '10px',
|
|
65
81
|
top: '10px',
|
|
66
|
-
children: /*#__PURE__*/
|
|
82
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
83
|
+
children: "Hello world!"
|
|
84
|
+
})
|
|
67
85
|
});
|
|
68
86
|
expect(modal.modal).toHaveStyle({
|
|
69
87
|
left: 'calc(10px + 0px)',
|
|
@@ -75,7 +93,9 @@ describe('Modal', function () {
|
|
|
75
93
|
open: true,
|
|
76
94
|
onClose: function onClose() {},
|
|
77
95
|
anchorX: 'left',
|
|
78
|
-
children: /*#__PURE__*/
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
97
|
+
children: "Hello world!"
|
|
98
|
+
})
|
|
79
99
|
});
|
|
80
100
|
expect(modal.modal).toHaveStyle({
|
|
81
101
|
transform: 'translate(0%, -50%) scale(1)'
|
|
@@ -86,7 +106,9 @@ describe('Modal', function () {
|
|
|
86
106
|
open: true,
|
|
87
107
|
onClose: function onClose() {},
|
|
88
108
|
anchorX: 'right',
|
|
89
|
-
children: /*#__PURE__*/
|
|
109
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
110
|
+
children: "Hello world!"
|
|
111
|
+
})
|
|
90
112
|
});
|
|
91
113
|
expect(modal.modal).toHaveStyle({
|
|
92
114
|
transform: 'translate(-100%, -50%) scale(1)'
|
|
@@ -97,7 +119,9 @@ describe('Modal', function () {
|
|
|
97
119
|
open: true,
|
|
98
120
|
onClose: function onClose() {},
|
|
99
121
|
anchorX: 'center',
|
|
100
|
-
children: /*#__PURE__*/
|
|
122
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
123
|
+
children: "Hello world!"
|
|
124
|
+
})
|
|
101
125
|
});
|
|
102
126
|
expect(modal.modal).toHaveStyle({
|
|
103
127
|
transform: 'translate(-50%, -50%) scale(1)'
|
|
@@ -108,7 +132,9 @@ describe('Modal', function () {
|
|
|
108
132
|
open: true,
|
|
109
133
|
onClose: function onClose() {},
|
|
110
134
|
anchorY: 'top',
|
|
111
|
-
children: /*#__PURE__*/
|
|
135
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
136
|
+
children: "Hello world!"
|
|
137
|
+
})
|
|
112
138
|
});
|
|
113
139
|
expect(modal.modal).toHaveStyle({
|
|
114
140
|
transform: 'translate(-50%, 0%) scale(1)'
|
|
@@ -119,7 +145,9 @@ describe('Modal', function () {
|
|
|
119
145
|
open: true,
|
|
120
146
|
onClose: function onClose() {},
|
|
121
147
|
anchorY: 'bottom',
|
|
122
|
-
children: /*#__PURE__*/
|
|
148
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
149
|
+
children: "Hello world!"
|
|
150
|
+
})
|
|
123
151
|
});
|
|
124
152
|
expect(modal.modal).toHaveStyle({
|
|
125
153
|
transform: 'translate(-50%, -100%) scale(1)'
|
|
@@ -130,7 +158,9 @@ describe('Modal', function () {
|
|
|
130
158
|
open: true,
|
|
131
159
|
onClose: function onClose() {},
|
|
132
160
|
anchorY: 'center',
|
|
133
|
-
children: /*#__PURE__*/
|
|
161
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
162
|
+
children: "Hello world!"
|
|
163
|
+
})
|
|
134
164
|
});
|
|
135
165
|
expect(modal.modal).toHaveStyle({
|
|
136
166
|
transform: 'translate(-50%, -50%) scale(1)'
|
|
@@ -141,7 +171,9 @@ describe('Modal', function () {
|
|
|
141
171
|
open: true,
|
|
142
172
|
onClose: function onClose() {},
|
|
143
173
|
maxWidth: '200px',
|
|
144
|
-
children: /*#__PURE__*/
|
|
174
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
175
|
+
children: "Hello world!"
|
|
176
|
+
})
|
|
145
177
|
});
|
|
146
178
|
expect(modal.modal).toHaveStyle({
|
|
147
179
|
maxWidth: '200px'
|
|
@@ -17,6 +17,8 @@ var _styles = require("./styles");
|
|
|
17
17
|
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
24
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -131,58 +133,65 @@ function Pagination(_ref) {
|
|
|
131
133
|
|
|
132
134
|
function LargeView() {
|
|
133
135
|
var paginationSequence = pagination === null || pagination === void 0 ? void 0 : pagination.map(function (number, index) {
|
|
134
|
-
return /*#__PURE__*/
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.LargeViewWrap, {
|
|
137
|
+
children: number === _usePagination.DOTS ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PageWrap, {
|
|
138
|
+
variant: variant,
|
|
139
|
+
shape: shape,
|
|
140
|
+
grayColor: grayColor,
|
|
141
|
+
numberOfPageColor: numberOfPageColor,
|
|
142
|
+
children: number
|
|
143
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PaginationItem, {
|
|
144
|
+
shape: shape,
|
|
145
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PaginationButton, {
|
|
146
|
+
shape: shape,
|
|
147
|
+
numberOfPageColor: numberOfPageColor,
|
|
148
|
+
variant: variant,
|
|
149
|
+
color: color || themeColor,
|
|
150
|
+
grayColor: grayColor,
|
|
151
|
+
disabled: isDisabled,
|
|
152
|
+
onClick: handleClick,
|
|
153
|
+
isActivePage: activePage === number,
|
|
154
|
+
children: number
|
|
155
|
+
})
|
|
156
|
+
})
|
|
157
|
+
}, "pagination-list".concat(index));
|
|
153
158
|
});
|
|
154
159
|
return paginationSequence;
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
function SmallView() {
|
|
158
|
-
return /*#__PURE__*/
|
|
159
|
-
saturationColor: saturationColor
|
|
160
|
-
|
|
163
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.SmallPageInfo, {
|
|
164
|
+
saturationColor: saturationColor,
|
|
165
|
+
children: [activePage, " de ", count]
|
|
166
|
+
});
|
|
161
167
|
}
|
|
162
168
|
|
|
163
169
|
if (!count) return null;
|
|
164
|
-
return /*#__PURE__*/
|
|
165
|
-
shape: shape,
|
|
166
|
-
size: size
|
|
167
|
-
}, /*#__PURE__*/React.createElement(_styles.PreviousNavigationButton, {
|
|
168
|
-
shape: shape,
|
|
169
|
-
saturationColor: saturationColor,
|
|
170
|
-
onClick: handlePreviousNavigate,
|
|
171
|
-
color: color || themeColor,
|
|
172
|
-
grayColor: grayColor,
|
|
173
|
-
disabled: previousButtonDisabled || isDisabled
|
|
174
|
-
}, /*#__PURE__*/React.createElement(_Icon.default, {
|
|
175
|
-
name: previousButtonIcon,
|
|
176
|
-
size: 16
|
|
177
|
-
})), size === 'large' && LargeView(), size === 'small' && SmallView(), /*#__PURE__*/React.createElement(_styles.NextNavigationButton, {
|
|
170
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.PaginationList, {
|
|
178
171
|
shape: shape,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
172
|
+
size: size,
|
|
173
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.PreviousNavigationButton, {
|
|
174
|
+
shape: shape,
|
|
175
|
+
saturationColor: saturationColor,
|
|
176
|
+
onClick: handlePreviousNavigate,
|
|
177
|
+
color: color || themeColor,
|
|
178
|
+
grayColor: grayColor,
|
|
179
|
+
disabled: previousButtonDisabled || isDisabled,
|
|
180
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
181
|
+
name: previousButtonIcon,
|
|
182
|
+
size: 16
|
|
183
|
+
})
|
|
184
|
+
}), size === 'large' && LargeView(), size === 'small' && SmallView(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.NextNavigationButton, {
|
|
185
|
+
shape: shape,
|
|
186
|
+
grayColor: grayColor,
|
|
187
|
+
saturationColor: saturationColor,
|
|
188
|
+
onClick: handleNextNavigate,
|
|
189
|
+
color: color || themeColor,
|
|
190
|
+
disabled: nextButtonDisabled || isDisabled,
|
|
191
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
192
|
+
name: nextButtonIcon,
|
|
193
|
+
size: 16
|
|
194
|
+
})
|
|
195
|
+
})]
|
|
196
|
+
});
|
|
188
197
|
}
|
|
@@ -8,6 +8,8 @@ require("@testing-library/jest-dom");
|
|
|
8
8
|
|
|
9
9
|
var _ = require(".");
|
|
10
10
|
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
|
|
11
13
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
14
|
|
|
13
15
|
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."); }
|
|
@@ -23,7 +25,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
23
25
|
describe('Pagination', function () {
|
|
24
26
|
it('Should render pagination', function () {
|
|
25
27
|
var numberOfPages = 10;
|
|
26
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
28
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
27
29
|
count: numberOfPages
|
|
28
30
|
}));
|
|
29
31
|
expect(_react.screen.getByText('10')).toBeInTheDocument();
|
|
@@ -31,7 +33,7 @@ describe('Pagination', function () {
|
|
|
31
33
|
it('Should call change function', function () {
|
|
32
34
|
var fn = jest.fn();
|
|
33
35
|
var numberOfPages = 10;
|
|
34
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
36
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
35
37
|
count: numberOfPages,
|
|
36
38
|
onChange: fn
|
|
37
39
|
}));
|
|
@@ -42,7 +44,7 @@ describe('Pagination', function () {
|
|
|
42
44
|
});
|
|
43
45
|
it('Should disable previous button when current page to be 1', function () {
|
|
44
46
|
var numberOfPages = 10;
|
|
45
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
47
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
46
48
|
count: numberOfPages
|
|
47
49
|
}));
|
|
48
50
|
|
|
@@ -54,7 +56,7 @@ describe('Pagination', function () {
|
|
|
54
56
|
});
|
|
55
57
|
it('Should disable next button when current page to be last page', function () {
|
|
56
58
|
var numberOfPages = 10;
|
|
57
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
59
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
58
60
|
count: numberOfPages
|
|
59
61
|
}));
|
|
60
62
|
|
|
@@ -70,7 +72,7 @@ describe('Pagination', function () {
|
|
|
70
72
|
});
|
|
71
73
|
it('Should change current page on Click', function () {
|
|
72
74
|
var numberOfPages = 10;
|
|
73
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
75
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
74
76
|
count: numberOfPages
|
|
75
77
|
}));
|
|
76
78
|
|
|
@@ -82,7 +84,7 @@ describe('Pagination', function () {
|
|
|
82
84
|
});
|
|
83
85
|
it('Should set hightlight color if color prop is provided', function () {
|
|
84
86
|
var numberOfPages = 10;
|
|
85
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
87
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
86
88
|
count: numberOfPages,
|
|
87
89
|
color: "#f6ca3f"
|
|
88
90
|
}));
|
|
@@ -93,7 +95,7 @@ describe('Pagination', function () {
|
|
|
93
95
|
});
|
|
94
96
|
it('Should set circular button if shape circular is provided', function () {
|
|
95
97
|
var numberOfPages = 10;
|
|
96
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
98
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
97
99
|
count: numberOfPages,
|
|
98
100
|
shape: "circular"
|
|
99
101
|
}));
|
|
@@ -106,7 +108,7 @@ describe('Pagination', function () {
|
|
|
106
108
|
});
|
|
107
109
|
it('Should set roundend button if shape rounded is provided', function () {
|
|
108
110
|
var numberOfPages = 10;
|
|
109
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
111
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
110
112
|
count: numberOfPages,
|
|
111
113
|
shape: "rounded"
|
|
112
114
|
}));
|
|
@@ -119,7 +121,7 @@ describe('Pagination', function () {
|
|
|
119
121
|
});
|
|
120
122
|
it('Should render small pagination if size small is provided', function () {
|
|
121
123
|
var numberOfPages = 10;
|
|
122
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
124
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
123
125
|
count: numberOfPages,
|
|
124
126
|
size: "small"
|
|
125
127
|
}));
|
|
@@ -127,7 +129,7 @@ describe('Pagination', function () {
|
|
|
127
129
|
});
|
|
128
130
|
it('Should render default selected page if defaultPage is provided', function () {
|
|
129
131
|
var numberOfPages = 10;
|
|
130
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
132
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
131
133
|
count: numberOfPages,
|
|
132
134
|
defaultPage: 5
|
|
133
135
|
}));
|
|
@@ -138,7 +140,7 @@ describe('Pagination', function () {
|
|
|
138
140
|
});
|
|
139
141
|
it('Should disabled if isDisabledProp is provided', function () {
|
|
140
142
|
var numberOfPages = 10;
|
|
141
|
-
(0, _testUtils.render)( /*#__PURE__*/
|
|
143
|
+
(0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Pagination, {
|
|
142
144
|
count: numberOfPages,
|
|
143
145
|
isDisabled: true
|
|
144
146
|
}));
|
|
@@ -11,6 +11,8 @@ var _getSteps = require("../getSteps");
|
|
|
11
11
|
|
|
12
12
|
var _style = require("../style");
|
|
13
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
14
16
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
17
|
|
|
16
18
|
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."); }
|
|
@@ -52,33 +54,40 @@ function CircleProgress(_ref) {
|
|
|
52
54
|
if (showValue === 'percent') setMetric(Math.round(percentValue));
|
|
53
55
|
if (showValue === 'step' && steps) setMetric((0, _getSteps.getSteps)(steps, percentValue));
|
|
54
56
|
}, [percent, circumference, percentProgress, showValue, steps]);
|
|
55
|
-
return /*#__PURE__*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
58
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.CircleArea, {
|
|
59
|
+
size: size && size + 1,
|
|
60
|
+
children: [(showValue === 'percent' || showValue === 'step') && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.Value, {
|
|
61
|
+
size: size,
|
|
62
|
+
grayColor: grayColor,
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
64
|
+
className: "valueMetric",
|
|
65
|
+
children: metric
|
|
66
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
67
|
+
className: "metric",
|
|
68
|
+
children: [" ", showValue === 'percent' ? '%' : "/".concat(steps)]
|
|
69
|
+
})]
|
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.SVGArea, {
|
|
71
|
+
size: size && size + 1,
|
|
72
|
+
children: [circleBody && /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.SVGSecondCircle, {
|
|
73
|
+
cx: "50%",
|
|
74
|
+
cy: "50%",
|
|
75
|
+
r: radius,
|
|
76
|
+
strokeWidth: stroke,
|
|
77
|
+
grayColor: grayColor,
|
|
78
|
+
"shape-rendering": "geometricPrecision"
|
|
79
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.SVGCircle, {
|
|
80
|
+
cx: "50%",
|
|
81
|
+
cy: "50%",
|
|
82
|
+
r: radius,
|
|
83
|
+
color: color,
|
|
84
|
+
circumference: circumference,
|
|
85
|
+
percent: percentProgress,
|
|
86
|
+
isAnimated: isAnimated,
|
|
87
|
+
strokeWidth: stroke && stroke + 1,
|
|
88
|
+
"shape-rendering": "geometricPrecision"
|
|
89
|
+
})]
|
|
90
|
+
})]
|
|
91
|
+
})
|
|
92
|
+
});
|
|
84
93
|
}
|
|
@@ -11,6 +11,8 @@ var _getSteps = require("../getSteps");
|
|
|
11
11
|
|
|
12
12
|
var _style = require("../style");
|
|
13
13
|
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
14
16
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
17
|
|
|
16
18
|
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."); }
|
|
@@ -41,25 +43,30 @@ function LinearProgress(_ref) {
|
|
|
41
43
|
if (showValue === 'percent') setMetric(Math.round(percent));
|
|
42
44
|
if (showValue === 'step' && steps) setMetric((0, _getSteps.getSteps)(steps, percent));
|
|
43
45
|
}, [percent, showValue, steps]);
|
|
44
|
-
return /*#__PURE__*/
|
|
46
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
45
47
|
style: {
|
|
46
48
|
display: 'flex',
|
|
47
49
|
width: '100%',
|
|
48
50
|
alignItems: 'flex-end'
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
51
|
+
},
|
|
52
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_style.ProgressBar, {
|
|
53
|
+
height: height,
|
|
54
|
+
grayColor: grayColor,
|
|
55
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.PercentBar, {
|
|
56
|
+
percent: percent,
|
|
57
|
+
isAnimated: isAnimated,
|
|
58
|
+
color: color
|
|
59
|
+
})
|
|
60
|
+
}), (showValue === 'percent' || showValue === 'step') && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.ValueLinear, {
|
|
61
|
+
height: height,
|
|
62
|
+
grayColor: grayColor,
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
64
|
+
className: "valueMetric",
|
|
65
|
+
children: metric
|
|
66
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
67
|
+
className: "metric",
|
|
68
|
+
children: [" ", showValue === 'percent' ? '%' : "/".concat(steps)]
|
|
69
|
+
})]
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
65
72
|
}
|