@hitachivantara/uikit-react-core 5.106.1 → 5.106.2
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.
|
@@ -8,10 +8,10 @@ const generic = require("../types/generic.cjs");
|
|
|
8
8
|
const Button_styles = require("./Button.styles.cjs");
|
|
9
9
|
function parseVariant(variant) {
|
|
10
10
|
if (variant === "semantic") return ["inherit", "ghost"];
|
|
11
|
-
if (variant === "secondary") return ["
|
|
11
|
+
if (variant === "secondary") return ["text", "subtle"];
|
|
12
12
|
if (variant === "ghost") return ["primary", "ghost"];
|
|
13
13
|
if (variant === "contained" || variant === "subtle") {
|
|
14
|
-
return ["
|
|
14
|
+
return ["text", variant];
|
|
15
15
|
}
|
|
16
16
|
const result = variant.split(/(?=[A-Z])/);
|
|
17
17
|
if (!result[1]) return [result[0], "contained"];
|
package/dist/cjs/icons.cjs
CHANGED
|
@@ -48,8 +48,8 @@ const defaultIconPathMap = {
|
|
|
48
48
|
Add: "M16 8.5H8.5V16h-1V8.5H0v-1h7.5V0h1v7.5H16z",
|
|
49
49
|
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",
|
|
50
50
|
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",
|
|
51
|
-
SortAsc: "
|
|
52
|
-
SortDesc: "
|
|
51
|
+
SortAsc: "M10.24 7 6 11.24 1.76 7z",
|
|
52
|
+
SortDesc: "M1.76 5 6 .76 10.24 5z",
|
|
53
53
|
Sort: "M10.24 7 6 11.24 1.76 7zM1.76 5 6 .76 10.24 5z",
|
|
54
54
|
// single-use icons in Widgets
|
|
55
55
|
Calendar: "M10.5 2V0h-1v2h-3V0h-1v2H0v14h16V2zM15 15H1V3h14zM3 6h2v2H3zm4 0h2v2H7zm4 0h2v2h-2zm-8 4h2v2H3zm4 0h2v2H7zm4 0h2v2h-2z",
|
|
@@ -7,10 +7,10 @@ import { useClasses, getIconSizeStyles, getSizeStyles } from "./Button.styles.js
|
|
|
7
7
|
import { staticClasses } from "./Button.styles.js";
|
|
8
8
|
function parseVariant(variant) {
|
|
9
9
|
if (variant === "semantic") return ["inherit", "ghost"];
|
|
10
|
-
if (variant === "secondary") return ["
|
|
10
|
+
if (variant === "secondary") return ["text", "subtle"];
|
|
11
11
|
if (variant === "ghost") return ["primary", "ghost"];
|
|
12
12
|
if (variant === "contained" || variant === "subtle") {
|
|
13
|
-
return ["
|
|
13
|
+
return ["text", variant];
|
|
14
14
|
}
|
|
15
15
|
const result = variant.split(/(?=[A-Z])/);
|
|
16
16
|
if (!result[1]) return [result[0], "contained"];
|
package/dist/esm/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",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10334,7 +10334,7 @@ declare const useClasses_93: (classesProp?: Partial<Record<"tooltipData" | "tool
|
|
|
10334
10334
|
readonly cx: (...args: any) => string;
|
|
10335
10335
|
};
|
|
10336
10336
|
|
|
10337
|
-
declare const useClasses_94: (classesProp?: Partial<Record<"
|
|
10337
|
+
declare const useClasses_94: (classesProp?: Partial<Record<"color" | "tooltip" | "values" | "separator" | "title" | "root" | "popper" | "tooltipMulti" | "valuesContainer" | "separatorColor" | "valueWrapper", string>>, addStatic?: boolean) => {
|
|
10338
10338
|
readonly classes: {
|
|
10339
10339
|
root: string;
|
|
10340
10340
|
tooltip: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.106.
|
|
3
|
+
"version": "5.106.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "UI Kit Core React components.",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/cache": "^11.11.0",
|
|
34
34
|
"@emotion/serialize": "^1.1.2",
|
|
35
|
-
"@hitachivantara/uikit-react-shared": "^5.5.
|
|
36
|
-
"@hitachivantara/uikit-react-utils": "^0.2.
|
|
37
|
-
"@hitachivantara/uikit-styles": "^5.
|
|
35
|
+
"@hitachivantara/uikit-react-shared": "^5.5.7",
|
|
36
|
+
"@hitachivantara/uikit-react-utils": "^0.2.47",
|
|
37
|
+
"@hitachivantara/uikit-styles": "^5.52.0",
|
|
38
38
|
"@internationalized/date": "^3.2.0",
|
|
39
39
|
"@mui/base": "5.0.0-beta.68",
|
|
40
40
|
"@popperjs/core": "^2.11.8",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"access": "public",
|
|
62
62
|
"directory": "package"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "5d8b51e8fe0aa203dc0bd0f33c7dca13883a03a1",
|
|
65
65
|
"exports": {
|
|
66
66
|
".": {
|
|
67
67
|
"types": "./dist/types/index.d.ts",
|