@react-spectrum/toast 3.0.0-beta.11 → 3.0.0-beta.12

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.
@@ -60,8 +60,8 @@ function $6c5bd1047ecc310e$var$Toast(props, ref) {
60
60
  let domRef = (0, $8Jify$reactspectrumutils.useDOMRef)(ref);
61
61
  let { closeButtonProps: closeButtonProps, titleProps: titleProps, toastProps: toastProps } = (0, $8Jify$reactariatoast.useToast)(props, state, domRef);
62
62
  let { styleProps: styleProps } = (0, $8Jify$reactspectrumutils.useStyleProps)(otherProps);
63
- let stringFormatter = (0, $8Jify$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($1e709ec471c88b75$exports))), "@react-spectrum/toast");
64
- let iconLabel = variant && variant !== "neutral" ? stringFormatter.format(variant) : null;
63
+ let stringFormatter = (0, $8Jify$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($1e709ec471c88b75$exports))), '@react-spectrum/toast');
64
+ let iconLabel = variant && variant !== 'neutral' ? stringFormatter.format(variant) : null;
65
65
  let Icon = $6c5bd1047ecc310e$export$fde44257752a9f60[variant];
66
66
  let isFocusVisible = (0, $8Jify$react.useContext)((0, $5b9f2c86c1b1395c$exports.ToasterContext));
67
67
  const handleAction = ()=>{
@@ -73,10 +73,10 @@ function $6c5bd1047ecc310e$var$Toast(props, ref) {
73
73
  ...toastProps,
74
74
  ...(0, $8Jify$reactariautils.filterDOMProps)(props.toast.content),
75
75
  ref: domRef,
76
- className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), "spectrum-Toast", {
77
- ["spectrum-Toast--" + variant]: variant
78
- }, styleProps.className, (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($e20782d0579ed886$exports))), "spectrum-Toast", {
79
- "focus-ring": props.toast.key === ((_state_visibleToasts_ = state.visibleToasts[0]) === null || _state_visibleToasts_ === void 0 ? void 0 : _state_visibleToasts_.key) && isFocusVisible
76
+ className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), 'spectrum-Toast', {
77
+ ['spectrum-Toast--' + variant]: variant
78
+ }, styleProps.className, (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($e20782d0579ed886$exports))), 'spectrum-Toast', {
79
+ 'focus-ring': props.toast.key === ((_state_visibleToasts_ = state.visibleToasts[0]) === null || _state_visibleToasts_ === void 0 ? void 0 : _state_visibleToasts_.key) && isFocusVisible
80
80
  })),
81
81
  style: {
82
82
  ...styleProps.style,
@@ -84,23 +84,23 @@ function $6c5bd1047ecc310e$var$Toast(props, ref) {
84
84
  },
85
85
  "data-animation": animation,
86
86
  onAnimationEnd: ()=>{
87
- if (animation === "exiting") state.remove(key);
87
+ if (animation === 'exiting') state.remove(key);
88
88
  }
89
89
  }, Icon && /*#__PURE__*/ (0, ($parcel$interopDefault($8Jify$react))).createElement(Icon, {
90
90
  "aria-label": iconLabel,
91
- UNSAFE_className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), "spectrum-Toast-typeIcon")
91
+ UNSAFE_className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), 'spectrum-Toast-typeIcon')
92
92
  }), /*#__PURE__*/ (0, ($parcel$interopDefault($8Jify$react))).createElement("div", {
93
- className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), "spectrum-Toast-body")
93
+ className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), 'spectrum-Toast-body')
94
94
  }, /*#__PURE__*/ (0, ($parcel$interopDefault($8Jify$react))).createElement("div", {
95
- className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), "spectrum-Toast-content"),
95
+ className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), 'spectrum-Toast-content'),
96
96
  ...titleProps
97
97
  }, children), actionLabel && /*#__PURE__*/ (0, ($parcel$interopDefault($8Jify$react))).createElement((0, $8Jify$reactspectrumbutton.Button), {
98
98
  onPress: handleAction,
99
- UNSAFE_className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), "spectrum-Button"),
99
+ UNSAFE_className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), 'spectrum-Button'),
100
100
  variant: "secondary",
101
101
  staticColor: "white"
102
102
  }, actionLabel)), /*#__PURE__*/ (0, ($parcel$interopDefault($8Jify$react))).createElement("div", {
103
- className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), "spectrum-Toast-buttons")
103
+ className: (0, $8Jify$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b6e6aa676f8f9e47$exports))), 'spectrum-Toast-buttons')
104
104
  }, /*#__PURE__*/ (0, ($parcel$interopDefault($8Jify$react))).createElement((0, $8Jify$reactspectrumbutton.ClearButton), {
105
105
  ...closeButtonProps,
106
106
  variant: "overBackground"
package/dist/Toast.mjs CHANGED
@@ -54,8 +54,8 @@ function $7e7a2952509f3a56$var$Toast(props, ref) {
54
54
  let domRef = (0, $iu2Jc$useDOMRef)(ref);
55
55
  let { closeButtonProps: closeButtonProps, titleProps: titleProps, toastProps: toastProps } = (0, $iu2Jc$useToast)(props, state, domRef);
56
56
  let { styleProps: styleProps } = (0, $iu2Jc$useStyleProps)(otherProps);
57
- let stringFormatter = (0, $iu2Jc$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iu2Jc$intlStringsmodulejs))), "@react-spectrum/toast");
58
- let iconLabel = variant && variant !== "neutral" ? stringFormatter.format(variant) : null;
57
+ let stringFormatter = (0, $iu2Jc$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iu2Jc$intlStringsmodulejs))), '@react-spectrum/toast');
58
+ let iconLabel = variant && variant !== 'neutral' ? stringFormatter.format(variant) : null;
59
59
  let Icon = $7e7a2952509f3a56$export$fde44257752a9f60[variant];
