@fluentui/react-dialog 9.3.2 → 9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +141 -1
  3. package/CHANGELOG.md +41 -2
  4. package/dist/index.d.ts +6 -3
  5. package/lib/Dialog.js.map +1 -1
  6. package/lib/DialogActions.js.map +1 -1
  7. package/lib/DialogBody.js.map +1 -1
  8. package/lib/DialogContent.js.map +1 -1
  9. package/lib/DialogSurface.js.map +1 -1
  10. package/lib/DialogTitle.js.map +1 -1
  11. package/lib/DialogTrigger.js.map +1 -1
  12. package/lib/components/Dialog/Dialog.js.map +1 -1
  13. package/lib/components/Dialog/Dialog.types.js.map +1 -1
  14. package/lib/components/Dialog/index.js.map +1 -1
  15. package/lib/components/Dialog/renderDialog.js.map +1 -1
  16. package/lib/components/Dialog/useDialog.js.map +1 -1
  17. package/lib/components/Dialog/useDialogContextValues.js +3 -3
  18. package/lib/components/Dialog/useDialogContextValues.js.map +1 -1
  19. package/lib/components/DialogActions/DialogActions.js.map +1 -1
  20. package/lib/components/DialogActions/DialogActions.types.js.map +1 -1
  21. package/lib/components/DialogActions/index.js.map +1 -1
  22. package/lib/components/DialogActions/renderDialogActions.js +1 -3
  23. package/lib/components/DialogActions/renderDialogActions.js.map +1 -1
  24. package/lib/components/DialogActions/useDialogActions.js +5 -2
  25. package/lib/components/DialogActions/useDialogActions.js.map +1 -1
  26. package/lib/components/DialogActions/useDialogActionsStyles.js +7 -1
  27. package/lib/components/DialogActions/useDialogActionsStyles.js.map +1 -1
  28. package/lib/components/DialogBody/DialogBody.js.map +1 -1
  29. package/lib/components/DialogBody/DialogBody.types.js.map +1 -1
  30. package/lib/components/DialogBody/index.js.map +1 -1
  31. package/lib/components/DialogBody/renderDialogBody.js +1 -3
  32. package/lib/components/DialogBody/renderDialogBody.js.map +1 -1
  33. package/lib/components/DialogBody/useDialogBody.js +3 -2
  34. package/lib/components/DialogBody/useDialogBody.js.map +1 -1
  35. package/lib/components/DialogBody/useDialogBodyStyles.js +1 -2
  36. package/lib/components/DialogBody/useDialogBodyStyles.js.map +1 -1
  37. package/lib/components/DialogContent/DialogContent.js.map +1 -1
  38. package/lib/components/DialogContent/DialogContent.types.js.map +1 -1
  39. package/lib/components/DialogContent/index.js.map +1 -1
  40. package/lib/components/DialogContent/renderDialogContent.js +1 -3
  41. package/lib/components/DialogContent/renderDialogContent.js.map +1 -1
  42. package/lib/components/DialogContent/useDialogContent.js +3 -2
  43. package/lib/components/DialogContent/useDialogContent.js.map +1 -1
  44. package/lib/components/DialogContent/useDialogContentStyles.js.map +1 -1
  45. package/lib/components/DialogSurface/DialogSurface.js.map +1 -1
  46. package/lib/components/DialogSurface/DialogSurface.types.js.map +1 -1
  47. package/lib/components/DialogSurface/index.js.map +1 -1
  48. package/lib/components/DialogSurface/renderDialogSurface.js +2 -6
  49. package/lib/components/DialogSurface/renderDialogSurface.js.map +1 -1
  50. package/lib/components/DialogSurface/useDialogSurface.js +5 -4
  51. package/lib/components/DialogSurface/useDialogSurface.js.map +1 -1
  52. package/lib/components/DialogSurface/useDialogSurfaceContextValues.js.map +1 -1
  53. package/lib/components/DialogSurface/useDialogSurfaceStyles.js.map +1 -1
  54. package/lib/components/DialogTitle/DialogTitle.js.map +1 -1
  55. package/lib/components/DialogTitle/DialogTitle.types.js.map +1 -1
  56. package/lib/components/DialogTitle/index.js.map +1 -1
  57. package/lib/components/DialogTitle/renderDialogTitle.js +1 -5
  58. package/lib/components/DialogTitle/renderDialogTitle.js.map +1 -1
  59. package/lib/components/DialogTitle/useDialogTitle.js +2 -0
  60. package/lib/components/DialogTitle/useDialogTitle.js.map +1 -1
  61. package/lib/components/DialogTitle/useDialogTitleStyles.js.map +1 -1
  62. package/lib/components/DialogTrigger/DialogTrigger.js +1 -0
  63. package/lib/components/DialogTrigger/DialogTrigger.js.map +1 -1
  64. package/lib/components/DialogTrigger/DialogTrigger.types.js +1 -1
  65. package/lib/components/DialogTrigger/DialogTrigger.types.js.map +1 -1
  66. package/lib/components/DialogTrigger/index.js.map +1 -1
  67. package/lib/components/DialogTrigger/renderDialogTrigger.js +1 -2
  68. package/lib/components/DialogTrigger/renderDialogTrigger.js.map +1 -1
  69. package/lib/components/DialogTrigger/useDialogTrigger.js +3 -2
  70. package/lib/components/DialogTrigger/useDialogTrigger.js.map +1 -1
  71. package/lib/contexts/constants.js.map +1 -1
  72. package/lib/contexts/dialogContext.js +2 -2
  73. package/lib/contexts/dialogContext.js.map +1 -1
  74. package/lib/contexts/dialogSurfaceContext.js +2 -4
  75. package/lib/contexts/dialogSurfaceContext.js.map +1 -1
  76. package/lib/contexts/index.js.map +1 -1
  77. package/lib/index.js.map +1 -1
  78. package/lib/utils/index.js.map +1 -1
  79. package/lib/utils/isEscapeKeyDown.js +1 -0
  80. package/lib/utils/isEscapeKeyDown.js.map +1 -1
  81. package/lib/utils/useDisableBodyScroll.js +6 -5
  82. package/lib/utils/useDisableBodyScroll.js.map +1 -1
  83. package/lib/utils/useFocusFirstElement.js +4 -3
  84. package/lib/utils/useFocusFirstElement.js.map +1 -1
  85. package/lib-commonjs/Dialog.js +5 -4
  86. package/lib-commonjs/Dialog.js.map +1 -1
  87. package/lib-commonjs/DialogActions.js +5 -4
  88. package/lib-commonjs/DialogActions.js.map +1 -1
  89. package/lib-commonjs/DialogBody.js +5 -4
  90. package/lib-commonjs/DialogBody.js.map +1 -1
  91. package/lib-commonjs/DialogContent.js +5 -4
  92. package/lib-commonjs/DialogContent.js.map +1 -1
  93. package/lib-commonjs/DialogSurface.js +5 -4
  94. package/lib-commonjs/DialogSurface.js.map +1 -1
  95. package/lib-commonjs/DialogTitle.js +5 -4
  96. package/lib-commonjs/DialogTitle.js.map +1 -1
  97. package/lib-commonjs/DialogTrigger.js +5 -4
  98. package/lib-commonjs/DialogTrigger.js.map +1 -1
  99. package/lib-commonjs/components/Dialog/Dialog.js +16 -19
  100. package/lib-commonjs/components/Dialog/Dialog.js.map +1 -1
  101. package/lib-commonjs/components/Dialog/Dialog.types.js +3 -2
  102. package/lib-commonjs/components/Dialog/Dialog.types.js.map +1 -1
  103. package/lib-commonjs/components/Dialog/index.js +8 -7
  104. package/lib-commonjs/components/Dialog/index.js.map +1 -1
  105. package/lib-commonjs/components/Dialog/renderDialog.js +17 -20
  106. package/lib-commonjs/components/Dialog/renderDialog.js.map +1 -1
  107. package/lib-commonjs/components/Dialog/useDialog.js +78 -80
  108. package/lib-commonjs/components/Dialog/useDialog.js.map +1 -1
  109. package/lib-commonjs/components/Dialog/useDialogContextValues.js +25 -32
  110. package/lib-commonjs/components/Dialog/useDialogContextValues.js.map +1 -1
  111. package/lib-commonjs/components/DialogActions/DialogActions.js +19 -21
  112. package/lib-commonjs/components/DialogActions/DialogActions.js.map +1 -1
  113. package/lib-commonjs/components/DialogActions/DialogActions.types.js +3 -2
  114. package/lib-commonjs/components/DialogActions/DialogActions.types.js.map +1 -1
  115. package/lib-commonjs/components/DialogActions/index.js +9 -8
  116. package/lib-commonjs/components/DialogActions/index.js.map +1 -1
  117. package/lib-commonjs/components/DialogActions/renderDialogActions.js +14 -19
  118. package/lib-commonjs/components/DialogActions/renderDialogActions.js.map +1 -1
  119. package/lib-commonjs/components/DialogActions/useDialogActions.js +23 -29
  120. package/lib-commonjs/components/DialogActions/useDialogActions.js.map +1 -1
  121. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.js +81 -46
  122. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.js.map +1 -1
  123. package/lib-commonjs/components/DialogBody/DialogBody.js +19 -21
  124. package/lib-commonjs/components/DialogBody/DialogBody.js.map +1 -1
  125. package/lib-commonjs/components/DialogBody/DialogBody.types.js +3 -2
  126. package/lib-commonjs/components/DialogBody/DialogBody.types.js.map +1 -1
  127. package/lib-commonjs/components/DialogBody/index.js +9 -8
  128. package/lib-commonjs/components/DialogBody/index.js.map +1 -1
  129. package/lib-commonjs/components/DialogBody/renderDialogBody.js +14 -19
  130. package/lib-commonjs/components/DialogBody/renderDialogBody.js.map +1 -1
  131. package/lib-commonjs/components/DialogBody/useDialogBody.js +21 -26
  132. package/lib-commonjs/components/DialogBody/useDialogBody.js.map +1 -1
  133. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.js +74 -45
  134. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.js.map +1 -1
  135. package/lib-commonjs/components/DialogContent/DialogContent.js +19 -21
  136. package/lib-commonjs/components/DialogContent/DialogContent.js.map +1 -1
  137. package/lib-commonjs/components/DialogContent/DialogContent.types.js +3 -2
  138. package/lib-commonjs/components/DialogContent/DialogContent.types.js.map +1 -1
  139. package/lib-commonjs/components/DialogContent/index.js +9 -8
  140. package/lib-commonjs/components/DialogContent/index.js.map +1 -1
  141. package/lib-commonjs/components/DialogContent/renderDialogContent.js +13 -18
  142. package/lib-commonjs/components/DialogContent/renderDialogContent.js.map +1 -1
  143. package/lib-commonjs/components/DialogContent/useDialogContent.js +21 -26
  144. package/lib-commonjs/components/DialogContent/useDialogContent.js.map +1 -1
  145. package/lib-commonjs/components/DialogContent/useDialogContentStyles.js +51 -35
  146. package/lib-commonjs/components/DialogContent/useDialogContentStyles.js.map +1 -1
  147. package/lib-commonjs/components/DialogSurface/DialogSurface.js +21 -23
  148. package/lib-commonjs/components/DialogSurface/DialogSurface.js.map +1 -1
  149. package/lib-commonjs/components/DialogSurface/DialogSurface.types.js +3 -2
  150. package/lib-commonjs/components/DialogSurface/DialogSurface.types.js.map +1 -1
  151. package/lib-commonjs/components/DialogSurface/index.js +9 -8
  152. package/lib-commonjs/components/DialogSurface/index.js.map +1 -1
  153. package/lib-commonjs/components/DialogSurface/renderDialogSurface.js +17 -24
  154. package/lib-commonjs/components/DialogSurface/renderDialogSurface.js.map +1 -1
  155. package/lib-commonjs/components/DialogSurface/useDialogSurface.js +75 -85
  156. package/lib-commonjs/components/DialogSurface/useDialogSurface.js.map +1 -1
  157. package/lib-commonjs/components/DialogSurface/useDialogSurfaceContextValues.js +11 -9
  158. package/lib-commonjs/components/DialogSurface/useDialogSurfaceContextValues.js.map +1 -1
  159. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.js +309 -123
  160. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.js.map +1 -1
  161. package/lib-commonjs/components/DialogTitle/DialogTitle.js +19 -21
  162. package/lib-commonjs/components/DialogTitle/DialogTitle.js.map +1 -1
  163. package/lib-commonjs/components/DialogTitle/DialogTitle.types.js +3 -2
  164. package/lib-commonjs/components/DialogTitle/DialogTitle.types.js.map +1 -1
  165. package/lib-commonjs/components/DialogTitle/index.js +9 -8
  166. package/lib-commonjs/components/DialogTitle/index.js.map +1 -1
  167. package/lib-commonjs/components/DialogTitle/renderDialogTitle.js +13 -20
  168. package/lib-commonjs/components/DialogTitle/renderDialogTitle.js.map +1 -1
  169. package/lib-commonjs/components/DialogTitle/useDialogTitle.js +43 -51
  170. package/lib-commonjs/components/DialogTitle/useDialogTitle.js.map +1 -1
  171. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.js +225 -107
  172. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.js.map +1 -1
  173. package/lib-commonjs/components/DialogTrigger/DialogTrigger.js +15 -21
  174. package/lib-commonjs/components/DialogTrigger/DialogTrigger.js.map +1 -1
  175. package/lib-commonjs/components/DialogTrigger/DialogTrigger.types.js +5 -2
  176. package/lib-commonjs/components/DialogTrigger/DialogTrigger.types.js.map +1 -1
  177. package/lib-commonjs/components/DialogTrigger/index.js +8 -7
  178. package/lib-commonjs/components/DialogTrigger/index.js.map +1 -1
  179. package/lib-commonjs/components/DialogTrigger/renderDialogTrigger.js +10 -9
  180. package/lib-commonjs/components/DialogTrigger/renderDialogTrigger.js.map +1 -1
  181. package/lib-commonjs/components/DialogTrigger/useDialogTrigger.js +45 -53
  182. package/lib-commonjs/components/DialogTrigger/useDialogTrigger.js.map +1 -1
  183. package/lib-commonjs/contexts/constants.js +28 -12
  184. package/lib-commonjs/contexts/constants.js.map +1 -1
  185. package/lib-commonjs/contexts/dialogContext.js +28 -19
  186. package/lib-commonjs/contexts/dialogContext.js.map +1 -1
  187. package/lib-commonjs/contexts/dialogSurfaceContext.js +18 -11
  188. package/lib-commonjs/contexts/dialogSurfaceContext.js.map +1 -1
  189. package/lib-commonjs/contexts/index.js +7 -6
  190. package/lib-commonjs/contexts/index.js.map +1 -1
  191. package/lib-commonjs/index.js +50 -197
  192. package/lib-commonjs/index.js.map +1 -1
  193. package/lib-commonjs/utils/index.js +7 -6
  194. package/lib-commonjs/utils/index.js.map +1 -1
  195. package/lib-commonjs/utils/isEscapeKeyDown.js +11 -10
  196. package/lib-commonjs/utils/isEscapeKeyDown.js.map +1 -1
  197. package/lib-commonjs/utils/useDisableBodyScroll.js +45 -47
  198. package/lib-commonjs/utils/useDisableBodyScroll.js.map +1 -1
  199. package/lib-commonjs/utils/useFocusFirstElement.js +42 -37
  200. package/lib-commonjs/utils/useFocusFirstElement.js.map +1 -1
  201. package/package.json +14 -13
  202. package/lib-amd/Dialog.js +0 -6
  203. package/lib-amd/Dialog.js.map +0 -1
  204. package/lib-amd/DialogActions.js +0 -6
  205. package/lib-amd/DialogActions.js.map +0 -1
  206. package/lib-amd/DialogBody.js +0 -6
  207. package/lib-amd/DialogBody.js.map +0 -1
  208. package/lib-amd/DialogContent.js +0 -6
  209. package/lib-amd/DialogContent.js.map +0 -1
  210. package/lib-amd/DialogSurface.js +0 -6
  211. package/lib-amd/DialogSurface.js.map +0 -1
  212. package/lib-amd/DialogTitle.js +0 -6
  213. package/lib-amd/DialogTitle.js.map +0 -1
  214. package/lib-amd/DialogTrigger.js +0 -6
  215. package/lib-amd/DialogTrigger.js.map +0 -1
  216. package/lib-amd/components/Dialog/Dialog.js +0 -19
  217. package/lib-amd/components/Dialog/Dialog.js.map +0 -1
  218. package/lib-amd/components/Dialog/Dialog.types.js +0 -5
  219. package/lib-amd/components/Dialog/Dialog.types.js.map +0 -1
  220. package/lib-amd/components/Dialog/index.js +0 -9
  221. package/lib-amd/components/Dialog/index.js.map +0 -1
  222. package/lib-amd/components/Dialog/renderDialog.js +0 -17
  223. package/lib-amd/components/Dialog/renderDialog.js.map +0 -1
  224. package/lib-amd/components/Dialog/useDialog.js +0 -78
  225. package/lib-amd/components/Dialog/useDialog.js.map +0 -1
  226. package/lib-amd/components/Dialog/useDialogContextValues.js +0 -25
  227. package/lib-amd/components/Dialog/useDialogContextValues.js.map +0 -1
  228. package/lib-amd/components/DialogActions/DialogActions.js +0 -18
  229. package/lib-amd/components/DialogActions/DialogActions.js.map +0 -1
  230. package/lib-amd/components/DialogActions/DialogActions.types.js +0 -5
  231. package/lib-amd/components/DialogActions/DialogActions.types.js.map +0 -1
  232. package/lib-amd/components/DialogActions/index.js +0 -10
  233. package/lib-amd/components/DialogActions/index.js.map +0 -1
  234. package/lib-amd/components/DialogActions/renderDialogActions.js +0 -15
  235. package/lib-amd/components/DialogActions/renderDialogActions.js.map +0 -1
  236. package/lib-amd/components/DialogActions/useDialogActions.js +0 -26
  237. package/lib-amd/components/DialogActions/useDialogActions.js.map +0 -1
  238. package/lib-amd/components/DialogActions/useDialogActionsStyles.js +0 -27
  239. package/lib-amd/components/DialogActions/useDialogActionsStyles.js.map +0 -1
  240. package/lib-amd/components/DialogBody/DialogBody.js +0 -18
  241. package/lib-amd/components/DialogBody/DialogBody.js.map +0 -1
  242. package/lib-amd/components/DialogBody/DialogBody.types.js +0 -5
  243. package/lib-amd/components/DialogBody/DialogBody.types.js.map +0 -1
  244. package/lib-amd/components/DialogBody/index.js +0 -10
  245. package/lib-amd/components/DialogBody/index.js.map +0 -1
  246. package/lib-amd/components/DialogBody/renderDialogBody.js +0 -15
  247. package/lib-amd/components/DialogBody/renderDialogBody.js.map +0 -1
  248. package/lib-amd/components/DialogBody/useDialogBody.js +0 -25
  249. package/lib-amd/components/DialogBody/useDialogBody.js.map +0 -1
  250. package/lib-amd/components/DialogBody/useDialogBodyStyles.js +0 -31
  251. package/lib-amd/components/DialogBody/useDialogBodyStyles.js.map +0 -1
  252. package/lib-amd/components/DialogContent/DialogContent.js +0 -18
  253. package/lib-amd/components/DialogContent/DialogContent.js.map +0 -1
  254. package/lib-amd/components/DialogContent/DialogContent.types.js +0 -5
  255. package/lib-amd/components/DialogContent/DialogContent.types.js.map +0 -1
  256. package/lib-amd/components/DialogContent/index.js +0 -10
  257. package/lib-amd/components/DialogContent/index.js.map +0 -1
  258. package/lib-amd/components/DialogContent/renderDialogContent.js +0 -14
  259. package/lib-amd/components/DialogContent/renderDialogContent.js.map +0 -1
  260. package/lib-amd/components/DialogContent/useDialogContent.js +0 -25
  261. package/lib-amd/components/DialogContent/useDialogContent.js.map +0 -1
  262. package/lib-amd/components/DialogContent/useDialogContentStyles.js +0 -24
  263. package/lib-amd/components/DialogContent/useDialogContentStyles.js.map +0 -1
  264. package/lib-amd/components/DialogSurface/DialogSurface.js +0 -19
  265. package/lib-amd/components/DialogSurface/DialogSurface.js.map +0 -1
  266. package/lib-amd/components/DialogSurface/DialogSurface.types.js +0 -5
  267. package/lib-amd/components/DialogSurface/DialogSurface.types.js.map +0 -1
  268. package/lib-amd/components/DialogSurface/index.js +0 -10
  269. package/lib-amd/components/DialogSurface/index.js.map +0 -1
  270. package/lib-amd/components/DialogSurface/renderDialogSurface.js +0 -17
  271. package/lib-amd/components/DialogSurface/renderDialogSurface.js.map +0 -1
  272. package/lib-amd/components/DialogSurface/useDialogSurface.js +0 -70
  273. package/lib-amd/components/DialogSurface/useDialogSurface.js.map +0 -1
  274. package/lib-amd/components/DialogSurface/useDialogSurfaceContextValues.js +0 -11
  275. package/lib-amd/components/DialogSurface/useDialogSurfaceContextValues.js.map +0 -1
  276. package/lib-amd/components/DialogSurface/useDialogSurfaceStyles.js +0 -44
  277. package/lib-amd/components/DialogSurface/useDialogSurfaceStyles.js.map +0 -1
  278. package/lib-amd/components/DialogTitle/DialogTitle.js +0 -18
  279. package/lib-amd/components/DialogTitle/DialogTitle.js.map +0 -1
  280. package/lib-amd/components/DialogTitle/DialogTitle.types.js +0 -5
  281. package/lib-amd/components/DialogTitle/DialogTitle.types.js.map +0 -1
  282. package/lib-amd/components/DialogTitle/index.js +0 -10
  283. package/lib-amd/components/DialogTitle/index.js.map +0 -1
  284. package/lib-amd/components/DialogTitle/renderDialogTitle.js +0 -16
  285. package/lib-amd/components/DialogTitle/renderDialogTitle.js.map +0 -1
  286. package/lib-amd/components/DialogTitle/useDialogTitle.js +0 -36
  287. package/lib-amd/components/DialogTitle/useDialogTitle.js.map +0 -1
  288. package/lib-amd/components/DialogTitle/useDialogTitleStyles.js +0 -37
  289. package/lib-amd/components/DialogTitle/useDialogTitleStyles.js.map +0 -1
  290. package/lib-amd/components/DialogTrigger/DialogTrigger.js +0 -24
  291. package/lib-amd/components/DialogTrigger/DialogTrigger.js.map +0 -1
  292. package/lib-amd/components/DialogTrigger/DialogTrigger.types.js +0 -5
  293. package/lib-amd/components/DialogTrigger/DialogTrigger.types.js.map +0 -1
  294. package/lib-amd/components/DialogTrigger/index.js +0 -9
  295. package/lib-amd/components/DialogTrigger/index.js.map +0 -1
  296. package/lib-amd/components/DialogTrigger/renderDialogTrigger.js +0 -13
  297. package/lib-amd/components/DialogTrigger/renderDialogTrigger.js.map +0 -1
  298. package/lib-amd/components/DialogTrigger/useDialogTrigger.js +0 -37
  299. package/lib-amd/components/DialogTrigger/useDialogTrigger.js.map +0 -1
  300. package/lib-amd/contexts/constants.js +0 -15
  301. package/lib-amd/contexts/constants.js.map +0 -1
  302. package/lib-amd/contexts/dialogContext.js +0 -26
  303. package/lib-amd/contexts/dialogContext.js.map +0 -1
  304. package/lib-amd/contexts/dialogSurfaceContext.js +0 -11
  305. package/lib-amd/contexts/dialogSurfaceContext.js.map +0 -1
  306. package/lib-amd/contexts/index.js +0 -8
  307. package/lib-amd/contexts/index.js.map +0 -1
  308. package/lib-amd/index.js +0 -37
  309. package/lib-amd/index.js.map +0 -1
  310. package/lib-amd/utils/index.js +0 -8
  311. package/lib-amd/utils/index.js.map +0 -1
  312. package/lib-amd/utils/isEscapeKeyDown.js +0 -13
  313. package/lib-amd/utils/isEscapeKeyDown.js.map +0 -1
  314. package/lib-amd/utils/useDisableBodyScroll.js +0 -52
  315. package/lib-amd/utils/useDisableBodyScroll.js.map +0 -1
  316. package/lib-amd/utils/useFocusFirstElement.js +0 -38
  317. package/lib-amd/utils/useFocusFirstElement.js.map +0 -1
