@alfalab/core-components-navigation-bar 0.8.6 → 1.0.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 (126) hide show
  1. package/Component.d.ts +70 -5
  2. package/Component.js +25 -128
  3. package/components/action-icon-addon/Component.d.ts +22 -0
  4. package/components/action-icon-addon/Component.js +32 -0
  5. package/components/action-icon-addon/index.css +44 -0
  6. package/components/action-icon-addon/index.js +9 -0
  7. package/components/action-text-addon/Component.d.ts +26 -0
  8. package/components/action-text-addon/Component.js +25 -0
  9. package/{cssm/components/closer/index.module.css → components/action-text-addon/index.css} +8 -32
  10. package/components/action-text-addon/index.js +9 -0
  11. package/cssm/Component.d.ts +70 -5
  12. package/cssm/Component.js +24 -127
  13. package/cssm/components/action-icon-addon/Component.d.ts +22 -0
  14. package/cssm/components/action-icon-addon/Component.js +31 -0
  15. package/cssm/components/action-icon-addon/index.js +9 -0
  16. package/{modern/components/closer/index.css → cssm/components/action-icon-addon/index.module.css} +23 -28
  17. package/cssm/components/action-text-addon/Component.d.ts +26 -0
  18. package/cssm/components/action-text-addon/Component.js +24 -0
  19. package/cssm/components/action-text-addon/index.js +9 -0
  20. package/cssm/{vars.css → components/action-text-addon/index.module.css} +6 -4
  21. package/cssm/index.d.ts +0 -1
  22. package/cssm/index.module.css +46 -76
  23. package/cssm/shared/index.d.ts +3 -2
  24. package/cssm/shared/index.js +6 -4
  25. package/cssm/utils.d.ts +6 -0
  26. package/cssm/utils.js +15 -0
  27. package/esm/Component.d.ts +70 -5
  28. package/esm/Component.js +26 -128
  29. package/esm/components/action-icon-addon/Component.d.ts +22 -0
  30. package/esm/components/action-icon-addon/Component.js +23 -0
  31. package/esm/components/action-icon-addon/index.css +44 -0
  32. package/esm/components/action-icon-addon/index.js +1 -0
  33. package/esm/components/action-text-addon/Component.d.ts +26 -0
  34. package/esm/components/action-text-addon/Component.js +16 -0
  35. package/esm/components/{closer → action-text-addon}/index.css +8 -33
  36. package/esm/components/action-text-addon/index.js +1 -0
  37. package/esm/index.css +49 -78
  38. package/esm/index.d.ts +0 -1
  39. package/esm/shared/index.d.ts +3 -2
  40. package/esm/shared/index.js +3 -2
  41. package/esm/utils.d.ts +6 -0
  42. package/esm/utils.js +11 -0
  43. package/index.css +49 -78
  44. package/index.d.ts +0 -1
  45. package/modern/Component.d.ts +70 -5
  46. package/modern/Component.js +26 -133
  47. package/modern/components/action-icon-addon/Component.d.ts +22 -0
  48. package/modern/components/action-icon-addon/Component.js +18 -0
  49. package/modern/components/action-icon-addon/index.css +44 -0
  50. package/modern/components/action-icon-addon/index.js +1 -0
  51. package/modern/components/action-text-addon/Component.d.ts +26 -0
  52. package/modern/components/action-text-addon/Component.js +12 -0
  53. package/{components/closer → modern/components/action-text-addon}/index.css +8 -33
  54. package/modern/components/action-text-addon/index.js +1 -0
  55. package/modern/index.css +49 -78
  56. package/modern/index.d.ts +0 -1
  57. package/modern/shared/index.d.ts +3 -2
  58. package/modern/shared/index.js +3 -2
  59. package/modern/utils.d.ts +6 -0
  60. package/modern/utils.js +11 -0
  61. package/package.json +6 -9
  62. package/shared/index.d.ts +3 -2
  63. package/shared/index.js +6 -4
  64. package/src/Component.tsx +183 -264
  65. package/src/components/action-icon-addon/Component.tsx +58 -0
  66. package/src/components/action-icon-addon/index.module.css +40 -0
  67. package/src/components/action-text-addon/Component.tsx +61 -0
  68. package/src/components/action-text-addon/index.module.css +9 -0
  69. package/src/index.module.css +39 -79
  70. package/src/index.ts +0 -1
  71. package/src/shared/index.ts +3 -2
  72. package/src/utils.ts +9 -0
  73. package/utils.d.ts +6 -0
  74. package/utils.js +15 -0
  75. package/components/back-arrow-addon/Component.d.ts +0 -26
  76. package/components/back-arrow-addon/Component.js +0 -35
  77. package/components/back-arrow-addon/index.css +0 -76
  78. package/components/back-arrow-addon/index.js +0 -9
  79. package/components/closer/Component.d.ts +0 -35
  80. package/components/closer/Component.js +0 -32
  81. package/components/closer/index.js +0 -9
  82. package/cssm/components/back-arrow-addon/Component.d.ts +0 -26
  83. package/cssm/components/back-arrow-addon/Component.js +0 -34
  84. package/cssm/components/back-arrow-addon/index.js +0 -9
  85. package/cssm/components/back-arrow-addon/index.module.css +0 -75
  86. package/cssm/components/closer/Component.d.ts +0 -35
  87. package/cssm/components/closer/Component.js +0 -31
  88. package/cssm/components/closer/index.js +0 -9
  89. package/cssm/types.d.ts +0 -118
  90. package/cssm/types.js +0 -2
  91. package/esm/components/back-arrow-addon/Component.d.ts +0 -26
  92. package/esm/components/back-arrow-addon/Component.js +0 -26
  93. package/esm/components/back-arrow-addon/index.css +0 -76
  94. package/esm/components/back-arrow-addon/index.js +0 -1
  95. package/esm/components/closer/Component.d.ts +0 -35
  96. package/esm/components/closer/Component.js +0 -23
  97. package/esm/components/closer/index.js +0 -1
  98. package/esm/types.d.ts +0 -118
  99. package/esm/types.js +0 -1
  100. package/modern/components/back-arrow-addon/Component.d.ts +0 -26
  101. package/modern/components/back-arrow-addon/Component.js +0 -23
  102. package/modern/components/back-arrow-addon/index.css +0 -76
  103. package/modern/components/back-arrow-addon/index.js +0 -1
  104. package/modern/components/closer/Component.d.ts +0 -35
  105. package/modern/components/closer/Component.js +0 -20
  106. package/modern/components/closer/index.js +0 -1
  107. package/modern/types.d.ts +0 -118
  108. package/modern/types.js +0 -1
  109. package/src/components/back-arrow-addon/Component.tsx +0 -79
  110. package/src/components/back-arrow-addon/index.module.css +0 -69
  111. package/src/components/closer/Component.tsx +0 -80
  112. package/src/components/closer/index.module.css +0 -32
  113. package/src/types.ts +0 -143
  114. package/src/vars.css +0 -9
  115. package/types.d.ts +0 -118
  116. package/types.js +0 -2
  117. /package/components/{back-arrow-addon → action-icon-addon}/index.d.ts +0 -0
  118. /package/components/{closer → action-text-addon}/index.d.ts +0 -0
  119. /package/cssm/components/{back-arrow-addon → action-icon-addon}/index.d.ts +0 -0
  120. /package/cssm/components/{closer → action-text-addon}/index.d.ts +0 -0
  121. /package/esm/components/{back-arrow-addon → action-icon-addon}/index.d.ts +0 -0
  122. /package/esm/components/{closer → action-text-addon}/index.d.ts +0 -0
  123. /package/modern/components/{back-arrow-addon → action-icon-addon}/index.d.ts +0 -0
  124. /package/modern/components/{closer → action-text-addon}/index.d.ts +0 -0
  125. /package/src/components/{back-arrow-addon → action-icon-addon}/index.ts +0 -0
  126. /package/src/components/{closer → action-text-addon}/index.ts +0 -0
