@xqmsg/ui-core 0.16.0 → 0.16.2
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/components/input/StackedInput/StackedInput.d.ts +2 -0
- package/dist/components/input/components/dropdown/index.d.ts +1 -0
- package/dist/components/input/components/label/index.d.ts +1 -0
- package/dist/components/input/index.d.ts +4 -1
- package/dist/ui-core.cjs.development.js +285 -303
- 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 +288 -306
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/input/Input.stories.tsx +0 -1
- package/src/components/input/StackedInput/StackedInput.tsx +14 -3
- package/src/components/input/StackedMultiSelect/index.tsx +113 -21
- package/src/components/input/StackedPilledInput/index.tsx +27 -26
- package/src/components/input/StackedSelect/index.tsx +117 -18
- package/src/components/input/components/dropdown/index.tsx +10 -3
- package/src/components/input/components/label/index.tsx +14 -3
- package/src/components/input/index.tsx +17 -1
- package/src/theme/customXQChakraTheme.ts +0 -2
- package/dist/theme/components/modal.d.ts +0 -242
- package/src/theme/components/modal.ts +0 -216
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { InputFieldProps } from '../InputTypes';
|
|
3
3
|
export interface StackedInputProps extends InputFieldProps {
|
|
4
4
|
isRequired?: boolean;
|
|
5
|
+
leftElement?: React.ReactNode;
|
|
6
|
+
rightElement?: React.ReactNode;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* A functional React component utilized to render the `StackedInput` component.
|
|
@@ -15,12 +15,15 @@ export interface InputProps<T extends FieldValues> extends ValidationProps {
|
|
|
15
15
|
control: Control<T, any>;
|
|
16
16
|
onChange?: (value?: string) => void;
|
|
17
17
|
disabled?: boolean;
|
|
18
|
+
tooltipText?: string;
|
|
18
19
|
setValue: UseFormSetValue<T>;
|
|
19
20
|
setError: UseFormSetError<T>;
|
|
20
21
|
clearErrors: UseFormClearErrors<T>;
|
|
22
|
+
leftElement?: React.ReactNode;
|
|
23
|
+
rightElement?: React.ReactNode;
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* A functional React component utilized to render the `Input` component. Utilizes a switch statement
|
|
24
27
|
* to render the correct input based on the `inputType`.
|
|
25
28
|
*/
|
|
26
|
-
export declare function Input<T extends FieldValues>({ inputType, label, ariaLabel, className, placeholder, name, helperText, options, isInvalid, errorText, isRequired, maxLength, defaultValue, control, disabled, onChange, setValue, setError, clearErrors, }: InputProps<T>): JSX.Element;
|
|
29
|
+
export declare function Input<T extends FieldValues>({ inputType, label, ariaLabel, className, placeholder, name, helperText, options, tooltipText, isInvalid, errorText, isRequired, maxLength, defaultValue, control, disabled, rightElement, leftElement, onChange, setValue, setError, clearErrors, }: InputProps<T>): JSX.Element;
|