@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.
Files changed (110) hide show
  1. package/{Component-c241b310.d.ts → Component-61e2321e.d.ts} +12 -3
  2. package/{cssm/Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
  3. package/Component-bdb4c6b9.d.ts +2 -2
  4. package/Component.responsive-8566963f.d.ts +2 -2
  5. package/Component.responsive.d.ts +6 -10
  6. package/{esm/ResponsiveContext-8a2a8ad1.d.ts → ResponsiveContext-88b743b5.d.ts} +1 -1
  7. package/components/base-international-phone-input/Component.d.ts +2 -4
  8. package/components/base-international-phone-input/Component.js +16 -21
  9. package/components/base-international-phone-input/index.css +2 -2
  10. package/components/country-select/Component.js +1 -1
  11. package/components/country-select/index.css +9 -9
  12. package/components/flag-icon/component.js +1 -1
  13. package/components/flag-icon/index.css +4 -4
  14. package/components/select-field/component.d.ts +4 -1
  15. package/components/select-field/component.js +12 -2
  16. package/components/select-field/index.css +10 -10
  17. package/consts-6c9aad46.d.ts +12 -0
  18. package/consts-ef43bf1b.d.ts +12 -0
  19. package/cssm/{Component-c241b310.d.ts → Component-61e2321e.d.ts} +12 -3
  20. package/{Component-c29389e5.d.ts → cssm/Component-70284312.d.ts} +1 -1
  21. package/cssm/Component-bdb4c6b9.d.ts +2 -2
  22. package/cssm/Component.responsive-8566963f.d.ts +2 -2
  23. package/cssm/Component.responsive.d.ts +6 -10
  24. package/{modern/ResponsiveContext-8a2a8ad1.d.ts → cssm/ResponsiveContext-88b743b5.d.ts} +1 -1
  25. package/cssm/components/base-international-phone-input/Component.d.ts +2 -4
  26. package/cssm/components/base-international-phone-input/Component.js +15 -20
  27. package/cssm/components/country-select/index.module.css +1 -1
  28. package/cssm/components/flag-icon/index.module.css +1 -1
  29. package/cssm/components/select-field/component.d.ts +4 -1
  30. package/cssm/components/select-field/component.js +11 -1
  31. package/cssm/components/select-field/index.module.css +3 -3
  32. package/cssm/consts-6c9aad46.d.ts +12 -0
  33. package/cssm/consts-ef43bf1b.d.ts +12 -0
  34. package/cssm/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
  35. package/cssm/index-8566963f.d.ts +2 -2
  36. package/cssm/index-ebda875c.d.ts +3 -2
  37. package/cssm/types.d.ts +3 -5
  38. package/{modern/typings-c241b310.d.ts → cssm/typings-61e2321e.d.ts} +3 -2
  39. package/cssm/{typings-c29389e5.d.ts → typings-70284312.d.ts} +19 -14
  40. package/{esm/typings-8a2a8ad1.d.ts → cssm/typings-88b743b5.d.ts} +3 -2
  41. package/cssm/utils-89376c31.d.ts +1 -1
  42. package/{modern/Component-c241b310.d.ts → esm/Component-61e2321e.d.ts} +12 -3
  43. package/esm/{Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
  44. package/esm/Component-bdb4c6b9.d.ts +2 -2
  45. package/esm/Component.responsive-8566963f.d.ts +2 -2
  46. package/esm/Component.responsive.d.ts +6 -10
  47. package/{ResponsiveContext-8a2a8ad1.d.ts → esm/ResponsiveContext-88b743b5.d.ts} +1 -1
  48. package/esm/components/base-international-phone-input/Component.d.ts +2 -4
  49. package/esm/components/base-international-phone-input/Component.js +16 -21
  50. package/esm/components/base-international-phone-input/index.css +2 -2
  51. package/esm/components/country-select/Component.js +1 -1
  52. package/esm/components/country-select/index.css +9 -9
  53. package/esm/components/flag-icon/component.js +1 -1
  54. package/esm/components/flag-icon/index.css +4 -4
  55. package/esm/components/select-field/component.d.ts +4 -1
  56. package/esm/components/select-field/component.js +12 -2
  57. package/esm/components/select-field/index.css +10 -10
  58. package/esm/consts-6c9aad46.d.ts +12 -0
  59. package/esm/consts-ef43bf1b.d.ts +12 -0
  60. package/esm/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
  61. package/esm/index-8566963f.d.ts +2 -2
  62. package/esm/index-ebda875c.d.ts +3 -2
  63. package/esm/types.d.ts +3 -5
  64. package/{cssm/typings-c241b310.d.ts → esm/typings-61e2321e.d.ts} +3 -2
  65. package/esm/{typings-c29389e5.d.ts → typings-70284312.d.ts} +19 -14
  66. package/{modern/typings-8a2a8ad1.d.ts → esm/typings-88b743b5.d.ts} +3 -2
  67. package/esm/utils-89376c31.d.ts +1 -1
  68. package/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
  69. package/index-8566963f.d.ts +2 -2
  70. package/index-ebda875c.d.ts +3 -2
  71. package/{esm/Component-c241b310.d.ts → modern/Component-61e2321e.d.ts} +12 -3
  72. package/modern/{Component-c29389e5.d.ts → Component-70284312.d.ts} +1 -1
  73. package/modern/Component-bdb4c6b9.d.ts +2 -2
  74. package/modern/Component.responsive-8566963f.d.ts +2 -2
  75. package/modern/Component.responsive.d.ts +6 -10
  76. package/{cssm/ResponsiveContext-8a2a8ad1.d.ts → modern/ResponsiveContext-88b743b5.d.ts} +1 -1
  77. package/modern/components/base-international-phone-input/Component.d.ts +2 -4
  78. package/modern/components/base-international-phone-input/Component.js +15 -18
  79. package/modern/components/base-international-phone-input/index.css +2 -2
  80. package/modern/components/country-select/Component.js +1 -1
  81. package/modern/components/country-select/index.css +9 -9
  82. package/modern/components/flag-icon/component.js +1 -1
  83. package/modern/components/flag-icon/index.css +4 -4
  84. package/modern/components/select-field/component.d.ts +4 -1
  85. package/modern/components/select-field/component.js +12 -2
  86. package/modern/components/select-field/index.css +10 -10
  87. package/modern/consts-6c9aad46.d.ts +12 -0
  88. package/modern/consts-ef43bf1b.d.ts +12 -0
  89. package/modern/{index-c241b310.d.ts → index-61e2321e.d.ts} +1 -1
  90. package/modern/index-8566963f.d.ts +2 -2
  91. package/modern/index-ebda875c.d.ts +3 -2
  92. package/modern/types.d.ts +3 -5
  93. package/{typings-c241b310.d.ts → modern/typings-61e2321e.d.ts} +3 -2
  94. package/modern/{typings-c29389e5.d.ts → typings-70284312.d.ts} +19 -14
  95. package/{cssm/typings-8a2a8ad1.d.ts → modern/typings-88b743b5.d.ts} +3 -2
  96. package/modern/utils-89376c31.d.ts +1 -1
  97. package/package.json +4 -4
  98. package/src/components/base-international-phone-input/Component.tsx +24 -17
  99. package/src/components/select-field/component.tsx +17 -2
  100. package/src/components/select-field/index.module.css +2 -2
  101. package/src/types.ts +2 -2
  102. package/types.d.ts +3 -5
  103. package/{esm/typings-c241b310.d.ts → typings-61e2321e.d.ts} +3 -2
  104. package/{typings-c29389e5.d.ts → typings-70284312.d.ts} +19 -14
  105. package/{typings-8a2a8ad1.d.ts → typings-88b743b5.d.ts} +3 -2
  106. package/utils-89376c31.d.ts +1 -1
  107. package/consts-f777ba1a.d.ts +0 -2
  108. package/cssm/consts-f777ba1a.d.ts +0 -2
  109. package/esm/consts-f777ba1a.d.ts +0 -2
  110. package/modern/consts-f777ba1a.d.ts +0 -2
@@ -1,4 +1,12 @@
1
- import React, { ChangeEvent, forwardRef, useEffect, useMemo, useRef, useState } from '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 = 'm',
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 = (e: ChangeEvent<HTMLInputElement> | null, phone: string) => {
73
- onChange?.(e, { value: phone });
80
+ const changeNumber = (phone: string) => {
81
+ onChange?.(phone);
74
82
  };
75
83
 
76
- const updatePhoneData = (phone: string, e: ChangeEvent<HTMLInputElement> | null) => {
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(e, nextPhone);
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(null, `+${nextCountry.dialCode}`);
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, e);
115
+ updatePhoneData(e.target.value);
109
116
  };
110
117
 
111
- const handleClear = () => {
112
- if (clearableCountryCode) {
113
- changeNumber(null, '');
114
- } else {
115
- changeNumber(null, `+${country?.countryCode}` || '');
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, null);
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={(event, { value: phone }) => updatePhoneData(phone, event)}
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
- export const SelectField: FC<FieldProps> = ({
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
  })}
@@ -33,8 +33,8 @@
33
33
  outline: none;
34
34
  }
35
35
 
36
- .l .inner,
37
- .xl .inner {
36
+ .size-64 .inner,
37
+ .size-72 .inner {
38
38
  padding-left: var(--gap-m);
39
39
  }
40
40
 
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ChangeEvent, ElementType, FC } from 'react';
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?: (e: ChangeEvent<HTMLInputElement> | null, { value }: { value: string }) => void;
74
+ onChange?: (phone: string) => void;
75
75
 
76
76
  /**
77
77
  * Обработчик блюра поля
package/types.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { ChangeEvent, ElementType, FC, FocusEvent } from 'react';
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-c29389e5";
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?: (e: ChangeEvent<HTMLInputElement> | null, { value }: {
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 m
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-c241b310";
14
- import { ContentProps } from "./typings-8a2a8ad1";
15
- import { ModalResponsiveProps as ModalProps } from "./typings-8a2a8ad1";
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-8a2a8ad1").ContentProps>;
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 | 48 | "xxs" | 56 | undefined;
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-8a2a8ad1";
1583
- export type { ContentProps as ModalContentProps } from "./typings-8a2a8ad1";
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 "m"
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
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-c29389e5";
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, }: {
@@ -1,2 +0,0 @@
1
- declare const DEFAULT_VISIBLE_OPTIONS = 5;
2
- export { DEFAULT_VISIBLE_OPTIONS };
@@ -1,2 +0,0 @@
1
- declare const DEFAULT_VISIBLE_OPTIONS = 5;
2
- export { DEFAULT_VISIBLE_OPTIONS };
@@ -1,2 +0,0 @@
1
- declare const DEFAULT_VISIBLE_OPTIONS = 5;
2
- export { DEFAULT_VISIBLE_OPTIONS };
@@ -1,2 +0,0 @@
1
- declare const DEFAULT_VISIBLE_OPTIONS = 5;
2
- export { DEFAULT_VISIBLE_OPTIONS };