@@ -1,10 +1,6 @@
1
- /* hash: esnlp */
1
+ /* hash: 1mmbp */
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
- } /* deprecated */ :root {
4
- --color-light-neutral-1500: #0e0e0e;
5
- --color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06);
6
- --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
- --color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
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 */
8
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 */
9
5
  } :root {
10
6
  } :root {
@@ -15,34 +11,13 @@
15
11
 
16
12
  /* Hard up */
17
13
  } :root {
18
- --border-radius-circle: 50%;
19
14
  } :root {
15
+ --gap-xs: 8px;
16
+ --gap-m: 16px;
20
17
  } :root {
21
18
  } :root {
22
- } :root {
23
- /* closer-mobile */
24
- --navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
25
-
26
- /* back-arrow */
27
- } .navigation-bar__closer_1a9q8 {
28
- flex-shrink: 0;
29
- width: 48px;
30
- height: 48px;
31
- margin-left: auto;
32
- display: flex;
33
- align-items: center;
34
- justify-content: center;
35
- } .navigation-bar__button_1a9q8 {
36
- background: var(--color-light-bg-primary-alpha-40);
37
- -webkit-backdrop-filter: blur(10px);
38
- backdrop-filter: blur(10px);
39
- color: var(--color-light-neutral-1500)
40
- } .navigation-bar__button_1a9q8.navigation-bar__mobile_1a9q8 {
41
- background: var(--color-light-neutral-translucent-100);
42
- color: var(--navigation-bar-closer-mobile-color);
43
- } .navigation-bar__button_1a9q8.navigation-bar__button_1a9q8 {
44
- border-radius: var(--border-radius-circle);
45
- } .navigation-bar__sticky_1a9q8 {
46
- position: sticky;
47
- top: 0;
19
+ } .navigation-bar__component_bdo4g {
20
+ height: 100%;
21
+ } .navigation-bar__text_bdo4g {
22
+ padding: var(--gap-xs) var(--gap-m);
48
23
  }
