@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
|
@@ -20,8 +20,8 @@ require('../../hooks/use-tabs.js');
|
|
|
20
20
|
require('@alfalab/core-components-shared');
|
|
21
21
|
require('../../synthetic-events.js');
|
|
22
22
|
require('../title/Component.js');
|
|
23
|
-
require('../../index.module-
|
|
24
|
-
require('../../mobile.module-
|
|
23
|
+
require('../../index.module-6fac1a11.js');
|
|
24
|
+
require('../../mobile.module-6b11e45e.js');
|
|
25
25
|
|
|
26
26
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
27
27
|
|
|
@@ -21,9 +21,9 @@ require('../../hooks/use-tabs.js');
|
|
|
21
21
|
require('@alfalab/core-components-shared');
|
|
22
22
|
require('../../synthetic-events.js');
|
|
23
23
|
require('../title/Component.js');
|
|
24
|
-
require('../../index.module-
|
|
24
|
+
require('../../index.module-6fac1a11.js');
|
|
25
25
|
require('../primary-tablist/Component.collapsible.mobile.js');
|
|
26
|
-
require('../../mobile.module-
|
|
26
|
+
require('../../mobile.module-6b11e45e.js');
|
|
27
27
|
|
|
28
28
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
29
29
|
|
|
@@ -15,10 +15,10 @@ require('@alfalab/core-components-shared');
|
|
|
15
15
|
require('../scrollable-container/Component.js');
|
|
16
16
|
require('compute-scroll-into-view');
|
|
17
17
|
require('../title/Component.js');
|
|
18
|
-
require('../../index.module-
|
|
18
|
+
require('../../index.module-6fac1a11.js');
|
|
19
19
|
require('@alfalab/core-components-tag/desktop');
|
|
20
20
|
require('../secondary-tablist/Component.js');
|
|
21
|
-
require('../../index.module-
|
|
21
|
+
require('../../index.module-1176452c.js');
|
|
22
22
|
|
|
23
23
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
24
24
|
|
|
@@ -15,11 +15,11 @@ require('@alfalab/core-components-shared');
|
|
|
15
15
|
require('../scrollable-container/Component.js');
|
|
16
16
|
require('compute-scroll-into-view');
|
|
17
17
|
require('../title/Component.js');
|
|
18
|
-
require('../../index.module-
|
|
19
|
-
require('../../mobile.module-
|
|
18
|
+
require('../../index.module-6fac1a11.js');
|
|
19
|
+
require('../../mobile.module-6b11e45e.js');
|
|
20
20
|
require('@alfalab/core-components-tag/mobile');
|
|
21
21
|
require('../secondary-tablist/Component.js');
|
|
22
|
-
require('../../index.module-
|
|
22
|
+
require('../../index.module-1176452c.js');
|
|
23
23
|
|
|
24
24
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
25
25
|
|
|
@@ -17,13 +17,13 @@ require('@alfalab/core-components-shared');
|
|
|
17
17
|
require('../scrollable-container/Component.js');
|
|
18
18
|
require('compute-scroll-into-view');
|
|
19
19
|
require('../title/Component.js');
|
|
20
|
-
require('../../index.module-
|
|
20
|
+
require('../../index.module-6fac1a11.js');
|
|
21
21
|
require('../primary-tablist/Component.mobile.js');
|
|
22
|
-
require('../../mobile.module-
|
|
22
|
+
require('../../mobile.module-6b11e45e.js');
|
|
23
23
|
require('../secondary-tablist/Component.desktop.js');
|
|
24
24
|
require('@alfalab/core-components-tag/desktop');
|
|
25
25
|
require('../secondary-tablist/Component.js');
|
|
26
|
-
require('../../index.module-
|
|
26
|
+
require('../../index.module-1176452c.js');
|
|
27
27
|
require('../secondary-tablist/Component.mobile.js');
|
|
28
28
|
require('@alfalab/core-components-tag/mobile');
|
|
29
29
|
|
|
@@ -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
|
* Контент футера
|
|
@@ -29,10 +29,8 @@ var ScrollableContainer = function (_a) {
|
|
|
29
29
|
inline: 'nearest',
|
|
30
30
|
});
|
|
31
31
|
// TODO: animate?
|
|
32
|
-
actions.forEach(function (_a
|
|
32
|
+
actions.forEach(function (_a) {
|
|
33
33
|
var el = _a.el, left = _a.left;
|
|
34
|
-
if (index === 0)
|
|
35
|
-
return;
|
|
36
34
|
// eslint-disable-next-line no-param-reassign
|
|
37
35
|
el.scrollLeft =
|
|
38
36
|
el.scrollLeft > left
|
|
@@ -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 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-
|
|
4
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-dd8ca091";
|
|
5
5
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
6
|
-
import { UseSelectWithApplyProps } from "./hook-
|
|
6
|
+
import { UseSelectWithApplyProps } from "./hook-8abfea97";
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
8
|
type useSelectWithLoadingProps = {
|
|
9
9
|
loading?: boolean;
|
|
@@ -100,8 +100,8 @@ type FooterProps = {
|
|
|
100
100
|
};
|
|
101
101
|
declare const Footer: ({ handleApply, handleClear, showClear }: FooterProps) => React.JSX.Element;
|
|
102
102
|
export * from "./index-ebda875c";
|
|
103
|
-
export * from "./Component-
|
|
103
|
+
export * from "./Component-dd8ca091";
|
|
104
104
|
export { useSelectWithLoading, useLazyLoading, AdditionalMobileProps, SelectMobileProps, SelectMobile, FooterProps, Footer };
|
|
105
|
-
export * from "./hook-
|
|
106
|
-
export * from "./typings-
|
|
107
|
-
export * from "./utils-
|
|
105
|
+
export * from "./hook-8abfea97";
|
|
106
|
+
export * from "./typings-dd8ca091";
|
|
107
|
+
export * from "./utils-dd8ca091";
|
|
@@ -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 };
|
package/desktop.js
CHANGED
|
@@ -16,10 +16,10 @@ 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-
|
|
19
|
+
require('./index.module-6fac1a11.js');
|
|
20
20
|
require('@alfalab/core-components-tag/desktop');
|
|
21
21
|
require('./components/secondary-tablist/Component.js');
|
|
22
|
-
require('./index.module-
|
|
22
|
+
require('./index.module-1176452c.js');
|
|
23
23
|
require('./components/tabs/Component.js');
|
|
24
24
|
|
|
25
25
|
|
|
@@ -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/esm/collapsible.js
CHANGED
|
@@ -22,5 +22,5 @@ import './hooks/use-tabs.js';
|
|
|
22
22
|
import '@alfalab/core-components-shared/esm';
|
|
23
23
|
import './synthetic-events.js';
|
|
24
24
|
import './components/title/Component.js';
|
|
25
|
-
import './index.module-
|
|
26
|
-
import './mobile.module-
|
|
25
|
+
import './index.module-dab47194.js';
|
|
26
|
+
import './mobile.module-9b70a4fc.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CollapsiblePrimaryTabList } from './Component.collapsible.js';
|
|
4
|
-
import { c as commonStyles } from '../../index.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-dab47194.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-badge/esm';
|
|
7
7
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
@@ -2,8 +2,8 @@ import { __assign, __rest } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { CollapsiblePrimaryTabList } from './Component.collapsible.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
6
|
-
import { m as mobileStyles } from '../../mobile.module-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-dab47194.js';
|
|
6
|
+
import { m as mobileStyles } from '../../mobile.module-9b70a4fc.js';
|
|
7
7
|
import '@alfalab/core-components-badge/esm';
|
|
8
8
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
9
9
|
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
@@ -16,8 +16,8 @@ import '../../hooks/use-tabs.js';
|
|
|
16
16
|
import '@alfalab/core-components-shared/esm';
|
|
17
17
|
import '../../synthetic-events.js';
|
|
18
18
|
import '../title/Component.js';
|
|
19
|
-
import '../../index.module-
|
|
20
|
-
import '../../mobile.module-
|
|
19
|
+
import '../../index.module-dab47194.js';
|
|
20
|
+
import '../../mobile.module-9b70a4fc.js';
|
|
21
21
|
|
|
22
22
|
var CollapsiblePrimaryTabListResponsive = function (_a) {
|
|
23
23
|
var size = _a.size, fullWidthScroll = _a.fullWidthScroll, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = __rest(_a, ["size", "fullWidthScroll", "breakpoint", "defaultMatchMediaValue"]);
|
|
@@ -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 { c as commonStyles } from '../../index.module-
|
|
4
|
+
import { c as commonStyles } from '../../index.module-dab47194.js';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
7
7
|
import '../../hooks/use-tabs.js';
|
|
@@ -2,8 +2,8 @@ import { __assign, __rest } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { PrimaryTabList } from './Component.js';
|
|
5
|
-
import { c as commonStyles } from '../../index.module-
|
|
6
|
-
import { m as mobileStyles } from '../../mobile.module-
|
|
5
|
+
import { c as commonStyles } from '../../index.module-dab47194.js';
|
|
6
|
+
import { m as mobileStyles } from '../../mobile.module-9b70a4fc.js';
|
|
7
7
|
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
8
8
|
import '../../hooks/use-tabs.js';
|
|
9
9
|
import '@alfalab/core-components-shared/esm';
|
|
@@ -11,8 +11,8 @@ import '@alfalab/core-components-shared/esm';
|
|
|
11
11
|
import '../scrollable-container/Component.js';
|
|
12
12
|
import 'compute-scroll-into-view';
|
|
13
13
|
import '../title/Component.js';
|
|
14
|
-
import '../../index.module-
|
|
15
|
-
import '../../mobile.module-
|
|
14
|
+
import '../../index.module-dab47194.js';
|
|
15
|
+
import '../../mobile.module-9b70a4fc.js';
|
|
16
16
|
|
|
17
17
|
var PrimaryTabListResponsive = function (_a) {
|
|
18
18
|
var size = _a.size, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, fullWidthScroll = _a.fullWidthScroll, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = __rest(_a, ["size", "breakpoint", "fullWidthScroll", "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;
|