@hitachivantara/uikit-react-core 5.106.2 → 5.107.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/ActionBar/ActionBar.styles.cjs +1 -1
- package/dist/cjs/Pagination/Pagination.cjs +22 -41
- package/dist/cjs/Pagination/Pagination.styles.cjs +36 -50
- package/dist/cjs/Select/Select.cjs +3 -2
- package/dist/cjs/StatusIcon/StatusIcon.cjs +3 -3
- package/dist/cjs/providers/ThemeProvider.cjs +2 -2
- package/dist/cjs/themes/ds3.cjs +13 -24
- package/dist/cjs/themes/pentahoPlus.cjs +25 -0
- package/dist/esm/ActionBar/ActionBar.styles.js +1 -1
- package/dist/esm/Pagination/Pagination.js +22 -41
- package/dist/esm/Pagination/Pagination.styles.js +38 -52
- package/dist/esm/Select/Select.js +3 -2
- package/dist/esm/StatusIcon/StatusIcon.js +3 -3
- package/dist/esm/providers/ThemeProvider.js +2 -2
- package/dist/esm/themes/ds3.js +13 -24
- package/dist/esm/themes/pentahoPlus.js +25 -0
- package/dist/types/index.d.ts +78 -74
- package/package.json +8 -8
|
@@ -6,7 +6,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvActionBar
|
|
|
6
6
|
root: {
|
|
7
7
|
width: "100%",
|
|
8
8
|
padding: uikitStyles.theme.space.sm,
|
|
9
|
-
borderTop: `1px solid ${uikitStyles.theme.colors.
|
|
9
|
+
borderTop: `1px solid ${uikitStyles.theme.colors.borderSubtle}`,
|
|
10
10
|
display: "flex",
|
|
11
11
|
alignItems: "center",
|
|
12
12
|
justifyContent: "flex-end"
|
|
@@ -10,9 +10,9 @@ const icons = require("../icons.cjs");
|
|
|
10
10
|
const setId = require("../utils/setId.cjs");
|
|
11
11
|
const Pagination_styles = require("./Pagination.styles.cjs");
|
|
12
12
|
const Select = require("./Select.cjs");
|
|
13
|
-
const Typography = require("../Typography/Typography.cjs");
|
|
14
13
|
const IconButton = require("../IconButton/IconButton.cjs");
|
|
15
|
-
const
|
|
14
|
+
const Typography = require("../Typography/Typography.cjs");
|
|
15
|
+
const BaseInput = require("../BaseInput/BaseInput.cjs");
|
|
16
16
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
17
17
|
const useMediaQuery__default = /* @__PURE__ */ _interopDefault(useMediaQuery);
|
|
18
18
|
const defaultPageSizeOptions = [5, 10, 20, 25, 50, 100];
|
|
@@ -86,64 +86,53 @@ const HvPagination = React.forwardRef(function HvPagination2(props, ref) {
|
|
|
86
86
|
React.useEffect(() => {
|
|
87
87
|
setPageInput(page);
|
|
88
88
|
}, [page]);
|
|
89
|
-
const renderPageJump = () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
-
|
|
89
|
+
const renderPageJump = () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
+
BaseInput.HvBaseInput,
|
|
91
91
|
{
|
|
92
92
|
id: setId.setId(id, "currentPage"),
|
|
93
|
-
labels,
|
|
94
93
|
inputProps: {
|
|
95
94
|
"aria-label": labels?.paginationInputLabel,
|
|
96
95
|
// We really want the native number input
|
|
97
96
|
type: "number"
|
|
98
97
|
},
|
|
99
98
|
classes: {
|
|
100
|
-
root:
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
root: cx(
|
|
100
|
+
classes.pageJump,
|
|
101
|
+
classes.pageSizeInputRoot,
|
|
102
|
+
classes.pageSizeInputContainer
|
|
103
|
+
),
|
|
104
|
+
input: classes.pageSizeInput
|
|
103
105
|
},
|
|
104
106
|
value: String(pageInput + 1),
|
|
105
107
|
onChange: (event, value) => setPageInput(Number(value) - 1),
|
|
106
|
-
onBlur: (evt
|
|
107
|
-
|
|
108
|
+
onBlur: (evt) => changePage(Math.round(Number(evt.target.value)) - 1),
|
|
109
|
+
onKeyDown: (evt) => {
|
|
110
|
+
if (evt.key !== "Enter") return;
|
|
111
|
+
changePage(Math.round(Number(evt.currentTarget.value)) - 1);
|
|
112
|
+
},
|
|
108
113
|
disabled: pageSize === 0,
|
|
109
|
-
disableClear: true,
|
|
110
114
|
...currentPageInputProps
|
|
111
115
|
}
|
|
112
|
-
)
|
|
116
|
+
);
|
|
113
117
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, id, className: cx(classes.root, className), ...others, children: [
|
|
114
118
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.pageSizeOptions, ...showPageProps, children: showPageSizeOptions && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
115
|
-
!isXsDown && /* @__PURE__ */ jsxRuntime.jsx(
|
|
116
|
-
Typography.HvTypography,
|
|
117
|
-
{
|
|
118
|
-
component: "span",
|
|
119
|
-
className: classes?.pageSizeTextContainer,
|
|
120
|
-
children: labels?.pageSizePrev
|
|
121
|
-
}
|
|
122
|
-
),
|
|
119
|
+
!isXsDown && /* @__PURE__ */ jsxRuntime.jsx("span", { className: classes?.pageSizeTextContainer, children: labels?.pageSizePrev }),
|
|
123
120
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
124
121
|
Select.default,
|
|
125
122
|
{
|
|
126
123
|
id: setId.setId(id, "pageSize"),
|
|
127
124
|
disabled: pageSize === 0,
|
|
128
|
-
className: classes.pageSizeOptionsSelect,
|
|
129
125
|
"aria-label": labels?.pageSizeSelectorDescription,
|
|
130
|
-
onChange: (
|
|
126
|
+
onChange: (evt, val) => onPageSizeChange?.(val),
|
|
131
127
|
value: pageSize,
|
|
132
128
|
classes: {
|
|
133
129
|
header: classes.pageSizeHeader,
|
|
134
|
-
root: classes.pageSizeRoot
|
|
130
|
+
root: cx(classes.pageSizeOptionsSelect, classes.pageSizeRoot)
|
|
135
131
|
},
|
|
136
132
|
children: pageSizeOptions.map((option) => /* @__PURE__ */ jsxRuntime.jsx(Select.Option, { value: option, children: option }, option))
|
|
137
133
|
}
|
|
138
134
|
),
|
|
139
|
-
!isXsDown && /* @__PURE__ */ jsxRuntime.jsx(
|
|
140
|
-
Typography.HvTypography,
|
|
141
|
-
{
|
|
142
|
-
component: "span",
|
|
143
|
-
className: classes.pageSizeTextContainer,
|
|
144
|
-
children: labels?.pageSizeEntryName
|
|
145
|
-
}
|
|
146
|
-
)
|
|
135
|
+
!isXsDown && /* @__PURE__ */ jsxRuntime.jsx("span", { className: classes.pageSizeTextContainer, children: labels?.pageSizeEntryName })
|
|
147
136
|
] }) }),
|
|
148
137
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.pageNavigator, ...navigationProps, children: [
|
|
149
138
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -169,17 +158,9 @@ const HvPagination = React.forwardRef(function HvPagination2(props, ref) {
|
|
|
169
158
|
}
|
|
170
159
|
),
|
|
171
160
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: classes.pageInfo, children: [
|
|
172
|
-
showPageJump ? renderPageJump() : /* @__PURE__ */ jsxRuntime.jsx(
|
|
161
|
+
showPageJump ? renderPageJump() : /* @__PURE__ */ jsxRuntime.jsx("span", { children: `${page + 1}` }),
|
|
173
162
|
/* @__PURE__ */ jsxRuntime.jsx(Typography.HvTypography, { component: "span", children: `${labels?.pagesSeparator} ` }),
|
|
174
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
175
|
-
Typography.HvTypography,
|
|
176
|
-
{
|
|
177
|
-
component: "span",
|
|
178
|
-
id: setId.setId(id, "totalPages"),
|
|
179
|
-
className: classes.totalPagesTextContainer,
|
|
180
|
-
children: pages
|
|
181
|
-
}
|
|
182
|
-
)
|
|
163
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: classes.totalPagesTextContainer, children: pages })
|
|
183
164
|
] }),
|
|
184
165
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
185
166
|
IconButton.HvIconButton,
|
|
@@ -4,7 +4,6 @@ const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
|
4
4
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
5
|
const BaseDropdown_styles = require("../BaseDropdown/BaseDropdown.styles.cjs");
|
|
6
6
|
require("../BaseDropdown/BaseDropdown.cjs");
|
|
7
|
-
const Input_styles = require("../Input/Input.styles.cjs");
|
|
8
7
|
const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvPagination", {
|
|
9
8
|
/** Styles applied to the component root class. */
|
|
10
9
|
root: {
|
|
@@ -15,24 +14,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvPaginatio
|
|
|
15
14
|
alignItems: "stretch",
|
|
16
15
|
flexWrap: "wrap",
|
|
17
16
|
marginTop: uikitStyles.theme.space.sm,
|
|
18
|
-
|
|
19
|
-
...uikitStyles.theme.typography.caption2,
|
|
20
|
-
"&:focus": {
|
|
21
|
-
padding: 0
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
[`& $pageSizeInputContainer`]: {
|
|
25
|
-
width: 24,
|
|
26
|
-
minWidth: 24,
|
|
27
|
-
maxWidth: uikitStyles.theme.spacing(8)
|
|
28
|
-
},
|
|
29
|
-
[`&& $pageSizeInputRoot`]: {
|
|
30
|
-
backgroundColor: "transparent",
|
|
31
|
-
height: "24px",
|
|
32
|
-
"&:focus, &:focus-within, &:hover": {
|
|
33
|
-
backgroundColor: uikitStyles.theme.colors.bgHover
|
|
34
|
-
}
|
|
35
|
-
}
|
|
17
|
+
...uikitStyles.theme.typography.caption2
|
|
36
18
|
},
|
|
37
19
|
/** Styles applied to the page size selector container. */
|
|
38
20
|
pageSizeOptions: {
|
|
@@ -60,6 +42,7 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvPaginatio
|
|
|
60
42
|
}
|
|
61
43
|
},
|
|
62
44
|
pageSizeRoot: {
|
|
45
|
+
display: "inline-block",
|
|
63
46
|
width: "auto"
|
|
64
47
|
},
|
|
65
48
|
/** Styles applied to the element that holds the labels for the page size selector */
|
|
@@ -68,18 +51,12 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvPaginatio
|
|
|
68
51
|
alignItems: "center",
|
|
69
52
|
justifyContent: "center",
|
|
70
53
|
height: "24px",
|
|
71
|
-
padding: "8px 0"
|
|
72
|
-
...uikitStyles.theme.typography.caption2
|
|
73
|
-
},
|
|
74
|
-
totalPagesTextContainer: {
|
|
75
|
-
...uikitStyles.theme.typography.caption2
|
|
76
|
-
},
|
|
77
|
-
/** Styles applied to the page size selector dropdown element. */
|
|
78
|
-
pageSizeOptionsSelect: {
|
|
79
|
-
display: "inline-block",
|
|
80
|
-
width: "auto",
|
|
81
|
-
...uikitStyles.theme.typography.caption2
|
|
54
|
+
padding: "8px 0"
|
|
82
55
|
},
|
|
56
|
+
/** @deprecated unused */
|
|
57
|
+
totalPagesTextContainer: {},
|
|
58
|
+
/** Styles applied to the page size selector dropdown element. @deprecated use `classes.pageSizeRoot` instead. */
|
|
59
|
+
pageSizeOptionsSelect: {},
|
|
83
60
|
/** Styles applied to the page navigation container. */
|
|
84
61
|
pageNavigator: {
|
|
85
62
|
display: "flex",
|
|
@@ -102,30 +79,39 @@ const { staticClasses, useClasses } = uikitReactUtils.createClasses("HvPaginatio
|
|
|
102
79
|
},
|
|
103
80
|
/** Styles applied to the page selector input container. */
|
|
104
81
|
pageJump: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
},
|
|
118
|
-
"&:hover": {
|
|
119
|
-
cursor: "pointer"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
82
|
+
marginRight: 4,
|
|
83
|
+
width: 24,
|
|
84
|
+
minWidth: 24,
|
|
85
|
+
maxWidth: uikitStyles.theme.spacing(8),
|
|
86
|
+
backgroundColor: "transparent",
|
|
87
|
+
height: "24px",
|
|
88
|
+
"&:focus, &:focus-within, &:hover": {
|
|
89
|
+
backgroundColor: uikitStyles.theme.colors.bgHover
|
|
90
|
+
},
|
|
91
|
+
"&, & $pageSizeInput": {
|
|
92
|
+
fontSize: "inherit",
|
|
93
|
+
lineHeight: "inherit"
|
|
122
94
|
}
|
|
123
95
|
},
|
|
124
96
|
/** Styles passed down to the page selector Input component as `input`. */
|
|
125
|
-
pageSizeInput: {
|
|
126
|
-
|
|
97
|
+
pageSizeInput: {
|
|
98
|
+
paddingLeft: 4,
|
|
99
|
+
paddingRight: 4,
|
|
100
|
+
margin: 0,
|
|
101
|
+
textAlign: "center",
|
|
102
|
+
borderRadius: uikitStyles.theme.radii.base,
|
|
103
|
+
MozAppearance: "textfield",
|
|
104
|
+
"&:focus": {
|
|
105
|
+
padding: 0,
|
|
106
|
+
backgroundColor: uikitStyles.theme.colors.bgHover
|
|
107
|
+
},
|
|
108
|
+
"&:hover": {
|
|
109
|
+
cursor: "pointer"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
/** Styles passed down to the page selector Input root. @deprecated use `classes.pageJump` instead. */
|
|
127
113
|
pageSizeInputRoot: {},
|
|
128
|
-
/** Styles passed down to the page selector Input component as `container`. */
|
|
114
|
+
/** Styles passed down to the page selector Input component as `container`. @deprecated use `classes.pageJump` instead. */
|
|
129
115
|
pageSizeInputContainer: {}
|
|
130
116
|
});
|
|
131
117
|
exports.staticClasses = staticClasses;
|
|
@@ -20,7 +20,6 @@ const ListContainer = require("../ListContainer/ListContainer.cjs");
|
|
|
20
20
|
const WarningText = require("../FormElement/WarningText/WarningText.cjs");
|
|
21
21
|
function defaultRenderValue(options) {
|
|
22
22
|
if (Array.isArray(options)) {
|
|
23
|
-
if (options.length === 0) return null;
|
|
24
23
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: options.map((o) => o.label).join(", ") });
|
|
25
24
|
}
|
|
26
25
|
return options?.label ?? null;
|
|
@@ -46,6 +45,7 @@ const HvSelect = generic.fixedForwardRef(function HvSelect2(props, ref) {
|
|
|
46
45
|
defaultOpen,
|
|
47
46
|
multiple,
|
|
48
47
|
autoComplete,
|
|
48
|
+
renderValue: renderValueProp,
|
|
49
49
|
options: optionsProp,
|
|
50
50
|
variableWidth,
|
|
51
51
|
value: valueProp,
|
|
@@ -96,6 +96,7 @@ const HvSelect = generic.fixedForwardRef(function HvSelect2(props, ref) {
|
|
|
96
96
|
onChange,
|
|
97
97
|
onOpenChange: handleOpenChange
|
|
98
98
|
});
|
|
99
|
+
const renderValue = renderValueProp ?? defaultRenderValue;
|
|
99
100
|
const id = useUniqueId.useUniqueId(idProp);
|
|
100
101
|
const labelId = useUniqueId.useUniqueId(setId.setId(idProp, "label"));
|
|
101
102
|
const descriptionId = useUniqueId.useUniqueId(setId.setId(idProp, "description"));
|
|
@@ -172,7 +173,7 @@ const HvSelect = generic.fixedForwardRef(function HvSelect2(props, ref) {
|
|
|
172
173
|
[descriptionId]: description
|
|
173
174
|
}),
|
|
174
175
|
...getButtonProps(),
|
|
175
|
-
children:
|
|
176
|
+
children: renderValue(actualValue) ?? placeholder
|
|
176
177
|
}
|
|
177
178
|
),
|
|
178
179
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -56,8 +56,8 @@ const pentahoIconsMap = {
|
|
|
56
56
|
] })
|
|
57
57
|
},
|
|
58
58
|
info: {
|
|
59
|
-
regular: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "
|
|
60
|
-
fill: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,
|
|
59
|
+
regular: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z" }),
|
|
60
|
+
fill: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z" }),
|
|
61
61
|
duotone: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
62
62
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
63
63
|
"path",
|
|
@@ -66,7 +66,7 @@ const pentahoIconsMap = {
|
|
|
66
66
|
opacity: "0.2"
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "
|
|
69
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z" })
|
|
70
70
|
] })
|
|
71
71
|
}
|
|
72
72
|
};
|
|
@@ -59,7 +59,7 @@ const HvThemeProvider = ({
|
|
|
59
59
|
]
|
|
60
60
|
);
|
|
61
61
|
const muiTheme = React.useMemo(() => {
|
|
62
|
-
const colors = activeTheme.colors.modes[
|
|
62
|
+
const colors = activeTheme.colors.modes[selectedMode];
|
|
63
63
|
return styles.createTheme({
|
|
64
64
|
spacing: activeTheme.space.base,
|
|
65
65
|
typography: {
|
|
@@ -99,7 +99,7 @@ const HvThemeProvider = ({
|
|
|
99
99
|
},
|
|
100
100
|
breakpoints: activeTheme.breakpoints
|
|
101
101
|
});
|
|
102
|
-
}, [activeTheme,
|
|
102
|
+
}, [activeTheme, selectedMode]);
|
|
103
103
|
const emotionCacheValue = React.useMemo(
|
|
104
104
|
() => ({ cache: emotionCache }),
|
|
105
105
|
[emotionCache]
|
package/dist/cjs/themes/ds3.cjs
CHANGED
|
@@ -786,20 +786,19 @@ const ds3 = uikitStyles.mergeTheme(uikitStyles.ds3, {
|
|
|
786
786
|
HvPagination: {
|
|
787
787
|
classes: {
|
|
788
788
|
root: {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
[`& .HvPagination-pageSizeInputContainer`]: {
|
|
796
|
-
width: 40,
|
|
797
|
-
minWidth: 40
|
|
798
|
-
},
|
|
799
|
-
[`&& .HvPagination-pageSizeInputRoot`]: {
|
|
800
|
-
height: 32
|
|
789
|
+
...uikitStyles.theme.typography.body
|
|
790
|
+
},
|
|
791
|
+
pageSizeInput: {
|
|
792
|
+
...uikitStyles.theme.typography.label,
|
|
793
|
+
"&:focus": {
|
|
794
|
+
padding: "unset"
|
|
801
795
|
}
|
|
802
796
|
},
|
|
797
|
+
pageJump: {
|
|
798
|
+
width: 40,
|
|
799
|
+
minWidth: 40,
|
|
800
|
+
height: 32
|
|
801
|
+
},
|
|
803
802
|
icon: {
|
|
804
803
|
fontSize: 16
|
|
805
804
|
},
|
|
@@ -807,20 +806,10 @@ const ds3 = uikitStyles.mergeTheme(uikitStyles.ds3, {
|
|
|
807
806
|
height: 32
|
|
808
807
|
},
|
|
809
808
|
pageSizeHeader: {
|
|
810
|
-
height: "unset"
|
|
811
|
-
[`& .HvBaseDropdown-arrowContainer`]: {
|
|
812
|
-
marginTop: 0
|
|
813
|
-
}
|
|
809
|
+
height: "unset"
|
|
814
810
|
},
|
|
815
811
|
pageSizeTextContainer: {
|
|
816
|
-
height: 32
|
|
817
|
-
...uikitStyles.theme.typography.body
|
|
818
|
-
},
|
|
819
|
-
pageSizeOptionsSelect: {
|
|
820
|
-
...uikitStyles.theme.typography.body
|
|
821
|
-
},
|
|
822
|
-
totalPagesTextContainer: {
|
|
823
|
-
...uikitStyles.theme.typography.body
|
|
812
|
+
height: 32
|
|
824
813
|
},
|
|
825
814
|
pageNavigator: {
|
|
826
815
|
alignItems: "stretch"
|
|
@@ -21,6 +21,18 @@ const popperStyles = {
|
|
|
21
21
|
boxShadow: `0px 0px 6px 0px rgba(65, 65, 65, 0.08)`
|
|
22
22
|
};
|
|
23
23
|
const pentahoPlus = uikitStyles.mergeTheme(uikitStyles.pentahoPlus, {
|
|
24
|
+
icons: {
|
|
25
|
+
viewBox: "0 0 256 256",
|
|
26
|
+
// Semantic icons
|
|
27
|
+
Success: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z",
|
|
28
|
+
Caution: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z",
|
|
29
|
+
Fail: "M128,72a8,8,0,0,1,8,8v56a8,8,0,0,1-16,0V80A8,8,0,0,1,128,72ZM116,172a12,12,0,1,0,12-12A12,12,0,0,0,116,172Zm124-44a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Zm-16,0L128,32,32,128,128,224h0Z",
|
|
30
|
+
Info: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z",
|
|
31
|
+
Start: "M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z",
|
|
32
|
+
Backwards: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z",
|
|
33
|
+
Forwards: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z",
|
|
34
|
+
End: "M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"
|
|
35
|
+
},
|
|
24
36
|
components: {
|
|
25
37
|
HvLoading: {
|
|
26
38
|
classes: {
|
|
@@ -539,6 +551,16 @@ const pentahoPlus = uikitStyles.mergeTheme(uikitStyles.pentahoPlus, {
|
|
|
539
551
|
}
|
|
540
552
|
}
|
|
541
553
|
},
|
|
554
|
+
HvPagination: {
|
|
555
|
+
classes: {
|
|
556
|
+
root: {
|
|
557
|
+
...uikitStyles.theme.typography.caption1
|
|
558
|
+
},
|
|
559
|
+
icon: {
|
|
560
|
+
fontSize: 16
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
},
|
|
542
564
|
HvHeader: {
|
|
543
565
|
classes: {
|
|
544
566
|
root: {
|
|
@@ -684,6 +706,9 @@ const pentahoPlus = uikitStyles.mergeTheme(uikitStyles.pentahoPlus, {
|
|
|
684
706
|
display: "none"
|
|
685
707
|
}
|
|
686
708
|
},
|
|
709
|
+
"& .MuiCardContent-root:last-child": {
|
|
710
|
+
paddingBottom: 0
|
|
711
|
+
},
|
|
687
712
|
"& > :last-child:not(.HvCardMedia-root)": {
|
|
688
713
|
paddingBottom: uikitStyles.theme.space.sm
|
|
689
714
|
},
|
|
@@ -4,7 +4,7 @@ const { staticClasses, useClasses } = createClasses("HvActionBar", {
|
|
|
4
4
|
root: {
|
|
5
5
|
width: "100%",
|
|
6
6
|
padding: theme.space.sm,
|
|
7
|
-
borderTop: `1px solid ${theme.colors.
|
|
7
|
+
borderTop: `1px solid ${theme.colors.borderSubtle}`,
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
10
10
|
justifyContent: "flex-end"
|
|
@@ -9,9 +9,9 @@ import { setId } from "../utils/setId.js";
|
|
|
9
9
|
import { useClasses } from "./Pagination.styles.js";
|
|
10
10
|
import { staticClasses } from "./Pagination.styles.js";
|
|
11
11
|
import HvSelect, { Option } from "./Select.js";
|
|
12
|
-
import { HvTypography } from "../Typography/Typography.js";
|
|
13
12
|
import { HvIconButton } from "../IconButton/IconButton.js";
|
|
14
|
-
import {
|
|
13
|
+
import { HvTypography } from "../Typography/Typography.js";
|
|
14
|
+
import { HvBaseInput } from "../BaseInput/BaseInput.js";
|
|
15
15
|
const defaultPageSizeOptions = [5, 10, 20, 25, 50, 100];
|
|
16
16
|
const DEFAULT_LABELS = {
|
|
17
17
|
/** The show label. */
|
|
@@ -83,64 +83,53 @@ const HvPagination = forwardRef(function HvPagination2(props, ref) {
|
|
|
83
83
|
useEffect(() => {
|
|
84
84
|
setPageInput(page);
|
|
85
85
|
}, [page]);
|
|
86
|
-
const renderPageJump = () => /* @__PURE__ */ jsx(
|
|
87
|
-
|
|
86
|
+
const renderPageJump = () => /* @__PURE__ */ jsx(
|
|
87
|
+
HvBaseInput,
|
|
88
88
|
{
|
|
89
89
|
id: setId(id, "currentPage"),
|
|
90
|
-
labels,
|
|
91
90
|
inputProps: {
|
|
92
91
|
"aria-label": labels?.paginationInputLabel,
|
|
93
92
|
// We really want the native number input
|
|
94
93
|
type: "number"
|
|
95
94
|
},
|
|
96
95
|
classes: {
|
|
97
|
-
root:
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
root: cx(
|
|
97
|
+
classes.pageJump,
|
|
98
|
+
classes.pageSizeInputRoot,
|
|
99
|
+
classes.pageSizeInputContainer
|
|
100
|
+
),
|
|
101
|
+
input: classes.pageSizeInput
|
|
100
102
|
},
|
|
101
103
|
value: String(pageInput + 1),
|
|
102
104
|
onChange: (event, value) => setPageInput(Number(value) - 1),
|
|
103
|
-
onBlur: (evt
|
|
104
|
-
|
|
105
|
+
onBlur: (evt) => changePage(Math.round(Number(evt.target.value)) - 1),
|
|
106
|
+
onKeyDown: (evt) => {
|
|
107
|
+
if (evt.key !== "Enter") return;
|
|
108
|
+
changePage(Math.round(Number(evt.currentTarget.value)) - 1);
|
|
109
|
+
},
|
|
105
110
|
disabled: pageSize === 0,
|
|
106
|
-
disableClear: true,
|
|
107
111
|
...currentPageInputProps
|
|
108
112
|
}
|
|
109
|
-
)
|
|
113
|
+
);
|
|
110
114
|
return /* @__PURE__ */ jsxs("div", { ref, id, className: cx(classes.root, className), ...others, children: [
|
|
111
115
|
/* @__PURE__ */ jsx("div", { className: classes.pageSizeOptions, ...showPageProps, children: showPageSizeOptions && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
112
|
-
!isXsDown && /* @__PURE__ */ jsx(
|
|
113
|
-
HvTypography,
|
|
114
|
-
{
|
|
115
|
-
component: "span",
|
|
116
|
-
className: classes?.pageSizeTextContainer,
|
|
117
|
-
children: labels?.pageSizePrev
|
|
118
|
-
}
|
|
119
|
-
),
|
|
116
|
+
!isXsDown && /* @__PURE__ */ jsx("span", { className: classes?.pageSizeTextContainer, children: labels?.pageSizePrev }),
|
|
120
117
|
/* @__PURE__ */ jsx(
|
|
121
118
|
HvSelect,
|
|
122
119
|
{
|
|
123
120
|
id: setId(id, "pageSize"),
|
|
124
121
|
disabled: pageSize === 0,
|
|
125
|
-
className: classes.pageSizeOptionsSelect,
|
|
126
122
|
"aria-label": labels?.pageSizeSelectorDescription,
|
|
127
|
-
onChange: (
|
|
123
|
+
onChange: (evt, val) => onPageSizeChange?.(val),
|
|
128
124
|
value: pageSize,
|
|
129
125
|
classes: {
|
|
130
126
|
header: classes.pageSizeHeader,
|
|
131
|
-
root: classes.pageSizeRoot
|
|
127
|
+
root: cx(classes.pageSizeOptionsSelect, classes.pageSizeRoot)
|
|
132
128
|
},
|
|
133
129
|
children: pageSizeOptions.map((option) => /* @__PURE__ */ jsx(Option, { value: option, children: option }, option))
|
|
134
130
|
}
|
|
135
131
|
),
|
|
136
|
-
!isXsDown && /* @__PURE__ */ jsx(
|
|
137
|
-
HvTypography,
|
|
138
|
-
{
|
|
139
|
-
component: "span",
|
|
140
|
-
className: classes.pageSizeTextContainer,
|
|
141
|
-
children: labels?.pageSizeEntryName
|
|
142
|
-
}
|
|
143
|
-
)
|
|
132
|
+
!isXsDown && /* @__PURE__ */ jsx("span", { className: classes.pageSizeTextContainer, children: labels?.pageSizeEntryName })
|
|
144
133
|
] }) }),
|
|
145
134
|
/* @__PURE__ */ jsxs("div", { className: classes.pageNavigator, ...navigationProps, children: [
|
|
146
135
|
/* @__PURE__ */ jsx(
|
|
@@ -166,17 +155,9 @@ const HvPagination = forwardRef(function HvPagination2(props, ref) {
|
|
|
166
155
|
}
|
|
167
156
|
),
|
|
168
157
|
/* @__PURE__ */ jsxs("div", { className: classes.pageInfo, children: [
|
|
169
|
-
showPageJump ? renderPageJump() : /* @__PURE__ */ jsx(
|
|
158
|
+
showPageJump ? renderPageJump() : /* @__PURE__ */ jsx("span", { children: `${page + 1}` }),
|
|
170
159
|
/* @__PURE__ */ jsx(HvTypography, { component: "span", children: `${labels?.pagesSeparator} ` }),
|
|
171
|
-
/* @__PURE__ */ jsx(
|
|
172
|
-
HvTypography,
|
|
173
|
-
{
|
|
174
|
-
component: "span",
|
|
175
|
-
id: setId(id, "totalPages"),
|
|
176
|
-
className: classes.totalPagesTextContainer,
|
|
177
|
-
children: pages
|
|
178
|
-
}
|
|
179
|
-
)
|
|
160
|
+
/* @__PURE__ */ jsx("span", { className: classes.totalPagesTextContainer, children: pages })
|
|
180
161
|
] }),
|
|
181
162
|
/* @__PURE__ */ jsx(
|
|
182
163
|
HvIconButton,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createClasses } from "@hitachivantara/uikit-react-utils";
|
|
2
2
|
import { theme } from "@hitachivantara/uikit-styles";
|
|
3
|
-
import { staticClasses as staticClasses$
|
|
3
|
+
import { staticClasses as staticClasses$1 } from "../BaseDropdown/BaseDropdown.styles.js";
|
|
4
4
|
import "../BaseDropdown/BaseDropdown.js";
|
|
5
|
-
import { staticClasses as staticClasses$1 } from "../Input/Input.styles.js";
|
|
6
5
|
const { staticClasses, useClasses } = createClasses("HvPagination", {
|
|
7
6
|
/** Styles applied to the component root class. */
|
|
8
7
|
root: {
|
|
@@ -13,24 +12,7 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
|
|
|
13
12
|
alignItems: "stretch",
|
|
14
13
|
flexWrap: "wrap",
|
|
15
14
|
marginTop: theme.space.sm,
|
|
16
|
-
|
|
17
|
-
...theme.typography.caption2,
|
|
18
|
-
"&:focus": {
|
|
19
|
-
padding: 0
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
[`& $pageSizeInputContainer`]: {
|
|
23
|
-
width: 24,
|
|
24
|
-
minWidth: 24,
|
|
25
|
-
maxWidth: theme.spacing(8)
|
|
26
|
-
},
|
|
27
|
-
[`&& $pageSizeInputRoot`]: {
|
|
28
|
-
backgroundColor: "transparent",
|
|
29
|
-
height: "24px",
|
|
30
|
-
"&:focus, &:focus-within, &:hover": {
|
|
31
|
-
backgroundColor: theme.colors.bgHover
|
|
32
|
-
}
|
|
33
|
-
}
|
|
15
|
+
...theme.typography.caption2
|
|
34
16
|
},
|
|
35
17
|
/** Styles applied to the page size selector container. */
|
|
36
18
|
pageSizeOptions: {
|
|
@@ -46,7 +28,7 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
|
|
|
46
28
|
height: 24,
|
|
47
29
|
display: "flex",
|
|
48
30
|
alignItems: "center",
|
|
49
|
-
[`& .${staticClasses$
|
|
31
|
+
[`& .${staticClasses$1.arrowContainer}`]: {
|
|
50
32
|
display: "flex",
|
|
51
33
|
alignItems: "center",
|
|
52
34
|
top: "unset",
|
|
@@ -58,6 +40,7 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
|
|
|
58
40
|
}
|
|
59
41
|
},
|
|
60
42
|
pageSizeRoot: {
|
|
43
|
+
display: "inline-block",
|
|
61
44
|
width: "auto"
|
|
62
45
|
},
|
|
63
46
|
/** Styles applied to the element that holds the labels for the page size selector */
|
|
@@ -66,18 +49,12 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
|
|
|
66
49
|
alignItems: "center",
|
|
67
50
|
justifyContent: "center",
|
|
68
51
|
height: "24px",
|
|
69
|
-
padding: "8px 0"
|
|
70
|
-
...theme.typography.caption2
|
|
71
|
-
},
|
|
72
|
-
totalPagesTextContainer: {
|
|
73
|
-
...theme.typography.caption2
|
|
74
|
-
},
|
|
75
|
-
/** Styles applied to the page size selector dropdown element. */
|
|
76
|
-
pageSizeOptionsSelect: {
|
|
77
|
-
display: "inline-block",
|
|
78
|
-
width: "auto",
|
|
79
|
-
...theme.typography.caption2
|
|
52
|
+
padding: "8px 0"
|
|
80
53
|
},
|
|
54
|
+
/** @deprecated unused */
|
|
55
|
+
totalPagesTextContainer: {},
|
|
56
|
+
/** Styles applied to the page size selector dropdown element. @deprecated use `classes.pageSizeRoot` instead. */
|
|
57
|
+
pageSizeOptionsSelect: {},
|
|
81
58
|
/** Styles applied to the page navigation container. */
|
|
82
59
|
pageNavigator: {
|
|
83
60
|
display: "flex",
|
|
@@ -100,30 +77,39 @@ const { staticClasses, useClasses } = createClasses("HvPagination", {
|
|
|
100
77
|
},
|
|
101
78
|
/** Styles applied to the page selector input container. */
|
|
102
79
|
pageJump: {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
"&:hover": {
|
|
117
|
-
cursor: "pointer"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
80
|
+
marginRight: 4,
|
|
81
|
+
width: 24,
|
|
82
|
+
minWidth: 24,
|
|
83
|
+
maxWidth: theme.spacing(8),
|
|
84
|
+
backgroundColor: "transparent",
|
|
85
|
+
height: "24px",
|
|
86
|
+
"&:focus, &:focus-within, &:hover": {
|
|
87
|
+
backgroundColor: theme.colors.bgHover
|
|
88
|
+
},
|
|
89
|
+
"&, & $pageSizeInput": {
|
|
90
|
+
fontSize: "inherit",
|
|
91
|
+
lineHeight: "inherit"
|
|
120
92
|
}
|
|
121
93
|
},
|
|
122
94
|
/** Styles passed down to the page selector Input component as `input`. */
|
|
123
|
-
pageSizeInput: {
|
|
124
|
-
|
|
95
|
+
pageSizeInput: {
|
|
96
|
+
paddingLeft: 4,
|
|
97
|
+
paddingRight: 4,
|
|
98
|
+
margin: 0,
|
|
99
|
+
textAlign: "center",
|
|
100
|
+
borderRadius: theme.radii.base,
|
|
101
|
+
MozAppearance: "textfield",
|
|
102
|
+
"&:focus": {
|
|
103
|
+
padding: 0,
|
|
104
|
+
backgroundColor: theme.colors.bgHover
|
|
105
|
+
},
|
|
106
|
+
"&:hover": {
|
|
107
|
+
cursor: "pointer"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
/** Styles passed down to the page selector Input root. @deprecated use `classes.pageJump` instead. */
|
|
125
111
|
pageSizeInputRoot: {},
|
|
126
|
-
/** Styles passed down to the page selector Input component as `container`. */
|
|
112
|
+
/** Styles passed down to the page selector Input component as `container`. @deprecated use `classes.pageJump` instead. */
|
|
127
113
|
pageSizeInputContainer: {}
|
|
128
114
|
});
|
|
129
115
|
export {
|
|
@@ -19,7 +19,6 @@ import { HvListContainer } from "../ListContainer/ListContainer.js";
|
|
|
19
19
|
import { HvWarningText } from "../FormElement/WarningText/WarningText.js";
|
|
20
20
|
function defaultRenderValue(options) {
|
|
21
21
|
if (Array.isArray(options)) {
|
|
22
|
-
if (options.length === 0) return null;
|
|
23
22
|
return /* @__PURE__ */ jsx(Fragment, { children: options.map((o) => o.label).join(", ") });
|
|
24
23
|
}
|
|
25
24
|
return options?.label ?? null;
|
|
@@ -45,6 +44,7 @@ const HvSelect = fixedForwardRef(function HvSelect2(props, ref) {
|
|
|
45
44
|
defaultOpen,
|
|
46
45
|
multiple,
|
|
47
46
|
autoComplete,
|
|
47
|
+
renderValue: renderValueProp,
|
|
48
48
|
options: optionsProp,
|
|
49
49
|
variableWidth,
|
|
50
50
|
value: valueProp,
|
|
@@ -95,6 +95,7 @@ const HvSelect = fixedForwardRef(function HvSelect2(props, ref) {
|
|
|
95
95
|
onChange,
|
|
96
96
|
onOpenChange: handleOpenChange
|
|
97
97
|
});
|
|
98
|
+
const renderValue = renderValueProp ?? defaultRenderValue;
|
|
98
99
|
const id = useUniqueId(idProp);
|
|
99
100
|
const labelId = useUniqueId(setId(idProp, "label"));
|
|
100
101
|
const descriptionId = useUniqueId(setId(idProp, "description"));
|
|
@@ -171,7 +172,7 @@ const HvSelect = fixedForwardRef(function HvSelect2(props, ref) {
|
|
|
171
172
|
[descriptionId]: description
|
|
172
173
|
}),
|
|
173
174
|
...getButtonProps(),
|
|
174
|
-
children:
|
|
175
|
+
children: renderValue(actualValue) ?? placeholder
|
|
175
176
|
}
|
|
176
177
|
),
|
|
177
178
|
/* @__PURE__ */ jsx(
|
|
@@ -55,8 +55,8 @@ const pentahoIconsMap = {
|
|
|
55
55
|
] })
|
|
56
56
|
},
|
|
57
57
|
info: {
|
|
58
|
-
regular: /* @__PURE__ */ jsx("path", { d: "
|
|
59
|
-
fill: /* @__PURE__ */ jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,
|
|
58
|
+
regular: /* @__PURE__ */ jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z" }),
|
|
59
|
+
fill: /* @__PURE__ */ jsx("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z" }),
|
|
60
60
|
duotone: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
61
61
|
/* @__PURE__ */ jsx(
|
|
62
62
|
"path",
|
|
@@ -65,7 +65,7 @@ const pentahoIconsMap = {
|
|
|
65
65
|
opacity: "0.2"
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
68
|
+
/* @__PURE__ */ jsx("path", { d: "M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z" })
|
|
69
69
|
] })
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -58,7 +58,7 @@ const HvThemeProvider = ({
|
|
|
58
58
|
]
|
|
59
59
|
);
|
|
60
60
|
const muiTheme = useMemo(() => {
|
|
61
|
-
const colors = activeTheme.colors.modes[
|
|
61
|
+
const colors = activeTheme.colors.modes[selectedMode];
|
|
62
62
|
return createTheme({
|
|
63
63
|
spacing: activeTheme.space.base,
|
|
64
64
|
typography: {
|
|
@@ -98,7 +98,7 @@ const HvThemeProvider = ({
|
|
|
98
98
|
},
|
|
99
99
|
breakpoints: activeTheme.breakpoints
|
|
100
100
|
});
|
|
101
|
-
}, [activeTheme,
|
|
101
|
+
}, [activeTheme, selectedMode]);
|
|
102
102
|
const emotionCacheValue = useMemo(
|
|
103
103
|
() => ({ cache: emotionCache }),
|
|
104
104
|
[emotionCache]
|
package/dist/esm/themes/ds3.js
CHANGED
|
@@ -784,20 +784,19 @@ const ds3 = mergeTheme(ds3$1, {
|
|
|
784
784
|
HvPagination: {
|
|
785
785
|
classes: {
|
|
786
786
|
root: {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
[`& .HvPagination-pageSizeInputContainer`]: {
|
|
794
|
-
width: 40,
|
|
795
|
-
minWidth: 40
|
|
796
|
-
},
|
|
797
|
-
[`&& .HvPagination-pageSizeInputRoot`]: {
|
|
798
|
-
height: 32
|
|
787
|
+
...theme.typography.body
|
|
788
|
+
},
|
|
789
|
+
pageSizeInput: {
|
|
790
|
+
...theme.typography.label,
|
|
791
|
+
"&:focus": {
|
|
792
|
+
padding: "unset"
|
|
799
793
|
}
|
|
800
794
|
},
|
|
795
|
+
pageJump: {
|
|
796
|
+
width: 40,
|
|
797
|
+
minWidth: 40,
|
|
798
|
+
height: 32
|
|
799
|
+
},
|
|
801
800
|
icon: {
|
|
802
801
|
fontSize: 16
|
|
803
802
|
},
|
|
@@ -805,20 +804,10 @@ const ds3 = mergeTheme(ds3$1, {
|
|
|
805
804
|
height: 32
|
|
806
805
|
},
|
|
807
806
|
pageSizeHeader: {
|
|
808
|
-
height: "unset"
|
|
809
|
-
[`& .HvBaseDropdown-arrowContainer`]: {
|
|
810
|
-
marginTop: 0
|
|
811
|
-
}
|
|
807
|
+
height: "unset"
|
|
812
808
|
},
|
|
813
809
|
pageSizeTextContainer: {
|
|
814
|
-
height: 32
|
|
815
|
-
...theme.typography.body
|
|
816
|
-
},
|
|
817
|
-
pageSizeOptionsSelect: {
|
|
818
|
-
...theme.typography.body
|
|
819
|
-
},
|
|
820
|
-
totalPagesTextContainer: {
|
|
821
|
-
...theme.typography.body
|
|
810
|
+
height: 32
|
|
822
811
|
},
|
|
823
812
|
pageNavigator: {
|
|
824
813
|
alignItems: "stretch"
|
|
@@ -19,6 +19,18 @@ const popperStyles = {
|
|
|
19
19
|
boxShadow: `0px 0px 6px 0px rgba(65, 65, 65, 0.08)`
|
|
20
20
|
};
|
|
21
21
|
const pentahoPlus = mergeTheme(pentahoPlus$1, {
|
|
22
|
+
icons: {
|
|
23
|
+
viewBox: "0 0 256 256",
|
|
24
|
+
// Semantic icons
|
|
25
|
+
Success: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z",
|
|
26
|
+
Caution: "M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z",
|
|
27
|
+
Fail: "M128,72a8,8,0,0,1,8,8v56a8,8,0,0,1-16,0V80A8,8,0,0,1,128,72ZM116,172a12,12,0,1,0,12-12A12,12,0,0,0,116,172Zm124-44a15.85,15.85,0,0,1-4.67,11.28l-96.05,96.06a16,16,0,0,1-22.56,0h0l-96-96.06a16,16,0,0,1,0-22.56l96.05-96.06a16,16,0,0,1,22.56,0l96.05,96.06A15.85,15.85,0,0,1,240,128Zm-16,0L128,32,32,128,128,224h0Z",
|
|
28
|
+
Info: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z",
|
|
29
|
+
Start: "M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z",
|
|
30
|
+
Backwards: "M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z",
|
|
31
|
+
Forwards: "M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z",
|
|
32
|
+
End: "M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"
|
|
33
|
+
},
|
|
22
34
|
components: {
|
|
23
35
|
HvLoading: {
|
|
24
36
|
classes: {
|
|
@@ -537,6 +549,16 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
|
|
|
537
549
|
}
|
|
538
550
|
}
|
|
539
551
|
},
|
|
552
|
+
HvPagination: {
|
|
553
|
+
classes: {
|
|
554
|
+
root: {
|
|
555
|
+
...theme.typography.caption1
|
|
556
|
+
},
|
|
557
|
+
icon: {
|
|
558
|
+
fontSize: 16
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
},
|
|
540
562
|
HvHeader: {
|
|
541
563
|
classes: {
|
|
542
564
|
root: {
|
|
@@ -682,6 +704,9 @@ const pentahoPlus = mergeTheme(pentahoPlus$1, {
|
|
|
682
704
|
display: "none"
|
|
683
705
|
}
|
|
684
706
|
},
|
|
707
|
+
"& .MuiCardContent-root:last-child": {
|
|
708
|
+
paddingBottom: 0
|
|
709
|
+
},
|
|
685
710
|
"& > :last-child:not(.HvCardMedia-root)": {
|
|
686
711
|
paddingBottom: theme.space.sm
|
|
687
712
|
},
|
package/dist/types/index.d.ts
CHANGED
|
@@ -71,6 +71,8 @@ import { ReducerTableState } from 'react-table';
|
|
|
71
71
|
import { RefAttributes } from 'react';
|
|
72
72
|
import { Renderer } from 'react-table';
|
|
73
73
|
import { Row } from 'react-table';
|
|
74
|
+
import { SelectOption } from '@mui/base/useOption';
|
|
75
|
+
import { SelectValue } from '@mui/base/useSelect';
|
|
74
76
|
import { SlideProps } from '@mui/material/Slide';
|
|
75
77
|
import { SliderProps } from 'rc-slider';
|
|
76
78
|
import { SliderRef } from 'rc-slider';
|
|
@@ -716,6 +718,16 @@ declare const DEFAULT_LABELS_3: {
|
|
|
716
718
|
};
|
|
717
719
|
|
|
718
720
|
declare const DEFAULT_LABELS_4: {
|
|
721
|
+
backwards: string;
|
|
722
|
+
forwards: string;
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
declare const DEFAULT_LABELS_5: {
|
|
726
|
+
recommendedColorsLabel: string;
|
|
727
|
+
customColorsLabel: string;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
declare const DEFAULT_LABELS_6: {
|
|
719
731
|
/** The label of the clear button. */
|
|
720
732
|
clearButtonLabel: string;
|
|
721
733
|
/** The label of the reveal password button. @deprecated unused */
|
|
@@ -728,16 +740,6 @@ declare const DEFAULT_LABELS_4: {
|
|
|
728
740
|
searchButtonLabel: string;
|
|
729
741
|
};
|
|
730
742
|
|
|
731
|
-
declare const DEFAULT_LABELS_5: {
|
|
732
|
-
backwards: string;
|
|
733
|
-
forwards: string;
|
|
734
|
-
};
|
|
735
|
-
|
|
736
|
-
declare const DEFAULT_LABELS_6: {
|
|
737
|
-
recommendedColorsLabel: string;
|
|
738
|
-
customColorsLabel: string;
|
|
739
|
-
};
|
|
740
|
-
|
|
741
743
|
declare const DEFAULT_LABELS_7: {
|
|
742
744
|
/** Label for overwrite the default header behavior. */
|
|
743
745
|
select: string | undefined;
|
|
@@ -2292,7 +2294,7 @@ declare interface HvCarouselControlsProps extends HvBaseProps<HTMLDivElement>, P
|
|
|
2292
2294
|
onPreviousClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
2293
2295
|
onNextClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
2294
2296
|
/** Labels used on the component. */
|
|
2295
|
-
labels?: Partial<typeof
|
|
2297
|
+
labels?: Partial<typeof DEFAULT_LABELS_4>;
|
|
2296
2298
|
}
|
|
2297
2299
|
|
|
2298
2300
|
export declare interface HvCarouselProps extends HvBaseProps<HTMLDivElement, "title" | "onChange"> {
|
|
@@ -2423,7 +2425,7 @@ export declare type HvCheckBoxClasses = ExtractNames<typeof useClasses_37>;
|
|
|
2423
2425
|
*/
|
|
2424
2426
|
export declare const HvCheckBoxGroup: ForwardRefExoticComponent<HvCheckBoxGroupProps & RefAttributes<HTMLDivElement>>;
|
|
2425
2427
|
|
|
2426
|
-
export declare type HvCheckBoxGroupClasses = ExtractNames<typeof
|
|
2428
|
+
export declare type HvCheckBoxGroupClasses = ExtractNames<typeof useClasses_48>;
|
|
2427
2429
|
|
|
2428
2430
|
export declare interface HvCheckBoxGroupProps extends HvBaseProps<HTMLDivElement, "onChange"> {
|
|
2429
2431
|
/**
|
|
@@ -2559,7 +2561,7 @@ export { HvColorAny }
|
|
|
2559
2561
|
*/
|
|
2560
2562
|
export declare const HvColorPicker: ForwardRefExoticComponent<HvColorPickerProps & RefAttributes<HTMLDivElement>>;
|
|
2561
2563
|
|
|
2562
|
-
export declare type HvColorPickerClasses = ExtractNames<typeof
|
|
2564
|
+
export declare type HvColorPickerClasses = ExtractNames<typeof useClasses_49>;
|
|
2563
2565
|
|
|
2564
2566
|
export declare interface HvColorPickerProps {
|
|
2565
2567
|
"aria-label"?: string;
|
|
@@ -2607,7 +2609,7 @@ export declare interface HvColorPickerProps {
|
|
|
2607
2609
|
/** If `true`, the labels are shown. If `false`, they are not shown. */
|
|
2608
2610
|
showLabels?: boolean;
|
|
2609
2611
|
/** An object containing all the labels. */
|
|
2610
|
-
labels?: Partial<typeof
|
|
2612
|
+
labels?: Partial<typeof DEFAULT_LABELS_5>;
|
|
2611
2613
|
/** Icon type for the input's end adornment. */
|
|
2612
2614
|
dropdownIcon?: "arrow" | "colorPicker";
|
|
2613
2615
|
/** If `true`, the input only shows an icon. If `false`, the input shows text and icons. */
|
|
@@ -2676,7 +2678,7 @@ declare type HvColumnWithStrictAccessor<D extends object = Record<string, unknow
|
|
|
2676
2678
|
/** The container enables you to center your content horizontally and bound it to a specific breakpoint. */
|
|
2677
2679
|
export declare const HvContainer: ForwardRefExoticComponent<Omit<HvContainerProps, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
2678
2680
|
|
|
2679
|
-
export declare type HvContainerClasses = ExtractNames<typeof
|
|
2681
|
+
export declare type HvContainerClasses = ExtractNames<typeof useClasses_50>;
|
|
2680
2682
|
|
|
2681
2683
|
export declare interface HvContainerProps extends Omit<ContainerProps, "classes"> {
|
|
2682
2684
|
/**
|
|
@@ -2705,7 +2707,7 @@ export declare interface HvContainerProps extends Omit<ContainerProps, "classes"
|
|
|
2705
2707
|
|
|
2706
2708
|
export declare const HvControls: (props: HvControlsProps) => JSX_2.Element;
|
|
2707
2709
|
|
|
2708
|
-
export declare type HvControlsClasses = ExtractNames<typeof
|
|
2710
|
+
export declare type HvControlsClasses = ExtractNames<typeof useClasses_51>;
|
|
2709
2711
|
|
|
2710
2712
|
export declare interface HvControlsProps extends HvBaseProps {
|
|
2711
2713
|
/**
|
|
@@ -4204,9 +4206,9 @@ export declare type HvInlineEditorProps<C extends React.ElementType = typeof HvI
|
|
|
4204
4206
|
*/
|
|
4205
4207
|
export declare const HvInput: <InputElement extends HTMLElement = HTMLTextAreaElement | HTMLInputElement>(props: HvInputProps<InputElement> & RefAttributes<InputElement>) => React.ReactElement<any> | null;
|
|
4206
4208
|
|
|
4207
|
-
export declare type HvInputClasses = ExtractNames<typeof
|
|
4209
|
+
export declare type HvInputClasses = ExtractNames<typeof useClasses_57>;
|
|
4208
4210
|
|
|
4209
|
-
export declare type HvInputLabels = Partial<typeof
|
|
4211
|
+
export declare type HvInputLabels = Partial<typeof DEFAULT_LABELS_6>;
|
|
4210
4212
|
|
|
4211
4213
|
export declare interface HvInputProps<InputElement extends HTMLElement = HTMLInputElement | HTMLTextAreaElement> extends Omit<HvBaseInputProps, "onChange" | "onBlur" | "onFocus" | "onKeyDown"> {
|
|
4212
4214
|
/** @inheritdoc */
|
|
@@ -4406,7 +4408,7 @@ export declare interface HvLabelProps extends HvTypographyProps<"label"> {
|
|
|
4406
4408
|
|
|
4407
4409
|
export declare const HvLeftControl: ({ id, classes: classesProp, className, children, placeholder, onSearch, hideSearch, searchProps, ...others }: HvLeftControlProps) => JSX_2.Element;
|
|
4408
4410
|
|
|
4409
|
-
export declare type HvLeftControlClasses = ExtractNames<typeof
|
|
4411
|
+
export declare type HvLeftControlClasses = ExtractNames<typeof useClasses_56>;
|
|
4410
4412
|
|
|
4411
4413
|
export declare interface HvLeftControlProps extends HvBaseProps {
|
|
4412
4414
|
/** if `true` the hide sort by dropdown is not rendered */
|
|
@@ -4444,9 +4446,9 @@ export declare const HvList: (props: HvListProps) => JSX_2.Element | null;
|
|
|
4444
4446
|
export declare type HvListClasses = ExtractNames<typeof useClasses_88>;
|
|
4445
4447
|
|
|
4446
4448
|
/**
|
|
4447
|
-
* A
|
|
4448
|
-
* The simple list is for continuous
|
|
4449
|
-
* This pattern is ideal for
|
|
4449
|
+
* A **list** is any enumeration of a set of items.
|
|
4450
|
+
* The simple list is for continuous **vertical indexes of text or icons+text**. The content of these lists must be simple: ideally simples fields.
|
|
4451
|
+
* This pattern is ideal for **selections**. It should be used inside an `HvPanel`.
|
|
4450
4452
|
*/
|
|
4451
4453
|
export declare const HvListContainer: ForwardRefExoticComponent<HvListContainerProps & RefAttributes<HTMLUListElement>>;
|
|
4452
4454
|
|
|
@@ -4772,7 +4774,7 @@ export declare interface HvOverflowTooltipProps extends HvBaseProps {
|
|
|
4772
4774
|
*/
|
|
4773
4775
|
export declare const HvPagination: ForwardRefExoticComponent<HvPaginationProps & RefAttributes<HTMLDivElement>>;
|
|
4774
4776
|
|
|
4775
|
-
export declare type HvPaginationClasses = ExtractNames<typeof
|
|
4777
|
+
export declare type HvPaginationClasses = ExtractNames<typeof useClasses_47>;
|
|
4776
4778
|
|
|
4777
4779
|
export declare type HvPaginationLabels = Partial<typeof DEFAULT_LABELS_3>;
|
|
4778
4780
|
|
|
@@ -4806,7 +4808,7 @@ export declare interface HvPaginationProps extends HvBaseProps {
|
|
|
4806
4808
|
/** Other props to pagination component. */
|
|
4807
4809
|
navigationProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
4808
4810
|
/** Extra properties passed to the input component representing the current pages. */
|
|
4809
|
-
currentPageInputProps?:
|
|
4811
|
+
currentPageInputProps?: HvBaseInputProps;
|
|
4810
4812
|
/** A Jss Object used to override or extend the styles applied to the component. */
|
|
4811
4813
|
classes?: HvPaginationClasses;
|
|
4812
4814
|
}
|
|
@@ -4939,7 +4941,7 @@ export declare interface HvProviderProps {
|
|
|
4939
4941
|
* This component allows you to create conditions and group them using logical operators.
|
|
4940
4942
|
* It outputs a structured set of rules which can be easily parsed to create SQL/NoSQL/whatever queries.
|
|
4941
4943
|
*
|
|
4942
|
-
* Take a look at the [usage page](https://
|
|
4944
|
+
* Take a look at the [usage page](https://pentaho.github.io/uikit-docs/master/components/query-builder) to learn more about this component.
|
|
4943
4945
|
*/
|
|
4944
4946
|
export declare const HvQueryBuilder: (props: HvQueryBuilderProps) => JSX_2.Element;
|
|
4945
4947
|
|
|
@@ -5703,6 +5705,8 @@ export declare interface HvSelectProps<OptionValue extends {}, Multiple extends
|
|
|
5703
5705
|
classes?: HvSelectClasses;
|
|
5704
5706
|
placeholder?: React.ReactNode;
|
|
5705
5707
|
autoComplete?: string;
|
|
5708
|
+
/** Custom render function for rendering the selected value. */
|
|
5709
|
+
renderValue?: (option: SelectValue<SelectOption<OptionValue>, Multiple>) => React.ReactNode;
|
|
5706
5710
|
/** Whether the width of the select panel can vary independently. */
|
|
5707
5711
|
variableWidth?: boolean;
|
|
5708
5712
|
/**
|
|
@@ -6256,7 +6260,7 @@ export declare type HvTabClasses = ExtractNames<typeof useClasses_118>;
|
|
|
6256
6260
|
* You can rely on these **elements** when your table doesn’t have many interactions or you need it to be very lightweight.
|
|
6257
6261
|
*
|
|
6258
6262
|
* For better data handling and **advanced features** we recommend the use of the utility hooks collection.
|
|
6259
|
-
* See the [Table Hooks documentation](https://
|
|
6263
|
+
* See the [Table Hooks documentation](https://pentaho.github.io/uikit-docs/master/components/table#usehvtable-hooks) for more details.
|
|
6260
6264
|
*/
|
|
6261
6265
|
export declare const HvTable: ForwardRefExoticComponent<HvTableProps & RefAttributes<HTMLElement>>;
|
|
6262
6266
|
|
|
@@ -6300,7 +6304,7 @@ export declare const HvTableCell: ForwardRefExoticComponent<HvTableCellProps & R
|
|
|
6300
6304
|
|
|
6301
6305
|
export declare type HvTableCellAlign = "center" | "inherit" | "justify" | "left" | "right";
|
|
6302
6306
|
|
|
6303
|
-
export declare type HvTableCellClasses = ExtractNames<typeof
|
|
6307
|
+
export declare type HvTableCellClasses = ExtractNames<typeof useClasses_52>;
|
|
6304
6308
|
|
|
6305
6309
|
export declare interface HvTableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, "align"> {
|
|
6306
6310
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to td. */
|
|
@@ -6339,7 +6343,7 @@ export declare type HvTableCellType = "body" | "footer" | "head";
|
|
|
6339
6343
|
|
|
6340
6344
|
export declare type HvTableCellVariant = "checkbox" | "expand" | "actions" | "default" | "none";
|
|
6341
6345
|
|
|
6342
|
-
export declare type HvTableClasses = ExtractNames<typeof
|
|
6346
|
+
export declare type HvTableClasses = ExtractNames<typeof useClasses_55>;
|
|
6343
6347
|
|
|
6344
6348
|
export declare type HvTableColumnConfig<D extends object = Record<string, unknown>, H extends HvTableHeaderRenderer | undefined = HvTableHeaderRenderer> = HvColumnGroup<D, H> | HvColumnWithLooseAccessor<D, H> | HvColumnWithStrictAccessor<D, H>;
|
|
6345
6349
|
|
|
@@ -6385,7 +6389,7 @@ export declare type HvTableHeadClasses = ExtractNames<typeof useClasses_115>;
|
|
|
6385
6389
|
*/
|
|
6386
6390
|
export declare const HvTableHeader: ForwardRefExoticComponent<HvTableHeaderProps & RefAttributes<HTMLElement>>;
|
|
6387
6391
|
|
|
6388
|
-
export declare type HvTableHeaderClasses = ExtractNames<typeof
|
|
6392
|
+
export declare type HvTableHeaderClasses = ExtractNames<typeof useClasses_54>;
|
|
6389
6393
|
|
|
6390
6394
|
export declare interface HvTableHeaderProps extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, "align"> {
|
|
6391
6395
|
/** The component used for the root node. Either a string to use a HTML element or a component. Defaults to th. */
|
|
@@ -6526,7 +6530,7 @@ export declare interface HvTableProps extends React.TableHTMLAttributes<HTMLTabl
|
|
|
6526
6530
|
*/
|
|
6527
6531
|
export declare const HvTableRow: ForwardRefExoticComponent<HvTableRowProps & RefAttributes<HTMLElement>>;
|
|
6528
6532
|
|
|
6529
|
-
export declare type HvTableRowClasses = ExtractNames<typeof
|
|
6533
|
+
export declare type HvTableRowClasses = ExtractNames<typeof useClasses_53>;
|
|
6530
6534
|
|
|
6531
6535
|
export declare interface HvTableRowProps extends HvBaseProps<HTMLTableRowElement, "children"> {
|
|
6532
6536
|
/** Content to be rendered */
|
|
@@ -9543,33 +9547,7 @@ declare const useClasses_46: (classesProp?: Partial<Record<"image" | "slide", st
|
|
|
9543
9547
|
readonly cx: (...args: any) => string;
|
|
9544
9548
|
};
|
|
9545
9549
|
|
|
9546
|
-
declare const useClasses_47: (classesProp?: Partial<Record<"
|
|
9547
|
-
readonly classes: {
|
|
9548
|
-
root: string;
|
|
9549
|
-
labelContainer: string;
|
|
9550
|
-
label: string;
|
|
9551
|
-
description: string;
|
|
9552
|
-
adornmentsBox: string;
|
|
9553
|
-
icon: string;
|
|
9554
|
-
adornmentButton: string;
|
|
9555
|
-
iconClear: string;
|
|
9556
|
-
hasSuggestions: string;
|
|
9557
|
-
suggestionsContainer: string;
|
|
9558
|
-
suggestionList: string;
|
|
9559
|
-
inputExtension: string;
|
|
9560
|
-
input: string;
|
|
9561
|
-
inputRoot: string;
|
|
9562
|
-
inputRootFocused: string;
|
|
9563
|
-
inputRootDisabled: string;
|
|
9564
|
-
inputRootMultiline: string;
|
|
9565
|
-
inputBorderContainer: string;
|
|
9566
|
-
error: string;
|
|
9567
|
-
};
|
|
9568
|
-
readonly css: any;
|
|
9569
|
-
readonly cx: (...args: any) => string;
|
|
9570
|
-
};
|
|
9571
|
-
|
|
9572
|
-
declare const useClasses_48: (classesProp?: Partial<Record<"icon" | "root" | "pageSizeOptions" | "pageSizeHeader" | "pageSizeRoot" | "pageSizeTextContainer" | "totalPagesTextContainer" | "pageSizeOptionsSelect" | "pageNavigator" | "iconContainer" | "pageInfo" | "pageJump" | "pageSizeInput" | "pageSizeInputRoot" | "pageSizeInputContainer", string>>, addStatic?: boolean) => {
|
|
9550
|
+
declare const useClasses_47: (classesProp?: Partial<Record<"icon" | "root" | "pageSizeOptions" | "pageSizeHeader" | "pageSizeRoot" | "pageSizeTextContainer" | "totalPagesTextContainer" | "pageSizeOptionsSelect" | "pageNavigator" | "iconContainer" | "pageInfo" | "pageJump" | "pageSizeInput" | "pageSizeInputRoot" | "pageSizeInputContainer", string>>, addStatic?: boolean) => {
|
|
9573
9551
|
readonly classes: {
|
|
9574
9552
|
root: string;
|
|
9575
9553
|
pageSizeOptions: string;
|
|
@@ -9591,7 +9569,7 @@ declare const useClasses_48: (classesProp?: Partial<Record<"icon" | "root" | "pa
|
|
|
9591
9569
|
readonly cx: (...args: any) => string;
|
|
9592
9570
|
};
|
|
9593
9571
|
|
|
9594
|
-
declare const
|
|
9572
|
+
declare const useClasses_48: (classesProp?: Partial<Record<"vertical" | "horizontal" | "label" | "root" | "group" | "error" | "invalid" | "selectAll", string>>, addStatic?: boolean) => {
|
|
9595
9573
|
readonly classes: {
|
|
9596
9574
|
root: string;
|
|
9597
9575
|
label: string;
|
|
@@ -9606,15 +9584,7 @@ declare const useClasses_49: (classesProp?: Partial<Record<"vertical" | "horizon
|
|
|
9606
9584
|
readonly cx: (...args: any) => string;
|
|
9607
9585
|
};
|
|
9608
9586
|
|
|
9609
|
-
declare const
|
|
9610
|
-
readonly classes: {
|
|
9611
|
-
root: string;
|
|
9612
|
-
};
|
|
9613
|
-
readonly css: any;
|
|
9614
|
-
readonly cx: (...args: any) => string;
|
|
9615
|
-
};
|
|
9616
|
-
|
|
9617
|
-
declare const useClasses_50: (classesProp?: Partial<Record<"label" | "colorPicker" | "root" | "description" | "panel" | "labelContainer" | "headerColorValue" | "headerColorIcon" | "colorPickerIcon" | "recommendedColorsRoot" | "dropdownRootIconOnly" | "headerColorIconOnly" | "pickerFields", string>>, addStatic?: boolean) => {
|
|
9587
|
+
declare const useClasses_49: (classesProp?: Partial<Record<"label" | "colorPicker" | "root" | "description" | "panel" | "labelContainer" | "headerColorValue" | "headerColorIcon" | "colorPickerIcon" | "recommendedColorsRoot" | "dropdownRootIconOnly" | "headerColorIconOnly" | "pickerFields", string>>, addStatic?: boolean) => {
|
|
9618
9588
|
readonly classes: {
|
|
9619
9589
|
root: string;
|
|
9620
9590
|
labelContainer: string;
|
|
@@ -9634,7 +9604,15 @@ declare const useClasses_50: (classesProp?: Partial<Record<"label" | "colorPicke
|
|
|
9634
9604
|
readonly cx: (...args: any) => string;
|
|
9635
9605
|
};
|
|
9636
9606
|
|
|
9637
|
-
declare const
|
|
9607
|
+
declare const useClasses_5: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
|
|
9608
|
+
readonly classes: {
|
|
9609
|
+
root: string;
|
|
9610
|
+
};
|
|
9611
|
+
readonly css: any;
|
|
9612
|
+
readonly cx: (...args: any) => string;
|
|
9613
|
+
};
|
|
9614
|
+
|
|
9615
|
+
declare const useClasses_50: (classesProp?: Partial<Record<"fixed" | "root" | "disableGutters" | "maxWidthXs" | "maxWidthSm" | "maxWidthMd" | "maxWidthLg" | "maxWidthXl", string>>, addStatic?: boolean) => {
|
|
9638
9616
|
readonly classes: {
|
|
9639
9617
|
root: string;
|
|
9640
9618
|
disableGutters: string;
|
|
@@ -9649,7 +9627,7 @@ declare const useClasses_51: (classesProp?: Partial<Record<"fixed" | "root" | "d
|
|
|
9649
9627
|
readonly cx: (...args: any) => string;
|
|
9650
9628
|
};
|
|
9651
9629
|
|
|
9652
|
-
declare const
|
|
9630
|
+
declare const useClasses_51: (classesProp?: Partial<Record<"section" | "root" | "rightSection" | "leftSection", string>>, addStatic?: boolean) => {
|
|
9653
9631
|
readonly classes: {
|
|
9654
9632
|
root: string;
|
|
9655
9633
|
section: string;
|
|
@@ -9660,7 +9638,7 @@ declare const useClasses_52: (classesProp?: Partial<Record<"section" | "root" |
|
|
|
9660
9638
|
readonly cx: (...args: any) => string;
|
|
9661
9639
|
};
|
|
9662
9640
|
|
|
9663
|
-
declare const
|
|
9641
|
+
declare const useClasses_52: (classesProp?: Partial<Record<"body" | "footer" | "head" | "root" | "resizable" | "sorted" | "alignLeft" | "alignCenter" | "alignRight" | "alignJustify" | "variantNone" | "variantCheckbox" | "variantActions" | "variantExpand" | "variantList" | "variantListHead" | "variantListactions" | "variantListcheckbox" | "stickyColumn" | "stickyColumnMostLeft" | "stickyColumnLeastRight" | "groupColumnMostLeft" | "groupColumnMostRight" | "resizing", string>>, addStatic?: boolean) => {
|
|
9664
9642
|
readonly classes: {
|
|
9665
9643
|
root: string;
|
|
9666
9644
|
head: string;
|
|
@@ -9691,7 +9669,7 @@ declare const useClasses_53: (classesProp?: Partial<Record<"body" | "footer" | "
|
|
|
9691
9669
|
readonly cx: (...args: any) => string;
|
|
9692
9670
|
};
|
|
9693
9671
|
|
|
9694
|
-
declare const
|
|
9672
|
+
declare const useClasses_53: (classesProp?: Partial<Record<"body" | "expanded" | "footer" | "head" | "selected" | "root" | "variantList" | "variantListHead" | "striped" | "hover", string>>, addStatic?: boolean) => {
|
|
9695
9673
|
readonly classes: {
|
|
9696
9674
|
root: string;
|
|
9697
9675
|
head: string;
|
|
@@ -9708,7 +9686,7 @@ declare const useClasses_54: (classesProp?: Partial<Record<"body" | "expanded" |
|
|
|
9708
9686
|
readonly cx: (...args: any) => string;
|
|
9709
9687
|
};
|
|
9710
9688
|
|
|
9711
|
-
declare const
|
|
9689
|
+
declare const useClasses_54: (classesProp?: Partial<Record<"body" | "resizer" | "footer" | "head" | "root" | "resizable" | "sorted" | "alignLeft" | "alignCenter" | "alignRight" | "alignJustify" | "variantNone" | "variantCheckbox" | "variantActions" | "variantExpand" | "variantList" | "stickyColumn" | "stickyColumnMostLeft" | "stickyColumnLeastRight" | "groupColumnMostLeft" | "groupColumnMostRight" | "resizing" | "headerContent" | "headerText" | "headerParagraph" | "sortableHeaderText" | "sortable" | "sortButton" | "sortIcon" | "alignFlexLeft" | "alignFlexRight" | "alignFlexCenter" | "alignFlexJustify", string>>, addStatic?: boolean) => {
|
|
9712
9690
|
readonly classes: {
|
|
9713
9691
|
root: string;
|
|
9714
9692
|
head: string;
|
|
@@ -9748,7 +9726,7 @@ declare const useClasses_55: (classesProp?: Partial<Record<"body" | "resizer" |
|
|
|
9748
9726
|
readonly cx: (...args: any) => string;
|
|
9749
9727
|
};
|
|
9750
9728
|
|
|
9751
|
-
declare const
|
|
9729
|
+
declare const useClasses_55: (classesProp?: Partial<Record<"root" | "stickyHeader" | "stickyColumns" | "listRow", string>>, addStatic?: boolean) => {
|
|
9752
9730
|
readonly classes: {
|
|
9753
9731
|
root: string;
|
|
9754
9732
|
stickyHeader: string;
|
|
@@ -9759,9 +9737,35 @@ declare const useClasses_56: (classesProp?: Partial<Record<"root" | "stickyHeade
|
|
|
9759
9737
|
readonly cx: (...args: any) => string;
|
|
9760
9738
|
};
|
|
9761
9739
|
|
|
9762
|
-
declare const
|
|
9740
|
+
declare const useClasses_56: (classesProp?: Partial<Record<"root", string>>, addStatic?: boolean) => {
|
|
9741
|
+
readonly classes: {
|
|
9742
|
+
root: string;
|
|
9743
|
+
};
|
|
9744
|
+
readonly css: any;
|
|
9745
|
+
readonly cx: (...args: any) => string;
|
|
9746
|
+
};
|
|
9747
|
+
|
|
9748
|
+
declare const useClasses_57: (classesProp?: Partial<Record<"label" | "icon" | "input" | "root" | "error" | "description" | "adornmentButton" | "inputBorderContainer" | "inputRoot" | "inputRootFocused" | "inputRootDisabled" | "inputRootMultiline" | "labelContainer" | "adornmentsBox" | "iconClear" | "hasSuggestions" | "suggestionsContainer" | "suggestionList" | "inputExtension", string>>, addStatic?: boolean) => {
|
|
9763
9749
|
readonly classes: {
|
|
9764
9750
|
root: string;
|
|
9751
|
+
labelContainer: string;
|
|
9752
|
+
label: string;
|
|
9753
|
+
description: string;
|
|
9754
|
+
adornmentsBox: string;
|
|
9755
|
+
icon: string;
|
|
9756
|
+
adornmentButton: string;
|
|
9757
|
+
iconClear: string;
|
|
9758
|
+
hasSuggestions: string;
|
|
9759
|
+
suggestionsContainer: string;
|
|
9760
|
+
suggestionList: string;
|
|
9761
|
+
inputExtension: string;
|
|
9762
|
+
input: string;
|
|
9763
|
+
inputRoot: string;
|
|
9764
|
+
inputRootFocused: string;
|
|
9765
|
+
inputRootDisabled: string;
|
|
9766
|
+
inputRootMultiline: string;
|
|
9767
|
+
inputBorderContainer: string;
|
|
9768
|
+
error: string;
|
|
9765
9769
|
};
|
|
9766
9770
|
readonly css: any;
|
|
9767
9771
|
readonly cx: (...args: any) => string;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.107.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
6
|
"description": "UI Kit Core React components.",
|
|
7
|
-
"homepage": "https://github.com/
|
|
7
|
+
"homepage": "https://github.com/pentaho/hv-uikit-react",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"keywords": [
|
|
10
10
|
"hitachi-vantara",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/
|
|
18
|
+
"url": "git+https://github.com/pentaho/hv-uikit-react.git",
|
|
19
19
|
"directory": "packages/core"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/
|
|
23
|
+
"url": "https://github.com/pentaho/hv-uikit-react/issues"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@emotion/react": "^11.11.1",
|
|
@@ -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.8",
|
|
36
|
+
"@hitachivantara/uikit-react-utils": "^0.2.48",
|
|
37
|
+
"@hitachivantara/uikit-styles": "^5.53.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": "e34acd74656ecb0ad2c31d6afaed30a00d58a8ca",
|
|
65
65
|
"exports": {
|
|
66
66
|
".": {
|
|
67
67
|
"types": "./dist/types/index.d.ts",
|