@alfalab/core-components-intl-phone-input 9.5.2 → 9.5.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 (52) hide show
  1. package/Component-4cd3936b.d.ts +1 -1
  2. package/Component-50136800.d.ts +99 -5
  3. package/Component-5e1b8383.d.ts +18 -96
  4. package/Component-63dec22f.d.ts +18 -1
  5. package/component.d.ts +1 -1
  6. package/component.js +1 -1
  7. package/components/flag-icon/component.js +1 -1
  8. package/components/flag-icon/index.css +3 -3
  9. package/components/select/component.d.ts +1 -1
  10. package/components/select/component.js +1 -1
  11. package/components/select/index.css +6 -6
  12. package/components/select-field/component.js +1 -1
  13. package/components/select-field/index.css +9 -9
  14. package/cssm/Component-63dec22f.d.ts +18 -1
  15. package/cssm/types-1b036d4b.d.ts +13 -0
  16. package/cssm/types-72dda473.d.ts +9 -1
  17. package/cssm/useSkeleton-ebda875c.d.ts +12 -0
  18. package/desktop-2e2b2125.d.ts +2 -0
  19. package/desktop-63dec22f.d.ts +1 -1
  20. package/esm/Component-63dec22f.d.ts +18 -1
  21. package/esm/component.js +1 -1
  22. package/esm/components/flag-icon/component.js +1 -1
  23. package/esm/components/flag-icon/index.css +3 -3
  24. package/esm/components/select/component.js +1 -1
  25. package/esm/components/select/index.css +6 -6
  26. package/esm/components/select-field/component.js +1 -1
  27. package/esm/components/select-field/index.css +9 -9
  28. package/esm/index.css +5 -5
  29. package/esm/types-1b036d4b.d.ts +13 -0
  30. package/esm/types-72dda473.d.ts +9 -1
  31. package/esm/useSkeleton-ebda875c.d.ts +12 -0
  32. package/hook-c44170fe.d.ts +48 -0
  33. package/index.css +5 -5
  34. package/modern/Component-63dec22f.d.ts +18 -1
  35. package/modern/component.js +1 -1
  36. package/modern/components/flag-icon/component.js +1 -1
  37. package/modern/components/flag-icon/index.css +3 -3
  38. package/modern/components/select/component.js +1 -1
  39. package/modern/components/select/index.css +6 -6
  40. package/modern/components/select-field/component.js +1 -1
  41. package/modern/components/select-field/index.css +9 -9
  42. package/modern/index.css +5 -5
  43. package/modern/types-1b036d4b.d.ts +13 -0
  44. package/modern/types-72dda473.d.ts +9 -1
  45. package/modern/useSkeleton-ebda875c.d.ts +12 -0
  46. package/package.json +3 -3
  47. package/shared-4cd3936b.d.ts +13 -83
  48. package/types-1b036d4b.d.ts +13 -0
  49. package/types-72dda473.d.ts +9 -1
  50. package/useSkeleton-ebda875c.d.ts +12 -0
  51. /package/{Component.desktop-5e1b8383.d.ts → Component.desktop-63dec22f.d.ts} +0 -0
  52. /package/{Component.desktop-4cd3936b.d.ts → Component.desktop-ed17077e.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-4cd3936b";
4
+ import { InputAutocompleteDesktopProps } from "./Component.desktop-ed17077e";
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";
@@ -1,6 +1,100 @@
1
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 };
2
+ import React from "react";
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";
7
+ type FooterProps = {
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;
28
+ };
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,100 +1,22 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
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";
3
+ import { OptionShape, OptionsListProps } from "./typings-5e1b8383";
4
+ import { HeaderProps } from "./Component-ebda875c";
7
5
  type FooterProps = {
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;
6
+ handleClear?: () => void;
7
+ handleApply?: () => void;
8
+ showClear?: boolean;
9
+ selectedDraft?: OptionShape[];
28
10
  };
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";
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 };
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
4
+ import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
4
5
  declare const colors: readonly [
5
6
  "tertiary",
6
7
  "disabled",
@@ -23,7 +24,6 @@ declare const colors: readonly [
23
24
  "static-accent"
24
25
  ];
25
26
  type Color = (typeof colors)[number];
26
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
27
27
  type NativeProps = HTMLAttributes<HTMLSpanElement>;
28
28
  type TextBaseProps = {
29
29
  /**
@@ -66,6 +66,14 @@ type TextBaseProps = {
66
66
  * Количество строк (не поддерживает IE)
67
67
  */
68
68
  rowLimit?: 1 | 2 | 3;
69
+ /**
70
+ * Показать скелетон
71
+ */
72
+ showSkeleton?: boolean;
73
+ /**
74
+ * Пропы для скелетона
75
+ */
76
+ skeletonProps?: TextSkeletonProps;
69
77
  };
70
78
  type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
71
79
  tag?: "p";
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
114
122
  * Количество строк (не поддерживает IE)
115
123
  */
116
124
  rowLimit?: 1 | 2 | 3;
125
+ /**
126
+ * Показать скелетон
127
+ */
128
+ showSkeleton?: boolean;
129
+ /**
130
+ * Пропы для скелетона
131
+ */
132
+ skeletonProps?: TextSkeletonProps;
117
133
  };
