@fluentui/react-tooltip 9.0.0-beta.1 → 9.0.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/CHANGELOG.json +249 -1
  2. package/CHANGELOG.md +68 -2
  3. package/dist/react-tooltip.d.ts +2 -0
  4. package/lib/common/isConformant.js +1 -1
  5. package/lib/common/isConformant.js.map +1 -1
  6. package/lib/components/Tooltip/Tooltip.js +2 -2
  7. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  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/renderTooltip.js +6 -7
  12. package/lib/components/Tooltip/renderTooltip.js.map +1 -1
  13. package/lib/components/Tooltip/useTooltip.js +69 -79
  14. package/lib/components/Tooltip/useTooltip.js.map +1 -1
  15. package/lib/components/Tooltip/useTooltipStyles.d.ts +1 -0
  16. package/lib/components/Tooltip/useTooltipStyles.js +17 -8
  17. package/lib/components/Tooltip/useTooltipStyles.js.map +1 -1
  18. package/lib-commonjs/Tooltip.js +1 -1
  19. package/lib-commonjs/common/isConformant.js +3 -3
  20. package/lib-commonjs/common/isConformant.js.map +1 -1
  21. package/lib-commonjs/components/Tooltip/Tooltip.js +6 -6
  22. package/lib-commonjs/components/Tooltip/Tooltip.js.map +1 -1
  23. package/lib-commonjs/components/Tooltip/index.d.ts +1 -1
  24. package/lib-commonjs/components/Tooltip/index.js +2 -10
  25. package/lib-commonjs/components/Tooltip/index.js.map +1 -1
  26. package/lib-commonjs/components/Tooltip/renderTooltip.js +9 -11
  27. package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
  28. package/lib-commonjs/components/Tooltip/useTooltip.js +73 -84
  29. package/lib-commonjs/components/Tooltip/useTooltip.js.map +1 -1
  30. package/lib-commonjs/components/Tooltip/useTooltipStyles.d.ts +1 -0
  31. package/lib-commonjs/components/Tooltip/useTooltipStyles.js +21 -11
  32. package/lib-commonjs/components/Tooltip/useTooltipStyles.js.map +1 -1
  33. package/lib-commonjs/index.js +1 -1
  34. package/package.json +10 -11
@@ -1,12 +1,11 @@
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
4
  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
5
 
7
- var tooltipBorderRadius = 4; // Update the root's borderRadius in useTooltipStyles.ts if this changes
6
+ const tooltipBorderRadius = 4; // Update the root's borderRadius in useTooltipStyles.ts if this changes
8
7
 
9
- var arrowHeight = 6; // Update the arrow's width/height in useTooltipStyles.ts if this changes
8
+ const arrowHeight = 6; // Update the arrow's width/height in useTooltipStyles.ts if this changes
10
9
 
11
10
  /**
12
11
  * Create the state required to render Tooltip.
@@ -19,39 +18,32 @@ var arrowHeight = 6; // Update the arrow's width/height in useTooltipStyles.ts i
19
18
  * @param defaultProps - (optional) default prop values provided by the implementing type
20
19
  */
21
20
 
