@react-spectrum/toast 3.0.0-beta.7 → 3.0.0-beta.8

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 (182) hide show
  1. package/dist/ar-AE.main.js +8 -0
  2. package/dist/ar-AE.main.js.map +1 -0
  3. package/dist/ar-AE.mjs +10 -0
  4. package/dist/ar-AE.module.js +10 -0
  5. package/dist/ar-AE.module.js.map +1 -0
  6. package/dist/bg-BG.main.js +8 -0
  7. package/dist/bg-BG.main.js.map +1 -0
  8. package/dist/bg-BG.mjs +10 -0
  9. package/dist/bg-BG.module.js +10 -0
  10. package/dist/bg-BG.module.js.map +1 -0
  11. package/dist/cs-CZ.main.js +8 -0
  12. package/dist/cs-CZ.main.js.map +1 -0
  13. package/dist/cs-CZ.mjs +10 -0
  14. package/dist/cs-CZ.module.js +10 -0
  15. package/dist/cs-CZ.module.js.map +1 -0
  16. package/dist/da-DK.main.js +8 -0
  17. package/dist/da-DK.main.js.map +1 -0
  18. package/dist/da-DK.mjs +10 -0
  19. package/dist/da-DK.module.js +10 -0
  20. package/dist/da-DK.module.js.map +1 -0
  21. package/dist/de-DE.main.js +8 -0
  22. package/dist/de-DE.main.js.map +1 -0
  23. package/dist/de-DE.mjs +10 -0
  24. package/dist/de-DE.module.js +10 -0
  25. package/dist/de-DE.module.js.map +1 -0
  26. package/dist/el-GR.main.js +8 -0
  27. package/dist/el-GR.main.js.map +1 -0
  28. package/dist/el-GR.mjs +10 -0
  29. package/dist/el-GR.module.js +10 -0
  30. package/dist/el-GR.module.js.map +1 -0
  31. package/dist/en-US.main.js +8 -0
  32. package/dist/en-US.main.js.map +1 -0
  33. package/dist/en-US.mjs +10 -0
  34. package/dist/en-US.module.js +10 -0
  35. package/dist/en-US.module.js.map +1 -0
  36. package/dist/es-ES.main.js +8 -0
  37. package/dist/es-ES.main.js.map +1 -0
  38. package/dist/es-ES.mjs +10 -0
  39. package/dist/es-ES.module.js +10 -0
  40. package/dist/es-ES.module.js.map +1 -0
  41. package/dist/et-EE.main.js +8 -0
  42. package/dist/et-EE.main.js.map +1 -0
  43. package/dist/et-EE.mjs +10 -0
  44. package/dist/et-EE.module.js +10 -0
  45. package/dist/et-EE.module.js.map +1 -0
  46. package/dist/fi-FI.main.js +8 -0
  47. package/dist/fi-FI.main.js.map +1 -0
  48. package/dist/fi-FI.mjs +10 -0
  49. package/dist/fi-FI.module.js +10 -0
  50. package/dist/fi-FI.module.js.map +1 -0
  51. package/dist/fr-FR.main.js +8 -0
  52. package/dist/fr-FR.main.js.map +1 -0
  53. package/dist/fr-FR.mjs +10 -0
  54. package/dist/fr-FR.module.js +10 -0
  55. package/dist/fr-FR.module.js.map +1 -0
  56. package/dist/he-IL.main.js +8 -0
  57. package/dist/he-IL.main.js.map +1 -0
  58. package/dist/he-IL.mjs +10 -0
  59. package/dist/he-IL.module.js +10 -0
  60. package/dist/he-IL.module.js.map +1 -0
  61. package/dist/hr-HR.main.js +8 -0
  62. package/dist/hr-HR.main.js.map +1 -0
  63. package/dist/hr-HR.mjs +10 -0
  64. package/dist/hr-HR.module.js +10 -0
  65. package/dist/hr-HR.module.js.map +1 -0
  66. package/dist/hu-HU.main.js +8 -0
  67. package/dist/hu-HU.main.js.map +1 -0
  68. package/dist/hu-HU.mjs +10 -0
  69. package/dist/hu-HU.module.js +10 -0
  70. package/dist/hu-HU.module.js.map +1 -0
  71. package/dist/import.mjs +37 -239
  72. package/dist/it-IT.main.js +8 -0
  73. package/dist/it-IT.main.js.map +1 -0
  74. package/dist/it-IT.mjs +10 -0
  75. package/dist/it-IT.module.js +10 -0
  76. package/dist/it-IT.module.js.map +1 -0
  77. package/dist/ja-JP.main.js +8 -0
  78. package/dist/ja-JP.main.js.map +1 -0
  79. package/dist/ja-JP.mjs +10 -0
  80. package/dist/ja-JP.module.js +10 -0
  81. package/dist/ja-JP.module.js.map +1 -0
  82. package/dist/ko-KR.main.js +8 -0
  83. package/dist/ko-KR.main.js.map +1 -0
  84. package/dist/ko-KR.mjs +10 -0
  85. package/dist/ko-KR.module.js +10 -0
  86. package/dist/ko-KR.module.js.map +1 -0
  87. package/dist/lt-LT.main.js +8 -0
  88. package/dist/lt-LT.main.js.map +1 -0
  89. package/dist/lt-LT.mjs +10 -0
  90. package/dist/lt-LT.module.js +10 -0
  91. package/dist/lt-LT.module.js.map +1 -0
  92. package/dist/lv-LV.main.js +8 -0
  93. package/dist/lv-LV.main.js.map +1 -0
  94. package/dist/lv-LV.mjs +10 -0
  95. package/dist/lv-LV.module.js +10 -0
  96. package/dist/lv-LV.module.js.map +1 -0
  97. package/dist/main.css +242 -1
  98. package/dist/main.css.map +1 -0
  99. package/dist/main.js +37 -239
  100. package/dist/main.js.map +1 -1
  101. package/dist/module.js +37 -239
  102. package/dist/module.js.map +1 -1
  103. package/dist/nb-NO.main.js +8 -0
  104. package/dist/nb-NO.main.js.map +1 -0
  105. package/dist/nb-NO.mjs +10 -0
  106. package/dist/nb-NO.module.js +10 -0
  107. package/dist/nb-NO.module.js.map +1 -0
  108. package/dist/nl-NL.main.js +8 -0
  109. package/dist/nl-NL.main.js.map +1 -0
  110. package/dist/nl-NL.mjs +10 -0
  111. package/dist/nl-NL.module.js +10 -0
  112. package/dist/nl-NL.module.js.map +1 -0
  113. package/dist/pl-PL.main.js +8 -0
  114. package/dist/pl-PL.main.js.map +1 -0
  115. package/dist/pl-PL.mjs +10 -0
  116. package/dist/pl-PL.module.js +10 -0
  117. package/dist/pl-PL.module.js.map +1 -0
  118. package/dist/pt-BR.main.js +8 -0
  119. package/dist/pt-BR.main.js.map +1 -0
  120. package/dist/pt-BR.mjs +10 -0
  121. package/dist/pt-BR.module.js +10 -0
  122. package/dist/pt-BR.module.js.map +1 -0
  123. package/dist/pt-PT.main.js +8 -0
  124. package/dist/pt-PT.main.js.map +1 -0
  125. package/dist/pt-PT.mjs +10 -0
  126. package/dist/pt-PT.module.js +10 -0
  127. package/dist/pt-PT.module.js.map +1 -0
  128. package/dist/ro-RO.main.js +8 -0
  129. package/dist/ro-RO.main.js.map +1 -0
  130. package/dist/ro-RO.mjs +10 -0
  131. package/dist/ro-RO.module.js +10 -0
  132. package/dist/ro-RO.module.js.map +1 -0
  133. package/dist/ru-RU.main.js +8 -0
  134. package/dist/ru-RU.main.js.map +1 -0
  135. package/dist/ru-RU.mjs +10 -0
  136. package/dist/ru-RU.module.js +10 -0
  137. package/dist/ru-RU.module.js.map +1 -0
  138. package/dist/sk-SK.main.js +8 -0
  139. package/dist/sk-SK.main.js.map +1 -0
  140. package/dist/sk-SK.mjs +10 -0
  141. package/dist/sk-SK.module.js +10 -0
  142. package/dist/sk-SK.module.js.map +1 -0
  143. package/dist/sl-SI.main.js +8 -0
  144. package/dist/sl-SI.main.js.map +1 -0
  145. package/dist/sl-SI.mjs +10 -0
  146. package/dist/sl-SI.module.js +10 -0
  147. package/dist/sl-SI.module.js.map +1 -0
  148. package/dist/sr-SP.main.js +8 -0
  149. package/dist/sr-SP.main.js.map +1 -0
  150. package/dist/sr-SP.mjs +10 -0
  151. package/dist/sr-SP.module.js +10 -0
  152. package/dist/sr-SP.module.js.map +1 -0
  153. package/dist/sv-SE.main.js +8 -0
  154. package/dist/sv-SE.main.js.map +1 -0
  155. package/dist/sv-SE.mjs +10 -0
  156. package/dist/sv-SE.module.js +10 -0
  157. package/dist/sv-SE.module.js.map +1 -0
  158. package/dist/tr-TR.main.js +8 -0
  159. package/dist/tr-TR.main.js.map +1 -0
  160. package/dist/tr-TR.mjs +10 -0
  161. package/dist/tr-TR.module.js +10 -0
  162. package/dist/tr-TR.module.js.map +1 -0
  163. package/dist/types.d.ts +6 -6
  164. package/dist/types.d.ts.map +1 -1
  165. package/dist/uk-UA.main.js +8 -0
  166. package/dist/uk-UA.main.js.map +1 -0
  167. package/dist/uk-UA.mjs +10 -0
  168. package/dist/uk-UA.module.js +10 -0
  169. package/dist/uk-UA.module.js.map +1 -0
  170. package/dist/zh-CN.main.js +8 -0
  171. package/dist/zh-CN.main.js.map +1 -0
  172. package/dist/zh-CN.mjs +10 -0
  173. package/dist/zh-CN.module.js +10 -0
  174. package/dist/zh-CN.module.js.map +1 -0
  175. package/dist/zh-TW.main.js +8 -0
  176. package/dist/zh-TW.main.js.map +1 -0
  177. package/dist/zh-TW.mjs +10 -0
  178. package/dist/zh-TW.module.js +10 -0
  179. package/dist/zh-TW.module.js.map +1 -0
  180. package/package.json +9 -9
  181. package/src/Toast.tsx +4 -4
  182. package/src/ToastContainer.tsx +7 -7
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;ACVD;;;;;;;;;;CAUC;;;;;;;AEVD,4BAAiB;IAAG,QAAQ,CAAC,iDAAO,CAAC;IACnC,YAAY,CAAC,qBAAG,CAAC;IACjB,YAAY,CAAC,kDAAQ,CAAC;AACxB;;;;ACHA,4BAAiB;IAAG,QAAQ,CAAC,sEAAU,CAAC;IACtC,YAAY,CAAC,0CAAM,CAAC;IACpB,YAAY,CAAC,iDAAO,CAAC;AACvB;;;;ACHA,4BAAiB;IAAG,QAAQ,CAAC,SAAS,CAAC;IACrC,YAAY,CAAC,KAAK,CAAC;IACnB,YAAY,CAAC,eAAM,CAAC;AACtB;;;;ACHA,4BAAiB;IAAG,QAAQ,CAAC,IAAI,CAAC;IAChC,YAAY,CAAC,IAAI,CAAC;IAClB,YAAY,CAAC,WAAQ,CAAC;AACxB;;;;ACHA,4BAAiB;IAAG,QAAQ,CAAC,aAAa,CAAC;IACzC,YAAY,CAAC,MAAM,CAAC;IACpB,YAAY,CAAC,MAAM,CAAC;AACtB;;;;ACHA,4BAAiB;IAAG,QAAQ,CAAC,6EAAW,CAAC;IACvC,YAAY,CAAC,0CAAM,CAAC;IACpB,YAAY,CAAC,wDAAQ,CAAC;AACxB;;;;ACHA,4BAAiB;IAAG,QAAQ,CAAC,IAAI,CAAC;IAChC,Y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IACxF,IAAI,WAAW,sCAAgB,CAAC,QAAQ,IAAI;IAC5C,IAAI,QAAQ,QAAQ,EAClB,YAAY;IAEd,OAAO;AACT;","sources":["packages/@react-spectrum/toast/src/index.ts","packages/@react-spectrum/toast/src/ToastContainer.tsx","packages/@react-spectrum/toast/src/Toast.tsx","packages/@react-spectrum/toast/src/*.js","packages/@react-spectrum/toast/intl/ar-AE.json","packages/@react-spectrum/toast/intl/bg-BG.json","packages/@react-spectrum/toast/intl/cs-CZ.json","packages/@react-spectrum/toast/intl/da-DK.json","packages/@react-spectrum/toast/intl/de-DE.json","packages/@react-spectrum/toast/intl/el-GR.json","packages/@react-spectrum/toast/intl/en-US.json","packages/@react-spectrum/toast/intl/es-ES.json","packages/@react-spectrum/toast/intl/et-EE.json","packages/@react-spectrum/toast/intl/fi-FI.json","packages/@react-spectrum/toast/intl/fr-FR.json","packages/@react-spectrum/toast/intl/he-IL.json","packages/@react-spectrum/toast/intl/hr-HR.json","packages/@react-spectrum/toast/intl/hu-HU.json","packages/@react-spectrum/toast/intl/it-IT.json","packages/@react-spectrum/toast/intl/ja-JP.json","packages/@react-spectrum/toast/intl/ko-KR.json","packages/@react-spectrum/toast/intl/lt-LT.json","packages/@react-spectrum/toast/intl/lv-LV.json","packages/@react-spectrum/toast/intl/nb-NO.json","packages/@react-spectrum/toast/intl/nl-NL.json","packages/@react-spectrum/toast/intl/pl-PL.json","packages/@react-spectrum/toast/intl/pt-BR.json","packages/@react-spectrum/toast/intl/pt-PT.json","packages/@react-spectrum/toast/intl/ro-RO.json","packages/@react-spectrum/toast/intl/ru-RU.json","packages/@react-spectrum/toast/intl/sk-SK.json","packages/@react-spectrum/toast/intl/sl-SI.json","packages/@react-spectrum/toast/intl/sr-SP.json","packages/@react-spectrum/toast/intl/sv-SE.json","packages/@react-spectrum/toast/intl/tr-TR.json","packages/@react-spectrum/toast/intl/uk-UA.json","packages/@react-spectrum/toast/intl/zh-CN.json","packages/@react-spectrum/toast/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/toast/vars.css","packages/@react-spectrum/toast/src/toastContainer.css","packages/@react-spectrum/toast/src/Toaster.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {ToastContainer, ToastQueue} from './ToastContainer';\n\nexport type {SpectrumToastOptions, SpectrumToastContainerProps} from './ToastContainer';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaToastRegionProps} from '@react-aria/toast';\nimport React, {ReactElement, ReactNode, useEffect, useRef} from 'react';\nimport {SpectrumToastValue, Toast} from './Toast';\nimport {Toaster} from './Toaster';\nimport {ToastOptions, ToastQueue, useToastQueue} from '@react-stately/toast';\nimport {useSyncExternalStore} from 'use-sync-external-store/shim/index.js';\n\nexport interface SpectrumToastContainerProps extends AriaToastRegionProps {}\n\nexport interface SpectrumToastOptions extends Omit<ToastOptions, 'priority'> {\n /** A label for the action button within the toast. */\n actionLabel?: ReactNode,\n /** Handler that is called when the action button is pressed. */\n onAction?: () => void,\n /** Whether the toast should automatically close when an action is performed. */\n shouldCloseOnAction?: boolean\n}\n\ntype CloseFunction = () => void;\n\n// There is a single global toast queue instance for the whole app, initialized lazily.\nlet globalToastQueue: ToastQueue<SpectrumToastValue> | null = null;\nfunction getGlobalToastQueue() {\n if (!globalToastQueue) {\n globalToastQueue = new ToastQueue({\n maxVisibleToasts: 1,\n hasExitAnimation: true\n });\n }\n\n return globalToastQueue;\n}\n\n// For testing. Not exported from the package index.\nexport function clearToastQueue() {\n globalToastQueue = null;\n}\n\nlet toastProviders = new Set();\nlet subscriptions = new Set<() => void>();\nfunction subscribe(fn: () => void) {\n subscriptions.add(fn);\n return () => subscriptions.delete(fn);\n}\n\nfunction triggerSubscriptions() {\n for (let fn of subscriptions) {\n fn();\n }\n}\n\nfunction getActiveToastContainer() {\n return toastProviders.values().next().value;\n}\n\nfunction useActiveToastContainer() {\n return useSyncExternalStore(subscribe, getActiveToastContainer, getActiveToastContainer);\n}\n\n/**\n * A ToastContainer renders the queued toasts in an application. It should be placed\n * at the root of the app.\n */\nexport function ToastContainer(props: SpectrumToastContainerProps): ReactElement {\n // Track all toast provider instances in a set.\n // Only the first one will actually render.\n // We use a ref to do this, since it will have a stable identity\n // over the lifetime of the component.\n let ref = useRef();\n\n // eslint-disable-next-line arrow-body-style\n useEffect(() => {\n toastProviders.add(ref);\n triggerSubscriptions();\n\n return () => {\n // When this toast provider unmounts, reset all animations so that\n // when the new toast provider renders, it is seamless.\n for (let toast of getGlobalToastQueue().visibleToasts) {\n toast.animation = null;\n }\n\n // Remove this toast provider, and call subscriptions.\n // This will cause all other instances to re-render,\n // and the first one to become the new active toast provider.\n toastProviders.delete(ref);\n triggerSubscriptions();\n };\n }, []);\n\n // Only render if this is the active toast provider instance, and there are visible toasts.\n let activeToastContainer = useActiveToastContainer();\n let state = useToastQueue(getGlobalToastQueue());\n if (ref === activeToastContainer && state.visibleToasts.length > 0) {\n return (\n <Toaster state={state} {...props}>\n {state.visibleToasts.map((toast) => (\n <Toast\n key={toast.key}\n toast={toast}\n state={state} />\n ))}\n </Toaster>\n );\n }\n\n return null;\n}\n\nfunction addToast(children: ReactNode, variant: SpectrumToastValue['variant'], options: SpectrumToastOptions = {}) {\n // Dispatch a custom event so that toasts can be intercepted and re-targeted, e.g. when inside an iframe.\n if (typeof CustomEvent !== 'undefined' && typeof window !== 'undefined') {\n let event = new CustomEvent('react-spectrum-toast', {\n cancelable: true,\n bubbles: true,\n detail: {\n children,\n variant,\n options\n }\n });\n\n let shouldContinue = window.dispatchEvent(event);\n if (!shouldContinue) {\n return;\n }\n }\n\n let value = {\n children,\n variant,\n actionLabel: options.actionLabel,\n onAction: options.onAction,\n shouldCloseOnAction: options.shouldCloseOnAction\n };\n\n // Minimum time of 5s from https://spectrum.adobe.com/page/toast/#Auto-dismissible\n // Actionable toasts cannot be auto dismissed. That would fail WCAG SC 2.2.1.\n // It is debatable whether non-actionable toasts would also fail.\n let timeout = options.timeout && !options.onAction ? Math.max(options.timeout, 5000) : null;\n let queue = getGlobalToastQueue();\n let key = queue.add(value, {priority: getPriority(variant, options), timeout, onClose: options.onClose});\n return () => queue.close(key);\n}\n\nconst SpectrumToastQueue = {\n /** Queues a neutral toast. */\n neutral(children: ReactNode, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'neutral', options);\n },\n /** Queues a positive toast. */\n positive(children: ReactNode, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'positive', options);\n },\n /** Queues a negative toast. */\n negative(children: ReactNode, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'negative', options);\n },\n /** Queues an informational toast. */\n info(children: ReactNode, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'info', options);\n }\n};\n\nexport {SpectrumToastQueue as ToastQueue};\n\n// https://spectrum.adobe.com/page/toast/#Priority-queue\n// TODO: if a lower priority toast comes in, no way to know until you dismiss the higher priority one.\nconst VARIANT_PRIORITY = {\n negative: 10,\n positive: 3,\n info: 2,\n neutral: 1\n};\n\nfunction getPriority(variant: SpectrumToastValue['variant'], options: SpectrumToastOptions) {\n let priority = VARIANT_PRIORITY[variant] || 1;\n if (options.onAction) {\n priority += 4;\n }\n return priority;\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {Button, ClearButton} from '@react-spectrum/button';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport CrossMedium from '@spectrum-icons/ui/CrossMedium';\nimport {DOMRef} from '@react-types/shared';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {QueuedToast, ToastState} from '@react-stately/toast';\nimport React, {ReactNode, useContext} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/toast/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport toastContainerStyles from './toastContainer.css';\nimport {ToasterContext} from './Toaster';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useToast} from '@react-aria/toast';\n\nexport interface SpectrumToastValue {\n children: ReactNode,\n variant: 'positive' | 'negative' | 'info' | 'neutral',\n actionLabel?: ReactNode,\n onAction?: () => void,\n shouldCloseOnAction?: boolean\n}\n\nexport interface SpectrumToastProps {\n toast: QueuedToast<SpectrumToastValue>,\n state: ToastState<SpectrumToastValue>\n}\n\n// TODO: express should use filled icons...\nexport const ICONS = {\n info: InfoMedium,\n negative: AlertMedium,\n positive: SuccessMedium\n};\n\nfunction Toast(props: SpectrumToastProps, ref: DOMRef<HTMLDivElement>) {\n let {\n toast: {\n key,\n animation,\n content: {\n children,\n variant,\n actionLabel,\n onAction,\n shouldCloseOnAction\n }\n },\n state,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {\n closeButtonProps,\n titleProps,\n toastProps\n } = useToast(props, state, domRef);\n let {styleProps} = useStyleProps(otherProps);\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let iconLabel = variant && variant !== 'neutral' ? stringFormatter.format(variant) : null;\n let Icon = ICONS[variant];\n let isFocusVisible = useContext(ToasterContext);\n\n const handleAction = () => {\n if (onAction) {\n onAction();\n }\n\n if (shouldCloseOnAction) {\n state.close(key);\n }\n };\n\n return (\n <div\n {...styleProps}\n {...toastProps}\n ref={domRef}\n className={classNames(styles,\n 'spectrum-Toast',\n {['spectrum-Toast--' + variant]: variant},\n styleProps.className,\n classNames(\n toastContainerStyles,\n 'spectrum-Toast',\n {'focus-ring': props.toast.key === state.visibleToasts[0]?.key && isFocusVisible}\n )\n )}\n style={{\n ...styleProps.style,\n zIndex: props.toast.priority\n }}\n data-animation={animation}\n onAnimationEnd={() => {\n if (animation === 'exiting') {\n state.remove(key);\n }\n }}>\n {Icon &&\n <Icon\n aria-label={iconLabel}\n UNSAFE_className={classNames(styles, 'spectrum-Toast-typeIcon')} />\n }\n <div className={classNames(styles, 'spectrum-Toast-body')}>\n <div className={classNames(styles, 'spectrum-Toast-content')} {...titleProps}>{children}</div>\n {actionLabel &&\n <Button\n onPress={handleAction}\n UNSAFE_className={classNames(styles, 'spectrum-Button')}\n variant=\"secondary\"\n staticColor=\"white\">\n {actionLabel}\n </Button>\n }\n </div>\n <div className={classNames(styles, 'spectrum-Toast-buttons')}>\n <ClearButton {...closeButtonProps} variant=\"overBackground\">\n <CrossMedium />\n </ClearButton>\n </div>\n </div>\n );\n}\n\nlet _Toast = React.forwardRef(Toast);\nexport {_Toast as Toast};\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"info\": \"معلومات\",\n \"negative\": \"خطأ\",\n \"positive\": \"تم بنجاح\"\n}\n","{\n \"info\": \"Информация\",\n \"negative\": \"Грешка\",\n \"positive\": \"Успешно\"\n}\n","{\n \"info\": \"Informace\",\n \"negative\": \"Chyba\",\n \"positive\": \"Úspěch\"\n}\n","{\n \"info\": \"Info\",\n \"negative\": \"Fejl\",\n \"positive\": \"Fuldført\"\n}\n","{\n \"info\": \"Informationen\",\n \"negative\": \"Fehler\",\n \"positive\": \"Erfolg\"\n}\n","{\n \"info\": \"Πληροφορίες\",\n \"negative\": \"Σφάλμα\",\n \"positive\": \"Επιτυχία\"\n}\n","{\n \"info\": \"Info\",\n \"negative\": \"Error\",\n \"positive\": \"Success\"\n}\n","{\n \"info\": \"Información\",\n \"negative\": \"Error\",\n \"positive\": \"Éxito\"\n}\n","{\n \"info\": \"Teave\",\n \"negative\": \"Viga\",\n \"positive\": \"Valmis\"\n}\n","{\n \"info\": \"Tiedot\",\n \"negative\": \"Virhe\",\n \"positive\": \"Onnistui\"\n}\n","{\n \"info\": \"Infos\",\n \"negative\": \"Erreur\",\n \"positive\": \"Succès\"\n}\n","{\n \"info\": \"מידע\",\n \"negative\": \"שגיאה\",\n \"positive\": \"הצלחה\"\n}\n","{\n \"info\": \"Informacije\",\n \"negative\": \"Pogreška\",\n \"positive\": \"Uspješno\"\n}\n","{\n \"info\": \"Információ\",\n \"negative\": \"Hiba\",\n \"positive\": \"Siker\"\n}\n","{\n \"info\": \"Informazioni\",\n \"negative\": \"Errore\",\n \"positive\": \"Operazione riuscita\"\n}\n","{\n \"info\": \"情報\",\n \"negative\": \"エラー\",\n \"positive\": \"成功\"\n}\n","{\n \"info\": \"정보\",\n \"negative\": \"오류\",\n \"positive\": \"성공\"\n}\n","{\n \"info\": \"Informacija\",\n \"negative\": \"Klaida\",\n \"positive\": \"Sėkmingai\"\n}\n","{\n \"info\": \"Informācija\",\n \"negative\": \"Kļūda\",\n \"positive\": \"Izdevās\"\n}\n","{\n \"info\": \"Info\",\n \"negative\": \"Feil\",\n \"positive\": \"Vellykket\"\n}\n","{\n \"info\": \"Info\",\n \"negative\": \"Fout\",\n \"positive\": \"Geslaagd\"\n}\n","{\n \"info\": \"Informacje\",\n \"negative\": \"Błąd\",\n \"positive\": \"Powodzenie\"\n}\n","{\n \"info\": \"Informações\",\n \"negative\": \"Erro\",\n \"positive\": \"Sucesso\"\n}\n","{\n \"info\": \"Informação\",\n \"negative\": \"Erro\",\n \"positive\": \"Sucesso\"\n}\n","{\n \"info\": \"Informații\",\n \"negative\": \"Eroare\",\n \"positive\": \"Succes\"\n}\n","{\n \"info\": \"Информация\",\n \"negative\": \"Ошибка\",\n \"positive\": \"Успешно\"\n}\n","{\n \"info\": \"Informácie\",\n \"negative\": \"Chyba\",\n \"positive\": \"Úspech\"\n}\n","{\n \"info\": \"Informacije\",\n \"negative\": \"Napaka\",\n \"positive\": \"Uspešno\"\n}\n","{\n \"info\": \"Informacije\",\n \"negative\": \"Greška\",\n \"positive\": \"Uspešno\"\n}\n","{\n \"info\": \"Info\",\n \"negative\": \"Fel\",\n \"positive\": \"Lyckades\"\n}\n","{\n \"info\": \"Bilgiler\",\n \"negative\": \"Hata\",\n \"positive\": \"Başarılı\"\n}\n","{\n \"info\": \"Інформація\",\n \"negative\": \"Помилка\",\n \"positive\": \"Успішно\"\n}\n","{\n \"info\": \"信息\",\n \"negative\": \"错误\",\n \"positive\": \"成功\"\n}\n","{\n \"info\": \"資訊\",\n \"negative\": \"錯誤\",\n \"positive\": \"成功\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import \"../../../@adobe/spectrum-css-temp/components/commons/focus-ring.css\";\n\n.react-spectrum-ToastContainer {\n position: fixed;\n inset-inline-start: 0;\n inset-inline-end: 0;\n z-index: 100050; /* above modals */\n display: flex;\n pointer-events: none;\n outline: none;\n\n .spectrum-Toast {\n position: absolute;\n margin: 16px;\n pointer-events: all;\n }\n\n &[data-position=top] {\n top: 0;\n flex-direction: column;\n --slide-from: translateY(-100%);\n --slide-to: translateY(0);\n }\n\n &[data-position=bottom] {\n bottom: 0;\n flex-direction: column-reverse;\n --slide-from: translateY(100%);\n --slide-to: translateY(0);\n }\n\n &[data-placement=left] {\n align-items: flex-start;\n --slide-from: translateX(-100%);\n --slide-to: translateX(0);\n\n &:dir(rtl) {\n --slide-from: translateX(100%);\n }\n }\n\n &[data-placement=center] {\n align-items: center;\n }\n\n &[data-placement=right] {\n align-items: flex-end;\n --slide-from: translateX(100%);\n --slide-to: translateX(0);\n\n &:dir(rtl) {\n --slide-from: translateX(-100%);\n }\n }\n}\n\n.spectrum-Toast {\n composes: spectrum-FocusRing;\n --spectrum-focus-ring-border-radius: var(--spectrum-toast-border-radius);\n --spectrum-focus-ring-gap: var(--spectrum-alias-focus-ring-gap);\n --spectrum-focus-ring-size: var(--spectrum-alias-focus-ring-size);\n\n &[data-animation=entering] {\n animation: slide-in 300ms;\n }\n\n &[data-animation=exiting] {\n animation: fade-out 300ms forwards;\n }\n}\n\n@keyframes slide-in {\n from {\n transform: var(--slide-from);\n }\n\n to {\n transform: var(--slide-to);\n }\n}\n\n@keyframes fade-out {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaToastRegionProps, useToastRegion} from '@react-aria/toast';\nimport {classNames} from '@react-spectrum/utils';\nimport {mergeProps} from '@react-aria/utils';\nimport {Provider} from '@react-spectrum/provider';\nimport React, {createContext, ReactElement, ReactNode, useRef} from 'react';\nimport ReactDOM from 'react-dom';\nimport toastContainerStyles from './toastContainer.css';\nimport {ToastState} from '@react-stately/toast';\nimport {useFocusRing} from '@react-aria/focus';\n\ninterface ToastContainerProps extends AriaToastRegionProps {\n children: ReactNode,\n state: ToastState<unknown>\n}\n\nexport const ToasterContext = createContext(false);\n\nexport function Toaster(props: ToastContainerProps): ReactElement {\n let {\n children,\n state\n } = props;\n\n let ref = useRef();\n let {regionProps} = useToastRegion(props, state, ref);\n let {focusProps, isFocusVisible} = useFocusRing();\n\n let contents = (\n <Provider UNSAFE_style={{background: 'transparent'}}>\n <ToasterContext.Provider value={isFocusVisible}>\n <div\n {...mergeProps(regionProps, focusProps)}\n ref={ref}\n data-position=\"bottom\"\n data-placement=\"center\"\n className={classNames(\n toastContainerStyles,\n 'react-spectrum-ToastContainer'\n )}>\n {children}\n </div>\n </ToasterContext.Provider>\n </Provider>\n );\n\n return ReactDOM.createPortal(contents, document.body);\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;ACVD;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwBD,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX;;;;;;;;;;;;;;;;ACrEA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AATA,4CAAoC,CAAC,sBAAsB,CAAC;AAC5D,2CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,2CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA6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,IAAI,QAAQ;kBACV;iBACA;QACA,aAAa,QAAQ,WAAW;QAChC,UAAU,QAAQ,QAAQ;QAC1B,qBAAqB,QAAQ,mBAAmB;IAClD;IAEA,kFAAkF;IAClF,6EAA6E;IAC7E,iEAAiE;IACjE,IAAI,UAAU,QAAQ,OAAO,IAAI,CAAC,QAAQ,QAAQ,GAAG,KAAK,GAAG,CAAC,QAAQ,OAAO,EAAE,QAAQ;IACvF,IAAI,QAAQ;IACZ,IAAI,MAAM,MAAM,GAAG,CAAC,OAAO;QAAC,UAAU,kCAAY,SAAS;iBAAU;QAAS,SAAS,QAAQ,OAAO;IAAA;IACtG,OAAO,IAAM,MAAM,KAAK,CAAC;AAC3B;AAEA,MAAM,4CAAqB;IACzB,4BAA4B,GAC5B,SAAQ,QAAgB,EAAE,UAAgC,CAAC,CAAC;QAC1D,OAAO,+BAAS,UAAU,WAAW;IACvC;IACA,6BAA6B,GAC7B,UAAS,QAAgB,EAAE,UAAgC,CAAC,CAAC;QAC3D,OAAO,+BAAS,UAAU,YAAY;IACxC;IACA,6BAA6B,GAC7B,UAAS,QAAgB,EAAE,UAAgC,CAAC,CAAC;QAC3D,OAAO,+BAAS,UAAU,YAAY;IACxC;IACA,mCAAmC,GACnC,MAAK,QAAgB,EAAE,UAAgC,CAAC,CAAC;QACvD,OAAO,+BAAS,UAAU,QAAQ;IACpC;AACF;AAIA,wDAAwD;AACxD,sGAAsG;AACtG,MAAM,yCAAmB;IACvB,UAAU;IACV,UAAU;IACV,MAAM;IACN,SAAS;AACX;AAEA,SAAS,kCAAY,OAAsC,EAAE,OAA6B;IACxF,IAAI,WAAW,sCAAgB,CAAC,QAAQ,IAAI;IAC5C,IAAI,QAAQ,QAAQ,EAClB,YAAY;IAEd,OAAO;AACT;","sources":["packages/@react-spectrum/toast/src/index.ts","packages/@react-spectrum/toast/src/ToastContainer.tsx","packages/@react-spectrum/toast/src/Toast.tsx","packages/@react-spectrum/toast/src/*.js","packages/@adobe/spectrum-css-temp/components/toast/vars.css","packages/@react-spectrum/toast/src/toastContainer.css","packages/@react-spectrum/toast/src/Toaster.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {ToastContainer, ToastQueue} from './ToastContainer';\n\nexport type {SpectrumToastOptions, SpectrumToastContainerProps} from './ToastContainer';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaToastRegionProps} from '@react-aria/toast';\nimport React, {ReactElement, useEffect, useRef} from 'react';\nimport {SpectrumToastValue, Toast} from './Toast';\nimport {Toaster} from './Toaster';\nimport {ToastOptions, ToastQueue, useToastQueue} from '@react-stately/toast';\nimport {useSyncExternalStore} from 'use-sync-external-store/shim/index.js';\n\nexport interface SpectrumToastContainerProps extends AriaToastRegionProps {}\n\nexport interface SpectrumToastOptions extends Omit<ToastOptions, 'priority'> {\n /** A label for the action button within the toast. */\n actionLabel?: string,\n /** Handler that is called when the action button is pressed. */\n onAction?: () => void,\n /** Whether the toast should automatically close when an action is performed. */\n shouldCloseOnAction?: boolean\n}\n\ntype CloseFunction = () => void;\n\n// There is a single global toast queue instance for the whole app, initialized lazily.\nlet globalToastQueue: ToastQueue<SpectrumToastValue> | null = null;\nfunction getGlobalToastQueue() {\n if (!globalToastQueue) {\n globalToastQueue = new ToastQueue({\n maxVisibleToasts: 1,\n hasExitAnimation: true\n });\n }\n\n return globalToastQueue;\n}\n\n// For testing. Not exported from the package index.\nexport function clearToastQueue() {\n globalToastQueue = null;\n}\n\nlet toastProviders = new Set();\nlet subscriptions = new Set<() => void>();\nfunction subscribe(fn: () => void) {\n subscriptions.add(fn);\n return () => subscriptions.delete(fn);\n}\n\nfunction triggerSubscriptions() {\n for (let fn of subscriptions) {\n fn();\n }\n}\n\nfunction getActiveToastContainer() {\n return toastProviders.values().next().value;\n}\n\nfunction useActiveToastContainer() {\n return useSyncExternalStore(subscribe, getActiveToastContainer, getActiveToastContainer);\n}\n\n/**\n * A ToastContainer renders the queued toasts in an application. It should be placed\n * at the root of the app.\n */\nexport function ToastContainer(props: SpectrumToastContainerProps): ReactElement {\n // Track all toast provider instances in a set.\n // Only the first one will actually render.\n // We use a ref to do this, since it will have a stable identity\n // over the lifetime of the component.\n let ref = useRef();\n\n // eslint-disable-next-line arrow-body-style\n useEffect(() => {\n toastProviders.add(ref);\n triggerSubscriptions();\n\n return () => {\n // When this toast provider unmounts, reset all animations so that\n // when the new toast provider renders, it is seamless.\n for (let toast of getGlobalToastQueue().visibleToasts) {\n toast.animation = null;\n }\n\n // Remove this toast provider, and call subscriptions.\n // This will cause all other instances to re-render,\n // and the first one to become the new active toast provider.\n toastProviders.delete(ref);\n triggerSubscriptions();\n };\n }, []);\n\n // Only render if this is the active toast provider instance, and there are visible toasts.\n let activeToastContainer = useActiveToastContainer();\n let state = useToastQueue(getGlobalToastQueue());\n if (ref === activeToastContainer && state.visibleToasts.length > 0) {\n return (\n <Toaster state={state} {...props}>\n {state.visibleToasts.map((toast) => (\n <Toast\n key={toast.key}\n toast={toast}\n state={state} />\n ))}\n </Toaster>\n );\n }\n\n return null;\n}\n\nfunction addToast(children: string, variant: SpectrumToastValue['variant'], options: SpectrumToastOptions = {}) {\n // Dispatch a custom event so that toasts can be intercepted and re-targeted, e.g. when inside an iframe.\n if (typeof CustomEvent !== 'undefined' && typeof window !== 'undefined') {\n let event = new CustomEvent('react-spectrum-toast', {\n cancelable: true,\n bubbles: true,\n detail: {\n children,\n variant,\n options\n }\n });\n\n let shouldContinue = window.dispatchEvent(event);\n if (!shouldContinue) {\n return;\n }\n }\n\n let value = {\n children,\n variant,\n actionLabel: options.actionLabel,\n onAction: options.onAction,\n shouldCloseOnAction: options.shouldCloseOnAction\n };\n\n // Minimum time of 5s from https://spectrum.adobe.com/page/toast/#Auto-dismissible\n // Actionable toasts cannot be auto dismissed. That would fail WCAG SC 2.2.1.\n // It is debatable whether non-actionable toasts would also fail.\n let timeout = options.timeout && !options.onAction ? Math.max(options.timeout, 5000) : null;\n let queue = getGlobalToastQueue();\n let key = queue.add(value, {priority: getPriority(variant, options), timeout, onClose: options.onClose});\n return () => queue.close(key);\n}\n\nconst SpectrumToastQueue = {\n /** Queues a neutral toast. */\n neutral(children: string, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'neutral', options);\n },\n /** Queues a positive toast. */\n positive(children: string, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'positive', options);\n },\n /** Queues a negative toast. */\n negative(children: string, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'negative', options);\n },\n /** Queues an informational toast. */\n info(children: string, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'info', options);\n }\n};\n\nexport {SpectrumToastQueue as ToastQueue};\n\n// https://spectrum.adobe.com/page/toast/#Priority-queue\n// TODO: if a lower priority toast comes in, no way to know until you dismiss the higher priority one.\nconst VARIANT_PRIORITY = {\n negative: 10,\n positive: 3,\n info: 2,\n neutral: 1\n};\n\nfunction getPriority(variant: SpectrumToastValue['variant'], options: SpectrumToastOptions) {\n let priority = VARIANT_PRIORITY[variant] || 1;\n if (options.onAction) {\n priority += 4;\n }\n return priority;\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {Button, ClearButton} from '@react-spectrum/button';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport CrossMedium from '@spectrum-icons/ui/CrossMedium';\nimport {DOMRef} from '@react-types/shared';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {QueuedToast, ToastState} from '@react-stately/toast';\nimport React, {useContext} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/toast/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport toastContainerStyles from './toastContainer.css';\nimport {ToasterContext} from './Toaster';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useToast} from '@react-aria/toast';\n\nexport interface SpectrumToastValue {\n children: string,\n variant: 'positive' | 'negative' | 'info' | 'neutral',\n actionLabel?: string,\n onAction?: () => void,\n shouldCloseOnAction?: boolean\n}\n\nexport interface SpectrumToastProps {\n toast: QueuedToast<SpectrumToastValue>,\n state: ToastState<SpectrumToastValue>\n}\n\n// TODO: express should use filled icons...\nexport const ICONS = {\n info: InfoMedium,\n negative: AlertMedium,\n positive: SuccessMedium\n};\n\nfunction Toast(props: SpectrumToastProps, ref: DOMRef<HTMLDivElement>) {\n let {\n toast: {\n key,\n animation,\n content: {\n children,\n variant,\n actionLabel,\n onAction,\n shouldCloseOnAction\n }\n },\n state,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {\n closeButtonProps,\n titleProps,\n toastProps\n } = useToast(props, state, domRef);\n let {styleProps} = useStyleProps(otherProps);\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/toast');\n let iconLabel = variant && variant !== 'neutral' ? stringFormatter.format(variant) : null;\n let Icon = ICONS[variant];\n let isFocusVisible = useContext(ToasterContext);\n\n const handleAction = () => {\n if (onAction) {\n onAction();\n }\n\n if (shouldCloseOnAction) {\n state.close(key);\n }\n };\n\n return (\n <div\n {...styleProps}\n {...toastProps}\n ref={domRef}\n className={classNames(styles,\n 'spectrum-Toast',\n {['spectrum-Toast--' + variant]: variant},\n styleProps.className,\n classNames(\n toastContainerStyles,\n 'spectrum-Toast',\n {'focus-ring': props.toast.key === state.visibleToasts[0]?.key && isFocusVisible}\n )\n )}\n style={{\n ...styleProps.style,\n zIndex: props.toast.priority\n }}\n data-animation={animation}\n onAnimationEnd={() => {\n if (animation === 'exiting') {\n state.remove(key);\n }\n }}>\n {Icon &&\n <Icon\n aria-label={iconLabel}\n UNSAFE_className={classNames(styles, 'spectrum-Toast-typeIcon')} />\n }\n <div className={classNames(styles, 'spectrum-Toast-body')}>\n <div className={classNames(styles, 'spectrum-Toast-content')} {...titleProps}>{children}</div>\n {actionLabel &&\n <Button\n onPress={handleAction}\n UNSAFE_className={classNames(styles, 'spectrum-Button')}\n variant=\"secondary\"\n staticColor=\"white\">\n {actionLabel}\n </Button>\n }\n </div>\n <div className={classNames(styles, 'spectrum-Toast-buttons')}>\n <ClearButton {...closeButtonProps} variant=\"overBackground\">\n <CrossMedium />\n </ClearButton>\n </div>\n </div>\n );\n}\n\nlet _Toast = React.forwardRef(Toast);\nexport {_Toast as Toast};\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import \"../../../@adobe/spectrum-css-temp/components/commons/focus-ring.css\";\n\n.react-spectrum-ToastContainer {\n position: fixed;\n inset-inline-start: 0;\n inset-inline-end: 0;\n z-index: 100050; /* above modals */\n display: flex;\n pointer-events: none;\n outline: none;\n\n .spectrum-Toast {\n position: absolute;\n margin: 16px;\n pointer-events: all;\n }\n\n &[data-position=top] {\n top: 0;\n flex-direction: column;\n --slide-from: translateY(-100%);\n --slide-to: translateY(0);\n }\n\n &[data-position=bottom] {\n bottom: 0;\n flex-direction: column-reverse;\n --slide-from: translateY(100%);\n --slide-to: translateY(0);\n }\n\n &[data-placement=left] {\n align-items: flex-start;\n --slide-from: translateX(-100%);\n --slide-to: translateX(0);\n\n &:dir(rtl) {\n --slide-from: translateX(100%);\n }\n }\n\n &[data-placement=center] {\n align-items: center;\n }\n\n &[data-placement=right] {\n align-items: flex-end;\n --slide-from: translateX(100%);\n --slide-to: translateX(0);\n\n &:dir(rtl) {\n --slide-from: translateX(-100%);\n }\n }\n}\n\n.spectrum-Toast {\n composes: spectrum-FocusRing;\n --spectrum-focus-ring-border-radius: var(--spectrum-toast-border-radius);\n --spectrum-focus-ring-gap: var(--spectrum-alias-focus-ring-gap);\n --spectrum-focus-ring-size: var(--spectrum-alias-focus-ring-size);\n\n &[data-animation=entering] {\n animation: slide-in 300ms;\n }\n\n &[data-animation=exiting] {\n animation: fade-out 300ms forwards;\n }\n}\n\n@keyframes slide-in {\n from {\n transform: var(--slide-from);\n }\n\n to {\n transform: var(--slide-to);\n }\n}\n\n@keyframes fade-out {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaToastRegionProps, useToastRegion} from '@react-aria/toast';\nimport {classNames} from '@react-spectrum/utils';\nimport {mergeProps} from '@react-aria/utils';\nimport {Provider} from '@react-spectrum/provider';\nimport React, {createContext, ReactElement, ReactNode, useRef} from 'react';\nimport ReactDOM from 'react-dom';\nimport toastContainerStyles from './toastContainer.css';\nimport {ToastState} from '@react-stately/toast';\nimport {useFocusRing} from '@react-aria/focus';\n\ninterface ToastContainerProps extends AriaToastRegionProps {\n children: ReactNode,\n state: ToastState<unknown>\n}\n\nexport const ToasterContext = createContext(false);\n\nexport function Toaster(props: ToastContainerProps): ReactElement {\n let {\n children,\n state\n } = props;\n\n let ref = useRef();\n let {regionProps} = useToastRegion(props, state, ref);\n let {focusProps, isFocusVisible} = useFocusRing();\n\n let contents = (\n <Provider UNSAFE_style={{background: 'transparent'}}>\n <ToasterContext.Provider value={isFocusVisible}>\n <div\n {...mergeProps(regionProps, focusProps)}\n ref={ref}\n data-position=\"bottom\"\n data-placement=\"center\"\n className={classNames(\n toastContainerStyles,\n 'react-spectrum-ToastContainer'\n )}>\n {children}\n </div>\n </ToasterContext.Provider>\n </Provider>\n );\n\n return ReactDOM.createPortal(contents, document.body);\n}\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,3 +1,39 @@
1
+ "use client";
2
+
3
+ import $4ef3586572b5c0bd$exports from "./ar-AE.module.js";
4
+ import $9294a3bc0be7c803$exports from "./bg-BG.module.js";
5
+ import $2301cc9fa70c79b7$exports from "./cs-CZ.module.js";
6
+ import $db68d63440e07cc2$exports from "./da-DK.module.js";
7
+ import $59f85255004b972f$exports from "./de-DE.module.js";
8
+ import $897a62d7e05e3ae7$exports from "./el-GR.module.js";
9
+ import $cd5f6f9dc2665e8f$exports from "./en-US.module.js";
10
+ import $91da3b58720e2afa$exports from "./es-ES.module.js";
11
+ import $d881203a181403bc$exports from "./et-EE.module.js";
12
+ import $b39cb8320f170f5d$exports from "./fi-FI.module.js";
13
+ import $3dcec82c37bb9c69$exports from "./fr-FR.module.js";
14
+ import $70451b8bc8958a93$exports from "./he-IL.module.js";
15
+ import $8192b2e4907779a9$exports from "./hr-HR.module.js";
16
+ import $734bda6365304ddb$exports from "./hu-HU.module.js";
17
+ import $c985376db8169cb9$exports from "./it-IT.module.js";
18
+ import $0a814f0515b1f941$exports from "./ja-JP.module.js";
19
+ import $87900002a59b18f5$exports from "./ko-KR.module.js";
20
+ import $b083aee709113368$exports from "./lt-LT.module.js";
21
+ import $641d21187f9a9953$exports from "./lv-LV.module.js";
22
+ import $920b9baf5fdd305b$exports from "./nb-NO.module.js";
23
+ import $ac88c25d97133768$exports from "./nl-NL.module.js";
24
+ import $dea3c2ca37b0afea$exports from "./pl-PL.module.js";
25
+ import $36b701dae6c5c88a$exports from "./pt-BR.module.js";
26
+ import $959bf461c37c3856$exports from "./pt-PT.module.js";
27
+ import $584332ecb6a69cb1$exports from "./ro-RO.module.js";
28
+ import $b3a312739e8cca16$exports from "./ru-RU.module.js";
29
+ import $531de2843c7d5aa0$exports from "./sk-SK.module.js";
30
+ import $52846db7e4bedb0e$exports from "./sl-SI.module.js";
31
+ import $20c8bedbc8241336$exports from "./sr-SP.module.js";
32
+ import $7a9bac9c7f5066c3$exports from "./sv-SE.module.js";
33
+ import $ef512fc21e0fdf2f$exports from "./tr-TR.module.js";
34
+ import $6764c871b5447c7a$exports from "./uk-UA.module.js";
35
+ import $b1634d37b87f243f$exports from "./zh-CN.module.js";
36
+ import $19cbd4230357935e$exports from "./zh-TW.module.js";
1
37
  import "./main.css";
