@hitachivantara/uikit-react-core 6.4.0 → 6.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/AvatarGroup/AvatarGroupContext.js +1 -1
  2. package/dist/BaseCheckBox/CheckBoxIcon.js +1 -1
  3. package/dist/BaseRadio/RadioIcon.js +1 -1
  4. package/dist/Calendar/SingleCalendar/CalendarCell.js +1 -2
  5. package/dist/Calendar/model.js +0 -1
  6. package/dist/ColorPicker/Swatch.js +1 -1
  7. package/dist/Controls/context/ControlsContext.js +1 -2
  8. package/dist/DatePicker/DatePicker.js +1 -1
  9. package/dist/DatePicker/utils.js +1 -1
  10. package/dist/Dialog/Content/Content.js +16 -25
  11. package/dist/Dialog/Content/Content.styles.js +1 -3
  12. package/dist/Dialog/Dialog.styles.js +1 -1
  13. package/dist/Dialog/context.js +1 -1
  14. package/dist/Dropdown/Dropdown.js +1 -1
  15. package/dist/Dropdown/List/List.js +1 -1
  16. package/dist/FilterGroup/FilterContent/FilterContent.js +22 -20
  17. package/dist/FilterGroup/FilterContent/FilterContent.styles.js +5 -3
  18. package/dist/Header/Header.styles.js +1 -0
  19. package/dist/IconContainer/IconContainer.js +1 -1
  20. package/dist/OverflowTooltip/OverflowTooltip.js +16 -26
  21. package/dist/QueryBuilder/utils/index.js +1 -1
  22. package/dist/Radio/Radio.js +1 -1
  23. package/dist/Select/OptionGroup.js +1 -1
  24. package/dist/SnackbarProvider/SnackbarProvider.js +2 -2
  25. package/dist/Switch/Switch.js +1 -1
  26. package/dist/Table/TableHeader/TableHeader.js +1 -1
  27. package/dist/Table/hooks/useHvRowSelection.js +1 -0
  28. package/dist/Table/renderers/renderers.js +2 -2
  29. package/dist/TextArea/TextArea.js +1 -1
  30. package/dist/TreeView/TreeItem/DefaultContent.js +1 -1
  31. package/dist/index.d.ts +55 -15
  32. package/dist/index.js +292 -292
  33. package/dist/themes/pentaho.js +8 -1
  34. package/dist/utils/Callout.js +1 -1
  35. package/dist/utils/focusableElementFinder.js +0 -1
  36. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useContext, createContext, useMemo } from "react";
2
+ import { useContext, useMemo, createContext } from "react";
3
3
  const HvAvatarGroupContext = createContext(null);
