@fluentui/react-popover 0.0.0-nightly003de9a95220220111.1 → 0.0.0-nightly0bc161458e20220126.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 (64) hide show
  1. package/CHANGELOG.json +65 -29
  2. package/CHANGELOG.md +18 -15
  3. package/dist/react-popover.d.ts +12 -14
  4. package/lib/components/Popover/Popover.js +4 -4
  5. package/lib/components/Popover/Popover.js.map +1 -1
  6. package/lib/components/Popover/renderPopover.d.ts +1 -1
  7. package/lib/components/Popover/renderPopover.js +1 -1
  8. package/lib/components/Popover/renderPopover.js.map +1 -1
  9. package/lib/components/Popover/usePopover.d.ts +2 -2
  10. package/lib/components/Popover/usePopover.js +2 -2
  11. package/lib/components/Popover/usePopover.js.map +1 -1
  12. package/lib/components/PopoverSurface/PopoverSurface.js +6 -6
  13. package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
  14. package/lib/components/PopoverSurface/renderPopoverSurface.d.ts +1 -1
  15. package/lib/components/PopoverSurface/renderPopoverSurface.js +2 -3
  16. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  17. package/lib/components/PopoverSurface/usePopoverSurface.d.ts +4 -5
  18. package/lib/components/PopoverSurface/usePopoverSurface.js +16 -16
  19. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  20. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -1
  21. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js +6 -6
  22. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  23. package/lib/components/PopoverTrigger/PopoverTrigger.js +4 -4
  24. package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  25. package/lib/components/PopoverTrigger/renderPopoverTrigger.d.ts +1 -1
  26. package/lib/components/PopoverTrigger/renderPopoverTrigger.js +1 -1
  27. package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  28. package/lib/components/PopoverTrigger/usePopoverTrigger.d.ts +2 -2
  29. package/lib/components/PopoverTrigger/usePopoverTrigger.js +9 -9
  30. package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  31. package/lib/popoverContext.d.ts +1 -1
  32. package/lib/popoverContext.js +1 -1
  33. package/lib/popoverContext.js.map +1 -1
  34. package/lib-commonjs/components/Popover/Popover.js +2 -2
  35. package/lib-commonjs/components/Popover/Popover.js.map +1 -1
  36. package/lib-commonjs/components/Popover/renderPopover.d.ts +1 -1
  37. package/lib-commonjs/components/Popover/renderPopover.js +3 -3
  38. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  39. package/lib-commonjs/components/Popover/usePopover.d.ts +2 -2
  40. package/lib-commonjs/components/Popover/usePopover.js +4 -4
  41. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  42. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +3 -3
  43. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
  44. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.d.ts +1 -1
  45. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js +4 -6
  46. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  47. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.d.ts +4 -5
  48. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +18 -18
  49. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  50. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.d.ts +1 -1
  51. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js +11 -11
  52. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  53. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js +2 -2
  54. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  55. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.d.ts +1 -1
  56. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js +3 -3
  57. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  58. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.d.ts +2 -2
  59. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js +10 -10
  60. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  61. package/lib-commonjs/popoverContext.d.ts +1 -1
  62. package/lib-commonjs/popoverContext.js +3 -3
  63. package/lib-commonjs/popoverContext.js.map +1 -1
  64. package/package.json +11 -13
package/CHANGELOG.json CHANGED
@@ -2,15 +2,15 @@
2
2
  "name": "@fluentui/react-popover",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 11 Jan 2022 04:18:38 GMT",
6
- "tag": "@fluentui/react-popover_v0.0.0-nightly003de9a95220220111.1",
7
- "version": "0.0.0-nightly003de9a95220220111.1",
5
+ "date": "Wed, 26 Jan 2022 04:16:47 GMT",
6
+ "tag": "@fluentui/react-popover_v0.0.0-nightly0bc161458e20220126.1",
7
+ "version": "0.0.0-nightly0bc161458e20220126.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-popover",
13
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863",
13
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
16
  {
@@ -19,85 +19,121 @@
19
19
  "commit": "38e8f42252c69b1c749c3ca7fca9315b49e6cf31",
20
20
  "comment": "Replacing use of functions in makeStyles with direct use of tokens"
21
21
  },
22
+ {
23
+ "author": "behowell@microsoft.com",
24
+ "package": "@fluentui/react-popover",
25
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
26
+ "comment": "Remove component's shorthandProps array"
27
+ },
22
28
  {
23
29
  "author": "behowell@microsoft.com",
24
30
  "package": "@fluentui/react-popover",
25
31
  "commit": "09804275c7f346db54c33d4ff347bffc33676014",
26
32
  "comment": "Fix Popover arrow border in high contrast"
27
33
  },
