@alfalab/core-components-tabs 7.3.15 → 7.3.16
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-3885b0d7.d.ts +3 -2
- package/Component-3e68f8db.d.ts +2 -2
- package/Component-5e1b8383.d.ts +4 -0
- package/component-3885b0d7.d.ts +7 -188
- 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 +1 -1
- package/components/primary-tablist/index.css +29 -29
- package/components/primary-tablist/mobile.css +32 -32
- package/components/scrollable-container/Component.js +1 -1
- 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.desktop.js +2 -2
- package/components/tabs/Component.mobile.js +2 -2
- package/components/tabs/Component.responsive.js +2 -2
- package/cssm/Component-3885b0d7.d.ts +3 -2
- package/cssm/Component-3e68f8db.d.ts +2 -2
- package/cssm/Component-5e1b8383.d.ts +4 -0
- package/cssm/component-3885b0d7.d.ts +7 -188
- package/{hook-edac5428.d.ts → cssm/hook-3e68f8db.d.ts} +12 -6
- package/cssm/index-3e68f8db.d.ts +6 -5
- package/cssm/index-ebda875c.d.ts +35 -1
- package/cssm/index-f12ee135.d.ts +3 -0
- package/cssm/types-24527f54.d.ts +218 -0
- package/cssm/types-ebda875c.d.ts +1 -1
- package/cssm/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/cssm/{utils-f9462675.d.ts → utils-5e1b8383.d.ts} +1 -1
- package/cssm/utils-b64479aa.d.ts +8 -0
- package/desktop.js +2 -2
- package/esm/Component-3885b0d7.d.ts +3 -2
- package/esm/Component-3e68f8db.d.ts +2 -2
- package/esm/Component-5e1b8383.d.ts +4 -0
- package/esm/component-3885b0d7.d.ts +7 -188
- 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 +1 -1
- 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 +1 -1
- 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.desktop.js +2 -2
- package/esm/components/tabs/Component.mobile.js +2 -2
- package/esm/components/tabs/Component.responsive.js +2 -2
- package/esm/desktop.js +2 -2
- package/esm/{hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
- package/esm/index-3e68f8db.d.ts +6 -5
- package/esm/index-ebda875c.d.ts +35 -1
- package/esm/index-f12ee135.d.ts +3 -0
- package/esm/index.js +2 -2
- package/esm/index.module-6a12ad86.js +4 -0
- package/esm/index.module-75d5a536.js +4 -0
- package/esm/mobile.js +2 -2
- package/esm/responsive.js +2 -2
- package/esm/types-24527f54.d.ts +218 -0
- package/esm/types-ebda875c.d.ts +1 -1
- package/esm/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/{modern/utils-f9462675.d.ts → esm/utils-5e1b8383.d.ts} +1 -1
- package/esm/utils-b64479aa.d.ts +8 -0
- package/{cssm/hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
- package/index-3e68f8db.d.ts +6 -5
- package/index-ebda875c.d.ts +35 -1
- package/index-f12ee135.d.ts +3 -0
- package/index.js +2 -2
- package/index.module-530fdcfb.js +6 -0
- package/index.module-7c12577e.js +6 -0
- package/mobile.js +2 -2
- package/modern/Component-3885b0d7.d.ts +3 -2
- package/modern/Component-3e68f8db.d.ts +2 -2
- package/modern/Component-5e1b8383.d.ts +4 -0
- package/modern/component-3885b0d7.d.ts +7 -188
- package/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/modern/components/primary-tablist/Component.mobile.js +2 -2
- package/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +29 -29
- package/modern/components/primary-tablist/mobile.css +32 -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 +13 -13
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.desktop.js +2 -2
- package/modern/components/tabs/Component.mobile.js +2 -2
- package/modern/components/tabs/Component.responsive.js +2 -2
- package/modern/desktop.js +2 -2
- package/modern/{hook-edac5428.d.ts → hook-3e68f8db.d.ts} +12 -6
- package/modern/index-3e68f8db.d.ts +6 -5
- package/modern/index-ebda875c.d.ts +35 -1
- package/modern/index-f12ee135.d.ts +3 -0
- package/modern/index.js +2 -2
- package/modern/index.module-07bd96a9.js +4 -0
- package/modern/index.module-878a9975.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/modern/types-24527f54.d.ts +218 -0
- package/modern/types-ebda875c.d.ts +1 -1
- package/modern/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/{utils-f9462675.d.ts → modern/utils-5e1b8383.d.ts} +1 -1
- package/modern/utils-b64479aa.d.ts +8 -0
- package/package.json +2 -2
- package/responsive.js +2 -2
- package/types-24527f54.d.ts +218 -0
- package/types-ebda875c.d.ts +1 -1
- package/{typings-f9462675.d.ts → typings-5e1b8383.d.ts} +1 -1
- package/{esm/utils-f9462675.d.ts → utils-5e1b8383.d.ts} +1 -1
- package/utils-b64479aa.d.ts +8 -0
- package/Component-f9462675.d.ts +0 -5
- package/cssm/Component-f9462675.d.ts +0 -5
- package/cssm/index-48646db0.d.ts +0 -2
- package/cssm/index-7ca84eff.d.ts +0 -1
- package/esm/Component-f9462675.d.ts +0 -5
- package/esm/index-48646db0.d.ts +0 -2
- package/esm/index-7ca84eff.d.ts +0 -1
- package/esm/index.module-05e34160.js +0 -4
- package/esm/index.module-5e4e1525.js +0 -4
- package/index-48646db0.d.ts +0 -2
- package/index-7ca84eff.d.ts +0 -1
- package/index.module-bb5c409c.js +0 -6
- package/index.module-be7bd8e7.js +0 -6
- package/modern/Component-f9462675.d.ts +0 -5
- package/modern/index-48646db0.d.ts +0 -2
- package/modern/index-7ca84eff.d.ts +0 -1
- package/modern/index.module-d02a2eee.js +0 -4
- package/modern/index.module-e296336f.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4l9rm */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -50,29 +50,29 @@
|
|
|
50
50
|
|
|
51
51
|
/* size xl */
|
|
52
52
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
53
|
-
} .
|
|
53
|
+
} .tabs__component_of7lb {
|
|
54
54
|
position: relative;
|
|
55
55
|
display: inline-flex;
|
|
56
|
-
} .
|
|
56
|
+
} .tabs__fullWidthScroll_of7lb {
|
|
57
57
|
margin: 0 var(--gap-m);
|
|
58
|
-
} .
|
|
58
|
+
} .tabs__container_of7lb {
|
|
59
59
|
overflow: hidden;
|
|
60
60
|
|
|
61
61
|
/* focus-outline fix */
|
|
62
62
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
63
63
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
64
|
-
} .
|
|
64
|
+
} .tabs__title_of7lb {
|
|
65
65
|
white-space: nowrap;
|
|
66
|
-
} /* sizes */ .
|
|
66
|
+
} /* sizes */ .tabs__xxs_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
67
67
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
68
|
-
} .
|
|
68
|
+
} .tabs__xs_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
69
69
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
70
|
-
} .
|
|
70
|
+
} .tabs__s_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
71
71
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
72
|
-
} .
|
|
72
|
+
} .tabs__m_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
73
73
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
74
|
-
} .
|
|
74
|
+
} .tabs__l_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
75
75
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
76
|
-
} .
|
|
76
|
+
} .tabs__xl_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
77
77
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
78
78
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: igueh */
|
|
2
2
|
:root {
|
|
3
3
|
}/* deprecated */:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
}:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -51,30 +51,30 @@
|
|
|
51
51
|
|
|
52
52
|
/* size xl */
|
|
53
53
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
54
|
-
}.
|
|
54
|
+
}.tabs__component_of7lb {
|
|
55
55
|
position: relative;
|
|
56
56
|
display: inline-flex;
|
|
57
|
-
}.
|
|
57
|
+
}.tabs__fullWidthScroll_of7lb {
|
|
58
58
|
margin: 0 var(--gap-m);
|
|
59
|
-
}.
|
|
59
|
+
}.tabs__container_of7lb {
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
|
|
62
62
|
/* focus-outline fix */
|
|
63
63
|
margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
|
|
64
64
|
padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
|
|
65
|
-
}.
|
|
65
|
+
}.tabs__title_of7lb {
|
|
66
66
|
white-space: nowrap;
|
|
67
|
-
}/* sizes */.
|
|
67
|
+
}/* sizes */.tabs__xxs_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
68
68
|
margin-left: var(--secondary-tablist-xxs-gaps);
|
|
69
|
-
}.
|
|
69
|
+
}.tabs__xs_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
70
70
|
margin-left: var(--secondary-tablist-xs-gaps);
|
|
71
|
-
}.
|
|
71
|
+
}.tabs__s_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
72
72
|
margin-left: var(--secondary-tablist-s-gaps);
|
|
73
|
-
}.
|
|
73
|
+
}.tabs__m_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
74
74
|
margin-left: var(--secondary-tablist-m-gaps);
|
|
75
|
-
}.
|
|
75
|
+
}.tabs__l_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
76
76
|
margin-left: var(--secondary-tablist-l-gaps);
|
|
77
|
-
}.
|
|
77
|
+
}.tabs__xl_of7lb .tabs__title_of7lb + .tabs__title_of7lb {
|
|
78
78
|
margin-left: var(--secondary-tablist-xl-gaps);
|
|
79
79
|
} :root {
|
|
80
80
|
--color-dark-indigo: #0b1f35;
|
|
@@ -961,7 +961,7 @@
|
|
|
961
961
|
|
|
962
962
|
/* size xl */
|
|
963
963
|
--secondary-tablist-xl-gaps: var(--gap-m);
|
|
964
|
-
} .
|
|
965
|
-
} .
|
|
964
|
+
} .tabs__title_1d52w {
|
|
965
|
+
} .tabs__mobile_1d52w .tabs__title_1d52w + .tabs__title_1d52w {
|
|
966
966
|
margin-left: var(--secondary-tablist-mobile-gaps);
|
|
967
967
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
const styles = {"component":"
|
|
4
|
+
const styles = {"component":"tabs__component_fd0v5","hidden":"tabs__hidden_fd0v5"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Tab = ({ children, hidden, className, disabled, dataTestId }) => children ? (React.createElement("div", { className: cn(styles.component, {
|
|
@@ -16,10 +16,10 @@ import '../../synthetic-events.js';
|
|
|
16
16
|
import '../scrollable-container/Component.js';
|
|
17
17
|
import 'compute-scroll-into-view';
|
|
18
18
|
import '../title/Component.js';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-878a9975.js';
|
|
20
20
|
import '../secondary-tablist/Component.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern';
|
|
22
|
-
import '../../index.module-
|
|
22
|
+
import '../../index.module-07bd96a9.js';
|
|
23
23
|
|
|
24
24
|
const views = {
|
|
25
25
|
primary: PrimaryTabListDesktop,
|
|
@@ -16,10 +16,10 @@ import '../../synthetic-events.js';
|
|
|
16
16
|
import '../scrollable-container/Component.js';
|
|
17
17
|
import 'compute-scroll-into-view';
|
|
18
18
|
import '../title/Component.js';
|
|
19
|
-
import '../../index.module-
|
|
19
|
+
import '../../index.module-878a9975.js';
|
|
20
20
|
import '../secondary-tablist/Component.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern';
|
|
22
|
-
import '../../index.module-
|
|
22
|
+
import '../../index.module-07bd96a9.js';
|
|
23
23
|
|
|
24
24
|
const views = {
|
|
25
25
|
primary: PrimaryTabListMobile,
|
|
@@ -17,12 +17,12 @@ import '../../synthetic-events.js';
|
|
|
17
17
|
import '../scrollable-container/Component.js';
|
|
18
18
|
import 'compute-scroll-into-view';
|
|
19
19
|
import '../title/Component.js';
|
|
20
|
-
import '../../index.module-
|
|
20
|
+
import '../../index.module-878a9975.js';
|
|
21
21
|
import '../primary-tablist/Component.mobile.js';
|
|
22
22
|
import '../secondary-tablist/Component.desktop.js';
|
|
23
23
|
import '../secondary-tablist/Component.js';
|
|
24
24
|
import '@alfalab/core-components-tag/modern';
|
|
25
|
-
import '../../index.module-
|
|
25
|
+
import '../../index.module-07bd96a9.js';
|
|
26
26
|
import '../secondary-tablist/Component.mobile.js';
|
|
27
27
|
|
|
28
28
|
const views = {
|
package/modern/desktop.js
CHANGED
|
@@ -15,10 +15,10 @@ import './hooks/use-tablist-titles.js';
|
|
|
15
15
|
import '@alfalab/hooks';
|
|
16
16
|
import './synthetic-events.js';
|
|
17
17
|
import './components/title/Component.js';
|
|
18
|
-
import './index.module-
|
|
18
|
+
import './index.module-878a9975.js';
|
|
19
19
|
import 'compute-scroll-into-view';
|
|
20
20
|
import './components/secondary-tablist/Component.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern';
|
|
22
|
-
import './index.module-
|
|
22
|
+
import './index.module-07bd96a9.js';
|
|
23
23
|
import './components/tabs/Component.js';
|
|
24
24
|
import '@juggle/resize-observer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseSelectProps, OptionShape } from "./index-3e68f8db";
|
|
3
|
-
type
|
|
3
|
+
type UseSelectWithApplyProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Список выбранных пунктов
|
|
6
6
|
*/
|
|
@@ -17,6 +17,10 @@ type useSelectWithApplyProps = {
|
|
|
17
17
|
* Компонент выпадающего меню
|
|
18
18
|
*/
|
|
19
19
|
OptionsList?: BaseSelectProps['OptionsList'];
|
|
20
|
+
/**
|
|
21
|
+
* Пропсы, которые будут прокинуты в компонент списка
|
|
22
|
+
*/
|
|
23
|
+
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
20
24
|
/**
|
|
21
25
|
* Показывать кнопку очистки
|
|
22
26
|
*/
|
|
@@ -27,15 +31,16 @@ type useSelectWithApplyProps = {
|
|
|
27
31
|
showSelectAll?: boolean;
|
|
28
32
|
};
|
|
29
33
|
declare const SELECT_ALL_KEY = "select_all";
|
|
30
|
-
declare function useSelectWithApply({ options, selected, onChange, OptionsList, showClear, showSelectAll, }:
|
|
34
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, }: UseSelectWithApplyProps): {
|
|
31
35
|
OptionsList: import("react").ForwardRefExoticComponent<import("./index-3e68f8db").OptionsListProps & {
|
|
32
36
|
showClear?: boolean | undefined;
|
|
33
37
|
onClose?: (() => void) | undefined;
|
|
34
38
|
selectedDraft?: OptionShape[] | undefined;
|
|
35
|
-
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<
|
|
36
|
-
|
|
39
|
+
OptionsList?: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
40
|
+
Footer?: import("react").FC<import("./Component-ebda875c").FooterProps> | undefined;
|
|
41
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
42
|
optionsListProps: {
|
|
38
|
-
OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps
|
|
43
|
+
OptionsList: import("react").FC<import("./index-3e68f8db").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
39
44
|
showClear: boolean;
|
|
40
45
|
onClear: () => void;
|
|
41
46
|
onApply: () => void;
|
|
@@ -51,4 +56,5 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
51
56
|
onChange: (payload: import("./index-3e68f8db").BaseSelectChangePayload) => void;
|
|
52
57
|
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
53
58
|
};
|
|
54
|
-
export
|
|
59
|
+
export * from "./Component-5e1b8383";
|
|
60
|
+
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { FormControlProps } from "./Component-e67996e9";
|
|
5
|
-
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-
|
|
5
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-5e1b8383";
|
|
6
6
|
type SelectFieldProps = Omit<FormControlProps, "size"> & Record<string, unknown>;
|
|
7
7
|
type SelectProps = Omit<BaseSelectProps, "fieldProps"> & {
|
|
8
8
|
/**
|
|
@@ -92,7 +92,8 @@ type SkeletonProps = {
|
|
|
92
92
|
};
|
|
93
93
|
declare const Skeleton: React.FC<SkeletonProps>;
|
|
94
94
|
export { SelectFieldProps, SelectProps, Select, useSelectWithLoading, useLazyLoading, SkeletonProps, Skeleton };
|
|
95
|
-
export * from "./
|
|
96
|
-
export * from "./
|
|
97
|
-
export * from "./
|
|
98
|
-
export * from "./
|
|
95
|
+
export * from "./index-ebda875c";
|
|
96
|
+
export * from "./Component-5e1b8383";
|
|
97
|
+
export * from "./hook-3e68f8db";
|
|
98
|
+
export * from "./typings-5e1b8383";
|
|
99
|
+
export * from "./utils-5e1b8383";
|
|
@@ -1,3 +1,37 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="react-transition-group" />
|
|
3
|
-
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ButtonHTMLAttributes, ElementType, FC } from "react";
|
|
5
|
+
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Вид компонента
|
|
8
|
+
*/
|
|
9
|
+
view: "desktop" | "mobile";
|
|
10
|
+
/**
|
|
11
|
+
* Дополнительный класс
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Позиция крестика
|
|
16
|
+
*/
|
|
17
|
+
align?: "left" | "right";
|
|
18
|
+
/**
|
|
19
|
+
* Фиксирует крестик
|
|
20
|
+
*/
|
|
21
|
+
sticky?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Иконка
|
|
24
|
+
*/
|
|
25
|
+
icon?: ElementType;
|
|
26
|
+
/**
|
|
27
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
28
|
+
*/
|
|
29
|
+
dataTestId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Коллбэк закрытия.
|
|
32
|
+
*/
|
|
33
|
+
onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
34
|
+
}
|
|
35
|
+
declare const Closer: FC<CloserProps>;
|
|
36
|
+
export { CloserProps, Closer };
|
|
37
|
+
export * from "./Component-ebda875c";
|
package/modern/index.js
CHANGED
|
@@ -17,12 +17,12 @@ import './hooks/use-collapsible-elements.js';
|
|
|
17
17
|
import '@juggle/resize-observer';
|
|
18
18
|
import './synthetic-events.js';
|
|
19
19
|
import './components/title/Component.js';
|
|
20
|
-
import './index.module-
|
|
20
|
+
import './index.module-878a9975.js';
|
|
21
21
|
import './components/primary-tablist/Component.mobile.js';
|
|
22
22
|
import 'compute-scroll-into-view';
|
|
23
23
|
import './components/secondary-tablist/Component.desktop.js';
|
|
24
24
|
import './components/secondary-tablist/Component.js';
|
|
25
25
|
import '@alfalab/core-components-tag/modern';
|
|
26
|
-
import './index.module-
|
|
26
|
+
import './index.module-07bd96a9.js';
|
|
27
27
|
import './components/secondary-tablist/Component.mobile.js';
|
|
28
28
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const commonStyles = {"component":"tabs__component_of7lb","fullWidthScroll":"tabs__fullWidthScroll_of7lb","container":"tabs__container_of7lb","title":"tabs__title_of7lb","xxs":"tabs__xxs_of7lb","xs":"tabs__xs_of7lb","s":"tabs__s_of7lb","m":"tabs__m_of7lb","l":"tabs__l_of7lb","xl":"tabs__xl_of7lb"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const commonStyles = {"component":"tabs__component_1js6z","fullWidthScroll":"tabs__fullWidthScroll_1js6z","container":"tabs__container_1js6z","title":"tabs__title_1js6z","disabled":"tabs__disabled_1js6z","focused":"tabs__focused_1js6z","collapsed":"tabs__collapsed_1js6z","selected":"tabs__selected_1js6z","line":"tabs__line_1js6z","s":"tabs__s_1js6z","xs":"tabs__xs_1js6z","xxs":"tabs__xxs_1js6z","pickerWrapper":"tabs__pickerWrapper_1js6z","option":"tabs__option_1js6z","m":"tabs__m_1js6z","l":"tabs__l_1js6z","xl":"tabs__xl_1js6z","rightAddons":"tabs__rightAddons_1js6z"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/modern/mobile.js
CHANGED
|
@@ -16,9 +16,9 @@ import './hooks/use-collapsible-elements.js';
|
|
|
16
16
|
import '@juggle/resize-observer';
|
|
17
17
|
import './synthetic-events.js';
|
|
18
18
|
import './components/title/Component.js';
|
|
19
|
-
import './index.module-
|
|
19
|
+
import './index.module-878a9975.js';
|
|
20
20
|
import 'compute-scroll-into-view';
|
|
21
21
|
import './components/secondary-tablist/Component.js';
|
|
22
22
|
import '@alfalab/core-components-tag/modern';
|
|
23
|
-
import './index.module-
|
|
23
|
+
import './index.module-07bd96a9.js';
|
|
24
24
|
import './components/tabs/Component.js';
|
package/modern/responsive.js
CHANGED
|
@@ -16,13 +16,13 @@ import '@alfalab/core-components-picker-button/modern/desktop';
|
|
|
16
16
|
import './hooks/use-tablist-titles.js';
|
|
17
17
|
import './synthetic-events.js';
|
|
18
18
|
import './components/title/Component.js';
|
|
19
|
-
import './index.module-
|
|
19
|
+
import './index.module-878a9975.js';
|
|
20
20
|
import './components/primary-tablist/Component.mobile.js';
|
|
21
21
|
import 'compute-scroll-into-view';
|
|
22
22
|
import './components/secondary-tablist/Component.desktop.js';
|
|
23
23
|
import './components/secondary-tablist/Component.js';
|
|
24
24
|
import '@alfalab/core-components-tag/modern';
|
|
25
|
-
import './index.module-
|
|
25
|
+
import './index.module-07bd96a9.js';
|
|
26
26
|
import './components/secondary-tablist/Component.mobile.js';
|
|
27
27
|
import './components/tabs/Component.js';
|
|
28
28
|
import '@juggle/resize-observer';
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/// <reference types="react-transition-group" />
|
|
2
|
+
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
|
+
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
5
|
+
import { NavigationBarProps } from "./index-e81c389f";
|
|
6
|
+
type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
7
|
+
type BorderColorType = "accent" | "key" | "key-inverted" | "link" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "underline" | "underline-inverted" | "graphic-attention" | "graphic-link" | "graphic-negative" | "graphic-positive" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
8
|
+
type ShadowType = "shadow-xs" | "shadow-s" | "shadow-m" | "shadow-l" | "shadow-xl" | "shadow-xs-hard" | "shadow-s-hard" | "shadow-m-hard" | "shadow-l-hard" | "shadow-xl-hard" | "shadow-xs-up" | "shadow-s-up" | "shadow-m-up" | "shadow-l-up" | "shadow-xl-up" | "shadow-xs-hard-up" | "shadow-s-hard-up" | "shadow-m-hard-up" | "shadow-l-hard-up" | "shadow-xl-hard-up";
|
|
9
|
+
type GapType = "3xs" | "2xs" | "xs" | "s" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl";
|
|
10
|
+
type BottomSheetTitleAlign = 'center' | 'left';
|
|
11
|
+
type BottomSheetProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Контент
|
|
14
|
+
*/
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Управление видимостью
|
|
18
|
+
*/
|
|
19
|
+
open: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Заголовок
|
|
22
|
+
*/
|
|
23
|
+
title?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Размер заголовка
|
|
26
|
+
*/
|
|
27
|
+
titleSize?: NavigationBarProps['titleSize'];
|
|
28
|
+
/**
|
|
29
|
+
* Подзаголовок.
|
|
30
|
+
*/
|
|
31
|
+
subtitle?: NavigationBarProps['subtitle'];
|
|
32
|
+
/**
|
|
33
|
+
* Кнопка действия (обычно, это кнопка закрытия)
|
|
34
|
+
*/
|
|
35
|
+
actionButton?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Нода, компонент или функция возвращающая их
|
|
38
|
+
*
|
|
39
|
+
* Контейнер к которому будут добавляться порталы
|
|
40
|
+
*/
|
|
41
|
+
container?: BaseModalProps['container'];
|
|
42
|
+
/**
|
|
43
|
+
* Дополнительный класс
|
|
44
|
+
*/
|
|
45
|
+
className?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Дополнительный класс
|
|
48
|
+
*/
|
|
49
|
+
contentClassName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Дополнительные пропсы на контейнер.
|
|
52
|
+
*/
|
|
53
|
+
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
54
|
+
/**
|
|
55
|
+
* Дополнительный класс
|
|
56
|
+
*/
|
|
57
|
+
containerClassName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Цвет фона
|
|
60
|
+
*/
|
|
61
|
+
backgroundColor?: Extract<BackgroundColorType, 'primary' | 'secondary'>;
|
|
62
|
+
/**
|
|
63
|
+
* Дополнительный класс шапки
|
|
64
|
+
*/
|
|
65
|
+
headerClassName?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Дополнительный класс футера
|
|
68
|
+
*/
|
|
69
|
+
footerClassName?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Дополнительный класс для аддонов
|
|
72
|
+
*/
|
|
73
|
+
addonClassName?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Дополнительный класс для компонента крестика
|
|
76
|
+
*/
|
|
77
|
+
closerClassName?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Дополнительный класс для компонента стрелки назад
|
|
80
|
+
*/
|
|
81
|
+
backerClassName?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Дополнительный класс для компонента модального окна
|
|
84
|
+
*/
|
|
85
|
+
modalClassName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Дополнительный класс для обертки модального окна
|
|
88
|
+
*/
|
|
89
|
+
modalWrapperClassName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
92
|
+
*/
|
|
93
|
+
transitionProps?: Partial<TransitionProps>;
|
|
94
|
+
/**
|
|
95
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
96
|
+
*/
|
|
97
|
+
dataTestId?: string;
|
|
98
|
+
/**
|
|
99
|
+
* z-index компонента
|
|
100
|
+
*/
|
|
101
|
+
zIndex?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Будет ли свайпаться шторка
|
|
104
|
+
* @default true
|
|
105
|
+
*/
|
|
106
|
+
swipeable?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Слот слева
|
|
109
|
+
*/
|
|
110
|
+
leftAddons?: ReactNode;
|
|
111
|
+
/**
|
|
112
|
+
* Слот справа
|
|
113
|
+
*/
|
|
114
|
+
rightAddons?: ReactNode;
|
|
115
|
+
/**
|
|
116
|
+
* Слот снизу
|
|
117
|
+
*/
|
|
118
|
+
bottomAddons?: ReactNode;
|
|
119
|
+
/**
|
|
120
|
+
* Наличие компонента крестика
|
|
121
|
+
*/
|
|
122
|
+
hasCloser?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Наличие компонента стрелки назад
|
|
125
|
+
*/
|
|
126
|
+
hasBacker?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Выравнивание заголовка
|
|
129
|
+
*/
|
|
130
|
+
titleAlign?: BottomSheetTitleAlign;
|
|
131
|
+
/**
|
|
132
|
+
* Фиксирует шапку
|
|
133
|
+
*/
|
|
134
|
+
stickyHeader?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Фиксирует футер
|
|
137
|
+
*/
|
|
138
|
+
stickyFooter?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Высота шторки
|
|
141
|
+
*/
|
|
142
|
+
initialHeight?: 'default' | 'full';
|
|
143
|
+
/**
|
|
144
|
+
* Будет ли виден оверлэй
|
|
145
|
+
*/
|
|
146
|
+
hideOverlay?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Будет ли видна шапка
|
|
149
|
+
*/
|
|
150
|
+
hideHeader?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Будет ли обрезан заголовок
|
|
153
|
+
*/
|
|
154
|
+
trimTitle?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Запретить закрытие шторки кликом на оверлэй
|
|
157
|
+
*/
|
|
158
|
+
disableOverlayClick?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
161
|
+
*/
|
|
162
|
+
disableBlockingScroll?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
165
|
+
* Не анимировать шторку при изменении размера вьюпорта
|
|
166
|
+
*/
|
|
167
|
+
ignoreScreenChange?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Свойства для Бэкдропа
|
|
170
|
+
*/
|
|
171
|
+
backdropProps?: BaseModalProps['backdropProps'];
|
|
172
|
+
/**
|
|
173
|
+
* Реф на контейнер, в котором происходит скролл
|
|
174
|
+
*/
|
|
175
|
+
scrollableContainerRef?: RefObject<HTMLElement>;
|
|
176
|
+
/**
|
|
177
|
+
* Реф для управления компонентом.
|
|
178
|
+
*/
|
|
179
|
+
bottomSheetInstanceRef?: RefObject<{
|
|
180
|
+
scrollToArea: (idx: number) => void;
|
|
181
|
+
}>;
|
|
182
|
+
/**
|
|
183
|
+
* Реф на контейнер, в котором находится шторка
|
|
184
|
+
*/
|
|
185
|
+
sheetContainerRef?: RefObject<HTMLElement>;
|
|
186
|
+
/**
|
|
187
|
+
* Магнитные области видимой высоты шторки.
|
|
188
|
+
* Можно использовать значения в пикселях - 10(число), либо в процентах - 10%(строка).
|
|
189
|
+
* По-умолчанию -[0, window.innerHeight - '24px']
|
|
190
|
+
* массив должен состоять минимум из 2 элементов
|
|
191
|
+
*/
|
|
192
|
+
magneticAreas?: number[];
|
|
193
|
+
/**
|
|
194
|
+
* Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
|
|
195
|
+
*/
|
|
196
|
+
initialActiveAreaIndex?: number;
|
|
197
|
+
/**
|
|
198
|
+
* Отключает скролл контентной области.
|
|
199
|
+
*/
|
|
200
|
+
scrollLocked?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Скрыть скроллбар внутри шторки
|
|
203
|
+
*/
|
|
204
|
+
hideScrollbar?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Обработчик закрытия
|
|
207
|
+
*/
|
|
208
|
+
onClose: () => void;
|
|
209
|
+
/**
|
|
210
|
+
* Обработчик нажатия на стрелку назад
|
|
211
|
+
*/
|
|
212
|
+
onBack?: () => void;
|
|
213
|
+
/**
|
|
214
|
+
* Вызывается после притягивания к одной из `magneticAreas`
|
|
215
|
+
*/
|
|
216
|
+
onMagnetize?: (index: number) => void;
|
|
217
|
+
};
|
|
218
|
+
export { BackgroundColorType, BorderColorType, ShadowType, GapType, BottomSheetTitleAlign, BottomSheetProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-5e1b8383";
|
|
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, }: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const TIMEOUT = 500;
|
|
2
|
+
declare const SWIPE_VELOCITY = 0.4;
|
|
3
|
+
declare const MARKER_HEIGHT = 24;
|
|
4
|
+
declare const HEADER_OFFSET = 24;
|
|
5
|
+
declare const CLOSE_OFFSET = 0.2;
|
|
6
|
+
declare const SCROLL_OFFSET = 1;
|
|
7
|
+
declare const convertPercentToNumber: (value: string | number, fullHeight: number) => number;
|
|
8
|
+
export { TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, HEADER_OFFSET, CLOSE_OFFSET, SCROLL_OFFSET, convertPercentToNumber };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-tabs",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.16",
|
|
4
4
|
"description": "Tabs components",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@alfalab/core-components-keyboard-focusable": "^4.0.5",
|
|
21
21
|
"@alfalab/core-components-tag": "^5.3.0",
|
|
22
|
-
"@alfalab/core-components-picker-button": "^10.3.
|
|
22
|
+
"@alfalab/core-components-picker-button": "^10.3.16",
|
|
23
23
|
"@alfalab/core-components-badge": "^5.0.2",
|
|
24
24
|
"classnames": "^2.3.1",
|
|
25
25
|
"compute-scroll-into-view": "^1.0.20",
|