@fluentui/react-dialog 9.5.8 → 9.5.10

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 (232) hide show
  1. package/CHANGELOG.json +139 -1
  2. package/CHANGELOG.md +38 -2
  3. package/lib/Dialog.js +0 -1
  4. package/lib/Dialog.js.map +1 -1
  5. package/lib/DialogActions.js +0 -1
  6. package/lib/DialogActions.js.map +1 -1
  7. package/lib/DialogBody.js +0 -1
  8. package/lib/DialogBody.js.map +1 -1
  9. package/lib/DialogContent.js +0 -1
  10. package/lib/DialogContent.js.map +1 -1
  11. package/lib/DialogSurface.js +0 -1
  12. package/lib/DialogSurface.js.map +1 -1
  13. package/lib/DialogTitle.js +0 -1
  14. package/lib/DialogTitle.js.map +1 -1
  15. package/lib/DialogTrigger.js +0 -1
  16. package/lib/DialogTrigger.js.map +1 -1
  17. package/lib/components/Dialog/Dialog.js +4 -6
  18. package/lib/components/Dialog/Dialog.js.map +1 -1
  19. package/lib/components/Dialog/Dialog.types.js +1 -2
  20. package/lib/components/Dialog/Dialog.types.js.map +1 -1
  21. package/lib/components/Dialog/index.js +0 -1
  22. package/lib/components/Dialog/index.js.map +1 -1
  23. package/lib/components/Dialog/renderDialog.js +8 -13
  24. package/lib/components/Dialog/renderDialog.js.map +1 -1
  25. package/lib/components/Dialog/useDialog.js +71 -73
  26. package/lib/components/Dialog/useDialog.js.map +1 -1
  27. package/lib/components/Dialog/useDialogContextValues.js +20 -32
  28. package/lib/components/Dialog/useDialogContextValues.js.map +1 -1
  29. package/lib/components/DialogActions/DialogActions.js +5 -7
  30. package/lib/components/DialogActions/DialogActions.js.map +1 -1
  31. package/lib/components/DialogActions/DialogActions.types.js +1 -2
  32. package/lib/components/DialogActions/DialogActions.types.js.map +1 -1
  33. package/lib/components/DialogActions/index.js +0 -1
  34. package/lib/components/DialogActions/index.js.map +1 -1
  35. package/lib/components/DialogActions/renderDialogActions.js +5 -10
  36. package/lib/components/DialogActions/renderDialogActions.js.map +1 -1
  37. package/lib/components/DialogActions/useDialogActions.js +13 -18
  38. package/lib/components/DialogActions/useDialogActions.js.map +1 -1
  39. package/lib/components/DialogActions/useDialogActionsStyles.styles.js +8 -2
  40. package/lib/components/DialogActions/useDialogActionsStyles.styles.js.map +1 -1
  41. package/lib/components/DialogBody/DialogBody.js +5 -7
  42. package/lib/components/DialogBody/DialogBody.js.map +1 -1
  43. package/lib/components/DialogBody/DialogBody.types.js +1 -2
  44. package/lib/components/DialogBody/DialogBody.types.js.map +1 -1
  45. package/lib/components/DialogBody/index.js +0 -1
  46. package/lib/components/DialogBody/index.js.map +1 -1
  47. package/lib/components/DialogBody/renderDialogBody.js +5 -10
  48. package/lib/components/DialogBody/renderDialogBody.js.map +1 -1
  49. package/lib/components/DialogBody/useDialogBody.js +11 -13
  50. package/lib/components/DialogBody/useDialogBody.js.map +1 -1
  51. package/lib/components/DialogBody/useDialogBodyStyles.styles.js.map +1 -1
  52. package/lib/components/DialogContent/DialogContent.js +5 -7
  53. package/lib/components/DialogContent/DialogContent.js.map +1 -1
  54. package/lib/components/DialogContent/DialogContent.types.js +1 -2
  55. package/lib/components/DialogContent/DialogContent.types.js.map +1 -1
  56. package/lib/components/DialogContent/index.js +0 -1
  57. package/lib/components/DialogContent/index.js.map +1 -1
  58. package/lib/components/DialogContent/renderDialogContent.js +4 -9
  59. package/lib/components/DialogContent/renderDialogContent.js.map +1 -1
  60. package/lib/components/DialogContent/useDialogContent.js +11 -13
  61. package/lib/components/DialogContent/useDialogContent.js.map +1 -1
  62. package/lib/components/DialogContent/useDialogContentStyles.styles.js.map +1 -1
  63. package/lib/components/DialogSurface/DialogSurface.js +6 -8
  64. package/lib/components/DialogSurface/DialogSurface.js.map +1 -1
  65. package/lib/components/DialogSurface/DialogSurface.types.js +1 -2
  66. package/lib/components/DialogSurface/DialogSurface.types.js.map +1 -1
  67. package/lib/components/DialogSurface/index.js +0 -1
  68. package/lib/components/DialogSurface/index.js.map +1 -1
  69. package/lib/components/DialogSurface/renderDialogSurface.js +6 -11
  70. package/lib/components/DialogSurface/renderDialogSurface.js.map +1 -1
  71. package/lib/components/DialogSurface/useDialogSurface.js +58 -63
  72. package/lib/components/DialogSurface/useDialogSurface.js.map +1 -1
  73. package/lib/components/DialogSurface/useDialogSurfaceContextValues.js +4 -5
  74. package/lib/components/DialogSurface/useDialogSurfaceContextValues.js.map +1 -1
  75. package/lib/components/DialogSurface/useDialogSurfaceStyles.styles.js +5 -5
  76. package/lib/components/DialogSurface/useDialogSurfaceStyles.styles.js.map +1 -1
  77. package/lib/components/DialogTitle/DialogTitle.js +5 -7
  78. package/lib/components/DialogTitle/DialogTitle.js.map +1 -1
  79. package/lib/components/DialogTitle/DialogTitle.types.js +1 -2
  80. package/lib/components/DialogTitle/DialogTitle.types.js.map +1 -1
  81. package/lib/components/DialogTitle/index.js +0 -1
  82. package/lib/components/DialogTitle/index.js.map +1 -1
  83. package/lib/components/DialogTitle/renderDialogTitle.js +4 -9
  84. package/lib/components/DialogTitle/renderDialogTitle.js.map +1 -1
  85. package/lib/components/DialogTitle/useDialogTitle.js +29 -34
  86. package/lib/components/DialogTitle/useDialogTitle.js.map +1 -1
  87. package/lib/components/DialogTitle/useDialogTitleStyles.styles.js +9 -7
  88. package/lib/components/DialogTitle/useDialogTitleStyles.styles.js.map +1 -1
  89. package/lib/components/DialogTrigger/DialogTrigger.js +3 -5
  90. package/lib/components/DialogTrigger/DialogTrigger.js.map +1 -1
  91. package/lib/components/DialogTrigger/DialogTrigger.types.js +0 -1
  92. package/lib/components/DialogTrigger/DialogTrigger.types.js.map +1 -1
  93. package/lib/components/DialogTrigger/index.js +0 -1
  94. package/lib/components/DialogTrigger/index.js.map +1 -1
  95. package/lib/components/DialogTrigger/renderDialogTrigger.js +1 -2
  96. package/lib/components/DialogTrigger/renderDialogTrigger.js.map +1 -1
  97. package/lib/components/DialogTrigger/useDialogTrigger.styles.js.map +1 -1
  98. package/lib/contexts/constants.js +0 -1
  99. package/lib/contexts/constants.js.map +1 -1
  100. package/lib/contexts/dialogContext.js +11 -12
  101. package/lib/contexts/dialogContext.js.map +1 -1
  102. package/lib/contexts/dialogSurfaceContext.js +2 -3
  103. package/lib/contexts/dialogSurfaceContext.js.map +1 -1
  104. package/lib/contexts/index.js +0 -1
  105. package/lib/contexts/index.js.map +1 -1
  106. package/lib/index.js +0 -1
  107. package/lib/index.js.map +1 -1
  108. package/lib/utils/index.js +0 -1
  109. package/lib/utils/index.js.map +1 -1
  110. package/lib/utils/isEscapeKeyDown.js +2 -4
  111. package/lib/utils/isEscapeKeyDown.js.map +1 -1
  112. package/lib/utils/useDisableBodyScroll.js +31 -36
  113. package/lib/utils/useDisableBodyScroll.js.map +1 -1
  114. package/lib/utils/useFocusFirstElement.js +29 -27
  115. package/lib/utils/useFocusFirstElement.js.map +1 -1
  116. package/lib-commonjs/Dialog.js +0 -3
  117. package/lib-commonjs/Dialog.js.map +1 -1
  118. package/lib-commonjs/DialogActions.js +0 -3
  119. package/lib-commonjs/DialogActions.js.map +1 -1
  120. package/lib-commonjs/DialogBody.js +0 -3
  121. package/lib-commonjs/DialogBody.js.map +1 -1
  122. package/lib-commonjs/DialogContent.js +0 -3
  123. package/lib-commonjs/DialogContent.js.map +1 -1
  124. package/lib-commonjs/DialogSurface.js +0 -3
  125. package/lib-commonjs/DialogSurface.js.map +1 -1
  126. package/lib-commonjs/DialogTitle.js +0 -3
  127. package/lib-commonjs/DialogTitle.js.map +1 -1
  128. package/lib-commonjs/DialogTrigger.js +0 -3
  129. package/lib-commonjs/DialogTrigger.js.map +1 -1
  130. package/lib-commonjs/components/Dialog/Dialog.js +1 -3
  131. package/lib-commonjs/components/Dialog/Dialog.js.map +1 -1
  132. package/lib-commonjs/components/Dialog/Dialog.types.js +0 -3
  133. package/lib-commonjs/components/Dialog/Dialog.types.js.map +1 -1
  134. package/lib-commonjs/components/Dialog/index.js +0 -3
  135. package/lib-commonjs/components/Dialog/index.js.map +1 -1
  136. package/lib-commonjs/components/Dialog/renderDialog.js +1 -3
  137. package/lib-commonjs/components/Dialog/renderDialog.js.map +1 -1
  138. package/lib-commonjs/components/Dialog/useDialog.js +1 -3
  139. package/lib-commonjs/components/Dialog/useDialog.js.map +1 -1
  140. package/lib-commonjs/components/Dialog/useDialogContextValues.js +4 -6
  141. package/lib-commonjs/components/Dialog/useDialogContextValues.js.map +1 -1
  142. package/lib-commonjs/components/DialogActions/DialogActions.js +1 -3
  143. package/lib-commonjs/components/DialogActions/DialogActions.js.map +1 -1
  144. package/lib-commonjs/components/DialogActions/DialogActions.types.js +0 -3
  145. package/lib-commonjs/components/DialogActions/DialogActions.types.js.map +1 -1
  146. package/lib-commonjs/components/DialogActions/index.js +0 -3
  147. package/lib-commonjs/components/DialogActions/index.js.map +1 -1
  148. package/lib-commonjs/components/DialogActions/renderDialogActions.js +1 -3
  149. package/lib-commonjs/components/DialogActions/renderDialogActions.js.map +1 -1
  150. package/lib-commonjs/components/DialogActions/useDialogActions.js +1 -3
  151. package/lib-commonjs/components/DialogActions/useDialogActions.js.map +1 -1
  152. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.styles.js +16 -4
  153. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.styles.js.map +1 -1
  154. package/lib-commonjs/components/DialogBody/DialogBody.js +1 -3
  155. package/lib-commonjs/components/DialogBody/DialogBody.js.map +1 -1
  156. package/lib-commonjs/components/DialogBody/DialogBody.types.js +0 -3
  157. package/lib-commonjs/components/DialogBody/DialogBody.types.js.map +1 -1
  158. package/lib-commonjs/components/DialogBody/index.js +0 -3
  159. package/lib-commonjs/components/DialogBody/index.js.map +1 -1
  160. package/lib-commonjs/components/DialogBody/renderDialogBody.js +1 -3
  161. package/lib-commonjs/components/DialogBody/renderDialogBody.js.map +1 -1
  162. package/lib-commonjs/components/DialogBody/useDialogBody.js +1 -3
  163. package/lib-commonjs/components/DialogBody/useDialogBody.js.map +1 -1
  164. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.styles.js +0 -2
  165. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.styles.js.map +1 -1
  166. package/lib-commonjs/components/DialogContent/DialogContent.js +1 -3
  167. package/lib-commonjs/components/DialogContent/DialogContent.js.map +1 -1
  168. package/lib-commonjs/components/DialogContent/DialogContent.types.js +0 -3
  169. package/lib-commonjs/components/DialogContent/DialogContent.types.js.map +1 -1
  170. package/lib-commonjs/components/DialogContent/index.js +0 -3
  171. package/lib-commonjs/components/DialogContent/index.js.map +1 -1
  172. package/lib-commonjs/components/DialogContent/renderDialogContent.js +1 -3
  173. package/lib-commonjs/components/DialogContent/renderDialogContent.js.map +1 -1
  174. package/lib-commonjs/components/DialogContent/useDialogContent.js +1 -3
  175. package/lib-commonjs/components/DialogContent/useDialogContent.js.map +1 -1
  176. package/lib-commonjs/components/DialogContent/useDialogContentStyles.styles.js +0 -2
  177. package/lib-commonjs/components/DialogContent/useDialogContentStyles.styles.js.map +1 -1
  178. package/lib-commonjs/components/DialogSurface/DialogSurface.js +1 -3
  179. package/lib-commonjs/components/DialogSurface/DialogSurface.js.map +1 -1
  180. package/lib-commonjs/components/DialogSurface/DialogSurface.types.js +0 -3
  181. package/lib-commonjs/components/DialogSurface/DialogSurface.types.js.map +1 -1
  182. package/lib-commonjs/components/DialogSurface/index.js +0 -3
  183. package/lib-commonjs/components/DialogSurface/index.js.map +1 -1
  184. package/lib-commonjs/components/DialogSurface/renderDialogSurface.js +1 -3
  185. package/lib-commonjs/components/DialogSurface/renderDialogSurface.js.map +1 -1
  186. package/lib-commonjs/components/DialogSurface/useDialogSurface.js +1 -3
  187. package/lib-commonjs/components/DialogSurface/useDialogSurface.js.map +1 -1
  188. package/lib-commonjs/components/DialogSurface/useDialogSurfaceContextValues.js +1 -3
  189. package/lib-commonjs/components/DialogSurface/useDialogSurfaceContextValues.js.map +1 -1
  190. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.styles.js +12 -14
  191. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.styles.js.map +1 -1
  192. package/lib-commonjs/components/DialogTitle/DialogTitle.js +1 -3
  193. package/lib-commonjs/components/DialogTitle/DialogTitle.js.map +1 -1
  194. package/lib-commonjs/components/DialogTitle/DialogTitle.types.js +0 -3
  195. package/lib-commonjs/components/DialogTitle/DialogTitle.types.js.map +1 -1
  196. package/lib-commonjs/components/DialogTitle/index.js +0 -3
  197. package/lib-commonjs/components/DialogTitle/index.js.map +1 -1
  198. package/lib-commonjs/components/DialogTitle/renderDialogTitle.js +1 -3
  199. package/lib-commonjs/components/DialogTitle/renderDialogTitle.js.map +1 -1
  200. package/lib-commonjs/components/DialogTitle/useDialogTitle.js +1 -3
  201. package/lib-commonjs/components/DialogTitle/useDialogTitle.js.map +1 -1
  202. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.styles.js +16 -15
  203. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.styles.js.map +1 -1
  204. package/lib-commonjs/components/DialogTrigger/DialogTrigger.js +1 -3
  205. package/lib-commonjs/components/DialogTrigger/DialogTrigger.js.map +1 -1
  206. package/lib-commonjs/components/DialogTrigger/DialogTrigger.types.js +0 -3
  207. package/lib-commonjs/components/DialogTrigger/DialogTrigger.types.js.map +1 -1
  208. package/lib-commonjs/components/DialogTrigger/index.js +0 -3
  209. package/lib-commonjs/components/DialogTrigger/index.js.map +1 -1
  210. package/lib-commonjs/components/DialogTrigger/renderDialogTrigger.js +1 -3
  211. package/lib-commonjs/components/DialogTrigger/renderDialogTrigger.js.map +1 -1
  212. package/lib-commonjs/components/DialogTrigger/useDialogTrigger.styles.js +0 -2
  213. package/lib-commonjs/components/DialogTrigger/useDialogTrigger.styles.js.map +1 -1
  214. package/lib-commonjs/contexts/constants.js +1 -3
  215. package/lib-commonjs/contexts/constants.js.map +1 -1
  216. package/lib-commonjs/contexts/dialogContext.js +2 -4
  217. package/lib-commonjs/contexts/dialogContext.js.map +1 -1
  218. package/lib-commonjs/contexts/dialogSurfaceContext.js +1 -3
  219. package/lib-commonjs/contexts/dialogSurfaceContext.js.map +1 -1
  220. package/lib-commonjs/contexts/index.js +0 -3
  221. package/lib-commonjs/contexts/index.js.map +1 -1
  222. package/lib-commonjs/index.js +0 -3
  223. package/lib-commonjs/index.js.map +1 -1
  224. package/lib-commonjs/utils/index.js +0 -3
  225. package/lib-commonjs/utils/index.js.map +1 -1
  226. package/lib-commonjs/utils/isEscapeKeyDown.js +1 -3
  227. package/lib-commonjs/utils/isEscapeKeyDown.js.map +1 -1
  228. package/lib-commonjs/utils/useDisableBodyScroll.js +1 -3
  229. package/lib-commonjs/utils/useDisableBodyScroll.js.map +1 -1
  230. package/lib-commonjs/utils/useFocusFirstElement.js +1 -3
  231. package/lib-commonjs/utils/useFocusFirstElement.js.map +1 -1
  232. package/package.json +12 -12
