@alfalab/core-components-input-autocomplete 12.9.7 → 13.0.0-snapshot-6a9d3fc

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 (265) hide show
  1. package/Component.responsive.d.ts +2 -4
  2. package/Component.responsive.js +4 -3
  3. package/Component.responsive.js.map +1 -0
  4. package/autocomplete-field/Component.d.ts +4 -6
  5. package/autocomplete-field/Component.js +4 -5
  6. package/autocomplete-field/Component.js.map +1 -0
  7. package/autocomplete-field/index.css +1 -2
  8. package/autocomplete-field/index.d.ts +1 -1
  9. package/autocomplete-field/index.js +3 -2
  10. package/autocomplete-field/index.js.map +1 -0
  11. package/autocomplete-field/index.module.css.js +8 -0
  12. package/autocomplete-field/index.module.css.js.map +1 -0
  13. package/autocomplete-mobile-field/Component.d.ts +7 -9
  14. package/autocomplete-mobile-field/Component.js +11 -12
  15. package/autocomplete-mobile-field/Component.js.map +1 -0
  16. package/autocomplete-mobile-field/index.css +13 -37
  17. package/autocomplete-mobile-field/index.d.ts +1 -1
  18. package/autocomplete-mobile-field/index.js +3 -2
  19. package/autocomplete-mobile-field/index.js.map +1 -0
  20. package/autocomplete-mobile-field/index.module.css.js +8 -0
  21. package/autocomplete-mobile-field/index.module.css.js.map +1 -0
  22. package/cssm/Component.responsive.d.ts +2 -4
  23. package/cssm/Component.responsive.js +6 -5
  24. package/cssm/Component.responsive.js.map +1 -0
  25. package/cssm/autocomplete-field/Component.d.ts +4 -6
  26. package/cssm/autocomplete-field/Component.js +1 -0
  27. package/cssm/autocomplete-field/Component.js.map +1 -0
  28. package/cssm/autocomplete-field/index.d.ts +1 -1
  29. package/cssm/autocomplete-field/index.js +3 -2
  30. package/cssm/autocomplete-field/index.js.map +1 -0
  31. package/cssm/autocomplete-mobile-field/Component.d.ts +7 -9
  32. package/cssm/autocomplete-mobile-field/Component.js +6 -5
  33. package/cssm/autocomplete-mobile-field/Component.js.map +1 -0
  34. package/cssm/autocomplete-mobile-field/index.d.ts +1 -1
  35. package/cssm/autocomplete-mobile-field/index.js +3 -2
  36. package/cssm/autocomplete-mobile-field/index.js.map +1 -0
  37. package/cssm/autocomplete-mobile-field/index.module.css +3 -26
  38. package/cssm/desktop/Component.desktop.d.ts +2 -4
  39. package/cssm/desktop/Component.desktop.js +4 -3
  40. package/cssm/desktop/Component.desktop.js.map +1 -0
  41. package/cssm/desktop/index.d.ts +2 -2
  42. package/cssm/desktop/index.js +3 -2
  43. package/cssm/desktop/index.js.map +1 -0
  44. package/cssm/enums.d.ts +1 -2
  45. package/cssm/enums.js +1 -0
  46. package/cssm/enums.js.map +1 -0
  47. package/cssm/index.d.ts +2 -2
  48. package/cssm/index.js +1 -0
  49. package/cssm/index.js.map +1 -0
  50. package/cssm/mobile/Component.mobile.d.ts +1 -4
  51. package/cssm/mobile/Component.mobile.js +6 -5
  52. package/cssm/mobile/Component.mobile.js.map +1 -0
  53. package/cssm/mobile/Component.modal.mobile.d.ts +1 -4
  54. package/cssm/mobile/Component.modal.mobile.js +3 -2
  55. package/cssm/mobile/Component.modal.mobile.js.map +1 -0
  56. package/cssm/mobile/index.d.ts +3 -3
  57. package/cssm/mobile/index.js +5 -4
  58. package/cssm/mobile/index.js.map +1 -0
  59. package/cssm/mobile/mobile.module.css +1 -23
  60. package/cssm/shared/index.d.ts +1 -1
  61. package/cssm/shared/index.js +1 -0
  62. package/cssm/shared/index.js.map +1 -0
  63. package/cssm/types.d.ts +9 -9
  64. package/cssm/types.js +1 -0
  65. package/cssm/types.js.map +1 -0
  66. package/cssm/utils.d.ts +3 -4
  67. package/cssm/utils.js +38 -37
  68. package/cssm/utils.js.map +1 -0
  69. package/desktop/Component.desktop.d.ts +2 -4
  70. package/desktop/Component.desktop.js +3 -2
  71. package/desktop/Component.desktop.js.map +1 -0
  72. package/desktop/index.d.ts +2 -2
  73. package/desktop/index.js +3 -2
  74. package/desktop/index.js.map +1 -0
  75. package/enums.d.ts +1 -2
  76. package/enums.js +1 -0
  77. package/enums.js.map +1 -0
  78. package/esm/Component.responsive.d.ts +2 -4
  79. package/esm/Component.responsive.js +1 -0
  80. package/esm/Component.responsive.js.map +1 -0
  81. package/esm/autocomplete-field/Component.d.ts +4 -6
  82. package/esm/autocomplete-field/Component.js +2 -3
  83. package/esm/autocomplete-field/Component.js.map +1 -0
  84. package/esm/autocomplete-field/index.css +1 -2
  85. package/esm/autocomplete-field/index.d.ts +1 -1
  86. package/esm/autocomplete-field/index.js +1 -0
  87. package/esm/autocomplete-field/index.js.map +1 -0
  88. package/esm/autocomplete-field/index.module.css.js +6 -0
  89. package/esm/autocomplete-field/index.module.css.js.map +1 -0
  90. package/esm/autocomplete-mobile-field/Component.d.ts +7 -9
  91. package/esm/autocomplete-mobile-field/Component.js +2 -3
  92. package/esm/autocomplete-mobile-field/Component.js.map +1 -0
  93. package/esm/autocomplete-mobile-field/index.css +13 -37
  94. package/esm/autocomplete-mobile-field/index.d.ts +1 -1
  95. package/esm/autocomplete-mobile-field/index.js +1 -0
  96. package/esm/autocomplete-mobile-field/index.js.map +1 -0
  97. package/esm/autocomplete-mobile-field/index.module.css.js +6 -0
  98. package/esm/autocomplete-mobile-field/index.module.css.js.map +1 -0
  99. package/esm/desktop/Component.desktop.d.ts +2 -4
  100. package/esm/desktop/Component.desktop.js +1 -0
  101. package/esm/desktop/Component.desktop.js.map +1 -0
  102. package/esm/desktop/index.d.ts +2 -2
  103. package/esm/desktop/index.js +1 -0
  104. package/esm/desktop/index.js.map +1 -0
  105. package/esm/enums.d.ts +1 -2
  106. package/esm/enums.js +1 -0
  107. package/esm/enums.js.map +1 -0
  108. package/esm/index.d.ts +2 -2
  109. package/esm/index.js +1 -0
  110. package/esm/index.js.map +1 -0
  111. package/esm/mobile/Component.mobile.d.ts +1 -4
  112. package/esm/mobile/Component.mobile.js +2 -3
  113. package/esm/mobile/Component.mobile.js.map +1 -0
  114. package/esm/mobile/Component.modal.mobile.d.ts +1 -4
  115. package/esm/mobile/Component.modal.mobile.js +1 -0
  116. package/esm/mobile/Component.modal.mobile.js.map +1 -0
  117. package/esm/mobile/index.d.ts +3 -3
  118. package/esm/mobile/index.js +1 -0
  119. package/esm/mobile/index.js.map +1 -0
  120. package/esm/mobile/mobile.css +1 -24
  121. package/esm/mobile/mobile.module.css.js +6 -0
  122. package/esm/mobile/mobile.module.css.js.map +1 -0
  123. package/esm/shared/index.d.ts +1 -1
  124. package/esm/shared/index.js +1 -0
  125. package/esm/shared/index.js.map +1 -0
  126. package/esm/types.d.ts +9 -9
  127. package/esm/types.js +1 -0
  128. package/esm/types.js.map +1 -0
  129. package/esm/utils.d.ts +3 -4
  130. package/esm/utils.js +1 -0
  131. package/esm/utils.js.map +1 -0
  132. package/index.d.ts +2 -2
  133. package/index.js +1 -0
  134. package/index.js.map +1 -0
  135. package/mobile/Component.mobile.d.ts +1 -4
  136. package/mobile/Component.mobile.js +6 -7
  137. package/mobile/Component.mobile.js.map +1 -0
  138. package/mobile/Component.modal.mobile.d.ts +1 -4
  139. package/mobile/Component.modal.mobile.js +3 -2
  140. package/mobile/Component.modal.mobile.js.map +1 -0
  141. package/mobile/index.d.ts +3 -3
  142. package/mobile/index.js +5 -4
  143. package/mobile/index.js.map +1 -0
  144. package/mobile/mobile.css +1 -24
  145. package/mobile/mobile.module.css.js +8 -0
  146. package/mobile/mobile.module.css.js.map +1 -0
  147. package/modern/Component.responsive.d.ts +2 -4
  148. package/modern/Component.responsive.js +1 -0
  149. package/modern/Component.responsive.js.map +1 -0
  150. package/modern/autocomplete-field/Component.d.ts +4 -6
  151. package/modern/autocomplete-field/Component.js +2 -3
  152. package/modern/autocomplete-field/Component.js.map +1 -0
  153. package/modern/autocomplete-field/index.css +1 -2
  154. package/modern/autocomplete-field/index.d.ts +1 -1
  155. package/modern/autocomplete-field/index.js +1 -0
  156. package/modern/autocomplete-field/index.js.map +1 -0
  157. package/modern/autocomplete-field/index.module.css.js +6 -0
  158. package/modern/autocomplete-field/index.module.css.js.map +1 -0
  159. package/modern/autocomplete-mobile-field/Component.d.ts +7 -9
  160. package/modern/autocomplete-mobile-field/Component.js +2 -3
  161. package/modern/autocomplete-mobile-field/Component.js.map +1 -0
  162. package/modern/autocomplete-mobile-field/index.css +13 -37
  163. package/modern/autocomplete-mobile-field/index.d.ts +1 -1
  164. package/modern/autocomplete-mobile-field/index.js +1 -0
  165. package/modern/autocomplete-mobile-field/index.js.map +1 -0
  166. package/modern/autocomplete-mobile-field/index.module.css.js +6 -0
  167. package/modern/autocomplete-mobile-field/index.module.css.js.map +1 -0
  168. package/modern/desktop/Component.desktop.d.ts +2 -4
  169. package/modern/desktop/Component.desktop.js +1 -0
  170. package/modern/desktop/Component.desktop.js.map +1 -0
  171. package/modern/desktop/index.d.ts +2 -2
  172. package/modern/desktop/index.js +1 -0
  173. package/modern/desktop/index.js.map +1 -0
  174. package/modern/enums.d.ts +1 -2
  175. package/modern/enums.js +1 -0
  176. package/modern/enums.js.map +1 -0
  177. package/modern/index.d.ts +2 -2
  178. package/modern/index.js +1 -0
  179. package/modern/index.js.map +1 -0
  180. package/modern/mobile/Component.mobile.d.ts +1 -4
  181. package/modern/mobile/Component.mobile.js +2 -3
  182. package/modern/mobile/Component.mobile.js.map +1 -0
  183. package/modern/mobile/Component.modal.mobile.d.ts +1 -4
  184. package/modern/mobile/Component.modal.mobile.js +1 -0
  185. package/modern/mobile/Component.modal.mobile.js.map +1 -0
  186. package/modern/mobile/index.d.ts +3 -3
  187. package/modern/mobile/index.js +1 -0
  188. package/modern/mobile/index.js.map +1 -0
  189. package/modern/mobile/mobile.css +1 -24
  190. package/modern/mobile/mobile.module.css.js +6 -0
  191. package/modern/mobile/mobile.module.css.js.map +1 -0
  192. package/modern/shared/index.d.ts +1 -1
  193. package/modern/shared/index.js +1 -0
  194. package/modern/shared/index.js.map +1 -0
  195. package/modern/types.d.ts +9 -9
  196. package/modern/types.js +1 -0
  197. package/modern/types.js.map +1 -0
  198. package/modern/utils.d.ts +3 -4
  199. package/modern/utils.js +1 -0
  200. package/modern/utils.js.map +1 -0
  201. package/moderncssm/Component.responsive.d.ts +2 -4
  202. package/moderncssm/Component.responsive.js +1 -0
  203. package/moderncssm/Component.responsive.js.map +1 -0
  204. package/moderncssm/autocomplete-field/Component.d.ts +4 -6
  205. package/moderncssm/autocomplete-field/Component.js +1 -0
  206. package/moderncssm/autocomplete-field/Component.js.map +1 -0
  207. package/moderncssm/autocomplete-field/index.d.ts +1 -1
  208. package/moderncssm/autocomplete-field/index.js +1 -0
  209. package/moderncssm/autocomplete-field/index.js.map +1 -0
  210. package/moderncssm/autocomplete-mobile-field/Component.d.ts +7 -9
  211. package/moderncssm/autocomplete-mobile-field/Component.js +1 -0
  212. package/moderncssm/autocomplete-mobile-field/Component.js.map +1 -0
  213. package/moderncssm/autocomplete-mobile-field/index.d.ts +1 -1
  214. package/moderncssm/autocomplete-mobile-field/index.js +1 -0
  215. package/moderncssm/autocomplete-mobile-field/index.js.map +1 -0
  216. package/moderncssm/autocomplete-mobile-field/index.module.css +0 -4
  217. package/moderncssm/desktop/Component.desktop.d.ts +2 -4
  218. package/moderncssm/desktop/Component.desktop.js +1 -0
  219. package/moderncssm/desktop/Component.desktop.js.map +1 -0
  220. package/moderncssm/desktop/index.d.ts +2 -2
  221. package/moderncssm/desktop/index.js +1 -0
  222. package/moderncssm/desktop/index.js.map +1 -0
  223. package/moderncssm/enums.d.ts +1 -2
  224. package/moderncssm/enums.js +1 -0
  225. package/moderncssm/enums.js.map +1 -0
  226. package/moderncssm/index.d.ts +2 -2
  227. package/moderncssm/index.js +1 -0
  228. package/moderncssm/index.js.map +1 -0
  229. package/moderncssm/mobile/Component.mobile.d.ts +1 -4
  230. package/moderncssm/mobile/Component.mobile.js +1 -0
  231. package/moderncssm/mobile/Component.mobile.js.map +1 -0
  232. package/moderncssm/mobile/Component.modal.mobile.d.ts +1 -4
  233. package/moderncssm/mobile/Component.modal.mobile.js +1 -0
  234. package/moderncssm/mobile/Component.modal.mobile.js.map +1 -0
  235. package/moderncssm/mobile/index.d.ts +3 -3
  236. package/moderncssm/mobile/index.js +1 -0
  237. package/moderncssm/mobile/index.js.map +1 -0
  238. package/moderncssm/mobile/mobile.module.css +0 -2
  239. package/moderncssm/shared/index.d.ts +1 -1
  240. package/moderncssm/shared/index.js +1 -0
  241. package/moderncssm/shared/index.js.map +1 -0
  242. package/moderncssm/types.d.ts +9 -9
  243. package/moderncssm/types.js +1 -0
  244. package/moderncssm/types.js.map +1 -0
  245. package/moderncssm/utils.d.ts +3 -4
  246. package/moderncssm/utils.js +1 -0
  247. package/moderncssm/utils.js.map +1 -0
  248. package/package.json +12 -14
  249. package/shared/index.d.ts +1 -1
  250. package/shared/index.js +1 -0
  251. package/shared/index.js.map +1 -0
  252. package/types.d.ts +9 -9
  253. package/types.js +1 -0
  254. package/types.js.map +1 -0
  255. package/utils.d.ts +3 -4
  256. package/utils.js +1 -0
  257. package/utils.js.map +1 -0
  258. package/cssm/vars.css +0 -5
  259. package/desktop/package.json +0 -3
  260. package/mobile/package.json +0 -3
  261. package/moderncssm/vars.css +0 -5
  262. package/shared/package.json +0 -3
  263. package/src/desktop/package.json +0 -3
  264. package/src/mobile/package.json +0 -3
  265. package/src/shared/package.json +0 -3
