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

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
package/dist/main.js CHANGED
@@ -1,68 +1,12 @@
1
- var $acb7f58c98e2cf06$exports = require("./ar-AE.main.js");
2
- var $2bbfbfd282c7ac2e$exports = require("./bg-BG.main.js");
3
- var $fb114849c2cd165d$exports = require("./cs-CZ.main.js");
4
- var $d915a218ab0c9e80$exports = require("./da-DK.main.js");
5
- var $b967195fa197fdf6$exports = require("./de-DE.main.js");
6
- var $2e327399cfbbb22c$exports = require("./el-GR.main.js");
7
- var $76d69c9d92b7631c$exports = require("./en-US.main.js");
8
- var $f16d20dee3bf2650$exports = require("./es-ES.main.js");
9
- var $681c6c332d3324fe$exports = require("./et-EE.main.js");
10
- var $aaae4f968feee6a5$exports = require("./fi-FI.main.js");
11
- var $6ca7aa54fe17b013$exports = require("./fr-FR.main.js");
12
- var $eead079849c849a8$exports = require("./he-IL.main.js");
13
- var $c595ccd23af366f1$exports = require("./hr-HR.main.js");
14
- var $13646d03ad3676f9$exports = require("./hu-HU.main.js");
15
- var $d288177f1ed0c023$exports = require("./it-IT.main.js");
16
- var $97fad5409bb5ac4b$exports = require("./ja-JP.main.js");
17
- var $8c367af4c98bf9ef$exports = require("./ko-KR.main.js");
18
- var $ff404be8bf7c1541$exports = require("./lt-LT.main.js");
19
- var $8f9381b231c1b1e7$exports = require("./lv-LV.main.js");
20
- var $66586c79322de90c$exports = require("./nb-NO.main.js");
21
- var $2707c2e216fd1fb0$exports = require("./nl-NL.main.js");
22
- var $1b8a6c42bf8a93cf$exports = require("./pl-PL.main.js");
23
- var $21519e2cdfbf2418$exports = require("./pt-BR.main.js");
24
- var $af034b95fde6a053$exports = require("./pt-PT.main.js");
25
- var $4881897691d95dcd$exports = require("./ro-RO.main.js");
26
- var $697e58aab1351cb6$exports = require("./ru-RU.main.js");
27
- var $18d1df2cd1fd4664$exports = require("./sk-SK.main.js");
28
- var $5923d5e92381fe28$exports = require("./sl-SI.main.js");
29
- var $0ef592839a88ef41$exports = require("./sr-SP.main.js");
30
- var $c254a7ac0f4821d7$exports = require("./sv-SE.main.js");
31
- var $a520943f16b6160a$exports = require("./tr-TR.main.js");
32
- var $679d794c1ece5065$exports = require("./uk-UA.main.js");
33
- var $a531570c7a651d45$exports = require("./zh-CN.main.js");
34
- var $487db55c4b552587$exports = require("./zh-TW.main.js");
35
- require("./main.css");
36
- var $ST3N8$reactspectrumbutton = require("@react-spectrum/button");
37
- var $ST3N8$reactspectrumutils = require("@react-spectrum/utils");
38
- var $ST3N8$reactspectrumdialog = require("@react-spectrum/dialog");
39
- var $ST3N8$spectrumiconsworkflowHelpOutline = require("@spectrum-icons/workflow/HelpOutline");
40
- var $ST3N8$spectrumiconsworkflowInfoOutline = require("@spectrum-icons/workflow/InfoOutline");
41
- var $ST3N8$reactariautils = require("@react-aria/utils");
42
- var $ST3N8$react = require("react");
43
- var $ST3N8$reactariai18n = require("@react-aria/i18n");
1
+ var $05e6407aa891f27c$exports = require("./ContextualHelp.main.js");
44
2
 
45
3
 
46
4
  function $parcel$export(e, n, v, s) {
47
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
48
6
  }
49
7
 
