Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-widgets

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-widgets - npm Package Compare versions

Comparing version 4.1.6 to 4.1.7

0

react-widgets/index.d.ts

@@ -0,0 +0,0 @@ // Type definitions for react-widgets 4.1

4

react-widgets/lib/Calendar.d.ts

@@ -32,3 +32,3 @@ import * as React from 'react';

*/
onNavigate?: (date: Date, direction: string, view: string ) => void;
onNavigate?: (date: Date, direction: string, view: string) => void;
/**

@@ -72,3 +72,2 @@ * A callback fired when the view changes.

* The starting and lowest level view the calendar can navigate down to.
* @enum "month" "year" "decade" "century"
*/

@@ -79,3 +78,2 @@ initialView?: "month" | "year" | "decade" | "century";

* initialView
* @enum "month" "year" "decade" "century"
*/

@@ -82,0 +80,0 @@ finalView?: "month" | "year" | "decade" | "century";

@@ -0,0 +0,0 @@ import * as React from 'react';

import * as React from 'react';
interface ReactWidgetsCommonProps<C> extends React.Props<C> {
export interface ReactWidgetsCommonProps<C> extends React.Props<C> {
/**

@@ -35,3 +35,3 @@ * Disable the widget, if an Array of values is passed in only those values will be disabled.

interface ReactWidgetsCommonDropdownProps<C> extends ReactWidgetsCommonProps<C> {
export interface ReactWidgetsCommonDropdownProps<C> extends ReactWidgetsCommonProps<C> {
/**

@@ -38,0 +38,0 @@ * Show "drop up" not "drop down"

@@ -1,4 +0,3 @@

import * as React from 'react';
import { ComponentClass, KeyboardEvent, ReactElement, ReactType } from 'react';
import { ReactWidgetsCommonDropdownProps, AutoFocus } from './CommonProps';
import { KeyboardEvent } from 'react';

@@ -23,3 +22,3 @@ interface DateTimePickerProps extends ReactWidgetsCommonDropdownProps<DateTimePickerClass>, AutoFocus {

*/
timeComponent?: React.ReactType | string;
timeComponent?: ReactType | string;
/**

@@ -88,3 +87,2 @@ * The minimum Date that can be selected. Min only limits selection, it doesn't constrain

* The starting and lowest level view the calendar can navigate down to.
* @enum "month" "year" "decade" "century"
*/

@@ -95,3 +93,2 @@ initialView?: "month" | "year" | "decade" | "century";

* initialView.
* @enum "month" "year" "decade" "century"
*/

@@ -138,12 +135,10 @@ finalView?: "month" | "year" | "decade" | "century";

* handle the opening and closing internally.
* @enum false "date" "time"
* @default false
*/
open?: boolean | "date" | "time";
open?: false | "date" | "time";
/**
* The defaultOpen prop can be used to set an
* initialization value for uncontrolled widgets.
* @enum false "calendar" "time"
*/
defaultOpen?: boolean | "calendar" | "time";
defaultOpen?: false | "calendar" | "time";
/**

@@ -164,4 +159,4 @@ * Called when the DateTimePicker is about to open or close. onToggle should be used when

/**
* Text to display in the input when the value is empty.
*/
* Text to display in the input when the value is empty.
*/
placeholder?: string;

@@ -181,3 +176,3 @@ /**

*/
popupTransition?: React.ReactType | string;
popupTransition?: ReactType | string;
}

@@ -198,5 +193,5 @@

interface DateTimePicker extends React.ReactElement<DateTimePickerProps> {}
interface DateTimePickerClass extends React.ComponentClass<DateTimePickerProps> {}
interface DateTimePicker extends ReactElement<DateTimePickerProps> {}
interface DateTimePickerClass extends ComponentClass<DateTimePickerProps> {}
declare var DateTimePicker: DateTimePickerClass;
export = DateTimePicker;

@@ -5,7 +5,6 @@ import * as React from 'react';

interface DropdownListProps extends ReactWidgetsCommonDropdownProps<DropdownListClass>, AutoFocus {
/**
* Allow to create a new option on the data list.
*/
allowCreate?: boolean | 'onFilter'
allowCreate?: boolean | 'onFilter';
/**

@@ -18,4 +17,4 @@ * The current value of the DropdownList. This can be an object (such as a member of the

/**
* Default value.
*/
* Default value.
*/
defaultValue?: any;

@@ -128,5 +127,4 @@ /**

* for each passed in item (analogous to the array.filter builtin)
* @enum false "startsWith" "endsWith" "contains"
*/
filter?: boolean | "startsWith" | "endsWith" | "contains" | ((dataItem: any, str: string) => boolean);
filter?: false | "startsWith" | "endsWith" | "contains" | ((dataItem: any, str: string) => boolean);
/**

@@ -133,0 +131,0 @@ * Use in conjunction with the filter prop. Filter the list without regard for case. This

@@ -125,6 +125,5 @@ import * as React from 'react';

* item (analogous to the array.filter builtin)
* @enum false "startsWith" "endsWith" "contains" function(String item)
* @default startsWith
*/
filter?: boolean | "startsWith" | "endsWith" | "contains" | ((dataItem: any, searchTerm: string) => boolean);
filter?: false | "startsWith" | "endsWith" | "contains" | ((dataItem: any, searchTerm: string) => boolean);
/**

@@ -131,0 +130,0 @@ * Use in conjunction with the filter prop. Filter the list without regard for case. This

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -114,3 +114,3 @@ import * as React from 'react';

*/
emptyList?: string | ((props: SelectListProps) => string)
emptyList?: string | ((props: SelectListProps) => string);
}

@@ -117,0 +117,0 @@

{
"name": "@types/react-widgets",
"version": "4.1.6",
"version": "4.1.7",
"description": "TypeScript definitions for react-widgets",

@@ -34,2 +34,3 @@ "license": "MIT",

"main": "",
"types": "",
"repository": {

@@ -43,4 +44,4 @@ "type": "git",

},
"typesPublisherContentHash": "c0be89d9652c5c0df50906c32fea5851b616d481fedb56fb7f633f44af5b0523",
"typesPublisherContentHash": "5927d50aa203a91c0e880c19d3ff3e94e8fd881900e7efc64b62d42c179cdb3b",
"typeScriptVersion": "2.8"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Fri, 14 Sep 2018 16:16:18 GMT
* Last updated: Tue, 16 Oct 2018 01:12:05 GMT
* Dependencies: react

@@ -14,0 +14,0 @@ * Global values: none

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