@hitachivantara/uikit-react-core 5.93.1 → 5.93.2
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/Avatar/Avatar.styles.cjs +1 -0
- package/dist/cjs/Banner/BannerContent/BannerContent.styles.cjs +1 -2
- package/dist/cjs/BaseDropdown/BaseDropdown.styles.cjs +5 -16
- package/dist/cjs/BaseDropdown/BaseDropdownPanel.cjs +1 -0
- package/dist/cjs/BaseInput/BaseInput.styles.cjs +1 -1
- package/dist/cjs/BulkActions/BulkActions.styles.cjs +1 -1
- package/dist/cjs/DropDownMenu/DropDownMenu.styles.cjs +1 -15
- package/dist/cjs/DropdownButton/DropdownButton.styles.cjs +1 -8
- package/dist/cjs/FormElement/CharCounter/CharCounter.cjs +1 -1
- package/dist/cjs/FormElement/Suggestions/Suggestions.styles.cjs +7 -1
- package/dist/cjs/Input/Input.cjs +18 -21
- package/dist/cjs/Input/Input.styles.cjs +2 -6
- package/dist/cjs/Select/Select.styles.cjs +5 -12
- package/dist/cjs/TagsInput/TagsInput.cjs +1 -0
- package/dist/cjs/TagsInput/TagsInput.styles.cjs +1 -1
- package/dist/cjs/TextArea/TextArea.cjs +1 -0
- package/dist/cjs/VerticalNavigation/VerticalNavigation.cjs +1 -2
- package/dist/cjs/icons.cjs +19 -21
- package/dist/cjs/utils/Callout.cjs +4 -2
- package/dist/cjs/utils/focusUtils.cjs +2 -0
- package/dist/esm/Avatar/Avatar.styles.js +1 -0
- package/dist/esm/Banner/BannerContent/BannerContent.styles.js +1 -2
- package/dist/esm/BaseDropdown/BaseDropdown.styles.js +5 -16
- package/dist/esm/BaseDropdown/BaseDropdownPanel.js +1 -0
- package/dist/esm/BaseInput/BaseInput.styles.js +1 -1
- package/dist/esm/BulkActions/BulkActions.styles.js +1 -1
- package/dist/esm/DropDownMenu/DropDownMenu.styles.js +1 -15
- package/dist/esm/DropdownButton/DropdownButton.styles.js +1 -8
- package/dist/esm/FormElement/CharCounter/CharCounter.js +1 -1
- package/dist/esm/FormElement/Suggestions/Suggestions.styles.js +7 -1
- package/dist/esm/Input/Input.js +19 -22
- package/dist/esm/Input/Input.styles.js +2 -6
- package/dist/esm/Select/Select.styles.js +5 -12
- package/dist/esm/TagsInput/TagsInput.js +1 -0
- package/dist/esm/TagsInput/TagsInput.styles.js +1 -1
- package/dist/esm/TextArea/TextArea.js +1 -0
- package/dist/esm/VerticalNavigation/VerticalNavigation.js +1 -2
- package/dist/esm/icons.js +19 -21
- package/dist/esm/utils/Callout.js +4 -2
- package/dist/esm/utils/focusUtils.js +2 -0
- package/dist/types/index.d.ts +8 -7
- package/package.json +5 -5
- package/dist/cjs/VerticalNavigation/utils/VerticalNavigation.utils.cjs +0 -6
- package/dist/esm/VerticalNavigation/utils/VerticalNavigation.utils.js +0 -6
|
@@ -26,6 +26,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvAvatar",
|
|
|
26
26
|
alignItems: "center",
|
|
27
27
|
position: "relative",
|
|
28
28
|
padding: uikitStyles.theme.space.xxs,
|
|
29
|
+
height: "fit-content",
|
|
29
30
|
":focus-visible": {
|
|
30
31
|
...focusUtils.outlineStyles,
|
|
31
32
|
borderRadius: 0
|
|
@@ -7,8 +7,7 @@ const { useClasses, staticClasses } = uikitReactUtils.createClasses("HvBannerCon
|
|
|
7
7
|
minWidth: "100%",
|
|
8
8
|
width: "100%",
|
|
9
9
|
position: "relative",
|
|
10
|
-
gap: uikitStyles.theme.space.xs
|
|
11
|
-
borderRadius: 0
|
|
10
|
+
gap: uikitStyles.theme.space.xs
|
|
12
11
|
},
|
|
13
12
|
success: {},
|
|
14
13
|
warning: {},
|
|
@@ -20,7 +20,7 @@ const { useClasses, staticClasses } = uikitReactUtils.createClasses("HvBaseDropd
|
|
|
20
20
|
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
21
21
|
boxSizing: "border-box",
|
|
22
22
|
border: `1px solid ${uikitStyles.theme.colors.text}`,
|
|
23
|
-
borderRadius: uikitStyles.theme.radii.
|
|
23
|
+
borderRadius: uikitStyles.theme.radii.round,
|
|
24
24
|
":hover,:focus-visible": {
|
|
25
25
|
borderColor: uikitStyles.theme.colors.primary
|
|
26
26
|
},
|
|
@@ -34,12 +34,6 @@ const { useClasses, staticClasses } = uikitReactUtils.createClasses("HvBaseDropd
|
|
|
34
34
|
headerOpen: {
|
|
35
35
|
"&,:hover": {
|
|
36
36
|
borderColor: uikitStyles.theme.colors.text
|
|
37
|
-
},
|
|
38
|
-
"&[data-popper-placement*='top']": {
|
|
39
|
-
borderRadius: `0px 0px ${uikitStyles.theme.radii.base} ${uikitStyles.theme.radii.base}`
|
|
40
|
-
},
|
|
41
|
-
"&[data-popper-placement*='bottom']": {
|
|
42
|
-
borderRadius: `${uikitStyles.theme.radii.base} ${uikitStyles.theme.radii.base} 0px 0px`
|
|
43
37
|
}
|
|
44
38
|
},
|
|
45
39
|
/** @deprecated use `[data-popper-placement*='top']` selector instead */
|
|
@@ -92,15 +86,10 @@ const { useClasses, staticClasses } = uikitReactUtils.createClasses("HvBaseDropd
|
|
|
92
86
|
padding: 0,
|
|
93
87
|
border: `1px solid ${uikitStyles.theme.colors.text}`
|
|
94
88
|
},
|
|
95
|
-
|
|
96
|
-
panelOpenedUp: {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
panelOpenedDown: {
|
|
101
|
-
top: -1,
|
|
102
|
-
borderRadius: `0 0 ${uikitStyles.theme.radii.base} ${uikitStyles.theme.radii.base}`
|
|
103
|
-
},
|
|
89
|
+
/** @deprecated leverage `[data-popper-placement]` instead */
|
|
90
|
+
panelOpenedUp: {},
|
|
91
|
+
/** @deprecated leverage `[data-popper-placement]` instead */
|
|
92
|
+
panelOpenedDown: {},
|
|
104
93
|
inputExtensionOpen: {
|
|
105
94
|
height: "0px",
|
|
106
95
|
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
@@ -43,6 +43,7 @@ const BaseDropdownPanel = ({
|
|
|
43
43
|
Panel.HvPanel,
|
|
44
44
|
{
|
|
45
45
|
id: containerId,
|
|
46
|
+
"data-popper-placement": popperPlacement,
|
|
46
47
|
className: cx(classes.panel, {
|
|
47
48
|
[classes.panelOpenedUp]: popperPlacement?.includes("top"),
|
|
48
49
|
[classes.panelOpenedDown]: popperPlacement?.includes("bottom")
|
|
@@ -28,7 +28,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBaseInput
|
|
|
28
28
|
position: "relative",
|
|
29
29
|
overflow: "hidden",
|
|
30
30
|
margin: 0,
|
|
31
|
-
borderRadius: uikitStyles.theme.radii.
|
|
31
|
+
borderRadius: uikitStyles.theme.radii.round,
|
|
32
32
|
height: "32px",
|
|
33
33
|
borderWidth: 1,
|
|
34
34
|
borderColor: uikitStyles.theme.colors.text,
|
|
@@ -9,7 +9,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvBulkActio
|
|
|
9
9
|
display: "flex",
|
|
10
10
|
alignItems: "center",
|
|
11
11
|
border: `1px solid ${uikitStyles.theme.colors.border}`,
|
|
12
|
-
backgroundColor: uikitStyles.theme.colors.
|
|
12
|
+
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
13
13
|
padding: uikitStyles.theme.spacing("xs", "md"),
|
|
14
14
|
marginBottom: uikitStyles.theme.space.xs
|
|
15
15
|
},
|
|
@@ -11,21 +11,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvDropDownM
|
|
|
11
11
|
},
|
|
12
12
|
/** @deprecated use `classes.root` instead */
|
|
13
13
|
container: {},
|
|
14
|
-
baseContainer: {
|
|
15
|
-
"--r": uikitStyles.theme.radii.base,
|
|
16
|
-
"&[data-popper-placement=bottom-end] .HvBaseDropdown-panel": {
|
|
17
|
-
borderRadius: "var(--r) 0 var(--r) var(--r)"
|
|
18
|
-
},
|
|
19
|
-
"&[data-popper-placement=bottom-start] .HvBaseDropdown-panel": {
|
|
20
|
-
borderRadius: "0 var(--r) var(--r) var(--r)"
|
|
21
|
-
},
|
|
22
|
-
"&[data-popper-placement=top-start] .HvBaseDropdown-panel": {
|
|
23
|
-
borderRadius: "var(--r) var(--r) var(--r) 0"
|
|
24
|
-
},
|
|
25
|
-
"&[data-popper-placement=top-end] .HvBaseDropdown-panel": {
|
|
26
|
-
borderRadius: "var(--r) var(--r) 0 var(--r)"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
14
|
+
baseContainer: {},
|
|
29
15
|
/** @deprecated use `classes.root` instead */
|
|
30
16
|
icon: {},
|
|
31
17
|
iconSelected: {
|
|
@@ -30,14 +30,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvDropdownB
|
|
|
30
30
|
...disabledStyle
|
|
31
31
|
},
|
|
32
32
|
open: {
|
|
33
|
-
|
|
34
|
-
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
35
|
-
"&[data-popper-placement*='top']": {
|
|
36
|
-
borderRadius: "0px 0px var(--r) var(--r)"
|
|
37
|
-
},
|
|
38
|
-
"&[data-popper-placement*='bottom']": {
|
|
39
|
-
borderRadius: "var(--r) var(--r) 0px 0px"
|
|
40
|
-
}
|
|
33
|
+
backgroundColor: uikitStyles.theme.colors.bgContainer
|
|
41
34
|
},
|
|
42
35
|
selection: {
|
|
43
36
|
color: "inherit",
|
|
@@ -16,7 +16,7 @@ const HvCharCounter = (props) => {
|
|
|
16
16
|
className,
|
|
17
17
|
id: idProp,
|
|
18
18
|
disabled: disabledProp,
|
|
19
|
-
disableGutter
|
|
19
|
+
disableGutter,
|
|
20
20
|
...others
|
|
21
21
|
} = uikitReactUtils.useDefaultProps("HvCharCounter", props);
|
|
22
22
|
const { classes, cx } = CharCounter_styles.useClasses(classesProp);
|
|
@@ -7,6 +7,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvSuggestio
|
|
|
7
7
|
list: {
|
|
8
8
|
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
9
9
|
border: `1px solid ${uikitStyles.theme.colors.text}`,
|
|
10
|
+
borderRadius: uikitStyles.theme.radii.round,
|
|
10
11
|
boxShadow: uikitStyles.theme.colors.shadow,
|
|
11
12
|
padding: uikitStyles.theme.space.xs,
|
|
12
13
|
width: "100%"
|
|
@@ -16,7 +17,12 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvSuggestio
|
|
|
16
17
|
position: "absolute",
|
|
17
18
|
zIndex: uikitStyles.theme.zIndices.tooltip,
|
|
18
19
|
":not($portal)": {
|
|
19
|
-
|
|
20
|
+
"&[data-popper-placement*='top']": {
|
|
21
|
+
transform: "translate3d(0, -28px, 0) !important"
|
|
22
|
+
},
|
|
23
|
+
"&[data-popper-placement*='bottom']": {
|
|
24
|
+
transform: "translate3d(0, 2px, 0) !important"
|
|
25
|
+
}
|
|
20
26
|
}
|
|
21
27
|
},
|
|
22
28
|
portal: {}
|
package/dist/cjs/Input/Input.cjs
CHANGED
|
@@ -444,27 +444,24 @@ const HvInput = generic.fixedForwardRef(function HvInput2(props, ref) {
|
|
|
444
444
|
...others
|
|
445
445
|
}
|
|
446
446
|
),
|
|
447
|
-
canShowSuggestions && /* @__PURE__ */ jsxRuntime.
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
{
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
)
|
|
467
|
-
] }),
|
|
447
|
+
canShowSuggestions && /* @__PURE__ */ jsxRuntime.jsx(
|
|
448
|
+
Suggestions.HvSuggestions,
|
|
449
|
+
{
|
|
450
|
+
id: setId.setId(elementId, "suggestions"),
|
|
451
|
+
classes: {
|
|
452
|
+
root: classes.suggestionsContainer,
|
|
453
|
+
list: classes.suggestionList
|
|
454
|
+
},
|
|
455
|
+
expanded: hasSuggestions,
|
|
456
|
+
anchorEl: inputRef.current?.parentElement,
|
|
457
|
+
onClose: suggestionClearHandler,
|
|
458
|
+
onKeyDown: onSuggestionKeyDown,
|
|
459
|
+
onSuggestionSelected: suggestionSelectedHandler,
|
|
460
|
+
suggestionValues,
|
|
461
|
+
enablePortal,
|
|
462
|
+
popperProps: { ref: suggestionsRef }
|
|
463
|
+
}
|
|
464
|
+
),
|
|
468
465
|
canShowError && /* @__PURE__ */ jsxRuntime.jsx(
|
|
469
466
|
WarningText.HvWarningText,
|
|
470
467
|
{
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
4
|
-
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
4
|
const Suggestions_styles = require("../FormElement/Suggestions/Suggestions.styles.cjs");
|
|
6
5
|
require("../FormElement/Suggestions/Suggestions.cjs");
|
|
7
6
|
const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvInput", {
|
|
@@ -31,11 +30,8 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvInput", {
|
|
|
31
30
|
width: "100%"
|
|
32
31
|
}
|
|
33
32
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
37
|
-
boxShadow: `0px 8px 0px ${uikitStyles.theme.colors.bgContainer}, 0px 0px 9px 0px rgba(65,65,65,.12)`
|
|
38
|
-
},
|
|
33
|
+
/** @deprecated unused. use `classes.suggestionsContainer ::before` instead */
|
|
34
|
+
inputExtension: {},
|
|
39
35
|
input: {},
|
|
40
36
|
inputRoot: {
|
|
41
37
|
":is(:hover,:focus-within) $iconClear": {
|
|
@@ -11,22 +11,15 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvSelect",
|
|
|
11
11
|
},
|
|
12
12
|
disabled: {},
|
|
13
13
|
readOnly: {},
|
|
14
|
-
invalid: {
|
|
15
|
-
borderColor: uikitStyles.theme.form.errorColor
|
|
16
|
-
},
|
|
14
|
+
invalid: {},
|
|
17
15
|
labelContainer: {},
|
|
18
16
|
label: {},
|
|
19
17
|
description: {},
|
|
20
|
-
select: {
|
|
18
|
+
select: {
|
|
19
|
+
"&&$invalid": { borderColor: uikitStyles.theme.form.errorColor }
|
|
20
|
+
},
|
|
21
21
|
popper: {
|
|
22
|
-
zIndex: uikitStyles.theme.zIndices.popover
|
|
23
|
-
"--r": uikitStyles.theme.radii.base,
|
|
24
|
-
"&[data-popper-placement*='top'] $panel": {
|
|
25
|
-
borderRadius: `var(--r) var(--r) 0 0`
|
|
26
|
-
},
|
|
27
|
-
"&[data-popper-placement*='bottom'] $panel": {
|
|
28
|
-
borderRadius: `0 0 var(--r) var(--r)`
|
|
29
|
-
}
|
|
22
|
+
zIndex: uikitStyles.theme.zIndices.popover
|
|
30
23
|
},
|
|
31
24
|
panel: {
|
|
32
25
|
maxHeight: 400,
|
|
@@ -317,6 +317,7 @@ const HvTagsInput = React.forwardRef(
|
|
|
317
317
|
children: hasCounter && /* @__PURE__ */ jsxRuntime.jsx(
|
|
318
318
|
CharCounter.HvCharCounter,
|
|
319
319
|
{
|
|
320
|
+
disableGutter: true,
|
|
320
321
|
id: setId.setId(elementId, "charCounter"),
|
|
321
322
|
className: classes.characterCounter,
|
|
322
323
|
separator: middleCountLabel,
|
|
@@ -56,7 +56,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvTagsInput
|
|
|
56
56
|
backgroundColor: uikitStyles.theme.colors.bgContainer,
|
|
57
57
|
borderWidth: 1,
|
|
58
58
|
borderColor: uikitStyles.theme.colors.textSubtle,
|
|
59
|
-
borderRadius: uikitStyles.theme.radii.
|
|
59
|
+
borderRadius: uikitStyles.theme.radii.round,
|
|
60
60
|
"&:hover": {
|
|
61
61
|
borderColor: uikitStyles.theme.colors.primary
|
|
62
62
|
},
|
|
@@ -214,6 +214,7 @@ const HvTextArea = React.forwardRef(function HvTextArea2(props, ref) {
|
|
|
214
214
|
children: hasCounter && /* @__PURE__ */ jsxRuntime.jsx(
|
|
215
215
|
CharCounter.HvCharCounter,
|
|
216
216
|
{
|
|
217
|
+
disableGutter: true,
|
|
217
218
|
id: setId.setId(elementId, "charCounter"),
|
|
218
219
|
className: classes.characterCounter,
|
|
219
220
|
separator: middleCountLabel,
|
|
@@ -4,7 +4,6 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
6
6
|
const utils = require("./NavigationSlider/utils.cjs");
|
|
7
|
-
const VerticalNavigation_utils = require("./utils/VerticalNavigation.utils.cjs");
|
|
8
7
|
const VerticalNavigation_styles = require("./VerticalNavigation.styles.cjs");
|
|
9
8
|
const VerticalNavigationContext = require("./VerticalNavigationContext.cjs");
|
|
10
9
|
const HvVerticalNavigation = React.forwardRef(function HvVerticalNavigation2(props, ref) {
|
|
@@ -31,7 +30,7 @@ const HvVerticalNavigation = React.forwardRef(function HvVerticalNavigation2(pro
|
|
|
31
30
|
);
|
|
32
31
|
const [parentItem, setParentItem] = React.useState(initialParentItem);
|
|
33
32
|
const hasAnyChildWithData = React.useMemo(
|
|
34
|
-
() =>
|
|
33
|
+
() => parentData.some((item) => item.data && item.data.length > 0),
|
|
35
34
|
[parentData]
|
|
36
35
|
);
|
|
37
36
|
const headerTitle = React.useMemo(() => parentItem?.label, [parentItem]);
|
package/dist/cjs/icons.cjs
CHANGED
|
@@ -23,8 +23,8 @@ const SvgBase = styled__default.default("svg")({
|
|
|
23
23
|
flexShrink: 0,
|
|
24
24
|
transition: "rotate 0.2s ease"
|
|
25
25
|
});
|
|
26
|
-
const Svg = styled__default.default(SvgBase)(({ size, color, compact,
|
|
27
|
-
rotate:
|
|
26
|
+
const Svg = styled__default.default(SvgBase)(({ size, color, compact, rotation }) => ({
|
|
27
|
+
rotate: rotation ? "180deg" : void 0,
|
|
28
28
|
margin: compact ? 0 : size === "xs" ? 10 : 8,
|
|
29
29
|
color: uikitStyles.getColor(color) ?? "inherit",
|
|
30
30
|
fontSize: svgSizeMap[size] ?? size ?? svgSizeMap.sm
|
|
@@ -67,31 +67,29 @@ const defaultIconPathMap = {
|
|
|
67
67
|
Remove: "M0 7.5h16v1H0z"
|
|
68
68
|
};
|
|
69
69
|
function HvIconInternal(props, ref) {
|
|
70
|
-
const { name, title, "aria-label": ariaLabel,
|
|
70
|
+
const { name, title, "aria-label": ariaLabel, rotate, ...others } = props;
|
|
71
71
|
const { activeTheme } = uikitReactUtils.useTheme();
|
|
72
72
|
const iconsPathMap = React.useMemo(
|
|
73
73
|
() => ({ ...defaultIconPathMap, ...activeTheme?.icons }),
|
|
74
74
|
[activeTheme?.icons]
|
|
75
75
|
);
|
|
76
76
|
const isDefaultIcon = iconsPathMap[name] === defaultIconPathMap[name];
|
|
77
|
-
return (
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
children:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
)
|
|
77
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
78
|
+
Svg,
|
|
79
|
+
{
|
|
80
|
+
ref,
|
|
81
|
+
"data-name": name,
|
|
82
|
+
rotation: rotate,
|
|
83
|
+
viewBox: !isDefaultIcon && activeTheme?.icons?.viewBox || "0 0 16 16",
|
|
84
|
+
focusable: false,
|
|
85
|
+
"aria-label": ariaLabel,
|
|
86
|
+
role: title || ariaLabel ? "img" : "none",
|
|
87
|
+
...others,
|
|
88
|
+
children: [
|
|
89
|
+
title ? /* @__PURE__ */ jsxRuntime.jsx("title", { children: title }) : null,
|
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: iconsPathMap[name] })
|
|
91
|
+
]
|
|
92
|
+
}
|
|
95
93
|
);
|
|
96
94
|
}
|
|
97
95
|
const HvIcon = React.memo(React.forwardRef(HvIconInternal));
|
|
@@ -16,7 +16,8 @@ const { useClasses } = uikitReactUtils.createClasses("HvCallout", {
|
|
|
16
16
|
position: "relative",
|
|
17
17
|
boxShadow: "none",
|
|
18
18
|
flexWrap: "nowrap",
|
|
19
|
-
padding: 0
|
|
19
|
+
padding: 0,
|
|
20
|
+
borderRadius: uikitStyles.theme.radii.round
|
|
20
21
|
},
|
|
21
22
|
success: {
|
|
22
23
|
backgroundColor: uikitStyles.theme.colors.positiveDimmed
|
|
@@ -48,7 +49,8 @@ const { useClasses } = uikitReactUtils.createClasses("HvCallout", {
|
|
|
48
49
|
wordBreak: "break-word"
|
|
49
50
|
},
|
|
50
51
|
messageIcon: {
|
|
51
|
-
lineHeight: 0
|
|
52
|
+
lineHeight: 0,
|
|
53
|
+
flexShrink: 0
|
|
52
54
|
},
|
|
53
55
|
messageTitle: {
|
|
54
56
|
display: "block",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const outlineStyles = {
|
|
4
|
+
outline: "none",
|
|
5
|
+
// remove the default outlines
|
|
4
6
|
boxShadow: "0 0 0 1px #52A8EC, 0 0 0 4px rgba(29,155,209,.3)"
|
|
5
7
|
};
|
|
6
8
|
exports.outlineStyles = outlineStyles;
|
|
@@ -18,7 +18,7 @@ const { useClasses, staticClasses } = createClasses("HvBaseDropdown", {
|
|
|
18
18
|
backgroundColor: theme.colors.bgContainer,
|
|
19
19
|
boxSizing: "border-box",
|
|
20
20
|
border: `1px solid ${theme.colors.text}`,
|
|
21
|
-
borderRadius: theme.radii.
|
|
21
|
+
borderRadius: theme.radii.round,
|
|
22
22
|
":hover,:focus-visible": {
|
|
23
23
|
borderColor: theme.colors.primary
|
|
24
24
|
},
|
|
@@ -32,12 +32,6 @@ const { useClasses, staticClasses } = createClasses("HvBaseDropdown", {
|
|
|
32
32
|
headerOpen: {
|
|
33
33
|
"&,:hover": {
|
|
34
34
|
borderColor: theme.colors.text
|
|
35
|
-
},
|
|
36
|
-
"&[data-popper-placement*='top']": {
|
|
37
|
-
borderRadius: `0px 0px ${theme.radii.base} ${theme.radii.base}`
|
|
38
|
-
},
|
|
39
|
-
"&[data-popper-placement*='bottom']": {
|
|
40
|
-
borderRadius: `${theme.radii.base} ${theme.radii.base} 0px 0px`
|
|
41
35
|
}
|
|
42
36
|
},
|
|
43
37
|
/** @deprecated use `[data-popper-placement*='top']` selector instead */
|
|
@@ -90,15 +84,10 @@ const { useClasses, staticClasses } = createClasses("HvBaseDropdown", {
|
|
|
90
84
|
padding: 0,
|
|
91
85
|
border: `1px solid ${theme.colors.text}`
|
|
92
86
|
},
|
|
93
|
-
|
|
94
|
-
panelOpenedUp: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
panelOpenedDown: {
|
|
99
|
-
top: -1,
|
|
100
|
-
borderRadius: `0 0 ${theme.radii.base} ${theme.radii.base}`
|
|
101
|
-
},
|
|
87
|
+
/** @deprecated leverage `[data-popper-placement]` instead */
|
|
88
|
+
panelOpenedUp: {},
|
|
89
|
+
/** @deprecated leverage `[data-popper-placement]` instead */
|
|
90
|
+
panelOpenedDown: {},
|
|
102
91
|
inputExtensionOpen: {
|
|
103
92
|
height: "0px",
|
|
104
93
|
backgroundColor: theme.colors.bgContainer,
|
|
@@ -41,6 +41,7 @@ const BaseDropdownPanel = ({
|
|
|
41
41
|
HvPanel,
|
|
42
42
|
{
|
|
43
43
|
id: containerId,
|
|
44
|
+
"data-popper-placement": popperPlacement,
|
|
44
45
|
className: cx(classes.panel, {
|
|
45
46
|
[classes.panelOpenedUp]: popperPlacement?.includes("top"),
|
|
46
47
|
[classes.panelOpenedDown]: popperPlacement?.includes("bottom")
|
|
@@ -26,7 +26,7 @@ const { staticClasses, useClasses } = createClasses("HvBaseInput", {
|
|
|
26
26
|
position: "relative",
|
|
27
27
|
overflow: "hidden",
|
|
28
28
|
margin: 0,
|
|
29
|
-
borderRadius: theme.radii.
|
|
29
|
+
borderRadius: theme.radii.round,
|
|
30
30
|
height: "32px",
|
|
31
31
|
borderWidth: 1,
|
|
32
32
|
borderColor: theme.colors.text,
|
|
@@ -7,7 +7,7 @@ const { staticClasses, useClasses } = createClasses("HvBulkActions", {
|
|
|
7
7
|
display: "flex",
|
|
8
8
|
alignItems: "center",
|
|
9
9
|
border: `1px solid ${theme.colors.border}`,
|
|
10
|
-
backgroundColor: theme.colors.
|
|
10
|
+
backgroundColor: theme.colors.bgContainer,
|
|
11
11
|
padding: theme.spacing("xs", "md"),
|
|
12
12
|
marginBottom: theme.space.xs
|
|
13
13
|
},
|
|
@@ -9,21 +9,7 @@ const { staticClasses, useClasses } = createClasses("HvDropDownMenu", {
|
|
|
9
9
|
},
|
|
10
10
|
/** @deprecated use `classes.root` instead */
|
|
11
11
|
container: {},
|
|
12
|
-
baseContainer: {
|
|
13
|
-
"--r": theme.radii.base,
|
|
14
|
-
"&[data-popper-placement=bottom-end] .HvBaseDropdown-panel": {
|
|
15
|
-
borderRadius: "var(--r) 0 var(--r) var(--r)"
|
|
16
|
-
},
|
|
17
|
-
"&[data-popper-placement=bottom-start] .HvBaseDropdown-panel": {
|
|
18
|
-
borderRadius: "0 var(--r) var(--r) var(--r)"
|
|
19
|
-
},
|
|
20
|
-
"&[data-popper-placement=top-start] .HvBaseDropdown-panel": {
|
|
21
|
-
borderRadius: "var(--r) var(--r) var(--r) 0"
|
|
22
|
-
},
|
|
23
|
-
"&[data-popper-placement=top-end] .HvBaseDropdown-panel": {
|
|
24
|
-
borderRadius: "var(--r) var(--r) 0 var(--r)"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
12
|
+
baseContainer: {},
|
|
27
13
|
/** @deprecated use `classes.root` instead */
|
|
28
14
|
icon: {},
|
|
29
15
|
iconSelected: {
|
|
@@ -28,14 +28,7 @@ const { staticClasses, useClasses } = createClasses("HvDropdownButton", {
|
|
|
28
28
|
...disabledStyle
|
|
29
29
|
},
|
|
30
30
|
open: {
|
|
31
|
-
|
|
32
|
-
backgroundColor: theme.colors.bgContainer,
|
|
33
|
-
"&[data-popper-placement*='top']": {
|
|
34
|
-
borderRadius: "0px 0px var(--r) var(--r)"
|
|
35
|
-
},
|
|
36
|
-
"&[data-popper-placement*='bottom']": {
|
|
37
|
-
borderRadius: "var(--r) var(--r) 0px 0px"
|
|
38
|
-
}
|
|
31
|
+
backgroundColor: theme.colors.bgContainer
|
|
39
32
|
},
|
|
40
33
|
selection: {
|
|
41
34
|
color: "inherit",
|
|
@@ -5,6 +5,7 @@ const { staticClasses, useClasses } = createClasses("HvSuggestions", {
|
|
|
5
5
|
list: {
|
|
6
6
|
backgroundColor: theme.colors.bgContainer,
|
|
7
7
|
border: `1px solid ${theme.colors.text}`,
|
|
8
|
+
borderRadius: theme.radii.round,
|
|
8
9
|
boxShadow: theme.colors.shadow,
|
|
9
10
|
padding: theme.space.xs,
|
|
10
11
|
width: "100%"
|
|
@@ -14,7 +15,12 @@ const { staticClasses, useClasses } = createClasses("HvSuggestions", {
|
|
|
14
15
|
position: "absolute",
|
|
15
16
|
zIndex: theme.zIndices.tooltip,
|
|
16
17
|
":not($portal)": {
|
|
17
|
-
|
|
18
|
+
"&[data-popper-placement*='top']": {
|
|
19
|
+
transform: "translate3d(0, -28px, 0) !important"
|
|
20
|
+
},
|
|
21
|
+
"&[data-popper-placement*='bottom']": {
|
|
22
|
+
transform: "translate3d(0, 2px, 0) !important"
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
},
|
|
20
26
|
portal: {}
|
package/dist/esm/Input/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, jsxs
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useState, useMemo, useCallback, useEffect } from "react";
|
|
3
3
|
import { useForkRef } from "@mui/material/utils";
|
|
4
4
|
import { useDefaultProps, useTheme } from "@hitachivantara/uikit-react-utils";
|
|
@@ -443,27 +443,24 @@ const HvInput = fixedForwardRef(function HvInput2(props, ref) {
|
|
|
443
443
|
...others
|
|
444
444
|
}
|
|
445
445
|
),
|
|
446
|
-
canShowSuggestions && /* @__PURE__ */
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
{
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
}
|
|
465
|
-
)
|
|
466
|
-
] }),
|
|
446
|
+
canShowSuggestions && /* @__PURE__ */ jsx(
|
|
447
|
+
HvSuggestions,
|
|
448
|
+
{
|
|
449
|
+
id: setId(elementId, "suggestions"),
|
|
450
|
+
classes: {
|
|
451
|
+
root: classes.suggestionsContainer,
|
|
452
|
+
list: classes.suggestionList
|
|
453
|
+
},
|
|
454
|
+
expanded: hasSuggestions,
|
|
455
|
+
anchorEl: inputRef.current?.parentElement,
|
|
456
|
+
onClose: suggestionClearHandler,
|
|
457
|
+
onKeyDown: onSuggestionKeyDown,
|
|
458
|
+
onSuggestionSelected: suggestionSelectedHandler,
|
|
459
|
+
suggestionValues,
|
|
460
|
+
enablePortal,
|
|
461
|
+
popperProps: { ref: suggestionsRef }
|
|
462
|
+
}
|
|
463
|
+
),
|
|
467
464
|
canShowError && /* @__PURE__ */ jsx(
|
|
468
465
|
HvWarningText,
|
|
469
466
|
{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createClasses } from "@hitachivantara/uikit-react-utils";
|
|
2
|
-
import { theme } from "@hitachivantara/uikit-styles";
|
|
3
2
|
import { staticClasses as staticClasses$1 } from "../FormElement/Suggestions/Suggestions.styles.js";
|
|
4
3
|
import "../FormElement/Suggestions/Suggestions.js";
|
|
5
4
|
const { staticClasses, useClasses } = createClasses("HvInput", {
|
|
@@ -29,11 +28,8 @@ const { staticClasses, useClasses } = createClasses("HvInput", {
|
|
|
29
28
|
width: "100%"
|
|
30
29
|
}
|
|
31
30
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
backgroundColor: theme.colors.bgContainer,
|
|
35
|
-
boxShadow: `0px 8px 0px ${theme.colors.bgContainer}, 0px 0px 9px 0px rgba(65,65,65,.12)`
|
|
36
|
-
},
|
|
31
|
+
/** @deprecated unused. use `classes.suggestionsContainer ::before` instead */
|
|
32
|
+
inputExtension: {},
|
|
37
33
|
input: {},
|
|
38
34
|
inputRoot: {
|
|
39
35
|
":is(:hover,:focus-within) $iconClear": {
|
|
@@ -9,22 +9,15 @@ const { staticClasses, useClasses } = createClasses("HvSelect", {
|
|
|
9
9
|
},
|
|
10
10
|
disabled: {},
|
|
11
11
|
readOnly: {},
|
|
12
|
-
invalid: {
|
|
13
|
-
borderColor: theme.form.errorColor
|
|
14
|
-
},
|
|
12
|
+
invalid: {},
|
|
15
13
|
labelContainer: {},
|
|
16
14
|
label: {},
|
|
17
15
|
description: {},
|
|
18
|
-
select: {
|
|
16
|
+
select: {
|
|
17
|
+
"&&$invalid": { borderColor: theme.form.errorColor }
|
|
18
|
+
},
|
|
19
19
|
popper: {
|
|
20
|
-
zIndex: theme.zIndices.popover
|
|
21
|
-
"--r": theme.radii.base,
|
|
22
|
-
"&[data-popper-placement*='top'] $panel": {
|
|
23
|
-
borderRadius: `var(--r) var(--r) 0 0`
|
|
24
|
-
},
|
|
25
|
-
"&[data-popper-placement*='bottom'] $panel": {
|
|
26
|
-
borderRadius: `0 0 var(--r) var(--r)`
|
|
27
|
-
}
|
|
20
|
+
zIndex: theme.zIndices.popover
|
|
28
21
|
},
|
|
29
22
|
panel: {
|
|
30
23
|
maxHeight: 400,
|
|
@@ -54,7 +54,7 @@ const { staticClasses, useClasses } = createClasses("HvTagsInput", {
|
|
|
54
54
|
backgroundColor: theme.colors.bgContainer,
|
|
55
55
|
borderWidth: 1,
|
|
56
56
|
borderColor: theme.colors.textSubtle,
|
|
57
|
-
borderRadius: theme.radii.
|
|
57
|
+
borderRadius: theme.radii.round,
|
|
58
58
|
"&:hover": {
|
|
59
59
|
borderColor: theme.colors.primary
|
|
60
60
|
},
|
|
@@ -213,6 +213,7 @@ const HvTextArea = forwardRef(function HvTextArea2(props, ref) {
|
|
|
213
213
|
children: hasCounter && /* @__PURE__ */ jsx(
|
|
214
214
|
HvCharCounter,
|
|
215
215
|
{
|
|
216
|
+
disableGutter: true,
|
|
216
217
|
id: setId(elementId, "charCounter"),
|
|
217
218
|
className: classes.characterCounter,
|
|
218
219
|
separator: middleCountLabel,
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useState, useMemo, useCallback } from "react";
|
|
3
3
|
import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
|
|
4
4
|
import { fillDataWithParentId, getParentItemById, getNavigationItemById } from "./NavigationSlider/utils.js";
|
|
5
|
-
import { hasChildNavigationItems } from "./utils/VerticalNavigation.utils.js";
|
|
6
5
|
import { useClasses } from "./VerticalNavigation.styles.js";
|
|
7
6
|
import { staticClasses } from "./VerticalNavigation.styles.js";
|
|
8
7
|
import { VerticalNavigationContext } from "./VerticalNavigationContext.js";
|
|
@@ -30,7 +29,7 @@ const HvVerticalNavigation = forwardRef(function HvVerticalNavigation2(props, re
|
|
|
30
29
|
);
|
|
31
30
|
const [parentItem, setParentItem] = useState(initialParentItem);
|
|
32
31
|
const hasAnyChildWithData = useMemo(
|
|
33
|
-
() =>
|
|
32
|
+
() => parentData.some((item) => item.data && item.data.length > 0),
|
|
34
33
|
[parentData]
|
|
35
34
|
);
|
|
36
35
|
const headerTitle = useMemo(() => parentItem?.label, [parentItem]);
|
package/dist/esm/icons.js
CHANGED
|
@@ -19,8 +19,8 @@ const SvgBase = styled("svg")({
|
|
|
19
19
|
flexShrink: 0,
|
|
20
20
|
transition: "rotate 0.2s ease"
|
|
21
21
|
});
|
|
22
|
-
const Svg = styled(SvgBase)(({ size, color, compact,
|
|
23
|
-
rotate:
|
|
22
|
+
const Svg = styled(SvgBase)(({ size, color, compact, rotation }) => ({
|
|
23
|
+
rotate: rotation ? "180deg" : void 0,
|
|
24
24
|
margin: compact ? 0 : size === "xs" ? 10 : 8,
|
|
25
25
|
color: getColor(color) ?? "inherit",
|
|
26
26
|
fontSize: svgSizeMap[size] ?? size ?? svgSizeMap.sm
|
|
@@ -63,31 +63,29 @@ const defaultIconPathMap = {
|
|
|
63
63
|
Remove: "M0 7.5h16v1H0z"
|
|
64
64
|
};
|
|
65
65
|
function HvIconInternal(props, ref) {
|
|
66
|
-
const { name, title, "aria-label": ariaLabel,
|
|
66
|
+
const { name, title, "aria-label": ariaLabel, rotate, ...others } = props;
|
|
67
67
|
const { activeTheme } = useTheme();
|
|
68
68
|
const iconsPathMap = useMemo(
|
|
69
69
|
() => ({ ...defaultIconPathMap, ...activeTheme?.icons }),
|
|
70
70
|
[activeTheme?.icons]
|
|
71
71
|
);
|
|
72
72
|
const isDefaultIcon = iconsPathMap[name] === defaultIconPathMap[name];
|
|
73
|
-
return (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
children:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
)
|
|
73
|
+
return /* @__PURE__ */ jsxs(
|
|
74
|
+
Svg,
|
|
75
|
+
{
|
|
76
|
+
ref,
|
|
77
|
+
"data-name": name,
|
|
78
|
+
rotation: rotate,
|
|
79
|
+
viewBox: !isDefaultIcon && activeTheme?.icons?.viewBox || "0 0 16 16",
|
|
80
|
+
focusable: false,
|
|
81
|
+
"aria-label": ariaLabel,
|
|
82
|
+
role: title || ariaLabel ? "img" : "none",
|
|
83
|
+
...others,
|
|
84
|
+
children: [
|
|
85
|
+
title ? /* @__PURE__ */ jsx("title", { children: title }) : null,
|
|
86
|
+
/* @__PURE__ */ jsx("path", { d: iconsPathMap[name] })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
91
89
|
);
|
|
92
90
|
}
|
|
93
91
|
const HvIcon = memo(forwardRef(HvIconInternal));
|
|
@@ -12,7 +12,8 @@ const { useClasses } = createClasses("HvCallout", {
|
|
|
12
12
|
position: "relative",
|
|
13
13
|
boxShadow: "none",
|
|
14
14
|
flexWrap: "nowrap",
|
|
15
|
-
padding: 0
|
|
15
|
+
padding: 0,
|
|
16
|
+
borderRadius: theme.radii.round
|
|
16
17
|
},
|
|
17
18
|
success: {
|
|
18
19
|
backgroundColor: theme.colors.positiveDimmed
|
|
@@ -44,7 +45,8 @@ const { useClasses } = createClasses("HvCallout", {
|
|
|
44
45
|
wordBreak: "break-word"
|
|
45
46
|
},
|
|
46
47
|
messageIcon: {
|
|
47
|
-
lineHeight: 0
|
|
48
|
+
lineHeight: 0,
|
|
49
|
+
flexShrink: 0
|
|
48
50
|
},
|
|
49
51
|
messageTitle: {
|
|
50
52
|
display: "block",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1999,7 +1999,7 @@ export declare const HvButton: <C extends React.ElementType = "button">(props: {
|
|
|
1999
1999
|
component?: C | undefined;
|
|
2000
2000
|
} & {
|
|
2001
2001
|
children?: ReactNode | undefined;
|
|
2002
|
-
} & (Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "icon" | "selected" | "variant" | "size" | "
|
|
2002
|
+
} & (Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "icon" | "selected" | "variant" | "size" | "radius" | "component" | "className" | "focusableWhenDisabled" | "startIcon" | "endIcon" | "overrideIconColors"> extends infer T ? T extends Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "icon" | "selected" | "variant" | "size" | "radius" | "component" | "className" | "focusableWhenDisabled" | "startIcon" | "endIcon" | "overrideIconColors"> ? T extends any ? T : never : never : never) & {
|
|
2003
2003
|
ref?: PolymorphicRef<C> | undefined;
|
|
2004
2004
|
} & RefAttributes<unknown>) => React.ReactElement<any> | null;
|
|
2005
2005
|
|
|
@@ -4022,7 +4022,7 @@ export declare const HvIconButton: <C extends React.ElementType = "button">(prop
|
|
|
4022
4022
|
component?: C | undefined;
|
|
4023
4023
|
} & {
|
|
4024
4024
|
children?: ReactNode | undefined;
|
|
4025
|
-
} & (Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "title" | "selected" | "variant" | "size" | "
|
|
4025
|
+
} & (Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "title" | "selected" | "variant" | "size" | "radius" | "component" | "className" | "overrideIconColors" | "placement" | "enterDelay" | "tooltipProps" | Exclude<keyof (Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "icon" | "selected" | "variant" | "size" | "radius" | "component" | "className" | "focusableWhenDisabled" | "startIcon" | "endIcon" | "overrideIconColors"> extends infer T ? T extends Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "icon" | "selected" | "variant" | "size" | "radius" | "component" | "className" | "focusableWhenDisabled" | "startIcon" | "endIcon" | "overrideIconColors"> ? T extends any ? T : never : never : never), "icon" | "title" | "children" | "ref" | "component" | "focusableWhenDisabled" | "startIcon" | "endIcon">> extends infer T_1 ? T_1 extends Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "title" | "selected" | "variant" | "size" | "radius" | "component" | "className" | "overrideIconColors" | "placement" | "enterDelay" | "tooltipProps" | Exclude<keyof (Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "icon" | "selected" | "variant" | "size" | "radius" | "component" | "className" | "focusableWhenDisabled" | "startIcon" | "endIcon" | "overrideIconColors"> extends infer T_2 ? T_2 extends Omit<PropsWithoutRef<ComponentProps<C>>, "color" | "classes" | "disabled" | "icon" | "selected" | "variant" | "size" | "radius" | "component" | "className" | "focusableWhenDisabled" | "startIcon" | "endIcon" | "overrideIconColors"> ? T_2 extends any ? T_2 : never : never : never), "icon" | "title" | "children" | "ref" | "component" | "focusableWhenDisabled" | "startIcon" | "endIcon">> ? T_1 extends any ? T_1 : never : never : never) & {
|
|
4026
4026
|
ref?: PolymorphicRef<C> | undefined;
|
|
4027
4027
|
} & RefAttributes<unknown>) => React.ReactElement<any> | null;
|
|
4028
4028
|
|
|
@@ -4794,13 +4794,13 @@ export declare interface HvPanelProps extends HvBaseProps {
|
|
|
4794
4794
|
|
|
4795
4795
|
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
4796
|
|
|
4797
|
+
/**
|
|
4798
|
+
* ProgressBar provides feedback about a process that is taking place in the application.
|
|
4799
|
+
*/
|
|
4797
4800
|
export declare const HvProgressBar: (props: HvProgressBarProps) => JSX_2.Element;
|
|
4798
4801
|
|
|
4799
4802
|
export declare type HvProgressBarClasses = ExtractNames<typeof useClasses_96>;
|
|
4800
4803
|
|
|
4801
|
-
/**
|
|
4802
|
-
* ProgressBar provides feedback about a process that is taking place in the application.
|
|
4803
|
-
*/
|
|
4804
4804
|
export declare interface HvProgressBarProps extends HvBaseProps {
|
|
4805
4805
|
/** The value of the progress bar. */
|
|
4806
4806
|
value: number;
|
|
@@ -7705,6 +7705,7 @@ export declare const optionGroupClasses: {
|
|
|
7705
7705
|
};
|
|
7706
7706
|
|
|
7707
7707
|
export declare const outlineStyles: {
|
|
7708
|
+
outline: string;
|
|
7708
7709
|
boxShadow: string;
|
|
7709
7710
|
};
|
|
7710
7711
|
|
|
@@ -8625,7 +8626,7 @@ declare const useClasses_117: (classesProp?: Partial<Record<"root" | "disabled"
|
|
|
8625
8626
|
readonly cx: (...args: any) => string;
|
|
8626
8627
|
};
|
|
8627
8628
|
|
|
8628
|
-
declare const useClasses_118: (classesProp?: Partial<Record<"label" | "root" | "invalid" | "disabled" | "readOnly" | "input" | "tagInputRoot" | "tagsList" | "error" | "singleLine" | "description" | "labelContainer" | "resizable" | "suggestionsContainer" | "suggestionList" | "
|
|
8629
|
+
declare const useClasses_118: (classesProp?: Partial<Record<"label" | "root" | "invalid" | "disabled" | "readOnly" | "input" | "tagInputRoot" | "tagsList" | "error" | "singleLine" | "inputExtension" | "description" | "labelContainer" | "resizable" | "suggestionsContainer" | "suggestionList" | "chipRoot" | "listItemGutters" | "listItemRoot" | "characterCounter" | "tagInputContainerRoot" | "tagSelected" | "tagInputBorderContainer" | "tagInputRootFocused" | "tagInputRootEmpty", string>>, addStatic?: boolean) => {
|
|
8629
8630
|
readonly classes: {
|
|
8630
8631
|
listItemGutters: string;
|
|
8631
8632
|
listItemRoot: string;
|
|
@@ -9465,7 +9466,7 @@ declare const useClasses_46: (classesProp?: Partial<Record<"image" | "slide", st
|
|
|
9465
9466
|
readonly cx: (...args: any) => string;
|
|
9466
9467
|
};
|
|
9467
9468
|
|
|
9468
|
-
declare const useClasses_47: (classesProp?: Partial<Record<"label" | "root" | "input" | "icon" | "error" | "inputRoot" | "adornmentsBox" | "description" | "adornmentButton" | "labelContainer" | "inputBorderContainer" | "inputRootFocused" | "inputRootDisabled" | "inputRootMultiline" | "iconClear" | "hasSuggestions" | "suggestionsContainer" | "suggestionList"
|
|
9469
|
+
declare const useClasses_47: (classesProp?: Partial<Record<"label" | "root" | "input" | "icon" | "error" | "inputRoot" | "inputExtension" | "adornmentsBox" | "description" | "adornmentButton" | "labelContainer" | "inputBorderContainer" | "inputRootFocused" | "inputRootDisabled" | "inputRootMultiline" | "iconClear" | "hasSuggestions" | "suggestionsContainer" | "suggestionList", string>>, addStatic?: boolean) => {
|
|
9469
9470
|
readonly classes: {
|
|
9470
9471
|
root: string;
|
|
9471
9472
|
labelContainer: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.93.
|
|
3
|
+
"version": "5.93.2",
|
|
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.46.
|
|
35
|
+
"@hitachivantara/uikit-react-shared": "^5.4.2",
|
|
36
|
+
"@hitachivantara/uikit-react-utils": "^0.2.35",
|
|
37
|
+
"@hitachivantara/uikit-styles": "^5.46.2",
|
|
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": "9b7ed5b28906e4871b7f54b947e1a7a1d6f5f215",
|
|
65
65
|
"exports": {
|
|
66
66
|
".": {
|
|
67
67
|
"types": "./dist/types/index.d.ts",
|