@alfalab/core-components-tabs 7.3.4 → 7.3.6
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 +2 -2
- package/components/primary-tablist/Component.js +2 -2
- package/components/primary-tablist/Component.mobile.js +3 -3
- package/components/primary-tablist/Component.responsive.js +2 -2
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +34 -33
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +5 -5
- 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 +11 -11
- package/components/secondary-tablist/mobile.css +15 -14
- 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/components/primary-tablist/Component.js +1 -1
- package/cssm/hooks/use-collapsible-elements.js +4 -6
- package/cssm/hooks/use-tablist-titles.js +1 -1
- package/desktop.js +3 -3
- package/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/esm/components/primary-tablist/Component.js +2 -2
- 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 +34 -33
- 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 +15 -14
- 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 +5 -7
- package/esm/hooks/use-tablist-titles.js +2 -2
- package/esm/index.js +3 -3
- package/esm/index.module-07028906.js +4 -0
- package/esm/index.module-65c3d6bc.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-ef625021.d.ts → tslib.es6-3bc6f388.d.ts} +0 -0
- package/esm/{tslib.es6-ef625021.js → tslib.es6-3bc6f388.js} +0 -0
- package/hooks/use-collapsible-elements.js +5 -7
- package/hooks/use-tablist-titles.js +2 -2
- package/index.js +3 -3
- package/index.module-dd06cfbf.js +6 -0
- package/index.module-e46cc90c.js +6 -0
- package/mobile.js +3 -3
- package/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.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 +34 -33
- 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 +15 -14
- 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/hooks/use-collapsible-elements.js +4 -6
- package/modern/hooks/use-tablist-titles.js +1 -1
- package/modern/index.js +2 -2
- package/modern/index.module-3a799412.js +4 -0
- package/modern/index.module-d05b11d2.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-860bcbc6.d.ts → tslib.es6-57c5c09e.d.ts} +0 -0
- package/{tslib.es6-860bcbc6.js → tslib.es6-57c5c09e.js} +0 -0
- package/esm/index.module-ba97f96d.js +0 -4
- package/esm/index.module-da19acab.js +0 -4
- package/index.module-3b1c7c9a.js +0 -6
- package/index.module-88a600f7.js +0 -6
- package/modern/index.module-08b2503f.js +0 -4
- package/modern/index.module-a4ad700d.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-57c5c09e.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-dd06cfbf.js');
|
|
23
23
|
require('../secondary-tablist/Component.js');
|
|
24
24
|
require('@alfalab/core-components-tag');
|
|
25
|
-
require('../../index.module-
|
|
25
|
+
require('../../index.module-e46cc90c.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-57c5c09e.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-dd06cfbf.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-e46cc90c.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 }; }
|
|
@@ -66,7 +66,7 @@ var PrimaryTabList = function (_a) {
|
|
|
66
66
|
_a[styles.fullWidthScroll] = fullWidthScroll,
|
|
67
67
|
_a)) },
|
|
68
68
|
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_es6.__assign({}, getTabListItemProps(index, ref), title, { focused: focused, styles: styles }))); })); }),
|
|
69
|
-
collapsedOptions.length ? (React__default.default.createElement("span", { ref: addonRef, role: '
|
|
69
|
+
collapsedOptions.length ? (React__default.default.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
|
|
70
70
|
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,
|
|
71
71
|
React__default.default.createElement("div", { className: styles.line, ref: lineRef })));
|
|
72
72
|
};
|
|
@@ -16,17 +16,15 @@ var useCollapsibleElements = function (selectors, deps) {
|
|
|
16
16
|
if (!container)
|
|
17
17
|
return;
|
|
18
18
|
var addon = addonRef.current;
|
|
19
|
-
var
|
|
20
|
-
var moreElementRect = moreElement === null || moreElement === void 0 ? void 0 : moreElement.getBoundingClientRect();
|
|
19
|
+
var containerWidth = (inlineSize || container.clientWidth) - ((addon === null || addon === void 0 ? void 0 : addon.scrollWidth) || 0) * 1.5; // при расчётах, даём кнопке "Ещё" чуть больше места, чтобы точно влезла
|
|
21
20
|
var elements = Array.from(container.querySelectorAll(selectors));
|
|
22
|
-
var containerWidth = (inlineSize || container.clientWidth) - ((moreElementRect === null || moreElementRect === void 0 ? void 0 : moreElementRect.width) || 0) * 1.5; // при рассчётах, даём кнопке "Ещё" чуть больше места, чтобы точно влезла
|
|
23
21
|
var collapsedIds = elements.reduce(function (acc, element) {
|
|
24
|
-
var offsetLeft = element.offsetLeft,
|
|
25
|
-
var elementOffset = offsetLeft +
|
|
22
|
+
var offsetLeft = element.offsetLeft, scrollWidth = element.scrollWidth, id = element.id;
|
|
23
|
+
var elementOffset = offsetLeft + scrollWidth;
|
|
26
24
|
var isCollapsedElement = getComputedStyle(element).visibility === 'collapse';
|
|
27
25
|
var maxWidth = addon && !isCollapsedElement
|
|
28
26
|
? containerWidth -
|
|
29
|
-
(addon.
|
|
27
|
+
(addon.scrollWidth + parseFloat(getComputedStyle(addon).marginLeft))
|
|
30
28
|
: containerWidth;
|
|
31
29
|
if (elementOffset >= maxWidth)
|
|
32
30
|
acc.push(id);
|
|
@@ -9,7 +9,7 @@ require('@juggle/resize-observer');
|
|
|
9
9
|
|
|
10
10
|
var useTablistTitles = function (_a) {
|
|
11
11
|
var _b = _a.titles, titles = _b === void 0 ? [] : _b, selectedId = _a.selectedId, collapsible = _a.collapsible, collapsedTabsIds = _a.collapsedTabsIds, breakpoint = _a.breakpoint, onChange = _a.onChange;
|
|
12
|
-
var _c = hooks_useCollapsibleElements.useCollapsibleElements('[role=tab]', [titles]), containerRef = _c.containerRef, addonRef = _c.addonRef, idsCollapsedElements = _c.idsCollapsedElements;
|
|
12
|
+
var _c = hooks_useCollapsibleElements.useCollapsibleElements('[role=tab]', [titles, collapsedTabsIds]), containerRef = _c.containerRef, addonRef = _c.addonRef, idsCollapsedElements = _c.idsCollapsedElements;
|
|
13
13
|
var view = hooks.useMedia([['desktop', "(min-width: ".concat(breakpoint, "px)")]], 'desktop')[0];
|
|
14
14
|
var tablistTitles = React.useMemo(function () {
|
|
15
15
|
var idsCollapsedTitles = [];
|
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-57c5c09e.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-dd06cfbf.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-e46cc90c.js');
|
|
26
26
|
require('./components/tabs/Component.js');
|
|
27
27
|
require('@juggle/resize-observer');
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-3bc6f388.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-07028906.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-3bc6f388.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';
|
|
@@ -58,7 +58,7 @@ var PrimaryTabList = function (_a) {
|
|
|
58
58
|
_a[styles.fullWidthScroll] = fullWidthScroll,
|
|
59
59
|
_a)) },
|
|
60
60
|
tablistTitles.map(function (title, index) { return (React.createElement(KeyboardFocusable, { key: title.id }, function (ref, focused) { return (React.createElement(Title, __assign({}, getTabListItemProps(index, ref), title, { focused: focused, styles: styles }))); })); }),
|
|
61
|
-
collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: '
|
|
61
|
+
collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
|
|
62
62
|
React.createElement(PickerButtonDesktop, { fieldClassName: styles.title, optionClassName: cn(styles.pickerOption, size && styles[size]), options: collapsedOptions, onChange: handleOptionsChange, rightAddons: collapsedAddonsLength ? (React.createElement(Badge, { view: 'count', content: collapsedAddonsLength })) : null, size: 'l', view: 'ghost', label: '\u0415\u0449\u0451', popoverPosition: 'bottom-end' }))) : null,
|
|
63
63
|
React.createElement("div", { className: styles.line, ref: lineRef })));
|
|
64
64
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, _ as __rest } from '../../tslib.es6-3bc6f388.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-07028906.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_u0qfl tabs__title_rz0bu","mobile":"tabs__mobile_u0qfl"};
|
|
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-3bc6f388.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-07028906.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: 1f7de */
|
|
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_rz0bu {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_rz0bu: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_rz0bu {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_rz0bu {
|
|
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_rz0bu {
|
|
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_rz0bu:not(.tabs__disabled_rz0bu):hover {
|
|
126
126
|
color: var(--primary-tablist-hover-color);
|
|
127
|
-
} .
|
|
127
|
+
} .tabs__focused_rz0bu {
|
|
128
128
|
outline: 2px solid var(--focus-color);
|
|
129
129
|
outline-offset: 2px;
|
|
130
|
-
} .
|
|
130
|
+
} .tabs__collapsed_rz0bu {
|
|
131
131
|
order: 99;
|
|
132
132
|
visibility: collapse;
|
|
133
|
-
} .
|
|
133
|
+
} .tabs__selected_rz0bu {
|
|
134
134
|
cursor: default;
|
|
135
135
|
color: var(--primary-tablist-selected-color);
|
|
136
|
-
} .
|
|
136
|
+
} .tabs__disabled_rz0bu {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
color: var(--primary-tablist-disabled-color);
|
|
139
|
-
} .
|
|
139
|
+
} .tabs__line_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu, .tabs__xs_rz0bu .tabs__title_rz0bu, .tabs__xxs_rz0bu .tabs__title_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu, .tabs__xs_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu, .tabs__xxs_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
153
153
|
margin-left: var(--primary-tablist-s-gaps);
|
|
154
|
-
} .
|
|
154
|
+
} .tabs__s_rz0bu .tabs__pickerWrapper_rz0bu, .tabs__xs_rz0bu .tabs__pickerWrapper_rz0bu, .tabs__xxs_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
155
155
|
margin-left: var(--primary-tablist-s-gaps);
|
|
156
|
-
} .
|
|
156
|
+
} .tabs__s_rz0bu .tabs__option_rz0bu, .tabs__xs_rz0bu .tabs__option_rz0bu, .tabs__xxs_rz0bu .tabs__option_rz0bu {
|
|
157
157
|
padding: 0;
|
|
158
|
-
} .
|
|
158
|
+
} .tabs__m_rz0bu .tabs__title_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
165
165
|
margin-left: var(--primary-tablist-m-gaps);
|
|
166
|
-
} .
|
|
166
|
+
} .tabs__m_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
167
167
|
margin-left: var(--primary-tablist-m-gaps);
|
|
168
|
-
} .
|
|
168
|
+
} .tabs__m_rz0bu .tabs__option_rz0bu {
|
|
169
169
|
padding: 0;
|
|
170
|
-
} .
|
|
170
|
+
} .tabs__l_rz0bu .tabs__title_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
177
177
|
margin-left: var(--primary-tablist-l-gaps);
|
|
178
|
-
} .
|
|
178
|
+
} .tabs__l_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
179
179
|
margin-left: var(--primary-tablist-l-gaps);
|
|
180
|
-
} .
|
|
180
|
+
} .tabs__l_rz0bu .tabs__option_rz0bu {
|
|
181
181
|
padding: 0;
|
|
182
|
-
} .
|
|
182
|
+
} .tabs__xl_rz0bu .tabs__title_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
189
189
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
190
|
-
} .
|
|
190
|
+
} .tabs__xl_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
191
191
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
192
|
-
} .
|
|
192
|
+
} .tabs__xl_rz0bu .tabs__option_rz0bu {
|
|
193
193
|
padding: 0;
|
|
194
|
-
} .
|
|
194
|
+
} .tabs__rightAddons_rz0bu {
|
|
195
195
|
display: flex;
|
|
196
196
|
justify-content: center;
|
|
197
197
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lsh29 */
|
|
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_rz0bu {
|
|
94
94
|
position: relative;
|
|
95
95
|
display: inline-flex;
|
|
96
96
|
min-width: 100%
|
|
97
|
-
}.
|
|
97
|
+
}.tabs__component_rz0bu: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_rz0bu {
|
|
106
106
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
107
107
|
margin: 0 var(--gap-m);
|
|
108
|
-
}.
|
|
108
|
+
}.tabs__container_rz0bu {
|
|
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_rz0bu {
|
|
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_rz0bu:not(.tabs__disabled_rz0bu):hover {
|
|
133
133
|
color: var(--primary-tablist-hover-color);
|
|
134
|
-
}.
|
|
134
|
+
}.tabs__focused_rz0bu {
|
|
135
135
|
outline: 2px solid var(--focus-color);
|
|
136
136
|
outline-offset: 2px;
|
|
137
|
-
}.
|
|
137
|
+
}.tabs__collapsed_rz0bu {
|
|
138
138
|
order: 99;
|
|
139
139
|
visibility: collapse;
|
|
140
|
-
}.
|
|
140
|
+
}.tabs__selected_rz0bu {
|
|
141
141
|
cursor: default;
|
|
142
142
|
color: var(--primary-tablist-selected-color);
|
|
143
|
-
}.
|
|
143
|
+
}.tabs__disabled_rz0bu {
|
|
144
144
|
cursor: var(--disabled-cursor);
|
|
145
145
|
color: var(--primary-tablist-disabled-color);
|
|
146
|
-
}.
|
|
146
|
+
}.tabs__line_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu, .tabs__xs_rz0bu .tabs__title_rz0bu, .tabs__xxs_rz0bu .tabs__title_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu, .tabs__xs_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu, .tabs__xxs_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
160
160
|
margin-left: var(--primary-tablist-s-gaps);
|
|
161
|
-
}.
|
|
161
|
+
}.tabs__s_rz0bu .tabs__pickerWrapper_rz0bu, .tabs__xs_rz0bu .tabs__pickerWrapper_rz0bu, .tabs__xxs_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
162
162
|
margin-left: var(--primary-tablist-s-gaps);
|
|
163
|
-
}.
|
|
163
|
+
}.tabs__s_rz0bu .tabs__option_rz0bu, .tabs__xs_rz0bu .tabs__option_rz0bu, .tabs__xxs_rz0bu .tabs__option_rz0bu {
|
|
164
164
|
padding: 0;
|
|
165
|
-
}.
|
|
165
|
+
}.tabs__m_rz0bu .tabs__title_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
172
172
|
margin-left: var(--primary-tablist-m-gaps);
|
|
173
|
-
}.
|
|
173
|
+
}.tabs__m_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
174
174
|
margin-left: var(--primary-tablist-m-gaps);
|
|
175
|
-
}.
|
|
175
|
+
}.tabs__m_rz0bu .tabs__option_rz0bu {
|
|
176
176
|
padding: 0;
|
|
177
|
-
}.
|
|
177
|
+
}.tabs__l_rz0bu .tabs__title_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
184
184
|
margin-left: var(--primary-tablist-l-gaps);
|
|
185
|
-
}.
|
|
185
|
+
}.tabs__l_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
186
186
|
margin-left: var(--primary-tablist-l-gaps);
|
|
187
|
-
}.
|
|
187
|
+
}.tabs__l_rz0bu .tabs__option_rz0bu {
|
|
188
188
|
padding: 0;
|
|
189
|
-
}.
|
|
189
|
+
}.tabs__xl_rz0bu .tabs__title_rz0bu {
|
|
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_rz0bu .tabs__title_rz0bu + .tabs__title_rz0bu {
|
|
196
196
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
197
|
-
}.
|
|
197
|
+
}.tabs__xl_rz0bu .tabs__pickerWrapper_rz0bu {
|
|
198
198
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
199
|
-
}.
|
|
199
|
+
}.tabs__xl_rz0bu .tabs__option_rz0bu {
|
|
200
200
|
padding: 0;
|
|
201
|
-
}.
|
|
201
|
+
}.tabs__rightAddons_rz0bu {
|
|
202
202
|
display: flex;
|
|
203
203
|
justify-content: center;
|
|
204
204
|
align-items: center;
|
|
@@ -937,7 +937,8 @@
|
|
|
937
937
|
sans-serif;
|
|
938
938
|
--disabled-cursor: not-allowed;
|
|
939
939
|
--arrow-transform: rotate(180deg);
|
|
940
|
-
--size-
|
|
940
|
+
--size-xxs-height: 32px;
|
|
941
|
+
--size-xs-height: 40px;
|
|
941
942
|
--size-s-height: 48px;
|
|
942
943
|
--size-m-height: 56px;
|
|
943
944
|
--size-l-height: 64px;
|
|
@@ -1007,13 +1008,13 @@
|
|
|
1007
1008
|
|
|
1008
1009
|
/* size xl */
|
|
1009
1010
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
1010
|
-
} .
|
|
1011
|
-
} .
|
|
1011
|
+
} .tabs__title_u0qfl {
|
|
1012
|
+
} .tabs__mobile_u0qfl .tabs__title_u0qfl {
|
|
1012
1013
|
padding: var(--primary-tablist-mobile-padding);
|
|
1013
1014
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
1014
1015
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
1015
1016
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
1016
1017
|
line-height: var(--primary-tablist-mobile-line-height)
|
|
1017
|
-
} .
|
|
1018
|
+
} .tabs__mobile_u0qfl .tabs__title_u0qfl + .tabs__title_u0qfl {
|
|
1018
1019
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
1019
1020
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import computeScrollIntoView from 'compute-scroll-into-view';
|
|
4
4
|
|
|
5
|
-
var styles = {"container":"
|
|
5
|
+
var styles = {"container":"tabs__container_5lqpq","fullWidthScroll":"tabs__fullWidthScroll_5lqpq"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sqnt3 */
|
|
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_5lqpq {
|
|
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_5lqpq::-webkit-scrollbar {
|
|
56
56
|
display: none;
|
|
57
|
-
} .
|
|
57
|
+
} .tabs__container_5lqpq > * {
|
|
58
58
|
flex-shrink: 0;
|
|
59
|
-
} .
|
|
59
|
+
} .tabs__fullWidthScroll_5lqpq {
|
|
60
60
|
margin: 0 var(--gap-m-neg);
|
|
61
61
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-3bc6f388.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { SecondaryTabList } from './Component.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-65c3d6bc.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-tag/esm';
|
|
7
7
|
import '../../hooks/use-tabs.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, _ as __rest } from '../../tslib.es6-3bc6f388.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { SecondaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-65c3d6bc.js';
|
|
6
6
|
import '@alfalab/core-components-tag/esm';
|
|
7
7
|
import '../../hooks/use-tabs.js';
|
|
8
8
|
import '../scrollable-container/Component.js';
|
|
9
9
|
import 'compute-scroll-into-view';
|
|
10
10
|
|
|
11
|
-
var mobileStyles = {"title":"
|
|
11
|
+
var mobileStyles = {"title":"tabs__title_124hg tabs__title_1xkkh","mobile":"tabs__mobile_124hg"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
14
|
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-3bc6f388.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useMedia } from '@alfalab/hooks';
|
|
4
4
|
import { SecondaryTabListDesktop } from './Component.desktop.js';
|
|
@@ -9,7 +9,7 @@ import '@alfalab/core-components-tag/esm';
|
|
|
9
9
|
import '../../hooks/use-tabs.js';
|
|
10
10
|
import '../scrollable-container/Component.js';
|
|
11
11
|
import 'compute-scroll-into-view';
|
|
12
|
-
import '../../index.module-
|
|
12
|
+
import '../../index.module-65c3d6bc.js';
|
|
13
13
|
|
|
14
14
|
var SecondaryTabListResponsive = function (_a) {
|
|
15
15
|
var size = _a.size, _b = _a.defaultMatch, defaultMatch = _b === void 0 ? 'desktop' : _b, fullWidthScroll = _a.fullWidthScroll, restProps = __rest(_a, ["size", "defaultMatch", "fullWidthScroll"]);
|