@@ -1,53 +1,88 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ dialogActionsClassNames: ()=>dialogActionsClassNames,
13
+ useDialogActionsStyles_unstable: ()=>useDialogActionsStyles_unstable
5
14
  });
6
- exports.useDialogActionsStyles_unstable = exports.dialogActionsClassNames = void 0;
7
- const react_1 = /*#__PURE__*/require("@griffel/react");
8
- const constants_1 = /*#__PURE__*/require("../../contexts/constants");
9
- exports.dialogActionsClassNames = {
10
- root: 'fui-DialogActions'
15
+ const _react = require("@griffel/react");
16
+ const dialogActionsClassNames = {
17
+ root: 'fui-DialogActions'
11
18
  };
12
- const useStyles = /*#__PURE__*/react_1.__styles({
13
- root: {
14
- Bqenvij: "f3052tw",
15
- B7ck84d: "f1ewtqcl",
16
- mc9l5x: "f22iagw",
17
- i8kkvl: "f4px1ci",
18
- Belr9w4: "fn67r4l",
19
- Bmdcpmo: "f6glcwc",
20
- th9wkt: "f1e3st1r"
21
- },
22
- gridPositionEnd: {
23
- Bdqf98w: "f1a7i8kp",
24
- Ijaq50: "f11u0jfc",
25
- Br312pm: "f1d6tb1o",
26
- nk6f5a: "f23awfp",
27
- Bw0ie65: "fiappcv"
28
- },
29
- gridPositionStart: {
30
- Bdqf98w: "fsxvdwy",
31
- Ijaq50: "f1vnb230",
32
- Br312pm: "f14781pt",
33
- nk6f5a: "f13d374e",
34
- Bw0ie65: "f1fjo411"
35
- }
19
+ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
20
+ root: {
21
+ Bqenvij: "f3052tw",
22
+ B7ck84d: "f1ewtqcl",
23
+ mc9l5x: "f22iagw",
24
+ i8kkvl: "f4px1ci",
25
+ Belr9w4: "fn67r4l",
26
+ Bmdcpmo: "f6glcwc",
27
+ th9wkt: "f1e3st1r"
28
+ },
29
+ gridPositionEnd: {
30
+ Bdqf98w: "f1a7i8kp",
31
+ Ijaq50: "f11u0jfc",
32
+ Br312pm: "f1d6tb1o",
33
+ nk6f5a: "f23awfp",
34
+ Bw0ie65: "fiappcv"
35
+ },
36
+ gridPositionStart: {
37
+ Bdqf98w: "fsxvdwy",
38
+ Ijaq50: "f1vnb230",
39
+ Br312pm: "f14781pt",
40
+ nk6f5a: "f13d374e",
41
+ Bw0ie65: "f1fjo411"
42
+ },
43
+ fluidStart: {
44
+ Bw0ie65: "fiappcv"
45
+ },
46
+ fluidEnd: {
47
+ Br312pm: "f14781pt"
48
+ }
36
49
  }, {
37
- d: [".f3052tw{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;}", ".f1ewtqcl{box-sizing:border-box;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f4px1ci{-webkit-column-gap:8px;column-gap:8px;}", ".fn67r4l{row-gap:8px;}", ".f1a7i8kp{justify-self:end;}", ".f11u0jfc{grid-row-start:actions-end;}", ".f1d6tb1o{grid-column-start:actions-end;}", ".f23awfp{grid-row-end:actions-end;}", ".fiappcv{grid-column-end:actions-end;}", ".fsxvdwy{justify-self:start;}", ".f1vnb230{grid-row-start:actions-start;}", ".f14781pt{grid-column-start:actions-start;}", ".f13d374e{grid-row-end:actions-start;}", ".f1fjo411{grid-column-end:actions-start;}"],
38
- m: [["@media screen and (max-width: 480px){.f6glcwc{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}", {
39
- m: "screen and (max-width: 480px)"
40
- }], ["@media screen and (max-width: 480px){.f1e3st1r{justify-self:stretch;}}", {
41
- m: "screen and (max-width: 480px)"
42
- }]]
50
+ d: [
51
+ ".f3052tw{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;}",
52
+ ".f1ewtqcl{box-sizing:border-box;}",
53
+ ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}",
54
+ ".f4px1ci{-webkit-column-gap:8px;column-gap:8px;}",
55
+ ".fn67r4l{row-gap:8px;}",
56
+ ".f1a7i8kp{justify-self:end;}",
57
+ ".f11u0jfc{grid-row-start:actions-end;}",
58
+ ".f1d6tb1o{grid-column-start:actions-end;}",
59
+ ".f23awfp{grid-row-end:actions-end;}",
60
+ ".fiappcv{grid-column-end:actions-end;}",
61
+ ".fsxvdwy{justify-self:start;}",
62
+ ".f1vnb230{grid-row-start:actions-start;}",
63
+ ".f14781pt{grid-column-start:actions-start;}",
64
+ ".f13d374e{grid-row-end:actions-start;}",
65
+ ".f1fjo411{grid-column-end:actions-start;}"
66
+ ],
67
+ m: [
68
+ [
69
+ "@media screen and (max-width: 480px){.f6glcwc{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}",
70
+ {
71
+ m: "screen and (max-width: 480px)"
72
+ }
73
+ ],
74
+ [
75
+ "@media screen and (max-width: 480px){.f1e3st1r{justify-self:stretch;}}",
76
+ {
77
+ m: "screen and (max-width: 480px)"
78
+ }
79
+ ]
80
+ ]
43
81
  });
