@spectrum-web-components/color-loupe 0.37.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/color-loupe",
3
- "version": "0.37.0",
3
+ "version": "0.39.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,10 +57,11 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.37.0"
60
+ "@spectrum-web-components/base": "^0.39.0",
61
+ "@spectrum-web-components/opacity-checkerboard": "^0.39.0"
61
62
  },
62
63
  "devDependencies": {
63
- "@spectrum-css/colorloupe": "^4.1.10"
64
+ "@spectrum-css/colorloupe": "^4.1.18"
64
65
  },
65
66
  "types": "./src/index.d.ts",
66
67
  "customElements": "custom-elements.json",
@@ -68,5 +69,5 @@
68
69
  "./sp-*.js",
69
70
  "./**/*.dev.js"
70
71
  ],
71
- "gitHead": "d771f62f0d8063070af43283bb0fd5e3400bad06"
72
+ "gitHead": "2acc8390ef0ac6cc940958d4da705c9859155c0d"
72
73
  }
@@ -16,6 +16,7 @@ import {
16
16
  } from "@spectrum-web-components/base";
17
17
  import { property } from "@spectrum-web-components/base/src/decorators.js";
18
18
  import styles from "./color-loupe.css.js";
19
+ import opacityCheckerboardStyles from "@spectrum-web-components/opacity-checkerboard/src/opacity-checkerboard.css.js";
19
20
  export class ColorLoupe extends SpectrumElement {
20
21
  constructor() {
21
22
  super(...arguments);
@@ -23,10 +24,13 @@ export class ColorLoupe extends SpectrumElement {
23
24
  this.color = "rgba(255, 0, 0, 0.5)";
24
25
  }
25
26
  static get styles() {
26
- return [styles];
27
+ return [opacityCheckerboardStyles, styles];
27
28
  }
28
29
  render() {
29
30
  return html`
31
+ <div class="opacity-checkerboard loupe-clipped"></div>
32
+ <div class="spectrum-ColorLoupe-inner-border loupe-clipped"></div>
33
+ <div class="spectrum-ColorLoupe-outer-border loupe-clipped"></div>
30
34
  <svg
31
35
  aria-hidden="true"
32
36
  class="spectrum-ColorLoupe is-open"
@@ -49,40 +53,14 @@ export class ColorLoupe extends SpectrumElement {
49
53
  />
50
54
  <use xlink:href="#path" fill="black" />
51
55
  </mask>
52
- <pattern
53
- id="checkerboard-primary"
54
- patternUnits="userSpaceOnUse"
55
- width="16"
56
- height="16"
57
- class="spectrum-ColorLoupe-checkerboard-pattern"
58
- >
59
- <rect x="0" y="0" width="8" height="8" />
60
- <rect x="8" y="8" width="8" height="8" />
61
- </pattern>
62
- <pattern
63
- id="checkerboard-secondary"
64
- patternUnits="userSpaceOnUse"
65
- width="20"
66
- height="20"
67
- class="spectrum-ColorLoupe-checkerboard-pattern"
68
- >
69
- <rect x="0" y="0" width="10" height="10" />
70
- <rect x="10" y="10" width="10" height="10" />
71
- </pattern>
72
56
  </defs>
73
57
 
74
58
  <g class="spectrum-ColorLoupe-loupe">
75
59
  <g>
76
60
  <use
77
61
  xlink:href="#loupe-path"
78
- class="spectrum-ColorLoupe-checkerboard-background"
79
- />
80
- <use
81
- xlink:href="#loupe-path"
82
- class="spectrum-ColorLoupe-checkerboard-fill"
83
- />
84
- <use
85
- xlink:href="#loupe-path"
62
+ mask="url(#loupe-mask)"
63
+ transform="translate(2, 2)"
86
64
  class="spectrum-ColorLoupe-inner-border"
87
65
  />
88
66
  <use
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["ColorLoupe.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 SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './color-loupe.css.js';\n\n/**\n * @element sp-color-loupe\n */\nexport class ColorLoupe extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String })\n public color = 'rgba(255, 0, 0, 0.5)';\n\n protected override render(): TemplateResult {\n return html`\n <svg\n aria-hidden=\"true\"\n class=\"spectrum-ColorLoupe is-open\"\n overflow=\"visible\"\n style=\"--spectrum-picked-color: ${this\n .color}; position: absolute;\"\n >\n <defs>\n <path\n id=\"loupe-path\"\n d=\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\"\n transform=\"translate(2, 2)\"\n />\n <mask id=\"loupe-mask\">\n <rect\n x=\"0\"\n y=\"0\"\n height=\"100\"\n width=\"100\"\n fill=\"white\"\n />\n <use xlink:href=\"#path\" fill=\"black\" />\n </mask>\n <pattern\n id=\"checkerboard-primary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"16\"\n height=\"16\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"8\" height=\"8\" />\n <rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" />\n </pattern>\n <pattern\n id=\"checkerboard-secondary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"20\"\n height=\"20\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"10\" height=\"10\" />\n <rect x=\"10\" y=\"10\" width=\"10\" height=\"10\" />\n </pattern>\n </defs>\n\n <g class=\"spectrum-ColorLoupe-loupe\">\n <g>\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-background\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-fill\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-inner-border\"\n />\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n class=\"spectrum-ColorLoupe-outer-border\"\n />\n </g>\n </g>\n </svg>\n `;\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,OAAO,YAAY;AAKZ,aAAM,mBAAmB,gBAAgB;AAAA,EAAzC;AAAA;AAMH,SAAO,OAAO;AAGd,SAAO,QAAQ;AAAA;AAAA,EARf,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAQmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA,kDAKmC,KAC7B,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA+DtB;AACJ;AA5EW;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GALjC,WAMF;AAGA;AAAA,EADN,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GARjB,WASF;",
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 SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './color-loupe.css.js';\nimport opacityCheckerboardStyles from '@spectrum-web-components/opacity-checkerboard/src/opacity-checkerboard.css.js';\n\n/**\n * @element sp-color-loupe\n */\nexport class ColorLoupe extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [opacityCheckerboardStyles, styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String })\n public color = 'rgba(255, 0, 0, 0.5)';\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"opacity-checkerboard loupe-clipped\"></div>\n <div class=\"spectrum-ColorLoupe-inner-border loupe-clipped\"></div>\n <div class=\"spectrum-ColorLoupe-outer-border loupe-clipped\"></div>\n <svg\n aria-hidden=\"true\"\n class=\"spectrum-ColorLoupe is-open\"\n overflow=\"visible\"\n style=\"--spectrum-picked-color: ${this\n .color}; position: absolute;\"\n >\n <defs>\n <path\n id=\"loupe-path\"\n d=\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\"\n transform=\"translate(2, 2)\"\n />\n <mask id=\"loupe-mask\">\n <rect\n x=\"0\"\n y=\"0\"\n height=\"100\"\n width=\"100\"\n fill=\"white\"\n />\n <use xlink:href=\"#path\" fill=\"black\" />\n </mask>\n </defs>\n\n <g class=\"spectrum-ColorLoupe-loupe\">\n <g>\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n transform=\"translate(2, 2)\"\n class=\"spectrum-ColorLoupe-inner-border\"\n />\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n class=\"spectrum-ColorLoupe-outer-border\"\n />\n </g>\n </g>\n </svg>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,OAAO,YAAY;AACnB,OAAO,+BAA+B;AAK/B,aAAM,mBAAmB,gBAAgB;AAAA,EAAzC;AAAA;AAMH,SAAO,OAAO;AAGd,SAAO,QAAQ;AAAA;AAAA,EARf,WAA2B,SAAyB;AAChD,WAAO,CAAC,2BAA2B,MAAM;AAAA,EAC7C;AAAA,EAQmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kDAQmC,KAC7B,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqCtB;AACJ;AArDW;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GALjC,WAMF;AAGA;AAAA,EADN,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GARjB,WASF;",
6
6
  "names": []
7
7
  }
package/src/ColorLoupe.js CHANGED
@@ -1,4 +1,7 @@
1
- "use strict";var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var a=(o,r,s,t)=>{for(var e=t>1?void 0:t?u(r,s):r,l=o.length-1,p;l>=0;l--)(p=o[l])&&(e=(t?p(r,s,e):p(e))||e);return t&&e&&i(r,s,e),e};import{html as h,SpectrumElement as n}from"@spectrum-web-components/base";import{property as c}from"@spectrum-web-components/base/src/decorators.js";import d from"./color-loupe.css.js";export class ColorLoupe extends n{constructor(){super(...arguments);this.open=!1;this.color="rgba(255, 0, 0, 0.5)"}static get styles(){return[d]}render(){return h`
1
+ "use strict";var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var i=(l,r,t,o)=>{for(var e=o>1?void 0:o?c(r,t):r,s=l.length-1,p;s>=0;s--)(p=l[s])&&(e=(o?p(r,t,e):p(e))||e);return o&&e&&u(r,t,e),e};import{html as d,SpectrumElement as m}from"@spectrum-web-components/base";import{property as a}from"@spectrum-web-components/base/src/decorators.js";import n from"./color-loupe.css.js";import C from"@spectrum-web-components/opacity-checkerboard/src/opacity-checkerboard.css.js";export class ColorLoupe extends m{constructor(){super(...arguments);this.open=!1;this.color="rgba(255, 0, 0, 0.5)"}static get styles(){return[C,n]}render(){return d`
2
+ <div class="opacity-checkerboard loupe-clipped"></div>
3
+ <div class="spectrum-ColorLoupe-inner-border loupe-clipped"></div>
4
+ <div class="spectrum-ColorLoupe-outer-border loupe-clipped"></div>
2
5
  <svg
3
6
  aria-hidden="true"
4
7
  class="spectrum-ColorLoupe is-open"
@@ -21,40 +24,14 @@
21
24
  />
22
25
  <use xlink:href="#path" fill="black" />
23
26
  </mask>
24
- <pattern
25
- id="checkerboard-primary"
26
- patternUnits="userSpaceOnUse"
27
- width="16"
28
- height="16"
29
- class="spectrum-ColorLoupe-checkerboard-pattern"
30
- >
31
- <rect x="0" y="0" width="8" height="8" />
32
- <rect x="8" y="8" width="8" height="8" />
33
- </pattern>
34
- <pattern
35
- id="checkerboard-secondary"
36
- patternUnits="userSpaceOnUse"
37
- width="20"
38
- height="20"
39
- class="spectrum-ColorLoupe-checkerboard-pattern"
40
- >
41
- <rect x="0" y="0" width="10" height="10" />
42
- <rect x="10" y="10" width="10" height="10" />
43
- </pattern>
44
27
  </defs>
45
28
 
46
29
  <g class="spectrum-ColorLoupe-loupe">
47
30
  <g>
48
31
  <use
49
32
  xlink:href="#loupe-path"
50
- class="spectrum-ColorLoupe-checkerboard-background"
51
- />
52
- <use
53
- xlink:href="#loupe-path"
54
- class="spectrum-ColorLoupe-checkerboard-fill"
55
- />
56
- <use
57
- xlink:href="#loupe-path"
33
+ mask="url(#loupe-mask)"
34
+ transform="translate(2, 2)"
58
35
  class="spectrum-ColorLoupe-inner-border"
59
36
  />
60
37
  <use
@@ -65,5 +42,5 @@
65
42
  </g>
66
43
  </g>
67
44
  </svg>
68
- `}}a([c({type:Boolean,reflect:!0})],ColorLoupe.prototype,"open",2),a([c({type:String})],ColorLoupe.prototype,"color",2);
45
+ `}}i([a({type:Boolean,reflect:!0})],ColorLoupe.prototype,"open",2),i([a({type:String})],ColorLoupe.prototype,"color",2);
69
46
  //# sourceMappingURL=ColorLoupe.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["ColorLoupe.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 SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './color-loupe.css.js';\n\n/**\n * @element sp-color-loupe\n */\nexport class ColorLoupe extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String })\n public color = 'rgba(255, 0, 0, 0.5)';\n\n protected override render(): TemplateResult {\n return html`\n <svg\n aria-hidden=\"true\"\n class=\"spectrum-ColorLoupe is-open\"\n overflow=\"visible\"\n style=\"--spectrum-picked-color: ${this\n .color}; position: absolute;\"\n >\n <defs>\n <path\n id=\"loupe-path\"\n d=\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\"\n transform=\"translate(2, 2)\"\n />\n <mask id=\"loupe-mask\">\n <rect\n x=\"0\"\n y=\"0\"\n height=\"100\"\n width=\"100\"\n fill=\"white\"\n />\n <use xlink:href=\"#path\" fill=\"black\" />\n </mask>\n <pattern\n id=\"checkerboard-primary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"16\"\n height=\"16\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"8\" height=\"8\" />\n <rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" />\n </pattern>\n <pattern\n id=\"checkerboard-secondary\"\n patternUnits=\"userSpaceOnUse\"\n width=\"20\"\n height=\"20\"\n class=\"spectrum-ColorLoupe-checkerboard-pattern\"\n >\n <rect x=\"0\" y=\"0\" width=\"10\" height=\"10\" />\n <rect x=\"10\" y=\"10\" width=\"10\" height=\"10\" />\n </pattern>\n </defs>\n\n <g class=\"spectrum-ColorLoupe-loupe\">\n <g>\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-background\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-checkerboard-fill\"\n />\n <use\n xlink:href=\"#loupe-path\"\n class=\"spectrum-ColorLoupe-inner-border\"\n />\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n class=\"spectrum-ColorLoupe-outer-border\"\n />\n </g>\n </g>\n </svg>\n `;\n }\n}\n"],
5
- "mappings": "qNAYA,OAEI,QAAAA,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAOC,MAAY,uBAKZ,aAAM,mBAAmBF,CAAgB,CAAzC,kCAMH,KAAO,KAAO,GAGd,KAAO,MAAQ,uBARf,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAM,CAClB,CAQmB,QAAyB,CACxC,OAAOH;AAAA;AAAA;AAAA;AAAA;AAAA,kDAKmC,KAC7B,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SA+DtB,CACJ,CA5EWI,EAAA,CADNF,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GALjC,WAMF,oBAGAE,EAAA,CADNF,EAAS,CAAE,KAAM,MAAO,CAAC,GARjB,WASF",
6
- "names": ["html", "SpectrumElement", "property", "styles", "__decorateClass"]
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 SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './color-loupe.css.js';\nimport opacityCheckerboardStyles from '@spectrum-web-components/opacity-checkerboard/src/opacity-checkerboard.css.js';\n\n/**\n * @element sp-color-loupe\n */\nexport class ColorLoupe extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [opacityCheckerboardStyles, styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String })\n public color = 'rgba(255, 0, 0, 0.5)';\n\n protected override render(): TemplateResult {\n return html`\n <div class=\"opacity-checkerboard loupe-clipped\"></div>\n <div class=\"spectrum-ColorLoupe-inner-border loupe-clipped\"></div>\n <div class=\"spectrum-ColorLoupe-outer-border loupe-clipped\"></div>\n <svg\n aria-hidden=\"true\"\n class=\"spectrum-ColorLoupe is-open\"\n overflow=\"visible\"\n style=\"--spectrum-picked-color: ${this\n .color}; position: absolute;\"\n >\n <defs>\n <path\n id=\"loupe-path\"\n d=\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\"\n transform=\"translate(2, 2)\"\n />\n <mask id=\"loupe-mask\">\n <rect\n x=\"0\"\n y=\"0\"\n height=\"100\"\n width=\"100\"\n fill=\"white\"\n />\n <use xlink:href=\"#path\" fill=\"black\" />\n </mask>\n </defs>\n\n <g class=\"spectrum-ColorLoupe-loupe\">\n <g>\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n transform=\"translate(2, 2)\"\n class=\"spectrum-ColorLoupe-inner-border\"\n />\n <use\n xlink:href=\"#loupe-path\"\n mask=\"url(#loupe-mask)\"\n class=\"spectrum-ColorLoupe-outer-border\"\n />\n </g>\n </g>\n </svg>\n `;\n }\n}\n"],
5
+ "mappings": "qNAYA,OAEI,QAAAA,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAOC,MAAY,uBACnB,OAAOC,MAA+B,gFAK/B,aAAM,mBAAmBH,CAAgB,CAAzC,kCAMH,KAAO,KAAO,GAGd,KAAO,MAAQ,uBARf,WAA2B,QAAyB,CAChD,MAAO,CAACG,EAA2BD,CAAM,CAC7C,CAQmB,QAAyB,CACxC,OAAOH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kDAQmC,KAC7B,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAqCtB,CACJ,CArDWK,EAAA,CADNH,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GALjC,WAMF,oBAGAG,EAAA,CADNH,EAAS,CAAE,KAAM,MAAO,CAAC,GARjB,WASF",
6
+ "names": ["html", "SpectrumElement", "property", "styles", "opacityCheckerboardStyles", "__decorateClass"]
7
7
  }
