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.
Files changed (34) hide show
  1. package/dist/cjs/index.js +355 -298
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/client/initClient.d.ts +7 -0
  4. package/dist/cjs/types/components/AppWrapper.d.ts +0 -1
  5. package/dist/cjs/types/helpers/makeLinksClickable.d.ts +4 -2
  6. package/dist/esm/index.js +355 -298
  7. package/dist/esm/index.js.map +1 -1
  8. package/dist/esm/types/client/initClient.d.ts +7 -0
  9. package/dist/esm/types/components/AppWrapper.d.ts +0 -1
  10. package/dist/esm/types/helpers/makeLinksClickable.d.ts +4 -2
  11. package/dist/index.d.ts +5 -3
  12. package/package.json +1 -1
  13. package/src/client/initClient.tsx +20 -4
  14. package/src/components/AppWrapper.tsx +8 -6
  15. package/src/components/ButtonInputGroup.tsx +6 -6
  16. package/src/components/CSVDownloadButton.tsx +6 -6
  17. package/src/components/CheckboxButton.tsx +19 -8
  18. package/src/components/CopiableBox.tsx +8 -8
  19. package/src/components/Drawer.tsx +7 -7
  20. package/src/components/ErrorBox.tsx +5 -5
  21. package/src/components/IntelliTable.tsx +135 -135
  22. package/src/components/ItemPicker/NestableItemList.tsx +7 -7
  23. package/src/components/ItemPicker/index.tsx +7 -7
  24. package/src/components/LoadingSpinner.tsx +4 -4
  25. package/src/components/LogReviewer.tsx +21 -22
  26. package/src/components/Modal.tsx +163 -75
  27. package/src/components/PopFailureMark.tsx +7 -7
  28. package/src/components/PopPendingMark.tsx +7 -7
  29. package/src/components/PopSuccessMark.tsx +7 -7
  30. package/src/components/RadioButton.tsx +17 -8
  31. package/src/components/SimpleDateChooser.tsx +14 -13
  32. package/src/components/TabBox.tsx +7 -7
  33. package/src/helpers/genRouteHandler.ts +45 -41
  34. 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;
@@ -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
@@ -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 default
9
- * and propagation
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;