@react-spectrum/inlinealert 3.2.22 → 3.3.0

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 (198) hide show
  1. package/dist/import.mjs +2 -2
  2. package/dist/main.js +2 -2
  3. package/dist/main.js.map +1 -1
  4. package/dist/module.js +2 -2
  5. package/dist/module.js.map +1 -1
  6. package/dist/types/src/index.d.ts +2 -0
  7. package/package.json +12 -31
  8. package/src/index.ts +3 -2
  9. package/dist/InlineAlert.main.js +0 -101
  10. package/dist/InlineAlert.main.js.map +0 -1
  11. package/dist/InlineAlert.mjs +0 -96
  12. package/dist/InlineAlert.module.js +0 -96
  13. package/dist/InlineAlert.module.js.map +0 -1
  14. package/dist/ar-AE.main.js +0 -9
  15. package/dist/ar-AE.main.js.map +0 -1
  16. package/dist/ar-AE.mjs +0 -11
  17. package/dist/ar-AE.module.js +0 -11
  18. package/dist/ar-AE.module.js.map +0 -1
  19. package/dist/bg-BG.main.js +0 -9
  20. package/dist/bg-BG.main.js.map +0 -1
  21. package/dist/bg-BG.mjs +0 -11
  22. package/dist/bg-BG.module.js +0 -11
  23. package/dist/bg-BG.module.js.map +0 -1
  24. package/dist/cs-CZ.main.js +0 -9
  25. package/dist/cs-CZ.main.js.map +0 -1
  26. package/dist/cs-CZ.mjs +0 -11
  27. package/dist/cs-CZ.module.js +0 -11
  28. package/dist/cs-CZ.module.js.map +0 -1
  29. package/dist/da-DK.main.js +0 -9
  30. package/dist/da-DK.main.js.map +0 -1
  31. package/dist/da-DK.mjs +0 -11
  32. package/dist/da-DK.module.js +0 -11
  33. package/dist/da-DK.module.js.map +0 -1
  34. package/dist/de-DE.main.js +0 -9
  35. package/dist/de-DE.main.js.map +0 -1
  36. package/dist/de-DE.mjs +0 -11
  37. package/dist/de-DE.module.js +0 -11
  38. package/dist/de-DE.module.js.map +0 -1
  39. package/dist/el-GR.main.js +0 -9
  40. package/dist/el-GR.main.js.map +0 -1
  41. package/dist/el-GR.mjs +0 -11
  42. package/dist/el-GR.module.js +0 -11
  43. package/dist/el-GR.module.js.map +0 -1
  44. package/dist/en-US.main.js +0 -9
  45. package/dist/en-US.main.js.map +0 -1
  46. package/dist/en-US.mjs +0 -11
  47. package/dist/en-US.module.js +0 -11
  48. package/dist/en-US.module.js.map +0 -1
  49. package/dist/es-ES.main.js +0 -9
  50. package/dist/es-ES.main.js.map +0 -1
  51. package/dist/es-ES.mjs +0 -11
  52. package/dist/es-ES.module.js +0 -11
  53. package/dist/es-ES.module.js.map +0 -1
  54. package/dist/et-EE.main.js +0 -9
  55. package/dist/et-EE.main.js.map +0 -1
  56. package/dist/et-EE.mjs +0 -11
  57. package/dist/et-EE.module.js +0 -11
  58. package/dist/et-EE.module.js.map +0 -1
  59. package/dist/fi-FI.main.js +0 -9
  60. package/dist/fi-FI.main.js.map +0 -1
  61. package/dist/fi-FI.mjs +0 -11
  62. package/dist/fi-FI.module.js +0 -11
  63. package/dist/fi-FI.module.js.map +0 -1
  64. package/dist/fr-FR.main.js +0 -9
  65. package/dist/fr-FR.main.js.map +0 -1
  66. package/dist/fr-FR.mjs +0 -11
  67. package/dist/fr-FR.module.js +0 -11
  68. package/dist/fr-FR.module.js.map +0 -1
  69. package/dist/he-IL.main.js +0 -9
  70. package/dist/he-IL.main.js.map +0 -1
  71. package/dist/he-IL.mjs +0 -11
  72. package/dist/he-IL.module.js +0 -11
  73. package/dist/he-IL.module.js.map +0 -1
  74. package/dist/hr-HR.main.js +0 -9
  75. package/dist/hr-HR.main.js.map +0 -1
  76. package/dist/hr-HR.mjs +0 -11
  77. package/dist/hr-HR.module.js +0 -11
  78. package/dist/hr-HR.module.js.map +0 -1
  79. package/dist/hu-HU.main.js +0 -9
  80. package/dist/hu-HU.main.js.map +0 -1
  81. package/dist/hu-HU.mjs +0 -11
  82. package/dist/hu-HU.module.js +0 -11
  83. package/dist/hu-HU.module.js.map +0 -1
  84. package/dist/inlinealert.644ca5fc.css +0 -199
  85. package/dist/inlinealert.644ca5fc.css.map +0 -1
  86. package/dist/inlinealert_vars_css.main.js +0 -62
  87. package/dist/inlinealert_vars_css.main.js.map +0 -1
  88. package/dist/inlinealert_vars_css.mjs +0 -64
  89. package/dist/inlinealert_vars_css.module.js +0 -64
  90. package/dist/inlinealert_vars_css.module.js.map +0 -1
  91. package/dist/intlStrings.main.js +0 -108
  92. package/dist/intlStrings.main.js.map +0 -1
  93. package/dist/intlStrings.mjs +0 -110
  94. package/dist/intlStrings.module.js +0 -110
  95. package/dist/intlStrings.module.js.map +0 -1
  96. package/dist/it-IT.main.js +0 -9
  97. package/dist/it-IT.main.js.map +0 -1
  98. package/dist/it-IT.mjs +0 -11
  99. package/dist/it-IT.module.js +0 -11
  100. package/dist/it-IT.module.js.map +0 -1
  101. package/dist/ja-JP.main.js +0 -9
  102. package/dist/ja-JP.main.js.map +0 -1
  103. package/dist/ja-JP.mjs +0 -11
  104. package/dist/ja-JP.module.js +0 -11
  105. package/dist/ja-JP.module.js.map +0 -1
  106. package/dist/ko-KR.main.js +0 -9
  107. package/dist/ko-KR.main.js.map +0 -1
  108. package/dist/ko-KR.mjs +0 -11
  109. package/dist/ko-KR.module.js +0 -11
  110. package/dist/ko-KR.module.js.map +0 -1
  111. package/dist/lt-LT.main.js +0 -9
  112. package/dist/lt-LT.main.js.map +0 -1
  113. package/dist/lt-LT.mjs +0 -11
  114. package/dist/lt-LT.module.js +0 -11
  115. package/dist/lt-LT.module.js.map +0 -1
  116. package/dist/lv-LV.main.js +0 -9
  117. package/dist/lv-LV.main.js.map +0 -1
  118. package/dist/lv-LV.mjs +0 -11
  119. package/dist/lv-LV.module.js +0 -11
  120. package/dist/lv-LV.module.js.map +0 -1
  121. package/dist/nb-NO.main.js +0 -9
  122. package/dist/nb-NO.main.js.map +0 -1
  123. package/dist/nb-NO.mjs +0 -11
  124. package/dist/nb-NO.module.js +0 -11
  125. package/dist/nb-NO.module.js.map +0 -1
  126. package/dist/nl-NL.main.js +0 -9
  127. package/dist/nl-NL.main.js.map +0 -1
  128. package/dist/nl-NL.mjs +0 -11
  129. package/dist/nl-NL.module.js +0 -11
  130. package/dist/nl-NL.module.js.map +0 -1
  131. package/dist/pl-PL.main.js +0 -9
  132. package/dist/pl-PL.main.js.map +0 -1
  133. package/dist/pl-PL.mjs +0 -11
  134. package/dist/pl-PL.module.js +0 -11
  135. package/dist/pl-PL.module.js.map +0 -1
  136. package/dist/pt-BR.main.js +0 -9
  137. package/dist/pt-BR.main.js.map +0 -1
  138. package/dist/pt-BR.mjs +0 -11
  139. package/dist/pt-BR.module.js +0 -11
  140. package/dist/pt-BR.module.js.map +0 -1
  141. package/dist/pt-PT.main.js +0 -9
  142. package/dist/pt-PT.main.js.map +0 -1
  143. package/dist/pt-PT.mjs +0 -11
  144. package/dist/pt-PT.module.js +0 -11
  145. package/dist/pt-PT.module.js.map +0 -1
  146. package/dist/ro-RO.main.js +0 -9
  147. package/dist/ro-RO.main.js.map +0 -1
  148. package/dist/ro-RO.mjs +0 -11
  149. package/dist/ro-RO.module.js +0 -11
  150. package/dist/ro-RO.module.js.map +0 -1
  151. package/dist/ru-RU.main.js +0 -9
  152. package/dist/ru-RU.main.js.map +0 -1
  153. package/dist/ru-RU.mjs +0 -11
  154. package/dist/ru-RU.module.js +0 -11
  155. package/dist/ru-RU.module.js.map +0 -1
  156. package/dist/sk-SK.main.js +0 -9
  157. package/dist/sk-SK.main.js.map +0 -1
  158. package/dist/sk-SK.mjs +0 -11
  159. package/dist/sk-SK.module.js +0 -11
  160. package/dist/sk-SK.module.js.map +0 -1
  161. package/dist/sl-SI.main.js +0 -9
  162. package/dist/sl-SI.main.js.map +0 -1
  163. package/dist/sl-SI.mjs +0 -11
  164. package/dist/sl-SI.module.js +0 -11
  165. package/dist/sl-SI.module.js.map +0 -1
  166. package/dist/sr-SP.main.js +0 -9
  167. package/dist/sr-SP.main.js.map +0 -1
  168. package/dist/sr-SP.mjs +0 -11
  169. package/dist/sr-SP.module.js +0 -11
  170. package/dist/sr-SP.module.js.map +0 -1
  171. package/dist/sv-SE.main.js +0 -9
  172. package/dist/sv-SE.main.js.map +0 -1
  173. package/dist/sv-SE.mjs +0 -11
  174. package/dist/sv-SE.module.js +0 -11
  175. package/dist/sv-SE.module.js.map +0 -1
  176. package/dist/tr-TR.main.js +0 -9
  177. package/dist/tr-TR.main.js.map +0 -1
  178. package/dist/tr-TR.mjs +0 -11
  179. package/dist/tr-TR.module.js +0 -11
  180. package/dist/tr-TR.module.js.map +0 -1
  181. package/dist/types.d.ts +0 -24
  182. package/dist/types.d.ts.map +0 -1
  183. package/dist/uk-UA.main.js +0 -9
  184. package/dist/uk-UA.main.js.map +0 -1
  185. package/dist/uk-UA.mjs +0 -11
  186. package/dist/uk-UA.module.js +0 -11
  187. package/dist/uk-UA.module.js.map +0 -1
  188. package/dist/zh-CN.main.js +0 -9
  189. package/dist/zh-CN.main.js.map +0 -1
  190. package/dist/zh-CN.mjs +0 -11
  191. package/dist/zh-CN.module.js +0 -11
  192. package/dist/zh-CN.module.js.map +0 -1
  193. package/dist/zh-TW.main.js +0 -9
  194. package/dist/zh-TW.main.js.map +0 -1
  195. package/dist/zh-TW.mjs +0 -11
  196. package/dist/zh-TW.module.js +0 -11
  197. package/dist/zh-TW.module.js.map +0 -1
  198. package/src/InlineAlert.tsx +0 -112
