@fluentui/react-popover 0.0.0-nightlya372ad979820211103.1 → 0.0.0-nightlya54302c0b220211124.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 (65) hide show
  1. package/CHANGELOG.json +113 -32
  2. package/CHANGELOG.md +34 -15
  3. package/dist/react-popover.d.ts +2 -0
  4. package/lib/common/isConformant.js +1 -1
  5. package/lib/common/isConformant.js.map +1 -1
  6. package/lib/common/mockUsePopoverContext.js +7 -14
  7. package/lib/common/mockUsePopoverContext.js.map +1 -1
  8. package/lib/components/Popover/Popover.js +2 -2
  9. package/lib/components/Popover/Popover.js.map +1 -1
  10. package/lib/components/Popover/renderPopover.js +27 -25
  11. package/lib/components/Popover/renderPopover.js.map +1 -1
  12. package/lib/components/Popover/usePopover.js +39 -51
  13. package/lib/components/Popover/usePopover.js.map +1 -1
  14. package/lib/components/PopoverSurface/PopoverSurface.js +2 -2
  15. package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
  16. package/lib/components/PopoverSurface/renderPopoverSurface.js +6 -7
  17. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  18. package/lib/components/PopoverSurface/usePopoverSurface.js +41 -55
  19. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  20. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -0
  21. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +16 -8
  22. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  23. package/lib/components/PopoverTrigger/PopoverTrigger.js +2 -2
  24. package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  25. package/lib/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
  26. package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  27. package/lib/components/PopoverTrigger/usePopoverTrigger.js +25 -33
  28. package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  29. package/lib/popoverContext.js +3 -7
  30. package/lib/popoverContext.js.map +1 -1
  31. package/lib-commonjs/Popover.js +1 -1
  32. package/lib-commonjs/PopoverSurface.js +1 -1
  33. package/lib-commonjs/PopoverTrigger.js +1 -1
  34. package/lib-commonjs/common/isConformant.js +3 -3
  35. package/lib-commonjs/common/isConformant.js.map +1 -1
  36. package/lib-commonjs/common/mockUsePopoverContext.js +8 -16
  37. package/lib-commonjs/common/mockUsePopoverContext.js.map +1 -1
  38. package/lib-commonjs/components/Popover/Popover.js +4 -4
  39. package/lib-commonjs/components/Popover/Popover.js.map +1 -1
  40. package/lib-commonjs/components/Popover/index.js +1 -1
  41. package/lib-commonjs/components/Popover/renderPopover.js +29 -27
  42. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  43. package/lib-commonjs/components/Popover/usePopover.js +45 -58
  44. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  45. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +6 -6
  46. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
  47. package/lib-commonjs/components/PopoverSurface/index.js +1 -1
  48. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +10 -12
  49. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  50. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +44 -59
  51. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  52. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -0
  53. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +18 -9
  54. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  55. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js +4 -4
  56. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  57. package/lib-commonjs/components/PopoverTrigger/index.js +1 -1
  58. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
  59. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  60. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +29 -38
  61. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  62. package/lib-commonjs/index.js +1 -1
  63. package/lib-commonjs/popoverContext.js +3 -7
  64. package/lib-commonjs/popoverContext.js.map +1 -1
  65. package/package.json +11 -12
package/CHANGELOG.json CHANGED
@@ -2,84 +2,165 @@
2
2
  "name": "@fluentui/react-popover",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 03 Nov 2021 08:24:04 GMT",
6
- "tag": "@fluentui/react-popover_v0.0.0-nightlya372ad979820211103.1",
7
- "version": "0.0.0-nightlya372ad979820211103.1",
5
+ "date": "Wed, 24 Nov 2021 04:12:45 GMT",
6
+ "tag": "@fluentui/react-popover_v0.0.0-nightlya54302c0b220211124.1",
7
+ "version": "0.0.0-nightlya54302c0b220211124.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
- "author": "email not defined",
11
+ "author": "lingfangao@hotmail.com",
12
12
  "package": "@fluentui/react-popover",
13
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd",
14
- "comment": "Release nightly v9"
13
+ "commit": "58db204f28af1d68df7260ff580cf91f0adcfb66",
14
+ "comment": "Add transparent outline to arrow for HC"
15
15
  },
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-popover",
19
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlya372ad979820211103.1",
20
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
19
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlya54302c0b220211124.1",
20
+ "commit": "e3c1bd15060ac276670338660c7965b877e333f4"
21
21
  },
