@firecms/ui 3.0.0-canary.126 → 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 CHANGED
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
 
11
11
  <h1 align="center">FireCMS</h1>
12
- <h3 align="center">Awesome Firebase/Firestore-based headless CMS</h3>
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 />
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- interface DateTimeFieldProps {
2
+ export type DateTimeFieldProps = {
3
3
  value?: Date | null;
4
4
  onChange?: (date: Date | null) => void;
5
5
  mode?: "date" | "date_time";
@@ -13,6 +13,5 @@ interface DateTimeFieldProps {
13
13
  inputClassName?: string;
14
14
  invisible?: boolean;
15
15
  locale?: string;
16
- }
16
+ };
17
17
  export declare const DateTimeField: React.FC<DateTimeFieldProps>;
18
- export {};
package/dist/index.es.js CHANGED
@@ -5,7 +5,8 @@ import * as Collapsible from "@radix-ui/react-collapsible";
5
5
  import { clsx } from "clsx";
6
6
  import { twMerge } from "tailwind-merge";
7
7
  import * as locales from "date-fns/locale";
8
- import DatePicker, { registerLocale, setDefaultLocale } from "react-datepicker";
8
+ import * as RDP from "react-datepicker";
9
+ import { registerLocale, setDefaultLocale } from "react-datepicker";
9
10
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
10
11
  import "material-icons/iconfont/filled.css";
11
12
  import * as DialogPrimitive from "@radix-ui/react-dialog";
@@ -29,7 +30,7 @@ const focusedClasses = "z-30 outline-none ring-2 ring-primary ring-opacity-75 ri
29
30
  const fieldBackgroundMixin = "bg-opacity-50 bg-slate-200 dark:bg-gray-800 dark:bg-opacity-60";
30
31
  const fieldBackgroundInvisibleMixin = "bg-opacity-0 bg-slate-100 dark:bg-gray-800 dark:bg-opacity-0";
31
32
  const fieldBackgroundDisabledMixin = "dark:bg-gray-800 bg-opacity-50 dark:bg-opacity-90";
32
- const fieldBackgroundHoverMixin = "hover:bg-opacity-50 dark:hover:bg-gray-700 dark:hover:bg-opacity-40";
33
+ const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-gray-700 dark:hover:bg-opacity-40";
33
34
  const defaultBorderMixin = "border-gray-100 dark:border-gray-800 dark:border-opacity-80";
34
35
  const paperMixin = "bg-white rounded-md dark:bg-gray-950 border dark:border-gray-800 dark:border-opacity-80 border-gray-100";
35
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";
@@ -573,20 +574,20 @@ const ButtonInner = React__default.forwardRef(({
573
574
  "w-full": fullWidth,
574
575
  "w-fit": !fullWidth,
575
576
  // Filled Variants
576
- "border border-transparent 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,
577
- "border border-transparent 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,
578
- "border border-transparent 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,
579
- "border border-transparent 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,
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,
580
581
  // Text Variants
581
- "border border-transparent text-primary hover:bg-slate-200 dark:hover:bg-gray-900": variant === "text" && color === "primary" && !disabled,
582
- "border border-transparent text-secondary hover:bg-secondary-bg": variant === "text" && color === "secondary" && !disabled,
583
- "border border-transparent text-red-500 hover:bg-red-500 hover:bg-opacity-10": variant === "text" && color === "error" && !disabled,
584
- "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,
585
586
  // Outlined Variants
586
- "border border-primary text-primary hover:bg-primary-bg": variant === "outlined" && color === "primary" && !disabled,
587
- "border border-secondary text-secondary hover:bg-secondary-bg": variant === "outlined" && color === "secondary" && !disabled,
588
- "border border-red-500 text-red-500 hover:bg-red-500 hover:text-white": variant === "outlined" && color === "error" && !disabled,
589
- "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,
590
591
  // Disabled states for all variants
591
592
  "border border-transparent opacity-50": variant === "text" && disabled,
592
593
  "border border-gray-500 opacity-50": variant === "outlined" && disabled,
@@ -13838,6 +13839,7 @@ function Typography({
13838
13839
  }
13839
13840
  );
13840
13841
  }
13842
+ const DatePicker = RDP.default.default || RDP.default || RDP;
13841
13843
  const DateTimeField = ({
13842
13844
  value,
13843
13845
  label,
@@ -16792,7 +16794,7 @@ const TableBody = ({
16792
16794
  }) => /* @__PURE__ */ jsx(
16793
16795
  "tbody",
16794
16796
  {
16795
- className: cls("bg-white dark:bg-gray-950 text-sm divide-y divide-slate-200 dark:divide-gray-700", className),
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),
16796
16798
  ...rest,
16797
16799
  children
16798
16800
  }
@@ -16825,7 +16827,6 @@ const TableRow = ({
16825
16827
  onClick,
16826
16828
  style,
16827
16829
  className: cls(
16828
- "divide-slate-100 dark:divide-gray-800",
16829
16830
  "bg-white dark:bg-gray-950",
16830
16831
  onClick ? "hover:bg-slate-100 dark:hover:bg-gray-800 cursor-pointer" : "",
16831
16832
  className