@alfalab/core-components-tabs 8.7.0 → 8.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/primary-tablist/Component.collapsible.js +2 -2
- package/components/primary-tablist/Component.desktop.js +1 -1
- package/components/primary-tablist/Component.mobile.js +2 -2
- package/components/primary-tablist/index.css +133 -133
- package/components/primary-tablist/mobile.css +394 -368
- package/components/scroll-controls/Component.js +1 -1
- package/components/scroll-controls/index.css +12 -12
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +6 -6
- package/components/secondary-tablist/Component.desktop.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +2 -2
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +186 -160
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/title/Component.d.ts +1 -1
- package/cssm/components/primary-tablist/Component.collapsible.js +1 -1
- package/cssm/components/primary-tablist/index.module.css +1 -1
- package/cssm/components/title/Component.d.ts +1 -1
- package/cssm/hooks/use-tablist-titles.d.ts +1 -1
- package/cssm/typings.d.ts +2 -2
- package/esm/components/primary-tablist/Component.collapsible.js +2 -2
- package/esm/components/primary-tablist/Component.desktop.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +2 -2
- package/esm/components/primary-tablist/index.css +133 -133
- package/esm/components/primary-tablist/mobile.css +394 -368
- package/esm/components/scroll-controls/Component.js +1 -1
- package/esm/components/scroll-controls/index.css +12 -12
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +6 -6
- package/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +2 -2
- package/esm/components/secondary-tablist/index.css +11 -11
- package/esm/components/secondary-tablist/mobile.css +186 -160
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/title/Component.d.ts +1 -1
- package/esm/hooks/use-tablist-titles.d.ts +1 -1
- package/esm/index.module-7f53615c.js +4 -0
- package/esm/index.module-f25eb728.js +4 -0
- package/esm/typings.d.ts +2 -2
- package/hooks/use-tablist-titles.d.ts +1 -1
- package/index.module-1eb43fb9.js +6 -0
- package/index.module-c88e5a5a.js +6 -0
- package/modern/components/primary-tablist/Component.collapsible.js +2 -2
- package/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/modern/components/primary-tablist/index.css +133 -133
- package/modern/components/primary-tablist/mobile.css +394 -368
- package/modern/components/scroll-controls/Component.js +1 -1
- package/modern/components/scroll-controls/index.css +12 -12
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +6 -6
- package/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +186 -160
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/title/Component.d.ts +1 -1
- package/modern/hooks/use-tablist-titles.d.ts +1 -1
- package/modern/index.module-8121bd57.js +4 -0
- package/modern/index.module-c6da7192.js +4 -0
- package/modern/typings.d.ts +2 -2
- package/package.json +3 -3
- package/src/components/primary-tablist/Component.collapsible.tsx +1 -1
- package/src/components/title/Component.tsx +4 -1
- package/src/typings.ts +2 -2
- package/typings.d.ts +2 -2
- package/esm/index.module-522924c0.js +0 -4
- package/esm/index.module-6e695481.js +0 -4
- package/index.module-bc99adbf.js +0 -6
- package/index.module-d225f504.js +0 -6
- package/modern/index.module-7c0d4d6d.js +0 -4
- package/modern/index.module-f6dfd116.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Styles, TabListTitle } from "../../typings";
|
|
4
|
-
declare const Title: React.ForwardRefExoticComponent<TabListTitle & Styles & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "id"> & {
|
|
4
|
+
declare const Title: React.ForwardRefExoticComponent<TabListTitle & Styles & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "title" | "id"> & {
|
|
5
5
|
focused?: boolean | undefined;
|
|
6
6
|
isOption?: boolean | undefined;
|
|
7
7
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -41,7 +41,7 @@ var CollapsiblePrimaryTabList = function (_a) {
|
|
|
41
41
|
var toggleRef = _a.toggleRef, title = tslib.__rest(_a, ["toggleRef"]);
|
|
42
42
|
if (title.collapsed) {
|
|
43
43
|
options.push({
|
|
44
|
-
key: title.
|
|
44
|
+
key: String(title.id),
|
|
45
45
|
value: title.id,
|
|
46
46
|
content: (React__default.default.createElement(components_title_Component.Title, tslib.__assign({}, title, { ref: toggleRef, styles: styles__default.default, isOption: true }))),
|
|
47
47
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--color-light-accent-primary: #ef3124;
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
5
5
|
--color-light-neutral-translucent-500: rgba(9, 12, 37, 0.28);
|
|
6
|
-
--color-light-text-primary:
|
|
6
|
+
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
7
7
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55);
|
|
8
8
|
--color-light-text-tertiary: rgba(5, 8, 29, 0.38); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
9
9
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Styles, TabListTitle } from "../../typings";
|
|
4
|
-
declare const Title: React.ForwardRefExoticComponent<TabListTitle & Styles & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "id"> & {
|
|
4
|
+
declare const Title: React.ForwardRefExoticComponent<TabListTitle & Styles & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "title" | "id"> & {
|
|
5
5
|
focused?: boolean | undefined;
|
|
6
6
|
isOption?: boolean | undefined;
|
|
7
7
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -6,7 +6,7 @@ declare const useTablistTitles: ({ titles, selectedId, collapsedTabsIds, breakpo
|
|
|
6
6
|
tablistTitles: {
|
|
7
7
|
collapsed: boolean;
|
|
8
8
|
selected: boolean;
|
|
9
|
-
title: string;
|
|
9
|
+
title: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactFragment | import("react").ReactPortal;
|
|
10
10
|
id: import("../typings").SelectedId;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
rightAddons?: import("react").ReactNode;
|
package/cssm/typings.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ type TabProps = {
|
|
|
95
95
|
/**
|
|
96
96
|
* Заголовок таба
|
|
97
97
|
*/
|
|
98
|
-
title:
|
|
98
|
+
title: NonNullable<ReactNode>;
|
|
99
99
|
/**
|
|
100
100
|
* Дополнительный класс для контейнера содержимого таба
|
|
101
101
|
*/
|
|
@@ -134,7 +134,7 @@ type TabProps = {
|
|
|
134
134
|
toggleRef?: Ref<HTMLDivElement>;
|
|
135
135
|
};
|
|
136
136
|
type TabListTitle = {
|
|
137
|
-
title:
|
|
137
|
+
title: NonNullable<ReactNode>;
|
|
138
138
|
id: SelectedId;
|
|
139
139
|
disabled?: boolean;
|
|
140
140
|
rightAddons?: ReactNode;
|
|
@@ -7,7 +7,7 @@ import { PickerButtonDesktop } from '@alfalab/core-components-picker-button/esm/
|
|
|
7
7
|
import { useTablistTitles } from '../../hooks/use-tablist-titles.js';
|
|
8
8
|
import { createSyntheticMouseEvent } from '../../synthetic-events.js';
|
|
9
9
|
import { Title } from '../title/Component.js';
|
|
10
|
-
import { s as styles } from '../../index.module-
|
|
10
|
+
import { s as styles } from '../../index.module-7f53615c.js';
|
|
11
11
|
|
|
12
12
|
var CollapsiblePrimaryTabList = function (_a) {
|
|
13
13
|
var _b = _a.size, size = _b === void 0 ? 'm' : _b, className = _a.className, containerClassName = _a.containerClassName, _c = _a.titles, titles = _c === void 0 ? [] : _c, _d = _a.selectedId, selectedId = _d === void 0 ? titles.length ? titles[0].id : undefined : _d, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, onChange = _a.onChange, dataTestId = _a.dataTestId, _e = _a.breakpoint, breakpoint = _e === void 0 ? 1024 : _e, defaultMatchMediaValue = _a.defaultMatchMediaValue, textStyle = _a.textStyle;
|
|
@@ -31,7 +31,7 @@ var CollapsiblePrimaryTabList = function (_a) {
|
|
|
31
31
|
var toggleRef = _a.toggleRef, title = __rest(_a, ["toggleRef"]);
|
|
32
32
|
if (title.collapsed) {
|
|
33
33
|
options.push({
|
|
34
|
-
key: title.
|
|
34
|
+
key: String(title.id),
|
|
35
35
|
value: title.id,
|
|
36
36
|
content: (React.createElement(Title, __assign({}, title, { ref: toggleRef, styles: styles, isOption: true }))),
|
|
37
37
|
});
|
|
@@ -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-7f53615c.js';
|
|
5
5
|
|
|
6
6
|
var PrimaryTabListDesktop = function (_a) {
|
|
7
7
|
var _b = _a.size, size = _b === void 0 ? 'm' : _b, restProps = __rest(_a, ["size"]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
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-7f53615c.js';
|
|
5
5
|
|
|
6
|
-
var mobileStyles = {"title":"
|
|
6
|
+
var mobileStyles = {"title":"tabs__title_i1462 tabs__title_15a3z","mobile":"tabs__mobile_i1462","paragraph-primary-large":"tabs__paragraph-primary-large_i1462","paragraph-primary-medium":"tabs__paragraph-primary-medium_i1462","paragraph-primary-small":"tabs__paragraph-primary-small_i1462","action-primary-large":"tabs__action-primary-large_i1462","action-primary-medium":"tabs__action-primary-medium_i1462","action-primary-small":"tabs__action-primary-small_i1462","accent-primary-large":"tabs__accent-primary-large_i1462","accent-primary-medium":"tabs__accent-primary-medium_i1462","accent-primary-small":"tabs__accent-primary-small_i1462","pickerWrapper":"tabs__pickerWrapper_i1462","option":"tabs__option_i1462","scrollControls":"tabs__scrollControls_i1462","headline-system-xlarge":"tabs__headline-system-xlarge_i1462","headline-system-large":"tabs__headline-system-large_i1462","headline-system-medium":"tabs__headline-system-medium_i1462","headline-system-small":"tabs__headline-system-small_i1462","headline-system-xsmall":"tabs__headline-system-xsmall_i1462","headline-xlarge":"tabs__headline-xlarge_i1462","headline-large":"tabs__headline-large_i1462","headline-medium":"tabs__headline-medium_i1462","headline-small":"tabs__headline-small_i1462","headline-xsmall":"tabs__headline-xsmall_i1462"};
|
|
7
7
|
require('./mobile.css')
|
|
8
8
|
|
|
9
9
|
var styles = __assign(__assign({}, styles$1), mobileStyles);
|