@firecms/ui 3.0.0-canary.126 → 3.0.0-canary.127

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.126",
4
+ "version": "3.0.0-canary.127",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -105,7 +105,7 @@
105
105
  "src",
106
106
  "tailwind.config.js"
107
107
  ],
108
- "gitHead": "122cb2b218a404444b4580e8f561f671c8b785a9",
108
+ "gitHead": "0c46cee41d666c60817c9f4f0447f78fcfa07ddf",
109
109
  "publishConfig": {
110
110
  "access": "public"
111
111
  }
@@ -1,5 +1,5 @@
1
1
  import React, { useRef } from "react";
2
- import DatePicker from "react-datepicker";
2
+ import * as RDP from "react-datepicker"
3
3
 
4
4
  import { CalendarMonthIcon, ClearIcon, ErrorIcon } from "../icons";
5
5
  import { IconButton } from "./IconButton";
@@ -9,7 +9,12 @@ import { Typography } from "./Typography";
9
9
  import { cls } from "../util";
10
10
  import { useInjectStyles } from "../hooks";
11
11
 
12
- interface DateTimeFieldProps {
12
+ // this fixes the issue with the default export, affecting Next.js
13
+ const DatePicker = (((RDP.default as any).default as any) ||
14
+ (RDP.default as any) ||
15
+ (RDP as any)) as typeof RDP.default
16
+
17
+ export type DateTimeFieldProps = {
13
18
  value?: Date | null;
14
19
  onChange?: (date: Date | null) => void;
15
20