@blocklet/labels 2.0.119 → 2.0.121
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 +2 -6
- package/dist/index.umd.js +2 -6
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
5
|
import { createContext, useRef, useState, useCallback, useEffect, useMemo, useContext, createElement, Fragment as Fragment$1 } from "react";
|
|
9
6
|
import { ExpandMore, Edit, LabelOutlined } from "@mui/icons-material";
|
|
@@ -54,8 +51,7 @@ const isLeaf = (node) => {
|
|
|
54
51
|
return node.isLeaf || !((_a = node.data.children) == null ? void 0 : _a.length);
|
|
55
52
|
};
|
|
56
53
|
function FolderArrow({ node }) {
|
|
57
|
-
if (isLeaf(node))
|
|
58
|
-
return /* @__PURE__ */ jsx("span", {});
|
|
54
|
+
if (isLeaf(node)) return /* @__PURE__ */ jsx("span", {});
|
|
59
55
|
return node.isOpen ? /* @__PURE__ */ jsx(ExpandMore, { style: { fontSize: 20 } }) : /* @__PURE__ */ jsx(ExpandMore, { style: { fontSize: 20, transform: "rotate(-90deg)" } });
|
|
60
56
|
}
|
|
61
57
|
function Node({ node, style, dragHandle }) {
|
package/dist/index.umd.js
CHANGED
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
})(this, function(exports2, jsxRuntime, react, iconsMaterial, Box, styles, reactArborist, react$1, omit, Select, material, context, ahooks, unstatedNext, performantArrayToTree, Session, chroma, CloseOutlineIcon) {
|
|
4
4
|
"use strict";var __defProp = Object.defineProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __publicField = (obj, key, value) =>
|
|
7
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
-
return value;
|
|
9
|
-
};
|
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
7
|
|
|
11
8
|
const materialSymbolsLabelRounded = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M5 19q-.825 0-1.413-.587Q3 17.825 3 17V7q0-.825.587-1.412Q4.175 5 5 5h10q.5 0 .938.225q.437.225.712.625l3.525 5q.375.525.375 1.15q0 .625-.375 1.15l-3.525 5q-.275.4-.712.625Q15.5 19 15 19Z" }) });
|
|
12
9
|
const materialSymbolsCheckSmall = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "m10 16.4l-4-4L7.4 11l2.6 2.6L16.6 7L18 8.4Z" }) });
|
|
@@ -41,8 +38,7 @@ var __publicField = (obj, key, value) => {
|
|
|
41
38
|
return node.isLeaf || !((_a = node.data.children) == null ? void 0 : _a.length);
|
|
42
39
|
};
|
|
43
40
|
function FolderArrow({ node }) {
|
|
44
|
-
if (isLeaf(node))
|
|
45
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", {});
|
|
41
|
+
if (isLeaf(node)) return /* @__PURE__ */ jsxRuntime.jsx("span", {});
|
|
46
42
|
return node.isOpen ? /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ExpandMore, { style: { fontSize: 20 } }) : /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ExpandMore, { style: { fontSize: 20, transform: "rotate(-90deg)" } });
|
|
47
43
|
}
|
|
48
44
|
function Node({ node, style, dragHandle }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/labels",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.121",
|
|
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": "2.0.
|
|
31
|
+
"@blocklet/translation-input": "2.0.121",
|
|
32
32
|
"@emotion/css": "^11.10.5",
|
|
33
33
|
"@emotion/react": "^11.10.5",
|
|
34
34
|
"@emotion/styled": "^11.10.5",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"rollup-plugin-node-externals": "^7.1.2",
|
|
77
77
|
"typescript": "^4.6.4",
|
|
78
78
|
"unplugin-icons": "^0.14.14",
|
|
79
|
-
"vite": "^5.
|
|
79
|
+
"vite": "^5.4.0",
|
|
80
80
|
"vite-plugin-dts": "^3.8.1",
|
|
81
81
|
"vite-plugin-libcss": "^1.1.1"
|
|
82
82
|
},
|
|
83
83
|
"resolutions": {
|
|
84
84
|
"react": "^18.2.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "8f9d09ae2d4379fac4e7fafdffe1a2aae2aaa2b7"
|
|
87
87
|
}
|