@veracity/vui 2.25.4 → 2.25.5-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.d.ts.map +1 -1
- package/dist/cjs/input/input.js +19 -18
- package/dist/cjs/input/input.js.map +1 -1
- package/dist/esm/input/input.d.ts.map +1 -1
- package/dist/esm/input/input.js +20 -19
- package/dist/esm/input/input.js.map +1 -1
- package/dist/tsconfig.legacy.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/input/input.tsx +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.5-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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useEffect, useId, useMemo, useState } from 'react'
|
|
2
2
|
|
|
3
|
+
import Box from '../box'
|
|
3
4
|
import { IconButton } from '../button'
|
|
4
5
|
import { styled, useStyleConfig, vui, VuiComponent } from '../core'
|
|
5
6
|
import Label from '../label'
|
|
@@ -155,7 +156,7 @@ export const Input = vui<'div', InputProps>((props, ref) => {
|
|
|
155
156
|
filterAutoCompleteOptions={filterAutoCompleteOptions}
|
|
156
157
|
onAutoCompleteSelect={onAutoCompleteSelect}
|
|
157
158
|
>
|
|
158
|
-
|
|
159
|
+
<Box className="vui-inputContainer" column>
|
|
159
160
|
{isString(label) ? (
|
|
160
161
|
<Label
|
|
161
162
|
aria-disabled={disabled}
|
|
@@ -233,16 +234,15 @@ export const Input = vui<'div', InputProps>((props, ref) => {
|
|
|
233
234
|
</T>
|
|
234
235
|
)}
|
|
235
236
|
</InputBase>
|
|
236
|
-
|
|
237
|
+
{!!helpText && <HelpText size={helpTextSize[size]}>{helpText}</HelpText>}
|
|
238
|
+
{!!errorText && (
|
|
239
|
+
<HelpText isError size={helpTextSize[size]}>
|
|
240
|
+
{errorText}
|
|
241
|
+
</HelpText>
|
|
242
|
+
)}
|
|
243
|
+
</Box>
|
|
237
244
|
</AutoCompletePopover>
|
|
238
245
|
)}
|
|
239
|
-
|
|
240
|
-
{!!helpText && <HelpText size={helpTextSize[size]}>{helpText}</HelpText>}
|
|
241
|
-
{!!errorText && (
|
|
242
|
-
<HelpText isError size={helpTextSize[size]}>
|
|
243
|
-
{errorText}
|
|
244
|
-
</HelpText>
|
|
245
|
-
)}
|
|
246
246
|
</InputProvider>
|
|
247
247
|
)
|
|
248
248
|
}) as VuiComponent<'div', InputProps> & {
|