44
- /**
45
- * Apply styling to the DialogActions slots based on the state
46
- */
47
- const useDialogActionsStyles_unstable = state => {
48
- const styles = useStyles();
49
- state.root.className = react_1.mergeClasses(exports.dialogActionsClassNames.root, styles.root, state.position === 'start' && styles.gridPositionStart, state.position === 'end' && styles.gridPositionEnd, state.root.className);
50
- return state;
51
- };
52
- exports.useDialogActionsStyles_unstable = useDialogActionsStyles_unstable;
82
+ const useDialogActionsStyles_unstable = (state)=>{
83
+ const styles = useStyles();
84
+ state.root.className = (0, _react.mergeClasses)(dialogActionsClassNames.root, styles.root, state.position === 'start' && styles.gridPositionStart, state.position === 'end' && styles.gridPositionEnd, state.fluid && state.position === 'start' && styles.fluidStart, state.fluid && state.position === 'end' && styles.fluidEnd, state.root.className);
85
+ return state;
86
+ }; //# sourceMappingURL=useDialogActionsStyles.js.map
87
+
53
88
  //# sourceMappingURL=useDialogActionsStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_1","require","constants_1","exports","dialogActionsClassNames","root","useStyles","__styles","Bqenvij","B7ck84d","mc9l5x","i8kkvl","Belr9w4","Bmdcpmo","th9wkt","gridPositionEnd","Bdqf98w","Ijaq50","Br312pm","nk6f5a","Bw0ie65","gridPositionStart","d","m","useDialogActionsStyles_unstable","state","styles","className","mergeClasses","position"],"sources":["../src/packages/react-components/react-dialog/src/components/DialogActions/useDialogActionsStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type { DialogActionsSlots, DialogActionsState } from './DialogActions.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport {\n DIALOG_GAP,\n ACTIONS_END_GRID_AREA,\n ACTIONS_START_GRID_AREA,\n MEDIA_QUERY_BREAKPOINT_SELECTOR,\n} from '../../contexts/constants';\n\nexport const dialogActionsClassNames: SlotClassNames<DialogActionsSlots> = {\n root: 'fui-DialogActions',\n};\n\nconst useStyles = makeStyles({\n root: {\n height: 'fit-content',\n boxSizing: 'border-box',\n display: 'flex',\n ...shorthands.gap(DIALOG_GAP),\n [MEDIA_QUERY_BREAKPOINT_SELECTOR]: {\n flexDirection: 'column',\n justifySelf: 'stretch',\n },\n },\n gridPositionEnd: {\n justifySelf: 'end',\n ...shorthands.gridArea(ACTIONS_END_GRID_AREA),\n },\n gridPositionStart: {\n justifySelf: 'start',\n ...shorthands.gridArea(ACTIONS_START_GRID_AREA),\n },\n});\n\n/**\n * Apply styling to the DialogActions slots based on the state\n */\nexport const useDialogActionsStyles_unstable = (state: DialogActionsState): DialogActionsState => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n dialogActionsClassNames.root,\n styles.root,\n state.position === 'start' && styles.gridPositionStart,\n state.position === 'end' && styles.gridPositionEnd,\n state.root.className,\n );\n return state;\n};\n"],"mappings":";;;;;;AAAA,MAAAA,OAAA,gBAAAC,OAAA;AAGA,MAAAC,WAAA,gBAAAD,OAAA;AAOaE,OAAA,CAAAC,uBAAuB,GAAuC;EACzEC,IAAI,EAAE;CACP;AAED,MAAMC,SAAS,gBAAGN,OAAA,CAAAO,QAAU;EAAAF,IAAA;IAAAG,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;EAAA;EAAAC,eAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;EAAAC,iBAAA;IAAAL,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;EAAA;AAAA;EAAAE,CAAA;EAAAC,CAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,EAmB1B;AAEF;;;AAGO,MAAMC,+BAA+B,GAAIC,KAAyB,IAAwB;EAC/F,MAAMC,MAAM,GAAGpB,SAAS,EAAE;EAC1BmB,KAAK,CAACpB,IAAI,CAACsB,SAAS,GAAG3B,OAAA,CAAA4B,YAAY,CACjCzB,OAAA,CAAAC,uBAAuB,CAACC,IAAI,EAC5BqB,MAAM,CAACrB,IAAI,EACXoB,KAAK,CAACI,QAAQ,KAAK,OAAO,IAAIH,MAAM,CAACL,iBAAiB,EACtDI,KAAK,CAACI,QAAQ,KAAK,KAAK,IAAIH,MAAM,CAACX,eAAe,EAClDU,KAAK,CAACpB,IAAI,CAACsB,SAAS,CACrB;EACD,OAAOF,KAAK;AACd,CAAC;AAVYtB,OAAA,CAAAqB,+BAA+B,GAAAA,+BAAA"}
