@hitachivantara/uikit-react-core 5.68.1 → 5.70.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 (83) hide show
  1. package/dist/cjs/Button/Button.cjs +1 -1
  2. package/dist/cjs/Calendar/CalendarHeader/CalendarHeader.styles.cjs +1 -1
  3. package/dist/cjs/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.styles.cjs +1 -1
  4. package/dist/cjs/Calendar/SingleCalendar/SingleCalendar.cjs +4 -3
  5. package/dist/cjs/Calendar/SingleCalendar/SingleCalendar.styles.cjs +4 -12
  6. package/dist/cjs/Calendar/utils.cjs +5 -5
  7. package/dist/cjs/Card/Content/Content.cjs +10 -8
  8. package/dist/cjs/Carousel/Carousel.cjs +2 -3
  9. package/dist/cjs/Forms/Adornment/Adornment.cjs +11 -3
  10. package/dist/cjs/Forms/Adornment/Adornment.styles.cjs +6 -0
  11. package/dist/cjs/Header/Header.cjs +3 -9
  12. package/dist/cjs/Header/Header.styles.cjs +3 -3
  13. package/dist/cjs/Pagination/Pagination.cjs +1 -2
  14. package/dist/cjs/ProgressBar/ProgressBar.cjs +1 -2
  15. package/dist/cjs/Table/TableBody/TableBody.cjs +1 -1
  16. package/dist/cjs/Table/TableCell/TableCell.cjs +1 -1
  17. package/dist/cjs/Table/TableHead/TableHead.cjs +1 -1
  18. package/dist/cjs/Table/TableHeader/TableHeader.cjs +1 -1
  19. package/dist/cjs/Table/TableRow/TableRow.cjs +1 -1
  20. package/dist/cjs/Table/TableSectionContext.cjs +2 -2
  21. package/dist/cjs/Typography/Typography.cjs +1 -1
  22. package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +6 -4
  23. package/dist/cjs/providers/ThemeProvider.cjs +31 -4
  24. package/dist/cjs/utils/helpers.cjs +0 -4
  25. package/dist/esm/BaseSwitch/BaseSwitch.js.map +1 -1
  26. package/dist/esm/Button/Button.js +1 -1
  27. package/dist/esm/Button/Button.js.map +1 -1
  28. package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js +1 -1
  29. package/dist/esm/Calendar/CalendarHeader/CalendarHeader.styles.js.map +1 -1
  30. package/dist/esm/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.styles.js +1 -1
  31. package/dist/esm/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.styles.js.map +1 -1
  32. package/dist/esm/Calendar/SingleCalendar/SingleCalendar.js +5 -4
  33. package/dist/esm/Calendar/SingleCalendar/SingleCalendar.js.map +1 -1
  34. package/dist/esm/Calendar/SingleCalendar/SingleCalendar.styles.js +4 -12
  35. package/dist/esm/Calendar/SingleCalendar/SingleCalendar.styles.js.map +1 -1
  36. package/dist/esm/Calendar/utils.js +5 -5
  37. package/dist/esm/Calendar/utils.js.map +1 -1
  38. package/dist/esm/Card/Content/Content.js +10 -8
  39. package/dist/esm/Card/Content/Content.js.map +1 -1
  40. package/dist/esm/Carousel/Carousel.js +2 -3
  41. package/dist/esm/Carousel/Carousel.js.map +1 -1
  42. package/dist/esm/Forms/Adornment/Adornment.js +11 -3
  43. package/dist/esm/Forms/Adornment/Adornment.js.map +1 -1
  44. package/dist/esm/Forms/Adornment/Adornment.styles.js +6 -0
  45. package/dist/esm/Forms/Adornment/Adornment.styles.js.map +1 -1
  46. package/dist/esm/Header/Actions/Actions.styles.js.map +1 -1
  47. package/dist/esm/Header/Brand/Brand.styles.js.map +1 -1
  48. package/dist/esm/Header/Header.js +3 -9
  49. package/dist/esm/Header/Header.js.map +1 -1
  50. package/dist/esm/Header/Header.styles.js +3 -3
  51. package/dist/esm/Header/Header.styles.js.map +1 -1
  52. package/dist/esm/Header/Navigation/MenuBar/Bar.styles.js.map +1 -1
  53. package/dist/esm/Header/Navigation/MenuItem/MenuItem.styles.js.map +1 -1
  54. package/dist/esm/Header/Navigation/Navigation.styles.js.map +1 -1
  55. package/dist/esm/Input/Input.js.map +1 -1
  56. package/dist/esm/Pagination/Pagination.js +1 -2
  57. package/dist/esm/Pagination/Pagination.js.map +1 -1
  58. package/dist/esm/ProgressBar/ProgressBar.js +1 -2
  59. package/dist/esm/ProgressBar/ProgressBar.js.map +1 -1
  60. package/dist/esm/Switch/Switch.js.map +1 -1
  61. package/dist/esm/Table/TableBody/TableBody.js +1 -1
  62. package/dist/esm/Table/TableBody/TableBody.js.map +1 -1
  63. package/dist/esm/Table/TableCell/TableCell.js +1 -1
  64. package/dist/esm/Table/TableCell/TableCell.js.map +1 -1
  65. package/dist/esm/Table/TableHead/TableHead.js +1 -1
  66. package/dist/esm/Table/TableHead/TableHead.js.map +1 -1
  67. package/dist/esm/Table/TableHeader/TableHeader.js +1 -1
  68. package/dist/esm/Table/TableHeader/TableHeader.js.map +1 -1
  69. package/dist/esm/Table/TableRow/TableRow.js +1 -1
  70. package/dist/esm/Table/TableRow/TableRow.js.map +1 -1
  71. package/dist/esm/Table/TableSectionContext.js +1 -1
  72. package/dist/esm/Table/TableSectionContext.js.map +1 -1
  73. package/dist/esm/Typography/Typography.js +1 -1
  74. package/dist/esm/Typography/Typography.js.map +1 -1
  75. package/dist/esm/Typography/utils.js.map +1 -1
  76. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +7 -5
  77. package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js.map +1 -1
  78. package/dist/esm/providers/ThemeProvider.js +31 -4
  79. package/dist/esm/providers/ThemeProvider.js.map +1 -1
  80. package/dist/esm/utils/helpers.js +0 -4
  81. package/dist/esm/utils/helpers.js.map +1 -1
  82. package/dist/types/index.d.ts +372 -297
  83. package/package.json +7 -6
