@alfalab/core-components-input-autocomplete 7.3.2 → 7.3.5

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 (44) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/Component-7ca84eff.d.ts +1 -1
  3. package/dist/Component.d.ts +3 -3
  4. package/dist/Component.js +1 -1
  5. package/dist/Component.mobile.d.ts +18 -23
  6. package/dist/Component.mobile.js +4 -4
  7. package/dist/autocomplete-field/Component.js +2 -2
  8. package/dist/autocomplete-field/index.css +2 -2
  9. package/dist/autocomplete-field/index.js +1 -1
  10. package/dist/autocomplete-mobile-field/Component.js +2 -2
  11. package/dist/autocomplete-mobile-field/index.css +8 -8
  12. package/dist/autocomplete-mobile-field/index.js +1 -1
  13. package/dist/cssm/Component-7ca84eff.d.ts +1 -1
  14. package/dist/cssm/Component.mobile.d.ts +17 -22
  15. package/dist/cssm/Component.mobile.js +2 -2
  16. package/dist/esm/Component-7ca84eff.d.ts +1 -1
  17. package/dist/esm/Component.js +1 -1
  18. package/dist/esm/Component.mobile.d.ts +17 -22
  19. package/dist/esm/Component.mobile.js +4 -4
  20. package/dist/esm/autocomplete-field/Component.js +2 -2
  21. package/dist/esm/autocomplete-field/index.css +2 -2
  22. package/dist/esm/autocomplete-field/index.js +1 -1
  23. package/dist/esm/autocomplete-mobile-field/Component.js +2 -2
  24. package/dist/esm/autocomplete-mobile-field/index.css +8 -8
  25. package/dist/esm/autocomplete-mobile-field/index.js +1 -1
  26. package/dist/esm/index.js +1 -1
  27. package/dist/esm/mobile.css +3 -3
  28. package/dist/esm/mobile.js +1 -1
  29. package/dist/esm/{tslib.es6-a31dce67.d.ts → tslib.es6-f427d8ae.d.ts} +0 -0
  30. package/dist/esm/{tslib.es6-a31dce67.js → tslib.es6-f427d8ae.js} +0 -0
  31. package/dist/index.js +1 -1
  32. package/dist/mobile.css +3 -3
  33. package/dist/mobile.js +1 -1
  34. package/dist/modern/Component-7ca84eff.d.ts +1 -1
  35. package/dist/modern/Component.mobile.d.ts +17 -22
  36. package/dist/modern/Component.mobile.js +2 -2
  37. package/dist/modern/autocomplete-field/Component.js +1 -1
  38. package/dist/modern/autocomplete-field/index.css +2 -2
  39. package/dist/modern/autocomplete-mobile-field/Component.js +1 -1
  40. package/dist/modern/autocomplete-mobile-field/index.css +8 -8
  41. package/dist/modern/mobile.css +3 -3
  42. package/dist/{tslib.es6-1aefee5c.d.ts → tslib.es6-2a5dd8c0.d.ts} +0 -0
  43. package/dist/{tslib.es6-1aefee5c.js → tslib.es6-2a5dd8c0.js} +0 -0
  44. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.3.5](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.3.4...@alfalab/core-components-input-autocomplete@7.3.5) (2022-06-30)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-input-autocomplete
9
+
10
+
11
+
12
+
13
+
14
+ ## [7.3.4](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.3.3...@alfalab/core-components-input-autocomplete@7.3.4) (2022-06-29)
15
+
16
+ **Note:** Version bump only for package @alfalab/core-components-input-autocomplete
17
+
18
+
19
+
20
+
21
+
22
+ ## [7.3.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.3.2...@alfalab/core-components-input-autocomplete@7.3.3) (2022-06-28)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **input-autocomplete:** fixed onChange type ([#110](https://github.com/core-ds/core-components/issues/110)) ([c994661](https://github.com/core-ds/core-components/commit/c9946615af9aecb3f1974c887bdd6686708ac18e))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [7.3.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.3.1...@alfalab/core-components-input-autocomplete@7.3.2) (2022-06-24)
7
34
 
8
35
 
@@ -224,4 +224,4 @@ type HeaderProps = {
224
224
  onBack?: () => void;
225
225
  };
226
226
  declare const Header: FC<HeaderProps>;
