@hitachivantara/uikit-react-core 5.95.1 → 5.96.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/ListContainer/ListItem/ListItem.cjs +27 -47
- package/dist/cjs/ListContainer/ListItem/ListItem.styles.cjs +11 -19
- package/dist/cjs/Typography/Typography.cjs +3 -3
- package/dist/cjs/index.cjs +8 -16
- package/dist/cjs/themes/ds3.cjs +1208 -0
- package/dist/cjs/themes/ds5.cjs +142 -0
- package/dist/cjs/themes/index.cjs +10 -0
- package/dist/cjs/themes/pentahoPlus.cjs +761 -0
- package/dist/cjs/utils/theme.cjs +5 -5
- package/dist/esm/ListContainer/ListItem/ListItem.js +27 -47
- package/dist/esm/ListContainer/ListItem/ListItem.styles.js +11 -19
- package/dist/esm/Typography/Typography.js +3 -3
- package/dist/esm/index.js +5 -1
- package/dist/esm/themes/ds3.js +1208 -0
- package/dist/esm/themes/ds5.js +142 -0
- package/dist/esm/themes/index.js +10 -0
- package/dist/esm/themes/pentahoPlus.js +761 -0
- package/dist/esm/utils/theme.js +1 -1
- package/dist/types/index.d.ts +110 -114
- package/package.json +6 -6
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { mergeTheme, ds5 as ds5$1, theme } from "@hitachivantara/uikit-styles";
|
|
2
|
+
const ds5 = mergeTheme(ds5$1, {
|
|
3
|
+
components: {
|
|
4
|
+
HvAvatar: {
|
|
5
|
+
classes: {
|
|
6
|
+
square: {
|
|
7
|
+
borderRadius: theme.radii.round
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
HvBannerContent: {
|
|
12
|
+
classes: {
|
|
13
|
+
root: {
|
|
14
|
+
borderRadius: 0
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
HvBaseDropdown: {
|
|
19
|
+
classes: {
|
|
20
|
+
headerOpen: {
|
|
21
|
+
"--r": theme.radii.round,
|
|
22
|
+
"&[data-popper-placement*='top']": {
|
|
23
|
+
borderRadius: "0 0 var(--r) var(--r)"
|
|
24
|
+
},
|
|
25
|
+
"&[data-popper-placement*='bottom']": {
|
|
26
|
+
borderRadius: "var(--r) var(--r) 0 0"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
panel: {
|
|
30
|
+
"--r": theme.radii.round,
|
|
31
|
+
"&[data-popper-placement*='top']": {
|
|
32
|
+
top: 1,
|
|
33
|
+
borderRadius: "var(--r) var(--r) 0 0"
|
|
34
|
+
},
|
|
35
|
+
"&[data-popper-placement*='bottom']": {
|
|
36
|
+
top: -1,
|
|
37
|
+
borderRadius: "0 0 var(--r) var(--r)"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
HvButton: {
|
|
43
|
+
radius: "round",
|
|
44
|
+
classes: {
|
|
45
|
+
root: {
|
|
46
|
+
":where(:not(.HvButton-disabled,.HvButton-contained))": {
|
|
47
|
+
"&[data-color=warning]": { color: theme.colors.warning_140 }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
contained: {
|
|
51
|
+
":where([data-color=primary]:not(.HvButton-disabled))": {
|
|
52
|
+
":hover, &:focus-visible": {
|
|
53
|
+
backgroundColor: theme.colors.primary_80,
|
|
54
|
+
borderColor: theme.colors.primary_80
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
":where([data-color=positive]:not(.HvButton-disabled))": {
|
|
58
|
+
":hover, &:focus-visible": {
|
|
59
|
+
backgroundColor: theme.colors.positive_80,
|
|
60
|
+
borderColor: theme.colors.positive_80
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
":where([data-color=warning]:not(.HvButton-disabled))": {
|
|
64
|
+
backgroundColor: theme.colors.warning_120,
|
|
65
|
+
":hover, &:focus-visible": {
|
|
66
|
+
backgroundColor: theme.colors.warning_140,
|
|
67
|
+
borderColor: theme.colors.warning_140
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
":where([data-color=negative]:not(.HvButton-disabled))": {
|
|
71
|
+
":hover, &:focus-visible": {
|
|
72
|
+
backgroundColor: theme.colors.negative_80,
|
|
73
|
+
borderColor: theme.colors.negative_80
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
HvDropdownButton: {
|
|
80
|
+
classes: {
|
|
81
|
+
open: {
|
|
82
|
+
"&[data-popper-placement*='top']": {
|
|
83
|
+
borderTopLeftRadius: 0,
|
|
84
|
+
borderTopRightRadius: 0
|
|
85
|
+
},
|
|
86
|
+
"&[data-popper-placement*='bottom']": {
|
|
87
|
+
borderBottomLeftRadius: 0,
|
|
88
|
+
borderBottomRightRadius: 0
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
HvMultiButton: {
|
|
94
|
+
classes: {
|
|
95
|
+
splitGroup: {
|
|
96
|
+
// NEXT5 subtle multi-buttons have a custom background
|
|
97
|
+
"& .HvButton-subtle": {
|
|
98
|
+
backgroundColor: theme.colors.atmo1
|
|
99
|
+
},
|
|
100
|
+
"&& .HvButton-disabled": {
|
|
101
|
+
backgroundColor: theme.colors.atmo3
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
HvSelect: {
|
|
107
|
+
classes: {
|
|
108
|
+
popper: {
|
|
109
|
+
"--r": theme.radii.round,
|
|
110
|
+
"&[data-popper-placement*='top'] .HvSelect-panel": {
|
|
111
|
+
borderRadius: "var(--r) var(--r) 0 0"
|
|
112
|
+
},
|
|
113
|
+
"&[data-popper-placement*='bottom'] .HvSelect-panel": {
|
|
114
|
+
borderRadius: "0 0 var(--r) var(--r)"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
HvTab: {
|
|
120
|
+
classes: {
|
|
121
|
+
root: {
|
|
122
|
+
"&.HvTab-selected": {
|
|
123
|
+
color: theme.colors.secondary
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
HvTag: {
|
|
129
|
+
classes: {
|
|
130
|
+
root: {
|
|
131
|
+
"--tagColor": theme.colors.neutral_20
|
|
132
|
+
},
|
|
133
|
+
categorical: {
|
|
134
|
+
"--tagColor": theme.alpha("cat1", 0.2)
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
export {
|
|
141
|
+
ds5
|
|
142
|
+
};
|