@alfalab/core-components-intl-phone-input 9.5.0 → 9.5.2

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 (87) hide show
  1. package/Component-4cd3936b.d.ts +1 -1
  2. package/Component-50136800.d.ts +6 -0
  3. package/Component-5e1b8383.d.ts +96 -18
  4. package/{cssm/Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
  5. package/{component-89a3cf4c.d.ts → component-50136800.d.ts} +2 -2
  6. package/component.d.ts +1 -1
  7. package/component.js +1 -1
  8. package/components/flag-icon/component.js +1 -1
  9. package/components/flag-icon/index.css +3 -3
  10. package/components/select/component.d.ts +1 -1
  11. package/components/select/component.js +1 -1
  12. package/components/select/index.css +6 -6
  13. package/components/select-field/component.js +1 -1
  14. package/components/select-field/index.css +9 -9
  15. package/createPaddingStyle-72dda473.d.ts +5 -0
  16. package/{Component-89a3cf4c.d.ts → cssm/Component-50136800.d.ts} +2 -2
  17. package/{Component-e81c389f.d.ts → cssm/Component-c76d6398.d.ts} +1 -1
  18. package/cssm/{component-89a3cf4c.d.ts → component-50136800.d.ts} +2 -2
  19. package/cssm/createPaddingStyle-72dda473.d.ts +5 -0
  20. package/cssm/index-50136800.d.ts +8 -0
  21. package/cssm/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
  22. package/cssm/index-c76d6398.d.ts +2 -0
  23. package/cssm/index-f12ee135.d.ts +2 -2
  24. package/cssm/shared-4cd3936b.d.ts +1 -1
  25. package/cssm/{types-425c8522.d.ts → types-72dda473.d.ts} +2 -2
  26. package/desktop-63dec22f.d.ts +1 -1
  27. package/{cssm/Component-89a3cf4c.d.ts → esm/Component-50136800.d.ts} +2 -2
  28. package/esm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
  29. package/{modern/component-89a3cf4c.d.ts → esm/component-50136800.d.ts} +2 -2
  30. package/esm/component.js +1 -1
  31. package/esm/components/flag-icon/component.js +1 -1
  32. package/esm/components/flag-icon/index.css +3 -3
  33. package/esm/components/select/component.js +1 -1
  34. package/esm/components/select/index.css +6 -6
  35. package/esm/components/select-field/component.js +1 -1
  36. package/esm/components/select-field/index.css +9 -9
  37. package/esm/createPaddingStyle-72dda473.d.ts +5 -0
  38. package/esm/index-50136800.d.ts +8 -0
  39. package/esm/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
  40. package/esm/index-c76d6398.d.ts +2 -0
  41. package/esm/index-f12ee135.d.ts +2 -2
  42. package/esm/index.css +5 -5
  43. package/esm/shared-4cd3936b.d.ts +1 -1
  44. package/esm/{types-425c8522.d.ts → types-72dda473.d.ts} +2 -2
  45. package/index-50136800.d.ts +8 -0
  46. package/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
  47. package/index-c76d6398.d.ts +2 -0
  48. package/index-f12ee135.d.ts +2 -2
  49. package/index.css +5 -5
  50. package/modern/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +2 -2
  51. package/modern/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
  52. package/{esm/component-89a3cf4c.d.ts → modern/component-50136800.d.ts} +2 -2
  53. package/modern/component.js +1 -1
  54. package/modern/components/flag-icon/component.js +1 -1
  55. package/modern/components/flag-icon/index.css +3 -3
  56. package/modern/components/select/component.js +1 -1
  57. package/modern/components/select/index.css +6 -6
  58. package/modern/components/select-field/component.js +1 -1
  59. package/modern/components/select-field/index.css +9 -9
  60. package/modern/createPaddingStyle-72dda473.d.ts +5 -0
  61. package/modern/index-50136800.d.ts +8 -0
  62. package/modern/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
  63. package/modern/index-c76d6398.d.ts +2 -0
  64. package/modern/index-f12ee135.d.ts +2 -2
  65. package/modern/index.css +5 -5
  66. package/modern/shared-4cd3936b.d.ts +1 -1
  67. package/modern/{types-425c8522.d.ts → types-72dda473.d.ts} +2 -2
  68. package/package.json +3 -3
  69. package/shared-4cd3936b.d.ts +83 -13
  70. package/{types-425c8522.d.ts → types-72dda473.d.ts} +2 -2
  71. package/cssm/index-89a3cf4c.d.ts +0 -3
  72. package/cssm/index-e81c389f.d.ts +0 -3
  73. package/desktop-2e2b2125.d.ts +0 -2
  74. package/esm/Component-89a3cf4c.d.ts +0 -100
  75. package/esm/index-89a3cf4c.d.ts +0 -3
  76. package/esm/index-e81c389f.d.ts +0 -3
  77. package/hook-c44170fe.d.ts +0 -48
  78. package/index-89a3cf4c.d.ts +0 -3
  79. package/index-e81c389f.d.ts +0 -3
  80. package/modern/index-89a3cf4c.d.ts +0 -3
  81. package/modern/index-e81c389f.d.ts +0 -3
  82. /package/{Component.desktop-ed17077e.d.ts → Component.desktop-4cd3936b.d.ts} +0 -0
  83. /package/{Component.desktop-63dec22f.d.ts → Component.desktop-5e1b8383.d.ts} +0 -0
  84. /package/cssm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
  85. /package/esm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
  86. /package/modern/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
  87. /package/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { FieldProps } from "./shared-4cd3936b";
4
- import { InputAutocompleteDesktopProps } from "./Component.desktop-ed17077e";
4
+ import { InputAutocompleteDesktopProps } from "./Component.desktop-4cd3936b";
5
5
  type AutocompleteFieldProps = FieldProps & Pick<InputAutocompleteDesktopProps, 'Input' | 'inputProps' | 'value' | 'onInput' | 'readOnly'>;
6
6
  declare const AutocompleteField: ({ label, labelView, placeholder, size, Arrow, Input, value, error, success, hint, disabled, readOnly, onInput, inputProps, innerProps, }: AutocompleteFieldProps) => React.JSX.Element;
7
7
  export * from "./Component.desktop-d873d97d";
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { NavigationBarProps } from "./types-83e2bd9e";
4
+ declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
5
+ export * from "./Component-63dec22f";
6
+ export { NavigationBar };
@@ -1,22 +1,100 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { OptionShape, OptionsListProps } from "./typings-5e1b8383";
4
- import { HeaderProps } from "./Component-ebda875c";
3
+ import { FC, ReactNode } from "react";
4
+ import { ModalMobileProps, ContentProps } from "./typings-bdb4c6b9";
5
+ import { BottomSheetProps } from "./index-f12ee135";
6
+ import { BaseSelectProps } from "./typings-5e1b8383";
5
7
  type FooterProps = {
6
- handleClear?: () => void;
7
- handleApply?: () => void;
8
- showClear?: boolean;
9
- selectedDraft?: OptionShape[];
8
+ /**
9
+ * Контент футера
10
+ */
11
+ children?: ReactNode;
12
+ /**
13
+ * Дополнительный класс
14
+ */
15
+ className?: string;
16
+ /**
17
+ * Фиксирует футер
18
+ */
19
+ sticky?: boolean;
20
+ /**
21
+ * Выравнивание элементов футера
22
+ */
23
+ layout?: "start" | "center" | "space-between" | "column";
24
+ /**
25
+ * Отступы между элементами футера
26
+ */
27
+ gap?: 16 | 24 | 32;
10
28
  };
11
- declare const Footer: ({ handleApply, handleClear, showClear, selectedDraft }: FooterProps) => React.JSX.Element;
12
- declare const OptionsListWithApply: React.ForwardRefExoticComponent<OptionsListProps & {
13
- showClear?: boolean | undefined;
14
- onClose?: (() => void) | undefined;
15
- selectedDraft?: OptionShape[] | undefined;
16
- OptionsList?: React.FC<OptionsListProps & React.RefAttributes<HTMLDivElement>> | undefined;
17
- Footer?: React.FC<FooterProps> | undefined;
18
- Header?: React.FC<HeaderProps> | undefined;
19
- headerProps?: HeaderProps | undefined;
20
- showHeaderWithSelectAll?: boolean | undefined;
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- export { FooterProps, Footer, OptionsListWithApply };
29
+ declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
30
+ Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
31
+ Header: React.FC<import("./Component-c76d6398").HeaderProps>;
32
+ Footer: React.FC<FooterProps>;
33
+ };
34
+ declare const Content: FC<ContentProps>;
35
+ type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
36
+ /**
37
+ * Футер
38
+ * @deprecated Используйте bottomSheetProps.actionButton
39
+ */
40
+ footer?: ReactNode;
41
+ /**
42
+ * Будет ли свайпаться шторка
43
+ * @deprecated Используйте bottomSheetProps.swipeable
44
+ */
45
+ swipeable?: boolean;
46
+ /**
47
+ * Отображать в BottomSheet
48
+ */
49
+ isBottomSheet?: boolean;
50
+ /**
51
+ * Дополнительные пропсы шторки
52
+ */
53
+ bottomSheetProps?: Partial<BottomSheetProps>;
54
+ /**
55
+ * Дополнительные пропсы модалки
56
+ */
57
+ modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
58
+ /**
59
+ * Дополнительные пропсы шапки модалки
60
+ */
61
+ modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
62
+ /**
63
+ * Дополнительные пропсы футера модалки
64
+ */
65
+ modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
66
+ };
67
+ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
68
+ /**
69
+ * Футер
70
+ * @deprecated Используйте bottomSheetProps.actionButton
71
+ */
72
+ footer?: ReactNode;
73
+ /**
74
+ * Будет ли свайпаться шторка
75
+ * @deprecated Используйте bottomSheetProps.swipeable
76
+ */
77
+ swipeable?: boolean | undefined;
78
+ /**
79
+ * Отображать в BottomSheet
80
+ */
81
+ isBottomSheet?: boolean | undefined;
82
+ /**
83
+ * Дополнительные пропсы шторки
84
+ */
85
+ bottomSheetProps?: Partial<BottomSheetProps> | undefined;
86
+ /**
87
+ * Дополнительные пропсы модалки
88
+ */
89
+ modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
90
+ /**
91
+ * Дополнительные пропсы шапки модалки
92
+ */
93
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
94
+ /**
95
+ * Дополнительные пропсы футера модалки
96
+ */
97
+ modalFooterProps?: Partial<FooterProps> | undefined;
98
+ } & React.RefAttributes<unknown>>;
99
+ export { ModalMobile, Content, SelectMobileProps, BaseSelectMobile };
100
+ export { ModalMobileProps } from "./typings-bdb4c6b9";
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { NavigationBarProps } from "./index-e81c389f";
2
+ import { NavigationBarProps } from "./index-c76d6398";
3
3
  type HeaderProps = Omit<NavigationBarProps, 'size' | 'view' | 'parentRef'>;
