@alfalab/core-components-date-range-input 3.0.11 → 3.1.0
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.desktop.d.ts +4 -0
- package/Component.desktop.js +4 -0
- package/Component.mobile.d.ts +4 -0
- package/Component.mobile.js +4 -0
- package/Component.responsive.d.ts +4 -0
- package/Component.responsive.js +4 -0
- package/components/date-range-input/Component.d.ts +2 -2
- package/components/date-range-input/Component.js +6 -5
- package/components/date-range-input/index.css +7 -7
- package/cssm/Component.desktop.d.ts +4 -0
- package/cssm/Component.desktop.js +4 -0
- package/cssm/Component.mobile.d.ts +4 -0
- package/cssm/Component.mobile.js +4 -0
- package/cssm/Component.responsive.d.ts +4 -0
- package/cssm/Component.responsive.js +4 -0
- package/cssm/components/date-range-input/Component.d.ts +2 -2
- package/cssm/components/date-range-input/Component.js +5 -4
- package/cssm/desktop/index.d.ts +2 -0
- package/cssm/{desktop.js → desktop/index.js} +4 -4
- package/cssm/mobile/index.d.ts +2 -0
- package/cssm/{mobile.js → mobile/index.js} +4 -4
- package/desktop/index.d.ts +2 -0
- package/{desktop.js → desktop/index.js} +3 -3
- package/desktop/package.json +3 -0
- package/esm/Component.desktop.d.ts +4 -0
- package/esm/Component.desktop.js +4 -0
- package/esm/Component.mobile.d.ts +4 -0
- package/esm/Component.mobile.js +4 -0
- package/esm/Component.responsive.d.ts +4 -0
- package/esm/Component.responsive.js +4 -0
- package/esm/components/date-range-input/Component.d.ts +2 -2
- package/esm/components/date-range-input/Component.js +6 -5
- package/esm/components/date-range-input/index.css +7 -7
- package/esm/desktop/index.d.ts +2 -0
- package/esm/{desktop.js → desktop/index.js} +3 -3
- package/esm/mobile/index.d.ts +2 -0
- package/esm/{mobile.js → mobile/index.js} +3 -3
- package/mobile/index.d.ts +2 -0
- package/{mobile.js → mobile/index.js} +3 -3
- package/mobile/package.json +3 -0
- package/modern/Component.desktop.d.ts +4 -0
- package/modern/Component.desktop.js +4 -0
- package/modern/Component.mobile.d.ts +4 -0
- package/modern/Component.mobile.js +4 -0
- package/modern/Component.responsive.d.ts +4 -0
- package/modern/Component.responsive.js +4 -0
- package/modern/components/date-range-input/Component.d.ts +2 -2
- package/modern/components/date-range-input/Component.js +6 -5
- package/modern/components/date-range-input/index.css +7 -7
- package/modern/desktop/index.d.ts +2 -0
- package/modern/{desktop.js → desktop/index.js} +3 -3
- package/modern/mobile/index.d.ts +2 -0
- package/modern/{mobile.js → mobile/index.js} +3 -3
- package/package.json +4 -24
- package/src/Component.desktop.tsx +4 -0
- package/src/Component.mobile.tsx +4 -0
- package/src/Component.responsive.tsx +4 -0
- package/src/components/date-range-input/Component.tsx +22 -18
- package/src/desktop/index.ts +1 -0
- package/src/desktop/package.json +3 -0
- package/src/mobile/index.ts +1 -0
- package/src/mobile/package.json +3 -0
- package/Component-63dec22f.d.ts +0 -184
- package/Component-72308007.d.ts +0 -6
- package/Component-72dda473.d.ts +0 -53
- package/Component-b5b4c59f.d.ts +0 -388
- package/Component.desktop-2e2b2125.d.ts +0 -6
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.desktop-b5b4c59f.d.ts +0 -205
- package/Component.mobile-755fbaa3.d.ts +0 -6
- package/Component.mobile-d7e9f69d.d.ts +0 -6
- package/Component.mobile-ebda875c.d.ts +0 -7
- package/Component.responsive-2e2b2125.d.ts +0 -5
- package/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/Component-63dec22f.d.ts +0 -184
- package/cssm/Component-72308007.d.ts +0 -6
- package/cssm/Component-72dda473.d.ts +0 -53
- package/cssm/Component-b5b4c59f.d.ts +0 -388
- package/cssm/Component.desktop-2e2b2125.d.ts +0 -6
- package/cssm/Component.desktop-785df74d.d.ts +0 -6
- package/cssm/Component.desktop-b5b4c59f.d.ts +0 -205
- package/cssm/Component.mobile-755fbaa3.d.ts +0 -6
- package/cssm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/cssm/Component.mobile-ebda875c.d.ts +0 -7
- package/cssm/Component.responsive-2e2b2125.d.ts +0 -5
- package/cssm/Component.responsive-785df74d.d.ts +0 -26
- package/cssm/desktop-63dec22f.d.ts +0 -2
- package/cssm/desktop.d.ts +0 -2
- package/cssm/index-3109f463.d.ts +0 -62
- package/cssm/index-72308007.d.ts +0 -54
- package/cssm/index-72dda473.d.ts +0 -12
- package/cssm/index-9211a437.d.ts +0 -2
- package/cssm/index-ebda875c.d.ts +0 -35
- package/cssm/index-f034f741.d.ts +0 -80
- package/cssm/mobile-c219f8ca.d.ts +0 -1
- package/cssm/mobile.d.ts +0 -2
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-1c79e231.d.ts +0 -113
- package/cssm/typings-5684a67d.d.ts +0 -23
- package/cssm/typings-9211a437.d.ts +0 -95
- package/cssm/useCalendar-5684a67d.d.ts +0 -97
- package/cssm/useSkeleton-1b036d4b.d.ts +0 -40
- package/cssm/utils-5684a67d.d.ts +0 -88
- package/desktop-63dec22f.d.ts +0 -2
- package/desktop.d.ts +0 -2
- package/esm/Component-63dec22f.d.ts +0 -184
- package/esm/Component-72308007.d.ts +0 -297
- package/esm/Component-72dda473.d.ts +0 -53
- package/esm/Component-b5b4c59f.d.ts +0 -388
- package/esm/Component.desktop-2e2b2125.d.ts +0 -6
- package/esm/Component.desktop-785df74d.d.ts +0 -6
- package/esm/Component.desktop-b5b4c59f.d.ts +0 -198
- package/esm/Component.mobile-755fbaa3.d.ts +0 -6
- package/esm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/esm/Component.mobile-ebda875c.d.ts +0 -7
- package/esm/Component.responsive-2e2b2125.d.ts +0 -5
- package/esm/Component.responsive-785df74d.d.ts +0 -26
- package/esm/desktop-63dec22f.d.ts +0 -2
- package/esm/desktop.d.ts +0 -2
- package/esm/index-3109f463.d.ts +0 -62
- package/esm/index-72308007.d.ts +0 -54
- package/esm/index-72dda473.d.ts +0 -12
- package/esm/index-9211a437.d.ts +0 -2
- package/esm/index-ebda875c.d.ts +0 -2
- package/esm/index-f034f741.d.ts +0 -83
- package/esm/mobile-c219f8ca.d.ts +0 -1
- package/esm/mobile.d.ts +0 -2
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-1c79e231.d.ts +0 -113
- package/esm/typings-5684a67d.d.ts +0 -23
- package/esm/typings-9211a437.d.ts +0 -95
- package/esm/useCalendar-5684a67d.d.ts +0 -97
- package/esm/useSkeleton-1b036d4b.d.ts +0 -40
- package/esm/utils-5684a67d.d.ts +0 -88
- package/index-3109f463.d.ts +0 -62
- package/index-72308007.d.ts +0 -54
- package/index-72dda473.d.ts +0 -12
- package/index-9211a437.d.ts +0 -2
- package/index-ebda875c.d.ts +0 -35
- package/index-f034f741.d.ts +0 -80
- package/mobile-c219f8ca.d.ts +0 -1
- package/mobile.d.ts +0 -2
- package/modern/Component-63dec22f.d.ts +0 -184
- package/modern/Component-72308007.d.ts +0 -6
- package/modern/Component-72dda473.d.ts +0 -53
- package/modern/Component-b5b4c59f.d.ts +0 -388
- package/modern/Component.desktop-2e2b2125.d.ts +0 -6
- package/modern/Component.desktop-785df74d.d.ts +0 -6
- package/modern/Component.desktop-b5b4c59f.d.ts +0 -205
- package/modern/Component.mobile-755fbaa3.d.ts +0 -6
- package/modern/Component.mobile-d7e9f69d.d.ts +0 -6
- package/modern/Component.mobile-ebda875c.d.ts +0 -7
- package/modern/Component.responsive-2e2b2125.d.ts +0 -5
- package/modern/Component.responsive-785df74d.d.ts +0 -26
- package/modern/desktop-63dec22f.d.ts +0 -2
- package/modern/desktop.d.ts +0 -2
- package/modern/index-3109f463.d.ts +0 -62
- package/modern/index-72308007.d.ts +0 -54
- package/modern/index-72dda473.d.ts +0 -12
- package/modern/index-9211a437.d.ts +0 -2
- package/modern/index-ebda875c.d.ts +0 -35
- package/modern/index-f034f741.d.ts +0 -80
- package/modern/mobile-c219f8ca.d.ts +0 -1
- package/modern/mobile.d.ts +0 -2
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-1c79e231.d.ts +0 -113
- package/modern/typings-5684a67d.d.ts +0 -23
- package/modern/typings-9211a437.d.ts +0 -95
- package/modern/useCalendar-5684a67d.d.ts +0 -97
- package/modern/useSkeleton-1b036d4b.d.ts +0 -40
- package/modern/utils-5684a67d.d.ts +0 -88
- package/src/desktop.ts +0 -1
- package/src/mobile.ts +0 -1
- package/types-1b036d4b.d.ts +0 -13
- package/types-1c79e231.d.ts +0 -113
- package/typings-5684a67d.d.ts +0 -23
- package/typings-9211a437.d.ts +0 -95
- package/useCalendar-5684a67d.d.ts +0 -97
- package/useSkeleton-1b036d4b.d.ts +0 -40
- package/utils-5684a67d.d.ts +0 -88
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FC, ReactNode, MouseEvent } from "react";
|
|
4
|
-
import { SelectorView, Month, DayAddons, View } from "./typings-5684a67d";
|
|
5
|
-
import { PeriodType } from "./index-f034f741";
|
|
6
|
-
type HeaderProps = {
|
|
7
|
-
/**
|
|
8
|
-
* Вид шапки — месяц и год или только месяц
|
|
9
|
-
*/
|
|
10
|
-
view?: SelectorView;
|
|
11
|
-
/**
|
|
12
|
-
* Отображать тень? (нужна при прокрутке)
|
|
13
|
-
*/
|
|
14
|
-
withShadow?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Дочерние элементы.
|
|
17
|
-
*/
|
|
18
|
-
children?: ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Дополнительный класс
|
|
21
|
-
*/
|
|
22
|
-
className?: string;
|
|
23
|
-
};
|
|
24
|
-
declare const Header: FC<HeaderProps>;
|
|
25
|
-
type MonthYearHeaderProps = {
|
|
26
|
-
/**
|
|
27
|
-
* Активная дата
|
|
28
|
-
*/
|
|
29
|
-
value?: Date;
|
|
30
|
-
/**
|
|
31
|
-
* Дополнительный класс
|
|
32
|
-
*/
|
|
33
|
-
className?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Обработчик нажатия на кнопку месяца
|
|
36
|
-
*/
|
|
37
|
-
onMonthClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Обработчик нажатия на кнопку года
|
|
40
|
-
*/
|
|
41
|
-
onYearClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
44
|
-
*/
|
|
45
|
-
dataTestId?: string;
|
|
46
|
-
};
|
|
47
|
-
declare const MonthYearHeader: FC<MonthYearHeaderProps>;
|
|
48
|
-
type MonthsTableProps = {
|
|
49
|
-
/**
|
|
50
|
-
* Массив месяцев
|
|
51
|
-
*/
|
|
52
|
-
months?: Month[];
|
|
53
|
-
/**
|
|
54
|
-
* Выбранный месяц
|
|
55
|
-
*/
|
|
56
|
-
selectedMonth?: Date;
|
|
57
|
-
/**
|
|
58
|
-
* Доп пропсы для переданного месяца
|
|
59
|
-
*/
|
|
60
|
-
getMonthProps: (day: Month) => Record<string, unknown>;
|
|
61
|
-
/**
|
|
62
|
-
* Должен ли календарь подстраиваться под ширину родителя.
|
|
63
|
-
*/
|
|
64
|
-
responsive?: boolean;
|
|
65
|
-
};
|
|
66
|
-
declare const MonthsTable: FC<MonthsTableProps>;
|
|
67
|
-
declare const formatPeriod: (valueFrom: Date, valueTo: Date, periodType: PeriodType, showCurrentYear?: boolean) => string;
|
|
68
|
-
declare const getYearSelectorValue: (valueFrom: Date | undefined, showCurrentYear: boolean) => number | "";
|
|
69
|
-
declare const shiftValues: (valueFrom: Date, valueTo: Date, periodType: PeriodType, direction: "prev" | "next") => {
|
|
70
|
-
valueFrom: Date;
|
|
71
|
-
valueTo: Date;
|
|
72
|
-
};
|
|
73
|
-
type YearsTableProps = {
|
|
74
|
-
/**
|
|
75
|
-
* Массив лет
|
|
76
|
-
*/
|
|
77
|
-
years?: Date[];
|
|
78
|
-
/**
|
|
79
|
-
* Выбранный год
|
|
80
|
-
*/
|
|
81
|
-
selectedYear?: Date;
|
|
82
|
-
/**
|
|
83
|
-
* Доп. пропсы для переданного года
|
|
84
|
-
*/
|
|
85
|
-
getYearProps: (year: Date) => Record<string, unknown>;
|
|
86
|
-
/**
|
|
87
|
-
* Должен ли календарь подстраиваться под ширину родителя.
|
|
88
|
-
*/
|
|
89
|
-
responsive?: boolean;
|
|
90
|
-
};
|
|
91
|
-
declare const YearsTable: FC<YearsTableProps>;
|
|
92
|
-
type CalendarDesktopProps = {
|
|
93
|
-
/**
|
|
94
|
-
* Дополнительный класс
|
|
95
|
-
*/
|
|
96
|
-
className?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Дополнительный класс шапки десктопного календаря
|
|
99
|
-
*/
|
|
100
|
-
headerClassName?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Дополнительный класс контента десктопного календаря
|
|
103
|
-
*/
|
|
104
|
-
contentClassName?: string;
|
|
105
|
-
/**
|
|
106
|
-
* Вид по умолчанию (выбор дней, месяцев, лет)
|
|
107
|
-
*/
|
|
108
|
-
defaultView?: View;
|
|
109
|
-
/**
|
|
110
|
-
* Вид шапки — месяц и год или только месяц
|
|
111
|
-
*/
|
|
112
|
-
selectorView?: SelectorView;
|
|
113
|
-
/**
|
|
114
|
-
* Выбранная дата (timestamp)
|
|
115
|
-
*/
|
|
116
|
-
value?: number;
|
|
117
|
-
/**
|
|
118
|
-
* Открытый месяц (timestamp)
|
|
119
|
-
*/
|
|
120
|
-
month?: number;
|
|
121
|
-
/**
|
|
122
|
-
* Месяц, открытый по умолчанию (timestamp)
|
|
123
|
-
*/
|
|
124
|
-
defaultMonth?: number;
|
|
125
|
-
/**
|
|
126
|
-
* Минимальная дата, доступная для выбора (timestamp)
|
|
127
|
-
*/
|
|
128
|
-
minDate?: number;
|
|
129
|
-
/**
|
|
130
|
-
* Максимальная дата, доступная для выбора (timestamp)
|
|
131
|
-
*/
|
|
132
|
-
maxDate?: number;
|
|
133
|
-
/**
|
|
134
|
-
* Начало выделенного периода (timestamp)
|
|
135
|
-
*/
|
|
136
|
-
selectedFrom?: number;
|
|
137
|
-
/**
|
|
138
|
-
* Конец выделенного периода (timestamp)
|
|
139
|
-
*/
|
|
140
|
-
selectedTo?: number;
|
|
141
|
-
/**
|
|
142
|
-
* Индикатор, что выбран полный период
|
|
143
|
-
*/
|
|
144
|
-
rangeComplete?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Список событий
|
|
147
|
-
*/
|
|
148
|
-
events?: Array<Date | number>;
|
|
149
|
-
/**
|
|
150
|
-
* Список отключенных для выбора дней.
|
|
151
|
-
*/
|
|
152
|
-
offDays?: Array<Date | number>;
|
|
153
|
-
/**
|
|
154
|
-
* Список выходных
|
|
155
|
-
*/
|
|
156
|
-
holidays?: Array<Date | number>;
|
|
157
|
-
/**
|
|
158
|
-
* Обработчик изменения месяца (или года)
|
|
159
|
-
*/
|
|
160
|
-
onMonthChange?: (month: number) => void;
|
|
161
|
-
/**
|
|
162
|
-
* Обработчик выбора даты
|
|
163
|
-
*/
|
|
164
|
-
onChange?: (date?: number) => void;
|
|
165
|
-
/**
|
|
166
|
-
* Обработчик нажатия на кнопку месяца
|
|
167
|
-
*/
|
|
168
|
-
onMonthClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
169
|
-
/**
|
|
170
|
-
* Обработчик нажатия на кнопку года
|
|
171
|
-
*/
|
|
172
|
-
onYearClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
173
|
-
/**
|
|
174
|
-
* Обработчик нажатия на период
|
|
175
|
-
*/
|
|
176
|
-
onPeriodClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
177
|
-
/**
|
|
178
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
179
|
-
*/
|
|
180
|
-
dataTestId?: string;
|
|
181
|
-
/**
|
|
182
|
-
* Нужно ли рендерить шапку календаря
|
|
183
|
-
*/
|
|
184
|
-
hasHeader?: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* Должен ли календарь подстраиваться под ширину родителя.
|
|
187
|
-
*/
|
|
188
|
-
responsive?: boolean;
|
|
189
|
-
/**
|
|
190
|
-
* Дополнительный контент под числом
|
|
191
|
-
*/
|
|
192
|
-
dayAddons?: DayAddons[];
|
|
193
|
-
/**
|
|
194
|
-
* Форма ячейки дня
|
|
195
|
-
*/
|
|
196
|
-
shape?: 'rounded' | 'rectangular';
|
|
197
|
-
/**
|
|
198
|
-
* Отображать ли текущий год, если selectorView 'month-only'
|
|
199
|
-
* @default false
|
|
200
|
-
*/
|
|
201
|
-
showCurrentYearSelector?: boolean;
|
|
202
|
-
};
|
|
203
|
-
declare const CalendarDesktop: React.ForwardRefExoticComponent<CalendarDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
204
|
-
export { HeaderProps, Header, MonthYearHeaderProps, MonthYearHeader, MonthsTableProps, MonthsTable, formatPeriod, getYearSelectorValue, shiftValues, YearsTableProps, YearsTable, CalendarDesktopProps, CalendarDesktop };
|
|
205
|
-
export * from "./Component-63dec22f";
|
|
@@ -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,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
-
type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
-
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { FormControlMobileProps, FormControlMobile };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseInputProps } from "./index-ebda875c";
|
|
4
|
-
type InputMobileProps = Omit<BaseInputProps, 'FormControlComponent' | 'colorStyles'>;
|
|
5
|
-
declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
-
export * from "./Component.mobile-d7e9f69d";
|
|
7
|
-
export { InputMobileProps, InputMobile };
|
|
@@ -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/cssm/desktop.d.ts
DELETED
package/cssm/index-3109f463.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
type MqProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
5
|
-
*/
|
|
6
|
-
query?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Запрос на поддержку тач-событий
|
|
9
|
-
*/
|
|
10
|
-
touch?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Дочерние элементы.
|
|
13
|
-
*/
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Обработчик изменений в совпадении запросов
|
|
17
|
-
*/
|
|
18
|
-
onMatchChange?: (isMatched: boolean) => void;
|
|
19
|
-
};
|
|
20
|
-
declare const Mq: FC<MqProps>;
|
|
21
|
-
/**
|
|
22
|
-
* Хук для медиа запросов.
|
|
23
|
-
* @param query media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
24
|
-
* @param defaultValue Значение по-умолчанию.
|
|
25
|
-
*/
|
|
26
|
-
declare const useMatchMedia: (query: string, defaultValue?: boolean | (() => boolean)) => boolean[];
|
|
27
|
-
/**
|
|
28
|
-
* Возвращает MediaQueryList для заданного media-выражения.
|
|
29
|
-
*
|
|
30
|
-
* @param queryProp media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
31
|
-
*/
|
|
32
|
-
declare function getMatchMedia(queryProp: string): MediaQueryList;
|
|
33
|
-
/**
|
|
34
|
-
* Удаляет MediaQueryList.
|
|
35
|
-
*
|
|
36
|
-
* @param queryProp media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
37
|
-
*/
|
|
38
|
-
declare function releaseMatchMedia(queryProp: string): void;
|
|
39
|
-
/**
|
|
40
|
-
* Возвращает `true`, если есть поддержка `Pointer Events`
|
|
41
|
-
*/
|
|
42
|
-
declare function isPointerEventsSupported(): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Возвращает `true`, если есть поддержка `Touch Events`
|
|
45
|
-
*/
|
|
46
|
-
declare function isTouchSupported(): boolean;
|
|
47
|
-
declare const _exports: {
|
|
48
|
-
"--mobile-xs": string;
|
|
49
|
-
"--mobile-s": string;
|
|
50
|
-
"--mobile-m": string;
|
|
51
|
-
"--mobile-l": string;
|
|
52
|
-
"--mobile": string;
|
|
53
|
-
"--tablet-s": string;
|
|
54
|
-
"--tablet-m": string;
|
|
55
|
-
"--tablet": string;
|
|
56
|
-
"--desktop-s": string;
|
|
57
|
-
"--desktop-m": string;
|
|
58
|
-
"--desktop-l": string;
|
|
59
|
-
"--desktop-xl": string;
|
|
60
|
-
"--desktop": string;
|
|
61
|
-
};
|
|
62
|
-
export { _exports as default, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported };
|
package/cssm/index-72308007.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { PaddingType } from "./index-72dda473";
|
|
4
|
-
/* eslint-disable no-plusplus, no-param-reassign */
|
|
5
|
-
import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
|
|
6
|
-
declare const isClient: () => boolean;
|
|
7
|
-
declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
|
|
8
|
-
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
9
|
-
declare function easeInOutQuad(x: number): number;
|
|
10
|
-
declare const easingFns: {
|
|
11
|
-
easeInOutQuad: typeof easeInOutQuad;
|
|
12
|
-
};
|
|
13
|
-
declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
|
|
14
|
-
declare const inputUtils: {
|
|
15
|
-
disableUserInput: typeof disableUserInput;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Возвращает true, если значение равно null или undefined
|
|
19
|
-
*/
|
|
20
|
-
declare function isNil(value: unknown): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Выбор значения между min max границами
|
|
23
|
-
*/
|
|
24
|
-
declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
|
|
25
|
-
declare function noop(): void;
|
|
26
|
-
declare const fnUtils: {
|
|
27
|
-
clamp: typeof clamp;
|
|
28
|
-
noop: typeof noop;
|
|
29
|
-
isNil: typeof isNil;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Запрещает каретке становиться за указанные границы
|
|
33
|
-
*/
|
|
34
|
-
declare function caretGuard(guard: (value: string, selection: readonly [
|
|
35
|
-
from: number,
|
|
36
|
-
to: number
|
|
37
|
-
]) => [
|
|
38
|
-
from: number,
|
|
39
|
-
to: number
|
|
40
|
-
]): MaskitoPlugin;
|
|
41
|
-
/**
|
|
42
|
-
* Запрещает удалять указанный префикс
|
|
43
|
-
*/
|
|
44
|
-
declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
|
|
45
|
-
/**
|
|
46
|
-
* Препроцессор необходим для правильной вставки/автокомплита телефонного номера
|
|
47
|
-
*/
|
|
48
|
-
declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
|
|
49
|
-
declare const maskUtils: {
|
|
50
|
-
insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
|
|
51
|
-
prefixPostprocessor: typeof prefixPostprocessor;
|
|
52
|
-
caretGuard: typeof caretGuard;
|
|
53
|
-
};
|
|
54
|
-
export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils };
|
package/cssm/index-72dda473.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
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';
|
|
2
|
-
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';
|
|
3
|
-
type GraphicColorType = 'accent' | 'link' | 'attention' | 'positive' | 'negative' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'static-light' | 'static-accent' | 'static-dark';
|
|
4
|
-
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';
|
|
5
|
-
type GapType = '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl';
|
|
6
|
-
type PaddingType = number | string | {
|
|
7
|
-
top?: number;
|
|
8
|
-
right?: number;
|
|
9
|
-
bottom?: number;
|
|
10
|
-
left?: number;
|
|
11
|
-
};
|
|
12
|
-
export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType, PaddingType };
|
package/cssm/index-9211a437.d.ts
DELETED
package/cssm/index-ebda875c.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ButtonHTMLAttributes, ElementType, FC } from "react";
|
|
4
|
-
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
-
/**
|
|
6
|
-
* Вид компонента
|
|
7
|
-
*/
|
|
8
|
-
view: "desktop" | "mobile";
|
|
9
|
-
/**
|
|
10
|
-
* Дополнительный класс
|
|
11
|
-
*/
|
|
12
|
-
className?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Позиция крестика
|
|
15
|
-
*/
|
|
16
|
-
align?: "left" | "right";
|
|
17
|
-
/**
|
|
18
|
-
* Фиксирует крестик
|
|
19
|
-
*/
|
|
20
|
-
sticky?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Иконка
|
|
23
|
-
*/
|
|
24
|
-
icon?: ElementType;
|
|
25
|
-
/**
|
|
26
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
27
|
-
*/
|
|
28
|
-
dataTestId?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Коллбэк закрытия.
|
|
31
|
-
*/
|
|
32
|
-
onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
33
|
-
}
|
|
34
|
-
declare const Closer: FC<CloserProps>;
|
|
35
|
-
export { CloserProps, Closer };
|
package/cssm/index-f034f741.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { FC, MouseEvent } from "react";
|
|
2
|
-
type PeriodType = "range" | "day" | "week" | "month" | "quarter" | "year";
|
|
3
|
-
type PeriodSliderProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Активная дата или период
|
|
6
|
-
*/
|
|
7
|
-
value?: Date | [
|
|
8
|
-
Date,
|
|
9
|
-
Date
|
|
10
|
-
];
|
|
11
|
-
/**
|
|
12
|
-
* Тип периода
|
|
13
|
-
*/
|
|
14
|
-
periodType?: PeriodType;
|
|
15
|
-
/**
|
|
16
|
-
* Дополнительный класс
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Отключает кнопку назад
|
|
21
|
-
*/
|
|
22
|
-
prevArrowDisabled?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Отключает кнопку вперед
|
|
25
|
-
*/
|
|
26
|
-
nextArrowDisabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Скрывает заблокированные кнопки
|
|
29
|
-
*/
|
|
30
|
-
hideDisabledArrows?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Возможность выбора месяца и года, если periodType 'month'
|
|
33
|
-
*/
|
|
34
|
-
isMonthAndYearSelectable?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Отображать ли текущий год, если isMonthAndYearSelectable true
|
|
37
|
-
*/
|
|
38
|
-
showCurrentYearSelector?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Функция для форматирование выбранного периода
|
|
41
|
-
*/
|
|
42
|
-
periodFormatter?: (valueFrom: Date, valueTo: Date, periodType: PeriodType) => string;
|
|
43
|
-
/**
|
|
44
|
-
* Обработчик нажатия кнопки переключения на назад
|
|
45
|
-
*/
|
|
46
|
-
onPrevArrowClick?: (event: MouseEvent<HTMLButtonElement>, payload: {
|
|
47
|
-
value: Date;
|
|
48
|
-
valueFrom: Date;
|
|
49
|
-
valueTo: Date;
|
|
50
|
-
periodType: PeriodType;
|
|
51
|
-
}) => void;
|
|
52
|
-
/**
|
|
53
|
-
* Обработчик нажатия кнопки переключения на вперед
|
|
54
|
-
*/
|
|
55
|
-
onNextArrowClick?: (event: MouseEvent<HTMLButtonElement>, payload: {
|
|
56
|
-
value: Date;
|
|
57
|
-
valueFrom: Date;
|
|
58
|
-
valueTo: Date;
|
|
59
|
-
periodType: PeriodType;
|
|
60
|
-
}) => void;
|
|
61
|
-
/**
|
|
62
|
-
* Обработчик нажатия на селектор месяца
|
|
63
|
-
*/
|
|
64
|
-
onMonthClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Обработчик нажатия на селектор года
|
|
67
|
-
*/
|
|
68
|
-
onYearClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
69
|
-
/**
|
|
70
|
-
* Обработчик нажатия на период
|
|
71
|
-
*/
|
|
72
|
-
onPeriodClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
73
|
-
/**
|
|
74
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
75
|
-
*/
|
|
76
|
-
dataTestId?: string;
|
|
77
|
-
};
|
|
78
|
-
declare const PeriodSlider: FC<PeriodSliderProps>;
|
|
79
|
-
export { PeriodType, PeriodSliderProps, PeriodSlider };
|
|
80
|
-
export { shiftValues } from "./Component.desktop-b5b4c59f";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Component-b5b4c59f";
|
package/cssm/mobile.d.ts
DELETED
package/cssm/types-1b036d4b.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
-
type WidthUnit = number | string;
|
|
3
|
-
type TextSkeletonProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Кол-во строк текста
|
|
6
|
-
*/
|
|
7
|
-
rows?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Ширина строки
|
|
10
|
-
*/
|
|
11
|
-
width?: WidthUnit | WidthUnit[];
|
|
12
|
-
};
|
|
13
|
-
export { TextElementType, TextSkeletonProps };
|
package/cssm/types-1c79e231.d.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
import { CloserProps } from "./index-ebda875c";
|
|
5
|
-
type NavigationBarProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Контент шапки
|
|
8
|
-
*/
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* Заголовок шапки
|
|
12
|
-
*/
|
|
13
|
-
title?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Подзаголовок (доступен только в мобильной версии)
|
|
16
|
-
*/
|
|
17
|
-
subtitle?: ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Размер заголовка (compact доступен только в мобильной версии)
|
|
20
|
-
*/
|
|
21
|
-
titleSize?: 'default' | 'compact';
|
|
22
|
-
/**
|
|
23
|
-
* Доп. класс для аддонов
|
|
24
|
-
*/
|
|
25
|
-
addonClassName?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Слот слева
|
|
28
|
-
*/
|
|
29
|
-
leftAddons?: ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Слот справа
|
|
32
|
-
*/
|
|
33
|
-
rightAddons?: ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Дополнительный класс для closer
|
|
36
|
-
*/
|
|
37
|
-
closerClassName?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Слот снизу
|
|
40
|
-
*/
|
|
41
|
-
bottomAddons?: ReactNode;
|
|
42
|
-
/**
|
|
43
|
-
* Наличие компонента крестика
|
|
44
|
-
*/
|
|
45
|
-
hasCloser?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Наличие кнопки "Назад"
|
|
48
|
-
*/
|
|
49
|
-
hasBackButton?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Дополнительный класс для правого аддона
|
|
52
|
-
*/
|
|
53
|
-
backButtonClassName?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Дополнительный класс
|
|
56
|
-
*/
|
|
57
|
-
className?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Дополнительный класс для контента
|
|
60
|
-
*/
|
|
61
|
-
contentClassName?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Дополнительный класс для нижнего аддона
|
|
64
|
-
*/
|
|
65
|
-
bottomAddonsClassName?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Выравнивание заголовка
|
|
68
|
-
*/
|
|
69
|
-
align?: 'left' | 'center';
|
|
70
|
-
/**
|
|
71
|
-
* Обрезать ли заголовок
|
|
72
|
-
*/
|
|
73
|
-
trim?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Фиксирует шапку
|
|
76
|
-
*/
|
|
77
|
-
sticky?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
80
|
-
*/
|
|
81
|
-
dataTestId?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Фоновое изображение
|
|
84
|
-
*/
|
|
85
|
-
imageUrl?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Иконка closer.
|
|
88
|
-
*/
|
|
89
|
-
closerIcon?: React.ElementType;
|
|
90
|
-
/**
|
|
91
|
-
* Обработчик закрытия
|
|
92
|
-
*/
|
|
93
|
-
onClose?: CloserProps['onClose'];
|
|
94
|
-
/**
|
|
95
|
-
* обработчик клика по кнопке "назад"
|
|
96
|
-
*/
|
|
97
|
-
onBack?: () => void;
|
|
98
|
-
/**
|
|
99
|
-
* Вид шапки - мобильный или десктоп
|
|
100
|
-
*/
|
|
101
|
-
view: 'desktop' | 'mobile';
|
|
102
|
-
/**
|
|
103
|
-
* Ссылка на родительскую ноду overflow: auto
|
|
104
|
-
*/
|
|
105
|
-
scrollableParentRef?: React.RefObject<HTMLDivElement>;
|
|
106
|
-
};
|
|
107
|
-
type ContentParams = {
|
|
108
|
-
extraClassName?: string;
|
|
109
|
-
wrapperRef?: React.RefObject<HTMLDivElement>;
|
|
110
|
-
style?: React.CSSProperties;
|
|
111
|
-
hidden?: boolean;
|
|
112
|
-
};
|
|
113
|
-
export { NavigationBarProps, ContentParams };
|