@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.d.ts +2 -1
- package/build/index.esm.js +4 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1588,8 +1588,9 @@ interface SearchBarProps {
|
|
|
1588
1588
|
onSearch: (term: string) => void;
|
|
1589
1589
|
resultsPanelDataTestId?: string;
|
|
1590
1590
|
allResults?: number;
|
|
1591
|
+
initialTerm?: string;
|
|
1591
1592
|
}
|
|
1592
|
-
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, allResults, }: SearchBarProps) => JSX.Element;
|
|
1593
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, allResults, initialTerm, }: SearchBarProps) => JSX.Element;
|
|
1593
1594
|
|
|
1594
1595
|
interface ProductGalleryMobileProps {
|
|
1595
1596
|
images: ImageType[];
|
package/build/index.esm.js
CHANGED
|
@@ -10616,8 +10616,11 @@ var Container$8 = newStyled.div({
|
|
|
10616
10616
|
display: 'flex',
|
|
10617
10617
|
});
|
|
10618
10618
|
var SearchBar = function (_a) {
|
|
10619
|
-
var suggestions = _a.suggestions, resultOptions = _a.resultOptions, onChange = _a.onChange, onSearch = _a.onSearch, resultsPanelDataTestId = _a.resultsPanelDataTestId, allResults = _a.allResults;
|
|
10619
|
+
var suggestions = _a.suggestions, resultOptions = _a.resultOptions, onChange = _a.onChange, onSearch = _a.onSearch, resultsPanelDataTestId = _a.resultsPanelDataTestId, allResults = _a.allResults, initialTerm = _a.initialTerm;
|
|
10620
10620
|
var theme = useTheme();
|
|
10621
|
+
if (initialTerm) {
|
|
10622
|
+
initialState$1.term = initialTerm;
|
|
10623
|
+
}
|
|
10621
10624
|
var _b = useReducer(reducer, initialState$1), state = _b[0], dispatch = _b[1];
|
|
10622
10625
|
var ref = useRef(null);
|
|
10623
10626
|
var shouldDisplaySuggestion = function () {
|