@alfalab/core-components-calendar-with-skeleton 5.1.6 → 5.1.7
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.js +1 -1
- package/cssm/index-ebda875c.d.ts +33 -1
- package/esm/Component.js +1 -1
- package/esm/index-ebda875c.d.ts +33 -1
- package/esm/index.css +12 -12
- package/index-ebda875c.d.ts +33 -1
- package/index.css +12 -12
- package/modern/Component.js +1 -1
- package/modern/index-ebda875c.d.ts +33 -1
- package/modern/index.css +12 -12
- package/package.json +2 -2
package/Component.js
CHANGED
|
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
15
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"calendar-with-
|
|
17
|
+
var styles = {"component":"calendar-with-skeleton__component_7lxmw","calendarVisible":"calendar-with-skeleton__calendarVisible_7lxmw","skeleton":"calendar-with-skeleton__skeleton_7lxmw","header":"calendar-with-skeleton__header_7lxmw","weekDays":"calendar-with-skeleton__weekDays_7lxmw","row":"calendar-with-skeleton__row_7lxmw","enter":"calendar-with-skeleton__enter_7lxmw","enterActive":"calendar-with-skeleton__enterActive_7lxmw","exit":"calendar-with-skeleton__exit_7lxmw","exitActive":"calendar-with-skeleton__exitActive_7lxmw"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var CalendarWithSkeleton = React.forwardRef(function (_a, ref) {
|
package/cssm/index-ebda875c.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
import { BaseButtonProps } from "./typings-9211a437";
|
|
5
|
+
/* eslint-disable no-plusplus, no-param-reassign */
|
|
6
|
+
import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
|
|
5
7
|
/**
|
|
6
8
|
* Минимальное время отображения лоадера - 500мс,
|
|
7
9
|
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
@@ -29,9 +31,39 @@ declare const inputUtils: {
|
|
|
29
31
|
* Возвращает true, если значение равно null или undefined
|
|
30
32
|
*/
|
|
31
33
|
declare function isNil(value: unknown): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Выбор значения между min max границами
|
|
36
|
+
*/
|
|
37
|
+
declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
|
|
38
|
+
declare function noop(): void;
|
|
32
39
|
declare const fnUtils: {
|
|
40
|
+
clamp: typeof clamp;
|
|
41
|
+
noop: typeof noop;
|
|
33
42
|
isNil: typeof isNil;
|
|
34
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Запрещает каретке становиться за указанные границы
|
|
46
|
+
*/
|
|
47
|
+
declare function caretGuard(guard: (value: string, selection: readonly [
|
|
48
|
+
from: number,
|
|
49
|
+
to: number
|
|
50
|
+
]) => [
|
|
51
|
+
from: number,
|
|
52
|
+
to: number
|
|
53
|
+
]): MaskitoPlugin;
|
|
54
|
+
/**
|
|
55
|
+
* Запрещает удалять указанный префикс
|
|
56
|
+
*/
|
|
57
|
+
declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
|
|
58
|
+
/**
|
|
59
|
+
* Препроцессор необходим для правильной вставки/автокомплита телефонного номера
|
|
60
|
+
*/
|
|
61
|
+
declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
|
|
62
|
+
declare const maskUtils: {
|
|
63
|
+
insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
|
|
64
|
+
prefixPostprocessor: typeof prefixPostprocessor;
|
|
65
|
+
caretGuard: typeof caretGuard;
|
|
66
|
+
};
|
|
35
67
|
type SpinnerProps = {
|
|
36
68
|
/**
|
|
37
69
|
* Управление видимостью компонента
|
|
@@ -59,4 +91,4 @@ type SpinnerProps = {
|
|
|
59
91
|
colors?: "default" | "inverted";
|
|
60
92
|
};
|
|
61
93
|
declare const Spinner: FC<SpinnerProps>;
|
|
62
|
-
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, SpinnerProps, Spinner };
|
|
94
|
+
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils, SpinnerProps, Spinner };
|
package/esm/Component.js
CHANGED
|
@@ -5,7 +5,7 @@ import cn from 'classnames';
|
|
|
5
5
|
import { CalendarDesktop } from '@alfalab/core-components-calendar/esm/desktop';
|
|
6
6
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"calendar-with-
|
|
8
|
+
var styles = {"component":"calendar-with-skeleton__component_7lxmw","calendarVisible":"calendar-with-skeleton__calendarVisible_7lxmw","skeleton":"calendar-with-skeleton__skeleton_7lxmw","header":"calendar-with-skeleton__header_7lxmw","weekDays":"calendar-with-skeleton__weekDays_7lxmw","row":"calendar-with-skeleton__row_7lxmw","enter":"calendar-with-skeleton__enter_7lxmw","enterActive":"calendar-with-skeleton__enterActive_7lxmw","exit":"calendar-with-skeleton__exit_7lxmw","exitActive":"calendar-with-skeleton__exitActive_7lxmw"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var CalendarWithSkeleton = forwardRef(function (_a, ref) {
|
package/esm/index-ebda875c.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
import { BaseButtonProps } from "./typings-9211a437";
|
|
5
|
+
/* eslint-disable no-plusplus, no-param-reassign */
|
|
6
|
+
import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
|
|
5
7
|
/**
|
|
6
8
|
* Минимальное время отображения лоадера - 500мс,
|
|
7
9
|
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
@@ -29,9 +31,39 @@ declare const inputUtils: {
|
|
|
29
31
|
* Возвращает true, если значение равно null или undefined
|
|
30
32
|
*/
|
|
31
33
|
declare function isNil(value: unknown): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Выбор значения между min max границами
|
|
36
|
+
*/
|
|
37
|
+
declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
|
|
38
|
+
declare function noop(): void;
|
|
32
39
|
declare const fnUtils: {
|
|
40
|
+
clamp: typeof clamp;
|
|
41
|
+
noop: typeof noop;
|
|
33
42
|
isNil: typeof isNil;
|
|
34
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Запрещает каретке становиться за указанные границы
|
|
46
|
+
*/
|
|
47
|
+
declare function caretGuard(guard: (value: string, selection: readonly [
|
|
48
|
+
from: number,
|
|
49
|
+
to: number
|
|
50
|
+
]) => [
|
|
51
|
+
from: number,
|
|
52
|
+
to: number
|
|
53
|
+
]): MaskitoPlugin;
|
|
54
|
+
/**
|
|
55
|
+
* Запрещает удалять указанный префикс
|
|
56
|
+
*/
|
|
57
|
+
declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
|
|
58
|
+
/**
|
|
59
|
+
* Препроцессор необходим для правильной вставки/автокомплита телефонного номера
|
|
60
|
+
*/
|
|
61
|
+
declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
|
|
62
|
+
declare const maskUtils: {
|
|
63
|
+
insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
|
|
64
|
+
prefixPostprocessor: typeof prefixPostprocessor;
|
|
65
|
+
caretGuard: typeof caretGuard;
|
|
66
|
+
};
|
|
35
67
|
type SpinnerProps = {
|
|
36
68
|
/**
|
|
37
69
|
* Управление видимостью компонента
|
|
@@ -59,4 +91,4 @@ type SpinnerProps = {
|
|
|
59
91
|
colors?: "default" | "inverted";
|
|
60
92
|
};
|
|
61
93
|
declare const Spinner: FC<SpinnerProps>;
|
|
62
|
-
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, SpinnerProps, Spinner };
|
|
94
|
+
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils, SpinnerProps, Spinner };
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jufe */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* 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 */
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
/* disabled */
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
|
-
} .calendar-with-
|
|
43
|
+
} .calendar-with-skeleton__component_7lxmw {
|
|
44
44
|
width: var(--calendar-width);
|
|
45
45
|
height: var(--calendar-height);
|
|
46
46
|
position: relative;
|
|
47
|
-
} .calendar-with-
|
|
47
|
+
} .calendar-with-skeleton__calendarVisible_7lxmw {
|
|
48
48
|
height: auto;
|
|
49
|
-
} .calendar-with-
|
|
49
|
+
} .calendar-with-skeleton__skeleton_7lxmw {
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: var(--gap-m);
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
height: 100%;
|
|
61
61
|
background-color: var(--color-light-bg-primary);
|
|
62
62
|
background-clip: content-box;
|
|
63
|
-
} .calendar-with-
|
|
63
|
+
} .calendar-with-skeleton__header_7lxmw {
|
|
64
64
|
height: 48px;
|
|
65
65
|
margin-bottom: var(--gap-l);
|
|
66
|
-
} .calendar-with-
|
|
66
|
+
} .calendar-with-skeleton__weekDays_7lxmw {
|
|
67
67
|
height: 12px;
|
|
68
68
|
margin-bottom: var(--gap-m);
|
|
69
|
-
} .calendar-with-
|
|
69
|
+
} .calendar-with-skeleton__row_7lxmw {
|
|
70
70
|
height: 32px
|
|
71
|
-
} .calendar-with-
|
|
71
|
+
} .calendar-with-skeleton__row_7lxmw + .calendar-with-skeleton__row_7lxmw {
|
|
72
72
|
margin-top: 10px;
|
|
73
|
-
} .calendar-with-
|
|
74
|
-
.calendar-with-
|
|
75
|
-
.calendar-with-
|
|
73
|
+
} .calendar-with-skeleton__enter_7lxmw,
|
|
74
|
+
.calendar-with-skeleton__enterActive_7lxmw,
|
|
75
|
+
.calendar-with-skeleton__exit_7lxmw {
|
|
76
76
|
opacity: 1;
|
|
77
|
-
} .calendar-with-
|
|
77
|
+
} .calendar-with-skeleton__exitActive_7lxmw {
|
|
78
78
|
opacity: 0;
|
|
79
79
|
}
|
package/index-ebda875c.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
import { BaseButtonProps } from "./typings-9211a437";
|
|
5
|
+
/* eslint-disable no-plusplus, no-param-reassign */
|
|
6
|
+
import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
|
|
5
7
|
/**
|
|
6
8
|
* Минимальное время отображения лоадера - 500мс,
|
|
7
9
|
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
@@ -29,9 +31,39 @@ declare const inputUtils: {
|
|
|
29
31
|
* Возвращает true, если значение равно null или undefined
|
|
30
32
|
*/
|
|
31
33
|
declare function isNil(value: unknown): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Выбор значения между min max границами
|
|
36
|
+
*/
|
|
37
|
+
declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
|
|
38
|
+
declare function noop(): void;
|
|
32
39
|
declare const fnUtils: {
|
|
40
|
+
clamp: typeof clamp;
|
|
41
|
+
noop: typeof noop;
|
|
33
42
|
isNil: typeof isNil;
|
|
34
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Запрещает каретке становиться за указанные границы
|
|
46
|
+
*/
|
|
47
|
+
declare function caretGuard(guard: (value: string, selection: readonly [
|
|
48
|
+
from: number,
|
|
49
|
+
to: number
|
|
50
|
+
]) => [
|
|
51
|
+
from: number,
|
|
52
|
+
to: number
|
|
53
|
+
]): MaskitoPlugin;
|
|
54
|
+
/**
|
|
55
|
+
* Запрещает удалять указанный префикс
|
|
56
|
+
*/
|
|
57
|
+
declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
|
|
58
|
+
/**
|
|
59
|
+
* Препроцессор необходим для правильной вставки/автокомплита телефонного номера
|
|
60
|
+
*/
|
|
61
|
+
declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
|
|
62
|
+
declare const maskUtils: {
|
|
63
|
+
insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
|
|
64
|
+
prefixPostprocessor: typeof prefixPostprocessor;
|
|
65
|
+
caretGuard: typeof caretGuard;
|
|
66
|
+
};
|
|
35
67
|
type SpinnerProps = {
|
|
36
68
|
/**
|
|
37
69
|
* Управление видимостью компонента
|
|
@@ -59,4 +91,4 @@ type SpinnerProps = {
|
|
|
59
91
|
colors?: "default" | "inverted";
|
|
60
92
|
};
|
|
61
93
|
declare const Spinner: FC<SpinnerProps>;
|
|
62
|
-
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, SpinnerProps, Spinner };
|
|
94
|
+
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils, SpinnerProps, Spinner };
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jufe */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* 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 */
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
/* disabled */
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
|
-
} .calendar-with-
|
|
43
|
+
} .calendar-with-skeleton__component_7lxmw {
|
|
44
44
|
width: var(--calendar-width);
|
|
45
45
|
height: var(--calendar-height);
|
|
46
46
|
position: relative;
|
|
47
|
-
} .calendar-with-
|
|
47
|
+
} .calendar-with-skeleton__calendarVisible_7lxmw {
|
|
48
48
|
height: auto;
|
|
49
|
-
} .calendar-with-
|
|
49
|
+
} .calendar-with-skeleton__skeleton_7lxmw {
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: var(--gap-m);
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
height: 100%;
|
|
61
61
|
background-color: var(--color-light-bg-primary);
|
|
62
62
|
background-clip: content-box;
|
|
63
|
-
} .calendar-with-
|
|
63
|
+
} .calendar-with-skeleton__header_7lxmw {
|
|
64
64
|
height: 48px;
|
|
65
65
|
margin-bottom: var(--gap-l);
|
|
66
|
-
} .calendar-with-
|
|
66
|
+
} .calendar-with-skeleton__weekDays_7lxmw {
|
|
67
67
|
height: 12px;
|
|
68
68
|
margin-bottom: var(--gap-m);
|
|
69
|
-
} .calendar-with-
|
|
69
|
+
} .calendar-with-skeleton__row_7lxmw {
|
|
70
70
|
height: 32px
|
|
71
|
-
} .calendar-with-
|
|
71
|
+
} .calendar-with-skeleton__row_7lxmw + .calendar-with-skeleton__row_7lxmw {
|
|
72
72
|
margin-top: 10px;
|
|
73
|
-
} .calendar-with-
|
|
74
|
-
.calendar-with-
|
|
75
|
-
.calendar-with-
|
|
73
|
+
} .calendar-with-skeleton__enter_7lxmw,
|
|
74
|
+
.calendar-with-skeleton__enterActive_7lxmw,
|
|
75
|
+
.calendar-with-skeleton__exit_7lxmw {
|
|
76
76
|
opacity: 1;
|
|
77
|
-
} .calendar-with-
|
|
77
|
+
} .calendar-with-skeleton__exitActive_7lxmw {
|
|
78
78
|
opacity: 0;
|
|
79
79
|
}
|
package/modern/Component.js
CHANGED
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { CalendarDesktop } from '@alfalab/core-components-calendar/modern/desktop';
|
|
5
5
|
import { Skeleton } from '@alfalab/core-components-skeleton/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"component":"calendar-with-
|
|
7
|
+
const styles = {"component":"calendar-with-skeleton__component_7lxmw","calendarVisible":"calendar-with-skeleton__calendarVisible_7lxmw","skeleton":"calendar-with-skeleton__skeleton_7lxmw","header":"calendar-with-skeleton__header_7lxmw","weekDays":"calendar-with-skeleton__weekDays_7lxmw","row":"calendar-with-skeleton__row_7lxmw","enter":"calendar-with-skeleton__enter_7lxmw","enterActive":"calendar-with-skeleton__enterActive_7lxmw","exit":"calendar-with-skeleton__exit_7lxmw","exitActive":"calendar-with-skeleton__exitActive_7lxmw"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const CalendarWithSkeleton = forwardRef(({ calendarVisible = true, animate = true, className, ...restProps }, ref) => {
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
import { BaseButtonProps } from "./typings-9211a437";
|
|
5
|
+
/* eslint-disable no-plusplus, no-param-reassign */
|
|
6
|
+
import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
|
|
5
7
|
/**
|
|
6
8
|
* Минимальное время отображения лоадера - 500мс,
|
|
7
9
|
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
@@ -29,9 +31,39 @@ declare const inputUtils: {
|
|
|
29
31
|
* Возвращает true, если значение равно null или undefined
|
|
30
32
|
*/
|
|
31
33
|
declare function isNil(value: unknown): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Выбор значения между min max границами
|
|
36
|
+
*/
|
|
37
|
+
declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
|
|
38
|
+
declare function noop(): void;
|
|
32
39
|
declare const fnUtils: {
|
|
40
|
+
clamp: typeof clamp;
|
|
41
|
+
noop: typeof noop;
|
|
33
42
|
isNil: typeof isNil;
|
|
34
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Запрещает каретке становиться за указанные границы
|
|
46
|
+
*/
|
|
47
|
+
declare function caretGuard(guard: (value: string, selection: readonly [
|
|
48
|
+
from: number,
|
|
49
|
+
to: number
|
|
50
|
+
]) => [
|
|
51
|
+
from: number,
|
|
52
|
+
to: number
|
|
53
|
+
]): MaskitoPlugin;
|
|
54
|
+
/**
|
|
55
|
+
* Запрещает удалять указанный префикс
|
|
56
|
+
*/
|
|
57
|
+
declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
|
|
58
|
+
/**
|
|
59
|
+
* Препроцессор необходим для правильной вставки/автокомплита телефонного номера
|
|
60
|
+
*/
|
|
61
|
+
declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
|
|
62
|
+
declare const maskUtils: {
|
|
63
|
+
insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
|
|
64
|
+
prefixPostprocessor: typeof prefixPostprocessor;
|
|
65
|
+
caretGuard: typeof caretGuard;
|
|
66
|
+
};
|
|
35
67
|
type SpinnerProps = {
|
|
36
68
|
/**
|
|
37
69
|
* Управление видимостью компонента
|
|
@@ -59,4 +91,4 @@ type SpinnerProps = {
|
|
|
59
91
|
colors?: "default" | "inverted";
|
|
60
92
|
};
|
|
61
93
|
declare const Spinner: FC<SpinnerProps>;
|
|
62
|
-
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, SpinnerProps, Spinner };
|
|
94
|
+
export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils, SpinnerProps, Spinner };
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1jufe */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* 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 */
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
/* disabled */
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
|
-
} .calendar-with-
|
|
43
|
+
} .calendar-with-skeleton__component_7lxmw {
|
|
44
44
|
width: var(--calendar-width);
|
|
45
45
|
height: var(--calendar-height);
|
|
46
46
|
position: relative;
|
|
47
|
-
} .calendar-with-
|
|
47
|
+
} .calendar-with-skeleton__calendarVisible_7lxmw {
|
|
48
48
|
height: auto;
|
|
49
|
-
} .calendar-with-
|
|
49
|
+
} .calendar-with-skeleton__skeleton_7lxmw {
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: var(--gap-m);
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
height: 100%;
|
|
61
61
|
background-color: var(--color-light-bg-primary);
|
|
62
62
|
background-clip: content-box;
|
|
63
|
-
} .calendar-with-
|
|
63
|
+
} .calendar-with-skeleton__header_7lxmw {
|
|
64
64
|
height: 48px;
|
|
65
65
|
margin-bottom: var(--gap-l);
|
|
66
|
-
} .calendar-with-
|
|
66
|
+
} .calendar-with-skeleton__weekDays_7lxmw {
|
|
67
67
|
height: 12px;
|
|
68
68
|
margin-bottom: var(--gap-m);
|
|
69
|
-
} .calendar-with-
|
|
69
|
+
} .calendar-with-skeleton__row_7lxmw {
|
|
70
70
|
height: 32px
|
|
71
|
-
} .calendar-with-
|
|
71
|
+
} .calendar-with-skeleton__row_7lxmw + .calendar-with-skeleton__row_7lxmw {
|
|
72
72
|
margin-top: 10px;
|
|
73
|
-
} .calendar-with-
|
|
74
|
-
.calendar-with-
|
|
75
|
-
.calendar-with-
|
|
73
|
+
} .calendar-with-skeleton__enter_7lxmw,
|
|
74
|
+
.calendar-with-skeleton__enterActive_7lxmw,
|
|
75
|
+
.calendar-with-skeleton__exit_7lxmw {
|
|
76
76
|
opacity: 1;
|
|
77
|
-
} .calendar-with-
|
|
77
|
+
} .calendar-with-skeleton__exitActive_7lxmw {
|
|
78
78
|
opacity: 0;
|
|
79
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-with-skeleton",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
4
4
|
"description": "CalendarWithSkeleton component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-calendar": "^7.0.
|
|
18
|
+
"@alfalab/core-components-calendar": "^7.0.7",
|
|
19
19
|
"@alfalab/core-components-skeleton": "^4.1.0",
|
|
20
20
|
"classnames": "^2.3.1",
|
|
21
21
|
"react-transition-group": "^4.4.5",
|