@alfalab/core-components-pagination 2.0.19 → 2.0.21
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/Component.js +1 -1
- package/components/default-view/index.css +2 -2
- package/components/default-view/index.js +1 -1
- package/components/per-page-view/index.css +2 -2
- package/components/per-page-view/index.js +1 -1
- package/components/tag/index.css +8 -8
- package/components/tag/index.js +1 -1
- package/esm/Component.js +1 -1
- package/esm/components/default-view/index.css +2 -2
- package/esm/components/default-view/index.js +1 -1
- package/esm/components/per-page-view/index.css +2 -2
- package/esm/components/per-page-view/index.js +1 -1
- package/esm/components/tag/index.css +8 -8
- package/esm/components/tag/index.js +1 -1
- package/esm/index.css +4 -4
- package/index.css +4 -4
- package/modern/Component.js +1 -1
- package/modern/components/default-view/index.css +2 -2
- package/modern/components/default-view/index.js +1 -1
- package/modern/components/per-page-view/index.css +2 -2
- package/modern/components/per-page-view/index.js +1 -1
- package/modern/components/tag/index.css +8 -8
- package/modern/components/tag/index.js +1 -1
- package/modern/index.css +4 -4
- package/package.json +2 -2
- package/send-stats.js +0 -82
package/Component.js
CHANGED
|
@@ -17,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
17
17
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
18
18
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
19
19
|
|
|
20
|
-
var styles = {"component":"
|
|
20
|
+
var styles = {"component":"pagination__component_gdi2e","defaultView":"pagination__defaultView_gdi2e"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var Pagination = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1lgn5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .pagination__dots_1x6os {
|
|
19
19
|
width: 32px;
|
|
20
20
|
height: 32px;
|
|
21
21
|
text-align: center;
|
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
|
|
15
|
-
var styles = {"dots":"
|
|
15
|
+
var styles = {"dots":"pagination__dots_1x6os"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
/* eslint-disable react/no-array-index-key */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19fqc */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
--gap-m: 16px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .pagination__component_1f89s {
|
|
19
19
|
display: block;
|
|
20
20
|
margin: 0 var(--gap-m);
|
|
21
21
|
}
|
|
@@ -8,7 +8,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
10
|
|
|
11
|
-
var styles = {"component":"
|
|
11
|
+
var styles = {"component":"pagination__component_1f89s"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var PerPageView = function (_a) {
|
package/components/tag/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 13vx4 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-quaternary: #dcdcdd;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
23
|
} :root {
|
|
24
|
-
} .
|
|
24
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb {
|
|
25
25
|
color: var(--color-light-text-secondary);
|
|
26
26
|
border-radius: var(--border-radius-m);
|
|
27
27
|
border: none;
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
width: 32px;
|
|
32
32
|
height: 32px;
|
|
33
33
|
padding: 0
|
|
34
|
-
} .
|
|
34
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:disabled:not(.pagination__checked_e3qeb) {
|
|
35
35
|
opacity: 0.3;
|
|
36
|
-
} .
|
|
36
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:hover:not(:disabled) {
|
|
37
37
|
background-color: var(--color-light-bg-tertiary);
|
|
38
38
|
color: var(--color-light-text-primary);
|
|
39
|
-
} .
|
|
39
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:active:not(:disabled) {
|
|
40
40
|
background-color: var(--color-light-bg-quaternary);
|
|
41
|
-
} .
|
|
41
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb {
|
|
42
42
|
cursor: default;
|
|
43
43
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
44
44
|
color: var(--color-light-text-primary-inverted);
|
|
45
|
-
} .
|
|
45
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb:hover:not(:disabled) {
|
|
46
46
|
color: var(--color-light-text-primary-inverted);
|
|
47
|
-
} .
|
|
47
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb:active:not(:disabled) {
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
package/components/tag/index.js
CHANGED
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"tag":"
|
|
15
|
+
var styles = {"tag":"pagination__tag_e3qeb","checked":"pagination__checked_e3qeb"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var Tag = function (_a) {
|
package/esm/Component.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Tag } from './components/tag/index.js';
|
|
|
8
8
|
import 'tslib';
|
|
9
9
|
import '@alfalab/core-components-tag/esm';
|
|
10
10
|
|
|
11
|
-
var styles = {"component":"
|
|
11
|
+
var styles = {"component":"pagination__component_gdi2e","defaultView":"pagination__defaultView_gdi2e"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Pagination = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1lgn5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .pagination__dots_1x6os {
|
|
19
19
|
width: 32px;
|
|
20
20
|
height: 32px;
|
|
21
21
|
text-align: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19fqc */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
--gap-m: 16px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .pagination__component_1f89s {
|
|
19
19
|
display: block;
|
|
20
20
|
margin: 0 var(--gap-m);
|
|
21
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 13vx4 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-quaternary: #dcdcdd;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
23
|
} :root {
|
|
24
|
-
} .
|
|
24
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb {
|
|
25
25
|
color: var(--color-light-text-secondary);
|
|
26
26
|
border-radius: var(--border-radius-m);
|
|
27
27
|
border: none;
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
width: 32px;
|
|
32
32
|
height: 32px;
|
|
33
33
|
padding: 0
|
|
34
|
-
} .
|
|
34
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:disabled:not(.pagination__checked_e3qeb) {
|
|
35
35
|
opacity: 0.3;
|
|
36
|
-
} .
|
|
36
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:hover:not(:disabled) {
|
|
37
37
|
background-color: var(--color-light-bg-tertiary);
|
|
38
38
|
color: var(--color-light-text-primary);
|
|
39
|
-
} .
|
|
39
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:active:not(:disabled) {
|
|
40
40
|
background-color: var(--color-light-bg-quaternary);
|
|
41
|
-
} .
|
|
41
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb {
|
|
42
42
|
cursor: default;
|
|
43
43
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
44
44
|
color: var(--color-light-text-primary-inverted);
|
|
45
|
-
} .
|
|
45
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb:hover:not(:disabled) {
|
|
46
46
|
color: var(--color-light-text-primary-inverted);
|
|
47
|
-
} .
|
|
47
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb:active:not(:disabled) {
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Tag as Tag$1 } from '@alfalab/core-components-tag/esm';
|
|
5
5
|
|
|
6
|
-
var styles = {"tag":"
|
|
6
|
+
var styles = {"tag":"pagination__tag_e3qeb","checked":"pagination__checked_e3qeb"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var Tag = function (_a) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sk2y7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--gap-xs: 8px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .pagination__component_gdi2e {
|
|
20
20
|
font-size: 14px;
|
|
21
21
|
line-height: 20px;
|
|
22
22
|
font-weight: 400;
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
color: var(--color-light-text-primary);
|
|
27
27
|
font-feature-settings: "tnum";
|
|
28
28
|
font-variant-numeric: tabular-nums;
|
|
29
|
-
} .
|
|
29
|
+
} .pagination__defaultView_gdi2e > * {
|
|
30
30
|
margin-right: var(--gap-xs)
|
|
31
|
-
} .
|
|
31
|
+
} .pagination__defaultView_gdi2e > *:last-child {
|
|
32
32
|
margin-right: 0;
|
|
33
33
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sk2y7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--gap-xs: 8px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .pagination__component_gdi2e {
|
|
20
20
|
font-size: 14px;
|
|
21
21
|
line-height: 20px;
|
|
22
22
|
font-weight: 400;
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
color: var(--color-light-text-primary);
|
|
27
27
|
font-feature-settings: "tnum";
|
|
28
28
|
font-variant-numeric: tabular-nums;
|
|
29
|
-
} .
|
|
29
|
+
} .pagination__defaultView_gdi2e > * {
|
|
30
30
|
margin-right: var(--gap-xs)
|
|
31
|
-
} .
|
|
31
|
+
} .pagination__defaultView_gdi2e > *:last-child {
|
|
32
32
|
margin-right: 0;
|
|
33
33
|
}
|
package/modern/Component.js
CHANGED
|
@@ -7,7 +7,7 @@ import { PerPageView } from './components/per-page-view/index.js';
|
|
|
7
7
|
import { Tag } from './components/tag/index.js';
|
|
8
8
|
import '@alfalab/core-components-tag/modern';
|
|
9
9
|
|
|
10
|
-
const styles = {"component":"
|
|
10
|
+
const styles = {"component":"pagination__component_gdi2e","defaultView":"pagination__defaultView_gdi2e"};
|
|
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, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1lgn5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .pagination__dots_1x6os {
|
|
19
19
|
width: 32px;
|
|
20
20
|
height: 32px;
|
|
21
21
|
text-align: center;
|
|
@@ -3,7 +3,7 @@ import { Tag } from '../tag/index.js';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '@alfalab/core-components-tag/modern';
|
|
5
5
|
|
|
6
|
-
const styles = {"dots":"
|
|
6
|
+
const styles = {"dots":"pagination__dots_1x6os"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
/* eslint-disable react/no-array-index-key */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19fqc */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
--gap-m: 16px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .pagination__component_1f89s {
|
|
19
19
|
display: block;
|
|
20
20
|
margin: 0 var(--gap-m);
|
|
21
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
const styles = {"component":"
|
|
3
|
+
const styles = {"component":"pagination__component_1f89s"};
|
|
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: 13vx4 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-quaternary: #dcdcdd;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
23
|
} :root {
|
|
24
|
-
} .
|
|
24
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb {
|
|
25
25
|
color: var(--color-light-text-secondary);
|
|
26
26
|
border-radius: var(--border-radius-m);
|
|
27
27
|
border: none;
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
width: 32px;
|
|
32
32
|
height: 32px;
|
|
33
33
|
padding: 0
|
|
34
|
-
} .
|
|
34
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:disabled:not(.pagination__checked_e3qeb) {
|
|
35
35
|
opacity: 0.3;
|
|
36
|
-
} .
|
|
36
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:hover:not(:disabled) {
|
|
37
37
|
background-color: var(--color-light-bg-tertiary);
|
|
38
38
|
color: var(--color-light-text-primary);
|
|
39
|
-
} .
|
|
39
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb:active:not(:disabled) {
|
|
40
40
|
background-color: var(--color-light-bg-quaternary);
|
|
41
|
-
} .
|
|
41
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb {
|
|
42
42
|
cursor: default;
|
|
43
43
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
44
44
|
color: var(--color-light-text-primary-inverted);
|
|
45
|
-
} .
|
|
45
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb:hover:not(:disabled) {
|
|
46
46
|
color: var(--color-light-text-primary-inverted);
|
|
47
|
-
} .
|
|
47
|
+
} .pagination__tag_e3qeb.pagination__tag_e3qeb.pagination__checked_e3qeb:active:not(:disabled) {
|
|
48
48
|
color: var(--color-light-text-primary);
|
|
49
49
|
}
|
|
@@ -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/modern';
|
|
4
4
|
|
|
5
|
-
const styles = {"tag":"
|
|
5
|
+
const styles = {"tag":"pagination__tag_e3qeb","checked":"pagination__checked_e3qeb"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Tag = ({ className, checked, ...restProps }) => (React.createElement(Tag$1, { ...restProps, checked: checked, size: 'xxs', className: cn(className, styles.tag, { [styles.checked]: checked }) }));
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sk2y7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--gap-xs: 8px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .pagination__component_gdi2e {
|
|
20
20
|
font-size: 14px;
|
|
21
21
|
line-height: 20px;
|
|
22
22
|
font-weight: 400;
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
color: var(--color-light-text-primary);
|
|
27
27
|
font-feature-settings: "tnum";
|
|
28
28
|
font-variant-numeric: tabular-nums;
|
|
29
|
-
} .
|
|
29
|
+
} .pagination__defaultView_gdi2e > * {
|
|
30
30
|
margin-right: var(--gap-xs)
|
|
31
|
-
} .
|
|
31
|
+
} .pagination__defaultView_gdi2e > *:last-child {
|
|
32
32
|
margin-right: 0;
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-pagination",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-tag": "^5.
|
|
18
|
+
"@alfalab/core-components-tag": "^5.4.1",
|
|
19
19
|
"@alfalab/icons-glyph": "^2.108.0",
|
|
20
20
|
"classnames": "^2.3.1",
|
|
21
21
|
"tslib": "^2.4.0"
|
package/send-stats.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const http = require('http');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const { promisify } = require('util');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const readFile = promisify(fs.readFile);
|
|
7
|
-
|
|
8
|
-
async function main() {
|
|
9
|
-
const remoteHost = process.env.NIS_HOST || 'digital';
|
|
10
|
-
const remotePort = process.env.NIS_PORT || 80;
|
|
11
|
-
const remotePath = process.env.NIS_PATH || '/npm-install-stats/api/install-stats';
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
const [_, node, os, arch] =
|
|
15
|
-
/node\/v(\d+\.\d+\.\d+) (\w+) (\w+)/.exec(process.env.npm_config_user_agent) || [];
|
|
16
|
-
const [__, npm] = /npm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
17
|
-
const [___, yarn] = /yarn\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
18
|
-
|
|
19
|
-
let ownPackageJson, packageJson;
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
const result = await Promise.all([
|
|
23
|
-
readFile(path.join(process.cwd(), 'package.json'), 'utf-8'),
|
|
24
|
-
readFile(path.join(process.cwd(), '../../../package.json'), 'utf-8'),
|
|
25
|
-
]);
|
|
26
|
-
|
|
27
|
-
ownPackageJson = JSON.parse(result[0]);
|
|
28
|
-
packageJson = JSON.parse(result[1]);
|
|
29
|
-
} catch (err) {
|
|
30
|
-
ownPackageJson = '';
|
|
31
|
-
packageJson = '';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const data = {
|
|
35
|
-
node,
|
|
36
|
-
npm,
|
|
37
|
-
yarn,
|
|
38
|
-
os,
|
|
39
|
-
arch,
|
|
40
|
-
ownPackageJson: JSON.stringify(ownPackageJson),
|
|
41
|
-
packageJson: JSON.stringify(packageJson),
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const body = JSON.stringify(data);
|
|
45
|
-
|
|
46
|
-
const options = {
|
|
47
|
-
host: remoteHost,
|
|
48
|
-
port: remotePort,
|
|
49
|
-
path: remotePath,
|
|
50
|
-
method: 'POST',
|
|
51
|
-
headers: {
|
|
52
|
-
'Content-Type': 'application/json',
|
|
53
|
-
'Content-Length': body.length,
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return new Promise((resolve, reject) => {
|
|
58
|
-
const req = http.request(options, (res) => {
|
|
59
|
-
res.on('end', () => {
|
|
60
|
-
resolve();
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
req.on('error', () => {
|
|
65
|
-
reject();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
req.write(body);
|
|
69
|
-
req.end();
|
|
70
|
-
});
|
|
71
|
-
} catch (error) {
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
main()
|
|
77
|
-
.then(() => {
|
|
78
|
-
process.exit(0);
|
|
79
|
-
})
|
|
80
|
-
.catch(() => {
|
|
81
|
-
process.exit(0);
|
|
82
|
-
});
|