New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-datetime-picker

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-datetime-picker - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

6

dist/cjs/DateTimePicker.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc