@alfalab/core-components-tabs 8.1.2 → 8.1.4
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/{modern/Component-dd8ca091.d.ts → Component-0f4b9bed.d.ts} +1 -1
- package/{esm/Component-9211a437.d.ts → Component-89f0cb07.d.ts} +2 -2
- package/Component-8b2c2707.d.ts +1 -1
- package/Component.desktop-0aa4e915.d.ts +5 -0
- package/Component.desktop-785df74d.d.ts +1 -1
- package/Component.mobile-16b1285a.d.ts +5 -0
- package/Component.mobile-d7e9f69d.d.ts +1 -1
- package/collapsible.js +1 -1
- package/components/primary-tablist/Component.collapsible.js +1 -1
- 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 +30 -31
- package/components/primary-tablist/mobile.css +33 -34
- package/components/scroll-controls/Component.js +1 -1
- package/components/scroll-controls/index.css +14 -14
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +6 -6
- 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.collapsible.js +1 -1
- 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/{esm/Component-dd8ca091.d.ts → cssm/Component-0f4b9bed.d.ts} +1 -1
- package/{Component-9211a437.d.ts → cssm/Component-89f0cb07.d.ts} +2 -2
- package/cssm/Component-8b2c2707.d.ts +1 -1
- package/cssm/Component.desktop-0aa4e915.d.ts +5 -0
- package/cssm/Component.desktop-785df74d.d.ts +1 -1
- package/cssm/Component.mobile-16b1285a.d.ts +5 -0
- package/cssm/Component.mobile-d7e9f69d.d.ts +1 -1
- package/cssm/components/primary-tablist/index.module.css +0 -1
- package/cssm/desktop-89f0cb07.d.ts +2 -0
- package/cssm/hook-8abfea97.d.ts +8 -8
- package/cssm/hooks/use-collapsible-elements.js +2 -3
- package/cssm/index-8b2c2707.d.ts +2 -2
- package/cssm/index-c44170fe.d.ts +117 -9
- package/cssm/index-c76d6398.d.ts +2 -2
- package/cssm/index-ebda875c.d.ts +21 -86
- package/cssm/index-f12ee135.d.ts +1 -1
- package/cssm/mobile-89f0cb07.d.ts +2 -0
- package/cssm/shared-4cd3936b.d.ts +4 -4
- package/cssm/{typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
- package/{esm/typings-9211a437.d.ts → cssm/typings-89f0cb07.d.ts} +5 -7
- package/cssm/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
- package/desktop-89f0cb07.d.ts +2 -0
- package/desktop.js +2 -2
- package/{Component-dd8ca091.d.ts → esm/Component-0f4b9bed.d.ts} +1 -1
- package/{cssm/Component-9211a437.d.ts → esm/Component-89f0cb07.d.ts} +2 -2
- package/esm/Component-8b2c2707.d.ts +1 -1
- package/esm/Component.desktop-0aa4e915.d.ts +5 -0
- package/esm/Component.desktop-785df74d.d.ts +1 -1
- package/esm/Component.mobile-16b1285a.d.ts +5 -0
- package/esm/Component.mobile-d7e9f69d.d.ts +1 -1
- package/esm/collapsible.js +1 -1
- package/esm/components/primary-tablist/Component.collapsible.js +1 -1
- 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 +30 -31
- package/esm/components/primary-tablist/mobile.css +33 -34
- package/esm/components/scroll-controls/Component.js +1 -1
- package/esm/components/scroll-controls/index.css +14 -14
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +6 -6
- 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.collapsible.js +1 -1
- 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-89f0cb07.d.ts +2 -0
- package/esm/desktop.js +2 -2
- package/esm/hook-8abfea97.d.ts +8 -8
- package/esm/hooks/use-collapsible-elements.js +2 -3
- package/esm/index-8b2c2707.d.ts +2 -2
- package/esm/index-c44170fe.d.ts +117 -9
- package/esm/index-c76d6398.d.ts +2 -2
- package/esm/index-f12ee135.d.ts +1 -1
- package/esm/index.js +2 -2
- package/esm/index.module-6ca3e651.js +4 -0
- package/esm/index.module-b8f71248.js +4 -0
- package/esm/mobile-89f0cb07.d.ts +2 -0
- package/esm/mobile.js +2 -2
- package/esm/shared-4cd3936b.d.ts +4 -4
- package/esm/{typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
- package/{modern/typings-9211a437.d.ts → esm/typings-89f0cb07.d.ts} +5 -7
- package/esm/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
- package/hook-8abfea97.d.ts +8 -8
- package/hooks/use-collapsible-elements.js +2 -3
- package/index-8b2c2707.d.ts +2 -2
- package/index-c44170fe.d.ts +117 -9
- package/index-c76d6398.d.ts +2 -2
- package/index-f12ee135.d.ts +1 -1
- package/index.js +2 -2
- package/index.module-a1834bb1.js +6 -0
- package/index.module-aa1bbee7.js +6 -0
- package/mobile-89f0cb07.d.ts +2 -0
- package/mobile.js +2 -2
- package/{cssm/Component-dd8ca091.d.ts → modern/Component-0f4b9bed.d.ts} +1 -1
- package/modern/{Component-9211a437.d.ts → Component-89f0cb07.d.ts} +2 -2
- package/modern/Component-8b2c2707.d.ts +1 -1
- package/modern/Component.desktop-0aa4e915.d.ts +5 -0
- package/modern/Component.desktop-785df74d.d.ts +1 -1
- package/modern/Component.mobile-16b1285a.d.ts +5 -0
- package/modern/Component.mobile-d7e9f69d.d.ts +1 -1
- package/modern/collapsible.js +1 -1
- package/modern/components/primary-tablist/Component.collapsible.js +1 -1
- 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 +30 -31
- package/modern/components/primary-tablist/mobile.css +33 -34
- package/modern/components/scroll-controls/Component.js +1 -1
- package/modern/components/scroll-controls/index.css +14 -14
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +6 -6
- 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.collapsible.js +1 -1
- 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-89f0cb07.d.ts +2 -0
- package/modern/desktop.js +2 -2
- package/modern/hook-8abfea97.d.ts +8 -8
- package/modern/hooks/use-collapsible-elements.js +2 -3
- package/modern/index-8b2c2707.d.ts +2 -2
- package/modern/index-c44170fe.d.ts +117 -9
- package/modern/index-c76d6398.d.ts +2 -2
- package/modern/index-f12ee135.d.ts +1 -1
- package/modern/index.js +2 -2
- package/modern/index.module-361f7c8f.js +4 -0
- package/modern/index.module-446f354e.js +4 -0
- package/modern/mobile-89f0cb07.d.ts +2 -0
- package/modern/mobile.js +2 -2
- package/modern/shared-4cd3936b.d.ts +4 -4
- package/modern/{typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
- package/{cssm/typings-9211a437.d.ts → modern/typings-89f0cb07.d.ts} +5 -7
- package/modern/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
- package/package.json +4 -4
- package/shared-4cd3936b.d.ts +4 -4
- package/src/components/primary-tablist/index.module.css +0 -1
- package/src/hooks/use-collapsible-elements.ts +2 -6
- package/{typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
- package/{typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
- package/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
- package/Component.desktop-2e2b2125.d.ts +0 -6
- package/Component.mobile-755fbaa3.d.ts +0 -6
- package/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/Component.desktop-2e2b2125.d.ts +0 -6
- package/cssm/Component.mobile-755fbaa3.d.ts +0 -6
- package/cssm/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/desktop-2e2b2125.d.ts +0 -2
- package/cssm/mobile-755fbaa3.d.ts +0 -2
- package/desktop-2e2b2125.d.ts +0 -2
- package/esm/Component.desktop-2e2b2125.d.ts +0 -6
- package/esm/Component.mobile-755fbaa3.d.ts +0 -6
- package/esm/Component.responsive-785df74d.d.ts +0 -26
- package/esm/desktop-2e2b2125.d.ts +0 -2
- package/esm/index.module-b71c96ac.js +0 -4
- package/esm/index.module-e27d67ec.js +0 -4
- package/esm/mobile-755fbaa3.d.ts +0 -2
- package/index.module-22089ba7.js +0 -6
- package/index.module-ad26a796.js +0 -6
- package/mobile-755fbaa3.d.ts +0 -2
- package/modern/Component.desktop-2e2b2125.d.ts +0 -6
- package/modern/Component.mobile-755fbaa3.d.ts +0 -6
- package/modern/Component.responsive-785df74d.d.ts +0 -26
- package/modern/desktop-2e2b2125.d.ts +0 -2
- package/modern/index.module-9374bba1.js +0 -4
- package/modern/index.module-ba38ee10.js +0 -4
- package/modern/mobile-755fbaa3.d.ts +0 -2
- /package/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/cssm/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/cssm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
- /package/esm/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/esm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
- /package/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
- /package/modern/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/modern/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
|
@@ -1,6 +1,119 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
|
|
3
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
4
|
+
type StyleColors = {
|
|
5
|
+
default: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
inverted: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
13
|
+
/**
|
|
14
|
+
* Растягивает компонент на ширину контейнера
|
|
15
|
+
*/
|
|
16
|
+
block?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Размер компонента
|
|
19
|
+
*/
|
|
20
|
+
size?: "s" | "m" | "l" | "xl";
|
|
21
|
+
/**
|
|
22
|
+
* Набор цветов для компонента
|
|
23
|
+
*/
|
|
24
|
+
colors?: "default" | "inverted";
|
|
25
|
+
/**
|
|
26
|
+
* Заблокированное состояние
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Cостояние только для чтения
|
|
31
|
+
*/
|
|
32
|
+
readOnly?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Заполненное состояние
|
|
35
|
+
*/
|
|
36
|
+
filled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Выбранное (фокус) состояние
|
|
39
|
+
*/
|
|
40
|
+
focused?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Отображение ошибки
|
|
43
|
+
*/
|
|
44
|
+
error?: ReactNode | boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Текст подсказки
|
|
47
|
+
*/
|
|
48
|
+
hint?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Лейбл компонента
|
|
51
|
+
*/
|
|
52
|
+
label?: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Вид лейбла внутри / снаружи
|
|
55
|
+
*/
|
|
56
|
+
labelView?: "inner" | "outer";
|
|
57
|
+
/**
|
|
58
|
+
* Слот слева
|
|
59
|
+
*/
|
|
60
|
+
leftAddons?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Слот справа
|
|
63
|
+
*/
|
|
64
|
+
rightAddons?: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Слот под полем
|
|
67
|
+
*/
|
|
68
|
+
bottomAddons?: ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Дополнительный класс
|
|
71
|
+
*/
|
|
72
|
+
className?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Дополнительный класс для поля
|
|
75
|
+
*/
|
|
76
|
+
fieldClassName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Дополнительный класс для поля
|
|
79
|
+
*/
|
|
80
|
+
inputWrapperClassName?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Дополнительный класс для лейбла
|
|
83
|
+
*/
|
|
84
|
+
labelClassName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Дополнительный класс для аддонов
|
|
87
|
+
*/
|
|
88
|
+
addonsClassName?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Свойства для обертки левых аддонов
|
|
91
|
+
*/
|
|
92
|
+
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
93
|
+
/**
|
|
94
|
+
* Свойства для обертки правых аддонов
|
|
95
|
+
*/
|
|
96
|
+
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
97
|
+
/**
|
|
98
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
99
|
+
*/
|
|
100
|
+
dataTestId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Компонент поля (инпут, textarea и пр.)
|
|
103
|
+
*/
|
|
104
|
+
children?: ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* Основные стили компонента.
|
|
107
|
+
*/
|
|
108
|
+
styles: {
|
|
109
|
+
[key: string]: string;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Стили компонента для default и inverted режима.
|
|
113
|
+
*/
|
|
114
|
+
colorStyles?: StyleColors;
|
|
115
|
+
};
|
|
116
|
+
type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
4
117
|
/**
|
|
5
118
|
* Контрольная точка, с нее начинается desktop версия
|
|
6
119
|
* @default 1024
|
|
@@ -11,13 +124,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
|
|
|
11
124
|
*/
|
|
12
125
|
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
13
126
|
};
|
|
14
|
-
declare const
|
|
127
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
15
128
|
breakpoint?: number | undefined;
|
|
16
129
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
17
|
-
} & React.RefAttributes<
|
|
18
|
-
|
|
19
|
-
declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
-
type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
|
|
21
|
-
declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
-
export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
|
|
23
|
-
export * from "./Component.desktop-785df74d";
|
|
130
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
131
|
+
export { FormControlProps, FormControl };
|
|
@@ -44,7 +44,7 @@ type NavigationBarProps = {
|
|
|
44
44
|
/**
|
|
45
45
|
* Подзаголовок (доступен только в мобильной версии)
|
|
46
46
|
*/
|
|
47
|
-
subtitle?:
|
|
47
|
+
subtitle?: ReactNode;
|
|
48
48
|
/**
|
|
49
49
|
* Размер заголовка (compact доступен только в мобильной версии)
|
|
50
50
|
*/
|
|
@@ -136,5 +136,5 @@ type NavigationBarProps = {
|
|
|
136
136
|
};
|
|
137
137
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
138
138
|
export { NavigationBar };
|
|
139
|
-
export * from "./Component-
|
|
139
|
+
export * from "./Component-69921c40";
|
|
140
140
|
export type { NavigationBarProps };
|
package/modern/index.js
CHANGED
|
@@ -19,12 +19,12 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
19
19
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
20
|
import './components/scroll-controls/utils.js';
|
|
21
21
|
import './components/title/Component.js';
|
|
22
|
-
import './index.module-
|
|
22
|
+
import './index.module-446f354e.js';
|
|
23
23
|
import './components/primary-tablist/Component.mobile.js';
|
|
24
24
|
import './components/secondary-tablist/Component.desktop.js';
|
|
25
25
|
import '@alfalab/core-components-tag/modern/desktop';
|
|
26
26
|
import './components/secondary-tablist/Component.js';
|
|
27
|
-
import './index.module-
|
|
27
|
+
import './index.module-361f7c8f.js';
|
|
28
28
|
import './components/secondary-tablist/Component.mobile.js';
|
|
29
29
|
import '@alfalab/core-components-tag/modern/mobile';
|
|
30
30
|
import './components/tabs/Component.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const commonStyles = {"component":"tabs__component_6o1gl","fullWidthScroll":"tabs__fullWidthScroll_6o1gl","container":"tabs__container_6o1gl","title":"tabs__title_6o1gl","xxs":"tabs__xxs_6o1gl","xs":"tabs__xs_6o1gl","s":"tabs__s_6o1gl","m":"tabs__m_6o1gl","l":"tabs__l_6o1gl","xl":"tabs__xl_6o1gl"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const commonStyles = {"component":"tabs__component_vtb9t","fullWidthScroll":"tabs__fullWidthScroll_vtb9t","container":"tabs__container_vtb9t","title":"tabs__title_vtb9t","disabled":"tabs__disabled_vtb9t","focused":"tabs__focused_vtb9t","collapsed":"tabs__collapsed_vtb9t","selected":"tabs__selected_vtb9t","line":"tabs__line_vtb9t","option":"tabs__option_vtb9t","s":"tabs__s_vtb9t","xs":"tabs__xs_vtb9t","xxs":"tabs__xxs_vtb9t","pickerWrapper":"tabs__pickerWrapper_vtb9t","m":"tabs__m_vtb9t","l":"tabs__l_vtb9t","xl":"tabs__xl_vtb9t","rightAddons":"tabs__rightAddons_vtb9t"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/modern/mobile.js
CHANGED
|
@@ -17,8 +17,8 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
|
17
17
|
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
18
18
|
import './components/scroll-controls/utils.js';
|
|
19
19
|
import './components/title/Component.js';
|
|
20
|
-
import './index.module-
|
|
20
|
+
import './index.module-446f354e.js';
|
|
21
21
|
import '@alfalab/core-components-tag/modern/mobile';
|
|
22
22
|
import './components/secondary-tablist/Component.js';
|
|
23
|
-
import './index.module-
|
|
23
|
+
import './index.module-361f7c8f.js';
|
|
24
24
|
import './components/tabs/Component.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-0f4b9bed";
|
|
5
5
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
6
6
|
import { UseSelectWithApplyProps } from "./hook-8abfea97";
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -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-0f4b9bed";
|
|
104
104
|
export { useSelectWithLoading, useLazyLoading, AdditionalMobileProps, SelectMobileProps, SelectMobile, FooterProps, Footer };
|
|
105
105
|
export * from "./hook-8abfea97";
|
|
106
|
-
export * from "./typings-
|
|
107
|
-
export * from "./utils-
|
|
106
|
+
export * from "./typings-0f4b9bed";
|
|
107
|
+
export * from "./utils-0f4b9bed";
|
|
@@ -459,6 +459,10 @@ type OptionsListProps = {
|
|
|
459
459
|
* Обработчик отмены изменений
|
|
460
460
|
*/
|
|
461
461
|
onClear?: () => void;
|
|
462
|
+
/**
|
|
463
|
+
* Указать индекс пункта для hover состояния
|
|
464
|
+
*/
|
|
465
|
+
setHighlightedIndex?: (index: number) => void;
|
|
462
466
|
};
|
|
463
467
|
type OptgroupProps = {
|
|
464
468
|
/**
|
|
@@ -69,6 +69,8 @@ type ComponentProps = {
|
|
|
69
69
|
* Дочерние элементы.
|
|
70
70
|
*/
|
|
71
71
|
children?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
type PrivateButtonProps = {
|
|
72
74
|
/**
|
|
73
75
|
* Основные стили компонента.
|
|
74
76
|
*/
|
|
@@ -80,16 +82,12 @@ type ComponentProps = {
|
|
|
80
82
|
*/
|
|
81
83
|
colorStylesMap: StyleColors;
|
|
82
84
|
};
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
|
|
86
|
-
type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
87
|
-
type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
88
|
-
type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
|
|
85
|
+
type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
86
|
+
type ButtonProps = CommonButtonProps & {
|
|
89
87
|
/**
|
|
90
88
|
* Контрольная точка, с нее начинается desktop версия
|
|
91
89
|
* @default 1024
|
|
92
90
|
*/
|
|
93
91
|
breakpoint?: number;
|
|
94
92
|
};
|
|
95
|
-
export { StyleColors, ComponentProps,
|
|
93
|
+
export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
|
|
@@ -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-0f4b9bed";
|
|
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, }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-tabs",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.4",
|
|
4
4
|
"description": "Tabs components",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@alfalab/core-components-keyboard-focusable": "^4.1.0",
|
|
46
46
|
"@alfalab/core-components-tag": "^6.0.1",
|
|
47
|
-
"@alfalab/core-components-picker-button": "^11.1.
|
|
47
|
+
"@alfalab/core-components-picker-button": "^11.1.8",
|
|
48
48
|
"@alfalab/core-components-badge": "^5.2.0",
|
|
49
49
|
"@alfalab/core-components-mq": "^4.2.0",
|
|
50
50
|
"@alfalab/hooks": "^1.13.0",
|
|
51
|
-
"@alfalab/core-components-shared": "^0.
|
|
52
|
-
"@alfalab/core-components-icon-button": "^6.
|
|
51
|
+
"@alfalab/core-components-shared": "^0.6.0",
|
|
52
|
+
"@alfalab/core-components-icon-button": "^6.3.1",
|
|
53
53
|
"@alfalab/icons-glyph": "^2.108.0",
|
|
54
54
|
"classnames": "^2.3.1",
|
|
55
55
|
"compute-scroll-into-view": "^1.0.20",
|
package/shared-4cd3936b.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-0f4b9bed";
|
|
5
5
|
import { BottomSheetProps } from "./index-f12ee135";
|
|
6
6
|
import { UseSelectWithApplyProps } from "./hook-8abfea97";
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -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-0f4b9bed";
|
|
104
104
|
export { useSelectWithLoading, useLazyLoading, AdditionalMobileProps, SelectMobileProps, SelectMobile, FooterProps, Footer };
|
|
105
105
|
export * from "./hook-8abfea97";
|
|
106
|
-
export * from "./typings-
|
|
107
|
-
export * from "./utils-
|
|
106
|
+
export * from "./typings-0f4b9bed";
|
|
107
|
+
export * from "./utils-0f4b9bed";
|
|
@@ -50,12 +50,8 @@ export const useCollapsibleElements = <
|
|
|
50
50
|
|
|
51
51
|
collapseElements(inlineSize);
|
|
52
52
|
} else {
|
|
53
|
-
//
|
|
54
|
-
|
|
55
|
-
inlineSize: number;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
collapseElements(inlineSize);
|
|
53
|
+
// old browser compatibility. See https://caniuse.com/mdn-api_resizeobserverentry_contentboxsize
|
|
54
|
+
collapseElements(entries[0].contentRect.width);
|
|
59
55
|
}
|
|
60
56
|
};
|
|
61
57
|
|
|
@@ -459,6 +459,10 @@ type OptionsListProps = {
|
|
|
459
459
|
* Обработчик отмены изменений
|
|
460
460
|
*/
|
|
461
461
|
onClear?: () => void;
|
|
462
|
+
/**
|
|
463
|
+
* Указать индекс пункта для hover состояния
|
|
464
|
+
*/
|
|
465
|
+
setHighlightedIndex?: (index: number) => void;
|
|
462
466
|
};
|
|
463
467
|
type OptgroupProps = {
|
|
464
468
|
/**
|
|
@@ -69,6 +69,8 @@ type ComponentProps = {
|
|
|
69
69
|
* Дочерние элементы.
|
|
70
70
|
*/
|
|
71
71
|
children?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
type PrivateButtonProps = {
|
|
72
74
|
/**
|
|
73
75
|
* Основные стили компонента.
|
|
74
76
|
*/
|
|
@@ -80,16 +82,12 @@ type ComponentProps = {
|
|
|
80
82
|
*/
|
|
81
83
|
colorStylesMap: StyleColors;
|
|
82
84
|
};
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
|
|
86
|
-
type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
87
|
-
type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
88
|
-
type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
|
|
85
|
+
type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
86
|
+
type ButtonProps = CommonButtonProps & {
|
|
89
87
|
/**
|
|
90
88
|
* Контрольная точка, с нее начинается desktop версия
|
|
91
89
|
* @default 1024
|
|
92
90
|
*/
|
|
93
91
|
breakpoint?: number;
|
|
94
92
|
};
|
|
95
|
-
export { StyleColors, ComponentProps,
|
|
93
|
+
export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
|
|
@@ -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-0f4b9bed";
|
|
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, }: {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonMobileProps, ButtonMobile };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
-
type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
|
|
5
|
-
/**
|
|
6
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
-
* @default 1024
|
|
8
|
-
*/
|
|
9
|
-
breakpoint?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
12
|
-
*/
|
|
13
|
-
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
14
|
-
};
|
|
15
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
16
|
-
/**
|
|
17
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
18
|
-
* @default 1024
|
|
19
|
-
*/
|
|
20
|
-
breakpoint?: number | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
-
*/
|
|
24
|
-
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
export { FormControlProps, FormControl };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonMobileProps, ButtonMobile };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
-
type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
|
|
5
|
-
/**
|
|
6
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
-
* @default 1024
|
|
8
|
-
*/
|
|
9
|
-
breakpoint?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
12
|
-
*/
|
|
13
|
-
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
14
|
-
};
|
|
15
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
16
|
-
/**
|
|
17
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
18
|
-
* @default 1024
|
|
19
|
-
*/
|
|
20
|
-
breakpoint?: number | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
-
*/
|
|
24
|
-
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
export { FormControlProps, FormControl };
|
package/desktop-2e2b2125.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonMobileProps, ButtonMobile };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
-
type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
|
|
5
|
-
/**
|
|
6
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
-
* @default 1024
|
|
8
|
-
*/
|
|
9
|
-
breakpoint?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
12
|
-
*/
|
|
13
|
-
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
14
|
-
};
|
|
15
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
16
|
-
/**
|
|
17
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
18
|
-
* @default 1024
|
|
19
|
-
*/
|
|
20
|
-
breakpoint?: number | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
-
*/
|
|
24
|
-
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
export { FormControlProps, FormControl };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var commonStyles = {"component":"tabs__component_14rm8","fullWidthScroll":"tabs__fullWidthScroll_14rm8","container":"tabs__container_14rm8","title":"tabs__title_14rm8","disabled":"tabs__disabled_14rm8","focused":"tabs__focused_14rm8","collapsed":"tabs__collapsed_14rm8","selected":"tabs__selected_14rm8","line":"tabs__line_14rm8","option":"tabs__option_14rm8","s":"tabs__s_14rm8","xs":"tabs__xs_14rm8","xxs":"tabs__xxs_14rm8","pickerWrapper":"tabs__pickerWrapper_14rm8","m":"tabs__m_14rm8","l":"tabs__l_14rm8","xl":"tabs__xl_14rm8","rightAddons":"tabs__rightAddons_14rm8"};
|
|
2
|
-
require('./components/primary-tablist/index.css')
|
|
3
|
-
|
|
4
|
-
export { commonStyles as c };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var commonStyles = {"component":"tabs__component_bvdbq","fullWidthScroll":"tabs__fullWidthScroll_bvdbq","container":"tabs__container_bvdbq","title":"tabs__title_bvdbq","xxs":"tabs__xxs_bvdbq","xs":"tabs__xs_bvdbq","s":"tabs__s_bvdbq","m":"tabs__m_bvdbq","l":"tabs__l_bvdbq","xl":"tabs__xl_bvdbq"};
|
|
2
|
-
require('./components/secondary-tablist/index.css')
|
|
3
|
-
|
|
4
|
-
export { commonStyles as c };
|
package/esm/mobile-755fbaa3.d.ts
DELETED
package/index.module-22089ba7.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var commonStyles = {"component":"tabs__component_bvdbq","fullWidthScroll":"tabs__fullWidthScroll_bvdbq","container":"tabs__container_bvdbq","title":"tabs__title_bvdbq","xxs":"tabs__xxs_bvdbq","xs":"tabs__xs_bvdbq","s":"tabs__s_bvdbq","m":"tabs__m_bvdbq","l":"tabs__l_bvdbq","xl":"tabs__xl_bvdbq"};
|
|
4
|
-
require('./components/secondary-tablist/index.css')
|
|
5
|
-
|
|
6
|
-
exports.commonStyles = commonStyles;
|
package/index.module-ad26a796.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var commonStyles = {"component":"tabs__component_14rm8","fullWidthScroll":"tabs__fullWidthScroll_14rm8","container":"tabs__container_14rm8","title":"tabs__title_14rm8","disabled":"tabs__disabled_14rm8","focused":"tabs__focused_14rm8","collapsed":"tabs__collapsed_14rm8","selected":"tabs__selected_14rm8","line":"tabs__line_14rm8","option":"tabs__option_14rm8","s":"tabs__s_14rm8","xs":"tabs__xs_14rm8","xxs":"tabs__xxs_14rm8","pickerWrapper":"tabs__pickerWrapper_14rm8","m":"tabs__m_14rm8","l":"tabs__l_14rm8","xl":"tabs__xl_14rm8","rightAddons":"tabs__rightAddons_14rm8"};
|
|
4
|
-
require('./components/primary-tablist/index.css')
|
|
5
|
-
|
|
6
|
-
exports.commonStyles = commonStyles;
|
package/mobile-755fbaa3.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonMobileProps, ButtonMobile };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
-
type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
|
|
5
|
-
/**
|
|
6
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
-
* @default 1024
|
|
8
|
-
*/
|
|
9
|
-
breakpoint?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
12
|
-
*/
|
|
13
|
-
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
14
|
-
};
|
|
15
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
16
|
-
/**
|
|
17
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
18
|
-
* @default 1024
|
|
19
|
-
*/
|
|
20
|
-
breakpoint?: number | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
-
*/
|
|
24
|
-
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
export { FormControlProps, FormControl };
|