@alfalab/core-components-custom-picker-button 2.0.10 → 2.0.12

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 (63) hide show
  1. package/Component.desktop-785df74d.d.ts +1 -1
  2. package/Component.mobile-d7e9f69d.d.ts +1 -1
  3. package/{esm/component-1a4fbd11.d.ts → component-72308007.d.ts} +1 -1
  4. package/cssm/Component.desktop-785df74d.d.ts +1 -1
  5. package/cssm/Component.mobile-d7e9f69d.d.ts +1 -1
  6. package/{modern/component-1a4fbd11.d.ts → cssm/component-72308007.d.ts} +1 -1
  7. package/cssm/index-72308007.d.ts +54 -0
  8. package/cssm/index-c44170fe.d.ts +4 -9
  9. package/cssm/index-c76d6398.d.ts +2 -2
  10. package/cssm/index-f12ee135.d.ts +2 -2
  11. package/cssm/shared-4cd3936b.d.ts +1 -1
  12. package/{esm/types-83e2bd9e.d.ts → cssm/types-1c79e231.d.ts} +1 -1
  13. package/cssm/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  14. package/esm/Component.desktop-785df74d.d.ts +1 -1
  15. package/esm/Component.mobile-d7e9f69d.d.ts +1 -1
  16. package/{component-1a4fbd11.d.ts → esm/component-72308007.d.ts} +1 -1
  17. package/esm/field/Component.js +1 -1
  18. package/esm/field/index.css +5 -5
  19. package/esm/index-72308007.d.ts +54 -0
  20. package/esm/index-c44170fe.d.ts +4 -9
  21. package/esm/index-c76d6398.d.ts +2 -2
  22. package/esm/index-f12ee135.d.ts +2 -2
  23. package/esm/shared-4cd3936b.d.ts +1 -1
  24. package/{cssm/types-83e2bd9e.d.ts → esm/types-1c79e231.d.ts} +1 -1
  25. package/esm/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  26. package/field/Component.js +1 -1
  27. package/field/index.css +5 -5
  28. package/index-72308007.d.ts +54 -0
  29. package/index-c44170fe.d.ts +4 -9
  30. package/index-c76d6398.d.ts +2 -2
  31. package/index-f12ee135.d.ts +2 -2
  32. package/modern/Component.desktop-785df74d.d.ts +1 -1
  33. package/modern/Component.mobile-d7e9f69d.d.ts +1 -1
  34. package/{cssm/component-1a4fbd11.d.ts → modern/component-72308007.d.ts} +1 -1
  35. package/modern/field/Component.js +1 -1
  36. package/modern/field/index.css +5 -5
  37. package/modern/index-72308007.d.ts +54 -0
  38. package/modern/index-c44170fe.d.ts +4 -9
  39. package/modern/index-c76d6398.d.ts +2 -2
  40. package/modern/index-f12ee135.d.ts +2 -2
  41. package/modern/shared-4cd3936b.d.ts +1 -1
  42. package/modern/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  43. package/modern/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  44. package/package.json +4 -4
  45. package/shared-4cd3936b.d.ts +1 -1
  46. package/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  47. package/{types-e40becc7.d.ts → types-67a2d8af.d.ts} +1 -1
  48. package/Component.responsive-785df74d.d.ts +0 -26
  49. package/cssm/Component.responsive-785df74d.d.ts +0 -26
  50. package/cssm/index-1a4fbd11.d.ts +0 -22
  51. package/esm/Component.responsive-785df74d.d.ts +0 -26
  52. package/esm/index-1a4fbd11.d.ts +0 -22
  53. package/index-1a4fbd11.d.ts +0 -22
  54. package/modern/Component.responsive-785df74d.d.ts +0 -26
  55. package/modern/index-1a4fbd11.d.ts +0 -22
  56. /package/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +0 -0
  57. /package/cssm/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +0 -0
  58. /package/cssm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  59. /package/esm/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +0 -0
  60. /package/esm/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  61. /package/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  62. /package/modern/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +0 -0
  63. /package/modern/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -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 };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -11,13 +11,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
11
11
  */
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
14
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
15
  breakpoint?: number | undefined;
