@hitachivantara/uikit-react-core 6.4.1 → 6.4.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/AvatarGroup/AvatarGroupContext.js +1 -1
- package/dist/BaseCheckBox/CheckBoxIcon.js +1 -1
- package/dist/BaseRadio/RadioIcon.js +1 -1
- package/dist/Calendar/SingleCalendar/CalendarCell.js +1 -2
- package/dist/Calendar/model.js +0 -1
- package/dist/ColorPicker/Swatch.js +1 -1
- package/dist/Controls/context/ControlsContext.js +1 -2
- package/dist/DatePicker/DatePicker.js +1 -1
- package/dist/DatePicker/utils.js +1 -1
- package/dist/Dialog/context.js +1 -1
- package/dist/Dropdown/Dropdown.js +1 -1
- package/dist/Dropdown/List/List.js +1 -1
- package/dist/FilterGroup/FilterContent/FilterContent.js +14 -5
- package/dist/FilterGroup/FilterContent/HeaderButton.js +104 -0
- package/dist/FilterGroup/LeftPanel/LeftPanel.js +4 -1
- package/dist/Header/Header.styles.js +1 -0
- package/dist/IconContainer/IconContainer.js +1 -1
- package/dist/OverflowTooltip/OverflowTooltip.js +16 -26
- package/dist/QueryBuilder/utils/index.js +1 -1
- package/dist/Radio/Radio.js +1 -1
- package/dist/Select/OptionGroup.js +1 -1
- package/dist/SnackbarProvider/SnackbarProvider.js +2 -2
- package/dist/Switch/Switch.js +1 -1
- package/dist/Table/TableHeader/TableHeader.js +1 -1
- package/dist/Table/hooks/useHvRowSelection.js +1 -0
- package/dist/Table/renderers/renderers.js +2 -2
- package/dist/TextArea/TextArea.js +1 -1
- package/dist/TreeView/TreeItem/DefaultContent.js +1 -1
- package/dist/index.d.ts +54 -14
- package/dist/index.js +292 -292
- package/dist/themes/pentaho.js +3 -2
- package/dist/utils/Callout.js +1 -1
- package/dist/utils/focusableElementFinder.js +0 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { useDefaultProps,
|
|
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,
|
|
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", {
|
package/dist/Calendar/model.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useDefaultProps,
|
|
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", {
|
|
@@ -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 = {
|
package/dist/DatePicker/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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;
|
package/dist/Dialog/context.js
CHANGED
|
@@ -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;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useContext, useRef, useMemo } from "react";
|
|
3
|
-
import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
|
|
3
|
+
import { useDefaultProps, useTheme } from "@hitachivantara/uikit-react-utils";
|
|
4
4
|
import { HvIcon } from "../../icons.js";
|
|
5
5
|
import { setId } from "../../utils/setId.js";
|
|
6
6
|
import { HvFilterGroupContext } from "../FilterGroupContext.js";
|
|
7
7
|
import { useClasses } from "./FilterContent.styles.js";
|
|
8
8
|
import { staticClasses } from "./FilterContent.styles.js";
|
|
9
|
+
import { HvHeaderButton } from "./HeaderButton.js";
|
|
9
10
|
import { HvFilterGroupLeftPanel } from "../LeftPanel/LeftPanel.js";
|
|
10
11
|
import { HvFilterGroupRightPanel } from "../RightPanel/RightPanel.js";
|
|
11
12
|
import { HvTypography } from "../../Typography/Typography.js";
|
|
@@ -32,11 +33,13 @@ const HvFilterGroupContent = forwardRef(function HvFilterGroupContent2(props, re
|
|
|
32
33
|
height,
|
|
33
34
|
leftEmptyElement,
|
|
34
35
|
rightEmptyElement,
|
|
36
|
+
iconOnly,
|
|
35
37
|
classes: classesProp,
|
|
36
38
|
...others
|
|
37
39
|
} = useDefaultProps("HvFilterGroupContent", props);
|
|
38
|
-
const { classes } = useClasses(classesProp);
|
|
39
40
|
const [filterGroupOpen, setFilterGroupOpen] = useState(false);
|
|
41
|
+
const { classes } = useClasses(classesProp);
|
|
42
|
+
const { activeTheme } = useTheme();
|
|
40
43
|
const {
|
|
41
44
|
defaultValue,
|
|
42
45
|
filterValues,
|
|
@@ -90,13 +93,13 @@ const HvFilterGroupContent = forwardRef(function HvFilterGroupContent2(props, re
|
|
|
90
93
|
disabled,
|
|
91
94
|
disablePortal,
|
|
92
95
|
variableWidth: true,
|
|
93
|
-
placement: horizontalPlacement,
|
|
94
96
|
expanded: filterGroupOpen,
|
|
97
|
+
placement: horizontalPlacement,
|
|
95
98
|
onToggle: handleToggle,
|
|
96
99
|
onClickOutside: onCancelHandler,
|
|
97
100
|
onContainerCreation: focusOnContainer,
|
|
98
|
-
placeholder: Header,
|
|
99
|
-
adornment: /* @__PURE__ */ jsx(HvFilterGroupCounter, {}),
|
|
101
|
+
placeholder: activeTheme?.name === "pentahoPlus" ? void 0 : Header,
|
|
102
|
+
adornment: activeTheme?.name === "pentahoPlus" ? void 0 : /* @__PURE__ */ jsx(HvFilterGroupCounter, {}),
|
|
100
103
|
popperProps: {
|
|
101
104
|
modifiers: [{ name: "preventOverflow", enabled: escapeWithReference }]
|
|
102
105
|
},
|
|
@@ -106,6 +109,12 @@ const HvFilterGroupContent = forwardRef(function HvFilterGroupContent2(props, re
|
|
|
106
109
|
"aria-invalid": status === "invalid" ? true : void 0,
|
|
107
110
|
"aria-errormessage": status === "invalid" ? setId(id, "error") : void 0,
|
|
108
111
|
"aria-describedby": [description && setId(id, "description"), ariaDescribedBy].join(" ").trim() || void 0,
|
|
112
|
+
...activeTheme?.name === "pentahoPlus" && {
|
|
113
|
+
headerComponent: HvHeaderButton,
|
|
114
|
+
iconOnly,
|
|
115
|
+
title: labels?.placeholder,
|
|
116
|
+
count: filterValues?.flat().length ?? 0
|
|
117
|
+
},
|
|
109
118
|
...others,
|
|
110
119
|
children: [
|
|
111
120
|
/* @__PURE__ */ jsx("div", { ref: focusTarget, tabIndex: -1 }),
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { useDefaultProps, createClasses } from "@hitachivantara/uikit-react-utils";
|
|
4
|
+
import { theme } from "@hitachivantara/uikit-styles";
|
|
5
|
+
import { HvIcon } from "../../icons.js";
|
|
6
|
+
import { HvBadge } from "../../Badge/Badge.js";
|
|
7
|
+
import { HvIconButton } from "../../IconButton/IconButton.js";
|
|
8
|
+
import { HvButton } from "../../Button/Button.js";
|
|
9
|
+
import { HvTypography } from "../../Typography/Typography.js";
|
|
10
|
+
const { useClasses } = createClasses("HvHeaderButton", {
|
|
11
|
+
iconOnly: {
|
|
12
|
+
"& > .HvBadge-badge": {
|
|
13
|
+
minWidth: "unset !important",
|
|
14
|
+
minHeight: "unset !important"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
button: {
|
|
18
|
+
border: `1px solid ${theme.colors.primaryDimmed}`,
|
|
19
|
+
borderRadius: theme.radii.full
|
|
20
|
+
},
|
|
21
|
+
headerContent: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
alignItems: "center",
|
|
24
|
+
gap: theme.space.xxs
|
|
25
|
+
},
|
|
26
|
+
badgeRoot: {
|
|
27
|
+
width: 0,
|
|
28
|
+
marginRight: theme.space.sm
|
|
29
|
+
},
|
|
30
|
+
badge: {
|
|
31
|
+
position: "relative"
|
|
32
|
+
},
|
|
33
|
+
badgeIconOnly: {
|
|
34
|
+
"&&>div:last-of-type": {
|
|
35
|
+
minWidth: "unset",
|
|
36
|
+
minHeight: "unset"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
badgeIcon: {
|
|
40
|
+
minHeight: 0,
|
|
41
|
+
minWidth: 0
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const HvHeaderButton = forwardRef((props, ref) => {
|
|
45
|
+
const {
|
|
46
|
+
onClick,
|
|
47
|
+
iconOnly,
|
|
48
|
+
count = 0,
|
|
49
|
+
disabled,
|
|
50
|
+
title = "Filter",
|
|
51
|
+
classes: classesProp,
|
|
52
|
+
...others
|
|
53
|
+
} = useDefaultProps("HvHeaderButton", props);
|
|
54
|
+
const { classes } = useClasses(classesProp, false);
|
|
55
|
+
return iconOnly ? /* @__PURE__ */ jsx(
|
|
56
|
+
HvBadge,
|
|
57
|
+
{
|
|
58
|
+
ref,
|
|
59
|
+
label: count,
|
|
60
|
+
showCount: true,
|
|
61
|
+
className: classes.badgeIconOnly,
|
|
62
|
+
icon: /* @__PURE__ */ jsx(
|
|
63
|
+
HvIconButton,
|
|
64
|
+
{
|
|
65
|
+
onClick,
|
|
66
|
+
title,
|
|
67
|
+
disabled,
|
|
68
|
+
className: classes.button,
|
|
69
|
+
...others,
|
|
70
|
+
children: /* @__PURE__ */ jsx(HvIcon, { name: "Filters" })
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
) : /* @__PURE__ */ jsx(
|
|
75
|
+
HvButton,
|
|
76
|
+
{
|
|
77
|
+
ref,
|
|
78
|
+
disabled,
|
|
79
|
+
variant: "secondarySubtle",
|
|
80
|
+
onClick,
|
|
81
|
+
startIcon: /* @__PURE__ */ jsx(HvIcon, { name: "Filters" }),
|
|
82
|
+
...others,
|
|
83
|
+
role: "combobox",
|
|
84
|
+
children: /* @__PURE__ */ jsxs("div", { className: classes.headerContent, children: [
|
|
85
|
+
/* @__PURE__ */ jsx(HvTypography, { variant: "label", children: title }),
|
|
86
|
+
/* @__PURE__ */ jsx(
|
|
87
|
+
HvBadge,
|
|
88
|
+
{
|
|
89
|
+
showCount: true,
|
|
90
|
+
label: count,
|
|
91
|
+
classes: {
|
|
92
|
+
root: classes.badgeRoot,
|
|
93
|
+
badge: classes.badge,
|
|
94
|
+
badgeIcon: classes.badgeIcon
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] })
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
});
|
|
102
|
+
export {
|
|
103
|
+
HvHeaderButton
|
|
104
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
+
import { useTheme } from "@hitachivantara/uikit-react-utils";
|
|
4
|
+
import { HvIcon } from "../../icons.js";
|
|
3
5
|
import { HvFilterGroupContext } from "../FilterGroupContext.js";
|
|
4
6
|
import { useClasses } from "./LeftPanel.styles.js";
|
|
5
7
|
import { staticClasses } from "./LeftPanel.styles.js";
|
|
@@ -14,6 +16,7 @@ const HvFilterGroupLeftPanel = ({
|
|
|
14
16
|
classes: classesProp
|
|
15
17
|
}) => {
|
|
16
18
|
const { classes } = useClasses(classesProp);
|
|
19
|
+
const { activeTheme } = useTheme();
|
|
17
20
|
const { filterOptions, activeGroup, setActiveGroup } = useContext(HvFilterGroupContext);
|
|
18
21
|
return /* @__PURE__ */ jsx(HvPanel, { className, children: filterOptions.length > 0 ? /* @__PURE__ */ jsx(HvListContainer, { condensed: true, interactive: true, children: filterOptions.map((group, index) => /* @__PURE__ */ jsx(
|
|
19
22
|
HvListItem,
|
|
@@ -21,7 +24,7 @@ const HvFilterGroupLeftPanel = ({
|
|
|
21
24
|
className: classes.listItem,
|
|
22
25
|
onClick: () => setActiveGroup(index),
|
|
23
26
|
selected: filterOptions[activeGroup].id === group.id,
|
|
24
|
-
endAdornment: /* @__PURE__ */ jsx(HvFilterGroupCounter, { groupId: group.id }),
|
|
27
|
+
endAdornment: activeTheme?.name === "pentahoPlus" ? /* @__PURE__ */ jsx(HvIcon, { name: "CaretRight" }) : /* @__PURE__ */ jsx(HvFilterGroupCounter, { groupId: group.id }),
|
|
25
28
|
children: /* @__PURE__ */ jsx(HvOverflowTooltip, { data: group.name })
|
|
26
29
|
},
|
|
27
30
|
group.id || group.name
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import {
|
|
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
|
-
|
|
18
|
-
|
|
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
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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
|
);
|
package/dist/Radio/Radio.js
CHANGED
|
@@ -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 {
|
|
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,
|
|
3
|
-
import {
|
|
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";
|
package/dist/Switch/Switch.js
CHANGED
|
@@ -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 {
|
|
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,
|
|
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 {
|
|
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: {},
|