@veracity/vui 2.14.8-beta.0 → 2.14.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/input/input.js
CHANGED
|
@@ -138,7 +138,7 @@ exports.Input = (0, core_1.vui)((props, ref) => {
|
|
|
138
138
|
(0, utils_1.isString)(iconRight) ? react_1.default.createElement(inputIcon_1.default, { mr: 1, name: iconRight }) : iconRight,
|
|
139
139
|
itemRight,
|
|
140
140
|
state && react_1.default.createElement(inputIcon_1.default, Object.assign({ mr: 1 }, (_b = states[state]) === null || _b === void 0 ? void 0 : _b.iconProps)),
|
|
141
|
-
allowClear && (react_1.default.createElement(button_1.IconButton, { disabled: !valueInternal, icon: "falTimes",
|
|
141
|
+
allowClear && (react_1.default.createElement(button_1.IconButton, { disabled: !valueInternal, icon: "falTimes", onClick: onClear, size: size, title: "Clear" })),
|
|
142
142
|
showCount && (react_1.default.createElement(t_1.T, { className: "vui-inputCount", color: maxLength && count > maxLength ? consts_1.inputColors.error : consts_1.inputColors.helpText, position: "absolute", right: 0, size: "sm", top: "calc(100% + 1px)" },
|
|
143
143
|
count,
|
|
144
144
|
" ",
|
package/dist/esm/input/input.js
CHANGED
|
@@ -97,7 +97,7 @@ export const Input = vui((props, ref) => {
|
|
|
97
97
|
isString(iconRight) ? React.createElement(InputIcon, { mr: 1, name: iconRight }) : iconRight,
|
|
98
98
|
itemRight,
|
|
99
99
|
state && React.createElement(InputIcon, { mr: 1, ...states[state]?.iconProps }),
|
|
100
|
-
allowClear && (React.createElement(IconButton, { disabled: !valueInternal, icon: "falTimes",
|
|
100
|
+
allowClear && (React.createElement(IconButton, { disabled: !valueInternal, icon: "falTimes", onClick: onClear, size: size, title: "Clear" })),
|
|
101
101
|
showCount && (React.createElement(T, { className: "vui-inputCount", color: maxLength && count > maxLength ? inputColors.error : inputColors.helpText, position: "absolute", right: 0, size: "sm", top: "calc(100% + 1px)" },
|
|
102
102
|
count,
|
|
103
103
|
" ",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "2.14.8-beta.
|
|
3
|
+
"version": "2.14.8-beta.1",
|
|
4
4
|
"description": "Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
package/src/input/input.tsx
CHANGED
|
@@ -176,7 +176,7 @@ export const Input = vui<'div', InputProps>((props, ref) => {
|
|
|
176
176
|
{itemRight}
|
|
177
177
|
{state && <InputIcon mr={1} {...states[state]?.iconProps} />}
|
|
178
178
|
{allowClear && (
|
|
179
|
-
<IconButton disabled={!valueInternal} icon="falTimes"
|
|
179
|
+
<IconButton disabled={!valueInternal} icon="falTimes" onClick={onClear} size={size} title="Clear" />
|
|
180
180
|
)}
|
|
181
181
|
{showCount && (
|
|
182
182
|
<T
|