@alfalab/core-components-tabs 7.3.6 → 7.3.8
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-7ca84eff.d.ts +5 -0
- package/Component-ebda875c.d.ts +1 -0
- package/Component.mobile-e81c389f.d.ts +38 -0
- package/components/primary-tablist/Component.desktop.js +4 -4
- package/components/primary-tablist/Component.js +3 -3
- package/components/primary-tablist/Component.mobile.js +6 -6
- package/components/primary-tablist/Component.responsive.js +4 -4
- 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 +4 -4
- package/components/secondary-tablist/Component.js +2 -2
- package/components/secondary-tablist/Component.mobile.js +6 -6
- package/components/secondary-tablist/Component.responsive.js +4 -4
- 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 +5 -5
- package/components/tabs/Component.mobile.js +5 -5
- package/components/tabs/Component.responsive.js +5 -5
- package/components/title/Component.js +3 -3
- package/components/title/index.js +1 -1
- package/cssm/Component-7ca84eff.d.ts +5 -0
- package/cssm/Component-ebda875c.d.ts +1 -0
- package/cssm/Component.mobile-e81c389f.d.ts +38 -0
- package/cssm/components/primary-tablist/Component.desktop.js +3 -3
- package/cssm/components/primary-tablist/Component.js +3 -3
- package/cssm/components/primary-tablist/Component.mobile.js +4 -4
- package/cssm/components/primary-tablist/Component.responsive.js +3 -3
- package/cssm/components/secondary-tablist/Component.desktop.js +3 -3
- package/cssm/components/secondary-tablist/Component.js +2 -2
- package/cssm/components/secondary-tablist/Component.mobile.js +4 -4
- package/cssm/components/secondary-tablist/Component.responsive.js +3 -3
- package/cssm/components/tabs/Component.desktop.js +3 -3
- package/cssm/components/tabs/Component.mobile.js +3 -3
- package/cssm/components/tabs/Component.responsive.js +3 -3
- package/cssm/components/title/Component.js +3 -3
- package/cssm/components/title/index.js +1 -1
- package/cssm/desktop.js +1 -1
- package/cssm/hooks/use-collapsible-elements.js +2 -2
- package/cssm/hooks/use-tablist-titles.js +2 -2
- package/cssm/index-7ca84eff.d.ts +14 -1
- package/cssm/index-e81c389f.d.ts +141 -0
- package/cssm/index.js +1 -1
- package/cssm/mobile.js +1 -1
- package/cssm/responsive.js +1 -1
- package/cssm/synthetic-events.js +3 -3
- package/desktop.js +3 -3
- package/esm/Component-7ca84eff.d.ts +5 -0
- package/esm/Component-ebda875c.d.ts +1 -0
- package/esm/Component.mobile-e81c389f.d.ts +38 -0
- package/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/esm/components/primary-tablist/Component.js +1 -1
- package/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/esm/components/primary-tablist/index.css +29 -29
- package/esm/components/primary-tablist/mobile.css +32 -32
- package/esm/components/scrollable-container/Component.js +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 +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 +3 -3
- package/esm/components/tabs/Component.mobile.js +3 -3
- package/esm/components/tabs/Component.responsive.js +3 -3
- package/esm/components/title/Component.js +1 -1
- package/esm/components/title/index.js +1 -1
- package/esm/desktop.js +3 -3
- package/esm/hooks/use-collapsible-elements.js +1 -1
- package/esm/hooks/use-tablist-titles.js +1 -1
- package/esm/index-7ca84eff.d.ts +14 -1
- package/esm/index-e81c389f.d.ts +141 -0
- package/esm/index.js +3 -3
- package/esm/index.module-0c78b057.js +4 -0
- package/esm/index.module-ce2ae42b.js +4 -0
- package/esm/mobile.js +3 -3
- package/esm/responsive.js +3 -3
- package/esm/synthetic-events.js +1 -1
- package/hooks/use-collapsible-elements.js +2 -2
- package/hooks/use-tablist-titles.js +2 -2
- package/index-7ca84eff.d.ts +14 -1
- package/index-e81c389f.d.ts +141 -0
- package/index.js +3 -3
- package/index.module-c25214c2.js +6 -0
- package/index.module-de4145ce.js +6 -0
- package/mobile.js +3 -3
- package/modern/Component-7ca84eff.d.ts +5 -0
- package/modern/Component-ebda875c.d.ts +1 -0
- package/modern/Component.mobile-e81c389f.d.ts +38 -0
- 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/index-7ca84eff.d.ts +14 -1
- package/modern/index-e81c389f.d.ts +141 -0
- package/modern/index.js +2 -2
- package/modern/index.module-8f2fe904.js +4 -0
- package/modern/index.module-e978cb39.js +4 -0
- package/modern/mobile.js +2 -2
- package/modern/responsive.js +2 -2
- package/package.json +7 -6
- package/responsive.js +3 -3
- package/synthetic-events.js +3 -3
- package/Component-3885b0d7.d.ts +0 -49
- package/Component-3fe0d3e6.d.ts +0 -243
- package/Component-db573794.d.ts +0 -33
- package/cssm/Component-3885b0d7.d.ts +0 -49
- package/cssm/Component-3fe0d3e6.d.ts +0 -243
- package/cssm/Component-db573794.d.ts +0 -33
- package/cssm/tslib.es6-0e9bf404.d.ts +0 -36
- package/cssm/tslib.es6-0e9bf404.js +0 -54
- package/esm/Component-3885b0d7.d.ts +0 -49
- package/esm/Component-3fe0d3e6.d.ts +0 -243
- package/esm/Component-db573794.d.ts +0 -33
- package/esm/index.module-07028906.js +0 -4
- package/esm/index.module-65c3d6bc.js +0 -4
- package/esm/tslib.es6-3bc6f388.d.ts +0 -36
- package/esm/tslib.es6-3bc6f388.js +0 -51
- package/index.module-dd06cfbf.js +0 -6
- package/index.module-e46cc90c.js +0 -6
- package/modern/Component-3885b0d7.d.ts +0 -49
- package/modern/Component-3fe0d3e6.d.ts +0 -243
- package/modern/Component-db573794.d.ts +0 -33
- package/modern/index.module-3a799412.js +0 -4
- package/modern/index.module-d05b11d2.js +0 -4
- package/tslib.es6-57c5c09e.d.ts +0 -36
- package/tslib.es6-57c5c09e.js +0 -54
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/* eslint-disable complexity */
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { FC, ReactNode, ButtonHTMLAttributes, ElementType } 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
|
+
type NavigationBarProps = {
|
|
37
|
+
/**
|
|
38
|
+
* Контент шапки
|
|
39
|
+
*/
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Заголовок шапки
|
|
43
|
+
*/
|
|
44
|
+
title?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Подзаголовок (доступен только в мобильной версии)
|
|
47
|
+
*/
|
|
48
|
+
subtitle?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Размер заголовка (compact доступен только в мобильной версии)
|
|
51
|
+
*/
|
|
52
|
+
titleSize?: "default" | "compact";
|
|
53
|
+
/**
|
|
54
|
+
* Доп. класс для аддонов
|
|
55
|
+
*/
|
|
56
|
+
addonClassName?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Слот слева
|
|
59
|
+
*/
|
|
60
|
+
leftAddons?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Слот справа
|
|
63
|
+
*/
|
|
64
|
+
rightAddons?: ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Дополнительный класс для closer
|
|
67
|
+
*/
|
|
68
|
+
closerClassName?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Слот снизу
|
|
71
|
+
*/
|
|
72
|
+
bottomAddons?: ReactNode;
|
|
73
|
+
/**
|
|
74
|
+
* Наличие компонента крестика
|
|
75
|
+
*/
|
|
76
|
+
hasCloser?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Наличие кнопки "Назад"
|
|
79
|
+
*/
|
|
80
|
+
hasBackButton?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Дополнительный класс для правого аддона
|
|
83
|
+
*/
|
|
84
|
+
backButtonClassName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Дополнительный класс
|
|
87
|
+
*/
|
|
88
|
+
className?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Дополнительный класс для контента
|
|
91
|
+
*/
|
|
92
|
+
contentClassName?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Дополнительный класс для нижнего аддона
|
|
95
|
+
*/
|
|
96
|
+
bottomAddonsClassName?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Выравнивание заголовка
|
|
99
|
+
*/
|
|
100
|
+
align?: "left" | "center";
|
|
101
|
+
/**
|
|
102
|
+
* Обрезать ли заголовок
|
|
103
|
+
*/
|
|
104
|
+
trim?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Фиксирует шапку
|
|
107
|
+
*/
|
|
108
|
+
sticky?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
111
|
+
*/
|
|
112
|
+
dataTestId?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Фоновое изображение
|
|
115
|
+
*/
|
|
116
|
+
imageUrl?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Иконка closer.
|
|
119
|
+
*/
|
|
120
|
+
closerIcon?: React.ElementType;
|
|
121
|
+
/**
|
|
122
|
+
* Обработчик закрытия
|
|
123
|
+
*/
|
|
124
|
+
onClose?: CloserProps["onClose"];
|
|
125
|
+
/**
|
|
126
|
+
* обработчик клика по кнопке "назад"
|
|
127
|
+
*/
|
|
128
|
+
onBack?: () => void;
|
|
129
|
+
/**
|
|
130
|
+
* Вид шапки - мобильный или десктоп
|
|
131
|
+
*/
|
|
132
|
+
view: "desktop" | "mobile";
|
|
133
|
+
/**
|
|
134
|
+
* Ссылка на родительскую ноду.
|
|
135
|
+
*/
|
|
136
|
+
parentRef?: React.RefObject<HTMLDivElement>;
|
|
137
|
+
};
|
|
138
|
+
declare const NavigationBar: FC<NavigationBarProps>;
|
|
139
|
+
export { NavigationBar, CloserProps, Closer };
|
|
140
|
+
export * from "./Component-ebda875c";
|
|
141
|
+
export type { NavigationBarProps };
|
package/modern/index.js
CHANGED
|
@@ -18,11 +18,11 @@ import '@juggle/resize-observer';
|
|
|
18
18
|
import './synthetic-events.js';
|
|
19
19
|
import './components/title/Component.js';
|
|
20
20
|
import 'compute-scroll-into-view';
|
|
21
|
-
import './index.module-
|
|
21
|
+
import './index.module-8f2fe904.js';
|
|
22
22
|
import './components/primary-tablist/Component.mobile.js';
|
|
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-e978cb39.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_63cld","fullWidthScroll":"tabs__fullWidthScroll_63cld","container":"tabs__container_63cld","title":"tabs__title_63cld","disabled":"tabs__disabled_63cld","focused":"tabs__focused_63cld","collapsed":"tabs__collapsed_63cld","selected":"tabs__selected_63cld","line":"tabs__line_63cld","s":"tabs__s_63cld","xs":"tabs__xs_63cld","xxs":"tabs__xxs_63cld","pickerWrapper":"tabs__pickerWrapper_63cld","option":"tabs__option_63cld","m":"tabs__m_63cld","l":"tabs__l_63cld","xl":"tabs__xl_63cld","rightAddons":"tabs__rightAddons_63cld"};
|
|
2
|
+
require('./components/primary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const commonStyles = {"component":"tabs__component_qcder","fullWidthScroll":"tabs__fullWidthScroll_qcder","container":"tabs__container_qcder","title":"tabs__title_qcder","xxs":"tabs__xxs_qcder","xs":"tabs__xs_qcder","s":"tabs__s_qcder","m":"tabs__m_qcder","l":"tabs__l_qcder","xl":"tabs__xl_qcder"};
|
|
2
|
+
require('./components/secondary-tablist/index.css')
|
|
3
|
+
|
|
4
|
+
export { commonStyles as c };
|
package/modern/mobile.js
CHANGED
|
@@ -17,8 +17,8 @@ import '@juggle/resize-observer';
|
|
|
17
17
|
import './synthetic-events.js';
|
|
18
18
|
import './components/title/Component.js';
|
|
19
19
|
import 'compute-scroll-into-view';
|
|
20
|
-
import './index.module-
|
|
20
|
+
import './index.module-8f2fe904.js';
|
|
21
21
|
import './components/secondary-tablist/Component.js';
|
|
22
22
|
import '@alfalab/core-components-tag/modern';
|
|
23
|
-
import './index.module-
|
|
23
|
+
import './index.module-e978cb39.js';
|
|
24
24
|
import './components/tabs/Component.js';
|
package/modern/responsive.js
CHANGED
|
@@ -18,11 +18,11 @@ import '@juggle/resize-observer';
|
|
|
18
18
|
import './synthetic-events.js';
|
|
19
19
|
import './components/title/Component.js';
|
|
20
20
|
import 'compute-scroll-into-view';
|
|
21
|
-
import './index.module-
|
|
21
|
+
import './index.module-8f2fe904.js';
|
|
22
22
|
import './components/primary-tablist/Component.mobile.js';
|
|
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-e978cb39.js';
|
|
27
27
|
import './components/secondary-tablist/Component.mobile.js';
|
|
28
28
|
import './components/tabs/Component.js';
|
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.8",
|
|
4
4
|
"description": "Tabs components",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,14 +17,15 @@
|
|
|
17
17
|
"@types/lodash.debounce": "^4.0.6"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-keyboard-focusable": "^4.0.
|
|
21
|
-
"@alfalab/core-components-tag": "^5.0
|
|
22
|
-
"@alfalab/core-components-picker-button": "^10.3.
|
|
23
|
-
"@alfalab/core-components-badge": "^5.0.
|
|
20
|
+
"@alfalab/core-components-keyboard-focusable": "^4.0.4",
|
|
21
|
+
"@alfalab/core-components-tag": "^5.1.0",
|
|
22
|
+
"@alfalab/core-components-picker-button": "^10.3.8",
|
|
23
|
+
"@alfalab/core-components-badge": "^5.0.1",
|
|
24
24
|
"classnames": "^2.3.1",
|
|
25
25
|
"compute-scroll-into-view": "^1.0.20",
|
|
26
26
|
"lodash.debounce": "^4.0.8",
|
|
27
|
-
"@juggle/resize-observer": "^3.3.1"
|
|
27
|
+
"@juggle/resize-observer": "^3.3.1",
|
|
28
|
+
"tslib": "^2.4.0"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
31
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
|
package/responsive.js
CHANGED
|
@@ -7,7 +7,7 @@ var components_tab_Component = require('./components/tab/Component.js');
|
|
|
7
7
|
var components_tabs_Component_responsive = require('./components/tabs/Component.responsive.js');
|
|
8
8
|
var hooks_useTabs = require('./hooks/use-tabs.js');
|
|
9
9
|
var hooks_useCollapsibleElements = require('./hooks/use-collapsible-elements.js');
|
|
10
|
-
require('
|
|
10
|
+
require('tslib');
|
|
11
11
|
require('react');
|
|
12
12
|
require('@alfalab/hooks');
|
|
13
13
|
require('./components/primary-tablist/Component.desktop.js');
|
|
@@ -21,12 +21,12 @@ require('@juggle/resize-observer');
|
|
|
21
21
|
require('./synthetic-events.js');
|
|
22
22
|
require('./components/title/Component.js');
|
|
23
23
|
require('compute-scroll-into-view');
|
|
24
|
-
require('./index.module-
|
|
24
|
+
require('./index.module-c25214c2.js');
|
|
25
25
|
require('./components/primary-tablist/Component.mobile.js');
|
|
26
26
|
require('./components/secondary-tablist/Component.desktop.js');
|
|
27
27
|
require('./components/secondary-tablist/Component.js');
|
|
28
28
|
require('@alfalab/core-components-tag');
|
|
29
|
-
require('./index.module-
|
|
29
|
+
require('./index.module-de4145ce.js');
|
|
30
30
|
require('./components/secondary-tablist/Component.mobile.js');
|
|
31
31
|
require('./components/tabs/Component.js');
|
|
32
32
|
|
package/synthetic-events.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
|
|
5
5
|
var createSyntheticEvent = function (event) {
|
|
6
6
|
var isDefaultPrevented = false;
|
|
@@ -31,14 +31,14 @@ var createSyntheticEvent = function (event) {
|
|
|
31
31
|
type: event.type,
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
var createUIEvent = function (event) { return (
|
|
34
|
+
var createUIEvent = function (event) { return (tslib.__assign(tslib.__assign({}, createSyntheticEvent(event)), { detail: 0, view: {
|
|
35
35
|
styleMedia: {
|
|
36
36
|
type: '',
|
|
37
37
|
matchMedium: function () { return false; },
|
|
38
38
|
},
|
|
39
39
|
document: document,
|
|
40
40
|
} })); };
|
|
41
|
-
var createSyntheticMouseEvent = function (event) { return (
|
|
41
|
+
var createSyntheticMouseEvent = function (event) { return (tslib.__assign(tslib.__assign({}, createUIEvent(event)), { altKey: event.altKey, button: event.button, buttons: event.buttons, clientX: event.clientX, clientY: event.clientY, ctrlKey: event.ctrlKey, getModifierState: event.getModifierState, metaKey: event.metaKey, movementX: event.movementX, movementY: event.movementY, pageX: event.pageX, pageY: event.pageY, relatedTarget: event.relatedTarget, screenX: event.screenX, screenY: event.screenY, shiftKey: event.shiftKey })); };
|
|
42
42
|
|
|
43
43
|
exports.createSyntheticEvent = createSyntheticEvent;
|
|
44
44
|
exports.createSyntheticMouseEvent = createSyntheticMouseEvent;
|
package/Component-3885b0d7.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
type HeaderProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Контент шапки
|
|
5
|
-
*/
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Слот слева
|
|
9
|
-
*/
|
|
10
|
-
leftAddons?: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Наличие компонента крестика
|
|
13
|
-
*/
|
|
14
|
-
hasCloser?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Дополнительный класс
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Дополнительный класс для аддонов
|
|
21
|
-
*/
|
|
22
|
-
addonClassName?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Дополнительный класс для контента
|
|
25
|
-
*/
|
|
26
|
-
contentClassName?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Заголовок шапки
|
|
29
|
-
*/
|
|
30
|
-
title?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Выравнивание заголовка
|
|
33
|
-
*/
|
|
34
|
-
align?: 'left' | 'center';
|
|
35
|
-
/**
|
|
36
|
-
* Обрезать ли заголовок
|
|
37
|
-
*/
|
|
38
|
-
trim?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Фиксирует шапку
|
|
41
|
-
*/
|
|
42
|
-
sticky?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
45
|
-
*/
|
|
46
|
-
dataTestId?: string;
|
|
47
|
-
};
|
|
48
|
-
declare const Header: FC<HeaderProps>;
|
|
49
|
-
export { HeaderProps, Header };
|
package/Component-3fe0d3e6.d.ts
DELETED
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ButtonHTMLAttributes, ElementType, FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
import { IconButtonProps } from "./index-ebda875c";
|
|
4
|
-
import { BottomSheetTitleAlign } from "./index-7ca84eff";
|
|
5
|
-
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
-
/**
|
|
7
|
-
* Дополнительный класс
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Размер кнопки
|
|
12
|
-
*/
|
|
13
|
-
size?: IconButtonProps["size"];
|
|
14
|
-
/**
|
|
15
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
16
|
-
*/
|
|
17
|
-
dataTestId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Иконка
|
|
20
|
-
*/
|
|
21
|
-
icon?: ElementType;
|
|
22
|
-
};
|
|
23
|
-
declare const Closer: React.FC<CloserProps>;
|
|
24
|
-
declare const colors: readonly [
|
|
25
|
-
"tertiary",
|
|
26
|
-
"disabled",
|
|
27
|
-
"accent",
|
|
28
|
-
"primary",
|
|
29
|
-
"attention",
|
|
30
|
-
"positive",
|
|
31
|
-
"secondary",
|
|
32
|
-
"tertiary-inverted",
|
|
33
|
-
"primary-inverted",
|
|
34
|
-
"secondary-inverted",
|
|
35
|
-
"link",
|
|
36
|
-
"negative"
|
|
37
|
-
];
|
|
38
|
-
type Color = (typeof colors)[number];
|
|
39
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
40
|
-
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
41
|
-
type TextBaseProps = {
|
|
42
|
-
/**
|
|
43
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
44
|
-
*/
|
|
45
|
-
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
46
|
-
/**
|
|
47
|
-
* Цвет текста
|
|
48
|
-
*/
|
|
49
|
-
color?: Color;
|
|
50
|
-
/**
|
|
51
|
-
* Толщина шрифта
|
|
52
|
-
*/
|
|
53
|
-
weight?: "regular" | "medium" | "bold";
|
|
54
|
-
/**
|
|
55
|
-
* Делает цифры моноширинными
|
|
56
|
-
*/
|
|
57
|
-
monospaceNumbers?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* HTML тег
|
|
60
|
-
*/
|
|
61
|
-
tag?: "span" | "div";
|
|
62
|
-
/**
|
|
63
|
-
* Css-класс для стилизации (native prop)
|
|
64
|
-
*/
|
|
65
|
-
className?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Id компонента для тестов
|
|
68
|
-
*/
|
|
69
|
-
dataTestId?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Контент (native prop)
|
|
72
|
-
*/
|
|
73
|
-
children?: React.ReactNode;
|
|
74
|
-
/**
|
|
75
|
-
* Добавляет отступы к тэгу 'p'
|
|
76
|
-
*/
|
|
77
|
-
defaultMargins?: never;
|
|
78
|
-
/**
|
|
79
|
-
* Количество строк (не поддерживает IE)
|
|
80
|
-
*/
|
|
81
|
-
rowLimit?: 1 | 2 | 3;
|
|
82
|
-
};
|
|
83
|
-
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
84
|
-
tag?: "p";
|
|
85
|
-
defaultMargins?: boolean;
|
|
86
|
-
};
|
|
87
|
-
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
88
|
-
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
89
|
-
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
90
|
-
/**
|
|
91
|
-
* HTML тег
|
|
92
|
-
*/
|
|
93
|
-
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
94
|
-
/**
|
|
95
|
-
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
96
|
-
*/
|
|
97
|
-
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
98
|
-
/**
|
|
99
|
-
* Цвет текста
|
|
100
|
-
*/
|
|
101
|
-
color?: Color;
|
|
102
|
-
/**
|
|
103
|
-
* Толщина шрифта
|
|
104
|
-
*/
|
|
105
|
-
weight?: "regular" | "medium" | "bold";
|
|
106
|
-
/**
|
|
107
|
-
* Шрифт текста
|
|
108
|
-
*/
|
|
109
|
-
font?: "styrene" | "system";
|
|
110
|
-
/**
|
|
111
|
-
* Добавляет отступы
|
|
112
|
-
*/
|
|
113
|
-
defaultMargins?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Css-класс для стилизации (native prop)
|
|
116
|
-
*/
|
|
117
|
-
className?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Id компонента для тестов
|
|
120
|
-
*/
|
|
121
|
-
dataTestId?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Контент (native prop)
|
|
124
|
-
*/
|
|
125
|
-
children?: React.ReactNode;
|
|
126
|
-
/**
|
|
127
|
-
* Количество строк (не поддерживает IE)
|
|
128
|
-
*/
|
|
129
|
-
rowLimit?: 1 | 2 | 3;
|
|
130
|
-
};
|
|
131
|
-
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
132
|
-
declare const Typography: {
|
|
133
|
-
Title: FC<TitleProps>;
|
|
134
|
-
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
135
|
-
TitleResponsive: FC<TitleProps>;
|
|
136
|
-
TitleMobile: FC<TitleMobileProps>;
|
|
137
|
-
};
|
|
138
|
-
declare const typographyPresets: {
|
|
139
|
-
mobile: {
|
|
140
|
-
list: {
|
|
141
|
-
text: {
|
|
142
|
-
primary: {
|
|
143
|
-
tag: string;
|
|
144
|
-
view: string;
|
|
145
|
-
};
|
|
146
|
-
secondary: {
|
|
147
|
-
tag: string;
|
|
148
|
-
color: string;
|
|
149
|
-
view: string;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
type BackerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
156
|
-
/**
|
|
157
|
-
* Дополнительный класс
|
|
158
|
-
*/
|
|
159
|
-
className?: string;
|
|
160
|
-
/**
|
|
161
|
-
* Размер кнопки
|
|
162
|
-
*/
|
|
163
|
-
size?: IconButtonProps["size"];
|
|
164
|
-
/**
|
|
165
|
-
* Иконка
|
|
166
|
-
*/
|
|
167
|
-
icon?: ElementType;
|
|
168
|
-
/**
|
|
169
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
170
|
-
*/
|
|
171
|
-
dataTestId?: string;
|
|
172
|
-
/**
|
|
173
|
-
* Обработчик нажатия
|
|
174
|
-
*/
|
|
175
|
-
onClick?: () => void;
|
|
176
|
-
};
|
|
177
|
-
declare const Backer: React.FC<BackerProps>;
|
|
178
|
-
declare const TitleResponsive: FC<TitleProps>;
|
|
179
|
-
type HeaderProps = {
|
|
180
|
-
/**
|
|
181
|
-
* Заголовок
|
|
182
|
-
*/
|
|
183
|
-
title?: ReactNode;
|
|
184
|
-
/**
|
|
185
|
-
* Дополнительный класс
|
|
186
|
-
*/
|
|
187
|
-
headerClassName?: string;
|
|
188
|
-
/**
|
|
189
|
-
* Дополнительный класс для аддонов
|
|
190
|
-
*/
|
|
191
|
-
addonClassName?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Дополнительный класс для компонента крестика
|
|
194
|
-
*/
|
|
195
|
-
closerClassName?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Дополнительный класс для компонента стрелки назад
|
|
198
|
-
*/
|
|
199
|
-
backerClassName?: string;
|
|
200
|
-
/**
|
|
201
|
-
* Слот слева
|
|
202
|
-
*/
|
|
203
|
-
leftAddons?: ReactNode;
|
|
204
|
-
/**
|
|
205
|
-
* Слот справа
|
|
206
|
-
*/
|
|
207
|
-
rightAddons?: ReactNode;
|
|
208
|
-
/**
|
|
209
|
-
* Слот снизу
|
|
210
|
-
*/
|
|
211
|
-
bottomAddons?: ReactNode;
|
|
212
|
-
/**
|
|
213
|
-
* Наличие компонента крестика
|
|
214
|
-
*/
|
|
215
|
-
hasCloser?: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* Наличие компонента стрелки назад
|
|
218
|
-
*/
|
|
219
|
-
hasBacker?: boolean;
|
|
220
|
-
/**
|
|
221
|
-
* Выравнивание заголовка
|
|
222
|
-
*/
|
|
223
|
-
titleAlign?: BottomSheetTitleAlign;
|
|
224
|
-
/**
|
|
225
|
-
* Будет ли обрезан заголовок
|
|
226
|
-
*/
|
|
227
|
-
trimTitle?: boolean;
|
|
228
|
-
/**
|
|
229
|
-
* Фиксирует шапку
|
|
230
|
-
*/
|
|
231
|
-
sticky?: boolean;
|
|
232
|
-
/**
|
|
233
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
234
|
-
*/
|
|
235
|
-
dataTestId?: string;
|
|
236
|
-
/**
|
|
237
|
-
* Обработчик нажатия на стрелку назад
|
|
238
|
-
*/
|
|
239
|
-
onBack?: () => void;
|
|
240
|
-
};
|
|
241
|
-
declare const Header: FC<HeaderProps>;
|
|
242
|
-
export { CloserProps, Closer, Typography, typographyPresets, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
|
|
243
|
-
export type { TitleProps, TextProps, Color };
|
package/Component-db573794.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, ElementType, FC } from 'react';
|
|
2
|
-
import { IconButtonProps } from "./index-ebda875c";
|
|
3
|
-
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
|
-
/**
|
|
5
|
-
* Дополнительный класс
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Позиция крестика
|
|
10
|
-
*/
|
|
11
|
-
align?: 'left' | 'right';
|
|
12
|
-
/**
|
|
13
|
-
* Размер кнопки
|
|
14
|
-
*/
|
|
15
|
-
size?: IconButtonProps['size'];
|
|
16
|
-
/**
|
|
17
|
-
* Фиксирует крестик
|
|
18
|
-
*/
|
|
19
|
-
sticky?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Иконка
|
|
22
|
-
*/
|
|
23
|
-
icon?: ElementType;
|
|
24
|
-
/**
|
|
25
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
26
|
-
*/
|
|
27
|
-
dataTestId?: string;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Компонент только для внутреннего использования. Используйте <Header />
|
|
31
|
-
*/
|
|
32
|
-
declare const Closer: FC<CloserProps>;
|
|
33
|
-
export { CloserProps, Closer };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
type HeaderProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Контент шапки
|
|
5
|
-
*/
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Слот слева
|
|
9
|
-
*/
|
|
10
|
-
leftAddons?: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Наличие компонента крестика
|
|
13
|
-
*/
|
|
14
|
-
hasCloser?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Дополнительный класс
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Дополнительный класс для аддонов
|
|
21
|
-
*/
|
|
22
|
-
addonClassName?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Дополнительный класс для контента
|
|
25
|
-
*/
|
|
26
|
-
contentClassName?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Заголовок шапки
|
|
29
|
-
*/
|
|
30
|
-
title?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Выравнивание заголовка
|
|
33
|
-
*/
|
|
34
|
-
align?: 'left' | 'center';
|
|
35
|
-
/**
|
|
36
|
-
* Обрезать ли заголовок
|
|
37
|
-
*/
|
|
38
|
-
trim?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Фиксирует шапку
|
|
41
|
-
*/
|
|
42
|
-
sticky?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
45
|
-
*/
|
|
46
|
-
dataTestId?: string;
|
|
47
|
-
};
|
|
48
|
-
declare const Header: FC<HeaderProps>;
|
|
49
|
-
export { HeaderProps, Header };
|