@alfalab/core-components-navigation-bar 1.0.0 → 1.0.1

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
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
12
12
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
13
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
14
 
15
- var styles = {"component":"navigation-bar__component_chxq7","sticky":"navigation-bar__sticky_chxq7","border":"navigation-bar__border_chxq7","mainLine":"navigation-bar__mainLine_chxq7","left":"navigation-bar__left_chxq7","center":"navigation-bar__center_chxq7","children":"navigation-bar__children_chxq7","content":"navigation-bar__content_chxq7","title":"navigation-bar__title_chxq7","subtitle":"navigation-bar__subtitle_chxq7","addons":"navigation-bar__addons_chxq7","rightAddons":"navigation-bar__rightAddons_chxq7"};
15
+ var styles = {"component":"navigation-bar__component_4pul0","sticky":"navigation-bar__sticky_4pul0","border":"navigation-bar__border_4pul0","mainLine":"navigation-bar__mainLine_4pul0","left":"navigation-bar__left_4pul0","center":"navigation-bar__center_4pul0","children":"navigation-bar__children_4pul0","content":"navigation-bar__content_4pul0","title":"navigation-bar__title_4pul0","subtitle":"navigation-bar__subtitle_4pul0","addons":"navigation-bar__addons_4pul0","rightAddons":"navigation-bar__rightAddons_4pul0"};
16
16
  require('./index.css')
17
17
 
