@fluentui/react-dialog 9.1.4 → 9.1.6

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 (176) hide show
  1. package/CHANGELOG.json +99 -1
  2. package/CHANGELOG.md +29 -2
  3. package/lib/components/Dialog/Dialog.js +0 -1
  4. package/lib/components/Dialog/Dialog.js.map +1 -1
  5. package/lib/components/Dialog/renderDialog.js +0 -1
  6. package/lib/components/Dialog/renderDialog.js.map +1 -1
  7. package/lib/components/Dialog/useDialog.js +2 -8
  8. package/lib/components/Dialog/useDialog.js.map +1 -1
  9. package/lib/components/Dialog/useDialogContextValues.js +0 -1
  10. package/lib/components/Dialog/useDialogContextValues.js.map +1 -1
  11. package/lib/components/DialogActions/DialogActions.js +0 -1
  12. package/lib/components/DialogActions/DialogActions.js.map +1 -1
  13. package/lib/components/DialogActions/renderDialogActions.js +4 -4
  14. package/lib/components/DialogActions/renderDialogActions.js.map +1 -1
  15. package/lib/components/DialogActions/useDialogActions.js +0 -1
  16. package/lib/components/DialogActions/useDialogActions.js.map +1 -1
  17. package/lib/components/DialogActions/useDialogActionsStyles.js +24 -27
  18. package/lib/components/DialogActions/useDialogActionsStyles.js.map +1 -1
  19. package/lib/components/DialogBody/DialogBody.js +0 -1
  20. package/lib/components/DialogBody/DialogBody.js.map +1 -1
  21. package/lib/components/DialogBody/renderDialogBody.js +4 -4
  22. package/lib/components/DialogBody/renderDialogBody.js.map +1 -1
  23. package/lib/components/DialogBody/useDialogBody.js +0 -2
  24. package/lib/components/DialogBody/useDialogBody.js.map +1 -1
  25. package/lib/components/DialogBody/useDialogBodyStyles.js +23 -26
  26. package/lib/components/DialogBody/useDialogBodyStyles.js.map +1 -1
  27. package/lib/components/DialogContent/DialogContent.js +0 -1
  28. package/lib/components/DialogContent/DialogContent.js.map +1 -1
  29. package/lib/components/DialogContent/renderDialogContent.js +2 -2
  30. package/lib/components/DialogContent/renderDialogContent.js.map +1 -1
  31. package/lib/components/DialogContent/useDialogContent.js +0 -2
  32. package/lib/components/DialogContent/useDialogContent.js.map +1 -1
  33. package/lib/components/DialogContent/useDialogContentStyles.js +15 -18
  34. package/lib/components/DialogContent/useDialogContentStyles.js.map +1 -1
  35. package/lib/components/DialogSurface/DialogSurface.js +0 -1
  36. package/lib/components/DialogSurface/DialogSurface.js.map +1 -1
  37. package/lib/components/DialogSurface/renderDialogSurface.js +4 -3
  38. package/lib/components/DialogSurface/renderDialogSurface.js.map +1 -1
  39. package/lib/components/DialogSurface/useDialogSurface.js +2 -7
  40. package/lib/components/DialogSurface/useDialogSurface.js.map +1 -1
  41. package/lib/components/DialogSurface/useDialogSurfaceContextValues.js.map +1 -1
  42. package/lib/components/DialogSurface/useDialogSurfaceStyles.js +92 -97
  43. package/lib/components/DialogSurface/useDialogSurfaceStyles.js.map +1 -1
  44. package/lib/components/DialogTitle/DialogTitle.js +0 -1
  45. package/lib/components/DialogTitle/DialogTitle.js.map +1 -1
  46. package/lib/components/DialogTitle/renderDialogTitle.js +4 -3
  47. package/lib/components/DialogTitle/renderDialogTitle.js.map +1 -1
  48. package/lib/components/DialogTitle/useDialogTitle.js +0 -1
  49. package/lib/components/DialogTitle/useDialogTitle.js.map +1 -1
  50. package/lib/components/DialogTitle/useDialogTitleStyles.js +74 -80
  51. package/lib/components/DialogTitle/useDialogTitleStyles.js.map +1 -1
  52. package/lib/components/DialogTrigger/DialogTrigger.js +2 -3
  53. package/lib/components/DialogTrigger/DialogTrigger.js.map +1 -1
  54. package/lib/components/DialogTrigger/renderDialogTrigger.js.map +1 -1
  55. package/lib/components/DialogTrigger/useDialogTrigger.js +4 -5
  56. package/lib/components/DialogTrigger/useDialogTrigger.js.map +1 -1
  57. package/lib/contexts/dialogContext.js +2 -4
  58. package/lib/contexts/dialogContext.js.map +1 -1
  59. package/lib/contexts/dialogSurfaceContext.js +0 -1
  60. package/lib/contexts/dialogSurfaceContext.js.map +1 -1
  61. package/lib/index.js.map +1 -1
  62. package/lib/utils/isEscapeKeyDown.js +0 -1
  63. package/lib/utils/isEscapeKeyDown.js.map +1 -1
  64. package/lib/utils/useDisableBodyScroll.js +0 -9
  65. package/lib/utils/useDisableBodyScroll.js.map +1 -1
  66. package/lib/utils/useFocusFirstElement.js +0 -5
  67. package/lib/utils/useFocusFirstElement.js.map +1 -1
  68. package/lib-commonjs/Dialog.js +0 -2
  69. package/lib-commonjs/Dialog.js.map +1 -1
  70. package/lib-commonjs/DialogActions.js +0 -2
  71. package/lib-commonjs/DialogActions.js.map +1 -1
  72. package/lib-commonjs/DialogBody.js +0 -2
  73. package/lib-commonjs/DialogBody.js.map +1 -1
  74. package/lib-commonjs/DialogContent.js +0 -2
  75. package/lib-commonjs/DialogContent.js.map +1 -1
  76. package/lib-commonjs/DialogSurface.js +0 -2
  77. package/lib-commonjs/DialogSurface.js.map +1 -1
  78. package/lib-commonjs/DialogTitle.js +0 -2
  79. package/lib-commonjs/DialogTitle.js.map +1 -1
  80. package/lib-commonjs/DialogTrigger.js +0 -2
  81. package/lib-commonjs/DialogTrigger.js.map +1 -1
  82. package/lib-commonjs/components/Dialog/Dialog.js +0 -6
  83. package/lib-commonjs/components/Dialog/Dialog.js.map +1 -1
  84. package/lib-commonjs/components/Dialog/Dialog.types.js.map +1 -1
  85. package/lib-commonjs/components/Dialog/index.js +0 -5
  86. package/lib-commonjs/components/Dialog/index.js.map +1 -1
  87. package/lib-commonjs/components/Dialog/renderDialog.js +0 -5
  88. package/lib-commonjs/components/Dialog/renderDialog.js.map +1 -1
  89. package/lib-commonjs/components/Dialog/useDialog.js +2 -15
  90. package/lib-commonjs/components/Dialog/useDialog.js.map +1 -1
  91. package/lib-commonjs/components/Dialog/useDialogContextValues.js +0 -3
  92. package/lib-commonjs/components/Dialog/useDialogContextValues.js.map +1 -1
  93. package/lib-commonjs/components/DialogActions/DialogActions.js +0 -6
  94. package/lib-commonjs/components/DialogActions/DialogActions.js.map +1 -1
  95. package/lib-commonjs/components/DialogActions/DialogActions.types.js.map +1 -1
  96. package/lib-commonjs/components/DialogActions/index.js +0 -6
  97. package/lib-commonjs/components/DialogActions/index.js.map +1 -1
  98. package/lib-commonjs/components/DialogActions/renderDialogActions.js +4 -8
  99. package/lib-commonjs/components/DialogActions/renderDialogActions.js.map +1 -1
  100. package/lib-commonjs/components/DialogActions/useDialogActions.js +0 -4
  101. package/lib-commonjs/components/DialogActions/useDialogActions.js.map +1 -1
  102. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.js +24 -31
  103. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.js.map +1 -1
  104. package/lib-commonjs/components/DialogBody/DialogBody.js +0 -6
  105. package/lib-commonjs/components/DialogBody/DialogBody.js.map +1 -1
  106. package/lib-commonjs/components/DialogBody/DialogBody.types.js.map +1 -1
  107. package/lib-commonjs/components/DialogBody/index.js +0 -6
  108. package/lib-commonjs/components/DialogBody/index.js.map +1 -1
  109. package/lib-commonjs/components/DialogBody/renderDialogBody.js +4 -8
  110. package/lib-commonjs/components/DialogBody/renderDialogBody.js.map +1 -1
  111. package/lib-commonjs/components/DialogBody/useDialogBody.js +0 -5
  112. package/lib-commonjs/components/DialogBody/useDialogBody.js.map +1 -1
  113. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.js +23 -30
  114. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.js.map +1 -1
  115. package/lib-commonjs/components/DialogContent/DialogContent.js +0 -6
  116. package/lib-commonjs/components/DialogContent/DialogContent.js.map +1 -1
  117. package/lib-commonjs/components/DialogContent/DialogContent.types.js.map +1 -1
  118. package/lib-commonjs/components/DialogContent/index.js +0 -6
  119. package/lib-commonjs/components/DialogContent/index.js.map +1 -1
  120. package/lib-commonjs/components/DialogContent/renderDialogContent.js +2 -6
  121. package/lib-commonjs/components/DialogContent/renderDialogContent.js.map +1 -1
  122. package/lib-commonjs/components/DialogContent/useDialogContent.js +0 -5
  123. package/lib-commonjs/components/DialogContent/useDialogContent.js.map +1 -1
  124. package/lib-commonjs/components/DialogContent/useDialogContentStyles.js +15 -23
  125. package/lib-commonjs/components/DialogContent/useDialogContentStyles.js.map +1 -1
  126. package/lib-commonjs/components/DialogSurface/DialogSurface.js +0 -7
  127. package/lib-commonjs/components/DialogSurface/DialogSurface.js.map +1 -1
  128. package/lib-commonjs/components/DialogSurface/DialogSurface.types.js.map +1 -1
  129. package/lib-commonjs/components/DialogSurface/index.js +0 -6
  130. package/lib-commonjs/components/DialogSurface/index.js.map +1 -1
  131. package/lib-commonjs/components/DialogSurface/renderDialogSurface.js +4 -9
  132. package/lib-commonjs/components/DialogSurface/renderDialogSurface.js.map +1 -1
  133. package/lib-commonjs/components/DialogSurface/useDialogSurface.js +2 -13
  134. package/lib-commonjs/components/DialogSurface/useDialogSurface.js.map +1 -1
  135. package/lib-commonjs/components/DialogSurface/useDialogSurfaceContextValues.js +0 -2
  136. package/lib-commonjs/components/DialogSurface/useDialogSurfaceContextValues.js.map +1 -1
  137. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.js +92 -103
  138. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.js.map +1 -1
  139. package/lib-commonjs/components/DialogTitle/DialogTitle.js +0 -6
  140. package/lib-commonjs/components/DialogTitle/DialogTitle.js.map +1 -1
  141. package/lib-commonjs/components/DialogTitle/DialogTitle.types.js.map +1 -1
  142. package/lib-commonjs/components/DialogTitle/index.js +0 -6
  143. package/lib-commonjs/components/DialogTitle/index.js.map +1 -1
  144. package/lib-commonjs/components/DialogTitle/renderDialogTitle.js +4 -7
  145. package/lib-commonjs/components/DialogTitle/renderDialogTitle.js.map +1 -1
  146. package/lib-commonjs/components/DialogTitle/useDialogTitle.js +0 -10
  147. package/lib-commonjs/components/DialogTitle/useDialogTitle.js.map +1 -1
  148. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.js +74 -86
  149. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.js.map +1 -1
  150. package/lib-commonjs/components/DialogTrigger/DialogTrigger.js +2 -7
  151. package/lib-commonjs/components/DialogTrigger/DialogTrigger.js.map +1 -1
  152. package/lib-commonjs/components/DialogTrigger/DialogTrigger.types.js.map +1 -1
  153. package/lib-commonjs/components/DialogTrigger/index.js +0 -5
  154. package/lib-commonjs/components/DialogTrigger/index.js.map +1 -1
  155. package/lib-commonjs/components/DialogTrigger/renderDialogTrigger.js +0 -2
  156. package/lib-commonjs/components/DialogTrigger/renderDialogTrigger.js.map +1 -1
  157. package/lib-commonjs/components/DialogTrigger/useDialogTrigger.js +4 -11
  158. package/lib-commonjs/components/DialogTrigger/useDialogTrigger.js.map +1 -1
  159. package/lib-commonjs/contexts/constants.js.map +1 -1
  160. package/lib-commonjs/contexts/dialogContext.js +2 -8
  161. package/lib-commonjs/contexts/dialogContext.js.map +1 -1
  162. package/lib-commonjs/contexts/dialogSurfaceContext.js +0 -5
  163. package/lib-commonjs/contexts/dialogSurfaceContext.js.map +1 -1
  164. package/lib-commonjs/contexts/index.js +0 -4
  165. package/lib-commonjs/contexts/index.js.map +1 -1
  166. package/lib-commonjs/index.js +0 -14
  167. package/lib-commonjs/index.js.map +1 -1
  168. package/lib-commonjs/utils/index.js +0 -4
  169. package/lib-commonjs/utils/index.js.map +1 -1
  170. package/lib-commonjs/utils/isEscapeKeyDown.js +0 -4
  171. package/lib-commonjs/utils/isEscapeKeyDown.js.map +1 -1
  172. package/lib-commonjs/utils/useDisableBodyScroll.js +0 -14
  173. package/lib-commonjs/utils/useDisableBodyScroll.js.map +1 -1
  174. package/lib-commonjs/utils/useFocusFirstElement.js +0 -10
  175. package/lib-commonjs/utils/useFocusFirstElement.js.map +1 -1
  176. package/package.json +11 -11
package/CHANGELOG.json CHANGED
@@ -2,7 +2,105 @@
2
2
  "name": "@fluentui/react-dialog",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 20 Dec 2022 14:55:49 GMT",
5
+ "date": "Wed, 04 Jan 2023 01:36:23 GMT",
6
+ "tag": "@fluentui/react-dialog_v9.1.6",
7
+ "version": "9.1.6",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "martinhochel@microsoft.com",
12
+ "package": "@fluentui/react-dialog",
13
+ "commit": "194b0cf0cc27c1c1233aa945f09b3ad29778d8ca",
14
+ "comment": "chore(scripts): use for @fluentui/scripts version within all package.json"
15
+ },
16
+ {
17
+ "author": "martinhochel@microsoft.com",
18
+ "package": "@fluentui/react-dialog",
19
+ "commit": "4ec2b998b294d6d9c3196d3d82893bdd97d0c105",
20
+ "comment": "chore(scripts): move index.ts to to follow sub-folder domain packaging"
21
+ }
22
+ ],
23
+ "patch": [
24
+ {
25
+ "author": "olfedias@microsoft.com",
26
+ "package": "@fluentui/react-dialog",
27
+ "commit": "2c38f1e4ae07b2b60df596efe11015a68f166dbf",
28
+ "comment": "chore: Update Griffel to latest version"
29
+ },
30
+ {
31
+ "author": "beachball",
32
+ "package": "@fluentui/react-dialog",
33
+ "comment": "Bump @fluentui/react-utilities to v9.3.1",
34
+ "commit": "3e322d15529451be153e97298873253e21af4082"
35
+ },
36
+ {
37
+ "author": "beachball",
38
+ "package": "@fluentui/react-dialog",
39
+ "comment": "Bump @fluentui/react-context-selector to v9.1.4",
40
+ "commit": "3e322d15529451be153e97298873253e21af4082"
41
+ },
42
+ {
43
+ "author": "beachball",
44
+ "package": "@fluentui/react-dialog",
45
+ "comment": "Bump @fluentui/react-aria to v9.3.4",
46
+ "commit": "3e322d15529451be153e97298873253e21af4082"
47
+ },
48
+ {
49
+ "author": "beachball",
50
+ "package": "@fluentui/react-dialog",
51
+ "comment": "Bump @fluentui/react-tabster to v9.3.5",
52
+ "commit": "3e322d15529451be153e97298873253e21af4082"
53
+ },
54
+ {
55
+ "author": "beachball",
56
+ "package": "@fluentui/react-dialog",
57
+ "comment": "Bump @fluentui/react-portal to v9.0.15",
58
+ "commit": "3e322d15529451be153e97298873253e21af4082"
59
+ },
60
+ {
61
+ "author": "beachball",
62
+ "package": "@fluentui/react-dialog",
63
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.19",
64
+ "commit": "3e322d15529451be153e97298873253e21af4082"
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ {
70
+ "date": "Wed, 21 Dec 2022 10:20:33 GMT",
71
+ "tag": "@fluentui/react-dialog_v9.1.5",
72
+ "version": "9.1.5",
73
+ "comments": {
74
+ "patch": [
75
+ {
76
+ "author": "beachball",
77
+ "package": "@fluentui/react-dialog",
78
+ "comment": "Bump @fluentui/react-shared-contexts to v9.1.4",
79
+ "commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
80
+ },
81
+ {
82
+ "author": "beachball",
83
+ "package": "@fluentui/react-dialog",
84
+ "comment": "Bump @fluentui/react-tabster to v9.3.4",
85
+ "commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
86
+ },
87
+ {
88
+ "author": "beachball",
89
+ "package": "@fluentui/react-dialog",
90
+ "comment": "Bump @fluentui/react-theme to v9.1.5",
91
+ "commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
92
+ },
93
+ {
94
+ "author": "beachball",
95
+ "package": "@fluentui/react-dialog",
96
+ "comment": "Bump @fluentui/react-portal to v9.0.14",
97
+ "commit": "66bf89f634cad4a275e957d7a2214c7e73ff8c2e"
98
+ }
99
+ ]
100
+ }
101
+ },
102
+ {
103
+ "date": "Tue, 20 Dec 2022 14:59:24 GMT",
6
104
  "tag": "@fluentui/react-dialog_v9.1.4",
7
105
  "version": "9.1.4",
8
106
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,39 @@
1
1
  # Change Log - @fluentui/react-dialog
2
2
 
3
- This log was last generated on Tue, 20 Dec 2022 14:55:49 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 04 Jan 2023 01:36:23 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.1.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.1.6)
8
+
9
+ Wed, 04 Jan 2023 01:36:23 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.1.5..@fluentui/react-dialog_v9.1.6)
11
+
12
+ ### Patches
13
+
14
+ - chore: Update Griffel to latest version ([PR #26045](https://github.com/microsoft/fluentui/pull/26045) by olfedias@microsoft.com)
15
+ - Bump @fluentui/react-utilities to v9.3.1 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
16
+ - Bump @fluentui/react-context-selector to v9.1.4 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
17
+ - Bump @fluentui/react-aria to v9.3.4 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
18
+ - Bump @fluentui/react-tabster to v9.3.5 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
19
+ - Bump @fluentui/react-portal to v9.0.15 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.19 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
21
+
22
+ ## [9.1.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.1.5)
23
+
24
+ Wed, 21 Dec 2022 10:20:33 GMT
25
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.1.4..@fluentui/react-dialog_v9.1.5)
26
+
27
+ ### Patches
28
+
29
+ - Bump @fluentui/react-shared-contexts to v9.1.4 ([commit](https://github.com/microsoft/fluentui/commit/66bf89f634cad4a275e957d7a2214c7e73ff8c2e) by beachball)
30
+ - Bump @fluentui/react-tabster to v9.3.4 ([commit](https://github.com/microsoft/fluentui/commit/66bf89f634cad4a275e957d7a2214c7e73ff8c2e) by beachball)
31
+ - Bump @fluentui/react-theme to v9.1.5 ([commit](https://github.com/microsoft/fluentui/commit/66bf89f634cad4a275e957d7a2214c7e73ff8c2e) by beachball)
32
+ - Bump @fluentui/react-portal to v9.0.14 ([commit](https://github.com/microsoft/fluentui/commit/66bf89f634cad4a275e957d7a2214c7e73ff8c2e) by beachball)
33
+
7
34
  ## [9.1.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-dialog_v9.1.4)
8
35
 
9
- Tue, 20 Dec 2022 14:55:49 GMT
36
+ Tue, 20 Dec 2022 14:59:24 GMT
10
37
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-dialog_v9.1.3..@fluentui/react-dialog_v9.1.4)
11
38
 
12
39
  ### Patches
@@ -9,7 +9,6 @@ import { useDialogContextValues_unstable } from './useDialogContextValues';
9
9
  * and a `DialogSurface` (or some component that will eventually render one of those compound components)
10
10
  * in this specific order
11
11
  */
12
-
13
12
  export const Dialog = /*#__PURE__*/React.memo(props => {
14
13
  const state = useDialog_unstable(props);
15
14
  const contextValues = useDialogContextValues_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AAEA,SAAS,+BAAT,QAAgD,0BAAhD;AAEA;;;;;;AAMG;;AACH,OAAO,MAAM,MAAM,gBAA0B,KAAK,CAAC,IAAN,CAAW,KAAK,IAAG;EAC9D,MAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,CAAhC;EACA,MAAM,aAAa,GAAG,+BAA+B,CAAC,KAAD,CAArD;EAEA,OAAO,qBAAqB,CAAC,KAAD,EAAQ,aAAR,CAA5B;AACD,CAL4C,CAAtC;AAOP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourcesContent":["import * as React from 'react';\nimport { useDialog_unstable } from './useDialog';\nimport { renderDialog_unstable } from './renderDialog';\nimport type { DialogProps } from './Dialog.types';\nimport { useDialogContextValues_unstable } from './useDialogContextValues';\n\n/**\n * The `Dialog` root level component serves as an interface for interaction with all possible behaviors exposed.\n * It provides context down the hierarchy to `children` compound components to allow functionality.\n * This component expects to receive as children either a `DialogSurface` or a `DialogTrigger`\n * and a `DialogSurface` (or some component that will eventually render one of those compound components)\n * in this specific order\n */\nexport const Dialog: React.FC<DialogProps> = React.memo(props => {\n const state = useDialog_unstable(props);\n const contextValues = useDialogContextValues_unstable(state);\n\n return renderDialog_unstable(state, contextValues);\n});\n\nDialog.displayName = 'Dialog';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,kBAAkB,QAAQ,aAAa;AAChD,SAASC,qBAAqB,QAAQ,gBAAgB;AAEtD,SAASC,+BAA+B,QAAQ,0BAA0B;AAE1E;;;;;;;AAOA,OAAO,MAAMC,MAAM,gBAA0BJ,KAAK,CAACK,IAAI,CAACC,KAAK,IAAG;EAC9D,MAAMC,KAAK,GAAGN,kBAAkB,CAACK,KAAK,CAAC;EACvC,MAAME,aAAa,GAAGL,+BAA+B,CAACI,KAAK,CAAC;EAE5D,OAAOL,qBAAqB,CAACK,KAAK,EAAEC,aAAa,CAAC;AACpD,CAAC,CAAC;AAEFJ,MAAM,CAACK,WAAW,GAAG,QAAQ","names":["React","useDialog_unstable","renderDialog_unstable","useDialogContextValues_unstable","Dialog","memo","props","state","contextValues","displayName"],"sourceRoot":"../src/","sources":["packages/react-components/react-dialog/src/components/Dialog/Dialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDialog_unstable } from './useDialog';\nimport { renderDialog_unstable } from './renderDialog';\nimport type { DialogProps } from './Dialog.types';\nimport { useDialogContextValues_unstable } from './useDialogContextValues';\n\n/**\n * The `Dialog` root level component serves as an interface for interaction with all possible behaviors exposed.\n * It provides context down the hierarchy to `children` compound components to allow functionality.\n * This component expects to receive as children either a `DialogSurface` or a `DialogTrigger`\n * and a `DialogSurface` (or some component that will eventually render one of those compound components)\n * in this specific order\n */\nexport const Dialog: React.FC<DialogProps> = React.memo(props => {\n const state = useDialog_unstable(props);\n const contextValues = useDialogContextValues_unstable(state);\n\n return renderDialog_unstable(state, contextValues);\n});\n\nDialog.displayName = 'Dialog';\n"]}
@@ -3,7 +3,6 @@ import { DialogProvider, DialogSurfaceProvider } from '../../contexts';
3
3
  /**
4
4
  * Render the final JSX of Dialog
5
5
  */
6
-
7
6
  export const renderDialog_unstable = (state, contextValues) => {
8
7
  const {
9
8
  content,
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/Dialog/renderDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,cAAT,EAAyB,qBAAzB,QAAsD,gBAAtD;AAGA;;AAEG;;AACH,OAAO,MAAM,qBAAqB,GAAG,CAAC,KAAD,EAAqB,aAArB,KAA2D;EAC9F,MAAM;IAAE,OAAF;IAAW;EAAX,IAAuB,KAA7B;EAEA,oBACE,KAAA,CAAA,aAAA,CAAC,cAAD,EAAe;IAAC,KAAK,EAAE,aAAa,CAAC;EAAtB,CAAf,eACE,KAAA,CAAA,aAAA,CAAC,qBAAD,EAAsB;IAAC,KAAK,EAAE,aAAa,CAAC;EAAtB,CAAtB,EACG,OADH,EAEG,OAFH,CADF,CADF;AAQD,CAXM","sourcesContent":["import * as React from 'react';\nimport { DialogProvider, DialogSurfaceProvider } from '../../contexts';\nimport type { DialogState, DialogContextValues } from './Dialog.types';\n\n/**\n * Render the final JSX of Dialog\n */\nexport const renderDialog_unstable = (state: DialogState, contextValues: DialogContextValues) => {\n const { content, trigger } = state;\n\n return (\n <DialogProvider value={contextValues.dialog}>\n <DialogSurfaceProvider value={contextValues.dialogSurface}>\n {trigger}\n {content}\n </DialogSurfaceProvider>\n </DialogProvider>\n );\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,EAAEC,qBAAqB,QAAQ,gBAAgB;AAGtE;;;AAGA,OAAO,MAAMC,qBAAqB,GAAG,CAACC,KAAkB,EAAEC,aAAkC,KAAI;EAC9F,MAAM;IAAEC,OAAO;IAAEC;EAAO,CAAE,GAAGH,KAAK;EAElC,oBACEJ,oBAACC,cAAc;IAACO,KAAK,EAAEH,aAAa,CAACI;EAAM,gBACzCT,oBAACE,qBAAqB;IAACM,KAAK,EAAEH,aAAa,CAACK;EAAa,GACtDH,OAAO,EACPD,OAAO,CACc,CACT;AAErB,CAAC","names":["React","DialogProvider","DialogSurfaceProvider","renderDialog_unstable","state","contextValues","content","trigger","value","dialog","dialogSurface"],"sourceRoot":"../src/","sources":["packages/react-components/react-dialog/src/components/Dialog/renderDialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport { DialogProvider, DialogSurfaceProvider } from '../../contexts';\nimport type { DialogState, DialogContextValues } from './Dialog.types';\n\n/**\n * Render the final JSX of Dialog\n */\nexport const renderDialog_unstable = (state: DialogState, contextValues: DialogContextValues) => {\n const { content, trigger } = state;\n\n return (\n <DialogProvider value={contextValues.dialog}>\n <DialogSurfaceProvider value={contextValues.dialogSurface}>\n {trigger}\n {content}\n </DialogSurfaceProvider>\n </DialogProvider>\n );\n};\n"]}
@@ -11,7 +11,6 @@ import { DialogContext } from '../../contexts';
11
11
  *
12
12
  * @param props - props from this instance of Dialog
13
13
  */
14
-
15
14
  export const useDialog_unstable = props => {
16
15
  const {
17
16
  children,
@@ -25,9 +24,9 @@ export const useDialog_unstable = props => {
25
24
  initialState: false
26
25
  });
27
26
  const requestOpenChange = useEventCallback(data => {
28
- onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(data.event, data); // if user prevents default then do not change state value
27
+ onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(data.event, data);
28
+ // if user prevents default then do not change state value
29
29
  // otherwise updates state value and trigger reference to the element that caused the opening
30
-
31
30
  if (!data.event.isDefaultPrevented()) {
32
31
  setOpen(data.open);
33
32
  }
@@ -57,27 +56,22 @@ export const useDialog_unstable = props => {
57
56
  /**
58
57
  * Extracts trigger and content from children
59
58
  */
60
-
61
59
  function childrenToTriggerAndContent(children) {
62
60
  const childrenArray = React.Children.toArray(children);
63
-
64
61
  if (process.env.NODE_ENV !== 'production') {
65
62
  if (childrenArray.length !== 1 && childrenArray.length !== 2) {
66
63
  // eslint-disable-next-line no-console
67
64
  console.warn('Dialog must contain at least one child <DialogSurface/>,\n' + 'and at most two children <DialogTrigger/> <DialogSurface/> (in this order)');
68
65
  }
69
66
  }
70
-
71
67
  switch (childrenArray.length) {
72
68
  // case where there's a trigger followed by content
73
69
  case 2:
74
70
  return childrenArray;
75
71
  // case where there's only content
76
-
77
72
  case 1:
78
73
  return [undefined, childrenArray[0]];
79
74
  // unknown case
80
-
81
75
  default:
82
76
  return [undefined, undefined];
83
77
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/Dialog/useDialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,EAA+B,gBAA/B,EAAiD,KAAjD,EAAwD,yBAAxD,QAAyF,2BAAzF;AACA,SAAS,mBAAT,QAAoC,kCAApC;AACA,SAAS,oBAAT,EAA+B,oBAA/B,QAA2D,aAA3D;AACA,SAAS,aAAT,QAA8B,gBAA9B;AAIA;;;;;;;AAOG;;AACH,OAAO,MAAM,kBAAkB,GAAI,KAAD,IAAoC;EACpE,MAAM;IAAE,QAAF;IAAY,SAAS,GAAG,OAAxB;IAAiC;EAAjC,IAAkD,KAAxD;EAEA,MAAM,CAAC,OAAD,EAAU,OAAV,IAAqB,2BAA2B,CAAC,QAAD,CAAtD;EAEA,MAAM,CAAC,IAAD,EAAO,OAAP,IAAkB,oBAAoB,CAAC;IAC3C,KAAK,EAAE,KAAK,CAAC,IAD8B;IAE3C,YAAY,EAAE,KAAK,CAAC,WAFuB;IAG3C,YAAY,EAAE;EAH6B,CAAD,CAA5C;EAMA,MAAM,iBAAiB,GAAG,gBAAgB,CAAE,IAAD,IAA+B;IACxE,YAAY,KAAA,IAAZ,IAAA,YAAY,KAAA,KAAA,CAAZ,GAAY,KAAA,CAAZ,GAAA,YAAY,CAAG,IAAI,CAAC,KAAR,EAAe,IAAf,CAAZ,CADwE,CAGxE;IACA;;IACA,IAAI,CAAC,IAAI,CAAC,KAAL,CAAW,kBAAX,EAAL,EAAsC;MACpC,OAAO,CAAC,IAAI,CAAC,IAAN,CAAP;IACD;EACF,CARyC,CAA1C;EAUA,MAAM,QAAQ,GAAG,oBAAoB,CAAC,IAAD,EAAO,SAAP,CAArC;EACA,MAAM,iBAAiB,GAAG,oBAAoB,EAA9C;EACA,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,IAAI,SAAS,KAAK,WAAvB,CAAlC;EAEA,yBAAyB,CAAC,MAAK;IAC7B,IAAI,kBAAJ,EAAwB;MACtB,OAAO,iBAAiB,EAAxB;IACD;EACF,CAJwB,EAItB,CAAC,iBAAD,EAAoB,kBAApB,CAJsB,CAAzB;EAMA,OAAO;IACL,UAAU,EAAE;MACV,QAAQ,EAAE;IADA,CADP;IAIL,IAJK;IAKL,SALK;IAML,OAAO,EAAE,IAAI,GAAG,OAAH,GAAa,IANrB;IAOL,OAPK;IAQL,iBARK;IASL,aAAa,EAAE,KAAK,CAAC,eAAD,CATf;IAUL,cAAc,EAAE,mBAAmB,CAAC,aAAD,CAV9B;IAWL,SAAS,EAAE;EAXN,CAAP;AAaD,CA5CM;AA8CP;;AAEG;;AACH,SAAS,2BAAT,CACE,QADF,EAC2B;EAEzB,MAAM,aAAa,GAAG,KAAK,CAAC,QAAN,CAAe,OAAf,CAAuB,QAAvB,CAAtB;;EACA,IAAI,OAAO,CAAC,GAAR,CAAY,QAAZ,KAAyB,YAA7B,EAA2C;IACzC,IAAI,aAAa,CAAC,MAAd,KAAyB,CAAzB,IAA8B,aAAa,CAAC,MAAd,KAAyB,CAA3D,EAA8D;MAC5D;MACA,OAAO,CAAC,IAAR,CACE,+DACE,4EAFJ;IAID;EACF;;EACD,QAAQ,aAAa,CAAC,MAAtB;IACE;IACA,KAAK,CAAL;MACE,OAAO,aAAP;IACF;;IACA,KAAK,CAAL;MACE,OAAO,CAAC,SAAD,EAAY,aAAa,CAAC,CAAD,CAAzB,CAAP;IACF;;IACA;MACE,OAAO,CAAC,SAAD,EAAY,SAAZ,CAAP;EATJ;AAWD","sourcesContent":["import * as React from 'react';\nimport { useControllableState, useEventCallback, useId, useIsomorphicLayoutEffect } from '@fluentui/react-utilities';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { useDisableBodyScroll, useFocusFirstElement } from '../../utils';\nimport { DialogContext } from '../../contexts';\n\nimport type { DialogOpenChangeData, DialogProps, DialogState } from './Dialog.types';\n\n/**\n * Create the state required to render Dialog.\n *\n * The returned state can be modified with hooks such as useDialogStyles_unstable,\n * before being passed to renderDialog_unstable.\n *\n * @param props - props from this instance of Dialog\n */\nexport const useDialog_unstable = (props: DialogProps): DialogState => {\n const { children, modalType = 'modal', onOpenChange } = props;\n\n const [trigger, content] = childrenToTriggerAndContent(children);\n\n const [open, setOpen] = useControllableState({\n state: props.open,\n defaultState: props.defaultOpen,\n initialState: false,\n });\n\n const requestOpenChange = useEventCallback((data: DialogOpenChangeData) => {\n onOpenChange?.(data.event, data);\n\n // if user prevents default then do not change state value\n // otherwise updates state value and trigger reference to the element that caused the opening\n if (!data.event.isDefaultPrevented()) {\n setOpen(data.open);\n }\n });\n\n const focusRef = useFocusFirstElement(open, modalType);\n const disableBodyScroll = useDisableBodyScroll();\n const isBodyScrollLocked = Boolean(open && modalType !== 'non-modal');\n\n useIsomorphicLayoutEffect(() => {\n if (isBodyScrollLocked) {\n return disableBodyScroll();\n }\n }, [disableBodyScroll, isBodyScrollLocked]);\n\n return {\n components: {\n backdrop: 'div',\n },\n open,\n modalType,\n content: open ? content : null,\n trigger,\n requestOpenChange,\n dialogTitleId: useId('dialog-title-'),\n isNestedDialog: useHasParentContext(DialogContext),\n dialogRef: focusRef,\n };\n};\n\n/**\n * Extracts trigger and content from children\n */\nfunction childrenToTriggerAndContent(\n children: React.ReactNode,\n): readonly [trigger: React.ReactNode, content: React.ReactNode] {\n const childrenArray = React.Children.toArray(children) as React.ReactElement[];\n if (process.env.NODE_ENV !== 'production') {\n if (childrenArray.length !== 1 && childrenArray.length !== 2) {\n // eslint-disable-next-line no-console\n console.warn(\n 'Dialog must contain at least one child <DialogSurface/>,\\n' +\n 'and at most two children <DialogTrigger/> <DialogSurface/> (in this order)',\n );\n }\n }\n switch (childrenArray.length) {\n // case where there's a trigger followed by content\n case 2:\n return childrenArray as [trigger: React.ReactNode, content: React.ReactNode];\n // case where there's only content\n case 1:\n return [undefined, childrenArray[0]];\n // unknown case\n default:\n return [undefined, undefined];\n }\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,oBAAoB,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,yBAAyB,QAAQ,2BAA2B;AACpH,SAASC,mBAAmB,QAAQ,kCAAkC;AACtE,SAASC,oBAAoB,EAAEC,oBAAoB,QAAQ,aAAa;AACxE,SAASC,aAAa,QAAQ,gBAAgB;AAI9C;;;;;;;;AAQA,OAAO,MAAMC,kBAAkB,GAAIC,KAAkB,IAAiB;EACpE,MAAM;IAAEC,QAAQ;IAAEC,SAAS,GAAG,OAAO;IAAEC;EAAY,CAAE,GAAGH,KAAK;EAE7D,MAAM,CAACI,OAAO,EAAEC,OAAO,CAAC,GAAGC,2BAA2B,CAACL,QAAQ,CAAC;EAEhE,MAAM,CAACM,IAAI,EAAEC,OAAO,CAAC,GAAGjB,oBAAoB,CAAC;IAC3CkB,KAAK,EAAET,KAAK,CAACO,IAAI;IACjBG,YAAY,EAAEV,KAAK,CAACW,WAAW;IAC/BC,YAAY,EAAE;GACf,CAAC;EAEF,MAAMC,iBAAiB,GAAGrB,gBAAgB,CAAEsB,IAA0B,IAAI;IACxEX,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAGW,IAAI,CAACC,KAAK,EAAED,IAAI,CAAC;IAEhC;IACA;IACA,IAAI,CAACA,IAAI,CAACC,KAAK,CAACC,kBAAkB,EAAE,EAAE;MACpCR,OAAO,CAACM,IAAI,CAACP,IAAI,CAAC;;EAEtB,CAAC,CAAC;EAEF,MAAMU,QAAQ,GAAGpB,oBAAoB,CAACU,IAAI,EAAEL,SAAS,CAAC;EACtD,MAAMgB,iBAAiB,GAAGtB,oBAAoB,EAAE;EAChD,MAAMuB,kBAAkB,GAAGC,OAAO,CAACb,IAAI,IAAIL,SAAS,KAAK,WAAW,CAAC;EAErER,yBAAyB,CAAC,MAAK;IAC7B,IAAIyB,kBAAkB,EAAE;MACtB,OAAOD,iBAAiB,EAAE;;EAE9B,CAAC,EAAE,CAACA,iBAAiB,EAAEC,kBAAkB,CAAC,CAAC;EAE3C,OAAO;IACLE,UAAU,EAAE;MACVC,QAAQ,EAAE;KACX;IACDf,IAAI;IACJL,SAAS;IACTG,OAAO,EAAEE,IAAI,GAAGF,OAAO,GAAG,IAAI;IAC9BD,OAAO;IACPS,iBAAiB;IACjBU,aAAa,EAAE9B,KAAK,CAAC,eAAe,CAAC;IACrC+B,cAAc,EAAE7B,mBAAmB,CAACG,aAAa,CAAC;IAClD2B,SAAS,EAAER;GACZ;AACH,CAAC;AAED;;;AAGA,SAASX,2BAA2B,CAClCL,QAAyB;EAEzB,MAAMyB,aAAa,GAAGpC,KAAK,CAACqC,QAAQ,CAACC,OAAO,CAAC3B,QAAQ,CAAyB;EAC9E,IAAI4B,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzC,IAAIL,aAAa,CAACM,MAAM,KAAK,CAAC,IAAIN,aAAa,CAACM,MAAM,KAAK,CAAC,EAAE;MAC5D;MACAC,OAAO,CAACC,IAAI,CACV,4DAA4D,GAC1D,4EAA4E,CAC/E;;;EAGL,QAAQR,aAAa,CAACM,MAAM;IAC1B;IACA,KAAK,CAAC;MACJ,OAAON,aAAqE;IAC9E;IACA,KAAK,CAAC;MACJ,OAAO,CAACS,SAAS,EAAET,aAAa,CAAC,CAAC,CAAC,CAAC;IACtC;IACA;MACE,OAAO,CAACS,SAAS,EAAEA,SAAS,CAAC;EAAC;AAEpC","names":["React","useControllableState","useEventCallback","useId","useIsomorphicLayoutEffect","useHasParentContext","useDisableBodyScroll","useFocusFirstElement","DialogContext","useDialog_unstable","props","children","modalType","onOpenChange","trigger","content","childrenToTriggerAndContent","open","setOpen","state","defaultState","defaultOpen","initialState","requestOpenChange","data","event","isDefaultPrevented","focusRef","disableBodyScroll","isBodyScrollLocked","Boolean","components","backdrop","dialogTitleId","isNestedDialog","dialogRef","childrenArray","Children","toArray","process","env","NODE_ENV","length","console","warn","undefined"],"sourceRoot":"../src/","sources":["packages/react-components/react-dialog/src/components/Dialog/useDialog.ts"],"sourcesContent":["import * as React from 'react';\nimport { useControllableState, useEventCallback, useId, useIsomorphicLayoutEffect } from '@fluentui/react-utilities';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { useDisableBodyScroll, useFocusFirstElement } from '../../utils';\nimport { DialogContext } from '../../contexts';\n\nimport type { DialogOpenChangeData, DialogProps, DialogState } from './Dialog.types';\n\n/**\n * Create the state required to render Dialog.\n *\n * The returned state can be modified with hooks such as useDialogStyles_unstable,\n * before being passed to renderDialog_unstable.\n *\n * @param props - props from this instance of Dialog\n */\nexport const useDialog_unstable = (props: DialogProps): DialogState => {\n const { children, modalType = 'modal', onOpenChange } = props;\n\n const [trigger, content] = childrenToTriggerAndContent(children);\n\n const [open, setOpen] = useControllableState({\n state: props.open,\n defaultState: props.defaultOpen,\n initialState: false,\n });\n\n const requestOpenChange = useEventCallback((data: DialogOpenChangeData) => {\n onOpenChange?.(data.event, data);\n\n // if user prevents default then do not change state value\n // otherwise updates state value and trigger reference to the element that caused the opening\n if (!data.event.isDefaultPrevented()) {\n setOpen(data.open);\n }\n });\n\n const focusRef = useFocusFirstElement(open, modalType);\n const disableBodyScroll = useDisableBodyScroll();\n const isBodyScrollLocked = Boolean(open && modalType !== 'non-modal');\n\n useIsomorphicLayoutEffect(() => {\n if (isBodyScrollLocked) {\n return disableBodyScroll();\n }\n }, [disableBodyScroll, isBodyScrollLocked]);\n\n return {\n components: {\n backdrop: 'div',\n },\n open,\n modalType,\n content: open ? content : null,\n trigger,\n requestOpenChange,\n dialogTitleId: useId('dialog-title-'),\n isNestedDialog: useHasParentContext(DialogContext),\n dialogRef: focusRef,\n };\n};\n\n/**\n * Extracts trigger and content from children\n */\nfunction childrenToTriggerAndContent(\n children: React.ReactNode,\n): readonly [trigger: React.ReactNode, content: React.ReactNode] {\n const childrenArray = React.Children.toArray(children) as React.ReactElement[];\n if (process.env.NODE_ENV !== 'production') {\n if (childrenArray.length !== 1 && childrenArray.length !== 2) {\n // eslint-disable-next-line no-console\n console.warn(\n 'Dialog must contain at least one child <DialogSurface/>,\\n' +\n 'and at most two children <DialogTrigger/> <DialogSurface/> (in this order)',\n );\n }\n }\n switch (childrenArray.length) {\n // case where there's a trigger followed by content\n case 2:\n return childrenArray as [trigger: React.ReactNode, content: React.ReactNode];\n // case where there's only content\n case 1:\n return [undefined, childrenArray[0]];\n // unknown case\n default:\n return [undefined, undefined];\n }\n}\n"]}
@@ -11,7 +11,6 @@ export function useDialogContextValues_unstable(state) {
11
11
  * This context is created with "@fluentui/react-context-selector",
12
12
  * there is no sense to memoize it
13
13
  */
14
-
15
14
  const dialog = {
16
15
  open,
17
16
  modalType,
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/Dialog/useDialogContextValues.ts"],"names":[],"mappings":"AAGA,OAAM,SAAU,+BAAV,CAA0C,KAA1C,EAA4D;EAChE,MAAM;IAAE,SAAF;IAAa,IAAb;IAAmB,SAAnB;IAA8B,aAA9B;IAA6C,cAA7C;IAA6D;EAA7D,IAAmF,KAAzF;EAEA;;;AAGG;;EACH,MAAM,MAAM,GAAuB;IACjC,IADiC;IAEjC,SAFiC;IAGjC,SAHiC;IAIjC,aAJiC;IAKjC,cALiC;IAMjC;EANiC,CAAnC;EASA,MAAM,aAAa,GAA8B,KAAjD;EAEA,OAAO;IAAE,MAAF;IAAU;EAAV,CAAP;AACD","sourcesContent":["import type { DialogContextValue, DialogSurfaceContextValue } from '../../contexts';\nimport type { DialogContextValues, DialogState } from './Dialog.types';\n\nexport function useDialogContextValues_unstable(state: DialogState): DialogContextValues {\n const { modalType, open, dialogRef, dialogTitleId, isNestedDialog, requestOpenChange } = state;\n\n /**\n * This context is created with \"@fluentui/react-context-selector\",\n * there is no sense to memoize it\n */\n const dialog: DialogContextValue = {\n open,\n modalType,\n dialogRef,\n dialogTitleId,\n isNestedDialog,\n requestOpenChange,\n };\n\n const dialogSurface: DialogSurfaceContextValue = false;\n\n return { dialog, dialogSurface };\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAGA,OAAM,SAAUA,+BAA+B,CAACC,KAAkB;EAChE,MAAM;IAAEC,SAAS;IAAEC,IAAI;IAAEC,SAAS;IAAEC,aAAa;IAAEC,cAAc;IAAEC;EAAiB,CAAE,GAAGN,KAAK;EAE9F;;;;EAIA,MAAMO,MAAM,GAAuB;IACjCL,IAAI;IACJD,SAAS;IACTE,SAAS;IACTC,aAAa;IACbC,cAAc;IACdC;GACD;EAED,MAAME,aAAa,GAA8B,KAAK;EAEtD,OAAO;IAAED,MAAM;IAAEC;EAAa,CAAE;AAClC","names":["useDialogContextValues_unstable","state","modalType","open","dialogRef","dialogTitleId","isNestedDialog","requestOpenChange","dialog","dialogSurface"],"sourceRoot":"../src/","sources":["packages/react-components/react-dialog/src/components/Dialog/useDialogContextValues.ts"],"sourcesContent":["import type { DialogContextValue, DialogSurfaceContextValue } from '../../contexts';\nimport type { DialogContextValues, DialogState } from './Dialog.types';\n\nexport function useDialogContextValues_unstable(state: DialogState): DialogContextValues {\n const { modalType, open, dialogRef, dialogTitleId, isNestedDialog, requestOpenChange } = state;\n\n /**\n * This context is created with \"@fluentui/react-context-selector\",\n * there is no sense to memoize it\n */\n const dialog: DialogContextValue = {\n open,\n modalType,\n dialogRef,\n dialogTitleId,\n isNestedDialog,\n requestOpenChange,\n };\n\n const dialogSurface: DialogSurfaceContextValue = false;\n\n return { dialog, dialogSurface };\n}\n"]}
@@ -6,7 +6,6 @@ import { useDialogActionsStyles_unstable } from './useDialogActionsStyles';
6
6
  * `DialogActions` is a container for the actions of the dialog.
7
7
  * Apart from styling, this component does not have other behavior.
8
8
  */
9
-
10
9
  export const DialogActions = /*#__PURE__*/React.forwardRef((props, ref) => {
11
10
  const state = useDialogActions_unstable(props, ref);
12
11
  useDialogActionsStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/DialogActions/DialogActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AACA,SAAS,4BAAT,QAA6C,uBAA7C;AACA,SAAS,+BAAT,QAAgD,0BAAhD;AAIA;;;AAGG;;AACH,OAAO,MAAM,aAAa,gBAA4C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EACpG,MAAM,KAAK,GAAG,yBAAyB,CAAC,KAAD,EAAQ,GAAR,CAAvC;EAEA,+BAA+B,CAAC,KAAD,CAA/B;EACA,OAAO,4BAA4B,CAAC,KAAD,CAAnC;AACD,CALqE,CAA/D;AAOP,aAAa,CAAC,WAAd,GAA4B,eAA5B","sourcesContent":["import * as React from 'react';\nimport { useDialogActions_unstable } from './useDialogActions';\nimport { renderDialogActions_unstable } from './renderDialogActions';\nimport { useDialogActionsStyles_unstable } from './useDialogActionsStyles';\nimport type { DialogActionsProps } from './DialogActions.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * `DialogActions` is a container for the actions of the dialog.\n * Apart from styling, this component does not have other behavior.\n */\nexport const DialogActions: ForwardRefComponent<DialogActionsProps> = React.forwardRef((props, ref) => {\n const state = useDialogActions_unstable(props, ref);\n\n useDialogActionsStyles_unstable(state);\n return renderDialogActions_unstable(state);\n});\n\nDialogActions.displayName = 'DialogActions';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,yBAAyB,QAAQ,oBAAoB;AAC9D,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SAASC,+BAA+B,QAAQ,0BAA0B;AAI1E;;;;AAIA,OAAO,MAAMC,aAAa,gBAA4CJ,KAAK,CAACK,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EACpG,MAAMC,KAAK,GAAGP,yBAAyB,CAACK,KAAK,EAAEC,GAAG,CAAC;EAEnDJ,+BAA+B,CAACK,KAAK,CAAC;EACtC,OAAON,4BAA4B,CAACM,KAAK,CAAC;AAC5C,CAAC,CAAC;AAEFJ,aAAa,CAACK,WAAW,GAAG,eAAe","names":["React","useDialogActions_unstable","renderDialogActions_unstable","useDialogActionsStyles_unstable","DialogActions","forwardRef","props","ref","state","displayName"],"sourceRoot":"../src/","sources":["packages/react-components/react-dialog/src/components/DialogActions/DialogActions.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDialogActions_unstable } from './useDialogActions';\nimport { renderDialogActions_unstable } from './renderDialogActions';\nimport { useDialogActionsStyles_unstable } from './useDialogActionsStyles';\nimport type { DialogActionsProps } from './DialogActions.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * `DialogActions` is a container for the actions of the dialog.\n * Apart from styling, this component does not have other behavior.\n */\nexport const DialogActions: ForwardRefComponent<DialogActionsProps> = React.forwardRef((props, ref) => {\n const state = useDialogActions_unstable(props, ref);\n\n useDialogActionsStyles_unstable(state);\n return renderDialogActions_unstable(state);\n});\n\nDialogActions.displayName = 'DialogActions';\n"]}
@@ -3,14 +3,14 @@ import { getSlots } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Render the final JSX of DialogActions
5
5
  */
6
-
7
6
  export const renderDialogActions_unstable = state => {
8
7
  const {
9
8
  slots,
10
9
  slotProps
11
- } = getSlots(state); // TODO Add additional slots in the appropriate place
12
-
13
- return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
10
+ } = getSlots(state);
11
+ // TODO Add additional slots in the appropriate place
12
+ return /*#__PURE__*/React.createElement(slots.root, {
13
+ ...slotProps.root
14
14
  });
15
15
  };
16
16
  //# sourceMappingURL=renderDialogActions.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/DialogActions/renderDialogActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,4BAA4B,GAAI,KAAD,IAA8B;EACxE,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAqB,KAArB,CAArC,CADwE,CAGxE;;EACA,oBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAAP;AACD,CALM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { DialogActionsState, DialogActionsSlots } from './DialogActions.types';\n\n/**\n * Render the final JSX of DialogActions\n */\nexport const renderDialogActions_unstable = (state: DialogActionsState) => {\n const { slots, slotProps } = getSlots<DialogActionsSlots>(state);\n\n // TODO Add additional slots in the appropriate place\n return <slots.root {...slotProps.root} />;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAGpD;;;AAGA,OAAO,MAAMC,4BAA4B,GAAIC,KAAyB,IAAI;EACxE,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,QAAQ,CAAqBE,KAAK,CAAC;EAEhE;EACA,oBAAOH,oBAACI,KAAK,CAACE,IAAI;IAAA,GAAKD,SAAS,CAACC;EAAI,EAAI;AAC3C,CAAC","names":["React","getSlots","renderDialogActions_unstable","state","slots","slotProps","root"],"sourceRoot":"../src/","sources":["packages/react-components/react-dialog/src/components/DialogActions/renderDialogActions.tsx"],"sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { DialogActionsState, DialogActionsSlots } from './DialogActions.types';\n\n/**\n * Render the final JSX of DialogActions\n */\nexport const renderDialogActions_unstable = (state: DialogActionsState) => {\n const { slots, slotProps } = getSlots<DialogActionsSlots>(state);\n\n // TODO Add additional slots in the appropriate place\n return <slots.root {...slotProps.root} />;\n};\n"]}
@@ -8,7 +8,6 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
8
8
  * @param props - props from this instance of DialogActions
9
9
  * @param ref - reference to root HTMLElement of DialogActions
10
10
  */
11
-
12
11
  export const useDialogActions_unstable = (props, ref) => {
13
12
  const {
14
13
  position = 'end'
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/DialogActions/useDialogActions.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,yBAAyB,GAAG,CACvC,KADuC,EAEvC,GAFuC,KAGjB;EACtB,MAAM;IAAE,QAAQ,GAAG;EAAb,IAAuB,KAA7B;EACA,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE;IADI,CADP;IAIL,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;MACjC,GADiC;MAEjC,GAAG;IAF8B,CAAR,CAJtB;IAQL;EARK,CAAP;AAUD,CAfM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { DialogActionsProps, DialogActionsState } from './DialogActions.types';\n\n/**\n * Create the state required to render DialogActions.\n *\n * The returned state can be modified with hooks such as useDialogActionsStyles_unstable,\n * before being passed to renderDialogActions_unstable.\n *\n * @param props - props from this instance of DialogActions\n * @param ref - reference to root HTMLElement of DialogActions\n */\nexport const useDialogActions_unstable = (\n props: DialogActionsProps,\n ref: React.Ref<HTMLElement>,\n): DialogActionsState => {\n const { position = 'end' } = props;\n return {\n components: {\n root: 'div',\n },\n root: getNativeElementProps('div', {\n ref,\n ...props,\n }),\n position,\n };\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAGjE;;;;;;;;;AASA,OAAO,MAAMC,yBAAyB,GAAG,CACvCC,KAAyB,EACzBC,GAA2B,KACL;EACtB,MAAM;IAAEC,QAAQ,GAAG;EAAK,CAAE,GAAGF,KAAK;EAClC,OAAO;IACLG,UAAU,EAAE;MACVC,IAAI,EAAE;KACP;IACDA,IAAI,EAAEN,qBAAqB,CAAC,KAAK,EAAE;MACjCG,GAAG;MACH,GAAGD;KACJ,CAAC;IACFE;GACD;AACH,CAAC","names":["getNativeElementProps","useDialogActions_unstable","props","ref","position","components","root"],"sourceRoot":"../src/","sources":["packages/react-components/react-dialog/src/components/DialogActions/useDialogActions.ts"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps } from '@fluentui/react-utilities';\nimport type { DialogActionsProps, DialogActionsState } from './DialogActions.types';\n\n/**\n * Create the state required to render DialogActions.\n *\n * The returned state can be modified with hooks such as useDialogActionsStyles_unstable,\n * before being passed to renderDialogActions_unstable.\n *\n * @param props - props from this instance of DialogActions\n * @param ref - reference to root HTMLElement of DialogActions\n */\nexport const useDialogActions_unstable = (\n props: DialogActionsProps,\n ref: React.Ref<HTMLElement>,\n): DialogActionsState => {\n const { position = 'end' } = props;\n return {\n components: {\n root: 'div',\n },\n root: getNativeElementProps('div', {\n ref,\n ...props,\n }),\n position,\n };\n};\n"]}
@@ -3,44 +3,41 @@ import { DIALOG_GAP, ACTIONS_END_GRID_AREA, ACTIONS_START_GRID_AREA, MEDIA_QUERY
3
3
  export const dialogActionsClassNames = {
4
4
  root: 'fui-DialogActions'
5
5
  };
6
-
7
6
  const useStyles = /*#__PURE__*/__styles({
8
- "root": {
9
- "Bqenvij": "f3052tw",
10
- "B7ck84d": "f1ewtqcl",
11
- "mc9l5x": "f22iagw",
12
- "i8kkvl": "f4px1ci",
13
- "Belr9w4": "fn67r4l",
14
- "Bmdcpmo": "f6glcwc",
15
- "th9wkt": "f1e3st1r"
7
+ root: {
8
+ Bqenvij: "f3052tw",
9
+ B7ck84d: "f1ewtqcl",
10
+ mc9l5x: "f22iagw",
11
+ i8kkvl: "f4px1ci",
12
+ Belr9w4: "fn67r4l",
13
+ Bmdcpmo: "f6glcwc",
14
+ th9wkt: "f1e3st1r"
16
15
  },
17
- "gridPositionEnd": {
18
- "Bdqf98w": "f1a7i8kp",
19
- "Ijaq50": "f11u0jfc",
20
- "Br312pm": "f1d6tb1o",
21
- "nk6f5a": "f23awfp",
22
- "Bw0ie65": "fiappcv"
16
+ gridPositionEnd: {
17
+ Bdqf98w: "f1a7i8kp",
18
+ Ijaq50: "f11u0jfc",
19
+ Br312pm: "f1d6tb1o",
20
+ nk6f5a: "f23awfp",
21
+ Bw0ie65: "fiappcv"
23
22
  },
24
- "gridPositionStart": {
25
- "Bdqf98w": "fsxvdwy",
26
- "Ijaq50": "f1vnb230",
27
- "Br312pm": "f14781pt",
28
- "nk6f5a": "f13d374e",
29
- "Bw0ie65": "f1fjo411"
23
+ gridPositionStart: {
24
+ Bdqf98w: "fsxvdwy",
25
+ Ijaq50: "f1vnb230",
26
+ Br312pm: "f14781pt",
27
+ nk6f5a: "f13d374e",
28
+ Bw0ie65: "f1fjo411"
30
29
  }
31
30
  }, {
32
- "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;}"],
33
- "m": [["@media screen and (max-width: 480px){.f6glcwc{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}", {
34
- "m": "screen and (max-width: 480px)"
31
+ 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;}"],
32
+ m: [["@media screen and (max-width: 480px){.f6glcwc{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}", {
33
+ m: "screen and (max-width: 480px)"
35
34
  }], ["@media screen and (max-width: 480px){.f1e3st1r{justify-self:stretch;}}", {
36
- "m": "screen and (max-width: 480px)"
35
+ m: "screen and (max-width: 480px)"
37
36
  }]]
38
37
  });
39
38
  /**
40
39
  * Apply styling to the DialogActions slots based on the state
41
40
  */
42
-
43
-
44
41
  export const useDialogActionsStyles_unstable = state => {
45
42
  const styles = useStyles();
46
43
  state.root.className = mergeClasses(dialogActionsClassNames.root, styles.root, state.position === 'start' && styles.gridPositionStart, state.position === 'end' && styles.gridPositionEnd, state.root.className);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/DialogActions/useDialogActionsStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,EAAmC,UAAnC,QAAqD,gBAArD;AAGA,SACE,UADF,EAEE,qBAFF,EAGE,uBAHF,EAIE,+BAJF,QAKO,0BALP;AAOA,OAAO,MAAM,uBAAuB,GAAuC;EACzE,IAAI,EAAE;AADmE,CAApE;;AAIP,MAAM,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;EAAA;IAAA;EAAA;IAAA;EAAA;AAAA,EAAlB;AAqBA;;AAEG;;;AACH,OAAO,MAAM,+BAA+B,GAAI,KAAD,IAAkD;EAC/F,MAAM,MAAM,GAAG,SAAS,EAAxB;EACA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,uBAAuB,CAAC,IADS,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,QAAN,KAAmB,OAAnB,IAA8B,MAAM,CAAC,iBAHJ,EAIjC,KAAK,CAAC,QAAN,KAAmB,KAAnB,IAA4B,MAAM,CAAC,eAJF,EAKjC,KAAK,CAAC,IAAN,CAAW,SALsB,CAAnC;EAOA,OAAO,KAAP;AACD,CAVM","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"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,mBAAqBA,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AAGrE,SACEC,UAAU,EACVC,qBAAqB,EACrBC,uBAAuB,EACvBC,+BAA+B,QAC1B,0BAA0B;AAEjC,OAAO,MAAMC,uBAAuB,GAAuC;EACzEC,IAAI,EAAE;CACP;AAED,MAAMC,SAAS,gBAAG;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;EAAA;AAAA;EAAA;EAAA;IAAA;EAAA;IAAA;EAAA;AAAA,EAmBhB;AAEF;;;AAGA,OAAO,MAAMC,+BAA+B,GAAIC,KAAyB,IAAwB;EAC/F,MAAMC,MAAM,GAAGH,SAAS,EAAE;EAC1BE,KAAK,CAACH,IAAI,CAACK,SAAS,GAAGZ,YAAY,CACjCM,uBAAuB,CAACC,IAAI,EAC5BI,MAAM,CAACJ,IAAI,EACXG,KAAK,CAACG,QAAQ,KAAK,OAAO,IAAIF,MAAM,CAACG,iBAAiB,EACtDJ,KAAK,CAACG,QAAQ,KAAK,KAAK,IAAIF,MAAM,CAACI,eAAe,EAClDL,KAAK,CAACH,IAAI,CAACK,SAAS,CACrB;EACD,OAAOF,KAAK;AACd,CAAC","names":["mergeClasses","shorthands","DIALOG_GAP","ACTIONS_END_GRID_AREA","ACTIONS_START_GRID_AREA","MEDIA_QUERY_BREAKPOINT_SELECTOR","dialogActionsClassNames","root","useStyles","useDialogActionsStyles_unstable","state","styles","className","position","gridPositionStart","gridPositionEnd"],"sourceRoot":"../src/","sources":["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"]}
@@ -6,7 +6,6 @@ import { useDialogBodyStyles_unstable } from './useDialogBodyStyles';
6
6
  * The `DialogBody` is a container where the content of the dialog is rendered.
7
7
  * Apart from styling, this component does not have other behavior.
8
8
  */
9
-
10
9
  export const DialogBody = /*#__PURE__*/React.forwardRef((props, ref) => {
11
10
  const state = useDialogBody_unstable(props, ref);
12
11
  useDialogBodyStyles_unstable(state);
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/DialogBody/DialogBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AACA,SAAS,4BAAT,QAA6C,uBAA7C;AAIA;;;AAGG;;AACH,OAAO,MAAM,UAAU,gBAAyC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAC9F,MAAM,KAAK,GAAG,sBAAsB,CAAC,KAAD,EAAQ,GAAR,CAApC;EAEA,4BAA4B,CAAC,KAAD,CAA5B;EACA,OAAO,yBAAyB,CAAC,KAAD,CAAhC;AACD,CAL+D,CAAzD;AAOP,UAAU,CAAC,WAAX,GAAyB,YAAzB","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';\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 return renderDialogBody_unstable(state);\n});\n\nDialogBody.displayName = 'DialogBody';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,sBAAsB,QAAQ,iBAAiB;AACxD,SAASC,yBAAyB,QAAQ,oBAAoB;AAC9D,SAASC,4BAA4B,QAAQ,uBAAuB;AAIpE;;;;AAIA,OAAO,MAAMC,UAAU,gBAAyCJ,KAAK,CAACK,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAI;EAC9F,MAAMC,KAAK,GAAGP,sBAAsB,CAACK,KAAK,EAAEC,GAAG,CAAC;EAEhDJ,4BAA4B,CAACK,KAAK,CAAC;EACnC,OAAON,yBAAyB,CAACM,KAAK,CAAC;AACzC,CAAC,CAAC;AAEFJ,UAAU,CAACK,WAAW,GAAG,YAAY","names":["React","useDialogBody_unstable","renderDialogBody_unstable","useDialogBodyStyles_unstable","DialogBody","forwardRef","props","ref","state","displayName"],"sourceRoot":"../src/","sources":["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';\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 return renderDialogBody_unstable(state);\n});\n\nDialogBody.displayName = 'DialogBody';\n"]}
@@ -3,14 +3,14 @@ import { getSlots } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Render the final JSX of DialogBody
5
5
  */
6
-
7
6
  export const renderDialogBody_unstable = state => {
8
7
  const {
9
8
  slots,
10
9
  slotProps
11
- } = getSlots(state); // TODO Add additional slots in the appropriate place
12
-
13
- return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
10
+ } = getSlots(state);
11
+ // TODO Add additional slots in the appropriate place
12
+ return /*#__PURE__*/React.createElement(slots.root, {
13
+ ...slotProps.root
14
14
  });
15
15
  };
16
16
  //# sourceMappingURL=renderDialogBody.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/DialogBody/renderDialogBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,yBAAyB,GAAI,KAAD,IAA2B;EAClE,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAkB,KAAlB,CAArC,CADkE,CAGlE;;EACA,oBAAO,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,CAAP;AACD,CALM","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"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,2BAA2B;AAGpD;;;AAGA,OAAO,MAAMC,yBAAyB,GAAIC,KAAsB,IAAI;EAClE,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAE,GAAGJ,QAAQ,CAAkBE,KAAK,CAAC;EAE7D;EACA,oBAAOH,oBAACI,KAAK,CAACE,IAAI;IAAA,GAAKD,SAAS,CAACC;EAAI,EAAI;AAC3C,CAAC","names":["React","getSlots","renderDialogBody_unstable","state","slots","slotProps","root"],"sourceRoot":"../src/","sources":["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"]}
@@ -8,10 +8,8 @@ import { getNativeElementProps } from '@fluentui/react-utilities';
8
8
  * @param props - props from this instance of DialogBody
9
9
  * @param ref - reference to root HTMLElement of DialogBody
10
10
  */
11
-
12
11
  export const useDialogBody_unstable = (props, ref) => {
13
12
  var _a;
14
-
15
13
  return {
16
14
  components: {
17
15
  root: 'div'
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-dialog/src/components/DialogBody/useDialogBody.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAGA;;;;;;;;AAQG;;AACH,OAAO,MAAM,sBAAsB,GAAG,CAAC,KAAD,EAAyB,GAAzB,KAAyE;;;EAC7G,OAAO;IACL,UAAU,EAAE;MACV,IAAI,EAAE;IADI,CADP;IAIL,IAAI,EAAE,qBAAqB,CAAC,CAAA,EAAA,GAAA,KAAK,CAAC,EAAN,MAAQ,IAAR,IAAQ,EAAA,KAAA,KAAA,CAAR,GAAQ,EAAR,GAAY,KAAb,EAAoB;MAC7C,GAD6C;MAE7C,GAAG;IAF0C,CAApB;EAJtB,CAAP;AASD,CAVM","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"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AACA,SAASA,qBAAqB,QAAQ,2BAA2B;AAGjE;;;;;;;;;AASA,OAAO,MAAMC,sBAAsB,GAAG,CAACC,KAAsB,EAAEC,GAA2B,KAAqB;;EAC7G,OAAO;IACLC,UAAU,EAAE;MACVC,IAAI,EAAE;KACP;IACDA,IAAI,EAAEL,qBAAqB,CAAC,WAAK,CAACM,EAAE,mCAAI,KAAK,EAAE;MAC7CH,GAAG;MACH,GAAGD;KACJ;GACF;AACH,CAAC","names":["getNativeElementProps","useDialogBody_unstable","props","ref","components","root","as"],"sourceRoot":"../src/","sources":["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"]}
@@ -6,42 +6,39 @@ export const dialogBodyClassNames = {
6
6
  /**
7
7
  * Styles for the root slot
8
8
  */
9
-
10
9
  const useStyles = /*#__PURE__*/__styles({
11
- "root": {
12
- "mc9l5x": "f13qh94s",
13
- "fshzfu": "f120kxnn",
14
- "a9b677": "fly5x3f",
15
- "Bqenvij": "f3052tw",
16
- "B2u0y6b": "fvgz9i8",
17
- "Bxyxcbc": "flnwrvu",
18
- "B7ck84d": "f1ewtqcl",
19
- "wkccdc": "f874eam",
20
- "Budl1dq": "fjj47a5",
21
- "zoa1oz": "fe34spp",
22
- "B68tc82": "f1ln0qer",
23
- "Bmxbyg5": "fa2wlxz",
24
- "i8kkvl": "f4px1ci",
25
- "Belr9w4": "fn67r4l",
26
- "B5xtmjs": "ff54dml",
27
- "Bqu9lor": "f52bj20",
28
- "B06wobe": "f1dangjo"
10
+ root: {
11
+ mc9l5x: "f13qh94s",
12
+ fshzfu: "f120kxnn",
13
+ a9b677: "fly5x3f",
14
+ Bqenvij: "f3052tw",
15
+ B2u0y6b: "fvgz9i8",
16
+ Bxyxcbc: "flnwrvu",
17
+ B7ck84d: "f1ewtqcl",
18
+ wkccdc: "f874eam",
19
+ Budl1dq: "fjj47a5",
20
+ zoa1oz: "fe34spp",
21
+ B68tc82: "f1ln0qer",
22
+ Bmxbyg5: "fa2wlxz",
23
+ i8kkvl: "f4px1ci",
24
+ Belr9w4: "fn67r4l",
25
+ B5xtmjs: "ff54dml",
26
+ Bqu9lor: "f52bj20",
27
+ B06wobe: "f1dangjo"
29
28
  }
30
29
  }, {
31
- "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;}"],
32
- "m": [["@media screen and (max-width: 480px){.ff54dml{max-width:100vw;}}", {
33
- "m": "screen and (max-width: 480px)"
30
+ 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;}"],
31
+ m: [["@media screen and (max-width: 480px){.ff54dml{max-width:100vw;}}", {
32
+ m: "screen and (max-width: 480px)"
34
33
  }], ["@media screen and (max-width: 480px){.f52bj20{grid-template-rows:auto 1fr auto auto;}}", {
35
- "m": "screen and (max-width: 480px)"
34
+ m: "screen and (max-width: 480px)"
36
35
  }], ["@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\";}}", {
37
- "m": "screen and (max-width: 480px)"
36
+ m: "screen and (max-width: 480px)"
38
37
  }]]
39
38
  });
40
39
  /**
41
40
  * Apply styling to the DialogBody slots based on the state
42
41
  */
43
-
44
-
45
42
  export const useDialogBodyStyles_unstable = state => {
46
43
  const styles = useStyles();
47
44
  state.root.className = mergeClasses(dialogBodyClassNames.root, styles.root, state.root.className);