@alfalab/core-components-input-autocomplete 10.0.0 → 10.0.2

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 (127) hide show
  1. package/{cssm/Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
  2. package/Component-5e1b8383.d.ts +70 -3
  3. package/Component-63dec22f.d.ts +166 -10
  4. package/{Component-425c8522.d.ts → Component-72dda473.d.ts} +1 -1
  5. package/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
  6. package/Component-ebda875c.d.ts +8 -265
  7. package/Component.mobile-ebda875c.d.ts +6 -0
  8. package/Component.mobile-f1f15074.d.ts +1 -1
  9. package/Component.mobile.d.ts +4 -5
  10. package/Component.mobile.js +1 -1
  11. package/{mobile-45dc17c6.d.ts → Component.modal.mobile-5e1b8383.d.ts} +27 -14
  12. package/Component.modal.mobile.d.ts +2 -2
  13. package/Component.modal.mobile.js +1 -1
  14. package/Component.responsive.d.ts +2 -3
  15. package/Component.responsive.js +1 -1
  16. package/autocomplete-field/Component.js +1 -1
  17. package/autocomplete-field/index.css +2 -2
  18. package/autocomplete-mobile-field/Component.d.ts +6 -2
  19. package/autocomplete-mobile-field/Component.js +1 -1
  20. package/autocomplete-mobile-field/index.css +8 -8
  21. package/{esm/component-89a3cf4c.d.ts → component-50136800.d.ts} +1 -1
  22. package/{modern/Component-89a3cf4c.d.ts → cssm/Component-50136800.d.ts} +1 -1
  23. package/cssm/Component-5e1b8383.d.ts +1 -1
  24. package/cssm/Component-72dda473.d.ts +53 -0
  25. package/cssm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
  26. package/cssm/Component.mobile-f1f15074.d.ts +1 -1
  27. package/cssm/Component.mobile.d.ts +3 -4
  28. package/cssm/Component.modal.mobile-5e1b8383.d.ts +1 -1
  29. package/cssm/Component.responsive.d.ts +1 -2
  30. package/cssm/autocomplete-mobile-field/Component.d.ts +6 -2
  31. package/{modern/component-89a3cf4c.d.ts → cssm/component-50136800.d.ts} +1 -1
  32. package/cssm/index-50136800.d.ts +11 -0
  33. package/{esm/index-425c8522.d.ts → cssm/index-72dda473.d.ts} +7 -1
  34. package/cssm/index-c76d6398.d.ts +2 -0
  35. package/cssm/index-f12ee135.d.ts +1 -1
  36. package/cssm/types-d9f9bbcc.d.ts +2 -2
  37. package/esm/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
  38. package/esm/Component-5e1b8383.d.ts +1 -1
  39. package/esm/Component-72dda473.d.ts +53 -0
  40. package/esm/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
  41. package/esm/Component.mobile-f1f15074.d.ts +1 -1
  42. package/esm/Component.mobile.d.ts +3 -4
  43. package/esm/Component.mobile.js +1 -1
  44. package/esm/Component.modal.mobile-5e1b8383.d.ts +1 -1
  45. package/esm/Component.modal.mobile.js +1 -1
  46. package/esm/Component.responsive.d.ts +1 -2
  47. package/esm/Component.responsive.js +1 -1
  48. package/esm/autocomplete-field/Component.js +1 -1
  49. package/esm/autocomplete-field/index.css +2 -2
  50. package/esm/autocomplete-mobile-field/Component.d.ts +6 -2
  51. package/esm/autocomplete-mobile-field/Component.js +1 -1
  52. package/esm/autocomplete-mobile-field/index.css +8 -8
  53. package/{cssm/component-89a3cf4c.d.ts → esm/component-50136800.d.ts} +1 -1
  54. package/esm/index-50136800.d.ts +11 -0
  55. package/{cssm/index-425c8522.d.ts → esm/index-72dda473.d.ts} +7 -1
  56. package/esm/index-c76d6398.d.ts +2 -0
  57. package/esm/index-f12ee135.d.ts +1 -1
  58. package/esm/index.js +1 -1
  59. package/esm/mobile.css +4 -4
  60. package/esm/mobile.js +1 -1
  61. package/esm/{mobile.module-ed5594fa.js → mobile.module-bb0cbc57.js} +1 -1
  62. package/esm/types-d9f9bbcc.d.ts +2 -2
  63. package/hook-9ea9e32c.d.ts +4 -4
  64. package/index-50136800.d.ts +11 -0
  65. package/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
  66. package/index-bdb4c6b9.d.ts +2 -172
  67. package/index-c76d6398.d.ts +2 -0
  68. package/index-ebda875c.d.ts +115 -11
  69. package/index-f12ee135.d.ts +3 -307
  70. package/index.js +1 -1
  71. package/mobile-06ffd24b.d.ts +5 -0
  72. package/mobile-96988a65.d.ts +2 -5
  73. package/mobile.css +4 -4
  74. package/mobile.js +1 -1
  75. package/{mobile.module-4fb8c86a.js → mobile.module-00dfdfed.js} +1 -1
  76. package/modern/Component-50136800.d.ts +6 -0
  77. package/modern/Component-5e1b8383.d.ts +1 -1
  78. package/modern/Component-72dda473.d.ts +53 -0
  79. package/modern/{Component-e81c389f.d.ts → Component-c76d6398.d.ts} +1 -1
  80. package/modern/Component.mobile-f1f15074.d.ts +1 -1
  81. package/modern/Component.mobile.d.ts +3 -4
  82. package/modern/Component.mobile.js +1 -1
  83. package/modern/Component.modal.mobile-5e1b8383.d.ts +1 -1
  84. package/modern/Component.modal.mobile.js +1 -1
  85. package/modern/Component.responsive.d.ts +1 -2
  86. package/modern/Component.responsive.js +1 -1
  87. package/modern/autocomplete-field/Component.js +1 -1
  88. package/modern/autocomplete-field/index.css +2 -2
  89. package/modern/autocomplete-mobile-field/Component.d.ts +6 -2
  90. package/modern/autocomplete-mobile-field/Component.js +1 -1
  91. package/modern/autocomplete-mobile-field/index.css +8 -8
  92. package/modern/component-50136800.d.ts +44 -0
  93. package/modern/index-50136800.d.ts +11 -0
  94. package/modern/{index-425c8522.d.ts → index-72dda473.d.ts} +7 -1
  95. package/modern/index-c76d6398.d.ts +2 -0
  96. package/modern/index-f12ee135.d.ts +1 -1
  97. package/modern/index.js +1 -1
  98. package/modern/mobile.css +4 -4
  99. package/modern/mobile.js +1 -1
  100. package/modern/{mobile.module-a255d4ec.js → mobile.module-ca98f569.js} +1 -1
  101. package/modern/types-d9f9bbcc.d.ts +2 -2
  102. package/package.json +4 -4
  103. package/shared-4cd3936b.d.ts +88 -3
  104. package/src/Component.mobile.tsx +2 -2
  105. package/src/Component.responsive.tsx +0 -2
  106. package/src/autocomplete-mobile-field/Component.tsx +6 -3
  107. package/types-d9f9bbcc.d.ts +259 -0
  108. package/utils-1574ad8b.d.ts +29 -0
  109. package/utils-49cc3c24.d.ts +8 -0
  110. package/Component-89a3cf4c.d.ts +0 -6
  111. package/Component-96988a65.d.ts +0 -9
  112. package/Component-aed0af6e.d.ts +0 -11
  113. package/Component-f12ee135.d.ts +0 -72
  114. package/cssm/index-89a3cf4c.d.ts +0 -3
  115. package/cssm/index-e81c389f.d.ts +0 -3
  116. package/esm/index-89a3cf4c.d.ts +0 -3
  117. package/esm/index-e81c389f.d.ts +0 -3
  118. package/hook-ebda875c.d.ts +0 -48
  119. package/index-89a3cf4c.d.ts +0 -3
  120. package/index-e81c389f.d.ts +0 -3
  121. package/modern/index-89a3cf4c.d.ts +0 -3
  122. package/modern/index-e81c389f.d.ts +0 -3
  123. /package/{Component.mobile-f12ee135.d.ts → Component.mobile-06ffd24b.d.ts} +0 -0
  124. /package/cssm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
  125. /package/esm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
  126. /package/modern/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
  127. /package/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
@@ -1,17 +1,17 @@
1
1
  /// <reference types="react" />
2
- import React from "react";
2
+ import React from 'react';
3
3
  import { ModalMobile } from "./Component.mobile-f1f15074";
4
4
  import { UseSelectWithApplyProps } from "./hook-9ea9e32c";
5
5
  import { BaseSelectProps } from "./typings-5e1b8383";
6
- type SelectModalMobileProps = Omit<BaseSelectProps, "Checkmark" | "onScroll"> & {
6
+ type SelectModalMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
7
7
  /**
8
8
  * Показывать кнопку очистки
9
9
  */
10
- showClear?: UseSelectWithApplyProps["showClear"];
10
+ showClear?: UseSelectWithApplyProps['showClear'];
11
11
  /**
12
12
  * Показывать пункт "Выбрать все"
13
13
  */
14
- showSelectAll?: UseSelectWithApplyProps["showSelectAll"];
14
+ showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
15
15
  /**
16
16
  * Дополнительные пропсы шапки модалки
17
17
  */
@@ -24,24 +24,37 @@ type SelectModalMobileProps = Omit<BaseSelectProps, "Checkmark" | "onScroll"> &
24
24
  * Дополнительные пропсы футера модалки
25
25
  */
26
26
  modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
27
- /*
28
- * Показывать пункт "Выбрать все" в заголовке списка
29
- */
30
- showHeaderWithSelectAll?: UseSelectWithApplyProps["showHeaderWithSelectAll"];
27
+ showHeaderWithSelectAll?: UseSelectWithApplyProps['showHeaderWithSelectAll'];
31
28
  /**
32
29
  * Использовать ли хук useSelectWithApply
33
30
  */
34
31
  useWithApplyHook?: boolean;
35
32
  };
36
33
  declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
37
- showClear?: UseSelectWithApplyProps["showClear"];
38
- showSelectAll?: UseSelectWithApplyProps["showSelectAll"];
39
- modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
34
+ /**
35
+ * Показывать кнопку очистки
36
+ */
37
+ showClear?: UseSelectWithApplyProps['showClear'];
38
+ /**
39
+ * Показывать пункт "Выбрать все"
40
+ */
41
+ showSelectAll?: UseSelectWithApplyProps['showSelectAll'];
42
+ /**
43
+ * Дополнительные пропсы шапки модалки
44
+ */
45
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
46
+ /**
47
+ * Дополнительные пропсы модалки
48
+ */
40
49
  modalProps?: Partial<import("./typings-bdb4c6b9").ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
50
+ /**
51
+ * Дополнительные пропсы футера модалки
52
+ */
41
53
  modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
42
- showHeaderWithSelectAll?: UseSelectWithApplyProps["showHeaderWithSelectAll"];
54
+ showHeaderWithSelectAll?: UseSelectWithApplyProps['showHeaderWithSelectAll'];
55
+ /**
56
+ * Использовать ли хук useSelectWithApply
57
+ */
43
58
  useWithApplyHook?: boolean | undefined;
44
59
  } & React.RefAttributes<unknown>>;