@@ -40,7 +40,7 @@ const HvButton = generic.fixedForwardRef(function HvButton2(props, ref) {
40
40
  const { activeTheme } = uikitReactUtils.useTheme();
41
41
  const variant = mapVariant(
42
42
  variantProp ?? (icon ? "secondaryGhost" : "primary"),
43
- activeTheme?.name
43
+ activeTheme?.base
44
44
  );
45
45
  const handleClick = (e) => {
46
46
  if (disabled) return;
@@ -4,7 +4,7 @@ const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
4
4
  const uikitStyles = require("@hitachivantara/uikit-styles");
5
5
  const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvCalendarHeader", {
6
6
  root: {
7
- paddingBottom: uikitStyles.theme.space.md,
7
+ paddingBottom: uikitStyles.theme.space.sm,
8
8
  "&$invalid": {
9
9
  paddingBottom: 0
10
10
  }
@@ -8,7 +8,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses(
8
8
  navigationContainer: {
9
9
  display: "flex",
10
10
  justifyContent: "space-between",
11
- padding: uikitStyles.theme.spacing("xs", 0)
11
+ paddingBottom: uikitStyles.theme.space.xs
12
12
  },
13
13
  navigationMonth: {
14
14
  minWidth: "160px"
@@ -11,6 +11,7 @@ const CalendarCell = require("./CalendarCell.cjs");
11
11
  const SingleCalendar_styles = require("./SingleCalendar.styles.cjs");
12
12
  const ComposedNavigation = require("../CalendarNavigation/ComposedNavigation/ComposedNavigation.cjs");
13
13
  const MonthSelector = require("../CalendarNavigation/MonthSelector/MonthSelector.cjs");
14
+ const Panel = require("../../Panel/Panel.cjs");
14
15
  const Typography = require("../../Typography/Typography.cjs");
15
16
  const HvSingleCalendar = ({
16
17
  classes: classesProp,
@@ -98,7 +99,7 @@ const HvSingleCalendar = ({
98
99
  currentDate.toString()
99
100
  );
100
101
  };
101
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx(classes.calendarContainer, className), ...others, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { id, className: classes.calendarWrapper, children: [
102
+ return /* @__PURE__ */ jsxRuntime.jsxs(Panel.HvPanel, { id, className: cx(classes.root, className), ...others, children: [
102
103
  /* @__PURE__ */ jsxRuntime.jsx(
103
104
  CalendarHeader.HvCalendarHeader,
104
105
  {
@@ -110,7 +111,7 @@ const HvSingleCalendar = ({
110
111
  invalidDateLabel
111
112
  }
112
113
  ),
113
- calViewMode === "calendar" && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
114
+ calViewMode === "calendar" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
114
115
  /* @__PURE__ */ jsxRuntime.jsx(
115
116
  ComposedNavigation.HvComposedNavigation,
116
117
  {
@@ -145,7 +146,7 @@ const HvSingleCalendar = ({
145
146
  rangeMode
146
147
  }
147
148
  )
148
- ] }) });
149
+ ] });
149
150
  };
150
151
  exports.singleCalendarClasses = SingleCalendar_styles.staticClasses;
151
152
  exports.HvSingleCalendar = HvSingleCalendar;
@@ -3,20 +3,12 @@ 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
5
  const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvSingleCalendar", {
6
- calendarContainer: {
7
- width: "318px",
8
- minHeight: "440px",
9
- position: "relative"
10
- },
11
- calendarWrapper: {
12
- overflow: "hidden",
13
- backgroundColor: uikitStyles.theme.colors.atmo1,
14
- padding: uikitStyles.theme.spacing("sm")
6
+ root: {
7
+ overflow: "hidden"
15
8
  },
16
9
  calendarGrid: {
17
- display: "flex",
18
- flexFlow: "wrap",
19
- width: "280px",
10
+ display: "grid",
11
+ gridTemplateColumns: "repeat(7, 1fr)",
20
12
  "& $cellsInRange": {
21
13
  backgroundColor: uikitStyles.theme.colors.atmo3,
22
14
  "& $startBookend": {
@@ -30,7 +30,7 @@ const getNextMonth = (month, year) => {
30
30
  };
31
31
  const getMonthNamesList = (locale, representationValue = "long") => {
32
32
  const options = { month: representationValue, timeZone: "UTC" };
33
- return [...new Array(12)].map((n, index) => {
33
+ return [...Array(12).keys()].map((index) => {
34
34
  const auxDate = makeUTCDate(1970, index, 1);
35
35
  return helpers.capitalize(Intl.DateTimeFormat(locale, options).format(auxDate));
36
36
  });
@@ -40,7 +40,7 @@ const getWeekdayNamesList = (locale) => {
40
40
  weekday: "narrow",
41
41
  timeZone: "UTC"
42
42
  });
43
- return [...new Array(7)].map((n, index) => {
43
+ return [...Array(7).keys()].map((index) => {
44
44
  return formatter.format(makeUTCDate(1970, 0, 4 + index));
45
45
  });
46
46
  };
@@ -53,15 +53,15 @@ const createDatesArray = (month, year) => {
53
53
  const prevMonthYear = getPreviousMonth(month, year);
54
54
  const nextMonthYear = getNextMonth(month, year);
55
55
  const prevMonthDays = getMonthDays(prevMonthYear.month, prevMonthYear.year);
56
- const prevMonthDates = [...new Array(daysFromPrevMonth)].map((n, index) => {
56
+ const prevMonthDates = [...Array(daysFromPrevMonth).keys()].map((index) => {
57
57
  const day = index + 1 + (prevMonthDays - daysFromPrevMonth);
58
58
  return new Date(prevMonthYear.year, prevMonthYear.month - 1, day);
59
59
  });
60
- const currentMonthDates = [...new Array(monthDays)].map((n, index) => {
60
+ const currentMonthDates = [...Array(monthDays).keys()].map((index) => {
61
61
  const day = index + 1;
62
62
  return new Date(year, month - 1, day);
63
63
  });
64
- const nextMonthDates = [...new Array(daysFromNextMonth)].map((n, index) => {
64
+ const nextMonthDates = [...Array(daysFromNextMonth).keys()].map((index) => {
65
65
  const day = index + 1;
66
66
  return new Date(nextMonthYear.year, nextMonthYear.month - 1, day);
67
67
  });
@@ -2,17 +2,19 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const MuiCardContent = require("@mui/material/CardContent");
5
+ const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
5
6
  const Content_styles = require("./Content.styles.cjs");
6
7
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
7
8
  const MuiCardContent__default = /* @__PURE__ */ _interopDefault(MuiCardContent);
8
- const HvCardContent = ({
9
- id,
10
- classes: classesProp,
11
- className,
12
- children,
13
- onClick,
14
- ...others
15
- }) => {
9
+ const HvCardContent = (props) => {
10
+ const {
11
+ id,
12
+ classes: classesProp,
13
+ className,
14
+ children,
15
+ onClick,
16
+ ...others
17
+ } = uikitReactUtils.useDefaultProps("HvCardContent", props);
16
18
  const { classes, cx } = Content_styles.useClasses(classesProp);
17
19
  return /* @__PURE__ */ jsxRuntime.jsx(
18
20
  MuiCardContent__default.default,
@@ -6,7 +6,6 @@ const useCarousel = require("embla-carousel-react");
6
6
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
7
7
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
8
8
  const useLabels = require("../hooks/useLabels.cjs");
9
- const helpers = require("../utils/helpers.cjs");
10
9
  const Carousel_styles = require("./Carousel.styles.cjs");
11
10
  const CarouselControls = require("./CarouselControls.cjs");
12
11
  const CarouselThumbnails = require("./CarouselThumbnails.cjs");
@@ -51,7 +50,7 @@ const HvCarousel = (props) => {
51
50
  const labels = useLabels.useLabels(DEFAULT_LABELS, labelsProps);
52
51
  const thumbnailsRef = React.useRef(null);
53
52
  const [isFullscreen, setIsFullscreen] = React.useState(false);
54
- const isDs3 = activeTheme?.name === "ds3";
53
+ const isDs3 = activeTheme?.base === "ds3";
55
54
  const actionsPosition = isDs3 ? "header" : "controls";
56
55
  const controlsPosition = controlsPositionProp ?? (isDs3 ? "bottom" : "top");
57
56
  const thumbnailsPosition = thumbnailsPositionProp ?? "bottom";
@@ -93,7 +92,7 @@ const HvCarousel = (props) => {
93
92
  React.useEffect(() => {
94
93
  if (!controller) return;
95
94
  controller.reInit();
96
- setSelectedIndex((currentIndex) => helpers.clamp(currentIndex, numSlides));
95
+ setSelectedIndex((currentIndex) => uikitReactUtils.clamp(currentIndex, numSlides));
97
96
  }, [numSlides, controller]);
98
97
  const handleFullscreen = (event) => {
99
98
  onFullscreen?.(event, !isFullscreen);
@@ -19,7 +19,7 @@ const HvAdornment = React.forwardRef(
19
19
  ...others
20
20
  }, ref) => {
21
21
  const { classes, cx } = Adornment_styles.useClasses(classesProp);
22
- const { elementStatus = "" } = React.useContext(FormElementContext.HvFormElementContext);
22
+ const { elementStatus = "", elementDisabled } = React.useContext(FormElementContext.HvFormElementContext);
23
23
  const { input } = React.useContext(FormElementDescriptorsContext.HvFormElementDescriptorsContext);
24
24
  const displayIcon = isVisible ?? (showWhen === void 0 || elementStatus === showWhen);
25
25
  const isClickable = !!onClick;
@@ -35,12 +35,17 @@ const HvAdornment = React.forwardRef(
35
35
  classes.root,
36
36
  classes.adornment,
37
37
  classes.adornmentButton,
38
- { [classes.hideIcon]: !displayIcon },
38
+ {
39
+ [classes.hideIcon]: !displayIcon,
40
+ [classes.disabled]: elementDisabled
41
+ },
39
42
  className
40
43
  ),
41
44
  onClick,
42
45
  onMouseDown: (event) => event.preventDefault(),
43
46
  onKeyDown: noop,
47
+ disabled: elementDisabled,
48
+ "aria-disabled": elementDisabled,
44
49
  ...others,
45
50
  children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.icon, children: icon })
46
51
  }
@@ -53,7 +58,10 @@ const HvAdornment = React.forwardRef(
53
58
  classes.root,
54
59
  classes.adornment,
55
60
  classes.adornmentIcon,
56
- { [classes.hideIcon]: !displayIcon },
61
+ {
62
+ [classes.hideIcon]: !displayIcon,
63
+ [classes.disabled]: elementDisabled
64
+ },
57
65
  className
58
66
  ),
59
67
  role: "presentation",
@@ -1,6 +1,7 @@
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");
4
5
  const focusUtils = require("../../utils/focusUtils.cjs");
5
6
  const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvAdornment", {
6
7
  root: {},
@@ -18,6 +19,11 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvAdornment
18
19
  "&:focus": {
19
20
  ...focusUtils.outlineStyles
20
21
  }
22
+ },
23
+ disabled: {
24
+ "&$adornmentButton": { cursor: "not-allowed" },
25
+ "&$adornmentIcon": { cursor: "not-allowed" },
26
+ "& svg *.color0": { fill: uikitStyles.theme.colors.secondary_60 }
21
27
  }
22
28
  });
23
29
  exports.staticClasses = staticClasses;
@@ -11,21 +11,15 @@ const HvHeader = (props) => {
11
11
  position = "fixed",
12
12
  ...others
13
13
  } = uikitReactUtils.useDefaultProps("HvHeader", props);
14
- const { classes, cx, css } = Header_styles.useClasses(classesProp);
14
+ const { classes, cx } = Header_styles.useClasses(classesProp);
15
15
  return /* @__PURE__ */ jsxRuntime.jsx(
16
16
  "header",
17
17
  {
18
+ style: { position },
18
19
  className: cx(
19
20
  classes.root,
20
21
  classes.backgroundColor,
21
- css({
22
- position,
23
- ...position === "fixed" && {
24
- top: 0,
25
- left: "auto",
26
- right: 0
27
- }
28
- }),
22
+ { [classes.fixed]: position === "fixed" },
29
23
  className
30
24
  ),
31
25
  ...others,
@@ -12,8 +12,8 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvHeader",
12
12
  boxSizing: "border-box",
13
13
  flexShrink: 0,
14
14
  zIndex: uikitStyles.theme.zIndices.banner,
15
- boxShadow: uikitStyles.theme.colors.shadow,
16
- borderTop: "none"
15
+ borderTop: "none",
16
+ boxShadow: uikitStyles.theme.colors.shadow
17
17
  },
18
18
  header: {
19
19
  display: "flex",
@@ -21,11 +21,11 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvHeader",
21
21
  width: "100%",
22
22
  height: "100%",
23
23
  padding: `0 ${uikitStyles.theme.space.sm}`,
24
- boxShadow: uikitStyles.theme.colors.shadow,
25
24
  "& > *:not(nav)": {
26
25
  zIndex: 2
27
26
  }
28
27
  },
28
+ fixed: { position: "fixed", top: 0, left: "auto", right: 0 },
29
29
  backgroundColor: {}
30
30
  });
31
31
  exports.staticClasses = staticClasses;
@@ -6,7 +6,6 @@ const Hidden = require("@mui/material/Hidden");
6
6
  const uikitReactIcons = require("@hitachivantara/uikit-react-icons");
7
7
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
8
8
  const useLabels = require("../hooks/useLabels.cjs");
9
- const helpers = require("../utils/helpers.cjs");
10
9
  const setId = require("../utils/setId.cjs");
11
10
  const Pagination_styles = require("./Pagination.styles.cjs");
12
11
  const Select = require("./Select.cjs");
@@ -70,7 +69,7 @@ const HvPagination = (props) => {
70
69
  const [pageInput, setPageInput] = React.useState(page);
71
70
  const changePage = React.useCallback(
72
71
  (newPage) => {
73
- const safePage = Number.isNaN(newPage) ? page : helpers.clamp(newPage, pages - 1);
72
+ const safePage = Number.isNaN(newPage) ? page : uikitReactUtils.clamp(newPage, pages - 1);
74
73
  onPageChange?.(safePage);
75
74
  setPageInput(safePage);
76
75
  },
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
5
- const helpers = require("../utils/helpers.cjs");
6
5
  const ProgressBar_styles = require("./ProgressBar.styles.cjs");
7
6
  const Typography = require("../Typography/Typography.cjs");
8
7
  const HvProgressBar = (props) => {
@@ -16,7 +15,7 @@ const HvProgressBar = (props) => {
16
15
  ...others
17
16
  } = uikitReactUtils.useDefaultProps("HvProgressBar", props);
18
17
  const { classes, cx } = ProgressBar_styles.useClasses(classesProp);
19
- const clampedValue = helpers.clamp(value, 100);
18
+ const clampedValue = uikitReactUtils.clamp(value, 100);
20
19
  return /* @__PURE__ */ jsxRuntime.jsx(
21
20
  "div",
22
21
  {
@@ -26,7 +26,7 @@ const HvTableBody = React.forwardRef(
26
26
  const bodyRef = React.useRef(null);
27
27
  const handleRef = useForkRef.useForkRef(externalRef, bodyRef);
28
28
  const Component = component || tableContext?.components?.TBody || defaultComponent;
29
- return /* @__PURE__ */ jsxRuntime.jsx(TableSectionContext.default.Provider, { value: tableSectionContext, children: /* @__PURE__ */ jsxRuntime.jsx(
29
+ return /* @__PURE__ */ jsxRuntime.jsx(TableSectionContext.TableSectionContext.Provider, { value: tableSectionContext, children: /* @__PURE__ */ jsxRuntime.jsx(
30
30
  Component,
31
31
  {
32
32
  className: cx(classes.root, className),
@@ -31,7 +31,7 @@ const HvTableCell = React.forwardRef(
31
31
  } = uikitReactUtils.useDefaultProps("HvTableCell", props);
32
32
  const { classes, cx } = TableCell_styles.useClasses(classesProp);
33
33
  const tableContext = React.useContext(TableContext.default);
34
- const tableSectionContext = React.useContext(TableSectionContext.default);
34
+ const tableSectionContext = React.useContext(TableSectionContext.TableSectionContext);
35
35
  const type = typeProp || tableSectionContext?.type || "body";
36
36
  const Component = component || tableContext?.components?.Td || defaultComponent;
37
37
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -14,7 +14,7 @@ const HvTableHead = React.forwardRef(
14
14
  const { classes, cx } = TableHead_styles.useClasses(classesProp);
15
15
  const tableContext = React.useContext(TableContext.default);
16
16
  const Component = component || tableContext?.components?.THead || defaultComponent;
17
- return /* @__PURE__ */ jsxRuntime.jsx(TableSectionContext.default.Provider, { value: tableSectionContext, children: /* @__PURE__ */ jsxRuntime.jsx(
17
+ return /* @__PURE__ */ jsxRuntime.jsx(TableSectionContext.TableSectionContext.Provider, { value: tableSectionContext, children: /* @__PURE__ */ jsxRuntime.jsx(
18
18
  Component,
19
19
  {
20
20
  className: cx(
@@ -43,7 +43,7 @@ const HvTableHeader = React.forwardRef(
43
43
  const { classes, cx, css } = TableHeader_styles.useClasses(classesProp);
44
44
  const { colors } = uikitReactUtils.useTheme();
45
45
  const tableContext = React.useContext(TableContext.default);
46
- const tableSectionContext = React.useContext(TableSectionContext.default);
46
+ const tableSectionContext = React.useContext(TableSectionContext.TableSectionContext);
47
47
  const type = typeProp || tableSectionContext?.type || "body";
48
48
  const isHeadCell = type === "head";
49
49
  const scope = scopeProp ?? (isHeadCell ? "col" : "row");
@@ -21,7 +21,7 @@ const HvTableRow = React.forwardRef(
21
21
  } = uikitReactUtils.useDefaultProps("HvTableRow", props);
22
22
  const { classes, cx } = TableRow_styles.useClasses(classesProp);
23
23
  const tableContext = React.useContext(TableContext.default);
24
- const tableSectionContext = React.useContext(TableSectionContext.default);
24
+ const tableSectionContext = React.useContext(TableSectionContext.TableSectionContext);
25
25
  const type = tableSectionContext?.type || "body";
26
26
  const isList = tableContext.variant === "listrow";
27
27
  const Component = component || tableContext?.components?.Tr || defaultComponent;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
4
  const TableSectionContext = React.createContext({});
5
- exports.default = TableSectionContext;
5
+ exports.TableSectionContext = TableSectionContext;
@@ -52,7 +52,7 @@ const HvTypography = generic.fixedForwardRef(function HvTypography2(props, ref)
52
52
  } = uikitReactUtils.useDefaultProps("HvTypography", props);
53
53
  const { classes, cx } = Typography_styles.useClasses(classesProp);
54
54
  const { activeTheme } = uikitReactUtils.useTheme();
55
- const variant = utils.mapVariant(variantProp, activeTheme?.name);
55
+ const variant = utils.mapVariant(variantProp, activeTheme?.base);
56
56
  const Component = ComponentProp || paragraph && "p" || HvTypographyMap[variant] || "span";
57
57
  return /* @__PURE__ */ jsxRuntime.jsx(
58
58
  Component,
@@ -304,10 +304,12 @@ const HvVerticalNavigationTreeViewItem = React.forwardRef(
304
304
  showAvatar: !icon && useIcons,
305
305
  isOpen,
306
306
  hasAnyChildWithData,
307
- style: {
308
- // @ts-expect-error csstype doesn't support CSS vars
309
- "--icon-margin-left": hasAnyChildWithData ? "auto" : "unset"
310
- },
307
+ style: uikitReactUtils.mergeStyles(
308
+ {},
309
+ {
310
+ "--icon-margin-left": hasAnyChildWithData ? "auto" : "unset"
311
+ }
312
+ ),
311
313
  className: classes.icon
312
314
  }
313
315
  ),
@@ -59,7 +59,36 @@ const HvThemeProvider = ({
59
59
  ]
60
60
  );
61
61
  const muiTheme = React.useMemo(() => {
62
+ const colors = activeTheme.colors.modes[colorMode];
62
63
  return styles.createTheme({
64
+ spacing: activeTheme.space.base,
65
+ typography: {
66
+ fontFamily: activeTheme.fontFamily.body
67
+ },
68
+ palette: {
69
+ primary: { main: colors.primary },
70
+ success: { main: colors.positive },
71
+ warning: { main: colors.warning },
72
+ error: { main: colors.negative },
73
+ info: { main: colors.primary },
74
+ text: {
75
+ primary: colors.secondary,
76
+ secondary: colors.secondary_80,
77
+ disabled: colors.secondary_60
78
+ },
79
+ background: {
80
+ default: colors.atmo2,
81
+ paper: colors.atmo1
82
+ },
83
+ divider: colors.atmo4,
84
+ action: {
85
+ active: colors.primary,
86
+ hover: colors.primary_80,
87
+ selected: colors.primary_80,
88
+ disabled: colors.secondary_60,
89
+ disabledBackground: colors.atmo3
90
+ }
91
+ },
63
92
  components: {
64
93
  MuiButtonBase: {
65
94
  defaultProps: {
@@ -67,11 +96,9 @@ const HvThemeProvider = ({
67
96
  }
68
97
  }
69
98
  },
70
- breakpoints: {
71
- ...activeTheme.breakpoints
72
- }
99
+ breakpoints: activeTheme.breakpoints
73
100
  });
74
- }, [activeTheme.breakpoints]);
101
+ }, [activeTheme, colorMode]);
75
102
  const emotionCacheValue = React.useMemo(
76
103
  () => ({ cache: emotionCache }),
77
104
  [emotionCache]
@@ -9,9 +9,6 @@ const range = (length, start = 0) => {
9
9
  const capitalize = (string = "") => {
10
10
  return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
11
11
  };
12
- const clamp = (value, max = 100, min = 0) => {
13
- return Math.min(Math.max(value, min), max);
14
- };
15
12
  function isEqual(obj1, obj2) {
16
13
  if (!obj1 || !obj2 || typeof obj1 !== "object" || typeof obj2 !== "object") {
17
14
  return obj1 === obj2;
@@ -26,7 +23,6 @@ function isEqual(obj1, obj2) {
26
23
  return true;
27
24
  }
28
25
  exports.capitalize = capitalize;
29
- exports.clamp = clamp;
30
26
  exports.isEqual = isEqual;
31
27
  exports.range = range;
32
28
  exports.uniqueId = uniqueId;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseSwitch.js","sources":["../../../src/BaseSwitch/BaseSwitch.tsx"],"sourcesContent":["import { forwardRef, useCallback, useState } from \"react\";\nimport MuiSwitch, { SwitchProps as MuiSwitchProps } from \"@mui/material/Switch\";\nimport {\n useDefaultProps,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport { staticClasses, useClasses } from \"./BaseSwitch.styles\";\n\nexport { staticClasses as baseSwitchClasses };\n\nexport type HvBaseSwitchClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvBaseSwitchProps\n extends Omit<MuiSwitchProps, \"onChange\" | \"classes\"> {\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * A Jss Object used to override or extend the styles applied to the switch.\n */\n classes?: HvBaseSwitchClasses;\n /**\n * Id to be applied to the root node.\n */\n id?: string;\n /**\n * The input name.\n */\n name?: string;\n /**\n * The value of the input.\n *\n * Is up to the application's logic when to consider the submission of this value.\n * Generally it should be used only when the switch is neither unchecked nor indeterminate.\n *\n * The default value is \"on\".\n */\n value?: any;\n /**\n * Indicates that user input is required.\n */\n required?: boolean;\n /**\n * Indicates that the input is not editable.\n */\n readOnly?: boolean;\n /**\n * Indicates that the input is disabled.\n */\n disabled?: boolean;\n /**\n * If `true` the switch is selected, if set to `false` the switch is not selected.\n *\n * When defined the switch state becomes controlled.\n */\n checked?: boolean;\n /**\n * When uncontrolled, defines the initial checked state.\n */\n defaultChecked?: boolean;\n /**\n * The callback fired when the switch is pressed.\n */\n onChange?: (event: React.ChangeEvent, checked: boolean, value: any) => void;\n /**\n * Properties passed on to the input element.\n */\n inputProps?: React.InputHTMLAttributes<HTMLInputElement>;\n /**\n * Callback fired when the component is focused with a keyboard.\n * We trigger a `onFocus` callback too.\n */\n onFocusVisible?: (event: React.FocusEvent<any>) => void;\n /**\n * @ignore\n */\n onBlur?: (event: React.FocusEvent<any>) => void;\n}\n\n/**\n * A Switch is <b>binary</b> and work as a digital on/off button.\n *\n * The Base Switch is a building block of the Switch form element. Don't use unless\n * implementing a custom use case not covered by the Switch form element.\n */\nexport const HvBaseSwitch = forwardRef<HTMLButtonElement, HvBaseSwitchProps>(\n (props, ref) => {\n const {\n classes: classesProp,\n className,\n\n id,\n name,\n value = \"on\",\n\n required = false,\n readOnly = false,\n disabled = false,\n\n checked,\n defaultChecked,\n\n onChange,\n\n inputProps,\n\n onFocusVisible,\n onBlur,\n\n ...others\n } = useDefaultProps(\"HvBaseSwitch\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const [focusVisible, setFocusVisible] = useState(false);\n\n const onFocusVisibleCallback = useCallback(\n (evt: React.FocusEvent<any, Element>) => {\n setFocusVisible(true);\n onFocusVisible?.(evt);\n },\n [onFocusVisible],\n );\n\n const onBlurCallback = useCallback(\n (evt: React.FocusEvent<any, Element>) => {\n setFocusVisible(false);\n onBlur?.(evt);\n },\n [onBlur],\n );\n\n const onLocalChange = useCallback(\n (evt: React.ChangeEvent<HTMLInputElement>) => {\n if (readOnly) {\n return;\n }\n\n onChange?.(evt, evt.target.checked, value);\n },\n [onChange, readOnly, value],\n );\n\n return (\n <MuiSwitch\n ref={ref}\n id={id}\n name={name}\n className={cx(\n classes.root,\n {\n [classes.disabled]: disabled,\n [classes.readOnly]: readOnly,\n [classes.focusVisible]: focusVisible,\n },\n className,\n )}\n color=\"default\"\n disabled={disabled}\n required={required}\n readOnly={readOnly}\n disableRipple\n onChange={onLocalChange}\n value={value}\n checked={checked}\n defaultChecked={defaultChecked}\n classes={{\n root: classes.switch,\n switchBase: classes.switchBase,\n checked: classes.checked,\n track: classes.track,\n thumb: classes.thumb,\n disabled: classes.disabled,\n }}\n inputProps={inputProps}\n onFocusVisible={onFocusVisibleCallback}\n onBlur={onBlurCallback}\n {...others}\n />\n );\n },\n);\n"],"names":[],"mappings":";;;;;;AAuFO,MAAM,eAAe;AAAA,EAC1B,CAAC,OAAO,QAAQ;AACR,UAAA;AAAA,MACJ,SAAS;AAAA,MACT;AAAA,MAEA;AAAA,MACA;AAAA,MACA,QAAQ;AAAA,MAER,WAAW;AAAA,MACX,WAAW;AAAA,MACX,WAAW;AAAA,MAEX;AAAA,MACA;AAAA,MAEA;AAAA,MAEA;AAAA,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AAA,QACP,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;"}
1
+ {"version":3,"file":"BaseSwitch.js","sources":["../../../src/BaseSwitch/BaseSwitch.tsx"],"sourcesContent":["import { forwardRef, useCallback, useState } from \"react\";\nimport MuiSwitch, { SwitchProps as MuiSwitchProps } from \"@mui/material/Switch\";\nimport {\n useDefaultProps,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport { staticClasses, useClasses } from \"./BaseSwitch.styles\";\n\nexport { staticClasses as baseSwitchClasses };\n\nexport type HvBaseSwitchClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvBaseSwitchProps\n extends Omit<MuiSwitchProps, \"onChange\" | \"classes\"> {\n /**\n * Class names to be applied.\n */\n className?: string;\n /**\n * A Jss Object used to override or extend the styles applied to the switch.\n */\n classes?: HvBaseSwitchClasses;\n /**\n * Id to be applied to the root node.\n */\n id?: string;\n /**\n * The input name.\n */\n name?: string;\n /**\n * The value of the input.\n *\n * Is up to the application's logic when to consider the submission of this value.\n * Generally it should be used only when the switch is neither unchecked nor indeterminate.\n *\n * The default value is \"on\".\n */\n value?: any;\n /**\n * Indicates that user input is required.\n */\n required?: boolean;\n /**\n * Indicates that the input is not editable.\n */\n readOnly?: boolean;\n /**\n * Indicates that the input is disabled.\n */\n disabled?: boolean;\n /**\n * If `true` the switch is selected, if set to `false` the switch is not selected.\n *\n * When defined the switch state becomes controlled.\n */\n checked?: boolean;\n /**\n * When uncontrolled, defines the initial checked state.\n */\n defaultChecked?: boolean;\n /**\n * The callback fired when the switch is pressed.\n */\n onChange?: (\n event: React.ChangeEvent<HTMLInputElement>,\n checked: boolean,\n value: any,\n ) => void;\n /**\n * Properties passed on to the input element.\n */\n inputProps?: React.InputHTMLAttributes<HTMLInputElement>;\n /**\n * Callback fired when the component is focused with a keyboard.\n * We trigger a `onFocus` callback too.\n */\n onFocusVisible?: (event: React.FocusEvent<any>) => void;\n /**\n * @ignore\n */\n onBlur?: (event: React.FocusEvent<any>) => void;\n}\n\n/**\n * A Switch is <b>binary</b> and work as a digital on/off button.\n *\n * The Base Switch is a building block of the Switch form element. Don't use unless\n * implementing a custom use case not covered by the Switch form element.\n */\nexport const HvBaseSwitch = forwardRef<HTMLButtonElement, HvBaseSwitchProps>(\n (props, ref) => {\n const {\n classes: classesProp,\n className,\n\n id,\n name,\n value = \"on\",\n\n required = false,\n readOnly = false,\n disabled = false,\n\n checked,\n defaultChecked,\n\n onChange,\n\n inputProps,\n\n onFocusVisible,\n onBlur,\n\n ...others\n } = useDefaultProps(\"HvBaseSwitch\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const [focusVisible, setFocusVisible] = useState(false);\n\n const onFocusVisibleCallback = useCallback(\n (evt: React.FocusEvent<any, Element>) => {\n setFocusVisible(true);\n onFocusVisible?.(evt);\n },\n [onFocusVisible],\n );\n\n const onBlurCallback = useCallback(\n (evt: React.FocusEvent<any, Element>) => {\n setFocusVisible(false);\n onBlur?.(evt);\n },\n [onBlur],\n );\n\n const onLocalChange = useCallback(\n (evt: React.ChangeEvent<HTMLInputElement>) => {\n if (readOnly) {\n return;\n }\n\n onChange?.(evt, evt.target.checked, value);\n },\n [onChange, readOnly, value],\n );\n\n return (\n <MuiSwitch\n ref={ref}\n id={id}\n name={name}\n className={cx(\n classes.root,\n {\n [classes.disabled]: disabled,\n [classes.readOnly]: readOnly,\n [classes.focusVisible]: focusVisible,\n },\n className,\n )}\n color=\"default\"\n disabled={disabled}\n required={required}\n readOnly={readOnly}\n disableRipple\n onChange={onLocalChange}\n value={value}\n checked={checked}\n defaultChecked={defaultChecked}\n classes={{\n root: classes.switch,\n switchBase: classes.switchBase,\n checked: classes.checked,\n track: classes.track,\n thumb: classes.thumb,\n disabled: classes.disabled,\n }}\n inputProps={inputProps}\n onFocusVisible={onFocusVisibleCallback}\n onBlur={onBlurCallback}\n {...others}\n />\n );\n },\n);\n"],"names":[],"mappings":";;;;;;AA2FO,MAAM,eAAe;AAAA,EA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AAA,UACP,MAAM,QAAQ;AAAA,UACd,YAAY,QAAQ;AAAA,UACpB,SAAS,QAAQ;AAAA,UACjB,OAAO,QAAQ;AAAA,UACf,OAAO,QAAQ;AAAA,UACf,UAAU,QAAQ;AAAA,QACpB;AAAA,QACA;AAAA,QACA,gBAAgB;AAAA,QAChB,QAAQ;AAAA,QACP,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;"}
@@ -39,7 +39,7 @@ const HvButton = fixedForwardRef(function HvButton2(props, ref) {
39
39
  const { activeTheme } = useTheme();
40
40
  const variant = mapVariant(
41
41
  variantProp ?? (icon ? "secondaryGhost" : "primary"),
42
- activeTheme?.name
42
+ activeTheme?.base
43
43
  );
44
44
  const handleClick = (e) => {
45
45
  if (disabled) return;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/Button/Button.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport {\n useDefaultProps,\n useTheme,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\n\nimport {\n fixedForwardRef,\n PolymorphicComponentRef,\n PolymorphicRef,\n} from \"../types/generic\";\nimport {\n staticClasses as buttonClasses,\n getColoringStyle,\n getIconSizeStyles,\n getOverrideColors,\n getRadiusStyles,\n getSizeStyles,\n useClasses,\n} from \"./Button.styles\";\nimport { HvButtonRadius, HvButtonSize, HvButtonVariant } from \"./types\";\n\nexport { buttonClasses };\n\nexport type HvButtonClasses = ExtractNames<typeof useClasses>;\n\nexport type HvButtonProps<C extends React.ElementType = \"button\"> =\n PolymorphicComponentRef<\n C,\n {\n /** Use the variant prop to change the visual style of the button. */\n variant?: HvButtonVariant;\n /** Whether the button is an icon-only button. */\n icon?: boolean;\n /** Whether the button is disabled or not. */\n disabled?: boolean;\n /** Class names to be applied. */\n className?: string;\n /** Element placed before the children. */\n startIcon?: React.ReactNode;\n /** Element placed after the children. */\n endIcon?: React.ReactNode;\n /** Button size. */\n size?: HvButtonSize;\n /** Button border radius. */\n radius?: HvButtonRadius;\n /** Defines the default colors of the button are forced into the icon. */\n overrideIconColors?: boolean;\n /** A Jss Object used to override or extend the styles applied. */\n classes?: HvButtonClasses;\n /** Whether the button is selected or not. */\n selected?: boolean;\n /**\n * Whether the button is focusable when disabled.\n * Without this property, the accessibility of the button decreases when disabled since it's not read by screen readers.\n * Set this property to `true` when you need the button to still be focusable when disabled for accessibility purposes.\n */\n focusableWhenDisabled?: boolean;\n }\n >;\n\n/**\n * Normalize the button variant. It's meant to give us some retro-compatibility with\n * the DS 3.6 API.\n * @returns the normalized variant in DS 5 API\n */\nconst mapVariant = (\n variant: HvButtonVariant,\n theme?: string,\n): HvButtonVariant => {\n if (theme === \"ds3\") return variant;\n\n const deprecatedVariantMap: Record<string, HvButtonVariant> = {\n secondary: \"secondarySubtle\",\n ghost: \"primaryGhost\",\n };\n\n const mappedVariant = deprecatedVariantMap[variant];\n\n if (import.meta.env.DEV && mappedVariant) {\n // eslint-disable-next-line no-console\n console.warn(\n `Button variant '${variant}' is deprecated. Please use '${mappedVariant}'.`,\n );\n }\n\n return mappedVariant || variant;\n};\n\n/**\n * Button component is used to trigger an action or event.\n */\nexport const HvButton = fixedForwardRef(function HvButton<\n C extends React.ElementType = \"button\",\n>(props: HvButtonProps<C>, ref: PolymorphicRef<C>) {\n const {\n classes: classesProp,\n children,\n variant: variantProp, // TODO - should we split into two props (color and type) in v6?\n disabled = false,\n className,\n startIcon,\n endIcon,\n icon = false,\n size,\n radius,\n overrideIconColors = true,\n component: Component = \"button\",\n focusableWhenDisabled,\n onClick: onClickProp,\n onMouseDown: onMouseDownProp,\n selected,\n style,\n ...others\n } = useDefaultProps(\"HvButton\", props);\n const { classes, css, cx } = useClasses(classesProp);\n const { activeTheme } = useTheme();\n const variant = mapVariant(\n variantProp ?? (icon ? \"secondaryGhost\" : \"primary\"),\n activeTheme?.name,\n );\n\n const handleClick: HvButtonProps[\"onClick\"] = (e) => {\n if (disabled) return;\n onClickProp?.(e);\n };\n\n const handleMouseDown: HvButtonProps[\"onMouseDown\"] = (e) => {\n if (disabled) return;\n onMouseDownProp?.(e);\n };\n\n const [color, type] = useMemo(() => {\n const result = variant.split(/(?=[A-Z])/);\n if (\n result[0] === \"ghost\" ||\n result[0] === \"semantic\" ||\n (result[0] === \"secondary\" && !result[1])\n )\n return [];\n return result.map((x) => x.toLowerCase());\n }, [variant]);\n\n const sizeStyles = useMemo(\n () =>\n size ? (icon ? getIconSizeStyles(size) : getSizeStyles(size)) : undefined,\n [size, icon],\n );\n\n return (\n <Component\n ref={ref}\n style={{\n ...style,\n \"--HvButton-height\": sizeStyles ? sizeStyles.height : \"32px\",\n }}\n className={cx(\n classes.root,\n type && classes[type as keyof HvButtonClasses],\n color && css(getColoringStyle(color, type)),\n classes[variant as keyof HvButtonClasses], // Placed after type and color CSS for DS3 override\n radius && css(getRadiusStyles(radius)),\n overrideIconColors && css(getOverrideColors()),\n {\n [classes.icon]: icon,\n [classes.disabled]: disabled,\n },\n sizeStyles && css(sizeStyles),\n className,\n )}\n onClick={handleClick}\n onMouseDown={handleMouseDown}\n {...(Component === \"button\" && { type: \"button\" })}\n {...(disabled && {\n disabled: !focusableWhenDisabled,\n tabIndex: focusableWhenDisabled ? 0 : -1,\n \"aria-disabled\": true,\n })}\n {...(selected && { \"aria-pressed\": selected })}\n {...others}\n >\n {startIcon && <span className={classes.startIcon}>{startIcon}</span>}\n {children}\n {endIcon && <span className={classes.endIcon}>{endIcon}</span>}\n </Component>\n );\n});\n"],"names":["HvButton"],"mappings":";;;;;;AAmEA,MAAM,aAAa,CACjB,SACA,UACoB;AAChB,MAAA,UAAU,MAAc,QAAA;AAE5B,QAAM,uBAAwD;AAAA,IAC5D,WAAW;AAAA,IACX,OAAO;AAAA,EAAA;AAGH,QAAA,gBAAgB,qBAAqB,OAAO;AASlD,SAAO,iBAAiB;AAC1B;AAKO,MAAM,WAAW,gBAAgB,SAASA,UAE/C,OAAyB,KAAwB;AAC3C,QAAA;AAAA,IACJ,SAAS;AAAA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,SAAS,IAAI,iBAAiB,OAAO,IAAI,CAAC;AAAA,QAC1C,QAAQ,OAAgC;AAAA;AAAA,QACxC,UAAU,IAAI,gBAAgB,MAAM,CAAC;AAAA,QACrC,sBAAsB,IAAI,mBAAmB;AAAA,QAC7C;AAAA,UACE,CAAC,QAAQ,IAAI,GAAG;AAAA,UAChB,CAAC,QAAQ,QAAQ,GAAG;AAAA,QACtB;AAAA,QACA,cAAc,IAAI,UAAU;AAAA,QAC5B;AAAA,MACF;AAAA,MACA,SAAS;AAAA,MACT,aAAa;AAAA,MACZ,GAAI,cAAc,YAAY,EAAE,MAAM,SAAS;AAAA,MAC/C,GAAI,YAAY;AAAA,QACf,UAAU,CAAC;AAAA,QACX,UAAU,wBAAwB,IAAI;AAAA,QACtC,iBAAiB;AAAA,MACnB;AAAA,MACC,GAAI,YAAY,EAAE,gBAAgB,SAAS;AAAA,MAC3C,GAAG;AAAA,MAEH,UAAA;AAAA,QAAA,aAAc,oBAAA,QAAA,EAAK,WAAW,QAAQ,WAAY,UAAU,WAAA;AAAA,QAC5D;AAAA,QACA,WAAY,oBAAA,QAAA,EAAK,WAAW,QAAQ,SAAU,UAAQ,SAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG7D,CAAC;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../src/Button/Button.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport {\n useDefaultProps,\n useTheme,\n type ExtractNames,\n} from \"@hitachivantara/uikit-react-utils\";\nimport { HvBaseTheme } from \"@hitachivantara/uikit-styles\";\n\nimport {\n fixedForwardRef,\n PolymorphicComponentRef,\n PolymorphicRef,\n} from \"../types/generic\";\nimport {\n staticClasses as buttonClasses,\n getColoringStyle,\n getIconSizeStyles,\n getOverrideColors,\n getRadiusStyles,\n getSizeStyles,\n useClasses,\n} from \"./Button.styles\";\nimport { HvButtonRadius, HvButtonSize, HvButtonVariant } from \"./types\";\n\nexport { buttonClasses };\n\nexport type HvButtonClasses = ExtractNames<typeof useClasses>;\n\nexport type HvButtonProps<C extends React.ElementType = \"button\"> =\n PolymorphicComponentRef<\n C,\n {\n /** Use the variant prop to change the visual style of the button. */\n variant?: HvButtonVariant;\n /** Whether the button is an icon-only button. */\n icon?: boolean;\n /** Whether the button is disabled or not. */\n disabled?: boolean;\n /** Class names to be applied. */\n className?: string;\n /** Element placed before the children. */\n startIcon?: React.ReactNode;\n /** Element placed after the children. */\n endIcon?: React.ReactNode;\n /** Button size. */\n size?: HvButtonSize;\n /** Button border radius. */\n radius?: HvButtonRadius;\n /** Defines the default colors of the button are forced into the icon. */\n overrideIconColors?: boolean;\n /** A Jss Object used to override or extend the styles applied. */\n classes?: HvButtonClasses;\n /** Whether the button is selected or not. */\n selected?: boolean;\n /**\n * Whether the button is focusable when disabled.\n * Without this property, the accessibility of the button decreases when disabled since it's not read by screen readers.\n * Set this property to `true` when you need the button to still be focusable when disabled for accessibility purposes.\n */\n focusableWhenDisabled?: boolean;\n }\n >;\n\n/**\n * Normalize the button variant. It's meant to give us some retro-compatibility with\n * the DS 3.6 API.\n * @returns the normalized variant in DS 5 API\n */\nconst mapVariant = (\n variant: HvButtonVariant,\n theme?: HvBaseTheme,\n): HvButtonVariant => {\n if (theme === \"ds3\") return variant;\n\n const deprecatedVariantMap: Record<string, HvButtonVariant> = {\n secondary: \"secondarySubtle\",\n ghost: \"primaryGhost\",\n };\n\n const mappedVariant = deprecatedVariantMap[variant];\n\n if (import.meta.env.DEV && mappedVariant) {\n // eslint-disable-next-line no-console\n console.warn(\n `Button variant '${variant}' is deprecated. Please use '${mappedVariant}'.`,\n );\n }\n\n return mappedVariant || variant;\n};\n\n/**\n * Button component is used to trigger an action or event.\n */\nexport const HvButton = fixedForwardRef(function HvButton<\n C extends React.ElementType = \"button\",\n>(props: HvButtonProps<C>, ref: PolymorphicRef<C>) {\n const {\n classes: classesProp,\n children,\n variant: variantProp, // TODO - should we split into two props (color and type) in v6?\n disabled = false,\n className,\n startIcon,\n endIcon,\n icon = false,\n size,\n radius,\n overrideIconColors = true,\n component: Component = \"button\",\n focusableWhenDisabled,\n onClick: onClickProp,\n onMouseDown: onMouseDownProp,\n selected,\n style,\n ...others\n } = useDefaultProps(\"HvButton\", props);\n const { classes, css, cx } = useClasses(classesProp);\n const { activeTheme } = useTheme();\n const variant = mapVariant(\n variantProp ?? (icon ? \"secondaryGhost\" : \"primary\"),\n activeTheme?.base,\n );\n\n const handleClick: HvButtonProps[\"onClick\"] = (e) => {\n if (disabled) return;\n onClickProp?.(e);\n };\n\n const handleMouseDown: HvButtonProps[\"onMouseDown\"] = (e) => {\n if (disabled) return;\n onMouseDownProp?.(e);\n };\n\n const [color, type] = useMemo(() => {\n const result = variant.split(/(?=[A-Z])/);\n if (\n result[0] === \"ghost\" ||\n result[0] === \"semantic\" ||\n (result[0] === \"secondary\" && !result[1])\n )\n return [];\n return result.map((x) => x.toLowerCase());\n }, [variant]);\n\n const sizeStyles = useMemo(\n () =>\n size ? (icon ? getIconSizeStyles(size) : getSizeStyles(size)) : undefined,\n [size, icon],\n );\n\n return (\n <Component\n ref={ref}\n style={{\n ...style,\n \"--HvButton-height\": sizeStyles ? sizeStyles.height : \"32px\",\n }}\n className={cx(\n classes.root,\n type && classes[type as keyof HvButtonClasses],\n color && css(getColoringStyle(color, type)),\n classes[variant as keyof HvButtonClasses], // Placed after type and color CSS for DS3 override\n radius && css(getRadiusStyles(radius)),\n overrideIconColors && css(getOverrideColors()),\n {\n [classes.icon]: icon,\n [classes.disabled]: disabled,\n },\n sizeStyles && css(sizeStyles),\n className,\n )}\n onClick={handleClick}\n onMouseDown={handleMouseDown}\n {...(Component === \"button\" && { type: \"button\" })}\n {...(disabled && {\n disabled: !focusableWhenDisabled,\n tabIndex: focusableWhenDisabled ? 0 : -1,\n \"aria-disabled\": true,\n })}\n {...(selected && { \"aria-pressed\": selected })}\n {...others}\n >\n {startIcon && <span className={classes.startIcon}>{startIcon}</span>}\n {children}\n {endIcon && <span className={classes.endIcon}>{endIcon}</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EZ,QAAM,aAAa;AAAA,IACjB,MACE,OAAQ,OAAO,kBAAkB,IAAI,IAAI,cAAc,IAAI,IAAK;AAAA,IAClE,CAAC,MAAM,IAAI;AAAA,EAAA;AAIX,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,OAAO;AAAA,QACL,GAAG;AAAA,QACH,qBAAqB,aAAa,WAAW,SAAS;AAAA,MACxD;AAAA,MACA,WAAW;AAAA,QACT,QAAQ;AAAA,QACR,QAAQ,QAAQ,IAA6B;AAAA,QAC7C,SAAS,IAAI,iBAAiB,OAAO,IAAI,CAAC;AAAA,QAC1C,QAAQ,OAAgC;AAAA;AAAA,QACxC,UAAU,IAAI,gBAAgB,MAAM,CAAC;AAAA,QACrC,sBAAsB,IAAI,mBAAmB;AAAA,QAC7C;AAAA,UACE,CAAC,QAAQ,IAAI,GAAG;AAAA,UAChB,CAAC,QAAQ,QAAQ,GAAG;AAAA,QACtB;AAAA,QACA,cAAc,IAAI,UAAU;AAAA,QAC5B;AAAA,MACF;AAAA,MACA,SAAS;AAAA,MACT,aAAa;AAAA,MACZ,GAAI,cAAc,YAAY,EAAE,MAAM,SAAS;AAAA,MAC/C,GAAI,YAAY;AAAA,QACf,UAAU,CAAC;AAAA,QACX,UAAU,wBAAwB,IAAI;AAAA,QACtC,iBAAiB;AAAA,MACnB;AAAA,MACC,GAAI,YAAY,EAAE,gBAAgB,SAAS;AAAA,MAC3C,GAAG;AAAA,MAEH,UAAA;AAAA,QAAA,aAAc,oBAAA,QAAA,EAAK,WAAW,QAAQ,WAAY,UAAU,WAAA;AAAA,QAC5D;AAAA,QACA,WAAY,oBAAA,QAAA,EAAK,WAAW,QAAQ,SAAU,UAAQ,SAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG7D,CAAC;"}
@@ -2,7 +2,7 @@ import { createClasses } from "@hitachivantara/uikit-react-utils";
2
2
  import { theme } from "@hitachivantara/uikit-styles";
3
3
  const { staticClasses, useClasses } = createClasses("HvCalendarHeader", {
4
4
  root: {
5
- paddingBottom: theme.space.md,
5
+ paddingBottom: theme.space.sm,
6
6
  "&$invalid": {
7
7
  paddingBottom: 0
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarHeader.styles.js","sources":["../../../../src/Calendar/CalendarHeader/CalendarHeader.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvCalendarHeader\", {\n root: {\n paddingBottom: theme.space.md,\n\n \"&$invalid\": {\n paddingBottom: 0,\n },\n },\n invalid: {},\n headerDayOfWeek: {\n color: theme.colors.secondary_80,\n },\n headerDate: {},\n input: {},\n inputBorderContainer: {},\n invalidMessageStyling: {},\n});\n"],"names":[],"mappings":";;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,oBAAoB;AAAA,EAC7E,MAAM;AAAA,IACJ,eAAe,MAAM,MAAM;AAAA,IAE3B,aAAa;AAAA,MACX,eAAe;AAAA,IACjB;AAAA,EACF;AAAA,EACA,SAAS,CAAC;AAAA,EACV,iBAAiB;AAAA,IACf,OAAO,MAAM,OAAO;AAAA,EACtB;AAAA,EACA,YAAY,CAAC;AAAA,EACb,OAAO,CAAC;AAAA,EACR,sBAAsB,CAAC;AAAA,EACvB,uBAAuB,CAAC;AAC1B,CAAC;"}
1
+ {"version":3,"file":"CalendarHeader.styles.js","sources":["../../../../src/Calendar/CalendarHeader/CalendarHeader.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvCalendarHeader\", {\n root: {\n paddingBottom: theme.space.sm,\n\n \"&$invalid\": {\n paddingBottom: 0,\n },\n },\n invalid: {},\n headerDayOfWeek: {\n color: theme.colors.secondary_80,\n },\n headerDate: {},\n input: {},\n inputBorderContainer: {},\n invalidMessageStyling: {},\n});\n"],"names":[],"mappings":";;AAGO,MAAM,EAAE,eAAe,eAAe,cAAc,oBAAoB;AAAA,EAC7E,MAAM;AAAA,IACJ,eAAe,MAAM,MAAM;AAAA,IAE3B,aAAa;AAAA,MACX,eAAe;AAAA,IACjB;AAAA,EACF;AAAA,EACA,SAAS,CAAC;AAAA,EACV,iBAAiB;AAAA,IACf,OAAO,MAAM,OAAO;AAAA,EACtB;AAAA,EACA,YAAY,CAAC;AAAA,EACb,OAAO,CAAC;AAAA,EACR,sBAAsB,CAAC;AAAA,EACvB,uBAAuB,CAAC;AAC1B,CAAC;"}
@@ -6,7 +6,7 @@ const { staticClasses, useClasses } = createClasses(
6
6
  navigationContainer: {
7
7
  display: "flex",
8
8
  justifyContent: "space-between",
9
- padding: theme.spacing("xs", 0)
9
+ paddingBottom: theme.space.xs
10
10
  },
11
11
  navigationMonth: {
12
12
  minWidth: "160px"
@@ -1 +1 @@
1
- {"version":3,"file":"ComposedNavigation.styles.js","sources":["../../../../../src/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvComposedNavigation\",\n {\n navigationContainer: {\n display: \"flex\",\n justifyContent: \"space-between\",\n padding: theme.spacing(\"xs\", 0),\n },\n navigationMonth: {\n minWidth: \"160px\",\n },\n },\n);\n"],"names":[],"mappings":";;AAGa,MAAA,EAAE,eAAe,WAAA,IAAe;AAAA,EAC3C;AAAA,EACA;AAAA,IACE,qBAAqB;AAAA,MACnB,SAAS;AAAA,MACT,gBAAgB;AAAA,MAChB,SAAS,MAAM,QAAQ,MAAM,CAAC;AAAA,IAChC;AAAA,IACA,iBAAiB;AAAA,MACf,UAAU;AAAA,IACZ;AAAA,EACF;AACF;"}
1
+ {"version":3,"file":"ComposedNavigation.styles.js","sources":["../../../../../src/Calendar/CalendarNavigation/ComposedNavigation/ComposedNavigation.styles.tsx"],"sourcesContent":["import { createClasses } from \"@hitachivantara/uikit-react-utils\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvComposedNavigation\",\n {\n navigationContainer: {\n display: \"flex\",\n justifyContent: \"space-between\",\n paddingBottom: theme.space.xs,\n },\n navigationMonth: {\n minWidth: \"160px\",\n },\n },\n);\n"],"names":[],"mappings":";;AAGa,MAAA,EAAE,eAAe,WAAA,IAAe;AAAA,EAC3C;AAAA,EACA;AAAA,IACE,qBAAqB;AAAA,MACnB,SAAS;AAAA,MACT,gBAAgB;AAAA,MAChB,eAAe,MAAM,MAAM;AAAA,IAC7B;AAAA,IACA,iBAAiB;AAAA,MACf,UAAU;AAAA,IACZ;AAAA,EACF;AACF;"}