@alfalab/core-components-international-phone-input 1.2.3 → 1.2.4

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 (93) hide show
  1. package/{Component-89f0cb07.d.ts → Component-553146b2.d.ts} +1 -1
  2. package/Component-bdb4c6b9.d.ts +12 -0
  3. package/{esm/Component-e63ec8aa.d.ts → Component-c29389e5.d.ts} +1 -1
  4. package/Component.responsive-8566963f.d.ts +2 -2
  5. package/Component.responsive.d.ts +4 -4
  6. package/ResponsiveContext-08e5596c.d.ts +5 -0
  7. package/components/base-international-phone-input/Component.d.ts +1 -1
  8. package/components/base-international-phone-input/Component.js +1 -1
  9. package/components/base-international-phone-input/index.css +2 -2
  10. package/components/country-select/Component.js +1 -1
  11. package/components/country-select/index.css +8 -8
  12. package/components/flag-icon/component.js +1 -1
  13. package/components/flag-icon/index.css +3 -3
  14. package/components/select-field/component.js +1 -1
  15. package/components/select-field/index.css +9 -9
  16. package/{modern/Component-89f0cb07.d.ts → cssm/Component-553146b2.d.ts} +1 -1
  17. package/cssm/Component-bdb4c6b9.d.ts +12 -0
  18. package/{Component-e63ec8aa.d.ts → cssm/Component-c29389e5.d.ts} +1 -1
  19. package/cssm/Component.responsive-8566963f.d.ts +2 -2
  20. package/cssm/Component.responsive.d.ts +4 -4
  21. package/cssm/ResponsiveContext-08e5596c.d.ts +5 -0
  22. package/cssm/components/base-international-phone-input/Component.d.ts +1 -1
  23. package/cssm/index-136acbb1.d.ts +28 -0
  24. package/cssm/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
  25. package/cssm/index-8566963f.d.ts +2 -2
  26. package/cssm/index-bdb4c6b9.d.ts +183 -0
  27. package/cssm/index-ebda875c.d.ts +4 -1
  28. package/cssm/types.d.ts +1 -1
  29. package/cssm/typings-08e5596c.d.ts +56 -0
  30. package/{esm/typings-89f0cb07.d.ts → cssm/typings-553146b2.d.ts} +2 -1
  31. package/cssm/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
  32. package/cssm/utils-d2597f31.d.ts +1 -1
  33. package/{cssm/Component-89f0cb07.d.ts → esm/Component-553146b2.d.ts} +1 -1
  34. package/esm/Component-bdb4c6b9.d.ts +12 -0
  35. package/{modern/Component-e63ec8aa.d.ts → esm/Component-c29389e5.d.ts} +1 -1
  36. package/esm/Component.responsive-8566963f.d.ts +2 -2
  37. package/esm/Component.responsive.d.ts +4 -4
  38. package/esm/ResponsiveContext-08e5596c.d.ts +5 -0
  39. package/esm/components/base-international-phone-input/Component.d.ts +1 -1
  40. package/esm/components/base-international-phone-input/Component.js +1 -1
  41. package/esm/components/base-international-phone-input/index.css +2 -2
  42. package/esm/components/country-select/Component.js +1 -1
  43. package/esm/components/country-select/index.css +8 -8
  44. package/esm/components/flag-icon/component.js +1 -1
  45. package/esm/components/flag-icon/index.css +3 -3
  46. package/esm/components/select-field/component.js +1 -1
  47. package/esm/components/select-field/index.css +9 -9
  48. package/esm/index-136acbb1.d.ts +28 -0
  49. package/esm/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
  50. package/esm/index-8566963f.d.ts +2 -2
  51. package/esm/index-bdb4c6b9.d.ts +183 -0
  52. package/esm/index-ebda875c.d.ts +4 -1
  53. package/esm/types.d.ts +1 -1
  54. package/esm/typings-08e5596c.d.ts +56 -0
  55. package/{cssm/typings-89f0cb07.d.ts → esm/typings-553146b2.d.ts} +2 -1
  56. package/esm/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
  57. package/esm/utils-d2597f31.d.ts +1 -1
  58. package/index-136acbb1.d.ts +28 -0
  59. package/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
  60. package/index-8566963f.d.ts +2 -2
  61. package/index-bdb4c6b9.d.ts +183 -0
  62. package/index-ebda875c.d.ts +4 -1
  63. package/{esm/Component-89f0cb07.d.ts → modern/Component-553146b2.d.ts} +1 -1
  64. package/modern/Component-bdb4c6b9.d.ts +12 -0
  65. package/{cssm/Component-e63ec8aa.d.ts → modern/Component-c29389e5.d.ts} +1 -1
  66. package/modern/Component.responsive-8566963f.d.ts +2 -2
  67. package/modern/Component.responsive.d.ts +4 -4
  68. package/modern/ResponsiveContext-08e5596c.d.ts +5 -0
  69. package/modern/components/base-international-phone-input/Component.d.ts +1 -1
  70. package/modern/components/base-international-phone-input/Component.js +1 -1
  71. package/modern/components/base-international-phone-input/index.css +2 -2
  72. package/modern/components/country-select/Component.js +1 -1
  73. package/modern/components/country-select/index.css +8 -8
  74. package/modern/components/flag-icon/component.js +1 -1
  75. package/modern/components/flag-icon/index.css +3 -3
  76. package/modern/components/select-field/component.js +1 -1
  77. package/modern/components/select-field/index.css +9 -9
  78. package/modern/index-136acbb1.d.ts +28 -0
  79. package/modern/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
  80. package/modern/index-8566963f.d.ts +2 -2
  81. package/modern/index-bdb4c6b9.d.ts +183 -0
  82. package/modern/index-ebda875c.d.ts +4 -1
  83. package/modern/types.d.ts +1 -1
  84. package/modern/typings-08e5596c.d.ts +56 -0
  85. package/modern/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
  86. package/modern/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
  87. package/modern/utils-d2597f31.d.ts +1 -1
  88. package/package.json +4 -4
  89. package/types.d.ts +1 -1
  90. package/typings-08e5596c.d.ts +56 -0
  91. package/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
  92. package/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
  93. package/utils-d2597f31.d.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC } from "react";
