@alfalab/core-components-intl-phone-input 9.5.13 → 9.5.14
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.
- package/Component-0f4b9bed.d.ts +21 -4
- package/Component-10db897e.d.ts +99 -5
- package/Component-4cd3936b.d.ts +2 -2
- package/Component-8b2c2707.d.ts +1 -1
- package/Component-c44170fe.d.ts +13 -0
- package/Component.desktop-63dec22f.d.ts +16 -4
- package/Component.desktop-785df74d.d.ts +1 -1
- package/Component.desktop-d873d97d.d.ts +6 -0
- package/Component.mobile-d7e9f69d.d.ts +1 -1
- package/Component.responsive-3109f463.d.ts +24 -3
- package/component.d.ts +1 -1
- package/component.js +1 -1
- package/components/flag-icon/component.js +1 -1
- package/components/flag-icon/index.css +3 -3
- package/components/select/component.d.ts +1 -9
- package/components/select/component.js +1 -1
- package/components/select/index.css +6 -6
- package/components/select-field/component.js +1 -1
- package/components/select-field/index.css +9 -9
- package/esm/Component-0f4b9bed.d.ts +18 -96
- package/esm/Component-10db897e.d.ts +99 -5
- package/esm/Component-4cd3936b.d.ts +1 -1
- package/esm/Component-c44170fe.d.ts +13 -0
- package/esm/{Component.desktop-0f4b9bed.d.ts → Component.desktop-63dec22f.d.ts} +1 -1
- package/{Component.desktop-4cd3936b.d.ts → esm/Component.desktop-9cded6b9.d.ts} +2 -2
- package/esm/component.d.ts +1 -1
- package/esm/component.js +1 -1
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +3 -3
- package/esm/components/select/component.d.ts +1 -1
- package/esm/components/select/component.js +1 -1
- package/esm/components/select/index.css +6 -6
- package/esm/components/select-field/component.js +1 -1
- package/esm/components/select-field/index.css +9 -9
- package/esm/index.css +5 -5
- package/esm/shared-4cd3936b.d.ts +14 -57
- package/{hook-0f4b9bed.d.ts → hook-8abfea97.d.ts} +2 -2
- package/hook-c44170fe.d.ts +48 -0
- package/index-10db897e.d.ts +2 -2
- package/index-c44170fe.d.ts +1 -1
- package/index.css +5 -5
- package/modern/component.js +1 -1
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +3 -3
- package/modern/components/select/component.js +1 -1
- package/modern/components/select/index.css +6 -6
- package/modern/components/select-field/component.js +1 -1
- package/modern/components/select-field/index.css +9 -9
- package/modern/index.css +5 -5
- package/package.json +3 -3
- package/shared-4cd3936b.d.ts +16 -6
- package/Component-72dda473.d.ts +0 -53
- package/Component.responsive-785df74d.d.ts +0 -26
- /package/{esm/Component.desktop-4cd3936b.d.ts → Component.desktop-9cded6b9.d.ts} +0 -0
- /package/{desktop-69921c40.d.ts → desktop-89f0cb07.d.ts} +0 -0
- /package/esm/{desktop-785df74d.d.ts → desktop-63dec22f.d.ts} +0 -0
- /package/esm/{desktop-69921c40.d.ts → desktop-89f0cb07.d.ts} +0 -0
- /package/{hook-ebda875c.d.ts → esm/hook-c44170fe.d.ts} +0 -0
- /package/esm/{mobile-d7e9f69d.d.ts → mobile-96988a65.d.ts} +0 -0
- /package/{mobile-d7e9f69d.d.ts → mobile-96988a65.d.ts} +0 -0
package/Component-0f4b9bed.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { OptionShape, OptionsListProps } from "./typings-0f4b9bed";
|
|
4
|
+
import { HeaderProps } from "./Component-ebda875c";
|
|
5
|
+
type FooterProps = {
|
|
6
|
+
handleClear?: () => void;
|
|
7
|
+
handleApply?: () => void;
|
|
8
|
+
showClear?: boolean;
|
|
9
|
+
selectedDraft?: OptionShape[];
|
|
10
|
+
};
|
|
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 };
|
package/Component-10db897e.d.ts
CHANGED
|
@@ -1,6 +1,100 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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-0f4b9bed";
|
|
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";
|
package/Component-4cd3936b.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FieldProps } from "./shared-4cd3936b";
|
|
4
|
-
import { InputAutocompleteDesktopProps } from "./Component.desktop-
|
|
4
|
+
import { InputAutocompleteDesktopProps } from "./Component.desktop-9cded6b9";
|
|
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
|
-
export * from "./Component.desktop-
|
|
7
|
+
export * from "./Component.desktop-d873d97d";
|
|
8
8
|
export { AutocompleteFieldProps, AutocompleteField };
|
package/Component-8b2c2707.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ElementType } from "react";
|
|
4
|
+
import { FormControlProps } from "./index-c44170fe";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "./typings-0f4b9bed";
|
|
6
|
+
type FieldProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Компонент FormControl
|
|
9
|
+
*/
|
|
10
|
+
FormControlComponent?: ElementType;
|
|
11
|
+
};
|
|
12
|
+
declare const Field: ({ size, open, multiple, error, hint, disabled, label, labelView, placeholder, selectedMultiple, selected, rightAddons, valueRenderer, setSelectedItems, toggleMenu, Arrow, innerProps, dataTestId, fieldClassName, FormControlComponent, ...restProps }: BaseFieldProps & FormControlProps & FieldProps) => React.JSX.Element;
|
|
13
|
+
export { Field };
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { FormControlDesktopProps } from "./desktop-63dec22f";
|
|
4
|
+
import { BaseSelectProps } from "./typings-0f4b9bed";
|
|
5
|
+
type SelectFieldProps = Omit<FormControlDesktopProps, 'size'> & Record<string, unknown>;
|
|
6
|
+
type SelectDesktopProps = Omit<BaseSelectProps, 'fieldProps'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Пропсы, которые будут прокинуты в компонент поля
|
|
9
|
+
*/
|
|
10
|
+
fieldProps?: SelectFieldProps;
|
|
11
|
+
};
|
|
12
|
+
declare const SelectDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "fieldProps"> & {
|
|
13
|
+
/**
|
|
14
|
+
* Пропсы, которые будут прокинуты в компонент поля
|
|
15
|
+
*/
|
|
16
|
+
fieldProps?: SelectFieldProps | undefined;
|
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { SelectFieldProps, SelectDesktopProps, SelectDesktop };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./
|
|
3
|
+
import { BaseFormControlProps } from "./Component.responsive-3109f463";
|
|
4
4
|
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
5
|
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseInputProps } from "./index-c44170fe";
|
|
4
|
+
type InputDesktopProps = Omit<BaseInputProps, 'FormControlComponent' | 'colorStyles'>;
|
|
5
|
+
declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export { InputDesktopProps, InputDesktop };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./
|
|
3
|
+
import { BaseFormControlProps } from "./Component.responsive-3109f463";
|
|
4
4
|
type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
5
|
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { FormControlMobileProps, FormControlMobile };
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
6
|
+
* @default 1024
|
|
7
|
+
*/
|
|
8
|
+
breakpoint?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
11
|
+
*/
|
|
12
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
13
|
+
};
|
|
14
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
15
|
+
/**
|
|
16
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
17
|
+
* @default 1024
|
|
18
|
+
*/
|
|
19
|
+
breakpoint?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
22
|
+
*/
|
|
23
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
24
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export * from "./Component-10db897e";
|
|
26
|
+
export { FormControlProps, FormControl };
|
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-
|
|
4
|
+
import { InputAutocompleteDesktopProps } from "./Component.desktop-9cded6b9";
|
|
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-
|
|
48
|
+
var styles = {"addons":"intl-phone-input__addons_1fvsr","l":"intl-phone-input__l_1fvsr","xl":"intl-phone-input__xl_1fvsr","flagIconWrapper":"intl-phone-input__flagIconWrapper_1fvsr","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_1fvsr"};
|
|
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-
|
|
14
|
+
var styles = {"flagIcon":"intl-phone-input__flagIcon_11sry","flagPlaceholder":"intl-phone-input__flagPlaceholder_11sry"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1bboj */
|
|
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-
|
|
20
|
+
} .intl-phone-input__flagIcon_11sry {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .intl-phone-
|
|
23
|
+
} .intl-phone-input__flagPlaceholder_11sry {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { BaseSelectProps } from "../../typings-0f4b9bed";
|
|
2
|
+
import { SelectDesktopProps } from "../../Component.desktop-63dec22f";
|
|
4
3
|
import { Country } from '@alfalab/utils';
|
|
5
|
-
type SelectFieldProps = Omit<FormControlDesktopProps, "size"> & Record<string, unknown>;
|
|
6
|
-
type SelectDesktopProps = Omit<BaseSelectProps, "fieldProps"> & {
|
|
7
|
-
/**
|
|
8
|
-
* Пропсы, которые будут прокинуты в компонент поля
|
|
9
|
-
*/
|
|
10
|
-
fieldProps?: SelectFieldProps;
|
|
11
|
-
};
|
|
12
4
|
type CountriesSelectProps = Pick<SelectDesktopProps, 'size' | 'dataTestId' | 'disabled' | 'onChange' | 'preventFlip'> & {
|
|
13
5
|
selected?: string;
|
|
14
6
|
countries: Country[];
|
|
@@ -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-
|
|
21
|
+
var styles = {"component":"intl-phone-input__component_173l9","option":"intl-phone-input__option_173l9","flag":"intl-phone-input__flag_173l9","countryName":"intl-phone-input__countryName_173l9","dialCode":"intl-phone-input__dialCode_173l9"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var CountriesSelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ofey */
|
|
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-
|
|
20
|
+
} .intl-phone-input__component_173l9 {
|
|
21
21
|
position: static;
|
|
22
22
|
display: flex;
|
|
23
23
|
min-width: initial;
|
|
24
24
|
height: 100%;
|
|
25
|
-
} .intl-phone-
|
|
25
|
+
} .intl-phone-input__option_173l9 {
|
|
26
26
|
display: flex;
|
|
27
27
|
align-items: flex-start;
|
|
28
|
-
} .intl-phone-
|
|
28
|
+
} .intl-phone-input__flag_173l9 {
|
|
29
29
|
flex-shrink: 0;
|
|
30
30
|
margin-right: var(--gap-xs);
|
|
31
|
-
} .intl-phone-
|
|
31
|
+
} .intl-phone-input__countryName_173l9 {
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .intl-phone-
|
|
33
|
+
} .intl-phone-input__dialCode_173l9 {
|
|
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-
|
|
21
|
+
var styles = {"component":"intl-phone-input__component_udd4m","flagIconContainer":"intl-phone-input__flagIconContainer_udd4m","emptyCountryIcon":"intl-phone-input__emptyCountryIcon_udd4m","disabled":"intl-phone-input__disabled_udd4m","inner":"intl-phone-input__inner_udd4m","l":"intl-phone-input__l_udd4m","xl":"intl-phone-input__xl_udd4m","focusVisible":"intl-phone-input__focusVisible_udd4m"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bdqv6 */
|
|
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-
|
|
24
|
+
} .intl-phone-input__component_udd4m {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .intl-phone-
|
|
29
|
+
} .intl-phone-input__flagIconContainer_udd4m {
|
|
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-
|
|
36
|
+
} .intl-phone-input__emptyCountryIcon_udd4m {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .intl-phone-
|
|
38
|
+
} .intl-phone-input__disabled_udd4m {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .intl-phone-
|
|
40
|
+
} .intl-phone-input__inner_udd4m {
|
|
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-
|
|
48
|
-
.intl-phone-
|
|
47
|
+
} .intl-phone-input__l_udd4m .intl-phone-input__inner_udd4m,
|
|
48
|
+
.intl-phone-input__xl_udd4m .intl-phone-input__inner_udd4m {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .intl-phone-
|
|
50
|
+
} .intl-phone-input__focusVisible_udd4m {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -1,100 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { BottomSheetProps } from "./index-f12ee135";
|
|
6
|
-
import { BaseSelectProps } from "./typings-0f4b9bed";
|
|
3
|
+
import { OptionShape, OptionsListProps } from "./typings-0f4b9bed";
|
|
4
|
+
import { HeaderProps } from "./Component-ebda875c";
|
|
7
5
|
type FooterProps = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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,100 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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-0f4b9bed";
|
|
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";
|