@alfalab/core-components-tabs 7.3.6 → 7.3.7
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/components/primary-tablist/Component.desktop.js +4 -4
- package/components/primary-tablist/Component.js +3 -3
- package/components/primary-tablist/Component.mobile.js +6 -6
- package/components/primary-tablist/Component.responsive.js +4 -4
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +32 -32
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +5 -5
- package/components/secondary-tablist/Component.desktop.js +4 -4
- package/components/secondary-tablist/Component.js +2 -2
- package/components/secondary-tablist/Component.mobile.js +6 -6
- package/components/secondary-tablist/Component.responsive.js +4 -4
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +13 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +5 -5
- package/components/tabs/Component.mobile.js +5 -5
- package/components/tabs/Component.responsive.js +5 -5
- package/components/title/Component.js +3 -3
- package/components/title/index.js +1 -1
- package/cssm/components/primary-tablist/Component.desktop.js +3 -3
- package/cssm/components/primary-tablist/Component.js +3 -3
- package/cssm/components/primary-tablist/Component.mobile.js +4 -4
- package/cssm/components/primary-tablist/Component.responsive.js +3 -3
- package/cssm/components/secondary-tablist/Component.desktop.js +3 -3
- package/cssm/components/secondary-tablist/Component.js +2 -2
- package/cssm/components/secondary-tablist/Component.mobile.js +4 -4
- package/cssm/components/secondary-tablist/Component.responsive.js +3 -3
- package/cssm/components/tabs/Component.desktop.js +3 -3
- package/cssm/components/tabs/Component.mobile.js +3 -3
- package/cssm/components/tabs/Component.responsive.js +3 -3
- package/cssm/components/title/Component.js +3 -3
- package/cssm/components/title/index.js +1 -1
- package/cssm/desktop.js +1 -1
- package/cssm/hooks/use-collapsible-elements.js +2 -2
- package/cssm/hooks/use-tablist-titles.js +2 -2
- package/cssm/index-7ca84eff.d.ts +5 -1
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/responsive.js +1 -1
- package/cssm/synthetic-events.js +3 -3
- package/desktop.js +3 -3
- 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 +29 -29
- package/esm/components/primary-tablist/mobile.css +32 -32
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +5 -5
- 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 +11 -11
- package/esm/components/secondary-tablist/mobile.css +13 -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-7ca84eff.d.ts +5 -1
- package/esm/index.js +3 -3
- package/esm/index.module-6526d0f8.js +4 -0
- package/esm/index.module-9fdbc6b1.js +4 -0
- package/esm/mobile.js +3 -3
- package/esm/responsive.js +3 -3
- package/esm/synthetic-events.js +1 -1
- package/hooks/use-collapsible-elements.js +2 -2
- package/hooks/use-tablist-titles.js +2 -2
- package/index-7ca84eff.d.ts +5 -1
- package/index.js +3 -3
- package/index.module-1af5e8ab.js +6 -0
- package/index.module-41c09f8d.js +6 -0
- package/mobile.js +3 -3
- 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 +29 -29
- package/modern/components/primary-tablist/mobile.css +32 -32
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +5 -5
- 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 +11 -11
- package/modern/components/secondary-tablist/mobile.css +13 -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-7ca84eff.d.ts +5 -1
- package/modern/index.js +2 -2
- package/modern/index.module-14493370.js +4 -0
- package/modern/index.module-ffb625b2.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/package.json +7 -6
- package/responsive.js +3 -3
- package/synthetic-events.js +3 -3
- package/cssm/tslib.es6-0e9bf404.d.ts +0 -36
- package/cssm/tslib.es6-0e9bf404.js +0 -54
- package/esm/index.module-07028906.js +0 -4
- package/esm/index.module-65c3d6bc.js +0 -4
- package/esm/tslib.es6-3bc6f388.d.ts +0 -36
- package/esm/tslib.es6-3bc6f388.js +0 -51
- package/index.module-dd06cfbf.js +0 -6
- package/index.module-e46cc90c.js +0 -6
- package/modern/index.module-3a799412.js +0 -4
- package/modern/index.module-d05b11d2.js +0 -4
- package/tslib.es6-57c5c09e.d.ts +0 -36
- package/tslib.es6-57c5c09e.js +0 -54
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var components_primaryTablist_Component = require('./Component.js');
|
|
6
|
-
var index_module = require('../../index.module-
|
|
6
|
+
var index_module = require('../../index.module-1af5e8ab.js');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/core-components-badge');
|
|
9
9
|
require('@alfalab/core-components-keyboard-focusable');
|
|
@@ -23,8 +23,8 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
24
24
|
|
|
25
25
|
var PrimaryTabListDesktop = function (_a) {
|
|
26
|
-
var _b = _a.size, size = _b === void 0 ? 'm' : _b, restProps =
|
|
27
|
-
return (React__default.default.createElement(components_primaryTablist_Component.PrimaryTabList,
|
|
26
|
+
var _b = _a.size, size = _b === void 0 ? 'm' : _b, restProps = tslib.__rest(_a, ["size"]);
|
|
27
|
+
return (React__default.default.createElement(components_primaryTablist_Component.PrimaryTabList, tslib.__assign({}, restProps, { size: size, styles: index_module.commonStyles })));
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
exports.PrimaryTabListDesktop = PrimaryTabListDesktop;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var coreComponentsBadge = require('@alfalab/core-components-badge');
|
|
@@ -44,7 +44,7 @@ var PrimaryTabList = function (_a) {
|
|
|
44
44
|
options.push({
|
|
45
45
|
key: title.title,
|
|
46
46
|
value: title.id,
|
|
47
|
-
content: React__default.default.createElement(components_title_Component.Title,
|
|
47
|
+
content: React__default.default.createElement(components_title_Component.Title, tslib.__assign({}, title, { styles: styles, isOption: true })),
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
return options;
|
|
@@ -64,7 +64,7 @@ var PrimaryTabList = function (_a) {
|
|
|
64
64
|
return (React__default.default.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn__default.default(styles.component, className, size && styles[size], (_a = {},
|
|
65
65
|
_a[styles.fullWidthScroll] = fullWidthScroll,
|
|
66
66
|
_a)) },
|
|
67
|
-
tablistTitles.map(function (title, index) { return (React__default.default.createElement(coreComponentsKeyboardFocusable.KeyboardFocusable, { key: title.id }, function (ref, focused) { return (React__default.default.createElement(components_title_Component.Title,
|
|
67
|
+
tablistTitles.map(function (title, index) { return (React__default.default.createElement(coreComponentsKeyboardFocusable.KeyboardFocusable, { key: title.id }, function (ref, focused) { return (React__default.default.createElement(components_title_Component.Title, tslib.__assign({}, getTabListItemProps(index, ref), title, { focused: focused, styles: styles }))); })); }),
|
|
68
68
|
collapsedOptions.length ? (React__default.default.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
|
|
69
69
|
React__default.default.createElement(desktop.PickerButtonDesktop, { fieldClassName: styles.title, optionClassName: cn__default.default(styles.pickerOption, size && styles[size]), options: collapsedOptions, onChange: handleOptionsChange, rightAddons: collapsedAddonsLength ? (React__default.default.createElement(coreComponentsBadge.Badge, { view: 'count', content: collapsedAddonsLength })) : null, size: 'l', view: 'ghost', label: '\u0415\u0449\u0451', popoverPosition: 'bottom-end' }))) : null,
|
|
70
70
|
React__default.default.createElement("div", { className: styles.line, ref: lineRef })));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var components_primaryTablist_Component = require('./Component.js');
|
|
7
|
-
var index_module = require('../../index.module-
|
|
7
|
+
var index_module = require('../../index.module-1af5e8ab.js');
|
|
8
8
|
require('@alfalab/core-components-badge');
|
|
9
9
|
require('@alfalab/core-components-keyboard-focusable');
|
|
10
10
|
require('@alfalab/core-components-picker-button/desktop');
|
|
@@ -23,13 +23,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
24
24
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
25
25
|
|
|
26
|
-
var mobileStyles = {"title":"
|
|
26
|
+
var mobileStyles = {"title":"tabs__title_aj6aj tabs__title_1q26v","mobile":"tabs__mobile_aj6aj"};
|
|
27
27
|
require('./mobile.css')
|
|
28
28
|
|
|
29
|
-
var styles =
|
|
29
|
+
var styles = tslib.__assign(tslib.__assign({}, index_module.commonStyles), mobileStyles);
|
|
30
30
|
var PrimaryTabListMobile = function (_a) {
|
|
31
|
-
var className = _a.className, restProps =
|
|
32
|
-
return (React__default.default.createElement(components_primaryTablist_Component.PrimaryTabList,
|
|
31
|
+
var className = _a.className, restProps = tslib.__rest(_a, ["className"]);
|
|
32
|
+
return (React__default.default.createElement(components_primaryTablist_Component.PrimaryTabList, tslib.__assign({}, restProps, { styles: styles, className: cn__default.default(className, styles.mobile) })));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
exports.PrimaryTabListMobile = PrimaryTabListMobile;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var hooks = require('@alfalab/hooks');
|
|
6
6
|
var components_primaryTablist_Component_desktop = require('./Component.desktop.js');
|
|
@@ -18,19 +18,19 @@ require('../../synthetic-events.js');
|
|
|
18
18
|
require('../scrollable-container/Component.js');
|
|
19
19
|
require('compute-scroll-into-view');
|
|
20
20
|
require('../title/Component.js');
|
|
21
|
-
require('../../index.module-
|
|
21
|
+
require('../../index.module-1af5e8ab.js');
|
|
22
22
|
|
|
23
23
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
24
24
|
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
26
|
|
|
27
27
|
var PrimaryTabListResponsive = function (_a) {
|
|
28
|
-
var size = _a.size, _b = _a.defaultMatch, defaultMatch = _b === void 0 ? 'desktop' : _b, collapsible = _a.collapsible, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, restProps =
|
|
28
|
+
var size = _a.size, _b = _a.defaultMatch, defaultMatch = _b === void 0 ? 'desktop' : _b, collapsible = _a.collapsible, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, restProps = tslib.__rest(_a, ["size", "defaultMatch", "collapsible", "collapsedTabsIds", "fullWidthScroll"]);
|
|
29
29
|
var view = hooks.useMedia([
|
|
30
30
|
['mobile', '(max-width: 767px)'],
|
|
31
31
|
['desktop', '(min-width: 768px)'],
|
|
32
32
|
], defaultMatch)[0];
|
|
33
|
-
return view === 'desktop' ? (React__default.default.createElement(components_primaryTablist_Component_desktop.PrimaryTabListDesktop,
|
|
33
|
+
return view === 'desktop' ? (React__default.default.createElement(components_primaryTablist_Component_desktop.PrimaryTabListDesktop, tslib.__assign({ collapsible: collapsible, collapsedTabsIds: collapsedTabsIds, size: size }, restProps))) : (React__default.default.createElement(components_primaryTablist_Component_mobile.PrimaryTabListMobile, tslib.__assign({ fullWidthScroll: fullWidthScroll }, restProps)));
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
exports.PrimaryTabListResponsive = PrimaryTabListResponsive;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: stde7 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
/* size l */
|
|
84
84
|
|
|
85
85
|
/* size xl */
|
|
86
|
-
} .
|
|
86
|
+
} .tabs__component_1q26v {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_1q26v:before {
|
|
91
91
|
content: '';
|
|
92
92
|
display: block;
|
|
93
93
|
position: absolute;
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
height: 1px;
|
|
96
96
|
width: 100%;
|
|
97
97
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
98
|
-
} .
|
|
98
|
+
} .tabs__fullWidthScroll_1q26v {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_1q26v {
|
|
102
102
|
position: relative;
|
|
103
103
|
overflow: hidden;
|
|
104
104
|
|
|
105
105
|
/* focus-outline fix */
|
|
106
106
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
107
107
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
108
|
-
} .
|
|
108
|
+
} .tabs__title_1q26v {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: 100%;
|
|
@@ -122,76 +122,76 @@
|
|
|
122
122
|
user-select: none;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
outline: none
|
|
125
|
-
} .
|
|
125
|
+
} .tabs__title_1q26v:not(.tabs__disabled_1q26v):hover {
|
|
126
126
|
color: var(--primary-tablist-hover-color);
|
|
127
|
-
} .
|
|
127
|
+
} .tabs__focused_1q26v {
|
|
128
128
|
outline: 2px solid var(--focus-color);
|
|
129
129
|
outline-offset: 2px;
|
|
130
|
-
} .
|
|
130
|
+
} .tabs__collapsed_1q26v {
|
|
131
131
|
order: 99;
|
|
132
132
|
visibility: collapse;
|
|
133
|
-
} .
|
|
133
|
+
} .tabs__selected_1q26v {
|
|
134
134
|
cursor: default;
|
|
135
135
|
color: var(--primary-tablist-selected-color);
|
|
136
|
-
} .
|
|
136
|
+
} .tabs__disabled_1q26v {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
color: var(--primary-tablist-disabled-color);
|
|
139
|
-
} .
|
|
139
|
+
} .tabs__line_1q26v {
|
|
140
140
|
position: absolute;
|
|
141
141
|
height: 3px;
|
|
142
142
|
bottom: 0;
|
|
143
143
|
left: 0;
|
|
144
144
|
background-color: var(--primary-tablist-line-color);
|
|
145
145
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
146
|
-
} /* sizes */ .
|
|
146
|
+
} /* sizes */ .tabs__s_1q26v .tabs__title_1q26v, .tabs__xs_1q26v .tabs__title_1q26v, .tabs__xxs_1q26v .tabs__title_1q26v {
|
|
147
147
|
padding: var(--primary-tablist-s-padding);
|
|
148
148
|
font-size: var(--primary-tablist-s-font-size);
|
|
149
149
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
150
150
|
font-family: var(--primary-tablist-s-font-family);
|
|
151
151
|
line-height: 24px;
|
|
152
|
-
} .
|
|
152
|
+
} .tabs__s_1q26v .tabs__title_1q26v + .tabs__title_1q26v, .tabs__xs_1q26v .tabs__title_1q26v + .tabs__title_1q26v, .tabs__xxs_1q26v .tabs__title_1q26v + .tabs__title_1q26v {
|
|
153
153
|
margin-left: var(--primary-tablist-s-gaps);
|
|
154
|
-
} .
|
|
154
|
+
} .tabs__s_1q26v .tabs__pickerWrapper_1q26v, .tabs__xs_1q26v .tabs__pickerWrapper_1q26v, .tabs__xxs_1q26v .tabs__pickerWrapper_1q26v {
|
|
155
155
|
margin-left: var(--primary-tablist-s-gaps);
|
|
156
|
-
} .
|
|
156
|
+
} .tabs__s_1q26v .tabs__option_1q26v, .tabs__xs_1q26v .tabs__option_1q26v, .tabs__xxs_1q26v .tabs__option_1q26v {
|
|
157
157
|
padding: 0;
|
|
158
|
-
} .
|
|
158
|
+
} .tabs__m_1q26v .tabs__title_1q26v {
|
|
159
159
|
padding: var(--primary-tablist-m-padding);
|
|
160
160
|
font-size: var(--primary-tablist-m-font-size);
|
|
161
161
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
162
162
|
font-family: var(--primary-tablist-m-font-family);
|
|
163
163
|
line-height: 24px;
|
|
164
|
-
} .
|
|
164
|
+
} .tabs__m_1q26v .tabs__title_1q26v + .tabs__title_1q26v {
|
|
165
165
|
margin-left: var(--primary-tablist-m-gaps);
|
|
166
|
-
} .
|
|
166
|
+
} .tabs__m_1q26v .tabs__pickerWrapper_1q26v {
|
|
167
167
|
margin-left: var(--primary-tablist-m-gaps);
|
|
168
|
-
} .
|
|
168
|
+
} .tabs__m_1q26v .tabs__option_1q26v {
|
|
169
169
|
padding: 0;
|
|
170
|
-
} .
|
|
170
|
+
} .tabs__l_1q26v .tabs__title_1q26v {
|
|
171
171
|
padding: var(--primary-tablist-l-padding);
|
|
172
172
|
font-size: var(--primary-tablist-l-font-size);
|
|
173
173
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
174
174
|
font-family: var(--primary-tablist-l-font-family);
|
|
175
175
|
line-height: 24px;
|
|
176
|
-
} .
|
|
176
|
+
} .tabs__l_1q26v .tabs__title_1q26v + .tabs__title_1q26v {
|
|
177
177
|
margin-left: var(--primary-tablist-l-gaps);
|
|
178
|
-
} .
|
|
178
|
+
} .tabs__l_1q26v .tabs__pickerWrapper_1q26v {
|
|
179
179
|
margin-left: var(--primary-tablist-l-gaps);
|
|
180
|
-
} .
|
|
180
|
+
} .tabs__l_1q26v .tabs__option_1q26v {
|
|
181
181
|
padding: 0;
|
|
182
|
-
} .
|
|
182
|
+
} .tabs__xl_1q26v .tabs__title_1q26v {
|
|
183
183
|
padding: var(--primary-tablist-xl-padding);
|
|
184
184
|
font-size: var(--primary-tablist-xl-font-size);
|
|
185
185
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
186
186
|
font-family: var(--primary-tablist-xl-font-family);
|
|
187
187
|
line-height: 32px;
|
|
188
|
-
} .
|
|
188
|
+
} .tabs__xl_1q26v .tabs__title_1q26v + .tabs__title_1q26v {
|
|
189
189
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
190
|
-
} .
|
|
190
|
+
} .tabs__xl_1q26v .tabs__pickerWrapper_1q26v {
|
|
191
191
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
192
|
-
} .
|
|
192
|
+
} .tabs__xl_1q26v .tabs__option_1q26v {
|
|
193
193
|
padding: 0;
|
|
194
|
-
} .
|
|
194
|
+
} .tabs__rightAddons_1q26v {
|
|
195
195
|
display: flex;
|
|
196
196
|
justify-content: center;
|
|
197
197
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tpvrh */
|
|
2
2
|
:root {
|
|
3
3
|
}/* deprecated */:root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
/* size l */
|
|
91
91
|
|
|
92
92
|
/* size xl */
|
|
93
|
-
}.
|
|
93
|
+
}.tabs__component_1q26v {
|
|
94
94
|
position: relative;
|
|
95
95
|
display: inline-flex;
|
|
96
96
|
min-width: 100%
|
|
97
|
-
}.
|
|
97
|
+
}.tabs__component_1q26v:before {
|
|
98
98
|
content: '';
|
|
99
99
|
display: block;
|
|
100
100
|
position: absolute;
|
|
@@ -102,17 +102,17 @@
|
|
|
102
102
|
height: 1px;
|
|
103
103
|
width: 100%;
|
|
104
104
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
105
|
-
}.
|
|
105
|
+
}.tabs__fullWidthScroll_1q26v {
|
|
106
106
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
107
107
|
margin: 0 var(--gap-m);
|
|
108
|
-
}.
|
|
108
|
+
}.tabs__container_1q26v {
|
|
109
109
|
position: relative;
|
|
110
110
|
overflow: hidden;
|
|
111
111
|
|
|
112
112
|
/* focus-outline fix */
|
|
113
113
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
114
114
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
115
|
-
}.
|
|
115
|
+
}.tabs__title_1q26v {
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: center;
|
|
118
118
|
height: 100%;
|
|
@@ -129,76 +129,76 @@
|
|
|
129
129
|
user-select: none;
|
|
130
130
|
cursor: pointer;
|
|
131
131
|
outline: none
|
|
132
|
-
}.
|
|
132
|
+
}.tabs__title_1q26v:not(.tabs__disabled_1q26v):hover {
|
|
133
133
|
color: var(--primary-tablist-hover-color);
|
|
134
|
-
}.
|
|
134
|
+
}.tabs__focused_1q26v {
|
|
135
135
|
outline: 2px solid var(--focus-color);
|
|
136
136
|
outline-offset: 2px;
|
|
137
|
-
}.
|
|
137
|
+
}.tabs__collapsed_1q26v {
|
|
138
138
|
order: 99;
|
|
139
139
|
visibility: collapse;
|
|
140
|
-
}.
|
|
140
|
+
}.tabs__selected_1q26v {
|
|
141
141
|
cursor: default;
|
|
142
142
|
color: var(--primary-tablist-selected-color);
|
|
143
|
-
}.
|
|
143
|
+
}.tabs__disabled_1q26v {
|
|
144
144
|
cursor: var(--disabled-cursor);
|
|
145
145
|
color: var(--primary-tablist-disabled-color);
|
|
146
|
-
}.
|
|
146
|
+
}.tabs__line_1q26v {
|
|
147
147
|
position: absolute;
|
|
148
148
|
height: 3px;
|
|
149
149
|
bottom: 0;
|
|
150
150
|
left: 0;
|
|
151
151
|
background-color: var(--primary-tablist-line-color);
|
|
152
152
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
153
|
-
}/* sizes */.
|
|
153
|
+
}/* sizes */.tabs__s_1q26v .tabs__title_1q26v, .tabs__xs_1q26v .tabs__title_1q26v, .tabs__xxs_1q26v .tabs__title_1q26v {
|
|
154
154
|
padding: var(--primary-tablist-s-padding);
|
|
155
155
|
font-size: var(--primary-tablist-s-font-size);
|
|
156
156
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
157
157
|
font-family: var(--primary-tablist-s-font-family);
|
|
158
158
|
line-height: 24px;
|
|
159
|
-
}.
|
|
159
|
+
}.tabs__s_1q26v .tabs__title_1q26v + .tabs__title_1q26v, .tabs__xs_1q26v .tabs__title_1q26v + .tabs__title_1q26v, .tabs__xxs_1q26v .tabs__title_1q26v + .tabs__title_1q26v {
|
|
160
160
|
margin-left: var(--primary-tablist-s-gaps);
|
|
161
|
-
}.
|
|
161
|
+
}.tabs__s_1q26v .tabs__pickerWrapper_1q26v, .tabs__xs_1q26v .tabs__pickerWrapper_1q26v, .tabs__xxs_1q26v .tabs__pickerWrapper_1q26v {
|
|
162
162
|
margin-left: var(--primary-tablist-s-gaps);
|
|
163
|
-
}.
|
|
163
|
+
}.tabs__s_1q26v .tabs__option_1q26v, .tabs__xs_1q26v .tabs__option_1q26v, .tabs__xxs_1q26v .tabs__option_1q26v {
|
|
164
164
|
padding: 0;
|
|
165
|
-
}.
|
|
165
|
+
}.tabs__m_1q26v .tabs__title_1q26v {
|
|
166
166
|
padding: var(--primary-tablist-m-padding);
|
|
167
167
|
font-size: var(--primary-tablist-m-font-size);
|
|
168
168
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
169
169
|
font-family: var(--primary-tablist-m-font-family);
|
|
170
170
|
line-height: 24px;
|
|
171
|
-
}.
|
|
171
|
+
}.tabs__m_1q26v .tabs__title_1q26v + .tabs__title_1q26v {
|
|
172
172
|
margin-left: var(--primary-tablist-m-gaps);
|
|
173
|
-
}.
|
|
173
|
+
}.tabs__m_1q26v .tabs__pickerWrapper_1q26v {
|
|
174
174
|
margin-left: var(--primary-tablist-m-gaps);
|
|
175
|
-
}.
|
|
175
|
+
}.tabs__m_1q26v .tabs__option_1q26v {
|
|
176
176
|
padding: 0;
|
|
177
|
-
}.
|
|
177
|
+
}.tabs__l_1q26v .tabs__title_1q26v {
|
|
178
178
|
padding: var(--primary-tablist-l-padding);
|
|
179
179
|
font-size: var(--primary-tablist-l-font-size);
|
|
180
180
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
181
181
|
font-family: var(--primary-tablist-l-font-family);
|
|
182
182
|
line-height: 24px;
|
|
183
|
-
}.
|
|
183
|
+
}.tabs__l_1q26v .tabs__title_1q26v + .tabs__title_1q26v {
|
|
184
184
|
margin-left: var(--primary-tablist-l-gaps);
|
|
185
|
-
}.
|
|
185
|
+
}.tabs__l_1q26v .tabs__pickerWrapper_1q26v {
|
|
186
186
|
margin-left: var(--primary-tablist-l-gaps);
|
|
187
|
-
}.
|
|
187
|
+
}.tabs__l_1q26v .tabs__option_1q26v {
|
|
188
188
|
padding: 0;
|
|
189
|
-
}.
|
|
189
|
+
}.tabs__xl_1q26v .tabs__title_1q26v {
|
|
190
190
|
padding: var(--primary-tablist-xl-padding);
|
|
191
191
|
font-size: var(--primary-tablist-xl-font-size);
|
|
192
192
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
193
193
|
font-family: var(--primary-tablist-xl-font-family);
|
|
194
194
|
line-height: 32px;
|
|
195
|
-
}.
|
|
195
|
+
}.tabs__xl_1q26v .tabs__title_1q26v + .tabs__title_1q26v {
|
|
196
196
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
197
|
-
}.
|
|
197
|
+
}.tabs__xl_1q26v .tabs__pickerWrapper_1q26v {
|
|
198
198
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
199
|
-
}.
|
|
199
|
+
}.tabs__xl_1q26v .tabs__option_1q26v {
|
|
200
200
|
padding: 0;
|
|
201
|
-
}.
|
|
201
|
+
}.tabs__rightAddons_1q26v {
|
|
202
202
|
display: flex;
|
|
203
203
|
justify-content: center;
|
|
204
204
|
align-items: center;
|
|
@@ -1008,13 +1008,13 @@
|
|
|
1008
1008
|
|
|
1009
1009
|
/* size xl */
|
|
1010
1010
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
1011
|
-
} .
|
|
1012
|
-
} .
|
|
1011
|
+
} .tabs__title_aj6aj {
|
|
1012
|
+
} .tabs__mobile_aj6aj .tabs__title_aj6aj {
|
|
1013
1013
|
padding: var(--primary-tablist-mobile-padding);
|
|
1014
1014
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
1015
1015
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
1016
1016
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
1017
1017
|
line-height: var(--primary-tablist-mobile-line-height)
|
|
1018
|
-
} .
|
|
1018
|
+
} .tabs__mobile_aj6aj .tabs__title_aj6aj + .tabs__title_aj6aj {
|
|
1019
1019
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
1020
1020
|
}
|
|
@@ -10,7 +10,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
10
10
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
11
11
|
var computeScrollIntoView__default = /*#__PURE__*/_interopDefaultCompat(computeScrollIntoView);
|
|
12
12
|
|
|
13
|
-
var styles = {"container":"
|
|
13
|
+
var styles = {"container":"tabs__container_2evgt","fullWidthScroll":"tabs__fullWidthScroll_2evgt"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15v7f */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
/* size l */
|
|
43
43
|
|
|
44
44
|
/* size xl */
|
|
45
|
-
} .
|
|
45
|
+
} .tabs__container_2evgt {
|
|
46
46
|
position: relative;
|
|
47
47
|
overflow-x: auto;
|
|
48
48
|
overflow-y: hidden;
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
/* focus-outline fix */
|
|
53
53
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
54
54
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs)
|
|
55
|
-
} .
|
|
55
|
+
} .tabs__container_2evgt::-webkit-scrollbar {
|
|
56
56
|
display: none;
|
|
57
|
-
} .
|
|
57
|
+
} .tabs__container_2evgt > * {
|
|
58
58
|
flex-shrink: 0;
|
|
59
|
-
} .
|
|
59
|
+
} .tabs__fullWidthScroll_2evgt {
|
|
60
60
|
margin: 0 var(--gap-m-neg);
|
|
61
61
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var components_secondaryTablist_Component = require('./Component.js');
|
|
6
|
-
var index_module = require('../../index.module-
|
|
6
|
+
var index_module = require('../../index.module-41c09f8d.js');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/core-components-tag');
|
|
9
9
|
require('../../hooks/use-tabs.js');
|
|
@@ -15,8 +15,8 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
16
|
|
|
17
17
|
var SecondaryTabListDesktop = function (_a) {
|
|
18
|
-
var _b = _a.size, size = _b === void 0 ? 's' : _b, restProps =
|
|
19
|
-
return (React__default.default.createElement(components_secondaryTablist_Component.SecondaryTabList,
|
|
18
|
+
var _b = _a.size, size = _b === void 0 ? 's' : _b, restProps = tslib.__rest(_a, ["size"]);
|
|
19
|
+
return (React__default.default.createElement(components_secondaryTablist_Component.SecondaryTabList, tslib.__assign({}, restProps, { size: size, styles: index_module.commonStyles, tagSize: size })));
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
exports.SecondaryTabListDesktop = SecondaryTabListDesktop;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var coreComponentsTag = require('@alfalab/core-components-tag');
|
|
@@ -27,7 +27,7 @@ var SecondaryTabList = function (_a) {
|
|
|
27
27
|
_a)) }, titles.map(function (item, index) {
|
|
28
28
|
if (item.hidden)
|
|
29
29
|
return null;
|
|
30
|
-
return (React__default.default.createElement(coreComponentsTag.Tag,
|
|
30
|
+
return (React__default.default.createElement(coreComponentsTag.Tag, tslib.__assign({}, getTabListItemProps(index), { key: item.id, className: cn__default.default(styles.title, item.toggleClassName), checked: item.id === selectedId, size: tagSize, rightAddons: item.rightAddons }), item.title));
|
|
31
31
|
})));
|
|
32
32
|
};
|
|
33
33
|
return scrollable ? (React__default.default.createElement(components_scrollableContainer_Component.ScrollableContainer, { activeChild: focusedTab || selectedTab, containerClassName: containerClassName, fullWidthScroll: fullWidthScroll }, renderContent())) : (React__default.default.createElement("div", { className: cn__default.default(styles.container, containerClassName) }, renderContent()));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var components_secondaryTablist_Component = require('./Component.js');
|
|
7
|
-
var index_module = require('../../index.module-
|
|
7
|
+
var index_module = require('../../index.module-41c09f8d.js');
|
|
8
8
|
require('@alfalab/core-components-tag');
|
|
9
9
|
require('../../hooks/use-tabs.js');
|
|
10
10
|
require('../scrollable-container/Component.js');
|
|
@@ -15,13 +15,13 @@ 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 mobileStyles = {"title":"
|
|
18
|
+
var mobileStyles = {"title":"tabs__title_1ixy2 tabs__title_1e30c","mobile":"tabs__mobile_1ixy2"};
|
|
19
19
|
require('./mobile.css')
|
|
20
20
|
|
|
21
|
-
var styles =
|
|
21
|
+
var styles = tslib.__assign(tslib.__assign({}, index_module.commonStyles), mobileStyles);
|
|
22
22
|
var SecondaryTabListMobile = function (_a) {
|
|
23
|
-
var className = _a.className, restProps =
|
|
24
|
-
return (React__default.default.createElement(components_secondaryTablist_Component.SecondaryTabList,
|
|
23
|
+
var className = _a.className, restProps = tslib.__rest(_a, ["className"]);
|
|
24
|
+
return (React__default.default.createElement(components_secondaryTablist_Component.SecondaryTabList, tslib.__assign({}, restProps, { styles: styles, className: cn__default.default(className, styles.mobile), tagSize: 'xs' })));
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
exports.SecondaryTabListMobile = SecondaryTabListMobile;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var hooks = require('@alfalab/hooks');
|
|
6
6
|
var components_secondaryTablist_Component_desktop = require('./Component.desktop.js');
|
|
@@ -11,19 +11,19 @@ require('@alfalab/core-components-tag');
|
|
|
11
11
|
require('../../hooks/use-tabs.js');
|
|
12
12
|
require('../scrollable-container/Component.js');
|
|
13
13
|
require('compute-scroll-into-view');
|
|
14
|
-
require('../../index.module-
|
|
14
|
+
require('../../index.module-41c09f8d.js');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
17
|
|
|
18
18
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
19
19
|
|
|
20
20
|
var SecondaryTabListResponsive = function (_a) {
|
|
21
|
-
var size = _a.size, _b = _a.defaultMatch, defaultMatch = _b === void 0 ? 'desktop' : _b, fullWidthScroll = _a.fullWidthScroll, restProps =
|
|
21
|
+
var size = _a.size, _b = _a.defaultMatch, defaultMatch = _b === void 0 ? 'desktop' : _b, fullWidthScroll = _a.fullWidthScroll, restProps = tslib.__rest(_a, ["size", "defaultMatch", "fullWidthScroll"]);
|
|
22
22
|
var view = hooks.useMedia([
|
|
23
23
|
['mobile', '(max-width: 767px)'],
|
|
24
24
|
['desktop', '(min-width: 768px)'],
|
|
25
25
|
], defaultMatch)[0];
|
|
26
|
-
return view === 'desktop' ? (React__default.default.createElement(components_secondaryTablist_Component_desktop.SecondaryTabListDesktop,
|
|
26
|
+
return view === 'desktop' ? (React__default.default.createElement(components_secondaryTablist_Component_desktop.SecondaryTabListDesktop, tslib.__assign({ size: size }, restProps))) : (React__default.default.createElement(components_secondaryTablist_Component_mobile.SecondaryTabListMobile, tslib.__assign({ fullWidthScroll: fullWidthScroll }, restProps)));
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
exports.SecondaryTabListResponsive = SecondaryTabListResponsive;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: wv7ht */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -50,29 +50,29 @@
|
|
|
50
50
|
|
|
51
51
|
/* size xl */
|
|
52
52
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
53
|
-
} .
|
|
53
|
+
} .tabs__component_1e30c {
|
|
54
54
|
position: relative;
|
|
55
55
|
display: inline-flex;
|
|
56
|
-
} .
|
|
56
|
+
} .tabs__fullWidthScroll_1e30c {
|
|
57
57
|
margin: 0 var(--gap-m);
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_1e30c {
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
|
|
61
61
|
/* focus-outline fix */
|
|
62
62
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
63
63
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
64
|
-
} .
|
|
64
|
+
} .tabs__title_1e30c {
|
|
65
65
|
white-space: nowrap;
|
|
66
|
-
} /* sizes */ .
|
|
66
|
+
} /* sizes */ .tabs__xxs_1e30c .tabs__title_1e30c + .tabs__title_1e30c {
|
|
67
67
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
68
|
-
} .
|
|
68
|
+
} .tabs__xs_1e30c .tabs__title_1e30c + .tabs__title_1e30c {
|
|
69
69
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
70
|
-
} .
|
|
70
|
+
} .tabs__s_1e30c .tabs__title_1e30c + .tabs__title_1e30c {
|
|
71
71
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
72
|
-
} .
|
|
72
|
+
} .tabs__m_1e30c .tabs__title_1e30c + .tabs__title_1e30c {
|
|
73
73
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
74
|
-
} .
|
|
74
|
+
} .tabs__l_1e30c .tabs__title_1e30c + .tabs__title_1e30c {
|
|
75
75
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
76
|
-
} .
|
|
76
|
+
} .tabs__xl_1e30c .tabs__title_1e30c + .tabs__title_1e30c {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|