package/CHANGELOG.json CHANGED
@@ -2,7 +2,145 @@
2
2
  "name": "@fluentui/react-dialog",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 25 May 2023 09:57:45 GMT",
5
+ "date": "Tue, 20 Jun 2023 12:34:41 GMT",
6
+ "tag": "@fluentui/react-dialog_v9.5.10",
7
+ "version": "9.5.10",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "bernardo.sunderhus@gmail.com",
12
+ "package": "@fluentui/react-dialog",
13
+ "commit": "9768e2c5f36cc6443917e10a44526a1d1050dd81",
14
+ "comment": "bugfix: Ensures dialog actions stretches on breakpoints"
15
+ },
16
+ {
17
+ "author": "ololubek@microsoft.com",
18
+ "package": "@fluentui/react-dialog",
19
+ "commit": "8a5ae3aa00faa327c58887a99a5698b18f2930ee",
20
+ "comment": "chore: update @fluentui/react-icons to 2.0.203"
21
+ },
22
+ {
23
+ "author": "derdem@microsoft.com",
24
+ "package": "@fluentui/react-dialog",
25
+ "commit": "0eae1bc208e0d69febb4bc1e70ab1e2c7c96b623",
26
+ "comment": "fix: dialog title now takes whole row when there are no actions. This fixes an earlier regresssion."
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-dialog",
31
+ "comment": "Bump @fluentui/react-utilities to v9.9.3",
32
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-dialog",
37
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.7",
38
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-dialog",
43
+ "comment": "Bump @fluentui/react-context-selector to v9.1.23",
44
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-dialog",
49
+ "comment": "Bump @fluentui/react-shared-contexts to v9.5.1",
50
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-dialog",
55
+ "comment": "Bump @fluentui/react-aria to v9.3.23",
56
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-dialog",
61
+ "comment": "Bump @fluentui/react-tabster to v9.8.0",
62
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-dialog",
67
+ "comment": "Bump @fluentui/react-theme to v9.1.9",
68
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-dialog",
73
+ "comment": "Bump @fluentui/react-portal to v9.2.13",
74
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui/react-dialog",
79
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.23",
80
+ "commit": "81c9b35e0830297b2aca2cece2ae67b3899c4647"
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ {
86
+ "date": "Wed, 31 May 2023 06:46:12 GMT",
87
+ "tag": "@fluentui/react-dialog_v9.5.9",
88
+ "version": "9.5.9",
89
+ "comments": {
90
+ "patch": [
91
+ {
92
+ "author": "seanmonahan@microsoft.com",
93
+ "package": "@fluentui/react-dialog",
94
+ "commit": "d640b972d7ac86bfb76ae6c6329f12cdd33b3b7c",
95
+ "comment": "chore: Update Griffel to v1.5.7."
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@fluentui/react-dialog",
100
+ "comment": "Bump @fluentui/react-utilities to v9.9.2",
101
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
102
+ },
103
+ {
104
+ "author": "beachball",
105
+ "package": "@fluentui/react-dialog",
106
+ "comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6",
107
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@fluentui/react-dialog",
112
+ "comment": "Bump @fluentui/react-context-selector to v9.1.22",
113
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
114
+ },
115
+ {
116
+ "author": "beachball",
117
+ "package": "@fluentui/react-dialog",
118
+ "comment": "Bump @fluentui/react-aria to v9.3.22",
119
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
120
+ },
121
+ {
122
+ "author": "beachball",
123
+ "package": "@fluentui/react-dialog",
124
+ "comment": "Bump @fluentui/react-tabster to v9.7.5",
125
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
126
+ },
127
+ {
128
+ "author": "beachball",
129
+ "package": "@fluentui/react-dialog",
130
+ "comment": "Bump @fluentui/react-portal to v9.2.12",
131
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
132
+ },
133
+ {
134
+ "author": "beachball",
135
+ "package": "@fluentui/react-dialog",
136
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22",
137
+ "commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
138
+ }
139
+ ]
140
+ }
141
+ },
142
+ {
143
+ "date": "Thu, 25 May 2023 10:00:48 GMT",
6
144
  "tag": "@fluentui/react-dialog_v9.5.8",
7
145
  "version": "9.5.8",
8
146
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,48 @@
1
1
  # Change Log - @fluentui/react-dialog
2
2
 
3
- This log was last generated on Thu, 25 May 2023 09:57:45 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 20 Jun 2023 12:34:41 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.5.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.5.10)
8
+
9
+ Tue, 20 Jun 2023 12:34:41 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.5.9..@fluentui/react-dialog_v9.5.10)
11
+
12
+ ### Patches
13
+
14
+ - bugfix: Ensures dialog actions stretches on breakpoints ([PR #28258](https://github.com/microsoft/fluentui/pull/28258) by bernardo.sunderhus@gmail.com)
15
+ - chore: update @fluentui/react-icons to 2.0.203 ([PR #28203](https://github.com/microsoft/fluentui/pull/28203) by ololubek@microsoft.com)
16
+ - fix: dialog title now takes whole row when there are no actions. This fixes an earlier regresssion. ([PR #28035](https://github.com/microsoft/fluentui/pull/28035) by derdem@microsoft.com)
17
+ - Bump @fluentui/react-utilities to v9.9.3 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
18
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.7 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
19
+ - Bump @fluentui/react-context-selector to v9.1.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
20
+ - Bump @fluentui/react-shared-contexts to v9.5.1 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
21
+ - Bump @fluentui/react-aria to v9.3.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
22
+ - Bump @fluentui/react-tabster to v9.8.0 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
23
+ - Bump @fluentui/react-theme to v9.1.9 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
24
+ - Bump @fluentui/react-portal to v9.2.13 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
25
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
26
+
27
+ ## [9.5.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.5.9)
28
+
29
+ Wed, 31 May 2023 06:46:12 GMT
30
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.5.8..@fluentui/react-dialog_v9.5.9)
31
+
32
+ ### Patches
33
+
34
+ - chore: Update Griffel to v1.5.7. ([PR #27925](https://github.com/microsoft/fluentui/pull/27925) by seanmonahan@microsoft.com)
35
+ - Bump @fluentui/react-utilities to v9.9.2 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
36
+ - Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
37
+ - Bump @fluentui/react-context-selector to v9.1.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
38
+ - Bump @fluentui/react-aria to v9.3.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
39
+ - Bump @fluentui/react-tabster to v9.7.5 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
40
+ - Bump @fluentui/react-portal to v9.2.12 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
41
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
42
+
7
43
  ## [9.5.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.5.8)
8
44
 
9
- Thu, 25 May 2023 09:57:45 GMT
45
+ Thu, 25 May 2023 10:00:48 GMT
10
46
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.5.7..@fluentui/react-dialog_v9.5.8)
11
47
 
12
48
  ### Patches
package/lib/Dialog.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/Dialog/index';
2
- //# sourceMappingURL=Dialog.js.map
package/lib/Dialog.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/Dialog.ts"],"sourcesContent":["export * from './components/Dialog/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["Dialog.ts"],"sourcesContent":["export * from './components/Dialog/index';\n"],"names":[],"mappings":"AAAA,cAAc,4BAA4B"}
@@ -1,2 +1 @@
1
1
  export * from './components/DialogActions/index';
2
- //# sourceMappingURL=DialogActions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DialogActions.ts"],"sourcesContent":["export * from './components/DialogActions/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DialogActions.ts"],"sourcesContent":["export * from './components/DialogActions/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
package/lib/DialogBody.js CHANGED
@@ -1,2 +1 @@
1
1
  export * from './components/DialogBody/index';
2
- //# sourceMappingURL=DialogBody.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DialogBody.ts"],"sourcesContent":["export * from './components/DialogBody/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DialogBody.ts"],"sourcesContent":["export * from './components/DialogBody/index';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DialogContent/index';
2
- //# sourceMappingURL=DialogContent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DialogContent.ts"],"sourcesContent":["export * from './components/DialogContent/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DialogContent.ts"],"sourcesContent":["export * from './components/DialogContent/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DialogSurface/index';
2
- //# sourceMappingURL=DialogSurface.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DialogSurface.ts"],"sourcesContent":["export * from './components/DialogSurface/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DialogSurface.ts"],"sourcesContent":["export * from './components/DialogSurface/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DialogTitle/index';
2
- //# sourceMappingURL=DialogTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DialogTitle.ts"],"sourcesContent":["export * from './components/DialogTitle/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DialogTitle.ts"],"sourcesContent":["export * from './components/DialogTitle/index';\n"],"names":[],"mappings":"AAAA,cAAc,iCAAiC"}
@@ -1,2 +1 @@
1
1
  export * from './components/DialogTrigger/index';
2
- //# sourceMappingURL=DialogTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/DialogTrigger.ts"],"sourcesContent":["export * from './components/DialogTrigger/index';\n"],"mappings":"AAAA,cAAc"}
1
+ {"version":3,"sources":["DialogTrigger.ts"],"sourcesContent":["export * from './components/DialogTrigger/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
@@ -8,11 +8,9 @@ import { useDialogContextValues_unstable } from './useDialogContextValues';
8
8
  * This component expects to receive as children either a `DialogSurface` or a `DialogTrigger`
9
9
  * and a `DialogSurface` (or some component that will eventually render one of those compound components)
10
10
  * in this specific order
11
- */
12
- export const Dialog = /*#__PURE__*/React.memo(props => {
13
- const state = useDialog_unstable(props);
14
- const contextValues = useDialogContextValues_unstable(state);
15
- return renderDialog_unstable(state, contextValues);
11
+ */ export const Dialog = /*#__PURE__*/ React.memo((props)=>{
12
+ const state = useDialog_unstable(props);
13
+ const contextValues = useDialogContextValues_unstable(state);
14
+ return renderDialog_unstable(state, contextValues);
16
15
  });
17
16
  Dialog.displayName = 'Dialog';
18
- //# sourceMappingURL=Dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useDialog_unstable","renderDialog_unstable","useDialogContextValues_unstable","Dialog","memo","props","state","contextValues","displayName"],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDialog_unstable } from './useDialog';\nimport { renderDialog_unstable } from './renderDialog';\nimport type { DialogProps } from './Dialog.types';\nimport { useDialogContextValues_unstable } from './useDialogContextValues';\n\n/**\n * The `Dialog` root level component serves as an interface for interaction with all possible behaviors exposed.\n * It provides context down the hierarchy to `children` compound components to allow functionality.\n * This component expects to receive as children either a `DialogSurface` or a `DialogTrigger`\n * and a `DialogSurface` (or some component that will eventually render one of those compound components)\n * in this specific order\n */\nexport const Dialog: React.FC<DialogProps> = React.memo(props => {\n const state = useDialog_unstable(props);\n const contextValues = useDialogContextValues_unstable(state);\n\n return renderDialog_unstable(state, contextValues);\n});\n\nDialog.displayName = 'Dialog';\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,kBAAkB,QAAQ;AACnC,SAASC,qBAAqB,QAAQ;AAEtC,SAASC,+BAA+B,QAAQ;AAEhD;;;;;;;AAOA,OAAO,MAAMC,MAAA,gBAAgCJ,KAAA,CAAMK,IAAI,CAACC,KAAA,IAAS;EAC/D,MAAMC,KAAA,GAAQN,kBAAA,CAAmBK,KAAA;EACjC,MAAME,aAAA,GAAgBL,+BAAA,CAAgCI,KAAA;EAEtD,OAAOL,qBAAA,CAAsBK,KAAA,EAAOC,aAAA;AACtC;AAEAJ,MAAA,CAAOK,WAAW,GAAG"}
1
+ {"version":3,"sources":["Dialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDialog_unstable } from './useDialog';\nimport { renderDialog_unstable } from './renderDialog';\nimport type { DialogProps } from './Dialog.types';\nimport { useDialogContextValues_unstable } from './useDialogContextValues';\n\n/**\n * The `Dialog` root level component serves as an interface for interaction with all possible behaviors exposed.\n * It provides context down the hierarchy to `children` compound components to allow functionality.\n * This component expects to receive as children either a `DialogSurface` or a `DialogTrigger`\n * and a `DialogSurface` (or some component that will eventually render one of those compound components)\n * in this specific order\n */\nexport const Dialog: React.FC<DialogProps> = React.memo(props => {\n const state = useDialog_unstable(props);\n const contextValues = useDialogContextValues_unstable(state);\n\n return renderDialog_unstable(state, contextValues);\n});\n\nDialog.displayName = 'Dialog';\n"],"names":["React","useDialog_unstable","renderDialog_unstable","useDialogContextValues_unstable","Dialog","memo","props","state","contextValues","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,qBAAqB,QAAQ,iBAAiB;AAEvD,SAASC,+BAA+B,QAAQ,2BAA2B;AAE3E;;;;;;CAMC,GACD,OAAO,MAAMC,uBAAgCJ,MAAMK,IAAI,CAACC,CAAAA,QAAS;IAC/D,MAAMC,QAAQN,mBAAmBK;IACjC,MAAME,gBAAgBL,gCAAgCI;IAEtD,OAAOL,sBAAsBK,OAAOC;AACtC,GAAG;AAEHJ,OAAOK,WAAW,GAAG"}
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Dialog.types.js.map
1
+ export { };
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/components/Dialog/Dialog.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { ComponentProps, ComponentState } from '@fluentui/react-utilities';\nimport type { DialogContextValue, DialogSurfaceContextValue } from '../../contexts';\nimport type { DialogSurfaceElement } from '../DialogSurface/DialogSurface.types';\n\nexport type DialogSlots = {};\n\nexport type DialogOpenChangeEvent = DialogOpenChangeData['event'];\n\nexport type DialogOpenChangeData =\n | {\n type: 'escapeKeyDown';\n open: boolean;\n event: React.KeyboardEvent<DialogSurfaceElement>;\n }\n | {\n type: 'backdropClick';\n open: boolean;\n event: React.MouseEvent<DialogSurfaceElement>;\n }\n | {\n type: 'triggerClick';\n open: boolean;\n event: React.MouseEvent<DialogSurfaceElement>;\n };\n\nexport type DialogModalType = 'modal' | 'non-modal' | 'alert';\n\n/**\n * Callback fired when the component changes value from open state.\n *\n * @param event - a React's Synthetic event or a KeyboardEvent in case of `documentEscapeKeyDown`\n * @param data - A data object with relevant information,\n * such as open value and type of interaction that created the event\n */\nexport type DialogOpenChangeEventHandler = (event: DialogOpenChangeEvent, data: DialogOpenChangeData) => void;\n\nexport type DialogContextValues = {\n dialog: DialogContextValue;\n /**\n * dialogSurface context is provided by Dialog as false\n * to ensure components inside Dialog but outside DialogSurface will consume this as false\n */\n dialogSurface: DialogSurfaceContextValue;\n};\n\nexport type DialogProps = ComponentProps<Partial<DialogSlots>> & {\n /**\n * Dialog variations.\n *\n * `modal`: When this type of dialog is open, the rest of the page is dimmed out and cannot be interacted with.\n * The tab sequence is kept within the dialog and moving the focus outside\n * the dialog will imply closing it. This is the default type of the component.\n *\n * `non-modal`: When a non-modal dialog is open, the rest of the page is not dimmed out\n * and users can interact with the rest of the page.\n * This also implies that the tab focus can move outside the dialog when it reaches the last focusable element.\n *\n * `alert`: is a special type of modal dialogs that interrupts the user's workflow\n * to communicate an important message or ask for a decision.\n * Unlike a typical modal dialog, the user must take an action through the options given to dismiss the dialog,\n * and it cannot be dismissed through the dimmed background or escape key.\n *\n * @default modal\n */\n modalType?: DialogModalType;\n /**\n * Controls the open state of the dialog\n * @default false\n */\n open?: boolean;\n /**\n * Default value for the uncontrolled open state of the dialog.\n * @default false\n */\n defaultOpen?: boolean;\n /**\n * Callback fired when the component changes value from open state.\n *\n * @param event - a React's Synthetic event or a KeyboardEvent in case of `documentEscapeKeyDown`\n * @param data - A data object with relevant information,\n * such as open value and type of interaction that created the event\n */\n onOpenChange?: DialogOpenChangeEventHandler;\n /**\n * Can contain two children including {@link DialogTrigger} and {@link DialogSurface}.\n * Alternatively can only contain {@link DialogSurface} if using trigger outside dialog, or controlling state.\n */\n children: [JSX.Element, JSX.Element] | JSX.Element;\n /**\n * Enables standard behavior according to the [HTML dialog spec](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)\n * where the focus trap involves setting outside elements inert.\n *\n * @default false\n */\n inertTrapFocus?: boolean;\n};\n\nexport type DialogState = ComponentState<DialogSlots> &\n DialogContextValue & {\n content: React.ReactNode;\n trigger: React.ReactNode;\n };\n"],"mappings":"AAAA"}
1
+ {"version":3,"sources":["Dialog.types.ts"],"sourcesContent":["import type * as React from 'react';\nimport type { ComponentProps, ComponentState } from '@fluentui/react-utilities';\nimport type { DialogContextValue, DialogSurfaceContextValue } from '../../contexts';\nimport type { DialogSurfaceElement } from '../DialogSurface/DialogSurface.types';\n\nexport type DialogSlots = {};\n\nexport type DialogOpenChangeEvent = DialogOpenChangeData['event'];\n\nexport type DialogOpenChangeData =\n | {\n type: 'escapeKeyDown';\n open: boolean;\n event: React.KeyboardEvent<DialogSurfaceElement>;\n }\n | {\n type: 'backdropClick';\n open: boolean;\n event: React.MouseEvent<DialogSurfaceElement>;\n }\n | {\n type: 'triggerClick';\n open: boolean;\n event: React.MouseEvent<DialogSurfaceElement>;\n };\n\nexport type DialogModalType = 'modal' | 'non-modal' | 'alert';\n\n/**\n * Callback fired when the component changes value from open state.\n *\n * @param event - a React's Synthetic event or a KeyboardEvent in case of `documentEscapeKeyDown`\n * @param data - A data object with relevant information,\n * such as open value and type of interaction that created the event\n */\nexport type DialogOpenChangeEventHandler = (event: DialogOpenChangeEvent, data: DialogOpenChangeData) => void;\n\nexport type DialogContextValues = {\n dialog: DialogContextValue;\n /**\n * dialogSurface context is provided by Dialog as false\n * to ensure components inside Dialog but outside DialogSurface will consume this as false\n */\n dialogSurface: DialogSurfaceContextValue;\n};\n\nexport type DialogProps = ComponentProps<Partial<DialogSlots>> & {\n /**\n * Dialog variations.\n *\n * `modal`: When this type of dialog is open, the rest of the page is dimmed out and cannot be interacted with.\n * The tab sequence is kept within the dialog and moving the focus outside\n * the dialog will imply closing it. This is the default type of the component.\n *\n * `non-modal`: When a non-modal dialog is open, the rest of the page is not dimmed out\n * and users can interact with the rest of the page.\n * This also implies that the tab focus can move outside the dialog when it reaches the last focusable element.\n *\n * `alert`: is a special type of modal dialogs that interrupts the user's workflow\n * to communicate an important message or ask for a decision.\n * Unlike a typical modal dialog, the user must take an action through the options given to dismiss the dialog,\n * and it cannot be dismissed through the dimmed background or escape key.\n *\n * @default modal\n */\n modalType?: DialogModalType;\n /**\n * Controls the open state of the dialog\n * @default false\n */\n open?: boolean;\n /**\n * Default value for the uncontrolled open state of the dialog.\n * @default false\n */\n defaultOpen?: boolean;\n /**\n * Callback fired when the component changes value from open state.\n *\n * @param event - a React's Synthetic event or a KeyboardEvent in case of `documentEscapeKeyDown`\n * @param data - A data object with relevant information,\n * such as open value and type of interaction that created the event\n */\n onOpenChange?: DialogOpenChangeEventHandler;\n /**\n * Can contain two children including {@link DialogTrigger} and {@link DialogSurface}.\n * Alternatively can only contain {@link DialogSurface} if using trigger outside dialog, or controlling state.\n */\n children: [JSX.Element, JSX.Element] | JSX.Element;\n /**\n * Enables standard behavior according to the [HTML dialog spec](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)\n * where the focus trap involves setting outside elements inert.\n *\n * @default false\n */\n inertTrapFocus?: boolean;\n};\n\nexport type DialogState = ComponentState<DialogSlots> &\n DialogContextValue & {\n content: React.ReactNode;\n trigger: React.ReactNode;\n };\n"],"names":[],"mappings":"AAAA,WAsGI"}
@@ -2,4 +2,3 @@ export * from './Dialog';
2
2
  export * from './Dialog.types';
3
3
  export * from './renderDialog';
4
4
  export * from './useDialog';
5
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/components/Dialog/index.ts"],"sourcesContent":["export * from './Dialog';\nexport * from './Dialog.types';\nexport * from './renderDialog';\nexport * from './useDialog';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Dialog';\nexport * from './Dialog.types';\nexport * from './renderDialog';\nexport * from './useDialog';\n"],"names":[],"mappings":"AAAA,cAAc,WAAW;AACzB,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,cAAc"}
@@ -1,17 +1,12 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
1
+ /** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
2
2
  import { DialogProvider, DialogSurfaceProvider } from '../../contexts';
3
3
  /**
4
4
  * Render the final JSX of Dialog
5
- */
6
- export const renderDialog_unstable = (state, contextValues) => {
7
- const {
8
- content,
9
- trigger
10
- } = state;
11
- return /*#__PURE__*/createElement(DialogProvider, {
12
- value: contextValues.dialog
13
- }, /*#__PURE__*/createElement(DialogSurfaceProvider, {
14
- value: contextValues.dialogSurface
15
- }, trigger, content));
5
+ */ export const renderDialog_unstable = (state, contextValues)=>{
6
+ const { content , trigger } = state;
7
+ return /*#__PURE__*/ createElement(DialogProvider, {
8
+ value: contextValues.dialog
9
+ }, /*#__PURE__*/ createElement(DialogSurfaceProvider, {
10
+ value: contextValues.dialogSurface
11
+ }, trigger, content));
16
12
  };
17
- //# sourceMappingURL=renderDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createElement","DialogProvider","DialogSurfaceProvider","renderDialog_unstable","state","contextValues","content","trigger","value","dialog","dialogSurface"],"sources":["../../../src/components/Dialog/renderDialog.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { DialogProvider, DialogSurfaceProvider } from '../../contexts';\nimport type { DialogState, DialogContextValues } from './Dialog.types';\n\n/**\n * Render the final JSX of Dialog\n */\nexport const renderDialog_unstable = (state: DialogState, contextValues: DialogContextValues) => {\n const { content, trigger } = state;\n\n return (\n <DialogProvider value={contextValues.dialog}>\n <DialogSurfaceProvider value={contextValues.dialogSurface}>\n {trigger}\n {content}\n </DialogSurfaceProvider>\n </DialogProvider>\n );\n};\n"],"mappings":"AAAA,2BACA,yBAEA,SAASA,aAAa,QAAQ;AAE9B,SAASC,cAAc,EAAEC,qBAAqB,QAAQ;AAGtD;;;AAGA,OAAO,MAAMC,qBAAA,GAAwBA,CAACC,KAAA,EAAoBC,aAAA,KAAuC;EAC/F,MAAM;IAAEC,OAAA;IAASC;EAAO,CAAE,GAAGH,KAAA;EAE7B,oBACEJ,aAdJ,CAcKC,cAAA;IAAeO,KAAA,EAAOH,aAAA,CAAcI;kBACnCT,aAfN,CAeOE,qBAAA;IAAsBM,KAAA,EAAOH,aAAA,CAAcK;KACzCH,OAAA,EACAD,OAAA;AAIT"}
1
+ {"version":3,"sources":["renderDialog.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { DialogProvider, DialogSurfaceProvider } from '../../contexts';\nimport type { DialogState, DialogContextValues } from './Dialog.types';\n\n/**\n * Render the final JSX of Dialog\n */\nexport const renderDialog_unstable = (state: DialogState, contextValues: DialogContextValues) => {\n const { content, trigger } = state;\n\n return (\n <DialogProvider value={contextValues.dialog}>\n <DialogSurfaceProvider value={contextValues.dialogSurface}>\n {trigger}\n {content}\n </DialogSurfaceProvider>\n </DialogProvider>\n );\n};\n"],"names":["createElement","DialogProvider","DialogSurfaceProvider","renderDialog_unstable","state","contextValues","content","trigger","value","dialog","dialogSurface"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAE5D,SAASC,cAAc,EAAEC,qBAAqB,QAAQ,iBAAiB;AAGvE;;CAEC,GACD,OAAO,MAAMC,wBAAwB,CAACC,OAAoBC,gBAAuC;IAC/F,MAAM,EAAEC,QAAO,EAAEC,QAAO,EAAE,GAAGH;IAE7B,qBACE,AAdJ,cAcKH;QAAeO,OAAOH,cAAcI,MAAM;qBACzC,AAfN,cAeOP;QAAsBM,OAAOH,cAAcK,aAAa;OACtDH,SACAD;AAIT,EAAE"}
@@ -11,81 +11,79 @@ import { useModalAttributes } from '@fluentui/react-tabster';
11
11
  * before being passed to renderDialog_unstable.
12
12
  *
13
13
  * @param props - props from this instance of Dialog
14
- */
15
- export const useDialog_unstable = props => {
16
- const {
17
- children,
18
- modalType = 'modal',
19
- onOpenChange,
20
- inertTrapFocus = false
21
- } = props;
22
- const [trigger, content] = childrenToTriggerAndContent(children);
23
- const [open, setOpen] = useControllableState({
24
- state: props.open,
25
- defaultState: props.defaultOpen,
26
- initialState: false
27
- });
28
- const requestOpenChange = useEventCallback(data => {
29
- onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(data.event, data);
30
- // if user prevents default then do not change state value
31
- // otherwise updates state value and trigger reference to the element that caused the opening
32
- if (!data.event.isDefaultPrevented()) {
33
- setOpen(data.open);
34
- }
35
- });
36
- const focusRef = useFocusFirstElement(open, modalType);
37
- const disableBodyScroll = useDisableBodyScroll();
38
- const isBodyScrollLocked = Boolean(open && modalType !== 'non-modal');
39
- useIsomorphicLayoutEffect(() => {
40
- if (isBodyScrollLocked) {
41
- return disableBodyScroll();
42
- }
43
- }, [disableBodyScroll, isBodyScrollLocked]);
44
- const {
45
- modalAttributes,
46
- triggerAttributes
47
- } = useModalAttributes({
48
- trapFocus: modalType !== 'non-modal',
49
- legacyTrapFocus: !inertTrapFocus
50
- });
51
- return {
52
- components: {
53
- backdrop: 'div'
54
- },
55
- inertTrapFocus,
56
- open,
57
- modalType,
58
- content: open ? content : null,
59
- trigger,
60
- requestOpenChange,
61
- dialogTitleId: useId('dialog-title-'),
62
- isNestedDialog: useHasParentContext(DialogContext),
63
- dialogRef: focusRef,
64
- modalAttributes: modalType !== 'non-modal' ? modalAttributes : undefined,
65
- triggerAttributes
66
- };
14
+ */ export const useDialog_unstable = (props)=>{
15
+ const { children , modalType ='modal' , onOpenChange , inertTrapFocus =false } = props;
16
+ const [trigger, content] = childrenToTriggerAndContent(children);
17
+ const [open, setOpen] = useControllableState({
18
+ state: props.open,
19
+ defaultState: props.defaultOpen,
20
+ initialState: false
21
+ });
22
+ const requestOpenChange = useEventCallback((data)=>{
23
+ onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(data.event, data);
24
+ // if user prevents default then do not change state value
25
+ // otherwise updates state value and trigger reference to the element that caused the opening
26
+ if (!data.event.isDefaultPrevented()) {
27
+ setOpen(data.open);
28
+ }
29
+ });
30
+ const focusRef = useFocusFirstElement(open, modalType);
31
+ const disableBodyScroll = useDisableBodyScroll();
32
+ const isBodyScrollLocked = Boolean(open && modalType !== 'non-modal');
33
+ useIsomorphicLayoutEffect(()=>{
34
+ if (isBodyScrollLocked) {
35
+ return disableBodyScroll();
36
+ }
37
+ }, [
38
+ disableBodyScroll,
39
+ isBodyScrollLocked
40
+ ]);
41
+ const { modalAttributes , triggerAttributes } = useModalAttributes({
42
+ trapFocus: modalType !== 'non-modal',
43
+ legacyTrapFocus: !inertTrapFocus
44
+ });
45
+ return {
46
+ components: {
47
+ backdrop: 'div'
48
+ },
49
+ inertTrapFocus,
50
+ open,
51
+ modalType,
52
+ content: open ? content : null,
53
+ trigger,
54
+ requestOpenChange,
55
+ dialogTitleId: useId('dialog-title-'),
56
+ isNestedDialog: useHasParentContext(DialogContext),
57
+ dialogRef: focusRef,
58
+ modalAttributes: modalType !== 'non-modal' ? modalAttributes : undefined,
59
+ triggerAttributes
60
+ };
67
61
  };
68
62
  /**
69
63
  * Extracts trigger and content from children
70
- */
71
- function childrenToTriggerAndContent(children) {
72
- const childrenArray = React.Children.toArray(children);
73
- if (process.env.NODE_ENV !== 'production') {
74
- if (childrenArray.length !== 1 && childrenArray.length !== 2) {
75
- // eslint-disable-next-line no-console
76
- console.warn('Dialog must contain at least one child <DialogSurface/>,\n' + 'and at most two children <DialogTrigger/> <DialogSurface/> (in this order)');
64
+ */ function childrenToTriggerAndContent(children) {
65
+ const childrenArray = React.Children.toArray(children);
66
+ if (process.env.NODE_ENV !== 'production') {
67
+ if (childrenArray.length !== 1 && childrenArray.length !== 2) {
68
+ // eslint-disable-next-line no-console
69
+ console.warn('Dialog must contain at least one child <DialogSurface/>,\n' + 'and at most two children <DialogTrigger/> <DialogSurface/> (in this order)');
70
+ }
71
+ }
72
+ switch(childrenArray.length){
73
+ // case where there's a trigger followed by content
74
+ case 2:
75
+ return childrenArray;
76
+ // case where there's only content
77
+ case 1:
78
+ return [
79
+ undefined,
80
+ childrenArray[0]
81
+ ];
82
+ // unknown case
83
+ default:
84
+ return [
85
+ undefined,
86
+ undefined
87
+ ];
77
88
  }
78
- }
79
- switch (childrenArray.length) {
80
- // case where there's a trigger followed by content
81
- case 2:
82
- return childrenArray;
83
- // case where there's only content
84
- case 1:
85
- return [undefined, childrenArray[0]];
86
- // unknown case
87
- default:
88
- return [undefined, undefined];
89
- }
90
89
  }
91
- //# sourceMappingURL=useDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useControllableState","useEventCallback","useId","useIsomorphicLayoutEffect","useHasParentContext","useDisableBodyScroll","useFocusFirstElement","DialogContext","useModalAttributes","useDialog_unstable","props","children","modalType","onOpenChange","inertTrapFocus","trigger","content","childrenToTriggerAndContent","open","setOpen","state","defaultState","defaultOpen","initialState","requestOpenChange","data","event","isDefaultPrevented","focusRef","disableBodyScroll","isBodyScrollLocked","Boolean","modalAttributes","triggerAttributes","trapFocus","legacyTrapFocus","components","backdrop","dialogTitleId","isNestedDialog","dialogRef","undefined","childrenArray","Children","toArray","process","env","NODE_ENV","length","console","warn"],"sources":["../../../src/components/Dialog/useDialog.ts"],"sourcesContent":["import * as React from 'react';\nimport { useControllableState, useEventCallback, useId, useIsomorphicLayoutEffect } from '@fluentui/react-utilities';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { useDisableBodyScroll, useFocusFirstElement } from '../../utils';\nimport { DialogContext } from '../../contexts';\n\nimport type { DialogOpenChangeData, DialogProps, DialogState } from './Dialog.types';\nimport { useModalAttributes } from '@fluentui/react-tabster';\n\n/**\n * Create the state required to render Dialog.\n *\n * The returned state can be modified with hooks such as useDialogStyles_unstable,\n * before being passed to renderDialog_unstable.\n *\n * @param props - props from this instance of Dialog\n */\nexport const useDialog_unstable = (props: DialogProps): DialogState => {\n const { children, modalType = 'modal', onOpenChange, inertTrapFocus = false } = props;\n\n const [trigger, content] = childrenToTriggerAndContent(children);\n\n const [open, setOpen] = useControllableState({\n state: props.open,\n defaultState: props.defaultOpen,\n initialState: false,\n });\n\n const requestOpenChange = useEventCallback((data: DialogOpenChangeData) => {\n onOpenChange?.(data.event, data);\n\n // if user prevents default then do not change state value\n // otherwise updates state value and trigger reference to the element that caused the opening\n if (!data.event.isDefaultPrevented()) {\n setOpen(data.open);\n }\n });\n\n const focusRef = useFocusFirstElement(open, modalType);\n const disableBodyScroll = useDisableBodyScroll();\n const isBodyScrollLocked = Boolean(open && modalType !== 'non-modal');\n\n useIsomorphicLayoutEffect(() => {\n if (isBodyScrollLocked) {\n return disableBodyScroll();\n }\n }, [disableBodyScroll, isBodyScrollLocked]);\n\n const { modalAttributes, triggerAttributes } = useModalAttributes({\n trapFocus: modalType !== 'non-modal',\n legacyTrapFocus: !inertTrapFocus,\n });\n\n return {\n components: {\n backdrop: 'div',\n },\n inertTrapFocus,\n open,\n modalType,\n content: open ? content : null,\n trigger,\n requestOpenChange,\n dialogTitleId: useId('dialog-title-'),\n isNestedDialog: useHasParentContext(DialogContext),\n dialogRef: focusRef,\n modalAttributes: modalType !== 'non-modal' ? modalAttributes : undefined,\n triggerAttributes,\n };\n};\n\n/**\n * Extracts trigger and content from children\n */\nfunction childrenToTriggerAndContent(\n children: React.ReactNode,\n): readonly [trigger: React.ReactNode, content: React.ReactNode] {\n const childrenArray = React.Children.toArray(children) as React.ReactElement[];\n if (process.env.NODE_ENV !== 'production') {\n if (childrenArray.length !== 1 && childrenArray.length !== 2) {\n // eslint-disable-next-line no-console\n console.warn(\n 'Dialog must contain at least one child <DialogSurface/>,\\n' +\n 'and at most two children <DialogTrigger/> <DialogSurface/> (in this order)',\n );\n }\n }\n switch (childrenArray.length) {\n // case where there's a trigger followed by content\n case 2:\n return childrenArray as [trigger: React.ReactNode, content: React.ReactNode];\n // case where there's only content\n case 1:\n return [undefined, childrenArray[0]];\n // unknown case\n default:\n return [undefined, undefined];\n }\n}\n"],"mappings":"AAAA,YAAYA,KAAA,MAAW;AACvB,SAASC,oBAAoB,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,yBAAyB,QAAQ;AACzF,SAASC,mBAAmB,QAAQ;AACpC,SAASC,oBAAoB,EAAEC,oBAAoB,QAAQ;AAC3D,SAASC,aAAa,QAAQ;AAG9B,SAASC,kBAAkB,QAAQ;AAEnC;;;;;;;;AAQA,OAAO,MAAMC,kBAAA,GAAsBC,KAAA,IAAoC;EACrE,MAAM;IAAEC,QAAA;IAAUC,SAAA,GAAY;IAASC,YAAA;IAAcC,cAAA,GAAiB;EAAK,CAAE,GAAGJ,KAAA;EAEhF,MAAM,CAACK,OAAA,EAASC,OAAA,CAAQ,GAAGC,2BAAA,CAA4BN,QAAA;EAEvD,MAAM,CAACO,IAAA,EAAMC,OAAA,CAAQ,GAAGnB,oBAAA,CAAqB;IAC3CoB,KAAA,EAAOV,KAAA,CAAMQ,IAAI;IACjBG,YAAA,EAAcX,KAAA,CAAMY,WAAW;IAC/BC,YAAA,EAAc;EAChB;EAEA,MAAMC,iBAAA,GAAoBvB,gBAAA,CAAkBwB,IAAA,IAA+B;IACzEZ,YAAA,aAAAA,YAAA,uBAAAA,YAAA,CAAeY,IAAA,CAAKC,KAAK,EAAED,IAAA;IAE3B;IACA;IACA,IAAI,CAACA,IAAA,CAAKC,KAAK,CAACC,kBAAkB,IAAI;MACpCR,OAAA,CAAQM,IAAA,CAAKP,IAAI;IACnB;EACF;EAEA,MAAMU,QAAA,GAAWtB,oBAAA,CAAqBY,IAAA,EAAMN,SAAA;EAC5C,MAAMiB,iBAAA,GAAoBxB,oBAAA;EAC1B,MAAMyB,kBAAA,GAAqBC,OAAA,CAAQb,IAAA,IAAQN,SAAA,KAAc;EAEzDT,yBAAA,CAA0B,MAAM;IAC9B,IAAI2B,kBAAA,EAAoB;MACtB,OAAOD,iBAAA;IACT;EACF,GAAG,CAACA,iBAAA,EAAmBC,kBAAA,CAAmB;EAE1C,MAAM;IAAEE,eAAA;IAAiBC;EAAiB,CAAE,GAAGzB,kBAAA,CAAmB;IAChE0B,SAAA,EAAWtB,SAAA,KAAc;IACzBuB,eAAA,EAAiB,CAACrB;EACpB;EAEA,OAAO;IACLsB,UAAA,EAAY;MACVC,QAAA,EAAU;IACZ;IACAvB,cAAA;IACAI,IAAA;IACAN,SAAA;IACAI,OAAA,EAASE,IAAA,GAAOF,OAAA,GAAU,IAAI;IAC9BD,OAAA;IACAS,iBAAA;IACAc,aAAA,EAAepC,KAAA,CAAM;IACrBqC,cAAA,EAAgBnC,mBAAA,CAAoBG,aAAA;IACpCiC,SAAA,EAAWZ,QAAA;IACXI,eAAA,EAAiBpB,SAAA,KAAc,cAAcoB,eAAA,GAAkBS,SAAS;IACxER;EACF;AACF;AAEA;;;AAGA,SAAShB,4BACPN,QAAyB,EACsC;EAC/D,MAAM+B,aAAA,GAAgB3C,KAAA,CAAM4C,QAAQ,CAACC,OAAO,CAACjC,QAAA;EAC7C,IAAIkC,OAAA,CAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;IACzC,IAAIL,aAAA,CAAcM,MAAM,KAAK,KAAKN,aAAA,CAAcM,MAAM,KAAK,GAAG;MAC5D;MACAC,OAAA,CAAQC,IAAI,CACV,+DACE;IAEN;EACF;EACA,QAAQR,aAAA,CAAcM,MAAM;IAC1B;IACA,KAAK;MACH,OAAON,aAAA;IACT;IACA,KAAK;MACH,OAAO,CAACD,SAAA,EAAWC,aAAa,CAAC,EAAE,CAAC;IACtC;IACA;MACE,OAAO,CAACD,SAAA,EAAWA,SAAA,CAAU;EAAA;AAEnC"}
1
+ {"version":3,"sources":["useDialog.ts"],"sourcesContent":["import * as React from 'react';\nimport { useControllableState, useEventCallback, useId, useIsomorphicLayoutEffect } from '@fluentui/react-utilities';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { useDisableBodyScroll, useFocusFirstElement } from '../../utils';\nimport { DialogContext } from '../../contexts';\n\nimport type { DialogOpenChangeData, DialogProps, DialogState } from './Dialog.types';\nimport { useModalAttributes } from '@fluentui/react-tabster';\n\n/**\n * Create the state required to render Dialog.\n *\n * The returned state can be modified with hooks such as useDialogStyles_unstable,\n * before being passed to renderDialog_unstable.\n *\n * @param props - props from this instance of Dialog\n */\nexport const useDialog_unstable = (props: DialogProps): DialogState => {\n const { children, modalType = 'modal', onOpenChange, inertTrapFocus = false } = props;\n\n const [trigger, content] = childrenToTriggerAndContent(children);\n\n const [open, setOpen] = useControllableState({\n state: props.open,\n defaultState: props.defaultOpen,\n initialState: false,\n });\n\n const requestOpenChange = useEventCallback((data: DialogOpenChangeData) => {\n onOpenChange?.(data.event, data);\n\n // if user prevents default then do not change state value\n // otherwise updates state value and trigger reference to the element that caused the opening\n if (!data.event.isDefaultPrevented()) {\n setOpen(data.open);\n }\n });\n\n const focusRef = useFocusFirstElement(open, modalType);\n const disableBodyScroll = useDisableBodyScroll();\n const isBodyScrollLocked = Boolean(open && modalType !== 'non-modal');\n\n useIsomorphicLayoutEffect(() => {\n if (isBodyScrollLocked) {\n return disableBodyScroll();\n }\n }, [disableBodyScroll, isBodyScrollLocked]);\n\n const { modalAttributes, triggerAttributes } = useModalAttributes({\n trapFocus: modalType !== 'non-modal',\n legacyTrapFocus: !inertTrapFocus,\n });\n\n return {\n components: {\n backdrop: 'div',\n },\n inertTrapFocus,\n open,\n modalType,\n content: open ? content : null,\n trigger,\n requestOpenChange,\n dialogTitleId: useId('dialog-title-'),\n isNestedDialog: useHasParentContext(DialogContext),\n dialogRef: focusRef,\n modalAttributes: modalType !== 'non-modal' ? modalAttributes : undefined,\n triggerAttributes,\n };\n};\n\n/**\n * Extracts trigger and content from children\n */\nfunction childrenToTriggerAndContent(\n children: React.ReactNode,\n): readonly [trigger: React.ReactNode, content: React.ReactNode] {\n const childrenArray = React.Children.toArray(children) as React.ReactElement[];\n if (process.env.NODE_ENV !== 'production') {\n if (childrenArray.length !== 1 && childrenArray.length !== 2) {\n // eslint-disable-next-line no-console\n console.warn(\n 'Dialog must contain at least one child <DialogSurface/>,\\n' +\n 'and at most two children <DialogTrigger/> <DialogSurface/> (in this order)',\n );\n }\n }\n switch (childrenArray.length) {\n // case where there's a trigger followed by content\n case 2:\n return childrenArray as [trigger: React.ReactNode, content: React.ReactNode];\n // case where there's only content\n case 1:\n return [undefined, childrenArray[0]];\n // unknown case\n default:\n return [undefined, undefined];\n }\n}\n"],"names":["React","useControllableState","useEventCallback","useId","useIsomorphicLayoutEffect","useHasParentContext","useDisableBodyScroll","useFocusFirstElement","DialogContext","useModalAttributes","useDialog_unstable","props","children","modalType","onOpenChange","inertTrapFocus","trigger","content","childrenToTriggerAndContent","open","setOpen","state","defaultState","defaultOpen","initialState","requestOpenChange","data","event","isDefaultPrevented","focusRef","disableBodyScroll","isBodyScrollLocked","Boolean","modalAttributes","triggerAttributes","trapFocus","legacyTrapFocus","components","backdrop","dialogTitleId","isNestedDialog","dialogRef","undefined","childrenArray","Children","toArray","process","env","NODE_ENV","length","console","warn"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,oBAAoB,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,yBAAyB,QAAQ,4BAA4B;AACrH,SAASC,mBAAmB,QAAQ,mCAAmC;AACvE,SAASC,oBAAoB,EAAEC,oBAAoB,QAAQ,cAAc;AACzE,SAASC,aAAa,QAAQ,iBAAiB;AAG/C,SAASC,kBAAkB,QAAQ,0BAA0B;AAE7D;;;;;;;CAOC,GACD,OAAO,MAAMC,qBAAqB,CAACC,QAAoC;IACrE,MAAM,EAAEC,SAAQ,EAAEC,WAAY,QAAO,EAAEC,aAAY,EAAEC,gBAAiB,KAAK,CAAA,EAAE,GAAGJ;IAEhF,MAAM,CAACK,SAASC,QAAQ,GAAGC,4BAA4BN;IAEvD,MAAM,CAACO,MAAMC,QAAQ,GAAGnB,qBAAqB;QAC3CoB,OAAOV,MAAMQ,IAAI;QACjBG,cAAcX,MAAMY,WAAW;QAC/BC,cAAc,KAAK;IACrB;IAEA,MAAMC,oBAAoBvB,iBAAiB,CAACwB,OAA+B;QACzEZ,yBAAAA,0BAAAA,KAAAA,IAAAA,aAAeY,KAAKC,KAAK,EAAED;QAE3B,0DAA0D;QAC1D,6FAA6F;QAC7F,IAAI,CAACA,KAAKC,KAAK,CAACC,kBAAkB,IAAI;YACpCR,QAAQM,KAAKP,IAAI;QACnB,CAAC;IACH;IAEA,MAAMU,WAAWtB,qBAAqBY,MAAMN;IAC5C,MAAMiB,oBAAoBxB;IAC1B,MAAMyB,qBAAqBC,QAAQb,QAAQN,cAAc;IAEzDT,0BAA0B,IAAM;QAC9B,IAAI2B,oBAAoB;YACtB,OAAOD;QACT,CAAC;IACH,GAAG;QAACA;QAAmBC;KAAmB;IAE1C,MAAM,EAAEE,gBAAe,EAAEC,kBAAiB,EAAE,GAAGzB,mBAAmB;QAChE0B,WAAWtB,cAAc;QACzBuB,iBAAiB,CAACrB;IACpB;IAEA,OAAO;QACLsB,YAAY;YACVC,UAAU;QACZ;QACAvB;QACAI;QACAN;QACAI,SAASE,OAAOF,UAAU,IAAI;QAC9BD;QACAS;QACAc,eAAepC,MAAM;QACrBqC,gBAAgBnC,oBAAoBG;QACpCiC,WAAWZ;QACXI,iBAAiBpB,cAAc,cAAcoB,kBAAkBS,SAAS;QACxER;IACF;AACF,EAAE;AAEF;;CAEC,GACD,SAAShB,4BACPN,QAAyB,EACsC;IAC/D,MAAM+B,gBAAgB3C,MAAM4C,QAAQ,CAACC,OAAO,CAACjC;IAC7C,IAAIkC,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;QACzC,IAAIL,cAAcM,MAAM,KAAK,KAAKN,cAAcM,MAAM,KAAK,GAAG;YAC5D,sCAAsC;YACtCC,QAAQC,IAAI,CACV,+DACE;QAEN,CAAC;IACH,CAAC;IACD,OAAQR,cAAcM,MAAM;QAC1B,mDAAmD;QACnD,KAAK;YACH,OAAON;QACT,kCAAkC;QAClC,KAAK;YACH,OAAO;gBAACD;gBAAWC,aAAa,CAAC,EAAE;aAAC;QACtC,eAAe;QACf;YACE,OAAO;gBAACD;gBAAWA;aAAU;IACjC;AACF"}
@@ -1,34 +1,22 @@
1
1
  export function useDialogContextValues_unstable(state) {
2
- const {
3
- modalType,
4
- open,
5
- dialogRef,
6
- dialogTitleId,
7
- isNestedDialog,
8
- inertTrapFocus,
9
- requestOpenChange,
10
- modalAttributes,
11
- triggerAttributes
12
- } = state;
13
- /**
14
- * This context is created with "@fluentui/react-context-selector",
15
- * there is no sense to memoize it
16
- */
17
- const dialog = {
18
- open,
19
- modalType,
20
- dialogRef,
21
- dialogTitleId,
22
- isNestedDialog,
23
- inertTrapFocus,
24
- modalAttributes,
25
- triggerAttributes,
26
- requestOpenChange
27
- };
28
- const dialogSurface = false;
29
- return {
30
- dialog,
31
- dialogSurface
32
- };
2
+ const { modalType , open , dialogRef , dialogTitleId , isNestedDialog , inertTrapFocus , requestOpenChange , modalAttributes , triggerAttributes } = state;
3
+ /**
4
+ * This context is created with "@fluentui/react-context-selector",
5
+ * there is no sense to memoize it
6
+ */ const dialog = {
7
+ open,
8
+ modalType,
9
+ dialogRef,
10
+ dialogTitleId,
11
+ isNestedDialog,
12
+ inertTrapFocus,
13
+ modalAttributes,
14
+ triggerAttributes,
15
+ requestOpenChange
16
+ };
17
+ const dialogSurface = false;
18
+ return {
19
+ dialog,
20
+ dialogSurface
21
+ };
33
22
  }
34
- //# sourceMappingURL=useDialogContextValues.js.map