@itcase/ui 1.7.0 → 1.8.1
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/{Badge-BE28NFES.js → Badge-BY030Mwm.js} +1 -1
- package/dist/{Badge-C_6Iofu7.js → Badge-Df7Zxjnk.js} +1 -1
- package/dist/{Button-Df425Vot.js → Button-CWPTzaG2.js} +3 -3
- package/dist/{Button-sYpJIJPv.js → Button-DHOZJDHv.js} +3 -3
- package/dist/{DropdownItem-f29l8dds.js → DropdownItem-Cl1pYnVf.js} +4 -4
- package/dist/{DropdownItem-CdAS1E-G.js → DropdownItem-_bKQxzEZ.js} +4 -4
- package/dist/{Group-D5nvxHx0.js → Group-C8NUU6k5.js} +2 -2
- package/dist/{Group-NYDjw1CD.js → Group-utjnjUDZ.js} +2 -2
- package/dist/{Icon-BzIdIgGY.js → Icon-BF7i3XdQ.js} +1 -1
- package/dist/{Icon-dS-it4rs.js → Icon-D_BDlSSb.js} +1 -1
- package/dist/{Input-v52BiIsb.js → Input-BH6rNRqZ.js} +2 -2
- package/dist/{Input-C_HeI9UK.js → Input-BRhHPsGM.js} +2 -2
- package/dist/{Link-UmzWKcxT.js → Link-CZ8o5lGW.js} +1 -1
- package/dist/{Link-aBsZ1d0Q.js → Link-Cn7hiWmM.js} +1 -1
- package/dist/{Loader-CZVsMYl6.js → Loader-CjT6-r3I.js} +1 -1
- package/dist/{Loader-BnhUh-g6.js → Loader-Dquhwxz4.js} +1 -1
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Badge.js +3 -3
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -4
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +56 -46
- package/dist/cjs/components/CookiesWarning.js +5 -5
- package/dist/cjs/components/DadataHintField.js +1 -1
- package/dist/cjs/components/DatePicker.js +15 -10
- package/dist/cjs/components/Drawer.js +3 -1
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Grid.js +5 -5
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask.js +1 -1
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Pagination.js +17 -49
- package/dist/cjs/components/Panel.js +1 -1
- package/dist/cjs/components/Response.js +5 -5
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Tab.js +5 -5
- package/dist/cjs/components/Tile.js +3 -3
- package/dist/cjs/context/Notifications.js +3 -1
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Badge.js +3 -3
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -4
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +57 -47
- package/dist/components/CookiesWarning.js +5 -5
- package/dist/components/DadataHintField.js +1 -1
- package/dist/components/DatePicker.js +15 -10
- package/dist/components/Drawer.js +3 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Grid.js +5 -5
- package/dist/components/Group.js +1 -1
- package/dist/components/Icon.js +2 -2
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask.js +1 -1
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/Pagination.js +17 -49
- package/dist/components/Panel.js +1 -1
- package/dist/components/Response.js +5 -5
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +4 -4
- package/dist/components/Tab.js +5 -5
- package/dist/components/Tile.js +3 -3
- package/dist/context/Notifications.js +3 -1
- package/dist/css/components/Choice/Choice.css +32 -40
- package/dist/css/components/Choice/css/__item/choice__item.css +5 -16
- package/dist/css/components/Choice/css/__item/choice__item_shape.css +11 -0
- package/dist/css/components/DatePicker/DatePicker.css +3 -6
- package/dist/css/components/Divider/Divider.css +10 -13
- package/dist/css/components/Dropdown/Dropdown.css +16 -25
- package/dist/css/components/Grid/Grid.css +50 -8
- package/dist/css/components/Grid/css/__item/grid__item_column.css +13 -1
- package/dist/css/components/Grid/css/__item/grid__item_justify-self.css +4 -1
- package/dist/css/components/Grid/css/__item/grid__item_row.css +2 -1
- package/dist/css/components/Group/Group.css +13 -4
- package/dist/css/components/Input/Input.css +3 -0
- package/dist/css/components/Link/Link.css +17 -0
- package/dist/css/components/Pagination/Pagination.css +10 -8
- package/dist/css/components/Pagination/css/__item/pagination__item.css +4 -5
- package/dist/css/styles/fill/fill_active.css +14 -0
- package/dist/css/styles/fill/fill_active_hover.css +50 -0
- package/dist/css/styles/fill/fill_hover.css +33 -0
- package/dist/types/components/Choice/appearance/choiceAccent.d.ts +11 -0
- package/dist/types/components/Choice/appearance/choiceSurface.d.ts +22 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +29 -2
- package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +30 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +34 -0
- package/dist/types/components/Tab/Tab.interface.d.ts +1 -2
- package/dist/types/context/Notifications.d.ts +3 -2
- package/package.json +16 -16
|
@@ -5,8 +5,8 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var Cookies = require('js-cookie');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Button = require('../../Button-
|
|
9
|
-
var Group = require('../../Group-
|
|
8
|
+
var Button = require('../../Button-CWPTzaG2.js');
|
|
9
|
+
var Group = require('../../Group-utjnjUDZ.js');
|
|
10
10
|
var Text = require('../../Text-DwIx33-P.js');
|
|
11
11
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -19,15 +19,15 @@ require('../context/UIContext.js');
|
|
|
19
19
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
20
20
|
require('react-responsive');
|
|
21
21
|
require('../utils/setViewportProperty.js');
|
|
22
|
-
require('../../Icon-
|
|
22
|
+
require('../../Icon-D_BDlSSb.js');
|
|
23
23
|
require('react-inlinesvg');
|
|
24
24
|
require('../hooks/useStyles/useStyles.js');
|
|
25
25
|
require('lodash/maxBy');
|
|
26
26
|
require('../hooks/useStyles/styleAttributes.js');
|
|
27
|
-
require('../../Link-
|
|
27
|
+
require('../../Link-CZ8o5lGW.js');
|
|
28
28
|
require('../../Tooltip-hznDyLwa.js');
|
|
29
29
|
require('../../Title-ByfOyy-n.js');
|
|
30
|
-
require('../../Loader-
|
|
30
|
+
require('../../Loader-CjT6-r3I.js');
|
|
31
31
|
|
|
32
32
|
function CookiesWarning(props) {
|
|
33
33
|
var className = props.className, _a = props.message, message = _a === void 0 ? 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».' : _a, textColor = props.textColor, textSize = props.textSize, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === void 0 ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, buttonWidth = props.buttonWidth, _c = props.isHideOnScroll, isHideOnScroll = _c === void 0 ? false : _c;
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var reactDadata = require('react-dadata');
|
|
8
|
-
var Input = require('../../Input-
|
|
8
|
+
var Input = require('../../Input-BRhHPsGM.js');
|
|
9
9
|
require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
require('lodash/camelCase');
|
|
11
11
|
require('lodash/castArray');
|
|
@@ -8,9 +8,9 @@ var locale = require('date-fns/locale');
|
|
|
8
8
|
var DatePicker = require('react-datepicker');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('../../Button-
|
|
12
|
-
var Icon = require('../../Icon-
|
|
13
|
-
var Input = require('../../Input-
|
|
11
|
+
var Button = require('../../Button-CWPTzaG2.js');
|
|
12
|
+
var Icon = require('../../Icon-D_BDlSSb.js');
|
|
13
|
+
var Input = require('../../Input-BRhHPsGM.js');
|
|
14
14
|
var Label = require('../../Label-DsNZ-asS.js');
|
|
15
15
|
var Text = require('../../Text-DwIx33-P.js');
|
|
16
16
|
require('lodash/camelCase');
|
|
@@ -25,14 +25,14 @@ require('react-responsive');
|
|
|
25
25
|
require('../utils/setViewportProperty.js');
|
|
26
26
|
require('lodash/maxBy');
|
|
27
27
|
require('../hooks/useStyles/styleAttributes.js');
|
|
28
|
-
require('../../Link-
|
|
29
|
-
require('../../Loader-
|
|
28
|
+
require('../../Link-CZ8o5lGW.js');
|
|
29
|
+
require('../../Loader-CjT6-r3I.js');
|
|
30
30
|
require('react-inlinesvg');
|
|
31
31
|
require('../../Tooltip-hznDyLwa.js');
|
|
32
32
|
require('../../Title-ByfOyy-n.js');
|
|
33
33
|
|
|
34
|
-
var
|
|
35
|
-
|
|
34
|
+
var datePickerAppearanceSurface = {
|
|
35
|
+
surfacePrimary: {
|
|
36
36
|
datePicker: {
|
|
37
37
|
daySize: 'xs',
|
|
38
38
|
dayTextColor: 'surfaceTextPrimary',
|
|
@@ -48,18 +48,23 @@ var datePickerAppearance = {
|
|
|
48
48
|
},
|
|
49
49
|
input: {
|
|
50
50
|
width: '200',
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
width: 'fill',
|
|
52
|
+
size: 'm',
|
|
53
|
+
fill: 'surfacePrimary',
|
|
54
|
+
fillHover: 'surfacePrimary',
|
|
55
|
+
borderColor: 'surfaceBorderInverse',
|
|
53
56
|
textColor: 'surfaceTextPrimary',
|
|
54
57
|
textSize: 'm',
|
|
55
58
|
caret: 'surfaceItemPrimary',
|
|
59
|
+
caret: 'secondaryItemSecondary',
|
|
56
60
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
57
61
|
shape: 'rounded',
|
|
58
62
|
},
|
|
59
|
-
shape: 'rounded',
|
|
60
63
|
},
|
|
61
64
|
};
|
|
62
65
|
|
|
66
|
+
var datePickerAppearance = tslib_es6.__assign({}, datePickerAppearanceSurface);
|
|
67
|
+
|
|
63
68
|
var datePickerConfig = {
|
|
64
69
|
appearance: datePickerAppearance,
|
|
65
70
|
setAppearance: function (appearanceConfig) {
|
|
@@ -24,7 +24,9 @@ function Drawer(props) {
|
|
|
24
24
|
}
|
|
25
25
|
prevIsOpenModalRef.current = Boolean(isOpenModal);
|
|
26
26
|
}, [isOpenModal, onClose]);
|
|
27
|
-
return (jsxRuntime.jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "data-tour-".concat(dataTour)), direction: direction || 'right', size: size || 600,
|
|
27
|
+
return (jsxRuntime.jsxs(ReactDrawer, { className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "data-tour-".concat(dataTour)), direction: direction || 'right', size: size || 600,
|
|
28
|
+
// Drawer set prefix "EZDrawer" for any id
|
|
29
|
+
customIdSuffix: dataTestId ? "_".concat(dataTestId) : undefined, "data-tour": dataTour, enableOverlay: enableOverlay, lockBackgroundScroll: false, overlayClassName: "drawer__overlay",
|
|
28
30
|
// @ts-expect-error
|
|
29
31
|
open: isOpenModal, onClose: onClickClose, children: [before && jsxRuntime.jsx("div", { className: "drawer__before", children: before }), children && jsxRuntime.jsx("div", { className: "drawer__wrapper", children: children }), after && jsxRuntime.jsx("div", { className: "drawer__after", children: after })] }));
|
|
30
32
|
}
|
|
@@ -22,10 +22,10 @@ require('../hooks/useStyles/styleAttributes.js');
|
|
|
22
22
|
function Grid(props) {
|
|
23
23
|
var id = props.id, className = props.className, type = props.type, dataTour = props.dataTour, horizontalResizing = props.horizontalResizing, horizontalScroll = props.horizontalScroll, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, useGridSystem = props.useGridSystem, verticalResizing = props.verticalResizing, before = props.before, after = props.after, onClick = props.onClick, onDoubleClick = props.onDoubleClick, children = props.children;
|
|
24
24
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
25
|
-
var justifyContentClass = propsGenerator.justifyContentClass, justifyItemsClass = propsGenerator.justifyItemsClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, columnGapClass = propsGenerator.columnGapClass, columnsClass = propsGenerator.columnsClass, rowGapClass = propsGenerator.rowGapClass, rowsClass = propsGenerator.rowsClass;
|
|
25
|
+
var justifyContentClass = propsGenerator.justifyContentClass, justifyItemsClass = propsGenerator.justifyItemsClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, columnGapClass = propsGenerator.columnGapClass, columnsClass = propsGenerator.columnsClass, heightClass = propsGenerator.heightClass, rowGapClass = propsGenerator.rowGapClass, rowsClass = propsGenerator.rowsClass, widthClass = propsGenerator.widthClass;
|
|
26
26
|
// @ts-expect-error
|
|
27
27
|
var gridStyles = useStyles.useStyles(props).styles;
|
|
28
|
-
return (jsxRuntime.jsxs(Tag, { id: id, className: clsx(className, 'grid', useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass && "grid_columns_".concat(columnsClass), rowsClass && "grid_rows_".concat(rowsClass), rowGapClass && "grid_row-gap_".concat(rowGapClass), columnGapClass && "grid_column-gap_".concat(columnGapClass), alignContentClass && "grid_align-content_".concat(alignContentClass), alignItemsClass && "grid_align-items_".concat(alignItemsClass), borderColorClass && "border-color_".concat(borderColorClass), justifyContentClass && "grid_justify-content_".concat(justifyContentClass), justifyItemsClass && "grid_justify-items_".concat(justifyItemsClass), fillClass && "fill_".concat(fillClass), horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), "data-tour": dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsxRuntime.jsx("div", { className: "grid__before", children: before }), children, after && jsxRuntime.jsx("div", { className: "grid__after", children: after })] }));
|
|
28
|
+
return (jsxRuntime.jsxs(Tag, { id: id, className: clsx(className, 'grid', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), useGridSystem && "grid_state_system", horizontalScroll && "grid_scroll_horizontal", type && "grid_type_".concat(type), columnsClass && "grid_columns_".concat(columnsClass), rowsClass && "grid_rows_".concat(rowsClass), rowGapClass && "grid_row-gap_".concat(rowGapClass), columnGapClass && "grid_column-gap_".concat(columnGapClass), alignContentClass && "grid_align-content_".concat(alignContentClass), alignItemsClass && "grid_align-items_".concat(alignItemsClass), borderColorClass && "border-color_".concat(borderColorClass), justifyContentClass && "grid_justify-content_".concat(justifyContentClass), justifyItemsClass && "grid_justify-items_".concat(justifyItemsClass), fillClass && "fill_".concat(fillClass), horizontalResizing && "grid_horizontal-resizing_".concat(horizontalResizing), verticalResizing && "grid_vertical-resizing_".concat(verticalResizing)), "data-tour": dataTour, style: gridStyles, onClick: onClick, onDoubleClick: onDoubleClick, children: [before && jsxRuntime.jsx("div", { className: "grid__before", children: before }), children, after && jsxRuntime.jsx("div", { className: "grid__after", children: after })] }));
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function GridItem(props) {
|
|
@@ -38,12 +38,12 @@ function GridItem(props) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
function GridRow(props) {
|
|
41
|
-
var id = props.id, className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor,
|
|
41
|
+
var id = props.id, className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, htmlFor = props.htmlFor, _a = props.tag, Tag = _a === void 0 ? 'div' : _a, onClick = props.onClick, children = props.children;
|
|
42
42
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
43
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass;
|
|
43
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, heightClass = propsGenerator.heightClass, widthClass = propsGenerator.widthClass;
|
|
44
44
|
// @ts-expect-error
|
|
45
45
|
var gridRowStyles = useStyles.useStyles(props).styles;
|
|
46
|
-
return (jsxRuntime.jsx(Tag, { id: id, className: clsx(className, 'grid__row', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass)), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style:
|
|
46
|
+
return (jsxRuntime.jsx(Tag, { id: id, className: clsx(className, 'grid__row', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), borderColorClass && "border-color_".concat(borderColorClass)), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: htmlFor, style: gridRowStyles, onClick: onClick, children: children }));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
exports.Grid = Grid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Icon = require('../../Icon-
|
|
3
|
+
var Icon = require('../../Icon-D_BDlSSb.js');
|
|
4
4
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -20,7 +20,7 @@ require('../utils/setViewportProperty.js');
|
|
|
20
20
|
require('../hooks/useStyles/useStyles.js');
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
23
|
-
require('../../Link-
|
|
23
|
+
require('../../Link-CZ8o5lGW.js');
|
|
24
24
|
require('../../Tooltip-hznDyLwa.js');
|
|
25
25
|
require('../../Text-DwIx33-P.js');
|
|
26
26
|
require('../../Title-ByfOyy-n.js');
|
|
@@ -56,7 +56,7 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
56
56
|
: placeholderTextColorDisabledClass &&
|
|
57
57
|
"placeholder-text-color_disabled_".concat(placeholderTextColorDisabledClass), !isDisabled
|
|
58
58
|
? textColorClass && "text-color_".concat(textColorClass)
|
|
59
|
-
: textColorDisabledClass && "text-color_".concat(textColorDisabledClass)), type: type, disabled: isDisabled, "data-test-id": dataTestId || (name ? "".concat(name, "
|
|
59
|
+
: textColorDisabledClass && "text-color_".concat(textColorDisabledClass)), type: type, disabled: isDisabled, "data-test-id": dataTestId || (name ? "".concat(name, "InputMask") : 'inputMask'), index: index, placeholder: placeholder,
|
|
60
60
|
// @ts-expect-error
|
|
61
61
|
ref: ref, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
|
|
62
62
|
});
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Icon = require('../../Icon-
|
|
8
|
+
var Icon = require('../../Icon-D_BDlSSb.js');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('lodash/castArray');
|
|
11
11
|
require('lodash/upperFirst');
|
|
@@ -20,7 +20,7 @@ require('react-inlinesvg');
|
|
|
20
20
|
require('../hooks/useStyles/useStyles.js');
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
23
|
-
require('../../Link-
|
|
23
|
+
require('../../Link-CZ8o5lGW.js');
|
|
24
24
|
require('../../Tooltip-hznDyLwa.js');
|
|
25
25
|
require('../../Text-DwIx33-P.js');
|
|
26
26
|
require('../../Title-ByfOyy-n.js');
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var clsx = require('clsx');
|
|
5
5
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
6
6
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
7
|
-
var Link = require('../../Link-
|
|
7
|
+
var Link = require('../../Link-CZ8o5lGW.js');
|
|
8
8
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
9
9
|
require('react');
|
|
10
10
|
require('lodash/camelCase');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Link = require('../../Link-
|
|
8
|
+
var Link = require('../../Link-CZ8o5lGW.js');
|
|
9
9
|
require('react');
|
|
10
10
|
require('lodash/camelCase');
|
|
11
11
|
require('lodash/castArray');
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Link = require('../../Link-
|
|
9
|
+
var Link = require('../../Link-CZ8o5lGW.js');
|
|
10
10
|
var Text = require('../../Text-DwIx33-P.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|
|
@@ -9,7 +9,7 @@ var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevic
|
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
10
|
var Overlay = require('../../Overlay-BoIJ-g58.js');
|
|
11
11
|
var Title = require('../../Title-ByfOyy-n.js');
|
|
12
|
-
var Loader = require('../../Loader-
|
|
12
|
+
var Loader = require('../../Loader-CjT6-r3I.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
15
15
|
require('lodash/upperFirst');
|
|
@@ -7,8 +7,9 @@ var clsx = require('clsx');
|
|
|
7
7
|
var ceil = require('lodash/ceil');
|
|
8
8
|
var ReactPaginate = require('react-paginate');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
+
var DropdownItem = require('../../DropdownItem-_bKQxzEZ.js');
|
|
12
|
+
var Icon = require('../../Icon-D_BDlSSb.js');
|
|
12
13
|
var Text = require('../../Text-DwIx33-P.js');
|
|
13
14
|
require('lodash/camelCase');
|
|
14
15
|
require('lodash/castArray');
|
|
@@ -20,17 +21,16 @@ require('../context/UIContext.js');
|
|
|
20
21
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
21
22
|
require('react-responsive');
|
|
22
23
|
require('../utils/setViewportProperty.js');
|
|
23
|
-
require('../hooks/useStyles/useStyles.js');
|
|
24
24
|
require('lodash/maxBy');
|
|
25
25
|
require('../hooks/useStyles/styleAttributes.js');
|
|
26
26
|
require('../../Divider-BQIfjvPR.js');
|
|
27
27
|
require('react-inlinesvg');
|
|
28
|
-
require('../../Link-
|
|
28
|
+
require('../../Link-CZ8o5lGW.js');
|
|
29
29
|
require('../../Tooltip-hznDyLwa.js');
|
|
30
30
|
require('../../Title-ByfOyy-n.js');
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
|
|
32
|
+
var paginationAppearanceSurface = {
|
|
33
|
+
surfacePrimary: {
|
|
34
34
|
fill: 'surfacePrimary',
|
|
35
35
|
fillHover: 'surfaceSecondary',
|
|
36
36
|
gap: '8',
|
|
@@ -39,7 +39,7 @@ var paginationAppearance = {
|
|
|
39
39
|
pageCountDescTextColor: 'surfaceTextPrimary',
|
|
40
40
|
pageCountDescTextSize: 'm',
|
|
41
41
|
pageCountDropdownAlignment: 'topCenter',
|
|
42
|
-
pageCountDropdownElevation:
|
|
42
|
+
pageCountDropdownElevation: 8,
|
|
43
43
|
pageCountDropdownFill: 'surfacePrimary',
|
|
44
44
|
pageCountDropdownItemDividerFill: 'surfaceSecondary',
|
|
45
45
|
pageCountDropdownItemDividerSize: 'xxs',
|
|
@@ -54,7 +54,6 @@ var paginationAppearance = {
|
|
|
54
54
|
pageCountDropdownItemShowDivider: true,
|
|
55
55
|
pageCountDropdownItemSize: 'l',
|
|
56
56
|
pageCountDropdownItemWidth: 'hug',
|
|
57
|
-
pageCountDropdownSet: 'default',
|
|
58
57
|
pageCountDropdownShape: 'rounded',
|
|
59
58
|
pageCountInputIconColor: 'surfaceItemPrimary',
|
|
60
59
|
pageCountInputIconFillSize: '24',
|
|
@@ -64,6 +63,8 @@ var paginationAppearance = {
|
|
|
64
63
|
},
|
|
65
64
|
};
|
|
66
65
|
|
|
66
|
+
var paginationAppearance = tslib_es6.__assign({}, paginationAppearanceSurface);
|
|
67
|
+
|
|
67
68
|
var paginationConfig = {
|
|
68
69
|
appearance: paginationAppearance,
|
|
69
70
|
setAppearance: function (appearanceConfig) {
|
|
@@ -71,7 +72,7 @@ var paginationConfig = {
|
|
|
71
72
|
},
|
|
72
73
|
};
|
|
73
74
|
function Pagination(props) {
|
|
74
|
-
var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a,
|
|
75
|
+
var className = props.className, appearance = props.appearance, _a = props.allItemsCount, allItemsCount = _a === void 0 ? 0 : _a, dataTestId = props.dataTestId, dataTour = props.dataTour, nextLabel = props.nextLabel, _b = props.pageCountArray, pageCountArray = _b === void 0 ? [10, 20, 50, 100] : _b, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, _c = props.pageCountDesc, pageCountDesc = _c === void 0 ? 'кол-во строк' : _c, pageCountInputIconSrc = props.pageCountInputIconSrc, _d = props.pageNumber, pageNumber = _d === void 0 ? 0 : _d, _e = props.perPageCount, perPageCount = _e === void 0 ? 0 : _e, previousLabel = props.previousLabel, isPageCount = props.isPageCount, _f = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _f === void 0 ? false : _f, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
75
76
|
/**
|
|
76
77
|
* @deprecated The method should not be used
|
|
77
78
|
*/
|
|
@@ -133,49 +134,16 @@ function Pagination(props) {
|
|
|
133
134
|
return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
134
135
|
}, {});
|
|
135
136
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
136
|
-
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
|
|
137
|
+
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed;
|
|
138
|
+
var paginationStyles = useStyles.useStyles(props).styles;
|
|
139
|
+
return (jsxRuntime.jsxs("div", { className: "pagination", "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsxRuntime.jsx(ReactPaginate, { disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled", activeClassName: "pagination__item_state_active cursor_type_default", activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
|
|
140
140
|
"pagination_justify-content_".concat(justifyContentClass)),
|
|
141
141
|
// pages settings
|
|
142
|
-
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed
|
|
142
|
+
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: "pagination__item pagination__item_next",
|
|
143
143
|
// next button
|
|
144
|
-
nextLabel: nextLabel, nextLinkClassName: "pagination__item-link",
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
// previous button
|
|
148
|
-
previousLabel: previousLabel, previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxRuntime.jsxs("div", { className: clsx(className, 'pagination__count', gapClass && "gap_".concat(gapClass)), children: [jsxRuntime.jsx(Text.Text, { size: pageCountDescTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDescTextSize), textColor: pageCountDescTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDescTextColor), children: pageCountDesc || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDesc) }), jsxRuntime.jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize ||
|
|
149
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextSize), textColor: pageCountInputTextColor ||
|
|
150
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextColor), children: activeDropdownItem }), jsxRuntime.jsx(Icon.Icon, { fillSize: pageCountInputIconFillSize ||
|
|
151
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconFillSize), iconFill: pageCountInputIconColor ||
|
|
152
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconColor), imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { alignment: pageCountDropdownAlignment ||
|
|
153
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownAlignment), fill: pageCountDropdownFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownFill), elevation: pageCountDropdownElevation ||
|
|
154
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownElevation), shape: pageCountDropdownShape ||
|
|
155
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownShape), isOpen: isOpenDropdown, set: pageCountDropdownSet || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownSet), setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
|
|
156
|
-
return activeDropdownItem === item ? (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth ||
|
|
157
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), size: pageCountDropdownItemSize ||
|
|
158
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), fill: pageCountDropdownItemFill ||
|
|
159
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFill), fillActive: pageCountDropdownItemFillActive ||
|
|
160
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActive), fillActiveHover: pageCountDropdownItemFillActiveHover ||
|
|
161
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActiveHover), fillHover: pageCountDropdownItemFillHover ||
|
|
162
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
163
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
164
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
165
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
166
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill ||
|
|
167
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerFill), dividerSize: pageCountDropdownItemDividerSize ||
|
|
168
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), showDivider: index < pageCountArray.length - 1 &&
|
|
169
|
-
(pageCountDropdownItemShowDivider ||
|
|
170
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemShowDivider)), isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth ||
|
|
171
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), size: pageCountDropdownItemSize ||
|
|
172
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover ||
|
|
173
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
174
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
175
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
176
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
177
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize ||
|
|
178
|
-
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), showDivider: index < pageCountArray.length - 1 &&
|
|
144
|
+
nextLabel: nextLabel, nextLinkClassName: "pagination__item-link", pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed, previousClassName: "pagination__item pagination__item_previous", previousLabel: previousLabel, previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxRuntime.jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsxRuntime.jsx(Text.Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxRuntime.jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsxRuntime.jsx(Icon.Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
|
|
145
|
+
return activeDropdownItem === item ? (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillActive: pageCountDropdownItemFillActive, fillActiveHover: pageCountDropdownItemFillActiveHover, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
|
|
146
|
+
pageCountDropdownItemShowDivider, isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
|
|
179
147
|
pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
|
|
180
148
|
}) })] })] }))] }));
|
|
181
149
|
}
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Group = require('../../Group-
|
|
9
|
+
var Group = require('../../Group-utjnjUDZ.js');
|
|
10
10
|
var Text = require('../../Text-DwIx33-P.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|
|
@@ -7,8 +7,8 @@ var clsx = require('clsx');
|
|
|
7
7
|
var SVG = require('react-inlinesvg');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Button = require('../../Button-
|
|
11
|
-
var Group = require('../../Group-
|
|
10
|
+
var Button = require('../../Button-CWPTzaG2.js');
|
|
11
|
+
var Group = require('../../Group-utjnjUDZ.js');
|
|
12
12
|
var Text = require('../../Text-DwIx33-P.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
@@ -22,11 +22,11 @@ require('react-responsive');
|
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../Icon-
|
|
26
|
-
require('../../Link-
|
|
25
|
+
require('../../Icon-D_BDlSSb.js');
|
|
26
|
+
require('../../Link-CZ8o5lGW.js');
|
|
27
27
|
require('../../Tooltip-hznDyLwa.js');
|
|
28
28
|
require('../../Title-ByfOyy-n.js');
|
|
29
|
-
require('../../Loader-
|
|
29
|
+
require('../../Loader-CjT6-r3I.js');
|
|
30
30
|
|
|
31
31
|
var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
32
32
|
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Icon = require('../../Icon-
|
|
9
|
+
var Icon = require('../../Icon-D_BDlSSb.js');
|
|
10
10
|
var Text = require('../../Text-DwIx33-P.js');
|
|
11
11
|
var Scrollbar = require('../../Scrollbar-DcKOfcNp.js');
|
|
12
12
|
require('lodash/camelCase');
|
|
@@ -22,7 +22,7 @@ require('../utils/setViewportProperty.js');
|
|
|
22
22
|
require('lodash/maxBy');
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
24
|
require('react-inlinesvg');
|
|
25
|
-
require('../../Link-
|
|
25
|
+
require('../../Link-CZ8o5lGW.js');
|
|
26
26
|
require('../../Tooltip-hznDyLwa.js');
|
|
27
27
|
require('../../Title-ByfOyy-n.js');
|
|
28
28
|
require('react-scrollbars-custom');
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var tslib_es6 = require('../../tslib.es6-CCZ3TN_7.js');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var Select = require('react-select');
|
|
6
|
-
var Icon = require('../../Icon-
|
|
6
|
+
var Icon = require('../../Icon-D_BDlSSb.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var clsx = require('clsx');
|
|
9
9
|
var CreatableSelect = require('react-select/creatable');
|
|
10
10
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
11
11
|
var Text = require('../../Text-DwIx33-P.js');
|
|
12
|
-
var Badge = require('../../Badge-
|
|
13
|
-
var Group = require('../../Group-
|
|
12
|
+
var Badge = require('../../Badge-Df7Zxjnk.js');
|
|
13
|
+
var Group = require('../../Group-utjnjUDZ.js');
|
|
14
14
|
var Divider = require('../../Divider-BQIfjvPR.js');
|
|
15
15
|
require('react-inlinesvg');
|
|
16
16
|
require('../hooks/useStyles/useStyles.js');
|
|
@@ -25,7 +25,7 @@ require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
|
25
25
|
require('react-responsive');
|
|
26
26
|
require('../utils/setViewportProperty.js');
|
|
27
27
|
require('../hooks/useStyles/styleAttributes.js');
|
|
28
|
-
require('../../Link-
|
|
28
|
+
require('../../Link-CZ8o5lGW.js');
|
|
29
29
|
require('../../Tooltip-hznDyLwa.js');
|
|
30
30
|
require('../../Title-ByfOyy-n.js');
|
|
31
31
|
require('lodash/castArray');
|
|
@@ -6,9 +6,9 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
9
|
-
var Badge = require('../../Badge-
|
|
9
|
+
var Badge = require('../../Badge-Df7Zxjnk.js');
|
|
10
10
|
var Divider = require('../../Divider-BQIfjvPR.js');
|
|
11
|
-
var Link = require('../../Link-
|
|
11
|
+
var Link = require('../../Link-CZ8o5lGW.js');
|
|
12
12
|
var Text = require('../../Text-DwIx33-P.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('lodash/castArray');
|
|
@@ -22,7 +22,7 @@ require('react-responsive');
|
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('lodash/maxBy');
|
|
24
24
|
require('../hooks/useStyles/styleAttributes.js');
|
|
25
|
-
require('../../Icon-
|
|
25
|
+
require('../../Icon-D_BDlSSb.js');
|
|
26
26
|
require('react-inlinesvg');
|
|
27
27
|
require('../../Tooltip-hznDyLwa.js');
|
|
28
28
|
require('../../Title-ByfOyy-n.js');
|
|
@@ -148,12 +148,12 @@ function Tab(props) {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
function TabGroup(props) {
|
|
151
|
-
var
|
|
151
|
+
var className = props.className, dataTestId = props.dataTestId, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, style = props.style, set = props.set, children = props.children;
|
|
152
152
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
153
153
|
var directionClass = propsGenerator.directionClass, alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, contentAlignClass = propsGenerator.contentAlignClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
|
|
154
154
|
// @ts-expect-error
|
|
155
155
|
var _a = useStyles.useStyles(props), groupStyles = _a.styles, groupWrapperStyles = _a.wrapper;
|
|
156
|
-
return (jsxRuntime.jsx("div", {
|
|
156
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'tab-group', 'group', widthClass && "width_".concat(widthClass), contentAlignClass && "group_content-align_".concat(contentAlignClass), alignDirectionClass && "align_".concat(alignDirectionClass), directionClass && "group_direction_".concat(directionClass), alignClass && "align_".concat(alignClass), fillClass && "fill_".concat(fillClass), set && "group_set_".concat(set), horizontalScroll && 'group_type_horizontal_scroll', wrapClass && "group_wrap_".concat(wrapClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxRuntime.jsx("div", { className: "tab-group__wrapper", style: groupWrapperStyles, children: children })) : (children) }));
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
exports.Tab = Tab;
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
8
|
-
var Badge = require('../../Badge-
|
|
8
|
+
var Badge = require('../../Badge-Df7Zxjnk.js');
|
|
9
9
|
var Text = require('../../Text-DwIx33-P.js');
|
|
10
10
|
var Title = require('../../Title-ByfOyy-n.js');
|
|
11
11
|
require('react');
|
|
@@ -21,9 +21,9 @@ require('react-responsive');
|
|
|
21
21
|
require('../utils/setViewportProperty.js');
|
|
22
22
|
require('lodash/maxBy');
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
|
-
require('../../Icon-
|
|
24
|
+
require('../../Icon-D_BDlSSb.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
|
-
require('../../Link-
|
|
26
|
+
require('../../Link-CZ8o5lGW.js');
|
|
27
27
|
require('../../Tooltip-hznDyLwa.js');
|
|
28
28
|
|
|
29
29
|
var tileAppearance = {
|
|
@@ -14,11 +14,13 @@ var STATUSES = {
|
|
|
14
14
|
warning: 'warning',
|
|
15
15
|
};
|
|
16
16
|
var NotificationsContext = React.createContext([]);
|
|
17
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
18
|
var NotificationsAPIContext = React.createContext({
|
|
18
19
|
hideNotifications: function () { },
|
|
19
|
-
showNotification: function () { },
|
|
20
|
+
showNotification: function (notification, onClose) { },
|
|
20
21
|
notificationStatuses: STATUSES,
|
|
21
22
|
});
|
|
23
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
22
24
|
function NotificationsProvider(props) {
|
|
23
25
|
var _a = props.initialNotificationsList, initialNotificationsList = _a === void 0 ? [] : _a, isLogRequestsErrors = props.isLogRequestsErrors, children = props.children;
|
|
24
26
|
var _b = React.useState(function () {
|