@alfalab/core-components-international-phone-input 1.2.2 → 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 (170) hide show
  1. package/{esm/Component-89f0cb07.d.ts → Component-553146b2.d.ts} +1 -1
  2. package/Component-bdb4c6b9.d.ts +12 -0
  3. package/{Component-0816e61d.d.ts → Component-c29389e5.d.ts} +1 -1
  4. package/Component.mobile-ebda875c.d.ts +6 -0
  5. package/{cssm/index-8b2c2707.d.ts → Component.responsive-8566963f.d.ts} +4 -4
  6. package/Component.responsive.d.ts +10 -10
  7. package/Component.responsive.js +4 -4
  8. package/ResponsiveContext-08e5596c.d.ts +5 -0
  9. package/components/base-international-phone-input/Component.d.ts +3 -3
  10. package/components/base-international-phone-input/Component.js +1 -1
  11. package/components/base-international-phone-input/index.css +2 -2
  12. package/components/country-select/Component.js +1 -1
  13. package/components/country-select/index.css +8 -8
  14. package/components/flag-icon/component.js +1 -1
  15. package/components/flag-icon/index.css +3 -3
  16. package/components/select-field/component.js +1 -1
  17. package/components/select-field/index.css +9 -9
  18. package/{Component-89f0cb07.d.ts → cssm/Component-553146b2.d.ts} +1 -1
  19. package/cssm/Component-bdb4c6b9.d.ts +12 -0
  20. package/{esm/Component-0816e61d.d.ts → cssm/Component-c29389e5.d.ts} +1 -1
  21. package/cssm/Component.mobile-ebda875c.d.ts +6 -0
  22. package/{esm/index-8b2c2707.d.ts → cssm/Component.responsive-8566963f.d.ts} +4 -4
  23. package/cssm/Component.responsive.d.ts +10 -10
  24. package/cssm/Component.responsive.js +4 -4
  25. package/cssm/ResponsiveContext-08e5596c.d.ts +5 -0
  26. package/cssm/components/base-international-phone-input/Component.d.ts +3 -3
  27. package/cssm/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +1 -1
  28. package/cssm/{Component.desktop.js → desktop/Component.desktop.js} +15 -15
  29. package/cssm/desktop/index.d.ts +1 -1
  30. package/cssm/desktop/index.js +3 -3
  31. package/cssm/index-553146b2.d.ts +2 -0
  32. package/cssm/{Component.desktop-0aa4e915.d.ts → index-8566963f.d.ts} +3 -2
  33. package/cssm/index-ebda875c.d.ts +140 -12
  34. package/cssm/index.js +3 -3
  35. package/cssm/{Component.mobile.d.ts → mobile/Component.mobile.d.ts} +1 -1
  36. package/cssm/{Component.mobile.js → mobile/Component.mobile.js} +12 -12
  37. package/cssm/mobile/index.d.ts +1 -1
  38. package/cssm/mobile/index.js +2 -2
  39. package/cssm/types.d.ts +1 -1
  40. package/cssm/typings-08e5596c.d.ts +56 -0
  41. package/cssm/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
  42. package/cssm/{typings-0816e61d.d.ts → typings-c29389e5.d.ts} +719 -56
  43. package/cssm/utils-d2597f31.d.ts +1 -1
  44. package/{esm → desktop}/Component.desktop.d.ts +1 -1
  45. package/{Component.desktop.js → desktop/Component.desktop.js} +11 -11
  46. package/desktop/index.d.ts +1 -1
  47. package/desktop/index.js +3 -3
  48. package/{modern/Component-89f0cb07.d.ts → esm/Component-553146b2.d.ts} +1 -1
  49. package/esm/Component-bdb4c6b9.d.ts +12 -0
  50. package/{cssm/Component-0816e61d.d.ts → esm/Component-c29389e5.d.ts} +1 -1
  51. package/esm/Component.mobile-ebda875c.d.ts +6 -0
  52. package/{index-8b2c2707.d.ts → esm/Component.responsive-8566963f.d.ts} +4 -4
  53. package/esm/Component.responsive.d.ts +10 -10
  54. package/esm/Component.responsive.js +3 -3
  55. package/esm/ResponsiveContext-08e5596c.d.ts +5 -0
  56. package/esm/components/base-international-phone-input/Component.d.ts +3 -3
  57. package/esm/components/base-international-phone-input/Component.js +1 -1
  58. package/esm/components/base-international-phone-input/index.css +2 -2
  59. package/esm/components/country-select/Component.js +1 -1
  60. package/esm/components/country-select/index.css +8 -8
  61. package/esm/components/flag-icon/component.js +1 -1
  62. package/esm/components/flag-icon/index.css +3 -3
  63. package/esm/components/select-field/component.js +1 -1
  64. package/esm/components/select-field/index.css +9 -9
  65. package/{Component.desktop.d.ts → esm/desktop/Component.desktop.d.ts} +1 -1
  66. package/esm/{Component.desktop.js → desktop/Component.desktop.js} +9 -9
  67. package/esm/desktop/index.d.ts +1 -1
  68. package/esm/desktop/index.js +2 -2
  69. package/esm/index-553146b2.d.ts +2 -0
  70. package/{modern/Component.desktop-0aa4e915.d.ts → esm/index-8566963f.d.ts} +3 -2
  71. package/esm/index-ebda875c.d.ts +140 -12
  72. package/esm/index.js +3 -3
  73. package/{Component.mobile.d.ts → esm/mobile/Component.mobile.d.ts} +1 -1
  74. package/esm/{Component.mobile.js → mobile/Component.mobile.js} +8 -8
  75. package/esm/mobile/index.d.ts +1 -1
  76. package/esm/mobile/index.js +1 -1
  77. package/esm/types.d.ts +1 -1
  78. package/esm/typings-08e5596c.d.ts +56 -0
  79. package/esm/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
  80. package/esm/{typings-0816e61d.d.ts → typings-c29389e5.d.ts} +719 -56
  81. package/esm/utils-d2597f31.d.ts +1 -1
  82. package/index-553146b2.d.ts +2 -0
  83. package/{esm/Component.desktop-0aa4e915.d.ts → index-8566963f.d.ts} +3 -2
  84. package/index-ebda875c.d.ts +140 -12
  85. package/index.js +3 -3
  86. package/{esm → mobile}/Component.mobile.d.ts +1 -1
  87. package/{Component.mobile.js → mobile/Component.mobile.js} +8 -8
  88. package/mobile/index.d.ts +1 -1
  89. package/mobile/index.js +2 -2
  90. package/{cssm/Component-89f0cb07.d.ts → modern/Component-553146b2.d.ts} +1 -1
  91. package/modern/Component-bdb4c6b9.d.ts +12 -0
  92. package/modern/{Component-0816e61d.d.ts → Component-c29389e5.d.ts} +1 -1
  93. package/modern/Component.mobile-ebda875c.d.ts +6 -0
  94. package/modern/{index-8b2c2707.d.ts → Component.responsive-8566963f.d.ts} +4 -4
  95. package/modern/Component.responsive.d.ts +10 -10
  96. package/modern/Component.responsive.js +3 -3
  97. package/modern/ResponsiveContext-08e5596c.d.ts +5 -0
  98. package/modern/components/base-international-phone-input/Component.d.ts +3 -3
  99. package/modern/components/base-international-phone-input/Component.js +1 -1
  100. package/modern/components/base-international-phone-input/index.css +2 -2
  101. package/modern/components/country-select/Component.js +1 -1
  102. package/modern/components/country-select/index.css +8 -8
  103. package/modern/components/flag-icon/component.js +1 -1
  104. package/modern/components/flag-icon/index.css +3 -3
  105. package/modern/components/select-field/component.js +1 -1
  106. package/modern/components/select-field/index.css +9 -9
  107. package/modern/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +1 -1
  108. package/modern/{Component.desktop.js → desktop/Component.desktop.js} +9 -9
  109. package/modern/desktop/index.d.ts +1 -1
  110. package/modern/desktop/index.js +2 -2
  111. package/modern/index-553146b2.d.ts +2 -0
  112. package/{Component.desktop-0aa4e915.d.ts → modern/index-8566963f.d.ts} +3 -2
  113. package/modern/index-ebda875c.d.ts +140 -12
  114. package/modern/index.js +3 -3
  115. package/modern/{Component.mobile.d.ts → mobile/Component.mobile.d.ts} +1 -1
  116. package/modern/{Component.mobile.js → mobile/Component.mobile.js} +8 -8
  117. package/modern/mobile/index.d.ts +1 -1
  118. package/modern/mobile/index.js +1 -1
  119. package/modern/types.d.ts +1 -1
  120. package/modern/typings-08e5596c.d.ts +56 -0
  121. package/modern/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
  122. package/modern/{typings-0816e61d.d.ts → typings-c29389e5.d.ts} +719 -56
  123. package/modern/utils-d2597f31.d.ts +1 -1
  124. package/package.json +4 -4
  125. package/src/Component.responsive.tsx +2 -2
  126. package/src/{Component.desktop.tsx → desktop/Component.desktop.tsx} +3 -3
  127. package/src/desktop/index.ts +1 -1
  128. package/src/{Component.mobile.tsx → mobile/Component.mobile.tsx} +5 -2
  129. package/src/mobile/index.ts +1 -1
  130. package/types.d.ts +1 -1
  131. package/typings-08e5596c.d.ts +56 -0
  132. package/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
  133. package/{typings-0816e61d.d.ts → typings-c29389e5.d.ts} +719 -56
  134. package/utils-d2597f31.d.ts +1 -1
  135. package/Component-8b2c2707.d.ts +0 -71
  136. package/Component.responsive-785df74d.d.ts +0 -28
  137. package/cssm/Component-8b2c2707.d.ts +0 -71
  138. package/cssm/Component.responsive-785df74d.d.ts +0 -28
  139. package/cssm/index-72dda473.d.ts +0 -12
  140. package/cssm/index-89f0cb07.d.ts +0 -2
  141. package/cssm/index-c44170fe.d.ts +0 -2
  142. package/cssm/index-c76d6398.d.ts +0 -319
  143. package/cssm/types-72dda473.d.ts +0 -276
  144. package/cssm/typings-c44170fe.d.ts +0 -91
  145. package/esm/Component-8b2c2707.d.ts +0 -71
  146. package/esm/Component.responsive-785df74d.d.ts +0 -28
  147. package/esm/index-72dda473.d.ts +0 -12
  148. package/esm/index-89f0cb07.d.ts +0 -2
  149. package/esm/index-c44170fe.d.ts +0 -2
  150. package/esm/index-c76d6398.d.ts +0 -319
  151. package/esm/types-72dda473.d.ts +0 -276
  152. package/esm/typings-c44170fe.d.ts +0 -91
  153. package/index-72dda473.d.ts +0 -12
  154. package/index-89f0cb07.d.ts +0 -2
  155. package/index-c44170fe.d.ts +0 -2
  156. package/index-c76d6398.d.ts +0 -319
  157. package/modern/Component-8b2c2707.d.ts +0 -71
  158. package/modern/Component.responsive-785df74d.d.ts +0 -28
  159. package/modern/index-72dda473.d.ts +0 -12
  160. package/modern/index-89f0cb07.d.ts +0 -2
  161. package/modern/index-c44170fe.d.ts +0 -2
  162. package/modern/index-c76d6398.d.ts +0 -319
  163. package/modern/types-72dda473.d.ts +0 -276
  164. package/modern/typings-c44170fe.d.ts +0 -91
  165. package/types-72dda473.d.ts +0 -276
  166. package/typings-c44170fe.d.ts +0 -91
  167. /package/{Component.desktop-785df74d.d.ts → Component.desktop-ebda875c.d.ts} +0 -0
  168. /package/cssm/{Component.desktop-785df74d.d.ts → Component.desktop-ebda875c.d.ts} +0 -0
  169. /package/esm/{Component.desktop-785df74d.d.ts → Component.desktop-ebda875c.d.ts} +0 -0
  170. /package/modern/{Component.desktop-785df74d.d.ts → Component.desktop-ebda875c.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0816e61d";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-c29389e5";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { InternationalPhoneInputDesktopProps } from "./types";
3
+ import { InternationalPhoneInputDesktopProps } from "../types";
4
4
  declare const InternationalPhoneInputDesktop: React.ForwardRefExoticComponent<InternationalPhoneInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
5
5
  export { InternationalPhoneInputDesktop };
@@ -4,24 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var React = require('react');
7
- var Component_desktop = require('@alfalab/core-components-input/Component.desktop');
8
- var desktop$1 = require('@alfalab/core-components-input-autocomplete/desktop');
7
+ var desktop$1 = require('@alfalab/core-components-input/desktop');
8
+ var desktop$2 = require('@alfalab/core-components-input-autocomplete/desktop');
9
9
  var desktop = require('@alfalab/core-components-select/desktop');
10
- var components_baseInternationalPhoneInput_Component = require('./components/base-international-phone-input/Component.js');
10
+ var components_baseInternationalPhoneInput_Component = require('../components/base-international-phone-input/Component.js');
11
11
  require('react-merge-refs');
12
12
  require('@maskito/core');
13
13
  require('@maskito/react');
14
14
  require('@alfalab/core-components-select/shared');
15
- require('./utils/index.js');
15
+ require('../utils/index.js');
16
16
  require('@alfalab/core-components-shared');
17
- require('./consts.js');
18
- require('./data/country-data.js');
19
- require('./components/country-select/Component.js');
17
+ require('../consts.js');
18
+ require('../data/country-data.js');
19
+ require('../components/country-select/Component.js');
20
20
  require('@alfalab/icons-glyph/WorldMagnifierMIcon');
21
- require('./components/flag-icon/component.js');
21
+ require('../components/flag-icon/component.js');
22
22
  require('classnames');
23
- require('./components/flag-icon/flagSprite.js');
24
- require('./components/select-field/component.js');
23
+ require('../components/flag-icon/flagSprite.js');
24
+ require('../components/select-field/component.js');
25
25
  require('@alfalab/hooks');
26
26
 
27
27
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -30,7 +30,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
30
30
 
31
31
  var InternationalPhoneInputDesktop = React.forwardRef(function (_a, ref) {
32
32
  var value = _a.value, _b = _a.clearableCountryCode, clearableCountryCode = _b === void 0 ? true : _b, restProps = tslib.__rest(_a, ["value", "clearableCountryCode"]);
33
- return (React__default.default.createElement(components_baseInternationalPhoneInput_Component.BaseInternationalPhoneInput, tslib.__assign({ selected: value }, restProps, { clearableCountryCode: clearableCountryCode, value: value, view: 'desktop', ref: ref, SelectComponent: desktop.SelectDesktop, Input: Component_desktop.InputDesktop, InputAutocomplete: desktop$1.InputAutocompleteDesktop })));
33
+ return (React__default.default.createElement(components_baseInternationalPhoneInput_Component.BaseInternationalPhoneInput, tslib.__assign({ selected: value }, restProps, { clearableCountryCode: clearableCountryCode, value: value, view: 'desktop', ref: ref, SelectComponent: desktop.SelectDesktop, Input: desktop$1.InputDesktop, InputAutocomplete: desktop$2.InputAutocompleteDesktop })));
34
34
  });
35
35
 
36
36
  exports.InternationalPhoneInputDesktop = InternationalPhoneInputDesktop;
@@ -1,2 +1,2 @@
1
- export { InternationalPhoneInputDesktop } from "../Component.desktop";
1
+ export { InternationalPhoneInputDesktop } from "./Component.desktop";
2
2
  export type { InternationalPhoneInputDesktopProps } from "../types";
package/desktop/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Component_desktop = require('../Component.desktop.js');
5
+ var desktop_Component_desktop = require('./Component.desktop.js');
6
6
  require('tslib');
7
7
  require('react');
8
- require('@alfalab/core-components-input/Component.desktop');
8
+ require('@alfalab/core-components-input/desktop');
9
9
  require('@alfalab/core-components-input-autocomplete/desktop');
10
10
  require('@alfalab/core-components-select/desktop');
11
11
  require('../components/base-international-phone-input/Component.js');
@@ -27,4 +27,4 @@ require('@alfalab/hooks');
27
27
 
28
28
 
29
29
 
30
- exports.InternationalPhoneInputDesktop = Component_desktop.InternationalPhoneInputDesktop;
30
+ exports.InternationalPhoneInputDesktop = desktop_Component_desktop.InternationalPhoneInputDesktop;
@@ -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-0816e61d";
3
+ import { OptgroupProps } from "./typings-c29389e5";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BaseFormControlProps } from "./index-ebda875c";
4
+ type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
+ declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { FormControlMobileProps, FormControlMobile };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { ButtonProps, CommonButtonProps } from "./typings-89f0cb07";
4
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
3
+ import { CommonButtonProps, ButtonProps } from "./typings-553146b2";
5
4
  declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