118
134
  type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
119
135
  declare const Typography: {
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
165
181
  declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
166
182
  export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
167
183
  export type { TitleProps, TextProps, Color };
184
+ export * from "./useSkeleton-ebda875c";
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-4cd3936b";
4
+ import { InputAutocompleteDesktopProps } from "./Component.desktop-ed17077e";
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_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"};
48
+ var styles = {"addons":"intl-phone-input__addons_t0auu","l":"intl-phone-input__l_t0auu","xl":"intl-phone-input__xl_t0auu","flagIconWrapper":"intl-phone-input__flagIconWrapper_t0auu","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_t0auu"};
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_77b1w","flagPlaceholder":"intl-phone-input__flagPlaceholder_77b1w"};
14
+ var styles = {"flagIcon":"intl-phone-input__flagIcon_1voh7","flagPlaceholder":"intl-phone-input__flagPlaceholder_1voh7"};
15
15
  require('./index.css')
16
16
 
17
17
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1bodv */
1
+ /* hash: 1c2is */
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_77b1w {
20
+ } .intl-phone-input__flagIcon_1voh7 {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .intl-phone-input__flagPlaceholder_77b1w {
23
+ } .intl-phone-input__flagPlaceholder_1voh7 {
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-5e1b8383";
2
+ import { SelectDesktopProps } from "../../Component.desktop-63dec22f";
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_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"};
21
+ var styles = {"component":"intl-phone-input__component_8n0s5","option":"intl-phone-input__option_8n0s5","flag":"intl-phone-input__flag_8n0s5","countryName":"intl-phone-input__countryName_8n0s5","dialCode":"intl-phone-input__dialCode_8n0s5"};
22
22
  require('./index.css')
23
23
 
24
24
  var CountriesSelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 3ymu1 */
1
+ /* hash: 78ym1 */
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_1aotf {
20
+ } .intl-phone-input__component_8n0s5 {
21
21
  position: static;
22
22
  display: flex;
23
23
  min-width: initial;
24
24
  height: 100%;
25
- } .intl-phone-input__option_1aotf {
25
+ } .intl-phone-input__option_8n0s5 {
26
26
  display: flex;
27
27
  align-items: flex-start;
28
- } .intl-phone-input__flag_1aotf {
28
+ } .intl-phone-input__flag_8n0s5 {
29
29
  flex-shrink: 0;
30
30
  margin-right: var(--gap-xs);
31
- } .intl-phone-input__countryName_1aotf {
31
+ } .intl-phone-input__countryName_8n0s5 {
32
32
  margin-right: var(--gap-xs);
33
- } .intl-phone-input__dialCode_1aotf {
33
+ } .intl-phone-input__dialCode_8n0s5 {
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_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"};
21
+ var styles = {"component":"intl-phone-input__component_fy31k","flagIconContainer":"intl-phone-input__flagIconContainer_fy31k","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_fy31k","disabled":"intl-phone-input__disabled_fy31k","inner":"intl-phone-input__inner_fy31k","l":"intl-phone-input__l_fy31k","xl":"intl-phone-input__xl_fy31k","focusVisible":"intl-phone-input__focusVisible_fy31k"};
22
22
  require('./index.css')
23
23
 
24
24
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 1rwlz */
1
+ /* hash: 1oma7 */
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_1cxeg {
24
+ } .intl-phone-input__component_fy31k {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .intl-phone-input__flagIconContainer_1cxeg {
29
+ } .intl-phone-input__flagIconContainer_fy31k {
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_1cxeg {
36
+ } .intl-phone-input__emptyCountryIcon_fy31k {
37
37
  color: var(--color-light-graphic-secondary);
38
- } .intl-phone-input__disabled_1cxeg {
38
+ } .intl-phone-input__disabled_fy31k {
39
39
  cursor: var(--disabled-cursor);
40
- } .intl-phone-input__inner_1cxeg {
40
+ } .intl-phone-input__inner_fy31k {
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_1cxeg .intl-phone-input__inner_1cxeg,
48
- .intl-phone-input__xl_1cxeg .intl-phone-input__inner_1cxeg {
47
+ } .intl-phone-input__l_fy31k .intl-phone-input__inner_fy31k,
48
+ .intl-phone-input__xl_fy31k .intl-phone-input__inner_fy31k {
49
49
  padding-left: var(--gap-m);
50
- } .intl-phone-input__focusVisible_1cxeg {
50
+ } .intl-phone-input__focusVisible_fy31k {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
4
+ import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
4
5
  declare const colors: readonly [
5
6
  "tertiary",
6
7
  "disabled",
@@ -23,7 +24,6 @@ declare const colors: readonly [
23
24
  "static-accent"
24
25
  ];
25
26
  type Color = (typeof colors)[number];
26
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
27
27
  type NativeProps = HTMLAttributes<HTMLSpanElement>;
28
28
  type TextBaseProps = {
29
29
  /**
@@ -66,6 +66,14 @@ type TextBaseProps = {
66
66
  * Количество строк (не поддерживает IE)
67
67
  */
68
68
  rowLimit?: 1 | 2 | 3;
69
+ /**
70
+ * Показать скелетон
71
+ */
72
+ showSkeleton?: boolean;
73
+ /**
74
+ * Пропы для скелетона
75
+ */
76
+ skeletonProps?: TextSkeletonProps;
69
77
  };
70
78
  type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
71
79
  tag?: "p";
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
114
122
  * Количество строк (не поддерживает IE)
115
123
  */
116
124
  rowLimit?: 1 | 2 | 3;
125
+ /**
126
+ * Показать скелетон
127
+ */
128
+ showSkeleton?: boolean;
129
+ /**
130
+ * Пропы для скелетона
131
+ */
132
+ skeletonProps?: TextSkeletonProps;
117
133
  };
118
134
  type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
119
135
  declare const Typography: {
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
165
181
  declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
166
182
  export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
167
183
  export type { TitleProps, TextProps, Color };
184
+ export * from "./useSkeleton-ebda875c";
@@ -0,0 +1,13 @@
1
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
+ type WidthUnit = number | string;
3
+ type TextSkeletonProps = {
4
+ /**
5
+ * Кол-во строк текста
6
+ */
7
+ rows?: number;
8
+ /**
9
+ * Ширина строки
10
+ */
11
+ width?: WidthUnit | WidthUnit[];
12
+ };
13
+ export { TextElementType, TextSkeletonProps };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react-transition-group" />
2
- import { HTMLAttributes, ReactNode, RefObject } from 'react';
2
+ import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
3
  import { TransitionProps } from 'react-transition-group/Transition';
4
4
  import { BaseModalProps } from "./index-bdb4c6b9";
5
5
  import { NavigationBarProps } from "./index-c76d6398";
@@ -88,6 +88,14 @@ type BottomSheetProps = {
88
88
  * Дополнительный класс для обертки модального окна
89
89
  */
90
90
  modalWrapperClassName?: string;
91
+ /**
92
+ * Дополнительный класс для маркера
93
+ */
94
+ swipeableMarkerClassName?: string;
95
+ /**
96
+ * Кастомный маркер
97
+ */
98
+ swipeableMarker?: ReactElement;
91
99
  /**
92
100
  * TransitionProps, прокидываются в компонент CSSTransitionProps.
93
101
  */
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TextSkeletonProps } from "./types-1b036d4b";
4
+ type SkeletonProps = {
5
+ wrapperClassName?: string;
6
+ dataTestId?: string;
7
+ };
8
+ declare function useSkeleton(showSkeleton?: boolean, skeletonProps?: TextSkeletonProps): {
9
+ renderSkeleton: (props: SkeletonProps) => React.JSX.Element | null;
10
+ textRef: React.RefObject<HTMLElement>;
11
+ };
12
+ export { useSkeleton };
@@ -0,0 +1,2 @@
1
+ export * from "./Component.desktop-2e2b2125";
2
+ export {};
@@ -1,2 +1,2 @@
1
- export * from "./Component.desktop-2e2b2125";
1
+ export * from "./Component.desktop-785df74d";
2
2
  export {};
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
4
+ import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
4
5
  declare const colors: readonly [
5
6
  "tertiary",
6
7
  "disabled",
@@ -23,7 +24,6 @@ declare const colors: readonly [
23
24
  "static-accent"
24
25
  ];
25
26
  type Color = (typeof colors)[number];
26
- type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
27
27
  type NativeProps = HTMLAttributes<HTMLSpanElement>;
28
28
  type TextBaseProps = {
29
29
  /**
@@ -66,6 +66,14 @@ type TextBaseProps = {
66
66
  * Количество строк (не поддерживает IE)
67
67
  */
68
68
  rowLimit?: 1 | 2 | 3;
69
+ /**
70
+ * Показать скелетон
71
+ */
72
+ showSkeleton?: boolean;
73
+ /**
74
+ * Пропы для скелетона
75
+ */
76
+ skeletonProps?: TextSkeletonProps;
69
77
  };
70
78
  type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
71
79
  tag?: "p";
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
114
122
  * Количество строк (не поддерживает IE)
115
123
  */
116
124
  rowLimit?: 1 | 2 | 3;
125
+ /**
126
+ * Показать скелетон
127
+ */
128
+ showSkeleton?: boolean;
129
+ /**
130
+ * Пропы для скелетона
131
+ */
132
+ skeletonProps?: TextSkeletonProps;
117
133
  };
118
134
  type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
119
135
  declare const Typography: {
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
165
181
  declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
166
182
  export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
167
183
  export type { TitleProps, TextProps, Color };
184
+ export * from "./useSkeleton-ebda875c";
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_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"};
20
+ var styles = {"addons":"intl-phone-input__addons_t0auu","l":"intl-phone-input__l_t0auu","xl":"intl-phone-input__xl_t0auu","flagIconWrapper":"intl-phone-input__flagIconWrapper_t0auu","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_t0auu"};
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_77b1w","flagPlaceholder":"intl-phone-input__flagPlaceholder_77b1w"};
5
+ var styles = {"flagIcon":"intl-phone-input__flagIcon_1voh7","flagPlaceholder":"intl-phone-input__flagPlaceholder_1voh7"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1bodv */
1
+ /* hash: 1c2is */
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_77b1w {
20
+ } .intl-phone-input__flagIcon_1voh7 {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .intl-phone-input__flagPlaceholder_77b1w {
23
+ } .intl-phone-input__flagPlaceholder_1voh7 {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;