@hitachivantara/uikit-react-core 5.105.0 → 5.106.0

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.
@@ -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,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
+ 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
9
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
10
10
  const icons = require("../icons.cjs");
11
11
  const StatusIcon_styles = require("./StatusIcon.styles.cjs");
@@ -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"
@@ -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,9 +1,9 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
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";
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
7
  import { useDefaultProps, useTheme } from "@hitachivantara/uikit-react-utils";
8
8
  import { HvIcon } from "../icons.js";
9
9
  import { useClasses } from "./StatusIcon.styles.js";
@@ -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"
@@ -5912,6 +5912,8 @@ export declare interface HvSnackbarContentProps extends Omit<SnackbarContentProp
5912
5912
  variant?: HvSnackbarVariant;
5913
5913
  /** Controls if the associated icon to the variant should be shown. */
5914
5914
  showIcon?: boolean;
5915
+ /** Controls whether to show the close icon */
5916
+ showClose?: boolean;
5915
5917
  /** Custom icon to replace the variant default. */
5916
5918
  customIcon?: React.ReactNode;
5917
5919
  /** Action to display. */
@@ -5953,6 +5955,8 @@ export declare interface HvSnackbarProps extends Omit<SnackbarProps, "action" |
5953
5955
  customIcon?: React.ReactNode;
5954
5956
  /** Controls if the associated icon to the variant should be shown. */
5955
5957
  showIcon?: boolean;
5958
+ /** Controls whether to show the close icon */
5959
+ showClose?: boolean;
5956
5960
  /** Action to display. */
5957
5961
  action?: React.ReactNode | HvActionGeneric;
5958
5962
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.105.0",
3
+ "version": "5.106.0",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "UI Kit Core React components.",
@@ -62,7 +62,7 @@
62
62
  "access": "public",
63
63
  "directory": "package"
64
64
  },
65
- "gitHead": "5ef69f269499dc34d74b7eacb753774759109000",
65
+ "gitHead": "59aa34bf80dd55a1b71c463047a17606443ef766",
66
66
  "exports": {
67
67
  ".": {
68
68
  "types": "./dist/types/index.d.ts",