@alfalab/core-components-navigation-bar 0.3.6 → 0.4.0

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.
Files changed (41) hide show
  1. package/Component.js +7 -11
  2. package/components/back-arrow-addon/Component.js +3 -3
  3. package/components/back-arrow-addon/index.css +12 -12
  4. package/components/back-arrow-addon/index.js +1 -1
  5. package/components/closer/Component.js +1 -1
  6. package/components/closer/index.css +5 -5
  7. package/cssm/Component.js +6 -10
  8. package/cssm/components/back-arrow-addon/Component.js +2 -2
  9. package/cssm/components/back-arrow-addon/index.js +1 -1
  10. package/cssm/index.js +2 -1
  11. package/esm/Component.js +3 -7
  12. package/esm/components/back-arrow-addon/Component.js +3 -3
  13. package/esm/components/back-arrow-addon/index.css +12 -12
  14. package/esm/components/back-arrow-addon/index.js +1 -1
  15. package/esm/components/closer/Component.js +1 -1
  16. package/esm/components/closer/index.css +5 -5
  17. package/esm/index.css +27 -27
  18. package/esm/index.js +2 -1
  19. package/index.css +27 -27
  20. package/index.js +2 -1
  21. package/modern/Component.js +3 -7
  22. package/modern/components/back-arrow-addon/Component.js +3 -3
  23. package/modern/components/back-arrow-addon/index.css +12 -12
  24. package/modern/components/back-arrow-addon/index.js +1 -1
  25. package/modern/components/closer/Component.js +1 -1
  26. package/modern/components/closer/index.css +5 -5
  27. package/modern/index.css +27 -27
  28. package/modern/index.js +2 -1
  29. package/package.json +5 -4
  30. package/src/Component.tsx +282 -0
  31. package/src/components/back-arrow-addon/Component.tsx +82 -0
  32. package/src/components/back-arrow-addon/index.module.css +66 -0
  33. package/src/components/back-arrow-addon/index.ts +1 -0
  34. package/src/components/closer/Component.tsx +80 -0
  35. package/src/components/closer/index.module.css +29 -0
  36. package/src/components/closer/index.ts +1 -0
  37. package/src/index.module.css +118 -0
  38. package/src/index.ts +3 -0
  39. package/src/types.ts +137 -0
  40. package/src/vars.css +6 -0
  41. package/send-stats.js +0 -82
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 8c5cb */
1
+ /* hash: 8g8eq */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: #0e0e0e;
@@ -18,26 +18,26 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- } .navigation-bar__header_5ju9g {
21
+ } .navigation-bar__header_134h8 {
22
22
  width: 100%;
23
23
  box-sizing: border-box;
24
24
  transition: box-shadow 0.2s ease, background 0.2s ease
25
- } .navigation-bar__header_5ju9g.navigation-bar__header_5ju9g.navigation-bar__backgroundImage_5ju9g {
25
+ } .navigation-bar__header_134h8.navigation-bar__header_134h8.navigation-bar__backgroundImage_134h8 {
26
26
  background-repeat: no-repeat;
27
27
  background-position: center;
28
28
  background-size: cover;
29
- } .navigation-bar__mainLine_5ju9g {
29
+ } .navigation-bar__mainLine_134h8 {
30
30
  display: flex;
31
31
  align-items: stretch;
32
32
  justify-content: space-between;
33
33
  z-index: 1;
34
34
  background-color: inherit;
35
- } .navigation-bar__mainLineSticky_5ju9g {
35
+ } .navigation-bar__mainLineSticky_134h8 {
36
36
  position: sticky;
37
37
  top: 0;
38
- } .navigation-bar__mainLineWithImageBg_5ju9g {
38
+ } .navigation-bar__mainLineWithImageBg_134h8 {
39
39
  background-color: initial;
40
- } .navigation-bar__content_5ju9g {
40
+ } .navigation-bar__content_134h8 {
41
41
  color: var(--color-light-text-primary);
42
42
  display: flex;
43
43
  flex-flow: column nowrap;
@@ -46,27 +46,27 @@
46
46
  align-self: baseline;
47
47
  box-sizing: border-box;
48
48
  min-height: 48px
49
- } .navigation-bar__content_5ju9g.navigation-bar__withBothAddons_5ju9g,
50
- .navigation-bar__content_5ju9g.navigation-bar__withCompactTitle_5ju9g {
49
+ } .navigation-bar__content_134h8.navigation-bar__withBothAddons_134h8,
50
+ .navigation-bar__content_134h8.navigation-bar__withCompactTitle_134h8 {
51
51
  font-size: 16px;
52
52
  line-height: 20px;
53
53
  font-weight: 500;
54
54
  align-self: center;
55
55
  padding-top: var(--gap-2xs);
56
56
  padding-bottom: var(--gap-2xs)
57
- } .navigation-bar__content_5ju9g.navigation-bar__withBothAddons_5ju9g > .navigation-bar__children_5ju9g,
58
- .navigation-bar__content_5ju9g.navigation-bar__withBothAddons_5ju9g > .navigation-bar__title_5ju9g,
59
- .navigation-bar__content_5ju9g.navigation-bar__withCompactTitle_5ju9g > .navigation-bar__children_5ju9g,
60
- .navigation-bar__content_5ju9g.navigation-bar__withCompactTitle_5ju9g > .navigation-bar__title_5ju9g {
57
+ } .navigation-bar__content_134h8.navigation-bar__withBothAddons_134h8 > .navigation-bar__children_134h8,
58
+ .navigation-bar__content_134h8.navigation-bar__withBothAddons_134h8 > .navigation-bar__title_134h8,
59
+ .navigation-bar__content_134h8.navigation-bar__withCompactTitle_134h8 > .navigation-bar__children_134h8,
60
+ .navigation-bar__content_134h8.navigation-bar__withCompactTitle_134h8 > .navigation-bar__title_134h8 {
61
61
  -webkit-line-clamp: 1;
62
62
  word-break: break-all;
63
- } .navigation-bar__content_5ju9g.navigation-bar__contentOnBotDesktop_5ju9g.navigation-bar__contentOnBotDesktop_5ju9g {
63
+ } .navigation-bar__content_134h8.navigation-bar__contentOnBotDesktop_134h8.navigation-bar__contentOnBotDesktop_134h8 {
64
64
  padding-top: var(--gap-s);
65
- } .navigation-bar__content_5ju9g.navigation-bar__contentOnBotMobile_5ju9g.navigation-bar__contentOnBotMobile_5ju9g {
65
+ } .navigation-bar__content_134h8.navigation-bar__contentOnBotMobile_134h8.navigation-bar__contentOnBotMobile_134h8 {
66
66
  padding-top: var(--gap-s);
67
- } .navigation-bar__title_5ju9g {
67
+ } .navigation-bar__title_134h8 {
68
68
  word-break: break-word;
69
- } .navigation-bar__subtitle_5ju9g {
69
+ } .navigation-bar__subtitle_134h8 {
70
70
  font-size: 14px;
71
71
  line-height: 20px;
72
72
  font-weight: 400;
@@ -77,11 +77,11 @@
77
77
 
78
78
  color: var(--color-light-text-secondary);
79
79
  word-break: break-all;
80
- } .navigation-bar__addonsWrapper_5ju9g {
80
+ } .navigation-bar__addonsWrapper_134h8 {
81
81
  display: flex;
82
- } .navigation-bar__rightAddons_5ju9g {
82
+ } .navigation-bar__rightAddons_134h8 {
83
83
  margin-left: auto;
84
- } .navigation-bar__addon_5ju9g {
84
+ } .navigation-bar__addon_134h8 {
85
85
  min-width: 48px;
86
86
  height: 48px;
87
87
  display: flex;
@@ -89,18 +89,18 @@
89
89
  align-items: center;
90
90
  flex-shrink: 0;
91
91
  pointer-events: all;
92
- } .navigation-bar__bottomAddons_5ju9g {
92
+ } .navigation-bar__bottomAddons_134h8 {
93
93
  pointer-events: all;
94
- } .navigation-bar__closer_5ju9g {
94
+ } .navigation-bar__closer_134h8 {
95
95
  margin-left: auto;
96
- } .navigation-bar__left_5ju9g {
96
+ } .navigation-bar__left_134h8 {
97
97
  text-align: left;
98
- } .navigation-bar__center_5ju9g {
98
+ } .navigation-bar__center_134h8 {
99
99
  text-align: center;
100
- } .navigation-bar__trim_5ju9g {
100
+ } .navigation-bar__trim_134h8 {
101
101
  overflow: hidden
102
- } .navigation-bar__trim_5ju9g .navigation-bar__title_5ju9g,
103
- .navigation-bar__trim_5ju9g .navigation-bar__children_5ju9g {
102
+ } .navigation-bar__trim_134h8 .navigation-bar__title_134h8,
103
+ .navigation-bar__trim_134h8 .navigation-bar__children_134h8 {
104
104
  -webkit-line-clamp: 2;
105
105
  display: -webkit-box;
106
106
  -webkit-box-orient: vertical;
package/index.js CHANGED
@@ -8,9 +8,10 @@ require('tslib');
8
8
  require('react');
9
9
  require('react-merge-refs');
10
10
  require('classnames');
11
+ require('@alfalab/core-components-shared');
11
12
  require('@alfalab/hooks');
12
13
  require('./components/back-arrow-addon/Component.js');
13
- require('@alfalab/core-components-button');
14
+ require('@alfalab/core-components-button/desktop');
14
15
  require('@alfalab/core-components-typography');
15
16
  require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
16
17
  require('@alfalab/icons-glyph/ArrowLeftMIcon');
@@ -1,10 +1,11 @@
1
1
  import React, { forwardRef, useState, useRef, useEffect } from 'react';
2
2
  import mergeRefs from 'react-merge-refs';
3
3
  import cn from 'classnames';
4
+ import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
5
  import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
5
6
  import { BackArrowAddon } from './components/back-arrow-addon/Component.js';
6
7
  import { Closer } from './components/closer/Component.js';
7
- import '@alfalab/core-components-button/modern';
8
+ import '@alfalab/core-components-button/modern/desktop';
8
9
  import '@alfalab/core-components-typography/modern';
9
10
  import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
10
11
  import '@alfalab/icons-glyph/ArrowLeftMIcon';
@@ -12,12 +13,7 @@ import '@alfalab/core-components-icon-button/modern';
12
13
  import '@alfalab/icons-glyph/CrossHeavyMIcon';
13
14
  import '@alfalab/icons-glyph/CrossMIcon';
14
15
 
15
- const getDataTestId = (dataTestId, element) => {
16
- const elementPart = element ? `-${element.toLowerCase()}` : '';
17
- return dataTestId ? `${dataTestId}${elementPart}` : undefined;
18
- };
19
-
20
- const styles = {"header":"navigation-bar__header_5ju9g","backgroundImage":"navigation-bar__backgroundImage_5ju9g","mainLine":"navigation-bar__mainLine_5ju9g","mainLineSticky":"navigation-bar__mainLineSticky_5ju9g","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_5ju9g","content":"navigation-bar__content_5ju9g","withBothAddons":"navigation-bar__withBothAddons_5ju9g","withCompactTitle":"navigation-bar__withCompactTitle_5ju9g","children":"navigation-bar__children_5ju9g","title":"navigation-bar__title_5ju9g","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_5ju9g","contentOnBotMobile":"navigation-bar__contentOnBotMobile_5ju9g","subtitle":"navigation-bar__subtitle_5ju9g","addonsWrapper":"navigation-bar__addonsWrapper_5ju9g","rightAddons":"navigation-bar__rightAddons_5ju9g","addon":"navigation-bar__addon_5ju9g","bottomAddons":"navigation-bar__bottomAddons_5ju9g","closer":"navigation-bar__closer_5ju9g","left":"navigation-bar__left_5ju9g","center":"navigation-bar__center_5ju9g","trim":"navigation-bar__trim_5ju9g"};
16
+ const styles = {"header":"navigation-bar__header_134h8","backgroundImage":"navigation-bar__backgroundImage_134h8","mainLine":"navigation-bar__mainLine_134h8","mainLineSticky":"navigation-bar__mainLineSticky_134h8","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_134h8","content":"navigation-bar__content_134h8","withBothAddons":"navigation-bar__withBothAddons_134h8","withCompactTitle":"navigation-bar__withCompactTitle_134h8","children":"navigation-bar__children_134h8","title":"navigation-bar__title_134h8","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_134h8","contentOnBotMobile":"navigation-bar__contentOnBotMobile_134h8","subtitle":"navigation-bar__subtitle_134h8","addonsWrapper":"navigation-bar__addonsWrapper_134h8","rightAddons":"navigation-bar__rightAddons_134h8","addon":"navigation-bar__addon_134h8","bottomAddons":"navigation-bar__bottomAddons_134h8","closer":"navigation-bar__closer_134h8","left":"navigation-bar__left_134h8","center":"navigation-bar__center_134h8","trim":"navigation-bar__trim_134h8"};
21
17
  require('./index.css')
22
18
 
23
19
  /* eslint-disable complexity */
@@ -1,16 +1,16 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
- import { Button } from '@alfalab/core-components-button/modern';
3
+ import { ButtonDesktop } from '@alfalab/core-components-button/modern/desktop';
4
4
  import { Typography } from '@alfalab/core-components-typography/modern';
5
5
  import { ArrowLeftMediumMIcon } from '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
6
6
  import { ArrowLeftMIcon } from '@alfalab/icons-glyph/ArrowLeftMIcon';
7
7
 
8
- const styles = {"component":"navigation-bar__component_dgd99","mobileComponent":"navigation-bar__mobileComponent_dgd99","flex":"navigation-bar__flex_dgd99","iconWrapper":"navigation-bar__iconWrapper_dgd99","text":"navigation-bar__text_dgd99","mobileWrapper":"navigation-bar__mobileWrapper_dgd99"};
8
+ const styles = {"component":"navigation-bar__component_g90n4","mobileComponent":"navigation-bar__mobileComponent_g90n4","flex":"navigation-bar__flex_g90n4","iconWrapper":"navigation-bar__iconWrapper_g90n4","text":"navigation-bar__text_g90n4","mobileWrapper":"navigation-bar__mobileWrapper_g90n4"};
9
9
  require('./index.css')
10
10
 
11
11
  const BackArrowAddon = ({ text = 'Назад', onClick, className, textOpacity = 1, view, ...htmlAttributes }) => {
12
12
  const Icon = view === 'desktop' ? ArrowLeftMediumMIcon : ArrowLeftMIcon;
13
- return (React.createElement(Button, { view: 'ghost', size: view === 'mobile' ? 'xxs' : 's', onClick: onClick, "aria-label": '\u043D\u0430\u0437\u0430\u0434', className: cn(styles.component, { [styles.mobileComponent]: view === 'mobile' }, className), ...htmlAttributes },
13
+ return (React.createElement(ButtonDesktop, { view: 'ghost', size: view === 'mobile' ? 'xxs' : 's', onClick: onClick, "aria-label": '\u043D\u0430\u0437\u0430\u0434', className: cn(styles.component, { [styles.mobileComponent]: view === 'mobile' }, className), ...htmlAttributes },
14
14
  React.createElement("div", { className: styles.flex },
15
15
  React.createElement("div", { className: cn(styles.iconWrapper, {
16
16
  [styles.mobileWrapper]: view === 'mobile',
@@ -1,4 +1,4 @@
1
- /* hash: 1rhlm */
1
+ /* hash: t3gl7 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-primary: #0e0e0e;
@@ -24,46 +24,46 @@
24
24
  --gap-s: 12px;
25
25
  } :root {
26
26
  } :root {
27
- } .navigation-bar__component_dgd99 {
27
+ } .navigation-bar__component_g90n4 {
28
28
  height: 100%;
29
29
  background: var(--color-light-bg-primary-alpha-40);
30
30
  -webkit-backdrop-filter: blur(10px);
31
31
  backdrop-filter: blur(10px);
32
32
  border-radius: var(--border-radius-pill)
33
- } .navigation-bar__component_dgd99 svg > path {
33
+ } .navigation-bar__component_g90n4 svg > path {
34
34
  transition: fill 0.2s ease;
35
35
  fill: var(--color-light-graphic-primary);
36
- } .navigation-bar__component_dgd99:hover svg > path {
36
+ } .navigation-bar__component_g90n4:hover svg > path {
37
37
  fill: var(--color-light-graphic-primary-tint-20);
38
- } .navigation-bar__component_dgd99:active svg > path {
38
+ } .navigation-bar__component_g90n4:active svg > path {
39
39
  fill: var(--color-light-graphic-primary-tint-30);
40
- } .navigation-bar__mobileComponent_dgd99 {
40
+ } .navigation-bar__mobileComponent_g90n4 {
41
41
  height: 32px;
42
42
  margin: 0 var(--gap-xs);
43
43
  -webkit-backdrop-filter: none;
44
44
  backdrop-filter: none;
45
45
  background: none;
46
- } .navigation-bar__flex_dgd99 {
46
+ } .navigation-bar__flex_g90n4 {
47
47
  display: flex;
48
48
  align-items: center;
49
- } .navigation-bar__iconWrapper_dgd99 {
49
+ } .navigation-bar__iconWrapper_g90n4 {
50
50
  display: inline-flex;
51
51
  align-items: center;
52
52
  justify-content: center;
53
53
  height: 48px;
54
54
  margin: 0 var(--gap-xs) 0 var(--gap-s);
55
55
  border-radius: var(--border-radius-circle)
56
- } .navigation-bar__iconWrapper_dgd99 + .navigation-bar__text_dgd99 {
56
+ } .navigation-bar__iconWrapper_g90n4 + .navigation-bar__text_g90n4 {
57
57
  margin-right: var(--gap-s);
58
- } .navigation-bar__mobileWrapper_dgd99 {
58
+ } .navigation-bar__mobileWrapper_g90n4 {
59
59
  width: 32px;
60
60
  height: 32px;
61
61
  background: var(--color-light-specialbg-secondary-transparent);
62
62
  -webkit-backdrop-filter: blur(10px);
63
63
  backdrop-filter: blur(10px);
64
64
  margin: 0
65
- } .navigation-bar__mobileWrapper_dgd99 + .navigation-bar__text_dgd99 {
65
+ } .navigation-bar__mobileWrapper_g90n4 + .navigation-bar__text_g90n4 {
66
66
  margin: 0 var(--gap-s) 0 var(--gap-xs);
67
- } .navigation-bar__mobileWrapper_dgd99 svg > path {
67
+ } .navigation-bar__mobileWrapper_g90n4 svg > path {
68
68
  fill: var(--color-light-graphic-secondary);
69
69
  }
@@ -1,7 +1,7 @@
1
1
  export { BackArrowAddon } from './Component.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
- import '@alfalab/core-components-button/modern';
4
+ import '@alfalab/core-components-button/modern/desktop';
5
5
  import '@alfalab/core-components-typography/modern';
6
6
  import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
7
7
  import '@alfalab/icons-glyph/ArrowLeftMIcon';
@@ -4,7 +4,7 @@ import { IconButton } from '@alfalab/core-components-icon-button/modern';
4
4
  import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
5
5
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
6
6
 
7
- const styles = {"closer":"navigation-bar__closer_101fn","button":"navigation-bar__button_101fn","mobile":"navigation-bar__mobile_101fn","sticky":"navigation-bar__sticky_101fn"};
7
+ const styles = {"closer":"navigation-bar__closer_1xm2m","button":"navigation-bar__button_1xm2m","mobile":"navigation-bar__mobile_1xm2m","sticky":"navigation-bar__sticky_1xm2m"};
8
8
  require('./index.css')
9
9
 
10
10
  const Closer = ({ view, className, sticky, icon = view === 'desktop' ? CrossHeavyMIcon : CrossMIcon, dataTestId, onClose, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: upjkm */
1
+ /* hash: utmn2 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-graphic-primary: #0e0e0e;
@@ -21,7 +21,7 @@
21
21
  } :root {
22
22
  /* closer-mobile */
23
23
  --navigation-bar-closer-mobile-color: var(--color-light-graphic-secondary);
24
- } .navigation-bar__closer_101fn {
24
+ } .navigation-bar__closer_1xm2m {
25
25
  flex-shrink: 0;
26
26
  width: 48px;
27
27
  height: 48px;
@@ -29,16 +29,16 @@
29
29
  display: flex;
30
30
  align-items: center;
31
31
  justify-content: center;
32
- } .navigation-bar__button_101fn {
32
+ } .navigation-bar__button_1xm2m {
33
33
  background: var(--color-light-bg-primary-alpha-40);
34
34
  -webkit-backdrop-filter: blur(10px);
35
35
  backdrop-filter: blur(10px);
36
36
  border-radius: 50px;
37
37
  color: var(--color-light-graphic-primary)
38
- } .navigation-bar__button_101fn.navigation-bar__mobile_101fn {
38
+ } .navigation-bar__button_1xm2m.navigation-bar__mobile_1xm2m {
39
39
  background: var(--color-light-specialbg-secondary-transparent);
40
40
  color: var(--navigation-bar-closer-mobile-color);
41
- } .navigation-bar__sticky_101fn {
41
+ } .navigation-bar__sticky_1xm2m {
42
42
  position: sticky;
43
43
  top: 0;
44
44
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 8c5cb */
1
+ /* hash: 8g8eq */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: #0e0e0e;
@@ -18,26 +18,26 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- } .navigation-bar__header_5ju9g {
21
+ } .navigation-bar__header_134h8 {
22
22
  width: 100%;
23
23
  box-sizing: border-box;
24
24
  transition: box-shadow 0.2s ease, background 0.2s ease
25
- } .navigation-bar__header_5ju9g.navigation-bar__header_5ju9g.navigation-bar__backgroundImage_5ju9g {
25
+ } .navigation-bar__header_134h8.navigation-bar__header_134h8.navigation-bar__backgroundImage_134h8 {
26
26
  background-repeat: no-repeat;
27
27
  background-position: center;
28
28
  background-size: cover;
29
- } .navigation-bar__mainLine_5ju9g {
29
+ } .navigation-bar__mainLine_134h8 {
30
30
  display: flex;
31
31
  align-items: stretch;
32
32
  justify-content: space-between;
33
33
  z-index: 1;
34
34
  background-color: inherit;
35
- } .navigation-bar__mainLineSticky_5ju9g {
35
+ } .navigation-bar__mainLineSticky_134h8 {
36
36
  position: sticky;
37
37
  top: 0;
38
- } .navigation-bar__mainLineWithImageBg_5ju9g {
38
+ } .navigation-bar__mainLineWithImageBg_134h8 {
39
39
  background-color: initial;
40
- } .navigation-bar__content_5ju9g {
40
+ } .navigation-bar__content_134h8 {
41
41
  color: var(--color-light-text-primary);
42
42
  display: flex;
43
43
  flex-flow: column nowrap;
@@ -46,27 +46,27 @@
46
46
  align-self: baseline;
47
47
  box-sizing: border-box;
48
48
  min-height: 48px
49
- } .navigation-bar__content_5ju9g.navigation-bar__withBothAddons_5ju9g,
50
- .navigation-bar__content_5ju9g.navigation-bar__withCompactTitle_5ju9g {
49
+ } .navigation-bar__content_134h8.navigation-bar__withBothAddons_134h8,
50
+ .navigation-bar__content_134h8.navigation-bar__withCompactTitle_134h8 {
51
51
  font-size: 16px;
52
52
  line-height: 20px;
53
53
  font-weight: 500;
54
54
  align-self: center;
55
55
  padding-top: var(--gap-2xs);
56
56
  padding-bottom: var(--gap-2xs)
57
- } .navigation-bar__content_5ju9g.navigation-bar__withBothAddons_5ju9g > .navigation-bar__children_5ju9g,
58
- .navigation-bar__content_5ju9g.navigation-bar__withBothAddons_5ju9g > .navigation-bar__title_5ju9g,
59
- .navigation-bar__content_5ju9g.navigation-bar__withCompactTitle_5ju9g > .navigation-bar__children_5ju9g,
60
- .navigation-bar__content_5ju9g.navigation-bar__withCompactTitle_5ju9g > .navigation-bar__title_5ju9g {
57
+ } .navigation-bar__content_134h8.navigation-bar__withBothAddons_134h8 > .navigation-bar__children_134h8,
58
+ .navigation-bar__content_134h8.navigation-bar__withBothAddons_134h8 > .navigation-bar__title_134h8,
59
+ .navigation-bar__content_134h8.navigation-bar__withCompactTitle_134h8 > .navigation-bar__children_134h8,
60
+ .navigation-bar__content_134h8.navigation-bar__withCompactTitle_134h8 > .navigation-bar__title_134h8 {
61
61
  -webkit-line-clamp: 1;
62
62
  word-break: break-all;
63
- } .navigation-bar__content_5ju9g.navigation-bar__contentOnBotDesktop_5ju9g.navigation-bar__contentOnBotDesktop_5ju9g {
63
+ } .navigation-bar__content_134h8.navigation-bar__contentOnBotDesktop_134h8.navigation-bar__contentOnBotDesktop_134h8 {
64
64
  padding-top: var(--gap-s);
65
- } .navigation-bar__content_5ju9g.navigation-bar__contentOnBotMobile_5ju9g.navigation-bar__contentOnBotMobile_5ju9g {
65
+ } .navigation-bar__content_134h8.navigation-bar__contentOnBotMobile_134h8.navigation-bar__contentOnBotMobile_134h8 {
66
66
  padding-top: var(--gap-s);
67
- } .navigation-bar__title_5ju9g {
67
+ } .navigation-bar__title_134h8 {
68
68
  word-break: break-word;
69
- } .navigation-bar__subtitle_5ju9g {
69
+ } .navigation-bar__subtitle_134h8 {
70
70
  font-size: 14px;
71
71
  line-height: 20px;
72
72
  font-weight: 400;
@@ -77,11 +77,11 @@
77
77
 
78
78
  color: var(--color-light-text-secondary);
79
79
  word-break: break-all;
80
- } .navigation-bar__addonsWrapper_5ju9g {
80
+ } .navigation-bar__addonsWrapper_134h8 {
81
81
  display: flex;
82
- } .navigation-bar__rightAddons_5ju9g {
82
+ } .navigation-bar__rightAddons_134h8 {
83
83
  margin-left: auto;
84
- } .navigation-bar__addon_5ju9g {
84
+ } .navigation-bar__addon_134h8 {
85
85
  min-width: 48px;
86
86
  height: 48px;
87
87
  display: flex;
@@ -89,18 +89,18 @@
89
89
  align-items: center;
90
90
  flex-shrink: 0;
91
91
  pointer-events: all;
92
- } .navigation-bar__bottomAddons_5ju9g {
92
+ } .navigation-bar__bottomAddons_134h8 {
93
93
  pointer-events: all;
94
- } .navigation-bar__closer_5ju9g {
94
+ } .navigation-bar__closer_134h8 {
95
95
  margin-left: auto;
96
- } .navigation-bar__left_5ju9g {
96
+ } .navigation-bar__left_134h8 {
97
97
  text-align: left;
98
- } .navigation-bar__center_5ju9g {
98
+ } .navigation-bar__center_134h8 {
99
99
  text-align: center;
100
- } .navigation-bar__trim_5ju9g {
100
+ } .navigation-bar__trim_134h8 {
101
101
  overflow: hidden
102
- } .navigation-bar__trim_5ju9g .navigation-bar__title_5ju9g,
103
- .navigation-bar__trim_5ju9g .navigation-bar__children_5ju9g {
102
+ } .navigation-bar__trim_134h8 .navigation-bar__title_134h8,
103
+ .navigation-bar__trim_134h8 .navigation-bar__children_134h8 {
104
104
  -webkit-line-clamp: 2;
105
105
  display: -webkit-box;
106
106
  -webkit-box-orient: vertical;
package/modern/index.js CHANGED
@@ -3,9 +3,10 @@ export { Closer } from './components/closer/Component.js';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
5
5
  import 'classnames';
6
+ import '@alfalab/core-components-shared/modern';
6
7
  import '@alfalab/hooks';
7
8
  import './components/back-arrow-addon/Component.js';
8
- import '@alfalab/core-components-button/modern';
9
+ import '@alfalab/core-components-button/modern/desktop';
9
10
  import '@alfalab/core-components-typography/modern';
10
11
  import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
11
12
  import '@alfalab/icons-glyph/ArrowLeftMIcon';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-navigation-bar",
3
- "version": "0.3.6",
3
+ "version": "0.4.0",
4
4
  "description": "Navigation bar component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -11,9 +11,10 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "dependencies": {
14
- "@alfalab/core-components-icon-button": "^6.1.2",
15
- "@alfalab/core-components-button": "^8.5.0",
16
- "@alfalab/core-components-typography": "^3.2.1",
14
+ "@alfalab/core-components-icon-button": "^6.2.0",
15
+ "@alfalab/core-components-button": "^9.0.0",
16
+ "@alfalab/core-components-typography": "^4.0.0",
17
+ "@alfalab/core-components-shared": "^0.1.0",
17
18
  "@alfalab/hooks": "^1.13.0",
18
19
  "@alfalab/icons-glyph": "^2.108.0",
19
20
  "classnames": "^2.3.1",