@firecms/ui 3.0.0-alpha.62 → 3.0.0-alpha.63
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/components/SearchBar.d.ts +2 -1
- package/dist/index.es.js +126 -124
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +2 -2
- package/src/components/SearchBar.tsx +5 -2
- package/src/scripts/generateIconKeys.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firecms/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-alpha.
|
|
4
|
+
"version": "3.0.0-alpha.63",
|
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
|
6
6
|
"funding": {
|
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"dist",
|
|
117
117
|
"src"
|
|
118
118
|
],
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "5605d67318bec83aeae289a2a8a989db32894e7c",
|
|
120
120
|
"publishConfig": {
|
|
121
121
|
"access": "public"
|
|
122
122
|
}
|
|
@@ -45,8 +45,8 @@ export function Button<P extends React.ElementType>({
|
|
|
45
45
|
const sizeClasses = cn(
|
|
46
46
|
{
|
|
47
47
|
"py-1 px-2": size === "small",
|
|
48
|
-
"py-2 px-
|
|
49
|
-
"py-3 px-
|
|
48
|
+
"py-2 px-3.5": size === "medium",
|
|
49
|
+
"py-3 px-4": size === "large"
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
|
|
@@ -10,6 +10,7 @@ interface SearchBarProps {
|
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
expandable?: boolean;
|
|
12
12
|
large?: boolean;
|
|
13
|
+
innerClassName?: string;
|
|
13
14
|
className?: string;
|
|
14
15
|
autoFocus?: boolean;
|
|
15
16
|
}
|
|
@@ -19,6 +20,7 @@ export function SearchBar({
|
|
|
19
20
|
placeholder = "Search",
|
|
20
21
|
expandable = false,
|
|
21
22
|
large = false,
|
|
23
|
+
innerClassName,
|
|
22
24
|
className,
|
|
23
25
|
autoFocus
|
|
24
26
|
}: SearchBarProps) {
|
|
@@ -49,7 +51,8 @@ export function SearchBar({
|
|
|
49
51
|
large ? "h-14" : "h-[42px]",
|
|
50
52
|
"bg-gray-50 dark:bg-gray-800 transition duration-150 ease-in-out border",
|
|
51
53
|
defaultBorderMixin,
|
|
52
|
-
"rounded",
|
|
54
|
+
"rounded",
|
|
55
|
+
className)}>
|
|
53
56
|
<div
|
|
54
57
|
className="absolute p-0 px-4 h-full absolute pointer-events-none flex items-center justify-center top-0">
|
|
55
58
|
<SearchIcon className={"text-gray-500"}/>
|
|
@@ -68,7 +71,7 @@ export function SearchBar({
|
|
|
68
71
|
"pl-12 h-full text-current ",
|
|
69
72
|
expandable ? (active ? "w-[220px]" : "w-[180px]") : "",
|
|
70
73
|
focusedMixin,
|
|
71
|
-
|
|
74
|
+
innerClassName
|
|
72
75
|
)}
|
|
73
76
|
/>
|
|
74
77
|
{searchText
|
|
@@ -10,7 +10,7 @@ export function generateIconKeys() {
|
|
|
10
10
|
.then((text) => {
|
|
11
11
|
const lines = text.split("\n");
|
|
12
12
|
const words = lines.map((line) => line.split(" ")[0]);
|
|
13
|
-
const keys = words.filter(Boolean);
|
|
13
|
+
const keys = words.filter(Boolean).filter((word) => word !== "addchart");
|
|
14
14
|
console.log(keys);
|
|
15
15
|
saveIconKeys(keys);
|
|
16
16
|
return keys;
|