@@ -42,7 +42,7 @@ const styles = css`
42
42
  );stroke-width:calc(var(
43
43
  --mod-colorloupe-outer-border-width,
44
44
  var(--spectrum-colorloupe-outer-border-width)
45
- ) + 2px)}.spectrum-ColorLoupe-checkerboard-pattern{fill:var(--spectrum-colorloupe-checkerboard-dark-color)}.spectrum-ColorLoupe-checkerboard-background{fill:var(--spectrum-colorloupe-checkerboard-light-color)}.spectrum-ColorLoupe-checkerboard-fill{fill:var(--spectrum-colorloupe-checkerboard-fill)}@media (forced-colors:active){:host{--highcontrast-colorloupe-outer-border-color:CanvasText}}svg{height:inherit;width:inherit}
45
+ ) + 2px)}.spectrum-ColorLoupe-checkerboard-pattern{fill:var(--spectrum-colorloupe-checkerboard-dark-color)}.spectrum-ColorLoupe-checkerboard-background{fill:var(--spectrum-colorloupe-checkerboard-light-color)}.spectrum-ColorLoupe-checkerboard-fill{fill:var(--spectrum-colorloupe-checkerboard-fill)}@media (forced-colors:active){:host{--highcontrast-colorloupe-outer-border-color:CanvasText}}svg{height:inherit;width:inherit}.loupe-clipped{clip-path:path("M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ")}.opacity-checkerboard{left:2px;position:absolute;top:2px}
46
46
  `;
