@blocklet/labels 1.6.60 → 1.6.62
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 +19 -2
- package/dist/index.umd.js +19 -2
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -86,7 +86,12 @@ function Node({ node, style, dragHandle }) {
|
|
|
86
86
|
{
|
|
87
87
|
className: "label-tree-item",
|
|
88
88
|
style,
|
|
89
|
-
sx: {
|
|
89
|
+
sx: {
|
|
90
|
+
display: "flex",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
justifyContent: "space-between",
|
|
93
|
+
color: (theme) => theme.palette.mode === "dark" ? "grey.800" : "text.primary"
|
|
94
|
+
},
|
|
90
95
|
ref: dragHandle,
|
|
91
96
|
onClick: handleClick,
|
|
92
97
|
children: [
|
|
@@ -206,7 +211,18 @@ const ValueContainer = ({ children, ...props }) => {
|
|
|
206
211
|
const [values, input] = children;
|
|
207
212
|
const count = Array.isArray(values) ? values.length : 0;
|
|
208
213
|
return /* @__PURE__ */ jsxs(components.ValueContainer, { ...props, children: [
|
|
209
|
-
/* @__PURE__ */ jsx(
|
|
214
|
+
/* @__PURE__ */ jsx(
|
|
215
|
+
Box,
|
|
216
|
+
{
|
|
217
|
+
component: "span",
|
|
218
|
+
sx: {
|
|
219
|
+
fontSize: 13,
|
|
220
|
+
fontWeight: "bold",
|
|
221
|
+
color: (theme) => theme.palette.mode === "dark" ? "grey.800" : "text.primary"
|
|
222
|
+
},
|
|
223
|
+
children: count ? "Labels" : "Filter by labels"
|
|
224
|
+
}
|
|
225
|
+
),
|
|
210
226
|
!!count && /* @__PURE__ */ jsx(
|
|
211
227
|
Box,
|
|
212
228
|
{
|
|
@@ -219,6 +235,7 @@ const ValueContainer = ({ children, ...props }) => {
|
|
|
219
235
|
ml: 1,
|
|
220
236
|
borderRadius: "100%",
|
|
221
237
|
fontSize: 12,
|
|
238
|
+
color: (theme) => theme.palette.mode === "dark" ? "grey.800" : "text.primary",
|
|
222
239
|
bgcolor: "grey.200"
|
|
223
240
|
},
|
|
224
241
|
children: count
|
package/dist/index.umd.js
CHANGED
|
@@ -74,7 +74,12 @@ var __publicField = (obj, key, value) => {
|
|
|
74
74
|
{
|
|
75
75
|
className: "label-tree-item",
|
|
76
76
|
style,
|
|
77
|
-
sx: {
|
|
77
|
+
sx: {
|
|
78
|
+
display: "flex",
|
|
79
|
+
alignItems: "center",
|
|
80
|
+
justifyContent: "space-between",
|
|
81
|
+
color: (theme) => theme.palette.mode === "dark" ? "grey.800" : "text.primary"
|
|
82
|
+
},
|
|
78
83
|
ref: dragHandle,
|
|
79
84
|
onClick: handleClick,
|
|
80
85
|
children: [
|
|
@@ -194,7 +199,18 @@ var __publicField = (obj, key, value) => {
|
|
|
194
199
|
const [values, input] = children;
|
|
195
200
|
const count = Array.isArray(values) ? values.length : 0;
|
|
196
201
|
return /* @__PURE__ */ jsxRuntime.jsxs(Select.components.ValueContainer, { ...props, children: [
|
|
197
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
202
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
203
|
+
Box,
|
|
204
|
+
{
|
|
205
|
+
component: "span",
|
|
206
|
+
sx: {
|
|
207
|
+
fontSize: 13,
|
|
208
|
+
fontWeight: "bold",
|
|
209
|
+
color: (theme) => theme.palette.mode === "dark" ? "grey.800" : "text.primary"
|
|
210
|
+
},
|
|
211
|
+
children: count ? "Labels" : "Filter by labels"
|
|
212
|
+
}
|
|
213
|
+
),
|
|
198
214
|
!!count && /* @__PURE__ */ jsxRuntime.jsx(
|
|
199
215
|
Box,
|
|
200
216
|
{
|
|
@@ -207,6 +223,7 @@ var __publicField = (obj, key, value) => {
|
|
|
207
223
|
ml: 1,
|
|
208
224
|
borderRadius: "100%",
|
|
209
225
|
fontSize: 12,
|
|
226
|
+
color: (theme) => theme.palette.mode === "dark" ? "grey.800" : "text.primary",
|
|
210
227
|
bgcolor: "grey.200"
|
|
211
228
|
},
|
|
212
229
|
children: count
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/labels",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.62",
|
|
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.
|
|
31
|
+
"@blocklet/translation-input": "1.6.62",
|
|
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": "
|
|
83
|
+
"gitHead": "a997942306e0faff4f3a362746b2d972ac6bb87f"
|
|
84
84
|
}
|