@react-spectrum/tooltip 3.6.9 → 3.6.10
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 +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/Tooltip.module.js +1 -1
- package/dist/TooltipTrigger.main.js +2 -1
- package/dist/TooltipTrigger.main.js.map +1 -1
- package/dist/TooltipTrigger.mjs +2 -1
- package/dist/TooltipTrigger.module.js +2 -1
- package/dist/TooltipTrigger.module.js.map +1 -1
- package/dist/tooltip_vars_css.main.js +33 -33
- package/dist/tooltip_vars_css.mjs +33 -33
- package/dist/tooltip_vars_css.module.js +33 -33
- package/dist/types.d.ts.map +1 -1
- package/dist/{vars.80858477.css → vars.e2a76556.css} +62 -62
- package/dist/{vars.80858477.css.map → vars.e2a76556.css.map} +1 -1
- package/package.json +14 -15
- package/src/TooltipTrigger.tsx +2 -1
- package/LICENSE +0 -201
package/dist/Tooltip.main.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require("./vars.
|
1
|
+
require("./vars.e2a76556.css");
|
2
2
|
var $ba73465d6d9b6556$exports = require("./tooltip_vars_css.main.js");
|
3
3
|
var $ed2e56c8503433b4$exports = require("./context.main.js");
|
4
4
|
var $l0Ry0$spectrumiconsuiAlertSmall = require("@spectrum-icons/ui/AlertSmall");
|
package/dist/Tooltip.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import "./vars.
|
1
|
+
import "./vars.e2a76556.css";
|
2
2
|
import $dcNtB$tooltip_vars_cssmodulejs from "./tooltip_vars_css.mjs";
|
3
3
|
import {TooltipContext as $b8c00169fae46ac7$export$39ae08fa83328b12} from "./context.mjs";
|
4
4
|
import $dcNtB$spectrumiconsuiAlertSmall from "@spectrum-icons/ui/AlertSmall";
|
package/dist/Tooltip.module.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import "./vars.
|
1
|
+
import "./vars.e2a76556.css";
|
2
2
|
import $dcNtB$tooltip_vars_cssmodulejs from "./tooltip_vars_css.module.js";
|
3
3
|
import {TooltipContext as $b8c00169fae46ac7$export$39ae08fa83328b12} from "./context.module.js";
|
4
4
|
import $dcNtB$spectrumiconsuiAlertSmall from "@spectrum-icons/ui/AlertSmall";
|
@@ -75,7 +75,8 @@ function $19f06480c1c1a932$var$TooltipTrigger(props) {
|
|
75
75
|
shouldFlip: props.shouldFlip,
|
76
76
|
containerPadding: props.containerPadding,
|
77
77
|
arrowSize: arrowWidth,
|
78
|
-
arrowBoundaryOffset: borderRadius
|
78
|
+
arrowBoundaryOffset: borderRadius,
|
79
|
+
onClose: ()=>state.close(true)
|
79
80
|
});
|
80
81
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($1fBML$react))).createElement((0, $1fBML$reactariafocus.FocusableProvider), {
|
81
82
|
...triggerProps,
|
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AAYD,MAAM,uCAAiB,IAAI,yFAAyF;AACpH,MAAM,6CAAuB;AAE7B,SAAS,qCAAe,KAAkC;IACxD,IAAI,YACF,QAAQ,eACR,cAAc,wDACd,UAAU,UACV,SAAS,sCACT,SAAS,aAAa,EACvB,GAAG;IAEJ,IAAI,CAAC,SAAS,QAAQ,GAAG,CAAA,GAAA,sCAAI,EAAE,QAAQ,CAAC,OAAO,CAAC;IAChD,IAAI,QAAQ,CAAA,GAAA,iDAAqB,EAAE;IAEnC,IAAI,oBAAoB,CAAA,GAAA,mBAAK,EAAe;IAC5C,IAAI,aAAa,CAAA,GAAA,mBAAK,EAAkB;IAExC,IAAI,gBAAC,YAAY,gBAAE,YAAY,EAAC,GAAG,CAAA,GAAA,yCAAgB,EAAE;oBACnD;QACA,SAAS;IACX,GAAG,OAAO;IAEV,IAAI,CAAC,cAAc,gBAAgB,GAAG,CAAA,GAAA,qBAAO,EAAE;IAC/C,CAAA,GAAA,qCAAc,EAAE;QAC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AM,MAAM;QAAE,SAAS;OACrC;AAKX;AAEA,oEAAoE;AACpE,qCAAe,iBAAiB,GAAG,UAAW,KAAkC;IAC9E,8EAA8E;IAC9E,IAAI,aAA6B,EAAE;IACnC,CAAA,GAAA,sCAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,CAAA;QACrC,kBAAI,CAAA,GAAA,sCAAI,EAAE,cAAc,CAAC,QACvB,WAAW,IAAI,CAAC;IAEpB;IACA,IAAI,CAAC,SAAS,QAAQ,GAAG;IACzB,MAAM;QACJ,SAAS;QACT,SAAS,CAAC,wBACR,0DAAC;gBAAe,KAAK,QAAQ,GAAG;gBAAG,GAAG,KAAK;eACxC,SACA;IAGP;AACF;AAEA;;;;CAIC,GACD,oEAAoE;AACpE,IAAI,4CAAkB","sources":["packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx"],"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 {FocusableProvider} from '@react-aria/focus';\nimport {Overlay} from '@react-spectrum/overlays';\nimport React, {JSX, ReactElement, useRef, useState} from 'react';\nimport {SpectrumTooltipTriggerProps} from '@react-types/tooltip';\nimport {TooltipContext} from './context';\nimport {useLayoutEffect} from '@react-aria/utils';\nimport {useOverlayPosition} from '@react-aria/overlays';\nimport {useTooltipTrigger} from '@react-aria/tooltip';\nimport {useTooltipTriggerState} from '@react-stately/tooltip';\n\nconst DEFAULT_OFFSET = -1; // Offset needed to reach 4px/5px (med/large) distance between tooltip and trigger button\nconst DEFAULT_CROSS_OFFSET = 0;\n\nfunction TooltipTrigger(props: SpectrumTooltipTriggerProps) {\n let {\n children,\n crossOffset = DEFAULT_CROSS_OFFSET,\n isDisabled,\n offset = DEFAULT_OFFSET,\n trigger: triggerAction\n } = props;\n\n let [trigger, tooltip] = React.Children.toArray(children) as [ReactElement, ReactElement];\n let state = useTooltipTriggerState(props);\n\n let tooltipTriggerRef = useRef<HTMLElement>(undefined);\n let overlayRef = useRef<HTMLDivElement>(undefined);\n\n let {triggerProps, tooltipProps} = useTooltipTrigger({\n isDisabled,\n trigger: triggerAction\n }, state, tooltipTriggerRef);\n\n let [borderRadius, setBorderRadius] = useState(0);\n useLayoutEffect(() => {\n if (overlayRef.current && state.isOpen) {\n let spectrumBorderRadius = window.getComputedStyle(overlayRef.current).borderRadius;\n if (spectrumBorderRadius !== '') {\n setBorderRadius(parseInt(spectrumBorderRadius, 10));\n }\n }\n }, [state.isOpen, overlayRef]);\n let arrowRef = useRef(null);\n let [arrowWidth, setArrowWidth] = useState(0);\n useLayoutEffect(() => {\n if (arrowRef.current && state.isOpen) {\n setArrowWidth(arrowRef.current.getBoundingClientRect().width);\n }\n }, [state.isOpen, arrowRef]);\n\n let {overlayProps, arrowProps, placement} = useOverlayPosition({\n placement: props.placement || 'top',\n targetRef: tooltipTriggerRef,\n overlayRef,\n offset,\n crossOffset,\n isOpen: state.isOpen,\n shouldFlip: props.shouldFlip,\n containerPadding: props.containerPadding,\n arrowSize: arrowWidth,\n arrowBoundaryOffset: borderRadius,\n onClose: () => state.close(true)\n });\n\n return (\n <FocusableProvider\n {...triggerProps}\n ref={tooltipTriggerRef}>\n {trigger}\n <TooltipContext.Provider\n value={{\n state,\n placement,\n ref: overlayRef,\n UNSAFE_style: overlayProps.style,\n arrowProps,\n arrowRef: arrowRef,\n ...tooltipProps\n }}>\n <Overlay isOpen={state.isOpen} nodeRef={overlayRef}>\n {tooltip}\n </Overlay>\n </TooltipContext.Provider>\n </FocusableProvider>\n );\n}\n\n// Support TooltipTrigger inside components using CollectionBuilder.\nTooltipTrigger.getCollectionNode = function* (props: SpectrumTooltipTriggerProps) {\n // Replaced the use of React.Children.toArray because it mutates the key prop.\n let childArray: ReactElement[] = [];\n React.Children.forEach(props.children, child => {\n if (React.isValidElement(child)) {\n childArray.push(child);\n }\n });\n let [trigger, tooltip] = childArray;\n yield {\n element: trigger,\n wrapper: (element) => (\n <TooltipTrigger key={element.key} {...props}>\n {element}\n {tooltip}\n </TooltipTrigger>\n )\n };\n};\n\n/**\n * TooltipTrigger wraps around a trigger element and a Tooltip. It handles opening and closing\n * the Tooltip when the user hovers over or focuses the trigger, and positioning the Tooltip\n * relative to the trigger.\n */\n// We don't want getCollectionNode to show up in the type definition\nlet _TooltipTrigger = TooltipTrigger as (props: SpectrumTooltipTriggerProps) => JSX.Element;\nexport {_TooltipTrigger as TooltipTrigger};\n"],"names":[],"version":3,"file":"TooltipTrigger.main.js.map"}
|
package/dist/TooltipTrigger.mjs
CHANGED
@@ -65,7 +65,8 @@ function $019364e6919ef1db$var$TooltipTrigger(props) {
|
|
65
65
|
shouldFlip: props.shouldFlip,
|
66
66
|
containerPadding: props.containerPadding,
|
67
67
|
arrowSize: arrowWidth,
|
68
|
-
arrowBoundaryOffset: borderRadius
|
68
|
+
arrowBoundaryOffset: borderRadius,
|
69
|
+
onClose: ()=>state.close(true)
|
69
70
|
});
|
70
71
|
return /*#__PURE__*/ (0, $cQFGy$react).createElement((0, $cQFGy$FocusableProvider), {
|
71
72
|
...triggerProps,
|
@@ -65,7 +65,8 @@ function $019364e6919ef1db$var$TooltipTrigger(props) {
|
|
65
65
|
shouldFlip: props.shouldFlip,
|
66
66
|
containerPadding: props.containerPadding,
|
67
67
|
arrowSize: arrowWidth,
|
68
|
-
arrowBoundaryOffset: borderRadius
|
68
|
+
arrowBoundaryOffset: borderRadius,
|
69
|
+
onClose: ()=>state.close(true)
|
69
70
|
});
|
70
71
|
return /*#__PURE__*/ (0, $cQFGy$react).createElement((0, $cQFGy$FocusableProvider), {
|
71
72
|
...triggerProps,
|
@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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 {FocusableProvider} from '@react-aria/focus';\nimport {Overlay} from '@react-spectrum/overlays';\nimport React, {JSX, ReactElement, useRef, useState} from 'react';\nimport {SpectrumTooltipTriggerProps} from '@react-types/tooltip';\nimport {TooltipContext} from './context';\nimport {useLayoutEffect} from '@react-aria/utils';\nimport {useOverlayPosition} from '@react-aria/overlays';\nimport {useTooltipTrigger} from '@react-aria/tooltip';\nimport {useTooltipTriggerState} from '@react-stately/tooltip';\n\nconst DEFAULT_OFFSET = -1; // Offset needed to reach 4px/5px (med/large) distance between tooltip and trigger button\nconst DEFAULT_CROSS_OFFSET = 0;\n\nfunction TooltipTrigger(props: SpectrumTooltipTriggerProps) {\n let {\n children,\n crossOffset = DEFAULT_CROSS_OFFSET,\n isDisabled,\n offset = DEFAULT_OFFSET,\n trigger: triggerAction\n } = props;\n\n let [trigger, tooltip] = React.Children.toArray(children) as [ReactElement, ReactElement];\n let state = useTooltipTriggerState(props);\n\n let tooltipTriggerRef = useRef<HTMLElement>(undefined);\n let overlayRef = useRef<HTMLDivElement>(undefined);\n\n let {triggerProps, tooltipProps} = useTooltipTrigger({\n isDisabled,\n trigger: triggerAction\n }, state, tooltipTriggerRef);\n\n let [borderRadius, setBorderRadius] = useState(0);\n useLayoutEffect(() => {\n if (overlayRef.current && state.isOpen) {\n let spectrumBorderRadius = window.getComputedStyle(overlayRef.current).borderRadius;\n if (spectrumBorderRadius !== '') {\n setBorderRadius(parseInt(spectrumBorderRadius, 10));\n }\n }\n }, [state.isOpen, overlayRef]);\n let arrowRef = useRef(null);\n let [arrowWidth, setArrowWidth] = useState(0);\n useLayoutEffect(() => {\n if (arrowRef.current && state.isOpen) {\n setArrowWidth(arrowRef.current.getBoundingClientRect().width);\n }\n }, [state.isOpen, arrowRef]);\n\n let {overlayProps, arrowProps, placement} = useOverlayPosition({\n placement: props.placement || 'top',\n targetRef: tooltipTriggerRef,\n overlayRef,\n offset,\n crossOffset,\n isOpen: state.isOpen,\n shouldFlip: props.shouldFlip,\n containerPadding: props.containerPadding,\n arrowSize: arrowWidth,\n arrowBoundaryOffset: borderRadius,\n onClose: () => state.close(true)\n });\n\n return (\n <FocusableProvider\n {...triggerProps}\n ref={tooltipTriggerRef}>\n {trigger}\n <TooltipContext.Provider\n value={{\n state,\n placement,\n ref: overlayRef,\n UNSAFE_style: overlayProps.style,\n arrowProps,\n arrowRef: arrowRef,\n ...tooltipProps\n }}>\n <Overlay isOpen={state.isOpen} nodeRef={overlayRef}>\n {tooltip}\n </Overlay>\n </TooltipContext.Provider>\n </FocusableProvider>\n );\n}\n\n// Support TooltipTrigger inside components using CollectionBuilder.\nTooltipTrigger.getCollectionNode = function* (props: SpectrumTooltipTriggerProps) {\n // Replaced the use of React.Children.toArray because it mutates the key prop.\n let childArray: ReactElement[] = [];\n React.Children.forEach(props.children, child => {\n if (React.isValidElement(child)) {\n childArray.push(child);\n }\n });\n let [trigger, tooltip] = childArray;\n yield {\n element: trigger,\n wrapper: (element) => (\n <TooltipTrigger key={element.key} {...props}>\n {element}\n {tooltip}\n </TooltipTrigger>\n )\n };\n};\n\n/**\n * TooltipTrigger wraps around a trigger element and a Tooltip. It handles opening and closing\n * the Tooltip when the user hovers over or focuses the trigger, and positioning the Tooltip\n * relative to the trigger.\n */\n// We don't want getCollectionNode to show up in the type definition\nlet _TooltipTrigger = TooltipTrigger as (props: SpectrumTooltipTriggerProps) => JSX.Element;\nexport {_TooltipTrigger as TooltipTrigger};\n"],"names":[],"version":3,"file":"TooltipTrigger.module.js.map"}
|
@@ -69,39 +69,39 @@ var $ba73465d6d9b6556$export$f4096e0dc445b255;
|
|
69
69
|
var $ba73465d6d9b6556$export$9deb89a7a91de30;
|
70
70
|
var $ba73465d6d9b6556$export$ff23d46fee8272e4;
|
71
71
|
var $ba73465d6d9b6556$export$6ea3237f62800d00;
|
72
|
-
$ba73465d6d9b6556$export$f39a09f249340e2a = `
|
73
|
-
$ba73465d6d9b6556$export$8c4ee2c50c22c514 = `
|
74
|
-
$ba73465d6d9b6556$export$e7dc768d35940237 = `
|
75
|
-
$ba73465d6d9b6556$export$b8813cd5d7824ce7 = `
|
76
|
-
$ba73465d6d9b6556$export$a397eb58038aa381 = `
|
77
|
-
$ba73465d6d9b6556$export$a9781837241c946d = `
|
78
|
-
$ba73465d6d9b6556$export$a96755f239de61ee = `
|
79
|
-
$ba73465d6d9b6556$export$1f160596ffe52357 = `
|
80
|
-
$ba73465d6d9b6556$export$a85c0c6b6cf8598c = `
|
81
|
-
$ba73465d6d9b6556$export$d6106cb3acaf56ae = `
|
82
|
-
$ba73465d6d9b6556$export$85aaa87e65e040bf = `
|
83
|
-
$ba73465d6d9b6556$export$8935d072812c3169 = `
|
84
|
-
$ba73465d6d9b6556$export$b9768db7ffc1bc2 = `
|
85
|
-
$ba73465d6d9b6556$export$cd4bf1e07ae86214 = `
|
86
|
-
$ba73465d6d9b6556$export$4109102f950813a6 = `
|
87
|
-
$ba73465d6d9b6556$export$24c7f46a6e3605dd = `
|
88
|
-
$ba73465d6d9b6556$export$2927016961429360 = `
|
89
|
-
$ba73465d6d9b6556$export$39eed38e2296a1d6 = `
|
90
|
-
$ba73465d6d9b6556$export$f7bf7078d3d03f05 = `
|
91
|
-
$ba73465d6d9b6556$export$4f420a9bbb442953 = `
|
92
|
-
$ba73465d6d9b6556$export$2b291890a5577893 = `
|
93
|
-
$ba73465d6d9b6556$export$d33ca445ae528241 = `
|
94
|
-
$ba73465d6d9b6556$export$e995d5780591d0a8 = `
|
95
|
-
$ba73465d6d9b6556$export$47f060b68b4cab2c = `
|
96
|
-
$ba73465d6d9b6556$export$92fe45b4260594f6 = `
|
97
|
-
$ba73465d6d9b6556$export$11cbf31e1b6e51ac = `
|
98
|
-
$ba73465d6d9b6556$export$c094187772823b2e = `
|
99
|
-
$ba73465d6d9b6556$export$4eae622bc9b08cac = `
|
100
|
-
$ba73465d6d9b6556$export$d7516df59e198fc7 = `
|
101
|
-
$ba73465d6d9b6556$export$f4096e0dc445b255 = `
|
102
|
-
$ba73465d6d9b6556$export$9deb89a7a91de30 = `
|
103
|
-
$ba73465d6d9b6556$export$ff23d46fee8272e4 = `
|
104
|
-
$ba73465d6d9b6556$export$6ea3237f62800d00 = `
|
72
|
+
$ba73465d6d9b6556$export$f39a09f249340e2a = `uv8yQW_focus-ring`;
|
73
|
+
$ba73465d6d9b6556$export$8c4ee2c50c22c514 = `uv8yQW_i18nFontFamily`;
|
74
|
+
$ba73465d6d9b6556$export$e7dc768d35940237 = `uv8yQW_is-focused`;
|
75
|
+
$ba73465d6d9b6556$export$b8813cd5d7824ce7 = `uv8yQW_is-hovered`;
|
76
|
+
$ba73465d6d9b6556$export$a397eb58038aa381 = `uv8yQW_spectrum-overlay--open`;
|
77
|
+
$ba73465d6d9b6556$export$a9781837241c946d = `uv8yQW_is-open ${$ba73465d6d9b6556$export$a397eb58038aa381}`;
|
78
|
+
$ba73465d6d9b6556$export$a96755f239de61ee = `uv8yQW_spectrum-overlay--bottom--open`;
|
79
|
+
$ba73465d6d9b6556$export$1f160596ffe52357 = `uv8yQW_is-open--bottom ${$ba73465d6d9b6556$export$a96755f239de61ee}`;
|
80
|
+
$ba73465d6d9b6556$export$a85c0c6b6cf8598c = `uv8yQW_spectrum-overlay--left--open`;
|
81
|
+
$ba73465d6d9b6556$export$d6106cb3acaf56ae = `uv8yQW_is-open--left ${$ba73465d6d9b6556$export$a85c0c6b6cf8598c}`;
|
82
|
+
$ba73465d6d9b6556$export$85aaa87e65e040bf = `uv8yQW_spectrum-overlay--right--open`;
|
83
|
+
$ba73465d6d9b6556$export$8935d072812c3169 = `uv8yQW_is-open--right ${$ba73465d6d9b6556$export$85aaa87e65e040bf}`;
|
84
|
+
$ba73465d6d9b6556$export$b9768db7ffc1bc2 = `uv8yQW_spectrum-overlay--top--open`;
|
85
|
+
$ba73465d6d9b6556$export$cd4bf1e07ae86214 = `uv8yQW_is-open--top ${$ba73465d6d9b6556$export$b9768db7ffc1bc2}`;
|
86
|
+
$ba73465d6d9b6556$export$4109102f950813a6 = `uv8yQW_spectrum-FocusRing-ring`;
|
87
|
+
$ba73465d6d9b6556$export$24c7f46a6e3605dd = `uv8yQW_spectrum-FocusRing ${$ba73465d6d9b6556$export$4109102f950813a6}`;
|
88
|
+
$ba73465d6d9b6556$export$2927016961429360 = `uv8yQW_spectrum-FocusRing--quiet`;
|
89
|
+
$ba73465d6d9b6556$export$39eed38e2296a1d6 = `uv8yQW_spectrum-overlay`;
|
90
|
+
$ba73465d6d9b6556$export$f7bf7078d3d03f05 = `uv8yQW_spectrum-Tooltip ${$ba73465d6d9b6556$export$39eed38e2296a1d6}`;
|
91
|
+
$ba73465d6d9b6556$export$4f420a9bbb442953 = `uv8yQW_spectrum-Tooltip--bottom`;
|
92
|
+
$ba73465d6d9b6556$export$2b291890a5577893 = `uv8yQW_spectrum-Tooltip--error`;
|
93
|
+
$ba73465d6d9b6556$export$d33ca445ae528241 = `uv8yQW_spectrum-Tooltip--help`;
|
94
|
+
$ba73465d6d9b6556$export$e995d5780591d0a8 = `uv8yQW_spectrum-Tooltip--info`;
|
95
|
+
$ba73465d6d9b6556$export$47f060b68b4cab2c = `uv8yQW_spectrum-Tooltip--left`;
|
96
|
+
$ba73465d6d9b6556$export$92fe45b4260594f6 = `uv8yQW_spectrum-Tooltip--negative`;
|
97
|
+
$ba73465d6d9b6556$export$11cbf31e1b6e51ac = `uv8yQW_spectrum-Tooltip--positive`;
|
98
|
+
$ba73465d6d9b6556$export$c094187772823b2e = `uv8yQW_spectrum-Tooltip--right`;
|
99
|
+
$ba73465d6d9b6556$export$4eae622bc9b08cac = `uv8yQW_spectrum-Tooltip--success`;
|
100
|
+
$ba73465d6d9b6556$export$d7516df59e198fc7 = `uv8yQW_spectrum-Tooltip--top`;
|
101
|
+
$ba73465d6d9b6556$export$f4096e0dc445b255 = `uv8yQW_spectrum-Tooltip-label`;
|
102
|
+
$ba73465d6d9b6556$export$9deb89a7a91de30 = `uv8yQW_spectrum-Tooltip-tip`;
|
103
|
+
$ba73465d6d9b6556$export$ff23d46fee8272e4 = `uv8yQW_spectrum-Tooltip-typeIcon`;
|
104
|
+
$ba73465d6d9b6556$export$6ea3237f62800d00 = `uv8yQW_u-tooltip-showOnHover`;
|
105
105
|
|
106
106
|
|
107
107
|
//# sourceMappingURL=tooltip_vars_css.main.js.map
|
@@ -70,39 +70,39 @@ var $1e9110aec8886b85$export$f4096e0dc445b255;
|
|
70
70
|
var $1e9110aec8886b85$export$9deb89a7a91de30;
|
71
71
|
var $1e9110aec8886b85$export$ff23d46fee8272e4;
|
72
72
|
var $1e9110aec8886b85$export$6ea3237f62800d00;
|
73
|
-
$1e9110aec8886b85$export$f39a09f249340e2a = `
|
74
|
-
$1e9110aec8886b85$export$8c4ee2c50c22c514 = `
|
75
|
-
$1e9110aec8886b85$export$e7dc768d35940237 = `
|
76
|
-
$1e9110aec8886b85$export$b8813cd5d7824ce7 = `
|
77
|
-
$1e9110aec8886b85$export$a397eb58038aa381 = `
|
78
|
-
$1e9110aec8886b85$export$a9781837241c946d = `
|
79
|
-
$1e9110aec8886b85$export$a96755f239de61ee = `
|
80
|
-
$1e9110aec8886b85$export$1f160596ffe52357 = `
|
81
|
-
$1e9110aec8886b85$export$a85c0c6b6cf8598c = `
|
82
|
-
$1e9110aec8886b85$export$d6106cb3acaf56ae = `
|
83
|
-
$1e9110aec8886b85$export$85aaa87e65e040bf = `
|
84
|
-
$1e9110aec8886b85$export$8935d072812c3169 = `
|
85
|
-
$1e9110aec8886b85$export$b9768db7ffc1bc2 = `
|
86
|
-
$1e9110aec8886b85$export$cd4bf1e07ae86214 = `
|
87
|
-
$1e9110aec8886b85$export$4109102f950813a6 = `
|
88
|
-
$1e9110aec8886b85$export$24c7f46a6e3605dd = `
|
89
|
-
$1e9110aec8886b85$export$2927016961429360 = `
|
90
|
-
$1e9110aec8886b85$export$39eed38e2296a1d6 = `
|
91
|
-
$1e9110aec8886b85$export$f7bf7078d3d03f05 = `
|
92
|
-
$1e9110aec8886b85$export$4f420a9bbb442953 = `
|
93
|
-
$1e9110aec8886b85$export$2b291890a5577893 = `
|
94
|
-
$1e9110aec8886b85$export$d33ca445ae528241 = `
|
95
|
-
$1e9110aec8886b85$export$e995d5780591d0a8 = `
|
96
|
-
$1e9110aec8886b85$export$47f060b68b4cab2c = `
|
97
|
-
$1e9110aec8886b85$export$92fe45b4260594f6 = `
|
98
|
-
$1e9110aec8886b85$export$11cbf31e1b6e51ac = `
|
99
|
-
$1e9110aec8886b85$export$c094187772823b2e = `
|
100
|
-
$1e9110aec8886b85$export$4eae622bc9b08cac = `
|
101
|
-
$1e9110aec8886b85$export$d7516df59e198fc7 = `
|
102
|
-
$1e9110aec8886b85$export$f4096e0dc445b255 = `
|
103
|
-
$1e9110aec8886b85$export$9deb89a7a91de30 = `
|
104
|
-
$1e9110aec8886b85$export$ff23d46fee8272e4 = `
|
105
|
-
$1e9110aec8886b85$export$6ea3237f62800d00 = `
|
73
|
+
$1e9110aec8886b85$export$f39a09f249340e2a = `uv8yQW_focus-ring`;
|
74
|
+
$1e9110aec8886b85$export$8c4ee2c50c22c514 = `uv8yQW_i18nFontFamily`;
|
75
|
+
$1e9110aec8886b85$export$e7dc768d35940237 = `uv8yQW_is-focused`;
|
76
|
+
$1e9110aec8886b85$export$b8813cd5d7824ce7 = `uv8yQW_is-hovered`;
|
77
|
+
$1e9110aec8886b85$export$a397eb58038aa381 = `uv8yQW_spectrum-overlay--open`;
|
78
|
+
$1e9110aec8886b85$export$a9781837241c946d = `uv8yQW_is-open ${$1e9110aec8886b85$export$a397eb58038aa381}`;
|
79
|
+
$1e9110aec8886b85$export$a96755f239de61ee = `uv8yQW_spectrum-overlay--bottom--open`;
|
80
|
+
$1e9110aec8886b85$export$1f160596ffe52357 = `uv8yQW_is-open--bottom ${$1e9110aec8886b85$export$a96755f239de61ee}`;
|
81
|
+
$1e9110aec8886b85$export$a85c0c6b6cf8598c = `uv8yQW_spectrum-overlay--left--open`;
|
82
|
+
$1e9110aec8886b85$export$d6106cb3acaf56ae = `uv8yQW_is-open--left ${$1e9110aec8886b85$export$a85c0c6b6cf8598c}`;
|
83
|
+
$1e9110aec8886b85$export$85aaa87e65e040bf = `uv8yQW_spectrum-overlay--right--open`;
|
84
|
+
$1e9110aec8886b85$export$8935d072812c3169 = `uv8yQW_is-open--right ${$1e9110aec8886b85$export$85aaa87e65e040bf}`;
|
85
|
+
$1e9110aec8886b85$export$b9768db7ffc1bc2 = `uv8yQW_spectrum-overlay--top--open`;
|
86
|
+
$1e9110aec8886b85$export$cd4bf1e07ae86214 = `uv8yQW_is-open--top ${$1e9110aec8886b85$export$b9768db7ffc1bc2}`;
|
87
|
+
$1e9110aec8886b85$export$4109102f950813a6 = `uv8yQW_spectrum-FocusRing-ring`;
|
88
|
+
$1e9110aec8886b85$export$24c7f46a6e3605dd = `uv8yQW_spectrum-FocusRing ${$1e9110aec8886b85$export$4109102f950813a6}`;
|
89
|
+
$1e9110aec8886b85$export$2927016961429360 = `uv8yQW_spectrum-FocusRing--quiet`;
|
90
|
+
$1e9110aec8886b85$export$39eed38e2296a1d6 = `uv8yQW_spectrum-overlay`;
|
91
|
+
$1e9110aec8886b85$export$f7bf7078d3d03f05 = `uv8yQW_spectrum-Tooltip ${$1e9110aec8886b85$export$39eed38e2296a1d6}`;
|
92
|
+
$1e9110aec8886b85$export$4f420a9bbb442953 = `uv8yQW_spectrum-Tooltip--bottom`;
|
93
|
+
$1e9110aec8886b85$export$2b291890a5577893 = `uv8yQW_spectrum-Tooltip--error`;
|
94
|
+
$1e9110aec8886b85$export$d33ca445ae528241 = `uv8yQW_spectrum-Tooltip--help`;
|
95
|
+
$1e9110aec8886b85$export$e995d5780591d0a8 = `uv8yQW_spectrum-Tooltip--info`;
|
96
|
+
$1e9110aec8886b85$export$47f060b68b4cab2c = `uv8yQW_spectrum-Tooltip--left`;
|
97
|
+
$1e9110aec8886b85$export$92fe45b4260594f6 = `uv8yQW_spectrum-Tooltip--negative`;
|
98
|
+
$1e9110aec8886b85$export$11cbf31e1b6e51ac = `uv8yQW_spectrum-Tooltip--positive`;
|
99
|
+
$1e9110aec8886b85$export$c094187772823b2e = `uv8yQW_spectrum-Tooltip--right`;
|
100
|
+
$1e9110aec8886b85$export$4eae622bc9b08cac = `uv8yQW_spectrum-Tooltip--success`;
|
101
|
+
$1e9110aec8886b85$export$d7516df59e198fc7 = `uv8yQW_spectrum-Tooltip--top`;
|
102
|
+
$1e9110aec8886b85$export$f4096e0dc445b255 = `uv8yQW_spectrum-Tooltip-label`;
|
103
|
+
$1e9110aec8886b85$export$9deb89a7a91de30 = `uv8yQW_spectrum-Tooltip-tip`;
|
104
|
+
$1e9110aec8886b85$export$ff23d46fee8272e4 = `uv8yQW_spectrum-Tooltip-typeIcon`;
|
105
|
+
$1e9110aec8886b85$export$6ea3237f62800d00 = `uv8yQW_u-tooltip-showOnHover`;
|
106
106
|
|
107
107
|
|
108
108
|
export {$1e9110aec8886b85$exports as default};
|
@@ -70,39 +70,39 @@ var $1e9110aec8886b85$export$f4096e0dc445b255;
|
|
70
70
|
var $1e9110aec8886b85$export$9deb89a7a91de30;
|
71
71
|
var $1e9110aec8886b85$export$ff23d46fee8272e4;
|
72
72
|
var $1e9110aec8886b85$export$6ea3237f62800d00;
|
73
|
-
$1e9110aec8886b85$export$f39a09f249340e2a = `
|
74
|
-
$1e9110aec8886b85$export$8c4ee2c50c22c514 = `
|
75
|
-
$1e9110aec8886b85$export$e7dc768d35940237 = `
|
76
|
-
$1e9110aec8886b85$export$b8813cd5d7824ce7 = `
|
77
|
-
$1e9110aec8886b85$export$a397eb58038aa381 = `
|
78
|
-
$1e9110aec8886b85$export$a9781837241c946d = `
|
79
|
-
$1e9110aec8886b85$export$a96755f239de61ee = `
|
80
|
-
$1e9110aec8886b85$export$1f160596ffe52357 = `
|
81
|
-
$1e9110aec8886b85$export$a85c0c6b6cf8598c = `
|
82
|
-
$1e9110aec8886b85$export$d6106cb3acaf56ae = `
|
83
|
-
$1e9110aec8886b85$export$85aaa87e65e040bf = `
|
84
|
-
$1e9110aec8886b85$export$8935d072812c3169 = `
|
85
|
-
$1e9110aec8886b85$export$b9768db7ffc1bc2 = `
|
86
|
-
$1e9110aec8886b85$export$cd4bf1e07ae86214 = `
|
87
|
-
$1e9110aec8886b85$export$4109102f950813a6 = `
|
88
|
-
$1e9110aec8886b85$export$24c7f46a6e3605dd = `
|
89
|
-
$1e9110aec8886b85$export$2927016961429360 = `
|
90
|
-
$1e9110aec8886b85$export$39eed38e2296a1d6 = `
|
91
|
-
$1e9110aec8886b85$export$f7bf7078d3d03f05 = `
|
92
|
-
$1e9110aec8886b85$export$4f420a9bbb442953 = `
|
93
|
-
$1e9110aec8886b85$export$2b291890a5577893 = `
|
94
|
-
$1e9110aec8886b85$export$d33ca445ae528241 = `
|
95
|
-
$1e9110aec8886b85$export$e995d5780591d0a8 = `
|
96
|
-
$1e9110aec8886b85$export$47f060b68b4cab2c = `
|
97
|
-
$1e9110aec8886b85$export$92fe45b4260594f6 = `
|
98
|
-
$1e9110aec8886b85$export$11cbf31e1b6e51ac = `
|
99
|
-
$1e9110aec8886b85$export$c094187772823b2e = `
|
100
|
-
$1e9110aec8886b85$export$4eae622bc9b08cac = `
|
101
|
-
$1e9110aec8886b85$export$d7516df59e198fc7 = `
|
102
|
-
$1e9110aec8886b85$export$f4096e0dc445b255 = `
|
103
|
-
$1e9110aec8886b85$export$9deb89a7a91de30 = `
|
104
|
-
$1e9110aec8886b85$export$ff23d46fee8272e4 = `
|
105
|
-
$1e9110aec8886b85$export$6ea3237f62800d00 = `
|
73
|
+
$1e9110aec8886b85$export$f39a09f249340e2a = `uv8yQW_focus-ring`;
|
74
|
+
$1e9110aec8886b85$export$8c4ee2c50c22c514 = `uv8yQW_i18nFontFamily`;
|
75
|
+
$1e9110aec8886b85$export$e7dc768d35940237 = `uv8yQW_is-focused`;
|
76
|
+
$1e9110aec8886b85$export$b8813cd5d7824ce7 = `uv8yQW_is-hovered`;
|
77
|
+
$1e9110aec8886b85$export$a397eb58038aa381 = `uv8yQW_spectrum-overlay--open`;
|
78
|
+
$1e9110aec8886b85$export$a9781837241c946d = `uv8yQW_is-open ${$1e9110aec8886b85$export$a397eb58038aa381}`;
|
79
|
+
$1e9110aec8886b85$export$a96755f239de61ee = `uv8yQW_spectrum-overlay--bottom--open`;
|
80
|
+
$1e9110aec8886b85$export$1f160596ffe52357 = `uv8yQW_is-open--bottom ${$1e9110aec8886b85$export$a96755f239de61ee}`;
|
81
|
+
$1e9110aec8886b85$export$a85c0c6b6cf8598c = `uv8yQW_spectrum-overlay--left--open`;
|
82
|
+
$1e9110aec8886b85$export$d6106cb3acaf56ae = `uv8yQW_is-open--left ${$1e9110aec8886b85$export$a85c0c6b6cf8598c}`;
|
83
|
+
$1e9110aec8886b85$export$85aaa87e65e040bf = `uv8yQW_spectrum-overlay--right--open`;
|
84
|
+
$1e9110aec8886b85$export$8935d072812c3169 = `uv8yQW_is-open--right ${$1e9110aec8886b85$export$85aaa87e65e040bf}`;
|
85
|
+
$1e9110aec8886b85$export$b9768db7ffc1bc2 = `uv8yQW_spectrum-overlay--top--open`;
|
86
|
+
$1e9110aec8886b85$export$cd4bf1e07ae86214 = `uv8yQW_is-open--top ${$1e9110aec8886b85$export$b9768db7ffc1bc2}`;
|
87
|
+
$1e9110aec8886b85$export$4109102f950813a6 = `uv8yQW_spectrum-FocusRing-ring`;
|
88
|
+
$1e9110aec8886b85$export$24c7f46a6e3605dd = `uv8yQW_spectrum-FocusRing ${$1e9110aec8886b85$export$4109102f950813a6}`;
|
89
|
+
$1e9110aec8886b85$export$2927016961429360 = `uv8yQW_spectrum-FocusRing--quiet`;
|
90
|
+
$1e9110aec8886b85$export$39eed38e2296a1d6 = `uv8yQW_spectrum-overlay`;
|
91
|
+
$1e9110aec8886b85$export$f7bf7078d3d03f05 = `uv8yQW_spectrum-Tooltip ${$1e9110aec8886b85$export$39eed38e2296a1d6}`;
|
92
|
+
$1e9110aec8886b85$export$4f420a9bbb442953 = `uv8yQW_spectrum-Tooltip--bottom`;
|
93
|
+
$1e9110aec8886b85$export$2b291890a5577893 = `uv8yQW_spectrum-Tooltip--error`;
|
94
|
+
$1e9110aec8886b85$export$d33ca445ae528241 = `uv8yQW_spectrum-Tooltip--help`;
|
95
|
+
$1e9110aec8886b85$export$e995d5780591d0a8 = `uv8yQW_spectrum-Tooltip--info`;
|
96
|
+
$1e9110aec8886b85$export$47f060b68b4cab2c = `uv8yQW_spectrum-Tooltip--left`;
|
97
|
+
$1e9110aec8886b85$export$92fe45b4260594f6 = `uv8yQW_spectrum-Tooltip--negative`;
|
98
|
+
$1e9110aec8886b85$export$11cbf31e1b6e51ac = `uv8yQW_spectrum-Tooltip--positive`;
|
99
|
+
$1e9110aec8886b85$export$c094187772823b2e = `uv8yQW_spectrum-Tooltip--right`;
|
100
|
+
$1e9110aec8886b85$export$4eae622bc9b08cac = `uv8yQW_spectrum-Tooltip--success`;
|
101
|
+
$1e9110aec8886b85$export$d7516df59e198fc7 = `uv8yQW_spectrum-Tooltip--top`;
|
102
|
+
$1e9110aec8886b85$export$f4096e0dc445b255 = `uv8yQW_spectrum-Tooltip-label`;
|
103
|
+
$1e9110aec8886b85$export$9deb89a7a91de30 = `uv8yQW_spectrum-Tooltip-tip`;
|
104
|
+
$1e9110aec8886b85$export$ff23d46fee8272e4 = `uv8yQW_spectrum-Tooltip-typeIcon`;
|
105
|
+
$1e9110aec8886b85$export$6ea3237f62800d00 = `uv8yQW_u-tooltip-showOnHover`;
|
106
106
|
|
107
107
|
|
108
108
|
export {$1e9110aec8886b85$exports as default};
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;AC6EA;;GAEG;AACH,OAAA,IAAI,8GAAoC,CAAC;
|
1
|
+
{"mappings":";;;AC6EA;;GAEG;AACH,OAAA,IAAI,8GAAoC,CAAC;ACwCzC;;;;GAIG;AAEH,OAAA,IAAI,gBAAoC,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,OAAO,CAAC;AC9G5F,YAAY,EAAC,oBAAoB,EAAE,2BAA2B,EAAC,MAAM,sBAAsB,CAAC","sources":["packages/@react-spectrum/tooltip/src/packages/@react-spectrum/tooltip/src/context.ts","packages/@react-spectrum/tooltip/src/packages/@react-spectrum/tooltip/src/Tooltip.tsx","packages/@react-spectrum/tooltip/src/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx","packages/@react-spectrum/tooltip/src/packages/@react-spectrum/tooltip/src/index.ts","packages/@react-spectrum/tooltip/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\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/// <reference types=\"css-module-types\" />\n\nexport {Tooltip} from './Tooltip';\nexport {TooltipTrigger} from './TooltipTrigger';\nexport type {SpectrumTooltipProps, SpectrumTooltipTriggerProps} from '@react-types/tooltip';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
@@ -1,41 +1,41 @@
|
|
1
|
-
.
|
1
|
+
.uv8yQW_i18nFontFamily {
|
2
2
|
font-synthesis: weight;
|
3
3
|
font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
4
4
|
}
|
5
5
|
|
6
|
-
.
|
6
|
+
.uv8yQW_i18nFontFamily:lang(ar) {
|
7
7
|
font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
8
8
|
}
|
9
9
|
|
10
|
-
.
|
10
|
+
.uv8yQW_i18nFontFamily:lang(he) {
|
11
11
|
font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
|
12
12
|
}
|
13
13
|
|
14
|
-
.
|
14
|
+
.uv8yQW_i18nFontFamily:lang(zh) {
|
15
15
|
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
|
16
16
|
}
|
17
17
|
|
18
|
-
.
|
18
|
+
.uv8yQW_i18nFontFamily:lang(zh-Hans) {
|
19
19
|
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
20
20
|
}
|
21
21
|
|
22
|
-
.
|
22
|
+
.uv8yQW_i18nFontFamily:lang(zh-Hant) {
|
23
23
|
font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
|
24
24
|
}
|
25
25
|
|
26
|
-
.
|
26
|
+
.uv8yQW_i18nFontFamily:lang(zh-SG), .uv8yQW_i18nFontFamily:lang(zh-CN) {
|
27
27
|
font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
|
28
28
|
}
|
29
29
|
|
30
|
-
.
|
30
|
+
.uv8yQW_i18nFontFamily:lang(ko) {
|
31
31
|
font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
|
32
32
|
}
|
33
33
|
|
34
|
-
.
|
34
|
+
.uv8yQW_i18nFontFamily:lang(ja) {
|
35
35
|
font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
|
36
36
|
}
|
37
37
|
|
38
|
-
.
|
38
|
+
.uv8yQW_spectrum-FocusRing-ring {
|
39
39
|
--spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
|
40
40
|
--spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
|
41
41
|
--spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
|
@@ -43,7 +43,7 @@
|
|
43
43
|
--spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
|
44
44
|
}
|
45
45
|
|
46
|
-
.
|
46
|
+
.uv8yQW_spectrum-FocusRing-ring:after {
|
47
47
|
border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
|
48
48
|
content: "";
|
49
49
|
margin: calc(-1 * var(--spectrum-focus-ring-border-size));
|
@@ -54,61 +54,61 @@
|
|
54
54
|
inset: 0;
|
55
55
|
}
|
56
56
|
|
57
|
-
.
|
57
|
+
.uv8yQW_spectrum-FocusRing.uv8yQW_focus-ring:after {
|
58
58
|
margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
|
59
59
|
box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
|
60
60
|
}
|
61
61
|
|
62
|
-
.
|
62
|
+
.uv8yQW_spectrum-FocusRing--quiet:after {
|
63
63
|
border-radius: 0;
|
64
64
|
}
|
65
65
|
|
66
|
-
.
|
66
|
+
.uv8yQW_spectrum-FocusRing--quiet.uv8yQW_focus-ring:after {
|
67
67
|
margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
|
68
68
|
box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
|
69
69
|
}
|
70
70
|
|
71
71
|
@media (forced-colors: active) {
|
72
|
-
.
|
72
|
+
.uv8yQW_spectrum-FocusRing, .uv8yQW_spectrum-FocusRing-ring, .uv8yQW_spectrum-FocusRing--quiet {
|
73
73
|
--spectrum-high-contrast-focus-ring-color: Highlight;
|
74
74
|
}
|
75
75
|
|
76
|
-
:is(.
|
76
|
+
:is(.uv8yQW_spectrum-FocusRing, .uv8yQW_spectrum-FocusRing-ring, .uv8yQW_spectrum-FocusRing--quiet):after {
|
77
77
|
forced-color-adjust: none;
|
78
78
|
}
|
79
79
|
}
|
80
80
|
|
81
|
-
.
|
81
|
+
.uv8yQW_spectrum-overlay {
|
82
82
|
visibility: hidden;
|
83
83
|
opacity: 0;
|
84
84
|
transition: transform var(--spectrum-global-animation-duration-100, .13s) ease-in-out, opacity var(--spectrum-global-animation-duration-100, .13s) ease-in-out, visibility 0s linear var(--spectrum-global-animation-duration-100, .13s);
|
85
85
|
pointer-events: none;
|
86
86
|
}
|
87
87
|
|
88
|
-
.
|
88
|
+
.uv8yQW_spectrum-overlay--open {
|
89
89
|
visibility: visible;
|
90
90
|
opacity: .9999;
|
91
91
|
pointer-events: auto;
|
92
92
|
transition-delay: 0s;
|
93
93
|
}
|
94
94
|
|
95
|
-
.
|
95
|
+
.uv8yQW_spectrum-overlay--bottom--open {
|
96
96
|
transform: translateY(var(--spectrum-overlay-positive-transform-distance));
|
97
97
|
}
|
98
98
|
|
99
|
-
.
|
99
|
+
.uv8yQW_spectrum-overlay--top--open {
|
100
100
|
transform: translateY(var(--spectrum-overlay-negative-transform-distance));
|
101
101
|
}
|
102
102
|
|
103
|
-
.
|
103
|
+
.uv8yQW_spectrum-overlay--right--open {
|
104
104
|
transform: translateX(var(--spectrum-overlay-positive-transform-distance));
|
105
105
|
}
|
106
106
|
|
107
|
-
.
|
107
|
+
.uv8yQW_spectrum-overlay--left--open {
|
108
108
|
transform: translateX(var(--spectrum-overlay-negative-transform-distance));
|
109
109
|
}
|
110
110
|
|
111
|
-
.
|
111
|
+
.uv8yQW_spectrum-Tooltip {
|
112
112
|
box-sizing: border-box;
|
113
113
|
vertical-align: top;
|
114
114
|
padding: var(--spectrum-tooltip-padding-top, var(--spectrum-global-dimension-size-50)) var(--spectrum-tooltip-padding-x, var(--spectrum-global-dimension-size-125));
|
@@ -129,11 +129,11 @@
|
|
129
129
|
position: relative;
|
130
130
|
}
|
131
131
|
|
132
|
-
.
|
132
|
+
.uv8yQW_spectrum-Tooltip p {
|
133
133
|
margin: 0;
|
134
134
|
}
|
135
135
|
|
136
|
-
.
|
136
|
+
.uv8yQW_spectrum-Tooltip-tip {
|
137
137
|
border-width: var(--spectrum-tooltip-tip-height, var(--spectrum-global-dimension-size-50));
|
138
138
|
border-style: solid;
|
139
139
|
border-bottom-color: #0000;
|
@@ -144,52 +144,52 @@
|
|
144
144
|
position: absolute;
|
145
145
|
}
|
146
146
|
|
147
|
-
:is(.
|
147
|
+
:is(.uv8yQW_spectrum-Tooltip--right, .uv8yQW_spectrum-Tooltip--left) .uv8yQW_spectrum-Tooltip-tip {
|
148
148
|
margin-top: calc(var(--spectrum-tooltip-tip-height, var(--spectrum-global-dimension-size-50)) * -1);
|
149
149
|
top: 50%;
|
150
150
|
}
|
151
151
|
|
152
|
-
.
|
152
|
+
.uv8yQW_spectrum-Tooltip--right {
|
153
153
|
margin-left: var(--spectrum-global-dimension-size-40);
|
154
154
|
}
|
155
155
|
|
156
|
-
.
|
156
|
+
.uv8yQW_spectrum-Tooltip--right .uv8yQW_spectrum-Tooltip-tip {
|
157
157
|
right: 100%;
|
158
158
|
transform: rotate(90deg);
|
159
159
|
}
|
160
160
|
|
161
|
-
.
|
161
|
+
.uv8yQW_spectrum-Tooltip--left {
|
162
162
|
margin-right: var(--spectrum-global-dimension-size-40);
|
163
163
|
}
|
164
164
|
|
165
|
-
.
|
165
|
+
.uv8yQW_spectrum-Tooltip--left .uv8yQW_spectrum-Tooltip-tip {
|
166
166
|
left: 100%;
|
167
167
|
transform: rotate(-90deg);
|
168
168
|
}
|
169
169
|
|
170
|
-
.
|
170
|
+
.uv8yQW_spectrum-Tooltip--top {
|
171
171
|
margin-bottom: var(--spectrum-global-dimension-size-40);
|
172
172
|
}
|
173
173
|
|
174
|
-
.
|
174
|
+
.uv8yQW_spectrum-Tooltip--top .uv8yQW_spectrum-Tooltip-tip {
|
175
175
|
top: 100%;
|
176
176
|
}
|
177
177
|
|
178
|
-
.
|
178
|
+
.uv8yQW_spectrum-Tooltip--bottom {
|
179
179
|
margin-top: var(--spectrum-global-dimension-size-40);
|
180
180
|
}
|
181
181
|
|
182
|
-
.
|
182
|
+
.uv8yQW_spectrum-Tooltip--bottom .uv8yQW_spectrum-Tooltip-tip {
|
183
183
|
bottom: 100%;
|
184
184
|
transform: rotate(-180deg);
|
185
185
|
}
|
186
186
|
|
187
|
-
:is(.
|
187
|
+
:is(.uv8yQW_spectrum-Tooltip--bottom, .uv8yQW_spectrum-Tooltip--top) .uv8yQW_spectrum-Tooltip-tip {
|
188
188
|
margin-left: calc(var(--spectrum-tooltip-tip-height, var(--spectrum-global-dimension-size-50)) * -1);
|
189
189
|
left: 50%;
|
190
190
|
}
|
191
191
|
|
192
|
-
.
|
192
|
+
.uv8yQW_spectrum-Tooltip-typeIcon {
|
193
193
|
inline-size: var(--spectrum-tooltip-icon-size, var(--spectrum-global-dimension-size-175));
|
194
194
|
block-size: var(--spectrum-tooltip-icon-size, var(--spectrum-global-dimension-size-175));
|
195
195
|
margin-inline-start: calc(var(--spectrum-tooltip-icon-margin-x, var(--spectrum-global-dimension-size-100)) - var(--spectrum-tooltip-padding-x, var(--spectrum-global-dimension-size-125)));
|
@@ -198,17 +198,17 @@
|
|
198
198
|
margin-top: 1px;
|
199
199
|
}
|
200
200
|
|
201
|
-
.
|
201
|
+
.uv8yQW_spectrum-Tooltip-label {
|
202
202
|
max-inline-size: var(--spectrum-tooltip-content-max-width);
|
203
203
|
line-height: var(--spectrum-tooltip-text-line-height, var(--spectrum-global-dimension-font-size-200));
|
204
204
|
}
|
205
205
|
|
206
|
-
.
|
206
|
+
.uv8yQW_u-tooltip-showOnHover {
|
207
207
|
display: inline-block;
|
208
208
|
position: relative;
|
209
209
|
}
|
210
210
|
|
211
|
-
.
|
211
|
+
.uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip {
|
212
212
|
white-space: nowrap;
|
213
213
|
transition: transform var(--spectrum-global-animation-duration-100, .13s) ease-in-out;
|
214
214
|
position: absolute;
|
@@ -216,57 +216,57 @@
|
|
216
216
|
visibility: visible !important;
|
217
217
|
}
|
218
218
|
|
219
|
-
.
|
219
|
+
.uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip-label {
|
220
220
|
max-inline-size: none;
|
221
221
|
}
|
222
222
|
|
223
|
-
.
|
223
|
+
.uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--right, .uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--right .uv8yQW_spectrum-Tooltip-tip, .uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--left, .uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--left .uv8yQW_spectrum-Tooltip-tip {
|
224
224
|
top: 50%;
|
225
225
|
}
|
226
226
|
|
227
|
-
.
|
227
|
+
.uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--right {
|
228
228
|
left: 100%;
|
229
229
|
transform: translate(0, -50%);
|
230
230
|
}
|
231
231
|
|
232
|
-
.
|
232
|
+
.uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--left {
|
233
233
|
transform: translate(-100%, -50%);
|
234
234
|
}
|
235
235
|
|
236
|
-
.
|
236
|
+
.uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--bottom, .uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--bottom .uv8yQW_spectrum-Tooltip-tip, .uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--top, .uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--top .uv8yQW_spectrum-Tooltip-tip {
|
237
237
|
left: 50%;
|
238
238
|
}
|
239
239
|
|
240
|
-
.
|
240
|
+
.uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--bottom {
|
241
241
|
transform: translate(-50%, calc(var(--spectrum-tooltip-tip-margin, var(--spectrum-global-dimension-size-50)) * -1));
|
242
242
|
top: 100%;
|
243
243
|
}
|
244
244
|
|
245
|
-
.
|
245
|
+
.uv8yQW_u-tooltip-showOnHover .uv8yQW_spectrum-Tooltip--top {
|
246
246
|
transform: translate(-50%, var(--spectrum-tooltip-tip-margin, var(--spectrum-global-dimension-size-50)));
|
247
247
|
}
|
248
248
|
|
249
|
-
.
|
249
|
+
.uv8yQW_u-tooltip-showOnHover.uv8yQW_is-hovered .uv8yQW_spectrum-Tooltip, .uv8yQW_u-tooltip-showOnHover:focus .uv8yQW_spectrum-Tooltip, .uv8yQW_u-tooltip-showOnHover.uv8yQW_is-focused .uv8yQW_spectrum-Tooltip, .uv8yQW_u-tooltip-showOnHover :focus .uv8yQW_spectrum-Tooltip {
|
250
250
|
opacity: 1;
|
251
251
|
}
|
252
252
|
|
253
|
-
.
|
253
|
+
.uv8yQW_u-tooltip-showOnHover.uv8yQW_is-hovered .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--bottom, .uv8yQW_u-tooltip-showOnHover:focus .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--bottom, .uv8yQW_u-tooltip-showOnHover.uv8yQW_is-focused .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--bottom, .uv8yQW_u-tooltip-showOnHover :focus .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--bottom {
|
254
254
|
transform: translate(-50%);
|
255
255
|
}
|
256
256
|
|
257
|
-
.
|
257
|
+
.uv8yQW_u-tooltip-showOnHover.uv8yQW_is-hovered .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--top, .uv8yQW_u-tooltip-showOnHover:focus .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--top, .uv8yQW_u-tooltip-showOnHover.uv8yQW_is-focused .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--top, .uv8yQW_u-tooltip-showOnHover :focus .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--top {
|
258
258
|
transform: translate(-50%, calc(var(--spectrum-tooltip-tip-margin, var(--spectrum-global-dimension-size-50)) * -1));
|
259
259
|
}
|
260
260
|
|
261
|
-
.
|
261
|
+
.uv8yQW_u-tooltip-showOnHover.uv8yQW_is-hovered .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--left, .uv8yQW_u-tooltip-showOnHover:focus .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--left, .uv8yQW_u-tooltip-showOnHover.uv8yQW_is-focused .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--left, .uv8yQW_u-tooltip-showOnHover :focus .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--left {
|
262
262
|
transform: translate(calc(-100% - var(--spectrum-tooltip-tip-margin, var(--spectrum-global-dimension-size-50))), -50%);
|
263
263
|
}
|
264
264
|
|
265
|
-
.
|
265
|
+
.uv8yQW_u-tooltip-showOnHover.uv8yQW_is-hovered .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--right, .uv8yQW_u-tooltip-showOnHover:focus .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--right, .uv8yQW_u-tooltip-showOnHover.uv8yQW_is-focused .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--right, .uv8yQW_u-tooltip-showOnHover :focus .uv8yQW_spectrum-Tooltip.uv8yQW_spectrum-Tooltip--right {
|
266
266
|
transform: translate(var(--spectrum-tooltip-tip-margin, var(--spectrum-global-dimension-size-50)), -50%);
|
267
267
|
}
|
268
268
|
|
269
|
-
.
|
269
|
+
.uv8yQW_spectrum-Tooltip {
|
270
270
|
--spectrum-tooltip-background-color: var(--spectrum-alias-neutral-background-color);
|
271
271
|
--spectrum-tooltip-negative-background-color: var(--spectrum-negative-background-color-default);
|
272
272
|
--spectrum-tooltip-positive-background-color: var(--spectrum-positive-background-color-default);
|
@@ -277,40 +277,40 @@
|
|
277
277
|
will-change: filter;
|
278
278
|
}
|
279
279
|
|
280
|
-
.
|
280
|
+
.uv8yQW_spectrum-Tooltip-tip {
|
281
281
|
border-top-color: var(--spectrum-tooltip-background-color, var(--spectrum-global-color-static-gray-700));
|
282
282
|
}
|
283
283
|
|
284
|
-
.
|
284
|
+
.uv8yQW_spectrum-Tooltip--negative, .uv8yQW_spectrum-Tooltip--error {
|
285
285
|
background-color: var(--spectrum-tooltip-negative-background-color, var(--spectrum-global-color-static-red-700));
|
286
286
|
}
|
287
287
|
|
288
|
-
:is(.
|
288
|
+
:is(.uv8yQW_spectrum-Tooltip--negative, .uv8yQW_spectrum-Tooltip--error) .uv8yQW_spectrum-Tooltip-tip {
|
289
289
|
border-top-color: var(--spectrum-tooltip-negative-background-color, var(--spectrum-global-color-static-red-700));
|
290
290
|
}
|
291
291
|
|
292
|
-
.
|
292
|
+
.uv8yQW_spectrum-Tooltip--info, .uv8yQW_spectrum-Tooltip--help {
|
293
293
|
background-color: var(--spectrum-tooltip-info-background-color, var(--spectrum-global-color-static-blue-700));
|
294
294
|
}
|
295
295
|
|
296
|
-
:is(.
|
296
|
+
:is(.uv8yQW_spectrum-Tooltip--info, .uv8yQW_spectrum-Tooltip--help) .uv8yQW_spectrum-Tooltip-tip {
|
297
297
|
border-top-color: var(--spectrum-tooltip-info-background-color, var(--spectrum-global-color-static-blue-700));
|
298
298
|
}
|
299
299
|
|
300
|
-
.
|
300
|
+
.uv8yQW_spectrum-Tooltip--positive, .uv8yQW_spectrum-Tooltip--success {
|
301
301
|
background-color: var(--spectrum-tooltip-positive-background-color, var(--spectrum-global-color-static-green-700));
|
302
302
|
}
|
303
303
|
|
304
|
-
:is(.
|
304
|
+
:is(.uv8yQW_spectrum-Tooltip--positive, .uv8yQW_spectrum-Tooltip--success) .uv8yQW_spectrum-Tooltip-tip {
|
305
305
|
border-top-color: var(--spectrum-tooltip-positive-background-color, var(--spectrum-global-color-static-green-700));
|
306
306
|
}
|
307
307
|
|
308
308
|
@media (forced-colors: active) {
|
309
|
-
.
|
309
|
+
.uv8yQW_spectrum-Tooltip {
|
310
310
|
border: 1px solid #0000;
|
311
311
|
}
|
312
312
|
|
313
|
-
.
|
313
|
+
.uv8yQW_spectrum-Tooltip-tip {
|
314
314
|
forced-color-adjust: none;
|
315
315
|
--spectrum-tooltip-background-color: CanvasText;
|
316
316
|
--spectrum-tooltip-negative-background-color: Highlight;
|
@@ -318,4 +318,4 @@
|
|
318
318
|
--spectrum-tooltip-positive-background-color: Highlight;
|
319
319
|
}
|
320
320
|
}
|
321
|
-
/*# sourceMappingURL=vars.
|
321
|
+
/*# sourceMappingURL=vars.e2a76556.css.map */
|
@@ -1 +1 @@
|
|
1
|
-
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAkBJ;;;;;;;AAYA;;;;;;;AAWA;;;;AAIA;;;;AAUA;;;;AAIA;;;;AAIA;;;;;;;;;;;;;;;;;;;;;AA+BE;;;;AASF;;;;;;;;;;;AAeE;;;;;AAMF;;;;AAEE;;;;;AAUF;;;;AAEE;;;;;AAUF;;;;AAEE;;;;AASF;;;;AAEE;;;;;AAYA;;;;;AAMF;;;;;;;;;AAWA;;;;;AAOA;;;;;AAIE;;;;;;;;AASA;;;;AAKA;;;;AAQA;;;;;AAKA;;;;AAIA;;;;AAQA;;;;;AAKA;;;;AAIA;;;;AAOA;;;;AAOA;;;;AAOA;;;;AAOA;;;;AAoBF;;;;;;;;;;;AAgBA;;;;AAIA;;;;AAIE;;;;AAKF;;;;AAIE;;;;AAKF;;;;AAIE;;;;AAKF;EACE;;;;EAGA","sources":["packages/@adobe/spectrum-css-temp/components/tooltip/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.
|
1
|
+
{"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAkBJ;;;;;;;AAYA;;;;;;;AAWA;;;;AAIA;;;;AAUA;;;;AAIA;;;;AAIA;;;;;;;;;;;;;;;;;;;;;AA+BE;;;;AASF;;;;;;;;;;;AAeE;;;;;AAMF;;;;AAEE;;;;;AAUF;;;;AAEE;;;;;AAUF;;;;AAEE;;;;AASF;;;;AAEE;;;;;AAYA;;;;;AAMF;;;;;;;;;AAWA;;;;;AAOA;;;;;AAIE;;;;;;;;AASA;;;;AAKA;;;;AAQA;;;;;AAKA;;;;AAIA;;;;AAQA;;;;;AAKA;;;;AAIA;;;;AAOA;;;;AAOA;;;;AAOA;;;;AAOA;;;;AAoBF;;;;;;;;;;;AAgBA;;;;AAIA;;;;AAIE;;;;AAKF;;;;AAIE;;;;AAKF;;;;AAIE;;;;AAKF;EACE;;;;EAGA","sources":["packages/@adobe/spectrum-css-temp/components/tooltip/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.e2a76556.css.map"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/tooltip",
|
3
|
-
"version": "3.6.
|
3
|
+
"version": "3.6.10",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -36,17 +36,17 @@
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@react-aria/focus": "^3.18.
|
40
|
-
"@react-aria/overlays": "^3.23.
|
41
|
-
"@react-aria/tooltip": "^3.7.
|
42
|
-
"@react-aria/utils": "^3.25.
|
43
|
-
"@react-spectrum/overlays": "^5.6.
|
44
|
-
"@react-spectrum/utils": "^3.11.
|
45
|
-
"@react-stately/tooltip": "^3.4.
|
46
|
-
"@react-types/overlays": "^3.8.
|
47
|
-
"@react-types/shared": "^3.
|
48
|
-
"@react-types/tooltip": "^3.4.
|
49
|
-
"@spectrum-icons/ui": "^3.6.
|
39
|
+
"@react-aria/focus": "^3.18.3",
|
40
|
+
"@react-aria/overlays": "^3.23.3",
|
41
|
+
"@react-aria/tooltip": "^3.7.8",
|
42
|
+
"@react-aria/utils": "^3.25.3",
|
43
|
+
"@react-spectrum/overlays": "^5.6.4",
|
44
|
+
"@react-spectrum/utils": "^3.11.11",
|
45
|
+
"@react-stately/tooltip": "^3.4.13",
|
46
|
+
"@react-types/overlays": "^3.8.10",
|
47
|
+
"@react-types/shared": "^3.25.0",
|
48
|
+
"@react-types/tooltip": "^3.4.12",
|
49
|
+
"@spectrum-icons/ui": "^3.6.10",
|
50
50
|
"@swc/helpers": "^0.5.0"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
@@ -59,6 +59,5 @@
|
|
59
59
|
},
|
60
60
|
"publishConfig": {
|
61
61
|
"access": "public"
|
62
|
-
}
|
63
|
-
|
64
|
-
}
|
62
|
+
}
|
63
|
+
}
|
package/src/TooltipTrigger.tsx
CHANGED
@@ -70,7 +70,8 @@ function TooltipTrigger(props: SpectrumTooltipTriggerProps) {
|
|
70
70
|
shouldFlip: props.shouldFlip,
|
71
71
|
containerPadding: props.containerPadding,
|
72
72
|
arrowSize: arrowWidth,
|
73
|
-
arrowBoundaryOffset: borderRadius
|
73
|
+
arrowBoundaryOffset: borderRadius,
|
74
|
+
onClose: () => state.close(true)
|
74
75
|
});
|
75
76
|
|
76
77
|
return (
|
package/LICENSE
DELETED
@@ -1,201 +0,0 @@
|
|
1
|
-
Apache License
|
2
|
-
Version 2.0, January 2004
|
3
|
-
http://www.apache.org/licenses/
|
4
|
-
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
-
|
7
|
-
1. Definitions.
|
8
|
-
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
-
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
-
the copyright owner that is granting the License.
|
14
|
-
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
-
other entities that control, are controlled by, or are under common
|
17
|
-
control with that entity. For the purposes of this definition,
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
19
|
-
direction or management of such entity, whether by contract or
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
-
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
-
exercising permissions granted by this License.
|
25
|
-
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
27
|
-
including but not limited to software source code, documentation
|
28
|
-
source, and configuration files.
|
29
|
-
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
31
|
-
transformation or translation of a Source form, including but
|
32
|
-
not limited to compiled object code, generated documentation,
|
33
|
-
and conversions to other media types.
|
34
|
-
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
36
|
-
Object form, made available under the License, as indicated by a
|
37
|
-
copyright notice that is included in or attached to the work
|
38
|
-
(an example is provided in the Appendix below).
|
39
|
-
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
-
the Work and Derivative Works thereof.
|
47
|
-
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
49
|
-
the original version of the Work and any modifications or additions
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
-
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
64
|
-
subsequently incorporated within the Work.
|
65
|
-
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
72
|
-
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
-
where such license applies only to those patent claims licensable
|
79
|
-
by such Contributor that are necessarily infringed by their
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
82
|
-
institute patent litigation against any entity (including a
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
85
|
-
or contributory patent infringement, then any patent licenses
|
86
|
-
granted to You under this License for that Work shall terminate
|
87
|
-
as of the date such litigation is filed.
|
88
|
-
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
91
|
-
modifications, and in Source or Object form, provided that You
|
92
|
-
meet the following conditions:
|
93
|
-
|
94
|
-
(a) You must give any other recipients of the Work or
|
95
|
-
Derivative Works a copy of this License; and
|
96
|
-
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
98
|
-
stating that You changed the files; and
|
99
|
-
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
102
|
-
attribution notices from the Source form of the Work,
|
103
|
-
excluding those notices that do not pertain to any part of
|
104
|
-
the Derivative Works; and
|
105
|
-
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
108
|
-
include a readable copy of the attribution notices contained
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
111
|
-
of the following places: within a NOTICE text file distributed
|
112
|
-
as part of the Derivative Works; within the Source form or
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
114
|
-
within a display generated by the Derivative Works, if and
|
115
|
-
wherever such third-party notices normally appear. The contents
|
116
|
-
of the NOTICE file are for informational purposes only and
|
117
|
-
do not modify the License. You may add Your own attribution
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
120
|
-
that such additional attribution notices cannot be construed
|
121
|
-
as modifying the License.
|
122
|
-
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
124
|
-
may provide additional or different license terms and conditions
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
128
|
-
the conditions stated in this License.
|
129
|
-
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
133
|
-
this License, without any additional terms or conditions.
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
-
the terms of any separate license agreement you may have executed
|
136
|
-
with Licensor regarding such Contributions.
|
137
|
-
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
140
|
-
except as required for reasonable and customary use in describing the
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
-
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
152
|
-
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
158
|
-
incidental, or consequential damages of any character arising as a
|
159
|
-
result of this License or out of the use or inability to use the
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
162
|
-
other commercial damages or losses), even if such Contributor
|
163
|
-
has been advised of the possibility of such damages.
|
164
|
-
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
-
or other liability obligations and/or rights consistent with this
|
169
|
-
License. However, in accepting such obligations, You may act only
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
174
|
-
of your accepting any such warranty or additional liability.
|
175
|
-
|
176
|
-
END OF TERMS AND CONDITIONS
|
177
|
-
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
179
|
-
|
180
|
-
To apply the Apache License to your work, attach the following
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
-
replaced with your own identifying information. (Don't include
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
184
|
-
comment syntax for the file format. We also recommend that a
|
185
|
-
file or class name and description of purpose be included on the
|
186
|
-
same "printed page" as the copyright notice for easier
|
187
|
-
identification within third-party archives.
|
188
|
-
|
189
|
-
Copyright 2019 Adobe
|
190
|
-
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
-
you may not use this file except in compliance with the License.
|
193
|
-
You may obtain a copy of the License at
|
194
|
-
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
-
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
-
See the License for the specific language governing permissions and
|
201
|
-
limitations under the License.
|