@alfalab/core-components-date-time-input 4.0.9 → 4.0.11
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-1a4fbd11.d.ts → Component-72308007.d.ts} +1 -1
- package/{cssm/Component-8b5756fe.d.ts → Component-b5b4c59f.d.ts} +2 -2
- package/Component.desktop-785df74d.d.ts +6 -0
- package/{cssm/Component.desktop-8b5756fe.d.ts → Component.desktop-b5b4c59f.d.ts} +12 -4
- package/Component.mobile-d7e9f69d.d.ts +6 -0
- package/Component.mobile-ebda875c.d.ts +5 -4
- package/Component.responsive-2e2b2125.d.ts +2 -63
- package/Component.responsive-785df74d.d.ts +26 -0
- package/components/date-time-input/Component.js +1 -1
- package/components/date-time-input/index.css +7 -7
- package/{esm/Component-1a4fbd11.d.ts → cssm/Component-72308007.d.ts} +1 -1
- package/{Component-8b5756fe.d.ts → cssm/Component-b5b4c59f.d.ts} +2 -2
- package/cssm/Component.desktop-785df74d.d.ts +6 -0
- package/{esm/Component.desktop-8b5756fe.d.ts → cssm/Component.desktop-b5b4c59f.d.ts} +12 -4
- package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/cssm/Component.mobile-ebda875c.d.ts +5 -4
- package/cssm/Component.responsive-2e2b2125.d.ts +2 -63
- package/cssm/Component.responsive-785df74d.d.ts +26 -0
- package/cssm/index-3109f463.d.ts +62 -0
- package/cssm/index-72308007.d.ts +54 -0
- package/cssm/index-f034f741.d.ts +1 -1
- package/cssm/mobile-c219f8ca.d.ts +1 -1
- package/cssm/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
- package/esm/Component-72308007.d.ts +297 -0
- package/esm/{Component-8b5756fe.d.ts → Component-b5b4c59f.d.ts} +2 -2
- package/esm/Component.desktop-785df74d.d.ts +6 -0
- package/{modern/Component.desktop-8b5756fe.d.ts → esm/Component.desktop-b5b4c59f.d.ts} +13 -12
- package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/esm/Component.mobile-ebda875c.d.ts +5 -4
- package/esm/Component.responsive-2e2b2125.d.ts +2 -63
- package/esm/Component.responsive-785df74d.d.ts +26 -0
- package/esm/components/date-time-input/Component.js +1 -1
- package/esm/components/date-time-input/index.css +7 -7
- package/esm/index-3109f463.d.ts +62 -0
- package/esm/index-72308007.d.ts +54 -0
- package/esm/index-ebda875c.d.ts +1 -34
- package/esm/index-f034f741.d.ts +5 -2
- package/esm/mobile-c219f8ca.d.ts +1 -1
- package/esm/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
- package/index-3109f463.d.ts +62 -0
- package/index-72308007.d.ts +54 -0
- package/index-f034f741.d.ts +1 -1
- package/mobile-c219f8ca.d.ts +1 -1
- package/modern/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +1 -1
- package/modern/{Component-8b5756fe.d.ts → Component-b5b4c59f.d.ts} +2 -2
- package/modern/Component.desktop-785df74d.d.ts +6 -0
- package/{Component.desktop-8b5756fe.d.ts → modern/Component.desktop-b5b4c59f.d.ts} +12 -4
- package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
- package/modern/Component.mobile-ebda875c.d.ts +5 -4
- package/modern/Component.responsive-2e2b2125.d.ts +2 -63
- package/modern/Component.responsive-785df74d.d.ts +26 -0
- package/modern/components/date-time-input/Component.js +1 -1
- package/modern/components/date-time-input/index.css +7 -7
- package/modern/index-3109f463.d.ts +62 -0
- package/modern/index-72308007.d.ts +54 -0
- package/modern/index-f034f741.d.ts +1 -1
- package/modern/mobile-c219f8ca.d.ts +1 -1
- package/modern/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
- package/package.json +4 -4
- package/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
- package/cssm/Component-1a4fbd11.d.ts +0 -6
- package/cssm/index-1a4fbd11.d.ts +0 -22
- package/esm/index-1a4fbd11.d.ts +0 -22
- package/index-1a4fbd11.d.ts +0 -22
- package/modern/index-1a4fbd11.d.ts +0 -22
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { NavigationBarProps } from "./types-
|
|
3
|
+
import { NavigationBarProps } from "./types-1c79e231";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export * from "./Component-63dec22f";
|
|
6
6
|
export { NavigationBar };
|
|
@@ -4,8 +4,8 @@ import React from "react";
|
|
|
4
4
|
import { ReactNode, FC, KeyboardEvent, MouseEvent, MutableRefObject, Ref, RefObject } from "react";
|
|
5
5
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
6
|
import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
|
|
7
|
-
import { NavigationBarProps } from "./types-
|
|
8
|
-
import { CalendarDesktopProps } from "./Component.desktop-
|
|
7
|
+
import { NavigationBarProps } from "./types-1c79e231";
|
|
8
|
+
import { CalendarDesktopProps } from "./Component.desktop-b5b4c59f";
|
|
9
9
|
type BackdropProps = Partial<TransitionProps> & {
|
|
10
10
|
/**
|
|
11
11
|
* Прозрачный бэкдроп
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -16,6 +16,10 @@ type HeaderProps = {
|
|
|
16
16
|
* Дочерние элементы.
|
|
17
17
|
*/
|
|
18
18
|
children?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительный класс
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
19
23
|
};
|
|
20
24
|
declare const Header: FC<HeaderProps>;
|
|
21
25
|
type MonthYearHeaderProps = {
|
|
@@ -79,10 +83,6 @@ type YearsTableProps = {
|
|
|
79
83
|
* Доп. пропсы для переданного года
|
|
80
84
|
*/
|
|
81
85
|
getYearProps: (year: Date) => Record<string, unknown>;
|
|
82
|
-
/**
|
|
83
|
-
* Обработчик скролла
|
|
84
|
-
*/
|
|
85
|
-
onScroll: (scrollTop: number) => void;
|
|
86
86
|
/**
|
|
87
87
|
* Должен ли календарь подстраиваться под ширину родителя.
|
|
88
88
|
*/
|
|
@@ -94,6 +94,14 @@ type CalendarDesktopProps = {
|
|
|
94
94
|
* Дополнительный класс
|
|
95
95
|
*/
|
|
96
96
|
className?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Дополнительный класс шапки десктопного календаря
|
|
99
|
+
*/
|
|
100
|
+
headerClassName?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Дополнительный класс контента десктопного календаря
|
|
103
|
+
*/
|
|
104
|
+
contentClassName?: string;
|
|
97
105
|
/**
|
|
98
106
|
* Вид по умолчанию (выбор дней, месяцев, лет)
|
|
99
107
|
*/
|
|
@@ -0,0 +1,6 @@
|
|
|
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,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
type
|
|
5
|
-
declare const
|
|
6
|
-
export
|
|
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,66 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
3
|
-
import { FC, ReactNode } from "react";
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import { ButtonProps } from "./typings-9211a437";
|
|
5
|
-
type MqProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
8
|
-
*/
|
|
9
|
-
query?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Запрос на поддержку тач-событий
|
|
12
|
-
*/
|
|
13
|
-
touch?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Дочерние элементы.
|
|
16
|
-
*/
|
|
17
|
-
children?: ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Обработчик изменений в совпадении запросов
|
|
20
|
-
*/
|
|
21
|
-
onMatchChange?: (isMatched: boolean) => void;
|
|
22
|
-
};
|
|
23
|
-
declare const Mq: FC<MqProps>;
|
|
24
|
-
/**
|
|
25
|
-
* Хук для медиа запросов.
|
|
26
|
-
* @param query media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
27
|
-
* @param defaultValue Значение по-умолчанию.
|
|
28
|
-
*/
|
|
29
|
-
declare const useMatchMedia: (query: string, defaultValue?: boolean | (() => boolean)) => boolean[];
|
|
30
|
-
/**
|
|
31
|
-
* Возвращает MediaQueryList для заданного media-выражения.
|
|
32
|
-
*
|
|
33
|
-
* @param queryProp media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
34
|
-
*/
|
|
35
|
-
declare function getMatchMedia(queryProp: string): MediaQueryList;
|
|
36
|
-
/**
|
|
37
|
-
* Удаляет MediaQueryList.
|
|
38
|
-
*
|
|
39
|
-
* @param queryProp media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
40
|
-
*/
|
|
41
|
-
declare function releaseMatchMedia(queryProp: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* Возвращает `true`, если есть поддержка `Pointer Events`
|
|
44
|
-
*/
|
|
45
|
-
declare function isPointerEventsSupported(): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Возвращает `true`, если есть поддержка `Touch Events`
|
|
48
|
-
*/
|
|
49
|
-
declare function isTouchSupported(): boolean;
|
|
50
|
-
declare const _exports: {
|
|
51
|
-
"--mobile-xs": string;
|
|
52
|
-
"--mobile-s": string;
|
|
53
|
-
"--mobile-m": string;
|
|
54
|
-
"--mobile-l": string;
|
|
55
|
-
"--mobile": string;
|
|
56
|
-
"--tablet-s": string;
|
|
57
|
-
"--tablet-m": string;
|
|
58
|
-
"--tablet": string;
|
|
59
|
-
"--desktop-s": string;
|
|
60
|
-
"--desktop-m": string;
|
|
61
|
-
"--desktop-l": string;
|
|
62
|
-
"--desktop-xl": string;
|
|
63
|
-
"--desktop": string;
|
|
64
|
-
};
|
|
65
4
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
66
|
-
export {
|
|
5
|
+
export { Button };
|
|
@@ -0,0 +1,26 @@
|
|
|
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 };
|
|
@@ -21,7 +21,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
21
21
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
22
22
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
23
23
|
|
|
24
|
-
var styles = {"component":"date-time-
|
|
24
|
+
var styles = {"component":"date-time-input__component_1p3n0","calendarContainer":"date-time-input__calendarContainer_1p3n0","calendarResponsive":"date-time-input__calendarResponsive_1p3n0","block":"date-time-input__block_1p3n0","calendarIcon":"date-time-input__calendarIcon_1p3n0"};
|
|
25
25
|
require('./index.css')
|
|
26
26
|
|
|
27
27
|
/* eslint-disable no-useless-escape, jsx-a11y/click-events-have-key-events */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1f6jf */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
/* marker */
|
|
42
42
|
} :root {
|
|
43
43
|
--calendar-popover-border-radius: var(--border-radius-m);
|
|
44
|
-
} .date-time-
|
|
44
|
+
} .date-time-input__component_1p3n0 {
|
|
45
45
|
display: inline-block;
|
|
46
46
|
outline: none;
|
|
47
47
|
position: relative;
|
|
48
|
-
} .date-time-
|
|
48
|
+
} .date-time-input__calendarContainer_1p3n0 {
|
|
49
49
|
display: inline-block;
|
|
50
50
|
box-sizing: border-box;
|
|
51
51
|
border-radius: var(--calendar-popover-border-radius);
|
|
52
52
|
border: 1px solid var(--color-light-border-secondary)
|
|
53
|
-
} @media (max-width: 374px) { .date-time-
|
|
53
|
+
} @media (max-width: 374px) { .date-time-input__calendarContainer_1p3n0 {
|
|
54
54
|
width: 100%;
|
|
55
55
|
min-width: 288px
|
|
56
56
|
}
|
|
57
|
-
} .date-time-
|
|
57
|
+
} .date-time-input__calendarResponsive_1p3n0 {
|
|
58
58
|
width: var(--calendar-width);
|
|
59
|
-
} .date-time-
|
|
59
|
+
} .date-time-input__block_1p3n0 {
|
|
60
60
|
width: 100%;
|
|
61
|
-
} .date-time-
|
|
61
|
+
} .date-time-input__calendarIcon_1p3n0 {
|
|
62
62
|
margin-right: var(--gap-s-neg);
|
|
63
63
|
height: 100%;
|
|
64
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { NavigationBarProps } from "./types-
|
|
3
|
+
import { NavigationBarProps } from "./types-1c79e231";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export * from "./Component-63dec22f";
|
|
6
6
|
export { NavigationBar };
|
|
@@ -4,8 +4,8 @@ import React from "react";
|
|
|
4
4
|
import { ReactNode, FC, KeyboardEvent, MouseEvent, MutableRefObject, Ref, RefObject } from "react";
|
|
5
5
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
6
|
import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
|
|
7
|
-
import { NavigationBarProps } from "./types-
|
|
8
|
-
import { CalendarDesktopProps } from "./Component.desktop-
|
|
7
|
+
import { NavigationBarProps } from "./types-1c79e231";
|
|
8
|
+
import { CalendarDesktopProps } from "./Component.desktop-b5b4c59f";
|
|
9
9
|
type BackdropProps = Partial<TransitionProps> & {
|
|
10
10
|
/**
|
|
11
11
|
* Прозрачный бэкдроп
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -16,6 +16,10 @@ type HeaderProps = {
|
|
|
16
16
|
* Дочерние элементы.
|
|
17
17
|
*/
|
|
18
18
|
children?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительный класс
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
19
23
|
};
|
|
20
24
|
declare const Header: FC<HeaderProps>;
|
|
21
25
|
type MonthYearHeaderProps = {
|
|
@@ -79,10 +83,6 @@ type YearsTableProps = {
|
|
|
79
83
|
* Доп. пропсы для переданного года
|
|
80
84
|
*/
|
|
81
85
|
getYearProps: (year: Date) => Record<string, unknown>;
|
|
82
|
-
/**
|
|
83
|
-
* Обработчик скролла
|
|
84
|
-
*/
|
|
85
|
-
onScroll: (scrollTop: number) => void;
|
|
86
86
|
/**
|
|
87
87
|
* Должен ли календарь подстраиваться под ширину родителя.
|
|
88
88
|
*/
|
|
@@ -94,6 +94,14 @@ type CalendarDesktopProps = {
|
|
|
94
94
|
* Дополнительный класс
|
|
95
95
|
*/
|
|
96
96
|
className?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Дополнительный класс шапки десктопного календаря
|
|
99
|
+
*/
|
|
100
|
+
headerClassName?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Дополнительный класс контента десктопного календаря
|
|
103
|
+
*/
|
|
104
|
+
contentClassName?: string;
|
|
97
105
|
/**
|
|
98
106
|
* Вид по умолчанию (выбор дней, месяцев, лет)
|
|
99
107
|
*/
|
|
@@ -0,0 +1,6 @@
|
|
|
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,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
type
|
|
5
|
-
declare const
|
|
6
|
-
export
|
|
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,66 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
3
|
-
import { FC, ReactNode } from "react";
|
|
2
|
+
import React from 'react';
|
|
4
3
|
import { ButtonProps } from "./typings-9211a437";
|
|
5
|
-
type MqProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
8
|
-
*/
|
|
9
|
-
query?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Запрос на поддержку тач-событий
|
|
12
|
-
*/
|
|
13
|
-
touch?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Дочерние элементы.
|
|
16
|
-
*/
|
|
17
|
-
children?: ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
* Обработчик изменений в совпадении запросов
|
|
20
|
-
*/
|
|
21
|
-
onMatchChange?: (isMatched: boolean) => void;
|
|
22
|
-
};
|
|
23
|
-
declare const Mq: FC<MqProps>;
|
|
24
|
-
/**
|
|
25
|
-
* Хук для медиа запросов.
|
|
26
|
-
* @param query media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
27
|
-
* @param defaultValue Значение по-умолчанию.
|
|
28
|
-
*/
|
|
29
|
-
declare const useMatchMedia: (query: string, defaultValue?: boolean | (() => boolean)) => boolean[];
|
|
30
|
-
/**
|
|
31
|
-
* Возвращает MediaQueryList для заданного media-выражения.
|
|
32
|
-
*
|
|
33
|
-
* @param queryProp media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
34
|
-
*/
|
|
35
|
-
declare function getMatchMedia(queryProp: string): MediaQueryList;
|
|
36
|
-
/**
|
|
37
|
-
* Удаляет MediaQueryList.
|
|
38
|
-
*
|
|
39
|
-
* @param queryProp media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
40
|
-
*/
|
|
41
|
-
declare function releaseMatchMedia(queryProp: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* Возвращает `true`, если есть поддержка `Pointer Events`
|
|
44
|
-
*/
|
|
45
|
-
declare function isPointerEventsSupported(): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Возвращает `true`, если есть поддержка `Touch Events`
|
|
48
|
-
*/
|
|
49
|
-
declare function isTouchSupported(): boolean;
|
|
50
|
-
declare const _exports: {
|
|
51
|
-
"--mobile-xs": string;
|
|
52
|
-
"--mobile-s": string;
|
|
53
|
-
"--mobile-m": string;
|
|
54
|
-
"--mobile-l": string;
|
|
55
|
-
"--mobile": string;
|
|
56
|
-
"--tablet-s": string;
|
|
57
|
-
"--tablet-m": string;
|
|
58
|
-
"--tablet": string;
|
|
59
|
-
"--desktop-s": string;
|
|
60
|
-
"--desktop-m": string;
|
|
61
|
-
"--desktop-l": string;
|
|
62
|
-
"--desktop-xl": string;
|
|
63
|
-
"--desktop": string;
|
|
64
|
-
};
|
|
65
4
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
66
|
-
export {
|
|
5
|
+
export { Button };
|
|
@@ -0,0 +1,26 @@
|
|
|
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 };
|
|
@@ -0,0 +1,62 @@
|
|
|
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 };
|
|
@@ -0,0 +1,54 @@
|
|
|
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-f034f741.d.ts
CHANGED
|
@@ -77,4 +77,4 @@ type PeriodSliderProps = {
|
|
|
77
77
|
};
|
|
78
78
|
declare const PeriodSlider: FC<PeriodSliderProps>;
|
|
79
79
|
export { PeriodType, PeriodSliderProps, PeriodSlider };
|
|
80
|
-
export { shiftValues } from "./Component.desktop-
|
|
80
|
+
export { shiftValues } from "./Component.desktop-b5b4c59f";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Component-
|
|
1
|
+
export * from "./Component-b5b4c59f";
|