@alfalab/core-components-pagination 1.2.2 → 1.2.5
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/CHANGELOG.md +8 -8
- package/dist/Component.js +3 -2
- package/dist/components/default-view/index.css +2 -2
- package/dist/components/default-view/index.js +1 -1
- package/dist/components/per-page-view/index.css +2 -2
- package/dist/components/per-page-view/index.js +1 -1
- package/dist/components/tag/index.css +8 -8
- package/dist/components/tag/index.js +1 -1
- package/dist/cssm/Component.js +2 -1
- package/dist/cssm/index.module.css +2 -2
- package/dist/esm/Component.js +3 -2
- package/dist/esm/components/default-view/index.css +2 -2
- package/dist/esm/components/default-view/index.js +1 -1
- package/dist/esm/components/per-page-view/index.css +2 -2
- package/dist/esm/components/per-page-view/index.js +1 -1
- package/dist/esm/components/tag/index.css +8 -8
- package/dist/esm/components/tag/index.js +1 -1
- package/dist/esm/index.css +4 -4
- package/dist/index.css +4 -4
- package/dist/modern/Component.js +3 -2
- package/dist/modern/components/default-view/index.css +2 -2
- package/dist/modern/components/default-view/index.js +1 -1
- package/dist/modern/components/per-page-view/index.css +2 -2
- package/dist/modern/components/per-page-view/index.js +1 -1
- package/dist/modern/components/tag/index.css +8 -8
- package/dist/modern/components/tag/index.js +1 -1
- package/dist/modern/index.css +4 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [1.2.1](https://github.com/
|
|
6
|
+
## [1.2.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-pagination@1.2.0...@alfalab/core-components-pagination@1.2.1) (2022-03-28)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @alfalab/core-components-pagination
|
|
9
9
|
|
|
@@ -11,18 +11,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
# [1.2.0](https://github.com/
|
|
14
|
+
# [1.2.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-pagination@1.1.4...@alfalab/core-components-pagination@1.2.0) (2022-03-24)
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
### Features
|
|
18
18
|
|
|
19
|
-
* Исправить импорты в сторях. ([#998](https://github.com/
|
|
19
|
+
* Исправить импорты в сторях. ([#998](https://github.com/core-ds/core-components/issues/998)) ([e6a654a](https://github.com/core-ds/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
## [1.1.4](https://github.com/
|
|
25
|
+
## [1.1.4](https://github.com/core-ds/core-components/compare/@alfalab/core-components-pagination@1.1.3...@alfalab/core-components-pagination@1.1.4) (2022-02-15)
|
|
26
26
|
|
|
27
27
|
**Note:** Version bump only for package @alfalab/core-components-pagination
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
## [1.1.3](https://github.com/
|
|
33
|
+
## [1.1.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-pagination@1.1.2...@alfalab/core-components-pagination@1.1.3) (2022-02-09)
|
|
34
34
|
|
|
35
35
|
**Note:** Version bump only for package @alfalab/core-components-pagination
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
## [1.1.2](https://github.com/
|
|
41
|
+
## [1.1.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-pagination@1.1.1...@alfalab/core-components-pagination@1.1.2) (2022-02-03)
|
|
42
42
|
|
|
43
43
|
**Note:** Version bump only for package @alfalab/core-components-pagination
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
## [1.1.1](https://github.com/
|
|
49
|
+
## [1.1.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-pagination@1.1.0...@alfalab/core-components-pagination@1.1.1) (2022-02-02)
|
|
50
50
|
|
|
51
51
|
**Note:** Version bump only for package @alfalab/core-components-pagination
|
|
52
52
|
|
|
@@ -59,4 +59,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
59
59
|
|
|
60
60
|
### Features
|
|
61
61
|
|
|
62
|
-
* **table:** компоненты для построения таблиц ([#911](https://github.com/
|
|
62
|
+
* **table:** компоненты для построения таблиц ([#911](https://github.com/core-ds/core-components/issues/911)) ([4ac648a](https://github.com/core-ds/core-components/commit/4ac648abd4de08bf68babc2f122f432d5b14080e))
|
package/dist/Component.js
CHANGED
|
@@ -16,7 +16,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
16
16
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
17
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
18
18
|
|
|
19
|
-
var styles = {"component":"
|
|
19
|
+
var styles = {"component":"pagination__component_1w9e0","defaultView":"pagination__defaultView_1w9e0"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var Pagination = function (_a) {
|
|
@@ -32,7 +32,8 @@ var Pagination = function (_a) {
|
|
|
32
32
|
};
|
|
33
33
|
var shouldRenderPrevArrow = view === 'per-page' || !hideArrows || currentPageIndex > 0;
|
|
34
34
|
var shouldRenderNextArrow = view === 'per-page' || !hideArrows || currentPageIndex < pagesCount - 1;
|
|
35
|
-
|
|
35
|
+
var viewClassName = view === 'default' ? 'defaultView' : view;
|
|
36
|
+
return (React__default['default'].createElement("div", { className: cn__default['default'](styles.component, className, styles[viewClassName]), "data-test-id": dataTestId },
|
|
36
37
|
shouldRenderPrevArrow && (React__default['default'].createElement(components_tag_index.Tag, { className: styles.arrow, disabled: currentPageIndex <= 0, onClick: handlePrevPageClick, rightAddons: React__default['default'].createElement(ChevronBackMIcon.ChevronBackMIcon, { width: 16, height: 16 }) })),
|
|
37
38
|
view === 'default' && (React__default['default'].createElement(components_defaultView_index.DefaultView, { activePadding: activePadding, sidePadding: sidePadding, currentPageIndex: currentPageIndex, pagesCount: pagesCount, onPageChange: handlePageClick })),
|
|
38
39
|
view === 'per-page' && (React__default['default'].createElement(components_perPageView_index.PerPageView, { currentPageIndex: currentPageIndex, pagesCount: pagesCount })),
|
|
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
|
-
var styles = {"dots":"
|
|
14
|
+
var styles = {"dots":"pagination__dots_a66q0"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var DefaultView = function (_a) {
|
|
@@ -8,7 +8,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
10
|
|
|
11
|
-
var styles = {"component":"
|
|
11
|
+
var styles = {"component":"pagination__component_1ot3q"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var PerPageView = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sbvzq */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-neutral: #dbdee1;
|
|
4
4
|
--color-light-bg-secondary-inverted: #233549;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz {
|
|
22
22
|
color: var(--color-light-text-secondary);
|
|
23
23
|
border-radius: var(--border-radius-m);
|
|
24
24
|
border: none;
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
height: 32px;
|
|
30
30
|
padding: 0
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:disabled:not(.pagination__checked_fcwqz) {
|
|
33
33
|
opacity: 0.3;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:hover:not(:disabled) {
|
|
36
36
|
background-color: var(--color-light-bg-tertiary);
|
|
37
37
|
color: var(--color-light-text-primary);
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:active:not(:disabled) {
|
|
40
40
|
background-color: var(--color-light-bg-neutral);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz {
|
|
43
43
|
cursor: default;
|
|
44
44
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
45
45
|
color: var(--color-light-text-primary-inverted);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz:hover:not(:disabled) {
|
|
48
48
|
color: var(--color-light-text-primary-inverted);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz:active:not(:disabled) {
|
|
51
51
|
color: var(--color-light-text-primary);
|
|
52
52
|
}
|
|
@@ -50,7 +50,7 @@ function __rest(s, e) {
|
|
|
50
50
|
return t;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
var styles = {"tag":"
|
|
53
|
+
var styles = {"tag":"pagination__tag_fcwqz","checked":"pagination__checked_fcwqz"};
|
|
54
54
|
require('./index.css')
|
|
55
55
|
|
|
56
56
|
var Tag = function (_a) {
|
package/dist/cssm/Component.js
CHANGED
|
@@ -34,7 +34,8 @@ var Pagination = function (_a) {
|
|
|
34
34
|
};
|
|
35
35
|
var shouldRenderPrevArrow = view === 'per-page' || !hideArrows || currentPageIndex > 0;
|
|
36
36
|
var shouldRenderNextArrow = view === 'per-page' || !hideArrows || currentPageIndex < pagesCount - 1;
|
|
37
|
-
|
|
37
|
+
var viewClassName = view === 'default' ? 'defaultView' : view;
|
|
38
|
+
return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].component, className, styles__default['default'][viewClassName]), "data-test-id": dataTestId },
|
|
38
39
|
shouldRenderPrevArrow && (React__default['default'].createElement(components_tag_index.Tag, { className: styles__default['default'].arrow, disabled: currentPageIndex <= 0, onClick: handlePrevPageClick, rightAddons: React__default['default'].createElement(ChevronBackMIcon.ChevronBackMIcon, { width: 16, height: 16 }) })),
|
|
39
40
|
view === 'default' && (React__default['default'].createElement(components_defaultView_index.DefaultView, { activePadding: activePadding, sidePadding: sidePadding, currentPageIndex: currentPageIndex, pagesCount: pagesCount, onPageChange: handlePageClick })),
|
|
40
41
|
view === 'per-page' && (React__default['default'].createElement(components_perPageView_index.PerPageView, { currentPageIndex: currentPageIndex, pagesCount: pagesCount })),
|
package/dist/esm/Component.js
CHANGED
|
@@ -7,7 +7,7 @@ import '@alfalab/core-components-tag/dist/esm';
|
|
|
7
7
|
import { DefaultView } from './components/default-view/index.js';
|
|
8
8
|
import { PerPageView } from './components/per-page-view/index.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"pagination__component_1w9e0","defaultView":"pagination__defaultView_1w9e0"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var Pagination = function (_a) {
|
|
@@ -23,7 +23,8 @@ var Pagination = function (_a) {
|
|
|
23
23
|
};
|
|
24
24
|
var shouldRenderPrevArrow = view === 'per-page' || !hideArrows || currentPageIndex > 0;
|
|
25
25
|
var shouldRenderNextArrow = view === 'per-page' || !hideArrows || currentPageIndex < pagesCount - 1;
|
|
26
|
-
|
|
26
|
+
var viewClassName = view === 'default' ? 'defaultView' : view;
|
|
27
|
+
return (React.createElement("div", { className: cn(styles.component, className, styles[viewClassName]), "data-test-id": dataTestId },
|
|
27
28
|
shouldRenderPrevArrow && (React.createElement(Tag, { className: styles.arrow, disabled: currentPageIndex <= 0, onClick: handlePrevPageClick, rightAddons: React.createElement(ChevronBackMIcon, { width: 16, height: 16 }) })),
|
|
28
29
|
view === 'default' && (React.createElement(DefaultView, { activePadding: activePadding, sidePadding: sidePadding, currentPageIndex: currentPageIndex, pagesCount: pagesCount, onPageChange: handlePageClick })),
|
|
29
30
|
view === 'per-page' && (React.createElement(PerPageView, { currentPageIndex: currentPageIndex, pagesCount: pagesCount })),
|
|
@@ -3,7 +3,7 @@ import 'classnames';
|
|
|
3
3
|
import { Tag } from '../tag/index.js';
|
|
4
4
|
import '@alfalab/core-components-tag/dist/esm';
|
|
5
5
|
|
|
6
|
-
var styles = {"dots":"
|
|
6
|
+
var styles = {"dots":"pagination__dots_a66q0"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var DefaultView = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sbvzq */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-neutral: #dbdee1;
|
|
4
4
|
--color-light-bg-secondary-inverted: #233549;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz {
|
|
22
22
|
color: var(--color-light-text-secondary);
|
|
23
23
|
border-radius: var(--border-radius-m);
|
|
24
24
|
border: none;
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
height: 32px;
|
|
30
30
|
padding: 0
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:disabled:not(.pagination__checked_fcwqz) {
|
|
33
33
|
opacity: 0.3;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:hover:not(:disabled) {
|
|
36
36
|
background-color: var(--color-light-bg-tertiary);
|
|
37
37
|
color: var(--color-light-text-primary);
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:active:not(:disabled) {
|
|
40
40
|
background-color: var(--color-light-bg-neutral);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz {
|
|
43
43
|
cursor: default;
|
|
44
44
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
45
45
|
color: var(--color-light-text-primary-inverted);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz:hover:not(:disabled) {
|
|
48
48
|
color: var(--color-light-text-primary-inverted);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz:active:not(:disabled) {
|
|
51
51
|
color: var(--color-light-text-primary);
|
|
52
52
|
}
|
|
@@ -41,7 +41,7 @@ function __rest(s, e) {
|
|
|
41
41
|
return t;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
var styles = {"tag":"
|
|
44
|
+
var styles = {"tag":"pagination__tag_fcwqz","checked":"pagination__checked_fcwqz"};
|
|
45
45
|
require('./index.css')
|
|
46
46
|
|
|
47
47
|
var Tag = function (_a) {
|
package/dist/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nvux */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--gap-xs: 8px;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.pagination__component_1w9e0 {
|
|
17
17
|
font-size: 14px;
|
|
18
18
|
line-height: 20px;
|
|
19
19
|
font-weight: 400;
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
font-feature-settings: "tnum";
|
|
25
25
|
font-variant-numeric: tabular-nums;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.pagination__defaultView_1w9e0 > * {
|
|
28
28
|
margin-right: var(--gap-xs)
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.pagination__defaultView_1w9e0 > *:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
32
|
}
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nvux */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--gap-xs: 8px;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.pagination__component_1w9e0 {
|
|
17
17
|
font-size: 14px;
|
|
18
18
|
line-height: 20px;
|
|
19
19
|
font-weight: 400;
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
font-feature-settings: "tnum";
|
|
25
25
|
font-variant-numeric: tabular-nums;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.pagination__defaultView_1w9e0 > * {
|
|
28
28
|
margin-right: var(--gap-xs)
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.pagination__defaultView_1w9e0 > *:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
32
|
}
|
package/dist/modern/Component.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Tag } from './components/tag/index.js';
|
|
|
7
7
|
import { DefaultView } from './components/default-view/index.js';
|
|
8
8
|
import { PerPageView } from './components/per-page-view/index.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"pagination__component_1w9e0","defaultView":"pagination__defaultView_1w9e0"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
const Pagination = ({ currentPageIndex = 0, pagesCount, className, sidePadding = 1, activePadding = 2, hideArrows = true, view = 'default', onPageChange = () => null, dataTestId, }) => {
|
|
@@ -22,7 +22,8 @@ const Pagination = ({ currentPageIndex = 0, pagesCount, className, sidePadding =
|
|
|
22
22
|
};
|
|
23
23
|
const shouldRenderPrevArrow = view === 'per-page' || !hideArrows || currentPageIndex > 0;
|
|
24
24
|
const shouldRenderNextArrow = view === 'per-page' || !hideArrows || currentPageIndex < pagesCount - 1;
|
|
25
|
-
|
|
25
|
+
const viewClassName = view === 'default' ? 'defaultView' : view;
|
|
26
|
+
return (React.createElement("div", { className: cn(styles.component, className, styles[viewClassName]), "data-test-id": dataTestId },
|
|
26
27
|
shouldRenderPrevArrow && (React.createElement(Tag, { className: styles.arrow, disabled: currentPageIndex <= 0, onClick: handlePrevPageClick, rightAddons: React.createElement(ChevronBackMIcon, { width: 16, height: 16 }) })),
|
|
27
28
|
view === 'default' && (React.createElement(DefaultView, { activePadding: activePadding, sidePadding: sidePadding, currentPageIndex: currentPageIndex, pagesCount: pagesCount, onPageChange: handlePageClick })),
|
|
28
29
|
view === 'per-page' && (React.createElement(PerPageView, { currentPageIndex: currentPageIndex, pagesCount: pagesCount })),
|
|
@@ -3,7 +3,7 @@ import 'classnames';
|
|
|
3
3
|
import '@alfalab/core-components-tag/dist/modern';
|
|
4
4
|
import { Tag } from '../tag/index.js';
|
|
5
5
|
|
|
6
|
-
var styles = {"dots":"
|
|
6
|
+
var styles = {"dots":"pagination__dots_a66q0"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const DefaultView = ({ sidePadding = 2, activePadding = 1, pagesCount, currentPageIndex, onPageChange = () => null, }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
var styles = {"component":"
|
|
3
|
+
var styles = {"component":"pagination__component_1ot3q"};
|
|
4
4
|
require('./index.css')
|
|
5
5
|
|
|
6
6
|
const PerPageView = ({ pagesCount, currentPageIndex }) => (React.createElement("span", { className: styles.component },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sbvzq */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-neutral: #dbdee1;
|
|
4
4
|
--color-light-bg-secondary-inverted: #233549;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:root {
|
|
19
19
|
--border-radius-m: 8px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz {
|
|
22
22
|
color: var(--color-light-text-secondary);
|
|
23
23
|
border-radius: var(--border-radius-m);
|
|
24
24
|
border: none;
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
height: 32px;
|
|
30
30
|
padding: 0
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:disabled:not(.pagination__checked_fcwqz) {
|
|
33
33
|
opacity: 0.3;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:hover:not(:disabled) {
|
|
36
36
|
background-color: var(--color-light-bg-tertiary);
|
|
37
37
|
color: var(--color-light-text-primary);
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz:active:not(:disabled) {
|
|
40
40
|
background-color: var(--color-light-bg-neutral);
|
|
41
41
|
}
|
|
42
|
-
.
|
|
42
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz {
|
|
43
43
|
cursor: default;
|
|
44
44
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
45
45
|
color: var(--color-light-text-primary-inverted);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz:hover:not(:disabled) {
|
|
48
48
|
color: var(--color-light-text-primary-inverted);
|
|
49
49
|
}
|
|
50
|
-
.
|
|
50
|
+
.pagination__tag_fcwqz.pagination__tag_fcwqz.pagination__checked_fcwqz:active:not(:disabled) {
|
|
51
51
|
color: var(--color-light-text-primary);
|
|
52
52
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Tag as Tag$1 } from '@alfalab/core-components-tag/dist/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"tag":"
|
|
5
|
+
var styles = {"tag":"pagination__tag_fcwqz","checked":"pagination__checked_fcwqz"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Tag = ({ className, checked, ...restProps }) => (React.createElement(Tag$1, Object.assign({}, restProps, { checked: checked, size: 'xxs', className: cn(className, styles.tag, { [styles.checked]: checked }) })));
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nvux */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:root {
|
|
14
14
|
--gap-xs: 8px;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.pagination__component_1w9e0 {
|
|
17
17
|
font-size: 14px;
|
|
18
18
|
line-height: 20px;
|
|
19
19
|
font-weight: 400;
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
font-feature-settings: "tnum";
|
|
25
25
|
font-variant-numeric: tabular-nums;
|
|
26
26
|
}
|
|
27
|
-
.
|
|
27
|
+
.pagination__defaultView_1w9e0 > * {
|
|
28
28
|
margin-right: var(--gap-xs)
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.pagination__defaultView_1w9e0 > *:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-pagination",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"react-dom": "^16.9.0 || ^17.0.1"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-button": "^5.1.
|
|
21
|
-
"@alfalab/core-components-tag": "^4.2.
|
|
20
|
+
"@alfalab/core-components-button": "^5.1.4",
|
|
21
|
+
"@alfalab/core-components-tag": "^4.2.3",
|
|
22
22
|
"classnames": "2.2.6"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "a185c42cf9dbfd14311fd756c696fa116214e289"
|
|
25
25
|
}
|