@fluentui/react-tooltip 0.0.0-nightly442708a36520211209.1 → 0.0.0-nightly4e6470c86320220127.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.
Files changed (34) hide show
  1. package/CHANGELOG.json +73 -25
  2. package/CHANGELOG.md +19 -14
  3. package/dist/react-tooltip.d.ts +19 -28
  4. package/lib/components/Tooltip/Tooltip.js +6 -6
  5. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  6. package/lib/components/Tooltip/Tooltip.types.d.ts +14 -22
  7. package/lib/components/Tooltip/private/constants.d.ts +12 -0
  8. package/lib/components/Tooltip/private/constants.js +14 -0
  9. package/lib/components/Tooltip/private/constants.js.map +1 -0
  10. package/lib/components/Tooltip/renderTooltip.d.ts +1 -1
  11. package/lib/components/Tooltip/renderTooltip.js +4 -3
  12. package/lib/components/Tooltip/renderTooltip.js.map +1 -1
  13. package/lib/components/Tooltip/useTooltip.d.ts +3 -4
  14. package/lib/components/Tooltip/useTooltip.js +20 -27
  15. package/lib/components/Tooltip/useTooltip.js.map +1 -1
  16. package/lib/components/Tooltip/useTooltipStyles.d.ts +1 -1
  17. package/lib/components/Tooltip/useTooltipStyles.js +37 -24
  18. package/lib/components/Tooltip/useTooltipStyles.js.map +1 -1
  19. package/lib-commonjs/components/Tooltip/Tooltip.js +3 -3
  20. package/lib-commonjs/components/Tooltip/Tooltip.js.map +1 -1
  21. package/lib-commonjs/components/Tooltip/Tooltip.types.d.ts +14 -22
  22. package/lib-commonjs/components/Tooltip/private/constants.d.ts +12 -0
  23. package/lib-commonjs/components/Tooltip/private/constants.js +21 -0
  24. package/lib-commonjs/components/Tooltip/private/constants.js.map +1 -0
  25. package/lib-commonjs/components/Tooltip/renderTooltip.d.ts +1 -1
  26. package/lib-commonjs/components/Tooltip/renderTooltip.js +6 -5
  27. package/lib-commonjs/components/Tooltip/renderTooltip.js.map +1 -1
  28. package/lib-commonjs/components/Tooltip/useTooltip.d.ts +3 -4
  29. package/lib-commonjs/components/Tooltip/useTooltip.js +25 -31
  30. package/lib-commonjs/components/Tooltip/useTooltip.js.map +1 -1
  31. package/lib-commonjs/components/Tooltip/useTooltipStyles.d.ts +1 -1
  32. package/lib-commonjs/components/Tooltip/useTooltipStyles.js +43 -28
  33. package/lib-commonjs/components/Tooltip/useTooltipStyles.js.map +1 -1
  34. package/package.json +9 -11
package/CHANGELOG.json CHANGED
@@ -2,17 +2,29 @@
2
2
  "name": "@fluentui/react-tooltip",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 09 Dec 2021 04:15:10 GMT",
6
- "tag": "@fluentui/react-tooltip_v0.0.0-nightly442708a36520211209.1",
7
- "version": "0.0.0-nightly442708a36520211209.1",
5
+ "date": "Thu, 27 Jan 2022 04:17:45 GMT",
6
+ "tag": "@fluentui/react-tooltip_v0.0.0-nightly4e6470c86320220127.1",
7
+ "version": "0.0.0-nightly4e6470c86320220127.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-tooltip",
13
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9",
13
+ "commit": "4288e9baaf65cf1338bb7b5682aca694d6e32e0d",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "behowell@microsoft.com",
18
+ "package": "@fluentui/react-tooltip",
19
+ "commit": "caaf3307f864b04369c13fe69d7dc8fe7ab84735",
20
+ "comment": "Move arrowHeight and tooltipBorderRadius into a shared constants.ts file"
21
+ },
22
+ {
23
+ "author": "Humberto.Morimoto@microsoft.com",
24
+ "package": "@fluentui/react-tooltip",
25
+ "commit": "9204703d0a42ee34a20ae4cf28952e13872647ba",
26
+ "comment": "Replacing use of functions in makeStyles with direct use of tokens."
27
+ },
16
28
  {
17
29
  "author": "olfedias@microsoft.com",
18
30
  "package": "@fluentui/react-tooltip",
@@ -20,66 +32,102 @@
20
32
  "comment": "update styles to not use CSS shorthands"
21
33
  },