47
47
  export default styles;
48
48
  //# sourceMappingURL=color-loupe.css.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["color-loupe.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-colorloupe-width:var(--spectrum-color-loupe-width);--spectrum-colorloupe-height:var(--spectrum-color-loupe-height);--spectrum-colorloupe-offset:var(\n--spectrum-color-loupe-bottom-to-color-handle\n);--spectrum-colorloupe-animation-distance:8px;--spectrum-colorloupe-drop-shadow-x:var(--spectrum-drop-shadow-x);--spectrum-colorloupe-drop-shadow-y:var(\n--spectrum-color-loupe-drop-shadow-y\n);--spectrum-colorloupe-drop-shadow-blur:var(\n--spectrum-color-loupe-drop-shadow-blur\n);--spectrum-colorloupe-drop-shadow-color:var(\n--spectrum-color-loupe-drop-shadow-color\n);--spectrum-colorloupe-outer-border-width:var(\n--spectrum-color-loupe-outer-border-width\n);--spectrum-colorloupe-inner-border-width:var(\n--spectrum-color-loupe-inner-border-width\n);--spectrum-colorloupe-outer-border-color:var(\n--spectrum-color-loupe-outer-border\n);--spectrum-colorloupe-inner-border-color:var(\n--spectrum-color-loupe-inner-border\n);--spectrum-colorloupe-checkerboard-dark-color:var(\n--spectrum-opacity-checkerboard-square-dark\n);--spectrum-colorloupe-checkerboard-light-color:var(\n--spectrum-opacity-checkerboard-square-light\n)}:host{block-size:var(--spectrum-colorloupe-height);filter:drop-shadow(var(\n--mod-colorloupe-drop-shadow-x,var(--spectrum-colorloupe-drop-shadow-x)\n) var(\n--mod-colorloupe-drop-shadow-y,var(--spectrum-colorloupe-drop-shadow-y)\n) var(\n--mod-colorloupe-drop-shadow-blur,var(--spectrum-colorloupe-drop-shadow-blur)\n) var(\n--mod-colorloupe-drop-shadow-color,var(--spectrum-colorloupe-drop-shadow-color)\n));inline-size:var(--spectrum-colorloupe-width);inset-block-end:calc(var(--spectrum-color-handle-size) - var(--spectrum-color-handle-outer-border-width) + var(--mod-colorloupe-offset, var(--spectrum-colorloupe-offset)));inset-inline-end:calc(50% - var(--spectrum-colorloupe-width)/2);opacity:0;pointer-events:none;position:absolute;transform:translateY(var(\n--mod-colorloupe-animation-distance,var(--spectrum-colorloupe-animation-distance)\n));transform-origin:bottom;transition:transform .1s ease-in-out,opacity .125s ease-in-out}:host([dir=rtl]){inset-inline-end:calc(50% - var(--spectrum-colorloupe-width)/2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.spectrum-ColorLoupe-inner-border{fill:var(--spectrum-picked-color);stroke:var(\n--mod-colorloupe-inner-border-color,var(--spectrum-colorloupe-inner-border-color)\n);stroke-width:var(\n--mod-colorloupe-inner-border-width,var(--spectrum-colorloupe-inner-border-width)\n)}.spectrum-ColorLoupe-outer-border{fill:none;stroke:var(\n--highcontrast-colorloupe-outer-border-color,var(\n--mod-colorloupe-outer-border-color,var(--spectrum-colorloupe-outer-border-color)\n)\n);stroke-width:calc(var(\n--mod-colorloupe-outer-border-width,\nvar(--spectrum-colorloupe-outer-border-width)\n) + 2px)}.spectrum-ColorLoupe-checkerboard-pattern{fill:var(--spectrum-colorloupe-checkerboard-dark-color)}.spectrum-ColorLoupe-checkerboard-background{fill:var(--spectrum-colorloupe-checkerboard-light-color)}.spectrum-ColorLoupe-checkerboard-fill{fill:var(--spectrum-colorloupe-checkerboard-fill)}@media (forced-colors:active){:host{--highcontrast-colorloupe-outer-border-color:CanvasText}}svg{height:inherit;width:inherit}\n`;\nexport default styles;"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-colorloupe-width:var(--spectrum-color-loupe-width);--spectrum-colorloupe-height:var(--spectrum-color-loupe-height);--spectrum-colorloupe-offset:var(\n--spectrum-color-loupe-bottom-to-color-handle\n);--spectrum-colorloupe-animation-distance:8px;--spectrum-colorloupe-drop-shadow-x:var(--spectrum-drop-shadow-x);--spectrum-colorloupe-drop-shadow-y:var(\n--spectrum-color-loupe-drop-shadow-y\n);--spectrum-colorloupe-drop-shadow-blur:var(\n--spectrum-color-loupe-drop-shadow-blur\n);--spectrum-colorloupe-drop-shadow-color:var(\n--spectrum-color-loupe-drop-shadow-color\n);--spectrum-colorloupe-outer-border-width:var(\n--spectrum-color-loupe-outer-border-width\n);--spectrum-colorloupe-inner-border-width:var(\n--spectrum-color-loupe-inner-border-width\n);--spectrum-colorloupe-outer-border-color:var(\n--spectrum-color-loupe-outer-border\n);--spectrum-colorloupe-inner-border-color:var(\n--spectrum-color-loupe-inner-border\n);--spectrum-colorloupe-checkerboard-dark-color:var(\n--spectrum-opacity-checkerboard-square-dark\n);--spectrum-colorloupe-checkerboard-light-color:var(\n--spectrum-opacity-checkerboard-square-light\n)}:host{block-size:var(--spectrum-colorloupe-height);filter:drop-shadow(var(\n--mod-colorloupe-drop-shadow-x,var(--spectrum-colorloupe-drop-shadow-x)\n) var(\n--mod-colorloupe-drop-shadow-y,var(--spectrum-colorloupe-drop-shadow-y)\n) var(\n--mod-colorloupe-drop-shadow-blur,var(--spectrum-colorloupe-drop-shadow-blur)\n) var(\n--mod-colorloupe-drop-shadow-color,var(--spectrum-colorloupe-drop-shadow-color)\n));inline-size:var(--spectrum-colorloupe-width);inset-block-end:calc(var(--spectrum-color-handle-size) - var(--spectrum-color-handle-outer-border-width) + var(--mod-colorloupe-offset, var(--spectrum-colorloupe-offset)));inset-inline-end:calc(50% - var(--spectrum-colorloupe-width)/2);opacity:0;pointer-events:none;position:absolute;transform:translateY(var(\n--mod-colorloupe-animation-distance,var(--spectrum-colorloupe-animation-distance)\n));transform-origin:bottom;transition:transform .1s ease-in-out,opacity .125s ease-in-out}:host([dir=rtl]){inset-inline-end:calc(50% - var(--spectrum-colorloupe-width)/2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.spectrum-ColorLoupe-inner-border{fill:var(--spectrum-picked-color);stroke:var(\n--mod-colorloupe-inner-border-color,var(--spectrum-colorloupe-inner-border-color)\n);stroke-width:var(\n--mod-colorloupe-inner-border-width,var(--spectrum-colorloupe-inner-border-width)\n)}.spectrum-ColorLoupe-outer-border{fill:none;stroke:var(\n--highcontrast-colorloupe-outer-border-color,var(\n--mod-colorloupe-outer-border-color,var(--spectrum-colorloupe-outer-border-color)\n)\n);stroke-width:calc(var(\n--mod-colorloupe-outer-border-width,\nvar(--spectrum-colorloupe-outer-border-width)\n) + 2px)}.spectrum-ColorLoupe-checkerboard-pattern{fill:var(--spectrum-colorloupe-checkerboard-dark-color)}.spectrum-ColorLoupe-checkerboard-background{fill:var(--spectrum-colorloupe-checkerboard-light-color)}.spectrum-ColorLoupe-checkerboard-fill{fill:var(--spectrum-colorloupe-checkerboard-fill)}@media (forced-colors:active){:host{--highcontrast-colorloupe-outer-border-color:CanvasText}}svg{height:inherit;width:inherit}.loupe-clipped{clip-path:path(\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\")}.opacity-checkerboard{left:2px;position:absolute;top:2px}\n`;\nexport default styles;"],
