@itcase/ui 1.2.22 → 1.2.24
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/{Button-CxJYh-_G.js → Button-AKN9f9n0.js} +1 -1
- package/dist/{Button-CDc_-QmL.js → Button-Bf9kDDqK.js} +1 -1
- package/dist/{Icon-DTwrijaa.js → Icon-B1V8M_j9.js} +6 -5
- package/dist/{Icon-DfVed6hR.js → Icon-Du1Nyea-.js} +7 -6
- package/dist/{Label-BT_PpHjb.js → Label-B0O9q0E4.js} +1 -1
- package/dist/{Label-B7HJUf4x.js → Label-D8DRdqad.js} +1 -1
- package/dist/{Tooltip-CK7SVawj.js → Tooltip-aaDRYNWY.js} +21 -10
- package/dist/{Tooltip-BygRHezt.js → Tooltip-xGmgUzGr.js} +21 -10
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +3 -3
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/ContextMenu.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/LanguageSelector.js +2 -2
- package/dist/cjs/components/Pagination.js +46 -13
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/SiteMenu.js +2 -2
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +3 -3
- package/dist/components/Choice.js +2 -2
- package/dist/components/ContextMenu.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +2 -2
- package/dist/components/LanguageSelector.js +2 -2
- package/dist/components/Pagination.js +46 -14
- package/dist/components/Response.js +3 -3
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +2 -2
- package/dist/components/SiteMenu.js +2 -2
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/DatePicker/DatePicker.css +1 -1
- package/dist/css/components/Icon/Icon.css +1 -0
- package/dist/css/mixins/mixin_utils.css +18 -11
- package/dist/css/styles/mediaqueries.css +1 -1
- package/dist/css/tokens/typography.css +3 -0
- package/dist/types/components/Icon/Icon.d.ts +3 -3
- package/dist/types/components/Icon/Icon.interface.d.ts +15 -14
- package/dist/types/components/Pagination/Pagination.d.ts +3 -2
- package/dist/types/components/Pagination/Pagination.interface.d.ts +30 -13
- package/dist/types/components/Pagination/index.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
- package/package.json +27 -27
|
@@ -7,7 +7,7 @@ var ceil = require('lodash/ceil');
|
|
|
7
7
|
var ReactPaginate = require('react-paginate');
|
|
8
8
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
9
9
|
var DropdownItem = require('../../DropdownItem-D52wxY6I.js');
|
|
10
|
-
var Icon = require('../../Icon-
|
|
10
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
11
11
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
12
12
|
require('lodash/castArray');
|
|
13
13
|
require('lodash/camelCase');
|
|
@@ -23,11 +23,17 @@ require('../../Divider-BjB5MD6u.js');
|
|
|
23
23
|
require('../../Link-CqWzwh8V.js');
|
|
24
24
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
25
25
|
require('react-inlinesvg');
|
|
26
|
-
require('../../Tooltip-
|
|
26
|
+
require('../../Tooltip-xGmgUzGr.js');
|
|
27
27
|
require('../../Title-zwP6c2U2.js');
|
|
28
28
|
|
|
29
|
+
var paginationConfig = {
|
|
30
|
+
appearance: undefined,
|
|
31
|
+
setAppearance: function (newComponent) {
|
|
32
|
+
paginationConfig.appearance = newComponent;
|
|
33
|
+
},
|
|
34
|
+
};
|
|
29
35
|
function Pagination(props) {
|
|
30
|
-
var isPageCount = props.isPageCount, _a = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _a === void 0 ? false : _a, _b = props.allItemsCount, allItemsCount = _b === void 0 ? 0 : _b, className = props.className, marginPagesDisplayed = props.marginPagesDisplayed, nextLabel = props.nextLabel, _c = props.pageCountArray, pageCountArray = _c === void 0 ? [10, 20, 50, 100] : _c, pageCountDesc = props.pageCountDesc, pageCountDescTextColor = props.pageCountDescTextColor, pageCountDescTextSize = props.pageCountDescTextSize, pageCountDropdownAlignment = props.pageCountDropdownAlignment, pageCountDropdownElevation = props.pageCountDropdownElevation, pageCountDropdownFill = props.pageCountDropdownFill, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, pageCountDropdownItemDividerFill = props.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = props.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = props.pageCountDropdownItemFill, pageCountDropdownItemFillActive = props.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = props.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = props.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = props.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = props.pageCountDropdownItemLabelColor, _d = props.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActive = _d === void 0 ? '' : _d, pageCountDropdownItemLabelSize = props.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = props.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = props.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = props.pageCountDropdownItemSize, pageCountDropdownItemWidth = props.pageCountDropdownItemWidth, pageCountDropdownSet = props.pageCountDropdownSet, pageCountDropdownShape = props.pageCountDropdownShape, pageCountInputIcon = props.pageCountInputIcon, pageCountInputIconColor = props.pageCountInputIconColor, pageCountInputIconFillSize = props.pageCountInputIconFillSize, pageCountInputTextColor = props.pageCountInputTextColor, pageCountInputTextSize = props.pageCountInputTextSize, _e = props.pageNumber, pageNumber = _e === void 0 ? 0 : _e, pageRangeDisplayed = props.pageRangeDisplayed, _f = props.perPageCount, perPageCount = _f === void 0 ? 0 : _f, previousLabel = props.previousLabel, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
36
|
+
var isPageCount = props.isPageCount, _a = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _a === void 0 ? false : _a, _b = props.allItemsCount, allItemsCount = _b === void 0 ? 0 : _b, appearance = props.appearance, className = props.className, marginPagesDisplayed = props.marginPagesDisplayed, nextLabel = props.nextLabel, _c = props.pageCountArray, pageCountArray = _c === void 0 ? [10, 20, 50, 100] : _c, pageCountDesc = props.pageCountDesc, pageCountDescTextColor = props.pageCountDescTextColor, pageCountDescTextSize = props.pageCountDescTextSize, pageCountDropdownAlignment = props.pageCountDropdownAlignment, pageCountDropdownElevation = props.pageCountDropdownElevation, pageCountDropdownFill = props.pageCountDropdownFill, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, pageCountDropdownItemDividerFill = props.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = props.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = props.pageCountDropdownItemFill, pageCountDropdownItemFillActive = props.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = props.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = props.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = props.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = props.pageCountDropdownItemLabelColor, _d = props.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActive = _d === void 0 ? '' : _d, pageCountDropdownItemLabelSize = props.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = props.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = props.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = props.pageCountDropdownItemSize, pageCountDropdownItemWidth = props.pageCountDropdownItemWidth, pageCountDropdownSet = props.pageCountDropdownSet, pageCountDropdownShape = props.pageCountDropdownShape, pageCountInputIcon = props.pageCountInputIcon, pageCountInputIconColor = props.pageCountInputIconColor, pageCountInputIconFillSize = props.pageCountInputIconFillSize, pageCountInputTextColor = props.pageCountInputTextColor, pageCountInputTextSize = props.pageCountInputTextSize, _e = props.pageNumber, pageNumber = _e === void 0 ? 0 : _e, pageRangeDisplayed = props.pageRangeDisplayed, _f = props.perPageCount, perPageCount = _f === void 0 ? 0 : _f, previousLabel = props.previousLabel, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
31
37
|
/**
|
|
32
38
|
* @deprecated The method should not be used
|
|
33
39
|
*/
|
|
@@ -98,19 +104,46 @@ function Pagination(props) {
|
|
|
98
104
|
}
|
|
99
105
|
return 0;
|
|
100
106
|
}, [pageNumber]);
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
previousLabel: previousLabel, breakLinkClassName: "pagination__item-link",
|
|
104
|
-
// pages settings
|
|
105
|
-
forcePage: paginationPageIndex, containerClassName: clsx(className, 'pagination__container', justifyContentClass),
|
|
106
|
-
// page item
|
|
107
|
-
pageClassName: "pagination__item", nextLinkClassName: "pagination__item-link",
|
|
107
|
+
var appearanceConfig = appearance && paginationConfig.appearance && paginationConfig.appearance[appearance];
|
|
108
|
+
return (jsxRuntime.jsxs("div", { className: "pagination", children: [jsxRuntime.jsx(ReactPaginate, { activeClassName: "pagination__item_state_active cursor_type_default", activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break",
|
|
108
109
|
// break element
|
|
109
|
-
breakLabel: "...",
|
|
110
|
+
breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass), disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled",
|
|
111
|
+
// pages settings
|
|
112
|
+
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.marginPagesDisplayed), nextClassName: "pagination__item pagination__item_next",
|
|
110
113
|
// next button
|
|
111
|
-
nextLabel: nextLabel,
|
|
112
|
-
|
|
114
|
+
nextLabel: nextLabel, nextLinkClassName: "pagination__item-link",
|
|
115
|
+
// page item
|
|
116
|
+
pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageRangeDisplayed), previousClassName: "pagination__item pagination__item_previous",
|
|
117
|
+
// previous button
|
|
118
|
+
previousLabel: previousLabel, previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxRuntime.jsxs("div", { className: clsx(className, 'pagination__count', gapClass ||
|
|
119
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.gap) &&
|
|
120
|
+
"gap_".concat(appearanceConfig.gap).replace(/([A-Z])/g, '-$1').toLowerCase())), 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 ||
|
|
121
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
122
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), fillHoverClass ||
|
|
123
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
124
|
+
"fill_hover_".concat(appearanceConfig.fillHover)
|
|
125
|
+
.replace(/([A-Z])/g, '-$1')
|
|
126
|
+
.toLowerCase())), onClick: onClickCommandMenuButton, children: [jsxRuntime.jsx(Text.Text, { size: pageCountInputTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextSize), textColor: pageCountInputTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextColor), children: activeDropdownItem }), jsxRuntime.jsx(Icon.Icon, { fillSize: pageCountInputIconFillSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconFillSize), iconFill: pageCountInputIconColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconColor), SvgImage: pageCountInputIcon }), jsxRuntime.jsx(DropdownItem.Dropdown, { fill: pageCountDropdownFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownFill), alignment: pageCountDropdownAlignment || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownAlignment), elevation: pageCountDropdownElevation || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownElevation), shape: pageCountDropdownShape || (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) {
|
|
127
|
+
return activeDropdownItem === item ? (jsxRuntime.jsx(DropdownItem.DropdownItem, { width: pageCountDropdownItemWidth || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
128
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
129
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), fill: pageCountDropdownItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFill), fillHover: pageCountDropdownItemFillHover ||
|
|
130
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), dividerDirection: pageCountDropdownItemDividerDirection, label: item.toString(), labelTextWrap: pageCountDropdownItemLabelWrap, size: pageCountDropdownItemSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), dividerFill: pageCountDropdownItemDividerFill ||
|
|
131
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerFill), dividerSize: pageCountDropdownItemDividerSize ||
|
|
132
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), fillActive: pageCountDropdownItemFillActive ||
|
|
133
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActive), fillActiveHover: pageCountDropdownItemFillActiveHover ||
|
|
134
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActiveHover), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
135
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
136
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), showDivider: index < pageCountArray.length - 1 &&
|
|
137
|
+
(pageCountDropdownItemShowDivider ||
|
|
138
|
+
(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 || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
139
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
140
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover ||
|
|
141
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, label: item.toString(), labelTextWrap: pageCountDropdownItemLabelWrap, size: pageCountDropdownItemSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), dividerSize: pageCountDropdownItemDividerSize ||
|
|
142
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
143
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
144
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), showDivider: index < pageCountArray.length - 1 && pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
|
|
113
145
|
}) })] })] }))] }));
|
|
114
146
|
}
|
|
115
147
|
|
|
116
148
|
exports.Pagination = Pagination;
|
|
149
|
+
exports.paginationConfig = paginationConfig;
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var SVG = require('react-inlinesvg');
|
|
7
7
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
8
8
|
var useStyles = require('../hooks/useStyles.js');
|
|
9
|
-
var Button = require('../../Button-
|
|
9
|
+
var Button = require('../../Button-Bf9kDDqK.js');
|
|
10
10
|
var Group = require('../../Group-B2oTJg0t.js');
|
|
11
11
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
12
12
|
var Title = require('../../Title-zwP6c2U2.js');
|
|
@@ -19,10 +19,10 @@ require('react-responsive');
|
|
|
19
19
|
require('lodash/maxBy');
|
|
20
20
|
require('lodash/upperFirst');
|
|
21
21
|
require('../hooks/styleAttributes.js');
|
|
22
|
-
require('../../Icon-
|
|
22
|
+
require('../../Icon-B1V8M_j9.js');
|
|
23
23
|
require('../../Link-CqWzwh8V.js');
|
|
24
24
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
25
|
-
require('../../Tooltip-
|
|
25
|
+
require('../../Tooltip-xGmgUzGr.js');
|
|
26
26
|
require('../../Loader-fA11tUEJ.js');
|
|
27
27
|
|
|
28
28
|
var responseConfig = {
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
7
7
|
var useStyles = require('../hooks/useStyles.js');
|
|
8
|
-
var Icon = require('../../Icon-
|
|
8
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
9
9
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
10
10
|
var Scrollbar = require('../../Scrollbar-DVlIZzvz.js');
|
|
11
11
|
require('lodash/castArray');
|
|
@@ -20,7 +20,7 @@ require('../hooks/styleAttributes.js');
|
|
|
20
20
|
require('react-inlinesvg');
|
|
21
21
|
require('../../Link-CqWzwh8V.js');
|
|
22
22
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
23
|
-
require('../../Tooltip-
|
|
23
|
+
require('../../Tooltip-xGmgUzGr.js');
|
|
24
24
|
require('../../Title-zwP6c2U2.js');
|
|
25
25
|
require('react-scrollbars-custom');
|
|
26
26
|
|
|
@@ -3,7 +3,7 @@
|
|
|
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-B1V8M_j9.js');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var clsx = require('clsx');
|
|
9
9
|
var CreatableSelect = require('react-select/creatable');
|
|
@@ -23,7 +23,7 @@ require('../hooks/useMediaQueries.js');
|
|
|
23
23
|
require('react-responsive');
|
|
24
24
|
require('../hooks/styleAttributes.js');
|
|
25
25
|
require('../../Link-CqWzwh8V.js');
|
|
26
|
-
require('../../Tooltip-
|
|
26
|
+
require('../../Tooltip-xGmgUzGr.js');
|
|
27
27
|
require('../../Title-zwP6c2U2.js');
|
|
28
28
|
require('lodash/castArray');
|
|
29
29
|
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var UIContext = require('../context/UIContext.js');
|
|
7
7
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
8
|
-
var Icon = require('../../Icon-
|
|
8
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
9
9
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
10
10
|
require('prop-types');
|
|
11
11
|
require('../hooks/useMediaQueries.js');
|
|
@@ -19,7 +19,7 @@ require('lodash/upperFirst');
|
|
|
19
19
|
require('../hooks/styleAttributes.js');
|
|
20
20
|
require('../../Link-CqWzwh8V.js');
|
|
21
21
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
22
|
-
require('../../Tooltip-
|
|
22
|
+
require('../../Tooltip-xGmgUzGr.js');
|
|
23
23
|
require('../../Title-zwP6c2U2.js');
|
|
24
24
|
|
|
25
25
|
function SiteMenu(props) {
|
|
@@ -6,7 +6,7 @@ import castArray from 'lodash/castArray';
|
|
|
6
6
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
8
8
|
import { D as Divider } from '../Divider-U5UdY-ef.js';
|
|
9
|
-
import { I as Icon } from '../Icon-
|
|
9
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
10
10
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
12
12
|
import '../context/UIContext.js';
|
|
@@ -18,7 +18,7 @@ import 'lodash/upperFirst';
|
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
19
|
import 'react-inlinesvg';
|
|
20
20
|
import '../Link-CeQuavin.js';
|
|
21
|
-
import '../Tooltip-
|
|
21
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
22
22
|
import '../Title-BfSFPJtJ.js';
|
|
23
23
|
|
|
24
24
|
var ChevronDown16 = function ChevronDown16(props) {
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
6
6
|
import { I as Image } from '../Image-8t6PvsaZ.js';
|
|
7
7
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -18,7 +18,7 @@ import 'lodash/upperFirst';
|
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
19
|
import '../Link-CeQuavin.js';
|
|
20
20
|
import '../tslib.es6-5FtW-kfi.js';
|
|
21
|
-
import '../Tooltip-
|
|
21
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
22
22
|
import '../Title-BfSFPJtJ.js';
|
|
23
23
|
|
|
24
24
|
function Avatar(props) {
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import camelCase from 'lodash/camelCase';
|
|
6
6
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
8
|
-
import { I as Icon } from '../Icon-
|
|
8
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
9
9
|
import { a as LinkWrapper } from '../Link-CeQuavin.js';
|
|
10
10
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
11
11
|
import 'lodash/castArray';
|
|
@@ -17,7 +17,7 @@ import 'lodash/maxBy';
|
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
19
|
import 'react-inlinesvg';
|
|
20
|
-
import '../Tooltip-
|
|
20
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
21
21
|
import '../Title-BfSFPJtJ.js';
|
|
22
22
|
|
|
23
23
|
function BreadcrumbsItem(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button, b as buttonConfig } from '../Button-
|
|
1
|
+
export { B as Button, b as buttonConfig } from '../Button-AKN9f9n0.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -13,11 +13,11 @@ import '../hooks/useStyles.js';
|
|
|
13
13
|
import 'lodash/maxBy';
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
|
-
import '../Icon-
|
|
16
|
+
import '../Icon-Du1Nyea-.js';
|
|
17
17
|
import 'react-inlinesvg';
|
|
18
18
|
import '../Link-CeQuavin.js';
|
|
19
19
|
import '../tslib.es6-5FtW-kfi.js';
|
|
20
|
-
import '../Tooltip-
|
|
20
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
21
21
|
import '../Text-CG3xPG27.js';
|
|
22
22
|
import '../Title-BfSFPJtJ.js';
|
|
23
23
|
import '../Loader-CJ8ZCdwy.js';
|
package/dist/components/Cell.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { useStyles } from '../hooks/useStyles.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
6
|
-
import { L as Label } from '../Label-
|
|
5
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
6
|
+
import { L as Label } from '../Label-D8DRdqad.js';
|
|
7
7
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -18,7 +18,7 @@ import '../hooks/styleAttributes.js';
|
|
|
18
18
|
import 'react-inlinesvg';
|
|
19
19
|
import '../Link-CeQuavin.js';
|
|
20
20
|
import '../tslib.es6-5FtW-kfi.js';
|
|
21
|
-
import '../Tooltip-
|
|
21
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
22
22
|
import '../Title-BfSFPJtJ.js';
|
|
23
23
|
|
|
24
24
|
function Cell(props) {
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
6
6
|
import { L as Loader } from '../Loader-CJ8ZCdwy.js';
|
|
7
7
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -18,7 +18,7 @@ import 'lodash/upperFirst';
|
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
19
|
import '../Link-CeQuavin.js';
|
|
20
20
|
import '../tslib.es6-5FtW-kfi.js';
|
|
21
|
-
import '../Tooltip-
|
|
21
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
22
22
|
import '../Title-BfSFPJtJ.js';
|
|
23
23
|
|
|
24
24
|
var choiceConfig = {
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { D as Divider } from '../Divider-U5UdY-ef.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
6
6
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'lodash/castArray';
|
|
@@ -18,7 +18,7 @@ import '../hooks/styleAttributes.js';
|
|
|
18
18
|
import 'react-inlinesvg';
|
|
19
19
|
import '../Link-CeQuavin.js';
|
|
20
20
|
import '../tslib.es6-5FtW-kfi.js';
|
|
21
|
-
import '../Tooltip-
|
|
21
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
22
22
|
import '../Title-BfSFPJtJ.js';
|
|
23
23
|
|
|
24
24
|
function ContextMenu(props) {
|
|
@@ -3,7 +3,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { B as Button } from '../Button-
|
|
6
|
+
import { B as Button } from '../Button-AKN9f9n0.js';
|
|
7
7
|
import { G as Group } from '../Group-CVUfaHaS.js';
|
|
8
8
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -16,11 +16,11 @@ import '../hooks/useStyles.js';
|
|
|
16
16
|
import 'lodash/maxBy';
|
|
17
17
|
import 'lodash/upperFirst';
|
|
18
18
|
import '../hooks/styleAttributes.js';
|
|
19
|
-
import '../Icon-
|
|
19
|
+
import '../Icon-Du1Nyea-.js';
|
|
20
20
|
import 'react-inlinesvg';
|
|
21
21
|
import '../Link-CeQuavin.js';
|
|
22
22
|
import '../tslib.es6-5FtW-kfi.js';
|
|
23
|
-
import '../Tooltip-
|
|
23
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
24
24
|
import '../Title-BfSFPJtJ.js';
|
|
25
25
|
import '../Loader-CJ8ZCdwy.js';
|
|
26
26
|
|
|
@@ -5,10 +5,10 @@ import clsx from 'clsx';
|
|
|
5
5
|
import DatePicker from 'react-datepicker';
|
|
6
6
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles.js';
|
|
8
|
-
import { B as Button } from '../Button-
|
|
9
|
-
import { I as Icon } from '../Icon-
|
|
8
|
+
import { B as Button } from '../Button-AKN9f9n0.js';
|
|
9
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
10
10
|
import { I as Input } from '../Input-UkM-ag48.js';
|
|
11
|
-
import { L as Label } from '../Label-
|
|
11
|
+
import { L as Label } from '../Label-D8DRdqad.js';
|
|
12
12
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
13
13
|
import 'lodash/castArray';
|
|
14
14
|
import 'lodash/camelCase';
|
|
@@ -22,7 +22,7 @@ import '../hooks/styleAttributes.js';
|
|
|
22
22
|
import '../Link-CeQuavin.js';
|
|
23
23
|
import '../Loader-CJ8ZCdwy.js';
|
|
24
24
|
import 'react-inlinesvg';
|
|
25
|
-
import '../Tooltip-
|
|
25
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
26
26
|
import '../Title-BfSFPJtJ.js';
|
|
27
27
|
|
|
28
28
|
function buildFormatLongFn(args) {
|
package/dist/components/Icon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Icon, i as iconConfig } from '../Icon-
|
|
1
|
+
export { I as Icon, i as iconConfig } from '../Icon-Du1Nyea-.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -16,6 +16,6 @@ import 'lodash/upperFirst';
|
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
17
|
import '../Link-CeQuavin.js';
|
|
18
18
|
import '../tslib.es6-5FtW-kfi.js';
|
|
19
|
-
import '../Tooltip-
|
|
19
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
20
20
|
import '../Text-CG3xPG27.js';
|
|
21
21
|
import '../Title-BfSFPJtJ.js';
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useMemo, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { I as Icon } from '../Icon-
|
|
5
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
6
6
|
import 'lodash/castArray';
|
|
7
7
|
import 'lodash/camelCase';
|
|
8
8
|
import '../context/UIContext.js';
|
|
@@ -16,7 +16,7 @@ import 'lodash/upperFirst';
|
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
17
|
import '../Link-CeQuavin.js';
|
|
18
18
|
import '../tslib.es6-5FtW-kfi.js';
|
|
19
|
-
import '../Tooltip-
|
|
19
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
20
20
|
import '../Text-CG3xPG27.js';
|
|
21
21
|
import '../Title-BfSFPJtJ.js';
|
|
22
22
|
|
package/dist/components/Label.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as Label, l as labelConfig } from '../Label-
|
|
1
|
+
export { L as Label, l as labelConfig } from '../Label-D8DRdqad.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -14,5 +14,5 @@ import 'lodash/maxBy';
|
|
|
14
14
|
import 'lodash/upperFirst';
|
|
15
15
|
import '../hooks/styleAttributes.js';
|
|
16
16
|
import '../Text-CG3xPG27.js';
|
|
17
|
-
import '../Tooltip-
|
|
17
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
18
18
|
import '../Title-BfSFPJtJ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { I as Icon } from '../Icon-
|
|
3
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'react-inlinesvg';
|
|
6
6
|
import '../hooks/useDeviceTargetClass.js';
|
|
@@ -16,7 +16,7 @@ import 'lodash/upperFirst';
|
|
|
16
16
|
import '../hooks/styleAttributes.js';
|
|
17
17
|
import '../Link-CeQuavin.js';
|
|
18
18
|
import '../tslib.es6-5FtW-kfi.js';
|
|
19
|
-
import '../Tooltip-
|
|
19
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
20
20
|
import '../Text-CG3xPG27.js';
|
|
21
21
|
import '../Title-BfSFPJtJ.js';
|
|
22
22
|
|
|
@@ -5,7 +5,7 @@ import ceil from 'lodash/ceil';
|
|
|
5
5
|
import ReactPaginate from 'react-paginate';
|
|
6
6
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-D0dOP4NL.js';
|
|
8
|
-
import { I as Icon } from '../Icon-
|
|
8
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
9
9
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
10
10
|
import 'lodash/castArray';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -21,11 +21,17 @@ import '../Divider-U5UdY-ef.js';
|
|
|
21
21
|
import '../Link-CeQuavin.js';
|
|
22
22
|
import '../tslib.es6-5FtW-kfi.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
|
-
import '../Tooltip-
|
|
24
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
25
25
|
import '../Title-BfSFPJtJ.js';
|
|
26
26
|
|
|
27
|
+
var paginationConfig = {
|
|
28
|
+
appearance: undefined,
|
|
29
|
+
setAppearance: function (newComponent) {
|
|
30
|
+
paginationConfig.appearance = newComponent;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
27
33
|
function Pagination(props) {
|
|
28
|
-
var isPageCount = props.isPageCount, _a = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _a === void 0 ? false : _a, _b = props.allItemsCount, allItemsCount = _b === void 0 ? 0 : _b, className = props.className, marginPagesDisplayed = props.marginPagesDisplayed, nextLabel = props.nextLabel, _c = props.pageCountArray, pageCountArray = _c === void 0 ? [10, 20, 50, 100] : _c, pageCountDesc = props.pageCountDesc, pageCountDescTextColor = props.pageCountDescTextColor, pageCountDescTextSize = props.pageCountDescTextSize, pageCountDropdownAlignment = props.pageCountDropdownAlignment, pageCountDropdownElevation = props.pageCountDropdownElevation, pageCountDropdownFill = props.pageCountDropdownFill, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, pageCountDropdownItemDividerFill = props.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = props.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = props.pageCountDropdownItemFill, pageCountDropdownItemFillActive = props.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = props.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = props.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = props.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = props.pageCountDropdownItemLabelColor, _d = props.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActive = _d === void 0 ? '' : _d, pageCountDropdownItemLabelSize = props.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = props.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = props.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = props.pageCountDropdownItemSize, pageCountDropdownItemWidth = props.pageCountDropdownItemWidth, pageCountDropdownSet = props.pageCountDropdownSet, pageCountDropdownShape = props.pageCountDropdownShape, pageCountInputIcon = props.pageCountInputIcon, pageCountInputIconColor = props.pageCountInputIconColor, pageCountInputIconFillSize = props.pageCountInputIconFillSize, pageCountInputTextColor = props.pageCountInputTextColor, pageCountInputTextSize = props.pageCountInputTextSize, _e = props.pageNumber, pageNumber = _e === void 0 ? 0 : _e, pageRangeDisplayed = props.pageRangeDisplayed, _f = props.perPageCount, perPageCount = _f === void 0 ? 0 : _f, previousLabel = props.previousLabel, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
34
|
+
var isPageCount = props.isPageCount, _a = props.isPageCountDropdownReversed, isPageCountDropdownReversed = _a === void 0 ? false : _a, _b = props.allItemsCount, allItemsCount = _b === void 0 ? 0 : _b, appearance = props.appearance, className = props.className, marginPagesDisplayed = props.marginPagesDisplayed, nextLabel = props.nextLabel, _c = props.pageCountArray, pageCountArray = _c === void 0 ? [10, 20, 50, 100] : _c, pageCountDesc = props.pageCountDesc, pageCountDescTextColor = props.pageCountDescTextColor, pageCountDescTextSize = props.pageCountDescTextSize, pageCountDropdownAlignment = props.pageCountDropdownAlignment, pageCountDropdownElevation = props.pageCountDropdownElevation, pageCountDropdownFill = props.pageCountDropdownFill, pageCountDropdownItemDividerDirection = props.pageCountDropdownItemDividerDirection, pageCountDropdownItemDividerFill = props.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = props.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = props.pageCountDropdownItemFill, pageCountDropdownItemFillActive = props.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = props.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = props.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = props.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = props.pageCountDropdownItemLabelColor, _d = props.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActive = _d === void 0 ? '' : _d, pageCountDropdownItemLabelSize = props.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = props.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = props.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = props.pageCountDropdownItemSize, pageCountDropdownItemWidth = props.pageCountDropdownItemWidth, pageCountDropdownSet = props.pageCountDropdownSet, pageCountDropdownShape = props.pageCountDropdownShape, pageCountInputIcon = props.pageCountInputIcon, pageCountInputIconColor = props.pageCountInputIconColor, pageCountInputIconFillSize = props.pageCountInputIconFillSize, pageCountInputTextColor = props.pageCountInputTextColor, pageCountInputTextSize = props.pageCountInputTextSize, _e = props.pageNumber, pageNumber = _e === void 0 ? 0 : _e, pageRangeDisplayed = props.pageRangeDisplayed, _f = props.perPageCount, perPageCount = _f === void 0 ? 0 : _f, previousLabel = props.previousLabel, onChangePage = props.onChangePage, onChangePerPageCount = props.onChangePerPageCount,
|
|
29
35
|
/**
|
|
30
36
|
* @deprecated The method should not be used
|
|
31
37
|
*/
|
|
@@ -96,19 +102,45 @@ function Pagination(props) {
|
|
|
96
102
|
}
|
|
97
103
|
return 0;
|
|
98
104
|
}, [pageNumber]);
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
previousLabel: previousLabel, breakLinkClassName: "pagination__item-link",
|
|
102
|
-
// pages settings
|
|
103
|
-
forcePage: paginationPageIndex, containerClassName: clsx(className, 'pagination__container', justifyContentClass),
|
|
104
|
-
// page item
|
|
105
|
-
pageClassName: "pagination__item", nextLinkClassName: "pagination__item-link",
|
|
105
|
+
var appearanceConfig = appearance && paginationConfig.appearance && paginationConfig.appearance[appearance];
|
|
106
|
+
return (jsxs("div", { className: "pagination", children: [jsx(ReactPaginate, { activeClassName: "pagination__item_state_active cursor_type_default", activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break",
|
|
106
107
|
// break element
|
|
107
|
-
breakLabel: "...",
|
|
108
|
+
breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass), disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled",
|
|
109
|
+
// pages settings
|
|
110
|
+
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.marginPagesDisplayed), nextClassName: "pagination__item pagination__item_next",
|
|
108
111
|
// next button
|
|
109
|
-
nextLabel: nextLabel,
|
|
110
|
-
|
|
112
|
+
nextLabel: nextLabel, nextLinkClassName: "pagination__item-link",
|
|
113
|
+
// page item
|
|
114
|
+
pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageRangeDisplayed), previousClassName: "pagination__item pagination__item_previous",
|
|
115
|
+
// previous button
|
|
116
|
+
previousLabel: previousLabel, previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxs("div", { className: clsx(className, 'pagination__count', gapClass ||
|
|
117
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.gap) &&
|
|
118
|
+
"gap_".concat(appearanceConfig.gap).replace(/([A-Z])/g, '-$1').toLowerCase())), children: [jsx(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) }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass ||
|
|
119
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
120
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), fillHoverClass ||
|
|
121
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
122
|
+
"fill_hover_".concat(appearanceConfig.fillHover)
|
|
123
|
+
.replace(/([A-Z])/g, '-$1')
|
|
124
|
+
.toLowerCase())), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextSize), textColor: pageCountInputTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputTextColor), children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconFillSize), iconFill: pageCountInputIconColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountInputIconColor), SvgImage: pageCountInputIcon }), jsx(Dropdown, { fill: pageCountDropdownFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownFill), alignment: pageCountDropdownAlignment || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownAlignment), elevation: pageCountDropdownElevation || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownElevation), shape: pageCountDropdownShape || (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) {
|
|
125
|
+
return activeDropdownItem === item ? (jsx(DropdownItem, { width: pageCountDropdownItemWidth || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
126
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
127
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), fill: pageCountDropdownItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFill), fillHover: pageCountDropdownItemFillHover ||
|
|
128
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), dividerDirection: pageCountDropdownItemDividerDirection, label: item.toString(), labelTextWrap: pageCountDropdownItemLabelWrap, size: pageCountDropdownItemSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), dividerFill: pageCountDropdownItemDividerFill ||
|
|
129
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerFill), dividerSize: pageCountDropdownItemDividerSize ||
|
|
130
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), fillActive: pageCountDropdownItemFillActive ||
|
|
131
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActive), fillActiveHover: pageCountDropdownItemFillActiveHover ||
|
|
132
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillActiveHover), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
133
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
134
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), showDivider: index < pageCountArray.length - 1 &&
|
|
135
|
+
(pageCountDropdownItemShowDivider ||
|
|
136
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemShowDivider)), isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsx(DropdownItem, { width: pageCountDropdownItemWidth || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemWidth), labelTextColor: pageCountDropdownItemLabelColor ||
|
|
137
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColor), labelTextSize: pageCountDropdownItemLabelSize ||
|
|
138
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelSize), fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover ||
|
|
139
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemFillHover), dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, label: item.toString(), labelTextWrap: pageCountDropdownItemLabelWrap, size: pageCountDropdownItemSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemSize), dividerSize: pageCountDropdownItemDividerSize ||
|
|
140
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemDividerSize), labelTextAlign: pageCountDropdownItemLabelAlign ||
|
|
141
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelAlign), labelTextColorActive: pageCountDropdownItemLabelColorActive ||
|
|
142
|
+
(appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.pageCountDropdownItemLabelColorActive), showDivider: index < pageCountArray.length - 1 && pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
|
|
111
143
|
}) })] })] }))] }));
|
|
112
144
|
}
|
|
113
145
|
|
|
114
|
-
export { Pagination };
|
|
146
|
+
export { Pagination, paginationConfig };
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import SVG from 'react-inlinesvg';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles.js';
|
|
7
|
-
import { B as Button } from '../Button-
|
|
7
|
+
import { B as Button } from '../Button-AKN9f9n0.js';
|
|
8
8
|
import { G as Group } from '../Group-CVUfaHaS.js';
|
|
9
9
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
10
10
|
import { T as Title } from '../Title-BfSFPJtJ.js';
|
|
@@ -17,10 +17,10 @@ import 'react-responsive';
|
|
|
17
17
|
import 'lodash/maxBy';
|
|
18
18
|
import 'lodash/upperFirst';
|
|
19
19
|
import '../hooks/styleAttributes.js';
|
|
20
|
-
import '../Icon-
|
|
20
|
+
import '../Icon-Du1Nyea-.js';
|
|
21
21
|
import '../Link-CeQuavin.js';
|
|
22
22
|
import '../tslib.es6-5FtW-kfi.js';
|
|
23
|
-
import '../Tooltip-
|
|
23
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
24
24
|
import '../Loader-CJ8ZCdwy.js';
|
|
25
25
|
|
|
26
26
|
var responseConfig = {
|
|
@@ -3,7 +3,7 @@ import React, { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../Icon-
|
|
6
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
7
7
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
8
8
|
import { S as Scrollbar } from '../Scrollbar-CrGXCZ_F.js';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -18,7 +18,7 @@ import '../hooks/styleAttributes.js';
|
|
|
18
18
|
import 'react-inlinesvg';
|
|
19
19
|
import '../Link-CeQuavin.js';
|
|
20
20
|
import '../tslib.es6-5FtW-kfi.js';
|
|
21
|
-
import '../Tooltip-
|
|
21
|
+
import '../Tooltip-aaDRYNWY.js';
|
|
22
22
|
import '../Title-BfSFPJtJ.js';
|
|
23
23
|
import 'react-scrollbars-custom';
|
|
24
24
|
|