22
34
  {
23
- "author": "beachball",
35
+ "author": "behowell@microsoft.com",
24
36
  "package": "@fluentui/react-tooltip",
25
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly442708a36520211209.1",
26
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
37
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
38
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
27
39
  },
28
40
  {
29
- "author": "beachball",
41
+ "author": "behowell@microsoft.com",
30
42
  "package": "@fluentui/react-tooltip",
31
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightly442708a36520211209.1",
32
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
43
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
44
+ "comment": "Remove component's shorthandProps array"
33
45
  },
34
46
  {
35
- "author": "beachball",
47
+ "author": "behowell@microsoft.com",
48
+ "package": "@fluentui/react-tooltip",
49
+ "commit": "09804275c7f346db54c33d4ff347bffc33676014",
50
+ "comment": "Fix tooltip arrow rendering, and add high contrast border around Tooltip"
51
+ },
52
+ {
53
+ "author": "behowell@microsoft.com",
54
+ "package": "@fluentui/react-tooltip",
55
+ "commit": "1513362b9adaae5d7dbda6b364e40e736710a79f",
56
+ "comment": "Remove Tooltip's inverted prop in favor of the appearance prop"
57
+ },
58
+ {
59
+ "author": "olfedias@microsoft.com",
60
+ "package": "@fluentui/react-tooltip",
61
+ "commit": "17c0b18d7983d414095661bf9f57e14c0c22685d",
62
+ "comment": "Replace make-styles packages with griffel equivalents."
63
+ },
64
+ {
65
+ "author": "behowell@microsoft.com",
36
66
  "package": "@fluentui/react-tooltip",
37
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly442708a36520211209.1",
38
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
67
+ "commit": "58ae40d6817b1fa4e095a94707dfef5050aa4c11",
68
+ "comment": "Replace `triggerAriaAttribute` prop with `relationship` and make it required with no default"
39
69
  },
40
70
  {
41
71
  "author": "beachball",
42
72
  "package": "@fluentui/react-tooltip",
43
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly442708a36520211209.1",
44
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
73
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightly4e6470c86320220127.1",
74
+ "commit": "4288e9baaf65cf1338bb7b5682aca694d6e32e0d"
45
75
  },
46
76
  {
47
77
  "author": "beachball",
48
78
  "package": "@fluentui/react-tooltip",
49
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly442708a36520211209.1",
50
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
79
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly4e6470c86320220127.1",
80
+ "commit": "4288e9baaf65cf1338bb7b5682aca694d6e32e0d"
51
81
  },
52
82
  {
53
83
  "author": "beachball",
54
84
  "package": "@fluentui/react-tooltip",
55
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly442708a36520211209.1",
56
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
85
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly4e6470c86320220127.1",
86
+ "commit": "4288e9baaf65cf1338bb7b5682aca694d6e32e0d"
57
87
  },
58
88
  {
59
89
  "author": "beachball",
60
90
  "package": "@fluentui/react-tooltip",
61
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly442708a36520211209.1",
62
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
91
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly4e6470c86320220127.1",
92
+ "commit": "4288e9baaf65cf1338bb7b5682aca694d6e32e0d"
63
93
  },
64
94
  {
65
95
  "author": "beachball",
66
96
  "package": "@fluentui/react-tooltip",
67
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly442708a36520211209.1",
68
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
97
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly4e6470c86320220127.1",
98
+ "commit": "4288e9baaf65cf1338bb7b5682aca694d6e32e0d"
69
99
  },
70
100
  {
71
101
  "author": "beachball",
72
102
  "package": "@fluentui/react-tooltip",
73
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly442708a36520211209.1",
74
- "commit": "20c96796031556594c49a5171b45f4ed191b06d9"
103
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly4e6470c86320220127.1",
104
+ "commit": "4288e9baaf65cf1338bb7b5682aca694d6e32e0d"
75
105
  }
76
106
  ],
