@alfalab/core-components-international-phone-input 1.0.0 → 1.0.1
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-4cd3936b.d.ts +1 -1
- package/Component-8b2c2707.d.ts +3 -3
- package/Component-c44170fe.d.ts +13 -0
- package/Component.mobile-4cd3936b.d.ts +1 -1
- package/Component.modal.mobile-4cd3936b.d.ts +1 -1
- package/Component.responsive.d.ts +4 -4
- package/components/base-international-phone-input/Component.d.ts +4 -4
- package/components/base-international-phone-input/Component.js +1 -1
- package/components/base-international-phone-input/index.css +2 -2
- package/components/country-select/Component.js +1 -1
- package/components/country-select/index.css +8 -8
- package/components/flag-icon/component.js +1 -1
- package/components/flag-icon/index.css +3 -3
- package/components/select-field/component.js +1 -1
- package/components/select-field/index.css +9 -9
- package/cssm/Component-4cd3936b.d.ts +17 -5
- package/cssm/Component-63dec22f.d.ts +184 -0
- package/cssm/Component-8b2c2707.d.ts +4 -4
- package/cssm/Component-c44170fe.d.ts +13 -0
- package/cssm/Component-dd8ca091.d.ts +70 -3
- package/cssm/Component-ebda875c.d.ts +9 -98
- package/cssm/Component.mobile-4cd3936b.d.ts +98 -0
- package/cssm/Component.modal.mobile-4cd3936b.d.ts +91 -0
- package/cssm/{mobile-45dc17c6.d.ts → Component.modal.mobile-dd8ca091.d.ts} +26 -13
- package/cssm/Component.responsive.d.ts +7 -7
- package/cssm/components/base-international-phone-input/Component.d.ts +4 -4
- package/cssm/desktop-232828f7.d.ts +1 -1
- package/cssm/hook-8abfea97.d.ts +5 -5
- package/cssm/index-bdb4c6b9.d.ts +2 -180
- package/cssm/index-c44170fe.d.ts +2 -0
- package/cssm/index-c76d6398.d.ts +5 -183
- package/cssm/index-ebda875c.d.ts +1 -1
- package/cssm/mobile-4c19bc40.d.ts +3 -121
- package/cssm/mobile-755fbaa3.d.ts +2 -0
- package/cssm/mobile-96988a65.d.ts +1 -2
- package/cssm/mobile-ade26e99.d.ts +5 -0
- package/cssm/shared-4cd3936b.d.ts +59 -1
- package/cssm/types-72dda473.d.ts +1 -1
- package/cssm/utils-1574ad8b.d.ts +29 -0
- package/esm/Component-4cd3936b.d.ts +1 -1
- package/esm/Component-8b2c2707.d.ts +3 -3
- package/esm/Component-c44170fe.d.ts +13 -0
- package/esm/Component.mobile-4cd3936b.d.ts +1 -1
- package/esm/Component.modal.mobile-4cd3936b.d.ts +1 -1
- package/esm/Component.responsive.d.ts +4 -4
- package/esm/components/base-international-phone-input/Component.d.ts +4 -4
- package/esm/components/base-international-phone-input/Component.js +1 -1
- package/esm/components/base-international-phone-input/index.css +2 -2
- package/esm/components/country-select/Component.js +1 -1
- package/esm/components/country-select/index.css +8 -8
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +3 -3
- package/esm/components/select-field/component.js +1 -1
- package/esm/components/select-field/index.css +9 -9
- package/esm/hook-8abfea97.d.ts +1 -1
- package/esm/index-c44170fe.d.ts +2 -0
- package/esm/index-c76d6398.d.ts +1 -1
- package/esm/types-72dda473.d.ts +1 -1
- package/hook-8abfea97.d.ts +1 -1
- package/index-c44170fe.d.ts +2 -0
- package/index-c76d6398.d.ts +1 -1
- package/modern/Component-c44170fe.d.ts +296 -0
- package/modern/Component.desktop-785df74d.d.ts +1 -1
- package/{cssm/Component.desktop-ebda875c.d.ts → modern/Component.desktop-dd8ca091.d.ts} +1 -1
- package/modern/Component.mobile-96988a65.d.ts +6 -0
- package/modern/Component.mobile-d7e9f69d.d.ts +1 -1
- package/modern/Component.responsive-2e2b2125.d.ts +5 -0
- package/modern/Component.responsive.d.ts +3 -3
- package/modern/components/base-international-phone-input/Component.d.ts +2 -2
- package/modern/components/base-international-phone-input/Component.js +1 -1
- package/modern/components/base-international-phone-input/index.css +2 -2
- package/modern/components/country-select/Component.js +1 -1
- package/modern/components/country-select/index.css +8 -8
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +3 -3
- package/modern/components/select-field/component.js +1 -1
- package/modern/components/select-field/index.css +9 -9
- package/modern/desktop-232828f7.d.ts +1 -1
- package/modern/desktop-63dec22f.d.ts +1 -1
- package/modern/hook-8abfea97.d.ts +1 -1
- package/modern/index-8b2c2707.d.ts +1 -5
- package/modern/index-c44170fe.d.ts +131 -0
- package/modern/index-c76d6398.d.ts +48 -4
- package/modern/mobile-96988a65.d.ts +1 -1
- package/modern/types-72dda473.d.ts +1 -1
- package/package.json +6 -6
- package/types-72dda473.d.ts +1 -1
- package/cssm/Component-96988a65.d.ts +0 -9
- package/cssm/Component-aed0af6e.d.ts +0 -11
- package/cssm/Component-f12ee135.d.ts +0 -72
- package/cssm/Component.responsive-d7e9f69d.d.ts +0 -26
- package/cssm/desktop-785df74d.d.ts +0 -2
- package/cssm/hook-ebda875c.d.ts +0 -48
- package/esm/mobile-d7e9f69d.d.ts +0 -2
- package/mobile-d7e9f69d.d.ts +0 -2
- package/modern/Component-8b2c2707.d.ts +0 -71
- package/modern/Component-9211a437.d.ts +0 -38
- package/modern/desktop-2e2b2125.d.ts +0 -2
- /package/{modern → cssm}/Component-d078a845.d.ts +0 -0
- /package/{modern → cssm}/Component.desktop-d078a845.d.ts +0 -0
- /package/{modern → cssm}/Component.mobile-ebda875c.d.ts +0 -0
- /package/{modern → cssm}/Component.responsive-785df74d.d.ts +0 -0
- /package/cssm/{useSkeleton-1b036d4b.d.ts → useSkeleton-ebda875c.d.ts} +0 -0
- /package/{cssm → modern}/Component.desktop-4cd3936b.d.ts +0 -0
package/Component-4cd3936b.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ElementType } from "react";
|
|
4
|
-
import { FormControlMobileProps } from "./mobile-
|
|
4
|
+
import { FormControlMobileProps } from "./mobile-96988a65";
|
|
5
5
|
import { FieldProps as BaseFieldProps } from "./shared-4cd3936b";
|
|
6
6
|
type FieldProps = {
|
|
7
7
|
/**
|
package/Component-8b2c2707.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ type IconButtonProps = {
|
|
|
34
34
|
* Набор цветов для компонента
|
|
35
35
|
*/
|
|
36
36
|
colors?: 'default' | 'inverted';
|
|
37
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size'> & Pick<ButtonProps, 'href' | 'loading' | 'breakpoint'> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'download'>;
|
|
37
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size'> & Pick<ButtonProps, 'Component' | 'href' | 'loading' | 'breakpoint'> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'download'>;
|
|
38
38
|
declare const IconButton: React.ForwardRefExoticComponent<{
|
|
39
39
|
/**
|
|
40
40
|
* Компонент иконки
|
|
@@ -49,7 +49,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
49
49
|
/**
|
|
50
50
|
* Размер компонента
|
|
51
51
|
*/
|
|
52
|
-
size?: "
|
|
52
|
+
size?: "xs" | "s" | "xxs" | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* Дополнительный класс
|
|
55
55
|
*/
|
|
@@ -67,5 +67,5 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
67
67
|
* Набор цветов для компонента
|
|
68
68
|
*/
|
|
69
69
|
colors?: "default" | "inverted" | undefined;
|
|
70
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
70
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
71
71
|
export { IconButtonProps, IconButton };
|
|
@@ -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-dd8ca091";
|
|
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 };
|
|
@@ -49,7 +49,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
|
|
|
49
49
|
*/
|
|
50
50
|
Input?: ElementType;
|
|
51
51
|
};
|
|
52
|
-
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "
|
|
52
|
+
declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "autocomplete" | "valueRenderer" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
53
53
|
/**
|
|
54
54
|
* Обработчик выбора
|
|
55
55
|
*/
|
|
@@ -46,7 +46,7 @@ type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsLi
|
|
|
46
46
|
*/
|
|
47
47
|
Input?: ElementType;
|
|
48
48
|
};
|
|
49
|
-
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "
|
|
49
|
+
declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "autocomplete" | "valueRenderer" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
|
|
50
50
|
/**
|
|
51
51
|
* Обработчик выбора
|
|
52
52
|
*/
|
|
@@ -12,8 +12,8 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
12
12
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
13
13
|
value: string;
|
|
14
14
|
}) => void) | undefined;
|
|
15
|
-
onBlur?: ((event: React.FocusEvent<
|
|
16
|
-
onFocus?: ((event: React.FocusEvent<
|
|
15
|
+
onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
16
|
+
onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
options?: undefined;
|
|
19
19
|
} & Omit<import("./Component.desktop-d873d97d").InputDesktopProps, "onFocus" | "onBlur" | "onChange" | "clear" | "onClear"> & {
|
|
@@ -33,8 +33,8 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
33
33
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
34
34
|
value: string;
|
|
35
35
|
}) => void) | undefined;
|
|
36
|
-
onBlur?: ((event: React.FocusEvent<
|
|
37
|
-
onFocus?: ((event: React.FocusEvent<
|
|
36
|
+
onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
37
|
+
onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
options: (import("./typings-dd8ca091").OptionShape | import("./typings-dd8ca091").GroupShape)[];
|
|
40
40
|
} & Omit<import("./Component.desktop-d078a845").InputAutocompleteDesktopProps, "onChange"> & {
|
|
@@ -14,13 +14,13 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
|
|
|
14
14
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
15
15
|
value: string;
|
|
16
16
|
}) => void) | undefined;
|
|
17
|
-
onBlur?: ((event: React.FocusEvent<
|
|
18
|
-
onFocus?: ((event: React.FocusEvent<
|
|
17
|
+
onBlur?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
18
|
+
onFocus?: ((event: React.FocusEvent<HTMLInputElement | HTMLDivElement, Element>) => void) | undefined;
|
|
19
19
|
} & {
|
|
20
|
-
Input: React.FC<import("
|
|
20
|
+
Input: React.FC<import("@alfalab/core-components-input").InputProps>;
|
|
21
21
|
InputAutocomplete: React.FC<InputAutocompleteProps>;
|
|
22
22
|
SelectComponent: React.ElementType<any>;
|
|
23
23
|
view: "mobile" | "desktop";
|
|
24
24
|
countriesData: Country[][];
|
|
25
|
-
} & Omit<import("
|
|
25
|
+
} & Omit<import("@alfalab/core-components-input").InputProps, "onFocus" | "onBlur" | "onScroll"> & Partial<Omit<InputAutocompleteProps, "leftAddons" | "onChange" | "onScroll">> & React.RefAttributes<HTMLInputElement>>;
|
|
26
26
|
export { BaseInternationalPhoneInput };
|
|
@@ -25,7 +25,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
25
25
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
26
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
27
27
|
|
|
28
|
-
var styles = {"component":"international-phone-
|
|
28
|
+
var styles = {"component":"international-phone-input__component_1uwc2","addons":"international-phone-input__addons_1uwc2"};
|
|
29
29
|
require('./index.css')
|
|
30
30
|
|
|
31
31
|
var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
@@ -18,7 +18,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
20
20
|
|
|
21
|
-
var styles = {"component":"international-phone-
|
|
21
|
+
var styles = {"component":"international-phone-input__component_xf953","option":"international-phone-input__option_xf953","flag":"international-phone-input__flag_xf953","countryName":"international-phone-input__countryName_xf953","dialCode":"international-phone-input__dialCode_xf953","flagIconWrapper":"international-phone-input__flagIconWrapper_xf953","emptyCountryIcon":"international-phone-input__emptyCountryIcon_xf953"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var CountrySelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ffpc */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-secondary: #86868a;
|
|
@@ -19,29 +19,29 @@
|
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
21
|
--text-secondary-color: var(--color-light-text-secondary);
|
|
22
|
-
} .international-phone-
|
|
22
|
+
} .international-phone-input__component_xf953 {
|
|
23
23
|
position: static;
|
|
24
24
|
display: flex;
|
|
25
25
|
min-width: initial;
|
|
26
26
|
height: 100%;
|
|
27
|
-
} .international-phone-
|
|
27
|
+
} .international-phone-input__option_xf953 {
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: flex-start;
|
|
30
30
|
padding: var(--gap-s);
|
|
31
|
-
} .international-phone-
|
|
31
|
+
} .international-phone-input__flag_xf953 {
|
|
32
32
|
flex-shrink: 0;
|
|
33
33
|
margin-right: var(--gap-xs);
|
|
34
|
-
} .international-phone-
|
|
34
|
+
} .international-phone-input__countryName_xf953 {
|
|
35
35
|
margin-right: var(--gap-xs);
|
|
36
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__dialCode_xf953 {
|
|
37
37
|
color: var(--text-secondary-color);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__flagIconWrapper_xf953 {
|
|
39
39
|
display: flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
align-items: center;
|
|
42
42
|
width: 24px;
|
|
43
43
|
height: 24px;
|
|
44
44
|
margin-left: var(--gap-s);
|
|
45
|
-
} .international-phone-
|
|
45
|
+
} .international-phone-input__emptyCountryIcon_xf953 {
|
|
46
46
|
color: var(--color-light-graphic-secondary);
|
|
47
47
|
}
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"flagIcon":"international-phone-
|
|
14
|
+
var styles = {"flagIcon":"international-phone-input__flagIcon_yqc8s","flagPlaceholder":"international-phone-input__flagPlaceholder_yqc8s"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1m6cl */
|
|
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
|
-
} .international-phone-
|
|
20
|
+
} .international-phone-input__flagIcon_yqc8s {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .international-phone-
|
|
23
|
+
} .international-phone-input__flagPlaceholder_yqc8s {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
|
@@ -17,7 +17,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
17
17
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
18
18
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
19
19
|
|
|
20
|
-
var styles = {"component":"international-phone-
|
|
20
|
+
var styles = {"component":"international-phone-input__component_179pq","flagIconContainer":"international-phone-input__flagIconContainer_179pq","emptyCountryIcon":"international-phone-input__emptyCountryIcon_179pq","disabled":"international-phone-input__disabled_179pq","inner":"international-phone-input__inner_179pq","l":"international-phone-input__l_179pq","xl":"international-phone-input__xl_179pq","focusVisible":"international-phone-input__focusVisible_179pq"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 15dc1 */
|
|
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
|
-
} .international-phone-
|
|
24
|
+
} .international-phone-input__component_179pq {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .international-phone-
|
|
29
|
+
} .international-phone-input__flagIconContainer_179pq {
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
align-items: center;
|
|
33
33
|
width: 24px;
|
|
34
34
|
height: 24px;
|
|
35
35
|
margin-right: var(--gap-2xs);
|
|
36
|
-
} .international-phone-
|
|
36
|
+
} .international-phone-input__emptyCountryIcon_179pq {
|
|
37
37
|
color: var(--color-light-graphic-secondary);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__disabled_179pq {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .international-phone-
|
|
40
|
+
} .international-phone-input__inner_179pq {
|
|
41
41
|
position: relative;
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
height: 100%;
|
|
45
45
|
padding-left: var(--gap-s);
|
|
46
46
|
outline: none;
|
|
47
|
-
} .international-phone-
|
|
48
|
-
.international-phone-
|
|
47
|
+
} .international-phone-input__l_179pq .international-phone-input__inner_179pq,
|
|
48
|
+
.international-phone-input__xl_179pq .international-phone-input__inner_179pq {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .international-phone-
|
|
50
|
+
} .international-phone-input__focusVisible_179pq {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { ElementType } from "react";
|
|
4
|
+
import { FormControlMobileProps } from "./mobile-96988a65";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "./shared-4cd3936b";
|
|
6
|
+
type FieldProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Компонент FormControl
|
|
9
|
+
*/
|
|
10
|
+
FormControlComponent?: ElementType;
|
|
11
|
+
};
|
|
12
|
+
type AutocompleteMobileFieldProps = FormControlMobileProps & Omit<BaseFieldProps, 'selected' | 'multiple' | 'success'> & {
|
|
13
|
+
/**
|
|
14
|
+
* Значение поля ввода
|
|
15
|
+
*/
|
|
16
|
+
value?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const AutocompleteMobileField: ({ size, open, disabled, value, innerProps, dataTestId, fieldClassName, labelView, placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, FormControlComponent, ...restProps }: AutocompleteMobileFieldProps & FieldProps) => React.JSX.Element;
|
|
19
|
+
export { AutocompleteMobileFieldProps, AutocompleteMobileField };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
5
|
+
declare const colors: readonly [
|
|
6
|
+
"tertiary",
|
|
7
|
+
"disabled",
|
|
8
|
+
"accent",
|
|
9
|
+
"primary",
|
|
10
|
+
"attention",
|
|
11
|
+
"positive",
|
|
12
|
+
"secondary",
|
|
13
|
+
"tertiary-inverted",
|
|
14
|
+
"primary-inverted",
|
|
15
|
+
"secondary-inverted",
|
|
16
|
+
"link",
|
|
17
|
+
"negative",
|
|
18
|
+
"static-primary-light",
|
|
19
|
+
"static-secondary-light",
|
|
20
|
+
"static-tertiary-light",
|
|
21
|
+
"static-primary-dark",
|
|
22
|
+
"static-secondary-dark",
|
|
23
|
+
"static-tertiary-dark",
|
|
24
|
+
"static-accent"
|
|
25
|
+
];
|
|
26
|
+
type Color = (typeof colors)[number];
|
|
27
|
+
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
|
+
type TextBaseProps = {
|
|
29
|
+
/**
|
|
30
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
31
|
+
*/
|
|
32
|
+
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
33
|
+
/**
|
|
34
|
+
* Цвет текста
|
|
35
|
+
*/
|
|
36
|
+
color?: Color;
|
|
37
|
+
/**
|
|
38
|
+
* Толщина шрифта
|
|
39
|
+
*/
|
|
40
|
+
weight?: "regular" | "medium" | "bold";
|
|
41
|
+
/**
|
|
42
|
+
* Делает цифры моноширинными
|
|
43
|
+
*/
|
|
44
|
+
monospaceNumbers?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* HTML тег
|
|
47
|
+
*/
|
|
48
|
+
tag?: "span" | "div";
|
|
49
|
+
/**
|
|
50
|
+
* Css-класс для стилизации (native prop)
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Id компонента для тестов
|
|
55
|
+
*/
|
|
56
|
+
dataTestId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Контент (native prop)
|
|
59
|
+
*/
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Добавляет отступы к тэгу 'p'
|
|
63
|
+
*/
|
|
64
|
+
defaultMargins?: never;
|
|
65
|
+
/**
|
|
66
|
+
* Количество строк (не поддерживает IE)
|
|
67
|
+
*/
|
|
68
|
+
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
/**
|
|
70
|
+
* Показать скелетон
|
|
71
|
+
*/
|
|
72
|
+
showSkeleton?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Пропы для скелетона
|
|
75
|
+
*/
|
|
76
|
+
skeletonProps?: TextSkeletonProps;
|
|
77
|
+
};
|
|
78
|
+
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
79
|
+
tag?: "p";
|
|
80
|
+
defaultMargins?: boolean;
|
|
81
|
+
};
|
|
82
|
+
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
83
|
+
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
84
|
+
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
85
|
+
/**
|
|
86
|
+
* HTML тег
|
|
87
|
+
*/
|
|
88
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
89
|
+
/**
|
|
90
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
91
|
+
*/
|
|
92
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
93
|
+
/**
|
|
94
|
+
* Цвет текста
|
|
95
|
+
*/
|
|
96
|
+
color?: Color;
|
|
97
|
+
/**
|
|
98
|
+
* Толщина шрифта
|
|
99
|
+
*/
|
|
100
|
+
weight?: "regular" | "medium" | "bold";
|
|
101
|
+
/**
|
|
102
|
+
* Шрифт текста
|
|
103
|
+
*/
|
|
104
|
+
font?: "styrene" | "system";
|
|
105
|
+
/**
|
|
106
|
+
* Добавляет отступы
|
|
107
|
+
*/
|
|
108
|
+
defaultMargins?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Css-класс для стилизации (native prop)
|
|
111
|
+
*/
|
|
112
|
+
className?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Id компонента для тестов
|
|
115
|
+
*/
|
|
116
|
+
dataTestId?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Контент (native prop)
|
|
119
|
+
*/
|
|
120
|
+
children?: React.ReactNode;
|
|
121
|
+
/**
|
|
122
|
+
* Количество строк (не поддерживает IE)
|
|
123
|
+
*/
|
|
124
|
+
rowLimit?: 1 | 2 | 3;
|
|
125
|
+
/**
|
|
126
|
+
* Показать скелетон
|
|
127
|
+
*/
|
|
128
|
+
showSkeleton?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Пропы для скелетона
|
|
131
|
+
*/
|
|
132
|
+
skeletonProps?: TextSkeletonProps;
|
|
133
|
+
};
|
|
134
|
+
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
135
|
+
declare const Typography: {
|
|
136
|
+
Title: FC<TitleProps>;
|
|
137
|
+
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
138
|
+
TitleResponsive: FC<TitleProps>;
|
|
139
|
+
TitleMobile: FC<TitleMobileProps>;
|
|
140
|
+
};
|
|
141
|
+
declare const typographyPresets: {
|
|
142
|
+
mobile: {
|
|
143
|
+
list: {
|
|
144
|
+
text: {
|
|
145
|
+
primary: {
|
|
146
|
+
tag: string;
|
|
147
|
+
view: string;
|
|
148
|
+
};
|
|
149
|
+
secondary: {
|
|
150
|
+
tag: string;
|
|
151
|
+
color: string;
|
|
152
|
+
view: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
declare const TitleResponsive: FC<TitleProps>;
|
|
159
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
160
|
+
/**
|
|
161
|
+
* Текст после иконки
|
|
162
|
+
*/
|
|
163
|
+
text?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Дополнительный класс
|
|
166
|
+
*/
|
|
167
|
+
className?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Вид компонента
|
|
170
|
+
*/
|
|
171
|
+
view: 'mobile' | 'desktop';
|
|
172
|
+
/**
|
|
173
|
+
* Прозрачность текста
|
|
174
|
+
*/
|
|
175
|
+
textOpacity?: number;
|
|
176
|
+
/**
|
|
177
|
+
* Обработчик клика
|
|
178
|
+
*/
|
|
179
|
+
onClick?: () => void;
|
|
180
|
+
}
|
|
181
|
+
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
182
|
+
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
183
|
+
export type { TitleProps, TextProps, Color };
|
|
184
|
+
export * from "./useSkeleton-ebda875c";
|
|
@@ -34,7 +34,7 @@ type IconButtonProps = {
|
|
|
34
34
|
* Набор цветов для компонента
|
|
35
35
|
*/
|
|
36
36
|
colors?: 'default' | 'inverted';
|
|
37
|
-
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size'> & Pick<ButtonProps, 'href' | 'loading' | 'breakpoint'> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'download'>;
|
|
37
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size'> & Pick<ButtonProps, 'Component' | 'href' | 'loading' | 'breakpoint'> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'download'>;
|
|
38
38
|
declare const IconButton: React.ForwardRefExoticComponent<{
|
|
39
39
|
/**
|
|
40
40
|
* Компонент иконки
|
|
@@ -49,7 +49,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
49
49
|
/**
|
|
50
50
|
* Размер компонента
|
|
51
51
|
*/
|
|
52
|
-
size?: "
|
|
52
|
+
size?: "xs" | "s" | "xxs" | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* Дополнительный класс
|
|
55
55
|
*/
|
|
@@ -58,7 +58,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
58
58
|
* Выравнивание иконки
|
|
59
59
|
* @default 'center'
|
|
60
60
|
*/
|
|
61
|
-
alignIcon?: "center" | "
|
|
61
|
+
alignIcon?: "center" | "right" | "left" | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Идентификатор для систем автоматизированного тестирования
|
|
64
64
|
*/
|
|
@@ -67,5 +67,5 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
67
67
|
* Набор цветов для компонента
|
|
68
68
|
*/
|
|
69
69
|
colors?: "default" | "inverted" | undefined;
|
|
70
|
-
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
70
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
71
71
|
export { IconButtonProps, IconButton };
|
|
@@ -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-dd8ca091";
|
|
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,5 +1,72 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
+
import { BaseSelectProps } from "./typings-dd8ca091";
|
|
6
|
+
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Футер
|
|
9
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
10
|
+
*/
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Будет ли свайпаться шторка
|
|
14
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
15
|
+
*/
|
|
16
|
+
swipeable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Отображать в BottomSheet
|
|
19
|
+
*/
|
|
20
|
+
isBottomSheet?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Дополнительные пропсы шторки
|
|
23
|
+
*/
|
|
24
|
+
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Дополнительные пропсы модалки
|
|
27
|
+
*/
|
|
28
|
+
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
29
|
+
/**
|
|
30
|
+
* Дополнительные пропсы шапки модалки
|
|
31
|
+
*/
|
|
32
|
+
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
33
|
+
/**
|
|
34
|
+
* Дополнительные пропсы футера модалки
|
|
35
|
+
*/
|
|
36
|
+
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
37
|
+
};
|
|
38
|
+
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
39
|
+
/**
|
|
40
|
+
* Футер
|
|
41
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
42
|
+
*/
|
|
43
|
+
footer?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Будет ли свайпаться шторка
|
|
46
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
47
|
+
*/
|
|
48
|
+
swipeable?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Отображать в BottomSheet
|
|
51
|
+
*/
|
|
52
|
+
isBottomSheet?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Дополнительные пропсы шторки
|
|
55
|
+
*/
|
|
56
|
+
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Дополнительные пропсы модалки
|
|
59
|
+
*/
|
|
60
|
+
modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Дополнительные пропсы шапки модалки
|
|
63
|
+
*/
|
|
64
|
+
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Дополнительные пропсы футера модалки
|
|
67
|
+
*/
|
|
68
|
+
modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
|
|
69
|
+
} & React.RefAttributes<unknown>>;
|
|
70
|
+
export * from "./Component.mobile-f1f15074";
|
|
71
|
+
export { ModalMobileProps } from "./typings-bdb4c6b9";
|
|
72
|
+
export { SelectMobileProps, BaseSelectMobile };
|