@blocklet/labels 1.6.68 → 1.6.69

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/index.es.js CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
8
- import { createContext, useRef, useState, useCallback, useEffect, useMemo, useContext } from "react";
8
+ import { createContext, useRef, useState, useCallback, useEffect, useMemo, useContext, createElement } from "react";
9
9
  import { ExpandMore, Edit, LabelOutlined } from "@mui/icons-material";
10
10
  import Box from "@mui/material/Box";
11
11
  import { styled } from "@mui/material/styles";
@@ -936,55 +936,50 @@ function GithubLabelPicker({
936
936
  PopperComponent,
937
937
  renderTags: () => null,
938
938
  noOptionsText: noLabelsText || "No labels",
939
- renderOption: (props, option, { selected }) => /* @__PURE__ */ jsxs("li", { ...props, children: [
940
- /* @__PURE__ */ jsx(
941
- Box$1,
942
- {
943
- component: DoneIcon,
944
- sx: { width: 17, height: 17, mr: "5px", ml: "-2px" },
945
- style: {
946
- visibility: selected ? "visible" : "hidden"
947
- }
948
- }
949
- ),
950
- /* @__PURE__ */ jsx(
951
- Box$1,
952
- {
953
- component: "span",
954
- sx: {
955
- width: 14,
956
- height: 14,
957
- flexShrink: 0,
958
- borderRadius: "3px",
959
- mr: 1,
960
- mt: "2px"
961
- },
962
- style: { backgroundColor: option.data.color || "#ddd" }
963
- }
964
- ),
965
- /* @__PURE__ */ jsx(
966
- Box$1,
967
- {
968
- sx: {
969
- flexGrow: 1,
970
- "& span": {
971
- color: theme.palette.mode === "light" ? "#586069" : "#8b949e"
972
- }
973
- },
974
- children: option.data.getName(locale)
939
+ renderOption: (props, option, { selected }) => /* @__PURE__ */ createElement("li", { ...props, key: option.data.id }, /* @__PURE__ */ jsx(
940
+ Box$1,
941
+ {
942
+ component: DoneIcon,
943
+ sx: { width: 17, height: 17, mr: "5px", ml: "-2px" },
944
+ style: {
945
+ visibility: selected ? "visible" : "hidden"
975
946
  }
976
- ),
977
- /* @__PURE__ */ jsx(
978
- Box$1,
979
- {
980
- component: CloseIcon,
981
- sx: { opacity: 0.6, width: 18, height: 18 },
982
- style: {
983
- visibility: selected ? "visible" : "hidden"
947
+ }
948
+ ), /* @__PURE__ */ jsx(
949
+ Box$1,
950
+ {
951
+ component: "span",
952
+ sx: {
953
+ width: 14,
954
+ height: 14,
955
+ flexShrink: 0,
956
+ borderRadius: "3px",
957
+ mr: 1,
958
+ mt: "2px"
959
+ },
960
+ style: { backgroundColor: option.data.color || "#ddd" }
961
+ }
962
+ ), /* @__PURE__ */ jsx(
963
+ Box$1,
964
+ {
965
+ sx: {
966
+ flexGrow: 1,
967
+ "& span": {
968
+ color: theme.palette.mode === "light" ? "#586069" : "#8b949e"
984
969
  }
970
+ },
971
+ children: option.getFullName(locale)
972
+ }
973
+ ), /* @__PURE__ */ jsx(
974
+ Box$1,
975
+ {
976
+ component: CloseIcon,
977
+ sx: { opacity: 0.6, width: 18, height: 18 },
978
+ style: {
979
+ visibility: selected ? "visible" : "hidden"
985
980
  }
986
- )
987
- ] }),
981
+ }
982
+ )),
988
983
  options: [...labels].sort((a, b) => {
989
984
  let ai = value.indexOf(a.data.id);
990
985
  ai = ai === -1 ? value.length + labels.indexOf(a) : ai;
package/dist/index.umd.js CHANGED
@@ -924,55 +924,50 @@ var __publicField = (obj, key, value) => {
924
924
  PopperComponent,
925
925
  renderTags: () => null,
926
926
  noOptionsText: noLabelsText || "No labels",
927
- renderOption: (props, option, { selected }) => /* @__PURE__ */ jsxRuntime.jsxs("li", { ...props, children: [
928
- /* @__PURE__ */ jsxRuntime.jsx(
929
- material.Box,
930
- {
931
- component: DoneIcon,
932
- sx: { width: 17, height: 17, mr: "5px", ml: "-2px" },
933
- style: {
934
- visibility: selected ? "visible" : "hidden"
935
- }
936
- }
937
- ),
938
- /* @__PURE__ */ jsxRuntime.jsx(
939
- material.Box,
940
- {
941
- component: "span",
942
- sx: {
943
- width: 14,
944
- height: 14,
945
- flexShrink: 0,
946
- borderRadius: "3px",
947
- mr: 1,
948
- mt: "2px"
949
- },
950
- style: { backgroundColor: option.data.color || "#ddd" }
951
- }
952
- ),
953
- /* @__PURE__ */ jsxRuntime.jsx(
954
- material.Box,
955
- {
956
- sx: {
957
- flexGrow: 1,
958
- "& span": {
959
- color: theme.palette.mode === "light" ? "#586069" : "#8b949e"
960
- }
961
- },
962
- children: option.data.getName(locale)
927
+ renderOption: (props, option, { selected }) => /* @__PURE__ */ react.createElement("li", { ...props, key: option.data.id }, /* @__PURE__ */ jsxRuntime.jsx(
928
+ material.Box,
929
+ {
930
+ component: DoneIcon,
931
+ sx: { width: 17, height: 17, mr: "5px", ml: "-2px" },
932
+ style: {
933
+ visibility: selected ? "visible" : "hidden"
963
934
  }
964
- ),
965
- /* @__PURE__ */ jsxRuntime.jsx(
966
- material.Box,
967
- {
968
- component: CloseIcon,
969
- sx: { opacity: 0.6, width: 18, height: 18 },
970
- style: {
971
- visibility: selected ? "visible" : "hidden"
935
+ }
936
+ ), /* @__PURE__ */ jsxRuntime.jsx(
937
+ material.Box,
938
+ {
939
+ component: "span",
940
+ sx: {
941
+ width: 14,
942
+ height: 14,
943
+ flexShrink: 0,
944
+ borderRadius: "3px",
945
+ mr: 1,
946
+ mt: "2px"
947
+ },
948
+ style: { backgroundColor: option.data.color || "#ddd" }
949
+ }
950
+ ), /* @__PURE__ */ jsxRuntime.jsx(
951
+ material.Box,
952
+ {
953
+ sx: {
954
+ flexGrow: 1,
955
+ "& span": {
956
+ color: theme.palette.mode === "light" ? "#586069" : "#8b949e"
972
957
  }
958
+ },
959
+ children: option.getFullName(locale)
960
+ }
961
+ ), /* @__PURE__ */ jsxRuntime.jsx(
962
+ material.Box,
963
+ {
964
+ component: CloseIcon,
965
+ sx: { opacity: 0.6, width: 18, height: 18 },
966
+ style: {
967
+ visibility: selected ? "visible" : "hidden"
973
968
  }
974
- )
975
- ] }),
969
+ }
970
+ )),
976
971
  options: [...labels].sort((a, b) => {
977
972
  let ai = value.indexOf(a.data.id);
978
973
  ai = ai === -1 ? value.length + labels.indexOf(a) : ai;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/labels",
3
- "version": "1.6.68",
3
+ "version": "1.6.69",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@blocklet/translation-input": "1.6.68",
31
+ "@blocklet/translation-input": "1.6.69",
32
32
  "@emotion/css": "^11.10.5",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
@@ -80,5 +80,5 @@
80
80
  "resolutions": {
81
81
  "react": "^18.2.0"
82
82
  },
83
- "gitHead": "24daf8b46321fce3b1df678464cd8c24347ef8bd"
83
+ "gitHead": "f9d2e9ba4677ca73f42f23026ceaacb3fa114086"
84
84
  }