@alfalab/core-components-calendar-with-skeleton 5.1.7 → 5.1.9

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.
Files changed (55) hide show
  1. package/Component-89f0cb07.d.ts +90 -0
  2. package/Component.d.ts +8 -0
  3. package/Component.desktop-0aa4e915.d.ts +5 -0
  4. package/Component.js +1 -1
  5. package/{cssm/Component.responsive-2e2b2125.d.ts → Component.responsive-0aa4e915.d.ts} +3 -4
  6. package/cssm/Component-89f0cb07.d.ts +90 -0
  7. package/cssm/Component.d.ts +8 -0
  8. package/cssm/Component.desktop-0aa4e915.d.ts +5 -0
  9. package/{modern/Component.responsive-2e2b2125.d.ts → cssm/Component.responsive-0aa4e915.d.ts} +3 -4
  10. package/cssm/desktop-69921c40.d.ts +2 -0
  11. package/cssm/index-89f0cb07.d.ts +2 -0
  12. package/cssm/index-ebda875c.d.ts +1 -94
  13. package/{esm/typings-9211a437.d.ts → cssm/typings-89f0cb07.d.ts} +5 -7
  14. package/desktop-69921c40.d.ts +2 -0
  15. package/esm/Component-89f0cb07.d.ts +90 -0
  16. package/esm/Component.d.ts +8 -0
  17. package/esm/Component.desktop-0aa4e915.d.ts +5 -0
  18. package/esm/Component.js +1 -1
  19. package/{Component.responsive-2e2b2125.d.ts → esm/Component.responsive-0aa4e915.d.ts} +3 -4
  20. package/esm/desktop-69921c40.d.ts +2 -0
  21. package/esm/index-89f0cb07.d.ts +2 -0
  22. package/esm/index-ebda875c.d.ts +1 -94
  23. package/esm/index.css +12 -12
  24. package/{cssm/typings-9211a437.d.ts → esm/typings-89f0cb07.d.ts} +5 -7
  25. package/index-89f0cb07.d.ts +2 -0
  26. package/index-ebda875c.d.ts +1 -94
  27. package/index.css +12 -12
  28. package/modern/Component-89f0cb07.d.ts +90 -0
  29. package/modern/Component.d.ts +8 -0
  30. package/modern/Component.desktop-0aa4e915.d.ts +5 -0
  31. package/modern/Component.js +1 -1
  32. package/{esm/Component.responsive-2e2b2125.d.ts → modern/Component.responsive-0aa4e915.d.ts} +3 -4
  33. package/modern/desktop-69921c40.d.ts +2 -0
  34. package/modern/index-89f0cb07.d.ts +2 -0
  35. package/modern/index-ebda875c.d.ts +1 -94
  36. package/modern/index.css +12 -12
  37. package/modern/{typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
  38. package/package.json +2 -2
  39. package/{typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
  40. package/Component.desktop-2e2b2125.d.ts +0 -6
  41. package/cssm/Component.desktop-2e2b2125.d.ts +0 -6
  42. package/cssm/desktop-63dec22f.d.ts +0 -2
  43. package/cssm/index-9211a437.d.ts +0 -2
  44. package/desktop-63dec22f.d.ts +0 -2
  45. package/esm/Component.desktop-2e2b2125.d.ts +0 -6
  46. package/esm/desktop-63dec22f.d.ts +0 -2
  47. package/esm/index-9211a437.d.ts +0 -2
  48. package/index-9211a437.d.ts +0 -2
  49. package/modern/Component.desktop-2e2b2125.d.ts +0 -6
  50. package/modern/desktop-63dec22f.d.ts +0 -2
  51. package/modern/index-9211a437.d.ts +0 -2
  52. /package/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
  53. /package/cssm/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
  54. /package/esm/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
  55. /package/modern/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
@@ -0,0 +1,90 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ /* eslint-disable no-plusplus, no-param-reassign */
5
+ import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
6
+ import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
7
+ declare const isClient: () => boolean;
8
+ declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
9
+ type PaddingType = number | string | {
10
+ top?: number;
11
+ right?: number;
12
+ bottom?: number;
13
+ left?: number;
14
+ };
15
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
16
+ declare function easeInOutQuad(x: number): number;
17
+ declare const easingFns: {
18
+ easeInOutQuad: typeof easeInOutQuad;
19
+ };
20
+ /**
21
+ * Возвращает true, если значение равно null или undefined
22
+ */
23
+ declare function isNil(value: unknown): boolean;
24
+ /**
25
+ * Выбор значения между min max границами
26
+ */
27
+ declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
28
+ declare function noop(): void;
29
+ declare const fnUtils: {
30
+ clamp: typeof clamp;
31
+ noop: typeof noop;
32
+ isNil: typeof isNil;
33
+ };
34
+ /**
35
+ * Запрещает каретке становиться за указанные границы
36
+ */
37
+ declare function caretGuard(guard: (value: string, selection: readonly [
38
+ from: number,
39
+ to: number
40
+ ]) => [
41
+ from: number,
42
+ to: number
43
+ ]): MaskitoPlugin;
44
+ /**
45
+ * Запрещает удалять указанный префикс
46
+ */
47
+ declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
48
+ /**
49
+ * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
50
+ */
51
+ declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
52
+ declare const maskUtils: {
53
+ insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
54
+ prefixPostprocessor: typeof prefixPostprocessor;
55
+ caretGuard: typeof caretGuard;
56
+ };
57
+ type SpinnerProps = {
58
+ /**
59
+ * Управление видимостью компонента
60
+ */
61
+ visible?: boolean;
62
+ /**
63
+ * Размер компонента
64
+ */
65
+ size?: "xs" | "s" | "m";
66
+ /**
67
+ * Дополнительный класс
68
+ */
69
+ className?: string;
70
+ /**
71
+ * Идентификатор компонента в DOM
72
+ */
73
+ id?: string;
74
+ /**
75
+ * Идентификатор для систем автоматизированного тестирования
76
+ */
77
+ dataTestId?: string;
78
+ /**
79
+ * Палитра, в контексте которой используется спиннер
80
+ */
81
+ colors?: "default" | "inverted";
82
+ };
83
+ declare const Spinner: FC<SpinnerProps>;
84
+ /**
85
+ * Минимальное время отображения лоадера - 500мс,
86
+ * чтобы при быстрых ответах от сервера кнопка не «моргала».
87
+ */
88
+ declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
89
+ declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
90
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
package/Component.d.ts CHANGED
@@ -12,6 +12,14 @@ type CalendarDesktopProps = {
12
12
  * Дополнительный класс
13
13
  */
14
14
  className?: string;
15
+ /**
16
+ * Дополнительный класс шапки десктопного календаря
17
+ */
18
+ headerClassName?: string;
19
+ /**
20
+ * Дополнительный класс контента десктопного календаря
21
+ */
22
+ contentClassName?: string;
15
23
  /**
16
24
  * Вид по умолчанию (выбор дней, месяцев, лет)
17
25
  */
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
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-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"};
17
+ var styles = {"component":"calendar-with-skeleton__component_1fk9l","calendarVisible":"calendar-with-skeleton__calendarVisible_1fk9l","skeleton":"calendar-with-skeleton__skeleton_1fk9l","header":"calendar-with-skeleton__header_1fk9l","weekDays":"calendar-with-skeleton__weekDays_1fk9l","row":"calendar-with-skeleton__row_1fk9l","enter":"calendar-with-skeleton__enter_1fk9l","enterActive":"calendar-with-skeleton__enterActive_1fk9l","exit":"calendar-with-skeleton__exit_1fk9l","exitActive":"calendar-with-skeleton__exitActive_1fk9l"};
18
18
  require('./index.css')
19
19
 
20
20
  var CalendarWithSkeleton = React.forwardRef(function (_a, ref) {
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ReactNode } from "react";
4
- import { AnchorButtonProps, NativeButtonProps, ButtonProps } from "./typings-9211a437";
5
- type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
6
- declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
4
+ import { CommonButtonProps, ButtonProps } from "./typings-89f0cb07";
5
+ declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
7
6
  type MqProps = {
8
7
  /**
9
8
  * Media выражение или кастомный запрос из `mq.json`, например `--mobile`.
@@ -65,4 +64,4 @@ declare const _exports: {
65
64
  "--desktop": string;
66
65
  };
67
66
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
68
- export { _exports as default, ButtonMobileProps, ButtonMobile, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported, Button };
67
+ export { _exports as default, ButtonMobile, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported, Button };
@@ -0,0 +1,90 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ /* eslint-disable no-plusplus, no-param-reassign */
5
+ import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
6
+ import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
7
+ declare const isClient: () => boolean;
8
+ declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
9
+ type PaddingType = number | string | {
10
+ top?: number;
11
+ right?: number;
12
+ bottom?: number;
13
+ left?: number;
14
+ };
15
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
16
+ declare function easeInOutQuad(x: number): number;
17
+ declare const easingFns: {
18
+ easeInOutQuad: typeof easeInOutQuad;
19
+ };
20
+ /**
21
+ * Возвращает true, если значение равно null или undefined
22
+ */
23
+ declare function isNil(value: unknown): boolean;
24
+ /**
25
+ * Выбор значения между min max границами
26
+ */
27
+ declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
28
+ declare function noop(): void;
29
+ declare const fnUtils: {
30
+ clamp: typeof clamp;
31
+ noop: typeof noop;
32
+ isNil: typeof isNil;
33
+ };
34
+ /**
35
+ * Запрещает каретке становиться за указанные границы
36
+ */
37
+ declare function caretGuard(guard: (value: string, selection: readonly [
38
+ from: number,
39
+ to: number
40
+ ]) => [
41
+ from: number,
42
+ to: number
43
+ ]): MaskitoPlugin;
44
+ /**
45
+ * Запрещает удалять указанный префикс
46
+ */
47
+ declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
48
+ /**
49
+ * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
50
+ */
51
+ declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
52
+ declare const maskUtils: {
53
+ insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
54
+ prefixPostprocessor: typeof prefixPostprocessor;
55
+ caretGuard: typeof caretGuard;
56
+ };
57
+ type SpinnerProps = {
58
+ /**
59
+ * Управление видимостью компонента
60
+ */
61
+ visible?: boolean;
62
+ /**
63
+ * Размер компонента
64
+ */
65
+ size?: "xs" | "s" | "m";
66
+ /**
67
+ * Дополнительный класс
68
+ */
69
+ className?: string;
70
+ /**
71
+ * Идентификатор компонента в DOM
72
+ */
73
+ id?: string;
74
+ /**
75
+ * Идентификатор для систем автоматизированного тестирования
76
+ */
77
+ dataTestId?: string;
78
+ /**
79
+ * Палитра, в контексте которой используется спиннер
80
+ */
81
+ colors?: "default" | "inverted";
82
+ };
83
+ declare const Spinner: FC<SpinnerProps>;
84
+ /**
85
+ * Минимальное время отображения лоадера - 500мс,
86
+ * чтобы при быстрых ответах от сервера кнопка не «моргала».
87
+ */
88
+ declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
89
+ declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
90
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -12,6 +12,14 @@ type CalendarDesktopProps = {
12
12
  * Дополнительный класс
13
13
  */
14
14
  className?: string;
15
+ /**
16
+ * Дополнительный класс шапки десктопного календаря
17
+ */
18
+ headerClassName?: string;
19
+ /**
20
+ * Дополнительный класс контента десктопного календаря
21
+ */
22
+ contentClassName?: string;
15
23
  /**
16
24
  * Вид по умолчанию (выбор дней, месяцев, лет)
17
25
  */
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ReactNode } from "react";
4
- import { AnchorButtonProps, NativeButtonProps, ButtonProps } from "./typings-9211a437";
5
- type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
6
- declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
4
+ import { CommonButtonProps, ButtonProps } from "./typings-89f0cb07";
5
+ declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
7
6
  type MqProps = {
8
7
  /**
9
8
  * Media выражение или кастомный запрос из `mq.json`, например `--mobile`.
@@ -65,4 +64,4 @@ declare const _exports: {
65
64
  "--desktop": string;
66
65
  };
67
66
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
68
- export { _exports as default, ButtonMobileProps, ButtonMobile, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported, Button };
67
+ export { _exports as default, ButtonMobile, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported, Button };
@@ -0,0 +1,2 @@
1
+ export { ButtonDesktop } from "./Component.desktop-0aa4e915";
2
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -0,0 +1,2 @@
1
+ export { Button } from "./Component.responsive-0aa4e915";
2
+ export type { ButtonProps } from "./typings-89f0cb07";
@@ -1,94 +1 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { FC } from "react";
4
- import { BaseButtonProps } from "./typings-9211a437";
5
- /* eslint-disable no-plusplus, no-param-reassign */
6
- import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
7
- /**
8
- * Минимальное время отображения лоадера - 500мс,
9
- * чтобы при быстрых ответах от сервера кнопка не «моргала».
10
- */
11
- declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
12
- declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
13
- declare const isClient: () => boolean;
14
- declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
15
- type PaddingType = number | string | {
16
- top?: number;
17
- right?: number;
18
- bottom?: number;
19
- left?: number;
20
- };
21
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
22
- declare function easeInOutQuad(x: number): number;
23
- declare const easingFns: {
24
- easeInOutQuad: typeof easeInOutQuad;
25
- };
26
- declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
27
- declare const inputUtils: {
28
- disableUserInput: typeof disableUserInput;
29
- };
30
- /**
31
- * Возвращает true, если значение равно null или undefined
32
- */
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;
39
- declare const fnUtils: {
40
- clamp: typeof clamp;
41
- noop: typeof noop;
42
- isNil: typeof isNil;
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
- };
67
- type SpinnerProps = {
68
- /**
69
- * Управление видимостью компонента
70
- */
71
- visible?: boolean;
72
- /**
73
- * Размер компонента
74
- */
75
- size?: "xs" | "s" | "m";
76
- /**
77
- * Дополнительный класс
78
- */
79
- className?: string;
80
- /**
81
- * Идентификатор компонента в DOM
82
- */
83
- id?: string;
84
- /**
85
- * Идентификатор для систем автоматизированного тестирования
86
- */
87
- dataTestId?: string;
88
- /**
89
- * Палитра, в контексте которой используется спиннер
90
- */
91
- colors?: "default" | "inverted";
92
- };
93
- declare const Spinner: FC<SpinnerProps>;
94
- export { LOADER_MIN_DISPLAY_INTERVAL, BaseButton, isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils, SpinnerProps, Spinner };
1
+ export * from "./Component-89f0cb07";
@@ -69,6 +69,8 @@ type ComponentProps = {
69
69
  * Дочерние элементы.
70
70
  */
71
71
  children?: ReactNode;
72
+ };
73
+ type PrivateButtonProps = {
72
74
  /**
73
75
  * Основные стили компонента.
74
76
  */
@@ -80,16 +82,12 @@ type ComponentProps = {
80
82
  */
81
83
  colorStylesMap: StyleColors;
82
84
  };
83
- type AnchorBaseButtonProps = ComponentProps & AnchorHTMLAttributes<HTMLAnchorElement>;
84
- type NativeBaseButtonProps = ComponentProps & ButtonHTMLAttributes<HTMLButtonElement>;
85
- type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
86
- type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
87
- type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
88
- type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
85
+ type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
86
+ type ButtonProps = CommonButtonProps & {
89
87
  /**
90
88
  * Контрольная точка, с нее начинается desktop версия
91
89
  * @default 1024
92
90
  */
93
91
  breakpoint?: number;
94
92
  };
95
- export { StyleColors, ComponentProps, AnchorBaseButtonProps, NativeBaseButtonProps, BaseButtonProps, AnchorButtonProps, NativeButtonProps, ButtonProps };
93
+ export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
@@ -0,0 +1,2 @@
1
+ export { ButtonDesktop } from "./Component.desktop-0aa4e915";
2
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -0,0 +1,90 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC } from "react";
4
+ /* eslint-disable no-plusplus, no-param-reassign */
5
+ import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
6
+ import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
7
+ declare const isClient: () => boolean;
8
+ declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
9
+ type PaddingType = number | string | {
10
+ top?: number;
11
+ right?: number;
12
+ bottom?: number;
13
+ left?: number;
14
+ };
15
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
16
+ declare function easeInOutQuad(x: number): number;
17
+ declare const easingFns: {
18
+ easeInOutQuad: typeof easeInOutQuad;
19
+ };
20
+ /**
21
+ * Возвращает true, если значение равно null или undefined
22
+ */
23
+ declare function isNil(value: unknown): boolean;
24
+ /**
25
+ * Выбор значения между min max границами
26
+ */
27
+ declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
28
+ declare function noop(): void;
29
+ declare const fnUtils: {
30
+ clamp: typeof clamp;
31
+ noop: typeof noop;
32
+ isNil: typeof isNil;
33
+ };
34
+ /**
35
+ * Запрещает каретке становиться за указанные границы
36
+ */
37
+ declare function caretGuard(guard: (value: string, selection: readonly [
38
+ from: number,
39
+ to: number
40
+ ]) => [
41
+ from: number,
42
+ to: number
43
+ ]): MaskitoPlugin;
44
+ /**
45
+ * Запрещает удалять указанный префикс
46
+ */
47
+ declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
48
+ /**
49
+ * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
50
+ */
51
+ declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
52
+ declare const maskUtils: {
53
+ insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
54
+ prefixPostprocessor: typeof prefixPostprocessor;
55
+ caretGuard: typeof caretGuard;
56
+ };
57
+ type SpinnerProps = {
58
+ /**
59
+ * Управление видимостью компонента
60
+ */
61
+ visible?: boolean;
62
+ /**
63
+ * Размер компонента
64
+ */
65
+ size?: "xs" | "s" | "m";
66
+ /**
67
+ * Дополнительный класс
68
+ */
69
+ className?: string;
70
+ /**
71
+ * Идентификатор компонента в DOM
72
+ */
73
+ id?: string;
74
+ /**
75
+ * Идентификатор для систем автоматизированного тестирования
76
+ */
77
+ dataTestId?: string;
78
+ /**
79
+ * Палитра, в контексте которой используется спиннер
80
+ */
81
+ colors?: "default" | "inverted";
82
+ };
83
+ declare const Spinner: FC<SpinnerProps>;
84
+ /**
85
+ * Минимальное время отображения лоадера - 500мс,
86
+ * чтобы при быстрых ответах от сервера кнопка не «моргала».
87
+ */
88
+ declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
89
+ declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
90
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
@@ -12,6 +12,14 @@ type CalendarDesktopProps = {
12
12
  * Дополнительный класс
13
13
  */
14
14
  className?: string;
15
+ /**
16
+ * Дополнительный класс шапки десктопного календаря
17
+ */
18
+ headerClassName?: string;
19
+ /**
20
+ * Дополнительный класс контента десктопного календаря
21
+ */
22
+ contentClassName?: string;
15
23
  /**
16
24
  * Вид по умолчанию (выбор дней, месяцев, лет)
17
25
  */
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
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-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
+ var styles = {"component":"calendar-with-skeleton__component_1fk9l","calendarVisible":"calendar-with-skeleton__calendarVisible_1fk9l","skeleton":"calendar-with-skeleton__skeleton_1fk9l","header":"calendar-with-skeleton__header_1fk9l","weekDays":"calendar-with-skeleton__weekDays_1fk9l","row":"calendar-with-skeleton__row_1fk9l","enter":"calendar-with-skeleton__enter_1fk9l","enterActive":"calendar-with-skeleton__enterActive_1fk9l","exit":"calendar-with-skeleton__exit_1fk9l","exitActive":"calendar-with-skeleton__exitActive_1fk9l"};
9
9
  require('./index.css')
10
10
 
11
11
  var CalendarWithSkeleton = forwardRef(function (_a, ref) {
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ReactNode } from "react";
4
- import { AnchorButtonProps, NativeButtonProps, ButtonProps } from "./typings-9211a437";
5
- type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
6
- declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
4
+ import { CommonButtonProps, ButtonProps } from "./typings-89f0cb07";
5
+ declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
7
6
  type MqProps = {
8
7
  /**
9
8
  * Media выражение или кастомный запрос из `mq.json`, например `--mobile`.
@@ -65,4 +64,4 @@ declare const _exports: {
65
64
  "--desktop": string;
66
65
  };
67
66
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
68
- export { _exports as default, ButtonMobileProps, ButtonMobile, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported, Button };
67
+ export { _exports as default, ButtonMobile, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported, Button };
@@ -0,0 +1,2 @@
1
+ export { ButtonDesktop } from "./Component.desktop-0aa4e915";
2
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -0,0 +1,2 @@
1
+ export { Button } from "./Component.responsive-0aa4e915";
2
+ export type { ButtonProps } from "./typings-89f0cb07";