dce-reactkit 3.5.13 → 3.6.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/cjs/index.js +355 -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 +0 -1
- package/dist/cjs/types/helpers/makeLinksClickable.d.ts +4 -2
- package/dist/esm/index.js +355 -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 +0 -1
- package/dist/esm/types/helpers/makeLinksClickable.d.ts +4 -2
- package/dist/index.d.ts +5 -3
- package/package.json +1 -1
- package/src/client/initClient.tsx +20 -4
- package/src/components/AppWrapper.tsx +8 -6
- 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
- package/src/helpers/makeLinksClickable.tsx +6 -4
|
@@ -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;
|
|
@@ -5,12 +5,14 @@ import React from 'react';
|
|
|
5
5
|
* @param text the text to process
|
|
6
6
|
* @param [opts] options to customize behavior
|
|
7
7
|
* @param [opts.newTab] if true, links will open in a new tab
|
|
8
|
-
* @param [opts.preventPropagation] if true, clicks to link will prevent
|
|
9
|
-
*
|
|
8
|
+
* @param [opts.preventPropagation] if true, clicks to link will prevent
|
|
9
|
+
* propagation
|
|
10
|
+
* @param [opts.inheritColor] if true, inherit text color for links
|
|
10
11
|
* @returns the processed text
|
|
11
12
|
*/
|
|
12
13
|
declare const makeLinksClickable: (text: string, opts?: {
|
|
13
14
|
newTab?: boolean;
|
|
14
15
|
preventPropagation?: boolean;
|
|
16
|
+
inheritColor?: boolean;
|
|
15
17
|
}) => React.ReactNode;
|
|
16
18
|
export default makeLinksClickable;
|