instantsearch-ui-components 0.15.0 → 0.15.1

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 (41) 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 +2 -2
  5. package/dist/cjs/components/autocomplete/AutocompleteSearch.js +3 -4
  6. package/dist/cjs/components/autocomplete/AutocompleteSuggestion.js +1 -1
  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/ChatHeader.js +10 -12
  10. package/dist/cjs/components/chat/ChatMessage.js +1 -1
  11. package/dist/cjs/components/chat/ChatMessageError.js +1 -1
  12. package/dist/cjs/components/chat/ChatMessageLoader.js +1 -1
  13. package/dist/cjs/components/chat/ChatMessages.js +3 -3
  14. package/dist/cjs/components/chat/ChatPrompt.js +2 -2
  15. package/dist/cjs/components/chat/ChatToggleButton.js +6 -10
  16. package/dist/cjs/components/chat/icons.js +45 -149
  17. package/dist/cjs/version.js +1 -1
  18. package/dist/es/components/Carousel.js +4 -4
  19. package/dist/es/components/autocomplete/AutocompleteIndex.js +1 -1
  20. package/dist/es/components/autocomplete/AutocompletePanel.js +9 -2
  21. package/dist/es/components/autocomplete/AutocompleteRecentSearch.js +3 -3
  22. package/dist/es/components/autocomplete/AutocompleteSearch.js +4 -5
  23. package/dist/es/components/autocomplete/AutocompleteSuggestion.js +2 -2
  24. package/dist/es/components/autocomplete/createAutocompletePropGetters.d.ts +2 -1
  25. package/dist/es/components/autocomplete/createAutocompletePropGetters.js +3 -1
  26. package/dist/es/components/autocomplete/icons.d.ts +5 -5
  27. package/dist/es/components/autocomplete/icons.js +6 -12
  28. package/dist/es/components/chat/ChatHeader.d.ts +1 -1
  29. package/dist/es/components/chat/ChatHeader.js +11 -13
  30. package/dist/es/components/chat/ChatMessage.js +2 -2
  31. package/dist/es/components/chat/ChatMessageError.js +2 -2
  32. package/dist/es/components/chat/ChatMessageLoader.js +2 -2
  33. package/dist/es/components/chat/ChatMessages.js +4 -4
  34. package/dist/es/components/chat/ChatPrompt.js +3 -3
  35. package/dist/es/components/chat/ChatToggleButton.d.ts +1 -1
  36. package/dist/es/components/chat/ChatToggleButton.js +7 -11
  37. package/dist/es/components/chat/icons.d.ts +16 -19
  38. package/dist/es/components/chat/icons.js +30 -134
  39. package/dist/es/version.d.ts +1 -1
  40. package/dist/es/version.js +1 -1
  41. package/package.json +2 -2
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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) { _defineProperty(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; }
7
7
  import { cx } from "../../lib/index.js";
8
8
  import { createButtonComponent } from "../Button.js";
9
- import { SparklesIconComponent, MaximizeIconComponent as MaximizeIconComponentDefault, MinimizeIconComponent as MinimizeIconComponentDefault, CloseIconComponent as CloseIconComponentDefault } from "./icons.js";
9
+ import { SparklesIcon, MaximizeIcon as MaximizeIconDefault, MinimizeIcon as MinimizeIconDefault, CloseIcon as CloseIconDefault } from "./icons.js";
10
10
  export function createChatHeaderComponent(_ref) {
11
11
  var createElement = _ref.createElement;
12
12
  var Button = createButtonComponent({
@@ -20,10 +20,10 @@ export function createChatHeaderComponent(_ref) {
20
20
  onClear = _ref2.onClear,
21
21
  _ref2$canClear = _ref2.canClear,
22
22
  canClear = _ref2$canClear === void 0 ? false : _ref2$canClear,
23
- CloseIconComponent = _ref2.closeIconComponent,
24
- MinimizeIconComponent = _ref2.minimizeIconComponent,
25
- MaximizeIconComponent = _ref2.maximizeIconComponent,
26
- TitleIconComponent = _ref2.titleIconComponent,
23
+ CloseIcon = _ref2.closeIconComponent,
24
+ MinimizeIcon = _ref2.minimizeIconComponent,
25
+ MaximizeIcon = _ref2.maximizeIconComponent,
26
+ TitleIcon = _ref2.titleIconComponent,
27
27
  _ref2$classNames = _ref2.classNames,
28
28
  classNames = _ref2$classNames === void 0 ? {} : _ref2$classNames,
29
29
  userTranslations = _ref2.translations,
@@ -35,9 +35,9 @@ export function createChatHeaderComponent(_ref) {
35
35
  closeLabel: 'Close chat',
36
36
  clearLabel: 'Clear'
37
37
  }, userTranslations);
38
- var defaultMaximizeIcon = maximized ? createElement(MinimizeIconComponentDefault, {
38
+ var defaultMaximizeIcon = maximized ? createElement(MinimizeIconDefault, {
39
39
  createElement: createElement
40
- }) : createElement(MaximizeIconComponentDefault, {
40
+ }) : createElement(MaximizeIconDefault, {
41
41
  createElement: createElement
42
42
  });
43
43
  return createElement("div", _extends({
@@ -46,10 +46,8 @@ export function createChatHeaderComponent(_ref) {
46
46
  className: cx('ais-ChatHeader-title', classNames.title)
47
47
  }, createElement("span", {
48
48
  className: cx('ais-ChatHeader-titleIcon', classNames.titleIcon)
49
- }, TitleIconComponent ? createElement(TitleIconComponent, null) : createElement(SparklesIconComponent, {
50
- createElement: createElement,
51
- width: 20,
52
- height: 20
49
+ }, TitleIcon ? createElement(TitleIcon, null) : createElement(SparklesIcon, {
50
+ createElement: createElement
53
51
  })), translations.title), createElement("div", {
54
52
  className: cx('ais-ChatHeader-actions')
55
53
  }, onClear && createElement(Button, {
@@ -65,7 +63,7 @@ export function createChatHeaderComponent(_ref) {
65
63
  className: cx('ais-ChatHeader-maximize', classNames.maximize),
66
64
  onClick: onToggleMaximize,
67
65
  "aria-label": maximized ? translations.minimizeLabel : translations.maximizeLabel
68
- }, MaximizeIconComponent ? createElement(MaximizeIconComponent, {
66
+ }, MaximizeIcon ? createElement(MaximizeIcon, {
69
67
  maximized: maximized
70
68
  }) : defaultMaximizeIcon), createElement(Button, {
71
69
  variant: "ghost",
@@ -75,7 +73,7 @@ export function createChatHeaderComponent(_ref) {
75
73
  onClick: onClose,
76
74
  "aria-label": translations.closeLabel,
77
75
  title: translations.closeLabel
78
- }, CloseIconComponent ? createElement(CloseIconComponent, null) : createElement(CloseIconComponentDefault, {
76
+ }, CloseIcon ? createElement(CloseIcon, null) : createElement(CloseIconDefault, {
79
77
  createElement: createElement
80
78
  }))));
81
79
  };
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { compiler } from 'markdown-to-jsx';
8
8
  import { cx, startsWith } from "../../lib/index.js";
9
9
  import { createButtonComponent } from "../Button.js";
10
- import { MenuIconComponent } from "./icons.js";
10
+ import { MenuIcon } from "./icons.js";
11
11
  export function createChatMessageComponent(_ref) {
12
12
  var createElement = _ref.createElement;
13
13
  var Button = createButtonComponent({
@@ -124,7 +124,7 @@ export function createChatMessageComponent(_ref) {
124
124
  var _action$onClick;
125
125
  return (_action$onClick = action.onClick) === null || _action$onClick === void 0 ? void 0 : _action$onClick.call(action, message);
126
126
  }
127
- }, action.icon ? createElement(action.icon, null) : createElement(MenuIconComponent, {
127
+ }, action.icon ? createElement(action.icon, null) : createElement(MenuIcon, {
128
128
  createElement: createElement
129
129
  }));
130
130
  })), FooterComponent && createElement("div", {
@@ -5,7 +5,7 @@ var _excluded = ["onReload", "actions", "translations"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
7
  import { createButtonComponent } from "../Button.js";
8
- import { ReloadIconComponent } from "./icons.js";
8
+ import { ReloadIcon } from "./icons.js";
9
9
  export function createChatMessageErrorComponent(_ref) {
10
10
  var createElement = _ref.createElement;
11
11
  var Button = createButtonComponent({
@@ -43,7 +43,7 @@ export function createChatMessageErrorComponent(_ref) {
43
43
  onClick: function onClick() {
44
44
  return onReload === null || onReload === void 0 ? void 0 : onReload();
45
45
  }
46
- }, createElement(ReloadIconComponent, {
46
+ }, createElement(ReloadIcon, {
47
47
  createElement: createElement
48
48
  }), translations.retryText)))));
49
49
  };
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
4
4
  var _excluded = ["translations"];
5
5
  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; }
6
6
  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) { _defineProperty(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; }
7
- import { LoadingSpinnerIconComponent } from "./icons.js";
7
+ import { LoadingSpinnerIcon } from "./icons.js";
8
8
  export function createChatMessageLoaderComponent(_ref) {
9
9
  var createElement = _ref.createElement;
10
10
  return function ChatMessageLoader(_ref2) {
@@ -21,7 +21,7 @@ export function createChatMessageLoaderComponent(_ref) {
21
21
  className: "ais-ChatMessage-leading"
22
22
  }, createElement("div", {
23
23
  className: "ais-ChatMessageLoader-spinner"
24
- }, createElement(LoadingSpinnerIconComponent, {
24
+ }, createElement(LoadingSpinnerIcon, {
25
25
  createElement: createElement
26
26
  }))), createElement("div", {
27
27
  className: "ais-ChatMessage-content"
@@ -10,7 +10,7 @@ import { createButtonComponent } from "../Button.js";
10
10
  import { createChatMessageComponent } from "./ChatMessage.js";
11
11
  import { createChatMessageErrorComponent } from "./ChatMessageError.js";
12
12
  import { createChatMessageLoaderComponent } from "./ChatMessageLoader.js";
13
- import { ChevronDownIconComponent, CopyIconComponent, ReloadIconComponent } from "./icons.js";
13
+ import { ChevronDownIcon, CopyIcon, ReloadIcon } from "./icons.js";
14
14
  var getTextContent = function getTextContent(message) {
15
15
  return message.parts.map(function (part) {
16
16
  return 'text' in part ? part.text : '';
@@ -45,7 +45,7 @@ function createDefaultMessageComponent(_ref) {
45
45
  var defaultAssistantActions = [].concat(_toConsumableArray(hasTextContent(message) ? [{
46
46
  title: translations.copyToClipboardLabel,
47
47
  icon: function icon() {
48
- return createElement(CopyIconComponent, {
48
+ return createElement(CopyIcon, {
49
49
  createElement: createElement
50
50
  });
51
51
  },
@@ -53,7 +53,7 @@ function createDefaultMessageComponent(_ref) {
53
53
  }] : []), [{
54
54
  title: translations.regenerateLabel,
55
55
  icon: function icon() {
56
- return createElement(ReloadIconComponent, {
56
+ return createElement(ReloadIcon, {
57
57
  createElement: createElement
58
58
  });
59
59
  },
@@ -187,7 +187,7 @@ export function createChatMessagesComponent(_ref3) {
187
187
  onClick: onScrollToBottom,
188
188
  "aria-label": translations.scrollToBottomLabel,
189
189
  tabIndex: isScrollAtBottom ? -1 : 0
190
- }, createElement(ChevronDownIconComponent, {
190
+ }, createElement(ChevronDownIcon, {
191
191
  createElement: createElement
192
192
  })));
193
193
  };
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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) { _defineProperty(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; }
7
7
  import { cx } from "../../lib/index.js";
8
8
  import { createButtonComponent } from "../Button.js";
9
- import { ArrowUpIconComponent, StopIconComponent } from "./icons.js";
9
+ import { ArrowUpIcon, StopIcon } from "./icons.js";
10
10
  export function createChatPromptComponent(_ref) {
11
11
  var createElement = _ref.createElement;
12
12
  var Button = createButtonComponent({
@@ -87,9 +87,9 @@ export function createChatPromptComponent(_ref) {
87
87
  var hasValue = typeof value === 'string' ? value.trim() !== '' : Boolean(value);
88
88
  var canStop = status === 'submitted' || status === 'streaming';
89
89
  var buttonDisabled = !hasValue && !canStop || disabled;
90
- var submitIcon = canStop ? createElement(StopIconComponent, {
90
+ var submitIcon = canStop ? createElement(StopIcon, {
91
91
  createElement: createElement
92
- }) : createElement(ArrowUpIconComponent, {
92
+ }) : createElement(ArrowUpIcon, {
93
93
  createElement: createElement
94
94
  });
95
95
  return createElement("form", {
@@ -26,4 +26,4 @@ export type ChatToggleButtonOwnProps = {
26
26
  classNames?: Partial<ChatToggleButtonClassNames>;
27
27
  };
28
28
  export type ChatToggleButtonProps = ComponentProps<'button'> & ChatToggleButtonOwnProps;
29
- export declare function createChatToggleButtonComponent({ createElement }: Renderer): ({ open, onClick, toggleIconComponent: ToggleIconComponent, classNames, className, ...props }: ChatToggleButtonProps) => JSX.Element;
29
+ export declare function createChatToggleButtonComponent({ createElement }: Renderer): ({ open, onClick, toggleIconComponent: ToggleIcon, classNames, className, ...props }: ChatToggleButtonProps) => JSX.Element;
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["open", "onClick", "toggleIconComponent", "classNames", "className"];
4
4
  import { cx } from "../../lib/cx.js";
5
5
  import { createButtonComponent } from "../Button.js";
6
- import { SparklesIconComponent, ChevronUpIconComponent } from "./icons.js";
6
+ import { SparklesIcon, ChevronUpIcon } from "./icons.js";
7
7
  export function createChatToggleButtonComponent(_ref) {
8
8
  var createElement = _ref.createElement;
9
9
  var Button = createButtonComponent({
@@ -12,19 +12,15 @@ export function createChatToggleButtonComponent(_ref) {
12
12
  return function ChatToggleButton(_ref2) {
13
13
  var open = _ref2.open,
14
14
  onClick = _ref2.onClick,
15
- ToggleIconComponent = _ref2.toggleIconComponent,
15
+ ToggleIcon = _ref2.toggleIconComponent,
16
16
  _ref2$classNames = _ref2.classNames,
17
17
  classNames = _ref2$classNames === void 0 ? {} : _ref2$classNames,
18
18
  className = _ref2.className,
19
19
  props = _objectWithoutProperties(_ref2, _excluded);
20
- var defaultIcon = open ? createElement(ChevronUpIconComponent, {
21
- createElement: createElement,
22
- width: 28,
23
- height: 28
24
- }) : createElement(SparklesIconComponent, {
25
- createElement: createElement,
26
- width: 28,
27
- height: 28
20
+ var defaultIcon = open ? createElement(ChevronUpIcon, {
21
+ createElement: createElement
22
+ }) : createElement(SparklesIcon, {
23
+ createElement: createElement
28
24
  });
29
25
  return createElement(Button, _extends({
30
26
  variant: "primary",
@@ -32,7 +28,7 @@ export function createChatToggleButtonComponent(_ref) {
32
28
  iconOnly: true,
33
29
  className: cx('ais-ChatToggleButton', open && 'ais-ChatToggleButton--open', classNames.root, className),
34
30
  onClick: onClick
35
- }, props), ToggleIconComponent ? createElement(ToggleIconComponent, {
31
+ }, props), ToggleIcon ? createElement(ToggleIcon, {
36
32
  isOpen: open
37
33
  }) : defaultIcon);
38
34
  };
@@ -1,22 +1,19 @@
1
1
  /** @jsx createElement */
2
2
  import type { Renderer } from '../../types';
3
- type IconProps = Pick<Renderer, 'createElement'> & {
4
- width?: number;
5
- height?: number;
6
- };
7
- export declare function SparklesIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
8
- export declare function ArrowUpIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
9
- export declare function ArrowRightIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
10
- export declare function ChevronUpIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
11
- export declare function ChevronDownIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
12
- export declare function CloseIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
13
- export declare function MaximizeIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
14
- export declare function MinimizeIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
15
- export declare function StopIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
16
- export declare function ReloadIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
17
- export declare function CopyIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
18
- export declare function MenuIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
19
- export declare function LoadingSpinnerIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
20
- export declare function ChevronLeftIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
21
- export declare function ChevronRightIconComponent({ createElement, width, height, }: IconProps): JSX.Element;
3
+ type IconProps = Pick<Renderer, 'createElement'>;
4
+ export declare function SparklesIcon({ createElement }: IconProps): JSX.Element;
5
+ export declare function ArrowUpIcon({ createElement }: IconProps): JSX.Element;
6
+ export declare function ArrowRightIcon({ createElement }: IconProps): JSX.Element;
7
+ export declare function ChevronUpIcon({ createElement }: IconProps): JSX.Element;
8
+ export declare function ChevronDownIcon({ createElement }: IconProps): JSX.Element;
9
+ export declare function CloseIcon({ createElement }: IconProps): JSX.Element;
10
+ export declare function MaximizeIcon({ createElement }: IconProps): JSX.Element;
11
+ export declare function MinimizeIcon({ createElement }: IconProps): JSX.Element;
12
+ export declare function StopIcon({ createElement }: IconProps): JSX.Element;
13
+ export declare function ReloadIcon({ createElement }: IconProps): JSX.Element;
14
+ export declare function CopyIcon({ createElement }: IconProps): JSX.Element;
15
+ export declare function MenuIcon({ createElement }: IconProps): JSX.Element;
16
+ export declare function LoadingSpinnerIcon({ createElement }: IconProps): JSX.Element;
17
+ export declare function ChevronLeftIcon({ createElement }: IconProps): JSX.Element;
18
+ export declare function ChevronRightIcon({ createElement }: IconProps): JSX.Element;
22
19
  export {};
@@ -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.1";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '0.15.0';
1
+ export default '0.15.1';
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.1",
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": "417c7fb9ebaa31063d7a817466a303ce51558453"
57
57
  }