@alfalab/core-components-pagination 2.0.6 → 2.0.7

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 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":"pagination__component_xnuxp","defaultView":"pagination__defaultView_xnuxp"};
19
+ var styles = {"component":"pagination__component_1qv8m","defaultView":"pagination__defaultView_1qv8m"};
20
20
  require('./index.css')
21
21
 
22
22
  var Pagination = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1vejj */
1
+ /* hash: 12whr */
2
2
  :root {
3
3
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
4
  }
@@ -10,7 +10,7 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .pagination__dots_18rps {
13
+ .pagination__dots_idvec {
14
14
  width: 32px;
15
15
  height: 32px;
16
16
  text-align: center;
@@ -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":"pagination__dots_18rps"};
14
+ var styles = {"dots":"pagination__dots_idvec"};
15
15
  require('./index.css')
16
16
 
17
17
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: 11und */
1
+ /* hash: aom28 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,7 +10,7 @@
10
10
  :root {
11
11
  --gap-m: 16px;
12
12
  }
13
- .pagination__component_1vq0g {
13
+ .pagination__component_10y12 {
14
14
  display: block;
15
15
  margin: 0 var(--gap-m);
16
16
  }
@@ -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":"pagination__component_1vq0g"};
11
+ var styles = {"component":"pagination__component_10y12"};
12
12
  require('./index.css')
13
13
 
14
14
  var PerPageView = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1btae */
1
+ /* hash: oclvw */
2
2
  :root {
3
3
  --color-light-bg-quaternary: #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
- .pagination__tag_kbkis.pagination__tag_kbkis {
21
+ .pagination__tag_gzn5s.pagination__tag_gzn5s {
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
- .pagination__tag_kbkis.pagination__tag_kbkis:disabled:not(.pagination__checked_kbkis) {
32
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:disabled:not(.pagination__checked_gzn5s) {
33
33
  opacity: 0.3;
34
34
  }
35
- .pagination__tag_kbkis.pagination__tag_kbkis:hover:not(:disabled) {
35
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:hover:not(:disabled) {
36
36
  background-color: var(--color-light-bg-tertiary);
37
37
  color: var(--color-light-text-primary);
38
38
  }
39
- .pagination__tag_kbkis.pagination__tag_kbkis:active:not(:disabled) {
39
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
41
  }
42
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis {
42
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s {
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
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis:hover:not(:disabled) {
47
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s:hover:not(:disabled) {
48
48
  color: var(--color-light-text-primary-inverted);
49
49
  }
50
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis:active:not(:disabled) {
50
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s: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":"pagination__tag_kbkis","checked":"pagination__checked_kbkis"};
53
+ var styles = {"tag":"pagination__tag_gzn5s","checked":"pagination__checked_gzn5s"};
54
54
  require('./index.css')
55
55
 
56
56
  var Tag = function (_a) {
package/esm/Component.js CHANGED
@@ -7,7 +7,7 @@ import '@alfalab/core-components-tag/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":"pagination__component_xnuxp","defaultView":"pagination__defaultView_xnuxp"};
10
+ var styles = {"component":"pagination__component_1qv8m","defaultView":"pagination__defaultView_1qv8m"};
11
11
  require('./index.css')
12
12
 
13
13
  var Pagination = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1vejj */
1
+ /* hash: 12whr */
2
2
  :root {
3
3
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
4
  }
@@ -10,7 +10,7 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .pagination__dots_18rps {
13
+ .pagination__dots_idvec {
14
14
  width: 32px;
15
15
  height: 32px;
16
16
  text-align: center;
@@ -3,7 +3,7 @@ import 'classnames';
3
3
  import { Tag } from '../tag/index.js';
4
4
  import '@alfalab/core-components-tag/esm';
5
5
 
6
- var styles = {"dots":"pagination__dots_18rps"};
6
+ var styles = {"dots":"pagination__dots_idvec"};
7
7
  require('./index.css')
8
8
 
9
9
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: 11und */
1
+ /* hash: aom28 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,7 +10,7 @@
10
10
  :root {
11
11
  --gap-m: 16px;
12
12
  }
13
- .pagination__component_1vq0g {
13
+ .pagination__component_10y12 {
14
14
  display: block;
15
15
  margin: 0 var(--gap-m);
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- var styles = {"component":"pagination__component_1vq0g"};
3
+ var styles = {"component":"pagination__component_10y12"};
4
4
  require('./index.css')
5
5
 
6
6
  var PerPageView = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1btae */
1
+ /* hash: oclvw */
2
2
  :root {
3
3
  --color-light-bg-quaternary: #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
- .pagination__tag_kbkis.pagination__tag_kbkis {
21
+ .pagination__tag_gzn5s.pagination__tag_gzn5s {
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
- .pagination__tag_kbkis.pagination__tag_kbkis:disabled:not(.pagination__checked_kbkis) {
32
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:disabled:not(.pagination__checked_gzn5s) {
33
33
  opacity: 0.3;
34
34
  }
35
- .pagination__tag_kbkis.pagination__tag_kbkis:hover:not(:disabled) {
35
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:hover:not(:disabled) {
36
36
  background-color: var(--color-light-bg-tertiary);
37
37
  color: var(--color-light-text-primary);
38
38
  }
39
- .pagination__tag_kbkis.pagination__tag_kbkis:active:not(:disabled) {
39
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
41
  }
42
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis {
42
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s {
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
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis:hover:not(:disabled) {
47
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s:hover:not(:disabled) {
48
48
  color: var(--color-light-text-primary-inverted);
49
49
  }
50
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis:active:not(:disabled) {
50
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s: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":"pagination__tag_kbkis","checked":"pagination__checked_kbkis"};
44
+ var styles = {"tag":"pagination__tag_gzn5s","checked":"pagination__checked_gzn5s"};
45
45
  require('./index.css')
46
46
 
47
47
  var Tag = function (_a) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1cz7m */
1
+ /* hash: w4h4e */
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
- .pagination__component_xnuxp {
16
+ .pagination__component_1qv8m {
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
- .pagination__defaultView_xnuxp > * {
27
+ .pagination__defaultView_1qv8m > * {
28
28
  margin-right: var(--gap-xs)
29
29
  }
30
- .pagination__defaultView_xnuxp > *:last-child {
30
+ .pagination__defaultView_1qv8m > *:last-child {
31
31
  margin-right: 0;
32
32
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1cz7m */
1
+ /* hash: w4h4e */
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
- .pagination__component_xnuxp {
16
+ .pagination__component_1qv8m {
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
- .pagination__defaultView_xnuxp > * {
27
+ .pagination__defaultView_1qv8m > * {
28
28
  margin-right: var(--gap-xs)
29
29
  }
30
- .pagination__defaultView_xnuxp > *:last-child {
30
+ .pagination__defaultView_1qv8m > *:last-child {
31
31
  margin-right: 0;
32
32
  }
@@ -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":"pagination__component_xnuxp","defaultView":"pagination__defaultView_xnuxp"};
10
+ var styles = {"component":"pagination__component_1qv8m","defaultView":"pagination__defaultView_1qv8m"};
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: 1vejj */
1
+ /* hash: 12whr */
2
2
  :root {
3
3
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
4
4
  }
@@ -10,7 +10,7 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .pagination__dots_18rps {
13
+ .pagination__dots_idvec {
14
14
  width: 32px;
15
15
  height: 32px;
16
16
  text-align: center;
@@ -3,7 +3,7 @@ import 'classnames';
3
3
  import '@alfalab/core-components-tag/modern';
4
4
  import { Tag } from '../tag/index.js';
5
5
 
6
- var styles = {"dots":"pagination__dots_18rps"};
6
+ var styles = {"dots":"pagination__dots_idvec"};
7
7
  require('./index.css')
8
8
 
9
9
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: 11und */
1
+ /* hash: aom28 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,7 +10,7 @@
10
10
  :root {
11
11
  --gap-m: 16px;
12
12
  }
13
- .pagination__component_1vq0g {
13
+ .pagination__component_10y12 {
14
14
  display: block;
15
15
  margin: 0 var(--gap-m);
16
16
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- var styles = {"component":"pagination__component_1vq0g"};
3
+ var styles = {"component":"pagination__component_10y12"};
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: 1btae */
1
+ /* hash: oclvw */
2
2
  :root {
3
3
  --color-light-bg-quaternary: #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
- .pagination__tag_kbkis.pagination__tag_kbkis {
21
+ .pagination__tag_gzn5s.pagination__tag_gzn5s {
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
- .pagination__tag_kbkis.pagination__tag_kbkis:disabled:not(.pagination__checked_kbkis) {
32
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:disabled:not(.pagination__checked_gzn5s) {
33
33
  opacity: 0.3;
34
34
  }
35
- .pagination__tag_kbkis.pagination__tag_kbkis:hover:not(:disabled) {
35
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:hover:not(:disabled) {
36
36
  background-color: var(--color-light-bg-tertiary);
37
37
  color: var(--color-light-text-primary);
38
38
  }
39
- .pagination__tag_kbkis.pagination__tag_kbkis:active:not(:disabled) {
39
+ .pagination__tag_gzn5s.pagination__tag_gzn5s:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
41
  }
42
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis {
42
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s {
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
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis:hover:not(:disabled) {
47
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s:hover:not(:disabled) {
48
48
  color: var(--color-light-text-primary-inverted);
49
49
  }
50
- .pagination__tag_kbkis.pagination__tag_kbkis.pagination__checked_kbkis:active:not(:disabled) {
50
+ .pagination__tag_gzn5s.pagination__tag_gzn5s.pagination__checked_gzn5s: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/modern';
4
4
 
5
- var styles = {"tag":"pagination__tag_kbkis","checked":"pagination__checked_kbkis"};
5
+ var styles = {"tag":"pagination__tag_gzn5s","checked":"pagination__checked_gzn5s"};
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: 1cz7m */
1
+ /* hash: w4h4e */
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
- .pagination__component_xnuxp {
16
+ .pagination__component_1qv8m {
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
- .pagination__defaultView_xnuxp > * {
27
+ .pagination__defaultView_1qv8m > * {
28
28
  margin-right: var(--gap-xs)
29
29
  }
30
- .pagination__defaultView_xnuxp > *:last-child {
30
+ .pagination__defaultView_1qv8m > *: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": "2.0.6",
3
+ "version": "2.0.7",
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-button": "^7.0.0",
18
+ "@alfalab/core-components-button": "^7.0.1",
19
19
  "@alfalab/core-components-tag": "^5.0.2",
20
20
  "classnames": "^2.3.1"
21
21
  }
package/send-stats.js CHANGED
@@ -55,7 +55,7 @@ async function main() {
55
55
  };
56
56
 
57
57
  return new Promise((resolve, reject) => {
58
- const req = http.request(options, res => {
58
+ const req = http.request(options, (res) => {
59
59
  res.on('end', () => {
60
60
  resolve();
61
61
  });