@alfalab/core-components-international-phone-input 1.2.3 → 1.2.4

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 (93) hide show
  1. package/{Component-89f0cb07.d.ts → Component-553146b2.d.ts} +1 -1
  2. package/Component-bdb4c6b9.d.ts +12 -0
  3. package/{esm/Component-e63ec8aa.d.ts → Component-c29389e5.d.ts} +1 -1
  4. package/Component.responsive-8566963f.d.ts +2 -2
  5. package/Component.responsive.d.ts +4 -4
  6. package/ResponsiveContext-08e5596c.d.ts +5 -0
  7. package/components/base-international-phone-input/Component.d.ts +1 -1
  8. package/components/base-international-phone-input/Component.js +1 -1
  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 +8 -8
  12. package/components/flag-icon/component.js +1 -1
  13. package/components/flag-icon/index.css +3 -3
  14. package/components/select-field/component.js +1 -1
  15. package/components/select-field/index.css +9 -9
  16. package/{modern/Component-89f0cb07.d.ts → cssm/Component-553146b2.d.ts} +1 -1
  17. package/cssm/Component-bdb4c6b9.d.ts +12 -0
  18. package/{Component-e63ec8aa.d.ts → cssm/Component-c29389e5.d.ts} +1 -1
  19. package/cssm/Component.responsive-8566963f.d.ts +2 -2
  20. package/cssm/Component.responsive.d.ts +4 -4
  21. package/cssm/ResponsiveContext-08e5596c.d.ts +5 -0
  22. package/cssm/components/base-international-phone-input/Component.d.ts +1 -1
  23. package/cssm/index-136acbb1.d.ts +28 -0
  24. package/cssm/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
  25. package/cssm/index-8566963f.d.ts +2 -2
  26. package/cssm/index-bdb4c6b9.d.ts +183 -0
  27. package/cssm/index-ebda875c.d.ts +4 -1
  28. package/cssm/types.d.ts +1 -1
  29. package/cssm/typings-08e5596c.d.ts +56 -0
  30. package/{esm/typings-89f0cb07.d.ts → cssm/typings-553146b2.d.ts} +2 -1
  31. package/cssm/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
  32. package/cssm/utils-d2597f31.d.ts +1 -1
  33. package/{cssm/Component-89f0cb07.d.ts → esm/Component-553146b2.d.ts} +1 -1
  34. package/esm/Component-bdb4c6b9.d.ts +12 -0
  35. package/{modern/Component-e63ec8aa.d.ts → esm/Component-c29389e5.d.ts} +1 -1
  36. package/esm/Component.responsive-8566963f.d.ts +2 -2
  37. package/esm/Component.responsive.d.ts +4 -4
  38. package/esm/ResponsiveContext-08e5596c.d.ts +5 -0
  39. package/esm/components/base-international-phone-input/Component.d.ts +1 -1
  40. package/esm/components/base-international-phone-input/Component.js +1 -1
  41. package/esm/components/base-international-phone-input/index.css +2 -2
  42. package/esm/components/country-select/Component.js +1 -1
  43. package/esm/components/country-select/index.css +8 -8
  44. package/esm/components/flag-icon/component.js +1 -1
  45. package/esm/components/flag-icon/index.css +3 -3
  46. package/esm/components/select-field/component.js +1 -1
  47. package/esm/components/select-field/index.css +9 -9
  48. package/esm/index-136acbb1.d.ts +28 -0
  49. package/esm/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
  50. package/esm/index-8566963f.d.ts +2 -2
  51. package/esm/index-bdb4c6b9.d.ts +183 -0
  52. package/esm/index-ebda875c.d.ts +4 -1
  53. package/esm/types.d.ts +1 -1
  54. package/esm/typings-08e5596c.d.ts +56 -0
  55. package/{cssm/typings-89f0cb07.d.ts → esm/typings-553146b2.d.ts} +2 -1
  56. package/esm/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
  57. package/esm/utils-d2597f31.d.ts +1 -1
  58. package/index-136acbb1.d.ts +28 -0
  59. package/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
  60. package/index-8566963f.d.ts +2 -2
  61. package/index-bdb4c6b9.d.ts +183 -0
  62. package/index-ebda875c.d.ts +4 -1
  63. package/{esm/Component-89f0cb07.d.ts → modern/Component-553146b2.d.ts} +1 -1
  64. package/modern/Component-bdb4c6b9.d.ts +12 -0
  65. package/{cssm/Component-e63ec8aa.d.ts → modern/Component-c29389e5.d.ts} +1 -1
  66. package/modern/Component.responsive-8566963f.d.ts +2 -2
  67. package/modern/Component.responsive.d.ts +4 -4
  68. package/modern/ResponsiveContext-08e5596c.d.ts +5 -0
  69. package/modern/components/base-international-phone-input/Component.d.ts +1 -1
  70. package/modern/components/base-international-phone-input/Component.js +1 -1
  71. package/modern/components/base-international-phone-input/index.css +2 -2
  72. package/modern/components/country-select/Component.js +1 -1
  73. package/modern/components/country-select/index.css +8 -8
  74. package/modern/components/flag-icon/component.js +1 -1
  75. package/modern/components/flag-icon/index.css +3 -3
  76. package/modern/components/select-field/component.js +1 -1
  77. package/modern/components/select-field/index.css +9 -9
  78. package/modern/index-136acbb1.d.ts +28 -0
  79. package/modern/{index-89f0cb07.d.ts → index-553146b2.d.ts} +1 -1
  80. package/modern/index-8566963f.d.ts +2 -2
  81. package/modern/index-bdb4c6b9.d.ts +183 -0
  82. package/modern/index-ebda875c.d.ts +4 -1
  83. package/modern/types.d.ts +1 -1
  84. package/modern/typings-08e5596c.d.ts +56 -0
  85. package/modern/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
  86. package/modern/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
  87. package/modern/utils-d2597f31.d.ts +1 -1
  88. package/package.json +4 -4
  89. package/types.d.ts +1 -1
  90. package/typings-08e5596c.d.ts +56 -0
  91. package/{typings-89f0cb07.d.ts → typings-553146b2.d.ts} +2 -1
  92. package/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +49 -311
  93. package/utils-d2597f31.d.ts +1 -1
