@hitachivantara/uikit-react-core 5.58.1 → 5.58.3
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/Accordion/Accordion.cjs +1 -1
- package/dist/cjs/Accordion/Accordion.cjs.map +1 -1
- package/dist/cjs/AppSwitcher/Action/Action.cjs +1 -1
- package/dist/cjs/AppSwitcher/Action/Action.cjs.map +1 -1
- package/dist/cjs/Avatar/Avatar.cjs.map +1 -1
- package/dist/cjs/Badge/Badge.styles.cjs.map +1 -1
- package/dist/cjs/BaseCheckBox/BaseCheckBox.cjs.map +1 -1
- package/dist/cjs/BaseDropdown/BaseDropdown.cjs +2 -3
- package/dist/cjs/BaseDropdown/BaseDropdown.cjs.map +1 -1
- package/dist/cjs/BaseInput/BaseInput.styles.cjs.map +1 -1
- package/dist/cjs/BaseInput/validations.cjs.map +1 -1
- package/dist/cjs/BaseRadio/BaseRadio.cjs.map +1 -1
- package/dist/cjs/BaseSwitch/BaseSwitch.cjs.map +1 -1
- package/dist/cjs/BreadCrumb/BreadCrumb.cjs.map +1 -1
- package/dist/cjs/BreadCrumb/Page/Page.cjs.map +1 -1
- package/dist/cjs/BreadCrumb/utils.cjs.map +1 -1
- package/dist/cjs/Calendar/Calendar.cjs.map +1 -1
- package/dist/cjs/Calendar/SingleCalendar/CalendarCell.cjs.map +1 -1
- package/dist/cjs/Card/Media/Media.cjs.map +1 -1
- package/dist/cjs/Carousel/Carousel.cjs.map +1 -1
- package/dist/cjs/Carousel/CarouselControls.cjs.map +1 -1
- package/dist/cjs/Carousel/CarouselSlide/CarouselSlide.cjs.map +1 -1
- package/dist/cjs/Carousel/CarouselThumbnails.cjs.map +1 -1
- package/dist/cjs/CheckBox/CheckBox.cjs +1 -1
- package/dist/cjs/CheckBox/CheckBox.cjs.map +1 -1
- package/dist/cjs/CheckBoxGroup/CheckBoxGroup.cjs +1 -1
- package/dist/cjs/CheckBoxGroup/CheckBoxGroup.cjs.map +1 -1
- package/dist/cjs/ColorPicker/ColorPicker.cjs +1 -1
- package/dist/cjs/ColorPicker/ColorPicker.cjs.map +1 -1
- package/dist/cjs/Controls/Controls.cjs.map +1 -1
- package/dist/cjs/DatePicker/DatePicker.cjs +1 -1
- package/dist/cjs/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/cjs/DropDownMenu/DropDownMenu.cjs +1 -1
- package/dist/cjs/DropDownMenu/DropDownMenu.cjs.map +1 -1
- package/dist/cjs/Dropdown/Dropdown.cjs +1 -1
- package/dist/cjs/Dropdown/Dropdown.cjs.map +1 -1
- package/dist/cjs/Dropdown/List/List.cjs.map +1 -1
- package/dist/cjs/FileUploader/DropZone/DropZone.cjs +1 -1
- package/dist/cjs/FileUploader/DropZone/DropZone.cjs.map +1 -1
- package/dist/cjs/FileUploader/DropZone/DropZone.styles.cjs.map +1 -1
- package/dist/cjs/FileUploader/FileList/FileList.cjs +1 -1
- package/dist/cjs/FileUploader/FileList/FileList.cjs.map +1 -1
- package/dist/cjs/FilterGroup/FilterGroup.cjs +1 -1
- package/dist/cjs/FilterGroup/FilterGroup.cjs.map +1 -1
- package/dist/cjs/Focus/Focus.cjs +1 -3
- package/dist/cjs/Focus/Focus.cjs.map +1 -1
- package/dist/cjs/Forms/Adornment/Adornment.cjs.map +1 -1
- package/dist/cjs/Forms/FormElement/FormElement.cjs +1 -1
- package/dist/cjs/Forms/FormElement/FormElement.cjs.map +1 -1
- package/dist/cjs/Forms/Suggestions/Suggestions.cjs.map +1 -1
- package/dist/cjs/Header/Navigation/MenuBar/MenuBar.cjs.map +1 -1
- package/dist/cjs/Header/Navigation/MenuItem/MenuItem.cjs.map +1 -1
- package/dist/cjs/Header/Navigation/Navigation.cjs.map +1 -1
- package/dist/cjs/Header/Navigation/utils/FocusContext.cjs.map +1 -1
- package/dist/cjs/InlineEditor/InlineEditor.cjs.map +1 -1
- package/dist/cjs/Input/Input.cjs +2 -4
- package/dist/cjs/Input/Input.cjs.map +1 -1
- package/dist/cjs/ListContainer/ListContainer.cjs +3 -5
- package/dist/cjs/ListContainer/ListContainer.cjs.map +1 -1
- package/dist/cjs/ListContainer/ListItem/ListItem.cjs +4 -6
- package/dist/cjs/ListContainer/ListItem/ListItem.cjs.map +1 -1
- package/dist/cjs/MultiButton/MultiButton.cjs +4 -6
- package/dist/cjs/MultiButton/MultiButton.cjs.map +1 -1
- package/dist/cjs/Pagination/Pagination.cjs.map +1 -1
- package/dist/cjs/Pagination/Pagination.styles.cjs.map +1 -1
- package/dist/cjs/Pagination/Select.cjs.map +1 -1
- package/dist/cjs/Radio/Radio.cjs +1 -1
- package/dist/cjs/Radio/Radio.cjs.map +1 -1
- package/dist/cjs/RadioGroup/RadioGroup.cjs +1 -1
- package/dist/cjs/RadioGroup/RadioGroup.cjs.map +1 -1
- package/dist/cjs/ScrollTo/Horizontal/ScrollToHorizontal.cjs +1 -1
- package/dist/cjs/ScrollTo/Horizontal/ScrollToHorizontal.cjs.map +1 -1
- package/dist/cjs/ScrollTo/Vertical/ScrollToVertical.cjs +1 -1
- package/dist/cjs/ScrollTo/Vertical/ScrollToVertical.cjs.map +1 -1
- package/dist/cjs/Section/Section.cjs +1 -1
- package/dist/cjs/Section/Section.cjs.map +1 -1
- package/dist/cjs/Select/Select.cjs.map +1 -1
- package/dist/cjs/SelectionList/SelectionList.cjs +5 -7
- package/dist/cjs/SelectionList/SelectionList.cjs.map +1 -1
- package/dist/cjs/Skeleton/Skeleton.cjs +49 -0
- package/dist/cjs/Skeleton/Skeleton.cjs.map +1 -0
- package/dist/cjs/Skeleton/Skeleton.styles.cjs +81 -0
- package/dist/cjs/Skeleton/Skeleton.styles.cjs.map +1 -0
- package/dist/cjs/Slider/Slider.cjs +1 -1
- package/dist/cjs/Slider/Slider.cjs.map +1 -1
- package/dist/cjs/Slider/Slider.styles.cjs.map +1 -1
- package/dist/cjs/Slider/utils.cjs.map +1 -1
- package/dist/cjs/Snackbar/Snackbar.cjs.map +1 -1
- package/dist/cjs/SnackbarProvider/SnackbarProvider.cjs.map +1 -1
- package/dist/cjs/Stack/Stack.cjs +2 -3
- package/dist/cjs/Stack/Stack.cjs.map +1 -1
- package/dist/cjs/Switch/Switch.cjs +1 -1
- package/dist/cjs/Switch/Switch.cjs.map +1 -1
- package/dist/cjs/Tab/Tab.styles.cjs.map +1 -1
- package/dist/cjs/Table/Table.cjs.map +1 -1
- package/dist/cjs/Table/TableBody/TableBody.cjs.map +1 -1
- package/dist/cjs/Table/TableCell/TableCell.cjs.map +1 -1
- package/dist/cjs/Table/TableCell/TableCell.styles.cjs.map +1 -1
- package/dist/cjs/Table/TableHeader/TableHeader.cjs.map +1 -1
- package/dist/cjs/Table/hooks/useHeaderGroups.cjs.map +1 -1
- package/dist/cjs/Table/hooks/useResizeColumns.cjs.map +1 -1
- package/dist/cjs/Table/hooks/useRowExpand.cjs.map +1 -1
- package/dist/cjs/Table/hooks/useRowSelection.cjs.map +1 -1
- package/dist/cjs/Table/hooks/useSticky.cjs.map +1 -1
- package/dist/cjs/Table/hooks/useTableStyles.cjs.map +1 -1
- package/dist/cjs/TableSection/TableSection.cjs +1 -1
- package/dist/cjs/TableSection/TableSection.cjs.map +1 -1
- package/dist/cjs/Tag/Tag.cjs.map +1 -1
- package/dist/cjs/Tag/Tag.styles.cjs.map +1 -1
- package/dist/cjs/TagsInput/TagsInput.cjs +1 -1
- package/dist/cjs/TagsInput/TagsInput.cjs.map +1 -1
- package/dist/cjs/TextArea/TextArea.cjs +1 -1
- package/dist/cjs/TextArea/TextArea.cjs.map +1 -1
- package/dist/cjs/TimePicker/TimePicker.cjs +1 -1
- package/dist/cjs/TimePicker/TimePicker.cjs.map +1 -1
- package/dist/cjs/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/cjs/TreeView/TreeItem/DefaultContent.cjs.map +1 -1
- package/dist/cjs/TreeView/TreeItem/TreeItem.cjs.map +1 -1
- package/dist/cjs/VerticalNavigation/Actions/Action.cjs.map +1 -1
- package/dist/cjs/VerticalNavigation/Header/Header.cjs.map +1 -1
- package/dist/cjs/VerticalNavigation/TreeView/TreeView.cjs +1 -1
- package/dist/cjs/VerticalNavigation/TreeView/TreeView.cjs.map +1 -1
- package/dist/cjs/VerticalNavigation/VerticalNavigation.cjs.map +1 -1
- package/dist/cjs/VerticalNavigation/VerticalNavigationContext.cjs.map +1 -1
- package/dist/cjs/hooks/useClickOutside.cjs.map +1 -1
- package/dist/cjs/hooks/useUniqueId.cjs.map +1 -1
- package/dist/cjs/index.cjs +4 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/providers/Provider.cjs +2 -1
- package/dist/cjs/providers/Provider.cjs.map +1 -1
- package/dist/cjs/utils/setId.cjs.map +1 -1
- package/dist/esm/Accordion/Accordion.js +1 -1
- package/dist/esm/Accordion/Accordion.js.map +1 -1
- package/dist/esm/AppSwitcher/Action/Action.js +1 -1
- package/dist/esm/AppSwitcher/Action/Action.js.map +1 -1
- package/dist/esm/Avatar/Avatar.js.map +1 -1
- package/dist/esm/Badge/Badge.styles.js.map +1 -1
- package/dist/esm/BaseCheckBox/BaseCheckBox.js.map +1 -1
- package/dist/esm/BaseDropdown/BaseDropdown.js +3 -3
- package/dist/esm/BaseDropdown/BaseDropdown.js.map +1 -1
- package/dist/esm/BaseInput/BaseInput.styles.js.map +1 -1
- package/dist/esm/BaseInput/validations.js.map +1 -1
- package/dist/esm/BaseRadio/BaseRadio.js.map +1 -1
- package/dist/esm/BaseSwitch/BaseSwitch.js.map +1 -1
- package/dist/esm/BreadCrumb/BreadCrumb.js.map +1 -1
- package/dist/esm/BreadCrumb/Page/Page.js.map +1 -1
- package/dist/esm/BreadCrumb/utils.js.map +1 -1
- package/dist/esm/Calendar/Calendar.js.map +1 -1
- package/dist/esm/Calendar/SingleCalendar/CalendarCell.js.map +1 -1
- package/dist/esm/Card/Media/Media.js.map +1 -1
- package/dist/esm/Carousel/Carousel.js.map +1 -1
- package/dist/esm/Carousel/CarouselControls.js.map +1 -1
- package/dist/esm/Carousel/CarouselSlide/CarouselSlide.js.map +1 -1
- package/dist/esm/Carousel/CarouselThumbnails.js.map +1 -1
- package/dist/esm/CheckBox/CheckBox.js +1 -1
- package/dist/esm/CheckBox/CheckBox.js.map +1 -1
- package/dist/esm/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/dist/esm/CheckBoxGroup/CheckBoxGroup.js.map +1 -1
- package/dist/esm/ColorPicker/ColorPicker.js +1 -1
- package/dist/esm/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/esm/Controls/Controls.js.map +1 -1
- package/dist/esm/DatePicker/DatePicker.js +1 -1
- package/dist/esm/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/DropDownMenu/DropDownMenu.js +1 -1
- package/dist/esm/DropDownMenu/DropDownMenu.js.map +1 -1
- package/dist/esm/Dropdown/Dropdown.js +1 -1
- package/dist/esm/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/Dropdown/List/List.js.map +1 -1
- package/dist/esm/FileUploader/DropZone/DropZone.js +1 -1
- package/dist/esm/FileUploader/DropZone/DropZone.js.map +1 -1
- package/dist/esm/FileUploader/DropZone/DropZone.styles.js.map +1 -1
- package/dist/esm/FileUploader/FileList/FileList.js +1 -1
- package/dist/esm/FileUploader/FileList/FileList.js.map +1 -1
- package/dist/esm/FilterGroup/FilterGroup.js +1 -1
- package/dist/esm/FilterGroup/FilterGroup.js.map +1 -1
- package/dist/esm/Focus/Focus.js +2 -2
- package/dist/esm/Focus/Focus.js.map +1 -1
- package/dist/esm/Forms/Adornment/Adornment.js.map +1 -1
- package/dist/esm/Forms/FormElement/FormElement.js +1 -1
- package/dist/esm/Forms/FormElement/FormElement.js.map +1 -1
- package/dist/esm/Forms/Suggestions/Suggestions.js.map +1 -1
- package/dist/esm/Header/Navigation/MenuBar/MenuBar.js.map +1 -1
- package/dist/esm/Header/Navigation/MenuItem/MenuItem.js.map +1 -1
- package/dist/esm/Header/Navigation/Navigation.js.map +1 -1
- package/dist/esm/Header/Navigation/utils/FocusContext.js.map +1 -1
- package/dist/esm/InlineEditor/InlineEditor.js.map +1 -1
- package/dist/esm/Input/Input.js +3 -3
- package/dist/esm/Input/Input.js.map +1 -1
- package/dist/esm/ListContainer/ListContainer.js +4 -4
- package/dist/esm/ListContainer/ListContainer.js.map +1 -1
- package/dist/esm/ListContainer/ListItem/ListItem.js +5 -5
- package/dist/esm/ListContainer/ListItem/ListItem.js.map +1 -1
- package/dist/esm/MultiButton/MultiButton.js +5 -5
- package/dist/esm/MultiButton/MultiButton.js.map +1 -1
- package/dist/esm/Pagination/Pagination.js.map +1 -1
- package/dist/esm/Pagination/Pagination.styles.js.map +1 -1
- package/dist/esm/Pagination/Select.js.map +1 -1
- package/dist/esm/Radio/Radio.js +1 -1
- package/dist/esm/Radio/Radio.js.map +1 -1
- package/dist/esm/RadioGroup/RadioGroup.js +1 -1
- package/dist/esm/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.js +1 -1
- package/dist/esm/ScrollTo/Horizontal/ScrollToHorizontal.js.map +1 -1
- package/dist/esm/ScrollTo/Vertical/ScrollToVertical.js +1 -1
- package/dist/esm/ScrollTo/Vertical/ScrollToVertical.js.map +1 -1
- package/dist/esm/Section/Section.js +1 -1
- package/dist/esm/Section/Section.js.map +1 -1
- package/dist/esm/Select/Select.js.map +1 -1
- package/dist/esm/SelectionList/SelectionList.js +6 -6
- package/dist/esm/SelectionList/SelectionList.js.map +1 -1
- package/dist/esm/Skeleton/Skeleton.js +50 -0
- package/dist/esm/Skeleton/Skeleton.js.map +1 -0
- package/dist/esm/Skeleton/Skeleton.styles.js +81 -0
- package/dist/esm/Skeleton/Skeleton.styles.js.map +1 -0
- package/dist/esm/Slider/Slider.js +1 -1
- package/dist/esm/Slider/Slider.js.map +1 -1
- package/dist/esm/Slider/Slider.styles.js.map +1 -1
- package/dist/esm/Slider/utils.js.map +1 -1
- package/dist/esm/Snackbar/Snackbar.js.map +1 -1
- package/dist/esm/SnackbarProvider/SnackbarProvider.js.map +1 -1
- package/dist/esm/Stack/Stack.js +3 -3
- package/dist/esm/Stack/Stack.js.map +1 -1
- package/dist/esm/Switch/Switch.js +1 -1
- package/dist/esm/Switch/Switch.js.map +1 -1
- package/dist/esm/Tab/Tab.styles.js.map +1 -1
- package/dist/esm/Table/Table.js.map +1 -1
- package/dist/esm/Table/TableBody/TableBody.js.map +1 -1
- package/dist/esm/Table/TableCell/TableCell.js.map +1 -1
- package/dist/esm/Table/TableCell/TableCell.styles.js.map +1 -1
- package/dist/esm/Table/TableHeader/TableHeader.js.map +1 -1
- package/dist/esm/Table/hooks/useHeaderGroups.js.map +1 -1
- package/dist/esm/Table/hooks/useResizeColumns.js.map +1 -1
- package/dist/esm/Table/hooks/useRowExpand.js.map +1 -1
- package/dist/esm/Table/hooks/useRowSelection.js.map +1 -1
- package/dist/esm/Table/hooks/useSticky.js.map +1 -1
- package/dist/esm/Table/hooks/useTableStyles.js.map +1 -1
- package/dist/esm/TableSection/TableSection.js +1 -1
- package/dist/esm/TableSection/TableSection.js.map +1 -1
- package/dist/esm/Tag/Tag.js.map +1 -1
- package/dist/esm/Tag/Tag.styles.js.map +1 -1
- package/dist/esm/TagsInput/TagsInput.js +1 -1
- package/dist/esm/TagsInput/TagsInput.js.map +1 -1
- package/dist/esm/TextArea/TextArea.js +1 -1
- package/dist/esm/TextArea/TextArea.js.map +1 -1
- package/dist/esm/TimePicker/TimePicker.js +1 -1
- package/dist/esm/TimePicker/TimePicker.js.map +1 -1
- package/dist/esm/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/TreeView/TreeItem/DefaultContent.js.map +1 -1
- package/dist/esm/TreeView/TreeItem/TreeItem.js.map +1 -1
- package/dist/esm/VerticalNavigation/Actions/Action.js.map +1 -1
- package/dist/esm/VerticalNavigation/Header/Header.js.map +1 -1
- package/dist/esm/VerticalNavigation/TreeView/TreeView.js +1 -1
- package/dist/esm/VerticalNavigation/TreeView/TreeView.js.map +1 -1
- package/dist/esm/VerticalNavigation/VerticalNavigation.js.map +1 -1
- package/dist/esm/VerticalNavigation/VerticalNavigationContext.js.map +1 -1
- package/dist/esm/hooks/useClickOutside.js.map +1 -1
- package/dist/esm/hooks/useUniqueId.js.map +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/providers/Provider.js +2 -1
- package/dist/esm/providers/Provider.js.map +1 -1
- package/dist/esm/utils/setId.js.map +1 -1
- package/dist/types/index.d.ts +205 -178
- package/package.json +5 -5
package/dist/types/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { CardContentProps } from '@mui/material/CardContent';
|
|
|
7
7
|
import { CardHeaderProps } from '@mui/material/CardHeader';
|
|
8
8
|
import { CardMediaProps } from '@mui/material/CardMedia';
|
|
9
9
|
import { Cell } from 'react-table';
|
|
10
|
-
import { ChangeEvent } from 'react';
|
|
11
10
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
12
11
|
import { ChipProps } from '@mui/material/Chip';
|
|
13
12
|
import { ColumnInstance } from 'react-table';
|
|
@@ -16,7 +15,6 @@ import { ComponentProps } from 'react';
|
|
|
16
15
|
import { ContainerProps } from '@mui/material/Container';
|
|
17
16
|
import { Context } from 'react';
|
|
18
17
|
import { CSSInterpolation } from '@emotion/serialize';
|
|
19
|
-
import { CSSProperties } from 'react';
|
|
20
18
|
import { defaultCacheKey } from '@hitachivantara/uikit-react-shared';
|
|
21
19
|
import { defaultEmotionCache } from '@hitachivantara/uikit-react-shared';
|
|
22
20
|
import { DialogActionsProps } from '@mui/material/DialogActions';
|
|
@@ -33,8 +31,6 @@ import { EmotionContext } from '@hitachivantara/uikit-react-shared';
|
|
|
33
31
|
import { ForwardRefExoticComponent } from 'react';
|
|
34
32
|
import { GridProps } from '@mui/material/Grid';
|
|
35
33
|
import { Hooks } from 'react-table';
|
|
36
|
-
import { HTMLAttributes } from 'react';
|
|
37
|
-
import { HTMLInputTypeAttribute } from 'react';
|
|
38
34
|
import { HvAccentColor } from '@hitachivantara/uikit-styles';
|
|
39
35
|
import { HvAtmosphereColor } from '@hitachivantara/uikit-styles';
|
|
40
36
|
import { HvBaseColor } from '@hitachivantara/uikit-styles';
|
|
@@ -59,15 +55,12 @@ import type { HvThemeContextValue } from '@hitachivantara/uikit-react-shared';
|
|
|
59
55
|
import { HvThemeStructure } from '@hitachivantara/uikit-styles';
|
|
60
56
|
import { IconBaseProps } from '@hitachivantara/uikit-react-icons';
|
|
61
57
|
import { IdType as IdType_2 } from 'react-table';
|
|
62
|
-
import { ImgHTMLAttributes } from 'react';
|
|
63
58
|
import { InputBaseComponentProps } from '@mui/material/InputBase';
|
|
64
59
|
import { InputBaseProps } from '@mui/material/InputBase';
|
|
65
60
|
import { InputProps } from '@mui/material/Input';
|
|
66
61
|
import { JSX as JSX_2 } from 'react';
|
|
67
62
|
import { JSX as JSX_3 } from '@emotion/react/jsx-runtime';
|
|
68
63
|
import { JSXElementConstructor } from 'react';
|
|
69
|
-
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
70
|
-
import { MouseEventHandler } from 'react';
|
|
71
64
|
import { OptionGroupProps } from '@mui/base/OptionGroup';
|
|
72
65
|
import { OptionOwnProps } from '@mui/base/Option';
|
|
73
66
|
import { OptionsObject } from 'notistack';
|
|
@@ -95,13 +88,11 @@ import { SnackbarOrigin } from '@mui/material/Snackbar';
|
|
|
95
88
|
import { SnackbarProps } from '@mui/material/Snackbar';
|
|
96
89
|
import { SnackbarProviderProps } from 'notistack';
|
|
97
90
|
import { SwitchProps } from '@mui/material/Switch';
|
|
98
|
-
import { SyntheticEvent } from 'react';
|
|
99
91
|
import { TableCellProps } from 'react-table';
|
|
100
92
|
import { TableCommonProps } from 'react-table';
|
|
101
93
|
import { TableExpandedToggleProps } from 'react-table';
|
|
102
94
|
import { TableFooterProps } from 'react-table';
|
|
103
95
|
import { TableHeaderProps } from 'react-table';
|
|
104
|
-
import { TableHTMLAttributes } from 'react';
|
|
105
96
|
import { TableInstance } from 'react-table';
|
|
106
97
|
import { TableOptions } from 'react-table';
|
|
107
98
|
import { TableProps } from 'react-table';
|
|
@@ -109,10 +100,8 @@ import { TableRowProps } from 'react-table';
|
|
|
109
100
|
import { TableState } from 'react-table';
|
|
110
101
|
import { TabProps } from '@mui/material/Tab';
|
|
111
102
|
import { TabsProps } from '@mui/material/Tabs';
|
|
112
|
-
import { TdHTMLAttributes } from 'react';
|
|
113
103
|
import { theme } from '@hitachivantara/uikit-styles';
|
|
114
104
|
import { themes } from '@hitachivantara/uikit-styles';
|
|
115
|
-
import { ThHTMLAttributes } from 'react';
|
|
116
105
|
import { TooltipProps } from '@mui/material/Tooltip';
|
|
117
106
|
import { TransitionProps } from '@mui/material/transitions';
|
|
118
107
|
import useCarousel from 'embla-carousel-react';
|
|
@@ -1134,7 +1123,7 @@ export declare interface HvAccordionProps extends HvBaseProps<HTMLDivElement, "o
|
|
|
1134
1123
|
/**
|
|
1135
1124
|
* Content to be rendered
|
|
1136
1125
|
*/
|
|
1137
|
-
children:
|
|
1126
|
+
children: React.ReactNode;
|
|
1138
1127
|
/**
|
|
1139
1128
|
* The accordion label button.
|
|
1140
1129
|
*/
|
|
@@ -1142,7 +1131,7 @@ export declare interface HvAccordionProps extends HvBaseProps<HTMLDivElement, "o
|
|
|
1142
1131
|
/**
|
|
1143
1132
|
* The function that will be executed whenever the accordion toggles it will receive the state of the accordion
|
|
1144
1133
|
*/
|
|
1145
|
-
onChange?: (event:
|
|
1134
|
+
onChange?: (event: React.SyntheticEvent, value: boolean) => void;
|
|
1146
1135
|
/**
|
|
1147
1136
|
* Whether the accordion is open or not, if this property is defined the accordion must be fully controlled.
|
|
1148
1137
|
*/
|
|
@@ -1154,7 +1143,7 @@ export declare interface HvAccordionProps extends HvBaseProps<HTMLDivElement, "o
|
|
|
1154
1143
|
/**
|
|
1155
1144
|
* An object containing props to be passed onto container holding the accordion children.
|
|
1156
1145
|
*/
|
|
1157
|
-
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
1146
|
+
containerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
1158
1147
|
/**
|
|
1159
1148
|
* Heading Level to apply to accordion button if ´undefined´ the button won't have a header wrapper.
|
|
1160
1149
|
*/
|
|
@@ -1268,7 +1257,7 @@ export declare interface HvAdornmentProps extends HvBaseProps<HTMLDivElement | H
|
|
|
1268
1257
|
/** When the adornment should be displayed. */
|
|
1269
1258
|
showWhen?: HvFormStatus;
|
|
1270
1259
|
/** Function to be executed when this element is clicked. */
|
|
1271
|
-
onClick?: MouseEventHandler<HTMLButtonElement
|
|
1260
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
1272
1261
|
/** If this property is defined the adornment visibility will be exclusively controlled by this value. */
|
|
1273
1262
|
isVisible?: boolean;
|
|
1274
1263
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
@@ -1387,8 +1376,6 @@ export declare interface HvAvatarGroupProps extends HvBaseProps {
|
|
|
1387
1376
|
}
|
|
1388
1377
|
|
|
1389
1378
|
export declare interface HvAvatarProps extends HvBaseProps {
|
|
1390
|
-
/** Inline styles to be applied to the root element. */
|
|
1391
|
-
style?: CSSProperties;
|
|
1392
1379
|
/** The component used for the root node. Either a string to use a DOM element or a component. */
|
|
1393
1380
|
component?: React.ElementType;
|
|
1394
1381
|
/** Sets one of the standard sizes of the icons */
|
|
@@ -1409,7 +1396,7 @@ export declare interface HvAvatarProps extends HvBaseProps {
|
|
|
1409
1396
|
* Attributes applied to the `img` element if the component is used to display an image.
|
|
1410
1397
|
* It can be used to listen for the loading error event.
|
|
1411
1398
|
*/
|
|
1412
|
-
imgProps?: HTMLAttributes<HTMLImageElement>;
|
|
1399
|
+
imgProps?: React.HTMLAttributes<HTMLImageElement>;
|
|
1413
1400
|
/** A string representing the type of avatar to display, circular or square. */
|
|
1414
1401
|
variant?: HvAvatarVariant;
|
|
1415
1402
|
/** A string representing the color of the avatar border that represents its status. */
|
|
@@ -1562,7 +1549,7 @@ export declare type HvBannerVariant = "success" | "warning" | "error" | "default
|
|
|
1562
1549
|
* The Base Checkbox is a building block of the Checkbox form element. Don't use unless
|
|
1563
1550
|
* implementing a custom use case not covered by the Checkbox form element.
|
|
1564
1551
|
*/
|
|
1565
|
-
export declare const HvBaseCheckBox:
|
|
1552
|
+
export declare const HvBaseCheckBox: ForwardRefExoticComponent<Omit<HvBaseCheckBoxProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
1566
1553
|
|
|
1567
1554
|
export declare type HvBaseCheckBoxClasses = ExtractNames<typeof useClasses_29>;
|
|
1568
1555
|
|
|
@@ -1609,7 +1596,7 @@ export declare interface HvBaseCheckBoxProps extends Omit<CheckboxProps, "onChan
|
|
|
1609
1596
|
/**
|
|
1610
1597
|
* The callback fired when the checkbox is pressed.
|
|
1611
1598
|
*/
|
|
1612
|
-
onChange?: (event:
|
|
1599
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean, value: any) => void;
|
|
1613
1600
|
/**
|
|
1614
1601
|
* Whether the selector should use semantic colors.
|
|
1615
1602
|
*/
|
|
@@ -1617,16 +1604,16 @@ export declare interface HvBaseCheckBoxProps extends Omit<CheckboxProps, "onChan
|
|
|
1617
1604
|
/**
|
|
1618
1605
|
* Properties passed on to the input element.
|
|
1619
1606
|
*/
|
|
1620
|
-
inputProps?:
|
|
1607
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
1621
1608
|
/**
|
|
1622
1609
|
* Callback fired when the component is focused with a keyboard.
|
|
1623
1610
|
* We trigger a `onFocus` callback too.
|
|
1624
1611
|
*/
|
|
1625
|
-
onFocusVisible?: (event:
|
|
1612
|
+
onFocusVisible?: (event: React.FocusEvent<any>) => void;
|
|
1626
1613
|
/**
|
|
1627
1614
|
* Callback fired when the component is blurred.
|
|
1628
1615
|
*/
|
|
1629
|
-
onBlur?: (event:
|
|
1616
|
+
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
1630
1617
|
/**
|
|
1631
1618
|
* A Jss Object used to override or extend the styles applied to the checkbox.
|
|
1632
1619
|
*/
|
|
@@ -1639,7 +1626,7 @@ export declare type HvBaseColorKeys = HvBaseColor;
|
|
|
1639
1626
|
|
|
1640
1627
|
export declare type HvBaseColors = Record<HvBaseColorKeys, string>;
|
|
1641
1628
|
|
|
1642
|
-
export declare const HvBaseDropdown:
|
|
1629
|
+
export declare const HvBaseDropdown: ForwardRefExoticComponent<Omit<HvBaseDropdownProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
1643
1630
|
|
|
1644
1631
|
export declare type HvBaseDropdownClasses = ExtractNames<typeof useClasses_17>;
|
|
1645
1632
|
|
|
@@ -1654,7 +1641,7 @@ export declare interface HvBaseDropdownProps extends HvBaseProps {
|
|
|
1654
1641
|
/**
|
|
1655
1642
|
* Header placeholder.
|
|
1656
1643
|
*/
|
|
1657
|
-
placeholder?:
|
|
1644
|
+
placeholder?: React.ReactNode;
|
|
1658
1645
|
/**
|
|
1659
1646
|
* If `true` the dropdown is disabled unable to be interacted, if `false` it is enabled.
|
|
1660
1647
|
*/
|
|
@@ -1696,11 +1683,11 @@ export declare interface HvBaseDropdownProps extends HvBaseProps {
|
|
|
1696
1683
|
/**
|
|
1697
1684
|
* Replacement for the header component.
|
|
1698
1685
|
*/
|
|
1699
|
-
component?:
|
|
1686
|
+
component?: React.ReactNode;
|
|
1700
1687
|
/**
|
|
1701
1688
|
* Adornment to replace the default arrows.
|
|
1702
1689
|
*/
|
|
1703
|
-
adornment?:
|
|
1690
|
+
adornment?: React.ReactNode;
|
|
1704
1691
|
/**
|
|
1705
1692
|
* When dropdown changes the expanded state.
|
|
1706
1693
|
*/
|
|
@@ -1717,17 +1704,17 @@ export declare interface HvBaseDropdownProps extends HvBaseProps {
|
|
|
1717
1704
|
/**
|
|
1718
1705
|
* Attributes applied to the dropdown header element.
|
|
1719
1706
|
*/
|
|
1720
|
-
dropdownHeaderProps?:
|
|
1707
|
+
dropdownHeaderProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
1721
1708
|
/**
|
|
1722
1709
|
* Pass a ref to the dropdown header element.
|
|
1723
1710
|
*/
|
|
1724
|
-
dropdownHeaderRef?:
|
|
1711
|
+
dropdownHeaderRef?: React.Ref<HTMLDivElement>;
|
|
1725
1712
|
/**
|
|
1726
1713
|
* A Jss Object used to override or extend the component styles applied.
|
|
1727
1714
|
*/
|
|
1728
1715
|
classes?: HvBaseDropdownClasses;
|
|
1729
1716
|
/** @ignore */
|
|
1730
|
-
ref?:
|
|
1717
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
1731
1718
|
}
|
|
1732
1719
|
|
|
1733
1720
|
/**
|
|
@@ -1781,7 +1768,7 @@ export declare type HvBaseProps<E extends HTMLElement = HTMLDivElement, K extend
|
|
|
1781
1768
|
* The Base Radio Button is a building block of the Radio Button form element. Don't
|
|
1782
1769
|
* use unless implementing a custom use case not covered by the Radio Button form element.
|
|
1783
1770
|
*/
|
|
1784
|
-
export declare const HvBaseRadio:
|
|
1771
|
+
export declare const HvBaseRadio: ForwardRefExoticComponent<Omit<HvBaseRadioProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
1785
1772
|
|
|
1786
1773
|
export declare type HvBaseRadioClasses = ExtractNames<typeof useClasses_30>;
|
|
1787
1774
|
|
|
@@ -1833,7 +1820,7 @@ export declare interface HvBaseRadioProps extends Omit<RadioProps, "onChange" |
|
|
|
1833
1820
|
/**
|
|
1834
1821
|
* The callback fired when the radio button is pressed.
|
|
1835
1822
|
*/
|
|
1836
|
-
onChange?: (event:
|
|
1823
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean, value: any) => void;
|
|
1837
1824
|
/**
|
|
1838
1825
|
* Whether the selector should use semantic colors.
|
|
1839
1826
|
*/
|
|
@@ -1841,16 +1828,16 @@ export declare interface HvBaseRadioProps extends Omit<RadioProps, "onChange" |
|
|
|
1841
1828
|
/**
|
|
1842
1829
|
* Properties passed on to the input element.
|
|
1843
1830
|
*/
|
|
1844
|
-
inputProps?:
|
|
1831
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
1845
1832
|
/**
|
|
1846
1833
|
* Callback fired when the component is focused with a keyboard.
|
|
1847
1834
|
* We trigger a `onFocus` callback too.
|
|
1848
1835
|
*/
|
|
1849
|
-
onFocusVisible?: (event:
|
|
1836
|
+
onFocusVisible?: (event: React.FocusEvent<any>) => void;
|
|
1850
1837
|
/**
|
|
1851
1838
|
* @ignore
|
|
1852
1839
|
*/
|
|
1853
|
-
onBlur?: (event:
|
|
1840
|
+
onBlur?: (event: React.FocusEvent<any>) => void;
|
|
1854
1841
|
}
|
|
1855
1842
|
|
|
1856
1843
|
/**
|
|
@@ -1859,7 +1846,7 @@ export declare interface HvBaseRadioProps extends Omit<RadioProps, "onChange" |
|
|
|
1859
1846
|
* The Base Switch is a building block of the Switch form element. Don't use unless
|
|
1860
1847
|
* implementing a custom use case not covered by the Switch form element.
|
|
1861
1848
|
*/
|
|
1862
|
-
export declare const HvBaseSwitch:
|
|
1849
|
+
export declare const HvBaseSwitch: ForwardRefExoticComponent<Omit<HvBaseSwitchProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
1863
1850
|
|
|
1864
1851
|
export declare type HvBaseSwitchClasses = ExtractNames<typeof useClasses_31>;
|
|
1865
1852
|
|
|
@@ -1914,20 +1901,20 @@ export declare interface HvBaseSwitchProps extends Omit<SwitchProps, "onChange"
|
|
|
1914
1901
|
/**
|
|
1915
1902
|
* The callback fired when the switch is pressed.
|
|
1916
1903
|
*/
|
|
1917
|
-
onChange?: (event:
|
|
1904
|
+
onChange?: (event: React.ChangeEvent, checked: boolean, value: any) => void;
|
|
1918
1905
|
/**
|
|
1919
1906
|
* Properties passed on to the input element.
|
|
1920
1907
|
*/
|
|
1921
|
-
inputProps?:
|
|
1908
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
1922
1909
|
/**
|
|
1923
1910
|
* Callback fired when the component is focused with a keyboard.
|
|
1924
1911
|
* We trigger a `onFocus` callback too.
|
|
1925
1912
|
*/
|
|
1926
|
-
onFocusVisible?: (event:
|
|
1913
|
+
onFocusVisible?: (event: React.FocusEvent<any>) => void;
|
|
1927
1914
|
/**
|
|
1928
1915
|
* @ignore
|
|
1929
1916
|
*/
|
|
1930
|
-
onBlur?: (event:
|
|
1917
|
+
onBlur?: (event: React.FocusEvent<any>) => void;
|
|
1931
1918
|
}
|
|
1932
1919
|
|
|
1933
1920
|
export { HvBaseTheme }
|
|
@@ -1968,7 +1955,7 @@ export declare interface HvBreadCrumbProps extends HvBaseProps<HTMLDivElement, "
|
|
|
1968
1955
|
/** The component used for the link node. Either a string to use a DOM element or a component. */
|
|
1969
1956
|
component?: React.ElementType;
|
|
1970
1957
|
/** Function passed to the component. If defined the component prop is used as the link node. */
|
|
1971
|
-
onClick?: (event:
|
|
1958
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, data: any) => void;
|
|
1972
1959
|
/** Props passed down to the DropDownMenu sub-menu component. */
|
|
1973
1960
|
dropDownMenuProps?: Partial<HvDropDownMenuProps>;
|
|
1974
1961
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
@@ -2209,17 +2196,17 @@ export declare interface HvCalendarProps {
|
|
|
2209
2196
|
/**
|
|
2210
2197
|
* Callback function to be triggered when the selected date has changed.
|
|
2211
2198
|
*/
|
|
2212
|
-
onChange?: (event:
|
|
2199
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement> | undefined, value: Date | DateRangeProp) => void;
|
|
2213
2200
|
/**
|
|
2214
2201
|
* Callback function to be triggered when the selected date input has changed.
|
|
2215
2202
|
*/
|
|
2216
|
-
onInputChange?: (event:
|
|
2203
|
+
onInputChange?: (event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement | HTMLButtonElement> | undefined, value: Date | DateRangeProp, position: "left" | "right") => void;
|
|
2217
2204
|
/**
|
|
2218
2205
|
* Callback function to be triggered when the user clicks on the month or year selector.
|
|
2219
2206
|
* it receives the action that was pressed:
|
|
2220
2207
|
* previous_month, next_month, previous_year, next_year,month
|
|
2221
2208
|
*/
|
|
2222
|
-
onVisibleDateChange?: (event:
|
|
2209
|
+
onVisibleDateChange?: (event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement> | undefined, action: VisibilitySelectorActions, value?: Date | DateRangeProp | number, position?: "left" | "right") => void;
|
|
2223
2210
|
/**
|
|
2224
2211
|
* The maximum selectable date after this all values are disabled.
|
|
2225
2212
|
*/
|
|
@@ -2231,7 +2218,7 @@ export declare interface HvCalendarProps {
|
|
|
2231
2218
|
/**
|
|
2232
2219
|
* An element placed before the Calendar
|
|
2233
2220
|
*/
|
|
2234
|
-
startAdornment?:
|
|
2221
|
+
startAdornment?: React.ReactNode;
|
|
2235
2222
|
/**
|
|
2236
2223
|
* Indicates if header should display the day of week.
|
|
2237
2224
|
*/
|
|
@@ -2284,7 +2271,7 @@ export declare const HvCardMedia: ({ id, classes: classesProp, className, childr
|
|
|
2284
2271
|
|
|
2285
2272
|
export declare type HvCardMediaClasses = ExtractNames<typeof useClasses_42>;
|
|
2286
2273
|
|
|
2287
|
-
export declare interface HvCardMediaProps extends Omit<CardMediaProps, "classes">, ImgHTMLAttributes<HTMLDivElement
|
|
2274
|
+
export declare interface HvCardMediaProps extends Omit<CardMediaProps, "classes">, React.ImgHTMLAttributes<HTMLDivElement> {
|
|
2288
2275
|
/** Id to be applied to the root node. */
|
|
2289
2276
|
id?: string;
|
|
2290
2277
|
/** The title of the media. */
|
|
@@ -2330,24 +2317,24 @@ export declare const HvCarouselControls: (props: HvCarouselControlsProps) => JSX
|
|
|
2330
2317
|
declare interface HvCarouselControlsProps extends HvBaseProps<HTMLDivElement>, Pick<HvPaginationProps, "page" | "pages" | "canPrevious" | "canNext"> {
|
|
2331
2318
|
showDots?: boolean;
|
|
2332
2319
|
classes?: ExtractNames<typeof useClasses_43>;
|
|
2333
|
-
actions?: ReactNode;
|
|
2334
|
-
onPreviousClick?: MouseEventHandler<HTMLButtonElement>;
|
|
2335
|
-
onNextClick?: MouseEventHandler<HTMLButtonElement>;
|
|
2320
|
+
actions?: React.ReactNode;
|
|
2321
|
+
onPreviousClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
2322
|
+
onNextClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
2336
2323
|
}
|
|
2337
2324
|
|
|
2338
2325
|
export declare interface HvCarouselProps extends HvBaseProps<HTMLDivElement, "title" | "onChange"> {
|
|
2339
2326
|
/** A Jss Object used to override or extend the styles applied. */
|
|
2340
2327
|
classes?: HvCarouselClasses;
|
|
2341
2328
|
/** Height of the Slider container. If `undefined`, images will keep a 16/9 aspect-ratio */
|
|
2342
|
-
height?: CSSProperties["height"];
|
|
2329
|
+
height?: React.CSSProperties["height"];
|
|
2343
2330
|
/** Width of the thumbnail. Height will try to maintain a 16/9 aspect-ratio */
|
|
2344
|
-
thumbnailWidth?: CSSProperties["width"];
|
|
2331
|
+
thumbnailWidth?: React.CSSProperties["width"];
|
|
2345
2332
|
/** Title of the carousel */
|
|
2346
|
-
title?:
|
|
2333
|
+
title?: React.ReactNode;
|
|
2347
2334
|
/** Content slides to be displayed. @see `<HvCarouselSlide />` */
|
|
2348
|
-
children?:
|
|
2335
|
+
children?: React.ReactNode;
|
|
2349
2336
|
/** Custom content to render in the actions area */
|
|
2350
|
-
actions?:
|
|
2337
|
+
actions?: React.ReactNode;
|
|
2351
2338
|
/** Whether Carousel is in "xs mode" - to use in embedded contexts */
|
|
2352
2339
|
xs?: boolean;
|
|
2353
2340
|
/** Whether to show dots instead of arrow pagination. Defaults to true under 5 elements */
|
|
@@ -2367,7 +2354,7 @@ export declare interface HvCarouselProps extends HvBaseProps<HTMLDivElement, "ti
|
|
|
2367
2354
|
/** Carousel configuration options. @see https://www.embla-carousel.com/api/options/ */
|
|
2368
2355
|
carouselOptions?: Parameters<typeof useCarousel>[0];
|
|
2369
2356
|
/** Function that renders the thumbnail. */
|
|
2370
|
-
renderThumbnail?: (index: number) =>
|
|
2357
|
+
renderThumbnail?: (index: number) => React.ReactNode;
|
|
2371
2358
|
/** The callback fired when the active slide changes. */
|
|
2372
2359
|
onChange?: (index: number) => void;
|
|
2373
2360
|
}
|
|
@@ -2380,7 +2367,7 @@ export declare const HvCarouselSlide: ({ classes: classesProp, className, childr
|
|
|
2380
2367
|
|
|
2381
2368
|
export declare type HvCarouselSlideClasses = ExtractNames<typeof useClasses_44>;
|
|
2382
2369
|
|
|
2383
|
-
export declare interface HvCarouselSlideProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
2370
|
+
export declare interface HvCarouselSlideProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
2384
2371
|
/** A Jss Object used to override or extend the styles applied. */
|
|
2385
2372
|
classes?: HvCarouselSlideClasses;
|
|
2386
2373
|
/** The width of the Slide. Defaults to `100%` */
|
|
@@ -2392,9 +2379,9 @@ export declare interface HvCarouselSlideProps extends ImgHTMLAttributes<HTMLImag
|
|
|
2392
2379
|
export declare const HvCarouselThumbnails: ForwardRefExoticComponent<HvCarouselThumbnailsProps & RefAttributes<HTMLDivElement>>;
|
|
2393
2380
|
|
|
2394
2381
|
declare interface HvCarouselThumbnailsProps extends HvBaseProps<HTMLDivElement, "children">, Pick<HvPaginationProps, "page" | "pages" | "canPrevious" | "canNext"> {
|
|
2395
|
-
width?: CSSProperties["width"];
|
|
2382
|
+
width?: React.CSSProperties["width"];
|
|
2396
2383
|
classes?: ExtractNames<typeof useClasses_43>;
|
|
2397
|
-
onThumbnailClick?: (event:
|
|
2384
|
+
onThumbnailClick?: (event: React.MouseEvent<HTMLButtonElement>, index: number) => void;
|
|
2398
2385
|
thumbnailProps?: Partial<HvButtonProps>;
|
|
2399
2386
|
showDots?: boolean;
|
|
2400
2387
|
renderThumbnail?: (index: number) => React.ReactNode;
|
|
@@ -2770,7 +2757,7 @@ export declare interface HvControlsProps extends HvBaseProps {
|
|
|
2770
2757
|
/**
|
|
2771
2758
|
* Callback called when the view switcher button is pressed
|
|
2772
2759
|
*/
|
|
2773
|
-
onViewChange?: (event:
|
|
2760
|
+
onViewChange?: (event: React.MouseEvent<HTMLButtonElement>, id: string) => void;
|
|
2774
2761
|
/**
|
|
2775
2762
|
* if `true` the button to switch views is not rendered
|
|
2776
2763
|
*/
|
|
@@ -3155,7 +3142,7 @@ declare interface HvDropdownListProps {
|
|
|
3155
3142
|
/**
|
|
3156
3143
|
* A function to be executed whenever the Cancel button is activated.
|
|
3157
3144
|
*/
|
|
3158
|
-
onCancel: (event:
|
|
3145
|
+
onCancel: (event: React.MouseEvent) => void;
|
|
3159
3146
|
/**
|
|
3160
3147
|
* An object containing all the labels for the dropdown.
|
|
3161
3148
|
*/
|
|
@@ -3673,7 +3660,7 @@ export declare const HvFocus: ({ classes: classesProp, children, configuration,
|
|
|
3673
3660
|
export declare type HvFocusClasses = ExtractNames<typeof useClasses_2>;
|
|
3674
3661
|
|
|
3675
3662
|
export declare interface HvFocusProps extends HvBaseProps<HTMLElement, "children"> {
|
|
3676
|
-
children:
|
|
3663
|
+
children: React.ReactElement;
|
|
3677
3664
|
/** Extra configuration for the child element. */
|
|
3678
3665
|
configuration?: {
|
|
3679
3666
|
tabIndex?: number;
|
|
@@ -3685,7 +3672,7 @@ export declare interface HvFocusProps extends HvBaseProps<HTMLElement, "children
|
|
|
3685
3672
|
/** Whether the focus is disabled. */
|
|
3686
3673
|
disabled?: boolean;
|
|
3687
3674
|
/** The reference to the root element to hold all Focus' context. */
|
|
3688
|
-
rootRef?: RefObject<HTMLElement>;
|
|
3675
|
+
rootRef?: React.RefObject<HTMLElement>;
|
|
3689
3676
|
/** Show focus when click element. v */
|
|
3690
3677
|
focusOnClick?: boolean;
|
|
3691
3678
|
/** Show focus when click element. v */
|
|
@@ -4016,7 +4003,7 @@ declare type HvHeaderMenuBarClasses = ExtractNames<typeof useClasses_78>;
|
|
|
4016
4003
|
declare interface HvHeaderMenuBarProps extends HvBaseProps<HTMLDivElement, "onClick"> {
|
|
4017
4004
|
data: HvHeaderNavigationItemProp[];
|
|
4018
4005
|
type?: BarProps["type"];
|
|
4019
|
-
onClick?: (event:
|
|
4006
|
+
onClick?: (event: React.MouseEvent, selection: HvHeaderNavigationItemProp) => void;
|
|
4020
4007
|
levels: number;
|
|
4021
4008
|
currentLevel: number;
|
|
4022
4009
|
classes?: HvHeaderMenuBarClasses;
|
|
@@ -4029,7 +4016,7 @@ declare type HvHeaderMenuItemClasses = ExtractNames<typeof useClasses_79>;
|
|
|
4029
4016
|
declare interface HvHeaderMenuItemProps extends HvBaseProps<HTMLDivElement, "onClick"> {
|
|
4030
4017
|
item: HvHeaderNavigationItemProp;
|
|
4031
4018
|
type?: string;
|
|
4032
|
-
onClick?: (event:
|
|
4019
|
+
onClick?: (event: React.MouseEvent, selection: HvHeaderNavigationItemProp) => void;
|
|
4033
4020
|
levels: number;
|
|
4034
4021
|
currentLevel: number;
|
|
4035
4022
|
classes?: HvHeaderMenuItemClasses;
|
|
@@ -4051,7 +4038,7 @@ export declare interface HvHeaderNavigationItemProp {
|
|
|
4051
4038
|
export declare interface HvHeaderNavigationProps extends HvBaseProps<HTMLDivElement, "onClick"> {
|
|
4052
4039
|
data: HvHeaderNavigationItemProp[];
|
|
4053
4040
|
selected?: string;
|
|
4054
|
-
onClick?: (event:
|
|
4041
|
+
onClick?: (event: React.MouseEvent, selection: HvHeaderNavigationItemProp) => void;
|
|
4055
4042
|
classes?: HvHeaderNavigationClasses;
|
|
4056
4043
|
/**
|
|
4057
4044
|
* The number of levels to show: the first level (1) or the first and second level (2).
|
|
@@ -4161,13 +4148,13 @@ export declare interface HvInlineEditorProps extends HvBaseProps<HTMLDivElement,
|
|
|
4161
4148
|
/** Whether the Edit icon should always be visible */
|
|
4162
4149
|
showIcon?: boolean;
|
|
4163
4150
|
/** Component to use as the input. The component "inherit" from `HvBaseInput` (such as `HvInput` or `HvTextArea`) */
|
|
4164
|
-
component?:
|
|
4151
|
+
component?: React.ElementType;
|
|
4165
4152
|
/** Variant of the HvTypography to display */
|
|
4166
4153
|
variant?: HvTypographyVariants;
|
|
4167
4154
|
/** Called when the input is blurred. */
|
|
4168
|
-
onBlur?: (event:
|
|
4155
|
+
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement | HTMLInputElement>, value: string) => void;
|
|
4169
4156
|
/** Called when the input value changes. */
|
|
4170
|
-
onChange?: (event:
|
|
4157
|
+
onChange?: (event: React.SyntheticEvent, value: string) => void;
|
|
4171
4158
|
/** Props passed to the HvButton component */
|
|
4172
4159
|
buttonProps?: HvButtonProps;
|
|
4173
4160
|
/** Props passed to the HvTypography text component */
|
|
@@ -4183,7 +4170,7 @@ export declare interface HvInlineEditorProps extends HvBaseProps<HTMLDivElement,
|
|
|
4183
4170
|
/**
|
|
4184
4171
|
* A text input box is a graphical control element intended to enable the user to input text information to be used by the software.
|
|
4185
4172
|
*/
|
|
4186
|
-
export declare const HvInput:
|
|
4173
|
+
export declare const HvInput: ForwardRefExoticComponent<HvInputProps & RefAttributes<InputElement>>;
|
|
4187
4174
|
|
|
4188
4175
|
export declare type HvInputClasses = ExtractNames<typeof useClasses_45>;
|
|
4189
4176
|
|
|
@@ -4202,9 +4189,9 @@ export declare interface HvInputProps extends HvBaseProps<HTMLElement, "onChange
|
|
|
4202
4189
|
* The form element must be labeled for accessibility reasons.
|
|
4203
4190
|
* If not provided, an aria-label or aria-labelledby must be inputted via inputProps.
|
|
4204
4191
|
*/
|
|
4205
|
-
label?:
|
|
4192
|
+
label?: React.ReactNode;
|
|
4206
4193
|
/** Provide additional descriptive text for the form element. */
|
|
4207
|
-
description?:
|
|
4194
|
+
description?: React.ReactNode;
|
|
4208
4195
|
/** Indicates that the form element is disabled. */
|
|
4209
4196
|
disabled?: boolean;
|
|
4210
4197
|
/** Indicates that the form element is not editable. */
|
|
@@ -4232,24 +4219,24 @@ export declare interface HvInputProps extends HvBaseProps<HTMLElement, "onChange
|
|
|
4232
4219
|
*
|
|
4233
4220
|
* Also called when the search button is clicked (when type is "search").
|
|
4234
4221
|
*/
|
|
4235
|
-
onEnter?: (event:
|
|
4222
|
+
onEnter?: (event: React.KeyboardEvent<InputElement> | React.MouseEvent, value: string) => void;
|
|
4236
4223
|
/**
|
|
4237
4224
|
* The function that will be executed onBlur, allows checking the validation state,
|
|
4238
4225
|
* it receives the value and the validation state.
|
|
4239
4226
|
*/
|
|
4240
|
-
onBlur?: (event:
|
|
4227
|
+
onBlur?: (event: React.FocusEvent<InputElement>, value: string, validationState: HvInputValidity) => void;
|
|
4241
4228
|
/**
|
|
4242
4229
|
* The function that will be executed onBlur, allows checking the value state,
|
|
4243
4230
|
* it receives the value.
|
|
4244
4231
|
*/
|
|
4245
|
-
onFocus?: (event:
|
|
4232
|
+
onFocus?: (event: React.FocusEvent<InputElement>, value: string) => void;
|
|
4246
4233
|
/**
|
|
4247
4234
|
* The function that will be executed onKeyDown, allows checking the value state,
|
|
4248
4235
|
* it receives the event and value.
|
|
4249
4236
|
*/
|
|
4250
|
-
onKeyDown?: (event:
|
|
4237
|
+
onKeyDown?: (event: React.KeyboardEvent<InputElement> | React.MouseEvent, value: string) => void;
|
|
4251
4238
|
/** The input type. */
|
|
4252
|
-
type?: HTMLInputTypeAttribute;
|
|
4239
|
+
type?: React.HTMLInputTypeAttribute;
|
|
4253
4240
|
/** The placeholder value of the input. */
|
|
4254
4241
|
placeholder?: string;
|
|
4255
4242
|
/** Internal labels?. */
|
|
@@ -4287,7 +4274,7 @@ export declare interface HvInputProps extends HvBaseProps<HTMLElement, "onChange
|
|
|
4287
4274
|
*/
|
|
4288
4275
|
showValidationIcon?: boolean;
|
|
4289
4276
|
/** A custom icon to be added into the input. */
|
|
4290
|
-
endAdornment?:
|
|
4277
|
+
endAdornment?: React.ReactNode;
|
|
4291
4278
|
/** The maximum allowed length of the characters, if this value is null no check will be performed. */
|
|
4292
4279
|
maxCharQuantity?: number;
|
|
4293
4280
|
/** The minimum allowed length of the characters, if this value is null no check will be perform. */
|
|
@@ -4432,7 +4419,7 @@ export declare type HvListClasses = ExtractNames<typeof useClasses_84>;
|
|
|
4432
4419
|
* The simple list is for continuous <b>vertical indexes of text or icons+text</b>. The content of these lists must be simple: ideally simples fields.
|
|
4433
4420
|
* This pattern is ideal for <b>selections</b>. It should be used inside a HvPanel.
|
|
4434
4421
|
*/
|
|
4435
|
-
export declare const HvListContainer:
|
|
4422
|
+
export declare const HvListContainer: ForwardRefExoticComponent<HvListContainerProps & RefAttributes<HTMLUListElement>>;
|
|
4436
4423
|
|
|
4437
4424
|
export declare type HvListContainerClasses = ExtractNames<typeof useClasses_3>;
|
|
4438
4425
|
|
|
@@ -4455,7 +4442,7 @@ export declare interface HvListContainerProps extends HvBaseProps<HTMLUListEleme
|
|
|
4455
4442
|
/**
|
|
4456
4443
|
* ListItem description/documentation paragraph
|
|
4457
4444
|
*/
|
|
4458
|
-
export declare const HvListItem:
|
|
4445
|
+
export declare const HvListItem: ForwardRefExoticComponent<HvListItemProps & RefAttributes<any>>;
|
|
4459
4446
|
|
|
4460
4447
|
export declare type HvListItemClasses = ExtractNames<typeof useClasses_4>;
|
|
4461
4448
|
|
|
@@ -4489,7 +4476,7 @@ export declare interface HvListItemProps extends HvBaseProps<HTMLLIElement> {
|
|
|
4489
4476
|
* or a selector (preventing the double focus ring, propagating the checked and disabled states and wiring the onChange event).
|
|
4490
4477
|
* If unwanted, the element should be placed directly as a child.
|
|
4491
4478
|
*/
|
|
4492
|
-
startAdornment?:
|
|
4479
|
+
startAdornment?: React.ReactNode;
|
|
4493
4480
|
/**
|
|
4494
4481
|
* Element placed after the children and aligned next to the margin.
|
|
4495
4482
|
* Also removes the right padding (gutter).
|
|
@@ -4497,7 +4484,7 @@ export declare interface HvListItemProps extends HvBaseProps<HTMLLIElement> {
|
|
|
4497
4484
|
* Some modifications are applied, assuming that it is an icon (changing the color when the item is disabled).
|
|
4498
4485
|
* If unwanted, the element should be placed directly as a child.
|
|
4499
4486
|
*/
|
|
4500
|
-
endAdornment?:
|
|
4487
|
+
endAdornment?: React.ReactNode;
|
|
4501
4488
|
/** The value to be set on the 'li' element */
|
|
4502
4489
|
value?: any;
|
|
4503
4490
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
@@ -4650,7 +4637,7 @@ export declare interface HvNotistackSnackMessageProps extends OptionsObject {
|
|
|
4650
4637
|
/** class name to apply on the root node */
|
|
4651
4638
|
className?: string;
|
|
4652
4639
|
/** Your component tree. */
|
|
4653
|
-
message?: ReactNode;
|
|
4640
|
+
message?: React.ReactNode;
|
|
4654
4641
|
/** Variant of the snackbar. */
|
|
4655
4642
|
variant?: HvSnackbarVariant;
|
|
4656
4643
|
/** Extra values to pass to the snackbar. */
|
|
@@ -4735,9 +4722,9 @@ export declare interface HvPaginationProps extends HvBaseProps {
|
|
|
4735
4722
|
/** An object containing all the labels for the component. */
|
|
4736
4723
|
labels?: HvPaginationLabels;
|
|
4737
4724
|
/** Other props to show page component. */
|
|
4738
|
-
showPageProps?: HTMLAttributes<HTMLDivElement>;
|
|
4725
|
+
showPageProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
4739
4726
|
/** Other props to pagination component. */
|
|
4740
|
-
navigationProps?: HTMLAttributes<HTMLDivElement>;
|
|
4727
|
+
navigationProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
4741
4728
|
/** Extra properties passed to the input component representing the current pages. */
|
|
4742
4729
|
currentPageInputProps?: HvInputProps;
|
|
4743
4730
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
@@ -4815,7 +4802,7 @@ export declare interface HvProviderProps {
|
|
|
4815
4802
|
/**
|
|
4816
4803
|
* Your component tree.
|
|
4817
4804
|
*/
|
|
4818
|
-
children?:
|
|
4805
|
+
children?: React.ReactNode;
|
|
4819
4806
|
/**
|
|
4820
4807
|
* Id of your root element.
|
|
4821
4808
|
*/
|
|
@@ -5254,7 +5241,7 @@ export declare type HvQueryBuilderRenderers = Record<string, ValueRenderer>;
|
|
|
5254
5241
|
* Individual use of radio buttons, at least uncontrolled, is unadvised as React state management doesn't
|
|
5255
5242
|
* respond to the browser's native management of radio inputs checked state.
|
|
5256
5243
|
*/
|
|
5257
|
-
export declare const HvRadio:
|
|
5244
|
+
export declare const HvRadio: ForwardRefExoticComponent<Omit<HvRadioProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
5258
5245
|
|
|
5259
5246
|
export declare type HvRadioClasses = ExtractNames<typeof useClasses_93>;
|
|
5260
5247
|
|
|
@@ -5360,7 +5347,7 @@ export declare interface HvRadioProps extends Omit<RadioProps, "onChange" | "cla
|
|
|
5360
5347
|
* The form element must be labeled for accessibility reasons.
|
|
5361
5348
|
* If not provided, an aria-label or aria-labelledby must be provided.
|
|
5362
5349
|
*/
|
|
5363
|
-
label?:
|
|
5350
|
+
label?: React.ReactNode;
|
|
5364
5351
|
/**
|
|
5365
5352
|
* Properties passed on to the label element.
|
|
5366
5353
|
*/
|
|
@@ -5412,7 +5399,7 @@ export declare interface HvRadioProps extends Omit<RadioProps, "onChange" | "cla
|
|
|
5412
5399
|
/**
|
|
5413
5400
|
* The callback fired when the radio button is pressed.
|
|
5414
5401
|
*/
|
|
5415
|
-
onChange?: (event:
|
|
5402
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean, value: any) => void;
|
|
5416
5403
|
/**
|
|
5417
5404
|
* Whether the selector should use semantic colors.
|
|
5418
5405
|
*/
|
|
@@ -5420,12 +5407,12 @@ export declare interface HvRadioProps extends Omit<RadioProps, "onChange" | "cla
|
|
|
5420
5407
|
/**
|
|
5421
5408
|
* Properties passed on to the input element.
|
|
5422
5409
|
*/
|
|
5423
|
-
inputProps?:
|
|
5410
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
5424
5411
|
/**
|
|
5425
5412
|
* Callback fired when the component is focused with a keyboard.
|
|
5426
5413
|
* We trigger a `onFocus` callback too.
|
|
5427
5414
|
*/
|
|
5428
|
-
onFocusVisible?: (event:
|
|
5415
|
+
onFocusVisible?: (event: React.FocusEvent<any>) => void;
|
|
5429
5416
|
/** @ignore */
|
|
5430
5417
|
ref?: RadioProps["ref"];
|
|
5431
5418
|
/** @ignore */
|
|
@@ -5675,7 +5662,7 @@ export declare interface HvSectionProps extends Omit<HvBaseProps<HTMLDivElement>
|
|
|
5675
5662
|
* <HvOption value="cat">Cat</HvOption>
|
|
5676
5663
|
* </HvSelect>
|
|
5677
5664
|
* */
|
|
5678
|
-
export declare const HvSelect: <OptionValue extends {}, Multiple extends boolean>(props: HvSelectProps<OptionValue, Multiple> &
|
|
5665
|
+
export declare const HvSelect: <OptionValue extends {}, Multiple extends boolean>(props: HvSelectProps<OptionValue, Multiple> & RefAttributes<HTMLButtonElement>) => ReactElement<any, string | JSXElementConstructor<any>> | null;
|
|
5679
5666
|
|
|
5680
5667
|
export declare type HvSelectClasses = ExtractNames<typeof useClasses_11>;
|
|
5681
5668
|
|
|
@@ -5685,7 +5672,7 @@ export declare type HvSelectClasses = ExtractNames<typeof useClasses_11>;
|
|
|
5685
5672
|
* Although it supports multi-selection, DS recommends the use of a selection list
|
|
5686
5673
|
* when it’s clear that the user can only select just one option from the range provided.
|
|
5687
5674
|
*/
|
|
5688
|
-
export declare const HvSelectionList:
|
|
5675
|
+
export declare const HvSelectionList: ForwardRefExoticComponent<HvSelectionListProps & RefAttributes<HTMLUListElement>>;
|
|
5689
5676
|
|
|
5690
5677
|
export declare type HvSelectionListClasses = ExtractNames<typeof useClasses_14>;
|
|
5691
5678
|
|
|
@@ -5709,9 +5696,9 @@ export declare interface HvSelectionListProps extends HvBaseProps<HTMLUListEleme
|
|
|
5709
5696
|
* The form element must be labeled for accessibility reasons.
|
|
5710
5697
|
* If not provided, an aria-label or aria-labelledby must be provided instead.
|
|
5711
5698
|
*/
|
|
5712
|
-
label?:
|
|
5699
|
+
label?: React.ReactNode;
|
|
5713
5700
|
/** Provide additional descriptive text for the form element. */
|
|
5714
|
-
description?:
|
|
5701
|
+
description?: React.ReactNode;
|
|
5715
5702
|
/** Indicates that the form element is disabled. If `true` the state is propagated to the children list items. */
|
|
5716
5703
|
disabled?: boolean;
|
|
5717
5704
|
/** Indicates that the form element is not editable. */
|
|
@@ -5740,14 +5727,14 @@ export declare interface HvSelectionListProps extends HvBaseProps<HTMLUListEleme
|
|
|
5740
5727
|
/** Indicates whether the list orientation is horizontal or vertical. Defaults to vertical. */
|
|
5741
5728
|
orientation?: "vertical" | "horizontal";
|
|
5742
5729
|
/** The callback fired when the value changes. */
|
|
5743
|
-
onChange?: (event:
|
|
5730
|
+
onChange?: (event: React.MouseEvent, value: any) => void;
|
|
5744
5731
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5745
5732
|
classes?: HvSelectionListClasses;
|
|
5746
5733
|
}
|
|
5747
5734
|
|
|
5748
5735
|
export declare interface HvSelectProps<OptionValue extends {}, Multiple extends boolean = false> extends Omit<HvFormElementProps, "value" | "defaultValue" | "onChange">, Pick<UseSelectParameters<OptionValue, Multiple>, "name" | "required" | "disabled" | "multiple" | "open" | "defaultOpen" | "value" | "defaultValue" | "buttonRef" | "options" | "getSerializedValue" | "onChange" | "onOpenChange"> {
|
|
5749
5736
|
classes?: HvSelectClasses;
|
|
5750
|
-
placeholder?:
|
|
5737
|
+
placeholder?: React.ReactNode;
|
|
5751
5738
|
autoComplete?: string;
|
|
5752
5739
|
/** Whether the width of the select panel can vary independently. */
|
|
5753
5740
|
variableWidth?: boolean;
|
|
@@ -5791,10 +5778,34 @@ export declare interface HvSimpleGridProps extends HvBaseProps {
|
|
|
5791
5778
|
|
|
5792
5779
|
export { HvSize }
|
|
5793
5780
|
|
|
5781
|
+
/**
|
|
5782
|
+
* The `HvSkeleton` component is used to create a placeholder element that represents the shape and size of the content that will be loaded.
|
|
5783
|
+
*/
|
|
5784
|
+
export declare const HvSkeleton: (props: HvSkeletonProps) => JSX_3.Element;
|
|
5785
|
+
|
|
5786
|
+
export declare type HvSkeletonClasses = ExtractNames<typeof useClasses_128>;
|
|
5787
|
+
|
|
5788
|
+
export declare interface HvSkeletonProps extends HvBaseProps {
|
|
5789
|
+
/** Whether the skeleton element is hidden or not. */
|
|
5790
|
+
hidden?: boolean;
|
|
5791
|
+
/** The type of skeleton element. @default "text" */
|
|
5792
|
+
variant?: "circle" | "square" | "text";
|
|
5793
|
+
/** The animation the skeleton element will display. @default "pulse" */
|
|
5794
|
+
animation?: "pulse" | "wave";
|
|
5795
|
+
/** The width of the skeleton element. */
|
|
5796
|
+
width?: React.CSSProperties["width"];
|
|
5797
|
+
/** The height of the skeleton element. */
|
|
5798
|
+
height?: React.CSSProperties["height"];
|
|
5799
|
+
/** The url for a placeholder image to use on the skeleton element. */
|
|
5800
|
+
backgroundImage?: string;
|
|
5801
|
+
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
5802
|
+
classes?: HvSkeletonClasses;
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5794
5805
|
/**
|
|
5795
5806
|
* Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.
|
|
5796
5807
|
*/
|
|
5797
|
-
export declare const HvSlider:
|
|
5808
|
+
export declare const HvSlider: ForwardRefExoticComponent<HvSliderProps & RefAttributes<SliderRef>>;
|
|
5798
5809
|
|
|
5799
5810
|
export declare type HvSliderClasses = ExtractNames<typeof useClasses_100>;
|
|
5800
5811
|
|
|
@@ -5808,7 +5819,7 @@ export declare interface HvSliderProps extends HvBaseProps<HTMLDivElement, "onCh
|
|
|
5808
5819
|
*
|
|
5809
5820
|
* If not provided, an aria-label or aria-labelledby must be inputted via sliderProps.
|
|
5810
5821
|
*/
|
|
5811
|
-
label?:
|
|
5822
|
+
label?: React.ReactNode;
|
|
5812
5823
|
/**
|
|
5813
5824
|
* Indicates that the slider is disabled.
|
|
5814
5825
|
*/
|
|
@@ -5845,7 +5856,7 @@ export declare interface HvSliderProps extends HvBaseProps<HTMLDivElement, "onCh
|
|
|
5845
5856
|
/**
|
|
5846
5857
|
* The error message to show when `status` is "invalid".
|
|
5847
5858
|
*/
|
|
5848
|
-
statusMessage?:
|
|
5859
|
+
statusMessage?: React.ReactNode;
|
|
5849
5860
|
/**
|
|
5850
5861
|
* The values array to apply to the component
|
|
5851
5862
|
*/
|
|
@@ -5880,7 +5891,7 @@ export declare interface HvSliderProps extends HvBaseProps<HTMLDivElement, "onCh
|
|
|
5880
5891
|
/**
|
|
5881
5892
|
* The function executed after a blur ocurred in the slider.
|
|
5882
5893
|
*/
|
|
5883
|
-
onBlur?: (event:
|
|
5894
|
+
onBlur?: (event: React.FocusEvent, knobsValues: number[], status?: HvFormStatus | HvFormStatus[]) => void;
|
|
5884
5895
|
/**
|
|
5885
5896
|
* The separation in points between marks.
|
|
5886
5897
|
* example: if 10 divisions and a markstep of 2 there will be 5 marks.
|
|
@@ -5906,12 +5917,12 @@ export declare interface HvSliderProps extends HvBaseProps<HTMLDivElement, "onCh
|
|
|
5906
5917
|
* A formatting function used to add format to the marks in the track,
|
|
5907
5918
|
* the function receives the mark text
|
|
5908
5919
|
*/
|
|
5909
|
-
formatMark?: (label:
|
|
5920
|
+
formatMark?: (label: React.ReactNode) => React.ReactNode;
|
|
5910
5921
|
/**
|
|
5911
5922
|
* A formatting function used to add format to the tooltip in the track,
|
|
5912
5923
|
* the function receives the mark text
|
|
5913
5924
|
*/
|
|
5914
|
-
formatTooltip?: (label:
|
|
5925
|
+
formatTooltip?: (label: React.ReactNode) => React.ReactNode;
|
|
5915
5926
|
/**
|
|
5916
5927
|
* If `true` the knobs can't have the same value, if `false` knobs can have the same value.
|
|
5917
5928
|
*/
|
|
@@ -5923,7 +5934,7 @@ export declare interface HvSliderProps extends HvBaseProps<HTMLDivElement, "onCh
|
|
|
5923
5934
|
/**
|
|
5924
5935
|
* Attributes applied to the knob element.
|
|
5925
5936
|
*/
|
|
5926
|
-
knobProps?:
|
|
5937
|
+
knobProps?: React.HTMLAttributes<HTMLDivElement>[];
|
|
5927
5938
|
/**
|
|
5928
5939
|
* The classes object to be applied into the root object.
|
|
5929
5940
|
*/
|
|
@@ -5977,7 +5988,7 @@ export declare interface HvSnackbarProps extends Omit<SnackbarProps, "action" |
|
|
|
5977
5988
|
* Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop.
|
|
5978
5989
|
* The reason parameter can optionally be used to control the response to onClose, for example ignoring click away.
|
|
5979
5990
|
* */
|
|
5980
|
-
onClose?: (
|
|
5991
|
+
onClose?: (event: Event | React.SyntheticEvent<any, Event>, reason: SnackbarCloseReason) => void;
|
|
5981
5992
|
/** The message to display. */
|
|
5982
5993
|
label?: React.ReactNode;
|
|
5983
5994
|
/**
|
|
@@ -6066,7 +6077,7 @@ export declare interface HvStackProps extends HvBaseProps {
|
|
|
6066
6077
|
* - If `true` the Material-UI Divider component will be used.
|
|
6067
6078
|
* - If a React node is passed then the custom divider will be used.
|
|
6068
6079
|
*/
|
|
6069
|
-
divider?: boolean |
|
|
6080
|
+
divider?: boolean | React.ReactNode;
|
|
6070
6081
|
/** The properties to pass on to the Material-UI component. */
|
|
6071
6082
|
dividerProps?: DividerProps;
|
|
6072
6083
|
/** Sets whether or not there should be arrow navigation between the stack elements. */
|
|
@@ -6079,12 +6090,12 @@ export declare const hvStringFallback: (value: any) => string;
|
|
|
6079
6090
|
|
|
6080
6091
|
export declare interface HvSuggestion {
|
|
6081
6092
|
id?: string;
|
|
6082
|
-
label:
|
|
6093
|
+
label: React.ReactNode;
|
|
6083
6094
|
value?: string;
|
|
6084
6095
|
disabled?: boolean;
|
|
6085
6096
|
}
|
|
6086
6097
|
|
|
6087
|
-
export declare const HvSuggestions:
|
|
6098
|
+
export declare const HvSuggestions: ForwardRefExoticComponent<HvSuggestionsProps & RefAttributes<unknown>>;
|
|
6088
6099
|
|
|
6089
6100
|
export declare type HvSuggestionsClasses = ExtractNames<typeof useClasses_15>;
|
|
6090
6101
|
|
|
@@ -6096,7 +6107,7 @@ export declare interface HvSuggestionsProps extends HvBaseProps {
|
|
|
6096
6107
|
/** Array of { id, label, ...others } values to display in the suggestion list */
|
|
6097
6108
|
suggestionValues?: HvSuggestion[] | null;
|
|
6098
6109
|
/** Function called when a suggestion is selected */
|
|
6099
|
-
onSuggestionSelected?: (event:
|
|
6110
|
+
onSuggestionSelected?: (event: React.MouseEvent, value: HvSuggestion) => void;
|
|
6100
6111
|
/** Function called when suggestion list is closed */
|
|
6101
6112
|
onClose?: (event: HvClickOutsideEvent) => void;
|
|
6102
6113
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
@@ -6115,7 +6126,7 @@ export declare type HvSupportColors = Record<HvSupportColorKeys, string>;
|
|
|
6115
6126
|
* Use when two states are <b>opposite</b> and to trigger immediate
|
|
6116
6127
|
* changes in the system.
|
|
6117
6128
|
*/
|
|
6118
|
-
export declare const HvSwitch:
|
|
6129
|
+
export declare const HvSwitch: ForwardRefExoticComponent<Omit<HvSwitchProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
6119
6130
|
|
|
6120
6131
|
export declare type HvSwitchClasses = ExtractNames<typeof useClasses_105>;
|
|
6121
6132
|
|
|
@@ -6162,7 +6173,7 @@ export declare interface HvSwitchProps extends Omit<SwitchProps, "onChange" | "c
|
|
|
6162
6173
|
* The form element must be labeled for accessibility reasons.
|
|
6163
6174
|
* If not provided, an aria-label or aria-labelledby must be inputted via inputProps.
|
|
6164
6175
|
*/
|
|
6165
|
-
label?:
|
|
6176
|
+
label?: React.ReactNode;
|
|
6166
6177
|
/**
|
|
6167
6178
|
* Properties passed on to the label element.
|
|
6168
6179
|
*/
|
|
@@ -6213,11 +6224,11 @@ export declare interface HvSwitchProps extends Omit<SwitchProps, "onChange" | "c
|
|
|
6213
6224
|
/**
|
|
6214
6225
|
* The callback fired when the switch is pressed.
|
|
6215
6226
|
*/
|
|
6216
|
-
onChange?: (event:
|
|
6227
|
+
onChange?: (event: React.ChangeEvent, checked: boolean, value: any) => void;
|
|
6217
6228
|
/**
|
|
6218
6229
|
* Properties passed on to the input element.
|
|
6219
6230
|
*/
|
|
6220
|
-
inputProps?:
|
|
6231
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
6221
6232
|
/** @ignore */
|
|
6222
6233
|
ref?: SwitchProps["ref"];
|
|
6223
6234
|
/** @ignore */
|
|
@@ -6244,7 +6255,7 @@ export declare const HvTable: ForwardRefExoticComponent<HvTableProps & RefAttrib
|
|
|
6244
6255
|
* HvTableBody acts as a `tbody` element.
|
|
6245
6256
|
* `HvTableCell` and `HvTableRow` elements in it inherit body-specific styles
|
|
6246
6257
|
*/
|
|
6247
|
-
export declare const HvTableBody:
|
|
6258
|
+
export declare const HvTableBody: ForwardRefExoticComponent<HvTableBodyProps & RefAttributes<HTMLElement>>;
|
|
6248
6259
|
|
|
6249
6260
|
export declare type HvTableBodyClasses = ExtractNames<typeof useClasses_108>;
|
|
6250
6261
|
|
|
@@ -6252,12 +6263,12 @@ export declare interface HvTableBodyProps extends HvBaseProps<HTMLTableSectionEl
|
|
|
6252
6263
|
/**
|
|
6253
6264
|
* Content to be rendered
|
|
6254
6265
|
*/
|
|
6255
|
-
children:
|
|
6266
|
+
children: React.ReactNode;
|
|
6256
6267
|
/**
|
|
6257
6268
|
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
6258
6269
|
* Defaults to tbody.
|
|
6259
6270
|
*/
|
|
6260
|
-
component?:
|
|
6271
|
+
component?: React.ElementType;
|
|
6261
6272
|
/** Sets whether or not there should be arrow navigation between the table rows */
|
|
6262
6273
|
withNavigation?: boolean;
|
|
6263
6274
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
@@ -6282,13 +6293,13 @@ export declare type HvTableCellAlign = "center" | "inherit" | "justify" | "left"
|
|
|
6282
6293
|
|
|
6283
6294
|
export declare type HvTableCellClasses = ExtractNames<typeof useClasses_51>;
|
|
6284
6295
|
|
|
6285
|
-
export declare interface HvTableCellProps extends Omit<TdHTMLAttributes<HTMLTableCellElement>, "align"> {
|
|
6296
|
+
export declare interface HvTableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, "align"> {
|
|
6286
6297
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to td. */
|
|
6287
6298
|
component?: React.ElementType;
|
|
6288
6299
|
/** Content to be rendered */
|
|
6289
6300
|
children?: React.ReactNode;
|
|
6290
6301
|
/** Inline styles to be applied to the root element. */
|
|
6291
|
-
style?: CSSProperties;
|
|
6302
|
+
style?: React.CSSProperties;
|
|
6292
6303
|
/** Set the text-align on the table cell content. */
|
|
6293
6304
|
align?: HvTableCellAlign;
|
|
6294
6305
|
/** Sets the cell's variant. */
|
|
@@ -6367,7 +6378,7 @@ export declare const HvTableHeader: ForwardRefExoticComponent<HvTableHeaderProps
|
|
|
6367
6378
|
|
|
6368
6379
|
export declare type HvTableHeaderClasses = ExtractNames<typeof useClasses_53>;
|
|
6369
6380
|
|
|
6370
|
-
export declare interface HvTableHeaderProps extends Omit<ThHTMLAttributes<HTMLTableCellElement>, "align"> {
|
|
6381
|
+
export declare interface HvTableHeaderProps extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, "align"> {
|
|
6371
6382
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */
|
|
6372
6383
|
component?: React.ElementType;
|
|
6373
6384
|
/** Content to be rendered */
|
|
@@ -6403,7 +6414,7 @@ export declare interface HvTableHeaderProps extends Omit<ThHTMLAttributes<HTMLTa
|
|
|
6403
6414
|
/** Whether or not the cell is being resized */
|
|
6404
6415
|
resizing?: boolean;
|
|
6405
6416
|
/** The resize props injected in the resize handler */
|
|
6406
|
-
resizerProps?: HTMLAttributes<HTMLDivElement>;
|
|
6417
|
+
resizerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
6407
6418
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
6408
6419
|
classes?: HvTableHeaderClasses;
|
|
6409
6420
|
/** Extra props to be passed onto the sort button in the header. */
|
|
@@ -6481,7 +6492,7 @@ export { HvTablePluginHook }
|
|
|
6481
6492
|
|
|
6482
6493
|
declare type HvTablePropGetter<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvPropGetter<D, H, HvUseTableProps>;
|
|
6483
6494
|
|
|
6484
|
-
export declare interface HvTableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
6495
|
+
export declare interface HvTableProps extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
6485
6496
|
/**
|
|
6486
6497
|
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
6487
6498
|
* Defaults to `table`.
|
|
@@ -6590,7 +6601,7 @@ export declare interface HvTabsProps extends Omit<TabsProps, "onChange"> {
|
|
|
6590
6601
|
*
|
|
6591
6602
|
* It leverages the Chip component from Material UI
|
|
6592
6603
|
*/
|
|
6593
|
-
export declare const HvTag:
|
|
6604
|
+
export declare const HvTag: ForwardRefExoticComponent<Omit<HvTagProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
6594
6605
|
|
|
6595
6606
|
export declare type HvTagClasses = ExtractNames<typeof useClasses_110>;
|
|
6596
6607
|
|
|
@@ -6598,7 +6609,7 @@ export declare function hvTagColumn<D extends object = Record<string, unknown>,
|
|
|
6598
6609
|
|
|
6599
6610
|
export declare interface HvTagProps extends Omit<ChipProps, "color" | "classes" | "onSelect"> {
|
|
6600
6611
|
/** The label of the tag element. */
|
|
6601
|
-
label?:
|
|
6612
|
+
label?: React.ReactNode;
|
|
6602
6613
|
/** Indicates that the form element is disabled. */
|
|
6603
6614
|
disabled?: boolean;
|
|
6604
6615
|
/** The type of the tag element. A tag can be of semantic or categoric type. */
|
|
@@ -6606,20 +6617,20 @@ export declare interface HvTagProps extends Omit<ChipProps, "color" | "classes"
|
|
|
6606
6617
|
/** Background color to be applied to the tag */
|
|
6607
6618
|
color?: HvColorAny;
|
|
6608
6619
|
/** Icon used to customize the delete icon in the Chip element */
|
|
6609
|
-
deleteIcon?:
|
|
6620
|
+
deleteIcon?: React.ReactElement;
|
|
6610
6621
|
/**
|
|
6611
6622
|
* The callback fired when the delete icon is pressed.
|
|
6612
6623
|
* This function has to be provided to the component, in order to render the delete icon
|
|
6613
6624
|
* */
|
|
6614
|
-
onDelete?: (event:
|
|
6625
|
+
onDelete?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
6615
6626
|
/** Callback triggered when any item is clicked. */
|
|
6616
|
-
onClick?: (event:
|
|
6627
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, selected?: boolean) => void;
|
|
6617
6628
|
/** Aria properties to apply to delete button in tag
|
|
6618
6629
|
* @deprecated no longer used
|
|
6619
6630
|
*/
|
|
6620
6631
|
deleteButtonArialLabel?: string;
|
|
6621
6632
|
/** Props to apply to delete icon */
|
|
6622
|
-
deleteButtonProps?: HTMLAttributes<HTMLDivElement>;
|
|
6633
|
+
deleteButtonProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
6623
6634
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
6624
6635
|
classes?: HvTagClasses;
|
|
6625
6636
|
/** @ignore */
|
|
@@ -6637,7 +6648,7 @@ export declare interface HvTagProps extends Omit<ChipProps, "color" | "classes"
|
|
|
6637
6648
|
/**
|
|
6638
6649
|
* A tags input is a single or multiline control that allows the input of tags.
|
|
6639
6650
|
*/
|
|
6640
|
-
export declare const HvTagsInput:
|
|
6651
|
+
export declare const HvTagsInput: ForwardRefExoticComponent<HvTagsInputProps & RefAttributes<HTMLUListElement>>;
|
|
6641
6652
|
|
|
6642
6653
|
export declare type HvTagsInputClasses = ExtractNames<typeof useClasses_112>;
|
|
6643
6654
|
|
|
@@ -6653,9 +6664,9 @@ export declare interface HvTagsInputProps extends HvBaseProps<HTMLElement, "onCh
|
|
|
6653
6664
|
* The form element must be labeled for accessibility reasons.
|
|
6654
6665
|
* If not provided, an aria-label or aria-labelledby must be inputted via inputProps.
|
|
6655
6666
|
*/
|
|
6656
|
-
label?:
|
|
6667
|
+
label?: React.ReactNode;
|
|
6657
6668
|
/** Provide additional descriptive text for the form element. */
|
|
6658
|
-
description?:
|
|
6669
|
+
description?: React.ReactNode;
|
|
6659
6670
|
/** Indicates that the form element is disabled. */
|
|
6660
6671
|
disabled?: boolean;
|
|
6661
6672
|
/** Indicates that the form element is not editable. */
|
|
@@ -6663,15 +6674,15 @@ export declare interface HvTagsInputProps extends HvBaseProps<HTMLElement, "onCh
|
|
|
6663
6674
|
/** Indicates that the form element is required. */
|
|
6664
6675
|
required?: boolean;
|
|
6665
6676
|
/** The function that will be executed onChange. */
|
|
6666
|
-
onChange?: (event:
|
|
6677
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEventHandler<HTMLElement>, value: HvTagProps[]) => void;
|
|
6667
6678
|
/** The function that will be executed when the element is focused. */
|
|
6668
|
-
onFocus?: (event:
|
|
6679
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>, value: string) => void;
|
|
6669
6680
|
/** The function that will be executed when the element is blurred. */
|
|
6670
|
-
onBlur?: (event:
|
|
6681
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>, value: string) => void;
|
|
6671
6682
|
/** The function that will be executed when a tag is deleted. */
|
|
6672
|
-
onDelete?: (event:
|
|
6683
|
+
onDelete?: (event: React.ChangeEvent<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEventHandler<HTMLElement>, value: HvTagProps, index: number) => void;
|
|
6673
6684
|
/** The function that will be executed when a tag is added. */
|
|
6674
|
-
onAdd?: (event:
|
|
6685
|
+
onAdd?: (event: React.ChangeEvent<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLElement, MouseEvent> | React.KeyboardEventHandler<HTMLElement>, value: HvTagProps, index: number) => void;
|
|
6675
6686
|
/** The placeholder value of the input. */
|
|
6676
6687
|
placeholder?: string;
|
|
6677
6688
|
/** If `true` the character counter isn't shown even if maxTagsQuantity is set. */
|
|
@@ -6693,7 +6704,7 @@ export declare interface HvTagsInputProps extends HvBaseProps<HTMLElement, "onCh
|
|
|
6693
6704
|
/** The status of the form element. */
|
|
6694
6705
|
status?: HvFormStatus;
|
|
6695
6706
|
/** The error message to show when `status` is "invalid". */
|
|
6696
|
-
statusMessage?:
|
|
6707
|
+
statusMessage?: React.ReactNode;
|
|
6697
6708
|
/** An Object containing the various texts associated with the input. */
|
|
6698
6709
|
validationMessages?: HvValidationMessages;
|
|
6699
6710
|
/** 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. */
|
|
@@ -7063,7 +7074,7 @@ export declare interface HvTooltipProps extends Omit<TooltipProps, "classes"> {
|
|
|
7063
7074
|
/**
|
|
7064
7075
|
* Node to apply the tooltip.
|
|
7065
7076
|
*/
|
|
7066
|
-
children: ReactElement;
|
|
7077
|
+
children: React.ReactElement;
|
|
7067
7078
|
/**
|
|
7068
7079
|
* Id attribute value of an HTML Element to have the tooltip appended to it.
|
|
7069
7080
|
*/
|
|
@@ -7072,56 +7083,56 @@ export declare interface HvTooltipProps extends Omit<TooltipProps, "classes"> {
|
|
|
7072
7083
|
|
|
7073
7084
|
declare type HvTreeContentClasses = ExtractNames<typeof useClasses_118>;
|
|
7074
7085
|
|
|
7075
|
-
export declare interface HvTreeContentProps extends HTMLAttributes<HTMLElement> {
|
|
7086
|
+
export declare interface HvTreeContentProps extends React.HTMLAttributes<HTMLElement> {
|
|
7076
7087
|
/** className applied to the root element. */
|
|
7077
7088
|
className?: string;
|
|
7078
7089
|
/** Override or extend the styles applied to the component. */
|
|
7079
7090
|
classes?: HvTreeContentClasses;
|
|
7080
7091
|
/** The tree node label. */
|
|
7081
|
-
label?: ReactNode;
|
|
7092
|
+
label?: React.ReactNode;
|
|
7082
7093
|
/** The id of the node. */
|
|
7083
7094
|
nodeId: string;
|
|
7084
7095
|
/** The icon to display next to the tree node's label. */
|
|
7085
|
-
icon?: ReactNode;
|
|
7096
|
+
icon?: React.ReactNode;
|
|
7086
7097
|
/** The icon to display next to the tree node's label. Either an expansion or collapse icon. */
|
|
7087
|
-
expansionIcon?: ReactNode;
|
|
7098
|
+
expansionIcon?: React.ReactNode;
|
|
7088
7099
|
/** The icon to display next to the tree node's label. Either a parent or end icon. */
|
|
7089
|
-
displayIcon?: ReactNode;
|
|
7100
|
+
displayIcon?: React.ReactNode;
|
|
7090
7101
|
}
|
|
7091
7102
|
|
|
7092
7103
|
export declare const HvTreeItem: ForwardRefExoticComponent<HvTreeItemProps & RefAttributes<HTMLLIElement>>;
|
|
7093
7104
|
|
|
7094
7105
|
export declare type HvTreeItemClasses = ExtractNames<typeof useClasses_117>;
|
|
7095
7106
|
|
|
7096
|
-
export declare interface HvTreeItemProps extends HTMLAttributes<HTMLElement> {
|
|
7107
|
+
export declare interface HvTreeItemProps extends React.HTMLAttributes<HTMLElement> {
|
|
7097
7108
|
/** The element id */
|
|
7098
7109
|
id?: string;
|
|
7099
7110
|
/** The id of the node. */
|
|
7100
7111
|
nodeId: string;
|
|
7101
7112
|
/** The tree node label. */
|
|
7102
|
-
label?: ReactNode;
|
|
7113
|
+
label?: React.ReactNode;
|
|
7103
7114
|
/** Override or extend the styles applied to the component. */
|
|
7104
7115
|
classes?: HvTreeItemClasses;
|
|
7105
7116
|
/** If `true`, the node is disabled. */
|
|
7106
7117
|
disabled?: boolean;
|
|
7107
7118
|
/** The icon to display next to the tree node's label. */
|
|
7108
|
-
icon?: ReactNode;
|
|
7119
|
+
icon?: React.ReactNode;
|
|
7109
7120
|
/** The component used for the content node. */
|
|
7110
|
-
ContentComponent?: JSXElementConstructor<HvTreeContentProps>;
|
|
7121
|
+
ContentComponent?: React.JSXElementConstructor<HvTreeContentProps>;
|
|
7111
7122
|
/** Props applied to the content component */
|
|
7112
7123
|
ContentProps?: HvTreeContentProps;
|
|
7113
7124
|
/** The content of the component. */
|
|
7114
|
-
children?: ReactNode;
|
|
7125
|
+
children?: React.ReactNode;
|
|
7115
7126
|
/** className applied to the root element. */
|
|
7116
7127
|
className?: string;
|
|
7117
7128
|
/** The icon used to collapse the node. */
|
|
7118
|
-
collapseIcon?: ReactNode;
|
|
7129
|
+
collapseIcon?: React.ReactNode;
|
|
7119
7130
|
/** The icon displayed next to an end node. */
|
|
7120
|
-
endIcon?: ReactNode;
|
|
7131
|
+
endIcon?: React.ReactNode;
|
|
7121
7132
|
/** The icon used to expand the node. */
|
|
7122
|
-
expandIcon?: ReactNode;
|
|
7133
|
+
expandIcon?: React.ReactNode;
|
|
7123
7134
|
/** The component used for the transition. */
|
|
7124
|
-
TransitionComponent?: JSXElementConstructor<TransitionProps>;
|
|
7135
|
+
TransitionComponent?: React.JSXElementConstructor<TransitionProps>;
|
|
7125
7136
|
/** Props applied to the transition component */
|
|
7126
7137
|
TransitionProps?: TransitionProps;
|
|
7127
7138
|
}
|
|
@@ -7326,7 +7337,7 @@ export declare interface HvVerticalNavigationActionProps {
|
|
|
7326
7337
|
/**
|
|
7327
7338
|
* Callback called when clicked.
|
|
7328
7339
|
*/
|
|
7329
|
-
onClick?: MouseEventHandler<HTMLElement>;
|
|
7340
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
7330
7341
|
}
|
|
7331
7342
|
|
|
7332
7343
|
export declare const HvVerticalNavigationActions: ({ className, classes: classesProp, id, children, ...others }: HvVerticalNavigationActionsProps) => JSX_3.Element;
|
|
@@ -7394,22 +7405,14 @@ export declare interface HvVerticalNavigationHeaderProps {
|
|
|
7394
7405
|
/**
|
|
7395
7406
|
* Handler for the collapse button.
|
|
7396
7407
|
*/
|
|
7397
|
-
onCollapseButtonClick?: MouseEventHandler<HTMLElement>;
|
|
7408
|
+
onCollapseButtonClick?: React.MouseEventHandler<HTMLElement>;
|
|
7398
7409
|
}
|
|
7399
7410
|
|
|
7400
7411
|
export declare type HvVerticalNavigationMode = "icon" | "simple";
|
|
7401
7412
|
|
|
7402
7413
|
export declare type HvVerticalNavigationPosition = "static" | "relative" | "fixed" | "absolute";
|
|
7403
7414
|
|
|
7404
|
-
export declare interface HvVerticalNavigationProps {
|
|
7405
|
-
/**
|
|
7406
|
-
* Id to be applied to the root node.
|
|
7407
|
-
*/
|
|
7408
|
-
id?: string;
|
|
7409
|
-
/**
|
|
7410
|
-
* Class names to be applied.
|
|
7411
|
-
*/
|
|
7412
|
-
className?: string;
|
|
7415
|
+
export declare interface HvVerticalNavigationProps extends HvBaseProps<HTMLDivElement> {
|
|
7413
7416
|
/**
|
|
7414
7417
|
* A Jss Object used to override or extend the styles applied to the component.
|
|
7415
7418
|
*/
|
|
@@ -7419,7 +7422,7 @@ export declare interface HvVerticalNavigationProps {
|
|
|
7419
7422
|
*/
|
|
7420
7423
|
open?: boolean;
|
|
7421
7424
|
/**
|
|
7422
|
-
*
|
|
7425
|
+
* Collapsed Mode for the Vertical Navigation, the default value is "simple".
|
|
7423
7426
|
*
|
|
7424
7427
|
* @deprecated - `useIcons` property should be used instead.
|
|
7425
7428
|
*/
|
|
@@ -7428,10 +7431,6 @@ export declare interface HvVerticalNavigationProps {
|
|
|
7428
7431
|
* Boolean to determine if treeview is in slider mode (for mobile navigation), the default value is false.
|
|
7429
7432
|
*/
|
|
7430
7433
|
slider?: boolean;
|
|
7431
|
-
/**
|
|
7432
|
-
* The content inside the actions container.
|
|
7433
|
-
*/
|
|
7434
|
-
children?: React.ReactNode;
|
|
7435
7434
|
/**
|
|
7436
7435
|
* Boolean to determine if icons should be displayed in the navigation menu.
|
|
7437
7436
|
* When `true` a icon will always be displayed, if no icon is provided the first letter of the label will be
|
|
@@ -7934,7 +7933,7 @@ export declare const multiButtonClasses: {
|
|
|
7934
7933
|
|
|
7935
7934
|
export declare const multiSelectionEventHandler: (evt: any, index: number, selectionAnchor: any, allValues: any[], selectedState: boolean[], selectionCheck: any) => any[];
|
|
7936
7935
|
|
|
7937
|
-
export declare type NavigationData<T extends React.ElementType = "a"> = ComponentProps<T> & Record<string, any> & {
|
|
7936
|
+
export declare type NavigationData<T extends React.ElementType = "a"> = React.ComponentProps<T> & Record<string, any> & {
|
|
7938
7937
|
/** The id to be applied to the root element. */
|
|
7939
7938
|
id: string;
|
|
7940
7939
|
/** The label to be rendered on the menu item. */
|
|
@@ -8179,12 +8178,23 @@ export declare const setElementAttrs: (themeName: string, modeName: string, colo
|
|
|
8179
8178
|
|
|
8180
8179
|
export declare const setId: (...args: any[]) => string | undefined;
|
|
8181
8180
|
|
|
8181
|
+
/** @deprecated use `useUniqueId` instead */
|
|
8182
8182
|
export declare const setUid: (id: string, suffix: string) => string | undefined;
|
|
8183
8183
|
|
|
8184
8184
|
export declare const simpleGridClasses: {
|
|
8185
8185
|
root: "HvSimpleGrid-root";
|
|
8186
8186
|
};
|
|
8187
8187
|
|
|
8188
|
+
export declare const skeletonClasses: {
|
|
8189
|
+
content: "HvSkeleton-content";
|
|
8190
|
+
root: "HvSkeleton-root";
|
|
8191
|
+
circle: "HvSkeleton-circle";
|
|
8192
|
+
text: "HvSkeleton-text";
|
|
8193
|
+
square: "HvSkeleton-square";
|
|
8194
|
+
pulse: "HvSkeleton-pulse";
|
|
8195
|
+
wave: "HvSkeleton-wave";
|
|
8196
|
+
};
|
|
8197
|
+
|
|
8188
8198
|
export declare const sliderClasses: {
|
|
8189
8199
|
label: "HvSlider-label";
|
|
8190
8200
|
root: "HvSlider-root";
|
|
@@ -9150,6 +9160,23 @@ declare const useClasses_127: (classesProp?: Partial<Record<"content" | "header"
|
|
|
9150
9160
|
cx: (...args: any) => string;
|
|
9151
9161
|
};
|
|
9152
9162
|
|
|
9163
|
+
declare const useClasses_128: (classesProp?: Partial<Record<"content" | "root" | "circle" | "text" | "square" | "pulse" | "wave", string>>, addStatic?: boolean) => {
|
|
9164
|
+
classes: {
|
|
9165
|
+
content: string;
|
|
9166
|
+
root: string;
|
|
9167
|
+
circle: string;
|
|
9168
|
+
text: string;
|
|
9169
|
+
square: string;
|
|
9170
|
+
pulse: string;
|
|
9171
|
+
wave: string;
|
|
9172
|
+
};
|
|
9173
|
+
css: {
|
|
9174
|
+
(template: TemplateStringsArray, ...args: CSSInterpolation[]): string;
|
|
9175
|
+
(...args: CSSInterpolation[]): string;
|
|
9176
|
+
};
|
|
9177
|
+
cx: (...args: any) => string;
|
|
9178
|
+
};
|
|
9179
|
+
|
|
9153
9180
|
declare const useClasses_13: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
|
|
9154
9181
|
classes: {
|
|
9155
9182
|
root: string;
|
|
@@ -10903,7 +10930,7 @@ export declare interface UseHvHeaderGroupsCellProps {
|
|
|
10903
10930
|
}
|
|
10904
10931
|
|
|
10905
10932
|
export declare interface UseHvHeaderGroupsColumnProps {
|
|
10906
|
-
style?: CSSProperties;
|
|
10933
|
+
style?: React.CSSProperties;
|
|
10907
10934
|
groupColumnMostLeft?: boolean;
|
|
10908
10935
|
groupColumnMostRight?: boolean;
|
|
10909
10936
|
}
|
|
@@ -10929,7 +10956,7 @@ export declare interface UseHvPaginationTableInstance<D extends object> {
|
|
|
10929
10956
|
export declare interface UseHvResizeColumnProps {
|
|
10930
10957
|
resizable?: boolean;
|
|
10931
10958
|
resizing?: boolean;
|
|
10932
|
-
resizerProps?: HTMLAttributes<HTMLDivElement>;
|
|
10959
|
+
resizerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
10933
10960
|
}
|
|
10934
10961
|
|
|
10935
10962
|
export declare const useHvResizeColumns: UseHvResizeColumnsProps;
|
|
@@ -10950,7 +10977,7 @@ export declare interface UseHvRowExpandRowInstance<D extends object = Record<str
|
|
|
10950
10977
|
}
|
|
10951
10978
|
|
|
10952
10979
|
export declare interface UseHvRowExpandRowToggleProps extends TableExpandedToggleProps {
|
|
10953
|
-
onClick?: MouseEventHandler<unknown>;
|
|
10980
|
+
onClick?: React.MouseEventHandler<unknown>;
|
|
10954
10981
|
}
|
|
10955
10982
|
|
|
10956
10983
|
export declare type UseHvRowExpandTableOptions = {
|
|
@@ -10964,7 +10991,7 @@ export declare interface UseHvRowExpandTableRowProps {
|
|
|
10964
10991
|
export declare const useHvRowSelection: UseRowSelectionProps;
|
|
10965
10992
|
|
|
10966
10993
|
export declare interface UseHvRowSelectionBulkCheckboxProps {
|
|
10967
|
-
onChange?: (e: ChangeEvent, checked?: boolean) => void;
|
|
10994
|
+
onChange?: (e: React.ChangeEvent, checked?: boolean) => void;
|
|
10968
10995
|
checked?: boolean;
|
|
10969
10996
|
indeterminate?: boolean;
|
|
10970
10997
|
}
|
|
@@ -10976,7 +11003,7 @@ export declare interface UseHvRowSelectionHooks<D extends object> {
|
|
|
10976
11003
|
}
|
|
10977
11004
|
|
|
10978
11005
|
export declare interface UseHvRowSelectionRowCheckboxProps {
|
|
10979
|
-
onChange?: (e: ChangeEvent, checked?: boolean) => void;
|
|
11006
|
+
onChange?: (e: React.ChangeEvent, checked?: boolean) => void;
|
|
10980
11007
|
checked?: boolean;
|
|
10981
11008
|
disabled?: boolean;
|
|
10982
11009
|
indeterminate?: boolean;
|
|
@@ -11030,7 +11057,7 @@ export declare interface UseHvRowSelectionTableRowProps {
|
|
|
11030
11057
|
}
|
|
11031
11058
|
|
|
11032
11059
|
export declare const useHvSnackbar: () => {
|
|
11033
|
-
enqueueSnackbar: (message: ReactNode, options?: HvNotistackSnackMessageProps) => SnackbarKey;
|
|
11060
|
+
enqueueSnackbar: (message: React.ReactNode, options?: HvNotistackSnackMessageProps) => SnackbarKey;
|
|
11034
11061
|
closeSnackbar: (key?: SnackbarKey | undefined) => void;
|
|
11035
11062
|
};
|
|
11036
11063
|
|
|
@@ -11104,19 +11131,19 @@ export declare const useHvTableStyles: UseTableStylesProps;
|
|
|
11104
11131
|
export declare interface UseHvTableStylesColumnOptions {
|
|
11105
11132
|
variant?: "checkbox" | "expand" | "actions" | "default" | "none";
|
|
11106
11133
|
align?: "center" | "inherit" | "justify" | "left" | "right";
|
|
11107
|
-
style?: CSSProperties;
|
|
11134
|
+
style?: React.CSSProperties;
|
|
11108
11135
|
className?: string;
|
|
11109
11136
|
classes?: Record<string, string>;
|
|
11110
|
-
headerStyle?: CSSProperties;
|
|
11137
|
+
headerStyle?: React.CSSProperties;
|
|
11111
11138
|
headerClassName?: string;
|
|
11112
11139
|
headerClasses?: Record<string, string>;
|
|
11113
|
-
cellStyle?: CSSProperties;
|
|
11140
|
+
cellStyle?: React.CSSProperties;
|
|
11114
11141
|
cellClassName?: string;
|
|
11115
11142
|
cellClasses?: Record<string, string>;
|
|
11116
11143
|
}
|
|
11117
11144
|
|
|
11118
11145
|
export declare interface UseHvTableStylesTableCellProps {
|
|
11119
|
-
style?: CSSProperties;
|
|
11146
|
+
style?: React.CSSProperties;
|
|
11120
11147
|
className?: string;
|
|
11121
11148
|
classes?: Record<string, string>;
|
|
11122
11149
|
variant?: "checkbox" | "expand" | "actions" | "default" | "none";
|
|
@@ -11124,7 +11151,7 @@ export declare interface UseHvTableStylesTableCellProps {
|
|
|
11124
11151
|
}
|
|
11125
11152
|
|
|
11126
11153
|
export declare type UseHvTableStylesTableOptions = {
|
|
11127
|
-
style?: CSSProperties;
|
|
11154
|
+
style?: React.CSSProperties;
|
|
11128
11155
|
className?: string;
|
|
11129
11156
|
classes?: Record<string, string>;
|
|
11130
11157
|
component?: any;
|