227
- export { CloserProps, Closer, Typography, typographyPresets, TitleProps, TextProps, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
227
+ export { CloserProps, Closer, Typography, typographyPresets, TitleProps, TextProps, Color, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
@@ -33,11 +33,11 @@ type InputAutocompleteProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect'> &
33
33
  */
34
34
  updatePopover?: BaseSelectProps['updatePopover'];
35
35
  };
36
- declare const InputAutocomplete: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onScroll" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "multiple" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
36
+ declare const InputAutocomplete: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "className" | "dataTestId" | "label" | "size" | "block" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "onScroll" | "disabled" | "name" | "fieldClassName" | "error" | "hint" | "multiple" | "preventFlip" | "popperClassName" | "open" | "options" | "selected" | "valueRenderer" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "OptionsList" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
37
37
  /**
38
38
  * Компонент ввода значения
39
39
  */
40
- Input?: React.FC<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "disabled" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "list" | "step" | "height" | "name" | "width" | "multiple" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
40
+ Input?: React.FC<Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width"> & {
41
41
  value?: string | undefined;
42
42
  defaultValue?: string | undefined;
43
43
  block?: boolean | undefined;
@@ -72,7 +72,7 @@ declare const InputAutocomplete: React.ForwardRefExoticComponent<Pick<BaseSelect
72
72
  /**
73
73
  * Пропсы, которые будут прокинуты в инпут
74
74
  */
75
- inputProps?: (Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "disabled" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "list" | "step" | "height" | "name" | "width" | "multiple" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
75
+ inputProps?: (Pick<React.InputHTMLAttributes<HTMLInputElement>, "className" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width"> & {
76
76
  value?: string | undefined;
77
77
  defaultValue?: string | undefined;
78
78
  block?: boolean | undefined;
package/dist/Component.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('./tslib.es6-1aefee5c.js');
5
+ var tslib_es6 = require('./tslib.es6-2a5dd8c0.js');
6
6
  require('classnames');
7
7
  var React = require('react');
8
8
  require('react-merge-refs');
@@ -1,26 +1,26 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ChangeEvent } from "react";
4
- import { BaseSelectProps } from "@alfalab/core-components-select";
4
+ import { BaseSelectProps, BaseSelectChangePayload } from "@alfalab/core-components-select";
5
5
  import { ButtonProps } from "@alfalab/core-components-button";
6
6
  import { BottomSheetProps } from "./index-7ca84eff";
7
7
  type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'selected' | 'nativeSelect' | 'multiple' | 'autocomplete' | 'valueRenderer' | 'allowUnselect'> & {
8
8
  /**
9
- * Значение поля ввода
9
+ * Обработчик выбора
10
10
  */
11
- value: string;
11
+ onChange: (payload: string | BaseSelectChangePayload) => void;
12
12
  /**
13
- * Значение фильтра.
13
+ * Обработчик ввода фильтра.
14
14
  */
15
- filter: string;
15
+ onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
16
16
  /**
17
- * Обработчик выбора
17
+ * Значение поля ввода
18
18
  */
19
- onChange: (payload: string | BaseSelectProps['onChange']) => void;
19
+ value?: string;
20
20
  /**
21
- * Обработчик ввода фильтра.
21
+ * Значение фильтра.
22
22
  */
23
- onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
23
+ filter?: string;
24
24
  /**
25
25
  * Обработчик нажатия на кнопку "Отмена".
26
26
  */
@@ -46,28 +46,23 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
46
46
  */
47
47
  cancelButtonProps?: ButtonProps;
48
48
  };
49
- declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
49
+ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "className" | "dataTestId" | "label" | "size" | "block" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "disabled" | "name" | "fieldClassName" | "error" | "hint" | "preventFlip" | "popperClassName" | "open" | "options" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
50
50
  /**
51
- * Значение поля ввода
51
+ * Обработчик выбора
52
52
  */
53
- value: string;
53
+ onChange: (payload: string | BaseSelectChangePayload) => void;
54
54
  /**
55
- * Значение фильтра.
55
+ * Обработчик ввода фильтра.
56
56
  */
57
- filter: string;
57
+ onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
58
58
  /**
59
- * Обработчик выбора
59
+ * Значение поля ввода
60
60
  */
61
- onChange: (payload: string | ((payload: {
62
- selected: import("@alfalab/core-components-select").OptionShape | null;
63
- selectedMultiple: import("@alfalab/core-components-select").OptionShape[];
64
- initiator: import("@alfalab/core-components-select").OptionShape | null;
65
- name?: string | undefined;
66
- }) => void) | undefined) => void;
61
+ value?: string | undefined;
67
62
  /**
68
- * Обработчик ввода фильтра.
63
+ * Значение фильтра.
69
64
  */
70
- onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
65
+ filter?: string | undefined;
71
66
  /**
72
67
  * Обработчик нажатия на кнопку "Отмена".
73
68
  */
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('./tslib.es6-1aefee5c.js');
5
+ var tslib_es6 = require('./tslib.es6-2a5dd8c0.js');
6
6
  var cn = require('classnames');
7
7
  var React = require('react');
8
8
  var mergeRefs = require('react-merge-refs');
@@ -21,13 +21,13 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
21
21
  var mergeRefs__default = /*#__PURE__*/_interopDefaultLegacy(mergeRefs);
22
22
  var throttle__default = /*#__PURE__*/_interopDefaultLegacy(throttle);
23
23
 
24
- var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_1g17y","footer":"input-autocomplete__footer_1g17y"};
24
+ var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_u0j9s","footer":"input-autocomplete__footer_u0j9s"};
25
25
  require('./mobile.css')
26
26
 
27
27
  var SELECTED = [];
28
28
  var InputAutocompleteMobile = React__default['default'].forwardRef(function (_a, ref) {
29
- var _b = _a.bottomSheetProps, bottomSheetProps = _b === void 0 ? {} : _b, _c = _a.bottomSheetHeaderAddonsProps, bottomSheetHeaderAddonsProps = _c === void 0 ? {} : _c, _d = _a.value, value = _d === void 0 ? '' : _d, name = _a.name, _e = _a.Arrow, Arrow = _e === void 0 ? null : _e, filter = _a.filter, label = _a.label, placeholder = _a.placeholder, _f = _a.size, size = _f === void 0 ? 's' : _f, openProp = _a.open, onFilter = _a.onFilter, onChange = _a.onChange, onOpen = _a.onOpen, onCancel = _a.onCancel, onClearFilter = _a.onClearFilter, continueButtonProps = _a.continueButtonProps, cancelButtonProps = _a.cancelButtonProps, restProps = tslib_es6.__rest(_a, ["bottomSheetProps", "bottomSheetHeaderAddonsProps", "value", "name", "Arrow", "filter", "label", "placeholder", "size", "open", "onFilter", "onChange", "onOpen", "onCancel", "onClearFilter", "continueButtonProps", "cancelButtonProps"]);
30
- var _g = React.useState(false), open = _g[0], setOpen = _g[1];
29
+ var _b = _a.bottomSheetProps, bottomSheetProps = _b === void 0 ? {} : _b, _c = _a.bottomSheetHeaderAddonsProps, bottomSheetHeaderAddonsProps = _c === void 0 ? {} : _c, _d = _a.value, value = _d === void 0 ? '' : _d, _e = _a.filter, filter = _e === void 0 ? '' : _e, name = _a.name, _f = _a.Arrow, Arrow = _f === void 0 ? null : _f, label = _a.label, placeholder = _a.placeholder, _g = _a.size, size = _g === void 0 ? 's' : _g, openProp = _a.open, onFilter = _a.onFilter, onChange = _a.onChange, onOpen = _a.onOpen, onCancel = _a.onCancel, onClearFilter = _a.onClearFilter, continueButtonProps = _a.continueButtonProps, cancelButtonProps = _a.cancelButtonProps, restProps = tslib_es6.__rest(_a, ["bottomSheetProps", "bottomSheetHeaderAddonsProps", "value", "filter", "name", "Arrow", "label", "placeholder", "size", "open", "onFilter", "onChange", "onOpen", "onCancel", "onClearFilter", "continueButtonProps", "cancelButtonProps"]);
30
+ var _h = React.useState(false), open = _h[0], setOpen = _h[1];
31
31
  var bottomSheetInputRef = React.useRef(null);
32
32
  var targetRef = React.useRef(null);
33
33
  var setBottomSheetVisibility = function (isOpen) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../tslib.es6-1aefee5c.js');
5
+ var tslib_es6 = require('../tslib.es6-2a5dd8c0.js');
6
6
  var cn = require('classnames');
7
7
  var React = require('react');
8
8
  var mergeRefs = require('react-merge-refs');
@@ -14,7 +14,7 @@ var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
  var mergeRefs__default = /*#__PURE__*/_interopDefaultLegacy(mergeRefs);
16
16
 
17
- var styles = {"arrow":"input-autocomplete__arrow_uxtwe","error":"input-autocomplete__error_uxtwe"};
17
+ var styles = {"arrow":"input-autocomplete__arrow_1wijd","error":"input-autocomplete__error_1wijd"};
18
18
  require('./index.css')
19
19
 
20
20
  var AutocompleteField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: pkiji */
2
- .input-autocomplete__arrow_uxtwe.input-autocomplete__error_uxtwe ~ * {
1
+ /* hash: 1fa7n */
2
+ .input-autocomplete__arrow_1wijd.input-autocomplete__error_1wijd ~ * {
3
3
  display: none;
4
4
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../tslib.es6-1aefee5c.js');
5
+ require('../tslib.es6-2a5dd8c0.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../tslib.es6-1aefee5c.js');
5
+ var tslib_es6 = require('../tslib.es6-2a5dd8c0.js');
6
6
  var cn = require('classnames');
7
7
  var React = require('react');
8
8
  var hooks = require('@alfalab/hooks');
@@ -13,7 +13,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
 
16
- var styles = {"component":"input-autocomplete__component_18lot","field":"input-autocomplete__field_18lot","disabled":"input-autocomplete__disabled_18lot","placeholder":"input-autocomplete__placeholder_18lot","contentWrapper":"input-autocomplete__contentWrapper_18lot","value":"input-autocomplete__value_18lot","focusVisible":"input-autocomplete__focusVisible_18lot"};
16
+ var styles = {"component":"input-autocomplete__component_yy1u0","field":"input-autocomplete__field_yy1u0","disabled":"input-autocomplete__disabled_yy1u0","placeholder":"input-autocomplete__placeholder_yy1u0","contentWrapper":"input-autocomplete__contentWrapper_yy1u0","value":"input-autocomplete__value_yy1u0","focusVisible":"input-autocomplete__focusVisible_yy1u0"};
17
17
  require('./index.css')
18
18
 
19
19
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 11wxm */
1
+ /* hash: 1adbw */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-text-secondary: #546272;
@@ -15,20 +15,20 @@
15
15
  --focus-color: var(--color-light-border-link);
16
16
  --disabled-cursor: not-allowed;
17
17
  }
18
- .input-autocomplete__component_18lot {
18
+ .input-autocomplete__component_yy1u0 {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  }
22
- .input-autocomplete__field_18lot:not(.input-autocomplete__disabled_18lot) {
22
+ .input-autocomplete__field_yy1u0:not(.input-autocomplete__disabled_yy1u0) {
23
23
  cursor: pointer;
24
24
  }
25
- .input-autocomplete__disabled_18lot {
25
+ .input-autocomplete__disabled_yy1u0 {
26
26
  cursor: var(--disabled-cursor);
27
27
  }
28
- .input-autocomplete__placeholder_18lot {
28
+ .input-autocomplete__placeholder_yy1u0 {
29
29
  color: var(--color-light-text-secondary);
30
30
  }
31
- .input-autocomplete__contentWrapper_18lot {
31
+ .input-autocomplete__contentWrapper_yy1u0 {
32
32
  font-size: 16px;
33
33
  line-height: 20px;
34
34
  font-weight: 400;
@@ -38,12 +38,12 @@
38
38
  overflow: hidden;
39
39
  width: 100%;
40
40
  }
41
- .input-autocomplete__value_18lot {
41
+ .input-autocomplete__value_yy1u0 {
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
44
  text-align: left;
45
45
  }
46
- .input-autocomplete__focusVisible_18lot {
46
+ .input-autocomplete__focusVisible_yy1u0 {
47
47
  outline: 2px solid var(--focus-color);
48
48
  outline-offset: 2px;
49
49
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../tslib.es6-1aefee5c.js');
5
+ require('../tslib.es6-2a5dd8c0.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('@alfalab/hooks');
@@ -224,4 +224,4 @@ type HeaderProps = {
224
224
  onBack?: () => void;
225
225
  };
226
226
  declare const Header: FC<HeaderProps>;
227
- export { CloserProps, Closer, Typography, typographyPresets, TitleProps, TextProps, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
227
+ export { CloserProps, Closer, Typography, typographyPresets, TitleProps, TextProps, Color, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
@@ -1,26 +1,26 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ChangeEvent } from "react";
4
- import { BaseSelectProps } from "@alfalab/core-components-select";
4
+ import { BaseSelectProps, BaseSelectChangePayload } from "@alfalab/core-components-select";
5
5
  import { ButtonProps } from "@alfalab/core-components-button";
6
6
  import { BottomSheetProps } from "./index-7ca84eff";
7
7
  type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'selected' | 'nativeSelect' | 'multiple' | 'autocomplete' | 'valueRenderer' | 'allowUnselect'> & {
8
8
  /**
9
- * Значение поля ввода
9
+ * Обработчик выбора
10
10
  */
11
- value: string;
11
+ onChange: (payload: string | BaseSelectChangePayload) => void;
12
12
  /**
13
- * Значение фильтра.
13
+ * Обработчик ввода фильтра.
14
14
  */
15
- filter: string;
15
+ onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
16
16
  /**
17
- * Обработчик выбора
17
+ * Значение поля ввода
18
18
  */
19
- onChange: (payload: string | BaseSelectProps['onChange']) => void;
19
+ value?: string;
20
20
  /**
21
- * Обработчик ввода фильтра.
21
+ * Значение фильтра.
22
22
  */
23
- onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
23
+ filter?: string;
24
24
  /**
25
25
  * Обработчик нажатия на кнопку "Отмена".
26
26
  */
@@ -48,26 +48,21 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
48
48
  };
49
49
  declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
50
50
  /**
51
- * Значение поля ввода
51
+ * Обработчик выбора
52
52
  */
53
- value: string;
53
+ onChange: (payload: string | BaseSelectChangePayload) => void;
54
54
  /**
55
- * Значение фильтра.
55
+ * Обработчик ввода фильтра.
56
56
  */
57
- filter: string;
57
+ onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
58
58
  /**
59
- * Обработчик выбора
59
+ * Значение поля ввода
60
60
  */
61
- onChange: (payload: string | ((payload: {
62
- selected: import("@alfalab/core-components-select").OptionShape | null;
63
- selectedMultiple: import("@alfalab/core-components-select").OptionShape[];
64
- initiator: import("@alfalab/core-components-select").OptionShape | null;
65
- name?: string | undefined;
66
- }) => void) | undefined) => void;
61
+ value?: string | undefined;
67
62
  /**
68
- * Обработчик ввода фильтра.
63
+ * Значение фильтра.
69
64
  */
70
- onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
65
+ filter?: string | undefined;
71
66
  /**
72
67
  * Обработчик нажатия на кнопку "Отмена".
73
68
  */
@@ -26,8 +26,8 @@ var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
26
26
 
27
27
  var SELECTED = [];
28
28
  var InputAutocompleteMobile = React__default['default'].forwardRef(function (_a, ref) {
29
- var _b = _a.bottomSheetProps, bottomSheetProps = _b === void 0 ? {} : _b, _c = _a.bottomSheetHeaderAddonsProps, bottomSheetHeaderAddonsProps = _c === void 0 ? {} : _c, _d = _a.value, value = _d === void 0 ? '' : _d, name = _a.name, _e = _a.Arrow, Arrow = _e === void 0 ? null : _e, filter = _a.filter, label = _a.label, placeholder = _a.placeholder, _f = _a.size, size = _f === void 0 ? 's' : _f, openProp = _a.open, onFilter = _a.onFilter, onChange = _a.onChange, onOpen = _a.onOpen, onCancel = _a.onCancel, onClearFilter = _a.onClearFilter, continueButtonProps = _a.continueButtonProps, cancelButtonProps = _a.cancelButtonProps, restProps = tslib_es6.__rest(_a, ["bottomSheetProps", "bottomSheetHeaderAddonsProps", "value", "name", "Arrow", "filter", "label", "placeholder", "size", "open", "onFilter", "onChange", "onOpen", "onCancel", "onClearFilter", "continueButtonProps", "cancelButtonProps"]);
30
- var _g = React.useState(false), open = _g[0], setOpen = _g[1];
29
+ var _b = _a.bottomSheetProps, bottomSheetProps = _b === void 0 ? {} : _b, _c = _a.bottomSheetHeaderAddonsProps, bottomSheetHeaderAddonsProps = _c === void 0 ? {} : _c, _d = _a.value, value = _d === void 0 ? '' : _d, _e = _a.filter, filter = _e === void 0 ? '' : _e, name = _a.name, _f = _a.Arrow, Arrow = _f === void 0 ? null : _f, label = _a.label, placeholder = _a.placeholder, _g = _a.size, size = _g === void 0 ? 's' : _g, openProp = _a.open, onFilter = _a.onFilter, onChange = _a.onChange, onOpen = _a.onOpen, onCancel = _a.onCancel, onClearFilter = _a.onClearFilter, continueButtonProps = _a.continueButtonProps, cancelButtonProps = _a.cancelButtonProps, restProps = tslib_es6.__rest(_a, ["bottomSheetProps", "bottomSheetHeaderAddonsProps", "value", "filter", "name", "Arrow", "label", "placeholder", "size", "open", "onFilter", "onChange", "onOpen", "onCancel", "onClearFilter", "continueButtonProps", "cancelButtonProps"]);
30
+ var _h = React.useState(false), open = _h[0], setOpen = _h[1];
31
31
  var bottomSheetInputRef = React.useRef(null);
32
32
  var targetRef = React.useRef(null);
33
33
  var setBottomSheetVisibility = function (isOpen) {
@@ -224,4 +224,4 @@ type HeaderProps = {
224
224
  onBack?: () => void;
225
225
  };
226
226
  declare const Header: FC<HeaderProps>;
227
- export { CloserProps, Closer, Typography, typographyPresets, TitleProps, TextProps, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
227
+ export { CloserProps, Closer, Typography, typographyPresets, TitleProps, TextProps, Color, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-a31dce67.js';
1
+ import { _ as __rest, a as __assign } from './tslib.es6-f427d8ae.js';
2
2
  import 'classnames';
3
3
  import React, { forwardRef } from 'react';
4
4
  import 'react-merge-refs';
@@ -1,26 +1,26 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ChangeEvent } from "react";
4
- import { BaseSelectProps } from "@alfalab/core-components-select";
4
+ import { BaseSelectProps, BaseSelectChangePayload } from "@alfalab/core-components-select";
5
5
  import { ButtonProps } from "@alfalab/core-components-button";
6
6
  import { BottomSheetProps } from "./index-7ca84eff";
7
7
  type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'selected' | 'nativeSelect' | 'multiple' | 'autocomplete' | 'valueRenderer' | 'allowUnselect'> & {
8
8
  /**
9
- * Значение поля ввода
9
+ * Обработчик выбора
10
10
  */
11
- value: string;
11
+ onChange: (payload: string | BaseSelectChangePayload) => void;
12
12
  /**
13
- * Значение фильтра.
13
+ * Обработчик ввода фильтра.
14
14
  */
15
- filter: string;
15
+ onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
16
16
  /**
17
- * Обработчик выбора
17
+ * Значение поля ввода
18
18
  */
19
- onChange: (payload: string | BaseSelectProps['onChange']) => void;
19
+ value?: string;
20
20
  /**
21
- * Обработчик ввода фильтра.
21
+ * Значение фильтра.
22
22
  */
23
- onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
23
+ filter?: string;
24
24
  /**
25
25
  * Обработчик нажатия на кнопку "Отмена".
26
26
  */
@@ -48,26 +48,21 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
48
48
  };
49
49
  declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
50
50
  /**
51
- * Значение поля ввода
51
+ * Обработчик выбора
52
52
  */
53
- value: string;
53
+ onChange: (payload: string | BaseSelectChangePayload) => void;
54
54
  /**
55
- * Значение фильтра.
55
+ * Обработчик ввода фильтра.
56
56
  */
57
- filter: string;
57
+ onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
58
58
  /**
59
- * Обработчик выбора
59
+ * Значение поля ввода
60
60
  */
61
- onChange: (payload: string | ((payload: {
62
- selected: import("@alfalab/core-components-select").OptionShape | null;
63
- selectedMultiple: import("@alfalab/core-components-select").OptionShape[];
64
- initiator: import("@alfalab/core-components-select").OptionShape | null;
65
- name?: string | undefined;
66
- }) => void) | undefined) => void;
61
+ value?: string | undefined;
67
62
  /**
68
- * Обработчик ввода фильтра.
63
+ * Значение фильтра.
69
64
  */
70
- onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
65
+ filter?: string | undefined;
71
66
  /**
72
67
  * Обработчик нажатия на кнопку "Отмена".
73
68
  */
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign } from './tslib.es6-a31dce67.js';
1
+ import { _ as __rest, a as __assign } from './tslib.es6-f427d8ae.js';
2
2
  import cn from 'classnames';
3
3
  import React, { useState, useRef, useMemo } from 'react';
4
4
  import mergeRefs from 'react-merge-refs';
@@ -10,13 +10,13 @@ import '@alfalab/hooks';
10
10
  import '@alfalab/core-components-form-control/dist/esm';
11
11
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
12
12
 
13
- var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_1g17y","footer":"input-autocomplete__footer_1g17y"};
13
+ var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_u0j9s","footer":"input-autocomplete__footer_u0j9s"};
14
14
  require('./mobile.css')
15
15
 
16
16
  var SELECTED = [];
17
17
  var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
18
- var _b = _a.bottomSheetProps, bottomSheetProps = _b === void 0 ? {} : _b, _c = _a.bottomSheetHeaderAddonsProps, bottomSheetHeaderAddonsProps = _c === void 0 ? {} : _c, _d = _a.value, value = _d === void 0 ? '' : _d, name = _a.name, _e = _a.Arrow, Arrow = _e === void 0 ? null : _e, filter = _a.filter, label = _a.label, placeholder = _a.placeholder, _f = _a.size, size = _f === void 0 ? 's' : _f, openProp = _a.open, onFilter = _a.onFilter, onChange = _a.onChange, onOpen = _a.onOpen, onCancel = _a.onCancel, onClearFilter = _a.onClearFilter, continueButtonProps = _a.continueButtonProps, cancelButtonProps = _a.cancelButtonProps, restProps = __rest(_a, ["bottomSheetProps", "bottomSheetHeaderAddonsProps", "value", "name", "Arrow", "filter", "label", "placeholder", "size", "open", "onFilter", "onChange", "onOpen", "onCancel", "onClearFilter", "continueButtonProps", "cancelButtonProps"]);
19
- var _g = useState(false), open = _g[0], setOpen = _g[1];
18
+ var _b = _a.bottomSheetProps, bottomSheetProps = _b === void 0 ? {} : _b, _c = _a.bottomSheetHeaderAddonsProps, bottomSheetHeaderAddonsProps = _c === void 0 ? {} : _c, _d = _a.value, value = _d === void 0 ? '' : _d, _e = _a.filter, filter = _e === void 0 ? '' : _e, name = _a.name, _f = _a.Arrow, Arrow = _f === void 0 ? null : _f, label = _a.label, placeholder = _a.placeholder, _g = _a.size, size = _g === void 0 ? 's' : _g, openProp = _a.open, onFilter = _a.onFilter, onChange = _a.onChange, onOpen = _a.onOpen, onCancel = _a.onCancel, onClearFilter = _a.onClearFilter, continueButtonProps = _a.continueButtonProps, cancelButtonProps = _a.cancelButtonProps, restProps = __rest(_a, ["bottomSheetProps", "bottomSheetHeaderAddonsProps", "value", "filter", "name", "Arrow", "label", "placeholder", "size", "open", "onFilter", "onChange", "onOpen", "onCancel", "onClearFilter", "continueButtonProps", "cancelButtonProps"]);
19
+ var _h = useState(false), open = _h[0], setOpen = _h[1];
20
20
  var bottomSheetInputRef = useRef(null);
21
21
  var targetRef = useRef(null);
22
22
  var setBottomSheetVisibility = function (isOpen) {
@@ -1,10 +1,10 @@
1
- import { a as __assign } from '../tslib.es6-a31dce67.js';
1
+ import { a as __assign } from '../tslib.es6-f427d8ae.js';
2
2
  import cn from 'classnames';
3
3
  import React, { useRef, useCallback } from 'react';
4
4
  import mergeRefs from 'react-merge-refs';
5
5
  import { Input } from '@alfalab/core-components-input/dist/esm';
6
6
 
7
- var styles = {"arrow":"input-autocomplete__arrow_uxtwe","error":"input-autocomplete__error_uxtwe"};
7
+ var styles = {"arrow":"input-autocomplete__arrow_1wijd","error":"input-autocomplete__error_1wijd"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: pkiji */
2
- .input-autocomplete__arrow_uxtwe.input-autocomplete__error_uxtwe ~ * {
1
+ /* hash: 1fa7n */
2
+ .input-autocomplete__arrow_1wijd.input-autocomplete__error_1wijd ~ * {
3
3
  display: none;
4
4
  }
@@ -1,4 +1,4 @@
1
- import '../tslib.es6-a31dce67.js';
1
+ import '../tslib.es6-f427d8ae.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
@@ -1,10 +1,10 @@
1
- import { _ as __rest, a as __assign } from '../tslib.es6-a31dce67.js';
1
+ import { _ as __rest, a as __assign } from '../tslib.es6-f427d8ae.js';
2
2
  import cn from 'classnames';
3
3
  import React, { useState, useRef } from 'react';
4
4
  import { useFocus } from '@alfalab/hooks';
5
5
  import { FormControl } from '@alfalab/core-components-form-control/dist/esm';
6
6
 
7
- var styles = {"component":"input-autocomplete__component_18lot","field":"input-autocomplete__field_18lot","disabled":"input-autocomplete__disabled_18lot","placeholder":"input-autocomplete__placeholder_18lot","contentWrapper":"input-autocomplete__contentWrapper_18lot","value":"input-autocomplete__value_18lot","focusVisible":"input-autocomplete__focusVisible_18lot"};
7
+ var styles = {"component":"input-autocomplete__component_yy1u0","field":"input-autocomplete__field_yy1u0","disabled":"input-autocomplete__disabled_yy1u0","placeholder":"input-autocomplete__placeholder_yy1u0","contentWrapper":"input-autocomplete__contentWrapper_yy1u0","value":"input-autocomplete__value_yy1u0","focusVisible":"input-autocomplete__focusVisible_yy1u0"};
8
8
  require('./index.css')
9
9
 
10
10
  var AutocompleteMobileField = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 11wxm */
1
+ /* hash: 1adbw */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-text-secondary: #546272;
@@ -15,20 +15,20 @@
15
15
  --focus-color: var(--color-light-border-link);
16
16
  --disabled-cursor: not-allowed;
17
17
  }
18
- .input-autocomplete__component_18lot {
18
+ .input-autocomplete__component_yy1u0 {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  }
22
- .input-autocomplete__field_18lot:not(.input-autocomplete__disabled_18lot) {
22
+ .input-autocomplete__field_yy1u0:not(.input-autocomplete__disabled_yy1u0) {
23
23
  cursor: pointer;
24
24
  }
25
- .input-autocomplete__disabled_18lot {
25
+ .input-autocomplete__disabled_yy1u0 {
26
26
  cursor: var(--disabled-cursor);
27
27
  }
28
- .input-autocomplete__placeholder_18lot {
28
+ .input-autocomplete__placeholder_yy1u0 {
29
29
  color: var(--color-light-text-secondary);
30
30
  }
31
- .input-autocomplete__contentWrapper_18lot {
31
+ .input-autocomplete__contentWrapper_yy1u0 {
32
32
  font-size: 16px;
33
33
  line-height: 20px;
34
34
  font-weight: 400;
@@ -38,12 +38,12 @@
38
38
  overflow: hidden;
39
39
  width: 100%;
40
40
  }
41
- .input-autocomplete__value_18lot {
41
+ .input-autocomplete__value_yy1u0 {
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
44
  text-align: left;
45
45
  }
46
- .input-autocomplete__focusVisible_18lot {
46
+ .input-autocomplete__focusVisible_yy1u0 {
47
47
  outline: 2px solid var(--focus-color);
48
48
  outline-offset: 2px;
49
49
  }
@@ -1,4 +1,4 @@
1
- import '../tslib.es6-a31dce67.js';
1
+ import '../tslib.es6-f427d8ae.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import '@alfalab/hooks';
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './tslib.es6-a31dce67.js';
1
+ import './tslib.es6-f427d8ae.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
@@ -1,4 +1,4 @@
1
- /* hash: oi0cw */
1
+ /* hash: 1e7pg */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --gap-xs: 8px;
12
12
  }
13
- .input-autocomplete__bottomSheetInput_1g17y {
13
+ .input-autocomplete__bottomSheetInput_u0j9s {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_1g17y {
17
+ .input-autocomplete__footer_u0j9s {
18
18
  display: flex
19
19
  }
@@ -1,4 +1,4 @@
1
- import './tslib.es6-a31dce67.js';
1
+ import './tslib.es6-f427d8ae.js';
2
2
  import 'classnames';
3
3
  import 'react';
4
4
  import 'react-merge-refs';
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-1aefee5c.js');
5
+ require('./tslib.es6-2a5dd8c0.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
package/dist/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: oi0cw */
1
+ /* hash: 1e7pg */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --gap-xs: 8px;
12
12
  }
13
- .input-autocomplete__bottomSheetInput_1g17y {
13
+ .input-autocomplete__bottomSheetInput_u0j9s {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_1g17y {
17
+ .input-autocomplete__footer_u0j9s {
18
18
  display: flex
19
19
  }
package/dist/mobile.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-1aefee5c.js');
5
+ require('./tslib.es6-2a5dd8c0.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
@@ -224,4 +224,4 @@ type HeaderProps = {
224
224
  onBack?: () => void;
225
225
  };
226
226
  declare const Header: FC<HeaderProps>;
227
- export { CloserProps, Closer, Typography, typographyPresets, TitleProps, TextProps, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
227
+ export { CloserProps, Closer, Typography, typographyPresets, TitleProps, TextProps, Color, BackerProps, Backer, TitleResponsive, HeaderProps, Header };
@@ -1,26 +1,26 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { ChangeEvent } from "react";
4
- import { BaseSelectProps } from "@alfalab/core-components-select";
4
+ import { BaseSelectProps, BaseSelectChangePayload } from "@alfalab/core-components-select";
5
5
  import { ButtonProps } from "@alfalab/core-components-button";
6
6
  import { BottomSheetProps } from "./index-7ca84eff";
7
7
  type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Checkmark' | 'onScroll' | 'selected' | 'nativeSelect' | 'multiple' | 'autocomplete' | 'valueRenderer' | 'allowUnselect'> & {
8
8
  /**
9
- * Значение поля ввода
9
+ * Обработчик выбора
10
10
  */
11
- value: string;
11
+ onChange: (payload: string | BaseSelectChangePayload) => void;
12
12
  /**
13
- * Значение фильтра.
13
+ * Обработчик ввода фильтра.
14
14
  */
15
- filter: string;
15
+ onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
16
16
  /**
17
- * Обработчик выбора
17
+ * Значение поля ввода
18
18
  */
19
- onChange: (payload: string | BaseSelectProps['onChange']) => void;
19
+ value?: string;
20
20
  /**
21
- * Обработчик ввода фильтра.
21
+ * Значение фильтра.
22
22
  */
23
- onFilter: (event: ChangeEvent<HTMLInputElement>) => void;
23
+ filter?: string;
24
24
  /**
25
25
  * Обработчик нажатия на кнопку "Отмена".
26
26
  */
@@ -48,26 +48,21 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
48
48
  };
49
49
  declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<Pick<BaseSelectProps, "block" | "size" | "className" | "fieldClassName" | "disabled" | "error" | "hint" | "label" | "dataTestId" | "id" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "preventFlip" | "popperClassName" | "open" | "name" | "options" | "Optgroup" | "optionsListWidth" | "visibleOptions" | "Arrow" | "optionGroupClassName" | "Option" | "optionsListClassName" | "optionClassName" | "closeOnSelect" | "circularNavigation" | "defaultOpen" | "popoverPosition" | "optionsSize" | "fieldProps" | "optionsListProps" | "optionProps" | "onOpen" | "Field" | "updatePopover" | "zIndexPopover" | "showEmptyOptionsList"> & {
50
50
  /**
51
- * Значение поля ввода
51
+ * Обработчик выбора
52
52
  */
53
- value: string;
53
+ onChange: (payload: string | BaseSelectChangePayload) => void;
54
54
  /**
55
- * Значение фильтра.
55
+ * Обработчик ввода фильтра.
56
56
  */
57
- filter: string;
57
+ onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
58
58
  /**
59
- * Обработчик выбора
59
+ * Значение поля ввода
60
60
  */
61
- onChange: (payload: string | ((payload: {
62
- selected: import("@alfalab/core-components-select").OptionShape | null;
63
- selectedMultiple: import("@alfalab/core-components-select").OptionShape[];
64
- initiator: import("@alfalab/core-components-select").OptionShape | null;
65
- name?: string | undefined;
66
- }) => void) | undefined) => void;
61
+ value?: string | undefined;
67
62
  /**
68
- * Обработчик ввода фильтра.
63
+ * Значение фильтра.
69
64
  */
70
- onFilter: (event: React.ChangeEvent<HTMLInputElement>) => void;
65
+ filter?: string | undefined;
71
66
  /**
72
67
  * Обработчик нажатия на кнопку "Отмена".
73
68
  */
@@ -9,11 +9,11 @@ import '@alfalab/hooks';
9
9
  import '@alfalab/core-components-form-control/dist/modern';
10
10
  import { AutocompleteMobileField } from './autocomplete-mobile-field/Component.js';
11
11
 
12
- var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_1g17y","footer":"input-autocomplete__footer_1g17y"};
12
+ var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_u0j9s","footer":"input-autocomplete__footer_u0j9s"};
13
13
  require('./mobile.css')
14
14
 
15
15
  const SELECTED = [];
16
- const InputAutocompleteMobile = React.forwardRef(({ bottomSheetProps = {}, bottomSheetHeaderAddonsProps = {}, value = '', name, Arrow = null, filter, label, placeholder, size = 's', open: openProp, onFilter, onChange, onOpen, onCancel, onClearFilter, continueButtonProps, cancelButtonProps, ...restProps }, ref) => {
16
+ const InputAutocompleteMobile = React.forwardRef(({ bottomSheetProps = {}, bottomSheetHeaderAddonsProps = {}, value = '', filter = '', name, Arrow = null, label, placeholder, size = 's', open: openProp, onFilter, onChange, onOpen, onCancel, onClearFilter, continueButtonProps, cancelButtonProps, ...restProps }, ref) => {
17
17
  const [open, setOpen] = useState(false);
18
18
  const bottomSheetInputRef = useRef(null);
19
19
  const targetRef = useRef(null);
@@ -3,7 +3,7 @@ import React, { useRef, useCallback } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import { Input } from '@alfalab/core-components-input/dist/modern';
5
5
 
6
- var styles = {"arrow":"input-autocomplete__arrow_uxtwe","error":"input-autocomplete__error_uxtwe"};
6
+ var styles = {"arrow":"input-autocomplete__arrow_1wijd","error":"input-autocomplete__error_1wijd"};
7
7
  require('./index.css')
8
8
 
9
9
  const AutocompleteField = ({ label, placeholder, size, Arrow, Input: Input$1 = Input, value, error, success, hint, disabled, readOnly, onInput, inputProps = {}, innerProps, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: pkiji */
2
- .input-autocomplete__arrow_uxtwe.input-autocomplete__error_uxtwe ~ * {
1
+ /* hash: 1fa7n */
2
+ .input-autocomplete__arrow_1wijd.input-autocomplete__error_1wijd ~ * {
3
3
  display: none;
4
4
  }
@@ -3,7 +3,7 @@ import React, { useState, useRef } from 'react';
3
3
  import { useFocus } from '@alfalab/hooks';
4
4
  import { FormControl } from '@alfalab/core-components-form-control/dist/modern';
5
5
 
6
- var styles = {"component":"input-autocomplete__component_18lot","field":"input-autocomplete__field_18lot","disabled":"input-autocomplete__disabled_18lot","placeholder":"input-autocomplete__placeholder_18lot","contentWrapper":"input-autocomplete__contentWrapper_18lot","value":"input-autocomplete__value_18lot","focusVisible":"input-autocomplete__focusVisible_18lot"};
6
+ var styles = {"component":"input-autocomplete__component_yy1u0","field":"input-autocomplete__field_yy1u0","disabled":"input-autocomplete__disabled_yy1u0","placeholder":"input-autocomplete__placeholder_yy1u0","contentWrapper":"input-autocomplete__contentWrapper_yy1u0","value":"input-autocomplete__value_yy1u0","focusVisible":"input-autocomplete__focusVisible_yy1u0"};
7
7
  require('./index.css')
8
8
 
9
9
  const AutocompleteMobileField = ({ size = 'm', open, error, hint, disabled, label, placeholder, value, innerProps, dataTestId, fieldClassName, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 11wxm */
1
+ /* hash: 1adbw */
2
2
  :root {
3
3
  --color-light-border-link: #007aff;
4
4
  --color-light-text-secondary: #546272;
@@ -15,20 +15,20 @@
15
15
  --focus-color: var(--color-light-border-link);
16
16
  --disabled-cursor: not-allowed;
17
17
  }
18
- .input-autocomplete__component_18lot {
18
+ .input-autocomplete__component_yy1u0 {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  }
22
- .input-autocomplete__field_18lot:not(.input-autocomplete__disabled_18lot) {
22
+ .input-autocomplete__field_yy1u0:not(.input-autocomplete__disabled_yy1u0) {
23
23
  cursor: pointer;
24
24
  }
25
- .input-autocomplete__disabled_18lot {
25
+ .input-autocomplete__disabled_yy1u0 {
26
26
  cursor: var(--disabled-cursor);
27
27
  }
28
- .input-autocomplete__placeholder_18lot {
28
+ .input-autocomplete__placeholder_yy1u0 {
29
29
  color: var(--color-light-text-secondary);
30
30
  }
31
- .input-autocomplete__contentWrapper_18lot {
31
+ .input-autocomplete__contentWrapper_yy1u0 {
32
32
  font-size: 16px;
33
33
  line-height: 20px;
34
34
  font-weight: 400;
@@ -38,12 +38,12 @@
38
38
  overflow: hidden;
39
39
  width: 100%;
40
40
  }
41
- .input-autocomplete__value_18lot {
41
+ .input-autocomplete__value_yy1u0 {
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
44
  text-align: left;
45
45
  }
46
- .input-autocomplete__focusVisible_18lot {
46
+ .input-autocomplete__focusVisible_yy1u0 {
47
47
  outline: 2px solid var(--focus-color);
48
48
  outline-offset: 2px;
49
49
  }
@@ -1,4 +1,4 @@
1
- /* hash: oi0cw */
1
+ /* hash: 1e7pg */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --gap-xs: 8px;
12
12
  }
13
- .input-autocomplete__bottomSheetInput_1g17y {
13
+ .input-autocomplete__bottomSheetInput_u0j9s {
14
14
  padding: 0 var(--gap-xs) var(--gap-xs);
15
15
  box-sizing: border-box;
16
16
  }
17
- .input-autocomplete__footer_1g17y {
17
+ .input-autocomplete__footer_u0j9s {
18
18
  display: flex
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-input-autocomplete",
3
- "version": "7.3.2",
3
+ "version": "7.3.5",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -19,10 +19,10 @@
19
19
  "react": "^16.9.0 || ^17.0.1"
20
20
  },
21
21
  "dependencies": {
22
- "@alfalab/core-components-button": "^5.1.7",
23
- "@alfalab/core-components-form-control": "^7.4.3",
24
- "@alfalab/core-components-input": "^8.1.7",
25
- "@alfalab/core-components-select": "^10.9.2",
22
+ "@alfalab/core-components-button": "^5.2.0",
23
+ "@alfalab/core-components-form-control": "^7.5.0",
24
+ "@alfalab/core-components-input": "^8.2.0",
25
+ "@alfalab/core-components-select": "^10.11.1",
26
26
  "@alfalab/hooks": "^1.4.1",
27
27
  "classnames": "^2.2.6",
28
28
  "lodash.throttle": "^4.1.1",
@@ -31,5 +31,5 @@
31
31
  "devDependencies": {
32
32
  "@types/lodash.throttle": "^4.1.7"
33
33
  },
34
- "gitHead": "97545dc462e2c884c25f4a7e5092abf6dafac81f"
34
+ "gitHead": "7faa1479f68e818fde406010fe07b8ee126deffb"
35
35
  }