77
107
  "none": [
108
+ {
109
+ "author": "martinhochel@microsoft.com",
110
+ "package": "@fluentui/react-tooltip",
111
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
112
+ "comment": "chore: use storybook runner for all vNext packages"
113
+ },
78
114
  {
79
115
  "author": "andredias@microsoft.com",
80
116
  "package": "@fluentui/react-tooltip",
81
117
  "commit": "b59f44ed5db37b457476fdb3ec86ff273b776646",
82
118
  "comment": "Migrate package to use solution tsconfigs"
119
+ },
120
+ {
121
+ "author": "olfedias@microsoft.com",
122
+ "package": "@fluentui/react-tooltip",
123
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
124
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
125
+ },
126
+ {
127
+ "author": "elcraig@microsoft.com",
128
+ "package": "@fluentui/react-tooltip",
129
+ "commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
130
+ "comment": "Remove outdated boilerplate comment in useTooltip"
83
131
  }
84
132
  ]
85
133
  }
package/CHANGELOG.md CHANGED
@@ -1,27 +1,32 @@
1
1
  # Change Log - @fluentui/react-tooltip
2
2
 
3
- This log was last generated on Thu, 09 Dec 2021 04:15:10 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 27 Jan 2022 04:17:45 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly442708a36520211209.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v0.0.0-nightly442708a36520211209.1)
7
+ ## [0.0.0-nightly4e6470c86320220127.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v0.0.0-nightly4e6470c86320220127.1)
8
8
 
