@hitachivantara/uikit-react-core 5.0.0-next.20 → 5.0.0-next.21
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/dist/cjs/components/AppSwitcher/AppSwitcher.styles.cjs +6 -6
- package/dist/cjs/components/AppSwitcher/AppSwitcher.styles.cjs.map +1 -1
- package/dist/cjs/components/BreadCrumb/Page/Page.styles.cjs +2 -3
- package/dist/cjs/components/BreadCrumb/Page/Page.styles.cjs.map +1 -1
- package/dist/cjs/components/Card/Card.cjs +10 -6
- package/dist/cjs/components/Card/Card.cjs.map +1 -1
- package/dist/cjs/components/Card/Card.styles.cjs +9 -10
- package/dist/cjs/components/Card/Card.styles.cjs.map +1 -1
- package/dist/cjs/components/Card/Content/Content.cjs +6 -1
- package/dist/cjs/components/Card/Content/Content.cjs.map +1 -1
- package/dist/cjs/components/Card/Content/Content.styles.cjs +4 -5
- package/dist/cjs/components/Card/Content/Content.styles.cjs.map +1 -1
- package/dist/cjs/components/Card/Header/Header.cjs +11 -7
- package/dist/cjs/components/Card/Header/Header.cjs.map +1 -1
- package/dist/cjs/components/Card/Header/Header.styles.cjs +8 -9
- package/dist/cjs/components/Card/Header/Header.styles.cjs.map +1 -1
- package/dist/cjs/components/Card/Media/Media.cjs +6 -1
- package/dist/cjs/components/Card/Media/Media.cjs.map +1 -1
- package/dist/cjs/components/Card/Media/Media.styles.cjs +4 -5
- package/dist/cjs/components/Card/Media/Media.styles.cjs.map +1 -1
- package/dist/cjs/components/Controls/Controls.cjs +11 -5
- package/dist/cjs/components/Controls/Controls.cjs.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.cjs +8 -5
- package/dist/cjs/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/cjs/components/DropDownMenu/DropDownMenu.styles.cjs +4 -4
- package/dist/cjs/components/DropDownMenu/DropDownMenu.styles.cjs.map +1 -1
- package/dist/cjs/components/Forms/Suggestions/Suggestions.styles.cjs +4 -4
- package/dist/cjs/components/Forms/Suggestions/Suggestions.styles.cjs.map +1 -1
- package/dist/cjs/components/Header/Brand/Brand.styles.cjs +14 -14
- package/dist/cjs/components/Header/Brand/Brand.styles.cjs.map +1 -1
- package/dist/cjs/components/Table/Table.cjs +1 -1
- package/dist/cjs/components/Table/Table.cjs.map +1 -1
- package/dist/cjs/components/Table/TableBody/TableBody.cjs +1 -1
- package/dist/cjs/components/Table/TableBody/TableBody.cjs.map +1 -1
- package/dist/cjs/components/Table/TableCell/TableCell.cjs +1 -1
- package/dist/cjs/components/Table/TableCell/TableCell.cjs.map +1 -1
- package/dist/cjs/components/Table/TableContainer/TableContainer.cjs +1 -1
- package/dist/cjs/components/Table/TableContainer/TableContainer.cjs.map +1 -1
- package/dist/cjs/components/Table/TableHead/TableHead.cjs +1 -1
- package/dist/cjs/components/Table/TableHead/TableHead.cjs.map +1 -1
- package/dist/cjs/components/Table/TableHeader/TableHeader.cjs +2 -2
- package/dist/cjs/components/Table/TableHeader/TableHeader.cjs.map +1 -1
- package/dist/cjs/components/Table/TableRow/TableRow.cjs +1 -1
- package/dist/cjs/components/Table/TableRow/TableRow.cjs.map +1 -1
- package/dist/cjs/components/Table/hooks/useFilters.cjs.map +1 -1
- package/dist/cjs/components/Table/hooks/useGlobalFilter.cjs.map +1 -1
- package/dist/cjs/components/Table/hooks/useRowSelection.cjs +5 -4
- package/dist/cjs/components/Table/hooks/useRowSelection.cjs.map +1 -1
- package/dist/cjs/components/Table/hooks/useTable.cjs +2 -2
- package/dist/cjs/components/Table/hooks/useTable.cjs.map +1 -1
- package/dist/cjs/components/Table/renderers/renderers.cjs.map +1 -1
- package/dist/cjs/components/Tag/Tag.cjs +1 -0
- package/dist/cjs/components/Tag/Tag.cjs.map +1 -1
- package/dist/cjs/components/Tag/Tag.styles.cjs +5 -4
- package/dist/cjs/components/Tag/Tag.styles.cjs.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.styles.cjs +2 -2
- package/dist/cjs/components/Tooltip/Tooltip.styles.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/Actions/Action.cjs +2 -2
- package/dist/cjs/components/VerticalNavigation/Actions/Action.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/Actions/Actions.cjs +2 -2
- package/dist/cjs/components/VerticalNavigation/Actions/Actions.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/Header/Header.cjs +31 -12
- package/dist/cjs/components/VerticalNavigation/Header/Header.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/Header/Header.styles.cjs +17 -4
- package/dist/cjs/components/VerticalNavigation/Header/Header.styles.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs +27 -4
- package/dist/cjs/components/VerticalNavigation/Navigation/Navigation.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.cjs +50 -0
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs +38 -0
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/navigationSliderClasses.cjs +8 -0
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/navigationSliderClasses.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/utils/NavigationSlider.utils.cjs +41 -0
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/utils/NavigationSlider.utils.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeView.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs +2 -2
- package/dist/cjs/components/VerticalNavigation/TreeView/TreeViewItem.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.cjs +32 -9
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.styles.cjs +7 -2
- package/dist/cjs/components/VerticalNavigation/VerticalNavigation.styles.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/VerticalNavigationContext.cjs +10 -0
- package/dist/cjs/components/VerticalNavigation/VerticalNavigationContext.cjs.map +1 -0
- package/dist/cjs/components/VerticalNavigation/verticalNavigationClasses.cjs +1 -1
- package/dist/cjs/components/VerticalNavigation/verticalNavigationClasses.cjs.map +1 -1
- package/dist/cjs/hooks/useCreateEmotion.cjs +22 -0
- package/dist/cjs/hooks/useCreateEmotion.cjs.map +1 -0
- package/dist/cjs/index.cjs +6 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/providers/Provider.cjs +13 -4
- package/dist/cjs/providers/Provider.cjs.map +1 -1
- package/dist/cjs/providers/ThemeProvider.cjs +4 -2
- package/dist/cjs/providers/ThemeProvider.cjs.map +1 -1
- package/dist/esm/components/AppSwitcher/AppSwitcher.styles.js +6 -6
- package/dist/esm/components/AppSwitcher/AppSwitcher.styles.js.map +1 -1
- package/dist/esm/components/BreadCrumb/Page/Page.styles.js +2 -3
- package/dist/esm/components/BreadCrumb/Page/Page.styles.js.map +1 -1
- package/dist/esm/components/Card/Card.js +6 -2
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/Card.styles.js +3 -4
- package/dist/esm/components/Card/Card.styles.js.map +1 -1
- package/dist/esm/components/Card/Content/Content.js +6 -1
- package/dist/esm/components/Card/Content/Content.js.map +1 -1
- package/dist/esm/components/Card/Content/Content.styles.js +3 -4
- package/dist/esm/components/Card/Content/Content.styles.js.map +1 -1
- package/dist/esm/components/Card/Header/Header.js +7 -3
- package/dist/esm/components/Card/Header/Header.js.map +1 -1
- package/dist/esm/components/Card/Header/Header.styles.js +3 -4
- package/dist/esm/components/Card/Header/Header.styles.js.map +1 -1
- package/dist/esm/components/Card/Media/Media.js +6 -1
- package/dist/esm/components/Card/Media/Media.js.map +1 -1
- package/dist/esm/components/Card/Media/Media.styles.js +3 -4
- package/dist/esm/components/Card/Media/Media.styles.js.map +1 -1
- package/dist/esm/components/Controls/Controls.js +11 -5
- package/dist/esm/components/Controls/Controls.js.map +1 -1
- package/dist/esm/components/Dialog/Dialog.js +6 -3
- package/dist/esm/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/components/DropDownMenu/DropDownMenu.styles.js +4 -4
- package/dist/esm/components/DropDownMenu/DropDownMenu.styles.js.map +1 -1
- package/dist/esm/components/Forms/Suggestions/Suggestions.styles.js +4 -4
- package/dist/esm/components/Forms/Suggestions/Suggestions.styles.js.map +1 -1
- package/dist/esm/components/Header/Brand/Brand.styles.js +14 -14
- package/dist/esm/components/Header/Brand/Brand.styles.js.map +1 -1
- package/dist/esm/components/Table/Table.js +1 -1
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/esm/components/Table/TableBody/TableBody.js +1 -1
- package/dist/esm/components/Table/TableBody/TableBody.js.map +1 -1
- package/dist/esm/components/Table/TableCell/TableCell.js +1 -1
- package/dist/esm/components/Table/TableCell/TableCell.js.map +1 -1
- package/dist/esm/components/Table/TableContainer/TableContainer.js +1 -1
- package/dist/esm/components/Table/TableContainer/TableContainer.js.map +1 -1
- package/dist/esm/components/Table/TableHead/TableHead.js +1 -1
- package/dist/esm/components/Table/TableHead/TableHead.js.map +1 -1
- package/dist/esm/components/Table/TableHeader/TableHeader.js +2 -2
- package/dist/esm/components/Table/TableHeader/TableHeader.js.map +1 -1
- package/dist/esm/components/Table/TableRow/TableRow.js +1 -1
- package/dist/esm/components/Table/TableRow/TableRow.js.map +1 -1
- package/dist/esm/components/Table/hooks/useFilters.js.map +1 -1
- package/dist/esm/components/Table/hooks/useGlobalFilter.js.map +1 -1
- package/dist/esm/components/Table/hooks/useRowSelection.js +5 -4
- package/dist/esm/components/Table/hooks/useRowSelection.js.map +1 -1
- package/dist/esm/components/Table/hooks/useTable.js +2 -2
- package/dist/esm/components/Table/hooks/useTable.js.map +1 -1
- package/dist/esm/components/Table/renderers/renderers.js.map +1 -1
- package/dist/esm/components/Tag/Tag.js +1 -0
- package/dist/esm/components/Tag/Tag.js.map +1 -1
- package/dist/esm/components/Tag/Tag.styles.js +5 -4
- package/dist/esm/components/Tag/Tag.styles.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.styles.js +2 -2
- package/dist/esm/components/Tooltip/Tooltip.styles.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/Actions/Action.js +1 -1
- package/dist/esm/components/VerticalNavigation/Actions/Action.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/Actions/Actions.js +1 -1
- package/dist/esm/components/VerticalNavigation/Actions/Actions.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/Header/Header.js +32 -13
- package/dist/esm/components/VerticalNavigation/Header/Header.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/Header/Header.styles.js +17 -4
- package/dist/esm/components/VerticalNavigation/Header/Header.styles.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js +27 -4
- package/dist/esm/components/VerticalNavigation/Navigation/Navigation.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.js +48 -0
- package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +36 -0
- package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/NavigationSlider/navigationSliderClasses.js +8 -0
- package/dist/esm/components/VerticalNavigation/NavigationSlider/navigationSliderClasses.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/NavigationSlider/utils/NavigationSlider.utils.js +41 -0
- package/dist/esm/components/VerticalNavigation/NavigationSlider/utils/NavigationSlider.utils.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/TreeView/TreeView.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js +1 -1
- package/dist/esm/components/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.js +33 -10
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.styles.js +7 -2
- package/dist/esm/components/VerticalNavigation/VerticalNavigation.styles.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/VerticalNavigationContext.js +10 -0
- package/dist/esm/components/VerticalNavigation/VerticalNavigationContext.js.map +1 -0
- package/dist/esm/components/VerticalNavigation/verticalNavigationClasses.js +1 -1
- package/dist/esm/components/VerticalNavigation/verticalNavigationClasses.js.map +1 -1
- package/dist/esm/hooks/useCreateEmotion.js +20 -0
- package/dist/esm/hooks/useCreateEmotion.js.map +1 -0
- package/dist/esm/index.js +28 -23
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/providers/Provider.js +10 -3
- package/dist/esm/providers/Provider.js.map +1 -1
- package/dist/esm/providers/ThemeProvider.js +4 -2
- package/dist/esm/providers/ThemeProvider.js.map +1 -1
- package/dist/types/index.d.ts +154 -46
- package/package.json +6 -5
- package/dist/cjs/utils/emotion.cjs +0 -39
- package/dist/cjs/utils/emotion.cjs.map +0 -1
- package/dist/esm/utils/emotion.js +0 -36
- package/dist/esm/utils/emotion.js.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { CellProps } from 'react-table';
|
|
|
11
11
|
import { ChangeEvent } from 'react';
|
|
12
12
|
import { CheckboxProps } from '@mui/material';
|
|
13
13
|
import { ChipProps } from '@mui/material/Chip';
|
|
14
|
-
import { Column } from 'react-table';
|
|
15
14
|
import { ColumnInstance } from 'react-table';
|
|
16
15
|
import { ColumnInterface } from 'react-table';
|
|
17
16
|
import { ContainerProps } from '@mui/material/Container';
|
|
@@ -37,7 +36,6 @@ import { HvActionGeneric as HvActionGeneric_2 } from 'components';
|
|
|
37
36
|
import { HvBannerActionPosition as HvBannerActionPosition_2 } from 'components';
|
|
38
37
|
import { HvBannerVariant as HvBannerVariant_2 } from 'components';
|
|
39
38
|
import { HvBaseDropdownProps as HvBaseDropdownProps_2 } from 'components';
|
|
40
|
-
import { HvBaseProps as HvBaseProps_3 } from 'types/generic';
|
|
41
39
|
import { HvBaseSwitchProps as HvBaseSwitchProps_2 } from 'components';
|
|
42
40
|
import { HvBaseTheme } from '@hitachivantara/uikit-styles';
|
|
43
41
|
import { HvBreakpoints as HvBreakpoints_2 } from 'types/tokens';
|
|
@@ -76,6 +74,7 @@ import { InputProps } from '@mui/material';
|
|
|
76
74
|
import type { JSX as JSX_2 } from '@emotion/react/jsx-runtime';
|
|
77
75
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
78
76
|
import { MouseEventHandler } from 'react';
|
|
77
|
+
import { NavigationData as NavigationData_2 } from 'components';
|
|
79
78
|
import { PopperProps } from '@mui/material';
|
|
80
79
|
import { PropGetter } from 'react-table';
|
|
81
80
|
import { RadioProps } from '@mui/material';
|
|
@@ -98,6 +97,7 @@ import { TableCommonProps } from 'react-table';
|
|
|
98
97
|
import { TableExpandedToggleProps } from 'react-table';
|
|
99
98
|
import { TableFooterProps } from 'react-table';
|
|
100
99
|
import { TableHeaderProps } from 'react-table';
|
|
100
|
+
import type { TableHTMLAttributes } from 'react';
|
|
101
101
|
import { TableInstance } from 'react-table';
|
|
102
102
|
import { TableOptions } from 'react-table';
|
|
103
103
|
import { TablePropGetter } from 'react-table';
|
|
@@ -289,10 +289,7 @@ export declare const defaultGetToggleAllRowsSelectedProps: (props: any, { instan
|
|
|
289
289
|
instance: any;
|
|
290
290
|
}) => any[];
|
|
291
291
|
|
|
292
|
-
export declare const defaultGetToggleRowSelectedProps: (props: any,
|
|
293
|
-
instance: any;
|
|
294
|
-
row: any;
|
|
295
|
-
}) => any[];
|
|
292
|
+
export declare const defaultGetToggleRowSelectedProps: (props: any, meta: any) => any[];
|
|
296
293
|
|
|
297
294
|
declare type Descriptor = {
|
|
298
295
|
id?: string;
|
|
@@ -1790,10 +1787,10 @@ export declare type HvCardProps = HvBaseProps & {
|
|
|
1790
1787
|
|
|
1791
1788
|
export declare type HvCategoricalColorKeys = "cviz1" | "cviz2" | "cviz3" | "cviz4" | "cviz5" | "cviz6" | "cviz7" | "cviz8" | "cviz9" | "cviz10" | "cviz11" | "cviz12" | "cviz13" | "cviz14" | "cviz15" | "cviz16" | "cviz17" | "cviz18" | "cviz19" | "cviz20";
|
|
1792
1789
|
|
|
1793
|
-
export declare interface HvCellInstance<D extends object = Record<string, unknown>, V = any> extends Cell<D, V>, UseGroupByCellProps<D> {
|
|
1790
|
+
export declare interface HvCellInstance<D extends object = Record<string, unknown>, V = any> extends Omit<Cell<D, V>, "column" | "row">, UseGroupByCellProps<D> {
|
|
1794
1791
|
column: HvColumnInstance<D>;
|
|
1795
1792
|
row: HvRowInstance<D>;
|
|
1796
|
-
getCellProps: (propGetter?: CellPropGetter<D>) => HvUseTableCellProps;
|
|
1793
|
+
getCellProps: (propGetter?: CellPropGetter<D> & HvExtraProps) => HvUseTableCellProps;
|
|
1797
1794
|
}
|
|
1798
1795
|
|
|
1799
1796
|
export declare type HvCellProps<D extends object, V = any> = CellProps<D, V> & {
|
|
@@ -1994,8 +1991,6 @@ export declare type HvCheckBoxProps = Omit<HvBaseCheckBoxProps, "classes"> & {
|
|
|
1994
1991
|
|
|
1995
1992
|
export declare type HvClickOutsideEvent = MouseEvent | KeyboardEvent | TouchEvent;
|
|
1996
1993
|
|
|
1997
|
-
export declare type HvColumn<D extends object = Record<string, unknown>> = Column<D>;
|
|
1998
|
-
|
|
1999
1994
|
declare type HvColumnGroup<D extends object = Record<string, unknown>> = HvTableColumnOptions<D> & HvColumnGroupInterface<D> & ({
|
|
2000
1995
|
Header: string;
|
|
2001
1996
|
} | ({
|
|
@@ -2010,7 +2005,7 @@ declare interface HvColumnGroupInterface<D extends object> {
|
|
|
2010
2005
|
columns: Array<HvTableColumnConfig<D>>;
|
|
2011
2006
|
}
|
|
2012
2007
|
|
|
2013
|
-
export declare interface HvColumnInstance<D extends object = Record<string, unknown>> extends ColumnInstance<D>, Omit<HvTableColumnOptions<D>, "id">, UseFiltersColumnProps<D>, UseGroupByColumnProps<D>, UseResizeColumnsColumnProps<D>, UseSortByColumnProps<D> {
|
|
2008
|
+
export declare interface HvColumnInstance<D extends object = Record<string, unknown>> extends Omit<ColumnInstance<D>, "Cell" | "columns" | "parent" | "placeholderOf">, Omit<HvTableColumnOptions<D>, "id">, UseFiltersColumnProps<D>, UseGroupByColumnProps<D>, UseResizeColumnsColumnProps<D>, UseSortByColumnProps<D> {
|
|
2014
2009
|
Cell?: Renderer<HvCellProps<D>>;
|
|
2015
2010
|
columns: Array<HvColumnInstance<D>>;
|
|
2016
2011
|
parent: HvColumnInstance<D>;
|
|
@@ -2091,7 +2086,10 @@ export declare type HvControlsProps = HvBaseProps & {
|
|
|
2091
2086
|
* An instance of useHvTable or useTable used to manage the data
|
|
2092
2087
|
* if this is not provided data sorting and search must be handled externally
|
|
2093
2088
|
*/
|
|
2094
|
-
callbacks?:
|
|
2089
|
+
callbacks?: {
|
|
2090
|
+
setSortBy?: HvTableInstance_2["setSortBy"];
|
|
2091
|
+
setGlobalFilter?: HvTableInstance_2["setGlobalFilter"];
|
|
2092
|
+
};
|
|
2095
2093
|
/**
|
|
2096
2094
|
* Views configuration required for the view buttons
|
|
2097
2095
|
*/
|
|
@@ -3324,7 +3322,7 @@ export declare type HvHeaderProps = HvBaseProps & {
|
|
|
3324
3322
|
classes?: HvHeaderClasses;
|
|
3325
3323
|
};
|
|
3326
3324
|
|
|
3327
|
-
export declare interface HvHooks<D extends object = Record<string, unknown>> extends Hooks<D>, UseExpandedHooks<D>, UseGroupByHooks<D>, UseSortByHooks<D>, UseHvRowSelectionHooks<D>, UseHvTableStickyHooks<D>, UseHvPaginationHooks<D>, UseHvBulkActionsHooks<D> {
|
|
3325
|
+
export declare interface HvHooks<D extends object = Record<string, unknown>> extends Omit<Hooks<D>, "getToggleRowSelectedProps" | "getToggleAllRowsSelectedProps" | "getToggleAllPageRowsSelectedProps">, UseExpandedHooks<D>, UseGroupByHooks<D>, UseSortByHooks<D>, UseHvRowSelectionHooks<D>, UseHvTableStickyHooks<D>, UseHvPaginationHooks<D>, UseHvBulkActionsHooks<D> {
|
|
3328
3326
|
}
|
|
3329
3327
|
|
|
3330
3328
|
/**
|
|
@@ -4151,7 +4149,7 @@ export declare type HvProgressBarProps = HvBaseProps & {
|
|
|
4151
4149
|
|
|
4152
4150
|
export declare type HvProgressBarStatus = "inProgress" | "completed" | "error";
|
|
4153
4151
|
|
|
4154
|
-
export declare function hvProgressColumn<D extends Record<string,
|
|
4152
|
+
export declare function hvProgressColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig_2<D>>(col: C, getPartial?: (row: HvRowInstance_2<D>) => number, getTotal?: (row: HvRowInstance_2<D>) => number, color?: "primary" | "secondary"): HvTableColumnConfig_2<D>;
|
|
4155
4153
|
|
|
4156
4154
|
export declare const HvProgressColumnCell: ({ partial, total, color, }: HvProgressColumnCellProp) => JSX.Element | null;
|
|
4157
4155
|
|
|
@@ -4167,7 +4165,7 @@ declare interface HvProgressColumnCellProp {
|
|
|
4167
4165
|
/**
|
|
4168
4166
|
* Enables theming capabilities and makes cross-component theme properties available down the tree.
|
|
4169
4167
|
*/
|
|
4170
|
-
export declare const HvProvider: ({ children, rootElementId, enableCssBaseline, themes, theme, colorMode, }: HvProviderProps) => JSX_2.Element;
|
|
4168
|
+
export declare const HvProvider: ({ children, rootElementId, enableCssBaseline, themes, theme, colorMode, classNameKey, }: HvProviderProps) => JSX_2.Element;
|
|
4171
4169
|
|
|
4172
4170
|
export declare type HvProviderProps = {
|
|
4173
4171
|
/**
|
|
@@ -4205,6 +4203,13 @@ export declare type HvProviderProps = {
|
|
|
4205
4203
|
* For the default themes `ds3` and `ds5`, the `dawn` color mode is the one used.
|
|
4206
4204
|
*/
|
|
4207
4205
|
colorMode?: string;
|
|
4206
|
+
/**
|
|
4207
|
+
* The string used to prefix the class names and uniquely identify them. The key can only contain lower case alphabetical characters.
|
|
4208
|
+
* This is useful to avoid class name collisions.
|
|
4209
|
+
*
|
|
4210
|
+
* If no value is provided, the default is `hv-uikit-css`.
|
|
4211
|
+
*/
|
|
4212
|
+
classNameKey?: string;
|
|
4208
4213
|
};
|
|
4209
4214
|
|
|
4210
4215
|
/**
|
|
@@ -4470,7 +4475,7 @@ export declare type HvRightListControls = HvListValue_2 & {
|
|
|
4470
4475
|
desc: boolean;
|
|
4471
4476
|
};
|
|
4472
4477
|
|
|
4473
|
-
export declare interface HvRowInstance<D extends object = Record<string, unknown>> extends Row<D>, UseGroupByRowProps<D>, UseHvRowSelectionRowInstance, UseHvRowExpandRowInstance<D> {
|
|
4478
|
+
export declare interface HvRowInstance<D extends object = Record<string, unknown>> extends Omit<Row<D>, "getToggleRowExpandedProps" | "getToggleRowSelectedProps" | "cells" | "allCells" | "subRows">, Omit<UseGroupByRowProps<D>, "subRows">, Omit<UseHvRowSelectionRowInstance, "subRows">, Omit<UseHvRowExpandRowInstance<D>, "subRows"> {
|
|
4474
4479
|
cells: Array<HvCellInstance<D>>;
|
|
4475
4480
|
allCells: Array<HvCellInstance<D>>;
|
|
4476
4481
|
getRowProps: (propGetter?: RowPropGetter<D>) => HvUseTableRowProps;
|
|
@@ -4937,7 +4942,7 @@ export declare type HvTabClasses = {
|
|
|
4937
4942
|
* For better data handling and **advanced features** we recommend the use of the utility hooks collection .
|
|
4938
4943
|
* See the <a href="?id=lab-table-hooks--main&viewMode=docs" target="_self">Table Hooks documentation</a> for more details.
|
|
4939
4944
|
*/
|
|
4940
|
-
export declare const HvTable: ForwardRefExoticComponent<
|
|
4945
|
+
export declare const HvTable: ForwardRefExoticComponent<TableHTMLAttributes<HTMLTableElement> & {
|
|
4941
4946
|
/**
|
|
4942
4947
|
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
4943
4948
|
* Defaults to `table`.
|
|
@@ -4961,7 +4966,9 @@ export declare const HvTable: ForwardRefExoticComponent<HvBaseProps<HTMLDivEleme
|
|
|
4961
4966
|
* HvTableBody acts as a `tbody` element.
|
|
4962
4967
|
* `HvTableCell` and `HvTableRow` elements in it inherit body-specific styles
|
|
4963
4968
|
*/
|
|
4964
|
-
export declare const HvTableBody: React_2.ForwardRefExoticComponent<
|
|
4969
|
+
export declare const HvTableBody: React_2.ForwardRefExoticComponent<HvBaseProps<HTMLTableSectionElement, {
|
|
4970
|
+
children: any;
|
|
4971
|
+
}> & {
|
|
4965
4972
|
/**
|
|
4966
4973
|
* Content to be rendered
|
|
4967
4974
|
*/
|
|
@@ -4982,7 +4989,9 @@ export declare type HvTableBodyClasses = {
|
|
|
4982
4989
|
root?: string;
|
|
4983
4990
|
};
|
|
4984
4991
|
|
|
4985
|
-
export declare type HvTableBodyProps =
|
|
4992
|
+
export declare type HvTableBodyProps = HvBaseProps<HTMLTableSectionElement, {
|
|
4993
|
+
children: any;
|
|
4994
|
+
}> & {
|
|
4986
4995
|
/**
|
|
4987
4996
|
* Content to be rendered
|
|
4988
4997
|
*/
|
|
@@ -5010,7 +5019,7 @@ export declare interface HvTAbleBulkActionsProps extends TableCommonProps {
|
|
|
5010
5019
|
/**
|
|
5011
5020
|
* `HvTableCell` acts as a `td` element and inherits styles from its context
|
|
5012
5021
|
*/
|
|
5013
|
-
export declare const HvTableCell: ForwardRefExoticComponent<Omit<TdHTMLAttributes<
|
|
5022
|
+
export declare const HvTableCell: ForwardRefExoticComponent<Omit<TdHTMLAttributes<HTMLTableCellElement>, "align"> & Omit<HvBaseProps<HTMLDivElement, {}>, "children"> & {
|
|
5014
5023
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to td. */
|
|
5015
5024
|
component?: ElementType<any> | undefined;
|
|
5016
5025
|
/** Content to be rendered */
|
|
@@ -5098,7 +5107,7 @@ export declare type HvTableCellClasses = {
|
|
|
5098
5107
|
resizing?: string;
|
|
5099
5108
|
};
|
|
5100
5109
|
|
|
5101
|
-
export declare type HvTableCellProps = Omit<TdHTMLAttributes<
|
|
5110
|
+
export declare type HvTableCellProps = Omit<TdHTMLAttributes<HTMLTableCellElement>, "align"> & Omit<HvBaseProps, "children"> & {
|
|
5102
5111
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to td. */
|
|
5103
5112
|
component?: React.ElementType;
|
|
5104
5113
|
/** Content to be rendered */
|
|
@@ -5154,7 +5163,9 @@ export declare interface HvTableColumnOptions<D extends object = Record<string,
|
|
|
5154
5163
|
/**
|
|
5155
5164
|
* HvTableContainer is a container for the HvTable
|
|
5156
5165
|
*/
|
|
5157
|
-
export declare const HvTableContainer: ForwardRefExoticComponent<
|
|
5166
|
+
export declare const HvTableContainer: ForwardRefExoticComponent<HvBaseProps<HTMLDivElement, {
|
|
5167
|
+
children: any;
|
|
5168
|
+
}> & {
|
|
5158
5169
|
/**
|
|
5159
5170
|
* Content to be rendered
|
|
5160
5171
|
*/
|
|
@@ -5173,7 +5184,9 @@ export declare type HvTableContainerClasses = {
|
|
|
5173
5184
|
root?: string;
|
|
5174
5185
|
};
|
|
5175
5186
|
|
|
5176
|
-
export declare type HvTableContainerProps =
|
|
5187
|
+
export declare type HvTableContainerProps = HvBaseProps<HTMLDivElement, {
|
|
5188
|
+
children: any;
|
|
5189
|
+
}> & {
|
|
5177
5190
|
/**
|
|
5178
5191
|
* Content to be rendered
|
|
5179
5192
|
*/
|
|
@@ -5193,7 +5206,9 @@ export declare type HvTableDefinitionConfig<D extends object = Record<string, un
|
|
|
5193
5206
|
* HvTableHead acts as a `thead` element.
|
|
5194
5207
|
* `HvTableCell` and `HvTableRow` elements in it inherit header-specific styles
|
|
5195
5208
|
*/
|
|
5196
|
-
export declare const HvTableHead: ForwardRefExoticComponent<
|
|
5209
|
+
export declare const HvTableHead: ForwardRefExoticComponent<HvBaseProps<HTMLTableSectionElement, {
|
|
5210
|
+
children: any;
|
|
5211
|
+
}> & {
|
|
5197
5212
|
/**
|
|
5198
5213
|
* Content to be rendered
|
|
5199
5214
|
*/
|
|
@@ -5221,7 +5236,7 @@ export declare type HvTableHeadClasses = {
|
|
|
5221
5236
|
/**
|
|
5222
5237
|
* `HvTableHeader` acts as a `th` element and inherits styles from its context
|
|
5223
5238
|
*/
|
|
5224
|
-
export declare const HvTableHeader: ForwardRefExoticComponent<ThHTMLAttributes<
|
|
5239
|
+
export declare const HvTableHeader: ForwardRefExoticComponent<Omit<ThHTMLAttributes<HTMLTableCellElement>, "align"> & Omit<HvBaseProps<HTMLDivElement, {}>, "children"> & {
|
|
5225
5240
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */
|
|
5226
5241
|
component?: ElementType<any> | undefined;
|
|
5227
5242
|
/** Content to be rendered */
|
|
@@ -5331,7 +5346,7 @@ export declare type HvTableHeaderClasses = {
|
|
|
5331
5346
|
resizer?: string;
|
|
5332
5347
|
};
|
|
5333
5348
|
|
|
5334
|
-
export declare type HvTableHeaderProps = ThHTMLAttributes<
|
|
5349
|
+
export declare type HvTableHeaderProps = Omit<ThHTMLAttributes<HTMLTableCellElement>, "align"> & Omit<HvBaseProps, "children"> & {
|
|
5335
5350
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */
|
|
5336
5351
|
component?: React.ElementType;
|
|
5337
5352
|
/** Content to be rendered */
|
|
@@ -5374,7 +5389,9 @@ export declare type HvTableHeaderProps = ThHTMLAttributes<HTMLElement> & Omit<Hv
|
|
|
5374
5389
|
|
|
5375
5390
|
export declare type HvTableHeadPropGetter<D extends object> = PropGetter<D, UseHvTableStickyTableHeadProps>;
|
|
5376
5391
|
|
|
5377
|
-
export declare type HvTableHeadProps =
|
|
5392
|
+
export declare type HvTableHeadProps = HvBaseProps<HTMLTableSectionElement, {
|
|
5393
|
+
children: any;
|
|
5394
|
+
}> & {
|
|
5378
5395
|
/**
|
|
5379
5396
|
* Content to be rendered
|
|
5380
5397
|
*/
|
|
@@ -5392,7 +5409,7 @@ export declare type HvTableHeadProps = Omit<HvBaseProps, "children"> & {
|
|
|
5392
5409
|
classes?: HvTableHeadClasses;
|
|
5393
5410
|
};
|
|
5394
5411
|
|
|
5395
|
-
export declare interface HvTableInstance<D extends object = Record<string, unknown>> extends TableInstance<D>, Omit<HvTableOptions<D>, "columns" | "pageCount" | "initialState" | "data">, UseColumnOrderInstanceProps<D>, UseExpandedInstanceProps<D>, UseFiltersInstanceProps<D>, UseGlobalFiltersInstanceProps<D>, UseGroupByInstanceProps<D>, UsePaginationInstanceProps<D>, UseSortByInstanceProps<D>, UseHvRowSelectionTableInstance<D>, UseHvTableStickyTableInstance<D>, UseHvHeaderGroupsInstance, UseHvPaginationTableInstance<D>, UseHvBulkActionsTableInstanceProps<D> {
|
|
5412
|
+
export declare interface HvTableInstance<D extends object = Record<string, unknown>> extends Omit<TableInstance<D>, "getToggleAllRowsSelectedProps" | "getToggleAllPageRowsSelectedProps">, Omit<HvTableOptions<D>, "columns" | "pageCount" | "initialState" | "data">, UseColumnOrderInstanceProps<D>, Omit<UseExpandedInstanceProps<D>, "rows">, Omit<UseFiltersInstanceProps<D>, "rows" | "rowsById" | "flatRows">, Omit<UseGlobalFiltersInstanceProps<D>, "rows" | "rowsById" | "flatRows">, Omit<UseGroupByInstanceProps<D>, "rows" | "rowsById" | "flatRows">, Omit<UsePaginationInstanceProps<D>, "page">, Omit<UseSortByInstanceProps<D>, "rows">, Omit<UseHvRowSelectionTableInstance<D>, "selectedFlatRows">, UseHvTableStickyTableInstance<D>, UseHvHeaderGroupsInstance, UseHvPaginationTableInstance<D>, UseHvBulkActionsTableInstanceProps<D> {
|
|
5396
5413
|
initialState: Partial<HvTableState<D>>;
|
|
5397
5414
|
state: HvTableState<D>;
|
|
5398
5415
|
columns: Array<HvColumnInstance<D>>;
|
|
@@ -5405,7 +5422,7 @@ export declare interface HvTableInstance<D extends object = Record<string, unkno
|
|
|
5405
5422
|
rowsById: Record<string, HvRowInstance<D>>;
|
|
5406
5423
|
flatRows: Array<HvRowInstance<D>>;
|
|
5407
5424
|
getHooks: () => HvHooks<D>;
|
|
5408
|
-
getTableProps: (propGetter?: TablePropGetter<D>) => HvUseTableProps;
|
|
5425
|
+
getTableProps: (propGetter?: TablePropGetter<D> & HvExtraProps) => HvUseTableProps;
|
|
5409
5426
|
selectedFlatRows: Array<HvRowInstance<D>>;
|
|
5410
5427
|
initialRows: Array<HvRowInstance<D>>;
|
|
5411
5428
|
initialRowsById: Record<string, HvRowInstance<D>>;
|
|
@@ -5432,7 +5449,7 @@ export declare interface HvTablePaginationProps extends TableCommonProps {
|
|
|
5432
5449
|
|
|
5433
5450
|
export { HvTablePluginHook }
|
|
5434
5451
|
|
|
5435
|
-
export declare type HvTableProps =
|
|
5452
|
+
export declare type HvTableProps = TableHTMLAttributes<HTMLTableElement> & {
|
|
5436
5453
|
/**
|
|
5437
5454
|
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
5438
5455
|
* Defaults to `table`.
|
|
@@ -5455,7 +5472,9 @@ export declare type HvTableProps = HvBaseProps & {
|
|
|
5455
5472
|
/**
|
|
5456
5473
|
* `HvTableRow` acts as a `tr` element and inherits styles from its context
|
|
5457
5474
|
*/
|
|
5458
|
-
export declare const HvTableRow: ForwardRefExoticComponent<
|
|
5475
|
+
export declare const HvTableRow: ForwardRefExoticComponent<HvBaseProps<HTMLTableRowElement, {
|
|
5476
|
+
children: any;
|
|
5477
|
+
}> & {
|
|
5459
5478
|
/** Content to be rendered */
|
|
5460
5479
|
children: React.ReactNode;
|
|
5461
5480
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to tbody. */
|
|
@@ -5495,7 +5514,9 @@ export declare type HvTableRowClasses = {
|
|
|
5495
5514
|
variantListHead?: string;
|
|
5496
5515
|
};
|
|
5497
5516
|
|
|
5498
|
-
export declare type HvTableRowProps =
|
|
5517
|
+
export declare type HvTableRowProps = HvBaseProps<HTMLTableRowElement, {
|
|
5518
|
+
children: any;
|
|
5519
|
+
}> & {
|
|
5499
5520
|
/** Content to be rendered */
|
|
5500
5521
|
children: React.ReactNode;
|
|
5501
5522
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to tbody. */
|
|
@@ -5589,7 +5610,7 @@ export declare type HvTagClasses = {
|
|
|
5589
5610
|
disabledDeleteIcon?: string;
|
|
5590
5611
|
};
|
|
5591
5612
|
|
|
5592
|
-
export declare function hvTagColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig_2<D>>(col: C, valueDataKey: keyof
|
|
5613
|
+
export declare function hvTagColumn<D extends Record<string, unknown>, C extends HvTableColumnConfig_2<D>, A extends Record<string, unknown>>(col: C, valueDataKey: keyof A, colorDataKey: keyof A, textColorDataKey: keyof A, fromRowData?: boolean, tagProps?: HvTagProps_2): HvTableColumnConfig_2<D>;
|
|
5593
5614
|
|
|
5594
5615
|
export declare type HvTagProps = Omit<ChipProps, "color" | "classes"> & HvBaseProps<HTMLDivElement, {
|
|
5595
5616
|
children: any;
|
|
@@ -5899,13 +5920,14 @@ export declare interface HvThemePalette {
|
|
|
5899
5920
|
support: HvSupportColors;
|
|
5900
5921
|
}
|
|
5901
5922
|
|
|
5902
|
-
export declare const HvThemeProvider: ({ children, themes: themesList, theme, colorMode, rootElementId, }: HvThemeProviderProps) => JSX_2.Element;
|
|
5923
|
+
export declare const HvThemeProvider: ({ children, themes: themesList, theme, colorMode, rootElementId, classNameKey, }: HvThemeProviderProps) => JSX_2.Element;
|
|
5903
5924
|
|
|
5904
5925
|
declare interface HvThemeProviderProps {
|
|
5905
5926
|
children: React.ReactNode;
|
|
5906
5927
|
themes: (HvTheme | HvThemeStructure)[];
|
|
5907
5928
|
theme: string;
|
|
5908
5929
|
colorMode: string;
|
|
5930
|
+
classNameKey: string;
|
|
5909
5931
|
rootElementId?: string;
|
|
5910
5932
|
}
|
|
5911
5933
|
|
|
@@ -6154,7 +6176,7 @@ export declare type HvValidationMessages = {
|
|
|
6154
6176
|
*
|
|
6155
6177
|
* Both modes are available via the `mode` property and each app should choose the most appropriate.
|
|
6156
6178
|
*/
|
|
6157
|
-
export declare const HvVerticalNavigation: ({ id, className, classes, children, open, collapsedMode, ...others }: HvVerticalNavigationProps) => JSX_2.Element;
|
|
6179
|
+
export declare const HvVerticalNavigation: ({ id, className, classes, children, open, collapsedMode, slider, ...others }: HvVerticalNavigationProps) => JSX_2.Element;
|
|
6158
6180
|
|
|
6159
6181
|
export declare const HvVerticalNavigationAction: ({ className, classes, id, label, icon, onClick, ...others }: HvVerticalNavigationActionProps) => JSX_2.Element;
|
|
6160
6182
|
|
|
@@ -6222,9 +6244,11 @@ export declare type HvVerticalNavigationClasses = {
|
|
|
6222
6244
|
root?: string;
|
|
6223
6245
|
/** Style applied to the root of the component when its collapsed. */
|
|
6224
6246
|
collapsed?: string;
|
|
6247
|
+
/** Style applied to the root of the component when its in slider mode. */
|
|
6248
|
+
slider?: any;
|
|
6225
6249
|
};
|
|
6226
6250
|
|
|
6227
|
-
export declare const HvVerticalNavigationHeader: ({ title, openIcon, closeIcon,
|
|
6251
|
+
export declare const HvVerticalNavigationHeader: ({ title, openIcon, closeIcon, collapseButtonProps, backButtonProps, className, classes, onCollapseButtonClick, ...others }: HvVerticalNavigationHeaderProps) => JSX_2.Element;
|
|
6228
6252
|
|
|
6229
6253
|
export declare type HvVerticalNavigationHeaderClasses = {
|
|
6230
6254
|
root?: string;
|
|
@@ -6232,14 +6256,42 @@ export declare type HvVerticalNavigationHeaderClasses = {
|
|
|
6232
6256
|
};
|
|
6233
6257
|
|
|
6234
6258
|
export declare type HvVerticalNavigationHeaderProps = {
|
|
6235
|
-
|
|
6236
|
-
|
|
6259
|
+
/**
|
|
6260
|
+
* Id to be applied to the root node.
|
|
6261
|
+
*/
|
|
6262
|
+
id?: string;
|
|
6263
|
+
/**
|
|
6264
|
+
* The title text to show on Header.
|
|
6265
|
+
*/
|
|
6266
|
+
title?: string;
|
|
6267
|
+
/**
|
|
6268
|
+
* Icon to show when Vertical Navigation is collapsed.
|
|
6269
|
+
*/
|
|
6237
6270
|
openIcon?: React.ReactNode;
|
|
6271
|
+
/**
|
|
6272
|
+
* Icon to show when Vertical Navigation is expanded.
|
|
6273
|
+
*/
|
|
6238
6274
|
closeIcon?: React.ReactNode;
|
|
6239
|
-
|
|
6275
|
+
/**
|
|
6276
|
+
* Props for the collapse button.
|
|
6277
|
+
*/
|
|
6278
|
+
collapseButtonProps?: HvButtonProps_2;
|
|
6279
|
+
/**
|
|
6280
|
+
* Props for the back button.
|
|
6281
|
+
*/
|
|
6282
|
+
backButtonProps?: HvButtonProps_2;
|
|
6283
|
+
/**
|
|
6284
|
+
* Class names to be applied.
|
|
6285
|
+
*/
|
|
6240
6286
|
className?: string;
|
|
6287
|
+
/**
|
|
6288
|
+
* A Jss Object used to override or extend the styles applied to the component.
|
|
6289
|
+
*/
|
|
6241
6290
|
classes?: HvVerticalNavigationHeaderClasses;
|
|
6242
|
-
|
|
6291
|
+
/**
|
|
6292
|
+
* Handler for the collapse button.
|
|
6293
|
+
*/
|
|
6294
|
+
onCollapseButtonClick?: MouseEventHandler<HTMLElement>;
|
|
6243
6295
|
};
|
|
6244
6296
|
|
|
6245
6297
|
export declare type HvVerticalNavigationMode = "icon" | "simple";
|
|
@@ -6264,15 +6316,60 @@ export declare type HvVerticalNavigationProps = {
|
|
|
6264
6316
|
*/
|
|
6265
6317
|
open?: boolean;
|
|
6266
6318
|
/**
|
|
6267
|
-
*
|
|
6319
|
+
* Collpased Mode for the Vertical Navigation, the default value is "simple".
|
|
6268
6320
|
*/
|
|
6269
6321
|
collapsedMode?: HvVerticalNavigationMode;
|
|
6322
|
+
/**
|
|
6323
|
+
* Boolean to determine if treeview is in slider mode (for mobile navigation), the default value is false.
|
|
6324
|
+
*/
|
|
6325
|
+
slider?: boolean;
|
|
6270
6326
|
/**
|
|
6271
6327
|
* The content inside the actions container.
|
|
6272
6328
|
*/
|
|
6273
6329
|
children?: React.ReactNode;
|
|
6274
6330
|
};
|
|
6275
6331
|
|
|
6332
|
+
export declare const HvVerticalNavigationSlider: ({ id, classes, data, selected, onNavigateToTarget, onNavigateToChild, }: HvVerticalNavigationSliderProps) => JSX_2.Element;
|
|
6333
|
+
|
|
6334
|
+
export declare type HvVerticalNavigationSliderClasses = {
|
|
6335
|
+
root?: string;
|
|
6336
|
+
listItemSelected?: string;
|
|
6337
|
+
};
|
|
6338
|
+
|
|
6339
|
+
export declare type HvVerticalNavigationSliderProps = {
|
|
6340
|
+
/**
|
|
6341
|
+
* Id to be applied to the root node of the panel.
|
|
6342
|
+
*/
|
|
6343
|
+
id?: string;
|
|
6344
|
+
/**
|
|
6345
|
+
* A Jss Object used to override or extend the styles applied.
|
|
6346
|
+
*/
|
|
6347
|
+
classes?: HvVerticalNavigationSliderClasses;
|
|
6348
|
+
/**
|
|
6349
|
+
* An array containing the data for each menu item.
|
|
6350
|
+
*
|
|
6351
|
+
* id - the id to be applied to the root element.
|
|
6352
|
+
* label - the label to be rendered on the menu item.
|
|
6353
|
+
* icon - the icon react element
|
|
6354
|
+
* data - sub-menu items
|
|
6355
|
+
* href - the url used for navigation.
|
|
6356
|
+
* target - the behavior when opening an url.
|
|
6357
|
+
*/
|
|
6358
|
+
data?: NavigationData_2[];
|
|
6359
|
+
/**
|
|
6360
|
+
* The selected item id.
|
|
6361
|
+
*/
|
|
6362
|
+
selected?: string;
|
|
6363
|
+
/**
|
|
6364
|
+
* Triggered when the item is clicked.
|
|
6365
|
+
*/
|
|
6366
|
+
onNavigateToTarget?: (event: React.MouseEvent<HTMLLIElement>, item: NavigationData_2) => void;
|
|
6367
|
+
/**
|
|
6368
|
+
* Triggered when the navigate to child button is clicked.
|
|
6369
|
+
*/
|
|
6370
|
+
onNavigateToChild?: (event: React.MouseEvent<HTMLButtonElement>, item: NavigationData_2) => void;
|
|
6371
|
+
};
|
|
6372
|
+
|
|
6276
6373
|
export declare const HvVerticalNavigationTree: ({ id, className, classes, data, mode, collapsible, expanded: expandedProp, defaultExpanded, onToggle, selected: selectedProp, defaultSelected, onChange, ...others }: HvVerticalNavigationTreeProps) => JSX_2.Element;
|
|
6277
6374
|
|
|
6278
6375
|
export declare type HvVerticalNavigationTreeClasses = {
|
|
@@ -6282,7 +6379,7 @@ export declare type HvVerticalNavigationTreeClasses = {
|
|
|
6282
6379
|
collapsed?: string;
|
|
6283
6380
|
};
|
|
6284
6381
|
|
|
6285
|
-
export declare type HvVerticalNavigationTreeProps =
|
|
6382
|
+
export declare type HvVerticalNavigationTreeProps = HvBaseProps<HTMLDivElement, {
|
|
6286
6383
|
onChange: any;
|
|
6287
6384
|
}> & {
|
|
6288
6385
|
/**
|
|
@@ -6784,7 +6881,7 @@ export declare interface NavigationData {
|
|
|
6784
6881
|
[otherProperty: string]: any;
|
|
6785
6882
|
}
|
|
6786
6883
|
|
|
6787
|
-
export declare type NavigationMode = "treeview" | "navigation";
|
|
6884
|
+
export declare type NavigationMode = "treeview" | "navigation" | "slider";
|
|
6788
6885
|
|
|
6789
6886
|
export declare const normalizeProgressBar: (value: number, max: number) => number;
|
|
6790
6887
|
|
|
@@ -7096,9 +7193,7 @@ export declare interface UseHvSortByTableCellProps {
|
|
|
7096
7193
|
sorted?: boolean;
|
|
7097
7194
|
}
|
|
7098
7195
|
|
|
7099
|
-
declare function useHvTable<D extends object = Record<string, unknown>>(
|
|
7100
|
-
data?: D[];
|
|
7101
|
-
} & HvExtraProps, ...plugins: any): any;
|
|
7196
|
+
declare function useHvTable<D extends object = Record<string, unknown>>(options: HvTableOptions<D>, ...plugins: Array<HvTablePluginHook<D>>): HvTableInstance<D>;
|
|
7102
7197
|
export { useHvTable as useHvData }
|
|
7103
7198
|
export { useHvTable }
|
|
7104
7199
|
|
|
@@ -7222,10 +7317,23 @@ export declare const VerticalNavigationContext: Context<VerticalNavigationContex
|
|
|
7222
7317
|
declare interface VerticalNavigationContextValue {
|
|
7223
7318
|
isOpen: boolean;
|
|
7224
7319
|
collapsedMode: HvVerticalNavigationMode;
|
|
7320
|
+
slider?: boolean;
|
|
7321
|
+
headerTitle?: string;
|
|
7322
|
+
setHeaderTitle?: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
7323
|
+
parentItem?: any;
|
|
7324
|
+
withParentData?: any;
|
|
7325
|
+
navigateToChildHandler?: (event: any, item: any) => void;
|
|
7326
|
+
navigateToParentHandler?: () => void;
|
|
7327
|
+
parentData?: NavigationData[];
|
|
7328
|
+
setParentData?: React.Dispatch<React.SetStateAction<any>>;
|
|
7329
|
+
parentSelected?: any;
|
|
7330
|
+
setParentSelected?: React.Dispatch<React.SetStateAction<any>>;
|
|
7225
7331
|
}
|
|
7226
7332
|
|
|
7227
7333
|
export declare const verticalNavigationHeaderClasses: HvVerticalNavigationHeaderClasses;
|
|
7228
7334
|
|
|
7335
|
+
export declare const verticalNavigationSliderClasses: HvVerticalNavigationSliderClasses;
|
|
7336
|
+
|
|
7229
7337
|
export declare const verticalNavigationTreeClasses: HvVerticalNavigationTreeClasses;
|
|
7230
7338
|
|
|
7231
7339
|
export declare type VisibilitySelectorActions = "previous_month" | "next_month" | "previous_year" | "next_year" | "month" | "month_year";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "Core React components for the NEXT Design System.",
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/cache": "^11.10.5",
|
|
34
|
-
"@hitachivantara/uikit-react-icons": "^5.0.0-next.
|
|
35
|
-
"@hitachivantara/uikit-react-shared": "^5.0.0-next.
|
|
36
|
-
"@hitachivantara/uikit-styles": "^5.0.0-next.
|
|
34
|
+
"@hitachivantara/uikit-react-icons": "^5.0.0-next.21",
|
|
35
|
+
"@hitachivantara/uikit-react-shared": "^5.0.0-next.19",
|
|
36
|
+
"@hitachivantara/uikit-styles": "^5.0.0-next.21",
|
|
37
37
|
"@popperjs/core": "^2.11.6",
|
|
38
|
+
"@types/react-table": "^7.7.14",
|
|
38
39
|
"attr-accept": "^2.2.2",
|
|
39
40
|
"clsx": "^1.2.1",
|
|
40
41
|
"dayjs": "^1.11.7",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"access": "public",
|
|
55
56
|
"directory": "package"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ddfc339b19c2ccad1973e97329b6a94e657ddd9b",
|
|
58
59
|
"main": "dist/cjs/index.cjs",
|
|
59
60
|
"exports": {
|
|
60
61
|
".": {
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const createCache = require("@emotion/cache");
|
|
4
|
-
const createEmotion = require("@emotion/css/create-instance");
|
|
5
|
-
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
6
|
-
const createCache__default = /* @__PURE__ */ _interopDefault(createCache);
|
|
7
|
-
const createEmotion__default = /* @__PURE__ */ _interopDefault(createEmotion);
|
|
8
|
-
const key = "hv-uikit";
|
|
9
|
-
const emotionCache = createCache__default.default({
|
|
10
|
-
key: `${key}-style`,
|
|
11
|
-
prepend: true
|
|
12
|
-
});
|
|
13
|
-
const {
|
|
14
|
-
flush,
|
|
15
|
-
hydrate,
|
|
16
|
-
cx,
|
|
17
|
-
merge,
|
|
18
|
-
getRegisteredStyles,
|
|
19
|
-
injectGlobal,
|
|
20
|
-
keyframes,
|
|
21
|
-
css,
|
|
22
|
-
sheet,
|
|
23
|
-
cache
|
|
24
|
-
} = createEmotion__default.default({
|
|
25
|
-
key: `${key}-css`,
|
|
26
|
-
prepend: true
|
|
27
|
-
});
|
|
28
|
-
exports.cache = cache;
|
|
29
|
-
exports.css = css;
|
|
30
|
-
exports.cx = cx;
|
|
31
|
-
exports.emotionCache = emotionCache;
|
|
32
|
-
exports.flush = flush;
|
|
33
|
-
exports.getRegisteredStyles = getRegisteredStyles;
|
|
34
|
-
exports.hydrate = hydrate;
|
|
35
|
-
exports.injectGlobal = injectGlobal;
|
|
36
|
-
exports.keyframes = keyframes;
|
|
37
|
-
exports.merge = merge;
|
|
38
|
-
exports.sheet = sheet;
|
|
39
|
-
//# sourceMappingURL=emotion.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emotion.cjs","sources":["../../../src/utils/emotion.tsx"],"sourcesContent":["import createCache from \"@emotion/cache\";\nimport createEmotion from \"@emotion/css/create-instance\";\n\n/**\n * Moves UI Kit styles to the top of the <head> so they're loaded first.\n * This enables users to override the UI Kit styles if necessary.\n */\n\nconst key: string = \"hv-uikit\";\n\nexport const emotionCache = createCache({\n key: `${key}-style`,\n prepend: true,\n});\n\nexport const {\n flush,\n hydrate,\n cx,\n merge,\n getRegisteredStyles,\n injectGlobal,\n keyframes,\n css,\n sheet,\n cache,\n} = createEmotion({\n key: `${key}-css`,\n prepend: true,\n});\n"],"names":["key","emotionCache","createCache","prepend","flush","hydrate","cx","merge","getRegisteredStyles","injectGlobal","keyframes","css","sheet","cache","createEmotion"],"mappings":";;;;;;;AAQA,MAAMA,MAAc;AAEb,MAAMC,eAAeC,qBAAAA,QAAY;AAAA,EACtCF,KAAM,GAAEA;AAAAA,EACRG,SAAS;AACX,CAAC;AAEY,MAAA;AAAA,EACXC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AACF,IAAIC,+BAAc;AAAA,EAChBd,KAAM,GAAEA;AAAAA,EACRG,SAAS;AACX,CAAC;;;;;;;;;;;;"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import createCache from "@emotion/cache";
|
|
2
|
-
import createEmotion from "@emotion/css/create-instance";
|
|
3
|
-
const key = "hv-uikit";
|
|
4
|
-
const emotionCache = createCache({
|
|
5
|
-
key: `${key}-style`,
|
|
6
|
-
prepend: true
|
|
7
|
-
});
|
|
8
|
-
const {
|
|
9
|
-
flush,
|
|
10
|
-
hydrate,
|
|
11
|
-
cx,
|
|
12
|
-
merge,
|
|
13
|
-
getRegisteredStyles,
|
|
14
|
-
injectGlobal,
|
|
15
|
-
keyframes,
|
|
16
|
-
css,
|
|
17
|
-
sheet,
|
|
18
|
-
cache
|
|
19
|
-
} = createEmotion({
|
|
20
|
-
key: `${key}-css`,
|
|
21
|
-
prepend: true
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
cache,
|
|
25
|
-
css,
|
|
26
|
-
cx,
|
|
27
|
-
emotionCache,
|
|
28
|
-
flush,
|
|
29
|
-
getRegisteredStyles,
|
|
30
|
-
hydrate,
|
|
31
|
-
injectGlobal,
|
|
32
|
-
keyframes,
|
|
33
|
-
merge,
|
|
34
|
-
sheet
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=emotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emotion.js","sources":["../../../src/utils/emotion.tsx"],"sourcesContent":["import createCache from \"@emotion/cache\";\nimport createEmotion from \"@emotion/css/create-instance\";\n\n/**\n * Moves UI Kit styles to the top of the <head> so they're loaded first.\n * This enables users to override the UI Kit styles if necessary.\n */\n\nconst key: string = \"hv-uikit\";\n\nexport const emotionCache = createCache({\n key: `${key}-style`,\n prepend: true,\n});\n\nexport const {\n flush,\n hydrate,\n cx,\n merge,\n getRegisteredStyles,\n injectGlobal,\n keyframes,\n css,\n sheet,\n cache,\n} = createEmotion({\n key: `${key}-css`,\n prepend: true,\n});\n"],"names":["key","emotionCache","createCache","prepend","flush","hydrate","cx","merge","getRegisteredStyles","injectGlobal","keyframes","css","sheet","cache","createEmotion"],"mappings":";;AAQA,MAAMA,MAAc;AAEb,MAAMC,eAAeC,YAAY;AAAA,EACtCF,KAAM,GAAEA;AAAAA,EACRG,SAAS;AACX,CAAC;AAEY,MAAA;AAAA,EACXC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AACF,IAAIC,cAAc;AAAA,EAChBd,KAAM,GAAEA;AAAAA,EACRG,SAAS;AACX,CAAC;"}
|