@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firecms/ui",
3
3
  "type": "module",
4
- "version": "3.0.0-alpha.62",
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": "ee6ce49b774c005d9af503f7a393487b3a9ef3d8",
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-4": size === "medium",
49
- "py-3 px-5": size === "large"
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
- className
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;