react-datetime-picker
Advanced tools
Comparing version 5.0.0 to 5.0.1
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Calendar from 'react-calendar'; | ||
import Clock from 'react-clock'; | ||
import { isMaxDate, isMinDate } from './shared/propTypes'; | ||
@@ -47,3 +49,3 @@ import type { ClassName, Detail, LooseValue } from './shared/types'; | ||
openWidgetsOnFocus?: boolean; | ||
portalContainer?: HTMLElement; | ||
portalContainer?: HTMLElement | null; | ||
required?: boolean; | ||
@@ -56,3 +58,3 @@ secondAriaLabel?: string; | ||
yearPlaceholder?: string; | ||
}; | ||
} & Omit<React.ComponentPropsWithoutRef<typeof Calendar>, 'className' | 'maxDetail' | 'minDetail' | 'onChange'> & Omit<React.ComponentPropsWithoutRef<typeof Clock>, 'value'>; | ||
declare function DateTimePicker(props: DateTimePickerProps): JSX.Element; | ||
@@ -59,0 +61,0 @@ declare namespace DateTimePicker { |
export type AmPmType = 'am' | 'pm'; | ||
export type ClassName = string | null | undefined | (string | null | undefined)[]; | ||
export type Detail = 'hour' | 'minute' | 'second'; | ||
export type LooseValue = string | Date | null | (string | Date | null)[]; | ||
export type LooseValuePiece = string | Date | null; | ||
export type LooseValue = LooseValuePiece | [LooseValuePiece, LooseValuePiece]; | ||
type ValuePiece = Date | null; | ||
export type Value = ValuePiece | [ValuePiece, ValuePiece]; | ||
export {}; |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Calendar from 'react-calendar'; | ||
import Clock from 'react-clock'; | ||
import { isMaxDate, isMinDate } from './shared/propTypes'; | ||
@@ -47,3 +49,3 @@ import type { ClassName, Detail, LooseValue } from './shared/types'; | ||
openWidgetsOnFocus?: boolean; | ||
portalContainer?: HTMLElement; | ||
portalContainer?: HTMLElement | null; | ||
required?: boolean; | ||
@@ -56,3 +58,3 @@ secondAriaLabel?: string; | ||
yearPlaceholder?: string; | ||
}; | ||
} & Omit<React.ComponentPropsWithoutRef<typeof Calendar>, 'className' | 'maxDetail' | 'minDetail' | 'onChange'> & Omit<React.ComponentPropsWithoutRef<typeof Clock>, 'value'>; | ||
declare function DateTimePicker(props: DateTimePickerProps): JSX.Element; | ||
@@ -59,0 +61,0 @@ declare namespace DateTimePicker { |
export type AmPmType = 'am' | 'pm'; | ||
export type ClassName = string | null | undefined | (string | null | undefined)[]; | ||
export type Detail = 'hour' | 'minute' | 'second'; | ||
export type LooseValue = string | Date | null | (string | Date | null)[]; | ||
export type LooseValuePiece = string | Date | null; | ||
export type LooseValue = LooseValuePiece | [LooseValuePiece, LooseValuePiece]; | ||
type ValuePiece = Date | null; | ||
export type Value = ValuePiece | [ValuePiece, ValuePiece]; | ||
export {}; |
{ | ||
"name": "react-datetime-picker", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "A date range picker for your React app.", | ||
@@ -46,3 +46,3 @@ "main": "dist/cjs/index.js", | ||
"prop-types": "^15.6.0", | ||
"react-calendar": "^4.2.0", | ||
"react-calendar": "^4.2.1", | ||
"react-clock": "^4.2.0", | ||
@@ -49,0 +49,0 @@ "react-date-picker": "^10.0.0", |
@@ -7,2 +7,8 @@ export type AmPmType = 'am' | 'pm'; | ||
export type LooseValue = string | Date | null | (string | Date | null)[]; | ||
export type LooseValuePiece = string | Date | null; | ||
export type LooseValue = LooseValuePiece | [LooseValuePiece, LooseValuePiece]; | ||
type ValuePiece = Date | null; | ||
export type Value = ValuePiece | [ValuePiece, ValuePiece]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
291251
5923
0
Updatedreact-calendar@^4.2.1