@hitachivantara/uikit-react-core 5.99.0 → 5.99.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,8 +14,8 @@ const HvDialogTitle = (props) => {
14
14
  classes: classesProp,
15
15
  className,
16
16
  children,
17
- variant = "default",
18
- showIcon = true,
17
+ variant,
18
+ showIcon = variant != null,
19
19
  customIcon,
20
20
  ...others
21
21
  } = uikitReactUtils.useDefaultProps("HvDialogTitle", props);
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const material = require("@mui/material");
5
+ const utils = require("@mui/material/utils");
6
6
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
7
7
  const icons = require("../icons.cjs");
8
- const utils = require("../Input/utils.cjs");
8
+ const utils$1 = require("../Input/utils.cjs");
9
9
  const NumberInput_styles = require("./NumberInput.styles.cjs");
10
10
  const Adornment = require("../FormElement/Adornment/Adornment.cjs");
11
11
  const Input = require("../Input/Input.cjs");
@@ -18,18 +18,18 @@ const HvNumberInput = React.forwardRef(function HvNumberInput2(props, ref) {
18
18
  } = uikitReactUtils.useDefaultProps("HvNumberInput", props);
19
19
  const { classes, cx } = NumberInput_styles.useClasses(classesProp);
20
20
  const inputRef = React.useRef(null);
21
- const forkedRef = material.useForkRef(ref, inputRef);
21
+ const forkedRef = utils.useForkRef(ref, inputRef);
22
22
  const buttons = React.useMemo(() => {
23
23
  const handleIncrease = () => {
24
24
  if (inputRef.current) {
25
25
  inputRef.current.stepUp();
26
- utils.changeInputValue(inputRef.current, inputRef.current.value);
26
+ utils$1.changeInputValue(inputRef.current, inputRef.current.value);
27
27
  }
28
28
  };
29
29
  const handleDecrease = () => {
30
30
  if (inputRef.current) {
31
31
  inputRef.current.stepDown();
32
- utils.changeInputValue(inputRef.current, inputRef.current.value);
32
+ utils$1.changeInputValue(inputRef.current, inputRef.current.value);
33
33
  }
34
34
  };
35
35
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const material = require("@mui/material");
5
+ const styles = require("@mui/material/styles");
6
+ const useMediaQuery = require("@mui/material/useMediaQuery");
6
7
  const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
7
8
  const useLabels = require("../hooks/useLabels.cjs");
8
9
  const icons = require("../icons.cjs");
@@ -12,6 +13,8 @@ const Select = require("./Select.cjs");
12
13
  const Typography = require("../Typography/Typography.cjs");
13
14
  const IconButton = require("../IconButton/IconButton.cjs");
14
15
  const Input = require("../Input/Input.cjs");
16
+ const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
17
+ const useMediaQuery__default = /* @__PURE__ */ _interopDefault(useMediaQuery);
15
18
  const defaultPageSizeOptions = [5, 10, 20, 25, 50, 100];
16
19
  const DEFAULT_LABELS = {
17
20
  /** The show label. */
@@ -64,8 +67,8 @@ const HvPagination = React.forwardRef(function HvPagination2(props, ref) {
64
67
  } = uikitReactUtils.useDefaultProps("HvPagination", props);
65
68
  const { classes, cx } = Pagination_styles.useClasses(classesProp);
66
69
  const labels = useLabels.useLabels(DEFAULT_LABELS, labelsProp);
67
- const muiTheme = material.useTheme();
68
- const isXsDown = material.useMediaQuery(muiTheme.breakpoints.down("xs"));
70
+ const muiTheme = styles.useTheme();
71
+ const isXsDown = useMediaQuery__default.default(muiTheme.breakpoints.down("xs"));
69
72
  const [pageInput, setPageInput] = React.useState(page);
70
73
  const changePage = React.useCallback(
71
74
  (newPage) => {
@@ -11,8 +11,8 @@ const HvDialogTitle = (props) => {
11
11
  classes: classesProp,
12
12
  className,
13
13
  children,
14
- variant = "default",
15
- showIcon = true,
14
+ variant,
15
+ showIcon = variant != null,
16
16
  customIcon,
17
17
  ...others
18
18
  } = useDefaultProps("HvDialogTitle", props);
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useRef, useMemo } from "react";
3
- import { useForkRef } from "@mui/material";
3
+ import { useForkRef } from "@mui/material/utils";
4
4
  import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
5
5
  import { HvIcon } from "../icons.js";
6
6
  import { changeInputValue } from "../Input/utils.js";
@@ -1,6 +1,7 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { forwardRef, useState, useCallback, useEffect } from "react";
3
- import { useTheme, useMediaQuery } from "@mui/material";
3
+ import { useTheme } from "@mui/material/styles";
4
+ import useMediaQuery from "@mui/material/useMediaQuery";
4
5
  import { useDefaultProps, clamp } from "@hitachivantara/uikit-react-utils";
5
6
  import { useLabels } from "../hooks/useLabels.js";
6
7
  import { HvIcon } from "../icons.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.99.0",
3
+ "version": "5.99.1",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "UI Kit Core React components.",
@@ -32,9 +32,9 @@
32
32
  "dependencies": {
33
33
  "@emotion/cache": "^11.11.0",
34
34
  "@emotion/serialize": "^1.1.2",
35
- "@hitachivantara/uikit-react-shared": "^5.5.2",
36
- "@hitachivantara/uikit-react-utils": "^0.2.42",
37
- "@hitachivantara/uikit-styles": "^5.50.0",
35
+ "@hitachivantara/uikit-react-shared": "^5.5.3",
36
+ "@hitachivantara/uikit-react-utils": "^0.2.43",
37
+ "@hitachivantara/uikit-styles": "^5.50.1",
38
38
  "@internationalized/date": "^3.2.0",
39
39
  "@mui/base": "5.0.0-beta.68",
40
40
  "@popperjs/core": "^2.11.8",
@@ -61,7 +61,7 @@
61
61
  "access": "public",
62
62
  "directory": "package"
63
63
  },
64
- "gitHead": "ac709f3b46b8b62ea3fccfa689983b5a9b72c4ec",
64
+ "gitHead": "581850c6252b29a8cd9820a6e87b2df89830155f",
65
65
  "exports": {
66
66
  ".": {
67
67
  "types": "./dist/types/index.d.ts",