@@ -0,0 +1,56 @@
1
+ import { ReactNode } from 'react';
2
+ import { BaseModalProps } from "./index-bdb4c6b9";
3
+ type ModalDesktopProps = BaseModalProps & {
4
+ /**
5
+ * Ширина модального окна
6
+ * @default "m"
7
+ */
8
+ size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
9
+ /**
10
+ * Растягивает модальное окно на весь экран
11
+ * @deprecated Используйте размер fullscreen
12
+ */
13
+ fullscreen?: boolean;
14
+ /**
15
+ * Фиксирует позицию модального окна после открытия,
16
+ * предотвращая скачки, если контент внутри будет меняться
17
+ */
18
+ fixedPosition?: boolean;
19
+ /**
20
+ * Управление наличием закрывающего крестика
21
+ * @default false
22
+ */
23
+ hasCloser?: boolean;
24
+ };
25
+ type ModalMobileProps = Omit<ModalDesktopProps, 'size' | 'fixedPosition' | 'fullscreen'>;
26
+ type ModalResponsiveProps = ModalDesktopProps & {
27
+ /**
28
+ * Контрольная точка, с нее начинается desktop версия
29
+ * @default 1024
30
+ */
31
+ breakpoint?: number;
32
+ /**
33
+ * Значение по-умолчанию для хука useMatchMedia
34
+ */
35
+ defaultMatchMediaValue?: boolean | (() => boolean);
36
+ };
37
+ type View = 'desktop' | 'mobile';
38
+ type TResponsiveModalContext = {
39
+ view: View;
40
+ size: NonNullable<ModalDesktopProps['size']>;
41
+ };
42
+ type ContentProps = {
43
+ /**
44
+ * Контент
45
+ */
46
+ children?: ReactNode;
47
+ /**
48
+ * Дополнительный класс
49
+ */
50
+ className?: string;
51
+ /**
52
+ * Растягивает контент на всю высоту
53
+ */
54
+ flex?: boolean;
55
+ };
56
+ export { ModalDesktopProps, ModalMobileProps, ModalResponsiveProps, View, TResponsiveModalContext, ContentProps };
@@ -48,7 +48,8 @@ type ComponentProps = {
48
48
  */
49
49
  Component?: ElementType;
50
50
  /**
51
- * Идентификатор для систем автоматизированного тестирования
51
+ * Идентификатор для систем автоматизированного тестирования.
52
+ * Для спиннера используется модификатор -loader
52
53
  */
53
54
  dataTestId?: string;
54
55
  /**
@@ -1,207 +1,19 @@
1
- /// <reference types="react-transition-group" />
2
1
  /// <reference types="react" />
2
+ /// <reference types="react-transition-group" />
3
3
  import React from "react";
4
- import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC, KeyboardEvent, MouseEvent, MutableRefObject, Ref, ButtonHTMLAttributes, ElementType, CSSProperties, ForwardRefExoticComponent, RefAttributes, AnchorHTMLAttributes, AriaAttributes, FocusEvent, SVGProps } from "react";
4
+ import { HTMLAttributes, ReactElement, ReactNode, RefObject, ButtonHTMLAttributes, ElementType, FC, CSSProperties, MutableRefObject, ForwardRefExoticComponent, RefAttributes, AnchorHTMLAttributes, AriaAttributes, FocusEvent, MouseEvent, SVGProps } from "react";
5
5
  import { HandledEvents } from "react-swipeable/es/types";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
- import { CSSTransitionClassNames, CSSTransitionProps } from "react-transition-group/CSSTransition";
8
- import { BaseFormControlProps } from "./index-ebda875c";
7
+ import { BaseModalProps, BaseModalContext } from "./index-bdb4c6b9";
8
+ import { BaseFormControlProps, BackdropProps } from "./index-ebda875c";
9
+ import { CSSTransitionProps } from "react-transition-group/CSSTransition";
9
10
  import { BasePlacement, VariationPlacement } from "@popperjs/core";
10
11
  import { SwipeableHandlers } from "react-swipeable";
11
12
  import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
12
- import { ButtonProps } from "./index-89f0cb07";
13
+ import { ButtonProps } from "./index-553146b2";
14
+ import { ContentProps } from "./typings-08e5596c";
15
+ import { ModalResponsiveProps as ModalProps } from "./typings-08e5596c";
13
16
  import { InputProps } from "@alfalab/core-components-input";
14
- type BackdropProps = Partial<TransitionProps> & {
15
- /**
16
- * Прозрачный бэкдроп
17
- */
18
- invisible?: boolean;
19
- /**
20
- * Управляет видимостью компонента
21
- */
22
- open: boolean;
23
- /**
24
- * Обработчик клика по бэкдропу
25
- */
26
- onClose?: (event: MouseEvent<HTMLElement>) => void;
27
- /**
28
- * Дополнительный класс
29
- */
30
- className?: string;
31
- /**
32
- * Классы анимации
33
- *
34
- * http://reactcommunity.org/react-transition-group/css-transition#CSSTransition-prop-classNames
35
- */
36
- transitionClassNames?: string | CSSTransitionClassNames;
37
- /**
38
- * Идентификатор для систем автоматизированного тестирования
39
- */
40
- dataTestId?: string;
41
- /**
42
- * Дочерние элементы.
43
- */
44
- children?: ReactNode;
45
- };
46
- type PortalProps = {
47
- /** Контент */
48
- children?: ReactNode;
49
- /**
50
- * Функция, возвращающая контейнер, в который будут рендериться дочерние элементы
51
- */
52
- getPortalContainer?: () => Element;
53
- /**
54
- * Немедленно отрендерить дочерние элементы (false - контент будет отрендерен на след. рендер).
55
- */
56
- immediateMount?: boolean;
57
- };
58
- type BaseModalProps = {
59
- /**
60
- * Контент
61
- */
62
- children?: ReactNode;
63
- /**
64
- * Компонент бэкдропа
65
- */
66
- Backdrop?: FC<BackdropProps>;
67
- /**
68
- * Свойства для Бэкдропа
69
- */
70
- backdropProps?: Partial<BackdropProps> & Record<string, unknown>;
71
- /**
72
- * Нода, компонент или функция возвращающая их
73
- *
74
- * Контейнер к которому будут добавляться порталы
75
- */
76
- container?: PortalProps["getPortalContainer"];
77
- /**
78
- * Отключает автоматический перевод фокуса на модалку при открытии
79
- * @default false
80
- */
81
- disableAutoFocus?: boolean;
82
- /**
83
- * Отключает ловушку фокуса
84
- * @default false
85
- */
86
- disableFocusLock?: boolean;
87
- /**
88
- * Отключает восстановление фокуса на предыдущем элементе после закрытия модалки
89
- * @default false
90
- */
91
- disableRestoreFocus?: boolean;
92
- /**
93
- * Отключает вызов `callback` при нажатии Escape
94
- * @default false
95
- */
96
- disableEscapeKeyDown?: boolean;
97
- /**
98
- * Отключает вызов `callback` при клике на бэкдроп
99
- * @default false
100
- */
101
- disableBackdropClick?: boolean;
102
- /**
103
- * Отключает блокировку скролла при открытии модального окна
104
- * @default false
105
- */
106
- disableBlockingScroll?: boolean;
107
- /**
108
- * Содержимое модалки всегда в DOM
109
- * @default false
110
- */
111
- keepMounted?: boolean;
112
- /**
113
- * Управление видимостью модалки
114
- */
115
- open: boolean;
116
- /**
117
- * Дополнительный класс
118
- */
119
- className?: string;
120
- /**
121
- * Дополнительный класс
122
- */
123
- contentClassName?: string;
124
- /**
125
- * Дополнительные пропсы на dialog wrapper
126
- */
127
- wrapperProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
128
- /**
129
- * Дополнительные пропсы на обертку контента
130
- */
131
- contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
132
- /**
133
- * Дополнительные пропсы на компонентную обертку контента
134
- */
135
- componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
136
- /**
137
- * Дополнительный класс для обертки (Modal)
138
- */
139
- wrapperClassName?: string;
140
- /**
141
- * Обработчик скролла контента
142
- */
143
- scrollHandler?: "wrapper" | "content" | MutableRefObject<HTMLDivElement | null>;
144
- /**
145
- * Пропсы для анимации (CSSTransition)
146
- */
147
- transitionProps?: Partial<TransitionProps>;
148
- /**
149
- * Рендерить ли в контейнер через портал.
150
- * @default true
151
- */
152
- usePortal?: boolean;
153
- /**
154
- * Обработчик события нажатия на бэкдроп
155
- */
156
- onBackdropClick?: (event: MouseEvent) => void;
157
- /**
158
- * Обработчик события нажатия на Escape
159
- *
160
- * Если `disableEscapeKeyDown` - false и модальное окно в фокусе
161
- */
162
- onEscapeKeyDown?: (event: KeyboardEvent) => void;
163
- /**
164
- * Обработчик закрытия
165
- */
166
- onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
167
- /**
168
- * Обработчик события onEntered компонента Transition
169
- */
170
- onMount?: () => void;
171
- /**
172
- * Обработчик события onExited компонента Transition
173
- */
174
- onUnmount?: () => void;
175
- /**
176
- * Идентификатор для систем автоматизированного тестирования
177
- */
178
- dataTestId?: string;
179
- /**
180
- * z-index компонента
181
- */
182
- zIndex?: number;
183
- /**
184
- * Реф, который должен быть установлен компонентной области
185
- */
186
- componentRef?: MutableRefObject<HTMLDivElement | null>;
187
- };
188
- type BaseModalContext = {
189
- parentRef: React.RefObject<HTMLDivElement>;
190
- componentRef: React.RefObject<HTMLDivElement>;
191
- hasFooter?: boolean;
192
- hasHeader?: boolean;
193
- hasScroll?: boolean;
194
- headerHighlighted?: boolean;
195
- footerHighlighted?: boolean;
196
- headerOffset?: number;
197
- setHeaderOffset: (offset: number) => void;
198
- contentRef: Ref<HTMLElement>;
199
- setHasHeader: (exists: boolean) => void;
200
- setHasFooter: (exists: boolean) => void;
201
- onClose: Required<BaseModalProps>["onClose"];
202
- };
203
- // eslint-disable-next-line @typescript-eslint/no-redeclare
204
- declare const BaseModalContext: React.Context<BaseModalContext>;
205
17
  interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
