dce-reactkit 3.6.7 → 3.6.8

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.
@@ -10,6 +10,7 @@ type Props = {
10
10
  children: React.ReactNode;
11
11
  wide?: boolean;
12
12
  thin?: boolean;
13
+ containerIsDisplayBlock?: boolean;
13
14
  };
14
15
  declare const Tooltip: React.FC<Props>;
15
16
  export default Tooltip;
package/dist/esm/index.js CHANGED
@@ -40490,7 +40490,6 @@ const TOOLTIP_BORDER_RADIUS_REM = 0.3;
40490
40490
  const style$1 = `
40491
40491
  /* Container for contents and tooltip */
40492
40492
  .Tooltip-outer-container {
40493
- display: inline-block;
40494
40493
  position: relative;
40495
40494
  }
40496
40495
 
@@ -40707,7 +40706,7 @@ const Tooltip = (props) => {
40707
40706
  /*------------------------------------------------------------------------*/
40708
40707
  /* -------------- Props ------------- */
40709
40708
  // Destructure all props
40710
- const { icon, text, children, wide, thin, } = props;
40709
+ const { icon, text, children, wide, thin, containerIsDisplayBlock, } = props;
40711
40710
  /* -------------- State ------------- */
40712
40711
  // Initial state
40713
40712
  const initialState = {
@@ -40794,7 +40793,7 @@ const Tooltip = (props) => {
40794
40793
  size = 'thin';
40795
40794
  }
40796
40795
  // Render
40797
- return (React__default.createElement("div", { className: "Tooltip-outer-container", "aria-label": text, onMouseEnter: () => {
40796
+ return (React__default.createElement("div", { className: `Tooltip-outer-container ${containerIsDisplayBlock ? 'd-block' : 'd-inline-block'}}`, "aria-label": text, onMouseEnter: () => {
40798
40797
  dispatch({
40799
40798
  type: ActionType$1.Show,
40800
40799
  });