4
4
  const HvAvatarGroupProvider = ({
5
5
  size,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { useDefaultProps, createClasses, mergeStyles } from "@hitachivantara/uikit-react-utils";
3
+ import { useDefaultProps, mergeStyles, createClasses } from "@hitachivantara/uikit-react-utils";
4
4
  import { getColor, theme } from "@hitachivantara/uikit-styles";
5
5
  import { SvgBase } from "../icons.js";
6
6
  const { useClasses } = createClasses("HvCheckBoxIcon", {
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useDefaultProps, createClasses, mergeStyles } from "@hitachivantara/uikit-react-utils";
2
+ import { useDefaultProps, mergeStyles, createClasses } from "@hitachivantara/uikit-react-utils";
3
3
  import { getColor, theme } from "@hitachivantara/uikit-styles";
4
4
  import { SvgBase } from "../icons.js";
5
5
  const { useClasses } = createClasses("HvRadioIcon", {
@@ -82,6 +82,5 @@ const HvCalendarCell = (props) => {
82
82
  };
83
83
  export {
84
84
  HvCalendarCell,
85
- staticClasses as calendarCellClasses,
86
- HvCalendarCell as default
85
+ staticClasses as calendarCellClasses
87
86
  };
@@ -62,6 +62,5 @@ const generateCalendarModel = (seedValue, visibleMonth, visibleYear) => {
62
62
  return calendarModel;
63
63
  };
64
64
  export {
65
- CalendarModel as default,
66
65
  generateCalendarModel
67
66
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useDefaultProps, createClasses, mergeStyles } from "@hitachivantara/uikit-react-utils";
2
+ import { useDefaultProps, mergeStyles, createClasses } from "@hitachivantara/uikit-react-utils";
3
3
  import { theme } from "@hitachivantara/uikit-styles";
4
4
  import { HvButtonBase } from "../ButtonBase/ButtonBase.js";
5
5
  const { useClasses } = createClasses("HvColorPickerSwatch", {
@@ -4,6 +4,5 @@ const HvControlsContextProvider = HvControlsContext.Provider;
4
4
  HvControlsContext.Consumer;
5
5
  export {
6
6
  HvControlsContext,
7
- HvControlsContextProvider,
8
- HvControlsContext as default
7
+ HvControlsContextProvider
9
8
  };
@@ -17,8 +17,8 @@ import { getDateLabel } from "./utils.js";
17
17
  import { HvCalendar } from "../Calendar/Calendar.js";
18
18
  import { HvFormElement } from "../FormElement/FormElement.js";
19
19
  import { HvBaseDropdown } from "../BaseDropdown/BaseDropdown.js";
20
- import { isInvalid } from "../FormElement/utils.js";
21
20
  import { HvWarningText } from "../FormElement/WarningText/WarningText.js";
21
+ import { isInvalid } from "../FormElement/utils.js";
22
22
  import { HvActionBar } from "../ActionBar/ActionBar.js";
23
23
  import { HvButton } from "../Button/Button.js";
24
24
  const DEFAULT_LABELS = {
@@ -1,4 +1,4 @@
1
- import { getFormattedDate, isDate, isSameMonth, getMonthName } from "../Calendar/utils.js";
1
+ import { isDate, isSameMonth, getFormattedDate, getMonthName } from "../Calendar/utils.js";
2
2
  const validateDate = (date) => isDate(date) && date || /* @__PURE__ */ new Date();
3
3
  const getFormattedDateRange = (date, locale) => {
4
4
  const { startDate, endDate } = date;
@@ -1,7 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useState, useRef, useEffect } from "react";
2
+ import { useState } from "react";
3
+ import { useResizeDetector } from "react-resize-detector";
3
4
  import MuiDialogContent from "@mui/material/DialogContent";
4
- import { useDefaultProps, mergeStyles } from "@hitachivantara/uikit-react-utils";
5
+ import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
5
6
  import { useClasses } from "./Content.styles.js";
6
7
  import { staticClasses } from "./Content.styles.js";
7
8
  import { HvTypography } from "../../Typography/Typography.js";
@@ -10,44 +11,34 @@ const HvDialogContent = (props) => {
10
11
  classes: classesProp,
11
12
  className,
12
13
  children,
13
- indentContent = false,
14
- style,
14
+ indentContent,
15
+ dividers,
15
16
  ...others
16
17
  } = useDefaultProps("HvDialogContent", props);
17
18
  const { classes, cx } = useClasses(classesProp);
18
19
  const [hasBorder, setHasBorder] = useState(false);
19
- const elRef = useRef(null);
20
- useEffect(() => {
21
- if (typeof ResizeObserver !== "undefined") {
22
- const resizeObserver = new ResizeObserver(() => {
23
- const el = elRef.current;
24
- if (el) {
25
- const hasOverflow = el.scrollHeight > el.clientHeight;
26
- setHasBorder(hasOverflow);
27
- }
28
- });
29
- if (elRef.current) {
30
- resizeObserver.observe(elRef.current);
31
- }
32
- return () => {
33
- resizeObserver.disconnect();
34
- };
20
+ const { ref: elRef } = useResizeDetector({
21
+ refreshMode: "throttle",
22
+ refreshRate: 100,
23
+ handleWidth: false,
24
+ disableRerender: true,
25
+ onResize: ({ entry }) => {
26
+ if (!entry) return;
27
+ const hasOverflow = entry.target.scrollHeight > entry.target.clientHeight;
28
+ setHasBorder(hasOverflow);
35
29
  }
36
- return void 0;
37
- }, []);
30
+ });
38
31
  return /* @__PURE__ */ jsx(
39
32
  HvTypography,
40
33
  {
41
34
  ref: elRef,
42
35
  component: MuiDialogContent,
36
+ dividers: dividers ?? hasBorder,
43
37
  className: cx(
44
38
  classes.root,
45
39
  { [classes.textContent]: !!indentContent },
46
40
  className
47
41
  ),
48
- style: mergeStyles(style, {
49
- "--borderW": hasBorder ? "1px" : "0px"
50
- }),
51
42
  ...others,
52
43
  children
53
44
  }
@@ -3,9 +3,7 @@ import { theme } from "@hitachivantara/uikit-styles";
3
3
  const { staticClasses, useClasses } = createClasses("HvDialogContent", {
4
4
  root: {
5
5
  padding: theme.spacing(0, "sm", "sm"),
6
- borderColor: theme.colors.borderSubtle,
7
- borderTopWidth: "var(--borderW)",
8
- borderBottomWidth: "var(--borderW)"
6
+ borderColor: theme.colors.borderSubtle
9
7
  },
10
8
  textContent: {
11
9
  paddingLeft: `calc(42px + ${theme.space.sm})`,
@@ -7,7 +7,7 @@ const { staticClasses, useClasses } = createClasses("HvDialog", {
7
7
  },
8
8
  paper: {
9
9
  color: theme.colors.text,
10
- backgroundColor: theme.colors.bgContainer,
10
+ background: theme.colors.bgContainer,
11
11
  boxShadow: theme.colors.shadow,
12
12
  borderColor: theme.colors.border,
13
13
  borderRadius: theme.radii.round
@@ -1,4 +1,4 @@
1
- import { useContext, createContext } from "react";
1
+ import { createContext, useContext } from "react";
2
2
  const DialogContext = createContext({ fullScreen: false });
3
3
  const useDialogContext = () => useContext(DialogContext);
4
4
  export {
@@ -15,9 +15,9 @@ import { getSelectionLabel, getSelected } from "./utils.js";
15
15
  import { HvDropdownList } from "./List/List.js";
16
16
  import { HvFormElement } from "../FormElement/FormElement.js";
17
17
  import { HvBaseDropdown } from "../BaseDropdown/BaseDropdown.js";
18
- import { isInvalid } from "../FormElement/utils.js";
19
18
  import { HvWarningText } from "../FormElement/WarningText/WarningText.js";
20
19
  import { HvTypography } from "../Typography/Typography.js";
20
+ import { isInvalid } from "../FormElement/utils.js";
21
21
  const DEFAULT_LABELS = {
22
22
  /** Label for overwrite the default header behavior. */
23
23
  select: void 0,
@@ -9,9 +9,9 @@ import { useClasses } from "./List.styles.js";
9
9
  import { staticClasses } from "./List.styles.js";
10
10
  import { HvActionBar } from "../../ActionBar/ActionBar.js";
11
11
  import { HvList } from "../../List/List.js";
12
- import { HvButton } from "../../Button/Button.js";
13
12
  import { HvInput } from "../../Input/Input.js";
14
13
  import { HvCheckBox } from "../../CheckBox/CheckBox.js";
14
+ import { HvButton } from "../../Button/Button.js";
15
15
  const clone = (values) => values.map((value) => ({ ...value }));
16
16
  const cleanHidden = (lst) => lst.map((item) => ({ ...item, isHidden: false }));
17
17
  const valuesExist = (values) => values != null && values?.length > 0;
@@ -140,26 +140,28 @@ const HvFilterGroupContent = forwardRef(function HvFilterGroupContent2(props, re
140
140
  }
141
141
  ),
142
142
  /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: classes.space, children: " " }),
143
- /* @__PURE__ */ jsx(
144
- HvButton,
145
- {
146
- id: setId(id, "apply-button"),
147
- disabled: applyDisabled,
148
- variant: "primary",
149
- onClick: onApplyHandler,
150
- className: classes.applyButton,
151
- children: labels?.applyLabel
152
- }
153
- ),
154
- /* @__PURE__ */ jsx(
155
- HvButton,
156
- {
157
- id: setId(id, "cancel-button"),
158
- variant: "secondarySubtle",
159
- onClick: onCancelHandler,
160
- children: labels?.cancelLabel
161
- }
162
- )
143
+ /* @__PURE__ */ jsxs("div", { className: classes.actions, children: [
144
+ /* @__PURE__ */ jsx(
145
+ HvButton,
146
+ {
147
+ id: setId(id, "apply-button"),
148
+ disabled: applyDisabled,
149
+ variant: "primary",
150
+ onClick: onApplyHandler,
151
+ className: classes.applyButton,
152
+ children: labels?.applyLabel
153
+ }
154
+ ),
155
+ /* @__PURE__ */ jsx(
156
+ HvButton,
157
+ {
158
+ id: setId(id, "cancel-button"),
159
+ variant: "secondarySubtle",
160
+ onClick: onCancelHandler,
161
+ children: labels?.cancelLabel
162
+ }
163
+ )
164
+ ] })
163
165
  ] })
164
166
  ]
165
167
  }
@@ -40,12 +40,14 @@ const { staticClasses, useClasses } = createClasses(name, {
40
40
  minHeight: "calc(370px - 75px)"
41
41
  },
42
42
  actionBar: {},
43
+ actions: {
44
+ display: "flex",
45
+ gap: theme.space.xs
46
+ },
43
47
  space: {
44
48
  flex: 1
45
49
  },
46
- applyButton: {
47
- marginRight: "8px"
48
- }
50
+ applyButton: {}
49
51
  });
50
52
  export {
51
53
  staticClasses,
@@ -18,6 +18,7 @@ const { staticClasses, useClasses } = createClasses("HvHeader", {
18
18
  alignItems: "center",
19
19
  width: "100%",
20
20
  height: "100%",
21
+ position: "relative",
21
22
  padding: theme.spacing(0, "sm"),
22
23
  "& > *:not(nav)": {
23
24
  zIndex: 2
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { createClasses, useDefaultProps, mergeStyles } from "@hitachivantara/uikit-react-utils";
3
+ import { useDefaultProps, mergeStyles, createClasses } from "@hitachivantara/uikit-react-utils";
4
4
  import { getColor } from "@hitachivantara/uikit-styles";
5
5
  const { staticClasses, useClasses } = createClasses("HvIconContainer", {
6
6
  root: {
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useMemo } from "react";
2
+ import { useState, useMemo } from "react";
3
3
  import { useResizeDetector } from "react-resize-detector";
4
4
  import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
5
5
  import { useClasses } from "./OverflowTooltip.styles.js";
@@ -8,39 +8,31 @@ import { HvTooltip } from "../Tooltip/Tooltip.js";
8
8
  const isParagraph = (children = "") => /\s/.test(children);
9
9
  const HvOverflowTooltip = (props) => {
10
10
  const {
11
- id,
12
11
  classes: classesProp,
13
12
  className,
14
13
  data,
15
- open,
16
14
  paragraphOverflow,
17
- placement = "top-start",
18
- tooltipsProps
15
+ tooltipsProps,
16
+ ...others
19
17
  } = useDefaultProps("HvOverflowTooltip", props);
20
18
  const { classes, cx } = useClasses(classesProp);
21
- const {
22
- height = 0,
23
- width = 0,
24
- ref
25
- } = useResizeDetector({
26
- refreshMode: "debounce",
27
- refreshOptions: {
28
- trailing: true
29
- },
30
- handleHeight: false
31
- });
19
+ const [isOverflowing, setIsOverflowing] = useState(false);
32
20
  const isParag = useMemo(
33
21
  () => paragraphOverflow && isParagraph(data?.toString()),
34
22
  [data, paragraphOverflow]
35
23
  );
36
- const isOverflowing = useMemo(() => {
37
- if (isParag) {
38
- const scrollHeight = ref.current?.scrollHeight || 0;
39
- return scrollHeight - height >= 1;
24
+ const { ref } = useResizeDetector({
25
+ refreshMode: "throttle",
26
+ disableRerender: true,
27
+ refreshRate: 100,
28
+ refreshOptions: { trailing: true, leading: true },
29
+ onResize({ width, height, entry }) {
30
+ const { scrollHeight = 0, scrollWidth = 0 } = entry?.target || {};
31
+ setIsOverflowing(
32
+ isParag ? scrollHeight - (height || 0) >= 1 : scrollWidth - (width || 0) >= 1
33
+ );
40
34
  }
41
- const scrollWidth = ref.current?.scrollWidth || 0;
42
- return scrollWidth - width >= 1;
43
- }, [height, isParag, ref, width]);
35
+ });
44
36
  const content = useMemo(
45
37
  () => /* @__PURE__ */ jsx(
46
38
  "div",
@@ -69,15 +61,13 @@ const HvOverflowTooltip = (props) => {
69
61
  return /* @__PURE__ */ jsx(
70
62
  HvTooltip,
71
63
  {
72
- id,
73
64
  disableHoverListener: !isOverflowing,
74
- open,
75
- placement,
76
65
  classes: { tooltip: classes.tooltipData },
77
66
  title: data,
78
67
  "aria-label": null,
79
68
  "aria-labelledby": null,
80
69
  ...tooltipsProps,
70
+ ...others,
81
71
  children: content
82
72
  }
83
73
  );
@@ -1,4 +1,4 @@
1
- import { uniqueId, isEqual } from "../../utils/helpers.js";
1
+ import { isEqual, uniqueId } from "../../utils/helpers.js";
2
2
  const isBigList = (values) => values != null && values?.length > 10;
3
3
  const ID_PREFIX = "@hv_";
4
4
  const createId = () => uniqueId(ID_PREFIX);
@@ -7,10 +7,10 @@ import { setId } from "../utils/setId.js";
7
7
  import { useClasses } from "./Radio.styles.js";
8
8
  import { staticClasses } from "./Radio.styles.js";
9
9
  import { HvBaseRadio } from "../BaseRadio/BaseRadio.js";
10
- import { isInvalid } from "../FormElement/utils.js";
11
10
  import { HvFormElement } from "../FormElement/FormElement.js";
12
11
  import { HvLabel } from "../FormElement/Label/Label.js";
13
12
  import { HvWarningText } from "../FormElement/WarningText/WarningText.js";
13
+ import { isInvalid } from "../FormElement/utils.js";
14
14
  const HvRadio = forwardRef(
15
15
  function HvRadio2(props, ref) {
16
16
  const {
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { OptionGroup } from "@mui/base";
4
- import { createClasses, useDefaultProps } from "@hitachivantara/uikit-react-utils";
4
+ import { useDefaultProps, createClasses } from "@hitachivantara/uikit-react-utils";
5
5
  import { theme } from "@hitachivantara/uikit-styles";
6
6
  const { staticClasses, useClasses } = createClasses("HvOptionGroup", {
7
7
  root: {
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useCallback, forwardRef, useMemo } from "react";
3
- import { useSnackbar, SnackbarProvider, SnackbarContent } from "notistack";
2
+ import { useCallback, useMemo, forwardRef } from "react";
3
+ import { SnackbarProvider, useSnackbar, SnackbarContent } from "notistack";
4
4
  import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
5
5
  import { useClasses } from "./SnackbarProvider.styles.js";
6
6
  import { staticClasses } from "./SnackbarProvider.styles.js";
@@ -9,8 +9,8 @@ import { staticClasses } from "./Switch.styles.js";
9
9
  import { HvBaseSwitch } from "../BaseSwitch/BaseSwitch.js";
10
10
  import { HvFormElement } from "../FormElement/FormElement.js";
11
11
  import { HvLabel } from "../FormElement/Label/Label.js";
12
- import { isInvalid } from "../FormElement/utils.js";
13
12
  import { HvWarningText } from "../FormElement/WarningText/WarningText.js";
13
+ import { isInvalid } from "../FormElement/utils.js";
14
14
  const HvSwitch = forwardRef(
15
15
  function HvSwitch2(props, ref) {
16
16
  const {
@@ -7,7 +7,7 @@ import TableContext from "../TableContext.js";
7
7
  import { TableSectionContext } from "../TableSectionContext.js";
8
8
  import { useClasses } from "./TableHeader.styles.js";
9
9
  import { staticClasses } from "./TableHeader.styles.js";
10
- import { isParagraph, getSortIconName } from "./utils.js";
10
+ import { getSortIconName, isParagraph } from "./utils.js";
11
11
  import { HvTypography } from "../../Typography/Typography.js";
12
12
  import { HvButtonBase } from "../../ButtonBase/ButtonBase.js";
13
13
  const defaultComponent = "th";
@@ -35,6 +35,7 @@ const visibleColumnsHook = (columns) => {
35
35
  // this will only work when using useHvTableSticky
36
36
  // but ensures it stays left of any sticky column
37
37
  sticky: "left",
38
+ disableGlobalFilter: true,
38
39
  Cell: CellWithCheckBox
39
40
  };
40
41
  return [selectionColumn, ...columns];
@@ -1,4 +1,4 @@
1
- import { jsx, Fragment, jsxs } from "react/jsx-runtime";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { ClassNames } from "@emotion/react";
3
3
  import { HvIcon } from "../../icons.js";
4
4
  import { setId } from "../../utils/setId.js";
@@ -7,8 +7,8 @@ import { HvDropdownColumnCell } from "./DropdownColumnCell.js";
7
7
  import { HvProgressColumnCell } from "./ProgressColumnCell.js";
8
8
  import { HvSwitchColumnCell } from "./SwitchColumnCell.js";
9
9
  import { HvTag } from "../../Tag/Tag.js";
10
- import { HvOverflowTooltip } from "../../OverflowTooltip/OverflowTooltip.js";
11
10
  import { HvButton } from "../../Button/Button.js";
11
+ import { HvOverflowTooltip } from "../../OverflowTooltip/OverflowTooltip.js";
12
12
  const EM_DASH = "—";
13
13
  const hvStringFallback = (value) => {
14
14
  return typeof value === "string" && value !== "" ? value : EM_DASH;
@@ -12,9 +12,9 @@ import { staticClasses } from "./TextArea.styles.js";
12
12
  import { HvFormElement } from "../FormElement/FormElement.js";
13
13
  import { HvCharCounter } from "../FormElement/CharCounter/CharCounter.js";
14
14
  import { HvBaseInput } from "../BaseInput/BaseInput.js";
15
- import { isInvalid } from "../FormElement/utils.js";
16
15
  import { HvWarningText } from "../FormElement/WarningText/WarningText.js";
17
16
  import { HvInfoMessage } from "../FormElement/InfoMessage/InfoMessage.js";
17
+ import { isInvalid } from "../FormElement/utils.js";
18
18
  const HvTextArea = forwardRef(function HvTextArea2(props, ref) {
19
19
  const {
20
20
  id,
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { createClasses, useCss } from "@hitachivantara/uikit-react-utils";
3
+ import { useCss, createClasses } from "@hitachivantara/uikit-react-utils";
4
4
  import { useHvTreeItem } from "./useHvTreeItem.js";
5
5
  const { useClasses } = createClasses("HvTreeContent", {
6
6
  root: {},
package/dist/index.d.ts CHANGED
@@ -32,7 +32,6 @@ import { HvBaseTheme } from '@hitachivantara/uikit-styles';
32
32
  import { HvBreakpoints } from '@hitachivantara/uikit-styles';
33
33
  import { HvColor } from '@hitachivantara/uikit-styles';
34
34
  import { HvColorAny } from '@hitachivantara/uikit-styles';
35
- import { HvListValue as HvListValue_2 } from '../..';
36
35
  import { HvRadius } from '@hitachivantara/uikit-styles';
37
36
  import { HvSize } from '@hitachivantara/uikit-styles';
38
37
  import { PluginHook as HvTablePluginHook } from 'react-table';
@@ -135,11 +134,6 @@ import { UseSortByOptions } from 'react-table';
135
134
  import { UseSortByState } from 'react-table';
136
135
  import { UseTableHeaderGroupProps } from 'react-table';
137
136
  import { useTheme } from '@hitachivantara/uikit-react-utils';
138
- import { UseTreeViewExpansionInstance } from '../internals/hooks/plugins/useTreeViewExpansion';
139
- import { UseTreeViewFocusInstance } from '../internals/hooks/plugins/useTreeViewFocus';
140
- import { UseTreeViewKeyboardNavigationInstance } from '../internals/hooks/plugins/useTreeViewKeyboardNavigation';
141
- import { UseTreeViewNodesInstance } from '../internals/hooks/plugins/useTreeViewNodes';
142
- import { UseTreeViewSelectionInstance } from '../internals/hooks/plugins/useTreeViewSelection';
143
137
 
144
138
  declare type Accessor<D extends object> = (originalRow: D, index: number, sub: {
145
139
  subRows: D[];
@@ -2810,7 +2804,7 @@ export declare type HvDropdownClasses = ExtractNames<typeof useClasses_59>;
2810
2804
 
2811
2805
  export declare function hvDropdownColumn<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer>(col: HvTableColumnConfig<D, H>, id: string | undefined, placeholder: string, disabledPlaceholder: string, onChange?: (identifier: string, value: HvListValue) => void, dropdownProps?: HvDropdownProps<false>): HvTableColumnConfig<D, H>;
2812
2806
 
2813
- export declare const HvDropdownColumnCell: <Multiple extends boolean = false, OptionValue extends HvListValue_2 = HvListValue_2>(props: HvDropdownProps<Multiple, OptionValue> & RefAttributes<HTMLDivElement>) => React.ReactNode;
2807
+ export declare const HvDropdownColumnCell: <Multiple extends boolean = false, OptionValue extends HvListValue = HvListValue>(props: HvDropdownProps<Multiple, OptionValue> & RefAttributes<HTMLDivElement>) => React.ReactNode;
2814
2808
 
2815
2809
  export declare interface HvDropdownColumnCellProp extends HvDropdownProps<false> {
2816
2810
  }
@@ -4378,16 +4372,12 @@ export declare const HvOverflowTooltip: (props: HvOverflowTooltipProps) => JSX_2
4378
4372
 
4379
4373
  export declare type HvOverflowTooltipClasses = ExtractNames<typeof useClasses_91>;
4380
4374
 
4381
- export declare interface HvOverflowTooltipProps extends HvBaseProps {
4375
+ export declare interface HvOverflowTooltipProps extends Omit<Partial<HvTooltipProps>, "classes" | "children"> {
4382
4376
  /** The node that will be rendered inside the tooltip. */
4383
4377
  data: React.ReactNode;
4384
- /** If true, the tooltip is shown. */
4385
- open?: boolean;
4386
4378
  /** If `true`, the overflow tooltip will always use the paragraph overflow style. */
4387
4379
  paragraphOverflow?: boolean;
4388
- /** Tooltip placement. */
4389
- placement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
4390
- /** Extra properties to add to the tooltip. */
4380
+ /** Extra properties to add to the tooltip. @deprecated pass properties directly to the component */
4391
4381
  tooltipsProps?: Partial<HvTooltipProps>;
4392
4382
  /** A Jss Object used to override or extend the styles applied to the component. */
4393
4383
  classes?: HvOverflowTooltipClasses;
@@ -7765,6 +7755,22 @@ export declare const treeViewItemClasses: {
7765
7755
  icon: string;
7766
7756
  };
7767
7757
 
7758
+ declare interface TreeViewItemRange {
7759
+ start?: string | null;
7760
+ end?: string | null;
7761
+ next?: string | null;
7762
+ current?: string;
7763
+ }
7764
+
7765
+ declare interface TreeViewNode {
7766
+ id: string;
7767
+ idAttribute: string | undefined;
7768
+ index: number;
7769
+ parentId: string | null;
7770
+ expandable: boolean;
7771
+ disabled: boolean | undefined;
7772
+ }
7773
+
7768
7774
  declare type TreeViewSelectionValue<Multiple extends boolean | undefined> = Multiple extends true ? string[] : string | null;
7769
7775
 
7770
7776
  declare type TypeSuffix = "" | "Subtle" | "Ghost";
@@ -8209,7 +8215,7 @@ declare const useClasses_127: (classesProp?: Partial<Record<"action" | "minimize
8209
8215
  readonly cx: (...args: any) => string;
8210
8216
  };
8211
8217
 
8212
- declare const useClasses_128: (classesProp?: Partial<Record<"list" | "popup" | "root" | "collapsed" | "listItem" | "navigationPopup", string>>, addStatic?: boolean) => {
8218
+ declare const useClasses_128: (classesProp?: Partial<Record<"list" | "popup" | "root" | "listItem" | "collapsed" | "navigationPopup", string>>, addStatic?: boolean) => {
8213
8219
  readonly classes: {
8214
8220
  root: string;
8215
8221
  list: string;
@@ -9293,7 +9299,7 @@ declare const useClasses_74: (classesProp?: Partial<Record<"label" | "error" | "
9293
9299
  readonly cx: (...args: any) => string;
9294
9300
  };
9295
9301
 
9296
- declare const useClasses_75: (classesProp?: Partial<Record<"dropdown" | "space" | "header" | "root" | "panel" | "baseDropdownSelection" | "rightSidePanel" | "leftSidePanel" | "actionBar" | "applyButton", string>>, addStatic?: boolean) => {
9302
+ declare const useClasses_75: (classesProp?: Partial<Record<"dropdown" | "space" | "header" | "root" | "panel" | "actions" | "baseDropdownSelection" | "rightSidePanel" | "leftSidePanel" | "actionBar" | "applyButton", string>>, addStatic?: boolean) => {
9297
9303
  readonly classes: {
9298
9304
  dropdown: string;
9299
9305
  panel: string;
@@ -9303,6 +9309,7 @@ declare const useClasses_75: (classesProp?: Partial<Record<"dropdown" | "space"
9303
9309
  rightSidePanel: string;
9304
9310
  leftSidePanel: string;
9305
9311
  actionBar: string;
9312
+ actions: string;
9306
9313
  space: string;
9307
9314
  applyButton: string;
9308
9315
  };
@@ -10021,6 +10028,13 @@ declare interface UseTreeViewContextValueBuilderParameters {
10021
10028
  defaultParentIcon?: React.ReactNode;
10022
10029
  }
10023
10030
 
10031
+ declare interface UseTreeViewExpansionInstance {
10032
+ isNodeExpanded: (nodeId: string) => boolean;
10033
+ isNodeExpandable: (nodeId: string) => boolean;
10034
+ toggleNodeExpansion: (event: React_2.SyntheticEvent, value: string) => void;
10035
+ expandAllSiblings: (event: React_2.KeyboardEvent<HTMLUListElement>, nodeId: string) => void;
10036
+ }
10037
+
10024
10038
  declare interface UseTreeViewExpansionParameters {
10025
10039
  /**
10026
10040
  * Expanded node ids.
@@ -10041,6 +10055,11 @@ declare interface UseTreeViewExpansionParameters {
10041
10055
  onNodeToggle?: (event: React_2.SyntheticEvent, nodeIds: string[]) => void;
10042
10056
  }
10043
10057
 
10058
+ declare interface UseTreeViewFocusInstance {
10059
+ isNodeFocused: (nodeId: string) => boolean;
10060
+ focusNode: (event: React_2.SyntheticEvent, nodeId: string | null) => void;
10061
+ }
10062
+
10044
10063
  declare interface UseTreeViewFocusParameters {
10045
10064
  /**
10046
10065
  * Callback fired when tree items are focused.
@@ -10051,6 +10070,19 @@ declare interface UseTreeViewFocusParameters {
10051
10070
  onNodeFocus?: (event: React_2.SyntheticEvent, nodeId: string) => void;
10052
10071
  }
10053
10072
 
10073
+ declare interface UseTreeViewKeyboardNavigationInstance {
10074
+ mapFirstChar: (nodeId: string, firstChar: string) => () => void;
10075
+ }
10076
+
10077
+ declare interface UseTreeViewNodesInstance {
10078
+ getNode: (nodeId: string) => TreeViewNode;
10079
+ updateNode: (node: TreeViewNode) => void;
10080
+ removeNode: (nodeId: string) => void;
10081
+ getChildrenIds: (nodeId: string | null) => string[];
10082
+ getNavigableChildrenIds: (nodeId: string | null) => string[];
10083
+ isNodeDisabled: (nodeId: string | null) => nodeId is string;
10084
+ }
10085
+
10054
10086
  declare interface UseTreeViewNodesParameters {
10055
10087
  /**
10056
10088
  * If `true`, will allow focus on disabled items.
@@ -10059,6 +10091,14 @@ declare interface UseTreeViewNodesParameters {
10059
10091
  disabledItemsFocusable?: boolean;
10060
10092
  }
10061
10093
 
10094
+ declare interface UseTreeViewSelectionInstance {
10095
+ isNodeSelected: (nodeId: string) => boolean;
10096
+ selectNode: (event: React_2.SyntheticEvent, nodeId: string, multiple?: boolean) => void;
10097
+ selectRange: (event: React_2.SyntheticEvent, nodes: TreeViewItemRange, stacked?: boolean) => void;
10098
+ rangeSelectToFirst: (event: React_2.KeyboardEvent<HTMLUListElement>, nodeId: string) => void;
10099
+ rangeSelectToLast: (event: React_2.KeyboardEvent<HTMLUListElement>, nodeId: string) => void;
10100
+ }
10101
+
10062
10102
  declare interface UseTreeViewSelectionParameters<Multiple extends boolean | undefined> {
10063
10103
  /**
10064
10104
  * If `true` selection is disabled.