45
60
  export { SelectModalMobileProps, SelectModalMobile };
46
- export { SelectMobile } from "./Component.mobile-f12ee135";
47
- export type { SelectMobileProps } from "./Component.mobile-f12ee135";
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ChangeEvent, ElementType } from "react";
4
4
  import { ButtonMobileProps } from "./mobile-96988a65";
5
- import { SelectModalMobileProps } from "./mobile-45dc17c6";
5
+ import { SelectModalMobileProps } from "./mobile-06ffd24b";
6
6
  import { BaseSelectChangePayload } from "./shared-4cd3936b";
7
7
  type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
8
8
  /**
@@ -46,7 +46,7 @@ type InputAutocompleteModalMobileProps = Omit<SelectModalMobileProps, 'OptionsLi
46
46
  */
47
47
  Input?: ElementType;
48
48
  };
49
- declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "valueRenderer" | "Checkmark" | "autocomplete" | "nativeSelect" | "OptionsList"> & {
49
+ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<Omit<SelectModalMobileProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
50
50
  /**
51
51
  * Обработчик выбора
52
52
  */
@@ -11,7 +11,7 @@ var mobile$1 = require('@alfalab/core-components-button/mobile');
11
11
  var coreComponentsInput = require('@alfalab/core-components-input');
12
12
  var mobile = require('@alfalab/core-components-select/mobile');
13
13
  var autocompleteMobileField_Component = require('./autocomplete-mobile-field/Component.js');
14
- var mobile_module = require('./mobile.module-4fb8c86a.js');
14
+ var mobile_module = require('./mobile.module-00dfdfed.js');
15
15
  require('@alfalab/core-components-form-control/mobile');
16
16
  require('@alfalab/hooks');
17
17
 
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BottomSheetProps } from "./index-f12ee135";
4
3
  import { ButtonMobileProps } from "./mobile-96988a65";