60
60
  let isFocusVisible = (0, $iu2Jc$useContext)((0, $e46feef4e4c28a4b$export$9194c0aa0cd7a9ff));
61
61
  const handleAction = ()=>{
@@ -67,10 +67,10 @@ function $7e7a2952509f3a56$var$Toast(props, ref) {
67
67
  ...toastProps,
68
68
  ...(0, $iu2Jc$filterDOMProps)(props.toast.content),
69
69
  ref: domRef,
70
- className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast", {
71
- ["spectrum-Toast--" + variant]: variant
72
- }, styleProps.className, (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toastContainer_cssmodulejs))), "spectrum-Toast", {
73
- "focus-ring": props.toast.key === ((_state_visibleToasts_ = state.visibleToasts[0]) === null || _state_visibleToasts_ === void 0 ? void 0 : _state_visibleToasts_.key) && isFocusVisible
70
+ className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast', {
71
+ ['spectrum-Toast--' + variant]: variant
72
+ }, styleProps.className, (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toastContainer_cssmodulejs))), 'spectrum-Toast', {
73
+ 'focus-ring': props.toast.key === ((_state_visibleToasts_ = state.visibleToasts[0]) === null || _state_visibleToasts_ === void 0 ? void 0 : _state_visibleToasts_.key) && isFocusVisible
74
74
  })),
75
75
  style: {
76
76
  ...styleProps.style,
@@ -78,23 +78,23 @@ function $7e7a2952509f3a56$var$Toast(props, ref) {
78
78
  },
79
79
  "data-animation": animation,
80
80
  onAnimationEnd: ()=>{
81
- if (animation === "exiting") state.remove(key);
81
+ if (animation === 'exiting') state.remove(key);
82
82
  }
83
83
  }, Icon && /*#__PURE__*/ (0, $iu2Jc$react).createElement(Icon, {
84
84
  "aria-label": iconLabel,
85
- UNSAFE_className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast-typeIcon")
85
+ UNSAFE_className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast-typeIcon')
86
86
  }), /*#__PURE__*/ (0, $iu2Jc$react).createElement("div", {
87
- className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast-body")
87
+ className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast-body')
88
88
  }, /*#__PURE__*/ (0, $iu2Jc$react).createElement("div", {
89
- className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast-content"),
89
+ className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast-content'),
90
90
  ...titleProps
91
91
  }, children), actionLabel && /*#__PURE__*/ (0, $iu2Jc$react).createElement((0, $iu2Jc$Button), {
92
92
  onPress: handleAction,
93
- UNSAFE_className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Button"),
93
+ UNSAFE_className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Button'),
94
94
  variant: "secondary",
95
95
  staticColor: "white"
96
96
  }, actionLabel)), /*#__PURE__*/ (0, $iu2Jc$react).createElement("div", {
97
- className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast-buttons")
97
+ className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast-buttons')
98
98
  }, /*#__PURE__*/ (0, $iu2Jc$react).createElement((0, $iu2Jc$ClearButton), {
99
99
  ...closeButtonProps,
100
100
  variant: "overBackground"
@@ -104,4 +104,4 @@ let $7e7a2952509f3a56$export$8d8dc7d5f743331b = /*#__PURE__*/ (0, $iu2Jc$react).
104
104
 
105
105
 
106
106
  export {$7e7a2952509f3a56$export$fde44257752a9f60 as ICONS, $7e7a2952509f3a56$export$8d8dc7d5f743331b as Toast};
107
- //# sourceMappingURL=Toast.mjs.map
107
+ //# sourceMappingURL=Toast.module.js.map
@@ -54,8 +54,8 @@ function $7e7a2952509f3a56$var$Toast(props, ref) {
54
54
  let domRef = (0, $iu2Jc$useDOMRef)(ref);
55
55
  let { closeButtonProps: closeButtonProps, titleProps: titleProps, toastProps: toastProps } = (0, $iu2Jc$useToast)(props, state, domRef);
56
56
  let { styleProps: styleProps } = (0, $iu2Jc$useStyleProps)(otherProps);
57
- let stringFormatter = (0, $iu2Jc$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iu2Jc$intlStringsmodulejs))), "@react-spectrum/toast");
58
- let iconLabel = variant && variant !== "neutral" ? stringFormatter.format(variant) : null;
57
+ let stringFormatter = (0, $iu2Jc$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iu2Jc$intlStringsmodulejs))), '@react-spectrum/toast');
58
+ let iconLabel = variant && variant !== 'neutral' ? stringFormatter.format(variant) : null;
59
59
  let Icon = $7e7a2952509f3a56$export$fde44257752a9f60[variant];
