@hitachivantara/uikit-react-core 5.0.0-next.15 → 5.0.0-next.17

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 (54) hide show
  1. package/dist/cjs/components/AppSwitcher/Action/Action.cjs.map +1 -1
  2. package/dist/cjs/components/AppSwitcher/AppSwitcher.cjs.map +1 -1
  3. package/dist/cjs/components/Banner/Banner.cjs +1 -1
  4. package/dist/cjs/components/Banner/Banner.cjs.map +1 -1
  5. package/dist/cjs/components/Banner/BannerContent/ActionContainer/ActionContainer.cjs.map +1 -1
  6. package/dist/cjs/components/Banner/BannerContent/BannerContent.cjs +1 -1
  7. package/dist/cjs/components/Banner/BannerContent/BannerContent.cjs.map +1 -1
  8. package/dist/cjs/components/Forms/FormElement/FormElement.cjs.map +1 -1
  9. package/dist/cjs/components/Forms/Suggestions/Suggestions.cjs +2 -2
  10. package/dist/cjs/components/Forms/Suggestions/Suggestions.cjs.map +1 -1
  11. package/dist/cjs/components/Input/Input.cjs.map +1 -1
  12. package/dist/cjs/components/Pagination/Pagination.cjs +4 -4
  13. package/dist/cjs/components/Pagination/Pagination.cjs.map +1 -1
  14. package/dist/cjs/components/SelectionList/SelectionList.cjs.map +1 -1
  15. package/dist/cjs/components/Table/TableHeader/TableHeader.cjs +7 -10
  16. package/dist/cjs/components/Table/TableHeader/TableHeader.cjs.map +1 -1
  17. package/dist/cjs/components/Table/TableHeader/TableHeader.styles.cjs +4 -5
  18. package/dist/cjs/components/Table/TableHeader/TableHeader.styles.cjs.map +1 -1
  19. package/dist/cjs/components/Table/TableRow/TableRow.cjs +8 -1
  20. package/dist/cjs/components/Table/TableRow/TableRow.cjs.map +1 -1
  21. package/dist/cjs/components/TagsInput/TagsInput.cjs.map +1 -1
  22. package/dist/cjs/components/ToggleButton/ToggleButton.cjs +2 -2
  23. package/dist/cjs/components/ToggleButton/ToggleButton.cjs.map +1 -1
  24. package/dist/cjs/hooks/useClickOutside.cjs.map +1 -1
  25. package/dist/cjs/providers/ThemeProvider.cjs +4 -1
  26. package/dist/cjs/providers/ThemeProvider.cjs.map +1 -1
  27. package/dist/esm/components/AppSwitcher/Action/Action.js.map +1 -1
  28. package/dist/esm/components/AppSwitcher/AppSwitcher.js.map +1 -1
  29. package/dist/esm/components/Banner/Banner.js +1 -1
  30. package/dist/esm/components/Banner/Banner.js.map +1 -1
  31. package/dist/esm/components/Banner/BannerContent/ActionContainer/ActionContainer.js.map +1 -1
  32. package/dist/esm/components/Banner/BannerContent/BannerContent.js +1 -1
  33. package/dist/esm/components/Banner/BannerContent/BannerContent.js.map +1 -1
  34. package/dist/esm/components/Forms/FormElement/FormElement.js.map +1 -1
  35. package/dist/esm/components/Forms/Suggestions/Suggestions.js +2 -2
  36. package/dist/esm/components/Forms/Suggestions/Suggestions.js.map +1 -1
  37. package/dist/esm/components/Input/Input.js.map +1 -1
  38. package/dist/esm/components/Pagination/Pagination.js +4 -4
  39. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  40. package/dist/esm/components/SelectionList/SelectionList.js.map +1 -1
  41. package/dist/esm/components/Table/TableHeader/TableHeader.js +7 -10
  42. package/dist/esm/components/Table/TableHeader/TableHeader.js.map +1 -1
  43. package/dist/esm/components/Table/TableHeader/TableHeader.styles.js +4 -5
  44. package/dist/esm/components/Table/TableHeader/TableHeader.styles.js.map +1 -1
  45. package/dist/esm/components/Table/TableRow/TableRow.js +8 -1
  46. package/dist/esm/components/Table/TableRow/TableRow.js.map +1 -1
  47. package/dist/esm/components/TagsInput/TagsInput.js.map +1 -1
  48. package/dist/esm/components/ToggleButton/ToggleButton.js +2 -2
  49. package/dist/esm/components/ToggleButton/ToggleButton.js.map +1 -1
  50. package/dist/esm/hooks/useClickOutside.js.map +1 -1
  51. package/dist/esm/providers/ThemeProvider.js +4 -1
  52. package/dist/esm/providers/ThemeProvider.js.map +1 -1
  53. package/dist/types/index.d.ts +58 -50
  54. package/package.json +2 -2