16
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
- } & React.RefAttributes<HTMLInputElement>>;
18
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
19
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
20
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
21
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
22
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
23
- export * from "./Component.desktop-785df74d";
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { FormControlProps, FormControl };
@@ -1,2 +1,2 @@
1
- export * from "./Component-1a4fbd11";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
1
+ export * from "./Component-72308007";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
- export * from "./component-1a4fbd11";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
1
+ export * from "./component-72308007";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -57,7 +57,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
57
57
  reset: () => void;
58
58
  };
59
59
  export * from "./index-ebda875c";
60
- export * from "./Component-1a4fbd11";
60
+ export * from "./Component-72308007";
61
61
  export * from "./Component-dd8ca091";
62
62
  export { useSelectWithLoading, useLazyLoading };
63
63
  export * from "./hook-8abfea97";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { CustomButton } from '@alfalab/core-components-custom-button/esm';
5
5
  import { getIcon } from '@alfalab/core-components-picker-button/esm/shared';
6
6
 
7
- var styles = {"iconContainer":"custom-picker-button__iconContainer_1q4gc","addonsContainer":"custom-picker-button__addonsContainer_1q4gc","showControlIcon":"custom-picker-button__showControlIcon_1q4gc","open":"custom-picker-button__open_1q4gc"};
7
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_7a879","addonsContainer":"custom-picker-button__addonsContainer_7a879","showControlIcon":"custom-picker-button__showControlIcon_7a879","open":"custom-picker-button__open_7a879"};
8
8
  require('./index.css')
9
9
 
10
10
  var Field = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1w3az */
1
+ /* hash: upmx5 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* 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 */
4
4
  } :root { /* 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 */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_1q4gc {
19
+ } .custom-picker-button__iconContainer_7a879 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_1q4gc {
22
+ } .custom-picker-button__addonsContainer_7a879 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_1q4gc.custom-picker-button__showControlIcon_1q4gc {
24
+ } .custom-picker-button__addonsContainer_7a879.custom-picker-button__showControlIcon_7a879 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_1q4gc {
26
+ } .custom-picker-button__open_7a879 {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -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 };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -11,13 +11,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
11
11
  */
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
14
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
15
  breakpoint?: number | undefined;
16
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
- } & React.RefAttributes<HTMLInputElement>>;
18
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
19
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
20
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
21
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
22
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
23
- export * from "./Component.desktop-785df74d";
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { FormControlProps, FormControl };
@@ -1,2 +1,2 @@
1
- export * from "./Component-1a4fbd11";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
1
+ export * from "./Component-72308007";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
- export * from "./component-1a4fbd11";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
1
+ export * from "./component-72308007";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -57,7 +57,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
57
57
  reset: () => void;
58
58
  };
59
59
  export * from "./index-ebda875c";
60
- export * from "./Component-1a4fbd11";
60
+ export * from "./Component-72308007";
61
61
  export * from "./Component-dd8ca091";
62
62
  export { useSelectWithLoading, useLazyLoading };
63
63
  export * from "./hook-8abfea97";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"iconContainer":"custom-picker-button__iconContainer_1q4gc","addonsContainer":"custom-picker-button__addonsContainer_1q4gc","showControlIcon":"custom-picker-button__showControlIcon_1q4gc","open":"custom-picker-button__open_1q4gc"};
16
+ var styles = {"iconContainer":"custom-picker-button__iconContainer_7a879","addonsContainer":"custom-picker-button__addonsContainer_7a879","showControlIcon":"custom-picker-button__showControlIcon_7a879","open":"custom-picker-button__open_7a879"};
17
17
  require('./index.css')
18
18
 
