@synerise/ds-icon-picker 2.0.12 → 2.1.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-icon-picker@2.0.12...@synerise/ds-icon-picker@2.1.0) (2026-10-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.0.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-icon-picker@2.0.11...@synerise/ds-icon-picker@2.0.12) (2026-10-28)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-icon-picker
|
|
@@ -8,7 +8,7 @@ const List = /* @__PURE__ */ styled.div.withConfig({
|
|
|
8
8
|
const ClearIcon = /* @__PURE__ */ styled(Icon).withConfig({
|
|
9
9
|
displayName: "IconPickerstyles__ClearIcon",
|
|
10
10
|
componentId: "sc-iun0xm-1"
|
|
11
|
-
})(["
|
|
11
|
+
})(["&&&,&&&:hover{color:var(--ds-color-icon-danger-default);}"]);
|
|
12
12
|
const ListItem = /* @__PURE__ */ styled.div.withConfig({
|
|
13
13
|
displayName: "IconPickerstyles__ListItem",
|
|
14
14
|
componentId: "sc-iun0xm-2"
|
|
@@ -24,15 +24,11 @@ const VirtualList = /* @__PURE__ */ styled(FixedSizeList).withConfig({
|
|
|
24
24
|
const Overlay = /* @__PURE__ */ styled.span.withConfig({
|
|
25
25
|
displayName: "IconPickerstyles__Overlay",
|
|
26
26
|
componentId: "sc-iun0xm-5"
|
|
27
|
-
})(["width:250px;background-color:
|
|
28
|
-
theme
|
|
29
|
-
}) => theme.palette.white, ({
|
|
30
|
-
theme
|
|
31
|
-
}) => theme.palette["grey-300"], OverlayWrapper);
|
|
27
|
+
})(["width:250px;background-color:var(--ds-dropdown-bg);position:relative;display:block;border-radius:3px;"]);
|
|
32
28
|
const Title = /* @__PURE__ */ styled.div.withConfig({
|
|
33
29
|
displayName: "IconPickerstyles__Title",
|
|
34
30
|
componentId: "sc-iun0xm-6"
|
|
35
|
-
})(["font-size:10px;line-height:1.6;font-weight:500;text-transform:uppercase;color:
|
|
31
|
+
})(["font-size:10px;line-height:1.6;font-weight:500;text-transform:uppercase;color:var(--ds-divider-header-text-color);padding:0 12px;flex-basis:100%;height:", ";line-height:", ";"], (props) => props.elementSize, (props) => props.elementSize);
|
|
36
32
|
const FontIcon = /* @__PURE__ */ styled.div.withConfig({
|
|
37
33
|
displayName: "IconPickerstyles__FontIcon",
|
|
38
34
|
componentId: "sc-iun0xm-7"
|
|
@@ -56,7 +52,7 @@ const ListRow = /* @__PURE__ */ styled.div.withConfig({
|
|
|
56
52
|
const NoResultIcon = /* @__PURE__ */ styled.div.withConfig({
|
|
57
53
|
displayName: "IconPickerstyles__NoResultIcon",
|
|
58
54
|
componentId: "sc-iun0xm-12"
|
|
59
|
-
})(["width:40px;height:40px;
|
|
55
|
+
})(["width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto;"]);
|
|
60
56
|
export {
|
|
61
57
|
ClearIcon,
|
|
62
58
|
Content,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { FormattedMessage } from "react-intl";
|
|
4
|
-
import { useTheme } from "@synerise/ds-core";
|
|
5
4
|
import Icon, { SearchNoResultsM } from "@synerise/ds-icon";
|
|
6
5
|
import Scrollbar from "@synerise/ds-scrollbar";
|
|
7
6
|
import { useGroupItems } from "../../hooks/useGroupItems.js";
|
|
@@ -14,7 +13,6 @@ const List = ({
|
|
|
14
13
|
onSelect,
|
|
15
14
|
noResultMsg = /* @__PURE__ */ jsx(FormattedMessage, { id: "DS.ICON-PICKER.NO-RESULTS" })
|
|
16
15
|
}) => {
|
|
17
|
-
const theme = useTheme();
|
|
18
16
|
const groupedData = useGroupItems(data, ITEMS_PER_ROW);
|
|
19
17
|
const listRef = useRef(null);
|
|
20
18
|
const handleScroll = ({
|
|
@@ -29,7 +27,7 @@ const List = ({
|
|
|
29
27
|
};
|
|
30
28
|
const itemData = createItemData(groupedData, ELEMENT_HEIGHT, onSelect, ITEMS_PER_ROW);
|
|
31
29
|
return /* @__PURE__ */ jsx(Scrollbar, { absolute: true, "data-testid": "icon-list", maxHeight: 330, onScroll: handleScroll, children: !data.length ? /* @__PURE__ */ jsx(OverlayWrapper, { children: /* @__PURE__ */ jsx(NoResults, { children: /* @__PURE__ */ jsxs(Content, { children: [
|
|
32
|
-
/* @__PURE__ */ jsx(NoResultIcon, { children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchNoResultsM, {})
|
|
30
|
+
/* @__PURE__ */ jsx(NoResultIcon, { children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchNoResultsM, {}) }) }),
|
|
33
31
|
/* @__PURE__ */ jsx("p", { children: noResultMsg })
|
|
34
32
|
] }) }) }) : /* @__PURE__ */ jsx(VirtualList, { listHeight: 330, ref: listRef, height: 330, itemCount: groupedData.length, itemData, itemSize: ELEMENT_HEIGHT, width: "100%", children: (props) => /* @__PURE__ */ jsx(RowItem, { ...props }) }) });
|
|
35
33
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTheme } from "@synerise/ds-core";
|
|
3
2
|
import Dropdown from "@synerise/ds-dropdown";
|
|
4
3
|
import Icon, { SearchM } from "@synerise/ds-icon";
|
|
5
4
|
import List from "../List/List.js";
|
|
@@ -13,9 +12,8 @@ const Overlay = ({
|
|
|
13
12
|
focus,
|
|
14
13
|
noResultMsg
|
|
15
14
|
}) => {
|
|
16
|
-
const theme = useTheme();
|
|
17
15
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
|
-
/* @__PURE__ */ jsx(Dropdown.SearchInput, { onSearchChange, onClearInput, placeholder, value, autofocus: focus, iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {})
|
|
16
|
+
/* @__PURE__ */ jsx(Dropdown.SearchInput, { onSearchChange, onClearInput, placeholder, value, autofocus: focus, iconLeft: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SearchM, {}) }) }),
|
|
19
17
|
/* @__PURE__ */ jsx(List, { onSelect, data, noResultMsg })
|
|
20
18
|
] });
|
|
21
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-icon-picker",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
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.
|
|
43
|
-
"@synerise/ds-button-group": "^2.0
|
|
44
|
-
"@synerise/ds-dropdown": "^2.
|
|
45
|
-
"@synerise/ds-icon": "^2.
|
|
46
|
-
"@synerise/ds-popover": "^2.
|
|
47
|
-
"@synerise/ds-scrollbar": "^2.0
|
|
48
|
-
"@synerise/ds-tooltip": "^2.0
|
|
49
|
-
"@synerise/ds-utils": "^2.
|
|
42
|
+
"@synerise/ds-button": "^2.2.0",
|
|
43
|
+
"@synerise/ds-button-group": "^2.1.0",
|
|
44
|
+
"@synerise/ds-dropdown": "^2.2.0",
|
|
45
|
+
"@synerise/ds-icon": "^2.3.0",
|
|
46
|
+
"@synerise/ds-popover": "^2.2.0",
|
|
47
|
+
"@synerise/ds-scrollbar": "^2.1.0",
|
|
48
|
+
"@synerise/ds-tooltip": "^2.1.0",
|
|
49
|
+
"@synerise/ds-utils": "^2.3.0",
|
|
50
50
|
"memoize-one": "^5.1.1",
|
|
51
51
|
"react-window": "^1.8.11"
|
|
52
52
|
},
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
65
65
|
"styled-components": "^5.3.3"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
68
68
|
}
|