@alfalab/core-components-tabs 8.0.4 → 8.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component-8b2c2707.d.ts +1 -1
- package/{Component-5e1b8383.d.ts → Component-dd8ca091.d.ts} +1 -1
- package/collapsible.js +2 -2
- package/components/primary-tablist/Component.collapsible.desktop.js +1 -1
- package/components/primary-tablist/Component.collapsible.mobile.js +2 -2
- package/components/primary-tablist/Component.collapsible.responsive.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/Component.responsive.js +2 -2
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +32 -32
- package/components/scrollable-container/Component.js +2 -4
- package/components/scrollable-container/index.css +5 -5
- package/components/secondary-tablist/Component.desktop.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +2 -2
- package/components/secondary-tablist/Component.responsive.js +1 -1
- 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.collabsible.desktop.js +1 -1
- package/components/tabs/Component.collapsible.mobile.js +2 -2
- package/components/tabs/Component.collapsible.responsive.js +2 -2
- package/components/tabs/Component.desktop.js +2 -2
- package/components/tabs/Component.mobile.js +3 -3
- package/components/tabs/Component.responsive.js +3 -3
- package/cssm/Component-8b2c2707.d.ts +1 -1
- package/cssm/{Component-5e1b8383.d.ts → Component-dd8ca091.d.ts} +1 -1
- package/cssm/components/scrollable-container/Component.js +1 -3
- package/{esm/hook-9ea9e32c.d.ts → cssm/hook-8abfea97.d.ts} +28 -13
- package/cssm/shared-4cd3936b.d.ts +6 -6
- package/{esm/typings-5e1b8383.d.ts → cssm/typings-dd8ca091.d.ts} +23 -1
- package/{modern/utils-5e1b8383.d.ts → cssm/utils-dd8ca091.d.ts} +6 -3
- package/desktop.js +2 -2
- package/esm/Component-8b2c2707.d.ts +1 -1
- package/{modern/Component-5e1b8383.d.ts → esm/Component-dd8ca091.d.ts} +1 -1
- package/esm/collapsible.js +2 -2
- package/esm/components/primary-tablist/Component.collapsible.desktop.js +1 -1
- package/esm/components/primary-tablist/Component.collapsible.mobile.js +2 -2
- package/esm/components/primary-tablist/Component.collapsible.responsive.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/Component.responsive.js +2 -2
- package/esm/components/primary-tablist/index.css +29 -29
- package/esm/components/primary-tablist/mobile.css +32 -32
- package/esm/components/scrollable-container/Component.js +2 -4
- package/esm/components/scrollable-container/index.css +5 -5
- 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/Component.responsive.js +1 -1
- 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.collabsible.desktop.js +1 -1
- package/esm/components/tabs/Component.collapsible.mobile.js +2 -2
- package/esm/components/tabs/Component.collapsible.responsive.js +2 -2
- package/esm/components/tabs/Component.desktop.js +2 -2
- package/esm/components/tabs/Component.mobile.js +3 -3
- package/esm/components/tabs/Component.responsive.js +3 -3
- package/esm/desktop.js +2 -2
- package/{hook-9ea9e32c.d.ts → esm/hook-8abfea97.d.ts} +28 -13
- package/esm/index.js +3 -3
- package/esm/index.module-0d6aac07.js +4 -0
- package/esm/index.module-dab47194.js +4 -0
- package/esm/mobile.js +3 -3
- package/esm/mobile.module-9b70a4fc.js +4 -0
- package/esm/shared-4cd3936b.d.ts +6 -6
- package/{modern/typings-5e1b8383.d.ts → esm/typings-dd8ca091.d.ts} +23 -1
- package/esm/{utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
- package/{cssm/hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
- package/index.js +3 -3
- package/index.module-1176452c.js +6 -0
- package/index.module-6fac1a11.js +6 -0
- package/mobile.js +3 -3
- package/{mobile.module-6c98e36e.js → mobile.module-6b11e45e.js} +1 -1
- package/modern/Component-8b2c2707.d.ts +1 -1
- package/{esm/Component-5e1b8383.d.ts → modern/Component-dd8ca091.d.ts} +1 -1
- package/modern/collapsible.js +2 -2
- package/modern/components/primary-tablist/Component.collapsible.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.collapsible.mobile.js +2 -2
- package/modern/components/primary-tablist/Component.collapsible.responsive.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/Component.responsive.js +2 -2
- package/modern/components/primary-tablist/index.css +29 -29
- package/modern/components/primary-tablist/mobile.css +32 -32
- package/modern/components/scrollable-container/Component.js +2 -4
- package/modern/components/scrollable-container/index.css +5 -5
- 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.collabsible.desktop.js +1 -1
- package/modern/components/tabs/Component.collapsible.mobile.js +2 -2
- package/modern/components/tabs/Component.collapsible.responsive.js +2 -2
- package/modern/components/tabs/Component.desktop.js +2 -2
- package/modern/components/tabs/Component.mobile.js +3 -3
- package/modern/components/tabs/Component.responsive.js +3 -3
- package/modern/desktop.js +2 -2
- package/modern/{hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
- package/modern/index.js +3 -3
- package/modern/index.module-2f2bbaf5.js +4 -0
- package/modern/index.module-9e23227a.js +4 -0
- package/modern/mobile.js +3 -3
- package/modern/mobile.module-a0b368a1.js +4 -0
- package/modern/shared-4cd3936b.d.ts +6 -6
- package/{typings-5e1b8383.d.ts → modern/typings-dd8ca091.d.ts} +23 -1
- package/{utils-5e1b8383.d.ts → modern/utils-dd8ca091.d.ts} +6 -3
- package/package.json +3 -3
- package/shared-4cd3936b.d.ts +6 -6
- package/src/components/scrollable-container/Component.tsx +1 -2
- package/{cssm/typings-5e1b8383.d.ts → typings-dd8ca091.d.ts} +23 -1
- package/{cssm/utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
- package/esm/index.module-8dec482b.js +0 -4
- package/esm/index.module-966b3998.js +0 -4
- package/esm/mobile.module-39766406.js +0 -4
- package/index.module-07185e4d.js +0 -6
- package/index.module-56e66dc4.js +0 -6
- package/modern/index.module-9e555350.js +0 -4
- package/modern/index.module-d7578f28.js +0 -4
- package/modern/mobile.module-90edca62.js +0 -4
|
@@ -210,6 +210,23 @@ type BaseSelectProps = {
|
|
|
210
210
|
* Компонент пункта меню
|
|
211
211
|
*/
|
|
212
212
|
Option?: FC<OptionProps>;
|
|
213
|
+
/**
|
|
214
|
+
* Включает отображение поиска
|
|
215
|
+
*/
|
|
216
|
+
showSearch?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Компонент поиска
|
|
219
|
+
*/
|
|
220
|
+
Search?: FC<SearchProps & RefAttributes<HTMLInputElement>>;
|
|
221
|
+
/**
|
|
222
|
+
* Настройки поиска
|
|
223
|
+
*/
|
|
224
|
+
searchProps?: {
|
|
225
|
+
componentProps?: SearchProps;
|
|
226
|
+
accessor?: (option: OptionShape) => string;
|
|
227
|
+
value?: string;
|
|
228
|
+
onChange?: (value: string) => void;
|
|
229
|
+
};
|
|
213
230
|
/**
|
|
214
231
|
* Обработчик выбора
|
|
215
232
|
*/
|
|
@@ -345,6 +362,10 @@ type OptionsListProps = {
|
|
|
345
362
|
* Дополнительный класс для компонента группы пунктов
|
|
346
363
|
*/
|
|
347
364
|
optionGroupClassName?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Дополнительный класс для скроллбара
|
|
367
|
+
*/
|
|
368
|
+
scrollbarClassName?: string;
|
|
348
369
|
/**
|
|
349
370
|
* Размер компонента
|
|
350
371
|
*/
|
|
@@ -547,4 +568,5 @@ type CheckmarkProps = {
|
|
|
547
568
|
*/
|
|
548
569
|
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
549
570
|
};
|
|
550
|
-
|
|
571
|
+
type SearchProps = InputProps;
|
|
572
|
+
export { AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-dd8ca091";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
|
6
6
|
selected?: OptionShape | undefined;
|
|
7
7
|
selectedMultiple?: OptionShape[] | undefined;
|
|
8
8
|
}) => ReactNode[] | null;
|
|
9
|
-
declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected']): {
|
|
9
|
+
declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected'], filterFn?: (option: OptionShape) => boolean): {
|
|
10
|
+
filteredOptions: (OptionShape | GroupShape)[];
|
|
10
11
|
flatOptions: OptionShape[];
|
|
11
12
|
selectedOptions: OptionShape[];
|
|
12
13
|
};
|
|
@@ -33,6 +34,8 @@ type useVisibleOptionsArgs = {
|
|
|
33
34
|
invalidate?: unknown;
|
|
34
35
|
};
|
|
35
36
|
declare function useVisibleOptions({ visibleOptions, listRef, styleTargetRef, open, invalidate, }: useVisibleOptionsArgs): void;
|
|
37
|
+
declare function defaultFilterFn(optionText: string, search: string): boolean;
|
|
38
|
+
declare function defaultAccessor(option: OptionShape): string;
|
|
36
39
|
declare function usePrevious<T>(value: T): T | undefined;
|
|
37
40
|
declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
|
|
38
|
-
export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, usePrevious, lastIndexOf };
|
|
41
|
+
export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, defaultFilterFn, defaultAccessor, usePrevious, lastIndexOf };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./typings-dd8ca091";
|
|
3
3
|
type UseSelectWithApplyProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Список выбранных пунктов
|
|
@@ -21,6 +21,14 @@ type UseSelectWithApplyProps = {
|
|
|
21
21
|
* Пропсы, которые будут прокинуты в компонент списка
|
|
22
22
|
*/
|
|
23
23
|
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
24
|
+
/**
|
|
25
|
+
* Включает отображение поиска
|
|
26
|
+
*/
|
|
27
|
+
showSearch?: BaseSelectProps['showSearch'];
|
|
28
|
+
/**
|
|
29
|
+
* Настройки поиска
|
|
30
|
+
*/
|
|
31
|
+
searchProps?: BaseSelectProps['searchProps'];
|
|
24
32
|
/**
|
|
25
33
|
* Показывать кнопку очистки
|
|
26
34
|
*/
|
|
@@ -35,21 +43,21 @@ type UseSelectWithApplyProps = {
|
|
|
35
43
|
showHeaderWithSelectAll?: boolean;
|
|
36
44
|
};
|
|
37
45
|
declare const SELECT_ALL_KEY = "select_all";
|
|
38
|
-
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
|
|
39
|
-
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-
|
|
46
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
|
|
47
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-dd8ca091").OptionsListProps & {
|
|
40
48
|
showClear?: boolean | undefined;
|
|
41
|
-
onClose?: (() => void) | undefined;
|
|
49
|
+
onClose?: (() => void) | undefined; /**
|
|
50
|
+
* Компонент выпадающего меню
|
|
51
|
+
*/
|
|
42
52
|
selectedDraft?: OptionShape[] | undefined;
|
|
43
|
-
OptionsList?: import("react").FC<import("./typings-
|
|
44
|
-
Footer?: import("react").FC<import("./Component-
|
|
53
|
+
OptionsList?: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
54
|
+
Footer?: import("react").FC<import("./Component-dd8ca091").FooterProps> | undefined;
|
|
45
55
|
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
46
|
-
headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
|
|
47
|
-
* Показывать кнопку очистки
|
|
48
|
-
*/
|
|
56
|
+
headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
|
|
49
57
|
showHeaderWithSelectAll?: boolean | undefined;
|
|
50
58
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
59
|
optionsListProps: {
|
|
52
|
-
OptionsList: import("react").FC<import("./typings-
|
|
60
|
+
OptionsList: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
53
61
|
showClear: boolean;
|
|
54
62
|
onClear: () => void;
|
|
55
63
|
onApply: () => void;
|
|
@@ -64,12 +72,19 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
64
72
|
};
|
|
65
73
|
allowUnselect: boolean;
|
|
66
74
|
multiple: boolean;
|
|
67
|
-
options: (OptionShape | import("./typings-
|
|
75
|
+
options: (OptionShape | import("./typings-dd8ca091").GroupShape | {
|
|
68
76
|
key: string;
|
|
69
77
|
content: string;
|
|
70
78
|
})[];
|
|
71
|
-
onChange: (payload: import("./typings-
|
|
79
|
+
onChange: (payload: import("./typings-dd8ca091").BaseSelectChangePayload) => void;
|
|
72
80
|
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
81
|
+
showSearch: boolean | undefined;
|
|
82
|
+
searchProps: {
|
|
83
|
+
value: string;
|
|
84
|
+
onChange: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
85
|
+
componentProps?: import("./index-c44170fe").InputProps | undefined;
|
|
86
|
+
accessor?: ((option: OptionShape) => string) | undefined;
|
|
87
|
+
} | undefined;
|
|
73
88
|
};
|
|
74
|
-
export * from "./Component-
|
|
89
|
+
export * from "./Component-dd8ca091";
|
|
75
90
|
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
package/index.js
CHANGED
|
@@ -18,13 +18,13 @@ require('@alfalab/core-components-shared');
|
|
|
18
18
|
require('./components/scrollable-container/Component.js');
|
|
19
19
|
require('compute-scroll-into-view');
|
|
20
20
|
require('./components/title/Component.js');
|
|
21
|
-
require('./index.module-
|
|
21
|
+
require('./index.module-6fac1a11.js');
|
|
22
22
|
require('./components/primary-tablist/Component.mobile.js');
|
|
23
|
-
require('./mobile.module-
|
|
23
|
+
require('./mobile.module-6b11e45e.js');
|
|
24
24
|
require('./components/secondary-tablist/Component.desktop.js');
|
|
25
25
|
require('@alfalab/core-components-tag/desktop');
|
|
26
26
|
require('./components/secondary-tablist/Component.js');
|
|
27
|
-
require('./index.module-
|
|
27
|
+
require('./index.module-1176452c.js');
|
|
28
28
|
require('./components/secondary-tablist/Component.mobile.js');
|
|
29
29
|
require('@alfalab/core-components-tag/mobile');
|
|
30
30
|
require('./components/tabs/Component.js');
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"tabs__component_17jna","fullWidthScroll":"tabs__fullWidthScroll_17jna","container":"tabs__container_17jna","title":"tabs__title_17jna","xxs":"tabs__xxs_17jna","xs":"tabs__xs_17jna","s":"tabs__s_17jna","m":"tabs__m_17jna","l":"tabs__l_17jna","xl":"tabs__xl_17jna"};
|
|
4
|
+
require('./components/secondary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var commonStyles = {"component":"tabs__component_d0xly","fullWidthScroll":"tabs__fullWidthScroll_d0xly","container":"tabs__container_d0xly","title":"tabs__title_d0xly","disabled":"tabs__disabled_d0xly","focused":"tabs__focused_d0xly","collapsed":"tabs__collapsed_d0xly","selected":"tabs__selected_d0xly","line":"tabs__line_d0xly","s":"tabs__s_d0xly","xs":"tabs__xs_d0xly","xxs":"tabs__xxs_d0xly","pickerWrapper":"tabs__pickerWrapper_d0xly","option":"tabs__option_d0xly","m":"tabs__m_d0xly","l":"tabs__l_d0xly","xl":"tabs__xl_d0xly","rightAddons":"tabs__rightAddons_d0xly"};
|
|
4
|
+
require('./components/primary-tablist/index.css')
|
|
5
|
+
|
|
6
|
+
exports.commonStyles = commonStyles;
|
package/mobile.js
CHANGED
|
@@ -16,11 +16,11 @@ require('@alfalab/core-components-shared');
|
|
|
16
16
|
require('./components/scrollable-container/Component.js');
|
|
17
17
|
require('compute-scroll-into-view');
|
|
18
18
|
require('./components/title/Component.js');
|
|
19
|
-
require('./index.module-
|
|
20
|
-
require('./mobile.module-
|
|
19
|
+
require('./index.module-6fac1a11.js');
|
|
20
|
+
require('./mobile.module-6b11e45e.js');
|
|
21
21
|
require('@alfalab/core-components-tag/mobile');
|
|
22
22
|
require('./components/secondary-tablist/Component.js');
|
|
23
|
-
require('./index.module-
|
|
23
|
+
require('./index.module-1176452c.js');
|
|
24
24
|
require('./components/tabs/Component.js');
|
|
25
25
|
|
|
26
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var mobileStyles = {"title":"
|
|
3
|
+
var mobileStyles = {"title":"tabs__title_1wlys tabs__title_d0xly","mobile":"tabs__mobile_1wlys"};
|
|
4
4
|
require('./components/primary-tablist/mobile.css')
|
|
5
5
|
|
|
6
6
|
exports.mobileStyles = mobileStyles;
|
|
@@ -3,7 +3,7 @@ import React from "react";
|
|
|
3
3
|
import { FC, SVGProps } from "react";
|
|
4
4
|
import { PickerButtonSize, PickerButtonVariant } from "./types-4480ac4f";
|
|
5
5
|
import { ButtonProps } from "./index-8b2c2707";
|
|
6
|
-
import { FieldProps as BaseFieldProps } from "./typings-
|
|
6
|
+
import { FieldProps as BaseFieldProps } from "./typings-dd8ca091";
|
|
7
7
|
declare const getIcon: (variant: PickerButtonVariant, size: PickerButtonSize) => FC<SVGProps<SVGSVGElement>>;
|
|
8
8
|
type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
|
|
9
9
|
buttonSize?: PickerButtonSize;
|
|
@@ -3,7 +3,7 @@ import React from "react";
|
|
|
3
3
|
import { FC, ReactNode } from "react";
|
|
4
4
|
import { ModalMobileProps, ContentProps } from "./typings-bdb4c6b9";
|
|
5
5
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
6
|
-
import { BaseSelectProps } from "./typings-
|
|
6
|
+
import { BaseSelectProps } from "./typings-dd8ca091";
|
|
7
7
|
type FooterProps = {
|
|
8
8
|
/**
|
|
9
9
|
* Контент футера
|
package/modern/collapsible.js
CHANGED
|
@@ -21,5 +21,5 @@ import './hooks/use-tabs.js';
|
|
|
21
21
|
import '@alfalab/core-components-shared/modern';
|
|
22
22
|
import './synthetic-events.js';
|
|
23
23
|
import './components/title/Component.js';
|
|
24
|
-
import './index.module-
|
|
25
|
-
import './mobile.module-
|
|
24
|
+
import './index.module-2f2bbaf5.js';
|
|
25
|
+
import './mobile.module-a0b368a1.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollapsiblePrimaryTabList } from './Component.collapsible.js';
|
|
3
|
-
import { c as commonStyles } from '../../index.module-
|
|
3
|
+
import { c as commonStyles } from '../../index.module-2f2bbaf5.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-badge/modern';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { CollapsiblePrimaryTabList } from './Component.collapsible.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
-
import { m as mobileStyles } from '../../mobile.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-2f2bbaf5.js';
|
|
5
|
+
import { m as mobileStyles } from '../../mobile.module-a0b368a1.js';
|
|
6
6
|
import '@alfalab/core-components-badge/modern';
|
|
7
7
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
8
8
|
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
@@ -15,8 +15,8 @@ import '../../hooks/use-tabs.js';
|
|
|
15
15
|
import '@alfalab/core-components-shared/modern';
|
|
16
16
|
import '../../synthetic-events.js';
|
|
17
17
|
import '../title/Component.js';
|
|
18
|
-
import '../../index.module-
|
|
19
|
-
import '../../mobile.module-
|
|
18
|
+
import '../../index.module-2f2bbaf5.js';
|
|
19
|
+
import '../../mobile.module-a0b368a1.js';
|
|
20
20
|
|
|
21
21
|
const CollapsiblePrimaryTabListResponsive = ({ size, fullWidthScroll, breakpoint = 1024, defaultMatchMediaValue, ...restProps }) => {
|
|
22
22
|
const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`, defaultMatchMediaValue);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PrimaryTabList } from './Component.js';
|
|
3
|
-
import { c as commonStyles } from '../../index.module-
|
|
3
|
+
import { c as commonStyles } from '../../index.module-2f2bbaf5.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
6
6
|
import '../../hooks/use-tabs.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { PrimaryTabList } from './Component.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
5
|
-
import { m as mobileStyles } from '../../mobile.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-2f2bbaf5.js';
|
|
5
|
+
import { m as mobileStyles } from '../../mobile.module-a0b368a1.js';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
7
7
|
import '../../hooks/use-tabs.js';
|
|
8
8
|
import '@alfalab/core-components-shared/modern';
|
|
@@ -10,8 +10,8 @@ import '@alfalab/core-components-shared/modern';
|
|
|
10
10
|
import '../scrollable-container/Component.js';
|
|
11
11
|
import 'compute-scroll-into-view';
|
|
12
12
|
import '../title/Component.js';
|
|
13
|
-
import '../../index.module-
|
|
14
|
-
import '../../mobile.module-
|
|
13
|
+
import '../../index.module-2f2bbaf5.js';
|
|
14
|
+
import '../../mobile.module-a0b368a1.js';
|
|
15
15
|
|
|
16
16
|
const PrimaryTabListResponsive = ({ size, breakpoint = 1024, fullWidthScroll, defaultMatchMediaValue, ...restProps }) => {
|
|
17
17
|
const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`, defaultMatchMediaValue);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fbtrt */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -83,11 +83,11 @@
|
|
|
83
83
|
/* size l */
|
|
84
84
|
|
|
85
85
|
/* size xl */
|
|
86
|
-
} .
|
|
86
|
+
} .tabs__component_d0xly {
|
|
87
87
|
position: relative;
|
|
88
88
|
display: inline-flex;
|
|
89
89
|
min-width: 100%
|
|
90
|
-
} .
|
|
90
|
+
} .tabs__component_d0xly:before {
|
|
91
91
|
content: '';
|
|
92
92
|
display: block;
|
|
93
93
|
position: absolute;
|
|
@@ -95,17 +95,17 @@
|
|
|
95
95
|
height: 1px;
|
|
96
96
|
width: 100%;
|
|
97
97
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
98
|
-
} .
|
|
98
|
+
} .tabs__fullWidthScroll_d0xly {
|
|
99
99
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
100
100
|
margin: 0 var(--gap-m);
|
|
101
|
-
} .
|
|
101
|
+
} .tabs__container_d0xly {
|
|
102
102
|
position: relative;
|
|
103
103
|
overflow: hidden;
|
|
104
104
|
|
|
105
105
|
/* focus-outline fix */
|
|
106
106
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
107
107
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
108
|
-
} .
|
|
108
|
+
} .tabs__title_d0xly {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
height: 100%;
|
|
@@ -122,76 +122,76 @@
|
|
|
122
122
|
user-select: none;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
outline: none
|
|
125
|
-
} .
|
|
125
|
+
} .tabs__title_d0xly:not(.tabs__disabled_d0xly):hover {
|
|
126
126
|
color: var(--primary-tablist-hover-color);
|
|
127
|
-
} .
|
|
127
|
+
} .tabs__focused_d0xly {
|
|
128
128
|
outline: 2px solid var(--focus-color);
|
|
129
129
|
outline-offset: 2px;
|
|
130
|
-
} .
|
|
130
|
+
} .tabs__collapsed_d0xly {
|
|
131
131
|
order: 99;
|
|
132
132
|
visibility: collapse;
|
|
133
|
-
} .
|
|
133
|
+
} .tabs__selected_d0xly {
|
|
134
134
|
cursor: default;
|
|
135
135
|
color: var(--primary-tablist-selected-color);
|
|
136
|
-
} .
|
|
136
|
+
} .tabs__disabled_d0xly {
|
|
137
137
|
cursor: var(--disabled-cursor);
|
|
138
138
|
color: var(--primary-tablist-disabled-color);
|
|
139
|
-
} .
|
|
139
|
+
} .tabs__line_d0xly {
|
|
140
140
|
position: absolute;
|
|
141
141
|
height: 3px;
|
|
142
142
|
bottom: 0;
|
|
143
143
|
left: 0;
|
|
144
144
|
background-color: var(--primary-tablist-line-color);
|
|
145
145
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
146
|
-
} /* sizes */ .
|
|
146
|
+
} /* sizes */ .tabs__s_d0xly .tabs__title_d0xly, .tabs__xs_d0xly .tabs__title_d0xly, .tabs__xxs_d0xly .tabs__title_d0xly {
|
|
147
147
|
padding: var(--primary-tablist-s-padding);
|
|
148
148
|
font-size: var(--primary-tablist-s-font-size);
|
|
149
149
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
150
150
|
font-family: var(--primary-tablist-s-font-family);
|
|
151
151
|
line-height: 24px;
|
|
152
|
-
} .
|
|
152
|
+
} .tabs__s_d0xly .tabs__title_d0xly + .tabs__title_d0xly, .tabs__xs_d0xly .tabs__title_d0xly + .tabs__title_d0xly, .tabs__xxs_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
|
|
153
153
|
margin-left: var(--primary-tablist-s-gaps);
|
|
154
|
-
} .
|
|
154
|
+
} .tabs__s_d0xly .tabs__pickerWrapper_d0xly, .tabs__xs_d0xly .tabs__pickerWrapper_d0xly, .tabs__xxs_d0xly .tabs__pickerWrapper_d0xly {
|
|
155
155
|
margin-left: var(--primary-tablist-s-gaps);
|
|
156
|
-
} .
|
|
156
|
+
} .tabs__s_d0xly .tabs__option_d0xly, .tabs__xs_d0xly .tabs__option_d0xly, .tabs__xxs_d0xly .tabs__option_d0xly {
|
|
157
157
|
padding: 0;
|
|
158
|
-
} .
|
|
158
|
+
} .tabs__m_d0xly .tabs__title_d0xly {
|
|
159
159
|
padding: var(--primary-tablist-m-padding);
|
|
160
160
|
font-size: var(--primary-tablist-m-font-size);
|
|
161
161
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
162
162
|
font-family: var(--primary-tablist-m-font-family);
|
|
163
163
|
line-height: 24px;
|
|
164
|
-
} .
|
|
164
|
+
} .tabs__m_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
|
|
165
165
|
margin-left: var(--primary-tablist-m-gaps);
|
|
166
|
-
} .
|
|
166
|
+
} .tabs__m_d0xly .tabs__pickerWrapper_d0xly {
|
|
167
167
|
margin-left: var(--primary-tablist-m-gaps);
|
|
168
|
-
} .
|
|
168
|
+
} .tabs__m_d0xly .tabs__option_d0xly {
|
|
169
169
|
padding: 0;
|
|
170
|
-
} .
|
|
170
|
+
} .tabs__l_d0xly .tabs__title_d0xly {
|
|
171
171
|
padding: var(--primary-tablist-l-padding);
|
|
172
172
|
font-size: var(--primary-tablist-l-font-size);
|
|
173
173
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
174
174
|
font-family: var(--primary-tablist-l-font-family);
|
|
175
175
|
line-height: 24px;
|
|
176
|
-
} .
|
|
176
|
+
} .tabs__l_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
|
|
177
177
|
margin-left: var(--primary-tablist-l-gaps);
|
|
178
|
-
} .
|
|
178
|
+
} .tabs__l_d0xly .tabs__pickerWrapper_d0xly {
|
|
179
179
|
margin-left: var(--primary-tablist-l-gaps);
|
|
180
|
-
} .
|
|
180
|
+
} .tabs__l_d0xly .tabs__option_d0xly {
|
|
181
181
|
padding: 0;
|
|
182
|
-
} .
|
|
182
|
+
} .tabs__xl_d0xly .tabs__title_d0xly {
|
|
183
183
|
padding: var(--primary-tablist-xl-padding);
|
|
184
184
|
font-size: var(--primary-tablist-xl-font-size);
|
|
185
185
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
186
186
|
font-family: var(--primary-tablist-xl-font-family);
|
|
187
187
|
line-height: 32px;
|
|
188
|
-
} .
|
|
188
|
+
} .tabs__xl_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
|
|
189
189
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
190
|
-
} .
|
|
190
|
+
} .tabs__xl_d0xly .tabs__pickerWrapper_d0xly {
|
|
191
191
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
192
|
-
} .
|
|
192
|
+
} .tabs__xl_d0xly .tabs__option_d0xly {
|
|
193
193
|
padding: 0;
|
|
194
|
-
} .
|
|
194
|
+
} .tabs__rightAddons_d0xly {
|
|
195
195
|
display: flex;
|
|
196
196
|
justify-content: center;
|
|
197
197
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1xj0f */
|
|
2
2
|
:root {
|
|
3
3
|
}/* deprecated */:root {
|
|
4
4
|
--color-light-border-accent: #ef3124;
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
/* size l */
|
|
91
91
|
|
|
92
92
|
/* size xl */
|
|
93
|
-
}.
|
|
93
|
+
}.tabs__component_d0xly {
|
|
94
94
|
position: relative;
|
|
95
95
|
display: inline-flex;
|
|
96
96
|
min-width: 100%
|
|
97
|
-
}.
|
|
97
|
+
}.tabs__component_d0xly:before {
|
|
98
98
|
content: '';
|
|
99
99
|
display: block;
|
|
100
100
|
position: absolute;
|
|
@@ -102,17 +102,17 @@
|
|
|
102
102
|
height: 1px;
|
|
103
103
|
width: 100%;
|
|
104
104
|
background-color: var(--primary-tablist-bottom-border-color);
|
|
105
|
-
}.
|
|
105
|
+
}.tabs__fullWidthScroll_d0xly {
|
|
106
106
|
min-width: calc(100% - 2 * var(--gap-m));
|
|
107
107
|
margin: 0 var(--gap-m);
|
|
108
|
-
}.
|
|
108
|
+
}.tabs__container_d0xly {
|
|
109
109
|
position: relative;
|
|
110
110
|
overflow: hidden;
|
|
111
111
|
|
|
112
112
|
/* focus-outline fix */
|
|
113
113
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
114
114
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
115
|
-
}.
|
|
115
|
+
}.tabs__title_d0xly {
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: center;
|
|
118
118
|
height: 100%;
|
|
@@ -129,76 +129,76 @@
|
|
|
129
129
|
user-select: none;
|
|
130
130
|
cursor: pointer;
|
|
131
131
|
outline: none
|
|
132
|
-
}.
|
|
132
|
+
}.tabs__title_d0xly:not(.tabs__disabled_d0xly):hover {
|
|
133
133
|
color: var(--primary-tablist-hover-color);
|
|
134
|
-
}.
|
|
134
|
+
}.tabs__focused_d0xly {
|
|
135
135
|
outline: 2px solid var(--focus-color);
|
|
136
136
|
outline-offset: 2px;
|
|
137
|
-
}.
|
|
137
|
+
}.tabs__collapsed_d0xly {
|
|
138
138
|
order: 99;
|
|
139
139
|
visibility: collapse;
|
|
140
|
-
}.
|
|
140
|
+
}.tabs__selected_d0xly {
|
|
141
141
|
cursor: default;
|
|
142
142
|
color: var(--primary-tablist-selected-color);
|
|
143
|
-
}.
|
|
143
|
+
}.tabs__disabled_d0xly {
|
|
144
144
|
cursor: var(--disabled-cursor);
|
|
145
145
|
color: var(--primary-tablist-disabled-color);
|
|
146
|
-
}.
|
|
146
|
+
}.tabs__line_d0xly {
|
|
147
147
|
position: absolute;
|
|
148
148
|
height: 3px;
|
|
149
149
|
bottom: 0;
|
|
150
150
|
left: 0;
|
|
151
151
|
background-color: var(--primary-tablist-line-color);
|
|
152
152
|
transition: transform 0.2s ease, width 0.2s ease;
|
|
153
|
-
}/* sizes */.
|
|
153
|
+
}/* sizes */.tabs__s_d0xly .tabs__title_d0xly, .tabs__xs_d0xly .tabs__title_d0xly, .tabs__xxs_d0xly .tabs__title_d0xly {
|
|
154
154
|
padding: var(--primary-tablist-s-padding);
|
|
155
155
|
font-size: var(--primary-tablist-s-font-size);
|
|
156
156
|
font-weight: var(--primary-tablist-s-font-weight);
|
|
157
157
|
font-family: var(--primary-tablist-s-font-family);
|
|
158
158
|
line-height: 24px;
|
|
159
|
-
}.
|
|
159
|
+
}.tabs__s_d0xly .tabs__title_d0xly + .tabs__title_d0xly, .tabs__xs_d0xly .tabs__title_d0xly + .tabs__title_d0xly, .tabs__xxs_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
|
|
160
160
|
margin-left: var(--primary-tablist-s-gaps);
|
|
161
|
-
}.
|
|
161
|
+
}.tabs__s_d0xly .tabs__pickerWrapper_d0xly, .tabs__xs_d0xly .tabs__pickerWrapper_d0xly, .tabs__xxs_d0xly .tabs__pickerWrapper_d0xly {
|
|
162
162
|
margin-left: var(--primary-tablist-s-gaps);
|
|
163
|
-
}.
|
|
163
|
+
}.tabs__s_d0xly .tabs__option_d0xly, .tabs__xs_d0xly .tabs__option_d0xly, .tabs__xxs_d0xly .tabs__option_d0xly {
|
|
164
164
|
padding: 0;
|
|
165
|
-
}.
|
|
165
|
+
}.tabs__m_d0xly .tabs__title_d0xly {
|
|
166
166
|
padding: var(--primary-tablist-m-padding);
|
|
167
167
|
font-size: var(--primary-tablist-m-font-size);
|
|
168
168
|
font-weight: var(--primary-tablist-m-font-weight);
|
|
169
169
|
font-family: var(--primary-tablist-m-font-family);
|
|
170
170
|
line-height: 24px;
|
|
171
|
-
}.
|
|
171
|
+
}.tabs__m_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
|
|
172
172
|
margin-left: var(--primary-tablist-m-gaps);
|
|
173
|
-
}.
|
|
173
|
+
}.tabs__m_d0xly .tabs__pickerWrapper_d0xly {
|
|
174
174
|
margin-left: var(--primary-tablist-m-gaps);
|
|
175
|
-
}.
|
|
175
|
+
}.tabs__m_d0xly .tabs__option_d0xly {
|
|
176
176
|
padding: 0;
|
|
177
|
-
}.
|
|
177
|
+
}.tabs__l_d0xly .tabs__title_d0xly {
|
|
178
178
|
padding: var(--primary-tablist-l-padding);
|
|
179
179
|
font-size: var(--primary-tablist-l-font-size);
|
|
180
180
|
font-weight: var(--primary-tablist-l-font-weight);
|
|
181
181
|
font-family: var(--primary-tablist-l-font-family);
|
|
182
182
|
line-height: 24px;
|
|
183
|
-
}.
|
|
183
|
+
}.tabs__l_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
|
|
184
184
|
margin-left: var(--primary-tablist-l-gaps);
|
|
185
|
-
}.
|
|
185
|
+
}.tabs__l_d0xly .tabs__pickerWrapper_d0xly {
|
|
186
186
|
margin-left: var(--primary-tablist-l-gaps);
|
|
187
|
-
}.
|
|
187
|
+
}.tabs__l_d0xly .tabs__option_d0xly {
|
|
188
188
|
padding: 0;
|
|
189
|
-
}.
|
|
189
|
+
}.tabs__xl_d0xly .tabs__title_d0xly {
|
|
190
190
|
padding: var(--primary-tablist-xl-padding);
|
|
191
191
|
font-size: var(--primary-tablist-xl-font-size);
|
|
192
192
|
font-weight: var(--primary-tablist-xl-font-weight);
|
|
193
193
|
font-family: var(--primary-tablist-xl-font-family);
|
|
194
194
|
line-height: 32px;
|
|
195
|
-
}.
|
|
195
|
+
}.tabs__xl_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
|
|
196
196
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
197
|
-
}.
|
|
197
|
+
}.tabs__xl_d0xly .tabs__pickerWrapper_d0xly {
|
|
198
198
|
margin-left: var(--primary-tablist-xl-gaps);
|
|
199
|
-
}.
|
|
199
|
+
}.tabs__xl_d0xly .tabs__option_d0xly {
|
|
200
200
|
padding: 0;
|
|
201
|
-
}.
|
|
201
|
+
}.tabs__rightAddons_d0xly {
|
|
202
202
|
display: flex;
|
|
203
203
|
justify-content: center;
|
|
204
204
|
align-items: center;
|
|
@@ -1106,13 +1106,13 @@
|
|
|
1106
1106
|
|
|
1107
1107
|
/* size xl */
|
|
1108
1108
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
1109
|
-
} .
|
|
1110
|
-
} .
|
|
1109
|
+
} .tabs__title_1wlys {
|
|
1110
|
+
} .tabs__mobile_1wlys .tabs__title_1wlys {
|
|
1111
1111
|
padding: var(--primary-tablist-mobile-padding);
|
|
1112
1112
|
font-size: var(--primary-tablist-mobile-font-size);
|
|
1113
1113
|
font-weight: var(--primary-tablist-mobile-font-weight);
|
|
1114
1114
|
font-family: var(--primary-tablist-mobile-font-family);
|
|
1115
1115
|
line-height: var(--primary-tablist-mobile-line-height)
|
|
1116
|
-
} .
|
|
1116
|
+
} .tabs__mobile_1wlys .tabs__title_1wlys + .tabs__title_1wlys {
|
|
1117
1117
|
margin-left: var(--primary-tablist-mobile-gaps);
|
|
1118
1118
|
}
|
|
@@ -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
|
-
const styles = {"container":"
|
|
5
|
+
const styles = {"container":"tabs__container_8y8ix","fullWidthScroll":"tabs__fullWidthScroll_8y8ix"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -18,9 +18,7 @@ const ScrollableContainer = ({ containerClassName, children, activeChild, fullWi
|
|
|
18
18
|
inline: 'nearest',
|
|
19
19
|
});
|
|
20
20
|
// TODO: animate?
|
|
21
|
-
actions.forEach(({ el, left }
|
|
22
|
-
if (index === 0)
|
|
23
|
-
return;
|
|
21
|
+
actions.forEach(({ el, left }) => {
|
|
24
22
|
// eslint-disable-next-line no-param-reassign
|
|
25
23
|
el.scrollLeft =
|
|
26
24
|
el.scrollLeft > left
|