@firecms/ui 3.0.0-canary.127 → 3.0.0-canary.128
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/README.md +1 -1
- package/dist/index.es.js +14 -15
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +14 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/Button.tsx +12 -12
- package/src/components/Table.tsx +1 -2
- package/src/styles.ts +1 -1
package/README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
</p>
|
10
10
|
|
11
11
|
<h1 align="center">FireCMS</h1>
|
12
|
-
<h3 align="center">Awesome Firebase/
|
12
|
+
<h3 align="center">Awesome Firebase/MongoDB-based headless CMS</h3>
|
13
13
|
<p align="center"><a href="https://demo.firecms.co">Live demo</a></p>
|
14
14
|
|
15
15
|
<br />
|
package/dist/index.es.js
CHANGED
@@ -30,7 +30,7 @@ const focusedClasses = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ri
|
|
30
30
|
const fieldBackgroundMixin = "bg-opacity-50 bg-slate-200 dark:bg-gray-800 dark:bg-opacity-60";
|
31
31
|
const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0";
|
32
32
|
const fieldBackgroundDisabledMixin = "dark:bg-gray-800 bg-opacity-50 dark:bg-opacity-90";
|
33
|
-
const fieldBackgroundHoverMixin = "hover:bg-opacity-
|
33
|
+
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-gray-700 dark:hover:bg-opacity-40";
|
34
34
|
const defaultBorderMixin = "border-gray-100 dark:border-gray-800 dark:border-opacity-80";
|
35
35
|
const paperMixin = "bg-white rounded-md dark:bg-gray-950 border dark:border-gray-800 dark:border-opacity-80 border-gray-100";
|
36
36
|
const cardMixin = "bg-white border border-gray-100 dark:border-transparent rounded-md dark:bg-gray-950 dark:border-gray-800 dark:border-opacity-50 m-1 -p-1";
|
@@ -574,20 +574,20 @@ const ButtonInner = React__default.forwardRef(({
|
|
574
574
|
"w-full": fullWidth,
|
575
575
|
"w-fit": !fullWidth,
|
576
576
|
// Filled Variants
|
577
|
-
"border border-
|
578
|
-
"border border-
|
579
|
-
"border border-
|
580
|
-
"border border-
|
577
|
+
"border border-primary bg-primary hover:bg-primary-dark focus:ring-primary shadow hover:ring-1 hover:ring-primary text-white hover:text-white": variant === "filled" && color === "primary" && !disabled,
|
578
|
+
"border border-secondary bg-secondary hover:bg-secondary-dark focus:ring-secondary shadow hover:ring-1 hover:ring-secondary text-white hover:text-white": variant === "filled" && color === "secondary" && !disabled,
|
579
|
+
"border border-red-500 bg-red-500 hover:bg-red-500 focus:ring-red-500 shadow hover:ring-1 hover:ring-red-600 text-white hover:text-white": variant === "filled" && color === "error" && !disabled,
|
580
|
+
"border border-slate-200 bg-slate-200 hover:bg-slate-300 focus:ring-slate-400 shadow hover:ring-1 hover:ring-slate-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": variant === "filled" && color === "text" && !disabled,
|
581
581
|
// Text Variants
|
582
|
-
"border border-transparent text-primary hover:bg-slate-200 dark:hover:bg-gray-900": variant === "text" && color === "primary" && !disabled,
|
583
|
-
"border border-transparent text-secondary hover:bg-secondary-bg": variant === "text" && color === "secondary" && !disabled,
|
584
|
-
"border border-transparent text-red-500 hover:bg-red-500 hover:bg-opacity-10": variant === "text" && color === "error" && !disabled,
|
585
|
-
"border border-transparent text-text-primary dark:text-text-primary-dark hover:bg-slate-200 hover:dark:bg-gray-700": variant === "text" && color === "text" && !disabled,
|
582
|
+
"border border-transparent text-primary hover:text-primary hover:bg-slate-200 dark:hover:bg-gray-900": variant === "text" && color === "primary" && !disabled,
|
583
|
+
"border border-transparent text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "text" && color === "secondary" && !disabled,
|
584
|
+
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10": variant === "text" && color === "error" && !disabled,
|
585
|
+
"border border-transparent text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark hover:bg-slate-200 hover:dark:bg-gray-700": variant === "text" && color === "text" && !disabled,
|
586
586
|
// Outlined Variants
|
587
|
-
"border border-primary text-primary hover:bg-primary-bg": variant === "outlined" && color === "primary" && !disabled,
|
588
|
-
"border border-secondary text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
|
589
|
-
"border border-red-500 text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
|
590
|
-
"border border-slate-400 text-text-primary dark:text-text-primary-dark hover:bg-slate-200": variant === "outlined" && color === "text" && !disabled,
|
587
|
+
"border border-primary text-primary hover:text-primary hover:bg-primary-bg": variant === "outlined" && color === "primary" && !disabled,
|
588
|
+
"border border-secondary text-secondary hover:text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
|
589
|
+
"border border-red-500 text-red-500 hover:text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
|
590
|
+
"border border-slate-400 text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:bg-slate-200": variant === "outlined" && color === "text" && !disabled,
|
591
591
|
// Disabled states for all variants
|
592
592
|
"border border-transparent opacity-50": variant === "text" && disabled,
|
593
593
|
"border border-gray-500 opacity-50": variant === "outlined" && disabled,
|
@@ -16794,7 +16794,7 @@ const TableBody = ({
|
|
16794
16794
|
}) => /* @__PURE__ */ jsx(
|
16795
16795
|
"tbody",
|
16796
16796
|
{
|
16797
|
-
className: cls("bg-white dark:bg-gray-950 text-sm divide-y divide-
|
16797
|
+
className: cls("bg-white dark:bg-gray-950 text-sm divide-y divide-gray-100 dark:divide-gray-800 dark:divide-opacity-80", className),
|
16798
16798
|
...rest,
|
16799
16799
|
children
|
16800
16800
|
}
|
@@ -16827,7 +16827,6 @@ const TableRow = ({
|
|
16827
16827
|
onClick,
|
16828
16828
|
style,
|
16829
16829
|
className: cls(
|
16830
|
-
"divide-slate-100 dark:divide-gray-800",
|
16831
16830
|
"bg-white dark:bg-gray-950",
|
16832
16831
|
onClick ? "hover:bg-slate-100 dark:hover:bg-gray-800 cursor-pointer" : "",
|
16833
16832
|
className
|