1
+ {"version":3,"sources":["../../../lib/components/DialogActions/useDialogActionsStyles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { DIALOG_GAP, ACTIONS_END_GRID_AREA, ACTIONS_START_GRID_AREA, MEDIA_QUERY_BREAKPOINT_SELECTOR } from '../../contexts/constants';\nexport const dialogActionsClassNames = {\n root: 'fui-DialogActions'\n};\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n Bqenvij: \"f3052tw\",\n B7ck84d: \"f1ewtqcl\",\n mc9l5x: \"f22iagw\",\n i8kkvl: \"f4px1ci\",\n Belr9w4: \"fn67r4l\",\n Bmdcpmo: \"f6glcwc\",\n th9wkt: \"f1e3st1r\"\n },\n gridPositionEnd: {\n Bdqf98w: \"f1a7i8kp\",\n Ijaq50: \"f11u0jfc\",\n Br312pm: \"f1d6tb1o\",\n nk6f5a: \"f23awfp\",\n Bw0ie65: \"fiappcv\"\n },\n gridPositionStart: {\n Bdqf98w: \"fsxvdwy\",\n Ijaq50: \"f1vnb230\",\n Br312pm: \"f14781pt\",\n nk6f5a: \"f13d374e\",\n Bw0ie65: \"f1fjo411\"\n },\n fluidStart: {\n Bw0ie65: \"fiappcv\"\n },\n fluidEnd: {\n Br312pm: \"f14781pt\"\n }\n}, {\n d: [\".f3052tw{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;}\", \".f1ewtqcl{box-sizing:border-box;}\", \".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}\", \".f4px1ci{-webkit-column-gap:8px;column-gap:8px;}\", \".fn67r4l{row-gap:8px;}\", \".f1a7i8kp{justify-self:end;}\", \".f11u0jfc{grid-row-start:actions-end;}\", \".f1d6tb1o{grid-column-start:actions-end;}\", \".f23awfp{grid-row-end:actions-end;}\", \".fiappcv{grid-column-end:actions-end;}\", \".fsxvdwy{justify-self:start;}\", \".f1vnb230{grid-row-start:actions-start;}\", \".f14781pt{grid-column-start:actions-start;}\", \".f13d374e{grid-row-end:actions-start;}\", \".f1fjo411{grid-column-end:actions-start;}\"],\n m: [[\"@media screen and (max-width: 480px){.f6glcwc{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}\", {\n m: \"screen and (max-width: 480px)\"\n }], [\"@media screen and (max-width: 480px){.f1e3st1r{justify-self:stretch;}}\", {\n m: \"screen and (max-width: 480px)\"\n }]]\n});\n/**\n * Apply styling to the DialogActions slots based on the state\n */\nexport const useDialogActionsStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(dialogActionsClassNames.root, styles.root, state.position === 'start' && styles.gridPositionStart, state.position === 'end' && styles.gridPositionEnd, state.fluid && state.position === 'start' && styles.fluidStart, state.fluid && state.position === 'end' && styles.fluidEnd, state.root.className);\n return state;\n};\n//# sourceMappingURL=useDialogActionsStyles.js.map"],"names":["dialogActionsClassNames","useDialogActionsStyles_unstable","root","useStyles","__styles","Bqenvij","B7ck84d","mc9l5x","i8kkvl","Belr9w4","Bmdcpmo","th9wkt","gridPositionEnd","Bdqf98w","Ijaq50","Br312pm","nk6f5a","Bw0ie65","gridPositionStart","fluidStart","fluidEnd","d","m","state","styles","className","mergeClasses","position","fluid"],"mappings":";;;;;;;;;;;IAEaA,uBAAuB,MAAvBA;IA4CAC,+BAA+B,MAA/BA;;uBA9CsC;AAE5C,MAAMD,0BAA0B;IACrCE,MAAM;AACR;AACA,MAAMC,YAAY,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IACtCF,MAAM;QACJG,SAAS;QACTC,SAAS;QACTC,QAAQ;QACRC,QAAQ;QACRC,SAAS;QACTC,SAAS;QACTC,QAAQ;IACV;IACAC,iBAAiB;QACfC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC,QAAQ;QACRC,SAAS;IACX;IACAC,mBAAmB;QACjBL,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC,QAAQ;QACRC,SAAS;IACX;IACAE,YAAY;QACVF,SAAS;IACX;IACAG,UAAU;QACRL,SAAS;IACX;AACF,GAAG;IACDM,GAAG;QAAC;QAAoF;QAAqC;QAAwF;QAAoD;QAA0B;QAAgC;QAA0C;QAA6C;QAAuC;QAA0C;QAAiC;QAA4C;QAA+C;QAA0C;KAA4C;IAC7rBC,GAAG;QAAC;YAAC;YAAkI;gBACrIA,GAAG;YACL;SAAE;QAAE;YAAC;YAA0E;gBAC7EA,GAAG;YACL;SAAE;KAAC;AACL;AAIO,MAAMrB,kCAAkCsB,CAAAA,QAAS;IACtD,MAAMC,SAASrB;IACfoB,MAAMrB,IAAI,CAACuB,SAAS,GAAGC,IAAAA,mBAAY,EAAC1B,wBAAwBE,IAAI,EAAEsB,OAAOtB,IAAI,EAAEqB,MAAMI,QAAQ,KAAK,WAAWH,OAAON,iBAAiB,EAAEK,MAAMI,QAAQ,KAAK,SAASH,OAAOZ,eAAe,EAAEW,MAAMK,KAAK,IAAIL,MAAMI,QAAQ,KAAK,WAAWH,OAAOL,UAAU,EAAEI,MAAMK,KAAK,IAAIL,MAAMI,QAAQ,KAAK,SAASH,OAAOJ,QAAQ,EAAEG,MAAMrB,IAAI,CAACuB,SAAS;IAC3U,OAAOF;AACT,GACA,kDAAkD"}
@@ -1,26 +1,24 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "DialogBody", {
6
+ enumerable: true,
7
+ get: ()=>DialogBody
5
8
  });