34
+ {
35
+ "author": "lingfangao@hotmail.com",
36
+ "package": "@fluentui/react-popover",
37
+ "commit": "c2706cec4dc694762b1892a505db666d2fb324c1",
38
+ "comment": "fix: Set `aria-modal` on Popover if focus trap is enabled"
39
+ },
40
+ {
41
+ "author": "Humberto.Morimoto@microsoft.com",
42
+ "package": "@fluentui/react-popover",
43
+ "commit": "6c32d0180e89674a46daf795de69e5dc6ca71ef7",
44
+ "comment": "Updating based on removal of functions from makeStyles."
45
+ },
28
46
  {
29
47
  "author": "olfedias@microsoft.com",
30
48
  "package": "@fluentui/react-popover",
31
- "commit": "ec0e785df9c70a2202dc5cc3cb4001d1ee635124",
32
- "comment": "update styles to not use CSS shorthands"
49
+ "commit": "b1446dead62e61c9a0f6101d6dfc5a2f780403b8",
50
+ "comment": "use Griffel packages"
33
51
  },
34
52
  {
35
- "author": "beachball",
53
+ "author": "olfedias@microsoft.com",
36
54
  "package": "@fluentui/react-popover",
37
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly003de9a95220220111.1",
38
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
55
+ "commit": "ec0e785df9c70a2202dc5cc3cb4001d1ee635124",
56
+ "comment": "update styles to not use CSS shorthands"
39
57
  },
40
58
  {
41
- "author": "beachball",
59
+ "author": "lingfangao@hotmail.com",
42
60
  "package": "@fluentui/react-popover",
43
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly003de9a95220220111.1",
44
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
61
+ "commit": "3a5602460a0c05a2ba4e2cc0fad77e5ae0b8ce38",
62
+ "comment": "fix: Use role=complementary for Popovers without focus traps"
45
63
  },
46
64
  {
47
- "author": "beachball",
65
+ "author": "behowell@microsoft.com",
48
66
  "package": "@fluentui/react-popover",
49
- "comment": "Bump @fluentui/react-portal to v0.0.0-nightly003de9a95220220111.1",
50
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
67
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
68
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
51
69
  },
52
70
  {
53
71
  "author": "beachball",
54
72
  "package": "@fluentui/react-popover",
55
- "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly003de9a95220220111.1",
56
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
73
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly0bc161458e20220126.1",
74
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
57
75
  },
58
76
  {
59
77
  "author": "beachball",
60
78
  "package": "@fluentui/react-popover",
61
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly003de9a95220220111.1",
62
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
79
+ "comment": "Bump @fluentui/react-portal to v0.0.0-nightly0bc161458e20220126.1",
80
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
63
81
  },
64
82
  {
65
83
  "author": "beachball",
66
84
  "package": "@fluentui/react-popover",
67
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly003de9a95220220111.1",
68
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
85
+ "comment": "Bump @fluentui/react-positioning to v0.0.0-nightly0bc161458e20220126.1",
86
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
69
87
  },
70
88
  {
71
89
  "author": "beachball",
72
90
  "package": "@fluentui/react-popover",
73
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly003de9a95220220111.1",
74
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
91
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly0bc161458e20220126.1",
92
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
75
93
  },
76
94
  {
77
95
  "author": "beachball",
78
96
  "package": "@fluentui/react-popover",
79
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly003de9a95220220111.1",
80
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
97
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1",
98
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
81
99
  },
82
100
  {
83
101
  "author": "beachball",
84
102
  "package": "@fluentui/react-popover",
85
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly003de9a95220220111.1",
86
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
103
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1",
104
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
87
105
  },
88
106
  {
89
107
  "author": "beachball",
90
108
  "package": "@fluentui/react-popover",
91
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly003de9a95220220111.1",
92
- "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
109
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1",
110
+ "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
93
111
  }
94
112
  ],
95
113
  "none": [
114
+ {
115
+ "author": "martinhochel@microsoft.com",
116
+ "package": "@fluentui/react-popover",
117
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
118
+ "comment": "chore: use storybook runner for all vNext packages"
119
+ },
96
120
  {
97
121
  "author": "elcraig@microsoft.com",
98
122
  "package": "@fluentui/react-popover",
99
123
  "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
100
124
  "comment": "Update API file to version generated by typescript 4.3"
125
+ },
126
+ {
127
+ "author": "email not defined",
128
+ "package": "@fluentui/react-popover",
129
+ "commit": "97752a0e494875c4dc22b268030d7d5e51b19211",
130
+ "comment": "Add workaround for cypress bug"
131
+ },
132
+ {
133
+ "author": "olfedias@microsoft.com",
134
+ "package": "@fluentui/react-popover",
135
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
136
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
101
137
  }
102
138
  ]
103
139
  }
package/CHANGELOG.md CHANGED
@@ -1,30 +1,33 @@
1
1
  # Change Log - @fluentui/react-popover
2
2
 