package/dist/import.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {InlineAlert as $abf1e6290496dda5$export$a3b2c96db9b0eb71} from "./InlineAlert.mjs";
1
+ import {InlineAlert as $5876ab052671a3ab$re_export$InlineAlert} from "@adobe/react-spectrum/InlineAlert";
2
2
 
3
3
  /*
4
4
  * Copyright 2023 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {InlineAlert as $abf1e6290496dda5$export$a3b2c96db9b0eb71} from "./Inline
14
14
 
15
15
 
16
16
 
17
- export {$abf1e6290496dda5$export$a3b2c96db9b0eb71 as InlineAlert};
17
+ export {$5876ab052671a3ab$re_export$InlineAlert as InlineAlert};
18
18
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,11 +1,11 @@
1
- var $5de8c6729f05c665$exports = require("./InlineAlert.main.js");
1
+ var $b36G5$adobereactspectrumInlineAlert = require("@adobe/react-spectrum/InlineAlert");
2
2
 
3
3
 
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
7
 
8
- $parcel$export(module.exports, "InlineAlert", () => $5de8c6729f05c665$exports.InlineAlert);
8
+ $parcel$export(module.exports, "InlineAlert", function () { return $b36G5$adobereactspectrumInlineAlert.InlineAlert; });
9
9
  /*
10
10
  * Copyright 2023 Adobe. All rights reserved.
11
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/inlinealert/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {InlineAlert} from './InlineAlert';\nexport type {SpectrumInlineAlertProps} from './InlineAlert';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/inlinealert/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {InlineAlert} from '@adobe/react-spectrum/InlineAlert';\n\nexport type {SpectrumInlineAlertProps} from '@adobe/react-spectrum/InlineAlert';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import {InlineAlert as $abf1e6290496dda5$export$a3b2c96db9b0eb71} from "./InlineAlert.module.js";
1
+ import {InlineAlert as $5876ab052671a3ab$re_export$InlineAlert} from "@adobe/react-spectrum/InlineAlert";
2
2
 
3
3
  /*
4
4
  * Copyright 2023 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {InlineAlert as $abf1e6290496dda5$export$a3b2c96db9b0eb71} from "./Inline
14
14
 
15
15
 
16
16
 
17
- export {$abf1e6290496dda5$export$a3b2c96db9b0eb71 as InlineAlert};
17
+ export {$5876ab052671a3ab$re_export$InlineAlert as InlineAlert};
18
18
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/inlinealert/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {InlineAlert} from './InlineAlert';\nexport type {SpectrumInlineAlertProps} from './InlineAlert';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/inlinealert/src/index.ts"],"sourcesContent":["/*\n * Copyright 2023 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 {InlineAlert} from '@adobe/react-spectrum/InlineAlert';\n\nexport type {SpectrumInlineAlertProps} from '@adobe/react-spectrum/InlineAlert';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,2 @@
1
+ export { InlineAlert } from '@adobe/react-spectrum/InlineAlert';
2
+ export type { SpectrumInlineAlertProps } from '@adobe/react-spectrum/InlineAlert';
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@react-spectrum/inlinealert",
3
- "version": "3.2.22",
3
+ "version": "3.3.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
- "types": "dist/types.d.ts",
8
+ "types": "dist/types/src/index.d.ts",
9
9
  "exports": {
10
- "source": "./src/index.ts",
11
- "types": [
12
- "./dist/types.d.ts",
13
- "./src/index.ts"
14
- ],
15
- "import": "./dist/import.mjs",
16
- "require": "./dist/main.js"
10
+ ".": {
11
+ "source": "./src/index.ts",
12
+ "types": "./dist/types/src/index.d.ts",
13
+ "import": "./dist/import.mjs",
14
+ "require": "./dist/main.js"
15
+ },
16
+ "./package.json": "./package.json"
17
17
  },
18
18
  "source": "src/index.ts",
19
19
  "files": [
@@ -24,41 +24,22 @@
24
24
  "*.css"
25
25
  ],
26
26
  "targets": {
27
- "main": {
28
- "includeNodeModules": [
29
- "@adobe/spectrum-css-temp"
30
- ]
31
- },
32
- "module": {
33
- "includeNodeModules": [
34
- "@adobe/spectrum-css-temp"
35
- ]
36
- }
27
+ "types": false
37
28
  },
38
29
  "repository": {
39
30
  "type": "git",
40
31
  "url": "https://github.com/adobe/react-spectrum"
41
32
  },
42
33
  "dependencies": {
43
- "@react-aria/focus": "^3.21.4",
44
- "@react-aria/i18n": "^3.12.15",
45
- "@react-aria/utils": "^3.33.0",
46
- "@react-spectrum/layout": "^3.6.21",
47
- "@react-spectrum/utils": "^3.12.11",
48
- "@react-types/shared": "^3.33.0",
49
- "@spectrum-icons/ui": "^3.6.22",
34
+ "@adobe/react-spectrum": "3.47.0",
50
35
  "@swc/helpers": "^0.5.0"
51
36
  },
52
- "devDependencies": {
53
- "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
54
- },
55
37
  "peerDependencies": {
56
- "@react-spectrum/provider": "^3.0.0",
57
38
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
58
39
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
59
40
  },
60
41
  "publishConfig": {
61
42
  "access": "public"
62
43
  },
63
- "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
44
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
64
45
  }
package/src/index.ts CHANGED
@@ -12,5 +12,6 @@
12
12
 
13
13
  /// <reference types="css-module-types" />
14
14
 
15
- export {InlineAlert} from './InlineAlert';
16
- export type {SpectrumInlineAlertProps} from './InlineAlert';
15
+ export {InlineAlert} from '@adobe/react-spectrum/InlineAlert';
16
+
17
+ export type {SpectrumInlineAlertProps} from '@adobe/react-spectrum/InlineAlert';
@@ -1,101 +0,0 @@
1
- var $cf1d087b199fc7c5$exports = require("./intlStrings.main.js");
2
- require("./inlinealert.644ca5fc.css");
3
- var $8d976ce4ebad141b$exports = require("./inlinealert_vars_css.main.js");
4
- var $9SIjx$spectrumiconsuiAlertMedium = require("@spectrum-icons/ui/AlertMedium");
5
- var $9SIjx$reactspectrumutils = require("@react-spectrum/utils");
6
- var $9SIjx$reactariautils = require("@react-aria/utils");
7
- var $9SIjx$reactariafocus = require("@react-aria/focus");
8
- var $9SIjx$reactspectrumlayout = require("@react-spectrum/layout");
9
- var $9SIjx$spectrumiconsuiInfoMedium = require("@spectrum-icons/ui/InfoMedium");
10
- var $9SIjx$react = require("react");
11
- var $9SIjx$spectrumiconsuiSuccessMedium = require("@spectrum-icons/ui/SuccessMedium");
12
- var $9SIjx$reactariai18n = require("@react-aria/i18n");
13
- var $9SIjx$reactspectrumprovider = require("@react-spectrum/provider");
14
-
15
-
16
- function $parcel$interopDefault(a) {
17
- return a && a.__esModule ? a.default : a;
18
- }
19
-
20
- function $parcel$export(e, n, v, s) {
21
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
22
- }
23
-
24
- $parcel$export(module.exports, "InlineAlert", () => $5de8c6729f05c665$export$a3b2c96db9b0eb71);
25
- /*
26
- * Copyright 2023 Adobe. All rights reserved.
27
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
28
- * you may not use this file except in compliance with the License. You may obtain a copy
29
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
30
- *
31
- * Unless required by applicable law or agreed to in writing, software distributed under
32
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
33
- * OF ANY KIND, either express or implied. See the License for the specific language
34
- * governing permissions and limitations under the License.
35
- */
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
- let $5de8c6729f05c665$var$ICONS = {
48
- info: (0, ($parcel$interopDefault($9SIjx$spectrumiconsuiInfoMedium))),
49
- positive: (0, ($parcel$interopDefault($9SIjx$spectrumiconsuiSuccessMedium))),
50
- notice: (0, ($parcel$interopDefault($9SIjx$spectrumiconsuiAlertMedium))),
51
- negative: (0, ($parcel$interopDefault($9SIjx$spectrumiconsuiAlertMedium)))
52
- };
53
- const $5de8c6729f05c665$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, ($parcel$interopDefault($9SIjx$react))).forwardRef(function InlineAlert(props, ref) {
54
- props = (0, $9SIjx$reactspectrumprovider.useProviderProps)(props);
55
- let { children: children, variant: variant = 'neutral', autoFocus: autoFocus, ...otherProps } = props;
56
- let { styleProps: styleProps } = (0, $9SIjx$reactspectrumutils.useStyleProps)(otherProps);
57
- let domRef = (0, $9SIjx$reactspectrumutils.useDOMRef)(ref);
58
- let slots = {
59
- heading: {
60
- UNSAFE_className: (0, ($parcel$interopDefault($8d976ce4ebad141b$exports)))['spectrum-InLineAlert-heading']
61
- },
62
- content: {
63
- UNSAFE_className: (0, ($parcel$interopDefault($8d976ce4ebad141b$exports)))['spectrum-InLineAlert-content']
64
- }
65
- };
66
- let stringFormatter = (0, $9SIjx$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($cf1d087b199fc7c5$exports))), '@react-spectrum/inlinealert');
67
- let Icon = null;
68
- let iconAlt = '';
69
- if (variant in $5de8c6729f05c665$var$ICONS) {
70
- Icon = $5de8c6729f05c665$var$ICONS[variant];
71
- iconAlt = stringFormatter.format(variant);
72
- }
73
- let autoFocusRef = (0, $9SIjx$react.useRef)(props.autoFocus);
74
- (0, $9SIjx$react.useEffect)(()=>{
75
- if (autoFocusRef.current && domRef.current) domRef.current.focus();
76
- autoFocusRef.current = false;
77
- }, [
78
- domRef
79
- ]);
80
- return /*#__PURE__*/ (0, ($parcel$interopDefault($9SIjx$react))).createElement((0, $9SIjx$reactariafocus.FocusRing), {
81
- focusRingClass: (0, ($parcel$interopDefault($8d976ce4ebad141b$exports)))['focus-ring']
82
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($9SIjx$react))).createElement("div", {
83
- ...(0, $9SIjx$reactariautils.filterDOMProps)(props),
84
- ...styleProps,
85
- ref: domRef,
86
- tabIndex: autoFocus ? -1 : undefined,
87
- autoFocus: autoFocus,
88
- className: (0, $9SIjx$reactspectrumutils.classNames)((0, ($parcel$interopDefault($8d976ce4ebad141b$exports))), 'spectrum-InLineAlert', `spectrum-InLineAlert--${variant}`, styleProps.className),
89
- role: "alert"
90
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($9SIjx$react))).createElement((0, $9SIjx$reactspectrumlayout.Grid), {
91
- UNSAFE_className: (0, ($parcel$interopDefault($8d976ce4ebad141b$exports)))['spectrum-InLineAlert-grid']
92
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($9SIjx$react))).createElement((0, $9SIjx$reactspectrumutils.SlotProvider), {
93
- slots: slots
94
- }, Icon && /*#__PURE__*/ (0, ($parcel$interopDefault($9SIjx$react))).createElement(Icon, {
95
- UNSAFE_className: (0, ($parcel$interopDefault($8d976ce4ebad141b$exports)))['spectrum-InLineAlert-icon'],
96
- "aria-label": iconAlt
97
- }), children))));
98
- });
99
-
100
-
101
- //# sourceMappingURL=InlineAlert.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;AAiCD,IAAI,8BAAQ;IACV,MAAM,CAAA,GAAA,0DAAS;IACf,UAAU,CAAA,GAAA,6DAAY;IACtB,QAAQ,CAAA,GAAA,2DAAU;IAClB,UAAU,CAAA,GAAA,2DAAU;AACtB;AAMO,MAAM,0DAAc,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAA+B,EAAE,GAA2B;IAC3H,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,YACF,QAAQ,WACR,UAAU,sBACV,SAAS,EACT,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,+BAA+B;QAAA;QAClE,SAAS;YAAC,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,+BAA+B;QAAA;IACpE;IAEA,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAChE,IAAI,OAAsC;IAC1C,IAAI,UAAkB;IACtB,IAAI,WAAW,6BAAO;QACpB,OAAO,2BAAK,CAAC,QAAQ;QACrB,UAAU,gBAAgB,MAAM,CAAC;IACnC;IAEA,IAAI,eAAe,CAAA,GAAA,mBAAK,EAAE,MAAM,SAAS;IACzC,CAAA,GAAA,sBAAQ,EAAE;QACR,IAAI,aAAa,OAAO,IAAI,OAAO,OAAO,EACxC,OAAO,OAAO,CAAC,KAAK;QAEtB,aAAa,OAAO,GAAG;IACzB,GAAG;QAAC;KAAO;IAEX,qBACE,0DAAC,CAAA,GAAA,+BAAQ;QAAE,gBAAgB,CAAA,GAAA,mDAAK,CAAC,CAAC,aAAa;qBAC7C,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,MAAM;QACxB,GAAG,UAAU;QACd,KAAK;QACL,UAAU,YAAY,KAAK;QAC3B,WAAW;QACX,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,wBACA,CAAC,sBAAsB,EAAE,SAAS,EAClC,WAAW,SAAS;QAEtB,MAAK;qBACL,0DAAC,CAAA,GAAA,+BAAG;QAAE,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,4BAA4B;qBACzD,0DAAC,CAAA,GAAA,sCAAW;QAAE,OAAO;OAClB,sBAAQ,0DAAC;QAAK,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,4BAA4B;QAAE,cAAY;QACjF;AAMb","sources":["packages/@react-spectrum/inlinealert/src/InlineAlert.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ReactNode, useEffect, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/inlinealert/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nexport interface SpectrumInlineAlertProps extends DOMProps, StyleProps {\n /**\n * The [visual style](https://spectrum.adobe.com/page/in-line-alert/#Options) of the Inline Alert.\n * @default 'neutral'\n */\n variant?: 'neutral' | 'info' | 'positive' | 'notice' | 'negative',\n /**\n * The contents of the Inline Alert.\n */\n children: ReactNode,\n /**\n * Whether to automatically focus the Inline Alert when it first renders.\n */\n autoFocus?: boolean\n}\n\nlet ICONS = {\n info: InfoMedium,\n positive: SuccessMedium,\n notice: AlertMedium,\n negative: AlertMedium\n};\n\n/**\n * Inline alerts display a non-modal message associated with objects in a view.\n * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.\n */\nexport const InlineAlert = React.forwardRef(function InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let {\n children,\n variant = 'neutral',\n autoFocus,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let slots = {\n heading: {UNSAFE_className: styles['spectrum-InLineAlert-heading']},\n content: {UNSAFE_className: styles['spectrum-InLineAlert-content']}\n };\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/inlinealert');\n let Icon: typeof React.Component | null = null;\n let iconAlt: string = '';\n if (variant in ICONS) {\n Icon = ICONS[variant];\n iconAlt = stringFormatter.format(variant);\n }\n\n let autoFocusRef = useRef(props.autoFocus);\n useEffect(() => {\n if (autoFocusRef.current && domRef.current) {\n domRef.current.focus();\n }\n autoFocusRef.current = false;\n }, [domRef]);\n\n return (\n <FocusRing focusRingClass={styles['focus-ring']}>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n ref={domRef}\n tabIndex={autoFocus ? -1 : undefined}\n autoFocus={autoFocus}\n className={classNames(\n styles,\n 'spectrum-InLineAlert',\n `spectrum-InLineAlert--${variant}`,\n styleProps.className\n )}\n role=\"alert\">\n <Grid UNSAFE_className={styles['spectrum-InLineAlert-grid']}>\n <SlotProvider slots={slots}>\n {Icon && <Icon UNSAFE_className={styles['spectrum-InLineAlert-icon']} aria-label={iconAlt} />}\n {children}\n </SlotProvider>\n </Grid>\n </div>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"InlineAlert.main.js.map"}
@@ -1,96 +0,0 @@
1
- import $8S3NB$intlStringsmodulejs from "./intlStrings.mjs";
2
- import "./inlinealert.644ca5fc.css";
3
- import $8S3NB$inlinealert_vars_cssmodulejs from "./inlinealert_vars_css.mjs";
4
- import $8S3NB$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
5
- import {useStyleProps as $8S3NB$useStyleProps, useDOMRef as $8S3NB$useDOMRef, classNames as $8S3NB$classNames, SlotProvider as $8S3NB$SlotProvider} from "@react-spectrum/utils";
6
- import {filterDOMProps as $8S3NB$filterDOMProps} from "@react-aria/utils";
7
- import {FocusRing as $8S3NB$FocusRing} from "@react-aria/focus";
8
- import {Grid as $8S3NB$Grid} from "@react-spectrum/layout";
9
- import $8S3NB$spectrumiconsuiInfoMedium from "@spectrum-icons/ui/InfoMedium";
10
- import $8S3NB$react, {useRef as $8S3NB$useRef, useEffect as $8S3NB$useEffect} from "react";
11
- import $8S3NB$spectrumiconsuiSuccessMedium from "@spectrum-icons/ui/SuccessMedium";
12
- import {useLocalizedStringFormatter as $8S3NB$useLocalizedStringFormatter} from "@react-aria/i18n";
13
- import {useProviderProps as $8S3NB$useProviderProps} from "@react-spectrum/provider";
14
-
15
-
16
- function $parcel$interopDefault(a) {
17
- return a && a.__esModule ? a.default : a;
18
- }
19
- /*
20
- * Copyright 2023 Adobe. All rights reserved.
21
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
22
- * you may not use this file except in compliance with the License. You may obtain a copy
23
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
24
- *
25
- * Unless required by applicable law or agreed to in writing, software distributed under
26
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
27
- * OF ANY KIND, either express or implied. See the License for the specific language
28
- * governing permissions and limitations under the License.
29
- */
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
- let $abf1e6290496dda5$var$ICONS = {
42
- info: (0, $8S3NB$spectrumiconsuiInfoMedium),
43
- positive: (0, $8S3NB$spectrumiconsuiSuccessMedium),
44
- notice: (0, $8S3NB$spectrumiconsuiAlertMedium),
45
- negative: (0, $8S3NB$spectrumiconsuiAlertMedium)
46
- };
47
- const $abf1e6290496dda5$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, $8S3NB$react).forwardRef(function InlineAlert(props, ref) {
48
- props = (0, $8S3NB$useProviderProps)(props);
49
- let { children: children, variant: variant = 'neutral', autoFocus: autoFocus, ...otherProps } = props;
50
- let { styleProps: styleProps } = (0, $8S3NB$useStyleProps)(otherProps);
51
- let domRef = (0, $8S3NB$useDOMRef)(ref);
52
- let slots = {
53
- heading: {
54
- UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-heading']
55
- },
56
- content: {
57
- UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-content']
58
- }
59
- };
60
- let stringFormatter = (0, $8S3NB$useLocalizedStringFormatter)((0, ($parcel$interopDefault($8S3NB$intlStringsmodulejs))), '@react-spectrum/inlinealert');
61
- let Icon = null;
62
- let iconAlt = '';
63
- if (variant in $abf1e6290496dda5$var$ICONS) {
64
- Icon = $abf1e6290496dda5$var$ICONS[variant];
65
- iconAlt = stringFormatter.format(variant);
66
- }
67
- let autoFocusRef = (0, $8S3NB$useRef)(props.autoFocus);
68
- (0, $8S3NB$useEffect)(()=>{
69
- if (autoFocusRef.current && domRef.current) domRef.current.focus();
70
- autoFocusRef.current = false;
71
- }, [
72
- domRef
73
- ]);
74
- return /*#__PURE__*/ (0, $8S3NB$react).createElement((0, $8S3NB$FocusRing), {
75
- focusRingClass: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['focus-ring']
76
- }, /*#__PURE__*/ (0, $8S3NB$react).createElement("div", {
77
- ...(0, $8S3NB$filterDOMProps)(props),
78
- ...styleProps,
79
- ref: domRef,
80
- tabIndex: autoFocus ? -1 : undefined,
81
- autoFocus: autoFocus,
82
- className: (0, $8S3NB$classNames)((0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs))), 'spectrum-InLineAlert', `spectrum-InLineAlert--${variant}`, styleProps.className),
83
- role: "alert"
84
- }, /*#__PURE__*/ (0, $8S3NB$react).createElement((0, $8S3NB$Grid), {
85
- UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-grid']
86
- }, /*#__PURE__*/ (0, $8S3NB$react).createElement((0, $8S3NB$SlotProvider), {
87
- slots: slots
88
- }, Icon && /*#__PURE__*/ (0, $8S3NB$react).createElement(Icon, {
89
- UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-icon'],
90
- "aria-label": iconAlt
91
- }), children))));
92
- });
93
-
94
-
95
- export {$abf1e6290496dda5$export$a3b2c96db9b0eb71 as InlineAlert};
96
- //# sourceMappingURL=InlineAlert.module.js.map
@@ -1,96 +0,0 @@
1
- import $8S3NB$intlStringsmodulejs from "./intlStrings.module.js";
2
- import "./inlinealert.644ca5fc.css";
3
- import $8S3NB$inlinealert_vars_cssmodulejs from "./inlinealert_vars_css.module.js";
4
- import $8S3NB$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
5
- import {useStyleProps as $8S3NB$useStyleProps, useDOMRef as $8S3NB$useDOMRef, classNames as $8S3NB$classNames, SlotProvider as $8S3NB$SlotProvider} from "@react-spectrum/utils";
6
- import {filterDOMProps as $8S3NB$filterDOMProps} from "@react-aria/utils";
7
- import {FocusRing as $8S3NB$FocusRing} from "@react-aria/focus";
8
- import {Grid as $8S3NB$Grid} from "@react-spectrum/layout";
9
- import $8S3NB$spectrumiconsuiInfoMedium from "@spectrum-icons/ui/InfoMedium";
10
- import $8S3NB$react, {useRef as $8S3NB$useRef, useEffect as $8S3NB$useEffect} from "react";
11
- import $8S3NB$spectrumiconsuiSuccessMedium from "@spectrum-icons/ui/SuccessMedium";
12
- import {useLocalizedStringFormatter as $8S3NB$useLocalizedStringFormatter} from "@react-aria/i18n";
13
- import {useProviderProps as $8S3NB$useProviderProps} from "@react-spectrum/provider";
14
-
15
-
16
- function $parcel$interopDefault(a) {
17
- return a && a.__esModule ? a.default : a;
18
- }
19
- /*
20
- * Copyright 2023 Adobe. All rights reserved.
21
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
22
- * you may not use this file except in compliance with the License. You may obtain a copy
23
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
24
- *
25
- * Unless required by applicable law or agreed to in writing, software distributed under
26
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
27
- * OF ANY KIND, either express or implied. See the License for the specific language
28
- * governing permissions and limitations under the License.
29
- */
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
- let $abf1e6290496dda5$var$ICONS = {
42
- info: (0, $8S3NB$spectrumiconsuiInfoMedium),
43
- positive: (0, $8S3NB$spectrumiconsuiSuccessMedium),
44
- notice: (0, $8S3NB$spectrumiconsuiAlertMedium),
45
- negative: (0, $8S3NB$spectrumiconsuiAlertMedium)
46
- };
47
- const $abf1e6290496dda5$export$a3b2c96db9b0eb71 = /*#__PURE__*/ (0, $8S3NB$react).forwardRef(function InlineAlert(props, ref) {
48
- props = (0, $8S3NB$useProviderProps)(props);
49
- let { children: children, variant: variant = 'neutral', autoFocus: autoFocus, ...otherProps } = props;
50
- let { styleProps: styleProps } = (0, $8S3NB$useStyleProps)(otherProps);
51
- let domRef = (0, $8S3NB$useDOMRef)(ref);
52
- let slots = {
53
- heading: {
54
- UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-heading']
55
- },
56
- content: {
57
- UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-content']
58
- }
59
- };
60
- let stringFormatter = (0, $8S3NB$useLocalizedStringFormatter)((0, ($parcel$interopDefault($8S3NB$intlStringsmodulejs))), '@react-spectrum/inlinealert');
61
- let Icon = null;
62
- let iconAlt = '';
63
- if (variant in $abf1e6290496dda5$var$ICONS) {
64
- Icon = $abf1e6290496dda5$var$ICONS[variant];
65
- iconAlt = stringFormatter.format(variant);
66
- }
67
- let autoFocusRef = (0, $8S3NB$useRef)(props.autoFocus);
68
- (0, $8S3NB$useEffect)(()=>{
69
- if (autoFocusRef.current && domRef.current) domRef.current.focus();
70
- autoFocusRef.current = false;
71
- }, [
72
- domRef
73
- ]);
74
- return /*#__PURE__*/ (0, $8S3NB$react).createElement((0, $8S3NB$FocusRing), {
75
- focusRingClass: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['focus-ring']
76
- }, /*#__PURE__*/ (0, $8S3NB$react).createElement("div", {
77
- ...(0, $8S3NB$filterDOMProps)(props),
78
- ...styleProps,
79
- ref: domRef,
80
- tabIndex: autoFocus ? -1 : undefined,
81
- autoFocus: autoFocus,
82
- className: (0, $8S3NB$classNames)((0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs))), 'spectrum-InLineAlert', `spectrum-InLineAlert--${variant}`, styleProps.className),
83
- role: "alert"
84
- }, /*#__PURE__*/ (0, $8S3NB$react).createElement((0, $8S3NB$Grid), {
85
- UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-grid']
86
- }, /*#__PURE__*/ (0, $8S3NB$react).createElement((0, $8S3NB$SlotProvider), {
87
- slots: slots
88
- }, Icon && /*#__PURE__*/ (0, $8S3NB$react).createElement(Icon, {
89
- UNSAFE_className: (0, ($parcel$interopDefault($8S3NB$inlinealert_vars_cssmodulejs)))['spectrum-InLineAlert-icon'],
90
- "aria-label": iconAlt
91
- }), children))));
92
- });
93
-
94
-
95
- export {$abf1e6290496dda5$export$a3b2c96db9b0eb71 as InlineAlert};
96
- //# sourceMappingURL=InlineAlert.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;;;AAiCD,IAAI,8BAAQ;IACV,MAAM,CAAA,GAAA,gCAAS;IACf,UAAU,CAAA,GAAA,mCAAY;IACtB,QAAQ,CAAA,GAAA,iCAAU;IAClB,UAAU,CAAA,GAAA,iCAAU;AACtB;AAMO,MAAM,0DAAc,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAA+B,EAAE,GAA2B;IAC3H,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,IAAI,YACF,QAAQ,WACR,UAAU,sBACV,SAAS,EACT,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,+BAA+B;QAAA;QAClE,SAAS;YAAC,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,+BAA+B;QAAA;IACpE;IAEA,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAChE,IAAI,OAAsC;IAC1C,IAAI,UAAkB;IACtB,IAAI,WAAW,6BAAO;QACpB,OAAO,2BAAK,CAAC,QAAQ;QACrB,UAAU,gBAAgB,MAAM,CAAC;IACnC;IAEA,IAAI,eAAe,CAAA,GAAA,aAAK,EAAE,MAAM,SAAS;IACzC,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,aAAa,OAAO,IAAI,OAAO,OAAO,EACxC,OAAO,OAAO,CAAC,KAAK;QAEtB,aAAa,OAAO,GAAG;IACzB,GAAG;QAAC;KAAO;IAEX,qBACE,gCAAC,CAAA,GAAA,gBAAQ;QAAE,gBAAgB,CAAA,GAAA,6DAAK,CAAC,CAAC,aAAa;qBAC7C,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,MAAM;QACxB,GAAG,UAAU;QACd,KAAK;QACL,UAAU,YAAY,KAAK;QAC3B,WAAW;QACX,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,6DAAK,GACL,wBACA,CAAC,sBAAsB,EAAE,SAAS,EAClC,WAAW,SAAS;QAEtB,MAAK;qBACL,gCAAC,CAAA,GAAA,WAAG;QAAE,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,4BAA4B;qBACzD,gCAAC,CAAA,GAAA,mBAAW;QAAE,OAAO;OAClB,sBAAQ,gCAAC;QAAK,kBAAkB,CAAA,GAAA,6DAAK,CAAC,CAAC,4BAA4B;QAAE,cAAY;QACjF;AAMb","sources":["packages/@react-spectrum/inlinealert/src/InlineAlert.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 {classNames, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FocusRing} from '@react-aria/focus';\nimport {Grid} from '@react-spectrum/layout';\nimport InfoMedium from '@spectrum-icons/ui/InfoMedium';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React, {ReactNode, useEffect, useRef} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/inlinealert/vars.css';\nimport SuccessMedium from '@spectrum-icons/ui/SuccessMedium';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nexport interface SpectrumInlineAlertProps extends DOMProps, StyleProps {\n /**\n * The [visual style](https://spectrum.adobe.com/page/in-line-alert/#Options) of the Inline Alert.\n * @default 'neutral'\n */\n variant?: 'neutral' | 'info' | 'positive' | 'notice' | 'negative',\n /**\n * The contents of the Inline Alert.\n */\n children: ReactNode,\n /**\n * Whether to automatically focus the Inline Alert when it first renders.\n */\n autoFocus?: boolean\n}\n\nlet ICONS = {\n info: InfoMedium,\n positive: SuccessMedium,\n notice: AlertMedium,\n negative: AlertMedium\n};\n\n/**\n * Inline alerts display a non-modal message associated with objects in a view.\n * These are often used in form validation, providing a place to aggregate feedback related to multiple fields.\n */\nexport const InlineAlert = React.forwardRef(function InlineAlert(props: SpectrumInlineAlertProps, ref: DOMRef<HTMLDivElement>) {\n props = useProviderProps(props);\n let {\n children,\n variant = 'neutral',\n autoFocus,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let slots = {\n heading: {UNSAFE_className: styles['spectrum-InLineAlert-heading']},\n content: {UNSAFE_className: styles['spectrum-InLineAlert-content']}\n };\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/inlinealert');\n let Icon: typeof React.Component | null = null;\n let iconAlt: string = '';\n if (variant in ICONS) {\n Icon = ICONS[variant];\n iconAlt = stringFormatter.format(variant);\n }\n\n let autoFocusRef = useRef(props.autoFocus);\n useEffect(() => {\n if (autoFocusRef.current && domRef.current) {\n domRef.current.focus();\n }\n autoFocusRef.current = false;\n }, [domRef]);\n\n return (\n <FocusRing focusRingClass={styles['focus-ring']}>\n <div\n {...filterDOMProps(props)}\n {...styleProps}\n ref={domRef}\n tabIndex={autoFocus ? -1 : undefined}\n autoFocus={autoFocus}\n className={classNames(\n styles,\n 'spectrum-InLineAlert',\n `spectrum-InLineAlert--${variant}`,\n styleProps.className\n )}\n role=\"alert\">\n <Grid UNSAFE_className={styles['spectrum-InLineAlert-grid']}>\n <SlotProvider slots={slots}>\n {Icon && <Icon UNSAFE_className={styles['spectrum-InLineAlert-icon']} aria-label={iconAlt} />}\n {children}\n </SlotProvider>\n </Grid>\n </div>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"InlineAlert.module.js.map"}
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- "info": `\u{645}\u{639}\u{644}\u{648}\u{645}\u{627}\u{62A}`,
3
- "negative": `\u{62E}\u{637}\u{623}`,
4
- "notice": `\u{62A}\u{62D}\u{630}\u{64A}\u{631}`,
5
- "positive": `\u{62A}\u{645} \u{628}\u{646}\u{62C}\u{627}\u{62D}`
6
- };
7
-
8
-
9
- //# sourceMappingURL=ar-AE.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,iDAAO,CAAC;IACnC,YAAY,CAAC,qBAAG,CAAC;IACjB,UAAU,CAAC,mCAAK,CAAC;IACjB,YAAY,CAAC,kDAAQ,CAAC;AACxB","sources":["packages/@react-spectrum/inlinealert/intl/ar-AE.json"],"sourcesContent":["{\n \"info\": \"معلومات\",\n \"negative\": \"خطأ\",\n \"notice\": \"تحذير\",\n \"positive\": \"تم بنجاح\"\n}\n"],"names":[],"version":3,"file":"ar-AE.main.js.map"}
package/dist/ar-AE.mjs DELETED
@@ -1,11 +0,0 @@
1
- var $7c06d136a7db332f$exports = {};
2
- $7c06d136a7db332f$exports = {
3
- "info": `\u{645}\u{639}\u{644}\u{648}\u{645}\u{627}\u{62A}`,
4
- "negative": `\u{62E}\u{637}\u{623}`,
5
- "notice": `\u{62A}\u{62D}\u{630}\u{64A}\u{631}`,
6
- "positive": `\u{62A}\u{645} \u{628}\u{646}\u{62C}\u{627}\u{62D}`
7
- };
8
-
9
-
10
- export {$7c06d136a7db332f$exports as default};
11
- //# sourceMappingURL=ar-AE.module.js.map
@@ -1,11 +0,0 @@
1
- var $7c06d136a7db332f$exports = {};
2
- $7c06d136a7db332f$exports = {
3
- "info": `\u{645}\u{639}\u{644}\u{648}\u{645}\u{627}\u{62A}`,
4
- "negative": `\u{62E}\u{637}\u{623}`,
5
- "notice": `\u{62A}\u{62D}\u{630}\u{64A}\u{631}`,
6
- "positive": `\u{62A}\u{645} \u{628}\u{646}\u{62C}\u{627}\u{62D}`
7
- };
8
-
9
-
10
- export {$7c06d136a7db332f$exports as default};
11
- //# sourceMappingURL=ar-AE.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,QAAQ,CAAC,iDAAO,CAAC;IACnC,YAAY,CAAC,qBAAG,CAAC;IACjB,UAAU,CAAC,mCAAK,CAAC;IACjB,YAAY,CAAC,kDAAQ,CAAC;AACxB","sources":["packages/@react-spectrum/inlinealert/intl/ar-AE.json"],"sourcesContent":["{\n \"info\": \"معلومات\",\n \"negative\": \"خطأ\",\n \"notice\": \"تحذير\",\n \"positive\": \"تم بنجاح\"\n}\n"],"names":[],"version":3,"file":"ar-AE.module.js.map"}
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- "info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`,
3
- "negative": `\u{413}\u{440}\u{435}\u{448}\u{43A}\u{430}`,
4
- "notice": `\u{41F}\u{440}\u{435}\u{434}\u{443}\u{43F}\u{440}\u{435}\u{436}\u{434}\u{435}\u{43D}\u{438}\u{435}`,
5
- "positive": `\u{423}\u{441}\u{43F}\u{435}\u{448}\u{43D}\u{43E}`
6
- };
7
-
8
-
9
- //# sourceMappingURL=bg-BG.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,sEAAU,CAAC;IACtC,YAAY,CAAC,0CAAM,CAAC;IACpB,UAAU,CAAC,kGAAc,CAAC;IAC1B,YAAY,CAAC,iDAAO,CAAC;AACvB","sources":["packages/@react-spectrum/inlinealert/intl/bg-BG.json"],"sourcesContent":["{\n \"info\": \"Информация\",\n \"negative\": \"Грешка\",\n \"notice\": \"Предупреждение\",\n \"positive\": \"Успешно\"\n}\n"],"names":[],"version":3,"file":"bg-BG.main.js.map"}
package/dist/bg-BG.mjs DELETED
@@ -1,11 +0,0 @@
1
- var $7572fcde1b201200$exports = {};
2
- $7572fcde1b201200$exports = {
3
- "info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`,
4
- "negative": `\u{413}\u{440}\u{435}\u{448}\u{43A}\u{430}`,
5
- "notice": `\u{41F}\u{440}\u{435}\u{434}\u{443}\u{43F}\u{440}\u{435}\u{436}\u{434}\u{435}\u{43D}\u{438}\u{435}`,
6
- "positive": `\u{423}\u{441}\u{43F}\u{435}\u{448}\u{43D}\u{43E}`
7
- };
8
-
9
-
10
- export {$7572fcde1b201200$exports as default};
11
- //# sourceMappingURL=bg-BG.module.js.map
@@ -1,11 +0,0 @@
1
- var $7572fcde1b201200$exports = {};
2
- $7572fcde1b201200$exports = {
3
- "info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`,
4
- "negative": `\u{413}\u{440}\u{435}\u{448}\u{43A}\u{430}`,
5
- "notice": `\u{41F}\u{440}\u{435}\u{434}\u{443}\u{43F}\u{440}\u{435}\u{436}\u{434}\u{435}\u{43D}\u{438}\u{435}`,
6
- "positive": `\u{423}\u{441}\u{43F}\u{435}\u{448}\u{43D}\u{43E}`
7
- };
8
-
9
-
10
- export {$7572fcde1b201200$exports as default};
11
- //# sourceMappingURL=bg-BG.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,QAAQ,CAAC,sEAAU,CAAC;IACtC,YAAY,CAAC,0CAAM,CAAC;IACpB,UAAU,CAAC,kGAAc,CAAC;IAC1B,YAAY,CAAC,iDAAO,CAAC;AACvB","sources":["packages/@react-spectrum/inlinealert/intl/bg-BG.json"],"sourcesContent":["{\n \"info\": \"Информация\",\n \"negative\": \"Грешка\",\n \"notice\": \"Предупреждение\",\n \"positive\": \"Успешно\"\n}\n"],"names":[],"version":3,"file":"bg-BG.module.js.map"}
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- "info": `Informace`,
3
- "negative": `Chyba`,
4
- "notice": `Varov\xe1n\xed`,
5
- "positive": `\xdasp\u{11B}ch`
6
- };
7
-
8
-
9
- //# sourceMappingURL=cs-CZ.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,SAAS,CAAC;IACrC,YAAY,CAAC,KAAK,CAAC;IACnB,UAAU,CAAC,cAAQ,CAAC;IACpB,YAAY,CAAC,eAAM,CAAC;AACtB","sources":["packages/@react-spectrum/inlinealert/intl/cs-CZ.json"],"sourcesContent":["{\n \"info\": \"Informace\",\n \"negative\": \"Chyba\",\n \"notice\": \"Varování\",\n \"positive\": \"Úspěch\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.main.js.map"}
package/dist/cs-CZ.mjs DELETED
@@ -1,11 +0,0 @@
1
- var $4baaa05e7e36c8d5$exports = {};
2
- $4baaa05e7e36c8d5$exports = {
3
- "info": `Informace`,
4
- "negative": `Chyba`,
5
- "notice": `Varov\xe1n\xed`,
6
- "positive": `\xdasp\u{11B}ch`
7
- };
8
-
9
-
10
- export {$4baaa05e7e36c8d5$exports as default};
11
- //# sourceMappingURL=cs-CZ.module.js.map
@@ -1,11 +0,0 @@
1
- var $4baaa05e7e36c8d5$exports = {};
2
- $4baaa05e7e36c8d5$exports = {
3
- "info": `Informace`,
4
- "negative": `Chyba`,
5
- "notice": `Varov\xe1n\xed`,
6
- "positive": `\xdasp\u{11B}ch`
7
- };
8
-
9
-
10
- export {$4baaa05e7e36c8d5$exports as default};
11
- //# sourceMappingURL=cs-CZ.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";AAAA,4BAAiB;IAAG,QAAQ,CAAC,SAAS,CAAC;IACrC,YAAY,CAAC,KAAK,CAAC;IACnB,UAAU,CAAC,cAAQ,CAAC;IACpB,YAAY,CAAC,eAAM,CAAC;AACtB","sources":["packages/@react-spectrum/inlinealert/intl/cs-CZ.json"],"sourcesContent":["{\n \"info\": \"Informace\",\n \"negative\": \"Chyba\",\n \"notice\": \"Varování\",\n \"positive\": \"Úspěch\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.module.js.map"}
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- "info": `Oplysninger`,
3
- "negative": `Fejl`,
4
- "notice": `Advarsel`,
5
- "positive": `Fuldf\xf8rt`
6
- };
7
-
8
-
9
- //# sourceMappingURL=da-DK.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,WAAW,CAAC;IACvC,YAAY,CAAC,IAAI,CAAC;IAClB,UAAU,CAAC,QAAQ,CAAC;IACpB,YAAY,CAAC,WAAQ,CAAC;AACxB","sources":["packages/@react-spectrum/inlinealert/intl/da-DK.json"],"sourcesContent":["{\n \"info\": \"Oplysninger\",\n \"negative\": \"Fejl\",\n \"notice\": \"Advarsel\",\n \"positive\": \"Fuldført\"\n}\n"],"names":[],"version":3,"file":"da-DK.main.js.map"}
package/dist/da-DK.mjs DELETED
@@ -1,11 +0,0 @@
1
- var $67391f9ec3919bbd$exports = {};
2
- $67391f9ec3919bbd$exports = {
3
- "info": `Oplysninger`,
4
- "negative": `Fejl`,
5
- "notice": `Advarsel`,
6
- "positive": `Fuldf\xf8rt`
7
- };
8
-
9
-
10
- export {$67391f9ec3919bbd$exports as default};
11
- //# sourceMappingURL=da-DK.module.js.map