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.
package/dist/cjs/index.js CHANGED
@@ -317,23 +317,11 @@ const isDarkModeOn = () => {
317
317
  * @param opts object containing all arguments
318
318
  * @param opts.sendRequest caccl send request functions
319
319
  * @param [opts.sessionExpiredMessage] a custom session expired message
320
- * @param [opts.darkModeOn] if true, dark mode is enabled
321
- * @param [opts.noServer] if true, there is no server for this app
322
320
  */
323
321
  const initClient = (opts) => {
324
- // Handle separately if there is no server
325
- if (opts.noServer) {
326
- // Store values
327
- storedSendRequest = () => __awaiter(void 0, void 0, void 0, function* () {
328
- throw new Error('Cannot send requests because there is no server');
329
- });
330
- }
331
- else {
332
- // Store values
333
- storedSendRequest = opts.sendRequest;
334
- sessionExpiredMessage = opts.sessionExpiredMessage;
335
- }
336
- // Handle universal parts
322
+ // Store values
323
+ storedSendRequest = opts.sendRequest;
324
+ sessionExpiredMessage = opts.sessionExpiredMessage;
337
325
  darkModeOn = !!opts.darkModeOn;
338
326
  // Mark as initialized
339
327
  onInitialized(null);
@@ -797,7 +785,6 @@ const _setStubResponse = (opts) => {
797
785
  */
798
786
  const visitServerEndpoint = (opts) => __awaiter(void 0, void 0, void 0, function* () {
799
787
  var _a, _b, _c;
800
- // Set default method
801
788
  const method = ((_a = opts.method) !== null && _a !== void 0 ? _a : 'GET');
802
789
  // Handle stubs
803
790
  const stubResponse = (_b = stubResponses[method]) === null || _b === void 0 ? void 0 : _b[opts.path];
@@ -950,11 +937,6 @@ const shared = `
950
937
  .tooltip {
951
938
  z-index: 9000000000 !important;
952
939
  }
953
-
954
- /* Tooltip White Text */
955
- .tooltip .tooltip-inner {
956
- color: white !important;
957
- }
958
940
  `;
959
941
 
960
942
  /**
@@ -1475,7 +1457,7 @@ const AppWrapper = (props) => {
1475
1457
  ? `
1476
1458
  .tooltip-inner {
1477
1459
  background-color: white;
1478
- color: black;
1460
+ color: black !important;
1479
1461
  border: 0.1rem solid black;
1480
1462
  pointer-events: none;
1481
1463
  }
@@ -1488,7 +1470,7 @@ const AppWrapper = (props) => {
1488
1470
  : `
1489
1471
  .tooltip-inner {
1490
1472
  background-color: black;
1491
- color: white;
1473
+ color: white !important;
1492
1474
  border: 0.1rem solid white;
1493
1475
  pointer-events: none;
1494
1476
  }
@@ -1729,7 +1711,6 @@ const RadioButton = (props) => {
1729
1711
  useComplexFormatting
1730
1712
  ? (React__default["default"].createElement("pre", { className: "ps-1 text-start text-break", style: {
1731
1713
  whiteSpace: 'pre-wrap',
1732
- tabSize: 2,
1733
1714
  } }, text))
1734
1715
  : (React__default["default"].createElement("div", { className: "flex-grow-1 text-start text-break" }, text)))));
1735
1716
  };
@@ -1777,7 +1758,6 @@ const CheckboxButton = (props) => {
1777
1758
  useComplexFormatting
1778
1759
  ? (React__default["default"].createElement("pre", { className: "ps-1 text-start text-break", style: {
1779
1760
  whiteSpace: 'pre-wrap',
1780
- tabSize: 2,
1781
1761
  } }, text))
1782
1762
  : (React__default["default"].createElement("div", { className: "flex-grow-1 text-start text-break" }, text)))));
1783
1763
  };