3
- This log was last generated on Tue, 11 Jan 2022 04:18:38 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 26 Jan 2022 04:16:47 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly003de9a95220220111.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightly003de9a95220220111.1)
7
+ ## [0.0.0-nightly0bc161458e20220126.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v0.0.0-nightly0bc161458e20220126.1)
8
8
 
9
- Tue, 11 Jan 2022 04:18:38 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v0.0.0-nightly003de9a95220220111.1)
9
+ Wed, 26 Jan 2022 04:16:47 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-popover_v9.0.0-beta.5..@fluentui/react-popover_v0.0.0-nightly0bc161458e20220126.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by email not defined)
15
15
  - Replacing use of functions in makeStyles with direct use of tokens ([PR #21049](https://github.com/microsoft/fluentui/pull/21049) by Humberto.Morimoto@microsoft.com)
16
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
16
17
  - Fix Popover arrow border in high contrast ([PR #21086](https://github.com/microsoft/fluentui/pull/21086) by behowell@microsoft.com)
18
+ - fix: Set `aria-modal` on Popover if focus trap is enabled ([PR #21387](https://github.com/microsoft/fluentui/pull/21387) by lingfangao@hotmail.com)
19
+ - Updating based on removal of functions from makeStyles. ([PR #21239](https://github.com/microsoft/fluentui/pull/21239) by Humberto.Morimoto@microsoft.com)
20
+ - use Griffel packages ([PR #21392](https://github.com/microsoft/fluentui/pull/21392) by olfedias@microsoft.com)
17
21
  - update styles to not use CSS shorthands ([PR #20796](https://github.com/microsoft/fluentui/pull/20796) by olfedias@microsoft.com)
18
- - Bump @fluentui/react-context-selector to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
19
- - Bump @fluentui/react-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
20
- - Bump @fluentui/react-portal to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
21
- - Bump @fluentui/react-positioning to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
22
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
23
- - Bump @fluentui/react-tabster to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
24
- - Bump @fluentui/react-utilities to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
25
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
26
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
27
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
22
+ - fix: Use role=complementary for Popovers without focus traps ([PR #21416](https://github.com/microsoft/fluentui/pull/21416) by lingfangao@hotmail.com)
23
+ - 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)
24
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
25
+ - Bump @fluentui/react-portal to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
26
+ - Bump @fluentui/react-positioning to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
27
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
28
+ - Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
29
+ - Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
30
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
28
31
 
29
32
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-popover_v9.0.0-beta.5)
30
33
 
@@ -148,8 +148,6 @@ export declare type PopoverSurfaceSlots = {
148
148
  root: IntrinsicShorthandProps<'div'>;
149
149
  };
150
150
 
151
- export declare const popoverSurfaceSlots: Array<keyof PopoverSurfaceSlots>;
152
-
153
151
  /**
154
152
  * PopoverSurface State
155
153
  */
@@ -180,54 +178,54 @@ export declare type PopoverTriggerState = PopoverTriggerProps;
180
178
  /**
181
179
  * Render the final JSX of Popover
182
180
  */
183
- export declare const renderPopover: (state: PopoverState) => JSX.Element;
181
+ export declare const renderPopover_unstable: (state: PopoverState) => JSX.Element;
184
182
 
185
183
  /**
186
184
  * Render the final JSX of PopoverSurface
187
185
  */
188
- export declare const renderPopoverSurface: (state: PopoverSurfaceState) => JSX.Element | null;
186
+ export declare const renderPopoverSurface_unstable: (state: PopoverSurfaceState) => JSX.Element | null;
189
187
 
190
188
  /**
191
189
  * Render the final JSX of PopoverTrigger
192
190
  */
193
- export declare const renderPopoverTrigger: (state: PopoverTriggerState) => JSX.Element;
191
+ export declare const renderPopoverTrigger_unstable: (state: PopoverTriggerState) => JSX.Element;
194
192
 
195
193
  /**
196
194
  * Create the state required to render Popover.
197
195
  *
198
196
  * The returned state can be modified with hooks such as usePopoverStyles,
199
- * before being passed to renderPopover.
197
+ * before being passed to renderPopover_unstable.
200
198
  *
201
199
  * @param props - props from this instance of Popover
202
200
  */
203
- export declare const usePopover: (props: PopoverProps) => PopoverState;
201
+ export declare const usePopover_unstable: (props: PopoverProps) => PopoverState;
204
202
 
205
- export declare const usePopoverContext: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
203
+ export declare const usePopoverContext_unstable: <T>(selector: ContextSelector<PopoverContextValue, T>) => T;
206
204
 
207
205
  /**
208
206
  * Create the state required to render PopoverSurface.
209
207
  *
210
- * The returned state can be modified with hooks such as usePopoverSurfaceStyles,
211
- * before being passed to renderPopoverSurface.
208
+ * The returned state can be modified with hooks such as usePopoverSurfaceStyles_unstable,
209
+ * before being passed to renderPopoverSurface_unstable.
212
210
  *
213
211
  * @param props - props from this instance of PopoverSurface
214
212
  * @param ref - reference to root HTMLDivElement of PopoverSurface
215
213
  */
216
- export declare const usePopoverSurface: (props: PopoverSurfaceProps, ref: React_2.Ref<HTMLDivElement>) => PopoverSurfaceState;
214
+ export declare const usePopoverSurface_unstable: (props: PopoverSurfaceProps, ref: React_2.Ref<HTMLDivElement>) => PopoverSurfaceState;
217
215
 
218
216
  /**
219
217
  * Apply styling to the PopoverSurface slots based on the state
220
218
  */
221
- export declare const usePopoverSurfaceStyles: (state: PopoverSurfaceState) => PopoverSurfaceState;
219
+ export declare const usePopoverSurfaceStyles_unstable: (state: PopoverSurfaceState) => PopoverSurfaceState;
222
220
 
223
221
  /**
224
222
  * Create the state required to render PopoverTrigger.
225
223
  *
226
224
  * The returned state can be modified with hooks such as usePopoverTriggerStyles,
227
- * before being passed to renderPopoverTrigger.
225
+ * before being passed to renderPopoverTrigger_unstable.
228
226
  *
229
227
  * @param props - props from this instance of PopoverTrigger
230
228
  */
231
- export declare const usePopoverTrigger: (props: PopoverTriggerProps) => PopoverTriggerState;
229
+ export declare const usePopoverTrigger_unstable: (props: PopoverTriggerProps) => PopoverTriggerState;
232
230
 
233
231
  export { }
@@ -1,12 +1,12 @@
1
- import { usePopover } from './usePopover';
2
- import { renderPopover } from './renderPopover';
1
+ import { usePopover_unstable } from './usePopover';
2
+ import { renderPopover_unstable } from './renderPopover';
3
3
  /**
4
4
  * Wrapper component that manages state for a PopoverTrigger and a PopoverSurface components.
5
5
  */
6
6
 
7
7
  export const Popover = props => {
8
- const state = usePopover(props);
9
- return renderPopover(state);
8
+ const state = usePopover_unstable(props);
9
+ return renderPopover_unstable(state);
10
10
  };
11
11
  Popover.displayName = 'Popover';
12
12
  //# sourceMappingURL=Popover.js.map
@@ -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,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":""}
1
+ {"version":3,"sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AAGA;;AAEG;;AACH,OAAO,MAAM,OAAO,GAA2B,KAAK,IAAG;AACrD,QAAM,KAAK,GAAG,mBAAmB,CAAC,KAAD,CAAjC;AAEA,SAAO,sBAAsB,CAAC,KAAD,CAA7B;AACD,CAJM;AAMP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourceRoot":""}
@@ -2,4 +2,4 @@ import type { PopoverState } from './Popover.types';
2
2
  /**
3
3
  * Render the final JSX of Popover
4
4
  */
5
- export declare const renderPopover: (state: PopoverState) => JSX.Element;
5
+ export declare const renderPopover_unstable: (state: PopoverState) => JSX.Element;
@@ -4,7 +4,7 @@ import { PopoverContext } from '../../popoverContext';
4
4
  * Render the final JSX of Popover
5
5
  */
6
6
 
7
- export const renderPopover = state => {
7
+ export const renderPopover_unstable = state => {
8
8
  const {
9
9
  open,
10
10
  setOpen,
@@ -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,MAAM,aAAa,GAAI,KAAD,IAAwB;AACnD,QAAM;AACJ,IAAA,IADI;AAE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A,QARK;AASL,MAAA,IATK;AAUL,MAAA,OAVK;AAWL,MAAA,UAXK;AAYL,MAAA;AAZK;AADe,GAAxB,EAgBG,KAAK,CAAC,QAhBT,CADF;AAoBD,CApCM","sourceRoot":""}
@@ -3,8 +3,8 @@ import type { PopoverProps, PopoverState } from './Popover.types';
3
3
  * Create the state required to render Popover.
4
4
  *
5
5
  * The returned state can be modified with hooks such as usePopoverStyles,
6
- * before being passed to renderPopover.
6
+ * before being passed to renderPopover_unstable.
7
7
  *
8
8
  * @param props - props from this instance of Popover
9
9
  */
10
- export declare const usePopover: (props: PopoverProps) => PopoverState;
10
+ export declare const usePopover_unstable: (props: PopoverProps) => PopoverState;
@@ -8,12 +8,12 @@ import { arrowHeights } from '../PopoverSurface/index';
8
8
  * Create the state required to render Popover.
9
9
  *
10
10
  * The returned state can be modified with hooks such as usePopoverStyles,
11
- * before being passed to renderPopover.
11
+ * before being passed to renderPopover_unstable.
12
12
  *
13
13
  * @param props - props from this instance of Popover
14
14
  */
15
15
 
16
- export const usePopover = props => {
16
+ export const usePopover_unstable = props => {
17
17
  const [contextTarget, setContextTarget] = usePopperMouseTarget();
18
18
  const initialState = {
19
19
  size: 'medium',
@@ -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,MAAM,UAAU,GAAI,KAAD,IAAsC;AAC9D,QAAM,CAAC,aAAD,EAAgB,gBAAhB,IAAoC,oBAAoB,EAA9D;AACA,QAAM,YAAY,GAAG;A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AK,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":""}
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { usePopoverSurface } from './usePopoverSurface';
3
- import { renderPopoverSurface } from './renderPopoverSurface';
4
- import { usePopoverSurfaceStyles } from './usePopoverSurfaceStyles';
2
+ import { usePopoverSurface_unstable } from './usePopoverSurface';
3
+ import { renderPopoverSurface_unstable } from './renderPopoverSurface';
4
+ import { usePopoverSurfaceStyles_unstable } from './usePopoverSurfaceStyles';
5
5
  /**
6
6
  * PopoverSurface component renders react children in a positioned box
7
7
  */
8
8
 
9
9
  export const PopoverSurface = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = usePopoverSurface(props, ref);
11
- usePopoverSurfaceStyles(state);
12
- return renderPopoverSurface(state);
10
+ const state = usePopoverSurface_unstable(props, ref);
11
+ usePopoverSurfaceStyles_unstable(state);
12
+ return renderPopoverSurface_unstable(state);
13
13
  });
14
14
  PopoverSurface.displayName = 'PopoverSurface';
15
15
  //# sourceMappingURL=PopoverSurface.js.map
@@ -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,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":""}
1
+ {"version":3,"sources":["../../../src/components/PopoverSurface/PopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,0BAAT,QAA2C,qBAA3C;AACA,SAAS,6BAAT,QAA8C,wBAA9C;AACA,SAAS,gCAAT,QAAiD,2BAAjD;AAIA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtG,QAAM,KAAK,GAAG,0BAA0B,CAAC,KAAD,EAAQ,GAAR,CAAxC;AAEA,EAAA,gCAAgC,CAAC,KAAD,CAAhC;AACA,SAAO,6BAA6B,CAAC,KAAD,CAApC;AACD,CALuE,CAAjE;AAOP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
@@ -2,4 +2,4 @@ import type { PopoverSurfaceState } from './PopoverSurface.types';
2
2
  /**
3
3
  * Render the final JSX of PopoverSurface
4
4
  */
5
- export declare const renderPopoverSurface: (state: PopoverSurfaceState) => JSX.Element | null;
5
+ export declare const renderPopoverSurface_unstable: (state: PopoverSurfaceState) => JSX.Element | null;
@@ -1,16 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { Portal } from '@fluentui/react-portal';
3
3
  import { getSlots } from '@fluentui/react-utilities';
4
- import { popoverSurfaceSlots } from './usePopoverSurface';
5
4
  /**
6
5
  * Render the final JSX of PopoverSurface
7
6
  */
8
7
 
9
- export const renderPopoverSurface = state => {
8
+ export const renderPopoverSurface_unstable = state => {
10
9
  const {
11
10
  slots,
12
11
  slotProps
13
- } = getSlots(state, popoverSurfaceSlots); // TODO should hidden Popovers be supported ?
12
+ } = getSlots(state); // TODO should hidden Popovers be supported ?
14
13
 
15
14
  if (!state.open) {
16
15
  return null;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,mBAAT,QAAoC,qBAApC;AAEA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAA+B;AACjE,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,EAA6B,mBAA7B,CAArC,CADiE,CAGjE;;AACA,MAAI,CAAC,KAAK,CAAC,IAAX,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,sBACE,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO;AAAC,IAAA,SAAS,EAAE,KAAK,CAAC;AAAlB,GAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,CAAC,KAAK,CAAC,OAAP,iBAAkB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADrB,EAEG,SAAS,CAAC,IAAV,CAAe,QAFlB,CADF,CADF;AAQD,CAhBM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/PopoverSurface/renderPopoverSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,6BAA6B,GAAI,KAAD,IAA+B;AAC1E,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,CAArC,CAD0E,CAG1E;;AACA,MAAI,CAAC,KAAK,CAAC,IAAX,EAAiB;AACf,WAAO,IAAP;AACD;;AAED,sBACE,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO;AAAC,IAAA,SAAS,EAAE,KAAK,CAAC;AAAlB,GAAP,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,CAAC,KAAK,CAAC,OAAP,iBAAkB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAK,IAAA,GAAG,EAAE,KAAK,CAAC,QAAhB;AAA0B,IAAA,SAAS,EAAE,KAAK,CAAC;AAA3C,GAAA,CADrB,EAEG,SAAS,CAAC,IAAV,CAAe,QAFlB,CADF,CADF;AAQD,CAhBM","sourceRoot":""}
@@ -1,13 +1,12 @@
1
1
  import * as React from 'react';
2
- import type { PopoverSurfaceProps, PopoverSurfaceSlots, PopoverSurfaceState } from './PopoverSurface.types';
3
- export declare const popoverSurfaceSlots: Array<keyof PopoverSurfaceSlots>;
2
+ import type { PopoverSurfaceProps, PopoverSurfaceState } from './PopoverSurface.types';
4
3
  /**
5
4
  * Create the state required to render PopoverSurface.
6
5
  *
7
- * The returned state can be modified with hooks such as usePopoverSurfaceStyles,
8
- * before being passed to renderPopoverSurface.
6
+ * The returned state can be modified with hooks such as usePopoverSurfaceStyles_unstable,
7
+ * before being passed to renderPopoverSurface_unstable.
9
8
  *
10
9
  * @param props - props from this instance of PopoverSurface
11
10
  * @param ref - reference to root HTMLDivElement of PopoverSurface
12
11
  */
13
- export declare const usePopoverSurface: (props: PopoverSurfaceProps, ref: React.Ref<HTMLDivElement>) => PopoverSurfaceState;
12
+ export declare const usePopoverSurface_unstable: (props: PopoverSurfaceProps, ref: React.Ref<HTMLDivElement>) => PopoverSurfaceState;
@@ -1,29 +1,28 @@
1
1
  import * as React from 'react';
2
2
  import { getNativeElementProps, useMergedRefs } from '@fluentui/react-utilities';
3
3
  import { useFocusFinders, useModalAttributes } from '@fluentui/react-tabster';
4
- import { usePopoverContext } from '../../popoverContext';
5
- export const popoverSurfaceSlots = ['root'];
4
+ import { usePopoverContext_unstable } from '../../popoverContext';
6
5
  /**
7
6
  * Create the state required to render PopoverSurface.
8
7
  *
9
- * The returned state can be modified with hooks such as usePopoverSurfaceStyles,
10
- * before being passed to renderPopoverSurface.
8
+ * The returned state can be modified with hooks such as usePopoverSurfaceStyles_unstable,
9
+ * before being passed to renderPopoverSurface_unstable.
11
10
  *
12
11
  * @param props - props from this instance of PopoverSurface
13
12
  * @param ref - reference to root HTMLDivElement of PopoverSurface
14
13
  */
15
14
 
16
- export const usePopoverSurface = (props, ref) => {
17
- const contentRef = usePopoverContext(context => context.contentRef);
18
- const open = usePopoverContext(context => context.open);
19
- const openOnHover = usePopoverContext(context => context.openOnHover);
20
- const setOpen = usePopoverContext(context => context.setOpen);
21
- const mountNode = usePopoverContext(context => context.mountNode);
22
- const arrowRef = usePopoverContext(context => context.arrowRef);
23
- const size = usePopoverContext(context => context.size);
24
- const noArrow = usePopoverContext(context => context.noArrow);
25
- const appearance = usePopoverContext(context => context.appearance);
26
- const trapFocus = usePopoverContext(context => context.trapFocus);
15
+ export const usePopoverSurface_unstable = (props, ref) => {
16
+ const contentRef = usePopoverContext_unstable(context => context.contentRef);
17
+ const open = usePopoverContext_unstable(context => context.open);
18
+ const openOnHover = usePopoverContext_unstable(context => context.openOnHover);
19
+ const setOpen = usePopoverContext_unstable(context => context.setOpen);
20
+ const mountNode = usePopoverContext_unstable(context => context.mountNode);
21
+ const arrowRef = usePopoverContext_unstable(context => context.arrowRef);
22
+ const size = usePopoverContext_unstable(context => context.size);
23
+ const noArrow = usePopoverContext_unstable(context => context.noArrow);
24
+ const appearance = usePopoverContext_unstable(context => context.appearance);
25
+ const trapFocus = usePopoverContext_unstable(context => context.trapFocus);
27
26
  const {
28
27
  modalAttributes
29
28
  } = useModalAttributes({
@@ -41,7 +40,8 @@ export const usePopoverSurface = (props, ref) => {
41
40
  },
42
41
  root: getNativeElementProps('div', {
43
42
  ref: useMergedRefs(ref, contentRef),
44
- role: 'dialog',
43
+ role: trapFocus ? 'dialog' : 'complementary',
44
+ 'aria-modal': trapFocus ? true : undefined,
45
45
  ...modalAttributes,
46
46
  ...props
47
47
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/PopoverSurface/usePopoverSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,aAAhC,QAAqD,2BAArD;AACA,SAAS,eAAT,EAA0B,kBAA1B,QAAoD,yBAApD;AACA,SAAS,iBAAT,QAAkC,sBAAlC;AAGA,OAAO,MAAM,mBAAmB,GAAqC,CAAC,MAAD,CAA9D;AAEP;;;;;;;;AAQG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAA6B,GAA7B,KAAoF;AACnH,QAAM,UAAU,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,UAApB,CAApC;AACA,QAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,IAApB,CAA9B;AACA,QAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,WAApB,CAArC;AACA,QAAM,OAAO,GAAG,iBAAiB,CAAC,OAAO,IAAI,OAAO,CAAC,OAApB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AACA;;;AACA,QAAI,CAAC,CAAC,GAAF,KAAU,QAAV,KAAsB,CAAA,EAAA,GAAA,UAAU,CAAC,OAAX,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,KAAA,CAAlB,GAAkB,EAAA,CAAE,QAAF,CAAW,CAAC,CAAC,MAAb,CAAxC,CAAJ,EAAoF;AAClF,MAAA,OAAO,CAAC,CAAD,EAAI,KAAJ,CAAP;AACD;;AAED,IAAA,iBAAiB,KAAA,IAAjB,IAAA,iBAAiB,KAAA,KAAA,CAAjB,GAAiB,KAAA,CAAjB,GAAA,iBAAiB,CAAG,CAAH,CAAjB;AACD,GARD;;AAUA,QAAM;AAAE,IAAA;AAAF,MAAyB,eAAe,EAA9C;AAEA,EAAA,KAAK,CAAC,SAAN,CAAgB,MAAK;AACnB,QAAI,KAAK,CAAC,IAAN,IAAc,UAAU,CAAC,OAA7B,EAAsC;AACpC,YAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,OAAZ,CAAzC;AACA,MAAA,cAAc,KAAA,IAAd,IAAA,cAAc,KAAA,KAAA,CAAd,GAAc,KAAA,CAAd,GAAA,cAAc,CAAE,KAAhB,EAAA;AACD;AACF,GALD,EAKG,CAAC,UAAD,EAAa,kBAAb,EAAiC,KAAK,CAAC,IAAvC,CALH;AAMA,SAAO,KAAP;AACD,CA3EM","sourceRoot":""}
@@ -5,4 +5,4 @@ export declare const arrowHeights: Record<PopoverSize, number>;
5
5
  /**
6
6
  * Apply styling to the PopoverSurface slots based on the state
7
7
  */
8
- export declare const usePopoverSurfaceStyles: (state: PopoverSurfaceState) => PopoverSurfaceState;
8
+ export declare const usePopoverSurfaceStyles_unstable: (state: PopoverSurfaceState) => PopoverSurfaceState;
@@ -1,4 +1,4 @@
1
- import { shorthands, __styles, mergeClasses } from '@fluentui/react-make-styles';
1
+ import { shorthands, __styles, mergeClasses } from '@griffel/react';
2
2
  import { createArrowHeightStyles, createArrowStyles } from '@fluentui/react-positioning';
3
3
  import { tokens } from '@fluentui/react-theme';
4
4
  export const popoverSurfaceClassName = 'fui-PopoverSurface';
@@ -78,9 +78,9 @@ const useStyles = /*#__PURE__*/__styles({
78
78
  "Bdn98qo": "f103af6e",
79
79
  "Bbc2r3f": "f15umuo5",
80
80
  "B1dvbpk": "f3wpjpt",
81
- "D4ky5z": ["f1pa2qi2", "f1ooiv2t"],
82
- "cqycoz": ["fiio4mc", "fc8z0qo"],
83
- "I89eb": ["f15d5mb5", "fe45dp8"],
81
+ "D4ky5z": "f1k3tce7",
82
+ "cqycoz": "f1dkdgqi",
83
+ "I89eb": "f5ghsz",
84
84
  "k1i1uq": "fyqop9u",
85
85
  "Epwjcz": "f1m5ya7j",
86
86
  "Bp1vogq": "f3sp63x",
@@ -96,14 +96,14 @@ const useStyles = /*#__PURE__*/__styles({
96
96
  "Bwwlvwl": "fm1ycve"
97
97
  }
98
98
  }, {
99
- "d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fc7z3ec{padding-top:20px;}", ".fat0sn4{padding-right:20px;}", ".fekwl8i{padding-left:20px;}", ".fe2my4m{padding-bottom:20px;}", ".f1ekdpwm{width:8.484px;}", ".f83vc9z{height:8.484px;}", ".f1kmc0fn{width:11.312px;}", ".fb6lvc5{height:11.312px;}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".fkk33zh:before{visibility:visible;}", ".fxf9f1y:before{position:absolute;}", ".f170vdtw:before{box-sizing:border-box;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".f1pa2qi2:before{border-right-width:1px;}", ".f1ooiv2t:before{border-left-width:1px;}", ".fiio4mc:before{border-right-style:solid;}", ".fc8z0qo:before{border-left-style:solid;}", ".f15d5mb5:before{border-right-color:var(--colorTransparentStroke);}", ".fe45dp8:before{border-left-color:var(--colorTransparentStroke);}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f3sp63x:before{border-bottom-color:var(--colorTransparentStroke);}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".fzd2j21:before{-webkit-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-moz-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-ms-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);}", "[data-popper-placement^=\"top\"] .f1773hnp{bottom:-1px;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1v7783n{left:-1px;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .fh2hsk5{top:-1px;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f11yvu4{right:-1px;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
99
+ "d": [".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".f1hg901r{box-shadow:var(--shadow16);}", ".fff7au0{border-bottom-right-radius:4px;}", ".f1bjk9e1{border-bottom-left-radius:4px;}", ".fwsfkhu{border-top-right-radius:4px;}", ".f8wkphi{border-top-left-radius:4px;}", ".f5ogflp{border-top-width:1px;}", ".f1hqa2wf{border-right-width:1px;}", ".finvdd3{border-left-width:1px;}", ".f1f09k3d{border-bottom-width:1px;}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".fghlq4f{border-top-color:var(--colorTransparentStroke);}", ".f1gn591s{border-right-color:var(--colorTransparentStroke);}", ".fjscplz{border-left-color:var(--colorTransparentStroke);}", ".fb073pr{border-bottom-color:var(--colorTransparentStroke);}", ".f1c73kur{background-color:var(--colorNeutralForeground1);}", ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}", ".ffp7eso{background-color:var(--colorBrandBackground);}", ".f1kcqot9{padding-top:12px;}", ".f11qrl6u{padding-right:12px;}", ".fjlbh76{padding-left:12px;}", ".fpe6lb7{padding-bottom:12px;}", ".fqag9an{padding-top:16px;}", ".f1gbmcue{padding-right:16px;}", ".f1rh9g5y{padding-left:16px;}", ".fp67ikv{padding-bottom:16px;}", ".fc7z3ec{padding-top:20px;}", ".fat0sn4{padding-right:20px;}", ".fekwl8i{padding-left:20px;}", ".fe2my4m{padding-bottom:20px;}", ".f1ekdpwm{width:8.484px;}", ".f83vc9z{height:8.484px;}", ".f1kmc0fn{width:11.312px;}", ".fb6lvc5{height:11.312px;}", ".f1euv43f{position:absolute;}", ".f1u2r49w{background-color:inherit;}", ".fd7fpy0{visibility:hidden;}", ".f1bsuimh{z-index:-1;}", ".fuzzvh5:before{content:\"\";}", ".fkk33zh:before{visibility:visible;}", ".fxf9f1y:before{position:absolute;}", ".f170vdtw:before{box-sizing:border-box;}", ".f103af6e:before{width:inherit;}", ".f15umuo5:before{height:inherit;}", ".f3wpjpt:before{background-color:inherit;}", ".f1k3tce7:before{border-right-width:1px;}", ".f1dkdgqi:before{border-right-style:solid;}", ".f5ghsz:before{border-right-color:var(--colorTransparentStroke);}", ".fyqop9u:before{border-bottom-width:1px;}", ".f1m5ya7j:before{border-bottom-style:solid;}", ".f3sp63x:before{border-bottom-color:var(--colorTransparentStroke);}", ".f5bg3dr:before{border-bottom-right-radius:var(--borderRadiusSmall);}", ".f1rfdd74:before{border-bottom-left-radius:var(--borderRadiusSmall);}", ".fzd2j21:before{-webkit-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-moz-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);-ms-transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);transform:rotate(var(--angle)) translate(0, 50%) rotate(45deg);}", "[data-popper-placement^=\"top\"] .f1773hnp{bottom:-1px;}", "[data-popper-placement^=\"top\"] .f1n8855c{--angle:0;}", "[data-popper-placement^=\"right\"] .f1v7783n{left:-1px;}", "[data-popper-placement^=\"right\"] .fsw6im5{--angle:90deg;}", "[data-popper-placement^=\"bottom\"] .fh2hsk5{top:-1px;}", "[data-popper-placement^=\"bottom\"] .f159pzir{--angle:180deg;}", "[data-popper-placement^=\"left\"] .f11yvu4{right:-1px;}", "[data-popper-placement^=\"left\"] .fm1ycve{--angle:270deg;}"]
100
100
  });
101
101
  /**
102
102
  * Apply styling to the PopoverSurface slots based on the state
103
103
  */
104
104
 
105
105
 
106
- export const usePopoverSurfaceStyles = state => {
106
+ export const usePopoverSurfaceStyles_unstable = state => {
107
107
  const styles = useStyles();
108
108
  state.root.className = mergeClasses(popoverSurfaceClassName, styles.root, state.size === 'small' && styles.smallPadding, state.size === 'medium' && styles.mediumPadding, state.size === 'large' && styles.largePadding, state.appearance === 'inverted' && styles.inverted, state.appearance === 'brand' && styles.brand, state.root.className);
109
109
  state.arrowClassName = mergeClasses(styles.arrow, state.size === 'small' ? styles.smallArrow : styles.mediumLargeArrow);