@blocklet/labels 2.4.39 → 2.4.40

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.
@@ -5,8 +5,8 @@ import Box from "@mui/material/Box";
5
5
  import { styled } from "@mui/material/styles";
6
6
  import { Tree } from "react-arborist";
7
7
  import { Icon } from "@iconify/react";
8
- import LabelRounded from "virtual:icons/material-symbols/label-rounded";
9
- import CheckSmall from "virtual:icons/material-symbols/check-small";
8
+ import LabelRounded from "@iconify/icons-material-symbols/label-rounded";
9
+ import CheckSmall from "@iconify/icons-material-symbols/check-small";
10
10
  const LabelTreeContext = createContext({});
11
11
  function LabelTreeProvider({
12
12
  selectable = false,
@@ -43,7 +43,7 @@ function FolderArrow({ node }) {
43
43
  function Node({ node, style, dragHandle }) {
44
44
  const { selectable, select, isSelected, renderItem } = useContext(LabelTreeContext);
45
45
  const { data } = node;
46
- const icon = data.icon ? /* @__PURE__ */ jsx(Icon, { icon: data.icon, style: { fontSize: 18 } }) : /* @__PURE__ */ jsx(LabelRounded, { style: { fontSize: 18, color: data.color || "#ddd" } });
46
+ const icon = data.icon ? /* @__PURE__ */ jsx(Icon, { icon: data.icon, style: { fontSize: 18 } }) : /* @__PURE__ */ jsx(Icon, { icon: LabelRounded, style: { fontSize: 18, color: data.color || "#ddd" } });
47
47
  const handleToggle = (e) => {
48
48
  e.stopPropagation();
49
49
  if (node.isInternal) {
@@ -62,7 +62,7 @@ function Node({ node, style, dragHandle }) {
62
62
  /* @__PURE__ */ jsx(Box, { sx: { display: "flex", alignItems: "center", width: 22, height: 22 }, children: icon }),
63
63
  /* @__PURE__ */ jsx(Box, { component: "span", sx: { color: "grey.700" }, children: node.data.name })
64
64
  ] }),
65
- selectable && isSelected(node.id) && /* @__PURE__ */ jsx(CheckSmall, {})
65
+ selectable && isSelected(node.id) && /* @__PURE__ */ jsx(Icon, { icon: CheckSmall })
66
66
  ] });
67
67
  return /* @__PURE__ */ jsxs(
68
68
  Box,
@@ -10,7 +10,8 @@ import {
10
10
  ButtonBase,
11
11
  alpha
12
12
  } from "@mui/material";
13
- import TagPlusOutlineIcon from "virtual:icons/mdi/tag-plus-outline";
13
+ import { Icon } from "@iconify/react";
14
+ import TagPlusOutlineIcon from "@iconify/icons-mdi/tag-plus-outline";
14
15
  import { Fragment as Fragment2, useMemo, useState } from "react";
15
16
  import { useLocaleContext } from "@arcblock/ux/lib/Locale/context";
16
17
  import { LabelsContainer } from "./labels-context.mjs";
@@ -339,7 +340,7 @@ export function GithubLabelPicker({
339
340
  }),
340
341
  ...Array.isArray(buttonSx) ? buttonSx : [buttonSx]
341
342
  ],
342
- children: /* @__PURE__ */ jsx(TagPlusOutlineIcon, {})
343
+ children: /* @__PURE__ */ jsx(Icon, { icon: TagPlusOutlineIcon })
343
344
  }
344
345
  ) }),
345
346
  /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/labels",
3
- "version": "2.4.39",
3
+ "version": "2.4.40",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -18,6 +18,8 @@
18
18
  "@emotion/css": "^11.13.5",
19
19
  "@emotion/react": "^11.14.0",
20
20
  "@emotion/styled": "^11.14.1",
21
+ "@iconify/icons-material-symbols": "^1.2.58",
22
+ "@iconify/icons-mdi": "^1.2.48",
21
23
  "@iconify/react": "^4.1.1",
22
24
  "ahooks": "^3.8.1",
23
25
  "chroma-js": "^2.6.0",
@@ -26,11 +28,11 @@
26
28
  "react-color": "^2.19.3",
27
29
  "react-select": "^5.8.1",
28
30
  "unstated-next": "^1.1.0",
29
- "@blocklet/translation-input": "2.4.39"
31
+ "@blocklet/translation-input": "2.4.40"
30
32
  },
31
33
  "peerDependencies": {
32
- "@arcblock/did-connect-react": "^3.1.4",
33
- "@arcblock/ux": "^3.1.4",
34
+ "@arcblock/did-connect-react": "^3.1.5",
35
+ "@arcblock/ux": "^3.1.5",
34
36
  "@mui/icons-material": "^7.1.2",
35
37
  "@mui/material": "^7.1.2",
36
38
  "lodash": "^4.17.21",
@@ -57,7 +59,6 @@
57
59
  "babel-loader": "^8.4.1",
58
60
  "react": "^19.1.0",
59
61
  "react-dom": "^19.1.0",
60
- "rollup-plugin-node-externals": "^7.1.3",
61
62
  "typescript": "^4.9.5",
62
63
  "unbuild": "^3.6.0",
63
64
  "unplugin-icons": "^0.14.15",