@hitachivantara/uikit-react-core 5.93.2 → 5.95.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.
- package/dist/cjs/Badge/Badge.cjs +7 -0
- package/dist/cjs/Badge/Badge.styles.cjs +1 -1
- package/dist/cjs/BaseCheckBox/BaseCheckBox.cjs +3 -1
- package/dist/cjs/BaseCheckBox/CheckBoxIcon.cjs +4 -2
- package/dist/cjs/BaseRadio/BaseRadio.cjs +2 -1
- package/dist/cjs/BaseRadio/RadioIcon.cjs +4 -2
- package/dist/cjs/IconContainer/IconContainer.cjs +4 -4
- package/dist/cjs/TagsInput/TagsInput.cjs +2 -0
- package/dist/esm/Badge/Badge.js +8 -1
- package/dist/esm/Badge/Badge.styles.js +1 -1
- package/dist/esm/BaseCheckBox/BaseCheckBox.js +3 -1
- package/dist/esm/BaseCheckBox/CheckBoxIcon.js +6 -4
- package/dist/esm/BaseRadio/BaseRadio.js +2 -1
- package/dist/esm/BaseRadio/RadioIcon.js +6 -4
- package/dist/esm/IconContainer/IconContainer.js +4 -4
- package/dist/esm/TagsInput/TagsInput.js +2 -0
- package/dist/types/index.d.ts +66 -92
- package/package.json +5 -5
package/dist/cjs/Badge/Badge.cjs
CHANGED
|
@@ -3,12 +3,14 @@ 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 uikitStyles = require("@hitachivantara/uikit-styles");
|
|
6
7
|
const Badge_styles = require("./Badge.styles.cjs");
|
|
7
8
|
const Typography = require("../Typography/Typography.cjs");
|
|
8
9
|
const HvBadge = React.forwardRef(function HvBadge2(props, ref) {
|
|
9
10
|
const {
|
|
10
11
|
classes: classesProp,
|
|
11
12
|
className,
|
|
13
|
+
color,
|
|
12
14
|
showCount = false,
|
|
13
15
|
count: countProp = 0,
|
|
14
16
|
maxCount = 99,
|
|
@@ -17,6 +19,7 @@ const HvBadge = React.forwardRef(function HvBadge2(props, ref) {
|
|
|
17
19
|
text,
|
|
18
20
|
textVariant,
|
|
19
21
|
children: childrenProp,
|
|
22
|
+
style,
|
|
20
23
|
...others
|
|
21
24
|
} = uikitReactUtils.useDefaultProps("HvBadge", props);
|
|
22
25
|
const { classes, cx } = Badge_styles.useClasses(classesProp);
|
|
@@ -30,6 +33,10 @@ const HvBadge = React.forwardRef(function HvBadge2(props, ref) {
|
|
|
30
33
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31
34
|
"div",
|
|
32
35
|
{
|
|
36
|
+
"data-color": color,
|
|
37
|
+
style: uikitReactUtils.mergeStyles(style, {
|
|
38
|
+
"--bg-color": color && uikitStyles.getColor(color)
|
|
39
|
+
}),
|
|
33
40
|
className: cx(classes.badgePosition, {
|
|
34
41
|
[classes.badgeContainer]: children,
|
|
35
42
|
[classes.badgeHidden]: !(count > 0 || renderedCountOrLabel),
|
|
@@ -26,7 +26,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBadge", {
|
|
|
26
26
|
...uikitStyles.theme.typography.caption2,
|
|
27
27
|
color: uikitStyles.theme.colors.textDimmed,
|
|
28
28
|
borderRadius: uikitStyles.theme.radii.full,
|
|
29
|
-
backgroundColor: uikitStyles.theme.colors.text
|
|
29
|
+
backgroundColor: `var(--bg-color, ${uikitStyles.theme.colors.text})`,
|
|
30
30
|
lineHeight: "16px",
|
|
31
31
|
minWidth: 8,
|
|
32
32
|
padding: "0 5px",
|
|
@@ -24,6 +24,8 @@ const HvBaseCheckBox = React.forwardRef(function HvBaseCheckBox2(props, ref) {
|
|
|
24
24
|
readOnly = false,
|
|
25
25
|
disabled = false,
|
|
26
26
|
semantic = false,
|
|
27
|
+
color,
|
|
28
|
+
style,
|
|
27
29
|
...others
|
|
28
30
|
} = uikitReactUtils.useDefaultProps("HvBaseCheckBox", props);
|
|
29
31
|
const { classes, cx } = BaseCheckBox_styles.useClasses(classesProp);
|
|
@@ -51,7 +53,7 @@ const HvBaseCheckBox = React.forwardRef(function HvBaseCheckBox2(props, ref) {
|
|
|
51
53
|
},
|
|
52
54
|
[onFocusVisible]
|
|
53
55
|
);
|
|
54
|
-
const params = { indeterminate, disabled, semantic };
|
|
56
|
+
const params = { indeterminate, disabled, semantic, color };
|
|
55
57
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
58
|
MuiCheckbox__default.default,
|
|
57
59
|
{
|
|
@@ -13,7 +13,7 @@ const { useClasses } = uikitReactUtils.createClasses("HvCheckBoxIcon", {
|
|
|
13
13
|
},
|
|
14
14
|
checked: {
|
|
15
15
|
borderColor: "transparent",
|
|
16
|
-
backgroundColor: uikitStyles.theme.colors.primaryStrong
|
|
16
|
+
backgroundColor: `var(--bg-color, ${uikitStyles.theme.colors.primaryStrong})`,
|
|
17
17
|
color: uikitStyles.theme.colors.bgContainer
|
|
18
18
|
},
|
|
19
19
|
indeterminate: {
|
|
@@ -42,7 +42,8 @@ const HvCheckBoxIcon = (props) => {
|
|
|
42
42
|
classes: classesProp,
|
|
43
43
|
variant,
|
|
44
44
|
disabled,
|
|
45
|
-
semantic
|
|
45
|
+
semantic,
|
|
46
|
+
color
|
|
46
47
|
} = uikitReactUtils.useDefaultProps("HvCheckBoxIcon", props);
|
|
47
48
|
const { classes, cx } = useClasses(classesProp, false);
|
|
48
49
|
const d = React.useMemo(() => {
|
|
@@ -67,6 +68,7 @@ const HvCheckBoxIcon = (props) => {
|
|
|
67
68
|
[classes.semantic]: semantic,
|
|
68
69
|
[classes.disabled]: disabled
|
|
69
70
|
}),
|
|
71
|
+
style: uikitReactUtils.mergeStyles({}, { "--bg-color": uikitStyles.getColor(color) }),
|
|
70
72
|
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d })
|
|
71
73
|
}
|
|
72
74
|
);
|
|
@@ -22,6 +22,7 @@ const HvBaseRadio = React.forwardRef(
|
|
|
22
22
|
onChange,
|
|
23
23
|
semantic,
|
|
24
24
|
inputProps,
|
|
25
|
+
color,
|
|
25
26
|
onFocusVisible,
|
|
26
27
|
onBlur,
|
|
27
28
|
...others
|
|
@@ -66,7 +67,7 @@ const HvBaseRadio = React.forwardRef(
|
|
|
66
67
|
className
|
|
67
68
|
),
|
|
68
69
|
icon: /* @__PURE__ */ jsxRuntime.jsx(RadioIcon.HvRadioIcon, { disabled }),
|
|
69
|
-
checkedIcon: /* @__PURE__ */ jsxRuntime.jsx(RadioIcon.HvRadioIcon, { checked: true, disabled }),
|
|
70
|
+
checkedIcon: /* @__PURE__ */ jsxRuntime.jsx(RadioIcon.HvRadioIcon, { checked: true, disabled, color }),
|
|
70
71
|
color: "default",
|
|
71
72
|
disabled,
|
|
72
73
|
required,
|
|
@@ -12,7 +12,7 @@ const { useClasses } = uikitReactUtils.createClasses("HvRadioIcon", {
|
|
|
12
12
|
},
|
|
13
13
|
checked: {
|
|
14
14
|
borderColor: "transparent",
|
|
15
|
-
backgroundColor: uikitStyles.theme.colors.primaryStrong
|
|
15
|
+
backgroundColor: `var(--bg-color, ${uikitStyles.theme.colors.primaryStrong})`,
|
|
16
16
|
color: uikitStyles.theme.colors.bgContainer
|
|
17
17
|
},
|
|
18
18
|
disabled: {
|
|
@@ -30,7 +30,8 @@ const HvRadioIcon = (props) => {
|
|
|
30
30
|
className,
|
|
31
31
|
classes: classesProp,
|
|
32
32
|
checked,
|
|
33
|
-
disabled
|
|
33
|
+
disabled,
|
|
34
|
+
color
|
|
34
35
|
} = uikitReactUtils.useDefaultProps("HvRadioIcon", props);
|
|
35
36
|
const { classes, cx } = useClasses(classesProp, false);
|
|
36
37
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -42,6 +43,7 @@ const HvRadioIcon = (props) => {
|
|
|
42
43
|
[classes.disabled]: disabled,
|
|
43
44
|
[classes.checkedDisabled]: checked && disabled
|
|
44
45
|
}),
|
|
46
|
+
style: uikitReactUtils.mergeStyles({}, { "--bg-color": uikitStyles.getColor(color) }),
|
|
45
47
|
children: checked && /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "8", cy: "8", r: "4.5" })
|
|
46
48
|
}
|
|
47
49
|
);
|
|
@@ -9,7 +9,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvIconConta
|
|
|
9
9
|
display: "inline-flex",
|
|
10
10
|
flex: "0 0 auto",
|
|
11
11
|
// ensure icon doesn't flex grow/shrink
|
|
12
|
-
fontSize: `var(--
|
|
12
|
+
fontSize: `var(--isize, 16px)`,
|
|
13
13
|
// default size of 16px
|
|
14
14
|
transition: "rotate 0.2s ease",
|
|
15
15
|
justifyContent: "center",
|
|
@@ -41,21 +41,21 @@ const HvIconContainer = React.forwardRef(function HvIconContainer2(props, ref) {
|
|
|
41
41
|
classes: classesProp,
|
|
42
42
|
style,
|
|
43
43
|
color,
|
|
44
|
-
size
|
|
44
|
+
size = "S",
|
|
45
45
|
rotate,
|
|
46
46
|
children,
|
|
47
47
|
...others
|
|
48
48
|
} = uikitReactUtils.useDefaultProps("HvIconContainer", props);
|
|
49
49
|
const { cx, classes } = useClasses(classesProp);
|
|
50
|
-
const size = mapSizes(sizeProp);
|
|
51
50
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
51
|
"div",
|
|
53
52
|
{
|
|
54
53
|
ref,
|
|
55
54
|
className: cx(classes.root, className, {
|
|
56
|
-
[classes[size]]: size
|
|
55
|
+
[classes[mapSizes(size)]]: size
|
|
57
56
|
}),
|
|
58
57
|
style: uikitReactUtils.mergeStyles(style, {
|
|
58
|
+
"--isize": typeof size === "number" ? `${size}px` : void 0,
|
|
59
59
|
color: uikitStyles.getColor(color),
|
|
60
60
|
rotate: rotate ? "180deg" : void 0,
|
|
61
61
|
...style
|
|
@@ -41,6 +41,7 @@ const HvTagsInput = React.forwardRef(
|
|
|
41
41
|
onBlur,
|
|
42
42
|
onFocus,
|
|
43
43
|
placeholder,
|
|
44
|
+
startAdornment,
|
|
44
45
|
endAdornment,
|
|
45
46
|
hideCounter,
|
|
46
47
|
middleCountLabel = "/",
|
|
@@ -360,6 +361,7 @@ const HvTagsInput = React.forwardRef(
|
|
|
360
361
|
`${label2}-${i}`
|
|
361
362
|
);
|
|
362
363
|
}),
|
|
364
|
+
!disabled && !readOnly && startAdornment,
|
|
363
365
|
!disabled && !readOnly && /* @__PURE__ */ jsxRuntime.jsx(
|
|
364
366
|
"input",
|
|
365
367
|
{
|
package/dist/esm/Badge/Badge.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
|
|
3
|
+
import { useDefaultProps, mergeStyles } from "@hitachivantara/uikit-react-utils";
|
|
4
|
+
import { getColor } from "@hitachivantara/uikit-styles";
|
|
4
5
|
import { useClasses } from "./Badge.styles.js";
|
|
5
6
|
import { staticClasses } from "./Badge.styles.js";
|
|
6
7
|
import { HvTypography } from "../Typography/Typography.js";
|
|
@@ -8,6 +9,7 @@ const HvBadge = forwardRef(function HvBadge2(props, ref) {
|
|
|
8
9
|
const {
|
|
9
10
|
classes: classesProp,
|
|
10
11
|
className,
|
|
12
|
+
color,
|
|
11
13
|
showCount = false,
|
|
12
14
|
count: countProp = 0,
|
|
13
15
|
maxCount = 99,
|
|
@@ -16,6 +18,7 @@ const HvBadge = forwardRef(function HvBadge2(props, ref) {
|
|
|
16
18
|
text,
|
|
17
19
|
textVariant,
|
|
18
20
|
children: childrenProp,
|
|
21
|
+
style,
|
|
19
22
|
...others
|
|
20
23
|
} = useDefaultProps("HvBadge", props);
|
|
21
24
|
const { classes, cx } = useClasses(classesProp);
|
|
@@ -29,6 +32,10 @@ const HvBadge = forwardRef(function HvBadge2(props, ref) {
|
|
|
29
32
|
/* @__PURE__ */ jsx(
|
|
30
33
|
"div",
|
|
31
34
|
{
|
|
35
|
+
"data-color": color,
|
|
36
|
+
style: mergeStyles(style, {
|
|
37
|
+
"--bg-color": color && getColor(color)
|
|
38
|
+
}),
|
|
32
39
|
className: cx(classes.badgePosition, {
|
|
33
40
|
[classes.badgeContainer]: children,
|
|
34
41
|
[classes.badgeHidden]: !(count > 0 || renderedCountOrLabel),
|
|
@@ -24,7 +24,7 @@ const { staticClasses, useClasses } = createClasses("HvBadge", {
|
|
|
24
24
|
...theme.typography.caption2,
|
|
25
25
|
color: theme.colors.textDimmed,
|
|
26
26
|
borderRadius: theme.radii.full,
|
|
27
|
-
backgroundColor: theme.colors.text
|
|
27
|
+
backgroundColor: `var(--bg-color, ${theme.colors.text})`,
|
|
28
28
|
lineHeight: "16px",
|
|
29
29
|
minWidth: 8,
|
|
30
30
|
padding: "0 5px",
|
|
@@ -21,6 +21,8 @@ const HvBaseCheckBox = forwardRef(function HvBaseCheckBox2(props, ref) {
|
|
|
21
21
|
readOnly = false,
|
|
22
22
|
disabled = false,
|
|
23
23
|
semantic = false,
|
|
24
|
+
color,
|
|
25
|
+
style,
|
|
24
26
|
...others
|
|
25
27
|
} = useDefaultProps("HvBaseCheckBox", props);
|
|
26
28
|
const { classes, cx } = useClasses(classesProp);
|
|
@@ -48,7 +50,7 @@ const HvBaseCheckBox = forwardRef(function HvBaseCheckBox2(props, ref) {
|
|
|
48
50
|
},
|
|
49
51
|
[onFocusVisible]
|
|
50
52
|
);
|
|
51
|
-
const params = { indeterminate, disabled, semantic };
|
|
53
|
+
const params = { indeterminate, disabled, semantic, color };
|
|
52
54
|
return /* @__PURE__ */ jsx(
|
|
53
55
|
MuiCheckbox,
|
|
54
56
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { useDefaultProps, createClasses } from "@hitachivantara/uikit-react-utils";
|
|
4
|
-
import { theme } from "@hitachivantara/uikit-styles";
|
|
3
|
+
import { useDefaultProps, createClasses, mergeStyles } from "@hitachivantara/uikit-react-utils";
|
|
4
|
+
import { getColor, theme } from "@hitachivantara/uikit-styles";
|
|
5
5
|
import { SvgBase } from "../icons.js";
|
|
6
6
|
const { useClasses } = createClasses("HvCheckBoxIcon", {
|
|
7
7
|
root: {
|
|
@@ -11,7 +11,7 @@ const { useClasses } = createClasses("HvCheckBoxIcon", {
|
|
|
11
11
|
},
|
|
12
12
|
checked: {
|
|
13
13
|
borderColor: "transparent",
|
|
14
|
-
backgroundColor: theme.colors.primaryStrong
|
|
14
|
+
backgroundColor: `var(--bg-color, ${theme.colors.primaryStrong})`,
|
|
15
15
|
color: theme.colors.bgContainer
|
|
16
16
|
},
|
|
17
17
|
indeterminate: {
|
|
@@ -40,7 +40,8 @@ const HvCheckBoxIcon = (props) => {
|
|
|
40
40
|
classes: classesProp,
|
|
41
41
|
variant,
|
|
42
42
|
disabled,
|
|
43
|
-
semantic
|
|
43
|
+
semantic,
|
|
44
|
+
color
|
|
44
45
|
} = useDefaultProps("HvCheckBoxIcon", props);
|
|
45
46
|
const { classes, cx } = useClasses(classesProp, false);
|
|
46
47
|
const d = useMemo(() => {
|
|
@@ -65,6 +66,7 @@ const HvCheckBoxIcon = (props) => {
|
|
|
65
66
|
[classes.semantic]: semantic,
|
|
66
67
|
[classes.disabled]: disabled
|
|
67
68
|
}),
|
|
69
|
+
style: mergeStyles({}, { "--bg-color": getColor(color) }),
|
|
68
70
|
children: /* @__PURE__ */ jsx("path", { d })
|
|
69
71
|
}
|
|
70
72
|
);
|
|
@@ -19,6 +19,7 @@ const HvBaseRadio = forwardRef(
|
|
|
19
19
|
onChange,
|
|
20
20
|
semantic,
|
|
21
21
|
inputProps,
|
|
22
|
+
color,
|
|
22
23
|
onFocusVisible,
|
|
23
24
|
onBlur,
|
|
24
25
|
...others
|
|
@@ -63,7 +64,7 @@ const HvBaseRadio = forwardRef(
|
|
|
63
64
|
className
|
|
64
65
|
),
|
|
65
66
|
icon: /* @__PURE__ */ jsx(HvRadioIcon, { disabled }),
|
|
66
|
-
checkedIcon: /* @__PURE__ */ jsx(HvRadioIcon, { checked: true, disabled }),
|
|
67
|
+
checkedIcon: /* @__PURE__ */ jsx(HvRadioIcon, { checked: true, disabled, color }),
|
|
67
68
|
color: "default",
|
|
68
69
|
disabled,
|
|
69
70
|
required,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useDefaultProps, createClasses } from "@hitachivantara/uikit-react-utils";
|
|
3
|
-
import { theme } from "@hitachivantara/uikit-styles";
|
|
2
|
+
import { useDefaultProps, createClasses, mergeStyles } from "@hitachivantara/uikit-react-utils";
|
|
3
|
+
import { getColor, theme } from "@hitachivantara/uikit-styles";
|
|
4
4
|
import { SvgBase } from "../icons.js";
|
|
5
5
|
const { useClasses } = createClasses("HvRadioIcon", {
|
|
6
6
|
root: {
|
|
@@ -10,7 +10,7 @@ const { useClasses } = createClasses("HvRadioIcon", {
|
|
|
10
10
|
},
|
|
11
11
|
checked: {
|
|
12
12
|
borderColor: "transparent",
|
|
13
|
-
backgroundColor: theme.colors.primaryStrong
|
|
13
|
+
backgroundColor: `var(--bg-color, ${theme.colors.primaryStrong})`,
|
|
14
14
|
color: theme.colors.bgContainer
|
|
15
15
|
},
|
|
16
16
|
disabled: {
|
|
@@ -28,7 +28,8 @@ const HvRadioIcon = (props) => {
|
|
|
28
28
|
className,
|
|
29
29
|
classes: classesProp,
|
|
30
30
|
checked,
|
|
31
|
-
disabled
|
|
31
|
+
disabled,
|
|
32
|
+
color
|
|
32
33
|
} = useDefaultProps("HvRadioIcon", props);
|
|
33
34
|
const { classes, cx } = useClasses(classesProp, false);
|
|
34
35
|
return /* @__PURE__ */ jsx(
|
|
@@ -40,6 +41,7 @@ const HvRadioIcon = (props) => {
|
|
|
40
41
|
[classes.disabled]: disabled,
|
|
41
42
|
[classes.checkedDisabled]: checked && disabled
|
|
42
43
|
}),
|
|
44
|
+
style: mergeStyles({}, { "--bg-color": getColor(color) }),
|
|
43
45
|
children: checked && /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "4.5" })
|
|
44
46
|
}
|
|
45
47
|
);
|
|
@@ -7,7 +7,7 @@ const { staticClasses, useClasses } = createClasses("HvIconContainer", {
|
|
|
7
7
|
display: "inline-flex",
|
|
8
8
|
flex: "0 0 auto",
|
|
9
9
|
// ensure icon doesn't flex grow/shrink
|
|
10
|
-
fontSize: `var(--
|
|
10
|
+
fontSize: `var(--isize, 16px)`,
|
|
11
11
|
// default size of 16px
|
|
12
12
|
transition: "rotate 0.2s ease",
|
|
13
13
|
justifyContent: "center",
|
|
@@ -39,21 +39,21 @@ const HvIconContainer = forwardRef(function HvIconContainer2(props, ref) {
|
|
|
39
39
|
classes: classesProp,
|
|
40
40
|
style,
|
|
41
41
|
color,
|
|
42
|
-
size
|
|
42
|
+
size = "S",
|
|
43
43
|
rotate,
|
|
44
44
|
children,
|
|
45
45
|
...others
|
|
46
46
|
} = useDefaultProps("HvIconContainer", props);
|
|
47
47
|
const { cx, classes } = useClasses(classesProp);
|
|
48
|
-
const size = mapSizes(sizeProp);
|
|
49
48
|
return /* @__PURE__ */ jsx(
|
|
50
49
|
"div",
|
|
51
50
|
{
|
|
52
51
|
ref,
|
|
53
52
|
className: cx(classes.root, className, {
|
|
54
|
-
[classes[size]]: size
|
|
53
|
+
[classes[mapSizes(size)]]: size
|
|
55
54
|
}),
|
|
56
55
|
style: mergeStyles(style, {
|
|
56
|
+
"--isize": typeof size === "number" ? `${size}px` : void 0,
|
|
57
57
|
color: getColor(color),
|
|
58
58
|
rotate: rotate ? "180deg" : void 0,
|
|
59
59
|
...style
|
|
@@ -40,6 +40,7 @@ const HvTagsInput = forwardRef(
|
|
|
40
40
|
onBlur,
|
|
41
41
|
onFocus,
|
|
42
42
|
placeholder,
|
|
43
|
+
startAdornment,
|
|
43
44
|
endAdornment,
|
|
44
45
|
hideCounter,
|
|
45
46
|
middleCountLabel = "/",
|
|
@@ -359,6 +360,7 @@ const HvTagsInput = forwardRef(
|
|
|
359
360
|
`${label2}-${i}`
|
|
360
361
|
);
|
|
361
362
|
}),
|
|
363
|
+
!disabled && !readOnly && startAdornment,
|
|
362
364
|
!disabled && !readOnly && /* @__PURE__ */ jsx(
|
|
363
365
|
"input",
|
|
364
366
|
{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1053,7 +1053,7 @@ export declare type HvAccentColorKeys = HvAccentColor;
|
|
|
1053
1053
|
export declare type HvAccentColors = Record<HvAccentColorKeys, string>;
|
|
1054
1054
|
|
|
1055
1055
|
/**
|
|
1056
|
-
*
|
|
1056
|
+
* An accordion is a design element that expands in place to expose hidden information.
|
|
1057
1057
|
*/
|
|
1058
1058
|
export declare const HvAccordion: ForwardRefExoticComponent<HvAccordionProps & RefAttributes<HTMLDivElement>>;
|
|
1059
1059
|
|
|
@@ -1072,7 +1072,7 @@ export declare interface HvAccordionProps extends HvBaseProps<HTMLDivElement, "o
|
|
|
1072
1072
|
defaultExpanded?: boolean;
|
|
1073
1073
|
/** An object containing props to be passed onto container holding the accordion children. */
|
|
1074
1074
|
containerProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
1075
|
-
/** Heading level to apply to accordion button. If
|
|
1075
|
+
/** Heading level to apply to accordion button. If `undefined` the button won't have a header wrapper. */
|
|
1076
1076
|
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1077
1077
|
/** Whether the accordion is disabled. */
|
|
1078
1078
|
disabled?: boolean;
|
|
@@ -1171,6 +1171,9 @@ export declare interface HvAdornmentProps extends HvBaseProps<HTMLDivElement | H
|
|
|
1171
1171
|
classes?: HvAdornmentClasses;
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
|
+
/**
|
|
1175
|
+
* An app switcher lets users quickly navigate between different applications or modules within a platform.
|
|
1176
|
+
*/
|
|
1174
1177
|
export declare const HvAppSwitcher: ForwardRefExoticComponent<HvAppSwitcherProps & RefAttributes<HTMLDivElement>>;
|
|
1175
1178
|
|
|
1176
1179
|
export declare const HvAppSwitcherAction: ({ id, className, classes: classesProp, application, onClickCallback, isSelectedCallback, }: HvAppSwitcherActionProps) => JSX_2.Element;
|
|
@@ -1245,15 +1248,14 @@ export declare type HvAtmosphereColorKeys = HvAtmosphereColor;
|
|
|
1245
1248
|
export declare type HvAtmosphereColors = Record<HvAtmosphereColorKeys, string>;
|
|
1246
1249
|
|
|
1247
1250
|
/**
|
|
1248
|
-
* Avatars
|
|
1249
|
-
* They can show an image, an icon or the initial letters of a name, for example.
|
|
1251
|
+
* Avatars represent a user or brand and can display an image, icon, or initials.
|
|
1250
1252
|
*/
|
|
1251
1253
|
export declare const HvAvatar: ForwardRefExoticComponent<HvAvatarProps & RefAttributes<HTMLDivElement>>;
|
|
1252
1254
|
|
|
1253
1255
|
export declare type HvAvatarClasses = ExtractNames<typeof useClasses_27>;
|
|
1254
1256
|
|
|
1255
1257
|
/**
|
|
1256
|
-
*
|
|
1258
|
+
*The Avatar Group displays a collection of avatars, often used to represent groups or teams.
|
|
1257
1259
|
*/
|
|
1258
1260
|
export declare const HvAvatarGroup: ForwardRefExoticComponent<HvAvatarGroupProps & RefAttributes<HTMLDivElement>>;
|
|
1259
1261
|
|
|
@@ -1333,6 +1335,8 @@ export declare const HvBadge: ForwardRefExoticComponent<HvBadgeProps & RefAttrib
|
|
|
1333
1335
|
export declare type HvBadgeClasses = ExtractNames<typeof useClasses_29>;
|
|
1334
1336
|
|
|
1335
1337
|
export declare interface HvBadgeProps extends HvBaseProps {
|
|
1338
|
+
/** The badge color. */
|
|
1339
|
+
color?: HvColorAny;
|
|
1336
1340
|
/**
|
|
1337
1341
|
* Count is the number of unread notifications.
|
|
1338
1342
|
* Note count and label are mutually exclusive.
|
|
@@ -1365,8 +1369,7 @@ export declare interface HvBadgeProps extends HvBaseProps {
|
|
|
1365
1369
|
}
|
|
1366
1370
|
|
|
1367
1371
|
/**
|
|
1368
|
-
* A Banner
|
|
1369
|
-
* It requires a user action, for it to be dismissed. Banners should appear at the top of the screen, below a top app bar.
|
|
1372
|
+
* A **Banner** shows an important message with optional actions. It appears below the top app bar and requires user dismissal.
|
|
1370
1373
|
*/
|
|
1371
1374
|
export declare const HvBanner: ForwardRefExoticComponent<Omit<HvBannerProps, "ref"> & RefAttributes<unknown>>;
|
|
1372
1375
|
|
|
@@ -1468,7 +1471,7 @@ export declare const HvBaseCheckBox: ForwardRefExoticComponent<Omit<HvBaseCheckB
|
|
|
1468
1471
|
|
|
1469
1472
|
export declare type HvBaseCheckBoxClasses = ExtractNames<typeof useClasses_32>;
|
|
1470
1473
|
|
|
1471
|
-
export declare interface HvBaseCheckBoxProps extends Omit<CheckboxProps, "onChange" | "classes"> {
|
|
1474
|
+
export declare interface HvBaseCheckBoxProps extends Omit<CheckboxProps, "onChange" | "classes" | "color"> {
|
|
1472
1475
|
/**
|
|
1473
1476
|
* The input name.
|
|
1474
1477
|
*/
|
|
@@ -1529,6 +1532,10 @@ export declare interface HvBaseCheckBoxProps extends Omit<CheckboxProps, "onChan
|
|
|
1529
1532
|
* Callback fired when the component is blurred.
|
|
1530
1533
|
*/
|
|
1531
1534
|
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
1535
|
+
/**
|
|
1536
|
+
* Color applied to the check box.
|
|
1537
|
+
*/
|
|
1538
|
+
color?: HvColorAny;
|
|
1532
1539
|
/**
|
|
1533
1540
|
* A Jss Object used to override or extend the styles applied to the checkbox.
|
|
1534
1541
|
*/
|
|
@@ -1695,7 +1702,7 @@ export declare const HvBaseRadio: ForwardRefExoticComponent<Omit<HvBaseRadioProp
|
|
|
1695
1702
|
|
|
1696
1703
|
export declare type HvBaseRadioClasses = ExtractNames<typeof useClasses_33>;
|
|
1697
1704
|
|
|
1698
|
-
export declare interface HvBaseRadioProps extends Omit<RadioProps, "onChange" | "classes"> {
|
|
1705
|
+
export declare interface HvBaseRadioProps extends Omit<RadioProps, "onChange" | "classes" | "color"> {
|
|
1699
1706
|
/**
|
|
1700
1707
|
* Class names to be applied.
|
|
1701
1708
|
*/
|
|
@@ -1740,6 +1747,10 @@ export declare interface HvBaseRadioProps extends Omit<RadioProps, "onChange" |
|
|
|
1740
1747
|
* When uncontrolled, defines the initial checked state.
|
|
1741
1748
|
*/
|
|
1742
1749
|
defaultChecked?: boolean;
|
|
1750
|
+
/**
|
|
1751
|
+
* Color applied to the radio button.
|
|
1752
|
+
*/
|
|
1753
|
+
color?: HvColorAny;
|
|
1743
1754
|
/**
|
|
1744
1755
|
* The callback fired when the radio button is pressed.
|
|
1745
1756
|
*/
|
|
@@ -1896,8 +1907,7 @@ export declare interface HvBreadCrumbProps extends HvBaseProps<HTMLDivElement, "
|
|
|
1896
1907
|
export { HvBreakpoints }
|
|
1897
1908
|
|
|
1898
1909
|
/**
|
|
1899
|
-
* Bulk Actions
|
|
1900
|
-
* Also known as "batch production" of multiple items at once, one stage at a time.
|
|
1910
|
+
* Bulk Actions let users apply an action to one or multiple items at once, streamlining repetitive tasks.
|
|
1901
1911
|
*/
|
|
1902
1912
|
export declare const HvBulkActions: ForwardRefExoticComponent<HvBulkActionsProps & RefAttributes<HTMLDivElement>>;
|
|
1903
1913
|
|
|
@@ -2181,10 +2191,7 @@ export declare interface HvCalendarProps extends Omit<React.HTMLAttributes<HTMLD
|
|
|
2181
2191
|
declare type HvCalloutVariant = "success" | "warning" | "error" | "default" | "info" | "accent";
|
|
2182
2192
|
|
|
2183
2193
|
/**
|
|
2184
|
-
* A
|
|
2185
|
-
* It roughly resembles a playing card in size and shape and is intended as a
|
|
2186
|
-
* linked short representation of a conceptual unit. For that reason,
|
|
2187
|
-
* this pattern must be used as an entry-point for further information.
|
|
2194
|
+
* A Card is a container for short, related content—similar in shape to a playing card—and serves as an entry point to more detailed information.
|
|
2188
2195
|
*/
|
|
2189
2196
|
export declare const HvCard: ForwardRefExoticComponent<HvCardProps & RefAttributes<HTMLDivElement>>;
|
|
2190
2197
|
|
|
@@ -2251,8 +2258,7 @@ export declare interface HvCardProps extends HvBaseProps {
|
|
|
2251
2258
|
}
|
|
2252
2259
|
|
|
2253
2260
|
/**
|
|
2254
|
-
|
|
2255
|
-
* It allows you to focus on a particular content while having a notion of how many you have to explore.
|
|
2261
|
+
A Carousel is used to browse content—commonly images, but also text, video, or charts. It highlights one item at a time while giving users a sense of the total content available.
|
|
2256
2262
|
*/
|
|
2257
2263
|
export declare const HvCarousel: ForwardRefExoticComponent<HvCarouselProps & RefAttributes<HTMLDivElement>>;
|
|
2258
2264
|
|
|
@@ -2386,13 +2392,8 @@ export declare interface HvCharCounterProps extends HvBaseProps {
|
|
|
2386
2392
|
}
|
|
2387
2393
|
|
|
2388
2394
|
/**
|
|
2389
|
-
* A Checkbox
|
|
2390
|
-
*
|
|
2391
|
-
* Usually used in a Checkbox Group to present the user with a range of options from
|
|
2392
|
-
* which the user **may select any number of options** to complete their task.
|
|
2393
|
-
*
|
|
2394
|
-
* It can also be used individually to represent the toggle of a single option, when
|
|
2395
|
-
* the Toggle Switch and Toggle Button aren't more appropriate.
|
|
2395
|
+
* A Checkbox lets users select one or more options.
|
|
2396
|
+
* It’s commonly used in a Checkbox Group to present multiple choices, but can also be used individually to toggle a single option.
|
|
2396
2397
|
*/
|
|
2397
2398
|
export declare const HvCheckBox: ForwardRefExoticComponent<Omit<HvCheckBoxProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
2398
2399
|
|
|
@@ -3423,8 +3424,6 @@ export declare type HvFilesAddedEvent = (files: HvFileData[]) => void;
|
|
|
3423
3424
|
/**
|
|
3424
3425
|
* Lets the user choose one or more files from their device storage. Once chosen,
|
|
3425
3426
|
* the files can be uploaded to a server or manipulated on the client side.
|
|
3426
|
-
*
|
|
3427
|
-
* Accepted file types follow the format of the html [input accept attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file).
|
|
3428
3427
|
*/
|
|
3429
3428
|
export declare const HvFileUploader: (props: HvFileUploaderProps) => JSX_2.Element;
|
|
3430
3429
|
|
|
@@ -3514,9 +3513,7 @@ export declare interface HvFileUploaderProps extends HvFormElementProps {
|
|
|
3514
3513
|
}
|
|
3515
3514
|
|
|
3516
3515
|
/**
|
|
3517
|
-
|
|
3518
|
-
* Due to the enormous variety of capabilities required for this, we strongly recommend checking the code of the component and extend it yourself,
|
|
3519
|
-
* while we do not provide a better approach for building this component with smaller and more composable parts.
|
|
3516
|
+
A Filter Group is a UI pattern used to organize and apply multiple filters to a dataset, helping users refine and narrow down results.
|
|
3520
3517
|
*/
|
|
3521
3518
|
export declare const HvFilterGroup: ForwardRefExoticComponent<HvFilterGroupProps & RefAttributes<HTMLDivElement>>;
|
|
3522
3519
|
|
|
@@ -4171,7 +4168,7 @@ export declare type HvInlineEditorProps<C extends React.ElementType = typeof HvI
|
|
|
4171
4168
|
}>;
|
|
4172
4169
|
|
|
4173
4170
|
/**
|
|
4174
|
-
|
|
4171
|
+
The Input is a UI control that allows users to enter and edit text, typically used for collecting user-provided information.
|
|
4175
4172
|
*/
|
|
4176
4173
|
export declare const HvInput: <InputElement extends HTMLElement = HTMLInputElement | HTMLTextAreaElement>(props: HvInputProps<InputElement> & RefAttributes<InputElement>) => React.ReactElement<any> | null;
|
|
4177
4174
|
|
|
@@ -4666,9 +4663,8 @@ export declare function hvNumberColumn<D extends object = Record<string, unknown
|
|
|
4666
4663
|
export declare const hvNumberFallback: (value: any) => number | "—";
|
|
4667
4664
|
|
|
4668
4665
|
/**
|
|
4669
|
-
*
|
|
4670
|
-
*
|
|
4671
|
-
* This component extends the `HvInput` component, please check its documentation for more information on the available props.
|
|
4666
|
+
*A Number Input lets users enter numeric values and provides buttons to increment or decrement the value.
|
|
4667
|
+
*It extends the HvInput component—refer to its documentation for additional available props.
|
|
4672
4668
|
*
|
|
4673
4669
|
* @extends HvInput
|
|
4674
4670
|
*/
|
|
@@ -4712,7 +4708,7 @@ export declare interface HvOptionProps<OptionValue extends {}> extends Omit<HvLi
|
|
|
4712
4708
|
}
|
|
4713
4709
|
|
|
4714
4710
|
/**
|
|
4715
|
-
*
|
|
4711
|
+
* Displays a tooltip automatically when the text content overflows its container.
|
|
4716
4712
|
*/
|
|
4717
4713
|
export declare const HvOverflowTooltip: (props: HvOverflowTooltipProps) => JSX_2.Element;
|
|
4718
4714
|
|
|
@@ -4779,9 +4775,7 @@ export declare interface HvPaginationProps extends HvBaseProps {
|
|
|
4779
4775
|
}
|
|
4780
4776
|
|
|
4781
4777
|
/**
|
|
4782
|
-
* A
|
|
4783
|
-
* It can be horizontal or vertical and its size is defined by its content and how it relates to surrounding patterns.
|
|
4784
|
-
* Regardless of its content, a panel look and feel should be consistent.
|
|
4778
|
+
* A Panel is a flexible container used in patterns like dropdowns, filter groups, or detail sections. It can be horizontal or vertical, with size defined by its content and context. Its appearance should remain consistent regardless of usage.
|
|
4785
4779
|
*/
|
|
4786
4780
|
export declare const HvPanel: ForwardRefExoticComponent<HvPanelProps & RefAttributes<HTMLDivElement>>;
|
|
4787
4781
|
|
|
@@ -4795,7 +4789,7 @@ export declare interface HvPanelProps extends HvBaseProps {
|
|
|
4795
4789
|
export declare type HvPolarizedColorKeys = "positive" | "positive_120" | "positive_80" | "warning" | "warning_120" | "warning_140" | "negative" | "cat21" | "cat22" | "cat23" | "cat24" | "cat25" | "cat26" | "cat27" | "cat28" | "catastrophic";
|
|
4796
4790
|
|
|
4797
4791
|
/**
|
|
4798
|
-
*
|
|
4792
|
+
* Progress Bar provides feedback about a process that is taking place in the application.
|
|
4799
4793
|
*/
|
|
4800
4794
|
export declare const HvProgressBar: (props: HvProgressBarProps) => JSX_2.Element;
|
|
4801
4795
|
|
|
@@ -5167,13 +5161,9 @@ export declare interface HvQueryBuilderRendererProps<V = any> {
|
|
|
5167
5161
|
export declare type HvQueryBuilderRenderers = Record<string, ValueRenderer>;
|
|
5168
5162
|
|
|
5169
5163
|
/**
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
* which the user **may select just one option** to complete their task.
|
|
5174
|
-
*
|
|
5175
|
-
* Individual use of radio buttons, at least uncontrolled, is unadvised as React state management doesn't
|
|
5176
|
-
* respond to the browser's native management of radio inputs checked state.
|
|
5164
|
+
A Radio Button lets users select a single option from a group.
|
|
5165
|
+
|
|
5166
|
+
Use it within a Radio Button Group—individual usage is discouraged, as React may not track the `checked` state reliably outside a group.
|
|
5177
5167
|
*/
|
|
5178
5168
|
export declare const HvRadio: ForwardRefExoticComponent<Omit<HvRadioProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
5179
5169
|
|
|
@@ -5547,9 +5537,7 @@ export declare interface HvScrollToVerticalProps extends HvBaseProps<HTMLOListEl
|
|
|
5547
5537
|
}
|
|
5548
5538
|
|
|
5549
5539
|
/**
|
|
5550
|
-
* A
|
|
5551
|
-
*
|
|
5552
|
-
* This component extends the `HvInput` component, please check its documentation for more information on the available props.
|
|
5540
|
+
* A Search Input allows users to enter and submit a search term.
|
|
5553
5541
|
*
|
|
5554
5542
|
* @extends HvInput
|
|
5555
5543
|
*/
|
|
@@ -5589,9 +5577,9 @@ export declare interface HvSectionProps extends Omit<HvBaseProps<HTMLDivElement>
|
|
|
5589
5577
|
}
|
|
5590
5578
|
|
|
5591
5579
|
/**
|
|
5592
|
-
* The `HvSelect` component is a form control
|
|
5580
|
+
* The `HvSelect` component is a form control for choosing an option from a list.
|
|
5593
5581
|
*
|
|
5594
|
-
* It
|
|
5582
|
+
* It aligns with the native `<select>` and `<option>` APIs, making it easy to integrate into forms.
|
|
5595
5583
|
*
|
|
5596
5584
|
* @example
|
|
5597
5585
|
* <HvSelect name="pets">
|
|
@@ -5604,10 +5592,9 @@ export declare const HvSelect: <OptionValue extends {}, Multiple extends boolean
|
|
|
5604
5592
|
export declare type HvSelectClasses = ExtractNames<typeof useClasses_13>;
|
|
5605
5593
|
|
|
5606
5594
|
/**
|
|
5607
|
-
*
|
|
5595
|
+
* SelectionList allows users to select one or more items from a list.
|
|
5608
5596
|
*
|
|
5609
|
-
*
|
|
5610
|
-
* when it’s clear that the user can only select just one option from the range provided.
|
|
5597
|
+
* While it supports multi-selection, it’s recommended to use it when it’s clear that only a single option should be selected.
|
|
5611
5598
|
*/
|
|
5612
5599
|
export declare const HvSelectionList: ForwardRefExoticComponent<HvSelectionListProps & RefAttributes<HTMLUListElement>>;
|
|
5613
5600
|
|
|
@@ -5691,6 +5678,9 @@ export declare type HvSemanticColors = Record<HvSemanticColorKeys, string>;
|
|
|
5691
5678
|
|
|
5692
5679
|
export declare type HvSequentialColorKeys = "cat1" | "cat1_100" | "cat1_200" | "cat1_300" | "cat1_400" | "cat1_500" | "cat1_600" | "cat1_700" | "cat1_800" | "cat1_900";
|
|
5693
5680
|
|
|
5681
|
+
/**
|
|
5682
|
+
* SimpleGrid is a lightweight, responsive grid for evenly spaced items across a fixed number of columns.
|
|
5683
|
+
*/
|
|
5694
5684
|
export declare const HvSimpleGrid: (props: HvSimpleGridProps) => JSX_2.Element;
|
|
5695
5685
|
|
|
5696
5686
|
export declare type HvSimpleGridClasses = ExtractNames<typeof useClasses_104>;
|
|
@@ -5736,7 +5726,7 @@ declare interface HvSingleCalendarProps extends Omit<HvCalendarProps, "classes">
|
|
|
5736
5726
|
export { HvSize }
|
|
5737
5727
|
|
|
5738
5728
|
/**
|
|
5739
|
-
* The
|
|
5729
|
+
* The Skeleton component displays a placeholder that mimics the shape and size of loading content.
|
|
5740
5730
|
*/
|
|
5741
5731
|
export declare const HvSkeleton: (props: HvSkeletonProps) => JSX_2.Element;
|
|
5742
5732
|
|
|
@@ -5760,7 +5750,7 @@ export declare interface HvSkeletonProps extends HvBaseProps {
|
|
|
5760
5750
|
}
|
|
5761
5751
|
|
|
5762
5752
|
/**
|
|
5763
|
-
* Sliders
|
|
5753
|
+
* Sliders let users select a value from a range along a track. They're ideal for settings like volume, brightness, or image filters.
|
|
5764
5754
|
*/
|
|
5765
5755
|
export declare const HvSlider: ForwardRefExoticComponent<HvSliderProps & RefAttributes<SliderRef>>;
|
|
5766
5756
|
|
|
@@ -5855,12 +5845,13 @@ export declare interface HvSliderProps extends HvBaseProps<HTMLDivElement, "onCh
|
|
|
5855
5845
|
}
|
|
5856
5846
|
|
|
5857
5847
|
/**
|
|
5858
|
-
* A Snackbar
|
|
5859
|
-
*
|
|
5848
|
+
* A Snackbar displays brief messages about app processes and dismisses automatically after a set time.
|
|
5849
|
+
*
|
|
5850
|
+
* You can build a Snackbar using:
|
|
5851
|
+
*
|
|
5852
|
+
* - `HvSnackbar` – handles positioning, transitions, auto-hide, and more.
|
|
5853
|
+
* - `HvSnackbarContent` – offers fine-grained control over the content and appearance.
|
|
5860
5854
|
*
|
|
5861
|
-
* Snackbar can be built with two different components:
|
|
5862
|
-
* - `HvSnackbar`, which wraps all the positioning, transition, auto hide, etc.
|
|
5863
|
-
* - `HvSnackbarContent`, which allows a finer control and customization of the content of the Snackbar.
|
|
5864
5855
|
*/
|
|
5865
5856
|
export declare const HvSnackbar: ForwardRefExoticComponent<Omit<HvSnackbarProps, "ref"> & RefAttributes<unknown>>;
|
|
5866
5857
|
|
|
@@ -5976,9 +5967,10 @@ export declare interface HvSnackbarProviderProps {
|
|
|
5976
5967
|
export declare type HvSnackbarVariant = HvCalloutVariant;
|
|
5977
5968
|
|
|
5978
5969
|
/**
|
|
5979
|
-
*
|
|
5970
|
+
* The Stack component arranges its children in a vertical or horizontal layout.
|
|
5971
|
+
*
|
|
5972
|
+
* It supports customizable spacing and optional dividers between elements.
|
|
5980
5973
|
*
|
|
5981
|
-
* It also allows the specification of the spacing between the stack elements and the addition of a divider between the elements.
|
|
5982
5974
|
*/
|
|
5983
5975
|
export declare const HvStack: (props: HvStackProps) => JSX_2.Element;
|
|
5984
5976
|
|
|
@@ -6530,10 +6522,9 @@ export declare interface HvTabsProps extends Omit<TabsProps, "onChange"> {
|
|
|
6530
6522
|
}
|
|
6531
6523
|
|
|
6532
6524
|
/**
|
|
6533
|
-
* A Tag is
|
|
6534
|
-
*
|
|
6535
|
-
* Use tags to
|
|
6536
|
-
* Use color to indicate meanings that users can learn and recognize across products.
|
|
6525
|
+
* A Tag is a single word that highlights a specific aspect of an asset. An asset can have multiple tags.
|
|
6526
|
+
*
|
|
6527
|
+
* Use tags to indicate status, aid recognition, and support navigation—leveraging color to convey consistent meaning across products.
|
|
6537
6528
|
*/
|
|
6538
6529
|
export declare const HvTag: ForwardRefExoticComponent<Omit<HvTagProps, "ref"> & RefAttributes<HTMLElement>>;
|
|
6539
6530
|
|
|
@@ -6907,7 +6898,9 @@ export declare type HvTimePickerValue = {
|
|
|
6907
6898
|
};
|
|
6908
6899
|
|
|
6909
6900
|
/**
|
|
6910
|
-
* Use when two
|
|
6901
|
+
* Use when two opposing states are represented and the on/off analogy doesn’t fit.
|
|
6902
|
+
*
|
|
6903
|
+
* Only use well-known icons—otherwise, prefer a single checkbox instead.
|
|
6911
6904
|
*/
|
|
6912
6905
|
export declare const HvToggleButton: ForwardRefExoticComponent<HvToggleButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
6913
6906
|
|
|
@@ -6927,11 +6920,10 @@ export declare interface HvToggleButtonProps extends HvBaseProps<HTMLButtonEleme
|
|
|
6927
6920
|
}
|
|
6928
6921
|
|
|
6929
6922
|
/**
|
|
6930
|
-
* Tooltips display informative text
|
|
6931
|
-
*
|
|
6923
|
+
* Tooltips display informative text on hover, focus, or tap, and automatically label the target element for accessibility.
|
|
6924
|
+
*
|
|
6925
|
+
* For icon-only buttons, consider using `HvIconButton`, which includes built-in tooltip behavior.
|
|
6932
6926
|
*
|
|
6933
|
-
* If you are looking to wrap an icon only button with a tooltip, take a look at the `HvIconButton` component
|
|
6934
|
-
* which offers you thus behavior out of the box.
|
|
6935
6927
|
*/
|
|
6936
6928
|
export declare const HvTooltip: ForwardRefExoticComponent<Omit<HvTooltipProps, "ref"> & RefAttributes<unknown>>;
|
|
6937
6929
|
|
|
@@ -7041,13 +7033,8 @@ export declare interface HvTreeItemProps extends React.HTMLAttributes<HTMLElemen
|
|
|
7041
7033
|
}
|
|
7042
7034
|
|
|
7043
7035
|
/**
|
|
7044
|
-
* A Tree View displays hierarchical
|
|
7045
|
-
*
|
|
7046
|
-
*
|
|
7047
|
-
* Tree structures are built through composing the `HvTreeItem` component,
|
|
7048
|
-
* or a custom variation of it.
|
|
7049
|
-
*
|
|
7050
|
-
* It is based on the [MUI X TreeView](https://mui.com/x/react-tree-view) component.
|
|
7036
|
+
* A Tree View displays hierarchical data and helps users explore nested categories.
|
|
7037
|
+
* Tree structures are built using `HvTreeItem` or a custom variation of it.
|
|
7051
7038
|
*
|
|
7052
7039
|
* @example
|
|
7053
7040
|
* ```tsx
|
|
@@ -7195,20 +7182,7 @@ export declare interface HvValidationMessages {
|
|
|
7195
7182
|
}
|
|
7196
7183
|
|
|
7197
7184
|
/**
|
|
7198
|
-
*
|
|
7199
|
-
*
|
|
7200
|
-
* It is recommended to use vertical navigation when your application requires global navigation that is displayed on the left.
|
|
7201
|
-
* While vertical navigation menus generally consume more space than their horizontal counterparts, they have become more popular as desktop monitors move to wide-screen formats.
|
|
7202
|
-
*
|
|
7203
|
-
* Although both the hierarchically organized data and the visual style resemble a treeview-like structure, the [Treeview Design Pattern](https://w3c.github.io/aria-practices/#TreeView)
|
|
7204
|
-
* isn't necessarily the most appropriate.
|
|
7205
|
-
*
|
|
7206
|
-
* The tree role provides complex functionality that is not needed for typical site navigation, and changes the most common keyboard navigation using TAB.
|
|
7207
|
-
*
|
|
7208
|
-
* The [Disclosure Design Pattern](https://w3c.github.io/aria-practices/#disclosure) is more suited for typical site navigation, with expandable groups of links.
|
|
7209
|
-
* However it can be tedious to TAB through all navigation items to reach the actions panel.
|
|
7210
|
-
*
|
|
7211
|
-
* Both modes are available via the `mode` property and each app should choose the most appropriate.
|
|
7185
|
+
* Use a vertical layout for global navigation on wide screens. treeview mode provides structured hierarchy but overrides standard keyboard navigation.
|
|
7212
7186
|
*/
|
|
7213
7187
|
export declare const HvVerticalNavigation: ForwardRefExoticComponent<HvVerticalNavigationProps & RefAttributes<HTMLDivElement>>;
|
|
7214
7188
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.95.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "Core React components for the NEXT Design System.",
|
|
@@ -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.4.
|
|
36
|
-
"@hitachivantara/uikit-react-utils": "^0.2.
|
|
37
|
-
"@hitachivantara/uikit-styles": "^5.
|
|
35
|
+
"@hitachivantara/uikit-react-shared": "^5.4.4",
|
|
36
|
+
"@hitachivantara/uikit-react-utils": "^0.2.37",
|
|
37
|
+
"@hitachivantara/uikit-styles": "^5.48.0",
|
|
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": "
|
|
64
|
+
"gitHead": "91e12a8552a39f5705248541621cd01331109179",
|
|
65
65
|
"exports": {
|
|
66
66
|
".": {
|
|
67
67
|
"types": "./dist/types/index.d.ts",
|