@@ -47,7 +47,6 @@ import type { HvExtraDeepProps } from '@hitachivantara/uikit-react-shared';
47
47
  import type { HvExtraProps } from '@hitachivantara/uikit-react-shared';
48
48
  import { HvFormStatus as HvFormStatus_2 } from 'components';
49
49
  import { HvHeaderNavigationItemProp as HvHeaderNavigationItemProp_2 } from 'components';
50
- import { HvInputLabels as HvInputLabels_2 } from 'types/forms';
51
50
  import { HvInputProps as HvInputProps_2 } from 'components';
52
51
  import { HvLabelProps as HvLabelProps_2 } from 'components';
53
52
  import { HvListValue as HvListValue_2 } from 'components';
@@ -309,8 +308,6 @@ export { ds5 }
309
308
 
310
309
  export declare const emptyStateClasses: HvEmptyStateClasses;
311
310
 
312
- declare type Event_2 = MouseEvent | KeyboardEvent | TouchEvent;
313
-
314
311
  export declare const fileClasses: HvFileClasses;
315
312
 
316
313
  export declare const fileUploaderPreviewClasses: HvFileUploaderPreviewClasses;
@@ -483,11 +480,11 @@ declare type HvActionContainerClasses = {
483
480
 
484
481
  declare type HvActionContainerProps = HvBaseProps & {
485
482
  /** onClose function. */
486
- onClose?: Function;
483
+ onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
487
484
  /** Actions to display. */
488
- action?: React.ReactNode | HvActionGeneric_2[];
485
+ action?: React.ReactNode | HvActionGeneric[];
489
486
  /** The callback function ran when an action is triggered, receiving `action` as param */
490
- actionCallback?: (event: React.SyntheticEvent, id: string, action: HvActionGeneric_2) => void;
487
+ actionCallback?: (event: React.SyntheticEvent, id: string, action: HvActionGeneric) => void;
491
488
  /** A Jss Object used to override or extend the styles applied to the component. */
492
489
  classes?: HvActionContainerClasses;
493
490
  };
@@ -585,7 +582,11 @@ export declare type HvAdornmentProps = HvBaseProps<HTMLDivElement | HTMLButtonEl
585
582
  classes?: HvAdornmentClasses;
586
583
  };
587
584
 
