@hitachivantara/uikit-react-core 6.1.0 → 6.2.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.
@@ -13,8 +13,6 @@ const { staticClasses, useClasses } = createClasses("HvBadge", {
13
13
  }
14
14
  }
15
15
  },
16
- /** class applied to the badge container when it has content */
17
- badgeContainer: {},
18
16
  /** class applied to the badge */
19
17
  badge: {
20
18
  position: "absolute",
@@ -26,6 +26,7 @@ const HvBanner = forwardRef(function HvBanner2(props, ref) {
26
26
  label,
27
27
  offset = 60,
28
28
  bannerContentProps,
29
+ size,
29
30
  ...others
30
31
  } = useDefaultProps("HvBanner", props);
31
32
  const { classes, cx } = useClasses(classesProp);
@@ -71,6 +72,7 @@ const HvBanner = forwardRef(function HvBanner2(props, ref) {
71
72
  onAction,
72
73
  actionsPosition,
73
74
  onClose,
75
+ size,
74
76
  ...bannerContentProps,
75
77
  children: label
76
78
  }
@@ -19,6 +19,7 @@ const HvBannerContent = forwardRef(function HvBannerContent2(props, ref) {
19
19
  content,
20
20
  children,
21
21
  actionProps,
22
+ size,
22
23
  ...others
23
24
  } = useDefaultProps("HvBannerContent", props);
24
25
  const { classes, cx } = useClasses(classesProp);
@@ -5,8 +5,7 @@ const { useClasses, staticClasses } = createClasses("HvBannerContent", {
5
5
  minWidth: "100%",
6
6
  width: "100%",
7
7
  position: "relative",
8
- gap: theme.space.xs,
9
- minHeight: 48
8
+ gap: theme.space.xs
10
9
  },
11
10
  success: {},
12
11
  warning: {},
@@ -16,22 +15,17 @@ const { useClasses, staticClasses } = createClasses("HvBannerContent", {
16
15
  accent: {},
17
16
  message: {
18
17
  gap: theme.space.xs,
19
- padding: theme.spacing("xs", 0),
20
- paddingLeft: theme.space.sm,
21
18
  ...theme.typography.body,
22
19
  color: theme.colors.textDark
23
20
  },
24
21
  action: {
25
- padding: theme.space.xs,
26
22
  flex: "0 0 auto",
27
23
  placeSelf: "stretch"
28
24
  },
29
25
  messageContainer: {
30
26
  maxWidth: 700
31
27
  },
32
- iconContainer: {
33
- marginLeft: theme.spacing(-1)
34
- },
28
+ iconContainer: {},
35
29
  messageActions: {
36
30
  flex: "0 0 auto"
37
31
  },
@@ -75,7 +75,7 @@ const HvBaseSwitch = forwardRef(
75
75
  defaultChecked,
76
76
  classes: {
77
77
  root: classes.switch,
78
- switchBase: cx(classes.switchBase),
78
+ switchBase: classes.switchBase,
79
79
  checked: classes.checked,
80
80
  track: cx(
81
81
  classes.track,
@@ -92,7 +92,10 @@ const HvBaseSwitch = forwardRef(
92
92
  ),
93
93
  disabled: classes.disabled
94
94
  },
95
- inputProps,
95
+ slotProps: {
96
+ // keep switch squashed by `slotProps.input` https://github.com/mui/material-ui/pull/46482
97
+ input: { role: "switch", ...inputProps }
98
+ },
96
99
  onFocusVisible: onFocusVisibleCallback,
97
100
  onBlur: onBlurCallback,
98
101
  "data-size": size,
@@ -62,7 +62,7 @@ const HvCheckBoxGroup = forwardRef(
62
62
  defaultValue !== void 0 ? defaultValue : (
63
63
  // When uncontrolled and no default value is given,
64
64
  // extract the initial selected values from the children own state
65
- () => getValueFromSelectedChildren(children)
65
+ (() => getValueFromSelectedChildren(children))
66
66
  )
67
67
  );
68
68
  const [validationState, setValidationState] = useControlled(
@@ -54,7 +54,7 @@ const HvRadioGroup = forwardRef(
54
54
  defaultValue !== void 0 ? defaultValue : (
55
55
  // When uncontrolled and no default value is given,
56
56
  // extract the initial selected values from the children own state
57
- () => getValueFromSelectedChildren(children)
57
+ (() => getValueFromSelectedChildren(children))
58
58
  )
59
59
  );
60
60
  const onChildChangeInterceptor = useCallback(
@@ -55,7 +55,7 @@ const HvSelectionList = forwardRef(function HvSelectionList2(props, ref) {
55
55
  defaultValue !== void 0 ? defaultValue : (
56
56
  // when uncontrolled and no default value is given,
57
57
  // extract the initial selected values from the children own state
58
- () => getValueFromSelectedChildren(children, multiple)
58
+ (() => getValueFromSelectedChildren(children, multiple))
59
59
  )
60
60
  );
61
61
  const [validationState, setValidationState] = useControlled(