- export { Button, ButtonMobile };
7
- export type { ButtonProps } from "./typings-89f0cb07";
5
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
+ export { ButtonMobile, Button };
7
+ export type { CommonButtonProps as ButtonMobileProps } from "./typings-553146b2";
@@ -7,18 +7,18 @@ 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-0816e61d").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;
14
14
  }) => void) | undefined;
15
- onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
16
- onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
15
+ onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
16
+ onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
17
17
  } & {
18
18
  options?: undefined;
19
- } & Omit<import("./Component.desktop").InputDesktopProps, "onFocus" | "onBlur" | "onChange" | "onInput" | "clear" | "onClear"> & {
19
+ } & Omit<import("@alfalab/core-components-input/desktop").InputDesktopProps, "onFocus" | "onBlur" | "onChange" | "onInput" | "clear" | "onClear"> & {
20
20
  options?: undefined;
21
- } & Omit<import("@alfalab/core-components-input/Component.mobile").InputMobileProps, "onFocus" | "onBlur" | "onChange" | "onInput" | "clear" | "onClear"> & {
21
+ } & Omit<import("@alfalab/core-components-input/mobile").InputMobileProps, "onFocus" | "onBlur" | "onChange" | "onInput" | "clear" | "onClear"> & {
22
22
  breakpoint?: number | undefined;
23
23
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
24
24
  }) | ({
@@ -28,17 +28,17 @@ 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-0816e61d").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;
35
35
  }) => void) | undefined;
