@synerise/ds-icon-picker 2.0.4 → 2.0.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-icon-picker@2.0.4...@synerise/ds-icon-picker@2.0.5) (2026-09-18)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-icon-picker
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.0.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-icon-picker@2.0.3...@synerise/ds-icon-picker@2.0.4) (2026-09-16)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-icon-picker
@@ -6,9 +6,9 @@ import Dropdown from "@synerise/ds-dropdown";
6
6
  import Icon, { AddM, Close3S } from "@synerise/ds-icon";
7
7
  import Tooltip from "@synerise/ds-tooltip";
8
8
  import { useOnClickOutside } from "@synerise/ds-utils";
9
- import { ClearIcon, Overlay } from "./IconPicker.styles.js";
10
9
  import Overlay$1 from "./components/Overlay/Overlay.js";
11
10
  import { useIconSourceLoader } from "./hooks/useIconSourceLoader.js";
11
+ import { ClearIcon, Overlay } from "./IconPicker.styles.js";
12
12
  import { matchesSearchQuery } from "./utils/matchesSearchQuery.js";
13
13
  const IconPicker = ({
14
14
  button,
@@ -1,5 +1,5 @@
1
- import { CSSProperties, ReactElement, ReactNode } from 'react';
2
1
  import { IconName, IconPrefix } from '@fortawesome/fontawesome-svg-core';
2
+ import { CSSProperties, ReactElement, ReactNode } from 'react';
3
3
  import { PopoverTriggerType } from '@synerise/ds-popover';
4
4
  export type IconMetadata = {
5
5
  name?: string;
@@ -4,9 +4,9 @@ import { FormattedMessage } from "react-intl";
4
4
  import { useTheme } from "@synerise/ds-core";
5
5
  import Icon, { SearchNoResultsM } from "@synerise/ds-icon";
6
6
  import Scrollbar from "@synerise/ds-scrollbar";
7
+ import { useGroupItems } from "../../hooks/useGroupItems.js";
7
8
  import { ITEMS_PER_ROW, ELEMENT_HEIGHT } from "../../IconPicker.const.js";
8
9
  import { OverlayWrapper, NoResults, Content, NoResultIcon, VirtualList } from "../../IconPicker.styles.js";
9
- import { useGroupItems } from "../../hooks/useGroupItems.js";
10
10
  import { createItemData } from "../../utils/createItemData.js";
11
11
  import { RowItem } from "../RowItem.js";
12
12
  const List = ({
@@ -11,7 +11,7 @@ const ListItem = ({
11
11
  const selectIcon = () => {
12
12
  onSelect(element.value, element.metadata ?? {});
13
13
  };
14
- return /* @__PURE__ */ jsx(ListItem$1, { itemsPerRow, children: typeof element.item !== "string" && // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
+ return /* @__PURE__ */ jsx(ListItem$1, { itemsPerRow, children: typeof element.item !== "string" && // biome-ignore lint/suspicious/noExplicitAny: upstream type is not expressible here
15
15
  element.item.type.name === "Avatar" ? /* @__PURE__ */ jsx(IconTrigger, { onMouseUp: selectIcon, "data-testid": `icon-${index}`, children: element.item }) : /* @__PURE__ */ jsx(Tooltip, { title: element.keywords, children: /* @__PURE__ */ jsx(Button, { type: "ghost", mode: "single-icon", onClick: selectIcon, children: /* @__PURE__ */ jsx(IconTrigger, { "data-testid": `icon-${index}`, children: /* @__PURE__ */ jsx("div", { className: "icon-wrapper", children: typeof element.item === "string" ? /* @__PURE__ */ jsx(FontIcon, { children: element.item }) : element.item }) }) }) }) });
16
16
  };
17
17
  export {
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export { default } from './IconPicker';
2
- export type { FilterElement, FilterItem, DataSource, IconMetadata, IconPickerProps, SourceType, FASource, FAValue, DSSource, } from './IconPicker.types';
2
+ export type { DataSource, DSSource, FASource, FAValue, FilterElement, FilterItem, IconMetadata, IconPickerProps, SourceType, } from './IconPicker.types';
@@ -1,4 +1,4 @@
1
- import { Category, DSSource, DataSource, FASource, GroupedFilterElement, SourceType } from '../IconPicker.types';
1
+ import { Category, DataSource, DSSource, FASource, GroupedFilterElement, SourceType } from '../IconPicker.types';
2
2
  export declare const isFASourceType: (data: SourceType) => data is FASource;
3
3
  export declare const isDSSourceType: (data: SourceType) => data is DSSource;
4
4
  export declare const isData: (data: SourceType) => data is DataSource[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-icon-picker",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "IconPicker UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -39,14 +39,14 @@
39
39
  "sideEffects": false,
40
40
  "types": "dist/index.d.ts",
41
41
  "dependencies": {
42
- "@synerise/ds-button": "^2.0.3",
43
- "@synerise/ds-button-group": "^2.0.3",
44
- "@synerise/ds-dropdown": "^2.1.0",
45
- "@synerise/ds-icon": "^2.1.1",
46
- "@synerise/ds-popover": "^2.0.1",
47
- "@synerise/ds-scrollbar": "^2.0.2",
48
- "@synerise/ds-tooltip": "^2.0.3",
49
- "@synerise/ds-utils": "^2.1.0",
42
+ "@synerise/ds-button": "^2.0.4",
43
+ "@synerise/ds-button-group": "^2.0.4",
44
+ "@synerise/ds-dropdown": "^2.1.1",
45
+ "@synerise/ds-icon": "^2.1.2",
46
+ "@synerise/ds-popover": "^2.0.2",
47
+ "@synerise/ds-scrollbar": "^2.0.3",
48
+ "@synerise/ds-tooltip": "^2.0.4",
49
+ "@synerise/ds-utils": "^2.1.1",
50
50
  "memoize-one": "^5.1.1",
51
51
  "react-window": "^1.8.11"
52
52
  },
@@ -62,5 +62,5 @@
62
62
  "styled-components": "^5.3.3",
63
63
  "vitest": "4"
64
64
  },
65
- "gitHead": "71f08fdaba8e7b80731e29a03883dc6a33f2b9db"
65
+ "gitHead": "b1d905617dfb186b5d80966d63ce55bf29df743d"
66
66
  }