@react-spectrum/contextualhelp 3.6.31 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/import.mjs +2 -2
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/package.json +12 -30
- package/src/index.ts +3 -2
- package/dist/ContextualHelp.main.js +0 -76
- package/dist/ContextualHelp.main.js.map +0 -1
- package/dist/ContextualHelp.mjs +0 -71
- package/dist/ContextualHelp.module.js +0 -71
- package/dist/ContextualHelp.module.js.map +0 -1
- package/dist/ar-AE.main.js +0 -7
- package/dist/ar-AE.main.js.map +0 -1
- package/dist/ar-AE.mjs +0 -9
- package/dist/ar-AE.module.js +0 -9
- package/dist/ar-AE.module.js.map +0 -1
- package/dist/bg-BG.main.js +0 -7
- package/dist/bg-BG.main.js.map +0 -1
- package/dist/bg-BG.mjs +0 -9
- package/dist/bg-BG.module.js +0 -9
- package/dist/bg-BG.module.js.map +0 -1
- package/dist/contextualhelp.66c9400b.css +0 -30
- package/dist/contextualhelp.66c9400b.css.map +0 -1
- package/dist/contextualhelp_vars_css.main.js +0 -23
- package/dist/contextualhelp_vars_css.main.js.map +0 -1
- package/dist/contextualhelp_vars_css.mjs +0 -25
- package/dist/contextualhelp_vars_css.module.js +0 -25
- package/dist/contextualhelp_vars_css.module.js.map +0 -1
- package/dist/cs-CZ.main.js +0 -7
- package/dist/cs-CZ.main.js.map +0 -1
- package/dist/cs-CZ.mjs +0 -9
- package/dist/cs-CZ.module.js +0 -9
- package/dist/cs-CZ.module.js.map +0 -1
- package/dist/da-DK.main.js +0 -7
- package/dist/da-DK.main.js.map +0 -1
- package/dist/da-DK.mjs +0 -9
- package/dist/da-DK.module.js +0 -9
- package/dist/da-DK.module.js.map +0 -1
- package/dist/de-DE.main.js +0 -7
- package/dist/de-DE.main.js.map +0 -1
- package/dist/de-DE.mjs +0 -9
- package/dist/de-DE.module.js +0 -9
- package/dist/de-DE.module.js.map +0 -1
- package/dist/el-GR.main.js +0 -7
- package/dist/el-GR.main.js.map +0 -1
- package/dist/el-GR.mjs +0 -9
- package/dist/el-GR.module.js +0 -9
- package/dist/el-GR.module.js.map +0 -1
- package/dist/en-US.main.js +0 -7
- package/dist/en-US.main.js.map +0 -1
- package/dist/en-US.mjs +0 -9
- package/dist/en-US.module.js +0 -9
- package/dist/en-US.module.js.map +0 -1
- package/dist/es-ES.main.js +0 -7
- package/dist/es-ES.main.js.map +0 -1
- package/dist/es-ES.mjs +0 -9
- package/dist/es-ES.module.js +0 -9
- package/dist/es-ES.module.js.map +0 -1
- package/dist/et-EE.main.js +0 -7
- package/dist/et-EE.main.js.map +0 -1
- package/dist/et-EE.mjs +0 -9
- package/dist/et-EE.module.js +0 -9
- package/dist/et-EE.module.js.map +0 -1
- package/dist/fi-FI.main.js +0 -7
- package/dist/fi-FI.main.js.map +0 -1
- package/dist/fi-FI.mjs +0 -9
- package/dist/fi-FI.module.js +0 -9
- package/dist/fi-FI.module.js.map +0 -1
- package/dist/fr-FR.main.js +0 -7
- package/dist/fr-FR.main.js.map +0 -1
- package/dist/fr-FR.mjs +0 -9
- package/dist/fr-FR.module.js +0 -9
- package/dist/fr-FR.module.js.map +0 -1
- package/dist/he-IL.main.js +0 -7
- package/dist/he-IL.main.js.map +0 -1
- package/dist/he-IL.mjs +0 -9
- package/dist/he-IL.module.js +0 -9
- package/dist/he-IL.module.js.map +0 -1
- package/dist/hr-HR.main.js +0 -7
- package/dist/hr-HR.main.js.map +0 -1
- package/dist/hr-HR.mjs +0 -9
- package/dist/hr-HR.module.js +0 -9
- package/dist/hr-HR.module.js.map +0 -1
- package/dist/hu-HU.main.js +0 -7
- package/dist/hu-HU.main.js.map +0 -1
- package/dist/hu-HU.mjs +0 -9
- package/dist/hu-HU.module.js +0 -9
- package/dist/hu-HU.module.js.map +0 -1
- package/dist/intlStrings.main.js +0 -108
- package/dist/intlStrings.main.js.map +0 -1
- package/dist/intlStrings.mjs +0 -110
- package/dist/intlStrings.module.js +0 -110
- package/dist/intlStrings.module.js.map +0 -1
- package/dist/it-IT.main.js +0 -7
- package/dist/it-IT.main.js.map +0 -1
- package/dist/it-IT.mjs +0 -9
- package/dist/it-IT.module.js +0 -9
- package/dist/it-IT.module.js.map +0 -1
- package/dist/ja-JP.main.js +0 -7
- package/dist/ja-JP.main.js.map +0 -1
- package/dist/ja-JP.mjs +0 -9
- package/dist/ja-JP.module.js +0 -9
- package/dist/ja-JP.module.js.map +0 -1
- package/dist/ko-KR.main.js +0 -7
- package/dist/ko-KR.main.js.map +0 -1
- package/dist/ko-KR.mjs +0 -9
- package/dist/ko-KR.module.js +0 -9
- package/dist/ko-KR.module.js.map +0 -1
- package/dist/lt-LT.main.js +0 -7
- package/dist/lt-LT.main.js.map +0 -1
- package/dist/lt-LT.mjs +0 -9
- package/dist/lt-LT.module.js +0 -9
- package/dist/lt-LT.module.js.map +0 -1
- package/dist/lv-LV.main.js +0 -7
- package/dist/lv-LV.main.js.map +0 -1
- package/dist/lv-LV.mjs +0 -9
- package/dist/lv-LV.module.js +0 -9
- package/dist/lv-LV.module.js.map +0 -1
- package/dist/nb-NO.main.js +0 -7
- package/dist/nb-NO.main.js.map +0 -1
- package/dist/nb-NO.mjs +0 -9
- package/dist/nb-NO.module.js +0 -9
- package/dist/nb-NO.module.js.map +0 -1
- package/dist/nl-NL.main.js +0 -7
- package/dist/nl-NL.main.js.map +0 -1
- package/dist/nl-NL.mjs +0 -9
- package/dist/nl-NL.module.js +0 -9
- package/dist/nl-NL.module.js.map +0 -1
- package/dist/pl-PL.main.js +0 -7
- package/dist/pl-PL.main.js.map +0 -1
- package/dist/pl-PL.mjs +0 -9
- package/dist/pl-PL.module.js +0 -9
- package/dist/pl-PL.module.js.map +0 -1
- package/dist/pt-BR.main.js +0 -7
- package/dist/pt-BR.main.js.map +0 -1
- package/dist/pt-BR.mjs +0 -9
- package/dist/pt-BR.module.js +0 -9
- package/dist/pt-BR.module.js.map +0 -1
- package/dist/pt-PT.main.js +0 -7
- package/dist/pt-PT.main.js.map +0 -1
- package/dist/pt-PT.mjs +0 -9
- package/dist/pt-PT.module.js +0 -9
- package/dist/pt-PT.module.js.map +0 -1
- package/dist/ro-RO.main.js +0 -7
- package/dist/ro-RO.main.js.map +0 -1
- package/dist/ro-RO.mjs +0 -9
- package/dist/ro-RO.module.js +0 -9
- package/dist/ro-RO.module.js.map +0 -1
- package/dist/ru-RU.main.js +0 -7
- package/dist/ru-RU.main.js.map +0 -1
- package/dist/ru-RU.mjs +0 -9
- package/dist/ru-RU.module.js +0 -9
- package/dist/ru-RU.module.js.map +0 -1
- package/dist/sk-SK.main.js +0 -7
- package/dist/sk-SK.main.js.map +0 -1
- package/dist/sk-SK.mjs +0 -9
- package/dist/sk-SK.module.js +0 -9
- package/dist/sk-SK.module.js.map +0 -1
- package/dist/sl-SI.main.js +0 -7
- package/dist/sl-SI.main.js.map +0 -1
- package/dist/sl-SI.mjs +0 -9
- package/dist/sl-SI.module.js +0 -9
- package/dist/sl-SI.module.js.map +0 -1
- package/dist/sr-SP.main.js +0 -7
- package/dist/sr-SP.main.js.map +0 -1
- package/dist/sr-SP.mjs +0 -9
- package/dist/sr-SP.module.js +0 -9
- package/dist/sr-SP.module.js.map +0 -1
- package/dist/sv-SE.main.js +0 -7
- package/dist/sv-SE.main.js.map +0 -1
- package/dist/sv-SE.mjs +0 -9
- package/dist/sv-SE.module.js +0 -9
- package/dist/sv-SE.module.js.map +0 -1
- package/dist/tr-TR.main.js +0 -7
- package/dist/tr-TR.main.js.map +0 -1
- package/dist/tr-TR.mjs +0 -9
- package/dist/tr-TR.module.js +0 -9
- package/dist/tr-TR.module.js.map +0 -1
- package/dist/types.d.ts +0 -10
- package/dist/types.d.ts.map +0 -1
- package/dist/uk-UA.main.js +0 -7
- package/dist/uk-UA.main.js.map +0 -1
- package/dist/uk-UA.mjs +0 -9
- package/dist/uk-UA.module.js +0 -9
- package/dist/uk-UA.module.js.map +0 -1
- package/dist/zh-CN.main.js +0 -7
- package/dist/zh-CN.main.js.map +0 -1
- package/dist/zh-CN.mjs +0 -9
- package/dist/zh-CN.module.js +0 -9
- package/dist/zh-CN.module.js.map +0 -1
- package/dist/zh-TW.main.js +0 -7
- package/dist/zh-TW.main.js.map +0 -1
- package/dist/zh-TW.mjs +0 -9
- package/dist/zh-TW.module.js +0 -9
- package/dist/zh-TW.module.js.map +0 -1
- package/src/ContextualHelp.tsx +0 -67
package/dist/import.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ContextualHelp as $
|
|
1
|
+
import {ContextualHelp as $5993aa6116b190af$re_export$ContextualHelp} from "@adobe/react-spectrum/ContextualHelp";
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright 2021 Adobe. All rights reserved.
|
|
@@ -13,5 +13,5 @@ import {ContextualHelp as $9d9069cfc9959198$export$7d3cdb256c2ba320} from "./Con
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export {$
|
|
16
|
+
export {$5993aa6116b190af$re_export$ContextualHelp as ContextualHelp};
|
|
17
17
|
//# sourceMappingURL=module.js.map
|
package/dist/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var $
|
|
1
|
+
var $7BRTS$adobereactspectrumContextualHelp = require("@adobe/react-spectrum/ContextualHelp");
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
function $parcel$export(e, n, v, s) {
|
|
5
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
$parcel$export(module.exports, "ContextualHelp", ()
|
|
8
|
+
$parcel$export(module.exports, "ContextualHelp", function () { return $7BRTS$adobereactspectrumContextualHelp.ContextualHelp; });
|
|
9
9
|
/*
|
|
10
10
|
* Copyright 2021 Adobe. All rights reserved.
|
|
11
11
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC","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 '
|
|
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 '@adobe/react-spectrum/ContextualHelp';\n\nexport type {SpectrumContextualHelpProps} from '@adobe/react-spectrum/ContextualHelp';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ContextualHelp as $
|
|
1
|
+
import {ContextualHelp as $5993aa6116b190af$re_export$ContextualHelp} from "@adobe/react-spectrum/ContextualHelp";
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright 2021 Adobe. All rights reserved.
|
|
@@ -13,5 +13,5 @@ import {ContextualHelp as $9d9069cfc9959198$export$7d3cdb256c2ba320} from "./Con
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
export {$
|
|
16
|
+
export {$5993aa6116b190af$re_export$ContextualHelp as ContextualHelp};
|
|
17
17
|
//# sourceMappingURL=module.js.map
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 '
|
|
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 '@adobe/react-spectrum/ContextualHelp';\n\nexport type {SpectrumContextualHelpProps} from '@adobe/react-spectrum/ContextualHelp';\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/contextualhelp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/module.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"./dist/types.d.ts",
|
|
12
|
-
"./
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
9
|
+
".": {
|
|
10
|
+
"source": "./src/index.ts",
|
|
11
|
+
"types": "./dist/types/src/index.d.ts",
|
|
12
|
+
"import": "./dist/import.mjs",
|
|
13
|
+
"require": "./dist/main.js"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
|
-
"types": "dist/types.d.ts",
|
|
17
|
+
"types": "dist/types/src/index.d.ts",
|
|
18
18
|
"source": "src/index.ts",
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
@@ -24,44 +24,26 @@
|
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
26
|
"targets": {
|
|
27
|
-
"
|
|
28
|
-
"includeNodeModules": [
|
|
29
|
-
"@adobe/spectrum-css-temp"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"module": {
|
|
33
|
-
"includeNodeModules": [
|
|
34
|
-
"@adobe/spectrum-css-temp"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
27
|
+
"types": false
|
|
37
28
|
},
|
|
38
29
|
"repository": {
|
|
39
30
|
"type": "git",
|
|
40
31
|
"url": "https://github.com/adobe/react-spectrum"
|
|
41
32
|
},
|
|
42
33
|
"dependencies": {
|
|
43
|
-
"@react-
|
|
44
|
-
"@react-aria/utils": "^3.33.1",
|
|
45
|
-
"@react-spectrum/button": "^3.17.7",
|
|
46
|
-
"@react-spectrum/dialog": "^3.9.7",
|
|
47
|
-
"@react-spectrum/utils": "^3.12.12",
|
|
48
|
-
"@react-types/contextualhelp": "^3.2.24",
|
|
49
|
-
"@react-types/shared": "^3.33.1",
|
|
50
|
-
"@spectrum-icons/workflow": "^4.2.28",
|
|
34
|
+
"@adobe/react-spectrum": "3.47.0",
|
|
51
35
|
"@swc/helpers": "^0.5.0"
|
|
52
36
|
},
|
|
53
37
|
"devDependencies": {
|
|
54
|
-
"@adobe/spectrum-css-temp": "3.0.0-alpha.1",
|
|
55
38
|
"@react-spectrum/link": "^3.2.0",
|
|
56
39
|
"@react-spectrum/view": "^3.1.3"
|
|
57
40
|
},
|
|
58
41
|
"peerDependencies": {
|
|
59
|
-
"@react-spectrum/provider": "^3.0.0",
|
|
60
42
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
61
43
|
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
62
44
|
},
|
|
63
45
|
"publishConfig": {
|
|
64
46
|
"access": "public"
|
|
65
47
|
},
|
|
66
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
|
|
67
49
|
}
|
package/src/index.ts
CHANGED
|
@@ -10,5 +10,6 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export {ContextualHelp} from '
|
|
14
|
-
|
|
13
|
+
export {ContextualHelp} from '@adobe/react-spectrum/ContextualHelp';
|
|
14
|
+
|
|
15
|
+
export type {SpectrumContextualHelpProps} from '@adobe/react-spectrum/ContextualHelp';
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
require("./contextualhelp.66c9400b.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
|
-
const $05e6407aa891f27c$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, ($parcel$interopDefault($i0m3o$react))).forwardRef(function 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
|
-
|
|
76
|
-
//# sourceMappingURL=ContextualHelp.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAmBM,MAAM,0DAAiB,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,eAAe,KAAkC,EAAE,GAAoC;IAC7I,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","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\n/**\n * Contextual help shows a user extra information about the state of an adjacent component, or a total view.\n */\nexport const ContextualHelp = React.forwardRef(function 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"],"names":[],"version":3,"file":"ContextualHelp.main.js.map"}
|
package/dist/ContextualHelp.mjs
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import "./contextualhelp.66c9400b.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
|
-
const $9d9069cfc9959198$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $eIPk4$react).forwardRef(function 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
|
-
|
|
70
|
-
export {$9d9069cfc9959198$export$7d3cdb256c2ba320 as ContextualHelp};
|
|
71
|
-
//# sourceMappingURL=ContextualHelp.module.js.map
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import "./contextualhelp.66c9400b.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
|
-
const $9d9069cfc9959198$export$7d3cdb256c2ba320 = /*#__PURE__*/ (0, $eIPk4$react).forwardRef(function 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
|
-
|
|
70
|
-
export {$9d9069cfc9959198$export$7d3cdb256c2ba320 as ContextualHelp};
|
|
71
|
-
//# sourceMappingURL=ContextualHelp.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAmBM,MAAM,0DAAiB,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,eAAe,KAAkC,EAAE,GAAoC;IAC7I,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","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\n/**\n * Contextual help shows a user extra information about the state of an adjacent component, or a total view.\n */\nexport const ContextualHelp = React.forwardRef(function 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"],"names":[],"version":3,"file":"ContextualHelp.module.js.map"}
|
package/dist/ar-AE.main.js
DELETED
package/dist/ar-AE.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,0CAAM,CAAC;IAClC,QAAQ,CAAC,iDAAO,CAAC;AACnB","sources":["packages/@react-spectrum/contextualhelp/intl/ar-AE.json"],"sourcesContent":["{\n \"help\": \"مساعدة\",\n \"info\": \"معلومات\"\n}\n"],"names":[],"version":3,"file":"ar-AE.main.js.map"}
|
package/dist/ar-AE.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var $9cc8b85ee8327c05$exports = {};
|
|
2
|
-
$9cc8b85ee8327c05$exports = {
|
|
3
|
-
"help": `\u{645}\u{633}\u{627}\u{639}\u{62F}\u{629}`,
|
|
4
|
-
"info": `\u{645}\u{639}\u{644}\u{648}\u{645}\u{627}\u{62A}`
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {$9cc8b85ee8327c05$exports as default};
|
|
9
|
-
//# sourceMappingURL=ar-AE.module.js.map
|
package/dist/ar-AE.module.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var $9cc8b85ee8327c05$exports = {};
|
|
2
|
-
$9cc8b85ee8327c05$exports = {
|
|
3
|
-
"help": `\u{645}\u{633}\u{627}\u{639}\u{62F}\u{629}`,
|
|
4
|
-
"info": `\u{645}\u{639}\u{644}\u{648}\u{645}\u{627}\u{62A}`
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {$9cc8b85ee8327c05$exports as default};
|
|
9
|
-
//# sourceMappingURL=ar-AE.module.js.map
|
package/dist/ar-AE.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,QAAQ,CAAC,0CAAM,CAAC;IAClC,QAAQ,CAAC,iDAAO,CAAC;AACnB","sources":["packages/@react-spectrum/contextualhelp/intl/ar-AE.json"],"sourcesContent":["{\n \"help\": \"مساعدة\",\n \"info\": \"معلومات\"\n}\n"],"names":[],"version":3,"file":"ar-AE.module.js.map"}
|
package/dist/bg-BG.main.js
DELETED
package/dist/bg-BG.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,mCAAK,CAAC;IACjC,QAAQ,CAAC,sEAAU,CAAC;AACtB","sources":["packages/@react-spectrum/contextualhelp/intl/bg-BG.json"],"sourcesContent":["{\n \"help\": \"Помощ\",\n \"info\": \"Информация\"\n}\n"],"names":[],"version":3,"file":"bg-BG.main.js.map"}
|
package/dist/bg-BG.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var $56f7d9be41e5dc75$exports = {};
|
|
2
|
-
$56f7d9be41e5dc75$exports = {
|
|
3
|
-
"help": `\u{41F}\u{43E}\u{43C}\u{43E}\u{449}`,
|
|
4
|
-
"info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {$56f7d9be41e5dc75$exports as default};
|
|
9
|
-
//# sourceMappingURL=bg-BG.module.js.map
|
package/dist/bg-BG.module.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var $56f7d9be41e5dc75$exports = {};
|
|
2
|
-
$56f7d9be41e5dc75$exports = {
|
|
3
|
-
"help": `\u{41F}\u{43E}\u{43C}\u{43E}\u{449}`,
|
|
4
|
-
"info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {$56f7d9be41e5dc75$exports as default};
|
|
9
|
-
//# sourceMappingURL=bg-BG.module.js.map
|
package/dist/bg-BG.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";AAAA,4BAAiB;IAAG,QAAQ,CAAC,mCAAK,CAAC;IACjC,QAAQ,CAAC,sEAAU,CAAC;AACtB","sources":["packages/@react-spectrum/contextualhelp/intl/bg-BG.json"],"sourcesContent":["{\n \"help\": \"Помощ\",\n \"info\": \"Информация\"\n}\n"],"names":[],"version":3,"file":"bg-BG.module.js.map"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
.qJz8_W_react-spectrum-ContextualHelp-button {
|
|
2
|
-
--spectrum-button-primary-height: var(--spectrum-global-dimension-size-250);
|
|
3
|
-
--spectrum-actionbutton-height: var(--spectrum-global-dimension-size-250);
|
|
4
|
-
--spectrum-actionbutton-min-width: var(--spectrum-global-dimension-size-250);
|
|
5
|
-
--spectrum-actionbutton-icon-padding-x: var(--spectrum-global-dimension-size-40);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.qJz8_W_react-spectrum-ContextualHelp-button svg {
|
|
9
|
-
block-size: var(--spectrum-global-dimension-size-175);
|
|
10
|
-
inline-size: var(--spectrum-global-dimension-size-175);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.qJz8_W_react-spectrum-ContextualHelp-dialog.qJz8_W_react-spectrum-ContextualHelp-dialog {
|
|
14
|
-
--spectrum-dialog-padding-x: var(--spectrum-global-dimension-static-size-300, 24px);
|
|
15
|
-
--spectrum-dialog-padding-y: var(--spectrum-global-dimension-static-size-300, 24px);
|
|
16
|
-
width: 250px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.qJz8_W_react-spectrum-ContextualHelp-dialog.qJz8_W_react-spectrum-ContextualHelp-dialog.qJz8_W_react-spectrum-ContextualHelp-dialog--isMobile {
|
|
20
|
-
width: 100%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.qJz8_W_react-spectrum-ContextualHelp-dialog.qJz8_W_react-spectrum-ContextualHelp-dialog .qJz8_W_react-spectrum-ContextualHelp-content {
|
|
24
|
-
margin-top: var(--spectrum-global-dimension-static-size-100, 8px);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.qJz8_W_react-spectrum-ContextualHelp-dialog.qJz8_W_react-spectrum-ContextualHelp-dialog .qJz8_W_react-spectrum-ContextualHelp-footer {
|
|
28
|
-
padding-top: var(--spectrum-global-dimension-static-size-100, 8px);
|
|
29
|
-
}
|
|
30
|
-
/*# sourceMappingURL=contextualhelp.66c9400b.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
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":"contextualhelp.66c9400b.css.map"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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 = `qJz8_W_react-spectrum-ContextualHelp-button`;
|
|
17
|
-
$a10e565ec42bcf96$export$a1f805890cf58c4 = `qJz8_W_react-spectrum-ContextualHelp-content`;
|
|
18
|
-
$a10e565ec42bcf96$export$ab2d873674d20d28 = `qJz8_W_react-spectrum-ContextualHelp-dialog`;
|
|
19
|
-
$a10e565ec42bcf96$export$a438776606a9a3cc = `qJz8_W_react-spectrum-ContextualHelp-dialog--isMobile`;
|
|
20
|
-
$a10e565ec42bcf96$export$d901bc3fa82b87a6 = `qJz8_W_react-spectrum-ContextualHelp-footer`;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=contextualhelp_vars_css.main.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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 = `qJz8_W_react-spectrum-ContextualHelp-button`;
|
|
18
|
-
$c487b1d738ebeac2$export$a1f805890cf58c4 = `qJz8_W_react-spectrum-ContextualHelp-content`;
|
|
19
|
-
$c487b1d738ebeac2$export$ab2d873674d20d28 = `qJz8_W_react-spectrum-ContextualHelp-dialog`;
|
|
20
|
-
$c487b1d738ebeac2$export$a438776606a9a3cc = `qJz8_W_react-spectrum-ContextualHelp-dialog--isMobile`;
|
|
21
|
-
$c487b1d738ebeac2$export$d901bc3fa82b87a6 = `qJz8_W_react-spectrum-ContextualHelp-footer`;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export {$c487b1d738ebeac2$exports as default};
|
|
25
|
-
//# sourceMappingURL=contextualhelp_vars_css.module.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
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 = `qJz8_W_react-spectrum-ContextualHelp-button`;
|
|
18
|
-
$c487b1d738ebeac2$export$a1f805890cf58c4 = `qJz8_W_react-spectrum-ContextualHelp-content`;
|
|
19
|
-
$c487b1d738ebeac2$export$ab2d873674d20d28 = `qJz8_W_react-spectrum-ContextualHelp-dialog`;
|
|
20
|
-
$c487b1d738ebeac2$export$a438776606a9a3cc = `qJz8_W_react-spectrum-ContextualHelp-dialog--isMobile`;
|
|
21
|
-
$c487b1d738ebeac2$export$d901bc3fa82b87a6 = `qJz8_W_react-spectrum-ContextualHelp-footer`;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export {$c487b1d738ebeac2$exports as default};
|
|
25
|
-
//# sourceMappingURL=contextualhelp_vars_css.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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.main.js
DELETED
package/dist/cs-CZ.main.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,iBAAQ,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC;AACrB","sources":["packages/@react-spectrum/contextualhelp/intl/cs-CZ.json"],"sourcesContent":["{\n \"help\": \"Nápověda\",\n \"info\": \"Informace\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.main.js.map"}
|