@alfalab/core-components-international-phone-input 1.2.3 → 1.2.5
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-89f0cb07.d.ts → Component-553146b2.d.ts} +1 -1
- package/Component-bdb4c6b9.d.ts +12 -0
- package/{esm/Component-e63ec8aa.d.ts → Component-c29389e5.d.ts} +1 -1
- package/Component.responsive-8566963f.d.ts +2 -2
- package/Component.responsive.d.ts +4 -4
- package/ResponsiveContext-08e5596c.d.ts +5 -0
- package/components/base-international-phone-input/Component.d.ts +1 -1
- 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/{modern/Component-89f0cb07.d.ts → cssm/Component-553146b2.d.ts} +1 -1
- package/cssm/Component-bdb4c6b9.d.ts +12 -0
- package/{Component-e63ec8aa.d.ts → cssm/Component-c29389e5.d.ts} +1 -1
- package/cssm/Component.responsive-8566963f.d.ts +2 -2
- package/cssm/Component.responsive.d.ts +4 -4
- package/cssm/ResponsiveContext-08e5596c.d.ts +5 -0
- package/cssm/components/base-international-phone-input/Component.d.ts +1 -1
- package/cssm/index-136acbb1.d.ts +28 -0
- package/cssm/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
- package/cssm/index-8566963f.d.ts +2 -2
- package/cssm/index-bdb4c6b9.d.ts +183 -0
- package/cssm/index-ebda875c.d.ts +4 -1
- package/cssm/types.d.ts +1 -1
- package/cssm/typings-08e5596c.d.ts +56 -0
- package/{esm/typings-89f0cb07.d.ts → cssm/typings-553146b2.d.ts} +2 -1
- package/cssm/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
- package/cssm/utils-d2597f31.d.ts +1 -1
- package/{cssm/Component-89f0cb07.d.ts → esm/Component-553146b2.d.ts} +1 -1
- package/esm/Component-bdb4c6b9.d.ts +12 -0
- package/{modern/Component-e63ec8aa.d.ts → esm/Component-c29389e5.d.ts} +1 -1
- package/esm/Component.responsive-8566963f.d.ts +2 -2
- package/esm/Component.responsive.d.ts +4 -4
- package/esm/ResponsiveContext-08e5596c.d.ts +5 -0
- package/esm/components/base-international-phone-input/Component.d.ts +1 -1
- 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/index-136acbb1.d.ts +28 -0
- package/esm/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
- package/esm/index-8566963f.d.ts +2 -2
- package/esm/index-bdb4c6b9.d.ts +183 -0
- package/esm/index-ebda875c.d.ts +4 -1
- package/esm/types.d.ts +1 -1
- package/esm/typings-08e5596c.d.ts +56 -0
- package/{cssm/typings-89f0cb07.d.ts → esm/typings-553146b2.d.ts} +2 -1
- package/esm/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
- package/esm/utils-d2597f31.d.ts +1 -1
- package/index-136acbb1.d.ts +28 -0
- package/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
- package/index-8566963f.d.ts +2 -2
- package/index-bdb4c6b9.d.ts +183 -0
- package/index-ebda875c.d.ts +4 -1
- package/{esm/Component-89f0cb07.d.ts → modern/Component-553146b2.d.ts} +1 -1
- package/modern/Component-bdb4c6b9.d.ts +12 -0
- package/{cssm/Component-e63ec8aa.d.ts → modern/Component-c29389e5.d.ts} +1 -1
- package/modern/Component.responsive-8566963f.d.ts +2 -2
- package/modern/Component.responsive.d.ts +4 -4
- package/modern/ResponsiveContext-08e5596c.d.ts +5 -0
- package/modern/components/base-international-phone-input/Component.d.ts +1 -1
- 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/index-136acbb1.d.ts +28 -0
- package/modern/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
- package/modern/index-8566963f.d.ts +2 -2
- package/modern/index-bdb4c6b9.d.ts +183 -0
- package/modern/index-ebda875c.d.ts +4 -1
- package/modern/types.d.ts +1 -1
- package/modern/typings-08e5596c.d.ts +56 -0
- package/modern/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
- package/modern/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
- package/modern/utils-d2597f31.d.ts +1 -1
- package/package.json +4 -4
- package/types.d.ts +1 -1
- package/typings-08e5596c.d.ts +56 -0
- package/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
- package/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
- package/utils-d2597f31.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC } from "react";
|
|
4
|
-
import { CommonButtonProps, PrivateButtonProps } from "./typings-
|
|
4
|
+
import { CommonButtonProps, PrivateButtonProps } from "./typings-553146b2";
|
|
5
5
|
type SpinnerProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Управление видимостью компонента
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { View } from "./typings-08e5596c";
|
|
4
|
+
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
|
+
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
|
+
fullscreen?: boolean | undefined;
|
|
7
|
+
fixedPosition?: boolean | undefined;
|
|
8
|
+
hasCloser?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
view: View;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Modal };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { OptgroupProps } from "./typings-
|
|
3
|
+
import { OptgroupProps } from "./typings-c29389e5";
|
|
4
4
|
declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
|
|
5
5
|
export { Optgroup };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { CommonButtonProps, ButtonProps } from "./typings-
|
|
3
|
+
import { CommonButtonProps, ButtonProps } from "./typings-553146b2";
|
|
4
4
|
declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
5
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
6
|
export { ButtonMobile, Button };
|
|
7
|
-
export type { CommonButtonProps as ButtonMobileProps } from "./typings-
|
|
7
|
+
export type { CommonButtonProps as ButtonMobileProps } from "./typings-553146b2";
|
|
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
7
7
|
clearableCountryCode?: boolean | undefined;
|
|
8
8
|
countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
|
|
9
9
|
clear?: boolean | undefined;
|
|
10
|
-
filterFn?: ((value: string | undefined, option: import("./typings-
|
|
10
|
+
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
11
11
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
12
12
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
13
13
|
value: string;
|
|
@@ -28,7 +28,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
28
28
|
clearableCountryCode?: boolean | undefined;
|
|
29
29
|
countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
|
|
30
30
|
clear?: boolean | undefined;
|
|
31
|
-
filterFn?: ((value: string | undefined, option: import("./typings-
|
|
31
|
+
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
32
32
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
33
33
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
34
34
|
value: string;
|
|
@@ -36,9 +36,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
36
36
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
37
37
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
38
38
|
} & {
|
|
39
|
-
options: (import("./typings-
|
|
39
|
+
options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
|
|
40
40
|
} & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
|
|
41
|
-
options: (import("./typings-
|
|
41
|
+
options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
|
|
42
42
|
} & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
|
|
43
43
|
breakpoint?: number | undefined;
|
|
44
44
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
clearableCountryCode?: boolean | undefined;
|
|
10
10
|
countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
|
|
11
11
|
clear?: boolean | undefined;
|
|
12
|
-
filterFn?: ((value: string | undefined, option: import("../../typings-
|
|
12
|
+
filterFn?: ((value: string | undefined, option: import("../../typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
13
13
|
onCountryChange?: ((country?: Country | undefined) => void) | undefined;
|
|
14
14
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
15
15
|
value: string;
|
|
@@ -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_virlo","addons":"international-phone-input__addons_virlo"};
|
|
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_1tl9i","option":"international-phone-input__option_1tl9i","flag":"international-phone-input__flag_1tl9i","countryName":"international-phone-input__countryName_1tl9i","dialCode":"international-phone-input__dialCode_1tl9i","flagIconWrapper":"international-phone-input__flagIconWrapper_1tl9i","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1tl9i"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var CountrySelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 283co */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
|
|
@@ -18,29 +18,29 @@
|
|
|
18
18
|
--gap-s: 12px;
|
|
19
19
|
} :root {
|
|
20
20
|
} :root {
|
|
21
|
-
} .international-phone-
|
|
21
|
+
} .international-phone-input__component_1tl9i {
|
|
22
22
|
position: static;
|
|
23
23
|
display: flex;
|
|
24
24
|
min-width: initial;
|
|
25
25
|
height: 100%;
|
|
26
|
-
} .international-phone-
|
|
26
|
+
} .international-phone-input__option_1tl9i {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: flex-start;
|
|
29
29
|
padding: var(--gap-s);
|
|
30
|
-
} .international-phone-
|
|
30
|
+
} .international-phone-input__flag_1tl9i {
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .international-phone-
|
|
33
|
+
} .international-phone-input__countryName_1tl9i {
|
|
34
34
|
margin-right: var(--gap-xs);
|
|
35
|
-
} .international-phone-
|
|
35
|
+
} .international-phone-input__dialCode_1tl9i {
|
|
36
36
|
color: var(--color-light-text-secondary);
|
|
37
|
-
} .international-phone-
|
|
37
|
+
} .international-phone-input__flagIconWrapper_1tl9i {
|
|
38
38
|
display: flex;
|
|
39
39
|
justify-content: center;
|
|
40
40
|
align-items: center;
|
|
41
41
|
width: 24px;
|
|
42
42
|
height: 24px;
|
|
43
43
|
margin-left: var(--gap-s);
|
|
44
|
-
} .international-phone-
|
|
44
|
+
} .international-phone-input__emptyCountryIcon_1tl9i {
|
|
45
45
|
color: var(--color-light-neutral-translucent-700);
|
|
46
46
|
}
|
|
@@ -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_y4e8r","flagPlaceholder":"international-phone-input__flagPlaceholder_y4e8r"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 10cuj */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
--gap-3xs: 2px;
|
|
18
18
|
} :root {
|
|
19
19
|
} :root {
|
|
20
|
-
} .international-phone-
|
|
20
|
+
} .international-phone-input__flagIcon_y4e8r {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .international-phone-
|
|
23
|
+
} .international-phone-input__flagPlaceholder_y4e8r {
|
|
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_v223y","flagIconContainer":"international-phone-input__flagIconContainer_v223y","emptyCountryIcon":"international-phone-input__emptyCountryIcon_v223y","disabled":"international-phone-input__disabled_v223y","inner":"international-phone-input__inner_v223y","l":"international-phone-input__l_v223y","xl":"international-phone-input__xl_v223y","focusVisible":"international-phone-input__focusVisible_v223y"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1odgt */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-link: #2288fa;
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--focus-color: var(--color-light-border-link);
|
|
23
23
|
--disabled-cursor: not-allowed;
|
|
24
|
-
} .international-phone-
|
|
24
|
+
} .international-phone-input__component_v223y {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .international-phone-
|
|
29
|
+
} .international-phone-input__flagIconContainer_v223y {
|
|
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_v223y {
|
|
37
37
|
color: var(--color-light-neutral-translucent-700);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__disabled_v223y {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .international-phone-
|
|
40
|
+
} .international-phone-input__inner_v223y {
|
|
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_v223y .international-phone-input__inner_v223y,
|
|
48
|
+
.international-phone-input__xl_v223y .international-phone-input__inner_v223y {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .international-phone-
|
|
50
|
+
} .international-phone-input__focusVisible_v223y {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC } from "react";
|
|
4
|
-
import { CommonButtonProps, PrivateButtonProps } from "./typings-
|
|
4
|
+
import { CommonButtonProps, PrivateButtonProps } from "./typings-553146b2";
|
|
5
5
|
type SpinnerProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Управление видимостью компонента
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { View } from "./typings-08e5596c";
|
|
4
|
+
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
|
+
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
|
+
fullscreen?: boolean | undefined;
|
|
7
|
+
fixedPosition?: boolean | undefined;
|
|
8
|
+
hasCloser?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
view: View;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Modal };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { OptgroupProps } from "./typings-
|
|
3
|
+
import { OptgroupProps } from "./typings-c29389e5";
|
|
4
4
|
declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
|
|
5
5
|
export { Optgroup };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { CommonButtonProps, ButtonProps } from "./typings-
|
|
3
|
+
import { CommonButtonProps, ButtonProps } from "./typings-553146b2";
|
|
4
4
|
declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
5
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
6
|
export { ButtonMobile, Button };
|
|
7
|
-
export type { CommonButtonProps as ButtonMobileProps } from "./typings-
|
|
7
|
+
export type { CommonButtonProps as ButtonMobileProps } from "./typings-553146b2";
|
|
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
7
7
|
clearableCountryCode?: boolean | undefined;
|
|
8
8
|
countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
|
|
9
9
|
clear?: boolean | undefined;
|
|
10
|
-
filterFn?: ((value: string | undefined, option: import("./typings-
|
|
10
|
+
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
11
11
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
12
12
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
13
13
|
value: string;
|
|
@@ -28,7 +28,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
28
28
|
clearableCountryCode?: boolean | undefined;
|
|
29
29
|
countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
|
|
30
30
|
clear?: boolean | undefined;
|
|
31
|
-
filterFn?: ((value: string | undefined, option: import("./typings-
|
|
31
|
+
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
32
32
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
33
33
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
34
34
|
value: string;
|
|
@@ -36,9 +36,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
36
36
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
37
37
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
38
38
|
} & {
|
|
39
|
-
options: (import("./typings-
|
|
39
|
+
options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
|
|
40
40
|
} & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
|
|
41
|
-
options: (import("./typings-
|
|
41
|
+
options: (import("./typings-c29389e5").OptionShape | import("./typings-c29389e5").GroupShape)[];
|
|
42
42
|
} & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
|
|
43
43
|
breakpoint?: number | undefined;
|
|
44
44
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
clearableCountryCode?: boolean | undefined;
|
|
10
10
|
countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
|
|
11
11
|
clear?: boolean | undefined;
|
|
12
|
-
filterFn?: ((value: string | undefined, option: import("../../typings-
|
|
12
|
+
filterFn?: ((value: string | undefined, option: import("../../typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
13
13
|
onCountryChange?: ((country?: Country | undefined) => void) | undefined;
|
|
14
14
|
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
15
15
|
value: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
5
|
+
* Значения выбраны по приоритету.
|
|
6
|
+
*/
|
|
7
|
+
declare const stackingOrder: {
|
|
8
|
+
FOCUSED: number;
|
|
9
|
+
DEFAULT: number;
|
|
10
|
+
POPOVER: number;
|
|
11
|
+
MODAL: number;
|
|
12
|
+
TOAST: number;
|
|
13
|
+
};
|
|
14
|
+
declare const StackingContext: import("react").Context<number>;
|
|
15
|
+
type StackProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Render prop, в который передается функция.
|
|
18
|
+
* Функция принимает аргумент со значением z-index из текущего контекста.
|
|
19
|
+
*/
|
|
20
|
+
children: (value: number) => ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Исходное значение для z-index.
|
|
23
|
+
* @default 5
|
|
24
|
+
*/
|
|
25
|
+
value?: number;
|
|
26
|
+
};
|
|
27
|
+
declare const Stack: FC<StackProps>;
|
|
28
|
+
export { stackingOrder, StackingContext, StackProps, Stack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Button } from "./Component.responsive-8566963f";
|
|
2
|
-
export type { ButtonProps } from "./typings-
|
|
2
|
+
export type { ButtonProps } from "./typings-553146b2";
|
package/cssm/index-8566963f.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { CommonButtonProps } from "./typings-
|
|
3
|
+
import { CommonButtonProps } from "./typings-553146b2";
|
|
4
4
|
declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
5
|
export { ButtonDesktop };
|
|
6
|
-
export type { CommonButtonProps as ButtonDesktopProps } from "./typings-
|
|
6
|
+
export type { CommonButtonProps as ButtonDesktopProps } from "./typings-553146b2";
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
|
+
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
|
|
6
|
+
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
|
+
import { BackdropProps, PortalProps } from "./index-ebda875c";
|
|
8
|
+
type BaseModalProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Контент
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Компонент бэкдропа
|
|
15
|
+
*/
|
|
16
|
+
Backdrop?: FC<BackdropProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Свойства для Бэкдропа
|
|
19
|
+
*/
|
|
20
|
+
backdropProps?: Partial<BackdropProps> & Record<string, unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Нода, компонент или функция возвращающая их
|
|
23
|
+
*
|
|
24
|
+
* Контейнер к которому будут добавляться порталы
|
|
25
|
+
*/
|
|
26
|
+
container?: PortalProps["getPortalContainer"];
|
|
27
|
+
/**
|
|
28
|
+
* Отключает автоматический перевод фокуса на модалку при открытии
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
disableAutoFocus?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Отключает ловушку фокуса
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disableFocusLock?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Отключает восстановление фокуса на предыдущем элементе после закрытия модалки
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
disableRestoreFocus?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Отключает вызов `callback` при нажатии Escape
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
disableEscapeKeyDown?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Отключает вызов `callback` при клике на бэкдроп
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
disableBackdropClick?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
disableBlockingScroll?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Содержимое модалки всегда в DOM
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
keepMounted?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Управление видимостью модалки
|
|
64
|
+
*/
|
|
65
|
+
open: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Дополнительный класс
|
|
68
|
+
*/
|
|
69
|
+
className?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Дополнительный класс
|
|
72
|
+
*/
|
|
73
|
+
contentClassName?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Дополнительные пропсы на dialog wrapper
|
|
76
|
+
*/
|
|
77
|
+
wrapperProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
78
|
+
/**
|
|
79
|
+
* Дополнительные пропсы на обертку контента
|
|
80
|
+
*/
|
|
81
|
+
contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
82
|
+
/**
|
|
83
|
+
* Дополнительные пропсы на компонентную обертку контента
|
|
84
|
+
*/
|
|
85
|
+
componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
86
|
+
/**
|
|
87
|
+
* Дополнительный класс для обертки (Modal)
|
|
88
|
+
*/
|
|
89
|
+
wrapperClassName?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Обработчик скролла контента
|
|
92
|
+
*/
|
|
93
|
+
scrollHandler?: "wrapper" | "content" | MutableRefObject<HTMLDivElement | null>;
|
|
94
|
+
/**
|
|
95
|
+
* Пропсы для анимации (CSSTransition)
|
|
96
|
+
*/
|
|
97
|
+
transitionProps?: Partial<TransitionProps>;
|
|
98
|
+
/**
|
|
99
|
+
* Рендерить ли в контейнер через портал.
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
usePortal?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Обработчик события нажатия на бэкдроп
|
|
105
|
+
*/
|
|
106
|
+
onBackdropClick?: (event: MouseEvent) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Обработчик события нажатия на Escape
|
|
109
|
+
*
|
|
110
|
+
* Если `disableEscapeKeyDown` - false и модальное окно в фокусе
|
|
111
|
+
*/
|
|
112
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Обработчик закрытия
|
|
115
|
+
*/
|
|
116
|
+
onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
117
|
+
/**
|
|
118
|
+
* Обработчик события onEntered компонента Transition
|
|
119
|
+
*/
|
|
120
|
+
onMount?: () => void;
|
|
121
|
+
/**
|
|
122
|
+
* Обработчик события onExited компонента Transition
|
|
123
|
+
*/
|
|
124
|
+
onUnmount?: () => void;
|
|
125
|
+
/**
|
|
126
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
127
|
+
*/
|
|
128
|
+
dataTestId?: string;
|
|
129
|
+
/**
|
|
130
|
+
* z-index компонента
|
|
131
|
+
*/
|
|
132
|
+
zIndex?: number;
|
|
133
|
+
/**
|
|
134
|
+
* Реф, который должен быть установлен компонентной области
|
|
135
|
+
*/
|
|
136
|
+
componentRef?: MutableRefObject<HTMLDivElement | null>;
|
|
137
|
+
};
|
|
138
|
+
type BaseModalContext = {
|
|
139
|
+
parentRef: React.RefObject<HTMLDivElement>;
|
|
140
|
+
componentRef: React.RefObject<HTMLDivElement>;
|
|
141
|
+
hasFooter?: boolean;
|
|
142
|
+
hasHeader?: boolean;
|
|
143
|
+
hasScroll?: boolean;
|
|
144
|
+
headerHighlighted?: boolean;
|
|
145
|
+
footerHighlighted?: boolean;
|
|
146
|
+
headerOffset?: number;
|
|
147
|
+
setHeaderOffset: (offset: number) => void;
|
|
148
|
+
contentRef: Ref<HTMLElement>;
|
|
149
|
+
setHasHeader: (exists: boolean) => void;
|
|
150
|
+
setHasFooter: (exists: boolean) => void;
|
|
151
|
+
onClose: Required<BaseModalProps>["onClose"];
|
|
152
|
+
};
|
|
153
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
154
|
+
declare const BaseModalContext: React.Context<BaseModalContext>;
|
|
155
|
+
declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
156
|
+
declare function isScrolledToTop(target: HTMLElement): boolean;
|
|
157
|
+
declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
158
|
+
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
159
|
+
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
160
|
+
declare const handleContainer: (container?: HTMLElement) => void;
|
|
161
|
+
type SavedStyle = {
|
|
162
|
+
value: string;
|
|
163
|
+
key: string;
|
|
164
|
+
el: HTMLElement;
|
|
165
|
+
};
|
|
166
|
+
type RestoreStyle = {
|
|
167
|
+
container: HTMLElement;
|
|
168
|
+
modals: number;
|
|
169
|
+
styles: SavedStyle[];
|
|
170
|
+
};
|
|
171
|
+
declare class ModalStore {
|
|
172
|
+
private readonly restoreStyles;
|
|
173
|
+
constructor();
|
|
174
|
+
getRestoreStyles: () => RestoreStyle[];
|
|
175
|
+
}
|
|
176
|
+
declare const getModalStore: () => ModalStore;
|
|
177
|
+
declare class GlobalStore {
|
|
178
|
+
private readonly modalStore;
|
|
179
|
+
constructor();
|
|
180
|
+
getModalStore: () => ModalStore;
|
|
181
|
+
}
|
|
182
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, getModalStore, GlobalStore };
|
|
183
|
+
export type { SavedStyle };
|
package/cssm/index-ebda875c.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
2
3
|
import React from "react";
|
|
3
4
|
import { HTMLAttributes, ReactNode } from "react";
|
|
4
5
|
type StyleColors = {
|
|
@@ -95,7 +96,9 @@ type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
95
96
|
*/
|
|
96
97
|
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
97
98
|
/**
|
|
98
|
-
* Идентификатор для систем автоматизированного
|
|
99
|
+
* Идентификатор для систем автоматизированного тестирования.
|
|
100
|
+
* Для слота слева используется модификатор -left-addons, слота справа -right-addons,
|
|
101
|
+
* ошибки -error-message, текста подсказки -hint
|
|
99
102
|
*/
|
|
100
103
|
dataTestId?: string;
|
|
101
104
|
/**
|
package/cssm/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { InputMobileProps } from "@alfalab/core-components-input/mobile";
|
|
|
5
5
|
import { InputAutocompleteProps } from "@alfalab/core-components-input-autocomplete";
|
|
6
6
|
import { InputAutocompleteDesktopProps } from "@alfalab/core-components-input-autocomplete/desktop";
|
|
7
7
|
import { InputAutocompleteMobileProps } from "@alfalab/core-components-input-autocomplete/mobile";
|
|
8
|
-
import { OptionShape } from "./typings-
|
|
8
|
+
import { OptionShape } from "./typings-c29389e5";
|
|
9
9
|
import { SharedCountrySelectProps } from "./components/country-select/index";
|
|
10
10
|
type Country = {
|
|
11
11
|
name: string;
|