60
60
  let isFocusVisible = (0, $iu2Jc$useContext)((0, $e46feef4e4c28a4b$export$9194c0aa0cd7a9ff));
61
61
  const handleAction = ()=>{
@@ -67,10 +67,10 @@ function $7e7a2952509f3a56$var$Toast(props, ref) {
67
67
  ...toastProps,
68
68
  ...(0, $iu2Jc$filterDOMProps)(props.toast.content),
69
69
  ref: domRef,
70
- className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast", {
71
- ["spectrum-Toast--" + variant]: variant
72
- }, styleProps.className, (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toastContainer_cssmodulejs))), "spectrum-Toast", {
73
- "focus-ring": props.toast.key === ((_state_visibleToasts_ = state.visibleToasts[0]) === null || _state_visibleToasts_ === void 0 ? void 0 : _state_visibleToasts_.key) && isFocusVisible
70
+ className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast', {
71
+ ['spectrum-Toast--' + variant]: variant
72
+ }, styleProps.className, (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toastContainer_cssmodulejs))), 'spectrum-Toast', {
73
+ 'focus-ring': props.toast.key === ((_state_visibleToasts_ = state.visibleToasts[0]) === null || _state_visibleToasts_ === void 0 ? void 0 : _state_visibleToasts_.key) && isFocusVisible
74
74
  })),
