@alfalab/core-components-tabs 8.1.5 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/collapsible/index.d.ts +2 -0
- package/{collapsible.js → collapsible/index.js} +10 -10
- package/collapsible/package.json +3 -0
- package/components/primary-tablist/Component.collapsible.js +9 -9
- package/components/primary-tablist/Component.desktop.js +4 -3
- package/components/primary-tablist/Component.js +14 -4
- package/components/primary-tablist/Component.mobile.js +5 -4
- package/components/primary-tablist/Component.responsive.js +3 -2
- package/components/primary-tablist/index.css +30 -30
- package/components/primary-tablist/mobile.css +33 -33
- package/components/scroll-controls/Component.js +1 -1
- package/components/scroll-controls/index.css +14 -14
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +6 -6
- package/components/secondary-tablist/Component.desktop.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +2 -2
- package/components/secondary-tablist/Component.responsive.js +1 -1
- 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.collapsible.js +1 -1
- package/components/tabs/Component.desktop.js +4 -3
- package/components/tabs/Component.mobile.js +4 -3
- package/components/tabs/Component.responsive.js +4 -3
- package/cssm/collapsible/index.d.ts +2 -0
- package/cssm/{collapsible.js → collapsible/index.js} +11 -11
- package/cssm/components/primary-tablist/Component.desktop.js +2 -1
- package/cssm/components/primary-tablist/Component.js +14 -4
- package/cssm/components/primary-tablist/Component.mobile.js +2 -1
- package/cssm/components/primary-tablist/Component.responsive.js +2 -1
- package/cssm/components/tabs/Component.desktop.js +2 -1
- package/cssm/components/tabs/Component.mobile.js +2 -1
- package/cssm/components/tabs/Component.responsive.js +2 -1
- package/cssm/desktop/index.d.ts +4 -0
- package/cssm/desktop/index.js +40 -0
- package/cssm/index.js +2 -1
- package/cssm/mobile/index.d.ts +4 -0
- package/cssm/mobile/index.js +42 -0
- package/cssm/shared/index.d.ts +4 -0
- package/cssm/{shared.js → shared/index.js} +7 -7
- package/desktop/index.d.ts +4 -0
- package/desktop/index.js +37 -0
- package/desktop/package.json +3 -0
- package/esm/collapsible/index.d.ts +2 -0
- package/esm/collapsible/index.js +20 -0
- package/esm/components/primary-tablist/Component.collapsible.js +9 -9
- package/esm/components/primary-tablist/Component.desktop.js +4 -3
- package/esm/components/primary-tablist/Component.js +14 -4
- package/esm/components/primary-tablist/Component.mobile.js +5 -4
- package/esm/components/primary-tablist/Component.responsive.js +3 -2
- package/esm/components/primary-tablist/index.css +30 -30
- package/esm/components/primary-tablist/mobile.css +33 -33
- package/esm/components/scroll-controls/Component.js +1 -1
- package/esm/components/scroll-controls/index.css +14 -14
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +6 -6
- package/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +2 -2
- package/esm/components/secondary-tablist/Component.responsive.js +1 -1
- 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.collapsible.js +1 -1
- package/esm/components/tabs/Component.desktop.js +4 -3
- package/esm/components/tabs/Component.mobile.js +4 -3
- package/esm/components/tabs/Component.responsive.js +4 -3
- package/esm/desktop/index.d.ts +4 -0
- package/esm/desktop/index.js +26 -0
- package/esm/index.js +4 -3
- package/esm/index.module-0eaed9a1.js +4 -0
- package/esm/index.module-9c24fafb.js +4 -0
- package/esm/mobile/index.d.ts +4 -0
- package/esm/mobile/index.js +26 -0
- package/esm/shared/index.d.ts +4 -0
- package/esm/{shared.js → shared/index.js} +5 -5
- package/index.js +4 -3
- package/index.module-177df2c1.js +6 -0
- package/index.module-2f940b9f.js +6 -0
- package/mobile/index.d.ts +4 -0
- package/mobile/index.js +37 -0
- package/mobile/package.json +3 -0
- package/modern/collapsible/index.d.ts +2 -0
- package/modern/collapsible/index.js +19 -0
- package/modern/components/primary-tablist/Component.collapsible.js +9 -9
- package/modern/components/primary-tablist/Component.desktop.js +4 -3
- package/modern/components/primary-tablist/Component.js +14 -4
- package/modern/components/primary-tablist/Component.mobile.js +5 -4
- package/modern/components/primary-tablist/Component.responsive.js +3 -2
- package/modern/components/primary-tablist/index.css +30 -30
- package/modern/components/primary-tablist/mobile.css +33 -33
- package/modern/components/scroll-controls/Component.js +1 -1
- package/modern/components/scroll-controls/index.css +14 -14
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +6 -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 +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.collapsible.js +1 -1
- package/modern/components/tabs/Component.desktop.js +4 -3
- package/modern/components/tabs/Component.mobile.js +4 -3
- package/modern/components/tabs/Component.responsive.js +4 -3
- package/modern/desktop/index.d.ts +4 -0
- package/modern/desktop/index.js +25 -0
- package/modern/index.js +4 -3
- package/modern/index.module-4070c7f9.js +4 -0
- package/modern/index.module-a791a93d.js +4 -0
- package/modern/mobile/index.d.ts +4 -0
- package/modern/mobile/index.js +25 -0
- package/modern/shared/index.d.ts +4 -0
- package/modern/{shared.js → shared/index.js} +5 -5
- package/package.json +5 -33
- package/shared/index.d.ts +4 -0
- package/{shared.js → shared/index.js} +5 -5
- package/shared/package.json +3 -0
- package/src/collapsible/index.ts +2 -0
- package/src/collapsible/package.json +3 -0
- package/src/components/primary-tablist/Component.tsx +18 -3
- package/src/desktop/index.ts +4 -0
- package/src/desktop/package.json +3 -0
- package/src/mobile/index.ts +4 -0
- package/src/mobile/package.json +3 -0
- package/src/shared/index.ts +4 -0
- package/src/shared/package.json +3 -0
- package/Component-0f4b9bed.d.ts +0 -100
- package/Component-4cd3936b.d.ts +0 -12
- package/Component-69921c40.d.ts +0 -184
- package/Component-89f0cb07.d.ts +0 -38
- package/Component-8b2c2707.d.ts +0 -14
- package/Component-bdb4c6b9.d.ts +0 -12
- package/Component-c76d6398.d.ts +0 -5
- package/Component-ebda875c.d.ts +0 -12
- package/Component.desktop-0aa4e915.d.ts +0 -5
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.mobile-16b1285a.d.ts +0 -5
- package/Component.mobile-d7e9f69d.d.ts +0 -6
- package/Component.mobile-ebda875c.d.ts +0 -6
- package/Context-bdb4c6b9.d.ts +0 -4
- package/ResponsiveContext-baf4875b.d.ts +0 -5
- package/collapsible.d.ts +0 -2
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/Component-0f4b9bed.d.ts +0 -100
- package/cssm/Component-4cd3936b.d.ts +0 -12
- package/cssm/Component-69921c40.d.ts +0 -184
- package/cssm/Component-89f0cb07.d.ts +0 -38
- package/cssm/Component-8b2c2707.d.ts +0 -14
- package/cssm/Component-bdb4c6b9.d.ts +0 -12
- package/cssm/Component-c76d6398.d.ts +0 -5
- package/cssm/Component-ebda875c.d.ts +0 -12
- package/cssm/Component.desktop-0aa4e915.d.ts +0 -5
- package/cssm/Component.desktop-785df74d.d.ts +0 -6
- package/cssm/Component.mobile-16b1285a.d.ts +0 -5
- package/cssm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/cssm/Component.mobile-ebda875c.d.ts +0 -6
- package/cssm/Context-bdb4c6b9.d.ts +0 -4
- package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/cssm/collapsible.d.ts +0 -2
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/cssm/desktop-89f0cb07.d.ts +0 -2
- package/cssm/desktop.d.ts +0 -4
- package/cssm/desktop.js +0 -39
- package/cssm/hook-8abfea97.d.ts +0 -90
- package/cssm/index-136acbb1.d.ts +0 -28
- package/cssm/index-8b2c2707.d.ts +0 -6
- package/cssm/index-bdb4c6b9.d.ts +0 -2
- package/cssm/index-c44170fe.d.ts +0 -131
- package/cssm/index-c76d6398.d.ts +0 -140
- package/cssm/index-ebda875c.d.ts +0 -40
- package/cssm/index-f12ee135.d.ts +0 -324
- package/cssm/mobile-89f0cb07.d.ts +0 -2
- package/cssm/mobile-d7e9f69d.d.ts +0 -2
- package/cssm/mobile.d.ts +0 -4
- package/cssm/mobile.js +0 -41
- package/cssm/shared-4cd3936b.d.ts +0 -107
- package/cssm/shared.d.ts +0 -4
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-4480ac4f.d.ts +0 -3
- package/cssm/typings-0f4b9bed.d.ts +0 -576
- package/cssm/typings-89f0cb07.d.ts +0 -93
- package/cssm/typings-bdb4c6b9.d.ts +0 -52
- package/cssm/useSkeleton-ebda875c.d.ts +0 -12
- package/cssm/utils-0f4b9bed.d.ts +0 -41
- package/cssm/utils-1574ad8b.d.ts +0 -29
- package/desktop-89f0cb07.d.ts +0 -2
- package/desktop.d.ts +0 -4
- package/desktop.js +0 -36
- package/esm/Component-0f4b9bed.d.ts +0 -100
- package/esm/Component-4cd3936b.d.ts +0 -12
- package/esm/Component-69921c40.d.ts +0 -184
- package/esm/Component-89f0cb07.d.ts +0 -38
- package/esm/Component-8b2c2707.d.ts +0 -14
- package/esm/Component-bdb4c6b9.d.ts +0 -12
- package/esm/Component-c76d6398.d.ts +0 -5
- package/esm/Component-ebda875c.d.ts +0 -12
- package/esm/Component.desktop-0aa4e915.d.ts +0 -5
- package/esm/Component.desktop-785df74d.d.ts +0 -6
- package/esm/Component.mobile-16b1285a.d.ts +0 -5
- package/esm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/esm/Component.mobile-ebda875c.d.ts +0 -6
- package/esm/Context-bdb4c6b9.d.ts +0 -4
- package/esm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/esm/collapsible.d.ts +0 -2
- package/esm/collapsible.js +0 -20
- package/esm/consts-f777ba1a.d.ts +0 -2
- package/esm/desktop-89f0cb07.d.ts +0 -2
- package/esm/desktop.d.ts +0 -4
- package/esm/desktop.js +0 -25
- package/esm/hook-8abfea97.d.ts +0 -90
- package/esm/index-136acbb1.d.ts +0 -28
- package/esm/index-8b2c2707.d.ts +0 -6
- package/esm/index-bdb4c6b9.d.ts +0 -2
- package/esm/index-c44170fe.d.ts +0 -131
- package/esm/index-c76d6398.d.ts +0 -140
- package/esm/index-ebda875c.d.ts +0 -105
- package/esm/index-f12ee135.d.ts +0 -324
- package/esm/index.module-55063a9a.js +0 -4
- package/esm/index.module-82cf190f.js +0 -4
- package/esm/mobile-89f0cb07.d.ts +0 -2
- package/esm/mobile-d7e9f69d.d.ts +0 -2
- package/esm/mobile.d.ts +0 -4
- package/esm/mobile.js +0 -25
- package/esm/shared-4cd3936b.d.ts +0 -107
- package/esm/shared.d.ts +0 -4
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-4480ac4f.d.ts +0 -3
- package/esm/typings-0f4b9bed.d.ts +0 -576
- package/esm/typings-89f0cb07.d.ts +0 -93
- package/esm/typings-bdb4c6b9.d.ts +0 -52
- package/esm/useSkeleton-ebda875c.d.ts +0 -12
- package/esm/utils-0f4b9bed.d.ts +0 -41
- package/esm/utils-1574ad8b.d.ts +0 -29
- package/hook-8abfea97.d.ts +0 -90
- package/index-136acbb1.d.ts +0 -28
- package/index-8b2c2707.d.ts +0 -6
- package/index-bdb4c6b9.d.ts +0 -2
- package/index-c44170fe.d.ts +0 -131
- package/index-c76d6398.d.ts +0 -140
- package/index-ebda875c.d.ts +0 -105
- package/index-f12ee135.d.ts +0 -324
- package/index.module-869888c7.js +0 -6
- package/index.module-d1432e9e.js +0 -6
- package/mobile-89f0cb07.d.ts +0 -2
- package/mobile-d7e9f69d.d.ts +0 -2
- package/mobile.d.ts +0 -4
- package/mobile.js +0 -36
- package/modern/Component-0f4b9bed.d.ts +0 -100
- package/modern/Component-4cd3936b.d.ts +0 -12
- package/modern/Component-69921c40.d.ts +0 -184
- package/modern/Component-89f0cb07.d.ts +0 -38
- package/modern/Component-8b2c2707.d.ts +0 -14
- package/modern/Component-bdb4c6b9.d.ts +0 -12
- package/modern/Component-c76d6398.d.ts +0 -5
- package/modern/Component-ebda875c.d.ts +0 -12
- package/modern/Component.desktop-0aa4e915.d.ts +0 -5
- package/modern/Component.desktop-785df74d.d.ts +0 -6
- package/modern/Component.mobile-16b1285a.d.ts +0 -5
- package/modern/Component.mobile-d7e9f69d.d.ts +0 -6
- package/modern/Component.mobile-ebda875c.d.ts +0 -6
- package/modern/Context-bdb4c6b9.d.ts +0 -4
- package/modern/ResponsiveContext-baf4875b.d.ts +0 -5
- package/modern/collapsible.d.ts +0 -2
- package/modern/collapsible.js +0 -19
- package/modern/consts-f777ba1a.d.ts +0 -2
- package/modern/desktop-89f0cb07.d.ts +0 -2
- package/modern/desktop.d.ts +0 -4
- package/modern/desktop.js +0 -24
- package/modern/hook-8abfea97.d.ts +0 -90
- package/modern/index-136acbb1.d.ts +0 -28
- package/modern/index-8b2c2707.d.ts +0 -6
- package/modern/index-bdb4c6b9.d.ts +0 -2
- package/modern/index-c44170fe.d.ts +0 -131
- package/modern/index-c76d6398.d.ts +0 -140
- package/modern/index-ebda875c.d.ts +0 -105
- package/modern/index-f12ee135.d.ts +0 -324
- package/modern/index.module-2d531cfb.js +0 -4
- package/modern/index.module-7b0d0808.js +0 -4
- package/modern/mobile-89f0cb07.d.ts +0 -2
- package/modern/mobile-d7e9f69d.d.ts +0 -2
- package/modern/mobile.d.ts +0 -4
- package/modern/mobile.js +0 -24
- package/modern/shared-4cd3936b.d.ts +0 -107
- package/modern/shared.d.ts +0 -4
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-4480ac4f.d.ts +0 -3
- package/modern/typings-0f4b9bed.d.ts +0 -576
- package/modern/typings-89f0cb07.d.ts +0 -93
- package/modern/typings-bdb4c6b9.d.ts +0 -52
- package/modern/useSkeleton-ebda875c.d.ts +0 -12
- package/modern/utils-0f4b9bed.d.ts +0 -41
- package/modern/utils-1574ad8b.d.ts +0 -29
- package/shared-4cd3936b.d.ts +0 -107
- package/shared.d.ts +0 -4
- package/src/collapsible.ts +0 -2
- package/src/desktop.ts +0 -4
- package/src/mobile.ts +0 -4
- package/src/shared.ts +0 -4
- package/types-1b036d4b.d.ts +0 -13
- package/types-4480ac4f.d.ts +0 -3
- package/typings-0f4b9bed.d.ts +0 -576
- package/typings-89f0cb07.d.ts +0 -93
- package/typings-bdb4c6b9.d.ts +0 -52
- package/useSkeleton-ebda875c.d.ts +0 -12
- package/utils-0f4b9bed.d.ts +0 -41
- package/utils-1574ad8b.d.ts +0 -29
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { TabsCollapsible } from '../components/tabs/Component.collapsible.js';
|
|
2
|
+
export { Tab } from '../components/tab/Component.js';
|
|
3
|
+
import 'tslib';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../components/primary-tablist/Component.collapsible.js';
|
|
6
|
+
import 'classnames';
|
|
7
|
+
import '@alfalab/core-components-badge/esm';
|
|
8
|
+
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
9
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
10
|
+
import '../hooks/use-tablist-titles.js';
|
|
11
|
+
import '@alfalab/core-components-mq/esm';
|
|
12
|
+
import '../hooks/use-collapsible-elements.js';
|
|
13
|
+
import '@juggle/resize-observer';
|
|
14
|
+
import '@alfalab/hooks';
|
|
15
|
+
import '../hooks/use-tabs.js';
|
|
16
|
+
import '@alfalab/core-components-shared/esm';
|
|
17
|
+
import '../synthetic-events.js';
|
|
18
|
+
import '../components/title/Component.js';
|
|
19
|
+
import '../index.module-0eaed9a1.js';
|
|
20
|
+
import '../components/tabs/Component.js';
|
|
@@ -7,7 +7,7 @@ import { PickerButtonDesktop } from '@alfalab/core-components-picker-button/esm/
|
|
|
7
7
|
import { useTablistTitles } from '../../hooks/use-tablist-titles.js';
|
|
8
8
|
import { createSyntheticMouseEvent } from '../../synthetic-events.js';
|
|
9
9
|
import { Title } from '../title/Component.js';
|
|
10
|
-
import {
|
|
10
|
+
import { s as styles } from '../../index.module-0eaed9a1.js';
|
|
11
11
|
import '@alfalab/core-components-mq/esm';
|
|
12
12
|
import '../../hooks/use-collapsible-elements.js';
|
|
13
13
|
import '@juggle/resize-observer';
|
|
@@ -38,7 +38,7 @@ var CollapsiblePrimaryTabList = function (_a) {
|
|
|
38
38
|
options.push({
|
|
39
39
|
key: title.title,
|
|
40
40
|
value: title.id,
|
|
41
|
-
content: React.createElement(Title, __assign({}, title, { styles:
|
|
41
|
+
content: React.createElement(Title, __assign({}, title, { styles: styles, isOption: true })),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
return options;
|
|
@@ -55,18 +55,18 @@ var CollapsiblePrimaryTabList = function (_a) {
|
|
|
55
55
|
};
|
|
56
56
|
var renderContent = function () {
|
|
57
57
|
var _a;
|
|
58
|
-
return (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(
|
|
59
|
-
_a[
|
|
58
|
+
return (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(styles.component, className, size && styles[size], (_a = {},
|
|
59
|
+
_a[styles.fullWidthScroll] = fullWidthScroll,
|
|
60
60
|
_a)) },
|
|
61
61
|
tablistTitles.map(function (_a, index) {
|
|
62
62
|
_a.dataTestId; var restTitleProps = __rest(_a, ["dataTestId"]);
|
|
63
|
-
return (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, function (ref, focused) { return (React.createElement(Title, __assign({}, getTabListItemProps(index, ref), restTitleProps, { focused: focused, styles:
|
|
63
|
+
return (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, function (ref, focused) { return (React.createElement(Title, __assign({}, getTabListItemProps(index, ref), restTitleProps, { focused: focused, styles: styles }))); }));
|
|
64
64
|
}),
|
|
65
|
-
collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className:
|
|
66
|
-
React.createElement(PickerButtonDesktop, { fieldClassName:
|
|
67
|
-
React.createElement("div", { className:
|
|
65
|
+
collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
|
|
66
|
+
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: 'm', view: 'ghost', label: '\u0415\u0449\u0451', popoverPosition: 'bottom-end' }))) : null,
|
|
67
|
+
React.createElement("div", { className: styles.line, ref: lineRef })));
|
|
68
68
|
};
|
|
69
|
-
return (React.createElement("div", { ref: containerRef, className: cn(
|
|
69
|
+
return (React.createElement("div", { ref: containerRef, className: cn(styles.container, containerClassName) }, renderContent()));
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
export { CollapsiblePrimaryTabList };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PrimaryTabList } from './Component.js';
|
|
4
|
-
import {
|
|
4
|
+
import { s as styles } from '../../index.module-0eaed9a1.js';
|
|
5
|
+
import '@juggle/resize-observer';
|
|
5
6
|
import 'classnames';
|
|
6
7
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
7
|
-
import '../../hooks/use-tabs.js';
|
|
8
8
|
import '@alfalab/core-components-shared/esm';
|
|
9
|
+
import '../../hooks/use-tabs.js';
|
|
9
10
|
import '../scrollable-container/Component.js';
|
|
10
11
|
import 'compute-scroll-into-view';
|
|
11
12
|
import '../scroll-controls/Component.js';
|
|
@@ -18,7 +19,7 @@ import '../title/Component.js';
|
|
|
18
19
|
|
|
19
20
|
var PrimaryTabListDesktop = function (_a) {
|
|
20
21
|
var _b = _a.size, size = _b === void 0 ? 'm' : _b, restProps = __rest(_a, ["size"]);
|
|
21
|
-
return (React.createElement(PrimaryTabList, __assign({}, restProps, { size: size, styles:
|
|
22
|
+
return (React.createElement(PrimaryTabList, __assign({}, restProps, { size: size, styles: styles, platform: 'desktop' })));
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export { PrimaryTabListDesktop };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { useRef, useEffect } from 'react';
|
|
3
|
+
import { ResizeObserver } from '@juggle/resize-observer';
|
|
3
4
|
import cn from 'classnames';
|
|
4
5
|
import { KeyboardFocusable } from '@alfalab/core-components-keyboard-focusable/esm';
|
|
6
|
+
import { fnUtils } from '@alfalab/core-components-shared/esm';
|
|
5
7
|
import { useTabs } from '../../hooks/use-tabs.js';
|
|
6
8
|
import { ScrollableContainer } from '../scrollable-container/Component.js';
|
|
7
9
|
import { Title } from '../title/Component.js';
|
|
8
|
-
import '@alfalab/core-components-shared/esm';
|
|
9
10
|
import 'compute-scroll-into-view';
|
|
10
11
|
import '../scroll-controls/Component.js';
|
|
11
12
|
import 'lodash.debounce';
|
|
@@ -23,10 +24,19 @@ var PrimaryTabList = function (_a) {
|
|
|
23
24
|
onChange: onChange,
|
|
24
25
|
}), selectedTab = _f.selectedTab, focusedTab = _f.focusedTab, getTabListItemProps = _f.getTabListItemProps;
|
|
25
26
|
useEffect(function () {
|
|
26
|
-
if (selectedTab
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
if (selectedTab) {
|
|
28
|
+
var updateLineWidth = function () {
|
|
29
|
+
if (lineRef.current) {
|
|
30
|
+
lineRef.current.style.width = "".concat(selectedTab.offsetWidth, "px");
|
|
31
|
+
lineRef.current.style.transform = "translateX(".concat(selectedTab.offsetLeft, "px)");
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var ResizeObserver_1 = window.ResizeObserver || ResizeObserver;
|
|
35
|
+
var observer_1 = new ResizeObserver_1(updateLineWidth);
|
|
36
|
+
observer_1.observe(selectedTab);
|
|
37
|
+
return function () { return observer_1.disconnect(); };
|
|
29
38
|
}
|
|
39
|
+
return fnUtils.noop;
|
|
30
40
|
}, [selectedTab]);
|
|
31
41
|
var renderContent = function () {
|
|
32
42
|
var _a;
|
|
@@ -2,10 +2,11 @@ import { __assign, __rest } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { PrimaryTabList } from './Component.js';
|
|
5
|
-
import {
|
|
5
|
+
import { s as styles$1 } from '../../index.module-0eaed9a1.js';
|
|
6
|
+
import '@juggle/resize-observer';
|
|
6
7
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
7
|
-
import '../../hooks/use-tabs.js';
|
|
8
8
|
import '@alfalab/core-components-shared/esm';
|
|
9
|
+
import '../../hooks/use-tabs.js';
|
|
9
10
|
import '../scrollable-container/Component.js';
|
|
10
11
|
import 'compute-scroll-into-view';
|
|
11
12
|
import '../scroll-controls/Component.js';
|
|
@@ -16,10 +17,10 @@ import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
|
16
17
|
import '../scroll-controls/utils.js';
|
|
17
18
|
import '../title/Component.js';
|
|
18
19
|
|
|
19
|
-
var mobileStyles = {"title":"
|
|
20
|
+
var mobileStyles = {"title":"tabs__title_vbdu8 tabs__title_h18s1","mobile":"tabs__mobile_vbdu8"};
|
|
20
21
|
require('./mobile.css')
|
|
21
22
|
|
|
22
|
-
var styles = __assign(__assign({},
|
|
23
|
+
var styles = __assign(__assign({}, styles$1), mobileStyles);
|
|
23
24
|
var PrimaryTabListMobile = function (_a) {
|
|
24
25
|
var className = _a.className, restProps = __rest(_a, ["className"]);
|
|
25
26
|
return (React.createElement(PrimaryTabList, __assign({}, restProps, { styles: styles, className: cn(className, styles.mobile), platform: 'mobile' })));
|
|
@@ -4,10 +4,11 @@ import { useMatchMedia } from '@alfalab/core-components-mq/esm';
|
|
|
4
4
|
import { PrimaryTabListDesktop } from './Component.desktop.js';
|
|
5
5
|
import { PrimaryTabListMobile } from './Component.mobile.js';
|
|
6
6
|
import './Component.js';
|
|
7
|
+
import '@juggle/resize-observer';
|
|
7
8
|
import 'classnames';
|
|
8
9
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
9
|
-
import '../../hooks/use-tabs.js';
|
|
10
10
|
import '@alfalab/core-components-shared/esm';
|
|
11
|
+
import '../../hooks/use-tabs.js';
|
|
11
12
|
import '../scrollable-container/Component.js';
|
|
12
13
|
import 'compute-scroll-into-view';
|
|
13
14
|
import '../scroll-controls/Component.js';
|
|
@@ -17,7 +18,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
17
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
19
|
import '../scroll-controls/utils.js';
|
|
19
20
|
import '../title/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
21
|
+
import '../../index.module-0eaed9a1.js';
|
|
21
22
|
|
|
22
23
|
var PrimaryTabListResponsive = function (_a) {
|
|
23
24
|
var size = _a.size, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, fullWidthScroll = _a.fullWidthScroll, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = __rest(_a, ["size", "breakpoint", "fullWidthScroll", "defaultMatchMediaValue"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15maf */
|
|
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_h18s1 {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_h18s1: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_h18s1 {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_h18s1 {
|
|
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_h18s1 {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: 100%;
|
|
@@ -121,78 +121,78 @@
|
|
|
121
121
|
-webkit-user-select: none;
|
|
122
122
|
user-select: none;
|
|
123
123
|
outline: none
|
|
124
|
-
} .
|
|
124
|
+
} .tabs__title_h18s1:not(.tabs__disabled_h18s1):hover {
|
|
125
125
|
color: var(--primary-tablist-hover-color);
|
|
126
|
-
} .
|
|
126
|
+
} .tabs__focused_h18s1 {
|
|
127
127
|
outline: 2px solid var(--focus-color);
|
|
128
128
|
outline-offset: 2px;
|
|
129
|
-
} .
|
|
129
|
+
} .tabs__collapsed_h18s1 {
|
|
130
130
|
order: 99;
|
|
131
131
|
visibility: collapse;
|
|
132
|
-
} .
|
|
132
|
+
} .tabs__selected_h18s1 {
|
|
133
133
|
cursor: default;
|
|
134
134
|
color: var(--primary-tablist-selected-color);
|
|
135
|
-
} .
|
|
135
|
+
} .tabs__disabled_h18s1 {
|
|
136
136
|
cursor: var(--disabled-cursor);
|
|
137
137
|
color: var(--primary-tablist-disabled-color);
|
|
138
|
-
} .
|
|
138
|
+
} .tabs__line_h18s1 {
|
|
139
139
|
position: absolute;
|
|
140
140
|
height: 3px;
|
|
141
141
|
bottom: 0;
|
|
142
142
|
left: 0;
|
|
143
143
|
background-color: var(--primary-tablist-line-color);
|
|
144
144
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
145
|
-
} .
|
|
145
|
+
} .tabs__option_h18s1 {
|
|
146
146
|
color: var(--color-light-text-primary);
|
|
147
|
-
} /* sizes */ .
|
|
147
|
+
} /* sizes */ .tabs__s_h18s1 .tabs__title_h18s1, .tabs__xs_h18s1 .tabs__title_h18s1, .tabs__xxs_h18s1 .tabs__title_h18s1 {
|
|
148
148
|
padding: var(--primary-tablist-s-padding);
|
|
149
149
|
font-size: var(--primary-tablist-s-font-size);
|
|
150
150
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
151
151
|
font-family: var(--primary-tablist-s-font-family);
|
|
152
152
|
line-height: 24px;
|
|
153
|
-
} .
|
|
153
|
+
} .tabs__s_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1, .tabs__xs_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1, .tabs__xxs_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
154
154
|
margin-left: var(--primary-tablist-s-gaps);
|
|
155
|
-
} .
|
|
155
|
+
} .tabs__s_h18s1 .tabs__pickerWrapper_h18s1, .tabs__xs_h18s1 .tabs__pickerWrapper_h18s1, .tabs__xxs_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
156
156
|
margin-left: var(--primary-tablist-s-gaps);
|
|
157
|
-
} .
|
|
157
|
+
} .tabs__s_h18s1 .tabs__option_h18s1, .tabs__xs_h18s1 .tabs__option_h18s1, .tabs__xxs_h18s1 .tabs__option_h18s1 {
|
|
158
158
|
padding: 0;
|
|
159
|
-
} .
|
|
159
|
+
} .tabs__m_h18s1 .tabs__title_h18s1 {
|
|
160
160
|
padding: var(--primary-tablist-m-padding);
|
|
161
161
|
font-size: var(--primary-tablist-m-font-size);
|
|
162
162
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
163
163
|
font-family: var(--primary-tablist-m-font-family);
|
|
164
164
|
line-height: 24px;
|
|
165
|
-
} .
|
|
165
|
+
} .tabs__m_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
166
166
|
margin-left: var(--primary-tablist-m-gaps);
|
|
167
|
-
} .
|
|
167
|
+
} .tabs__m_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
168
168
|
margin-left: var(--primary-tablist-m-gaps);
|
|
169
|
-
} .
|
|
169
|
+
} .tabs__m_h18s1 .tabs__option_h18s1 {
|
|
170
170
|
padding: 0;
|
|
171
|
-
} .
|
|
171
|
+
} .tabs__l_h18s1 .tabs__title_h18s1 {
|
|
172
172
|
padding: var(--primary-tablist-l-padding);
|
|
173
173
|
font-size: var(--primary-tablist-l-font-size);
|
|
174
174
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
175
175
|
font-family: var(--primary-tablist-l-font-family);
|
|
176
176
|
line-height: 24px;
|
|
177
|
-
} .
|
|
177
|
+
} .tabs__l_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
178
178
|
margin-left: var(--primary-tablist-l-gaps);
|
|
179
|
-
} .
|
|
179
|
+
} .tabs__l_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
180
180
|
margin-left: var(--primary-tablist-l-gaps);
|
|
181
|
-
} .
|
|
181
|
+
} .tabs__l_h18s1 .tabs__option_h18s1 {
|
|
182
182
|
padding: 0;
|
|
183
|
-
} .
|
|
183
|
+
} .tabs__xl_h18s1 .tabs__title_h18s1 {
|
|
184
184
|
padding: var(--primary-tablist-xl-padding);
|
|
185
185
|
font-size: var(--primary-tablist-xl-font-size);
|
|
186
186
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
187
187
|
font-family: var(--primary-tablist-xl-font-family);
|
|
188
188
|
line-height: 32px;
|
|
189
|
-
} .
|
|
189
|
+
} .tabs__xl_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
190
190
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
191
|
-
} .
|
|
191
|
+
} .tabs__xl_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
192
192
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
193
|
-
} .
|
|
193
|
+
} .tabs__xl_h18s1 .tabs__option_h18s1 {
|
|
194
194
|
padding: 0;
|
|
195
|
-
} .
|
|
195
|
+
} .tabs__rightAddons_h18s1 {
|
|
196
196
|
display: flex;
|
|
197
197
|
justify-content: center;
|
|
198
198
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xs08k */
|
|
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_h18s1 {
|
|
94
94
|
position: relative;
|
|
95
95
|
display: inline-flex;
|
|
96
96
|
min-width: 100%
|
|
97
|
-
}.
|
|
97
|
+
}.tabs__component_h18s1: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_h18s1 {
|
|
106
106
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
107
107
|
margin: 0 var(--gap-m);
|
|
108
|
-
}.
|
|
108
|
+
}.tabs__container_h18s1 {
|
|
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_h18s1 {
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: center;
|
|
118
118
|
height: 100%;
|
|
@@ -128,78 +128,78 @@
|
|
|
128
128
|
-webkit-user-select: none;
|
|
129
129
|
user-select: none;
|
|
130
130
|
outline: none
|
|
131
|
-
}.
|
|
131
|
+
}.tabs__title_h18s1:not(.tabs__disabled_h18s1):hover {
|
|
132
132
|
color: var(--primary-tablist-hover-color);
|
|
133
|
-
}.
|
|
133
|
+
}.tabs__focused_h18s1 {
|
|
134
134
|
outline: 2px solid var(--focus-color);
|
|
135
135
|
outline-offset: 2px;
|
|
136
|
-
}.
|
|
136
|
+
}.tabs__collapsed_h18s1 {
|
|
137
137
|
order: 99;
|
|
138
138
|
visibility: collapse;
|
|
139
|
-
}.
|
|
139
|
+
}.tabs__selected_h18s1 {
|
|
140
140
|
cursor: default;
|
|
141
141
|
color: var(--primary-tablist-selected-color);
|
|
142
|
-
}.
|
|
142
|
+
}.tabs__disabled_h18s1 {
|
|
143
143
|
cursor: var(--disabled-cursor);
|
|
144
144
|
color: var(--primary-tablist-disabled-color);
|
|
145
|
-
}.
|
|
145
|
+
}.tabs__line_h18s1 {
|
|
146
146
|
position: absolute;
|
|
147
147
|
height: 3px;
|
|
148
148
|
bottom: 0;
|
|
149
149
|
left: 0;
|
|
150
150
|
background-color: var(--primary-tablist-line-color);
|
|
151
151
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
152
|
-
}.
|
|
152
|
+
}.tabs__option_h18s1 {
|
|
153
153
|
color: var(--color-light-text-primary);
|
|
154
|
-
}/* sizes */.
|
|
154
|
+
}/* sizes */.tabs__s_h18s1 .tabs__title_h18s1, .tabs__xs_h18s1 .tabs__title_h18s1, .tabs__xxs_h18s1 .tabs__title_h18s1 {
|
|
155
155
|
padding: var(--primary-tablist-s-padding);
|
|
156
156
|
font-size: var(--primary-tablist-s-font-size);
|
|
157
157
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
158
158
|
font-family: var(--primary-tablist-s-font-family);
|
|
159
159
|
line-height: 24px;
|
|
160
|
-
}.
|
|
160
|
+
}.tabs__s_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1, .tabs__xs_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1, .tabs__xxs_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
161
161
|
margin-left: var(--primary-tablist-s-gaps);
|
|
162
|
-
}.
|
|
162
|
+
}.tabs__s_h18s1 .tabs__pickerWrapper_h18s1, .tabs__xs_h18s1 .tabs__pickerWrapper_h18s1, .tabs__xxs_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
163
163
|
margin-left: var(--primary-tablist-s-gaps);
|
|
164
|
-
}.
|
|
164
|
+
}.tabs__s_h18s1 .tabs__option_h18s1, .tabs__xs_h18s1 .tabs__option_h18s1, .tabs__xxs_h18s1 .tabs__option_h18s1 {
|
|
165
165
|
padding: 0;
|
|
166
|
-
}.
|
|
166
|
+
}.tabs__m_h18s1 .tabs__title_h18s1 {
|
|
167
167
|
padding: var(--primary-tablist-m-padding);
|
|
168
168
|
font-size: var(--primary-tablist-m-font-size);
|
|
169
169
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
170
170
|
font-family: var(--primary-tablist-m-font-family);
|
|
171
171
|
line-height: 24px;
|
|
172
|
-
}.
|
|
172
|
+
}.tabs__m_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
173
173
|
margin-left: var(--primary-tablist-m-gaps);
|
|
174
|
-
}.
|
|
174
|
+
}.tabs__m_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
175
175
|
margin-left: var(--primary-tablist-m-gaps);
|
|
176
|
-
}.
|
|
176
|
+
}.tabs__m_h18s1 .tabs__option_h18s1 {
|
|
177
177
|
padding: 0;
|
|
178
|
-
}.
|
|
178
|
+
}.tabs__l_h18s1 .tabs__title_h18s1 {
|
|
179
179
|
padding: var(--primary-tablist-l-padding);
|
|
180
180
|
font-size: var(--primary-tablist-l-font-size);
|
|
181
181
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
182
182
|
font-family: var(--primary-tablist-l-font-family);
|
|
183
183
|
line-height: 24px;
|
|
184
|
-
}.
|
|
184
|
+
}.tabs__l_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
185
185
|
margin-left: var(--primary-tablist-l-gaps);
|
|
186
|
-
}.
|
|
186
|
+
}.tabs__l_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
187
187
|
margin-left: var(--primary-tablist-l-gaps);
|
|
188
|
-
}.
|
|
188
|
+
}.tabs__l_h18s1 .tabs__option_h18s1 {
|
|
189
189
|
padding: 0;
|
|
190
|
-
}.
|
|
190
|
+
}.tabs__xl_h18s1 .tabs__title_h18s1 {
|
|
191
191
|
padding: var(--primary-tablist-xl-padding);
|
|
192
192
|
font-size: var(--primary-tablist-xl-font-size);
|
|
193
193
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
194
194
|
font-family: var(--primary-tablist-xl-font-family);
|
|
195
195
|
line-height: 32px;
|
|
196
|
-
}.
|
|
196
|
+
}.tabs__xl_h18s1 .tabs__title_h18s1 + .tabs__title_h18s1 {
|
|
197
197
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
198
|
-
}.
|
|
198
|
+
}.tabs__xl_h18s1 .tabs__pickerWrapper_h18s1 {
|
|
199
199
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
200
|
-
}.
|
|
200
|
+
}.tabs__xl_h18s1 .tabs__option_h18s1 {
|
|
201
201
|
padding: 0;
|
|
202
|
-
}.
|
|
202
|
+
}.tabs__rightAddons_h18s1 {
|
|
203
203
|
display: flex;
|
|
204
204
|
justify-content: center;
|
|
205
205
|
align-items: center;
|
|
@@ -1107,13 +1107,13 @@
|
|
|
1107
1107
|
|
|
1108
1108
|
/* size xl */
|
|
1109
1109
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
1110
|
-
} .
|
|
1111
|
-
} .
|
|
1110
|
+
} .tabs__title_vbdu8 {
|
|
1111
|
+
} .tabs__mobile_vbdu8 .tabs__title_vbdu8 {
|
|
1112
1112
|
padding: var(--primary-tablist-mobile-padding);
|
|
1113
1113
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
1114
1114
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
1115
1115
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
1116
1116
|
line-height: var(--primary-tablist-mobile-line-height)
|
|
1117
|
-
} .
|
|
1117
|
+
} .tabs__mobile_vbdu8 .tabs__title_vbdu8 + .tabs__title_vbdu8 {
|
|
1118
1118
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
1119
1119
|
}
|
|
@@ -7,7 +7,7 @@ import { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
7
7
|
import { ChevronRightMIcon } from '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
8
8
|
import { getDisabledState, scrollIntoFirstTab, scrollIntoLastTab } from './utils.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"
|
|
10
|
+
var styles = {"component":"tabs__component_186lh","borderVisible":"tabs__borderVisible_186lh","primary":"tabs__primary_186lh","button":"tabs__button_186lh","xl":"tabs__xl_186lh","secondary":"tabs__secondary_186lh","xs":"tabs__xs_186lh"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var ScrollControls = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wind */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dcdcdd;
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
/* size l */
|
|
45
45
|
|
|
46
46
|
/* size xl */
|
|
47
|
-
} .
|
|
47
|
+
} .tabs__component_186lh {
|
|
48
48
|
position: relative;
|
|
49
49
|
display: flex;
|
|
50
50
|
flex-shrink: 0
|
|
51
|
-
} .
|
|
51
|
+
} .tabs__component_186lh:before {
|
|
52
52
|
content: '';
|
|
53
53
|
display: block;
|
|
54
54
|
position: absolute;
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
width: 1px;
|
|
58
58
|
background-color: transparent;
|
|
59
59
|
transition: background-color 0.3s ease;
|
|
60
|
-
} .
|
|
60
|
+
} .tabs__borderVisible_186lh:before {
|
|
61
61
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
62
|
-
} .
|
|
62
|
+
} .tabs__primary_186lh {
|
|
63
63
|
align-items: flex-start;
|
|
64
64
|
justify-content: flex-end
|
|
65
|
-
} .
|
|
65
|
+
} .tabs__primary_186lh:after {
|
|
66
66
|
content: '';
|
|
67
67
|
display: block;
|
|
68
68
|
position: absolute;
|
|
@@ -70,25 +70,25 @@
|
|
|
70
70
|
height: 1px;
|
|
71
71
|
width: 100%;
|
|
72
72
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
73
|
-
} .
|
|
73
|
+
} .tabs__primary_186lh:before {
|
|
74
74
|
bottom: 2px;
|
|
75
|
-
} .
|
|
75
|
+
} .tabs__primary_186lh {
|
|
76
76
|
|
|
77
|
-
.
|
|
77
|
+
.tabs__button_186lh:first-child {
|
|
78
78
|
padding-left: var(--gap-xs);
|
|
79
79
|
margin-right: var(--gap-xs);
|
|
80
80
|
}
|
|
81
|
-
} .
|
|
81
|
+
} .tabs__primary_186lh.tabs__xl_186lh .tabs__button_186lh:first-child {
|
|
82
82
|
margin-right: var(--gap-2xs);
|
|
83
|
-
} .
|
|
83
|
+
} .tabs__secondary_186lh {
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: center
|
|
86
|
-
} .
|
|
86
|
+
} .tabs__secondary_186lh:before {
|
|
87
87
|
bottom: 0;
|
|
88
|
-
} .
|
|
88
|
+
} .tabs__secondary_186lh.tabs__xs_186lh {
|
|
89
89
|
width: 76px;
|
|
90
90
|
|
|
91
|
-
.
|
|
91
|
+
.tabs__button_186lh:first-child {
|
|
92
92
|
margin-right: var(--gap-2xs);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
9
9
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
10
10
|
import '../scroll-controls/utils.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"scrollableContainerWrapper":"
|
|
12
|
+
var styles = {"scrollableContainerWrapper":"tabs__scrollableContainerWrapper_1l5jl","container":"tabs__container_1l5jl","fullWidthScroll":"tabs__fullWidthScroll_1l5jl"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1o91h */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
/* size l */
|
|
43
43
|
|
|
44
44
|
/* size xl */
|
|
45
|
-
} .
|
|
45
|
+
} .tabs__scrollableContainerWrapper_1l5jl {
|
|
46
46
|
display: flex;
|
|
47
|
-
} .
|
|
47
|
+
} .tabs__container_1l5jl {
|
|
48
48
|
position: relative;
|
|
49
49
|
overflow-x: auto;
|
|
50
50
|
overflow-y: hidden;
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
/* focus-outline fix */
|
|
56
56
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
57
57
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs)
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_1l5jl::-webkit-scrollbar {
|
|
59
59
|
display: none;
|
|
60
|
-
} .
|
|
60
|
+
} .tabs__container_1l5jl > * {
|
|
61
61
|
flex-shrink: 0;
|
|
62
|
-
} .
|
|
62
|
+
} .tabs__fullWidthScroll_1l5jl {
|
|
63
63
|
padding-left: 0;
|
|
64
64
|
margin: var(--gap-2xs-neg) var(--gap-m-neg);
|
|
65
65
|
}
|
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TagDesktop } from '@alfalab/core-components-tag/esm/desktop';
|
|
4
4
|
import { SecondaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-9c24fafb.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../hooks/use-tabs.js';
|
|
8
8
|
import '@alfalab/core-components-shared/esm';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TagMobile } from '@alfalab/core-components-tag/esm/mobile';
|
|
5
5
|
import { SecondaryTabList } from './Component.js';
|
|
6
|
-
import { c as commonStyles } from '../../index.module-
|
|
6
|
+
import { c as commonStyles } from '../../index.module-9c24fafb.js';
|
|
7
7
|
import '../../hooks/use-tabs.js';
|
|
8
8
|
import '@alfalab/core-components-shared/esm';
|
|
9
9
|
import '../scrollable-container/Component.js';
|
|
@@ -15,7 +15,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
15
15
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
16
16
|
import '../scroll-controls/utils.js';
|
|
17
17
|
|
|
18
|
-
var mobileStyles = {"title":"
|
|
18
|
+
var mobileStyles = {"title":"tabs__title_1bszl tabs__title_tladl","mobile":"tabs__mobile_1bszl"};
|
|
19
19
|
require('./mobile.css')
|
|
20
20
|
|
|
21
21
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|