@alfalab/core-components-tab-bar 2.0.7 → 2.0.8

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
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"component":"tab-bar__component_1ghph","modal-bg-primary":"tab-bar__modal-bg-primary_1ghph","modal-bg-alt-primary":"tab-bar__modal-bg-alt-primary_1ghph","border":"tab-bar__border_1ghph"};
16
+ var styles = {"component":"tab-bar__component_1ppo6","modal-bg-primary":"tab-bar__modal-bg-primary_1ppo6","modal-bg-alt-primary":"tab-bar__modal-bg-alt-primary_1ppo6","border":"tab-bar__border_1ppo6"};
17
17
  require('./index.css')
18
18
 
19
19
  var TabBarComponent = React.forwardRef(function (_a, ref) {
@@ -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":"tab-bar__component_yeaqk","primary":"tab-bar__primary_yeaqk","secondary":"tab-bar__secondary_yeaqk","icon":"tab-bar__icon_yeaqk","label":"tab-bar__label_yeaqk","labelSelected":"tab-bar__labelSelected_yeaqk","indicator":"tab-bar__indicator_yeaqk"};
17
+ var styles = {"component":"tab-bar__component_bqjx3","primary":"tab-bar__primary_bqjx3","secondary":"tab-bar__secondary_bqjx3","icon":"tab-bar__icon_bqjx3","label":"tab-bar__label_bqjx3","labelSelected":"tab-bar__labelSelected_bqjx3","indicator":"tab-bar__indicator_bqjx3"};
18
18
  require('./index.css')
19
19
 
20
20
  var TabComponent = React.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 17yy8 */
1
+ /* hash: 1l5ez */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-accent-primary: #ef3124;
@@ -22,9 +22,11 @@
22
22
  --gap-xs: 8px; /* 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 */
23
23
 
24
24
  /* новые значения, используйте их */
25
+ --gap-4: var(--gap-2xs);
26
+ --gap-8: var(--gap-xs);
25
27
  } :root {
26
28
  } :root {
27
- } .tab-bar__component_yeaqk {
29
+ } .tab-bar__component_bqjx3 {
28
30
  box-sizing: border-box;
29
31
  background-color: transparent;
30
32
  -webkit-tap-highlight-color: transparent;
@@ -46,19 +48,19 @@
46
48
  flex-direction: column;
47
49
  flex: 1 0 0;
48
50
  align-items: center;
49
- padding: var(--gap-xs) 0;
51
+ padding: var(--gap-8) 0;
50
52
  color: var(--color-light-neutral-translucent-700);
51
- } .tab-bar__primary_yeaqk {
53
+ } .tab-bar__primary_bqjx3 {
52
54
  color: var(--color-light-accent-primary);
53
- } .tab-bar__secondary_yeaqk {
55
+ } .tab-bar__secondary_bqjx3 {
54
56
  color: var(--color-light-accent-secondary);
55
- } .tab-bar__icon_yeaqk {
57
+ } .tab-bar__icon_bqjx3 {
56
58
  display: flex;
57
59
  align-items: center;
58
60
  justify-content: center;
59
61
  flex-grow: 1;
60
62
  width: 100%;
61
- } .tab-bar__label_yeaqk {
63
+ } .tab-bar__label_bqjx3 {
62
64
  -webkit-line-clamp: 1;
63
65
  display: -webkit-box;
64
66
  -webkit-box-orient: vertical;
@@ -67,12 +69,12 @@
67
69
  flex-shrink: 0;
68
70
 
69
71
  color: var(--color-light-text-secondary);
70
- } .tab-bar__labelSelected_yeaqk {
72
+ } .tab-bar__labelSelected_bqjx3 {
71
73
  color: inherit;
72
- } .tab-bar__indicator_yeaqk {
74
+ } .tab-bar__indicator_bqjx3 {
73
75
  position: absolute;
74
76
  top: 3px;
75
- left: calc(50% + var(--gap-2xs));
77
+ left: calc(50% + var(--gap-4));
76
78
  height: 16px;
77
79
  min-width: 16px;
78
80
  }
@@ -21,6 +21,8 @@
21
21
  --gap-xs: 8px; /* 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 */
22
22
 
23
23
  /* новые значения, используйте их */
24
+ --gap-4: var(--gap-2xs);
25
+ --gap-8: var(--gap-xs);
24
26
  } :root {
25
27
  } :root {
26
28
  } .component {
@@ -45,7 +47,7 @@
45
47
  flex-direction: column;
46
48
  flex: 1 0 0;
47
49
  align-items: center;
48
- padding: var(--gap-xs) 0;
50
+ padding: var(--gap-8) 0;
49
51
  color: var(--color-light-neutral-translucent-700);
50
52
  } .primary {
51
53
  color: var(--color-light-accent-primary);
@@ -71,7 +73,7 @@
71
73
  } .indicator {
72
74
  position: absolute;
73
75
  top: 3px;
74
- left: calc(50% + var(--gap-2xs));
76
+ left: calc(50% + var(--gap-4));
75
77
  height: 16px;
76
78
  min-width: 16px;
77
79
  }
