@hitachivantara/uikit-react-core 5.0.0-next.16 → 5.0.0-next.18

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 (179) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/AppSwitcher/Action/Action.cjs.map +1 -1
  3. package/dist/cjs/components/AppSwitcher/AppSwitcher.cjs.map +1 -1
  4. package/dist/cjs/components/Banner/Banner.cjs +1 -1
  5. package/dist/cjs/components/Banner/Banner.cjs.map +1 -1
  6. package/dist/cjs/components/Banner/BannerContent/ActionContainer/ActionContainer.cjs.map +1 -1
  7. package/dist/cjs/components/Banner/BannerContent/BannerContent.cjs +1 -1
  8. package/dist/cjs/components/Banner/BannerContent/BannerContent.cjs.map +1 -1
  9. package/dist/cjs/components/BaseDropdown/BaseDropdown.cjs +1 -1
  10. package/dist/cjs/components/DropDownMenu/DropDownMenu.cjs +1 -1
  11. package/dist/cjs/components/DropDownMenu/DropDownMenu.cjs.map +1 -1
  12. package/dist/cjs/components/FileUploader/DropZone/DropZone.cjs +1 -1
  13. package/dist/cjs/components/FileUploader/DropZone/DropZone.cjs.map +1 -1
  14. package/dist/cjs/components/Forms/FormElement/FormElement.cjs.map +1 -1
  15. package/dist/cjs/components/Forms/Suggestions/Suggestions.cjs +2 -2
  16. package/dist/cjs/components/Forms/Suggestions/Suggestions.cjs.map +1 -1
  17. package/dist/cjs/components/Input/Input.cjs.map +1 -1
  18. package/dist/cjs/components/List/List.cjs +4 -3
  19. package/dist/cjs/components/List/List.cjs.map +1 -1
  20. package/dist/cjs/components/List/utils.cjs +0 -10
  21. package/dist/cjs/components/List/utils.cjs.map +1 -1
  22. package/dist/cjs/components/Pagination/Pagination.cjs +4 -4
  23. package/dist/cjs/components/Pagination/Pagination.cjs.map +1 -1
  24. package/dist/cjs/components/SelectionList/SelectionList.cjs.map +1 -1
  25. package/dist/cjs/components/Table/TableHeader/TableHeader.cjs +7 -10
  26. package/dist/cjs/components/Table/TableHeader/TableHeader.cjs.map +1 -1
  27. package/dist/cjs/components/Table/TableHeader/TableHeader.styles.cjs +4 -5
  28. package/dist/cjs/components/Table/TableHeader/TableHeader.styles.cjs.map +1 -1
  29. package/dist/cjs/components/Table/TableRow/TableRow.cjs +8 -1
  30. package/dist/cjs/components/Table/TableRow/TableRow.cjs.map +1 -1
  31. package/dist/cjs/components/TagsInput/TagsInput.cjs.map +1 -1
  32. package/dist/cjs/components/ToggleButton/ToggleButton.cjs +2 -2
  33. package/dist/cjs/components/ToggleButton/ToggleButton.cjs.map +1 -1
  34. package/dist/cjs/components/VerticalNavigation/Actions/Action.cjs +45 -0
  35. package/dist/cjs/components/VerticalNavigation/Actions/Action.cjs.map +1 -0
  36. package/dist/cjs/components/VerticalNavigation/Actions/Action.styles.cjs +51 -0
  37. package/dist/cjs/components/VerticalNavigation/Actions/Action.styles.cjs.map +1 -0
  38. package/dist/cjs/components/VerticalNavigation/Actions/Actions.cjs +30 -0
  39. package/dist/cjs/components/VerticalNavigation/Actions/Actions.cjs.map +1 -0
  40. package/dist/cjs/components/VerticalNavigation/Actions/Actions.styles.cjs +26 -0
  41. package/dist/cjs/components/VerticalNavigation/Actions/Actions.styles.cjs.map +1 -0
  42. package/dist/cjs/components/VerticalNavigation/Actions/actionClasses.cjs +8 -0
  43. package/dist/cjs/components/VerticalNavigation/Actions/actionClasses.cjs.map +1 -0
  44. package/dist/cjs/components/VerticalNavigation/Actions/actionsClasses.cjs +8 -0
  45. package/dist/cjs/components/VerticalNavigation/Actions/actionsClasses.cjs.map +1 -0
  46. package/dist/cjs/components/VerticalNavigation/Header/Header.cjs +45 -0
  47. package/dist/cjs/components/VerticalNavigation/Header/Header.cjs.map +1 -0
  48. package/dist/cjs/components/VerticalNavigation/Header/Header.styles.cjs +23 -0
  49. package/dist/cjs/components/VerticalNavigation/Header/Header.styles.cjs.map +1 -0
  50. package/dist/cjs/components/VerticalNavigation/Header/headerClasses.cjs +8 -0
  51. package/dist/cjs/components/VerticalNavigation/Header/headerClasses.cjs.map +1 -0
  52. package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs +134 -0
  53. package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs.map +1 -0
  54. package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.styles.cjs +22 -0
  55. package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.styles.cjs.map +1 -0
  56. package/dist/cjs/components/VerticalNavigation/Navigation/navigationClasses.cjs +8 -0
  57. package/dist/cjs/components/VerticalNavigation/Navigation/navigationClasses.cjs.map +1 -0
  58. package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.cjs +643 -0
  59. package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.cjs.map +1 -0
  60. package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.styles.cjs +21 -0
  61. package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.styles.cjs.map +1 -0
  62. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewContext.cjs +10 -0
  63. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewContext.cjs.map +1 -0
  64. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs +282 -0
  65. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs.map +1 -0
  66. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +132 -0
  67. package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.styles.cjs.map +1 -0
  68. package/dist/cjs/components/VerticalNavigation/TreeView/descendants.cjs +134 -0
  69. package/dist/cjs/components/VerticalNavigation/TreeView/descendants.cjs.map +1 -0
  70. package/dist/cjs/components/VerticalNavigation/TreeView/treeViewClasses.cjs +8 -0
  71. package/dist/cjs/components/VerticalNavigation/TreeView/treeViewClasses.cjs.map +1 -0
  72. package/dist/cjs/components/VerticalNavigation/TreeView/treeViewItemClasses.cjs +8 -0
  73. package/dist/cjs/components/VerticalNavigation/TreeView/treeViewItemClasses.cjs.map +1 -0
  74. package/dist/cjs/components/VerticalNavigation/VerticalNavigation.cjs +40 -0
  75. package/dist/cjs/components/VerticalNavigation/VerticalNavigation.cjs.map +1 -0
  76. package/dist/cjs/components/VerticalNavigation/VerticalNavigation.styles.cjs +43 -0
  77. package/dist/cjs/components/VerticalNavigation/VerticalNavigation.styles.cjs.map +1 -0
  78. package/dist/cjs/components/VerticalNavigation/verticalNavigationClasses.cjs +8 -0
  79. package/dist/cjs/components/VerticalNavigation/verticalNavigationClasses.cjs.map +1 -0
  80. package/dist/cjs/hocs/withTooltip.cjs.map +1 -1
  81. package/dist/cjs/hooks/useClickOutside.cjs.map +1 -1
  82. package/dist/cjs/hooks/useEnhancedEffect.cjs +6 -0
  83. package/dist/cjs/hooks/useEnhancedEffect.cjs.map +1 -0
  84. package/dist/cjs/index.cjs +37 -0
  85. package/dist/cjs/index.cjs.map +1 -1
  86. package/dist/cjs/providers/ThemeProvider.cjs +4 -1
  87. package/dist/cjs/providers/ThemeProvider.cjs.map +1 -1
  88. package/dist/cjs/utils/wrapperTooltip.cjs +13 -0
  89. package/dist/cjs/utils/wrapperTooltip.cjs.map +1 -0
  90. package/dist/esm/components/AppSwitcher/Action/Action.js.map +1 -1
  91. package/dist/esm/components/AppSwitcher/AppSwitcher.js.map +1 -1
  92. package/dist/esm/components/Banner/Banner.js +1 -1
  93. package/dist/esm/components/Banner/Banner.js.map +1 -1
  94. package/dist/esm/components/Banner/BannerContent/ActionContainer/ActionContainer.js.map +1 -1
  95. package/dist/esm/components/Banner/BannerContent/BannerContent.js +1 -1
  96. package/dist/esm/components/Banner/BannerContent/BannerContent.js.map +1 -1
  97. package/dist/esm/components/BaseDropdown/BaseDropdown.js +1 -1
  98. package/dist/esm/components/DropDownMenu/DropDownMenu.js +1 -1
  99. package/dist/esm/components/DropDownMenu/DropDownMenu.js.map +1 -1
  100. package/dist/esm/components/FileUploader/DropZone/DropZone.js +1 -1
  101. package/dist/esm/components/FileUploader/DropZone/DropZone.js.map +1 -1
  102. package/dist/esm/components/Forms/FormElement/FormElement.js.map +1 -1
  103. package/dist/esm/components/Forms/Suggestions/Suggestions.js +2 -2
  104. package/dist/esm/components/Forms/Suggestions/Suggestions.js.map +1 -1
  105. package/dist/esm/components/Input/Input.js.map +1 -1
  106. package/dist/esm/components/List/List.js +2 -1
  107. package/dist/esm/components/List/List.js.map +1 -1
  108. package/dist/esm/components/List/utils.js +1 -11
  109. package/dist/esm/components/List/utils.js.map +1 -1
  110. package/dist/esm/components/Pagination/Pagination.js +4 -4
  111. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  112. package/dist/esm/components/SelectionList/SelectionList.js.map +1 -1
  113. package/dist/esm/components/Table/TableHeader/TableHeader.js +7 -10
  114. package/dist/esm/components/Table/TableHeader/TableHeader.js.map +1 -1
  115. package/dist/esm/components/Table/TableHeader/TableHeader.styles.js +4 -5
  116. package/dist/esm/components/Table/TableHeader/TableHeader.styles.js.map +1 -1
  117. package/dist/esm/components/Table/TableRow/TableRow.js +8 -1
  118. package/dist/esm/components/Table/TableRow/TableRow.js.map +1 -1
  119. package/dist/esm/components/TagsInput/TagsInput.js.map +1 -1
  120. package/dist/esm/components/ToggleButton/ToggleButton.js +2 -2
  121. package/dist/esm/components/ToggleButton/ToggleButton.js.map +1 -1
  122. package/dist/esm/components/VerticalNavigation/Actions/Action.js +43 -0
  123. package/dist/esm/components/VerticalNavigation/Actions/Action.js.map +1 -0
  124. package/dist/esm/components/VerticalNavigation/Actions/Action.styles.js +49 -0
  125. package/dist/esm/components/VerticalNavigation/Actions/Action.styles.js.map +1 -0
  126. package/dist/esm/components/VerticalNavigation/Actions/Actions.js +28 -0
  127. package/dist/esm/components/VerticalNavigation/Actions/Actions.js.map +1 -0
  128. package/dist/esm/components/VerticalNavigation/Actions/Actions.styles.js +24 -0
  129. package/dist/esm/components/VerticalNavigation/Actions/Actions.styles.js.map +1 -0
  130. package/dist/esm/components/VerticalNavigation/Actions/actionClasses.js +8 -0
  131. package/dist/esm/components/VerticalNavigation/Actions/actionClasses.js.map +1 -0
  132. package/dist/esm/components/VerticalNavigation/Actions/actionsClasses.js +8 -0
  133. package/dist/esm/components/VerticalNavigation/Actions/actionsClasses.js.map +1 -0
  134. package/dist/esm/components/VerticalNavigation/Header/Header.js +43 -0
  135. package/dist/esm/components/VerticalNavigation/Header/Header.js.map +1 -0
  136. package/dist/esm/components/VerticalNavigation/Header/Header.styles.js +21 -0
  137. package/dist/esm/components/VerticalNavigation/Header/Header.styles.js.map +1 -0
  138. package/dist/esm/components/VerticalNavigation/Header/headerClasses.js +8 -0
  139. package/dist/esm/components/VerticalNavigation/Header/headerClasses.js.map +1 -0
  140. package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js +132 -0
  141. package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js.map +1 -0
  142. package/dist/esm/components/VerticalNavigation/Navigation/Navigation.styles.js +20 -0
  143. package/dist/esm/components/VerticalNavigation/Navigation/Navigation.styles.js.map +1 -0
  144. package/dist/esm/components/VerticalNavigation/Navigation/navigationClasses.js +8 -0
  145. package/dist/esm/components/VerticalNavigation/Navigation/navigationClasses.js.map +1 -0
  146. package/dist/esm/components/VerticalNavigation/TreeView/TreeView.js +641 -0
  147. package/dist/esm/components/VerticalNavigation/TreeView/TreeView.js.map +1 -0
  148. package/dist/esm/components/VerticalNavigation/TreeView/TreeView.styles.js +19 -0
  149. package/dist/esm/components/VerticalNavigation/TreeView/TreeView.styles.js.map +1 -0
  150. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewContext.js +10 -0
  151. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewContext.js.map +1 -0
  152. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js +280 -0
  153. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -0
  154. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.styles.js +130 -0
  155. package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -0
  156. package/dist/esm/components/VerticalNavigation/TreeView/descendants.js +134 -0
  157. package/dist/esm/components/VerticalNavigation/TreeView/descendants.js.map +1 -0
  158. package/dist/esm/components/VerticalNavigation/TreeView/treeViewClasses.js +8 -0
  159. package/dist/esm/components/VerticalNavigation/TreeView/treeViewClasses.js.map +1 -0
  160. package/dist/esm/components/VerticalNavigation/TreeView/treeViewItemClasses.js +8 -0
  161. package/dist/esm/components/VerticalNavigation/TreeView/treeViewItemClasses.js.map +1 -0
  162. package/dist/esm/components/VerticalNavigation/VerticalNavigation.js +38 -0
  163. package/dist/esm/components/VerticalNavigation/VerticalNavigation.js.map +1 -0
  164. package/dist/esm/components/VerticalNavigation/VerticalNavigation.styles.js +41 -0
  165. package/dist/esm/components/VerticalNavigation/VerticalNavigation.styles.js.map +1 -0
  166. package/dist/esm/components/VerticalNavigation/verticalNavigationClasses.js +8 -0
  167. package/dist/esm/components/VerticalNavigation/verticalNavigationClasses.js.map +1 -0
  168. package/dist/esm/hocs/withTooltip.js.map +1 -1
  169. package/dist/esm/hooks/useClickOutside.js.map +1 -1
  170. package/dist/esm/hooks/useEnhancedEffect.js +6 -0
  171. package/dist/esm/hooks/useEnhancedEffect.js.map +1 -0
  172. package/dist/esm/index.js +55 -18
  173. package/dist/esm/index.js.map +1 -1
  174. package/dist/esm/providers/ThemeProvider.js +4 -1
  175. package/dist/esm/providers/ThemeProvider.js.map +1 -1
  176. package/dist/esm/utils/wrapperTooltip.js +13 -0
  177. package/dist/esm/utils/wrapperTooltip.js.map +1 -0
  178. package/dist/types/index.d.ts +560 -50
  179. package/package.json +3 -3
@@ -15,6 +15,7 @@ import { Column } from 'react-table';
15
15
  import { ColumnInstance } from 'react-table';
16
16
  import { ColumnInterface } from 'react-table';
17
17
  import { ContainerProps } from '@mui/material/Container';
18
+ import type { Context } from 'react';
18
19
  import { CSSProperties } from 'react';
19
20
  import { DialogActionsProps } from '@mui/material/DialogActions';
20
21
  import { DialogContentProps } from '@mui/material/DialogContent';
@@ -47,7 +48,6 @@ import type { HvExtraDeepProps } from '@hitachivantara/uikit-react-shared';
47
48
  import type { HvExtraProps } from '@hitachivantara/uikit-react-shared';
48
49
  import { HvFormStatus as HvFormStatus_2 } from 'components';
49
50
  import { HvHeaderNavigationItemProp as HvHeaderNavigationItemProp_2 } from 'components';
50
- import { HvInputLabels as HvInputLabels_2 } from 'types/forms';
51
51
  import { HvInputProps as HvInputProps_2 } from 'components';
52
52
  import { HvLabelProps as HvLabelProps_2 } from 'components';
53
53
  import { HvListValue as HvListValue_2 } from 'components';
@@ -113,6 +113,7 @@ import { TooltipProps } from '@mui/material';
113
113
  import { TransitionProps } from '@mui/material/transitions';