6
- exports.DialogBody = void 0;
7
- const React = /*#__PURE__*/require("react");
8
- const useDialogBody_1 = /*#__PURE__*/require("./useDialogBody");
9
- const renderDialogBody_1 = /*#__PURE__*/require("./renderDialogBody");
10
- const useDialogBodyStyles_1 = /*#__PURE__*/require("./useDialogBodyStyles");
11
- const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
12
- /**
13
- * The `DialogBody` is a container where the content of the dialog is rendered.
14
- * Apart from styling, this component does not have other behavior.
15
- */
16
- exports.DialogBody = /*#__PURE__*/React.forwardRef((props, ref) => {
17
- const state = useDialogBody_1.useDialogBody_unstable(props, ref);
18
- useDialogBodyStyles_1.useDialogBodyStyles_unstable(state);
19
- const {
20
- useDialogBodyStyles_unstable: useCustomStyles
21
- } = react_shared_contexts_1.useCustomStyleHooks_unstable();
22
- useCustomStyles(state);
23
- return renderDialogBody_1.renderDialogBody_unstable(state);
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _useDialogBody = require("./useDialogBody");
12
+ const _renderDialogBody = require("./renderDialogBody");
13
+ const _useDialogBodyStyles = require("./useDialogBodyStyles");
14
+ const _reactSharedContexts = require("@fluentui/react-shared-contexts");
15
+ const DialogBody = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
16
+ const state = (0, _useDialogBody.useDialogBody_unstable)(props, ref);
17
+ (0, _useDialogBodyStyles.useDialogBodyStyles_unstable)(state);
18
+ const { useDialogBodyStyles_unstable: useCustomStyles } = (0, _reactSharedContexts.useCustomStyleHooks_unstable)();
19
+ useCustomStyles(state);
20
+ return (0, _renderDialogBody.renderDialogBody_unstable)(state);
24
21
  });
25
- exports.DialogBody.displayName = 'DialogBody';
22
+ DialogBody.displayName = 'DialogBody'; //# sourceMappingURL=DialogBody.js.map
23
+
26
24
  //# sourceMappingURL=DialogBody.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","require","useDialogBody_1","renderDialogBody_1","useDialogBodyStyles_1","react_shared_contexts_1","exports","DialogBody","forwardRef","props","ref","state","useDialogBody_unstable","useDialogBodyStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderDialogBody_unstable","displayName"],"sources":["../src/packages/react-components/react-dialog/src/components/DialogBody/DialogBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDialogBody_unstable } from './useDialogBody';\nimport { renderDialogBody_unstable } from './renderDialogBody';\nimport { useDialogBodyStyles_unstable } from './useDialogBodyStyles';\nimport type { DialogBodyProps } from './DialogBody.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * The `DialogBody` is a container where the content of the dialog is rendered.\n * Apart from styling, this component does not have other behavior.\n */\nexport const DialogBody: ForwardRefComponent<DialogBodyProps> = React.forwardRef((props, ref) => {\n const state = useDialogBody_unstable(props, ref);\n\n useDialogBodyStyles_unstable(state);\n\n const { useDialogBodyStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDialogBody_unstable(state);\n});\n\nDialogBody.displayName = 'DialogBody';\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,eAAA,gBAAAD,OAAA;AACA,MAAAE,kBAAA,gBAAAF,OAAA;AACA,MAAAG,qBAAA,gBAAAH,OAAA;AAGA,MAAAI,uBAAA,gBAAAJ,OAAA;AAEA;;;;AAIaK,OAAA,CAAAC,UAAU,gBAAyCP,KAAK,CAACQ,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC9F,MAAMC,KAAK,GAAGT,eAAA,CAAAU,sBAAsB,CAACH,KAAK,EAAEC,GAAG,CAAC;EAEhDN,qBAAA,CAAAS,4BAA4B,CAACF,KAAK,CAAC;EAEnC,MAAM;IAAEE,4BAA4B,EAAEC;EAAe,CAAE,GAAGT,uBAAA,CAAAU,4BAA4B,EAAE;EACxFD,eAAe,CAACH,KAAK,CAAC;EAEtB,OAAOR,kBAAA,CAAAa,yBAAyB,CAACL,KAAK,CAAC;AACzC,CAAC,CAAC;AAEFL,OAAA,CAAAC,UAAU,CAACU,WAAW,GAAG,YAAY"}
1
+ {"version":3,"sources":["../../../lib/components/DialogBody/DialogBody.js"],"sourcesContent":["import * as React from 'react';\nimport { useDialogBody_unstable } from './useDialogBody';\nimport { renderDialogBody_unstable } from './renderDialogBody';\nimport { useDialogBodyStyles_unstable } from './useDialogBodyStyles';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n/**\n * The `DialogBody` is a container where the content of the dialog is rendered.\n * Apart from styling, this component does not have other behavior.\n */\nexport const DialogBody = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useDialogBody_unstable(props, ref);\n useDialogBodyStyles_unstable(state);\n const {\n useDialogBodyStyles_unstable: useCustomStyles\n } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n return renderDialogBody_unstable(state);\n});\nDialogBody.displayName = 'DialogBody';\n//# sourceMappingURL=DialogBody.js.map"],"names":["DialogBody","React","forwardRef","props","ref","state","useDialogBody_unstable","useDialogBodyStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderDialogBody_unstable","displayName"],"mappings":";;;;+BASaA;;aAAAA;;;6DATU;+BACgB;kCACG;qCACG;qCACA;AAKtC,MAAMA,aAAa,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACtE,MAAMC,QAAQC,IAAAA,qCAAsB,EAACH,OAAOC;IAC5CG,IAAAA,iDAA4B,EAACF;IAC7B,MAAM,EACJE,8BAA8BC,gBAAe,EAC9C,GAAGC,IAAAA,iDAA4B;IAChCD,gBAAgBH;IAChB,OAAOK,IAAAA,2CAAyB,EAACL;AACnC;AACAL,WAAWW,WAAW,GAAG,cACzB,sCAAsC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
5
+ //# sourceMappingURL=DialogBody.types.js.map
6
+
6
7
  //# sourceMappingURL=DialogBody.types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../src/packages/react-components/react-dialog/src/components/DialogBody/DialogBody.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type DialogBodySlots = {\n root: Slot<'div'>;\n};\n\n/**\n * DialogBody Props\n */\nexport type DialogBodyProps = ComponentProps<DialogBodySlots> & {};\n\n/**\n * State used in rendering DialogBody\n */\nexport type DialogBodyState = ComponentState<DialogBodySlots>;\n"],"mappings":""}
1
+ {"version":3,"sources":["../../../lib/components/DialogBody/DialogBody.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=DialogBody.types.js.map"],"names":[],"mappings":";;;;CACA,4CAA4C"}
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- const tslib_1 = /*#__PURE__*/require("tslib");
7
- tslib_1.__exportStar(require("./DialogBody"), exports);
8
- tslib_1.__exportStar(require("./DialogBody.types"), exports);
9
- tslib_1.__exportStar(require("./renderDialogBody"), exports);
10
- tslib_1.__exportStar(require("./useDialogBody"), exports);
11
- tslib_1.__exportStar(require("./useDialogBodyStyles"), exports);
5
+ const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
+ _exportStar(require("./DialogBody"), exports);
7
+ _exportStar(require("./DialogBody.types"), exports);
8
+ _exportStar(require("./renderDialogBody"), exports);
9
+ _exportStar(require("./useDialogBody"), exports);
10
+ _exportStar(require("./useDialogBodyStyles"), exports);
11
+ //# sourceMappingURL=index.js.map
12
+
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["tslib_1","__exportStar","require","exports"],"sources":["../src/packages/react-components/react-dialog/src/components/DialogBody/index.ts"],"sourcesContent":["export * from './DialogBody';\nexport * from './DialogBody.types';\nexport * from './renderDialogBody';\nexport * from './useDialogBody';\nexport * from './useDialogBodyStyles';\n"],"mappings":";;;;;;AAAAA,OAAA,CAAAC,YAAA,CAAAC,OAAA,kBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,wBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,wBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,qBAAAC,OAAA;AACAH,OAAA,CAAAC,YAAA,CAAAC,OAAA,2BAAAC,OAAA"}
1
+ {"version":3,"sources":["../../../lib/components/DialogBody/index.js"],"sourcesContent":["export * from './DialogBody';\nexport * from './DialogBody.types';\nexport * from './renderDialogBody';\nexport * from './useDialogBody';\nexport * from './useDialogBodyStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA;CACd,iCAAiC"}
@@ -1,23 +1,18 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderDialogBody_unstable", {
6
+ enumerable: true,
7
+ get: ()=>renderDialogBody_unstable
5
8
  });