50
- function $parcel$interopDefault(a) {
51
- return a && a.__esModule ? a.default : a;
52
- }
53
-
54
- $parcel$export(module.exports, "ContextualHelp", () => $05e6407aa891f27c$export$7d3cdb256c2ba320);
8
+ $parcel$export(module.exports, "ContextualHelp", () => $05e6407aa891f27c$exports.ContextualHelp);
55
9
  /*
56
- * Copyright 2021 Adobe. All rights reserved.
57
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
58
- * you may not use this file except in compliance with the License. You may obtain a copy
59
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
60
- *
61
- * Unless required by applicable law or agreed to in writing, software distributed under
62
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
63
- * OF ANY KIND, either express or implied. See the License for the specific language
64
- * governing permissions and limitations under the License.
65
- */ /*
66
10
  * Copyright 2021 Adobe. All rights reserved.
67
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
68
12
  * you may not use this file except in compliance with the License. You may obtain a copy
@@ -75,139 +19,4 @@ $parcel$export(module.exports, "ContextualHelp", () => $05e6407aa891f27c$export$
75
19
  */
76
20
 
77
21
 
78
-
79
- var $a10e565ec42bcf96$exports = {};
80
-
81
- $parcel$export($a10e565ec42bcf96$exports, "react-spectrum-ContextualHelp-button", () => $a10e565ec42bcf96$export$20d9583c9f1529c1, (v) => $a10e565ec42bcf96$export$20d9583c9f1529c1 = v);
82
- $parcel$export($a10e565ec42bcf96$exports, "react-spectrum-ContextualHelp-content", () => $a10e565ec42bcf96$export$a1f805890cf58c4, (v) => $a10e565ec42bcf96$export$a1f805890cf58c4 = v);
83
- $parcel$export($a10e565ec42bcf96$exports, "react-spectrum-ContextualHelp-dialog", () => $a10e565ec42bcf96$export$ab2d873674d20d28, (v) => $a10e565ec42bcf96$export$ab2d873674d20d28 = v);
84
- $parcel$export($a10e565ec42bcf96$exports, "react-spectrum-ContextualHelp-dialog--isMobile", () => $a10e565ec42bcf96$export$a438776606a9a3cc, (v) => $a10e565ec42bcf96$export$a438776606a9a3cc = v);
85
- $parcel$export($a10e565ec42bcf96$exports, "react-spectrum-ContextualHelp-footer", () => $a10e565ec42bcf96$export$d901bc3fa82b87a6, (v) => $a10e565ec42bcf96$export$d901bc3fa82b87a6 = v);
86
- var $a10e565ec42bcf96$export$20d9583c9f1529c1;
87
- var $a10e565ec42bcf96$export$a1f805890cf58c4;
88
- var $a10e565ec42bcf96$export$ab2d873674d20d28;
89
- var $a10e565ec42bcf96$export$a438776606a9a3cc;
90
- var $a10e565ec42bcf96$export$d901bc3fa82b87a6;
91
- $a10e565ec42bcf96$export$20d9583c9f1529c1 = `L6gUaa_react-spectrum-ContextualHelp-button`;
92
- $a10e565ec42bcf96$export$a1f805890cf58c4 = `L6gUaa_react-spectrum-ContextualHelp-content`;
93
- $a10e565ec42bcf96$export$ab2d873674d20d28 = `L6gUaa_react-spectrum-ContextualHelp-dialog`;
94
- $a10e565ec42bcf96$export$a438776606a9a3cc = `L6gUaa_react-spectrum-ContextualHelp-dialog--isMobile`;
95
- $a10e565ec42bcf96$export$d901bc3fa82b87a6 = `L6gUaa_react-spectrum-ContextualHelp-footer`;
96
-
97
-
98
-
99
- var $ab07f09ac8b48f11$exports = {};
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
- $ab07f09ac8b48f11$exports = {
135
- "ar-AE": $acb7f58c98e2cf06$exports,
136
- "bg-BG": $2bbfbfd282c7ac2e$exports,
137
- "cs-CZ": $fb114849c2cd165d$exports,
138
- "da-DK": $d915a218ab0c9e80$exports,
139
- "de-DE": $b967195fa197fdf6$exports,
140
- "el-GR": $2e327399cfbbb22c$exports,
141
- "en-US": $76d69c9d92b7631c$exports,
142
- "es-ES": $f16d20dee3bf2650$exports,
143
- "et-EE": $681c6c332d3324fe$exports,
144
- "fi-FI": $aaae4f968feee6a5$exports,
145
- "fr-FR": $6ca7aa54fe17b013$exports,
146
- "he-IL": $eead079849c849a8$exports,
147
- "hr-HR": $c595ccd23af366f1$exports,
148
- "hu-HU": $13646d03ad3676f9$exports,
149
- "it-IT": $d288177f1ed0c023$exports,
150
- "ja-JP": $97fad5409bb5ac4b$exports,
151
- "ko-KR": $8c367af4c98bf9ef$exports,
152
- "lt-LT": $ff404be8bf7c1541$exports,
153
- "lv-LV": $8f9381b231c1b1e7$exports,
154
- "nb-NO": $66586c79322de90c$exports,
155
- "nl-NL": $2707c2e216fd1fb0$exports,
156
- "pl-PL": $1b8a6c42bf8a93cf$exports,
157
- "pt-BR": $21519e2cdfbf2418$exports,
158
- "pt-PT": $af034b95fde6a053$exports,
159
- "ro-RO": $4881897691d95dcd$exports,
160
- "ru-RU": $697e58aab1351cb6$exports,
161
- "sk-SK": $18d1df2cd1fd4664$exports,
162
- "sl-SI": $5923d5e92381fe28$exports,
163
- "sr-SP": $0ef592839a88ef41$exports,
164
- "sv-SE": $c254a7ac0f4821d7$exports,
165
- "tr-TR": $a520943f16b6160a$exports,
166
- "uk-UA": $679d794c1ece5065$exports,
167
- "zh-CN": $a531570c7a651d45$exports,
168
- "zh-TW": $487db55c4b552587$exports
169
- };
170
-
171
-
172
-
173
-
174
-
175
- function $05e6407aa891f27c$var$ContextualHelp(props, ref) {
176
- let { variant: variant = "help", placement: placement = "bottom start", children: children, ...otherProps } = props;
177
- let stringFormatter = (0, $ST3N8$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($ab07f09ac8b48f11$exports))), "@react-spectrum/contextualhelp");
178
- let icon = variant === "info" ? /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, ($parcel$interopDefault($ST3N8$spectrumiconsworkflowInfoOutline))), null) : /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, ($parcel$interopDefault($ST3N8$spectrumiconsworkflowHelpOutline))), null);
179
- let slots = {
180
- content: {
181
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a10e565ec42bcf96$exports)))["react-spectrum-ContextualHelp-content"]
182
- },
183
- footer: {
184
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($a10e565ec42bcf96$exports)))["react-spectrum-ContextualHelp-footer"]
185
- }
186
- };
187
- let labelProps = (0, $ST3N8$reactariautils.useLabels)(otherProps, stringFormatter.format(variant));
188
- return /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumdialog.DialogTrigger), {
189
- ...otherProps,
190
- type: "popover",
191
- placement: placement,
192
- hideArrow: true
193
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumbutton.ActionButton), {
194
- ...(0, $ST3N8$reactariautils.mergeProps)(otherProps, labelProps, {
195
- isDisabled: false
196
- }),
197
- ref: ref,
198
- UNSAFE_className: (0, $ST3N8$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a10e565ec42bcf96$exports))), "react-spectrum-ContextualHelp-button", otherProps.UNSAFE_className),
199
- isQuiet: true
200
- }, icon), /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumutils.ClearSlots), null, /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumutils.SlotProvider), {
201
- slots: slots
202
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).createElement((0, $ST3N8$reactspectrumdialog.Dialog), {
203
- UNSAFE_className: (0, $ST3N8$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($a10e565ec42bcf96$exports))), "react-spectrum-ContextualHelp-dialog")
204
- }, children))));
205
- }
206
- /**
207
- * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
208
- */ let $05e6407aa891f27c$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, ($parcel$interopDefault($ST3N8$react))).forwardRef($05e6407aa891f27c$var$ContextualHelp);
209
-
210
-
211
-
212
-
213
22
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;;;;;;;;;ACVD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8BtG,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX;;;;;;AF3CA,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,gEAAW,GAAG;IAEhE,IAAI,OAAO,YAAY,uBAAS,0DAAC,CAAA,GAAA,iEAAU,yBAAO,0DAAC,CAAA,GAAA,iEAAU;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,+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,gEAAS,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,gEAAS,GAAG;OAC9C;AAMb;AAEA;;CAEC,GACD,IAAI,0DAAkB,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;;CD1DtC","sources":["packages/@react-spectrum/contextualhelp/src/index.ts","packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx","packages/@adobe/spectrum-css-temp/components/contextualhelp/vars.css","packages/@react-spectrum/contextualhelp/src/*.js"],"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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n","/*\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","/*\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","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-spectrum/contextualhelp/src/index.ts"],"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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,66 +1,6 @@
1
- import $9cc8b85ee8327c05$exports from "./ar-AE.module.js";
2
- import $56f7d9be41e5dc75$exports from "./bg-BG.module.js";
3
- import $c427e4a9ab6700b2$exports from "./cs-CZ.module.js";
4
- import $ee2212e66656667f$exports from "./da-DK.module.js";
5
- import $112e467ad7137275$exports from "./de-DE.module.js";
6
- import $7ad0d6a9c54bdc43$exports from "./el-GR.module.js";
7
- import $704e90e35332a9cb$exports from "./en-US.module.js";
8
- import $f2e0410dbb606550$exports from "./es-ES.module.js";
9
- import $f4852a97714b8951$exports from "./et-EE.module.js";
10
- import $fb4baf837c8a96f6$exports from "./fi-FI.module.js";
11
- import $28b0fbf00803a68f$exports from "./fr-FR.module.js";
12
- import $77110a8f3000e559$exports from "./he-IL.module.js";
13
- import $dcc3492993669fc3$exports from "./hr-HR.module.js";
14
- import $d376dd5b16d08137$exports from "./hu-HU.module.js";
15
- import $45f88f0321bb5a8f$exports from "./it-IT.module.js";
16
- import $8f643aac2e9e9e26$exports from "./ja-JP.module.js";
17
- import $784ec4e789b99a71$exports from "./ko-KR.module.js";
18
- import $fcda0e0582088650$exports from "./lt-LT.module.js";
19
- import $9c3b35ecd7c5e348$exports from "./lv-LV.module.js";
20
- import $b6518647ee722bc3$exports from "./nb-NO.module.js";
21
- import $5cb1939fecdd5f1a$exports from "./nl-NL.module.js";
22
- import $3ed876b500650109$exports from "./pl-PL.module.js";
23
- import $999b0348d4f9e0ae$exports from "./pt-BR.module.js";
24
- import $01e38e0d24e067b8$exports from "./pt-PT.module.js";
25
- import $130ce4093fe216d5$exports from "./ro-RO.module.js";
26
- import $3b25696a80a9bfd8$exports from "./ru-RU.module.js";
27
- import $70037a741b152768$exports from "./sk-SK.module.js";
28
- import $4ce06844b60c40b5$exports from "./sl-SI.module.js";
29
- import $78c0c0c4796561ef$exports from "./sr-SP.module.js";
30
- import $a701758f24293d53$exports from "./sv-SE.module.js";
31
- import $ac0041dae2f30090$exports from "./tr-TR.module.js";
32
- import $e3e68b40fcb16018$exports from "./uk-UA.module.js";
33
- import $befba97b83d35197$exports from "./zh-CN.module.js";
34
- import $6051e1035ff73e7b$exports from "./zh-TW.module.js";
35
- import "./module.css";
36
- import {ActionButton as $2FtBM$ActionButton} from "@react-spectrum/button";
37
- import {classNames as $2FtBM$classNames, ClearSlots as $2FtBM$ClearSlots, SlotProvider as $2FtBM$SlotProvider} from "@react-spectrum/utils";
38
- import {DialogTrigger as $2FtBM$DialogTrigger, Dialog as $2FtBM$Dialog} from "@react-spectrum/dialog";
39
- import $2FtBM$spectrumiconsworkflowHelpOutline from "@spectrum-icons/workflow/HelpOutline";
40
- import $2FtBM$spectrumiconsworkflowInfoOutline from "@spectrum-icons/workflow/InfoOutline";
41
- import {useLabels as $2FtBM$useLabels, mergeProps as $2FtBM$mergeProps} from "@react-aria/utils";
42
- import $2FtBM$react from "react";
43
- import {useLocalizedStringFormatter as $2FtBM$useLocalizedStringFormatter} from "@react-aria/i18n";
1
+ import {ContextualHelp as $9d9069cfc9959198$export$7d3cdb256c2ba320} from "./ContextualHelp.module.js";
44
2
 
45
-
46
- function $parcel$interopDefault(a) {
47
- return a && a.__esModule ? a.default : a;
48
- }
49
-
50
- function $parcel$export(e, n, v, s) {
51
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
52
- }
53
3
  /*
54
- * Copyright 2021 Adobe. All rights reserved.
55
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
56
- * you may not use this file except in compliance with the License. You may obtain a copy
57
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
58
- *
59
- * Unless required by applicable law or agreed to in writing, software distributed under
60
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
61
- * OF ANY KIND, either express or implied. See the License for the specific language
62
- * governing permissions and limitations under the License.
63
- */ /*
64
4
  * Copyright 2021 Adobe. All rights reserved.
65
5
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
66
6
  * you may not use this file except in compliance with the License. You may obtain a copy
@@ -73,140 +13,5 @@ function $parcel$export(e, n, v, s) {
73
13
  */
