@alfalab/core-components-input-autocomplete 7.5.1 → 7.6.1

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 (110) hide show
  1. package/CHANGELOG.md +858 -0
  2. package/{Component-7ca84eff.d.ts → dist/Component-7ca84eff.d.ts} +0 -0
  3. package/{cssm → dist}/Component.d.ts +0 -0
  4. package/{Component.js → dist/Component.js} +1 -1
  5. package/{cssm → dist}/Component.mobile.d.ts +0 -0
  6. package/{Component.mobile.js → dist/Component.mobile.js} +3 -3
  7. package/{autocomplete-field → dist/autocomplete-field}/Component.d.ts +0 -0
  8. package/{autocomplete-field → dist/autocomplete-field}/Component.js +2 -2
  9. package/dist/autocomplete-field/index.css +4 -0
  10. package/{autocomplete-field → dist/autocomplete-field}/index.d.ts +0 -0
  11. package/{autocomplete-field → dist/autocomplete-field}/index.js +1 -1
  12. package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/Component.d.ts +0 -0
  13. package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/Component.js +2 -2
  14. package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/index.css +8 -8
  15. package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/index.d.ts +0 -0
  16. package/{autocomplete-mobile-field → dist/autocomplete-mobile-field}/index.js +1 -1
  17. package/{cssm → dist/cssm}/Component-7ca84eff.d.ts +0 -0
  18. package/{esm → dist/cssm}/Component.d.ts +0 -0
  19. package/{cssm → dist/cssm}/Component.js +2 -2
  20. package/{esm → dist/cssm}/Component.mobile.d.ts +0 -0
  21. package/{cssm → dist/cssm}/Component.mobile.js +5 -5
  22. package/{cssm → dist/cssm}/autocomplete-field/Component.d.ts +0 -0
  23. package/{cssm → dist/cssm}/autocomplete-field/Component.js +1 -1
  24. package/{cssm → dist/cssm}/autocomplete-field/index.d.ts +0 -0
  25. package/{cssm → dist/cssm}/autocomplete-field/index.js +1 -1
  26. package/{cssm → dist/cssm}/autocomplete-field/index.module.css +0 -0
  27. package/{cssm → dist/cssm}/autocomplete-mobile-field/Component.d.ts +0 -0
  28. package/{cssm → dist/cssm}/autocomplete-mobile-field/Component.js +1 -1
  29. package/{cssm → dist/cssm}/autocomplete-mobile-field/index.d.ts +0 -0
  30. package/{cssm → dist/cssm}/autocomplete-mobile-field/index.js +1 -1
  31. package/{cssm → dist/cssm}/autocomplete-mobile-field/index.module.css +0 -0
  32. package/{cssm → dist/cssm}/getDataTestId-3fe0d3e6.d.ts +0 -0
  33. package/{esm → dist/cssm}/index-7ca84eff.d.ts +1 -0
  34. package/{cssm → dist/cssm}/index-bdb4c6b9.d.ts +0 -0
  35. package/{cssm → dist/cssm}/index-ebda875c.d.ts +0 -0
  36. package/{cssm → dist/cssm}/index.d.ts +0 -0
  37. package/{cssm → dist/cssm}/index.js +2 -2
  38. package/{cssm → dist/cssm}/mobile.d.ts +0 -0
  39. package/{cssm → dist/cssm}/mobile.js +4 -4
  40. package/{cssm → dist/cssm}/mobile.module.css +0 -0
  41. package/{cssm → dist/cssm}/tslib.es6-ce870b46.d.ts +0 -0
  42. package/{cssm → dist/cssm}/tslib.es6-ce870b46.js +0 -0
  43. package/{esm → dist/esm}/Component-7ca84eff.d.ts +0 -0
  44. package/{modern → dist/esm}/Component.d.ts +0 -0
  45. package/{esm → dist/esm}/Component.js +3 -3
  46. package/{modern → dist/esm}/Component.mobile.d.ts +0 -0
  47. package/{esm → dist/esm}/Component.mobile.js +7 -7
  48. package/{esm → dist/esm}/autocomplete-field/Component.d.ts +0 -0
  49. package/{esm → dist/esm}/autocomplete-field/Component.js +3 -3
  50. package/dist/esm/autocomplete-field/index.css +4 -0
  51. package/{esm → dist/esm}/autocomplete-field/index.d.ts +0 -0
  52. package/{esm → dist/esm}/autocomplete-field/index.js +2 -2
  53. package/{esm → dist/esm}/autocomplete-mobile-field/Component.d.ts +0 -0
  54. package/{esm → dist/esm}/autocomplete-mobile-field/Component.js +3 -3
  55. package/{esm → dist/esm}/autocomplete-mobile-field/index.css +8 -8
  56. package/{esm → dist/esm}/autocomplete-mobile-field/index.d.ts +0 -0
  57. package/{esm → dist/esm}/autocomplete-mobile-field/index.js +2 -2
  58. package/{esm → dist/esm}/getDataTestId-3fe0d3e6.d.ts +0 -0
  59. package/{cssm → dist/esm}/index-7ca84eff.d.ts +1 -0
  60. package/{esm → dist/esm}/index-bdb4c6b9.d.ts +0 -0
  61. package/{esm → dist/esm}/index-ebda875c.d.ts +0 -0
  62. package/{esm → dist/esm}/index.d.ts +0 -0
  63. package/{esm → dist/esm}/index.js +3 -3
  64. package/{modern → dist/esm}/mobile.css +4 -4
  65. package/{esm → dist/esm}/mobile.d.ts +0 -0
  66. package/dist/esm/mobile.js +12 -0
  67. package/{esm/tslib.es6-260b8f6a.d.ts → dist/esm/tslib.es6-2e0e5b56.d.ts} +0 -0
  68. package/{esm/tslib.es6-260b8f6a.js → dist/esm/tslib.es6-2e0e5b56.js} +0 -0
  69. package/{getDataTestId-3fe0d3e6.d.ts → dist/getDataTestId-3fe0d3e6.d.ts} +0 -0
  70. package/{index-7ca84eff.d.ts → dist/index-7ca84eff.d.ts} +1 -0
  71. package/{index-bdb4c6b9.d.ts → dist/index-bdb4c6b9.d.ts} +0 -0
  72. package/{index-ebda875c.d.ts → dist/index-ebda875c.d.ts} +0 -0
  73. package/{index.d.ts → dist/index.d.ts} +0 -0
  74. package/{index.js → dist/index.js} +1 -1
  75. package/{mobile.css → dist/mobile.css} +4 -4
  76. package/{mobile.d.ts → dist/mobile.d.ts} +0 -0
  77. package/{mobile.js → dist/mobile.js} +1 -1
  78. package/{modern → dist/modern}/Component-7ca84eff.d.ts +0 -0
  79. package/dist/modern/Component.d.ts +128 -0
  80. package/{modern → dist/modern}/Component.js +2 -2
  81. package/{Component.mobile.d.ts → dist/modern/Component.mobile.d.ts} +1 -1
  82. package/{modern → dist/modern}/Component.mobile.js +5 -6
  83. package/{modern → dist/modern}/autocomplete-field/Component.d.ts +0 -0
  84. package/{modern → dist/modern}/autocomplete-field/Component.js +2 -2
  85. package/dist/modern/autocomplete-field/index.css +4 -0
  86. package/{modern → dist/modern}/autocomplete-field/index.d.ts +0 -0
  87. package/{modern → dist/modern}/autocomplete-field/index.js +1 -1
  88. package/{modern → dist/modern}/autocomplete-mobile-field/Component.d.ts +0 -0
  89. package/{modern → dist/modern}/autocomplete-mobile-field/Component.js +2 -2
  90. package/{modern → dist/modern}/autocomplete-mobile-field/index.css +8 -8
  91. package/{modern → dist/modern}/autocomplete-mobile-field/index.d.ts +0 -0
  92. package/{modern → dist/modern}/autocomplete-mobile-field/index.js +1 -1
  93. package/{modern → dist/modern}/getDataTestId-3fe0d3e6.d.ts +0 -0
  94. package/{modern → dist/modern}/index-7ca84eff.d.ts +1 -0
  95. package/{modern → dist/modern}/index-bdb4c6b9.d.ts +0 -0
  96. package/{modern → dist/modern}/index-ebda875c.d.ts +0 -0
  97. package/{modern → dist/modern}/index.d.ts +0 -0
  98. package/{modern → dist/modern}/index.js +2 -2
  99. package/{esm → dist/modern}/mobile.css +4 -4
  100. package/{modern → dist/modern}/mobile.d.ts +0 -0
  101. package/{modern → dist/modern}/mobile.js +4 -4
  102. package/{send-stats.js → dist/send-stats.js} +0 -0
  103. package/{tslib.es6-66d5a0c3.d.ts → dist/tslib.es6-6f98cd1b.d.ts} +0 -0
  104. package/{tslib.es6-66d5a0c3.js → dist/tslib.es6-6f98cd1b.js} +0 -0
  105. package/package.json +14 -11
  106. package/Component.d.ts +0 -128
  107. package/autocomplete-field/index.css +0 -4
  108. package/esm/autocomplete-field/index.css +0 -4
  109. package/esm/mobile.js +0 -12
  110. package/modern/autocomplete-field/index.css +0 -4
