@firecms/ui 3.0.0-canary.201 → 3.0.0-canary.203

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-canary.201",
4
+ "version": "3.0.0-canary.203",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -115,7 +115,7 @@
115
115
  "index.css",
116
116
  "tailwind.config.js"
117
117
  ],
118
- "gitHead": "39d8cd5c2397a004c233c96a798e16133ec8590c",
118
+ "gitHead": "bad3e5f8069d21897795c6d5c42f843e9967b66d",
119
119
  "publishConfig": {
120
120
  "access": "public"
121
121
  }
@@ -8,6 +8,7 @@ export interface AvatarProps {
8
8
  children?: React.ReactNode;
9
9
  className?: string;
10
10
  outerClassName?: string;
11
+ hover?: boolean;
11
12
  style?: React.CSSProperties;
12
13
  }
13
14
 
@@ -19,6 +20,7 @@ const AvatarInner: React.ForwardRefRenderFunction<HTMLButtonElement, AvatarProps
19
20
  className,
20
21
  style,
21
22
  outerClassName,
23
+ hover = true,
22
24
  ...props
23
25
  },
24
26
  ref
@@ -36,7 +38,8 @@ const AvatarInner: React.ForwardRefRenderFunction<HTMLButtonElement, AvatarProps
36
38
  {...props}
37
39
  className={cls(
38
40
  "rounded-full flex items-center justify-center overflow-hidden",
39
- "p-1 hover:bg-surface-accent-200 hover:dark:bg-surface-accent-700 w-12 h-12 min-w-12 min-h-12",
41
+ "p-1 w-12 h-12 min-w-12 min-h-12",
42
+ hover && "hover:bg-surface-accent-200 hover:dark:bg-surface-accent-700",
40
43
  outerClassName
41
44
  )}
42
45
  >