@uniformdev/design-system 20.55.0 → 20.55.1
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/esm/index.js +3 -8
- package/dist/index.js +3 -8
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -11257,21 +11257,16 @@ var LabelsQuickFilter = ({
|
|
|
11257
11257
|
const filteredItems = useMemo6(() => {
|
|
11258
11258
|
const searchLower = searchTerm.toLowerCase().trim();
|
|
11259
11259
|
const matchesSearch = (item) => item.name.toLowerCase().includes(searchLower);
|
|
11260
|
-
|
|
11261
|
-
return items;
|
|
11262
|
-
}
|
|
11263
|
-
const groupsWithMatchingChildren = new Set(
|
|
11264
|
-
items.filter((item) => item.parent && matchesSearch(item)).map((item) => item.parent)
|
|
11265
|
-
);
|
|
11266
|
-
return items.filter((item) => {
|
|
11260
|
+
const filtered = !searchTerm ? [...items] : items.filter((item) => {
|
|
11267
11261
|
if (matchesSearch(item)) {
|
|
11268
11262
|
return true;
|
|
11269
11263
|
}
|
|
11270
|
-
if (item.isGroup &&
|
|
11264
|
+
if (item.isGroup && items.some((child) => child.parent === item.id && matchesSearch(child))) {
|
|
11271
11265
|
return true;
|
|
11272
11266
|
}
|
|
11273
11267
|
return false;
|
|
11274
11268
|
});
|
|
11269
|
+
return filtered.sort((a, b) => a.name.localeCompare(b.name));
|
|
11275
11270
|
}, [items, searchTerm]);
|
|
11276
11271
|
const handleToggle = (item) => {
|
|
11277
11272
|
if (selectedIdsSet.has(item.id)) {
|
package/dist/index.js
CHANGED
|
@@ -13154,21 +13154,16 @@ var LabelsQuickFilter = ({
|
|
|
13154
13154
|
const filteredItems = (0, import_react120.useMemo)(() => {
|
|
13155
13155
|
const searchLower = searchTerm.toLowerCase().trim();
|
|
13156
13156
|
const matchesSearch = (item) => item.name.toLowerCase().includes(searchLower);
|
|
13157
|
-
|
|
13158
|
-
return items;
|
|
13159
|
-
}
|
|
13160
|
-
const groupsWithMatchingChildren = new Set(
|
|
13161
|
-
items.filter((item) => item.parent && matchesSearch(item)).map((item) => item.parent)
|
|
13162
|
-
);
|
|
13163
|
-
return items.filter((item) => {
|
|
13157
|
+
const filtered = !searchTerm ? [...items] : items.filter((item) => {
|
|
13164
13158
|
if (matchesSearch(item)) {
|
|
13165
13159
|
return true;
|
|
13166
13160
|
}
|
|
13167
|
-
if (item.isGroup &&
|
|
13161
|
+
if (item.isGroup && items.some((child) => child.parent === item.id && matchesSearch(child))) {
|
|
13168
13162
|
return true;
|
|
13169
13163
|
}
|
|
13170
13164
|
return false;
|
|
13171
13165
|
});
|
|
13166
|
+
return filtered.sort((a, b) => a.name.localeCompare(b.name));
|
|
13172
13167
|
}, [items, searchTerm]);
|
|
13173
13168
|
const handleToggle = (item) => {
|
|
13174
13169
|
if (selectedIdsSet.has(item.id)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.55.
|
|
3
|
+
"version": "20.55.1",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"exports": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@storybook/react-vite": "10.1.0",
|
|
36
36
|
"@types/react": "19.2.2",
|
|
37
37
|
"@types/react-dom": "19.2.2",
|
|
38
|
-
"@uniformdev/canvas": "^20.55.
|
|
39
|
-
"@uniformdev/richtext": "^20.55.
|
|
38
|
+
"@uniformdev/canvas": "^20.55.1",
|
|
39
|
+
"@uniformdev/richtext": "^20.55.1",
|
|
40
40
|
"autoprefixer": "10.4.21",
|
|
41
41
|
"hygen": "6.2.11",
|
|
42
42
|
"jsdom": "20.0.3",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "44d778abd699dafbabda982cb3295be043ba3cb0"
|
|
92
92
|
}
|