@alfalab/core-components-tabs 7.2.3 → 7.2.5
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-0d7ca9a7.d.ts +40 -0
- package/Component-3e68f8db.d.ts +11 -0
- package/Component-3fe0d3e6.d.ts +234 -0
- package/Component-85892853.d.ts +5 -0
- package/Component-97288072.d.ts +49 -0
- package/Component-bdb4c6b9.d.ts +12 -0
- package/Component-db573794.d.ts +33 -0
- package/Component-e67996e9.d.ts +168 -0
- package/Component-ebda875c.d.ts +135 -0
- package/Context-bdb4c6b9.d.ts +4 -0
- package/ResponsiveContext-baf4875b.d.ts +5 -0
- package/components/primary-tablist/Component.desktop.js +3 -3
- package/components/primary-tablist/Component.js +2 -2
- package/components/primary-tablist/Component.mobile.js +4 -4
- package/components/primary-tablist/Component.responsive.js +3 -3
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +38 -32
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +5 -5
- 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 +19 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.desktop.js +4 -4
- package/components/tabs/Component.mobile.js +4 -4
- package/components/tabs/Component.responsive.js +4 -4
- package/components/title/Component.js +1 -1
- package/components/title/index.js +1 -1
- package/cssm/Component-0d7ca9a7.d.ts +40 -0
- package/cssm/Component-3e68f8db.d.ts +11 -0
- package/cssm/Component-3fe0d3e6.d.ts +234 -0
- package/cssm/Component-85892853.d.ts +5 -0
- package/cssm/Component-97288072.d.ts +49 -0
- package/cssm/Component-bdb4c6b9.d.ts +12 -0
- package/cssm/Component-db573794.d.ts +33 -0
- package/cssm/Component-e67996e9.d.ts +168 -0
- package/cssm/Component-ebda875c.d.ts +135 -0
- package/cssm/Context-bdb4c6b9.d.ts +4 -0
- package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/cssm/components/primary-tablist/Component.desktop.js +1 -1
- package/cssm/components/primary-tablist/Component.js +1 -1
- package/cssm/components/primary-tablist/Component.mobile.js +1 -1
- package/cssm/components/primary-tablist/Component.responsive.js +1 -1
- package/cssm/components/tabs/Component.desktop.js +1 -1
- package/cssm/components/tabs/Component.mobile.js +1 -1
- package/cssm/components/tabs/Component.responsive.js +1 -1
- package/cssm/desktop.js +1 -1
- package/cssm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/cssm/hook-edac5428.d.ts +54 -0
- package/cssm/index-0d7ca9a7.d.ts +27 -0
- package/cssm/index-136acbb1.d.ts +28 -0
- package/cssm/index-3e68f8db.d.ts +98 -0
- package/cssm/index-3fe0d3e6.d.ts +1 -0
- package/cssm/index-48646db0.d.ts +2 -0
- package/cssm/index-7ca84eff.d.ts +196 -0
- package/cssm/index-bdb4c6b9.d.ts +2 -0
- package/cssm/index-e67996e9.d.ts +1 -0
- package/cssm/index-ebda875c.d.ts +3 -0
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/responsive.js +1 -1
- package/cssm/typings-85892853.d.ts +553 -0
- package/cssm/typings-bdb4c6b9.d.ts +52 -0
- package/cssm/utils-1574ad8b.d.ts +28 -0
- package/cssm/utils-85892853.d.ts +38 -0
- package/desktop.js +4 -4
- package/esm/Component-0d7ca9a7.d.ts +40 -0
- package/esm/Component-3e68f8db.d.ts +11 -0
- package/esm/Component-3fe0d3e6.d.ts +234 -0
- package/esm/Component-85892853.d.ts +5 -0
- package/esm/Component-97288072.d.ts +49 -0
- package/esm/Component-bdb4c6b9.d.ts +12 -0
- package/esm/Component-db573794.d.ts +33 -0
- package/esm/Component-e67996e9.d.ts +168 -0
- package/esm/Component-ebda875c.d.ts +135 -0
- package/esm/Context-bdb4c6b9.d.ts +4 -0
- package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/esm/components/primary-tablist/Component.desktop.js +3 -3
- package/esm/components/primary-tablist/Component.js +2 -2
- package/esm/components/primary-tablist/Component.mobile.js +4 -4
- package/esm/components/primary-tablist/Component.responsive.js +3 -3
- package/esm/components/primary-tablist/index.css +29 -29
- package/esm/components/primary-tablist/mobile.css +38 -32
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +5 -5
- 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 +19 -13
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.desktop.js +4 -4
- package/esm/components/tabs/Component.mobile.js +4 -4
- package/esm/components/tabs/Component.responsive.js +4 -4
- package/esm/components/title/Component.js +1 -1
- package/esm/components/title/index.js +1 -1
- package/esm/desktop.js +4 -4
- package/esm/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/esm/hook-edac5428.d.ts +54 -0
- package/esm/hooks/use-collapsible-elements.js +1 -1
- package/esm/hooks/use-tablist-titles.js +1 -1
- package/esm/index-0d7ca9a7.d.ts +27 -0
- package/esm/index-136acbb1.d.ts +28 -0
- package/esm/index-3e68f8db.d.ts +98 -0
- package/esm/index-3fe0d3e6.d.ts +1 -0
- package/esm/index-48646db0.d.ts +2 -0
- package/esm/index-7ca84eff.d.ts +196 -0
- package/esm/index-bdb4c6b9.d.ts +2 -0
- package/esm/index-e67996e9.d.ts +1 -0
- package/esm/index-ebda875c.d.ts +3 -0
- package/esm/index.js +4 -4
- package/esm/index.module-06a4ba0a.js +4 -0
- package/esm/index.module-fff420f1.js +4 -0
- package/esm/mobile.js +4 -4
- package/esm/responsive.js +4 -4
- package/esm/synthetic-events.js +1 -1
- package/esm/{tslib.es6-dba20b6c.d.ts → tslib.es6-442504cd.d.ts} +0 -0
- package/esm/{tslib.es6-dba20b6c.js → tslib.es6-442504cd.js} +0 -0
- package/esm/typings-85892853.d.ts +553 -0
- package/esm/typings-bdb4c6b9.d.ts +52 -0
- package/esm/utils-1574ad8b.d.ts +28 -0
- package/esm/utils-85892853.d.ts +38 -0
- package/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/hook-edac5428.d.ts +54 -0
- package/hooks/use-collapsible-elements.js +1 -1
- package/hooks/use-tablist-titles.js +1 -1
- package/index-0d7ca9a7.d.ts +27 -0
- package/index-136acbb1.d.ts +28 -0
- package/index-3e68f8db.d.ts +98 -0
- package/index-3fe0d3e6.d.ts +1 -0
- package/index-48646db0.d.ts +2 -0
- package/index-7ca84eff.d.ts +196 -0
- package/index-bdb4c6b9.d.ts +2 -0
- package/index-e67996e9.d.ts +1 -0
- package/index-ebda875c.d.ts +3 -0
- package/index.js +4 -4
- package/index.module-a1b32357.js +6 -0
- package/index.module-cfa18052.js +6 -0
- package/mobile.js +4 -4
- package/modern/Component-0d7ca9a7.d.ts +40 -0
- package/modern/Component-3e68f8db.d.ts +11 -0
- package/modern/Component-3fe0d3e6.d.ts +234 -0
- package/modern/Component-85892853.d.ts +5 -0
- package/modern/Component-97288072.d.ts +49 -0
- package/modern/Component-bdb4c6b9.d.ts +12 -0
- package/modern/Component-db573794.d.ts +33 -0
- package/modern/Component-e67996e9.d.ts +168 -0
- package/modern/Component-ebda875c.d.ts +135 -0
- package/modern/Context-bdb4c6b9.d.ts +4 -0
- package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
- package/modern/components/primary-tablist/Component.desktop.js +2 -2
- package/modern/components/primary-tablist/Component.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +3 -3
- 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 +38 -32
- package/modern/components/scrollable-container/Component.js +1 -1
- 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 +19 -13
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.desktop.js +3 -3
- package/modern/components/tabs/Component.mobile.js +3 -3
- package/modern/components/tabs/Component.responsive.js +3 -3
- package/modern/desktop.js +3 -3
- package/modern/getDataTestId-3fe0d3e6.d.ts +2 -0
- package/modern/hook-edac5428.d.ts +54 -0
- package/modern/index-0d7ca9a7.d.ts +27 -0
- package/modern/index-136acbb1.d.ts +28 -0
- package/modern/index-3e68f8db.d.ts +98 -0
- package/modern/index-3fe0d3e6.d.ts +1 -0
- package/modern/index-48646db0.d.ts +2 -0
- package/modern/index-7ca84eff.d.ts +196 -0
- package/modern/index-bdb4c6b9.d.ts +2 -0
- package/modern/index-e67996e9.d.ts +1 -0
- package/modern/index-ebda875c.d.ts +3 -0
- package/modern/index.js +3 -3
- package/modern/index.module-06a4ba0a.js +4 -0
- package/modern/index.module-fff420f1.js +4 -0
- package/modern/mobile.js +3 -3
- package/modern/responsive.js +3 -3
- package/modern/typings-85892853.d.ts +553 -0
- package/modern/typings-bdb4c6b9.d.ts +52 -0
- package/modern/utils-1574ad8b.d.ts +28 -0
- package/modern/utils-85892853.d.ts +38 -0
- package/package.json +2 -2
- package/responsive.js +4 -4
- package/synthetic-events.js +1 -1
- package/{tslib.es6-bb11c82b.d.ts → tslib.es6-e85b77d3.d.ts} +0 -0
- package/{tslib.es6-bb11c82b.js → tslib.es6-e85b77d3.js} +0 -0
- package/typings-85892853.d.ts +553 -0
- package/typings-bdb4c6b9.d.ts +52 -0
- package/utils-1574ad8b.d.ts +28 -0
- package/utils-85892853.d.ts +38 -0
- package/esm/index.module-22485442.js +0 -4
- package/esm/index.module-bf6a03c6.js +0 -4
- package/index.module-6242c5bf.js +0 -6
- package/index.module-cafb3f2a.js +0 -6
- package/modern/index.module-22485442.js +0 -4
- package/modern/index.module-bf6a03c6.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
4
3
|
import '@alfalab/core-components-badge/modern';
|
|
5
4
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
5
|
+
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import '@alfalab/hooks';
|
|
7
7
|
import '@juggle/resize-observer';
|
|
8
8
|
import '../../hooks/use-collapsible-elements.js';
|
|
@@ -13,11 +13,11 @@ import 'compute-scroll-into-view';
|
|
|
13
13
|
import '../scrollable-container/Component.js';
|
|
14
14
|
import '../title/Component.js';
|
|
15
15
|
import '../primary-tablist/Component.js';
|
|
16
|
-
import '../../index.module-
|
|
16
|
+
import '../../index.module-06a4ba0a.js';
|
|
17
17
|
import { PrimaryTabListDesktop } from '../primary-tablist/Component.desktop.js';
|
|
18
18
|
import '@alfalab/core-components-tag/modern';
|
|
19
19
|
import '../secondary-tablist/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-fff420f1.js';
|
|
21
21
|
import { SecondaryTabListDesktop } from '../secondary-tablist/Component.desktop.js';
|
|
22
22
|
import { Tabs } from './Component.js';
|
|
23
23
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
4
3
|
import '@alfalab/core-components-badge/modern';
|
|
5
4
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
5
|
+
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import '@alfalab/hooks';
|
|
7
7
|
import '@juggle/resize-observer';
|
|
8
8
|
import '../../hooks/use-collapsible-elements.js';
|
|
@@ -13,10 +13,10 @@ import 'compute-scroll-into-view';
|
|
|
13
13
|
import '../scrollable-container/Component.js';
|
|
14
14
|
import '../title/Component.js';
|
|
15
15
|
import '../primary-tablist/Component.js';
|
|
16
|
-
import '../../index.module-
|
|
16
|
+
import '../../index.module-06a4ba0a.js';
|
|
17
17
|
import '@alfalab/core-components-tag/modern';
|
|
18
18
|
import '../secondary-tablist/Component.js';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-fff420f1.js';
|
|
20
20
|
import { Tabs } from './Component.js';
|
|
21
21
|
import { PrimaryTabListMobile } from '../primary-tablist/Component.mobile.js';
|
|
22
22
|
import { SecondaryTabListMobile } from '../secondary-tablist/Component.mobile.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
4
3
|
import '@alfalab/core-components-badge/modern';
|
|
5
4
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
5
|
+
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import '@alfalab/hooks';
|
|
7
7
|
import '@juggle/resize-observer';
|
|
8
8
|
import '../../hooks/use-collapsible-elements.js';
|
|
@@ -13,11 +13,11 @@ import 'compute-scroll-into-view';
|
|
|
13
13
|
import '../scrollable-container/Component.js';
|
|
14
14
|
import '../title/Component.js';
|
|
15
15
|
import '../primary-tablist/Component.js';
|
|
16
|
-
import '../../index.module-
|
|
16
|
+
import '../../index.module-06a4ba0a.js';
|
|
17
17
|
import '../primary-tablist/Component.desktop.js';
|
|
18
18
|
import '@alfalab/core-components-tag/modern';
|
|
19
19
|
import '../secondary-tablist/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-fff420f1.js';
|
|
21
21
|
import '../secondary-tablist/Component.desktop.js';
|
|
22
22
|
import { Tabs } from './Component.js';
|
|
23
23
|
import '../primary-tablist/Component.mobile.js';
|
package/modern/desktop.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
4
3
|
import '@alfalab/core-components-badge/modern';
|
|
5
4
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
5
|
+
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import '@alfalab/hooks';
|
|
7
7
|
import '@juggle/resize-observer';
|
|
8
8
|
export { useCollapsibleElements } from './hooks/use-collapsible-elements.js';
|
|
@@ -13,11 +13,11 @@ import 'compute-scroll-into-view';
|
|
|
13
13
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
14
14
|
import './components/title/Component.js';
|
|
15
15
|
import './components/primary-tablist/Component.js';
|
|
16
|
-
import './index.module-
|
|
16
|
+
import './index.module-06a4ba0a.js';
|
|
17
17
|
export { PrimaryTabListDesktop } from './components/primary-tablist/Component.desktop.js';
|
|
18
18
|
import '@alfalab/core-components-tag/modern';
|
|
19
19
|
import './components/secondary-tablist/Component.js';
|
|
20
|
-
import './index.module-
|
|
20
|
+
import './index.module-fff420f1.js';
|
|
21
21
|
export { SecondaryTabListDesktop } from './components/secondary-tablist/Component.desktop.js';
|
|
22
22
|
export { Tab } from './components/tab/Component.js';
|
|
23
23
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./index-3e68f8db";
|
|
3
|
+
type useSelectWithApplyProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Список выбранных пунктов
|
|
6
|
+
*/
|
|
7
|
+
selected: BaseSelectProps['selected'];
|
|
8
|
+
/**
|
|
9
|
+
* Список вариантов выбора
|
|
10
|
+
*/
|
|
11
|
+
options: BaseSelectProps['options'];
|
|
12
|
+
/**
|
|
13
|
+
* Обработчик выбора
|
|
14
|
+
*/
|
|
15
|
+
onChange: BaseSelectProps['onChange'];
|
|
16
|
+
/**
|
|
17
|
+
* Компонент выпадающего меню
|
|
18
|
+
*/
|
|
19
|
+
OptionsList?: BaseSelectProps['OptionsList'];
|
|
20
|
+
/**
|
|
21
|
+
* Показывать кнопку очистки
|
|
22
|
+
*/
|
|
23
|
+
showClear?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Показывать пункт "Выбрать все"
|
|
26
|
+
*/
|
|
27
|
+
showSelectAll?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare const SELECT_ALL_KEY = "select_all";
|
|
30
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, showClear, showSelectAll, }: useSelectWithApplyProps): {
|
|
31
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./index-3e68f8db").OptionsListProps & {
|
|
32
|
+
showClear?: boolean | undefined;
|
|
33
|
+
onClose?: (() => void) | undefined;
|
|
34
|
+
selectedDraft?: OptionShape[] | undefined;
|
|
35
|
+
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<unknown>> | undefined;
|
|
36
|
+
} & import("react").RefAttributes<unknown>>;
|
|
37
|
+
optionsListProps: {
|
|
38
|
+
OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps> | undefined;
|
|
39
|
+
showClear: boolean;
|
|
40
|
+
onClear: () => void;
|
|
41
|
+
onApply: () => void;
|
|
42
|
+
onClose: () => void;
|
|
43
|
+
selectedDraft: OptionShape[];
|
|
44
|
+
};
|
|
45
|
+
allowUnselect: boolean;
|
|
46
|
+
multiple: boolean;
|
|
47
|
+
options: (OptionShape | import("./index-3e68f8db").GroupShape | {
|
|
48
|
+
key: string;
|
|
49
|
+
content: string;
|
|
50
|
+
})[];
|
|
51
|
+
onChange: (payload: import("./index-3e68f8db").BaseSelectChangePayload) => void;
|
|
52
|
+
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
53
|
+
};
|
|
54
|
+
export { SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4
|
+
import { ButtonProps } from "./index-ebda875c";
|
|
5
|
+
import { AdditionalMobileProps } from "./index-3e68f8db";
|
|
6
|
+
import { PickerButtonDesktopProps } from "./Component-0d7ca9a7";
|
|
7
|
+
type PickerButtonMatchMedia = "desktop" | "mobile";
|
|
8
|
+
type PickerButtonProps = PickerButtonDesktopProps & AdditionalMobileProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
11
|
+
* @default 1024
|
|
12
|
+
*/
|
|
13
|
+
breakpoint?: number;
|
|
14
|
+
};
|
|
15
|
+
declare const PickerButton: React.ForwardRefExoticComponent<Omit<import("./index-3e68f8db").BaseSelectProps, "placeholder" | "onFocus" | "size" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow" | "Field"> & Pick<ButtonProps, "rightAddons" | "leftAddons" | "view" | "loading"> & {
|
|
16
|
+
options: ((import("./index-3e68f8db").OptionShape | import("./index-3e68f8db").GroupShape) & {
|
|
17
|
+
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
18
|
+
})[];
|
|
19
|
+
size?: import("./Component-0d7ca9a7").PickerButtonSize | undefined;
|
|
20
|
+
variant?: import("./Component-0d7ca9a7").PickerButtonVariant | undefined;
|
|
21
|
+
} & AdditionalMobileProps & {
|
|
22
|
+
breakpoint?: number | undefined;
|
|
23
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
24
|
+
type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, "OptionsList" | "Checkmark" | "onScroll"> & AdditionalMobileProps;
|
|
25
|
+
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "OptionsList" | "Checkmark"> & AdditionalMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export { PickerButtonMatchMedia, PickerButtonProps, PickerButton, PickerButtonMobileProps, PickerButtonMobile };
|
|
27
|
+
export type { PickerButtonDesktopProps, PickerButtonSize, PickerButtonVariant } from "./Component-0d7ca9a7";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
5
|
+
* Значения выбраны по приоритету.
|
|
6
|
+
*/
|
|
7
|
+
declare const stackingOrder: {
|
|
8
|
+
FOCUSED: number;
|
|
9
|
+
DEFAULT: number;
|
|
10
|
+
POPOVER: number;
|
|
11
|
+
MODAL: number;
|
|
12
|
+
TOAST: number;
|
|
13
|
+
};
|
|
14
|
+
declare const StackingContext: import("react").Context<number>;
|
|
15
|
+
type StackProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Render prop, в который передается функция.
|
|
18
|
+
* Функция принимает аргумент со значением z-index из текущего контекста.
|
|
19
|
+
*/
|
|
20
|
+
children: (value: number) => ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Исходное значение для z-index.
|
|
23
|
+
* @default 5
|
|
24
|
+
*/
|
|
25
|
+
value?: number;
|
|
26
|
+
};
|
|
27
|
+
declare const Stack: FC<StackProps>;
|
|
28
|
+
export { stackingOrder, StackingContext, StackProps, Stack };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { FormControlProps } from "./Component-e67996e9";
|
|
5
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-85892853";
|
|
6
|
+
type SelectFieldProps = FormControlProps & Record<string, unknown>;
|
|
7
|
+
type SelectProps = Omit<BaseSelectProps, "fieldProps"> & {
|
|
8
|
+
/**
|
|
9
|
+
* Пропсы, которые будут прокинуты в компонент поля
|
|
10
|
+
*/
|
|
11
|
+
fieldProps?: SelectFieldProps;
|
|
12
|
+
};
|
|
13
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "fieldProps"> & {
|
|
14
|
+
fieldProps?: SelectFieldProps | undefined;
|
|
15
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17
|
+
type useSelectWithLoadingProps = {
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
visibleOptions?: BaseSelectProps["visibleOptions"];
|
|
20
|
+
Option?: React.FC<OptionProps>;
|
|
21
|
+
};
|
|
22
|
+
declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
|
|
23
|
+
Option: (props: OptionProps) => JSX.Element;
|
|
24
|
+
options: OptionShape[];
|
|
25
|
+
} | null;
|
|
26
|
+
type OptionsFetcherResponse = {
|
|
27
|
+
options: OptionShape[];
|
|
28
|
+
hasMore: boolean;
|
|
29
|
+
};
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
31
|
+
type useLazyLoadingProps = {
|
|
32
|
+
/** Количество элементов на "странице" */
|
|
33
|
+
limit?: number;
|
|
34
|
+
/** Начальный номер "страницы" */
|
|
35
|
+
initialOffset?: number;
|
|
36
|
+
/** Скелетон загружаемых элементов */
|
|
37
|
+
skeleton?: React.ReactNode;
|
|
38
|
+
/** Компонент пункта меню */
|
|
39
|
+
Option?: React.FC<OptionProps>;
|
|
40
|
+
/**
|
|
41
|
+
* Функция-загрузчик опций.
|
|
42
|
+
* @param offset - текущая страница
|
|
43
|
+
* @param limit - количество элементов на странице
|
|
44
|
+
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
45
|
+
* @returns Promise<{
|
|
46
|
+
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
47
|
+
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
48
|
+
* }>
|
|
49
|
+
*/
|
|
50
|
+
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
51
|
+
};
|
|
52
|
+
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
|
|
53
|
+
optionsProps: {
|
|
54
|
+
Option: (props: OptionProps) => JSX.Element;
|
|
55
|
+
options: OptionShape[];
|
|
56
|
+
optionsListProps: {
|
|
57
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
58
|
+
inputProps: {
|
|
59
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
60
|
+
value: string;
|
|
61
|
+
}) => void;
|
|
62
|
+
value: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
onOpen: (payload: {
|
|
66
|
+
open?: boolean;
|
|
67
|
+
}) => void;
|
|
68
|
+
};
|
|
69
|
+
reset: () => void;
|
|
70
|
+
};
|
|
71
|
+
type SkeletonProps = {
|
|
72
|
+
/**
|
|
73
|
+
* Флаг, явно задающий состояние, при котором контент закрывается прелоадером
|
|
74
|
+
*/
|
|
75
|
+
visible?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Флаг явного включения анимации скелета
|
|
78
|
+
*/
|
|
79
|
+
animate?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Дополнительный класс
|
|
82
|
+
*/
|
|
83
|
+
className?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
86
|
+
*/
|
|
87
|
+
dataTestId?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Дочерние элементы.
|
|
90
|
+
*/
|
|
91
|
+
children?: ReactNode;
|
|
92
|
+
};
|
|
93
|
+
declare const Skeleton: React.FC<SkeletonProps>;
|
|
94
|
+
export { SelectFieldProps, SelectProps, Select, useSelectWithLoading, useLazyLoading, SkeletonProps, Skeleton };
|
|
95
|
+
export * from "./hook-edac5428";
|
|
96
|
+
export * from "./index-48646db0";
|
|
97
|
+
export * from "./typings-85892853";
|
|
98
|
+
export * from "./utils-85892853";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./getDataTestId-3fe0d3e6";
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/// <reference types="react-transition-group" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { HTMLAttributes, ReactNode, FC } from "react";
|
|
5
|
+
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
|
+
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
7
|
+
import { SwipeableHandlers } from "react-swipeable/types";
|
|
8
|
+
import { BackdropProps } from "./index-ebda875c";
|
|
9
|
+
type BottomSheetTitleAlign = "center" | "left";
|
|
10
|
+
type BottomSheetProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Контент
|
|
13
|
+
*/
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Управление видимостью
|
|
17
|
+
*/
|
|
18
|
+
open: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Заголовок
|
|
21
|
+
*/
|
|
22
|
+
title?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Кнопка действия (обычно, это кнопка закрытия)
|
|
25
|
+
*/
|
|
26
|
+
actionButton?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Дополнительный класс
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Дополнительный класс
|
|
33
|
+
*/
|
|
34
|
+
contentClassName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Дополнительные пропсы на контейнер.
|
|
37
|
+
*/
|
|
38
|
+
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
39
|
+
/**
|
|
40
|
+
* Дополнительный класс
|
|
41
|
+
*/
|
|
42
|
+
containerClassName?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Дополнительный класс шапки
|
|
45
|
+
*/
|
|
46
|
+
headerClassName?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Дополнительный класс футера
|
|
49
|
+
*/
|
|
50
|
+
footerClassName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Дополнительный класс для аддонов
|
|
53
|
+
*/
|
|
54
|
+
addonClassName?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Дополнительный класс для компонента крестика
|
|
57
|
+
*/
|
|
58
|
+
closerClassName?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Дополнительный класс для компонента стрелки назад
|
|
61
|
+
*/
|
|
62
|
+
backerClassName?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Дополнительный класс для компонента модального окна
|
|
65
|
+
*/
|
|
66
|
+
modalClassName?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Дополнительный класс для обертки модального окна
|
|
69
|
+
*/
|
|
70
|
+
modalWrapperClassName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
73
|
+
*/
|
|
74
|
+
transitionProps?: Partial<TransitionProps>;
|
|
75
|
+
/**
|
|
76
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
77
|
+
*/
|
|
78
|
+
dataTestId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* z-index компонента
|
|
81
|
+
*/
|
|
82
|
+
zIndex?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Будет ли свайпаться шторка
|
|
85
|
+
* @default true
|
|
86
|
+
*/
|
|
87
|
+
swipeable?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Слот слева
|
|
90
|
+
*/
|
|
91
|
+
leftAddons?: ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* Слот справа
|
|
94
|
+
*/
|
|
95
|
+
rightAddons?: ReactNode;
|
|
96
|
+
/**
|
|
97
|
+
* Слот снизу
|
|
98
|
+
*/
|
|
99
|
+
bottomAddons?: ReactNode;
|
|
100
|
+
/**
|
|
101
|
+
* Наличие компонента крестика
|
|
102
|
+
*/
|
|
103
|
+
hasCloser?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Наличие компонента стрелки назад
|
|
106
|
+
*/
|
|
107
|
+
hasBacker?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Выравнивание заголовка
|
|
110
|
+
*/
|
|
111
|
+
titleAlign?: BottomSheetTitleAlign;
|
|
112
|
+
/**
|
|
113
|
+
* Фиксирует шапку
|
|
114
|
+
*/
|
|
115
|
+
stickyHeader?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Фиксирует футер
|
|
118
|
+
*/
|
|
119
|
+
stickyFooter?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Высота шторки
|
|
122
|
+
*/
|
|
123
|
+
initialHeight?: "default" | "full";
|
|
124
|
+
/**
|
|
125
|
+
* Будет ли виден оверлэй
|
|
126
|
+
*/
|
|
127
|
+
hideOverlay?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Будет ли видна шапка
|
|
130
|
+
*/
|
|
131
|
+
hideHeader?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Будет ли обрезан заголовок
|
|
134
|
+
*/
|
|
135
|
+
trimTitle?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Запретить закрытие шторки кликом на оверлэй
|
|
138
|
+
*/
|
|
139
|
+
disableOverlayClick?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
142
|
+
*/
|
|
143
|
+
disableBlockingScroll?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
146
|
+
* Не анимировать шторку при изменении размера вьюпорта
|
|
147
|
+
*/
|
|
148
|
+
ignoreScreenChange?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Свойства для Бэкдропа
|
|
151
|
+
*/
|
|
152
|
+
backdropProps?: BaseModalProps["backdropProps"];
|
|
153
|
+
/**
|
|
154
|
+
* Обработчик закрытия
|
|
155
|
+
*/
|
|
156
|
+
onClose: () => void;
|
|
157
|
+
/**
|
|
158
|
+
* Обработчик нажатия на стрелку назад
|
|
159
|
+
*/
|
|
160
|
+
onBack?: () => void;
|
|
161
|
+
};
|
|
162
|
+
/* Верхний отступ шторки, если она открыта на максимальную высоту */
|
|
163
|
+
declare const HEADER_OFFSET = 24;
|
|
164
|
+
declare const CLOSE_OFFSET = 0.2;
|
|
165
|
+
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
166
|
+
type FooterProps = {
|
|
167
|
+
/**
|
|
168
|
+
* Контент футера
|
|
169
|
+
*/
|
|
170
|
+
children?: ReactNode;
|
|
171
|
+
/**
|
|
172
|
+
* Фиксирует футер
|
|
173
|
+
*/
|
|
174
|
+
sticky?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Дополнительный класс
|
|
177
|
+
*/
|
|
178
|
+
className?: string;
|
|
179
|
+
};
|
|
180
|
+
declare const Footer: FC<FooterProps>;
|
|
181
|
+
type SwipeableBackdropProps = BackdropProps & {
|
|
182
|
+
/**
|
|
183
|
+
* Прозрачность бэкдропа
|
|
184
|
+
*/
|
|
185
|
+
opacity?: number;
|
|
186
|
+
/**
|
|
187
|
+
* Обработчики свайпа
|
|
188
|
+
*/
|
|
189
|
+
handlers?: SwipeableHandlers;
|
|
190
|
+
/**
|
|
191
|
+
* Время анимации opacity
|
|
192
|
+
*/
|
|
193
|
+
opacityTimeout?: number;
|
|
194
|
+
};
|
|
195
|
+
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
196
|
+
export { BottomSheetTitleAlign, BottomSheetProps, HEADER_OFFSET, CLOSE_OFFSET, BottomSheet, FooterProps, Footer, SwipeableBackdropProps, SwipeableBackdrop };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Component-e67996e9";
|
package/modern/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
4
3
|
import '@alfalab/core-components-badge/modern';
|
|
5
4
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
5
|
+
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import '@alfalab/hooks';
|
|
7
7
|
import '@juggle/resize-observer';
|
|
8
8
|
import './hooks/use-collapsible-elements.js';
|
|
@@ -13,11 +13,11 @@ import 'compute-scroll-into-view';
|
|
|
13
13
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
14
14
|
import './components/title/Component.js';
|
|
15
15
|
import './components/primary-tablist/Component.js';
|
|
16
|
-
import './index.module-
|
|
16
|
+
import './index.module-06a4ba0a.js';
|
|
17
17
|
import './components/primary-tablist/Component.desktop.js';
|
|
18
18
|
import '@alfalab/core-components-tag/modern';
|
|
19
19
|
import './components/secondary-tablist/Component.js';
|
|
20
|
-
import './index.module-
|
|
20
|
+
import './index.module-fff420f1.js';
|
|
21
21
|
import './components/secondary-tablist/Component.desktop.js';
|
|
22
22
|
export { Tab } from './components/tab/Component.js';
|
|
23
23
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_1o8kx","fullWidthScroll":"tabs__fullWidthScroll_1o8kx","container":"tabs__container_1o8kx","title":"tabs__title_1o8kx","disabled":"tabs__disabled_1o8kx","focused":"tabs__focused_1o8kx","collapsed":"tabs__collapsed_1o8kx","selected":"tabs__selected_1o8kx","line":"tabs__line_1o8kx","s":"tabs__s_1o8kx","xs":"tabs__xs_1o8kx","xxs":"tabs__xxs_1o8kx","pickerWrapper":"tabs__pickerWrapper_1o8kx","option":"tabs__option_1o8kx","m":"tabs__m_1o8kx","l":"tabs__l_1o8kx","xl":"tabs__xl_1o8kx","rightAddons":"tabs__rightAddons_1o8kx"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var commonStyles = {"component":"tabs__component_1bxy3","fullWidthScroll":"tabs__fullWidthScroll_1bxy3","container":"tabs__container_1bxy3","title":"tabs__title_1bxy3","xxs":"tabs__xxs_1bxy3","xs":"tabs__xs_1bxy3","s":"tabs__s_1bxy3","m":"tabs__m_1bxy3","l":"tabs__l_1bxy3","xl":"tabs__xl_1bxy3"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/modern/mobile.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
4
3
|
import '@alfalab/core-components-badge/modern';
|
|
5
4
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
5
|
+
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import '@alfalab/hooks';
|
|
7
7
|
import '@juggle/resize-observer';
|
|
8
8
|
import './hooks/use-collapsible-elements.js';
|
|
@@ -13,10 +13,10 @@ import 'compute-scroll-into-view';
|
|
|
13
13
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
14
14
|
import './components/title/Component.js';
|
|
15
15
|
import './components/primary-tablist/Component.js';
|
|
16
|
-
import './index.module-
|
|
16
|
+
import './index.module-06a4ba0a.js';
|
|
17
17
|
import '@alfalab/core-components-tag/modern';
|
|
18
18
|
import './components/secondary-tablist/Component.js';
|
|
19
|
-
import './index.module-
|
|
19
|
+
import './index.module-fff420f1.js';
|
|
20
20
|
export { Tab } from './components/tab/Component.js';
|
|
21
21
|
import './components/tabs/Component.js';
|
|
22
22
|
export { PrimaryTabListMobile } from './components/primary-tablist/Component.mobile.js';
|
package/modern/responsive.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
|
-
import '@alfalab/core-components/picker-button/desktop';
|
|
4
3
|
import '@alfalab/core-components-badge/modern';
|
|
5
4
|
import '@alfalab/core-components-keyboard-focusable/modern';
|
|
5
|
+
import '@alfalab/core-components-picker-button/modern/desktop';
|
|
6
6
|
import '@alfalab/hooks';
|
|
7
7
|
import '@juggle/resize-observer';
|
|
8
8
|
export { useCollapsibleElements } from './hooks/use-collapsible-elements.js';
|
|
@@ -13,11 +13,11 @@ import 'compute-scroll-into-view';
|
|
|
13
13
|
export { ScrollableContainer } from './components/scrollable-container/Component.js';
|
|
14
14
|
import './components/title/Component.js';
|
|
15
15
|
import './components/primary-tablist/Component.js';
|
|
16
|
-
import './index.module-
|
|
16
|
+
import './index.module-06a4ba0a.js';
|
|
17
17
|
import './components/primary-tablist/Component.desktop.js';
|
|
18
18
|
import '@alfalab/core-components-tag/modern';
|
|
19
19
|
import './components/secondary-tablist/Component.js';
|
|
20
|
-
import './index.module-
|
|
20
|
+
import './index.module-fff420f1.js';
|
|
21
21
|
import './components/secondary-tablist/Component.desktop.js';
|
|
22
22
|
export { Tab } from './components/tab/Component.js';
|
|
23
23
|
import './components/tabs/Component.js';
|