6
- exports.renderDialogBody_unstable = void 0;
7
- const React = /*#__PURE__*/require("react");
8
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
- /**
10
- * Render the final JSX of DialogBody
11
- */
12
- const renderDialogBody_unstable = state => {
13
- const {
14
- slots,
15
- slotProps
16
- } = react_utilities_1.getSlots(state);
17
- // TODO Add additional slots in the appropriate place
18
- return React.createElement(slots.root, {
19
- ...slotProps.root
20
- });
21
- };
22
- exports.renderDialogBody_unstable = renderDialogBody_unstable;
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactUtilities = require("@fluentui/react-utilities");
12
+ const renderDialogBody_unstable = (state)=>{
13
+ const { slots , slotProps } = (0, _reactUtilities.getSlots)(state);
14
+ // TODO Add additional slots in the appropriate place
15
+ return /*#__PURE__*/ _react.createElement(slots.root, slotProps.root);
16
+ }; //# sourceMappingURL=renderDialogBody.js.map
17
+
23
18
  //# sourceMappingURL=renderDialogBody.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","require","react_utilities_1","renderDialogBody_unstable","state","slots","slotProps","getSlots","createElement","root","exports"],"sources":["../src/packages/react-components/react-dialog/src/components/DialogBody/renderDialogBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { DialogBodyState, DialogBodySlots } from './DialogBody.types';\n\n/**\n * Render the final JSX of DialogBody\n */\nexport const renderDialogBody_unstable = (state: DialogBodyState) => {\n const { slots, slotProps } = getSlots<DialogBodySlots>(state);\n\n // TODO Add additional slots in the appropriate place\n return <slots.root {...slotProps.root} />;\n};\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,iBAAA,gBAAAD,OAAA;AAGA;;;AAGO,MAAME,yBAAyB,GAAIC,KAAsB,IAAI;EAClE,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,iBAAA,CAAAK,QAAQ,CAAkBH,KAAK,CAAC;EAE7D;EACA,OAAOJ,KAAA,CAAAQ,aAAA,CAACH,KAAK,CAACI,IAAI;IAAA,GAAKH,SAAS,CAACG;EAAI,EAAI;AAC3C,CAAC;AALYC,OAAA,CAAAP,yBAAyB,GAAAA,yBAAA"}
1
+ {"version":3,"sources":["../../../lib/components/DialogBody/renderDialogBody.js"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of DialogBody\n */\nexport const renderDialogBody_unstable = state => {\n const {\n slots,\n slotProps\n } = getSlots(state);\n // TODO Add additional slots in the appropriate place\n return /*#__PURE__*/React.createElement(slots.root, slotProps.root);\n};\n//# sourceMappingURL=renderDialogBody.js.map"],"names":["renderDialogBody_unstable","state","slots","slotProps","getSlots","React","createElement","root"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;gCACE;AAIlB,MAAMA,4BAA4BC,CAAAA,QAAS;IAChD,MAAM,EACJC,MAAK,EACLC,UAAS,EACV,GAAGC,IAAAA,wBAAQ,EAACH;IACb,qDAAqD;IACrD,OAAO,WAAW,GAAEI,OAAMC,aAAa,CAACJ,MAAMK,IAAI,EAAEJ,UAAUI,IAAI;AACpE,GACA,4CAA4C"}
@@ -1,30 +1,25 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useDialogBody_unstable", {
6
+ enumerable: true,
7
+ get: ()=>useDialogBody_unstable
5
8
  });
6
- exports.useDialogBody_unstable = void 0;
7
- const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
8
- /**
9
- * Create the state required to render DialogBody.
10
- *
11
- * The returned state can be modified with hooks such as useDialogBodyStyles_unstable,
12
- * before being passed to renderDialogBody_unstable.
13
- *
14
- * @param props - props from this instance of DialogBody
15
- * @param ref - reference to root HTMLElement of DialogBody
16
- */
17
- const useDialogBody_unstable = (props, ref) => {
18
- var _a;
19
- return {
20
- components: {
21
- root: 'div'
22
- },
23
- root: react_utilities_1.getNativeElementProps((_a = props.as) !== null && _a !== void 0 ? _a : 'div', {
24
- ref,
25
- ...props
26
- })
27
- };
28
- };
29
- exports.useDialogBody_unstable = useDialogBody_unstable;
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _reactUtilities = require("@fluentui/react-utilities");
12
+ const useDialogBody_unstable = (props, ref)=>{
13
+ var _props_as;
14
+ return {
15
+ components: {
16
+ root: 'div'
17
+ },
18
+ root: (0, _reactUtilities.getNativeElementProps)((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'div', {
19
+ ref,
20
+ ...props
21
+ })
22
+ };
23
+ }; //# sourceMappingURL=useDialogBody.js.map
24
+
30
25
  //# sourceMappingURL=useDialogBody.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_utilities_1","require","useDialogBody_unstable","props","ref","components","root","getNativeElementProps","_a","as","exports"],"sources":["../src/packages/react-components/react-dialog/src/components/DialogBody/useDialogBody.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { DialogBodyProps, DialogBodyState } from './DialogBody.types';\n\n/**\n * Create the state required to render DialogBody.\n *\n * The returned state can be modified with hooks such as useDialogBodyStyles_unstable,\n * before being passed to renderDialogBody_unstable.\n *\n * @param props - props from this instance of DialogBody\n * @param ref - reference to root HTMLElement of DialogBody\n */\nexport const useDialogBody_unstable = (props: DialogBodyProps, ref: React.Ref<HTMLElement>): DialogBodyState => {\n return {\n components: {\n root: 'div',\n },\n root: getNativeElementProps(props.as ?? 'div', {\n ref,\n ...props,\n }),\n };\n};\n"],"mappings":";;;;;;AACA,MAAAA,iBAAA,gBAAAC,OAAA;AAGA;;;;;;;;;AASO,MAAMC,sBAAsB,GAAGA,CAACC,KAAsB,EAAEC,GAA2B,KAAqB;;EAC7G,OAAO;IACLC,UAAU,EAAE;MACVC,IAAI,EAAE;KACP;IACDA,IAAI,EAAEN,iBAAA,CAAAO,qBAAqB,CAAC,CAAAC,EAAA,GAAAL,KAAK,CAACM,EAAE,cAAAD,EAAA,cAAAA,EAAA,GAAI,KAAK,EAAE;MAC7CJ,GAAG;MACH,GAAGD;KACJ;GACF;AACH,CAAC;AAVYO,OAAA,CAAAR,sBAAsB,GAAAA,sBAAA"}
1
+ {"version":3,"sources":["../../../lib/components/DialogBody/useDialogBody.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\n/**\n * Create the state required to render DialogBody.\n *\n * The returned state can be modified with hooks such as useDialogBodyStyles_unstable,\n * before being passed to renderDialogBody_unstable.\n *\n * @param props - props from this instance of DialogBody\n * @param ref - reference to root HTMLElement of DialogBody\n */\nexport const useDialogBody_unstable = (props, ref) => {\n var _props_as;\n return {\n components: {\n root: 'div'\n },\n root: getNativeElementProps((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'div', {\n ref,\n ...props\n })\n };\n};\n//# sourceMappingURL=useDialogBody.js.map"],"names":["useDialogBody_unstable","props","ref","_props_as","components","root","getNativeElementProps","as"],"mappings":";;;;+BAWaA;;aAAAA;;;6DAXU;gCACe;AAU/B,MAAMA,yBAAyB,CAACC,OAAOC,MAAQ;IACpD,IAAIC;IACJ,OAAO;QACLC,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,IAAAA,qCAAqB,EAAC,AAACH,CAAAA,YAAYF,MAAMM,EAAE,AAAD,MAAO,IAAI,IAAIJ,cAAc,KAAK,IAAIA,YAAY,KAAK,EAAE;YACvGD;YACA,GAAGD,KAAK;QACV;IACF;AACF,GACA,yCAAyC"}
@@ -1,54 +1,83 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ dialogBodyClassNames: ()=>dialogBodyClassNames,
13
+ useDialogBodyStyles_unstable: ()=>useDialogBodyStyles_unstable
5
14
  });
