@alfalab/core-components 44.5.0-beta.1 → 44.5.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/confirmation/component.responsive.js +1 -1
- package/confirmation/components/base-confirmation/component.js +1 -1
- package/confirmation/components/base-confirmation/index.js +1 -1
- package/confirmation/components/index.js +1 -1
- package/confirmation/components/screens/index.js +1 -1
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/components/screens/initial/index.js +1 -1
- package/confirmation/desktop/component.desktop.js +1 -1
- package/confirmation/desktop/index.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.js +1 -1
- package/confirmation/index.js +1 -1
- package/confirmation/mobile/component.mobile.js +1 -1
- package/confirmation/mobile/index.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/confirmation/shared/index.js +1 -1
- package/package.json +1 -1
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.js +1 -1
- package/select/Component.responsive.js +1 -1
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/index.js +1 -1
- package/select/esm/mobile/Component.mobile.js +1 -1
- package/select/esm/mobile/Component.modal.mobile.js +1 -1
- package/select/esm/mobile/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useSelectWithApply/hook.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/esm/shared/index.js +1 -1
- package/select/index.js +1 -1
- package/select/mobile/Component.mobile.js +1 -1
- package/select/mobile/Component.modal.mobile.js +1 -1
- package/select/mobile/index.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/index.js +1 -1
- package/select/modern/mobile/Component.mobile.js +1 -1
- package/select/modern/mobile/Component.modal.mobile.js +1 -1
- package/select/modern/mobile/index.js +1 -1
- package/select/modern/presets/index.js +1 -1
- package/select/modern/presets/useSelectWithApply/hook.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/modern/shared/index.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared/index.js +1 -1
- package/tabs/collapsible/index.js +1 -1
- package/tabs/components/primary-tablist/Component.collapsible.js +4 -4
- package/tabs/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/components/primary-tablist/Component.js +1 -1
- package/tabs/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/components/tab/Component.d.ts +1 -1
- package/tabs/components/tab/Component.js +3 -3
- package/tabs/components/tabs/Component.collapsible.js +1 -1
- package/tabs/components/tabs/Component.desktop.js +2 -2
- package/tabs/components/tabs/Component.js +2 -2
- package/tabs/components/tabs/Component.mobile.js +2 -2
- package/tabs/components/tabs/Component.responsive.js +2 -2
- package/tabs/components/title/Component.d.ts +4 -6
- package/tabs/cssm/components/primary-tablist/Component.collapsible.js +3 -3
- package/tabs/cssm/components/primary-tablist/Component.js +1 -1
- package/tabs/cssm/components/tab/Component.d.ts +1 -1
- package/tabs/cssm/components/tab/Component.js +3 -3
- package/tabs/cssm/components/tabs/Component.js +2 -2
- package/tabs/cssm/components/title/Component.d.ts +4 -6
- package/tabs/cssm/hooks/use-tablist-titles.d.ts +1 -1
- package/tabs/cssm/hooks/use-tabs.js +2 -2
- package/tabs/cssm/typings.d.ts +5 -5
- package/tabs/desktop/index.js +2 -2
- package/tabs/esm/collapsible/index.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.collapsible.js +4 -4
- package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/tab/Component.d.ts +1 -1
- package/tabs/esm/components/tab/Component.js +4 -4
- package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
- package/tabs/esm/components/tabs/Component.desktop.js +2 -2
- package/tabs/esm/components/tabs/Component.js +2 -2
- package/tabs/esm/components/tabs/Component.mobile.js +2 -2
- package/tabs/esm/components/tabs/Component.responsive.js +2 -2
- package/tabs/esm/components/title/Component.d.ts +4 -6
- package/tabs/esm/desktop/index.js +2 -2
- package/tabs/esm/hooks/use-tablist-titles.d.ts +1 -1
- package/tabs/esm/hooks/use-tabs.js +2 -2
- package/tabs/esm/index.js +2 -2
- package/tabs/esm/mobile/index.js +2 -2
- package/tabs/esm/typings.d.ts +5 -5
- package/tabs/hooks/use-tablist-titles.d.ts +1 -1
- package/tabs/hooks/use-tabs.js +2 -2
- package/tabs/index.js +2 -2
- package/tabs/mobile/index.js +2 -2
- package/tabs/modern/collapsible/index.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.collapsible.js +4 -4
- package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/tab/Component.d.ts +1 -1
- package/tabs/modern/components/tab/Component.js +3 -3
- package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
- package/tabs/modern/components/tabs/Component.desktop.js +2 -2
- package/tabs/modern/components/tabs/Component.js +2 -2
- package/tabs/modern/components/tabs/Component.mobile.js +2 -2
- package/tabs/modern/components/tabs/Component.responsive.js +2 -2
- package/tabs/modern/components/title/Component.d.ts +4 -6
- package/tabs/modern/desktop/index.js +2 -2
- package/tabs/modern/hooks/use-tablist-titles.d.ts +1 -1
- package/tabs/modern/hooks/use-tabs.js +2 -2
- package/tabs/modern/index.js +2 -2
- package/tabs/modern/mobile/index.js +2 -2
- package/tabs/modern/typings.d.ts +5 -5
- package/tabs/typings.d.ts +5 -5
- package/themes/compiled/mobile-dark-bluetint.css +27 -27
- package/themes/dist/compiled/mobile-dark-bluetint.css +106 -106
- /package/confirmation/{countdown-section-62123575.d.ts → countdown-section-fcedf50a.d.ts} +0 -0
- /package/confirmation/{countdown-section-62123575.js → countdown-section-fcedf50a.js} +0 -0
- /package/confirmation/esm/{countdown-section-1c60196c.d.ts → countdown-section-a4b62979.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-1c60196c.js → countdown-section-a4b62979.js} +0 -0
- /package/confirmation/modern/{countdown-section-5a30ab8e.d.ts → countdown-section-3c0f612c.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-5a30ab8e.js → countdown-section-3c0f612c.js} +0 -0
- /package/pure-cell/{component-b6918aec.d.ts → component-8706ad6e.d.ts} +0 -0
- /package/pure-cell/{component-b6918aec.js → component-8706ad6e.js} +0 -0
- /package/pure-cell/esm/{component-9a54b1ed.d.ts → component-7c9120a5.d.ts} +0 -0
- /package/pure-cell/esm/{component-9a54b1ed.js → component-7c9120a5.js} +0 -0
- /package/pure-cell/modern/{component-77a33c62.d.ts → component-657583a6.d.ts} +0 -0
- /package/pure-cell/modern/{component-77a33c62.js → component-657583a6.js} +0 -0
- /package/select/esm/{hook-4ab5f585.d.ts → hook-b9d559da.d.ts} +0 -0
- /package/select/esm/{hook-4ab5f585.js → hook-b9d559da.js} +0 -0
- /package/select/{hook-72c8ef01.d.ts → hook-8a723404.d.ts} +0 -0
- /package/select/{hook-72c8ef01.js → hook-8a723404.js} +0 -0
- /package/select/modern/{hook-4adee35c.d.ts → hook-d1a0d491.d.ts} +0 -0
- /package/select/modern/{hook-4adee35c.js → hook-d1a0d491.js} +0 -0
- /package/tabs/esm/{index.module-1e961bec.js → index.module-2e6bbad0.js} +0 -0
- /package/tabs/esm/{index.module-b07a0a20.js → index.module-f4522cbb.js} +0 -0
- /package/tabs/{index.module-dcd338c3.js → index.module-6317ca6b.js} +0 -0
- /package/tabs/{index.module-6c875fed.js → index.module-915cefb2.js} +0 -0
- /package/tabs/modern/{index.module-11a3c51b.js → index.module-461a89ca.js} +0 -0
- /package/tabs/modern/{index.module-b0eb0617.js → index.module-9b682de1.js} +0 -0
|
@@ -21,10 +21,10 @@ require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
|
21
21
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
22
22
|
require('../scroll-controls/utils.js');
|
|
23
23
|
require('../title/Component.js');
|
|
24
|
-
require('../../index.module-
|
|
24
|
+
require('../../index.module-6317ca6b.js');
|
|
25
25
|
require('../../../tag/mobile');
|
|
26
26
|
require('../secondary-tablist/Component.js');
|
|
27
|
-
require('../../index.module-
|
|
27
|
+
require('../../index.module-915cefb2.js');
|
|
28
28
|
|
|
29
29
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
30
30
|
|
|
@@ -23,12 +23,12 @@ require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
|
23
23
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
24
24
|
require('../scroll-controls/utils.js');
|
|
25
25
|
require('../title/Component.js');
|
|
26
|
-
require('../../index.module-
|
|
26
|
+
require('../../index.module-6317ca6b.js');
|
|
27
27
|
require('../primary-tablist/Component.mobile.js');
|
|
28
28
|
require('../secondary-tablist/Component.desktop.js');
|
|
29
29
|
require('../../../tag/desktop');
|
|
30
30
|
require('../secondary-tablist/Component.js');
|
|
31
|
-
require('../../index.module-
|
|
31
|
+
require('../../index.module-915cefb2.js');
|
|
32
32
|
require('../secondary-tablist/Component.mobile.js');
|
|
33
33
|
require('../../../tag/mobile');
|
|
34
34
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes } from "react";
|
|
4
3
|
import { Styles, TabListTitle } from "../../typings";
|
|
5
|
-
|
|
6
|
-
focused?: boolean;
|
|
7
|
-
isOption?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const Title: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
declare const Title: React.ForwardRefExoticComponent<TabListTitle & Styles & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "id"> & {
|
|
5
|
+
focused?: boolean | undefined;
|
|
6
|
+
isOption?: boolean | undefined;
|
|
7
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
10
8
|
export { Title };
|
|
@@ -43,12 +43,12 @@ var CollapsiblePrimaryTabList = function (_a) {
|
|
|
43
43
|
}, [selectedTab, tablistTitles]);
|
|
44
44
|
var collapsedOptions = React.useMemo(function () {
|
|
45
45
|
return tablistTitles.reduce(function (options, _a) {
|
|
46
|
-
var
|
|
46
|
+
var toggleRef = _a.toggleRef, title = tslib.__rest(_a, ["toggleRef"]);
|
|
47
47
|
if (title.collapsed) {
|
|
48
48
|
options.push({
|
|
49
49
|
key: title.title,
|
|
50
50
|
value: title.id,
|
|
51
|
-
content: (React__default.default.createElement(components_title_Component.Title, tslib.__assign({}, title, { ref:
|
|
51
|
+
content: (React__default.default.createElement(components_title_Component.Title, tslib.__assign({}, title, { ref: toggleRef, styles: styles__default.default, isOption: true }))),
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
return options;
|
|
@@ -69,7 +69,7 @@ var CollapsiblePrimaryTabList = function (_a) {
|
|
|
69
69
|
_a[styles__default.default.fullWidthScroll] = fullWidthScroll,
|
|
70
70
|
_a)) },
|
|
71
71
|
tablistTitles.map(function (_a, index) {
|
|
72
|
-
_a.dataTestId; _a.
|
|
72
|
+
_a.dataTestId; _a.toggleRef; var restTitleProps = tslib.__rest(_a, ["dataTestId", "toggleRef"]);
|
|
73
73
|
return (React__default.default.createElement(coreComponentsKeyboardFocusable.KeyboardFocusable, { key: restTitleProps.id }, function (ref, focused) { return (React__default.default.createElement(components_title_Component.Title, tslib.__assign({}, getTabListItemProps(index, ref), restTitleProps, { focused: focused, styles: styles__default.default }))); }));
|
|
74
74
|
}),
|
|
75
75
|
collapsedOptions.length ? (React__default.default.createElement("span", { ref: addonRef, role: 'menu', className: styles__default.default.pickerWrapper },
|
|
@@ -54,7 +54,7 @@ var PrimaryTabList = function (_a) {
|
|
|
54
54
|
_a[styles.fullWidthScroll] = fullWidthScroll,
|
|
55
55
|
_a)) },
|
|
56
56
|
titles.map(function (_a, index) {
|
|
57
|
-
_a.dataTestId; _a.
|
|
57
|
+
_a.dataTestId; _a.toggleRef; var restTitleProps = tslib.__rest(_a, ["dataTestId", "toggleRef"]);
|
|
58
58
|
return (React__default.default.createElement(coreComponentsKeyboardFocusable.KeyboardFocusable, { key: restTitleProps.id }, function (ref, focused) { return (React__default.default.createElement(components_title_Component.Title, tslib.__assign({}, getTabListItemProps(index, ref), restTitleProps, { focused: focused, styles: styles }))); }));
|
|
59
59
|
}),
|
|
60
60
|
React__default.default.createElement("div", { className: styles.line, ref: lineRef })));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TabProps } from "../../typings";
|
|
4
|
-
declare const Tab:
|
|
4
|
+
declare const Tab: ({ children, hidden, className, disabled, dataTestId }: TabProps) => React.JSX.Element | null;
|
|
5
5
|
export { Tab };
|
|
@@ -10,12 +10,12 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
10
10
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
11
11
|
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
12
12
|
|
|
13
|
-
var Tab =
|
|
13
|
+
var Tab = function (_a) {
|
|
14
14
|
var _b;
|
|
15
15
|
var children = _a.children, hidden = _a.hidden, className = _a.className, disabled = _a.disabled, dataTestId = _a.dataTestId;
|
|
16
|
-
return children ? (React__default.default.createElement("div", {
|
|
16
|
+
return children ? (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, (_b = {},
|
|
17
17
|
_b[styles__default.default.hidden] = hidden,
|
|
18
18
|
_b), className), hidden: hidden, role: 'tabpanel', tabIndex: disabled ? -1 : 0, "data-test-id": dataTestId }, children)) : null;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
|
|
21
21
|
exports.Tab = Tab;
|
|
@@ -10,7 +10,7 @@ var Tabs = function (_a) {
|
|
|
10
10
|
var TabList = _a.TabList, className = _a.className, containerClassName = _a.containerClassName, size = _a.size, defaultMatchMediaValue = _a.defaultMatchMediaValue, children = _a.children, selectedId = _a.selectedId, scrollable = _a.scrollable, collapsedTabsIds = _a.collapsedTabsIds, _b = _a.fullWidthScroll, fullWidthScroll = _b === void 0 ? false : _b, _c = _a.keepMounted, keepMounted = _c === void 0 ? false : _c, dataTestId = _a.dataTestId, onChange = _a.onChange, _d = _a.breakpoint, breakpoint = _d === void 0 ? 1024 : _d, tagShape = _a.tagShape, tagView = _a.tagView;
|
|
11
11
|
var tabsArray = React__default.default.Children.toArray(children);
|
|
12
12
|
var titles = tabsArray.map(function (_a) {
|
|
13
|
-
var _b = _a.props, title = _b.title, id = _b.id, rightAddons = _b.rightAddons, disabled = _b.disabled, hidden = _b.hidden, toggleClassName = _b.toggleClassName, toggleTestId = _b.dataTestId,
|
|
13
|
+
var _b = _a.props, title = _b.title, id = _b.id, rightAddons = _b.rightAddons, disabled = _b.disabled, hidden = _b.hidden, toggleClassName = _b.toggleClassName, toggleTestId = _b.dataTestId, toggleRef = _b.toggleRef;
|
|
14
14
|
return ({
|
|
15
15
|
title: title,
|
|
16
16
|
id: id,
|
|
@@ -19,7 +19,7 @@ var Tabs = function (_a) {
|
|
|
19
19
|
hidden: hidden,
|
|
20
20
|
toggleClassName: toggleClassName,
|
|
21
21
|
dataTestId: toggleTestId,
|
|
22
|
-
|
|
22
|
+
toggleRef: toggleRef,
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
var tabs = tabsArray.filter(function (tab) { return tab.props.id === selectedId || tab.props.keepMounted || keepMounted; });
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes } from "react";
|
|
4
3
|
import { Styles, TabListTitle } from "../../typings";
|
|
5
|
-
|
|
6
|
-
focused?: boolean;
|
|
7
|
-
isOption?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const Title: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
declare const Title: React.ForwardRefExoticComponent<TabListTitle & Styles & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "id"> & {
|
|
5
|
+
focused?: boolean | undefined;
|
|
6
|
+
isOption?: boolean | undefined;
|
|
7
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
10
8
|
export { Title };
|
|
@@ -13,7 +13,7 @@ declare const useTablistTitles: ({ titles, selectedId, collapsedTabsIds, breakpo
|
|
|
13
13
|
hidden?: boolean | undefined;
|
|
14
14
|
toggleClassName?: string | undefined;
|
|
15
15
|
dataTestId?: string | undefined;
|
|
16
|
-
|
|
16
|
+
toggleRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
17
17
|
}[];
|
|
18
18
|
selectedTab: HTMLButtonElement | null;
|
|
19
19
|
focusedTab: HTMLButtonElement | null;
|
package/tabs/cssm/typings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC,
|
|
1
|
+
import { FC, MouseEvent, ReactElement, ReactNode, Ref } from 'react';
|
|
2
2
|
import { TagProps } from "../../tag";
|
|
3
3
|
type SelectedId = string | number;
|
|
4
4
|
type TabsProps = {
|
|
@@ -49,7 +49,7 @@ type TabsProps = {
|
|
|
49
49
|
/**
|
|
50
50
|
* Компоненты табов
|
|
51
51
|
*/
|
|
52
|
-
children: Array<
|
|
52
|
+
children: Array<ReactElement<TabProps>>;
|
|
53
53
|
/**
|
|
54
54
|
* Компонент заголовков табов
|
|
55
55
|
*/
|
|
@@ -120,9 +120,9 @@ type TabProps = {
|
|
|
120
120
|
*/
|
|
121
121
|
dataTestId?: string;
|
|
122
122
|
/**
|
|
123
|
-
* Реф
|
|
123
|
+
* Реф для кнопки переключения таба
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
toggleRef?: Ref<HTMLDivElement>;
|
|
126
126
|
};
|
|
127
127
|
type TabListTitle = {
|
|
128
128
|
title: string;
|
|
@@ -134,7 +134,7 @@ type TabListTitle = {
|
|
|
134
134
|
selected?: boolean;
|
|
135
135
|
collapsed?: boolean;
|
|
136
136
|
dataTestId?: string;
|
|
137
|
-
|
|
137
|
+
toggleRef?: Ref<HTMLDivElement>;
|
|
138
138
|
};
|
|
139
139
|
type TabListProps = Pick<TabsProps, 'className' | 'containerClassName' | 'size' | 'defaultMatchMediaValue' | 'selectedId' | 'scrollable' | 'collapsedTabsIds' | 'onChange' | 'dataTestId' | 'fullWidthScroll' | 'tagShape' | 'tagView'> & {
|
|
140
140
|
/**
|
package/tabs/desktop/index.js
CHANGED
|
@@ -22,10 +22,10 @@ require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
|
22
22
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
23
23
|
require('../components/scroll-controls/utils.js');
|
|
24
24
|
require('../components/title/Component.js');
|
|
25
|
-
require('../index.module-
|
|
25
|
+
require('../index.module-6317ca6b.js');
|
|
26
26
|
require('../../tag/desktop');
|
|
27
27
|
require('../components/secondary-tablist/Component.js');
|
|
28
|
-
require('../index.module-
|
|
28
|
+
require('../index.module-915cefb2.js');
|
|
29
29
|
require('../components/tabs/Component.js');
|
|
30
30
|
|
|
31
31
|
|
|
@@ -12,7 +12,7 @@ import '@alfalab/hooks';
|
|
|
12
12
|
import 'react-merge-refs';
|
|
13
13
|
import '../../../shared/esm';
|
|
14
14
|
import '../components/title/Component.js';
|
|
15
|
-
import '../index.module-
|
|
15
|
+
import '../index.module-2e6bbad0.js';
|
|
16
16
|
import '../components/primary-tablist/Component.collapsible.js';
|
|
17
17
|
import '../hooks/use-tablist-titles.js';
|
|
18
18
|
import '../hooks/use-collapsible-elements.js';
|
|
@@ -7,7 +7,7 @@ import { PickerButtonDesktop } from '../../../../picker-button/esm/desktop';
|
|
|
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 { s as styles } from '../../index.module-
|
|
10
|
+
import { s as styles } from '../../index.module-2e6bbad0.js';
|
|
11
11
|
import '../../../../mq/esm';
|
|
12
12
|
import '@juggle/resize-observer';
|
|
13
13
|
import '@alfalab/hooks';
|
|
@@ -35,12 +35,12 @@ var CollapsiblePrimaryTabList = function (_a) {
|
|
|
35
35
|
}, [selectedTab, tablistTitles]);
|
|
36
36
|
var collapsedOptions = useMemo(function () {
|
|
37
37
|
return tablistTitles.reduce(function (options, _a) {
|
|
38
|
-
var
|
|
38
|
+
var toggleRef = _a.toggleRef, title = __rest(_a, ["toggleRef"]);
|
|
39
39
|
if (title.collapsed) {
|
|
40
40
|
options.push({
|
|
41
41
|
key: title.title,
|
|
42
42
|
value: title.id,
|
|
43
|
-
content: (React.createElement(Title, __assign({}, title, { ref:
|
|
43
|
+
content: (React.createElement(Title, __assign({}, title, { ref: toggleRef, styles: styles, isOption: true }))),
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
return options;
|
|
@@ -61,7 +61,7 @@ var CollapsiblePrimaryTabList = function (_a) {
|
|
|
61
61
|
_a[styles.fullWidthScroll] = fullWidthScroll,
|
|
62
62
|
_a)) },
|
|
63
63
|
tablistTitles.map(function (_a, index) {
|
|
64
|
-
_a.dataTestId; _a.
|
|
64
|
+
_a.dataTestId; _a.toggleRef; var restTitleProps = __rest(_a, ["dataTestId", "toggleRef"]);
|
|
65
65
|
return (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, function (ref, focused) { return (React.createElement(Title, __assign({}, getTabListItemProps(index, ref), restTitleProps, { focused: focused, styles: styles }))); }));
|
|
66
66
|
}),
|
|
67
67
|
collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PrimaryTabList } from './Component.js';
|
|
4
|
-
import { s as styles } from '../../index.module-
|
|
4
|
+
import { s as styles } from '../../index.module-2e6bbad0.js';
|
|
5
5
|
import '@juggle/resize-observer';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../../../../keyboard-focusable/esm';
|
|
@@ -45,7 +45,7 @@ var PrimaryTabList = function (_a) {
|
|
|
45
45
|
_a[styles.fullWidthScroll] = fullWidthScroll,
|
|
46
46
|
_a)) },
|
|
47
47
|
titles.map(function (_a, index) {
|
|
48
|
-
_a.dataTestId; _a.
|
|
48
|
+
_a.dataTestId; _a.toggleRef; var restTitleProps = __rest(_a, ["dataTestId", "toggleRef"]);
|
|
49
49
|
return (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, function (ref, focused) { return (React.createElement(Title, __assign({}, getTabListItemProps(index, ref), restTitleProps, { focused: focused, styles: styles }))); }));
|
|
50
50
|
}),
|
|
51
51
|
React.createElement("div", { className: styles.line, ref: lineRef })));
|
|
@@ -2,7 +2,7 @@ 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 { s as styles$1 } from '../../index.module-
|
|
5
|
+
import { s as styles$1 } from '../../index.module-2e6bbad0.js';
|
|
6
6
|
import '@juggle/resize-observer';
|
|
7
7
|
import '../../../../keyboard-focusable/esm';
|
|
8
8
|
import '../../../../shared/esm';
|
|
@@ -16,7 +16,7 @@ import 'lodash.debounce';
|
|
|
16
16
|
import '../../../../icon-button/esm';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-2e6bbad0.js';
|
|
20
20
|
import './Component.js';
|
|
21
21
|
import '../../hooks/use-tabs.js';
|
|
22
22
|
import '../scroll-controls/utils.js';
|
|
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TagDesktop } from '../../../../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-f4522cbb.js';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import 'react-merge-refs';
|
|
8
8
|
import '../../../../shared/esm';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { TagMobile } from '../../../../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-f4522cbb.js';
|
|
7
7
|
import 'react-merge-refs';
|
|
8
8
|
import '../../../../shared/esm';
|
|
9
9
|
import '../scrollable-container/Component.js';
|
|
@@ -14,7 +14,7 @@ import 'lodash.debounce';
|
|
|
14
14
|
import '../../../../icon-button/esm';
|
|
15
15
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
16
16
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
17
|
-
import '../../index.module-
|
|
17
|
+
import '../../index.module-f4522cbb.js';
|
|
18
18
|
import '../../../../tag/esm/mobile';
|
|
19
19
|
import './Component.js';
|
|
20
20
|
import '../../hooks/use-tabs.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TabProps } from "../../typings";
|
|
4
|
-
declare const Tab:
|
|
4
|
+
declare const Tab: ({ children, hidden, className, disabled, dataTestId }: TabProps) => React.JSX.Element | null;
|
|
5
5
|
export { Tab };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
4
|
var styles = {"component":"tabs__component_fie4e","hidden":"tabs__hidden_fie4e"};
|
|
5
5
|
require('./index.css');
|
|
6
6
|
|
|
7
|
-
var Tab =
|
|
7
|
+
var Tab = function (_a) {
|
|
8
8
|
var _b;
|
|
9
9
|
var children = _a.children, hidden = _a.hidden, className = _a.className, disabled = _a.disabled, dataTestId = _a.dataTestId;
|
|
10
|
-
return children ? (React.createElement("div", {
|
|
10
|
+
return children ? (React.createElement("div", { className: cn(styles.component, (_b = {},
|
|
11
11
|
_b[styles.hidden] = hidden,
|
|
12
12
|
_b), className), hidden: hidden, role: 'tabpanel', tabIndex: disabled ? -1 : 0, "data-test-id": dataTestId }, children)) : null;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
|
|
15
15
|
export { Tab };
|
|
@@ -12,7 +12,7 @@ import '@alfalab/hooks';
|
|
|
12
12
|
import 'react-merge-refs';
|
|
13
13
|
import '../../../../shared/esm';
|
|
14
14
|
import '../title/Component.js';
|
|
15
|
-
import '../../index.module-
|
|
15
|
+
import '../../index.module-2e6bbad0.js';
|
|
16
16
|
import '../../hooks/use-tablist-titles.js';
|
|
17
17
|
import '../../hooks/use-collapsible-elements.js';
|
|
18
18
|
import '../../hooks/use-tabs.js';
|
|
@@ -16,9 +16,9 @@ import 'lodash.debounce';
|
|
|
16
16
|
import '../../../../icon-button/esm';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-2e6bbad0.js';
|
|
20
20
|
import '../../../../tag/esm/desktop';
|
|
21
|
-
import '../../index.module-
|
|
21
|
+
import '../../index.module-f4522cbb.js';
|
|
22
22
|
import '../primary-tablist/Component.js';
|
|
23
23
|
import '../../hooks/use-tabs.js';
|
|
24
24
|
import '../scroll-controls/utils.js';
|
|
@@ -4,7 +4,7 @@ var Tabs = function (_a) {
|
|
|
4
4
|
var TabList = _a.TabList, className = _a.className, containerClassName = _a.containerClassName, size = _a.size, defaultMatchMediaValue = _a.defaultMatchMediaValue, children = _a.children, selectedId = _a.selectedId, scrollable = _a.scrollable, collapsedTabsIds = _a.collapsedTabsIds, _b = _a.fullWidthScroll, fullWidthScroll = _b === void 0 ? false : _b, _c = _a.keepMounted, keepMounted = _c === void 0 ? false : _c, dataTestId = _a.dataTestId, onChange = _a.onChange, _d = _a.breakpoint, breakpoint = _d === void 0 ? 1024 : _d, tagShape = _a.tagShape, tagView = _a.tagView;
|
|
5
5
|
var tabsArray = React.Children.toArray(children);
|
|
6
6
|
var titles = tabsArray.map(function (_a) {
|
|
7
|
-
var _b = _a.props, title = _b.title, id = _b.id, rightAddons = _b.rightAddons, disabled = _b.disabled, hidden = _b.hidden, toggleClassName = _b.toggleClassName, toggleTestId = _b.dataTestId,
|
|
7
|
+
var _b = _a.props, title = _b.title, id = _b.id, rightAddons = _b.rightAddons, disabled = _b.disabled, hidden = _b.hidden, toggleClassName = _b.toggleClassName, toggleTestId = _b.dataTestId, toggleRef = _b.toggleRef;
|
|
8
8
|
return ({
|
|
9
9
|
title: title,
|
|
10
10
|
id: id,
|
|
@@ -13,7 +13,7 @@ var Tabs = function (_a) {
|
|
|
13
13
|
hidden: hidden,
|
|
14
14
|
toggleClassName: toggleClassName,
|
|
15
15
|
dataTestId: toggleTestId,
|
|
16
|
-
|
|
16
|
+
toggleRef: toggleRef,
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
var tabs = tabsArray.filter(function (tab) { return tab.props.id === selectedId || tab.props.keepMounted || keepMounted; });
|
|
@@ -16,9 +16,9 @@ import 'lodash.debounce';
|
|
|
16
16
|
import '../../../../icon-button/esm';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-2e6bbad0.js';
|
|
20
20
|
import '../../../../tag/esm/mobile';
|
|
21
|
-
import '../../index.module-
|
|
21
|
+
import '../../index.module-f4522cbb.js';
|
|
22
22
|
import '../primary-tablist/Component.js';
|
|
23
23
|
import '../../hooks/use-tabs.js';
|
|
24
24
|
import '../scroll-controls/utils.js';
|
|
@@ -17,10 +17,10 @@ import 'lodash.debounce';
|
|
|
17
17
|
import '../../../../icon-button/esm';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-2e6bbad0.js';
|
|
21
21
|
import '../primary-tablist/Component.mobile.js';
|
|
22
22
|
import '../../../../tag/esm/desktop';
|
|
23
|
-
import '../../index.module-
|
|
23
|
+
import '../../index.module-f4522cbb.js';
|
|
24
24
|
import '../secondary-tablist/Component.mobile.js';
|
|
25
25
|
import '../../../../tag/esm/mobile';
|
|
26
26
|
import '../primary-tablist/Component.desktop.js';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes } from "react";
|
|
4
3
|
import { Styles, TabListTitle } from "../../typings";
|
|
5
|
-
|
|
6
|
-
focused?: boolean;
|
|
7
|
-
isOption?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const Title: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
declare const Title: React.ForwardRefExoticComponent<TabListTitle & Styles & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "id"> & {
|
|
5
|
+
focused?: boolean | undefined;
|
|
6
|
+
isOption?: boolean | undefined;
|
|
7
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
10
8
|
export { Title };
|
|
@@ -17,9 +17,9 @@ import 'lodash.debounce';
|
|
|
17
17
|
import '../../../icon-button/esm';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
-
import '../index.module-
|
|
20
|
+
import '../index.module-2e6bbad0.js';
|
|
21
21
|
import '../../../tag/esm/desktop';
|
|
22
|
-
import '../index.module-
|
|
22
|
+
import '../index.module-f4522cbb.js';
|
|
23
23
|
import '../components/primary-tablist/Component.js';
|
|
24
24
|
import '../hooks/use-tabs.js';
|
|
25
25
|
import '../components/scroll-controls/utils.js';
|
|
@@ -13,7 +13,7 @@ declare const useTablistTitles: ({ titles, selectedId, collapsedTabsIds, breakpo
|
|
|
13
13
|
hidden?: boolean | undefined;
|
|
14
14
|
toggleClassName?: string | undefined;
|
|
15
15
|
dataTestId?: string | undefined;
|
|
16
|
-
|
|
16
|
+
toggleRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
17
17
|
}[];
|
|
18
18
|
selectedTab: HTMLButtonElement | null;
|
|
19
19
|
focusedTab: HTMLButtonElement | null;
|
package/tabs/esm/index.js
CHANGED
|
@@ -18,10 +18,10 @@ import 'lodash.debounce';
|
|
|
18
18
|
import '../../icon-button/esm';
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
21
|
-
import './index.module-
|
|
21
|
+
import './index.module-2e6bbad0.js';
|
|
22
22
|
import './components/primary-tablist/Component.mobile.js';
|
|
23
23
|
import '../../tag/esm/desktop';
|
|
24
|
-
import './index.module-
|
|
24
|
+
import './index.module-f4522cbb.js';
|
|
25
25
|
import './components/secondary-tablist/Component.mobile.js';
|
|
26
26
|
import '../../tag/esm/mobile';
|
|
27
27
|
import './components/primary-tablist/Component.desktop.js';
|
package/tabs/esm/mobile/index.js
CHANGED
|
@@ -17,9 +17,9 @@ import 'lodash.debounce';
|
|
|
17
17
|
import '../../../icon-button/esm';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
-
import '../index.module-
|
|
20
|
+
import '../index.module-2e6bbad0.js';
|
|
21
21
|
import '../../../tag/esm/mobile';
|
|
22
|
-
import '../index.module-
|
|
22
|
+
import '../index.module-f4522cbb.js';
|
|
23
23
|
import '../components/primary-tablist/Component.js';
|
|
24
24
|
import '../hooks/use-tabs.js';
|
|
25
25
|
import '../components/scroll-controls/utils.js';
|
package/tabs/esm/typings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC,
|
|
1
|
+
import { FC, MouseEvent, ReactElement, ReactNode, Ref } from 'react';
|
|
2
2
|
import { TagProps } from "../../tag";
|
|
3
3
|
type SelectedId = string | number;
|
|
4
4
|
type TabsProps = {
|
|
@@ -49,7 +49,7 @@ type TabsProps = {
|
|
|
49
49
|
/**
|
|
50
50
|
* Компоненты табов
|
|
51
51
|
*/
|
|
52
|
-
children: Array<
|
|
52
|
+
children: Array<ReactElement<TabProps>>;
|
|
53
53
|
/**
|
|
54
54
|
* Компонент заголовков табов
|
|
55
55
|
*/
|
|
@@ -120,9 +120,9 @@ type TabProps = {
|
|
|
120
120
|
*/
|
|
121
121
|
dataTestId?: string;
|
|
122
122
|
/**
|
|
123
|
-
* Реф
|
|
123
|
+
* Реф для кнопки переключения таба
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
toggleRef?: Ref<HTMLDivElement>;
|
|
126
126
|
};
|
|
127
127
|
type TabListTitle = {
|
|
128
128
|
title: string;
|
|
@@ -134,7 +134,7 @@ type TabListTitle = {
|
|
|
134
134
|
selected?: boolean;
|
|
135
135
|
collapsed?: boolean;
|
|
136
136
|
dataTestId?: string;
|
|
137
|
-
|
|
137
|
+
toggleRef?: Ref<HTMLDivElement>;
|
|
138
138
|
};
|
|
139
139
|
type TabListProps = Pick<TabsProps, 'className' | 'containerClassName' | 'size' | 'defaultMatchMediaValue' | 'selectedId' | 'scrollable' | 'collapsedTabsIds' | 'onChange' | 'dataTestId' | 'fullWidthScroll' | 'tagShape' | 'tagView'> & {
|
|
140
140
|
/**
|
|
@@ -13,7 +13,7 @@ declare const useTablistTitles: ({ titles, selectedId, collapsedTabsIds, breakpo
|
|
|
13
13
|
hidden?: boolean | undefined;
|
|
14
14
|
toggleClassName?: string | undefined;
|
|
15
15
|
dataTestId?: string | undefined;
|
|
16
|
-
|
|
16
|
+
toggleRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
17
17
|
}[];
|
|
18
18
|
selectedTab: HTMLButtonElement | null;
|
|
19
19
|
focusedTab: HTMLButtonElement | null;
|
package/tabs/hooks/use-tabs.js
CHANGED
package/tabs/index.js
CHANGED
|
@@ -24,12 +24,12 @@ require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
|
24
24
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
25
25
|
require('./components/scroll-controls/utils.js');
|
|
26
26
|
require('./components/title/Component.js');
|
|
27
|
-
require('./index.module-
|
|
27
|
+
require('./index.module-6317ca6b.js');
|
|
28
28
|
require('./components/primary-tablist/Component.mobile.js');
|
|
29
29
|
require('./components/secondary-tablist/Component.desktop.js');
|
|
30
30
|
require('../tag/desktop');
|
|
31
31
|
require('./components/secondary-tablist/Component.js');
|
|
32
|
-
require('./index.module-
|
|
32
|
+
require('./index.module-915cefb2.js');
|
|
33
33
|
require('./components/secondary-tablist/Component.mobile.js');
|
|
34
34
|
require('../tag/mobile');
|
|
35
35
|
require('./components/tabs/Component.js');
|
package/tabs/mobile/index.js
CHANGED
|
@@ -22,10 +22,10 @@ require('@alfalab/icons-glyph/ChevronLeftMIcon');
|
|
|
22
22
|
require('@alfalab/icons-glyph/ChevronRightMIcon');
|
|
23
23
|
require('../components/scroll-controls/utils.js');
|
|
24
24
|
require('../components/title/Component.js');
|
|
25
|
-
require('../index.module-
|
|
25
|
+
require('../index.module-6317ca6b.js');
|
|
26
26
|
require('../../tag/mobile');
|
|
27
27
|
require('../components/secondary-tablist/Component.js');
|
|
28
|
-
require('../index.module-
|
|
28
|
+
require('../index.module-915cefb2.js');
|
|
29
29
|
require('../components/tabs/Component.js');
|
|
30
30
|
|
|
31
31
|
|
|
@@ -11,7 +11,7 @@ import '@alfalab/hooks';
|
|
|
11
11
|
import 'react-merge-refs';
|
|
12
12
|
import '../../../shared/modern';
|
|
13
13
|
import '../components/title/Component.js';
|
|
14
|
-
import '../index.module-
|
|
14
|
+
import '../index.module-9b682de1.js';
|
|
15
15
|
import '../components/primary-tablist/Component.collapsible.js';
|
|
16
16
|
import '../hooks/use-tablist-titles.js';
|
|
17
17
|
import '../hooks/use-collapsible-elements.js';
|