instantsearch-ui-components 0.15.0 → 0.15.2

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.
Files changed (50) hide show
  1. package/dist/cjs/components/Carousel.js +4 -4
  2. package/dist/cjs/components/autocomplete/AutocompleteIndex.js +1 -1
  3. package/dist/cjs/components/autocomplete/AutocompletePanel.js +9 -2
  4. package/dist/cjs/components/autocomplete/AutocompleteRecentSearch.js +9 -9
  5. package/dist/cjs/components/autocomplete/AutocompleteSearch.js +8 -9
  6. package/dist/cjs/components/autocomplete/AutocompleteSuggestion.js +6 -6
  7. package/dist/cjs/components/autocomplete/createAutocompletePropGetters.js +3 -1
  8. package/dist/cjs/components/autocomplete/icons.js +11 -17
  9. package/dist/cjs/components/chat/Chat.js +16 -16
  10. package/dist/cjs/components/chat/ChatHeader.js +22 -24
  11. package/dist/cjs/components/chat/ChatMessage.js +1 -1
  12. package/dist/cjs/components/chat/ChatMessageError.js +6 -6
  13. package/dist/cjs/components/chat/ChatMessageLoader.js +4 -4
  14. package/dist/cjs/components/chat/ChatMessages.js +3 -3
  15. package/dist/cjs/components/chat/ChatPrompt.js +2 -2
  16. package/dist/cjs/components/chat/ChatToggleButton.js +13 -17
  17. package/dist/cjs/components/chat/icons.js +45 -149
  18. package/dist/cjs/version.js +1 -1
  19. package/dist/es/components/Carousel.js +4 -4
  20. package/dist/es/components/autocomplete/AutocompleteIndex.js +1 -1
  21. package/dist/es/components/autocomplete/AutocompletePanel.js +9 -2
  22. package/dist/es/components/autocomplete/AutocompleteRecentSearch.d.ts +1 -1
  23. package/dist/es/components/autocomplete/AutocompleteRecentSearch.js +10 -10
  24. package/dist/es/components/autocomplete/AutocompleteSearch.d.ts +2 -2
  25. package/dist/es/components/autocomplete/AutocompleteSearch.js +9 -10
  26. package/dist/es/components/autocomplete/AutocompleteSuggestion.d.ts +1 -1
  27. package/dist/es/components/autocomplete/AutocompleteSuggestion.js +7 -7
  28. package/dist/es/components/autocomplete/createAutocompletePropGetters.d.ts +19 -6
  29. package/dist/es/components/autocomplete/createAutocompletePropGetters.js +3 -1
  30. package/dist/es/components/autocomplete/icons.d.ts +5 -5
  31. package/dist/es/components/autocomplete/icons.js +6 -12
  32. package/dist/es/components/chat/Chat.d.ts +1 -1
  33. package/dist/es/components/chat/Chat.js +16 -16
  34. package/dist/es/components/chat/ChatHeader.d.ts +1 -1
  35. package/dist/es/components/chat/ChatHeader.js +23 -25
  36. package/dist/es/components/chat/ChatMessage.js +2 -2
  37. package/dist/es/components/chat/ChatMessageError.d.ts +1 -1
  38. package/dist/es/components/chat/ChatMessageError.js +7 -7
  39. package/dist/es/components/chat/ChatMessageLoader.d.ts +1 -1
  40. package/dist/es/components/chat/ChatMessageLoader.js +5 -5
  41. package/dist/es/components/chat/ChatMessages.js +4 -4
  42. package/dist/es/components/chat/ChatPrompt.d.ts +2 -2
  43. package/dist/es/components/chat/ChatPrompt.js +3 -3
  44. package/dist/es/components/chat/ChatToggleButton.d.ts +1 -1
  45. package/dist/es/components/chat/ChatToggleButton.js +14 -18
  46. package/dist/es/components/chat/icons.d.ts +16 -19
  47. package/dist/es/components/chat/icons.js +30 -134
  48. package/dist/es/version.d.ts +1 -1
  49. package/dist/es/version.js +1 -1
  50. package/package.json +2 -2
