@hitachivantara/uikit-react-core 5.103.0 → 5.104.1
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/DropDownMenu/DropDownMenu.styles.cjs +3 -1
- package/dist/cjs/Focus/Focus.cjs +6 -4
- package/dist/cjs/Focus/Focus.styles.cjs +14 -0
- package/dist/cjs/List/List.cjs +12 -1
- package/dist/cjs/List/List.styles.cjs +6 -0
- package/dist/cjs/ListContainer/ListItem/ListItem.styles.cjs +7 -2
- package/dist/cjs/Section/Section.styles.cjs +1 -0
- package/dist/cjs/StatusIcon/StatusIcon.cjs +16 -2
- package/dist/cjs/themes/pentahoPlus.cjs +7 -2
- package/dist/esm/DropDownMenu/DropDownMenu.styles.js +3 -1
- package/dist/esm/Focus/Focus.js +6 -4
- package/dist/esm/Focus/Focus.styles.js +14 -0
- package/dist/esm/List/List.js +12 -1
- package/dist/esm/List/List.styles.js +6 -0
- package/dist/esm/ListContainer/ListItem/ListItem.styles.js +7 -2
- package/dist/esm/Section/Section.styles.js +1 -0
- package/dist/esm/StatusIcon/StatusIcon.js +17 -3
- package/dist/esm/themes/pentahoPlus.js +7 -2
- package/dist/types/index.d.ts +13 -3
- package/package.json +6 -5
|
@@ -20,7 +20,9 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvDropDownM
|
|
|
20
20
|
menuListRoot: {
|
|
21
21
|
padding: uikitStyles.theme.space.sm
|
|
22
22
|
},
|
|
23
|
-
menuList: {
|
|
23
|
+
menuList: {
|
|
24
|
+
overflowClipMargin: uikitStyles.theme.space.sm
|
|
25
|
+
}
|
|
24
26
|
});
|
|
25
27
|
exports.staticClasses = staticClasses;
|
|
26
28
|
exports.useClasses = useClasses;
|
package/dist/cjs/Focus/Focus.cjs
CHANGED
|
@@ -84,13 +84,18 @@ const HvFocus = ({
|
|
|
84
84
|
setHasRunConfig(true);
|
|
85
85
|
};
|
|
86
86
|
const addFocusClass = (evt) => {
|
|
87
|
-
|
|
87
|
+
if (focusOnClick) {
|
|
88
|
+
classes.focused.split(" ").forEach((c) => evt.currentTarget.classList.add(c));
|
|
89
|
+
} else {
|
|
90
|
+
classes.focusedVisible.split(" ").forEach((c) => evt.currentTarget.classList.add(c));
|
|
91
|
+
}
|
|
88
92
|
evt.currentTarget.classList.add("HvIsFocused");
|
|
89
93
|
classes?.focus?.split(" ").forEach((c) => evt.currentTarget.classList.add(c));
|
|
90
94
|
};
|
|
91
95
|
const removeFocusClass = () => {
|
|
92
96
|
getFocuses().forEach((element) => {
|
|
93
97
|
classes.focused.split(" ").forEach((c) => element.classList.remove(c));
|
|
98
|
+
classes.focusedVisible.split(" ").forEach((c) => element.classList.remove(c));
|
|
94
99
|
element.classList.remove("HvIsFocused");
|
|
95
100
|
classes?.focus?.split(" ").forEach((c) => element.classList.remove(c));
|
|
96
101
|
});
|
|
@@ -109,9 +114,6 @@ const HvFocus = ({
|
|
|
109
114
|
if (strategy === "grid" && hasCard) return;
|
|
110
115
|
utils.setFocusTo(evt.currentTarget);
|
|
111
116
|
setTabIndex(evt.currentTarget, 0);
|
|
112
|
-
if (!focusOnClick) {
|
|
113
|
-
removeFocusClass();
|
|
114
|
-
}
|
|
115
117
|
};
|
|
116
118
|
const focusAndUpdateIndex = (nextFocus, previousFocus, focusesList) => {
|
|
117
119
|
if (focusesList?.includes(previousFocus)) {
|
|
@@ -21,6 +21,20 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvFocus", {
|
|
|
21
21
|
...focusUtils.outlineStyles
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
+
focusedVisible: {
|
|
25
|
+
"&:focus-visible": {
|
|
26
|
+
...focusUtils.outlineStyles,
|
|
27
|
+
"@media (-webkit-min-device-pixel-ratio:0)": {
|
|
28
|
+
...focusUtils.outlineStyles
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"&:focus-within:has(:focus-visible)": {
|
|
32
|
+
...focusUtils.outlineStyles,
|
|
33
|
+
"@media (-webkit-min-device-pixel-ratio:0)": {
|
|
34
|
+
...focusUtils.outlineStyles
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
24
38
|
focus: {}
|
|
25
39
|
});
|
|
26
40
|
exports.staticClasses = staticClasses;
|
package/dist/cjs/List/List.cjs
CHANGED
|
@@ -160,6 +160,7 @@ const HvList = (props) => {
|
|
|
160
160
|
i
|
|
161
161
|
);
|
|
162
162
|
};
|
|
163
|
+
const renderSeparator = (index) => /* @__PURE__ */ jsxRuntime.jsx("hr", { className: classes.separator }, `separator-${index}`);
|
|
163
164
|
const filteredList = list.filter((it) => !it.isHidden);
|
|
164
165
|
const anySelected = list.map((item) => item.selected && !item.disabled).reduce((result, selected) => result || selected, false);
|
|
165
166
|
const selectedItemIndex = list.findIndex((item) => item.selected);
|
|
@@ -215,6 +216,16 @@ const HvList = (props) => {
|
|
|
215
216
|
condensed,
|
|
216
217
|
ariaMultiSelectable
|
|
217
218
|
]);
|
|
219
|
+
const renderListWithSeparators = () => {
|
|
220
|
+
const items = [];
|
|
221
|
+
filteredList.forEach((item, i) => {
|
|
222
|
+
items.push(renderListItem(item, i));
|
|
223
|
+
if (item.separator && i < filteredList.length - 1) {
|
|
224
|
+
items.push(renderSeparator(i));
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
return items;
|
|
228
|
+
};
|
|
218
229
|
if (filteredList.length === 0) return null;
|
|
219
230
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
220
231
|
multiSelect && useSelector && showSelectAll && renderSelectAll(),
|
|
@@ -229,7 +240,7 @@ const HvList = (props) => {
|
|
|
229
240
|
disableGutters: useSelector,
|
|
230
241
|
"aria-multiselectable": ariaMultiSelectable,
|
|
231
242
|
...others,
|
|
232
|
-
children:
|
|
243
|
+
children: renderListWithSeparators()
|
|
233
244
|
}
|
|
234
245
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
235
246
|
reactWindow.FixedSizeList,
|
|
@@ -29,6 +29,12 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvList", {
|
|
|
29
29
|
backgroundColor: uikitStyles.theme.colors.bgHover
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
+
separator: {
|
|
33
|
+
height: 1,
|
|
34
|
+
backgroundColor: uikitStyles.theme.colors.border,
|
|
35
|
+
margin: `${uikitStyles.theme.space.xs} calc(${uikitStyles.theme.space.sm} * -1)`,
|
|
36
|
+
border: "none"
|
|
37
|
+
},
|
|
32
38
|
link: {
|
|
33
39
|
...uikitStyles.theme.typography.body,
|
|
34
40
|
textDecoration: "none",
|
|
@@ -22,13 +22,18 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvListItem"
|
|
|
22
22
|
"&$condensed": {
|
|
23
23
|
marginBottom: 0
|
|
24
24
|
},
|
|
25
|
-
"&.HvIsFocused": {
|
|
25
|
+
"&.HvIsFocused:focus-visible": {
|
|
26
26
|
...focusUtils.outlineStyles,
|
|
27
27
|
backgroundColor: uikitStyles.theme.colors.bgPageSecondary,
|
|
28
28
|
zIndex: 2
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
focus: {
|
|
31
|
+
focus: {
|
|
32
|
+
"&:focus-visible": {
|
|
33
|
+
backgroundColor: uikitStyles.theme.colors.bgPageSecondary,
|
|
34
|
+
zIndex: 2
|
|
35
|
+
}
|
|
36
|
+
},
|
|
32
37
|
gutters: {
|
|
33
38
|
padding: `0 ${uikitStyles.theme.space.xs}`,
|
|
34
39
|
":has($startAdornment)": {
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
+
const CheckCircle = require("@phosphor-icons/react/CheckCircle");
|
|
6
|
+
const Question = require("@phosphor-icons/react/Question");
|
|
7
|
+
const Warning = require("@phosphor-icons/react/Warning");
|
|
8
|
+
const WarningDiamond = require("@phosphor-icons/react/WarningDiamond");
|
|
5
9
|
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
6
10
|
const icons = require("../icons.cjs");
|
|
7
11
|
const StatusIcon_styles = require("./StatusIcon.styles.cjs");
|
|
@@ -12,6 +16,12 @@ const variantIconMap = {
|
|
|
12
16
|
error: "Fail",
|
|
13
17
|
info: "Info"
|
|
14
18
|
};
|
|
19
|
+
const pentahoIconsMap = {
|
|
20
|
+
success: (props) => /* @__PURE__ */ jsxRuntime.jsx(CheckCircle.CheckCircle, { ...props }),
|
|
21
|
+
warning: (props) => /* @__PURE__ */ jsxRuntime.jsx(Warning.Warning, { ...props }),
|
|
22
|
+
error: (props) => /* @__PURE__ */ jsxRuntime.jsx(WarningDiamond.WarningDiamond, { ...props }),
|
|
23
|
+
info: (props) => /* @__PURE__ */ jsxRuntime.jsx(Question.Question, { ...props })
|
|
24
|
+
};
|
|
15
25
|
const HvStatusIcon = React.forwardRef(function HvStatusIcon2(props, ref) {
|
|
16
26
|
const {
|
|
17
27
|
classes: classesProp,
|
|
@@ -19,9 +29,11 @@ const HvStatusIcon = React.forwardRef(function HvStatusIcon2(props, ref) {
|
|
|
19
29
|
variant = "default",
|
|
20
30
|
customIcon,
|
|
21
31
|
size = "sm",
|
|
22
|
-
type = "full"
|
|
32
|
+
type = "full",
|
|
33
|
+
weight = "regular"
|
|
23
34
|
} = uikitReactUtils.useDefaultProps("HvStatusIcon", props);
|
|
24
35
|
const { classes, cx } = StatusIcon_styles.useClasses(classesProp);
|
|
36
|
+
const { selectedTheme } = uikitReactUtils.useTheme();
|
|
25
37
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
26
38
|
"div",
|
|
27
39
|
{
|
|
@@ -30,7 +42,9 @@ const HvStatusIcon = React.forwardRef(function HvStatusIcon2(props, ref) {
|
|
|
30
42
|
"data-type": type,
|
|
31
43
|
"data-size": size,
|
|
32
44
|
className: cx(classes.root, className),
|
|
33
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(IconContainer.HvIconContainer, { size, children:
|
|
45
|
+
children: selectedTheme === "pentahoPlus" && !customIcon ? /* @__PURE__ */ jsxRuntime.jsx(IconContainer.HvIconContainer, { size, children: pentahoIconsMap[variant]?.({
|
|
46
|
+
weight
|
|
47
|
+
}) }) : /* @__PURE__ */ jsxRuntime.jsx(IconContainer.HvIconContainer, { size, children: customIcon || /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
48
|
icons.HvIcon,
|
|
35
49
|
{
|
|
36
50
|
compact: true,
|
|
@@ -200,7 +200,12 @@ const pentahoPlus = uikitStyles.mergeTheme(uikitStyles.pentahoPlus, {
|
|
|
200
200
|
HvSection: {
|
|
201
201
|
classes: {
|
|
202
202
|
content: {
|
|
203
|
-
backgroundColor: uikitStyles.theme.colors.
|
|
203
|
+
backgroundColor: uikitStyles.theme.colors.bgContainer
|
|
204
|
+
},
|
|
205
|
+
raisedHeader: {
|
|
206
|
+
"& .HvSection-header": {
|
|
207
|
+
boxShadow: "none"
|
|
208
|
+
}
|
|
204
209
|
}
|
|
205
210
|
}
|
|
206
211
|
},
|
|
@@ -670,7 +675,7 @@ const pentahoPlus = uikitStyles.mergeTheme(uikitStyles.pentahoPlus, {
|
|
|
670
675
|
overflow: "hidden",
|
|
671
676
|
height: "fit-content",
|
|
672
677
|
"--rt": uikitStyles.theme.radii.large,
|
|
673
|
-
"& .HvCard-
|
|
678
|
+
"& .HvCard-semanticBar": {
|
|
674
679
|
display: "none"
|
|
675
680
|
}
|
|
676
681
|
},
|
package/dist/esm/Focus/Focus.js
CHANGED
|
@@ -82,13 +82,18 @@ const HvFocus = ({
|
|
|
82
82
|
setHasRunConfig(true);
|
|
83
83
|
};
|
|
84
84
|
const addFocusClass = (evt) => {
|
|
85
|
-
|
|
85
|
+
if (focusOnClick) {
|
|
86
|
+
classes.focused.split(" ").forEach((c) => evt.currentTarget.classList.add(c));
|
|
87
|
+
} else {
|
|
88
|
+
classes.focusedVisible.split(" ").forEach((c) => evt.currentTarget.classList.add(c));
|
|
89
|
+
}
|
|
86
90
|
evt.currentTarget.classList.add("HvIsFocused");
|
|
87
91
|
classes?.focus?.split(" ").forEach((c) => evt.currentTarget.classList.add(c));
|
|
88
92
|
};
|
|
89
93
|
const removeFocusClass = () => {
|
|
90
94
|
getFocuses().forEach((element) => {
|
|
91
95
|
classes.focused.split(" ").forEach((c) => element.classList.remove(c));
|
|
96
|
+
classes.focusedVisible.split(" ").forEach((c) => element.classList.remove(c));
|
|
92
97
|
element.classList.remove("HvIsFocused");
|
|
93
98
|
classes?.focus?.split(" ").forEach((c) => element.classList.remove(c));
|
|
94
99
|
});
|
|
@@ -107,9 +112,6 @@ const HvFocus = ({
|
|
|
107
112
|
if (strategy === "grid" && hasCard) return;
|
|
108
113
|
setFocusTo(evt.currentTarget);
|
|
109
114
|
setTabIndex(evt.currentTarget, 0);
|
|
110
|
-
if (!focusOnClick) {
|
|
111
|
-
removeFocusClass();
|
|
112
|
-
}
|
|
113
115
|
};
|
|
114
116
|
const focusAndUpdateIndex = (nextFocus, previousFocus, focusesList) => {
|
|
115
117
|
if (focusesList?.includes(previousFocus)) {
|
|
@@ -19,6 +19,20 @@ const { staticClasses, useClasses } = createClasses("HvFocus", {
|
|
|
19
19
|
...outlineStyles
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
focusedVisible: {
|
|
23
|
+
"&:focus-visible": {
|
|
24
|
+
...outlineStyles,
|
|
25
|
+
"@media (-webkit-min-device-pixel-ratio:0)": {
|
|
26
|
+
...outlineStyles
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"&:focus-within:has(:focus-visible)": {
|
|
30
|
+
...outlineStyles,
|
|
31
|
+
"@media (-webkit-min-device-pixel-ratio:0)": {
|
|
32
|
+
...outlineStyles
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
22
36
|
focus: {}
|
|
23
37
|
});
|
|
24
38
|
export {
|
package/dist/esm/List/List.js
CHANGED
|
@@ -159,6 +159,7 @@ const HvList = (props) => {
|
|
|
159
159
|
i
|
|
160
160
|
);
|
|
161
161
|
};
|
|
162
|
+
const renderSeparator = (index) => /* @__PURE__ */ jsx("hr", { className: classes.separator }, `separator-${index}`);
|
|
162
163
|
const filteredList = list.filter((it) => !it.isHidden);
|
|
163
164
|
const anySelected = list.map((item) => item.selected && !item.disabled).reduce((result, selected) => result || selected, false);
|
|
164
165
|
const selectedItemIndex = list.findIndex((item) => item.selected);
|
|
@@ -214,6 +215,16 @@ const HvList = (props) => {
|
|
|
214
215
|
condensed,
|
|
215
216
|
ariaMultiSelectable
|
|
216
217
|
]);
|
|
218
|
+
const renderListWithSeparators = () => {
|
|
219
|
+
const items = [];
|
|
220
|
+
filteredList.forEach((item, i) => {
|
|
221
|
+
items.push(renderListItem(item, i));
|
|
222
|
+
if (item.separator && i < filteredList.length - 1) {
|
|
223
|
+
items.push(renderSeparator(i));
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
return items;
|
|
227
|
+
};
|
|
217
228
|
if (filteredList.length === 0) return null;
|
|
218
229
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
219
230
|
multiSelect && useSelector && showSelectAll && renderSelectAll(),
|
|
@@ -228,7 +239,7 @@ const HvList = (props) => {
|
|
|
228
239
|
disableGutters: useSelector,
|
|
229
240
|
"aria-multiselectable": ariaMultiSelectable,
|
|
230
241
|
...others,
|
|
231
|
-
children:
|
|
242
|
+
children: renderListWithSeparators()
|
|
232
243
|
}
|
|
233
244
|
) : /* @__PURE__ */ jsx(
|
|
234
245
|
FixedSizeList,
|
|
@@ -27,6 +27,12 @@ const { staticClasses, useClasses } = createClasses("HvList", {
|
|
|
27
27
|
backgroundColor: theme.colors.bgHover
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
+
separator: {
|
|
31
|
+
height: 1,
|
|
32
|
+
backgroundColor: theme.colors.border,
|
|
33
|
+
margin: `${theme.space.xs} calc(${theme.space.sm} * -1)`,
|
|
34
|
+
border: "none"
|
|
35
|
+
},
|
|
30
36
|
link: {
|
|
31
37
|
...theme.typography.body,
|
|
32
38
|
textDecoration: "none",
|
|
@@ -20,13 +20,18 @@ const { staticClasses, useClasses } = createClasses("HvListItem", {
|
|
|
20
20
|
"&$condensed": {
|
|
21
21
|
marginBottom: 0
|
|
22
22
|
},
|
|
23
|
-
"&.HvIsFocused": {
|
|
23
|
+
"&.HvIsFocused:focus-visible": {
|
|
24
24
|
...outlineStyles,
|
|
25
25
|
backgroundColor: theme.colors.bgPageSecondary,
|
|
26
26
|
zIndex: 2
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
focus: {
|
|
29
|
+
focus: {
|
|
30
|
+
"&:focus-visible": {
|
|
31
|
+
backgroundColor: theme.colors.bgPageSecondary,
|
|
32
|
+
zIndex: 2
|
|
33
|
+
}
|
|
34
|
+
},
|
|
30
35
|
gutters: {
|
|
31
36
|
padding: `0 ${theme.space.xs}`,
|
|
32
37
|
":has($startAdornment)": {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { CheckCircle } from "@phosphor-icons/react/CheckCircle";
|
|
4
|
+
import { Question } from "@phosphor-icons/react/Question";
|
|
5
|
+
import { Warning } from "@phosphor-icons/react/Warning";
|
|
6
|
+
import { WarningDiamond } from "@phosphor-icons/react/WarningDiamond";
|
|
7
|
+
import { useDefaultProps, useTheme } from "@hitachivantara/uikit-react-utils";
|
|
4
8
|
import { HvIcon } from "../icons.js";
|
|
5
9
|
import { useClasses } from "./StatusIcon.styles.js";
|
|
6
10
|
import { staticClasses } from "./StatusIcon.styles.js";
|
|
@@ -11,6 +15,12 @@ const variantIconMap = {
|
|
|
11
15
|
error: "Fail",
|
|
12
16
|
info: "Info"
|
|
13
17
|
};
|
|
18
|
+
const pentahoIconsMap = {
|
|
19
|
+
success: (props) => /* @__PURE__ */ jsx(CheckCircle, { ...props }),
|
|
20
|
+
warning: (props) => /* @__PURE__ */ jsx(Warning, { ...props }),
|
|
21
|
+
error: (props) => /* @__PURE__ */ jsx(WarningDiamond, { ...props }),
|
|
22
|
+
info: (props) => /* @__PURE__ */ jsx(Question, { ...props })
|
|
23
|
+
};
|
|
14
24
|
const HvStatusIcon = forwardRef(function HvStatusIcon2(props, ref) {
|
|
15
25
|
const {
|
|
16
26
|
classes: classesProp,
|
|
@@ -18,9 +28,11 @@ const HvStatusIcon = forwardRef(function HvStatusIcon2(props, ref) {
|
|
|
18
28
|
variant = "default",
|
|
19
29
|
customIcon,
|
|
20
30
|
size = "sm",
|
|
21
|
-
type = "full"
|
|
31
|
+
type = "full",
|
|
32
|
+
weight = "regular"
|
|
22
33
|
} = useDefaultProps("HvStatusIcon", props);
|
|
23
34
|
const { classes, cx } = useClasses(classesProp);
|
|
35
|
+
const { selectedTheme } = useTheme();
|
|
24
36
|
return /* @__PURE__ */ jsx(
|
|
25
37
|
"div",
|
|
26
38
|
{
|
|
@@ -29,7 +41,9 @@ const HvStatusIcon = forwardRef(function HvStatusIcon2(props, ref) {
|
|
|
29
41
|
"data-type": type,
|
|
30
42
|
"data-size": size,
|
|
31
43
|
className: cx(classes.root, className),
|
|
32
|
-
children: /* @__PURE__ */ jsx(HvIconContainer, { size, children:
|
|
44
|
+
children: selectedTheme === "pentahoPlus" && !customIcon ? /* @__PURE__ */ jsx(HvIconContainer, { size, children: pentahoIconsMap[variant]?.({
|
|
45
|
+
weight
|
|
46
|
+
}) }) : /* @__PURE__ */ jsx(HvIconContainer, { size, children: customIcon || /* @__PURE__ */ jsx(
|
|
33
47
|
HvIcon,
|
|
34
48
|
{
|
|
35
49
|
compact: true,
|
|
@@ -198,7 +198,12 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
|
|
|
198
198
|
HvSection: {
|
|
199
199
|
classes: {
|
|
200
200
|
content: {
|
|
201
|
-
backgroundColor: theme.colors.
|
|
201
|
+
backgroundColor: theme.colors.bgContainer
|
|
202
|
+
},
|
|
203
|
+
raisedHeader: {
|
|
204
|
+
"& .HvSection-header": {
|
|
205
|
+
boxShadow: "none"
|
|
206
|
+
}
|
|
202
207
|
}
|
|
203
208
|
}
|
|
204
209
|
},
|
|
@@ -668,7 +673,7 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
|
|
|
668
673
|
overflow: "hidden",
|
|
669
674
|
height: "fit-content",
|
|
670
675
|
"--rt": theme.radii.large,
|
|
671
|
-
"& .HvCard-
|
|
676
|
+
"& .HvCard-semanticBar": {
|
|
672
677
|
display: "none"
|
|
673
678
|
}
|
|
674
679
|
},
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ import { HvThemeColorModeStructure } from '@hitachivantara/uikit-styles';
|
|
|
51
51
|
import { HvThemeContext } from '@hitachivantara/uikit-react-shared';
|
|
52
52
|
import { HvThemeContextValue } from '@hitachivantara/uikit-react-shared';
|
|
53
53
|
import { HvThemeStructure } from '@hitachivantara/uikit-styles';
|
|
54
|
+
import { IconWeight } from '@phosphor-icons/react';
|
|
54
55
|
import { IdType as IdType_2 } from 'react-table';
|
|
55
56
|
import { InputBaseProps } from '@mui/material/InputBase';
|
|
56
57
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -938,6 +939,7 @@ export declare const focusClasses: {
|
|
|
938
939
|
disabled: string;
|
|
939
940
|
focusDisabled: string;
|
|
940
941
|
focused: string;
|
|
942
|
+
focusedVisible: string;
|
|
941
943
|
focus: string;
|
|
942
944
|
};
|
|
943
945
|
|
|
@@ -4534,6 +4536,7 @@ export declare interface HvListProps extends HvBaseProps<HTMLUListElement, "onCh
|
|
|
4534
4536
|
* - icon: The icon.
|
|
4535
4537
|
* - showNavIcon: If true renders the navigation icon on the right.
|
|
4536
4538
|
* - path: The path to navigate to.
|
|
4539
|
+
* - separator: Whether to show a separator after this list item.
|
|
4537
4540
|
*/
|
|
4538
4541
|
values: HvListValue[];
|
|
4539
4542
|
/** If true renders a multi select list. */
|
|
@@ -4582,6 +4585,8 @@ export declare interface HvListValue extends Record<string, any> {
|
|
|
4582
4585
|
path?: string;
|
|
4583
4586
|
params?: object;
|
|
4584
4587
|
tabIndex?: number;
|
|
4588
|
+
/** Whether to show a separator after this list item */
|
|
4589
|
+
separator?: boolean;
|
|
4585
4590
|
}
|
|
4586
4591
|
|
|
4587
4592
|
/**
|
|
@@ -6055,6 +6060,8 @@ export declare interface HvStatusIconProps extends HvBaseProps {
|
|
|
6055
6060
|
size?: HvSize;
|
|
6056
6061
|
/** The type of status icon. */
|
|
6057
6062
|
type?: HvStatusIconType;
|
|
6063
|
+
/** Icon style */
|
|
6064
|
+
weight?: IconWeight;
|
|
6058
6065
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
6059
6066
|
classes?: HvStatusIconClasses;
|
|
6060
6067
|
}
|
|
@@ -7639,6 +7646,7 @@ export declare const listClasses: {
|
|
|
7639
7646
|
truncate: string;
|
|
7640
7647
|
item: string;
|
|
7641
7648
|
itemSelector: string;
|
|
7649
|
+
separator: string;
|
|
7642
7650
|
link: string;
|
|
7643
7651
|
selectAllSelector: string;
|
|
7644
7652
|
};
|
|
@@ -9410,13 +9418,14 @@ declare const useClasses_39: (classesProp?: Partial<Record<"root" | "invalid" |
|
|
|
9410
9418
|
readonly cx: (...args: any) => string;
|
|
9411
9419
|
};
|
|
9412
9420
|
|
|
9413
|
-
declare const useClasses_4: (classesProp?: Partial<Record<"disabled" | "selected" | "root" | "focus" | "focused" | "focusDisabled", string>>, addStatic?: boolean) => {
|
|
9421
|
+
declare const useClasses_4: (classesProp?: Partial<Record<"disabled" | "selected" | "root" | "focus" | "focused" | "focusDisabled" | "focusedVisible", string>>, addStatic?: boolean) => {
|
|
9414
9422
|
readonly classes: {
|
|
9415
9423
|
root: string;
|
|
9416
9424
|
selected: string;
|
|
9417
9425
|
disabled: string;
|
|
9418
9426
|
focusDisabled: string;
|
|
9419
9427
|
focused: string;
|
|
9428
|
+
focusedVisible: string;
|
|
9420
9429
|
focus: string;
|
|
9421
9430
|
};
|
|
9422
9431
|
readonly css: any;
|
|
@@ -10226,7 +10235,7 @@ declare const useClasses_87: (classesProp?: Partial<Record<"a", string>>, addSta
|
|
|
10226
10235
|
readonly cx: (...args: any) => string;
|
|
10227
10236
|
};
|
|
10228
10237
|
|
|
10229
|
-
declare const useClasses_88: (classesProp?: Partial<Record<"link" | "root" | "item" | "virtualizedRoot" | "selectorRoot" | "selectorContainer" | "box" | "truncate" | "itemSelector" | "selectAllSelector", string>>, addStatic?: boolean) => {
|
|
10238
|
+
declare const useClasses_88: (classesProp?: Partial<Record<"link" | "separator" | "root" | "item" | "virtualizedRoot" | "selectorRoot" | "selectorContainer" | "box" | "truncate" | "itemSelector" | "selectAllSelector", string>>, addStatic?: boolean) => {
|
|
10230
10239
|
readonly classes: {
|
|
10231
10240
|
root: string;
|
|
10232
10241
|
virtualizedRoot: string;
|
|
@@ -10236,6 +10245,7 @@ declare const useClasses_88: (classesProp?: Partial<Record<"link" | "root" | "it
|
|
|
10236
10245
|
truncate: string;
|
|
10237
10246
|
item: string;
|
|
10238
10247
|
itemSelector: string;
|
|
10248
|
+
separator: string;
|
|
10239
10249
|
link: string;
|
|
10240
10250
|
selectAllSelector: string;
|
|
10241
10251
|
};
|
|
@@ -10243,7 +10253,7 @@ declare const useClasses_88: (classesProp?: Partial<Record<"link" | "root" | "it
|
|
|
10243
10253
|
readonly cx: (...args: any) => string;
|
|
10244
10254
|
};
|
|
10245
10255
|
|
|
10246
|
-
declare const useClasses_89: (classesProp?: Partial<Record<"overlay" | "label" | "small" | "hidden" | "root" | "blur" | "
|
|
10256
|
+
declare const useClasses_89: (classesProp?: Partial<Record<"overlay" | "label" | "small" | "hidden" | "root" | "blur" | "regular" | "barContainer" | "loadingBar" | "smallColor" | "regularColor", string>>, addStatic?: boolean) => {
|
|
10247
10257
|
readonly classes: {
|
|
10248
10258
|
root: string;
|
|
10249
10259
|
barContainer: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.104.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "UI Kit Core React components.",
|
|
@@ -32,11 +32,12 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/cache": "^11.11.0",
|
|
34
34
|
"@emotion/serialize": "^1.1.2",
|
|
35
|
-
"@hitachivantara/uikit-react-shared": "^5.5.
|
|
36
|
-
"@hitachivantara/uikit-react-utils": "^0.2.
|
|
37
|
-
"@hitachivantara/uikit-styles": "^5.
|
|
35
|
+
"@hitachivantara/uikit-react-shared": "^5.5.5",
|
|
36
|
+
"@hitachivantara/uikit-react-utils": "^0.2.45",
|
|
37
|
+
"@hitachivantara/uikit-styles": "^5.51.0",
|
|
38
38
|
"@internationalized/date": "^3.2.0",
|
|
39
39
|
"@mui/base": "5.0.0-beta.68",
|
|
40
|
+
"@phosphor-icons/react": "^2.1.7",
|
|
40
41
|
"@popperjs/core": "^2.11.8",
|
|
41
42
|
"@react-aria/datepicker": "^3.9.0",
|
|
42
43
|
"@react-stately/datepicker": "^3.9.0",
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
"access": "public",
|
|
62
63
|
"directory": "package"
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "108aeb035cc208aa2603071db6d10135d1501f7e",
|
|
65
66
|
"exports": {
|
|
66
67
|
".": {
|
|
67
68
|
"types": "./dist/types/index.d.ts",
|