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.
- package/dist/cjs/index.js +2 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Tooltip.d.ts +1 -0
- package/dist/esm/index.js +2 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Tooltip.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Tooltip.tsx +4 -2
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:
|
|
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
|
});
|