@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.
- package/dist/ContextualHelp.main.js +79 -0
- package/dist/ContextualHelp.main.js.map +1 -0
- package/dist/ContextualHelp.mjs +74 -0
- package/dist/ContextualHelp.module.js +74 -0
- package/dist/ContextualHelp.module.js.map +1 -0
- package/dist/ar-AE.mjs +1 -1
- package/dist/bg-BG.mjs +1 -1
- package/dist/contextualhelp_vars_css.main.js +23 -0
- package/dist/contextualhelp_vars_css.main.js.map +1 -0
- package/dist/contextualhelp_vars_css.mjs +25 -0
- package/dist/contextualhelp_vars_css.module.js +25 -0
- package/dist/contextualhelp_vars_css.module.js.map +1 -0
- package/dist/cs-CZ.mjs +1 -1
- package/dist/da-DK.mjs +1 -1
- package/dist/de-DE.mjs +1 -1
- package/dist/el-GR.mjs +1 -1
- package/dist/en-US.mjs +1 -1
- package/dist/es-ES.mjs +1 -1
- package/dist/et-EE.mjs +1 -1
- package/dist/fi-FI.mjs +1 -1
- package/dist/fr-FR.mjs +1 -1
- package/dist/he-IL.mjs +1 -1
- package/dist/hr-HR.mjs +1 -1
- package/dist/hu-HU.mjs +1 -1
- package/dist/import.mjs +1 -196
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/it-IT.mjs +1 -1
- package/dist/ja-JP.mjs +1 -1
- package/dist/ko-KR.mjs +1 -1
- package/dist/lt-LT.mjs +1 -1
- package/dist/lv-LV.mjs +1 -1
- package/dist/main.js +2 -193
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -196
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.mjs +1 -1
- package/dist/nl-NL.mjs +1 -1
- package/dist/pl-PL.mjs +1 -1
- package/dist/pt-BR.mjs +1 -1
- package/dist/pt-PT.mjs +1 -1
- package/dist/ro-RO.mjs +1 -1
- package/dist/ru-RU.mjs +1 -1
- package/dist/sk-SK.mjs +1 -1
- package/dist/sl-SI.mjs +1 -1
- package/dist/sr-SP.mjs +1 -1
- package/dist/sv-SE.mjs +1 -1
- package/dist/tr-TR.mjs +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.mjs +1 -1
- package/dist/{main.css → vars.f7dce423.css} +1 -1
- package/dist/{main.css.map → vars.f7dce423.css.map} +1 -1
- package/dist/zh-CN.mjs +1 -1
- package/dist/zh-TW.mjs +1 -1
- package/package.json +13 -13
- package/dist/module.css +0 -30
- package/dist/module.css.map +0 -1
package/dist/main.js
CHANGED
|
@@ -1,68 +1,12 @@
|
|
|
1
|
-
var $
|
|
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
|
-
|
|
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":"
|
|
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 $
|
|
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
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
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
package/dist/nl-NL.mjs
CHANGED
package/dist/pl-PL.mjs
CHANGED
package/dist/pt-BR.mjs
CHANGED
package/dist/pt-PT.mjs
CHANGED
package/dist/ro-RO.mjs
CHANGED
package/dist/ru-RU.mjs
CHANGED
package/dist/sk-SK.mjs
CHANGED
package/dist/sl-SI.mjs
CHANGED
package/dist/sr-SP.mjs
CHANGED
package/dist/sv-SE.mjs
CHANGED
package/dist/tr-TR.mjs
CHANGED
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<
|
|
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
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
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
|
@@ -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=
|
|
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":"
|
|
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
package/dist/zh-TW.mjs
CHANGED