@alfalab/core-components-input-autocomplete 7.4.0 → 7.4.3
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.
- package/CHANGELOG.md +24 -0
- package/{dist/Component-7ca84eff.d.ts → Component-7ca84eff.d.ts} +0 -0
- package/Component.d.ts +128 -0
- package/{dist/Component.js → Component.js} +1 -1
- package/{dist/modern/Component.mobile.d.ts → Component.mobile.d.ts} +1 -1
- package/{dist/Component.mobile.js → Component.mobile.js} +2 -2
- package/{dist/autocomplete-field → autocomplete-field}/Component.d.ts +0 -0
- package/{dist/autocomplete-field → autocomplete-field}/Component.js +2 -2
- package/autocomplete-field/index.css +4 -0
- package/{dist/autocomplete-field → autocomplete-field}/index.d.ts +0 -0
- package/{dist/autocomplete-field → autocomplete-field}/index.js +1 -1
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/Component.d.ts +0 -0
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/Component.js +2 -2
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.css +8 -8
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.d.ts +0 -0
- package/{dist/autocomplete-mobile-field → autocomplete-mobile-field}/index.js +1 -1
- package/{dist/cssm → cssm}/Component-7ca84eff.d.ts +0 -0
- package/{dist → cssm}/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/Component.js +0 -0
- package/{dist → cssm}/Component.mobile.d.ts +0 -0
- package/{dist/cssm → cssm}/Component.mobile.js +0 -0
- package/{dist/cssm → cssm}/autocomplete-field/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/autocomplete-field/Component.js +0 -0
- package/{dist/cssm → cssm}/autocomplete-field/index.d.ts +0 -0
- package/{dist/cssm → cssm}/autocomplete-field/index.js +0 -0
- package/{dist/cssm → cssm}/autocomplete-field/index.module.css +0 -0
- package/{dist/cssm → cssm}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{dist/cssm → cssm}/autocomplete-mobile-field/Component.js +0 -0
- package/{dist/cssm → cssm}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{dist/cssm → cssm}/autocomplete-mobile-field/index.js +0 -0
- package/{dist/cssm → cssm}/autocomplete-mobile-field/index.module.css +0 -0
- package/{dist/esm → cssm}/index-7ca84eff.d.ts +4 -0
- package/{dist/cssm → cssm}/index-bdb4c6b9.d.ts +0 -0
- package/{dist/cssm → cssm}/index-ebda875c.d.ts +0 -0
- package/{dist/cssm → cssm}/index.d.ts +0 -0
- package/{dist/cssm → cssm}/index.js +0 -0
- package/{dist/cssm → cssm}/mobile.d.ts +0 -0
- package/{dist/cssm → cssm}/mobile.js +0 -0
- package/{dist/cssm → cssm}/mobile.module.css +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.d.ts +0 -0
- package/{dist/cssm → cssm}/tslib.es6-ce870b46.js +0 -0
- package/{dist/esm → esm}/Component-7ca84eff.d.ts +0 -0
- package/{dist/cssm → esm}/Component.d.ts +0 -0
- package/{dist/esm → esm}/Component.js +1 -1
- package/{dist/cssm → esm}/Component.mobile.d.ts +0 -0
- package/{dist/esm → esm}/Component.mobile.js +2 -2
- package/{dist/esm → esm}/autocomplete-field/Component.d.ts +0 -0
- package/{dist/esm → esm}/autocomplete-field/Component.js +2 -2
- package/esm/autocomplete-field/index.css +4 -0
- package/{dist/esm → esm}/autocomplete-field/index.d.ts +0 -0
- package/{dist/esm → esm}/autocomplete-field/index.js +1 -1
- package/{dist/esm → esm}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{dist/esm → esm}/autocomplete-mobile-field/Component.js +2 -2
- package/{dist/esm → esm}/autocomplete-mobile-field/index.css +8 -8
- package/{dist/esm → esm}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{dist/esm → esm}/autocomplete-mobile-field/index.js +1 -1
- package/{dist → esm}/index-7ca84eff.d.ts +4 -0
- package/{dist/esm → esm}/index-bdb4c6b9.d.ts +0 -0
- package/{dist/esm → esm}/index-ebda875c.d.ts +0 -0
- package/{dist/esm → esm}/index.d.ts +0 -0
- package/{dist/esm → esm}/index.js +1 -1
- package/{dist/modern → esm}/mobile.css +3 -3
- package/{dist/esm → esm}/mobile.d.ts +0 -0
- package/{dist/esm → esm}/mobile.js +1 -1
- package/{dist/esm/tslib.es6-4ad49c69.d.ts → esm/tslib.es6-f6903a8e.d.ts} +0 -0
- package/{dist/esm/tslib.es6-4ad49c69.js → esm/tslib.es6-f6903a8e.js} +0 -0
- package/{dist/cssm/index-7ca84eff.d.ts → index-7ca84eff.d.ts} +4 -0
- package/{dist/index-bdb4c6b9.d.ts → index-bdb4c6b9.d.ts} +0 -0
- package/{dist/index-ebda875c.d.ts → index-ebda875c.d.ts} +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +1 -1
- package/{dist/mobile.css → mobile.css} +3 -3
- package/{dist/mobile.d.ts → mobile.d.ts} +0 -0
- package/{dist/mobile.js → mobile.js} +1 -1
- package/{dist/modern → modern}/Component-7ca84eff.d.ts +0 -0
- package/{dist/esm → modern}/Component.d.ts +0 -0
- package/{dist/modern → modern}/Component.js +0 -0
- package/{dist/esm → modern}/Component.mobile.d.ts +0 -0
- package/{dist/modern → modern}/Component.mobile.js +1 -1
- package/{dist/modern → modern}/autocomplete-field/Component.d.ts +0 -0
- package/{dist/modern → modern}/autocomplete-field/Component.js +1 -1
- package/modern/autocomplete-field/index.css +4 -0
- package/{dist/modern → modern}/autocomplete-field/index.d.ts +0 -0
- package/{dist/modern → modern}/autocomplete-field/index.js +0 -0
- package/{dist/modern → modern}/autocomplete-mobile-field/Component.d.ts +0 -0
- package/{dist/modern → modern}/autocomplete-mobile-field/Component.js +1 -1
- package/{dist/modern → modern}/autocomplete-mobile-field/index.css +8 -8
- package/{dist/modern → modern}/autocomplete-mobile-field/index.d.ts +0 -0
- package/{dist/modern → modern}/autocomplete-mobile-field/index.js +0 -0
- package/{dist/modern → modern}/index-7ca84eff.d.ts +4 -0
- package/{dist/modern → modern}/index-bdb4c6b9.d.ts +0 -0
- package/{dist/modern → modern}/index-ebda875c.d.ts +0 -0
- package/{dist/modern → modern}/index.d.ts +0 -0
- package/{dist/modern → modern}/index.js +0 -0
- package/{dist/esm → modern}/mobile.css +3 -3
- package/{dist/modern → modern}/mobile.d.ts +0 -0
- package/{dist/modern → modern}/mobile.js +0 -0
- package/package.json +11 -14
- package/{dist/send-stats.js → send-stats.js} +0 -0
- package/{dist/tslib.es6-19083026.d.ts → tslib.es6-1a16aebd.d.ts} +0 -0
- package/{dist/tslib.es6-19083026.js → tslib.es6-1a16aebd.js} +0 -0
- package/dist/autocomplete-field/index.css +0 -4
- package/dist/esm/autocomplete-field/index.css +0 -4
- package/dist/modern/Component.d.ts +0 -128
- package/dist/modern/autocomplete-field/index.css +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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.4.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.2...@alfalab/core-components-input-autocomplete@7.4.3) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [7.4.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.1...@alfalab/core-components-input-autocomplete@7.4.2) (2022-07-14)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [7.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.4.0...@alfalab/core-components-input-autocomplete@7.4.1) (2022-07-11)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @alfalab/core-components-input-autocomplete
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
# [7.4.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-input-autocomplete@7.3.5...@alfalab/core-components-input-autocomplete@7.4.0) (2022-07-01)
|
|
7
31
|
|
|
8
32
|
|
|
File without changes
|
package/Component.d.ts
ADDED
|
@@ -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, "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
|
+
/**
|
|
38
|
+
* Компонент ввода значения
|
|
39
|
+
*/
|
|
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
|
+
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" | "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
|
+
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 };
|
|
@@ -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, "
|
|
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
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-1a16aebd.js');
|
|
6
6
|
var cn = require('classnames');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var mergeRefs = require('react-merge-refs');
|
|
@@ -21,7 +21,7 @@ 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-
|
|
24
|
+
var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_7bigc","footer":"input-autocomplete__footer_7bigc"};
|
|
25
25
|
require('./mobile.css')
|
|
26
26
|
|
|
27
27
|
var SELECTED = [];
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../tslib.es6-1a16aebd.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-
|
|
17
|
+
var styles = {"arrow":"input-autocomplete__arrow_d0yl3","error":"input-autocomplete__error_d0yl3"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var AutocompleteField = function (_a) {
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../tslib.es6-1a16aebd.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-
|
|
16
|
+
var styles = {"component":"input-autocomplete__component_xp7nn","field":"input-autocomplete__field_xp7nn","disabled":"input-autocomplete__disabled_xp7nn","placeholder":"input-autocomplete__placeholder_xp7nn","contentWrapper":"input-autocomplete__contentWrapper_xp7nn","value":"input-autocomplete__value_xp7nn","focusVisible":"input-autocomplete__focusVisible_xp7nn"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1spit */
|
|
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-
|
|
18
|
+
.input-autocomplete__component_xp7nn {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_xp7nn:not(.input-autocomplete__disabled_xp7nn) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_xp7nn {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_xp7nn {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_xp7nn {
|
|
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-
|
|
41
|
+
.input-autocomplete__value_xp7nn {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_xp7nn {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -59,6 +59,10 @@ type BottomSheetProps = {
|
|
|
59
59
|
* Дополнительный класс для компонента стрелки назад
|
|
60
60
|
*/
|
|
61
61
|
backerClassName?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Дополнительный класс для компонента модального окна
|
|
64
|
+
*/
|
|
65
|
+
modalClassName?: string;
|
|
62
66
|
/**
|
|
63
67
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
64
68
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-f6903a8e.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,7 +10,7 @@ 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-
|
|
13
|
+
var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_7bigc","footer":"input-autocomplete__footer_7bigc"};
|
|
14
14
|
require('./mobile.css')
|
|
15
15
|
|
|
16
16
|
var SELECTED = [];
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __assign } from '../tslib.es6-
|
|
1
|
+
import { a as __assign } from '../tslib.es6-f6903a8e.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-
|
|
7
|
+
var styles = {"arrow":"input-autocomplete__arrow_d0yl3","error":"input-autocomplete__error_d0yl3"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteField = function (_a) {
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../tslib.es6-f6903a8e.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-
|
|
7
|
+
var styles = {"component":"input-autocomplete__component_xp7nn","field":"input-autocomplete__field_xp7nn","disabled":"input-autocomplete__disabled_xp7nn","placeholder":"input-autocomplete__placeholder_xp7nn","contentWrapper":"input-autocomplete__contentWrapper_xp7nn","value":"input-autocomplete__value_xp7nn","focusVisible":"input-autocomplete__focusVisible_xp7nn"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var AutocompleteMobileField = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1spit */
|
|
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-
|
|
18
|
+
.input-autocomplete__component_xp7nn {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_xp7nn:not(.input-autocomplete__disabled_xp7nn) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_xp7nn {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_xp7nn {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_xp7nn {
|
|
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-
|
|
41
|
+
.input-autocomplete__value_xp7nn {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_xp7nn {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
|
File without changes
|
|
@@ -59,6 +59,10 @@ type BottomSheetProps = {
|
|
|
59
59
|
* Дополнительный класс для компонента стрелки назад
|
|
60
60
|
*/
|
|
61
61
|
backerClassName?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Дополнительный класс для компонента модального окна
|
|
64
|
+
*/
|
|
65
|
+
modalClassName?: string;
|
|
62
66
|
/**
|
|
63
67
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
64
68
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ndhq */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-xs: 8px;
|
|
12
12
|
}
|
|
13
|
-
.input-
|
|
13
|
+
.input-autocomplete__bottomSheetInput_7bigc {
|
|
14
14
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
}
|
|
17
|
-
.input-
|
|
17
|
+
.input-autocomplete__footer_7bigc {
|
|
18
18
|
display: flex
|
|
19
19
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -59,6 +59,10 @@ type BottomSheetProps = {
|
|
|
59
59
|
* Дополнительный класс для компонента стрелки назад
|
|
60
60
|
*/
|
|
61
61
|
backerClassName?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Дополнительный класс для компонента модального окна
|
|
64
|
+
*/
|
|
65
|
+
modalClassName?: string;
|
|
62
66
|
/**
|
|
63
67
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
64
68
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ndhq */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-xs: 8px;
|
|
12
12
|
}
|
|
13
|
-
.input-
|
|
13
|
+
.input-autocomplete__bottomSheetInput_7bigc {
|
|
14
14
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
}
|
|
17
|
-
.input-
|
|
17
|
+
.input-autocomplete__footer_7bigc {
|
|
18
18
|
display: flex
|
|
19
19
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,7 +9,7 @@ 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-
|
|
12
|
+
var styles = {"bottomSheetInput":"input-autocomplete__bottomSheetInput_7bigc","footer":"input-autocomplete__footer_7bigc"};
|
|
13
13
|
require('./mobile.css')
|
|
14
14
|
|
|
15
15
|
const SELECTED = [];
|
|
File without changes
|
|
@@ -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-
|
|
6
|
+
var styles = {"arrow":"input-autocomplete__arrow_d0yl3","error":"input-autocomplete__error_d0yl3"};
|
|
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, }) => {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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-
|
|
6
|
+
var styles = {"component":"input-autocomplete__component_xp7nn","field":"input-autocomplete__field_xp7nn","disabled":"input-autocomplete__disabled_xp7nn","placeholder":"input-autocomplete__placeholder_xp7nn","contentWrapper":"input-autocomplete__contentWrapper_xp7nn","value":"input-autocomplete__value_xp7nn","focusVisible":"input-autocomplete__focusVisible_xp7nn"};
|
|
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:
|
|
1
|
+
/* hash: 1spit */
|
|
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-
|
|
18
|
+
.input-autocomplete__component_xp7nn {
|
|
19
19
|
width: 100%;
|
|
20
20
|
outline: none;
|
|
21
21
|
}
|
|
22
|
-
.input-
|
|
22
|
+
.input-autocomplete__field_xp7nn:not(.input-autocomplete__disabled_xp7nn) {
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
.input-
|
|
25
|
+
.input-autocomplete__disabled_xp7nn {
|
|
26
26
|
cursor: var(--disabled-cursor);
|
|
27
27
|
}
|
|
28
|
-
.input-
|
|
28
|
+
.input-autocomplete__placeholder_xp7nn {
|
|
29
29
|
color: var(--color-light-text-secondary);
|
|
30
30
|
}
|
|
31
|
-
.input-
|
|
31
|
+
.input-autocomplete__contentWrapper_xp7nn {
|
|
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-
|
|
41
|
+
.input-autocomplete__value_xp7nn {
|
|
42
42
|
overflow: hidden;
|
|
43
43
|
text-overflow: ellipsis;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
|
-
.input-
|
|
46
|
+
.input-autocomplete__focusVisible_xp7nn {
|
|
47
47
|
outline: 2px solid var(--focus-color);
|
|
48
48
|
outline-offset: 2px;
|
|
49
49
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -59,6 +59,10 @@ type BottomSheetProps = {
|
|
|
59
59
|
* Дополнительный класс для компонента стрелки назад
|
|
60
60
|
*/
|
|
61
61
|
backerClassName?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Дополнительный класс для компонента модального окна
|
|
64
|
+
*/
|
|
65
|
+
modalClassName?: string;
|
|
62
66
|
/**
|
|
63
67
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
64
68
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ndhq */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-xs: 8px;
|
|
12
12
|
}
|
|
13
|
-
.input-
|
|
13
|
+
.input-autocomplete__bottomSheetInput_7bigc {
|
|
14
14
|
padding: 0 var(--gap-xs) var(--gap-xs);
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
}
|
|
17
|
-
.input-
|
|
17
|
+
.input-autocomplete__footer_7bigc {
|
|
18
18
|
display: flex
|
|
19
19
|
}
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-input-autocomplete",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "
|
|
8
|
-
"module": "./
|
|
9
|
-
"files": [
|
|
10
|
-
"dist"
|
|
11
|
-
],
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"module": "./esm/index.js",
|
|
12
9
|
"scripts": {
|
|
13
|
-
"postinstall": "node ./
|
|
10
|
+
"postinstall": "node ./send-stats.js > /dev/null 2>&1 || exit 0"
|
|
14
11
|
},
|
|
15
12
|
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
13
|
+
"access": "public",
|
|
14
|
+
"directory": "dist"
|
|
17
15
|
},
|
|
18
16
|
"peerDependencies": {
|
|
19
17
|
"react": "^16.9.0 || ^17.0.1"
|
|
20
18
|
},
|
|
21
19
|
"dependencies": {
|
|
22
|
-
"@alfalab/core-components-button": "^5.2.
|
|
23
|
-
"@alfalab/core-components-form-control": "^7.5.
|
|
24
|
-
"@alfalab/core-components-input": "^8.2.
|
|
25
|
-
"@alfalab/core-components-select": "^10.12.
|
|
20
|
+
"@alfalab/core-components-button": "^5.2.1",
|
|
21
|
+
"@alfalab/core-components-form-control": "^7.5.1",
|
|
22
|
+
"@alfalab/core-components-input": "^8.2.1",
|
|
23
|
+
"@alfalab/core-components-select": "^10.12.3",
|
|
26
24
|
"@alfalab/hooks": "^1.4.1",
|
|
27
25
|
"classnames": "^2.2.6",
|
|
28
26
|
"lodash.throttle": "^4.1.1",
|
|
@@ -30,6 +28,5 @@
|
|
|
30
28
|
},
|
|
31
29
|
"devDependencies": {
|
|
32
30
|
"@types/lodash.throttle": "^4.1.7"
|
|
33
|
-
}
|
|
34
|
-
"gitHead": "a1e54f5b2894447f4a6c80347706c27f855d5710"
|
|
31
|
+
}
|
|
35
32
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,128 +0,0 @@
|
|
|
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" | "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" | "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 };
|