@hitachivantara/uikit-react-core 5.71.0 → 5.72.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.
Files changed (61) hide show
  1. package/dist/cjs/DropdownButton/DropdownButton.cjs +1 -8
  2. package/dist/cjs/DropdownButton/DropdownButton.styles.cjs +0 -3
  3. package/dist/cjs/Typography/Typography.cjs +2 -1
  4. package/dist/cjs/Typography/Typography.styles.cjs +23 -24
  5. package/dist/cjs/VerticalNavigation/Actions/Action.cjs +4 -18
  6. package/dist/cjs/VerticalNavigation/Actions/Action.styles.cjs +4 -17
  7. package/dist/cjs/VerticalNavigation/Actions/Actions.styles.cjs +3 -5
  8. package/dist/cjs/VerticalNavigation/Header/Header.styles.cjs +7 -2
  9. package/dist/cjs/VerticalNavigation/Navigation/Navigation.cjs +3 -3
  10. package/dist/cjs/VerticalNavigation/Navigation/Navigation.styles.cjs +0 -2
  11. package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.cjs +1 -1
  12. package/dist/cjs/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs +7 -1
  13. package/dist/cjs/VerticalNavigation/TreeView/TreeView.styles.cjs +0 -2
  14. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +32 -21
  15. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.styles.cjs +4 -0
  16. package/dist/cjs/VerticalNavigation/VerticalNavigation.cjs +12 -18
  17. package/dist/cjs/VerticalNavigation/VerticalNavigation.styles.cjs +1 -1
  18. package/dist/esm/DropdownButton/DropdownButton.js +1 -8
  19. package/dist/esm/DropdownButton/DropdownButton.js.map +1 -1
  20. package/dist/esm/DropdownButton/DropdownButton.styles.js +0 -3
  21. package/dist/esm/DropdownButton/DropdownButton.styles.js.map +1 -1
  22. package/dist/esm/Typography/Typography.js +2 -1
  23. package/dist/esm/Typography/Typography.js.map +1 -1
  24. package/dist/esm/Typography/Typography.styles.js +23 -24
  25. package/dist/esm/Typography/Typography.styles.js.map +1 -1
  26. package/dist/esm/VerticalNavigation/Actions/Action.js +5 -19
  27. package/dist/esm/VerticalNavigation/Actions/Action.js.map +1 -1
  28. package/dist/esm/VerticalNavigation/Actions/Action.styles.js +4 -17
  29. package/dist/esm/VerticalNavigation/Actions/Action.styles.js.map +1 -1
  30. package/dist/esm/VerticalNavigation/Actions/Actions.styles.js +3 -5
  31. package/dist/esm/VerticalNavigation/Actions/Actions.styles.js.map +1 -1
  32. package/dist/esm/VerticalNavigation/Header/Header.styles.js +7 -2
  33. package/dist/esm/VerticalNavigation/Header/Header.styles.js.map +1 -1
  34. package/dist/esm/VerticalNavigation/Navigation/Navigation.js +1 -1
  35. package/dist/esm/VerticalNavigation/Navigation/Navigation.js.map +1 -1
  36. package/dist/esm/VerticalNavigation/Navigation/Navigation.styles.js +0 -2
  37. package/dist/esm/VerticalNavigation/Navigation/Navigation.styles.js.map +1 -1
  38. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js +1 -1
  39. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.js.map +1 -1
  40. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +7 -1
  41. package/dist/esm/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js.map +1 -1
  42. package/dist/esm/VerticalNavigation/NavigationSlider/utils.js.map +1 -0
  43. package/dist/esm/VerticalNavigation/TreeView/TreeView.styles.js +0 -2
  44. package/dist/esm/VerticalNavigation/TreeView/TreeView.styles.js.map +1 -1
  45. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +33 -22
  46. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  47. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js +4 -0
  48. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.styles.js.map +1 -1
  49. package/dist/esm/VerticalNavigation/VerticalNavigation.js +9 -15
  50. package/dist/esm/VerticalNavigation/VerticalNavigation.js.map +1 -1
  51. package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js +1 -1
  52. package/dist/esm/VerticalNavigation/VerticalNavigation.styles.js.map +1 -1
  53. package/dist/esm/VerticalNavigation/VerticalNavigationContext.js.map +1 -1
  54. package/dist/types/index.d.ts +14 -17
  55. package/package.json +6 -6
  56. package/dist/cjs/VerticalNavigation/TreeView/IconWrapper/IconWrapper.cjs +0 -20
  57. package/dist/esm/VerticalNavigation/NavigationSlider/utils/NavigationSlider.utils.js.map +0 -1
  58. package/dist/esm/VerticalNavigation/TreeView/IconWrapper/IconWrapper.js +0 -20
  59. package/dist/esm/VerticalNavigation/TreeView/IconWrapper/IconWrapper.js.map +0 -1
  60. /package/dist/cjs/VerticalNavigation/NavigationSlider/{utils/NavigationSlider.utils.cjs → utils.cjs} +0 -0
  61. /package/dist/esm/VerticalNavigation/NavigationSlider/{utils/NavigationSlider.utils.js → utils.js} +0 -0