@@ -1,13 +1,7 @@
1
- export function SparklesIconComponent(_ref) {
2
- var createElement = _ref.createElement,
3
- _ref$width = _ref.width,
4
- width = _ref$width === void 0 ? 20 : _ref$width,
5
- _ref$height = _ref.height,
6
- height = _ref$height === void 0 ? 20 : _ref$height;
1
+ export function SparklesIcon(_ref) {
2
+ var createElement = _ref.createElement;
7
3
  return createElement("svg", {
8
4
  xmlns: "http://www.w3.org/2000/svg",
9
- width: width,
10
- height: height,
11
5
  fill: "none",
12
6
  viewBox: "0 0 20 20"
13
7
  }, createElement("path", {
@@ -22,20 +16,13 @@ export function SparklesIconComponent(_ref) {
22
16
  clipRule: "evenodd"
23
17
  }));
24
18
  }
25
- export function ArrowUpIconComponent(_ref2) {
26
- var createElement = _ref2.createElement,
27
- _ref2$width = _ref2.width,
28
- width = _ref2$width === void 0 ? 16 : _ref2$width,
29
- _ref2$height = _ref2.height,
30
- height = _ref2$height === void 0 ? 16 : _ref2$height;
19
+ export function ArrowUpIcon(_ref2) {
20
+ var createElement = _ref2.createElement;
31
21
  return createElement("svg", {
32
22
  xmlns: "http://www.w3.org/2000/svg",
33
- width: width,
34
- height: height,
35
23
  viewBox: "0 0 24 24",
36
24
  fill: "none",
37
25
  stroke: "currentColor",
38
- strokeWidth: "2",
39
26
  strokeLinecap: "round",
40
27
  strokeLinejoin: "round"
41
28
  }, createElement("path", {
@@ -44,20 +31,13 @@ export function ArrowUpIconComponent(_ref2) {
44
31
  d: "M12 19V5"
45
32
  }));
46
33
  }
47
- export function ArrowRightIconComponent(_ref3) {
48
- var createElement = _ref3.createElement,
49
- _ref3$width = _ref3.width,
50
- width = _ref3$width === void 0 ? 16 : _ref3$width,
51
- _ref3$height = _ref3.height,
52
- height = _ref3$height === void 0 ? 16 : _ref3$height;
34
+ export function ArrowRightIcon(_ref3) {
35
+ var createElement = _ref3.createElement;
53
36
  return createElement("svg", {
54
37
  xmlns: "http://www.w3.org/2000/svg",
55
- width: width,
56
- height: height,
57
38
  viewBox: "0 0 24 24",
58
39
  fill: "none",
59
40
  stroke: "currentColor",
60
- strokeWidth: "2",
61
41
  strokeLinecap: "round",
62
42
  strokeLinejoin: "round"
63
43
  }, createElement("path", {
@@ -66,60 +46,39 @@ export function ArrowRightIconComponent(_ref3) {
66
46
  d: "m12 5 7 7-7 7"
67
47
  }));
68
48
  }
69
- export function ChevronUpIconComponent(_ref4) {
70
- var createElement = _ref4.createElement,
71
- _ref4$width = _ref4.width,
72
- width = _ref4$width === void 0 ? 16 : _ref4$width,
73
- _ref4$height = _ref4.height,
74
- height = _ref4$height === void 0 ? 16 : _ref4$height;
49
+ export function ChevronUpIcon(_ref4) {
50
+ var createElement = _ref4.createElement;
75
51
  return createElement("svg", {
76
52
  xmlns: "http://www.w3.org/2000/svg",
77
- width: width,
78
- height: height,
79
53
  viewBox: "0 0 24 24",
80
54
  fill: "none",
81
55
  stroke: "currentColor",
82
- strokeWidth: "2",
83
56
  strokeLinecap: "round",
84
57
  strokeLinejoin: "round"
85
58
  }, createElement("path", {
86
59
  d: "m18 15-6-6-6 6"
87
60
  }));
88
61
  }
89
- export function ChevronDownIconComponent(_ref5) {
90
- var createElement = _ref5.createElement,
91
- _ref5$width = _ref5.width,
92
- width = _ref5$width === void 0 ? 16 : _ref5$width,
93
- _ref5$height = _ref5.height,
94
- height = _ref5$height === void 0 ? 16 : _ref5$height;
62
+ export function ChevronDownIcon(_ref5) {
63
+ var createElement = _ref5.createElement;
95
64
  return createElement("svg", {
96
65
  xmlns: "http://www.w3.org/2000/svg",
97
- width: width,
98
- height: height,
99
66
  viewBox: "0 0 24 24",
100
67
  fill: "none",
101
68
  stroke: "currentColor",
102
- strokeWidth: "2",
103
69
  strokeLinecap: "round",
104
70
  strokeLinejoin: "round"
105
71
  }, createElement("path", {
106
72
  d: "m6 9 6 6 6-6"
107
73
  }));
108
74
  }
109
- export function CloseIconComponent(_ref6) {
110
- var createElement = _ref6.createElement,
111
- _ref6$width = _ref6.width,
112
- width = _ref6$width === void 0 ? 16 : _ref6$width,
113
- _ref6$height = _ref6.height,
114
- height = _ref6$height === void 0 ? 16 : _ref6$height;
75
+ export function CloseIcon(_ref6) {
76
+ var createElement = _ref6.createElement;
115
77
  return createElement("svg", {
116
78
  xmlns: "http://www.w3.org/2000/svg",
117
- width: width,
118
- height: height,
119
79
  viewBox: "0 0 24 24",
120
80
  fill: "none",
121
81
  stroke: "currentColor",
122
- strokeWidth: "2",
123
82
  strokeLinecap: "round",
124
83
  strokeLinejoin: "round"
125
84
  }, createElement("path", {
@@ -128,19 +87,12 @@ export function CloseIconComponent(_ref6) {
128
87
  d: "m6 6 12 12"
129
88
  }));
130
89
  }
131
- export function MaximizeIconComponent(_ref7) {
132
- var createElement = _ref7.createElement,
133
- _ref7$width = _ref7.width,
134
- width = _ref7$width === void 0 ? 16 : _ref7$width,
135
- _ref7$height = _ref7.height,
136
- height = _ref7$height === void 0 ? 16 : _ref7$height;
90
+ export function MaximizeIcon(_ref7) {
91
+ var createElement = _ref7.createElement;
137
92
  return createElement("svg", {
138
93
  xmlns: "http://www.w3.org/2000/svg",
139
- width: width,
140
- height: height,
141
94
  viewBox: "0 0 24 24",
142
95
  fill: "none",
143
- strokeWidth: "2",
144
96
  stroke: "currentColor",
145
97
  strokeLinecap: "round",
146
98
  strokeLinejoin: "round"
@@ -154,19 +106,12 @@ export function MaximizeIconComponent(_ref7) {
154
106
  d: "M9 21H3v-6"
155
107
  }));
156
108
  }
157
- export function MinimizeIconComponent(_ref8) {
158
- var createElement = _ref8.createElement,
159
- _ref8$width = _ref8.width,
160
- width = _ref8$width === void 0 ? 16 : _ref8$width,
161
- _ref8$height = _ref8.height,
162
- height = _ref8$height === void 0 ? 16 : _ref8$height;
109
+ export function MinimizeIcon(_ref8) {
110
+ var createElement = _ref8.createElement;
163
111
  return createElement("svg", {
164
112
  xmlns: "http://www.w3.org/2000/svg",
165
- width: width,
166
- height: height,
167
113
  viewBox: "0 0 24 24",
168
114
  fill: "none",
169
- strokeWidth: "2",
170
115
  stroke: "currentColor",
171
116
  strokeLinecap: "round",
172
117
  strokeLinejoin: "round"
@@ -180,20 +125,13 @@ export function MinimizeIconComponent(_ref8) {
180
125
  d: "M4 14h6v6"
181
126
  }));
182
127
  }
183
- export function StopIconComponent(_ref9) {
184
- var createElement = _ref9.createElement,
185
- _ref9$width = _ref9.width,
186
- width = _ref9$width === void 0 ? 16 : _ref9$width,
187
- _ref9$height = _ref9.height,
188
- height = _ref9$height === void 0 ? 16 : _ref9$height;
128
+ export function StopIcon(_ref9) {
129
+ var createElement = _ref9.createElement;
189
130
  return createElement("svg", {
190
131
  xmlns: "http://www.w3.org/2000/svg",
191
- width: width,
192
- height: height,
193
132
  viewBox: "0 0 24 24",
194
133
  fill: "none",
195
134
  stroke: "currentColor",
196
- strokeWidth: "2",
197
135
  strokeLinecap: "round",
198
136
  strokeLinejoin: "round"
199
137
  }, createElement("circle", {
@@ -208,20 +146,13 @@ export function StopIconComponent(_ref9) {
208
146
  rx: "1"
209
147
  }));
210
148
  }
211
- export function ReloadIconComponent(_ref0) {
212
- var createElement = _ref0.createElement,
213
- _ref0$width = _ref0.width,
214
- width = _ref0$width === void 0 ? 16 : _ref0$width,
215
- _ref0$height = _ref0.height,
216
- height = _ref0$height === void 0 ? 16 : _ref0$height;
149
+ export function ReloadIcon(_ref0) {
150
+ var createElement = _ref0.createElement;
217
151
  return createElement("svg", {
218
152
  xmlns: "http://www.w3.org/2000/svg",
219
- width: width,
220
- height: height,
221
153
  viewBox: "0 0 24 24",
222
154
  fill: "none",
223
155
  stroke: "currentColor",
224
- strokeWidth: "2",
225
156
  strokeLinecap: "round",
226
157
  strokeLinejoin: "round"
227
158
  }, createElement("path", {
@@ -234,20 +165,13 @@ export function ReloadIconComponent(_ref0) {
234
165
  d: "M3 21v-5h5"
235
166
  }));
236
167
  }
237
- export function CopyIconComponent(_ref1) {
238
- var createElement = _ref1.createElement,
239
- _ref1$width = _ref1.width,
240
- width = _ref1$width === void 0 ? 16 : _ref1$width,
241
- _ref1$height = _ref1.height,
242
- height = _ref1$height === void 0 ? 16 : _ref1$height;
168
+ export function CopyIcon(_ref1) {
169
+ var createElement = _ref1.createElement;
243
170
  return createElement("svg", {
244
171
  xmlns: "http://www.w3.org/2000/svg",
245
- width: width,
246
- height: height,
247
172
  viewBox: "0 0 24 24",
248
173
  fill: "none",
249
174
  stroke: "currentColor",
250
- strokeWidth: "2",
251
175
  strokeLinecap: "round",
252
176
  strokeLinejoin: "round"
253
177
  }, createElement("rect", {
@@ -261,20 +185,13 @@ export function CopyIconComponent(_ref1) {
261
185
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
262
186
  }));
263
187
  }
264
- export function MenuIconComponent(_ref10) {
265
- var createElement = _ref10.createElement,
266
- _ref10$width = _ref10.width,
267
- width = _ref10$width === void 0 ? 16 : _ref10$width,
268
- _ref10$height = _ref10.height,
269
- height = _ref10$height === void 0 ? 16 : _ref10$height;
188
+ export function MenuIcon(_ref10) {
189
+ var createElement = _ref10.createElement;
270
190
  return createElement("svg", {
271
191
  xmlns: "http://www.w3.org/2000/svg",
272
- width: width,
273
- height: height,
274
192
  viewBox: "0 0 24 24",
275
193
  fill: "none",
276
194
  stroke: "currentColor",
277
- strokeWidth: "2",
278
195
  strokeLinecap: "round",
279
196
  strokeLinejoin: "round"
280
197
  }, createElement("circle", {
@@ -291,16 +208,10 @@ export function MenuIconComponent(_ref10) {
291
208
  r: "1"
292
209
  }));
293
210
  }
294
- export function LoadingSpinnerIconComponent(_ref11) {
295
- var createElement = _ref11.createElement,
296
- _ref11$width = _ref11.width,
297
- width = _ref11$width === void 0 ? 24 : _ref11$width,
298
- _ref11$height = _ref11.height,
299
- height = _ref11$height === void 0 ? 24 : _ref11$height;
211
+ export function LoadingSpinnerIcon(_ref11) {
212
+ var createElement = _ref11.createElement;
300
213
  return createElement("svg", {
301
214
  viewBox: "12 12 24 24",
302
- width: width,
303
- height: height,
304
215
  role: "status",
305
216
  "aria-busy": "true",
306
217
  "aria-live": "polite"
@@ -309,44 +220,29 @@ export function LoadingSpinnerIconComponent(_ref11) {
309
220
  cy: "24",
310
221
  r: "11",
311
222
  fill: "none",
312
- strokeWidth: "2",
313
223
  stroke: "currentColor"
314
224
  }));
315
225
  }
316
- export function ChevronLeftIconComponent(_ref12) {
317
- var createElement = _ref12.createElement,
318
- _ref12$width = _ref12.width,
319
- width = _ref12$width === void 0 ? 16 : _ref12$width,
320
- _ref12$height = _ref12.height,
321
- height = _ref12$height === void 0 ? 16 : _ref12$height;
226
+ export function ChevronLeftIcon(_ref12) {
227
+ var createElement = _ref12.createElement;
322
228
  return createElement("svg", {
323
229
  xmlns: "http://www.w3.org/2000/svg",
324
- width: width,
325
- height: height,
326
230
  viewBox: "0 0 24 24",
327
231
  fill: "none",
328
232
  stroke: "currentColor",
329
- strokeWidth: "2",
330
233
  strokeLinecap: "round",
331
234
  strokeLinejoin: "round"
332
235
  }, createElement("path", {
333
236
  d: "m15 18-6-6 6-6"
334
237
  }));
335
238
  }
336
- export function ChevronRightIconComponent(_ref13) {
337
- var createElement = _ref13.createElement,
338
- _ref13$width = _ref13.width,
339
- width = _ref13$width === void 0 ? 16 : _ref13$width,
340
- _ref13$height = _ref13.height,
341
- height = _ref13$height === void 0 ? 16 : _ref13$height;
239
+ export function ChevronRightIcon(_ref13) {
240
+ var createElement = _ref13.createElement;
342
241
  return createElement("svg", {
343
242
  xmlns: "http://www.w3.org/2000/svg",
344
- width: width,
345
- height: height,
346
243
  viewBox: "0 0 24 24",
347
244
  fill: "none",
348
245
  stroke: "currentColor",
349
- strokeWidth: "2",
350
246
  strokeLinecap: "round",
351
247
  strokeLinejoin: "round"
352
248
  }, createElement("path", {
@@ -1,2 +1,2 @@
1
- declare const _default: "0.15.0";
1
+ declare const _default: "0.15.2";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '0.15.0';
1
+ export default '0.15.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instantsearch-ui-components",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "Common UI components for InstantSearch.",
5
5
  "types": "dist/es/index.d.ts",
6
6
  "main": "dist/cjs/index.js",
@@ -53,5 +53,5 @@
53
53
  "zod": "^3.25.76 || ^4",
54
54
  "zod-to-json-schema": "3.24.6"
55
55
  },
56
- "gitHead": "b4cb69c8cfaa9dc22dfe8fe695568cf5200f3893"
56
+ "gitHead": "00ba8af52fcf72388a8da9c1ab22079b5de9ca63"
57
57
  }