@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.
Files changed (47) hide show
  1. package/README.md +8 -13
  2. package/dist/components/input/StackedMultiSelect/index.d.ts +1 -0
  3. package/dist/components/input/StackedSelect/index.d.ts +1 -0
  4. package/dist/components/input/components/dropdown/index.d.ts +2 -0
  5. package/dist/components/input/index.d.ts +2 -1
  6. package/dist/ui-core.cjs.development.js +197 -113
  7. package/dist/ui-core.cjs.development.js.map +1 -1
  8. package/dist/ui-core.cjs.production.min.js +1 -1
  9. package/dist/ui-core.cjs.production.min.js.map +1 -1
  10. package/dist/ui-core.esm.js +198 -114
  11. package/dist/ui-core.esm.js.map +1 -1
  12. package/package.json +6 -2
  13. package/src/components/icons/checkmark/index.tsx +1 -1
  14. package/src/components/icons/chevron/down/index.tsx +7 -1
  15. package/src/components/icons/chevron/right/index.tsx +1 -1
  16. package/src/components/icons/clock/index.tsx +1 -1
  17. package/src/components/icons/dropdown/index.tsx +5 -1
  18. package/src/components/icons/error/index.tsx +1 -1
  19. package/src/components/icons/file/fill/index.tsx +1 -1
  20. package/src/components/icons/file/outline/index.tsx +1 -1
  21. package/src/components/icons/folder/add/fill/index.tsx +1 -1
  22. package/src/components/icons/folder/add/outline/index.tsx +1 -1
  23. package/src/components/icons/folder/outline/index.tsx +1 -1
  24. package/src/components/icons/group/index.tsx +1 -1
  25. package/src/components/icons/home/index.tsx +1 -1
  26. package/src/components/icons/image/index.tsx +1 -1
  27. package/src/components/icons/link/index.tsx +1 -1
  28. package/src/components/icons/menu/index.tsx +1 -1
  29. package/src/components/icons/microsoft/index.tsx +1 -1
  30. package/src/components/icons/neutral/index.tsx +3 -1
  31. package/src/components/icons/page/index.tsx +1 -1
  32. package/src/components/icons/positive/index.tsx +1 -1
  33. package/src/components/icons/question/index.tsx +1 -1
  34. package/src/components/icons/search/index.tsx +1 -1
  35. package/src/components/icons/services/index.tsx +1 -1
  36. package/src/components/icons/settings/index.tsx +3 -1
  37. package/src/components/icons/table/fill/index.tsx +1 -1
  38. package/src/components/icons/table/outline/index.tsx +1 -1
  39. package/src/components/icons/task/index.tsx +1 -1
  40. package/src/components/icons/trash/index.tsx +1 -1
  41. package/src/components/icons/video/index.tsx +1 -1
  42. package/src/components/icons/warning/index.tsx +1 -1
  43. package/src/components/input/Input.stories.tsx +9 -0
  44. package/src/components/input/StackedMultiSelect/index.tsx +296 -277
  45. package/src/components/input/StackedSelect/index.tsx +46 -33
  46. package/src/components/input/components/dropdown/index.tsx +61 -12
  47. package/src/components/input/index.tsx +4 -0
package/README.md CHANGED
@@ -1,19 +1,14 @@
1
- ## To test via yalc:
1
+ ## To test:
2
2
 
3
- Install `yalc` globally:
4
- `npm i -g yalc`
3
+ Update the theme, components, etc. however you wish and when you are ready to test build:
4
+ `yarn build`
5
5
 
6
- Update the theme, components, etc. however you wish and when you are ready to test run the following:
7
- `yarn build && yalc publish`
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
- _Take note of the output of the `yalc publish` command_
10
-
11
- Example: `@xqmsg/ui-core@[VERSION] published in store`
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;