@hitachivantara/uikit-react-core 5.105.1 → 5.106.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.
@@ -31,7 +31,7 @@ const HvBannerContent = React.forwardRef(function HvBannerContent2(props, ref) {
31
31
  ref,
32
32
  id,
33
33
  variant,
34
- showClose: true,
34
+ showClose: onClose !== void 0,
35
35
  showIcon,
36
36
  customIcon,
37
37
  classes: {
@@ -7,7 +7,8 @@ const { useClasses, staticClasses } = uikitReactUtils.createClasses("HvBannerCon
7
7
  minWidth: "100%",
8
8
  width: "100%",
9
9
  position: "relative",
10
- gap: uikitStyles.theme.space.xs
10
+ gap: uikitStyles.theme.space.xs,
11
+ minHeight: 48
11
12
  },
12
13
  success: {},
13
14
  warning: {},
@@ -67,7 +67,7 @@ const HvDialog = (props) => {
67
67
  },
68
68
  ...others,
69
69
  children: [
70
- /* @__PURE__ */ jsxRuntime.jsx(
70
+ onClose && /* @__PURE__ */ jsxRuntime.jsx(
71
71
  IconButton.HvIconButton,
72
72
  {
73
73
  title: buttonTitle,
@@ -55,7 +55,7 @@ const HvDrawer = React.forwardRef(function HvDrawer2(props, ref) {
55
55
  onClose: handleOnClose,
56
56
  ...others,
57
57
  children: [
58
- /* @__PURE__ */ jsxRuntime.jsx(
58
+ onClose && /* @__PURE__ */ jsxRuntime.jsx(
59
59
  IconButton.HvIconButton,
60
60
  {
61
61
  id: setId.setId(id, "close"),
@@ -25,6 +25,7 @@ const HvSnackbar = React.forwardRef(function HvSnackbar2(props, ref) {
25
25
  autoHideDuration = 5e3,
26
26
  variant,
27
27
  showIcon,
28
+ showClose,
28
29
  customIcon,
29
30
  action,
30
31
  actionCallback,
@@ -81,6 +82,7 @@ const HvSnackbar = React.forwardRef(function HvSnackbar2(props, ref) {
81
82
  variant,
82
83
  customIcon,
83
84
  showIcon,
85
+ showClose,
84
86
  action,
85
87
  actionCallback,
86
88
  onAction,
@@ -14,6 +14,7 @@ const HvSnackbarContent = React.forwardRef(function HvSnackbarContent2(props, re
14
14
  label,
15
15
  variant = "default",
16
16
  showIcon,
17
+ showClose,
17
18
  customIcon,
18
19
  action,
19
20
  actionCallback,
@@ -37,6 +38,7 @@ const HvSnackbarContent = React.forwardRef(function HvSnackbarContent2(props, re
37
38
  action: classes.action
38
39
  },
39
40
  showIcon,
41
+ showClose,
40
42
  customIcon,
41
43
  actions: isActionGeneric(action) ? [action] : action,
42
44
  onClose,
@@ -2,10 +2,6 @@
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/dist/csr/CheckCircle");
6
- const Question = require("@phosphor-icons/react/dist/csr/Question");
7
- const Warning = require("@phosphor-icons/react/dist/csr/Warning");
8
- const WarningDiamond = require("@phosphor-icons/react/dist/csr/WarningDiamond");
9
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
10
6
  const icons = require("../icons.cjs");
11
7
  const StatusIcon_styles = require("./StatusIcon.styles.cjs");
@@ -17,10 +13,62 @@ const variantIconMap = {
17
13
  info: "Info"
18
14
  };
19
15
  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 })
16
+ success: {
17
+ regular: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }),
18
+ fill: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z" }),
19
+ duotone: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
20
+ /* @__PURE__ */ jsxRuntime.jsx(
21
+ "path",
22
+ {
23
+ d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
24
+ opacity: "0.2"
25
+ }
26
+ ),
27
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" })
28
+ ] })
29
+ },
30
+ warning: {
31
+ regular: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z" }),
32
+ fill: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z" }),
33
+ duotone: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
34
+ /* @__PURE__ */ jsxRuntime.jsx(
35
+ "path",
36
+ {
37
+ d: "M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",
38
+ opacity: "0.2"
39
+ }
40
+ ),
41
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z" })
42
+ ] })
43
+ },
44
+ error: {
45
+ regular: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M128,72a8,8,0,0,1,8,8v56a8,8,0,0,1-16,0V80A8,8,0,0,1,128,72ZM116,172a12,12,0,1,0,12-12A12,12,0,0,0,116,172Zm124-44a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Zm-16,0L128,32,32,128,128,224h0Z" }),
46
+ fill: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M235.33,116.72,139.28,20.66a16,16,0,0,0-22.56,0l-96,96.06a16,16,0,0,0,0,22.56l96.05,96.06h0a16,16,0,0,0,22.56,0l96.05-96.06a16,16,0,0,0,0-22.56ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z" }),
47
+ duotone: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
48
+ /* @__PURE__ */ jsxRuntime.jsx(
49
+ "path",
50
+ {
51
+ d: "M229.67,133.62l-96,96a7.94,7.94,0,0,1-11.24,0l-96-96a7.94,7.94,0,0,1,0-11.24l96.05-96a7.94,7.94,0,0,1,11.24,0l96,96.05A7.94,7.94,0,0,1,229.67,133.62Z",
52
+ opacity: "0.2"
53
+ }
54
+ ),
55
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M128,72a8,8,0,0,1,8,8v56a8,8,0,0,1-16,0V80A8,8,0,0,1,128,72ZM116,172a12,12,0,1,0,12-12A12,12,0,0,0,116,172Zm124-44a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Zm-16,0L128,32,32,128,128,224h0Z" })
56
+ ] })
57
+ },
58
+ info: {
59
+ regular: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }),
60
+ fill: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z" }),
61
+ duotone: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
62
+ /* @__PURE__ */ jsxRuntime.jsx(
63
+ "path",
64
+ {
65
+ d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
66
+ opacity: "0.2"
67
+ }
68
+ ),
69
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" })
70
+ ] })
71
+ }
24
72
  };
25
73
  const HvStatusIcon = React.forwardRef(function HvStatusIcon2(props, ref) {
26
74
  const {
@@ -42,9 +90,7 @@ const HvStatusIcon = React.forwardRef(function HvStatusIcon2(props, ref) {
42
90
  "data-type": type,
43
91
  "data-size": size,
44
92
  className: cx(classes.root, className),
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(
93
+ children: selectedTheme === "pentahoPlus" && !customIcon ? /* @__PURE__ */ jsxRuntime.jsx(IconContainer.HvIconContainer, { size, children: /* @__PURE__ */ jsxRuntime.jsx(icons.SvgBase, { viewBox: "0 0 256 256", className: classes.icon, children: pentahoIconsMap[variant]?.[weight] }) }) : /* @__PURE__ */ jsxRuntime.jsx(IconContainer.HvIconContainer, { size, children: customIcon || /* @__PURE__ */ jsxRuntime.jsx(
48
94
  icons.HvIcon,
49
95
  {
50
96
  compact: true,
@@ -202,6 +202,11 @@ const pentahoPlus = uikitStyles.mergeTheme(uikitStyles.pentahoPlus, {
202
202
  content: {
203
203
  backgroundColor: uikitStyles.theme.colors.bgContainer
204
204
  },
205
+ header: {
206
+ minHeight: 48,
207
+ padding: uikitStyles.theme.spacing("xs", "sm"),
208
+ gap: uikitStyles.theme.space.xs
209
+ },
205
210
  raisedHeader: {
206
211
  "& .HvSection-header": {
207
212
  boxShadow: "none"
@@ -100,7 +100,10 @@ const HvCallout = React.forwardRef(function HvCallout2(props, ref) {
100
100
  className: classes.actionCustom,
101
101
  variant: activeTheme?.snackbar.actionButtonVariant,
102
102
  actions,
103
- onAction
103
+ onAction,
104
+ style: {
105
+ marginTop: actionsPosition === "bottom-right" ? "auto" : void 0
106
+ }
104
107
  }
105
108
  );
106
109
  const showCustomActions = actions && actionsPosition === "bottom-right";
@@ -30,7 +30,7 @@ const HvBannerContent = forwardRef(function HvBannerContent2(props, ref) {
30
30
  ref,
31
31
  id,
32
32
  variant,
33
- showClose: true,
33
+ showClose: onClose !== void 0,
34
34
  showIcon,
35
35
  customIcon,
36
36
  classes: {
@@ -5,7 +5,8 @@ const { useClasses, staticClasses } = createClasses("HvBannerContent", {
5
5
  minWidth: "100%",
6
6
  width: "100%",
7
7
  position: "relative",
8
- gap: theme.space.xs
8
+ gap: theme.space.xs,
9
+ minHeight: 48
9
10
  },
10
11
  success: {},
11
12
  warning: {},
@@ -64,7 +64,7 @@ const HvDialog = (props) => {
64
64
  },
65
65
  ...others,
66
66
  children: [
67
- /* @__PURE__ */ jsx(
67
+ onClose && /* @__PURE__ */ jsx(
68
68
  HvIconButton,
69
69
  {
70
70
  title: buttonTitle,
@@ -52,7 +52,7 @@ const HvDrawer = forwardRef(function HvDrawer2(props, ref) {
52
52
  onClose: handleOnClose,
53
53
  ...others,
54
54
  children: [
55
- /* @__PURE__ */ jsx(
55
+ onClose && /* @__PURE__ */ jsx(
56
56
  HvIconButton,
57
57
  {
58
58
  id: setId(id, "close"),
@@ -21,6 +21,7 @@ const HvSnackbar = forwardRef(function HvSnackbar2(props, ref) {
21
21
  autoHideDuration = 5e3,
22
22
  variant,
23
23
  showIcon,
24
+ showClose,
24
25
  customIcon,
25
26
  action,
26
27
  actionCallback,
@@ -77,6 +78,7 @@ const HvSnackbar = forwardRef(function HvSnackbar2(props, ref) {
77
78
  variant,
78
79
  customIcon,
79
80
  showIcon,
81
+ showClose,
80
82
  action,
81
83
  actionCallback,
82
84
  onAction,
@@ -13,6 +13,7 @@ const HvSnackbarContent = forwardRef(function HvSnackbarContent2(props, ref) {
13
13
  label,
14
14
  variant = "default",
15
15
  showIcon,
16
+ showClose,
16
17
  customIcon,
17
18
  action,
18
19
  actionCallback,
@@ -36,6 +37,7 @@ const HvSnackbarContent = forwardRef(function HvSnackbarContent2(props, ref) {
36
37
  action: classes.action
37
38
  },
38
39
  showIcon,
40
+ showClose,
39
41
  customIcon,
40
42
  actions: isActionGeneric(action) ? [action] : action,
41
43
  onClose,
@@ -1,11 +1,7 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
- import { CheckCircle } from "@phosphor-icons/react/dist/csr/CheckCircle";
4
- import { Question } from "@phosphor-icons/react/dist/csr/Question";
5
- import { Warning } from "@phosphor-icons/react/dist/csr/Warning";
6
- import { WarningDiamond } from "@phosphor-icons/react/dist/csr/WarningDiamond";
7
3
  import { useDefaultProps, useTheme } from "@hitachivantara/uikit-react-utils";
8
- import { HvIcon } from "../icons.js";
4
+ import { SvgBase, HvIcon } from "../icons.js";
9
5
  import { useClasses } from "./StatusIcon.styles.js";
10
6
  import { staticClasses } from "./StatusIcon.styles.js";
11
7
  import { HvIconContainer } from "../IconContainer/IconContainer.js";
@@ -16,10 +12,62 @@ const variantIconMap = {
16
12
  info: "Info"
17
13
  };
18
14
  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 })
15
+ success: {
16
+ regular: /* @__PURE__ */ jsx("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }),
17
+ fill: /* @__PURE__ */ jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z" }),
18
+ duotone: /* @__PURE__ */ jsxs(Fragment, { children: [
19
+ /* @__PURE__ */ jsx(
20
+ "path",
21
+ {
22
+ d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
23
+ opacity: "0.2"
24
+ }
25
+ ),
26
+ /* @__PURE__ */ jsx("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" })
27
+ ] })
28
+ },
29
+ warning: {
30
+ regular: /* @__PURE__ */ jsx("path", { d: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z" }),
31
+ fill: /* @__PURE__ */ jsx("path", { d: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z" }),
32
+ duotone: /* @__PURE__ */ jsxs(Fragment, { children: [
33
+ /* @__PURE__ */ jsx(
34
+ "path",
35
+ {
36
+ d: "M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",
37
+ opacity: "0.2"
38
+ }
39
+ ),
40
+ /* @__PURE__ */ jsx("path", { d: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z" })
41
+ ] })
42
+ },
43
+ error: {
44
+ regular: /* @__PURE__ */ jsx("path", { d: "M128,72a8,8,0,0,1,8,8v56a8,8,0,0,1-16,0V80A8,8,0,0,1,128,72ZM116,172a12,12,0,1,0,12-12A12,12,0,0,0,116,172Zm124-44a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Zm-16,0L128,32,32,128,128,224h0Z" }),
45
+ fill: /* @__PURE__ */ jsx("path", { d: "M235.33,116.72,139.28,20.66a16,16,0,0,0-22.56,0l-96,96.06a16,16,0,0,0,0,22.56l96.05,96.06h0a16,16,0,0,0,22.56,0l96.05-96.06a16,16,0,0,0,0-22.56ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z" }),
46
+ duotone: /* @__PURE__ */ jsxs(Fragment, { children: [
47
+ /* @__PURE__ */ jsx(
48
+ "path",
49
+ {
50
+ d: "M229.67,133.62l-96,96a7.94,7.94,0,0,1-11.24,0l-96-96a7.94,7.94,0,0,1,0-11.24l96.05-96a7.94,7.94,0,0,1,11.24,0l96,96.05A7.94,7.94,0,0,1,229.67,133.62Z",
51
+ opacity: "0.2"
52
+ }
53
+ ),
54
+ /* @__PURE__ */ jsx("path", { d: "M128,72a8,8,0,0,1,8,8v56a8,8,0,0,1-16,0V80A8,8,0,0,1,128,72ZM116,172a12,12,0,1,0,12-12A12,12,0,0,0,116,172Zm124-44a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Zm-16,0L128,32,32,128,128,224h0Z" })
55
+ ] })
56
+ },
57
+ info: {
58
+ regular: /* @__PURE__ */ jsx("path", { d: "M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" }),
59
+ fill: /* @__PURE__ */ jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z" }),
60
+ duotone: /* @__PURE__ */ jsxs(Fragment, { children: [
61
+ /* @__PURE__ */ jsx(
62
+ "path",
63
+ {
64
+ d: "M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",
65
+ opacity: "0.2"
66
+ }
67
+ ),
68
+ /* @__PURE__ */ jsx("path", { d: "M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" })
69
+ ] })
70
+ }
23
71
  };
24
72
  const HvStatusIcon = forwardRef(function HvStatusIcon2(props, ref) {
25
73
  const {
@@ -41,9 +89,7 @@ const HvStatusIcon = forwardRef(function HvStatusIcon2(props, ref) {
41
89
  "data-type": type,
42
90
  "data-size": size,
43
91
  className: cx(classes.root, className),
44
- children: selectedTheme === "pentahoPlus" && !customIcon ? /* @__PURE__ */ jsx(HvIconContainer, { size, children: pentahoIconsMap[variant]?.({
45
- weight
46
- }) }) : /* @__PURE__ */ jsx(HvIconContainer, { size, children: customIcon || /* @__PURE__ */ jsx(
92
+ children: selectedTheme === "pentahoPlus" && !customIcon ? /* @__PURE__ */ jsx(HvIconContainer, { size, children: /* @__PURE__ */ jsx(SvgBase, { viewBox: "0 0 256 256", className: classes.icon, children: pentahoIconsMap[variant]?.[weight] }) }) : /* @__PURE__ */ jsx(HvIconContainer, { size, children: customIcon || /* @__PURE__ */ jsx(
47
93
  HvIcon,
48
94
  {
49
95
  compact: true,
@@ -200,6 +200,11 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
200
200
  content: {
201
201
  backgroundColor: theme.colors.bgContainer
202
202
  },
203
+ header: {
204
+ minHeight: 48,
205
+ padding: theme.spacing("xs", "sm"),
206
+ gap: theme.space.xs
207
+ },
203
208
  raisedHeader: {
204
209
  "& .HvSection-header": {
205
210
  boxShadow: "none"
@@ -96,7 +96,10 @@ const HvCallout = forwardRef(function HvCallout2(props, ref) {
96
96
  className: classes.actionCustom,
97
97
  variant: activeTheme?.snackbar.actionButtonVariant,
98
98
  actions,
99
- onAction
99
+ onAction,
100
+ style: {
101
+ marginTop: actionsPosition === "bottom-right" ? "auto" : void 0
102
+ }
100
103
  }
101
104
  );
102
105
  const showCustomActions = actions && actionsPosition === "bottom-right";
@@ -51,7 +51,6 @@ 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';
55
54
  import { IdType as IdType_2 } from 'react-table';
56
55
  import { InputBaseProps } from '@mui/material/InputBase';
57
56
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -5912,6 +5911,8 @@ export declare interface HvSnackbarContentProps extends Omit<SnackbarContentProp
5912
5911
  variant?: HvSnackbarVariant;
5913
5912
  /** Controls if the associated icon to the variant should be shown. */
5914
5913
  showIcon?: boolean;
5914
+ /** Controls whether to show the close icon */
5915
+ showClose?: boolean;
5915
5916
  /** Custom icon to replace the variant default. */
5916
5917
  customIcon?: React.ReactNode;
5917
5918
  /** Action to display. */
@@ -5953,6 +5954,8 @@ export declare interface HvSnackbarProps extends Omit<SnackbarProps, "action" |
5953
5954
  customIcon?: React.ReactNode;
5954
5955
  /** Controls if the associated icon to the variant should be shown. */
5955
5956
  showIcon?: boolean;
5957
+ /** Controls whether to show the close icon */
5958
+ showClose?: boolean;
5956
5959
  /** Action to display. */
5957
5960
  action?: React.ReactNode | HvActionGeneric;
5958
5961
  /**
@@ -6063,7 +6066,7 @@ export declare interface HvStatusIconProps extends HvBaseProps {
6063
6066
  /** The type of status icon. */
6064
6067
  type?: HvStatusIconType;
6065
6068
  /** Icon style */
6066
- weight?: IconWeight;
6069
+ weight?: Weight;
6067
6070
  /** A Jss Object used to override or extend the styles applied to the component. */
6068
6071
  classes?: HvStatusIconClasses;
6069
6072
  }
@@ -10942,4 +10945,6 @@ export declare const warningTextClasses: {
10942
10945
  topBorder: string;
10943
10946
  };
10944
10947
 
10948
+ declare type Weight = "regular" | "duotone" | "fill";
10949
+
10945
10950
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.105.1",
3
+ "version": "5.106.1",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "UI Kit Core React components.",
@@ -32,12 +32,11 @@
32
32
  "dependencies": {
33
33
  "@emotion/cache": "^11.11.0",
34
34
  "@emotion/serialize": "^1.1.2",
35
- "@hitachivantara/uikit-react-shared": "^5.5.5",
36
- "@hitachivantara/uikit-react-utils": "^0.2.45",
37
- "@hitachivantara/uikit-styles": "^5.51.0",
35
+ "@hitachivantara/uikit-react-shared": "^5.5.6",
36
+ "@hitachivantara/uikit-react-utils": "^0.2.46",
37
+ "@hitachivantara/uikit-styles": "^5.51.1",
38
38
  "@internationalized/date": "^3.2.0",
39
39
  "@mui/base": "5.0.0-beta.68",
40
- "@phosphor-icons/react": "^2.1.7",
41
40
  "@popperjs/core": "^2.11.8",
42
41
  "@react-aria/datepicker": "^3.9.0",
43
42
  "@react-stately/datepicker": "^3.9.0",
@@ -62,7 +61,7 @@
62
61
  "access": "public",
63
62
  "directory": "package"
64
63
  },
65
- "gitHead": "7beb41faed7988ae23de7802faa1b637504c7c9a",
64
+ "gitHead": "7d60bff02f58ff47ae19146532553882c2e4b732",
66
65
  "exports": {
67
66
  ".": {
68
67
  "types": "./dist/types/index.d.ts",