74
14
 
75
15
 
76
-
77
- var $c487b1d738ebeac2$exports = {};
78
-
79
- $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-button", () => $c487b1d738ebeac2$export$20d9583c9f1529c1, (v) => $c487b1d738ebeac2$export$20d9583c9f1529c1 = v);
80
- $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-content", () => $c487b1d738ebeac2$export$a1f805890cf58c4, (v) => $c487b1d738ebeac2$export$a1f805890cf58c4 = v);
81
- $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-dialog", () => $c487b1d738ebeac2$export$ab2d873674d20d28, (v) => $c487b1d738ebeac2$export$ab2d873674d20d28 = v);
82
- $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-dialog--isMobile", () => $c487b1d738ebeac2$export$a438776606a9a3cc, (v) => $c487b1d738ebeac2$export$a438776606a9a3cc = v);
83
- $parcel$export($c487b1d738ebeac2$exports, "react-spectrum-ContextualHelp-footer", () => $c487b1d738ebeac2$export$d901bc3fa82b87a6, (v) => $c487b1d738ebeac2$export$d901bc3fa82b87a6 = v);
84
- var $c487b1d738ebeac2$export$20d9583c9f1529c1;
85
- var $c487b1d738ebeac2$export$a1f805890cf58c4;
86
- var $c487b1d738ebeac2$export$ab2d873674d20d28;
87
- var $c487b1d738ebeac2$export$a438776606a9a3cc;
88
- var $c487b1d738ebeac2$export$d901bc3fa82b87a6;
89
- $c487b1d738ebeac2$export$20d9583c9f1529c1 = `L6gUaa_react-spectrum-ContextualHelp-button`;
90
- $c487b1d738ebeac2$export$a1f805890cf58c4 = `L6gUaa_react-spectrum-ContextualHelp-content`;
91
- $c487b1d738ebeac2$export$ab2d873674d20d28 = `L6gUaa_react-spectrum-ContextualHelp-dialog`;
92
- $c487b1d738ebeac2$export$a438776606a9a3cc = `L6gUaa_react-spectrum-ContextualHelp-dialog--isMobile`;
93
- $c487b1d738ebeac2$export$d901bc3fa82b87a6 = `L6gUaa_react-spectrum-ContextualHelp-footer`;
94
-
95
-
96
-
97
- var $ff7022a435a048e3$exports = {};
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
- $ff7022a435a048e3$exports = {
133
- "ar-AE": $9cc8b85ee8327c05$exports,
134
- "bg-BG": $56f7d9be41e5dc75$exports,
135
- "cs-CZ": $c427e4a9ab6700b2$exports,
136
- "da-DK": $ee2212e66656667f$exports,
137
- "de-DE": $112e467ad7137275$exports,
138
- "el-GR": $7ad0d6a9c54bdc43$exports,
139
- "en-US": $704e90e35332a9cb$exports,
140
- "es-ES": $f2e0410dbb606550$exports,
141
- "et-EE": $f4852a97714b8951$exports,
142
- "fi-FI": $fb4baf837c8a96f6$exports,
143
- "fr-FR": $28b0fbf00803a68f$exports,
144
- "he-IL": $77110a8f3000e559$exports,
145
- "hr-HR": $dcc3492993669fc3$exports,
146
- "hu-HU": $d376dd5b16d08137$exports,
147
- "it-IT": $45f88f0321bb5a8f$exports,
148
- "ja-JP": $8f643aac2e9e9e26$exports,
149
- "ko-KR": $784ec4e789b99a71$exports,
150
- "lt-LT": $fcda0e0582088650$exports,
151
- "lv-LV": $9c3b35ecd7c5e348$exports,
152
- "nb-NO": $b6518647ee722bc3$exports,
153
- "nl-NL": $5cb1939fecdd5f1a$exports,
154
- "pl-PL": $3ed876b500650109$exports,
155
- "pt-BR": $999b0348d4f9e0ae$exports,
156
- "pt-PT": $01e38e0d24e067b8$exports,
157
- "ro-RO": $130ce4093fe216d5$exports,
158
- "ru-RU": $3b25696a80a9bfd8$exports,
159
- "sk-SK": $70037a741b152768$exports,
160
- "sl-SI": $4ce06844b60c40b5$exports,
161
- "sr-SP": $78c0c0c4796561ef$exports,
162
- "sv-SE": $a701758f24293d53$exports,
163
- "tr-TR": $ac0041dae2f30090$exports,
164
- "uk-UA": $e3e68b40fcb16018$exports,
165
- "zh-CN": $befba97b83d35197$exports,
166
- "zh-TW": $6051e1035ff73e7b$exports
167
- };
168
-
169
-
170
-
171
-
172
-
173
- function $9d9069cfc9959198$var$ContextualHelp(props, ref) {
174
- let { variant: variant = "help", placement: placement = "bottom start", children: children, ...otherProps } = props;
175
- let stringFormatter = (0, $2FtBM$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($ff7022a435a048e3$exports))), "@react-spectrum/contextualhelp");
176
- let icon = variant === "info" ? /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$spectrumiconsworkflowInfoOutline), null) : /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$spectrumiconsworkflowHelpOutline), null);
177
- let slots = {
178
- content: {
179
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($c487b1d738ebeac2$exports)))["react-spectrum-ContextualHelp-content"]
180
- },
181
- footer: {
182
- UNSAFE_className: (0, (/*@__PURE__*/$parcel$interopDefault($c487b1d738ebeac2$exports)))["react-spectrum-ContextualHelp-footer"]
183
- }
184
- };
185
- let labelProps = (0, $2FtBM$useLabels)(otherProps, stringFormatter.format(variant));
186
- return /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$DialogTrigger), {
187
- ...otherProps,
188
- type: "popover",
189
- placement: placement,
190
- hideArrow: true
191
- }, /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$ActionButton), {
192
- ...(0, $2FtBM$mergeProps)(otherProps, labelProps, {
193
- isDisabled: false
194
- }),
195
- ref: ref,
196
- UNSAFE_className: (0, $2FtBM$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c487b1d738ebeac2$exports))), "react-spectrum-ContextualHelp-button", otherProps.UNSAFE_className),
197
- isQuiet: true
198
- }, icon), /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$ClearSlots), null, /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$SlotProvider), {
199
- slots: slots
200
- }, /*#__PURE__*/ (0, $2FtBM$react).createElement((0, $2FtBM$Dialog), {
201
- UNSAFE_className: (0, $2FtBM$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($c487b1d738ebeac2$exports))), "react-spectrum-ContextualHelp-dialog")
202
- }, children))));
203
- }
204
- /**
205
- * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
206
- */ let $9d9069cfc9959198$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $2FtBM$react).forwardRef($9d9069cfc9959198$var$ContextualHelp);
207
-
208
-
209
-
210
-
211
16
  export {$9d9069cfc9959198$export$7d3cdb256c2ba320 as ContextualHelp};