@@ -0,0 +1 @@
1
+ export { ActionTextAddon } from './Component.js';
package/modern/index.css CHANGED
@@ -1,7 +1,8 @@
1
- /* hash: 1ktx4 */
1
+ /* hash: enrea */
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
- --color-light-text-primary: #0e0e0e;
4
+ --color-light-neutral-300: #e7e8eb;
5
+ --color-light-text-primary: rgba(3, 3, 6, 0.88);
5
6
  --color-light-text-secondary: rgba(4, 4, 19, 0.55); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
7
  } :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
8
  } :root {
@@ -15,94 +16,64 @@
15
16
  } :root {
16
17
  } :root {
17
18
  --gap-2xs: 4px;
18
- --gap-s: 12px;
19
+ --gap-xs: 8px;
20
+ --gap-m: 16px;
19
21
  } :root {
20
22
  } :root {
21
- } .navigation-bar__header_1svpa {
22
- width: 100%;
23
+ } .navigation-bar__component_chxq7 {
24
+ padding: var(--gap-xs) var(--gap-2xs);
23
25
  box-sizing: border-box;
24
- transition: box-shadow 0.2s ease, background 0.2s ease
25
- } .navigation-bar__header_1svpa.navigation-bar__header_1svpa.navigation-bar__backgroundImage_1svpa {
26
- background-repeat: no-repeat;
27
- background-position: center;
28
- background-size: cover;
29
- } .navigation-bar__mainLine_1svpa {
30
- display: flex;
31
- align-items: stretch;
32
- justify-content: space-between;
33
- z-index: 1;
34
- background-color: inherit;
35
- } .navigation-bar__mainLineSticky_1svpa {
26
+ width: 100%;
27
+ } .navigation-bar__sticky_chxq7 {
36
28
  position: sticky;
37
29
  top: 0;
38
- } .navigation-bar__mainLineWithImageBg_1svpa {
39
- background-color: initial;
40
- } .navigation-bar__content_1svpa {
41
- color: var(--color-light-text-primary);
30
+ z-index: 1;
31
+ } .navigation-bar__border_chxq7 {
32
+ box-shadow: 0 1px 0 0 var(--color-light-neutral-300);
33
+ } .navigation-bar__mainLine_chxq7 {
34
+ display: flex;
35
+ background-color: inherit;
36
+ justify-content: space-between;
37
+ min-height: 40px;
38
+ align-items: stretch;
39
+ } .navigation-bar__left_chxq7 {
40
+ text-align: left;
41
+ } .navigation-bar__center_chxq7 {
42
+ text-align: center;
43
+ } .navigation-bar__children_chxq7 {
44
+ width: 100%;
45
+ } .navigation-bar__content_chxq7 {
42
46
  display: flex;
43
- flex-flow: column nowrap;
44
- justify-content: center;
45
47
  flex-grow: 1;
46
- align-self: baseline;
47
- box-sizing: border-box;
48
- min-height: 48px
49
- } .navigation-bar__content_1svpa.navigation-bar__withBothAddons_1svpa,
50
- .navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa {
51
- font-size: 16px;
52
- line-height: 20px;
53
- font-weight: 500;
54
- align-self: center;
55
- padding-top: var(--gap-2xs);
56
- padding-bottom: var(--gap-2xs)
57
- } .navigation-bar__content_1svpa.navigation-bar__withBothAddons_1svpa > .navigation-bar__children_1svpa,
58
- .navigation-bar__content_1svpa.navigation-bar__withBothAddons_1svpa > .navigation-bar__title_1svpa,
59
- .navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa > .navigation-bar__children_1svpa,
60
- .navigation-bar__content_1svpa.navigation-bar__withCompactTitle_1svpa > .navigation-bar__title_1svpa {
61
- -webkit-line-clamp: 1;
62
- word-break: break-all;
63
- } .navigation-bar__content_1svpa.navigation-bar__contentOnBotDesktop_1svpa.navigation-bar__contentOnBotDesktop_1svpa {
64
- padding-top: var(--gap-s);
65
- } .navigation-bar__content_1svpa.navigation-bar__contentOnBotMobile_1svpa.navigation-bar__contentOnBotMobile_1svpa {
66
- padding-top: var(--gap-s);
67
- } .navigation-bar__title_1svpa {
68
- word-break: break-word;
69
- } .navigation-bar__subtitle_1svpa {
48
+ justify-content: center;
49
+ flex-flow: column nowrap;
50
+ color: var(--color-light-text-primary)
51
+ } .navigation-bar__content_chxq7.navigation-bar__left_chxq7 {
52
+ padding: 0 var(--gap-m);
53
+ } .navigation-bar__content_chxq7 > .navigation-bar__title_chxq7,
54
+ .navigation-bar__content_chxq7 > .navigation-bar__subtitle_chxq7 {
55
+ -webkit-line-clamp: 1;
56
+ display: -webkit-box;
57
+ -webkit-box-orient: vertical;
58
+ overflow: hidden;
59
+ word-break: break-all;
60
+ } .navigation-bar__title_chxq7 {
61
+ font-size: 16px;
62
+ line-height: 20px;
63
+ font-weight: 500
64
+ } .navigation-bar__title_chxq7.navigation-bar__left_chxq7 {
65
+ font-size: 20px;
66
+ line-height: 28px;
67
+ font-weight: 600;
68
+ } .navigation-bar__subtitle_chxq7 {
70
69
  font-size: 14px;
71
70
  line-height: 20px;
72
71
  font-weight: 400;
73
- -webkit-line-clamp: 1;
74
- display: -webkit-box;
75
- -webkit-box-orient: vertical;
76
- overflow: hidden;
77
-
78
72
  color: var(--color-light-text-secondary);
79
- word-break: break-all;
80
- } .navigation-bar__addonsWrapper_1svpa {
81
- display: flex;
82
- } .navigation-bar__rightAddons_1svpa {
83
- margin-left: auto;
84
- } .navigation-bar__addon_1svpa {
73
+ } .navigation-bar__addons_chxq7 {
85
74
  min-width: 48px;
86
- height: 48px;
87
75
  display: flex;
88
76
  justify-content: center;
89
- align-items: center;
90
- flex-shrink: 0;
91
- pointer-events: all;
92
- } .navigation-bar__bottomAddons_1svpa {
93
- pointer-events: all;
94
- } .navigation-bar__closer_1svpa {
77
+ } .navigation-bar__rightAddons_chxq7 {
95
78
  margin-left: auto;
96
- } .navigation-bar__left_1svpa {
97
- text-align: left;
98
- } .navigation-bar__center_1svpa {
99
- text-align: center;
100
- } .navigation-bar__trim_1svpa {
101
- overflow: hidden
102
- } .navigation-bar__trim_1svpa .navigation-bar__title_1svpa,
103
- .navigation-bar__trim_1svpa .navigation-bar__children_1svpa {
104
- -webkit-line-clamp: 2;
105
- display: -webkit-box;
106
- -webkit-box-orient: vertical;
107
- overflow: hidden;
108
- }
79
+ }
package/modern/index.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from "./Component";
2
- export type { NavigationBarProps } from "./types";
@@ -1,2 +1,3 @@
1
- export * from "../components/closer/index";
2
- export * from "../components/back-arrow-addon/index";
1
+ export * from "../components/action-icon-addon/index";
2
+ export * from "../components/action-text-addon/index";
3
+ export { getNavigationBarTestIds } from "../utils";
@@ -1,2 +1,3 @@
1
- export { Closer } from '../components/closer/Component.js';
2
- export { BackArrowAddon } from '../components/back-arrow-addon/Component.js';
1
+ export { ActionIconAddon } from '../components/action-icon-addon/Component.js';
2
+ export { ActionTextAddon } from '../components/action-text-addon/Component.js';
3
+ export { getNavigationBarTestIds } from '../utils.js';
@@ -0,0 +1,6 @@
1
+ declare function getNavigationBarTestIds(dataTestId: string): {
2
+ navigationBar: string;
3
+ title: string;
4
+ subtitle: string;
5
+ };
6
+ export { getNavigationBarTestIds };
@@ -0,0 +1,11 @@
1
+ import { getDataTestId } from '@alfalab/core-components-shared/modern';
2
+
3
+ function getNavigationBarTestIds(dataTestId) {
4
+ return {
5
+ navigationBar: dataTestId,
6
+ title: getDataTestId(dataTestId, 'title'),
7
+ subtitle: getDataTestId(dataTestId, 'subtitle'),
8
+ };
9
+ }
10
+
11
+ export { getNavigationBarTestIds };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-navigation-bar",
3
- "version": "0.8.6",
4
- "description": "Navigation bar component",
3
+ "version": "1.0.0",
4
+ "description": "NavigationBar",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "main": "index.js",
@@ -10,18 +10,15 @@
10
10
  "access": "public",
