🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@patterninc/react-ui

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patterninc/react-ui - npm Package Compare versions

Comparing version

to
3.0.9

import React from 'react';
declare type CalloutType = (stateName: StateNameType, value: string | number) => void;
declare type StateNameType = string | number | undefined;
declare type TextInputProps = {
declare type TextInputBase = {
value: string | number;

@@ -8,3 +9,2 @@ type?: 'button' | 'checkbox' | 'email' | 'file' | 'hidden' | 'number' | 'password' | 'radio' | 'tel' | 'text' | 'textarea';

debounce?: number;
callout: (stateName: StateNameType, value: string | number) => void;
stateName?: string | number;

@@ -21,3 +21,2 @@ keyUp?: (stateName: StateNameType, value: unknown) => void;

max?: number;
disabled?: boolean;
autoFocus?: boolean;

@@ -35,3 +34,11 @@ onlyWholeNumbers?: boolean;

};
declare type DisabledOrNot = {
disabled: true;
callout?: CalloutType;
} | {
disabled?: false;
callout: CalloutType;
};
declare type TextInputProps = TextInputBase & DisabledOrNot;
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
export default TextInput;
{
"name": "@patterninc/react-ui",
"version": "3.0.8",
"version": "3.0.9",
"main": "dist/react-ui.js",

@@ -5,0 +5,0 @@ "license": "UNLICENSED",