@fluentui/react-dialog 9.5.26 → 9.6.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 (149) hide show
  1. package/CHANGELOG.json +139 -1
  2. package/CHANGELOG.md +38 -2
  3. package/dist/index.d.ts +3 -2
  4. package/lib/components/Dialog/Dialog.js.map +1 -1
  5. package/lib/components/Dialog/renderDialog.js +12 -7
  6. package/lib/components/Dialog/renderDialog.js.map +1 -1
  7. package/lib/components/Dialog/useDialog.js +7 -4
  8. package/lib/components/Dialog/useDialog.js.map +1 -1
  9. package/lib/components/Dialog/useDialogContextValues.js +1 -1
  10. package/lib/components/Dialog/useDialogContextValues.js.map +1 -1
  11. package/lib/components/DialogActions/DialogActions.js.map +1 -1
  12. package/lib/components/DialogActions/renderDialogActions.js +2 -2
  13. package/lib/components/DialogActions/renderDialogActions.js.map +1 -1
  14. package/lib/components/DialogActions/useDialogActions.js +1 -1
  15. package/lib/components/DialogActions/useDialogActions.js.map +1 -1
  16. package/lib/components/DialogActions/useDialogActionsStyles.styles.js +12 -2
  17. package/lib/components/DialogActions/useDialogActionsStyles.styles.js.map +1 -1
  18. package/lib/components/DialogBody/DialogBody.js.map +1 -1
  19. package/lib/components/DialogBody/renderDialogBody.js +2 -2
  20. package/lib/components/DialogBody/renderDialogBody.js.map +1 -1
  21. package/lib/components/DialogBody/useDialogBody.js.map +1 -1
  22. package/lib/components/DialogContent/DialogContent.js.map +1 -1
  23. package/lib/components/DialogContent/renderDialogContent.js +2 -2
  24. package/lib/components/DialogContent/renderDialogContent.js.map +1 -1
  25. package/lib/components/DialogContent/useDialogContent.js.map +1 -1
  26. package/lib/components/DialogSurface/DialogSurface.js.map +1 -1
  27. package/lib/components/DialogSurface/DialogSurface.types.js.map +1 -1
  28. package/lib/components/DialogSurface/renderDialogSurface.js +11 -4
  29. package/lib/components/DialogSurface/renderDialogSurface.js.map +1 -1
  30. package/lib/components/DialogSurface/useDialogSurface.js +4 -3
  31. package/lib/components/DialogSurface/useDialogSurface.js.map +1 -1
  32. package/lib/components/DialogSurface/useDialogSurfaceContextValues.js.map +1 -1
  33. package/lib/components/DialogTitle/DialogTitle.js.map +1 -1
  34. package/lib/components/DialogTitle/renderDialogTitle.js +9 -2
  35. package/lib/components/DialogTitle/renderDialogTitle.js.map +1 -1
  36. package/lib/components/DialogTitle/useDialogTitle.js +1 -1
  37. package/lib/components/DialogTitle/useDialogTitle.js.map +1 -1
  38. package/lib/components/DialogTrigger/DialogTrigger.js.map +1 -1
  39. package/lib/components/DialogTrigger/useDialogTrigger.js +8 -7
  40. package/lib/components/DialogTrigger/useDialogTrigger.js.map +1 -1
  41. package/lib/contexts/dialogContext.js.map +1 -1
  42. package/lib/contexts/dialogSurfaceContext.js.map +1 -1
  43. package/lib/utils/useDisableBodyScroll.js +2 -2
  44. package/lib/utils/useDisableBodyScroll.js.map +1 -1
  45. package/lib/utils/useFocusFirstElement.js +5 -6
  46. package/lib/utils/useFocusFirstElement.js.map +1 -1
  47. package/lib-commonjs/Dialog.js +2 -2
  48. package/lib-commonjs/Dialog.js.map +1 -1
  49. package/lib-commonjs/DialogActions.js +2 -2
  50. package/lib-commonjs/DialogActions.js.map +1 -1
  51. package/lib-commonjs/DialogBody.js +2 -2
  52. package/lib-commonjs/DialogBody.js.map +1 -1
  53. package/lib-commonjs/DialogContent.js +2 -2
  54. package/lib-commonjs/DialogContent.js.map +1 -1
  55. package/lib-commonjs/DialogSurface.js +2 -2
  56. package/lib-commonjs/DialogSurface.js.map +1 -1
  57. package/lib-commonjs/DialogTitle.js +2 -2
  58. package/lib-commonjs/DialogTitle.js.map +1 -1
  59. package/lib-commonjs/DialogTrigger.js +2 -2
  60. package/lib-commonjs/DialogTrigger.js.map +1 -1
  61. package/lib-commonjs/components/Dialog/Dialog.js +5 -3
  62. package/lib-commonjs/components/Dialog/Dialog.js.map +1 -1
  63. package/lib-commonjs/components/Dialog/index.js +5 -5
  64. package/lib-commonjs/components/Dialog/index.js.map +1 -1
  65. package/lib-commonjs/components/Dialog/renderDialog.js +16 -9
  66. package/lib-commonjs/components/Dialog/renderDialog.js.map +1 -1
  67. package/lib-commonjs/components/Dialog/useDialog.js +20 -15
  68. package/lib-commonjs/components/Dialog/useDialog.js.map +1 -1
  69. package/lib-commonjs/components/Dialog/useDialogContextValues.js +4 -2
  70. package/lib-commonjs/components/Dialog/useDialogContextValues.js.map +1 -1
  71. package/lib-commonjs/components/DialogActions/DialogActions.js +9 -7
  72. package/lib-commonjs/components/DialogActions/DialogActions.js.map +1 -1
  73. package/lib-commonjs/components/DialogActions/index.js +6 -6
  74. package/lib-commonjs/components/DialogActions/index.js.map +1 -1
  75. package/lib-commonjs/components/DialogActions/renderDialogActions.js +8 -6
  76. package/lib-commonjs/components/DialogActions/renderDialogActions.js.map +1 -1
  77. package/lib-commonjs/components/DialogActions/useDialogActions.js +8 -6
  78. package/lib-commonjs/components/DialogActions/useDialogActions.js.map +1 -1
  79. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.styles.js +31 -5
  80. package/lib-commonjs/components/DialogActions/useDialogActionsStyles.styles.js.map +1 -1
  81. package/lib-commonjs/components/DialogBody/DialogBody.js +9 -7
  82. package/lib-commonjs/components/DialogBody/DialogBody.js.map +1 -1
  83. package/lib-commonjs/components/DialogBody/index.js +6 -6
  84. package/lib-commonjs/components/DialogBody/index.js.map +1 -1
  85. package/lib-commonjs/components/DialogBody/renderDialogBody.js +8 -6
  86. package/lib-commonjs/components/DialogBody/renderDialogBody.js.map +1 -1
  87. package/lib-commonjs/components/DialogBody/useDialogBody.js +7 -5
  88. package/lib-commonjs/components/DialogBody/useDialogBody.js.map +1 -1
  89. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.styles.js +7 -3
  90. package/lib-commonjs/components/DialogBody/useDialogBodyStyles.styles.js.map +1 -1
  91. package/lib-commonjs/components/DialogContent/DialogContent.js +9 -7
  92. package/lib-commonjs/components/DialogContent/DialogContent.js.map +1 -1
  93. package/lib-commonjs/components/DialogContent/index.js +6 -6
  94. package/lib-commonjs/components/DialogContent/index.js.map +1 -1
  95. package/lib-commonjs/components/DialogContent/renderDialogContent.js +8 -6
  96. package/lib-commonjs/components/DialogContent/renderDialogContent.js.map +1 -1
  97. package/lib-commonjs/components/DialogContent/useDialogContent.js +7 -5
  98. package/lib-commonjs/components/DialogContent/useDialogContent.js.map +1 -1
  99. package/lib-commonjs/components/DialogContent/useDialogContentStyles.styles.js +7 -3
  100. package/lib-commonjs/components/DialogContent/useDialogContentStyles.styles.js.map +1 -1
  101. package/lib-commonjs/components/DialogSurface/DialogSurface.js +9 -7
  102. package/lib-commonjs/components/DialogSurface/DialogSurface.js.map +1 -1
  103. package/lib-commonjs/components/DialogSurface/index.js +6 -6
  104. package/lib-commonjs/components/DialogSurface/index.js.map +1 -1
  105. package/lib-commonjs/components/DialogSurface/renderDialogSurface.js +18 -9
  106. package/lib-commonjs/components/DialogSurface/renderDialogSurface.js.map +1 -1
  107. package/lib-commonjs/components/DialogSurface/useDialogSurface.js +18 -15
  108. package/lib-commonjs/components/DialogSurface/useDialogSurface.js.map +1 -1
  109. package/lib-commonjs/components/DialogSurface/useDialogSurfaceContextValues.js +3 -1
  110. package/lib-commonjs/components/DialogSurface/useDialogSurfaceContextValues.js.map +1 -1
  111. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.styles.js +7 -3
  112. package/lib-commonjs/components/DialogSurface/useDialogSurfaceStyles.styles.js.map +1 -1
  113. package/lib-commonjs/components/DialogTitle/DialogTitle.js +9 -7
  114. package/lib-commonjs/components/DialogTitle/DialogTitle.js.map +1 -1
  115. package/lib-commonjs/components/DialogTitle/index.js +6 -6
  116. package/lib-commonjs/components/DialogTitle/index.js.map +1 -1
  117. package/lib-commonjs/components/DialogTitle/renderDialogTitle.js +15 -6
  118. package/lib-commonjs/components/DialogTitle/renderDialogTitle.js.map +1 -1
  119. package/lib-commonjs/components/DialogTitle/useDialogTitle.js +15 -13
  120. package/lib-commonjs/components/DialogTitle/useDialogTitle.js.map +1 -1
  121. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.styles.js +11 -5
  122. package/lib-commonjs/components/DialogTitle/useDialogTitleStyles.styles.js.map +1 -1
  123. package/lib-commonjs/components/DialogTrigger/DialogTrigger.js +5 -3
  124. package/lib-commonjs/components/DialogTrigger/DialogTrigger.js.map +1 -1
  125. package/lib-commonjs/components/DialogTrigger/DialogTrigger.types.js +2 -2
  126. package/lib-commonjs/components/DialogTrigger/DialogTrigger.types.js.map +1 -1
  127. package/lib-commonjs/components/DialogTrigger/index.js +5 -5
  128. package/lib-commonjs/components/DialogTrigger/index.js.map +1 -1
  129. package/lib-commonjs/components/DialogTrigger/renderDialogTrigger.js +3 -1
  130. package/lib-commonjs/components/DialogTrigger/renderDialogTrigger.js.map +1 -1
  131. package/lib-commonjs/components/DialogTrigger/useDialogTrigger.js +19 -16
  132. package/lib-commonjs/components/DialogTrigger/useDialogTrigger.js.map +1 -1
  133. package/lib-commonjs/contexts/constants.js +12 -4
  134. package/lib-commonjs/contexts/constants.js.map +1 -1
  135. package/lib-commonjs/contexts/dialogContext.js +14 -8
  136. package/lib-commonjs/contexts/dialogContext.js.map +1 -1
  137. package/lib-commonjs/contexts/dialogSurfaceContext.js +9 -3
  138. package/lib-commonjs/contexts/dialogSurfaceContext.js.map +1 -1
  139. package/lib-commonjs/contexts/index.js +4 -4
  140. package/lib-commonjs/contexts/index.js.map +1 -1
  141. package/lib-commonjs/index.js +100 -38
  142. package/lib-commonjs/index.js.map +1 -1
  143. package/lib-commonjs/utils/index.js +3 -3
  144. package/lib-commonjs/utils/index.js.map +1 -1
  145. package/lib-commonjs/utils/useDisableBodyScroll.js +9 -5
  146. package/lib-commonjs/utils/useDisableBodyScroll.js.map +1 -1
  147. package/lib-commonjs/utils/useFocusFirstElement.js +12 -11
  148. package/lib-commonjs/utils/useFocusFirstElement.js.map +1 -1
  149. package/package.json +15 -15
@@ -4,35 +4,37 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useDialogTitle_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useDialogTitle_unstable
7
+ get: function() {
8
+ return useDialogTitle_unstable;
9
+ }
8
10
  });
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");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
12
14
  const _dialogContext = require("../../contexts/dialogContext");
13
- const _reactIcons = require("@fluentui/react-icons");
14
- const _dialogTrigger = require("../DialogTrigger/DialogTrigger");
15
- const _useDialogTitleStylesStyles = require("./useDialogTitleStyles.styles");
15
+ const _reacticons = require("@fluentui/react-icons");
16
+ const _DialogTrigger = require("../DialogTrigger/DialogTrigger");
17
+ const _useDialogTitleStylesstyles = require("./useDialogTitleStyles.styles");
16
18
  const useDialogTitle_unstable = (props, ref)=>{
17
- const { as , action } = props;
19
+ const { as, action } = props;
18
20
  const modalType = (0, _dialogContext.useDialogContext_unstable)((ctx)=>ctx.modalType);
19
- const internalStyles = (0, _useDialogTitleStylesStyles.useDialogTitleInternalStyles)();
21
+ const internalStyles = (0, _useDialogTitleStylesstyles.useDialogTitleInternalStyles)();
20
22
  return {
21
23
  components: {
22
24
  root: 'h2',
23
25
  action: 'div'
24
26
  },
25
- root: _reactUtilities.slot.always((0, _reactUtilities.getNativeElementProps)(as !== null && as !== void 0 ? as : 'h2', {
27
+ root: _reactutilities.slot.always((0, _reactutilities.getNativeElementProps)(as !== null && as !== void 0 ? as : 'h2', {
26
28
  ref,
27
29
  id: (0, _dialogContext.useDialogContext_unstable)((ctx)=>ctx.dialogTitleId),
28
30
  ...props
29
31
  }), {
30
32
  elementType: 'h2'
31
33
  }),
32
- action: _reactUtilities.slot.optional(action, {
34
+ action: _reactutilities.slot.optional(action, {
33
35
  renderByDefault: modalType === 'non-modal',
34
36
  defaultProps: {
35
- children: /*#__PURE__*/ _react.createElement(_dialogTrigger.DialogTrigger, {
37
+ children: /*#__PURE__*/ _react.createElement(_DialogTrigger.DialogTrigger, {
36
38
  disableButtonEnhancement: true,
37
39
  action: "close"
38
40
  }, /*#__PURE__*/ _react.createElement("button", {
@@ -40,7 +42,7 @@ const useDialogTitle_unstable = (props, ref)=>{
40
42
  className: internalStyles.button,
41
43
  // TODO: find a better way to add internal labels
42
44
  "aria-label": "close"
43
- }, /*#__PURE__*/ _react.createElement(_reactIcons.Dismiss20Regular, null)))
45
+ }, /*#__PURE__*/ _react.createElement(_reacticons.Dismiss20Regular, null)))
44
46
  },
45
47
  elementType: 'div'
46
48
  })
@@ -1 +1 @@
1
- {"version":3,"sources":["useDialogTitle.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\nimport { useDialogContext_unstable } from '../../contexts/dialogContext';\nimport { Dismiss20Regular } from '@fluentui/react-icons';\nimport { DialogTrigger } from '../DialogTrigger/DialogTrigger';\nimport { useDialogTitleInternalStyles } from './useDialogTitleStyles.styles';\n/**\n * Create the state required to render DialogTitle.\n *\n * The returned state can be modified with hooks such as useDialogTitleStyles_unstable,\n * before being passed to renderDialogTitle_unstable.\n *\n * @param props - props from this instance of DialogTitle\n * @param ref - reference to root HTMLElement of DialogTitle\n */ export const useDialogTitle_unstable = (props, ref)=>{\n const { as , action } = props;\n const modalType = useDialogContext_unstable((ctx)=>ctx.modalType);\n const internalStyles = useDialogTitleInternalStyles();\n return {\n components: {\n root: 'h2',\n action: 'div'\n },\n root: slot.always(getNativeElementProps(as !== null && as !== void 0 ? as : 'h2', {\n ref,\n id: useDialogContext_unstable((ctx)=>ctx.dialogTitleId),\n ...props\n }), {\n elementType: 'h2'\n }),\n action: slot.optional(action, {\n renderByDefault: modalType === 'non-modal',\n defaultProps: {\n children: /*#__PURE__*/ React.createElement(DialogTrigger, {\n disableButtonEnhancement: true,\n action: \"close\"\n }, /*#__PURE__*/ React.createElement(\"button\", {\n type: \"button\",\n className: internalStyles.button,\n // TODO: find a better way to add internal labels\n \"aria-label\": \"close\"\n }, /*#__PURE__*/ React.createElement(Dismiss20Regular, null)))\n },\n elementType: 'div'\n })\n };\n};\n"],"names":["useDialogTitle_unstable","props","ref","as","action","modalType","useDialogContext_unstable","ctx","internalStyles","useDialogTitleInternalStyles","components","root","slot","always","getNativeElementProps","id","dialogTitleId","elementType","optional","renderByDefault","defaultProps","children","React","createElement","DialogTrigger","disableButtonEnhancement","type","className","button","Dismiss20Regular"],"mappings":";;;;+BAciBA;;aAAAA;;;6DAdM;gCACqB;+BACF;4BACT;+BACH;4CACe;AASlC,MAAMA,0BAA0B,CAACC,OAAOC,MAAM;IACrD,MAAM,EAAEC,GAAE,EAAGC,OAAM,EAAG,GAAGH;IACzB,MAAMI,YAAYC,IAAAA,wCAAyB,EAAC,CAACC,MAAMA,IAAIF,SAAS;IAChE,MAAMG,iBAAiBC,IAAAA,wDAA4B;IACnD,OAAO;QACHC,YAAY;YACRC,MAAM;YACNP,QAAQ;QACZ;QACAO,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAACX,OAAO,IAAI,IAAIA,OAAO,KAAK,IAAIA,KAAK,IAAI,EAAE;YAC9ED;YACAa,IAAIT,IAAAA,wCAAyB,EAAC,CAACC,MAAMA,IAAIS,aAAa;YACtD,GAAGf,KAAK;QACZ,IAAI;YACAgB,aAAa;QACjB;QACAb,QAAQQ,oBAAI,CAACM,QAAQ,CAACd,QAAQ;YAC1Be,iBAAiBd,cAAc;YAC/Be,cAAc;gBACVC,UAAU,WAAW,GAAGC,OAAMC,aAAa,CAACC,4BAAa,EAAE;oBACvDC,0BAA0B,IAAI;oBAC9BrB,QAAQ;gBACZ,GAAG,WAAW,GAAGkB,OAAMC,aAAa,CAAC,UAAU;oBAC3CG,MAAM;oBACNC,WAAWnB,eAAeoB,MAAM;oBAChC,iDAAiD;oBACjD,cAAc;gBAClB,GAAG,WAAW,GAAGN,OAAMC,aAAa,CAACM,4BAAgB,EAAE,IAAI;YAC/D;YACAZ,aAAa;QACjB;IACJ;AACJ"}
1
+ {"version":3,"sources":["useDialogTitle.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\nimport { useDialogContext_unstable } from '../../contexts/dialogContext';\nimport { Dismiss20Regular } from '@fluentui/react-icons';\nimport { DialogTrigger } from '../DialogTrigger/DialogTrigger';\nimport { useDialogTitleInternalStyles } from './useDialogTitleStyles.styles';\n/**\n * Create the state required to render DialogTitle.\n *\n * The returned state can be modified with hooks such as useDialogTitleStyles_unstable,\n * before being passed to renderDialogTitle_unstable.\n *\n * @param props - props from this instance of DialogTitle\n * @param ref - reference to root HTMLElement of DialogTitle\n */ export const useDialogTitle_unstable = (props, ref)=>{\n const { as, action } = props;\n const modalType = useDialogContext_unstable((ctx)=>ctx.modalType);\n const internalStyles = useDialogTitleInternalStyles();\n return {\n components: {\n root: 'h2',\n action: 'div'\n },\n root: slot.always(getNativeElementProps(as !== null && as !== void 0 ? as : 'h2', {\n ref,\n id: useDialogContext_unstable((ctx)=>ctx.dialogTitleId),\n ...props\n }), {\n elementType: 'h2'\n }),\n action: slot.optional(action, {\n renderByDefault: modalType === 'non-modal',\n defaultProps: {\n children: /*#__PURE__*/ React.createElement(DialogTrigger, {\n disableButtonEnhancement: true,\n action: \"close\"\n }, /*#__PURE__*/ React.createElement(\"button\", {\n type: \"button\",\n className: internalStyles.button,\n // TODO: find a better way to add internal labels\n \"aria-label\": \"close\"\n }, /*#__PURE__*/ React.createElement(Dismiss20Regular, null)))\n },\n elementType: 'div'\n })\n };\n};\n"],"names":["useDialogTitle_unstable","props","ref","as","action","modalType","useDialogContext_unstable","ctx","internalStyles","useDialogTitleInternalStyles","components","root","slot","always","getNativeElementProps","id","dialogTitleId","elementType","optional","renderByDefault","defaultProps","children","React","createElement","DialogTrigger","disableButtonEnhancement","type","className","button","Dismiss20Regular"],"mappings":";;;;+BAciBA;;;eAAAA;;;;iEAdM;gCACqB;+BACF;4BACT;+BACH;4CACe;AASlC,MAAMA,0BAA0B,CAACC,OAAOC;IAC/C,MAAM,EAAEC,EAAE,EAAEC,MAAM,EAAE,GAAGH;IACvB,MAAMI,YAAYC,IAAAA,wCAAyB,EAAC,CAACC,MAAMA,IAAIF,SAAS;IAChE,MAAMG,iBAAiBC,IAAAA,wDAA4B;IACnD,OAAO;QACHC,YAAY;YACRC,MAAM;YACNP,QAAQ;QACZ;QACAO,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAACX,OAAO,QAAQA,OAAO,KAAK,IAAIA,KAAK,MAAM;YAC9ED;YACAa,IAAIT,IAAAA,wCAAyB,EAAC,CAACC,MAAMA,IAAIS,aAAa;YACtD,GAAGf,KAAK;QACZ,IAAI;YACAgB,aAAa;QACjB;QACAb,QAAQQ,oBAAI,CAACM,QAAQ,CAACd,QAAQ;YAC1Be,iBAAiBd,cAAc;YAC/Be,cAAc;gBACVC,UAAU,WAAW,GAAGC,OAAMC,aAAa,CAACC,4BAAa,EAAE;oBACvDC,0BAA0B;oBAC1BrB,QAAQ;gBACZ,GAAG,WAAW,GAAGkB,OAAMC,aAAa,CAAC,UAAU;oBAC3CG,MAAM;oBACNC,WAAWnB,eAAeoB,MAAM;oBAChC,iDAAiD;oBACjD,cAAc;gBAClB,GAAG,WAAW,GAAGN,OAAMC,aAAa,CAACM,4BAAgB,EAAE;YAC3D;YACAZ,aAAa;QACjB;IACJ;AACJ"}
@@ -9,9 +9,15 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- dialogTitleClassNames: ()=>dialogTitleClassNames,
13
- useDialogTitleInternalStyles: ()=>useDialogTitleInternalStyles,
14
- useDialogTitleStyles_unstable: ()=>useDialogTitleStyles_unstable
12
+ dialogTitleClassNames: function() {
13
+ return dialogTitleClassNames;
14
+ },
15
+ useDialogTitleInternalStyles: function() {
16
+ return useDialogTitleInternalStyles;
17
+ },
18
+ useDialogTitleStyles_unstable: function() {
19
+ return useDialogTitleStyles_unstable;
20
+ }
15
21
  });
16
22
  const _react = require("@griffel/react");
17
23
  const dialogTitleClassNames = {
@@ -20,7 +26,7 @@ const dialogTitleClassNames = {
20
26
  };
21
27
  /**
22
28
  * Styles for the root slot
23
- */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
29
+ */ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
24
30
  root: {
25
31
  Ijaq50: "f16hsg94",
26
32
  nk6f5a: "f1amvztq",
@@ -71,7 +77,7 @@ const dialogTitleClassNames = {
71
77
  ".f9h729m{align-self:start;}"
72
78
  ]
73
79
  });
74
- const useDialogTitleInternalStyles = /*#__PURE__*/ (0, _react["__styles"])({
80
+ const useDialogTitleInternalStyles = /*#__PURE__*/ (0, _react.__styles)({
75
81
  button: {
76
82
  qhf8xq: "f10pi13n",
77
83
  B7ck84d: "f1e4lqlz",
@@ -1 +1 @@
1
- {"version":3,"sources":["useDialogTitleStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nexport const dialogTitleClassNames = {\n root: 'fui-DialogTitle',\n action: 'fui-DialogTitle__action'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n Ijaq50: \"f16hsg94\",\n nk6f5a: \"f1amvztq\",\n Br312pm: \"fwpfdsa\",\n Bw0ie65: \"fz1yyy6\",\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f1pp30po\",\n Bhrd7zp: \"fl43uef\",\n Bg96gwp: \"f106mvju\",\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"]\n },\n rootWithoutAction: {\n Bw0ie65: \"fsyjsko\"\n },\n action: {\n Ijaq50: \"f16hsg94\",\n nk6f5a: \"f1amvztq\",\n Br312pm: \"fis13di\",\n Bdqf98w: \"f1a7i8kp\",\n qb2dma: \"f9h729m\"\n }\n}, {\n d: [\".f16hsg94{grid-row-start:1;}\", \".f1amvztq{grid-row-end:1;}\", \".fwpfdsa{grid-column-start:1;}\", \".fz1yyy6{grid-column-end:3;}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".f1pp30po{font-size:var(--fontSizeBase500);}\", \".fl43uef{font-weight:var(--fontWeightSemibold);}\", \".f106mvju{line-height:var(--lineHeightBase500);}\", \".f1hu3pq6{margin-top:0;}\", \".f11qmguv{margin-right:0;}\", \".f1tyq0we{margin-left:0;}\", \".f19f4twv{margin-bottom:0;}\", \".fsyjsko{grid-column-end:4;}\", \".fis13di{grid-column-start:3;}\", \".f1a7i8kp{justify-self:end;}\", \".f9h729m{align-self:start;}\"]\n});\n/**\n * Styles to be applied on internal elements used by default action on non-modal Dialog\n * @internal\n */\nexport const useDialogTitleInternalStyles = /*#__PURE__*/__styles({\n button: {\n qhf8xq: \"f10pi13n\",\n B7ck84d: \"f1e4lqlz\",\n De3pzq: \"f1u2r49w\",\n sj55zd: \"f1ym3bx4\",\n Bahqtrf: \"f1mo0ibp\",\n Be2twd7: \"fjoy568\",\n Bceei9c: \"f1k6fduh\",\n Bg96gwp: \"fez10in\",\n B68tc82: \"f1mtd64y\",\n Bmxbyg5: \"f1y7q3j9\",\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n icvyot: \"f1ern45e\",\n vrafjx: [\"f1n71otn\", \"f1deefiw\"],\n oivjwe: \"f1h8hb77\",\n wvpqe5: [\"f1deefiw\", \"f1n71otn\"],\n Bv0vk6g: \"f37px4s\",\n fsow6f: \"fgusgyc\",\n Brovlpu: \"ftqa4ok\",\n B486eqv: \"f2hkw1w\",\n B8q5s1w: \"f8hki3x\",\n Bci5o5g: [\"f1d2448m\", \"ffh67wi\"],\n n8qw10: \"f1bjia2o\",\n Bdrgwmp: [\"ffh67wi\", \"f1d2448m\"],\n Bm4h7ae: \"f15bsgw9\",\n B7ys5i9: \"f14e48fq\",\n Busjfv9: \"f18yb2kv\",\n Bhk32uz: \"fd6o370\",\n Bf4ptjt: \"fh1cnn4\",\n kclons: [\"fy7oxxb\", \"f184ne2d\"],\n Bhdgwq3: \"fpukqih\",\n Blkhhs4: [\"f184ne2d\", \"fy7oxxb\"],\n Bqtpl0w: \"frrh606\",\n clg4pj: [\"f1v5zibi\", \"fo2hd23\"],\n hgwjuy: \"ful5kiu\",\n Bonggc9: [\"fo2hd23\", \"f1v5zibi\"],\n B1tsrr9: [\"f1jqcqds\", \"ftffrms\"],\n Dah5zi: [\"ftffrms\", \"f1jqcqds\"],\n Bkh64rk: [\"f2e7qr6\", \"fsr1zz6\"],\n qqdqy8: [\"fsr1zz6\", \"f2e7qr6\"],\n B6dhp37: \"f1dvezut\",\n i03rao: [\"fd0oaoj\", \"f1cwg4i8\"],\n Boxcth7: \"fjvm52t\",\n Bsom6fd: [\"f1cwg4i8\", \"fd0oaoj\"],\n J0r882: \"f57olzd\",\n Bule8hv: [\"f4stah7\", \"fs1por5\"],\n Bjwuhne: \"f480a47\",\n Ghsupd: [\"fs1por5\", \"f4stah7\"]\n }\n}, {\n d: [\".f10pi13n{position:relative;}\", \".f1e4lqlz{box-sizing:content-box;}\", \".f1u2r49w{background-color:inherit;}\", \".f1ym3bx4{color:inherit;}\", \".f1mo0ibp{font-family:inherit;}\", \".fjoy568{font-size:inherit;}\", \".f1k6fduh{cursor:pointer;}\", \".fez10in{line-height:0;}\", \".f1mtd64y{overflow-x:visible;}\", \".f1y7q3j9{overflow-y:visible;}\", \".f1g0x7ka{padding-top:0;}\", \".fhxju0i{padding-right:0;}\", \".f1cnd47f{padding-left:0;}\", \".f1qch9an{padding-bottom:0;}\", \".f1ern45e{border-top-style:none;}\", \".f1n71otn{border-right-style:none;}\", \".f1deefiw{border-left-style:none;}\", \".f1h8hb77{border-bottom-style:none;}\", \".f37px4s{-webkit-appearance:button;}\", \".fgusgyc{text-align:unset;}\", \".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}\", \".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}\", \".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}\", \".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}\", \".f15bsgw9[data-fui-focus-visible]::after{content:\\\"\\\";}\", \".f14e48fq[data-fui-focus-visible]::after{position:absolute;}\", \".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}\", \".fd6o370[data-fui-focus-visible]::after{z-index:1;}\", \".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}\", \".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}\", \".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}\", \".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}\", \".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}\", \".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}\", \".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}\", \".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}\", \".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}\", \".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}\", \".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}\", \".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}\", \".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}\", \".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}\", \".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}\", \".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}\", \".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}\", \".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}\", \".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}\", \".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}\"],\n f: [\".ftqa4ok:focus{outline-style:none;}\"],\n i: [\".f2hkw1w:focus-visible{outline-style:none;}\"]\n});\n/**\n * Apply styling to the DialogTitle slots based on the state\n */\nexport const useDialogTitleStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(dialogTitleClassNames.root, styles.root, !state.action && styles.rootWithoutAction, state.root.className);\n if (state.action) {\n state.action.className = mergeClasses(dialogTitleClassNames.action, styles.action, state.action.className);\n }\n return state;\n};\n//# sourceMappingURL=useDialogTitleStyles.styles.js.map"],"names":["dialogTitleClassNames","useDialogTitleInternalStyles","useDialogTitleStyles_unstable","root","action","useStyles","__styles","Ijaq50","nk6f5a","Br312pm","Bw0ie65","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","B6of3ja","t21cq0","jrapky","Frg6f3","rootWithoutAction","Bdqf98w","qb2dma","d","button","qhf8xq","B7ck84d","De3pzq","sj55zd","Bceei9c","B68tc82","Bmxbyg5","z8tnut","z189sj","Byoj8tv","uwmqm3","icvyot","vrafjx","oivjwe","wvpqe5","Bv0vk6g","fsow6f","Brovlpu","B486eqv","B8q5s1w","Bci5o5g","n8qw10","Bdrgwmp","Bm4h7ae","B7ys5i9","Busjfv9","Bhk32uz","Bf4ptjt","kclons","Bhdgwq3","Blkhhs4","Bqtpl0w","clg4pj","hgwjuy","Bonggc9","B1tsrr9","Dah5zi","Bkh64rk","qqdqy8","B6dhp37","i03rao","Boxcth7","Bsom6fd","J0r882","Bule8hv","Bjwuhne","Ghsupd","f","i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AAS;IAC5I,IAAIF,MAAMrE,MAAM,EAAE;QAChBqE,MAAMrE,MAAM,CAACuE,SAAS,GAAGC,IAAAA,mBAAY,EAAC5E,sBAAsBI,MAAM,EAAEsE,OAAOtE,MAAM,EAAEqE,MAAMrE,MAAM,CAACuE,SAAS;IAC3G,CAAC;IACD,OAAOF;AACT,GACA,uDAAuD"}
1
+ {"version":3,"sources":["useDialogTitleStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { typographyStyles } from '@fluentui/react-theme';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nexport const dialogTitleClassNames = {\n root: 'fui-DialogTitle',\n action: 'fui-DialogTitle__action'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n root: {\n Ijaq50: \"f16hsg94\",\n nk6f5a: \"f1amvztq\",\n Br312pm: \"fwpfdsa\",\n Bw0ie65: \"fz1yyy6\",\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f1pp30po\",\n Bhrd7zp: \"fl43uef\",\n Bg96gwp: \"f106mvju\",\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"]\n },\n rootWithoutAction: {\n Bw0ie65: \"fsyjsko\"\n },\n action: {\n Ijaq50: \"f16hsg94\",\n nk6f5a: \"f1amvztq\",\n Br312pm: \"fis13di\",\n Bdqf98w: \"f1a7i8kp\",\n qb2dma: \"f9h729m\"\n }\n}, {\n d: [\".f16hsg94{grid-row-start:1;}\", \".f1amvztq{grid-row-end:1;}\", \".fwpfdsa{grid-column-start:1;}\", \".fz1yyy6{grid-column-end:3;}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".f1pp30po{font-size:var(--fontSizeBase500);}\", \".fl43uef{font-weight:var(--fontWeightSemibold);}\", \".f106mvju{line-height:var(--lineHeightBase500);}\", \".f1hu3pq6{margin-top:0;}\", \".f11qmguv{margin-right:0;}\", \".f1tyq0we{margin-left:0;}\", \".f19f4twv{margin-bottom:0;}\", \".fsyjsko{grid-column-end:4;}\", \".fis13di{grid-column-start:3;}\", \".f1a7i8kp{justify-self:end;}\", \".f9h729m{align-self:start;}\"]\n});\n/**\n * Styles to be applied on internal elements used by default action on non-modal Dialog\n * @internal\n */\nexport const useDialogTitleInternalStyles = /*#__PURE__*/__styles({\n button: {\n qhf8xq: \"f10pi13n\",\n B7ck84d: \"f1e4lqlz\",\n De3pzq: \"f1u2r49w\",\n sj55zd: \"f1ym3bx4\",\n Bahqtrf: \"f1mo0ibp\",\n Be2twd7: \"fjoy568\",\n Bceei9c: \"f1k6fduh\",\n Bg96gwp: \"fez10in\",\n B68tc82: \"f1mtd64y\",\n Bmxbyg5: \"f1y7q3j9\",\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n icvyot: \"f1ern45e\",\n vrafjx: [\"f1n71otn\", \"f1deefiw\"],\n oivjwe: \"f1h8hb77\",\n wvpqe5: [\"f1deefiw\", \"f1n71otn\"],\n Bv0vk6g: \"f37px4s\",\n fsow6f: \"fgusgyc\",\n Brovlpu: \"ftqa4ok\",\n B486eqv: \"f2hkw1w\",\n B8q5s1w: \"f8hki3x\",\n Bci5o5g: [\"f1d2448m\", \"ffh67wi\"],\n n8qw10: \"f1bjia2o\",\n Bdrgwmp: [\"ffh67wi\", \"f1d2448m\"],\n Bm4h7ae: \"f15bsgw9\",\n B7ys5i9: \"f14e48fq\",\n Busjfv9: \"f18yb2kv\",\n Bhk32uz: \"fd6o370\",\n Bf4ptjt: \"fh1cnn4\",\n kclons: [\"fy7oxxb\", \"f184ne2d\"],\n Bhdgwq3: \"fpukqih\",\n Blkhhs4: [\"f184ne2d\", \"fy7oxxb\"],\n Bqtpl0w: \"frrh606\",\n clg4pj: [\"f1v5zibi\", \"fo2hd23\"],\n hgwjuy: \"ful5kiu\",\n Bonggc9: [\"fo2hd23\", \"f1v5zibi\"],\n B1tsrr9: [\"f1jqcqds\", \"ftffrms\"],\n Dah5zi: [\"ftffrms\", \"f1jqcqds\"],\n Bkh64rk: [\"f2e7qr6\", \"fsr1zz6\"],\n qqdqy8: [\"fsr1zz6\", \"f2e7qr6\"],\n B6dhp37: \"f1dvezut\",\n i03rao: [\"fd0oaoj\", \"f1cwg4i8\"],\n Boxcth7: \"fjvm52t\",\n Bsom6fd: [\"f1cwg4i8\", \"fd0oaoj\"],\n J0r882: \"f57olzd\",\n Bule8hv: [\"f4stah7\", \"fs1por5\"],\n Bjwuhne: \"f480a47\",\n Ghsupd: [\"fs1por5\", \"f4stah7\"]\n }\n}, {\n d: [\".f10pi13n{position:relative;}\", \".f1e4lqlz{box-sizing:content-box;}\", \".f1u2r49w{background-color:inherit;}\", \".f1ym3bx4{color:inherit;}\", \".f1mo0ibp{font-family:inherit;}\", \".fjoy568{font-size:inherit;}\", \".f1k6fduh{cursor:pointer;}\", \".fez10in{line-height:0;}\", \".f1mtd64y{overflow-x:visible;}\", \".f1y7q3j9{overflow-y:visible;}\", \".f1g0x7ka{padding-top:0;}\", \".fhxju0i{padding-right:0;}\", \".f1cnd47f{padding-left:0;}\", \".f1qch9an{padding-bottom:0;}\", \".f1ern45e{border-top-style:none;}\", \".f1n71otn{border-right-style:none;}\", \".f1deefiw{border-left-style:none;}\", \".f1h8hb77{border-bottom-style:none;}\", \".f37px4s{-webkit-appearance:button;}\", \".fgusgyc{text-align:unset;}\", \".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}\", \".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}\", \".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}\", \".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}\", \".f15bsgw9[data-fui-focus-visible]::after{content:\\\"\\\";}\", \".f14e48fq[data-fui-focus-visible]::after{position:absolute;}\", \".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}\", \".fd6o370[data-fui-focus-visible]::after{z-index:1;}\", \".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}\", \".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}\", \".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}\", \".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}\", \".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}\", \".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}\", \".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}\", \".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}\", \".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}\", \".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}\", \".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}\", \".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}\", \".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}\", \".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}\", \".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}\", \".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}\", \".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}\", \".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}\", \".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}\", \".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}\"],\n f: [\".ftqa4ok:focus{outline-style:none;}\"],\n i: [\".f2hkw1w:focus-visible{outline-style:none;}\"]\n});\n/**\n * Apply styling to the DialogTitle slots based on the state\n */\nexport const useDialogTitleStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(dialogTitleClassNames.root, styles.root, !state.action && styles.rootWithoutAction, state.root.className);\n if (state.action) {\n state.action.className = mergeClasses(dialogTitleClassNames.action, styles.action, state.action.className);\n }\n return state;\n};\n//# sourceMappingURL=useDialogTitleStyles.styles.js.map"],"names":["dialogTitleClassNames","useDialogTitleInternalStyles","useDialogTitleStyles_unstable","root","action","useStyles","__styles","Ijaq50","nk6f5a","Br312pm","Bw0ie65","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","B6of3ja","t21cq0","jrapky","Frg6f3","rootWithoutAction","Bdqf98w","qb2dma","d","button","qhf8xq","B7ck84d","De3pzq","sj55zd","Bceei9c","B68tc82","Bmxbyg5","z8tnut","z189sj","Byoj8tv","uwmqm3","icvyot","vrafjx","oivjwe","wvpqe5","Bv0vk6g","fsow6f","Brovlpu","B486eqv","B8q5s1w","Bci5o5g","n8qw10","Bdrgwmp","Bm4h7ae","B7ys5i9","Busjfv9","Bhk32uz","Bf4ptjt","kclons","Bhdgwq3","Blkhhs4","Bqtpl0w","clg4pj","hgwjuy","Bonggc9","B1tsrr9","Dah5zi","Bkh64rk","qqdqy8","B6dhp37","i03rao","Boxcth7","Bsom6fd","J0r882","Bule8hv","Bjwuhne","Ghsupd","f","i","state","styles","className","mergeClasses"],"mappings":";;;;;;;;;;;IAGaA,qBAAqB;eAArBA;;IAuCAC,4BAA4B;eAA5BA;;IA6DAC,6BAA6B;eAA7BA;;;uBAvGsC;AAG5C,MAAMF,wBAAwB;IACnCG,MAAM;IACNC,QAAQ;AACV;AACA;;CAEC,GACD,MAAMC,YAAY,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IACtCH,MAAM;QACJI,QAAQ;QACRC,QAAQ;QACRC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,QAAQ;YAAC;YAAY;SAAW;QAChCC,QAAQ;QACRC,QAAQ;YAAC;YAAY;SAAW;IAClC;IACA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CC,QAAQ;QACRC,SAAS;YAAC;YAAW;SAAU;QAC/BC,SAAS;QACTC,QAAQ;YAAC;YAAW;SAAU;IAChC;AACF,GAAG;IACDhD,GAAG;QAAC;QAAiC;QAAsC;QAAwC;QAA6B;QAAmC;QAAgC;QAA8B;QAA4B;QAAkC;QAAkC;QAA6B;QAA8B;QAA8B;QAAgC;QAAqC;QAAuC;QAAsC;QAAwC;QAAwC;QAA+B;QAAmE;QAAsE;QAAoE;QAAuE;QAA2D;QAAgE;QAAkE;QAAuD;QAAoE;QAAsE;QAAsE;QAAuE;QAAkE;QAAqE;QAAmE;QAAqE;QAAmG;QAAiG;QAA+F;QAA8F;QAAwF;QAAyF;QAAyF;QAA0F;QAAgE;QAAkE;QAAiE;KAAkE;IACnsFiD,GAAG;QAAC;KAAsC;IAC1CC,GAAG;QAAC;KAA8C;AACpD;AAIO,MAAMtE,gCAAgCuE,CAAAA;IAC3C,MAAMC,SAASrE;IACfoE,MAAMtE,IAAI,CAACwE,SAAS,GAAGC,IAAAA,mBAAY,EAAC5E,sBAAsBG,IAAI,EAAEuE,OAAOvE,IAAI,EAAE,CAACsE,MAAMrE,MAAM,IAAIsE,OAAOvD,iBAAiB,EAAEsD,MAAMtE,IAAI,CAACwE,SAAS;IAC5I,IAAIF,MAAMrE,MAAM,EAAE;QAChBqE,MAAMrE,MAAM,CAACuE,SAAS,GAAGC,IAAAA,mBAAY,EAAC5E,sBAAsBI,MAAM,EAAEsE,OAAOtE,MAAM,EAAEqE,MAAMrE,MAAM,CAACuE,SAAS;IAC3G;IACA,OAAOF;AACT,GACA,uDAAuD"}
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "DialogTrigger", {
6
6
  enumerable: true,
7
- get: ()=>DialogTrigger
7
+ get: function() {
8
+ return DialogTrigger;
9
+ }
8
10
  });
9
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
10
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
11
13
  const _useDialogTrigger = require("./useDialogTrigger");
12
14
  const _renderDialogTrigger = require("./renderDialogTrigger");
13
15
  const DialogTrigger = (props)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["DialogTrigger.js"],"sourcesContent":["import * as React from 'react';\nimport { useDialogTrigger_unstable } from './useDialogTrigger';\nimport { renderDialogTrigger_unstable } from './renderDialogTrigger';\n/**\n * A non-visual component that wraps its child\n * and configures them to be the trigger that will open or close a `Dialog`.\n * This component should only accept one child.\n *\n * This component sole purpose is to avoid opting out of the internal controlled open state of a `Dialog`\n * Besides being a trigger that opens/close a dialog through context this component doesn't do much,\n * making it basically unnecessary in cases where the trigger is outside of the `Dialog` component.\n */ export const DialogTrigger = (props)=>{\n const state = useDialogTrigger_unstable(props);\n return renderDialogTrigger_unstable(state);\n};\nDialogTrigger.displayName = 'DialogTrigger';\n// type casting here is required to ensure internal type FluentTriggerComponent is not leaked\nDialogTrigger.isFluentTriggerComponent = true;\n"],"names":["DialogTrigger","props","state","useDialogTrigger_unstable","renderDialogTrigger_unstable","displayName","isFluentTriggerComponent"],"mappings":";;;;+BAWiBA;;aAAAA;;;6DAXM;kCACmB;qCACG;AASlC,MAAMA,gBAAgB,CAACC,QAAQ;IACtC,MAAMC,QAAQC,IAAAA,2CAAyB,EAACF;IACxC,OAAOG,IAAAA,iDAA4B,EAACF;AACxC;AACAF,cAAcK,WAAW,GAAG;AAC5B,6FAA6F;AAC7FL,cAAcM,wBAAwB,GAAG,IAAI"}
1
+ {"version":3,"sources":["DialogTrigger.js"],"sourcesContent":["import * as React from 'react';\nimport { useDialogTrigger_unstable } from './useDialogTrigger';\nimport { renderDialogTrigger_unstable } from './renderDialogTrigger';\n/**\n * A non-visual component that wraps its child\n * and configures them to be the trigger that will open or close a `Dialog`.\n * This component should only accept one child.\n *\n * This component sole purpose is to avoid opting out of the internal controlled open state of a `Dialog`\n * Besides being a trigger that opens/close a dialog through context this component doesn't do much,\n * making it basically unnecessary in cases where the trigger is outside of the `Dialog` component.\n */ export const DialogTrigger = (props)=>{\n const state = useDialogTrigger_unstable(props);\n return renderDialogTrigger_unstable(state);\n};\nDialogTrigger.displayName = 'DialogTrigger';\n// type casting here is required to ensure internal type FluentTriggerComponent is not leaked\nDialogTrigger.isFluentTriggerComponent = true;\n"],"names":["DialogTrigger","props","state","useDialogTrigger_unstable","renderDialogTrigger_unstable","displayName","isFluentTriggerComponent"],"mappings":";;;;+BAWiBA;;;eAAAA;;;;iEAXM;kCACmB;qCACG;AASlC,MAAMA,gBAAgB,CAACC;IAC9B,MAAMC,QAAQC,IAAAA,2CAAyB,EAACF;IACxC,OAAOG,IAAAA,iDAA4B,EAACF;AACxC;AACAF,cAAcK,WAAW,GAAG;AAC5B,6FAA6F;AAC7FL,cAAcM,wBAAwB,GAAG"}
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
6
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
5
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
6
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
@@ -1 +1 @@
1
- {"version":3,"sources":["DialogTrigger.types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;6DAAuB"}
1
+ {"version":3,"sources":["DialogTrigger.types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;iEAAuB"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./DialogTrigger"), exports);
7
- _exportStar(require("./DialogTrigger.types"), exports);
8
- _exportStar(require("./renderDialogTrigger"), exports);
9
- _exportStar(require("./useDialogTrigger"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./DialogTrigger"), exports);
7
+ _export_star._(require("./DialogTrigger.types"), exports);
8
+ _export_star._(require("./renderDialogTrigger"), exports);
9
+ _export_star._(require("./useDialogTrigger"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './DialogTrigger';\nexport * from './DialogTrigger.types';\nexport * from './renderDialogTrigger';\nexport * from './useDialogTrigger';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './DialogTrigger';\nexport * from './DialogTrigger.types';\nexport * from './renderDialogTrigger';\nexport * from './useDialogTrigger';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA"}
@@ -8,6 +8,8 @@ Object.defineProperty(exports, "__esModule", {
8
8
  });
9
9
  Object.defineProperty(exports, "renderDialogTrigger_unstable", {
10
10
  enumerable: true,
11
- get: ()=>renderDialogTrigger_unstable
11
+ get: function() {
12
+ return renderDialogTrigger_unstable;
13
+ }
12
14
  });
13
15
  const renderDialogTrigger_unstable = (state)=>state.children;
@@ -1 +1 @@
1
- {"version":3,"sources":["renderDialogTrigger.js"],"sourcesContent":["/**\n * Render the final JSX of MenuTrigger\n *\n * Only renders children\n */ export const renderDialogTrigger_unstable = (state)=>state.children;\n"],"names":["renderDialogTrigger_unstable","state","children"],"mappings":"AAAA;;;;CAIC;;;;+BAAgBA;;aAAAA;;AAAN,MAAMA,+BAA+B,CAACC,QAAQA,MAAMC,QAAQ"}
1
+ {"version":3,"sources":["renderDialogTrigger.js"],"sourcesContent":["/**\n * Render the final JSX of MenuTrigger\n *\n * Only renders children\n */ export const renderDialogTrigger_unstable = (state)=>state.children;\n"],"names":["renderDialogTrigger_unstable","state","children"],"mappings":"AAAA;;;;CAIC;;;;+BAAgBA;;;eAAAA;;;AAAN,MAAMA,+BAA+B,CAACC,QAAQA,MAAMC,QAAQ"}
@@ -4,23 +4,26 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useDialogTrigger_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useDialogTrigger_unstable
7
+ get: function() {
8
+ return useDialogTrigger_unstable;
9
+ }
8
10
  });
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");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactutilities = require("@fluentui/react-utilities");
12
14
  const _contexts = require("../../contexts");
13
- const _reactAria = require("@fluentui/react-aria");
14
- const _reactTabster = require("@fluentui/react-tabster");
15
+ const _reactaria = require("@fluentui/react-aria");
16
+ const _reacttabster = require("@fluentui/react-tabster");
15
17
  const useDialogTrigger_unstable = (props)=>{
18
+ var _child, _child1, _child2, _child3;
16
19
  const isInsideSurfaceDialog = (0, _contexts.useDialogSurfaceContext_unstable)();
17
- const { children , disableButtonEnhancement =false , action =isInsideSurfaceDialog ? 'close' : 'open' } = props;
18
- const child = (0, _reactUtilities.getTriggerChild)(children);
20
+ const { children, disableButtonEnhancement = false, action = isInsideSurfaceDialog ? 'close' : 'open' } = props;
21
+ const child = (0, _reactutilities.getTriggerChild)(children);
19
22
  const requestOpenChange = (0, _contexts.useDialogContext_unstable)((ctx)=>ctx.requestOpenChange);
20
- const { triggerAttributes } = (0, _reactTabster.useModalAttributes)();
21
- const handleClick = (0, _reactUtilities.useEventCallback)((event)=>{
22
- var _child_props, _child_props_onClick;
23
- (_child_props_onClick = _child_props = child === null || child === void 0 ? void 0 : child.props.onClick) === null || _child_props_onClick === void 0 ? void 0 : _child_props_onClick.call(_child_props, event);
23
+ const { triggerAttributes } = (0, _reacttabster.useModalAttributes)();
24
+ const handleClick = (0, _reactutilities.useEventCallback)((event)=>{
25
+ var _child_props_onClick, _child, _child_props;
26
+ (_child = child) === null || _child === void 0 ? void 0 : (_child_props_onClick = (_child_props = _child.props).onClick) === null || _child_props_onClick === void 0 ? void 0 : _child_props_onClick.call(_child_props, event);
24
27
  if (!event.isDefaultPrevented()) {
25
28
  requestOpenChange({
26
29
  event,
@@ -30,16 +33,16 @@ const useDialogTrigger_unstable = (props)=>{
30
33
  }
31
34
  });
32
35
  const triggerChildProps = {
33
- ...child === null || child === void 0 ? void 0 : child.props,
34
- ref: child === null || child === void 0 ? void 0 : child.ref,
36
+ ...(_child = child) === null || _child === void 0 ? void 0 : _child.props,
37
+ ref: (_child1 = child) === null || _child1 === void 0 ? void 0 : _child1.ref,
35
38
  onClick: handleClick,
36
39
  ...triggerAttributes
37
40
  };
38
- const ariaButtonTriggerChildProps = (0, _reactAria.useARIAButtonProps)((child === null || child === void 0 ? void 0 : child.type) === 'button' || (child === null || child === void 0 ? void 0 : child.type) === 'a' ? child.type : 'div', {
41
+ const ariaButtonTriggerChildProps = (0, _reactaria.useARIAButtonProps)(((_child2 = child) === null || _child2 === void 0 ? void 0 : _child2.type) === 'button' || ((_child3 = child) === null || _child3 === void 0 ? void 0 : _child3.type) === 'a' ? child.type : 'div', {
39
42
  ...triggerChildProps,
40
43
  type: 'button'
41
44
  });
42
45
  return {
43
- children: (0, _reactUtilities.applyTriggerPropsToChildren)(children, disableButtonEnhancement ? triggerChildProps : ariaButtonTriggerChildProps)
46
+ children: (0, _reactutilities.applyTriggerPropsToChildren)(children, disableButtonEnhancement ? triggerChildProps : ariaButtonTriggerChildProps)
44
47
  };
45
48
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["useDialogTrigger.js"],"sourcesContent":["import * as React from 'react';\nimport { applyTriggerPropsToChildren, getTriggerChild, useEventCallback } from '@fluentui/react-utilities';\nimport { useDialogContext_unstable, useDialogSurfaceContext_unstable } from '../../contexts';\nimport { useARIAButtonProps } from '@fluentui/react-aria';\nimport { useModalAttributes } from '@fluentui/react-tabster';\n/**\n * Create the state required to render DialogTrigger.\n * Clones the only child component and adds necessary event handling behaviours to open a popup Dialog\n *\n * @param props - props from this instance of DialogTrigger\n */ export const useDialogTrigger_unstable = (props)=>{\n const isInsideSurfaceDialog = useDialogSurfaceContext_unstable();\n const { children , disableButtonEnhancement =false , action =isInsideSurfaceDialog ? 'close' : 'open' } = props;\n const child = getTriggerChild(children);\n const requestOpenChange = useDialogContext_unstable((ctx)=>ctx.requestOpenChange);\n const { triggerAttributes } = useModalAttributes();\n const handleClick = useEventCallback((event)=>{\n var _child_props, _child_props_onClick;\n (_child_props_onClick = _child_props = child === null || child === void 0 ? void 0 : child.props.onClick) === null || _child_props_onClick === void 0 ? void 0 : _child_props_onClick.call(_child_props, event);\n if (!event.isDefaultPrevented()) {\n requestOpenChange({\n event,\n type: 'triggerClick',\n open: action === 'open'\n });\n }\n });\n const triggerChildProps = {\n ...child === null || child === void 0 ? void 0 : child.props,\n ref: child === null || child === void 0 ? void 0 : child.ref,\n onClick: handleClick,\n ...triggerAttributes\n };\n const ariaButtonTriggerChildProps = useARIAButtonProps((child === null || child === void 0 ? void 0 : child.type) === 'button' || (child === null || child === void 0 ? void 0 : child.type) === 'a' ? child.type : 'div', {\n ...triggerChildProps,\n type: 'button'\n });\n return {\n children: applyTriggerPropsToChildren(children, disableButtonEnhancement ? triggerChildProps : ariaButtonTriggerChildProps)\n };\n};\n"],"names":["useDialogTrigger_unstable","props","isInsideSurfaceDialog","useDialogSurfaceContext_unstable","children","disableButtonEnhancement","action","child","getTriggerChild","requestOpenChange","useDialogContext_unstable","ctx","triggerAttributes","useModalAttributes","handleClick","useEventCallback","event","_child_props","_child_props_onClick","onClick","call","isDefaultPrevented","type","open","triggerChildProps","ref","ariaButtonTriggerChildProps","useARIAButtonProps","applyTriggerPropsToChildren"],"mappings":";;;;+BAUiBA;;aAAAA;;;6DAVM;gCACwD;0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MAAMf,MAAMe,IAAI,GAAG,KAAK,EAAE;QACvN,GAAGE,iBAAiB;QACpBF,MAAM;IACV;IACA,OAAO;QACHlB,UAAUwB,IAAAA,2CAA2B,EAACxB,UAAUC,2BAA2BmB,oBAAoBE,2BAA2B;IAC9H;AACJ"}
1
+ {"version":3,"sources":["useDialogTrigger.js"],"sourcesContent":["import * as React from 'react';\nimport { applyTriggerPropsToChildren, getTriggerChild, useEventCallback } from '@fluentui/react-utilities';\nimport { useDialogContext_unstable, useDialogSurfaceContext_unstable } from '../../contexts';\nimport { useARIAButtonProps } from '@fluentui/react-aria';\nimport { useModalAttributes } from '@fluentui/react-tabster';\n/**\n * Create the state required to render DialogTrigger.\n * Clones the only child component and adds necessary event handling behaviours to open a popup Dialog\n *\n * @param props - props from this instance of DialogTrigger\n */ export const useDialogTrigger_unstable = (props)=>{\n var _child, _child1, _child2, _child3;\n const isInsideSurfaceDialog = useDialogSurfaceContext_unstable();\n const { children, disableButtonEnhancement = false, action = isInsideSurfaceDialog ? 'close' : 'open' } = props;\n const child = getTriggerChild(children);\n const requestOpenChange = useDialogContext_unstable((ctx)=>ctx.requestOpenChange);\n const { triggerAttributes } = useModalAttributes();\n const handleClick = useEventCallback((event)=>{\n var _child_props_onClick, _child, _child_props;\n (_child = child) === null || _child === void 0 ? void 0 : (_child_props_onClick = (_child_props = _child.props).onClick) === null || _child_props_onClick === void 0 ? void 0 : _child_props_onClick.call(_child_props, event);\n if (!event.isDefaultPrevented()) {\n requestOpenChange({\n event,\n type: 'triggerClick',\n open: action === 'open'\n });\n }\n });\n const triggerChildProps = {\n ...(_child = child) === null || _child === void 0 ? void 0 : _child.props,\n ref: (_child1 = child) === null || _child1 === void 0 ? void 0 : _child1.ref,\n onClick: handleClick,\n ...triggerAttributes\n };\n const ariaButtonTriggerChildProps = useARIAButtonProps(((_child2 = child) === null || _child2 === void 0 ? void 0 : _child2.type) === 'button' || ((_child3 = child) === null || _child3 === void 0 ? void 0 : _child3.type) === 'a' ? child.type : 'div', {\n ...triggerChildProps,\n type: 'button'\n });\n return {\n children: applyTriggerPropsToChildren(children, disableButtonEnhancement ? triggerChildProps : ariaButtonTriggerChildProps)\n };\n};\n"],"names":["useDialogTrigger_unstable","props","_child","_child1","_child2","_child3","isInsideSurfaceDialog","useDialogSurfaceContext_unstable","children","disableButtonEnhancement","action","child","getTriggerChild","requestOpenChange","useDialogContext_unstable","ctx","triggerAttributes","useModalAttributes","handleClick","useEventCallback","event","_child_props_onClick","_child_props","onClick","call","isDefaultPrevented","type","open","triggerChildProps","ref","ariaButtonTriggerChildProps","useARIAButtonProps","applyTriggerPropsToChildren"],"mappings":";;;;+BAUiBA;;;eAAAA;;;;iEAVM;gCACwD;0BACH;2BACzC;8BACA;AAMxB,MAAMA,4BAA4B,CAACC;IAC1C,IAAIC,QAAQC,SAASC,SAASC;IAC9B,MAAMC,wBAAwBC,IAAAA,0CAAgC;IAC9D,MAAM,EAAEC,QAAQ,EAAEC,2BAA2B,KAAK,EAAEC,SAASJ,wBAAwB,UAAU,MAAM,EAAE,GAAGL;IAC1G,MAAMU,QAAQC,IAAAA,+BAAe,EAACJ;IAC9B,MAAMK,oBAAoBC,IAAAA,mCAAyB,EAAC,CAACC,MAAMA,IAAIF,iBAAiB;IAChF,MAAM,EAAEG,iBAAiB,EAAE,GAAGC,IAAAA,gCAAkB;IAChD,MAAMC,cAAcC,IAAAA,gCAAgB,EAAC,CAACC;QAClC,IAAIC,sBAAsBnB,QAAQoB;QACjCpB,CAAAA,SAASS,KAAI,MAAO,QAAQT,WAAW,KAAK,IAAI,KAAK,IAAI,AAACmB,CAAAA,uBAAuB,AAACC,CAAAA,eAAepB,OAAOD,KAAK,AAAD,EAAGsB,OAAO,AAAD,MAAO,QAAQF,yBAAyB,KAAK,IAAI,KAAK,IAAIA,qBAAqBG,IAAI,CAACF,cAAcF;QACxN,IAAI,CAACA,MAAMK,kBAAkB,IAAI;YAC7BZ,kBAAkB;gBACdO;gBACAM,MAAM;gBACNC,MAAMjB,WAAW;YACrB;QACJ;IACJ;IACA,MAAMkB,oBAAoB;QACtB,GAAG,AAAC1B,CAAAA,SAASS,KAAI,MAAO,QAAQT,WAAW,KAAK,IAAI,KAAK,IAAIA,OAAOD,KAAK;QACzE4B,KAAK,AAAC1B,CAAAA,UAAUQ,KAAI,MAAO,QAAQR,YAAY,KAAK,IAAI,KAAK,IAAIA,QAAQ0B,GAAG;QAC5EN,SAASL;QACT,GAAGF,iBAAiB;IACxB;IACA,MAAMc,8BAA8BC,IAAAA,6BAAkB,EAAC,AAAC,CAAA,AAAC3B,CAAAA,UAAUO,KAAI,MAAO,QAAQP,YAAY,KAAK,IAAI,KAAK,IAAIA,QAAQsB,IAAI,AAAD,MAAO,YAAY,AAAC,CAAA,AAACrB,CAAAA,UAAUM,KAAI,MAAO,QAAQN,YAAY,KAAK,IAAI,KAAK,IAAIA,QAAQqB,IAAI,AAAD,MAAO,MAAMf,MAAMe,IAAI,GAAG,OAAO;QACvP,GAAGE,iBAAiB;QACpBF,MAAM;IACV;IACA,OAAO;QACHlB,UAAUwB,IAAAA,2CAA2B,EAACxB,UAAUC,2BAA2BmB,oBAAoBE;IACnG;AACJ"}
@@ -9,10 +9,18 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- MEDIA_QUERY_BREAKPOINT_SELECTOR: ()=>MEDIA_QUERY_BREAKPOINT_SELECTOR,
13
- SURFACE_PADDING: ()=>SURFACE_PADDING,
14
- DIALOG_GAP: ()=>DIALOG_GAP,
15
- SURFACE_BORDER_WIDTH: ()=>SURFACE_BORDER_WIDTH
12
+ MEDIA_QUERY_BREAKPOINT_SELECTOR: function() {
13
+ return MEDIA_QUERY_BREAKPOINT_SELECTOR;
14
+ },
15
+ SURFACE_PADDING: function() {
16
+ return SURFACE_PADDING;
17
+ },
18
+ DIALOG_GAP: function() {
19
+ return DIALOG_GAP;
20
+ },
21
+ SURFACE_BORDER_WIDTH: function() {
22
+ return SURFACE_BORDER_WIDTH;
23
+ }
16
24
  });
17
25
  const MEDIA_QUERY_BREAKPOINT_SELECTOR = '@media screen and (max-width: 480px)';
18
26
  const SURFACE_PADDING = '24px';
@@ -1 +1 @@
1
- {"version":3,"sources":["constants.js"],"sourcesContent":["export const MEDIA_QUERY_BREAKPOINT_SELECTOR = '@media screen and (max-width: 480px)';\nexport const SURFACE_PADDING = '24px';\nexport const DIALOG_GAP = '8px';\nexport const SURFACE_BORDER_WIDTH = '1px';\n"],"names":["MEDIA_QUERY_BREAKPOINT_SELECTOR","SURFACE_PADDING","DIALOG_GAP","SURFACE_BORDER_WIDTH"],"mappings":";;;;;;;;;;;IAAaA,+BAA+B,MAA/BA;IACAC,eAAe,MAAfA;IACAC,UAAU,MAAVA;IACAC,oBAAoB,MAApBA;;AAHN,MAAMH,kCAAkC;AACxC,MAAMC,kBAAkB;AACxB,MAAMC,aAAa;AACnB,MAAMC,uBAAuB"}
1
+ {"version":3,"sources":["constants.js"],"sourcesContent":["export const MEDIA_QUERY_BREAKPOINT_SELECTOR = '@media screen and (max-width: 480px)';\nexport const SURFACE_PADDING = '24px';\nexport const DIALOG_GAP = '8px';\nexport const SURFACE_BORDER_WIDTH = '1px';\n"],"names":["MEDIA_QUERY_BREAKPOINT_SELECTOR","SURFACE_PADDING","DIALOG_GAP","SURFACE_BORDER_WIDTH"],"mappings":";;;;;;;;;;;IAAaA,+BAA+B;eAA/BA;;IACAC,eAAe;eAAfA;;IACAC,UAAU;eAAVA;;IACAC,oBAAoB;eAApBA;;;AAHN,MAAMH,kCAAkC;AACxC,MAAMC,kBAAkB;AACxB,MAAMC,aAAa;AACnB,MAAMC,uBAAuB"}
@@ -9,13 +9,19 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DialogContext: ()=>DialogContext,
13
- DialogProvider: ()=>DialogProvider,
14
- useDialogContext_unstable: ()=>useDialogContext_unstable
12
+ DialogContext: function() {
13
+ return DialogContext;
14
+ },
15
+ DialogProvider: function() {
16
+ return DialogProvider;
17
+ },
18
+ useDialogContext_unstable: function() {
19
+ return useDialogContext_unstable;
20
+ }
15
21
  });
16
- const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
17
- const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
18
- const _reactContextSelector = require("@fluentui/react-context-selector");
22
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
23
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
24
+ const _reactcontextselector = require("@fluentui/react-context-selector");
19
25
  const defaultContextValue = {
20
26
  open: false,
21
27
  inertTrapFocus: false,
@@ -27,6 +33,6 @@ const defaultContextValue = {
27
33
  requestOpenChange () {
28
34
  /* noop */ }
29
35
  };
30
- const DialogContext = (0, _reactContextSelector.createContext)(undefined);
36
+ const DialogContext = (0, _reactcontextselector.createContext)(undefined);
31
37
  const DialogProvider = DialogContext.Provider;
32
- const useDialogContext_unstable = (selector)=>(0, _reactContextSelector.useContextSelector)(DialogContext, (ctx = defaultContextValue)=>selector(ctx));
38
+ const useDialogContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(DialogContext, (ctx = defaultContextValue)=>selector(ctx));
@@ -1 +1 @@
1
- {"version":3,"sources":["dialogContext.js"],"sourcesContent":["import * as React from 'react';\nimport { createContext, useContextSelector } from '@fluentui/react-context-selector';\nconst defaultContextValue = {\n open: false,\n inertTrapFocus: false,\n modalType: 'modal',\n isNestedDialog: false,\n dialogRef: {\n current: null\n },\n requestOpenChange () {\n /* noop */ }\n};\n// Contexts should default to undefined\nexport const DialogContext = createContext(undefined);\nexport const DialogProvider = DialogContext.Provider;\nexport const useDialogContext_unstable = (selector)=>useContextSelector(DialogContext, (ctx = defaultContextValue)=>selector(ctx));\n"],"names":["DialogContext","DialogProvider","useDialogContext_unstable","defaultContextValue","open","inertTrapFocus","modalType","isNestedDialog","dialogRef","current","requestOpenChange","createContext","undefined","Provider","selector","useContextSelector","ctx"],"mappings":";;;;;;;;;;;IAcaA,aAAa,MAAbA;IACAC,cAAc,MAAdA;IACAC,yBAAyB,MAAzBA;;;6DAhBU;sCAC2B;AAClD,MAAMC,sBAAsB;IACxBC,MAAM,KAAK;IACXC,gBAAgB,KAAK;IACrBC,WAAW;IACXC,gBAAgB,KAAK;IACrBC,WAAW;QACPC,SAAS,IAAI;IACjB;IACAC,qBAAqB;IACrB,QAAQ,GAAG;AACf;AAEO,MAAMV,gBAAgBW,IAAAA,mCAAa,EAACC;AACpC,MAAMX,iBAAiBD,cAAca,QAAQ;AAC7C,MAAMX,4BAA4B,CAACY,WAAWC,IAAAA,wCAAkB,EAACf,eAAe,CAACgB,MAAMb,mBAAmB,GAAGW,SAASE"}
1
+ {"version":3,"sources":["dialogContext.js"],"sourcesContent":["import * as React from 'react';\nimport { createContext, useContextSelector } from '@fluentui/react-context-selector';\nconst defaultContextValue = {\n open: false,\n inertTrapFocus: false,\n modalType: 'modal',\n isNestedDialog: false,\n dialogRef: {\n current: null\n },\n requestOpenChange () {\n /* noop */ }\n};\n// Contexts should default to undefined\nexport const DialogContext = createContext(undefined);\nexport const DialogProvider = DialogContext.Provider;\nexport const useDialogContext_unstable = (selector)=>useContextSelector(DialogContext, (ctx = defaultContextValue)=>selector(ctx));\n"],"names":["DialogContext","DialogProvider","useDialogContext_unstable","defaultContextValue","open","inertTrapFocus","modalType","isNestedDialog","dialogRef","current","requestOpenChange","createContext","undefined","Provider","selector","useContextSelector","ctx"],"mappings":";;;;;;;;;;;IAcaA,aAAa;eAAbA;;IACAC,cAAc;eAAdA;;IACAC,yBAAyB;eAAzBA;;;;iEAhBU;sCAC2B;AAClD,MAAMC,sBAAsB;IACxBC,MAAM;IACNC,gBAAgB;IAChBC,WAAW;IACXC,gBAAgB;IAChBC,WAAW;QACPC,SAAS;IACb;IACAC;IACA,QAAQ,GAAG;AACf;AAEO,MAAMV,gBAAgBW,IAAAA,mCAAa,EAACC;AACpC,MAAMX,iBAAiBD,cAAca,QAAQ;AAC7C,MAAMX,4BAA4B,CAACY,WAAWC,IAAAA,wCAAkB,EAACf,eAAe,CAACgB,MAAMb,mBAAmB,GAAGW,SAASE"}
@@ -9,9 +9,15 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- DialogSurfaceContext: ()=>DialogSurfaceContext,
13
- DialogSurfaceProvider: ()=>DialogSurfaceProvider,
14
- useDialogSurfaceContext_unstable: ()=>useDialogSurfaceContext_unstable
12
+ DialogSurfaceContext: function() {
13
+ return DialogSurfaceContext;
14
+ },
15
+ DialogSurfaceProvider: function() {
16
+ return DialogSurfaceProvider;
17
+ },
18
+ useDialogSurfaceContext_unstable: function() {
19
+ return useDialogSurfaceContext_unstable;
20
+ }
15
21
  });
16
22
  const _react = require("react");
17
23
  const defaultContextValue = false;
@@ -1 +1 @@
1
- {"version":3,"sources":["dialogSurfaceContext.js"],"sourcesContent":["import { createContext, useContext } from 'react';\nconst defaultContextValue = false;\nexport const DialogSurfaceContext = createContext(undefined);\nexport const DialogSurfaceProvider = DialogSurfaceContext.Provider;\nvar _useContext;\nexport const useDialogSurfaceContext_unstable = ()=>(_useContext = useContext(DialogSurfaceContext)) !== null && _useContext !== void 0 ? _useContext : defaultContextValue;\n"],"names":["DialogSurfaceContext","DialogSurfaceProvider","useDialogSurfaceContext_unstable","defaultContextValue","createContext","undefined","Provider","_useContext","useContext"],"mappings":";;;;;;;;;;;IAEaA,oBAAoB,MAApBA;IACAC,qBAAqB,MAArBA;IAEAC,gCAAgC,MAAhCA;;uBAL6B;AAC1C,MAAMC,sBAAsB,KAAK;AAC1B,MAAMH,qCAAuBI,IAAAA,oBAAa,EAACC;AAC3C,MAAMJ,wBAAwBD,qBAAqBM,QAAQ;AAClE,IAAIC;AACG,MAAML,mCAAmC,IAAI,AAACK,CAAAA,cAAcC,IAAAA,iBAAU,EAACR,qBAAoB,MAAO,IAAI,IAAIO,gBAAgB,KAAK,IAAIA,cAAcJ,mBAAmB"}
1
+ {"version":3,"sources":["dialogSurfaceContext.js"],"sourcesContent":["import { createContext, useContext } from 'react';\nconst defaultContextValue = false;\nexport const DialogSurfaceContext = createContext(undefined);\nexport const DialogSurfaceProvider = DialogSurfaceContext.Provider;\nvar _useContext;\nexport const useDialogSurfaceContext_unstable = ()=>(_useContext = useContext(DialogSurfaceContext)) !== null && _useContext !== void 0 ? _useContext : defaultContextValue;\n"],"names":["DialogSurfaceContext","DialogSurfaceProvider","useDialogSurfaceContext_unstable","defaultContextValue","createContext","undefined","Provider","_useContext","useContext"],"mappings":";;;;;;;;;;;IAEaA,oBAAoB;eAApBA;;IACAC,qBAAqB;eAArBA;;IAEAC,gCAAgC;eAAhCA;;;uBAL6B;AAC1C,MAAMC,sBAAsB;AACrB,MAAMH,qCAAuBI,IAAAA,oBAAa,EAACC;AAC3C,MAAMJ,wBAAwBD,qBAAqBM,QAAQ;AAClE,IAAIC;AACG,MAAML,mCAAmC,IAAI,AAACK,CAAAA,cAAcC,IAAAA,iBAAU,EAACR,qBAAoB,MAAO,QAAQO,gBAAgB,KAAK,IAAIA,cAAcJ"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
6
- _exportStar(require("./constants"), exports);
7
- _exportStar(require("./dialogContext"), exports);
8
- _exportStar(require("./dialogSurfaceContext"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./constants"), exports);
7
+ _export_star._(require("./dialogContext"), exports);
8
+ _export_star._(require("./dialogSurfaceContext"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './constants';\nexport * from './dialogContext';\nexport * from './dialogSurfaceContext';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './constants';\nexport * from './dialogContext';\nexport * from './dialogSurfaceContext';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA"}