@fluentui/react-tooltip 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/CHANGELOG.json +367 -24
  2. package/CHANGELOG.md +89 -18
  3. package/dist/react-tooltip.d.ts +30 -47
  4. package/lib/components/Tooltip/Tooltip.d.ts +3 -2
  5. package/lib/components/Tooltip/Tooltip.js +9 -9
  6. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  7. package/lib/components/Tooltip/Tooltip.types.d.ts +22 -38
  8. package/lib/components/Tooltip/index.d.ts +1 -1
  9. package/lib/components/Tooltip/index.js +1 -1
  10. package/lib/components/Tooltip/index.js.map +1 -1
  11. package/lib/components/Tooltip/private/constants.d.ts +12 -0
  12. package/lib/components/Tooltip/private/constants.js +14 -0
  13. package/lib/components/Tooltip/private/constants.js.map +1 -0
  14. package/lib/components/Tooltip/renderTooltip.d.ts +1 -1
  15. package/lib/components/Tooltip/renderTooltip.js +8 -8
  16. package/lib/components/Tooltip/renderTooltip.js.map +1 -1
  17. package/lib/components/Tooltip/useTooltip.d.ts +3 -6
  18. package/lib/components/Tooltip/useTooltip.js +97 -119
  19. package/lib/components/Tooltip/useTooltip.js.map +1 -1
  20. package/lib/components/Tooltip/useTooltipStyles.d.ts +2 -1
  21. package/lib/components/Tooltip/useTooltipStyles.js +50 -23
  22. package/lib/components/Tooltip/useTooltipStyles.js.map +1 -1
  23. package/lib-commonjs/Tooltip.js +1 -1
  24. package/lib-commonjs/components/Tooltip/Tooltip.d.ts +3 -2
  25. package/lib-commonjs/components/Tooltip/Tooltip.js +11 -10
  26. package/lib-commonjs/components/Tooltip/Tooltip.js.map +1 -1
  27. package/lib-commonjs/components/Tooltip/Tooltip.types.d.ts +22 -38
  28. package/lib-commonjs/components/Tooltip/index.d.ts +1 -1
  29. package/lib-commonjs/components/Tooltip/index.js +2 -10
  30. package/lib-commonjs/components/Tooltip/index.js.map +1 -1
  31. package/lib-commonjs/components/Tooltip/private/constants.d.ts +12 -0
  32. package/lib-commonjs/components/Tooltip/private/constants.js +21 -0
  33. package/lib-commonjs/components/Tooltip/private/constants.js.map +1 -0
  34. package/lib-commonjs/components/Tooltip/renderTooltip.d.ts +1 -1
  35. package/lib-commonjs/components/Tooltip/renderTooltip.js +13 -14
  36. package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
  37. package/lib-commonjs/components/Tooltip/useTooltip.d.ts +3 -6
  38. package/lib-commonjs/components/Tooltip/useTooltip.js +105 -127
  39. package/lib-commonjs/components/Tooltip/useTooltip.js.map +1 -1
  40. package/lib-commonjs/components/Tooltip/useTooltipStyles.d.ts +2 -1
  41. package/lib-commonjs/components/Tooltip/useTooltipStyles.js +56 -26
  42. package/lib-commonjs/components/Tooltip/useTooltipStyles.js.map +1 -1
  43. package/lib-commonjs/index.js +1 -1
  44. package/package.json +12 -14
  45. package/lib/common/isConformant.d.ts +0 -4
  46. package/lib/common/isConformant.js +0 -11
  47. package/lib/common/isConformant.js.map +0 -1
  48. package/lib-commonjs/common/isConformant.d.ts +0 -4
  49. package/lib-commonjs/common/isConformant.js +0 -22
  50. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -1,57 +1,44 @@
1
- import { __assign } from "tslib";
2
1
  import * as React from 'react';
3
2
  import { mergeArrowOffset, resolvePositioningShorthand, usePopper } from '@fluentui/react-positioning';
4
3
  import { TooltipContext, useFluent } from '@fluentui/react-shared-contexts';