18
18
  var NavigationBar = function (_a) {
@@ -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":"navigation-bar__component_1ngip","iconWrapper":"navigation-bar__iconWrapper_1ngip","back":"navigation-bar__back_1ngip","floating":"navigation-bar__floating_1ngip"};
17
+ var styles = {"component":"navigation-bar__component_jza5b","iconWrapper":"navigation-bar__iconWrapper_jza5b","back":"navigation-bar__back_jza5b","floating":"navigation-bar__floating_jza5b"};
18
18
  require('./index.css')
19
19
 
20
20
  var iconComponents = {
@@ -1,4 +1,4 @@
1
- /* hash: aan4f */
1
+ /* hash: 134ck */
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-neutral-translucent-100: rgba(38, 55, 88, 0.06);
@@ -20,11 +20,11 @@
20
20
  } :root {
21
21
  } :root {
22
22
  } :root {
23
- } .navigation-bar__component_1ngip {
23
+ } .navigation-bar__component_jza5b {
24
24
  height: 100%;
25
25
  border-radius: var(--border-radius-pill);
26
26
  min-width: 48px;
27
- } .navigation-bar__iconWrapper_1ngip {
27
+ } .navigation-bar__iconWrapper_jza5b {
28
28
  display: inline-flex;
29
29
  align-items: center;
30
30
  justify-content: center;
@@ -33,12 +33,12 @@
33
33
  border-radius: var(--border-radius-circle);
34
34
  background: var(--color-light-neutral-translucent-100);
35
35
  vertical-align: middle
36
- } .navigation-bar__iconWrapper_1ngip.navigation-bar__back_1ngip {
36
+ } .navigation-bar__iconWrapper_jza5b.navigation-bar__back_jza5b {
37
37
  background: transparent;
38
- } .navigation-bar__floating_1ngip path {
38
+ } .navigation-bar__floating_jza5b path {
39
39
  fill: var(--color-light-neutral-translucent-700);
40
- } .navigation-bar__floating_1ngip:hover path {
40
+ } .navigation-bar__floating_jza5b:hover path {
41
41
  fill: var(--color-light-neutral-translucent-700-hover);
42
- } .navigation-bar__floating_1ngip:active path {
42
+ } .navigation-bar__floating_jza5b:active path {
43
43
  fill: var(--color-light-neutral-translucent-700-press);
44
44
  }
@@ -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":"navigation-bar__component_bdo4g","text":"navigation-bar__text_bdo4g"};
16
+ var styles = {"component":"navigation-bar__component_z2hin","text":"navigation-bar__text_z2hin"};
17
17
  require('./index.css')
18
18
 
19
19
  var ActionTextAddon = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1mmbp */
1
+ /* hash: s4yyd */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :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 */
@@ -16,8 +16,8 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .navigation-bar__component_bdo4g {
19
+ } .navigation-bar__component_z2hin {
20
20
  height: 100%;
21
- } .navigation-bar__text_bdo4g {
21
+ } .navigation-bar__text_z2hin {
22
22
  padding: var(--gap-xs) var(--gap-m);
23
23
  }
package/esm/Component.js CHANGED
@@ -3,7 +3,7 @@ import React, { useState, useRef, useEffect } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { getDataTestId } from '@alfalab/core-components-shared/esm';
5
5
 
6
- var styles = {"component":"navigation-bar__component_chxq7","sticky":"navigation-bar__sticky_chxq7","border":"navigation-bar__border_chxq7","mainLine":"navigation-bar__mainLine_chxq7","left":"navigation-bar__left_chxq7","center":"navigation-bar__center_chxq7","children":"navigation-bar__children_chxq7","content":"navigation-bar__content_chxq7","title":"navigation-bar__title_chxq7","subtitle":"navigation-bar__subtitle_chxq7","addons":"navigation-bar__addons_chxq7","rightAddons":"navigation-bar__rightAddons_chxq7"};
6
+ var styles = {"component":"navigation-bar__component_4pul0","sticky":"navigation-bar__sticky_4pul0","border":"navigation-bar__border_4pul0","mainLine":"navigation-bar__mainLine_4pul0","left":"navigation-bar__left_4pul0","center":"navigation-bar__center_4pul0","children":"navigation-bar__children_4pul0","content":"navigation-bar__content_4pul0","title":"navigation-bar__title_4pul0","subtitle":"navigation-bar__subtitle_4pul0","addons":"navigation-bar__addons_4pul0","rightAddons":"navigation-bar__rightAddons_4pul0"};
7
7
  require('./index.css')
8
8
 
9
9
  var NavigationBar = function (_a) {
@@ -5,7 +5,7 @@ import { ButtonDesktop } from '@alfalab/core-components-button/esm/desktop';
5
5
  import { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';
6
6
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
7
7
 
8
- var styles = {"component":"navigation-bar__component_1ngip","iconWrapper":"navigation-bar__iconWrapper_1ngip","back":"navigation-bar__back_1ngip","floating":"navigation-bar__floating_1ngip"};
8
+ var styles = {"component":"navigation-bar__component_jza5b","iconWrapper":"navigation-bar__iconWrapper_jza5b","back":"navigation-bar__back_jza5b","floating":"navigation-bar__floating_jza5b"};
9
9
  require('./index.css')
10
10
 
11
11
  var iconComponents = {
@@ -1,4 +1,4 @@
1
- /* hash: aan4f */
1
+ /* hash: 134ck */
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-neutral-translucent-100: rgba(38, 55, 88, 0.06);
@@ -20,11 +20,11 @@
20
20
  } :root {
21
21
  } :root {
22
22
  } :root {
23
- } .navigation-bar__component_1ngip {
23
+ } .navigation-bar__component_jza5b {
24
24
  height: 100%;
25
25
  border-radius: var(--border-radius-pill);
26
26
  min-width: 48px;
27
- } .navigation-bar__iconWrapper_1ngip {
27
+ } .navigation-bar__iconWrapper_jza5b {
28
28
  display: inline-flex;
29
29
  align-items: center;
30
30
  justify-content: center;
@@ -33,12 +33,12 @@
33
33
  border-radius: var(--border-radius-circle);
34
34
  background: var(--color-light-neutral-translucent-100);
35
35
  vertical-align: middle
36
- } .navigation-bar__iconWrapper_1ngip.navigation-bar__back_1ngip {
36
+ } .navigation-bar__iconWrapper_jza5b.navigation-bar__back_jza5b {
37
37
  background: transparent;
38
- } .navigation-bar__floating_1ngip path {
38
+ } .navigation-bar__floating_jza5b path {
39
39
  fill: var(--color-light-neutral-translucent-700);
40
- } .navigation-bar__floating_1ngip:hover path {
40
+ } .navigation-bar__floating_jza5b:hover path {
41
41
  fill: var(--color-light-neutral-translucent-700-hover);
42
- } .navigation-bar__floating_1ngip:active path {
42
+ } .navigation-bar__floating_jza5b:active path {
43
43
  fill: var(--color-light-neutral-translucent-700-press);
44
44
  }
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { ButtonDesktop } from '@alfalab/core-components-button/esm/desktop';
5
5
  import { Typography } from '@alfalab/core-components-typography/esm';
6
6
 
7
- var styles = {"component":"navigation-bar__component_bdo4g","text":"navigation-bar__text_bdo4g"};
7
+ var styles = {"component":"navigation-bar__component_z2hin","text":"navigation-bar__text_z2hin"};
8
8
  require('./index.css')
9
9
 
10
10
  var ActionTextAddon = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1mmbp */
1
+ /* hash: s4yyd */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :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 */
@@ -16,8 +16,8 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .navigation-bar__component_bdo4g {
19
+ } .navigation-bar__component_z2hin {
20
20
  height: 100%;
21
- } .navigation-bar__text_bdo4g {
21
+ } .navigation-bar__text_z2hin {
22
22
  padding: var(--gap-xs) var(--gap-m);
23
23
  }
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: enrea */
1
+ /* hash: av25u */
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-neutral-300: #e7e8eb;
@@ -20,60 +20,60 @@
20
20
  --gap-m: 16px;
21
21
  } :root {
22
22
  } :root {
23
- } .navigation-bar__component_chxq7 {
23
+ } .navigation-bar__component_4pul0 {
24
24
  padding: var(--gap-xs) var(--gap-2xs);
25
25
  box-sizing: border-box;
26
26
  width: 100%;
27
- } .navigation-bar__sticky_chxq7 {
27
+ } .navigation-bar__sticky_4pul0 {
28
28
  position: sticky;
29
29
  top: 0;
30
30
  z-index: 1;
31
- } .navigation-bar__border_chxq7 {
31
+ } .navigation-bar__border_4pul0 {
32
32
  box-shadow: 0 1px 0 0 var(--color-light-neutral-300);
33
- } .navigation-bar__mainLine_chxq7 {
33
+ } .navigation-bar__mainLine_4pul0 {
34
34
  display: flex;
35
35
  background-color: inherit;
36
36
  justify-content: space-between;
37
37
  min-height: 40px;
38
38
  align-items: stretch;
39
- } .navigation-bar__left_chxq7 {
39
+ } .navigation-bar__left_4pul0 {
40
40
  text-align: left;
41
- } .navigation-bar__center_chxq7 {
41
+ } .navigation-bar__center_4pul0 {
42
42
  text-align: center;
43
- } .navigation-bar__children_chxq7 {
43
+ } .navigation-bar__children_4pul0 {
44
44
  width: 100%;
45
- } .navigation-bar__content_chxq7 {
45
+ } .navigation-bar__content_4pul0 {
46
46
  display: flex;
47
47
  flex-grow: 1;
48
48
  justify-content: center;
49
49
  flex-flow: column nowrap;
50
50
  color: var(--color-light-text-primary)
51
- } .navigation-bar__content_chxq7.navigation-bar__left_chxq7 {
51
+ } .navigation-bar__content_4pul0.navigation-bar__left_4pul0 {
52
52
  padding: 0 var(--gap-m);
53
- } .navigation-bar__content_chxq7 > .navigation-bar__title_chxq7,
54
- .navigation-bar__content_chxq7 > .navigation-bar__subtitle_chxq7 {
53
+ } .navigation-bar__content_4pul0 > .navigation-bar__title_4pul0,
54
+ .navigation-bar__content_4pul0 > .navigation-bar__subtitle_4pul0 {
55
55
  -webkit-line-clamp: 1;
56
56
  display: -webkit-box;
57
57
  -webkit-box-orient: vertical;
58
58
  overflow: hidden;
59
59
  word-break: break-all;
60
- } .navigation-bar__title_chxq7 {
60
+ } .navigation-bar__title_4pul0 {
61
61
  font-size: 16px;
62
62
  line-height: 20px;
63
63
  font-weight: 500
64
- } .navigation-bar__title_chxq7.navigation-bar__left_chxq7 {
64
+ } .navigation-bar__title_4pul0.navigation-bar__left_4pul0 {
65
65
  font-size: 20px;
66
66
  line-height: 28px;
67
67
  font-weight: 600;
68
- } .navigation-bar__subtitle_chxq7 {
68
+ } .navigation-bar__subtitle_4pul0 {
69
69
  font-size: 14px;
70
70
  line-height: 20px;
71
71
  font-weight: 400;
72
72
  color: var(--color-light-text-secondary);
73
- } .navigation-bar__addons_chxq7 {
73
+ } .navigation-bar__addons_4pul0 {
74
74
  min-width: 48px;
75
75
  display: flex;
76
76
  justify-content: center;
77
- } .navigation-bar__rightAddons_chxq7 {
77
+ } .navigation-bar__rightAddons_4pul0 {
78
78
  margin-left: auto;
79
79
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: enrea */
1
+ /* hash: av25u */
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-neutral-300: #e7e8eb;
@@ -20,60 +20,60 @@
20
20
  --gap-m: 16px;
21
21
  } :root {
22
22
  } :root {
23
- } .navigation-bar__component_chxq7 {
23
+ } .navigation-bar__component_4pul0 {
24
24
  padding: var(--gap-xs) var(--gap-2xs);
25
25
  box-sizing: border-box;
26
26
  width: 100%;
27
- } .navigation-bar__sticky_chxq7 {
27
+ } .navigation-bar__sticky_4pul0 {
28
28
  position: sticky;
29
29
  top: 0;
30
30
  z-index: 1;
31
- } .navigation-bar__border_chxq7 {
31
+ } .navigation-bar__border_4pul0 {
32
32
  box-shadow: 0 1px 0 0 var(--color-light-neutral-300);
33
- } .navigation-bar__mainLine_chxq7 {
33
+ } .navigation-bar__mainLine_4pul0 {
34
34
  display: flex;
35
35
  background-color: inherit;
36
36
  justify-content: space-between;
37
37
  min-height: 40px;
38
38
  align-items: stretch;
39
- } .navigation-bar__left_chxq7 {
39
+ } .navigation-bar__left_4pul0 {
40
40
  text-align: left;
41
- } .navigation-bar__center_chxq7 {
41
+ } .navigation-bar__center_4pul0 {
42
42
  text-align: center;
43
- } .navigation-bar__children_chxq7 {
43
+ } .navigation-bar__children_4pul0 {
44
44
  width: 100%;
45
- } .navigation-bar__content_chxq7 {
45
+ } .navigation-bar__content_4pul0 {
46
46
  display: flex;
47
47
  flex-grow: 1;
48
48
  justify-content: center;
49
49
  flex-flow: column nowrap;
50
50
  color: var(--color-light-text-primary)
51
- } .navigation-bar__content_chxq7.navigation-bar__left_chxq7 {
51
+ } .navigation-bar__content_4pul0.navigation-bar__left_4pul0 {
52
52
  padding: 0 var(--gap-m);
53
- } .navigation-bar__content_chxq7 > .navigation-bar__title_chxq7,
54
- .navigation-bar__content_chxq7 > .navigation-bar__subtitle_chxq7 {
53
+ } .navigation-bar__content_4pul0 > .navigation-bar__title_4pul0,
54
+ .navigation-bar__content_4pul0 > .navigation-bar__subtitle_4pul0 {
55
55
  -webkit-line-clamp: 1;
56
56
  display: -webkit-box;
57
57
  -webkit-box-orient: vertical;
58
58
  overflow: hidden;
59
59
  word-break: break-all;
60
- } .navigation-bar__title_chxq7 {
60
+ } .navigation-bar__title_4pul0 {
61
61
  font-size: 16px;
62
62
  line-height: 20px;
63
63
  font-weight: 500
64
- } .navigation-bar__title_chxq7.navigation-bar__left_chxq7 {
64
+ } .navigation-bar__title_4pul0.navigation-bar__left_4pul0 {
65
65
  font-size: 20px;
66
66
  line-height: 28px;
67
67
  font-weight: 600;
68
- } .navigation-bar__subtitle_chxq7 {
68
+ } .navigation-bar__subtitle_4pul0 {
69
69
  font-size: 14px;
70
70
  line-height: 20px;
71
71
  font-weight: 400;
72
72
  color: var(--color-light-text-secondary);
73
- } .navigation-bar__addons_chxq7 {
73
+ } .navigation-bar__addons_4pul0 {
74
74
  min-width: 48px;
75
75
  display: flex;
76
76
  justify-content: center;
77
- } .navigation-bar__rightAddons_chxq7 {
77
+ } .navigation-bar__rightAddons_4pul0 {
78
78
  margin-left: auto;
79
79
  }
@@ -2,7 +2,7 @@ import React, { useState, useRef, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { getDataTestId } from '@alfalab/core-components-shared/modern';
4
4
 
5
- const styles = {"component":"navigation-bar__component_chxq7","sticky":"navigation-bar__sticky_chxq7","border":"navigation-bar__border_chxq7","mainLine":"navigation-bar__mainLine_chxq7","left":"navigation-bar__left_chxq7","center":"navigation-bar__center_chxq7","children":"navigation-bar__children_chxq7","content":"navigation-bar__content_chxq7","title":"navigation-bar__title_chxq7","subtitle":"navigation-bar__subtitle_chxq7","addons":"navigation-bar__addons_chxq7","rightAddons":"navigation-bar__rightAddons_chxq7"};
5
+ const styles = {"component":"navigation-bar__component_4pul0","sticky":"navigation-bar__sticky_4pul0","border":"navigation-bar__border_4pul0","mainLine":"navigation-bar__mainLine_4pul0","left":"navigation-bar__left_4pul0","center":"navigation-bar__center_4pul0","children":"navigation-bar__children_4pul0","content":"navigation-bar__content_4pul0","title":"navigation-bar__title_4pul0","subtitle":"navigation-bar__subtitle_4pul0","addons":"navigation-bar__addons_4pul0","rightAddons":"navigation-bar__rightAddons_4pul0"};
6
6
  require('./index.css')
7
7
 
8
8
  const NavigationBar = ({ align = 'center', rightAddons, leftAddons, bottomAddons, sticky, border, subtitle, title, children, backgroundColor = 'var(--color-light-base-bg-primary)', className, contentClassName, rightAddonsClassName, leftAddonsClassName, bottomAddonsClassName, dataTestId, }) => {
@@ -4,7 +4,7 @@ import { ButtonDesktop } from '@alfalab/core-components-button/modern/desktop';
4
4
  import { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';
5
5
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
6
6
 
7
- const styles = {"component":"navigation-bar__component_1ngip","iconWrapper":"navigation-bar__iconWrapper_1ngip","back":"navigation-bar__back_1ngip","floating":"navigation-bar__floating_1ngip"};
7
+ const styles = {"component":"navigation-bar__component_jza5b","iconWrapper":"navigation-bar__iconWrapper_jza5b","back":"navigation-bar__back_jza5b","floating":"navigation-bar__floating_jza5b"};
8
8
  require('./index.css')
9
9
 
10
10
  const iconComponents = {
@@ -1,4 +1,4 @@
1
- /* hash: aan4f */
1
+ /* hash: 134ck */
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-neutral-translucent-100: rgba(38, 55, 88, 0.06);
@@ -20,11 +20,11 @@
20
20
  } :root {
21
21
  } :root {
22
22
  } :root {
23
- } .navigation-bar__component_1ngip {
23
+ } .navigation-bar__component_jza5b {
24
24
  height: 100%;
25
25
  border-radius: var(--border-radius-pill);
26
26
  min-width: 48px;
27
- } .navigation-bar__iconWrapper_1ngip {
27
+ } .navigation-bar__iconWrapper_jza5b {
28
28
  display: inline-flex;
29
29
  align-items: center;
30
30
  justify-content: center;
@@ -33,12 +33,12 @@
33
33
  border-radius: var(--border-radius-circle);
34
34
  background: var(--color-light-neutral-translucent-100);
35
35
  vertical-align: middle
36
- } .navigation-bar__iconWrapper_1ngip.navigation-bar__back_1ngip {
36
+ } .navigation-bar__iconWrapper_jza5b.navigation-bar__back_jza5b {
37
37
  background: transparent;
38
- } .navigation-bar__floating_1ngip path {
38
+ } .navigation-bar__floating_jza5b path {
39
39
  fill: var(--color-light-neutral-translucent-700);
40
- } .navigation-bar__floating_1ngip:hover path {
40
+ } .navigation-bar__floating_jza5b:hover path {
41
41
  fill: var(--color-light-neutral-translucent-700-hover);
42
- } .navigation-bar__floating_1ngip:active path {
42
+ } .navigation-bar__floating_jza5b:active path {
43
43
  fill: var(--color-light-neutral-translucent-700-press);
44
44
  }
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { ButtonDesktop } from '@alfalab/core-components-button/modern/desktop';
4
4
  import { Typography } from '@alfalab/core-components-typography/modern';
5
5
 
6
- const styles = {"component":"navigation-bar__component_bdo4g","text":"navigation-bar__text_bdo4g"};
6
+ const styles = {"component":"navigation-bar__component_z2hin","text":"navigation-bar__text_z2hin"};
7
7
  require('./index.css')
8
8
 
9
9
  const ActionTextAddon = ({ text = 'Назад', onClick, className, action, dataTestId, ...htmlAttributes }) => (React.createElement(ButtonDesktop, { view: 'text', size: 's', onClick: onClick, "aria-label": text, className: cn(styles.component, className), dataTestId: dataTestId, ...htmlAttributes },
@@ -1,4 +1,4 @@
1
- /* hash: 1mmbp */
1
+ /* hash: s4yyd */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :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 */
@@ -16,8 +16,8 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .navigation-bar__component_bdo4g {
19
+ } .navigation-bar__component_z2hin {
20
20
  height: 100%;
21
- } .navigation-bar__text_bdo4g {
21
+ } .navigation-bar__text_z2hin {
22
22
  padding: var(--gap-xs) var(--gap-m);
23
23
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: enrea */
1
+ /* hash: av25u */
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-neutral-300: #e7e8eb;
@@ -20,60 +20,60 @@
20
20
  --gap-m: 16px;
21
21
  } :root {
22
22
  } :root {
23
- } .navigation-bar__component_chxq7 {
23
+ } .navigation-bar__component_4pul0 {
24
24
  padding: var(--gap-xs) var(--gap-2xs);
25
25
  box-sizing: border-box;
26
26
  width: 100%;
27
- } .navigation-bar__sticky_chxq7 {
27
+ } .navigation-bar__sticky_4pul0 {
28
28
  position: sticky;
29
29
  top: 0;
30
30
  z-index: 1;
31
- } .navigation-bar__border_chxq7 {
31
+ } .navigation-bar__border_4pul0 {
32
32
  box-shadow: 0 1px 0 0 var(--color-light-neutral-300);
33
- } .navigation-bar__mainLine_chxq7 {
33
+ } .navigation-bar__mainLine_4pul0 {
34
34
  display: flex;
35
35
  background-color: inherit;
36
36
  justify-content: space-between;
37
37
  min-height: 40px;
38
38
  align-items: stretch;
39
- } .navigation-bar__left_chxq7 {
39
+ } .navigation-bar__left_4pul0 {
40
40
  text-align: left;
41
- } .navigation-bar__center_chxq7 {
41
+ } .navigation-bar__center_4pul0 {
42
42
  text-align: center;
43
- } .navigation-bar__children_chxq7 {
43
+ } .navigation-bar__children_4pul0 {
44
44
  width: 100%;
45
- } .navigation-bar__content_chxq7 {
45
+ } .navigation-bar__content_4pul0 {
46
46
  display: flex;
47
47
  flex-grow: 1;
48
48
  justify-content: center;
49
49
  flex-flow: column nowrap;
50
50
  color: var(--color-light-text-primary)
51
- } .navigation-bar__content_chxq7.navigation-bar__left_chxq7 {
51
+ } .navigation-bar__content_4pul0.navigation-bar__left_4pul0 {
52
52
  padding: 0 var(--gap-m);
53
- } .navigation-bar__content_chxq7 > .navigation-bar__title_chxq7,
54
- .navigation-bar__content_chxq7 > .navigation-bar__subtitle_chxq7 {
53
+ } .navigation-bar__content_4pul0 > .navigation-bar__title_4pul0,
54
+ .navigation-bar__content_4pul0 > .navigation-bar__subtitle_4pul0 {
55
55
  -webkit-line-clamp: 1;
56
56
  display: -webkit-box;
57
57
  -webkit-box-orient: vertical;
58
58
  overflow: hidden;
59
59
  word-break: break-all;
60
- } .navigation-bar__title_chxq7 {
60
+ } .navigation-bar__title_4pul0 {
61
61
  font-size: 16px;
62
62
  line-height: 20px;
63
63
  font-weight: 500
64
- } .navigation-bar__title_chxq7.navigation-bar__left_chxq7 {
64
+ } .navigation-bar__title_4pul0.navigation-bar__left_4pul0 {
65
65
  font-size: 20px;
66
66
  line-height: 28px;
67
67
  font-weight: 600;
68
- } .navigation-bar__subtitle_chxq7 {
68
+ } .navigation-bar__subtitle_4pul0 {
69
69
  font-size: 14px;
70
70
  line-height: 20px;
71
71
  font-weight: 400;
72
72
  color: var(--color-light-text-secondary);
73
- } .navigation-bar__addons_chxq7 {
73
+ } .navigation-bar__addons_4pul0 {
74
74
  min-width: 48px;
75
75
  display: flex;
76
76
  justify-content: center;
77
- } .navigation-bar__rightAddons_chxq7 {
77
+ } .navigation-bar__rightAddons_4pul0 {
78
78
  margin-left: auto;
79
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-navigation-bar",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "NavigationBar",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,9 +14,9 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-button": "^11.4.2",
18
- "@alfalab/core-components-typography": "^4.5.0",
19
- "@alfalab/core-components-shared": "^0.9.1",
17
+ "@alfalab/core-components-button": "^11.4.3",
18
+ "@alfalab/core-components-typography": "^4.5.1",
19
+ "@alfalab/core-components-shared": "^0.10.0",
20
20
  "@alfalab/icons-glyph": "^2.139.0",
21
21
  "classnames": "^2.3.1",
22
22
  "tslib": "^2.4.0"