@firecms/ui 3.0.0-beta.2 → 3.0.0-canary.1
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-
|
4
|
+
"version": "3.0.0-canary.1",
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
6
6
|
"funding": {
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
@@ -27,6 +27,14 @@
|
|
27
27
|
"headless cms",
|
28
28
|
"content manager"
|
29
29
|
],
|
30
|
+
"exports": {
|
31
|
+
".": {
|
32
|
+
"import": "./dist/index.es.js",
|
33
|
+
"require": "./dist/index.umd.js",
|
34
|
+
"types": "./dist/src/index.d.ts"
|
35
|
+
},
|
36
|
+
"./package.json": "./package.json"
|
37
|
+
},
|
30
38
|
"scripts": {
|
31
39
|
"watch": "vite build --watch",
|
32
40
|
"build": "vite build && tsc --emitDeclarationOnly",
|
@@ -102,7 +110,7 @@
|
|
102
110
|
"dist",
|
103
111
|
"src"
|
104
112
|
],
|
105
|
-
"gitHead": "
|
113
|
+
"gitHead": "2e4b4126562ef2d7e099bba8b116f77ba3e1e3cf",
|
106
114
|
"publishConfig": {
|
107
115
|
"access": "public"
|
108
116
|
}
|
package/src/components/Alert.tsx
CHANGED
@@ -15,7 +15,7 @@ export type IconButtonProps<C extends React.ElementType> =
|
|
15
15
|
}
|
16
16
|
|
17
17
|
const buttonClasses =
|
18
|
-
"hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-
|
18
|
+
"hover:bg-slate-200 hover:bg-opacity-75 dark:hover:bg-gray-700 dark:hover:bg-opacity-50";
|
19
19
|
const baseClasses =
|
20
20
|
"inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
21
21
|
const colorClasses = "text-slate-600 visited:text-slate-600 dark:text-slate-300 dark:visited:text-slate-300";
|
@@ -42,7 +42,7 @@ const IconButtonInner = <C extends React.ElementType = "button">({
|
|
42
42
|
...props
|
43
43
|
}: IconButtonProps<C>, ref: React.ForwardedRef<HTMLButtonElement>) => {
|
44
44
|
|
45
|
-
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-slate-50 dark:bg-
|
45
|
+
const bgClasses = variant === "ghost" ? "bg-transparent" : "bg-slate-50 dark:bg-gray-950 dark:bg-opacity-50";
|
46
46
|
const Component: React.ElementType<any> = component || "button";
|
47
47
|
return (
|
48
48
|
<Component
|
@@ -9,12 +9,12 @@ export function Separator({ orientation, decorative }: {
|
|
9
9
|
<SeparatorPrimitive.Root
|
10
10
|
decorative={decorative}
|
11
11
|
orientation="horizontal"
|
12
|
-
className="dark:bg-opacity-50 bg-opacity-50 dark:bg-gray-
|
12
|
+
className="dark:bg-opacity-50 bg-opacity-50 dark:bg-gray-600 bg-gray-300 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px my-[8px]"/>
|
13
13
|
);
|
14
14
|
else
|
15
15
|
return (
|
16
16
|
<SeparatorPrimitive.Root
|
17
|
-
className="dark:bg-opacity-50 bg-opacity-50 dark:bg-gray-
|
17
|
+
className="dark:bg-opacity-50 bg-opacity-50 dark:bg-gray-600 bg-gray-300 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-[8px]"
|
18
18
|
decorative={decorative}
|
19
19
|
orientation="vertical"
|
20
20
|
/>
|