package/esm/Component.js CHANGED
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { getDataTestId } from '@alfalab/core-components-shared/esm';
5
5
  import { Tab } from './components/tab/Component.js';
6
6
 
7
- var styles = {"component":"tab-bar__component_1ghph","modal-bg-primary":"tab-bar__modal-bg-primary_1ghph","modal-bg-alt-primary":"tab-bar__modal-bg-alt-primary_1ghph","border":"tab-bar__border_1ghph"};
7
+ var styles = {"component":"tab-bar__component_1ppo6","modal-bg-primary":"tab-bar__modal-bg-primary_1ppo6","modal-bg-alt-primary":"tab-bar__modal-bg-alt-primary_1ppo6","border":"tab-bar__border_1ppo6"};
8
8
  require('./index.css')
9
9
 
10
10
  var TabBarComponent = forwardRef(function (_a, ref) {
@@ -5,7 +5,7 @@ import { Indicator } from '@alfalab/core-components-indicator/esm';
5
5
  import { Typography } from '@alfalab/core-components-typography/esm';
6
6
  import { INDICATOR_BORDER_COLOR, INDICATOR_BG_COLOR } from '../../consts.js';
7
7
 
8
- var styles = {"component":"tab-bar__component_yeaqk","primary":"tab-bar__primary_yeaqk","secondary":"tab-bar__secondary_yeaqk","icon":"tab-bar__icon_yeaqk","label":"tab-bar__label_yeaqk","labelSelected":"tab-bar__labelSelected_yeaqk","indicator":"tab-bar__indicator_yeaqk"};
8
+ var styles = {"component":"tab-bar__component_bqjx3","primary":"tab-bar__primary_bqjx3","secondary":"tab-bar__secondary_bqjx3","icon":"tab-bar__icon_bqjx3","label":"tab-bar__label_bqjx3","labelSelected":"tab-bar__labelSelected_bqjx3","indicator":"tab-bar__indicator_bqjx3"};
9
9
  require('./index.css')
10
10
 
11
11
  var TabComponent = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 17yy8 */
1
+ /* hash: 1l5ez */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-accent-primary: #ef3124;
@@ -22,9 +22,11 @@
22
22
  --gap-xs: 8px; /* 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 */
23
23
 
24
24
  /* новые значения, используйте их */
25
+ --gap-4: var(--gap-2xs);
26
+ --gap-8: var(--gap-xs);
25
27
  } :root {
26
28
  } :root {
27
- } .tab-bar__component_yeaqk {
29
+ } .tab-bar__component_bqjx3 {
28
30
  box-sizing: border-box;
29
31
  background-color: transparent;
30
32
  -webkit-tap-highlight-color: transparent;
@@ -46,19 +48,19 @@
46
48
  flex-direction: column;
47
49
  flex: 1 0 0;
48
50
  align-items: center;
49
- padding: var(--gap-xs) 0;
51
+ padding: var(--gap-8) 0;
50
52
  color: var(--color-light-neutral-translucent-700);
51
- } .tab-bar__primary_yeaqk {
53
+ } .tab-bar__primary_bqjx3 {
52
54
  color: var(--color-light-accent-primary);
53
- } .tab-bar__secondary_yeaqk {
55
+ } .tab-bar__secondary_bqjx3 {
54
56
  color: var(--color-light-accent-secondary);
55
- } .tab-bar__icon_yeaqk {
57
+ } .tab-bar__icon_bqjx3 {
56
58
  display: flex;
57
59
  align-items: center;
58
60
  justify-content: center;
59
61
  flex-grow: 1;
60
62
  width: 100%;
61
- } .tab-bar__label_yeaqk {
63
+ } .tab-bar__label_bqjx3 {
62
64
  -webkit-line-clamp: 1;
63
65
  display: -webkit-box;
64
66
  -webkit-box-orient: vertical;
@@ -67,12 +69,12 @@
67
69
  flex-shrink: 0;
68
70
 
69
71
  color: var(--color-light-text-secondary);
70
- } .tab-bar__labelSelected_yeaqk {
72
+ } .tab-bar__labelSelected_bqjx3 {
71
73
  color: inherit;
72
- } .tab-bar__indicator_yeaqk {
74
+ } .tab-bar__indicator_bqjx3 {
73
75
  position: absolute;
74
76
  top: 3px;
75
- left: calc(50% + var(--gap-2xs));
77
+ left: calc(50% + var(--gap-4));
76
78
  height: 16px;
77
79
  min-width: 16px;
78
80
  }
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ro5pb */
1
+ /* hash: 1cyul */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-base-bg-alt-primary: #f2f3f5;
@@ -21,7 +21,7 @@
21
21
  /* новые значения, используйте их */
22
22
  } :root {
23
23
  } :root {
24
- } .tab-bar__component_1ghph {
24
+ } .tab-bar__component_1ppo6 {
25
25
  display: flex;
26
26
  justify-content: center;
27
27
  height: 64px;
@@ -29,10 +29,10 @@
29
29
  box-sizing: border-box;
30
30
  overflow: hidden;
31
31
  transition: box-shadow 0.2s ease
32
- } .tab-bar__component_1ghph.tab-bar__modal-bg-primary_1ghph {
32
+ } .tab-bar__component_1ppo6.tab-bar__modal-bg-primary_1ppo6 {
33
33
  background-color: var(--color-light-base-bg-primary);
34
- } .tab-bar__component_1ghph.tab-bar__modal-bg-alt-primary_1ghph {
34
+ } .tab-bar__component_1ppo6.tab-bar__modal-bg-alt-primary_1ppo6 {
35
35
  background-color: var(--color-light-base-bg-alt-primary);
36
- } .tab-bar__border_1ghph {
36
+ } .tab-bar__border_1ppo6 {
37
37
  box-shadow: 0 -1px 0 0 var(--color-light-neutral-translucent-300);
38
38
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ro5pb */
1
+ /* hash: 1cyul */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-base-bg-alt-primary: #f2f3f5;
@@ -21,7 +21,7 @@
21
21
  /* новые значения, используйте их */
22
22
  } :root {
23
23
  } :root {
24
- } .tab-bar__component_1ghph {
24
+ } .tab-bar__component_1ppo6 {
25
25
  display: flex;
26
26
  justify-content: center;
27
27
  height: 64px;
@@ -29,10 +29,10 @@
29
29
  box-sizing: border-box;
30
30
  overflow: hidden;
31
31
  transition: box-shadow 0.2s ease
32
- } .tab-bar__component_1ghph.tab-bar__modal-bg-primary_1ghph {
32
+ } .tab-bar__component_1ppo6.tab-bar__modal-bg-primary_1ppo6 {
33
33
  background-color: var(--color-light-base-bg-primary);
34
- } .tab-bar__component_1ghph.tab-bar__modal-bg-alt-primary_1ghph {
34
+ } .tab-bar__component_1ppo6.tab-bar__modal-bg-alt-primary_1ppo6 {
35
35
  background-color: var(--color-light-base-bg-alt-primary);
36
- } .tab-bar__border_1ghph {
36
+ } .tab-bar__border_1ppo6 {
37
37
  box-shadow: 0 -1px 0 0 var(--color-light-neutral-translucent-300);
38
38
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
4
  import { Tab } from './components/tab/Component.js';
5
5
 
6
- const styles = {"component":"tab-bar__component_1ghph","modal-bg-primary":"tab-bar__modal-bg-primary_1ghph","modal-bg-alt-primary":"tab-bar__modal-bg-alt-primary_1ghph","border":"tab-bar__border_1ghph"};
6
+ const styles = {"component":"tab-bar__component_1ppo6","modal-bg-primary":"tab-bar__modal-bg-primary_1ppo6","modal-bg-alt-primary":"tab-bar__modal-bg-alt-primary_1ppo6","border":"tab-bar__border_1ppo6"};
7
7
  require('./index.css')
8
8
 
9
9
  const TabBarComponent = forwardRef(({ children, className, selectedId, border, dataTestId, tabClassNames, onChange, accentColor = 'primary', bgColor = 'modal-bg-primary', ...restProps }, ref) => {
@@ -4,7 +4,7 @@ import { Indicator } from '@alfalab/core-components-indicator/modern';
4
4
  import { Typography } from '@alfalab/core-components-typography/modern';
5
5
  import { INDICATOR_BORDER_COLOR, INDICATOR_BG_COLOR } from '../../consts.js';
6
6
 
7
- const styles = {"component":"tab-bar__component_yeaqk","primary":"tab-bar__primary_yeaqk","secondary":"tab-bar__secondary_yeaqk","icon":"tab-bar__icon_yeaqk","label":"tab-bar__label_yeaqk","labelSelected":"tab-bar__labelSelected_yeaqk","indicator":"tab-bar__indicator_yeaqk"};
7
+ const styles = {"component":"tab-bar__component_bqjx3","primary":"tab-bar__primary_bqjx3","secondary":"tab-bar__secondary_bqjx3","icon":"tab-bar__icon_bqjx3","label":"tab-bar__label_bqjx3","labelSelected":"tab-bar__labelSelected_bqjx3","indicator":"tab-bar__indicator_bqjx3"};
8
8
  require('./index.css')
9
9
 
10
10
  const TabComponent = forwardRef(({ showIndicator, indicatorProps, label, icon, id, selected, onChange, onClick, tabClassNames = {}, dataTestId, className, labelClassName, selectedClassName, iconClassName, href, Component = href ? 'a' : 'button', accentColor = 'primary', bgColor = 'modal-bg-primary', ...restProps }, ref) => {
@@ -1,4 +1,4 @@
1
- /* hash: 17yy8 */
1
+ /* hash: 1l5ez */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-accent-primary: #ef3124;
@@ -22,9 +22,11 @@
22
22
  --gap-xs: 8px; /* 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 */
23
23
 
24
24
  /* новые значения, используйте их */
25
+ --gap-4: var(--gap-2xs);
26
+ --gap-8: var(--gap-xs);
25
27
  } :root {
26
28
  } :root {
27
- } .tab-bar__component_yeaqk {
29
+ } .tab-bar__component_bqjx3 {
28
30
  box-sizing: border-box;
29
31
  background-color: transparent;
30
32
  -webkit-tap-highlight-color: transparent;
@@ -46,19 +48,19 @@
46
48
  flex-direction: column;
47
49
  flex: 1 0 0;
48
50
  align-items: center;
49
- padding: var(--gap-xs) 0;
51
+ padding: var(--gap-8) 0;
50
52
  color: var(--color-light-neutral-translucent-700);
51
- } .tab-bar__primary_yeaqk {
53
+ } .tab-bar__primary_bqjx3 {
52
54
  color: var(--color-light-accent-primary);
53
- } .tab-bar__secondary_yeaqk {
55
+ } .tab-bar__secondary_bqjx3 {
54
56
  color: var(--color-light-accent-secondary);
55
- } .tab-bar__icon_yeaqk {
57
+ } .tab-bar__icon_bqjx3 {
56
58
  display: flex;
57
59
  align-items: center;
58
60
  justify-content: center;
59
61
  flex-grow: 1;
60
62
  width: 100%;
61
- } .tab-bar__label_yeaqk {
63
+ } .tab-bar__label_bqjx3 {
62
64
  -webkit-line-clamp: 1;
63
65
  display: -webkit-box;
64
66
  -webkit-box-orient: vertical;
@@ -67,12 +69,12 @@
67
69
  flex-shrink: 0;
68
70
 
69
71
  color: var(--color-light-text-secondary);
70
- } .tab-bar__labelSelected_yeaqk {
72
+ } .tab-bar__labelSelected_bqjx3 {
71
73
  color: inherit;
72
- } .tab-bar__indicator_yeaqk {
74
+ } .tab-bar__indicator_bqjx3 {
73
75
  position: absolute;
74
76
  top: 3px;
75
- left: calc(50% + var(--gap-2xs));
77
+ left: calc(50% + var(--gap-4));
76
78
  height: 16px;
77
79
  min-width: 16px;
78
80
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: ro5pb */
1
+ /* hash: 1cyul */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-base-bg-alt-primary: #f2f3f5;
@@ -21,7 +21,7 @@
21
21
  /* новые значения, используйте их */
22
22
  } :root {
23
23
  } :root {
24
- } .tab-bar__component_1ghph {
24
+ } .tab-bar__component_1ppo6 {
25
25
  display: flex;
26
26
  justify-content: center;
27
27
  height: 64px;
@@ -29,10 +29,10 @@
29
29
  box-sizing: border-box;
30
30
  overflow: hidden;
31
31
  transition: box-shadow 0.2s ease
32
- } .tab-bar__component_1ghph.tab-bar__modal-bg-primary_1ghph {
32
+ } .tab-bar__component_1ppo6.tab-bar__modal-bg-primary_1ppo6 {
33
33
  background-color: var(--color-light-base-bg-primary);
34
- } .tab-bar__component_1ghph.tab-bar__modal-bg-alt-primary_1ghph {
34
+ } .tab-bar__component_1ppo6.tab-bar__modal-bg-alt-primary_1ppo6 {
35
35
  background-color: var(--color-light-base-bg-alt-primary);
36
- } .tab-bar__border_1ghph {
36
+ } .tab-bar__border_1ppo6 {
37
37
  box-shadow: 0 -1px 0 0 var(--color-light-neutral-translucent-300);
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-tab-bar",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,12 +15,12 @@
15
15
  "react-dom": ">=16.8.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-typography": "^4.8.0",
19
- "@alfalab/core-components-indicator": "^2.1.0",
18
+ "@alfalab/core-components-typography": "^4.9.0",
19
+ "@alfalab/core-components-indicator": "^2.1.1",
20
20
  "@alfalab/core-components-shared": "^0.12.0",
21
21
  "classnames": "^2.3.1",
22
22
  "tslib": "^2.4.0"
23
23
  },
24
- "themesVersion": "13.0.1",
24
+ "themesVersion": "13.0.2",
25
25
  "varsVersion": "9.11.1"
26
26
  }
@@ -8,7 +8,7 @@
8
8
  flex-direction: column;
9
9
  flex: 1 0 0;
10
10
  align-items: center;
11
- padding: var(--gap-xs) 0;
11
+ padding: var(--gap-8) 0;
12
12
  color: var(--color-light-neutral-translucent-700);
13
13
  }
14
14
 
@@ -43,7 +43,7 @@
43
43
  .indicator {
44
44
  position: absolute;
45
45
  top: 3px;
46
- left: calc(50% + var(--gap-2xs));
46
+ left: calc(50% + var(--gap-4));
47
47
  height: 16px;
48
48
  min-width: 16px;
49
49
  }