@alfalab/core-components-tabs 6.5.0 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/components/primary-tablist/Component.d.ts +1 -9
- package/components/primary-tablist/Component.desktop.js +2 -2
- package/components/primary-tablist/Component.js +1 -1
- package/components/primary-tablist/Component.mobile.js +3 -3
- package/components/primary-tablist/Component.responsive.js +2 -2
- package/components/primary-tablist/index.css +20 -20
- package/components/primary-tablist/mobile.css +23 -23
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +5 -5
- package/components/secondary-tablist/Component.d.ts +1 -9
- package/components/secondary-tablist/Component.desktop.js +2 -2
- package/components/secondary-tablist/Component.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +3 -3
- package/components/secondary-tablist/Component.responsive.js +2 -2
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +13 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +3 -3
- package/components/tabs/Component.mobile.js +3 -3
- package/components/tabs/Component.responsive.js +3 -3
- package/cssm/components/primary-tablist/Component.d.ts +1 -9
- package/cssm/components/secondary-tablist/Component.d.ts +1 -9
- package/cssm/typings.d.ts +11 -10
- package/desktop.js +3 -3
- package/esm/components/primary-tablist/Component.d.ts +1 -9
- package/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/esm/components/primary-tablist/Component.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/esm/components/primary-tablist/index.css +20 -20
- package/esm/components/primary-tablist/mobile.css +23 -23
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +5 -5
- package/esm/components/secondary-tablist/Component.d.ts +1 -9
- package/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/esm/components/secondary-tablist/Component.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +3 -3
- package/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/esm/components/secondary-tablist/index.css +11 -11
- package/esm/components/secondary-tablist/mobile.css +13 -13
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.desktop.js +3 -3
- package/esm/components/tabs/Component.mobile.js +3 -3
- package/esm/components/tabs/Component.responsive.js +3 -3
- package/esm/desktop.js +3 -3
- package/esm/index.js +3 -3
- package/esm/index.module-4ce3b0dd.js +4 -0
- package/esm/index.module-71ecf1b8.js +4 -0
- package/esm/mobile.js +3 -3
- package/esm/responsive.js +3 -3
- package/esm/{tslib.es6-b50bf201.d.ts → tslib.es6-656bff1b.d.ts} +0 -0
- package/esm/{tslib.es6-b50bf201.js → tslib.es6-656bff1b.js} +0 -0
- package/esm/typings.d.ts +11 -10
- package/index.js +3 -3
- package/index.module-0ac56b69.js +6 -0
- package/index.module-c97a2b1a.js +6 -0
- package/mobile.js +3 -3
- package/modern/components/primary-tablist/Component.d.ts +1 -9
- 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/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +20 -20
- package/modern/components/primary-tablist/mobile.css +23 -23
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +5 -5
- package/modern/components/secondary-tablist/Component.d.ts +1 -9
- package/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +13 -13
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.desktop.js +2 -2
- package/modern/components/tabs/Component.mobile.js +2 -2
- package/modern/components/tabs/Component.responsive.js +2 -2
- package/modern/desktop.js +2 -2
- package/modern/index.js +2 -2
- package/modern/index.module-4ce3b0dd.js +4 -0
- package/modern/index.module-71ecf1b8.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/modern/typings.d.ts +11 -10
- package/package.json +6 -6
- package/responsive.js +3 -3
- package/{tslib.es6-996824db.d.ts → tslib.es6-5331b0cd.d.ts} +0 -0
- package/{tslib.es6-996824db.js → tslib.es6-5331b0cd.js} +0 -0
- package/typings.d.ts +11 -10
- package/esm/index.module-4bf6c045.js +0 -4
- package/esm/index.module-c15e7c79.js +0 -4
- package/index.module-960245fb.js +0 -6
- package/index.module-d67ef5e7.js +0 -6
- package/modern/index.module-4bf6c045.js +0 -4
- package/modern/index.module-c15e7c79.js +0 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-5331b0cd.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('@alfalab/core-components-keyboard-focusable');
|
|
8
8
|
require('classnames');
|
|
@@ -10,10 +10,10 @@ require('compute-scroll-into-view');
|
|
|
10
10
|
require('../scrollable-container/Component.js');
|
|
11
11
|
require('../../useTabs.js');
|
|
12
12
|
require('../primary-tablist/Component.js');
|
|
13
|
-
require('../../index.module-
|
|
13
|
+
require('../../index.module-0ac56b69.js');
|
|
14
14
|
require('@alfalab/core-components-tag');
|
|
15
15
|
require('../secondary-tablist/Component.js');
|
|
16
|
-
require('../../index.module-
|
|
16
|
+
require('../../index.module-c97a2b1a.js');
|
|
17
17
|
var components_tabs_Component = require('./Component.js');
|
|
18
18
|
var components_primaryTablist_Component_mobile = require('../primary-tablist/Component.mobile.js');
|
|
19
19
|
var components_secondaryTablist_Component_mobile = require('../secondary-tablist/Component.mobile.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-5331b0cd.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
require('@alfalab/core-components-keyboard-focusable');
|
|
8
8
|
require('classnames');
|
|
@@ -10,11 +10,11 @@ require('compute-scroll-into-view');
|
|
|
10
10
|
require('../scrollable-container/Component.js');
|
|
11
11
|
require('../../useTabs.js');
|
|
12
12
|
require('../primary-tablist/Component.js');
|
|
13
|
-
require('../../index.module-
|
|
13
|
+
require('../../index.module-0ac56b69.js');
|
|
14
14
|
require('../primary-tablist/Component.desktop.js');
|
|
15
15
|
require('@alfalab/core-components-tag');
|
|
16
16
|
require('../secondary-tablist/Component.js');
|
|
17
|
-
require('../../index.module-
|
|
17
|
+
require('../../index.module-c97a2b1a.js');
|
|
18
18
|
require('../secondary-tablist/Component.desktop.js');
|
|
19
19
|
var components_tabs_Component = require('./Component.js');
|
|
20
20
|
require('@alfalab/hooks');
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { Styles } from "../../typings";
|
|
4
3
|
declare const PrimaryTabList: ({ size, styles, className, containerClassName, titles, selectedId, scrollable, fullWidthScroll, onChange, dataTestId, }: Pick<import("../../typings").TabsProps, "className" | "onChange" | "size" | "dataTestId" | "containerClassName" | "defaultMatch" | "selectedId" | "scrollable" | "fullWidthScroll"> & {
|
|
5
|
-
titles?:
|
|
6
|
-
title: string;
|
|
7
|
-
id: React.ReactText;
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
rightAddons?: React.ReactNode;
|
|
10
|
-
hidden?: boolean | undefined;
|
|
11
|
-
toggleClassName?: string | undefined;
|
|
12
|
-
}[] | undefined;
|
|
4
|
+
titles?: import("../../typings").TabListTitle[] | undefined;
|
|
13
5
|
} & Styles) => JSX.Element;
|
|
14
6
|
export { PrimaryTabList };
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { Styles } from "../../typings";
|
|
4
3
|
declare const SecondaryTabList: ({ styles, className, containerClassName, size, titles, selectedId, scrollable, fullWidthScroll, tagSize, onChange, dataTestId, }: Pick<import("../../typings").TabsProps, "className" | "onChange" | "size" | "dataTestId" | "containerClassName" | "defaultMatch" | "selectedId" | "scrollable" | "fullWidthScroll"> & {
|
|
5
|
-
titles?:
|
|
6
|
-
title: string;
|
|
7
|
-
id: React.ReactText;
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
rightAddons?: React.ReactNode;
|
|
10
|
-
hidden?: boolean | undefined;
|
|
11
|
-
toggleClassName?: string | undefined;
|
|
12
|
-
}[] | undefined;
|
|
4
|
+
titles?: import("../../typings").TabListTitle[] | undefined;
|
|
13
5
|
} & {
|
|
14
6
|
tagSize?: "xxs" | "xs" | "s" | "m" | "l" | "xl" | undefined;
|
|
15
7
|
} & Styles) => JSX.Element;
|
package/cssm/typings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, ReactElement, ReactNode } from 'react';
|
|
1
|
+
import { MouseEvent, FC, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { TagProps } from "@alfalab/core-components-tag";
|
|
3
3
|
type SelectedId = string | number;
|
|
4
4
|
type TabsMatchMedia = 'desktop' | 'mobile';
|
|
@@ -104,18 +104,19 @@ type TabProps = {
|
|
|
104
104
|
*/
|
|
105
105
|
dataTestId?: string;
|
|
106
106
|
};
|
|
107
|
+
type TabListTitle = {
|
|
108
|
+
title: string;
|
|
109
|
+
id: SelectedId;
|
|
110
|
+
disabled?: boolean;
|
|
111
|
+
rightAddons?: ReactNode;
|
|
112
|
+
hidden?: boolean;
|
|
113
|
+
toggleClassName?: string;
|
|
114
|
+
};
|
|
107
115
|
type TabListProps = Pick<TabsProps, 'className' | 'containerClassName' | 'size' | 'defaultMatch' | 'selectedId' | 'scrollable' | 'onChange' | 'dataTestId' | 'fullWidthScroll'> & {
|
|
108
116
|
/**
|
|
109
117
|
* Заголовки табов
|
|
110
118
|
*/
|
|
111
|
-
titles?:
|
|
112
|
-
title: string;
|
|
113
|
-
id: SelectedId;
|
|
114
|
-
disabled?: boolean;
|
|
115
|
-
rightAddons?: ReactNode;
|
|
116
|
-
hidden?: boolean;
|
|
117
|
-
toggleClassName?: string;
|
|
118
|
-
}>;
|
|
119
|
+
titles?: TabListTitle[];
|
|
119
120
|
};
|
|
120
121
|
type SecondaryTabListProps = TabListProps & {
|
|
121
122
|
tagSize?: TagProps['size'];
|
|
@@ -126,4 +127,4 @@ type Styles = {
|
|
|
126
127
|
[key: string]: string;
|
|
127
128
|
};
|
|
128
129
|
};
|
|
129
|
-
export { SelectedId, TabsMatchMedia, TabsProps, TabProps, TabListProps, SecondaryTabListProps, UseTabsProps, Styles };
|
|
130
|
+
export { SelectedId, TabsMatchMedia, TabsProps, TabProps, TabListTitle, TabListProps, SecondaryTabListProps, UseTabsProps, Styles };
|
package/desktop.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-5331b0cd.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('@alfalab/core-components-keyboard-focusable');
|
|
8
8
|
require('classnames');
|
|
@@ -10,11 +10,11 @@ require('compute-scroll-into-view');
|
|
|
10
10
|
var components_scrollableContainer_Component = require('./components/scrollable-container/Component.js');
|
|
11
11
|
var useTabs = require('./useTabs.js');
|
|
12
12
|
require('./components/primary-tablist/Component.js');
|
|
13
|
-
require('./index.module-
|
|
13
|
+
require('./index.module-0ac56b69.js');
|
|
14
14
|
var components_primaryTablist_Component_desktop = require('./components/primary-tablist/Component.desktop.js');
|
|
15
15
|
require('@alfalab/core-components-tag');
|
|
16
16
|
require('./components/secondary-tablist/Component.js');
|
|
17
|
-
require('./index.module-
|
|
17
|
+
require('./index.module-c97a2b1a.js');
|
|
18
18
|
var components_secondaryTablist_Component_desktop = require('./components/secondary-tablist/Component.desktop.js');
|
|
19
19
|
var components_tab_Component = require('./components/tab/Component.js');
|
|
20
20
|
require('./components/tabs/Component.js');
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { Styles } from "../../typings";
|
|
4
3
|
declare const PrimaryTabList: ({ size, styles, className, containerClassName, titles, selectedId, scrollable, fullWidthScroll, onChange, dataTestId, }: Pick<import("../../typings").TabsProps, "className" | "onChange" | "size" | "dataTestId" | "containerClassName" | "defaultMatch" | "selectedId" | "scrollable" | "fullWidthScroll"> & {
|
|
5
|
-
titles?:
|
|
6
|
-
title: string;
|
|
7
|
-
id: React.ReactText;
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
rightAddons?: React.ReactNode;
|
|
10
|
-
hidden?: boolean | undefined;
|
|
11
|
-
toggleClassName?: string | undefined;
|
|
12
|
-
}[] | undefined;
|
|
4
|
+
titles?: import("../../typings").TabListTitle[] | undefined;
|
|
13
5
|
} & Styles) => JSX.Element;
|
|
14
6
|
export { PrimaryTabList };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-656bff1b.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,7 +6,7 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
import '../scrollable-container/Component.js';
|
|
7
7
|
import '../../useTabs.js';
|
|
8
8
|
import { PrimaryTabList } from './Component.js';
|
|
9
|
-
import { c as commonStyles } from '../../index.module-
|
|
9
|
+
import { c as commonStyles } from '../../index.module-71ecf1b8.js';
|
|
10
10
|
|
|
11
11
|
var PrimaryTabListDesktop = function (_a) {
|
|
12
12
|
var _b = _a.size, size = _b === void 0 ? 'm' : _b, restProps = __rest(_a, ["size"]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../../tslib.es6-656bff1b.js';
|
|
2
2
|
import React, { useRef, useEffect } from 'react';
|
|
3
3
|
import { KeyboardFocusable } from '@alfalab/core-components-keyboard-focusable/esm';
|
|
4
4
|
import cn from 'classnames';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, _ as __rest } from '../../tslib.es6-656bff1b.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
4
4
|
import cn from 'classnames';
|
|
@@ -6,9 +6,9 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
import '../scrollable-container/Component.js';
|
|
7
7
|
import '../../useTabs.js';
|
|
8
8
|
import { PrimaryTabList } from './Component.js';
|
|
9
|
-
import { c as commonStyles } from '../../index.module-
|
|
9
|
+
import { c as commonStyles } from '../../index.module-71ecf1b8.js';
|
|
10
10
|
|
|
11
|
-
var mobileStyles = {"title":"
|
|
11
|
+
var mobileStyles = {"title":"tabs__title_vbc6b tabs__title_yvz75","mobile":"tabs__mobile_vbc6b"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
14
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-656bff1b.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
4
4
|
import 'classnames';
|
|
@@ -6,7 +6,7 @@ import 'compute-scroll-into-view';
|
|
|
6
6
|
import '../scrollable-container/Component.js';
|
|
7
7
|
import '../../useTabs.js';
|
|
8
8
|
import './Component.js';
|
|
9
|
-
import '../../index.module-
|
|
9
|
+
import '../../index.module-71ecf1b8.js';
|
|
10
10
|
import { PrimaryTabListDesktop } from './Component.desktop.js';
|
|
11
11
|
import { useMedia } from '@alfalab/hooks';
|
|
12
12
|
import { PrimaryTabListMobile } from './Component.mobile.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xxx4f */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-accent: #ef3124;
|
|
4
4
|
--color-light-border-link: #007aff;
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
|
|
83
83
|
/* size xl */
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.tabs__component_yvz75 {
|
|
86
86
|
position: relative;
|
|
87
87
|
display: inline-flex;
|
|
88
88
|
min-width: 100%
|
|
89
89
|
}
|
|
90
|
-
.
|
|
90
|
+
.tabs__component_yvz75:before {
|
|
91
91
|
content: '';
|
|
92
92
|
display: block;
|
|
93
93
|
position: absolute;
|
|
@@ -96,15 +96,15 @@
|
|
|
96
96
|
width: 100%;
|
|
97
97
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
98
98
|
}
|
|
99
|
-
.
|
|
99
|
+
.tabs__fullWidthScroll_yvz75 {
|
|
100
100
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
101
101
|
margin: 0 var(--gap-m);
|
|
102
102
|
}
|
|
103
|
-
.
|
|
103
|
+
.tabs__container_yvz75 {
|
|
104
104
|
position: relative;
|
|
105
105
|
overflow: hidden;
|
|
106
106
|
}
|
|
107
|
-
.
|
|
107
|
+
.tabs__title_yvz75 {
|
|
108
108
|
display: flex;
|
|
109
109
|
align-items: center;
|
|
110
110
|
height: 100%;
|
|
@@ -122,22 +122,22 @@
|
|
|
122
122
|
cursor: pointer;
|
|
123
123
|
outline: none
|
|
124
124
|
}
|
|
125
|
-
.
|
|
125
|
+
.tabs__title_yvz75:not(.tabs__disabled_yvz75):hover {
|
|
126
126
|
color: var(--primary-tablist-hover-color);
|
|
127
127
|
}
|
|
128
|
-
.
|
|
128
|
+
.tabs__focused_yvz75 {
|
|
129
129
|
outline: 2px solid var(--focus-color);
|
|
130
130
|
outline-offset: 2px;
|
|
131
131
|
}
|
|
132
|
-
.
|
|
132
|
+
.tabs__selected_yvz75 {
|
|
133
133
|
cursor: default;
|
|
134
134
|
color: var(--primary-tablist-selected-color);
|
|
135
135
|
}
|
|
136
|
-
.
|
|
136
|
+
.tabs__disabled_yvz75 {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
color: var(--primary-tablist-disabled-color);
|
|
139
139
|
}
|
|
140
|
-
.
|
|
140
|
+
.tabs__line_yvz75 {
|
|
141
141
|
position: absolute;
|
|
142
142
|
height: 3px;
|
|
143
143
|
bottom: 0;
|
|
@@ -146,46 +146,46 @@
|
|
|
146
146
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
147
147
|
}
|
|
148
148
|
/* sizes */
|
|
149
|
-
.
|
|
149
|
+
.tabs__s_yvz75 .tabs__title_yvz75, .tabs__xs_yvz75 .tabs__title_yvz75, .tabs__xxs_yvz75 .tabs__title_yvz75 {
|
|
150
150
|
padding: var(--primary-tablist-s-padding);
|
|
151
151
|
font-size: var(--primary-tablist-s-font-size);
|
|
152
152
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
153
153
|
font-family: var(--primary-tablist-s-font-family);
|
|
154
154
|
line-height: 24px;
|
|
155
155
|
}
|
|
156
|
-
.
|
|
156
|
+
.tabs__s_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75, .tabs__xs_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75, .tabs__xxs_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75 {
|
|
157
157
|
margin-left: var(--primary-tablist-s-gaps);
|
|
158
158
|
}
|
|
159
|
-
.
|
|
159
|
+
.tabs__m_yvz75 .tabs__title_yvz75 {
|
|
160
160
|
padding: var(--primary-tablist-m-padding);
|
|
161
161
|
font-size: var(--primary-tablist-m-font-size);
|
|
162
162
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
163
163
|
font-family: var(--primary-tablist-m-font-family);
|
|
164
164
|
line-height: 24px;
|
|
165
165
|
}
|
|
166
|
-
.
|
|
166
|
+
.tabs__m_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75 {
|
|
167
167
|
margin-left: var(--primary-tablist-m-gaps);
|
|
168
168
|
}
|
|
169
|
-
.
|
|
169
|
+
.tabs__l_yvz75 .tabs__title_yvz75 {
|
|
170
170
|
padding: var(--primary-tablist-l-padding);
|
|
171
171
|
font-size: var(--primary-tablist-l-font-size);
|
|
172
172
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
173
173
|
font-family: var(--primary-tablist-l-font-family);
|
|
174
174
|
line-height: 24px;
|
|
175
175
|
}
|
|
176
|
-
.
|
|
176
|
+
.tabs__l_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75 {
|
|
177
177
|
margin-left: var(--primary-tablist-l-gaps);
|
|
178
178
|
}
|
|
179
|
-
.
|
|
179
|
+
.tabs__xl_yvz75 .tabs__title_yvz75 {
|
|
180
180
|
padding: var(--primary-tablist-xl-padding);
|
|
181
181
|
font-size: var(--primary-tablist-xl-font-size);
|
|
182
182
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
183
183
|
font-family: var(--primary-tablist-xl-font-family);
|
|
184
184
|
line-height: 32px;
|
|
185
185
|
}
|
|
186
|
-
.
|
|
186
|
+
.tabs__xl_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75 {
|
|
187
187
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
188
188
|
}
|
|
189
|
-
.
|
|
189
|
+
.tabs__rightAddons_yvz75 {
|
|
190
190
|
margin-left: var(--gap-xs);
|
|
191
191
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: dfkes */
|
|
2
2
|
:root {
|
|
3
3
|
}:root {
|
|
4
4
|
}:root {
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
/* size l */
|
|
87
87
|
|
|
88
88
|
/* size xl */
|
|
89
|
-
}.
|
|
89
|
+
}.tabs__component_yvz75 {
|
|
90
90
|
position: relative;
|
|
91
91
|
display: inline-flex;
|
|
92
92
|
min-width: 100%
|
|
93
|
-
}.
|
|
93
|
+
}.tabs__component_yvz75:before {
|
|
94
94
|
content: '';
|
|
95
95
|
display: block;
|
|
96
96
|
position: absolute;
|
|
@@ -98,13 +98,13 @@
|
|
|
98
98
|
height: 1px;
|
|
99
99
|
width: 100%;
|
|
100
100
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
101
|
-
}.
|
|
101
|
+
}.tabs__fullWidthScroll_yvz75 {
|
|
102
102
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
103
103
|
margin: 0 var(--gap-m);
|
|
104
|
-
}.
|
|
104
|
+
}.tabs__container_yvz75 {
|
|
105
105
|
position: relative;
|
|
106
106
|
overflow: hidden;
|
|
107
|
-
}.
|
|
107
|
+
}.tabs__title_yvz75 {
|
|
108
108
|
display: flex;
|
|
109
109
|
align-items: center;
|
|
110
110
|
height: 100%;
|
|
@@ -121,57 +121,57 @@
|
|
|
121
121
|
user-select: none;
|
|
122
122
|
cursor: pointer;
|
|
123
123
|
outline: none
|
|
124
|
-
}.
|
|
124
|
+
}.tabs__title_yvz75:not(.tabs__disabled_yvz75):hover {
|
|
125
125
|
color: var(--primary-tablist-hover-color);
|
|
126
|
-
}.
|
|
126
|
+
}.tabs__focused_yvz75 {
|
|
127
127
|
outline: 2px solid var(--focus-color);
|
|
128
128
|
outline-offset: 2px;
|
|
129
|
-
}.
|
|
129
|
+
}.tabs__selected_yvz75 {
|
|
130
130
|
cursor: default;
|
|
131
131
|
color: var(--primary-tablist-selected-color);
|
|
132
|
-
}.
|
|
132
|
+
}.tabs__disabled_yvz75 {
|
|
133
133
|
cursor: var(--disabled-cursor);
|
|
134
134
|
color: var(--primary-tablist-disabled-color);
|
|
135
|
-
}.
|
|
135
|
+
}.tabs__line_yvz75 {
|
|
136
136
|
position: absolute;
|
|
137
137
|
height: 3px;
|
|
138
138
|
bottom: 0;
|
|
139
139
|
left: 0;
|
|
140
140
|
background-color: var(--primary-tablist-line-color);
|
|
141
141
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
142
|
-
}/* sizes */.
|
|
142
|
+
}/* sizes */.tabs__s_yvz75 .tabs__title_yvz75, .tabs__xs_yvz75 .tabs__title_yvz75, .tabs__xxs_yvz75 .tabs__title_yvz75 {
|
|
143
143
|
padding: var(--primary-tablist-s-padding);
|
|
144
144
|
font-size: var(--primary-tablist-s-font-size);
|
|
145
145
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
146
146
|
font-family: var(--primary-tablist-s-font-family);
|
|
147
147
|
line-height: 24px;
|
|
148
|
-
}.
|
|
148
|
+
}.tabs__s_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75, .tabs__xs_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75, .tabs__xxs_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75 {
|
|
149
149
|
margin-left: var(--primary-tablist-s-gaps);
|
|
150
|
-
}.
|
|
150
|
+
}.tabs__m_yvz75 .tabs__title_yvz75 {
|
|
151
151
|
padding: var(--primary-tablist-m-padding);
|
|
152
152
|
font-size: var(--primary-tablist-m-font-size);
|
|
153
153
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
154
154
|
font-family: var(--primary-tablist-m-font-family);
|
|
155
155
|
line-height: 24px;
|
|
156
|
-
}.
|
|
156
|
+
}.tabs__m_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75 {
|
|
157
157
|
margin-left: var(--primary-tablist-m-gaps);
|
|
158
|
-
}.
|
|
158
|
+
}.tabs__l_yvz75 .tabs__title_yvz75 {
|
|
159
159
|
padding: var(--primary-tablist-l-padding);
|
|
160
160
|
font-size: var(--primary-tablist-l-font-size);
|
|
161
161
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
162
162
|
font-family: var(--primary-tablist-l-font-family);
|
|
163
163
|
line-height: 24px;
|
|
164
|
-
}.
|
|
164
|
+
}.tabs__l_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75 {
|
|
165
165
|
margin-left: var(--primary-tablist-l-gaps);
|
|
166
|
-
}.
|
|
166
|
+
}.tabs__xl_yvz75 .tabs__title_yvz75 {
|
|
167
167
|
padding: var(--primary-tablist-xl-padding);
|
|
168
168
|
font-size: var(--primary-tablist-xl-font-size);
|
|
169
169
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
170
170
|
font-family: var(--primary-tablist-xl-font-family);
|
|
171
171
|
line-height: 32px;
|
|
172
|
-
}.
|
|
172
|
+
}.tabs__xl_yvz75 .tabs__title_yvz75 + .tabs__title_yvz75 {
|
|
173
173
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
174
|
-
}.
|
|
174
|
+
}.tabs__rightAddons_yvz75 {
|
|
175
175
|
margin-left: var(--gap-xs);
|
|
176
176
|
}
|
|
177
177
|
:root {
|
|
@@ -966,15 +966,15 @@
|
|
|
966
966
|
/* size xl */
|
|
967
967
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
968
968
|
}
|
|
969
|
-
.
|
|
969
|
+
.tabs__title_vbc6b {
|
|
970
970
|
}
|
|
971
|
-
.
|
|
971
|
+
.tabs__mobile_vbc6b .tabs__title_vbc6b {
|
|
972
972
|
padding: var(--primary-tablist-mobile-padding);
|
|
973
973
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
974
974
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
975
975
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
976
976
|
line-height: 24px
|
|
977
977
|
}
|
|
978
|
-
.
|
|
978
|
+
.tabs__mobile_vbc6b .tabs__title_vbc6b + .tabs__title_vbc6b {
|
|
979
979
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
980
980
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import computeScrollIntoView from 'compute-scroll-into-view';
|
|
4
4
|
|
|
5
|
-
var styles = {"container":"
|
|
5
|
+
var styles = {"container":"tabs__container_5b3df","fullWidthScroll":"tabs__fullWidthScroll_5b3df"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 17x7a */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
|
|
37
37
|
/* size xl */
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.tabs__container_5b3df {
|
|
40
40
|
position: relative;
|
|
41
41
|
overflow-x: auto;
|
|
42
42
|
overflow-y: hidden;
|
|
43
43
|
scroll-behavior: smooth;
|
|
44
44
|
scrollbar-width: none
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.tabs__container_5b3df::-webkit-scrollbar {
|
|
47
47
|
display: none;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.tabs__container_5b3df > * {
|
|
50
50
|
flex-shrink: 0;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.tabs__fullWidthScroll_5b3df {
|
|
53
53
|
margin: 0 var(--gap-m-neg);
|
|
54
54
|
}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { Styles } from "../../typings";
|
|
4
3
|
declare const SecondaryTabList: ({ styles, className, containerClassName, size, titles, selectedId, scrollable, fullWidthScroll, tagSize, onChange, dataTestId, }: Pick<import("../../typings").TabsProps, "className" | "onChange" | "size" | "dataTestId" | "containerClassName" | "defaultMatch" | "selectedId" | "scrollable" | "fullWidthScroll"> & {
|
|
5
|
-
titles?:
|
|
6
|
-
title: string;
|
|
7
|
-
id: React.ReactText;
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
rightAddons?: React.ReactNode;
|
|
10
|
-
hidden?: boolean | undefined;
|
|
11
|
-
toggleClassName?: string | undefined;
|
|
12
|
-
}[] | undefined;
|
|
4
|
+
titles?: import("../../typings").TabListTitle[] | undefined;
|
|
13
5
|
} & {
|
|
14
6
|
tagSize?: "xxs" | "xs" | "s" | "m" | "l" | "xl" | undefined;
|
|
15
7
|
} & Styles) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-656bff1b.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'compute-scroll-into-view';
|
|
@@ -6,7 +6,7 @@ import '../scrollable-container/Component.js';
|
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import '@alfalab/core-components-tag/esm';
|
|
8
8
|
import { SecondaryTabList } from './Component.js';
|
|
9
|
-
import { c as commonStyles } from '../../index.module-
|
|
9
|
+
import { c as commonStyles } from '../../index.module-4ce3b0dd.js';
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { a as __assign, _ as __rest } from '../../tslib.es6-
|
|
1
|
+
import { a as __assign, _ as __rest } from '../../tslib.es6-656bff1b.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import 'compute-scroll-into-view';
|
|
@@ -6,9 +6,9 @@ import '../scrollable-container/Component.js';
|
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import '@alfalab/core-components-tag/esm';
|
|
8
8
|
import { SecondaryTabList } from './Component.js';
|
|
9
|
-
import { c as commonStyles } from '../../index.module-
|
|
9
|
+
import { c as commonStyles } from '../../index.module-4ce3b0dd.js';
|
|
10
10
|
|
|
11
|
-
var mobileStyles = {"title":"
|
|
11
|
+
var mobileStyles = {"title":"tabs__title_3pr9a tabs__title_1yv68","mobile":"tabs__mobile_3pr9a"};
|
|
12
12
|
require('./mobile.css')
|
|
13
13
|
|
|
14
14
|
var styles = __assign(__assign({}, commonStyles), mobileStyles);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-656bff1b.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'compute-scroll-into-view';
|
|
@@ -6,7 +6,7 @@ import '../scrollable-container/Component.js';
|
|
|
6
6
|
import '../../useTabs.js';
|
|
7
7
|
import '@alfalab/core-components-tag/esm';
|
|
8
8
|
import './Component.js';
|
|
9
|
-
import '../../index.module-
|
|
9
|
+
import '../../index.module-4ce3b0dd.js';
|
|
10
10
|
import { SecondaryTabListDesktop } from './Component.desktop.js';
|
|
11
11
|
import { useMedia } from '@alfalab/hooks';
|
|
12
12
|
import { SecondaryTabListMobile } from './Component.mobile.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: gkw54 */
|
|
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_1yv68 {
|
|
48
48
|
position: relative;
|
|
49
49
|
display: inline-flex;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.tabs__fullWidthScroll_1yv68 {
|
|
52
52
|
margin: 0 var(--gap-m);
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.tabs__container_1yv68 {
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.tabs__title_1yv68 {
|
|
58
58
|
white-space: nowrap;
|
|
59
59
|
}
|
|
60
60
|
/* sizes */
|
|
61
|
-
.
|
|
61
|
+
.tabs__xxs_1yv68 .tabs__title_1yv68 + .tabs__title_1yv68 {
|
|
62
62
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
63
63
|
}
|
|
64
|
-
.
|
|
64
|
+
.tabs__xs_1yv68 .tabs__title_1yv68 + .tabs__title_1yv68 {
|
|
65
65
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.tabs__s_1yv68 .tabs__title_1yv68 + .tabs__title_1yv68 {
|
|
68
68
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.tabs__m_1yv68 .tabs__title_1yv68 + .tabs__title_1yv68 {
|
|
71
71
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
72
72
|
}
|
|
73
|
-
.
|
|
73
|
+
.tabs__l_1yv68 .tabs__title_1yv68 + .tabs__title_1yv68 {
|
|
74
74
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
76
|
+
.tabs__xl_1yv68 .tabs__title_1yv68 + .tabs__title_1yv68 {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|