@trafilea/afrodita-components 5.0.0-beta.20 → 5.0.0-beta.21

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/build/index.js CHANGED
@@ -10642,8 +10642,11 @@ var Container$8 = newStyled.div({
10642
10642
  display: 'flex',
10643
10643
  });
10644
10644
  var SearchBar = function (_a) {
10645
- var suggestions = _a.suggestions, resultOptions = _a.resultOptions, onChange = _a.onChange, onSearch = _a.onSearch, resultsPanelDataTestId = _a.resultsPanelDataTestId, allResults = _a.allResults;
10645
+ var suggestions = _a.suggestions, resultOptions = _a.resultOptions, onChange = _a.onChange, onSearch = _a.onSearch, resultsPanelDataTestId = _a.resultsPanelDataTestId, allResults = _a.allResults, initialTerm = _a.initialTerm;
10646
10646
  var theme = useTheme();
10647
+ if (initialTerm) {
10648
+ initialState$1.term = initialTerm;
10649
+ }
10647
10650
  var _b = React$2.useReducer(reducer, initialState$1), state = _b[0], dispatch = _b[1];
10648
10651
  var ref = React$2.useRef(null);
10649
10652
  var shouldDisplaySuggestion = function () {