@alfalab/core-components-international-phone-input 1.3.3 → 2.0.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-c241b310.d.ts → Component-61e2321e.d.ts} +12 -3
- package/{cssm/Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
- package/Component-bdb4c6b9.d.ts +2 -2
- package/Component.responsive-8566963f.d.ts +2 -2
- package/Component.responsive.d.ts +6 -10
- package/{esm/ResponsiveContext-8a2a8ad1.d.ts → ResponsiveContext-88b743b5.d.ts} +1 -1
- package/components/base-international-phone-input/Component.d.ts +2 -4
- package/components/base-international-phone-input/Component.js +16 -21
- package/components/base-international-phone-input/index.css +2 -2
- package/components/country-select/Component.js +1 -1
- package/components/country-select/index.css +9 -9
- package/components/flag-icon/component.js +1 -1
- package/components/flag-icon/index.css +4 -4
- package/components/select-field/component.d.ts +4 -1
- package/components/select-field/component.js +12 -2
- package/components/select-field/index.css +10 -10
- package/consts-6c9aad46.d.ts +12 -0
- package/consts-ef43bf1b.d.ts +12 -0
- package/cssm/{Component-c241b310.d.ts → Component-61e2321e.d.ts} +12 -3
- package/{Component-c29389e5.d.ts → cssm/Component-70284312.d.ts} +1 -1
- package/cssm/Component-bdb4c6b9.d.ts +2 -2
- package/cssm/Component.responsive-8566963f.d.ts +2 -2
- package/cssm/Component.responsive.d.ts +6 -10
- package/{modern/ResponsiveContext-8a2a8ad1.d.ts → cssm/ResponsiveContext-88b743b5.d.ts} +1 -1
- package/cssm/components/base-international-phone-input/Component.d.ts +2 -4
- package/cssm/components/base-international-phone-input/Component.js +15 -20
- package/cssm/components/country-select/index.module.css +1 -1
- package/cssm/components/flag-icon/index.module.css +1 -1
- package/cssm/components/select-field/component.d.ts +4 -1
- package/cssm/components/select-field/component.js +11 -1
- package/cssm/components/select-field/index.module.css +3 -3
- package/cssm/consts-6c9aad46.d.ts +12 -0
- package/cssm/consts-ef43bf1b.d.ts +12 -0
- package/cssm/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
- package/cssm/index-8566963f.d.ts +2 -2
- package/cssm/index-ebda875c.d.ts +3 -2
- package/cssm/types.d.ts +3 -5
- package/{modern/typings-c241b310.d.ts → cssm/typings-61e2321e.d.ts} +3 -2
- package/cssm/{typings-c29389e5.d.ts → typings-70284312.d.ts} +19 -14
- package/{esm/typings-8a2a8ad1.d.ts → cssm/typings-88b743b5.d.ts} +3 -2
- package/cssm/utils-89376c31.d.ts +1 -1
- package/{modern/Component-c241b310.d.ts → esm/Component-61e2321e.d.ts} +12 -3
- package/esm/{Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
- package/esm/Component-bdb4c6b9.d.ts +2 -2
- package/esm/Component.responsive-8566963f.d.ts +2 -2
- package/esm/Component.responsive.d.ts +6 -10
- package/{ResponsiveContext-8a2a8ad1.d.ts → esm/ResponsiveContext-88b743b5.d.ts} +1 -1
- package/esm/components/base-international-phone-input/Component.d.ts +2 -4
- package/esm/components/base-international-phone-input/Component.js +16 -21
- 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 +9 -9
- package/esm/components/flag-icon/component.js +1 -1
- package/esm/components/flag-icon/index.css +4 -4
- package/esm/components/select-field/component.d.ts +4 -1
- package/esm/components/select-field/component.js +12 -2
- package/esm/components/select-field/index.css +10 -10
- package/esm/consts-6c9aad46.d.ts +12 -0
- package/esm/consts-ef43bf1b.d.ts +12 -0
- package/esm/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
- package/esm/index-8566963f.d.ts +2 -2
- package/esm/index-ebda875c.d.ts +3 -2
- package/esm/types.d.ts +3 -5
- package/{cssm/typings-c241b310.d.ts → esm/typings-61e2321e.d.ts} +3 -2
- package/esm/{typings-c29389e5.d.ts → typings-70284312.d.ts} +19 -14
- package/{modern/typings-8a2a8ad1.d.ts → esm/typings-88b743b5.d.ts} +3 -2
- package/esm/utils-89376c31.d.ts +1 -1
- package/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
- package/index-8566963f.d.ts +2 -2
- package/index-ebda875c.d.ts +3 -2
- package/{esm/Component-c241b310.d.ts → modern/Component-61e2321e.d.ts} +12 -3
- package/modern/{Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
- package/modern/Component-bdb4c6b9.d.ts +2 -2
- package/modern/Component.responsive-8566963f.d.ts +2 -2
- package/modern/Component.responsive.d.ts +6 -10
- package/{cssm/ResponsiveContext-8a2a8ad1.d.ts → modern/ResponsiveContext-88b743b5.d.ts} +1 -1
- package/modern/components/base-international-phone-input/Component.d.ts +2 -4
- package/modern/components/base-international-phone-input/Component.js +15 -18
- 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 +9 -9
- package/modern/components/flag-icon/component.js +1 -1
- package/modern/components/flag-icon/index.css +4 -4
- package/modern/components/select-field/component.d.ts +4 -1
- package/modern/components/select-field/component.js +12 -2
- package/modern/components/select-field/index.css +10 -10
- package/modern/consts-6c9aad46.d.ts +12 -0
- package/modern/consts-ef43bf1b.d.ts +12 -0
- package/modern/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
- package/modern/index-8566963f.d.ts +2 -2
- package/modern/index-ebda875c.d.ts +3 -2
- package/modern/types.d.ts +3 -5
- package/{typings-c241b310.d.ts → modern/typings-61e2321e.d.ts} +3 -2
- package/modern/{typings-c29389e5.d.ts → typings-70284312.d.ts} +19 -14
- package/{cssm/typings-8a2a8ad1.d.ts → modern/typings-88b743b5.d.ts} +3 -2
- package/modern/utils-89376c31.d.ts +1 -1
- package/package.json +4 -4
- package/src/components/base-international-phone-input/Component.tsx +24 -17
- package/src/components/select-field/component.tsx +17 -2
- package/src/components/select-field/index.module.css +2 -2
- package/src/types.ts +2 -2
- package/types.d.ts +3 -5
- package/{esm/typings-c241b310.d.ts → typings-61e2321e.d.ts} +3 -2
- package/{typings-c29389e5.d.ts → typings-70284312.d.ts} +19 -14
- package/{typings-8a2a8ad1.d.ts → typings-88b743b5.d.ts} +3 -2
- package/utils-89376c31.d.ts +1 -1
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/esm/consts-f777ba1a.d.ts +0 -2
- package/modern/consts-f777ba1a.d.ts +0 -2
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, {
|
|
2
|
+
ChangeEvent,
|
|
3
|
+
forwardRef,
|
|
4
|
+
MouseEvent,
|
|
5
|
+
useEffect,
|
|
6
|
+
useMemo,
|
|
7
|
+
useRef,
|
|
8
|
+
useState,
|
|
9
|
+
} from 'react';
|
|
2
10
|
import mergeRefs from 'react-merge-refs';
|
|
3
11
|
import { maskitoTransform } from '@maskito/core';
|
|
4
12
|
import { useMaskito } from '@maskito/react';
|
|
@@ -37,7 +45,7 @@ export const BaseInternationalPhoneInput = forwardRef<
|
|
|
37
45
|
defaultIso2,
|
|
38
46
|
disabled,
|
|
39
47
|
options,
|
|
40
|
-
size =
|
|
48
|
+
size = 56,
|
|
41
49
|
Input,
|
|
42
50
|
InputAutocomplete,
|
|
43
51
|
SelectComponent,
|
|
@@ -69,17 +77,17 @@ export const BaseInternationalPhoneInput = forwardRef<
|
|
|
69
77
|
|
|
70
78
|
const maskRef = useMaskito({ options: maskOptions });
|
|
71
79
|
|
|
72
|
-
const changeNumber = (
|
|
73
|
-
onChange?.(
|
|
80
|
+
const changeNumber = (phone: string) => {
|
|
81
|
+
onChange?.(phone);
|
|
74
82
|
};
|
|
75
83
|
|
|
76
|
-
const updatePhoneData = (phone: string
|
|
84
|
+
const updatePhoneData = (phone: string) => {
|
|
77
85
|
const { nextCountry, nextPhone } = getPhoneData(phone, countriesData, defaultIso2);
|
|
78
86
|
|
|
79
87
|
if (nextCountry !== country) {
|
|
80
88
|
handleCountryChange?.(nextCountry);
|
|
81
89
|
}
|
|
82
|
-
changeNumber(
|
|
90
|
+
changeNumber(nextPhone);
|
|
83
91
|
};
|
|
84
92
|
|
|
85
93
|
const handleSelectCountry = ({ selected }: BaseSelectChangePayload) => {
|
|
@@ -88,7 +96,7 @@ export const BaseInternationalPhoneInput = forwardRef<
|
|
|
88
96
|
handleCountryChange?.(nextCountry);
|
|
89
97
|
|
|
90
98
|
if (nextCountry) {
|
|
91
|
-
changeNumber(
|
|
99
|
+
changeNumber(`+${nextCountry.dialCode}`);
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
requestAnimationFrame(() => inputRef.current?.focus());
|
|
@@ -100,20 +108,19 @@ export const BaseInternationalPhoneInput = forwardRef<
|
|
|
100
108
|
typeof payload === 'string' ? payload : payload.selected?.key || '',
|
|
101
109
|
maskOptions,
|
|
102
110
|
),
|
|
103
|
-
null,
|
|
104
111
|
);
|
|
105
112
|
};
|
|
106
113
|
|
|
107
114
|
const handleInput = (e: ChangeEvent<HTMLInputElement>) => {
|
|
108
|
-
updatePhoneData(e.target.value
|
|
115
|
+
updatePhoneData(e.target.value);
|
|
109
116
|
};
|
|
110
117
|
|
|
111
|
-
const handleClear = () => {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
118
|
+
const handleClear = (event: MouseEvent<HTMLButtonElement>) => {
|
|
119
|
+
restProps.inputProps?.onClear?.(event);
|
|
120
|
+
|
|
121
|
+
const countryCode = country?.countryCode || '';
|
|
122
|
+
|
|
123
|
+
changeNumber(clearableCountryCode ? '' : `+${countryCode}`);
|
|
117
124
|
};
|
|
118
125
|
|
|
119
126
|
useEffect(() => {
|
|
@@ -121,7 +128,7 @@ export const BaseInternationalPhoneInput = forwardRef<
|
|
|
121
128
|
const newValue = maskitoTransform(value, maskOptions);
|
|
122
129
|
|
|
123
130
|
if (value !== newValue) {
|
|
124
|
-
updatePhoneData(newValue
|
|
131
|
+
updatePhoneData(newValue);
|
|
125
132
|
}
|
|
126
133
|
}
|
|
127
134
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -161,7 +168,7 @@ export const BaseInternationalPhoneInput = forwardRef<
|
|
|
161
168
|
options={filteredOptions}
|
|
162
169
|
value={value}
|
|
163
170
|
onChange={handleOptionSelect}
|
|
164
|
-
onInput={(
|
|
171
|
+
onInput={(phone) => updatePhoneData(phone)}
|
|
165
172
|
inputProps={{
|
|
166
173
|
...inputProps,
|
|
167
174
|
onClear: handleClear,
|
|
@@ -15,7 +15,22 @@ export const EMPTY_COUNTRY_SELECT_FIELD = {
|
|
|
15
15
|
key: 'EMPTY_COUNTRY_SELECT_KEY',
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
type SelectFieldProps = FieldProps & {
|
|
19
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const SIZE_TO_CLASSNAME_MAP = {
|
|
23
|
+
s: 'size-48',
|
|
24
|
+
m: 'size-56',
|
|
25
|
+
l: 'size-64',
|
|
26
|
+
xl: 'size-72',
|
|
27
|
+
48: 'size-48',
|
|
28
|
+
56: 'size-56',
|
|
29
|
+
64: 'size-64',
|
|
30
|
+
72: 'size-72',
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const SelectField: FC<SelectFieldProps> = ({
|
|
19
34
|
selected,
|
|
20
35
|
Arrow,
|
|
21
36
|
size,
|
|
@@ -31,7 +46,7 @@ export const SelectField: FC<FieldProps> = ({
|
|
|
31
46
|
return (
|
|
32
47
|
<div
|
|
33
48
|
ref={ref}
|
|
34
|
-
className={cn(styles.component, size && styles[size], {
|
|
49
|
+
className={cn(styles.component, size && styles[SIZE_TO_CLASSNAME_MAP[size]], {
|
|
35
50
|
[styles.focusVisible]: focusVisible,
|
|
36
51
|
[styles.disabled]: disabled,
|
|
37
52
|
})}
|
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ElementType, FC } from 'react';
|
|
2
2
|
import { FocusEvent } from 'react';
|
|
3
3
|
|
|
4
4
|
import type { InputProps } from '@alfalab/core-components-input';
|
|
@@ -71,7 +71,7 @@ type CommonPhoneInputProps = {
|
|
|
71
71
|
/**
|
|
72
72
|
* Обработчик изменения номера
|
|
73
73
|
*/
|
|
74
|
-
onChange?: (
|
|
74
|
+
onChange?: (phone: string) => void;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Обработчик блюра поля
|
package/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, FC, FocusEvent } from 'react';
|
|
2
2
|
import { InputProps } from "@alfalab/core-components-input";
|
|
3
3
|
import { InputDesktopProps } from "@alfalab/core-components-input/desktop";
|
|
4
4
|
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-70284312";
|
|
9
9
|
import { SharedCountrySelectProps } from "./components/country-select/index";
|
|
10
10
|
type Country = {
|
|
11
11
|
name: string;
|
|
@@ -57,9 +57,7 @@ type CommonPhoneInputProps = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Обработчик изменения номера
|
|
59
59
|
*/
|
|
60
|
-
onChange?: (
|
|
61
|
-
value: string;
|
|
62
|
-
}) => void;
|
|
60
|
+
onChange?: (phone: string) => void;
|
|
63
61
|
/**
|
|
64
62
|
* Обработчик блюра поля
|
|
65
63
|
*/
|
|
@@ -37,9 +37,10 @@ type ComponentProps = {
|
|
|
37
37
|
rightAddons?: ReactNode;
|
|
38
38
|
/**
|
|
39
39
|
* Размер компонента
|
|
40
|
-
* @default
|
|
40
|
+
* @default 56
|
|
41
|
+
* @description xxs, xs, s, m, l, xl deprecated, используйте вместо них 32, 40, 48, 56, 64, 72 соответственно
|
|
41
42
|
*/
|
|
42
|
-
size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
43
|
+
size?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 32 | 40 | 48 | 56 | 64 | 72;
|
|
43
44
|
/**
|
|
44
45
|
* Растягивает компонент на ширину контейнера
|
|
45
46
|
* @default false
|
|
@@ -10,15 +10,15 @@ 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-1328ead9";
|
|
13
|
-
import { ButtonProps } from "./index-
|
|
14
|
-
import { ContentProps } from "./typings-
|
|
15
|
-
import { ModalResponsiveProps as ModalProps } from "./typings-
|
|
13
|
+
import { ButtonProps } from "./index-61e2321e";
|
|
14
|
+
import { ContentProps } from "./typings-88b743b5";
|
|
15
|
+
import { ModalResponsiveProps as ModalProps } from "./typings-88b743b5";
|
|
16
16
|
import { InputProps } from "@alfalab/core-components-input";
|
|
17
17
|
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
18
18
|
/**
|
|
19
19
|
* Текст после иконки
|
|
20
20
|
*/
|
|
21
|
-
text?: string;
|
|
21
|
+
text?: string | null;
|
|
22
22
|
/**
|
|
23
23
|
* Дополнительный класс
|
|
24
24
|
*/
|
|
@@ -512,7 +512,7 @@ interface ControlsProps {
|
|
|
512
512
|
gap?: 16 | 24 | 32;
|
|
513
513
|
}
|
|
514
514
|
declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
515
|
-
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
515
|
+
size?: "s" | "m" | "l" | "xl" | 500 | "fullscreen" | 600 | 800 | 1140 | undefined;
|
|
516
516
|
fullscreen?: boolean | undefined;
|
|
517
517
|
fixedPosition?: boolean | undefined;
|
|
518
518
|
hasCloser?: boolean | undefined;
|
|
@@ -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-88b743b5").ContentProps>;
|
|
525
525
|
Footer: React.FC<FooterProps>;
|
|
526
526
|
Controls: React.FC<ControlsProps>;
|
|
527
527
|
};
|
|
@@ -879,7 +879,7 @@ declare const IconButton: React.ForwardRefExoticComponent<{
|
|
|
879
879
|
className?: string;
|
|
880
880
|
}> | ReactElement;
|
|
881
881
|
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
882
|
-
size?: "s" | "xs" | 24 | 32 | 40 |
|
|
882
|
+
size?: "s" | "xs" | 48 | 56 | 24 | 32 | 40 | "xxs" | undefined;
|
|
883
883
|
className?: string | undefined;
|
|
884
884
|
alignIcon?: "center" | "right" | "left" | undefined;
|
|
885
885
|
dataTestId?: string | undefined;
|
|
@@ -1029,12 +1029,14 @@ type BaseSelectProps = {
|
|
|
1029
1029
|
multiple?: boolean;
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Размер компонента
|
|
1032
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1032
1033
|
*/
|
|
1033
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
1034
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1034
1035
|
/**
|
|
1035
1036
|
* Размер пунктов меню
|
|
1037
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1036
1038
|
*/
|
|
1037
|
-
optionsSize?: 's' | 'm' | 'l' | 'xl';
|
|
1039
|
+
optionsSize?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1038
1040
|
/**
|
|
1039
1041
|
* Растягивает компонент на ширину контейнера
|
|
1040
1042
|
*/
|
|
@@ -1299,8 +1301,9 @@ type OptionsListProps = {
|
|
|
1299
1301
|
scrollbarClassName?: string;
|
|
1300
1302
|
/**
|
|
1301
1303
|
* Размер компонента
|
|
1304
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1302
1305
|
*/
|
|
1303
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
1306
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1304
1307
|
/**
|
|
1305
1308
|
* Компонент пункта меню
|
|
1306
1309
|
*/
|
|
@@ -1402,8 +1405,9 @@ type OptgroupProps = {
|
|
|
1402
1405
|
className?: string;
|
|
1403
1406
|
/**
|
|
1404
1407
|
* Размер компонента
|
|
1408
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1405
1409
|
*/
|
|
1406
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
1410
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1407
1411
|
/**
|
|
1408
1412
|
* Заголовок группы
|
|
1409
1413
|
*/
|
|
@@ -1420,8 +1424,9 @@ type OptionProps = {
|
|
|
1420
1424
|
className?: string;
|
|
1421
1425
|
/**
|
|
1422
1426
|
* Размер компонента
|
|
1427
|
+
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
|
|
1423
1428
|
*/
|
|
1424
|
-
size?: 's' | 'm' | 'l' | 'xl';
|
|
1429
|
+
size?: 's' | 'm' | 'l' | 'xl' | 48 | 56 | 64 | 72;
|
|
1425
1430
|
/**
|
|
1426
1431
|
* Контент пункта меню
|
|
1427
1432
|
*/
|
|
@@ -1579,8 +1584,8 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
|
|
|
1579
1584
|
};
|
|
1580
1585
|
export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalContext, getModalTestIds, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, Typography, typographyPresets, TitleResponsive, getDefaultWeight, IconButtonProps, IconButton, Content, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
|
|
1581
1586
|
export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, TitleProps, TextProps, Color };
|
|
1582
|
-
export { ModalResponsiveProps as ModalProps } from "./typings-
|
|
1583
|
-
export type { ContentProps as ModalContentProps } from "./typings-
|
|
1587
|
+
export { ModalResponsiveProps as ModalProps } from "./typings-88b743b5";
|
|
1588
|
+
export type { ContentProps as ModalContentProps } from "./typings-88b743b5";
|
|
1584
1589
|
export * from "./use-skeleton-1328ead9";
|
|
1585
1590
|
export * from "./Component.desktop-ebda875c";
|
|
1586
1591
|
export * from "./Component.mobile-ebda875c";
|
|
@@ -3,9 +3,10 @@ import { BaseModalProps } from "./index-bdb4c6b9";
|
|
|
3
3
|
type ModalDesktopProps = BaseModalProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Ширина модального окна
|
|
6
|
-
* @default
|
|
6
|
+
* @default 600
|
|
7
|
+
* @description s, m, l, xl deprecated, используйте вместо них 500, 600, 800, 1140 соответственно
|
|
7
8
|
*/
|
|
8
|
-
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
|
|
9
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen' | 500 | 600 | 800 | 1140;
|
|
9
10
|
/**
|
|
10
11
|
* Растягивает модальное окно на весь экран
|
|
11
12
|
* @deprecated Используйте размер fullscreen
|
package/utils-89376c31.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-
|
|
2
|
+
import { BaseSelectProps, GroupShape, OptionShape } from "./typings-70284312";
|
|
3
3
|
declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
|
|
4
4
|
declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
|
|
5
5
|
declare const joinOptions: ({ selected, selectedMultiple, }: {
|
package/consts-f777ba1a.d.ts
DELETED
package/esm/consts-f777ba1a.d.ts
DELETED