@react-spectrum/contextualhelp 3.6.10-nightly.4555 → 3.6.10-nightly.4560

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 (61) hide show
  1. package/dist/ContextualHelp.main.js +79 -0
  2. package/dist/ContextualHelp.main.js.map +1 -0
  3. package/dist/ContextualHelp.mjs +74 -0
  4. package/dist/ContextualHelp.module.js +74 -0
  5. package/dist/ContextualHelp.module.js.map +1 -0
  6. package/dist/ar-AE.mjs +1 -1
  7. package/dist/bg-BG.mjs +1 -1
  8. package/dist/contextualhelp_vars_css.main.js +23 -0
  9. package/dist/contextualhelp_vars_css.main.js.map +1 -0
  10. package/dist/contextualhelp_vars_css.mjs +25 -0
  11. package/dist/contextualhelp_vars_css.module.js +25 -0
  12. package/dist/contextualhelp_vars_css.module.js.map +1 -0
  13. package/dist/cs-CZ.mjs +1 -1
  14. package/dist/da-DK.mjs +1 -1
  15. package/dist/de-DE.mjs +1 -1
  16. package/dist/el-GR.mjs +1 -1
  17. package/dist/en-US.mjs +1 -1
  18. package/dist/es-ES.mjs +1 -1
  19. package/dist/et-EE.mjs +1 -1
  20. package/dist/fi-FI.mjs +1 -1
  21. package/dist/fr-FR.mjs +1 -1
  22. package/dist/he-IL.mjs +1 -1
  23. package/dist/hr-HR.mjs +1 -1
  24. package/dist/hu-HU.mjs +1 -1
  25. package/dist/import.mjs +1 -196
  26. package/dist/intlStrings.main.js +108 -0
  27. package/dist/intlStrings.main.js.map +1 -0
  28. package/dist/intlStrings.mjs +110 -0
  29. package/dist/intlStrings.module.js +110 -0
  30. package/dist/intlStrings.module.js.map +1 -0
  31. package/dist/it-IT.mjs +1 -1
  32. package/dist/ja-JP.mjs +1 -1
  33. package/dist/ko-KR.mjs +1 -1
  34. package/dist/lt-LT.mjs +1 -1
  35. package/dist/lv-LV.mjs +1 -1
  36. package/dist/main.js +2 -193
  37. package/dist/main.js.map +1 -1
  38. package/dist/module.js +1 -196
  39. package/dist/module.js.map +1 -1
  40. package/dist/nb-NO.mjs +1 -1
  41. package/dist/nl-NL.mjs +1 -1
  42. package/dist/pl-PL.mjs +1 -1
  43. package/dist/pt-BR.mjs +1 -1
  44. package/dist/pt-PT.mjs +1 -1
  45. package/dist/ro-RO.mjs +1 -1
  46. package/dist/ru-RU.mjs +1 -1
  47. package/dist/sk-SK.mjs +1 -1
  48. package/dist/sl-SI.mjs +1 -1
  49. package/dist/sr-SP.mjs +1 -1
  50. package/dist/sv-SE.mjs +1 -1
  51. package/dist/tr-TR.mjs +1 -1
  52. package/dist/types.d.ts +2 -1
  53. package/dist/types.d.ts.map +1 -1
  54. package/dist/uk-UA.mjs +1 -1
  55. package/dist/{main.css → vars.f7dce423.css} +1 -1
  56. package/dist/{main.css.map → vars.f7dce423.css.map} +1 -1
  57. package/dist/zh-CN.mjs +1 -1
  58. package/dist/zh-TW.mjs +1 -1
  59. package/package.json +13 -13
  60. package/dist/module.css +0 -30
  61. package/dist/module.css.map +0 -1