5
4
  import { BaseSelectProps } from "./shared-4cd3936b";
6
5
  import { InputAutocompleteDesktopProps } from "./Component.desktop";
@@ -27,14 +26,14 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
27
26
  success?: boolean | undefined;
28
27
  onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
29
28
  updatePopover?: React.MutableRefObject<() => void> | undefined;
30
- } & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "Checkmark" | "autocomplete" | "nativeSelect" | "OptionsList"> & {
29
+ } & Omit<BaseSelectProps, "onScroll" | "valueRenderer" | "autocomplete" | "nativeSelect" | "OptionsList" | "Checkmark"> & {
31
30
  onChange: (payload: string | import("./shared-4cd3936b").BaseSelectChangePayload) => void;
32
31
  onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
33
32
  value?: string | undefined;
34
33
  filter?: string | undefined;
35
34
  onCancel?: (() => void) | undefined;
36
35
  onClearFilter?: (() => void) | undefined;
37
- bottomSheetProps?: Partial<BottomSheetProps> | undefined;
36
+ bottomSheetProps?: Partial<import("./index-f12ee135").BottomSheetProps> | undefined;
38
37
  bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
39
38
  continueButtonProps?: ButtonMobileProps | undefined;
40
39
  cancelButtonProps?: ButtonMobileProps | undefined;
@@ -18,7 +18,7 @@ require('@alfalab/core-components-input');
18
18
  require('@alfalab/core-components-select/mobile');
19
19
  require('./autocomplete-mobile-field/Component.js');
20
20
  require('@alfalab/core-components-form-control/mobile');
21
- require('./mobile.module-4fb8c86a.js');
21
+ require('./mobile.module-00dfdfed.js');
22
22
 
23
23
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
24
24
 
@@ -14,7 +14,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
16
 
17
- var styles = {"arrow":"input-autocomplete__arrow_1d0j6","error":"input-autocomplete__error_1d0j6"};
17
+ var styles = {"arrow":"input-autocomplete__arrow_xva07","error":"input-autocomplete__error_xva07"};
18
18
  require('./index.css')
19
19
 
20
20
  var AutocompleteField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: h86c0 */
2
- .input-autocomplete__arrow_1d0j6.input-autocomplete__error_1d0j6 ~ * {
1
+ /* hash: za9c8 */
2
+ .input-autocomplete__arrow_xva07.input-autocomplete__error_xva07 ~ * {
3
3
  display: none;
4
4
  }
@@ -1,8 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { FormControlMobileProps } from "../mobile-96988a65";
4
- import { InputAutocompleteProps } from "../index";
5
4
  import { FieldProps as BaseFieldProps } from "../shared-4cd3936b";
6
- type AutocompleteMobileFieldProps = FormControlMobileProps & Omit<BaseFieldProps, 'selected' | 'multiple' | 'success'> & Pick<InputAutocompleteProps, 'value'>;
5
+ type AutocompleteMobileFieldProps = FormControlMobileProps & Omit<BaseFieldProps, 'selected' | 'multiple' | 'success'> & {
6
+ /**
7
+ * Значение поля ввода
8
+ */
9
+ value?: string;
10
+ };
7
11
  declare const AutocompleteMobileField: ({ size, open, disabled, value, innerProps, dataTestId, fieldClassName, labelView, placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }: AutocompleteMobileFieldProps) => React.JSX.Element;
8
12
  export { AutocompleteMobileFieldProps, AutocompleteMobileField };
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"component":"input-autocomplete__component_3dpk8","field":"input-autocomplete__field_3dpk8","disabled":"input-autocomplete__disabled_3dpk8","placeholder":"input-autocomplete__placeholder_3dpk8","contentWrapper":"input-autocomplete__contentWrapper_3dpk8","value":"input-autocomplete__value_3dpk8","focusVisible":"input-autocomplete__focusVisible_3dpk8"};
16
+ var styles = {"component":"input-autocomplete__component_xkbli","field":"input-autocomplete__field_xkbli","disabled":"input-autocomplete__disabled_xkbli","placeholder":"input-autocomplete__placeholder_xkbli","contentWrapper":"input-autocomplete__contentWrapper_xkbli","value":"input-autocomplete__value_xkbli","focusVisible":"input-autocomplete__focusVisible_xkbli"};
17
17
  require('./index.css')
18
18
 
19
19
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: obwmz */
1
+ /* hash: doomx */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #0072ef;
@@ -18,16 +18,16 @@
18
18
  } :root {
19
19
  --focus-color: var(--color-light-border-link);
20
20
  --disabled-cursor: not-allowed;
21
- } .input-autocomplete__component_3dpk8 {
21
+ } .input-autocomplete__component_xkbli {
22
22
  width: 100%;
23
23
  outline: none;
24
- } .input-autocomplete__field_3dpk8:not(.input-autocomplete__disabled_3dpk8) {
24
+ } .input-autocomplete__field_xkbli:not(.input-autocomplete__disabled_xkbli) {
25
25
  cursor: pointer;
26
- } .input-autocomplete__disabled_3dpk8 {
26
+ } .input-autocomplete__disabled_xkbli {
27
27
  cursor: var(--disabled-cursor);
28
- } .input-autocomplete__placeholder_3dpk8 {
28
+ } .input-autocomplete__placeholder_xkbli {
29
29
  color: var(--color-light-text-secondary);
30
- } .input-autocomplete__contentWrapper_3dpk8 {
30
+ } .input-autocomplete__contentWrapper_xkbli {
31
31
  font-size: 16px;
32
32
  line-height: 20px;
33
33
  font-weight: 400;
@@ -36,11 +36,11 @@
36
36
  text-overflow: ellipsis;
37
37
  overflow: hidden;
38
38
  width: 100%;
39
- } .input-autocomplete__value_3dpk8 {
39
+ } .input-autocomplete__value_xkbli {
40
40
  overflow: hidden;
41
41
  text-overflow: ellipsis;
42
42
  text-align: left;
43
- } .input-autocomplete__focusVisible_3dpk8 {
43
+ } .input-autocomplete__focusVisible_xkbli {
44
44
  outline: 2px solid var(--focus-color);
45
45
  outline-offset: 2px;
46
46
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ReactNode, RefObject } from "react";
4
- import { NavigationBarProps } from "./index-e81c389f";
4
+ import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
7
  import { BottomSheetProps } from "./types-d9f9bbcc";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { NavigationBarProps } from "./types-ebda875c";
