@firecms/ui 3.0.0-canary.86 → 3.0.0-canary.88

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.86",
4
+ "version": "3.0.0-canary.88",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -102,7 +102,7 @@
102
102
  "src",
103
103
  "tailwind.config.js"
104
104
  ],
105
- "gitHead": "33cba1151b6e92dd0dd3b8ac36d428fed4f1f155",
105
+ "gitHead": "600fb41d788b97e96aefdb680b9a3746e2ab74d4",
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  }
@@ -49,7 +49,7 @@ export const Sheet: React.FC<SheetProps> = ({
49
49
  <DialogPrimitive.Overlay
50
50
  className={cls(
51
51
  "fixed inset-0 transition-opacity z-20 ease-in-out duration-200 backdrop-blur-sm",
52
- "bg-black bg-opacity-50",
52
+ "bg-white bg-opacity-80",
53
53
  "dark:bg-gray-900 dark:bg-opacity-60",
54
54
  displayed && open ? "opacity-100" : "opacity-0"
55
55
  )}
@@ -6,6 +6,7 @@ import { useInjectStyles } from "../hooks";
6
6
 
7
7
  export type TooltipProps = {
8
8
  open?: boolean,
9
+ defaultOpen?: boolean,
9
10
  onOpenChange?: (open: boolean) => void,
10
11
  side?: "top" | "bottom" | "left" | "right",
11
12
  align?: "start" | "center" | "end",
@@ -14,12 +15,14 @@ export type TooltipProps = {
14
15
  delayDuration?: number;
15
16
  className?: string,
16
17
  tooltipClassName?: string,
18
+ tooltipStyle?: React.CSSProperties;
17
19
  children: React.ReactNode,
18
20
  style?: React.CSSProperties;
19
21
  };
20
22
 
21
23
  export const Tooltip = ({
22
24
  open,
25
+ defaultOpen,
23
26
  side = "bottom",
24
27
  delayDuration = 200,
25
28
  sideOffset,
@@ -29,6 +32,7 @@ export const Tooltip = ({
29
32
  className,
30
33
  style,
31
34
  tooltipClassName,
35
+ tooltipStyle,
32
36
  children
33
37
  }: TooltipProps) => {
34
38
 
@@ -39,7 +43,7 @@ export const Tooltip = ({
39
43
 
40
44
  return (
41
45
  <TooltipPrimitive.Provider delayDuration={delayDuration}>
42
- <TooltipPrimitive.Root open={open} onOpenChange={onOpenChange}>
46
+ <TooltipPrimitive.Root open={open} onOpenChange={onOpenChange} defaultOpen={defaultOpen}>
43
47
  <TooltipPrimitive.Trigger asChild>
44
48
  <div className={className} style={style}>
45
49
  {children}
@@ -51,6 +55,7 @@ export const Tooltip = ({
51
55
  "max-w-lg leading-relaxed",
52
56
  "z-50 rounded px-3 py-2 text-xs leading-none bg-slate-700 dark:bg-slate-800 bg-opacity-90 font-medium text-slate-50 shadow-2xl select-none duration-400 ease-in transform opacity-100",
53
57
  tooltipClassName)}
58
+ style={tooltipStyle}
54
59
  sideOffset={sideOffset === undefined ? 4 : sideOffset}
55
60
  align={align}
56
61
  side={side}>