4
- import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
4
+ import { CommonButtonProps, PrivateButtonProps } from "./typings-553146b2";
5
5
  type SpinnerProps = {
6
6
  /**
7
7
  * Управление видимостью компонента
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { View } from "./typings-08e5596c";
4
+ declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
5
+ size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
6
+ fullscreen?: boolean | undefined;
7
+ fixedPosition?: boolean | undefined;
8
+ hasCloser?: boolean | undefined;
9
+ } & {
10
+ view: View;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ export { Modal };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptgroupProps } from "./typings-e63ec8aa";
3
+ import { OptgroupProps } from "./typings-c29389e5";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { CommonButtonProps, ButtonProps } from "./typings-89f0cb07";
3
+ import { CommonButtonProps, ButtonProps } from "./typings-553146b2";
4
4
  declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
5
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
6
  export { ButtonMobile, Button };
7
- export type { CommonButtonProps as ButtonMobileProps } from "./typings-89f0cb07";
7
+ export type { CommonButtonProps as ButtonMobileProps } from "./typings-553146b2";
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
7
7
  clearableCountryCode?: boolean | undefined;
8
8
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
9
9
  clear?: boolean | undefined;
10
- filterFn?: ((value: string | undefined, option: import("./typings-e63ec8aa").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
12
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
13
13
  value: string;
@@ -28,7 +28,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
28
28
  clearableCountryCode?: boolean | undefined;
29
29
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
30
30
  clear?: boolean | undefined;
31
- filterFn?: ((value: string | undefined, option: import("./typings-e63ec8aa").OptionShape) => boolean) | undefined;
31
+ filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
32
32
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
33
33
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
34
34
  value: string;
@@ -36,9 +36,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
36
36
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
37
37
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
38
38
  } & {
39
- options: (import("./typings-e63ec8aa").OptionShape | import("./typings-e63ec8aa").GroupShape)[];
39
+ options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
40
40
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
41
- options: (import("./typings-e63ec8aa").OptionShape | import("./typings-e63ec8aa").GroupShape)[];
41
+ options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
42
42
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
43
43
  breakpoint?: number | undefined;
44
44
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TResponsiveModalContext } from "./typings-08e5596c";
4
+ declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
+ export { ResponsiveContext };
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
9
9
  clearableCountryCode?: boolean | undefined;
10
10
  countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
11
11
  clear?: boolean | undefined;
12
- filterFn?: ((value: string | undefined, option: import("../../typings-e63ec8aa").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-c29389e5").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
14
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
15
15
  value: string;
@@ -25,7 +25,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
25
25
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
26
26
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
27
27
 
28
- var styles = {"component":"international-phone-input__component_oocev","addons":"international-phone-input__addons_oocev"};
28
+ var styles = {"component":"international-phone-input__component_1p9xq","addons":"international-phone-input__addons_1p9xq"};
29
29
  require('./index.css')
30
30
 
31
31
  var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
- /* hash: oo1vx */
1
+ /* hash: 1pjvw */
2
2
 
3
- .international-phone-input__component_oocev .international-phone-input__addons_oocev {
3
+ .international-phone-input__component_1p9xq .international-phone-input__addons_1p9xq {
4
4
  padding-left: 0;
5
5
  }
@@ -18,7 +18,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
18
18
 
19
19
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
20
20
 
21
- var styles = {"component":"international-phone-input__component_x5drz","option":"international-phone-input__option_x5drz","flag":"international-phone-input__flag_x5drz","countryName":"international-phone-input__countryName_x5drz","dialCode":"international-phone-input__dialCode_x5drz","flagIconWrapper":"international-phone-input__flagIconWrapper_x5drz","emptyCountryIcon":"international-phone-input__emptyCountryIcon_x5drz"};
21
+ var styles = {"component":"international-phone-input__component_7spck","option":"international-phone-input__option_7spck","flag":"international-phone-input__flag_7spck","countryName":"international-phone-input__countryName_7spck","dialCode":"international-phone-input__dialCode_7spck","flagIconWrapper":"international-phone-input__flagIconWrapper_7spck","emptyCountryIcon":"international-phone-input__emptyCountryIcon_7spck"};
22
22
  require('./index.css')
23
23
 
24
24
  var CountrySelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 10vq2 */
1
+ /* hash: 1uxqc */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
@@ -18,29 +18,29 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- } .international-phone-input__component_x5drz {
21
+ } .international-phone-input__component_7spck {
22
22
  position: static;
23
23
  display: flex;
24
24
  min-width: initial;
25
25
  height: 100%;
26
- } .international-phone-input__option_x5drz {
26
+ } .international-phone-input__option_7spck {
27
27
  display: flex;
28
28
  align-items: flex-start;
29
29
  padding: var(--gap-s);
30
- } .international-phone-input__flag_x5drz {
30
+ } .international-phone-input__flag_7spck {
31
31
  flex-shrink: 0;
32
32
  margin-right: var(--gap-xs);
33
- } .international-phone-input__countryName_x5drz {
33
+ } .international-phone-input__countryName_7spck {
34
34
  margin-right: var(--gap-xs);
35
- } .international-phone-input__dialCode_x5drz {
35
+ } .international-phone-input__dialCode_7spck {
36
36
  color: var(--color-light-text-secondary);
37
- } .international-phone-input__flagIconWrapper_x5drz {
37
+ } .international-phone-input__flagIconWrapper_7spck {
38
38
  display: flex;
39
39
  justify-content: center;
40
40
  align-items: center;
41
41
  width: 24px;
42
42
  height: 24px;
43
43
  margin-left: var(--gap-s);
44
- } .international-phone-input__emptyCountryIcon_x5drz {
44
+ } .international-phone-input__emptyCountryIcon_7spck {
45
45
  color: var(--color-light-neutral-translucent-700);
46
46
  }
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"flagIcon":"international-phone-input__flagIcon_17z8b","flagPlaceholder":"international-phone-input__flagPlaceholder_17z8b"};
14
+ var styles = {"flagIcon":"international-phone-input__flagIcon_1xbwr","flagPlaceholder":"international-phone-input__flagPlaceholder_1xbwr"};
15
15
  require('./index.css')