2
38
  import $jn1ib$react, {useRef as $jn1ib$useRef, useEffect as $jn1ib$useEffect, useContext as $jn1ib$useContext, createContext as $jn1ib$createContext} from "react";
3
39
  import {ToastQueue as $jn1ib$ToastQueue, useToastQueue as $jn1ib$useToastQueue} from "@react-stately/toast";
@@ -61,276 +97,38 @@ function $parcel$export(e, n, v, s) {
61
97
 
62
98
 
63
99
  var $41e47081d30453d1$exports = {};
64
- var $4ef3586572b5c0bd$exports = {};
65
- $4ef3586572b5c0bd$exports = {
66
- "info": `\u{645}\u{639}\u{644}\u{648}\u{645}\u{627}\u{62A}`,
67
- "negative": `\u{62E}\u{637}\u{623}`,
68
- "positive": `\u{62A}\u{645} \u{628}\u{646}\u{62C}\u{627}\u{62D}`
69
- };
70
-
71
-
72
- var $9294a3bc0be7c803$exports = {};
73
- $9294a3bc0be7c803$exports = {
74
- "info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`,
75
- "negative": `\u{413}\u{440}\u{435}\u{448}\u{43A}\u{430}`,
76
- "positive": `\u{423}\u{441}\u{43F}\u{435}\u{448}\u{43D}\u{43E}`
77
- };
78
-
79
-
80
- var $2301cc9fa70c79b7$exports = {};
81
- $2301cc9fa70c79b7$exports = {
82
- "info": `Informace`,
83
- "negative": `Chyba`,
84
- "positive": `\xdasp\u{11B}ch`
85
- };
86
-
87
-
88
- var $db68d63440e07cc2$exports = {};
89
- $db68d63440e07cc2$exports = {
90
- "info": `Info`,
91
- "negative": `Fejl`,
92
- "positive": `Fuldf\xf8rt`
93
- };
94
-
95
-
96
- var $59f85255004b972f$exports = {};
97
- $59f85255004b972f$exports = {
98
- "info": `Informationen`,
99
- "negative": `Fehler`,
100
- "positive": `Erfolg`
101
- };
102
-
103
-
104
- var $897a62d7e05e3ae7$exports = {};
105
- $897a62d7e05e3ae7$exports = {
106
- "info": `\u{3A0}\u{3BB}\u{3B7}\u{3C1}\u{3BF}\u{3C6}\u{3BF}\u{3C1}\u{3AF}\u{3B5}\u{3C2}`,
107
- "negative": `\u{3A3}\u{3C6}\u{3AC}\u{3BB}\u{3BC}\u{3B1}`,
108
- "positive": `\u{395}\u{3C0}\u{3B9}\u{3C4}\u{3C5}\u{3C7}\u{3AF}\u{3B1}`
109
- };
110
-
111
-
112
- var $cd5f6f9dc2665e8f$exports = {};
113
- $cd5f6f9dc2665e8f$exports = {
114
- "info": `Info`,
115
- "negative": `Error`,
116
- "positive": `Success`
117
- };
118
-
119
-
120
- var $91da3b58720e2afa$exports = {};
121
- $91da3b58720e2afa$exports = {
122
- "info": `Informaci\xf3n`,
123
- "negative": `Error`,
124
- "positive": `\xc9xito`
125
- };
126
-
127
-
128
- var $d881203a181403bc$exports = {};
129
- $d881203a181403bc$exports = {
130
- "info": `Teave`,
131
- "negative": `Viga`,
132
- "positive": `Valmis`
133
- };
134
-
135
-
136
- var $b39cb8320f170f5d$exports = {};
137
- $b39cb8320f170f5d$exports = {
138
- "info": `Tiedot`,
139
- "negative": `Virhe`,
140
- "positive": `Onnistui`
141
- };
142
-
143
-
144
- var $3dcec82c37bb9c69$exports = {};
145
- $3dcec82c37bb9c69$exports = {
146
- "info": `Infos`,
147
- "negative": `Erreur`,
148
- "positive": `Succ\xe8s`
149
- };
150
-
151
-
152
- var $70451b8bc8958a93$exports = {};
153
- $70451b8bc8958a93$exports = {
154
- "info": `\u{5DE}\u{5D9}\u{5D3}\u{5E2}`,
155
- "negative": `\u{5E9}\u{5D2}\u{5D9}\u{5D0}\u{5D4}`,
156
- "positive": `\u{5D4}\u{5E6}\u{5DC}\u{5D7}\u{5D4}`
157
- };
158
100
 
159
101
 
160
- var $8192b2e4907779a9$exports = {};
161
- $8192b2e4907779a9$exports = {
162
- "info": `Informacije`,
163
- "negative": `Pogre\u{161}ka`,
164
- "positive": `Uspje\u{161}no`
165
- };
166
-
167
-
168
- var $734bda6365304ddb$exports = {};
169
- $734bda6365304ddb$exports = {
170
- "info": `Inform\xe1ci\xf3`,
171
- "negative": `Hiba`,
172
- "positive": `Siker`
173
- };
174
-
175
-
176
- var $c985376db8169cb9$exports = {};
177
- $c985376db8169cb9$exports = {
178
- "info": `Informazioni`,
179
- "negative": `Errore`,
180
- "positive": `Operazione riuscita`
181
- };
182
-
183
-
184
- var $0a814f0515b1f941$exports = {};
185
- $0a814f0515b1f941$exports = {
186
- "info": `\u{60C5}\u{5831}`,
187
- "negative": `\u{30A8}\u{30E9}\u{30FC}`,
188
- "positive": `\u{6210}\u{529F}`
189
- };
190
-
191
-
192
- var $87900002a59b18f5$exports = {};
193
- $87900002a59b18f5$exports = {
194
- "info": `\u{C815}\u{BCF4}`,
195
- "negative": `\u{C624}\u{B958}`,
196
- "positive": `\u{C131}\u{ACF5}`
197
- };
198
-
199
-
200
- var $b083aee709113368$exports = {};
201
- $b083aee709113368$exports = {
202
- "info": `Informacija`,
203
- "negative": `Klaida`,
204
- "positive": `S\u{117}kmingai`
205
- };
206
-
207
102
 
208
- var $641d21187f9a9953$exports = {};
209
- $641d21187f9a9953$exports = {
210
- "info": `Inform\u{101}cija`,
211
- "negative": `K\u{13C}\u{16B}da`,
212
- "positive": `Izdev\u{101}s`
213
- };
214
103
 
215
104
 
216
- var $920b9baf5fdd305b$exports = {};
217
- $920b9baf5fdd305b$exports = {
218
- "info": `Info`,
219
- "negative": `Feil`,
220
- "positive": `Vellykket`
221
- };
222
105
 
223
106
 
224
- var $ac88c25d97133768$exports = {};
225
- $ac88c25d97133768$exports = {
226
- "info": `Info`,
227
- "negative": `Fout`,
228
- "positive": `Geslaagd`
229
- };
230
107
 
231
108
 
232
- var $dea3c2ca37b0afea$exports = {};
233
- $dea3c2ca37b0afea$exports = {
234
- "info": `Informacje`,
235
- "negative": `B\u{142}\u{105}d`,
236
- "positive": `Powodzenie`
237
- };
238
109
 
239
110
 
240
- var $36b701dae6c5c88a$exports = {};
241
- $36b701dae6c5c88a$exports = {
242
- "info": `Informa\xe7\xf5es`,
243
- "negative": `Erro`,
244
- "positive": `Sucesso`
245
- };
246
111
 
247
112
 
248
- var $959bf461c37c3856$exports = {};
249
- $959bf461c37c3856$exports = {
250
- "info": `Informa\xe7\xe3o`,
251
- "negative": `Erro`,
252
- "positive": `Sucesso`
253
- };
254
113
 
255
114
 
256
- var $584332ecb6a69cb1$exports = {};
257
- $584332ecb6a69cb1$exports = {
258
- "info": `Informa\u{21B}ii`,
259
- "negative": `Eroare`,
260
- "positive": `Succes`
261
- };
262
115
 
263
116
 
264
- var $b3a312739e8cca16$exports = {};
265
- $b3a312739e8cca16$exports = {
266
- "info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`,
267
- "negative": `\u{41E}\u{448}\u{438}\u{431}\u{43A}\u{430}`,
268
- "positive": `\u{423}\u{441}\u{43F}\u{435}\u{448}\u{43D}\u{43E}`
269
- };
270
117
 
271
118
 
272
- var $531de2843c7d5aa0$exports = {};
273
- $531de2843c7d5aa0$exports = {
274
- "info": `Inform\xe1cie`,
275
- "negative": `Chyba`,
276
- "positive": `\xdaspech`
277
- };
278
119
 
279
120
 
280
- var $52846db7e4bedb0e$exports = {};
281
- $52846db7e4bedb0e$exports = {
282
- "info": `Informacije`,
283
- "negative": `Napaka`,
284
- "positive": `Uspe\u{161}no`
285
- };
286
-
287
121
 
288
- var $20c8bedbc8241336$exports = {};
289
- $20c8bedbc8241336$exports = {
290
- "info": `Informacije`,
291
- "negative": `Gre\u{161}ka`,
292
- "positive": `Uspe\u{161}no`
293
- };
294
122
 
295
123
 
296
- var $7a9bac9c7f5066c3$exports = {};
297
- $7a9bac9c7f5066c3$exports = {
298
- "info": `Info`,
299
- "negative": `Fel`,
300
- "positive": `Lyckades`
301
- };
302
124
 
303
125
 
304
- var $ef512fc21e0fdf2f$exports = {};
305
- $ef512fc21e0fdf2f$exports = {
306
- "info": `Bilgiler`,
307
- "negative": `Hata`,
308
- "positive": `Ba\u{15F}ar\u{131}l\u{131}`
309
- };
310
126
 
311
127
 
312
- var $6764c871b5447c7a$exports = {};
313
- $6764c871b5447c7a$exports = {
314
- "info": `\u{406}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{456}\u{44F}`,
315
- "negative": `\u{41F}\u{43E}\u{43C}\u{438}\u{43B}\u{43A}\u{430}`,
316
- "positive": `\u{423}\u{441}\u{43F}\u{456}\u{448}\u{43D}\u{43E}`
317
- };
318
128
 
319
129
 
320
- var $b1634d37b87f243f$exports = {};
321
- $b1634d37b87f243f$exports = {
322
- "info": `\u{4FE1}\u{606F}`,
323
- "negative": `\u{9519}\u{8BEF}`,
324
- "positive": `\u{6210}\u{529F}`
325
- };
326
130
 
327
131
 
328
- var $19cbd4230357935e$exports = {};
329
- $19cbd4230357935e$exports = {
330
- "info": `\u{8CC7}\u{8A0A}`,
331
- "negative": `\u{932F}\u{8AA4}`,
332
- "positive": `\u{6210}\u{529F}`
333
- };
334
132
 
335
133
 
336
134
  $41e47081d30453d1$exports = {
@@ -491,7 +289,7 @@ function $7e7a2952509f3a56$var$Toast(props, ref) {
491
289
  let domRef = (0, $jn1ib$useDOMRef)(ref);
492
290
  let { closeButtonProps: closeButtonProps, titleProps: titleProps, toastProps: toastProps } = (0, $jn1ib$useToast)(props, state, domRef);
493
291
  let { styleProps: styleProps } = (0, $jn1ib$useStyleProps)(otherProps);
494
- let stringFormatter = (0, $jn1ib$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($41e47081d30453d1$exports))));
292
+ let stringFormatter = (0, $jn1ib$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($41e47081d30453d1$exports))), "@react-spectrum/toast");
495
293
  let iconLabel = variant && variant !== "neutral" ? stringFormatter.format(variant) : null;
496
294
  let Icon = $7e7a2952509f3a56$export$fde44257752a9f60[variant];
497
295
  let isFocusVisible = (0, $jn1ib$useContext)((0, $e46feef4e4c28a4b$export$9194c0aa0cd7a9ff));