5
- import { applyTriggerPropsToChildren, getNativeElementProps, useControllableState, useId, useIsomorphicLayoutEffect, useIsSSR, useMergedRefs, useTimeout } from '@fluentui/react-utilities'; // Style values that are required for popper to properly position the tooltip
6
-
7
- var tooltipBorderRadius = 4; // Update the root's borderRadius in useTooltipStyles.ts if this changes
8
-
9
- var arrowHeight = 6; // Update the arrow's width/height in useTooltipStyles.ts if this changes
10
-
4
+ import { applyTriggerPropsToChildren, resolveShorthand, useControllableState, useMergedEventCallbacks, useId, useIsomorphicLayoutEffect, useIsSSR, useMergedRefs, useTimeout, getTriggerChild } from '@fluentui/react-utilities';
5
+ import { arrowHeight, tooltipBorderRadius } from './private/constants';
11
6
  /**
12
7
  * Create the state required to render Tooltip.
13
8
  *
14
- * The returned state can be modified with hooks such as useTooltipStyles,
15
- * before being passed to renderTooltip.
9
+ * The returned state can be modified with hooks such as useTooltipStyles_unstable,
10
+ * before being passed to renderTooltip_unstable.
16
11
  *
17
12
  * @param props - props from this instance of Tooltip
18
- * @param ref - reference to root HTMLElement of Tooltip
19
- * @param defaultProps - (optional) default prop values provided by the implementing type
20
13
  */
21
14
 
