@alfalab/core-components-navigation-bar 0.1.2 → 0.2.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.d.ts +3 -2
  2. package/Component.js +18 -9
  3. package/components/back-arrow-addon/Component.js +3 -1
  4. package/components/back-arrow-addon/index.css +18 -18
  5. package/components/back-arrow-addon/index.js +2 -0
  6. package/components/closer/Component.js +3 -1
  7. package/components/closer/index.css +9 -9
  8. package/components/closer/index.js +2 -0
  9. package/cssm/Component.d.ts +3 -2
  10. package/cssm/Component.js +17 -8
  11. package/cssm/components/back-arrow-addon/Component.js +2 -0
  12. package/cssm/components/back-arrow-addon/index.js +2 -0
  13. package/cssm/components/back-arrow-addon/index.module.css +6 -6
  14. package/cssm/components/closer/Component.js +2 -0
  15. package/cssm/components/closer/index.js +2 -0
  16. package/cssm/components/closer/index.module.css +4 -4
  17. package/cssm/index.js +3 -0
  18. package/cssm/index.module.css +3 -3
  19. package/cssm/types.d.ts +1 -1
  20. package/esm/Component.d.ts +3 -2
  21. package/esm/Component.js +16 -10
  22. package/esm/components/back-arrow-addon/Component.js +1 -1
  23. package/esm/components/back-arrow-addon/index.css +18 -18
  24. package/esm/components/closer/Component.js +1 -1
  25. package/esm/components/closer/index.css +9 -9
  26. package/esm/index.css +30 -30
  27. package/esm/index.js +1 -0
  28. package/esm/types.d.ts +1 -1
  29. package/index.css +30 -30
  30. package/index.js +3 -0
  31. package/modern/Component.d.ts +3 -2
  32. package/modern/Component.js +16 -10
  33. package/modern/components/back-arrow-addon/Component.js +1 -1
  34. package/modern/components/back-arrow-addon/index.css +18 -18
  35. package/modern/components/closer/Component.js +1 -1
  36. package/modern/components/closer/index.css +9 -9
  37. package/modern/index.css +30 -30
  38. package/modern/index.js +1 -0
  39. package/modern/types.d.ts +1 -1
  40. package/package.json +4 -4
  41. package/types.d.ts +1 -1
@@ -1,11 +1,11 @@
1
- /* hash: 1lpkd */
1
+ /* hash: fjemv */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-graphic-primary: #0b1f35;
5
- --color-light-graphic-secondary: #6d7986;
6
- --color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05);
4
+ --color-light-graphic-primary: #0e0e0e;
5
+ --color-light-graphic-secondary: #86868a;
6
+ --color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
7
7
  --color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
8
- } :root {
8
+ } :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 */
9
9
  } :root {
10
10
  } :root {
11
11
 
@@ -18,7 +18,7 @@
18
18
  } :root {
19
19
  } :root {
20
20
  } :root {
21
- } .navigation-bar__closer_kmb9l {
21
+ } .navigation-bar__closer_ylt19 {
22
22
  flex-shrink: 0;
23
23
  width: 48px;
24
24
  height: 48px;
@@ -26,16 +26,16 @@
26
26
  display: flex;
27
27
  align-items: center;
28
28
  justify-content: center;
29
- } .navigation-bar__button_kmb9l {
29
+ } .navigation-bar__button_ylt19 {
30
30
  background: var(--color-light-bg-primary-alpha-40);
31
31
  -webkit-backdrop-filter: blur(10px);
32
32
  backdrop-filter: blur(10px);
33
33
  border-radius: 50px;
34
34
  color: var(--color-light-graphic-primary)
35
- } .navigation-bar__button_kmb9l.navigation-bar__mobile_kmb9l {
35
+ } .navigation-bar__button_ylt19.navigation-bar__mobile_ylt19 {
36
36
  background: var(--color-light-specialbg-secondary-transparent);
37
37
  color: var(--color-light-graphic-secondary);
38
- } .navigation-bar__sticky_kmb9l {
38
+ } .navigation-bar__sticky_ylt19 {
39
39
  position: sticky;
40
40
  top: 0;
41
41
  }