36
- onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
37
- onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
36
+ onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
37
+ onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
38
38
  } & {
39
- options: (import("./typings-0816e61d").OptionShape | import("./typings-0816e61d").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-0816e61d").OptionShape | import("./typings-0816e61d").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;
@@ -1,9 +1,9 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { useMatchMedia } from '@alfalab/core-components-mq/esm';
4
- import { InternationalPhoneInputDesktop } from './Component.desktop.js';
5
- import { InternationalPhoneInputMobile } from './Component.mobile.js';
6
- import '@alfalab/core-components-input/esm/Component.desktop';
4
+ import { InternationalPhoneInputDesktop } from './desktop/Component.desktop.js';
5
+ import { InternationalPhoneInputMobile } from './mobile/Component.mobile.js';
6
+ import '@alfalab/core-components-input/esm/desktop';
7
7
  import '@alfalab/core-components-input-autocomplete/esm/desktop';
8
8
  import '@alfalab/core-components-select/esm/desktop';
9
9
  import './components/base-international-phone-input/Component.js';
@@ -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,13 +9,13 @@ 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-0816e61d").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;
16
16
  }) => void) | undefined;
17
- onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
18
- onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
17
+ onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
18
+ onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
19
19
  } & {
20
20
  Input: React.FC<import("@alfalab/core-components-input").InputProps>;
21
21
  InputAutocomplete: React.FC<InputAutocompleteProps>;
@@ -16,7 +16,7 @@ import '../flag-icon/flagSprite.js';
16
16
  import '../select-field/component.js';
17
17
  import '@alfalab/hooks';
18
18
 
19
- var styles = {"component":"international-phone-input__component_p0607","addons":"international-phone-input__addons_p0607"};
19
+ var styles = {"component":"international-phone-input__component_1p9xq","addons":"international-phone-input__addons_1p9xq"};
20
20
  require('./index.css')
21
21
 
22
22
  var BaseInternationalPhoneInput = forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
- /* hash: at8ms */
1
+ /* hash: 1pjvw */
2
2
 
3
- .international-phone-input__component_p0607 .international-phone-input__addons_p0607 {
3
+ .international-phone-input__component_1p9xq .international-phone-input__addons_1p9xq {
4
4
  padding-left: 0;
5
5
  }
@@ -10,7 +10,7 @@ import '../flag-icon/flagSprite.js';
10
10
  import 'react-merge-refs';
11
11
  import '@alfalab/hooks';
12
12
 
13
- var styles = {"component":"international-phone-input__component_mi3mw","option":"international-phone-input__option_mi3mw","flag":"international-phone-input__flag_mi3mw","countryName":"international-phone-input__countryName_mi3mw","dialCode":"international-phone-input__dialCode_mi3mw","flagIconWrapper":"international-phone-input__flagIconWrapper_mi3mw","emptyCountryIcon":"international-phone-input__emptyCountryIcon_mi3mw"};
13
+ 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"};
14
14
  require('./index.css')
15
15
 
16
16
  var CountrySelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1do4o */
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_mi3mw {
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_mi3mw {
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_mi3mw {
30
+ } .international-phone-input__flag_7spck {
31
31
  flex-shrink: 0;
32
32
  margin-right: var(--gap-xs);
33
- } .international-phone-input__countryName_mi3mw {
33
+ } .international-phone-input__countryName_7spck {
34
34
  margin-right: var(--gap-xs);
35
- } .international-phone-input__dialCode_mi3mw {
35
+ } .international-phone-input__dialCode_7spck {
36
36
  color: var(--color-light-text-secondary);
37
- } .international-phone-input__flagIconWrapper_mi3mw {
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_mi3mw {
44
+ } .international-phone-input__emptyCountryIcon_7spck {
45
45
  color: var(--color-light-neutral-translucent-700);
46
46
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { flagSprite } from './flagSprite.js';
4
4
 
5
- var styles = {"flagIcon":"international-phone-input__flagIcon_1imig","flagPlaceholder":"international-phone-input__flagPlaceholder_1imig"};
5
+ var styles = {"flagIcon":"international-phone-input__flagIcon_1xbwr","flagPlaceholder":"international-phone-input__flagPlaceholder_1xbwr"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1nxx9 */
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_1imig {
20
+ } .international-phone-input__flagIcon_1xbwr {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_1imig {
23
+ } .international-phone-input__flagPlaceholder_1xbwr {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -7,7 +7,7 @@ import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
7
7
  import { FlagIcon } from '../flag-icon/component.js';
8
8
  import '../flag-icon/flagSprite.js';
9
9
 
10
- var styles = {"component":"international-phone-input__component_janu6","flagIconContainer":"international-phone-input__flagIconContainer_janu6","emptyCountryIcon":"international-phone-input__emptyCountryIcon_janu6","disabled":"international-phone-input__disabled_janu6","inner":"international-phone-input__inner_janu6","l":"international-phone-input__l_janu6","xl":"international-phone-input__xl_janu6","focusVisible":"international-phone-input__focusVisible_janu6"};
10
+ 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"};
11
11
  require('./index.css')
12
12
 
13
13
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 1ip3b */
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_janu6 {
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_janu6 {
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_janu6 {
36
+ } .international-phone-input__emptyCountryIcon_5vgu3 {
37
37
  color: var(--color-light-neutral-translucent-700);
38
- } .international-phone-input__disabled_janu6 {
38
+ } .international-phone-input__disabled_5vgu3 {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_janu6 {
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_janu6 .international-phone-input__inner_janu6,
48
- .international-phone-input__xl_janu6 .international-phone-input__inner_janu6 {
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_janu6 {
50
+ } .international-phone-input__focusVisible_5vgu3 {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { InternationalPhoneInputDesktopProps } from "./types";
3
+ import { InternationalPhoneInputDesktopProps } from "../types";
4
4
  declare const InternationalPhoneInputDesktop: React.ForwardRefExoticComponent<InternationalPhoneInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
5
5
  export { InternationalPhoneInputDesktop };
@@ -1,23 +1,23 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
- import { InputDesktop } from '@alfalab/core-components-input/esm/Component.desktop';
3
+ import { InputDesktop } from '@alfalab/core-components-input/esm/desktop';
4
4
  import { InputAutocompleteDesktop } from '@alfalab/core-components-input-autocomplete/esm/desktop';
5
5
  import { SelectDesktop } from '@alfalab/core-components-select/esm/desktop';
6
- import { BaseInternationalPhoneInput } from './components/base-international-phone-input/Component.js';
6
+ import { BaseInternationalPhoneInput } from '../components/base-international-phone-input/Component.js';
7
7
  import 'react-merge-refs';
8
8
  import '@maskito/core';
9
9
  import '@maskito/react';
10
10
  import '@alfalab/core-components-select/esm/shared';
11
- import './utils/index.js';
11
+ import '../utils/index.js';
12
12
  import '@alfalab/core-components-shared/esm';
13
- import './consts.js';
14
- import './data/country-data.js';
15
- import './components/country-select/Component.js';
13
+ import '../consts.js';
14
+ import '../data/country-data.js';
15
+ import '../components/country-select/Component.js';
16
16
  import '@alfalab/icons-glyph/WorldMagnifierMIcon';
17
- import './components/flag-icon/component.js';
17
+ import '../components/flag-icon/component.js';
18
18
  import 'classnames';
19
- import './components/flag-icon/flagSprite.js';
20
- import './components/select-field/component.js';
19
+ import '../components/flag-icon/flagSprite.js';
20
+ import '../components/select-field/component.js';
21
21
  import '@alfalab/hooks';
22
22
 
23
23
  var InternationalPhoneInputDesktop = forwardRef(function (_a, ref) {
@@ -1,2 +1,2 @@
1
- export { InternationalPhoneInputDesktop } from "../Component.desktop";
1
+ export { InternationalPhoneInputDesktop } from "./Component.desktop";
2
2
  export type { InternationalPhoneInputDesktopProps } from "../types";
@@ -1,7 +1,7 @@
1
- export { InternationalPhoneInputDesktop } from '../Component.desktop.js';
1
+ export { InternationalPhoneInputDesktop } from './Component.desktop.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
- import '@alfalab/core-components-input/esm/Component.desktop';
4
+ import '@alfalab/core-components-input/esm/desktop';
5
5
  import '@alfalab/core-components-input-autocomplete/esm/desktop';
6
6
  import '@alfalab/core-components-select/esm/desktop';
7
7
  import '../components/base-international-phone-input/Component.js';
@@ -0,0 +1,2 @@
1
+ export { Button } from "./Component.responsive-8566963f";
2
+ export type { ButtonProps } from "./typings-553146b2";
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import React from 'react';
3
- import { CommonButtonProps } from "./typings-89f0cb07";
2
+ import React from "react";
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-553146b2";
@@ -1,20 +1,148 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react-transition-group" />
3
- import { ReactNode, RefObject } from "react";
4
- type PortalProps = {
5
- /** Контент */
3
+ import React from "react";
4
+ import { HTMLAttributes, ReactNode } from "react";
5
+ type StyleColors = {
6
+ default: {
7
+ [key: string]: string;
8
+ };
9
+ inverted: {
10
+ [key: string]: string;
11
+ };
12
+ };
13
+ type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
14
+ /**
15
+ * Растягивает компонент на ширину контейнера
16
+ */
17
+ block?: boolean;
18
+ /**
19
+ * Размер компонента
20
+ */
21
+ size?: "s" | "m" | "l" | "xl";
22
+ /**
23
+ * Набор цветов для компонента
24
+ */
25
+ colors?: "default" | "inverted";
26
+ /**
27
+ * Заблокированное состояние
28
+ */
29
+ disabled?: boolean;
30
+ /**
31
+ * Cостояние только для чтения
32
+ */
33
+ readOnly?: boolean;
34
+ /**
35
+ * Заполненное состояние
36
+ */
37
+ filled?: boolean;
38
+ /**
39
+ * Выбранное (фокус) состояние
40
+ */
41
+ focused?: boolean;
42
+ /**
43
+ * Отображение ошибки
44
+ */
45
+ error?: ReactNode | boolean;
46
+ /**
47
+ * Текст подсказки
48
+ */
49
+ hint?: ReactNode;
50
+ /**
51
+ * Лейбл компонента
52
+ */
53
+ label?: ReactNode;
54
+ /**
55
+ * Вид лейбла внутри / снаружи
56
+ */
57
+ labelView?: "inner" | "outer";
58
+ /**
59
+ * Слот слева
60
+ */
61
+ leftAddons?: ReactNode;
62
+ /**
63
+ * Слот справа
64
+ */
65
+ rightAddons?: ReactNode;
66
+ /**
67
+ * Слот под полем
68
+ */
69
+ bottomAddons?: ReactNode;
70
+ /**
71
+ * Дополнительный класс
72
+ */
73
+ className?: string;
74
+ /**
75
+ * Дополнительный класс для поля
76
+ */
77
+ fieldClassName?: string;
78
+ /**
79
+ * Дополнительный класс для поля
80
+ */
81
+ inputWrapperClassName?: string;
82
+ /**
83
+ * Дополнительный класс для лейбла
84
+ */
85
+ labelClassName?: string;
86
+ /**
87
+ * Дополнительный класс для аддонов
88
+ */
89
+ addonsClassName?: string;
90
+ /**
91
+ * Свойства для обертки левых аддонов
92
+ */
93
+ leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
94
+ /**
95
+ * Свойства для обертки правых аддонов
96
+ */
97
+ rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
98
+ /**
99
+ * Идентификатор для систем автоматизированного тестирования.
100
+ * Для слота слева используется модификатор -left-addons, слота справа -right-addons,
101
+ * ошибки -error-message, текста подсказки -hint
102
+ */
103
+ dataTestId?: string;
104
+ /**
105
+ * Компонент поля (инпут, textarea и пр.)
106
+ */
6
107
  children?: ReactNode;
7
108
  /**
8
- * Функция, возвращающая контейнер, в который будут рендериться дочерние элементы
109
+ * Основные стили компонента.
9
110
  */
10
- getPortalContainer?: () => Element;
111
+ styles: {
112
+ [key: string]: string;
113
+ };
11
114
  /**
12
- * Немедленно отрендерить дочерние элементы (false - контент будет отрендерен на след. рендер).
115
+ * Стили компонента для default и inverted режима.
13
116
  */
14
- immediateMount?: boolean;
117
+ colorStyles?: StyleColors;
15
118
  };
16
- declare const Portal: import("react").ForwardRefExoticComponent<PortalProps & import("react").RefAttributes<Element>>;
17
- declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
18
- declare const getDefaultPortalContainer: () => Element;
19
- declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
20
- export { PortalProps, Portal, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
119
+ declare const BaseFormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
120
+ block?: boolean | undefined;
121
+ size?: "s" | "m" | "l" | "xl" | undefined;
122
+ colors?: "default" | "inverted" | undefined;
123
+ disabled?: boolean | undefined;
124
+ readOnly?: boolean | undefined;
125
+ filled?: boolean | undefined;
126
+ focused?: boolean | undefined;
127
+ error?: ReactNode | boolean;
128
+ hint?: ReactNode;
129
+ label?: ReactNode;
130
+ labelView?: "inner" | "outer" | undefined;
131
+ leftAddons?: ReactNode;
132
+ rightAddons?: ReactNode;
133
+ bottomAddons?: ReactNode;
134
+ className?: string | undefined;
135
+ fieldClassName?: string | undefined;
136
+ inputWrapperClassName?: string | undefined;
137
+ labelClassName?: string | undefined;
138
+ addonsClassName?: string | undefined;
139
+ leftAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
140
+ rightAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
141
+ dataTestId?: string | undefined;
142
+ children?: ReactNode;
143
+ styles: {
144
+ [key: string]: string;
145
+ };
146
+ colorStyles?: StyleColors | undefined;
147
+ } & React.RefAttributes<HTMLDivElement>>;
148
+ export { StyleColors, BaseFormControlProps, BaseFormControl };