instantsearch-ui-components 0.11.2 → 0.13.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 +44 -0
- package/dist/cjs/components/autocomplete/AutocompletePanel.js +25 -0
- package/dist/cjs/components/autocomplete/AutocompleteSearch.js +70 -0
- package/dist/cjs/components/autocomplete/AutocompleteSuggestion.js +20 -0
- package/dist/cjs/components/autocomplete/createAutocompletePropGetters.js +222 -0
- package/dist/cjs/components/autocomplete/icons.js +56 -0
- package/dist/cjs/components/autocomplete/index.js +71 -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 +38 -0
- package/dist/es/components/autocomplete/AutocompleteIndex.js +37 -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/AutocompleteSearch.d.ts +8 -0
- package/dist/es/components/autocomplete/AutocompleteSearch.js +63 -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/createAutocompletePropGetters.d.ts +49 -0
- package/dist/es/components/autocomplete/createAutocompletePropGetters.js +215 -0
- package/dist/es/components/autocomplete/icons.d.ts +7 -0
- package/dist/es/components/autocomplete/icons.js +48 -0
- package/dist/es/components/autocomplete/index.d.ts +6 -0
- package/dist/es/components/autocomplete/index.js +6 -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,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.createChatPromptComponent = createChatPromptComponent;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _lib = require("../../lib");
|
|
12
|
+
var _Button = require("../Button");
|
|
13
|
+
var _icons = require("./icons");
|
|
14
|
+
var _excluded = ["classNames", "headerComponent", "footerComponent", "value", "placeholder", "status", "disabled", "maxRows", "autoFocus", "translations", "onInput", "onSubmit", "onKeyDown", "onStop", "promptRef"];
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function createChatPromptComponent(_ref) {
|
|
18
|
+
var createElement = _ref.createElement;
|
|
19
|
+
var Button = (0, _Button.createButtonComponent)({
|
|
20
|
+
createElement: createElement
|
|
21
|
+
});
|
|
22
|
+
var textAreaElement = null;
|
|
23
|
+
var lineHeight = 0;
|
|
24
|
+
var padding = 0;
|
|
25
|
+
var adjustHeight = function adjustHeight() {
|
|
26
|
+
if (!textAreaElement) return;
|
|
27
|
+
textAreaElement.style.height = 'auto';
|
|
28
|
+
var fullHeight = textAreaElement.scrollHeight;
|
|
29
|
+
if (textAreaElement.getAttribute('data-max-rows')) {
|
|
30
|
+
var maxRows = parseInt(textAreaElement.getAttribute('data-max-rows') || '0', 10);
|
|
31
|
+
if (maxRows > 0) {
|
|
32
|
+
var maxHeight = maxRows * lineHeight + padding;
|
|
33
|
+
textAreaElement.style.overflowY = fullHeight > maxHeight ? 'auto' : 'hidden';
|
|
34
|
+
textAreaElement.style.height = "".concat(Math.min(fullHeight, maxHeight), "px");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
textAreaElement.style.overflowY = 'hidden';
|
|
39
|
+
textAreaElement.style.height = "".concat(fullHeight, "px");
|
|
40
|
+
};
|
|
41
|
+
var setTextAreaRef = function setTextAreaRef(element, promptRef) {
|
|
42
|
+
textAreaElement = element;
|
|
43
|
+
if (promptRef) {
|
|
44
|
+
promptRef.current = element;
|
|
45
|
+
}
|
|
46
|
+
if (element) {
|
|
47
|
+
var styles = getComputedStyle(element);
|
|
48
|
+
lineHeight = parseFloat(styles.lineHeight);
|
|
49
|
+
var pt = parseFloat(styles.paddingTop);
|
|
50
|
+
var pb = parseFloat(styles.paddingBottom);
|
|
51
|
+
padding = pt + pb;
|
|
52
|
+
adjustHeight();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
return function ChatPrompt(userProps) {
|
|
56
|
+
var _userProps$classNames = userProps.classNames,
|
|
57
|
+
classNames = _userProps$classNames === void 0 ? {} : _userProps$classNames,
|
|
58
|
+
HeaderComponent = userProps.headerComponent,
|
|
59
|
+
FooterComponent = userProps.footerComponent,
|
|
60
|
+
value = userProps.value,
|
|
61
|
+
placeholder = userProps.placeholder,
|
|
62
|
+
_userProps$status = userProps.status,
|
|
63
|
+
status = _userProps$status === void 0 ? 'ready' : _userProps$status,
|
|
64
|
+
_userProps$disabled = userProps.disabled,
|
|
65
|
+
disabled = _userProps$disabled === void 0 ? false : _userProps$disabled,
|
|
66
|
+
_userProps$maxRows = userProps.maxRows,
|
|
67
|
+
maxRows = _userProps$maxRows === void 0 ? 5 : _userProps$maxRows,
|
|
68
|
+
_userProps$autoFocus = userProps.autoFocus,
|
|
69
|
+
autoFocus = _userProps$autoFocus === void 0 ? true : _userProps$autoFocus,
|
|
70
|
+
userTranslations = userProps.translations,
|
|
71
|
+
_onInput = userProps.onInput,
|
|
72
|
+
_onSubmit = userProps.onSubmit,
|
|
73
|
+
_onKeyDown = userProps.onKeyDown,
|
|
74
|
+
onStop = userProps.onStop,
|
|
75
|
+
promptRef = userProps.promptRef,
|
|
76
|
+
props = (0, _objectWithoutProperties2.default)(userProps, _excluded);
|
|
77
|
+
var translations = _objectSpread({
|
|
78
|
+
textareaLabel: 'Type your message...',
|
|
79
|
+
textareaPlaceholder: 'Type your message...',
|
|
80
|
+
emptyMessageTooltip: 'Message is empty',
|
|
81
|
+
stopResponseTooltip: 'Stop response',
|
|
82
|
+
sendMessageTooltip: 'Send message',
|
|
83
|
+
disclaimer: 'AI can make mistakes. Verify responses.'
|
|
84
|
+
}, userTranslations);
|
|
85
|
+
var cssClasses = {
|
|
86
|
+
root: (0, _lib.cx)('ais-ChatPrompt', classNames.root),
|
|
87
|
+
header: (0, _lib.cx)('ais-ChatPrompt-header', classNames.header),
|
|
88
|
+
body: (0, _lib.cx)('ais-ChatPrompt-body', classNames.body),
|
|
89
|
+
textarea: (0, _lib.cx)('ais-ChatPrompt-textarea ais-Scrollbar', disabled && 'ais-ChatPrompt-textarea--disabled', classNames.textarea),
|
|
90
|
+
actions: (0, _lib.cx)('ais-ChatPrompt-actions', classNames.actions, disabled && 'ais-ChatPrompt-actions--disabled'),
|
|
91
|
+
submit: (0, _lib.cx)('ais-ChatPrompt-submit', classNames.submit),
|
|
92
|
+
footer: (0, _lib.cx)('ais-ChatPrompt-footer', classNames.footer)
|
|
93
|
+
};
|
|
94
|
+
var hasValue = typeof value === 'string' ? value.trim() !== '' : Boolean(value);
|
|
95
|
+
var canStop = status === 'submitted' || status === 'streaming';
|
|
96
|
+
var buttonDisabled = !hasValue && !canStop || disabled;
|
|
97
|
+
var submitIcon = canStop ? createElement(_icons.StopIconComponent, {
|
|
98
|
+
createElement: createElement
|
|
99
|
+
}) : createElement(_icons.ArrowUpIconComponent, {
|
|
100
|
+
createElement: createElement
|
|
101
|
+
});
|
|
102
|
+
return createElement("form", {
|
|
103
|
+
className: (0, _lib.cx)(cssClasses.root, props.className),
|
|
104
|
+
onSubmit: function onSubmit(event) {
|
|
105
|
+
event.preventDefault();
|
|
106
|
+
if (canStop) {
|
|
107
|
+
onStop === null || onStop === void 0 ? void 0 : onStop();
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (!hasValue) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
_onSubmit === null || _onSubmit === void 0 ? void 0 : _onSubmit(event);
|
|
114
|
+
}
|
|
115
|
+
}, HeaderComponent && createElement("div", {
|
|
116
|
+
className: (0, _lib.cx)(cssClasses.header)
|
|
117
|
+
}, createElement(HeaderComponent, null)), createElement("div", {
|
|
118
|
+
className: (0, _lib.cx)(cssClasses.body),
|
|
119
|
+
onClick: function onClick(e) {
|
|
120
|
+
var _textAreaElement;
|
|
121
|
+
if (e.target === textAreaElement) return;
|
|
122
|
+
(_textAreaElement = textAreaElement) === null || _textAreaElement === void 0 ? void 0 : _textAreaElement.focus();
|
|
123
|
+
}
|
|
124
|
+
}, createElement("textarea", (0, _extends2.default)({}, props, {
|
|
125
|
+
ref: function ref(element) {
|
|
126
|
+
return setTextAreaRef(element, promptRef);
|
|
127
|
+
},
|
|
128
|
+
"data-max-rows": maxRows,
|
|
129
|
+
className: (0, _lib.cx)(cssClasses.textarea),
|
|
130
|
+
value: value,
|
|
131
|
+
placeholder: placeholder || translations.textareaPlaceholder,
|
|
132
|
+
"aria-label": translations.textareaLabel,
|
|
133
|
+
disabled: disabled,
|
|
134
|
+
autoFocus: autoFocus,
|
|
135
|
+
onInput: function onInput(event) {
|
|
136
|
+
adjustHeight();
|
|
137
|
+
_onInput === null || _onInput === void 0 ? void 0 : _onInput(event);
|
|
138
|
+
},
|
|
139
|
+
onKeyDown: function onKeyDown(event) {
|
|
140
|
+
_onKeyDown === null || _onKeyDown === void 0 ? void 0 : _onKeyDown(event);
|
|
141
|
+
if (event.key === 'Enter' && !event.shiftKey) {
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
if (canStop) {
|
|
144
|
+
onStop === null || onStop === void 0 ? void 0 : onStop();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (!hasValue) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
_onSubmit === null || _onSubmit === void 0 ? void 0 : _onSubmit(event);
|
|
151
|
+
}
|
|
152
|
+
if (event.key === 'Escape') {
|
|
153
|
+
if (event.currentTarget && event.currentTarget.blur) {
|
|
154
|
+
event.currentTarget.blur();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
})), createElement("div", {
|
|
159
|
+
className: (0, _lib.cx)(cssClasses.actions)
|
|
160
|
+
}, createElement(Button, {
|
|
161
|
+
type: "submit",
|
|
162
|
+
variant: "primary",
|
|
163
|
+
size: "sm",
|
|
164
|
+
iconOnly: true,
|
|
165
|
+
className: (0, _lib.cx)(cssClasses.submit),
|
|
166
|
+
disabled: buttonDisabled,
|
|
167
|
+
"aria-label": function () {
|
|
168
|
+
if (buttonDisabled) return translations.emptyMessageTooltip;
|
|
169
|
+
if (canStop) return translations.stopResponseTooltip;
|
|
170
|
+
return translations.sendMessageTooltip;
|
|
171
|
+
}(),
|
|
172
|
+
"data-status": status
|
|
173
|
+
}, submitIcon))), createElement("div", {
|
|
174
|
+
className: (0, _lib.cx)(cssClasses.footer)
|
|
175
|
+
}, FooterComponent ? createElement(FooterComponent, null) : createElement("div", {
|
|
176
|
+
className: "ais-ChatPrompt-disclaimer"
|
|
177
|
+
}, translations.disclaimer)));
|
|
178
|
+
};
|
|
179
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.createChatToggleButtonComponent = createChatToggleButtonComponent;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _cx = require("../../lib/cx");
|
|
11
|
+
var _Button = require("../Button");
|
|
12
|
+
var _icons = require("./icons");
|
|
13
|
+
var _excluded = ["open", "onClick", "toggleIconComponent", "classNames", "className"];
|
|
14
|
+
function createChatToggleButtonComponent(_ref) {
|
|
15
|
+
var createElement = _ref.createElement;
|
|
16
|
+
var Button = (0, _Button.createButtonComponent)({
|
|
17
|
+
createElement: createElement
|
|
18
|
+
});
|
|
19
|
+
return function ChatToggleButton(_ref2) {
|
|
20
|
+
var open = _ref2.open,
|
|
21
|
+
onClick = _ref2.onClick,
|
|
22
|
+
ToggleIconComponent = _ref2.toggleIconComponent,
|
|
23
|
+
_ref2$classNames = _ref2.classNames,
|
|
24
|
+
classNames = _ref2$classNames === void 0 ? {} : _ref2$classNames,
|
|
25
|
+
className = _ref2.className,
|
|
26
|
+
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
27
|
+
var defaultIcon = open ? createElement(_icons.ChevronUpIconComponent, {
|
|
28
|
+
createElement: createElement,
|
|
29
|
+
width: 28,
|
|
30
|
+
height: 28
|
|
31
|
+
}) : createElement(_icons.SparklesIconComponent, {
|
|
32
|
+
createElement: createElement,
|
|
33
|
+
width: 28,
|
|
34
|
+
height: 28
|
|
35
|
+
});
|
|
36
|
+
return createElement(Button, (0, _extends2.default)({
|
|
37
|
+
variant: "primary",
|
|
38
|
+
size: "md",
|
|
39
|
+
iconOnly: true,
|
|
40
|
+
className: (0, _cx.cx)('ais-ChatToggleButton', open && 'ais-ChatToggleButton--open', classNames.root, className),
|
|
41
|
+
onClick: onClick
|
|
42
|
+
}, props), ToggleIconComponent ? createElement(ToggleIconComponent, {
|
|
43
|
+
isOpen: open
|
|
44
|
+
}) : defaultIcon);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -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(_ref0) {
|
|
232
|
+
var createElement = _ref0.createElement,
|
|
233
|
+
_ref0$width = _ref0.width,
|
|
234
|
+
width = _ref0$width === void 0 ? 16 : _ref0$width,
|
|
235
|
+
_ref0$height = _ref0.height,
|
|
236
|
+
height = _ref0$height === void 0 ? 16 : _ref0$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(_ref1) {
|
|
258
|
+
var createElement = _ref1.createElement,
|
|
259
|
+
_ref1$width = _ref1.width,
|
|
260
|
+
width = _ref1$width === void 0 ? 16 : _ref1$width,
|
|
261
|
+
_ref1$height = _ref1.height,
|
|
262
|
+
height = _ref1$height === void 0 ? 16 : _ref1$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(_ref10) {
|
|
285
|
+
var createElement = _ref10.createElement,
|
|
286
|
+
_ref10$width = _ref10.width,
|
|
287
|
+
width = _ref10$width === void 0 ? 16 : _ref10$width,
|
|
288
|
+
_ref10$height = _ref10.height,
|
|
289
|
+
height = _ref10$height === void 0 ? 16 : _ref10$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(_ref11) {
|
|
315
|
+
var createElement = _ref11.createElement,
|
|
316
|
+
_ref11$width = _ref11.width,
|
|
317
|
+
width = _ref11$width === void 0 ? 24 : _ref11$width,
|
|
318
|
+
_ref11$height = _ref11.height,
|
|
319
|
+
height = _ref11$height === void 0 ? 24 : _ref11$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(_ref12) {
|
|
337
|
+
var createElement = _ref12.createElement,
|
|
338
|
+
_ref12$width = _ref12.width,
|
|
339
|
+
width = _ref12$width === void 0 ? 16 : _ref12$width,
|
|
340
|
+
_ref12$height = _ref12.height,
|
|
341
|
+
height = _ref12$height === void 0 ? 16 : _ref12$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(_ref13) {
|
|
357
|
+
var createElement = _ref13.createElement,
|
|
358
|
+
_ref13$width = _ref13.width,
|
|
359
|
+
width = _ref13$width === void 0 ? 16 : _ref13$width,
|
|
360
|
+
_ref13$height = _ref13.height,
|
|
361
|
+
height = _ref13$height === void 0 ? 16 : _ref13$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";
|