@accurat/react-components
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -9,3 +9,3 @@ /// <reference types="react" /> | ||
inputClassName?: string; | ||
style?: object; | ||
style?: React.CSSProperties; | ||
disabled?: boolean; | ||
@@ -17,2 +17,6 @@ checked?: boolean; | ||
export declare const InputDefaultProps: object; | ||
declare type WeakenType<T, K extends keyof T> = { | ||
[P in keyof T]: P extends K ? unknown : T[P]; | ||
}; | ||
export declare type ChangelessInputProps = WeakenType<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>; | ||
export {}; |
import * as React from 'react'; | ||
import { InputPropsTypes, BooleanChangeFnType } from '../../commons/interfaces'; | ||
import { InputPropsTypes, BooleanChangeFnType, ChangelessInputProps } from '../../commons/interfaces'; | ||
interface SVGProps { | ||
@@ -7,3 +7,3 @@ className?: string; | ||
} | ||
export interface CheckBoxArguments extends InputPropsTypes { | ||
export interface CheckBoxArguments extends InputPropsTypes, ChangelessInputProps { | ||
propSvg?: React.SFC<SVGProps>; | ||
@@ -10,0 +10,0 @@ onChange?: BooleanChangeFnType; |
@@ -1,5 +0,5 @@ | ||
import { InputPropsTypes, BooleanChangeFnType } from '../../commons/interfaces'; | ||
export interface RadioProps extends InputPropsTypes { | ||
import { InputPropsTypes, BooleanChangeFnType, ChangelessInputProps } from '../../commons/interfaces'; | ||
export interface RadioProps extends InputPropsTypes, ChangelessInputProps { | ||
onChange?: BooleanChangeFnType; | ||
} | ||
export default function Radio({ children, className, inputClassName, style, disabled, checked, onChange, reset, ...props }: RadioProps): JSX.Element; |
@@ -1,3 +0,4 @@ | ||
import { InputPropsTypes, InputChangeFnType } from '../../commons/interfaces'; | ||
export interface TextInputpropsType extends InputPropsTypes { | ||
import * as React from 'react'; | ||
import { InputPropsTypes, InputChangeFnType } from 'src/commons/interfaces'; | ||
export interface TextInputpropsType extends InputPropsTypes, React.InputHTMLAttributes<HTMLInputElement> { | ||
onChange?: InputChangeFnType; | ||
@@ -4,0 +5,0 @@ type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'time' | 'date' | 'datetime-local'; |
@@ -1,3 +0,3 @@ | ||
import { InputPropsTypes, BooleanChangeFnType } from '../../commons/interfaces'; | ||
interface ToggleProps extends InputPropsTypes { | ||
import { InputPropsTypes, BooleanChangeFnType, ChangelessInputProps } from '../../commons/interfaces'; | ||
interface ToggleProps extends InputPropsTypes, ChangelessInputProps { | ||
onChange?: BooleanChangeFnType; | ||
@@ -4,0 +4,0 @@ } |
{ | ||
"name": "@accurat/react-components", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Collection of React components used for Accurat projects.", | ||
@@ -36,3 +36,3 @@ "main": "lib/react-components.js", | ||
"build:styleguide": "rm -rf docs && styleguidist build", | ||
"publish": "npm publish --access public", | ||
"pub": "npm publish --access public", | ||
"prepublishOnly": "npm run build" | ||
@@ -39,0 +39,0 @@ }, |
1001879
12558