@smart-react-components/ui
Advanced tools
Comparing version 2.0.0-alpha-42 to 2.0.0-alpha-43
@@ -5,3 +5,3 @@ import { ChangeEvents } from '@smart-react-components/core/element-props/change-events'; | ||
import { KeyboardEvents } from '@smart-react-components/core/element-props/keyboard-events'; | ||
import { ContentElement, PaletteProp, Partial, ResponsiveProp, SetState, ShapeProp, SizeProp } from '@smart-react-components/core/types'; | ||
import { ContentElement, JSXElementProps, PaletteProp, Partial, ResponsiveProp, SetState, ShapeProp, SizeProp } from '@smart-react-components/core/types'; | ||
import React from 'react'; | ||
@@ -13,2 +13,3 @@ import { InputType } from '../types'; | ||
hasSpellCheck?: boolean; | ||
inputProps?: JSXElementProps; | ||
isBlock?: boolean; | ||
@@ -15,0 +16,0 @@ isDisabled?: boolean; |
@@ -55,3 +55,3 @@ "use strict"; | ||
(leftAddon && !((_d = leftAddon === null || leftAddon === void 0 ? void 0 : leftAddon.props) === null || _d === void 0 ? void 0 : _d.isExcluded)) && leftAddon, | ||
react_1.default.cloneElement(props.template, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, element_props_1.default)(props, [change_events_1.default, focus_events_1.default, keyboard_events_1.default])), (typeof props.defaultValue !== 'undefined' && { defaultValue: props.defaultValue })), (typeof props.hasSpellCheck !== 'undefined' && { spellCheck: props.hasSpellCheck })), (props.isDisabled && { disabled: true })), (props.isReadOnly && { readOnly: true })), (props.isRequired && { required: true })), (typeof props.placeholder !== 'undefined' && { placeholder: props.placeholder })), (typeof props.value !== 'undefined' && { value: props.value })), { hasBorder: props.hasBorder, hasLeftAddon: !!leftAddon, hasRightAddon: !!rightAddon, inputSize: props.size, inputSizeSm: props.sizeSm, inputSizeMd: props.sizeMd, inputSizeLg: props.sizeLg, inputSizeXl: props.sizeXl, isDisabled: props.isDisabled, isFocused, isOutline: props.isOutline, isSoft: props.isSoft, onBlur: handleOnBlur, onChange: handleOnChange, onFocus: handleOnFocus, palette: props.palette, ref: forwardRef, shape: props.shape, type: props.type })), | ||
react_1.default.cloneElement(props.template, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, element_props_1.default)(props, [change_events_1.default, focus_events_1.default, keyboard_events_1.default])), (typeof props.defaultValue !== 'undefined' && { defaultValue: props.defaultValue })), (typeof props.hasSpellCheck !== 'undefined' && { spellCheck: props.hasSpellCheck })), (props.isDisabled && { disabled: true })), (props.isReadOnly && { readOnly: true })), (props.isRequired && { required: true })), (typeof props.placeholder !== 'undefined' && { placeholder: props.placeholder })), (typeof props.value !== 'undefined' && { value: props.value })), props.inputProps), { hasBorder: props.hasBorder, hasLeftAddon: !!leftAddon, hasRightAddon: !!rightAddon, inputSize: props.size, inputSizeSm: props.sizeSm, inputSizeMd: props.sizeMd, inputSizeLg: props.sizeLg, inputSizeXl: props.sizeXl, isDisabled: props.isDisabled, isFocused, isOutline: props.isOutline, isSoft: props.isSoft, onBlur: handleOnBlur, onChange: handleOnChange, onFocus: handleOnFocus, palette: props.palette, ref: forwardRef, shape: props.shape, type: props.type })), | ||
(rightAddon && !((_e = rightAddon === null || rightAddon === void 0 ? void 0 : rightAddon.props) === null || _e === void 0 ? void 0 : _e.isExcluded)) && rightAddon), | ||
@@ -62,2 +62,3 @@ ((_f = rightAddon === null || rightAddon === void 0 ? void 0 : rightAddon.props) === null || _f === void 0 ? void 0 : _f.isExcluded) && rightAddon))); | ||
hasBorder: true, | ||
inputProps: {}, | ||
isBlock: true, | ||
@@ -64,0 +65,0 @@ isOutline: true, |
{ | ||
"name": "@smart-react-components/ui", | ||
"version": "2.0.0-alpha-42", | ||
"version": "2.0.0-alpha-43", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
457953
9556