@fluentui/react-toast 9.2.0 → 9.2.2

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 (210) hide show
  1. package/CHANGELOG.json +109 -1
  2. package/CHANGELOG.md +33 -2
  3. package/lib/components/AriaLive/AriaLive.js.map +1 -1
  4. package/lib/components/AriaLive/renderAriaLive.js +7 -2
  5. package/lib/components/AriaLive/renderAriaLive.js.map +1 -1
  6. package/lib/components/AriaLive/useAriaLive.js +6 -4
  7. package/lib/components/AriaLive/useAriaLive.js.map +1 -1
  8. package/lib/components/Timer/Timer.js +1 -1
  9. package/lib/components/Timer/Timer.js.map +1 -1
  10. package/lib/components/Toast/Toast.js.map +1 -1
  11. package/lib/components/Toast/renderToast.js +5 -4
  12. package/lib/components/Toast/renderToast.js.map +1 -1
  13. package/lib/components/Toast/useToast.js.map +1 -1
  14. package/lib/components/Toast/useToastContextValues.js +1 -1
  15. package/lib/components/Toast/useToastContextValues.js.map +1 -1
  16. package/lib/components/ToastBody/ToastBody.js.map +1 -1
  17. package/lib/components/ToastBody/renderToastBody.js +7 -2
  18. package/lib/components/ToastBody/renderToastBody.js.map +1 -1
  19. package/lib/components/ToastBody/useToastBody.js +1 -1
  20. package/lib/components/ToastBody/useToastBody.js.map +1 -1
  21. package/lib/components/ToastContainer/ToastContainer.js.map +1 -1
  22. package/lib/components/ToastContainer/renderToastContainer.js +12 -7
  23. package/lib/components/ToastContainer/renderToastContainer.js.map +1 -1
  24. package/lib/components/ToastContainer/useToastContainer.js +15 -15
  25. package/lib/components/ToastContainer/useToastContainer.js.map +1 -1
  26. package/lib/components/ToastContainer/useToastContainerContextValues.js +1 -1
  27. package/lib/components/ToastContainer/useToastContainerContextValues.js.map +1 -1
  28. package/lib/components/ToastFooter/ToastFooter.js.map +1 -1
  29. package/lib/components/ToastFooter/renderToastFooter.js +2 -2
  30. package/lib/components/ToastFooter/renderToastFooter.js.map +1 -1
  31. package/lib/components/ToastFooter/useToastFooter.js.map +1 -1
  32. package/lib/components/ToastTitle/ToastTitle.js.map +1 -1
  33. package/lib/components/ToastTitle/renderToastTitle.js +8 -2
  34. package/lib/components/ToastTitle/renderToastTitle.js.map +1 -1
  35. package/lib/components/ToastTitle/useToastTitle.js +1 -1
  36. package/lib/components/ToastTitle/useToastTitle.js.map +1 -1
  37. package/lib/components/ToastTitle/useToastTitleStyles.styles.js.map +1 -1
  38. package/lib/components/ToastTrigger/ToastTrigger.js.map +1 -1
  39. package/lib/components/ToastTrigger/useToastTrigger.js +8 -7
  40. package/lib/components/ToastTrigger/useToastTrigger.js.map +1 -1
  41. package/lib/components/Toaster/Toaster.js.map +1 -1
  42. package/lib/components/Toaster/renderToaster.js +18 -7
  43. package/lib/components/Toaster/renderToaster.js.map +1 -1
  44. package/lib/components/Toaster/useToastAnnounce.js.map +1 -1
  45. package/lib/components/Toaster/useToaster.js +6 -6
  46. package/lib/components/Toaster/useToaster.js.map +1 -1
  47. package/lib/components/Toaster/useToasterFocusManagement.js +2 -2
  48. package/lib/components/Toaster/useToasterFocusManagement.js.map +1 -1
  49. package/lib/contexts/toastContainerContext.js.map +1 -1
  50. package/lib/state/useToastController.js +3 -2
  51. package/lib/state/useToastController.js.map +1 -1
  52. package/lib/state/useToaster.js +15 -11
  53. package/lib/state/useToaster.js.map +1 -1
  54. package/lib/state/vanilla/createToaster.js +7 -7
  55. package/lib/state/vanilla/createToaster.js.map +1 -1
  56. package/lib/state/vanilla/dismissAllToasts.js.map +1 -1
  57. package/lib/state/vanilla/dismissToast.js.map +1 -1
  58. package/lib/state/vanilla/dispatchToast.js.map +1 -1
  59. package/lib/state/vanilla/getPositionStyles.js +1 -1
  60. package/lib/state/vanilla/getPositionStyles.js.map +1 -1
  61. package/lib/state/vanilla/pauseToast.js.map +1 -1
  62. package/lib/state/vanilla/playToast.js.map +1 -1
  63. package/lib/state/vanilla/updateToast.js.map +1 -1
  64. package/lib-commonjs/AriaLive.js +2 -2
  65. package/lib-commonjs/AriaLive.js.map +1 -1
  66. package/lib-commonjs/Toast.js +2 -2
  67. package/lib-commonjs/Toast.js.map +1 -1
  68. package/lib-commonjs/ToastBody.js +2 -2
  69. package/lib-commonjs/ToastBody.js.map +1 -1
  70. package/lib-commonjs/ToastContainer.js +2 -2
  71. package/lib-commonjs/ToastContainer.js.map +1 -1
  72. package/lib-commonjs/ToastFooter.js +2 -2
  73. package/lib-commonjs/ToastFooter.js.map +1 -1
  74. package/lib-commonjs/ToastTitle.js +2 -2
  75. package/lib-commonjs/ToastTitle.js.map +1 -1
  76. package/lib-commonjs/ToastTrigger.js +2 -2
  77. package/lib-commonjs/ToastTrigger.js.map +1 -1
  78. package/lib-commonjs/Toaster.js +2 -2
  79. package/lib-commonjs/Toaster.js.map +1 -1
  80. package/lib-commonjs/components/AriaLive/AriaLive.js +7 -5
  81. package/lib-commonjs/components/AriaLive/AriaLive.js.map +1 -1
  82. package/lib-commonjs/components/AriaLive/AriaLive.types.js +2 -2
  83. package/lib-commonjs/components/AriaLive/AriaLive.types.js.map +1 -1
  84. package/lib-commonjs/components/AriaLive/index.js +6 -6
  85. package/lib-commonjs/components/AriaLive/index.js.map +1 -1
  86. package/lib-commonjs/components/AriaLive/renderAriaLive.js +13 -6
  87. package/lib-commonjs/components/AriaLive/renderAriaLive.js.map +1 -1
  88. package/lib-commonjs/components/AriaLive/useAriaLive.js +16 -12
  89. package/lib-commonjs/components/AriaLive/useAriaLive.js.map +1 -1
  90. package/lib-commonjs/components/AriaLive/useAriaLiveStyles.styles.js +7 -3
  91. package/lib-commonjs/components/AriaLive/useAriaLiveStyles.styles.js.map +1 -1
  92. package/lib-commonjs/components/Timer/Timer.js +8 -6
  93. package/lib-commonjs/components/Timer/Timer.js.map +1 -1
  94. package/lib-commonjs/components/Timer/index.js +2 -2
  95. package/lib-commonjs/components/Timer/index.js.map +1 -1
  96. package/lib-commonjs/components/Timer/useTimerStyles.styles.js +4 -2
  97. package/lib-commonjs/components/Timer/useTimerStyles.styles.js.map +1 -1
  98. package/lib-commonjs/components/Toast/Toast.js +7 -5
  99. package/lib-commonjs/components/Toast/Toast.js.map +1 -1
  100. package/lib-commonjs/components/Toast/index.js +6 -6
  101. package/lib-commonjs/components/Toast/index.js.map +1 -1
  102. package/lib-commonjs/components/Toast/renderToast.js +12 -9
  103. package/lib-commonjs/components/Toast/renderToast.js.map +1 -1
  104. package/lib-commonjs/components/Toast/useToast.js +7 -5
  105. package/lib-commonjs/components/Toast/useToast.js.map +1 -1
  106. package/lib-commonjs/components/Toast/useToastContextValues.js +4 -2
  107. package/lib-commonjs/components/Toast/useToastContextValues.js.map +1 -1
  108. package/lib-commonjs/components/Toast/useToastStyles.styles.js +8 -4
  109. package/lib-commonjs/components/Toast/useToastStyles.styles.js.map +1 -1
  110. package/lib-commonjs/components/ToastBody/ToastBody.js +7 -5
  111. package/lib-commonjs/components/ToastBody/ToastBody.js.map +1 -1
  112. package/lib-commonjs/components/ToastBody/index.js +6 -6
  113. package/lib-commonjs/components/ToastBody/index.js.map +1 -1
  114. package/lib-commonjs/components/ToastBody/renderToastBody.js +13 -6
  115. package/lib-commonjs/components/ToastBody/renderToastBody.js.map +1 -1
  116. package/lib-commonjs/components/ToastBody/useToastBody.js +11 -9
  117. package/lib-commonjs/components/ToastBody/useToastBody.js.map +1 -1
  118. package/lib-commonjs/components/ToastBody/useToastBodyStyles.styles.js +9 -5
  119. package/lib-commonjs/components/ToastBody/useToastBodyStyles.styles.js.map +1 -1
  120. package/lib-commonjs/components/ToastContainer/ToastContainer.js +7 -5
  121. package/lib-commonjs/components/ToastContainer/ToastContainer.js.map +1 -1
  122. package/lib-commonjs/components/ToastContainer/ToastContainer.types.js +2 -2
  123. package/lib-commonjs/components/ToastContainer/ToastContainer.types.js.map +1 -1
  124. package/lib-commonjs/components/ToastContainer/index.js +7 -7
  125. package/lib-commonjs/components/ToastContainer/index.js.map +1 -1
  126. package/lib-commonjs/components/ToastContainer/renderToastContainer.js +19 -12
  127. package/lib-commonjs/components/ToastContainer/renderToastContainer.js.map +1 -1
  128. package/lib-commonjs/components/ToastContainer/useToastContainer.js +42 -40
  129. package/lib-commonjs/components/ToastContainer/useToastContainer.js.map +1 -1
  130. package/lib-commonjs/components/ToastContainer/useToastContainerContextValues.js +6 -4
  131. package/lib-commonjs/components/ToastContainer/useToastContainerContextValues.js.map +1 -1
  132. package/lib-commonjs/components/ToastContainer/useToastContainerStyles.styles.js +8 -4
  133. package/lib-commonjs/components/ToastContainer/useToastContainerStyles.styles.js.map +1 -1
  134. package/lib-commonjs/components/ToastFooter/ToastFooter.js +7 -5
  135. package/lib-commonjs/components/ToastFooter/ToastFooter.js.map +1 -1
  136. package/lib-commonjs/components/ToastFooter/index.js +6 -6
  137. package/lib-commonjs/components/ToastFooter/index.js.map +1 -1
  138. package/lib-commonjs/components/ToastFooter/renderToastFooter.js +8 -6
  139. package/lib-commonjs/components/ToastFooter/renderToastFooter.js.map +1 -1
  140. package/lib-commonjs/components/ToastFooter/useToastFooter.js +7 -5
  141. package/lib-commonjs/components/ToastFooter/useToastFooter.js.map +1 -1
  142. package/lib-commonjs/components/ToastFooter/useToastFooterStyles.styles.js +7 -3
  143. package/lib-commonjs/components/ToastFooter/useToastFooterStyles.styles.js.map +1 -1
  144. package/lib-commonjs/components/ToastTitle/ToastTitle.js +7 -5
  145. package/lib-commonjs/components/ToastTitle/ToastTitle.js.map +1 -1
  146. package/lib-commonjs/components/ToastTitle/index.js +6 -6
  147. package/lib-commonjs/components/ToastTitle/index.js.map +1 -1
  148. package/lib-commonjs/components/ToastTitle/renderToastTitle.js +14 -6
  149. package/lib-commonjs/components/ToastTitle/renderToastTitle.js.map +1 -1
  150. package/lib-commonjs/components/ToastTitle/useToastTitle.js +17 -15
  151. package/lib-commonjs/components/ToastTitle/useToastTitle.js.map +1 -1
  152. package/lib-commonjs/components/ToastTitle/useToastTitleStyles.styles.js +13 -9
  153. package/lib-commonjs/components/ToastTitle/useToastTitleStyles.styles.js.map +1 -1
  154. package/lib-commonjs/components/ToastTrigger/ToastTrigger.js +5 -3
  155. package/lib-commonjs/components/ToastTrigger/ToastTrigger.js.map +1 -1
  156. package/lib-commonjs/components/ToastTrigger/ToastTrigger.types.js +2 -2
  157. package/lib-commonjs/components/ToastTrigger/ToastTrigger.types.js.map +1 -1
  158. package/lib-commonjs/components/ToastTrigger/index.js +5 -5
  159. package/lib-commonjs/components/ToastTrigger/index.js.map +1 -1
  160. package/lib-commonjs/components/ToastTrigger/renderToastTrigger.js +3 -1
  161. package/lib-commonjs/components/ToastTrigger/renderToastTrigger.js.map +1 -1
  162. package/lib-commonjs/components/ToastTrigger/useToastTrigger.js +18 -15
  163. package/lib-commonjs/components/ToastTrigger/useToastTrigger.js.map +1 -1
  164. package/lib-commonjs/components/Toaster/Toaster.js +7 -5
  165. package/lib-commonjs/components/Toaster/Toaster.js.map +1 -1
  166. package/lib-commonjs/components/Toaster/index.js +6 -6
  167. package/lib-commonjs/components/Toaster/index.js.map +1 -1
  168. package/lib-commonjs/components/Toaster/renderToaster.js +26 -13
  169. package/lib-commonjs/components/Toaster/renderToaster.js.map +1 -1
  170. package/lib-commonjs/components/Toaster/useToastAnnounce.js +8 -6
  171. package/lib-commonjs/components/Toaster/useToastAnnounce.js.map +1 -1
  172. package/lib-commonjs/components/Toaster/useToaster.js +24 -22
  173. package/lib-commonjs/components/Toaster/useToaster.js.map +1 -1
  174. package/lib-commonjs/components/Toaster/useToasterFocusManagement.js +19 -17
  175. package/lib-commonjs/components/Toaster/useToasterFocusManagement.js.map +1 -1
  176. package/lib-commonjs/components/Toaster/useToasterStyles.styles.js +7 -3
  177. package/lib-commonjs/components/Toaster/useToasterStyles.styles.js.map +1 -1
  178. package/lib-commonjs/contexts/toastContainerContext.js +8 -4
  179. package/lib-commonjs/contexts/toastContainerContext.js.map +1 -1
  180. package/lib-commonjs/index.js +93 -35
  181. package/lib-commonjs/index.js.map +1 -1
  182. package/lib-commonjs/state/constants.js +6 -2
  183. package/lib-commonjs/state/constants.js.map +1 -1
  184. package/lib-commonjs/state/index.js +10 -6
  185. package/lib-commonjs/state/index.js.map +1 -1
  186. package/lib-commonjs/state/types.js +2 -2
  187. package/lib-commonjs/state/types.js.map +1 -1
  188. package/lib-commonjs/state/useToastController.js +9 -6
  189. package/lib-commonjs/state/useToastController.js.map +1 -1
  190. package/lib-commonjs/state/useToaster.js +26 -20
  191. package/lib-commonjs/state/useToaster.js.map +1 -1
  192. package/lib-commonjs/state/vanilla/createToaster.js +14 -12
  193. package/lib-commonjs/state/vanilla/createToaster.js.map +1 -1
  194. package/lib-commonjs/state/vanilla/dismissAllToasts.js +3 -1
  195. package/lib-commonjs/state/vanilla/dismissAllToasts.js.map +1 -1
  196. package/lib-commonjs/state/vanilla/dismissToast.js +3 -1
  197. package/lib-commonjs/state/vanilla/dismissToast.js.map +1 -1
  198. package/lib-commonjs/state/vanilla/dispatchToast.js +3 -1
  199. package/lib-commonjs/state/vanilla/dispatchToast.js.map +1 -1
  200. package/lib-commonjs/state/vanilla/getPositionStyles.js +4 -2
  201. package/lib-commonjs/state/vanilla/getPositionStyles.js.map +1 -1
  202. package/lib-commonjs/state/vanilla/index.js +9 -9
  203. package/lib-commonjs/state/vanilla/index.js.map +1 -1
  204. package/lib-commonjs/state/vanilla/pauseToast.js +3 -1
  205. package/lib-commonjs/state/vanilla/pauseToast.js.map +1 -1
  206. package/lib-commonjs/state/vanilla/playToast.js +3 -1
  207. package/lib-commonjs/state/vanilla/playToast.js.map +1 -1
  208. package/lib-commonjs/state/vanilla/updateToast.js +3 -1
  209. package/lib-commonjs/state/vanilla/updateToast.js.map +1 -1
  210. package/package.json +14 -14
@@ -1,14 +1,16 @@
1
- /** @jsxRuntime classic */ /** @jsx createElement */ "use strict";
1
+ /** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  Object.defineProperty(exports, "renderToastFooter_unstable", {
6
6
  enumerable: true,
7
- get: ()=>renderToastFooter_unstable
7
+ get: function() {
8
+ return renderToastFooter_unstable;
9
+ }
8
10
  });
9
- const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
11
13
  const renderToastFooter_unstable = (state)=>{
12
- (0, _reactUtilities.assertSlots)(state);
13
- return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.root, null);
14
+ (0, _reactutilities.assertSlots)(state);
15
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
14
16
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderToastFooter.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of ToastFooter\n */ export const renderToastFooter_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ createElement(state.root, null);\n};\n"],"names":["renderToastFooter_unstable","state","assertSlots","createElement","root"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAIjCA;;aAAAA;;iCAJkE;gCACvD;AAGjB,MAAMA,6BAA6B,CAACC,QAAQ;IACnDC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,8BAAa,EAACF,MAAMG,IAAI,EAAE,IAAI;AACvD"}
1
+ {"version":3,"sources":["renderToastFooter.js"],"sourcesContent":["/** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of ToastFooter\n */ export const renderToastFooter_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsx(state.root, {});\n};\n"],"names":["renderToastFooter_unstable","state","assertSlots","_jsx","root"],"mappings":"AAAA,0BAA0B,GAAG,iDAAiD;;;;+BAI7DA;;;eAAAA;;;4BAJ4F;gCACjF;AAGjB,MAAMA,6BAA6B,CAACC;IAC3CC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,eAAI,EAACF,MAAMG,IAAI,EAAE,CAAC;AAC3C"}
@@ -4,17 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useToastFooter_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useToastFooter_unstable
7
+ get: function() {
8
+ return useToastFooter_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 useToastFooter_unstable = (props, ref)=>{
13
15
  return {
14
16
  components: {
15
17
  root: 'div'
16
18
  },
17
- root: _reactUtilities.slot.always((0, _reactUtilities.getNativeElementProps)('div', {
19
+ root: _reactutilities.slot.always((0, _reactutilities.getNativeElementProps)('div', {
18
20
  ref,
19
21
  ...props
20
22
  }), {
@@ -1 +1 @@
1
- {"version":3,"sources":["useToastFooter.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Create the state required to render ToastFooter.\n *\n * The returned state can be modified with hooks such as useToastFooterStyles_unstable,\n * before being passed to renderToastFooter_unstable.\n *\n * @param props - props from this instance of ToastFooter\n * @param ref - reference to root HTMLElement of ToastFooter\n */ export const useToastFooter_unstable = (props, ref)=>{\n return {\n components: {\n root: 'div'\n },\n root: slot.always(getNativeElementProps('div', {\n ref,\n ...props\n }), {\n elementType: 'div'\n })\n };\n};\n"],"names":["useToastFooter_unstable","props","ref","components","root","slot","always","getNativeElementProps","elementType"],"mappings":";;;;+BAUiBA;;aAAAA;;;6DAVM;gCACqB;AASjC,MAAMA,0BAA0B,CAACC,OAAOC,MAAM;IACrD,OAAO;QACHC,YAAY;YACRC,MAAM;QACV;QACAA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAAC,OAAO;YAC3CL;YACA,GAAGD,KAAK;QACZ,IAAI;YACAO,aAAa;QACjB;IACJ;AACJ"}
1
+ {"version":3,"sources":["useToastFooter.js"],"sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\n/**\n * Create the state required to render ToastFooter.\n *\n * The returned state can be modified with hooks such as useToastFooterStyles_unstable,\n * before being passed to renderToastFooter_unstable.\n *\n * @param props - props from this instance of ToastFooter\n * @param ref - reference to root HTMLElement of ToastFooter\n */ export const useToastFooter_unstable = (props, ref)=>{\n return {\n components: {\n root: 'div'\n },\n root: slot.always(getNativeElementProps('div', {\n ref,\n ...props\n }), {\n elementType: 'div'\n })\n };\n};\n"],"names":["useToastFooter_unstable","props","ref","components","root","slot","always","getNativeElementProps","elementType"],"mappings":";;;;+BAUiBA;;;eAAAA;;;;iEAVM;gCACqB;AASjC,MAAMA,0BAA0B,CAACC,OAAOC;IAC/C,OAAO;QACHC,YAAY;YACRC,MAAM;QACV;QACAA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,qCAAqB,EAAC,OAAO;YAC3CL;YACA,GAAGD,KAAK;QACZ,IAAI;YACAO,aAAa;QACjB;IACJ;AACJ"}
@@ -9,8 +9,12 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- toastFooterClassNames: ()=>toastFooterClassNames,
13
- useToastFooterStyles_unstable: ()=>useToastFooterStyles_unstable
12
+ toastFooterClassNames: function() {
13
+ return toastFooterClassNames;
14
+ },
15
+ useToastFooterStyles_unstable: function() {
16
+ return useToastFooterStyles_unstable;
17
+ }
14
18
  });
15
19
  const _react = require("@griffel/react");
16
20
  const toastFooterClassNames = {
@@ -18,7 +22,7 @@ const toastFooterClassNames = {
18
22
  };
19
23
  /**
20
24
  * Styles for the root slot
21
- */ const useRootBaseClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("r1u6izx1", null, [
25
+ */ const useRootBaseClassName = /*#__PURE__*/ (0, _react.__resetStyles)("r1u6izx1", null, [
22
26
  ".r1u6izx1{padding-top:16px;grid-column-start:2;grid-column-end:3;display:flex;align-items:center;column-gap:14px;row-gap:14px;}"
23
27
  ]);
24
28
  const useToastFooterStyles_unstable = (state)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["useToastFooterStyles.styles.js"],"sourcesContent":["import { __resetStyles, mergeClasses, shorthands } from '@griffel/react';\nexport const toastFooterClassNames = {\n root: 'fui-ToastFooter'\n};\n/**\n * Styles for the root slot\n */\nconst useRootBaseClassName = /*#__PURE__*/__resetStyles(\"r1u6izx1\", null, [\".r1u6izx1{padding-top:16px;grid-column-start:2;grid-column-end:3;display:flex;align-items:center;column-gap:14px;row-gap:14px;}\"]);\n/**\n * Apply styling to the ToastFooter slots based on the state\n */\nexport const useToastFooterStyles_unstable = state => {\n const rootBaseClassName = useRootBaseClassName();\n state.root.className = mergeClasses(toastFooterClassNames.root, rootBaseClassName, state.root.className);\n return state;\n};\n//# sourceMappingURL=useToastFooterStyles.styles.js.map"],"names":["toastFooterClassNames","useToastFooterStyles_unstable","root","useRootBaseClassName","__resetStyles","state","rootBaseClassName","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,qBAAqB,MAArBA;IAUAC,6BAA6B,MAA7BA;;uBAX2C;AACjD,MAAMD,wBAAwB;IACnCE,MAAM;AACR;AACA;;CAEC,GACD,MAAMC,uBAAuB,WAAW,GAAEC,IAAAA,uBAAa,EAAC,YAAY,IAAI,EAAE;IAAC;CAAkI;AAItM,MAAMH,gCAAgCI,CAAAA,QAAS;IACpD,MAAMC,oBAAoBH;IAC1BE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,mBAAY,EAACR,sBAAsBE,IAAI,EAAEI,mBAAmBD,MAAMH,IAAI,CAACK,SAAS;IACvG,OAAOF;AACT,GACA,uDAAuD"}
1
+ {"version":3,"sources":["useToastFooterStyles.styles.js"],"sourcesContent":["import { __resetStyles, mergeClasses, shorthands } from '@griffel/react';\nexport const toastFooterClassNames = {\n root: 'fui-ToastFooter'\n};\n/**\n * Styles for the root slot\n */\nconst useRootBaseClassName = /*#__PURE__*/__resetStyles(\"r1u6izx1\", null, [\".r1u6izx1{padding-top:16px;grid-column-start:2;grid-column-end:3;display:flex;align-items:center;column-gap:14px;row-gap:14px;}\"]);\n/**\n * Apply styling to the ToastFooter slots based on the state\n */\nexport const useToastFooterStyles_unstable = state => {\n const rootBaseClassName = useRootBaseClassName();\n state.root.className = mergeClasses(toastFooterClassNames.root, rootBaseClassName, state.root.className);\n return state;\n};\n//# sourceMappingURL=useToastFooterStyles.styles.js.map"],"names":["toastFooterClassNames","useToastFooterStyles_unstable","root","useRootBaseClassName","__resetStyles","state","rootBaseClassName","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,qBAAqB;eAArBA;;IAUAC,6BAA6B;eAA7BA;;;uBAX2C;AACjD,MAAMD,wBAAwB;IACnCE,MAAM;AACR;AACA;;CAEC,GACD,MAAMC,uBAAuB,WAAW,GAAEC,IAAAA,oBAAa,EAAC,YAAY,MAAM;IAAC;CAAkI;AAItM,MAAMH,gCAAgCI,CAAAA;IAC3C,MAAMC,oBAAoBH;IAC1BE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,mBAAY,EAACR,sBAAsBE,IAAI,EAAEI,mBAAmBD,MAAMH,IAAI,CAACK,SAAS;IACvG,OAAOF;AACT,GACA,uDAAuD"}
@@ -4,16 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "ToastTitle", {
6
6
  enumerable: true,
7
- get: ()=>ToastTitle
7
+ get: function() {
8
+ return ToastTitle;
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 _useToastTitle = require("./useToastTitle");
12
14
  const _renderToastTitle = require("./renderToastTitle");
13
- const _useToastTitleStylesStyles = require("./useToastTitleStyles.styles");
15
+ const _useToastTitleStylesstyles = require("./useToastTitleStyles.styles");
14
16
  const ToastTitle = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
15
17
  const state = (0, _useToastTitle.useToastTitle_unstable)(props, ref);
16
- (0, _useToastTitleStylesStyles.useToastTitleStyles_unstable)(state);
18
+ (0, _useToastTitleStylesstyles.useToastTitleStyles_unstable)(state);
17
19
  return (0, _renderToastTitle.renderToastTitle_unstable)(state);
18
20
  });
19
21
  ToastTitle.displayName = 'ToastTitle';
@@ -1 +1 @@
1
- {"version":3,"sources":["ToastTitle.js"],"sourcesContent":["import * as React from 'react';\nimport { useToastTitle_unstable } from './useToastTitle';\nimport { renderToastTitle_unstable } from './renderToastTitle';\nimport { useToastTitleStyles_unstable } from './useToastTitleStyles.styles';\n/**\n * ToastTitle component\n */ export const ToastTitle = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useToastTitle_unstable(props, ref);\n useToastTitleStyles_unstable(state);\n return renderToastTitle_unstable(state);\n});\nToastTitle.displayName = 'ToastTitle';\n"],"names":["ToastTitle","React","forwardRef","props","ref","state","useToastTitle_unstable","useToastTitleStyles_unstable","renderToastTitle_unstable","displayName"],"mappings":";;;;+BAMiBA;;aAAAA;;;6DANM;+BACgB;kCACG;2CACG;AAGlC,MAAMA,aAAa,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IACvE,MAAMC,QAAQC,IAAAA,qCAAsB,EAACH,OAAOC;IAC5CG,IAAAA,uDAA4B,EAACF;IAC7B,OAAOG,IAAAA,2CAAyB,EAACH;AACrC;AACAL,WAAWS,WAAW,GAAG"}
1
+ {"version":3,"sources":["ToastTitle.js"],"sourcesContent":["import * as React from 'react';\nimport { useToastTitle_unstable } from './useToastTitle';\nimport { renderToastTitle_unstable } from './renderToastTitle';\nimport { useToastTitleStyles_unstable } from './useToastTitleStyles.styles';\n/**\n * ToastTitle component\n */ export const ToastTitle = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useToastTitle_unstable(props, ref);\n useToastTitleStyles_unstable(state);\n return renderToastTitle_unstable(state);\n});\nToastTitle.displayName = 'ToastTitle';\n"],"names":["ToastTitle","React","forwardRef","props","ref","state","useToastTitle_unstable","useToastTitleStyles_unstable","renderToastTitle_unstable","displayName"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;+BACgB;kCACG;2CACG;AAGlC,MAAMA,aAAa,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjE,MAAMC,QAAQC,IAAAA,qCAAsB,EAACH,OAAOC;IAC5CG,IAAAA,uDAA4B,EAACF;IAC7B,OAAOG,IAAAA,2CAAyB,EAACH;AACrC;AACAL,WAAWS,WAAW,GAAG"}
@@ -2,9 +2,9 @@
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("./ToastTitle"), exports);
7
- _exportStar(require("./ToastTitle.types"), exports);
8
- _exportStar(require("./renderToastTitle"), exports);
9
- _exportStar(require("./useToastTitle"), exports);
10
- _exportStar(require("./useToastTitleStyles.styles"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./ToastTitle"), exports);
7
+ _export_star._(require("./ToastTitle.types"), exports);
8
+ _export_star._(require("./renderToastTitle"), exports);
9
+ _export_star._(require("./useToastTitle"), exports);
10
+ _export_star._(require("./useToastTitleStyles.styles"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './ToastTitle';\nexport * from './ToastTitle.types';\nexport * from './renderToastTitle';\nexport * from './useToastTitle';\nexport * from './useToastTitleStyles.styles';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './ToastTitle';\nexport * from './ToastTitle.types';\nexport * from './renderToastTitle';\nexport * from './useToastTitle';\nexport * from './useToastTitleStyles.styles';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA"}
@@ -1,14 +1,22 @@
1
- /** @jsxRuntime classic */ /** @jsxFrag Fragment */ /** @jsx createElement */ "use strict";
1
+ /** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ "use strict";
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
5
  Object.defineProperty(exports, "renderToastTitle_unstable", {
6
6
  enumerable: true,
7
- get: ()=>renderToastTitle_unstable
7
+ get: function() {
8
+ return renderToastTitle_unstable;
9
+ }
8
10
  });
9
- const _reactJsxRuntime = require("@fluentui/react-jsx-runtime");
10
- const _reactUtilities = require("@fluentui/react-utilities");
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactutilities = require("@fluentui/react-utilities");
11
13
  const renderToastTitle_unstable = (state)=>{
12
- (0, _reactUtilities.assertSlots)(state);
13
- return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(_reactJsxRuntime.Fragment, null, state.media ? /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.media, null) : null, /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.root, null), state.action ? /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(state.action, null) : null);
14
+ (0, _reactutilities.assertSlots)(state);
15
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
16
+ children: [
17
+ state.media ? /*#__PURE__*/ (0, _jsxruntime.jsx)(state.media, {}) : null,
18
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {}),
19
+ state.action ? /*#__PURE__*/ (0, _jsxruntime.jsx)(state.action, {}) : null
20
+ ]
21
+ });
14
22
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderToastTitle.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsxFrag Fragment */ /** @jsx createElement */ import { createElement, Fragment } from '@fluentui/react-jsx-runtime';\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of ToastTitle\n */ export const renderToastTitle_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ createElement(Fragment, null, state.media ? /*#__PURE__*/ createElement(state.media, null) : null, /*#__PURE__*/ createElement(state.root, null), state.action ? /*#__PURE__*/ createElement(state.action, null) : null);\n};\n"],"names":["renderToastTitle_unstable","state","assertSlots","createElement","Fragment","media","root","action"],"mappings":"AAAA,wBAAwB,GAAG,sBAAsB,GAAG,uBAAuB;;;;+BAI1DA;;aAAAA;;iCAJqG;gCAC1F;AAGjB,MAAMA,4BAA4B,CAACC,QAAQ;IAClDC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,8BAAa,EAACC,yBAAQ,EAAE,IAAI,EAAEH,MAAMI,KAAK,GAAG,WAAW,GAAGF,IAAAA,8BAAa,EAACF,MAAMI,KAAK,EAAE,IAAI,IAAI,IAAI,EAAE,WAAW,GAAGF,IAAAA,8BAAa,EAACF,MAAMK,IAAI,EAAE,IAAI,GAAGL,MAAMM,MAAM,GAAG,WAAW,GAAGJ,IAAAA,8BAAa,EAACF,MAAMM,MAAM,EAAE,IAAI,IAAI,IAAI;AAChP"}
1
+ {"version":3,"sources":["renderToastTitle.js"],"sourcesContent":["/** @jsxRuntime automatic */ /** @jsxImportSource @fluentui/react-jsx-runtime */ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of ToastTitle\n */ export const renderToastTitle_unstable = (state)=>{\n assertSlots(state);\n return /*#__PURE__*/ _jsxs(_Fragment, {\n children: [\n state.media ? /*#__PURE__*/ _jsx(state.media, {}) : null,\n /*#__PURE__*/ _jsx(state.root, {}),\n state.action ? /*#__PURE__*/ _jsx(state.action, {}) : null\n ]\n });\n};\n"],"names":["renderToastTitle_unstable","state","assertSlots","_jsxs","_Fragment","children","media","_jsx","root","action"],"mappings":"AAAA,0BAA0B,GAAG,iDAAiD;;;;+BAI7DA;;;eAAAA;;;4BAJkI;gCACvH;AAGjB,MAAMA,4BAA4B,CAACC;IAC1CC,IAAAA,2BAAW,EAACD;IACZ,OAAO,WAAW,GAAGE,IAAAA,gBAAK,EAACC,oBAAS,EAAE;QAClCC,UAAU;YACNJ,MAAMK,KAAK,GAAG,WAAW,GAAGC,IAAAA,eAAI,EAACN,MAAMK,KAAK,EAAE,CAAC,KAAK;YACpD,WAAW,GAAGC,IAAAA,eAAI,EAACN,MAAMO,IAAI,EAAE,CAAC;YAChCP,MAAMQ,MAAM,GAAG,WAAW,GAAGF,IAAAA,eAAI,EAACN,MAAMQ,MAAM,EAAE,CAAC,KAAK;SACzD;IACL;AACJ"}
@@ -4,34 +4,36 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useToastTitle_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useToastTitle_unstable
7
+ get: function() {
8
+ return useToastTitle_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 _reactIcons = require("@fluentui/react-icons");
12
- const _reactUtilities = require("@fluentui/react-utilities");
13
- const _reactSharedContexts = require("@fluentui/react-shared-contexts");
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reacticons = require("@fluentui/react-icons");
14
+ const _reactutilities = require("@fluentui/react-utilities");
15
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
14
16
  const _toastContainerContext = require("../../contexts/toastContainerContext");
15
17
  const useToastTitle_unstable = (props, ref)=>{
16
- const { intent , titleId } = (0, _toastContainerContext.useToastContainerContext)();
17
- const backgroundAppearance = (0, _reactSharedContexts.useBackgroundAppearance)();
18
+ const { intent, titleId } = (0, _toastContainerContext.useToastContainerContext)();
19
+ const backgroundAppearance = (0, _reactsharedcontexts.useBackgroundAppearance)();
18
20
  /** Determine the role and media to render based on the intent */ let defaultIcon;
19
21
  switch(intent){
20
22
  case 'success':
21
- defaultIcon = /*#__PURE__*/ _react.createElement(_reactIcons.CheckmarkCircleFilled, null);
23
+ defaultIcon = /*#__PURE__*/ _react.createElement(_reacticons.CheckmarkCircleFilled, null);
22
24
  break;
23
25
  case 'error':
24
- defaultIcon = /*#__PURE__*/ _react.createElement(_reactIcons.DismissCircleFilled, null);
26
+ defaultIcon = /*#__PURE__*/ _react.createElement(_reacticons.DismissCircleFilled, null);
25
27
  break;
26
28
  case 'warning':
27
- defaultIcon = /*#__PURE__*/ _react.createElement(_reactIcons.WarningFilled, null);
29
+ defaultIcon = /*#__PURE__*/ _react.createElement(_reacticons.WarningFilled, null);
28
30
  break;
29
31
  case 'info':
30
- defaultIcon = /*#__PURE__*/ _react.createElement(_reactIcons.InfoFilled, null);
32
+ defaultIcon = /*#__PURE__*/ _react.createElement(_reacticons.InfoFilled, null);
31
33
  break;
32
34
  }
33
35
  return {
34
- action: _reactUtilities.slot.optional(props.action, {
36
+ action: _reactutilities.slot.optional(props.action, {
35
37
  elementType: 'div'
36
38
  }),
37
39
  components: {
@@ -39,14 +41,14 @@ const useToastTitle_unstable = (props, ref)=>{
39
41
  media: 'div',
40
42
  action: 'div'
41
43
  },
42
- media: _reactUtilities.slot.optional(props.media, {
44
+ media: _reactutilities.slot.optional(props.media, {
43
45
  renderByDefault: !!intent,
44
46
  defaultProps: {
45
47
  children: defaultIcon
46
48
  },
47
49
  elementType: 'div'
48
50
  }),
49
- root: _reactUtilities.slot.always((0, _reactUtilities.getNativeElementProps)('div', {
51
+ root: _reactutilities.slot.always((0, _reactutilities.getNativeElementProps)('div', {
50
52
  ref,
51
53
  children: props.children,
52
54
  id: titleId,
@@ -1 +1 @@
1
- {"version":3,"sources":["useToastTitle.js"],"sourcesContent":["import * as React from 'react';\nimport { CheckmarkCircleFilled, DismissCircleFilled, InfoFilled, WarningFilled } from '@fluentui/react-icons';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\nimport { useBackgroundAppearance } from '@fluentui/react-shared-contexts';\nimport { useToastContainerContext } from '../../contexts/toastContainerContext';\n/**\n * Create the state required to render ToastTitle.\n *\n * The returned state can be modified with hooks such as useToastTitleStyles_unstable,\n * before being passed to renderToastTitle_unstable.\n *\n * @param props - props from this instance of ToastTitle\n * @param ref - reference to root HTMLElement of ToastTitle\n */ export const useToastTitle_unstable = (props, ref)=>{\n const { intent , titleId } = useToastContainerContext();\n const backgroundAppearance = useBackgroundAppearance();\n /** Determine the role and media to render based on the intent */ let defaultIcon;\n switch(intent){\n case 'success':\n defaultIcon = /*#__PURE__*/ React.createElement(CheckmarkCircleFilled, null);\n break;\n case 'error':\n defaultIcon = /*#__PURE__*/ React.createElement(DismissCircleFilled, null);\n break;\n case 'warning':\n defaultIcon = /*#__PURE__*/ React.createElement(WarningFilled, null);\n break;\n case 'info':\n defaultIcon = /*#__PURE__*/ React.createElement(InfoFilled, null);\n break;\n }\n return {\n action: slot.optional(props.action, {\n elementType: 'div'\n }),\n components: {\n root: 'div',\n media: 'div',\n action: 'div'\n },\n media: slot.optional(props.media, {\n renderByDefault: !!intent,\n defaultProps: {\n children: defaultIcon\n },\n elementType: 'div'\n }),\n root: slot.always(getNativeElementProps('div', {\n ref,\n children: props.children,\n id: titleId,\n ...props\n }), {\n elementType: 'div'\n }),\n intent,\n backgroundAppearance\n };\n};\n"],"names":["useToastTitle_unstable","props","ref","intent","titleId","useToastContainerContext","backgroundAppearance","useBackgroundAppearance","defaultIcon","React","createElement","CheckmarkCircleFilled","DismissCircleFilled","WarningFilled","InfoFilled","action","slot","optional","elementType","components","root","media","renderByDefault","defaultProps","children","always","getNativeElementProps","id"],"mappings":";;;;+BAaiBA;;aAAAA;;;6DAbM;4BAC+D;gCAC1C;qCACJ;uCACC;AAS9B,MAAMA,yBAAyB,CAACC,OAAOC,MAAM;IACpD,MAAM,EAAEC,OAAM,EAAGC,QAAO,EAAG,GAAGC,IAAAA,+CAAwB;IACtD,MAAMC,uBAAuBC,IAAAA,4CAAuB;IACpD,+DAA+D,GAAG,IAAIC;IACtE,OAAOL;QACH,KAAK;YACDK,cAAc,WAAW,GAAGC,OAAMC,aAAa,CAACC,iCAAqB,EAAE,IAAI;YAC3E,KAAM;QACV,KAAK;YACDH,cAAc,WAAW,GAAGC,OAAMC,aAAa,CAACE,+BAAmB,EAAE,IAAI;YACzE,KAAM;QACV,KAAK;YACDJ,cAAc,WAAW,GAAGC,OAAMC,aAAa,CAACG,yBAAa,EAAE,IAAI;YACnE,KAAM;QACV,KAAK;YACDL,cAAc,WAAW,GAAGC,OAAMC,aAAa,CAACI,sBAAU,EAAE,IAAI;YAChE,KAAM;IACd;IACA,OAAO;QACHC,QAAQC,oBAAI,CAACC,QAAQ,CAAChB,MAAMc,MAAM,EAAE;YAChCG,aAAa;QACjB;QACAC,YAAY;YACRC,MAAM;YACNC,OAAO;YACPN,QAAQ;QACZ;QACAM,OAAOL,oBAAI,CAACC,QAAQ,CAAChB,MAAMoB,KAAK,EAAE;YAC9BC,iBAAiB,CAAC,CAACnB;YACnBoB,cAAc;gBACVC,UAAUhB;YACd;YACAU,aAAa;QACjB;QACAE,MAAMJ,oBAAI,CAACS,MAAM,CAACC,IAAAA,qCAAqB,EAAC,OAAO;YAC3CxB;YACAsB,UAAUvB,MAAMuB,QAAQ;YACxBG,IAAIvB;YACJ,GAAGH,KAAK;QACZ,IAAI;YACAiB,aAAa;QACjB;QACAf;QACAG;IACJ;AACJ"}
1
+ {"version":3,"sources":["useToastTitle.js"],"sourcesContent":["import * as React from 'react';\nimport { CheckmarkCircleFilled, DismissCircleFilled, InfoFilled, WarningFilled } from '@fluentui/react-icons';\nimport { getNativeElementProps, slot } from '@fluentui/react-utilities';\nimport { useBackgroundAppearance } from '@fluentui/react-shared-contexts';\nimport { useToastContainerContext } from '../../contexts/toastContainerContext';\n/**\n * Create the state required to render ToastTitle.\n *\n * The returned state can be modified with hooks such as useToastTitleStyles_unstable,\n * before being passed to renderToastTitle_unstable.\n *\n * @param props - props from this instance of ToastTitle\n * @param ref - reference to root HTMLElement of ToastTitle\n */ export const useToastTitle_unstable = (props, ref)=>{\n const { intent, titleId } = useToastContainerContext();\n const backgroundAppearance = useBackgroundAppearance();\n /** Determine the role and media to render based on the intent */ let defaultIcon;\n switch(intent){\n case 'success':\n defaultIcon = /*#__PURE__*/ React.createElement(CheckmarkCircleFilled, null);\n break;\n case 'error':\n defaultIcon = /*#__PURE__*/ React.createElement(DismissCircleFilled, null);\n break;\n case 'warning':\n defaultIcon = /*#__PURE__*/ React.createElement(WarningFilled, null);\n break;\n case 'info':\n defaultIcon = /*#__PURE__*/ React.createElement(InfoFilled, null);\n break;\n }\n return {\n action: slot.optional(props.action, {\n elementType: 'div'\n }),\n components: {\n root: 'div',\n media: 'div',\n action: 'div'\n },\n media: slot.optional(props.media, {\n renderByDefault: !!intent,\n defaultProps: {\n children: defaultIcon\n },\n elementType: 'div'\n }),\n root: slot.always(getNativeElementProps('div', {\n ref,\n children: props.children,\n id: titleId,\n ...props\n }), {\n elementType: 'div'\n }),\n intent,\n backgroundAppearance\n };\n};\n"],"names":["useToastTitle_unstable","props","ref","intent","titleId","useToastContainerContext","backgroundAppearance","useBackgroundAppearance","defaultIcon","React","createElement","CheckmarkCircleFilled","DismissCircleFilled","WarningFilled","InfoFilled","action","slot","optional","elementType","components","root","media","renderByDefault","defaultProps","children","always","getNativeElementProps","id"],"mappings":";;;;+BAaiBA;;;eAAAA;;;;iEAbM;4BAC+D;gCAC1C;qCACJ;uCACC;AAS9B,MAAMA,yBAAyB,CAACC,OAAOC;IAC9C,MAAM,EAAEC,MAAM,EAAEC,OAAO,EAAE,GAAGC,IAAAA,+CAAwB;IACpD,MAAMC,uBAAuBC,IAAAA,4CAAuB;IACpD,+DAA+D,GAAG,IAAIC;IACtE,OAAOL;QACH,KAAK;YACDK,cAAc,WAAW,GAAGC,OAAMC,aAAa,CAACC,iCAAqB,EAAE;YACvE;QACJ,KAAK;YACDH,cAAc,WAAW,GAAGC,OAAMC,aAAa,CAACE,+BAAmB,EAAE;YACrE;QACJ,KAAK;YACDJ,cAAc,WAAW,GAAGC,OAAMC,aAAa,CAACG,yBAAa,EAAE;YAC/D;QACJ,KAAK;YACDL,cAAc,WAAW,GAAGC,OAAMC,aAAa,CAACI,sBAAU,EAAE;YAC5D;IACR;IACA,OAAO;QACHC,QAAQC,oBAAI,CAACC,QAAQ,CAAChB,MAAMc,MAAM,EAAE;YAChCG,aAAa;QACjB;QACAC,YAAY;YACRC,MAAM;YACNC,OAAO;YACPN,QAAQ;QACZ;QACAM,OAAOL,oBAAI,CAACC,QAAQ,CAAChB,MAAMoB,KAAK,EAAE;YAC9BC,iBAAiB,CAAC,CAACnB;YACnBoB,cAAc;gBACVC,UAAUhB;YACd;YACAU,aAAa;QACjB;QACAE,MAAMJ,oBAAI,CAACS,MAAM,CAACC,IAAAA,qCAAqB,EAAC,OAAO;YAC3CxB;YACAsB,UAAUvB,MAAMuB,QAAQ;YACxBG,IAAIvB;YACJ,GAAGH,KAAK;QACZ,IAAI;YACAiB,aAAa;QACjB;QACAf;QACAG;IACJ;AACJ"}
@@ -9,8 +9,12 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- toastTitleClassNames: ()=>toastTitleClassNames,
13
- useToastTitleStyles_unstable: ()=>useToastTitleStyles_unstable
12
+ toastTitleClassNames: function() {
13
+ return toastTitleClassNames;
14
+ },
15
+ useToastTitleStyles_unstable: function() {
16
+ return useToastTitleStyles_unstable;
17
+ }
14
18
  });
15
19
  const _react = require("@griffel/react");
16
20
  const toastTitleClassNames = {
@@ -18,18 +22,18 @@ const toastTitleClassNames = {
18
22
  media: 'fui-ToastTitle__media',
19
23
  action: 'fui-ToastTitle__action'
20
24
  };
21
- const useRootBaseClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("r1mlor6q", null, [
25
+ const useRootBaseClassName = /*#__PURE__*/ (0, _react.__resetStyles)("r1mlor6q", null, [
22
26
  ".r1mlor6q{display:flex;align-items:center;grid-column-end:3;color:var(--colorNeutralForeground1);}"
23
27
  ]);
24
- const useMediaBaseClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("rnm72z1", "rzj6g76", [
28
+ const useMediaBaseClassName = /*#__PURE__*/ (0, _react.__resetStyles)("rnm72z1", "rzj6g76", [
25
29
  ".rnm72z1{display:flex;align-items:center;grid-column-end:2;padding-right:8px;font-size:16px;color:var(--colorNeutralForeground1);}",
26
30
  ".rzj6g76{display:flex;align-items:center;grid-column-end:2;padding-left:8px;font-size:16px;color:var(--colorNeutralForeground1);}"
27
31
  ]);
28
- const useActionBaseClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("r5vrc68", "rzqb88z", [
32
+ const useActionBaseClassName = /*#__PURE__*/ (0, _react.__resetStyles)("r5vrc68", "rzqb88z", [
29
33
  ".r5vrc68{display:flex;align-items:center;padding-left:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}",
30
34
  ".rzqb88z{display:flex;align-items:center;padding-right:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}"
31
35
  ]);
32
- const useInvertedStyles = /*#__PURE__*/ (0, _react["__styles"])({
36
+ const useInvertedStyles = /*#__PURE__*/ (0, _react.__styles)({
33
37
  root: {
34
38
  sj55zd: "f1w7i9ko"
35
39
  },
@@ -46,7 +50,7 @@ const useInvertedStyles = /*#__PURE__*/ (0, _react["__styles"])({
46
50
  ".fqpbvvt{color:var(--colorNeutralForegroundInverted);}"
47
51
  ]
48
52
  });
49
- const useIntentIconStyles = /*#__PURE__*/ (0, _react["__styles"])({
53
+ const useIntentIconStyles = /*#__PURE__*/ (0, _react.__styles)({
50
54
  success: {
51
55
  sj55zd: "f1m7fhi8"
52
56
  },
@@ -67,7 +71,7 @@ const useIntentIconStyles = /*#__PURE__*/ (0, _react["__styles"])({
67
71
  ".fkfq4zb{color:var(--colorNeutralForeground2);}"
68
72
  ]
69
73
  });
70
- const useIntentIconStylesInverted = /*#__PURE__*/ (0, _react["__styles"])({
74
+ const useIntentIconStylesInverted = /*#__PURE__*/ (0, _react.__styles)({
71
75
  success: {
72
76
  sj55zd: "f1pvjcpr"
73
77
  },
@@ -94,7 +98,7 @@ const useToastTitleStyles_unstable = (state)=>{
94
98
  const mediaBaseClassName = useMediaBaseClassName();
95
99
  const intentIconStyles = useIntentIconStyles();
96
100
  const intentIconStylesInverted = useIntentIconStylesInverted();
97
- const { intent } = state;
101
+ const { intent } = state;
98
102
  const invertedStyles = useInvertedStyles();
99
103
  state.root.className = (0, _react.mergeClasses)(toastTitleClassNames.root, rootBaseClassName, state.backgroundAppearance === 'inverted' && invertedStyles.root, state.root.className);
100
104
  if (state.media) {
@@ -1 +1 @@
1
- {"version":3,"sources":["useToastTitleStyles.styles.js"],"sourcesContent":["import { __styles, __resetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const toastTitleClassNames = {\n root: 'fui-ToastTitle',\n media: 'fui-ToastTitle__media',\n action: 'fui-ToastTitle__action'\n};\nconst useRootBaseClassName = /*#__PURE__*/__resetStyles(\"r1mlor6q\", null, [\".r1mlor6q{display:flex;align-items:center;grid-column-end:3;color:var(--colorNeutralForeground1);}\"]);\nconst useMediaBaseClassName = /*#__PURE__*/__resetStyles(\"rnm72z1\", \"rzj6g76\", [\".rnm72z1{display:flex;align-items:center;grid-column-end:2;padding-right:8px;font-size:16px;color:var(--colorNeutralForeground1);}\", \".rzj6g76{display:flex;align-items:center;grid-column-end:2;padding-left:8px;font-size:16px;color:var(--colorNeutralForeground1);}\"]);\nconst useActionBaseClassName = /*#__PURE__*/__resetStyles(\"r5vrc68\", \"rzqb88z\", [\".r5vrc68{display:flex;align-items:center;padding-left:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}\", \".rzqb88z{display:flex;align-items:center;padding-right:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}\"]);\nconst useInvertedStyles = /*#__PURE__*/__styles({\n root: {\n sj55zd: \"f1w7i9ko\"\n },\n action: {\n sj55zd: \"f1qz2gb0\"\n },\n media: {\n sj55zd: \"fqpbvvt\"\n }\n}, {\n d: [\".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}\", \".f1qz2gb0{color:var(--colorBrandForegroundInverted);}\", \".fqpbvvt{color:var(--colorNeutralForegroundInverted);}\"]\n});\nconst useIntentIconStyles = /*#__PURE__*/__styles({\n success: {\n sj55zd: \"f1m7fhi8\"\n },\n error: {\n sj55zd: \"fg9gses\"\n },\n warning: {\n sj55zd: \"f1k5f75o\"\n },\n info: {\n sj55zd: \"fkfq4zb\"\n }\n}, {\n d: [\".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}\", \".fg9gses{color:var(--colorPaletteCranberryForeground2);}\", \".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}\", \".fkfq4zb{color:var(--colorNeutralForeground2);}\"]\n});\nconst useIntentIconStylesInverted = /*#__PURE__*/__styles({\n success: {\n sj55zd: \"f1pvjcpr\"\n },\n error: {\n sj55zd: \"fcrp5ll\"\n },\n warning: {\n sj55zd: \"f1r8f1cl\"\n },\n info: {\n sj55zd: \"f1w7i9ko\"\n }\n}, {\n d: [\".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}\", \".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}\", \".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}\", \".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}\"]\n});\n/**\n * Apply styling to the ToastTitle slots based on the state\n */\nexport const useToastTitleStyles_unstable = state => {\n const rootBaseClassName = useRootBaseClassName();\n const actionBaseClassName = useActionBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const intentIconStyles = useIntentIconStyles();\n const intentIconStylesInverted = useIntentIconStylesInverted();\n const {\n intent\n } = state;\n const invertedStyles = useInvertedStyles();\n state.root.className = mergeClasses(toastTitleClassNames.root, rootBaseClassName, state.backgroundAppearance === 'inverted' && invertedStyles.root, state.root.className);\n if (state.media) {\n state.media.className = mergeClasses(toastTitleClassNames.media, mediaBaseClassName, state.backgroundAppearance === 'inverted' && invertedStyles.media, state.media.className, intent && intentIconStyles[intent], intent && state.backgroundAppearance === 'inverted' && intentIconStylesInverted[intent]);\n }\n if (state.action) {\n state.action.className = mergeClasses(toastTitleClassNames.action, actionBaseClassName, state.backgroundAppearance === 'inverted' && invertedStyles.action, state.action.className);\n }\n return state;\n};\n//# sourceMappingURL=useToastTitleStyles.styles.js.map"],"names":["toastTitleClassNames","useToastTitleStyles_unstable","root","media","action","useRootBaseClassName","__resetStyles","useMediaBaseClassName","useActionBaseClassName","useInvertedStyles","__styles","sj55zd","d","useIntentIconStyles","success","error","warning","info","useIntentIconStylesInverted","state","rootBaseClassName","actionBaseClassName","mediaBaseClassName","intentIconStyles","intentIconStylesInverted","intent","invertedStyles","className","mergeClasses","backgroundAppearance"],"mappings":";;;;;;;;;;;IAEaA,oBAAoB,MAApBA;IAwDAC,4BAA4B,MAA5BA;;uBA1DyC;AAE/C,MAAMD,uBAAuB;IAClCE,MAAM;IACNC,OAAO;IACPC,QAAQ;AACV;AACA,MAAMC,uBAAuB,WAAW,GAAEC,IAAAA,uBAAa,EAAC,YAAY,IAAI,EAAE;IAAC;CAAqG;AAChL,MAAMC,wBAAwB,WAAW,GAAED,IAAAA,uBAAa,EAAC,WAAW,WAAW;IAAC;IAAsI;CAAoI;AAC1V,MAAME,yBAAyB,WAAW,GAAEF,IAAAA,uBAAa,EAAC,WAAW,WAAW;IAAC;IAAsH;CAAsH;AAC7T,MAAMG,oBAAoB,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IAC9CR,MAAM;QACJS,QAAQ;IACV;IACAP,QAAQ;QACNO,QAAQ;IACV;IACAR,OAAO;QACLQ,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAA4D;QAAyD;KAAyD;AACpL;AACA,MAAMC,sBAAsB,WAAW,GAAEH,IAAAA,kBAAQ,EAAC;IAChDI,SAAS;QACPH,QAAQ;IACV;IACAI,OAAO;QACLJ,QAAQ;IACV;IACAK,SAAS;QACPL,QAAQ;IACV;IACAM,MAAM;QACJN,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAAyD;QAA4D;QAA8D;KAAkD;AAC3O;AACA,MAAMM,8BAA8B,WAAW,GAAER,IAAAA,kBAAQ,EAAC;IACxDI,SAAS;QACPH,QAAQ;IACV;IACAI,OAAO;QACLJ,QAAQ;IACV;IACAK,SAAS;QACPL,QAAQ;IACV;IACAM,MAAM;QACJN,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAAgE;QAA6D;QAAiE;KAA2D;AAC/P;AAIO,MAAMX,+BAA+BkB,CAAAA,QAAS;IACnD,MAAMC,oBAAoBf;IAC1B,MAAMgB,sBAAsBb;IAC5B,MAAMc,qBAAqBf;IAC3B,MAAMgB,mBAAmBV;IACzB,MAAMW,2BAA2BN;IACjC,MAAM,EACJO,OAAM,EACP,GAAGN;IACJ,MAAMO,iBAAiBjB;IACvBU,MAAMjB,IAAI,CAACyB,SAAS,GAAGC,IAAAA,mBAAY,EAAC5B,qBAAqBE,IAAI,EAAEkB,mBAAmBD,MAAMU,oBAAoB,KAAK,cAAcH,eAAexB,IAAI,EAAEiB,MAAMjB,IAAI,CAACyB,SAAS;IACxK,IAAIR,MAAMhB,KAAK,EAAE;QACfgB,MAAMhB,KAAK,CAACwB,SAAS,GAAGC,IAAAA,mBAAY,EAAC5B,qBAAqBG,KAAK,EAAEmB,oBAAoBH,MAAMU,oBAAoB,KAAK,cAAcH,eAAevB,KAAK,EAAEgB,MAAMhB,KAAK,CAACwB,SAAS,EAAEF,UAAUF,gBAAgB,CAACE,OAAO,EAAEA,UAAUN,MAAMU,oBAAoB,KAAK,cAAcL,wBAAwB,CAACC,OAAO;IAC5S,CAAC;IACD,IAAIN,MAAMf,MAAM,EAAE;QAChBe,MAAMf,MAAM,CAACuB,SAAS,GAAGC,IAAAA,mBAAY,EAAC5B,qBAAqBI,MAAM,EAAEiB,qBAAqBF,MAAMU,oBAAoB,KAAK,cAAcH,eAAetB,MAAM,EAAEe,MAAMf,MAAM,CAACuB,SAAS;IACpL,CAAC;IACD,OAAOR;AACT,GACA,sDAAsD"}
1
+ {"version":3,"sources":["useToastTitleStyles.styles.js"],"sourcesContent":["import { __styles, __resetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const toastTitleClassNames = {\n root: 'fui-ToastTitle',\n media: 'fui-ToastTitle__media',\n action: 'fui-ToastTitle__action'\n};\nconst useRootBaseClassName = /*#__PURE__*/__resetStyles(\"r1mlor6q\", null, [\".r1mlor6q{display:flex;align-items:center;grid-column-end:3;color:var(--colorNeutralForeground1);}\"]);\nconst useMediaBaseClassName = /*#__PURE__*/__resetStyles(\"rnm72z1\", \"rzj6g76\", [\".rnm72z1{display:flex;align-items:center;grid-column-end:2;padding-right:8px;font-size:16px;color:var(--colorNeutralForeground1);}\", \".rzj6g76{display:flex;align-items:center;grid-column-end:2;padding-left:8px;font-size:16px;color:var(--colorNeutralForeground1);}\"]);\nconst useActionBaseClassName = /*#__PURE__*/__resetStyles(\"r5vrc68\", \"rzqb88z\", [\".r5vrc68{display:flex;align-items:center;padding-left:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}\", \".rzqb88z{display:flex;align-items:center;padding-right:12px;grid-column-end:-1;color:var(--colorBrandForeground1);}\"]);\nconst useInvertedStyles = /*#__PURE__*/__styles({\n root: {\n sj55zd: \"f1w7i9ko\"\n },\n action: {\n sj55zd: \"f1qz2gb0\"\n },\n media: {\n sj55zd: \"fqpbvvt\"\n }\n}, {\n d: [\".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}\", \".f1qz2gb0{color:var(--colorBrandForegroundInverted);}\", \".fqpbvvt{color:var(--colorNeutralForegroundInverted);}\"]\n});\nconst useIntentIconStyles = /*#__PURE__*/__styles({\n success: {\n sj55zd: \"f1m7fhi8\"\n },\n error: {\n sj55zd: \"fg9gses\"\n },\n warning: {\n sj55zd: \"f1k5f75o\"\n },\n info: {\n sj55zd: \"fkfq4zb\"\n }\n}, {\n d: [\".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}\", \".fg9gses{color:var(--colorPaletteCranberryForeground2);}\", \".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}\", \".fkfq4zb{color:var(--colorNeutralForeground2);}\"]\n});\nconst useIntentIconStylesInverted = /*#__PURE__*/__styles({\n success: {\n sj55zd: \"f1pvjcpr\"\n },\n error: {\n sj55zd: \"fcrp5ll\"\n },\n warning: {\n sj55zd: \"f1r8f1cl\"\n },\n info: {\n sj55zd: \"f1w7i9ko\"\n }\n}, {\n d: [\".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}\", \".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}\", \".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}\", \".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}\"]\n});\n/**\n * Apply styling to the ToastTitle slots based on the state\n */\nexport const useToastTitleStyles_unstable = state => {\n const rootBaseClassName = useRootBaseClassName();\n const actionBaseClassName = useActionBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const intentIconStyles = useIntentIconStyles();\n const intentIconStylesInverted = useIntentIconStylesInverted();\n const {\n intent\n } = state;\n const invertedStyles = useInvertedStyles();\n state.root.className = mergeClasses(toastTitleClassNames.root, rootBaseClassName, state.backgroundAppearance === 'inverted' && invertedStyles.root, state.root.className);\n if (state.media) {\n state.media.className = mergeClasses(toastTitleClassNames.media, mediaBaseClassName, state.backgroundAppearance === 'inverted' && invertedStyles.media, state.media.className, intent && intentIconStyles[intent], intent && state.backgroundAppearance === 'inverted' && intentIconStylesInverted[intent]);\n }\n if (state.action) {\n state.action.className = mergeClasses(toastTitleClassNames.action, actionBaseClassName, state.backgroundAppearance === 'inverted' && invertedStyles.action, state.action.className);\n }\n return state;\n};\n//# sourceMappingURL=useToastTitleStyles.styles.js.map"],"names":["toastTitleClassNames","useToastTitleStyles_unstable","root","media","action","useRootBaseClassName","__resetStyles","useMediaBaseClassName","useActionBaseClassName","useInvertedStyles","__styles","sj55zd","d","useIntentIconStyles","success","error","warning","info","useIntentIconStylesInverted","state","rootBaseClassName","actionBaseClassName","mediaBaseClassName","intentIconStyles","intentIconStylesInverted","intent","invertedStyles","className","mergeClasses","backgroundAppearance"],"mappings":";;;;;;;;;;;IAEaA,oBAAoB;eAApBA;;IAwDAC,4BAA4B;eAA5BA;;;uBA1DyC;AAE/C,MAAMD,uBAAuB;IAClCE,MAAM;IACNC,OAAO;IACPC,QAAQ;AACV;AACA,MAAMC,uBAAuB,WAAW,GAAEC,IAAAA,oBAAa,EAAC,YAAY,MAAM;IAAC;CAAqG;AAChL,MAAMC,wBAAwB,WAAW,GAAED,IAAAA,oBAAa,EAAC,WAAW,WAAW;IAAC;IAAsI;CAAoI;AAC1V,MAAME,yBAAyB,WAAW,GAAEF,IAAAA,oBAAa,EAAC,WAAW,WAAW;IAAC;IAAsH;CAAsH;AAC7T,MAAMG,oBAAoB,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IAC9CR,MAAM;QACJS,QAAQ;IACV;IACAP,QAAQ;QACNO,QAAQ;IACV;IACAR,OAAO;QACLQ,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAA4D;QAAyD;KAAyD;AACpL;AACA,MAAMC,sBAAsB,WAAW,GAAEH,IAAAA,eAAQ,EAAC;IAChDI,SAAS;QACPH,QAAQ;IACV;IACAI,OAAO;QACLJ,QAAQ;IACV;IACAK,SAAS;QACPL,QAAQ;IACV;IACAM,MAAM;QACJN,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAAyD;QAA4D;QAA8D;KAAkD;AAC3O;AACA,MAAMM,8BAA8B,WAAW,GAAER,IAAAA,eAAQ,EAAC;IACxDI,SAAS;QACPH,QAAQ;IACV;IACAI,OAAO;QACLJ,QAAQ;IACV;IACAK,SAAS;QACPL,QAAQ;IACV;IACAM,MAAM;QACJN,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAAgE;QAA6D;QAAiE;KAA2D;AAC/P;AAIO,MAAMX,+BAA+BkB,CAAAA;IAC1C,MAAMC,oBAAoBf;IAC1B,MAAMgB,sBAAsBb;IAC5B,MAAMc,qBAAqBf;IAC3B,MAAMgB,mBAAmBV;IACzB,MAAMW,2BAA2BN;IACjC,MAAM,EACJO,MAAM,EACP,GAAGN;IACJ,MAAMO,iBAAiBjB;IACvBU,MAAMjB,IAAI,CAACyB,SAAS,GAAGC,IAAAA,mBAAY,EAAC5B,qBAAqBE,IAAI,EAAEkB,mBAAmBD,MAAMU,oBAAoB,KAAK,cAAcH,eAAexB,IAAI,EAAEiB,MAAMjB,IAAI,CAACyB,SAAS;IACxK,IAAIR,MAAMhB,KAAK,EAAE;QACfgB,MAAMhB,KAAK,CAACwB,SAAS,GAAGC,IAAAA,mBAAY,EAAC5B,qBAAqBG,KAAK,EAAEmB,oBAAoBH,MAAMU,oBAAoB,KAAK,cAAcH,eAAevB,KAAK,EAAEgB,MAAMhB,KAAK,CAACwB,SAAS,EAAEF,UAAUF,gBAAgB,CAACE,OAAO,EAAEA,UAAUN,MAAMU,oBAAoB,KAAK,cAAcL,wBAAwB,CAACC,OAAO;IAC5S;IACA,IAAIN,MAAMf,MAAM,EAAE;QAChBe,MAAMf,MAAM,CAACuB,SAAS,GAAGC,IAAAA,mBAAY,EAAC5B,qBAAqBI,MAAM,EAAEiB,qBAAqBF,MAAMU,oBAAoB,KAAK,cAAcH,eAAetB,MAAM,EAAEe,MAAMf,MAAM,CAACuB,SAAS;IACpL;IACA,OAAOR;AACT,GACA,sDAAsD"}
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "ToastTrigger", {
6
6
  enumerable: true,
7
- get: ()=>ToastTrigger
7
+ get: function() {
8
+ return ToastTrigger;
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 _useToastTrigger = require("./useToastTrigger");
12
14
  const _renderToastTrigger = require("./renderToastTrigger");
13
15
  const ToastTrigger = (props)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["ToastTrigger.js"],"sourcesContent":["import * as React from 'react';\nimport { useToastTrigger_unstable } from './useToastTrigger';\nimport { renderToastTrigger_unstable } from './renderToastTrigger';\n/**\n * ToastTrigger component\n */ export const ToastTrigger = (props)=>{\n const state = useToastTrigger_unstable(props);\n return renderToastTrigger_unstable(state);\n};\nToastTrigger.displayName = 'ToastTrigger';\n"],"names":["ToastTrigger","props","state","useToastTrigger_unstable","renderToastTrigger_unstable","displayName"],"mappings":";;;;+BAKiBA;;aAAAA;;;6DALM;iCACkB;oCACG;AAGjC,MAAMA,eAAe,CAACC,QAAQ;IACrC,MAAMC,QAAQC,IAAAA,yCAAwB,EAACF;IACvC,OAAOG,IAAAA,+CAA2B,EAACF;AACvC;AACAF,aAAaK,WAAW,GAAG"}
1
+ {"version":3,"sources":["ToastTrigger.js"],"sourcesContent":["import * as React from 'react';\nimport { useToastTrigger_unstable } from './useToastTrigger';\nimport { renderToastTrigger_unstable } from './renderToastTrigger';\n/**\n * ToastTrigger component\n */ export const ToastTrigger = (props)=>{\n const state = useToastTrigger_unstable(props);\n return renderToastTrigger_unstable(state);\n};\nToastTrigger.displayName = 'ToastTrigger';\n"],"names":["ToastTrigger","props","state","useToastTrigger_unstable","renderToastTrigger_unstable","displayName"],"mappings":";;;;+BAKiBA;;;eAAAA;;;;iEALM;iCACkB;oCACG;AAGjC,MAAMA,eAAe,CAACC;IAC7B,MAAMC,QAAQC,IAAAA,yCAAwB,EAACF;IACvC,OAAOG,IAAAA,+CAA2B,EAACF;AACvC;AACAF,aAAaK,WAAW,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":["ToastTrigger.types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;6DAAuB"}
1
+ {"version":3,"sources":["ToastTrigger.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("./ToastTrigger"), exports);
7
- _exportStar(require("./ToastTrigger.types"), exports);
8
- _exportStar(require("./renderToastTrigger"), exports);
9
- _exportStar(require("./useToastTrigger"), exports);
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./ToastTrigger"), exports);
7
+ _export_star._(require("./ToastTrigger.types"), exports);
8
+ _export_star._(require("./renderToastTrigger"), exports);
9
+ _export_star._(require("./useToastTrigger"), exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export * from './ToastTrigger';\nexport * from './ToastTrigger.types';\nexport * from './renderToastTrigger';\nexport * from './useToastTrigger';\n"],"names":[],"mappings":";;;;;oBAAc;oBACA;oBACA;oBACA"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './ToastTrigger';\nexport * from './ToastTrigger.types';\nexport * from './renderToastTrigger';\nexport * from './useToastTrigger';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA"}
@@ -8,6 +8,8 @@ Object.defineProperty(exports, "__esModule", {
8
8
  });
9
9
  Object.defineProperty(exports, "renderToastTrigger_unstable", {
10
10
  enumerable: true,
11
- get: ()=>renderToastTrigger_unstable
11
+ get: function() {
12
+ return renderToastTrigger_unstable;
13
+ }
12
14
  });
13
15
  const renderToastTrigger_unstable = (state)=>state.children;
@@ -1 +1 @@
1
- {"version":3,"sources":["renderToastTrigger.js"],"sourcesContent":["/**\n * Render the final JSX of MenuTrigger\n *\n * Only renders children\n */ export const renderToastTrigger_unstable = (state)=>state.children;\n"],"names":["renderToastTrigger_unstable","state","children"],"mappings":"AAAA;;;;CAIC;;;;+BAAgBA;;aAAAA;;AAAN,MAAMA,8BAA8B,CAACC,QAAQA,MAAMC,QAAQ"}
1
+ {"version":3,"sources":["renderToastTrigger.js"],"sourcesContent":["/**\n * Render the final JSX of MenuTrigger\n *\n * Only renders children\n */ export const renderToastTrigger_unstable = (state)=>state.children;\n"],"names":["renderToastTrigger_unstable","state","children"],"mappings":"AAAA;;;;CAIC;;;;+BAAgBA;;;eAAAA;;;AAAN,MAAMA,8BAA8B,CAACC,QAAQA,MAAMC,QAAQ"}
@@ -4,34 +4,37 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "useToastTrigger_unstable", {
6
6
  enumerable: true,
7
- get: ()=>useToastTrigger_unstable
7
+ get: function() {
8
+ return useToastTrigger_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");
12
- const _reactAria = require("@fluentui/react-aria");
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");
14
+ const _reactaria = require("@fluentui/react-aria");
13
15
  const _toastContainerContext = require("../../contexts/toastContainerContext");
14
16
  const useToastTrigger_unstable = (props)=>{
15
- const { children , disableButtonEnhancement =false } = props;
16
- const { close } = (0, _toastContainerContext.useToastContainerContext)();
17
- const child = (0, _reactUtilities.getTriggerChild)(children);
18
- const handleClick = (0, _reactUtilities.useEventCallback)((e)=>{
19
- var _child_props, _child_props_onClick;
20
- (_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, e);
17
+ var _child, _child1, _child2, _child3;
18
+ const { children, disableButtonEnhancement = false } = props;
19
+ const { close } = (0, _toastContainerContext.useToastContainerContext)();
20
+ const child = (0, _reactutilities.getTriggerChild)(children);
21
+ const handleClick = (0, _reactutilities.useEventCallback)((e)=>{
22
+ var _child_props_onClick, _child, _child_props;
23
+ (_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, e);
21
24
  if (!e.isDefaultPrevented()) {
22
25
  close();
23
26
  }
24
27
  });
25
28
  const triggerChildProps = {
26
- ...child === null || child === void 0 ? void 0 : child.props,
27
- ref: child === null || child === void 0 ? void 0 : child.ref,
29
+ ...(_child = child) === null || _child === void 0 ? void 0 : _child.props,
30
+ ref: (_child1 = child) === null || _child1 === void 0 ? void 0 : _child1.ref,
28
31
  onClick: handleClick
29
32
  };
30
- 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', {
33
+ 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', {
31
34
  ...triggerChildProps,
32
35
  type: 'button'
33
36
  });
34
37
  return {
35
- children: (0, _reactUtilities.applyTriggerPropsToChildren)(children, disableButtonEnhancement ? triggerChildProps : ariaButtonTriggerChildProps)
38
+ children: (0, _reactutilities.applyTriggerPropsToChildren)(children, disableButtonEnhancement ? triggerChildProps : ariaButtonTriggerChildProps)
36
39
  };
37
40
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["useToastTrigger.js"],"sourcesContent":["import * as React from 'react';\nimport { applyTriggerPropsToChildren, getTriggerChild, useEventCallback } from '@fluentui/react-utilities';\nimport { useARIAButtonProps } from '@fluentui/react-aria';\nimport { useToastContainerContext } from '../../contexts/toastContainerContext';\n/**\n * A non-visual component that wraps its child\n * and configures them to be the trigger that will close a `Toast`.\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 `Toast`\n * Besides being a trigger that closes a toast through context this component doesn't do much,\n * making it basically unnecessary in cases where the trigger is outside of a toast.\n */ export const useToastTrigger_unstable = (props)=>{\n const { children , disableButtonEnhancement =false } = props;\n const { close } = useToastContainerContext();\n const child = getTriggerChild(children);\n const handleClick = useEventCallback((e)=>{\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, e);\n if (!e.isDefaultPrevented()) {\n close();\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 };\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":["useToastTrigger_unstable","props","children","disableButtonEnhancement","close","useToastContainerContext","child","getTriggerChild","handleClick","useEventCallback","e","_child_props","_child_props_onClick","onClick","call","isDefaultPrevented","triggerChildProps","ref","ariaButtonTriggerChildProps","useARIAButtonProps","type","applyTriggerPropsToChildren"],"mappings":";;;;+BAYiBA;;aAAAA;;;6DAZM;gCACwD;2BAC5C;uCACM;AAS9B,MAAMA,2BAA2B,CAACC,QAAQ;IACjD,MAAM,EAAEC,SAAQ,EAAGC,0BAA0B,KAAK,CAAA,EAAG,GAAGF;IACxD,MAAM,EAAEG,MAAK,EAAG,GAAGC,IAAAA,+CAAwB;IAC3C,MAAMC,QAAQC,IAAAA,+BAAe,EAACL;IAC9B,MAAMM,cAAcC,IAAAA,gCAAgB,EAAC,CAACC,IAAI;QACtC,IAAIC,cAAcC;QACjBA,CAAAA,uBAAuBD,eAAeL,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAML,KAAK,CAACY,OAAO,AAAD,MAAO,IAAI,IAAID,yBAAyB,KAAK,IAAI,KAAK,IAAIA,qBAAqBE,IAAI,CAACH,cAAcD,EAAE;QAC3M,IAAI,CAACA,EAAEK,kBAAkB,IAAI;YACzBX;QACJ,CAAC;IACL;IACA,MAAMY,oBAAoB;QACtB,GAAGV,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAML,KAAK;QAC5DgB,KAAKX,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAMW,GAAG;QAC5DJ,SAASL;IACb;IACA,MAAMU,8BAA8BC,IAAAA,6BAAkB,EAAC,AAACb,CAAAA,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAMc,IAAI,AAAD,MAAO,YAAY,AAACd,CAAAA,UAAU,IAAI,IAAIA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAMc,IAAI,AAAD,MAAO,MAAMd,MAAMc,IAAI,GAAG,KAAK,EAAE;QACvN,GAAGJ,iBAAiB;QACpBI,MAAM;IACV;IACA,OAAO;QACHlB,UAAUmB,IAAAA,2CAA2B,EAACnB,UAAUC,2BAA2Ba,oBAAoBE,2BAA2B;IAC9H;AACJ"}
1
+ {"version":3,"sources":["useToastTrigger.js"],"sourcesContent":["import * as React from 'react';\nimport { applyTriggerPropsToChildren, getTriggerChild, useEventCallback } from '@fluentui/react-utilities';\nimport { useARIAButtonProps } from '@fluentui/react-aria';\nimport { useToastContainerContext } from '../../contexts/toastContainerContext';\n/**\n * A non-visual component that wraps its child\n * and configures them to be the trigger that will close a `Toast`.\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 `Toast`\n * Besides being a trigger that closes a toast through context this component doesn't do much,\n * making it basically unnecessary in cases where the trigger is outside of a toast.\n */ export const useToastTrigger_unstable = (props)=>{\n var _child, _child1, _child2, _child3;\n const { children, disableButtonEnhancement = false } = props;\n const { close } = useToastContainerContext();\n const child = getTriggerChild(children);\n const handleClick = useEventCallback((e)=>{\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, e);\n if (!e.isDefaultPrevented()) {\n close();\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 };\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":["useToastTrigger_unstable","props","_child","_child1","_child2","_child3","children","disableButtonEnhancement","close","useToastContainerContext","child","getTriggerChild","handleClick","useEventCallback","e","_child_props_onClick","_child_props","onClick","call","isDefaultPrevented","triggerChildProps","ref","ariaButtonTriggerChildProps","useARIAButtonProps","type","applyTriggerPropsToChildren"],"mappings":";;;;+BAYiBA;;;eAAAA;;;;iEAZM;gCACwD;2BAC5C;uCACM;AAS9B,MAAMA,2BAA2B,CAACC;IACzC,IAAIC,QAAQC,SAASC,SAASC;IAC9B,MAAM,EAAEC,QAAQ,EAAEC,2BAA2B,KAAK,EAAE,GAAGN;IACvD,MAAM,EAAEO,KAAK,EAAE,GAAGC,IAAAA,+CAAwB;IAC1C,MAAMC,QAAQC,IAAAA,+BAAe,EAACL;IAC9B,MAAMM,cAAcC,IAAAA,gCAAgB,EAAC,CAACC;QAClC,IAAIC,sBAAsBb,QAAQc;QACjCd,CAAAA,SAASQ,KAAI,MAAO,QAAQR,WAAW,KAAK,IAAI,KAAK,IAAI,AAACa,CAAAA,uBAAuB,AAACC,CAAAA,eAAed,OAAOD,KAAK,AAAD,EAAGgB,OAAO,AAAD,MAAO,QAAQF,yBAAyB,KAAK,IAAI,KAAK,IAAIA,qBAAqBG,IAAI,CAACF,cAAcF;QACxN,IAAI,CAACA,EAAEK,kBAAkB,IAAI;YACzBX;QACJ;IACJ;IACA,MAAMY,oBAAoB;QACtB,GAAG,AAAClB,CAAAA,SAASQ,KAAI,MAAO,QAAQR,WAAW,KAAK,IAAI,KAAK,IAAIA,OAAOD,KAAK;QACzEoB,KAAK,AAAClB,CAAAA,UAAUO,KAAI,MAAO,QAAQP,YAAY,KAAK,IAAI,KAAK,IAAIA,QAAQkB,GAAG;QAC5EJ,SAASL;IACb;IACA,MAAMU,8BAA8BC,IAAAA,6BAAkB,EAAC,AAAC,CAAA,AAACnB,CAAAA,UAAUM,KAAI,MAAO,QAAQN,YAAY,KAAK,IAAI,KAAK,IAAIA,QAAQoB,IAAI,AAAD,MAAO,YAAY,AAAC,CAAA,AAACnB,CAAAA,UAAUK,KAAI,MAAO,QAAQL,YAAY,KAAK,IAAI,KAAK,IAAIA,QAAQmB,IAAI,AAAD,MAAO,MAAMd,MAAMc,IAAI,GAAG,OAAO;QACvP,GAAGJ,iBAAiB;QACpBI,MAAM;IACV;IACA,OAAO;QACHlB,UAAUmB,IAAAA,2CAA2B,EAACnB,UAAUC,2BAA2Ba,oBAAoBE;IACnG;AACJ"}
@@ -4,16 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "Toaster", {
6
6
  enumerable: true,
7
- get: ()=>Toaster
7
+ get: function() {
8
+ return Toaster;
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 _useToaster = require("./useToaster");
12
14
  const _renderToaster = require("./renderToaster");
13
- const _useToasterStylesStyles = require("./useToasterStyles.styles");
15
+ const _useToasterStylesstyles = require("./useToasterStyles.styles");
14
16
  const Toaster = (props)=>{
15
17
  const state = (0, _useToaster.useToaster_unstable)(props);
16
- (0, _useToasterStylesStyles.useToasterStyles_unstable)(state);
18
+ (0, _useToasterStylesstyles.useToasterStyles_unstable)(state);
17
19
  return (0, _renderToaster.renderToaster_unstable)(state);
18
20
  };
19
21
  Toaster.displayName = 'Toaster';
@@ -1 +1 @@
1
- {"version":3,"sources":["Toaster.js"],"sourcesContent":["import * as React from 'react';\nimport { useToaster_unstable } from './useToaster';\nimport { renderToaster_unstable } from './renderToaster';\nimport { useToasterStyles_unstable } from './useToasterStyles.styles';\n/**\n * Toaster component - renders a collection of toasts dispatched imperatively\n */ export const Toaster = (props)=>{\n const state = useToaster_unstable(props);\n useToasterStyles_unstable(state);\n return renderToaster_unstable(state);\n};\nToaster.displayName = 'Toaster';\n"],"names":["Toaster","props","state","useToaster_unstable","useToasterStyles_unstable","renderToaster_unstable","displayName"],"mappings":";;;;+BAMiBA;;aAAAA;;;6DANM;4BACa;+BACG;wCACG;AAG/B,MAAMA,UAAU,CAACC,QAAQ;IAChC,MAAMC,QAAQC,IAAAA,+BAAmB,EAACF;IAClCG,IAAAA,iDAAyB,EAACF;IAC1B,OAAOG,IAAAA,qCAAsB,EAACH;AAClC;AACAF,QAAQM,WAAW,GAAG"}
1
+ {"version":3,"sources":["Toaster.js"],"sourcesContent":["import * as React from 'react';\nimport { useToaster_unstable } from './useToaster';\nimport { renderToaster_unstable } from './renderToaster';\nimport { useToasterStyles_unstable } from './useToasterStyles.styles';\n/**\n * Toaster component - renders a collection of toasts dispatched imperatively\n */ export const Toaster = (props)=>{\n const state = useToaster_unstable(props);\n useToasterStyles_unstable(state);\n return renderToaster_unstable(state);\n};\nToaster.displayName = 'Toaster';\n"],"names":["Toaster","props","state","useToaster_unstable","useToasterStyles_unstable","renderToaster_unstable","displayName"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;4BACa;+BACG;wCACG;AAG/B,MAAMA,UAAU,CAACC;IACxB,MAAMC,QAAQC,IAAAA,+BAAmB,EAACF;IAClCG,IAAAA,iDAAyB,EAACF;IAC1B,OAAOG,IAAAA,qCAAsB,EAACH;AAClC;AACAF,QAAQM,WAAW,GAAG"}