3
+ import { NavigationBarProps } from "./types-83e2bd9e";
4
4
  declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
5
5
  export * from "./Component-63dec22f";
6
6
  export { NavigationBar };
@@ -61,7 +61,7 @@ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectP
61
61
  /**
62
62
  * Дополнительные пропсы шапки модалки
63
63
  */
64
- modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
64
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
65
65
  /**
66
66
  * Дополнительные пропсы футера модалки
67
67
  */
@@ -0,0 +1,53 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BackgroundColorType, GraphicColorType } from "./index-72dda473";
4
+ type IconColorType = Extract<GraphicColorType, 'positive' | 'attention' | 'link' | 'negative' | 'tertiary' | 'secondary' | 'primary'>;
5
+ type BadgeProps = {
6
+ /**
7
+ * Дополнительный класс
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Вид компонента
12
+ */
13
+ view: 'icon' | 'count';
14
+ /**
15
+ * Размер компонента (только для view=icon)
16
+ * //deprecated(используйте height для view=count )
17
+ */
18
+ size?: 's' | 'm' | 'l' | 'xl';
19
+ /**
20
+ * Видимость белой обводки вокруг иконки
21
+ */
22
+ visibleIconOutline?: boolean;
23
+ /**
24
+ * Видимость цветной обводки вокруг иконки (только для view=icon)
25
+ */
26
+ visibleColorOutline?: boolean;
27
+ /**
28
+ * Контент компонента
29
+ */
30
+ content?: React.ReactElement | number;
31
+ /**
32
+ * Высота компонента, min = 16; max = 48 (только для view=count)
33
+ */
34
+ height?: number;
35
+ /**
36
+ * Цветовое оформление бейджа при view='count'
37
+ */
38
+ color?: Extract<BackgroundColorType, 'accent' | 'primary' | 'specialbg-secondary-transparent'>;
39
+ /**
40
+ * Цветовое оформление бейджа при view='icon'
41
+ */
42
+ iconColor?: IconColorType;
43
+ /**
44
+ * Цвет подложки под иконкой
45
+ */
46
+ iconUnderlayColor?: Extract<GraphicColorType, 'primary' | 'static-light'>;
47
+ /**
48
+ * Идентификатор для систем автоматизированного тестирования
49
+ */
50
+ dataTestId?: string;
51
+ };
52
+ declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
53
+ export { IconColorType, BadgeProps, Badge };
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { NavigationBarProps } from "./index-e81c389f";
2
+ import { NavigationBarProps } from "./index-c76d6398";
3
3
  type HeaderProps = Omit<NavigationBarProps, 'size' | 'view' | 'parentRef'>;