16
16
 
17
17
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1p7tu */
1
+ /* hash: 16obl */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06); /* 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 */
@@ -17,10 +17,10 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_17z8b {
20
+ } .international-phone-input__flagIcon_1xbwr {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_17z8b {
23
+ } .international-phone-input__flagPlaceholder_1xbwr {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -17,7 +17,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
17
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
- var styles = {"component":"international-phone-input__component_16h25","flagIconContainer":"international-phone-input__flagIconContainer_16h25","emptyCountryIcon":"international-phone-input__emptyCountryIcon_16h25","disabled":"international-phone-input__disabled_16h25","inner":"international-phone-input__inner_16h25","l":"international-phone-input__l_16h25","xl":"international-phone-input__xl_16h25","focusVisible":"international-phone-input__focusVisible_16h25"};
20
+ var styles = {"component":"international-phone-input__component_5vgu3","flagIconContainer":"international-phone-input__flagIconContainer_5vgu3","emptyCountryIcon":"international-phone-input__emptyCountryIcon_5vgu3","disabled":"international-phone-input__disabled_5vgu3","inner":"international-phone-input__inner_5vgu3","l":"international-phone-input__l_5vgu3","xl":"international-phone-input__xl_5vgu3","focusVisible":"international-phone-input__focusVisible_5vgu3"};
21
21
  require('./index.css')
22
22
 
23
23
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 1jxbb */
1
+ /* hash: 3yg1a */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #2288fa;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .international-phone-input__component_16h25 {
24
+ } .international-phone-input__component_5vgu3 {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_16h25 {
29
+ } .international-phone-input__flagIconContainer_5vgu3 {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
33
33
  width: 24px;
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
- } .international-phone-input__emptyCountryIcon_16h25 {
36
+ } .international-phone-input__emptyCountryIcon_5vgu3 {
37
37
  color: var(--color-light-neutral-translucent-700);
38
- } .international-phone-input__disabled_16h25 {
38
+ } .international-phone-input__disabled_5vgu3 {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_16h25 {
40
+ } .international-phone-input__inner_5vgu3 {
41
41
  position: relative;
42
42
  display: flex;
43
43
  align-items: center;
44
44
  height: 100%;
45
45
  padding-left: var(--gap-s);
46
46
  outline: none;
47
- } .international-phone-input__l_16h25 .international-phone-input__inner_16h25,
48
- .international-phone-input__xl_16h25 .international-phone-input__inner_16h25 {
47
+ } .international-phone-input__l_5vgu3 .international-phone-input__inner_5vgu3,
48
+ .international-phone-input__xl_5vgu3 .international-phone-input__inner_5vgu3 {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_16h25 {
50
+ } .international-phone-input__focusVisible_5vgu3 {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC } from "react";
4
- import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
4
+ import { CommonButtonProps, PrivateButtonProps } from "./typings-553146b2";
5
5
  type SpinnerProps = {
6
6
  /**
7
7
  * Управление видимостью компонента
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { View } from "./typings-08e5596c";
4
+ declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
5
+ size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
6
+ fullscreen?: boolean | undefined;
7
+ fixedPosition?: boolean | undefined;
8
+ hasCloser?: boolean | undefined;
9
+ } & {
10
+ view: View;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ export { Modal };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptgroupProps } from "./typings-e63ec8aa";
3
+ import { OptgroupProps } from "./typings-c29389e5";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { CommonButtonProps, ButtonProps } from "./typings-89f0cb07";
3
+ import { CommonButtonProps, ButtonProps } from "./typings-553146b2";
4
4
  declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
5
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
6
  export { ButtonMobile, Button };
7
- export type { CommonButtonProps as ButtonMobileProps } from "./typings-89f0cb07";
7
+ export type { CommonButtonProps as ButtonMobileProps } from "./typings-553146b2";
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
7
7
  clearableCountryCode?: boolean | undefined;
8
8
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
9
9
  clear?: boolean | undefined;
10
- filterFn?: ((value: string | undefined, option: import("./typings-e63ec8aa").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
12
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
13
13
  value: string;
@@ -28,7 +28,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
28
28
  clearableCountryCode?: boolean | undefined;
29
29
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
30
30
  clear?: boolean | undefined;
31
- filterFn?: ((value: string | undefined, option: import("./typings-e63ec8aa").OptionShape) => boolean) | undefined;
31
+ filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
32
32
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
33
33
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
34
34
  value: string;
@@ -36,9 +36,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
36
36
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
37
37
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
38
38
  } & {
39
- options: (import("./typings-e63ec8aa").OptionShape | import("./typings-e63ec8aa").GroupShape)[];
39
+ options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
40
40
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
41
- options: (import("./typings-e63ec8aa").OptionShape | import("./typings-e63ec8aa").GroupShape)[];
41
+ options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
42
42
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
43
43
  breakpoint?: number | undefined;
44
44
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TResponsiveModalContext } from "./typings-08e5596c";
4
+ declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
+ export { ResponsiveContext };
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
9
9
  clearableCountryCode?: boolean | undefined;
10
10
  countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
11
11
  clear?: boolean | undefined;
12
- filterFn?: ((value: string | undefined, option: import("../../typings-e63ec8aa").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-c29389e5").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
14
  onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
15
15
  value: string;
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { FC, ReactNode } from "react";
3
+ /**
4
+ * Набор констант для z-index соответствующих классов компонентов.
5
+ * Значения выбраны по приоритету.
6
+ */
7
+ declare const stackingOrder: {
8
+ FOCUSED: number;
9
+ DEFAULT: number;
10
+ POPOVER: number;
11
+ MODAL: number;
12
+ TOAST: number;
13
+ };
14
+ declare const StackingContext: import("react").Context<number>;
15
+ type StackProps = {
16
+ /**
17
+ * Render prop, в который передается функция.
18
+ * Функция принимает аргумент со значением z-index из текущего контекста.
19
+ */
20
+ children: (value: number) => ReactNode;
21
+ /**
22
+ * Исходное значение для z-index.
23
+ * @default 5
24
+ */
25
+ value?: number;
26
+ };
27
+ declare const Stack: FC<StackProps>;
28
+ export { stackingOrder, StackingContext, StackProps, Stack };
@@ -1,2 +1,2 @@
1
1
  export { Button } from "./Component.responsive-8566963f";
2
- export type { ButtonProps } from "./typings-89f0cb07";
2
+ export type { ButtonProps } from "./typings-553146b2";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { CommonButtonProps } from "./typings-89f0cb07";
3
+ import { CommonButtonProps } from "./typings-553146b2";
4
4
  declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
5
  export { ButtonDesktop };
6
- export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
6
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-553146b2";
@@ -0,0 +1,183 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react-transition-group" />
3
+ /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
+ import React from "react";
5
+ import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
6
+ import { TransitionProps } from "react-transition-group/Transition";
7
+ import { BackdropProps, PortalProps } from "./index-ebda875c";
8
+ type BaseModalProps = {
9
+ /**
10
+ * Контент
11
+ */
12
+ children?: ReactNode;
13
+ /**
14
+ * Компонент бэкдропа
15
+ */
16
+ Backdrop?: FC<BackdropProps>;
17
+ /**
18
+ * Свойства для Бэкдропа
19
+ */
20
+ backdropProps?: Partial<BackdropProps> & Record<string, unknown>;
21
+ /**
22
+ * Нода, компонент или функция возвращающая их
23
+ *
24
+ * Контейнер к которому будут добавляться порталы
25
+ */
26
+ container?: PortalProps["getPortalContainer"];
27
+ /**
28
+ * Отключает автоматический перевод фокуса на модалку при открытии
29
+ * @default false
30
+ */
31
+ disableAutoFocus?: boolean;
32
+ /**
33
+ * Отключает ловушку фокуса
34
+ * @default false
35
+ */
36
+ disableFocusLock?: boolean;
37
+ /**
38
+ * Отключает восстановление фокуса на предыдущем элементе после закрытия модалки
39
+ * @default false
40
+ */
41
+ disableRestoreFocus?: boolean;
42
+ /**
43
+ * Отключает вызов `callback` при нажатии Escape
44
+ * @default false
45
+ */
46
+ disableEscapeKeyDown?: boolean;
47
+ /**
48
+ * Отключает вызов `callback` при клике на бэкдроп
49
+ * @default false
50
+ */
51
+ disableBackdropClick?: boolean;
52
+ /**
53
+ * Отключает блокировку скролла при открытии модального окна
54
+ * @default false
55
+ */
56
+ disableBlockingScroll?: boolean;
57
+ /**
58
+ * Содержимое модалки всегда в DOM
59
+ * @default false
60
+ */
61
+ keepMounted?: boolean;
62
+ /**
63
+ * Управление видимостью модалки
64
+ */
65
+ open: boolean;
66
+ /**
67
+ * Дополнительный класс
68
+ */
69
+ className?: string;
70
+ /**
71
+ * Дополнительный класс
72
+ */
73
+ contentClassName?: string;
74
+ /**
75
+ * Дополнительные пропсы на dialog wrapper
76
+ */
77
+ wrapperProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
78
+ /**
79
+ * Дополнительные пропсы на обертку контента
80
+ */
81
+ contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
82
+ /**
83
+ * Дополнительные пропсы на компонентную обертку контента
84
+ */
85
+ componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
86
+ /**
87
+ * Дополнительный класс для обертки (Modal)
88
+ */
89
+ wrapperClassName?: string;
90
+ /**
91
+ * Обработчик скролла контента
92
+ */
93
+ scrollHandler?: "wrapper" | "content" | MutableRefObject<HTMLDivElement | null>;
94
+ /**
95
+ * Пропсы для анимации (CSSTransition)
96
+ */
97
+ transitionProps?: Partial<TransitionProps>;
98
+ /**
99
+ * Рендерить ли в контейнер через портал.
100
+ * @default true
101
+ */
102
+ usePortal?: boolean;
103
+ /**
104
+ * Обработчик события нажатия на бэкдроп
105
+ */
106
+ onBackdropClick?: (event: MouseEvent) => void;
107
+ /**
108
+ * Обработчик события нажатия на Escape
109
+ *
110
+ * Если `disableEscapeKeyDown` - false и модальное окно в фокусе
111
+ */
112
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
113
+ /**
114
+ * Обработчик закрытия
115
+ */
116
+ onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
117
+ /**
118
+ * Обработчик события onEntered компонента Transition
119
+ */
120
+ onMount?: () => void;
121
+ /**
122
+ * Обработчик события onExited компонента Transition
123
+ */
124
+ onUnmount?: () => void;
125
+ /**
126
+ * Идентификатор для систем автоматизированного тестирования
127
+ */
128
+ dataTestId?: string;
129
+ /**
130
+ * z-index компонента
131
+ */
132
+ zIndex?: number;
133
+ /**
134
+ * Реф, который должен быть установлен компонентной области
135
+ */
136
+ componentRef?: MutableRefObject<HTMLDivElement | null>;
137
+ };
138
+ type BaseModalContext = {
139
+ parentRef: React.RefObject<HTMLDivElement>;
140
+ componentRef: React.RefObject<HTMLDivElement>;
141
+ hasFooter?: boolean;
142
+ hasHeader?: boolean;
143
+ hasScroll?: boolean;
144
+ headerHighlighted?: boolean;
145
+ footerHighlighted?: boolean;
146
+ headerOffset?: number;
147
+ setHeaderOffset: (offset: number) => void;
148
+ contentRef: Ref<HTMLElement>;
149
+ setHasHeader: (exists: boolean) => void;
150
+ setHasFooter: (exists: boolean) => void;
151
+ onClose: Required<BaseModalProps>["onClose"];
152
+ };
153
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
154
+ declare const BaseModalContext: React.Context<BaseModalContext>;
155
+ declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.RefAttributes<HTMLDivElement>>;
156
+ declare function isScrolledToTop(target: HTMLElement): boolean;
157
+ declare function isScrolledToBottom(target: HTMLElement): boolean;
158
+ declare function hasScrollbar(target: HTMLElement): boolean;
159
+ declare const restoreContainerStyles: (container: HTMLElement) => void;
160
+ declare const handleContainer: (container?: HTMLElement) => void;
161
+ type SavedStyle = {
162
+ value: string;
163
+ key: string;
164
+ el: HTMLElement;
165
+ };
166
+ type RestoreStyle = {
167
+ container: HTMLElement;
168
+ modals: number;
169
+ styles: SavedStyle[];
170
+ };
171
+ declare class ModalStore {
172
+ private readonly restoreStyles;
173
+ constructor();
174
+ getRestoreStyles: () => RestoreStyle[];
175
+ }
176
+ declare const getModalStore: () => ModalStore;
177
+ declare class GlobalStore {
178
+ private readonly modalStore;
179
+ constructor();
180
+ getModalStore: () => ModalStore;
181
+ }
182
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, getModalStore, GlobalStore };
183
+ export type { SavedStyle };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react-transition-group" />
2
3
  import React from "react";
3
4
  import { HTMLAttributes, ReactNode } from "react";
4
5
  type StyleColors = {
@@ -95,7 +96,9 @@ type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
95
96
  */
96
97
  rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
97
98
  /**
98
- * Идентификатор для систем автоматизированного тестирования
99
+ * Идентификатор для систем автоматизированного тестирования.
100
+ * Для слота слева используется модификатор -left-addons, слота справа -right-addons,
101
+ * ошибки -error-message, текста подсказки -hint
99
102
  */
100
103
  dataTestId?: string;
101
104
  /**
package/cssm/types.d.ts CHANGED
@@ -5,7 +5,7 @@ import { InputMobileProps } from "@alfalab/core-components-input/mobile";
5
5
  import { InputAutocompleteProps } from "@alfalab/core-components-input-autocomplete";
6
6
  import { InputAutocompleteDesktopProps } from "@alfalab/core-components-input-autocomplete/desktop";
7
7
  import { InputAutocompleteMobileProps } from "@alfalab/core-components-input-autocomplete/mobile";
8
- import { OptionShape } from "./typings-e63ec8aa";
8
+ import { OptionShape } from "./typings-c29389e5";
9
9
  import { SharedCountrySelectProps } from "./components/country-select/index";
10
10
  type Country = {
11
11
  name: string;