5
5
  "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4Cf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -40,6 +40,6 @@
40
40
  );stroke-width:calc(var(
41
41
  --mod-colorloupe-outer-border-width,
42
42
  var(--spectrum-colorloupe-outer-border-width)
43
- ) + 2px)}.spectrum-ColorLoupe-checkerboard-pattern{fill:var(--spectrum-colorloupe-checkerboard-dark-color)}.spectrum-ColorLoupe-checkerboard-background{fill:var(--spectrum-colorloupe-checkerboard-light-color)}.spectrum-ColorLoupe-checkerboard-fill{fill:var(--spectrum-colorloupe-checkerboard-fill)}@media (forced-colors:active){:host{--highcontrast-colorloupe-outer-border-color:CanvasText}}svg{height:inherit;width:inherit}
43
+ ) + 2px)}.spectrum-ColorLoupe-checkerboard-pattern{fill:var(--spectrum-colorloupe-checkerboard-dark-color)}.spectrum-ColorLoupe-checkerboard-background{fill:var(--spectrum-colorloupe-checkerboard-light-color)}.spectrum-ColorLoupe-checkerboard-fill{fill:var(--spectrum-colorloupe-checkerboard-fill)}@media (forced-colors:active){:host{--highcontrast-colorloupe-outer-border-color:CanvasText}}svg{height:inherit;width:inherit}.loupe-clipped{clip-path:path("M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ")}.opacity-checkerboard{left:2px;position:absolute;top:2px}
44
44
  `;export default r;
45
45
  //# sourceMappingURL=color-loupe.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["color-loupe.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-colorloupe-width:var(--spectrum-color-loupe-width);--spectrum-colorloupe-height:var(--spectrum-color-loupe-height);--spectrum-colorloupe-offset:var(\n--spectrum-color-loupe-bottom-to-color-handle\n);--spectrum-colorloupe-animation-distance:8px;--spectrum-colorloupe-drop-shadow-x:var(--spectrum-drop-shadow-x);--spectrum-colorloupe-drop-shadow-y:var(\n--spectrum-color-loupe-drop-shadow-y\n);--spectrum-colorloupe-drop-shadow-blur:var(\n--spectrum-color-loupe-drop-shadow-blur\n);--spectrum-colorloupe-drop-shadow-color:var(\n--spectrum-color-loupe-drop-shadow-color\n);--spectrum-colorloupe-outer-border-width:var(\n--spectrum-color-loupe-outer-border-width\n);--spectrum-colorloupe-inner-border-width:var(\n--spectrum-color-loupe-inner-border-width\n);--spectrum-colorloupe-outer-border-color:var(\n--spectrum-color-loupe-outer-border\n);--spectrum-colorloupe-inner-border-color:var(\n--spectrum-color-loupe-inner-border\n);--spectrum-colorloupe-checkerboard-dark-color:var(\n--spectrum-opacity-checkerboard-square-dark\n);--spectrum-colorloupe-checkerboard-light-color:var(\n--spectrum-opacity-checkerboard-square-light\n)}:host{block-size:var(--spectrum-colorloupe-height);filter:drop-shadow(var(\n--mod-colorloupe-drop-shadow-x,var(--spectrum-colorloupe-drop-shadow-x)\n) var(\n--mod-colorloupe-drop-shadow-y,var(--spectrum-colorloupe-drop-shadow-y)\n) var(\n--mod-colorloupe-drop-shadow-blur,var(--spectrum-colorloupe-drop-shadow-blur)\n) var(\n--mod-colorloupe-drop-shadow-color,var(--spectrum-colorloupe-drop-shadow-color)\n));inline-size:var(--spectrum-colorloupe-width);inset-block-end:calc(var(--spectrum-color-handle-size) - var(--spectrum-color-handle-outer-border-width) + var(--mod-colorloupe-offset, var(--spectrum-colorloupe-offset)));inset-inline-end:calc(50% - var(--spectrum-colorloupe-width)/2);opacity:0;pointer-events:none;position:absolute;transform:translateY(var(\n--mod-colorloupe-animation-distance,var(--spectrum-colorloupe-animation-distance)\n));transform-origin:bottom;transition:transform .1s ease-in-out,opacity .125s ease-in-out}:host([dir=rtl]){inset-inline-end:calc(50% - var(--spectrum-colorloupe-width)/2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.spectrum-ColorLoupe-inner-border{fill:var(--spectrum-picked-color);stroke:var(\n--mod-colorloupe-inner-border-color,var(--spectrum-colorloupe-inner-border-color)\n);stroke-width:var(\n--mod-colorloupe-inner-border-width,var(--spectrum-colorloupe-inner-border-width)\n)}.spectrum-ColorLoupe-outer-border{fill:none;stroke:var(\n--highcontrast-colorloupe-outer-border-color,var(\n--mod-colorloupe-outer-border-color,var(--spectrum-colorloupe-outer-border-color)\n)\n);stroke-width:calc(var(\n--mod-colorloupe-outer-border-width,\nvar(--spectrum-colorloupe-outer-border-width)\n) + 2px)}.spectrum-ColorLoupe-checkerboard-pattern{fill:var(--spectrum-colorloupe-checkerboard-dark-color)}.spectrum-ColorLoupe-checkerboard-background{fill:var(--spectrum-colorloupe-checkerboard-light-color)}.spectrum-ColorLoupe-checkerboard-fill{fill:var(--spectrum-colorloupe-checkerboard-fill)}@media (forced-colors:active){:host{--highcontrast-colorloupe-outer-border-color:CanvasText}}svg{height:inherit;width:inherit}\n`;\nexport default styles;"],