4
4
  declare const Header: FC<HeaderProps>;
5
5
  export { HeaderProps, Header };
@@ -28,7 +28,7 @@ type FooterProps = {
28
28
  declare const Footer: FC<FooterProps>;
29
29
  declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
30
30
  Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
31
- Header: React.FC<import("./Component-e81c389f").HeaderProps>;
31
+ Header: React.FC<import("./Component-c76d6398").HeaderProps>;
32
32
  Footer: React.FC<FooterProps>;
33
33
  };
34
34
  export { Content, FooterProps, Footer, ModalMobile };
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ChangeEvent, ElementType } from "react";
4
- import { BottomSheetProps } from "./index-f12ee135";
5
4
  import { ButtonMobileProps } from "./mobile-96988a65";
6
- import { BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
5
+ import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
7
6
  type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
8
7
  /**
9
8
  * Обработчик выбора
@@ -32,7 +31,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
32
31
  /**
33
32
  * Дополнительные пропсы компонента BottomSheet
34
33
  */
35
- bottomSheetProps?: Partial<BottomSheetProps>;
34
+ bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
36
35
  /**
37
36
  * Дополнительные пропсы на слот под заголовком компонента BottomSheet
38
37
  */
@@ -78,7 +77,7 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<Base
78
77
  /**
79
78
  * Дополнительные пропсы компонента BottomSheet
80
79
  */
81
- bottomSheetProps?: Partial<BottomSheetProps> | undefined;
80
+ bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
82
81
  /**
83
82
  * Дополнительные пропсы на слот под заголовком компонента BottomSheet
84
83
  */
@@ -42,7 +42,7 @@ declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<BaseSelect
42
42
  /**
43
43
  * Дополнительные пропсы шапки модалки
44
44
  */
45
- modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
45
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
46
46
  /**
47
47
  * Дополнительные пропсы модалки
48
48
  */
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BottomSheetProps } from "./index-f12ee135";
4
3
  import { ButtonMobileProps } from "./mobile-96988a65";