206
18
  /**
207
19
  * Текст после иконки
@@ -458,7 +270,8 @@ type BottomSheetProps = {
458
270
  */
459
271
  transitionProps?: Partial<TransitionProps>;
460
272
  /**
461
- * Идентификатор для систем автоматизированного тестирования
273
+ * Идентификатор для систем автоматизированного тестирования.
274
+ * Для заголовка используется модификатор -header
462
275
  */
463
276
  dataTestId?: string;
464
277
  /**
@@ -652,43 +465,9 @@ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlP
652
465
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
653
466
  } & React.RefAttributes<HTMLDivElement>>;
654
467
  type HeaderProps = Omit<NavigationBarProps, "size" | "view" | "parentRef">;
655
- type ModalDesktopProps = BaseModalProps & {
656
- /**
657
- * Ширина модального окна
658
- * @default "m"
659
- */
660
- size?: "s" | "m" | "l" | "xl" | "fullscreen";
661
- /**
662
- * Растягивает модальное окно на весь экран
663
- * @deprecated Используйте размер fullscreen
664
- */
665
- fullscreen?: boolean;
666
- /**
667
- * Фиксирует позицию модального окна после открытия,
668
- * предотвращая скачки, если контент внутри будет меняться
669
- */
670
- fixedPosition?: boolean;
671
- /**
672
- * Управление наличием закрывающего крестика
673
- * @default false
674
- */
675
- hasCloser?: boolean;
676
- };
677
- type ModalResponsiveProps = ModalDesktopProps & {
678
- /**
679
- * Контрольная точка, с нее начинается desktop версия
680
- * @default 1024
681
- */
682
- breakpoint?: number;
683
- };
684
- type View = "desktop" | "mobile";
685
- type TResponsiveModalContext = {
686
- view: View;
687
- size: NonNullable<ModalDesktopProps["size"]>;
688
- };
689
- type ContentProps = {
468
+ type FooterProps = {
690
469
  /**
691
- * Контент
470
+ * Контент футера
692
471
  */
693
472
  children?: ReactNode;
694
473
  /**
@@ -696,43 +475,55 @@ type ContentProps = {
696
475
  */
697
476
  className?: string;
698
477
  /**
699
- * Растягивает контент на всю высоту
478
+ * Фиксирует футер
700
479
  */
701
- flex?: boolean;
702
- };
703
- type FooterProps = {
480
+ sticky?: boolean;
704
481
  /**
705
- * Контент футера
482
+ * Выравнивание элементов футера
706
483
  */
707
- children?: ReactNode;
484
+ layout?: "start" | "center" | "space-between" | "column";
708
485
  /**
709
- * Дополнительный класс
486
+ * Отступы между элементами футера
710
487
  */
711
- className?: string;
488
+ gap?: 16 | 24 | 32;
489
+ };
490
+ interface ControlsProps {
712
491
  /**
713
- * Фиксирует футер
492
+ * Основной слот
714
493
  */
715
- sticky?: boolean;
494
+ primary?: ReactNode;
495
+ /**
496
+ * Дополнительный слот
497
+ */
498
+ secondary?: ReactNode;
716
499
  /**
717
500
  * Выравнивание элементов футера
501
+ * @default start
718
502
  */
719
503
  layout?: "start" | "center" | "space-between" | "column";
504
+ /**
505
+ * Выравнивание элементов футера (мобильный view)
506
+ * @default start
507
+ */
508
+ mobileLayout?: "start" | "center" | "space-between" | "column";
720
509
  /**
721
510
  * Отступы между элементами футера
722
511
  */
723
512
  gap?: 16 | 24 | 32;
724
- };
725
- declare const ModalResponsive: React.ForwardRefExoticComponent<BaseModalProps & {
513
+ }
514
+ declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
726
515
  size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
727
516
  fullscreen?: boolean | undefined;
728
517
  fixedPosition?: boolean | undefined;
729
518
  hasCloser?: boolean | undefined;
730
519
  } & {
731
520
  breakpoint?: number | undefined;
521
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
732
522
  } & React.RefAttributes<HTMLDivElement>> & {
733
523
  Header: React.FC<HeaderProps>;
734
- Content: React.FC<ContentProps>;
524
+ Content: React.FC<import("./typings-08e5596c").ContentProps>;
735
525
  Footer: React.FC<FooterProps>;
526
+ Controls: React.FC<ControlsProps>;
736
527
  };
