dce-reactkit 3.7.1-beta.2 → 3.7.2-beta.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/esm/index.js CHANGED
@@ -3,7 +3,6 @@ import React__default, { useState, useRef, useEffect, useReducer, forwardRef, us
3
3
  import { faExclamationTriangle, faHourglassEnd, faCircle, faDotCircle, faCheckSquare, faHourglass, faClipboard, faChevronDown, faChevronRight, faCloudDownloadAlt, faMinus, faCheckCircle, faXmarkCircle, faSort, faSortDown, faSortUp, faCalendar, faTag, faHammer, faList, faTimes, faSave, faTrash, faCog, faPlus } from '@fortawesome/free-solid-svg-icons';
4
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
5
  import { faCircle as faCircle$1, faSquareMinus, faSquare } from '@fortawesome/free-regular-svg-icons';
6
- import { Tooltip as Tooltip$1 } from 'bootstrap';
7
6
 
8
7
  /******************************************************************************
9
8
  Copyright (c) Microsoft Corporation.
@@ -40574,15 +40573,24 @@ const Tooltip = (props) => {
40574
40573
  if (!childRef.current) {
40575
40574
  return;
40576
40575
  }
40576
+ // Store copy of tooltip
40577
+ let t;
40577
40578
  // Initialize tooltip
40578
- const t = new Tooltip$1(childRef.current, {
40579
- title: text,
40580
- placement: 'top',
40581
- trigger: 'hover',
40582
- });
40579
+ (() => __awaiter(void 0, void 0, void 0, function* () {
40580
+ // Import bootstrap tooltip
40581
+ const BSTooltip = (yield import('bootstrap')).Tooltip;
40582
+ // Initialize
40583
+ t = new BSTooltip(childRef.current, {
40584
+ title: text,
40585
+ placement: 'top',
40586
+ trigger: 'hover',
40587
+ });
40588
+ }))();
40583
40589
  // Clean up tooltip
40584
40590
  return () => {
40585
- t.dispose();
40591
+ if (t) {
40592
+ t.dispose();
40593
+ }
40586
40594
  };
40587
40595
  }, [text]);
40588
40596
  /*------------------------------------------------------------------------*/