5
4
  import { BaseSelectProps } from "./shared-4cd3936b";
6
5
  import { InputAutocompleteDesktopProps } from "./Component.desktop";
@@ -34,7 +33,7 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
34
33
  filter?: string | undefined;
35
34
  onCancel?: (() => void) | undefined;
36
35
  onClearFilter?: (() => void) | undefined;
37
- bottomSheetProps?: Partial<BottomSheetProps> | undefined;
36
+ bottomSheetProps?: Partial<import("./index-f12ee135").BottomSheetProps> | undefined;
38
37
  bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
39
38
  continueButtonProps?: ButtonMobileProps | undefined;
40
39
  cancelButtonProps?: ButtonMobileProps | undefined;
@@ -1,8 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { FormControlMobileProps } from "../mobile-96988a65";
4
- import { InputAutocompleteProps } from "../index";
5
4
  import { FieldProps as BaseFieldProps } from "../shared-4cd3936b";
6
- type AutocompleteMobileFieldProps = FormControlMobileProps & Omit<BaseFieldProps, 'selected' | 'multiple' | 'success'> & Pick<InputAutocompleteProps, 'value'>;
5
+ type AutocompleteMobileFieldProps = FormControlMobileProps & Omit<BaseFieldProps, 'selected' | 'multiple' | 'success'> & {
6
+ /**
7
+ * Значение поля ввода
8
+ */
9
+ value?: string;
10
+ };
7
11
  declare const AutocompleteMobileField: ({ size, open, disabled, value, innerProps, dataTestId, fieldClassName, labelView, placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }: AutocompleteMobileFieldProps) => React.JSX.Element;
8
12
  export { AutocompleteMobileFieldProps, AutocompleteMobileField };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { FC, ReactNode, RefObject } from "react";
4
- import { NavigationBarProps } from "./index-e81c389f";
4
+ import { NavigationBarProps } from "./index-c76d6398";
5
5
  import { SwipeableHandlers } from "react-swipeable";
6
6
  import { BackdropProps } from "./index-ebda875c";
7
7
  import { BottomSheetProps } from "./types-d9f9bbcc";
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { PaddingType } from "./index-72dda473";
4
+ declare const isClient: () => boolean;
5
+ declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
6
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
7
+ declare function easeInOutQuad(x: number): number;
8
+ declare const easingFns: {
9
+ easeInOutQuad: typeof easeInOutQuad;
10
+ };
11
+ export { isClient, getDataTestId, createPaddingStyle, easingFns };
@@ -3,4 +3,10 @@ type BorderColorType = 'accent' | 'key' | 'key-inverted' | 'link' | 'primary' |
3
3
  type GraphicColorType = 'accent' | 'link' | 'attention' | 'positive' | 'negative' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'static-light' | 'static-accent' | 'static-dark';
