remoraid 2.1.7 → 2.2.1
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/core/index.cjs +117 -60
- package/dist/core/index.d.ts +58 -42
- package/dist/core/index.js +118 -59
- package/dist/jsonforms/index.cjs +66 -156
- package/dist/jsonforms/index.js +48 -150
- package/dist/modals/index.cjs +4 -229
- package/dist/modals/index.js +4 -292
- package/dist/server/index.d.ts +7 -7
- package/package.json +1 -1
package/dist/core/index.cjs
CHANGED
@@ -60,6 +60,7 @@ __export(exports_core, {
|
|
60
60
|
NotFoundPage: () => NotFoundPage,
|
61
61
|
EnvironmentShell: () => EnvironmentShell,
|
62
62
|
CloseButton: () => CloseButton,
|
63
|
+
Button: () => Button,
|
63
64
|
BadgeMinimal: () => BadgeMinimal,
|
64
65
|
BadgeGroup: () => BadgeGroup,
|
65
66
|
AppShell: () => AppShell,
|
@@ -80,6 +81,15 @@ var import_react2 = require("react");
|
|
80
81
|
|
81
82
|
// src/core/lib/utils.ts
|
82
83
|
var co = (condition, value, fallback) => condition(value) ? value : fallback;
|
84
|
+
var isRemoraidButtonProps = (e) => {
|
85
|
+
if (typeof e !== "object") {
|
86
|
+
return false;
|
87
|
+
}
|
88
|
+
if (!("label" in e)) {
|
89
|
+
return false;
|
90
|
+
}
|
91
|
+
return true;
|
92
|
+
};
|
83
93
|
|
84
94
|
// src/core/components/RemoraidProvider/ThemeProvider/index.tsx
|
85
95
|
var import_core = require("@mantine/core");
|
@@ -806,7 +816,7 @@ function WidgetSelectionHeader({
|
|
806
816
|
]
|
807
817
|
}, undefined, true, undefined, this);
|
808
818
|
}
|
809
|
-
// src/core/components/CloseButton/index.tsx
|
819
|
+
// src/core/components/Widget/WidgetWrapper/CloseButton/index.tsx
|
810
820
|
var import_core7 = require("@mantine/core");
|
811
821
|
var import_icons_react5 = require("@tabler/icons-react");
|
812
822
|
var jsx_dev_runtime11 = require("react/jsx-dev-runtime");
|
@@ -974,56 +984,103 @@ function AlertMinimal({
|
|
974
984
|
}, undefined, false, undefined, this);
|
975
985
|
}
|
976
986
|
// src/core/components/ResponsiveButton/index.tsx
|
987
|
+
var import_core12 = require("@mantine/core");
|
988
|
+
|
989
|
+
// src/core/components/Button/index.tsx
|
977
990
|
var import_core11 = require("@mantine/core");
|
978
991
|
var import_icons_react6 = require("@tabler/icons-react");
|
979
992
|
var jsx_dev_runtime15 = require("react/jsx-dev-runtime");
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
}
|
989
|
-
function ResponsiveButton(props) {
|
990
|
-
const { onClick, label, loading, variant, componentsProps, breakpoint } = props;
|
993
|
+
function Button({
|
994
|
+
label,
|
995
|
+
collapsed,
|
996
|
+
componentsProps,
|
997
|
+
onClick,
|
998
|
+
loading,
|
999
|
+
variant,
|
1000
|
+
...props
|
1001
|
+
}) {
|
991
1002
|
const theme = useRemoraidTheme();
|
1003
|
+
const iconProps = { ...theme.iconProps.medium, ...componentsProps?.icon };
|
992
1004
|
const icon = props.icon ? /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(props.icon, {
|
993
|
-
...
|
1005
|
+
...iconProps
|
994
1006
|
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(import_icons_react6.IconClick, {
|
995
|
-
...
|
1007
|
+
...iconProps
|
1008
|
+
}, undefined, false, undefined, this);
|
1009
|
+
if (collapsed === true) {
|
1010
|
+
return /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(import_core11.Tooltip, {
|
1011
|
+
label,
|
1012
|
+
...componentsProps?.tooltip,
|
1013
|
+
children: /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(import_core11.ActionIcon, {
|
1014
|
+
variant: variant ?? "default",
|
1015
|
+
onClick,
|
1016
|
+
loading,
|
1017
|
+
size: "input-sm",
|
1018
|
+
"aria-label": "Refresh",
|
1019
|
+
...componentsProps?.actionIcon,
|
1020
|
+
children: icon
|
1021
|
+
}, undefined, false, undefined, this)
|
1022
|
+
}, undefined, false, undefined, this);
|
1023
|
+
}
|
1024
|
+
return /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(import_core11.Button, {
|
1025
|
+
onClick,
|
1026
|
+
loading,
|
1027
|
+
variant: variant ?? "default",
|
1028
|
+
leftSection: props.icon ? icon : undefined,
|
1029
|
+
...componentsProps?.button,
|
1030
|
+
children: label
|
996
1031
|
}, undefined, false, undefined, this);
|
997
|
-
|
1032
|
+
}
|
1033
|
+
|
1034
|
+
// src/core/components/ResponsiveButton/index.tsx
|
1035
|
+
var jsx_dev_runtime16 = require("react/jsx-dev-runtime");
|
1036
|
+
function ResponsiveButton({
|
1037
|
+
breakpoint,
|
1038
|
+
componentsProps,
|
1039
|
+
...remoraidButtonProps
|
1040
|
+
}) {
|
1041
|
+
return /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(jsx_dev_runtime16.Fragment, {
|
998
1042
|
children: [
|
999
|
-
/* @__PURE__ */
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1043
|
+
/* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core12.Box, {
|
1044
|
+
hiddenFrom: breakpoint ?? "md",
|
1045
|
+
children: /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(Button, {
|
1046
|
+
...remoraidButtonProps,
|
1047
|
+
...componentsProps?.Button,
|
1048
|
+
componentsProps: {
|
1049
|
+
tooltip: componentsProps?.tooltip,
|
1050
|
+
icon: componentsProps?.icon,
|
1051
|
+
...componentsProps?.Button?.componentsProps,
|
1052
|
+
actionIcon: {
|
1053
|
+
...componentsProps?.button,
|
1054
|
+
...componentsProps?.Button?.componentsProps?.actionIcon
|
1055
|
+
}
|
1056
|
+
},
|
1057
|
+
collapsed: true
|
1010
1058
|
}, undefined, false, undefined, this)
|
1011
1059
|
}, undefined, false, undefined, this),
|
1012
|
-
/* @__PURE__ */
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1060
|
+
/* @__PURE__ */ jsx_dev_runtime16.jsxDEV(import_core12.Box, {
|
1061
|
+
visibleFrom: breakpoint ?? "md",
|
1062
|
+
children: /* @__PURE__ */ jsx_dev_runtime16.jsxDEV(Button, {
|
1063
|
+
...remoraidButtonProps,
|
1064
|
+
...componentsProps?.Button,
|
1065
|
+
componentsProps: {
|
1066
|
+
tooltip: componentsProps?.tooltip,
|
1067
|
+
icon: componentsProps?.icon,
|
1068
|
+
...componentsProps?.Button?.componentsProps,
|
1069
|
+
button: {
|
1070
|
+
...componentsProps?.button,
|
1071
|
+
...componentsProps?.Button?.componentsProps?.button
|
1072
|
+
}
|
1073
|
+
},
|
1074
|
+
collapsed: false
|
1075
|
+
}, undefined, false, undefined, this)
|
1019
1076
|
}, undefined, false, undefined, this)
|
1020
1077
|
]
|
1021
1078
|
}, undefined, true, undefined, this);
|
1022
1079
|
}
|
1023
1080
|
// src/core/components/Widget/WidgetWrapper/index.tsx
|
1024
|
-
var
|
1081
|
+
var import_core13 = require("@mantine/core");
|
1025
1082
|
var import_react7 = require("react");
|
1026
|
-
var
|
1083
|
+
var jsx_dev_runtime17 = require("react/jsx-dev-runtime");
|
1027
1084
|
function WidgetWrapper({
|
1028
1085
|
children,
|
1029
1086
|
config,
|
@@ -1049,12 +1106,12 @@ function WidgetWrapper({
|
|
1049
1106
|
registerWidget(page.pageId, config);
|
1050
1107
|
}
|
1051
1108
|
}, [pageRegistered]);
|
1052
|
-
return /* @__PURE__ */
|
1109
|
+
return /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core13.Transition, {
|
1053
1110
|
mounted: page !== null && isWidgetSelected(page.pageId, config.widgetId),
|
1054
1111
|
transition: "fade-left",
|
1055
1112
|
duration: theme.transitionDurations.medium,
|
1056
1113
|
timingFunction: "ease",
|
1057
|
-
children: (transitionStyle) => /* @__PURE__ */
|
1114
|
+
children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(import_core13.Paper, {
|
1058
1115
|
p: "md",
|
1059
1116
|
shadow: "md",
|
1060
1117
|
bg: theme.transparentBackground,
|
@@ -1070,7 +1127,7 @@ function WidgetWrapper({
|
|
1070
1127
|
updateActiveWidget(null);
|
1071
1128
|
},
|
1072
1129
|
children: [
|
1073
|
-
withCloseButton !== false && /* @__PURE__ */
|
1130
|
+
withCloseButton !== false && /* @__PURE__ */ jsx_dev_runtime17.jsxDEV(CloseButton, {
|
1074
1131
|
widgetId: config.widgetId
|
1075
1132
|
}, undefined, false, undefined, this),
|
1076
1133
|
children
|
@@ -1079,8 +1136,8 @@ function WidgetWrapper({
|
|
1079
1136
|
}, undefined, false, undefined, this);
|
1080
1137
|
}
|
1081
1138
|
// src/core/components/Widget/index.tsx
|
1082
|
-
var
|
1083
|
-
var
|
1139
|
+
var import_core14 = require("@mantine/core");
|
1140
|
+
var jsx_dev_runtime18 = require("react/jsx-dev-runtime");
|
1084
1141
|
var react2 = require("react");
|
1085
1142
|
function Widget({
|
1086
1143
|
children,
|
@@ -1098,7 +1155,7 @@ function Widget({
|
|
1098
1155
|
const badgesGap = (typeof gaps === "object" ? gaps.badges : gaps) ?? "xs";
|
1099
1156
|
const buttonsGap = (typeof gaps === "object" ? gaps.buttons : gaps) ?? "xs";
|
1100
1157
|
const alertsGap = (typeof gaps === "object" ? gaps.alerts : gaps) ?? "xs";
|
1101
|
-
return /* @__PURE__ */
|
1158
|
+
return /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(WidgetWrapper, {
|
1102
1159
|
config: {
|
1103
1160
|
widgetId: id,
|
1104
1161
|
name: title,
|
@@ -1111,32 +1168,32 @@ function Widget({
|
|
1111
1168
|
},
|
1112
1169
|
...componentsProps?.wrapper,
|
1113
1170
|
children: [
|
1114
|
-
/* @__PURE__ */
|
1171
|
+
/* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core14.Group, {
|
1115
1172
|
justify: "space-between",
|
1116
1173
|
wrap: "nowrap",
|
1117
1174
|
children: [
|
1118
|
-
/* @__PURE__ */
|
1175
|
+
/* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core14.Group, {
|
1119
1176
|
gap: badgesGap,
|
1120
1177
|
wrap: "nowrap",
|
1121
1178
|
children: [
|
1122
|
-
/* @__PURE__ */
|
1179
|
+
/* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core14.Title, {
|
1123
1180
|
order: 1,
|
1124
1181
|
size: "h3",
|
1125
1182
|
lineClamp: 1,
|
1126
1183
|
children: title
|
1127
1184
|
}, undefined, false, undefined, this),
|
1128
|
-
badges !== undefined && /* @__PURE__ */
|
1185
|
+
badges !== undefined && /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(BadgeGroup, {
|
1129
1186
|
badges,
|
1130
1187
|
gap: badgesGap,
|
1131
1188
|
...componentsProps?.badgeGroup
|
1132
1189
|
}, undefined, false, undefined, this)
|
1133
1190
|
]
|
1134
1191
|
}, undefined, true, undefined, this),
|
1135
|
-
/* @__PURE__ */
|
1192
|
+
/* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core14.Group, {
|
1136
1193
|
gap: buttonsGap,
|
1137
1194
|
wrap: "nowrap",
|
1138
1195
|
children: buttons !== undefined && buttons.map((e, i) => {
|
1139
|
-
if (
|
1196
|
+
if (isRemoraidButtonProps(e)) {
|
1140
1197
|
return /* @__PURE__ */ react2.createElement(ResponsiveButton, {
|
1141
1198
|
...e,
|
1142
1199
|
key: i
|
@@ -1147,7 +1204,7 @@ function Widget({
|
|
1147
1204
|
}, undefined, false, undefined, this)
|
1148
1205
|
]
|
1149
1206
|
}, undefined, true, undefined, this),
|
1150
|
-
/* @__PURE__ */
|
1207
|
+
/* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core14.Divider, {
|
1151
1208
|
my: "md"
|
1152
1209
|
}, undefined, false, undefined, this),
|
1153
1210
|
alerts !== undefined && alerts.map((a, i) => {
|
@@ -1160,20 +1217,20 @@ function Widget({
|
|
1160
1217
|
}
|
1161
1218
|
return a;
|
1162
1219
|
}),
|
1163
|
-
loading ? /* @__PURE__ */
|
1164
|
-
children: /* @__PURE__ */
|
1220
|
+
loading ? /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core14.Center, {
|
1221
|
+
children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core14.Loader, {
|
1165
1222
|
...componentsProps?.loader
|
1166
1223
|
}, undefined, false, undefined, this)
|
1167
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */
|
1224
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(jsx_dev_runtime18.Fragment, {
|
1168
1225
|
children
|
1169
1226
|
}, undefined, false, undefined, this)
|
1170
1227
|
]
|
1171
1228
|
}, undefined, true, undefined, this);
|
1172
1229
|
}
|
1173
1230
|
// src/core/components/Page/NotFoundPage/index.tsx
|
1174
|
-
var
|
1231
|
+
var import_core15 = require("@mantine/core");
|
1175
1232
|
var import_navigation3 = require("next/navigation");
|
1176
|
-
var
|
1233
|
+
var jsx_dev_runtime19 = require("react/jsx-dev-runtime");
|
1177
1234
|
function NotFoundPage({
|
1178
1235
|
children,
|
1179
1236
|
message,
|
@@ -1181,11 +1238,11 @@ function NotFoundPage({
|
|
1181
1238
|
}) {
|
1182
1239
|
const pathname = import_navigation3.usePathname();
|
1183
1240
|
const theme = useRemoraidTheme();
|
1184
|
-
return /* @__PURE__ */
|
1241
|
+
return /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(Page, {
|
1185
1242
|
name: "Not Found",
|
1186
1243
|
...componentsProps?.page,
|
1187
1244
|
children: [
|
1188
|
-
/* @__PURE__ */
|
1245
|
+
/* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_core15.Alert, {
|
1189
1246
|
...theme.alertProps.negative,
|
1190
1247
|
title: "404 - Page Not Found",
|
1191
1248
|
children: message ?? `Could not find page ${pathname}.`
|
@@ -1195,8 +1252,8 @@ function NotFoundPage({
|
|
1195
1252
|
}, undefined, true, undefined, this);
|
1196
1253
|
}
|
1197
1254
|
// src/core/components/EnvironmentShell/index.tsx
|
1198
|
-
var
|
1199
|
-
var
|
1255
|
+
var import_core16 = require("@mantine/core");
|
1256
|
+
var jsx_dev_runtime20 = require("react/jsx-dev-runtime");
|
1200
1257
|
function EnvironmentShell({
|
1201
1258
|
children,
|
1202
1259
|
environment,
|
@@ -1210,7 +1267,7 @@ function EnvironmentShell({
|
|
1210
1267
|
const undefinedKeys = Object.keys(environment).filter((key) => environment[key] === undefined);
|
1211
1268
|
const alertTitle = `Please Specify Environment Variable${undefinedKeys.length > 1 ? "s" : ""}`;
|
1212
1269
|
const alertMessage = `Components could not be rendered because the following environment variables are not specified: ${undefinedKeys.join(", ")}.`;
|
1213
|
-
const alert = /* @__PURE__ */
|
1270
|
+
const alert = /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(import_core16.Alert, {
|
1214
1271
|
...theme.alertProps.neutral,
|
1215
1272
|
title: alertTitle,
|
1216
1273
|
m,
|
@@ -1218,12 +1275,12 @@ function EnvironmentShell({
|
|
1218
1275
|
children: message ?? alertMessage
|
1219
1276
|
}, undefined, false, undefined, this);
|
1220
1277
|
if (undefinedKeys.length === 0) {
|
1221
|
-
return /* @__PURE__ */
|
1278
|
+
return /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(jsx_dev_runtime20.Fragment, {
|
1222
1279
|
children
|
1223
1280
|
}, undefined, false, undefined, this);
|
1224
1281
|
}
|
1225
1282
|
if (withContainer) {
|
1226
|
-
return /* @__PURE__ */
|
1283
|
+
return /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(PageContainer, {
|
1227
1284
|
componentsProps: { container: componentsProps?.container },
|
1228
1285
|
children: alert
|
1229
1286
|
}, undefined, false, undefined, this);
|
package/dist/core/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropsWithChildren as PropsWithChildren4, ReactNode as ReactNode5 } from "react";
|
2
|
-
import { AlertProps, IndicatorProps, MantineBreakpoint, MantineColorScheme, MantineSize, MantineTheme, ScrollAreaProps } from "@mantine/core";
|
2
|
+
import { ActionIconVariant, AlertProps, ButtonVariant, IndicatorProps, MantineBreakpoint, MantineColorScheme, MantineSize, MantineTheme, ScrollAreaProps } from "@mantine/core";
|
3
3
|
import { Icon, IconProps } from "@tabler/icons-react";
|
4
4
|
import { ImageProps } from "next/image";
|
5
5
|
import { ReactNode } from "react";
|
@@ -17,28 +17,21 @@ interface UserExperience {
|
|
17
17
|
showWelcomeMessage: boolean;
|
18
18
|
}
|
19
19
|
type AlertCategory = "negative" | "neutral" | "positive";
|
20
|
+
type TransitionDuration = "short" | "medium" | "long";
|
21
|
+
type RemoraidBreakpoint = "buttonCollapse" | "badgeGroupCollapse";
|
22
|
+
type RemoraidIconSize = "tiny" | "medium";
|
20
23
|
interface RemoraidTheme {
|
21
24
|
complete: true;
|
22
|
-
transitionDurations:
|
23
|
-
|
24
|
-
medium: number
|
25
|
-
long: number
|
26
|
-
};
|
27
|
-
breakpoints: {
|
28
|
-
buttonCollapse: MantineBreakpoint
|
29
|
-
badgeGroupCollapse: MantineBreakpoint
|
30
|
-
};
|
25
|
+
transitionDurations: Record<TransitionDuration, number>;
|
26
|
+
breakpoints: Record<RemoraidBreakpoint, MantineBreakpoint>;
|
31
27
|
scrollAreaProps: ScrollAreaProps;
|
32
|
-
alertProps:
|
28
|
+
alertProps: Record<AlertCategory, AlertProps>;
|
33
29
|
containerSize: MantineSize | number;
|
34
|
-
iconProps:
|
35
|
-
tiny: IconProps
|
36
|
-
medium: IconProps
|
37
|
-
};
|
30
|
+
iconProps: Record<RemoraidIconSize, IconProps>;
|
38
31
|
jsonStringifySpace: string | number;
|
39
32
|
transparentBackground?: string;
|
40
33
|
primaryColor?: string;
|
41
|
-
spacingPx?:
|
34
|
+
spacingPx?: Record<MantineSize, number>;
|
42
35
|
}
|
43
36
|
type RemoraidThemeCallback = (mantineTheme: MantineTheme, colorScheme: MantineColorScheme) => RemoraidTheme;
|
44
37
|
type PartialRemoraidTheme = Omit<Partial<RemoraidTheme>, "complete">;
|
@@ -67,6 +60,14 @@ interface PageConfiguration {
|
|
67
60
|
name: string;
|
68
61
|
registerPageDirectly?: boolean;
|
69
62
|
}
|
63
|
+
type ResponsiveButtonSize = "small" | "medium";
|
64
|
+
interface RemoraidButtonProps {
|
65
|
+
label: string;
|
66
|
+
icon?: Icon;
|
67
|
+
onClick?: () => void;
|
68
|
+
loading?: boolean;
|
69
|
+
variant?: Extract<ButtonVariant, ActionIconVariant>;
|
70
|
+
}
|
70
71
|
declare const defaultNavbarSettings: { [V in NavbarVariant] : NavbarSettings };
|
71
72
|
declare const defaultUserExperience: UserExperience;
|
72
73
|
interface UserExperienceContext {
|
@@ -181,23 +182,38 @@ interface AlertMinimalProps {
|
|
181
182
|
};
|
182
183
|
}
|
183
184
|
declare function AlertMinimal({ children, title, category, text, onClose, mounted, mt, mb, componentsProps }: PropsWithChildren6<AlertMinimalProps>): ReactNode11;
|
184
|
-
import {
|
185
|
-
import {
|
185
|
+
import { ActionIconProps as ActionIconProps2, ButtonProps as MantineButtonProps, MantineBreakpoint as MantineBreakpoint3, TooltipProps as TooltipProps4 } from "@mantine/core";
|
186
|
+
import { IconProps as IconProps3 } from "@tabler/icons-react";
|
187
|
+
import { ReactNode as ReactNode13 } from "react";
|
188
|
+
type Common<
|
189
|
+
A,
|
190
|
+
B
|
191
|
+
> = Pick<A & B, keyof A & keyof B>;
|
192
|
+
import { TooltipProps as TooltipProps3, ActionIconProps } from "@mantine/core";
|
193
|
+
import { IconProps as IconProps2 } from "@tabler/icons-react";
|
186
194
|
import { ReactNode as ReactNode12 } from "react";
|
187
|
-
interface
|
188
|
-
|
189
|
-
icon?: Icon2;
|
190
|
-
onClick?: () => void;
|
191
|
-
breakpoint?: MantineBreakpoint3;
|
192
|
-
loading?: boolean;
|
193
|
-
variant?: Extract<ButtonVariant, ActionIconVariant>;
|
195
|
+
interface ButtonProps extends RemoraidButtonProps {
|
196
|
+
collapsed?: boolean;
|
194
197
|
componentsProps?: {
|
195
198
|
tooltip?: Partial<TooltipProps3>
|
199
|
+
icon?: Partial<IconProps2>
|
200
|
+
button?: Partial<ButtonProps>
|
201
|
+
actionIcon?: Partial<ActionIconProps>
|
202
|
+
};
|
203
|
+
}
|
204
|
+
declare function Button2({ label, collapsed, componentsProps, onClick, loading, variant,...props }: ButtonProps): ReactNode12;
|
205
|
+
interface ResponsiveButtonProps extends RemoraidButtonProps {
|
206
|
+
breakpoint?: MantineBreakpoint3;
|
207
|
+
componentsProps?: {
|
208
|
+
Button?: Partial<ButtonProps>
|
209
|
+
button?: Omit<Partial<Common<MantineButtonProps, ActionIconProps2>>, "variant">
|
210
|
+
tooltip?: Partial<TooltipProps4>
|
211
|
+
icon?: Partial<IconProps3>
|
196
212
|
};
|
197
213
|
}
|
198
|
-
declare function ResponsiveButton(
|
214
|
+
declare function ResponsiveButton({ breakpoint, componentsProps,...remoraidButtonProps }: ResponsiveButtonProps): ReactNode13;
|
199
215
|
import { MantineSize as MantineSize5, PaperProps, TransitionProps as TransitionProps3 } from "@mantine/core";
|
200
|
-
import { PropsWithChildren as PropsWithChildren7, ReactNode as
|
216
|
+
import { PropsWithChildren as PropsWithChildren7, ReactNode as ReactNode14 } from "react";
|
201
217
|
interface WidgetWrapperComponentsProps {
|
202
218
|
container?: Partial<PaperProps>;
|
203
219
|
transition?: Partial<Omit<TransitionProps3, "mounted">>;
|
@@ -208,9 +224,9 @@ interface WidgetWrapperProps {
|
|
208
224
|
withCloseButton?: boolean;
|
209
225
|
componentsProps?: WidgetWrapperComponentsProps;
|
210
226
|
}
|
211
|
-
declare function WidgetWrapper({ children, config, mt, withCloseButton, componentsProps }: PropsWithChildren7<WidgetWrapperProps>):
|
227
|
+
declare function WidgetWrapper({ children, config, mt, withCloseButton, componentsProps }: PropsWithChildren7<WidgetWrapperProps>): ReactNode14;
|
212
228
|
import { MantineSize as MantineSize6, LoaderProps } from "@mantine/core";
|
213
|
-
import { PropsWithChildren as PropsWithChildren8, ReactNode as
|
229
|
+
import { PropsWithChildren as PropsWithChildren8, ReactNode as ReactNode15 } from "react";
|
214
230
|
interface WidgetComponentsProps extends WidgetWrapperComponentsProps {
|
215
231
|
wrapper?: Partial<Omit<WidgetWrapperProps, "widgetId">>;
|
216
232
|
loader?: Partial<LoaderProps>;
|
@@ -220,9 +236,9 @@ interface WidgetProps {
|
|
220
236
|
id: string;
|
221
237
|
title: string;
|
222
238
|
config?: Partial<Omit<WidgetConfiguration, "widgetId">>;
|
223
|
-
badges?: (BadgeMinimalProps |
|
224
|
-
buttons?: (ResponsiveButtonProps |
|
225
|
-
alerts?: (AlertMinimalProps |
|
239
|
+
badges?: (BadgeMinimalProps | ReactNode15)[];
|
240
|
+
buttons?: (ResponsiveButtonProps | ReactNode15)[];
|
241
|
+
alerts?: (AlertMinimalProps | ReactNode15)[];
|
226
242
|
gaps?: MantineSize6 | number | {
|
227
243
|
badges?: MantineSize6 | number
|
228
244
|
buttons?: MantineSize6 | number
|
@@ -232,9 +248,9 @@ interface WidgetProps {
|
|
232
248
|
mt?: MantineSize6 | number;
|
233
249
|
componentsProps?: WidgetComponentsProps;
|
234
250
|
}
|
235
|
-
declare function Widget({ children, id, config, title, badges, buttons, alerts, gaps, loading, mt, componentsProps }: PropsWithChildren8<WidgetProps>):
|
251
|
+
declare function Widget({ children, id, config, title, badges, buttons, alerts, gaps, loading, mt, componentsProps }: PropsWithChildren8<WidgetProps>): ReactNode15;
|
236
252
|
import { ContainerProps, MantineSize as MantineSize7 } from "@mantine/core";
|
237
|
-
import { PropsWithChildren as PropsWithChildren9, ReactNode as
|
253
|
+
import { PropsWithChildren as PropsWithChildren9, ReactNode as ReactNode16 } from "react";
|
238
254
|
interface PageProps {
|
239
255
|
name?: string;
|
240
256
|
config?: Partial<Omit<PageConfiguration, "name">>;
|
@@ -243,17 +259,17 @@ interface PageProps {
|
|
243
259
|
container?: ContainerProps
|
244
260
|
};
|
245
261
|
}
|
246
|
-
declare function Page({ children, name, config, pt, componentsProps }: PropsWithChildren9<PageProps>):
|
262
|
+
declare function Page({ children, name, config, pt, componentsProps }: PropsWithChildren9<PageProps>): ReactNode16;
|
247
263
|
import { ContainerProps as ContainerProps2, MantineSize as MantineSize8 } from "@mantine/core";
|
248
|
-
import { PropsWithChildren as PropsWithChildren10, ReactNode as
|
264
|
+
import { PropsWithChildren as PropsWithChildren10, ReactNode as ReactNode17 } from "react";
|
249
265
|
interface PageContainerProps {
|
250
266
|
pt?: MantineSize8 | number;
|
251
267
|
componentsProps?: {
|
252
268
|
container?: ContainerProps2
|
253
269
|
};
|
254
270
|
}
|
255
|
-
declare function PageContainer({ children, pt, componentsProps }: PropsWithChildren10<PageContainerProps>):
|
256
|
-
import { PropsWithChildren as PropsWithChildren11, ReactNode as
|
271
|
+
declare function PageContainer({ children, pt, componentsProps }: PropsWithChildren10<PageContainerProps>): ReactNode17;
|
272
|
+
import { PropsWithChildren as PropsWithChildren11, ReactNode as ReactNode18 } from "react";
|
257
273
|
import { PageProps as PageProps2 } from "..";
|
258
274
|
interface NotFoundPageProps {
|
259
275
|
message?: string;
|
@@ -261,9 +277,9 @@ interface NotFoundPageProps {
|
|
261
277
|
page?: PageProps2
|
262
278
|
};
|
263
279
|
}
|
264
|
-
declare function NotFoundPage({ children, message, componentsProps }: PropsWithChildren11<NotFoundPageProps>):
|
280
|
+
declare function NotFoundPage({ children, message, componentsProps }: PropsWithChildren11<NotFoundPageProps>): ReactNode18;
|
265
281
|
import { ContainerProps as ContainerProps3, MantineSize as MantineSize9 } from "@mantine/core";
|
266
|
-
import { PropsWithChildren as PropsWithChildren12, ReactNode as
|
282
|
+
import { PropsWithChildren as PropsWithChildren12, ReactNode as ReactNode19 } from "react";
|
267
283
|
interface EnvironmentShellProps {
|
268
284
|
environment: Record<string, string | undefined>;
|
269
285
|
message?: string;
|
@@ -274,5 +290,5 @@ interface EnvironmentShellProps {
|
|
274
290
|
container?: ContainerProps3
|
275
291
|
};
|
276
292
|
}
|
277
|
-
declare function EnvironmentShell({ children, environment, message, m, mt, withContainer, componentsProps }: PropsWithChildren12<EnvironmentShellProps>):
|
278
|
-
export { userExperienceCookieName, useWidgets, useRemoraidUserExperience, useRemoraidTheme, defaultUserExperience, defaultNavbarSettings, createRemoraidTheme, WidgetsProviderProps, WidgetWrapperProps, WidgetWrapper, WidgetSelectionHeaderProps, WidgetSelectionHeader, WidgetProps, WidgetConfiguration, Widget, UserExperienceProviderProps, UserExperience, ThemeProviderProps, ResponsiveButtonProps, ResponsiveButton, RemoraidThemeCallback, RemoraidTheme, RemoraidProviderProps, RemoraidProvider, PartialRemoraidTheme, PageProps, PageContainerProps, PageContainer, PageConfiguration, Page, NotFoundPageProps, NotFoundPage, NavbarVariant, NavbarSettings, NavbarProps, NavbarLink, EnvironmentShellProps, EnvironmentShell, CloseButtonProps, CloseButton, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellLogo, AppShell, AlertMinimalProps, AlertMinimal, AlertCategory };
|
293
|
+
declare function EnvironmentShell({ children, environment, message, m, mt, withContainer, componentsProps }: PropsWithChildren12<EnvironmentShellProps>): ReactNode19;
|
294
|
+
export { userExperienceCookieName, useWidgets, useRemoraidUserExperience, useRemoraidTheme, defaultUserExperience, defaultNavbarSettings, createRemoraidTheme, WidgetsProviderProps, WidgetWrapperProps, WidgetWrapper, WidgetSelectionHeaderProps, WidgetSelectionHeader, WidgetProps, WidgetConfiguration, Widget, UserExperienceProviderProps, UserExperience, TransitionDuration, ThemeProviderProps, ResponsiveButtonSize, ResponsiveButtonProps, ResponsiveButton, RemoraidThemeCallback, RemoraidTheme, RemoraidProviderProps, RemoraidProvider, RemoraidIconSize, RemoraidButtonProps, RemoraidBreakpoint, PartialRemoraidTheme, PageProps, PageContainerProps, PageContainer, PageConfiguration, Page, NotFoundPageProps, NotFoundPage, NavbarVariant, NavbarSettings, NavbarProps, NavbarLink, EnvironmentShellProps, EnvironmentShell, CloseButtonProps, CloseButton, ButtonProps, Button2 as Button, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellLogo, AppShell, AlertMinimalProps, AlertMinimal, AlertCategory };
|