@hitachivantara/uikit-react-core 5.95.0 → 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.
@@ -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
+ };
@@ -0,0 +1,10 @@
1
+ import { ds3 } from "./ds3.js";
2
+ import { ds5 } from "./ds5.js";
3
+ import { pentahoPlus } from "./pentahoPlus.js";
4
+ const themes = { ds3, ds5, pentahoPlus };
5
+ export {
6
+ ds3,
7
+ ds5,
8
+ pentahoPlus,
9
+ themes
10
+ };