@@ -1,7 +1,5 @@
1
- /// <reference types="react" />
2
- /// <reference types="react-transition-group" />
3
1
  import React from 'react';
4
- declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import("../types").InputAutocompleteCommonProps & {
2
+ export declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import("../types").InputAutocompleteCommonProps & {
5
3
  isBottomSheet?: boolean | undefined;
6
4
  transitionProps?: Partial<import("react-transition-group/Transition").TransitionProps<undefined>> | undefined;
7
5
  onApply?: (() => void) | undefined;
@@ -9,4 +7,3 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import(".
9
7
  title?: string | undefined;
10
8
  virtualKeyboard?: boolean | undefined;
11
9
  } & React.RefAttributes<unknown>>;
12
- export { InputAutocompleteMobile };
@@ -10,9 +10,7 @@ import { isNonNullable, isMaskitoMask } from '@alfalab/core-components-shared/es
10
10
  import { AutocompleteMobileField } from '../autocomplete-mobile-field/Component.js';
11
11
  import { OnInputReason } from '../enums.js';
12
12
  import { searchFilterStub } from '../utils.js';
13
-
14
- var styles = {"input":"input-autocomplete__input_1pdoz"};
15
- require('./mobile.css')
13
+ import styles from './mobile.module.css.js';
16
14
 
17
15
  var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
18
16
  var _b;
@@ -89,3 +87,4 @@ var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
89
87
  });
90
88
 
91
89
  export { InputAutocompleteMobile };
90
+ //# sourceMappingURL=Component.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.mobile.js","sources":["../../src/mobile/Component.mobile.tsx"],"sourcesContent":["import React, { Ref, useMemo, useRef, useState } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport { maskitoTransform } from '@maskito/core';\nimport cn from 'classnames';\nimport throttle from 'lodash/throttle';\n\nimport {\n SelectMobile,\n SelectMobileProps,\n SelectModalMobile,\n} from '@alfalab/core-components-select/mobile';\nimport {\n AnyObject,\n BottomSheetSelectMobileProps,\n Footer,\n ModalSelectMobileProps,\n} from '@alfalab/core-components-select/shared';\nimport { isMaskitoMask, isNonNullable } from '@alfalab/core-components-shared';\n\nimport { AutocompleteMobileField } from '../autocomplete-mobile-field';\nimport { OnInputReason } from '../enums';\nimport { InputAutocompleteMobileProps } from '../types';\nimport { searchFilterStub } from '../utils';\n\nimport styles from './mobile.module.css';\n\nexport const InputAutocompleteMobile = React.forwardRef(\n (\n {\n Input,\n value,\n name,\n Arrow = null,\n label,\n placeholder = '',\n size = 48,\n open: openProp,\n onInput,\n onOpen,\n multiple,\n inputProps,\n isBottomSheet = true,\n dataTestId,\n transitionProps,\n onCancel,\n onApply,\n title,\n success,\n virtualKeyboard = false,\n ...restProps\n }: InputAutocompleteMobileProps,\n ref,\n ) => {\n const [open, setOpen] = useState(false);\n const frozenValue = useRef<string>('');\n const searchInputRef = useRef<HTMLInputElement>(null);\n const targetRef = useRef<HTMLDivElement>(null);\n\n const restorePrevValue = () => onInput?.(frozenValue.current, OnInputReason.Close);\n\n const setModalVisibility = (isOpen: boolean) => {\n if (isOpen) {\n frozenValue.current = value || '';\n }\n\n if (openProp === undefined) {\n setOpen(isOpen);\n }\n\n onOpen?.({ open: isOpen, name });\n };\n\n const handleOpen: SelectMobileProps['onOpen'] = (payload) => {\n setModalVisibility(Boolean(payload.open));\n };\n\n const handleOptionsListTouchMove = useMemo(\n () =>\n throttle(() => {\n const input = searchInputRef.current;\n\n if (input && document.activeElement === input) {\n input.blur();\n }\n }, 300),\n [],\n );\n\n const handleApply = () => {\n setModalVisibility(false);\n onApply?.();\n };\n\n const handleCancel = () => {\n setModalVisibility(false);\n restorePrevValue();\n onCancel?.();\n };\n\n const handleExiting = (node: HTMLElement) => {\n targetRef.current?.focus();\n transitionProps?.onExiting?.(node);\n };\n\n const isOpen = Boolean(open || openProp);\n\n const Component = isBottomSheet ? SelectMobile : SelectModalMobile;\n\n const componentProps:\n | ModalSelectMobileProps['modalProps']\n | BottomSheetSelectMobileProps['bottomSheetProps'] = {\n title: title || label || placeholder,\n onClose: restorePrevValue,\n transitionProps: {\n ...transitionProps,\n onExiting: handleExiting,\n },\n [isBottomSheet ? 'containerProps' : 'componentDivProps']: {\n onTouchMove: handleOptionsListTouchMove,\n },\n };\n\n const clear = inputProps?.clear ?? false;\n\n const displayValue = isOpen ? frozenValue.current : value;\n\n const fieldValue = useMemo(() => {\n const mask = inputProps?.mask;\n\n return isNonNullable(displayValue) && isMaskitoMask(mask)\n ? maskitoTransform(displayValue, { mask })\n : displayValue;\n }, [displayValue, inputProps?.mask]);\n\n return (\n <Component\n Field={AutocompleteMobileField}\n {...restProps}\n {...(isBottomSheet\n ? { bottomSheetProps: { ...componentProps, virtualKeyboard } }\n : {\n modalProps: componentProps,\n modalHeaderProps: { title },\n })}\n dataTestId={dataTestId}\n useWithApplyHook={false}\n showSearch={true}\n searchProps={{\n value,\n filterFn: searchFilterStub,\n componentProps: {\n leftAddons: null,\n placeholder,\n ...inputProps,\n className: cn(styles.input, inputProps?.className),\n clear,\n ref: mergeRefs([searchInputRef, inputProps?.ref as Ref<HTMLInputElement>]),\n onChange: (_, payload) => onInput?.(payload.value, OnInputReason.Change),\n },\n }}\n Search={Input}\n ref={mergeRefs([targetRef, ref])}\n open={isOpen}\n onOpen={handleOpen}\n Arrow={Arrow}\n placeholder={placeholder}\n label={label}\n size={size}\n name={name}\n multiple={multiple}\n optionsListProps={{\n footer: (\n <Footer\n showClear={true}\n handleClear={handleCancel}\n handleApply={handleApply}\n clearText='Отмена'\n applyText='Продолжить'\n dataTestId={dataTestId}\n />\n ),\n ...(restProps.optionsListProps as AnyObject),\n }}\n fieldProps={{\n value: fieldValue,\n clear,\n onClear: clear ? inputProps?.onClear : undefined,\n success,\n ...(restProps.fieldProps as AnyObject),\n }}\n />\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA0Ba,IAAA,uBAAuB,GAAG,KAAK,CAAC,UAAU,CACnD,UACI,EAsB+B,EAC/B,GAAG,EAAA;;;AAtBC,IAAA,IAAA,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,EAAA,GAAA,EAAA,CAAA,KAAY,EAAZ,KAAK,GAAA,EAAA,KAAA,MAAA,GAAG,IAAI,GAAA,EAAA,EACZ,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,EAAgB,GAAA,EAAA,CAAA,WAAA,EAAhB,WAAW,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,KAAA,EAChB,EAAA,GAAA,EAAA,CAAA,IAAS,EAAT,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,EAAE,GAAA,EAAA,EACH,QAAQ,GAAA,EAAA,CAAA,IAAA,EACd,OAAO,GAAA,EAAA,CAAA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AE,QAAQ,EAClB,gBAAgB,EACZ,QAAA,CAAA,EAAA,MAAM,GACF,KAAC,CAAA,aAAA,CAAA,MAAM,EACH,EAAA,SAAS,EAAE,IAAI,EACf,WAAW,EAAE,YAAY,EACzB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,sCAAQ,EAClB,SAAS,EAAC,8DAAY,EACtB,UAAU,EAAE,UAAU,EAAA,CACxB,CACL,EAAA,EACG,SAAS,CAAC,gBAA8B,CAAA,EAEhD,UAAU,EAAA,QAAA,CAAA,EACN,KAAK,EAAE,UAAU,EACjB,KAAK,EAAA,KAAA,EACL,OAAO,EAAE,KAAK,GAAG,UAAU,KAAA,IAAA,IAAV,UAAU,KAAA,MAAA,GAAA,MAAA,GAAV,UAAU,CAAE,OAAO,GAAG,SAAS,EAChD,OAAO,EAAA,OAAA,EACH,EAAA,SAAS,CAAC,UAAwB,CAE5C,EAAA,CAAA,CAAA;AAEV,CAAC;;;;"}
@@ -1,7 +1,5 @@
1
- /// <reference types="react" />
2
- /// <reference types="react-transition-group" />
3
1
  import React from 'react';
4
- declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<import("../types").InputAutocompleteCommonProps & {
2
+ export declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<import("../types").InputAutocompleteCommonProps & {
5
3
  isBottomSheet?: boolean | undefined;
6
4
  transitionProps?: Partial<import("react-transition-group/Transition").TransitionProps<undefined>> | undefined;
7
5
  onApply?: (() => void) | undefined;
@@ -9,4 +7,3 @@ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<impo
9
7
  title?: string | undefined;
10
8
  virtualKeyboard?: boolean | undefined;
11
9
  } & React.RefAttributes<HTMLDivElement>>;
12
- export { InputAutocompleteModalMobile };
@@ -5,3 +5,4 @@ import { InputAutocompleteMobile } from './Component.mobile.js';
5
5
  var InputAutocompleteModalMobile = React.forwardRef(function (props, ref) { return React.createElement(InputAutocompleteMobile, __assign({}, props, { ref: ref, isBottomSheet: false })); });
6
6
 
7
7
  export { InputAutocompleteModalMobile };
8
+ //# sourceMappingURL=Component.modal.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.modal.mobile.js","sources":["../../src/mobile/Component.modal.mobile.tsx"],"sourcesContent":["import React from 'react';\n\nimport { InputAutocompleteMobileProps } from '../types';\n\nimport { InputAutocompleteMobile } from './Component.mobile';\n\nexport const InputAutocompleteModalMobile = React.forwardRef<\n HTMLDivElement,\n InputAutocompleteMobileProps\n>((props, ref) => <InputAutocompleteMobile {...props} ref={ref} isBottomSheet={false} />);\n"],"names":[],"mappings":";;;;AAMO,IAAM,4BAA4B,GAAG,KAAK,CAAC,UAAU,CAG1D,UAAC,KAAK,EAAE,GAAG,IAAK,OAAA,KAAA,CAAA,aAAA,CAAC,uBAAuB,EAAA,QAAA,CAAA,EAAA,EAAK,KAAK,EAAA,EAAE,GAAG,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAA,CAAA,CAAI,CAAtE,EAAsE;;;;"}
@@ -1,3 +1,3 @@
1
- export { InputAutocompleteMobile } from "./Component.mobile";
2
- export { InputAutocompleteModalMobile } from "./Component.modal.mobile";
3
- export { InputAutocompleteMobileProps } from "../types";
1
+ export { InputAutocompleteMobile } from './Component.mobile';
2
+ export { InputAutocompleteModalMobile } from './Component.modal.mobile';
3
+ export { InputAutocompleteMobileProps } from '../types';
@@ -1,2 +1,3 @@
1
1
  export { InputAutocompleteMobile } from './Component.mobile.js';
2
2
  export { InputAutocompleteModalMobile } from './Component.modal.mobile.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,26 +1,3 @@
1
- /* hash: 11opw */
2
- :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
- } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
- } :root {
7
-
8
- /* Hard */
9
-
10
- /* Up */
11
-
12
- /* Hard up */
13
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
14
-
15
- /* новые значения, используйте их */
16
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
17
-
18
- /* новые значения, используйте их */
19
-
20
- /* no-unit может приводить к проблемам в calc (#1559) */
21
- /* stylelint-disable-next-line length-zero-no-unit */
22
- } :root {
23
- } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
24
- } /* сбрасывает синюю подсветку при нажатии */ .input-autocomplete__input_1pdoz {
1
+ .input-autocomplete__input_6r5vp {
25
2
  width: auto;
26
3
  }
@@ -0,0 +1,6 @@
1
+ import './mobile.css';
2
+
3
+ var styles = {"input":"input-autocomplete__input_6r5vp"};
4
+
5
+ export { styles as default };
6
+ //# sourceMappingURL=mobile.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobile.module.css.js","sources":["../src/mobile/mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.input {\n width: auto;\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,OAAO,CAAC,iCAAiC,CAAC;;;;"}
@@ -1 +1 @@
1
- export { getInputAutocompleteDesktopTestIds, getInputAutocompleteMobileTestIds } from "../utils";
1
+ export { getInputAutocompleteDesktopTestIds, getInputAutocompleteMobileTestIds } from '../utils';
@@ -1 +1,2 @@
1
1
  export { getInputAutocompleteDesktopTestIds, getInputAutocompleteMobileTestIds } from '../utils.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/esm/types.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { ComponentType, RefAttributes } from 'react';
2
- import { InputProps } from "@alfalab/core-components-input";
3
- import { BaseSelectProps, BottomSheetSelectMobileProps } from "@alfalab/core-components-select/shared";
4
- type OnInputTypeReason = 'close' | 'change';
5
- interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomplete' | 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search' | 'valueRenderer'> {
1
+ import type { ComponentType, RefAttributes } from 'react';
2
+ import type { InputProps } from '@alfalab/core-components-input';
3
+ import type { BaseSelectProps, BottomSheetSelectMobileProps } from '@alfalab/core-components-select/shared';
4
+ declare type OnInputTypeReason = 'close' | 'change';
5
+ export interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomplete' | 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search' | 'valueRenderer'> {
6
6
  /**
7
7
  * Компонент ввода значения
8
8
  */
@@ -28,7 +28,7 @@ interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomple
28
28
  */
29
29
  onInput?: (value: string, reason?: OnInputTypeReason) => void;
30
30
  }
31
- type MobileProps = {
31
+ declare type MobileProps = {
32
32
  /**
33
33
  * Открывать в bottom-sheet
34
34
  */
@@ -56,8 +56,8 @@ type MobileProps = {
56
56
  */
57
57
  virtualKeyboard?: boolean;
58
58
  };
59
- type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
60
- interface InputAutocompleteProps extends InputAutocompleteCommonProps {
59
+ export declare type InputAutocompleteMobileProps = InputAutocompleteCommonProps & MobileProps;
60
+ export interface InputAutocompleteProps extends InputAutocompleteCommonProps {
61
61
  /**
62
62
  * Пропсы для мобильного компонента
63
63
  */
@@ -77,4 +77,4 @@ interface InputAutocompleteProps extends InputAutocompleteCommonProps {
77
77
  */
78
78
  defaultMatchMediaValue?: boolean | (() => boolean);
79
79
  }
80
- export { InputAutocompleteCommonProps, InputAutocompleteMobileProps, InputAutocompleteProps };
80
+ export {};
package/esm/types.js CHANGED
@@ -1 +1,2 @@
1
1
 
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/esm/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- declare function searchFilterStub(): boolean;
2
- declare function getInputAutocompleteDesktopTestIds(dataTestId: string): {
1
+ export declare function searchFilterStub(): boolean;
2
+ export declare function getInputAutocompleteDesktopTestIds(dataTestId: string): {
3
3
  inputAutocomplete: string;
4
4
  option: string;
5
5
  optionsList: string;
@@ -13,7 +13,7 @@ declare function getInputAutocompleteDesktopTestIds(dataTestId: string): {
13
13
  fieldSuccessIcon: string;
14
14
  fieldHint: string;
15
15
  };
16
- declare function getInputAutocompleteMobileTestIds(dataTestId: string): {
16
+ export declare function getInputAutocompleteMobileTestIds(dataTestId: string): {
17
17
  inputAutocomplete: string;
18
18
  option: string;
19
19
  optionsList: string;
@@ -41,4 +41,3 @@ declare function getInputAutocompleteMobileTestIds(dataTestId: string): {
41
41
  searchError: string;
42
42
  searchHint: string;
43
43
  };
44
- export { searchFilterStub, getInputAutocompleteDesktopTestIds, getInputAutocompleteMobileTestIds };
package/esm/utils.js CHANGED
@@ -51,3 +51,4 @@ function getInputAutocompleteMobileTestIds(dataTestId) {
51
51
  }
52
52
 
53
53
  export { getInputAutocompleteDesktopTestIds, getInputAutocompleteMobileTestIds, searchFilterStub };
54
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../src/utils.ts"],"sourcesContent":["import { getDataTestId } from '@alfalab/core-components-shared';\n\nexport function searchFilterStub() {\n return true;\n}\n\nexport function getInputAutocompleteDesktopTestIds(dataTestId: string) {\n return {\n inputAutocomplete: dataTestId,\n option: getDataTestId(dataTestId, 'option'),\n optionsList: getDataTestId(dataTestId, 'options-list'),\n field: getDataTestId(dataTestId, 'field'),\n fieldInner: getDataTestId(dataTestId, 'field-form-control-inner'),\n fieldFormControl: getDataTestId(dataTestId, 'field-form-control'),\n fieldLeftAddons: getDataTestId(dataTestId, 'field-form-control-left-addons'),\n fieldRightAddons: getDataTestId(dataTestId, 'field-form-control-right-addons'),\n fieldError: getDataTestId(dataTestId, 'field-form-control-error-message'),\n fieldErrorIcon: getDataTestId(dataTestId, 'field-form-control-error-icon'),\n fieldSuccessIcon: getDataTestId(dataTestId, 'field-form-control-success-icon'),\n fieldHint: getDataTestId(dataTestId, 'field-form-control-hint'),\n };\n}\n\nexport function getInputAutocompleteMobileTestIds(dataTestId: string) {\n return {\n inputAutocomplete: dataTestId,\n option: getDataTestId(dataTestId, 'option'),\n optionsList: getDataTestId(dataTestId, 'options-list'),\n bottomSheet: getDataTestId(dataTestId, 'bottom-sheet'),\n bottomSheetHeader: getDataTestId(dataTestId, 'bottom-sheet-header'),\n bottomSheetContent: getDataTestId(dataTestId, 'bottom-sheet-content'),\n modal: getDataTestId(dataTestId, 'modal'),\n modalHeader: getDataTestId(dataTestId, 'modal-header'),\n modalContent: getDataTestId(dataTestId, 'modal-content'),\n clearButton: getDataTestId(dataTestId, 'clear'),\n applyButton: getDataTestId(dataTestId, 'apply'),\n fieldInner: getDataTestId(dataTestId, 'field-form-control-inner'),\n fieldFormControl: getDataTestId(dataTestId, 'field-form-control'),\n fieldLeftAddons: getDataTestId(dataTestId, 'field-form-control-left-addons'),\n fieldRightAddons: getDataTestId(dataTestId, 'field-form-control-right-addons'),\n fieldError: getDataTestId(dataTestId, 'field-form-control-error-message'),\n fieldErrorIcon: getDataTestId(dataTestId, 'field-error-icon'),\n fieldSuccessIcon: getDataTestId(dataTestId, 'field-success-icon'),\n fieldHint: getDataTestId(dataTestId, 'field-form-control-hint'),\n searchInput: getDataTestId(dataTestId, 'search'),\n searchFormControl: getDataTestId(dataTestId, 'search-form-control'),\n searchInner: getDataTestId(dataTestId, 'search-form-control-inner'),\n searchLeftAddons: getDataTestId(dataTestId, 'search-form-control-left-addons'),\n searchRightAddons: getDataTestId(dataTestId, 'search-form-control-right-addons'),\n searchError: getDataTestId(dataTestId, 'search-form-control-error-message'),\n searchHint: getDataTestId(dataTestId, 'search-form-control-hint'),\n };\n}\n"],"names":[],"mappings":";;SAEgB,gBAAgB,GAAA;AAC5B,IAAA,OAAO,IAAI;AACf;AAEM,SAAU,kCAAkC,CAAC,UAAkB,EAAA;IACjE,OAAO;AACH,QAAA,iBAAiB,EAAE,UAAU;AAC7B,QAAA,MAAM,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;AAC3C,QAAA,WAAW,EAAE,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC;AACtD,QAAA,KAAK,EAAE,aAAa,CAAC,UAAU,EAAE,OAAO,CAAC;AACzC,QAAA,UAAU,EAAE,aAAa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AAU,EAAE,0BAA0B,CAAC;AACjE,QAAA,gBAAgB,EAAE,aAAa,CAAC,UAAU,EAAE,oBAAoB,CAAC;AACjE,QAAA,eAAe,EAAE,aAAa,CAAC,UAAU,EAAE,gCAAgC,CAAC;AAC5E,QAAA,gBAAgB,EAAE,aAAa,CAAC,UAAU,EAAE,iCAAiC,CAAC;AAC9E,QAAA,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,kCAAkC,CAAC;AACzE,QAAA,cAAc,EAAE,aAAa,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAC7D,QAAA,gBAAgB,EAAE,aAAa,CAAC,UAAU,EAAE,oBAAoB,CAAC;AACjE,QAAA,SAAS,EAAE,aAAa,CAAC,UAAU,EAAE,yBAAyB,CAAC;AAC/D,QAAA,WAAW,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;AAChD,QAAA,iBAAiB,EAAE,aAAa,CAAC,UAAU,EAAE,qBAAqB,CAAC;AACnE,QAAA,WAAW,EAAE,aAAa,CAAC,UAAU,EAAE,2BAA2B,CAAC;AACnE,QAAA,gBAAgB,EAAE,aAAa,CAAC,UAAU,EAAE,iCAAiC,CAAC;AAC9E,QAAA,iBAAiB,EAAE,aAAa,CAAC,UAAU,EAAE,kCAAkC,CAAC;AAChF,QAAA,WAAW,EAAE,aAAa,CAAC,UAAU,EAAE,mCAAmC,CAAC;AAC3E,QAAA,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,0BAA0B,CAAC;KACpE;AACL;;;;"}
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { InputAutocomplete } from "./Component.responsive";
2
- export type { InputAutocompleteProps } from "./types";
1
+ export { InputAutocomplete } from './Component.responsive';
2
+ export type { InputAutocompleteProps } from './types';
package/index.js CHANGED
@@ -7,3 +7,4 @@ var Component_responsive = require('./Component.responsive.js');
7
7
 
8
8
 
9
9
  exports.InputAutocomplete = Component_responsive.InputAutocomplete;
10
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,7 +1,5 @@
1
- /// <reference types="react" />
2
- /// <reference types="react-transition-group" />
3
1
  import React from 'react';
4
- declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import("../types").InputAutocompleteCommonProps & {
2
+ export declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import("../types").InputAutocompleteCommonProps & {
5
3
  isBottomSheet?: boolean | undefined;
6
4
  transitionProps?: Partial<import("react-transition-group/Transition").TransitionProps<undefined>> | undefined;
7
5
  onApply?: (() => void) | undefined;
@@ -9,4 +7,3 @@ declare const InputAutocompleteMobile: React.ForwardRefExoticComponent<import(".
9
7
  title?: string | undefined;
10
8
  virtualKeyboard?: boolean | undefined;
11
9
  } & React.RefAttributes<unknown>>;
12
- export { InputAutocompleteMobile };
@@ -11,9 +11,10 @@ var throttle = require('lodash/throttle');
11
11
  var mobile = require('@alfalab/core-components-select/mobile');
12
12
  var shared = require('@alfalab/core-components-select/shared');
13
13
  var coreComponentsShared = require('@alfalab/core-components-shared');
14
- var autocompleteMobileField_Component = require('../autocomplete-mobile-field/Component.js');
14
+ var Component = require('../autocomplete-mobile-field/Component.js');
15
15
  var enums = require('../enums.js');
16
16
  var utils = require('../utils.js');
17
+ var mobile_module = require('./mobile.module.css.js');
17
18
 
18
19
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
19
20
 
@@ -22,9 +23,6 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
22
23
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
23
24
  var throttle__default = /*#__PURE__*/_interopDefaultCompat(throttle);
24
25
 
25
- var styles = {"input":"input-autocomplete__input_1pdoz"};
26
- require('./mobile.css')
27
-
28
26
  var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, ref) {
29
27
  var _b;
30
28
  var _c;
@@ -69,7 +67,7 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
69
67
  (_b = transitionProps === null || transitionProps === void 0 ? void 0 : transitionProps.onExiting) === null || _b === void 0 ? void 0 : _b.call(transitionProps, node);
70
68
  };
71
69
  var isOpen = Boolean(open || openProp);
72
- var Component = isBottomSheet ? mobile.SelectMobile : mobile.SelectModalMobile;
70
+ var Component$1 = isBottomSheet ? mobile.SelectMobile : mobile.SelectModalMobile;
73
71
  var componentProps = (_b = {
74
72
  title: title || label || placeholder,
75
73
  onClose: restorePrevValue,
@@ -87,7 +85,7 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
87
85
  ? core.maskitoTransform(displayValue, { mask: mask })
88
86
  : displayValue;
89
87
  }, [displayValue, inputProps === null || inputProps === void 0 ? void 0 : inputProps.mask]);
90
- return (React__default.default.createElement(Component, tslib.__assign({ Field: autocompleteMobileField_Component.AutocompleteMobileField }, restProps, (isBottomSheet
88
+ return (React__default.default.createElement(Component$1, tslib.__assign({ Field: Component.AutocompleteMobileField }, restProps, (isBottomSheet
91
89
  ? { bottomSheetProps: tslib.__assign(tslib.__assign({}, componentProps), { virtualKeyboard: virtualKeyboard }) }
92
90
  : {
93
91
  modalProps: componentProps,
@@ -95,8 +93,9 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
95
93
  }), { dataTestId: dataTestId, useWithApplyHook: false, showSearch: true, searchProps: {
96
94
  value: value,
97
95
  filterFn: utils.searchFilterStub,
98
- componentProps: tslib.__assign(tslib.__assign({ leftAddons: null, placeholder: placeholder }, inputProps), { className: cn__default.default(styles.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className), clear: clear, ref: mergeRefs__default.default([searchInputRef, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref]), onChange: function (_, payload) { return onInput === null || onInput === void 0 ? void 0 : onInput(payload.value, enums.OnInputReason.Change); } }),
96
+ componentProps: tslib.__assign(tslib.__assign({ leftAddons: null, placeholder: placeholder }, inputProps), { className: cn__default.default(mobile_module.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className), clear: clear, ref: mergeRefs__default.default([searchInputRef, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref]), onChange: function (_, payload) { return onInput === null || onInput === void 0 ? void 0 : onInput(payload.value, enums.OnInputReason.Change); } }),
99
97
  }, Search: Input, ref: mergeRefs__default.default([targetRef, ref]), open: isOpen, onOpen: handleOpen, Arrow: Arrow, placeholder: placeholder, label: label, size: size, name: name, multiple: multiple, optionsListProps: tslib.__assign({ footer: (React__default.default.createElement(shared.Footer, { showClear: true, handleClear: handleCancel, handleApply: handleApply, clearText: '\u041E\u0442\u043C\u0435\u043D\u0430', applyText: '\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C', dataTestId: dataTestId })) }, restProps.optionsListProps), fieldProps: tslib.__assign({ value: fieldValue, clear: clear, onClear: clear ? inputProps === null || inputProps === void 0 ? void 0 : inputProps.onClear : undefined, success: success }, restProps.fieldProps) })));
100
98
  });
101
99
 
102
100
  exports.InputAutocompleteMobile = InputAutocompleteMobile;
101
+ //# sourceMappingURL=Component.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.mobile.js","sources":["../src/mobile/Component.mobile.tsx"],"sourcesContent":["import React, { Ref, useMemo, useRef, useState } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport { maskitoTransform } from '@maskito/core';\nimport cn from 'classnames';\nimport throttle from 'lodash/throttle';\n\nimport {\n SelectMobile,\n SelectMobileProps,\n SelectModalMobile,\n} from '@alfalab/core-components-select/mobile';\nimport {\n AnyObject,\n BottomSheetSelectMobileProps,\n Footer,\n ModalSelectMobileProps,\n} from '@alfalab/core-components-select/shared';\nimport { isMaskitoMask, isNonNullable } from '@alfalab/core-components-shared';\n\nimport { AutocompleteMobileField } from '../autocomplete-mobile-field';\nimport { OnInputReason } from '../enums';\nimport { InputAutocompleteMobileProps } from '../types';\nimport { searchFilterStub } from '../utils';\n\nimport styles from './mobile.module.css';\n\nexport const InputAutocompleteMobile = React.forwardRef(\n (\n {\n Input,\n value,\n name,\n Arrow = null,\n label,\n placeholder = '',\n size = 48,\n open: openProp,\n onInput,\n onOpen,\n multiple,\n inputProps,\n isBottomSheet = true,\n dataTestId,\n transitionProps,\n onCancel,\n onApply,\n title,\n success,\n virtualKeyboard = false,\n ...restProps\n }: InputAutocompleteMobileProps,\n ref,\n ) => {\n const [open, setOpen] = useState(false);\n const frozenValue = useRef<string>('');\n const searchInputRef = useRef<HTMLInputElement>(null);\n const targetRef = useRef<HTMLDivElement>(null);\n\n const restorePrevValue = () => onInput?.(frozenValue.current, OnInputReason.Close);\n\n const setModalVisibility = (isOpen: boolean) => {\n if (isOpen) {\n frozenValue.current = value || '';\n }\n\n if (openProp === undefined) {\n setOpen(isOpen);\n }\n\n onOpen?.({ open: isOpen, name });\n };\n\n const handleOpen: SelectMobileProps['onOpen'] = (payload) => {\n setModalVisibility(Boolean(payload.open));\n };\n\n const handleOptionsListTouchMove = useMemo(\n () =>\n throttle(() => {\n const input = searchInputRef.current;\n\n if (input && document.activeElement === input) {\n input.blur();\n }\n }, 300),\n [],\n );\n\n const handleApply = () => {\n setModalVisibility(false);\n onApply?.();\n };\n\n const handleCancel = () => {\n setModalVisibility(false);\n restorePrevValue();\n onCancel?.();\n };\n\n const handleExiting = (node: HTMLElement) => {\n targetRef.current?.focus();\n transitionProps?.onExiting?.(node);\n };\n\n const isOpen = Boolean(open || openProp);\n\n const Component = isBottomSheet ? SelectMobile : SelectModalMobile;\n\n const componentProps:\n | ModalSelectMobileProps['modalProps']\n | BottomSheetSelectMobileProps['bottomSheetProps'] = {\n title: title || label || placeholder,\n onClose: restorePrevValue,\n transitionProps: {\n ...transitionProps,\n onExiting: handleExiting,\n },\n [isBottomSheet ? 'containerProps' : 'componentDivProps']: {\n onTouchMove: handleOptionsListTouchMove,\n },\n };\n\n const clear = inputProps?.clear ?? false;\n\n const displayValue = isOpen ? frozenValue.current : value;\n\n const fieldValue = useMemo(() => {\n const mask = inputProps?.mask;\n\n return isNonNullable(displayValue) && isMaskitoMask(mask)\n ? maskitoTransform(displayValue, { mask })\n : displayValue;\n }, [displayValue, inputProps?.mask]);\n\n return (\n <Component\n Field={AutocompleteMobileField}\n {...restProps}\n {...(isBottomSheet\n ? { bottomSheetProps: { ...componentProps, virtualKeyboard } }\n : {\n modalProps: componentProps,\n modalHeaderProps: { title },\n })}\n dataTestId={dataTestId}\n useWithApplyHook={false}\n showSearch={true}\n searchProps={{\n value,\n filterFn: searchFilterStub,\n componentProps: {\n leftAddons: null,\n placeholder,\n ...inputProps,\n className: cn(styles.input, inputProps?.className),\n clear,\n ref: mergeRefs([searchInputRef, inputProps?.ref as Ref<HTMLInputElement>]),\n onChange: (_, payload) => onInput?.(payload.value, OnInputReason.Change),\n },\n }}\n Search={Input}\n ref={mergeRefs([targetRef, ref])}\n open={isOpen}\n onOpen={handleOpen}\n Arrow={Arrow}\n placeholder={placeholder}\n label={label}\n size={size}\n name={name}\n multiple={multiple}\n optionsListProps={{\n footer: (\n <Footer\n showClear={true}\n handleClear={handleCancel}\n handleApply={handleApply}\n clearText='Отмена'\n applyText='Продолжить'\n dataTestId={dataTestId}\n />\n ),\n ...(restProps.optionsListProps as AnyObject),\n }}\n fieldProps={{\n value: fieldValue,\n clear,\n onClear: clear ? inputProps?.onClear : undefined,\n success,\n ...(restProps.fieldProps as AnyObject),\n }}\n />\n );\n },\n);\n"],"names":["React","__rest","useState","useRef","OnInputReason","useMemo","throttle","Component","SelectMobile","SelectModalMobile","isNonNullable","isMaskitoMask","maskitoTransform","__assign","AutocompleteMobileField","searchFilterStub","cn","styles","mergeRefs","Footer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA0Ba,IAAA,uBAAuB,GAAGA,sBAAK,CAAC,UAAU,CACnD,UACI,EAsB+B,EAC/B,GAAG,EAAA;;;AAtBC,IAAA,IAAA,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,KA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,CAAC,EAC1E,QAAQ,EAAE,UAAC,CAAC,EAAE,OAAO,EAAA,EAAK,OAAA,OAAO,KAAP,IAAA,IAAA,OAAO,KAAP,MAAA,GAAA,MAAA,GAAA,OAAO,CAAG,OAAO,CAAC,KAAK,EAAEd,mBAAa,CAAC,MAAM,CAAC,CAAA,EAAA,EAC3E,CAAA;SACJ,EACD,MAAM,EAAE,KAAK,EACb,GAAG,EAAEc,0BAAS,CAAC,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,EAChC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EACZL,cAAA,CAAA,EAAA,MAAM,GACFb,sBAAC,CAAA,aAAA,CAAAmB,aAAM,EACH,EAAA,SAAS,EAAE,IAAI,EACf,WAAW,EAAE,YAAY,EACzB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,sCAAQ,EAClB,SAAS,EAAC,8DAAY,EACtB,UAAU,EAAE,UAAU,EAAA,CACxB,CACL,EAAA,EACG,SAAS,CAAC,gBAA8B,CAAA,EAEhD,UAAU,EAAAN,cAAA,CAAA,EACN,KAAK,EAAE,UAAU,EACjB,KAAK,EAAA,KAAA,EACL,OAAO,EAAE,KAAK,GAAG,UAAU,KAAA,IAAA,IAAV,UAAU,KAAA,MAAA,GAAA,MAAA,GAAV,UAAU,CAAE,OAAO,GAAG,SAAS,EAChD,OAAO,EAAA,OAAA,EACH,EAAA,SAAS,CAAC,UAAwB,CAE5C,EAAA,CAAA,CAAA;AAEV,CAAC;;;;"}
@@ -1,7 +1,5 @@
1
- /// <reference types="react" />
2
- /// <reference types="react-transition-group" />
3
1
  import React from 'react';
4
- declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<import("../types").InputAutocompleteCommonProps & {
2
+ export declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<import("../types").InputAutocompleteCommonProps & {
5
3
  isBottomSheet?: boolean | undefined;
6
4
  transitionProps?: Partial<import("react-transition-group/Transition").TransitionProps<undefined>> | undefined;
7
5
  onApply?: (() => void) | undefined;
@@ -9,4 +7,3 @@ declare const InputAutocompleteModalMobile: React.ForwardRefExoticComponent<impo
9
7
  title?: string | undefined;
10
8
  virtualKeyboard?: boolean | undefined;
11
9
  } & React.RefAttributes<HTMLDivElement>>;
12
- export { InputAutocompleteModalMobile };
@@ -4,12 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var React = require('react');
7
- var mobile_Component_mobile = require('./Component.mobile.js');
7
+ var Component_mobile = require('./Component.mobile.js');
8
8
 
9
9
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
10
 
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
 
13
- var InputAutocompleteModalMobile = React__default.default.forwardRef(function (props, ref) { return React__default.default.createElement(mobile_Component_mobile.InputAutocompleteMobile, tslib.__assign({}, props, { ref: ref, isBottomSheet: false })); });
13
+ var InputAutocompleteModalMobile = React__default.default.forwardRef(function (props, ref) { return React__default.default.createElement(Component_mobile.InputAutocompleteMobile, tslib.__assign({}, props, { ref: ref, isBottomSheet: false })); });
14
14
 
15
15
  exports.InputAutocompleteModalMobile = InputAutocompleteModalMobile;
16
+ //# sourceMappingURL=Component.modal.mobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.modal.mobile.js","sources":["../src/mobile/Component.modal.mobile.tsx"],"sourcesContent":["import React from 'react';\n\nimport { InputAutocompleteMobileProps } from '../types';\n\nimport { InputAutocompleteMobile } from './Component.mobile';\n\nexport const InputAutocompleteModalMobile = React.forwardRef<\n HTMLDivElement,\n InputAutocompleteMobileProps\n>((props, ref) => <InputAutocompleteMobile {...props} ref={ref} isBottomSheet={false} />);\n"],"names":["React","InputAutocompleteMobile","__assign"],"mappings":";;;;;;;;;;;;AAMO,IAAM,4BAA4B,GAAGA,sBAAK,CAAC,UAAU,CAG1D,UAAC,KAAK,EAAE,GAAG,IAAK,OAAAA,sBAAA,CAAA,aAAA,CAACC,wCAAuB,EAAAC,cAAA,CAAA,EAAA,EAAK,KAAK,EAAA,EAAE,GAAG,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAA,CAAA,CAAI,CAAtE,EAAsE;;;;"}
package/mobile/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { InputAutocompleteMobile } from "./Component.mobile";
2
- export { InputAutocompleteModalMobile } from "./Component.modal.mobile";
3
- export { InputAutocompleteMobileProps } from "../types";
1
+ export { InputAutocompleteMobile } from './Component.mobile';
2
+ export { InputAutocompleteModalMobile } from './Component.modal.mobile';
3
+ export { InputAutocompleteMobileProps } from '../types';
package/mobile/index.js CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var mobile_Component_mobile = require('./Component.mobile.js');
6
- var mobile_Component_modal_mobile = require('./Component.modal.mobile.js');
5
+ var Component_mobile = require('./Component.mobile.js');
6
+ var Component_modal_mobile = require('./Component.modal.mobile.js');
7
7
 
8
8
 
9
9
 
10
- exports.InputAutocompleteMobile = mobile_Component_mobile.InputAutocompleteMobile;
11
- exports.InputAutocompleteModalMobile = mobile_Component_modal_mobile.InputAutocompleteModalMobile;
10
+ exports.InputAutocompleteMobile = Component_mobile.InputAutocompleteMobile;
11
+ exports.InputAutocompleteModalMobile = Component_modal_mobile.InputAutocompleteModalMobile;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
package/mobile/mobile.css CHANGED
@@ -1,26 +1,3 @@
1
- /* hash: 11opw */
2
- :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
- } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
- } :root {
7
-
8
- /* Hard */
9
-
10
- /* Up */
11
-
12
- /* Hard up */
13
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
14
-
15
- /* новые значения, используйте их */
16
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
17
-
18
- /* новые значения, используйте их */
19
-
20
- /* no-unit может приводить к проблемам в calc (#1559) */
21
- /* stylelint-disable-next-line length-zero-no-unit */
22
- } :root {
23
- } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
24
- } /* сбрасывает синюю подсветку при нажатии */ .input-autocomplete__input_1pdoz {
1
+ .input-autocomplete__input_6r5vp {
25
2
  width: auto;
26
3
  }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./mobile.css');
4
+
5
+ var styles = {"input":"input-autocomplete__input_6r5vp"};
6
+
7
+ module.exports = styles;
8
+ //# sourceMappingURL=mobile.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobile.module.css.js","sources":["../src/mobile/mobile.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.input {\n width: auto;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,OAAO,CAAC,iCAAiC,CAAC;;;;"}
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- import { InputAutocompleteProps } from "./types";
4
- declare const InputAutocomplete: React.ForwardRefExoticComponent<InputAutocompleteProps & React.RefAttributes<HTMLDivElement | HTMLInputElement>>;
5
- export { InputAutocomplete };
2
+ import { InputAutocompleteProps } from './types';
3
+ export declare const InputAutocomplete: React.ForwardRefExoticComponent<InputAutocompleteProps & React.RefAttributes<HTMLInputElement | HTMLDivElement>>;
@@ -11,3 +11,4 @@ const InputAutocomplete = forwardRef(({ breakpoint, client, defaultMatchMediaVal
11
11
  InputAutocomplete.displayName = 'InputAutocomplete';
12
12
 
13
13
  export { InputAutocomplete };
14
+ //# sourceMappingURL=Component.responsive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.responsive.js","sources":["../src/Component.responsive.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { InputAutocompleteDesktop } from './desktop';\nimport { InputAutocompleteMobile } from './mobile';\nimport { InputAutocompleteProps } from './types';\n\nexport const InputAutocomplete = forwardRef<\n HTMLInputElement | HTMLDivElement,\n InputAutocompleteProps\n>(\n (\n {\n breakpoint,\n client,\n defaultMatchMediaValue = client === undefined ? undefined : client === 'desktop',\n mobileProps,\n ...restProps\n },\n ref,\n ) => {\n const isDesktop = useIsDesktop(breakpoint, defaultMatchMediaValue);\n\n return isDesktop ? (\n <InputAutocompleteDesktop {...restProps} ref={ref as React.Ref<HTMLInputElement>} />\n ) : (\n <InputAutocompleteMobile {...restProps} {...mobileProps} ref={ref} />\n );\n },\n);\n\nInputAutocomplete.displayName = 'InputAutocomplete';\n"],"names":[],"mappings":";;;;;;AAQa,MAAA,iBAAiB,GAAG,UAAU,CAIvC,CACI,EACI,UAAU,EACV,MAAM,EACN,sBAAsB,GAAG,MAAM,KAAK,SAAS,GAAG,SAAS,GAAG,MAAM,KAAK,SAAS,EAChF,WAAW,EACX,GAAG,SAAS,EACf,EACD,GAAG,KACH;IACA,MAAM,SAAS,GAAG,YAAY,CAAC,UAAU,EAAE,sBAAsB,CAAC;AAElE,IAAA,OAAO,SAAS,IACZ,KAAA,CAAA,aAAA,CAAC,wBAAwB,EAAA,EAAA,GAAK,SAAS,EAAE,GAAG,EAAE,GAAkC,EAAI,CAAA,KAEpF,KAAC,CAAA,aAAA,CAAA,uBAAuB,OAAK,SAAS,EAAA,GAAM,WAAW,EAAE,GAAG,EAAE,GAAG,EAAA,CAAI,CACxE;AACL,CAAC;AAGL,iBAAiB,CAAC,WAAW,GAAG,mBAAmB;;;;"}
@@ -1,7 +1,5 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- import { FieldProps } from "@alfalab/core-components-select/shared";
4
- import { InputAutocompleteCommonProps } from "../types";
5
- type AutocompleteFieldProps = FieldProps & Pick<InputAutocompleteCommonProps, 'Input' | 'inputProps' | 'value' | 'onInput' | 'readOnly'>;
6
- declare const AutocompleteField: ({ label, labelView, placeholder, size, Arrow, Input, value, error, success, hint, disabled, readOnly, onInput, inputProps, innerProps, dataTestId, }: AutocompleteFieldProps) => React.JSX.Element;
7
- export { AutocompleteFieldProps, AutocompleteField };
2
+ import type { FieldProps } from '@alfalab/core-components-select/shared';
3
+ import { InputAutocompleteCommonProps } from '../types';
4
+ export declare type AutocompleteFieldProps = FieldProps & Pick<InputAutocompleteCommonProps, 'Input' | 'inputProps' | 'value' | 'onInput' | 'readOnly'>;
5
+ export declare const AutocompleteField: ({ label, labelView, placeholder, size, Arrow, Input, value, error, success, hint, disabled, readOnly, onInput, inputProps, innerProps, dataTestId, }: AutocompleteFieldProps) => React.JSX.Element;