You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The atomic-commerce-search-box is a component that does something.
56
57
*
57
-
* @event redirect - TODO
58
+
* @slot default - The default slot where you can add child components to the search box.
59
+
*
60
+
* @part wrapper - The search box wrapper.
61
+
* @part input - The search box input.
62
+
* @part loading - The search box loading animation.
63
+
* @part clear-button - The button to clear the search box of input.
64
+
* @part clear-icon - The clear button's icon.
65
+
* @part submit-button - The search box submit button.
66
+
* @part submit-icon - The search box submit button's icon.
67
+
* @part suggestions - A list of suggested query corrections on each panel.
68
+
* @part suggestions-left - A list of suggested query corrections on the left panel.
69
+
* @part suggestions-right - A list of suggested query corrections on the right panel.
70
+
* @part suggestions-wrapper - The wrapper that contains suggestion panels.
71
+
* @part suggestions-single-list - The wrapper that contains 1 suggestion list.
72
+
* @part suggestions-double-list - The wrapper that contains 2 suggestion lists.
73
+
* @part suggestion - A suggested query correction.
74
+
* @part active-suggestion - The currently active suggestion.
75
+
* @part suggestion-divider - An item in the list that separates groups of suggestions.
76
+
* @part suggestion-with-query - An item in the list that will update the search box query.
77
+
*
78
+
* @part query-suggestion-item - A suggestion from the `atomic-commerce-search-box-query-suggestions` component.
79
+
* @part query-suggestion-content - The contents of a suggestion from the `atomic-commerce-search-box-query-suggestions` component.
80
+
* @part query-suggestion-icon - The icon of a suggestion from the `atomic-commerce-search-box-query-suggestions` component.
81
+
* @part query-suggestion-text - The text of a suggestion from the `atomic-commerce-search-box-query-suggestions` component.
82
+
*
83
+
* @part recent-query-item - A suggestion from the `atomic-commerce-search-box-recent-queries` component.
84
+
* @part recent-query-content - The contents of a suggestion from the `atomic-commerce-search-box-recent-queries` component.
85
+
* @part recent-query-icon - The icon of a suggestion from the `atomic-commerce-search-box-recent-queries` component.
86
+
* @part recent-query-text - The text of a suggestion from the `atomic-commerce-search-box-recent-queries` component.
87
+
* @part recent-query-text-highlight - The highlighted portion of the text of a suggestion from the `atomic-commerce-search-box-recent-queries` component.
88
+
* @part recent-query-title-item - The clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
89
+
* @part recent-query-title-content - The contents of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
90
+
* @part recent-query-title - The "recent searches" text of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
91
+
* @part recent-query-clear - The "clear" text of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
92
+
*
93
+
* @part instant-results-item - An instant result rendered by an `atomic-commerce-search-box-instant-products` component.
94
+
* @part instant-results-show-all - The clickable suggestion to show all items for the current instant results search rendered by an `atomic-commerce-search-box-instant-products` component.
95
+
* @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-commerce-search-box-instant-products` component.
96
+
*
97
+
* @event redirect - Event that is emitted when a standalone search box redirection is triggered. By default, the search box will directly change the URL and redirect accordingly, so if you want to handle the redirection differently, use this event.
98
+
99
+
*
100
+
* @alpha
58
101
*/
59
102
@customElement('atomic-commerce-search-box')
60
103
@withTailwindStyles
@@ -223,7 +266,6 @@ export class AtomicCommerceSearchBox
223
266
}
224
267
225
268
willUpdate(){
226
-
//added this
227
269
if(!this.searchBoxState||!this.searchBox){
228
270
return;
229
271
}
@@ -248,7 +290,6 @@ export class AtomicCommerceSearchBox
Copy file name to clipboardExpand all lines: packages/atomic/src/components/commerce/search-box-suggestions/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.ts
Copy file name to clipboardExpand all lines: packages/atomic/src/components/commerce/search-box-suggestions/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.ts
Copy file name to clipboardExpand all lines: packages/atomic/src/components/commerce/search-box-suggestions/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.ts
0 commit comments