@@ -14,11 +14,30 @@ html: |
14
14
<path d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"></path>
15
15
</svg>
16
16
</button>
17
- <button class="ais-SearchBox-reset" type="reset" title="Clear the search query." style="display:none;" >
17
+ <button class="ais-SearchBox-reset" type="reset" title="Clear the search query." hidden >
18
18
<svg class="ais-SearchBox-resetIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">
19
19
<path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>
20
20
</svg>
21
21
</button>
22
+ <span class="ais-SearchBox-loadingIndicator" hidden>
23
+ <svg width="18" height="18" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#444" class="ais-SearchBox-loadingIcon">
24
+ <g fill="none" fillRule="evenodd">
25
+ <g transform="translate(1 1)" strokeWidth="2">
26
+ <circle strokeOpacity=".5" cx="18" cy="18" r="18" />
27
+ <path d="M36 18c0-9.94-8.06-18-18-18">
28
+ <animateTransform
29
+ attributeName="transform"
30
+ type="rotate"
31
+ from="0 18 18"
32
+ to="360 18 18"
33
+ dur="1s"
34
+ repeatCount="indefinite"
35
+ />
36
+ </path>
37
+ </g>
38
+ </g>
39
+ </svg>
40
+ </span>
22
41
</form>
23
42
</div>
24
43
<div class="ais-SearchBox-footer ais-footer">
@@ -44,6 +63,69 @@ althtml1: |
44
63
<path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>
45
64
</svg>
46
65
</button>
66
+ <span class="ais-SearchBox-loadingIndicator" hidden>
67
+ <svg width="18" height="18" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#444" class="ais-SearchBox-loadingIcon">
68
+ <g fill="none" fillRule="evenodd">
69
+ <g transform="translate(1 1)" strokeWidth="2">
70
+ <circle strokeOpacity=".5" cx="18" cy="18" r="18" />
71
+ <path d="M36 18c0-9.94-8.06-18-18-18">
72
+ <animateTransform
73
+ attributeName="transform"
74
+ type="rotate"
75
+ from="0 18 18"
76
+ to="360 18 18"
77
+ dur="1s"
78
+ repeatCount="indefinite"
79
+ />
80
+ </path>
81
+ </g>
82
+ </g>
83
+ </svg>
84
+ </span>
85
+ </form>
86
+ </div>
87
+ <div class="ais-SearchBox-footer ais-footer">
88
+ Footer info
89
+ </div>
90
+ </div>
91
+ alt2 : Showing the loading indicator
92
+ althtml2 : |
93
+ <div class="ais-SearchBox">
94
+ <div class="ais-SearchBox-header ais-header">
95
+ Search box
96
+ </div>
97
+ <div class="ais-SearchBox-body ais-body">
98
+ <form class="ais-SearchBox-form" novalidate>
99
+ <input class="ais-SearchBox-input" autocomplete="off" autocorrect="off" autocapitalize="off" placeholder="Search for products" spellcheck="false" maxlength="512" type="search" value="Typing text..." />
100
+ <button class="ais-SearchBox-submit" type="submit" title="Submit the search query.">
101
+ <svg class="ais-SearchBox-submitIcon" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">
102
+ <path d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"></path>
103
+ </svg>
104
+ </button>
105
+ <button class="ais-SearchBox-reset" type="reset" title="Clear the search query." hidden>
106
+ <svg class="ais-SearchBox-resetIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">
107
+ <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>
108
+ </svg>
109
+ </button>
110
+ <span class="ais-SearchBox-loadingIndicator">
111
+ <svg width="18" height="18" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#444" class="ais-SearchBox-loadingIcon">
112
+ <g fill="none" fillRule="evenodd">
113
+ <g transform="translate(1 1)" strokeWidth="2">
114
+ <circle strokeOpacity=".5" cx="18" cy="18" r="18" />
115
+ <path d="M36 18c0-9.94-8.06-18-18-18">
116
+ <animateTransform
117
+ attributeName="transform"
118
+ type="rotate"
119
+ from="0 18 18"
120
+ to="360 18 18"
121
+ dur="1s"
122
+ repeatCount="indefinite"
123
+ />
124
+ </path>
125
+ </g>
126
+ </g>
127
+ </svg>
128
+ </span>
47
129
</form>
48
130
</div>
49
131
<div class="ais-SearchBox-footer ais-footer">
0 commit comments