4
+ "sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-colorloupe-width:var(--spectrum-color-loupe-width);--spectrum-colorloupe-height:var(--spectrum-color-loupe-height);--spectrum-colorloupe-offset:var(\n--spectrum-color-loupe-bottom-to-color-handle\n);--spectrum-colorloupe-animation-distance:8px;--spectrum-colorloupe-drop-shadow-x:var(--spectrum-drop-shadow-x);--spectrum-colorloupe-drop-shadow-y:var(\n--spectrum-color-loupe-drop-shadow-y\n);--spectrum-colorloupe-drop-shadow-blur:var(\n--spectrum-color-loupe-drop-shadow-blur\n);--spectrum-colorloupe-drop-shadow-color:var(\n--spectrum-color-loupe-drop-shadow-color\n);--spectrum-colorloupe-outer-border-width:var(\n--spectrum-color-loupe-outer-border-width\n);--spectrum-colorloupe-inner-border-width:var(\n--spectrum-color-loupe-inner-border-width\n);--spectrum-colorloupe-outer-border-color:var(\n--spectrum-color-loupe-outer-border\n);--spectrum-colorloupe-inner-border-color:var(\n--spectrum-color-loupe-inner-border\n);--spectrum-colorloupe-checkerboard-dark-color:var(\n--spectrum-opacity-checkerboard-square-dark\n);--spectrum-colorloupe-checkerboard-light-color:var(\n--spectrum-opacity-checkerboard-square-light\n)}:host{block-size:var(--spectrum-colorloupe-height);filter:drop-shadow(var(\n--mod-colorloupe-drop-shadow-x,var(--spectrum-colorloupe-drop-shadow-x)\n) var(\n--mod-colorloupe-drop-shadow-y,var(--spectrum-colorloupe-drop-shadow-y)\n) var(\n--mod-colorloupe-drop-shadow-blur,var(--spectrum-colorloupe-drop-shadow-blur)\n) var(\n--mod-colorloupe-drop-shadow-color,var(--spectrum-colorloupe-drop-shadow-color)\n));inline-size:var(--spectrum-colorloupe-width);inset-block-end:calc(var(--spectrum-color-handle-size) - var(--spectrum-color-handle-outer-border-width) + var(--mod-colorloupe-offset, var(--spectrum-colorloupe-offset)));inset-inline-end:calc(50% - var(--spectrum-colorloupe-width)/2);opacity:0;pointer-events:none;position:absolute;transform:translateY(var(\n--mod-colorloupe-animation-distance,var(--spectrum-colorloupe-animation-distance)\n));transform-origin:bottom;transition:transform .1s ease-in-out,opacity .125s ease-in-out}:host([dir=rtl]){inset-inline-end:calc(50% - var(--spectrum-colorloupe-width)/2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.spectrum-ColorLoupe-inner-border{fill:var(--spectrum-picked-color);stroke:var(\n--mod-colorloupe-inner-border-color,var(--spectrum-colorloupe-inner-border-color)\n);stroke-width:var(\n--mod-colorloupe-inner-border-width,var(--spectrum-colorloupe-inner-border-width)\n)}.spectrum-ColorLoupe-outer-border{fill:none;stroke:var(\n--highcontrast-colorloupe-outer-border-color,var(\n--mod-colorloupe-outer-border-color,var(--spectrum-colorloupe-outer-border-color)\n)\n);stroke-width:calc(var(\n--mod-colorloupe-outer-border-width,\nvar(--spectrum-colorloupe-outer-border-width)\n) + 2px)}.spectrum-ColorLoupe-checkerboard-pattern{fill:var(--spectrum-colorloupe-checkerboard-dark-color)}.spectrum-ColorLoupe-checkerboard-background{fill:var(--spectrum-colorloupe-checkerboard-light-color)}.spectrum-ColorLoupe-checkerboard-fill{fill:var(--spectrum-colorloupe-checkerboard-fill)}@media (forced-colors:active){:host{--highcontrast-colorloupe-outer-border-color:CanvasText}}svg{height:inherit;width:inherit}.loupe-clipped{clip-path:path(\"M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ\")}.opacity-checkerboard{left:2px;position:absolute;top:2px}\n`;\nexport default styles;"],
5
5
  "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA4Cf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }