@hitachivantara/uikit-react-core 6.2.0 → 6.4.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/AppSwitcher/Action/Action.js +18 -23
- package/dist/AppSwitcher/Action/Action.styles.js +2 -2
- package/dist/Avatar/Avatar.js +16 -22
- package/dist/Avatar/Avatar.styles.js +16 -14
- package/dist/AvatarGroup/AvatarGroup.js +19 -91
- package/dist/AvatarGroup/AvatarGroup.styles.js +7 -11
- package/dist/BreadCrumb/BreadCrumb.js +16 -3
- package/dist/BreadCrumb/Page/Page.js +15 -2
- package/dist/BreadCrumb/PathElement/PathElement.js +2 -9
- package/dist/BreadCrumb/utils.js +6 -3
- package/dist/Pagination/Pagination.js +10 -12
- package/dist/Pagination/Pagination.styles.js +11 -29
- package/dist/Section/Section.js +2 -2
- package/dist/SimpleGrid/SimpleGrid.styles.js +2 -2
- package/dist/StatusIcon/StatusIcon.styles.js +2 -2
- package/dist/Table/TableCell/TableCell.styles.js +1 -1
- package/dist/Table/TableHeader/TableHeader.js +18 -18
- package/dist/Table/TableHeader/TableHeader.styles.js +20 -21
- package/dist/Table/TableSection/TableSection.js +1 -4
- package/dist/Table/renderers/renderers.js +24 -21
- package/dist/TimeAgo/formatUtils.js +20 -26
- package/dist/VerticalNavigation/TreeView/TreeView.js +1 -1
- package/dist/VerticalNavigation/TreeView/TreeViewItem.styles.js +2 -1
- package/dist/hooks/useWidth.js +3 -1
- package/dist/index.d.ts +4 -2
- package/dist/themes/pentaho.js +108 -5
- package/package.json +4 -4
package/dist/themes/pentaho.js
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
|
-
import { mergeTheme, pentaho as pentaho$1, theme, neutral, slate, blue } from "@hitachivantara/uikit-styles";
|
|
1
|
+
import { mergeTheme, pentaho as pentaho$1, theme, neutral, slate, blue, yellow, pink, violet, teal, orange } from "@hitachivantara/uikit-styles";
|
|
2
2
|
const ld = (c1, c2) => `light-dark(${c1}, ${c2})`;
|
|
3
3
|
const semaColors = ["positive", "warning", "negative", "info"];
|
|
4
|
+
const avatarColors = {
|
|
5
|
+
blue: {
|
|
6
|
+
color: ld(theme.colors.primaryStrong, blue[300]),
|
|
7
|
+
backgroundColor: ld(theme.colors.primaryDimmed, blue[900])
|
|
8
|
+
},
|
|
9
|
+
orange: {
|
|
10
|
+
color: ld(orange[700], orange[200]),
|
|
11
|
+
backgroundColor: ld(orange[200], orange[900])
|
|
12
|
+
},
|
|
13
|
+
teal: {
|
|
14
|
+
color: ld(teal[800], teal[200]),
|
|
15
|
+
backgroundColor: ld(teal[200], teal[900])
|
|
16
|
+
},
|
|
17
|
+
violet: {
|
|
18
|
+
color: ld(violet[800], violet[200]),
|
|
19
|
+
backgroundColor: ld(violet[200], violet[900])
|
|
20
|
+
},
|
|
21
|
+
pink: {
|
|
22
|
+
color: ld(pink[900], pink[200]),
|
|
23
|
+
backgroundColor: ld(pink[200], pink[900])
|
|
24
|
+
},
|
|
25
|
+
yellow: {
|
|
26
|
+
color: ld(yellow[700], yellow[100]),
|
|
27
|
+
backgroundColor: ld(yellow[200], yellow[900])
|
|
28
|
+
},
|
|
29
|
+
neutral: {
|
|
30
|
+
color: ld(slate[400], slate[300]),
|
|
31
|
+
backgroundColor: ld(slate[200], slate[700])
|
|
32
|
+
}
|
|
33
|
+
};
|
|
4
34
|
const notificationMap = {
|
|
5
35
|
success: "positive",
|
|
6
36
|
warning: "warning",
|
|
@@ -33,6 +63,44 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
33
63
|
End: "M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"
|
|
34
64
|
},
|
|
35
65
|
components: {
|
|
66
|
+
HvAvatar: {
|
|
67
|
+
color: "primaryStrong",
|
|
68
|
+
backgroundColor: "primaryDimmed",
|
|
69
|
+
classes: {
|
|
70
|
+
avatar: {
|
|
71
|
+
border: `1px solid ${theme.colors.bgContainerSecondary}`,
|
|
72
|
+
fontWeight: theme.fontWeights.semibold,
|
|
73
|
+
...Object.entries(avatarColors).reduce(
|
|
74
|
+
(acc, [color, styles]) => {
|
|
75
|
+
acc[`&[data-color=${color}]`] = styles;
|
|
76
|
+
return acc;
|
|
77
|
+
},
|
|
78
|
+
{}
|
|
79
|
+
)
|
|
80
|
+
},
|
|
81
|
+
xs: { "--size": "24px", fontSize: theme.fontSizes.sm },
|
|
82
|
+
sm: { "--size": "24px", fontSize: theme.fontSizes.sm },
|
|
83
|
+
md: { "--size": "32px", fontSize: theme.fontSizes.base },
|
|
84
|
+
lg: { "--size": "48px", fontSize: theme.fontSizes.xl2 },
|
|
85
|
+
xl: { "--size": "64px", fontSize: theme.fontSizes.xl3 }
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
HvAvatarGroup: {
|
|
89
|
+
maxVisible: 4,
|
|
90
|
+
classes: {
|
|
91
|
+
root: {
|
|
92
|
+
// eslint-disable-next-line no-useless-spread
|
|
93
|
+
...Object.values(avatarColors).reduce(
|
|
94
|
+
(acc, styles, i) => {
|
|
95
|
+
const key = `&>.HvAvatar-container:nth-of-type(${i + 1}) .HvAvatar-avatar`;
|
|
96
|
+
acc[key] = styles;
|
|
97
|
+
return acc;
|
|
98
|
+
},
|
|
99
|
+
{}
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
36
104
|
HvLoading: {
|
|
37
105
|
classes: {
|
|
38
106
|
loadingBar: {
|
|
@@ -43,7 +111,8 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
43
111
|
HvBadge: {
|
|
44
112
|
classes: {
|
|
45
113
|
badge: {
|
|
46
|
-
color:
|
|
114
|
+
"--bg-color": theme.colors.textSubtle,
|
|
115
|
+
color: ld("white", "black"),
|
|
47
116
|
"&[data-color='textSubtle']:not(:empty)": {
|
|
48
117
|
color: theme.colors.textSubtle,
|
|
49
118
|
backgroundColor: theme.colors.bgPageSecondary
|
|
@@ -378,6 +447,7 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
378
447
|
HvButtonBase: {
|
|
379
448
|
classes: {
|
|
380
449
|
root: {
|
|
450
|
+
borderRadius: theme.radii.base,
|
|
381
451
|
":where(:not(.HvButtonBase-disabled))": {
|
|
382
452
|
":hover": { backgroundColor: theme.colors.primaryDimmed },
|
|
383
453
|
":active": { backgroundColor: theme.colors.primarySubtle }
|
|
@@ -552,9 +622,6 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
552
622
|
},
|
|
553
623
|
HvPagination: {
|
|
554
624
|
classes: {
|
|
555
|
-
root: {
|
|
556
|
-
...theme.typography.caption1
|
|
557
|
-
},
|
|
558
625
|
icon: {
|
|
559
626
|
fontSize: 16
|
|
560
627
|
}
|
|
@@ -748,6 +815,23 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
748
815
|
HvFooter: {
|
|
749
816
|
name: "Pentaho"
|
|
750
817
|
},
|
|
818
|
+
HvTableCell: {
|
|
819
|
+
classes: {
|
|
820
|
+
root: {
|
|
821
|
+
borderColor: theme.colors.borderSubtle
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
HvTableHeader: {
|
|
826
|
+
classes: {
|
|
827
|
+
root: {
|
|
828
|
+
borderColor: theme.colors.borderSubtle
|
|
829
|
+
},
|
|
830
|
+
head: {
|
|
831
|
+
backgroundColor: theme.colors.bgPage
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
},
|
|
751
835
|
HvTabs: {
|
|
752
836
|
classes: {
|
|
753
837
|
floating: {
|
|
@@ -1039,6 +1123,25 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
1039
1123
|
minHeight: "unset"
|
|
1040
1124
|
}
|
|
1041
1125
|
}
|
|
1126
|
+
},
|
|
1127
|
+
HvBreadCrumb: {
|
|
1128
|
+
classes: {
|
|
1129
|
+
currentPage: {
|
|
1130
|
+
fontWeight: theme.fontWeights.semibold,
|
|
1131
|
+
padding: `0 ${theme.space.xxs}`
|
|
1132
|
+
},
|
|
1133
|
+
separatorContainer: {
|
|
1134
|
+
padding: `0 ${theme.space.xxs}`
|
|
1135
|
+
},
|
|
1136
|
+
link: {
|
|
1137
|
+
height: 24,
|
|
1138
|
+
display: "flex",
|
|
1139
|
+
alignItems: "center",
|
|
1140
|
+
padding: `0px ${theme.space.xxs}`,
|
|
1141
|
+
fontWeight: theme.fontWeights.normal
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
separator: "/"
|
|
1042
1145
|
}
|
|
1043
1146
|
}
|
|
1044
1147
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Hitachi Vantara UI Kit Team",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@emotion/cache": "^11.11.0",
|
|
35
35
|
"@emotion/serialize": "^1.1.2",
|
|
36
36
|
"@hitachivantara/uikit-react-shared": "^6.0.2",
|
|
37
|
-
"@hitachivantara/uikit-react-utils": "^6.
|
|
37
|
+
"@hitachivantara/uikit-react-utils": "^6.2.0",
|
|
38
38
|
"@hitachivantara/uikit-styles": "^6.0.2",
|
|
39
39
|
"@internationalized/date": "^3.2.0",
|
|
40
40
|
"@mui/base": "5.0.0-beta.68",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"rc-slider": "^10.5.0",
|
|
51
51
|
"rc-tooltip": "~6.3.0",
|
|
52
52
|
"react-popper": "^2.3.0",
|
|
53
|
-
"react-resize-detector": "^
|
|
53
|
+
"react-resize-detector": "^12.3.0",
|
|
54
54
|
"react-table": "^7.8.0",
|
|
55
55
|
"react-window": "^1.8.10"
|
|
56
56
|
},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"access": "public",
|
|
62
62
|
"directory": "package"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "bbf0a2a94a557f91676bfef658162b41019b924b",
|
|
65
65
|
"exports": {
|
|
66
66
|
".": {
|
|
67
67
|
"types": "./dist/index.d.ts",
|