75
75
  style: {
76
76
  ...styleProps.style,
@@ -78,23 +78,23 @@ function $7e7a2952509f3a56$var$Toast(props, ref) {
78
78
  },
79
79
  "data-animation": animation,
80
80
  onAnimationEnd: ()=>{
81
- if (animation === "exiting") state.remove(key);
81
+ if (animation === 'exiting') state.remove(key);
82
82
  }
83
83
  }, Icon && /*#__PURE__*/ (0, $iu2Jc$react).createElement(Icon, {
84
84
  "aria-label": iconLabel,
85
- UNSAFE_className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast-typeIcon")
85
+ UNSAFE_className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast-typeIcon')
86
86
  }), /*#__PURE__*/ (0, $iu2Jc$react).createElement("div", {
87
- className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast-body")
87
+ className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast-body')
88
88
  }, /*#__PURE__*/ (0, $iu2Jc$react).createElement("div", {
89
- className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast-content"),
89
+ className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast-content'),
90
90
  ...titleProps
91
91
  }, children), actionLabel && /*#__PURE__*/ (0, $iu2Jc$react).createElement((0, $iu2Jc$Button), {
92
92
  onPress: handleAction,
93
- UNSAFE_className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Button"),
93
+ UNSAFE_className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Button'),
94
94
  variant: "secondary",
95
95
  staticColor: "white"
96
96
  }, actionLabel)), /*#__PURE__*/ (0, $iu2Jc$react).createElement("div", {
97
- className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), "spectrum-Toast-buttons")
97
+ className: (0, $iu2Jc$classNames)((0, ($parcel$interopDefault($iu2Jc$toast_vars_cssmodulejs))), 'spectrum-Toast-buttons')
98
98
  }, /*#__PURE__*/ (0, $iu2Jc$react).createElement((0, $iu2Jc$ClearButton), {
99
99
  ...closeButtonProps,
100
100
  variant: "overBackground"
@@ -95,8 +95,8 @@ function $56cdf77f3be52eaf$export$f2815235e76a62b9(props) {
95
95
  }
96
96
  function $56cdf77f3be52eaf$var$addToast(children, variant, options = {}) {
97
97
  // Dispatch a custom event so that toasts can be intercepted and re-targeted, e.g. when inside an iframe.
98
- if (typeof CustomEvent !== "undefined" && typeof window !== "undefined") {
99
- let event = new CustomEvent("react-spectrum-toast", {
98
+ if (typeof CustomEvent !== 'undefined' && typeof window !== 'undefined') {
99
+ let event = new CustomEvent('react-spectrum-toast', {
100
100
  cancelable: true,
101
101
  bubbles: true,
102
102
  detail: {
@@ -129,16 +129,16 @@ function $56cdf77f3be52eaf$var$addToast(children, variant, options = {}) {
129
129
  }
130
130
  const $56cdf77f3be52eaf$export$f1f8569633bbbec4 = {
131
131
  /** Queues a neutral toast. */ neutral (children, options = {}) {
132
- return $56cdf77f3be52eaf$var$addToast(children, "neutral", options);
132
+ return $56cdf77f3be52eaf$var$addToast(children, 'neutral', options);
133
133
  },
134
134
  /** Queues a positive toast. */ positive (children, options = {}) {
135
- return $56cdf77f3be52eaf$var$addToast(children, "positive", options);
135
+ return $56cdf77f3be52eaf$var$addToast(children, 'positive', options);
136
136
  },
137
137
  /** Queues a negative toast. */ negative (children, options = {}) {
138
- return $56cdf77f3be52eaf$var$addToast(children, "negative", options);
138
+ return $56cdf77f3be52eaf$var$addToast(children, 'negative', options);
139
139
  },
140
140
  /** Queues an informational toast. */ info (children, options = {}) {
141
- return $56cdf77f3be52eaf$var$addToast(children, "info", options);
141
+ return $56cdf77f3be52eaf$var$addToast(children, 'info', options);
142
142
  }
143
143
  };
144
144
 
@@ -84,8 +84,8 @@ function $02c59b34bd70955a$export$f2815235e76a62b9(props) {
84
84
  }
85
85
  function $02c59b34bd70955a$var$addToast(children, variant, options = {}) {
86
86
  // Dispatch a custom event so that toasts can be intercepted and re-targeted, e.g. when inside an iframe.
87
- if (typeof CustomEvent !== "undefined" && typeof window !== "undefined") {
88
- let event = new CustomEvent("react-spectrum-toast", {
87
+ if (typeof CustomEvent !== 'undefined' && typeof window !== 'undefined') {
88
+ let event = new CustomEvent('react-spectrum-toast', {
89
89
  cancelable: true,
90
90
  bubbles: true,
91
91
  detail: {
@@ -118,19 +118,19 @@ function $02c59b34bd70955a$var$addToast(children, variant, options = {}) {
118
118
  }
119
119
  const $02c59b34bd70955a$export$f1f8569633bbbec4 = {
120
120
  /** Queues a neutral toast. */ neutral (children, options = {}) {
121
- return $02c59b34bd70955a$var$addToast(children, "neutral", options);
121
+ return $02c59b34bd70955a$var$addToast(children, 'neutral', options);
122
122
  },
123
123
  /** Queues a positive toast. */ positive (children, options = {}) {
124
- return $02c59b34bd70955a$var$addToast(children, "positive", options);
124
+ return $02c59b34bd70955a$var$addToast(children, 'positive', options);
125
125
  },
126
126
  /** Queues a negative toast. */ negative (children, options = {}) {
127
- return $02c59b34bd70955a$var$addToast(children, "negative", options);
127
+ return $02c59b34bd70955a$var$addToast(children, 'negative', options);
128
128
  },
129
129
  /** Queues an informational toast. */ info (children, options = {}) {
130
- return $02c59b34bd70955a$var$addToast(children, "info", options);
130
+ return $02c59b34bd70955a$var$addToast(children, 'info', options);
131
131
  }
132
132
  };
133
133
 
134
134
 
135
135
  export {$02c59b34bd70955a$export$320311f0e4ecb3ae as clearToastQueue, $02c59b34bd70955a$export$f2815235e76a62b9 as ToastContainer, $02c59b34bd70955a$export$f1f8569633bbbec4 as ToastQueue};
136
- //# sourceMappingURL=ToastContainer.mjs.map
136
+ //# sourceMappingURL=ToastContainer.module.js.map
@@ -84,8 +84,8 @@ function $02c59b34bd70955a$export$f2815235e76a62b9(props) {
84
84
  }
85
85
  function $02c59b34bd70955a$var$addToast(children, variant, options = {}) {
86
86
  // Dispatch a custom event so that toasts can be intercepted and re-targeted, e.g. when inside an iframe.
87
- if (typeof CustomEvent !== "undefined" && typeof window !== "undefined") {
88
- let event = new CustomEvent("react-spectrum-toast", {
87
+ if (typeof CustomEvent !== 'undefined' && typeof window !== 'undefined') {
88
+ let event = new CustomEvent('react-spectrum-toast', {
89
89
  cancelable: true,
90
90
  bubbles: true,
91
91
  detail: {
@@ -118,16 +118,16 @@ function $02c59b34bd70955a$var$addToast(children, variant, options = {}) {
118
118
  }
119
119
  const $02c59b34bd70955a$export$f1f8569633bbbec4 = {
120
120
  /** Queues a neutral toast. */ neutral (children, options = {}) {
121
- return $02c59b34bd70955a$var$addToast(children, "neutral", options);
121
+ return $02c59b34bd70955a$var$addToast(children, 'neutral', options);
122
122
  },
123
123
  /** Queues a positive toast. */ positive (children, options = {}) {
124
- return $02c59b34bd70955a$var$addToast(children, "positive", options);
124
+ return $02c59b34bd70955a$var$addToast(children, 'positive', options);
125
125
  },
126
126
  /** Queues a negative toast. */ negative (children, options = {}) {
127
- return $02c59b34bd70955a$var$addToast(children, "negative", options);
127
+ return $02c59b34bd70955a$var$addToast(children, 'negative', options);
128
128
  },
129
129
  /** Queues an informational toast. */ info (children, options = {}) {
130
- return $02c59b34bd70955a$var$addToast(children, "info", options);
130
+ return $02c59b34bd70955a$var$addToast(children, 'info', options);
131
131
  }
132
132
  };
133
133
 
@@ -48,7 +48,7 @@ function $5b9f2c86c1b1395c$export$fb98e3a2a4cd92d7(props) {
48
48
  let { getContainer: getContainer } = (0, $acAHv$reactariaoverlays.useUNSTABLE_PortalContext)();
49
49
  let contents = /*#__PURE__*/ (0, ($parcel$interopDefault($acAHv$react))).createElement((0, $acAHv$reactspectrumprovider.Provider), {
50
50
  UNSAFE_style: {
51
- background: "transparent"
51
+ background: 'transparent'
52
52
  }
53
53
  }, /*#__PURE__*/ (0, ($parcel$interopDefault($acAHv$react))).createElement($5b9f2c86c1b1395c$export$9194c0aa0cd7a9ff.Provider, {
54
54
  value: isFocusVisible
@@ -57,7 +57,7 @@ function $5b9f2c86c1b1395c$export$fb98e3a2a4cd92d7(props) {
57
57
  ref: ref,
58
58
  "data-position": "bottom",
59
59
  "data-placement": "center",
60
- className: (0, $acAHv$reactspectrumutils.classNames)((0, ($parcel$interopDefault($e20782d0579ed886$exports))), "react-spectrum-ToastContainer")
60
+ className: (0, $acAHv$reactspectrumutils.classNames)((0, ($parcel$interopDefault($e20782d0579ed886$exports))), 'react-spectrum-ToastContainer')
61
61
  }, children)));
62
62
  var _getContainer;
63
63
  return /*#__PURE__*/ (0, ($parcel$interopDefault($acAHv$reactdom))).createPortal(contents, (_getContainer = getContainer === null || getContainer === void 0 ? void 0 : getContainer()) !== null && _getContainer !== void 0 ? _getContainer : document.body);
package/dist/Toaster.mjs CHANGED
@@ -41,7 +41,7 @@ function $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7(props) {
41
41
  let { getContainer: getContainer } = (0, $7Pdp8$useUNSTABLE_PortalContext)();
42
42
  let contents = /*#__PURE__*/ (0, $7Pdp8$react).createElement((0, $7Pdp8$Provider), {
43
43
  UNSAFE_style: {
44
- background: "transparent"
44
+ background: 'transparent'
45
45
  }
46
46
  }, /*#__PURE__*/ (0, $7Pdp8$react).createElement($e46feef4e4c28a4b$export$9194c0aa0cd7a9ff.Provider, {
47
47
  value: isFocusVisible
@@ -50,7 +50,7 @@ function $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7(props) {
50
50
  ref: ref,
51
51
  "data-position": "bottom",
52
52
  "data-placement": "center",
53
- className: (0, $7Pdp8$classNames)((0, ($parcel$interopDefault($7Pdp8$toastContainer_cssmodulejs))), "react-spectrum-ToastContainer")
53
+ className: (0, $7Pdp8$classNames)((0, ($parcel$interopDefault($7Pdp8$toastContainer_cssmodulejs))), 'react-spectrum-ToastContainer')
54
54
  }, children)));
55
55
  var _getContainer;
56
56
  return /*#__PURE__*/ (0, $7Pdp8$reactdom).createPortal(contents, (_getContainer = getContainer === null || getContainer === void 0 ? void 0 : getContainer()) !== null && _getContainer !== void 0 ? _getContainer : document.body);
@@ -58,4 +58,4 @@ function $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7(props) {
58
58
 
59
59
 
60
60
  export {$e46feef4e4c28a4b$export$9194c0aa0cd7a9ff as ToasterContext, $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7 as Toaster};
61
- //# sourceMappingURL=Toaster.mjs.map
61
+ //# sourceMappingURL=Toaster.module.js.map
@@ -41,7 +41,7 @@ function $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7(props) {
41
41
  let { getContainer: getContainer } = (0, $7Pdp8$useUNSTABLE_PortalContext)();
42
42
  let contents = /*#__PURE__*/ (0, $7Pdp8$react).createElement((0, $7Pdp8$Provider), {
43
43
  UNSAFE_style: {
44
- background: "transparent"
44
+ background: 'transparent'
45
45
  }
46
46
  }, /*#__PURE__*/ (0, $7Pdp8$react).createElement($e46feef4e4c28a4b$export$9194c0aa0cd7a9ff.Provider, {
47
47
  value: isFocusVisible
@@ -50,7 +50,7 @@ function $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7(props) {
50
50
  ref: ref,
51
51
  "data-position": "bottom",
52
52
  "data-placement": "center",
53
- className: (0, $7Pdp8$classNames)((0, ($parcel$interopDefault($7Pdp8$toastContainer_cssmodulejs))), "react-spectrum-ToastContainer")
53
+ className: (0, $7Pdp8$classNames)((0, ($parcel$interopDefault($7Pdp8$toastContainer_cssmodulejs))), 'react-spectrum-ToastContainer')
54
54
  }, children)));
55
55
  var _getContainer;
56
56
  return /*#__PURE__*/ (0, $7Pdp8$reactdom).createPortal(contents, (_getContainer = getContainer === null || getContainer === void 0 ? void 0 : getContainer()) !== null && _getContainer !== void 0 ? _getContainer : document.body);
package/dist/ar-AE.mjs CHANGED
@@ -7,4 +7,4 @@ $4ef3586572b5c0bd$exports = {
7
7
 
8
8
 
9
9
  export {$4ef3586572b5c0bd$exports as default};
10
- //# sourceMappingURL=ar-AE.mjs.map
10
+ //# sourceMappingURL=ar-AE.module.js.map
package/dist/bg-BG.mjs CHANGED
@@ -7,4 +7,4 @@ $9294a3bc0be7c803$exports = {
7
7
 
8
8
 
9
9
  export {$9294a3bc0be7c803$exports as default};
10
- //# sourceMappingURL=bg-BG.mjs.map
10
+ //# sourceMappingURL=bg-BG.module.js.map
package/dist/cs-CZ.mjs CHANGED
@@ -7,4 +7,4 @@ $2301cc9fa70c79b7$exports = {
7
7
 
8
8
 
9
9
  export {$2301cc9fa70c79b7$exports as default};
10
- //# sourceMappingURL=cs-CZ.mjs.map
10
+ //# sourceMappingURL=cs-CZ.module.js.map
package/dist/da-DK.mjs CHANGED
@@ -7,4 +7,4 @@ $db68d63440e07cc2$exports = {
7
7
 
8
8
 
9
9
  export {$db68d63440e07cc2$exports as default};
10
- //# sourceMappingURL=da-DK.mjs.map
10
+ //# sourceMappingURL=da-DK.module.js.map
package/dist/de-DE.mjs CHANGED
@@ -7,4 +7,4 @@ $59f85255004b972f$exports = {
7
7
 
8
8
 
9
9
  export {$59f85255004b972f$exports as default};
10
- //# sourceMappingURL=de-DE.mjs.map
10
+ //# sourceMappingURL=de-DE.module.js.map
package/dist/el-GR.mjs CHANGED
@@ -7,4 +7,4 @@ $897a62d7e05e3ae7$exports = {
7
7
 
8
8
 
9
9
  export {$897a62d7e05e3ae7$exports as default};
10
- //# sourceMappingURL=el-GR.mjs.map
10
+ //# sourceMappingURL=el-GR.module.js.map
package/dist/en-US.mjs CHANGED
@@ -7,4 +7,4 @@ $cd5f6f9dc2665e8f$exports = {
7
7
 
8
8
 
9
9
  export {$cd5f6f9dc2665e8f$exports as default};
10
- //# sourceMappingURL=en-US.mjs.map
10
+ //# sourceMappingURL=en-US.module.js.map
package/dist/es-ES.mjs CHANGED
@@ -7,4 +7,4 @@ $91da3b58720e2afa$exports = {
7
7
 
8
8
 
9
9
  export {$91da3b58720e2afa$exports as default};
10
- //# sourceMappingURL=es-ES.mjs.map
10
+ //# sourceMappingURL=es-ES.module.js.map
package/dist/et-EE.mjs CHANGED
@@ -7,4 +7,4 @@ $d881203a181403bc$exports = {
7
7
 
8
8
 
9
9
  export {$d881203a181403bc$exports as default};
10
- //# sourceMappingURL=et-EE.mjs.map
10
+ //# sourceMappingURL=et-EE.module.js.map
package/dist/fi-FI.mjs CHANGED
@@ -7,4 +7,4 @@ $b39cb8320f170f5d$exports = {
7
7
 
8
8
 
9
9
  export {$b39cb8320f170f5d$exports as default};
10
- //# sourceMappingURL=fi-FI.mjs.map
10
+ //# sourceMappingURL=fi-FI.module.js.map
package/dist/fr-FR.mjs CHANGED
@@ -7,4 +7,4 @@ $3dcec82c37bb9c69$exports = {
7
7
 
8
8
 
9
9
  export {$3dcec82c37bb9c69$exports as default};
10
- //# sourceMappingURL=fr-FR.mjs.map
10
+ //# sourceMappingURL=fr-FR.module.js.map
package/dist/he-IL.mjs CHANGED
@@ -7,4 +7,4 @@ $70451b8bc8958a93$exports = {
7
7
 
8
8
 
9
9
  export {$70451b8bc8958a93$exports as default};
10
- //# sourceMappingURL=he-IL.mjs.map
10
+ //# sourceMappingURL=he-IL.module.js.map
package/dist/hr-HR.mjs CHANGED
@@ -7,4 +7,4 @@ $8192b2e4907779a9$exports = {
7
7
 
8
8
 
9
9
  export {$8192b2e4907779a9$exports as default};
10
- //# sourceMappingURL=hr-HR.mjs.map
10
+ //# sourceMappingURL=hr-HR.module.js.map
package/dist/hu-HU.mjs CHANGED
@@ -7,4 +7,4 @@ $734bda6365304ddb$exports = {
7
7
 
8
8
 
9
9
  export {$734bda6365304ddb$exports as default};
10
- //# sourceMappingURL=hu-HU.mjs.map
10
+ //# sourceMappingURL=hu-HU.module.js.map
@@ -107,4 +107,4 @@ $41e47081d30453d1$exports = {
107
107
 
108
108
 
109
109
  export {$41e47081d30453d1$exports as default};
110
- //# sourceMappingURL=intlStrings.mjs.map
110
+ //# sourceMappingURL=intlStrings.module.js.map
package/dist/it-IT.mjs CHANGED
@@ -7,4 +7,4 @@ $c985376db8169cb9$exports = {
7
7
 
8
8
 
9
9
  export {$c985376db8169cb9$exports as default};
10
- //# sourceMappingURL=it-IT.mjs.map
10
+ //# sourceMappingURL=it-IT.module.js.map
package/dist/ja-JP.mjs CHANGED
@@ -7,4 +7,4 @@ $0a814f0515b1f941$exports = {
7
7
 
8
8
 
9
9
  export {$0a814f0515b1f941$exports as default};
10
- //# sourceMappingURL=ja-JP.mjs.map
10
+ //# sourceMappingURL=ja-JP.module.js.map
package/dist/ko-KR.mjs CHANGED
@@ -7,4 +7,4 @@ $87900002a59b18f5$exports = {
7
7
 
8
8
 
9
9
  export {$87900002a59b18f5$exports as default};
10
- //# sourceMappingURL=ko-KR.mjs.map
10
+ //# sourceMappingURL=ko-KR.module.js.map
package/dist/lt-LT.mjs CHANGED
@@ -7,4 +7,4 @@ $b083aee709113368$exports = {
7
7
 
8
8
 
9
9
  export {$b083aee709113368$exports as default};
10
- //# sourceMappingURL=lt-LT.mjs.map
10
+ //# sourceMappingURL=lt-LT.module.js.map
package/dist/lv-LV.mjs CHANGED
@@ -7,4 +7,4 @@ $641d21187f9a9953$exports = {
7
7
 
8
8
 
9
9
  export {$641d21187f9a9953$exports as default};
10
- //# sourceMappingURL=lv-LV.mjs.map
10
+ //# sourceMappingURL=lv-LV.module.js.map
package/dist/nb-NO.mjs CHANGED
@@ -7,4 +7,4 @@ $920b9baf5fdd305b$exports = {
7
7
 
8
8
 
9
9
  export {$920b9baf5fdd305b$exports as default};
10
- //# sourceMappingURL=nb-NO.mjs.map
10
+ //# sourceMappingURL=nb-NO.module.js.map
package/dist/nl-NL.mjs CHANGED
@@ -7,4 +7,4 @@ $ac88c25d97133768$exports = {
7
7
 
8
8
 
9
9
  export {$ac88c25d97133768$exports as default};
10
- //# sourceMappingURL=nl-NL.mjs.map
10
+ //# sourceMappingURL=nl-NL.module.js.map
package/dist/pl-PL.mjs CHANGED
@@ -7,4 +7,4 @@ $dea3c2ca37b0afea$exports = {
7
7
 
8
8
 
9
9
  export {$dea3c2ca37b0afea$exports as default};
10
- //# sourceMappingURL=pl-PL.mjs.map
10
+ //# sourceMappingURL=pl-PL.module.js.map
package/dist/pt-BR.mjs CHANGED
@@ -7,4 +7,4 @@ $36b701dae6c5c88a$exports = {
7
7
 
8
8
 
9
9
  export {$36b701dae6c5c88a$exports as default};
10
- //# sourceMappingURL=pt-BR.mjs.map
10
+ //# sourceMappingURL=pt-BR.module.js.map
package/dist/pt-PT.mjs CHANGED
@@ -7,4 +7,4 @@ $959bf461c37c3856$exports = {
7
7
 
8
8
 
9
9
  export {$959bf461c37c3856$exports as default};
10
- //# sourceMappingURL=pt-PT.mjs.map
10
+ //# sourceMappingURL=pt-PT.module.js.map
package/dist/ro-RO.mjs CHANGED
@@ -7,4 +7,4 @@ $584332ecb6a69cb1$exports = {
7
7
 
8
8
 
9
9
  export {$584332ecb6a69cb1$exports as default};
10
- //# sourceMappingURL=ro-RO.mjs.map
10
+ //# sourceMappingURL=ro-RO.module.js.map
package/dist/ru-RU.mjs CHANGED
@@ -7,4 +7,4 @@ $b3a312739e8cca16$exports = {
7
7
 
8
8
 
9
9
  export {$b3a312739e8cca16$exports as default};
10
- //# sourceMappingURL=ru-RU.mjs.map
10
+ //# sourceMappingURL=ru-RU.module.js.map
package/dist/sk-SK.mjs CHANGED
@@ -7,4 +7,4 @@ $531de2843c7d5aa0$exports = {
7
7
 
8
8
 
9
9
  export {$531de2843c7d5aa0$exports as default};
10
- //# sourceMappingURL=sk-SK.mjs.map
10
+ //# sourceMappingURL=sk-SK.module.js.map
package/dist/sl-SI.mjs CHANGED
@@ -7,4 +7,4 @@ $52846db7e4bedb0e$exports = {
7
7
 
8
8
 
9
9
  export {$52846db7e4bedb0e$exports as default};
10
- //# sourceMappingURL=sl-SI.mjs.map
10
+ //# sourceMappingURL=sl-SI.module.js.map
package/dist/sr-SP.mjs CHANGED
@@ -7,4 +7,4 @@ $20c8bedbc8241336$exports = {
7
7
 
8
8
 
9
9
  export {$20c8bedbc8241336$exports as default};
10
- //# sourceMappingURL=sr-SP.mjs.map
10
+ //# sourceMappingURL=sr-SP.module.js.map
package/dist/sv-SE.mjs CHANGED
@@ -7,4 +7,4 @@ $7a9bac9c7f5066c3$exports = {
7
7
 
8
8
 
9
9
  export {$7a9bac9c7f5066c3$exports as default};
10
- //# sourceMappingURL=sv-SE.mjs.map
10
+ //# sourceMappingURL=sv-SE.module.js.map
@@ -33,4 +33,4 @@ $f3b51ac952d4aeac$export$c8747d73d7954b9c = `xynrca_spectrum-Toast ${$f3b51ac952
33
33
 
34
34
 
35
35
  export {$f3b51ac952d4aeac$exports as default};
36
- //# sourceMappingURL=toastContainer_css.mjs.map
36
+ //# sourceMappingURL=toastContainer_css.module.js.map
@@ -37,4 +37,4 @@ $e05a169dc2f4f928$export$8e9e50fe392680b2 = `O7O3BG_spectrum-Toast-typeIcon`;
37
37
 
38
38
 
39
39
  export {$e05a169dc2f4f928$exports as default};
40
- //# sourceMappingURL=toast_vars_css.mjs.map
40
+ //# sourceMappingURL=toast_vars_css.module.js.map
package/dist/tr-TR.mjs CHANGED
@@ -7,4 +7,4 @@ $ef512fc21e0fdf2f$exports = {
7
7
 
8
8
 
9
9
  export {$ef512fc21e0fdf2f$exports as default};
10
- //# sourceMappingURL=tr-TR.mjs.map
10
+ //# sourceMappingURL=tr-TR.module.js.map
package/dist/uk-UA.mjs CHANGED
@@ -7,4 +7,4 @@ $6764c871b5447c7a$exports = {
7
7
 
8
8
 
9
9
  export {$6764c871b5447c7a$exports as default};
10
- //# sourceMappingURL=uk-UA.mjs.map
10
+ //# sourceMappingURL=uk-UA.module.js.map
package/dist/zh-CN.mjs CHANGED
@@ -7,4 +7,4 @@ $b1634d37b87f243f$exports = {
7
7
 
8
8
 
9
9
  export {$b1634d37b87f243f$exports as default};
10
- //# sourceMappingURL=zh-CN.mjs.map
10
+ //# sourceMappingURL=zh-CN.module.js.map
package/dist/zh-TW.mjs CHANGED
@@ -7,4 +7,4 @@ $19cbd4230357935e$exports = {
7
7
 
8
8
 
9
9
  export {$19cbd4230357935e$exports as default};
10
- //# sourceMappingURL=zh-TW.mjs.map
10
+ //# sourceMappingURL=zh-TW.module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/toast",
3
- "version": "3.0.0-beta.11",
3
+ "version": "3.0.0-beta.12",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,16 +36,16 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/focus": "^3.17.0",
40
- "@react-aria/i18n": "^3.11.0",
41
- "@react-aria/overlays": "^3.22.0",
42
- "@react-aria/toast": "3.0.0-beta.11",
43
- "@react-aria/utils": "^3.24.0",
44
- "@react-spectrum/button": "^3.16.3",
45
- "@react-spectrum/utils": "^3.11.6",
46
- "@react-stately/toast": "3.0.0-beta.3",
47
- "@react-types/shared": "^3.23.0",
48
- "@spectrum-icons/ui": "^3.6.6",
39
+ "@react-aria/focus": "^3.17.1",
40
+ "@react-aria/i18n": "^3.11.1",
41
+ "@react-aria/overlays": "^3.22.1",
42
+ "@react-aria/toast": "3.0.0-beta.12",
43
+ "@react-aria/utils": "^3.24.1",
44
+ "@react-spectrum/button": "^3.16.4",
45
+ "@react-spectrum/utils": "^3.11.7",
46
+ "@react-stately/toast": "3.0.0-beta.4",
47
+ "@react-types/shared": "^3.23.1",
48
+ "@spectrum-icons/ui": "^3.6.7",
49
49
  "@swc/helpers": "^0.5.0",
50
50
  "use-sync-external-store": "^1.2.0"
51
51
  },
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
65
+ "gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
66
66
  }