22
22
  {
23
23
  "author": "beachball",
24
24
  "package": "@fluentui/react-popover",
25
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlya372ad979820211103.1",
26
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
25
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightlya54302c0b220211124.1",
26
+ "commit": "e3c1bd15060ac276670338660c7965b877e333f4"
27
27
  },
28
28
  {
29
29
  "author": "beachball",
30
30
  "package": "@fluentui/react-popover",
31
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightlya372ad979820211103.1",
32
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
31
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlya54302c0b220211124.1",
32
+ "commit": "e3c1bd15060ac276670338660c7965b877e333f4"
33
33
  },
34
34
  {
35
35
  "author": "beachball",
36
36
  "package": "@fluentui/react-popover",
37
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightlya372ad979820211103.1",
38
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
37
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlya54302c0b220211124.1",
38
+ "commit": "e3c1bd15060ac276670338660c7965b877e333f4"
39
39
  },
40
40
  {
41
41
  "author": "beachball",
42
42
  "package": "@fluentui/react-popover",
43
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlya372ad979820211103.1",
44
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
43
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlya54302c0b220211124.1",
44
+ "commit": "e3c1bd15060ac276670338660c7965b877e333f4"
45
45
  },
46
46
  {
47
47
  "author": "beachball",
48
48
  "package": "@fluentui/react-popover",
49
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlya372ad979820211103.1",
50
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
49
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlya54302c0b220211124.1",
50
+ "commit": "e3c1bd15060ac276670338660c7965b877e333f4"
51
51
  },
52
52
  {
53
53
  "author": "beachball",
54
54
  "package": "@fluentui/react-popover",
55
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlya372ad979820211103.1",
56
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
55
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya54302c0b220211124.1",
56
+ "commit": "e3c1bd15060ac276670338660c7965b877e333f4"
57
57
  },
58
58
  {
59
59
  "author": "beachball",
60
60
  "package": "@fluentui/react-popover",
61
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlya372ad979820211103.1",
62
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
61
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya54302c0b220211124.1",
62
+ "commit": "e3c1bd15060ac276670338660c7965b877e333f4"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "date": "Fri, 12 Nov 2021 13:25:28 GMT",
69
+ "tag": "@fluentui/react-popover_v9.0.0-beta.4",
70
+ "version": "9.0.0-beta.4",
71
+ "comments": {
72
+ "none": [
73
+ {
74
+ "author": "mgodbolt@microsoft.com",
75
+ "package": "@fluentui/react-popover",
76
+ "commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
77
+ "comment": "update docs descriptions"
78
+ },
79
+ {
80
+ "author": "lingfangao@hotmail.com",
81
+ "package": "@fluentui/react-popover",
82
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
83
+ "comment": "Remove beta release tag"
84
+ }
85
+ ],
86
+ "prerelease": [
87
+ {
88
+ "author": "gcox@microsoft.com",
89
+ "package": "@fluentui/react-popover",
90
+ "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
91
+ "comment": "Updated beta and RC components to ES2019"
92
+ },
93
+ {
94
+ "author": "lingfangao@hotmail.com",
95
+ "package": "@fluentui/react-popover",
96
+ "commit": "054822c82e40601815f6cd77733a761b72047e4b",
97
+ "comment": "fix(Popover): use `dialog` as value for `aria-haspopup` for focus trap"
98
+ },
99
+ {
100
+ "author": "olfedias@microsoft.com",
101
+ "package": "@fluentui/react-popover",
102
+ "commit": "ade4f5d3fa5a6b1c81097403f5c2f2afd859aa14",
103
+ "comment": "export static classes for components"
63
104
  },
64
105
  {
65
106
  "author": "beachball",
66
107
  "package": "@fluentui/react-popover",
67
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya372ad979820211103.1",
68
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
108
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.3",
109
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
69
110
  },
70
111
  {
71
112
  "author": "beachball",
72
113
  "package": "@fluentui/react-popover",
73
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya372ad979820211103.1",
74
- "commit": "ff9c0a60767a2dbd1afdc71659a5daee5f2068dd"
75
- }
76
- ],
77
- "none": [
114
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
115
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
116
+ },
78
117
  {
79
- "author": "mgodbolt@microsoft.com",
118
+ "author": "beachball",
80
119
  "package": "@fluentui/react-popover",
81
- "commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
82
- "comment": "update docs descriptions"
120
+ "comment": "Bump @fluentui/react-portal to v9.0.0-beta.4",
121
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
122
+ },
123
+ {
124
+ "author": "beachball",
125
+ "package": "@fluentui/react-popover",
126
+ "comment": "Bump @fluentui/react-positioning to v9.0.0-beta.3",
127
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
128
+ },
129
+ {
130
+ "author": "beachball",
131
+ "package": "@fluentui/react-popover",
132
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
133
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
134
+ },
135
+ {
136
+ "author": "beachball",
137
+ "package": "@fluentui/react-popover",
138
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
139
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
140
+ },
141
+ {
142
+ "author": "beachball",
143
+ "package": "@fluentui/react-popover",
144
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
145
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
146
+ },
147
+ {
148
+ "author": "beachball",
149
+ "package": "@fluentui/react-popover",
150
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
151
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
152
+ },
153
+ {
154
+ "author": "beachball",
155
+ "package": "@fluentui/react-popover",
156
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
157
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
158
+ },
159
+ {
160
+ "author": "beachball",
161
+ "package": "@fluentui/react-popover",
162
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
163
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
83
164
  }
84
165
  ]
85
166
  }
