@xqmsg/ui-core 0.24.8 → 0.24.9
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/ui-core.cjs.development.js +3 -11
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +3 -11
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/input/StackedMultiSelect/index.tsx +1 -1
- package/src/components/input/index.tsx +0 -9
package/package.json
CHANGED
|
@@ -339,6 +339,7 @@ const StackedMultiSelect = React.forwardRef<
|
|
|
339
339
|
width="0"
|
|
340
340
|
autoComplete="off"
|
|
341
341
|
type="text"
|
|
342
|
+
ref={inputRef}
|
|
342
343
|
tabIndex={-1}
|
|
343
344
|
_focus={{ boxShadow: 'none !important' }}
|
|
344
345
|
/>
|
|
@@ -356,7 +357,6 @@ const StackedMultiSelect = React.forwardRef<
|
|
|
356
357
|
loading={loadingOptions}
|
|
357
358
|
>
|
|
358
359
|
<Input
|
|
359
|
-
ref={inputRef}
|
|
360
360
|
value={searchValue}
|
|
361
361
|
onChange={handleInput}
|
|
362
362
|
disabled={loadingOptions}
|
|
@@ -93,10 +93,6 @@ export function Input<T extends FieldValues>({
|
|
|
93
93
|
ref: RefCallBack,
|
|
94
94
|
value: string
|
|
95
95
|
) {
|
|
96
|
-
if (inputType === 'text') {
|
|
97
|
-
console.log(errorText);
|
|
98
|
-
console.log(isInvalid);
|
|
99
|
-
}
|
|
100
96
|
switch (inputType) {
|
|
101
97
|
case 'text':
|
|
102
98
|
return (
|
|
@@ -119,8 +115,6 @@ export function Input<T extends FieldValues>({
|
|
|
119
115
|
value={value}
|
|
120
116
|
variant={variant}
|
|
121
117
|
label={label as string}
|
|
122
|
-
setError={setError as UseFormSetError<FieldValues>}
|
|
123
|
-
clearErrors={clearErrors as UseFormClearErrors<FieldValues>}
|
|
124
118
|
/>
|
|
125
119
|
);
|
|
126
120
|
case 'radio':
|
|
@@ -151,8 +145,6 @@ export function Input<T extends FieldValues>({
|
|
|
151
145
|
onBlur={onBlur}
|
|
152
146
|
setValue={setValue as UseFormSetValue<FieldValues>}
|
|
153
147
|
control={control as Control<FieldValues, any>}
|
|
154
|
-
setError={setError as UseFormSetError<FieldValues>}
|
|
155
|
-
clearErrors={clearErrors as UseFormClearErrors<FieldValues>}
|
|
156
148
|
ref={ref}
|
|
157
149
|
disabled={disabled}
|
|
158
150
|
value={value}
|
|
@@ -304,7 +296,6 @@ export function Input<T extends FieldValues>({
|
|
|
304
296
|
)}
|
|
305
297
|
{isInvalid && <FormErrorMessage>{errorText}</FormErrorMessage>}
|
|
306
298
|
{helperText && <FormHelperText>{helperText}</FormHelperText>}
|
|
307
|
-
{errorText} {isInvalid?.toString()}
|
|
308
299
|
</FormControl>
|
|
309
300
|
)}
|
|
310
301
|
/>
|