6
- exports.useDialogBodyStyles_unstable = exports.dialogBodyClassNames = void 0;
7
- const react_1 = /*#__PURE__*/require("@griffel/react");
8
- const contexts_1 = /*#__PURE__*/require("../../contexts");
9
- exports.dialogBodyClassNames = {
10
- root: 'fui-DialogBody'
15
+ const _react = require("@griffel/react");
16
+ const dialogBodyClassNames = {
17
+ root: 'fui-DialogBody'
11
18
  };
12
19
  /**
13
20
  * Styles for the root slot
14
- */
15
- const useStyles = /*#__PURE__*/react_1.__styles({
16
- root: {
17
- mc9l5x: "f13qh94s",
18
- fshzfu: "f120kxnn",
19
- a9b677: "fly5x3f",
20
- Bqenvij: "f3052tw",
21
- B2u0y6b: "fvgz9i8",
22
- Bxyxcbc: "flnwrvu",
23
- B7ck84d: "f1ewtqcl",
24
- wkccdc: "f874eam",
25
- Budl1dq: "fjj47a5",
26
- zoa1oz: "fe34spp",
27
- B68tc82: "f1ln0qer",
28
- Bmxbyg5: "fa2wlxz",
29
- i8kkvl: "f4px1ci",
30
- Belr9w4: "fn67r4l",
31
- B5xtmjs: "ff54dml",
32
- Bqu9lor: "f52bj20",
33
- B06wobe: "f1dangjo"
34
- }
21
+ */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
22
+ root: {
23
+ mc9l5x: "f13qh94s",
24
+ fshzfu: "f120kxnn",
25
+ a9b677: "fly5x3f",
26
+ Bqenvij: "f3052tw",
27
+ Bxyxcbc: "flnwrvu",
28
+ B7ck84d: "f1ewtqcl",
29
+ wkccdc: "f874eam",
30
+ Budl1dq: "fjj47a5",
31
+ zoa1oz: "fe34spp",
32
+ B68tc82: "f1ln0qer",
33
+ Bmxbyg5: "fa2wlxz",
34
+ i8kkvl: "f4px1ci",
35
+ Belr9w4: "fn67r4l",
36
+ B5xtmjs: "ff54dml",
37
+ Bqu9lor: "f52bj20",
38
+ B06wobe: "f1dangjo"
39
+ }
35
40
  }, {
36
- d: [".f13qh94s{display:grid;}", ".f120kxnn::backdrop{background-color:rgba(0, 0, 0, 0.4);}", ".fly5x3f{width:100%;}", ".f3052tw{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;}", ".fvgz9i8{max-width:600px;}", ".flnwrvu{max-height:calc(100vh - 2 * 24px);}", ".f1ewtqcl{box-sizing:border-box;}", ".f874eam{grid-template-rows:auto 1fr auto;}", ".fjj47a5{grid-template-columns:1fr 1fr auto;}", ".fe34spp{grid-template-areas:\"title title close-button\" \"body body body\" \"actions-start actions-end actions-end\";}", ".f1ln0qer{overflow-x:unset;}", ".fa2wlxz{overflow-y:unset;}", ".f4px1ci{-webkit-column-gap:8px;column-gap:8px;}", ".fn67r4l{row-gap:8px;}"],
37
- m: [["@media screen and (max-width: 480px){.ff54dml{max-width:100vw;}}", {
38
- m: "screen and (max-width: 480px)"
39
- }], ["@media screen and (max-width: 480px){.f52bj20{grid-template-rows:auto 1fr auto auto;}}", {
40
- m: "screen and (max-width: 480px)"
41
- }], ["@media screen and (max-width: 480px){.f1dangjo{grid-template-areas:\"title title close-button\" \"body body body\" \"actions-start actions-start actions-start\" \"actions-end actions-end actions-end\";}}", {
42
- m: "screen and (max-width: 480px)"
43
- }]]
41
+ d: [
42
+ ".f13qh94s{display:grid;}",
43
+ ".f120kxnn::backdrop{background-color:rgba(0, 0, 0, 0.4);}",
44
+ ".fly5x3f{width:100%;}",
45
+ ".f3052tw{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;}",
46
+ ".flnwrvu{max-height:calc(100vh - 2 * 24px);}",
47
+ ".f1ewtqcl{box-sizing:border-box;}",
48
+ ".f874eam{grid-template-rows:auto 1fr auto;}",
49
+ ".fjj47a5{grid-template-columns:1fr 1fr auto;}",
50
+ ".fe34spp{grid-template-areas:\"title title close-button\" \"body body body\" \"actions-start actions-end actions-end\";}",
51
+ ".f1ln0qer{overflow-x:unset;}",
52
+ ".fa2wlxz{overflow-y:unset;}",
53
+ ".f4px1ci{-webkit-column-gap:8px;column-gap:8px;}",
54
+ ".fn67r4l{row-gap:8px;}"
55
+ ],
56
+ m: [
57
+ [
58
+ "@media screen and (max-width: 480px){.ff54dml{max-width:100vw;}}",
59
+ {
60
+ m: "screen and (max-width: 480px)"
61
+ }
62
+ ],
63
+ [
64
+ "@media screen and (max-width: 480px){.f52bj20{grid-template-rows:auto 1fr auto auto;}}",
65
+ {
66
+ m: "screen and (max-width: 480px)"
67
+ }
68
+ ],
69
+ [
70
+ "@media screen and (max-width: 480px){.f1dangjo{grid-template-areas:\"title title close-button\" \"body body body\" \"actions-start actions-start actions-start\" \"actions-end actions-end actions-end\";}}",
71
+ {
72
+ m: "screen and (max-width: 480px)"
73
+ }
74
+ ]
75
+ ]
44
76
  });
45
- /**
46
- * Apply styling to the DialogBody slots based on the state
47
- */
48
- const useDialogBodyStyles_unstable = state => {
49
- const styles = useStyles();
50
- state.root.className = react_1.mergeClasses(exports.dialogBodyClassNames.root, styles.root, state.root.className);
51
- return state;
52
- };
53
- exports.useDialogBodyStyles_unstable = useDialogBodyStyles_unstable;
77
+ const useDialogBodyStyles_unstable = (state)=>{
78
+ const styles = useStyles();
79
+ state.root.className = (0, _react.mergeClasses)(dialogBodyClassNames.root, styles.root, state.root.className);
80
+ return state;
81
+ }; //# sourceMappingURL=useDialogBodyStyles.js.map
82
+
54
83
  //# sourceMappingURL=useDialogBodyStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_1","require","contexts_1","exports","dialogBodyClassNames","root","useStyles","__styles","mc9l5x","fshzfu","a9b677","Bqenvij","B2u0y6b","Bxyxcbc","B7ck84d","wkccdc","Budl1dq","zoa1oz","B68tc82","Bmxbyg5","i8kkvl","Belr9w4","B5xtmjs","Bqu9lor","B06wobe","d","m","useDialogBodyStyles_unstable","state","styles","className","mergeClasses"],"sources":["../src/packages/react-components/react-dialog/src/components/DialogBody/useDialogBodyStyles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type { DialogBodySlots, DialogBodyState } from './DialogBody.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport {\n ACTIONS_END_GRID_AREA,\n ACTIONS_START_GRID_AREA,\n CONTENT_GRID_AREA,\n DIALOG_GAP,\n MEDIA_QUERY_BREAKPOINT_SELECTOR,\n SURFACE_PADDING,\n TITLE_ACTION_GRID_AREA,\n TITLE_GRID_AREA,\n} from '../../contexts';\n\nexport const dialogBodyClassNames: SlotClassNames<DialogBodySlots> = {\n root: 'fui-DialogBody',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'grid',\n '&::backdrop': {\n backgroundColor: 'rgba(0, 0, 0, 0.4)',\n },\n width: `100%`,\n height: 'fit-content',\n maxWidth: '600px',\n maxHeight: `calc(100vh - 2 * ${SURFACE_PADDING})`,\n boxSizing: 'border-box',\n gridTemplateRows: 'auto 1fr auto',\n gridTemplateColumns: '1fr 1fr auto',\n gridTemplateAreas: `\n \"${TITLE_GRID_AREA} ${TITLE_GRID_AREA} ${TITLE_ACTION_GRID_AREA}\"\n \"${CONTENT_GRID_AREA} ${CONTENT_GRID_AREA} ${CONTENT_GRID_AREA}\"\n \"${ACTIONS_START_GRID_AREA} ${ACTIONS_END_GRID_AREA} ${ACTIONS_END_GRID_AREA}\"\n `,\n ...shorthands.overflow('unset'),\n ...shorthands.gap(DIALOG_GAP),\n [MEDIA_QUERY_BREAKPOINT_SELECTOR]: {\n maxWidth: '100vw',\n gridTemplateRows: 'auto 1fr auto auto',\n gridTemplateAreas: `\n \"${TITLE_GRID_AREA} ${TITLE_GRID_AREA} ${TITLE_ACTION_GRID_AREA}\"\n \"${CONTENT_GRID_AREA} ${CONTENT_GRID_AREA} ${CONTENT_GRID_AREA}\"\n \"${ACTIONS_START_GRID_AREA} ${ACTIONS_START_GRID_AREA} ${ACTIONS_START_GRID_AREA}\"\n \"${ACTIONS_END_GRID_AREA} ${ACTIONS_END_GRID_AREA} ${ACTIONS_END_GRID_AREA}\"\n `,\n },\n },\n});\n\n/**\n * Apply styling to the DialogBody slots based on the state\n */\nexport const useDialogBodyStyles_unstable = (state: DialogBodyState): DialogBodyState => {\n const styles = useStyles();\n state.root.className = mergeClasses(dialogBodyClassNames.root, styles.root, state.root.className);\n\n return state;\n};\n"],"mappings":";;;;;;AAAA,MAAAA,OAAA,gBAAAC,OAAA;AAGA,MAAAC,UAAA,gBAAAD,OAAA;AAWaE,OAAA,CAAAC,oBAAoB,GAAoC;EACnEC,IAAI,EAAE;CACP;AAED;;;AAGA,MAAMC,SAAS,gBAAGN,OAAA,CAAAO,QAAU;EAAAF,IAAA;IAAAG,MAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;AAAA;EAAAC,CAAA;EAAAC,CAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;IAAAA,CAAA;EAAA;AAAA,EA+B1B;AAEF;;;AAGO,MAAMC,4BAA4B,GAAIC,KAAsB,IAAqB;EACtF,MAAMC,MAAM,GAAGvB,SAAS,EAAE;EAC1BsB,KAAK,CAACvB,IAAI,CAACyB,SAAS,GAAG9B,OAAA,CAAA+B,YAAY,CAAC5B,OAAA,CAAAC,oBAAoB,CAACC,IAAI,EAAEwB,MAAM,CAACxB,IAAI,EAAEuB,KAAK,CAACvB,IAAI,CAACyB,SAAS,CAAC;EAEjG,OAAOF,KAAK;AACd,CAAC;AALYzB,OAAA,CAAAwB,4BAA4B,GAAAA,4BAAA"}
1
+ {"version":3,"sources":["../../../lib/components/DialogBody/useDialogBodyStyles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { ACTIONS_END_GRID_AREA, ACTIONS_START_GRID_AREA, CONTENT_GRID_AREA, DIALOG_GAP, MEDIA_QUERY_BREAKPOINT_SELECTOR, SURFACE_PADDING, TITLE_ACTION_GRID_AREA, TITLE_GRID_AREA } from '../../contexts';\nexport const dialogBodyClassNames = {\n root: 'fui-DialogBody'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n mc9l5x: \"f13qh94s\",\n fshzfu: \"f120kxnn\",\n a9b677: \"fly5x3f\",\n Bqenvij: \"f3052tw\",\n Bxyxcbc: \"flnwrvu\",\n B7ck84d: \"f1ewtqcl\",\n wkccdc: \"f874eam\",\n Budl1dq: \"fjj47a5\",\n zoa1oz: \"fe34spp\",\n B68tc82: \"f1ln0qer\",\n Bmxbyg5: \"fa2wlxz\",\n i8kkvl: \"f4px1ci\",\n Belr9w4: \"fn67r4l\",\n B5xtmjs: \"ff54dml\",\n Bqu9lor: \"f52bj20\",\n B06wobe: \"f1dangjo\"\n }\n}, {\n d: [\".f13qh94s{display:grid;}\", \".f120kxnn::backdrop{background-color:rgba(0, 0, 0, 0.4);}\", \".fly5x3f{width:100%;}\", \".f3052tw{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;}\", \".flnwrvu{max-height:calc(100vh - 2 * 24px);}\", \".f1ewtqcl{box-sizing:border-box;}\", \".f874eam{grid-template-rows:auto 1fr auto;}\", \".fjj47a5{grid-template-columns:1fr 1fr auto;}\", \".fe34spp{grid-template-areas:\\\"title title close-button\\\" \\\"body body body\\\" \\\"actions-start actions-end actions-end\\\";}\", \".f1ln0qer{overflow-x:unset;}\", \".fa2wlxz{overflow-y:unset;}\", \".f4px1ci{-webkit-column-gap:8px;column-gap:8px;}\", \".fn67r4l{row-gap:8px;}\"],\n m: [[\"@media screen and (max-width: 480px){.ff54dml{max-width:100vw;}}\", {\n m: \"screen and (max-width: 480px)\"\n }], [\"@media screen and (max-width: 480px){.f52bj20{grid-template-rows:auto 1fr auto auto;}}\", {\n m: \"screen and (max-width: 480px)\"\n }], [\"@media screen and (max-width: 480px){.f1dangjo{grid-template-areas:\\\"title title close-button\\\" \\\"body body body\\\" \\\"actions-start actions-start actions-start\\\" \\\"actions-end actions-end actions-end\\\";}}\", {\n m: \"screen and (max-width: 480px)\"\n }]]\n});\n/**\n * Apply styling to the DialogBody slots based on the state\n */\nexport const useDialogBodyStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(dialogBodyClassNames.root, styles.root, state.root.className);\n return state;\n};\n//# sourceMappingURL=useDialogBodyStyles.js.map"],"names":["dialogBodyClassNames","useDialogBodyStyles_unstable","root","useStyles","__styles","mc9l5x","fshzfu","a9b677","Bqenvij","Bxyxcbc","B7ck84d","wkccdc","Budl1dq","zoa1oz","B68tc82","Bmxbyg5","i8kkvl","Belr9w4","B5xtmjs","Bqu9lor","B06wobe","d","m","state","styles","className","mergeClasses"],"mappings":";;;;;;;;;;;IAEaA,oBAAoB,MAApBA;IAsCAC,4BAA4B,MAA5BA;;uBAxCsC;AAE5C,MAAMD,uBAAuB;IAClCE,MAAM;AACR;AACA;;CAEC,GACD,MAAMC,YAAY,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IACtCF,MAAM;QACJG,QAAQ;QACRC,QAAQ;QACRC,QAAQ;QACRC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC,SAAS;QACTC,QAAQ;QACRC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,SAAS;IACX;AACF,GAAG;IACDC,GAAG;QAAC;QAA4B;QAA6D;QAAyB;QAAoF;QAAgD;QAAqC;QAA+C;QAAiD;QAA4H;QAAgC;QAA+B;QAAoD;KAAyB;IACvoBC,GAAG;QAAC;YAAC;YAAoE;gBACvEA,GAAG;YACL;SAAE;QAAE;YAAC;YAA0F;gBAC7FA,GAAG;YACL;SAAE;QAAE;YAAC;YAA+M;gBAClNA,GAAG;YACL;SAAE;KAAC;AACL;AAIO,MAAMrB,+BAA+BsB,CAAAA,QAAS;IACnD,MAAMC,SAASrB;IACfoB,MAAMrB,IAAI,CAACuB,SAAS,GAAGC,IAAAA,mBAAY,EAAC1B,qBAAqBE,IAAI,EAAEsB,OAAOtB,IAAI,EAAEqB,MAAMrB,IAAI,CAACuB,SAAS;IAChG,OAAOF;AACT,GACA,+CAA+C"}
@@ -1,26 +1,24 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "DialogContent", {
6
+ enumerable: true,
7
+ get: ()=>DialogContent
5
8
  });