19
19
  var Field = function (_a) {
package/field/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1w3az */
1
+ /* hash: upmx5 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* 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 */
4
4
  } :root { /* 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 */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_1q4gc {
19
+ } .custom-picker-button__iconContainer_7a879 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_1q4gc {
22
+ } .custom-picker-button__addonsContainer_7a879 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_1q4gc.custom-picker-button__showControlIcon_1q4gc {
24
+ } .custom-picker-button__addonsContainer_7a879.custom-picker-button__showControlIcon_7a879 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_1q4gc {
26
+ } .custom-picker-button__open_7a879 {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -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 };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -11,13 +11,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
11
11
  */
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
14
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
15
  breakpoint?: number | undefined;
16
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
- } & React.RefAttributes<HTMLInputElement>>;
18
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
19
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
20
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
21
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
22
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
23
- export * from "./Component.desktop-785df74d";
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { FormControlProps, FormControl };
@@ -1,2 +1,2 @@
1
- export * from "./Component-1a4fbd11";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
1
+ export * from "./Component-72308007";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
- export * from "./component-1a4fbd11";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
1
+ export * from "./component-72308007";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./index-c44170fe";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -4,7 +4,7 @@ import { FC, ReactNode, RefObject } from "react";
4
4
  import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
- import { BottomSheetProps } from "./types-e40becc7";
7
+ import { BottomSheetProps } from "./types-67a2d8af";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { CustomButton } from '@alfalab/core-components-custom-button/modern';
4
4
  import { getIcon } from '@alfalab/core-components-picker-button/modern/shared';
5
5
 
6
- const styles = {"iconContainer":"custom-picker-button__iconContainer_1q4gc","addonsContainer":"custom-picker-button__addonsContainer_1q4gc","showControlIcon":"custom-picker-button__showControlIcon_1q4gc","open":"custom-picker-button__open_1q4gc"};
6
+ const styles = {"iconContainer":"custom-picker-button__iconContainer_7a879","addonsContainer":"custom-picker-button__addonsContainer_7a879","showControlIcon":"custom-picker-button__showControlIcon_7a879","open":"custom-picker-button__open_7a879"};
7
7
  require('./index.css')
8
8
 
9
9
  const Field = ({ buttonSize = 'm', buttonVariant = 'default', backgroundColor, contentColor, stateType, label, open, rightAddons, innerProps, className, showArrow = true, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1w3az */
1
+ /* hash: upmx5 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* 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 */
4
4
  } :root { /* 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 */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .custom-picker-button__iconContainer_1q4gc {
19
+ } .custom-picker-button__iconContainer_7a879 {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .custom-picker-button__addonsContainer_1q4gc {
22
+ } .custom-picker-button__addonsContainer_7a879 {
23
23
  display: flex
24
- } .custom-picker-button__addonsContainer_1q4gc.custom-picker-button__showControlIcon_1q4gc {
24
+ } .custom-picker-button__addonsContainer_7a879.custom-picker-button__showControlIcon_7a879 {
25
25
  margin-right: var(--gap-2xs);
26
- } .custom-picker-button__open_1q4gc {
26
+ } .custom-picker-button__open_7a879 {
27
27
  transform: var(--arrow-transform);
28
28
  }
@@ -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 };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -11,13 +11,8 @@ type InputProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> &
11
11
  */
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
- declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormControlComponent" | "colorStyles"> & {
14
+ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
15
  breakpoint?: number | undefined;
16
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
17
- } & React.RefAttributes<HTMLInputElement>>;
18
- type InputDesktopProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
19
- declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
20
- type InputMobileProps = Omit<BaseInputProps, "FormControlComponent" | "colorStyles">;
21
- declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
22
- export { InputProps, Input, InputDesktopProps, InputDesktop, InputMobileProps, InputMobile };
23
- export * from "./Component.desktop-785df74d";
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ export { FormControlProps, FormControl };
@@ -1,2 +1,2 @@
1
- export * from "./Component-1a4fbd11";
2
- export type { NavigationBarProps } from "./types-83e2bd9e";
1
+ export * from "./Component-72308007";
2
+ export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
- export * from "./component-1a4fbd11";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-e40becc7";
1
+ export * from "./component-72308007";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -57,7 +57,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
57
57
  reset: () => void;
58
58
  };
59
59
  export * from "./index-ebda875c";
60
- export * from "./Component-1a4fbd11";
60
+ export * from "./Component-72308007";
61
61
  export * from "./Component-dd8ca091";
62
62
  export { useSelectWithLoading, useLazyLoading };
