@alfalab/core-components-tabs 7.3.0 → 7.3.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-3fe0d3e6.d.ts +2 -2
- package/components/primary-tablist/Component.desktop.js +2 -2
- package/components/primary-tablist/Component.js +1 -1
- package/components/primary-tablist/Component.mobile.js +3 -3
- package/components/primary-tablist/Component.responsive.js +2 -2
- package/components/primary-tablist/index.css +35 -29
- package/components/primary-tablist/mobile.css +38 -32
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +12 -6
- package/components/secondary-tablist/Component.desktop.js +2 -2
- package/components/secondary-tablist/Component.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +3 -3
- package/components/secondary-tablist/Component.responsive.js +2 -2
- package/components/secondary-tablist/index.css +17 -11
- package/components/secondary-tablist/mobile.css +19 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +3 -3
- package/components/tabs/Component.mobile.js +3 -3
- package/components/tabs/Component.responsive.js +3 -3
- package/components/title/Component.js +1 -1
- package/components/title/index.js +1 -1
- package/cssm/Component-3fe0d3e6.d.ts +2 -2
- package/cssm/components/primary-tablist/index.module.css +6 -0
- package/cssm/components/scrollable-container/index.module.css +7 -1
- package/cssm/components/secondary-tablist/index.module.css +6 -0
- package/desktop.js +3 -3
- package/esm/Component-3fe0d3e6.d.ts +2 -2
- package/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/esm/components/primary-tablist/Component.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/esm/components/primary-tablist/index.css +35 -29
- package/esm/components/primary-tablist/mobile.css +38 -32
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +12 -6
- package/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/esm/components/secondary-tablist/Component.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +3 -3
- package/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/esm/components/secondary-tablist/index.css +17 -11
- package/esm/components/secondary-tablist/mobile.css +19 -13
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.desktop.js +3 -3
- package/esm/components/tabs/Component.mobile.js +3 -3
- package/esm/components/tabs/Component.responsive.js +3 -3
- package/esm/components/title/Component.js +1 -1
- package/esm/components/title/index.js +1 -1
- package/esm/desktop.js +3 -3
- package/esm/hooks/use-collapsible-elements.js +1 -1
- package/esm/hooks/use-tablist-titles.js +1 -1
- package/esm/index.js +3 -3
- package/esm/index.module-260b2e11.js +4 -0
- package/esm/index.module-6cb75603.js +4 -0
- package/esm/mobile.js +3 -3
- package/esm/responsive.js +3 -3
- package/esm/synthetic-events.js +1 -1
- package/esm/{tslib.es6-991a0924.d.ts → tslib.es6-b7cce272.d.ts} +0 -0
- package/esm/{tslib.es6-991a0924.js → tslib.es6-b7cce272.js} +0 -0
- package/hooks/use-collapsible-elements.js +1 -1
- package/hooks/use-tablist-titles.js +1 -1
- package/index.js +3 -3
- package/index.module-26e594f4.js +6 -0
- package/index.module-3d214349.js +6 -0
- package/mobile.js +3 -3
- package/modern/Component-3fe0d3e6.d.ts +2 -2
- package/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +35 -29
- package/modern/components/primary-tablist/mobile.css +38 -32
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +12 -6
- package/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/modern/components/secondary-tablist/index.css +17 -11
- package/modern/components/secondary-tablist/mobile.css +19 -13
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.desktop.js +2 -2
- package/modern/components/tabs/Component.mobile.js +2 -2
- package/modern/components/tabs/Component.responsive.js +2 -2
- package/modern/desktop.js +2 -2
- package/modern/index.js +2 -2
- package/modern/index.module-651ee496.js +4 -0
- package/modern/index.module-c197fcff.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/package.json +3 -3
- package/responsive.js +3 -3
- package/synthetic-events.js +1 -1
- package/{tslib.es6-ab9150c8.d.ts → tslib.es6-310680f9.d.ts} +0 -0
- package/{tslib.es6-ab9150c8.js → tslib.es6-310680f9.js} +0 -0
- package/esm/index.module-307739e4.js +0 -4
- package/esm/index.module-426df292.js +0 -4
- package/index.module-5b87e23a.js +0 -6
- package/index.module-78610370.js +0 -6
- package/modern/index.module-e2287162.js +0 -4
- package/modern/index.module-f5a85c82.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1oqna */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
|
|
12
12
|
/* Hard up */
|
|
13
13
|
}:root {
|
|
14
|
+
--gap-2xs: 4px;
|
|
14
15
|
--gap-xs: 8px;
|
|
15
16
|
--gap-s: 12px;
|
|
16
17
|
--gap-m: 16px;
|
|
18
|
+
--gap-2xs-neg: -4px;
|
|
17
19
|
}:root {
|
|
18
20
|
}:root {
|
|
19
21
|
}:root {
|
|
@@ -49,26 +51,30 @@
|
|
|
49
51
|
|
|
50
52
|
/* size xl */
|
|
51
53
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
52
|
-
}.
|
|
54
|
+
}.tabs__component_q2z56 {
|
|
53
55
|
position: relative;
|
|
54
56
|
display: inline-flex;
|
|
55
|
-
}.
|
|
57
|
+
}.tabs__fullWidthScroll_q2z56 {
|
|
56
58
|
margin: 0 var(--gap-m);
|
|
57
|
-
}.
|
|
59
|
+
}.tabs__container_q2z56 {
|
|
58
60
|
overflow: hidden;
|
|
59
|
-
|
|
61
|
+
|
|
62
|
+
/* focus-outline fix */
|
|
63
|
+
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
64
|
+
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
65
|
+
}.tabs__title_q2z56 {
|
|
60
66
|
white-space: nowrap;
|
|
61
|
-
}/* sizes */.
|
|
67
|
+
}/* sizes */.tabs__xxs_q2z56 .tabs__title_q2z56 + .tabs__title_q2z56 {
|
|
62
68
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
63
|
-
}.
|
|
69
|
+
}.tabs__xs_q2z56 .tabs__title_q2z56 + .tabs__title_q2z56 {
|
|
64
70
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
65
|
-
}.
|
|
71
|
+
}.tabs__s_q2z56 .tabs__title_q2z56 + .tabs__title_q2z56 {
|
|
66
72
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
67
|
-
}.
|
|
73
|
+
}.tabs__m_q2z56 .tabs__title_q2z56 + .tabs__title_q2z56 {
|
|
68
74
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
69
|
-
}.
|
|
75
|
+
}.tabs__l_q2z56 .tabs__title_q2z56 + .tabs__title_q2z56 {
|
|
70
76
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
71
|
-
}.
|
|
77
|
+
}.tabs__xl_q2z56 .tabs__title_q2z56 + .tabs__title_q2z56 {
|
|
72
78
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
73
79
|
}
|
|
74
80
|
:root {
|
|
@@ -885,8 +891,8 @@
|
|
|
885
891
|
/* size xl */
|
|
886
892
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
887
893
|
}
|
|
888
|
-
.
|
|
894
|
+
.tabs__title_znkv5 {
|
|
889
895
|
}
|
|
890
|
-
.
|
|
896
|
+
.tabs__mobile_znkv5 .tabs__title_znkv5 + .tabs__title_znkv5 {
|
|
891
897
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
892
898
|
}
|
|
@@ -8,7 +8,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
9
9
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
10
10
|
|
|
11
|
-
var styles = {"component":"
|
|
11
|
+
var styles = {"component":"tabs__component_1jx53","hidden":"tabs__hidden_1jx53"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Tab = function (_a) {
|
package/components/tab/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-310680f9.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var components_primaryTablist_Component_desktop = require('../primary-tablist/Component.desktop.js');
|
|
6
6
|
var components_secondaryTablist_Component_desktop = require('../secondary-tablist/Component.desktop.js');
|
|
@@ -19,10 +19,10 @@ require('../../synthetic-events.js');
|
|
|
19
19
|
require('../scrollable-container/Component.js');
|
|
20
20
|
require('compute-scroll-into-view');
|
|
21
21
|
require('../title/Component.js');
|
|
22
|
-
require('../../index.module-
|
|
22
|
+
require('../../index.module-3d214349.js');
|
|
23
23
|
require('../secondary-tablist/Component.js');
|
|
24
24
|
require('@alfalab/core-components-tag');
|
|
25
|
-
require('../../index.module-
|
|
25
|
+
require('../../index.module-26e594f4.js');
|
|
26
26
|
|
|
27
27
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
28
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-310680f9.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var components_primaryTablist_Component_mobile = require('../primary-tablist/Component.mobile.js');
|
|
6
6
|
var components_secondaryTablist_Component_mobile = require('../secondary-tablist/Component.mobile.js');
|
|
@@ -19,10 +19,10 @@ require('../../synthetic-events.js');
|
|
|
19
19
|
require('../scrollable-container/Component.js');
|
|
20
20
|
require('compute-scroll-into-view');
|
|
21
21
|
require('../title/Component.js');
|
|
22
|
-
require('../../index.module-
|
|
22
|
+
require('../../index.module-3d214349.js');
|
|
23
23
|
require('../secondary-tablist/Component.js');
|
|
24
24
|
require('@alfalab/core-components-tag');
|
|
25
|
-
require('../../index.module-
|
|
25
|
+
require('../../index.module-26e594f4.js');
|
|
26
26
|
|
|
27
27
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
28
28
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-310680f9.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var components_primaryTablist_Component_responsive = require('../primary-tablist/Component.responsive.js');
|
|
6
6
|
var components_secondaryTablist_Component_responsive = require('../secondary-tablist/Component.responsive.js');
|
|
@@ -20,12 +20,12 @@ require('../../synthetic-events.js');
|
|
|
20
20
|
require('../scrollable-container/Component.js');
|
|
21
21
|
require('compute-scroll-into-view');
|
|
22
22
|
require('../title/Component.js');
|
|
23
|
-
require('../../index.module-
|
|
23
|
+
require('../../index.module-3d214349.js');
|
|
24
24
|
require('../primary-tablist/Component.mobile.js');
|
|
25
25
|
require('../secondary-tablist/Component.desktop.js');
|
|
26
26
|
require('../secondary-tablist/Component.js');
|
|
27
27
|
require('@alfalab/core-components-tag');
|
|
28
|
-
require('../../index.module-
|
|
28
|
+
require('../../index.module-26e594f4.js');
|
|
29
29
|
require('../secondary-tablist/Component.mobile.js');
|
|
30
30
|
|
|
31
31
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -40,7 +40,7 @@ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
|
40
40
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
41
41
|
type TextBaseProps = {
|
|
42
42
|
/**
|
|
43
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs
|
|
43
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
44
44
|
*/
|
|
45
45
|
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
46
46
|
/**
|
|
@@ -88,7 +88,7 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
88
88
|
*/
|
|
89
89
|
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
90
90
|
/**
|
|
91
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs
|
|
91
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
92
92
|
*/
|
|
93
93
|
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
94
94
|
/**
|
|
@@ -15,11 +15,13 @@
|
|
|
15
15
|
/* Hard up */
|
|
16
16
|
}
|
|
17
17
|
:root {
|
|
18
|
+
--gap-2xs: 4px;
|
|
18
19
|
--gap-xs: 8px;
|
|
19
20
|
--gap-s: 12px;
|
|
20
21
|
--gap-m: 16px;
|
|
21
22
|
--gap-l: 20px;
|
|
22
23
|
--gap-2xl: 32px;
|
|
24
|
+
--gap-2xs-neg: -4px;
|
|
23
25
|
}
|
|
24
26
|
:root {
|
|
25
27
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
@@ -103,6 +105,10 @@
|
|
|
103
105
|
.container {
|
|
104
106
|
position: relative;
|
|
105
107
|
overflow: hidden;
|
|
108
|
+
|
|
109
|
+
/* focus-outline fix */
|
|
110
|
+
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
111
|
+
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
106
112
|
}
|
|
107
113
|
.title {
|
|
108
114
|
display: flex;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
/* Hard up */
|
|
8
8
|
}
|
|
9
9
|
:root {
|
|
10
|
+
--gap-2xs: 4px;
|
|
11
|
+
--gap-2xs-neg: -4px;
|
|
10
12
|
--gap-m-neg: -16px;
|
|
11
13
|
}
|
|
12
14
|
:root {
|
|
@@ -40,7 +42,11 @@
|
|
|
40
42
|
overflow-x: auto;
|
|
41
43
|
overflow-y: hidden;
|
|
42
44
|
scroll-behavior: smooth;
|
|
43
|
-
scrollbar-width: none
|
|
45
|
+
scrollbar-width: none;
|
|
46
|
+
|
|
47
|
+
/* focus-outline fix */
|
|
48
|
+
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
49
|
+
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs)
|
|
44
50
|
}
|
|
45
51
|
.container::-webkit-scrollbar {
|
|
46
52
|
display: none;
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
/* Hard up */
|
|
8
8
|
}
|
|
9
9
|
:root {
|
|
10
|
+
--gap-2xs: 4px;
|
|
10
11
|
--gap-xs: 8px;
|
|
11
12
|
--gap-s: 12px;
|
|
12
13
|
--gap-m: 16px;
|
|
14
|
+
--gap-2xs-neg: -4px;
|
|
13
15
|
}
|
|
14
16
|
:root {
|
|
15
17
|
|
|
@@ -52,6 +54,10 @@
|
|
|
52
54
|
}
|
|
53
55
|
.container {
|
|
54
56
|
overflow: hidden;
|
|
57
|
+
|
|
58
|
+
/* focus-outline fix */
|
|
59
|
+
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
60
|
+
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
55
61
|
}
|
|
56
62
|
.title {
|
|
57
63
|
white-space: nowrap;
|
package/desktop.js
CHANGED
|
@@ -7,7 +7,7 @@ var components_tab_Component = require('./components/tab/Component.js');
|
|
|
7
7
|
var components_tabs_Component_desktop = require('./components/tabs/Component.desktop.js');
|
|
8
8
|
var hooks_useTabs = require('./hooks/use-tabs.js');
|
|
9
9
|
var hooks_useCollapsibleElements = require('./hooks/use-collapsible-elements.js');
|
|
10
|
-
require('./tslib.es6-
|
|
10
|
+
require('./tslib.es6-310680f9.js');
|
|
11
11
|
require('react');
|
|
12
12
|
require('./components/primary-tablist/Component.js');
|
|
13
13
|
require('classnames');
|
|
@@ -18,11 +18,11 @@ require('./hooks/use-tablist-titles.js');
|
|
|
18
18
|
require('@alfalab/hooks');
|
|
19
19
|
require('./synthetic-events.js');
|
|
20
20
|
require('./components/title/Component.js');
|
|
21
|
-
require('./index.module-
|
|
21
|
+
require('./index.module-3d214349.js');
|
|
22
22
|
require('compute-scroll-into-view');
|
|
23
23
|
require('./components/secondary-tablist/Component.js');
|
|
24
24
|
require('@alfalab/core-components-tag');
|
|
25
|
-
require('./index.module-
|
|
25
|
+
require('./index.module-26e594f4.js');
|
|
26
26
|
require('./components/tabs/Component.js');
|
|
27
27
|
require('@juggle/resize-observer');
|
|
28
28
|
|
|
@@ -40,7 +40,7 @@ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
|
40
40
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
41
41
|
type TextBaseProps = {
|
|
42
42
|
/**
|
|
43
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs
|
|
43
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
44
44
|
*/
|
|
45
45
|
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
46
46
|
/**
|
|
@@ -88,7 +88,7 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
88
88
|
*/
|
|
89
89
|
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
90
90
|
/**
|
|
91
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs
|
|
91
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
92
92
|
*/
|
|
93
93
|
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
94
94
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-b7cce272.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PrimaryTabList } from './Component.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-6cb75603.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-badge/esm';
|
|
7
7
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-b7cce272.js';
|
|
2
2
|
import React, { useRef, useEffect, useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Badge } from '@alfalab/core-components-badge/esm';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, _ as __rest } from '../../tslib.es6-b7cce272.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { PrimaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-6cb75603.js';
|
|
6
6
|
import '@alfalab/core-components-badge/esm';
|
|
7
7
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
8
8
|
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
@@ -16,7 +16,7 @@ import '../scrollable-container/Component.js';
|
|
|
16
16
|
import 'compute-scroll-into-view';
|
|
17
17
|
import '../title/Component.js';
|
|
18
18
|
|
|
19
|
-
var mobileStyles = {"title":"
|
|
19
|
+
var mobileStyles = {"title":"tabs__title_1f5an tabs__title_vx28z","mobile":"tabs__mobile_1f5an"};
|
|
20
20
|
require('./mobile.css')
|
|
21
21
|
|
|
22
22
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-b7cce272.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useMedia } from '@alfalab/hooks';
|
|
4
4
|
import { PrimaryTabListDesktop } from './Component.desktop.js';
|
|
@@ -16,7 +16,7 @@ import '../../synthetic-events.js';
|
|
|
16
16
|
import '../scrollable-container/Component.js';
|
|
17
17
|
import 'compute-scroll-into-view';
|
|
18
18
|
import '../title/Component.js';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-6cb75603.js';
|
|
20
20
|
|
|
21
21
|
var PrimaryTabListResponsive = function (_a) {
|
|
22
22
|
var size = _a.size, _b = _a.defaultMatch, defaultMatch = _b === void 0 ? 'desktop' : _b, collapsible = _a.collapsible, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, restProps = __rest(_a, ["size", "defaultMatch", "collapsible", "collapsedTabsIds", "fullWidthScroll"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1x8dr */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-accent: #ef3124;
|
|
4
4
|
--color-light-border-link: #007aff;
|
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
/* Hard up */
|
|
17
17
|
}
|
|
18
18
|
:root {
|
|
19
|
+
--gap-2xs: 4px;
|
|
19
20
|
--gap-xs: 8px;
|
|
20
21
|
--gap-s: 12px;
|
|
21
22
|
--gap-m: 16px;
|
|
22
23
|
--gap-l: 20px;
|
|
23
24
|
--gap-2xl: 32px;
|
|
25
|
+
--gap-2xs-neg: -4px;
|
|
24
26
|
}
|
|
25
27
|
:root {
|
|
26
28
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
@@ -83,12 +85,12 @@
|
|
|
83
85
|
|
|
84
86
|
/* size xl */
|
|
85
87
|
}
|
|
86
|
-
.
|
|
88
|
+
.tabs__component_vx28z {
|
|
87
89
|
position: relative;
|
|
88
90
|
display: inline-flex;
|
|
89
91
|
min-width: 100%
|
|
90
92
|
}
|
|
91
|
-
.
|
|
93
|
+
.tabs__component_vx28z:before {
|
|
92
94
|
content: '';
|
|
93
95
|
display: block;
|
|
94
96
|
position: absolute;
|
|
@@ -97,15 +99,19 @@
|
|
|
97
99
|
width: 100%;
|
|
98
100
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
99
101
|
}
|
|
100
|
-
.
|
|
102
|
+
.tabs__fullWidthScroll_vx28z {
|
|
101
103
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
102
104
|
margin: 0 var(--gap-m);
|
|
103
105
|
}
|
|
104
|
-
.
|
|
106
|
+
.tabs__container_vx28z {
|
|
105
107
|
position: relative;
|
|
106
108
|
overflow: hidden;
|
|
109
|
+
|
|
110
|
+
/* focus-outline fix */
|
|
111
|
+
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
112
|
+
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
107
113
|
}
|
|
108
|
-
.
|
|
114
|
+
.tabs__title_vx28z {
|
|
109
115
|
display: flex;
|
|
110
116
|
align-items: center;
|
|
111
117
|
height: 100%;
|
|
@@ -123,26 +129,26 @@
|
|
|
123
129
|
cursor: pointer;
|
|
124
130
|
outline: none
|
|
125
131
|
}
|
|
126
|
-
.
|
|
132
|
+
.tabs__title_vx28z:not(.tabs__disabled_vx28z):hover {
|
|
127
133
|
color: var(--primary-tablist-hover-color);
|
|
128
134
|
}
|
|
129
|
-
.
|
|
135
|
+
.tabs__focused_vx28z {
|
|
130
136
|
outline: 2px solid var(--focus-color);
|
|
131
137
|
outline-offset: 2px;
|
|
132
138
|
}
|
|
133
|
-
.
|
|
139
|
+
.tabs__collapsed_vx28z {
|
|
134
140
|
order: 99;
|
|
135
141
|
visibility: collapse;
|
|
136
142
|
}
|
|
137
|
-
.
|
|
143
|
+
.tabs__selected_vx28z {
|
|
138
144
|
cursor: default;
|
|
139
145
|
color: var(--primary-tablist-selected-color);
|
|
140
146
|
}
|
|
141
|
-
.
|
|
147
|
+
.tabs__disabled_vx28z {
|
|
142
148
|
cursor: var(--disabled-cursor);
|
|
143
149
|
color: var(--primary-tablist-disabled-color);
|
|
144
150
|
}
|
|
145
|
-
.
|
|
151
|
+
.tabs__line_vx28z {
|
|
146
152
|
position: absolute;
|
|
147
153
|
height: 3px;
|
|
148
154
|
bottom: 0;
|
|
@@ -151,71 +157,71 @@
|
|
|
151
157
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
152
158
|
}
|
|
153
159
|
/* sizes */
|
|
154
|
-
.
|
|
160
|
+
.tabs__s_vx28z .tabs__title_vx28z, .tabs__xs_vx28z .tabs__title_vx28z, .tabs__xxs_vx28z .tabs__title_vx28z {
|
|
155
161
|
padding: var(--primary-tablist-s-padding);
|
|
156
162
|
font-size: var(--primary-tablist-s-font-size);
|
|
157
163
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
158
164
|
font-family: var(--primary-tablist-s-font-family);
|
|
159
165
|
line-height: 24px;
|
|
160
166
|
}
|
|
161
|
-
.
|
|
167
|
+
.tabs__s_vx28z .tabs__title_vx28z + .tabs__title_vx28z, .tabs__xs_vx28z .tabs__title_vx28z + .tabs__title_vx28z, .tabs__xxs_vx28z .tabs__title_vx28z + .tabs__title_vx28z {
|
|
162
168
|
margin-left: var(--primary-tablist-s-gaps);
|
|
163
169
|
}
|
|
164
|
-
.
|
|
170
|
+
.tabs__s_vx28z .tabs__pickerWrapper_vx28z, .tabs__xs_vx28z .tabs__pickerWrapper_vx28z, .tabs__xxs_vx28z .tabs__pickerWrapper_vx28z {
|
|
165
171
|
margin-left: var(--primary-tablist-s-gaps);
|
|
166
172
|
}
|
|
167
|
-
.
|
|
173
|
+
.tabs__s_vx28z .tabs__option_vx28z, .tabs__xs_vx28z .tabs__option_vx28z, .tabs__xxs_vx28z .tabs__option_vx28z {
|
|
168
174
|
padding: 0;
|
|
169
175
|
}
|
|
170
|
-
.
|
|
176
|
+
.tabs__m_vx28z .tabs__title_vx28z {
|
|
171
177
|
padding: var(--primary-tablist-m-padding);
|
|
172
178
|
font-size: var(--primary-tablist-m-font-size);
|
|
173
179
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
174
180
|
font-family: var(--primary-tablist-m-font-family);
|
|
175
181
|
line-height: 24px;
|
|
176
182
|
}
|
|
177
|
-
.
|
|
183
|
+
.tabs__m_vx28z .tabs__title_vx28z + .tabs__title_vx28z {
|
|
178
184
|
margin-left: var(--primary-tablist-m-gaps);
|
|
179
185
|
}
|
|
180
|
-
.
|
|
186
|
+
.tabs__m_vx28z .tabs__pickerWrapper_vx28z {
|
|
181
187
|
margin-left: var(--primary-tablist-m-gaps);
|
|
182
188
|
}
|
|
183
|
-
.
|
|
189
|
+
.tabs__m_vx28z .tabs__option_vx28z {
|
|
184
190
|
padding: 0;
|
|
185
191
|
}
|
|
186
|
-
.
|
|
192
|
+
.tabs__l_vx28z .tabs__title_vx28z {
|
|
187
193
|
padding: var(--primary-tablist-l-padding);
|
|
188
194
|
font-size: var(--primary-tablist-l-font-size);
|
|
189
195
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
190
196
|
font-family: var(--primary-tablist-l-font-family);
|
|
191
197
|
line-height: 24px;
|
|
192
198
|
}
|
|
193
|
-
.
|
|
199
|
+
.tabs__l_vx28z .tabs__title_vx28z + .tabs__title_vx28z {
|
|
194
200
|
margin-left: var(--primary-tablist-l-gaps);
|
|
195
201
|
}
|
|
196
|
-
.
|
|
202
|
+
.tabs__l_vx28z .tabs__pickerWrapper_vx28z {
|
|
197
203
|
margin-left: var(--primary-tablist-l-gaps);
|
|
198
204
|
}
|
|
199
|
-
.
|
|
205
|
+
.tabs__l_vx28z .tabs__option_vx28z {
|
|
200
206
|
padding: 0;
|
|
201
207
|
}
|
|
202
|
-
.
|
|
208
|
+
.tabs__xl_vx28z .tabs__title_vx28z {
|
|
203
209
|
padding: var(--primary-tablist-xl-padding);
|
|
204
210
|
font-size: var(--primary-tablist-xl-font-size);
|
|
205
211
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
206
212
|
font-family: var(--primary-tablist-xl-font-family);
|
|
207
213
|
line-height: 32px;
|
|
208
214
|
}
|
|
209
|
-
.
|
|
215
|
+
.tabs__xl_vx28z .tabs__title_vx28z + .tabs__title_vx28z {
|
|
210
216
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
211
217
|
}
|
|
212
|
-
.
|
|
218
|
+
.tabs__xl_vx28z .tabs__pickerWrapper_vx28z {
|
|
213
219
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
214
220
|
}
|
|
215
|
-
.
|
|
221
|
+
.tabs__xl_vx28z .tabs__option_vx28z {
|
|
216
222
|
padding: 0;
|
|
217
223
|
}
|
|
218
|
-
.
|
|
224
|
+
.tabs__rightAddons_vx28z {
|
|
219
225
|
display: flex;
|
|
220
226
|
justify-content: center;
|
|
221
227
|
align-items: center;
|