588
- export declare type HvApplication = {
585
+ export declare const HvAppSwitcher: ({ id, className, classes, layout, title, applications, onActionClickedCallback, isActionSelectedCallback, header, footer, isOpen, }: HvAppSwitcherProps) => JSX_2.Element;
586
+
587
+ export declare const HvAppSwitcherAction: ({ id, className, classes, application, onClickCallback, isSelectedCallback, }: HvAppSwitcherActionProps) => JSX_2.Element;
588
+
589
+ export declare type HvAppSwitcherActionApplication = {
589
590
  /** Id of the application. */
590
591
  id?: string;
591
592
  /** Name of the application, this is the value that will be displayed on the component. */
@@ -608,10 +609,6 @@ export declare type HvApplication = {
608
609
  color?: string;
609
610
  };
610
611
 
611
- export declare const HvAppSwitcher: ({ id, className, classes, layout, title, applications, onActionClickedCallback, isActionSelectedCallback, header, footer, isOpen, }: HvAppSwitcherProps) => JSX_2.Element;
612
-
613
- export declare const HvAppSwitcherAction: ({ id, className, classes, application, onClickCallback, isSelectedCallback, }: HvAppSwitcherActionProps) => JSX_2.Element;
614
-
615
612
  export declare type HvAppSwitcherActionClasses = {
616
613
  root?: string;
617
614
  icon?: string;
@@ -625,11 +622,11 @@ export declare type HvAppSwitcherActionClasses = {
625
622
 
626
623
  export declare type HvAppSwitcherActionProps = HvBaseProps & {
627
624
  /** The application data to be used to render the Action object. */
628
- application: HvApplication;
625
+ application: HvAppSwitcherActionApplication;
629
626
  /** Callback triggered when the action is clicked. */
630
- onClickCallback?: Function;
627
+ onClickCallback?: (event: React.MouseEvent, application: HvAppSwitcherActionApplication) => void;
631
628
  /** Must return a boolean stating if the action element is selected or not. */
632
- isSelectedCallback?: Function;
629
+ isSelectedCallback?: (application: HvAppSwitcherActionApplication) => boolean;
633
630
  /** A Jss Object used to override or extend the styles applied to the component. */
634
631
  classes?: HvAppSwitcherActionClasses;
635
632
  };
@@ -659,11 +656,11 @@ export declare type HvAppSwitcherProps = HvBaseProps & {
659
656
  /** Title to be displayed on the header of the component. */
660
657
  title?: string;
661
658
  /** The list of applications to be used to render the actions on the component. */
662
- applications?: HvApplication[];
659
+ applications?: HvAppSwitcherActionApplication[];
663
660
  /** Triggered when an action is clicked. */
664
- onActionClickedCallback?: Function;
661
+ onActionClickedCallback?: (event: React.MouseEvent, application: HvAppSwitcherActionApplication) => void;
665
662
  /** Must return a boolean stating if the action element is selected or not. */
666
- isActionSelectedCallback?: Function;
663
+ isActionSelectedCallback?: (application: HvAppSwitcherActionApplication) => boolean;
667
664
  /** Element to be added to the header container, if none is provided a label with the title will be added. */
668
665
  header?: React.ReactNode;
669
666
  /** Element to be added to the footer container. */
@@ -828,7 +825,7 @@ declare type HvBannerContentClasses = {
828
825
  default?: string;
829
826
  };
830
827
 
831
- declare type HvBannerContentProps = Omit<SnackbarContentProps, "variant" | "classes"> & HvBaseProps & {
828
+ declare type HvBannerContentProps = Omit<SnackbarContentProps, "variant" | "classes" | "onClose"> & HvBaseProps & {
832
829
  /** The message to display. */
833
830
  content?: React.ReactNode;
834
831
  /** Variant of the snackbar. */
@@ -838,7 +835,7 @@ declare type HvBannerContentProps = Omit<SnackbarContentProps, "variant" | "clas
838
835
  /** Custom icon to replace the variant default. */
839
836
  customIcon?: React.ReactNode;
840
837
  /** onClose function. */
841
- onClose?: Function;
838
+ onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
842
839
  /** Actions to display on the right side. */
843
840
  actions?: React.ReactNode | HvActionGeneric_2[];
844
841
  /** The callback function ran when an action is triggered, receiving `action` as param */
@@ -851,11 +848,11 @@ declare type HvBannerContentProps = Omit<SnackbarContentProps, "variant" | "clas
851
848
  classes?: HvBannerContentClasses;
852
849
  };
853
850
 
854
- export declare type HvBannerProps = Omit<SnackbarProps, "anchorOrigin" | "classes"> & HvBaseProps & {
851
+ export declare type HvBannerProps = Omit<SnackbarProps, "anchorOrigin" | "classes" | "onClose"> & HvBaseProps & {
855
852
  /** If true | Snackbar is open. */
856
853
  open: boolean;
857
854
  /** Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway. */
858
- onClose?: Function;
855
+ onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
859
856
  /** The message to display. */
860
857
  label?: React.ReactNode;
861
858
  /** The anchor of the Snackbar. */
@@ -867,9 +864,9 @@ export declare type HvBannerProps = Omit<SnackbarProps, "anchorOrigin" | "classe
867
864
  /** Controls if the associated icon to the variant should be shown. */
868
865
  showIcon?: boolean;
869
866
  /** Actions to display on the right side. */
870
- actions?: React.ReactNode | HvActionGeneric_2[];
867
+ actions?: React.ReactNode | HvActionGeneric[];
871
868
  /** The callback function ran when an action is triggered, receiving `action` as param */
872
- actionsCallback?: (event: React.SyntheticEvent, id: string, action: HvActionGeneric_2) => void;
869
+ actionsCallback?: (event: React.SyntheticEvent, id: string, action: HvActionGeneric) => void;
873
870
  /** The position property of the header. */
874
871
  actionsPosition?: HvBannerActionPosition;
875
872
  /** How much the transition animation last in milliseconds, if 0 no animation is played. */
@@ -1896,6 +1893,8 @@ export declare type HvCheckBoxProps = Omit<HvBaseCheckBoxProps, "classes"> & {
1896
1893
  classes?: HvCheckBoxClasses;
1897
1894
  };
1898
1895
 
1896
+ export declare type HvClickOutsideEvent = MouseEvent | KeyboardEvent | TouchEvent;
1897
+
1899
1898
  export declare type HvColumn<D extends object = Record<string, unknown>> = Column<D>;
1900
1899
 
1901
1900
  declare type HvColumnGroup<D extends object = Record<string, unknown>> = HvTableColumnOptions<D> & HvColumnGroupInterface<D> & ({
@@ -2925,7 +2924,9 @@ export declare const HvFormElementDescriptorsContextProvider: React_2.Provider<{
2925
2924
  label?: any;
2926
2925
  }>;
2927
2926
 
2928
- export declare type HvFormElementProps = HvBaseProps & {
2927
+ export declare type HvFormElementProps = HvBaseProps<HTMLDivElement, {
2928
+ onChange: any;
2929
+ }> & {
2929
2930
  /**
2930
2931
  * Name of the form element.
2931
2932
  *
@@ -2965,7 +2966,7 @@ export declare type HvFormElementProps = HvBaseProps & {
2965
2966
  /** The error message to show when `status` is "invalid". */
2966
2967
  statusMessage?: string;
2967
2968
  /** The callback fired when the value changes. */
2968
- onChange?: Function;
2969
+ onChange?: (event: React.FormEvent<HTMLDivElement>) => void;
2969
2970
  /** A Jss Object used to override or extend the styles applied to the component. */
2970
2971
  classes?: HvFormElementClasses;
2971
2972
  };
@@ -3347,48 +3348,48 @@ export declare type HvInputProps = HvBaseProps<HTMLElement, {
3347
3348
  * The function that will be executed onChange, allows modification of the input,
3348
3349
  * it receives the value. If a new value should be presented it must returned it.
3349
3350
  */
3350
- onChange?: Function;
3351
+ onChange?: (event: React_2.ChangeEvent<HTMLInputElement>, value: string) => void;
3351
3352
  /**
3352
3353
  * Callback called when the user submits the value by pressing Enter/Return.
3353
3354
  *
3354
3355
  * Also called when the search button is clicked (when type is "search").
3355
3356
  */
3356
- onEnter?: Function;
3357
+ onEnter?: (event: React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent, value: string) => void;
3357
3358
  /**
3358
3359
  * The function that will be executed onBlur, allows checking the validation state,
3359
- * it receives the value and the validation state (`invalid`, `valid`).
3360
+ * it receives the value and the validation state.
3360
3361
  */
3361
- onBlur?: Function;
3362
+ onBlur?: (event: React_2.FocusEvent<HTMLInputElement>, value: string, validationState: HvInputValidity) => void;
3362
3363
  /**
3363
3364
  * The function that will be executed onBlur, allows checking the value state,
3364
3365
  * it receives the value.
3365
3366
  */
3366
- onFocus?: Function;
3367
+ onFocus?: (event: React_2.FocusEventHandler<HTMLInputElement>, value: string) => void;
3367
3368
  /**
3368
3369
  * The function that will be executed onKeyDown, allows checking the value state,
3369
3370
  * it receives the event and value.
3370
3371
  */
3371
- onKeyDown?: Function;
3372
+ onKeyDown?: (event: React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent, value: string) => void;
3372
3373
  /** The input type. */
3373
3374
  type?: HTMLInputTypeAttribute;
3374
3375
  /** The placeholder value of the input. */
3375
3376
  placeholder?: string;
3376
3377
  /** Internal labels?. */
3377
- labels?: HvInputLabels_2 & HvExtraProps;
3378
+ labels?: HvInputLabels & HvExtraProps;
3378
3379
  /** An Object containing the various texts associated with the input. */
3379
- validationMessages?: HvValidationMessages_2;
3380
+ validationMessages?: HvValidationMessages;
3380
3381
  /** Attributes applied to the input element. */
3381
3382
  inputProps?: InputBaseComponentProps;
3382
3383
  /** Allows passing a ref to the underlying input */
3383
3384
  inputRef?: any;
3384
3385
  /** The function that will be executed to received an array of objects that has a label and id to create list of suggestion */
3385
- suggestionListCallback?: Function;
3386
+ suggestionListCallback?: (value: string) => HvInputSuggestion[] | null;
3386
3387
  /**
3387
3388
  * The custom validation function, it receives the value and must return
3388
3389
  * either `true` for valid or `false` for invalid, default validations would only
3389
3390
  * occur if this function is null or undefined
3390
3391
  */
3391
- validation?: Function;
3392
+ validation?: (value: string) => boolean;
3392
3393
  /** If `true` it should autofocus. */
3393
3394
  autoFocus?: boolean;
3394
3395
  /** If `true` the clear button is disabled. */
@@ -3414,6 +3415,12 @@ export declare type HvInputProps = HvBaseProps<HTMLElement, {
3414
3415
  classes?: HvInputClasses;
3415
3416
  };
3416
3417
 
3418
+ export declare type HvInputSuggestion = {
3419
+ id: string;
3420
+ label: string;
3421
+ value?: string;
3422
+ };
3423
+
3417
3424
  declare type HvInputValidity = {
3418
3425
  valid?: boolean;
3419
3426
  badInput?: boolean;
@@ -4436,7 +4443,7 @@ export declare type HvSelectionListProps = HvBaseProps<HTMLUListElement, {
4436
4443
  * When uncontrolled and unspecified it will default to "standBy" and change to either "valid"
4437
4444
  * or "invalid" after any change to the state.
4438
4445
  */
4439
- status?: HvFormStatus_2;
4446
+ status?: HvFormStatus;
4440
4447
  /**
4441
4448
  * The error message to show when the validation status is "invalid".
4442
4449
  *
@@ -4450,7 +4457,7 @@ export declare type HvSelectionListProps = HvBaseProps<HTMLUListElement, {
4450
4457
  /** Indicates whether the list orientation is horizontal or vertical. Defaults to vertical. */
4451
4458
  orientation?: "vertical" | "horizontal";
4452
4459
  /** The callback fired when the value changes. */
4453
- onChange?: Function;
4460
+ onChange?: (event: React_2.MouseEvent, value: any) => void;
4454
4461
  /** A Jss Object used to override or extend the styles applied to the component. */
4455
4462
  classes?: HvSelectionListClasses;
4456
4463
  };
@@ -4646,11 +4653,10 @@ export declare type HvSuggestionsProps = HvBaseProps & {
4646
4653
  anchorEl?: HTMLElement | null;
4647
4654
  /** Array of { id, label, ...others } values to display in the suggestion list */
4648
4655
  suggestionValues?: HvSuggestion[] | null;
4649
- /** Function called when suggestion list is closed */
4650
4656
  /** Function called when a suggestion is selected */
4651
- onSuggestionSelected?: Function;
4657
+ onSuggestionSelected?: (event: React_2.MouseEvent, value: HvSuggestion) => void;
4652
4658
  /** Function called when suggestion list is closed */
4653
- onClose?: Function;
4659
+ onClose?: (event: HvClickOutsideEvent) => void;
4654
4660
  /** A Jss Object used to override or extend the styles applied to the component. */
4655
4661
  classes?: HvSuggestionsClasses;
4656
4662
  };
@@ -5575,9 +5581,9 @@ export declare type HvTagsInputProps = HvBaseProps<HTMLElement, {
5575
5581
  /** The form element name. */
5576
5582
  name?: string;
5577
5583
  /** The value of the form element. */
5578
- value?: string[] | HvTagProps_2[];
5584
+ value?: string[] | HvTagProps[];
5579
5585
  /** When uncontrolled, defines the initial input value. */
5580
- defaultValue?: string[] | HvTagProps_2[];
5586
+ defaultValue?: string[] | HvTagProps[];
5581
5587
  /**
5582
5588
  * The label of the form element.
5583
5589
  * The form element must be labeled for accessibility reasons.
@@ -5593,15 +5599,15 @@ export declare type HvTagsInputProps = HvBaseProps<HTMLElement, {
5593
5599
  /** Indicates that the form element is required. */
5594
5600
  required?: boolean;
5595
5601
  /** The function that will be executed onChange. */
5596
- onChange?: (event: React_2.ChangeEvent<HTMLInputElement> | React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent<HTMLButtonElement> | React_2.MouseEvent<HTMLElement, MouseEvent> | React_2.KeyboardEventHandler<HTMLElement>, value: HvTagProps_2[]) => void;
5602
+ onChange?: (event: React_2.ChangeEvent<HTMLInputElement> | React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent<HTMLButtonElement> | React_2.MouseEvent<HTMLElement, MouseEvent> | React_2.KeyboardEventHandler<HTMLElement>, value: HvTagProps[]) => void;
5597
5603
  /** The function that will be executed when the element is focused. */
5598
5604
  onFocus?: (event: React_2.FocusEvent<HTMLInputElement>, value: string) => void;
5599
5605
  /** The function that will be executed when the element is blurred. */
5600
5606
  onBlur?: (event: React_2.FocusEvent<HTMLInputElement>, value: string) => void;
5601
5607
  /** The function that will be executed when a tag is deleted. */
5602
- onDelete?: (event: React_2.ChangeEvent<HTMLInputElement> | React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent<HTMLButtonElement> | React_2.MouseEvent<HTMLElement, MouseEvent> | React_2.KeyboardEventHandler<HTMLElement>, value: HvTagProps_2, index: number) => void;
5608
+ onDelete?: (event: React_2.ChangeEvent<HTMLInputElement> | React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent<HTMLButtonElement> | React_2.MouseEvent<HTMLElement, MouseEvent> | React_2.KeyboardEventHandler<HTMLElement>, value: HvTagProps, index: number) => void;
5603
5609
  /** The function that will be executed when a tag is added. */
5604
- onAdd?: (event: React_2.ChangeEvent<HTMLInputElement> | React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent<HTMLButtonElement> | React_2.MouseEvent<HTMLElement, MouseEvent> | React_2.KeyboardEventHandler<HTMLElement>, value: HvTagProps_2, index: number) => void;
5610
+ onAdd?: (event: React_2.ChangeEvent<HTMLInputElement> | React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent<HTMLButtonElement> | React_2.MouseEvent<HTMLElement, MouseEvent> | React_2.KeyboardEventHandler<HTMLElement>, value: HvTagProps, index: number) => void;
5605
5611
  /** The placeholder value of the input. */
5606
5612
  placeholder?: string;
5607
5613
  /** If `true` the character counter isn't shown even if maxTagsQuantity is set. */
@@ -5625,17 +5631,19 @@ export declare type HvTagsInputProps = HvBaseProps<HTMLElement, {
5625
5631
  /** The error message to show when `status` is "invalid". */
5626
5632
  statusMessage?: React_2.ReactNode;
5627
5633
  /** An Object containing the various texts associated with the input. */
5628
- validationMessages?: HvValidationMessages_2;
5634
+ validationMessages?: HvValidationMessages;
5629
5635
  /** An array of strings that represent the character used to input a tag. This character is the string representation of the event.code from the input event. */
5630
5636
  commitTagOn?: string[];
5631
5637
  /** If `true` the tag will be committed when the blur event occurs. */
5632
5638
  commitOnBlur?: boolean;
5633
5639
  /** The function that will be executed to received an array of objects that has a label and id to create list of suggestion */
5634
- suggestionListCallback?: Function;
5640
+ suggestionListCallback?: (value: string) => HvTagSuggestion[] | null;
5635
5641
  /** A Jss Object used to override or extend the styles applied to the component. */
5636
5642
  classes?: HvTagsInputClasses;
5637
5643
  };
5638
5644
 
5645
+ export declare type HvTagSuggestion = HvInputSuggestion;
5646
+
5639
5647
  /**
5640
5648
  * A text area is a multiline text input box, with an optional character counter when there is a length limit.
5641
5649
  */
@@ -5807,7 +5815,7 @@ export declare const HvToggleButton: ForwardRefExoticComponent<HvBaseProps<HTMLB
5807
5815
  /** Icon for when selected. Ignored if the component has children. */
5808
5816
  selectedIcon?: React.ReactNode;
5809
5817
  /** Function called when icon is clicked. */
5810
- onClick?: Function | undefined;
5818
+ onClick?: ((event: React.MouseEvent<HTMLButtonElement>, selected: boolean) => void) | undefined;
5811
5819
  } & RefAttributes<HTMLButtonElement>>;
5812
5820
 
5813
5821
  export declare type HvToggleButtonProps = HvBaseProps<HTMLButtonElement, {
@@ -5824,7 +5832,7 @@ export declare type HvToggleButtonProps = HvBaseProps<HTMLButtonElement, {
5824
5832
  /** Icon for when selected. Ignored if the component has children. */
5825
5833
  selectedIcon?: React.ReactNode;
5826
5834
  /** Function called when icon is clicked. */
5827
- onClick?: Function;
5835
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>, selected: boolean) => void;
5828
5836
  };
5829
5837
 
5830
5838
  /**
@@ -6342,7 +6350,7 @@ export declare type UseBulkActionsProps = (<D extends object = Record<string, un
6342
6350
  pluginName: string;
6343
6351
  };
6344
6352
 
6345
- export declare const useClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event_2) => void) => void;
6353
+ export declare const useClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: HvClickOutsideEvent) => void) => void;
6346
6354
 
6347
6355
  export declare function useComputation(valueFn: any, valueFallback?: any): any[];
6348
6356
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.0.0-next.15",
3
+ "version": "5.0.0-next.17",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "UI Kit core React components for the Next Design System.",
@@ -54,7 +54,7 @@
54
54
  "access": "public",
55
55
  "directory": "package"
56
56
  },
57
- "gitHead": "794d0a76b09274391ef4064f4568c5ea3c49a35e",
57
+ "gitHead": "d7e48206f2817c1894a0deb02e908bccaeb1b2a7",
58
58
  "main": "dist/cjs/index.cjs",
59
59
  "exports": {
60
60
  ".": {