@searchstax-inc/searchstudio-ux-vue 4.2.2 → 4.2.10

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/README.md CHANGED
@@ -282,6 +282,8 @@ It receives the following props:
282
282
  placeholder="SEARCH FOR..."
283
283
  aria-label="search"
284
284
  />
285
+ <button v-if="hasInputValue" @click="onClearClick" @keyup.enter="onClearClick" id="searchstax-clear-input-action-button" class="searchstax-cross-icon " aria-label="clear input" role="button"></button>
286
+ <span v-if="hasInputValue" id="searchstax-separator-icon" class="searchstax-separator "></span>
285
287
  <div
286
288
  class="searchstax-autosuggest-container"
287
289
  :class="{ hidden: suggestions.length === 0 }"
@@ -17,6 +17,14 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
17
17
  type: PropType<() => void>;
18
18
  required: true;
19
19
  };
20
+ onClearClick: {
21
+ type: PropType<() => void>;
22
+ required: false;
23
+ };
24
+ hasInputValue: {
25
+ type: BooleanConstructor;
26
+ required: false;
27
+ };
20
28
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
29
  suggestions: {
22
30
  type: PropType<ISearchstaxSuggestion[]>;
@@ -34,5 +42,15 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
34
42
  type: PropType<() => void>;
35
43
  required: true;
36
44
  };
37
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
+ onClearClick: {
46
+ type: PropType<() => void>;
47
+ required: false;
48
+ };
49
+ hasInputValue: {
50
+ type: BooleanConstructor;
51
+ required: false;
52
+ };
53
+ }>> & Readonly<{}>, {
54
+ hasInputValue: boolean;
55
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
38
56
  export default _sfc_main;