dce-reactkit 3.5.14 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +388 -298
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/client/initClient.d.ts +7 -0
- package/dist/cjs/types/components/AppWrapper.d.ts +2 -3
- package/dist/esm/index.js +388 -298
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/client/initClient.d.ts +7 -0
- package/dist/esm/types/components/AppWrapper.d.ts +2 -3
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/client/initClient.tsx +20 -4
- package/src/components/AppWrapper.tsx +57 -13
- package/src/components/ButtonInputGroup.tsx +6 -6
- package/src/components/CSVDownloadButton.tsx +6 -6
- package/src/components/CheckboxButton.tsx +19 -8
- package/src/components/CopiableBox.tsx +8 -8
- package/src/components/Drawer.tsx +7 -7
- package/src/components/ErrorBox.tsx +5 -5
- package/src/components/IntelliTable.tsx +135 -135
- package/src/components/ItemPicker/NestableItemList.tsx +7 -7
- package/src/components/ItemPicker/index.tsx +7 -7
- package/src/components/LoadingSpinner.tsx +4 -4
- package/src/components/LogReviewer.tsx +21 -22
- package/src/components/Modal.tsx +163 -75
- package/src/components/PopFailureMark.tsx +7 -7
- package/src/components/PopPendingMark.tsx +7 -7
- package/src/components/PopSuccessMark.tsx +7 -7
- package/src/components/RadioButton.tsx +17 -8
- package/src/components/SimpleDateChooser.tsx +14 -13
- package/src/components/TabBox.tsx +7 -7
- package/src/helpers/genRouteHandler.ts +45 -41
|
@@ -32,6 +32,12 @@ declare let sessionExpiredMessage: string | undefined;
|
|
|
32
32
|
* @returns session expired message
|
|
33
33
|
*/
|
|
34
34
|
export declare const getSessionExpiredMessage: () => string;
|
|
35
|
+
declare let darkModeOn: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Get whether dark mode is enabled or not
|
|
38
|
+
* @returns true if dark mode is enabled
|
|
39
|
+
*/
|
|
40
|
+
export declare const isDarkModeOn: () => boolean;
|
|
35
41
|
/**
|
|
36
42
|
* Initialize the client-side version of reactkit
|
|
37
43
|
* @author Gabe Abrams
|
|
@@ -42,5 +48,6 @@ export declare const getSessionExpiredMessage: () => string;
|
|
|
42
48
|
declare const initClient: (opts: {
|
|
43
49
|
sendRequest: SendRequestFunction;
|
|
44
50
|
sessionExpiredMessage?: string;
|
|
51
|
+
darkModeOn?: boolean;
|
|
45
52
|
}) => void;
|
|
46
53
|
export default initClient;
|
|
@@ -7,7 +7,6 @@ import React from 'react';
|
|
|
7
7
|
import Variant from '../types/Variant';
|
|
8
8
|
type Props = {
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
-
dark?: boolean;
|
|
11
10
|
};
|
|
12
11
|
/**
|
|
13
12
|
* Redirect to a new page
|
|
@@ -51,7 +50,7 @@ export declare const confirm: (title: string, text: string, opts?: {
|
|
|
51
50
|
* @param error the error to show
|
|
52
51
|
* @param [errorTitle] title of the error box
|
|
53
52
|
*/
|
|
54
|
-
export declare const showFatalError: (error: any, errorTitle?: string) =>
|
|
53
|
+
export declare const showFatalError: (error: any, errorTitle?: string) => Promise<void>;
|
|
55
54
|
/**
|
|
56
55
|
* Add a handler for when a fatal error occurs
|
|
57
56
|
* @author Gabe Abrams
|
|
@@ -61,6 +60,6 @@ export declare const addFatalErrorHandler: (handler: () => void) => void;
|
|
|
61
60
|
* Show the "session expired" message
|
|
62
61
|
* @author Gabe Abrams
|
|
63
62
|
*/
|
|
64
|
-
export declare const showSessionExpiredMessage: () =>
|
|
63
|
+
export declare const showSessionExpiredMessage: () => void;
|
|
65
64
|
declare const AppWrapper: React.FC<Props>;
|
|
66
65
|
export default AppWrapper;
|