212
17
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;CAUC;;;;;;;;;;;ACVD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8BtG,4BAAiB;IACf,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;AACX;;;;;;AF3CA,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,gEAAW,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;;CD1DtC","sources":["packages/@react-spectrum/contextualhelp/src/index.ts","packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx","packages/@adobe/spectrum-css-temp/components/contextualhelp/vars.css","packages/@react-spectrum/contextualhelp/src/*.js"],"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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n","/*\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","/*\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","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-spectrum/contextualhelp/src/index.ts"],"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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n"],"names":[],"version":3,"file":"module.js.map"}
package/dist/nb-NO.mjs CHANGED
@@ -6,4 +6,4 @@ $b6518647ee722bc3$exports = {
6
6
 
7
7
 
8
8
  export {$b6518647ee722bc3$exports as default};
9
- //# sourceMappingURL=nb-NO.module.js.map
9
+ //# sourceMappingURL=nb-NO.mjs.map
package/dist/nl-NL.mjs CHANGED
@@ -6,4 +6,4 @@ $5cb1939fecdd5f1a$exports = {
6
6
 
7
7
 
8
8
  export {$5cb1939fecdd5f1a$exports as default};
9
- //# sourceMappingURL=nl-NL.module.js.map
9
+ //# sourceMappingURL=nl-NL.mjs.map
package/dist/pl-PL.mjs CHANGED
@@ -6,4 +6,4 @@ $3ed876b500650109$exports = {
6
6
 
7
7
 
8
8
  export {$3ed876b500650109$exports as default};
9
- //# sourceMappingURL=pl-PL.module.js.map
9
+ //# sourceMappingURL=pl-PL.mjs.map
package/dist/pt-BR.mjs CHANGED
@@ -6,4 +6,4 @@ $999b0348d4f9e0ae$exports = {
6
6
 
7
7
 
8
8
  export {$999b0348d4f9e0ae$exports as default};
9
- //# sourceMappingURL=pt-BR.module.js.map
9
+ //# sourceMappingURL=pt-BR.mjs.map
package/dist/pt-PT.mjs CHANGED
@@ -6,4 +6,4 @@ $01e38e0d24e067b8$exports = {
6
6
 
7
7
 
8
8
  export {$01e38e0d24e067b8$exports as default};
9
- //# sourceMappingURL=pt-PT.module.js.map
9
+ //# sourceMappingURL=pt-PT.mjs.map
package/dist/ro-RO.mjs CHANGED
@@ -6,4 +6,4 @@ $130ce4093fe216d5$exports = {
6
6
 
7
7
 
8
8
  export {$130ce4093fe216d5$exports as default};
9
- //# sourceMappingURL=ro-RO.module.js.map
9
+ //# sourceMappingURL=ro-RO.mjs.map
package/dist/ru-RU.mjs CHANGED
@@ -6,4 +6,4 @@ $3b25696a80a9bfd8$exports = {
6
6
 
7
7
 
8
8
  export {$3b25696a80a9bfd8$exports as default};
9
- //# sourceMappingURL=ru-RU.module.js.map
9
+ //# sourceMappingURL=ru-RU.mjs.map
package/dist/sk-SK.mjs CHANGED
@@ -6,4 +6,4 @@ $70037a741b152768$exports = {
6
6
 
7
7
 
8
8
  export {$70037a741b152768$exports as default};
9
- //# sourceMappingURL=sk-SK.module.js.map
9
+ //# sourceMappingURL=sk-SK.mjs.map
package/dist/sl-SI.mjs CHANGED
@@ -6,4 +6,4 @@ $4ce06844b60c40b5$exports = {
6
6
 
7
7
 
8
8
  export {$4ce06844b60c40b5$exports as default};
9
- //# sourceMappingURL=sl-SI.module.js.map
9
+ //# sourceMappingURL=sl-SI.mjs.map
package/dist/sr-SP.mjs CHANGED
@@ -6,4 +6,4 @@ $78c0c0c4796561ef$exports = {
6
6
 
7
7
 
8
8
  export {$78c0c0c4796561ef$exports as default};
9
- //# sourceMappingURL=sr-SP.module.js.map
9
+ //# sourceMappingURL=sr-SP.mjs.map
package/dist/sv-SE.mjs CHANGED
@@ -6,4 +6,4 @@ $a701758f24293d53$exports = {
6
6
 
7
7
 
8
8
  export {$a701758f24293d53$exports as default};
9
- //# sourceMappingURL=sv-SE.module.js.map
9
+ //# sourceMappingURL=sv-SE.mjs.map
package/dist/tr-TR.mjs CHANGED
@@ -6,4 +6,4 @@ $ac0041dae2f30090$exports = {
6
6
 
7
7
 
8
8
  export {$ac0041dae2f30090$exports as default};
9
- //# sourceMappingURL=tr-TR.module.js.map
9
+ //# sourceMappingURL=tr-TR.mjs.map
package/dist/types.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import React from "react";
2
2
  import { SpectrumContextualHelpProps } from "@react-types/contextualhelp";
3
+ import { FocusableRefValue } from "@react-types/shared";
3
4
  /**
4
5
  * Contextual help shows a user extra information about the state of an adjacent component, or a total view.
5
6
  */
