@spaced-out/ui-design-system 0.1.81 → 0.1.82

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.82](https://github.com/spaced-out/ui-design-system/compare/v0.1.81...v0.1.82) (2024-04-04)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * onFocus in typeahead ([#169](https://github.com/spaced-out/ui-design-system/issues/169)) ([457983a](https://github.com/spaced-out/ui-design-system/commit/457983aef4a4cb75f96363ee005352f55b380803))
11
+
5
12
  ### [0.1.81](https://github.com/spaced-out/ui-design-system/compare/v0.1.80...v0.1.81) (2024-03-27)
6
13
 
7
14
 
@@ -31,6 +31,7 @@ const Typeahead = /*#__PURE__*/React.forwardRef((_ref, ref) => {
31
31
  typeaheadInputText = '',
32
32
  isLoading,
33
33
  menuOpenOffset = 1,
34
+ onFocus,
34
35
  ...inputProps
35
36
  } = _ref;
36
37
  const [filteredOptions, setFilteredOptions] = React.useState(menu?.options);
@@ -97,6 +98,7 @@ const Typeahead = /*#__PURE__*/React.forwardRef((_ref, ref) => {
97
98
  } else {
98
99
  clickAway();
99
100
  }
101
+ onFocus?.(_e);
100
102
  },
101
103
  onClear: _e => {
102
104
  onClear?.();
@@ -59,6 +59,7 @@ export const Typeahead: React$AbstractComponent<
59
59
  typeaheadInputText = '',
60
60
  isLoading,
61
61
  menuOpenOffset = 1,
62
+ onFocus,
62
63
  ...inputProps
63
64
  }: TypeaheadProps,
64
65
  ref,
@@ -125,6 +126,7 @@ export const Typeahead: React$AbstractComponent<
125
126
  } else {
126
127
  clickAway();
127
128
  }
129
+ onFocus?.(_e);
128
130
  }}
129
131
  onClear={(_e) => {
130
132
  onClear?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.81",
3
+ "version": "0.1.82",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {