@alfalab/core-components-picker-button 11.3.3 → 11.4.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 (65) hide show
  1. package/Component-081223cb.d.ts +6 -2
  2. package/Component-bdb4c6b9.d.ts +12 -0
  3. package/{Component-e63ec8aa.d.ts → Component-c29389e5.d.ts} +1 -1
  4. package/Component-c44170fe.d.ts +12 -4
  5. package/ResponsiveContext-08e5596c.d.ts +5 -0
  6. package/cssm/Component-081223cb.d.ts +6 -2
  7. package/cssm/Component-bdb4c6b9.d.ts +12 -0
  8. package/cssm/{Component-e63ec8aa.d.ts → Component-c29389e5.d.ts} +1 -1
  9. package/cssm/Component-c44170fe.d.ts +12 -4
  10. package/cssm/ResponsiveContext-08e5596c.d.ts +5 -0
  11. package/cssm/field/Component.d.ts +1 -1
  12. package/cssm/field/index.module.css +2 -2
  13. package/cssm/index-bdb4c6b9.d.ts +223 -0
  14. package/cssm/index-ebda875c.d.ts +1 -0
  15. package/cssm/typings-08e5596c.d.ts +56 -0
  16. package/{esm/typings-e63ec8aa.d.ts → cssm/typings-c29389e5.d.ts} +42 -305
  17. package/cssm/utils-d2597f31.d.ts +1 -1
  18. package/desktop/Component.desktop.js +1 -1
  19. package/esm/Component-081223cb.d.ts +6 -2
  20. package/esm/Component-bdb4c6b9.d.ts +12 -0
  21. package/{modern/Component-e63ec8aa.d.ts → esm/Component-c29389e5.d.ts} +1 -1
  22. package/esm/Component-c44170fe.d.ts +12 -4
  23. package/esm/ResponsiveContext-08e5596c.d.ts +5 -0
  24. package/esm/desktop/Component.desktop.js +1 -1
  25. package/esm/field/Component.d.ts +1 -1
  26. package/esm/field/Component.js +1 -1
  27. package/esm/field/index.css +8 -8
  28. package/esm/index-bdb4c6b9.d.ts +223 -0
  29. package/esm/index-ebda875c.d.ts +1 -0
  30. package/esm/index.css +5 -5
  31. package/esm/option/Component.js +1 -1
  32. package/esm/option/index.css +4 -4
  33. package/esm/typings-08e5596c.d.ts +56 -0
  34. package/{modern/typings-e63ec8aa.d.ts → esm/typings-c29389e5.d.ts} +42 -305
  35. package/esm/utils-d2597f31.d.ts +1 -1
  36. package/field/Component.d.ts +1 -1
  37. package/field/Component.js +1 -1
  38. package/field/index.css +8 -8
  39. package/index-bdb4c6b9.d.ts +223 -0
  40. package/index-ebda875c.d.ts +1 -0
  41. package/index.css +5 -5
  42. package/modern/Component-081223cb.d.ts +6 -2
  43. package/modern/Component-bdb4c6b9.d.ts +12 -0
  44. package/{esm/Component-e63ec8aa.d.ts → modern/Component-c29389e5.d.ts} +1 -1
  45. package/modern/Component-c44170fe.d.ts +12 -4
  46. package/modern/ResponsiveContext-08e5596c.d.ts +5 -0
  47. package/modern/desktop/Component.desktop.js +1 -1
  48. package/modern/field/Component.d.ts +1 -1
  49. package/modern/field/Component.js +1 -1
  50. package/modern/field/index.css +8 -8
  51. package/modern/index-bdb4c6b9.d.ts +223 -0
  52. package/modern/index-ebda875c.d.ts +1 -0
  53. package/modern/index.css +5 -5
  54. package/modern/option/Component.js +1 -1
  55. package/modern/option/index.css +4 -4
  56. package/modern/typings-08e5596c.d.ts +56 -0
  57. package/{cssm/typings-e63ec8aa.d.ts → modern/typings-c29389e5.d.ts} +42 -305
  58. package/modern/utils-d2597f31.d.ts +1 -1
  59. package/option/Component.js +1 -1
  60. package/option/index.css +4 -4
  61. package/package.json +4 -4
  62. package/src/field/index.module.css +1 -1
  63. package/typings-08e5596c.d.ts +56 -0
  64. package/{typings-e63ec8aa.d.ts → typings-c29389e5.d.ts} +42 -305
  65. package/utils-d2597f31.d.ts +1 -1
@@ -1,208 +1,19 @@
1
1
  /// <reference types="react-transition-group" />
2
2
  /// <reference types="react" />
3
3
  import React from "react";
4
- import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC, KeyboardEvent, MouseEvent, MutableRefObject, Ref, AriaAttributes, FocusEvent, RefAttributes, SVGProps } from "react";
4
+ import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC, AriaAttributes, FocusEvent, MouseEvent, RefAttributes, SVGProps } from "react";
5
5
  import { HandledEvents } from "react-swipeable/es/types";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
- import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
7
+ import { BaseModalProps, BaseModalContext } from "./index-bdb4c6b9";
8
8
  import { NavigationBarProps } from "./types-667e33fd";
9
9
  import { BackgroundColorType } from "./index-72dda473";
10
- import { BaseInputProps } from "./index-ebda875c";
10
+ import { BaseInputProps, BackdropProps } from "./index-ebda875c";
11
11
  import { SwipeableHandlers } from "react-swipeable";
12
+ import { ContentProps } from "./typings-08e5596c";
13
+ import { ModalResponsiveProps as ModalProps } from "./typings-08e5596c";
12
14
  import { FormControlProps } from "./index-c44170fe";
13
15
  import { PopoverProps } from "@alfalab/core-components-popover";
14
16
  import { UseSelectWithApplyProps } from "./field/Component";
15
- type BackdropProps = Partial<TransitionProps> & {
16
- /**
17
- * Прозрачный бэкдроп
18
- */
19
- invisible?: boolean;
20
- /**
21
- * Управляет видимостью компонента
22
- */
23
- open: boolean;
24
- /**
25
- * Обработчик клика по бэкдропу
26
- */
27
- onClose?: (event: MouseEvent<HTMLElement>) => void;
28
- /**
29
- * Дополнительный класс
30
- */
31
- className?: string;
32
- /**
33
- * Классы анимации
34
- *
35
- * http://reactcommunity.org/react-transition-group/css-transition#CSSTransition-prop-classNames
36
- */
37
- transitionClassNames?: string | CSSTransitionClassNames;
38
- /**
39
- * Идентификатор для систем автоматизированного тестирования
40
- */
41
- dataTestId?: string;
42
- /**
43
- * Дочерние элементы.
44
- */
45
- children?: ReactNode;
46
- };
47
- type PortalProps = {
48
- /** Контент */
49
- children?: ReactNode;
50
- /**
51
- * Функция, возвращающая контейнер, в который будут рендериться дочерние элементы
52
- */
53
- getPortalContainer?: () => Element;
54
- /**
55
- * Немедленно отрендерить дочерние элементы (false - контент будет отрендерен на след. рендер).
56
- */
57
- immediateMount?: boolean;
58
- };
59
- type BaseModalProps = {
60
- /**
61
- * Контент
62
- */
63
- children?: ReactNode;
64
- /**
65
- * Компонент бэкдропа
66
- */
67
- Backdrop?: FC<BackdropProps>;
68
- /**
69
- * Свойства для Бэкдропа
70
- */
71
- backdropProps?: Partial<BackdropProps> & Record<string, unknown>;
72
- /**
73
- * Нода, компонент или функция возвращающая их
74
- *
75
- * Контейнер к которому будут добавляться порталы
76
- */
77
- container?: PortalProps["getPortalContainer"];
78
- /**
79
- * Отключает автоматический перевод фокуса на модалку при открытии
80
- * @default false
81
- */
82
- disableAutoFocus?: boolean;
83
- /**
84
- * Отключает ловушку фокуса
85
- * @default false
86
- */
87
- disableFocusLock?: boolean;
88
- /**
89
- * Отключает восстановление фокуса на предыдущем элементе после закрытия модалки
90
- * @default false
91
- */
92
- disableRestoreFocus?: boolean;
93
- /**
94
- * Отключает вызов `callback` при нажатии Escape
95
- * @default false
96
- */
97
- disableEscapeKeyDown?: boolean;
98
- /**
99
- * Отключает вызов `callback` при клике на бэкдроп
100
- * @default false
101
- */
102
- disableBackdropClick?: boolean;
103
- /**
104
- * Отключает блокировку скролла при открытии модального окна
105
- * @default false
106
- */
107
- disableBlockingScroll?: boolean;
108
- /**
109
- * Содержимое модалки всегда в DOM
110
- * @default false
111
- */
112
- keepMounted?: boolean;
113
- /**
114
- * Управление видимостью модалки
115
- */
116
- open: boolean;
117
- /**
118
- * Дополнительный класс
119
- */
120
- className?: string;
121
- /**
122
- * Дополнительный класс
123
- */
124
- contentClassName?: string;
125
- /**
126
- * Дополнительные пропсы на dialog wrapper
127
- */
128
- wrapperProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
129
- /**
130
- * Дополнительные пропсы на обертку контента
131
- */
132
- contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
133
- /**
134
- * Дополнительные пропсы на компонентную обертку контента
135
- */
136
- componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
137
- /**
138
- * Дополнительный класс для обертки (Modal)
139
- */
140
- wrapperClassName?: string;
141
- /**
142
- * Обработчик скролла контента
143
- */
144
- scrollHandler?: "wrapper" | "content" | MutableRefObject<HTMLDivElement | null>;
145
- /**
146
- * Пропсы для анимации (CSSTransition)
147
- */
148
- transitionProps?: Partial<TransitionProps>;
149
- /**
150
- * Рендерить ли в контейнер через портал.
151
- * @default true
152
- */
153
- usePortal?: boolean;
154
- /**
155
- * Обработчик события нажатия на бэкдроп
156
- */
157
- onBackdropClick?: (event: MouseEvent) => void;
158
- /**
159
- * Обработчик события нажатия на Escape
160
- *
161
- * Если `disableEscapeKeyDown` - false и модальное окно в фокусе
162
- */
163
- onEscapeKeyDown?: (event: KeyboardEvent) => void;
164
- /**
165
- * Обработчик закрытия
166
- */
167
- onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
168
- /**
169
- * Обработчик события onEntered компонента Transition
170
- */
171
- onMount?: () => void;
172
- /**
173
- * Обработчик события onExited компонента Transition
174
- */
175
- onUnmount?: () => void;
176
- /**
177
- * Идентификатор для систем автоматизированного тестирования
178
- */
179
- dataTestId?: string;
180
- /**
181
- * z-index компонента
182
- */
183
- zIndex?: number;
184
- /**
185
- * Реф, который должен быть установлен компонентной области
186
- */
187
- componentRef?: MutableRefObject<HTMLDivElement | null>;
188
- };
189
- type BaseModalContext = {
190
- parentRef: React.RefObject<HTMLDivElement>;
191
- componentRef: React.RefObject<HTMLDivElement>;
192
- hasFooter?: boolean;
193
- hasHeader?: boolean;
194
- hasScroll?: boolean;
195
- headerHighlighted?: boolean;
196
- footerHighlighted?: boolean;
197
- headerOffset?: number;
198
- setHeaderOffset: (offset: number) => void;
199
- contentRef: Ref<HTMLElement>;
200
- setHasHeader: (exists: boolean) => void;
201
- setHasFooter: (exists: boolean) => void;
202
- onClose: Required<BaseModalProps>["onClose"];
203
- };
204
- // eslint-disable-next-line @typescript-eslint/no-redeclare
205
- declare const BaseModalContext: React.Context<BaseModalContext>;
206
17
  type BottomSheetTitleAlign = "center" | "left";
207
18
  type BottomSheetProps = {
208
19
  /**
@@ -300,7 +111,8 @@ type BottomSheetProps = {
300
111
  */
301
112
  transitionProps?: Partial<TransitionProps>;
302
113
  /**
303
- * Идентификатор для систем автоматизированного тестирования
114
+ * Идентификатор для систем автоматизированного тестирования.
115
+ * Для заголовка используется модификатор -header
304
116
  */
305
117
  dataTestId?: string;
306
118
  /**
@@ -494,43 +306,9 @@ declare const Input: React.ForwardRefExoticComponent<Omit<BaseInputProps, "FormC
494
306
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
495
307
  } & React.RefAttributes<HTMLInputElement>>;
496
308
  type HeaderProps = Omit<NavigationBarProps, "size" | "view" | "parentRef">;
497
- type ModalDesktopProps = BaseModalProps & {
498
- /**
499
- * Ширина модального окна
500
- * @default "m"
501
- */
502
- size?: "s" | "m" | "l" | "xl" | "fullscreen";
503
- /**
504
- * Растягивает модальное окно на весь экран
505
- * @deprecated Используйте размер fullscreen
506
- */
507
- fullscreen?: boolean;
508
- /**
509
- * Фиксирует позицию модального окна после открытия,
510
- * предотвращая скачки, если контент внутри будет меняться
511
- */
512
- fixedPosition?: boolean;
513
- /**
514
- * Управление наличием закрывающего крестика
515
- * @default false
516
- */
517
- hasCloser?: boolean;
518
- };
519
- type ModalResponsiveProps = ModalDesktopProps & {
520
- /**
521
- * Контрольная точка, с нее начинается desktop версия
522
- * @default 1024
523
- */
524
- breakpoint?: number;
525
- };
526
- type View = "desktop" | "mobile";
527
- type TResponsiveModalContext = {
528
- view: View;
529
- size: NonNullable<ModalDesktopProps["size"]>;
530
- };
531
- type ContentProps = {
309
+ type FooterProps = {
532
310
  /**
533
- * Контент
311
+ * Контент футера
534
312
  */
535
313
  children?: ReactNode;
536
314
  /**
@@ -538,43 +316,55 @@ type ContentProps = {
538
316
  */
539
317
  className?: string;
540
318
  /**
541
- * Растягивает контент на всю высоту
319
+ * Фиксирует футер
542
320
  */
543
- flex?: boolean;
544
- };
545
- type FooterProps = {
321
+ sticky?: boolean;
546
322
  /**
547
- * Контент футера
323
+ * Выравнивание элементов футера
548
324
  */
549
- children?: ReactNode;
325
+ layout?: "start" | "center" | "space-between" | "column";
550
326
  /**
551
- * Дополнительный класс
327
+ * Отступы между элементами футера
552
328
  */
553
- className?: string;
329
+ gap?: 16 | 24 | 32;
330
+ };
331
+ interface ControlsProps {
554
332
  /**
555
- * Фиксирует футер
333
+ * Основной слот
556
334
  */
557
- sticky?: boolean;
335
+ primary?: ReactNode;
336
+ /**
337
+ * Дополнительный слот
338
+ */
339
+ secondary?: ReactNode;
558
340
  /**
559
341
  * Выравнивание элементов футера
342
+ * @default start
560
343
  */
561
344
  layout?: "start" | "center" | "space-between" | "column";
345
+ /**
346
+ * Выравнивание элементов футера (мобильный view)
347
+ * @default start
348
+ */
349
+ mobileLayout?: "start" | "center" | "space-between" | "column";
562
350
  /**
563
351
  * Отступы между элементами футера
564
352
  */
565
353
  gap?: 16 | 24 | 32;
566
- };
567
- declare const ModalResponsive: React.ForwardRefExoticComponent<BaseModalProps & {
354
+ }
355
+ declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
568
356
  size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
569
357
  fullscreen?: boolean | undefined;
570
358
  fixedPosition?: boolean | undefined;
571
359
  hasCloser?: boolean | undefined;
572
360
  } & {
573
361
  breakpoint?: number | undefined;
362
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
574
363
  } & React.RefAttributes<HTMLDivElement>> & {
575
364
  Header: React.FC<HeaderProps>;
576
- Content: React.FC<ContentProps>;
365
+ Content: React.FC<import("./typings-08e5596c").ContentProps>;
577
366
  Footer: React.FC<FooterProps>;
367
+ Controls: React.FC<ControlsProps>;
578
368
  };
579
369
  declare const ModalContext: import("react").Context<BaseModalContext>;
580
370
  type FooterProps$0 = {
@@ -597,14 +387,6 @@ type HeaderProps$0 = Omit<NavigationBarProps, "view" | "size"> & {
597
387
  headerOffset: number;
598
388
  };
599
389
  declare const Header$0: FC<HeaderProps$0>;
600
- declare const Modal: React.ForwardRefExoticComponent<BaseModalProps & {
601
- size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
602
- fullscreen?: boolean | undefined;
603
- fixedPosition?: boolean | undefined;
604
- hasCloser?: boolean | undefined;
605
- } & {
606
- view: View;
607
- } & React.RefAttributes<HTMLDivElement>>;
608
390
  type SwipeableBackdropProps = BackdropProps & {
609
391
  /**
610
392
  * Прозрачность бэкдропа
@@ -620,57 +402,7 @@ type SwipeableBackdropProps = BackdropProps & {
620
402
  opacityTimeout?: number;
621
403
  };
622
404
  declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
623
- /**
624
- * Набор констант для z-index соответствующих классов компонентов.
625
- * Значения выбраны по приоритету.
626
- */
627
- declare const stackingOrder: {
628
- FOCUSED: number;
629
- DEFAULT: number;
630
- POPOVER: number;
631
- MODAL: number;
632
- TOAST: number;
633
- };
634
- declare const StackingContext: import("react").Context<number>;
635
- type StackProps = {
636
- /**
637
- * Render prop, в который передается функция.
638
- * Функция принимает аргумент со значением z-index из текущего контекста.
639
- */
640
- children: (value: number) => ReactNode;
641
- /**
642
- * Исходное значение для z-index.
643
- * @default 5
644
- */
645
- value?: number;
646
- };
647
- declare const Stack: FC<StackProps>;
648
- declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
649
- declare const getDefaultPortalContainer: () => Element;
650
- declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
651
- type SavedStyle = {
652
- value: string;
653
- key: string;
654
- el: HTMLElement;
655
- };
656
- type RestoreStyle = {
657
- container: HTMLElement;
658
- modals: number;
659
- styles: SavedStyle[];
660
- };
661
- declare class ModalStore {
662
- private readonly restoreStyles;
663
- constructor();
664
- getRestoreStyles: () => RestoreStyle[];
665
- }
666
- declare const getModalStore: () => ModalStore;
667
- declare class GlobalStore {
668
- private readonly modalStore;
669
- constructor();
670
- getModalStore: () => ModalStore;
671
- }
672
405
  declare const Content: FC<ContentProps>;
673
- declare const ResponsiveContext: React.Context<TResponsiveModalContext>;
674
406
  type AnyObject = Record<string, any>;
675
407
  type OptionShape = {
676
408
  /**
@@ -712,7 +444,10 @@ type BaseSelectChangePayload = {
712
444
  };
713
445
  type BaseSelectProps = {
714
446
  /**
715
- * Идентификатор для систем автоматизированного тестирования
447
+ * Идентификатор для систем автоматизированного тестирования.
448
+ * Для пункта меню используется модификатор -option, компонента поиска -search,
449
+ * компонента выпадающего меню -options-list, компонента BottomSheet -bottom-sheet,
450
+ * компонента поля -field, компонета FormControl -field-form-control
716
451
  */
717
452
  dataTestId?: string;
718
453
  /**
@@ -1317,7 +1052,9 @@ type SelectProps = BaseSelectProps & AdditionalMobileProps & ConditionalMobilePr
1317
1052
  */
1318
1053
  defaultMatchMediaValue?: boolean | (() => boolean);
1319
1054
  };
1320
- export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal, ModalResponsiveProps as ModalProps, ModalContext, 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, Content, ResponsiveContext, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
1321
- export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, ContentProps as ModalContentProps, SavedStyle };
1055
+ export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal, ModalContext, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, Content, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps };
1056
+ export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps };
1057
+ export { ModalResponsiveProps as ModalProps } from "./typings-08e5596c";
1058
+ export type { ContentProps as ModalContentProps } from "./typings-08e5596c";
1322
1059
  export * from "./Component.desktop-63dec22f";
1323
1060
  export * from "./Component.mobile-96988a65";
@@ -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, }: {
@@ -21,7 +21,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
21
21
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
22
22
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
23
23
 
24
- var styles = {"container":"picker-button__container_1wrm3","optionsPopover":"picker-button__optionsPopover_1wrm3","sideGap":"picker-button__sideGap_1wrm3","option":"picker-button__option_1wrm3"};
24
+ var styles = {"container":"picker-button__container_q0aq2","optionsPopover":"picker-button__optionsPopover_q0aq2","sideGap":"picker-button__sideGap_q0aq2","option":"picker-button__option_q0aq2"};
25
25
  require('./../index.css')
26
26
 
27
27
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -95,7 +95,9 @@ type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
95
95
  */
96
96
  rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
97
97
  /**
98
- * Идентификатор для систем автоматизированного тестирования
98
+ * Идентификатор для систем автоматизированного тестирования.
99
+ * Для слота слева используется модификатор -left-addons, слота справа -right-addons,
100
+ * ошибки -error-message, текста подсказки -hint
99
101
  */
100
102
  dataTestId?: string;
101
103
  /**
@@ -199,7 +201,9 @@ declare const BaseFormControl: React.ForwardRefExoticComponent<React.HTMLAttribu
199
201
  */
200
202
  rightAddonsProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
201
203
  /**
202
- * Идентификатор для систем автоматизированного тестирования
204
+ * Идентификатор для систем автоматизированного тестирования.
205
+ * Для слота слева используется модификатор -left-addons, слота справа -right-addons,
206
+ * ошибки -error-message, текста подсказки -hint
203
207
  */
204
208
  dataTestId?: string | undefined;
205
209
  /**
@@ -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,13 @@
1
1
  /// <reference types="react" />
2
- import React from 'react';
2
+ import React from "react";
3
3
  import { ChangeEvent, ElementType, HTMLAttributes, InputHTMLAttributes, MouseEvent, ReactNode, RefAttributes } from "react";
4
4
  import { FormControlProps } from "./index-c44170fe";
5
+ interface ClearButtonProps {
6
+ disabled?: boolean;
7
+ onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
8
+ colors: "default" | "inverted";
9
+ }
10
+ declare const ClearButton: React.FC<ClearButtonProps>;
5
11
  type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'onClick' | 'onMouseDown' | 'enterKeyHint'> & {
6
12
  /**
7
13
  * Значение поля ввода
@@ -130,7 +136,8 @@ type BaseInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type
130
136
  */
131
137
  FormControlComponent?: ElementType<FormControlProps & RefAttributes<HTMLDivElement>>;
132
138
  /**
133
- * Идентификатор для систем автоматизированного тестирования
139
+ * Идентификатор для систем автоматизированного тестирования.
140
+ * Для FormControl используется модификатор -form-control
134
141
  */
135
142
  dataTestId?: string;
136
143
  /**
@@ -269,7 +276,8 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
269
276
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
270
277
  } & React.RefAttributes<HTMLDivElement>> | undefined;
271
278
  /**
272
- * Идентификатор для систем автоматизированного тестирования
279
+ * Идентификатор для систем автоматизированного тестирования.
280
+ * Для FormControl используется модификатор -form-control
273
281
  */
274
282
  dataTestId?: string | undefined;
275
283
  /**
@@ -278,4 +286,4 @@ declare const BaseInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAtt
278
286
  disableUserInput?: boolean | undefined;
279
287
  } & React.RefAttributes<HTMLInputElement>>;
280
288
  export * from "./Component-72dda473";
281
- export { BaseInputProps, BaseInput };
289
+ export { ClearButton, BaseInputProps, BaseInput };
@@ -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 };
@@ -12,7 +12,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
12
12
  import '@alfalab/icons-glyph/MoreMIcon';
13
13
  import '@alfalab/icons-glyph/MoreSIcon';
14
14
 
15
- var styles = {"container":"picker-button__container_1wrm3","optionsPopover":"picker-button__optionsPopover_1wrm3","sideGap":"picker-button__sideGap_1wrm3","option":"picker-button__option_1wrm3"};
15
+ var styles = {"container":"picker-button__container_q0aq2","optionsPopover":"picker-button__optionsPopover_q0aq2","sideGap":"picker-button__sideGap_q0aq2","option":"picker-button__option_q0aq2"};
16
16
  require('./../index.css')
17
17
 
18
18
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ButtonProps } from "@alfalab/core-components-button";
4
- import { FieldProps as BaseFieldProps } from "../typings-e63ec8aa";
4
+ import { FieldProps as BaseFieldProps } from "../typings-c29389e5";
5
5
  import { PickerButtonSize, PickerButtonVariant } from "../types";
6
6
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
@@ -8,7 +8,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
8
8
  import '@alfalab/icons-glyph/MoreMIcon';
9
9
  import '@alfalab/icons-glyph/MoreSIcon';
10
10
 
11
- var styles = {"iconContainer":"picker-button__iconContainer_d1k4j","addonsContainer":"picker-button__addonsContainer_d1k4j","showControlIcon":"picker-button__showControlIcon_d1k4j","open":"picker-button__open_d1k4j","linkOpen":"picker-button__linkOpen_d1k4j"};
11
+ var styles = {"iconContainer":"picker-button__iconContainer_qtu41","addonsContainer":"picker-button__addonsContainer_qtu41","showControlIcon":"picker-button__showControlIcon_qtu41","open":"picker-button__open_qtu41","linkOpen":"picker-button__linkOpen_qtu41"};
12
12
  require('./index.css')
13
13
 
14
14
  var Field = function (_a) {
@@ -1,7 +1,7 @@
1
- /* hash: 23qat */
1
+ /* hash: nti2t */
2
2
  :root {
3
3
  } /* deprecated */ :root {
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 */
4
+ --color-light-transparent-default-hover: 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 */
5
5
  } :root { /* 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 */
6
6
  } :root {
7
7
  } :root {
@@ -17,15 +17,15 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --arrow-transform: rotate(180deg);
20
- } .picker-button__iconContainer_d1k4j {
20
+ } .picker-button__iconContainer_qtu41 {
21
21
  display: flex;
22
22
  transition: transform 0.15s ease-in-out;
23
- } .picker-button__addonsContainer_d1k4j {
23
+ } .picker-button__addonsContainer_qtu41 {
24
24
  display: flex
25
- } .picker-button__addonsContainer_d1k4j.picker-button__showControlIcon_d1k4j {
25
+ } .picker-button__addonsContainer_qtu41.picker-button__showControlIcon_qtu41 {
26
26
  margin-right: var(--gap-2xs);
27
- } .picker-button__open_d1k4j {
27
+ } .picker-button__open_qtu41 {
28
28
  transform: var(--arrow-transform);
29
- } .picker-button__linkOpen_d1k4j:not(:hover) {
30
- background-color: var(--color-light-neutral-translucent-100);
29
+ } .picker-button__linkOpen_qtu41:not(:hover) {
30
+ background-color: var(--color-light-transparent-default-hover);
31
31
  }