@fluentui/react-tooltip 0.0.0-nightly0e0cf06c3420211029.1 → 0.0.0-nightly3082edf34720220208.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/CHANGELOG.json +278 -22
- package/CHANGELOG.md +64 -14
- package/dist/react-tooltip.d.ts +29 -46
- package/lib/components/Tooltip/Tooltip.d.ts +3 -2
- package/lib/components/Tooltip/Tooltip.js +9 -9
- package/lib/components/Tooltip/Tooltip.js.map +1 -1
- package/lib/components/Tooltip/Tooltip.types.d.ts +20 -37
- package/lib/components/Tooltip/index.d.ts +1 -1
- package/lib/components/Tooltip/index.js +1 -1
- package/lib/components/Tooltip/index.js.map +1 -1
- package/lib/components/Tooltip/private/constants.d.ts +12 -0
- package/lib/components/Tooltip/private/constants.js +14 -0
- package/lib/components/Tooltip/private/constants.js.map +1 -0
- package/lib/components/Tooltip/renderTooltip.d.ts +1 -1
- package/lib/components/Tooltip/renderTooltip.js +8 -8
- package/lib/components/Tooltip/renderTooltip.js.map +1 -1
- package/lib/components/Tooltip/useTooltip.d.ts +3 -6
- package/lib/components/Tooltip/useTooltip.js +97 -119
- package/lib/components/Tooltip/useTooltip.js.map +1 -1
- package/lib/components/Tooltip/useTooltipStyles.d.ts +2 -1
- package/lib/components/Tooltip/useTooltipStyles.js +50 -23
- package/lib/components/Tooltip/useTooltipStyles.js.map +1 -1
- package/lib-commonjs/Tooltip.js +1 -1
- package/lib-commonjs/components/Tooltip/Tooltip.d.ts +3 -2
- package/lib-commonjs/components/Tooltip/Tooltip.js +11 -10
- package/lib-commonjs/components/Tooltip/Tooltip.js.map +1 -1
- package/lib-commonjs/components/Tooltip/Tooltip.types.d.ts +20 -37
- package/lib-commonjs/components/Tooltip/index.d.ts +1 -1
- package/lib-commonjs/components/Tooltip/index.js +2 -10
- package/lib-commonjs/components/Tooltip/index.js.map +1 -1
- package/lib-commonjs/components/Tooltip/private/constants.d.ts +12 -0
- package/lib-commonjs/components/Tooltip/private/constants.js +21 -0
- package/lib-commonjs/components/Tooltip/private/constants.js.map +1 -0
- package/lib-commonjs/components/Tooltip/renderTooltip.d.ts +1 -1
- package/lib-commonjs/components/Tooltip/renderTooltip.js +13 -14
- package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
- package/lib-commonjs/components/Tooltip/useTooltip.d.ts +3 -6
- package/lib-commonjs/components/Tooltip/useTooltip.js +105 -127
- package/lib-commonjs/components/Tooltip/useTooltip.js.map +1 -1
- package/lib-commonjs/components/Tooltip/useTooltipStyles.d.ts +2 -1
- package/lib-commonjs/components/Tooltip/useTooltipStyles.js +56 -26
- package/lib-commonjs/components/Tooltip/useTooltipStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/package.json +12 -14
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -11
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -22
- package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -3,67 +3,54 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.useTooltip_unstable = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const React = /*#__PURE__*/require("react");
|
9
9
|
|
10
|
-
|
10
|
+
const react_positioning_1 = /*#__PURE__*/require("@fluentui/react-positioning");
|
11
11
|
|
12
|
-
|
12
|
+
const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities"); // Style values that are required for popper to properly position the tooltip
|
17
|
-
|
18
|
-
|
19
|
-
var tooltipBorderRadius = 4; // Update the root's borderRadius in useTooltipStyles.ts if this changes
|
20
|
-
|
21
|
-
var arrowHeight = 6; // Update the arrow's width/height in useTooltipStyles.ts if this changes
|
14
|
+
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
|
22
15
|
|
16
|
+
const constants_1 = /*#__PURE__*/require("./private/constants");
|
23
17
|
/**
|
24
18
|
* Create the state required to render Tooltip.
|
25
19
|
*
|
26
|
-
* The returned state can be modified with hooks such as
|
27
|
-
* before being passed to
|
20
|
+
* The returned state can be modified with hooks such as useTooltipStyles_unstable,
|
21
|
+
* before being passed to renderTooltip_unstable.
|
28
22
|
*
|
29
23
|
* @param props - props from this instance of Tooltip
|
30
|
-
* @param ref - reference to root HTMLElement of Tooltip
|
31
|
-
* @param defaultProps - (optional) default prop values provided by the implementing type
|
32
24
|
*/
|
33
25
|
|
34
|
-
|
26
|
+
|
27
|
+
const useTooltip_unstable = props => {
|
35
28
|
var _a, _b, _c, _d;
|
36
29
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
hideDelay = _h === void 0 ? 250 : _h;
|
56
|
-
|
57
|
-
var _j = react_utilities_1.useControllableState({
|
30
|
+
const context = React.useContext(react_shared_contexts_1.TooltipContext);
|
31
|
+
const isServerSideRender = react_utilities_1.useIsSSR();
|
32
|
+
const {
|
33
|
+
targetDocument
|
34
|
+
} = react_shared_contexts_1.useFluent();
|
35
|
+
const [setDelayTimeout, clearDelayTimeout] = react_utilities_1.useTimeout();
|
36
|
+
const {
|
37
|
+
appearance,
|
38
|
+
children,
|
39
|
+
content,
|
40
|
+
withArrow,
|
41
|
+
positioning,
|
42
|
+
onVisibleChange,
|
43
|
+
relationship,
|
44
|
+
showDelay = 250,
|
45
|
+
hideDelay = 250
|
46
|
+
} = props;
|
47
|
+
const [visible, setVisibleInternal] = react_utilities_1.useControllableState({
|
58
48
|
state: props.visible,
|
59
49
|
initialState: false
|
60
|
-
})
|
61
|
-
|
62
|
-
setVisibleInternal = _j[1];
|
63
|
-
|
64
|
-
var setVisible = React.useCallback(function (newVisible, ev) {
|
50
|
+
});
|
51
|
+
const setVisible = React.useCallback((newVisible, ev) => {
|
65
52
|
clearDelayTimeout();
|
66
|
-
setVisibleInternal(
|
53
|
+
setVisibleInternal(oldVisible => {
|
67
54
|
if (newVisible !== oldVisible) {
|
68
55
|
onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(ev, {
|
69
56
|
visible: newVisible
|
@@ -73,76 +60,73 @@ var useTooltip = function (props, ref) {
|
|
73
60
|
return newVisible;
|
74
61
|
});
|
75
62
|
}, [clearDelayTimeout, setVisibleInternal, onVisibleChange]);
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
triggerAriaAttribute: triggerAriaAttribute,
|
84
|
-
visible: visible,
|
63
|
+
const state = {
|
64
|
+
withArrow,
|
65
|
+
positioning,
|
66
|
+
showDelay,
|
67
|
+
hideDelay,
|
68
|
+
relationship,
|
69
|
+
visible,
|
85
70
|
shouldRenderTooltip: visible,
|
86
|
-
appearance
|
71
|
+
appearance,
|
87
72
|
// Slots
|
88
73
|
components: {
|
89
|
-
|
74
|
+
content: 'div'
|
90
75
|
},
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
})
|
76
|
+
content: react_utilities_1.resolveShorthand(content, {
|
77
|
+
defaultProps: {
|
78
|
+
role: 'tooltip'
|
79
|
+
},
|
80
|
+
required: true
|
81
|
+
})
|
97
82
|
};
|
98
|
-
|
99
|
-
|
83
|
+
state.content.id = react_utilities_1.useId('tooltip-', state.content.id);
|
84
|
+
const popperOptions = {
|
100
85
|
enabled: state.visible,
|
101
|
-
arrowPadding: 2 * tooltipBorderRadius,
|
86
|
+
arrowPadding: 2 * constants_1.tooltipBorderRadius,
|
102
87
|
position: 'above',
|
103
88
|
align: 'center',
|
104
|
-
offset: [0, 4]
|
105
|
-
|
89
|
+
offset: [0, 4],
|
90
|
+
...react_positioning_1.resolvePositioningShorthand(state.positioning)
|
91
|
+
};
|
106
92
|
|
107
93
|
if (state.withArrow) {
|
108
|
-
popperOptions.offset = react_positioning_1.mergeArrowOffset(popperOptions.offset, arrowHeight);
|
94
|
+
popperOptions.offset = react_positioning_1.mergeArrowOffset(popperOptions.offset, constants_1.arrowHeight);
|
109
95
|
}
|
110
96
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
state.
|
97
|
+
const {
|
98
|
+
targetRef,
|
99
|
+
containerRef,
|
100
|
+
arrowRef
|
101
|
+
} = react_positioning_1.usePopper(popperOptions);
|
102
|
+
state.content.ref = react_utilities_1.useMergedRefs(state.content.ref, containerRef);
|
117
103
|
state.arrowRef = arrowRef; // When this tooltip is visible, hide any other tooltips, and register it
|
118
104
|
// as the visibleTooltip with the TooltipContext.
|
119
105
|
// Also add a listener on document to hide the tooltip if Escape is pressed
|
120
106
|
|
121
|
-
react_utilities_1.useIsomorphicLayoutEffect(
|
107
|
+
react_utilities_1.useIsomorphicLayoutEffect(() => {
|
122
108
|
var _a;
|
123
109
|
|
124
110
|
if (visible) {
|
125
|
-
|
126
|
-
hide:
|
127
|
-
return setVisible(false);
|
128
|
-
}
|
111
|
+
const thisTooltip = {
|
112
|
+
hide: () => setVisible(false)
|
129
113
|
};
|
130
114
|
(_a = context.visibleTooltip) === null || _a === void 0 ? void 0 : _a.hide();
|
131
|
-
context.visibleTooltip =
|
115
|
+
context.visibleTooltip = thisTooltip;
|
132
116
|
|
133
|
-
|
117
|
+
const onDocumentKeyDown = ev => {
|
134
118
|
if (ev.key === 'Escape' || ev.key === 'Esc') {
|
135
|
-
|
119
|
+
thisTooltip.hide();
|
136
120
|
}
|
137
121
|
};
|
138
122
|
|
139
|
-
targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.addEventListener('keydown',
|
140
|
-
return
|
141
|
-
if (context.visibleTooltip ===
|
123
|
+
targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.addEventListener('keydown', onDocumentKeyDown);
|
124
|
+
return () => {
|
125
|
+
if (context.visibleTooltip === thisTooltip) {
|
142
126
|
context.visibleTooltip = undefined;
|
143
127
|
}
|
144
128
|
|
145
|
-
targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.removeEventListener('keydown',
|
129
|
+
targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.removeEventListener('keydown', onDocumentKeyDown);
|
146
130
|
};
|
147
131
|
}
|
148
132
|
}, [context, targetDocument, visible, setVisible]); // The focused element gets a blur event when the document loses focus
|
@@ -151,24 +135,24 @@ var useTooltip = function (props, ref) {
|
|
151
135
|
// checking if the blurred element is still the document's activeElement.
|
152
136
|
// See https://github.com/microsoft/fluentui/issues/13541
|
153
137
|
|
154
|
-
|
138
|
+
const ignoreNextFocusEventRef = React.useRef(false); // Listener for onPointerEnter and onFocus on the trigger element
|
155
139
|
|
156
|
-
|
140
|
+
const onEnterTrigger = React.useCallback(ev => {
|
157
141
|
if (ev.type === 'focus' && ignoreNextFocusEventRef.current) {
|
158
142
|
ignoreNextFocusEventRef.current = false;
|
159
143
|
return;
|
160
144
|
} // Show immediately if another tooltip is already visible
|
161
145
|
|
162
146
|
|
163
|
-
|
164
|
-
setDelayTimeout(
|
147
|
+
const delay = context.visibleTooltip ? 0 : state.showDelay;
|
148
|
+
setDelayTimeout(() => {
|
165
149
|
setVisible(true, ev);
|
166
150
|
}, delay);
|
167
151
|
ev.persist(); // Persist the event since the setVisible call will happen asynchronously
|
168
152
|
}, [setDelayTimeout, setVisible, state.showDelay, context]); // Listener for onPointerLeave and onBlur on the trigger element
|
169
153
|
|
170
|
-
|
171
|
-
|
154
|
+
const onLeaveTrigger = React.useCallback(ev => {
|
155
|
+
let delay = state.hideDelay;
|
172
156
|
|
173
157
|
if (ev.type === 'blur') {
|
174
158
|
// Hide immediately when losing focus
|
@@ -176,63 +160,57 @@ var useTooltip = function (props, ref) {
|
|
176
160
|
ignoreNextFocusEventRef.current = (targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement) === ev.target;
|
177
161
|
}
|
178
162
|
|
179
|
-
setDelayTimeout(
|
163
|
+
setDelayTimeout(() => {
|
180
164
|
setVisible(false, ev);
|
181
165
|
}, delay);
|
182
166
|
ev.persist(); // Persist the event since the setVisible call will happen asynchronously
|
183
167
|
}, [setDelayTimeout, setVisible, state.hideDelay, targetDocument]); // Cancel the hide timer when the pointer enters the tooltip, and restart it when the mouse leaves.
|
184
168
|
// This keeps the tooltip visible when the pointer is moved over it.
|
185
169
|
|
186
|
-
state.
|
187
|
-
state.
|
188
|
-
|
170
|
+
state.content.onPointerEnter = react_utilities_1.useMergedEventCallbacks(state.content.onPointerEnter, clearDelayTimeout);
|
171
|
+
state.content.onPointerLeave = react_utilities_1.useMergedEventCallbacks(state.content.onPointerLeave, onLeaveTrigger);
|
172
|
+
const child = React.isValidElement(children) ? react_utilities_1.getTriggerChild(children) : undefined; // The props to add to the trigger element (child)
|
189
173
|
|
190
|
-
|
191
|
-
onPointerEnter:
|
192
|
-
onPointerLeave:
|
193
|
-
onFocus:
|
194
|
-
onBlur:
|
174
|
+
const triggerProps = {
|
175
|
+
onPointerEnter: react_utilities_1.useMergedEventCallbacks((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.onPointerEnter, onEnterTrigger),
|
176
|
+
onPointerLeave: react_utilities_1.useMergedEventCallbacks((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.onPointerLeave, onLeaveTrigger),
|
177
|
+
onFocus: react_utilities_1.useMergedEventCallbacks((_c = child === null || child === void 0 ? void 0 : child.props) === null || _c === void 0 ? void 0 : _c.onFocus, onEnterTrigger),
|
178
|
+
onBlur: react_utilities_1.useMergedEventCallbacks((_d = child === null || child === void 0 ? void 0 : child.props) === null || _d === void 0 ? void 0 : _d.onBlur, onLeaveTrigger)
|
195
179
|
}; // If the target prop is not provided, attach targetRef to the trigger element's ref prop
|
196
180
|
|
197
|
-
|
198
|
-
var childTargetRef = react_utilities_1.useMergedRefs(childWithRef === null || childWithRef === void 0 ? void 0 : childWithRef.ref, targetRef);
|
181
|
+
const childTargetRef = react_utilities_1.useMergedRefs(child === null || child === void 0 ? void 0 : child.ref, targetRef);
|
199
182
|
|
200
183
|
if (popperOptions.target === undefined) {
|
201
184
|
triggerProps.ref = childTargetRef;
|
202
185
|
}
|
203
186
|
|
204
|
-
if (
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
state.
|
187
|
+
if (relationship === 'label') {
|
188
|
+
const hasLabel = (child === null || child === void 0 ? void 0 : child.props) && ('aria-label' in child.props || 'aria-labelledby' in child.props);
|
189
|
+
|
190
|
+
if (!hasLabel) {
|
191
|
+
// aria-label only works if the content is a string. Otherwise, need to use aria-labelledby.
|
192
|
+
if (typeof state.content.children === 'string') {
|
193
|
+
triggerProps['aria-label'] = state.content.children;
|
194
|
+
} else if (!isServerSideRender) {
|
195
|
+
triggerProps['aria-labelledby'] = state.content.id; // Always render the tooltip even if hidden, so that aria-labelledby refers to a valid element
|
196
|
+
|
197
|
+
state.shouldRenderTooltip = true;
|
198
|
+
}
|
210
199
|
}
|
211
|
-
}
|
200
|
+
} else if (relationship === 'description') {
|
201
|
+
const hasDescription = (child === null || child === void 0 ? void 0 : child.props) && ('aria-description' in child.props || 'aria-describedby' in child.props);
|
212
202
|
|
213
|
-
|
214
|
-
|
203
|
+
if (!hasDescription && !isServerSideRender) {
|
204
|
+
triggerProps['aria-describedby'] = state.content.id; // Always render the tooltip even if hidden, so that aria-describedby refers to a valid element
|
215
205
|
|
216
|
-
|
217
|
-
|
218
|
-
triggerProps['aria-describedby'] = state.root.id;
|
219
|
-
state.shouldRenderTooltip = true;
|
206
|
+
state.shouldRenderTooltip = true;
|
207
|
+
}
|
220
208
|
} // Apply the trigger props to the child, either by calling the render function, or cloning with the new props
|
221
209
|
|
222
210
|
|
223
|
-
state.
|
211
|
+
state.children = react_utilities_1.applyTriggerPropsToChildren(children, triggerProps);
|
224
212
|
return state;
|
225
213
|
};
|
226
214
|
|
227
|
-
exports.
|
228
|
-
/**
|
229
|
-
* Combine up to two event callbacks into a single function that calls them in order
|
230
|
-
*/
|
231
|
-
|
232
|
-
var useMergedCallbacks = function (callback1, callback2) {
|
233
|
-
return React.useCallback(function (ev) {
|
234
|
-
callback1 === null || callback1 === void 0 ? void 0 : callback1(ev);
|
235
|
-
callback2 === null || callback2 === void 0 ? void 0 : callback2(ev);
|
236
|
-
}, [callback1, callback2]);
|
237
|
-
};
|
215
|
+
exports.useTooltip_unstable = useTooltip_unstable;
|
238
216
|
//# sourceMappingURL=useTooltip.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Tooltip/useTooltip.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/components/Tooltip/useTooltip.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,uBAAA,gBAAA,OAAA,CAAA,iCAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAaA,MAAA,WAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;AAEA;;;;;;;AAOG;;;AACI,MAAM,mBAAmB,GAAI,KAAD,IAAsC;;;AACvE,QAAM,OAAO,GAAG,KAAK,CAAC,UAAN,CAAiB,uBAAA,CAAA,cAAjB,CAAhB;AACA,QAAM,kBAAkB,GAAG,iBAAA,CAAA,QAAA,EAA3B;AACA,QAAM;AAAE,IAAA;AAAF,MAAqB,uBAAA,CAAA,SAAA,EAA3B;AACA,QAAM,CAAC,eAAD,EAAkB,iBAAlB,IAAuC,iBAAA,CAAA,UAAA,EAA7C;AAEA,QAAM;AACJ,IAAA,U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,iBAAA,CAAA,2BAAA,CAA4B,QAA5B,EAAsC,YAAtC,CAAjB;AACA,SAAO,KAAP;AACD,CA3MM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourceRoot":""}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { TooltipState } from './Tooltip.types';
|
2
|
+
export declare const tooltipClassName = "fui-Tooltip";
|
2
3
|
/**
|
3
4
|
* Apply styling to the Tooltip slots based on the state
|
4
5
|
*/
|
5
|
-
export declare const
|
6
|
+
export declare const useTooltipStyles_unstable: (state: TooltipState) => TooltipState;
|
@@ -3,28 +3,51 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.useTooltipStyles_unstable = exports.tooltipClassName = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const react_1 = /*#__PURE__*/require("@griffel/react");
|
9
|
+
|
10
|
+
const react_positioning_1 = /*#__PURE__*/require("@fluentui/react-positioning");
|
11
|
+
|
12
|
+
const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
|
13
|
+
|
14
|
+
const constants_1 = /*#__PURE__*/require("./private/constants");
|
15
|
+
|
16
|
+
exports.tooltipClassName = 'fui-Tooltip';
|
9
17
|
/**
|
10
18
|
* Styles for the tooltip
|
11
19
|
*/
|
12
20
|
|
13
|
-
|
14
|
-
var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
21
|
+
const useStyles = /*#__PURE__*/react_1.__styles({
|
15
22
|
"root": {
|
16
23
|
"mc9l5x": "fjseox",
|
17
|
-
"
|
18
|
-
"z189sj": ["f11qrl6u", "fjlbh76"],
|
19
|
-
"Byoj8tv": "fy7v416",
|
20
|
-
"uwmqm3": ["fjlbh76", "f11qrl6u"],
|
24
|
+
"B7ck84d": "f1ewtqcl",
|
21
25
|
"B2u0y6b": "f132xexn",
|
22
26
|
"Bceei9c": "f158kwzp",
|
23
27
|
"Bahqtrf": "fk6fouc",
|
24
28
|
"Be2twd7": "fy9rknc",
|
25
29
|
"Bg96gwp": "fwrc4pm",
|
26
|
-
"
|
27
|
-
"
|
30
|
+
"Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
|
31
|
+
"Beyfa6y": ["f16jpd5f", "f1aa9q02"],
|
32
|
+
"B7oj6ja": ["f1jar5jt", "fyu767a"],
|
33
|
+
"Btl43ni": ["fyu767a", "f1jar5jt"],
|
34
|
+
"B4j52fo": "f5ogflp",
|
35
|
+
"Bekrc4i": ["f1hqa2wf", "finvdd3"],
|
36
|
+
"Bn0qgzm": "f1f09k3d",
|
37
|
+
"ibv6hh": ["finvdd3", "f1hqa2wf"],
|
38
|
+
"icvyot": "fzkkow9",
|
39
|
+
"vrafjx": ["fcdblym", "fjik90z"],
|
40
|
+
"oivjwe": "fg706s2",
|
41
|
+
"wvpqe5": ["fjik90z", "fcdblym"],
|
42
|
+
"g2u3we": "fghlq4f",
|
43
|
+
"h3c5rm": ["f1gn591s", "fjscplz"],
|
44
|
+
"B9xav0g": "fb073pr",
|
45
|
+
"zhjwy3": ["fjscplz", "f1gn591s"],
|
46
|
+
"z8tnut": "f10ra9hq",
|
47
|
+
"z189sj": ["fd9xhir", "f1jlaasf"],
|
48
|
+
"Byoj8tv": "f1d7kygh",
|
49
|
+
"uwmqm3": ["f1jlaasf", "fd9xhir"],
|
50
|
+
"De3pzq": "fxugw4r",
|
28
51
|
"sj55zd": "f19n0e5",
|
29
52
|
"Bhu2qc9": "fxeb0a7"
|
30
53
|
},
|
@@ -32,47 +55,54 @@ var useStyles = /*#__PURE__*/react_make_styles_1.__styles({
|
|
32
55
|
"mc9l5x": "ftgm304"
|
33
56
|
},
|
34
57
|
"inverted": {
|
35
|
-
"
|
58
|
+
"De3pzq": "f5pduvr",
|
36
59
|
"sj55zd": "fqpbvvt"
|
37
60
|
},
|
38
61
|
"arrow": {
|
39
62
|
"qhf8xq": "f1euv43f",
|
40
|
-
"
|
41
|
-
"Bqenvij": "ftt2rgf",
|
42
|
-
"ayd6f0": "f1uo6wrk",
|
63
|
+
"De3pzq": "f1u2r49w",
|
43
64
|
"Bcdw1i0": "fd7fpy0",
|
44
65
|
"Bj3rh1h": "f1bsuimh",
|
66
|
+
"a9b677": "f1ekdpwm",
|
67
|
+
"Bqenvij": "f83vc9z",
|
45
68
|
"rurcny": "fuzzvh5",
|
69
|
+
"Bex5imi": "fkk33zh",
|
46
70
|
"xx9plb": "fxf9f1y",
|
71
|
+
"Bmqnesq": "f170vdtw",
|
47
72
|
"Bdn98qo": "f103af6e",
|
48
73
|
"Bbc2r3f": "f15umuo5",
|
49
|
-
"
|
50
|
-
"
|
74
|
+
"B1dvbpk": "f3wpjpt",
|
75
|
+
"D4ky5z": "f1k3tce7",
|
76
|
+
"cqycoz": "f1dkdgqi",
|
77
|
+
"I89eb": "f5ghsz",
|
78
|
+
"k1i1uq": "fyqop9u",
|
79
|
+
"Epwjcz": "f1m5ya7j",
|
80
|
+
"Bp1vogq": "f3sp63x",
|
51
81
|
"px8gyy": ["f5bg3dr", "f1rfdd74"],
|
52
|
-
"h6z6rw":
|
53
|
-
"hl6cv3": "
|
82
|
+
"h6z6rw": "fzd2j21",
|
83
|
+
"hl6cv3": "f1773hnp",
|
54
84
|
"Bh2vraf": "f1n8855c",
|
55
|
-
"yayu3t":
|
85
|
+
"yayu3t": "f1v7783n",
|
56
86
|
"wedwtw": "fsw6im5",
|
57
|
-
"rhl9o9": "
|
87
|
+
"rhl9o9": "fh2hsk5",
|
58
88
|
"Bu8t5uz": "f159pzir",
|
59
|
-
"B6q6orb":
|
89
|
+
"B6q6orb": "f11yvu4",
|
60
90
|
"Bwwlvwl": "fm1ycve"
|
61
91
|
}
|
62
92
|
}, {
|
63
|
-
"d": [".fjseox{display:none;}", ".
|
93
|
+
"d": [".fjseox{display:none;}", ".f1ewtqcl{box-sizing:border-box;}", ".f132xexn{max-width:240px;}", ".f158kwzp{cursor:default;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}", ".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}", ".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f10ra9hq{padding-top:4px;}", ".fd9xhir{padding-right:11px;}", ".f1jlaasf{padding-left:11px;}", ".f1d7kygh{padding-bottom:6px;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f19n0e5{color:var(--colorNeutralForeground1);}", ".fxeb0a7{-webkit-filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}", ".ftgm304{display:block;}", ".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".f1ekdpwm{width:8.484px;}", ".f83vc9z{height:8.484px;}", ".fuzzvh5:before{content:\"\";}", ".fkk33zh:before{visibility:visible;}", ".fxf9f1y:before{position:absolute;}", ".f170vdtw:before{box-sizing:border-box;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".f1k3tce7:before{border-right-width:1px;}", ".f1dkdgqi:before{border-right-style:solid;}", ".f5ghsz:before{border-right-color:var(--colorTransparentStroke);}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f3sp63x:before{border-bottom-color:var(--colorTransparentStroke);}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".fzd2j21:before{-webkit-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-moz-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-ms-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);}", "[data-popper-placement^=\"top\"] .f1773hnp{bottom:-1px;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1v7783n{left:-1px;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .fh2hsk5{top:-1px;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f11yvu4{right:-1px;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
|
64
94
|
});
|
65
95
|
/**
|
66
96
|
* Apply styling to the Tooltip slots based on the state
|
67
97
|
*/
|
68
98
|
|
69
99
|
|
70
|
-
|
71
|
-
|
72
|
-
state.
|
100
|
+
const useTooltipStyles_unstable = state => {
|
101
|
+
const styles = useStyles();
|
102
|
+
state.content.className = react_1.mergeClasses(exports.tooltipClassName, styles.root, state.appearance === 'inverted' && styles.inverted, state.visible && styles.visible, state.content.className);
|
73
103
|
state.arrowClassName = styles.arrow;
|
74
104
|
return state;
|
75
105
|
};
|
76
106
|
|
77
|
-
exports.
|
107
|
+
exports.useTooltipStyles_unstable = useTooltipStyles_unstable;
|
78
108
|
//# sourceMappingURL=useTooltipStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Tooltip/useTooltipStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,
|
1
|
+
{"version":3,"sources":["../../../src/components/Tooltip/useTooltipStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AACA,MAAA,WAAA,gBAAA,OAAA,CAAA,qBAAA,CAAA;;AAGa,OAAA,CAAA,gBAAA,GAAmB,aAAnB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAkCA;;AAEG;;;AACI,MAAM,yBAAyB,GAAI,KAAD,IAAsC;AAC7E,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,OAAN,CAAc,SAAd,GAA0B,OAAA,CAAA,YAAA,CACxB,OAAA,CAAA,gBADwB,EAExB,MAAM,CAAC,IAFiB,EAGxB,KAAK,CAAC,UA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