114
114
  import { UseColumnOrderInstanceProps } from 'react-table';
115
115
  import { UseColumnOrderState } from 'react-table';
116
+ import { useEffect } from 'react';
116
117
  import { UseExpandedHooks } from 'react-table';
117
118
  import { UseExpandedInstanceProps } from 'react-table';
118
119
  import { UseExpandedOptions } from 'react-table';
@@ -158,6 +159,10 @@ export declare const accordionClasses: HvAccordionClasses;
158
159
 
159
160
  export declare const actionBarClasses: HvActionBarClasses;
160
161
 
162
+ export declare const actionClasses: HvVerticalNavigationActionClasses;
163
+
164
+ export declare const actionsClasses: HvVerticalNavigationActionsClasses;
165
+
161
166
  export declare const actionsGenericClasses: HvActionsGenericClasses;
162
167
 
163
168
  export declare const adornmentClasses: HvAdornmentClasses;
@@ -309,8 +314,6 @@ export { ds5 }
309
314
 
310
315
  export declare const emptyStateClasses: HvEmptyStateClasses;
311
316
 
312
- declare type Event_2 = MouseEvent | KeyboardEvent | TouchEvent;
313
-
314
317
  export declare const fileClasses: HvFileClasses;
315
318
 
316
319
  export declare const fileUploaderPreviewClasses: HvFileUploaderPreviewClasses;
@@ -350,6 +353,24 @@ export declare const getClasses: <T>(keys: string[], name: string) => T;
350
353
 
351
354
  export declare const getComponentName: (Component: any) => any;
352
355
 
356
+ /**
357
+ * Get the first and last focusable element from a node.
358
+ *
359
+ * @param nodeId
360
+ * @returns {{last: *, first: *}}
361
+ */
362
+ export declare const getFirstAndLastFocus: (node: any) => {
363
+ first: any;
364
+ last: any;
365
+ };
366
+
367
+ /**
368
+ * Gets the list of focusable elements.
369
+ * @param node
370
+ * @returns {*|NodeListOf<HTMLElementTagNameMap[string]>|NodeListOf<*>|NodeListOf<SVGElementTagNameMap[string]>|*[]}
371
+ */
372
+ export declare const getFocusableList: (node: any) => any;
373
+
353
374
  export declare const getHeaderFooterPropsHook: (props: any, { column }: {
354
375
  column: any;
355
376
  }) => any[];
