@itcase/ui 1.2.23 → 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-BLcVDStV.js → Button-AKN9f9n0.js} +1 -1
- package/dist/{Button-DawNa85U.js → Button-Bf9kDDqK.js} +1 -1
- package/dist/{Icon-BeHO7N79.js → Icon-B1V8M_j9.js} +2 -2
- package/dist/{Icon-DQWyj5EO.js → Icon-Du1Nyea-.js} +2 -2
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/ContextMenu.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/LanguageSelector.js +1 -1
- package/dist/cjs/components/Pagination.js +45 -12
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/SiteMenu.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +1 -1
- package/dist/components/Choice.js +1 -1
- package/dist/components/ContextMenu.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/LanguageSelector.js +1 -1
- package/dist/components/Pagination.js +45 -13
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/SiteMenu.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/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/package.json +8 -8
|
@@ -3,7 +3,7 @@ import React 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 { a as LinkWrapper } from './Link-CeQuavin.js';
|
|
8
8
|
import { L as Loader } from './Loader-CJ8ZCdwy.js';
|
|
9
9
|
import { T as Text } from './Text-CG3xPG27.js';
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClass = require('./cjs/hooks/useDeviceTargetClass.js');
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles.js');
|
|
8
|
-
var Icon = require('./Icon-
|
|
8
|
+
var Icon = require('./Icon-B1V8M_j9.js');
|
|
9
9
|
var Link = require('./Link-CqWzwh8V.js');
|
|
10
10
|
var Loader = require('./Loader-fA11tUEJ.js');
|
|
11
11
|
var Text = require('./Text-_YhyTsQ1.js');
|
|
@@ -45,7 +45,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
45
45
|
}
|
|
46
46
|
return null;
|
|
47
47
|
}, [SvgImage, width, height, imageSrc]);
|
|
48
|
-
|
|
48
|
+
useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
49
49
|
prefix: 'cursor_',
|
|
50
50
|
propsKey: 'cursor',
|
|
51
51
|
});
|
|
@@ -107,7 +107,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
107
107
|
});
|
|
108
108
|
// @ts-expect-error
|
|
109
109
|
var iconStyles = useStyles.useStyles(props).styles;
|
|
110
|
-
return (jsxRuntime.
|
|
110
|
+
return (jsxRuntime.jsxs("div", { className: clsx(className, 'icon', fillClass, fillHoverClass, fillSizeClass, fillDisabledClass, iconFillClass, iconFillHoverClass, iconFillDisabledClass, shapeClass, borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, Badge && 'icon_type_with-badge'), ref: ref, "data-tour": dataTour, id: id, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxRuntime.jsxs(Link.LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass), DefaultComponent: "div", href: link || href, rel: linkRel, target: linkTarget, children: [ImageComponent, Badge, showTooltip && (jsxRuntime.jsx(Tooltip.Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass), appearance: tooltipAppearance, text: tooltipText, textSize: tooltipTextSize, title: tooltipTitle, titleSize: tooltipTitleSize }))] }), after] }));
|
|
111
111
|
});
|
|
112
112
|
var removeFillStroke = function (code) {
|
|
113
113
|
return code.replace(/fill=".*?"/g, 'fill=""').replace(/stroke=".*?"/g, 'stroke=""');
|
|
@@ -43,7 +43,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
43
43
|
}
|
|
44
44
|
return null;
|
|
45
45
|
}, [SvgImage, width, height, imageSrc]);
|
|
46
|
-
|
|
46
|
+
useDeviceTargetClass(props, {
|
|
47
47
|
prefix: 'cursor_',
|
|
48
48
|
propsKey: 'cursor',
|
|
49
49
|
});
|
|
@@ -105,7 +105,7 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
105
105
|
});
|
|
106
106
|
// @ts-expect-error
|
|
107
107
|
var iconStyles = useStyles(props).styles;
|
|
108
|
-
return (
|
|
108
|
+
return (jsxs("div", { className: clsx(className, 'icon', fillClass, fillHoverClass, fillSizeClass, fillDisabledClass, iconFillClass, iconFillHoverClass, iconFillDisabledClass, shapeClass, borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, Badge && 'icon_type_with-badge'), ref: ref, "data-tour": dataTour, id: id, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxs(LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass), DefaultComponent: "div", href: link || href, rel: linkRel, target: linkTarget, children: [ImageComponent, Badge, showTooltip && (jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass), appearance: tooltipAppearance, text: tooltipText, textSize: tooltipTextSize, title: tooltipTitle, titleSize: tooltipTitleSize }))] }), after] }));
|
|
109
109
|
});
|
|
110
110
|
var removeFillStroke = function (code) {
|
|
111
111
|
return code.replace(/fill=".*?"/g, 'fill=""').replace(/stroke=".*?"/g, 'stroke=""');
|
|
@@ -8,7 +8,7 @@ var castArray = require('lodash/castArray');
|
|
|
8
8
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles.js');
|
|
10
10
|
var Divider = require('../../Divider-BjB5MD6u.js');
|
|
11
|
-
var Icon = require('../../Icon-
|
|
11
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
12
12
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
13
13
|
require('lodash/camelCase');
|
|
14
14
|
require('../context/UIContext.js');
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
7
|
-
var Icon = require('../../Icon-
|
|
7
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
8
8
|
var Image = require('../../Image-DrUlRMHa.js');
|
|
9
9
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
10
10
|
require('lodash/castArray');
|
|
@@ -7,7 +7,7 @@ var clsx = require('clsx');
|
|
|
7
7
|
var camelCase = require('lodash/camelCase');
|
|
8
8
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles.js');
|
|
10
|
-
var Icon = require('../../Icon-
|
|
10
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
11
11
|
var Link = require('../../Link-CqWzwh8V.js');
|
|
12
12
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
13
13
|
require('lodash/castArray');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Button = require('../../Button-
|
|
3
|
+
var Button = require('../../Button-Bf9kDDqK.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('clsx');
|
|
@@ -15,7 +15,7 @@ require('../hooks/useStyles.js');
|
|
|
15
15
|
require('lodash/maxBy');
|
|
16
16
|
require('lodash/upperFirst');
|
|
17
17
|
require('../hooks/styleAttributes.js');
|
|
18
|
-
require('../../Icon-
|
|
18
|
+
require('../../Icon-B1V8M_j9.js');
|
|
19
19
|
require('react-inlinesvg');
|
|
20
20
|
require('../../Link-CqWzwh8V.js');
|
|
21
21
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var clsx = require('clsx');
|
|
5
5
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
6
6
|
var useStyles = require('../hooks/useStyles.js');
|
|
7
|
-
var Icon = require('../../Icon-
|
|
7
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
8
8
|
var Label = require('../../Label-B0O9q0E4.js');
|
|
9
9
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
10
10
|
require('react');
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
7
|
-
var Icon = require('../../Icon-
|
|
7
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
8
8
|
var Loader = require('../../Loader-fA11tUEJ.js');
|
|
9
9
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
10
10
|
require('lodash/castArray');
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var clsx = require('clsx');
|
|
5
5
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
6
6
|
var Divider = require('../../Divider-BjB5MD6u.js');
|
|
7
|
-
var Icon = require('../../Icon-
|
|
7
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
8
8
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
9
9
|
require('react');
|
|
10
10
|
require('lodash/castArray');
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var Cookies = require('js-cookie');
|
|
7
7
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
8
|
-
var Button = require('../../Button-
|
|
8
|
+
var Button = require('../../Button-Bf9kDDqK.js');
|
|
9
9
|
var Group = require('../../Group-B2oTJg0t.js');
|
|
10
10
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
11
11
|
require('lodash/castArray');
|
|
@@ -18,7 +18,7 @@ require('../hooks/useStyles.js');
|
|
|
18
18
|
require('lodash/maxBy');
|
|
19
19
|
require('lodash/upperFirst');
|
|
20
20
|
require('../hooks/styleAttributes.js');
|
|
21
|
-
require('../../Icon-
|
|
21
|
+
require('../../Icon-B1V8M_j9.js');
|
|
22
22
|
require('react-inlinesvg');
|
|
23
23
|
require('../../Link-CqWzwh8V.js');
|
|
24
24
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
@@ -7,8 +7,8 @@ var clsx = require('clsx');
|
|
|
7
7
|
var DatePicker = require('react-datepicker');
|
|
8
8
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles.js');
|
|
10
|
-
var Button = require('../../Button-
|
|
11
|
-
var Icon = require('../../Icon-
|
|
10
|
+
var Button = require('../../Button-Bf9kDDqK.js');
|
|
11
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
12
12
|
var Input = require('../../Input-BSpFMsrf.js');
|
|
13
13
|
var Label = require('../../Label-B0O9q0E4.js');
|
|
14
14
|
var Text = require('../../Text-_YhyTsQ1.js');
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
7
|
-
var Icon = require('../../Icon-
|
|
7
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
8
8
|
require('lodash/castArray');
|
|
9
9
|
require('lodash/camelCase');
|
|
10
10
|
require('../context/UIContext.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var clsx = require('clsx');
|
|
5
|
-
var Icon = require('../../Icon-
|
|
5
|
+
var Icon = require('../../Icon-B1V8M_j9.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('react-inlinesvg');
|
|
8
8
|
require('../hooks/useDeviceTargetClass.js');
|
|
@@ -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');
|
|
@@ -26,8 +26,14 @@ require('react-inlinesvg');
|
|
|
26
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,7 +19,7 @@ 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
25
|
require('../../Tooltip-xGmgUzGr.js');
|
|
@@ -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');
|
|
@@ -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');
|
|
@@ -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');
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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,7 +13,7 @@ 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';
|
package/dist/components/Cell.js
CHANGED
|
@@ -2,7 +2,7 @@ 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-
|
|
5
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
6
6
|
import { L as Label } from '../Label-D8DRdqad.js';
|
|
7
7
|
import { T as Text } from '../Text-CG3xPG27.js';
|
|
8
8
|
import 'react';
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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,7 +16,7 @@ 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';
|
|
@@ -5,8 +5,8 @@ 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
11
|
import { L as Label } from '../Label-D8DRdqad.js';
|
|
12
12
|
import { T as Text } from '../Text-CG3xPG27.js';
|
package/dist/components/Icon.js
CHANGED
|
@@ -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';
|
|
@@ -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';
|
|
@@ -24,8 +24,14 @@ import 'react-inlinesvg';
|
|
|
24
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,7 +17,7 @@ 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
23
|
import '../Tooltip-aaDRYNWY.js';
|
|
@@ -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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import Select, { components } from 'react-select';
|
|
4
|
-
import { I as Icon } from '../Icon-
|
|
4
|
+
import { I as Icon } from '../Icon-Du1Nyea-.js';
|
|
5
5
|
import React, { useMemo, useRef, useCallback, useEffect } from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
@@ -3,7 +3,7 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useSiteMenuContext } from '../context/UIContext.js';
|
|
5
5
|
import { useDeviceTargetClass } from '../hooks/useDeviceTargetClass.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 'prop-types';
|
|
9
9
|
import '../hooks/useMediaQueries.js';
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
@define-mixin font $fontWeight, $minFontSize, $maxFontSize, $minLetterSpacing, $minLineHeight,
|
|
2
2
|
$maxLineHeight, $maxLetterSpacing, $fontFamily {
|
|
3
|
-
font-size:
|
|
4
|
-
|
|
3
|
+
font-size: fluid(
|
|
4
|
+
$minFontSize,
|
|
5
|
+
$maxFontSize,
|
|
6
|
+
var(--typography-min-viewport, 360px),
|
|
7
|
+
var(--typography-max-viewport, 1920px)
|
|
8
|
+
);
|
|
5
9
|
font-weight: $fontWeight;
|
|
10
|
+
line-height: fluid(
|
|
11
|
+
$minLineHeight,
|
|
12
|
+
$maxLineHeight,
|
|
13
|
+
var(--typography-min-viewport, 360px),
|
|
14
|
+
var(--typography-max-viewport, 1920px)
|
|
15
|
+
);
|
|
16
|
+
letter-spacing: fluid(
|
|
17
|
+
$minLetterSpacing,
|
|
18
|
+
$maxLetterSpacing,
|
|
19
|
+
var(--typography-min-viewport, 360px),
|
|
20
|
+
var(--typography-max-viewport, 1920px)
|
|
21
|
+
);
|
|
6
22
|
font-family: $fontFamily;
|
|
7
|
-
line-height: responsive $minLineHeight $maxLineHeight;
|
|
8
|
-
line-height-range: var(--min-max);
|
|
9
|
-
letter-spacing: responsive $minLetterSpacing $maxLetterSpacing;
|
|
10
|
-
letter-spacing-range: var(--min-max);
|
|
11
|
-
@media (--desktop-super-huge) {
|
|
12
|
-
font-size: $maxFontSize;
|
|
13
|
-
line-height: $maxLineHeight;
|
|
14
|
-
letter-spacing: $maxLetterSpacing;
|
|
15
|
-
}
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
@define-mixin font-fixed $weight, $size, $line, $family {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--desktop-large: 80em; /* 1280px */
|
|
13
13
|
--desktop-extra-large: 90em; /* 1441px */
|
|
14
14
|
--desktop-super-extra-large: 120em; /* 1920px */
|
|
15
|
-
--desktop-huge: 160em; /*
|
|
15
|
+
--desktop-huge: 160em; /* 2560px */
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@custom-media --warning (width <= 15em);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { iPaginationProps } from './Pagination.interface';
|
|
1
|
+
import { IPaginationConfig, iPaginationProps } from './Pagination.interface';
|
|
2
|
+
declare const paginationConfig: IPaginationConfig;
|
|
2
3
|
declare function Pagination(props: iPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Pagination };
|
|
4
|
+
export { Pagination, paginationConfig };
|
|
@@ -1,45 +1,62 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
3
|
import { alignmentPropsType, elevationPropsType, iconFillSizePropsType, tDirectionProps, tFillHoverProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorActiveProps, tTextColorProps, tTextSizeProps, tTextWrapProps } from '../../types';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
+
export interface IPaginationThemeColor {
|
|
6
|
+
fill?: tFillProps;
|
|
7
|
+
fillHover?: tFillHoverProps;
|
|
8
|
+
gap?: string;
|
|
7
9
|
marginPagesDisplayed?: number;
|
|
8
|
-
nextLabel?: ReactNode;
|
|
9
|
-
pageCountArray?: number[];
|
|
10
10
|
pageCountDesc?: string;
|
|
11
|
-
pageCountDropdownItemLabelAlign?: tTextAlignProps;
|
|
12
|
-
pageCountDropdownItemWidth?: string;
|
|
13
11
|
pageCountDescTextColor?: tTextColorProps;
|
|
14
12
|
pageCountDescTextSize?: tTextSizeProps;
|
|
15
13
|
pageCountDropdownAlignment?: alignmentPropsType;
|
|
16
14
|
pageCountDropdownElevation?: elevationPropsType;
|
|
17
15
|
pageCountDropdownFill?: tFillProps;
|
|
18
|
-
pageCountDropdownItemDividerDirection?: tDirectionProps;
|
|
19
16
|
pageCountDropdownItemDividerFill?: tFillProps;
|
|
20
17
|
pageCountDropdownItemDividerSize?: tSizeProps;
|
|
21
18
|
pageCountDropdownItemFill?: tFillProps;
|
|
22
19
|
pageCountDropdownItemFillActive?: tFillProps;
|
|
23
20
|
pageCountDropdownItemFillActiveHover?: tFillHoverProps;
|
|
24
21
|
pageCountDropdownItemFillHover?: tFillHoverProps;
|
|
22
|
+
pageCountDropdownItemLabelAlign?: tTextAlignProps;
|
|
25
23
|
pageCountDropdownItemLabelColor?: tTextColorProps;
|
|
26
24
|
pageCountDropdownItemLabelColorActive?: tTextColorActiveProps;
|
|
27
25
|
pageCountDropdownItemLabelSize?: tTextSizeProps;
|
|
28
|
-
pageCountDropdownItemLabelWrap?: tTextWrapProps;
|
|
29
|
-
pageCountDropdownItemSize?: tSizeProps;
|
|
30
26
|
pageCountDropdownItemShowDivider?: boolean;
|
|
27
|
+
pageCountDropdownItemSize?: tSizeProps;
|
|
28
|
+
pageCountDropdownItemWidth?: string;
|
|
31
29
|
pageCountDropdownSet?: string;
|
|
32
30
|
pageCountDropdownShape?: tShapeProps;
|
|
33
|
-
pageCountInputIcon?: ReactNode;
|
|
34
31
|
pageCountInputIconColor?: tItemColorProps;
|
|
35
32
|
pageCountInputIconFillSize?: iconFillSizePropsType;
|
|
36
33
|
pageCountInputTextColor?: tTextColorProps;
|
|
37
34
|
pageCountInputTextSize?: tTextSizeProps;
|
|
38
|
-
|
|
35
|
+
pageRangeDisplayed?: number;
|
|
36
|
+
isPageCount?: boolean;
|
|
37
|
+
}
|
|
38
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
39
|
+
export type paginationAppearanceType = {
|
|
40
|
+
[key in appearanceKeysType]?: IPaginationThemeColor;
|
|
41
|
+
};
|
|
42
|
+
export interface IPaginationConfig {
|
|
43
|
+
appearance: paginationAppearanceType | undefined;
|
|
44
|
+
setAppearance: (newComponent: paginationAppearanceType) => void;
|
|
45
|
+
}
|
|
46
|
+
interface iPaginationProps extends IPaginationThemeColor, iStyleAttributes {
|
|
47
|
+
allItemsCount?: number;
|
|
48
|
+
appearance?: appearanceKeysType;
|
|
49
|
+
className?: string;
|
|
50
|
+
marginPagesDisplayed?: number;
|
|
51
|
+
nextLabel?: ReactNode;
|
|
52
|
+
pageCountArray?: number[];
|
|
53
|
+
pageCountDropdownItemDividerDirection?: tDirectionProps;
|
|
54
|
+
pageCountDropdownItemLabelWrap?: tTextWrapProps;
|
|
55
|
+
pageCountInputIcon?: ReactNode;
|
|
56
|
+
pageNumber: string | string;
|
|
39
57
|
pageRangeDisplayed?: number;
|
|
40
58
|
perPageCount?: number;
|
|
41
59
|
previousLabel?: ReactNode;
|
|
42
|
-
isPageCount?: boolean;
|
|
43
60
|
isPageCountDropdownReversed?: boolean;
|
|
44
61
|
onChangePage?: () => void;
|
|
45
62
|
onChangePerPageCount?: (perPageCount: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Pagination } from './Pagination';
|
|
1
|
+
export { Pagination, paginationConfig } from './Pagination';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.24",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
"react-responsive": "^10.0.0",
|
|
114
114
|
"react-scroll": "^1.9.0",
|
|
115
115
|
"react-scrollbars-custom": "^4.1.1",
|
|
116
|
-
"react-select": "^5.8.
|
|
116
|
+
"react-select": "^5.8.3",
|
|
117
117
|
"swiper": "^11.1.14",
|
|
118
|
-
"uuid": "^11.0.
|
|
118
|
+
"uuid": "^11.0.3"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@babel/core": "^7.26.0",
|
|
@@ -126,7 +126,8 @@
|
|
|
126
126
|
"@chromatic-com/storybook": "^3.2.2",
|
|
127
127
|
"@commitlint/cli": "^19.5.0",
|
|
128
128
|
"@commitlint/config-conventional": "^19.5.0",
|
|
129
|
-
"@itcase/lint": "^1.0.
|
|
129
|
+
"@itcase/lint": "^1.0.16",
|
|
130
|
+
"@lehoczky/postcss-fluid": "^1.0.3",
|
|
130
131
|
"@rollup/plugin-babel": "^6.0.4",
|
|
131
132
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
132
133
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
"husky": "^9.1.6",
|
|
165
166
|
"lint-staged": "^15.2.10",
|
|
166
167
|
"npm": "^10.9.0",
|
|
167
|
-
"postcss": "^8.4.
|
|
168
|
+
"postcss": "^8.4.49",
|
|
168
169
|
"postcss-aspect-ratio-polyfill": "^2.0.0",
|
|
169
170
|
"postcss-cli": "^11.0.0",
|
|
170
171
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
@@ -182,12 +183,11 @@
|
|
|
182
183
|
"postcss-nested-ancestors": "^3.0.0",
|
|
183
184
|
"postcss-normalize": "^13.0.1",
|
|
184
185
|
"postcss-prepend-imports": "^1.0.1",
|
|
185
|
-
"postcss-preset-env": "^10.0
|
|
186
|
+
"postcss-preset-env": "^10.1.0",
|
|
186
187
|
"postcss-pxtorem": "^6.1.0",
|
|
187
|
-
"postcss-responsive-type": "github:ITCase/postcss-responsive-type",
|
|
188
188
|
"postcss-sort-media-queries": "^5.2.0",
|
|
189
189
|
"prettier": "^3.3.3",
|
|
190
|
-
"rollup": "^4.
|
|
190
|
+
"rollup": "^4.25.0",
|
|
191
191
|
"rollup-plugin-copy": "^3.5.0",
|
|
192
192
|
"rollup-plugin-dts": "^6.1.1",
|
|
193
193
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|