@hitachivantara/uikit-react-core 6.0.0-next.3 → 6.0.0-next.4
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/index.d.ts
CHANGED
|
@@ -8271,7 +8271,7 @@ declare const useClasses_15: (classesProp?: Partial<Record<"root", string>>, add
|
|
|
8271
8271
|
readonly cx: (...args: any) => string;
|
|
8272
8272
|
};
|
|
8273
8273
|
|
|
8274
|
-
declare const useClasses_16: (classesProp?: Partial<Record<"
|
|
8274
|
+
declare const useClasses_16: (classesProp?: Partial<Record<"vertical" | "horizontal" | "label" | "listbox" | "error" | "root" | "description" | "invalid", string>>, addStatic?: boolean) => {
|
|
8275
8275
|
readonly classes: {
|
|
8276
8276
|
root: string;
|
|
8277
8277
|
error: string;
|
|
@@ -8766,7 +8766,7 @@ declare const useClasses_46: (classesProp?: Partial<Record<"icon" | "root" | "ic
|
|
|
8766
8766
|
readonly cx: (...args: any) => string;
|
|
8767
8767
|
};
|
|
8768
8768
|
|
|
8769
|
-
declare const useClasses_47: (classesProp?: Partial<Record<"
|
|
8769
|
+
declare const useClasses_47: (classesProp?: Partial<Record<"vertical" | "horizontal" | "label" | "error" | "group" | "root" | "invalid" | "selectAll", string>>, addStatic?: boolean) => {
|
|
8770
8770
|
readonly classes: {
|
|
8771
8771
|
root: string;
|
|
8772
8772
|
label: string;
|
|
@@ -8781,7 +8781,7 @@ declare const useClasses_47: (classesProp?: Partial<Record<"label" | "horizontal
|
|
|
8781
8781
|
readonly cx: (...args: any) => string;
|
|
8782
8782
|
};
|
|
8783
8783
|
|
|
8784
|
-
declare const useClasses_48: (classesProp?: Partial<Record<"label" | "root" | "description" | "panel" | "labelContainer" | "headerColorValue" | "headerColorIcon" | "
|
|
8784
|
+
declare const useClasses_48: (classesProp?: Partial<Record<"label" | "colorPicker" | "root" | "description" | "panel" | "labelContainer" | "headerColorValue" | "headerColorIcon" | "colorPickerIcon" | "recommendedColorsRoot" | "dropdownRootIconOnly" | "headerColorIconOnly" | "pickerFields", string>>, addStatic?: boolean) => {
|
|
8785
8785
|
readonly classes: {
|
|
8786
8786
|
root: string;
|
|
8787
8787
|
labelContainer: string;
|
|
@@ -9102,7 +9102,7 @@ declare const useClasses_64: (classesProp?: Partial<Record<"warning" | "backgrou
|
|
|
9102
9102
|
readonly cx: (...args: any) => string;
|
|
9103
9103
|
};
|
|
9104
9104
|
|
|
9105
|
-
declare const useClasses_65: (classesProp?: Partial<Record<"
|
|
9105
|
+
declare const useClasses_65: (classesProp?: Partial<Record<"horizontal" | "radio" | "icon" | "root", string>>, addStatic?: boolean) => {
|
|
9106
9106
|
readonly classes: {
|
|
9107
9107
|
root: string;
|
|
9108
9108
|
horizontal: string;
|
|
@@ -9113,7 +9113,7 @@ declare const useClasses_65: (classesProp?: Partial<Record<"radio" | "horizontal
|
|
|
9113
9113
|
readonly cx: (...args: any) => string;
|
|
9114
9114
|
};
|
|
9115
9115
|
|
|
9116
|
-
declare const useClasses_66: (classesProp?: Partial<Record<"
|
|
9116
|
+
declare const useClasses_66: (classesProp?: Partial<Record<"vertical" | "horizontal" | "label" | "error" | "group" | "root" | "invalid", string>>, addStatic?: boolean) => {
|
|
9117
9117
|
readonly classes: {
|
|
9118
9118
|
root: string;
|
|
9119
9119
|
label: string;
|
|
@@ -9449,7 +9449,7 @@ declare const useClasses_88: (classesProp?: Partial<Record<"root" | "formContain
|
|
|
9449
9449
|
readonly cx: (...args: any) => string;
|
|
9450
9450
|
};
|
|
9451
9451
|
|
|
9452
|
-
declare const useClasses_89: (classesProp?: Partial<Record<"
|
|
9452
|
+
declare const useClasses_89: (classesProp?: Partial<Record<"vertical" | "button" | "multiple" | "selected" | "root" | "splitGroup" | "splitGroupDisabled" | "firstButton" | "lastButton", string>>, addStatic?: boolean) => {
|
|
9453
9453
|
readonly classes: {
|
|
9454
9454
|
root: string;
|
|
9455
9455
|
multiple: string;
|
|
@@ -42,7 +42,7 @@ const HvProvider = ({
|
|
|
42
42
|
{
|
|
43
43
|
theme,
|
|
44
44
|
emotionCache,
|
|
45
|
-
colorMode
|
|
45
|
+
colorMode,
|
|
46
46
|
themeRootId: cssTheme === "scoped" ? rootElementId || scopedRootId : void 0,
|
|
47
47
|
children: /* @__PURE__ */ jsx(ClassNames, { children: ({ css: css2 }) => {
|
|
48
48
|
if (cssBaseline === "scoped") {
|
|
@@ -12,9 +12,10 @@ const HvThemeProvider = ({
|
|
|
12
12
|
colorMode: colorModeProp,
|
|
13
13
|
themeRootId: rootId
|
|
14
14
|
}) => {
|
|
15
|
-
const [
|
|
15
|
+
const [colorModeValue, setColorModeValue] = useState(colorModeProp);
|
|
16
|
+
const colorMode = colorModeValue === "dark" ? "dark" : "light";
|
|
16
17
|
useEffect(() => {
|
|
17
|
-
|
|
18
|
+
setColorModeValue(colorModeProp);
|
|
18
19
|
}, [colorModeProp]);
|
|
19
20
|
useEffect(() => {
|
|
20
21
|
const element = getContainerElement(rootId);
|
|
@@ -27,7 +28,7 @@ const HvThemeProvider = ({
|
|
|
27
28
|
activeTheme: theme,
|
|
28
29
|
selectedMode: colorMode,
|
|
29
30
|
changeMode(newMode = colorMode) {
|
|
30
|
-
|
|
31
|
+
setColorModeValue(newMode);
|
|
31
32
|
},
|
|
32
33
|
rootId
|
|
33
34
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Hitachi Vantara UI Kit Team",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@emotion/cache": "^11.11.0",
|
|
35
35
|
"@emotion/serialize": "^1.1.2",
|
|
36
|
-
"@hitachivantara/uikit-react-shared": "^6.0.0-next.
|
|
37
|
-
"@hitachivantara/uikit-react-utils": "^6.0.0-next.
|
|
38
|
-
"@hitachivantara/uikit-styles": "^6.0.0-next.
|
|
36
|
+
"@hitachivantara/uikit-react-shared": "^6.0.0-next.4",
|
|
37
|
+
"@hitachivantara/uikit-react-utils": "^6.0.0-next.4",
|
|
38
|
+
"@hitachivantara/uikit-styles": "^6.0.0-next.4",
|
|
39
39
|
"@internationalized/date": "^3.2.0",
|
|
40
40
|
"@mui/base": "5.0.0-beta.68",
|
|
41
41
|
"@popperjs/core": "^2.11.8",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"access": "public",
|
|
61
61
|
"directory": "package"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "66ab53a4c56da226078cf7dd92881ba7f0f521a4",
|
|
64
64
|
"exports": {
|
|
65
65
|
".": {
|
|
66
66
|
"types": "./dist/index.d.ts",
|