@hitachivantara/uikit-react-core 5.0.0-next.17 → 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.
- package/README.md +1 -1
- package/dist/cjs/components/BaseDropdown/BaseDropdown.cjs +1 -1
- package/dist/cjs/components/DropDownMenu/DropDownMenu.cjs +1 -1
- package/dist/cjs/components/DropDownMenu/DropDownMenu.cjs.map +1 -1
- package/dist/cjs/components/FileUploader/DropZone/DropZone.cjs +1 -1
- package/dist/cjs/components/FileUploader/DropZone/DropZone.cjs.map +1 -1
- package/dist/cjs/components/List/List.cjs +4 -3
- package/dist/cjs/components/List/List.cjs.map +1 -1
- package/dist/cjs/components/List/utils.cjs +0 -10
- package/dist/cjs/components/List/utils.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/Actions/Action.cjs +45 -0
- package/dist/cjs/components/VerticalNavigation/Actions/Action.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Actions/Action.styles.cjs +51 -0
- package/dist/cjs/components/VerticalNavigation/Actions/Action.styles.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Actions/Actions.cjs +30 -0
- package/dist/cjs/components/VerticalNavigation/Actions/Actions.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Actions/Actions.styles.cjs +26 -0
- package/dist/cjs/components/VerticalNavigation/Actions/Actions.styles.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Actions/actionClasses.cjs +8 -0
- package/dist/cjs/components/VerticalNavigation/Actions/actionClasses.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Actions/actionsClasses.cjs +8 -0
- package/dist/cjs/components/VerticalNavigation/Actions/actionsClasses.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Header/Header.cjs +45 -0
- package/dist/cjs/components/VerticalNavigation/Header/Header.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Header/Header.styles.cjs +23 -0
- package/dist/cjs/components/VerticalNavigation/Header/Header.styles.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Header/headerClasses.cjs +8 -0
- package/dist/cjs/components/VerticalNavigation/Header/headerClasses.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs +134 -0
- package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.styles.cjs +22 -0
- package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.styles.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/Navigation/navigationClasses.cjs +8 -0
- package/dist/cjs/components/VerticalNavigation/Navigation/navigationClasses.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.cjs +643 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.styles.cjs +21 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.styles.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewContext.cjs +10 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewContext.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs +282 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +132 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.styles.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/descendants.cjs +134 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/descendants.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/treeViewClasses.cjs +8 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/treeViewClasses.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/treeViewItemClasses.cjs +8 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/treeViewItemClasses.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.cjs +40 -0
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.styles.cjs +43 -0
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.styles.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/verticalNavigationClasses.cjs +8 -0
- package/dist/cjs/components/VerticalNavigation/verticalNavigationClasses.cjs.map +1 -0
- package/dist/cjs/hocs/withTooltip.cjs.map +1 -1
- package/dist/cjs/hooks/useEnhancedEffect.cjs +6 -0
- package/dist/cjs/hooks/useEnhancedEffect.cjs.map +1 -0
- package/dist/cjs/index.cjs +37 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/utils/wrapperTooltip.cjs +13 -0
- package/dist/cjs/utils/wrapperTooltip.cjs.map +1 -0
- package/dist/esm/components/BaseDropdown/BaseDropdown.js +1 -1
- package/dist/esm/components/DropDownMenu/DropDownMenu.js +1 -1
- package/dist/esm/components/DropDownMenu/DropDownMenu.js.map +1 -1
- package/dist/esm/components/FileUploader/DropZone/DropZone.js +1 -1
- package/dist/esm/components/FileUploader/DropZone/DropZone.js.map +1 -1
- package/dist/esm/components/List/List.js +2 -1
- package/dist/esm/components/List/List.js.map +1 -1
- package/dist/esm/components/List/utils.js +1 -11
- package/dist/esm/components/List/utils.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/Actions/Action.js +43 -0
- package/dist/esm/components/VerticalNavigation/Actions/Action.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Actions/Action.styles.js +49 -0
- package/dist/esm/components/VerticalNavigation/Actions/Action.styles.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Actions/Actions.js +28 -0
- package/dist/esm/components/VerticalNavigation/Actions/Actions.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Actions/Actions.styles.js +24 -0
- package/dist/esm/components/VerticalNavigation/Actions/Actions.styles.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Actions/actionClasses.js +8 -0
- package/dist/esm/components/VerticalNavigation/Actions/actionClasses.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Actions/actionsClasses.js +8 -0
- package/dist/esm/components/VerticalNavigation/Actions/actionsClasses.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Header/Header.js +43 -0
- package/dist/esm/components/VerticalNavigation/Header/Header.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Header/Header.styles.js +21 -0
- package/dist/esm/components/VerticalNavigation/Header/Header.styles.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Header/headerClasses.js +8 -0
- package/dist/esm/components/VerticalNavigation/Header/headerClasses.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js +132 -0
- package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Navigation/Navigation.styles.js +20 -0
- package/dist/esm/components/VerticalNavigation/Navigation/Navigation.styles.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/Navigation/navigationClasses.js +8 -0
- package/dist/esm/components/VerticalNavigation/Navigation/navigationClasses.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeView.js +641 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeView.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeView.styles.js +19 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeView.styles.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewContext.js +10 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewContext.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js +280 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.styles.js +130 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/descendants.js +134 -0
- package/dist/esm/components/VerticalNavigation/TreeView/descendants.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/treeViewClasses.js +8 -0
- package/dist/esm/components/VerticalNavigation/TreeView/treeViewClasses.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/treeViewItemClasses.js +8 -0
- package/dist/esm/components/VerticalNavigation/TreeView/treeViewItemClasses.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.js +38 -0
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.styles.js +41 -0
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.styles.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/verticalNavigationClasses.js +8 -0
- package/dist/esm/components/VerticalNavigation/verticalNavigationClasses.js.map +1 -0
- package/dist/esm/hocs/withTooltip.js.map +1 -1
- package/dist/esm/hooks/useEnhancedEffect.js +6 -0
- package/dist/esm/hooks/useEnhancedEffect.js.map +1 -0
- package/dist/esm/index.js +55 -18
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/wrapperTooltip.js +13 -0
- package/dist/esm/utils/wrapperTooltip.js.map +1 -0
- package/dist/types/index.d.ts +502 -0
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -112,6 +113,7 @@ import { TooltipProps } from '@mui/material';
|
|
|
112
113
|
import { TransitionProps } from '@mui/material/transitions';
|
|
113
114
|
import { UseColumnOrderInstanceProps } from 'react-table';
|
|
114
115
|
import { UseColumnOrderState } from 'react-table';
|
|
116
|
+
import { useEffect } from 'react';
|
|
115
117
|
import { UseExpandedHooks } from 'react-table';
|
|
116
118
|
import { UseExpandedInstanceProps } from 'react-table';
|
|
117
119
|
import { UseExpandedOptions } from 'react-table';
|
|
@@ -157,6 +159,10 @@ export declare const accordionClasses: HvAccordionClasses;
|
|
|
157
159
|
|
|
158
160
|
export declare const actionBarClasses: HvActionBarClasses;
|
|
159
161
|
|
|
162
|
+
export declare const actionClasses: HvVerticalNavigationActionClasses;
|
|
163
|
+
|
|
164
|
+
export declare const actionsClasses: HvVerticalNavigationActionsClasses;
|
|
165
|
+
|
|
160
166
|
export declare const actionsGenericClasses: HvActionsGenericClasses;
|
|
161
167
|
|
|
162
168
|
export declare const adornmentClasses: HvAdornmentClasses;
|
|
@@ -347,6 +353,24 @@ export declare const getClasses: <T>(keys: string[], name: string) => T;
|
|
|
347
353
|
|
|
348
354
|
export declare const getComponentName: (Component: any) => any;
|
|
349
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
|
+
|
|
350
374
|
export declare const getHeaderFooterPropsHook: (props: any, { column }: {
|
|
351
375
|
column: any;
|
|
352
376
|
}) => any[];
|
|
@@ -367,6 +391,17 @@ export declare const getIdReferenceListFor: (formElementType: any, descriptors:
|
|
|
367
391
|
*/
|
|
368
392
|
export declare const getKeyCodeFromEvent: (event: any) => any;
|
|
369
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
|
+
|
|
370
405
|
export declare const getSelectorIcons: (options: {
|
|
371
406
|
disabled: boolean;
|
|
372
407
|
semantic: boolean;
|
|
@@ -6030,6 +6065,411 @@ export declare type HvValidationMessages = {
|
|
|
6030
6065
|
typeMismatchError?: string;
|
|
6031
6066
|
};
|
|
6032
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
|
+
|
|
6033
6473
|
/**
|
|
6034
6474
|
* Provides the user with a descriptive text, signaling an error, for when the form element is in an invalid state.
|
|
6035
6475
|
*/
|
|
@@ -6230,6 +6670,47 @@ export declare const multiButtonClasses: HvMultiButtonClasses;
|
|
|
6230
6670
|
|
|
6231
6671
|
export declare const multiSelectionEventHandler: (evt: any, index: any, selectionAnchor: any, allValues: any, selectedState: any, selectionCheck: any) => any[];
|
|
6232
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
|
+
|
|
6233
6714
|
export declare const normalizeProgressBar: (value: number, max: number) => number;
|
|
6234
6715
|
|
|
6235
6716
|
export declare const outlineStyles: {
|
|
@@ -6344,6 +6825,10 @@ export { themes }
|
|
|
6344
6825
|
|
|
6345
6826
|
export declare const tooltipClasses: HvTooltipClasses;
|
|
6346
6827
|
|
|
6828
|
+
export declare const treeViewClasses: HvVerticalNavigationTreeViewClasses;
|
|
6829
|
+
|
|
6830
|
+
export declare const treeViewItemClasses: HvVerticalNavigationTreeViewItemClasses;
|
|
6831
|
+
|
|
6347
6832
|
export declare const typographyClasses: HvTypographyClasses;
|
|
6348
6833
|
|
|
6349
6834
|
export declare type UseBulkActionsProps = (<D extends object = Record<string, unknown>>(hooks: Hooks<D>) => void) & {
|
|
@@ -6356,6 +6841,8 @@ export declare function useComputation(valueFn: any, valueFallback?: any): any[]
|
|
|
6356
6841
|
|
|
6357
6842
|
export declare const useControlled: (controlledProp: any, initialState: any) => any[];
|
|
6358
6843
|
|
|
6844
|
+
export declare const useEnhancedEffect: typeof useEffect;
|
|
6845
|
+
|
|
6359
6846
|
export declare type UseFiltersProps = (<D extends object = Record<string, unknown>>(hooks: Hooks<D>) => void) & {
|
|
6360
6847
|
pluginName: string;
|
|
6361
6848
|
};
|
|
@@ -6655,6 +7142,19 @@ export declare const useWidth: () => string;
|
|
|
6655
7142
|
|
|
6656
7143
|
declare type ValueOf<T> = T[keyof T];
|
|
6657
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
|
+
|
|
6658
7158
|
export declare type VisibilitySelectorActions = "previous_month" | "next_month" | "previous_year" | "next_year" | "month" | "month_year";
|
|
6659
7159
|
|
|
6660
7160
|
export declare const warningTextClasses: HvWarningTextClasses;
|
|
@@ -6670,4 +7170,6 @@ declare interface WithIdProps extends HvExtraProps {
|
|
|
6670
7170
|
|
|
6671
7171
|
export declare const withTooltip: (Component: any, label: string | undefined, placement: any, hideTooltip: any, tooltipProps: any, tooltipContainerProps: any) => (props: any) => JSX_2.Element;
|
|
6672
7172
|
|
|
7173
|
+
export declare const wrapperTooltip: (hasTooltips: any, Component: any, label: any) => ((props: any) => JSX_2.Element) | (() => any);
|
|
7174
|
+
|
|
6673
7175
|
export { }
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Core React components for the NEXT Design System.",
|
|
7
7
|
"homepage": "https://github.com/lumada-design/hv-uikit-react",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"keywords": [
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"access": "public",
|
|
55
55
|
"directory": "package"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "ff2ab576087579c7a8e836c5b97a96cf1976b153",
|
|
58
58
|
"main": "dist/cjs/index.cjs",
|
|
59
59
|
"exports": {
|
|
60
60
|
".": {
|