@alfalab/core-components-pagination 2.0.10 → 2.0.11

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
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
16
 
17
- var styles = {"component":"pagination__component_11l5s","defaultView":"pagination__defaultView_11l5s"};
17
+ var styles = {"component":"pagination__component_12sxs","defaultView":"pagination__defaultView_12sxs"};
18
18
  require('./index.css')
19
19
 
20
20
  var Pagination = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: wt2hx */
1
+ /* hash: 11m0k */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
@@ -15,7 +15,7 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .pagination__dots_fy42f {
18
+ } .pagination__dots_1275i {
19
19
  width: 32px;
20
20
  height: 32px;
21
21
  text-align: center;
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
11
 
12
- var styles = {"dots":"pagination__dots_fy42f"};
12
+ var styles = {"dots":"pagination__dots_1275i"};
13
13
  require('./index.css')
14
14
 
15
15
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: 396bw */
1
+ /* hash: tj0u3 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -15,7 +15,7 @@
15
15
  --gap-m: 16px;
16
16
  } :root {
17
17
  } :root {
18
- } .pagination__component_1jpts {
18
+ } .pagination__component_1p5g5 {
19
19
  display: block;
20
20
  margin: 0 var(--gap-m);
21
21
  }
@@ -6,7 +6,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
6
6
 
7
7
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
8
8
 
9
- var styles = {"component":"pagination__component_1jpts"};
9
+ var styles = {"component":"pagination__component_1p5g5"};
10
10
  require('./index.css')
11
11
 
12
12
  var PerPageView = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: sc53u */
1
+ /* hash: 1rclm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-quaternary: #dbdee1;
@@ -21,7 +21,7 @@
21
21
  } :root {
22
22
  } :root {
23
23
  } :root {
24
- } .pagination__tag_i2haw.pagination__tag_i2haw {
24
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz {
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
- } .pagination__tag_i2haw.pagination__tag_i2haw:disabled:not(.pagination__checked_i2haw) {
34
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:disabled:not(.pagination__checked_f6hnz) {
35
35
  opacity: 0.3;
36
- } .pagination__tag_i2haw.pagination__tag_i2haw:hover:not(:disabled) {
36
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:hover:not(:disabled) {
37
37
  background-color: var(--color-light-bg-tertiary);
38
38
  color: var(--color-light-text-primary);
39
- } .pagination__tag_i2haw.pagination__tag_i2haw:active:not(:disabled) {
39
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw {
41
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz {
42
42
  cursor: default;
43
43
  background-color: var(--color-light-bg-secondary-inverted);
44
44
  color: var(--color-light-text-primary-inverted);
45
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw:hover:not(:disabled) {
45
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:hover:not(:disabled) {
46
46
  color: var(--color-light-text-primary-inverted);
47
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw:active:not(:disabled) {
47
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:active:not(:disabled) {
48
48
  color: var(--color-light-text-primary);
49
49
  }
@@ -48,7 +48,7 @@ function __rest(s, e) {
48
48
  return t;
49
49
  }
50
50
 
51
- var styles = {"tag":"pagination__tag_i2haw","checked":"pagination__checked_i2haw"};
51
+ var styles = {"tag":"pagination__tag_f6hnz","checked":"pagination__checked_f6hnz"};
52
52
  require('./index.css')
53
53
 
54
54
  var Tag = function (_a) {
package/esm/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/esm';
9
9
 
10
- var styles = {"component":"pagination__component_11l5s","defaultView":"pagination__defaultView_11l5s"};
10
+ var styles = {"component":"pagination__component_12sxs","defaultView":"pagination__defaultView_12sxs"};
11
11
  require('./index.css')
12
12
 
13
13
  var Pagination = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: wt2hx */
1
+ /* hash: 11m0k */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
@@ -15,7 +15,7 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .pagination__dots_fy42f {
18
+ } .pagination__dots_1275i {
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/esm';
5
5
 
6
- var styles = {"dots":"pagination__dots_fy42f"};
6
+ var styles = {"dots":"pagination__dots_1275i"};
7
7
  require('./index.css')
8
8
 
9
9
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: 396bw */
1
+ /* hash: tj0u3 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -15,7 +15,7 @@
15
15
  --gap-m: 16px;
16
16
  } :root {
17
17
  } :root {
18
- } .pagination__component_1jpts {
18
+ } .pagination__component_1p5g5 {
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
- var styles = {"component":"pagination__component_1jpts"};
3
+ var styles = {"component":"pagination__component_1p5g5"};
4
4
  require('./index.css')
5
5
 
6
6
  var PerPageView = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: sc53u */
1
+ /* hash: 1rclm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-quaternary: #dbdee1;
@@ -21,7 +21,7 @@
21
21
  } :root {
22
22
  } :root {
23
23
  } :root {
24
- } .pagination__tag_i2haw.pagination__tag_i2haw {
24
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz {
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
- } .pagination__tag_i2haw.pagination__tag_i2haw:disabled:not(.pagination__checked_i2haw) {
34
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:disabled:not(.pagination__checked_f6hnz) {
35
35
  opacity: 0.3;
36
- } .pagination__tag_i2haw.pagination__tag_i2haw:hover:not(:disabled) {
36
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:hover:not(:disabled) {
37
37
  background-color: var(--color-light-bg-tertiary);
38
38
  color: var(--color-light-text-primary);
39
- } .pagination__tag_i2haw.pagination__tag_i2haw:active:not(:disabled) {
39
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw {
41
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz {
42
42
  cursor: default;
43
43
  background-color: var(--color-light-bg-secondary-inverted);
44
44
  color: var(--color-light-text-primary-inverted);
45
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw:hover:not(:disabled) {
45
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:hover:not(:disabled) {
46
46
  color: var(--color-light-text-primary-inverted);
47
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw:active:not(:disabled) {
47
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:active:not(:disabled) {
48
48
  color: var(--color-light-text-primary);
49
49
  }
@@ -41,7 +41,7 @@ function __rest(s, e) {
41
41
  return t;
42
42
  }
43
43
 
44
- var styles = {"tag":"pagination__tag_i2haw","checked":"pagination__checked_i2haw"};
44
+ var styles = {"tag":"pagination__tag_f6hnz","checked":"pagination__checked_f6hnz"};
45
45
  require('./index.css')
46
46
 
47
47
  var Tag = function (_a) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1wgcx */
1
+ /* hash: 1cepi */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: #0b1f35;
@@ -16,7 +16,7 @@
16
16
  --gap-xs: 8px;
17
17
  } :root {
18
18
  } :root {
19
- } .pagination__component_11l5s {
19
+ } .pagination__component_12sxs {
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
- } .pagination__defaultView_11l5s > * {
29
+ } .pagination__defaultView_12sxs > * {
30
30
  margin-right: var(--gap-xs)
31
- } .pagination__defaultView_11l5s > *:last-child {
31
+ } .pagination__defaultView_12sxs > *:last-child {
32
32
  margin-right: 0;
33
33
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1wgcx */
1
+ /* hash: 1cepi */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: #0b1f35;
@@ -16,7 +16,7 @@
16
16
  --gap-xs: 8px;
17
17
  } :root {
18
18
  } :root {
19
- } .pagination__component_11l5s {
19
+ } .pagination__component_12sxs {
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
- } .pagination__defaultView_11l5s > * {
29
+ } .pagination__defaultView_12sxs > * {
30
30
  margin-right: var(--gap-xs)
31
- } .pagination__defaultView_11l5s > *:last-child {
31
+ } .pagination__defaultView_12sxs > *:last-child {
32
32
  margin-right: 0;
33
33
  }
@@ -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":"pagination__component_11l5s","defaultView":"pagination__defaultView_11l5s"};
10
+ const styles = {"component":"pagination__component_12sxs","defaultView":"pagination__defaultView_12sxs"};
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: wt2hx */
1
+ /* hash: 11m0k */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-secondary: rgba(11, 31, 53, 0.7);
@@ -15,7 +15,7 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .pagination__dots_fy42f {
18
+ } .pagination__dots_1275i {
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":"pagination__dots_fy42f"};
6
+ const styles = {"dots":"pagination__dots_1275i"};
7
7
  require('./index.css')
8
8
 
9
9
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: 396bw */
1
+ /* hash: tj0u3 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -15,7 +15,7 @@
15
15
  --gap-m: 16px;
16
16
  } :root {
17
17
  } :root {
18
- } .pagination__component_1jpts {
18
+ } .pagination__component_1p5g5 {
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":"pagination__component_1jpts"};
3
+ const styles = {"component":"pagination__component_1p5g5"};
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: sc53u */
1
+ /* hash: 1rclm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-quaternary: #dbdee1;
@@ -21,7 +21,7 @@
21
21
  } :root {
22
22
  } :root {
23
23
  } :root {
24
- } .pagination__tag_i2haw.pagination__tag_i2haw {
24
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz {
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
- } .pagination__tag_i2haw.pagination__tag_i2haw:disabled:not(.pagination__checked_i2haw) {
34
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:disabled:not(.pagination__checked_f6hnz) {
35
35
  opacity: 0.3;
36
- } .pagination__tag_i2haw.pagination__tag_i2haw:hover:not(:disabled) {
36
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:hover:not(:disabled) {
37
37
  background-color: var(--color-light-bg-tertiary);
38
38
  color: var(--color-light-text-primary);
39
- } .pagination__tag_i2haw.pagination__tag_i2haw:active:not(:disabled) {
39
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw {
41
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz {
42
42
  cursor: default;
43
43
  background-color: var(--color-light-bg-secondary-inverted);
44
44
  color: var(--color-light-text-primary-inverted);
45
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw:hover:not(:disabled) {
45
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:hover:not(:disabled) {
46
46
  color: var(--color-light-text-primary-inverted);
47
- } .pagination__tag_i2haw.pagination__tag_i2haw.pagination__checked_i2haw:active:not(:disabled) {
47
+ } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz: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":"pagination__tag_i2haw","checked":"pagination__checked_i2haw"};
5
+ const styles = {"tag":"pagination__tag_f6hnz","checked":"pagination__checked_f6hnz"};
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: 1wgcx */
1
+ /* hash: 1cepi */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: #0b1f35;
@@ -16,7 +16,7 @@
16
16
  --gap-xs: 8px;
17
17
  } :root {
18
18
  } :root {
19
- } .pagination__component_11l5s {
19
+ } .pagination__component_12sxs {
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
- } .pagination__defaultView_11l5s > * {
29
+ } .pagination__defaultView_12sxs > * {
30
30
  margin-right: var(--gap-xs)
31
- } .pagination__defaultView_11l5s > *:last-child {
31
+ } .pagination__defaultView_12sxs > *: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.10",
3
+ "version": "2.0.11",
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.4",
18
+ "@alfalab/core-components-button": "^7.0.5",
19
19
  "@alfalab/core-components-tag": "^5.0.4",
20
20
  "classnames": "^2.3.1"
21
21
  }