4
4
  declare const Header: FC<HeaderProps>;
5
5
  export { HeaderProps, Header };
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ReactNode, RefObject } from "react";
4
- import { NavigationBarProps } from "./index-e81c389f";
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-425c8522";
7
+ import { BottomSheetProps } from "./types-72dda473";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
package/component.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { CountryCode } from 'libphonenumber-js';
4
- import { InputAutocompleteDesktopProps } from "./Component.desktop-ed17077e";
4
+ import { InputAutocompleteDesktopProps } from "./Component.desktop-4cd3936b";
5
5
  import { SelectProps } from "@alfalab/core-components-select";
6
6
  import { Country } from '@alfalab/utils';
7
7
  type MaxPhoneLenByCountry = Record<string, number>;
package/component.js CHANGED
@@ -45,7 +45,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
45
45
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
46
46
  var WorldMagnifierMIcon__default = /*#__PURE__*/_interopDefaultCompat(WorldMagnifierMIcon);
47
47
 
48
- var styles = {"addons":"intl-phone-input__addons_1fvgm","l":"intl-phone-input__l_1fvgm","xl":"intl-phone-input__xl_1fvgm","flagIconWrapper":"intl-phone-input__flagIconWrapper_1fvgm","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1fvgm"};
48
+ var styles = {"addons":"intl-phone-input__addons_13k8r","l":"intl-phone-input__l_13k8r","xl":"intl-phone-input__xl_13k8r","flagIconWrapper":"intl-phone-input__flagIconWrapper_13k8r","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_13k8r"};
49
49
  require('./index.css')
