@alfalab/core-components-tabs 7.2.4 → 7.2.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/Component-0d7ca9a7.d.ts +40 -0
- package/Component-3e68f8db.d.ts +11 -0
- package/Component-3fe0d3e6.d.ts +235 -0
- package/Component-85892853.d.ts +5 -0
- package/Component-97288072.d.ts +49 -0
- package/Component-bdb4c6b9.d.ts +12 -0
- package/Component-db573794.d.ts +33 -0
- package/Component-e67996e9.d.ts +168 -0
- package/Component-ebda875c.d.ts +135 -0
- package/Context-bdb4c6b9.d.ts +4 -0
- package/ResponsiveContext-baf4875b.d.ts +5 -0
- package/components/primary-tablist/Component.desktop.js +8 -14
- package/components/primary-tablist/Component.js +16 -23
- package/components/primary-tablist/Component.mobile.js +9 -16
- package/components/primary-tablist/Component.responsive.js +11 -17
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +32 -32
- package/components/scrollable-container/Component.js +3 -11
- package/components/scrollable-container/index.css +5 -5
- package/components/scrollable-container/index.js +1 -3
- package/components/secondary-tablist/Component.desktop.js +6 -12
- package/components/secondary-tablist/Component.js +6 -13
- package/components/secondary-tablist/Component.mobile.js +7 -14
- package/components/secondary-tablist/Component.responsive.js +9 -15
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +13 -13
- package/components/tab/Component.js +2 -9
- package/components/tab/index.css +3 -3
- package/components/tab/index.js +1 -3
- package/components/tabs/Component.desktop.js +13 -19
- package/components/tabs/Component.js +3 -9
- package/components/tabs/Component.mobile.js +13 -19
- package/components/tabs/Component.responsive.js +17 -23
- package/components/title/Component.js +4 -11
- package/components/title/index.js +2 -4
- package/cssm/Component-0d7ca9a7.d.ts +40 -0
- package/cssm/Component-3e68f8db.d.ts +11 -0
- package/cssm/Component-3fe0d3e6.d.ts +235 -0
- package/cssm/Component-85892853.d.ts +5 -0
- package/cssm/Component-97288072.d.ts +49 -0
- package/cssm/Component-bdb4c6b9.d.ts +12 -0
- package/cssm/Component-db573794.d.ts +33 -0
- package/cssm/Component-e67996e9.d.ts +168 -0
- package/cssm/Component-ebda875c.d.ts +135 -0
- package/cssm/Context-bdb4c6b9.d.ts +4 -0
- package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/cssm/components/primary-tablist/Component.desktop.js +8 -15
- package/cssm/components/primary-tablist/Component.js +16 -23
- package/cssm/components/primary-tablist/Component.mobile.js +10 -19
- package/cssm/components/primary-tablist/Component.responsive.js +10 -16
- package/cssm/components/scrollable-container/Component.js +3 -12
- package/cssm/components/scrollable-container/index.js +1 -3
- package/cssm/components/secondary-tablist/Component.desktop.js +6 -13
- package/cssm/components/secondary-tablist/Component.js +6 -13
- package/cssm/components/secondary-tablist/Component.mobile.js +8 -17
- package/cssm/components/secondary-tablist/Component.responsive.js +8 -14
- package/cssm/components/tab/Component.js +2 -10
- package/cssm/components/tab/index.js +1 -3
- package/cssm/components/tabs/Component.desktop.js +11 -17
- package/cssm/components/tabs/Component.js +3 -9
- package/cssm/components/tabs/Component.mobile.js +12 -18
- package/cssm/components/tabs/Component.responsive.js +17 -23
- package/cssm/components/title/Component.js +4 -11
- package/cssm/components/title/index.js +2 -4
- package/cssm/desktop.js +18 -20
- package/cssm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/cssm/hook-edac5428.d.ts +54 -0
- package/cssm/hooks/use-collapsible-elements.js +2 -4
- package/cssm/hooks/use-tablist-titles.js +3 -5
- package/cssm/hooks/use-tabs.d.ts +2 -2
- package/cssm/hooks/use-tabs.js +0 -2
- package/cssm/index-0d7ca9a7.d.ts +27 -0
- package/cssm/index-136acbb1.d.ts +28 -0
- package/cssm/index-3e68f8db.d.ts +98 -0
- package/cssm/index-3fe0d3e6.d.ts +1 -0
- package/cssm/index-48646db0.d.ts +2 -0
- package/cssm/index-7ca84eff.d.ts +196 -0
- package/cssm/index-bdb4c6b9.d.ts +2 -0
- package/cssm/index-e67996e9.d.ts +1 -0
- package/cssm/index-ebda875c.d.ts +3 -0
- package/cssm/index.js +23 -25
- package/cssm/mobile.js +18 -20
- package/cssm/responsive.js +24 -26
- package/cssm/synthetic-events.js +1 -3
- package/cssm/{tslib.es6-0857346e.d.ts → tslib.es6-0e9bf404.d.ts} +0 -0
- package/cssm/{tslib.es6-0857346e.js → tslib.es6-0e9bf404.js} +0 -0
- package/cssm/typings-85892853.d.ts +553 -0
- package/cssm/typings-bdb4c6b9.d.ts +52 -0
- package/cssm/utils-1574ad8b.d.ts +29 -0
- package/cssm/utils-85892853.d.ts +38 -0
- package/desktop.js +19 -21
- package/esm/Component-0d7ca9a7.d.ts +40 -0
- package/esm/Component-3e68f8db.d.ts +11 -0
- package/esm/Component-3fe0d3e6.d.ts +235 -0
- package/esm/Component-85892853.d.ts +5 -0
- package/esm/Component-97288072.d.ts +49 -0
- package/esm/Component-bdb4c6b9.d.ts +12 -0
- package/esm/Component-db573794.d.ts +33 -0
- package/esm/Component-e67996e9.d.ts +168 -0
- package/esm/Component-ebda875c.d.ts +135 -0
- package/esm/Context-bdb4c6b9.d.ts +4 -0
- package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/esm/components/primary-tablist/Component.desktop.js +7 -7
- package/esm/components/primary-tablist/Component.js +9 -9
- package/esm/components/primary-tablist/Component.mobile.js +8 -8
- package/esm/components/primary-tablist/Component.responsive.js +10 -10
- 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/scrollable-container/index.js +1 -1
- package/esm/components/secondary-tablist/Component.desktop.js +5 -5
- package/esm/components/secondary-tablist/Component.js +3 -3
- package/esm/components/secondary-tablist/Component.mobile.js +6 -6
- package/esm/components/secondary-tablist/Component.responsive.js +8 -8
- 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/tab/index.js +1 -1
- package/esm/components/tabs/Component.desktop.js +12 -12
- package/esm/components/tabs/Component.mobile.js +12 -12
- package/esm/components/tabs/Component.responsive.js +16 -16
- package/esm/components/title/Component.js +1 -1
- package/esm/components/title/index.js +2 -2
- package/esm/desktop.js +16 -16
- package/esm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/esm/hook-edac5428.d.ts +54 -0
- package/esm/hooks/use-collapsible-elements.js +2 -2
- package/esm/hooks/use-tablist-titles.js +3 -3
- package/esm/hooks/use-tabs.d.ts +2 -2
- package/esm/index-0d7ca9a7.d.ts +27 -0
- package/esm/index-136acbb1.d.ts +28 -0
- package/esm/index-3e68f8db.d.ts +98 -0
- package/esm/index-3fe0d3e6.d.ts +1 -0
- package/esm/index-48646db0.d.ts +2 -0
- package/esm/index-7ca84eff.d.ts +196 -0
- package/esm/index-bdb4c6b9.d.ts +2 -0
- package/esm/index-e67996e9.d.ts +1 -0
- package/esm/index-ebda875c.d.ts +3 -0
- package/esm/index.js +20 -20
- package/esm/index.module-2661cbbc.js +4 -0
- package/esm/index.module-8fe5adc6.js +4 -0
- package/esm/mobile.js +15 -15
- package/esm/responsive.js +20 -20
- package/esm/synthetic-events.js +1 -1
- package/esm/{tslib.es6-c7045249.d.ts → tslib.es6-fd2adbbc.d.ts} +0 -0
- package/esm/{tslib.es6-c7045249.js → tslib.es6-fd2adbbc.js} +0 -0
- package/esm/typings-85892853.d.ts +553 -0
- package/esm/typings-bdb4c6b9.d.ts +52 -0
- package/esm/utils-1574ad8b.d.ts +29 -0
- package/esm/utils-85892853.d.ts +38 -0
- package/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/hook-edac5428.d.ts +54 -0
- package/hooks/use-collapsible-elements.js +2 -4
- package/hooks/use-tablist-titles.js +3 -5
- package/hooks/use-tabs.d.ts +2 -2
- package/hooks/use-tabs.js +0 -2
- package/index-0d7ca9a7.d.ts +27 -0
- package/index-136acbb1.d.ts +28 -0
- package/index-3e68f8db.d.ts +98 -0
- package/index-3fe0d3e6.d.ts +1 -0
- package/index-48646db0.d.ts +2 -0
- package/index-7ca84eff.d.ts +196 -0
- package/index-bdb4c6b9.d.ts +2 -0
- package/index-e67996e9.d.ts +1 -0
- package/index-ebda875c.d.ts +3 -0
- package/index.js +23 -25
- package/index.module-401dd07b.js +6 -0
- package/index.module-b800d019.js +6 -0
- package/mobile.js +18 -20
- package/modern/Component-0d7ca9a7.d.ts +40 -0
- package/modern/Component-3e68f8db.d.ts +11 -0
- package/modern/Component-3fe0d3e6.d.ts +235 -0
- package/modern/Component-85892853.d.ts +5 -0
- package/modern/Component-97288072.d.ts +49 -0
- package/modern/Component-bdb4c6b9.d.ts +12 -0
- package/modern/Component-db573794.d.ts +33 -0
- package/modern/Component-e67996e9.d.ts +168 -0
- package/modern/Component-ebda875c.d.ts +135 -0
- package/modern/Context-bdb4c6b9.d.ts +4 -0
- package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
- package/modern/components/primary-tablist/Component.desktop.js +6 -6
- package/modern/components/primary-tablist/Component.js +6 -6
- package/modern/components/primary-tablist/Component.mobile.js +7 -7
- package/modern/components/primary-tablist/Component.responsive.js +9 -9
- 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/scrollable-container/index.js +1 -1
- package/modern/components/secondary-tablist/Component.desktop.js +4 -4
- package/modern/components/secondary-tablist/Component.js +2 -2
- package/modern/components/secondary-tablist/Component.mobile.js +5 -5
- package/modern/components/secondary-tablist/Component.responsive.js +7 -7
- 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/tab/index.js +1 -1
- package/modern/components/tabs/Component.desktop.js +11 -11
- package/modern/components/tabs/Component.mobile.js +11 -11
- package/modern/components/tabs/Component.responsive.js +15 -15
- package/modern/components/title/index.js +1 -1
- package/modern/desktop.js +15 -15
- package/modern/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/modern/hook-edac5428.d.ts +54 -0
- package/modern/hooks/use-collapsible-elements.js +1 -1
- package/modern/hooks/use-tablist-titles.js +1 -1
- package/modern/hooks/use-tabs.d.ts +2 -2
- package/modern/index-0d7ca9a7.d.ts +27 -0
- package/modern/index-136acbb1.d.ts +28 -0
- package/modern/index-3e68f8db.d.ts +98 -0
- package/modern/index-3fe0d3e6.d.ts +1 -0
- package/modern/index-48646db0.d.ts +2 -0
- package/modern/index-7ca84eff.d.ts +196 -0
- package/modern/index-bdb4c6b9.d.ts +2 -0
- package/modern/index-e67996e9.d.ts +1 -0
- package/modern/index-ebda875c.d.ts +3 -0
- package/modern/index.js +19 -19
- package/modern/index.module-7e5746f2.js +4 -0
- package/modern/index.module-b659d358.js +4 -0
- package/modern/mobile.js +14 -14
- package/modern/responsive.js +19 -19
- package/modern/typings-85892853.d.ts +553 -0
- package/modern/typings-bdb4c6b9.d.ts +52 -0
- package/modern/utils-1574ad8b.d.ts +29 -0
- package/modern/utils-85892853.d.ts +38 -0
- package/package.json +2 -2
- package/responsive.js +24 -26
- package/synthetic-events.js +1 -3
- package/{tslib.es6-f581fd25.d.ts → tslib.es6-b58bcb17.d.ts} +0 -0
- package/{tslib.es6-f581fd25.js → tslib.es6-b58bcb17.js} +0 -0
- package/typings-85892853.d.ts +553 -0
- package/typings-bdb4c6b9.d.ts +52 -0
- package/utils-1574ad8b.d.ts +29 -0
- package/utils-85892853.d.ts +38 -0
- package/esm/index.module-0d5bb957.js +0 -4
- package/esm/index.module-464ce309.js +0 -4
- package/index.module-1f2c27dd.js +0 -6
- package/index.module-4ae8ce0c.js +0 -6
- package/modern/index.module-0d5bb957.js +0 -4
- package/modern/index.module-464ce309.js +0 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { SecondaryTabList } from './Component.js';
|
|
4
|
+
import { c as commonStyles } from '../../index.module-2661cbbc.js';
|
|
3
5
|
import 'classnames';
|
|
6
|
+
import '@alfalab/core-components-tag/esm';
|
|
4
7
|
import '../../hooks/use-tabs.js';
|
|
5
|
-
import 'compute-scroll-into-view';
|
|
6
8
|
import '../scrollable-container/Component.js';
|
|
7
|
-
import '
|
|
8
|
-
import { SecondaryTabList } from './Component.js';
|
|
9
|
-
import { c as commonStyles } from '../../index.module-464ce309.js';
|
|
9
|
+
import 'compute-scroll-into-view';
|
|
10
10
|
|
|
11
11
|
var SecondaryTabListDesktop = function (_a) {
|
|
12
12
|
var _b = _a.size, size = _b === void 0 ? 's' : _b, restProps = __rest(_a, ["size"]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
+
import { Tag } from '@alfalab/core-components-tag/esm';
|
|
4
5
|
import { useTabs } from '../../hooks/use-tabs.js';
|
|
5
|
-
import 'compute-scroll-into-view';
|
|
6
6
|
import { ScrollableContainer } from '../scrollable-container/Component.js';
|
|
7
|
-
import
|
|
7
|
+
import 'compute-scroll-into-view';
|
|
8
8
|
|
|
9
9
|
var SecondaryTabList = function (_a) {
|
|
10
10
|
var _b = _a.styles, styles = _b === void 0 ? {} : _b, className = _a.className, containerClassName = _a.containerClassName, size = _a.size, _c = _a.titles, titles = _c === void 0 ? [] : _c, _d = _a.selectedId, selectedId = _d === void 0 ? titles.length ? titles[0].id : undefined : _d, _e = _a.scrollable, scrollable = _e === void 0 ? true : _e, fullWidthScroll = _a.fullWidthScroll, _f = _a.tagSize, tagSize = _f === void 0 ? 'xs' : _f, onChange = _a.onChange, dataTestId = _a.dataTestId;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, _ as __rest } from '../../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
+
import { SecondaryTabList } from './Component.js';
|
|
5
|
+
import { c as commonStyles } from '../../index.module-2661cbbc.js';
|
|
6
|
+
import '@alfalab/core-components-tag/esm';
|
|
4
7
|
import '../../hooks/use-tabs.js';
|
|
5
|
-
import 'compute-scroll-into-view';
|
|
6
8
|
import '../scrollable-container/Component.js';
|
|
7
|
-
import '
|
|
8
|
-
import { SecondaryTabList } from './Component.js';
|
|
9
|
-
import { c as commonStyles } from '../../index.module-464ce309.js';
|
|
9
|
+
import 'compute-scroll-into-view';
|
|
10
10
|
|
|
11
|
-
var mobileStyles = {"title":"
|
|
11
|
+
var mobileStyles = {"title":"tabs__title_1jie6 tabs__title_9ds1d","mobile":"tabs__mobile_1jie6"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
14
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import 'classnames';
|
|
4
3
|
import { useMedia } from '@alfalab/hooks';
|
|
5
|
-
import '../../hooks/use-tabs.js';
|
|
6
|
-
import 'compute-scroll-into-view';
|
|
7
|
-
import '../scrollable-container/Component.js';
|
|
8
|
-
import '@alfalab/core-components-tag/esm';
|
|
9
|
-
import './Component.js';
|
|
10
|
-
import '../../index.module-464ce309.js';
|
|
11
4
|
import { SecondaryTabListDesktop } from './Component.desktop.js';
|
|
12
5
|
import { SecondaryTabListMobile } from './Component.mobile.js';
|
|
6
|
+
import './Component.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '@alfalab/core-components-tag/esm';
|
|
9
|
+
import '../../hooks/use-tabs.js';
|
|
10
|
+
import '../scrollable-container/Component.js';
|
|
11
|
+
import 'compute-scroll-into-view';
|
|
12
|
+
import '../../index.module-2661cbbc.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"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b98h */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -44,35 +44,35 @@
|
|
|
44
44
|
/* size xl */
|
|
45
45
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.tabs__component_9ds1d {
|
|
48
48
|
position: relative;
|
|
49
49
|
display: inline-flex;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.tabs__fullWidthScroll_9ds1d {
|
|
52
52
|
margin: 0 var(--gap-m);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.tabs__container_9ds1d {
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.tabs__title_9ds1d {
|
|
58
58
|
white-space: nowrap;
|
|
59
59
|
}
|
|
60
60
|
/* sizes */
|
|
61
|
-
.
|
|
61
|
+
.tabs__xxs_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
62
62
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.tabs__xs_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
65
65
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.tabs__s_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
68
68
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.tabs__m_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
71
71
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.tabs__l_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
74
74
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.tabs__xl_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ln9l */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -49,26 +49,26 @@
|
|
|
49
49
|
|
|
50
50
|
/* size xl */
|
|
51
51
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
52
|
-
}.
|
|
52
|
+
}.tabs__component_9ds1d {
|
|
53
53
|
position: relative;
|
|
54
54
|
display: inline-flex;
|
|
55
|
-
}.
|
|
55
|
+
}.tabs__fullWidthScroll_9ds1d {
|
|
56
56
|
margin: 0 var(--gap-m);
|
|
57
|
-
}.
|
|
57
|
+
}.tabs__container_9ds1d {
|
|
58
58
|
overflow: hidden;
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__title_9ds1d {
|
|
60
60
|
white-space: nowrap;
|
|
61
|
-
}/* sizes */.
|
|
61
|
+
}/* sizes */.tabs__xxs_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
62
62
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
63
|
-
}.
|
|
63
|
+
}.tabs__xs_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
64
64
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
65
|
-
}.
|
|
65
|
+
}.tabs__s_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
66
66
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
67
|
-
}.
|
|
67
|
+
}.tabs__m_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
68
68
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__l_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
70
70
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__xl_9ds1d .tabs__title_9ds1d + .tabs__title_9ds1d {
|
|
72
72
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
73
73
|
}
|
|
74
74
|
:root {
|
|
@@ -885,8 +885,8 @@
|
|
|
885
885
|
/* size xl */
|
|
886
886
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
887
887
|
}
|
|
888
|
-
.
|
|
888
|
+
.tabs__title_1jie6 {
|
|
889
889
|
}
|
|
890
|
-
.
|
|
890
|
+
.tabs__mobile_1jie6 .tabs__title_1jie6 + .tabs__title_1jie6 {
|
|
891
891
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
892
892
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"
|
|
4
|
+
var styles = {"component":"tabs__component_102bs","hidden":"tabs__hidden_102bs"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Tab = function (_a) {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { PrimaryTabListDesktop } from '../primary-tablist/Component.desktop.js';
|
|
4
|
+
import { SecondaryTabListDesktop } from '../secondary-tablist/Component.desktop.js';
|
|
5
|
+
import { Tabs } from './Component.js';
|
|
6
|
+
import '../primary-tablist/Component.js';
|
|
3
7
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
5
8
|
import '@alfalab/core-components-badge/esm';
|
|
6
9
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
10
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
11
|
+
import '../../hooks/use-tablist-titles.js';
|
|
7
12
|
import '@alfalab/hooks';
|
|
8
|
-
import '@juggle/resize-observer';
|
|
9
13
|
import '../../hooks/use-collapsible-elements.js';
|
|
14
|
+
import '@juggle/resize-observer';
|
|
10
15
|
import '../../hooks/use-tabs.js';
|
|
11
|
-
import '../../hooks/use-tablist-titles.js';
|
|
12
16
|
import '../../synthetic-events.js';
|
|
13
|
-
import 'compute-scroll-into-view';
|
|
14
17
|
import '../scrollable-container/Component.js';
|
|
18
|
+
import 'compute-scroll-into-view';
|
|
15
19
|
import '../title/Component.js';
|
|
16
|
-
import '
|
|
17
|
-
import '../../index.module-0d5bb957.js';
|
|
18
|
-
import { PrimaryTabListDesktop } from '../primary-tablist/Component.desktop.js';
|
|
19
|
-
import '@alfalab/core-components-tag/esm';
|
|
20
|
+
import '../../index.module-8fe5adc6.js';
|
|
20
21
|
import '../secondary-tablist/Component.js';
|
|
21
|
-
import '
|
|
22
|
-
import
|
|
23
|
-
import { Tabs } from './Component.js';
|
|
22
|
+
import '@alfalab/core-components-tag/esm';
|
|
23
|
+
import '../../index.module-2661cbbc.js';
|
|
24
24
|
|
|
25
25
|
var views = {
|
|
26
26
|
primary: PrimaryTabListDesktop,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { PrimaryTabListMobile } from '../primary-tablist/Component.mobile.js';
|
|
4
|
+
import { SecondaryTabListMobile } from '../secondary-tablist/Component.mobile.js';
|
|
5
|
+
import { Tabs } from './Component.js';
|
|
3
6
|
import 'classnames';
|
|
4
|
-
import '
|
|
7
|
+
import '../primary-tablist/Component.js';
|
|
5
8
|
import '@alfalab/core-components-badge/esm';
|
|
6
9
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
10
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
11
|
+
import '../../hooks/use-tablist-titles.js';
|
|
7
12
|
import '@alfalab/hooks';
|
|
8
|
-
import '@juggle/resize-observer';
|
|
9
13
|
import '../../hooks/use-collapsible-elements.js';
|
|
14
|
+
import '@juggle/resize-observer';
|
|
10
15
|
import '../../hooks/use-tabs.js';
|
|
11
|
-
import '../../hooks/use-tablist-titles.js';
|
|
12
16
|
import '../../synthetic-events.js';
|
|
13
|
-
import 'compute-scroll-into-view';
|
|
14
17
|
import '../scrollable-container/Component.js';
|
|
18
|
+
import 'compute-scroll-into-view';
|
|
15
19
|
import '../title/Component.js';
|
|
16
|
-
import '
|
|
17
|
-
import '../../index.module-0d5bb957.js';
|
|
18
|
-
import '@alfalab/core-components-tag/esm';
|
|
20
|
+
import '../../index.module-8fe5adc6.js';
|
|
19
21
|
import '../secondary-tablist/Component.js';
|
|
20
|
-
import '
|
|
21
|
-
import
|
|
22
|
-
import { PrimaryTabListMobile } from '../primary-tablist/Component.mobile.js';
|
|
23
|
-
import { SecondaryTabListMobile } from '../secondary-tablist/Component.mobile.js';
|
|
22
|
+
import '@alfalab/core-components-tag/esm';
|
|
23
|
+
import '../../index.module-2661cbbc.js';
|
|
24
24
|
|
|
25
25
|
var views = {
|
|
26
26
|
primary: PrimaryTabListMobile,
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { PrimaryTabListResponsive } from '../primary-tablist/Component.responsive.js';
|
|
4
|
+
import { SecondaryTabListResponsive } from '../secondary-tablist/Component.responsive.js';
|
|
5
|
+
import { Tabs } from './Component.js';
|
|
6
|
+
import '@alfalab/hooks';
|
|
7
|
+
import '../primary-tablist/Component.desktop.js';
|
|
8
|
+
import '../primary-tablist/Component.js';
|
|
3
9
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
5
10
|
import '@alfalab/core-components-badge/esm';
|
|
6
11
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '
|
|
12
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
13
|
+
import '../../hooks/use-tablist-titles.js';
|
|
9
14
|
import '../../hooks/use-collapsible-elements.js';
|
|
15
|
+
import '@juggle/resize-observer';
|
|
10
16
|
import '../../hooks/use-tabs.js';
|
|
11
|
-
import '../../hooks/use-tablist-titles.js';
|
|
12
17
|
import '../../synthetic-events.js';
|
|
13
|
-
import 'compute-scroll-into-view';
|
|
14
18
|
import '../scrollable-container/Component.js';
|
|
19
|
+
import 'compute-scroll-into-view';
|
|
15
20
|
import '../title/Component.js';
|
|
16
|
-
import '
|
|
17
|
-
import '../../index.module-0d5bb957.js';
|
|
18
|
-
import '../primary-tablist/Component.desktop.js';
|
|
19
|
-
import '@alfalab/core-components-tag/esm';
|
|
20
|
-
import '../secondary-tablist/Component.js';
|
|
21
|
-
import '../../index.module-464ce309.js';
|
|
22
|
-
import '../secondary-tablist/Component.desktop.js';
|
|
23
|
-
import { Tabs } from './Component.js';
|
|
21
|
+
import '../../index.module-8fe5adc6.js';
|
|
24
22
|
import '../primary-tablist/Component.mobile.js';
|
|
25
|
-
import
|
|
23
|
+
import '../secondary-tablist/Component.desktop.js';
|
|
24
|
+
import '../secondary-tablist/Component.js';
|
|
25
|
+
import '@alfalab/core-components-tag/esm';
|
|
26
|
+
import '../../index.module-2661cbbc.js';
|
|
26
27
|
import '../secondary-tablist/Component.mobile.js';
|
|
27
|
-
import { SecondaryTabListResponsive } from '../secondary-tablist/Component.responsive.js';
|
|
28
28
|
|
|
29
29
|
var views = {
|
|
30
30
|
primary: PrimaryTabListResponsive,
|
package/esm/desktop.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
export { PrimaryTabListDesktop } from './components/primary-tablist/Component.desktop.js';
|
|
2
|
+
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
3
|
+
export { SecondaryTabListDesktop } from './components/secondary-tablist/Component.desktop.js';
|
|
4
|
+
export { Tab } from './components/tab/Component.js';
|
|
5
|
+
export { TabsDesktop } from './components/tabs/Component.desktop.js';
|
|
6
|
+
export { useTabs } from './hooks/use-tabs.js';
|
|
7
|
+
export { useCollapsibleElements } from './hooks/use-collapsible-elements.js';
|
|
8
|
+
import './tslib.es6-fd2adbbc.js';
|
|
2
9
|
import 'react';
|
|
10
|
+
import './components/primary-tablist/Component.js';
|
|
3
11
|
import 'classnames';
|
|
4
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
5
12
|
import '@alfalab/core-components-badge/esm';
|
|
6
13
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '@juggle/resize-observer';
|
|
9
|
-
export { useCollapsibleElements } from './hooks/use-collapsible-elements.js';
|
|
10
|
-
export { useTabs } from './hooks/use-tabs.js';
|
|
14
|
+
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
11
15
|
import './hooks/use-tablist-titles.js';
|
|
16
|
+
import '@alfalab/hooks';
|
|
12
17
|
import './synthetic-events.js';
|
|
13
|
-
import 'compute-scroll-into-view';
|
|
14
|
-
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
15
18
|
import './components/title/Component.js';
|
|
16
|
-
import './
|
|
17
|
-
import '
|
|
18
|
-
export { PrimaryTabListDesktop } from './components/primary-tablist/Component.desktop.js';
|
|
19
|
-
import '@alfalab/core-components-tag/esm';
|
|
19
|
+
import './index.module-8fe5adc6.js';
|
|
20
|
+
import 'compute-scroll-into-view';
|
|
20
21
|
import './components/secondary-tablist/Component.js';
|
|
21
|
-
import '
|
|
22
|
-
|
|
23
|
-
export { Tab } from './components/tab/Component.js';
|
|
22
|
+
import '@alfalab/core-components-tag/esm';
|
|
23
|
+
import './index.module-2661cbbc.js';
|
|
24
24
|
import './components/tabs/Component.js';
|
|
25
|
-
|
|
25
|
+
import '@juggle/resize-observer';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./index-3e68f8db";
|
|
3
|
+
type useSelectWithApplyProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Список выбранных пунктов
|
|
6
|
+
*/
|
|
7
|
+
selected: BaseSelectProps['selected'];
|
|
8
|
+
/**
|
|
9
|
+
* Список вариантов выбора
|
|
10
|
+
*/
|
|
11
|
+
options: BaseSelectProps['options'];
|
|
12
|
+
/**
|
|
13
|
+
* Обработчик выбора
|
|
14
|
+
*/
|
|
15
|
+
onChange: BaseSelectProps['onChange'];
|
|
16
|
+
/**
|
|
17
|
+
* Компонент выпадающего меню
|
|
18
|
+
*/
|
|
19
|
+
OptionsList?: BaseSelectProps['OptionsList'];
|
|
20
|
+
/**
|
|
21
|
+
* Показывать кнопку очистки
|
|
22
|
+
*/
|
|
23
|
+
showClear?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Показывать пункт "Выбрать все"
|
|
26
|
+
*/
|
|
27
|
+
showSelectAll?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare const SELECT_ALL_KEY = "select_all";
|
|
30
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, showClear, showSelectAll, }: useSelectWithApplyProps): {
|
|
31
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./index-3e68f8db").OptionsListProps & {
|
|
32
|
+
showClear?: boolean | undefined;
|
|
33
|
+
onClose?: (() => void) | undefined;
|
|
34
|
+
selectedDraft?: OptionShape[] | undefined;
|
|
35
|
+
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
|
|
36
|
+
} & import("react").RefAttributes<unknown>>;
|
|
37
|
+
optionsListProps: {
|
|
38
|
+
OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps> | undefined;
|
|
39
|
+
showClear: boolean;
|
|
40
|
+
onClear: () => void;
|
|
41
|
+
onApply: () => void;
|
|
42
|
+
onClose: () => void;
|
|
43
|
+
selectedDraft: OptionShape[];
|
|
44
|
+
};
|
|
45
|
+
allowUnselect: boolean;
|
|
46
|
+
multiple: boolean;
|
|
47
|
+
options: (OptionShape | import("./index-3e68f8db").GroupShape | {
|
|
48
|
+
key: string;
|
|
49
|
+
content: string;
|
|
50
|
+
})[];
|
|
51
|
+
onChange: (payload: import("./index-3e68f8db").BaseSelectChangePayload) => void;
|
|
52
|
+
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
53
|
+
};
|
|
54
|
+
export { SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as __spreadArray } from '../tslib.es6-
|
|
1
|
+
import { b as __spreadArray } from '../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import { useState, useRef } from 'react';
|
|
3
|
-
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
4
3
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
4
|
+
import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
|
|
5
5
|
|
|
6
6
|
var useCollapsibleElements = function (selectors, deps) {
|
|
7
7
|
if (deps === void 0) { deps = []; }
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as __assign } from '../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../tslib.es6-fd2adbbc.js';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { useMedia } from '@alfalab/hooks';
|
|
4
|
-
import '@juggle/resize-observer';
|
|
5
4
|
import { useCollapsibleElements } from './use-collapsible-elements.js';
|
|
6
5
|
import { useTabs } from './use-tabs.js';
|
|
6
|
+
import '@juggle/resize-observer';
|
|
7
7
|
|
|
8
8
|
var useTablistTitles = function (_a) {
|
|
9
9
|
var _b = _a.titles, titles = _b === void 0 ? [] : _b, selectedId = _a.selectedId, collapsible = _a.collapsible, breakpoint = _a.breakpoint, onChange = _a.onChange;
|
|
10
10
|
var _c = useCollapsibleElements('[role=tab]', [titles]), containerRef = _c.containerRef, addonRef = _c.addonRef, idsCollapsedElements = _c.idsCollapsedElements;
|
|
11
|
-
var view = useMedia([['desktop', "(min-width: "
|
|
11
|
+
var view = useMedia([['desktop', "(min-width: ".concat(breakpoint, "px)")]], 'desktop')[0];
|
|
12
12
|
var tablistTitles = useMemo(function () {
|
|
13
13
|
var idsCollapsedTitles = [];
|
|
14
14
|
if (view === 'desktop' && collapsible) {
|
package/esm/hooks/use-tabs.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { KeyboardEvent, MouseEvent, MutableRefObject } from 'react';
|
|
2
2
|
import { UseTabsProps } from "../typings";
|
|
3
3
|
declare function useTabs({ titles, selectedId, onChange }: UseTabsProps): {
|
|
4
|
-
getTabListItemProps: (index: number, outerRef?: MutableRefObject<HTMLElement>
|
|
4
|
+
getTabListItemProps: (index: number, outerRef?: MutableRefObject<HTMLElement>) => {
|
|
5
5
|
role: string;
|
|
6
6
|
tabIndex: number;
|
|
7
7
|
'aria-selected': boolean;
|
|
8
8
|
disabled: boolean | undefined;
|
|
9
9
|
ref: (node: HTMLButtonElement) => void;
|
|
10
10
|
onKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
11
|
-
onClick: (event?: MouseEvent
|
|
11
|
+
onClick: (event?: MouseEvent) => void;
|
|
12
12
|
};
|
|
13
13
|
selectedTab: HTMLButtonElement | null;
|
|
14
14
|
focusedTab: HTMLButtonElement | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4
|
+
import { ButtonProps } from "./index-ebda875c";
|
|
5
|
+
import { AdditionalMobileProps } from "./index-3e68f8db";
|
|
6
|
+
import { PickerButtonDesktopProps } from "./Component-0d7ca9a7";
|
|
7
|
+
type PickerButtonMatchMedia = "desktop" | "mobile";
|
|
8
|
+
type PickerButtonProps = PickerButtonDesktopProps & AdditionalMobileProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
11
|
+
* @default 1024
|
|
12
|
+
*/
|
|
13
|
+
breakpoint?: number;
|
|
14
|
+
};
|
|
15
|
+
declare const PickerButton: React.ForwardRefExoticComponent<Omit<import("./index-3e68f8db").BaseSelectProps, "placeholder" | "onFocus" | "size" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow" | "Field"> & Pick<ButtonProps, "rightAddons" | "leftAddons" | "view" | "loading"> & {
|
|
16
|
+
options: ((import("./index-3e68f8db").OptionShape | import("./index-3e68f8db").GroupShape) & {
|
|
17
|
+
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
18
|
+
})[];
|
|
19
|
+
size?: import("./Component-0d7ca9a7").PickerButtonSize | undefined;
|
|
20
|
+
variant?: import("./Component-0d7ca9a7").PickerButtonVariant | undefined;
|
|
21
|
+
} & AdditionalMobileProps & {
|
|
22
|
+
breakpoint?: number | undefined;
|
|
23
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
24
|
+
type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, "OptionsList" | "Checkmark" | "onScroll"> & AdditionalMobileProps;
|
|
25
|
+
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "OptionsList" | "Checkmark"> & AdditionalMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export { PickerButtonMatchMedia, PickerButtonProps, PickerButton, PickerButtonMobileProps, PickerButtonMobile };
|
|
27
|
+
export type { PickerButtonDesktopProps, PickerButtonSize, PickerButtonVariant } from "./Component-0d7ca9a7";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
5
|
+
* Значения выбраны по приоритету.
|
|
6
|
+
*/
|
|
7
|
+
declare const stackingOrder: {
|
|
8
|
+
FOCUSED: number;
|
|
9
|
+
DEFAULT: number;
|
|
10
|
+
POPOVER: number;
|
|
11
|
+
MODAL: number;
|
|
12
|
+
TOAST: number;
|
|
13
|
+
};
|
|
14
|
+
declare const StackingContext: import("react").Context<number>;
|
|
15
|
+
type StackProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Render prop, в который передается функция.
|
|
18
|
+
* Функция принимает аргумент со значением z-index из текущего контекста.
|
|
19
|
+
*/
|
|
20
|
+
children: (value: number) => ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Исходное значение для z-index.
|
|
23
|
+
* @default 5
|
|
24
|
+
*/
|
|
25
|
+
value?: number;
|
|
26
|
+
};
|
|
27
|
+
declare const Stack: FC<StackProps>;
|
|
28
|
+
export { stackingOrder, StackingContext, StackProps, Stack };
|