6
- exports.DialogContent = void 0;
7
- const React = /*#__PURE__*/require("react");
8
- const useDialogContent_1 = /*#__PURE__*/require("./useDialogContent");
9
- const renderDialogContent_1 = /*#__PURE__*/require("./renderDialogContent");
10
- const useDialogContentStyles_1 = /*#__PURE__*/require("./useDialogContentStyles");
11
- const react_shared_contexts_1 = /*#__PURE__*/require("@fluentui/react-shared-contexts");
12
- /**
13
- * The `DialogContent` is a container where the content of the dialog is rendered.
14
- * Apart from styling, this component does not have other behavior.
15
- */
16
- exports.DialogContent = /*#__PURE__*/React.forwardRef((props, ref) => {
17
- const state = useDialogContent_1.useDialogContent_unstable(props, ref);
18
- useDialogContentStyles_1.useDialogContentStyles_unstable(state);
19
- const {
20
- useDialogContentStyles_unstable: useCustomStyles
21
- } = react_shared_contexts_1.useCustomStyleHooks_unstable();
22
- useCustomStyles(state);
23
- return renderDialogContent_1.renderDialogContent_unstable(state);
9
+ const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
+ const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _useDialogContent = require("./useDialogContent");
12
+ const _renderDialogContent = require("./renderDialogContent");
13
+ const _useDialogContentStyles = require("./useDialogContentStyles");
14
+ const _reactSharedContexts = require("@fluentui/react-shared-contexts");
15
+ const DialogContent = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
16
+ const state = (0, _useDialogContent.useDialogContent_unstable)(props, ref);
17
+ (0, _useDialogContentStyles.useDialogContentStyles_unstable)(state);
18
+ const { useDialogContentStyles_unstable: useCustomStyles } = (0, _reactSharedContexts.useCustomStyleHooks_unstable)();
19
+ useCustomStyles(state);
20
+ return (0, _renderDialogContent.renderDialogContent_unstable)(state);
24
21
  });
25
- exports.DialogContent.displayName = 'DialogContent';
22
+ DialogContent.displayName = 'DialogContent'; //# sourceMappingURL=DialogContent.js.map
23
+
26
24
  //# sourceMappingURL=DialogContent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","require","useDialogContent_1","renderDialogContent_1","useDialogContentStyles_1","react_shared_contexts_1","exports","DialogContent","forwardRef","props","ref","state","useDialogContent_unstable","useDialogContentStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderDialogContent_unstable","displayName"],"sources":["../src/packages/react-components/react-dialog/src/components/DialogContent/DialogContent.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDialogContent_unstable } from './useDialogContent';\nimport { renderDialogContent_unstable } from './renderDialogContent';\nimport { useDialogContentStyles_unstable } from './useDialogContentStyles';\nimport type { DialogContentProps } from './DialogContent.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * The `DialogContent` is a container where the content of the dialog is rendered.\n * Apart from styling, this component does not have other behavior.\n */\nexport const DialogContent: ForwardRefComponent<DialogContentProps> = React.forwardRef((props, ref) => {\n const state = useDialogContent_unstable(props, ref);\n\n useDialogContentStyles_unstable(state);\n\n const { useDialogContentStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderDialogContent_unstable(state);\n});\n\nDialogContent.displayName = 'DialogContent';\n"],"mappings":";;;;;;AAAA,MAAAA,KAAA,gBAAAC,OAAA;AACA,MAAAC,kBAAA,gBAAAD,OAAA;AACA,MAAAE,qBAAA,gBAAAF,OAAA;AACA,MAAAG,wBAAA,gBAAAH,OAAA;AAGA,MAAAI,uBAAA,gBAAAJ,OAAA;AAEA;;;;AAIaK,OAAA,CAAAC,aAAa,gBAA4CP,KAAK,CAACQ,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACpG,MAAMC,KAAK,GAAGT,kBAAA,CAAAU,yBAAyB,CAACH,KAAK,EAAEC,GAAG,CAAC;EAEnDN,wBAAA,CAAAS,+BAA+B,CAACF,KAAK,CAAC;EAEtC,MAAM;IAAEE,+BAA+B,EAAEC;EAAe,CAAE,GAAGT,uBAAA,CAAAU,4BAA4B,EAAE;EAC3FD,eAAe,CAACH,KAAK,CAAC;EAEtB,OAAOR,qBAAA,CAAAa,4BAA4B,CAACL,KAAK,CAAC;AAC5C,CAAC,CAAC;AAEFL,OAAA,CAAAC,aAAa,CAACU,WAAW,GAAG,eAAe"}
1
+ {"version":3,"sources":["../../../lib/components/DialogContent/DialogContent.js"],"sourcesContent":["import * as React from 'react';\nimport { useDialogContent_unstable } from './useDialogContent';\nimport { renderDialogContent_unstable } from './renderDialogContent';\nimport { useDialogContentStyles_unstable } from './useDialogContentStyles';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\n/**\n * The `DialogContent` is a container where the content of the dialog is rendered.\n * Apart from styling, this component does not have other behavior.\n */\nexport const DialogContent = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useDialogContent_unstable(props, ref);\n useDialogContentStyles_unstable(state);\n const {\n useDialogContentStyles_unstable: useCustomStyles\n } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n return renderDialogContent_unstable(state);\n});\nDialogContent.displayName = 'DialogContent';\n//# sourceMappingURL=DialogContent.js.map"],"names":["DialogContent","React","forwardRef","props","ref","state","useDialogContent_unstable","useDialogContentStyles_unstable","useCustomStyles","useCustomStyleHooks_unstable","renderDialogContent_unstable","displayName"],"mappings":";;;;+BASaA;;aAAAA;;;6DATU;kCACmB;qCACG;wCACG;qCACH;AAKtC,MAAMA,gBAAgB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACzE,MAAMC,QAAQC,IAAAA,2CAAyB,EAACH,OAAOC;IAC/CG,IAAAA,uDAA+B,EAACF;IAChC,MAAM,EACJE,iCAAiCC,gBAAe,EACjD,GAAGC,IAAAA,iDAA4B;IAChCD,gBAAgBH;IAChB,OAAOK,IAAAA,iDAA4B,EAACL;AACtC;AACAL,cAAcW,WAAW,GAAG,iBAC5B,yCAAyC"}