@@ -20,14 +20,7 @@ const HvDropdownButton = React.forwardRef((props, ref) => {
20
20
  ...others
21
21
  } = uikitReactUtils.useDefaultProps("HvDropdownButton", props);
22
22
  const { classes, cx } = DropdownButton_styles.useClasses(classesProp);
23
- const endIcon = icon ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(
24
- uikitReactIcons.DropDownXS,
25
- {
26
- iconSize: "XS",
27
- style: { rotate: open ? "180deg" : void 0 },
28
- className: classes.arrow
29
- }
30
- );
23
+ const endIcon = icon ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, { iconSize: "XS", style: { rotate: open ? "180deg" : void 0 } });
31
24
  return /* @__PURE__ */ jsxRuntime.jsx(
32
25
  Button.HvButton,
33
26
  {
@@ -56,9 +56,6 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvDropdownB
56
56
  placeholder: {},
57
57
  arrowContainer: {
58
58
  marginRight: uikitStyles.theme.spacing(-2)
59
- },
60
- arrow: {
61
- transition: "rotate 0.2s ease"
62
59
  }
63
60
  });
64
61
  exports.staticClasses = staticClasses;
@@ -50,7 +50,7 @@ const HvTypography = generic.fixedForwardRef(function HvTypography2(props, ref)
50
50
  disabled = false,
51
51
  ...others
52
52
  } = uikitReactUtils.useDefaultProps("HvTypography", props);
53
- const { classes, cx } = Typography_styles.useClasses(classesProp);
53
+ const { classes, css, cx } = Typography_styles.useClasses(classesProp);
54
54
  const { activeTheme } = uikitReactUtils.useTheme();
55
55
  const variant = utils.mapVariant(variantProp, activeTheme?.base);
56
56
  const Component = ComponentProp || paragraph && "p" || HvTypographyMap[variant] || "span";
