@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
|
@@ -6,7 +6,7 @@ import { PickerButtonDesktop } from '../../../../picker-button/modern/desktop';
|
|
|
6
6
|
import { useTablistTitles } from '../../hooks/use-tablist-titles.js';
|
|
7
7
|
import { createSyntheticMouseEvent } from '../../synthetic-events.js';
|
|
8
8
|
import { Title } from '../title/Component.js';
|
|
9
|
-
import { s as styles } from '../../index.module-
|
|
9
|
+
import { s as styles } from '../../index.module-9b682de1.js';
|
|
10
10
|
import '../../../../mq/modern';
|
|
11
11
|
import '@juggle/resize-observer';
|
|
12
12
|
import '@alfalab/hooks';
|
|
@@ -31,12 +31,12 @@ const CollapsiblePrimaryTabList = ({ size = 'm', className, containerClassName,
|
|
|
31
31
|
lineRef.current.style.transform = `translateX(${selectedTab.offsetLeft}px)`;
|
|
32
32
|
}
|
|
33
33
|
}, [selectedTab, tablistTitles]);
|
|
34
|
-
const collapsedOptions = useMemo(() => tablistTitles.reduce((options, {
|
|
34
|
+
const collapsedOptions = useMemo(() => tablistTitles.reduce((options, { toggleRef, ...title }) => {
|
|
35
35
|
if (title.collapsed) {
|
|
36
36
|
options.push({
|
|
37
37
|
key: title.title,
|
|
38
38
|
value: title.id,
|
|
39
|
-
content: (React.createElement(Title, { ...title, ref:
|
|
39
|
+
content: (React.createElement(Title, { ...title, ref: toggleRef, styles: styles, isOption: true })),
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
return options;
|
|
@@ -52,7 +52,7 @@ const CollapsiblePrimaryTabList = ({ size = 'm', className, containerClassName,
|
|
|
52
52
|
const renderContent = () => (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(styles.component, className, size && styles[size], {
|
|
53
53
|
[styles.fullWidthScroll]: fullWidthScroll,
|
|
54
54
|
}) },
|
|
55
|
-
tablistTitles.map(({ dataTestId: _,
|
|
55
|
+
tablistTitles.map(({ dataTestId: _, toggleRef: __, ...restTitleProps }, index) => (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, (ref, focused) => (React.createElement(Title, { ...getTabListItemProps(index, ref), ...restTitleProps, focused: focused, styles: styles }))))),
|
|
56
56
|
collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
|
|
57
57
|
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,
|
|
58
58
|
React.createElement("div", { className: styles.line, ref: lineRef })));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PrimaryTabList } from './Component.js';
|
|
3
|
-
import { s as styles } from '../../index.module-
|
|
3
|
+
import { s as styles } from '../../index.module-9b682de1.js';
|
|
4
4
|
import '@juggle/resize-observer';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../../../../keyboard-focusable/modern';
|
|
@@ -40,7 +40,7 @@ const PrimaryTabList = ({ size, styles = {}, className, containerClassName, titl
|
|
|
40
40
|
const renderContent = () => (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(styles.component, className, size && styles[size], {
|
|
41
41
|
[styles.fullWidthScroll]: fullWidthScroll,
|
|
42
42
|
}) },
|
|
43
|
-
titles.map(({ dataTestId: _,
|
|
43
|
+
titles.map(({ dataTestId: _, toggleRef: __, ...restTitleProps }, index) => (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, (ref, focused) => (React.createElement(Title, { ...getTabListItemProps(index, ref), ...restTitleProps, focused: focused, styles: styles }))))),
|
|
44
44
|
React.createElement("div", { className: styles.line, ref: lineRef })));
|
|
45
45
|
return scrollable ? (React.createElement(ScrollableContainer, { activeChild: focusedTab || selectedTab, containerClassName: containerClassName, fullWidthScroll: fullWidthScroll, view: 'primary', size: size, platform: platform }, renderContent())) : (React.createElement("div", { className: cn(styles.container, containerClassName) }, renderContent()));
|
|
46
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { PrimaryTabList } from './Component.js';
|
|
4
|
-
import { s as styles$1 } from '../../index.module-
|
|
4
|
+
import { s as styles$1 } from '../../index.module-9b682de1.js';
|
|
5
5
|
import '@juggle/resize-observer';
|
|
6
6
|
import '../../../../keyboard-focusable/modern';
|
|
7
7
|
import '../../../../shared/modern';
|
|
@@ -15,7 +15,7 @@ import 'lodash.debounce';
|
|
|
15
15
|
import '../../../../icon-button/modern';
|
|
16
16
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
|
-
import '../../index.module-
|
|
18
|
+
import '../../index.module-9b682de1.js';
|
|
19
19
|
import './Component.js';
|
|
20
20
|
import '../../hooks/use-tabs.js';
|
|
21
21
|
import '../scroll-controls/utils.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TagDesktop } from '../../../../tag/modern/desktop';
|
|
3
3
|
import { SecondaryTabList } from './Component.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-461a89ca.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import 'react-merge-refs';
|
|
7
7
|
import '../../../../shared/modern';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { TagMobile } from '../../../../tag/modern/mobile';
|
|
4
4
|
import { SecondaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-461a89ca.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
7
7
|
import '../../../../shared/modern';
|
|
8
8
|
import '../scrollable-container/Component.js';
|
|
@@ -13,7 +13,7 @@ import 'lodash.debounce';
|
|
|
13
13
|
import '../../../../icon-button/modern';
|
|
14
14
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
15
15
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
16
|
-
import '../../index.module-
|
|
16
|
+
import '../../index.module-461a89ca.js';
|
|
17
17
|
import '../../../../tag/modern/mobile';
|
|
18
18
|
import './Component.js';
|
|
19
19
|
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,11 +1,11 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
4
|
const styles = {"component":"tabs__component_fie4e","hidden":"tabs__hidden_fie4e"};
|
|
5
5
|
require('./index.css');
|
|
6
6
|
|
|
7
|
-
const Tab =
|
|
7
|
+
const Tab = ({ children, hidden, className, disabled, dataTestId }) => children ? (React.createElement("div", { className: cn(styles.component, {
|
|
8
8
|
[styles.hidden]: hidden,
|
|
9
|
-
}, className), hidden: hidden, role: 'tabpanel', tabIndex: disabled ? -1 : 0, "data-test-id": dataTestId }, children)) : null
|
|
9
|
+
}, className), hidden: hidden, role: 'tabpanel', tabIndex: disabled ? -1 : 0, "data-test-id": dataTestId }, children)) : null;
|
|
10
10
|
|
|
11
11
|
export { Tab };
|
|
@@ -11,7 +11,7 @@ import '@alfalab/hooks';
|
|
|
11
11
|
import 'react-merge-refs';
|
|
12
12
|
import '../../../../shared/modern';
|
|
13
13
|
import '../title/Component.js';
|
|
14
|
-
import '../../index.module-
|
|
14
|
+
import '../../index.module-9b682de1.js';
|
|
15
15
|
import '../../hooks/use-tablist-titles.js';
|
|
16
16
|
import '../../hooks/use-collapsible-elements.js';
|
|
17
17
|
import '../../hooks/use-tabs.js';
|
|
@@ -15,9 +15,9 @@ import 'lodash.debounce';
|
|
|
15
15
|
import '../../../../icon-button/modern';
|
|
16
16
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
|
-
import '../../index.module-
|
|
18
|
+
import '../../index.module-9b682de1.js';
|
|
19
19
|
import '../../../../tag/modern/desktop';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-461a89ca.js';
|
|
21
21
|
import '../primary-tablist/Component.js';
|
|
22
22
|
import '../../hooks/use-tabs.js';
|
|
23
23
|
import '../scroll-controls/utils.js';
|
|
@@ -2,7 +2,7 @@ import React, { cloneElement } from 'react';
|
|
|
2
2
|
|
|
3
3
|
const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll = false, keepMounted = false, dataTestId, onChange, breakpoint = 1024, tagShape, tagView, }) => {
|
|
4
4
|
const tabsArray = React.Children.toArray(children);
|
|
5
|
-
const titles = tabsArray.map(({ props: { title, id, rightAddons, disabled, hidden, toggleClassName, dataTestId: toggleTestId,
|
|
5
|
+
const titles = tabsArray.map(({ props: { title, id, rightAddons, disabled, hidden, toggleClassName, dataTestId: toggleTestId, toggleRef, }, }) => ({
|
|
6
6
|
title,
|
|
7
7
|
id,
|
|
8
8
|
disabled,
|
|
@@ -10,7 +10,7 @@ const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaV
|
|
|
10
10
|
hidden,
|
|
11
11
|
toggleClassName,
|
|
12
12
|
dataTestId: toggleTestId,
|
|
13
|
-
|
|
13
|
+
toggleRef,
|
|
14
14
|
}));
|
|
15
15
|
const tabs = tabsArray.filter((tab) => tab.props.id === selectedId || tab.props.keepMounted || keepMounted);
|
|
16
16
|
return (React.createElement("div", { className: className },
|
|
@@ -15,9 +15,9 @@ import 'lodash.debounce';
|
|
|
15
15
|
import '../../../../icon-button/modern';
|
|
16
16
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
|
-
import '../../index.module-
|
|
18
|
+
import '../../index.module-9b682de1.js';
|
|
19
19
|
import '../../../../tag/modern/mobile';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-461a89ca.js';
|
|
21
21
|
import '../primary-tablist/Component.js';
|
|
22
22
|
import '../../hooks/use-tabs.js';
|
|
23
23
|
import '../scroll-controls/utils.js';
|
|
@@ -16,10 +16,10 @@ import 'lodash.debounce';
|
|
|
16
16
|
import '../../../../icon-button/modern';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-9b682de1.js';
|
|
20
20
|
import '../primary-tablist/Component.mobile.js';
|
|
21
21
|
import '../../../../tag/modern/desktop';
|
|
22
|
-
import '../../index.module-
|
|
22
|
+
import '../../index.module-461a89ca.js';
|
|
23
23
|
import '../secondary-tablist/Component.mobile.js';
|
|
24
24
|
import '../../../../tag/modern/mobile';
|
|
25
25
|
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 };
|
|
@@ -16,9 +16,9 @@ import 'lodash.debounce';
|
|
|
16
16
|
import '../../../icon-button/modern';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
-
import '../index.module-
|
|
19
|
+
import '../index.module-9b682de1.js';
|
|
20
20
|
import '../../../tag/modern/desktop';
|
|
21
|
-
import '../index.module-
|
|
21
|
+
import '../index.module-461a89ca.js';
|
|
22
22
|
import '../components/primary-tablist/Component.js';
|
|
23
23
|
import '../hooks/use-tabs.js';
|
|
24
24
|
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/modern/index.js
CHANGED
|
@@ -17,10 +17,10 @@ import 'lodash.debounce';
|
|
|
17
17
|
import '../../icon-button/modern';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
-
import './index.module-
|
|
20
|
+
import './index.module-9b682de1.js';
|
|
21
21
|
import './components/primary-tablist/Component.mobile.js';
|
|
22
22
|
import '../../tag/modern/desktop';
|
|
23
|
-
import './index.module-
|
|
23
|
+
import './index.module-461a89ca.js';
|
|
24
24
|
import './components/secondary-tablist/Component.mobile.js';
|
|
25
25
|
import '../../tag/modern/mobile';
|
|
26
26
|
import './components/primary-tablist/Component.desktop.js';
|
|
@@ -16,9 +16,9 @@ import 'lodash.debounce';
|
|
|
16
16
|
import '../../../icon-button/modern';
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
18
18
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
19
|
-
import '../index.module-
|
|
19
|
+
import '../index.module-9b682de1.js';
|
|
20
20
|
import '../../../tag/modern/mobile';
|
|
21
|
-
import '../index.module-
|
|
21
|
+
import '../index.module-461a89ca.js';
|
|
22
22
|
import '../components/primary-tablist/Component.js';
|
|
23
23
|
import '../hooks/use-tabs.js';
|
|
24
24
|
import '../components/scroll-controls/utils.js';
|
package/tabs/modern/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/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
|
/**
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
.
|
|
1
|
+
.card-image__cardImage_1k8yn {
|
|
2
|
+
background: #e7e8ea;
|
|
3
|
+
} .card-image__loaded_1k8yn {
|
|
4
|
+
background: transparent
|
|
5
|
+
}.badge__component_p8duf.badge__background-accent_p8duf {
|
|
2
6
|
background-color: #f83a2a;
|
|
3
7
|
color: #fff;
|
|
4
8
|
} .badge__component_p8duf.badge__background-specialbg-secondary-transparent_p8duf {
|
|
@@ -58,10 +62,6 @@
|
|
|
58
62
|
background-color: #fff;
|
|
59
63
|
} .badge__dot_p8duf.badge__outlineCount_p8duf {
|
|
60
64
|
border: 1px solid #0e0e0e;
|
|
61
|
-
}.card-image__cardImage_1k8yn {
|
|
62
|
-
background: #e7e8ea;
|
|
63
|
-
} .card-image__loaded_1k8yn {
|
|
64
|
-
background: transparent
|
|
65
65
|
}.backdrop__backdrop_14bwb {
|
|
66
66
|
-webkit-tap-highlight-color: transparent;
|
|
67
67
|
} .backdrop__appear_14bwb,
|
|
@@ -168,15 +168,7 @@
|
|
|
168
168
|
background: #fff;
|
|
169
169
|
} .hatching-progress-bar__accent_1wgx6 {
|
|
170
170
|
background: #f83a2a;
|
|
171
|
-
}.
|
|
172
|
-
color: rgba(238, 238, 251, 0.55)
|
|
173
|
-
} .icon-view__bg_177z0 {
|
|
174
|
-
fill: #1c1c1e;
|
|
175
|
-
} .icon-view__border_177z0 {
|
|
176
|
-
stroke: rgba(225, 225, 248, 0.09);
|
|
177
|
-
fill: transparent;
|
|
178
|
-
} .icon-view__children_177z0 {
|
|
179
|
-
}.indicator__component_1s4fn {
|
|
171
|
+
}.indicator__component_1s4fn {
|
|
180
172
|
color: #fff;
|
|
181
173
|
background-color: #f83a2a;
|
|
182
174
|
} .indicator__red_1s4fn {
|
|
@@ -194,7 +186,15 @@
|
|
|
194
186
|
color: #fff
|
|
195
187
|
} .indicator__grey_1s4fn.indicator__border_1s4fn {
|
|
196
188
|
outline: 2px solid #0e0e0e;
|
|
197
|
-
}
|
|
189
|
+
}.icon-view__component_177z0 {
|
|
190
|
+
color: rgba(238, 238, 251, 0.55)
|
|
191
|
+
} .icon-view__bg_177z0 {
|
|
192
|
+
fill: #1c1c1e;
|
|
193
|
+
} .icon-view__border_177z0 {
|
|
194
|
+
stroke: rgba(225, 225, 248, 0.09);
|
|
195
|
+
fill: transparent;
|
|
196
|
+
} .icon-view__children_177z0 {
|
|
197
|
+
}@keyframes loader__blink_19mvr {
|
|
198
198
|
}.link__primary_1gtu8 {
|
|
199
199
|
color: #fff;
|
|
200
200
|
border-bottom-color: #fff
|
|
@@ -264,7 +264,17 @@
|
|
|
264
264
|
background: #fff;
|
|
265
265
|
} .progress-bar__filled_uf3eh.progress-bar__accent_uf3eh {
|
|
266
266
|
background: #f83a2a;
|
|
267
|
-
}.
|
|
267
|
+
}.scrollbar__component_1cqd8 .scrollbar:before {
|
|
268
|
+
background-color: rgba(228, 228, 251, 0.28);
|
|
269
|
+
} .scrollbar__component_1cqd8.dragging .track .scrollbar.visible:before {
|
|
270
|
+
background-color: rgba(238, 238, 254, 0.46);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.scrollbar__component_vrncm .scrollbar:before {
|
|
274
|
+
background-color: rgba(9, 12, 37, 0.28);
|
|
275
|
+
} .scrollbar__component_vrncm.dragging .track .scrollbar.visible:before {
|
|
276
|
+
background-color: rgba(4, 4, 21, 0.47);
|
|
277
|
+
}.skeleton__component_j6u5v {
|
|
268
278
|
color: transparent;
|
|
269
279
|
background: rgba(214, 214, 229, 0.07);
|
|
270
280
|
} .skeleton__component_j6u5v:before {
|
|
@@ -286,17 +296,7 @@
|
|
|
286
296
|
100% {
|
|
287
297
|
background: rgb(198, 205, 214);
|
|
288
298
|
}
|
|
289
|
-
}.
|
|
290
|
-
background-color: rgba(228, 228, 251, 0.28);
|
|
291
|
-
} .scrollbar__component_1cqd8.dragging .track .scrollbar.visible:before {
|
|
292
|
-
background-color: rgba(238, 238, 254, 0.46);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.scrollbar__component_vrncm .scrollbar:before {
|
|
296
|
-
background-color: rgba(9, 12, 37, 0.28);
|
|
297
|
-
} .scrollbar__component_vrncm.dragging .track .scrollbar.visible:before {
|
|
298
|
-
background-color: rgba(4, 4, 21, 0.47);
|
|
299
|
-
}.segmented-control__wrapper_1kily {
|
|
299
|
+
}.segmented-control__wrapper_1kily {
|
|
300
300
|
background-color: rgba(225, 225, 248, 0.09);
|
|
301
301
|
} .segmented-control__segment_1kily.segmented-control__selected_1kily {
|
|
302
302
|
color: #fff;
|