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

@snack-uikit/input-private

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snack-uikit/input-private - npm Package Compare versions

Comparing version 4.4.1 to 4.4.2-preview-aaafcc64.0

4

dist/cjs/components/InputPrivate/InputPrivate.js

@@ -45,2 +45,3 @@ "use strict";

onKeyDown,
onPaste,
tabIndex = 0,

@@ -50,3 +51,3 @@ onClick,

} = _a,
rest = __rest(_a, ["name", "value", "onChange", "placeholder", "id", "className", "type", "disabled", "readonly", "autoComplete", "maxLength", "min", "max", "step", "onFocus", "onBlur", "onKeyDown", "tabIndex", "onClick", "onMouseDown"]);
rest = __rest(_a, ["name", "value", "onChange", "placeholder", "id", "className", "type", "disabled", "readonly", "autoComplete", "maxLength", "min", "max", "step", "onFocus", "onBlur", "onKeyDown", "onPaste", "tabIndex", "onClick", "onMouseDown"]);
const onChangeHandler = e => {

@@ -83,2 +84,3 @@ onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value, e);

onKeyDown: onKeyDown,
onPaste: onPaste,
tabIndex: tabIndex,

@@ -85,0 +87,0 @@ onClick: onClick,

@@ -1,2 +0,2 @@

import { ChangeEvent, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, RefAttributes } from 'react';
import { ChangeEvent, ClipboardEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, RefAttributes } from 'react';
import { ValueOf, WithSupportProps } from '@snack-uikit/utils';

@@ -52,4 +52,6 @@ import { TYPE } from './constants';

onBlur?: FocusEventHandler<HTMLInputElement>;
/** Колбек обработки нажатия клавиши клавиатуры */
/** Колбек обработки начала нажатия клавиши клавиатуры */
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
/** Колбек обработки вставки значения */
onPaste?: ClipboardEventHandler<HTMLInputElement>;
/** Колбек обработки клика */

@@ -56,0 +58,0 @@ onClick?: MouseEventHandler<HTMLInputElement>;

@@ -19,3 +19,3 @@ var __rest = (this && this.__rest) || function (s, e) {

export const InputPrivate = forwardRef((_a, ref) => {
var { name, value = '', onChange, placeholder, id, className, type = TYPE.Text, disabled = false, readonly = false, autoComplete: autoCompleteProp = false, maxLength, min, max, step, onFocus, onBlur, onKeyDown, tabIndex = 0, onClick, onMouseDown } = _a, rest = __rest(_a, ["name", "value", "onChange", "placeholder", "id", "className", "type", "disabled", "readonly", "autoComplete", "maxLength", "min", "max", "step", "onFocus", "onBlur", "onKeyDown", "tabIndex", "onClick", "onMouseDown"]);
var { name, value = '', onChange, placeholder, id, className, type = TYPE.Text, disabled = false, readonly = false, autoComplete: autoCompleteProp = false, maxLength, min, max, step, onFocus, onBlur, onKeyDown, onPaste, tabIndex = 0, onClick, onMouseDown } = _a, rest = __rest(_a, ["name", "value", "onChange", "placeholder", "id", "className", "type", "disabled", "readonly", "autoComplete", "maxLength", "min", "max", "step", "onFocus", "onBlur", "onKeyDown", "onPaste", "tabIndex", "onClick", "onMouseDown"]);
const onChangeHandler = e => {

@@ -36,3 +36,3 @@ onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value, e);

}
return (_jsx("input", Object.assign({ name: name, maxLength: maxLength, id: id, className: cn(className, styles.inputPrivate), autoComplete: autoComplete, ref: ref, value: value, onChange: onChangeHandler, placeholder: placeholder, type: type, disabled: disabled, readOnly: readonly, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, tabIndex: tabIndex, onClick: onClick, onMouseDown: onMouseDown, min: min, max: max, step: step, title: '' }, extractSupportProps(rest))));
return (_jsx("input", Object.assign({ name: name, maxLength: maxLength, id: id, className: cn(className, styles.inputPrivate), autoComplete: autoComplete, ref: ref, value: value, onChange: onChangeHandler, placeholder: placeholder, type: type, disabled: disabled, readOnly: readonly, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onPaste: onPaste, tabIndex: tabIndex, onClick: onClick, onMouseDown: onMouseDown, min: min, max: max, step: step, title: '' }, extractSupportProps(rest))));
});

@@ -1,2 +0,2 @@

import { ChangeEvent, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, RefAttributes } from 'react';
import { ChangeEvent, ClipboardEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, RefAttributes } from 'react';
import { ValueOf, WithSupportProps } from '@snack-uikit/utils';

@@ -52,4 +52,6 @@ import { TYPE } from './constants';

onBlur?: FocusEventHandler<HTMLInputElement>;
/** Колбек обработки нажатия клавиши клавиатуры */
/** Колбек обработки начала нажатия клавиши клавиатуры */
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
/** Колбек обработки вставки значения */
onPaste?: ClipboardEventHandler<HTMLInputElement>;
/** Колбек обработки клика */

@@ -56,0 +58,0 @@ onClick?: MouseEventHandler<HTMLInputElement>;

@@ -7,3 +7,3 @@ {

"title": "Input Private",
"version": "4.4.1",
"version": "4.4.2-preview-aaafcc64.0",
"sideEffects": [

@@ -44,3 +44,3 @@ "*.css",

},
"gitHead": "ac8fa414e1a84f72594d9c509b0daca04b5e48be"
"gitHead": "9b5447b2d25fb8a5aa0517bafe2cd1613e6e7531"
}

@@ -55,3 +55,4 @@ # Input Private

| onBlur | `FocusEventHandler<HTMLInputElement>` | - | Колбек обработки потери фокуса |
| onKeyDown | `KeyboardEventHandler<HTMLInputElement>` | - | Колбек обработки нажатия клавиши клавиатуры |
| onKeyDown | `KeyboardEventHandler<HTMLInputElement>` | - | Колбек обработки начала нажатия клавиши клавиатуры |
| onPaste | `ClipboardEventHandler<HTMLInputElement>` | - | Колбек обработки вставки значения |
| tabIndex | `number` | - | Значение атрибута tab-index |

@@ -58,0 +59,0 @@ | onClick | `MouseEventHandler<HTMLInputElement>` | - | Колбек обработки клика |

@@ -1,2 +0,9 @@

import { ChangeEvent, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, RefAttributes } from 'react';
import {
ChangeEvent,
ClipboardEventHandler,
FocusEventHandler,
KeyboardEventHandler,
MouseEventHandler,
RefAttributes,
} from 'react';

@@ -57,4 +64,6 @@ import { ValueOf, WithSupportProps } from '@snack-uikit/utils';

onBlur?: FocusEventHandler<HTMLInputElement>;
/** Колбек обработки нажатия клавиши клавиатуры */
/** Колбек обработки начала нажатия клавиши клавиатуры */
onKeyDown?: KeyboardEventHandler<HTMLInputElement>;
/** Колбек обработки вставки значения */
onPaste?: ClipboardEventHandler<HTMLInputElement>;
/** Колбек обработки клика */

@@ -61,0 +70,0 @@ onClick?: MouseEventHandler<HTMLInputElement>;

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