instantsearch-ui-components 0.11.2 → 0.12.0
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/dist/cjs/components/Button.js +29 -0
- package/dist/cjs/components/Carousel.js +26 -6
- package/dist/cjs/components/autocomplete/Autocomplete.js +23 -0
- package/dist/cjs/components/autocomplete/AutocompleteIndex.js +39 -0
- package/dist/cjs/components/autocomplete/AutocompletePanel.js +25 -0
- package/dist/cjs/components/autocomplete/AutocompleteSuggestion.js +20 -0
- package/dist/cjs/components/autocomplete/index.js +49 -0
- package/dist/cjs/components/chat/Chat.js +79 -0
- package/dist/cjs/components/chat/ChatHeader.js +89 -0
- package/dist/cjs/components/chat/ChatMessage.js +138 -0
- package/dist/cjs/components/chat/ChatMessageError.js +57 -0
- package/dist/cjs/components/chat/ChatMessageLoader.js +47 -0
- package/dist/cjs/components/chat/ChatMessages.js +192 -0
- package/dist/cjs/components/chat/ChatPrompt.js +179 -0
- package/dist/cjs/components/chat/ChatToggleButton.js +46 -0
- package/dist/cjs/components/chat/icons.js +375 -0
- package/dist/cjs/components/chat/types.js +1 -0
- package/dist/cjs/components/index.js +132 -0
- package/dist/cjs/lib/index.js +22 -0
- package/dist/cjs/lib/stickToBottom.js +481 -0
- package/dist/cjs/lib/utils/find.js +15 -0
- package/dist/cjs/lib/utils/index.js +27 -0
- package/dist/cjs/lib/utils/startsWith.js +9 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/warn.js +40 -0
- package/dist/es/components/Button.d.ts +38 -0
- package/dist/es/components/Button.js +22 -0
- package/dist/es/components/Carousel.d.ts +11 -0
- package/dist/es/components/Carousel.js +26 -6
- package/dist/es/components/autocomplete/Autocomplete.d.ts +13 -0
- package/dist/es/components/autocomplete/Autocomplete.js +16 -0
- package/dist/es/components/autocomplete/AutocompleteIndex.d.ts +31 -0
- package/dist/es/components/autocomplete/AutocompleteIndex.js +32 -0
- package/dist/es/components/autocomplete/AutocompletePanel.d.ts +17 -0
- package/dist/es/components/autocomplete/AutocompletePanel.js +18 -0
- package/dist/es/components/autocomplete/AutocompleteSuggestion.d.ts +16 -0
- package/dist/es/components/autocomplete/AutocompleteSuggestion.js +14 -0
- package/dist/es/components/autocomplete/index.d.ts +4 -0
- package/dist/es/components/autocomplete/index.js +4 -0
- package/dist/es/components/chat/Chat.d.ts +42 -0
- package/dist/es/components/chat/Chat.js +72 -0
- package/dist/es/components/chat/ChatHeader.d.ts +99 -0
- package/dist/es/components/chat/ChatHeader.js +82 -0
- package/dist/es/components/chat/ChatMessage.d.ts +124 -0
- package/dist/es/components/chat/ChatMessage.js +131 -0
- package/dist/es/components/chat/ChatMessageError.d.ts +27 -0
- package/dist/es/components/chat/ChatMessageError.js +50 -0
- package/dist/es/components/chat/ChatMessageLoader.d.ts +15 -0
- package/dist/es/components/chat/ChatMessageLoader.js +40 -0
- package/dist/es/components/chat/ChatMessages.d.ts +139 -0
- package/dist/es/components/chat/ChatMessages.js +185 -0
- package/dist/es/components/chat/ChatPrompt.d.ts +119 -0
- package/dist/es/components/chat/ChatPrompt.js +172 -0
- package/dist/es/components/chat/ChatToggleButton.d.ts +29 -0
- package/dist/es/components/chat/ChatToggleButton.js +39 -0
- package/dist/es/components/chat/icons.d.ts +22 -0
- package/dist/es/components/chat/icons.js +355 -0
- package/dist/es/components/chat/types.d.ts +29 -0
- package/dist/es/components/chat/types.js +1 -0
- package/dist/es/components/index.d.ts +12 -0
- package/dist/es/components/index.js +12 -0
- package/dist/es/lib/index.d.ts +2 -0
- package/dist/es/lib/index.js +3 -1
- package/dist/es/lib/stickToBottom.d.ts +114 -0
- package/dist/es/lib/stickToBottom.js +474 -0
- package/dist/es/lib/utils/find.d.ts +1 -0
- package/dist/es/lib/utils/find.js +9 -0
- package/dist/es/lib/utils/index.d.ts +2 -0
- package/dist/es/lib/utils/index.js +2 -0
- package/dist/es/lib/utils/startsWith.d.ts +1 -0
- package/dist/es/lib/utils/startsWith.js +3 -0
- package/dist/es/types/Renderer.d.ts +1 -1
- package/dist/es/version.d.ts +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/warn.d.ts +10 -0
- package/dist/es/warn.js +33 -0
- package/package.json +7 -3
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ArrowRightIconComponent = ArrowRightIconComponent;
|
|
7
|
+
exports.ArrowUpIconComponent = ArrowUpIconComponent;
|
|
8
|
+
exports.ChevronDownIconComponent = ChevronDownIconComponent;
|
|
9
|
+
exports.ChevronLeftIconComponent = ChevronLeftIconComponent;
|
|
10
|
+
exports.ChevronRightIconComponent = ChevronRightIconComponent;
|
|
11
|
+
exports.ChevronUpIconComponent = ChevronUpIconComponent;
|
|
12
|
+
exports.CloseIconComponent = CloseIconComponent;
|
|
13
|
+
exports.CopyIconComponent = CopyIconComponent;
|
|
14
|
+
exports.LoadingSpinnerIconComponent = LoadingSpinnerIconComponent;
|
|
15
|
+
exports.MaximizeIconComponent = MaximizeIconComponent;
|
|
16
|
+
exports.MenuIconComponent = MenuIconComponent;
|
|
17
|
+
exports.MinimizeIconComponent = MinimizeIconComponent;
|
|
18
|
+
exports.ReloadIconComponent = ReloadIconComponent;
|
|
19
|
+
exports.SparklesIconComponent = SparklesIconComponent;
|
|
20
|
+
exports.StopIconComponent = StopIconComponent;
|
|
21
|
+
function SparklesIconComponent(_ref) {
|
|
22
|
+
var createElement = _ref.createElement,
|
|
23
|
+
_ref$width = _ref.width,
|
|
24
|
+
width = _ref$width === void 0 ? 20 : _ref$width,
|
|
25
|
+
_ref$height = _ref.height,
|
|
26
|
+
height = _ref$height === void 0 ? 20 : _ref$height;
|
|
27
|
+
return createElement("svg", {
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
+
width: width,
|
|
30
|
+
height: height,
|
|
31
|
+
fill: "none",
|
|
32
|
+
viewBox: "0 0 20 20"
|
|
33
|
+
}, createElement("path", {
|
|
34
|
+
fill: "currentColor",
|
|
35
|
+
fillRule: "evenodd",
|
|
36
|
+
d: "M10 1.875c.27 0 .51.173.594.43l1.593 4.844a1.043 1.043 0 0 0 .664.664l4.844 1.593a.625.625 0 0 1 0 1.188l-4.844 1.593a1.043 1.043 0 0 0-.664.664l-1.593 4.844a.625.625 0 0 1-1.188 0l-1.593-4.844a1.042 1.042 0 0 0-.664-.664l-4.844-1.593a.625.625 0 0 1 0-1.188l4.844-1.593a1.042 1.042 0 0 0 .664-.664l1.593-4.844a.625.625 0 0 1 .594-.43ZM9 7.539A2.292 2.292 0 0 1 7.54 9L4.5 10l3.04 1A2.292 2.292 0 0 1 9 12.46l1 3.04 1-3.04A2.293 2.293 0 0 1 12.46 11l3.04-1-3.04-1A2.292 2.292 0 0 1 11 7.54L10 4.5 9 7.54ZM4.167 1.875c.345 0 .625.28.625.625v3.333a.625.625 0 0 1-1.25 0V2.5c0-.345.28-.625.625-.625ZM15.833 13.542c.345 0 .625.28.625.625V17.5a.625.625 0 1 1-1.25 0v-3.333c0-.345.28-.625.625-.625Z",
|
|
37
|
+
clipRule: "evenodd"
|
|
38
|
+
}), createElement("path", {
|
|
39
|
+
fill: "currentColor",
|
|
40
|
+
fillRule: "evenodd",
|
|
41
|
+
d: "M1.875 4.167c0-.346.28-.625.625-.625h3.333a.625.625 0 1 1 0 1.25H2.5a.625.625 0 0 1-.625-.625ZM13.542 15.833c0-.345.28-.625.625-.625H17.5a.625.625 0 0 1 0 1.25h-3.333a.625.625 0 0 1-.625-.625Z",
|
|
42
|
+
clipRule: "evenodd"
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
function ArrowUpIconComponent(_ref2) {
|
|
46
|
+
var createElement = _ref2.createElement,
|
|
47
|
+
_ref2$width = _ref2.width,
|
|
48
|
+
width = _ref2$width === void 0 ? 16 : _ref2$width,
|
|
49
|
+
_ref2$height = _ref2.height,
|
|
50
|
+
height = _ref2$height === void 0 ? 16 : _ref2$height;
|
|
51
|
+
return createElement("svg", {
|
|
52
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
53
|
+
width: width,
|
|
54
|
+
height: height,
|
|
55
|
+
viewBox: "0 0 24 24",
|
|
56
|
+
fill: "none",
|
|
57
|
+
stroke: "currentColor",
|
|
58
|
+
strokeWidth: "2",
|
|
59
|
+
strokeLinecap: "round",
|
|
60
|
+
strokeLinejoin: "round"
|
|
61
|
+
}, createElement("path", {
|
|
62
|
+
d: "m5 12 7-7 7 7"
|
|
63
|
+
}), createElement("path", {
|
|
64
|
+
d: "M12 19V5"
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
function ArrowRightIconComponent(_ref3) {
|
|
68
|
+
var createElement = _ref3.createElement,
|
|
69
|
+
_ref3$width = _ref3.width,
|
|
70
|
+
width = _ref3$width === void 0 ? 16 : _ref3$width,
|
|
71
|
+
_ref3$height = _ref3.height,
|
|
72
|
+
height = _ref3$height === void 0 ? 16 : _ref3$height;
|
|
73
|
+
return createElement("svg", {
|
|
74
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
+
width: width,
|
|
76
|
+
height: height,
|
|
77
|
+
viewBox: "0 0 24 24",
|
|
78
|
+
fill: "none",
|
|
79
|
+
stroke: "currentColor",
|
|
80
|
+
strokeWidth: "2",
|
|
81
|
+
strokeLinecap: "round",
|
|
82
|
+
strokeLinejoin: "round"
|
|
83
|
+
}, createElement("path", {
|
|
84
|
+
d: "M5 12h14"
|
|
85
|
+
}), createElement("path", {
|
|
86
|
+
d: "m12 5 7 7-7 7"
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
function ChevronUpIconComponent(_ref4) {
|
|
90
|
+
var createElement = _ref4.createElement,
|
|
91
|
+
_ref4$width = _ref4.width,
|
|
92
|
+
width = _ref4$width === void 0 ? 16 : _ref4$width,
|
|
93
|
+
_ref4$height = _ref4.height,
|
|
94
|
+
height = _ref4$height === void 0 ? 16 : _ref4$height;
|
|
95
|
+
return createElement("svg", {
|
|
96
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
97
|
+
width: width,
|
|
98
|
+
height: height,
|
|
99
|
+
viewBox: "0 0 24 24",
|
|
100
|
+
fill: "none",
|
|
101
|
+
stroke: "currentColor",
|
|
102
|
+
strokeWidth: "2",
|
|
103
|
+
strokeLinecap: "round",
|
|
104
|
+
strokeLinejoin: "round"
|
|
105
|
+
}, createElement("path", {
|
|
106
|
+
d: "m18 15-6-6-6 6"
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
function ChevronDownIconComponent(_ref5) {
|
|
110
|
+
var createElement = _ref5.createElement,
|
|
111
|
+
_ref5$width = _ref5.width,
|
|
112
|
+
width = _ref5$width === void 0 ? 16 : _ref5$width,
|
|
113
|
+
_ref5$height = _ref5.height,
|
|
114
|
+
height = _ref5$height === void 0 ? 16 : _ref5$height;
|
|
115
|
+
return createElement("svg", {
|
|
116
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
117
|
+
width: width,
|
|
118
|
+
height: height,
|
|
119
|
+
viewBox: "0 0 24 24",
|
|
120
|
+
fill: "none",
|
|
121
|
+
stroke: "currentColor",
|
|
122
|
+
strokeWidth: "2",
|
|
123
|
+
strokeLinecap: "round",
|
|
124
|
+
strokeLinejoin: "round"
|
|
125
|
+
}, createElement("path", {
|
|
126
|
+
d: "m6 9 6 6 6-6"
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
129
|
+
function CloseIconComponent(_ref6) {
|
|
130
|
+
var createElement = _ref6.createElement,
|
|
131
|
+
_ref6$width = _ref6.width,
|
|
132
|
+
width = _ref6$width === void 0 ? 16 : _ref6$width,
|
|
133
|
+
_ref6$height = _ref6.height,
|
|
134
|
+
height = _ref6$height === void 0 ? 16 : _ref6$height;
|
|
135
|
+
return createElement("svg", {
|
|
136
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
137
|
+
width: width,
|
|
138
|
+
height: height,
|
|
139
|
+
viewBox: "0 0 24 24",
|
|
140
|
+
fill: "none",
|
|
141
|
+
stroke: "currentColor",
|
|
142
|
+
strokeWidth: "2",
|
|
143
|
+
strokeLinecap: "round",
|
|
144
|
+
strokeLinejoin: "round"
|
|
145
|
+
}, createElement("path", {
|
|
146
|
+
d: "M18 6 6 18"
|
|
147
|
+
}), createElement("path", {
|
|
148
|
+
d: "m6 6 12 12"
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
function MaximizeIconComponent(_ref7) {
|
|
152
|
+
var createElement = _ref7.createElement,
|
|
153
|
+
_ref7$width = _ref7.width,
|
|
154
|
+
width = _ref7$width === void 0 ? 16 : _ref7$width,
|
|
155
|
+
_ref7$height = _ref7.height,
|
|
156
|
+
height = _ref7$height === void 0 ? 16 : _ref7$height;
|
|
157
|
+
return createElement("svg", {
|
|
158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
159
|
+
width: width,
|
|
160
|
+
height: height,
|
|
161
|
+
viewBox: "0 0 24 24",
|
|
162
|
+
fill: "none",
|
|
163
|
+
strokeWidth: "2",
|
|
164
|
+
stroke: "currentColor",
|
|
165
|
+
strokeLinecap: "round",
|
|
166
|
+
strokeLinejoin: "round"
|
|
167
|
+
}, createElement("path", {
|
|
168
|
+
d: "M15 3h6v6"
|
|
169
|
+
}), createElement("path", {
|
|
170
|
+
d: "m21 3-7 7"
|
|
171
|
+
}), createElement("path", {
|
|
172
|
+
d: "m3 21 7-7"
|
|
173
|
+
}), createElement("path", {
|
|
174
|
+
d: "M9 21H3v-6"
|
|
175
|
+
}));
|
|
176
|
+
}
|
|
177
|
+
function MinimizeIconComponent(_ref8) {
|
|
178
|
+
var createElement = _ref8.createElement,
|
|
179
|
+
_ref8$width = _ref8.width,
|
|
180
|
+
width = _ref8$width === void 0 ? 16 : _ref8$width,
|
|
181
|
+
_ref8$height = _ref8.height,
|
|
182
|
+
height = _ref8$height === void 0 ? 16 : _ref8$height;
|
|
183
|
+
return createElement("svg", {
|
|
184
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
185
|
+
width: width,
|
|
186
|
+
height: height,
|
|
187
|
+
viewBox: "0 0 24 24",
|
|
188
|
+
fill: "none",
|
|
189
|
+
strokeWidth: "2",
|
|
190
|
+
stroke: "currentColor",
|
|
191
|
+
strokeLinecap: "round",
|
|
192
|
+
strokeLinejoin: "round"
|
|
193
|
+
}, createElement("path", {
|
|
194
|
+
d: "m14 10 7-7"
|
|
195
|
+
}), createElement("path", {
|
|
196
|
+
d: "M20 10h-6V4"
|
|
197
|
+
}), createElement("path", {
|
|
198
|
+
d: "m3 21 7-7"
|
|
199
|
+
}), createElement("path", {
|
|
200
|
+
d: "M4 14h6v6"
|
|
201
|
+
}));
|
|
202
|
+
}
|
|
203
|
+
function StopIconComponent(_ref9) {
|
|
204
|
+
var createElement = _ref9.createElement,
|
|
205
|
+
_ref9$width = _ref9.width,
|
|
206
|
+
width = _ref9$width === void 0 ? 16 : _ref9$width,
|
|
207
|
+
_ref9$height = _ref9.height,
|
|
208
|
+
height = _ref9$height === void 0 ? 16 : _ref9$height;
|
|
209
|
+
return createElement("svg", {
|
|
210
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
211
|
+
width: width,
|
|
212
|
+
height: height,
|
|
213
|
+
viewBox: "0 0 24 24",
|
|
214
|
+
fill: "none",
|
|
215
|
+
stroke: "currentColor",
|
|
216
|
+
strokeWidth: "2",
|
|
217
|
+
strokeLinecap: "round",
|
|
218
|
+
strokeLinejoin: "round"
|
|
219
|
+
}, createElement("circle", {
|
|
220
|
+
cx: "12",
|
|
221
|
+
cy: "12",
|
|
222
|
+
r: "10"
|
|
223
|
+
}), createElement("rect", {
|
|
224
|
+
x: "9",
|
|
225
|
+
y: "9",
|
|
226
|
+
width: "6",
|
|
227
|
+
height: "6",
|
|
228
|
+
rx: "1"
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
function ReloadIconComponent(_ref10) {
|
|
232
|
+
var createElement = _ref10.createElement,
|
|
233
|
+
_ref10$width = _ref10.width,
|
|
234
|
+
width = _ref10$width === void 0 ? 16 : _ref10$width,
|
|
235
|
+
_ref10$height = _ref10.height,
|
|
236
|
+
height = _ref10$height === void 0 ? 16 : _ref10$height;
|
|
237
|
+
return createElement("svg", {
|
|
238
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
239
|
+
width: width,
|
|
240
|
+
height: height,
|
|
241
|
+
viewBox: "0 0 24 24",
|
|
242
|
+
fill: "none",
|
|
243
|
+
stroke: "currentColor",
|
|
244
|
+
strokeWidth: "2",
|
|
245
|
+
strokeLinecap: "round",
|
|
246
|
+
strokeLinejoin: "round"
|
|
247
|
+
}, createElement("path", {
|
|
248
|
+
d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"
|
|
249
|
+
}), createElement("path", {
|
|
250
|
+
d: "M21 3v5h-5"
|
|
251
|
+
}), createElement("path", {
|
|
252
|
+
d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"
|
|
253
|
+
}), createElement("path", {
|
|
254
|
+
d: "M3 21v-5h5"
|
|
255
|
+
}));
|
|
256
|
+
}
|
|
257
|
+
function CopyIconComponent(_ref11) {
|
|
258
|
+
var createElement = _ref11.createElement,
|
|
259
|
+
_ref11$width = _ref11.width,
|
|
260
|
+
width = _ref11$width === void 0 ? 16 : _ref11$width,
|
|
261
|
+
_ref11$height = _ref11.height,
|
|
262
|
+
height = _ref11$height === void 0 ? 16 : _ref11$height;
|
|
263
|
+
return createElement("svg", {
|
|
264
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
265
|
+
width: width,
|
|
266
|
+
height: height,
|
|
267
|
+
viewBox: "0 0 24 24",
|
|
268
|
+
fill: "none",
|
|
269
|
+
stroke: "currentColor",
|
|
270
|
+
strokeWidth: "2",
|
|
271
|
+
strokeLinecap: "round",
|
|
272
|
+
strokeLinejoin: "round"
|
|
273
|
+
}, createElement("rect", {
|
|
274
|
+
width: "14",
|
|
275
|
+
height: "14",
|
|
276
|
+
x: "8",
|
|
277
|
+
y: "8",
|
|
278
|
+
rx: "2",
|
|
279
|
+
ry: "2"
|
|
280
|
+
}), createElement("path", {
|
|
281
|
+
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
|
|
282
|
+
}));
|
|
283
|
+
}
|
|
284
|
+
function MenuIconComponent(_ref12) {
|
|
285
|
+
var createElement = _ref12.createElement,
|
|
286
|
+
_ref12$width = _ref12.width,
|
|
287
|
+
width = _ref12$width === void 0 ? 16 : _ref12$width,
|
|
288
|
+
_ref12$height = _ref12.height,
|
|
289
|
+
height = _ref12$height === void 0 ? 16 : _ref12$height;
|
|
290
|
+
return createElement("svg", {
|
|
291
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
292
|
+
width: width,
|
|
293
|
+
height: height,
|
|
294
|
+
viewBox: "0 0 24 24",
|
|
295
|
+
fill: "none",
|
|
296
|
+
stroke: "currentColor",
|
|
297
|
+
strokeWidth: "2",
|
|
298
|
+
strokeLinecap: "round",
|
|
299
|
+
strokeLinejoin: "round"
|
|
300
|
+
}, createElement("circle", {
|
|
301
|
+
cx: "12",
|
|
302
|
+
cy: "12",
|
|
303
|
+
r: "1"
|
|
304
|
+
}), createElement("circle", {
|
|
305
|
+
cx: "12",
|
|
306
|
+
cy: "5",
|
|
307
|
+
r: "1"
|
|
308
|
+
}), createElement("circle", {
|
|
309
|
+
cx: "12",
|
|
310
|
+
cy: "19",
|
|
311
|
+
r: "1"
|
|
312
|
+
}));
|
|
313
|
+
}
|
|
314
|
+
function LoadingSpinnerIconComponent(_ref13) {
|
|
315
|
+
var createElement = _ref13.createElement,
|
|
316
|
+
_ref13$width = _ref13.width,
|
|
317
|
+
width = _ref13$width === void 0 ? 24 : _ref13$width,
|
|
318
|
+
_ref13$height = _ref13.height,
|
|
319
|
+
height = _ref13$height === void 0 ? 24 : _ref13$height;
|
|
320
|
+
return createElement("svg", {
|
|
321
|
+
viewBox: "12 12 24 24",
|
|
322
|
+
width: width,
|
|
323
|
+
height: height,
|
|
324
|
+
role: "status",
|
|
325
|
+
"aria-busy": "true",
|
|
326
|
+
"aria-live": "polite"
|
|
327
|
+
}, createElement("title", null, "Loading spinner"), createElement("circle", {
|
|
328
|
+
cx: "24",
|
|
329
|
+
cy: "24",
|
|
330
|
+
r: "11",
|
|
331
|
+
fill: "none",
|
|
332
|
+
strokeWidth: "2",
|
|
333
|
+
stroke: "currentColor"
|
|
334
|
+
}));
|
|
335
|
+
}
|
|
336
|
+
function ChevronLeftIconComponent(_ref14) {
|
|
337
|
+
var createElement = _ref14.createElement,
|
|
338
|
+
_ref14$width = _ref14.width,
|
|
339
|
+
width = _ref14$width === void 0 ? 16 : _ref14$width,
|
|
340
|
+
_ref14$height = _ref14.height,
|
|
341
|
+
height = _ref14$height === void 0 ? 16 : _ref14$height;
|
|
342
|
+
return createElement("svg", {
|
|
343
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
344
|
+
width: width,
|
|
345
|
+
height: height,
|
|
346
|
+
viewBox: "0 0 24 24",
|
|
347
|
+
fill: "none",
|
|
348
|
+
stroke: "currentColor",
|
|
349
|
+
strokeWidth: "2",
|
|
350
|
+
strokeLinecap: "round",
|
|
351
|
+
strokeLinejoin: "round"
|
|
352
|
+
}, createElement("path", {
|
|
353
|
+
d: "m15 18-6-6 6-6"
|
|
354
|
+
}));
|
|
355
|
+
}
|
|
356
|
+
function ChevronRightIconComponent(_ref15) {
|
|
357
|
+
var createElement = _ref15.createElement,
|
|
358
|
+
_ref15$width = _ref15.width,
|
|
359
|
+
width = _ref15$width === void 0 ? 16 : _ref15$width,
|
|
360
|
+
_ref15$height = _ref15.height,
|
|
361
|
+
height = _ref15$height === void 0 ? 16 : _ref15$height;
|
|
362
|
+
return createElement("svg", {
|
|
363
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
364
|
+
width: width,
|
|
365
|
+
height: height,
|
|
366
|
+
viewBox: "0 0 24 24",
|
|
367
|
+
fill: "none",
|
|
368
|
+
stroke: "currentColor",
|
|
369
|
+
strokeWidth: "2",
|
|
370
|
+
strokeLinecap: "round",
|
|
371
|
+
strokeLinejoin: "round"
|
|
372
|
+
}, createElement("path", {
|
|
373
|
+
d: "m9 18 6-6-6-6"
|
|
374
|
+
}));
|
|
375
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _autocomplete = require("./autocomplete");
|
|
7
|
+
Object.keys(_autocomplete).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _autocomplete[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _autocomplete[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _Button = require("./Button");
|
|
18
|
+
Object.keys(_Button).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _Button[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _Button[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
6
28
|
var _Carousel = require("./Carousel");
|
|
7
29
|
Object.keys(_Carousel).forEach(function (key) {
|
|
8
30
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -14,6 +36,116 @@ Object.keys(_Carousel).forEach(function (key) {
|
|
|
14
36
|
}
|
|
15
37
|
});
|
|
16
38
|
});
|
|
39
|
+
var _Chat = require("./chat/Chat");
|
|
40
|
+
Object.keys(_Chat).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _Chat[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _Chat[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _ChatHeader = require("./chat/ChatHeader");
|
|
51
|
+
Object.keys(_ChatHeader).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _ChatHeader[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _ChatHeader[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
var _ChatMessage = require("./chat/ChatMessage");
|
|
62
|
+
Object.keys(_ChatMessage).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _ChatMessage[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function get() {
|
|
68
|
+
return _ChatMessage[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var _ChatMessages = require("./chat/ChatMessages");
|
|
73
|
+
Object.keys(_ChatMessages).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _ChatMessages[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _ChatMessages[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
var _ChatMessageLoader = require("./chat/ChatMessageLoader");
|
|
84
|
+
Object.keys(_ChatMessageLoader).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _ChatMessageLoader[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _ChatMessageLoader[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
var _ChatMessageError = require("./chat/ChatMessageError");
|
|
95
|
+
Object.keys(_ChatMessageError).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (key in exports && exports[key] === _ChatMessageError[key]) return;
|
|
98
|
+
Object.defineProperty(exports, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return _ChatMessageError[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
var _ChatPrompt = require("./chat/ChatPrompt");
|
|
106
|
+
Object.keys(_ChatPrompt).forEach(function (key) {
|
|
107
|
+
if (key === "default" || key === "__esModule") return;
|
|
108
|
+
if (key in exports && exports[key] === _ChatPrompt[key]) return;
|
|
109
|
+
Object.defineProperty(exports, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function get() {
|
|
112
|
+
return _ChatPrompt[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
var _ChatToggleButton = require("./chat/ChatToggleButton");
|
|
117
|
+
Object.keys(_ChatToggleButton).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
if (key in exports && exports[key] === _ChatToggleButton[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _ChatToggleButton[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
var _icons = require("./chat/icons");
|
|
128
|
+
Object.keys(_icons).forEach(function (key) {
|
|
129
|
+
if (key === "default" || key === "__esModule") return;
|
|
130
|
+
if (key in exports && exports[key] === _icons[key]) return;
|
|
131
|
+
Object.defineProperty(exports, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function get() {
|
|
134
|
+
return _icons[key];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
var _types = require("./chat/types");
|
|
139
|
+
Object.keys(_types).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function get() {
|
|
145
|
+
return _types[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
17
149
|
var _FrequentlyBoughtTogether = require("./FrequentlyBoughtTogether");
|
|
18
150
|
Object.keys(_FrequentlyBoughtTogether).forEach(function (key) {
|
|
19
151
|
if (key === "default" || key === "__esModule") return;
|
package/dist/cjs/lib/index.js
CHANGED
|
@@ -13,4 +13,26 @@ Object.keys(_cx).forEach(function (key) {
|
|
|
13
13
|
return _cx[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
+
});
|
|
17
|
+
var _stickToBottom = require("./stickToBottom");
|
|
18
|
+
Object.keys(_stickToBottom).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _stickToBottom[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _stickToBottom[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _utils = require("./utils");
|
|
29
|
+
Object.keys(_utils).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _utils[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _utils[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
16
38
|
});
|