9
- Thu, 09 Dec 2021 04:15:10 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.5..@fluentui/react-tooltip_v0.0.0-nightly442708a36520211209.1)
9
+ Thu, 27 Jan 2022 04:17:45 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tooltip_v9.0.0-beta.5..@fluentui/react-tooltip_v0.0.0-nightly4e6470c86320220127.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/4288e9baaf65cf1338bb7b5682aca694d6e32e0d) by email not defined)
15
+ - Move arrowHeight and tooltipBorderRadius into a shared constants.ts file ([PR #21204](https://github.com/microsoft/fluentui/pull/21204) by behowell@microsoft.com)
16
+ - Replacing use of functions in makeStyles with direct use of tokens. ([PR #21058](https://github.com/microsoft/fluentui/pull/21058) by Humberto.Morimoto@microsoft.com)
15
17
  - update styles to not use CSS shorthands ([PR #20795](https://github.com/microsoft/fluentui/pull/20795) by olfedias@microsoft.com)
16
- - Bump @fluentui/react-make-styles to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
17
- - Bump @fluentui/react-portal to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
18
- - Bump @fluentui/react-positioning to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
19
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
20
- - Bump @fluentui/react-theme to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
22
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
23
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
24
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly442708a36520211209.1 ([commit](https://github.com/microsoft/fluentui/commit/20c96796031556594c49a5171b45f4ed191b06d9) by beachball)
18
+ - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
19
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
20
+ - Fix tooltip arrow rendering, and add high contrast border around Tooltip ([PR #21086](https://github.com/microsoft/fluentui/pull/21086) by behowell@microsoft.com)
21
+ - Remove Tooltip's inverted prop in favor of the appearance prop ([PR #21327](https://github.com/microsoft/fluentui/pull/21327) by behowell@microsoft.com)
22
+ - Replace make-styles packages with griffel equivalents. ([PR #21422](https://github.com/microsoft/fluentui/pull/21422) by olfedias@microsoft.com)
23
+ - Replace `triggerAriaAttribute` prop with `relationship` and make it required with no default ([PR #21331](https://github.com/microsoft/fluentui/pull/21331) by behowell@microsoft.com)
24
+ - Bump @fluentui/react-portal to v0.0.0-nightly4e6470c86320220127.1 ([commit](https://github.com/microsoft/fluentui/commit/4288e9baaf65cf1338bb7b5682aca694d6e32e0d) by beachball)
25
+ - Bump @fluentui/react-positioning to v0.0.0-nightly4e6470c86320220127.1 ([commit](https://github.com/microsoft/fluentui/commit/4288e9baaf65cf1338bb7b5682aca694d6e32e0d) by beachball)
26
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly4e6470c86320220127.1 ([commit](https://github.com/microsoft/fluentui/commit/4288e9baaf65cf1338bb7b5682aca694d6e32e0d) by beachball)
27
+ - Bump @fluentui/react-theme to v0.0.0-nightly4e6470c86320220127.1 ([commit](https://github.com/microsoft/fluentui/commit/4288e9baaf65cf1338bb7b5682aca694d6e32e0d) by beachball)
28
+ - Bump @fluentui/react-utilities to v0.0.0-nightly4e6470c86320220127.1 ([commit](https://github.com/microsoft/fluentui/commit/4288e9baaf65cf1338bb7b5682aca694d6e32e0d) by beachball)
29
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly4e6470c86320220127.1 ([commit](https://github.com/microsoft/fluentui/commit/4288e9baaf65cf1338bb7b5682aca694d6e32e0d) by beachball)
25
30
 
26
31
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-tooltip_v9.0.0-beta.5)
27
32
 
@@ -15,7 +15,7 @@ export declare type OnVisibleChangeData = {
15
15
  /**
16
16
  * Render the final JSX of Tooltip
17
17
  */
18
- export declare const renderTooltip: (state: TooltipState) => JSX.Element;
18
+ export declare const renderTooltip_unstable: (state: TooltipState) => JSX.Element;
19
19
 
20
20
  /**
21
21
  * A tooltip provides light weight contextual information on top of its target element.
@@ -29,20 +29,17 @@ export declare const tooltipClassName = "fui-Tooltip";
29
29
  */
30
30
  export declare type TooltipCommons = {
31
31
  /**
32
- * A tooltip can appear with the default appearance or inverted.
33
- * When not specified, the default appearance is used.
32
+ * The tooltip's visual appearance.
33
+ * * `normal` - Uses the theme's background and text colors.
34
+ * * `inverted` - Higher contrast variant that uses the theme's inverted colors.
35
+ *
36
+ * @defaultvalue normal
34
37
  */
35
- appearance?: 'inverted';
38
+ appearance?: 'normal' | 'inverted';
36
39
  /**
37
40
  * The content displayed inside the tooltip.
38
41
  */
39
42
  content: React_2.ReactNode;
40
- /**
41
- * Color variant with inverted colors
42
- *
43
- * @defaultvalue false
44
- */
45
- inverted?: boolean;
46
43
  /**
47
44
  * Render an arrow pointing to the target element
48
45
  *
@@ -69,15 +66,15 @@ export declare type TooltipCommons = {
69
66
  */
70
67
  onVisibleChange?: (event: React_2.PointerEvent<HTMLElement> | React_2.FocusEvent<HTMLElement> | undefined, data: OnVisibleChangeData) => void;
71
68
  /**
72
- * Specifies which aria attribute to set on the trigger element.
73
- * * `label` - Set aria-label to the tooltip's content. Requires content to be a string; if not, uses `labelledby`.
74
- * * `labelledby` - Set aria-labelledby to the tooltip's id. The id is generated if not provided.
75
- * * `describedby` - Set aria-describedby to the tooltip's id. The id is generated if not provided.
76
- * * null - Do not set any aria attributes on the trigger element.
69
+ * (Required) Specifies whether this tooltip is acting as the description or label of its trigger element.
77
70
  *
78
- * @defaultvalue label
71
+ * * `label` - The tooltip sets the trigger's aria-label or aria-labelledby attribute. This is useful for buttons
72
+ * displaying only an icon, for example.
73
+ * * `description` - The tooltip sets the trigger's aria-description or aria-describedby attribute.
74
+ * * `inaccessible` - No aria attributes are set on the trigger. This makes the tooltip's content inaccessible to
75
+ * screen readers, and should only be used if the tooltip's text is available by some other means.
79
76
  */
80
- triggerAriaAttribute: 'label' | 'labelledby' | 'describedby' | null;
77
+ relationship: 'label' | 'description' | 'inaccessible';
81
78
  /**
82
79
  * Delay before the tooltip is shown, in milliseconds.
83
80
  *
@@ -95,7 +92,7 @@ export declare type TooltipCommons = {
95
92
  /**
96
93
  * Properties for Tooltip
97
94
  */
98
- export declare type TooltipProps = ComponentProps<TooltipSlots> & Partial<Omit<TooltipCommons, 'content'>> & Pick<TooltipCommons, 'content'>;
95
+ export declare type TooltipProps = ComponentProps<TooltipSlots> & Partial<Omit<TooltipCommons, 'content' | 'relationship'>> & Pick<TooltipCommons, 'content' | 'relationship'>;
99
96
 
100
97
  /**
101
98
  * Slot properties for Tooltip
@@ -120,11 +117,6 @@ export declare type TooltipSlots = {
120
117
  export declare type TooltipState = ComponentState<TooltipSlots> & TooltipCommons & {
121
118
  /**
122
119
  * Whether the tooltip should be rendered to the DOM.
123
- *
124
- * Normally the tooltip will only be rendered when visible. However, if
125
- * triggerAriaAttribute is labelledby or describedby, the tooltip will
126
- * always be rendered even when hidden so that those aria attributes
127
- * to always refer to a valid DOM element.
128
120
  */
129
121
  shouldRenderTooltip?: boolean;
130
122
  /**
@@ -147,18 +139,17 @@ export declare type TooltipTriggerProps = {
147
139
  /**
148
140
  * Create the state required to render Tooltip.
149
141
  *
150
- * The returned state can be modified with hooks such as useTooltipStyles,
151
- * before being passed to renderTooltip.
142
+ * The returned state can be modified with hooks such as useTooltipStyles_unstable,
143
+ * before being passed to renderTooltip_unstable.
152
144
  *
153
145
  * @param props - props from this instance of Tooltip
154
146
  * @param ref - reference to root HTMLElement of Tooltip
155
- * @param defaultProps - (optional) default prop values provided by the implementing type
156
147
  */
157
- export declare const useTooltip: (props: TooltipProps, ref: React_2.Ref<HTMLDivElement>) => TooltipState;
148
+ export declare const useTooltip_unstable: (props: TooltipProps, ref: React_2.Ref<HTMLDivElement>) => TooltipState;
158
149
 
159
150
  /**
160
151
  * Apply styling to the Tooltip slots based on the state
161
152
  */
162
- export declare const useTooltipStyles: (state: TooltipState) => TooltipState;
153
+ export declare const useTooltipStyles_unstable: (state: TooltipState) => TooltipState;
163
154
 
164
155
  export { }
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useTooltip } from './useTooltip';
3
- import { renderTooltip } from './renderTooltip';
4
- import { useTooltipStyles } from './useTooltipStyles';
2
+ import { useTooltip_unstable } from './useTooltip';
3
+ import { renderTooltip_unstable } from './renderTooltip';
4
+ import { useTooltipStyles_unstable } from './useTooltipStyles';
5
5
  /**
6
6
  * A tooltip provides light weight contextual information on top of its target element.
7
7
  */
8
8
 
9
9
  export const Tooltip = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useTooltip(props, ref);
11
- useTooltipStyles(state);
12
- return renderTooltip(state);
10
+ const state = useTooltip_unstable(props, ref);
11
+ useTooltipStyles_unstable(state);
12
+ return renderTooltip_unstable(state);
13
13
  });
14
14
  Tooltip.displayName = 'Tooltip';
15
15
  //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AACA,SAAS,gBAAT,QAAiC,oBAAjC;AAIA;;AAEG;;AACH,OAAO,MAAM,OAAO,gBAAsC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxF,QAAM,KAAK,GAAG,UAAU,CAAC,KAAD,EAAQ,GAAR,CAAxB;AAEA,EAAA,gBAAgB,CAAC,KAAD,CAAhB;AACA,SAAO,aAAa,CAAC,KAAD,CAApB;AACD,CALyD,CAAnD;AAOP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AAIA;;AAEG;;AACH,OAAO,MAAM,OAAO,gBAAsC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxF,QAAM,KAAK,GAAG,mBAAmB,CAAC,KAAD,EAAQ,GAAR,CAAjC;AAEA,EAAA,yBAAyB,CAAC,KAAD,CAAzB;AACA,SAAO,sBAAsB,CAAC,KAAD,CAA7B;AACD,CALyD,CAAnD;AAOP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourceRoot":""}
@@ -22,20 +22,17 @@ export declare type TooltipSlots = {
22
22
  */
23
23
  export declare type TooltipCommons = {
24
24
  /**
25
- * A tooltip can appear with the default appearance or inverted.
26
- * When not specified, the default appearance is used.
25
+ * The tooltip's visual appearance.
26
+ * * `normal` - Uses the theme's background and text colors.
27
+ * * `inverted` - Higher contrast variant that uses the theme's inverted colors.
28
+ *
29
+ * @defaultvalue normal
27
30
  */
28
- appearance?: 'inverted';
31
+ appearance?: 'normal' | 'inverted';
29
32
  /**
30
33
  * The content displayed inside the tooltip.
31
34
  */
32
35
  content: React.ReactNode;
33
- /**
34
- * Color variant with inverted colors
35
- *
36
- * @defaultvalue false
37
- */
38
- inverted?: boolean;
39
36
  /**
40
37
  * Render an arrow pointing to the target element
41
38
  *
@@ -62,15 +59,15 @@ export declare type TooltipCommons = {
62
59
  */
63
60
  onVisibleChange?: (event: React.PointerEvent<HTMLElement> | React.FocusEvent<HTMLElement> | undefined, data: OnVisibleChangeData) => void;
64
61
  /**
65
- * Specifies which aria attribute to set on the trigger element.
66
- * * `label` - Set aria-label to the tooltip's content. Requires content to be a string; if not, uses `labelledby`.
67
- * * `labelledby` - Set aria-labelledby to the tooltip's id. The id is generated if not provided.
68
- * * `describedby` - Set aria-describedby to the tooltip's id. The id is generated if not provided.
69
- * * null - Do not set any aria attributes on the trigger element.
62
+ * (Required) Specifies whether this tooltip is acting as the description or label of its trigger element.
70
63
  *
71
- * @defaultvalue label
64
+ * * `label` - The tooltip sets the trigger's aria-label or aria-labelledby attribute. This is useful for buttons
65
+ * displaying only an icon, for example.
66
+ * * `description` - The tooltip sets the trigger's aria-description or aria-describedby attribute.
67
+ * * `inaccessible` - No aria attributes are set on the trigger. This makes the tooltip's content inaccessible to
68
+ * screen readers, and should only be used if the tooltip's text is available by some other means.
72
69
  */
73
- triggerAriaAttribute: 'label' | 'labelledby' | 'describedby' | null;
70
+ relationship: 'label' | 'description' | 'inaccessible';
74
71
  /**
75
72
  * Delay before the tooltip is shown, in milliseconds.
76
73
  *
@@ -99,18 +96,13 @@ export declare type OnVisibleChangeData = {
99
96
  /**
100
97
  * Properties for Tooltip
101
98
  */
102
- export declare type TooltipProps = ComponentProps<TooltipSlots> & Partial<Omit<TooltipCommons, 'content'>> & Pick<TooltipCommons, 'content'>;
99
+ export declare type TooltipProps = ComponentProps<TooltipSlots> & Partial<Omit<TooltipCommons, 'content' | 'relationship'>> & Pick<TooltipCommons, 'content' | 'relationship'>;
103
100
  /**
104
101
  * State used in rendering Tooltip
105
102
  */
106
103
  export declare type TooltipState = ComponentState<TooltipSlots> & TooltipCommons & {
107
104
  /**
108
105
  * Whether the tooltip should be rendered to the DOM.
109
- *
110
- * Normally the tooltip will only be rendered when visible. However, if
111
- * triggerAriaAttribute is labelledby or describedby, the tooltip will
112
- * always be rendered even when hidden so that those aria attributes
113
- * to always refer to a valid DOM element.
114
106
  */
115
107
  shouldRenderTooltip?: boolean;
116
108
  /**
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The height of the tooltip's arrow in pixels.
3
+ */
4
+ export declare const arrowHeight = 6;
5
+ /**
6
+ * The default value of the tooltip's border radius (borderRadiusMedium).
7
+ *
8
+ * Unfortunately, Popper requires it to be specified as a variable instead of using CSS.
9
+ * While we could use getComputedStyle, that adds a performance penalty for something that
10
+ * will likely never change.
11
+ */
12
+ export declare const tooltipBorderRadius = 4;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The height of the tooltip's arrow in pixels.
3
+ */
4
+ export const arrowHeight = 6;
5
+ /**
6
+ * The default value of the tooltip's border radius (borderRadiusMedium).
7
+ *
8
+ * Unfortunately, Popper requires it to be specified as a variable instead of using CSS.
9
+ * While we could use getComputedStyle, that adds a performance penalty for something that
10
+ * will likely never change.
11
+ */
12
+
13
+ export const tooltipBorderRadius = 4;
14
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Tooltip/private/constants.ts"],"names":[],"mappings":"AAAA;;AAEG;AACH,OAAO,MAAM,WAAW,GAAG,CAApB;AAEP;;;;;;AAMG;;AACH,OAAO,MAAM,mBAAmB,GAAG,CAA5B","sourceRoot":""}
@@ -2,4 +2,4 @@ import type { TooltipState } from './Tooltip.types';
2
2
  /**
3
3
  * Render the final JSX of Tooltip
4
4
  */
5
- export declare const renderTooltip: (state: TooltipState) => JSX.Element;
5
+ export declare const renderTooltip_unstable: (state: TooltipState) => JSX.Element;
@@ -5,12 +5,13 @@ import { getSlots } from '@fluentui/react-utilities';
5
5
  * Render the final JSX of Tooltip
6
6
  */
7
7
 
8
- export const renderTooltip = state => {
8
+ export const renderTooltip_unstable = state => {
9
9
  const {
10
10
  slots,
11
11
  slotProps
12
- } = getSlots(state, ['root']);
13
- return /*#__PURE__*/React.createElement(React.Fragment, null, state.root.children, state.shouldRenderTooltip && /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), state.withArrow && /*#__PURE__*/React.createElement("div", {
12
+ } = getSlots(state);
13
+ return /*#__PURE__*/React.createElement(React.Fragment, null, state.root.children, state.shouldRenderTooltip && /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
14
+ }, state.withArrow && /*#__PURE__*/React.createElement("div", {
14
15
  ref: state.arrowRef,
15
16
  className: state.arrowClassName
16
17
  }), state.content)));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Tooltip/renderTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,aAAa,GAAI,KAAD,IAAwB;AACnD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAe,KA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hB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADtB,EAEG,KAAK,CAAC,OAFT,CADF,CAHJ,CADF;AAaD,CAhBM","sourceRoot":""}
@@ -3,11 +3,10 @@ import type { TooltipProps, TooltipState } from './Tooltip.types';
3
3
  /**
4
4
  * Create the state required to render Tooltip.
5
5
  *
6
- * The returned state can be modified with hooks such as useTooltipStyles,
7
- * before being passed to renderTooltip.
6
+ * The returned state can be modified with hooks such as useTooltipStyles_unstable,
7
+ * before being passed to renderTooltip_unstable.
8
8
  *
9
9
  * @param props - props from this instance of Tooltip
10
10
  * @param ref - reference to root HTMLElement of Tooltip
11
- * @param defaultProps - (optional) default prop values provided by the implementing type
12
11
  */
13
- export declare const useTooltip: (props: TooltipProps, ref: React.Ref<HTMLDivElement>) => TooltipState;
12
+ export declare const useTooltip_unstable: (props: TooltipProps, ref: React.Ref<HTMLDivElement>) => TooltipState;
@@ -1,24 +1,19 @@
1
1
  import * as React from 'react';
2
2
  import { mergeArrowOffset, resolvePositioningShorthand, usePopper } from '@fluentui/react-positioning';
3
3
  import { TooltipContext, useFluent } from '@fluentui/react-shared-contexts';
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
5
-
6
- const tooltipBorderRadius = 4; // Update the root's borderRadius in useTooltipStyles.ts if this changes
7
-
8
- const arrowHeight = 6; // Update the arrow's width/height in useTooltipStyles.ts if this changes
9
-
4
+ import { applyTriggerPropsToChildren, getNativeElementProps, useControllableState, useId, useIsomorphicLayoutEffect, useIsSSR, useMergedRefs, useTimeout } from '@fluentui/react-utilities';
5
+ import { arrowHeight, tooltipBorderRadius } from './private/constants';
10
6
  /**
11
7
  * Create the state required to render Tooltip.
12
8
  *
13
- * The returned state can be modified with hooks such as useTooltipStyles,
14
- * 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.
15
11
  *
16
12
  * @param props - props from this instance of Tooltip
17
13
  * @param ref - reference to root HTMLElement of Tooltip
18
- * @param defaultProps - (optional) default prop values provided by the implementing type
19
14
  */
20
15
 
21
- export const useTooltip = (props, ref) => {
16
+ export const useTooltip_unstable = (props, ref) => {
22
17
  var _a, _b, _c, _d;
23
18
 
24
19
  const context = React.useContext(TooltipContext);
@@ -29,11 +24,11 @@ export const useTooltip = (props, ref) => {
29
24
  const [setDelayTimeout, clearDelayTimeout] = useTimeout();
30
25
  const {
31
26
  content,
32
- inverted,
27
+ appearance,
33
28
  withArrow,
34
29
  positioning,
35
30
  onVisibleChange,
36
- triggerAriaAttribute = 'label',
31
+ relationship,
37
32
  showDelay = 250,
38
33
  hideDelay = 250
39
34
  } = props;
@@ -55,15 +50,14 @@ export const useTooltip = (props, ref) => {
55
50
  }, [clearDelayTimeout, setVisibleInternal, onVisibleChange]);
56
51
  const state = {
57
52
  content,
58
- inverted,
59
53
  withArrow,
60
54
  positioning,
61
55
  showDelay,
62
56
  hideDelay,
63
- triggerAriaAttribute,
57
+ relationship,
64
58
  visible,
65
59
  shouldRenderTooltip: visible,
66
- appearance: props.appearance,
60
+ appearance,
67
61
  // Slots
68
62
  components: {
69
63
  root: 'div'
@@ -179,22 +173,21 @@ export const useTooltip = (props, ref) => {
179
173
  triggerProps.ref = childTargetRef;
180
174
  }
181
175
 
182
- if (state.triggerAriaAttribute === 'label') {
183
- // aria-label only works if the content is a string. Otherwise, need to use labelledby.
176
+ if (relationship === 'label') {
177
+ // aria-label only works if the content is a string. Otherwise, need to use aria-labelledby.
184
178
  if (typeof state.content === 'string') {
185
179
  triggerProps['aria-label'] = state.content;
186
- } else {
187
- state.triggerAriaAttribute = 'labelledby';
188
- }
189
- }
180
+ } else if (!isServerSideRender) {
181
+ triggerProps['aria-labelledby'] = state.root.id; // Always render the tooltip even if hidden, so that aria-labelledby refers to a valid element
190
182
 
191
- if (state.triggerAriaAttribute === 'labelledby' && !isServerSideRender) {
192
- triggerProps['aria-labelledby'] = state.root.id; // Always render the tooltip even if hidden, so that aria-labelledby refers to a valid element
183
+ state.shouldRenderTooltip = true;
184
+ }
185
+ } else if (relationship === 'description') {
186
+ if (!isServerSideRender) {
187
+ triggerProps['aria-describedby'] = state.root.id; // Always render the tooltip even if hidden, so that aria-describedby refers to a valid element
193
188
 
194
- state.shouldRenderTooltip = true;
195
- } else if (state.triggerAriaAttribute === 'describedby' && !isServerSideRender) {
196
- triggerProps['aria-describedby'] = state.root.id;
197
- state.shouldRenderTooltip = true;
189
+ state.shouldRenderTooltip = true;
190
+ }
198
191
  } // Apply the trigger props to the child, either by calling the render function, or cloning with the new props
199
192
 
200
193
 
@@ -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,MAAM,mBAAmB,GAAG,CAA5B,C,CAA+B;;AAC/B,MAAM,WAAW,GAAG,CAApB,C,CAAuB;;AAEvB;;;;;;;;;AASG;;AACH,OAAO,MAAM,UAAU,GAAG,CAAC,KAAD,EAAsB,GAAtB,KAAsE;;;AAC9F,QAAM,OAAO,GAAG,KAAK,CAAC,UAAN,CAAiB,cAAjB,CAAhB;AACA,QAAM,kBAAkB,GAAG,QAAQ,EAAnC;AACA,QAAM;AAAE,IAAA;AAAF,MAAqB,SAAS,EAApC;AACA,QAAM,CAAC,eAAD,EAAkB,iBAAlB,IAAuC,UAAU,EAAvD;AAEA,QAAM;AACJ,IAAA,OADI;AAEJ,I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