dce-reactkit 3.11.0 → 3.11.1-beta.tooltip.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.
@@ -19,12 +19,6 @@ type SendRequestFunction = (opts: {
19
19
  [x: string]: any;
20
20
  };
21
21
  }>;
22
- declare let noServer: boolean;
23
- /**
24
- * Check if there is no server for this app
25
- * @author Gabe Abrams
26
- */
27
- export declare const appHasNoServer: () => boolean;
28
22
  /**
29
23
  * Get the send request function
30
24
  * @author Gabe Abrams
@@ -50,18 +44,10 @@ export declare const isDarkModeOn: () => boolean;
50
44
  * @param opts object containing all arguments
51
45
  * @param opts.sendRequest caccl send request functions
52
46
  * @param [opts.sessionExpiredMessage] a custom session expired message
53
- * @param [opts.darkModeOn] if true, dark mode is enabled
54
- * @param [opts.noServer] if true, there is no server for this app
55
47
  */
56
- declare const initClient: (opts: ({
48
+ declare const initClient: (opts: {
57
49
  sendRequest: SendRequestFunction;
58
50
  sessionExpiredMessage?: string;
59
51
  darkModeOn?: boolean;
60
- noServer?: false;
61
- } | {
62
- darkModeOn?: boolean;
63
- noServer: true;
64
- sendRequest?: undefined;
65
- sessionExpiredMessage?: undefined;
66
- })) => void;
52
+ }) => void;
67
53
  export default initClient;
@@ -2,5 +2,5 @@
2
2
  * Universal stylesheet
3
3
  * @author Gabe Abrams
4
4
  */
5
- declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n\n/* Tooltip White Text */\n.tooltip .tooltip-inner {\n color: white !important;\n}\n";
5
+ declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n";
6
6
  export default shared;
package/dist/esm/index.js CHANGED
@@ -289,23 +289,11 @@ const isDarkModeOn = () => {
289
289
  * @param opts object containing all arguments
290
290
  * @param opts.sendRequest caccl send request functions
291
291
  * @param [opts.sessionExpiredMessage] a custom session expired message
292
- * @param [opts.darkModeOn] if true, dark mode is enabled
293
- * @param [opts.noServer] if true, there is no server for this app
294
292
  */
295
293
  const initClient = (opts) => {
296
- // Handle separately if there is no server
297
- if (opts.noServer) {
298
- // Store values
299
- storedSendRequest = () => __awaiter(void 0, void 0, void 0, function* () {
300
- throw new Error('Cannot send requests because there is no server');
301
- });
302
- }
303
- else {
304
- // Store values
305
- storedSendRequest = opts.sendRequest;
306
- sessionExpiredMessage = opts.sessionExpiredMessage;
307
- }
308
- // Handle universal parts
294
+ // Store values
295
+ storedSendRequest = opts.sendRequest;
296
+ sessionExpiredMessage = opts.sessionExpiredMessage;
309
297
  darkModeOn = !!opts.darkModeOn;
310
298
  // Mark as initialized
311
299
  onInitialized(null);
@@ -769,7 +757,6 @@ const _setStubResponse = (opts) => {
769
757
  */
770
758
  const visitServerEndpoint = (opts) => __awaiter(void 0, void 0, void 0, function* () {
771
759
  var _a, _b, _c;
772
- // Set default method
773
760
  const method = ((_a = opts.method) !== null && _a !== void 0 ? _a : 'GET');
774
761
  // Handle stubs
775
762
  const stubResponse = (_b = stubResponses[method]) === null || _b === void 0 ? void 0 : _b[opts.path];
@@ -922,11 +909,6 @@ const shared = `
922
909
  .tooltip {
923
910
  z-index: 9000000000 !important;
924
911
  }
925
-
926
- /* Tooltip White Text */
927
- .tooltip .tooltip-inner {
928
- color: white !important;
929
- }
930
912
  `;
931
913
 
932
914
  /**
@@ -1447,7 +1429,7 @@ const AppWrapper = (props) => {
1447
1429
  ? `
1448
1430
  .tooltip-inner {
1449
1431
  background-color: white;
1450
- color: black;
1432
+ color: black !important;
1451
1433
  border: 0.1rem solid black;
1452
1434
  pointer-events: none;
1453
1435
  }
@@ -1460,7 +1442,7 @@ const AppWrapper = (props) => {
1460
1442
  : `
1461
1443
  .tooltip-inner {
1462
1444
  background-color: black;
1463
- color: white;
1445
+ color: white !important;
1464
1446
  border: 0.1rem solid white;
1465
1447
  pointer-events: none;
1466
1448
  }
@@ -1701,7 +1683,6 @@ const RadioButton = (props) => {
1701
1683
  useComplexFormatting
1702
1684
  ? (React__default.createElement("pre", { className: "ps-1 text-start text-break", style: {
1703
1685
  whiteSpace: 'pre-wrap',
1704
- tabSize: 2,
1705
1686
  } }, text))
1706
1687
  : (React__default.createElement("div", { className: "flex-grow-1 text-start text-break" }, text)))));
1707
1688
  };
@@ -1749,7 +1730,6 @@ const CheckboxButton = (props) => {
1749
1730
  useComplexFormatting
1750
1731
  ? (React__default.createElement("pre", { className: "ps-1 text-start text-break", style: {
1751
1732
  whiteSpace: 'pre-wrap',
1752
- tabSize: 2,
1753
1733
  } }, text))
1754
1734
  : (React__default.createElement("div", { className: "flex-grow-1 text-start text-break" }, text)))));
1755
1735
  };