@hitachivantara/uikit-react-core 6.6.1 → 6.8.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/BaseDropdown/BaseDropdown.js +28 -120
- package/dist/BaseDropdown/BaseDropdown.styles.js +4 -19
- package/dist/BaseDropdown/BaseDropdownPanel.js +79 -65
- package/dist/BaseDropdown/utils.js +79 -0
- package/dist/DropDownMenu/DropDownMenu.js +5 -5
- package/dist/Dropdown/Dropdown.js +7 -2
- package/dist/Dropdown/List/List.js +2 -3
- package/dist/DropdownButton/DropdownButton.js +0 -2
- package/dist/FormElement/Suggestions/Suggestions.js +12 -9
- package/dist/FormElement/Suggestions/Suggestions.styles.js +5 -18
- package/dist/Select/Select.js +13 -19
- package/dist/Select/Select.styles.js +6 -11
- package/dist/TreeView/TreeView.js +1 -1
- package/dist/TreeView/internals/hooks/plugins/useTreeViewNodes.js +1 -1
- package/dist/TreeView/internals/hooks/useTreeView.js +1 -1
- package/dist/TreeView/internals/hooks/useTreeViewModels.js +18 -16
- package/dist/VerticalNavigation/NavigationPopup/NavigationPopupContainer.js +2 -1
- package/dist/index.d.ts +377 -363
- package/dist/index.js +2 -0
- package/dist/themes/next.js +22 -23
- package/dist/themes/pentaho.js +19 -28
- package/package.json +6 -6
- package/dist/BaseDropdown/context.js +0 -11
package/dist/index.js
CHANGED
|
@@ -69,6 +69,7 @@ import { HvDrawer } from "./Drawer/Drawer.js";
|
|
|
69
69
|
import { HvDropDownMenu } from "./DropDownMenu/DropDownMenu.js";
|
|
70
70
|
import { HvDropdown } from "./Dropdown/Dropdown.js";
|
|
71
71
|
import { HvDropdownColumnCell } from "./Table/renderers/DropdownColumnCell.js";
|
|
72
|
+
import { HvDropdownPanel } from "./BaseDropdown/BaseDropdownPanel.js";
|
|
72
73
|
import { HvEmptyState } from "./EmptyState/EmptyState.js";
|
|
73
74
|
import { HvFile } from "./FileUploader/File/File.js";
|
|
74
75
|
import { HvFileUploader } from "./FileUploader/FileUploader.js";
|
|
@@ -344,6 +345,7 @@ export {
|
|
|
344
345
|
HvDropDownMenu,
|
|
345
346
|
HvDropdown,
|
|
346
347
|
HvDropdownColumnCell,
|
|
348
|
+
HvDropdownPanel,
|
|
347
349
|
HvEmptyState,
|
|
348
350
|
HvFile,
|
|
349
351
|
HvFileUploader,
|
package/dist/themes/next.js
CHANGED
|
@@ -19,30 +19,32 @@ const next = mergeTheme(next$1, {
|
|
|
19
19
|
classes: {
|
|
20
20
|
headerOpen: {
|
|
21
21
|
"--r": theme.radii.round,
|
|
22
|
-
"&[data-popper-placement*=
|
|
22
|
+
"&[data-popper-placement*=top]": {
|
|
23
23
|
borderRadius: "0 0 var(--r) var(--r)"
|
|
24
24
|
},
|
|
25
|
-
"&[data-popper-placement*=
|
|
25
|
+
"&[data-popper-placement*=bottom]": {
|
|
26
26
|
borderRadius: "var(--r) var(--r) 0 0"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
HvDropdownPanel: {
|
|
32
|
+
classes: {
|
|
29
33
|
panel: {
|
|
30
34
|
"--r": theme.radii.round,
|
|
31
|
-
"&[data-popper-placement*=
|
|
32
|
-
top: 1,
|
|
33
|
-
borderRadius: "var(--r) var(--r) var(--r) 0"
|
|
34
|
-
},
|
|
35
|
-
"&[data-popper-placement*='top']:has([data-is-dropdown='true'])": {
|
|
35
|
+
"&[data-popper-placement*=top]": {
|
|
36
36
|
top: 1,
|
|
37
|
-
borderRadius: "var(--r) var(--r)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
borderRadius: "0 var(--r) var(--r) var(--r)"
|
|
37
|
+
borderRadius: "var(--r) var(--r) var(--r) 0",
|
|
38
|
+
"&:has([data-is-dropdown])": {
|
|
39
|
+
borderRadius: "var(--r) var(--r) 0 0"
|
|
40
|
+
}
|
|
42
41
|
},
|
|
43
|
-
"&[data-popper-placement*=
|
|
42
|
+
"&[data-popper-placement*=bottom]": {
|
|
44
43
|
top: -1,
|
|
45
|
-
borderRadius: "0
|
|
44
|
+
borderRadius: "0 var(--r) var(--r) var(--r)",
|
|
45
|
+
"&:has([data-is-dropdown])": {
|
|
46
|
+
borderRadius: "0 0 var(--r) var(--r)"
|
|
47
|
+
}
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
}
|
|
@@ -171,15 +173,12 @@ const next = mergeTheme(next$1, {
|
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
175
|
},
|
|
174
|
-
|
|
176
|
+
HvSuggestions: {
|
|
175
177
|
classes: {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
borderRadius:
|
|
180
|
-
},
|
|
181
|
-
"&[data-popper-placement*='bottom'] .HvSelect-panel": {
|
|
182
|
-
borderRadius: "0 0 var(--r) var(--r)"
|
|
178
|
+
panel: {
|
|
179
|
+
margin: theme.spacing("xxs", 0),
|
|
180
|
+
"&&": {
|
|
181
|
+
borderRadius: theme.radii.round
|
|
183
182
|
}
|
|
184
183
|
}
|
|
185
184
|
}
|
package/dist/themes/pentaho.js
CHANGED
|
@@ -42,12 +42,17 @@ const notificationMap = {
|
|
|
42
42
|
const inputColors = {
|
|
43
43
|
bg: ld("#FFFFFF", "#020617")
|
|
44
44
|
};
|
|
45
|
+
const shadows = {
|
|
46
|
+
container: theme.colors.shadow,
|
|
47
|
+
elevated: `0 16px 16px 0 ${theme.alpha(slate[900], 0.1)}, 0 10px 10px 0 ${theme.alpha(slate[900], 0.08)}, 0 6px 6px 0 ${theme.alpha(slate[900], 0.06)}, 0 3px 3px 0 ${theme.alpha(slate[900], 0.04)}, 0 1px 1px 0 ${theme.alpha(slate[900], 0.02)}`,
|
|
48
|
+
modal: `0 32px 32px 0 ${theme.alpha(slate[900], 0.1)}, 0 20px 20px 0 ${theme.alpha(slate[900], 0.08)}, 0 12px 12px 0 ${theme.alpha(slate[900], 0.06)}, 0 5px 5px 0 ${theme.alpha(slate[900], 0.04)}, 0 1px 1px 0 ${theme.alpha(slate[900], 0.02)}`
|
|
49
|
+
};
|
|
45
50
|
const popperStyles = {
|
|
46
51
|
margin: theme.spacing("xxs", 0),
|
|
47
52
|
backgroundColor: theme.colors.bgContainer,
|
|
48
53
|
border: `1px solid ${theme.colors.borderSubtle}`,
|
|
49
54
|
borderRadius: theme.radii.large,
|
|
50
|
-
boxShadow:
|
|
55
|
+
boxShadow: shadows.container
|
|
51
56
|
};
|
|
52
57
|
const pentaho = mergeTheme(pentaho$1, {
|
|
53
58
|
icons: {
|
|
@@ -311,26 +316,6 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
311
316
|
},
|
|
312
317
|
select: {
|
|
313
318
|
borderRadius: theme.radii.round
|
|
314
|
-
},
|
|
315
|
-
panel: {
|
|
316
|
-
...popperStyles
|
|
317
|
-
},
|
|
318
|
-
popper: {
|
|
319
|
-
"&[data-popper-placement*='bottom'] .HvSelect-panel": {
|
|
320
|
-
borderRadius: theme.radii.large,
|
|
321
|
-
top: 1
|
|
322
|
-
},
|
|
323
|
-
"&[data-popper-placement*='top'] .HvSelect-panel": {
|
|
324
|
-
borderRadius: theme.radii.large,
|
|
325
|
-
top: -1
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
HvSuggestions: {
|
|
331
|
-
classes: {
|
|
332
|
-
list: {
|
|
333
|
-
...popperStyles
|
|
334
319
|
}
|
|
335
320
|
}
|
|
336
321
|
},
|
|
@@ -590,7 +575,8 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
590
575
|
HvDialog: {
|
|
591
576
|
classes: {
|
|
592
577
|
paper: {
|
|
593
|
-
borderRadius: theme.radii.large
|
|
578
|
+
borderRadius: theme.radii.large,
|
|
579
|
+
boxShadow: shadows.modal
|
|
594
580
|
},
|
|
595
581
|
statusBar: {
|
|
596
582
|
border: "none",
|
|
@@ -768,6 +754,7 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
768
754
|
classes: {
|
|
769
755
|
root: {
|
|
770
756
|
outlineColor: theme.colors.borderSubtle,
|
|
757
|
+
boxShadow: theme.colors.shadow,
|
|
771
758
|
"--rb": theme.radii.large,
|
|
772
759
|
// default non-semantic card
|
|
773
760
|
"&[data-color=sema0]": {
|
|
@@ -935,11 +922,13 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
935
922
|
"&,:hover": {
|
|
936
923
|
borderColor: theme.colors.textDimmed
|
|
937
924
|
}
|
|
938
|
-
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
HvDropdownPanel: {
|
|
929
|
+
classes: {
|
|
939
930
|
panel: {
|
|
940
|
-
|
|
941
|
-
...popperStyles
|
|
942
|
-
}
|
|
931
|
+
...popperStyles
|
|
943
932
|
}
|
|
944
933
|
}
|
|
945
934
|
},
|
|
@@ -972,7 +961,8 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
972
961
|
HvTooltip: {
|
|
973
962
|
classes: {
|
|
974
963
|
tooltip: {
|
|
975
|
-
padding: theme.spacing("xs", "sm")
|
|
964
|
+
padding: theme.spacing("xs", "sm"),
|
|
965
|
+
boxShadow: shadows.elevated
|
|
976
966
|
}
|
|
977
967
|
}
|
|
978
968
|
},
|
|
@@ -1141,7 +1131,8 @@ const pentaho = mergeTheme(pentaho$1, {
|
|
|
1141
1131
|
classes: {
|
|
1142
1132
|
root: {
|
|
1143
1133
|
width: 525,
|
|
1144
|
-
minHeight: "unset"
|
|
1134
|
+
minHeight: "unset",
|
|
1135
|
+
boxShadow: theme.colors.shadow
|
|
1145
1136
|
},
|
|
1146
1137
|
messageText: {
|
|
1147
1138
|
paddingLeft: 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Hitachi Vantara UI Kit Team",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@emotion/cache": "^11.11.0",
|
|
35
35
|
"@emotion/serialize": "^1.1.2",
|
|
36
|
-
"@hitachivantara/uikit-react-shared": "^6.0.
|
|
37
|
-
"@hitachivantara/uikit-react-utils": "^6.2.
|
|
38
|
-
"@hitachivantara/uikit-styles": "^6.0
|
|
36
|
+
"@hitachivantara/uikit-react-shared": "^6.0.4",
|
|
37
|
+
"@hitachivantara/uikit-react-utils": "^6.2.2",
|
|
38
|
+
"@hitachivantara/uikit-styles": "^6.1.0",
|
|
39
39
|
"@internationalized/date": "^3.2.0",
|
|
40
|
-
"@mui/base": "
|
|
40
|
+
"@mui/base": "7.0.0-beta.4",
|
|
41
41
|
"@popperjs/core": "^2.11.8",
|
|
42
42
|
"@react-aria/datepicker": "^3.9.0",
|
|
43
43
|
"@react-stately/datepicker": "^3.9.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"access": "public",
|
|
62
62
|
"directory": "package"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "f79885f320f5cdf5b438ef8b2e866965c9626ce7",
|
|
65
65
|
"exports": {
|
|
66
66
|
".": {
|
|
67
67
|
"types": "./dist/index.d.ts",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createContext, useContext } from "react";
|
|
2
|
-
const BaseDropdownContext = createContext({
|
|
3
|
-
referenceElement: null,
|
|
4
|
-
popperElement: null
|
|
5
|
-
});
|
|
6
|
-
BaseDropdownContext.displayName = "BaseDropdownContext";
|
|
7
|
-
const useBaseDropdownContext = () => useContext(BaseDropdownContext);
|
|
8
|
-
export {
|
|
9
|
-
BaseDropdownContext,
|
|
10
|
-
useBaseDropdownContext
|
|
11
|
-
};
|