4
4
  type ShadowType = 'shadow-xs' | 'shadow-s' | 'shadow-m' | 'shadow-l' | 'shadow-xl' | 'shadow-xs-hard' | 'shadow-s-hard' | 'shadow-m-hard' | 'shadow-l-hard' | 'shadow-xl-hard' | 'shadow-xs-up' | 'shadow-s-up' | 'shadow-m-up' | 'shadow-l-up' | 'shadow-xl-up' | 'shadow-xs-hard-up' | 'shadow-s-hard-up' | 'shadow-m-hard-up' | 'shadow-l-hard-up' | 'shadow-xl-hard-up';
5
5
  type GapType = '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl';
6
- export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType };
6
+ type PaddingType = number | string | {
7
+ top?: number;
8
+ right?: number;
9
+ bottom?: number;
10
+ left?: number;
11
+ };
12
+ export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType, PaddingType };
@@ -0,0 +1,2 @@
1
+ export * from "./Component-50136800";
2
+ export type { NavigationBarProps } from "./types-83e2bd9e";
@@ -1,3 +1,3 @@
1
- export * from "./component-89a3cf4c";
1
+ export * from "./component-50136800";
2
2
  export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-d9f9bbcc";
3
3
  export { CLOSE_OFFSET, HEADER_OFFSET } from "./utils-49cc3c24";
@@ -2,8 +2,8 @@
2
2
  import { HTMLAttributes, ReactNode, RefObject } from 'react';
3
3
  import { TransitionProps } from 'react-transition-group/Transition';
4
4
  import { BaseModalProps } from "./index-bdb4c6b9";
5
- import { NavigationBarProps } from "./index-e81c389f";
6
- import { BackgroundColorType } from "./index-425c8522";
5
+ import { NavigationBarProps } from "./index-c76d6398";
6
+ import { BackgroundColorType } from "./index-72dda473";
7
7
  type BottomSheetTitleAlign = 'center' | 'left';
8
8
  type BottomSheetProps = {
9
9
  /**
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { NavigationBarProps } from "./types-ebda875c";
3
+ import { NavigationBarProps } from "./types-83e2bd9e";
4
4
  declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
5
5
  export * from "./Component-63dec22f";
6
6
  export { NavigationBar };
@@ -61,7 +61,7 @@ declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectP
61
61
  /**
62
62
  * Дополнительные пропсы шапки модалки
63
63
  */
64
- modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
64
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
65
65
  /**
66
66
  * Дополнительные пропсы футера модалки
67
67
  */
@@ -0,0 +1,53 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { BackgroundColorType, GraphicColorType } from "./index-72dda473";
4
+ type IconColorType = Extract<GraphicColorType, 'positive' | 'attention' | 'link' | 'negative' | 'tertiary' | 'secondary' | 'primary'>;
5
+ type BadgeProps = {
6
+ /**
7
+ * Дополнительный класс
8
+ */
9
+ className?: string;
10
+ /**
11
+ * Вид компонента
12
+ */
13
+ view: 'icon' | 'count';
14
+ /**
15
+ * Размер компонента (только для view=icon)
16
+ * //deprecated(используйте height для view=count )
17
+ */
18
+ size?: 's' | 'm' | 'l' | 'xl';
19
+ /**
20
+ * Видимость белой обводки вокруг иконки
21
+ */
22
+ visibleIconOutline?: boolean;
23
+ /**
24
+ * Видимость цветной обводки вокруг иконки (только для view=icon)
25
+ */
26
+ visibleColorOutline?: boolean;
27
+ /**
28
+ * Контент компонента
29
+ */
30
+ content?: React.ReactElement | number;
31
+ /**
32
+ * Высота компонента, min = 16; max = 48 (только для view=count)
33
+ */
34
+ height?: number;
35
+ /**
36
+ * Цветовое оформление бейджа при view='count'
37
+ */
38
+ color?: Extract<BackgroundColorType, 'accent' | 'primary' | 'specialbg-secondary-transparent'>;
39
+ /**
40
+ * Цветовое оформление бейджа при view='icon'
41
+ */
42
+ iconColor?: IconColorType;
43
+ /**
44
+ * Цвет подложки под иконкой
45
+ */
46
+ iconUnderlayColor?: Extract<GraphicColorType, 'primary' | 'static-light'>;
47
+ /**
48
+ * Идентификатор для систем автоматизированного тестирования
49
+ */
50
+ dataTestId?: string;
51
+ };
52
+ declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
53
+ export { IconColorType, BadgeProps, Badge };
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { NavigationBarProps } from "./index-e81c389f";
2
+ import { NavigationBarProps } from "./index-c76d6398";
3
3
  type HeaderProps = Omit<NavigationBarProps, 'size' | 'view' | 'parentRef'>;
4
4
  declare const Header: FC<HeaderProps>;
5
5
  export { HeaderProps, Header };
@@ -28,7 +28,7 @@ type FooterProps = {
28
28
  declare const Footer: FC<FooterProps>;
29
29
  declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
30
30
  Content: React.FC<import("./typings-bdb4c6b9").ContentProps>;
31
- Header: React.FC<import("./Component-e81c389f").HeaderProps>;
31
+ Header: React.FC<import("./Component-c76d6398").HeaderProps>;
32
32
  Footer: React.FC<FooterProps>;
33
33
  };
34
34
  export { Content, FooterProps, Footer, ModalMobile };
@@ -1,9 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ChangeEvent, ElementType } from "react";
4
- import { BottomSheetProps } from "./index-f12ee135";
5
4
  import { ButtonMobileProps } from "./mobile-96988a65";
