@react-spectrum/tooltip 3.6.4 → 3.6.6
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/Tooltip.main.js +81 -0
- package/dist/Tooltip.main.js.map +1 -0
- package/dist/Tooltip.mjs +76 -0
- package/dist/Tooltip.module.js +76 -0
- package/dist/Tooltip.module.js.map +1 -0
- package/dist/TooltipTrigger.main.js +122 -0
- package/dist/TooltipTrigger.main.js.map +1 -0
- package/dist/TooltipTrigger.mjs +113 -0
- package/dist/TooltipTrigger.module.js +113 -0
- package/dist/TooltipTrigger.module.js.map +1 -0
- package/dist/context.main.js +27 -0
- package/dist/context.main.js.map +1 -0
- package/dist/context.mjs +18 -0
- package/dist/context.module.js +18 -0
- package/dist/context.module.js.map +1 -0
- package/dist/import.mjs +2 -294
- package/dist/main.js +4 -292
- package/dist/main.js.map +1 -1
- package/dist/module.js +2 -294
- package/dist/module.js.map +1 -1
- package/dist/tooltip_vars_css.main.js +107 -0
- package/dist/tooltip_vars_css.main.js.map +1 -0
- package/dist/tooltip_vars_css.mjs +109 -0
- package/dist/tooltip_vars_css.module.js +109 -0
- package/dist/tooltip_vars_css.module.js.map +1 -0
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/vars.80858477.css +321 -0
- package/dist/vars.80858477.css.map +1 -0
- package/package.json +13 -13
- package/dist/main.css +0 -1
@@ -0,0 +1,27 @@
|
|
1
|
+
var $aZ3Gf$react = require("react");
|
2
|
+
|
3
|
+
|
4
|
+
function $parcel$interopDefault(a) {
|
5
|
+
return a && a.__esModule ? a.default : a;
|
6
|
+
}
|
7
|
+
|
8
|
+
function $parcel$export(e, n, v, s) {
|
9
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
10
|
+
}
|
11
|
+
|
12
|
+
$parcel$export(module.exports, "TooltipContext", () => $ed2e56c8503433b4$export$39ae08fa83328b12);
|
13
|
+
/*
|
14
|
+
* Copyright 2020 Adobe. All rights reserved.
|
15
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
16
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
17
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
18
|
+
*
|
19
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
20
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
21
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
22
|
+
* governing permissions and limitations under the License.
|
23
|
+
*/
|
24
|
+
const $ed2e56c8503433b4$export$39ae08fa83328b12 = (0, ($parcel$interopDefault($aZ3Gf$react))).createContext({});
|
25
|
+
|
26
|
+
|
27
|
+
//# sourceMappingURL=context.main.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;AAeM,MAAM,4CAAiB,CAAA,GAAA,sCAAI,EAAE,aAAa,CAAsB,CAAC","sources":["packages/@react-spectrum/tooltip/src/context.ts"],"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\nimport {PlacementAxis} from '@react-types/overlays';\nimport React, {HTMLAttributes, RefObject} from 'react';\nimport {StyleProps} from '@react-types/shared';\nimport {TooltipTriggerState} from '@react-stately/tooltip';\n\ninterface TooltipContextProps extends StyleProps {\n state?: TooltipTriggerState,\n ref?: RefObject<HTMLDivElement>,\n placement?: PlacementAxis,\n arrowProps?: HTMLAttributes<HTMLElement>,\n arrowRef?: RefObject<HTMLElement>\n}\n\nexport const TooltipContext = React.createContext<TooltipContextProps>({});\n"],"names":[],"version":3,"file":"context.main.js.map"}
|
package/dist/context.mjs
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import $kNnxj$react from "react";
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Copyright 2020 Adobe. All rights reserved.
|
5
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
7
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
*
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
10
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
11
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
12
|
+
* governing permissions and limitations under the License.
|
13
|
+
*/
|
14
|
+
const $b8c00169fae46ac7$export$39ae08fa83328b12 = (0, $kNnxj$react).createContext({});
|
15
|
+
|
16
|
+
|
17
|
+
export {$b8c00169fae46ac7$export$39ae08fa83328b12 as TooltipContext};
|
18
|
+
//# sourceMappingURL=context.mjs.map
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import $kNnxj$react from "react";
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Copyright 2020 Adobe. All rights reserved.
|
5
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
7
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
*
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
10
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
11
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
12
|
+
* governing permissions and limitations under the License.
|
13
|
+
*/
|
14
|
+
const $b8c00169fae46ac7$export$39ae08fa83328b12 = (0, $kNnxj$react).createContext({});
|
15
|
+
|
16
|
+
|
17
|
+
export {$b8c00169fae46ac7$export$39ae08fa83328b12 as TooltipContext};
|
18
|
+
//# sourceMappingURL=context.module.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAeM,MAAM,4CAAiB,CAAA,GAAA,YAAI,EAAE,aAAa,CAAsB,CAAC","sources":["packages/@react-spectrum/tooltip/src/context.ts"],"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\nimport {PlacementAxis} from '@react-types/overlays';\nimport React, {HTMLAttributes, RefObject} from 'react';\nimport {StyleProps} from '@react-types/shared';\nimport {TooltipTriggerState} from '@react-stately/tooltip';\n\ninterface TooltipContextProps extends StyleProps {\n state?: TooltipTriggerState,\n ref?: RefObject<HTMLDivElement>,\n placement?: PlacementAxis,\n arrowProps?: HTMLAttributes<HTMLElement>,\n arrowRef?: RefObject<HTMLElement>\n}\n\nexport const TooltipContext = React.createContext<TooltipContextProps>({});\n"],"names":[],"version":3,"file":"context.module.js.map"}
|
package/dist/import.mjs
CHANGED
@@ -1,24 +1,6 @@
|
|
1
|
-
import "./
|
2
|
-
import $
|
3
|
-
import {useStyleProps as $lbkGW$useStyleProps, createDOMRef as $lbkGW$createDOMRef, classNames as $lbkGW$classNames} from "@react-spectrum/utils";
|
4
|
-
import $lbkGW$spectrumiconsuiInfoSmall from "@spectrum-icons/ui/InfoSmall";
|
5
|
-
import {mergeProps as $lbkGW$mergeProps, useLayoutEffect as $lbkGW$useLayoutEffect} from "@react-aria/utils";
|
6
|
-
import $lbkGW$react, {useContext as $lbkGW$useContext, useRef as $lbkGW$useRef, useImperativeHandle as $lbkGW$useImperativeHandle, useState as $lbkGW$useState} from "react";
|
7
|
-
import $lbkGW$spectrumiconsuiSuccessSmall from "@spectrum-icons/ui/SuccessSmall";
|
8
|
-
import {useTooltip as $lbkGW$useTooltip, useTooltipTrigger as $lbkGW$useTooltipTrigger} from "@react-aria/tooltip";
|
9
|
-
import {FocusableProvider as $lbkGW$FocusableProvider} from "@react-aria/focus";
|
10
|
-
import {Overlay as $lbkGW$Overlay} from "@react-spectrum/overlays";
|
11
|
-
import {useOverlayPosition as $lbkGW$useOverlayPosition} from "@react-aria/overlays";
|
12
|
-
import {useTooltipTriggerState as $lbkGW$useTooltipTriggerState} from "@react-stately/tooltip";
|
1
|
+
import {Tooltip as $dc9e2a6f9971fb04$export$28c660c63b792dea} from "./Tooltip.mjs";
|
2
|
+
import {TooltipTrigger as $019364e6919ef1db$export$8c610744efcf8a1d} from "./TooltipTrigger.mjs";
|
13
3
|
|
14
|
-
|
15
|
-
function $parcel$interopDefault(a) {
|
16
|
-
return a && a.__esModule ? a.default : a;
|
17
|
-
}
|
18
|
-
|
19
|
-
function $parcel$export(e, n, v, s) {
|
20
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
21
|
-
}
|
22
4
|
/*
|
23
5
|
* Copyright 2020 Adobe. All rights reserved.
|
24
6
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
@@ -30,280 +12,6 @@ function $parcel$export(e, n, v, s) {
|
|
30
12
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
31
13
|
* governing permissions and limitations under the License.
|
32
14
|
*/ /// <reference types="css-module-types" />
|
33
|
-
/*
|
34
|
-
* Copyright 2020 Adobe. All rights reserved.
|
35
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
36
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
37
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
38
|
-
*
|
39
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
40
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
41
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
42
|
-
* governing permissions and limitations under the License.
|
43
|
-
*/
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
var $1e9110aec8886b85$exports = {};
|
49
|
-
|
50
|
-
$parcel$export($1e9110aec8886b85$exports, "focus-ring", () => $1e9110aec8886b85$export$f39a09f249340e2a, (v) => $1e9110aec8886b85$export$f39a09f249340e2a = v);
|
51
|
-
$parcel$export($1e9110aec8886b85$exports, "i18nFontFamily", () => $1e9110aec8886b85$export$8c4ee2c50c22c514, (v) => $1e9110aec8886b85$export$8c4ee2c50c22c514 = v);
|
52
|
-
$parcel$export($1e9110aec8886b85$exports, "is-focused", () => $1e9110aec8886b85$export$e7dc768d35940237, (v) => $1e9110aec8886b85$export$e7dc768d35940237 = v);
|
53
|
-
$parcel$export($1e9110aec8886b85$exports, "is-hovered", () => $1e9110aec8886b85$export$b8813cd5d7824ce7, (v) => $1e9110aec8886b85$export$b8813cd5d7824ce7 = v);
|
54
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-overlay--open", () => $1e9110aec8886b85$export$a397eb58038aa381, (v) => $1e9110aec8886b85$export$a397eb58038aa381 = v);
|
55
|
-
$parcel$export($1e9110aec8886b85$exports, "is-open", () => $1e9110aec8886b85$export$a9781837241c946d, (v) => $1e9110aec8886b85$export$a9781837241c946d = v);
|
56
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-overlay--bottom--open", () => $1e9110aec8886b85$export$a96755f239de61ee, (v) => $1e9110aec8886b85$export$a96755f239de61ee = v);
|
57
|
-
$parcel$export($1e9110aec8886b85$exports, "is-open--bottom", () => $1e9110aec8886b85$export$1f160596ffe52357, (v) => $1e9110aec8886b85$export$1f160596ffe52357 = v);
|
58
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-overlay--left--open", () => $1e9110aec8886b85$export$a85c0c6b6cf8598c, (v) => $1e9110aec8886b85$export$a85c0c6b6cf8598c = v);
|
59
|
-
$parcel$export($1e9110aec8886b85$exports, "is-open--left", () => $1e9110aec8886b85$export$d6106cb3acaf56ae, (v) => $1e9110aec8886b85$export$d6106cb3acaf56ae = v);
|
60
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-overlay--right--open", () => $1e9110aec8886b85$export$85aaa87e65e040bf, (v) => $1e9110aec8886b85$export$85aaa87e65e040bf = v);
|
61
|
-
$parcel$export($1e9110aec8886b85$exports, "is-open--right", () => $1e9110aec8886b85$export$8935d072812c3169, (v) => $1e9110aec8886b85$export$8935d072812c3169 = v);
|
62
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-overlay--top--open", () => $1e9110aec8886b85$export$b9768db7ffc1bc2, (v) => $1e9110aec8886b85$export$b9768db7ffc1bc2 = v);
|
63
|
-
$parcel$export($1e9110aec8886b85$exports, "is-open--top", () => $1e9110aec8886b85$export$cd4bf1e07ae86214, (v) => $1e9110aec8886b85$export$cd4bf1e07ae86214 = v);
|
64
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-FocusRing-ring", () => $1e9110aec8886b85$export$4109102f950813a6, (v) => $1e9110aec8886b85$export$4109102f950813a6 = v);
|
65
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-FocusRing", () => $1e9110aec8886b85$export$24c7f46a6e3605dd, (v) => $1e9110aec8886b85$export$24c7f46a6e3605dd = v);
|
66
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-FocusRing--quiet", () => $1e9110aec8886b85$export$2927016961429360, (v) => $1e9110aec8886b85$export$2927016961429360 = v);
|
67
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-overlay", () => $1e9110aec8886b85$export$39eed38e2296a1d6, (v) => $1e9110aec8886b85$export$39eed38e2296a1d6 = v);
|
68
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip", () => $1e9110aec8886b85$export$f7bf7078d3d03f05, (v) => $1e9110aec8886b85$export$f7bf7078d3d03f05 = v);
|
69
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--bottom", () => $1e9110aec8886b85$export$4f420a9bbb442953, (v) => $1e9110aec8886b85$export$4f420a9bbb442953 = v);
|
70
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--error", () => $1e9110aec8886b85$export$2b291890a5577893, (v) => $1e9110aec8886b85$export$2b291890a5577893 = v);
|
71
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--help", () => $1e9110aec8886b85$export$d33ca445ae528241, (v) => $1e9110aec8886b85$export$d33ca445ae528241 = v);
|
72
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--info", () => $1e9110aec8886b85$export$e995d5780591d0a8, (v) => $1e9110aec8886b85$export$e995d5780591d0a8 = v);
|
73
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--left", () => $1e9110aec8886b85$export$47f060b68b4cab2c, (v) => $1e9110aec8886b85$export$47f060b68b4cab2c = v);
|
74
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--negative", () => $1e9110aec8886b85$export$92fe45b4260594f6, (v) => $1e9110aec8886b85$export$92fe45b4260594f6 = v);
|
75
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--positive", () => $1e9110aec8886b85$export$11cbf31e1b6e51ac, (v) => $1e9110aec8886b85$export$11cbf31e1b6e51ac = v);
|
76
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--right", () => $1e9110aec8886b85$export$c094187772823b2e, (v) => $1e9110aec8886b85$export$c094187772823b2e = v);
|
77
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--success", () => $1e9110aec8886b85$export$4eae622bc9b08cac, (v) => $1e9110aec8886b85$export$4eae622bc9b08cac = v);
|
78
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip--top", () => $1e9110aec8886b85$export$d7516df59e198fc7, (v) => $1e9110aec8886b85$export$d7516df59e198fc7 = v);
|
79
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip-label", () => $1e9110aec8886b85$export$f4096e0dc445b255, (v) => $1e9110aec8886b85$export$f4096e0dc445b255 = v);
|
80
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip-tip", () => $1e9110aec8886b85$export$9deb89a7a91de30, (v) => $1e9110aec8886b85$export$9deb89a7a91de30 = v);
|
81
|
-
$parcel$export($1e9110aec8886b85$exports, "spectrum-Tooltip-typeIcon", () => $1e9110aec8886b85$export$ff23d46fee8272e4, (v) => $1e9110aec8886b85$export$ff23d46fee8272e4 = v);
|
82
|
-
$parcel$export($1e9110aec8886b85$exports, "u-tooltip-showOnHover", () => $1e9110aec8886b85$export$6ea3237f62800d00, (v) => $1e9110aec8886b85$export$6ea3237f62800d00 = v);
|
83
|
-
var $1e9110aec8886b85$export$f39a09f249340e2a;
|
84
|
-
var $1e9110aec8886b85$export$8c4ee2c50c22c514;
|
85
|
-
var $1e9110aec8886b85$export$e7dc768d35940237;
|
86
|
-
var $1e9110aec8886b85$export$b8813cd5d7824ce7;
|
87
|
-
var $1e9110aec8886b85$export$a397eb58038aa381;
|
88
|
-
var $1e9110aec8886b85$export$a9781837241c946d;
|
89
|
-
var $1e9110aec8886b85$export$a96755f239de61ee;
|
90
|
-
var $1e9110aec8886b85$export$1f160596ffe52357;
|
91
|
-
var $1e9110aec8886b85$export$a85c0c6b6cf8598c;
|
92
|
-
var $1e9110aec8886b85$export$d6106cb3acaf56ae;
|
93
|
-
var $1e9110aec8886b85$export$85aaa87e65e040bf;
|
94
|
-
var $1e9110aec8886b85$export$8935d072812c3169;
|
95
|
-
var $1e9110aec8886b85$export$b9768db7ffc1bc2;
|
96
|
-
var $1e9110aec8886b85$export$cd4bf1e07ae86214;
|
97
|
-
var $1e9110aec8886b85$export$4109102f950813a6;
|
98
|
-
var $1e9110aec8886b85$export$24c7f46a6e3605dd;
|
99
|
-
var $1e9110aec8886b85$export$2927016961429360;
|
100
|
-
var $1e9110aec8886b85$export$39eed38e2296a1d6;
|
101
|
-
var $1e9110aec8886b85$export$f7bf7078d3d03f05;
|
102
|
-
var $1e9110aec8886b85$export$4f420a9bbb442953;
|
103
|
-
var $1e9110aec8886b85$export$2b291890a5577893;
|
104
|
-
var $1e9110aec8886b85$export$d33ca445ae528241;
|
105
|
-
var $1e9110aec8886b85$export$e995d5780591d0a8;
|
106
|
-
var $1e9110aec8886b85$export$47f060b68b4cab2c;
|
107
|
-
var $1e9110aec8886b85$export$92fe45b4260594f6;
|
108
|
-
var $1e9110aec8886b85$export$11cbf31e1b6e51ac;
|
109
|
-
var $1e9110aec8886b85$export$c094187772823b2e;
|
110
|
-
var $1e9110aec8886b85$export$4eae622bc9b08cac;
|
111
|
-
var $1e9110aec8886b85$export$d7516df59e198fc7;
|
112
|
-
var $1e9110aec8886b85$export$f4096e0dc445b255;
|
113
|
-
var $1e9110aec8886b85$export$9deb89a7a91de30;
|
114
|
-
var $1e9110aec8886b85$export$ff23d46fee8272e4;
|
115
|
-
var $1e9110aec8886b85$export$6ea3237f62800d00;
|
116
|
-
$1e9110aec8886b85$export$f39a09f249340e2a = `KF3Kcq_focus-ring`;
|
117
|
-
$1e9110aec8886b85$export$8c4ee2c50c22c514 = `KF3Kcq_i18nFontFamily`;
|
118
|
-
$1e9110aec8886b85$export$e7dc768d35940237 = `KF3Kcq_is-focused`;
|
119
|
-
$1e9110aec8886b85$export$b8813cd5d7824ce7 = `KF3Kcq_is-hovered`;
|
120
|
-
$1e9110aec8886b85$export$a397eb58038aa381 = `KF3Kcq_spectrum-overlay--open`;
|
121
|
-
$1e9110aec8886b85$export$a9781837241c946d = `KF3Kcq_is-open ${$1e9110aec8886b85$export$a397eb58038aa381}`;
|
122
|
-
$1e9110aec8886b85$export$a96755f239de61ee = `KF3Kcq_spectrum-overlay--bottom--open`;
|
123
|
-
$1e9110aec8886b85$export$1f160596ffe52357 = `KF3Kcq_is-open--bottom ${$1e9110aec8886b85$export$a96755f239de61ee}`;
|
124
|
-
$1e9110aec8886b85$export$a85c0c6b6cf8598c = `KF3Kcq_spectrum-overlay--left--open`;
|
125
|
-
$1e9110aec8886b85$export$d6106cb3acaf56ae = `KF3Kcq_is-open--left ${$1e9110aec8886b85$export$a85c0c6b6cf8598c}`;
|
126
|
-
$1e9110aec8886b85$export$85aaa87e65e040bf = `KF3Kcq_spectrum-overlay--right--open`;
|
127
|
-
$1e9110aec8886b85$export$8935d072812c3169 = `KF3Kcq_is-open--right ${$1e9110aec8886b85$export$85aaa87e65e040bf}`;
|
128
|
-
$1e9110aec8886b85$export$b9768db7ffc1bc2 = `KF3Kcq_spectrum-overlay--top--open`;
|
129
|
-
$1e9110aec8886b85$export$cd4bf1e07ae86214 = `KF3Kcq_is-open--top ${$1e9110aec8886b85$export$b9768db7ffc1bc2}`;
|
130
|
-
$1e9110aec8886b85$export$4109102f950813a6 = `KF3Kcq_spectrum-FocusRing-ring`;
|
131
|
-
$1e9110aec8886b85$export$24c7f46a6e3605dd = `KF3Kcq_spectrum-FocusRing ${$1e9110aec8886b85$export$4109102f950813a6}`;
|
132
|
-
$1e9110aec8886b85$export$2927016961429360 = `KF3Kcq_spectrum-FocusRing--quiet`;
|
133
|
-
$1e9110aec8886b85$export$39eed38e2296a1d6 = `KF3Kcq_spectrum-overlay`;
|
134
|
-
$1e9110aec8886b85$export$f7bf7078d3d03f05 = `KF3Kcq_spectrum-Tooltip ${$1e9110aec8886b85$export$39eed38e2296a1d6}`;
|
135
|
-
$1e9110aec8886b85$export$4f420a9bbb442953 = `KF3Kcq_spectrum-Tooltip--bottom`;
|
136
|
-
$1e9110aec8886b85$export$2b291890a5577893 = `KF3Kcq_spectrum-Tooltip--error`;
|
137
|
-
$1e9110aec8886b85$export$d33ca445ae528241 = `KF3Kcq_spectrum-Tooltip--help`;
|
138
|
-
$1e9110aec8886b85$export$e995d5780591d0a8 = `KF3Kcq_spectrum-Tooltip--info`;
|
139
|
-
$1e9110aec8886b85$export$47f060b68b4cab2c = `KF3Kcq_spectrum-Tooltip--left`;
|
140
|
-
$1e9110aec8886b85$export$92fe45b4260594f6 = `KF3Kcq_spectrum-Tooltip--negative`;
|
141
|
-
$1e9110aec8886b85$export$11cbf31e1b6e51ac = `KF3Kcq_spectrum-Tooltip--positive`;
|
142
|
-
$1e9110aec8886b85$export$c094187772823b2e = `KF3Kcq_spectrum-Tooltip--right`;
|
143
|
-
$1e9110aec8886b85$export$4eae622bc9b08cac = `KF3Kcq_spectrum-Tooltip--success`;
|
144
|
-
$1e9110aec8886b85$export$d7516df59e198fc7 = `KF3Kcq_spectrum-Tooltip--top`;
|
145
|
-
$1e9110aec8886b85$export$f4096e0dc445b255 = `KF3Kcq_spectrum-Tooltip-label`;
|
146
|
-
$1e9110aec8886b85$export$9deb89a7a91de30 = `KF3Kcq_spectrum-Tooltip-tip`;
|
147
|
-
$1e9110aec8886b85$export$ff23d46fee8272e4 = `KF3Kcq_spectrum-Tooltip-typeIcon`;
|
148
|
-
$1e9110aec8886b85$export$6ea3237f62800d00 = `KF3Kcq_u-tooltip-showOnHover`;
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
/*
|
153
|
-
* Copyright 2020 Adobe. All rights reserved.
|
154
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
155
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
156
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
157
|
-
*
|
158
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
159
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
160
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
161
|
-
* governing permissions and limitations under the License.
|
162
|
-
*/
|
163
|
-
const $b8c00169fae46ac7$export$39ae08fa83328b12 = (0, $lbkGW$react).createContext({});
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
let $dc9e2a6f9971fb04$var$iconMap = {
|
168
|
-
info: (0, $lbkGW$spectrumiconsuiInfoSmall),
|
169
|
-
positive: (0, $lbkGW$spectrumiconsuiSuccessSmall),
|
170
|
-
negative: (0, $lbkGW$spectrumiconsuiAlertSmall)
|
171
|
-
};
|
172
|
-
function $dc9e2a6f9971fb04$var$Tooltip(props, ref) {
|
173
|
-
let { ref: overlayRef, arrowProps: arrowProps, state: state, arrowRef: arrowRef, ...tooltipProviderProps } = (0, $lbkGW$useContext)((0, $b8c00169fae46ac7$export$39ae08fa83328b12));
|
174
|
-
let defaultRef = (0, $lbkGW$useRef)();
|
175
|
-
overlayRef = overlayRef || defaultRef;
|
176
|
-
props = (0, $lbkGW$mergeProps)(props, tooltipProviderProps);
|
177
|
-
let { variant: variant = "neutral", placement: placement = "top", isOpen: isOpen, showIcon: showIcon, ...otherProps } = props;
|
178
|
-
let { styleProps: styleProps } = (0, $lbkGW$useStyleProps)(otherProps);
|
179
|
-
let { tooltipProps: tooltipProps } = (0, $lbkGW$useTooltip)(props, state);
|
180
|
-
// Sync ref with overlayRef from context.
|
181
|
-
(0, $lbkGW$useImperativeHandle)(ref, ()=>(0, $lbkGW$createDOMRef)(overlayRef));
|
182
|
-
let Icon = $dc9e2a6f9971fb04$var$iconMap[variant];
|
183
|
-
return /*#__PURE__*/ (0, $lbkGW$react).createElement("div", {
|
184
|
-
...styleProps,
|
185
|
-
...tooltipProps,
|
186
|
-
className: (0, $lbkGW$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($1e9110aec8886b85$exports))), "spectrum-Tooltip", `spectrum-Tooltip--${variant}`, `spectrum-Tooltip--${placement}`, {
|
187
|
-
"is-open": isOpen,
|
188
|
-
[`is-open--${placement}`]: isOpen
|
189
|
-
}, styleProps.className),
|
190
|
-
ref: overlayRef
|
191
|
-
}, showIcon && variant !== "neutral" && /*#__PURE__*/ (0, $lbkGW$react).createElement(Icon, {
|
192
|
-
UNSAFE_className: (0, $lbkGW$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($1e9110aec8886b85$exports))), "spectrum-Tooltip-typeIcon"),
|
193
|
-
"aria-hidden": true
|
194
|
-
}), props.children && /*#__PURE__*/ (0, $lbkGW$react).createElement("span", {
|
195
|
-
className: (0, $lbkGW$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($1e9110aec8886b85$exports))), "spectrum-Tooltip-label")
|
196
|
-
}, props.children), /*#__PURE__*/ (0, $lbkGW$react).createElement("span", {
|
197
|
-
...arrowProps,
|
198
|
-
ref: arrowRef,
|
199
|
-
className: (0, $lbkGW$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($1e9110aec8886b85$exports))), "spectrum-Tooltip-tip")
|
200
|
-
}));
|
201
|
-
}
|
202
|
-
/**
|
203
|
-
* Display container for Tooltip content. Has a directional arrow dependent on its placement.
|
204
|
-
*/ let $dc9e2a6f9971fb04$export$28c660c63b792dea = /*#__PURE__*/ (0, $lbkGW$react).forwardRef($dc9e2a6f9971fb04$var$Tooltip);
|
205
|
-
|
206
|
-
|
207
|
-
/*
|
208
|
-
* Copyright 2020 Adobe. All rights reserved.
|
209
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
210
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
211
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
212
|
-
*
|
213
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
214
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
215
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
216
|
-
* governing permissions and limitations under the License.
|
217
|
-
*/
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
const $019364e6919ef1db$var$DEFAULT_OFFSET = -1; // Offset needed to reach 4px/5px (med/large) distance between tooltip and trigger button
|
226
|
-
const $019364e6919ef1db$var$DEFAULT_CROSS_OFFSET = 0;
|
227
|
-
function $019364e6919ef1db$var$TooltipTrigger(props) {
|
228
|
-
let { children: children, crossOffset: crossOffset = $019364e6919ef1db$var$DEFAULT_CROSS_OFFSET, isDisabled: isDisabled, offset: offset = $019364e6919ef1db$var$DEFAULT_OFFSET, trigger: triggerAction } = props;
|
229
|
-
let [trigger, tooltip] = (0, $lbkGW$react).Children.toArray(children);
|
230
|
-
let state = (0, $lbkGW$useTooltipTriggerState)(props);
|
231
|
-
let tooltipTriggerRef = (0, $lbkGW$useRef)();
|
232
|
-
let overlayRef = (0, $lbkGW$useRef)();
|
233
|
-
let { triggerProps: triggerProps, tooltipProps: tooltipProps } = (0, $lbkGW$useTooltipTrigger)({
|
234
|
-
isDisabled: isDisabled,
|
235
|
-
trigger: triggerAction
|
236
|
-
}, state, tooltipTriggerRef);
|
237
|
-
let [borderRadius, setBorderRadius] = (0, $lbkGW$useState)(0);
|
238
|
-
(0, $lbkGW$useLayoutEffect)(()=>{
|
239
|
-
if (overlayRef.current && state.isOpen) {
|
240
|
-
let spectrumBorderRadius = window.getComputedStyle(overlayRef.current).borderRadius;
|
241
|
-
if (spectrumBorderRadius !== "") setBorderRadius(parseInt(spectrumBorderRadius, 10));
|
242
|
-
}
|
243
|
-
}, [
|
244
|
-
state.isOpen,
|
245
|
-
overlayRef
|
246
|
-
]);
|
247
|
-
let arrowRef = (0, $lbkGW$useRef)(null);
|
248
|
-
let [arrowWidth, setArrowWidth] = (0, $lbkGW$useState)(0);
|
249
|
-
(0, $lbkGW$useLayoutEffect)(()=>{
|
250
|
-
if (arrowRef.current && state.isOpen) setArrowWidth(arrowRef.current.getBoundingClientRect().width);
|
251
|
-
}, [
|
252
|
-
state.isOpen,
|
253
|
-
arrowRef
|
254
|
-
]);
|
255
|
-
let { overlayProps: overlayProps, arrowProps: arrowProps, placement: placement } = (0, $lbkGW$useOverlayPosition)({
|
256
|
-
placement: props.placement || "top",
|
257
|
-
targetRef: tooltipTriggerRef,
|
258
|
-
overlayRef: overlayRef,
|
259
|
-
offset: offset,
|
260
|
-
crossOffset: crossOffset,
|
261
|
-
isOpen: state.isOpen,
|
262
|
-
shouldFlip: props.shouldFlip,
|
263
|
-
containerPadding: props.containerPadding,
|
264
|
-
arrowSize: arrowWidth,
|
265
|
-
arrowBoundaryOffset: borderRadius
|
266
|
-
});
|
267
|
-
return /*#__PURE__*/ (0, $lbkGW$react).createElement((0, $lbkGW$FocusableProvider), {
|
268
|
-
...triggerProps,
|
269
|
-
ref: tooltipTriggerRef
|
270
|
-
}, trigger, /*#__PURE__*/ (0, $lbkGW$react).createElement((0, $b8c00169fae46ac7$export$39ae08fa83328b12).Provider, {
|
271
|
-
value: {
|
272
|
-
state: state,
|
273
|
-
placement: placement,
|
274
|
-
ref: overlayRef,
|
275
|
-
UNSAFE_style: overlayProps.style,
|
276
|
-
arrowProps: arrowProps,
|
277
|
-
arrowRef: arrowRef,
|
278
|
-
...tooltipProps
|
279
|
-
}
|
280
|
-
}, /*#__PURE__*/ (0, $lbkGW$react).createElement((0, $lbkGW$Overlay), {
|
281
|
-
isOpen: state.isOpen,
|
282
|
-
nodeRef: overlayRef
|
283
|
-
}, tooltip)));
|
284
|
-
}
|
285
|
-
// Support TooltipTrigger inside components using CollectionBuilder.
|
286
|
-
$019364e6919ef1db$var$TooltipTrigger.getCollectionNode = function*(props) {
|
287
|
-
// Replaced the use of React.Childern.toArray because it mutates the key prop.
|
288
|
-
let childArray = [];
|
289
|
-
(0, $lbkGW$react).Children.forEach(props.children, (child)=>{
|
290
|
-
if (/*#__PURE__*/ (0, $lbkGW$react).isValidElement(child)) childArray.push(child);
|
291
|
-
});
|
292
|
-
let [trigger, tooltip] = childArray;
|
293
|
-
yield {
|
294
|
-
element: trigger,
|
295
|
-
wrapper: (element)=>/*#__PURE__*/ (0, $lbkGW$react).createElement($019364e6919ef1db$var$TooltipTrigger, {
|
296
|
-
key: element.key,
|
297
|
-
...props
|
298
|
-
}, element, tooltip)
|
299
|
-
};
|
300
|
-
};
|
301
|
-
/**
|
302
|
-
* TooltipTrigger wraps around a trigger element and a Tooltip. It handles opening and closing
|
303
|
-
* the Tooltip when the user hovers over or focuses the trigger, and positioning the Tooltip
|
304
|
-
* relative to the trigger.
|
305
|
-
*/ // We don't want getCollectionNode to show up in the type definition
|
306
|
-
let $019364e6919ef1db$export$8c610744efcf8a1d = $019364e6919ef1db$var$TooltipTrigger;
|
307
15
|
|
308
16
|
|
309
17
|
|