63
63
  export * from "./hook-8abfea97";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-custom-picker-button",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "Custom picker button component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -35,10 +35,10 @@
35
35
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@alfalab/core-components-picker-button": "^11.1.5",
39
- "@alfalab/core-components-custom-button": "^3.3.4",
38
+ "@alfalab/core-components-picker-button": "^11.1.7",
39
+ "@alfalab/core-components-custom-button": "^3.3.5",
40
40
  "@alfalab/core-components-mq": "^4.2.0",
41
- "@alfalab/core-components-select": "^15.1.5",
41
+ "@alfalab/core-components-select": "^15.2.0",
42
42
  "classnames": "^2.3.1",
43
43
  "tslib": "^2.4.0"
44
44
  }
@@ -57,7 +57,7 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
57
57
  reset: () => void;
58
58
  };
59
59
  export * from "./index-ebda875c";
60
- export * from "./Component-1a4fbd11";
60
+ export * from "./Component-72308007";
61
61
  export * from "./Component-dd8ca091";
62
62
  export { useSelectWithLoading, useLazyLoading };
63
63
  export * from "./hook-8abfea97";
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
@@ -259,7 +259,7 @@ type BottomSheetProps = {
259
259
  /**
260
260
  * Вызывается после окончания анимации притягивания
261
261
  */
262
- onMagnetizeEnd?: () => void;
262
+ onMagnetizeEnd?: (index: number) => void;
263
263
  /**
264
264
  * Вызывается при изменении положения шторки
265
265
  */
@@ -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 };
@@ -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 };
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { PaddingType } from "./index-72dda473";
4
- declare const isClient: () => boolean;
5
- declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
6
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
7
- declare function easeInOutQuad(x: number): number;
8
- declare const easingFns: {
9
- easeInOutQuad: typeof easeInOutQuad;
10
- };
11
- declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
12
- declare const inputUtils: {
13
- disableUserInput: typeof disableUserInput;
14
- };
15
- /**
16
- * Возвращает true, если значение равно null или undefined
17
- */
18
- declare function isNil(value: unknown): boolean;
19
- declare const fnUtils: {
20
- isNil: typeof isNil;
21
- };
22
- export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
@@ -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 };
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { PaddingType } from "./index-72dda473";
4
- declare const isClient: () => boolean;
5
- declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
6
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
7
- declare function easeInOutQuad(x: number): number;
8
- declare const easingFns: {
9
- easeInOutQuad: typeof easeInOutQuad;
10
- };
11
- declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
12
- declare const inputUtils: {
13
- disableUserInput: typeof disableUserInput;
14
- };
15
- /**
16
- * Возвращает true, если значение равно null или undefined
17
- */
18
- declare function isNil(value: unknown): boolean;
19
- declare const fnUtils: {
20
- isNil: typeof isNil;
21
- };
22
- export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { PaddingType } from "./index-72dda473";
4
- declare const isClient: () => boolean;
5
- declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
6
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
7
- declare function easeInOutQuad(x: number): number;
8
- declare const easingFns: {
9
- easeInOutQuad: typeof easeInOutQuad;
10
- };
11
- declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
12
- declare const inputUtils: {
13
- disableUserInput: typeof disableUserInput;
14
- };
15
- /**
16
- * Возвращает true, если значение равно null или undefined
17
- */
18
- declare function isNil(value: unknown): boolean;
19
- declare const fnUtils: {
20
- isNil: typeof isNil;
21
- };
22
- export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
@@ -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 };
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import React from "react";
3
- import { PaddingType } from "./index-72dda473";
4
- declare const isClient: () => boolean;
5
- declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
6
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
7
- declare function easeInOutQuad(x: number): number;
8
- declare const easingFns: {
9
- easeInOutQuad: typeof easeInOutQuad;
10
- };
11
- declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
12
- declare const inputUtils: {
13
- disableUserInput: typeof disableUserInput;
14
- };
15
- /**
16
- * Возвращает true, если значение равно null или undefined
17
- */
18
- declare function isNil(value: unknown): boolean;
19
- declare const fnUtils: {
20
- isNil: typeof isNil;
21
- };
22
- export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils };
File without changes