50
50
 
51
51
  var countriesHash = utils.getCountriesHash();
@@ -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":"intl-phone-input__flagIcon_inglq","flagPlaceholder":"intl-phone-input__flagPlaceholder_inglq"};
14
+ var styles = {"flagIcon":"intl-phone-input__flagIcon_77b1w","flagPlaceholder":"intl-phone-input__flagPlaceholder_77b1w"};
15
15
  require('./index.css')
16
16
 
17
17
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1x8hu */
1
+ /* hash: 1bodv */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* 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
- } .intl-phone-input__flagIcon_inglq {
20
+ } .intl-phone-input__flagIcon_77b1w {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .intl-phone-input__flagPlaceholder_inglq {
23
+ } .intl-phone-input__flagPlaceholder_77b1w {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { SelectDesktopProps } from "../../Component.desktop-63dec22f";
2
+ import { SelectDesktopProps } from "../../Component.desktop-5e1b8383";
3
3
  import { Country } from '@alfalab/utils';
4
4
  type CountriesSelectProps = Pick<SelectDesktopProps, 'size' | 'dataTestId' | 'disabled' | 'onChange' | 'preventFlip'> & {
5
5
  selected?: string;
@@ -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":"intl-phone-input__component_1w1fa","option":"intl-phone-input__option_1w1fa","flag":"intl-phone-input__flag_1w1fa","countryName":"intl-phone-input__countryName_1w1fa","dialCode":"intl-phone-input__dialCode_1w1fa"};
21
+ var styles = {"component":"intl-phone-input__component_1aotf","option":"intl-phone-input__option_1aotf","flag":"intl-phone-input__flag_1aotf","countryName":"intl-phone-input__countryName_1aotf","dialCode":"intl-phone-input__dialCode_1aotf"};
22
22
  require('./index.css')
23
23
 
24
24
  var CountriesSelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: r3fxc */
1
+ /* hash: 3ymu1 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-secondary: rgba(60, 60, 67, 0.66); /* 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,19 +17,19 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --text-secondary-color: var(--color-light-text-secondary);
20
- } .intl-phone-input__component_1w1fa {
20
+ } .intl-phone-input__component_1aotf {
21
21
  position: static;
22
22
  display: flex;
23
23
  min-width: initial;
24
24
  height: 100%;
25
- } .intl-phone-input__option_1w1fa {
25
+ } .intl-phone-input__option_1aotf {
26
26
  display: flex;
27
27
  align-items: flex-start;
28
- } .intl-phone-input__flag_1w1fa {
28
+ } .intl-phone-input__flag_1aotf {
29
29
  flex-shrink: 0;
30
30
  margin-right: var(--gap-xs);
31
- } .intl-phone-input__countryName_1w1fa {
31
+ } .intl-phone-input__countryName_1aotf {
32
32
  margin-right: var(--gap-xs);
33
- } .intl-phone-input__dialCode_1w1fa {
33
+ } .intl-phone-input__dialCode_1aotf {
34
34
  color: var(--text-secondary-color);
35
35
  }
@@ -18,7 +18,7 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
  var WorldMagnifierMIcon__default = /*#__PURE__*/_interopDefaultCompat(WorldMagnifierMIcon);
20
20
 
21
- var styles = {"component":"intl-phone-input__component_ib0rl","flagIconContainer":"intl-phone-input__flagIconContainer_ib0rl","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_ib0rl","disabled":"intl-phone-input__disabled_ib0rl","inner":"intl-phone-input__inner_ib0rl","l":"intl-phone-input__l_ib0rl","xl":"intl-phone-input__xl_ib0rl","focusVisible":"intl-phone-input__focusVisible_ib0rl"};
21
+ var styles = {"component":"intl-phone-input__component_1cxeg","flagIconContainer":"intl-phone-input__flagIconContainer_1cxeg","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1cxeg","disabled":"intl-phone-input__disabled_1cxeg","inner":"intl-phone-input__inner_1cxeg","l":"intl-phone-input__l_1cxeg","xl":"intl-phone-input__xl_1cxeg","focusVisible":"intl-phone-input__focusVisible_1cxeg"};
22
22
  require('./index.css')
23
23
 
24
24
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 14rsw */
1
+ /* hash: 1rwlz */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .intl-phone-input__component_ib0rl {
24
+ } .intl-phone-input__component_1cxeg {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .intl-phone-input__flagIconContainer_ib0rl {
29
+ } .intl-phone-input__flagIconContainer_1cxeg {
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
- } .intl-phone-input__emptyCountryIcon_ib0rl {
36
+ } .intl-phone-input__emptyCountryIcon_1cxeg {
37
37
  color: var(--color-light-graphic-secondary);
38
- } .intl-phone-input__disabled_ib0rl {
38
+ } .intl-phone-input__disabled_1cxeg {
39
39
  cursor: var(--disabled-cursor);
40
- } .intl-phone-input__inner_ib0rl {
40
+ } .intl-phone-input__inner_1cxeg {
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
- } .intl-phone-input__l_ib0rl .intl-phone-input__inner_ib0rl,
48
- .intl-phone-input__xl_ib0rl .intl-phone-input__inner_ib0rl {
47
+ } .intl-phone-input__l_1cxeg .intl-phone-input__inner_1cxeg,
48
+ .intl-phone-input__xl_1cxeg .intl-phone-input__inner_1cxeg {
49
49
  padding-left: var(--gap-m);
50
- } .intl-phone-input__focusVisible_ib0rl {
50
+ } .intl-phone-input__focusVisible_1cxeg {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { PaddingType } from "./index-72dda473";
4
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
5
+ export { createPaddingStyle };
@@ -28,7 +28,7 @@ type FooterProps = {
28
28
  };
29
29
  declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
30
30
  Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
31
- Header: React.FC<import("./Component-e81c389f").HeaderProps>;
31
+ Header: React.FC<import("./Component-c76d6398").HeaderProps>;
32
32
  Footer: React.FC<FooterProps>;
33
33
  };
34
34
  declare const Content: FC<ContentProps>;
@@ -90,7 +90,7 @@ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectP
90
90
  /**
91
91
  * Дополнительные пропсы шапки модалки
92
92
  */
93
- modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
93
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
94
94
  /**
95
95
  * Дополнительные пропсы футера модалки
96
96
  */
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { NavigationBarProps } from "./index-e81c389f";
2
+ import { NavigationBarProps } from "./index-c76d6398";
3
3
  type HeaderProps = Omit<NavigationBarProps, 'size' | 'view' | 'parentRef'>;
4
4
  declare const Header: FC<HeaderProps>;
5
5
  export { HeaderProps, Header };
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ReactNode, RefObject } from "react";
4
- import { NavigationBarProps } from "./index-e81c389f";
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-425c8522";
7
+ import { BottomSheetProps } from "./types-72dda473";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { PaddingType } from "./index-72dda473";
4
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
5
+ export { createPaddingStyle };
@@ -0,0 +1,8 @@
1
+ declare const isClient: () => boolean;
2
+ declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
3
+ declare function easeInOutQuad(x: number): number;
4
+ declare const easingFns: {
5
+ easeInOutQuad: typeof easeInOutQuad;
6
+ };
7
+ export { isClient, getDataTestId, easingFns };
8
+ export * from "./createPaddingStyle-72dda473";
@@ -3,4 +3,10 @@ type BorderColorType = 'accent' | 'key' | 'key-inverted' | 'link' | 'primary' |
3
3
  type GraphicColorType = 'accent' | 'link' | 'attention' | 'positive' | 'negative' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'static-light' | 'static-accent' | 'static-dark';
4
4
  type ShadowType = 'shadow-xs' | 'shadow-s' | 'shadow-m' | 'shadow-l' | 'shadow-xl' | 'shadow-xs-hard' | 'shadow-s-hard' | 'shadow-m-hard' | 'shadow-l-hard' | 'shadow-xl-hard' | 'shadow-xs-up' | 'shadow-s-up' | 'shadow-m-up' | 'shadow-l-up' | 'shadow-xl-up' | 'shadow-xs-hard-up' | 'shadow-s-hard-up' | 'shadow-m-hard-up' | 'shadow-l-hard-up' | 'shadow-xl-hard-up';
5
5
  type GapType = '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl';
6
- export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType };
6
+ type PaddingType = number | string | {
7
+ top?: number;
8
+ right?: number;
9
+ bottom?: number;
10
+ left?: number;
11
+ };
12
+ export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType, PaddingType };
@@ -0,0 +1,2 @@
1
+ export * from "./Component-50136800";
2
+ export type { NavigationBarProps } from "./types-83e2bd9e";
@@ -1,3 +1,3 @@
1
- export * from "./component-89a3cf4c";
2
- export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-425c8522";
1
+ export * from "./component-50136800";
2
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-72dda473";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -59,6 +59,6 @@ export * from "./index-ebda875c";
59
59
  export * from "./Component-5e1b8383";
60
60
  export * from "./hook-c44170fe";
61
61
  export * from "./hook-9ea9e32c";
62
- export * from "./Component-89a3cf4c";
62
+ export * from "./Component-50136800";
63
63
  export * from "./typings-5e1b8383";
64
64
  export * from "./utils-5e1b8383";
@@ -2,8 +2,8 @@
2
2
  import { HTMLAttributes, ReactNode, RefObject } from 'react';
3
3
  import { TransitionProps } from 'react-transition-group/Transition';
4
4
  import { BaseModalProps } from "./index-bdb4c6b9";
5
- import { NavigationBarProps } from "./index-e81c389f";
6
- import { BackgroundColorType } from "./index-425c8522";
5
+ import { NavigationBarProps } from "./index-c76d6398";
6
+ import { BackgroundColorType } from "./index-72dda473";
7
7
  type BottomSheetTitleAlign = 'center' | 'left';
8
8
  type BottomSheetProps = {
9
9
  /**
@@ -1,2 +1,2 @@
1
- export * from "./Component.desktop-785df74d";
1
+ export * from "./Component.desktop-2e2b2125";
2
2
  export {};
@@ -28,7 +28,7 @@ type FooterProps = {
28
28
  };
29
29
  declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
30
30
  Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
31
- Header: React.FC<import("./Component-e81c389f").HeaderProps>;
31
+ Header: React.FC<import("./Component-c76d6398").HeaderProps>;
32
32
  Footer: React.FC<FooterProps>;
33
33
  };
34
34
  declare const Content: FC<ContentProps>;
@@ -90,7 +90,7 @@ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectP
90
90
  /**
91
91
  * Дополнительные пропсы шапки модалки
92
92
  */
93
- modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
93
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
94
94
  /**
95
95
  * Дополнительные пропсы футера модалки
96
96
  */
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { NavigationBarProps } from "./index-e81c389f";
2
+ import { NavigationBarProps } from "./index-c76d6398";
3
3
  type HeaderProps = Omit<NavigationBarProps, 'size' | 'view' | 'parentRef'>;
4
4
  declare const Header: FC<HeaderProps>;
5
5
  export { HeaderProps, Header };
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ReactNode, RefObject } from "react";
4
- import { NavigationBarProps } from "./index-e81c389f";
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-425c8522";
7
+ import { BottomSheetProps } from "./types-72dda473";
8
8
  type FooterProps = {
9
9
  /**
10
10
  * Контент футера
package/esm/component.js CHANGED
@@ -17,7 +17,7 @@ import '@alfalab/core-components-select/esm/desktop';
17
17
  import '@alfalab/core-components-select/esm/shared';
18
18
  import './components/select-field/component.js';
19
19
 
20
- var styles = {"addons":"intl-phone-input__addons_1fvgm","l":"intl-phone-input__l_1fvgm","xl":"intl-phone-input__xl_1fvgm","flagIconWrapper":"intl-phone-input__flagIconWrapper_1fvgm","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1fvgm"};
20
+ var styles = {"addons":"intl-phone-input__addons_13k8r","l":"intl-phone-input__l_13k8r","xl":"intl-phone-input__xl_13k8r","flagIconWrapper":"intl-phone-input__flagIconWrapper_13k8r","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_13k8r"};
21
21
  require('./index.css')
22
22
 
23
23
  var countriesHash = getCountriesHash();
@@ -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":"intl-phone-input__flagIcon_inglq","flagPlaceholder":"intl-phone-input__flagPlaceholder_inglq"};
5
+ var styles = {"flagIcon":"intl-phone-input__flagIcon_77b1w","flagPlaceholder":"intl-phone-input__flagPlaceholder_77b1w"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1x8hu */
1
+ /* hash: 1bodv */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1); /* 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
- } .intl-phone-input__flagIcon_inglq {
20
+ } .intl-phone-input__flagIcon_77b1w {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .intl-phone-input__flagPlaceholder_inglq {
23
+ } .intl-phone-input__flagPlaceholder_77b1w {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -10,7 +10,7 @@ import 'react-merge-refs';
10
10
  import '@alfalab/hooks';
11
11
  import '@alfalab/icons-glyph/WorldMagnifierMIcon';
12
12
 
13
- var styles = {"component":"intl-phone-input__component_1w1fa","option":"intl-phone-input__option_1w1fa","flag":"intl-phone-input__flag_1w1fa","countryName":"intl-phone-input__countryName_1w1fa","dialCode":"intl-phone-input__dialCode_1w1fa"};
13
+ var styles = {"component":"intl-phone-input__component_1aotf","option":"intl-phone-input__option_1aotf","flag":"intl-phone-input__flag_1aotf","countryName":"intl-phone-input__countryName_1aotf","dialCode":"intl-phone-input__dialCode_1aotf"};
14
14
  require('./index.css')
15
15
 
16
16
  var CountriesSelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: r3fxc */
1
+ /* hash: 3ymu1 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-secondary: rgba(60, 60, 67, 0.66); /* 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,19 +17,19 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --text-secondary-color: var(--color-light-text-secondary);
20
- } .intl-phone-input__component_1w1fa {
20
+ } .intl-phone-input__component_1aotf {
21
21
  position: static;
22
22
  display: flex;
23
23
  min-width: initial;
24
24
  height: 100%;
25
- } .intl-phone-input__option_1w1fa {
25
+ } .intl-phone-input__option_1aotf {
26
26
  display: flex;
27
27
  align-items: flex-start;
28
- } .intl-phone-input__flag_1w1fa {
28
+ } .intl-phone-input__flag_1aotf {
29
29
  flex-shrink: 0;
30
30
  margin-right: var(--gap-xs);
31
- } .intl-phone-input__countryName_1w1fa {
31
+ } .intl-phone-input__countryName_1aotf {
32
32
  margin-right: var(--gap-xs);
33
- } .intl-phone-input__dialCode_1w1fa {
33
+ } .intl-phone-input__dialCode_1aotf {
34
34
  color: var(--text-secondary-color);
35
35
  }
@@ -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":"intl-phone-input__component_ib0rl","flagIconContainer":"intl-phone-input__flagIconContainer_ib0rl","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_ib0rl","disabled":"intl-phone-input__disabled_ib0rl","inner":"intl-phone-input__inner_ib0rl","l":"intl-phone-input__l_ib0rl","xl":"intl-phone-input__xl_ib0rl","focusVisible":"intl-phone-input__focusVisible_ib0rl"};
10
+ var styles = {"component":"intl-phone-input__component_1cxeg","flagIconContainer":"intl-phone-input__flagIconContainer_1cxeg","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1cxeg","disabled":"intl-phone-input__disabled_1cxeg","inner":"intl-phone-input__inner_1cxeg","l":"intl-phone-input__l_1cxeg","xl":"intl-phone-input__xl_1cxeg","focusVisible":"intl-phone-input__focusVisible_1cxeg"};
11
11
  require('./index.css')
12
12
 
13
13
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 14rsw */
1
+ /* hash: 1rwlz */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .intl-phone-input__component_ib0rl {
24
+ } .intl-phone-input__component_1cxeg {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .intl-phone-input__flagIconContainer_ib0rl {
29
+ } .intl-phone-input__flagIconContainer_1cxeg {
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
- } .intl-phone-input__emptyCountryIcon_ib0rl {
36
+ } .intl-phone-input__emptyCountryIcon_1cxeg {
37
37
  color: var(--color-light-graphic-secondary);
38
- } .intl-phone-input__disabled_ib0rl {
38
+ } .intl-phone-input__disabled_1cxeg {
39
39
  cursor: var(--disabled-cursor);
40
- } .intl-phone-input__inner_ib0rl {
40
+ } .intl-phone-input__inner_1cxeg {
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
- } .intl-phone-input__l_ib0rl .intl-phone-input__inner_ib0rl,
48
- .intl-phone-input__xl_ib0rl .intl-phone-input__inner_ib0rl {
47
+ } .intl-phone-input__l_1cxeg .intl-phone-input__inner_1cxeg,
48
+ .intl-phone-input__xl_1cxeg .intl-phone-input__inner_1cxeg {
49
49
  padding-left: var(--gap-m);
50
- } .intl-phone-input__focusVisible_ib0rl {
50
+ } .intl-phone-input__focusVisible_1cxeg {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }