@alfalab/core-components-picker-button 11.1.7 → 11.1.9

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 (126) hide show
  1. package/{Component-f12ee135.d.ts → Component-0f4b9bed.d.ts} +1 -1
  2. package/{esm/Component-72308007.d.ts → Component-10db897e.d.ts} +1 -1
  3. package/Component-ebda875c.d.ts +9 -98
  4. package/Component.desktop-785df74d.d.ts +1 -1
  5. package/Component.desktop.d.ts +2 -2
  6. package/Component.desktop.js +1 -1
  7. package/Component.mobile-d7e9f69d.d.ts +1 -1
  8. package/{esm/Component.mobile-ade26e99.d.ts → Component.mobile-f28cbba0.d.ts} +1 -1
  9. package/Component.mobile.d.ts +1 -1
  10. package/{esm/Component.modal.mobile-dd8ca091.d.ts → Component.modal.mobile-0f4b9bed.d.ts} +1 -1
  11. package/{Component.responsive-d7e9f69d.d.ts → Component.responsive-3109f463.d.ts} +1 -1
  12. package/Component.responsive.d.ts +1 -1
  13. package/{modern/Component-dd8ca091.d.ts → cssm/Component-0f4b9bed.d.ts} +1 -1
  14. package/cssm/{Component-72308007.d.ts → Component-10db897e.d.ts} +1 -1
  15. package/cssm/Component.desktop.d.ts +2 -2
  16. package/cssm/{Component.mobile-ade26e99.d.ts → Component.mobile-f28cbba0.d.ts} +1 -1
  17. package/cssm/{Component.modal.mobile-dd8ca091.d.ts → Component.modal.mobile-0f4b9bed.d.ts} +1 -1
  18. package/cssm/Component.responsive-3109f463.d.ts +1 -1
  19. package/cssm/Component.responsive.d.ts +1 -1
  20. package/cssm/desktop-69921c40.d.ts +6 -0
  21. package/cssm/field/Component.d.ts +1 -1
  22. package/cssm/hook-8abfea97.d.ts +8 -8
  23. package/{modern/index-72308007.d.ts → cssm/index-10db897e.d.ts} +1 -5
  24. package/cssm/index-c76d6398.d.ts +1 -1
  25. package/cssm/index-f12ee135.d.ts +1 -1
  26. package/cssm/mobile-89f0cb07.d.ts +6 -0
  27. package/cssm/shared-4cd3936b.d.ts +5 -5
  28. package/{typings-dd8ca091.d.ts → cssm/typings-0f4b9bed.d.ts} +4 -0
  29. package/{esm/typings-9211a437.d.ts → cssm/typings-89f0cb07.d.ts} +5 -7
  30. package/{modern/utils-dd8ca091.d.ts → cssm/utils-0f4b9bed.d.ts} +1 -1
  31. package/desktop-69921c40.d.ts +6 -0
  32. package/esm/{Component-dd8ca091.d.ts → Component-0f4b9bed.d.ts} +1 -1
  33. package/{modern/Component-72308007.d.ts → esm/Component-10db897e.d.ts} +1 -1
  34. package/esm/Component.desktop.d.ts +2 -2
  35. package/esm/Component.desktop.js +1 -1
  36. package/{Component.mobile-ade26e99.d.ts → esm/Component.mobile-f28cbba0.d.ts} +1 -1
  37. package/{modern/Component.modal.mobile-dd8ca091.d.ts → esm/Component.modal.mobile-0f4b9bed.d.ts} +1 -1
  38. package/esm/Component.responsive-3109f463.d.ts +1 -1
  39. package/esm/Component.responsive.d.ts +1 -1
  40. package/esm/desktop-69921c40.d.ts +6 -0
  41. package/esm/field/Component.d.ts +1 -1
  42. package/esm/field/Component.js +1 -1
  43. package/esm/field/index.css +6 -6
  44. package/esm/hook-8abfea97.d.ts +8 -8
  45. package/esm/{index-72308007.d.ts → index-10db897e.d.ts} +1 -5
  46. package/esm/index-c76d6398.d.ts +1 -1
  47. package/esm/index-f12ee135.d.ts +1 -1
  48. package/esm/index.css +5 -5
  49. package/esm/mobile-89f0cb07.d.ts +6 -0
  50. package/esm/option/Component.js +1 -1
  51. package/esm/option/index.css +4 -4
  52. package/esm/shared-4cd3936b.d.ts +5 -5
  53. package/{cssm/typings-dd8ca091.d.ts → esm/typings-0f4b9bed.d.ts} +4 -0
  54. package/{typings-9211a437.d.ts → esm/typings-89f0cb07.d.ts} +5 -7
  55. package/{cssm/utils-dd8ca091.d.ts → esm/utils-0f4b9bed.d.ts} +1 -1
  56. package/field/Component.d.ts +1 -1
  57. package/field/Component.js +1 -1
  58. package/field/index.css +6 -6
  59. package/hook-8abfea97.d.ts +10 -10
  60. package/{cssm/index-72308007.d.ts → index-10db897e.d.ts} +1 -5
  61. package/index-bdb4c6b9.d.ts +2 -180
  62. package/index-c44170fe.d.ts +1 -1
  63. package/index-c76d6398.d.ts +1 -1
  64. package/index-ebda875c.d.ts +53 -191
  65. package/index-f12ee135.d.ts +3 -324
  66. package/index.css +5 -5
  67. package/mobile-89f0cb07.d.ts +6 -0
  68. package/{cssm/Component-dd8ca091.d.ts → modern/Component-0f4b9bed.d.ts} +1 -1
  69. package/modern/Component-10db897e.d.ts +6 -0
  70. package/modern/Component-69921c40.d.ts +184 -0
  71. package/modern/Component.desktop.d.ts +2 -2
  72. package/modern/Component.desktop.js +1 -1
  73. package/modern/{Component.mobile-ade26e99.d.ts → Component.mobile-f28cbba0.d.ts} +1 -1
  74. package/modern/Component.modal.mobile-0f4b9bed.d.ts +60 -0
  75. package/modern/Component.responsive-3109f463.d.ts +1 -1
  76. package/modern/Component.responsive.d.ts +1 -1
  77. package/modern/component-10db897e.d.ts +44 -0
  78. package/modern/desktop-69921c40.d.ts +6 -0
  79. package/modern/field/Component.d.ts +1 -1
  80. package/modern/field/Component.js +1 -1
  81. package/modern/field/index.css +6 -6
  82. package/modern/hook-8abfea97.d.ts +8 -8
  83. package/{index-72308007.d.ts → modern/index-10db897e.d.ts} +2 -6
  84. package/modern/index-c76d6398.d.ts +1 -1
  85. package/modern/index-f12ee135.d.ts +1 -1
  86. package/modern/index.css +5 -5
  87. package/modern/mobile-89f0cb07.d.ts +6 -0
  88. package/modern/option/Component.js +1 -1
  89. package/modern/option/index.css +4 -4
  90. package/modern/shared-4cd3936b.d.ts +5 -5
  91. package/{esm/typings-dd8ca091.d.ts → modern/typings-0f4b9bed.d.ts} +4 -0
  92. package/modern/{typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
  93. package/{esm/utils-dd8ca091.d.ts → modern/utils-0f4b9bed.d.ts} +1 -1
  94. package/option/Component.js +1 -1
  95. package/option/index.css +4 -4
  96. package/package.json +3 -3
  97. package/shared-4cd3936b.d.ts +63 -5
  98. package/src/Component.desktop.tsx +3 -0
  99. package/types-67a2d8af.d.ts +276 -0
  100. package/{modern/typings-dd8ca091.d.ts → typings-0f4b9bed.d.ts} +4 -0
  101. package/{cssm/typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
  102. package/{utils-dd8ca091.d.ts → utils-0f4b9bed.d.ts} +1 -1
  103. package/utils-1574ad8b.d.ts +29 -0
  104. package/utils-49cc3c24.d.ts +8 -0
  105. package/Component-72308007.d.ts +0 -296
  106. package/Component-72dda473.d.ts +0 -53
  107. package/Component-aed0af6e.d.ts +0 -11
  108. package/Component-dd8ca091.d.ts +0 -5
  109. package/Component.mobile-96988a65.d.ts +0 -6
  110. package/Component.mobile-ebda875c.d.ts +0 -6
  111. package/cssm/Component.mobile-ebda875c.d.ts +0 -6
  112. package/cssm/desktop-63dec22f.d.ts +0 -6
  113. package/desktop-63dec22f.d.ts +0 -6
  114. package/esm/Component.mobile-ebda875c.d.ts +0 -6
  115. package/esm/desktop-63dec22f.d.ts +0 -6
  116. package/hook-ebda875c.d.ts +0 -48
  117. package/modern/Component.mobile-ebda875c.d.ts +0 -6
  118. package/modern/desktop-63dec22f.d.ts +0 -6
  119. /package/{cssm/Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
  120. /package/{cssm/component-72308007.d.ts → component-10db897e.d.ts} +0 -0
  121. /package/{esm/Component-63dec22f.d.ts → cssm/Component-69921c40.d.ts} +0 -0
  122. /package/{esm/component-72308007.d.ts → cssm/component-10db897e.d.ts} +0 -0
  123. /package/{modern/Component-63dec22f.d.ts → esm/Component-69921c40.d.ts} +0 -0
  124. /package/{modern/component-72308007.d.ts → esm/component-10db897e.d.ts} +0 -0
  125. /package/{mobile-96988a65.d.ts → mobile-d7e9f69d.d.ts} +0 -0
  126. /package/{useSkeleton-1b036d4b.d.ts → useSkeleton-ebda875c.d.ts} +0 -0
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ReactNode } from "react";
4
4
  import { BottomSheetProps } from "./index-f12ee135";
5
- import { BaseSelectProps } from "./typings-dd8ca091";
5
+ import { BaseSelectProps } from "./typings-0f4b9bed";
6
6
  type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Футер
@@ -2,5 +2,5 @@
2
2
  import React from 'react';
3
3
  import { NavigationBarProps } from "./types-1c79e231";
4
4
  declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
5
- export * from "./Component-63dec22f";
5
+ export * from "./Component-69921c40";
6
6
  export { NavigationBar };
@@ -1,101 +1,12 @@
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 { CSSProperties, MutableRefObject, ReactNode } from "react";
5
- import { CSSTransitionProps } from 'react-transition-group/CSSTransition';
6
- import { BasePlacement, VariationPlacement } from '@popperjs/core';
7
- type RefElement = HTMLElement | null;
8
- type Position = BasePlacement | VariationPlacement;
9
- type PopoverProps = {
10
- /**
11
- * Управление состоянием поповера (открыт/закрыт)
12
- */
13
- open: boolean;
14
- /**
15
- * Элемент, относительного которого появляется поповер
16
- */
17
- anchorElement: RefElement;
18
- /**
19
- * Использовать ширину родительского элемента
20
- */
21
- useAnchorWidth?: boolean;
22
- /**
23
- * Позиционирование поповера
24
- */
25
- position?: Position;
26
- /**
27
- * Запрещает поповеру менять свою позицию.
28
- * Например, если места снизу недостаточно,то он все равно будет показан снизу
29
- */
30
- preventFlip?: boolean;
31
- /**
32
- * Запрещает поповеру менять свою позицию, если он не влезает в видимую область.
33
- */
34
- preventOverflow?: boolean;
35
- /**
36
- * Позволяет поповеру подствраивать свою высоту под границы экрана, если из-за величины контента он выходит за рамки видимой области экрана
37
- */
38
- availableHeight?: boolean;
39
- /**
40
- * Если `true`, будет отрисована стрелочка
41
- */
42
- withArrow?: boolean;
43
- /**
44
- * Смещение поповера.
45
- * Если позиционирование top, bottom, то [x, y].
46
- * Если позиционирование left, right то [y, x].
47
- */
48
- offset?: [number, number];
49
- /**
50
- * Дополнительный класс для поповера
51
- */
52
- popperClassName?: string;
53
- /**
54
- * Дополнительный класс для стрелочки
55
- */
56
- arrowClassName?: string;
57
- /**
58
- * Функция, возвращающая контейнер, в который будет рендериться поповер
59
- */
60
- getPortalContainer?: () => HTMLElement;
61
- /**
62
- * CSSTransitionProps, прокидываются в компонент CSSTransitionProps.
63
- */
64
- transition?: CSSTransitionProps;
65
- /**
66
- * Выставляет кастомное свойство transition-duration
67
- */
68
- transitionDuration?: CSSProperties['transitionDuration'];
69
- /**
70
- * Рендерит компонент, обернутый в Transition
71
- */
72
- withTransition?: boolean;
73
- /**
74
- * Идентификатор для систем автоматизированного тестирования
75
- */
76
- dataTestId?: string;
77
- /**
78
- * Хранит функцию, с помощью которой можно обновить положение компонента
79
- */
80
- update?: MutableRefObject<() => void>;
81
- /**
82
- * Дополнительный класс
83
- */
84
- className?: string;
85
- /**
86
- * z-index компонента
87
- */
88
- zIndex?: number;
89
- /**
90
- * Если поповер не помещается в переданной позиции (position), он попробует открыться в другой позиции,
91
- * по очереди для каждой позиции из этого списка.
92
- * Если не передавать, то поповер открывается в противоположном направлении от переданного position.
93
- */
94
- fallbackPlacements?: Position[];
95
- /**
96
- * Контент
97
- */
98
- children?: ReactNode;
4
+ import { CheckboxProps } from "./index-ebda875c";
5
+ type HeaderProps = {
6
+ checked?: boolean;
7
+ indeterminate?: boolean;
8
+ onChange?: CheckboxProps['onChange'];
9
+ mobile?: boolean;
99
10
  };
100
- declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
101
- export { Position, PopoverProps, Popover };
11
+ declare const Header: React.FC<HeaderProps>;
12
+ export { HeaderProps, Header };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./Component.responsive-3109f463";
4
4
  type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlDesktopProps, FormControlDesktop };
@@ -4,7 +4,7 @@ import { FC, SVGProps } from "react";
4
4
  import { ButtonProps } from "@alfalab/core-components-button";
5
5
  import { BaseSelectProps } from "./shared-4cd3936b";
6
6
  import { PickerButtonSize, PickerButtonVariant } from "./types";
7
- type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
7
+ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options' | 'searchProps' | 'showSearch' | 'Search'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
8
8
  options: Array<BaseSelectProps['options'][0] & {
9
9
  /**
10
10
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -25,7 +25,7 @@ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' |
25
25
  */
26
26
  showArrow?: boolean;
27
27
  };
28
- declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "Arrow" | "autocomplete" | "allowUnselect" | "closeOnSelect"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
28
+ declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
29
29
  options: Array<BaseSelectProps['options'][0] & {
30
30
  /**
31
31
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -20,7 +20,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
20
20
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
21
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
22
22
 
23
- var styles = {"container":"picker-button__container_1me4e","optionsPopover":"picker-button__optionsPopover_1me4e","sideGap":"picker-button__sideGap_1me4e","option":"picker-button__option_1me4e"};
23
+ var styles = {"container":"picker-button__container_kzg9i","optionsPopover":"picker-button__optionsPopover_kzg9i","sideGap":"picker-button__sideGap_kzg9i","option":"picker-button__option_kzg9i"};
24
24
  require('./index.css')
25
25
 
26
26
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
3
+ import { BaseFormControlProps } from "./Component.responsive-3109f463";
4
4
  type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
5
5
  declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
6
6
  export { FormControlMobileProps, FormControlMobile };
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { ReactNode } from "react";
4
4
  import { BottomSheetProps } from "./index-f12ee135";
5
5
  import { UseSelectWithApplyProps } from "./hook-8abfea97";
6
- import { BaseSelectProps } from "./typings-dd8ca091";
6
+ import { BaseSelectProps } from "./typings-0f4b9bed";
7
7
  type AdditionalMobileProps = {
8
8
  /**
9
9
  * Футер
@@ -9,7 +9,7 @@ type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, 'OptionsList' | 'C
9
9
  */
10
10
  breakpoint?: number;
11
11
  };
12
- declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "Checkmark" | "OptionsList"> & AdditionalMobileProps & {
12
+ declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "OptionsList" | "Checkmark"> & AdditionalMobileProps & {
13
13
  /**
14
14
  * Контрольная точка для кнопки, с нее начинается desktop версия
15
15
  * @default 1024
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ModalMobile } from "./Component.mobile-f1f15074";
4
4
  import { UseSelectWithApplyProps } from "./hook-8abfea97";
5
- import { BaseSelectProps } from "./typings-dd8ca091";
5
+ import { BaseSelectProps } from "./typings-0f4b9bed";
6
6
  type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Показывать кнопку очистки
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BaseFormControlProps } from "./index-ebda875c";
4
3
  type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
5
4
  /**
6
5
  * Контрольная точка, с нее начинается desktop версия
@@ -23,4 +22,5 @@ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlP
23
22
  */
24
23
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
25
24
  } & React.RefAttributes<HTMLDivElement>>;
25
+ export * from "./Component-10db897e";
26
26
  export { FormControlProps, FormControl };
@@ -11,7 +11,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
11
11
  */
12
12
  breakpoint?: number;
13
13
  };
14
- declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "Arrow" | "autocomplete" | "allowUnselect" | "closeOnSelect"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
14
+ declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
15
15
  options: ((import("./shared-4cd3936b").OptionShape | import("./shared-4cd3936b").GroupShape) & {
16
16
  icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
17
17
  })[];
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ReactNode } from "react";
4
4
  import { BottomSheetProps } from "./index-f12ee135";
5
- import { BaseSelectProps } from "./typings-dd8ca091";
5
+ import { BaseSelectProps } from "./typings-0f4b9bed";
6
6
  type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Футер
@@ -2,5 +2,5 @@
2
2
  import React from 'react';
3
3
  import { NavigationBarProps } from "./types-1c79e231";
4
4
  declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
5
- export * from "./Component-63dec22f";
5
+ export * from "./Component-69921c40";
6
6
  export { NavigationBar };
@@ -4,7 +4,7 @@ import { FC, SVGProps } from "react";
4
4
  import { ButtonProps } from "@alfalab/core-components-button";
5
5
  import { BaseSelectProps } from "./shared-4cd3936b";
6
6
  import { PickerButtonSize, PickerButtonVariant } from "./types";
7
- type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
7
+ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options' | 'searchProps' | 'showSearch' | 'Search'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
8
8
  options: Array<BaseSelectProps['options'][0] & {
9
9
  /**
10
10
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -25,7 +25,7 @@ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' |
25
25
  */
26
26
  showArrow?: boolean;
27
27
  };
28
- declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
28
+ declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
29
29
  options: Array<BaseSelectProps['options'][0] & {
30
30
  /**
31
31
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { ReactNode } from "react";
4
4
  import { BottomSheetProps } from "./index-f12ee135";
5
5
  import { UseSelectWithApplyProps } from "./hook-8abfea97";
6
- import { BaseSelectProps } from "./typings-dd8ca091";
6
+ import { BaseSelectProps } from "./typings-0f4b9bed";
7
7
  type AdditionalMobileProps = {
8
8
  /**
9
9
  * Футер
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ModalMobile } from "./Component.mobile-f1f15074";
4
4
  import { UseSelectWithApplyProps } from "./hook-8abfea97";
5
- import { BaseSelectProps } from "./typings-dd8ca091";
5
+ import { BaseSelectProps } from "./typings-0f4b9bed";
6
6
  type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Показывать кнопку очистки
@@ -22,5 +22,5 @@ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlP
22
22
  */
23
23
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
24
24
  } & React.RefAttributes<HTMLDivElement>>;
25
- export * from "./Component-72308007";
25
+ export * from "./Component-10db897e";
26
26
  export { FormControlProps, FormControl };
@@ -11,7 +11,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
11
11
  */
12
12
  breakpoint?: number;
13
13
  };
14
- declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
14
+ declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
15
15
  options: ((import("./shared-4cd3936b").OptionShape | import("./shared-4cd3936b").GroupShape) & {
16
16
  icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
17
17
  })[];
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
6
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -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-dd8ca091";
4
+ import { FieldProps as BaseFieldProps } from "../typings-0f4b9bed";
5
5
  import { PickerButtonSize, PickerButtonVariant } from "../types";
6
6
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
7
7
  buttonSize?: PickerButtonSize;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BaseSelectProps, OptionShape } from "./typings-dd8ca091";
2
+ import { BaseSelectProps, OptionShape } from "./typings-0f4b9bed";
3
3
  type UseSelectWithApplyProps = {
4
4
  /**
5
5
  * Список выбранных пунктов
@@ -44,20 +44,20 @@ type UseSelectWithApplyProps = {
44
44
  };
45
45
  declare const SELECT_ALL_KEY = "select_all";
46
46
  declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
47
- OptionsList: import("react").ForwardRefExoticComponent<import("./typings-dd8ca091").OptionsListProps & {
47
+ OptionsList: import("react").ForwardRefExoticComponent<import("./typings-0f4b9bed").OptionsListProps & {
48
48
  showClear?: boolean | undefined;
49
49
  onClose?: (() => void) | undefined; /**
50
50
  * Компонент выпадающего меню
51
51
  */
52
52
  selectedDraft?: OptionShape[] | undefined;
53
- OptionsList?: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
54
- Footer?: import("react").FC<import("./Component-dd8ca091").FooterProps> | undefined;
53
+ OptionsList?: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
54
+ Footer?: import("react").FC<import("./Component-0f4b9bed").FooterProps> | undefined;
55
55
  Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
56
56
  headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
57
57
  showHeaderWithSelectAll?: boolean | undefined;
58
58
  } & import("react").RefAttributes<HTMLDivElement>>;
