@alfalab/core-components-navigation-bar 0.8.1 → 0.8.2
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 +1 -8
- package/components/back-arrow-addon/Component.js +1 -1
- package/components/back-arrow-addon/index.css +12 -12
- package/components/back-arrow-addon/index.js +0 -7
- package/components/closer/Component.js +1 -1
- package/components/closer/index.css +6 -6
- package/components/closer/index.js +0 -6
- package/cssm/Component.js +0 -9
- package/cssm/components/back-arrow-addon/index.js +0 -8
- package/cssm/components/closer/index.js +0 -7
- package/cssm/index.js +0 -18
- package/cssm/shared/index.js +0 -12
- package/esm/Component.js +1 -8
- package/esm/components/back-arrow-addon/Component.js +1 -1
- package/esm/components/back-arrow-addon/index.css +12 -12
- package/esm/components/back-arrow-addon/index.js +0 -7
- package/esm/components/closer/Component.js +1 -1
- package/esm/components/closer/index.css +6 -6
- package/esm/components/closer/index.js +0 -6
- package/esm/index.css +27 -27
- package/esm/index.js +0 -15
- package/esm/shared/index.js +0 -10
- package/index.css +27 -27
- package/index.js +0 -15
- package/modern/Component.js +1 -8
- package/modern/components/back-arrow-addon/Component.js +1 -1
- package/modern/components/back-arrow-addon/index.css +12 -12
- package/modern/components/back-arrow-addon/index.js +0 -6
- package/modern/components/closer/Component.js +1 -1
- package/modern/components/closer/index.css +6 -6
- package/modern/components/closer/index.js +0 -5
- package/modern/index.css +27 -27
- package/modern/index.js +0 -14
- package/modern/shared/index.js +0 -9
- package/package.json +4 -4
- package/shared/index.js +0 -10
package/Component.js
CHANGED
|
@@ -10,13 +10,6 @@ var coreComponentsShared = require('@alfalab/core-components-shared');
|
|
|
10
10
|
var hooks = require('@alfalab/hooks');
|
|
11
11
|
var components_backArrowAddon_Component = require('./components/back-arrow-addon/Component.js');
|
|
12
12
|
var components_closer_Component = require('./components/closer/Component.js');
|
|
13
|
-
require('@alfalab/core-components-button/desktop');
|
|
14
|
-
require('@alfalab/core-components-typography');
|
|
15
|
-
require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
|
|
16
|
-
require('@alfalab/icons-glyph/ArrowLeftMIcon');
|
|
17
|
-
require('@alfalab/core-components-icon-button');
|
|
18
|
-
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
19
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
20
13
|
|
|
21
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
22
15
|
|
|
@@ -24,7 +17,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
24
17
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
25
18
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
26
19
|
|
|
27
|
-
var styles = {"header":"navigation-
|
|
20
|
+
var styles = {"header":"navigation-bar__header_1kv2x","backgroundImage":"navigation-bar__backgroundImage_1kv2x","mainLine":"navigation-bar__mainLine_1kv2x","mainLineSticky":"navigation-bar__mainLineSticky_1kv2x","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1kv2x","content":"navigation-bar__content_1kv2x","withBothAddons":"navigation-bar__withBothAddons_1kv2x","withCompactTitle":"navigation-bar__withCompactTitle_1kv2x","children":"navigation-bar__children_1kv2x","title":"navigation-bar__title_1kv2x","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1kv2x","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1kv2x","subtitle":"navigation-bar__subtitle_1kv2x","addonsWrapper":"navigation-bar__addonsWrapper_1kv2x","rightAddons":"navigation-bar__rightAddons_1kv2x","addon":"navigation-bar__addon_1kv2x","bottomAddons":"navigation-bar__bottomAddons_1kv2x","closer":"navigation-bar__closer_1kv2x","left":"navigation-bar__left_1kv2x","center":"navigation-bar__center_1kv2x","trim":"navigation-bar__trim_1kv2x"};
|
|
28
21
|
require('./index.css')
|
|
29
22
|
|
|
30
23
|
var ADDONS_HEIGHT = 48;
|
|
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"component":"navigation-
|
|
18
|
+
var styles = {"component":"navigation-bar__component_1876c","mobileComponent":"navigation-bar__mobileComponent_1876c","flex":"navigation-bar__flex_1876c","iconWrapper":"navigation-bar__iconWrapper_1876c","text":"navigation-bar__text_1876c","mobileWrapper":"navigation-bar__mobileWrapper_1876c"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var BackArrowAddon = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: a0wa1 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,46 +24,46 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__component_1876c {
|
|
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-
|
|
33
|
+
} .navigation-bar__component_1876c svg > path {
|
|
34
34
|
transition: fill 0.2s ease;
|
|
35
35
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
36
|
+
} .navigation-bar__component_1876c:hover svg > path {
|
|
37
37
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__component_1876c:active svg > path {
|
|
39
39
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__mobileComponent_1876c {
|
|
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-
|
|
46
|
+
} .navigation-bar__flex_1876c {
|
|
47
47
|
display: flex;
|
|
48
48
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
49
|
+
} .navigation-bar__iconWrapper_1876c {
|
|
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-
|
|
56
|
+
} .navigation-bar__iconWrapper_1876c + .navigation-bar__text_1876c {
|
|
57
57
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
58
|
+
} .navigation-bar__mobileWrapper_1876c {
|
|
59
59
|
width: 32px;
|
|
60
60
|
height: 32px;
|
|
61
61
|
background: var(--color-light-neutral-translucent-100);
|
|
62
62
|
-webkit-backdrop-filter: blur(10px);
|
|
63
63
|
backdrop-filter: blur(10px);
|
|
64
64
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_1876c + .navigation-bar__text_1876c {
|
|
66
66
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__mobileWrapper_1876c svg > path {
|
|
68
68
|
fill: var(--color-light-neutral-translucent-700);
|
|
69
69
|
}
|
|
@@ -3,13 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_backArrowAddon_Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-button/desktop');
|
|
10
|
-
require('@alfalab/core-components-typography');
|
|
11
|
-
require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
|
|
12
|
-
require('@alfalab/icons-glyph/ArrowLeftMIcon');
|
|
13
6
|
|
|
14
7
|
|
|
15
8
|
|
|
@@ -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 = {"closer":"navigation-
|
|
17
|
+
var styles = {"closer":"navigation-bar__closer_uatey","button":"navigation-bar__button_uatey","mobile":"navigation-bar__mobile_uatey","sticky":"navigation-bar__sticky_uatey"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1k640 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__closer_uatey {
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
width: 48px;
|
|
28
28
|
height: 48px;
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
33
|
+
} .navigation-bar__button_uatey {
|
|
34
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
35
|
-webkit-backdrop-filter: blur(10px);
|
|
36
36
|
backdrop-filter: blur(10px);
|
|
37
37
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__button_uatey.navigation-bar__mobile_uatey {
|
|
39
39
|
background: var(--color-light-neutral-translucent-100);
|
|
40
40
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__button_uatey.navigation-bar__button_uatey {
|
|
42
42
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__sticky_uatey {
|
|
44
44
|
position: sticky;
|
|
45
45
|
top: 0;
|
|
46
46
|
}
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_closer_Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-icon-button');
|
|
10
|
-
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
11
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
12
6
|
|
|
13
7
|
|
|
14
8
|
|
package/cssm/Component.js
CHANGED
|
@@ -11,15 +11,6 @@ var hooks = require('@alfalab/hooks');
|
|
|
11
11
|
var components_backArrowAddon_Component = require('./components/back-arrow-addon/Component.js');
|
|
12
12
|
var components_closer_Component = require('./components/closer/Component.js');
|
|
13
13
|
var styles = require('./index.module.css');
|
|
14
|
-
require('@alfalab/core-components-button/cssm/desktop');
|
|
15
|
-
require('@alfalab/core-components-typography/cssm');
|
|
16
|
-
require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
|
|
17
|
-
require('@alfalab/icons-glyph/ArrowLeftMIcon');
|
|
18
|
-
require('./components/back-arrow-addon/index.module.css');
|
|
19
|
-
require('@alfalab/core-components-icon-button/cssm');
|
|
20
|
-
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
21
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
22
|
-
require('./components/closer/index.module.css');
|
|
23
14
|
|
|
24
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
25
16
|
|
|
@@ -3,14 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_backArrowAddon_Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-button/cssm/desktop');
|
|
10
|
-
require('@alfalab/core-components-typography/cssm');
|
|
11
|
-
require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
|
|
12
|
-
require('@alfalab/icons-glyph/ArrowLeftMIcon');
|
|
13
|
-
require('./index.module.css');
|
|
14
6
|
|
|
15
7
|
|
|
16
8
|
|
|
@@ -3,13 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var components_closer_Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-icon-button/cssm');
|
|
10
|
-
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
11
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
12
|
-
require('./index.module.css');
|
|
13
6
|
|
|
14
7
|
|
|
15
8
|
|
package/cssm/index.js
CHANGED
|
@@ -3,24 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('react-merge-refs');
|
|
9
|
-
require('classnames');
|
|
10
|
-
require('@alfalab/core-components-shared/cssm');
|
|
11
|
-
require('@alfalab/hooks');
|
|
12
|
-
require('./components/back-arrow-addon/Component.js');
|
|
13
|
-
require('@alfalab/core-components-button/cssm/desktop');
|
|
14
|
-
require('@alfalab/core-components-typography/cssm');
|
|
15
|
-
require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
|
|
16
|
-
require('@alfalab/icons-glyph/ArrowLeftMIcon');
|
|
17
|
-
require('./components/back-arrow-addon/index.module.css');
|
|
18
|
-
require('./components/closer/Component.js');
|
|
19
|
-
require('@alfalab/core-components-icon-button/cssm');
|
|
20
|
-
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
21
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
22
|
-
require('./components/closer/index.module.css');
|
|
23
|
-
require('./index.module.css');
|
|
24
6
|
|
|
25
7
|
|
|
26
8
|
|
package/cssm/shared/index.js
CHANGED
|
@@ -4,18 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var components_closer_Component = require('../components/closer/Component.js');
|
|
6
6
|
var components_backArrowAddon_Component = require('../components/back-arrow-addon/Component.js');
|
|
7
|
-
require('tslib');
|
|
8
|
-
require('react');
|
|
9
|
-
require('classnames');
|
|
10
|
-
require('@alfalab/core-components-icon-button/cssm');
|
|
11
|
-
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
12
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
13
|
-
require('../components/closer/index.module.css');
|
|
14
|
-
require('@alfalab/core-components-button/cssm/desktop');
|
|
15
|
-
require('@alfalab/core-components-typography/cssm');
|
|
16
|
-
require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
|
|
17
|
-
require('@alfalab/icons-glyph/ArrowLeftMIcon');
|
|
18
|
-
require('../components/back-arrow-addon/index.module.css');
|
|
19
7
|
|
|
20
8
|
|
|
21
9
|
|
package/esm/Component.js
CHANGED
|
@@ -6,15 +6,8 @@ import { getDataTestId } from '@alfalab/core-components-shared/esm';
|
|
|
6
6
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
7
7
|
import { BackArrowAddon } from './components/back-arrow-addon/Component.js';
|
|
8
8
|
import { Closer } from './components/closer/Component.js';
|
|
9
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
10
|
-
import '@alfalab/core-components-typography/esm';
|
|
11
|
-
import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
12
|
-
import '@alfalab/icons-glyph/ArrowLeftMIcon';
|
|
13
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
14
|
-
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
15
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
16
9
|
|
|
17
|
-
var styles = {"header":"navigation-
|
|
10
|
+
var styles = {"header":"navigation-bar__header_1kv2x","backgroundImage":"navigation-bar__backgroundImage_1kv2x","mainLine":"navigation-bar__mainLine_1kv2x","mainLineSticky":"navigation-bar__mainLineSticky_1kv2x","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1kv2x","content":"navigation-bar__content_1kv2x","withBothAddons":"navigation-bar__withBothAddons_1kv2x","withCompactTitle":"navigation-bar__withCompactTitle_1kv2x","children":"navigation-bar__children_1kv2x","title":"navigation-bar__title_1kv2x","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1kv2x","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1kv2x","subtitle":"navigation-bar__subtitle_1kv2x","addonsWrapper":"navigation-bar__addonsWrapper_1kv2x","rightAddons":"navigation-bar__rightAddons_1kv2x","addon":"navigation-bar__addon_1kv2x","bottomAddons":"navigation-bar__bottomAddons_1kv2x","closer":"navigation-bar__closer_1kv2x","left":"navigation-bar__left_1kv2x","center":"navigation-bar__center_1kv2x","trim":"navigation-bar__trim_1kv2x"};
|
|
18
11
|
require('./index.css')
|
|
19
12
|
|
|
20
13
|
var ADDONS_HEIGHT = 48;
|
|
@@ -6,7 +6,7 @@ import { Typography } from '@alfalab/core-components-typography/esm';
|
|
|
6
6
|
import { ArrowLeftMediumMIcon } from '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
7
7
|
import { ArrowLeftMIcon } from '@alfalab/icons-glyph/ArrowLeftMIcon';
|
|
8
8
|
|
|
9
|
-
var styles = {"component":"navigation-
|
|
9
|
+
var styles = {"component":"navigation-bar__component_1876c","mobileComponent":"navigation-bar__mobileComponent_1876c","flex":"navigation-bar__flex_1876c","iconWrapper":"navigation-bar__iconWrapper_1876c","text":"navigation-bar__text_1876c","mobileWrapper":"navigation-bar__mobileWrapper_1876c"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var BackArrowAddon = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: a0wa1 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,46 +24,46 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__component_1876c {
|
|
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-
|
|
33
|
+
} .navigation-bar__component_1876c svg > path {
|
|
34
34
|
transition: fill 0.2s ease;
|
|
35
35
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
36
|
+
} .navigation-bar__component_1876c:hover svg > path {
|
|
37
37
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__component_1876c:active svg > path {
|
|
39
39
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__mobileComponent_1876c {
|
|
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-
|
|
46
|
+
} .navigation-bar__flex_1876c {
|
|
47
47
|
display: flex;
|
|
48
48
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
49
|
+
} .navigation-bar__iconWrapper_1876c {
|
|
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-
|
|
56
|
+
} .navigation-bar__iconWrapper_1876c + .navigation-bar__text_1876c {
|
|
57
57
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
58
|
+
} .navigation-bar__mobileWrapper_1876c {
|
|
59
59
|
width: 32px;
|
|
60
60
|
height: 32px;
|
|
61
61
|
background: var(--color-light-neutral-translucent-100);
|
|
62
62
|
-webkit-backdrop-filter: blur(10px);
|
|
63
63
|
backdrop-filter: blur(10px);
|
|
64
64
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_1876c + .navigation-bar__text_1876c {
|
|
66
66
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__mobileWrapper_1876c svg > path {
|
|
68
68
|
fill: var(--color-light-neutral-translucent-700);
|
|
69
69
|
}
|
|
@@ -1,8 +1 @@
|
|
|
1
1
|
export { BackArrowAddon } from './Component.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
6
|
-
import '@alfalab/core-components-typography/esm';
|
|
7
|
-
import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
8
|
-
import '@alfalab/icons-glyph/ArrowLeftMIcon';
|
|
@@ -5,7 +5,7 @@ import { IconButton } from '@alfalab/core-components-icon-button/esm';
|
|
|
5
5
|
import { CrossHeavyMIcon } from '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
6
6
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"closer":"navigation-
|
|
8
|
+
var styles = {"closer":"navigation-bar__closer_uatey","button":"navigation-bar__button_uatey","mobile":"navigation-bar__mobile_uatey","sticky":"navigation-bar__sticky_uatey"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1k640 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__closer_uatey {
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
width: 48px;
|
|
28
28
|
height: 48px;
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
33
|
+
} .navigation-bar__button_uatey {
|
|
34
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
35
|
-webkit-backdrop-filter: blur(10px);
|
|
36
36
|
backdrop-filter: blur(10px);
|
|
37
37
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__button_uatey.navigation-bar__mobile_uatey {
|
|
39
39
|
background: var(--color-light-neutral-translucent-100);
|
|
40
40
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__button_uatey.navigation-bar__button_uatey {
|
|
42
42
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__sticky_uatey {
|
|
44
44
|
position: sticky;
|
|
45
45
|
top: 0;
|
|
46
46
|
}
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r69hy */
|
|
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-
|
|
21
|
+
} .navigation-bar__header_1kv2x {
|
|
22
22
|
width: 100%;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__header_1kv2x.navigation-bar__header_1kv2x.navigation-bar__backgroundImage_1kv2x {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1kv2x {
|
|
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-
|
|
35
|
+
} .navigation-bar__mainLineSticky_1kv2x {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1kv2x {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1kv2x {
|
|
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-
|
|
50
|
-
.navigation-
|
|
49
|
+
} .navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x,
|
|
50
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x {
|
|
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-
|
|
58
|
-
.navigation-
|
|
59
|
-
.navigation-
|
|
60
|
-
.navigation-
|
|
57
|
+
} .navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x > .navigation-bar__children_1kv2x,
|
|
58
|
+
.navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x > .navigation-bar__title_1kv2x,
|
|
59
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x > .navigation-bar__children_1kv2x,
|
|
60
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x > .navigation-bar__title_1kv2x {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1kv2x.navigation-bar__contentOnBotDesktop_1kv2x.navigation-bar__contentOnBotDesktop_1kv2x {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1kv2x.navigation-bar__contentOnBotMobile_1kv2x.navigation-bar__contentOnBotMobile_1kv2x {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1kv2x {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1kv2x {
|
|
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-
|
|
80
|
+
} .navigation-bar__addonsWrapper_1kv2x {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1kv2x {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1kv2x {
|
|
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-
|
|
92
|
+
} .navigation-bar__bottomAddons_1kv2x {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1kv2x {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1kv2x {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1kv2x {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1kv2x {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1kv2x .navigation-bar__title_1kv2x,
|
|
103
|
+
.navigation-bar__trim_1kv2x .navigation-bar__children_1kv2x {
|
|
104
104
|
-webkit-line-clamp: 2;
|
|
105
105
|
display: -webkit-box;
|
|
106
106
|
-webkit-box-orient: vertical;
|
package/esm/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
1
|
export { NavigationBar } from './Component.js';
|
|
2
|
-
import 'tslib';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-merge-refs';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '@alfalab/core-components-shared/esm';
|
|
7
|
-
import '@alfalab/hooks';
|
|
8
|
-
import './components/back-arrow-addon/Component.js';
|
|
9
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
10
|
-
import '@alfalab/core-components-typography/esm';
|
|
11
|
-
import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
12
|
-
import '@alfalab/icons-glyph/ArrowLeftMIcon';
|
|
13
|
-
import './components/closer/Component.js';
|
|
14
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
15
|
-
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
16
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
package/esm/shared/index.js
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
export { Closer } from '../components/closer/Component.js';
|
|
2
2
|
export { BackArrowAddon } from '../components/back-arrow-addon/Component.js';
|
|
3
|
-
import 'tslib';
|
|
4
|
-
import 'react';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
7
|
-
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
8
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
9
|
-
import '@alfalab/core-components-button/esm/desktop';
|
|
10
|
-
import '@alfalab/core-components-typography/esm';
|
|
11
|
-
import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
12
|
-
import '@alfalab/icons-glyph/ArrowLeftMIcon';
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r69hy */
|
|
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-
|
|
21
|
+
} .navigation-bar__header_1kv2x {
|
|
22
22
|
width: 100%;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__header_1kv2x.navigation-bar__header_1kv2x.navigation-bar__backgroundImage_1kv2x {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1kv2x {
|
|
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-
|
|
35
|
+
} .navigation-bar__mainLineSticky_1kv2x {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1kv2x {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1kv2x {
|
|
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-
|
|
50
|
-
.navigation-
|
|
49
|
+
} .navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x,
|
|
50
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x {
|
|
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-
|
|
58
|
-
.navigation-
|
|
59
|
-
.navigation-
|
|
60
|
-
.navigation-
|
|
57
|
+
} .navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x > .navigation-bar__children_1kv2x,
|
|
58
|
+
.navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x > .navigation-bar__title_1kv2x,
|
|
59
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x > .navigation-bar__children_1kv2x,
|
|
60
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x > .navigation-bar__title_1kv2x {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1kv2x.navigation-bar__contentOnBotDesktop_1kv2x.navigation-bar__contentOnBotDesktop_1kv2x {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1kv2x.navigation-bar__contentOnBotMobile_1kv2x.navigation-bar__contentOnBotMobile_1kv2x {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1kv2x {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1kv2x {
|
|
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-
|
|
80
|
+
} .navigation-bar__addonsWrapper_1kv2x {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1kv2x {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1kv2x {
|
|
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-
|
|
92
|
+
} .navigation-bar__bottomAddons_1kv2x {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1kv2x {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1kv2x {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1kv2x {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1kv2x {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1kv2x .navigation-bar__title_1kv2x,
|
|
103
|
+
.navigation-bar__trim_1kv2x .navigation-bar__children_1kv2x {
|
|
104
104
|
-webkit-line-clamp: 2;
|
|
105
105
|
display: -webkit-box;
|
|
106
106
|
-webkit-box-orient: vertical;
|
package/index.js
CHANGED
|
@@ -3,21 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('react-merge-refs');
|
|
9
|
-
require('classnames');
|
|
10
|
-
require('@alfalab/core-components-shared');
|
|
11
|
-
require('@alfalab/hooks');
|
|
12
|
-
require('./components/back-arrow-addon/Component.js');
|
|
13
|
-
require('@alfalab/core-components-button/desktop');
|
|
14
|
-
require('@alfalab/core-components-typography');
|
|
15
|
-
require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
|
|
16
|
-
require('@alfalab/icons-glyph/ArrowLeftMIcon');
|
|
17
|
-
require('./components/closer/Component.js');
|
|
18
|
-
require('@alfalab/core-components-icon-button');
|
|
19
|
-
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
20
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
21
6
|
|
|
22
7
|
|
|
23
8
|
|
package/modern/Component.js
CHANGED
|
@@ -5,15 +5,8 @@ import { getDataTestId } from '@alfalab/core-components-shared/modern';
|
|
|
5
5
|
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
6
6
|
import { BackArrowAddon } from './components/back-arrow-addon/Component.js';
|
|
7
7
|
import { Closer } from './components/closer/Component.js';
|
|
8
|
-
import '@alfalab/core-components-button/modern/desktop';
|
|
9
|
-
import '@alfalab/core-components-typography/modern';
|
|
10
|
-
import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
11
|
-
import '@alfalab/icons-glyph/ArrowLeftMIcon';
|
|
12
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
13
|
-
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
14
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
15
8
|
|
|
16
|
-
const styles = {"header":"navigation-
|
|
9
|
+
const styles = {"header":"navigation-bar__header_1kv2x","backgroundImage":"navigation-bar__backgroundImage_1kv2x","mainLine":"navigation-bar__mainLine_1kv2x","mainLineSticky":"navigation-bar__mainLineSticky_1kv2x","mainLineWithImageBg":"navigation-bar__mainLineWithImageBg_1kv2x","content":"navigation-bar__content_1kv2x","withBothAddons":"navigation-bar__withBothAddons_1kv2x","withCompactTitle":"navigation-bar__withCompactTitle_1kv2x","children":"navigation-bar__children_1kv2x","title":"navigation-bar__title_1kv2x","contentOnBotDesktop":"navigation-bar__contentOnBotDesktop_1kv2x","contentOnBotMobile":"navigation-bar__contentOnBotMobile_1kv2x","subtitle":"navigation-bar__subtitle_1kv2x","addonsWrapper":"navigation-bar__addonsWrapper_1kv2x","rightAddons":"navigation-bar__rightAddons_1kv2x","addon":"navigation-bar__addon_1kv2x","bottomAddons":"navigation-bar__bottomAddons_1kv2x","closer":"navigation-bar__closer_1kv2x","left":"navigation-bar__left_1kv2x","center":"navigation-bar__center_1kv2x","trim":"navigation-bar__trim_1kv2x"};
|
|
17
10
|
require('./index.css')
|
|
18
11
|
|
|
19
12
|
/* eslint-disable complexity */
|
|
@@ -5,7 +5,7 @@ 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-
|
|
8
|
+
const styles = {"component":"navigation-bar__component_1876c","mobileComponent":"navigation-bar__mobileComponent_1876c","flex":"navigation-bar__flex_1876c","iconWrapper":"navigation-bar__iconWrapper_1876c","text":"navigation-bar__text_1876c","mobileWrapper":"navigation-bar__mobileWrapper_1876c"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
const BackArrowAddon = ({ text = 'Назад', onClick, className, textOpacity = 1, view, ...htmlAttributes }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: a0wa1 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -24,46 +24,46 @@
|
|
|
24
24
|
--gap-s: 12px;
|
|
25
25
|
} :root {
|
|
26
26
|
} :root {
|
|
27
|
-
} .navigation-
|
|
27
|
+
} .navigation-bar__component_1876c {
|
|
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-
|
|
33
|
+
} .navigation-bar__component_1876c svg > path {
|
|
34
34
|
transition: fill 0.2s ease;
|
|
35
35
|
fill: var(--color-light-neutral-1500);
|
|
36
|
-
} .navigation-
|
|
36
|
+
} .navigation-bar__component_1876c:hover svg > path {
|
|
37
37
|
fill: var(--color-light-neutral-1500-hover);
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__component_1876c:active svg > path {
|
|
39
39
|
fill: var(--color-light-neutral-1500-press);
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__mobileComponent_1876c {
|
|
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-
|
|
46
|
+
} .navigation-bar__flex_1876c {
|
|
47
47
|
display: flex;
|
|
48
48
|
align-items: center;
|
|
49
|
-
} .navigation-
|
|
49
|
+
} .navigation-bar__iconWrapper_1876c {
|
|
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-
|
|
56
|
+
} .navigation-bar__iconWrapper_1876c + .navigation-bar__text_1876c {
|
|
57
57
|
margin-right: var(--gap-s);
|
|
58
|
-
} .navigation-
|
|
58
|
+
} .navigation-bar__mobileWrapper_1876c {
|
|
59
59
|
width: 32px;
|
|
60
60
|
height: 32px;
|
|
61
61
|
background: var(--color-light-neutral-translucent-100);
|
|
62
62
|
-webkit-backdrop-filter: blur(10px);
|
|
63
63
|
backdrop-filter: blur(10px);
|
|
64
64
|
margin: 0
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__mobileWrapper_1876c + .navigation-bar__text_1876c {
|
|
66
66
|
margin: 0 var(--gap-s) 0 var(--gap-xs);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__mobileWrapper_1876c svg > path {
|
|
68
68
|
fill: var(--color-light-neutral-translucent-700);
|
|
69
69
|
}
|
|
@@ -1,7 +1 @@
|
|
|
1
1
|
export { BackArrowAddon } from './Component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components-button/modern/desktop';
|
|
5
|
-
import '@alfalab/core-components-typography/modern';
|
|
6
|
-
import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
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-
|
|
7
|
+
const styles = {"closer":"navigation-bar__closer_uatey","button":"navigation-bar__button_uatey","mobile":"navigation-bar__mobile_uatey","sticky":"navigation-bar__sticky_uatey"};
|
|
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:
|
|
1
|
+
/* hash: 1k640 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
} :root {
|
|
23
23
|
/* closer-mobile */
|
|
24
24
|
--navigation-bar-closer-mobile-color: var(--color-light-neutral-translucent-700);
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__closer_uatey {
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
width: 48px;
|
|
28
28
|
height: 48px;
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
-
} .navigation-
|
|
33
|
+
} .navigation-bar__button_uatey {
|
|
34
34
|
background: var(--color-light-bg-primary-alpha-40);
|
|
35
35
|
-webkit-backdrop-filter: blur(10px);
|
|
36
36
|
backdrop-filter: blur(10px);
|
|
37
37
|
color: var(--color-light-neutral-1500)
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__button_uatey.navigation-bar__mobile_uatey {
|
|
39
39
|
background: var(--color-light-neutral-translucent-100);
|
|
40
40
|
color: var(--navigation-bar-closer-mobile-color);
|
|
41
|
-
} .navigation-
|
|
41
|
+
} .navigation-bar__button_uatey.navigation-bar__button_uatey {
|
|
42
42
|
border-radius: var(--border-radius-circle);
|
|
43
|
-
} .navigation-
|
|
43
|
+
} .navigation-bar__sticky_uatey {
|
|
44
44
|
position: sticky;
|
|
45
45
|
top: 0;
|
|
46
46
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: r69hy */
|
|
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-
|
|
21
|
+
} .navigation-bar__header_1kv2x {
|
|
22
22
|
width: 100%;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
25
|
-
} .navigation-
|
|
25
|
+
} .navigation-bar__header_1kv2x.navigation-bar__header_1kv2x.navigation-bar__backgroundImage_1kv2x {
|
|
26
26
|
background-repeat: no-repeat;
|
|
27
27
|
background-position: center;
|
|
28
28
|
background-size: cover;
|
|
29
|
-
} .navigation-
|
|
29
|
+
} .navigation-bar__mainLine_1kv2x {
|
|
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-
|
|
35
|
+
} .navigation-bar__mainLineSticky_1kv2x {
|
|
36
36
|
position: sticky;
|
|
37
37
|
top: 0;
|
|
38
|
-
} .navigation-
|
|
38
|
+
} .navigation-bar__mainLineWithImageBg_1kv2x {
|
|
39
39
|
background-color: initial;
|
|
40
|
-
} .navigation-
|
|
40
|
+
} .navigation-bar__content_1kv2x {
|
|
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-
|
|
50
|
-
.navigation-
|
|
49
|
+
} .navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x,
|
|
50
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x {
|
|
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-
|
|
58
|
-
.navigation-
|
|
59
|
-
.navigation-
|
|
60
|
-
.navigation-
|
|
57
|
+
} .navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x > .navigation-bar__children_1kv2x,
|
|
58
|
+
.navigation-bar__content_1kv2x.navigation-bar__withBothAddons_1kv2x > .navigation-bar__title_1kv2x,
|
|
59
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x > .navigation-bar__children_1kv2x,
|
|
60
|
+
.navigation-bar__content_1kv2x.navigation-bar__withCompactTitle_1kv2x > .navigation-bar__title_1kv2x {
|
|
61
61
|
-webkit-line-clamp: 1;
|
|
62
62
|
word-break: break-all;
|
|
63
|
-
} .navigation-
|
|
63
|
+
} .navigation-bar__content_1kv2x.navigation-bar__contentOnBotDesktop_1kv2x.navigation-bar__contentOnBotDesktop_1kv2x {
|
|
64
64
|
padding-top: var(--gap-s);
|
|
65
|
-
} .navigation-
|
|
65
|
+
} .navigation-bar__content_1kv2x.navigation-bar__contentOnBotMobile_1kv2x.navigation-bar__contentOnBotMobile_1kv2x {
|
|
66
66
|
padding-top: var(--gap-s);
|
|
67
|
-
} .navigation-
|
|
67
|
+
} .navigation-bar__title_1kv2x {
|
|
68
68
|
word-break: break-word;
|
|
69
|
-
} .navigation-
|
|
69
|
+
} .navigation-bar__subtitle_1kv2x {
|
|
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-
|
|
80
|
+
} .navigation-bar__addonsWrapper_1kv2x {
|
|
81
81
|
display: flex;
|
|
82
|
-
} .navigation-
|
|
82
|
+
} .navigation-bar__rightAddons_1kv2x {
|
|
83
83
|
margin-left: auto;
|
|
84
|
-
} .navigation-
|
|
84
|
+
} .navigation-bar__addon_1kv2x {
|
|
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-
|
|
92
|
+
} .navigation-bar__bottomAddons_1kv2x {
|
|
93
93
|
pointer-events: all;
|
|
94
|
-
} .navigation-
|
|
94
|
+
} .navigation-bar__closer_1kv2x {
|
|
95
95
|
margin-left: auto;
|
|
96
|
-
} .navigation-
|
|
96
|
+
} .navigation-bar__left_1kv2x {
|
|
97
97
|
text-align: left;
|
|
98
|
-
} .navigation-
|
|
98
|
+
} .navigation-bar__center_1kv2x {
|
|
99
99
|
text-align: center;
|
|
100
|
-
} .navigation-
|
|
100
|
+
} .navigation-bar__trim_1kv2x {
|
|
101
101
|
overflow: hidden
|
|
102
|
-
} .navigation-
|
|
103
|
-
.navigation-
|
|
102
|
+
} .navigation-bar__trim_1kv2x .navigation-bar__title_1kv2x,
|
|
103
|
+
.navigation-bar__trim_1kv2x .navigation-bar__children_1kv2x {
|
|
104
104
|
-webkit-line-clamp: 2;
|
|
105
105
|
display: -webkit-box;
|
|
106
106
|
-webkit-box-orient: vertical;
|
package/modern/index.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
1
|
export { NavigationBar } from './Component.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react-merge-refs';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-shared/modern';
|
|
6
|
-
import '@alfalab/hooks';
|
|
7
|
-
import './components/back-arrow-addon/Component.js';
|
|
8
|
-
import '@alfalab/core-components-button/modern/desktop';
|
|
9
|
-
import '@alfalab/core-components-typography/modern';
|
|
10
|
-
import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
11
|
-
import '@alfalab/icons-glyph/ArrowLeftMIcon';
|
|
12
|
-
import './components/closer/Component.js';
|
|
13
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
14
|
-
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
15
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
package/modern/shared/index.js
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
export { Closer } from '../components/closer/Component.js';
|
|
2
2
|
export { BackArrowAddon } from '../components/back-arrow-addon/Component.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
6
|
-
import '@alfalab/icons-glyph/CrossHeavyMIcon';
|
|
7
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
|
8
|
-
import '@alfalab/core-components-button/modern/desktop';
|
|
9
|
-
import '@alfalab/core-components-typography/modern';
|
|
10
|
-
import '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
|
|
11
|
-
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.8.
|
|
3
|
+
"version": "0.8.2",
|
|
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.5.
|
|
15
|
-
"@alfalab/core-components-button": "^11.
|
|
16
|
-
"@alfalab/core-components-typography": "^4.
|
|
14
|
+
"@alfalab/core-components-icon-button": "^6.5.2",
|
|
15
|
+
"@alfalab/core-components-button": "^11.2.0",
|
|
16
|
+
"@alfalab/core-components-typography": "^4.5.0",
|
|
17
17
|
"@alfalab/core-components-shared": "^0.9.1",
|
|
18
18
|
"@alfalab/hooks": "^1.13.0",
|
|
19
19
|
"@alfalab/icons-glyph": "^2.139.0",
|
package/shared/index.js
CHANGED
|
@@ -4,16 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var components_closer_Component = require('../components/closer/Component.js');
|
|
6
6
|
var components_backArrowAddon_Component = require('../components/back-arrow-addon/Component.js');
|
|
7
|
-
require('tslib');
|
|
8
|
-
require('react');
|
|
9
|
-
require('classnames');
|
|
10
|
-
require('@alfalab/core-components-icon-button');
|
|
11
|
-
require('@alfalab/icons-glyph/CrossHeavyMIcon');
|
|
12
|
-
require('@alfalab/icons-glyph/CrossMIcon');
|
|
13
|
-
require('@alfalab/core-components-button/desktop');
|
|
14
|
-
require('@alfalab/core-components-typography');
|
|
15
|
-
require('@alfalab/icons-glyph/ArrowLeftMediumMIcon');
|
|
16
|
-
require('@alfalab/icons-glyph/ArrowLeftMIcon');
|
|
17
7
|
|
|
18
8
|
|
|
19
9
|
|