6
- import { BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
5
+ import { AdditionalMobileProps, BaseSelectChangePayload, BaseSelectProps } from "./shared-4cd3936b";
7
6
  type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'nativeSelect' | 'autocomplete' | 'valueRenderer'> & {
8
7
  /**
9
8
  * Обработчик выбора
@@ -32,7 +31,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
32
31
  /**
33
32
  * Дополнительные пропсы компонента BottomSheet
34
33
  */
35
- bottomSheetProps?: Partial<BottomSheetProps>;
34
+ bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
36
35
  /**
37
36
  * Дополнительные пропсы на слот под заголовком компонента BottomSheet
38
37
  */
@@ -78,7 +77,7 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Omit<Base
78
77
  /**
79
78
  * Дополнительные пропсы компонента BottomSheet
80
79
  */
81
- bottomSheetProps?: Partial<BottomSheetProps> | undefined;
80
+ bottomSheetProps?: AdditionalMobileProps['bottomSheetProps'];
82
81
  /**
83
82
  * Дополнительные пропсы на слот под заголовком компонента BottomSheet
84
83
  */
@@ -7,7 +7,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
7
7
  import { Input } from '@alfalab/core-components-input/esm';
8
8
  import { SelectMobile } from '@alfalab/core-components-select/esm/mobile';
9
9
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
10
- import { s as styles } from './mobile.module-ed5594fa.js';
10
+ import { s as styles } from './mobile.module-bb0cbc57.js';
11
11
  import '@alfalab/core-components-form-control/esm/mobile';
12
12
  import '@alfalab/hooks';
13
13
 
@@ -42,7 +42,7 @@ declare const SelectModalMobile: React.ForwardRefExoticComponent<Omit<BaseSelect
42
42
  /**
43
43
  * Дополнительные пропсы шапки модалки
44
44
  */
45
- modalHeaderProps?: Partial<import("./Component-e81c389f").HeaderProps> | undefined;
45
+ modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
46
46
  /**
47
47
  * Дополнительные пропсы модалки
48
48
  */
@@ -7,7 +7,7 @@ import { ButtonMobile } from '@alfalab/core-components-button/esm/mobile';
7
7
  import { Input } from '@alfalab/core-components-input/esm';
8
8
  import { SelectModalMobile } from '@alfalab/core-components-select/esm/mobile';
9
9
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
10
- import { s as styles } from './mobile.module-ed5594fa.js';
10
+ import { s as styles } from './mobile.module-bb0cbc57.js';
11
11
  import '@alfalab/core-components-form-control/esm/mobile';
12
12
  import '@alfalab/hooks';
13
13
 
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { BottomSheetProps } from "./index-f12ee135";
4
3
  import { ButtonMobileProps } from "./mobile-96988a65";
5
4
  import { BaseSelectProps } from "./shared-4cd3936b";
6
5
  import { InputAutocompleteDesktopProps } from "./Component.desktop";
@@ -34,7 +33,7 @@ declare const InputAutocompleteResponsive: React.ForwardRefExoticComponent<Omit<
34
33
  filter?: string | undefined;
35
34
  onCancel?: (() => void) | undefined;
36
35
  onClearFilter?: (() => void) | undefined;
37
- bottomSheetProps?: Partial<BottomSheetProps> | undefined;
36
+ bottomSheetProps?: Partial<import("./index-f12ee135").BottomSheetProps> | undefined;
38
37
  bottomSheetHeaderAddonsProps?: Record<string, unknown> | undefined;
39
38
  continueButtonProps?: ButtonMobileProps | undefined;
40
39
  cancelButtonProps?: ButtonMobileProps | undefined;