11
11
  "directory": "dist"
12
12
  },
13
+ "peerDependencies": {
14
+ "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
+ },
13
16
  "dependencies": {
14
- "@alfalab/core-components-icon-button": "^6.5.5",
15
- "@alfalab/core-components-button": "^11.4.1",
17
+ "@alfalab/core-components-button": "^11.4.2",
16
18
  "@alfalab/core-components-typography": "^4.5.0",
17
19
  "@alfalab/core-components-shared": "^0.9.1",
18
- "@alfalab/hooks": "^1.13.0",
19
20
  "@alfalab/icons-glyph": "^2.139.0",
20
21
  "classnames": "^2.3.1",
21
- "react-merge-refs": "^1.1.0",
22
22
  "tslib": "^2.4.0"
23
- },
24
- "peerDependencies": {
25
- "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
26
23
  }
27
24
  }
package/shared/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export * from "../components/closer/index";
2
- export * from "../components/back-arrow-addon/index";
1
+ export * from "../components/action-icon-addon/index";
2
+ export * from "../components/action-text-addon/index";
3
+ export { getNavigationBarTestIds } from "../utils";
package/shared/index.js CHANGED
@@ -2,10 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_closer_Component = require('../components/closer/Component.js');
6
- var components_backArrowAddon_Component = require('../components/back-arrow-addon/Component.js');
5
+ var components_actionIconAddon_Component = require('../components/action-icon-addon/Component.js');
6
+ var components_actionTextAddon_Component = require('../components/action-text-addon/Component.js');
7
+ var utils = require('../utils.js');
7
8
 
8
9
 
9
10
 
10
- exports.Closer = components_closer_Component.Closer;
11
- exports.BackArrowAddon = components_backArrowAddon_Component.BackArrowAddon;
11
+ exports.ActionIconAddon = components_actionIconAddon_Component.ActionIconAddon;
12
+ exports.ActionTextAddon = components_actionTextAddon_Component.ActionTextAddon;
13
+ exports.getNavigationBarTestIds = utils.getNavigationBarTestIds;