@@ -1,4 +1,4 @@
1
- /* hash: zt1qs */
1
+ /* hash: 1emtx */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -11,13 +11,13 @@
11
11
  --gap-xs: 8px;
12
12
  --gap-m: 16px;
13
13
  }
14
- .input-autocomplete__bottomSheetInput_ap8s9 {
14
+ .input-autocomplete__bottomSheetInput_xconq {
15
15
  padding: 0 var(--gap-xs) var(--gap-xs);
16
16
  box-sizing: border-box;
17
17
  }
18
- .input-autocomplete__footer_ap8s9 {
18
+ .input-autocomplete__footer_xconq {
19
19
  display: flex
20
20
  }
21
- .input-autocomplete__footer_ap8s9 > button + button {
21
+ .input-autocomplete__footer_xconq > button + button {
22
22
  margin-left: var(--gap-m);
23
23
  }
File without changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./tslib.es6-66d5a0c3.js');
5
+ require('./tslib.es6-6f98cd1b.js');
6
6
  require('classnames');
7
7
  require('react');
8
8
  require('react-merge-refs');
File without changes
@@ -0,0 +1,128 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { FC, ChangeEvent, RefAttributes } from "react";
4
+ import { InputProps } from "@alfalab/core-components-input";
5
+ import { BaseSelectProps } from "@alfalab/core-components-select";
6
+ type InputAutocompleteProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect'> & {
7
+ /**
8
+ * Компонент ввода значения
9
+ */
10
+ Input?: FC<InputProps & RefAttributes<HTMLInputElement>>;
11
+ /**
12
+ * Пропсы, которые будут прокинуты в инпут
13
+ */
14
+ inputProps?: InputProps & Record<string, unknown>;
15
+ /**
16
+ * Значение поля ввода
17
+ */
18
+ value?: string;
19
+ /**
20
+ * Поле доступно только для чтения
21
+ */
22
+ readOnly?: InputProps['readOnly'];
23
+ /**
24
+ * Отображение иконки успеха
25
+ */
26
+ success?: boolean;
27
+ /**
28
+ * Обработчик ввода
29
+ */
30
+ onInput?: (event: ChangeEvent<HTMLInputElement>) => void;
31
+ /**
32
+ * Хранит функцию, с помощью которой можно обновить положение поповера
33
+ */
34
+ updatePopover?: BaseSelectProps['updatePopover'];
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"> & {
37
+ /**
38
+ * Компонент ввода значения
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" | "enterKeyHint" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
41
+ value?: string | undefined;
42
+ defaultValue?: string | undefined;
43
+ block?: boolean | undefined;
44
+ clear?: boolean | undefined;
45
+ size?: "s" | "m" | "l" | "xl" | undefined;
46
+ colors?: "default" | "inverted" | undefined;
47
+ error?: React.ReactNode;
48
+ success?: boolean | undefined;
49
+ hint?: React.ReactNode;
50
+ label?: React.ReactNode;
51
+ type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
52
+ wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
53
+ leftAddons?: React.ReactNode;
54
+ rightAddons?: React.ReactNode;
55
+ bottomAddons?: React.ReactNode;
56
+ className?: string | undefined;
57
+ fieldClassName?: string | undefined;
58
+ inputClassName?: string | undefined;
59
+ labelClassName?: string | undefined;
60
+ addonsClassName?: string | undefined;
61
+ focusedClassName?: string | undefined;
62
+ filledClassName?: string | undefined;
63
+ onChange?: ((event: React.ChangeEvent<HTMLInputElement>, payload: {
64
+ value: string;
65
+ }) => void) | undefined;
66
+ onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
67
+ onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
68
+ onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
69
+ onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
70
+ dataTestId?: string | undefined;
71
+ } & React.RefAttributes<HTMLInputElement>> | undefined;
72
+ /**
73
+ * Пропсы, которые будут прокинуты в инпут
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" | "enterKeyHint" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src"> & {
76
+ value?: string | undefined;
77
+ defaultValue?: string | undefined;
78
+ block?: boolean | undefined;
79
+ clear?: boolean | undefined;
80
+ size?: "s" | "m" | "l" | "xl" | undefined;
81
+ colors?: "default" | "inverted" | undefined;
82
+ error?: React.ReactNode;
83
+ success?: boolean | undefined;
84
+ hint?: React.ReactNode;
85
+ label?: React.ReactNode;
86
+ type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
87
+ wrapperRef?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
88
+ leftAddons?: React.ReactNode;
89
+ rightAddons?: React.ReactNode;
90
+ bottomAddons?: React.ReactNode;
91
+ className?: string | undefined;
92
+ fieldClassName?: string | undefined;
93
+ inputClassName?: string | undefined;
94
+ labelClassName?: string | undefined;
95
+ addonsClassName?: string | undefined;
96
+ focusedClassName?: string | undefined;
97
+ filledClassName?: string | undefined;
98
+ onChange?: ((event: React.ChangeEvent<HTMLInputElement>, payload: {
99
+ value: string;
100
+ }) => void) | undefined;
101
+ onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
102
+ onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
103
+ onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
104
+ onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
105
+ dataTestId?: string | undefined;
106
+ } & Record<string, unknown>) | undefined;
107
+ /**
108
+ * Значение поля ввода
109
+ */
110
+ value?: string | undefined;
111
+ /**
112
+ * Поле доступно только для чтения
113
+ */
114
+ readOnly?: boolean | undefined;
115
+ /**
116
+ * Отображение иконки успеха
117
+ */
118
+ success?: boolean | undefined;
119
+ /**
120
+ * Обработчик ввода
121
+ */
122
+ onInput?: ((event: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
123
+ /**
124
+ * Хранит функцию, с помощью которой можно обновить положение поповера
125
+ */
126
+ updatePopover?: React.MutableRefObject<() => void> | undefined;
127
+ } & React.RefAttributes<HTMLInputElement>>;
128
+ export { InputAutocompleteProps, InputAutocomplete };
@@ -1,8 +1,8 @@
1
1
  import 'classnames';
2
2
  import React, { forwardRef } from 'react';
3
3
  import 'react-merge-refs';
4
- import { OptionsList, Optgroup, Option, BaseSelect } from '@alfalab/core-components-select/modern';
5
- import '@alfalab/core-components-input/modern';
4
+ import { OptionsList, Optgroup, Option, BaseSelect } from '@alfalab/core-components-select/dist/modern';
5
+ import '@alfalab/core-components-input/dist/modern';
6
6
  import { AutocompleteField } from './autocomplete-field/Component.js';
7
7
 
8
8
  const InputAutocomplete = forwardRef(({ OptionsList: OptionsList$1 = OptionsList, Optgroup: Optgroup$1 = Optgroup, Option: Option$1 = Option, Input, inputProps = {}, onInput, value, success, readOnly, closeOnSelect = false, options, ...restProps }, ref) => (React.createElement(BaseSelect, Object.assign({ ref: ref, autocomplete: true, options: options, closeOnSelect: closeOnSelect, Option: Option$1, Field: AutocompleteField, fieldProps: {
@@ -46,7 +46,7 @@ type InputAutocompleteMobileProps = Omit<BaseSelectProps, 'OptionsList' | 'Check
46
46
  */
47
47
  cancelButtonProps?: ButtonProps;
48
48
  };
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"> & {
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
  */
@@ -2,14 +2,14 @@ import cn from 'classnames';
2
2
  import React, { useState, useRef, useMemo } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
4
  import throttle from 'lodash.throttle';
5
- import { SelectMobile } from '@alfalab/core-components-select/modern';
6
- import { Button } from '@alfalab/core-components-button/modern';
7
- import { Input } from '@alfalab/core-components-input/modern';
5
+ import { SelectMobile } from '@alfalab/core-components-select/dist/modern';
6
+ import { Button } from '@alfalab/core-components-button/dist/modern';
7
+ import { Input } from '@alfalab/core-components-input/dist/modern';
8
8
  import '@alfalab/hooks';
9
- import '@alfalab/core-components-form-control/modern';
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_ap8s9","footer":"input-autocomplete__footer_ap8s9"};
12
+ var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_xconq","footer":"input-autocomplete__footer_xconq"};
13
13
  require('./mobile.css')
14
14
 
15
15
  const SELECTED = [];
@@ -66,7 +66,6 @@ const InputAutocompleteMobile = React.forwardRef(({ bottomSheetProps = {}, botto
66
66
  bottomSheetHeaderAddonsProps.ref,
67
67
  ]) }))),
68
68
  initialHeight: 'full',
69
- ignoreScreenChange: true,
70
69
  ...bottomSheetProps,
71
70
  containerProps: {
72
71
  onTouchMove: handleOptionsListTouchMove,
@@ -1,9 +1,9 @@
1
1
  import cn from 'classnames';
2
2
  import React, { useRef, useCallback } from 'react';
3
3
  import mergeRefs from 'react-merge-refs';
4
- import { Input } from '@alfalab/core-components-input/modern';
4
+ import { Input } from '@alfalab/core-components-input/dist/modern';
5
5
 
6
- var styles = {"arrow":"input-autocomplete__arrow_geox0","error":"input-autocomplete__error_geox0"};
6
+ var styles = {"arrow":"input-autocomplete__arrow_1324s","error":"input-autocomplete__error_1324s"};
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, }) => {
@@ -0,0 +1,4 @@
1
+ /* hash: 1fpc4 */
2
+ .input-autocomplete__arrow_1324s.input-autocomplete__error_1324s ~ * {
3
+ display: none;
4
+ }
@@ -1,5 +1,5 @@
1
1
  import 'classnames';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
- import '@alfalab/core-components-input/modern';
4
+ import '@alfalab/core-components-input/dist/modern';
5
5
  export { AutocompleteField } from './Component.js';
@@ -1,9 +1,9 @@
1
1
  import cn from 'classnames';
2
2
  import React, { useState, useRef } from 'react';
3
3
  import { useFocus } from '@alfalab/hooks';
4
- import { FormControl } from '@alfalab/core-components-form-control/modern';
4
+ import { FormControl } from '@alfalab/core-components-form-control/dist/modern';
5
5
 
6
- var styles = {"component":"input-autocomplete__component_1escn","field":"input-autocomplete__field_1escn","disabled":"input-autocomplete__disabled_1escn","placeholder":"input-autocomplete__placeholder_1escn","contentWrapper":"input-autocomplete__contentWrapper_1escn","value":"input-autocomplete__value_1escn","focusVisible":"input-autocomplete__focusVisible_1escn"};
6
+ var styles = {"component":"input-autocomplete__component_s4wro","field":"input-autocomplete__field_s4wro","disabled":"input-autocomplete__disabled_s4wro","placeholder":"input-autocomplete__placeholder_s4wro","contentWrapper":"input-autocomplete__contentWrapper_s4wro","value":"input-autocomplete__value_s4wro","focusVisible":"input-autocomplete__focusVisible_s4wro"};
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: y0ohj */
1
+ /* hash: 19y7e */
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_1escn {
18
+ .input-autocomplete__component_s4wro {
19
19
  width: 100%;
20
20
  outline: none;
21
21
  }
22
- .input-autocomplete__field_1escn:not(.input-autocomplete__disabled_1escn) {
22
+ .input-autocomplete__field_s4wro:not(.input-autocomplete__disabled_s4wro) {
23
23
  cursor: pointer;
24
24
  }
25
- .input-autocomplete__disabled_1escn {
25
+ .input-autocomplete__disabled_s4wro {
26
26
  cursor: var(--disabled-cursor);
27
27
  }
28
- .input-autocomplete__placeholder_1escn {
28
+ .input-autocomplete__placeholder_s4wro {
29
29
  color: var(--color-light-text-secondary);
30
30
  }
31
- .input-autocomplete__contentWrapper_1escn {
31
+ .input-autocomplete__contentWrapper_s4wro {
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_1escn {
41
+ .input-autocomplete__value_s4wro {
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
44
  text-align: left;
45
45
  }
46
- .input-autocomplete__focusVisible_1escn {
46
+ .input-autocomplete__focusVisible_s4wro {
47
47
  outline: 2px solid var(--focus-color);
48
48
  outline-offset: 2px;
49
49
  }
@@ -1,5 +1,5 @@
1
1
  import 'classnames';
2
2
  import 'react';
3
3
  import '@alfalab/hooks';
4
- import '@alfalab/core-components-form-control/modern';
4
+ import '@alfalab/core-components-form-control/dist/modern';
5
5
  export { AutocompleteMobileField } from './Component.js';
@@ -142,6 +142,7 @@ type BottomSheetProps = {
142
142
  */
143
143
  disableBlockingScroll?: boolean;
144
144
  /**
145
+ * @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
145
146
  * Не анимировать шторку при изменении размера вьюпорта
146
147
  */
147
148
  ignoreScreenChange?: boolean;
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  import 'classnames';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
- import '@alfalab/core-components-select/modern';
5
- import '@alfalab/core-components-input/modern';
4
+ import '@alfalab/core-components-select/dist/modern';
5
+ import '@alfalab/core-components-input/dist/modern';
6
6
  import './autocomplete-field/Component.js';
7
7
  export { InputAutocomplete } from './Component.js';
@@ -1,4 +1,4 @@
1
- /* hash: zt1qs */
1
+ /* hash: 1emtx */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -11,13 +11,13 @@
11
11
  --gap-xs: 8px;
12
12
  --gap-m: 16px;
13
13
  }
14
- .input-autocomplete__bottomSheetInput_ap8s9 {
14
+ .input-autocomplete__bottomSheetInput_xconq {
15
15
  padding: 0 var(--gap-xs) var(--gap-xs);
16
16
  box-sizing: border-box;
17
17
  }
18
- .input-autocomplete__footer_ap8s9 {
18
+ .input-autocomplete__footer_xconq {
19
19
  display: flex
20
20
  }
21
- .input-autocomplete__footer_ap8s9 > button + button {
21
+ .input-autocomplete__footer_xconq > button + button {
22
22
  margin-left: var(--gap-m);
23
23
  }
File without changes
@@ -2,10 +2,10 @@ import 'classnames';
2
2
  import 'react';
3
3
  import 'react-merge-refs';
4
4
  import 'lodash.throttle';
5
- import '@alfalab/core-components-select/modern';
6
- import '@alfalab/core-components-button/modern';
7
- import '@alfalab/core-components-input/modern';
5
+ import '@alfalab/core-components-select/dist/modern';
6
+ import '@alfalab/core-components-button/dist/modern';
7
+ import '@alfalab/core-components-input/dist/modern';
8
8
  import '@alfalab/hooks';
9
- import '@alfalab/core-components-form-control/modern';
9
+ import '@alfalab/core-components-form-control/dist/modern';
10
10
  import './autocomplete-mobile-field/Component.js';
11
11
  export { InputAutocompleteMobile } from './Component.mobile.js';
File without changes
package/package.json CHANGED
@@ -1,26 +1,28 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-input-autocomplete",
3
- "version": "7.5.1",
3
+ "version": "7.6.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
- "main": "index.js",
8
- "module": "./esm/index.js",
7
+ "main": "dist/index.js",
8
+ "module": "./dist/esm/index.js",
9
+ "files": [
10
+ "dist"
11
+ ],
9
12
  "scripts": {
10
- "postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
13
+ "postinstall": "node -e \"if (require('fs').existsSync('./dist/send-stats.js')){require('./dist/send-stats.js')} \""
11
14
  },
12
15
  "publishConfig": {
13
- "access": "public",
14
- "directory": "dist"
16
+ "access": "public"
15
17
  },
16
18
  "peerDependencies": {
17
19
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
20
  },
19
21
  "dependencies": {
20
- "@alfalab/core-components-button": "^5.3.0",
21
- "@alfalab/core-components-form-control": "^7.6.0",
22
- "@alfalab/core-components-input": "^9.1.0",
23
- "@alfalab/core-components-select": "^11.1.1",
22
+ "@alfalab/core-components-button": "^5.3.2",
23
+ "@alfalab/core-components-form-control": "^7.6.1",
24
+ "@alfalab/core-components-input": "^9.1.2",
25
+ "@alfalab/core-components-select": "^11.1.4",
24
26
  "@alfalab/hooks": "^1.4.1",
25
27
  "classnames": "^2.3.1",
26
28
  "lodash.throttle": "^4.1.1",
@@ -28,5 +30,6 @@
28
30
  },
29
31
  "devDependencies": {
30
32
  "@types/lodash.throttle": "^4.1.7"
31
- }
33
+ },
34
+ "gitHead": "4d6c8965d07839e339b370bb7c92bd7f9e24b1f3"
32
35
  }