remoraid 2.2.5 → 2.5.6
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 +6102 -356
- package/dist/core/index.d.ts +174 -64
- package/dist/core/index.js +6133 -369
- package/dist/server/index.d.ts +2 -2
- package/package.json +6 -2
package/dist/core/index.d.ts
CHANGED
@@ -1,9 +1,22 @@
|
|
1
|
-
import { PropsWithChildren as
|
1
|
+
import { PropsWithChildren as PropsWithChildren3, ReactNode as ReactNode4 } from "react";
|
2
2
|
import { AlertProps, 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";
|
6
|
-
type
|
6
|
+
type RemoraidUser = {
|
7
|
+
name: string
|
8
|
+
} | null;
|
9
|
+
interface RemoraidAppContext {
|
10
|
+
navigablePages: {
|
11
|
+
label: string
|
12
|
+
href: string
|
13
|
+
icon?: Icon
|
14
|
+
}[];
|
15
|
+
user?: RemoraidUser;
|
16
|
+
}
|
17
|
+
declare enum NavbarVariant {
|
18
|
+
Minimal = "minimal"
|
19
|
+
}
|
7
20
|
interface NavbarSettings {
|
8
21
|
hiddenPages: string[];
|
9
22
|
linkSize: string;
|
@@ -11,15 +24,40 @@ interface NavbarSettings {
|
|
11
24
|
py: MantineSize | number;
|
12
25
|
iconSize?: string | number;
|
13
26
|
}
|
14
|
-
|
27
|
+
type UserExperience = Record<string, any>;
|
28
|
+
interface CoreUserExperience extends UserExperience {
|
15
29
|
navbarVariant: NavbarVariant;
|
16
30
|
navbarSettings: NavbarSettings;
|
17
31
|
showWelcomeMessage: boolean;
|
18
32
|
}
|
19
|
-
type
|
20
|
-
|
21
|
-
|
22
|
-
|
33
|
+
type UserExperienceProviderProps<T extends UserExperience> = {
|
34
|
+
initialValue?: Partial<T>
|
35
|
+
cookieName?: string
|
36
|
+
};
|
37
|
+
interface UserExperienceContext<T extends UserExperience> {
|
38
|
+
userExperience: T;
|
39
|
+
updateUserExperience: (p: T | ((prev: T) => T)) => void;
|
40
|
+
processedCookie: boolean;
|
41
|
+
initialUserExperience: T;
|
42
|
+
}
|
43
|
+
declare enum AlertCategory {
|
44
|
+
Negative = "negative",
|
45
|
+
Neutral = "neutral",
|
46
|
+
Positive = "positive"
|
47
|
+
}
|
48
|
+
declare enum TransitionDuration {
|
49
|
+
Short = "short",
|
50
|
+
Medium = "medium",
|
51
|
+
Long = "long"
|
52
|
+
}
|
53
|
+
declare enum RemoraidBreakpoint {
|
54
|
+
ButtonCollapse = "buttonCollapse",
|
55
|
+
BadgeGroupCollapse = "badgeGroupCollapse"
|
56
|
+
}
|
57
|
+
declare enum RemoraidIconSize {
|
58
|
+
Tiny = "tiny",
|
59
|
+
Medium = "medium"
|
60
|
+
}
|
23
61
|
interface RemoraidTheme {
|
24
62
|
complete: true;
|
25
63
|
transitionDurations: Record<TransitionDuration, number>;
|
@@ -36,14 +74,8 @@ interface RemoraidTheme {
|
|
36
74
|
type RemoraidThemeCallback = (mantineTheme: MantineTheme, colorScheme: MantineColorScheme) => RemoraidTheme;
|
37
75
|
type PartialRemoraidTheme = Omit<Partial<RemoraidTheme>, "complete">;
|
38
76
|
type AppShellLogo = (props: Omit<ImageProps, "src" | "alt">) => ReactNode;
|
39
|
-
interface NavbarLink {
|
40
|
-
icon: Icon;
|
41
|
-
label: string;
|
42
|
-
href: string;
|
43
|
-
}
|
44
77
|
interface NavbarProps {
|
45
|
-
|
46
|
-
settings?: NavbarSettings;
|
78
|
+
settings?: Partial<NavbarSettings>;
|
47
79
|
variant?: NavbarVariant;
|
48
80
|
linkIndicator?: (isHovering: boolean) => IndicatorProps;
|
49
81
|
logoIndicator?: (isHovering: boolean) => IndicatorProps;
|
@@ -60,17 +92,12 @@ interface PageConfiguration {
|
|
60
92
|
name: string;
|
61
93
|
registerPageDirectly?: boolean;
|
62
94
|
}
|
63
|
-
|
64
|
-
|
65
|
-
interface UserExperienceContext {
|
66
|
-
userExperience: UserExperience;
|
67
|
-
updateUserExperience: (p: UserExperience | ((prev: UserExperience) => UserExperience)) => void;
|
68
|
-
processedCookie: boolean;
|
95
|
+
interface SettingsTableOptions {
|
96
|
+
leftColumnWidth: string | number;
|
69
97
|
}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
initialValue?: Partial<UserExperience>;
|
98
|
+
interface SettingsWidgetContext {
|
99
|
+
unsavedChanges?: boolean;
|
100
|
+
custom?: boolean;
|
74
101
|
}
|
75
102
|
interface WidgetsContext {
|
76
103
|
widgets: {
|
@@ -102,41 +129,62 @@ interface ThemeProviderProps {
|
|
102
129
|
import { ReactCookieProps } from "react-cookie";
|
103
130
|
interface RemoraidProviderProps {
|
104
131
|
theme?: RemoraidTheme | RemoraidThemeCallback | PartialRemoraidTheme;
|
105
|
-
initialUserExperience?: Partial<
|
132
|
+
initialUserExperience?: Partial<CoreUserExperience>;
|
106
133
|
componentsProps?: {
|
107
134
|
ThemeProvider?: ThemeProviderProps
|
108
|
-
|
135
|
+
CoreUserExperienceProvider?: UserExperienceProviderProps<CoreUserExperience>
|
109
136
|
WidgetsProvider?: WidgetsProviderProps
|
110
137
|
CookiesProvider?: ReactCookieProps
|
111
138
|
};
|
112
139
|
}
|
113
|
-
declare function RemoraidProvider({ children, theme, initialUserExperience, componentsProps }:
|
114
|
-
import { PropsWithChildren as
|
140
|
+
declare function RemoraidProvider({ children, theme, initialUserExperience, componentsProps }: PropsWithChildren3<RemoraidProviderProps>): ReactNode4;
|
141
|
+
import { PropsWithChildren as PropsWithChildren4, ReactNode as ReactNode5 } from "react";
|
115
142
|
interface AppShellProps {
|
116
143
|
logo: AppShellLogo;
|
144
|
+
navigablePages: RemoraidAppContext["navigablePages"];
|
117
145
|
navbar: NavbarProps;
|
118
|
-
user?:
|
119
|
-
|
120
|
-
|
146
|
+
user?: RemoraidUser;
|
147
|
+
}
|
148
|
+
declare function AppShell({ children, logo, navbar, user, navigablePages }: PropsWithChildren4<AppShellProps>): ReactNode5;
|
149
|
+
import { PropsWithChildren as PropsWithChildren5, ReactNode as ReactNode6 } from "react";
|
150
|
+
declare const defaultAppContext: RemoraidAppContext;
|
151
|
+
declare const useRemoraidApp: () => RemoraidAppContext;
|
152
|
+
interface AppProviderProps {
|
153
|
+
navigablePages: RemoraidAppContext["navigablePages"];
|
154
|
+
user?: RemoraidUser;
|
155
|
+
}
|
156
|
+
declare function AppProvider({ children, navigablePages, user }: PropsWithChildren5<AppProviderProps>): ReactNode6;
|
157
|
+
import { Context, PropsWithChildren as PropsWithChildren6, ReactNode as ReactNode7 } from "react";
|
158
|
+
declare const createUserExperienceContext: <T extends UserExperience>(defaultUserExperience: T) => Context<UserExperienceContext<T>>;
|
159
|
+
interface UserExperienceProviderWrapperProps<T extends UserExperience> {
|
160
|
+
context: Context<UserExperienceContext<T>>;
|
161
|
+
cookieName: string;
|
162
|
+
defaultUserExperience: T;
|
163
|
+
isValidUserExperience: (x: unknown) => x is T;
|
164
|
+
initialValue?: Partial<T>;
|
121
165
|
}
|
122
|
-
declare function
|
166
|
+
declare function UserExperienceProviderWrapper<T extends UserExperience>({ children, context, cookieName, defaultUserExperience, isValidUserExperience, initialValue }: PropsWithChildren6<UserExperienceProviderWrapperProps<T>>): ReactNode7;
|
167
|
+
declare const defaultNavbarSettings: Record<NavbarVariant, NavbarSettings>;
|
168
|
+
declare const defaultUserExperience: CoreUserExperience;
|
169
|
+
declare const defaultUserExperienceCookieName = "remoraid-core-user-experience";
|
170
|
+
declare const useRemoraidUserExperience: () => UserExperienceContext<CoreUserExperience>;
|
123
171
|
import { MantineSize as MantineSize2 } from "@mantine/core";
|
124
|
-
import { ReactNode as
|
172
|
+
import { ReactNode as ReactNode9 } from "react";
|
125
173
|
interface WidgetSelectionHeaderProps {
|
126
174
|
title?: string;
|
127
175
|
disabledWidgets?: string[];
|
128
176
|
mt?: MantineSize2 | number;
|
129
177
|
}
|
130
|
-
declare function WidgetSelectionHeader({ title, disabledWidgets, mt }: WidgetSelectionHeaderProps):
|
131
|
-
import { ReactNode as
|
178
|
+
declare function WidgetSelectionHeader({ title, disabledWidgets, mt }: WidgetSelectionHeaderProps): ReactNode9;
|
179
|
+
import { ReactNode as ReactNode10 } from "react";
|
132
180
|
interface CloseButtonProps {
|
133
181
|
widgetId: string;
|
134
182
|
}
|
135
|
-
declare function
|
183
|
+
declare function CloseButton2({ widgetId }: CloseButtonProps): ReactNode10;
|
136
184
|
import { BadgeProps as BadgeProps2, MantineBreakpoint as MantineBreakpoint2, MantineSize as MantineSize3, TooltipProps as TooltipProps2 } from "@mantine/core";
|
137
|
-
import { ReactNode as
|
185
|
+
import { ReactNode as ReactNode12 } from "react";
|
138
186
|
import { BadgeProps, TooltipProps, TransitionProps } from "@mantine/core";
|
139
|
-
import { ReactNode as
|
187
|
+
import { ReactNode as ReactNode11 } from "react";
|
140
188
|
interface BadgeMinimalProps {
|
141
189
|
label: string;
|
142
190
|
tooltip?: string;
|
@@ -147,9 +195,9 @@ interface BadgeMinimalProps {
|
|
147
195
|
tooltip?: TooltipProps
|
148
196
|
};
|
149
197
|
}
|
150
|
-
declare function BadgeMinimal(props: BadgeMinimalProps):
|
198
|
+
declare function BadgeMinimal(props: BadgeMinimalProps): ReactNode11;
|
151
199
|
interface BadgeGroupProps {
|
152
|
-
badges: (BadgeMinimalProps |
|
200
|
+
badges: (BadgeMinimalProps | ReactNode12)[];
|
153
201
|
gap?: MantineSize3 | number;
|
154
202
|
breakpoint?: MantineBreakpoint2;
|
155
203
|
componentsProps?: {
|
@@ -157,9 +205,9 @@ interface BadgeGroupProps {
|
|
157
205
|
cumulativeBadge?: Partial<Omit<BadgeProps2, "hiddenFrom" | "circle">>
|
158
206
|
};
|
159
207
|
}
|
160
|
-
declare function BadgeGroup({ badges, gap, breakpoint, componentsProps }: BadgeGroupProps):
|
208
|
+
declare function BadgeGroup({ badges, gap, breakpoint, componentsProps }: BadgeGroupProps): ReactNode12;
|
161
209
|
import { AlertProps as AlertProps2, MantineSize as MantineSize4, TransitionProps as TransitionProps2 } from "@mantine/core";
|
162
|
-
import { PropsWithChildren as
|
210
|
+
import { PropsWithChildren as PropsWithChildren8, ReactNode as ReactNode13 } from "react";
|
163
211
|
interface AlertMinimalProps {
|
164
212
|
category: AlertCategory;
|
165
213
|
title?: string;
|
@@ -173,14 +221,19 @@ interface AlertMinimalProps {
|
|
173
221
|
transition?: Omit<TransitionProps2, "mounted">
|
174
222
|
};
|
175
223
|
}
|
176
|
-
declare function AlertMinimal({ children, title, category, text, onClose, mounted, mt, mb, componentsProps }:
|
224
|
+
declare function AlertMinimal({ children, title, category, text, onClose, mounted, mt, mb, componentsProps }: PropsWithChildren8<AlertMinimalProps>): ReactNode13;
|
177
225
|
import { ActionIconProps, ActionIconVariant, ButtonProps, ButtonVariant, MantineBreakpoint as MantineBreakpoint3, MantineColor, MantineSize as MantineSize5, TooltipProps as TooltipProps3 } from "@mantine/core";
|
178
226
|
import { Icon as Icon2, IconProps as IconProps2 } from "@tabler/icons-react";
|
179
|
-
import { ReactNode as
|
227
|
+
import { ReactNode as ReactNode14 } from "react";
|
228
|
+
import { ReactElement } from "react";
|
180
229
|
type Common<
|
181
230
|
A,
|
182
231
|
B
|
183
232
|
> = Pick<A & B, keyof A & keyof B>;
|
233
|
+
type OnlyChildrenOf<
|
234
|
+
T extends (...args: any) => any,
|
235
|
+
P = any
|
236
|
+
> = ReactElement<P, T> | ReactElement<P, T>[];
|
184
237
|
interface RemoraidButtonProps {
|
185
238
|
label: string;
|
186
239
|
responsive?: boolean;
|
@@ -192,7 +245,7 @@ interface RemoraidButtonProps {
|
|
192
245
|
onClick?: () => void;
|
193
246
|
loading?: boolean;
|
194
247
|
variant?: Extract<ButtonVariant, ActionIconVariant>;
|
195
|
-
componentsProps
|
248
|
+
componentsProps?: {
|
196
249
|
tooltip?: Partial<TooltipProps3>
|
197
250
|
icon?: Partial<IconProps2>
|
198
251
|
button: Omit<Partial<Common<ButtonProps, ActionIconProps>>, "variant" | "onClick" | "size" | "color" | "loading">
|
@@ -200,9 +253,9 @@ interface RemoraidButtonProps {
|
|
200
253
|
ActionIcon?: Partial<ActionIconProps>
|
201
254
|
};
|
202
255
|
}
|
203
|
-
declare function RemoraidButton({ label, responsive, breakpoint, collapsed, size, color, onClick, loading, variant, componentsProps,...props }: RemoraidButtonProps):
|
256
|
+
declare function RemoraidButton({ label, responsive, breakpoint, collapsed, size, color, onClick, loading, variant, componentsProps,...props }: RemoraidButtonProps): ReactNode14;
|
204
257
|
import { MantineSize as MantineSize6, PaperProps, TransitionProps as TransitionProps3 } from "@mantine/core";
|
205
|
-
import { PropsWithChildren as
|
258
|
+
import { PropsWithChildren as PropsWithChildren9, ReactNode as ReactNode15 } from "react";
|
206
259
|
interface WidgetWrapperComponentsProps {
|
207
260
|
container?: Partial<PaperProps>;
|
208
261
|
transition?: Partial<Omit<TransitionProps3, "mounted">>;
|
@@ -213,9 +266,13 @@ interface WidgetWrapperProps {
|
|
213
266
|
withCloseButton?: boolean;
|
214
267
|
componentsProps?: WidgetWrapperComponentsProps;
|
215
268
|
}
|
216
|
-
declare function WidgetWrapper({ children, config, mt, withCloseButton, componentsProps }:
|
269
|
+
declare function WidgetWrapper({ children, config, mt, withCloseButton, componentsProps }: PropsWithChildren9<WidgetWrapperProps>): ReactNode15;
|
270
|
+
interface WidgetWrapper extends React.FC<PropsWithChildren9<WidgetWrapperProps>> {
|
271
|
+
CloseButton: typeof CloseButton2;
|
272
|
+
}
|
273
|
+
declare const _default: WidgetWrapper;
|
217
274
|
import { MantineSize as MantineSize7, LoaderProps } from "@mantine/core";
|
218
|
-
import { PropsWithChildren as
|
275
|
+
import { PropsWithChildren as PropsWithChildren10, ReactNode as ReactNode16 } from "react";
|
219
276
|
interface WidgetComponentsProps extends WidgetWrapperComponentsProps {
|
220
277
|
wrapper?: Partial<Omit<WidgetWrapperProps, "widgetId">>;
|
221
278
|
loader?: Partial<LoaderProps>;
|
@@ -225,9 +282,9 @@ interface WidgetProps {
|
|
225
282
|
id: string;
|
226
283
|
title: string;
|
227
284
|
config?: Partial<Omit<WidgetConfiguration, "widgetId">>;
|
228
|
-
badges?: (BadgeMinimalProps |
|
229
|
-
buttons?: (RemoraidButtonProps |
|
230
|
-
alerts?: (AlertMinimalProps |
|
285
|
+
badges?: (BadgeMinimalProps | ReactNode16)[];
|
286
|
+
buttons?: (RemoraidButtonProps | ReactNode16)[];
|
287
|
+
alerts?: (AlertMinimalProps | ReactNode16)[];
|
231
288
|
gaps?: MantineSize7 | number | {
|
232
289
|
badges?: MantineSize7 | number
|
233
290
|
buttons?: MantineSize7 | number
|
@@ -237,9 +294,9 @@ interface WidgetProps {
|
|
237
294
|
mt?: MantineSize7 | number;
|
238
295
|
componentsProps?: WidgetComponentsProps;
|
239
296
|
}
|
240
|
-
declare function Widget({ children, id, config, title, badges, buttons, alerts, gaps, loading, mt, componentsProps }:
|
297
|
+
declare function Widget({ children, id, config, title, badges, buttons, alerts, gaps, loading, mt, componentsProps }: PropsWithChildren10<WidgetProps>): ReactNode16;
|
241
298
|
import { ContainerProps, MantineSize as MantineSize8 } from "@mantine/core";
|
242
|
-
import { PropsWithChildren as
|
299
|
+
import { PropsWithChildren as PropsWithChildren11, ReactNode as ReactNode17 } from "react";
|
243
300
|
interface PageProps {
|
244
301
|
name?: string;
|
245
302
|
config?: Partial<Omit<PageConfiguration, "name">>;
|
@@ -248,27 +305,26 @@ interface PageProps {
|
|
248
305
|
container?: ContainerProps
|
249
306
|
};
|
250
307
|
}
|
251
|
-
declare function Page({ children, name, config, pt, componentsProps }:
|
308
|
+
declare function Page({ children, name, config, pt, componentsProps }: PropsWithChildren11<PageProps>): ReactNode17;
|
252
309
|
import { ContainerProps as ContainerProps2, MantineSize as MantineSize9 } from "@mantine/core";
|
253
|
-
import { PropsWithChildren as
|
310
|
+
import { PropsWithChildren as PropsWithChildren12, ReactNode as ReactNode18 } from "react";
|
254
311
|
interface PageContainerProps {
|
255
312
|
pt?: MantineSize9 | number;
|
256
313
|
componentsProps?: {
|
257
314
|
container?: ContainerProps2
|
258
315
|
};
|
259
316
|
}
|
260
|
-
declare function PageContainer({ children, pt, componentsProps }:
|
261
|
-
import { PropsWithChildren as
|
262
|
-
import { PageProps as PageProps2 } from "..";
|
317
|
+
declare function PageContainer({ children, pt, componentsProps }: PropsWithChildren12<PageContainerProps>): ReactNode18;
|
318
|
+
import { PropsWithChildren as PropsWithChildren13, ReactNode as ReactNode19 } from "react";
|
263
319
|
interface NotFoundPageProps {
|
264
320
|
message?: string;
|
265
321
|
componentsProps?: {
|
266
|
-
page?:
|
322
|
+
page?: PageProps
|
267
323
|
};
|
268
324
|
}
|
269
|
-
declare function NotFoundPage({ children, message, componentsProps }:
|
325
|
+
declare function NotFoundPage({ children, message, componentsProps }: PropsWithChildren13<NotFoundPageProps>): ReactNode19;
|
270
326
|
import { ContainerProps as ContainerProps3, MantineSize as MantineSize10 } from "@mantine/core";
|
271
|
-
import { PropsWithChildren as
|
327
|
+
import { PropsWithChildren as PropsWithChildren14, ReactNode as ReactNode20 } from "react";
|
272
328
|
interface EnvironmentShellProps {
|
273
329
|
environment: Record<string, string | undefined>;
|
274
330
|
message?: string;
|
@@ -279,5 +335,59 @@ interface EnvironmentShellProps {
|
|
279
335
|
container?: ContainerProps3
|
280
336
|
};
|
281
337
|
}
|
282
|
-
declare function EnvironmentShell({ children, environment, message, m, mt, withContainer, componentsProps }:
|
283
|
-
|
338
|
+
declare function EnvironmentShell({ children, environment, message, m, mt, withContainer, componentsProps }: PropsWithChildren14<EnvironmentShellProps>): ReactNode20;
|
339
|
+
import { PropsWithChildren as PropsWithChildren15, ReactNode as ReactNode22 } from "react";
|
340
|
+
import { ReactNode as ReactNode21 } from "react";
|
341
|
+
import { GroupProps } from "@mantine/core";
|
342
|
+
interface SettingsWidgetSaveButtonProps {
|
343
|
+
onSaveChanges: () => void;
|
344
|
+
insideContainer?: boolean;
|
345
|
+
componentsProps?: {
|
346
|
+
container?: Partial<GroupProps>
|
347
|
+
button?: Partial<RemoraidButtonProps>
|
348
|
+
};
|
349
|
+
}
|
350
|
+
declare function SaveButton2({ onSaveChanges, insideContainer, componentsProps }: SettingsWidgetSaveButtonProps): ReactNode21;
|
351
|
+
declare const defaultSettingsWidgetContext: {};
|
352
|
+
declare const useSettingsWidgetContext: () => SettingsWidgetContext;
|
353
|
+
interface SettingsWidgetProps {
|
354
|
+
onRestoreDefaultValues?: () => void;
|
355
|
+
unsavedChanges?: boolean;
|
356
|
+
custom?: boolean;
|
357
|
+
widgetProps?: Partial<WidgetProps>;
|
358
|
+
}
|
359
|
+
declare function SettingsWidget({ children, onRestoreDefaultValues, unsavedChanges, custom, widgetProps }: PropsWithChildren15<SettingsWidgetProps>): ReactNode22;
|
360
|
+
interface SettingsWidget extends React.FC<PropsWithChildren15<SettingsWidgetProps>> {
|
361
|
+
SaveButton: typeof SaveButton2;
|
362
|
+
}
|
363
|
+
declare const _default2: SettingsWidget;
|
364
|
+
import { ReactNode as ReactNode24 } from "react";
|
365
|
+
import { PropsWithChildren as PropsWithChildren16, ReactNode as ReactNode23 } from "react";
|
366
|
+
interface SettingsTableRowProps {
|
367
|
+
label: string;
|
368
|
+
}
|
369
|
+
declare function Row2({ children, label }: PropsWithChildren16<SettingsTableRowProps>): ReactNode23;
|
370
|
+
declare const defaultSettingsTableOptions: {
|
371
|
+
leftColumnWidth: string
|
372
|
+
};
|
373
|
+
declare const useSettingsTableOptions: () => SettingsTableOptions;
|
374
|
+
interface SettingsTableProps {
|
375
|
+
children: OnlyChildrenOf<typeof Row2, SettingsTableRowProps>;
|
376
|
+
leftColumnWidth?: string | number;
|
377
|
+
}
|
378
|
+
declare function SettingsTable({ children, leftColumnWidth }: SettingsTableProps): ReactNode24;
|
379
|
+
interface SettingsTable extends React.FC<SettingsTableProps> {
|
380
|
+
Row: typeof Row2;
|
381
|
+
}
|
382
|
+
declare const _default3: SettingsTable;
|
383
|
+
import { ReactElement as ReactElement2, ReactNode as ReactNode25 } from "react";
|
384
|
+
declare const defaultNavbarSettingsWidgetId = "navbar-settings";
|
385
|
+
interface NavbarSettingsWidgetProps {
|
386
|
+
additionalRows?: ReactElement2<SettingsTableRowProps, typeof _default3.Row>[];
|
387
|
+
widgetProps?: Partial<WidgetProps>;
|
388
|
+
componentsProps?: {
|
389
|
+
table: Partial<Omit<SettingsTableProps, "children">>
|
390
|
+
};
|
391
|
+
}
|
392
|
+
declare function NavbarSettingsWidget({ additionalRows, widgetProps, componentsProps }: NavbarSettingsWidgetProps): ReactNode25;
|
393
|
+
export { useWidgets, useSettingsWidgetContext as useSettingsWidgetOptions, useSettingsTableOptions, useRemoraidUserExperience, useRemoraidTheme, useRemoraidApp, defaultUserExperienceCookieName, defaultUserExperience, defaultSettingsWidgetContext as defaultSettingsWidgetOptions, defaultSettingsTableOptions, defaultNavbarSettingsWidgetId, defaultNavbarSettings, defaultAppContext, createUserExperienceContext, createRemoraidTheme, WidgetsProviderProps, WidgetWrapperProps, _default as WidgetWrapper, WidgetSelectionHeaderProps, WidgetSelectionHeader, WidgetProps, WidgetConfiguration, Widget, UserExperienceProviderWrapperProps, UserExperienceProviderWrapper, UserExperienceProviderProps, UserExperienceContext, UserExperience, TransitionDuration, ThemeProviderProps, SettingsWidgetSaveButtonProps, SettingsWidgetProps, SettingsWidgetContext, _default2 as SettingsWidget, SettingsTableRowProps, SettingsTableOptions, _default3 as SettingsTable, RemoraidUser, RemoraidThemeCallback, RemoraidTheme, RemoraidProviderProps, RemoraidProvider, RemoraidIconSize, RemoraidButtonProps, RemoraidButton, RemoraidBreakpoint, RemoraidAppContext, PartialRemoraidTheme, PageProps, PageContainerProps, PageContainer, PageConfiguration, Page, NotFoundPageProps, NotFoundPage, NavbarVariant, NavbarSettingsWidgetProps, NavbarSettingsWidget, NavbarSettings, NavbarProps, EnvironmentShellProps, EnvironmentShell, CoreUserExperience, CloseButtonProps, BadgeMinimalProps, BadgeMinimal, BadgeGroupProps, BadgeGroup, AppShellProps, AppShellLogo, AppShell, AppProvider, AlertMinimalProps, AlertMinimal, AlertCategory };
|