6
- export let ContextualHelp: React.ForwardRefExoticComponent<SpectrumContextualHelpProps & React.RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
7
+ export let ContextualHelp: React.ForwardRefExoticComponent<SpectrumContextualHelpProps & React.RefAttributes<FocusableRefValue<HTMLButtonElement, HTMLButtonElement>>>;
7
8
  export type { SpectrumContextualHelpProps } from '@react-types/contextualhelp';
8
9
 
9
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"mappings":";;AAiEA;;GAEG;AACH,OAAA,IAAI,yLAAkD,CAAC;ACvDvD,YAAY,EAAC,2BAA2B,EAAC,MAAM,6BAA6B,CAAC","sources":["packages/@react-spectrum/contextualhelp/src/packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx","packages/@react-spectrum/contextualhelp/src/packages/@react-spectrum/contextualhelp/src/index.ts","packages/@react-spectrum/contextualhelp/src/index.ts"],"sourcesContent":[null,null,"/*\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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;AAiEA;;GAEG;AACH,OAAA,IAAI,2JAAkD,CAAC;ACvDvD,YAAY,EAAC,2BAA2B,EAAC,MAAM,6BAA6B,CAAC","sources":["packages/@react-spectrum/contextualhelp/src/packages/@react-spectrum/contextualhelp/src/ContextualHelp.tsx","packages/@react-spectrum/contextualhelp/src/packages/@react-spectrum/contextualhelp/src/index.ts","packages/@react-spectrum/contextualhelp/src/index.ts"],"sourcesContent":[null,null,"/*\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\nexport {ContextualHelp} from './ContextualHelp';\nexport type {SpectrumContextualHelpProps} from '@react-types/contextualhelp';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/dist/uk-UA.mjs CHANGED
@@ -6,4 +6,4 @@ $e3e68b40fcb16018$exports = {
6
6
 
7
7
 
8
8
  export {$e3e68b40fcb16018$exports as default};
9
- //# sourceMappingURL=uk-UA.module.js.map
9
+ //# sourceMappingURL=uk-UA.mjs.map
@@ -27,4 +27,4 @@
27
27
  .L6gUaa_react-spectrum-ContextualHelp-dialog.L6gUaa_react-spectrum-ContextualHelp-dialog .L6gUaa_react-spectrum-ContextualHelp-footer {
28
28
  padding-top: var(--spectrum-global-dimension-static-size-100, 8px);
29
29
  }
30
- /*# sourceMappingURL=main.css.map */
30
+ /*# sourceMappingURL=vars.f7dce423.css.map */
@@ -1 +1 @@
1
- {"mappings":"AAwBA;;;;;;;AAME;;;;;AAMF;;;;;;AAKE;;;;AAGA;;;;AAIA","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":"main.css.map"}
1
+ {"mappings":"AAwBA;;;;;;;AAME;;;;;AAMF;;;;;;AAKE;;;;AAGA;;;;AAIA","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":"vars.f7dce423.css.map"}
package/dist/zh-CN.mjs CHANGED
@@ -6,4 +6,4 @@ $befba97b83d35197$exports = {
6
6
 
7
7
 
8
8
  export {$befba97b83d35197$exports as default};
9
- //# sourceMappingURL=zh-CN.module.js.map
9
+ //# sourceMappingURL=zh-CN.mjs.map
package/dist/zh-TW.mjs CHANGED
@@ -6,4 +6,4 @@ $6051e1035ff73e7b$exports = {
6
6
 
7
7
 
8
8
  export {$6051e1035ff73e7b$exports as default};
9
- //# sourceMappingURL=zh-TW.module.js.map
9
+ //# sourceMappingURL=zh-TW.mjs.map