package/CHANGELOG.md CHANGED
@@ -1,27 +1,46 @@
1
1
  # Change Log - @fluentui/react-popover
2
2
 
3
- This log was last generated on Wed, 03 Nov 2021 08:24:04 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 24 Nov 2021 04:12:45 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlya372ad979820211103.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightlya372ad979820211103.1)
7
+ ## [0.0.0-nightlya54302c0b220211124.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightlya54302c0b220211124.1)
8
8
 
9
- Wed, 03 Nov 2021 08:24:04 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.3..@fluentui/react-popover_v0.0.0-nightlya372ad979820211103.1)
9
+ Wed, 24 Nov 2021 04:12:45 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.4..@fluentui/react-popover_v0.0.0-nightlya54302c0b220211124.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by email not defined)
15
- - Bump @fluentui/react-context-selector to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
16
- - Bump @fluentui/react-make-styles to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
17
- - Bump @fluentui/react-portal to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
18
- - Bump @fluentui/react-positioning to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
19
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
20
- - Bump @fluentui/react-tabster to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
22
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
23
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
24
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya372ad979820211103.1 ([commit](https://github.com/microsoft/fluentui/commit/ff9c0a60767a2dbd1afdc71659a5daee5f2068dd) by beachball)
14
+ - Add transparent outline to arrow for HC ([PR #20541](https://github.com/microsoft/fluentui/pull/20541) by lingfangao@hotmail.com)
15
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
16
+ - Bump @fluentui/react-portal to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
17
+ - Bump @fluentui/react-positioning to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
18
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
19
+ - Bump @fluentui/react-tabster to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
20
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
21
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
22
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya54302c0b220211124.1 ([commit](https://github.com/microsoft/fluentui/commit/e3c1bd15060ac276670338660c7965b877e333f4) by beachball)
23
+
24
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.4)
25
+
26
+ Fri, 12 Nov 2021 13:25:28 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.3..@fluentui/react-popover_v9.0.0-beta.4)
28
+
29
+ ### Changes
30
+
31
+ - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
32
+ - fix(Popover): use `dialog` as value for `aria-haspopup` for focus trap ([PR #20494](https://github.com/microsoft/fluentui/pull/20494) by lingfangao@hotmail.com)
33
+ - export static classes for components ([PR #20450](https://github.com/microsoft/fluentui/pull/20450) by olfedias@microsoft.com)
34
+ - Bump @fluentui/react-context-selector to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
35
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
36
+ - Bump @fluentui/react-portal to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
37
+ - Bump @fluentui/react-positioning to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
38
+ - Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
39
+ - Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
40
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
41
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
42
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
43
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
25
44
 
26
45
  ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.3)
27
46
 
@@ -134,6 +134,8 @@ export declare type PopoverState = PopoverCommons & Pick<PopoverProps, 'children
134
134
  */
135
135
  export declare const PopoverSurface: ForwardRefComponent<PopoverSurfaceProps>;
136
136
 
137
+ export declare const popoverSurfaceClassName = "fui-PopoverSurface";
138
+
137
139
  /**
138
140
  * PopoverSurface Props
139
141
  */
@@ -1,7 +1,7 @@
1
1
  import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
2
  import makeStylesTests from '@fluentui/react-conformance-make-styles';
3
3
  export function isConformant(testInfo) {
4
- var defaultOptions = {
4
+ const defaultOptions = {
5
5
  asPropHandlesRef: true,
6
6
  componentPath: module.parent.filename.replace('.test', ''),
7
7
  // TODO // https://github.com/microsoft/fluentui/issues/19522
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;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;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE;AAL+C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;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;AACA,IAAA,eAAe,EAAE,IAJ0C;AAK3D,IAAA,UAAU,EAAE;AAL+C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
@@ -1,4 +1,3 @@
1
- import { __assign } from "tslib";
2
1
  import { usePopoverContext } from '../popoverContext';
3
2
  /**
4
3
  * A test utility to mock the usePopoverContext hook that relies on context selector
@@ -6,16 +5,10 @@ import { usePopoverContext } from '../popoverContext';
6
5
  * @param options Popover context values to set for testing
7
6
  */
8
7
 
9
- export var mockPopoverContext = function (options) {
10
- if (options === void 0) {
11
- options = {};
12
- }
13
-
14
- var mockContext = __assign({
8
+ export const mockPopoverContext = (options = {}) => {
9
+ const mockContext = {
15
10
  open: false,
16
- setOpen: function () {
17
- return null;
18
- },
11
+ setOpen: () => null,
19
12
  triggerRef: {
20
13
  current: null
21
14
  },
@@ -27,11 +20,11 @@ export var mockPopoverContext = function (options) {
27
20
  },
28
21
  openOnContext: false,
29
22
  openOnHover: false,
30
- size: 'medium'
31
- }, options); // eslint-disable-next-line @typescript-eslint/no-explicit-any
32
-
23
+ size: 'medium',
24
+ ...options
25
+ }; // eslint-disable-next-line @typescript-eslint/no-explicit-any
33
26
 
34
- usePopoverContext.mockImplementation(function (selector) {
27
+ usePopoverContext.mockImplementation(selector => {
35
28
  return selector(mockContext);
36
29
  });
37
30
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/mockUsePopoverContext.ts"],"names":[],"mappings":";AAAA,SAAS,iBAAT,QAAkC,mBAAlC;AAGA;;;;AAIG;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IAAA,IAAI,EAAE,QARiC;AASvC,OAAG;AAToC,GAAzC,CAD+E,CAY/E;;AACC,EAAA,iBAA+B,CAAC,kBAAhC,CAAoD,QAAD,IAAoD;AACtG,WAAO,QAAQ,CAAC,WAAD,CAAf;AACD,GAFA;AAGF,CAhBM","sourceRoot":""}
@@ -4,8 +4,8 @@ import { renderPopover } from './renderPopover';
4
4
  * Wrapper component that manages state for a PopoverTrigger and a PopoverSurface components.
5
5
  */
6
6
 
7
- export var Popover = function (props) {
8
- var state = usePopover(props);
7
+ export const Popover = props => {
8
+ const state = usePopover(props);
9
9
  return renderPopover(state);
10
10
  };
11
11
  Popover.displayName = 'Popover';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAGA;;AAEG;;AACH,OAAO,IAAM,OAAO,GAA2B,UAAA,KAAA,EAAK;AAClD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAD,CAAxB;AAEA,SAAO,aAAa,CAAC,KAAD,CAApB;AACD,CAJM;AAMP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,aAAT,QAA8B,iBAA9B;AAGA;;AAEG;;AACH,OAAO,MAAM,OAAO,GAA2B,KAAK,IAAG;AACrD,QAAM,KAAK,GAAG,UAAU,CAAC,KAAD,CAAxB;AAEA,SAAO,aAAa,CAAC,KAAD,CAApB;AACD,CAJM;AAMP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourceRoot":""}
@@ -4,33 +4,35 @@ import { PopoverContext } from '../../popoverContext';
4
4
  * Render the final JSX of Popover
5
5
  */
6
6
 
7
- export var renderPopover = function (state) {
8
- var open = state.open,
9
- setOpen = state.setOpen,
10
- triggerRef = state.triggerRef,
11
- contentRef = state.contentRef,
12
- openOnContext = state.openOnContext,
13
- openOnHover = state.openOnHover,
14
- mountNode = state.mountNode,
15
- arrowRef = state.arrowRef,
16
- size = state.size,
17
- noArrow = state.noArrow,
18
- appearance = state.appearance,
19
- trapFocus = state.trapFocus;
7
+ export const renderPopover = state => {
8
+ const {
9
+ open,
10
+ setOpen,
11
+ triggerRef,
12
+ contentRef,
13
+ openOnContext,
14
+ openOnHover,
15
+ mountNode,
16
+ arrowRef,
17
+ size,
18
+ noArrow,
19
+ appearance,
20
+ trapFocus
21
+ } = state;
20
22
  return /*#__PURE__*/React.createElement(PopoverContext.Provider, {
21
23
  value: {
22
- open: open,
23
- setOpen: setOpen,
24
- triggerRef: triggerRef,
25
- contentRef: contentRef,
26
- openOnHover: openOnHover,
27
- openOnContext: openOnContext,
28
- mountNode: mountNode,
29
- arrowRef: arrowRef,
30
- size: size,
31
- noArrow: noArrow,
32
- appearance: appearance,
33
- trapFocus: trapFocus
24
+ open,
25
+ setOpen,
26
+ triggerRef,
27
+ contentRef,
28
+ openOnHover,
29
+ openOnContext,
30
+ mountNode,
31
+ arrowRef,
32
+ size,
33
+ noArrow,
34
+ appearance,
35
+ trapFocus
34
36
  }
35
37
  }, state.children);
36
38
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Popover/renderPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,cAAT,QAA+B,sBAA/B;AAGA;;AAEG;;AACH,OAAO,IAAM,aAAa,GAAG,UAAC,KAAD,EAAoB;AAE7C,MAAA,IAAI,GAYF,KAAK,CAZH,IAAJ;AAAA,MACA,OAAO,GAWL,KAAK,CAXA,OADP;AAAA,MAEA,UAAU,GAUR,KAAK,CAVG,UAFV;AAAA,MAGA,UAAU,GASR,KAAK,CATG,UAHV;AAAA,MAIA,aAAa,GAQX,KAAK,CARM,aAJb;AAAA,MAKA,WAAW,GAOT,KAAK,CAPI,WALX;AAA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,QAAhB,EAAwB;AACtB,IAAA,KAAK,EAAE;AACL,MAAA,IADK;AAEL,MAAA,OAFK;AAGL,MAAA,UAHK;AAIL,MAAA,UAJK;AAKL,MAAA,WALK;AAML,MAAA,aANK;AAOL,MAAA,SAPK;AAQL,MAAA,QARK;AASL,MAAA,IATK;AAUL,MAAA,OAVK;AAWL,MAAA,UAXK;AAYL,MAAA;AAZK;AADe,GAAxB,EAgBG,KAAK,CAAC,QAhBT,CADF;AAoBD,CApCM","sourceRoot":""}
@@ -1,4 +1,3 @@
1
- import { __assign } from "tslib";
2
1
  import * as React from 'react';
3
2
  import { useControllableState, useEventCallback, useOnClickOutside, useOnScrollOutside } from '@fluentui/react-utilities';
4
3
  import { useFluent } from '@fluentui/react-shared-contexts';
@@ -14,70 +13,59 @@ import { arrowHeights } from '../PopoverSurface/index';
14
13
  * @param props - props from this instance of Popover
15
14
  */
16
15
 
17
- export var usePopover = function (props) {
18
- var _a = usePopperMouseTarget(),
19
- contextTarget = _a[0],
20
- setContextTarget = _a[1];
21
-
22
- var initialState = __assign({
16
+ export const usePopover = props => {
17
+ const [contextTarget, setContextTarget] = usePopperMouseTarget();
18
+ const initialState = {
23
19
  size: 'medium',
24
- contextTarget: contextTarget,
25
- setContextTarget: setContextTarget
26
- }, props);
27
-
28
- var _b = useOpenState(initialState),
29
- open = _b[0],
30
- setOpen = _b[1];
31
-
32
- var popperRefs = usePopoverRefs(initialState);
33
- var targetDocument = useFluent().targetDocument;
20
+ contextTarget,
21
+ setContextTarget,
22
+ ...props
23
+ };
24
+ const [open, setOpen] = useOpenState(initialState);
25
+ const popperRefs = usePopoverRefs(initialState);
26
+ const {
27
+ targetDocument
28
+ } = useFluent();
34
29
  useOnClickOutside({
35
30
  contains: elementContains,
36
31
  element: targetDocument,
37
- callback: function (ev) {
38
- return setOpen(ev, false);
39
- },
32
+ callback: ev => setOpen(ev, false),
40
33
  refs: [popperRefs.triggerRef, popperRefs.contentRef],
41
34
  disabled: !open
42
35
  });
43
36
  useOnScrollOutside({
44
37
  contains: elementContains,
45
38
  element: targetDocument,
46
- callback: function (ev) {
47
- return setOpen(ev, false);
48
- },
39
+ callback: ev => setOpen(ev, false),
49
40
  refs: [popperRefs.triggerRef, popperRefs.contentRef],
50
41
  disabled: !open || !initialState.openOnContext
51
42
  });
52
- return __assign(__assign(__assign({}, initialState), popperRefs), {
53
- open: open,
54
- setOpen: setOpen,
55
- setContextTarget: setContextTarget,
56
- contextTarget: contextTarget
57
- });
43
+ return { ...initialState,
44
+ ...popperRefs,
45
+ open,
46
+ setOpen,
47
+ setContextTarget,
48
+ contextTarget
49
+ };
58
50
  };
59
51
  /**
60
52
  * Creates and manages the Popover open state
61
53
  */
62
54
 
63
55
  function useOpenState(state) {
64
- var onOpenChange = useEventCallback(function (e, data) {
56
+ const onOpenChange = useEventCallback((e, data) => {
65
57
  var _a;
66
58
 
67
59
  return (_a = state.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(state, e, data);
68
60
  });
69
-
70
- var _a = useControllableState({
61
+ const [open, setOpenState] = useControllableState({
71
62
  state: state.open,
72
63
  defaultState: state.defaultOpen,
73
64
  initialState: false
74
- }),
75
- open = _a[0],
76
- setOpenState = _a[1];
77
-
65
+ });
78
66
  state.open = open !== undefined ? open : state.open;
79
- var setContextTarget = state.setContextTarget;
80
- var setOpen = React.useCallback(function (e, shouldOpen) {
67
+ const setContextTarget = state.setContextTarget;
68
+ const setOpen = React.useCallback((e, shouldOpen) => {
81
69
  if (shouldOpen && e.type === 'contextmenu') {
82
70
  setContextTarget(e);
83
71
  }
@@ -86,7 +74,7 @@ function useOpenState(state) {
86
74
  setContextTarget(undefined);
87
75
  }
88
76
 
89
- setOpenState(function (prevOpen) {
77
+ setOpenState(prevOpen => {
90
78
  // More than one event (mouse, focus, keyboard) can request the Popover to close
91
79
  // We assume the first event is the correct one
92
80
  if (prevOpen !== shouldOpen) {
@@ -106,12 +94,12 @@ function useOpenState(state) {
106
94
 
107
95
 
108
96
  function usePopoverRefs(state) {
109
- var popperOptions = __assign({
97
+ const popperOptions = {
110
98
  position: 'above',
111
99
  align: 'center',
112
- target: state.openOnContext ? state.contextTarget : undefined
113
- }, resolvePositioningShorthand(state.positioning)); // no reason to render arrow when covering the target
114
-
100
+ target: state.openOnContext ? state.contextTarget : undefined,
101
+ ...resolvePositioningShorthand(state.positioning)
102
+ }; // no reason to render arrow when covering the target
115
103
 
116
104
  if (popperOptions.coverTarget) {
117
105
  state.noArrow = true;
@@ -121,15 +109,15 @@ function usePopoverRefs(state) {
121
109
  popperOptions.offset = mergeArrowOffset(popperOptions.offset, arrowHeights[state.size]);
122
110
  }
123
111
 
124
- var _a = usePopper(popperOptions),
125
- triggerRef = _a.targetRef,
126
- contentRef = _a.containerRef,
127
- arrowRef = _a.arrowRef;
128
-
112
+ const {
113
+ targetRef: triggerRef,
114
+ containerRef: contentRef,
115
+ arrowRef
116
+ } = usePopper(popperOptions);
129
117
  return {
130
- triggerRef: triggerRef,
131
- contentRef: contentRef,
132
- arrowRef: arrowRef
118
+ triggerRef,
119
+ contentRef,
120
+ arrowRef
133
121
  };
134
122
  }
135
123
  //# sourceMappingURL=usePopover.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Popover/usePopover.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SACE,oBADF,EAEE,gBAFF,EAGE,iBAHF,EAIE,kBAJF,QAKO,2BALP;AAMA,SAAS,SAAT,QAA0B,iCAA1B;AACA,SACE,SADF,EAEE,2BAFF,EAGE,gBAHF,EAIE,oBAJF,QAKO,6BALP;AAMA,SAAS,eAAT,QAAgC,wBAAhC;AACA,SAAS,YAAT,QAA6B,yBAA7B;AAGA;;;;;;;AAOG;;AACH,OAAO,IAAM,UAAU,GAAG,UAAC,KAAD,EAAoB;AACtC,MAAA,EAAA,GAAoC,oBAAoB,EAAxD;AAAA,MAAC,aAAa,GAAA,EAAA,CAAA,CAAA,CAAd;AAAA,MAAg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A,UAAI,QAAQ,KAAK,UAAjB,EAA6B;AAC3B,QAAA,YAAY,KAAA,IAAZ,IAAA,YAAY,KAAA,KAAA,CAAZ,GAAY,KAAA,CAAZ,GAAA,YAAY,CAAG,CAAH,EAAM;AAAE,UAAA,IAAI,EAAE;AAAR,SAAN,CAAZ;AACD;;AAED,aAAO,UAAP;AACD,KARW,CAAZ;AASD,GAnBa,EAoBd,CAAC,YAAD,EAAe,YAAf,EAA6B,gBAA7B,CApBc,CAAhB;AAuBA,SAAO,CAAC,IAAD,EAAO,OAAP,CAAP;AACD;AAED;;AAEG;;;AACH,SAAS,cAAT,CACE,KADF,EACuH;AAErH,QAAM,aAAa,GAAG;AACpB,IAAA,QAAQ,EAAE,OADU;AAEpB,IAAA,KAAK,EAAE,QAFa;AAGpB,IAAA,MAAM,EAAE,KAAK,CAAC,aAAN,GAAsB,KAAK,CAAC,aAA5B,GAA4C,SAHhC;AAIpB,OAAG,2BAA2B,CAAC,KAAK,CAAC,WAAP;AAJV,GAAtB,CAFqH,CASrH;;AACA,MAAI,aAAa,CAAC,WAAlB,EAA+B;AAC7B,IAAA,KAAK,CAAC,OAAN,GAAgB,IAAhB;AACD;;AAED,MAAI,CAAC,KAAK,CAAC,OAAX,EAAoB;AAClB,IAAA,aAAa,CAAC,MAAd,GAAuB,gBAAgB,CAAC,aAAa,CAAC,MAAf,EAAuB,YAAY,CAAC,KAAK,CAAC,IAAP,CAAnC,CAAvC;AACD;;AAED,QAAM;AAAE,IAAA,SAAS,EAAE,UAAb;AAAyB,IAAA,YAAY,EAAE,UAAvC;AAAmD,IAAA;AAAnD,MAAgE,SAAS,CAAC,aAAD,CAA/E;AAEA,SAAO;AACL,IAAA,UADK;AAEL,IAAA,UAFK;AAGL,IAAA;AAHK,GAAP;AAKD","sourceRoot":""}
@@ -6,8 +6,8 @@ import { usePopoverSurfaceStyles } from './usePopoverSurfaceStyles';
6
6
  * PopoverSurface component renders react children in a positioned box
7
7
  */
8
8
 
9
- export var PopoverSurface = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
- var state = usePopoverSurface(props, ref);
9
+ export const PopoverSurface = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = usePopoverSurface(props, ref);
11
11
  usePopoverSurfaceStyles(state);
12
12
  return renderPopoverSurface(state);
13
13
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverSurface/PopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AAIA;;AAEG;;AACH,OAAO,IAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAClG,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AAEA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AACA,SAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/PopoverSurface/PopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AAEA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AACA,SAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}