@hitachivantara/uikit-react-core 6.0.0-next.1 → 6.0.0-next.10
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/ActionBar/ActionBar.styles.js +1 -1
- package/dist/BaseDropdown/BaseDropdownPanel.js +1 -2
- package/dist/Button/Button.js +2 -2
- package/dist/CheckBox/CheckBox.js +2 -1
- package/dist/CheckBox/CheckBox.styles.js +10 -11
- package/dist/ColorPicker/ColorPicker.js +15 -21
- package/dist/ColorPicker/ColorPicker.styles.js +5 -10
- package/dist/ColorPicker/{Fields → Picker}/Fields.js +54 -44
- package/dist/ColorPicker/Picker/Picker.js +32 -41
- package/dist/ColorPicker/Picker/Picker.styles.js +21 -37
- package/dist/ColorPicker/PresetColors/PresetColors.js +5 -20
- package/dist/ColorPicker/PresetColors/PresetColors.styles.js +1 -10
- package/dist/ColorPicker/SavedColors/SavedColors.js +14 -37
- package/dist/ColorPicker/SavedColors/SavedColors.styles.js +9 -24
- package/dist/ColorPicker/Swatch.js +39 -0
- package/dist/FormElement/Suggestions/Suggestions.js +1 -2
- package/dist/Header/Actions/Actions.styles.js +2 -5
- package/dist/Header/Header.js +0 -1
- package/dist/Header/Header.styles.js +1 -2
- package/dist/Input/Input.js +1 -1
- package/dist/OverflowTooltip/OverflowTooltip.js +2 -2
- package/dist/Pagination/Pagination.js +17 -39
- package/dist/Pagination/Pagination.styles.js +32 -54
- package/dist/Radio/Radio.js +2 -2
- package/dist/Radio/Radio.styles.js +9 -11
- package/dist/SearchInput/SearchInput.styles.js +1 -2
- package/dist/Select/Option.js +1 -1
- package/dist/Select/OptionGroup.js +1 -1
- package/dist/Select/Select.js +4 -4
- package/dist/StatusIcon/StatusIcon.js +4 -4
- package/dist/StatusIcon/StatusIcon.styles.js +9 -14
- package/dist/Tag/Tag.js +1 -1
- package/dist/TextArea/TextArea.js +1 -1
- package/dist/TreeView/TreeView.js +1 -1
- package/dist/VerticalNavigation/NavigationPopup/NavigationPopupContainer.js +1 -2
- package/dist/icons.js +2 -2
- package/dist/index.d.ts +98 -115
- package/dist/index.js +3 -4
- package/dist/providers/Provider.js +3 -3
- package/dist/providers/ThemeProvider.js +24 -6
- package/dist/themes/index.js +3 -3
- package/dist/themes/{ds5.js → next.js} +4 -16
- package/dist/themes/pentaho.js +34 -1
- package/dist/utils/theme.js +0 -20
- package/package.json +11 -10
- package/dist/ColorPicker/Fields/Fields.styles.js +0 -36
|
@@ -14,37 +14,32 @@ const { staticClasses, useClasses } = createClasses("HvStatusIcon", {
|
|
|
14
14
|
lineHeight: 0,
|
|
15
15
|
flexShrink: 0,
|
|
16
16
|
padding: theme.space.xxs,
|
|
17
|
+
borderRadius: theme.radii.base,
|
|
17
18
|
"--icsize": "auto",
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[`&[data-size=xl]`]: { borderRadius: theme.radii.large },
|
|
23
|
-
[`:not([data-type="simple"])`]: {
|
|
19
|
+
":where([data-size=md])": { borderRadius: theme.radii.round },
|
|
20
|
+
":where([data-size=lg])": { borderRadius: theme.radii.large },
|
|
21
|
+
":where([data-size=xl])": { borderRadius: theme.radii.large },
|
|
22
|
+
":where([data-type=full])": {
|
|
24
23
|
outline: "1px solid currentcolor"
|
|
25
24
|
},
|
|
26
25
|
...Object.fromEntries(
|
|
27
26
|
Object.entries(notificationMap).map(([variant, color]) => [
|
|
28
|
-
[
|
|
27
|
+
[`:where([data-variant=${variant}])`],
|
|
29
28
|
{
|
|
30
29
|
color: theme.colors[color],
|
|
31
30
|
outline: `1px solid ${theme.colors[`${color}Border`]}`,
|
|
32
31
|
backgroundColor: theme.colors[`${color}Dimmed`],
|
|
33
|
-
[
|
|
32
|
+
":where([data-type=simple])": {
|
|
34
33
|
outline: "none",
|
|
35
34
|
backgroundColor: "transparent"
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
])
|
|
39
38
|
),
|
|
40
|
-
[
|
|
39
|
+
":where([data-variant=default][data-type=full])": {
|
|
41
40
|
color: theme.colors.text,
|
|
42
41
|
backgroundColor: theme.colors.bgPage,
|
|
43
|
-
outline: `1px solid ${theme.colors.borderSubtle}
|
|
44
|
-
[`&[data-type="simple"]`]: {
|
|
45
|
-
outline: "none",
|
|
46
|
-
backgroundColor: "transparent"
|
|
47
|
-
}
|
|
42
|
+
outline: `1px solid ${theme.colors.borderSubtle}`
|
|
48
43
|
}
|
|
49
44
|
},
|
|
50
45
|
icon: {
|
package/dist/Tag/Tag.js
CHANGED
|
@@ -51,7 +51,7 @@ const HvTag = forwardRef(function HvTag2(props, ref) {
|
|
|
51
51
|
event.stopPropagation();
|
|
52
52
|
onDelete?.(event);
|
|
53
53
|
};
|
|
54
|
-
const color = activeTheme?.name === "
|
|
54
|
+
const color = activeTheme?.name === "pentahoPlus" && colorMap[colorProp] || colorProp;
|
|
55
55
|
const tagColor = (
|
|
56
56
|
// backwards-compatibility for `type` prop
|
|
57
57
|
type === "categorical" && theme.alpha(color || "cat1", 0.2) || // use the palette color if it matches
|
|
@@ -61,7 +61,7 @@ const HvTextArea = forwardRef(function HvTextArea2(props, ref) {
|
|
|
61
61
|
const isDirty = useRef(false);
|
|
62
62
|
const inputRef = useRef(null);
|
|
63
63
|
const forkedRef = useForkRef(ref, inputRefProp, inputRef);
|
|
64
|
-
const [description, infoMessage] = activeTheme?.name === "
|
|
64
|
+
const [description, infoMessage] = activeTheme?.name === "pentahoPlus" ? [infoMessageProp, descriptionProp] : [descriptionProp, infoMessageProp];
|
|
65
65
|
const [focused, setFocused] = useState(false);
|
|
66
66
|
const [autoScrolling, setAutoScrolling] = useState(autoScroll);
|
|
67
67
|
const [validationState, setValidationState] = useControlled(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSlotProps } from "@mui/base
|
|
2
|
+
import { useSlotProps } from "@mui/base";
|
|
3
3
|
import { useDefaultProps } from "@hitachivantara/uikit-react-utils";
|
|
4
4
|
import { HvIcon } from "../icons.js";
|
|
5
5
|
import { fixedForwardRef } from "../types/generic.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Popper } from "@mui/base
|
|
3
|
-
import ClickAwayListener from "@mui/material/ClickAwayListener";
|
|
2
|
+
import { Popper, ClickAwayListener } from "@mui/base";
|
|
4
3
|
import { useTheme } from "@hitachivantara/uikit-react-utils";
|
|
5
4
|
import { getContainerElement } from "../../utils/document.js";
|
|
6
5
|
import { HvVerticalNavigation } from "../VerticalNavigation.js";
|
package/dist/icons.js
CHANGED
|
@@ -44,8 +44,8 @@ const defaultIconPathMap = {
|
|
|
44
44
|
Add: "M16 8.5H8.5V16h-1V8.5H0v-1h7.5V0h1v7.5H16z",
|
|
45
45
|
Close: "m8.7 8 5.3 5.3-.7.7L8 8.7 2.7 14l-.7-.7L7.3 8 2 2.7l.7-.7L8 7.3 13.3 2l.7.7z",
|
|
46
46
|
Search: "M15.07 14.52 10.5 9.95a5.96 5.96 0 1 0-.72.7l4.58 4.58zM5.9 11A4.95 4.95 0 0 1 1 6v-.1A4.95 4.95 0 0 1 6 1h.1A4.95 4.95 0 0 1 11 6v.1A4.95 4.95 0 0 1 6 11z",
|
|
47
|
-
SortAsc: "
|
|
48
|
-
SortDesc: "
|
|
47
|
+
SortAsc: "M10.24 7 6 11.24 1.76 7z",
|
|
48
|
+
SortDesc: "M1.76 5 6 .76 10.24 5z",
|
|
49
49
|
Sort: "M10.24 7 6 11.24 1.76 7zM1.76 5 6 .76 10.24 5z",
|
|
50
50
|
// single-use icons in Widgets
|
|
51
51
|
Calendar: "M10.5 2V0h-1v2h-3V0h-1v2H0v14h16V2zM15 15H1V3h14zM3 6h2v2H3zm4 0h2v2H7zm4 0h2v2h-2zm-8 4h2v2H3zm4 0h2v2H7zm4 0h2v2h-2z",
|