react-date-fns
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -1,11 +0,1 @@ | ||
import { DateDisplay } from './components/DateDisplay'; | ||
declare const ReactDateFns: { | ||
DateDisplay: import('react').FC<{ | ||
children: Date; | ||
className?: string; | ||
pattern: (string & {}) | "MMM" | "MMMM" | "yyyy-MM-dd" | "MM/dd/yyyy" | "dd-MM-yyyy" | "dd/MM/yyyy" | "yyyy/MM/dd" | "dd MMMM yyyy" | "EEEE, MMMM do, yyyy" | "MM-dd-yyyy" | "yyyy-MM-dd'T'HH:mm:ss" | "yyyy-MM-dd HH:mm:ss" | "HH:mm" | "HH:mm:ss" | "hh:mm:ss a" | "EEE" | "EEEE" | "MMM d, yyyy" | "MMMM do, yyyy" | "dd MMM yyyy" | "d MMM yyyy" | "dd MMM" | "d MMM" | "MMMM yyyy" | "MMM yyyy" | "EEE, MMM d, ''yy" | "h:mm a" | "h:mm:ss a" | "h:mm:ss a zzz" | "h:mm a zzz" | "EEEE, MMMM do, yyyy, h:mm a"; | ||
}>; | ||
}; | ||
export default ReactDateFns; | ||
export { DateDisplay }; |
{ | ||
"name": "react-date-fns", | ||
"private": false, | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"type": "module", | ||
@@ -27,5 +27,8 @@ "license": "MIT", | ||
"@vitejs/plugin-react-swc": "^3.5.0", | ||
"autoprefixer": "^10.4.19", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-react-hooks": "^4.6.2", | ||
"eslint-plugin-react-refresh": "^0.4.7", | ||
"postcss": "^8.4.38", | ||
"tailwindcss": "^3.4.4", | ||
"typescript": "^5.2.2", | ||
@@ -32,0 +35,0 @@ "vite": "^5.3.1", |
@@ -26,12 +26,8 @@ # ReactDateFns Package | ||
<div> | ||
<ReactDateFns.DateDisplay | ||
date={new Date()} | ||
className="date-class" | ||
pattern="yyyy-MM-dd" | ||
/> | ||
<DateDisplay | ||
date={new Date()} | ||
className="date-class" | ||
pattern="MM/dd/yyyy" | ||
/> | ||
<ReactDateFns.DateDisplay className="date-class" pattern="yyyy-MM-dd"> | ||
{new Date()} | ||
</ReactDateFns.DateDisplay> | ||
<DateDisplay className="date-class" pattern="MM/dd/yyyy"> | ||
{new Date()} | ||
</DateDisplay> | ||
</div> | ||
@@ -38,0 +34,0 @@ ); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54832
24
939
16
114