@@ -370,6 +391,17 @@ export declare const getIdReferenceListFor: (formElementType: any, descriptors:
370
391
  */
371
392
  export declare const getKeyCodeFromEvent: (event: any) => any;
372
393
 
394
+ /**
395
+ * Auxiliary function to find adjacent nodes to focus.
396
+ *
397
+ * @param nodeId
398
+ * @returns {{prevFocus: *, nextFocus: *}}
399
+ */
400
+ export declare const getPrevNextFocus: (nodeId: any) => {
401
+ nextFocus: any;
402
+ prevFocus: any;
403
+ };
404
+
373
405
  export declare const getSelectorIcons: (options: {
374
406
  disabled: boolean;
375
407
  semantic: boolean;
@@ -483,11 +515,11 @@ declare type HvActionContainerClasses = {
483
515
 
484
516
  declare type HvActionContainerProps = HvBaseProps & {
485
517
  /** onClose function. */
486
- onClose?: Function;
518
+ onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
487
519
  /** Actions to display. */
488
- action?: React.ReactNode | HvActionGeneric_2[];
520
+ action?: React.ReactNode | HvActionGeneric[];
489
521
  /** The callback function ran when an action is triggered, receiving `action` as param */
490
- actionCallback?: (event: React.SyntheticEvent, id: string, action: HvActionGeneric_2) => void;
522
+ actionCallback?: (event: React.SyntheticEvent, id: string, action: HvActionGeneric) => void;
491
523
  /** A Jss Object used to override or extend the styles applied to the component. */
492
524
  classes?: HvActionContainerClasses;
493
525
  };
@@ -585,7 +617,11 @@ export declare type HvAdornmentProps = HvBaseProps<HTMLDivElement | HTMLButtonEl
585
617
  classes?: HvAdornmentClasses;
586
618
  };
587
619
 
588
- export declare type HvApplication = {
620
+ export declare const HvAppSwitcher: ({ id, className, classes, layout, title, applications, onActionClickedCallback, isActionSelectedCallback, header, footer, isOpen, }: HvAppSwitcherProps) => JSX_2.Element;
621
+
622
+ export declare const HvAppSwitcherAction: ({ id, className, classes, application, onClickCallback, isSelectedCallback, }: HvAppSwitcherActionProps) => JSX_2.Element;
623
+
624
+ export declare type HvAppSwitcherActionApplication = {
589
625
  /** Id of the application. */
590
626
  id?: string;
591
627
  /** Name of the application, this is the value that will be displayed on the component. */
@@ -608,10 +644,6 @@ export declare type HvApplication = {
608
644
  color?: string;
609
645
  };
610
646
 
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
647
  export declare type HvAppSwitcherActionClasses = {
616
648
  root?: string;
617
649
  icon?: string;
@@ -625,11 +657,11 @@ export declare type HvAppSwitcherActionClasses = {
625
657
 
626
658
  export declare type HvAppSwitcherActionProps = HvBaseProps & {
627
659
  /** The application data to be used to render the Action object. */
628
- application: HvApplication;
660
+ application: HvAppSwitcherActionApplication;
629
661
  /** Callback triggered when the action is clicked. */
630
- onClickCallback?: Function;
662
+ onClickCallback?: (event: React.MouseEvent, application: HvAppSwitcherActionApplication) => void;
631
663
  /** Must return a boolean stating if the action element is selected or not. */
632
- isSelectedCallback?: Function;
664
+ isSelectedCallback?: (application: HvAppSwitcherActionApplication) => boolean;
633
665
  /** A Jss Object used to override or extend the styles applied to the component. */
634
666
  classes?: HvAppSwitcherActionClasses;
635
667
  };
@@ -659,11 +691,11 @@ export declare type HvAppSwitcherProps = HvBaseProps & {
659
691
  /** Title to be displayed on the header of the component. */
660
692
  title?: string;
661
693
  /** The list of applications to be used to render the actions on the component. */
662
- applications?: HvApplication[];
694
+ applications?: HvAppSwitcherActionApplication[];
663
695
  /** Triggered when an action is clicked. */
664
- onActionClickedCallback?: Function;
696
+ onActionClickedCallback?: (event: React.MouseEvent, application: HvAppSwitcherActionApplication) => void;
665
697
  /** Must return a boolean stating if the action element is selected or not. */
666
- isActionSelectedCallback?: Function;
698
+ isActionSelectedCallback?: (application: HvAppSwitcherActionApplication) => boolean;
667
699
  /** Element to be added to the header container, if none is provided a label with the title will be added. */
668
700
  header?: React.ReactNode;
669
701
  /** Element to be added to the footer container. */
@@ -828,7 +860,7 @@ declare type HvBannerContentClasses = {
828
860
  default?: string;
829
861
  };
830
862
 
831
- declare type HvBannerContentProps = Omit<SnackbarContentProps, "variant" | "classes"> & HvBaseProps & {
863
+ declare type HvBannerContentProps = Omit<SnackbarContentProps, "variant" | "classes" | "onClose"> & HvBaseProps & {
832
864
  /** The message to display. */
833
865
  content?: React.ReactNode;
834
866
  /** Variant of the snackbar. */
@@ -838,7 +870,7 @@ declare type HvBannerContentProps = Omit<SnackbarContentProps, "variant" | "clas
838
870
  /** Custom icon to replace the variant default. */
839
871
  customIcon?: React.ReactNode;
840
872
  /** onClose function. */
841
- onClose?: Function;
873
+ onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
842
874
  /** Actions to display on the right side. */
843
875
  actions?: React.ReactNode | HvActionGeneric_2[];
844
876
  /** The callback function ran when an action is triggered, receiving `action` as param */
@@ -851,11 +883,11 @@ declare type HvBannerContentProps = Omit<SnackbarContentProps, "variant" | "clas
851
883
  classes?: HvBannerContentClasses;
852
884
  };
853
885
 
854
- export declare type HvBannerProps = Omit<SnackbarProps, "anchorOrigin" | "classes"> & HvBaseProps & {
886
+ export declare type HvBannerProps = Omit<SnackbarProps, "anchorOrigin" | "classes" | "onClose"> & HvBaseProps & {
855
887
  /** If true | Snackbar is open. */
856
888
  open: boolean;
857
889
  /** 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;
890
+ onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
859
891
  /** The message to display. */
860
892
  label?: React.ReactNode;
861
893
  /** The anchor of the Snackbar. */
@@ -867,9 +899,9 @@ export declare type HvBannerProps = Omit<SnackbarProps, "anchorOrigin" | "classe
867
899
  /** Controls if the associated icon to the variant should be shown. */
868
900
  showIcon?: boolean;
869
901
  /** Actions to display on the right side. */
870
- actions?: React.ReactNode | HvActionGeneric_2[];
902
+ actions?: React.ReactNode | HvActionGeneric[];
871
903
  /** The callback function ran when an action is triggered, receiving `action` as param */
872
- actionsCallback?: (event: React.SyntheticEvent, id: string, action: HvActionGeneric_2) => void;
904
+ actionsCallback?: (event: React.SyntheticEvent, id: string, action: HvActionGeneric) => void;
873
905
  /** The position property of the header. */
874
906
  actionsPosition?: HvBannerActionPosition;
875
907
  /** How much the transition animation last in milliseconds, if 0 no animation is played. */
@@ -1896,6 +1928,8 @@ export declare type HvCheckBoxProps = Omit<HvBaseCheckBoxProps, "classes"> & {
1896
1928
  classes?: HvCheckBoxClasses;
1897
1929
  };
1898
1930
 
1931
+ export declare type HvClickOutsideEvent = MouseEvent | KeyboardEvent | TouchEvent;
1932
+
1899
1933
  export declare type HvColumn<D extends object = Record<string, unknown>> = Column<D>;
1900
1934
 
1901
1935
  declare type HvColumnGroup<D extends object = Record<string, unknown>> = HvTableColumnOptions<D> & HvColumnGroupInterface<D> & ({
@@ -2925,7 +2959,9 @@ export declare const HvFormElementDescriptorsContextProvider: React_2.Provider<{
2925
2959
  label?: any;
2926
2960
  }>;
2927
2961
 
2928
- export declare type HvFormElementProps = HvBaseProps & {
2962
+ export declare type HvFormElementProps = HvBaseProps<HTMLDivElement, {
2963
+ onChange: any;
2964
+ }> & {
2929
2965
  /**
2930
2966
  * Name of the form element.
2931
2967
  *
@@ -2965,7 +3001,7 @@ export declare type HvFormElementProps = HvBaseProps & {
2965
3001
  /** The error message to show when `status` is "invalid". */
2966
3002
  statusMessage?: string;
2967
3003
  /** The callback fired when the value changes. */
2968
- onChange?: Function;
3004
+ onChange?: (event: React.FormEvent<HTMLDivElement>) => void;
2969
3005
  /** A Jss Object used to override or extend the styles applied to the component. */
2970
3006
  classes?: HvFormElementClasses;
2971
3007
  };
@@ -3347,48 +3383,48 @@ export declare type HvInputProps = HvBaseProps<HTMLElement, {
3347
3383
  * The function that will be executed onChange, allows modification of the input,
3348
3384
  * it receives the value. If a new value should be presented it must returned it.
3349
3385
  */
3350
- onChange?: Function;
3386
+ onChange?: (event: React_2.ChangeEvent<HTMLInputElement>, value: string) => void;
3351
3387
  /**
3352
3388
  * Callback called when the user submits the value by pressing Enter/Return.
3353
3389
  *
3354
3390
  * Also called when the search button is clicked (when type is "search").
3355
3391
  */
3356
- onEnter?: Function;
3392
+ onEnter?: (event: React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent, value: string) => void;
3357
3393
  /**
3358
3394
  * The function that will be executed onBlur, allows checking the validation state,
3359
- * it receives the value and the validation state (`invalid`, `valid`).
3395
+ * it receives the value and the validation state.
3360
3396
  */
3361
- onBlur?: Function;
3397
+ onBlur?: (event: React_2.FocusEvent<HTMLInputElement>, value: string, validationState: HvInputValidity) => void;
3362
3398
  /**
3363
3399
  * The function that will be executed onBlur, allows checking the value state,
3364
3400
  * it receives the value.
3365
3401
  */
3366
- onFocus?: Function;
3402
+ onFocus?: (event: React_2.FocusEventHandler<HTMLInputElement>, value: string) => void;
3367
3403
  /**
3368
3404
  * The function that will be executed onKeyDown, allows checking the value state,
3369
3405
  * it receives the event and value.
3370
3406
  */
3371
- onKeyDown?: Function;
3407
+ onKeyDown?: (event: React_2.KeyboardEvent<HTMLInputElement> | React_2.MouseEvent, value: string) => void;
3372
3408
  /** The input type. */
3373
3409
  type?: HTMLInputTypeAttribute;
3374
3410
  /** The placeholder value of the input. */
3375
3411
  placeholder?: string;
3376
3412
  /** Internal labels?. */
3377
- labels?: HvInputLabels_2 & HvExtraProps;
3413
+ labels?: HvInputLabels & HvExtraProps;
3378
3414
  /** An Object containing the various texts associated with the input. */
3379
- validationMessages?: HvValidationMessages_2;
3415
+ validationMessages?: HvValidationMessages;
3380
3416
  /** Attributes applied to the input element. */
3381
3417
  inputProps?: InputBaseComponentProps;
3382
3418
  /** Allows passing a ref to the underlying input */
3383
3419
  inputRef?: any;
3384
3420
  /** 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;
3421
+ suggestionListCallback?: (value: string) => HvInputSuggestion[] | null;
3386
3422
  /**
3387
3423
  * The custom validation function, it receives the value and must return
3388
3424
  * either `true` for valid or `false` for invalid, default validations would only
3389
3425
  * occur if this function is null or undefined
3390
3426
  */
3391
- validation?: Function;
3427
+ validation?: (value: string) => boolean;
3392
3428
  /** If `true` it should autofocus. */
3393
3429
  autoFocus?: boolean;
3394
3430
  /** If `true` the clear button is disabled. */
@@ -3414,6 +3450,12 @@ export declare type HvInputProps = HvBaseProps<HTMLElement, {
3414
3450
  classes?: HvInputClasses;
3415
3451
  };
3416
3452
 
3453
+ export declare type HvInputSuggestion = {
3454
+ id: string;
3455
+ label: string;
3456
+ value?: string;
3457
+ };
3458
+
3417
3459
  declare type HvInputValidity = {
3418
3460
  valid?: boolean;
3419
3461
  badInput?: boolean;
@@ -4436,7 +4478,7 @@ export declare type HvSelectionListProps = HvBaseProps<HTMLUListElement, {
4436
4478
  * When uncontrolled and unspecified it will default to "standBy" and change to either "valid"
4437
4479
  * or "invalid" after any change to the state.
4438
4480
  */
4439
- status?: HvFormStatus_2;
4481
+ status?: HvFormStatus;
4440
4482
  /**
4441
4483
  * The error message to show when the validation status is "invalid".
4442
4484
  *
@@ -4450,7 +4492,7 @@ export declare type HvSelectionListProps = HvBaseProps<HTMLUListElement, {
4450
4492
  /** Indicates whether the list orientation is horizontal or vertical. Defaults to vertical. */
4451
4493
  orientation?: "vertical" | "horizontal";
4452
4494
  /** The callback fired when the value changes. */
4453
- onChange?: Function;
4495
+ onChange?: (event: React_2.MouseEvent, value: any) => void;
4454
4496
  /** A Jss Object used to override or extend the styles applied to the component. */
4455
4497
  classes?: HvSelectionListClasses;
4456
4498
  };
@@ -4646,11 +4688,10 @@ export declare type HvSuggestionsProps = HvBaseProps & {
4646
4688
  anchorEl?: HTMLElement | null;
4647
4689
  /** Array of { id, label, ...others } values to display in the suggestion list */
4648
4690
  suggestionValues?: HvSuggestion[] | null;
4649
- /** Function called when suggestion list is closed */
4650
4691
  /** Function called when a suggestion is selected */
4651
- onSuggestionSelected?: Function;
4692
+ onSuggestionSelected?: (event: React_2.MouseEvent, value: HvSuggestion) => void;
4652
4693
  /** Function called when suggestion list is closed */
4653
- onClose?: Function;
4694
+ onClose?: (event: HvClickOutsideEvent) => void;
4654
4695
  /** A Jss Object used to override or extend the styles applied to the component. */
4655
4696
  classes?: HvSuggestionsClasses;
4656
4697
  };
@@ -5575,9 +5616,9 @@ export declare type HvTagsInputProps = HvBaseProps<HTMLElement, {
5575
5616
  /** The form element name. */
5576
5617
  name?: string;
5577
5618
  /** The value of the form element. */
5578
- value?: string[] | HvTagProps_2[];
5619
+ value?: string[] | HvTagProps[];
5579
5620
  /** When uncontrolled, defines the initial input value. */
5580
- defaultValue?: string[] | HvTagProps_2[];
5621
+ defaultValue?: string[] | HvTagProps[];
5581
5622
  /**
5582
5623
  * The label of the form element.
5583
5624
  * The form element must be labeled for accessibility reasons.
@@ -5593,15 +5634,15 @@ export declare type HvTagsInputProps = HvBaseProps<HTMLElement, {
5593
5634
  /** Indicates that the form element is required. */
5594
5635
  required?: boolean;
5595
5636
  /** 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;
5637
+ 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
5638
  /** The function that will be executed when the element is focused. */
5598
5639
  onFocus?: (event: React_2.FocusEvent<HTMLInputElement>, value: string) => void;
5599
5640
  /** The function that will be executed when the element is blurred. */
5600
5641
  onBlur?: (event: React_2.FocusEvent<HTMLInputElement>, value: string) => void;
5601
5642
  /** 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;
5643
+ 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
5644
  /** 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;
5645
+ 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
5646
  /** The placeholder value of the input. */
5606
5647
  placeholder?: string;
5607
5648
  /** If `true` the character counter isn't shown even if maxTagsQuantity is set. */
@@ -5625,17 +5666,19 @@ export declare type HvTagsInputProps = HvBaseProps<HTMLElement, {
5625
5666
  /** The error message to show when `status` is "invalid". */
5626
5667
  statusMessage?: React_2.ReactNode;
5627
5668
  /** An Object containing the various texts associated with the input. */
5628
- validationMessages?: HvValidationMessages_2;
5669
+ validationMessages?: HvValidationMessages;
5629
5670
  /** 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
5671
  commitTagOn?: string[];
5631
5672
  /** If `true` the tag will be committed when the blur event occurs. */
5632
5673
  commitOnBlur?: boolean;
5633
5674
  /** 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;
5675
+ suggestionListCallback?: (value: string) => HvTagSuggestion[] | null;
5635
5676
  /** A Jss Object used to override or extend the styles applied to the component. */
5636
5677
  classes?: HvTagsInputClasses;
5637
5678
  };
5638
5679
 
5680
+ export declare type HvTagSuggestion = HvInputSuggestion;
5681
+
5639
5682
  /**
5640
5683
  * A text area is a multiline text input box, with an optional character counter when there is a length limit.
5641
5684
  */
@@ -5807,7 +5850,7 @@ export declare const HvToggleButton: ForwardRefExoticComponent<HvBaseProps<HTMLB
5807
5850
  /** Icon for when selected. Ignored if the component has children. */
5808
5851
  selectedIcon?: React.ReactNode;
5809
5852
  /** Function called when icon is clicked. */
5810
- onClick?: Function | undefined;
5853
+ onClick?: ((event: React.MouseEvent<HTMLButtonElement>, selected: boolean) => void) | undefined;
5811
5854
  } & RefAttributes<HTMLButtonElement>>;
5812
5855
 
5813
5856
  export declare type HvToggleButtonProps = HvBaseProps<HTMLButtonElement, {
@@ -5824,7 +5867,7 @@ export declare type HvToggleButtonProps = HvBaseProps<HTMLButtonElement, {
5824
5867
  /** Icon for when selected. Ignored if the component has children. */
5825
5868
  selectedIcon?: React.ReactNode;
5826
5869
  /** Function called when icon is clicked. */
5827
- onClick?: Function;
5870
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>, selected: boolean) => void;
5828
5871
  };
5829
5872
 
5830
5873
  /**
@@ -6022,6 +6065,411 @@ export declare type HvValidationMessages = {
6022
6065
  typeMismatchError?: string;
6023
6066
  };
6024
6067
 
6068
+ /**
6069
+ * Navigation enables users to move through an app to complete tasks.
6070
+ *
6071
+ * It is recommended to use vertical navigation when your application requires global navigation that is displayed on the left.
6072
+ * While vertical navigation menus generally consume more space than their horizontal counterparts, they have become more popular as desktop monitors move to wide-screen formats.
6073
+ *
6074
+ * Even thou both the hierarchically organized data and the visual style ressemble a treeview-like structure, the [Treeview Design Pattern](https://w3c.github.io/aria-practices/#TreeView)
6075
+ * isn't necessarily the most appropriate.
6076
+ *
6077
+ * The tree role provides complex functionality that is not needed for typical site navigation, and changes the most common keyboard navigation using TAB.
6078
+ *
6079
+ * The [Disclosure Design Pattern](https://w3c.github.io/aria-practices/#disclosure) is more suited for typical site navigation, with expandable groups of links.
6080
+ * However it can be tedious to TAB through all navigation items to reach the actions panel.
6081
+ *
6082
+ * Both modes are available via the `mode` property and each app should choose the most appropriate.
6083
+ */
6084
+ export declare const HvVerticalNavigation: ({ id, className, classes, children, open, collapsedMode, ...others }: HvVerticalNavigationProps) => JSX_2.Element;
6085
+
6086
+ export declare const HvVerticalNavigationAction: ({ className, classes, id, label, icon, onClick, ...others }: HvVerticalNavigationActionProps) => JSX_2.Element;
6087
+
6088
+ export declare type HvVerticalNavigationActionClasses = {
6089
+ action?: string;
6090
+ noIcon?: string;
6091
+ minimized?: string;
6092
+ };
6093
+
6094
+ export declare type HvVerticalNavigationActionProps = {
6095
+ /**
6096
+ * Class names to be applied.
6097
+ */
6098
+ className?: string;
6099
+ /**
6100
+ * A Jss Object used to override or extend the styles applied to the component.
6101
+ */
6102
+ classes?: HvVerticalNavigationActionClasses;
6103
+ /**
6104
+ * Id to be applied to the action.
6105
+ */
6106
+ id?: string;
6107
+ /**
6108
+ * Visual label.
6109
+ */
6110
+ label?: string;
6111
+ /**
6112
+ * Icon.
6113
+ */
6114
+ icon?: React.ReactNode;
6115
+ /**
6116
+ * Callback called when clicked.
6117
+ */
6118
+ onClick?: MouseEventHandler<HTMLElement>;
6119
+ };
6120
+
6121
+ export declare const HvVerticalNavigationActions: ({ className, classes, id, children, ...others }: HvVerticalNavigationActionsProps) => JSX_2.Element;
6122
+
6123
+ export declare type HvVerticalNavigationActionsClasses = {
6124
+ root?: string;
6125
+ hide?: string;
6126
+ };
6127
+
6128
+ export declare type HvVerticalNavigationActionsProps = {
6129
+ /**
6130
+ * Class names to be applied.
6131
+ */
6132
+ className?: string;
6133
+ /**
6134
+ * A Jss Object used to override or extend the styles applied to the component.
6135
+ */
6136
+ classes?: HvVerticalNavigationActionsClasses;
6137
+ /**
6138
+ * Id to be applied to the actions container.
6139
+ */
6140
+ id?: string;
6141
+ /**
6142
+ * Node to be rendered
6143
+ */
6144
+ children?: React.ReactNode;
6145
+ };
6146
+
6147
+ export declare type HvVerticalNavigationClasses = {
6148
+ /** Style applied to the root of the component. */
6149
+ root?: string;
6150
+ /** Style applied to the root of the component when its collapsed. */
6151
+ collapsed?: string;
6152
+ };
6153
+
6154
+ export declare const HvVerticalNavigationHeader: ({ title, openIcon, closeIcon, buttonProps, className, classes, onClick, ...others }: HvVerticalNavigationHeaderProps) => JSX_2.Element;
6155
+
6156
+ export declare type HvVerticalNavigationHeaderClasses = {
6157
+ root?: string;
6158
+ minimized?: string;
6159
+ };
6160
+
6161
+ export declare type HvVerticalNavigationHeaderProps = {
6162
+ id?: any;
6163
+ title?: any;
6164
+ openIcon?: React.ReactNode;
6165
+ closeIcon?: React.ReactNode;
6166
+ buttonProps?: HvButtonProps_2;
6167
+ className?: string;
6168
+ classes?: HvVerticalNavigationHeaderClasses;
6169
+ onClick?: MouseEventHandler<HTMLElement>;
6170
+ };
6171
+
6172
+ export declare type HvVerticalNavigationMode = "icon" | "simple";
6173
+
6174
+ export declare type HvVerticalNavigationPosition = "static" | "relative" | "fixed" | "absolute";
6175
+
6176
+ export declare type HvVerticalNavigationProps = {
6177
+ /**
6178
+ * Id to be applied to the root node.
6179
+ */
6180
+ id?: string;
6181
+ /**
6182
+ * Class names to be applied.
6183
+ */
6184
+ className?: string;
6185
+ /**
6186
+ * A Jss Object used to override or extend the styles applied to the component.
6187
+ */
6188
+ classes?: HvVerticalNavigationClasses;
6189
+ /**
6190
+ * Current State of the Vertical Navigation Collapse
6191
+ */
6192
+ open?: boolean;
6193
+ /**
6194
+ * Collpased Mode for the Vertical Navigation, the default value is "simple".
6195
+ */
6196
+ collapsedMode?: HvVerticalNavigationMode;
6197
+ /**
6198
+ * The content inside the actions container.
6199
+ */
6200
+ children?: React.ReactNode;
6201
+ };
6202
+
6203
+ export declare const HvVerticalNavigationTree: ({ id, className, classes, data, mode, collapsible, expanded: expandedProp, defaultExpanded, onToggle, selected: selectedProp, defaultSelected, onChange, ...others }: HvVerticalNavigationTreeProps) => JSX_2.Element;
6204
+
6205
+ export declare type HvVerticalNavigationTreeClasses = {
6206
+ root?: string;
6207
+ list?: string;
6208
+ listItem?: string;
6209
+ collapsed?: string;
6210
+ };
6211
+
6212
+ export declare type HvVerticalNavigationTreeProps = {
6213
+ /**
6214
+ * Id to be applied to the root node.
6215
+ */
6216
+ id?: string;
6217
+ /**
6218
+ * Class names to be applied.
6219
+ */
6220
+ className?: string;
6221
+ /**
6222
+ * A Jss Object used to override or extend the styles applied.
6223
+ */
6224
+ classes?: HvVerticalNavigationTreeClasses;
6225
+ /**
6226
+ * Modus operandi (role) of the widget instance.
6227
+ */
6228
+ mode?: NavigationMode;
6229
+ /**
6230
+ * Can non-leaf nodes be collapsed / expanded.
6231
+ */
6232
+ collapsible?: boolean;
6233
+ /**
6234
+ * The ID of the selected page.
6235
+ */
6236
+ selected?: string;
6237
+ /**
6238
+ * When uncontrolled, defines the initial selected page ID.
6239
+ */
6240
+ defaultSelected?: string;
6241
+ /**
6242
+ * Callback fired when a navigation item is selected.
6243
+ *
6244
+ * @param {object} event The event source of the callback.
6245
+ * @param {object} page The data of the selected page.
6246
+ */
6247
+ onChange?: (event: any, page: any) => void;
6248
+ /**
6249
+ * Expanded nodes' ids.
6250
+ */
6251
+ expanded?: string[];
6252
+ /**
6253
+ * When uncontrolled, defines the initial expanded nodes' ids.
6254
+ *
6255
+ * It also supports `true` for starting with all nodes expanded.
6256
+ * With `false` all nodes will be collapsed.
6257
+ *
6258
+ * By default it expands the needed nodes to display the current selection, if any.
6259
+ */
6260
+ defaultExpanded?: string[] | boolean;
6261
+ /**
6262
+ * Callback fired when tree items are expanded/collapsed.
6263
+ *
6264
+ * @param {object} event The event source of the callback.
6265
+ * @param {array} nodeIds The ids of the expanded nodes (old and new).
6266
+ */
6267
+ onToggle?: (event: any, nodeIds: any) => void;
6268
+ /**
6269
+ * An array containing the data for each menu item.
6270
+ *
6271
+ * id - the id to be applied to the root element.
6272
+ * label - the label to be rendered on the menu item.
6273
+ * data - sub-menu items
6274
+ * href - the url used for navigation.
6275
+ * target - the behavior when opening an url.
6276
+ */
6277
+ data?: NavigationData[];
6278
+ };
6279
+
6280
+ export declare const HvVerticalNavigationTreeView: ForwardRefExoticComponent<HvVerticalNavigationTreeViewProps & RefAttributes<unknown>>;
6281
+
6282
+ export declare type HvVerticalNavigationTreeViewClasses = {
6283
+ root?: string;
6284
+ };
6285
+
6286
+ export declare const HvVerticalNavigationTreeViewItem: ForwardRefExoticComponent<HvVerticalNavigationTreeViewItemProps & RefAttributes<unknown>>;
6287
+
6288
+ export declare type HvVerticalNavigationTreeViewItemClasses = {
6289
+ /** Style applied to the root of the component. */
6290
+ node?: string;
6291
+ /** Style applied to the content. */
6292
+ content?: string;
6293
+ /** Style applied to the content when it is a link. */
6294
+ link?: string;
6295
+ /** Style applied to the group. */
6296
+ group?: string;
6297
+ /** Style applied when item is disabled. */
6298
+ disabled?: string;
6299
+ /** Style applied when item is expandable. */
6300
+ expandable?: string;
6301
+ /** Style applied when item is collapsed. */
6302
+ collapsed?: string;
6303
+ /** Style applied when item is expanded */
6304
+ expanded?: string;
6305
+ /** Style applied when item is selectable. */
6306
+ selectable?: string;
6307
+ /** Style applied when item is unselectable. */
6308
+ unselectable?: string;
6309
+ /** Style applied when item is selectable. */
6310
+ selected?: string;
6311
+ /** Style applied when item is unselectable. */
6312
+ unselected?: string;
6313
+ /** Style applied when item is focused. */
6314
+ focused?: string;
6315
+ /** Styled applied when navigation open is false */
6316
+ minimized?: string;
6317
+ hide?: string;
6318
+ };
6319
+
6320
+ export declare type HvVerticalNavigationTreeViewItemProps = {
6321
+ /**
6322
+ * Id to be applied to the root node.
6323
+ */
6324
+ id?: string;
6325
+ /**
6326
+ * Class names to be applied.
6327
+ */
6328
+ className?: string;
6329
+ /**
6330
+ * A Jss Object used to override or extend the styles applied to the Radio button.
6331
+ */
6332
+ classes?: HvVerticalNavigationTreeViewItemClasses;
6333
+ /**
6334
+ * Is the node disabled.
6335
+ */
6336
+ disabled?: boolean;
6337
+ /**
6338
+ * Can the node be selected.
6339
+ */
6340
+ selectable?: boolean;
6341
+ /**
6342
+ * The id of the node.
6343
+ */
6344
+ nodeId?: string;
6345
+ /**
6346
+ * The icon to display next to the node's label.
6347
+ */
6348
+ icon?: React.ReactNode;
6349
+ /**
6350
+ * The item label.
6351
+ */
6352
+ label?: React.ReactNode;
6353
+ /**
6354
+ * The url for the link.
6355
+ */
6356
+ href?: string;
6357
+ /**
6358
+ * The behavior when opening a link.
6359
+ */
6360
+ target?: string;
6361
+ /**
6362
+ * The node payload.
6363
+ */
6364
+ payload?: any;
6365
+ /**
6366
+ * @ignore
6367
+ */
6368
+ onClick?: any;
6369
+ /**
6370
+ * @ignore
6371
+ */
6372
+ onMouseDown?: any;
6373
+ /**
6374
+ * @ignore
6375
+ */
6376
+ onFocus?: any;
6377
+ /**
6378
+ * The content of the component.
6379
+ */
6380
+ children?: React.ReactNode;
6381
+ };
6382
+
6383
+ export declare type HvVerticalNavigationTreeViewProps = {
6384
+ /**
6385
+ * Id to be applied to the root node.
6386
+ */
6387
+ id?: string;
6388
+ /**
6389
+ * Class names to be applied.
6390
+ */
6391
+ className?: string;
6392
+ /**
6393
+ * A Jss Object used to override or extend the styles applied to the Radio button.
6394
+ */
6395
+ classes?: HvVerticalNavigationTreeClasses;
6396
+ /**
6397
+ * Modus operandi (role) of the widget instance.
6398
+ */
6399
+ mode?: NavigationMode;
6400
+ /**
6401
+ * Enables selection.
6402
+ * @default false
6403
+ */
6404
+ selectable?: boolean;
6405
+ /**
6406
+ * Enables the simultaneous selection of multiple items.
6407
+ * @default false
6408
+ */
6409
+ multiSelect?: boolean;
6410
+ /**
6411
+ * The selected nodes' ids.
6412
+ *
6413
+ * When `multiSelect` is true this takes an array of strings; when false (default) a string.
6414
+ */
6415
+ selected?: string[] | string;
6416
+ /**
6417
+ * When uncontrolled, defines the initial selected nodes' ids.
6418
+ *
6419
+ * When `multiSelect` is true this takes an array of strings; when false (default) a string.
6420
+ * @default []
6421
+ */
6422
+ defaultSelected?: string[] | string;
6423
+ /**
6424
+ * Can non-leaf nodes be collapsed / expanded.
6425
+ */
6426
+ collapsible?: boolean;
6427
+ /**
6428
+ * Callback fired when a tree item is selected.
6429
+ *
6430
+ * @param {object} event The event source of the callback.
6431
+ * @param {string} nodeId The id of the selected node.
6432
+ */
6433
+ onChange?: any;
6434
+ /**
6435
+ * Expanded nodes' ids.
6436
+ */
6437
+ expanded?: string[];
6438
+ /**
6439
+ * When uncontrolled, defines the initial expanded nodes' ids.
6440
+ * @default []
6441
+ */
6442
+ defaultExpanded?: string[];
6443
+ /**
6444
+ * Callback fired when tree items are expanded/collapsed.
6445
+ *
6446
+ * @param {object} event The event source of the callback.
6447
+ * @param {array} nodeIds The ids of the expanded nodes (old and new).
6448
+ */
6449
+ onToggle?: (event: any, nodeIds: any) => void;
6450
+ /**
6451
+ * If `true`, will allow focus on disabled items.
6452
+ * @default false
6453
+ */
6454
+ disabledItemsFocusable?: boolean;
6455
+ /**
6456
+ * @ignore
6457
+ */
6458
+ onFocus?: (event: React.FocusEvent<any>) => void;
6459
+ /**
6460
+ * @ignore
6461
+ */
6462
+ onBlur?: (event: any) => void;
6463
+ /**
6464
+ * @ignore
6465
+ */
6466
+ onKeyDown?: (event: KeyboardEvent) => void;
6467
+ /**
6468
+ * The content of the component.
6469
+ */
6470
+ children?: React.ReactNode;
6471
+ };
6472
+
6025
6473
  /**
6026
6474
  * Provides the user with a descriptive text, signaling an error, for when the form element is in an invalid state.
6027
6475
  */
@@ -6222,6 +6670,47 @@ export declare const multiButtonClasses: HvMultiButtonClasses;
6222
6670
 
6223
6671
  export declare const multiSelectionEventHandler: (evt: any, index: any, selectionAnchor: any, allValues: any, selectedState: any, selectionCheck: any) => any[];
6224
6672
 
6673
+ export declare interface NavigationData {
6674
+ /**
6675
+ * the id to be applied to the root element.
6676
+ */
6677
+ id: string;
6678
+ /**
6679
+ * the label to be rendered on the menu item.
6680
+ */
6681
+ label: string;
6682
+ /**
6683
+ * The url for the link.
6684
+ */
6685
+ href?: string;
6686
+ /**
6687
+ * The behavior when opening a link.
6688
+ */
6689
+ target?: string;
6690
+ /**
6691
+ * Icon to be render.
6692
+ */
6693
+ icon?: React.ReactNode;
6694
+ /**
6695
+ * Data subset.
6696
+ */
6697
+ data?: NavigationData[];
6698
+ /**
6699
+ * if `true` the item is disabled and is not interactive.
6700
+ */
6701
+ disabled?: boolean;
6702
+ /**
6703
+ * if `true` the item doesn't have a selected state.
6704
+ */
6705
+ selectable?: boolean;
6706
+ /**
6707
+ * Any other properties.
6708
+ */
6709
+ [otherProperty: string]: any;
6710
+ }
6711
+
6712
+ export declare type NavigationMode = "treeview" | "navigation";
6713
+
6225
6714
  export declare const normalizeProgressBar: (value: number, max: number) => number;
6226
6715
 
6227
6716
  export declare const outlineStyles: {
@@ -6336,18 +6825,24 @@ export { themes }
6336
6825
 
6337
6826
  export declare const tooltipClasses: HvTooltipClasses;
6338
6827
 
6828
+ export declare const treeViewClasses: HvVerticalNavigationTreeViewClasses;
6829
+
6830
+ export declare const treeViewItemClasses: HvVerticalNavigationTreeViewItemClasses;
6831
+
6339
6832
  export declare const typographyClasses: HvTypographyClasses;
6340
6833
 
6341
6834
  export declare type UseBulkActionsProps = (<D extends object = Record<string, unknown>>(hooks: Hooks<D>) => void) & {
6342
6835
  pluginName: string;
6343
6836
  };
6344
6837
 
6345
- export declare const useClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event_2) => void) => void;
6838
+ export declare const useClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: HvClickOutsideEvent) => void) => void;
6346
6839
 
6347
6840
  export declare function useComputation(valueFn: any, valueFallback?: any): any[];
6348
6841
 
6349
6842
  export declare const useControlled: (controlledProp: any, initialState: any) => any[];
6350
6843
 
6844
+ export declare const useEnhancedEffect: typeof useEffect;
6845
+
6351
6846
  export declare type UseFiltersProps = (<D extends object = Record<string, unknown>>(hooks: Hooks<D>) => void) & {
6352
6847
  pluginName: string;
6353
6848
  };
@@ -6647,6 +7142,19 @@ export declare const useWidth: () => string;
6647
7142
 
6648
7143
  declare type ValueOf<T> = T[keyof T];
6649
7144
 
7145
+ export declare const verticalNavigationClasses: HvVerticalNavigationClasses;
7146
+
7147
+ export declare const VerticalNavigationContext: Context<VerticalNavigationContextValue>;
7148
+
7149
+ declare interface VerticalNavigationContextValue {
7150
+ isOpen: boolean;
7151
+ collapsedMode: HvVerticalNavigationMode;
7152
+ }
7153
+
7154
+ export declare const verticalNavigationHeaderClasses: HvVerticalNavigationHeaderClasses;
7155
+
7156
+ export declare const verticalNavigationTreeClasses: HvVerticalNavigationTreeClasses;
7157
+
6650
7158
  export declare type VisibilitySelectorActions = "previous_month" | "next_month" | "previous_year" | "next_year" | "month" | "month_year";
6651
7159
 
6652
7160
  export declare const warningTextClasses: HvWarningTextClasses;
@@ -6662,4 +7170,6 @@ declare interface WithIdProps extends HvExtraProps {
6662
7170
 
6663
7171
  export declare const withTooltip: (Component: any, label: string | undefined, placement: any, hideTooltip: any, tooltipProps: any, tooltipContainerProps: any) => (props: any) => JSX_2.Element;
6664
7172
 
7173
+ export declare const wrapperTooltip: (hasTooltips: any, Component: any, label: any) => ((props: any) => JSX_2.Element) | (() => any);
7174
+
6665
7175
  export { }