package/modern/index.css CHANGED
@@ -1,9 +1,9 @@
1
- /* hash: zc64y */
1
+ /* hash: 1s74g */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-text-primary: #0b1f35;
5
- --color-light-text-secondary: rgba(11, 31, 53, 0.7);
6
- } :root {
4
+ --color-light-text-primary: #0e0e0e;
5
+ --color-light-text-secondary: rgba(60, 60, 67, 0.66); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
+ } :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 */
7
7
  } :root {
8
8
  } :root {
9
9
 
@@ -18,26 +18,26 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- } .navigation-bar__header_5ow3j {
21
+ } .navigation-bar__header_1p62k {
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_5ow3j.navigation-bar__header_5ow3j.navigation-bar__backgroundImage_5ow3j {
25
+ } .navigation-bar__header_1p62k.navigation-bar__header_1p62k.navigation-bar__backgroundImage_1p62k {
26
26
  background-repeat: no-repeat;
27
27
  background-position: center;
28
28
  background-size: cover;
29
- } .navigation-bar__mainLine_5ow3j {
29
+ } .navigation-bar__mainLine_1p62k {
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_5ow3j {
35
+ } .navigation-bar__mainLineSticky_1p62k {
36
36
  position: sticky;
37
37
  top: 0;
38
- } .navigation-bar__mainLineWithImageBg_5ow3j {
38
+ } .navigation-bar__mainLineWithImageBg_1p62k {
39
39
  background-color: initial;
40
- } .navigation-bar__content_5ow3j {
40
+ } .navigation-bar__content_1p62k {
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_5ow3j.navigation-bar__withBothAddons_5ow3j,
50
- .navigation-bar__content_5ow3j.navigation-bar__withCompactTitle_5ow3j {
49
+ } .navigation-bar__content_1p62k.navigation-bar__withBothAddons_1p62k,
50
+ .navigation-bar__content_1p62k.navigation-bar__withCompactTitle_1p62k {
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_5ow3j.navigation-bar__withBothAddons_5ow3j > .navigation-bar__children_5ow3j,
58
- .navigation-bar__content_5ow3j.navigation-bar__withBothAddons_5ow3j > .navigation-bar__title_5ow3j,
59
- .navigation-bar__content_5ow3j.navigation-bar__withCompactTitle_5ow3j > .navigation-bar__children_5ow3j,
60
- .navigation-bar__content_5ow3j.navigation-bar__withCompactTitle_5ow3j > .navigation-bar__title_5ow3j {
57
+ } .navigation-bar__content_1p62k.navigation-bar__withBothAddons_1p62k > .navigation-bar__children_1p62k,
58
+ .navigation-bar__content_1p62k.navigation-bar__withBothAddons_1p62k > .navigation-bar__title_1p62k,
59
+ .navigation-bar__content_1p62k.navigation-bar__withCompactTitle_1p62k > .navigation-bar__children_1p62k,
60
+ .navigation-bar__content_1p62k.navigation-bar__withCompactTitle_1p62k > .navigation-bar__title_1p62k {
61
61
  -webkit-line-clamp: 1;
62
62
  word-break: break-all;
63
- } .navigation-bar__content_5ow3j.navigation-bar__contentOnBotDesktop_5ow3j.navigation-bar__contentOnBotDesktop_5ow3j {
63
+ } .navigation-bar__content_1p62k.navigation-bar__contentOnBotDesktop_1p62k.navigation-bar__contentOnBotDesktop_1p62k {
64
64
  padding-top: var(--gap-s);
65
- } .navigation-bar__content_5ow3j.navigation-bar__contentOnBotMobile_5ow3j.navigation-bar__contentOnBotMobile_5ow3j {
65
+ } .navigation-bar__content_1p62k.navigation-bar__contentOnBotMobile_1p62k.navigation-bar__contentOnBotMobile_1p62k {
66
66
  padding-top: var(--gap-s);
67
- } .navigation-bar__title_5ow3j {
67
+ } .navigation-bar__title_1p62k {
68
68
  word-break: break-word;
69
- } .navigation-bar__subtitle_5ow3j {
69
+ } .navigation-bar__subtitle_1p62k {
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_5ow3j {
80
+ } .navigation-bar__addonsWrapper_1p62k {
81
81
  display: flex;
82
- } .navigation-bar__rightAddons_5ow3j {
82
+ } .navigation-bar__rightAddons_1p62k {
83
83
  margin-left: auto;
84
- } .navigation-bar__addon_5ow3j {
84
+ } .navigation-bar__addon_1p62k {
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_5ow3j {
92
+ } .navigation-bar__bottomAddons_1p62k {
93
93
  pointer-events: all;
94
- } .navigation-bar__closer_5ow3j {
94
+ } .navigation-bar__closer_1p62k {
95
95
  margin-left: auto;
96
- } .navigation-bar__left_5ow3j {
96
+ } .navigation-bar__left_1p62k {
97
97
  text-align: left;
98
- } .navigation-bar__center_5ow3j {
98
+ } .navigation-bar__center_1p62k {
99
99
  text-align: center;
100
- } .navigation-bar__trim_5ow3j {
100
+ } .navigation-bar__trim_1p62k {
101
101
  overflow: hidden
102
- } .navigation-bar__trim_5ow3j .navigation-bar__title_5ow3j,
103
- .navigation-bar__trim_5ow3j .navigation-bar__children_5ow3j {
102
+ } .navigation-bar__trim_1p62k .navigation-bar__title_1p62k,
103
+ .navigation-bar__trim_1p62k .navigation-bar__children_1p62k {
104
104
  -webkit-line-clamp: 2;
105
105
  display: -webkit-box;
106
106
  -webkit-box-orient: vertical;
package/modern/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { NavigationBar } from './Component.js';
2
2
  export { Closer } from './components/closer/Component.js';
3
3
  import 'react';
4
+ import 'react-merge-refs';
4
5
  import 'classnames';
5
6
  import '@alfalab/hooks';
6
7
  import './components/back-arrow-addon/Component.js';
package/modern/types.d.ts CHANGED
@@ -106,7 +106,7 @@ type NavigationBarProps = {
106
106
  };
107
107
  type ContentParams = {
108
108
  extraClassName?: string;
109
- ref?: React.RefObject<HTMLDivElement>;
109
+ wrapperRef?: React.RefObject<HTMLDivElement>;
110
110
  style?: React.CSSProperties;
111
111
  hidden?: boolean;
112
112
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-navigation-bar",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Navigation bar component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -11,9 +11,9 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "dependencies": {
14
- "@alfalab/core-components-icon-button": "^6.0.8",
15
- "@alfalab/core-components-button": "^7.1.1",
16
- "@alfalab/core-components-typography": "^3.2.0",
14
+ "@alfalab/core-components-icon-button": "^6.0.9",
15
+ "@alfalab/core-components-button": "^8.0.0",
16
+ "@alfalab/core-components-typography": "^3.2.1",
17
17
  "@alfalab/hooks": "^1.13.0",
18
18
  "@alfalab/icons-glyph": "^2.89.0",
19
19
  "classnames": "^2.3.1",
package/types.d.ts CHANGED
@@ -106,7 +106,7 @@ type NavigationBarProps = {
106
106
  };
107
107
  type ContentParams = {
108
108
  extraClassName?: string;
109
- ref?: React.RefObject<HTMLDivElement>;
109
+ wrapperRef?: React.RefObject<HTMLDivElement>;
110
110
  style?: React.CSSProperties;
111
111
  hidden?: boolean;
112
112
  };