@elsapiens/ui 0.1.6 → 0.1.8
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.js +5 -0
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -5239,6 +5239,11 @@ function FilterBar({
|
|
|
5239
5239
|
searchInputRef.current.focus();
|
|
5240
5240
|
}
|
|
5241
5241
|
}, [isSearchOpen]);
|
|
5242
|
+
useEffect11(() => {
|
|
5243
|
+
if (search?.value && !isSearchOpen) {
|
|
5244
|
+
setIsSearchOpen(true);
|
|
5245
|
+
}
|
|
5246
|
+
}, [search?.value]);
|
|
5242
5247
|
const addFilter = (fieldId) => {
|
|
5243
5248
|
const field = fields.find((f) => f.id === fieldId);
|
|
5244
5249
|
if (!field || !onConditionsChange) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elsapiens/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "UI components for elSapiens SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup src/index.ts --format esm --dts --clean --external react --external react-dom --external lucide-react",
|
|
25
|
+
"dev": "tsup src/index.ts --format esm --dts --watch --external react --external react-dom --external lucide-react",
|
|
26
|
+
"clean": "rm -rf dist",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest"
|
|
30
|
+
},
|
|
23
31
|
"publishConfig": {
|
|
24
32
|
"access": "public"
|
|
25
33
|
},
|
|
@@ -41,13 +49,5 @@
|
|
|
41
49
|
"peerDependencies": {
|
|
42
50
|
"react": "^18.2.0",
|
|
43
51
|
"react-dom": "^18.2.0"
|
|
44
|
-
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "tsup src/index.ts --format esm --dts --clean --external react --external react-dom --external lucide-react",
|
|
47
|
-
"dev": "tsup src/index.ts --format esm --dts --watch --external react --external react-dom --external lucide-react",
|
|
48
|
-
"clean": "rm -rf dist",
|
|
49
|
-
"typecheck": "tsc --noEmit",
|
|
50
|
-
"test": "vitest run",
|
|
51
|
-
"test:watch": "vitest"
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|