@alfalab/core-components-international-phone-input 1.2.7 → 1.3.0
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-553146b2.d.ts → Component-202ae1dc.d.ts} +1 -1
- package/Component-bdb4c6b9.d.ts +1 -1
- package/Component.responsive-8566963f.d.ts +2 -2
- package/{esm/ResponsiveContext-08e5596c.d.ts → ResponsiveContext-8a2a8ad1.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/{esm/Component-553146b2.d.ts → cssm/Component-202ae1dc.d.ts} +1 -1
- package/cssm/Component-bdb4c6b9.d.ts +1 -1
- package/cssm/Component.responsive-8566963f.d.ts +2 -2
- package/{ResponsiveContext-08e5596c.d.ts → cssm/ResponsiveContext-8a2a8ad1.d.ts} +1 -1
- package/cssm/{index-553146b2.d.ts → index-202ae1dc.d.ts} +1 -1
- package/cssm/index-8566963f.d.ts +2 -2
- package/{modern/typings-553146b2.d.ts → cssm/typings-202ae1dc.d.ts} +14 -0
- package/{esm/typings-08e5596c.d.ts → cssm/typings-8a2a8ad1.d.ts} +1 -0
- package/cssm/typings-c29389e5.d.ts +24 -10
- package/{cssm/Component-553146b2.d.ts → esm/Component-202ae1dc.d.ts} +1 -1
- package/esm/Component-bdb4c6b9.d.ts +1 -1
- package/esm/Component.responsive-8566963f.d.ts +2 -2
- package/{modern/ResponsiveContext-08e5596c.d.ts → esm/ResponsiveContext-8a2a8ad1.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-553146b2.d.ts → index-202ae1dc.d.ts} +1 -1
- package/esm/index-8566963f.d.ts +2 -2
- package/{cssm/typings-553146b2.d.ts → esm/typings-202ae1dc.d.ts} +14 -0
- package/{cssm/typings-08e5596c.d.ts → esm/typings-8a2a8ad1.d.ts} +1 -0
- package/esm/typings-c29389e5.d.ts +24 -10
- package/{index-553146b2.d.ts → index-202ae1dc.d.ts} +1 -1
- package/index-8566963f.d.ts +2 -2
- package/modern/{Component-553146b2.d.ts → Component-202ae1dc.d.ts} +1 -1
- package/modern/Component-bdb4c6b9.d.ts +1 -1
- package/modern/Component.responsive-8566963f.d.ts +2 -2
- package/{cssm/ResponsiveContext-08e5596c.d.ts → modern/ResponsiveContext-8a2a8ad1.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-553146b2.d.ts → index-202ae1dc.d.ts} +1 -1
- package/modern/index-8566963f.d.ts +2 -2
- package/{typings-553146b2.d.ts → modern/typings-202ae1dc.d.ts} +14 -0
- package/modern/{typings-08e5596c.d.ts → typings-8a2a8ad1.d.ts} +1 -0
- package/modern/typings-c29389e5.d.ts +24 -10
- package/package.json +6 -6
- package/{esm/typings-553146b2.d.ts → typings-202ae1dc.d.ts} +14 -0
- package/{typings-08e5596c.d.ts → typings-8a2a8ad1.d.ts} +1 -0
- package/typings-c29389e5.d.ts +24 -10
|
@@ -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-202ae1dc";
|
|
5
5
|
type SpinnerProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Управление видимостью компонента
|
package/Component-bdb4c6b9.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from "./typings-
|
|
3
|
+
import { View } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
5
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
6
|
fullscreen?: boolean | undefined;
|
|
@@ -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-202ae1dc";
|
|
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-202ae1dc";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TResponsiveModalContext } from "./typings-
|
|
3
|
+
import { TResponsiveModalContext } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
|
|
5
5
|
export { ResponsiveContext };
|
|
@@ -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_12uak","addons":"international-phone-input__addons_12uak"};
|
|
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_37mpg","option":"international-phone-input__option_37mpg","flag":"international-phone-input__flag_37mpg","countryName":"international-phone-input__countryName_37mpg","dialCode":"international-phone-input__dialCode_37mpg","flagIconWrapper":"international-phone-input__flagIconWrapper_37mpg","emptyCountryIcon":"international-phone-input__emptyCountryIcon_37mpg"};
|
|
22
22
|
require('./index.css')
|
|
23
23
|
|
|
24
24
|
var CountrySelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1djpb */
|
|
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_37mpg {
|
|
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_37mpg {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: flex-start;
|
|
29
29
|
padding: var(--gap-s);
|
|
30
|
-
} .international-phone-
|
|
30
|
+
} .international-phone-input__flag_37mpg {
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .international-phone-
|
|
33
|
+
} .international-phone-input__countryName_37mpg {
|
|
34
34
|
margin-right: var(--gap-xs);
|
|
35
|
-
} .international-phone-
|
|
35
|
+
} .international-phone-input__dialCode_37mpg {
|
|
36
36
|
color: var(--color-light-text-secondary);
|
|
37
|
-
} .international-phone-
|
|
37
|
+
} .international-phone-input__flagIconWrapper_37mpg {
|
|
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_37mpg {
|
|
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_pgx09","flagPlaceholder":"international-phone-input__flagPlaceholder_pgx09"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1o2cm */
|
|
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_pgx09 {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .international-phone-
|
|
23
|
+
} .international-phone-input__flagPlaceholder_pgx09 {
|
|
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_a145e","flagIconContainer":"international-phone-input__flagIconContainer_a145e","emptyCountryIcon":"international-phone-input__emptyCountryIcon_a145e","disabled":"international-phone-input__disabled_a145e","inner":"international-phone-input__inner_a145e","l":"international-phone-input__l_a145e","xl":"international-phone-input__xl_a145e","focusVisible":"international-phone-input__focusVisible_a145e"};
|
|
21
21
|
require('./index.css')
|
|
22
22
|
|
|
23
23
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1llj1 */
|
|
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_a145e {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .international-phone-
|
|
29
|
+
} .international-phone-input__flagIconContainer_a145e {
|
|
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_a145e {
|
|
37
37
|
color: var(--color-light-neutral-translucent-700);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__disabled_a145e {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .international-phone-
|
|
40
|
+
} .international-phone-input__inner_a145e {
|
|
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_a145e .international-phone-input__inner_a145e,
|
|
48
|
+
.international-phone-input__xl_a145e .international-phone-input__inner_a145e {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .international-phone-
|
|
50
|
+
} .international-phone-input__focusVisible_a145e {
|
|
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-202ae1dc";
|
|
5
5
|
type SpinnerProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Управление видимостью компонента
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from "./typings-
|
|
3
|
+
import { View } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
5
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
6
|
fullscreen?: boolean | undefined;
|
|
@@ -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-202ae1dc";
|
|
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-202ae1dc";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TResponsiveModalContext } from "./typings-
|
|
3
|
+
import { TResponsiveModalContext } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
|
|
5
5
|
export { ResponsiveContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Button } from "./Component.responsive-8566963f";
|
|
2
|
-
export type { ButtonProps } from "./typings-
|
|
2
|
+
export type { ButtonProps } from "./typings-202ae1dc";
|
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-202ae1dc";
|
|
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-202ae1dc";
|
|
@@ -13,6 +13,20 @@ type ComponentProps = {
|
|
|
13
13
|
* @default secondary
|
|
14
14
|
*/
|
|
15
15
|
view?: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'filled' | 'transparent' | 'link' | 'ghost';
|
|
16
|
+
/**
|
|
17
|
+
* Форма кнопки
|
|
18
|
+
* @default rectangular
|
|
19
|
+
*/
|
|
20
|
+
shape?: 'rounded' | 'rectangular';
|
|
21
|
+
/**
|
|
22
|
+
* Ширина текстового контента
|
|
23
|
+
* @default hug
|
|
24
|
+
*/
|
|
25
|
+
textResizing?: 'fill' | 'hug';
|
|
26
|
+
/**
|
|
27
|
+
* Подпись под лейблом (видна только в размерах >= m)
|
|
28
|
+
*/
|
|
29
|
+
hint?: ReactNode;
|
|
16
30
|
/**
|
|
17
31
|
* Слот слева
|
|
18
32
|
*/
|
|
@@ -10,9 +10,9 @@ import { CSSTransitionProps } from "react-transition-group/CSSTransition";
|
|
|
10
10
|
import { BasePlacement, VariationPlacement } from "@popperjs/core";
|
|
11
11
|
import { SwipeableHandlers } from "react-swipeable";
|
|
12
12
|
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
13
|
-
import { ButtonProps } from "./index-
|
|
14
|
-
import { ContentProps } from "./typings-
|
|
15
|
-
import { ModalResponsiveProps as ModalProps } from "./typings-
|
|
13
|
+
import { ButtonProps } from "./index-202ae1dc";
|
|
14
|
+
import { ContentProps } from "./typings-8a2a8ad1";
|
|
15
|
+
import { ModalResponsiveProps as ModalProps } from "./typings-8a2a8ad1";
|
|
16
16
|
import { InputProps } from "@alfalab/core-components-input";
|
|
17
17
|
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
18
18
|
/**
|
|
@@ -521,7 +521,7 @@ declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-b
|
|
|
521
521
|
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
522
522
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
523
523
|
Header: React.FC<HeaderProps>;
|
|
524
|
-
Content: React.FC<import("./typings-
|
|
524
|
+
Content: React.FC<import("./typings-8a2a8ad1").ContentProps>;
|
|
525
525
|
Footer: React.FC<FooterProps>;
|
|
526
526
|
Controls: React.FC<ControlsProps>;
|
|
527
527
|
};
|
|
@@ -547,7 +547,7 @@ type PopoverProps = {
|
|
|
547
547
|
position?: Position;
|
|
548
548
|
/**
|
|
549
549
|
* Запрещает поповеру менять свою позицию.
|
|
550
|
-
* Например, если места снизу
|
|
550
|
+
* Например, если места снизу недостаточно, то он все равно будет показан снизу
|
|
551
551
|
*/
|
|
552
552
|
preventFlip?: boolean;
|
|
553
553
|
/**
|
|
@@ -811,7 +811,20 @@ declare const typographyPresets: {
|
|
|
811
811
|
};
|
|
812
812
|
};
|
|
813
813
|
};
|
|
814
|
-
declare const TitleResponsive:
|
|
814
|
+
declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
815
|
+
tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
816
|
+
view?: "small" | "medium" | "large" | "xlarge" | "xsmall" | undefined;
|
|
817
|
+
color?: "link" | "accent" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "attention" | "positive" | "negative" | "static-accent" | "disabled" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | undefined;
|
|
818
|
+
weight?: "bold" | "medium" | "regular" | undefined;
|
|
819
|
+
font?: "styrene" | "system" | undefined;
|
|
820
|
+
defaultMargins?: boolean | undefined;
|
|
821
|
+
className?: string | undefined;
|
|
822
|
+
dataTestId?: string | undefined;
|
|
823
|
+
children?: React.ReactNode;
|
|
824
|
+
rowLimit?: 1 | 2 | 3 | undefined;
|
|
825
|
+
showSkeleton?: boolean | undefined;
|
|
826
|
+
skeletonProps?: import("./types-1b036d4b").TextSkeletonProps | undefined;
|
|
827
|
+
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
|
815
828
|
type IconButtonProps = {
|
|
816
829
|
/**
|
|
817
830
|
* Компонент иконки
|
|
@@ -825,8 +838,9 @@ type IconButtonProps = {
|
|
|
825
838
|
view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
|
|
826
839
|
/**
|
|
827
840
|
* Размер компонента
|
|
841
|
+
* @description xxs, xs, s deprecated, используйте вместо них 24, 32, 40 соответственно
|
|
828
842
|
*/
|
|
829
|
-
size?: "xxs" | "xs" | "s";
|
|
843
|
+
size?: "xxs" | "xs" | "s" | 24 | 32 | 40 | 48 | 56;
|
|
830
844
|
/**
|
|
831
845
|
* Дополнительный класс
|
|
832
846
|
*/
|
|
@@ -850,7 +864,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
850
864
|
className?: string;
|
|
851
865
|
}> | ReactElement;
|
|
852
866
|
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
853
|
-
size?: "s" | "xs" | "xxs" | undefined;
|
|
867
|
+
size?: "s" | "xs" | 24 | 32 | 40 | 48 | "xxs" | 56 | undefined;
|
|
854
868
|
className?: string | undefined;
|
|
855
869
|
alignIcon?: "center" | "right" | "left" | undefined;
|
|
856
870
|
dataTestId?: string | undefined;
|
|
@@ -1550,8 +1564,8 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1550
1564
|
};
|
|
1551
1565
|
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, Typography, typographyPresets, TitleResponsive, IconButtonProps, IconButton, Content, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
|
|
1552
1566
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, TitleProps, TextProps, Color };
|
|
1553
|
-
export { ModalResponsiveProps as ModalProps } from "./typings-
|
|
1554
|
-
export type { ContentProps as ModalContentProps } from "./typings-
|
|
1567
|
+
export { ModalResponsiveProps as ModalProps } from "./typings-8a2a8ad1";
|
|
1568
|
+
export type { ContentProps as ModalContentProps } from "./typings-8a2a8ad1";
|
|
1555
1569
|
export * from "./useSkeleton-1b036d4b";
|
|
1556
1570
|
export * from "./Component.desktop-ebda875c";
|
|
1557
1571
|
export * from "./Component.mobile-ebda875c";
|
|
@@ -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-202ae1dc";
|
|
5
5
|
type SpinnerProps = {
|
|
6
6
|
/**
|
|
7
7
|
* Управление видимостью компонента
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from "./typings-
|
|
3
|
+
import { View } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
5
|
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
6
|
fullscreen?: boolean | undefined;
|
|
@@ -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-202ae1dc";
|
|
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-202ae1dc";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TResponsiveModalContext } from "./typings-
|
|
3
|
+
import { TResponsiveModalContext } from "./typings-8a2a8ad1";
|
|
4
4
|
declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
|
|
5
5
|
export { ResponsiveContext };
|
|
@@ -16,7 +16,7 @@ import '../flag-icon/flagSprite.js';
|
|
|
16
16
|
import '../select-field/component.js';
|
|
17
17
|
import '@alfalab/hooks';
|
|
18
18
|
|
|
19
|
-
var styles = {"component":"international-phone-
|
|
19
|
+
var styles = {"component":"international-phone-input__component_12uak","addons":"international-phone-input__addons_12uak"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var BaseInternationalPhoneInput = forwardRef(function (_a, ref) {
|
|
@@ -10,7 +10,7 @@ import '../flag-icon/flagSprite.js';
|
|
|
10
10
|
import 'react-merge-refs';
|
|
11
11
|
import '@alfalab/hooks';
|
|
12
12
|
|
|
13
|
-
var styles = {"component":"international-phone-
|
|
13
|
+
var styles = {"component":"international-phone-input__component_37mpg","option":"international-phone-input__option_37mpg","flag":"international-phone-input__flag_37mpg","countryName":"international-phone-input__countryName_37mpg","dialCode":"international-phone-input__dialCode_37mpg","flagIconWrapper":"international-phone-input__flagIconWrapper_37mpg","emptyCountryIcon":"international-phone-input__emptyCountryIcon_37mpg"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var CountrySelect = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1djpb */
|
|
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_37mpg {
|
|
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_37mpg {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: flex-start;
|
|
29
29
|
padding: var(--gap-s);
|
|
30
|
-
} .international-phone-
|
|
30
|
+
} .international-phone-input__flag_37mpg {
|
|
31
31
|
flex-shrink: 0;
|
|
32
32
|
margin-right: var(--gap-xs);
|
|
33
|
-
} .international-phone-
|
|
33
|
+
} .international-phone-input__countryName_37mpg {
|
|
34
34
|
margin-right: var(--gap-xs);
|
|
35
|
-
} .international-phone-
|
|
35
|
+
} .international-phone-input__dialCode_37mpg {
|
|
36
36
|
color: var(--color-light-text-secondary);
|
|
37
|
-
} .international-phone-
|
|
37
|
+
} .international-phone-input__flagIconWrapper_37mpg {
|
|
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_37mpg {
|
|
45
45
|
color: var(--color-light-neutral-translucent-700);
|
|
46
46
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { flagSprite } from './flagSprite.js';
|
|
4
4
|
|
|
5
|
-
var styles = {"flagIcon":"international-phone-
|
|
5
|
+
var styles = {"flagIcon":"international-phone-input__flagIcon_pgx09","flagPlaceholder":"international-phone-input__flagPlaceholder_pgx09"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1o2cm */
|
|
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_pgx09 {
|
|
21
21
|
max-width: 24px;
|
|
22
22
|
max-height: 24px;
|
|
23
|
-
} .international-phone-
|
|
23
|
+
} .international-phone-input__flagPlaceholder_pgx09 {
|
|
24
24
|
width: 24px;
|
|
25
25
|
height: 16px;
|
|
26
26
|
max-height: 16px;
|
|
@@ -7,7 +7,7 @@ import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
|
7
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
8
8
|
import '../flag-icon/flagSprite.js';
|
|
9
9
|
|
|
10
|
-
var styles = {"component":"international-phone-
|
|
10
|
+
var styles = {"component":"international-phone-input__component_a145e","flagIconContainer":"international-phone-input__flagIconContainer_a145e","emptyCountryIcon":"international-phone-input__emptyCountryIcon_a145e","disabled":"international-phone-input__disabled_a145e","inner":"international-phone-input__inner_a145e","l":"international-phone-input__l_a145e","xl":"international-phone-input__xl_a145e","focusVisible":"international-phone-input__focusVisible_a145e"};
|
|
11
11
|
require('./index.css')
|
|
12
12
|
|
|
13
13
|
var EMPTY_COUNTRY_SELECT_FIELD = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1llj1 */
|
|
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_a145e {
|
|
25
25
|
height: 100%;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
outline: none;
|
|
28
28
|
position: relative;
|
|
29
|
-
} .international-phone-
|
|
29
|
+
} .international-phone-input__flagIconContainer_a145e {
|
|
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_a145e {
|
|
37
37
|
color: var(--color-light-neutral-translucent-700);
|
|
38
|
-
} .international-phone-
|
|
38
|
+
} .international-phone-input__disabled_a145e {
|
|
39
39
|
cursor: var(--disabled-cursor);
|
|
40
|
-
} .international-phone-
|
|
40
|
+
} .international-phone-input__inner_a145e {
|
|
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_a145e .international-phone-input__inner_a145e,
|
|
48
|
+
.international-phone-input__xl_a145e .international-phone-input__inner_a145e {
|
|
49
49
|
padding-left: var(--gap-m);
|
|
50
|
-
} .international-phone-
|
|
50
|
+
} .international-phone-input__focusVisible_a145e {
|
|
51
51
|
outline: 2px solid var(--focus-color);
|
|
52
52
|
outline-offset: 2px;
|
|
53
53
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Button } from "./Component.responsive-8566963f";
|
|
2
|
-
export type { ButtonProps } from "./typings-
|
|
2
|
+
export type { ButtonProps } from "./typings-202ae1dc";
|
package/esm/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-202ae1dc";
|
|
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-202ae1dc";
|
|
@@ -13,6 +13,20 @@ type ComponentProps = {
|
|
|
13
13
|
* @default secondary
|
|
14
14
|
*/
|
|
15
15
|
view?: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'filled' | 'transparent' | 'link' | 'ghost';
|
|
16
|
+
/**
|
|
17
|
+
* Форма кнопки
|
|
18
|
+
* @default rectangular
|
|
19
|
+
*/
|
|
20
|
+
shape?: 'rounded' | 'rectangular';
|
|
21
|
+
/**
|
|
22
|
+
* Ширина текстового контента
|
|
23
|
+
* @default hug
|
|
24
|
+
*/
|
|
25
|
+
textResizing?: 'fill' | 'hug';
|
|
26
|
+
/**
|
|
27
|
+
* Подпись под лейблом (видна только в размерах >= m)
|
|
28
|
+
*/
|
|
29
|
+
hint?: ReactNode;
|
|
16
30
|
/**
|
|
17
31
|
* Слот слева
|
|
18
32
|
*/
|