22
- export var useTooltip = function (props, ref) {
15
+ export const useTooltip_unstable = props => {
23
16
  var _a, _b, _c, _d;
24
17
 
25
- var context = React.useContext(TooltipContext);
26
- var isServerSideRender = useIsSSR();
27
- var targetDocument = useFluent().targetDocument;
28
-
29
- var _e = useTimeout(),
30
- setDelayTimeout = _e[0],
31
- clearDelayTimeout = _e[1];
32
-
33
- var content = props.content,
34
- inverted = props.inverted,
35
- withArrow = props.withArrow,
36
- positioning = props.positioning,
37
- onVisibleChange = props.onVisibleChange,
38
- _f = props.triggerAriaAttribute,
39
- triggerAriaAttribute = _f === void 0 ? 'label' : _f,
40
- _g = props.showDelay,
41
- showDelay = _g === void 0 ? 250 : _g,
42
- _h = props.hideDelay,
43
- hideDelay = _h === void 0 ? 250 : _h;
44
-
45
- var _j = useControllableState({
18
+ const context = React.useContext(TooltipContext);
19
+ const isServerSideRender = useIsSSR();
20
+ const {
21
+ targetDocument
22
+ } = useFluent();
23
+ const [setDelayTimeout, clearDelayTimeout] = useTimeout();
24
+ const {
25
+ appearance,
26
+ children,
27
+ content,
28
+ withArrow,
29
+ positioning,
30
+ onVisibleChange,
31
+ relationship,
32
+ showDelay = 250,
33
+ hideDelay = 250
34
+ } = props;
35
+ const [visible, setVisibleInternal] = useControllableState({
46
36
  state: props.visible,
47
37
  initialState: false
48
- }),
49
- visible = _j[0],
50
- setVisibleInternal = _j[1];
51
-
52
- var setVisible = React.useCallback(function (newVisible, ev) {
38
+ });
39
+ const setVisible = React.useCallback((newVisible, ev) => {
53
40
  clearDelayTimeout();
54
- setVisibleInternal(function (oldVisible) {
41
+ setVisibleInternal(oldVisible => {
55
42
  if (newVisible !== oldVisible) {
56
43
  onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(ev, {
57
44
  visible: newVisible
@@ -61,76 +48,73 @@ export var useTooltip = function (props, ref) {
61
48
  return newVisible;
62
49
  });
63
50
  }, [clearDelayTimeout, setVisibleInternal, onVisibleChange]);
64
- var state = {
65
- content: content,
66
- inverted: inverted,
67
- withArrow: withArrow,
68
- positioning: positioning,
69
- showDelay: showDelay,
70
- hideDelay: hideDelay,
71
- triggerAriaAttribute: triggerAriaAttribute,
72
- visible: visible,
51
+ const state = {
52
+ withArrow,
53
+ positioning,
54
+ showDelay,
55
+ hideDelay,
56
+ relationship,
57
+ visible,
73
58
  shouldRenderTooltip: visible,
74
- appearance: props.appearance,
59
+ appearance,
75
60
  // Slots
76
61
  components: {
77
- root: 'div'
62
+ content: 'div'
78
63
  },
79
- root: getNativeElementProps('div', __assign(__assign({
80
- role: 'tooltip'
81
- }, props), {
82
- ref: ref,
83
- id: useId('tooltip-', props.id)
84
- }))
64
+ content: resolveShorthand(content, {
65
+ defaultProps: {
66
+ role: 'tooltip'
67
+ },
68
+ required: true
69
+ })
85
70
  };
86
-
87
- var popperOptions = __assign({
71
+ state.content.id = useId('tooltip-', state.content.id);
72
+ const popperOptions = {
88
73
  enabled: state.visible,
89
74
  arrowPadding: 2 * tooltipBorderRadius,
90
75
  position: 'above',
91
76
  align: 'center',
92
- offset: [0, 4]
93
- }, resolvePositioningShorthand(state.positioning));
77
+ offset: [0, 4],
78
+ ...resolvePositioningShorthand(state.positioning)
79
+ };
94
80
 
95
81
  if (state.withArrow) {
96
82
  popperOptions.offset = mergeArrowOffset(popperOptions.offset, arrowHeight);
97
83
  }
98
84
 
99
- var _k = usePopper(popperOptions),
100
- targetRef = _k.targetRef,
101
- containerRef = _k.containerRef,
102
- arrowRef = _k.arrowRef;
103
-
104
- state.root.ref = useMergedRefs(state.root.ref, containerRef);
85
+ const {
86
+ targetRef,
87
+ containerRef,
88
+ arrowRef
89
+ } = usePopper(popperOptions);
90
+ state.content.ref = useMergedRefs(state.content.ref, containerRef);
105
91
  state.arrowRef = arrowRef; // When this tooltip is visible, hide any other tooltips, and register it
106
92
  // as the visibleTooltip with the TooltipContext.
107
93
  // Also add a listener on document to hide the tooltip if Escape is pressed
108
94
 
109
- useIsomorphicLayoutEffect(function () {
95
+ useIsomorphicLayoutEffect(() => {
110
96
  var _a;
111
97
 
112
98
  if (visible) {
113
- var thisTooltip_1 = {
114
- hide: function () {
115
- return setVisible(false);
116
- }
99
+ const thisTooltip = {
100
+ hide: () => setVisible(false)
117
101
  };
118
102
  (_a = context.visibleTooltip) === null || _a === void 0 ? void 0 : _a.hide();
119
- context.visibleTooltip = thisTooltip_1;
103
+ context.visibleTooltip = thisTooltip;
120
104
 
121
- var onDocumentKeyDown_1 = function (ev) {
105
+ const onDocumentKeyDown = ev => {
122
106
  if (ev.key === 'Escape' || ev.key === 'Esc') {
123
- thisTooltip_1.hide();
107
+ thisTooltip.hide();
124
108
  }
125
109
  };
126
110
 
127
- targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.addEventListener('keydown', onDocumentKeyDown_1);
128
- return function () {
129
- if (context.visibleTooltip === thisTooltip_1) {
111
+ targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.addEventListener('keydown', onDocumentKeyDown);
112
+ return () => {
113
+ if (context.visibleTooltip === thisTooltip) {
130
114
  context.visibleTooltip = undefined;
131
115
  }
132
116
 
133
- targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.removeEventListener('keydown', onDocumentKeyDown_1);
117
+ targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.removeEventListener('keydown', onDocumentKeyDown);
134
118
  };
135
119
  }
136
120
  }, [context, targetDocument, visible, setVisible]); // The focused element gets a blur event when the document loses focus
@@ -139,24 +123,24 @@ export var useTooltip = function (props, ref) {
139
123
  // checking if the blurred element is still the document's activeElement.
140
124
  // See https://github.com/microsoft/fluentui/issues/13541
141
125
 
142
- var ignoreNextFocusEventRef = React.useRef(false); // Listener for onPointerEnter and onFocus on the trigger element
126
+ const ignoreNextFocusEventRef = React.useRef(false); // Listener for onPointerEnter and onFocus on the trigger element
143
127
 
144
- var onEnterTrigger = React.useCallback(function (ev) {
128
+ const onEnterTrigger = React.useCallback(ev => {
145
129
  if (ev.type === 'focus' && ignoreNextFocusEventRef.current) {
146
130
  ignoreNextFocusEventRef.current = false;
147
131
  return;
148
132
  } // Show immediately if another tooltip is already visible
149
133
 
150
134
 
151
- var delay = context.visibleTooltip ? 0 : state.showDelay;
152
- setDelayTimeout(function () {
135
+ const delay = context.visibleTooltip ? 0 : state.showDelay;
136
+ setDelayTimeout(() => {
153
137
  setVisible(true, ev);
154
138
  }, delay);
155
139
  ev.persist(); // Persist the event since the setVisible call will happen asynchronously
156
140
  }, [setDelayTimeout, setVisible, state.showDelay, context]); // Listener for onPointerLeave and onBlur on the trigger element
157
141
 
158
- var onLeaveTrigger = React.useCallback(function (ev) {
159
- var delay = state.hideDelay;
142
+ const onLeaveTrigger = React.useCallback(ev => {
143
+ let delay = state.hideDelay;
160
144
 
161
145
  if (ev.type === 'blur') {
162
146
  // Hide immediately when losing focus
@@ -164,61 +148,55 @@ export var useTooltip = function (props, ref) {
164
148
  ignoreNextFocusEventRef.current = (targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement) === ev.target;
165
149
  }
166
150
 
167
- setDelayTimeout(function () {
151
+ setDelayTimeout(() => {
168
152
  setVisible(false, ev);
169
153
  }, delay);
170
154
  ev.persist(); // Persist the event since the setVisible call will happen asynchronously
171
155
  }, [setDelayTimeout, setVisible, state.hideDelay, targetDocument]); // Cancel the hide timer when the pointer enters the tooltip, and restart it when the mouse leaves.
172
156
  // This keeps the tooltip visible when the pointer is moved over it.
173
157
 
174
- state.root.onPointerEnter = useMergedCallbacks(state.root.onPointerEnter, clearDelayTimeout);
175
- state.root.onPointerLeave = useMergedCallbacks(state.root.onPointerLeave, onLeaveTrigger);
176
- var child = /*#__PURE__*/React.isValidElement(state.root.children) ? state.root.children : undefined; // The props to add to the trigger element (child)
158
+ state.content.onPointerEnter = useMergedEventCallbacks(state.content.onPointerEnter, clearDelayTimeout);
159
+ state.content.onPointerLeave = useMergedEventCallbacks(state.content.onPointerLeave, onLeaveTrigger);
160
+ const child = /*#__PURE__*/React.isValidElement(children) ? getTriggerChild(children) : undefined; // The props to add to the trigger element (child)
177
161
 
178
- var triggerProps = {
179
- onPointerEnter: useMergedCallbacks((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.onPointerEnter, onEnterTrigger),
180
- onPointerLeave: useMergedCallbacks((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.onPointerLeave, onLeaveTrigger),
181
- onFocus: useMergedCallbacks((_c = child === null || child === void 0 ? void 0 : child.props) === null || _c === void 0 ? void 0 : _c.onFocus, onEnterTrigger),
182
- onBlur: useMergedCallbacks((_d = child === null || child === void 0 ? void 0 : child.props) === null || _d === void 0 ? void 0 : _d.onBlur, onLeaveTrigger)
162
+ const triggerProps = {
163
+ onPointerEnter: useMergedEventCallbacks((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.onPointerEnter, onEnterTrigger),
164
+ onPointerLeave: useMergedEventCallbacks((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.onPointerLeave, onLeaveTrigger),
165
+ onFocus: useMergedEventCallbacks((_c = child === null || child === void 0 ? void 0 : child.props) === null || _c === void 0 ? void 0 : _c.onFocus, onEnterTrigger),
166
+ onBlur: useMergedEventCallbacks((_d = child === null || child === void 0 ? void 0 : child.props) === null || _d === void 0 ? void 0 : _d.onBlur, onLeaveTrigger)
183
167
  }; // If the target prop is not provided, attach targetRef to the trigger element's ref prop
184
168
 
185
- var childWithRef = child;
186
- var childTargetRef = useMergedRefs(childWithRef === null || childWithRef === void 0 ? void 0 : childWithRef.ref, targetRef);
169
+ const childTargetRef = useMergedRefs(child === null || child === void 0 ? void 0 : child.ref, targetRef);
187
170
 
188
171
  if (popperOptions.target === undefined) {
189
172
  triggerProps.ref = childTargetRef;
190
173
  }
191
174
 
192
- if (state.triggerAriaAttribute === 'label') {
193
- // aria-label only works if the content is a string. Otherwise, need to use labelledby.
194
- if (typeof state.content === 'string') {
195
- triggerProps['aria-label'] = state.content;
196
- } else {
197
- state.triggerAriaAttribute = 'labelledby';
175
+ if (relationship === 'label') {
176
+ const hasLabel = (child === null || child === void 0 ? void 0 : child.props) && ('aria-label' in child.props || 'aria-labelledby' in child.props);
177
+
178
+ if (!hasLabel) {
179
+ // aria-label only works if the content is a string. Otherwise, need to use aria-labelledby.
180
+ if (typeof state.content.children === 'string') {
181
+ triggerProps['aria-label'] = state.content.children;
182
+ } else if (!isServerSideRender) {
183
+ triggerProps['aria-labelledby'] = state.content.id; // Always render the tooltip even if hidden, so that aria-labelledby refers to a valid element
184
+
185
+ state.shouldRenderTooltip = true;
186
+ }
198
187
  }
199
- }
188
+ } else if (relationship === 'description') {
189
+ const hasDescription = (child === null || child === void 0 ? void 0 : child.props) && ('aria-description' in child.props || 'aria-describedby' in child.props);
200
190
 
201
- if (state.triggerAriaAttribute === 'labelledby' && !isServerSideRender) {
202
- triggerProps['aria-labelledby'] = state.root.id; // Always render the tooltip even if hidden, so that aria-labelledby refers to a valid element
191
+ if (!hasDescription && !isServerSideRender) {
192
+ triggerProps['aria-describedby'] = state.content.id; // Always render the tooltip even if hidden, so that aria-describedby refers to a valid element
203
193
 
204
- state.shouldRenderTooltip = true;
205
- } else if (state.triggerAriaAttribute === 'describedby' && !isServerSideRender) {
206
- triggerProps['aria-describedby'] = state.root.id;
207
- state.shouldRenderTooltip = true;
194
+ state.shouldRenderTooltip = true;
195
+ }
208
196
  } // Apply the trigger props to the child, either by calling the render function, or cloning with the new props
209
197
 
210
198
 
211
- state.root.children = applyTriggerPropsToChildren(state.root.children, triggerProps);
199
+ state.children = applyTriggerPropsToChildren(children, triggerProps);
212
200
  return state;
213
201
  };
214
- /**
215
- * Combine up to two event callbacks into a single function that calls them in order
216
- */
217
-
218
- var useMergedCallbacks = function (callback1, callback2) {
219
- return React.useCallback(function (ev) {
220
- callback1 === null || callback1 === void 0 ? void 0 : callback1(ev);
221
- callback2 === null || callback2 === void 0 ? void 0 : callback2(ev);
222
- }, [callback1, callback2]);
223
- };
224
202
  //# sourceMappingURL=useTooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Tooltip/useTooltip.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,gBAAT,EAA2B,2BAA3B,EAAwD,SAAxD,QAAyE,6BAAzE;AACA,SAAS,cAAT,EAAyB,SAAzB,QAA0C,iCAA1C;AACA,SACE,2BADF,EAEE,qBAFF,EAGE,oBAHF,EAIE,KAJF,EAKE,yBALF,EAME,QANF,EAOE,aAPF,EAQE,UARF,QASO,2BATP,C,CAYA;;AACA,IAAM,mBAAmB,GAAG,CAA5B,C,CAA+B;;AAC/B,IAAM,WAAW,GAAG,CAApB,C,CAAuB;;AAEvB;;;;;;;;;AASG;;AACH,OAAO,IAAM,UAAU,GAAG,UAAC,KAAD,EAAsB,GAAtB,EAAoD;;;AAC5E,MAAM,OAAO,GAAG,KAAK,CAAC,UAAN,CAAiB,cAAjB,CAAhB;AACA,MAAM,kBAAkB,GAAG,QAAQ,EAAnC;AACQ,MAAA,cAAc,GAAK,SAAS,GAAd,cAAd;;AACF,MAAA,EAAA,GAAuC,UAAU,EAAjD;AAAA,MAAC,eAAe,GAAA,EAAA,CAAA,CAAA,CAAhB;AAAA,MAAkB,iBAAiB,GAAA,EAAA,CAAA,CAAA,CAAnC;;AAGJ,MAAA,OAAO,GAQL,KAAK,CARA,OAAP;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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 useTooltipStyles: (state: TooltipState) => TooltipState;
6
+ export declare const useTooltipStyles_unstable: (state: TooltipState) => TooltipState;
@@ -1,22 +1,42 @@
1
- import { __styles, mergeClasses } from '@fluentui/react-make-styles';
1
+ import { shorthands, __styles, mergeClasses } from '@griffel/react';
2
+ import { createArrowStyles } from '@fluentui/react-positioning';
3
+ import { tokens } from '@fluentui/react-theme';
4
+ import { arrowHeight } from './private/constants';
5
+ export const tooltipClassName = 'fui-Tooltip';
2
6
  /**
3
7
  * Styles for the tooltip
4
8
  */
5
9
 
6
- var useStyles = /*#__PURE__*/__styles({
10
+ const useStyles = /*#__PURE__*/__styles({
7
11
  "root": {
8
12
  "mc9l5x": "fjseox",
9
- "z8tnut": "f1sbtcvk",
10
- "z189sj": ["f11qrl6u", "fjlbh76"],
11
- "Byoj8tv": "fy7v416",
12
- "uwmqm3": ["fjlbh76", "f11qrl6u"],
13
+ "B7ck84d": "f1ewtqcl",
13
14
  "B2u0y6b": "f132xexn",
14
15
  "Bceei9c": "f158kwzp",
15
16
  "Bahqtrf": "fk6fouc",
16
17
  "Be2twd7": "fy9rknc",
17
18
  "Bg96gwp": "fwrc4pm",
18
- "Dimara": "ft85np5",
19
- "ayd6f0": "fcm7iae",
19
+ "Bbmb7ep": ["f1aa9q02", "f16jpd5f"],
20
+ "Beyfa6y": ["f16jpd5f", "f1aa9q02"],
21
+ "B7oj6ja": ["f1jar5jt", "fyu767a"],
22
+ "Btl43ni": ["fyu767a", "f1jar5jt"],
23
+ "B4j52fo": "f5ogflp",
24
+ "Bekrc4i": ["f1hqa2wf", "finvdd3"],
25
+ "Bn0qgzm": "f1f09k3d",
26
+ "ibv6hh": ["finvdd3", "f1hqa2wf"],
27
+ "icvyot": "fzkkow9",
28
+ "vrafjx": ["fcdblym", "fjik90z"],
29
+ "oivjwe": "fg706s2",
30
+ "wvpqe5": ["fjik90z", "fcdblym"],
31
+ "g2u3we": "fghlq4f",
32
+ "h3c5rm": ["f1gn591s", "fjscplz"],
33
+ "B9xav0g": "fb073pr",
34
+ "zhjwy3": ["fjscplz", "f1gn591s"],
35
+ "z8tnut": "f10ra9hq",
36
+ "z189sj": ["fd9xhir", "f1jlaasf"],
37
+ "Byoj8tv": "f1d7kygh",
38
+ "uwmqm3": ["f1jlaasf", "fd9xhir"],
39
+ "De3pzq": "fxugw4r",
20
40
  "sj55zd": "f19n0e5",
21
41
  "Bhu2qc9": "fxeb0a7"
22
42
  },
@@ -24,44 +44,51 @@ var useStyles = /*#__PURE__*/__styles({
24
44
  "mc9l5x": "ftgm304"
25
45
  },
26
46
  "inverted": {
27
- "ayd6f0": "fdr7u1v",
47
+ "De3pzq": "f5pduvr",
28
48
  "sj55zd": "fqpbvvt"
29
49
  },
30
50
  "arrow": {
31
51
  "qhf8xq": "f1euv43f",
32
- "a9b677": "fpkirms",
33
- "Bqenvij": "ftt2rgf",
34
- "ayd6f0": "f1uo6wrk",
52
+ "De3pzq": "f1u2r49w",
35
53
  "Bcdw1i0": "fd7fpy0",
36
54
  "Bj3rh1h": "f1bsuimh",
55
+ "a9b677": "f1ekdpwm",
56
+ "Bqenvij": "f83vc9z",
37
57
  "rurcny": "fuzzvh5",
58
+ "Bex5imi": "fkk33zh",
38
59
  "xx9plb": "fxf9f1y",
60
+ "Bmqnesq": "f170vdtw",
39
61
  "Bdn98qo": "f103af6e",
40
62
  "Bbc2r3f": "f15umuo5",
41
- "B4zgs9e": "ffo048g",
42
- "Bex5imi": "fkk33zh",
63
+ "B1dvbpk": "f3wpjpt",
64
+ "D4ky5z": "f1k3tce7",
65
+ "cqycoz": "f1dkdgqi",
66
+ "I89eb": "f5ghsz",
67
+ "k1i1uq": "fyqop9u",
68
+ "Epwjcz": "f1m5ya7j",
69
+ "Bp1vogq": "f3sp63x",
43
70
  "px8gyy": ["f5bg3dr", "f1rfdd74"],
44
- "h6z6rw": ["fzd2j21", "f2549he"],
45
- "hl6cv3": "fotnskf",
71
+ "h6z6rw": "fzd2j21",
72
+ "hl6cv3": "f1773hnp",
46
73
  "Bh2vraf": "f1n8855c",
47
- "yayu3t": ["f1nq055x", "f13ohf3"],
74
+ "yayu3t": "f1v7783n",
48
75
  "wedwtw": "fsw6im5",
49
- "rhl9o9": "ftghsr9",
76
+ "rhl9o9": "fh2hsk5",
50
77
  "Bu8t5uz": "f159pzir",
51
- "B6q6orb": ["f1l8vbt4", "fsxzh25"],
78
+ "B6q6orb": "f11yvu4",
52
79
  "Bwwlvwl": "fm1ycve"
53
80
  }
54
81
  }, {
55
- "d": [".fjseox{display:none;}", ".f1sbtcvk{padding-top:5px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fy7v416{padding-bottom:7px;}", ".f132xexn{max-width:240px;}", ".f158kwzp{cursor:default;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".ft85np5{border-radius:var(--borderRadiusMedium);}", ".fcm7iae{background: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;}", ".fdr7u1v{background:var(--colorNeutralForeground2);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".f1euv43f{position:absolute;}", ".fpkirms{width:8.485px;}", ".ftt2rgf{height:8.485px;}", ".f1uo6wrk{background:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".fxf9f1y:before{position:absolute;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".ffo048g:before{background:inherit;}", ".fkk33zh:before{visibility:visible;}", ".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);}", ".f2549he: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\"] .fotnskf{bottom:0;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1nq055x{left:0;}", "[data-popper-placement^=\"right\"] .f13ohf3{right:0;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .ftghsr9{top:0;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f1l8vbt4{right:0;}", "[data-popper-placement^=\"left\"] .fsxzh25{left:0;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
82
+ "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;}"]
56
83
  });
57
84
  /**
58
85
  * Apply styling to the Tooltip slots based on the state
59
86
  */
60
87
 
61
88
 
62
- export var useTooltipStyles = function (state) {
63
- var styles = useStyles();
64
- state.root.className = mergeClasses(styles.root, state.appearance === 'inverted' && styles.inverted, state.visible && styles.visible, state.root.className);
89
+ export const useTooltipStyles_unstable = state => {
90
+ const styles = useStyles();
91
+ state.content.className = mergeClasses(tooltipClassName, styles.root, state.appearance === 'inverted' && styles.inverted, state.visible && styles.visible, state.content.className);
65
92
  state.arrowClassName = styles.arrow;
66
93
  return state;
67
94
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Tooltip/useTooltipStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AAGA;;AAEG;;AACH,IAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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AAA;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;;;AACH,OAAO,MAAM,yBAAyB,GAAI,KAAD,IAAsC;AAC7E,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,OAAN,CAAc,SAAd,GAA0B,YAAY,CACpC,gBADoC,EAEpC,MAAM,CAAC,IAF6B,EAGpC,KAAK,CAAC,UAAN,KAAqB,UAArB,IAAmC,MAAM,CAAC,QAHN,EAIpC,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,OAJY,EAKpC,KAAK,CAAC,OAAN,CAAc,SALsB,CAAtC;AAQA,EAAA,KAAK,CAAC,cAAN,GAAuB,MAAM,CAAC,KAA9B;AAEA,SAAO,KAAP;AACD,CAdM","sourceRoot":""}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./components/Tooltip/index"), exports);
10
10
  //# sourceMappingURL=Tooltip.js.map
@@ -1,6 +1,7 @@
1
+ import * as React from 'react';
1
2
  import type { TooltipProps } from './Tooltip.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
+ import type { FluentTriggerComponent } from '@fluentui/react-utilities';
3
4
  /**
4
5
  * A tooltip provides light weight contextual information on top of its target element.
5
6
  */
6
- export declare const Tooltip: ForwardRefComponent<TooltipProps>;
7
+ export declare const Tooltip: React.FC<TooltipProps> & FluentTriggerComponent;
@@ -5,22 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Tooltip = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const useTooltip_1 = /*#__PURE__*/require("./useTooltip");
9
9
 
10
- var useTooltip_1 = /*#__PURE__*/require("./useTooltip");
10
+ const renderTooltip_1 = /*#__PURE__*/require("./renderTooltip");
11
11
 
12
- var renderTooltip_1 = /*#__PURE__*/require("./renderTooltip");
13
-
14
- var useTooltipStyles_1 = /*#__PURE__*/require("./useTooltipStyles");
12
+ const useTooltipStyles_1 = /*#__PURE__*/require("./useTooltipStyles");
15
13
  /**
16
14
  * A tooltip provides light weight contextual information on top of its target element.
17
15
  */
18
16
 
19
17
 
20
- exports.Tooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {
21
- var state = useTooltip_1.useTooltip(props, ref);
22
- useTooltipStyles_1.useTooltipStyles(state);
23
- return renderTooltip_1.renderTooltip(state);
24
- });
18
+ const Tooltip = props => {
19
+ const state = useTooltip_1.useTooltip_unstable(props);
20
+ useTooltipStyles_1.useTooltipStyles_unstable(state);
21
+ return renderTooltip_1.renderTooltip_unstable(state);
22
+ };
23
+
24
+ exports.Tooltip = Tooltip;
25
25
  exports.Tooltip.displayName = 'Tooltip';
26
+ exports.Tooltip.isFluentTriggerComponent = true;
26
27
  //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,IAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AACA,IAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA6C,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AACpF,MAAM,KAAK,GAAG,YAAA,CAAA,UAAA,CAAW,KAAX,EAAkB,GAAlB,CAAd;AAEA,EAAA,kBAAA,CAAA,gBAAA,CAAiB,KAAjB;AACA,SAAO,eAAA,CAAA,aAAA,CAAc,KAAd,CAAP;AACD,CALyD,CAA7C;AAOb,OAAA,CAAA,OAAA,CAAQ,WAAR,GAAsB,SAAtB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;AAIA;;AAEG;;;AACI,MAAM,OAAO,GAAoD,KAAK,IAAG;AAC9E,QAAM,KAAK,GAAG,YAAA,CAAA,mBAAA,CAAoB,KAApB,CAAd;AAEA,EAAA,kBAAA,CAAA,yBAAA,CAA0B,KAA1B;AACA,SAAO,eAAA,CAAA,sBAAA,CAAuB,KAAvB,CAAP;AACD,CALM;;AAAM,OAAA,CAAA,OAAA,GAAO,OAAP;AAOb,OAAA,CAAA,OAAA,CAAQ,WAAR,GAAsB,SAAtB;AACA,OAAA,CAAA,OAAA,CAAQ,wBAAR,GAAmC,IAAnC","sourceRoot":""}