@fluentui/react-dialog 9.18.2 → 9.18.3

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 (241) hide show
  1. package/CHANGELOG.md +22 -2
  2. package/dist/index.d.cts +547 -0
  3. package/lib/Dialog.js +1 -1
  4. package/lib/Dialog.js.map +1 -1
  5. package/lib/DialogActions.js +1 -1
  6. package/lib/DialogActions.js.map +1 -1
  7. package/lib/DialogBody.js +1 -1
  8. package/lib/DialogBody.js.map +1 -1
  9. package/lib/DialogContent.js +1 -1
  10. package/lib/DialogContent.js.map +1 -1
  11. package/lib/DialogSurface.js +1 -1
  12. package/lib/DialogSurface.js.map +1 -1
  13. package/lib/DialogTitle.js +1 -1
  14. package/lib/DialogTitle.js.map +1 -1
  15. package/lib/DialogTrigger.js +1 -1
  16. package/lib/DialogTrigger.js.map +1 -1
  17. package/lib/components/Dialog/Dialog.js +4 -4
  18. package/lib/components/Dialog/Dialog.js.map +1 -1
  19. package/lib/components/Dialog/index.js +4 -4
  20. package/lib/components/Dialog/index.js.map +1 -1
  21. package/lib/components/Dialog/renderDialog.js +4 -4
  22. package/lib/components/Dialog/renderDialog.js.map +1 -1
  23. package/lib/components/Dialog/useDialog.js +8 -8
  24. package/lib/components/Dialog/useDialog.js.map +1 -1
  25. package/lib/components/Dialog/useDialogContextValues.js +1 -1
  26. package/lib/components/DialogActions/DialogActions.js +5 -5
  27. package/lib/components/DialogActions/DialogActions.js.map +1 -1
  28. package/lib/components/DialogActions/index.js +4 -4
  29. package/lib/components/DialogActions/index.js.map +1 -1
  30. package/lib/components/DialogActions/renderDialogActions.js +1 -1
  31. package/lib/components/DialogActions/useDialogActions.js +1 -1
  32. package/lib/components/DialogActions/useDialogActionsStyles.styles.js +2 -2
  33. package/lib/components/DialogActions/useDialogActionsStyles.styles.js.map +1 -1
  34. package/lib/components/DialogActions/useDialogActionsStyles.styles.raw.js +2 -2
  35. package/lib/components/DialogActions/useDialogActionsStyles.styles.raw.js.map +1 -1
  36. package/lib/components/DialogBackdropMotion.js +1 -1
  37. package/lib/components/DialogBody/DialogBody.js +5 -5
  38. package/lib/components/DialogBody/DialogBody.js.map +1 -1
  39. package/lib/components/DialogBody/index.js +4 -4
  40. package/lib/components/DialogBody/index.js.map +1 -1
  41. package/lib/components/DialogBody/renderDialogBody.js +1 -1
  42. package/lib/components/DialogBody/useDialogBody.js +1 -1
  43. package/lib/components/DialogBody/useDialogBodyStyles.styles.js +2 -2
  44. package/lib/components/DialogBody/useDialogBodyStyles.styles.js.map +1 -1
  45. package/lib/components/DialogBody/useDialogBodyStyles.styles.raw.js +2 -2
  46. package/lib/components/DialogBody/useDialogBodyStyles.styles.raw.js.map +1 -1
  47. package/lib/components/DialogContent/DialogContent.js +5 -5
  48. package/lib/components/DialogContent/DialogContent.js.map +1 -1
  49. package/lib/components/DialogContent/index.js +4 -4
  50. package/lib/components/DialogContent/index.js.map +1 -1
  51. package/lib/components/DialogContent/renderDialogContent.js +1 -1
  52. package/lib/components/DialogContent/useDialogContent.js +1 -1
  53. package/lib/components/DialogContent/useDialogContentStyles.styles.js +3 -3
  54. package/lib/components/DialogContent/useDialogContentStyles.styles.js.map +1 -1
  55. package/lib/components/DialogContent/useDialogContentStyles.styles.raw.js +3 -3
  56. package/lib/components/DialogContent/useDialogContentStyles.styles.raw.js.map +1 -1
  57. package/lib/components/DialogSurface/DialogSurface.js +6 -6
  58. package/lib/components/DialogSurface/DialogSurface.js.map +1 -1
  59. package/lib/components/DialogSurface/index.js +5 -5
  60. package/lib/components/DialogSurface/index.js.map +1 -1
  61. package/lib/components/DialogSurface/renderDialogSurface.js +4 -4
  62. package/lib/components/DialogSurface/renderDialogSurface.js.map +1 -1
  63. package/lib/components/DialogSurface/useDialogSurface.js +7 -7
  64. package/lib/components/DialogSurface/useDialogSurface.js.map +1 -1
  65. package/lib/components/DialogSurface/useDialogSurfaceStyles.styles.js +4 -4
  66. package/lib/components/DialogSurface/useDialogSurfaceStyles.styles.js.map +1 -1
  67. package/lib/components/DialogSurface/useDialogSurfaceStyles.styles.raw.js +4 -4
  68. package/lib/components/DialogSurface/useDialogSurfaceStyles.styles.raw.js.map +1 -1
  69. package/lib/components/DialogSurfaceMotion.js +2 -2
  70. package/lib/components/DialogTitle/DialogTitle.js +5 -5
  71. package/lib/components/DialogTitle/DialogTitle.js.map +1 -1
  72. package/lib/components/DialogTitle/index.js +4 -4
  73. package/lib/components/DialogTitle/index.js.map +1 -1
  74. package/lib/components/DialogTitle/renderDialogTitle.js +1 -1
  75. package/lib/components/DialogTitle/useDialogTitle.js +6 -6
  76. package/lib/components/DialogTitle/useDialogTitle.js.map +1 -1
  77. package/lib/components/DialogTitle/useDialogTitleStyles.styles.js +3 -3
  78. package/lib/components/DialogTitle/useDialogTitleStyles.styles.js.map +1 -1
  79. package/lib/components/DialogTitle/useDialogTitleStyles.styles.raw.js +3 -3
  80. package/lib/components/DialogTrigger/DialogTrigger.js +2 -2
  81. package/lib/components/DialogTrigger/DialogTrigger.js.map +1 -1
  82. package/lib/components/DialogTrigger/index.js +3 -3
  83. package/lib/components/DialogTrigger/index.js.map +1 -1
  84. package/lib/components/DialogTrigger/useDialogTrigger.js +4 -4
  85. package/lib/components/DialogTrigger/useDialogTrigger.js.map +1 -1
  86. package/lib/contexts/dialogBackdropContext.js +1 -1
  87. package/lib/contexts/dialogContext.js +1 -1
  88. package/lib/contexts/dialogSurfaceContext.js +1 -1
  89. package/lib/contexts/index.js +4 -4
  90. package/lib/contexts/index.js.map +1 -1
  91. package/lib/index.js +9 -9
  92. package/lib/index.js.map +1 -1
  93. package/lib/utils/index.js +2 -2
  94. package/lib/utils/index.js.map +1 -1
  95. package/lib/utils/useDisableBodyScroll.js +3 -3
  96. package/lib/utils/useDisableBodyScroll.js.map +1 -1
  97. package/lib/utils/useDisableBodyScroll.styles.js +1 -1
  98. package/lib/utils/useDisableBodyScroll.styles.js.map +1 -1
  99. package/lib/utils/useDisableBodyScroll.styles.raw.js +1 -1
  100. package/lib/utils/useFocusFirstElement.js +3 -3
  101. package/lib-commonjs/{Dialog.js → Dialog.cjs} +1 -1
  102. package/lib-commonjs/{Dialog.js.map → Dialog.cjs.map} +1 -1
  103. package/lib-commonjs/{DialogActions.js → DialogActions.cjs} +1 -1
  104. package/lib-commonjs/{DialogActions.js.map → DialogActions.cjs.map} +1 -1
  105. package/lib-commonjs/{DialogBody.js → DialogBody.cjs} +1 -1
  106. package/lib-commonjs/{DialogBody.js.map → DialogBody.cjs.map} +1 -1
  107. package/lib-commonjs/{DialogContent.js → DialogContent.cjs} +1 -1
  108. package/lib-commonjs/{DialogContent.js.map → DialogContent.cjs.map} +1 -1
  109. package/lib-commonjs/{DialogSurface.js → DialogSurface.cjs} +1 -1
  110. package/lib-commonjs/{DialogSurface.js.map → DialogSurface.cjs.map} +1 -1
  111. package/lib-commonjs/{DialogTitle.js → DialogTitle.cjs} +1 -1
  112. package/lib-commonjs/{DialogTitle.js.map → DialogTitle.cjs.map} +1 -1
  113. package/lib-commonjs/{DialogTrigger.js → DialogTrigger.cjs} +1 -1
  114. package/lib-commonjs/{DialogTrigger.js.map → DialogTrigger.cjs.map} +1 -1
  115. package/lib-commonjs/components/Dialog/{Dialog.js → Dialog.cjs} +3 -3
  116. package/lib-commonjs/components/Dialog/{Dialog.js.map → Dialog.cjs.map} +1 -1
  117. package/lib-commonjs/components/Dialog/{index.js → index.cjs} +4 -4
  118. package/lib-commonjs/components/Dialog/{index.js.map → index.cjs.map} +1 -1
  119. package/lib-commonjs/components/Dialog/{renderDialog.js → renderDialog.cjs} +3 -3
  120. package/lib-commonjs/components/Dialog/{renderDialog.js.map → renderDialog.cjs.map} +1 -1
  121. package/lib-commonjs/components/Dialog/{useDialog.js → useDialog.cjs} +5 -5
  122. package/lib-commonjs/components/Dialog/{useDialog.js.map → useDialog.cjs.map} +1 -1
  123. package/lib-commonjs/components/DialogActions/{DialogActions.js → DialogActions.cjs} +3 -3
  124. package/lib-commonjs/components/DialogActions/{DialogActions.js.map → DialogActions.cjs.map} +1 -1
  125. package/lib-commonjs/components/DialogActions/{index.js → index.cjs} +4 -4
  126. package/lib-commonjs/components/DialogActions/{index.js.map → index.cjs.map} +1 -1
  127. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.styles.cjs.map +1 -0
  128. package/lib-commonjs/components/DialogActions/{useDialogActionsStyles.styles.raw.js → useDialogActionsStyles.styles.raw.cjs} +1 -1
  129. package/lib-commonjs/components/DialogActions/{useDialogActionsStyles.styles.raw.js.map → useDialogActionsStyles.styles.raw.cjs.map} +1 -1
  130. package/lib-commonjs/components/DialogBody/{DialogBody.js → DialogBody.cjs} +3 -3
  131. package/lib-commonjs/components/DialogBody/{DialogBody.js.map → DialogBody.cjs.map} +1 -1
  132. package/lib-commonjs/components/DialogBody/{index.js → index.cjs} +4 -4
  133. package/lib-commonjs/components/DialogBody/{index.js.map → index.cjs.map} +1 -1
  134. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.styles.cjs.map +1 -0
  135. package/lib-commonjs/components/DialogBody/{useDialogBodyStyles.styles.raw.js → useDialogBodyStyles.styles.raw.cjs} +6 -6
  136. package/lib-commonjs/components/DialogBody/{useDialogBodyStyles.styles.raw.js.map → useDialogBodyStyles.styles.raw.cjs.map} +1 -1
  137. package/lib-commonjs/components/DialogContent/{DialogContent.js → DialogContent.cjs} +3 -3
  138. package/lib-commonjs/components/DialogContent/{DialogContent.js.map → DialogContent.cjs.map} +1 -1
  139. package/lib-commonjs/components/DialogContent/{index.js → index.cjs} +4 -4
  140. package/lib-commonjs/components/DialogContent/{index.js.map → index.cjs.map} +1 -1
  141. package/lib-commonjs/components/DialogContent/useDialogContentStyles.styles.cjs.map +1 -0
  142. package/lib-commonjs/components/DialogContent/{useDialogContentStyles.styles.raw.js → useDialogContentStyles.styles.raw.cjs} +2 -2
  143. package/lib-commonjs/components/DialogContent/{useDialogContentStyles.styles.raw.js.map → useDialogContentStyles.styles.raw.cjs.map} +1 -1
  144. package/lib-commonjs/components/DialogSurface/{DialogSurface.js → DialogSurface.cjs} +4 -4
  145. package/lib-commonjs/components/DialogSurface/{DialogSurface.js.map → DialogSurface.cjs.map} +1 -1
  146. package/lib-commonjs/components/DialogSurface/{index.js → index.cjs} +5 -5
  147. package/lib-commonjs/components/DialogSurface/{index.js.map → index.cjs.map} +1 -1
  148. package/lib-commonjs/components/DialogSurface/{renderDialogSurface.js → renderDialogSurface.cjs} +2 -2
  149. package/lib-commonjs/components/DialogSurface/{renderDialogSurface.js.map → renderDialogSurface.cjs.map} +1 -1
  150. package/lib-commonjs/components/DialogSurface/{useDialogSurface.js → useDialogSurface.cjs} +12 -12
  151. package/lib-commonjs/components/DialogSurface/{useDialogSurface.js.map → useDialogSurface.cjs.map} +1 -1
  152. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.styles.cjs.map +1 -0
  153. package/lib-commonjs/components/DialogSurface/{useDialogSurfaceStyles.styles.raw.js → useDialogSurfaceStyles.styles.raw.cjs} +9 -9
  154. package/lib-commonjs/components/DialogSurface/{useDialogSurfaceStyles.styles.raw.js.map → useDialogSurfaceStyles.styles.raw.cjs.map} +1 -1
  155. package/lib-commonjs/components/DialogTitle/{DialogTitle.js → DialogTitle.cjs} +3 -3
  156. package/lib-commonjs/components/DialogTitle/{DialogTitle.js.map → DialogTitle.cjs.map} +1 -1
  157. package/lib-commonjs/components/DialogTitle/{index.js → index.cjs} +4 -4
  158. package/lib-commonjs/components/DialogTitle/{index.js.map → index.cjs.map} +1 -1
  159. package/lib-commonjs/components/DialogTitle/{useDialogTitle.js → useDialogTitle.cjs} +3 -3
  160. package/lib-commonjs/components/DialogTitle/{useDialogTitle.js.map → useDialogTitle.cjs.map} +1 -1
  161. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.styles.cjs.map +1 -0
  162. package/lib-commonjs/components/DialogTrigger/{DialogTrigger.js → DialogTrigger.cjs} +2 -2
  163. package/lib-commonjs/components/DialogTrigger/{DialogTrigger.js.map → DialogTrigger.cjs.map} +1 -1
  164. package/lib-commonjs/components/DialogTrigger/{index.js → index.cjs} +3 -3
  165. package/lib-commonjs/components/DialogTrigger/{index.js.map → index.cjs.map} +1 -1
  166. package/lib-commonjs/components/DialogTrigger/{useDialogTrigger.js → useDialogTrigger.cjs} +3 -3
  167. package/lib-commonjs/components/DialogTrigger/{useDialogTrigger.js.map → useDialogTrigger.cjs.map} +1 -1
  168. package/lib-commonjs/contexts/{index.js → index.cjs} +4 -4
  169. package/lib-commonjs/contexts/{index.js.map → index.cjs.map} +1 -1
  170. package/lib-commonjs/{index.js → index.cjs} +9 -9
  171. package/lib-commonjs/{index.js.map → index.cjs.map} +1 -1
  172. package/lib-commonjs/utils/{index.js → index.cjs} +2 -2
  173. package/lib-commonjs/utils/{index.js.map → index.cjs.map} +1 -1
  174. package/lib-commonjs/utils/{useDisableBodyScroll.js → useDisableBodyScroll.cjs} +1 -1
  175. package/lib-commonjs/utils/{useDisableBodyScroll.js.map → useDisableBodyScroll.cjs.map} +1 -1
  176. package/lib-commonjs/utils/useDisableBodyScroll.styles.cjs.map +1 -0
  177. package/package.json +24 -18
  178. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.styles.js.map +0 -1
  179. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.styles.js.map +0 -1
  180. package/lib-commonjs/components/DialogContent/useDialogContentStyles.styles.js.map +0 -1
  181. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.styles.js.map +0 -1
  182. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.styles.js.map +0 -1
  183. package/lib-commonjs/utils/useDisableBodyScroll.styles.js.map +0 -1
  184. /package/lib-commonjs/components/Dialog/{Dialog.types.js → Dialog.types.cjs} +0 -0
  185. /package/lib-commonjs/components/Dialog/{Dialog.types.js.map → Dialog.types.cjs.map} +0 -0
  186. /package/lib-commonjs/components/Dialog/{useDialogContextValues.js → useDialogContextValues.cjs} +0 -0
  187. /package/lib-commonjs/components/Dialog/{useDialogContextValues.js.map → useDialogContextValues.cjs.map} +0 -0
  188. /package/lib-commonjs/components/DialogActions/{DialogActions.types.js → DialogActions.types.cjs} +0 -0
  189. /package/lib-commonjs/components/DialogActions/{DialogActions.types.js.map → DialogActions.types.cjs.map} +0 -0
  190. /package/lib-commonjs/components/DialogActions/{renderDialogActions.js → renderDialogActions.cjs} +0 -0
  191. /package/lib-commonjs/components/DialogActions/{renderDialogActions.js.map → renderDialogActions.cjs.map} +0 -0
  192. /package/lib-commonjs/components/DialogActions/{useDialogActions.js → useDialogActions.cjs} +0 -0
  193. /package/lib-commonjs/components/DialogActions/{useDialogActions.js.map → useDialogActions.cjs.map} +0 -0
  194. /package/lib-commonjs/components/DialogActions/{useDialogActionsStyles.styles.js → useDialogActionsStyles.styles.cjs} +0 -0
  195. /package/lib-commonjs/components/{DialogBackdropMotion.js → DialogBackdropMotion.cjs} +0 -0
  196. /package/lib-commonjs/components/{DialogBackdropMotion.js.map → DialogBackdropMotion.cjs.map} +0 -0
  197. /package/lib-commonjs/components/DialogBody/{DialogBody.types.js → DialogBody.types.cjs} +0 -0
  198. /package/lib-commonjs/components/DialogBody/{DialogBody.types.js.map → DialogBody.types.cjs.map} +0 -0
  199. /package/lib-commonjs/components/DialogBody/{renderDialogBody.js → renderDialogBody.cjs} +0 -0
  200. /package/lib-commonjs/components/DialogBody/{renderDialogBody.js.map → renderDialogBody.cjs.map} +0 -0
  201. /package/lib-commonjs/components/DialogBody/{useDialogBody.js → useDialogBody.cjs} +0 -0
  202. /package/lib-commonjs/components/DialogBody/{useDialogBody.js.map → useDialogBody.cjs.map} +0 -0
  203. /package/lib-commonjs/components/DialogBody/{useDialogBodyStyles.styles.js → useDialogBodyStyles.styles.cjs} +0 -0
  204. /package/lib-commonjs/components/DialogContent/{DialogContent.types.js → DialogContent.types.cjs} +0 -0
  205. /package/lib-commonjs/components/DialogContent/{DialogContent.types.js.map → DialogContent.types.cjs.map} +0 -0
  206. /package/lib-commonjs/components/DialogContent/{renderDialogContent.js → renderDialogContent.cjs} +0 -0
  207. /package/lib-commonjs/components/DialogContent/{renderDialogContent.js.map → renderDialogContent.cjs.map} +0 -0
  208. /package/lib-commonjs/components/DialogContent/{useDialogContent.js → useDialogContent.cjs} +0 -0
  209. /package/lib-commonjs/components/DialogContent/{useDialogContent.js.map → useDialogContent.cjs.map} +0 -0
  210. /package/lib-commonjs/components/DialogContent/{useDialogContentStyles.styles.js → useDialogContentStyles.styles.cjs} +0 -0
  211. /package/lib-commonjs/components/DialogSurface/{DialogSurface.types.js → DialogSurface.types.cjs} +0 -0
  212. /package/lib-commonjs/components/DialogSurface/{DialogSurface.types.js.map → DialogSurface.types.cjs.map} +0 -0
  213. /package/lib-commonjs/components/DialogSurface/{useDialogSurfaceContextValues.js → useDialogSurfaceContextValues.cjs} +0 -0
  214. /package/lib-commonjs/components/DialogSurface/{useDialogSurfaceContextValues.js.map → useDialogSurfaceContextValues.cjs.map} +0 -0
  215. /package/lib-commonjs/components/DialogSurface/{useDialogSurfaceStyles.styles.js → useDialogSurfaceStyles.styles.cjs} +0 -0
  216. /package/lib-commonjs/components/{DialogSurfaceMotion.js → DialogSurfaceMotion.cjs} +0 -0
  217. /package/lib-commonjs/components/{DialogSurfaceMotion.js.map → DialogSurfaceMotion.cjs.map} +0 -0
  218. /package/lib-commonjs/components/DialogTitle/{DialogTitle.types.js → DialogTitle.types.cjs} +0 -0
  219. /package/lib-commonjs/components/DialogTitle/{DialogTitle.types.js.map → DialogTitle.types.cjs.map} +0 -0
  220. /package/lib-commonjs/components/DialogTitle/{renderDialogTitle.js → renderDialogTitle.cjs} +0 -0
  221. /package/lib-commonjs/components/DialogTitle/{renderDialogTitle.js.map → renderDialogTitle.cjs.map} +0 -0
  222. /package/lib-commonjs/components/DialogTitle/{useDialogTitleStyles.styles.js → useDialogTitleStyles.styles.cjs} +0 -0
  223. /package/lib-commonjs/components/DialogTitle/{useDialogTitleStyles.styles.raw.js → useDialogTitleStyles.styles.raw.cjs} +0 -0
  224. /package/lib-commonjs/components/DialogTitle/{useDialogTitleStyles.styles.raw.js.map → useDialogTitleStyles.styles.raw.cjs.map} +0 -0
  225. /package/lib-commonjs/components/DialogTrigger/{DialogTrigger.types.js → DialogTrigger.types.cjs} +0 -0
  226. /package/lib-commonjs/components/DialogTrigger/{DialogTrigger.types.js.map → DialogTrigger.types.cjs.map} +0 -0
  227. /package/lib-commonjs/components/DialogTrigger/{renderDialogTrigger.js → renderDialogTrigger.cjs} +0 -0
  228. /package/lib-commonjs/components/DialogTrigger/{renderDialogTrigger.js.map → renderDialogTrigger.cjs.map} +0 -0
  229. /package/lib-commonjs/contexts/{constants.js → constants.cjs} +0 -0
  230. /package/lib-commonjs/contexts/{constants.js.map → constants.cjs.map} +0 -0
  231. /package/lib-commonjs/contexts/{dialogBackdropContext.js → dialogBackdropContext.cjs} +0 -0
  232. /package/lib-commonjs/contexts/{dialogBackdropContext.js.map → dialogBackdropContext.cjs.map} +0 -0
  233. /package/lib-commonjs/contexts/{dialogContext.js → dialogContext.cjs} +0 -0
  234. /package/lib-commonjs/contexts/{dialogContext.js.map → dialogContext.cjs.map} +0 -0
  235. /package/lib-commonjs/contexts/{dialogSurfaceContext.js → dialogSurfaceContext.cjs} +0 -0
  236. /package/lib-commonjs/contexts/{dialogSurfaceContext.js.map → dialogSurfaceContext.cjs.map} +0 -0
  237. /package/lib-commonjs/utils/{useDisableBodyScroll.styles.js → useDisableBodyScroll.styles.cjs} +0 -0
  238. /package/lib-commonjs/utils/{useDisableBodyScroll.styles.raw.js → useDisableBodyScroll.styles.raw.cjs} +0 -0
  239. /package/lib-commonjs/utils/{useDisableBodyScroll.styles.raw.js.map → useDisableBodyScroll.styles.raw.cjs.map} +0 -0
  240. /package/lib-commonjs/utils/{useFocusFirstElement.js → useFocusFirstElement.cjs} +0 -0
  241. /package/lib-commonjs/utils/{useFocusFirstElement.js.map → useFocusFirstElement.cjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,12 +1,32 @@
1
1
  # Change Log - @fluentui/react-dialog
2
2
 
3
- This log was last generated on Wed, 24 Jun 2026 11:03:31 GMT and should not be manually modified.
3
+ <!-- This log was last generated on Tue, 11 Aug 2026 17:16:03 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.18.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.18.3)
8
+
9
+ Tue, 11 Aug 2026 17:16:03 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.18.2..@fluentui/react-dialog_v9.18.3)
11
+
12
+ ### Patches
13
+
14
+ - Ship ESM-first (type:module): valid ESM under lib/, CommonJS under lib-commonjs/*.cjs, and drop the `node` export condition - bare-Node `import` resolves ESM, `require` resolves CJS; node-targeted bundlers tree-shake. ([PR #36327](https://github.com/microsoft/fluentui/pull/36327) by martinhochel@microsoft.com)
15
+ - Bump @fluentui/keyboard-keys to v9.0.9 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-aria to v9.17.14 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - Bump @fluentui/react-context-selector to v9.2.19 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
+ - Bump @fluentui/react-jsx-runtime to v9.4.5 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
+ - Bump @fluentui/react-motion to v9.16.2 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
+ - Bump @fluentui/react-motion-components-preview to v0.15.7 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
21
+ - Bump @fluentui/react-portal to v9.8.15 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
22
+ - Bump @fluentui/react-shared-contexts to v9.26.3 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
23
+ - Bump @fluentui/react-tabster to v9.26.17 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
24
+ - Bump @fluentui/react-theme to v9.2.2 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
25
+ - Bump @fluentui/react-utilities to v9.26.6 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
26
+
7
27
  ## [9.18.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.18.2)
8
28
 
9
- Wed, 24 Jun 2026 11:03:31 GMT
29
+ Wed, 24 Jun 2026 11:09:42 GMT
10
30
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.18.1..@fluentui/react-dialog_v9.18.2)
11
31
 
12
32
  ### Patches
@@ -0,0 +1,547 @@
1
+ import type { ARIAButtonResultProps } from '@fluentui/react-aria';
2
+ import type { ARIAButtonType } from '@fluentui/react-aria';
3
+ import type { ComponentProps } from '@fluentui/react-utilities';
4
+ import type { ComponentState } from '@fluentui/react-utilities';
5
+ import type { ContextSelector } from '@fluentui/react-context-selector';
6
+ import type { ExtractSlotProps } from '@fluentui/react-utilities';
7
+ import type { FadeParams } from '@fluentui/react-motion-components-preview';
8
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
9
+ import type { JSXElement } from '@fluentui/react-utilities';
10
+ import type { PortalProps } from '@fluentui/react-portal';
11
+ import type { PresenceMotionSlotProps } from '@fluentui/react-motion';
12
+ import * as React_2 from 'react';
13
+ import type { ScaleParams } from '@fluentui/react-motion-components-preview';
14
+ import type { Slot } from '@fluentui/react-utilities';
15
+ import type { SlotClassNames } from '@fluentui/react-utilities';
16
+ import type { TriggerProps } from '@fluentui/react-utilities';
17
+ import type { useModalAttributes } from '@fluentui/react-tabster';
18
+
19
+ /**
20
+ * The `Dialog` root level component serves as an interface for interaction with all possible behaviors exposed.
21
+ * It provides context down the hierarchy to `children` compound components to allow functionality.
22
+ * This component expects to receive as children either a `DialogSurface` or a `DialogTrigger`
23
+ * and a `DialogSurface` (or some component that will eventually render one of those compound components)
24
+ * in this specific order
25
+ */
26
+ export declare const Dialog: React_2.FC<DialogProps>;
27
+
28
+ export declare const DIALOG_FULLSCREEN_DIALOG_SCROLLBAR_OFFSET = "4px";
29
+
30
+ export declare const DIALOG_MEDIA_QUERY_BREAKPOINT_SELECTOR = "@media screen and (max-width: 480px)";
31
+
32
+ export declare const DIALOG_MEDIA_QUERY_SHORT_SCREEN = "@media screen and (max-height: 359px)";
33
+
34
+ /**
35
+ * `DialogActions` is a container for the actions of the dialog.
36
+ * Apart from styling, this component does not have other behavior.
37
+ */
38
+ export declare const DialogActions: ForwardRefComponent<DialogActionsProps>;
39
+
40
+ export declare const dialogActionsClassNames: SlotClassNames<DialogActionsSlots>;
41
+
42
+ export declare type DialogActionsPosition = 'start' | 'end';
43
+
44
+ /**
45
+ * DialogActions Props
46
+ */
47
+ export declare type DialogActionsProps = ComponentProps<DialogActionsSlots> & {
48
+ /**
49
+ * defines the position on the dialog grid of the actions
50
+ * @default 'end'
51
+ */
52
+ position?: DialogActionsPosition;
53
+ /**
54
+ * Makes the actions expand the entire width of the DialogBody
55
+ * @default false
56
+ */
57
+ fluid?: boolean;
58
+ };
59
+
60
+ export declare type DialogActionsSlots = {
61
+ root: Slot<'div'>;
62
+ };
63
+
64
+ /**
65
+ * State used in rendering DialogActions
66
+ */
67
+ export declare type DialogActionsState = ComponentState<DialogActionsSlots> & Pick<Required<DialogActionsProps>, 'position' | 'fluid'>;
68
+
69
+ export declare type DialogBackdropContextValue = boolean;
70
+
71
+ export declare const DialogBackdropProvider: React_2.Provider<boolean | undefined>;
72
+
73
+ /**
74
+ * Custom slot props for the backdrop slot.
75
+ */
76
+ export declare type DialogBackdropSlotProps = ExtractSlotProps<Slot<'div'> & {
77
+ /**
78
+ * Controls the backdrop appearance.
79
+ * - 'dimmed': Shows a dimmed backdrop (default for standalone dialogs)
80
+ * - 'transparent': Shows a transparent backdrop (default for nested dialogs)
81
+ */
82
+ appearance?: 'dimmed' | 'transparent';
83
+ }>;
84
+
85
+ /**
86
+ * The `DialogBody` is a container where the content of the dialog is rendered.
87
+ * Apart from styling, this component does not have other behavior.
88
+ */
89
+ export declare const DialogBody: ForwardRefComponent<DialogBodyProps>;
90
+
91
+ export declare const dialogBodyClassNames: SlotClassNames<DialogBodySlots>;
92
+
93
+ /**
94
+ * DialogBody Props
95
+ */
96
+ export declare type DialogBodyProps = ComponentProps<DialogBodySlots> & {};
97
+
98
+ export declare type DialogBodySlots = {
99
+ root: Slot<'div'>;
100
+ };
101
+
102
+ /**
103
+ * State used in rendering DialogBody
104
+ */
105
+ export declare type DialogBodyState = ComponentState<DialogBodySlots>;
106
+
107
+ /**
108
+ * The `DialogContent` is a container where the content of the dialog is rendered.
109
+ * Apart from styling, this component does not have other behavior.
110
+ */
111
+ export declare const DialogContent: ForwardRefComponent<DialogContentProps>;
112
+
113
+ export declare const dialogContentClassNames: SlotClassNames<DialogContentSlots>;
114
+
115
+ /**
116
+ * DialogContent Props
117
+ */
118
+ export declare type DialogContentProps = ComponentProps<DialogContentSlots>;
119
+
120
+ export declare type DialogContentSlots = {
121
+ root: Slot<'div'>;
122
+ };
123
+
124
+ /**
125
+ * State used in rendering DialogContent
126
+ */
127
+ export declare type DialogContentState = ComponentState<DialogContentSlots>;
128
+
129
+ export declare type DialogContextValue = {
130
+ open: boolean;
131
+ inertTrapFocus: boolean;
132
+ dialogTitleId?: string;
133
+ isNestedDialog: boolean;
134
+ dialogRef: React_2.Ref<DialogSurfaceElement | null>;
135
+ unmountOnClose?: boolean;
136
+ modalType: DialogModalType;
137
+ /**
138
+ * Requests dialog main component to update it's internal open state
139
+ */
140
+ requestOpenChange: (data: DialogOpenChangeData) => void;
141
+ } & Partial<ReturnType<typeof useModalAttributes>>;
142
+
143
+ export declare type DialogContextValues = {
144
+ dialog: DialogContextValue;
145
+ /**
146
+ * dialogSurface context is provided by Dialog as false
147
+ * to ensure components inside Dialog but outside DialogSurface will consume this as false
148
+ */
149
+ dialogSurface: DialogSurfaceContextValue;
150
+ };
151
+
152
+ export declare type DialogModalType = 'modal' | 'non-modal' | 'alert';
153
+
154
+ export declare type DialogOpenChangeData = {
155
+ type: 'escapeKeyDown';
156
+ open: boolean;
157
+ event: React_2.KeyboardEvent<DialogSurfaceElement>;
158
+ } | {
159
+ type: 'backdropClick';
160
+ open: boolean;
161
+ event: React_2.MouseEvent<DialogSurfaceElement>;
162
+ } | {
163
+ type: 'triggerClick';
164
+ open: boolean;
165
+ event: React_2.MouseEvent<DialogSurfaceElement>;
166
+ };
167
+
168
+ export declare type DialogOpenChangeEvent = DialogOpenChangeData['event'];
169
+
170
+ /**
171
+ * Callback fired when the component changes value from open state.
172
+ *
173
+ * @param event - a React's Synthetic event or a KeyboardEvent in case of `documentEscapeKeyDown`
174
+ * @param data - A data object with relevant information,
175
+ * such as open value and type of interaction that created the event
176
+ */
177
+ export declare type DialogOpenChangeEventHandler = (event: DialogOpenChangeEvent, data: DialogOpenChangeData) => void;
178
+
179
+ export declare type DialogProps = ComponentProps<Partial<DialogSlots>> & {
180
+ /**
181
+ * Dialog variations.
182
+ *
183
+ * `modal`: When this type of dialog is open, the rest of the page is dimmed out and cannot be interacted with.
184
+ * The tab sequence is kept within the dialog and moving the focus outside
185
+ * the dialog will imply closing it. This is the default type of the component.
186
+ *
187
+ * `non-modal`: When a non-modal dialog is open, the rest of the page is not dimmed out
188
+ * and users can interact with the rest of the page.
189
+ * This also implies that the tab focus can move outside the dialog when it reaches the last focusable element.
190
+ *
191
+ * `alert`: is a special type of modal dialogs that interrupts the user's workflow
192
+ * to communicate an important message or ask for a decision.
193
+ * Unlike a typical modal dialog, the user must take an action through the options given to dismiss the dialog,
194
+ * and it cannot be dismissed through the dimmed background.
195
+ *
196
+ * @default modal
197
+ */
198
+ modalType?: DialogModalType;
199
+ /**
200
+ * Controls the open state of the dialog
201
+ * @default false
202
+ */
203
+ open?: boolean;
204
+ /**
205
+ * Default value for the uncontrolled open state of the dialog.
206
+ * @default false
207
+ */
208
+ defaultOpen?: boolean;
209
+ /**
210
+ * Callback fired when the component changes value from open state.
211
+ *
212
+ * @param event - a React's Synthetic event or a KeyboardEvent in case of `documentEscapeKeyDown`
213
+ * @param data - A data object with relevant information,
214
+ * such as open value and type of interaction that created the event
215
+ */
216
+ onOpenChange?: DialogOpenChangeEventHandler;
217
+ /**
218
+ * Can contain two children including `DialogTrigger` and `DialogSurface`.
219
+ * Alternatively can only contain `DialogSurface` if using trigger outside dialog, or controlling state.
220
+ */
221
+ children: [JSXElement, JSXElement] | JSXElement;
222
+ /**
223
+ * Enables standard behavior according to the [HTML dialog spec](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)
224
+ * where the focus trap involves setting outside elements inert.
225
+ *
226
+ * @default false
227
+ */
228
+ inertTrapFocus?: boolean;
229
+ /**
230
+ * Decides whether the dialog should be removed from the DOM tree when it is closed.
231
+ * This can be useful when dealing with components that may contain state that should not
232
+ * be reset when the dialog is closed.
233
+ *
234
+ * @default true
235
+ */
236
+ unmountOnClose?: boolean;
237
+ };
238
+
239
+ export declare const DialogProvider: React_2.Provider<DialogContextValue | undefined> & React_2.FC<React_2.ProviderProps<DialogContextValue | undefined>>;
240
+
241
+ export declare type DialogSlots = {
242
+ /**
243
+ * For more information refer to the [Motion docs page](https://react.fluentui.dev/?path=/docs/motion-motion-slot--docs).
244
+ *
245
+ */
246
+ surfaceMotion: Slot<PresenceMotionSlotProps<ScaleParams>>;
247
+ };
248
+
249
+ export declare type DialogState = ComponentState<InternalDialogSlots> & DialogContextValue & {
250
+ content: React_2.ReactNode;
251
+ trigger: React_2.ReactNode;
252
+ };
253
+
254
+ /**
255
+ * DialogSurface component represents the visual part of a `Dialog` as a whole,
256
+ * it contains everything that should be visible.
257
+ */
258
+ export declare const DialogSurface: ForwardRefComponent<DialogSurfaceProps>;
259
+
260
+ export declare const dialogSurfaceClassNames: SlotClassNames<Omit<DialogSurfaceSlots, 'backdropMotion'>>;
261
+
262
+ export declare type DialogSurfaceContextValue = boolean;
263
+
264
+ export declare type DialogSurfaceContextValues = {
265
+ dialogSurface: DialogSurfaceContextValue;
266
+ };
267
+
268
+ /**
269
+ * Union between all possible semantic element that represent a DialogSurface
270
+ */
271
+ export declare type DialogSurfaceElement = HTMLElement;
272
+
273
+ /**
274
+ * DialogSurface Props
275
+ */
276
+ export declare type DialogSurfaceProps = ComponentProps<Partial<DialogSurfaceSlots>> & Pick<PortalProps, 'mountNode'>;
277
+
278
+ export declare const DialogSurfaceProvider: React_2.Provider<boolean | undefined>;
279
+
280
+ export declare type DialogSurfaceSlots = {
281
+ /**
282
+ * Dimmed background of dialog.
283
+ * The default backdrop is rendered as a `<div>` with styling.
284
+ * This slot expects a `<div>` element which will replace the default backdrop.
285
+ * The backdrop should have `aria-hidden="true"`.
286
+ *
287
+ * Accepts an `appearance` prop to control backdrop visibility:
288
+ * - `'dimmed'`: Always shows a dimmed backdrop, regardless of nesting.
289
+ * - `'transparent'`: Always shows a transparent backdrop.
290
+ *
291
+ * @example
292
+ * ```tsx
293
+ * <DialogSurface backdrop={{ appearance: 'dimmed' }} />
294
+ * ```
295
+ */
296
+ backdrop?: Slot<DialogBackdropSlotProps>;
297
+ root: Slot<'div'>;
298
+ /**
299
+ * For more information refer to the [Motion docs page](https://react.fluentui.dev/?path=/docs/motion-motion-slot--docs).
300
+ *
301
+ */
302
+ backdropMotion: Slot<PresenceMotionSlotProps<FadeParams>>;
303
+ };
304
+
305
+ /**
306
+ * State used in rendering DialogSurface
307
+ */
308
+ export declare type DialogSurfaceState = ComponentState<DialogSurfaceSlots> & Pick<DialogContextValue, 'isNestedDialog'> & Pick<PortalProps, 'mountNode'> & {
309
+ open?: boolean;
310
+ unmountOnClose?: boolean;
311
+ /**
312
+ * Whether the backdrop should be treated as nested (transparent).
313
+ * When inside an OverlayDrawer, this is `false` even though `isNestedDialog` may be `true`,
314
+ * preventing the false-positive transparent backdrop.
315
+ */
316
+ treatBackdropAsNested: boolean;
317
+ /**
318
+ * Transition status for animation.
319
+ * In test environment, this is always `undefined`.
320
+ *
321
+ * @deprecated Will be always `undefined`.
322
+ */
323
+ transitionStatus?: 'entering' | 'entered' | 'idle' | 'exiting' | 'exited' | 'unmounted';
324
+ backdropAppearance?: DialogBackdropSlotProps['appearance'];
325
+ };
326
+
327
+ /**
328
+ * The `DialogTitle` component expects to have a title/header
329
+ * and when `Dialog` is `non-modal` a close (X icon) button is provided through `action` slot by default.
330
+ */
331
+ export declare const DialogTitle: ForwardRefComponent<DialogTitleProps>;
332
+
333
+ export declare const dialogTitleClassNames: SlotClassNames<DialogTitleSlots>;
334
+
335
+ /**
336
+ * DialogTitle Props
337
+ */
338
+ export declare type DialogTitleProps = ComponentProps<DialogTitleSlots>;
339
+
340
+ export declare type DialogTitleSlots = {
341
+ /**
342
+ * By default this is a h2, but can be any heading or div,
343
+ * if `div` is provided do not forget to also provide proper `role="heading"` and `aria-level` attributes
344
+ */
345
+ root: Slot<'h2', 'h1' | 'h3' | 'h4' | 'h5' | 'h6' | 'div'>;
346
+ /**
347
+ * By default a Dialog with modalType='non-modal' will have a close button action
348
+ */
349
+ action?: Slot<'div'>;
350
+ };
351
+
352
+ /**
353
+ * State used in rendering DialogTitle
354
+ */
355
+ export declare type DialogTitleState = ComponentState<DialogTitleSlots>;
356
+
357
+ /**
358
+ * A non-visual component that wraps its child
359
+ * and configures them to be the trigger that will open or close a `Dialog`.
360
+ * This component should only accept one child.
361
+ *
362
+ * This component sole purpose is to avoid opting out of the internal controlled open state of a `Dialog`
363
+ * Besides being a trigger that opens/close a dialog through context this component doesn't do much,
364
+ * making it basically unnecessary in cases where the trigger is outside of the `Dialog` component.
365
+ */
366
+ export declare const DialogTrigger: React_2.FC<DialogTriggerProps>;
367
+
368
+ export declare type DialogTriggerAction = 'open' | 'close';
369
+
370
+ /**
371
+ * Props that are passed to the child of the DialogTrigger when cloned to ensure correct behaviour for the Dialog
372
+ */
373
+ export declare type DialogTriggerChildProps<Type extends ARIAButtonType = ARIAButtonType, Props = {}> = ARIAButtonResultProps<Type, Props & {
374
+ 'aria-haspopup'?: 'dialog';
375
+ }>;
376
+
377
+ export declare type DialogTriggerProps = TriggerProps<DialogTriggerChildProps> & {
378
+ /**
379
+ * Explicitly declare if the trigger is responsible for opening or
380
+ * closing a Dialog visibility state.
381
+ *
382
+ * If `DialogTrigger` is outside `DialogSurface` then it'll be `open` by default
383
+ *
384
+ * If `DialogTrigger` is inside `DialogSurface` then it'll be `close` by default
385
+ */
386
+ action?: DialogTriggerAction;
387
+ /**
388
+ * Disables internal trigger mechanism that ensures a child provided will be a compliant ARIA button.
389
+ * @default false
390
+ */
391
+ disableButtonEnhancement?: boolean;
392
+ };
393
+
394
+ export declare type DialogTriggerState = {
395
+ children: React_2.ReactElement | null;
396
+ };
397
+
398
+ declare type InternalDialogSlots = {
399
+ surfaceMotion: NonNullable<Slot<PresenceMotionSlotProps<ScaleParams>>>;
400
+ };
401
+
402
+ /**
403
+ * Render the final JSX of Dialog
404
+ */
405
+ export declare const renderDialog_unstable: (state: DialogState, contextValues: DialogContextValues) => JSXElement;
406
+
407
+ /**
408
+ * Render the final JSX of DialogActions
409
+ */
410
+ export declare const renderDialogActions_unstable: (state: DialogActionsState) => JSXElement;
411
+
412
+ /**
413
+ * Render the final JSX of DialogBody
414
+ */
415
+ export declare const renderDialogBody_unstable: (state: DialogBodyState) => JSXElement;
416
+
417
+ /**
418
+ * Render the final JSX of DialogContent
419
+ */
420
+ export declare const renderDialogContent_unstable: (state: DialogContentState) => JSXElement;
421
+
422
+ /**
423
+ * Render the final JSX of DialogSurface
424
+ */
425
+ export declare const renderDialogSurface_unstable: (state: DialogSurfaceState, contextValues: DialogSurfaceContextValues) => JSXElement;
426
+
427
+ /**
428
+ * Render the final JSX of DialogTitle
429
+ */
430
+ export declare const renderDialogTitle_unstable: (state: DialogTitleState) => JSXElement;
431
+
432
+ /**
433
+ * Render the final JSX of MenuTrigger
434
+ *
435
+ * Only renders children
436
+ */
437
+ export declare const renderDialogTrigger_unstable: (state: DialogTriggerState) => JSXElement | null;
438
+
439
+ /**
440
+ * Create the state required to render Dialog.
441
+ *
442
+ * The returned state can be modified with hooks such as useDialogStyles_unstable,
443
+ * before being passed to renderDialog_unstable.
444
+ *
445
+ * @param props - props from this instance of Dialog
446
+ */
447
+ export declare const useDialog_unstable: (props: DialogProps) => DialogState;
448
+
449
+ /**
450
+ * Create the state required to render DialogActions.
451
+ *
452
+ * The returned state can be modified with hooks such as useDialogActionsStyles_unstable,
453
+ * before being passed to renderDialogActions_unstable.
454
+ *
455
+ * @param props - props from this instance of DialogActions
456
+ * @param ref - reference to root HTMLElement of DialogActions
457
+ */
458
+ export declare const useDialogActions_unstable: (props: DialogActionsProps, ref: React_2.Ref<HTMLElement>) => DialogActionsState;
459
+
460
+ /**
461
+ * Apply styling to the DialogActions slots based on the state
462
+ */
463
+ export declare const useDialogActionsStyles_unstable: (state: DialogActionsState) => DialogActionsState;
464
+
465
+ export declare const useDialogBackdropContext_unstable: () => DialogBackdropContextValue | undefined;
466
+
467
+ /**
468
+ * Create the state required to render DialogBody.
469
+ *
470
+ * The returned state can be modified with hooks such as useDialogBodyStyles_unstable,
471
+ * before being passed to renderDialogBody_unstable.
472
+ *
473
+ * @param props - props from this instance of DialogBody
474
+ * @param ref - reference to root HTMLElement of DialogBody
475
+ */
476
+ export declare const useDialogBody_unstable: (props: DialogBodyProps, ref: React_2.Ref<HTMLElement>) => DialogBodyState;
477
+
478
+ /**
479
+ * Apply styling to the DialogBody slots based on the state
480
+ */
481
+ export declare const useDialogBodyStyles_unstable: (state: DialogBodyState) => DialogBodyState;
482
+
483
+ /**
484
+ * Create the state required to render DialogBody.
485
+ *
486
+ * The returned state can be modified with hooks such as useDialogBodyStyles_unstable,
487
+ * before being passed to renderDialogBody_unstable.
488
+ *
489
+ * @param props - props from this instance of DialogBody
490
+ * @param ref - reference to root HTMLElement of DialogBody
491
+ */
492
+ export declare const useDialogContent_unstable: (props: DialogContentProps, ref: React_2.Ref<HTMLElement>) => DialogContentState;
493
+
494
+ /**
495
+ * Apply styling to the DialogContent slots based on the state
496
+ */
497
+ export declare const useDialogContentStyles_unstable: (state: DialogContentState) => DialogContentState;
498
+
499
+ export declare const useDialogContext_unstable: <T>(selector: ContextSelector<DialogContextValue, T>) => T;
500
+
501
+ export declare function useDialogContextValues_unstable(state: DialogState): DialogContextValues;
502
+
503
+ /**
504
+ * Create the state required to render DialogSurface.
505
+ *
506
+ * The returned state can be modified with hooks such as useDialogSurfaceStyles_unstable,
507
+ * before being passed to renderDialogSurface_unstable.
508
+ *
509
+ * @param props - props from this instance of DialogSurface
510
+ * @param ref - reference to root HTMLElement of DialogSurface
511
+ */
512
+ export declare const useDialogSurface_unstable: (props: DialogSurfaceProps, ref: React_2.Ref<DialogSurfaceElement>) => DialogSurfaceState;
513
+
514
+ export declare const useDialogSurfaceContext_unstable: () => DialogSurfaceContextValue;
515
+
516
+ export declare function useDialogSurfaceContextValues_unstable(state: DialogSurfaceState): DialogSurfaceContextValues;
517
+
518
+ /**
519
+ * Apply styling to the DialogSurface slots based on the state
520
+ */
521
+ export declare const useDialogSurfaceStyles_unstable: (state: DialogSurfaceState) => DialogSurfaceState;
522
+
523
+ /**
524
+ * Create the state required to render DialogTitle.
525
+ *
526
+ * The returned state can be modified with hooks such as useDialogTitleStyles_unstable,
527
+ * before being passed to renderDialogTitle_unstable.
528
+ *
529
+ * @param props - props from this instance of DialogTitle
530
+ * @param ref - reference to root HTMLElement of DialogTitle
531
+ */
532
+ export declare const useDialogTitle_unstable: (props: DialogTitleProps, ref: React_2.Ref<HTMLDivElement>) => DialogTitleState;
533
+
534
+ /**
535
+ * Apply styling to the DialogTitle slots based on the state
536
+ */
537
+ export declare const useDialogTitleStyles_unstable: (state: DialogTitleState) => DialogTitleState;
538
+
539
+ /**
540
+ * Create the state required to render DialogTrigger.
541
+ * Clones the only child component and adds necessary event handling behaviours to open a popup Dialog
542
+ *
543
+ * @param props - props from this instance of DialogTrigger
544
+ */
545
+ export declare const useDialogTrigger_unstable: (props: DialogTriggerProps) => DialogTriggerState;
546
+
547
+ export { }
package/lib/Dialog.js CHANGED
@@ -1 +1 @@
1
- export { Dialog, renderDialog_unstable, useDialogContextValues_unstable, useDialog_unstable } from './components/Dialog/index';
1
+ export { Dialog, renderDialog_unstable, useDialogContextValues_unstable, useDialog_unstable } from "./components/Dialog/index.js";
package/lib/Dialog.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/Dialog.ts"],"sourcesContent":["export type {\n DialogContextValues,\n DialogModalType,\n DialogOpenChangeData,\n DialogOpenChangeEvent,\n DialogOpenChangeEventHandler,\n DialogProps,\n DialogSlots,\n DialogState,\n InternalDialogSlots,\n} from './components/Dialog/index';\nexport {\n Dialog,\n renderDialog_unstable,\n useDialogContextValues_unstable,\n useDialog_unstable,\n} from './components/Dialog/index';\n"],"names":["Dialog","renderDialog_unstable","useDialogContextValues_unstable","useDialog_unstable"],"mappings":"AAWA,SACEA,MAAM,EACNC,qBAAqB,EACrBC,+BAA+B,EAC/BC,kBAAkB,QACb,4BAA4B"}
1
+ {"version":3,"sources":["../src/Dialog.ts"],"sourcesContent":["export type {\n DialogContextValues,\n DialogModalType,\n DialogOpenChangeData,\n DialogOpenChangeEvent,\n DialogOpenChangeEventHandler,\n DialogProps,\n DialogSlots,\n DialogState,\n InternalDialogSlots,\n} from './components/Dialog/index';\nexport {\n Dialog,\n renderDialog_unstable,\n useDialogContextValues_unstable,\n useDialog_unstable,\n} from './components/Dialog/index';\n"],"names":["Dialog","renderDialog_unstable","useDialogContextValues_unstable","useDialog_unstable"],"mappings":"AAWA,SACEA,MAAM,EACNC,qBAAqB,EACrBC,+BAA+B,EAC/BC,kBAAkB,QACb,+BAA4B"}
@@ -1 +1 @@
1
- export { DialogActions, dialogActionsClassNames, renderDialogActions_unstable, useDialogActionsStyles_unstable, useDialogActions_unstable } from './components/DialogActions/index';
1
+ export { DialogActions, dialogActionsClassNames, renderDialogActions_unstable, useDialogActionsStyles_unstable, useDialogActions_unstable } from "./components/DialogActions/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/DialogActions.ts"],"sourcesContent":["export type {\n DialogActionsPosition,\n DialogActionsProps,\n DialogActionsSlots,\n DialogActionsState,\n} from './components/DialogActions/index';\nexport {\n DialogActions,\n dialogActionsClassNames,\n renderDialogActions_unstable,\n useDialogActionsStyles_unstable,\n useDialogActions_unstable,\n} from './components/DialogActions/index';\n"],"names":["DialogActions","dialogActionsClassNames","renderDialogActions_unstable","useDialogActionsStyles_unstable","useDialogActions_unstable"],"mappings":"AAMA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,mCAAmC"}
1
+ {"version":3,"sources":["../src/DialogActions.ts"],"sourcesContent":["export type {\n DialogActionsPosition,\n DialogActionsProps,\n DialogActionsSlots,\n DialogActionsState,\n} from './components/DialogActions/index';\nexport {\n DialogActions,\n dialogActionsClassNames,\n renderDialogActions_unstable,\n useDialogActionsStyles_unstable,\n useDialogActions_unstable,\n} from './components/DialogActions/index';\n"],"names":["DialogActions","dialogActionsClassNames","renderDialogActions_unstable","useDialogActionsStyles_unstable","useDialogActions_unstable"],"mappings":"AAMA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,sCAAmC"}
package/lib/DialogBody.js CHANGED
@@ -1 +1 @@
1
- export { DialogBody, dialogBodyClassNames, renderDialogBody_unstable, useDialogBodyStyles_unstable, useDialogBody_unstable } from './components/DialogBody/index';
1
+ export { DialogBody, dialogBodyClassNames, renderDialogBody_unstable, useDialogBodyStyles_unstable, useDialogBody_unstable } from "./components/DialogBody/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/DialogBody.ts"],"sourcesContent":["export type { DialogBodyProps, DialogBodySlots, DialogBodyState } from './components/DialogBody/index';\nexport {\n DialogBody,\n dialogBodyClassNames,\n renderDialogBody_unstable,\n useDialogBodyStyles_unstable,\n useDialogBody_unstable,\n} from './components/DialogBody/index';\n"],"names":["DialogBody","dialogBodyClassNames","renderDialogBody_unstable","useDialogBodyStyles_unstable","useDialogBody_unstable"],"mappings":"AACA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,gCAAgC"}
1
+ {"version":3,"sources":["../src/DialogBody.ts"],"sourcesContent":["export type { DialogBodyProps, DialogBodySlots, DialogBodyState } from './components/DialogBody/index';\nexport {\n DialogBody,\n dialogBodyClassNames,\n renderDialogBody_unstable,\n useDialogBodyStyles_unstable,\n useDialogBody_unstable,\n} from './components/DialogBody/index';\n"],"names":["DialogBody","dialogBodyClassNames","renderDialogBody_unstable","useDialogBodyStyles_unstable","useDialogBody_unstable"],"mappings":"AACA,SACEA,UAAU,EACVC,oBAAoB,EACpBC,yBAAyB,EACzBC,4BAA4B,EAC5BC,sBAAsB,QACjB,mCAAgC"}
@@ -1 +1 @@
1
- export { DialogContent, dialogContentClassNames, renderDialogContent_unstable, useDialogContentStyles_unstable, useDialogContent_unstable } from './components/DialogContent/index';
1
+ export { DialogContent, dialogContentClassNames, renderDialogContent_unstable, useDialogContentStyles_unstable, useDialogContent_unstable } from "./components/DialogContent/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/DialogContent.ts"],"sourcesContent":["export type { DialogContentProps, DialogContentSlots, DialogContentState } from './components/DialogContent/index';\nexport {\n DialogContent,\n dialogContentClassNames,\n renderDialogContent_unstable,\n useDialogContentStyles_unstable,\n useDialogContent_unstable,\n} from './components/DialogContent/index';\n"],"names":["DialogContent","dialogContentClassNames","renderDialogContent_unstable","useDialogContentStyles_unstable","useDialogContent_unstable"],"mappings":"AACA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,mCAAmC"}
1
+ {"version":3,"sources":["../src/DialogContent.ts"],"sourcesContent":["export type { DialogContentProps, DialogContentSlots, DialogContentState } from './components/DialogContent/index';\nexport {\n DialogContent,\n dialogContentClassNames,\n renderDialogContent_unstable,\n useDialogContentStyles_unstable,\n useDialogContent_unstable,\n} from './components/DialogContent/index';\n"],"names":["DialogContent","dialogContentClassNames","renderDialogContent_unstable","useDialogContentStyles_unstable","useDialogContent_unstable"],"mappings":"AACA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,yBAAyB,QACpB,sCAAmC"}
@@ -1 +1 @@
1
- export { DialogSurface, dialogSurfaceClassNames, renderDialogSurface_unstable, useDialogSurfaceContextValues_unstable, useDialogSurfaceStyles_unstable, useDialogSurface_unstable } from './components/DialogSurface/index';
1
+ export { DialogSurface, dialogSurfaceClassNames, renderDialogSurface_unstable, useDialogSurfaceContextValues_unstable, useDialogSurfaceStyles_unstable, useDialogSurface_unstable } from "./components/DialogSurface/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/DialogSurface.ts"],"sourcesContent":["export type {\n DialogBackdropSlotProps,\n DialogSurfaceContextValues,\n DialogSurfaceElement,\n DialogSurfaceProps,\n DialogSurfaceSlots,\n DialogSurfaceState,\n} from './components/DialogSurface/index';\nexport {\n DialogSurface,\n dialogSurfaceClassNames,\n renderDialogSurface_unstable,\n useDialogSurfaceContextValues_unstable,\n useDialogSurfaceStyles_unstable,\n useDialogSurface_unstable,\n} from './components/DialogSurface/index';\n"],"names":["DialogSurface","dialogSurfaceClassNames","renderDialogSurface_unstable","useDialogSurfaceContextValues_unstable","useDialogSurfaceStyles_unstable","useDialogSurface_unstable"],"mappings":"AAQA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,sCAAsC,EACtCC,+BAA+B,EAC/BC,yBAAyB,QACpB,mCAAmC"}
1
+ {"version":3,"sources":["../src/DialogSurface.ts"],"sourcesContent":["export type {\n DialogBackdropSlotProps,\n DialogSurfaceContextValues,\n DialogSurfaceElement,\n DialogSurfaceProps,\n DialogSurfaceSlots,\n DialogSurfaceState,\n} from './components/DialogSurface/index';\nexport {\n DialogSurface,\n dialogSurfaceClassNames,\n renderDialogSurface_unstable,\n useDialogSurfaceContextValues_unstable,\n useDialogSurfaceStyles_unstable,\n useDialogSurface_unstable,\n} from './components/DialogSurface/index';\n"],"names":["DialogSurface","dialogSurfaceClassNames","renderDialogSurface_unstable","useDialogSurfaceContextValues_unstable","useDialogSurfaceStyles_unstable","useDialogSurface_unstable"],"mappings":"AAQA,SACEA,aAAa,EACbC,uBAAuB,EACvBC,4BAA4B,EAC5BC,sCAAsC,EACtCC,+BAA+B,EAC/BC,yBAAyB,QACpB,sCAAmC"}
@@ -1 +1 @@
1
- export { DialogTitle, dialogTitleClassNames, renderDialogTitle_unstable, useDialogTitleInternalStyles, useDialogTitleStyles_unstable, useDialogTitle_unstable } from './components/DialogTitle/index';
1
+ export { DialogTitle, dialogTitleClassNames, renderDialogTitle_unstable, useDialogTitleInternalStyles, useDialogTitleStyles_unstable, useDialogTitle_unstable } from "./components/DialogTitle/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/DialogTitle.ts"],"sourcesContent":["export type { DialogTitleProps, DialogTitleSlots, DialogTitleState } from './components/DialogTitle/index';\nexport {\n DialogTitle,\n dialogTitleClassNames,\n renderDialogTitle_unstable,\n useDialogTitleInternalStyles,\n useDialogTitleStyles_unstable,\n useDialogTitle_unstable,\n} from './components/DialogTitle/index';\n"],"names":["DialogTitle","dialogTitleClassNames","renderDialogTitle_unstable","useDialogTitleInternalStyles","useDialogTitleStyles_unstable","useDialogTitle_unstable"],"mappings":"AACA,SACEA,WAAW,EACXC,qBAAqB,EACrBC,0BAA0B,EAC1BC,4BAA4B,EAC5BC,6BAA6B,EAC7BC,uBAAuB,QAClB,iCAAiC"}
1
+ {"version":3,"sources":["../src/DialogTitle.ts"],"sourcesContent":["export type { DialogTitleProps, DialogTitleSlots, DialogTitleState } from './components/DialogTitle/index';\nexport {\n DialogTitle,\n dialogTitleClassNames,\n renderDialogTitle_unstable,\n useDialogTitleInternalStyles,\n useDialogTitleStyles_unstable,\n useDialogTitle_unstable,\n} from './components/DialogTitle/index';\n"],"names":["DialogTitle","dialogTitleClassNames","renderDialogTitle_unstable","useDialogTitleInternalStyles","useDialogTitleStyles_unstable","useDialogTitle_unstable"],"mappings":"AACA,SACEA,WAAW,EACXC,qBAAqB,EACrBC,0BAA0B,EAC1BC,4BAA4B,EAC5BC,6BAA6B,EAC7BC,uBAAuB,QAClB,oCAAiC"}
@@ -1 +1 @@
1
- export { DialogTrigger, renderDialogTrigger_unstable, useDialogTrigger_unstable } from './components/DialogTrigger/index';
1
+ export { DialogTrigger, renderDialogTrigger_unstable, useDialogTrigger_unstable } from "./components/DialogTrigger/index.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/DialogTrigger.ts"],"sourcesContent":["export type {\n DialogTriggerAction,\n DialogTriggerChildProps,\n DialogTriggerProps,\n DialogTriggerState,\n} from './components/DialogTrigger/index';\nexport {\n DialogTrigger,\n renderDialogTrigger_unstable,\n useDialogTrigger_unstable,\n} from './components/DialogTrigger/index';\n"],"names":["DialogTrigger","renderDialogTrigger_unstable","useDialogTrigger_unstable"],"mappings":"AAMA,SACEA,aAAa,EACbC,4BAA4B,EAC5BC,yBAAyB,QACpB,mCAAmC"}
1
+ {"version":3,"sources":["../src/DialogTrigger.ts"],"sourcesContent":["export type {\n DialogTriggerAction,\n DialogTriggerChildProps,\n DialogTriggerProps,\n DialogTriggerState,\n} from './components/DialogTrigger/index';\nexport {\n DialogTrigger,\n renderDialogTrigger_unstable,\n useDialogTrigger_unstable,\n} from './components/DialogTrigger/index';\n"],"names":["DialogTrigger","renderDialogTrigger_unstable","useDialogTrigger_unstable"],"mappings":"AAMA,SACEA,aAAa,EACbC,4BAA4B,EAC5BC,yBAAyB,QACpB,sCAAmC"}