@rescui/tooltip 0.8.15-RUI-226-Update-card-cn-4218d3f2.76 → 0.8.15-RUI-226-Update-card-cn-9ae48d69.79
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/lib/index.css +23 -23
- package/lib/tooltip.js +88 -87
- package/lib/tooltip.p.module.css.js +7 -7
- package/lib/use-tooltip-state.d.ts +3 -2
- package/lib/use-tooltip-state.js +21 -41
- package/package.json +10 -10
package/lib/index.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tooltip_13cfp0j_5{
|
|
2
2
|
position:relative;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
._closing_13cfp0j_9{
|
|
5
5
|
pointer-events:none;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
._content_13cfp0j_13{
|
|
8
8
|
--rs-theme-dark:1;
|
|
9
9
|
--_rs-tooltip-border-width:1px;
|
|
10
10
|
|
|
@@ -75,33 +75,33 @@
|
|
|
75
75
|
transition:opacity 300ms, transform 300ms;
|
|
76
76
|
transform:translate(0, 0);
|
|
77
77
|
}
|
|
78
|
-
[data-
|
|
79
|
-
[data-
|
|
78
|
+
[data-popper-placement='top-end'] ._content_13cfp0j_13,
|
|
79
|
+
[data-popper-placement='bottom-end'] ._content_13cfp0j_13{
|
|
80
80
|
margin-right:0;
|
|
81
81
|
}
|
|
82
|
-
[data-
|
|
83
|
-
[data-
|
|
82
|
+
[data-popper-placement='top-start'] ._content_13cfp0j_13,
|
|
83
|
+
[data-popper-placement='bottom-start'] ._content_13cfp0j_13{
|
|
84
84
|
margin-left:0;
|
|
85
85
|
}
|
|
86
|
-
[data-
|
|
87
|
-
[data-
|
|
86
|
+
[data-popper-placement='left-end'] ._content_13cfp0j_13,
|
|
87
|
+
[data-popper-placement='right-end'] ._content_13cfp0j_13{
|
|
88
88
|
margin-bottom:0;
|
|
89
89
|
}
|
|
90
|
-
[data-
|
|
91
|
-
[data-
|
|
90
|
+
[data-popper-placement='left-start'] ._content_13cfp0j_13,
|
|
91
|
+
[data-popper-placement='right-start'] ._content_13cfp0j_13{
|
|
92
92
|
margin-top:0;
|
|
93
93
|
}
|
|
94
|
-
.
|
|
94
|
+
._initial_13cfp0j_54 ._content_13cfp0j_13{
|
|
95
95
|
transition:none;
|
|
96
96
|
}
|
|
97
|
-
.
|
|
97
|
+
._closing_13cfp0j_9 ._content_13cfp0j_13{
|
|
98
98
|
transition-duration:200ms, 200ms;
|
|
99
99
|
}
|
|
100
|
-
.
|
|
101
|
-
.
|
|
100
|
+
._initial_13cfp0j_54 ._content_13cfp0j_13,
|
|
101
|
+
._closing_13cfp0j_9 ._content_13cfp0j_13{
|
|
102
102
|
opacity:0;
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
._outerThemeLight_13cfp0j_68 ._content_13cfp0j_13{
|
|
105
105
|
--rs-color-primary-dark-theme:var(--rs-color-primary-light-theme);
|
|
106
106
|
--rs-color-primary-dim-dark-theme:var(--rs-color-primary-dim-light-theme);
|
|
107
107
|
--rs-color-primary-fog-dark-theme:var(--rs-color-primary-fog-light-theme);
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
--rs-color-primary-t-fog-light-theme
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
|
-
.
|
|
115
|
+
._outerThemeDark_13cfp0j_81 ._content_13cfp0j_13{
|
|
116
116
|
--rs-color-primary-light-theme:var(--rs-color-primary-dark-theme);
|
|
117
117
|
--rs-color-primary-dim-light-theme:var(--rs-color-primary-dim-dark-theme);
|
|
118
118
|
--rs-color-primary-fog-light-theme:var(--rs-color-primary-fog-dark-theme);
|
|
@@ -123,20 +123,20 @@
|
|
|
123
123
|
--rs-color-primary-t-fog-dark-theme
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
|
-
.
|
|
126
|
+
._initial_13cfp0j_54[data-popper-placement^='top'] ._content_13cfp0j_13, ._closing_13cfp0j_9[data-popper-placement^='top'] ._content_13cfp0j_13{
|
|
127
127
|
transform:translate(0, 10px);
|
|
128
128
|
}
|
|
129
|
-
.
|
|
129
|
+
._initial_13cfp0j_54[data-popper-placement^='right'] ._content_13cfp0j_13, ._closing_13cfp0j_9[data-popper-placement^='right'] ._content_13cfp0j_13{
|
|
130
130
|
transform:translate(-10px, 0);
|
|
131
131
|
}
|
|
132
|
-
.
|
|
132
|
+
._initial_13cfp0j_54[data-popper-placement^='bottom'] ._content_13cfp0j_13, ._closing_13cfp0j_9[data-popper-placement^='bottom'] ._content_13cfp0j_13{
|
|
133
133
|
transform:translate(0, -10px);
|
|
134
134
|
}
|
|
135
|
-
.
|
|
135
|
+
._initial_13cfp0j_54[data-popper-placement^='left'] ._content_13cfp0j_13, ._closing_13cfp0j_9[data-popper-placement^='left'] ._content_13cfp0j_13{
|
|
136
136
|
transform:translate(10px, 0);
|
|
137
137
|
}
|
|
138
|
-
.
|
|
139
|
-
.
|
|
138
|
+
._trigger_13cfp0j_113:focus-visible,
|
|
139
|
+
._trigger_13cfp0j_113:focus[data-focus-method='key']{
|
|
140
140
|
outline:none;
|
|
141
141
|
|
|
142
142
|
box-shadow:var(--rs-color-primary-t-dim-light-theme) 0 0 0 4px;
|
package/lib/tooltip.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
2
3
|
import React, { cloneElement, createElement, useState, useRef, useEffect, useCallback, useContext, isValidElement } from 'react';
|
|
3
4
|
import { Element, ForwardRef, typeOf } from 'react-is';
|
|
4
5
|
import cn from 'classnames';
|
|
5
6
|
import PropTypes from 'prop-types';
|
|
6
7
|
import ReactDOM from 'react-dom';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
8
|
+
import { usePopper } from 'react-popper';
|
|
9
|
+
import { useLayeringContext, ThemeContext, ThemeProvider } from '@rescui/ui-contexts';
|
|
9
10
|
import styles from './tooltip.p.module.css.js';
|
|
10
11
|
import { useTooltipState, TOOLTIP_STATES } from './use-tooltip-state.js';
|
|
11
12
|
import { extractThemeFromCss, extractPrimaryColors } from './css-vars-utils.js';
|
|
12
|
-
const HIDE_TIMEOUT = 500;
|
|
13
|
-
|
|
14
|
-
const CLOSING_TIMEOUT = 300;
|
|
13
|
+
const HIDE_TIMEOUT = 500;
|
|
15
14
|
|
|
16
15
|
const Portal = _ref => {
|
|
17
16
|
let {
|
|
18
17
|
children,
|
|
19
|
-
target = document.body
|
|
18
|
+
target = typeof window !== 'undefined' ? document.body : undefined
|
|
20
19
|
} = _ref;
|
|
21
|
-
return /*#__PURE__*/ReactDOM.createPortal(children, target);
|
|
20
|
+
return target ? /*#__PURE__*/ReactDOM.createPortal(children, target) : null;
|
|
22
21
|
};
|
|
23
22
|
|
|
24
23
|
const isNode = maybeNode => {
|
|
@@ -121,14 +120,27 @@ const Tooltip = _ref3 => {
|
|
|
121
120
|
disableHideDelay,
|
|
122
121
|
renderBesideTrigger = false
|
|
123
122
|
} = _ref3;
|
|
123
|
+
const {
|
|
124
|
+
tooltipZIndex
|
|
125
|
+
} = useLayeringContext();
|
|
126
|
+
const [popperRef, setPopperRef] = useState(null);
|
|
124
127
|
const [triggerRef, setTriggerRef] = useState(null);
|
|
125
|
-
const isControlled = typeof isVisibleFromProps !== 'undefined';
|
|
126
128
|
const [isVisibleState, setIsVisibleState] = useState(false);
|
|
127
129
|
const [isTooltipHovered, setIsTooltipHovered] = useState(false);
|
|
128
130
|
const schedulePopperUpdateRef = useRef(null);
|
|
129
131
|
const contentRef = useRef(null);
|
|
130
132
|
const hideTimeoutRef = useRef(null);
|
|
131
|
-
const
|
|
133
|
+
const isControlled = typeof isVisibleFromProps !== 'undefined';
|
|
134
|
+
let isVisible = isControlled ? isVisibleFromProps : isVisibleState; // We set isVisible this way to avoid hydration issue due to
|
|
135
|
+
// the Portal to document.body which does not exist on the server.
|
|
136
|
+
// So even if isVisible prop is used, the tooltip will not render on the server, and
|
|
137
|
+
// it's the same on the first client render, so there is no hydration issue.
|
|
138
|
+
|
|
139
|
+
const [isFirstRender, setIsFirstRender] = useState(true);
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
setIsFirstRender(false);
|
|
142
|
+
}, []);
|
|
143
|
+
isVisible = isFirstRender && !renderBesideTrigger ? false : isVisible;
|
|
132
144
|
const isOpen = isVisible || isTooltipHovered;
|
|
133
145
|
const PortalResolved = renderBesideTrigger ? React.Fragment : Portal;
|
|
134
146
|
useEffect(() => {
|
|
@@ -156,9 +168,9 @@ const Tooltip = _ref3 => {
|
|
|
156
168
|
}
|
|
157
169
|
};
|
|
158
170
|
|
|
159
|
-
const tooltipState = useTooltipState(isOpen
|
|
171
|
+
const [handleAnimationEnd, tooltipState] = useTooltipState(isOpen);
|
|
160
172
|
const isClosing = tooltipState === TOOLTIP_STATES.CLOSING;
|
|
161
|
-
const isExists = tooltipState !== TOOLTIP_STATES.
|
|
173
|
+
const isExists = tooltipState !== TOOLTIP_STATES.CLOSE; // a state to toggle the starting transition
|
|
162
174
|
|
|
163
175
|
const [isInitial, setIsInitial] = useState(true); // reset the initial flag when the closing transition ends and the state switches to CLOSED
|
|
164
176
|
|
|
@@ -197,86 +209,75 @@ const Tooltip = _ref3 => {
|
|
|
197
209
|
noProvider
|
|
198
210
|
} = useContext(ThemeContext);
|
|
199
211
|
const theme = noProvider ? themeFromCss : themeFromContext;
|
|
200
|
-
|
|
212
|
+
const calcOffset = useCallback(_ref5 => {
|
|
201
213
|
let {
|
|
202
|
-
|
|
214
|
+
placement: offsetPlacement
|
|
203
215
|
} = _ref5;
|
|
204
|
-
return /*#__PURE__*/React.createElement(Manager, null, /*#__PURE__*/React.createElement(Reference, null, _ref6 => {
|
|
205
|
-
let {
|
|
206
|
-
ref
|
|
207
|
-
} = _ref6;
|
|
208
|
-
return /*#__PURE__*/React.createElement(TriggerRenderer, {
|
|
209
|
-
ref: ref,
|
|
210
|
-
setTriggerRef: setTriggerRef,
|
|
211
|
-
targetComponent: targetComponent,
|
|
212
|
-
isControlled: isControlled,
|
|
213
|
-
handleMouseEnterTarget: handleMouseEnterTarget,
|
|
214
|
-
handleMouseLeaveTarget: handleMouseLeaveTarget
|
|
215
|
-
}, children);
|
|
216
|
-
}), tooltipShouldBeRendered && /*#__PURE__*/React.createElement(PortalResolved, null, /*#__PURE__*/React.createElement(Popper, {
|
|
217
|
-
placement: placement,
|
|
218
|
-
modifiers: [// the modifier to trigger starting animation
|
|
219
|
-
{
|
|
220
|
-
name: 'disableInitialFlag',
|
|
221
|
-
enabled: true,
|
|
222
|
-
phase: 'afterWrite',
|
|
223
|
-
fn: disableInitialFlag,
|
|
224
|
-
requires: []
|
|
225
|
-
}, {
|
|
226
|
-
name: 'flip',
|
|
227
|
-
options: {
|
|
228
|
-
fallbackPlacements
|
|
229
|
-
}
|
|
230
|
-
}, {
|
|
231
|
-
name: 'offset',
|
|
232
|
-
options: {
|
|
233
|
-
offset: _ref7 => {
|
|
234
|
-
let {
|
|
235
|
-
placement: offsetPlacement
|
|
236
|
-
} = _ref7;
|
|
237
216
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
"data-test": "tooltip"
|
|
269
|
-
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
270
|
-
theme: "dark",
|
|
271
|
-
ignoreThemeValueForCSSApi: noProvider
|
|
272
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
273
|
-
className: cn(styles.content),
|
|
274
|
-
onBlur: handleMouseLeaveTarget,
|
|
275
|
-
onFocus: handleMouseEnterTarget,
|
|
276
|
-
ref: contentRef
|
|
277
|
-
}, content)));
|
|
278
|
-
})));
|
|
217
|
+
if (_includesInstanceProperty(offsetPlacement).call(offsetPlacement, 'left') || _includesInstanceProperty(offsetPlacement).call(offsetPlacement, 'right')) {
|
|
218
|
+
return [0, sparse ? 16 : 8];
|
|
219
|
+
} else {
|
|
220
|
+
return [0, sparse ? 12 : 8];
|
|
221
|
+
}
|
|
222
|
+
}, [sparse]);
|
|
223
|
+
const {
|
|
224
|
+
styles: popperStyles,
|
|
225
|
+
attributes,
|
|
226
|
+
update
|
|
227
|
+
} = usePopper(triggerRef, popperRef, {
|
|
228
|
+
placement,
|
|
229
|
+
modifiers: [// the modifier to trigger starting animation
|
|
230
|
+
{
|
|
231
|
+
name: 'disableInitialFlag',
|
|
232
|
+
enabled: true,
|
|
233
|
+
phase: 'afterWrite',
|
|
234
|
+
fn: disableInitialFlag,
|
|
235
|
+
requires: []
|
|
236
|
+
}, {
|
|
237
|
+
name: 'flip',
|
|
238
|
+
options: {
|
|
239
|
+
fallbackPlacements
|
|
240
|
+
}
|
|
241
|
+
}, {
|
|
242
|
+
name: 'offset',
|
|
243
|
+
options: {
|
|
244
|
+
offset: calcOffset
|
|
245
|
+
}
|
|
246
|
+
}, ...(modifiers || [])]
|
|
279
247
|
});
|
|
248
|
+
schedulePopperUpdateRef.current = update;
|
|
249
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TriggerRenderer, {
|
|
250
|
+
setTriggerRef: setTriggerRef,
|
|
251
|
+
targetComponent: targetComponent,
|
|
252
|
+
isControlled: isControlled,
|
|
253
|
+
handleMouseEnterTarget: handleMouseEnterTarget,
|
|
254
|
+
handleMouseLeaveTarget: handleMouseLeaveTarget
|
|
255
|
+
}, children), tooltipShouldBeRendered && /*#__PURE__*/React.createElement(PortalResolved, null, /*#__PURE__*/React.createElement("span", {
|
|
256
|
+
className: cn(styles.tooltip, isInitial && styles.initial, isClosing && styles.closing, OUTER_THEME_STYLES[theme], className),
|
|
257
|
+
ref: setPopperRef,
|
|
258
|
+
style: { ...popperStyles.popper,
|
|
259
|
+
...primaryColors,
|
|
260
|
+
zIndex: tooltipZIndex
|
|
261
|
+
},
|
|
262
|
+
onMouseEnter: () => setIsTooltipHovered(true),
|
|
263
|
+
onMouseLeave: () => {
|
|
264
|
+
setIsVisibleState(false);
|
|
265
|
+
setIsTooltipHovered(false);
|
|
266
|
+
},
|
|
267
|
+
"data-placement": placement,
|
|
268
|
+
"data-test": "tooltip",
|
|
269
|
+
...attributes.popper
|
|
270
|
+
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
271
|
+
theme: "dark",
|
|
272
|
+
ignoreThemeValueForCSSApi: noProvider
|
|
273
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
274
|
+
className: cn(styles.content),
|
|
275
|
+
onBlur: handleMouseLeaveTarget,
|
|
276
|
+
onFocus: handleMouseEnterTarget,
|
|
277
|
+
onTransitionEnd: handleAnimationEnd,
|
|
278
|
+
onAnimationEnd: handleAnimationEnd,
|
|
279
|
+
ref: contentRef
|
|
280
|
+
}, content)))));
|
|
280
281
|
};
|
|
281
282
|
|
|
282
283
|
Tooltip.propTypes = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"tooltip": "
|
|
3
|
-
"closing": "
|
|
4
|
-
"content": "
|
|
5
|
-
"initial": "
|
|
6
|
-
"outerThemeLight": "
|
|
7
|
-
"outerThemeDark": "
|
|
8
|
-
"trigger": "
|
|
2
|
+
"tooltip": "_tooltip_13cfp0j_5",
|
|
3
|
+
"closing": "_closing_13cfp0j_9",
|
|
4
|
+
"content": "_content_13cfp0j_13",
|
|
5
|
+
"initial": "_initial_13cfp0j_54",
|
|
6
|
+
"outerThemeLight": "_outerThemeLight_13cfp0j_68",
|
|
7
|
+
"outerThemeDark": "_outerThemeDark_13cfp0j_81",
|
|
8
|
+
"trigger": "_trigger_13cfp0j_113"
|
|
9
9
|
};
|
|
10
10
|
export { styles as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare enum TOOLTIP_STATES {
|
|
2
|
+
OPENING = "OPENING",
|
|
2
3
|
OPEN = "OPEN",
|
|
3
4
|
CLOSING = "CLOSING",
|
|
4
|
-
|
|
5
|
+
CLOSE = "CLOSE"
|
|
5
6
|
}
|
|
6
|
-
export declare function useTooltipState(isOpen: boolean
|
|
7
|
+
export declare function useTooltipState(isOpen: boolean): [() => void, TOOLTIP_STATES];
|
package/lib/use-tooltip-state.js
CHANGED
|
@@ -1,56 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState, useRef, useCallback } from 'react';
|
|
2
3
|
var TOOLTIP_STATES;
|
|
3
4
|
|
|
4
5
|
(function (TOOLTIP_STATES) {
|
|
6
|
+
TOOLTIP_STATES["OPENING"] = "OPENING";
|
|
5
7
|
TOOLTIP_STATES["OPEN"] = "OPEN";
|
|
6
8
|
TOOLTIP_STATES["CLOSING"] = "CLOSING";
|
|
7
|
-
TOOLTIP_STATES["
|
|
9
|
+
TOOLTIP_STATES["CLOSE"] = "CLOSE";
|
|
8
10
|
})(TOOLTIP_STATES || (TOOLTIP_STATES = {}));
|
|
9
11
|
|
|
10
12
|
function useTooltipState(isOpen) {
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
if (isOpen) {
|
|
15
|
-
|
|
16
|
-
setState(curState => {
|
|
17
|
-
if (curState === TOOLTIP_STATES.CLOSING || curState === TOOLTIP_STATES.CLOSED) {
|
|
18
|
-
return TOOLTIP_STATES.OPEN;
|
|
19
|
-
} else {
|
|
20
|
-
return curState;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if (!isOpen) {
|
|
26
|
-
// if tooltip should not be open, but actually open, start the closing process
|
|
27
|
-
setState(curState => {
|
|
28
|
-
if (curState === TOOLTIP_STATES.OPEN) {
|
|
29
|
-
return TOOLTIP_STATES.CLOSING;
|
|
30
|
-
}
|
|
13
|
+
const [, setDummyState] = useState(false);
|
|
14
|
+
const stateRef = useRef(TOOLTIP_STATES.CLOSE);
|
|
15
|
+
const onAnimationEnd = useCallback(() => {
|
|
16
|
+
if ((stateRef.current === TOOLTIP_STATES.CLOSING || stateRef.current === TOOLTIP_STATES.OPENING) && !isOpen) {
|
|
17
|
+
stateRef.current = TOOLTIP_STATES.CLOSE; //force rerender
|
|
31
18
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
setDummyState(s => !s);
|
|
20
|
+
} else if (stateRef.current === TOOLTIP_STATES.OPENING && isOpen) {
|
|
21
|
+
stateRef.current = TOOLTIP_STATES.OPEN; //force rerender
|
|
35
22
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return TOOLTIP_STATES.CLOSED;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return curState;
|
|
43
|
-
});
|
|
44
|
-
}, transitionDuration);
|
|
45
|
-
return () => {
|
|
46
|
-
clearTimeout(timeoutId);
|
|
47
|
-
};
|
|
48
|
-
} // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
23
|
+
setDummyState(s => !s);
|
|
24
|
+
}
|
|
25
|
+
}, [isOpen]);
|
|
49
26
|
|
|
27
|
+
if (isOpen && stateRef.current !== TOOLTIP_STATES.OPEN) {
|
|
28
|
+
stateRef.current = TOOLTIP_STATES.OPENING;
|
|
29
|
+
} else if (stateRef.current === TOOLTIP_STATES.OPEN && !isOpen) {
|
|
30
|
+
stateRef.current = TOOLTIP_STATES.CLOSING;
|
|
31
|
+
}
|
|
50
32
|
|
|
51
|
-
|
|
52
|
-
}, [transitionDuration, isOpen]);
|
|
53
|
-
return state;
|
|
33
|
+
return [onAnimationEnd, stateRef.current];
|
|
54
34
|
}
|
|
55
35
|
|
|
56
36
|
export { TOOLTIP_STATES, useTooltipState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/tooltip",
|
|
3
|
-
"version": "0.8.15-RUI-226-Update-card-cn-
|
|
3
|
+
"version": "0.8.15-RUI-226-Update-card-cn-9ae48d69.79+9ae48d69",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -16,27 +16,27 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime-corejs3": "^7.26.0",
|
|
19
|
-
"@popperjs/core": "^2.
|
|
19
|
+
"@popperjs/core": "^2.11.8",
|
|
20
20
|
"classnames": "^2.2.6",
|
|
21
21
|
"react-is": "^17.0.2",
|
|
22
22
|
"react-popper": "^2.2.5"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@rescui/ui-contexts": "^0.5.0",
|
|
26
|
-
"prop-types": "^15
|
|
27
|
-
"react": ">=16.8.0 <
|
|
28
|
-
"react-dom": ">=16.8.0 <
|
|
26
|
+
"prop-types": "^15",
|
|
27
|
+
"react": ">=16.8.0 <20",
|
|
28
|
+
"react-dom": ">=16.8.0 <20"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@rescui/colors": "0.2.7-RUI-226-Update-card-cn-
|
|
32
|
-
"@rescui/icons": "0.16.13-RUI-226-Update-card-cn-
|
|
33
|
-
"@rescui/scripts": "0.5.
|
|
34
|
-
"@rescui/typography": "0.19.2-RUI-226-Update-card-cn-
|
|
31
|
+
"@rescui/colors": "0.2.7-RUI-226-Update-card-cn-9ae48d69.79+9ae48d69",
|
|
32
|
+
"@rescui/icons": "0.16.13-RUI-226-Update-card-cn-9ae48d69.79+9ae48d69",
|
|
33
|
+
"@rescui/scripts": "0.5.1",
|
|
34
|
+
"@rescui/typography": "0.19.2-RUI-226-Update-card-cn-9ae48d69.79+9ae48d69",
|
|
35
35
|
"@types/react-is": "^17.0.3"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "rescui-scripts build"
|
|
39
39
|
},
|
|
40
40
|
"nx": {},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "9ae48d69f75477e5e8ecf86c0727802fd3794f79"
|
|
42
42
|
}
|