@spectrum-web-components/tooltip 0.11.0-slim.10 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "kind": "javascript-module",
7
- "path": "sp-tooltip.ts",
7
+ "path": "sp-tooltip.js",
8
8
  "declarations": [],
9
9
  "exports": [
10
10
  {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  {
21
21
  "kind": "javascript-module",
22
- "path": "src/Tooltip.ts",
22
+ "path": "src/Tooltip.js",
23
23
  "declarations": [
24
24
  {
25
25
  "kind": "class",
@@ -349,7 +349,7 @@
349
349
  "name": "TooltipProxy",
350
350
  "declaration": {
351
351
  "name": "TooltipProxy",
352
- "module": "src/Tooltip.ts"
352
+ "module": "src/Tooltip.js"
353
353
  }
354
354
  },
355
355
  {
@@ -357,7 +357,7 @@
357
357
  "name": "tooltip-proxy",
358
358
  "declaration": {
359
359
  "name": "TooltipProxy",
360
- "module": "src/Tooltip.ts"
360
+ "module": "src/Tooltip.js"
361
361
  }
362
362
  },
363
363
  {
@@ -365,64 +365,7 @@
365
365
  "name": "Tooltip",
366
366
  "declaration": {
367
367
  "name": "Tooltip",
368
- "module": "src/Tooltip.ts"
369
- }
370
- }
371
- ]
372
- },
373
- {
374
- "kind": "javascript-module",
375
- "path": "src/index.ts",
376
- "declarations": [],
377
- "exports": [
378
- {
379
- "kind": "js",
380
- "name": "*",
381
- "declaration": {
382
- "name": "*",
383
- "package": "./Tooltip.js"
384
- }
385
- }
386
- ]
387
- },
388
- {
389
- "kind": "javascript-module",
390
- "path": "src/spectrum-tooltip.css.ts",
391
- "declarations": [
392
- {
393
- "kind": "variable",
394
- "name": "styles",
395
- "default": "css`\n:host{--spectrum-overlay-animation-distance:var(\n--spectrum-picker-m-texticon-popover-offset-y,var(--spectrum-global-dimension-size-75)\n);opacity:0;pointer-events:none;transition:transform var(--spectrum-global-animation-duration-100,.13s) ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s) ease-in-out,visibility 0ms linear var(--spectrum-global-animation-duration-100,.13s);visibility:hidden}:host([open]){opacity:1;pointer-events:auto;transition-delay:0ms;visibility:visible}:host([placement*=bottom][open]){transform:translateY(var(--spectrum-overlay-animation-distance))}:host([placement*=top][open]){transform:translateY(calc(var(--spectrum-overlay-animation-distance)*-1))}:host([placement*=right][open]){transform:translateX(var(--spectrum-overlay-animation-distance))}:host([placement*=left][open]){transform:translateX(calc(var(--spectrum-overlay-animation-distance)*-1))}:host{--spectrum-tooltip-neutral-target-offset:3px;--spectrum-tooltip-neutral-tip-width:var(\n--spectrum-tooltip-neutral-tip-height,var(--spectrum-global-dimension-size-50)\n)}:host{-webkit-font-smoothing:antialiased;align-items:center;border-radius:var(\n--spectrum-tooltip-neutral-border-radius,var(--spectrum-alias-component-border-radius)\n);box-sizing:border-box;display:inline-flex;flex-direction:row;font-size:var(\n--spectrum-tooltip-neutral-text-size,var(--spectrum-global-dimension-font-size-75)\n);font-weight:var(\n--spectrum-tooltip-neutral-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);left:0;line-height:var(\n--spectrum-tooltip-neutral-text-line-height,var(--spectrum-alias-component-text-line-height)\n);max-width:var(\n--spectrum-tooltip-neutral-max-width,var(--spectrum-global-dimension-size-2000)\n);min-height:var(\n--spectrum-tooltip-neutral-min-height,var(--spectrum-global-dimension-size-300)\n);padding:0 var(\n--spectrum-tooltip-neutral-padding-x,var(--spectrum-global-dimension-size-85)\n);position:relative;top:0;vertical-align:top;width:auto;word-break:break-word}:host{cursor:default;-webkit-user-select:none;user-select:none}p{margin:0}#tip{border-bottom:var(\n--spectrum-tooltip-neutral-tip-width,var(--spectrum-global-dimension-size-100)\n) solid transparent;border-left:var(\n--spectrum-tooltip-neutral-tip-width,var(--spectrum-global-dimension-size-100)\n) solid transparent;border-right:var(\n--spectrum-tooltip-neutral-tip-width,var(--spectrum-global-dimension-size-100)\n) solid transparent;border-top-style:solid;border-top-width:var(\n--spectrum-tooltip-neutral-tip-width,var(--spectrum-global-dimension-size-100)\n);height:0;position:absolute;width:0}:host([placement*=left]) #tip,:host([placement*=right]) #tip{margin-top:calc(var(\n--spectrum-tooltip-neutral-tip-width,\nvar(--spectrum-global-dimension-size-100)\n)*-1);top:50%}:host([placement*=right]){margin-left:var(\n--spectrum-tooltip-neutral-target-offset\n)}:host([placement*=right]) #tip{right:100%;transform:rotate(90deg)}:host([placement*=left]){margin-right:var(\n--spectrum-tooltip-neutral-target-offset\n)}:host([placement*=left]) #tip{left:100%;transform:rotate(-90deg)}:host([placement*=top]){margin-bottom:var(\n--spectrum-tooltip-neutral-target-offset\n)}:host([placement*=top]) #tip{top:100%}:host([placement*=bottom]){margin-top:var(\n--spectrum-tooltip-neutral-target-offset\n)}:host([placement*=bottom]) #tip{bottom:100%;transform:rotate(-180deg)}:host([placement*=bottom]) #tip,:host([placement*=top]) #tip{left:50%;margin-left:calc(var(\n--spectrum-tooltip-neutral-tip-width,\nvar(--spectrum-global-dimension-size-100)\n)*-1)}:host([dir=ltr]) ::slotted([slot=icon]){margin-left:calc(var(\n--spectrum-tooltip-neutral-icon-margin-x,\nvar(--spectrum-global-dimension-size-85)\n) - var(\n--spectrum-tooltip-neutral-padding-x,\nvar(--spectrum-global-dimension-size-85)\n))}:host([dir=rtl]) ::slotted([slot=icon]){margin-right:calc(var(\n--spectrum-tooltip-neutral-icon-margin-x,\nvar(--spectrum-global-dimension-size-85)\n) - var(\n--spectrum-tooltip-neutral-padding-x,\nvar(--spectrum-global-dimension-size-85)\n))}:host([dir=ltr]) ::slotted([slot=icon]){margin-right:var(\n--spectrum-tooltip-neutral-icon-margin-x,var(--spectrum-global-dimension-size-85)\n)}:host([dir=rtl]) ::slotted([slot=icon]){margin-left:var(\n--spectrum-tooltip-neutral-icon-margin-x,var(--spectrum-global-dimension-size-85)\n)}::slotted([slot=icon]){align-self:flex-start;flex-shrink:0;height:var(\n--spectrum-tooltip-neutral-icon-size,var(--spectrum-global-dimension-size-200)\n);margin-bottom:var(\n--spectrum-tooltip-neutral-icon-margin-y,var(--spectrum-global-dimension-size-50)\n);margin-top:var(\n--spectrum-tooltip-neutral-icon-margin-y,var(--spectrum-global-dimension-size-50)\n);width:var(\n--spectrum-tooltip-neutral-icon-size,var(--spectrum-global-dimension-size-200)\n)}#label{line-height:var(\n--spectrum-tooltip-neutral-text-line-height,var(--spectrum-alias-component-text-line-height)\n);margin-bottom:var(--spectrum-tooltip-neutral-text-margin-bottom);margin-top:var(\n--spectrum-tooltip-neutral-text-margin-top,var(--spectrum-global-dimension-static-size-50)\n)}:host{background-color:var(\n--spectrum-tooltip-neutral-background-color,var(--spectrum-semantic-neutral-background-color-default)\n);color:var(\n--spectrum-tooltip-neutral-text-color,var(--spectrum-global-color-static-white)\n)}#tip{border-top-color:var(\n--spectrum-tooltip-neutral-background-color,var(--spectrum-semantic-neutral-background-color-default)\n)}.spectrum-Tooltip--error,:host([variant=negative]){background-color:var(\n--spectrum-tooltip-negative-background-color,var(--spectrum-semantic-negative-background-color)\n)}.spectrum-Tooltip--error #tip,:host([variant=negative]) #tip{border-top-color:var(\n--spectrum-tooltip-negative-background-color,var(--spectrum-semantic-negative-background-color)\n)}.spectrum-Tooltip--help,:host([variant=info]){background-color:var(\n--spectrum-tooltip-info-background-color,var(--spectrum-semantic-informative-background-color)\n)}.spectrum-Tooltip--help #tip,:host([variant=info]) #tip{border-top-color:var(\n--spectrum-tooltip-info-background-color,var(--spectrum-semantic-informative-background-color)\n)}.spectrum-Tooltip--success,:host([variant=positive]){background-color:var(\n--spectrum-tooltip-positive-background-color,var(--spectrum-semantic-positive-background-color)\n)}.spectrum-Tooltip--success #tip,:host([variant=positive]) #tip{border-top-color:var(\n--spectrum-tooltip-positive-background-color,var(--spectrum-semantic-positive-background-color)\n)}\n`"
396
- }
397
- ],
398
- "exports": [
399
- {
400
- "kind": "js",
401
- "name": "default",
402
- "declaration": {
403
- "name": "styles",
404
- "module": "src/spectrum-tooltip.css.ts"
405
- }
406
- }
407
- ]
408
- },
409
- {
410
- "kind": "javascript-module",
411
- "path": "src/tooltip.css.ts",
412
- "declarations": [
413
- {
414
- "kind": "variable",
415
- "name": "styles",
416
- "default": "css`\n:host{--spectrum-overlay-animation-distance:var(\n--spectrum-picker-m-texticon-popover-offset-y,var(--spectrum-global-dimension-size-75)\n);opacity:0;pointer-events:none;transition:transform var(--spectrum-global-animation-duration-100,.13s) ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s) ease-in-out,visibility 0ms linear var(--spectrum-global-animation-duration-100,.13s);visibility:hidden}:host([open]){opacity:1;pointer-events:auto;transition-delay:0ms;visibility:visible}:host([placement*=bottom][open]){transform:translateY(var(--spectrum-overlay-animation-distance))}:host([placement*=top][open]){transform:translateY(calc(var(--spectrum-overlay-animation-distance)*-1))}:host([placement*=right][open]){transform:translateX(var(--spectrum-overlay-animation-distance))}:host([placement*=left][open]){transform:translateX(calc(var(--spectrum-overlay-animation-distance)*-1))}:host{--spectrum-tooltip-neutral-target-offset:3px;--spectrum-tooltip-neutral-tip-width:var(\n--spectrum-tooltip-neutral-tip-height,var(--spectrum-global-dimension-size-50)\n)}:host{-webkit-font-smoothing:antialiased;align-items:center;border-radius:var(\n--spectrum-tooltip-neutral-border-radius,var(--spectrum-alias-component-border-radius)\n);box-sizing:border-box;display:inline-flex;flex-direction:row;font-size:var(\n--spectrum-tooltip-neutral-text-size,var(--spectrum-global-dimension-font-size-75)\n);font-weight:var(\n--spectrum-tooltip-neutral-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);left:0;line-height:var(\n--spectrum-tooltip-neutral-text-line-height,var(--spectrum-alias-component-text-line-height)\n);max-width:var(\n--spectrum-tooltip-neutral-max-width,var(--spectrum-global-dimension-size-2000)\n);min-height:var(\n--spectrum-tooltip-neutral-min-height,var(--spectrum-global-dimension-size-300)\n);padding:0 var(\n--spectrum-tooltip-neutral-padding-x,var(--spectrum-global-dimension-size-85)\n);position:relative;top:0;vertical-align:top;width:auto;word-break:break-word}:host{cursor:default;-webkit-user-select:none;user-select:none}p{margin:0}#tip{border-bottom:var(\n--spectrum-tooltip-neutral-tip-width,var(--spectrum-global-dimension-size-100)\n) solid transparent;border-left:var(\n--spectrum-tooltip-neutral-tip-width,var(--spectrum-global-dimension-size-100)\n) solid transparent;border-right:var(\n--spectrum-tooltip-neutral-tip-width,var(--spectrum-global-dimension-size-100)\n) solid transparent;border-top-style:solid;border-top-width:var(\n--spectrum-tooltip-neutral-tip-width,var(--spectrum-global-dimension-size-100)\n);height:0;position:absolute;width:0}:host([placement*=left]) #tip,:host([placement*=right]) #tip{margin-top:calc(var(\n--spectrum-tooltip-neutral-tip-width,\nvar(--spectrum-global-dimension-size-100)\n)*-1);top:50%}:host([placement*=right]){margin-left:var(\n--spectrum-tooltip-neutral-target-offset\n)}:host([placement*=right]) #tip{right:100%;transform:rotate(90deg)}:host([placement*=left]){margin-right:var(\n--spectrum-tooltip-neutral-target-offset\n)}:host([placement*=left]) #tip{left:100%;transform:rotate(-90deg)}:host([placement*=top]){margin-bottom:var(\n--spectrum-tooltip-neutral-target-offset\n)}:host([placement*=top]) #tip{top:100%}:host([placement*=bottom]){margin-top:var(\n--spectrum-tooltip-neutral-target-offset\n)}:host([placement*=bottom]) #tip{bottom:100%;transform:rotate(-180deg)}:host([placement*=bottom]) #tip,:host([placement*=top]) #tip{left:50%;margin-left:calc(var(\n--spectrum-tooltip-neutral-tip-width,\nvar(--spectrum-global-dimension-size-100)\n)*-1)}:host([dir=ltr]) ::slotted([slot=icon]){margin-left:calc(var(\n--spectrum-tooltip-neutral-icon-margin-x,\nvar(--spectrum-global-dimension-size-85)\n) - var(\n--spectrum-tooltip-neutral-padding-x,\nvar(--spectrum-global-dimension-size-85)\n))}:host([dir=rtl]) ::slotted([slot=icon]){margin-right:calc(var(\n--spectrum-tooltip-neutral-icon-margin-x,\nvar(--spectrum-global-dimension-size-85)\n) - var(\n--spectrum-tooltip-neutral-padding-x,\nvar(--spectrum-global-dimension-size-85)\n))}:host([dir=ltr]) ::slotted([slot=icon]){margin-right:var(\n--spectrum-tooltip-neutral-icon-margin-x,var(--spectrum-global-dimension-size-85)\n)}:host([dir=rtl]) ::slotted([slot=icon]){margin-left:var(\n--spectrum-tooltip-neutral-icon-margin-x,var(--spectrum-global-dimension-size-85)\n)}::slotted([slot=icon]){align-self:flex-start;flex-shrink:0;height:var(\n--spectrum-tooltip-neutral-icon-size,var(--spectrum-global-dimension-size-200)\n);margin-bottom:var(\n--spectrum-tooltip-neutral-icon-margin-y,var(--spectrum-global-dimension-size-50)\n);margin-top:var(\n--spectrum-tooltip-neutral-icon-margin-y,var(--spectrum-global-dimension-size-50)\n);width:var(\n--spectrum-tooltip-neutral-icon-size,var(--spectrum-global-dimension-size-200)\n)}#label{line-height:var(\n--spectrum-tooltip-neutral-text-line-height,var(--spectrum-alias-component-text-line-height)\n);margin-bottom:var(--spectrum-tooltip-neutral-text-margin-bottom);margin-top:var(\n--spectrum-tooltip-neutral-text-margin-top,var(--spectrum-global-dimension-static-size-50)\n)}:host{background-color:var(\n--spectrum-tooltip-neutral-background-color,var(--spectrum-semantic-neutral-background-color-default)\n);color:var(\n--spectrum-tooltip-neutral-text-color,var(--spectrum-global-color-static-white)\n)}#tip{border-top-color:var(\n--spectrum-tooltip-neutral-background-color,var(--spectrum-semantic-neutral-background-color-default)\n)}.spectrum-Tooltip--error,:host([variant=negative]){background-color:var(\n--spectrum-tooltip-negative-background-color,var(--spectrum-semantic-negative-background-color)\n)}.spectrum-Tooltip--error #tip,:host([variant=negative]) #tip{border-top-color:var(\n--spectrum-tooltip-negative-background-color,var(--spectrum-semantic-negative-background-color)\n)}.spectrum-Tooltip--help,:host([variant=info]){background-color:var(\n--spectrum-tooltip-info-background-color,var(--spectrum-semantic-informative-background-color)\n)}.spectrum-Tooltip--help #tip,:host([variant=info]) #tip{border-top-color:var(\n--spectrum-tooltip-info-background-color,var(--spectrum-semantic-informative-background-color)\n)}.spectrum-Tooltip--success,:host([variant=positive]){background-color:var(\n--spectrum-tooltip-positive-background-color,var(--spectrum-semantic-positive-background-color)\n)}.spectrum-Tooltip--success #tip,:host([variant=positive]) #tip{border-top-color:var(\n--spectrum-tooltip-positive-background-color,var(--spectrum-semantic-positive-background-color)\n)}#tip{border:none}:host([placement*=bottom]) #tip,:host([placement*=left]) #tip,:host([placement*=right]) #tip{transform:none}#tip:after{border:var(\n--spectrum-tooltip-tip-height,var(--spectrum-global-dimension-size-50)\n) solid transparent;content:\"\";height:0;left:0;position:absolute;width:0}:host([placement*=bottom]) #tip:after{bottom:100%;transform:scaleY(-1)}:host([placement*=left]) #tip:after{left:100%;transform:rotate(-90deg)}:host([placement*=right]) #tip:after{left:auto;right:100%;transform:rotate(90deg)}:host([placement]) #tip:after{border-top-color:var(\n--spectrum-tooltip-background-color,var(--spectrum-global-color-static-gray-700)\n)}:host([variant=negative]) #tip:after{border-top-color:var(\n--spectrum-tooltip-negative-background-color,var(--spectrum-global-color-static-red-700)\n)}:host([variant=info]) #tip:after{border-top-color:var(\n--spectrum-tooltip-info-background-color,var(--spectrum-global-color-static-blue-700)\n)}:host([variant=positive]) #tip:after{border-top-color:var(\n--spectrum-tooltip-positive-background-color,var(--spectrum-global-color-static-green-700)\n)}\n`"
417
- }
418
- ],
419
- "exports": [
420
- {
421
- "kind": "js",
422
- "name": "default",
423
- "declaration": {
424
- "name": "styles",
425
- "module": "src/tooltip.css.ts"
368
+ "module": "src/Tooltip.js"
426
369
  }
427
370
  }
428
371
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/tooltip",
3
- "version": "0.11.0-slim.10+3481c77b4",
3
+ "version": "0.11.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,11 +20,24 @@
20
20
  "module": "./src/index.js",
21
21
  "type": "module",
22
22
  "exports": {
23
- ".": "./src/index.js",
24
- "./src/*": "./src/*",
23
+ ".": {
24
+ "development": "./src/index.dev.js",
25
+ "default": "./src/index.js"
26
+ },
25
27
  "./package.json": "./package.json",
26
- "./sp-tooltip": "./sp-tooltip.js",
27
- "./sp-tooltip.js": "./sp-tooltip.js"
28
+ "./src/Tooltip.js": {
29
+ "development": "./src/Tooltip.dev.js",
30
+ "default": "./src/Tooltip.js"
31
+ },
32
+ "./src/index.js": {
33
+ "development": "./src/index.dev.js",
34
+ "default": "./src/index.js"
35
+ },
36
+ "./src/tooltip.css.js": "./src/tooltip.css.js",
37
+ "./sp-tooltip.js": {
38
+ "development": "./sp-tooltip.dev.js",
39
+ "default": "./sp-tooltip.js"
40
+ }
28
41
  },
29
42
  "scripts": {
30
43
  "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
@@ -44,17 +57,18 @@
44
57
  "lit-html"
45
58
  ],
46
59
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.5.4",
48
- "@spectrum-web-components/overlay": "^0.16.0-slim.10+3481c77b4",
60
+ "@spectrum-web-components/base": "^0.7.0",
61
+ "@spectrum-web-components/overlay": "^0.18.0",
49
62
  "tslib": "^2.0.0"
50
63
  },
51
64
  "devDependencies": {
52
- "@spectrum-css/tooltip": "^3.1.9"
65
+ "@spectrum-css/tooltip": "^3.1.18"
53
66
  },
54
67
  "types": "./src/index.d.ts",
55
68
  "customElements": "custom-elements.json",
56
69
  "sideEffects": [
57
- "./sp-*.js"
70
+ "./sp-*.js",
71
+ "./**/*.dev.js"
58
72
  ],
59
- "gitHead": "3481c77b431e0ccb4b0230a90cc83e770a46e59f"
73
+ "gitHead": "05c81318844160db3f8156144106e643507fef97"
60
74
  }
@@ -0,0 +1,3 @@
1
+ import { Tooltip } from "./src/Tooltip.dev.js";
2
+ customElements.define("sp-tooltip", Tooltip);
3
+ //# sourceMappingURL=sp-tooltip.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-tooltip.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Tooltip } from './src/Tooltip.dev.js'\n\ncustomElements.define('sp-tooltip', Tooltip);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-tooltip': Tooltip;\n }\n}\n"],
5
+ "mappings": "AAWA;AAEA,eAAe,OAAO,cAAc,OAAO;",
6
+ "names": []
7
+ }
package/sp-tooltip.js CHANGED
@@ -1,14 +1,2 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { Tooltip } from './src/Tooltip.js';
13
- customElements.define('sp-tooltip', Tooltip);
14
- //# sourceMappingURL=sp-tooltip.js.map
1
+ import{Tooltip as o}from"./src/Tooltip.js";customElements.define("sp-tooltip",o);
2
+ //# sourceMappingURL=sp-tooltip.js.map
package/sp-tooltip.js.map CHANGED
@@ -1 +1,7 @@
1
- {"version":3,"file":"sp-tooltip.js","sourceRoot":"","sources":["sp-tooltip.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Tooltip } from './src/Tooltip.js';\n\ncustomElements.define('sp-tooltip', Tooltip);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-tooltip': Tooltip;\n }\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-tooltip.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Tooltip } from './src/Tooltip.js';\n\ncustomElements.define('sp-tooltip', Tooltip);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-tooltip': Tooltip;\n }\n}\n"],
5
+ "mappings": "AAWA,2CAEA,eAAe,OAAO,aAAc,CAAO",
6
+ "names": []
7
+ }
@@ -0,0 +1,206 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __decorateClass = (decorators, target, key, kind) => {
4
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
5
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
+ if (decorator = decorators[i])
7
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
+ if (kind && result)
9
+ __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ SpectrumElement
15
+ } from "@spectrum-web-components/base";
16
+ import {
17
+ property,
18
+ query
19
+ } from "@spectrum-web-components/base/src/decorators.js";
20
+ import { openOverlay } from "@spectrum-web-components/overlay/src/loader.js";
21
+ import tooltipStyles from "./tooltip.css.js";
22
+ export class TooltipProxy extends HTMLElement {
23
+ disconnectedCallback() {
24
+ this.dispatchEvent(new Event("disconnected"));
25
+ }
26
+ }
27
+ customElements.define("tooltip-proxy", TooltipProxy);
28
+ const _Tooltip = class extends SpectrumElement {
29
+ constructor() {
30
+ super();
31
+ this._tooltipId = `sp-tooltip-describedby-helper-${_Tooltip.instanceCount++}`;
32
+ this.selfManaged = false;
33
+ this.offset = 6;
34
+ this.hadTooltipId = false;
35
+ this.open = false;
36
+ this.placement = "top";
37
+ this._variant = "";
38
+ this.abortOverlay = () => {
39
+ return;
40
+ };
41
+ this.openOverlay = () => {
42
+ const parentElement = this.parentElement;
43
+ const abortPromise = new Promise((res) => {
44
+ this.abortOverlay = res;
45
+ });
46
+ this.closeOverlayCallback = openOverlay(parentElement, "hover", this, {
47
+ abortPromise,
48
+ offset: this.offset,
49
+ placement: this.placement
50
+ });
51
+ };
52
+ this.closeOverlay = async () => {
53
+ if (this.abortOverlay)
54
+ this.abortOverlay(true);
55
+ if (!this.closeOverlayCallback)
56
+ return;
57
+ (await this.closeOverlayCallback)();
58
+ delete this.closeOverlayCallback;
59
+ };
60
+ this.addEventListener("sp-overlay-query", this.onOverlayQuery);
61
+ }
62
+ static get styles() {
63
+ return [tooltipStyles];
64
+ }
65
+ get variant() {
66
+ return this._variant;
67
+ }
68
+ set variant(variant) {
69
+ if (variant === this.variant) {
70
+ return;
71
+ }
72
+ if (["info", "positive", "negative"].includes(variant)) {
73
+ this.setAttribute("variant", variant);
74
+ this._variant = variant;
75
+ return;
76
+ }
77
+ this.removeAttribute("variant");
78
+ this._variant = "";
79
+ }
80
+ onOverlayQuery(event) {
81
+ if (!event.target)
82
+ return;
83
+ const target = event.target;
84
+ if (target !== this)
85
+ return;
86
+ event.detail.overlayContentTipElement = this.tipElement;
87
+ }
88
+ generateProxy() {
89
+ if (this._proxy) {
90
+ return;
91
+ }
92
+ this._proxy = document.createElement("tooltip-proxy");
93
+ this._proxy.id = this._tooltipId;
94
+ this._proxy.hidden = true;
95
+ this._proxy.slot = "hidden-tooltip-content";
96
+ this._proxy.setAttribute("role", "tooltip");
97
+ this._proxy.addEventListener("disconnected", this.closeOverlay);
98
+ }
99
+ overlayWillOpenCallback({
100
+ trigger
101
+ }) {
102
+ this.setAttribute("aria-hidden", "true");
103
+ this.generateProxy();
104
+ this._proxy.textContent = this.textContent;
105
+ const ariaDescribedby = trigger.getAttribute("aria-describedby") || "";
106
+ this.hadTooltipId = ariaDescribedby.search(this._tooltipId) > -1;
107
+ this.insertAdjacentElement("beforebegin", this._proxy);
108
+ if (this.hadTooltipId)
109
+ return;
110
+ if (ariaDescribedby) {
111
+ trigger.setAttribute("aria-describedby", `${ariaDescribedby} ${this._tooltipId}`);
112
+ } else {
113
+ trigger.setAttribute("aria-describedby", `${this._tooltipId}`);
114
+ }
115
+ }
116
+ overlayOpenCancelledCallback({
117
+ trigger
118
+ }) {
119
+ this.overlayCloseCallback({ trigger });
120
+ }
121
+ overlayCloseCallback({ trigger }) {
122
+ const ariaDescribedby = trigger.getAttribute("aria-describedby") || "";
123
+ let descriptors = ariaDescribedby.split(/\s+/);
124
+ if (!this.hadTooltipId) {
125
+ descriptors = descriptors.filter((descriptor) => descriptor !== this._tooltipId);
126
+ }
127
+ if (descriptors.length) {
128
+ trigger.setAttribute("aria-describedby", descriptors.join(" "));
129
+ } else {
130
+ trigger.removeAttribute("aria-describedby");
131
+ }
132
+ this.removeAttribute("aria-hidden");
133
+ this.removeProxy();
134
+ }
135
+ removeProxy() {
136
+ this._proxy.remove();
137
+ }
138
+ manageTooltip() {
139
+ const parentElement = this.parentElement;
140
+ if (this.selfManaged) {
141
+ if (this.slot) {
142
+ this.previousSlot = this.slot;
143
+ }
144
+ this.slot = "self-managed-tooltip";
145
+ parentElement.addEventListener("pointerenter", this.openOverlay);
146
+ parentElement.addEventListener("focusin", this.openOverlay);
147
+ parentElement.addEventListener("pointerleave", this.closeOverlay);
148
+ parentElement.addEventListener("focusout", this.closeOverlay);
149
+ } else {
150
+ if (this.previousSlot) {
151
+ this.slot = this.previousSlot;
152
+ } else if (this.slot === "self-managed-tooltip") {
153
+ this.removeAttribute("slot");
154
+ }
155
+ parentElement.removeEventListener("pointerenter", this.openOverlay);
156
+ parentElement.removeEventListener("focusin", this.openOverlay);
157
+ parentElement.removeEventListener("pointerleave", this.closeOverlay);
158
+ parentElement.removeEventListener("focusout", this.closeOverlay);
159
+ }
160
+ }
161
+ render() {
162
+ return html`
163
+ <slot name="icon"></slot>
164
+ <span id="label"><slot></slot></span>
165
+ <span id="tip"></span>
166
+ `;
167
+ }
168
+ async update(changed) {
169
+ if (changed.has("open") && this.selfManaged) {
170
+ if (this.open) {
171
+ this.openOverlay();
172
+ } else {
173
+ this.closeOverlay();
174
+ }
175
+ }
176
+ this.generateProxy();
177
+ super.update(changed);
178
+ }
179
+ updated(changed) {
180
+ super.updated(changed);
181
+ if (changed.has("selfManaged")) {
182
+ this.manageTooltip();
183
+ }
184
+ }
185
+ };
186
+ export let Tooltip = _Tooltip;
187
+ Tooltip.instanceCount = 0;
188
+ __decorateClass([
189
+ property({ type: Boolean, attribute: "self-managed" })
190
+ ], Tooltip.prototype, "selfManaged", 2);
191
+ __decorateClass([
192
+ property({ type: Number, reflect: true })
193
+ ], Tooltip.prototype, "offset", 2);
194
+ __decorateClass([
195
+ property({ type: Boolean, reflect: true })
196
+ ], Tooltip.prototype, "open", 2);
197
+ __decorateClass([
198
+ property({ reflect: true })
199
+ ], Tooltip.prototype, "placement", 2);
200
+ __decorateClass([
201
+ query("#tip")
202
+ ], Tooltip.prototype, "tipElement", 2);
203
+ __decorateClass([
204
+ property({ type: String })
205
+ ], Tooltip.prototype, "variant", 1);
206
+ //# sourceMappingURL=Tooltip.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Tooltip.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport type {\n OverlayDisplayQueryDetail,\n Placement,\n} from '@spectrum-web-components/overlay';\nimport { openOverlay } from '@spectrum-web-components/overlay/src/loader.js';\n\nimport tooltipStyles from './tooltip.css.js';\n\nexport class TooltipProxy extends HTMLElement {\n disconnectedCallback(): void {\n this.dispatchEvent(new Event('disconnected'));\n }\n}\n\ncustomElements.define('tooltip-proxy', TooltipProxy);\n\n/**\n * @element sp-tooltip\n *\n * @slot icon - the icon element appearing at the start of the label\n * @slot - the text label of the Tooltip\n */\n\nexport class Tooltip extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [tooltipStyles];\n }\n\n /**\n * @private\n */\n static instanceCount = 0;\n\n private _tooltipId = `sp-tooltip-describedby-helper-${Tooltip.instanceCount++}`;\n\n @property({ type: Boolean, attribute: 'self-managed' })\n public selfManaged = false;\n\n @property({ type: Number, reflect: true })\n public offset = 6;\n private hadTooltipId = false;\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n /**\n * @type {\"auto\" | \"auto-start\" | \"auto-end\" | \"top\" | \"bottom\" | \"right\" | \"left\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\" | \"right-start\" | \"right-end\" | \"left-start\" | \"left-end\" | \"none\"}\n * @attr\n */\n @property({ reflect: true })\n public placement: Placement = 'top';\n\n @query('#tip')\n private tipElement!: HTMLSpanElement;\n\n /* Ensure that a '' value for `variant` removes the attribute instead of a blank value */\n private _variant = '';\n\n @property({ type: String })\n public get variant(): string {\n return this._variant;\n }\n public set variant(variant: string) {\n if (variant === this.variant) {\n return;\n }\n if (['info', 'positive', 'negative'].includes(variant)) {\n this.setAttribute('variant', variant);\n this._variant = variant;\n return;\n }\n this.removeAttribute('variant');\n this._variant = '';\n }\n\n public constructor() {\n super();\n this.addEventListener('sp-overlay-query', this.onOverlayQuery);\n }\n\n public onOverlayQuery(event: CustomEvent<OverlayDisplayQueryDetail>): void {\n /* c8 ignore next */\n if (!event.target) return;\n\n const target = event.target as Node;\n /* c8 ignore next */\n if (target !== this) return;\n\n event.detail.overlayContentTipElement = this.tipElement;\n }\n\n private _proxy!: HTMLElement;\n\n private generateProxy(): void {\n if (this._proxy) {\n return;\n }\n this._proxy = document.createElement('tooltip-proxy');\n this._proxy.id = this._tooltipId;\n this._proxy.hidden = true;\n this._proxy.slot = 'hidden-tooltip-content';\n this._proxy.setAttribute('role', 'tooltip');\n this._proxy.addEventListener('disconnected', this.closeOverlay);\n }\n\n public overlayWillOpenCallback({\n trigger,\n }: {\n trigger: HTMLElement;\n }): void {\n this.setAttribute('aria-hidden', 'true');\n this.generateProxy();\n this._proxy.textContent = this.textContent;\n const ariaDescribedby = trigger.getAttribute('aria-describedby') || '';\n this.hadTooltipId = ariaDescribedby.search(this._tooltipId) > -1;\n\n this.insertAdjacentElement('beforebegin', this._proxy);\n\n if (this.hadTooltipId) return;\n\n if (ariaDescribedby) {\n trigger.setAttribute(\n 'aria-describedby',\n `${ariaDescribedby} ${this._tooltipId}`\n );\n } else {\n trigger.setAttribute('aria-describedby', `${this._tooltipId}`);\n }\n }\n\n public overlayOpenCancelledCallback({\n trigger,\n }: {\n trigger: HTMLElement;\n }): void {\n this.overlayCloseCallback({ trigger });\n }\n\n public overlayCloseCallback({ trigger }: { trigger: HTMLElement }): void {\n const ariaDescribedby = trigger.getAttribute('aria-describedby') || '';\n let descriptors = ariaDescribedby.split(/\\s+/);\n\n if (!this.hadTooltipId) {\n descriptors = descriptors.filter(\n (descriptor) => descriptor !== this._tooltipId\n );\n }\n if (descriptors.length) {\n trigger.setAttribute('aria-describedby', descriptors.join(' '));\n } else {\n trigger.removeAttribute('aria-describedby');\n }\n\n this.removeAttribute('aria-hidden');\n this.removeProxy();\n }\n\n private removeProxy(): void {\n this._proxy.remove();\n }\n\n private closeOverlayCallback?: Promise<() => void>;\n private abortOverlay: (cancelled: boolean) => void = () => {\n return;\n };\n\n private openOverlay = (): void => {\n const parentElement = this.parentElement as HTMLElement;\n const abortPromise: Promise<boolean> = new Promise((res) => {\n this.abortOverlay = res;\n });\n this.closeOverlayCallback = openOverlay(parentElement, 'hover', this, {\n abortPromise,\n offset: this.offset,\n placement: this.placement,\n });\n };\n\n private closeOverlay = async (): Promise<void> => {\n if (this.abortOverlay) this.abortOverlay(true);\n if (!this.closeOverlayCallback) return;\n (await this.closeOverlayCallback)();\n delete this.closeOverlayCallback;\n };\n\n private previousSlot?: string;\n\n private manageTooltip(): void {\n const parentElement = this.parentElement as HTMLElement;\n if (this.selfManaged) {\n if (this.slot) {\n this.previousSlot = this.slot;\n }\n this.slot = 'self-managed-tooltip';\n parentElement.addEventListener('pointerenter', this.openOverlay);\n parentElement.addEventListener('focusin', this.openOverlay);\n parentElement.addEventListener('pointerleave', this.closeOverlay);\n parentElement.addEventListener('focusout', this.closeOverlay);\n } else {\n if (this.previousSlot) {\n this.slot = this.previousSlot;\n } else if (this.slot === 'self-managed-tooltip') {\n this.removeAttribute('slot');\n }\n parentElement.removeEventListener('pointerenter', this.openOverlay);\n parentElement.removeEventListener('focusin', this.openOverlay);\n parentElement.removeEventListener(\n 'pointerleave',\n this.closeOverlay\n );\n parentElement.removeEventListener('focusout', this.closeOverlay);\n }\n }\n\n override render(): TemplateResult {\n return html`\n <slot name=\"icon\"></slot>\n <span id=\"label\"><slot></slot></span>\n <span id=\"tip\"></span>\n `;\n }\n\n protected override async update(\n changed: PropertyValues<this>\n ): Promise<void> {\n if (changed.has('open') && this.selfManaged) {\n if (this.open) {\n this.openOverlay();\n } else {\n this.closeOverlay();\n }\n }\n this.generateProxy();\n super.update(changed);\n }\n\n protected override updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n if (changed.has('selfManaged')) {\n this.manageTooltip();\n }\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAOA;AAAA;AAAA;AAAA;AAQA;AAEA;AAEO,aAAM,qBAAqB,YAAY;AAAA,EAC1C,uBAA6B;AACzB,SAAK,cAAc,IAAI,MAAM,cAAc,CAAC;AAAA,EAChD;AACJ;AAEA,eAAe,OAAO,iBAAiB,YAAY;AAS5C,+BAAsB,gBAAgB;AAAA,EAoDlC,cAAc;AACjB,UAAM;AA3CF,sBAAa,iCAAiC,SAAQ;AAGvD,uBAAc;AAGd,kBAAS;AACR,wBAAe;AAGhB,gBAAO;AAOP,qBAAuB;AAMtB,oBAAW;AA0GX,wBAA6C,MAAM;AACvD;AAAA,IACJ;AAEQ,uBAAc,MAAY;AAC9B,YAAM,gBAAgB,KAAK;AAC3B,YAAM,eAAiC,IAAI,QAAQ,CAAC,QAAQ;AACxD,aAAK,eAAe;AAAA,MACxB,CAAC;AACD,WAAK,uBAAuB,YAAY,eAAe,SAAS,MAAM;AAAA,QAClE;AAAA,QACA,QAAQ,KAAK;AAAA,QACb,WAAW,KAAK;AAAA,MACpB,CAAC;AAAA,IACL;AAEQ,wBAAe,YAA2B;AAC9C,UAAI,KAAK;AAAc,aAAK,aAAa,IAAI;AAC7C,UAAI,CAAC,KAAK;AAAsB;AAChC,MAAC,OAAM,KAAK,sBAAsB;AAClC,aAAO,KAAK;AAAA,IAChB;AA1GI,SAAK,iBAAiB,oBA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