59
59
  optionsListProps: {
60
- OptionsList: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
60
+ OptionsList: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
61
61
  showClear: boolean;
62
62
  onClear: () => void;
63
63
  onApply: () => void;
@@ -72,11 +72,11 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
72
72
  };
73
73
  allowUnselect: boolean;
74
74
  multiple: boolean;
75
- options: (OptionShape | import("./typings-dd8ca091").GroupShape | {
75
+ options: (OptionShape | import("./typings-0f4b9bed").GroupShape | {
76
76
  key: string;
77
77
  content: string;
78
78
  })[];
79
- onChange: (payload: import("./typings-dd8ca091").BaseSelectChangePayload) => void;
79
+ onChange: (payload: import("./typings-0f4b9bed").BaseSelectChangePayload) => void;
80
80
  selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
81
81
  showSearch: boolean | undefined;
82
82
  searchProps: {
@@ -86,5 +86,5 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
86
86
  accessor?: ((option: OptionShape) => string) | undefined;
87
87
  } | undefined;
88
88
  };
89
- export * from "./Component-dd8ca091";
89
+ export * from "./Component-0f4b9bed";
90
90
  export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
@@ -10,10 +10,6 @@ declare function easeInOutQuad(x: number): number;
10
10
  declare const easingFns: {
11
11
  easeInOutQuad: typeof easeInOutQuad;
12
12
  };
13
- declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
14
- declare const inputUtils: {
15
- disableUserInput: typeof disableUserInput;
16
- };
17
13
  /**
18
14
  * Возвращает true, если значение равно null или undefined
19
15
  */
@@ -51,4 +47,4 @@ declare const maskUtils: {
51
47
  prefixPostprocessor: typeof prefixPostprocessor;
52
48
  caretGuard: typeof caretGuard;
53
49
  };
54
- export { createPaddingStyle, isClient, getDataTestId, easingFns, inputUtils, fnUtils, maskUtils };
50
+ export { createPaddingStyle, isClient, getDataTestId, easingFns, fnUtils, maskUtils };
@@ -1,2 +1,2 @@
1
- export * from "./Component-72308007";
1
+ export * from "./Component-10db897e";
2
2
  export type { NavigationBarProps } from "./types-1c79e231";
@@ -1,3 +1,3 @@
1
- export * from "./component-72308007";
1
+ export * from "./component-10db897e";
2
2
  export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-67a2d8af";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonMobile };
6
+ export type { CommonButtonProps as ButtonMobileProps } from "./typings-89f0cb07";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
- import { BaseSelectProps, OptionProps, OptionShape } from "./typings-dd8ca091";
3
+ import { BaseSelectProps, OptionProps, OptionShape } from "./typings-0f4b9bed";
4
4
  // eslint-disable-next-line @typescript-eslint/naming-convention
5
5
  type useSelectWithLoadingProps = {
6
6
  loading?: boolean;
@@ -57,9 +57,9 @@ declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton
57
57
  reset: () => void;
58
58
  };
59
59
  export * from "./index-ebda875c";
60
- export * from "./Component-dd8ca091";
60
+ export * from "./Component-0f4b9bed";
61
61
  export { useSelectWithLoading, useLazyLoading };
62
62
  export * from "./hook-8abfea97";
63
- export * from "./typings-dd8ca091";
64
- export * from "./utils-dd8ca091";
65
- export type { AdditionalMobileProps } from "./Component.mobile-ade26e99";
63
+ export * from "./typings-0f4b9bed";
64
+ export * from "./utils-0f4b9bed";
65
+ export type { AdditionalMobileProps } from "./Component.mobile-f28cbba0";
@@ -459,6 +459,10 @@ type OptionsListProps = {
459
459
  * Обработчик отмены изменений
460
460
  */
461
461
  onClear?: () => void;
462
+ /**
463
+ * Указать индекс пункта для hover состояния
464
+ */
465
+ setHighlightedIndex?: (index: number) => void;
462
466
  };
463
467
  type OptgroupProps = {
464
468
  /**
@@ -69,6 +69,8 @@ type ComponentProps = {
69
69
  * Дочерние элементы.
70
70
  */
71
71
  children?: ReactNode;
72
+ };
73
+ type PrivateButtonProps = {
72
74
  /**
73
75
  * Основные стили компонента.
74
76
  */
@@ -80,16 +82,12 @@ type ComponentProps = {
80
82
  */
81
83
  colorStylesMap: StyleColors;
82
84
  };
83
- type AnchorBaseButtonProps = ComponentProps & AnchorHTMLAttributes<HTMLAnchorElement>;
84
- type NativeBaseButtonProps = ComponentProps & ButtonHTMLAttributes<HTMLButtonElement>;
85
- type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
86
- type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
87
- type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
88
- type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
85
+ type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
86
+ type ButtonProps = CommonButtonProps & {
89
87
  /**
90
88
  * Контрольная точка, с нее начинается desktop версия
91
89
  * @default 1024
92
90
  */
93
91
  breakpoint?: number;
94
92
  };
95
- export { StyleColors, ComponentProps, AnchorBaseButtonProps, NativeBaseButtonProps, BaseButtonProps, AnchorButtonProps, NativeButtonProps, ButtonProps };
93
+ export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-dd8ca091";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-0f4b9bed";
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, }: {
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
6
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ReactNode } from "react";
4
4
  import { BottomSheetProps } from "./index-f12ee135";
5
- import { BaseSelectProps } from "./typings-dd8ca091";
5
+ import { BaseSelectProps } from "./typings-0f4b9bed";
6
6
  type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Футер
@@ -2,5 +2,5 @@
2
2
  import React from 'react';
3
3
  import { NavigationBarProps } from "./types-1c79e231";
4
4
  declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
5
- export * from "./Component-63dec22f";
5
+ export * from "./Component-69921c40";
6
6
  export { NavigationBar };
@@ -4,7 +4,7 @@ import { FC, SVGProps } from "react";
4
4
  import { ButtonProps } from "@alfalab/core-components-button";
5
5
  import { BaseSelectProps } from "./shared-4cd3936b";
6
6
  import { PickerButtonSize, PickerButtonVariant } from "./types";
7
- type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
7
+ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'hint' | 'allowUnselect' | 'options' | 'searchProps' | 'showSearch' | 'Search'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
8
8
  options: Array<BaseSelectProps['options'][0] & {
9
9
  /**
10
10
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -25,7 +25,7 @@ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' |
25
25
  */
26
26
  showArrow?: boolean;
27
27
  };
28
- declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
28
+ declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
29
29
  options: Array<BaseSelectProps['options'][0] & {
30
30
  /**
31
31
  * Иконка, отображающаяся слева от текстового представления пункта
@@ -11,7 +11,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
11
11
  import '@alfalab/icons-glyph/MoreMIcon';
12
12
  import '@alfalab/icons-glyph/MoreSIcon';
13
13
 
14
- var styles = {"container":"picker-button__container_1me4e","optionsPopover":"picker-button__optionsPopover_1me4e","sideGap":"picker-button__sideGap_1me4e","option":"picker-button__option_1me4e"};
14
+ var styles = {"container":"picker-button__container_kzg9i","optionsPopover":"picker-button__optionsPopover_kzg9i","sideGap":"picker-button__sideGap_kzg9i","option":"picker-button__option_kzg9i"};
15
15
  require('./index.css')
16
16
 
17
17
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { ReactNode } from "react";
4
4
  import { BottomSheetProps } from "./index-f12ee135";
5
5
  import { UseSelectWithApplyProps } from "./hook-8abfea97";
6
- import { BaseSelectProps } from "./typings-dd8ca091";
6
+ import { BaseSelectProps } from "./typings-0f4b9bed";
7
7
  type AdditionalMobileProps = {
8
8
  /**
9
9
  * Футер
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ModalMobile } from "./Component.mobile-f1f15074";
4
4
  import { UseSelectWithApplyProps } from "./hook-8abfea97";
5
- import { BaseSelectProps } from "./typings-dd8ca091";
5
+ import { BaseSelectProps } from "./typings-0f4b9bed";
6
6
  type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Показывать кнопку очистки
@@ -22,5 +22,5 @@ declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlP
22
22
  */
23
23
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
24
24
  } & React.RefAttributes<HTMLDivElement>>;
25
- export * from "./Component-72308007";
25
+ export * from "./Component-10db897e";
26
26
  export { FormControlProps, FormControl };
@@ -11,7 +11,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
11
11
  */
12
12
  breakpoint?: number;
13
13
  };
14
- declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
14
+ declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "searchProps" | "showSearch" | "Arrow" | "Search"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
15
15
  options: ((import("./shared-4cd3936b").OptionShape | import("./shared-4cd3936b").GroupShape) & {
16
16
  icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
17
17
  })[];
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { CommonButtonProps } from "./typings-89f0cb07";
4
+ declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { ButtonDesktop };
6
+ export type { CommonButtonProps as ButtonDesktopProps } from "./typings-89f0cb07";
@@ -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-dd8ca091";
4
+ import { FieldProps as BaseFieldProps } from "../typings-0f4b9bed";
5
5
  import { PickerButtonSize, PickerButtonVariant } from "../types";
6
6
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
7
7
  buttonSize?: PickerButtonSize;