@xqmsg/ui-core 0.24.2 → 0.24.4
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/README.md +8 -13
- package/dist/components/input/StackedMultiSelect/index.d.ts +1 -0
- package/dist/components/input/StackedSelect/index.d.ts +1 -0
- package/dist/components/input/components/dropdown/index.d.ts +2 -0
- package/dist/components/input/index.d.ts +2 -1
- package/dist/ui-core.cjs.development.js +197 -113
- 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 +198 -114
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +6 -2
- package/src/components/icons/checkmark/index.tsx +1 -1
- package/src/components/icons/chevron/down/index.tsx +7 -1
- package/src/components/icons/chevron/right/index.tsx +1 -1
- package/src/components/icons/clock/index.tsx +1 -1
- package/src/components/icons/dropdown/index.tsx +5 -1
- package/src/components/icons/error/index.tsx +1 -1
- package/src/components/icons/file/fill/index.tsx +1 -1
- package/src/components/icons/file/outline/index.tsx +1 -1
- package/src/components/icons/folder/add/fill/index.tsx +1 -1
- package/src/components/icons/folder/add/outline/index.tsx +1 -1
- package/src/components/icons/folder/outline/index.tsx +1 -1
- package/src/components/icons/group/index.tsx +1 -1
- package/src/components/icons/home/index.tsx +1 -1
- package/src/components/icons/image/index.tsx +1 -1
- package/src/components/icons/link/index.tsx +1 -1
- package/src/components/icons/menu/index.tsx +1 -1
- package/src/components/icons/microsoft/index.tsx +1 -1
- package/src/components/icons/neutral/index.tsx +3 -1
- package/src/components/icons/page/index.tsx +1 -1
- package/src/components/icons/positive/index.tsx +1 -1
- package/src/components/icons/question/index.tsx +1 -1
- package/src/components/icons/search/index.tsx +1 -1
- package/src/components/icons/services/index.tsx +1 -1
- package/src/components/icons/settings/index.tsx +3 -1
- package/src/components/icons/table/fill/index.tsx +1 -1
- package/src/components/icons/table/outline/index.tsx +1 -1
- package/src/components/icons/task/index.tsx +1 -1
- package/src/components/icons/trash/index.tsx +1 -1
- package/src/components/icons/video/index.tsx +1 -1
- package/src/components/icons/warning/index.tsx +1 -1
- package/src/components/input/Input.stories.tsx +9 -0
- package/src/components/input/StackedMultiSelect/index.tsx +296 -277
- package/src/components/input/StackedSelect/index.tsx +46 -33
- package/src/components/input/components/dropdown/index.tsx +61 -12
- package/src/components/input/index.tsx +4 -0
package/README.md
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
## To test
|
|
1
|
+
## To test:
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
`
|
|
3
|
+
Update the theme, components, etc. however you wish and when you are ready to test build:
|
|
4
|
+
`yarn build`
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
`
|
|
6
|
+
Then in whatever project you would like to install this local bundled build into run change ui-core package version in package.json to:
|
|
7
|
+
`"@xqmsg/ui-core": "file:../ui-core"`
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Then in whatever project you would like to install this local bundled build into run the following:
|
|
14
|
-
`yalc add @xqmsg/ui-core@[VERSION]`
|
|
15
|
-
|
|
16
|
-
Any time you make changes, rebuild with the first command, and add to your project with the command above.
|
|
9
|
+
Any time you make changes, rebuild ui-core and reinstall in project.
|
|
10
|
+
`rm -rf node_modules/@xqmsg`
|
|
11
|
+
`pnpm i`
|
|
17
12
|
|
|
18
13
|
## Once you are satisfied with your work and would like to create a PR:
|
|
19
14
|
|
|
@@ -7,6 +7,7 @@ export interface StackedMultiSelectProps extends ReactSelectFieldProps {
|
|
|
7
7
|
setError: UseFormSetError<FieldValues>;
|
|
8
8
|
clearErrors: UseFormClearErrors<FieldValues>;
|
|
9
9
|
control: Control<FieldValues, any>;
|
|
10
|
+
loadingOptions?: boolean;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* A functional React component utilized to render the `StackedMultiSelect` component.
|
|
@@ -8,6 +8,7 @@ export interface StackedSelectProps extends StackedInputProps {
|
|
|
8
8
|
setValue: UseFormSetValue<FieldValues>;
|
|
9
9
|
control: Control<FieldValues, any>;
|
|
10
10
|
handleOnChange: (value?: string) => void;
|
|
11
|
+
loadingOptions?: boolean;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* A functional React component utilized to render the `StackedSelect` component.
|
|
@@ -6,6 +6,8 @@ export interface DropdownProps {
|
|
|
6
6
|
dropdownRef: RefObject<HTMLDivElement>;
|
|
7
7
|
position: 'top' | 'bottom';
|
|
8
8
|
optionIndex?: number | null;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
loading?: boolean;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* A functional React component utilized to render the `Dropdown` component
|
|
@@ -25,9 +25,10 @@ export interface InputProps<T extends FieldValues = FieldValues> extends Validat
|
|
|
25
25
|
rightElement?: React.ReactNode;
|
|
26
26
|
variant?: string;
|
|
27
27
|
separators?: string[];
|
|
28
|
+
loadingOptions?: boolean;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* A functional React component utilized to render the `Input` component. Utilizes a switch statement
|
|
31
32
|
* to render the correct input based on the `inputType`.
|
|
32
33
|
*/
|
|
33
|
-
export declare function Input<T extends FieldValues>({ inputType, label, ariaLabel, className, placeholder, name, helperText, options, tooltipText, isInvalid, errorText, isRequired, maxLength, defaultValue, fullOptions, control, disabled, rightElement, leftElement, allowDefault, variant, onChange, setValue, setError, clearErrors, separators, }: InputProps<T>): React.JSX.Element;
|
|
34
|
+
export declare function Input<T extends FieldValues>({ inputType, label, ariaLabel, className, placeholder, name, helperText, options, tooltipText, isInvalid, errorText, isRequired, maxLength, defaultValue, fullOptions, control, disabled, rightElement, leftElement, allowDefault, variant, onChange, setValue, setError, clearErrors, separators, loadingOptions, }: InputProps<T>): React.JSX.Element;
|