@@ -59,6 +59,7 @@ const HvTypography = generic.fixedForwardRef(function HvTypography2(props, ref)
59
59
  {
60
60
  ref,
61
61
  className: cx(
62
+ css({ ...activeTheme?.typography[variant] }),
62
63
  classes.root,
63
64
  classes[variant],
64
65
  {
@@ -20,45 +20,44 @@ const { useClasses, staticClasses } = uikitReactUtils.createClasses("HvTypograph
20
20
  whiteSpace: "nowrap"
21
21
  },
22
22
  // variants
23
- display: { ...uikitStyles.theme.typography.display },
24
- title1: { ...uikitStyles.theme.typography.title1 },
25
- title2: { ...uikitStyles.theme.typography.title2 },
26
- title3: { ...uikitStyles.theme.typography.title3 },
27
- title4: { ...uikitStyles.theme.typography.title4 },
28
- body: { ...uikitStyles.theme.typography.body },
29
- label: { ...uikitStyles.theme.typography.label },
30
- captionLabel: { ...uikitStyles.theme.typography.captionLabel },
31
- caption1: { ...uikitStyles.theme.typography.caption1 },
32
- caption2: { ...uikitStyles.theme.typography.caption2 },
23
+ display: {},
24
+ title1: {},
25
+ title2: {},
26
+ title3: {},
27
+ title4: {},
28
+ body: {},
29
+ label: {},
30
+ captionLabel: {},
31
+ caption1: {},
32
+ caption2: {},
33
33
  // legacy variants
34
- "5xlTitle": { ...uikitStyles.theme.typography["5xlTitle"] },
35
- "4xlTitle": { ...uikitStyles.theme.typography["4xlTitle"] },
34
+ // TODO: remove (legacy or all variants) in v6 in favour of dynamic variants
35
+ "5xlTitle": {},
36
+ "4xlTitle": {},
36
37
  // @ts-ignore non-existent variant
37
- "3xlTitle": { ...uikitStyles.theme.typography["3xlTitle"] },
38
- xxlTitle: { ...uikitStyles.theme.typography.xxlTitle },
38
+ "3xlTitle": {},
39
+ xxlTitle: {},
39
40
  xlTitle: {},
40
- lTitle: { ...uikitStyles.theme.typography.lTitle },
41
+ lTitle: {},
41
42
  mTitle: {},
42
- sTitle: { ...uikitStyles.theme.typography.sTitle },
43
+ sTitle: {},
43
44
  xsTitle: {},
44
- xxsTitle: { ...uikitStyles.theme.typography.xxsTitle },
45
+ xxsTitle: {},
45
46
  sectionTitle: {
46
- ...uikitStyles.theme.typography.sectionTitle,
47
47
  textTransform: "uppercase"
48
48
  },
49
49
  highlightText: {},
50
50
  normalText: {},
51
- placeholderText: { ...uikitStyles.theme.typography.placeholderText },
51
+ placeholderText: {},
52
52
  link: {
53
- ...uikitStyles.theme.typography.link,
54
53
  cursor: "pointer",
55
54
  textDecoration: "underline"
56
55
  },
57
- disabledText: { ...uikitStyles.theme.typography.disabledText },
58
- selectedNavText: { ...uikitStyles.theme.typography.selectedNavText },
56
+ disabledText: {},
57
+ selectedNavText: {},
59
58
  vizText: {},
60
- vizTextDisabled: { ...uikitStyles.theme.typography.vizTextDisabled },
61
- xsInlineLink: { ...uikitStyles.theme.typography.xsInlineLink }
59
+ vizTextDisabled: {},
60
+ xsInlineLink: {}
62
61
  });
63
62
  exports.staticClasses = staticClasses;
64
63
  exports.useClasses = useClasses;
@@ -3,11 +3,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
6
- const keyboardUtils = require("../../utils/keyboardUtils.cjs");
7
6
  const setId = require("../../utils/setId.cjs");
8
7
  const VerticalNavigationContext = require("../VerticalNavigationContext.cjs");
9
8
  const Action_styles = require("./Action.styles.cjs");
10
- const Typography = require("../../Typography/Typography.cjs");
9
+ const Button = require("../../Button/Button.cjs");
11
10
  const HvVerticalNavigationAction = (props) => {
12
11
  const {
13
12
  className,
@@ -15,26 +14,16 @@ const HvVerticalNavigationAction = (props) => {
15
14
  id,
16
15
  label = "",
17
16
  icon,
18
- onClick,
19
17
  ...others
20
18
  } = uikitReactUtils.useDefaultProps("HvVerticalNavigationAction", props);
21
19
  const { isOpen } = React.useContext(VerticalNavigationContext.VerticalNavigationContext);
22
20
  const { classes, cx } = Action_styles.useClasses(classesProp);
23
- const handleKeyDown = React.useCallback(
24
- (event) => {
25
- if (!onClick || !keyboardUtils.isKey(event, "Enter") && !keyboardUtils.isKey(event, "Space")) {
26
- return;
27
- }
28
- onClick(event);
29
- },
30
- [onClick]
31
- );
32
21
  return /* @__PURE__ */ jsxRuntime.jsxs(
33
- Typography.HvTypography,
22
+ Button.HvButton,
34
23
  {
35
24
  id: setId.setId(id, "button"),
36
- component: "div",
37
- role: "button",
25
+ variant: "secondaryGhost",
26
+ icon: !isOpen,
38
27
  className: cx(
39
28
  classes.action,
40
29
  {
@@ -43,10 +32,7 @@ const HvVerticalNavigationAction = (props) => {
43
32
  },
44
33
  className
45
34
  ),
46
- tabIndex: 0,
47
35
  ...!isOpen && { "aria-label": label },
48
- onKeyDown: handleKeyDown,
49
- onClick,
50
36
  ...others,
51
37
  children: [
52
38
  icon,
@@ -2,31 +2,18 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
4
4
  const uikitStyles = require("@hitachivantara/uikit-styles");
5
- const focusUtils = require("../../utils/focusUtils.cjs");
6
- const hover = {
7
- background: uikitStyles.theme.colors.containerBackgroundHover
8
- };
9
5
  const { staticClasses, useClasses } = uikitReactUtils.createClasses(
10
6
  "HvVerticalNavigationAction",
11
7
  {
12
8
  action: {
13
9
  width: "100%",
14
- display: "flex",
15
10
  justifyContent: "flex-start",
16
- alignItems: "center",
17
11
  height: "32px",
18
- color: uikitStyles.theme.colors.secondary,
19
- // hover
20
- "&:hover": { ...hover },
21
- "&:focus": {
22
- outline: "none",
23
- ...hover
24
- },
25
- "&:focus-visible": {
26
- ...focusUtils.outlineStyles
27
- },
12
+ color: "inherit",
13
+ fontWeight: "inherit",
14
+ padding: 0,
15
+ border: "none",
28
16
  // cursor
29
- cursor: "pointer",
30
17
  "& *": {
31
18
  cursor: "pointer"
32
19
  }
@@ -6,12 +6,10 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses(
6
6
  "HvVerticalNavigationActions",
7
7
  {
8
8
  root: {
9
- display: "block",
10
- background: uikitStyles.theme.colors.atmo1,
9
+ display: "flex",
10
+ flexDirection: "column",
11
11
  marginTop: "auto",
12
- "& :not(:last-child)": {
13
- marginBottom: "8px"
14
- }
12
+ gap: uikitStyles.theme.space.xs
15
13
  },
16
14
  hide: {
17
15
  display: "none"
@@ -16,12 +16,17 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses(
16
16
  },
17
17
  collapseButton: {
18
18
  marginLeft: "auto",
19
+ color: "inherit",
19
20
  "&$minimized": {
20
21
  marginLeft: 0
21
22
  }
22
23
  },
23
- backButton: {},
24
- title: {}
24
+ backButton: {
25
+ color: "inherit"
26
+ },
27
+ title: {
28
+ color: "inherit"
29
+ }
25
30
  }
26
31
  );
27
32
  exports.staticClasses = staticClasses;
@@ -7,7 +7,7 @@ const useControlled = require("../../hooks/useControlled.cjs");
7
7
  const helpers = require("../../utils/helpers.cjs");
8
8
  const setId = require("../../utils/setId.cjs");
9
9
  const NavigationPopupContainer = require("../NavigationPopup/NavigationPopupContainer.cjs");
10
- const NavigationSlider_utils = require("../NavigationSlider/utils/NavigationSlider.utils.cjs");
10
+ const utils = require("../NavigationSlider/utils.cjs");
11
11
  const VerticalNavigationContext = require("../VerticalNavigationContext.cjs");
12
12
  const Navigation_styles = require("./Navigation.styles.cjs");
13
13
  const NavigationSlider = require("../NavigationSlider/NavigationSlider.cjs");
@@ -199,8 +199,8 @@ const HvVerticalNavigationTree = (props) => {
199
199
  if (setParentData) setParentData(data);
200
200
  }, [data, setParentData]);
201
201
  React.useEffect(() => {
202
- if (withParentData && selected && setParentItem && NavigationSlider_utils.getParentItemById(withParentData, selected)) {
203
- setParentItem(NavigationSlider_utils.getParentItemById(withParentData, selected));
202
+ if (withParentData && selected && setParentItem && utils.getParentItemById(withParentData, selected)) {
203
+ setParentItem(utils.getParentItemById(withParentData, selected));
204
204
  }
205
205
  }, [withParentData, selected, setParentItem]);
206
206
  const navigateToTargetHandler = (event, selectedItem) => handleChange(event, selectedItem.id, selectedItem);
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
4
- const uikitStyles = require("@hitachivantara/uikit-styles");
5
4
  const { staticClasses, useClasses } = uikitReactUtils.createClasses(
6
5
  "HvVerticalNavigationTree",
7
6
  {
8
7
  root: {
9
8
  display: "block",
10
- background: uikitStyles.theme.colors.atmo1,
11
9
  overflowY: "auto"
12
10
  },
13
11
  list: {},
@@ -51,7 +51,7 @@ const HvVerticalNavigationSlider = (props) => {
51
51
  },
52
52
  className: classes.forwardButton,
53
53
  "aria-label": forwardButtonAriaLabel,
54
- children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropRightXS, {})
54
+ children: /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropRightXS, { color: "currentcolor" })
55
55
  }
56
56
  ) : void 0,
57
57
  children: /* @__PURE__ */ jsxRuntime.jsx(OverflowTooltip.HvOverflowTooltip, { data: item.label })
@@ -10,9 +10,13 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses(
10
10
  alignItems: "center",
11
11
  borderLeft: `4px solid transparent`,
12
12
  minHeight: "48px",
13
+ color: "inherit",
13
14
  marginBottom: "8px",
14
15
  "& > button": {
15
16
  marginLeft: "auto"
17
+ },
18
+ "& .HvListItem-startAdornment .color0": {
19
+ fill: "currentColor"
16
20
  }
17
21
  },
18
22
  listItemSelected: {
@@ -22,7 +26,9 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses(
22
26
  listItemFocus: {
23
27
  background: uikitStyles.theme.colors.atmo3
24
28
  },
25
- forwardButton: {},
29
+ forwardButton: {
30
+ color: "inherit"
31
+ },
26
32
  listContainer: {},
27
33
  listItemDisabled: {}
28
34
  }
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
4
- const uikitStyles = require("@hitachivantara/uikit-styles");
5
4
  const { staticClasses, useClasses } = uikitReactUtils.createClasses(
6
5
  "HvVerticalNavigationTreeView",
7
6
  {
8
7
  root: {
9
8
  display: "block",
10
- background: uikitStyles.theme.colors.atmo1,
11
9
  padding: `0px`,
12
10
  margin: "0",
13
11
  listStyle: "none",
@@ -10,9 +10,9 @@ const setId = require("../../utils/setId.cjs");
10
10
  const VerticalNavigationContext = require("../VerticalNavigationContext.cjs");
11
11
  const TreeViewContext = require("./TreeViewContext.cjs");
12
12
  const TreeViewItem_styles = require("./TreeViewItem.styles.cjs");
13
- const IconWrapper = require("./IconWrapper/IconWrapper.cjs");
14
13
  const Tooltip = require("../../Tooltip/Tooltip.cjs");
15
14
  const Typography = require("../../Typography/Typography.cjs");
15
+ const Avatar = require("../../Avatar/Avatar.cjs");
16
16
  const OverflowTooltip = require("../../OverflowTooltip/OverflowTooltip.cjs");
17
17
  const preventSelection = (event, disabled) => {
18
18
  if (event.shiftKey || event.ctrlKey || event.metaKey || disabled) {
@@ -271,10 +271,12 @@ const HvVerticalNavigationTreeViewItem = React.forwardRef(
271
271
  component: isLink ? "a" : "div",
272
272
  ...isLink ? buttonLinkProps : null,
273
273
  ref: contentRef,
274
- className: cx(classes.content, {
275
- [classes.link]: isLink,
276
- [classes.minimized]: !isOpen
277
- }),
274
+ classes: {
275
+ root: cx(classes.content, {
276
+ [classes.link]: isLink,
277
+ [classes.minimized]: !isOpen
278
+ })
279
+ },
278
280
  variant: "body",
279
281
  disabled,
280
282
  onClick: handleClick,
@@ -295,22 +297,25 @@ const HvVerticalNavigationTreeViewItem = React.forwardRef(
295
297
  "aria-label": payload?.label
296
298
  },
297
299
  children: [
298
- /* @__PURE__ */ jsxRuntime.jsx(
299
- IconWrapper.IconWrapper,
300
+ /* @__PURE__ */ jsxRuntime.jsxs(
301
+ "div",
300
302
  {
301
- icon: useIcons && icon,
302
- label: payload?.label,
303
- hasChildren,
304
- showAvatar: !icon && useIcons,
305
- isOpen,
306
- hasAnyChildWithData,
307
- style: uikitReactUtils.mergeStyles(
308
- {},
309
- {
310
- "--icon-margin-left": hasAnyChildWithData ? "auto" : "unset"
311
- }
312
- ),
313
- className: classes.icon
303
+ className: classes.icon,
304
+ style: uikitReactUtils.mergeStyles(void 0, {
305
+ "--icon-margin-left": hasAnyChildWithData ? "auto" : "unset"
306
+ }),
307
+ children: [
308
+ !icon && useIcons ? /* @__PURE__ */ jsxRuntime.jsx(
309
+ Avatar.HvAvatar,
310
+ {
311
+ variant: "square",
312
+ size: "xs",
313
+ backgroundColor: "secondary_80",
314
+ children: payload?.label?.substring(0, 1)
315
+ }
316
+ ) : useIcons && icon,
317
+ hasChildren && !isOpen ? /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.Forwards, { iconSize: "XS" }) : hasAnyChildWithData && !isOpen && /* @__PURE__ */ jsxRuntime.jsx("div", {})
318
+ ]
314
319
  }
315
320
  ),
316
321
  isOpen && /* @__PURE__ */ jsxRuntime.jsx(
@@ -323,7 +328,13 @@ const HvVerticalNavigationTreeViewItem = React.forwardRef(
323
328
  children: /* @__PURE__ */ jsxRuntime.jsx(OverflowTooltip.HvOverflowTooltip, { data: label })
324
329
  }
325
330
  ),
326
- isOpen && expandable && (expanded ? /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropUpXS, {}) : /* @__PURE__ */ jsxRuntime.jsx(uikitReactIcons.DropDownXS, {}))
331
+ isOpen && expandable && /* @__PURE__ */ jsxRuntime.jsx(
332
+ uikitReactIcons.DropDownXS,
333
+ {
334
+ color: "currentcolor",
335
+ style: { rotate: expanded ? "180deg" : void 0 }
336
+ }
337
+ )
327
338
  ]
328
339
  }
329
340
  ) });
@@ -42,6 +42,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses(
42
42
  width: "100%",
43
43
  display: "flex",
44
44
  justifyContent: "flex-start",
45
+ color: "inherit",
45
46
  alignItems: "center",
46
47
  height: "32px",
47
48
  borderLeft: `4px solid transparent`,
@@ -127,6 +128,9 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses(
127
128
  },
128
129
  icon: {
129
130
  display: "flex",
131
+ "& .color0": {
132
+ fill: "currentColor"
133
+ },
130
134
  "> div:first-of-type": {
131
135
  marginLeft: "var(--icon-margin-left)"
132
136
  },
@@ -3,11 +3,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
6
+ const utils = require("./NavigationSlider/utils.cjs");
6
7
  const VerticalNavigation_utils = require("./utils/VerticalNavigation.utils.cjs");
7
8
  const VerticalNavigation_styles = require("./VerticalNavigation.styles.cjs");
8
9
  const VerticalNavigationContext = require("./VerticalNavigationContext.cjs");
9
- const NavigationSlider_utils = require("./NavigationSlider/utils/NavigationSlider.utils.cjs");
10
- const HvVerticalNavigation = (props) => {
10
+ const HvVerticalNavigation = React.forwardRef((props, ref) => {
11
11
  const {
12
12
  id,
13
13
  className,
@@ -21,13 +21,12 @@ const HvVerticalNavigation = (props) => {
21
21
  const { classes, cx } = VerticalNavigation_styles.useClasses(classesProp);
22
22
  const [parentData, setParentData] = React.useState([]);
23
23
  const [parentSelected, setParentSelected] = React.useState();
24
- const [headerTitle, setHeaderTitle] = React.useState();
25
24
  const withParentData = React.useMemo(
26
- () => NavigationSlider_utils.fillDataWithParentId(parentData),
25
+ () => utils.fillDataWithParentId(parentData),
27
26
  [parentData]
28
27
  );
29
28
  const initialParentItem = React.useMemo(
30
- () => NavigationSlider_utils.getParentItemById(withParentData, parentSelected),
29
+ () => utils.getParentItemById(withParentData, parentSelected),
31
30
  [withParentData, parentSelected]
32
31
  );
33
32
  const [parentItem, setParentItem] = React.useState(initialParentItem);
@@ -35,19 +34,16 @@ const HvVerticalNavigation = (props) => {
35
34
  () => VerticalNavigation_utils.hasChildNavigationItems(parentData),
36
35
  [parentData]
37
36
  );
38
- React.useEffect(
39
- () => setHeaderTitle(parentItem?.label),
40
- [parentItem, setParentItem]
41
- );
37
+ const headerTitle = React.useMemo(() => parentItem?.label, [parentItem]);
42
38
  const navigateToParentHandler = React.useCallback(() => {
43
- setParentItem(NavigationSlider_utils.getParentItemById(withParentData, parentItem.id));
44
- }, [parentItem, setParentItem, withParentData]);
39
+ setParentItem(utils.getParentItemById(withParentData, parentItem.id));
40
+ }, [parentItem, withParentData]);
45
41
  const navigateToChildHandler = React.useCallback(
46
42
  (event, item) => {
47
- setParentItem(NavigationSlider_utils.getNavigationItemById(withParentData, item.id));
43
+ setParentItem(utils.getNavigationItemById(withParentData, item.id));
48
44
  event.stopPropagation();
49
45
  },
50
- [setParentItem, withParentData]
46
+ [withParentData]
51
47
  );
52
48
  const value = React.useMemo(
53
49
  () => ({
@@ -55,7 +51,6 @@ const HvVerticalNavigation = (props) => {
55
51
  useIcons,
56
52
  slider,
57
53
  headerTitle,
58
- setHeaderTitle,
59
54
  parentItem,
60
55
  setParentItem,
61
56
  withParentData,
@@ -72,7 +67,6 @@ const HvVerticalNavigation = (props) => {
72
67
  useIcons,
73
68
  slider,
74
69
  headerTitle,
75
- setHeaderTitle,
76
70
  parentItem,
77
71
  setParentItem,
78
72
  withParentData,
@@ -83,10 +77,11 @@ const HvVerticalNavigation = (props) => {
83
77
  parentSelected
84
78
  ]
85
79
  );
86
- const content = /* @__PURE__ */ jsxRuntime.jsx(VerticalNavigationContext.VerticalNavigationContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(
80
+ return /* @__PURE__ */ jsxRuntime.jsx(VerticalNavigationContext.VerticalNavigationContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(
87
81
  "div",
88
82
  {
89
83
  id,
84
+ ref,
90
85
  className: cx(
91
86
  classes.root,
92
87
  {
@@ -100,7 +95,6 @@ const HvVerticalNavigation = (props) => {
100
95
  children
101
96
  }
102
97
  ) });
103
- return content;
104
- };
98
+ });
105
99
  exports.verticalNavigationClasses = VerticalNavigation_styles.staticClasses;
106
100
  exports.HvVerticalNavigation = HvVerticalNavigation;
@@ -10,7 +10,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses(
10
10
  flexDirection: "column",
11
11
  justifyContent: "flex-start",
12
12
  width: "220px",
13
- background: uikitStyles.theme.colors.atmo1,
13
+ backgroundColor: uikitStyles.theme.colors.atmo1,
14
14
  boxShadow: uikitStyles.theme.colors.shadow,
15
15
  clipPath: "inset(0px -12px 0px 0px)",
16
16
  "& > :only-child": {
@@ -19,14 +19,7 @@ const HvDropdownButton = forwardRef((props, ref) => {
19
19
  ...others
20
20
  } = useDefaultProps("HvDropdownButton", props);
21
21
  const { classes, cx } = useClasses(classesProp);
22
- const endIcon = icon ? void 0 : /* @__PURE__ */ jsx(
23
- DropDownXS,
24
- {
25
- iconSize: "XS",
26
- style: { rotate: open ? "180deg" : void 0 },
27
- className: classes.arrow
28
- }
29
- );
22
+ const endIcon = icon ? void 0 : /* @__PURE__ */ jsx(DropDownXS, { iconSize: "XS", style: { rotate: open ? "180deg" : void 0 } });
30
23
  return /* @__PURE__ */ jsx(
31
24
  HvButton,
32
25
  {
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton.js","sources":["../../../src/DropdownButton/DropdownButton.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { Placement } from \"@popperjs/core\";\nimport { DropDownXS } from \"@hitachivantara/uikit-react-icons\";\nimport {\n useDefaultProps,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport { HvButton, HvButtonProps } from \"../Button\";\nimport { staticClasses, useClasses } from \"./DropdownButton.styles\";\n\nexport { staticClasses as dropdownButtonClasses };\n\nexport type HvDropdownButtonClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvDropdownButtonProps\n extends Omit<HvButtonProps, \"startAdornment\" | \"endAdornment\" | \"classes\"> {\n /** Whether the button is in read only mode when used as a form element. */\n readOnly?: boolean;\n /** Whether the content triggered by the button is opened or not. */\n open?: boolean;\n /** Placement of the content triggered by the button. @default bottom */\n placement?: Placement;\n /** A Jss Object used to override or extend the styles applied. */\n classes?: HvDropdownButtonClasses;\n}\n\n/**\n * IMPORTANT: This component is not ready to be exported to external users.\n *\n * Implements the DS dropdown button pattern.\n */\nexport const HvDropdownButton = forwardRef<\n HTMLButtonElement,\n HvDropdownButtonProps\n>((props, ref) => {\n const {\n className,\n classes: classesProp,\n placement = \"bottom\",\n disabled,\n open,\n icon,\n readOnly,\n children,\n variant,\n ...others\n } = useDefaultProps(\"HvDropdownButton\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const endIcon = icon ? undefined : (\n <DropDownXS\n iconSize=\"XS\"\n style={{ rotate: open ? \"180deg\" : undefined }}\n className={classes.arrow}\n />\n );\n\n return (\n <HvButton\n ref={ref}\n icon={icon}\n disabled={disabled || readOnly}\n className={cx(\n classes.root,\n {\n [classes.open]: open,\n [classes.openUp]: open && placement.includes(\"top\"),\n [classes.openDown]: open && placement.includes(\"bottom\"),\n [classes.disabled]: disabled,\n [classes.readOnly]: readOnly,\n },\n className,\n )}\n classes={{ endIcon: classes.arrowContainer }}\n endIcon={endIcon}\n variant={open ? \"secondarySubtle\" : variant}\n {...others}\n >\n <div className={cx({ [classes.selection]: !icon })}>\n {children && typeof children === \"string\" ? (\n <div className={classes.placeholder}>{children}</div>\n ) : (\n children\n )}\n </div>\n </HvButton>\n );\n});\n"],"names":[],"mappings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js","sources":["../../../src/DropdownButton/DropdownButton.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { Placement } from \"@popperjs/core\";\nimport { DropDownXS } from \"@hitachivantara/uikit-react-icons\";\nimport {\n useDefaultProps,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport { HvButton, HvButtonProps } from \"../Button\";\nimport { staticClasses, useClasses } from \"./DropdownButton.styles\";\n\nexport { staticClasses as dropdownButtonClasses };\n\nexport type HvDropdownButtonClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvDropdownButtonProps\n extends Omit<HvButtonProps, \"startAdornment\" | \"endAdornment\" | \"classes\"> {\n /** Whether the button is in read only mode when used as a form element. */\n readOnly?: boolean;\n /** Whether the content triggered by the button is opened or not. */\n open?: boolean;\n /** Placement of the content triggered by the button. @default bottom */\n placement?: Placement;\n /** A Jss Object used to override or extend the styles applied. */\n classes?: HvDropdownButtonClasses;\n}\n\n/**\n * IMPORTANT: This component is not ready to be exported to external users.\n *\n * Implements the DS dropdown button pattern.\n */\nexport const HvDropdownButton = forwardRef<\n HTMLButtonElement,\n HvDropdownButtonProps\n>((props, ref) => {\n const {\n className,\n classes: classesProp,\n placement = \"bottom\",\n disabled,\n open,\n icon,\n readOnly,\n children,\n variant,\n ...others\n } = useDefaultProps(\"HvDropdownButton\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const endIcon = icon ? undefined : (\n <DropDownXS iconSize=\"XS\" style={{ rotate: open ? \"180deg\" : undefined }} />\n );\n\n return (\n <HvButton\n ref={ref}\n icon={icon}\n disabled={disabled || readOnly}\n className={cx(\n classes.root,\n {\n [classes.open]: open,\n [classes.openUp]: open && placement.includes(\"top\"),\n [classes.openDown]: open && placement.includes(\"bottom\"),\n [classes.disabled]: disabled,\n [classes.readOnly]: readOnly,\n },\n className,\n )}\n classes={{ endIcon: classes.arrowContainer }}\n endIcon={endIcon}\n variant={open ? \"secondarySubtle\" : variant}\n {...others}\n >\n <div className={cx({ [classes.selection]: !icon })}>\n {children && typeof children === \"string\" ? (\n <div className={classes.placeholder}>{children}</div>\n ) : (\n children\n )}\n </div>\n </HvButton>\n );\n});\n"],"names":[],"mappings":";;;;;;;AAgCO,MAAM,mBAAmB,WAG9B,CAAC,OAAO,QAAQ;AACV,QAAA;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,IACT,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EAAA,IACD,gBAAgB,oBAAoB,KAAK;AAE7C,QAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAE9C,QAAM,UAAU,OAAO,SACrB,oBAAC,YAAW,EAAA,UAAS,MAAK,OAAO,EAAE,QAAQ,OAAO,WAAW,OAAa,EAAA,CAAA;AAI1E,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,UAAU,YAAY;AAAA,MACtB,WAAW;AAAA,QACT,QAAQ;AAAA,QACR;AAAA,UACE,CAAC,QAAQ,IAAI,GAAG;AAAA,UAChB,CAAC,QAAQ,MAAM,GAAG,QAAQ,UAAU,SAAS,KAAK;AAAA,UAClD,CAAC,QAAQ,QAAQ,GAAG,QAAQ,UAAU,SAAS,QAAQ;AAAA,UACvD,CAAC,QAAQ,QAAQ,GAAG;AAAA,UACpB,CAAC,QAAQ,QAAQ,GAAG;AAAA,QACtB;AAAA,QACA;AAAA,MACF;AAAA,MACA,SAAS,EAAE,SAAS,QAAQ,eAAe;AAAA,MAC3C;AAAA,MACA,SAAS,OAAO,oBAAoB;AAAA,MACnC,GAAG;AAAA,MAEJ,UAAA,oBAAC,OAAI,EAAA,WAAW,GAAG,EAAE,CAAC,QAAQ,SAAS,GAAG,CAAC,KAAK,CAAC,GAC9C,UAAY,YAAA,OAAO,aAAa,WAC9B,oBAAA,OAAA,EAAI,WAAW,QAAQ,aAAc,UAAS,IAE/C,SAEJ,CAAA;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
@@ -54,9 +54,6 @@ const { staticClasses, useClasses } = createClasses("HvDropdownButton", {
54
54
  placeholder: {},
55
55
  arrowContainer: {
56
56
  marginRight: theme.spacing(-2)
57
- },
58
- arrow: {
59
- transition: "rotate 0.2s ease"
60
57
  }
61
58
  });
62
59
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton.styles.js","sources":["../../../src/DropdownButton/DropdownButton.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { buttonClasses } from \"../Button\";\n\nconst disabledStyle = {\n backgroundColor: theme.colors.atmo3,\n borderColor: theme.colors.atmo3,\n [`&.${buttonClasses.subtle}`]: {\n backgroundColor: theme.colors.atmo3,\n borderColor: theme.colors.atmo3,\n \"&:hover\": { backgroundColor: theme.colors.atmo3 },\n },\n [`&.${buttonClasses.ghost}`]: {\n backgroundColor: theme.colors.atmo3,\n borderColor: theme.colors.atmo3,\n \"&:hover\": { backgroundColor: theme.colors.atmo3 },\n },\n};\n\nexport const { staticClasses, useClasses } = createClasses(\"HvDropdownButton\", {\n root: {\n userSelect: \"none\",\n position: \"relative\",\n\n [`&:not(.${buttonClasses.icon})`]: {\n width: \"100%\",\n minWidth: \"unset\",\n justifyContent: \"flex-start\",\n paddingLeft: theme.space.xs,\n },\n },\n disabled: {\n ...disabledStyle,\n },\n readOnly: {\n userSelect: \"text\",\n ...disabledStyle,\n },\n open: {\n backgroundColor: theme.colors.atmo1,\n },\n openUp: {\n borderRadius: `0px 0px ${theme.radii.base} ${theme.radii.base}`,\n },\n openDown: {\n borderRadius: `${theme.radii.base} ${theme.radii.base} 0px 0px`,\n },\n selection: {\n color: \"inherit\",\n flex: 1,\n textAlign: \"start\",\n overflow: \"auto\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n },\n placeholder: {},\n arrowContainer: {\n marginRight: theme.spacing(-2),\n },\n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AAAA,IACd,YAAY;AAAA,EACd;AAAA,EACA,aAAa,CAAC;AAAA,EACd,gBAAgB;AAAA,IACd,aAAa,MAAM,QAAQ,EAAE;AAAA,EAC/B;AAAA,EACA,OAAO;AAAA,IACL,YAAY;AAAA,EACd;AACF,CAAC;"}
1
+ {"version":3,"file":"DropdownButton.styles.js","sources":["../../../src/DropdownButton/DropdownButton.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { buttonClasses } from \"../Button\";\n\nconst disabledStyle = {\n backgroundColor: theme.colors.atmo3,\n borderColor: theme.colors.atmo3,\n [`&.${buttonClasses.subtle}`]: {\n backgroundColor: theme.colors.atmo3,\n borderColor: theme.colors.atmo3,\n \"&:hover\": { backgroundColor: theme.colors.atmo3 },\n },\n [`&.${buttonClasses.ghost}`]: {\n backgroundColor: theme.colors.atmo3,\n borderColor: theme.colors.atmo3,\n \"&:hover\": { backgroundColor: theme.colors.atmo3 },\n },\n};\n\nexport const { staticClasses, useClasses } = createClasses(\"HvDropdownButton\", {\n root: {\n userSelect: \"none\",\n position: \"relative\",\n\n [`&:not(.${buttonClasses.icon})`]: {\n width: \"100%\",\n minWidth: \"unset\",\n justifyContent: \"flex-start\",\n paddingLeft: theme.space.xs,\n },\n },\n disabled: {\n ...disabledStyle,\n },\n readOnly: {\n userSelect: \"text\",\n ...disabledStyle,\n },\n open: {\n backgroundColor: theme.colors.atmo1,\n },\n openUp: {\n borderRadius: `0px 0px ${theme.radii.base} ${theme.radii.base}`,\n },\n openDown: {\n borderRadius: `${theme.radii.base} ${theme.radii.base} 0px 0px`,\n },\n selection: {\n color: \"inherit\",\n flex: 1,\n textAlign: \"start\",\n overflow: \"auto\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n },\n placeholder: {},\n arrowContainer: {\n marginRight: theme.spacing(-2),\n },\n});\n"],"names":["buttonClasses"],"mappings":";;;;AAKA,MAAM,g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,aAAa,MAAM,QAAQ,EAAE;AAAA,EAC/B;AACF,CAAC;"}
@@ -49,7 +49,7 @@ const HvTypography = fixedForwardRef(function HvTypography2(props, ref) {
49
49
  disabled = false,
50
50
  ...others
51
51
  } = useDefaultProps("HvTypography", props);
52
- const { classes, cx } = useClasses(classesProp);
52
+ const { classes, css, cx } = useClasses(classesProp);
53
53
  const { activeTheme } = useTheme();
54
54
  const variant = mapVariant(variantProp, activeTheme?.base);
55
55
  const Component = ComponentProp || paragraph && "p" || HvTypographyMap[variant] || "span";
@@ -58,6 +58,7 @@ const HvTypography = fixedForwardRef(function HvTypography2(props, ref) {
58
58
  {
59
59
  ref,
60
60
  className: cx(
61
+ css({ ...activeTheme?.typography[variant] }),
61
62
  classes.root,
62
63
  classes[variant],
63
64
  {