737
528
  declare const ModalContext: import("react").Context<BaseModalContext>;
738
529
  type RefElement = HTMLElement | null;
@@ -811,7 +602,7 @@ type PopoverProps = {
811
602
  /**
812
603
  * Хранит функцию, с помощью которой можно обновить положение компонента
813
604
  */
814
- update?: MutableRefObject<() => void>;
605
+ update?: MutableRefObject<(() => void) | undefined>;
815
606
  /**
816
607
  * Дополнительный класс
817
608
  */
@@ -852,14 +643,6 @@ type HeaderProps$0 = Omit<NavigationBarProps, "view" | "size"> & {
852
643
  headerOffset: number;
853
644
  };
854
645
  declare const Header$0: FC<HeaderProps$0>;
855
- declare const Modal: React.ForwardRefExoticComponent<BaseModalProps & {
856
- size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
857
- fullscreen?: boolean | undefined;
858
- fixedPosition?: boolean | undefined;
859
- hasCloser?: boolean | undefined;
860
- } & {
861
- view: View;
862
- } & React.RefAttributes<HTMLDivElement>>;
863
646
  type SwipeableBackdropProps = BackdropProps & {
864
647
  /**
865
648
  * Прозрачность бэкдропа
@@ -875,55 +658,6 @@ type SwipeableBackdropProps = BackdropProps & {
875
658
  opacityTimeout?: number;
876
659
  };
877
660
  declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
878
- /**
879
- * Набор констант для z-index соответствующих классов компонентов.
880
- * Значения выбраны по приоритету.
881
- */
882
- declare const stackingOrder: {
883
- FOCUSED: number;
884
- DEFAULT: number;
885
- POPOVER: number;
886
- MODAL: number;
887
- TOAST: number;
888
- };
889
- declare const StackingContext: import("react").Context<number>;
890
- type StackProps = {
891
- /**
892
- * Render prop, в который передается функция.
893
- * Функция принимает аргумент со значением z-index из текущего контекста.
894
- */
895
- children: (value: number) => ReactNode;
896
- /**
897
- * Исходное значение для z-index.
898
- * @default 5
899
- */
900
- value?: number;
901
- };
902
- declare const Stack: FC<StackProps>;
903
- declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
904
- declare const getDefaultPortalContainer: () => Element;
905
- declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
906
- type SavedStyle = {
907
- value: string;
908
- key: string;
909
- el: HTMLElement;
910
- };
911
- type RestoreStyle = {
912
- container: HTMLElement;
913
- modals: number;
914
- styles: SavedStyle[];
915
- };
916
- declare class ModalStore {
917
- private readonly restoreStyles;
918
- constructor();
919
- getRestoreStyles: () => RestoreStyle[];
920
- }
921
- declare const getModalStore: () => ModalStore;
922
- declare class GlobalStore {
923
- private readonly modalStore;
924
- constructor();
925
- getModalStore: () => ModalStore;
926
- }
927
661
  declare const colors: readonly [
928
662
  "tertiary",
929
663
  "disabled",
@@ -985,7 +719,7 @@ type TextBaseProps = {
985
719
  */
986
720
  defaultMargins?: never;
987
721
  /**
988
- * Количество строк (не поддерживает IE)
722
+ * Количество строк
989
723
  */
990
724
  rowLimit?: 1 | 2 | 3;
991
725
  /**
@@ -1041,7 +775,7 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
1041
775
  */
1042
776
  children?: React.ReactNode;
1043
777
  /**
1044
- * Количество строк (не поддерживает IE)
778
+ * Количество строк
1045
779
  */
1046
780
  rowLimit?: 1 | 2 | 3;
1047
781
  /**
@@ -1121,9 +855,8 @@ declare const IconButton: React.ForwardRefExoticComponent<{
1121
855
  alignIcon?: "center" | "right" | "left" | undefined;
1122
856
  dataTestId?: string | undefined;
1123
857
  colors?: "default" | "inverted" | undefined;
1124
- } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
858
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "breakpoint" | "href" | "Component" | "loading"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
1125
859
  declare const Content: FC<ContentProps>;
1126
- declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
1127
860
  type UseSelectWithApplyProps = {
1128
861
  /**
1129
862
  * Список выбранных пунктов
@@ -1207,7 +940,10 @@ type BaseSelectChangePayload = {
1207
940
  };
1208
941
  type BaseSelectProps = {
1209
942
  /**
1210
- * Идентификатор для систем автоматизированного тестирования
943
+ * Идентификатор для систем автоматизированного тестирования.
944
+ * Для пункта меню используется модификатор -option, компонента поиска -search,
945
+ * компонента выпадающего меню -options-list, компонента BottomSheet -bottom-sheet,
946
+ * компонента поля -field, компонета FormControl -field-form-control
1211
947
  */
1212
948
  dataTestId?: string;
1213
949
  /**
@@ -1812,8 +1548,10 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
1812
1548
  */
1813
1549
  defaultMatchMediaValue?: boolean | (() => boolean);
1814
1550
  };
1815
- export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, FormControlProps, FormControl, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, Position, PopoverProps, Popover, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore, Typography, typographyPresets, TitleResponsive, IconButtonProps, IconButton, Content, ResponsiveContext, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
1816
- export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, ContentProps as ModalContentProps, SavedStyle, TitleProps, TextProps, Color };
1551
+ 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
+ export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, TitleProps, TextProps, Color };
1553
+ export { ModalResponsiveProps as ModalProps } from "./typings-08e5596c";
1554
+ export type { ContentProps as ModalContentProps } from "./typings-08e5596c";
1817
1555
  export * from "./useSkeleton-1b036d4b";
1818
1556
  export * from "./Component.desktop-ebda875c";
1819
1557
  export * from "./Component.mobile-ebda875c";
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-e63ec8aa";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-c29389e5";
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,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-89f0cb07";
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-e63ec8aa";
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-89f0cb07";
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-89f0cb07";
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-e63ec8aa").OptionShape) => boolean) | undefined;
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-e63ec8aa").OptionShape) => boolean) | undefined;
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-e63ec8aa").OptionShape | import("./typings-e63ec8aa").GroupShape)[];
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-e63ec8aa").OptionShape | import("./typings-e63ec8aa").GroupShape)[];
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;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TResponsiveModalContext } from "./typings-08e5596c";
4
+ declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
5
+ export { ResponsiveContext };
@@ -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-e63ec8aa").OptionShape) => boolean) | undefined;
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;
@@ -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-input__component_oocev","addons":"international-phone-input__addons_oocev"};
19
+ var styles = {"component":"international-phone-input__component_1p9xq","addons":"international-phone-input__addons_1p9xq"};
20
20
  require('./index.css')
21
21
 
22
22
  var BaseInternationalPhoneInput = forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
- /* hash: oo1vx */
1
+ /* hash: 1pjvw */
2
2
 
3
- .international-phone-input__component_oocev .international-phone-input__addons_oocev {
3
+ .international-phone-input__component_1p9xq .international-phone-input__addons_1p9xq {
4
4
  padding-left: 0;
5
5
  }