@alfalab/core-components-pagination 2.0.11 → 2.0.13

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
@@ -7,6 +7,7 @@ var ChevronForwardMIcon = require('@alfalab/icons-glyph/ChevronForwardMIcon');
7
7
  var components_defaultView_index = require('./components/default-view/index.js');
8
8
  var components_perPageView_index = require('./components/per-page-view/index.js');
9
9
  var components_tag_index = require('./components/tag/index.js');
10
+ require('tslib');
10
11
  require('@alfalab/core-components-tag');
11
12
 
12
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -14,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
17
 
17
- var styles = {"component":"pagination__component_12sxs","defaultView":"pagination__defaultView_12sxs"};
18
+ var styles = {"component":"pagination__component_tewe6","defaultView":"pagination__defaultView_tewe6"};
18
19
  require('./index.css')
19
20
 
20
21
  var Pagination = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 11m0k */
1
+ /* hash: z9epd */
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_1275i {
18
+ } .pagination__dots_194sn {
19
19
  width: 32px;
20
20
  height: 32px;
21
21
  text-align: center;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var React = require('react');
4
4
  var components_tag_index = require('../tag/index.js');
5
+ require('tslib');
5
6
  require('classnames');
6
7
  require('@alfalab/core-components-tag');
7
8
 
@@ -9,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
10
 
10
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
12
 
12
- var styles = {"dots":"pagination__dots_1275i"};
13
+ var styles = {"dots":"pagination__dots_194sn"};
13
14
  require('./index.css')
14
15
 
15
16
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: tj0u3 */
1
+ /* hash: vvmp4 */
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_1p5g5 {
18
+ } .pagination__component_1w33a {
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_1p5g5"};
9
+ var styles = {"component":"pagination__component_1w33a"};
10
10
  require('./index.css')
11
11
 
12
12
  var PerPageView = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1rclm */
1
+ /* hash: 1jq28 */
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_f6hnz.pagination__tag_f6hnz {
24
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7 {
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_f6hnz.pagination__tag_f6hnz:disabled:not(.pagination__checked_f6hnz) {
34
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:disabled:not(.pagination__checked_1s8r7) {
35
35
  opacity: 0.3;
36
- } .pagination__tag_f6hnz.pagination__tag_f6hnz:hover:not(:disabled) {
36
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:hover:not(:disabled) {
37
37
  background-color: var(--color-light-bg-tertiary);
38
38
  color: var(--color-light-text-primary);
39
- } .pagination__tag_f6hnz.pagination__tag_f6hnz:active:not(:disabled) {
39
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
- } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz {
41
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7 {
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_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:hover:not(:disabled) {
45
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7:hover:not(:disabled) {
46
46
  color: var(--color-light-text-primary-inverted);
47
- } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:active:not(:disabled) {
47
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7:active:not(:disabled) {
48
48
  color: var(--color-light-text-primary);
49
49
  }
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var tslib = require('tslib');
3
4
  var React = require('react');
4
5
  var cn = require('classnames');
5
6
  var coreComponentsTag = require('@alfalab/core-components-tag');
@@ -9,52 +10,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
10
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
11
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
12
 
12
- /******************************************************************************
13
- Copyright (c) Microsoft Corporation.
14
-
15
- Permission to use, copy, modify, and/or distribute this software for any
16
- purpose with or without fee is hereby granted.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
21
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
23
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
- PERFORMANCE OF THIS SOFTWARE.
25
- ***************************************************************************** */
26
- var __assign = function () {
27
- __assign = Object.assign || function __assign(t) {
28
- for (var s, i = 1, n = arguments.length; i < n; i++) {
29
- s = arguments[i];
30
- for (var p in s)
31
- if (Object.prototype.hasOwnProperty.call(s, p))
32
- t[p] = s[p];
33
- }
34
- return t;
35
- };
36
- return __assign.apply(this, arguments);
37
- };
38
- function __rest(s, e) {
39
- var t = {};
40
- for (var p in s)
41
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
42
- t[p] = s[p];
43
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
44
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
45
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
46
- t[p[i]] = s[p[i]];
47
- }
48
- return t;
49
- }
50
-
51
- var styles = {"tag":"pagination__tag_f6hnz","checked":"pagination__checked_f6hnz"};
13
+ var styles = {"tag":"pagination__tag_1s8r7","checked":"pagination__checked_1s8r7"};
52
14
  require('./index.css')
53
15
 
54
16
  var Tag = function (_a) {
55
17
  var _b;
56
- var className = _a.className, checked = _a.checked, restProps = __rest(_a, ["className", "checked"]);
57
- return (React__default.default.createElement(coreComponentsTag.Tag, __assign({}, restProps, { checked: checked, size: 'xxs', className: cn__default.default(className, styles.tag, (_b = {}, _b[styles.checked] = checked, _b)) })));
18
+ var className = _a.className, checked = _a.checked, restProps = tslib.__rest(_a, ["className", "checked"]);
19
+ return (React__default.default.createElement(coreComponentsTag.Tag, tslib.__assign({}, restProps, { checked: checked, size: 'xxs', className: cn__default.default(className, styles.tag, (_b = {}, _b[styles.checked] = checked, _b)) })));
58
20
  };
59
21
 
60
22
  exports.Tag = Tag;
package/cssm/Component.js CHANGED
@@ -10,6 +10,7 @@ var components_tag_index = require('./components/tag/index.js');
10
10
  var styles = require('./index.module.css');
11
11
  require('./components/default-view/index.module.css');
12
12
  require('./components/per-page-view/index.module.css');
13
+ require('tslib');
13
14
  require('@alfalab/core-components-tag/cssm');
14
15
  require('./components/tag/index.module.css');
15
16
 
@@ -3,6 +3,7 @@
3
3
  var React = require('react');
4
4
  var components_tag_index = require('../tag/index.js');
5
5
  var styles = require('./index.module.css');
6
+ require('tslib');
6
7
  require('classnames');
7
8
  require('@alfalab/core-components-tag/cssm');
8
9
  require('../tag/index.module.css');
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var tslib = require('tslib');
3
4
  var React = require('react');
4
5
  var cn = require('classnames');
5
6
  var coreComponentsTag = require('@alfalab/core-components-tag/cssm');
@@ -11,49 +12,10 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
12
13
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
13
14
 
14
- /******************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- var __assign = function () {
29
- __assign = Object.assign || function __assign(t) {
30
- for (var s, i = 1, n = arguments.length; i < n; i++) {
31
- s = arguments[i];
32
- for (var p in s)
33
- if (Object.prototype.hasOwnProperty.call(s, p))
34
- t[p] = s[p];
35
- }
36
- return t;
37
- };
38
- return __assign.apply(this, arguments);
39
- };
40
- function __rest(s, e) {
41
- var t = {};
42
- for (var p in s)
43
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
44
- t[p] = s[p];
45
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
46
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
47
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
48
- t[p[i]] = s[p[i]];
49
- }
50
- return t;
51
- }
52
-
53
15
  var Tag = function (_a) {
54
16
  var _b;
55
- var className = _a.className, checked = _a.checked, restProps = __rest(_a, ["className", "checked"]);
56
- return (React__default.default.createElement(coreComponentsTag.Tag, __assign({}, restProps, { checked: checked, size: 'xxs', className: cn__default.default(className, styles__default.default.tag, (_b = {}, _b[styles__default.default.checked] = checked, _b)) })));
17
+ var className = _a.className, checked = _a.checked, restProps = tslib.__rest(_a, ["className", "checked"]);
18
+ return (React__default.default.createElement(coreComponentsTag.Tag, tslib.__assign({}, restProps, { checked: checked, size: 'xxs', className: cn__default.default(className, styles__default.default.tag, (_b = {}, _b[styles__default.default.checked] = checked, _b)) })));
57
19
  };
58
20
 
59
21
  exports.Tag = Tag;
package/cssm/index.js CHANGED
@@ -7,6 +7,7 @@ require('@alfalab/icons-glyph/ChevronBackMIcon');
7
7
  require('@alfalab/icons-glyph/ChevronForwardMIcon');
8
8
  require('./components/default-view/index.js');
9
9
  require('./components/tag/index.js');
10
+ require('tslib');
10
11
  require('@alfalab/core-components-tag/cssm');
11
12
  require('./components/tag/index.module.css');
12
13
  require('./components/default-view/index.module.css');
package/esm/Component.js CHANGED
@@ -5,9 +5,10 @@ import { ChevronForwardMIcon } from '@alfalab/icons-glyph/ChevronForwardMIcon';
5
5
  import { DefaultView } from './components/default-view/index.js';
6
6
  import { PerPageView } from './components/per-page-view/index.js';
7
7
  import { Tag } from './components/tag/index.js';
8
+ import 'tslib';
8
9
  import '@alfalab/core-components-tag/esm';
9
10
 
10
- var styles = {"component":"pagination__component_12sxs","defaultView":"pagination__defaultView_12sxs"};
11
+ var styles = {"component":"pagination__component_tewe6","defaultView":"pagination__defaultView_tewe6"};
11
12
  require('./index.css')
12
13
 
13
14
  var Pagination = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 11m0k */
1
+ /* hash: z9epd */
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_1275i {
18
+ } .pagination__dots_194sn {
19
19
  width: 32px;
20
20
  height: 32px;
21
21
  text-align: center;
@@ -1,9 +1,10 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { Tag } from '../tag/index.js';
3
+ import 'tslib';
3
4
  import 'classnames';
4
5
  import '@alfalab/core-components-tag/esm';
5
6
 
6
- var styles = {"dots":"pagination__dots_1275i"};
7
+ var styles = {"dots":"pagination__dots_194sn"};
7
8
  require('./index.css')
8
9
 
9
10
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: tj0u3 */
1
+ /* hash: vvmp4 */
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_1p5g5 {
18
+ } .pagination__component_1w33a {
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_1p5g5"};
3
+ var styles = {"component":"pagination__component_1w33a"};
4
4
  require('./index.css')
5
5
 
6
6
  var PerPageView = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1rclm */
1
+ /* hash: 1jq28 */
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_f6hnz.pagination__tag_f6hnz {
24
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7 {
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_f6hnz.pagination__tag_f6hnz:disabled:not(.pagination__checked_f6hnz) {
34
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:disabled:not(.pagination__checked_1s8r7) {
35
35
  opacity: 0.3;
36
- } .pagination__tag_f6hnz.pagination__tag_f6hnz:hover:not(:disabled) {
36
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:hover:not(:disabled) {
37
37
  background-color: var(--color-light-bg-tertiary);
38
38
  color: var(--color-light-text-primary);
39
- } .pagination__tag_f6hnz.pagination__tag_f6hnz:active:not(:disabled) {
39
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
- } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz {
41
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7 {
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_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:hover:not(:disabled) {
45
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7:hover:not(:disabled) {
46
46
  color: var(--color-light-text-primary-inverted);
47
- } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:active:not(:disabled) {
47
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7:active:not(:disabled) {
48
48
  color: var(--color-light-text-primary);
49
49
  }
@@ -1,47 +1,9 @@
1
+ import { __rest, __assign } from 'tslib';
1
2
  import React from 'react';
2
3
  import cn from 'classnames';
3
4
  import { Tag as Tag$1 } from '@alfalab/core-components-tag/esm';
4
5
 
5
- /******************************************************************************
6
- Copyright (c) Microsoft Corporation.
7
-
8
- Permission to use, copy, modify, and/or distribute this software for any
9
- purpose with or without fee is hereby granted.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */
19
- var __assign = function () {
20
- __assign = Object.assign || function __assign(t) {
21
- for (var s, i = 1, n = arguments.length; i < n; i++) {
22
- s = arguments[i];
23
- for (var p in s)
24
- if (Object.prototype.hasOwnProperty.call(s, p))
25
- t[p] = s[p];
26
- }
27
- return t;
28
- };
29
- return __assign.apply(this, arguments);
30
- };
31
- function __rest(s, e) {
32
- var t = {};
33
- for (var p in s)
34
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
35
- t[p] = s[p];
36
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
37
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
38
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
39
- t[p[i]] = s[p[i]];
40
- }
41
- return t;
42
- }
43
-
44
- var styles = {"tag":"pagination__tag_f6hnz","checked":"pagination__checked_f6hnz"};
6
+ var styles = {"tag":"pagination__tag_1s8r7","checked":"pagination__checked_1s8r7"};
45
7
  require('./index.css')
46
8
 
47
9
  var Tag = function (_a) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1cepi */
1
+ /* hash: 1xu0r */
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_12sxs {
19
+ } .pagination__component_tewe6 {
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_12sxs > * {
29
+ } .pagination__defaultView_tewe6 > * {
30
30
  margin-right: var(--gap-xs)
31
- } .pagination__defaultView_12sxs > *:last-child {
31
+ } .pagination__defaultView_tewe6 > *:last-child {
32
32
  margin-right: 0;
33
33
  }
package/esm/index.js CHANGED
@@ -5,5 +5,6 @@ import '@alfalab/icons-glyph/ChevronBackMIcon';
5
5
  import '@alfalab/icons-glyph/ChevronForwardMIcon';
6
6
  import './components/default-view/index.js';
7
7
  import './components/tag/index.js';
8
+ import 'tslib';
8
9
  import '@alfalab/core-components-tag/esm';
9
10
  import './components/per-page-view/index.js';
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1cepi */
1
+ /* hash: 1xu0r */
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_12sxs {
19
+ } .pagination__component_tewe6 {
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_12sxs > * {
29
+ } .pagination__defaultView_tewe6 > * {
30
30
  margin-right: var(--gap-xs)
31
- } .pagination__defaultView_12sxs > *:last-child {
31
+ } .pagination__defaultView_tewe6 > *:last-child {
32
32
  margin-right: 0;
33
33
  }
package/index.js CHANGED
@@ -7,6 +7,7 @@ require('@alfalab/icons-glyph/ChevronBackMIcon');
7
7
  require('@alfalab/icons-glyph/ChevronForwardMIcon');
8
8
  require('./components/default-view/index.js');
9
9
  require('./components/tag/index.js');
10
+ require('tslib');
10
11
  require('@alfalab/core-components-tag');
11
12
  require('./components/per-page-view/index.js');
12
13
 
@@ -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_12sxs","defaultView":"pagination__defaultView_12sxs"};
10
+ const styles = {"component":"pagination__component_tewe6","defaultView":"pagination__defaultView_tewe6"};
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: 11m0k */
1
+ /* hash: z9epd */
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_1275i {
18
+ } .pagination__dots_194sn {
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_1275i"};
6
+ const styles = {"dots":"pagination__dots_194sn"};
7
7
  require('./index.css')
8
8
 
9
9
  /* eslint-disable react/no-array-index-key */
@@ -1,4 +1,4 @@
1
- /* hash: tj0u3 */
1
+ /* hash: vvmp4 */
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_1p5g5 {
18
+ } .pagination__component_1w33a {
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_1p5g5"};
3
+ const styles = {"component":"pagination__component_1w33a"};
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: 1rclm */
1
+ /* hash: 1jq28 */
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_f6hnz.pagination__tag_f6hnz {
24
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7 {
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_f6hnz.pagination__tag_f6hnz:disabled:not(.pagination__checked_f6hnz) {
34
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:disabled:not(.pagination__checked_1s8r7) {
35
35
  opacity: 0.3;
36
- } .pagination__tag_f6hnz.pagination__tag_f6hnz:hover:not(:disabled) {
36
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:hover:not(:disabled) {
37
37
  background-color: var(--color-light-bg-tertiary);
38
38
  color: var(--color-light-text-primary);
39
- } .pagination__tag_f6hnz.pagination__tag_f6hnz:active:not(:disabled) {
39
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7:active:not(:disabled) {
40
40
  background-color: var(--color-light-bg-quaternary);
41
- } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz {
41
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7 {
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_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:hover:not(:disabled) {
45
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7:hover:not(:disabled) {
46
46
  color: var(--color-light-text-primary-inverted);
47
- } .pagination__tag_f6hnz.pagination__tag_f6hnz.pagination__checked_f6hnz:active:not(:disabled) {
47
+ } .pagination__tag_1s8r7.pagination__tag_1s8r7.pagination__checked_1s8r7: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_f6hnz","checked":"pagination__checked_f6hnz"};
5
+ const styles = {"tag":"pagination__tag_1s8r7","checked":"pagination__checked_1s8r7"};
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: 1cepi */
1
+ /* hash: 1xu0r */
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_12sxs {
19
+ } .pagination__component_tewe6 {
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_12sxs > * {
29
+ } .pagination__defaultView_tewe6 > * {
30
30
  margin-right: var(--gap-xs)
31
- } .pagination__defaultView_12sxs > *:last-child {
31
+ } .pagination__defaultView_tewe6 > *: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.11",
3
+ "version": "2.0.13",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,8 +15,9 @@
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.5",
19
- "@alfalab/core-components-tag": "^5.0.4",
20
- "classnames": "^2.3.1"
18
+ "@alfalab/core-components-button": "^7.1.1",
19
+ "@alfalab/core-components-tag": "^5.1.0",
20
+ "classnames": "^2.3.1",
21
+ "tslib": "^2.4.0"
21
22
  }
22
23
  }