22
- export var useTooltip = function (props, ref) {
21
+ export const useTooltip = (props, ref) => {
23
22
  var _a, _b, _c, _d;
24
23
 
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({
24
+ const context = React.useContext(TooltipContext);
25
+ const isServerSideRender = useIsSSR();
26
+ const {
27
+ targetDocument
28
+ } = useFluent();
29
+ const [setDelayTimeout, clearDelayTimeout] = useTimeout();
30
+ const {
31
+ content,
32
+ inverted,
33
+ withArrow,
34
+ positioning,
35
+ onVisibleChange,
36
+ triggerAriaAttribute = 'label',
37
+ showDelay = 250,
38
+ hideDelay = 250
39
+ } = props;
40
+ const [visible, setVisibleInternal] = useControllableState({
46
41
  state: props.visible,
47
42
  initialState: false
48
- }),
49
- visible = _j[0],
50
- setVisibleInternal = _j[1];
51
-
52
- var setVisible = React.useCallback(function (newVisible, ev) {
43
+ });
44
+ const setVisible = React.useCallback((newVisible, ev) => {
53
45
  clearDelayTimeout();
54
- setVisibleInternal(function (oldVisible) {
46
+ setVisibleInternal(oldVisible => {
55
47
  if (newVisible !== oldVisible) {
56
48
  onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(ev, {
57
49
  visible: newVisible
@@ -61,76 +53,74 @@ export var useTooltip = function (props, ref) {
61
53
  return newVisible;
62
54
  });
63
55
  }, [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,
56
+ const state = {
57
+ content,
58
+ inverted,
59
+ withArrow,
60
+ positioning,
61
+ showDelay,
62
+ hideDelay,
63
+ triggerAriaAttribute,
64
+ visible,
73
65
  shouldRenderTooltip: visible,
74
66
  appearance: props.appearance,
75
67
  // Slots
76
68
  components: {
77
69
  root: 'div'
78
70
  },
79
- root: getNativeElementProps('div', __assign(__assign({
80
- role: 'tooltip'
81
- }, props), {
82
- ref: ref,
71
+ root: getNativeElementProps('div', {
72
+ role: 'tooltip',
73
+ ...props,
74
+ ref,
83
75
  id: useId('tooltip-', props.id)
84
- }))
76
+ })
85
77
  };
86
-
87
- var popperOptions = __assign({
78
+ const popperOptions = {
88
79
  enabled: state.visible,
89
80
  arrowPadding: 2 * tooltipBorderRadius,
90
81
  position: 'above',
91
82
  align: 'center',
92
- offset: [0, 4]
93
- }, resolvePositioningShorthand(state.positioning));
83
+ offset: [0, 4],
84
+ ...resolvePositioningShorthand(state.positioning)
85
+ };
94
86
 
95
87
  if (state.withArrow) {
96
88
  popperOptions.offset = mergeArrowOffset(popperOptions.offset, arrowHeight);
97
89
  }
98
90
 
99
- var _k = usePopper(popperOptions),
100
- targetRef = _k.targetRef,
101
- containerRef = _k.containerRef,
102
- arrowRef = _k.arrowRef;
103
-
91
+ const {
92
+ targetRef,
93
+ containerRef,
94
+ arrowRef
95
+ } = usePopper(popperOptions);
104
96
  state.root.ref = useMergedRefs(state.root.ref, containerRef);
105
97
  state.arrowRef = arrowRef; // When this tooltip is visible, hide any other tooltips, and register it
106
98
  // as the visibleTooltip with the TooltipContext.
107
99
  // Also add a listener on document to hide the tooltip if Escape is pressed
108
100
 
109
- useIsomorphicLayoutEffect(function () {
101
+ useIsomorphicLayoutEffect(() => {
110
102
  var _a;
111
103
 
112
104
  if (visible) {
113
- var thisTooltip_1 = {
114
- hide: function () {
115
- return setVisible(false);
116
- }
105
+ const thisTooltip = {
106
+ hide: () => setVisible(false)
117
107
  };
118
108
  (_a = context.visibleTooltip) === null || _a === void 0 ? void 0 : _a.hide();
119
- context.visibleTooltip = thisTooltip_1;
109
+ context.visibleTooltip = thisTooltip;
120
110
 
121
- var onDocumentKeyDown_1 = function (ev) {
111
+ const onDocumentKeyDown = ev => {
122
112
  if (ev.key === 'Escape' || ev.key === 'Esc') {
123
- thisTooltip_1.hide();
113
+ thisTooltip.hide();
124
114
  }
125
115
  };
126
116
 
127
- targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.addEventListener('keydown', onDocumentKeyDown_1);
128
- return function () {
129
- if (context.visibleTooltip === thisTooltip_1) {
117
+ targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.addEventListener('keydown', onDocumentKeyDown);
118
+ return () => {
119
+ if (context.visibleTooltip === thisTooltip) {
130
120
  context.visibleTooltip = undefined;
131
121
  }
132
122
 
133
- targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.removeEventListener('keydown', onDocumentKeyDown_1);
123
+ targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.removeEventListener('keydown', onDocumentKeyDown);
134
124
  };
135
125
  }
136
126
  }, [context, targetDocument, visible, setVisible]); // The focused element gets a blur event when the document loses focus
@@ -139,24 +129,24 @@ export var useTooltip = function (props, ref) {
139
129
  // checking if the blurred element is still the document's activeElement.
140
130
  // See https://github.com/microsoft/fluentui/issues/13541
141
131
 
142
- var ignoreNextFocusEventRef = React.useRef(false); // Listener for onPointerEnter and onFocus on the trigger element
132
+ const ignoreNextFocusEventRef = React.useRef(false); // Listener for onPointerEnter and onFocus on the trigger element
143
133
 
144
- var onEnterTrigger = React.useCallback(function (ev) {
134
+ const onEnterTrigger = React.useCallback(ev => {
145
135
  if (ev.type === 'focus' && ignoreNextFocusEventRef.current) {
146
136
  ignoreNextFocusEventRef.current = false;
147
137
  return;
148
138
  } // Show immediately if another tooltip is already visible
149
139
 
150
140
 
151
- var delay = context.visibleTooltip ? 0 : state.showDelay;
152
- setDelayTimeout(function () {
141
+ const delay = context.visibleTooltip ? 0 : state.showDelay;
142
+ setDelayTimeout(() => {
153
143
  setVisible(true, ev);
154
144
  }, delay);
155
145
  ev.persist(); // Persist the event since the setVisible call will happen asynchronously
156
146
  }, [setDelayTimeout, setVisible, state.showDelay, context]); // Listener for onPointerLeave and onBlur on the trigger element
157
147
 
158
- var onLeaveTrigger = React.useCallback(function (ev) {
159
- var delay = state.hideDelay;
148
+ const onLeaveTrigger = React.useCallback(ev => {
149
+ let delay = state.hideDelay;
160
150
 
161
151
  if (ev.type === 'blur') {
162
152
  // Hide immediately when losing focus
@@ -164,7 +154,7 @@ export var useTooltip = function (props, ref) {
164
154
  ignoreNextFocusEventRef.current = (targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement) === ev.target;
165
155
  }
166
156
 
167
- setDelayTimeout(function () {
157
+ setDelayTimeout(() => {
168
158
  setVisible(false, ev);
169
159
  }, delay);
170
160
  ev.persist(); // Persist the event since the setVisible call will happen asynchronously
@@ -173,17 +163,17 @@ export var useTooltip = function (props, ref) {
173
163
 
174
164
  state.root.onPointerEnter = useMergedCallbacks(state.root.onPointerEnter, clearDelayTimeout);
175
165
  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)
166
+ const child = /*#__PURE__*/React.isValidElement(state.root.children) ? state.root.children : undefined; // The props to add to the trigger element (child)
177
167
 
178
- var triggerProps = {
168
+ const triggerProps = {
179
169
  onPointerEnter: useMergedCallbacks((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.onPointerEnter, onEnterTrigger),
180
170
  onPointerLeave: useMergedCallbacks((_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.onPointerLeave, onLeaveTrigger),
181
171
  onFocus: useMergedCallbacks((_c = child === null || child === void 0 ? void 0 : child.props) === null || _c === void 0 ? void 0 : _c.onFocus, onEnterTrigger),
182
172
  onBlur: useMergedCallbacks((_d = child === null || child === void 0 ? void 0 : child.props) === null || _d === void 0 ? void 0 : _d.onBlur, onLeaveTrigger)
183
173
  }; // If the target prop is not provided, attach targetRef to the trigger element's ref prop
184
174
 
185
- var childWithRef = child;
186
- var childTargetRef = useMergedRefs(childWithRef === null || childWithRef === void 0 ? void 0 : childWithRef.ref, targetRef);
175
+ const childWithRef = child;
176
+ const childTargetRef = useMergedRefs(childWithRef === null || childWithRef === void 0 ? void 0 : childWithRef.ref, targetRef);
187
177
 
188
178
  if (popperOptions.target === undefined) {
189
179
  triggerProps.ref = childTargetRef;
@@ -215,8 +205,8 @@ export var useTooltip = function (props, ref) {
215
205
  * Combine up to two event callbacks into a single function that calls them in order
216
206
  */
217
207
 
218
- var useMergedCallbacks = function (callback1, callback2) {
219
- return React.useCallback(function (ev) {
208
+ const useMergedCallbacks = (callback1, callback2) => {
209
+ return React.useCallback(ev => {
220
210
  callback1 === null || callback1 === void 0 ? void 0 : callback1(ev);
221
211
  callback2 === null || callback2 === void 0 ? void 0 : callback2(ev);
222
212
  }, [callback1, callback2]);
@@ -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;AAAA,MACA,QAAQ,GAON,KAAK,CAPC,QADR;AAAA,MAEA,SAAS,GAMP,KAAK,CANE,SAFT;A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;AAOD,CAXD","sourceRoot":""}
@@ -1,4 +1,5 @@
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
  */
@@ -1,9 +1,11 @@
1
1
  import { __styles, mergeClasses } from '@fluentui/react-make-styles';
2
+ import { createArrowStyles } from '@fluentui/react-positioning';
3
+ export const tooltipClassName = 'fui-Tooltip';
2
4
  /**
3
5
  * Styles for the tooltip
4
6
  */
5
7
 
6
- var useStyles = /*#__PURE__*/__styles({
8
+ const useStyles = /*#__PURE__*/__styles({
7
9
  "root": {
8
10
  "mc9l5x": "fjseox",
9
11
  "z8tnut": "f1sbtcvk",
@@ -29,19 +31,26 @@ var useStyles = /*#__PURE__*/__styles({
29
31
  },
30
32
  "arrow": {
31
33
  "qhf8xq": "f1euv43f",
32
- "a9b677": "fpkirms",
33
- "Bqenvij": "ftt2rgf",
34
34
  "ayd6f0": "f1uo6wrk",
35
35
  "Bcdw1i0": "fd7fpy0",
36
36
  "Bj3rh1h": "f1bsuimh",
37
+ "Bubjx69": "f9ikmtg",
38
+ "a9b677": "fpkirms",
37
39
  "rurcny": "fuzzvh5",
40
+ "zf3lio": "f1qudtws",
38
41
  "xx9plb": "fxf9f1y",
39
42
  "Bdn98qo": "f103af6e",
40
43
  "Bbc2r3f": "f15umuo5",
41
44
  "B4zgs9e": "ffo048g",
42
45
  "Bex5imi": "fkk33zh",
43
46
  "px8gyy": ["f5bg3dr", "f1rfdd74"],
44
- "h6z6rw": ["fzd2j21", "f2549he"],
47
+ "h6z6rw": "fzd2j21",
48
+ "Iykf4b": ["feexxpo", "f7s5fvx"],
49
+ "F42hee": ["f1jq8eg5", "f12n7c5j"],
50
+ "Blxsnla": ["f1wv7y6t", "fi4qyh6"],
51
+ "t2scew": "fcvru7r",
52
+ "Emsed9": "f7ybgnc",
53
+ "E11wbp": "f16xtfle",
45
54
  "hl6cv3": "fotnskf",
46
55
  "Bh2vraf": "f1n8855c",
47
56
  "yayu3t": ["f1nq055x", "f13ohf3"],
@@ -52,16 +61,16 @@ var useStyles = /*#__PURE__*/__styles({
52
61
  "Bwwlvwl": "fm1ycve"
53
62
  }
54
63
  }, {
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;}"]
64
+ "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;}", ".f1uo6wrk{background:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".f9ikmtg{aspect-ratio:1;}", ".fpkirms{width:8.485px;}", ".fuzzvh5:before{content:\"\";}", ".f1qudtws:before{border-radius:4px;}", ".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);}", "[data-popper-placement] .feexxpo:before{border-right-width:1px;}", "[data-popper-placement] .f7s5fvx:before{border-left-width:1px;}", "[data-popper-placement] .f1jq8eg5:before{border-right-style:solid;}", "[data-popper-placement] .f12n7c5j:before{border-left-style:solid;}", "[data-popper-placement] .f1wv7y6t:before{border-right-color:transparent;}", "[data-popper-placement] .fi4qyh6:before{border-left-color:transparent;}", "[data-popper-placement] .fcvru7r:before{border-bottom-width:1px;}", "[data-popper-placement] .f7ybgnc:before{border-bottom-style:solid;}", "[data-popper-placement] .f16xtfle:before{border-bottom-color:transparent;}", "[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;}"]
56
65
  });
57
66
  /**
58
67
  * Apply styling to the Tooltip slots based on the state
59
68
  */
60
69
 
61
70
 
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);
71
+ export const useTooltipStyles = state => {
72
+ const styles = useStyles();
73
+ state.root.className = mergeClasses(tooltipClassName, styles.root, state.appearance === 'inverted' && styles.inverted, state.visible && styles.visible, state.root.className);
65
74
  state.arrowClassName = styles.arrow;
66
75
  return state;
67
76
  };
@@ -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;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;AAwDA;;AAEG;;;AACH,OAAO,IAAM,gBAAgB,GAAG,UAAC,KAAD,EAAoB;AAClD,MAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,MAAM,CAAC,IAD0B,EAEjC,KAAK,CAAC,UAAN,KAAqB,UAArB,IAAmC,MAAM,CAAC,QAFT,EAGjC,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,OAHS,EAIjC,KAAK,CAAC,IAAN,CAAW,SAJsB,CAAnC;AAOA,EAAA,KAAK,CAAC,cAAN,GAAuB,MAAM,CAAC,KAA9B;AAEA,SAAO,KAAP;AACD,CAbM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Tooltip/useTooltipStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AACA,SAAS,iBAAT,QAAkC,6BAAlC;AAGA,OAAO,MAAM,gBAAgB,GAAG,aAAzB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;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;;;AACH,OAAO,MAAM,gBAAgB,GAAI,KAAD,IAAsC;AACpE,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,gBADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,UAAN,KAAqB,UAArB,IAAmC,MAAM,CAAC,QAHT,EAIjC,KAAK,CAAC,OAAN,IAAiB,MAAM,CAAC,OAJS,EAKjC,KAAK,CAAC,IAAN,CAAW,SALsB,CAAnC;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
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.isConformant = void 0;
7
7
 
8
- var react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
8
+ const react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
9
9
 
10
- var react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
10
+ const react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
11
11
 
12
12
  function isConformant(testInfo) {
13
- var defaultOptions = {
13
+ const defaultOptions = {
14
14
  asPropHandlesRef: true,
15
15
  componentPath: module.parent.filename.replace('.test', ''),
16
16
  extraTests: react_conformance_make_styles_1.default
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAH+C,GAA7D;AAMA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAVD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAEA,MAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAH+C,GAA7D;AAMA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAVD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Tooltip = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var useTooltip_1 = /*#__PURE__*/require("./useTooltip");
10
+ const useTooltip_1 = /*#__PURE__*/require("./useTooltip");
11
11
 
12
- var renderTooltip_1 = /*#__PURE__*/require("./renderTooltip");
12
+ const renderTooltip_1 = /*#__PURE__*/require("./renderTooltip");
13
13
 
14
- var useTooltipStyles_1 = /*#__PURE__*/require("./useTooltipStyles");
14
+ const useTooltipStyles_1 = /*#__PURE__*/require("./useTooltipStyles");
15
15
  /**
16
16
  * A tooltip provides light weight contextual information on top of its target element.
17
17
  */
18
18
 
19
19
 
20
- exports.Tooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {
21
- var state = useTooltip_1.useTooltip(props, ref);
20
+ exports.Tooltip = /*#__PURE__*/React.forwardRef((props, ref) => {
21
+ const state = useTooltip_1.useTooltip(props, ref);
22
22
  useTooltipStyles_1.useTooltipStyles(state);
23
23
  return renderTooltip_1.renderTooltip(state);
24
24
  });
@@ -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":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;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;;;AACU,OAAA,CAAA,OAAA,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxF,QAAM,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":""}
@@ -2,4 +2,4 @@ export * from './Tooltip';
2
2
  export * from './Tooltip.types';
3
3
  export * from './renderTooltip';
4
4
  export * from './useTooltip';
5
- export { useTooltipStyles } from './useTooltipStyles';
5
+ export * from './useTooltipStyles';
@@ -3,9 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useTooltipStyles = void 0;
7
6
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
9
8
 
10
9
  tslib_1.__exportStar(require("./Tooltip"), exports);
11
10
 
@@ -15,12 +14,5 @@ tslib_1.__exportStar(require("./renderTooltip"), exports);
15
14
 
16
15
  tslib_1.__exportStar(require("./useTooltip"), exports);
17
16
 
18
- var useTooltipStyles_1 = /*#__PURE__*/require("./useTooltipStyles");
19
-
20
- Object.defineProperty(exports, "useTooltipStyles", {
21
- enumerable: true,
22
- get: function () {
23
- return useTooltipStyles_1.useTooltipStyles;
24
- }
25
- });
17
+ tslib_1.__exportStar(require("./useTooltipStyles"), exports);
26
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Tooltip/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,IAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,kBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,kBAAA,CAAA,gBAAA;AAAgB;AAAhB,CAAA","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Tooltip/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -5,24 +5,22 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.renderTooltip = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- var React = /*#__PURE__*/require("react");
10
+ const react_portal_1 = /*#__PURE__*/require("@fluentui/react-portal");
11
11
 
12
- var react_portal_1 = /*#__PURE__*/require("@fluentui/react-portal");
13
-
14
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
12
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
15
13
  /**
16
14
  * Render the final JSX of Tooltip
17
15
  */
18
16
 
19
17
 
20
- var renderTooltip = function (state) {
21
- var _a = react_utilities_1.getSlots(state, ['root']),
22
- slots = _a.slots,
23
- slotProps = _a.slotProps;
24
-
25
- return React.createElement(React.Fragment, null, state.root.children, state.shouldRenderTooltip && React.createElement(react_portal_1.Portal, null, React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), state.withArrow && React.createElement("div", {
18
+ const renderTooltip = state => {
19
+ const {
20
+ slots,
21
+ slotProps
22
+ } = react_utilities_1.getSlots(state, ['root']);
23
+ return React.createElement(React.Fragment, null, state.root.children, state.shouldRenderTooltip && React.createElement(react_portal_1.Portal, null, React.createElement(slots.root, Object.assign({}, slotProps.root), state.withArrow && React.createElement("div", {
26
24
  ref: state.arrowRef,
27
25
  className: state.arrowClassName
28
26
  }), state.content)));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Tooltip/renderTooltip.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,IAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,IAAM,aAAa,GAAG,UAAC,KAAD,EAAoB;AACzC,MAAA,EAAA,GAAuB,iBAAA,CAAA,QAAA,CAAuB,KAAvB,EAA8B,CAAC,MAAD,CAA9B,CAAvB;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,SACE,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,EACG,KAAK,CAAC,IAAN,CAAW,QADd,EAEG,KAAK,CAAC,mBAAN,IACC,KAAA,CAAA,aAAA,CAAC,cAAA,CAAA,MAAD,EAAO,IAAP,EACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,OAAA,CAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,KAAK,CAAC,SAAN,IAAmB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADtB,EAEG,KAAK,CAAC,OAFT,CADF,CAHJ,CADF;AAaD,CAhBM;;AAAM,OAAA,CAAA,aAAA,GAAa,aAAb","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Tooltip/renderTooltip.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,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