@homecode/ui 4.19.0 → 4.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,6 @@ import '../AssistiveText/AssistiveText.styl.js';
4
4
  import { useState, useRef, useEffect, useMemo } from 'react';
5
5
  import debounce from '../../tools/debounce.js';
6
6
  import { useIsMounted } from '../../hooks/useIsMounted.js';
7
- import Time from 'timen';
8
7
  import S from './Autocomplete.styl.js';
9
8
  import Shimmer from '../Shimmer/Shimmer.js';
10
9
  import { useListKeyboardControl } from '../../hooks/useListKeyboardControl.js';
@@ -15,6 +14,7 @@ import '../Calendar/Calendar.styl.js';
15
14
  import { Input } from '../Input/Input.js';
16
15
  import '../../tools/dom.js';
17
16
  import '../Icon/Icon.js';
17
+ import 'timen';
18
18
  import '../Label/Label.styl.js';
19
19
  import { Popup } from '../Popup/Popup.js';
20
20
  import '../RequiredStar/RequiredStar.styl.js';
@@ -126,7 +126,13 @@ function Autocomplete(props) {
126
126
  }, [options, focusedIndex]);
127
127
  return (jsx(Popup, { className: classes, isOpen: isOpen, focusControl: true, size: size, ...popupProps, trigger: jsxs("div", { className: inputWrapperClassName, children: [jsx(Input, { ref: inputRef,
128
128
  // @ts-ignore
129
- size: size, ...inputProps, value: searchValue, onChange: handleInputChange, className: inputProps.className, onFocus: () => setIsFocused(true), onBlur: () => Time.after(100, () => setIsFocused(false)) }), isLoading && jsx(Shimmer, { className: S.shimmer, size: size })] }), content: optionsList, contentProps: {
129
+ size: size, ...inputProps, value: searchValue, onChange: handleInputChange, className: inputProps.className, onFocus: e => {
130
+ setIsFocused(true);
131
+ inputProps.onFocus?.(e);
132
+ }, onBlur: e => {
133
+ setIsFocused(false);
134
+ inputProps.onBlur?.(e);
135
+ } }), isLoading && jsx(Shimmer, { className: S.shimmer, size: size })] }), content: optionsList, contentProps: {
130
136
  className: S.popupContent,
131
137
  } }));
132
138
  }
@@ -13,12 +13,12 @@ import { capitalize } from '../../tools/string.js';
13
13
  import { generateUID } from '../../tools/uid.js';
14
14
  import S from './Input.styl.js';
15
15
  import debounce from '../../tools/debounce.js';
16
- import 'timen';
17
16
  import '../Autocomplete/Autocomplete.styl.js';
18
17
  import '../Shimmer/Shimmer.styl.js';
19
18
  import '../ButtonGroup/ButtonGroup.styl.js';
20
19
  import '../Calendar/Calendar.styl.js';
21
20
  import '../../tools/dom.js';
21
+ import 'timen';
22
22
  import '../Portal/Portal.js';
23
23
  import '../Paranja/Paranja.styl.js';
24
24
  import 'compareq';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "4.19.0",
3
+ "version": "4.19.1",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "test": "jest",