@spectrum-web-components/color-loupe 0.35.1-rc.34 → 0.35.1-rc.43

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.35.1-rc.34+2cc53a49a",
3
+ "version": "0.35.1-rc.43+432051b80",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,7 +57,7 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.35.1-rc.34+2cc53a49a"
60
+ "@spectrum-web-components/base": "^0.35.1-rc.43+432051b80"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@spectrum-css/colorloupe": "^4.1.6"
@@ -68,5 +68,5 @@
68
68
  "./sp-*.js",
69
69
  "./**/*.dev.js"
70
70
  ],
71
- "gitHead": "2cc53a49a9491e4d86ed3c39ab430fda8a7a5b96"
71
+ "gitHead": "432051b8085e7c86032333fa296bfa5334d47d84"
72
72
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["ColorLoupe.ts"],
4
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;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+DjB;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;",
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;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["ColorLoupe.ts"],
4
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;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+DjB,CACJ,CA5EWI,EAAA,CADNF,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GALjC,WAMF,oBAGAE,EAAA,CADNF,EAAS,CAAE,KAAM,MAAO,CAAC,GARjB,WASF",
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
6
  "names": ["html", "SpectrumElement", "property", "styles", "__decorateClass"]
7
7
  }
@@ -1,89 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-color-loupe.ts",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-color-loupe",
13
- "declaration": {
14
- "name": "ColorLoupe",
15
- "module": "/src/ColorLoupe.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/ColorLoupe.ts",
23
- "declarations": [
24
- {
25
- "kind": "class",
26
- "description": "",
27
- "name": "ColorLoupe",
28
- "members": [
29
- {
30
- "kind": "field",
31
- "name": "open",
32
- "type": {
33
- "text": "boolean"
34
- },
35
- "privacy": "public",
36
- "default": "false",
37
- "attribute": "open",
38
- "reflects": true
39
- },
40
- {
41
- "kind": "field",
42
- "name": "color",
43
- "type": {
44
- "text": "string"
45
- },
46
- "privacy": "public",
47
- "default": "'rgba(255, 0, 0, 0.5)'",
48
- "attribute": "color"
49
- }
50
- ],
51
- "attributes": [
52
- {
53
- "name": "open",
54
- "type": {
55
- "text": "boolean"
56
- },
57
- "default": "false",
58
- "fieldName": "open"
59
- },
60
- {
61
- "name": "color",
62
- "type": {
63
- "text": "string"
64
- },
65
- "default": "'rgba(255, 0, 0, 0.5)'",
66
- "fieldName": "color"
67
- }
68
- ],
69
- "superclass": {
70
- "name": "SpectrumElement",
71
- "package": "@spectrum-web-components/base"
72
- },
73
- "tagName": "sp-color-loupe",
74
- "customElement": true
75
- }
76
- ],
77
- "exports": [
78
- {
79
- "kind": "js",
80
- "name": "ColorLoupe",
81
- "declaration": {
82
- "name": "ColorLoupe",
83
- "module": "src/ColorLoupe.ts"
84
- }
85
- }
86
- ]
87
- }
88
- ]
89
- }