@@ -0,0 +1,79 @@
1
+ require("./vars.f7dce423.css");
2
+ var $a10e565ec42bcf96$exports = require("./contextualhelp_vars_css.main.js");
3
+ var $ab07f09ac8b48f11$exports = require("./intlStrings.main.js");
4
+ var $i0m3o$reactspectrumbutton = require("@react-spectrum/button");
5
+ var $i0m3o$reactspectrumutils = require("@react-spectrum/utils");
6
+ var $i0m3o$reactspectrumdialog = require("@react-spectrum/dialog");
7
+ var $i0m3o$spectrumiconsworkflowHelpOutline = require("@spectrum-icons/workflow/HelpOutline");
8
+ var $i0m3o$spectrumiconsworkflowInfoOutline = require("@spectrum-icons/workflow/InfoOutline");
9
+ var $i0m3o$reactariautils = require("@react-aria/utils");
10
+ var $i0m3o$react = require("react");
11
+ var $i0m3o$reactariai18n = require("@react-aria/i18n");
12
+
13
+
14
+ function $parcel$interopDefault(a) {
15
+ return a && a.__esModule ? a.default : a;
16
+ }
17
+
18
+ function $parcel$export(e, n, v, s) {
19
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
20
+ }
21
+
22
+ $parcel$export(module.exports, "ContextualHelp", () => $05e6407aa891f27c$export$7d3cdb256c2ba320);
23
+ /*
24
+ * Copyright 2021 Adobe. All rights reserved.
25
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
26
+ * you may not use this file except in compliance with the License. You may obtain a copy
27
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
28
+ *
29
+ * Unless required by applicable law or agreed to in writing, software distributed under
30
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
31
+ * OF ANY KIND, either express or implied. See the License for the specific language
32
+ * governing permissions and limitations under the License.
33
+ */
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+ function $05e6407aa891f27c$var$ContextualHelp(props, ref) {
44
+ let { variant: variant = "help", placement: placement = "bottom start", children: children, ...otherProps } = props;
45
+ let stringFormatter = (0, $i0m3o$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($ab07f09ac8b48f11$exports))), "@react-spectrum/contextualhelp");
46
+ let icon = variant === "info" ? /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, ($parcel$interopDefault($i0m3o$spectrumiconsworkflowInfoOutline))), null) : /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, ($parcel$interopDefault($i0m3o$spectrumiconsworkflowHelpOutline))), null);
47
+ let slots = {
48
+ content: {
49
+ UNSAFE_className: (0, ($parcel$interopDefault($a10e565ec42bcf96$exports)))["react-spectrum-ContextualHelp-content"]
50
+ },
51
+ footer: {
52
+ UNSAFE_className: (0, ($parcel$interopDefault($a10e565ec42bcf96$exports)))["react-spectrum-ContextualHelp-footer"]
53
+ }
54
+ };
55
+ let labelProps = (0, $i0m3o$reactariautils.useLabels)(otherProps, stringFormatter.format(variant));
56
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, $i0m3o$reactspectrumdialog.DialogTrigger), {
57
+ ...otherProps,
58
+ type: "popover",
59
+ placement: placement,
60
+ hideArrow: true
61
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, $i0m3o$reactspectrumbutton.ActionButton), {
62
+ ...(0, $i0m3o$reactariautils.mergeProps)(otherProps, labelProps, {
63
+ isDisabled: false
64
+ }),
65
+ ref: ref,
66
+ UNSAFE_className: (0, $i0m3o$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a10e565ec42bcf96$exports))), "react-spectrum-ContextualHelp-button", otherProps.UNSAFE_className),
67
+ isQuiet: true
68
+ }, icon), /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, $i0m3o$reactspectrumutils.ClearSlots), null, /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, $i0m3o$reactspectrumutils.SlotProvider), {
69
+ slots: slots
70
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).createElement((0, $i0m3o$reactspectrumdialog.Dialog), {
71
+ UNSAFE_className: (0, $i0m3o$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a10e565ec42bcf96$exports))), "react-spectrum-ContextualHelp-dialog")
72
+ }, children))));
73
+ }
74
+ /**
75
+ * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
76
+ */ let $05e6407aa891f27c$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).forwardRef($05e6407aa891f27c$var$ContextualHelp);
77
+
78
+
79
+ //# sourceMappingURL=ContextualHelp.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAgBD,SAAS,qCAAe,KAAkC,EAAE,GAAoC;IAC9F,IAAI,WACF,UAAU,mBACV,YAAY,0BACZ,QAAQ,EACR,GAAG,YACJ,GAAG;IAEJ,IAAI,kBAAkB,CAAA,GAAA,gDAA0B,EAAE,CAAA,GAAA,mDAAW,GAAG;IAEhE,IAAI,OAAO,YAAY,uBAAS,0DAAC,CAAA,GAAA,iEAAU,yBAAO,0DAAC,CAAA,GAAA,iEAAU;IAE7D,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB,CAAA,GAAA,mDAAS,CAAC,CAAC,wCAAwC;QAAA;QAC/E,QAAQ;YAAC,kBAAkB,CAAA,GAAA,mDAAS,CAAC,CAAC,uCAAuC;QAAA;IAC/E;IAEA,IAAI,aAAa,CAAA,GAAA,+BAAQ,EAAE,YAAY,gBAAgB,MAAM,CAAC;IAE9D,qBACE,0DAAC,CAAA,GAAA,wCAAY;QAAG,GAAG,UAAU;QAAE,MAAK;QAAU,WAAW;QAAW,WAAA;qBAClE,0DAAC,CAAA,GAAA,uCAAW;QACT,GAAG,CAAA,GAAA,gCAAS,EAAE,YAAY,YAAY;YAAC,YAAY;QAAK,EAAE;QAC3D,KAAK;QACL,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAS,GAAG,wCAAwC,WAAW,gBAAgB;QAC5G,SAAA;OACC,qBAEH,0DAAC,CAAA,GAAA,oCAAS,uBACR,0DAAC,CAAA,GAAA,sCAAW;QAAE,OAAO;qBACnB,0DAAC,CAAA,GAAA,iCAAK;QAAE,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAS,GAAG;OAC9C;AAMb;AAEA;;CAEC,GACD,IAAI,0DAAkB,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Dialog, DialogTrigger} from '@react-spectrum/dialog';\nimport {FocusableRef} from '@react-types/shared';\nimport HelpOutline from '@spectrum-icons/workflow/HelpOutline';\nimport helpStyles from '@adobe/spectrum-css-temp/components/contextualhelp/vars.css';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useLabels} from '@react-aria/utils';\nimport React from 'react';\nimport {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nfunction ContextualHelp(props: SpectrumContextualHelpProps, ref: FocusableRef<HTMLButtonElement>) {\n let {\n variant = 'help',\n placement = 'bottom start',\n children,\n ...otherProps\n } = props;\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/contextualhelp');\n\n let icon = variant === 'info' ? <InfoOutline /> : <HelpOutline />;\n\n let slots = {\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n\n let labelProps = useLabels(otherProps, stringFormatter.format(variant));\n\n return (\n <DialogTrigger {...otherProps} type=\"popover\" placement={placement} hideArrow>\n <ActionButton\n {...mergeProps(otherProps, labelProps, {isDisabled: false})}\n ref={ref}\n UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className)}\n isQuiet>\n {icon}\n </ActionButton>\n <ClearSlots>\n <SlotProvider slots={slots}>\n <Dialog UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')}>\n {children}\n </Dialog>\n </SlotProvider>\n </ClearSlots>\n </DialogTrigger>\n );\n}\n\n/**\n * Contextual help shows a user extra information about the state of an adjacent component, or a total view.\n */\nlet _ContextualHelp = React.forwardRef(ContextualHelp);\nexport {_ContextualHelp as ContextualHelp};\n"],"names":[],"version":3,"file":"ContextualHelp.main.js.map"}
@@ -0,0 +1,74 @@
1
+ import "./vars.f7dce423.css";
2
+ import $eIPk4$contextualhelp_vars_cssmodulejs from "./contextualhelp_vars_css.mjs";
3
+ import $eIPk4$intlStringsmodulejs from "./intlStrings.mjs";
4
+ import {ActionButton as $eIPk4$ActionButton} from "@react-spectrum/button";
5
+ import {classNames as $eIPk4$classNames, ClearSlots as $eIPk4$ClearSlots, SlotProvider as $eIPk4$SlotProvider} from "@react-spectrum/utils";
6
+ import {DialogTrigger as $eIPk4$DialogTrigger, Dialog as $eIPk4$Dialog} from "@react-spectrum/dialog";
7
+ import $eIPk4$spectrumiconsworkflowHelpOutline from "@spectrum-icons/workflow/HelpOutline";
8
+ import $eIPk4$spectrumiconsworkflowInfoOutline from "@spectrum-icons/workflow/InfoOutline";
9
+ import {useLabels as $eIPk4$useLabels, mergeProps as $eIPk4$mergeProps} from "@react-aria/utils";
10
+ import $eIPk4$react from "react";
11
+ import {useLocalizedStringFormatter as $eIPk4$useLocalizedStringFormatter} from "@react-aria/i18n";
12
+
13
+
14
+ function $parcel$interopDefault(a) {
15
+ return a && a.__esModule ? a.default : a;
16
+ }
17
+ /*
18
+ * Copyright 2021 Adobe. All rights reserved.
19
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
20
+ * you may not use this file except in compliance with the License. You may obtain a copy
21
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing, software distributed under
24
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
25
+ * OF ANY KIND, either express or implied. See the License for the specific language
26
+ * governing permissions and limitations under the License.
27
+ */
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+ function $9d9069cfc9959198$var$ContextualHelp(props, ref) {
38
+ let { variant: variant = "help", placement: placement = "bottom start", children: children, ...otherProps } = props;
39
+ let stringFormatter = (0, $eIPk4$useLocalizedStringFormatter)((0, ($parcel$interopDefault($eIPk4$intlStringsmodulejs))), "@react-spectrum/contextualhelp");
40
+ let icon = variant === "info" ? /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$spectrumiconsworkflowInfoOutline), null) : /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$spectrumiconsworkflowHelpOutline), null);
41
+ let slots = {
42
+ content: {
43
+ UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))["react-spectrum-ContextualHelp-content"]
44
+ },
45
+ footer: {
46
+ UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))["react-spectrum-ContextualHelp-footer"]
47
+ }
48
+ };
49
+ let labelProps = (0, $eIPk4$useLabels)(otherProps, stringFormatter.format(variant));
50
+ return /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$DialogTrigger), {
51
+ ...otherProps,
52
+ type: "popover",
53
+ placement: placement,
54
+ hideArrow: true
55
+ }, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$ActionButton), {
56
+ ...(0, $eIPk4$mergeProps)(otherProps, labelProps, {
57
+ isDisabled: false
58
+ }),
59
+ ref: ref,
60
+ UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))), "react-spectrum-ContextualHelp-button", otherProps.UNSAFE_className),
61
+ isQuiet: true
62
+ }, icon), /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$ClearSlots), null, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$SlotProvider), {
63
+ slots: slots
64
+ }, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$Dialog), {
65
+ UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))), "react-spectrum-ContextualHelp-dialog")
66
+ }, children))));
67
+ }
68
+ /**
69
+ * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
70
+ */ let $9d9069cfc9959198$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $eIPk4$react).forwardRef($9d9069cfc9959198$var$ContextualHelp);
71
+
72
+
73
+ export {$9d9069cfc9959198$export$7d3cdb256c2ba320 as ContextualHelp};
74
+ //# sourceMappingURL=ContextualHelp.mjs.map
@@ -0,0 +1,74 @@
1
+ import "./vars.f7dce423.css";
2
+ import $eIPk4$contextualhelp_vars_cssmodulejs from "./contextualhelp_vars_css.module.js";
3
+ import $eIPk4$intlStringsmodulejs from "./intlStrings.module.js";
4
+ import {ActionButton as $eIPk4$ActionButton} from "@react-spectrum/button";
5
+ import {classNames as $eIPk4$classNames, ClearSlots as $eIPk4$ClearSlots, SlotProvider as $eIPk4$SlotProvider} from "@react-spectrum/utils";
6
+ import {DialogTrigger as $eIPk4$DialogTrigger, Dialog as $eIPk4$Dialog} from "@react-spectrum/dialog";
7
+ import $eIPk4$spectrumiconsworkflowHelpOutline from "@spectrum-icons/workflow/HelpOutline";
8
+ import $eIPk4$spectrumiconsworkflowInfoOutline from "@spectrum-icons/workflow/InfoOutline";
9
+ import {useLabels as $eIPk4$useLabels, mergeProps as $eIPk4$mergeProps} from "@react-aria/utils";
10
+ import $eIPk4$react from "react";
11
+ import {useLocalizedStringFormatter as $eIPk4$useLocalizedStringFormatter} from "@react-aria/i18n";
12
+
13
+
14
+ function $parcel$interopDefault(a) {
15
+ return a && a.__esModule ? a.default : a;
16
+ }
17
+ /*
18
+ * Copyright 2021 Adobe. All rights reserved.
19
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
20
+ * you may not use this file except in compliance with the License. You may obtain a copy
21
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing, software distributed under
24
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
25
+ * OF ANY KIND, either express or implied. See the License for the specific language
26
+ * governing permissions and limitations under the License.
27
+ */
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+ function $9d9069cfc9959198$var$ContextualHelp(props, ref) {
38
+ let { variant: variant = "help", placement: placement = "bottom start", children: children, ...otherProps } = props;
39
+ let stringFormatter = (0, $eIPk4$useLocalizedStringFormatter)((0, ($parcel$interopDefault($eIPk4$intlStringsmodulejs))), "@react-spectrum/contextualhelp");
40
+ let icon = variant === "info" ? /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$spectrumiconsworkflowInfoOutline), null) : /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$spectrumiconsworkflowHelpOutline), null);
41
+ let slots = {
42
+ content: {
43
+ UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))["react-spectrum-ContextualHelp-content"]
44
+ },
45
+ footer: {
46
+ UNSAFE_className: (0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs)))["react-spectrum-ContextualHelp-footer"]
47
+ }
48
+ };
49
+ let labelProps = (0, $eIPk4$useLabels)(otherProps, stringFormatter.format(variant));
50
+ return /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$DialogTrigger), {
51
+ ...otherProps,
52
+ type: "popover",
53
+ placement: placement,
54
+ hideArrow: true
55
+ }, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$ActionButton), {
56
+ ...(0, $eIPk4$mergeProps)(otherProps, labelProps, {
57
+ isDisabled: false
58
+ }),
59
+ ref: ref,
60
+ UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))), "react-spectrum-ContextualHelp-button", otherProps.UNSAFE_className),
61
+ isQuiet: true
62
+ }, icon), /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$ClearSlots), null, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$SlotProvider), {
63
+ slots: slots
64
+ }, /*#__PURE__*/ (0, $eIPk4$react).createElement((0, $eIPk4$Dialog), {
65
+ UNSAFE_className: (0, $eIPk4$classNames)((0, ($parcel$interopDefault($eIPk4$contextualhelp_vars_cssmodulejs))), "react-spectrum-ContextualHelp-dialog")
66
+ }, children))));
67
+ }
68
+ /**
69
+ * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
70
+ */ let $9d9069cfc9959198$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $eIPk4$react).forwardRef($9d9069cfc9959198$var$ContextualHelp);
71
+
72
+
73
+ export {$9d9069cfc9959198$export$7d3cdb256c2ba320 as ContextualHelp};
74
+ //# sourceMappingURL=ContextualHelp.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAgBD,SAAS,qCAAe,KAAkC,EAAE,GAAoC;IAC9F,IAAI,WACF,UAAU,mBACV,YAAY,0BACZ,QAAQ,EACR,GAAG,YACJ,GAAG;IAEJ,IAAI,kBAAkB,CAAA,GAAA,kCAA0B,EAAE,CAAA,GAAA,oDAAW,GAAG;IAEhE,IAAI,OAAO,YAAY,uBAAS,gCAAC,CAAA,GAAA,uCAAU,yBAAO,gCAAC,CAAA,GAAA,uCAAU;IAE7D,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB,CAAA,GAAA,gEAAS,CAAC,CAAC,wCAAwC;QAAA;QAC/E,QAAQ;YAAC,kBAAkB,CAAA,GAAA,gEAAS,CAAC,CAAC,uCAAuC;QAAA;IAC/E;IAEA,IAAI,aAAa,CAAA,GAAA,gBAAQ,EAAE,YAAY,gBAAgB,MAAM,CAAC;IAE9D,qBACE,gCAAC,CAAA,GAAA,oBAAY;QAAG,GAAG,UAAU;QAAE,MAAK;QAAU,WAAW;QAAW,WAAA;qBAClE,gCAAC,CAAA,GAAA,mBAAW;QACT,GAAG,CAAA,GAAA,iBAAS,EAAE,YAAY,YAAY;YAAC,YAAY;QAAK,EAAE;QAC3D,KAAK;QACL,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,gEAAS,GAAG,wCAAwC,WAAW,gBAAgB;QAC5G,SAAA;OACC,qBAEH,gCAAC,CAAA,GAAA,iBAAS,uBACR,gCAAC,CAAA,GAAA,mBAAW;QAAE,OAAO;qBACnB,gCAAC,CAAA,GAAA,aAAK;QAAE,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,gEAAS,GAAG;OAC9C;AAMb;AAEA;;CAEC,GACD,IAAI,0DAAkB,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 {ActionButton} from '@react-spectrum/button';\nimport {classNames, ClearSlots, SlotProvider} from '@react-spectrum/utils';\nimport {Dialog, DialogTrigger} from '@react-spectrum/dialog';\nimport {FocusableRef} from '@react-types/shared';\nimport HelpOutline from '@spectrum-icons/workflow/HelpOutline';\nimport helpStyles from '@adobe/spectrum-css-temp/components/contextualhelp/vars.css';\nimport InfoOutline from '@spectrum-icons/workflow/InfoOutline';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useLabels} from '@react-aria/utils';\nimport React from 'react';\nimport {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nfunction ContextualHelp(props: SpectrumContextualHelpProps, ref: FocusableRef<HTMLButtonElement>) {\n let {\n variant = 'help',\n placement = 'bottom start',\n children,\n ...otherProps\n } = props;\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/contextualhelp');\n\n let icon = variant === 'info' ? <InfoOutline /> : <HelpOutline />;\n\n let slots = {\n content: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-content']},\n footer: {UNSAFE_className: helpStyles['react-spectrum-ContextualHelp-footer']}\n };\n\n let labelProps = useLabels(otherProps, stringFormatter.format(variant));\n\n return (\n <DialogTrigger {...otherProps} type=\"popover\" placement={placement} hideArrow>\n <ActionButton\n {...mergeProps(otherProps, labelProps, {isDisabled: false})}\n ref={ref}\n UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-button', otherProps.UNSAFE_className)}\n isQuiet>\n {icon}\n </ActionButton>\n <ClearSlots>\n <SlotProvider slots={slots}>\n <Dialog UNSAFE_className={classNames(helpStyles, 'react-spectrum-ContextualHelp-dialog')}>\n {children}\n </Dialog>\n </SlotProvider>\n </ClearSlots>\n </DialogTrigger>\n );\n}\n\n/**\n * Contextual help shows a user extra information about the state of an adjacent component, or a total view.\n */\nlet _ContextualHelp = React.forwardRef(ContextualHelp);\nexport {_ContextualHelp as ContextualHelp};\n"],"names":[],"version":3,"file":"ContextualHelp.module.js.map"}
package/dist/ar-AE.mjs CHANGED
@@ -6,4 +6,4 @@ $9cc8b85ee8327c05$exports = {
6
6
 
7
7
 
8
8
  export {$9cc8b85ee8327c05$exports as default};
9
- //# sourceMappingURL=ar-AE.module.js.map
9
+ //# sourceMappingURL=ar-AE.mjs.map
package/dist/bg-BG.mjs CHANGED
@@ -6,4 +6,4 @@ $56f7d9be41e5dc75$exports = {
6
6
 
7
7
 
8
8
  export {$56f7d9be41e5dc75$exports as default};
9
- //# sourceMappingURL=bg-BG.module.js.map
9
+ //# sourceMappingURL=bg-BG.mjs.map
@@ -0,0 +1,23 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+
6
+ $parcel$export(module.exports, "react-spectrum-ContextualHelp-button", () => $a10e565ec42bcf96$export$20d9583c9f1529c1, (v) => $a10e565ec42bcf96$export$20d9583c9f1529c1 = v);
7
+ $parcel$export(module.exports, "react-spectrum-ContextualHelp-content", () => $a10e565ec42bcf96$export$a1f805890cf58c4, (v) => $a10e565ec42bcf96$export$a1f805890cf58c4 = v);
8
+ $parcel$export(module.exports, "react-spectrum-ContextualHelp-dialog", () => $a10e565ec42bcf96$export$ab2d873674d20d28, (v) => $a10e565ec42bcf96$export$ab2d873674d20d28 = v);
9
+ $parcel$export(module.exports, "react-spectrum-ContextualHelp-dialog--isMobile", () => $a10e565ec42bcf96$export$a438776606a9a3cc, (v) => $a10e565ec42bcf96$export$a438776606a9a3cc = v);
10
+ $parcel$export(module.exports, "react-spectrum-ContextualHelp-footer", () => $a10e565ec42bcf96$export$d901bc3fa82b87a6, (v) => $a10e565ec42bcf96$export$d901bc3fa82b87a6 = v);
11
+ var $a10e565ec42bcf96$export$20d9583c9f1529c1;
12
+ var $a10e565ec42bcf96$export$a1f805890cf58c4;
13
+ var $a10e565ec42bcf96$export$ab2d873674d20d28;
14
+ var $a10e565ec42bcf96$export$a438776606a9a3cc;
15
+ var $a10e565ec42bcf96$export$d901bc3fa82b87a6;
16
+ $a10e565ec42bcf96$export$20d9583c9f1529c1 = `L6gUaa_react-spectrum-ContextualHelp-button`;
17
+ $a10e565ec42bcf96$export$a1f805890cf58c4 = `L6gUaa_react-spectrum-ContextualHelp-content`;
18
+ $a10e565ec42bcf96$export$ab2d873674d20d28 = `L6gUaa_react-spectrum-ContextualHelp-dialog`;
19
+ $a10e565ec42bcf96$export$a438776606a9a3cc = `L6gUaa_react-spectrum-ContextualHelp-dialog--isMobile`;
20
+ $a10e565ec42bcf96$export$d901bc3fa82b87a6 = `L6gUaa_react-spectrum-ContextualHelp-footer`;
21
+
22
+
23
+ //# sourceMappingURL=contextualhelp_vars_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAJA,4CAAyD,CAAC,2CAA2C,CAAC;AACtG,2CAA0D,CAAC,4CAA4C,CAAC;AACxG,4CAAyD,CAAC,2CAA2C,CAAC;AACtG,4CAAmE,CAAC,qDAAqD,CAAC;AAC1H,4CAAyD,CAAC,2CAA2C,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/contextualhelp/vars.css"],"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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"contextualhelp_vars_css.main.js.map"}
@@ -0,0 +1,25 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $c487b1d738ebeac2$exports = {};
6
+
7
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-button", () => $c487b1d738ebeac2$export$20d9583c9f1529c1, (v) => $c487b1d738ebeac2$export$20d9583c9f1529c1 = v);
8
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-content", () => $c487b1d738ebeac2$export$a1f805890cf58c4, (v) => $c487b1d738ebeac2$export$a1f805890cf58c4 = v);
9
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-dialog", () => $c487b1d738ebeac2$export$ab2d873674d20d28, (v) => $c487b1d738ebeac2$export$ab2d873674d20d28 = v);
10
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-dialog--isMobile", () => $c487b1d738ebeac2$export$a438776606a9a3cc, (v) => $c487b1d738ebeac2$export$a438776606a9a3cc = v);
11
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-footer", () => $c487b1d738ebeac2$export$d901bc3fa82b87a6, (v) => $c487b1d738ebeac2$export$d901bc3fa82b87a6 = v);
12
+ var $c487b1d738ebeac2$export$20d9583c9f1529c1;
13
+ var $c487b1d738ebeac2$export$a1f805890cf58c4;
14
+ var $c487b1d738ebeac2$export$ab2d873674d20d28;
15
+ var $c487b1d738ebeac2$export$a438776606a9a3cc;
16
+ var $c487b1d738ebeac2$export$d901bc3fa82b87a6;
17
+ $c487b1d738ebeac2$export$20d9583c9f1529c1 = `L6gUaa_react-spectrum-ContextualHelp-button`;
18
+ $c487b1d738ebeac2$export$a1f805890cf58c4 = `L6gUaa_react-spectrum-ContextualHelp-content`;
19
+ $c487b1d738ebeac2$export$ab2d873674d20d28 = `L6gUaa_react-spectrum-ContextualHelp-dialog`;
20
+ $c487b1d738ebeac2$export$a438776606a9a3cc = `L6gUaa_react-spectrum-ContextualHelp-dialog--isMobile`;
21
+ $c487b1d738ebeac2$export$d901bc3fa82b87a6 = `L6gUaa_react-spectrum-ContextualHelp-footer`;
22
+
23
+
24
+ export {$c487b1d738ebeac2$exports as default};
25
+ //# sourceMappingURL=contextualhelp_vars_css.mjs.map
@@ -0,0 +1,25 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $c487b1d738ebeac2$exports = {};
6
+
7
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-button", () => $c487b1d738ebeac2$export$20d9583c9f1529c1, (v) => $c487b1d738ebeac2$export$20d9583c9f1529c1 = v);
8
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-content", () => $c487b1d738ebeac2$export$a1f805890cf58c4, (v) => $c487b1d738ebeac2$export$a1f805890cf58c4 = v);
9
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-dialog", () => $c487b1d738ebeac2$export$ab2d873674d20d28, (v) => $c487b1d738ebeac2$export$ab2d873674d20d28 = v);
10
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-dialog--isMobile", () => $c487b1d738ebeac2$export$a438776606a9a3cc, (v) => $c487b1d738ebeac2$export$a438776606a9a3cc = v);
11
+ $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-footer", () => $c487b1d738ebeac2$export$d901bc3fa82b87a6, (v) => $c487b1d738ebeac2$export$d901bc3fa82b87a6 = v);
12
+ var $c487b1d738ebeac2$export$20d9583c9f1529c1;
13
+ var $c487b1d738ebeac2$export$a1f805890cf58c4;
14
+ var $c487b1d738ebeac2$export$ab2d873674d20d28;
15
+ var $c487b1d738ebeac2$export$a438776606a9a3cc;
16
+ var $c487b1d738ebeac2$export$d901bc3fa82b87a6;
17
+ $c487b1d738ebeac2$export$20d9583c9f1529c1 = `L6gUaa_react-spectrum-ContextualHelp-button`;
18
+ $c487b1d738ebeac2$export$a1f805890cf58c4 = `L6gUaa_react-spectrum-ContextualHelp-content`;
19
+ $c487b1d738ebeac2$export$ab2d873674d20d28 = `L6gUaa_react-spectrum-ContextualHelp-dialog`;
20
+ $c487b1d738ebeac2$export$a438776606a9a3cc = `L6gUaa_react-spectrum-ContextualHelp-dialog--isMobile`;
21
+ $c487b1d738ebeac2$export$d901bc3fa82b87a6 = `L6gUaa_react-spectrum-ContextualHelp-footer`;
22
+
23
+
24
+ export {$c487b1d738ebeac2$exports as default};
25
+ //# sourceMappingURL=contextualhelp_vars_css.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAJA,4CAAyD,CAAC,2CAA2C,CAAC;AACtG,2CAA0D,CAAC,4CAA4C,CAAC;AACxG,4CAAyD,CAAC,2CAA2C,CAAC;AACtG,4CAAmE,CAAC,qDAAqD,CAAC;AAC1H,4CAAyD,CAAC,2CAA2C,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/contextualhelp/vars.css"],"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@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"contextualhelp_vars_css.module.js.map"}
package/dist/cs-CZ.mjs CHANGED
@@ -6,4 +6,4 @@ $c427e4a9ab6700b2$exports = {
6
6
 
7
7
 
8
8
  export {$c427e4a9ab6700b2$exports as default};
9
- //# sourceMappingURL=cs-CZ.module.js.map
9
+ //# sourceMappingURL=cs-CZ.mjs.map
package/dist/da-DK.mjs CHANGED
@@ -6,4 +6,4 @@ $ee2212e66656667f$exports = {
6
6
 
7
7
 
8
8
  export {$ee2212e66656667f$exports as default};
9
- //# sourceMappingURL=da-DK.module.js.map
9
+ //# sourceMappingURL=da-DK.mjs.map
package/dist/de-DE.mjs CHANGED
@@ -6,4 +6,4 @@ $112e467ad7137275$exports = {
6
6
 
7
7
 
8
8
  export {$112e467ad7137275$exports as default};
9
- //# sourceMappingURL=de-DE.module.js.map
9
+ //# sourceMappingURL=de-DE.mjs.map
package/dist/el-GR.mjs CHANGED
@@ -6,4 +6,4 @@ $7ad0d6a9c54bdc43$exports = {
6
6
 
7
7
 
8
8
  export {$7ad0d6a9c54bdc43$exports as default};
9
- //# sourceMappingURL=el-GR.module.js.map
9
+ //# sourceMappingURL=el-GR.mjs.map
package/dist/en-US.mjs CHANGED
@@ -6,4 +6,4 @@ $704e90e35332a9cb$exports = {
6
6
 
7
7
 
8
8
  export {$704e90e35332a9cb$exports as default};
9
- //# sourceMappingURL=en-US.module.js.map
9
+ //# sourceMappingURL=en-US.mjs.map
package/dist/es-ES.mjs CHANGED
@@ -6,4 +6,4 @@ $f2e0410dbb606550$exports = {
6
6
 
7
7
 
8
8
  export {$f2e0410dbb606550$exports as default};
9
- //# sourceMappingURL=es-ES.module.js.map
9
+ //# sourceMappingURL=es-ES.mjs.map
package/dist/et-EE.mjs CHANGED
@@ -6,4 +6,4 @@ $f4852a97714b8951$exports = {
6
6
 
7
7
 
8
8
  export {$f4852a97714b8951$exports as default};
9
- //# sourceMappingURL=et-EE.module.js.map
9
+ //# sourceMappingURL=et-EE.mjs.map
package/dist/fi-FI.mjs CHANGED
@@ -6,4 +6,4 @@ $fb4baf837c8a96f6$exports = {
6
6
 
7
7
 
8
8
  export {$fb4baf837c8a96f6$exports as default};
9
- //# sourceMappingURL=fi-FI.module.js.map
9
+ //# sourceMappingURL=fi-FI.mjs.map
package/dist/fr-FR.mjs CHANGED
@@ -6,4 +6,4 @@ $28b0fbf00803a68f$exports = {
6
6
 
7
7
 
8
8
  export {$28b0fbf00803a68f$exports as default};
9
- //# sourceMappingURL=fr-FR.module.js.map
9
+ //# sourceMappingURL=fr-FR.mjs.map
package/dist/he-IL.mjs CHANGED
@@ -6,4 +6,4 @@ $77110a8f3000e559$exports = {
6
6
 
7
7
 
8
8
  export {$77110a8f3000e559$exports as default};
9
- //# sourceMappingURL=he-IL.module.js.map
9
+ //# sourceMappingURL=he-IL.mjs.map
package/dist/hr-HR.mjs CHANGED
@@ -6,4 +6,4 @@ $dcc3492993669fc3$exports = {
6
6
 
7
7
 
8
8
  export {$dcc3492993669fc3$exports as default};
9
- //# sourceMappingURL=hr-HR.module.js.map
9
+ //# sourceMappingURL=hr-HR.mjs.map
package/dist/hu-HU.mjs CHANGED
@@ -6,4 +6,4 @@ $d376dd5b16d08137$exports = {
6
6
 
7
7
 
8
8
  export {$d376dd5b16d08137$exports as default};
9
- //# sourceMappingURL=hu-HU.module.js.map
9
+ //# sourceMappingURL=hu-HU.mjs.map