📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

react-formawesome

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-formawesome - npm Package Compare versions

Comparing version

to
1.0.0-rc7

6

build/src/Checkbox/Checkbox.d.ts
import * as React from "react";
import { FormGroupContextInterface as Context } from "react-formawesome-core";
import { CheckboxProps } from "./CheckboxProps";
export declare class Checkbox extends React.Component<CheckboxProps> {
static readonly propTypes: Partial<import("prop-types").ValidationMap<CheckboxProps>>;
static readonly defaultProps: Partial<CheckboxProps>;
export declare class Checkbox<A = any, D = any> extends React.Component<CheckboxProps<A, D>> {
static readonly propTypes: Partial<import("prop-types").ValidationMap<CheckboxProps<string | number | boolean, string | number | boolean>>>;
static readonly defaultProps: Partial<CheckboxProps<string | number | boolean, string | number | boolean>>;
protected unregister?: Context["unregisterElement"];

@@ -8,0 +8,0 @@ componentWillUnmount(): void;

import * as React from "react";
import * as PropTypes from "prop-types";
export interface CheckboxProps extends React.HTMLProps<HTMLInputElement> {
values: [any, any];
declare type Thing = number | string | boolean;
export interface CheckboxProps<A = Thing, D = Thing> extends React.HTMLProps<HTMLInputElement> {
values: [A, D];
errorClassName?: string;

@@ -11,1 +12,2 @@ activeClassName?: string;

export declare const CheckboxDefaultProps: Partial<CheckboxProps>;
export {};
import * as React from "react";
import { FormGroupContextInterface as Context } from "react-formawesome-core";
import { SelectProps } from "./SelectProps";
export declare class Select extends React.Component<SelectProps> {
export declare class Select<T extends number | string = string> extends React.Component<SelectProps<T>> {
static readonly propTypes: {

@@ -368,3 +368,3 @@ errorClassName?: import("prop-types").Validator<any>;

};
static readonly defaultProps: Partial<SelectProps>;
static readonly defaultProps: Partial<SelectProps<string>>;
protected unregister?: Context["unregisterElement"];

@@ -371,0 +371,0 @@ componentWillUnmount(): void;

import * as React from "react";
import * as PropTypes from "prop-types";
export interface SelectProps extends React.HTMLProps<HTMLSelectElement> {
export interface SelectProps<T extends number | string = string> extends React.HTMLProps<HTMLSelectElement> {
errorClassName?: string;

@@ -8,3 +8,3 @@ focusClassName?: string;

options: Array<{
value: string | number;
value: T;
label: string;

@@ -14,5 +14,5 @@ }>;

children?: (items: Array<{
value: string | number;
value: T;
label: string;
}>, selected: string | number) => React.ReactNode;
}>, selected: T) => React.ReactNode;
}

@@ -19,0 +19,0 @@ export declare const SelectPropTypes: {

{
"name": "react-formawesome",
"version": "1.0.0-rc6",
"version": "1.0.0-rc7",
"description": "React UI lib for validation forms",

@@ -68,3 +68,3 @@ "main": "build/index.js",

"react-dom": "^16.5.2",
"react-formawesome-core": "^1.0.0-rc16",
"react-formawesome-core": "^1.0.0-rc17",
"react-test-renderer": "^16.8.2",

@@ -87,3 +87,3 @@ "request": "^2.88.0",

"prop-types": "^15.6.2",
"react-formawesome-core": "^1.0.0-rc16"
"react-formawesome-core": "^1.0.0-rc17"
},

@@ -90,0 +90,0 @@ "nyc": {