@spectrum-web-components/color-handle 0.40.5 → 0.41.1

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-handle",
3
- "version": "0.40.5",
3
+ "version": "0.41.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,12 +57,12 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.40.5",
61
- "@spectrum-web-components/color-loupe": "^0.40.5",
62
- "@spectrum-web-components/opacity-checkerboard": "^0.40.5"
60
+ "@spectrum-web-components/base": "^0.41.1",
61
+ "@spectrum-web-components/color-loupe": "^0.41.1",
62
+ "@spectrum-web-components/opacity-checkerboard": "^0.41.1"
63
63
  },
64
64
  "devDependencies": {
65
- "@spectrum-css/colorhandle": "^7.1.0"
65
+ "@spectrum-css/colorhandle": "^7.1.1"
66
66
  },
67
67
  "types": "./src/index.d.ts",
68
68
  "customElements": "custom-elements.json",
@@ -70,5 +70,5 @@
70
70
  "./sp-*.js",
71
71
  "./**/*.dev.js"
72
72
  ],
73
- "gitHead": "2e0006478841b07af63c19a0167a136bf724d064"
73
+ "gitHead": "1eded35d98d01973b40990486b86840ba464a2da"
74
74
  }
@@ -17,7 +17,7 @@ const styles = css`
17
17
  --spectrum-disabled-content-color
18
18
  );--spectrum-colorhandle-fill-color-disabled:var(
19
19
  --spectrum-disabled-background-color
20
- );--mod-opacity-checkerboard-position:50%}:host{block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(
20
+ );--mod-opacity-checkerboard-position:50%;block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(
21
21
  --highcontrast-colorhandle-border-color,var(
22
22
  --mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)
23
23
  )
@@ -27,11 +27,7 @@ const styles = css`
27
27
  --mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)
28
28
  ) var(
29
29
  --mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)
30
- );box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);position:absolute;transition:all var(
31
- --mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)
32
- ) var(
33
- --mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)
34
- );z-index:1}:host:after{block-size:var(
30
+ );box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);position:absolute;z-index:1}:host:after{block-size:var(
35
31
  --mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)
36
32
  );border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:"";display:block;inline-size:var(
37
33
  --mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)
@@ -41,7 +37,11 @@ var(--spectrum-colorhandle-hitarea-size)
41
37
  )/2);inset-inline:calc(50% - var(
42
38
  --mod-colorhandle-hitarea-size,
43
39
  var(--spectrum-colorhandle-hitarea-size)
44
- )/2);position:absolute}:host(.focus-visible),:host([focused]){block-size:var(
40
+ )/2);position:absolute}:host{transition:all var(
41
+ --mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)
42
+ ) var(
43
+ --mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)
44
+ )}:host(.focus-visible),:host([focused]){block-size:var(
45
45
  --mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)
46
46
  );inline-size:var(
47
47
  --mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["color-handle.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2024 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-colorhandle-size:var(--spectrum-color-handle-size);--spectrum-colorhandle-focused-size:var(\n--spectrum-color-handle-size-key-focus\n);--spectrum-colorhandle-hitarea-size:var(\n--spectrum-color-control-track-width\n);--spectrum-colorhandle-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-colorhandle-animation-easing:ease-in-out;--spectrum-colorhandle-outer-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-outer-border-opacity));--spectrum-colorhandle-outer-border-width:var(\n--spectrum-color-handle-outer-border-width\n);--spectrum-colorhandle-inner-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-inner-border-opacity));--spectrum-colorhandle-inner-border-width:var(\n--spectrum-color-handle-inner-border-width\n);--spectrum-colorhandle-border-width:var(\n--spectrum-color-handle-border-width\n);--spectrum-colorhandle-border-color:var(--spectrum-white);--spectrum-colorhandle-border-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-colorhandle-fill-color-disabled:var(\n--spectrum-disabled-background-color\n);--mod-opacity-checkerboard-position:50%}:host{block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(\n--highcontrast-colorhandle-border-color,var(\n--mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)\n)\n);border-radius:100%;border-style:solid;border-width:var(\n--mod-colorhandle-border-width,var(--spectrum-colorhandle-border-width)\n);box-shadow:0 0 0 var(\n--mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)\n) var(\n--mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)\n);box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);position:absolute;transition:all var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n);z-index:1}:host:after{block-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:\"\";display:block;inline-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);inset-block:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);inset-inline:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);position:absolute}:host(.focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host(:focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host([disabled]){background:var(\n--highcontrast-colorhandle-fill-color-disabled,var(\n--mod-colorhandle-fill-color-disabled,var(--spectrum-colorhandle-fill-color-disabled)\n)\n);border-color:var(\n--highcontrast-colorhandle-border-color-disabled,var(\n--mod-colorhandle-border-color-disabled,var(--spectrum-colorhandle-border-color-disabled)\n)\n);box-shadow:none;pointer-events:none}:host([disabled]) .inner{display:none}.inner{background-color:var(--spectrum-picked-color);block-size:100%;border-radius:100%;box-shadow:inset 0 0 0 var(\n--mod-colorhandle-inner-border-width,var(--spectrum-colorhandle-inner-border-width)\n) var(\n--mod-colorhandle-inner-border-color,var(--spectrum-colorhandle-inner-border-color)\n);inline-size:100%}@media (forced-colors:active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-colorhandle-border-color-disabled:GrayText;--highcontrast-colorhandle-fill-color-disabled:Canvas}}:host{touch-action:none;transition:inline-size var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),block-size var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),border-width var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),margin-inline var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),margin-block var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n)}:host(:focus){outline:none}\n`;\nexport default styles;"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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-colorhandle-size:var(--spectrum-color-handle-size);--spectrum-colorhandle-focused-size:var(\n--spectrum-color-handle-size-key-focus\n);--spectrum-colorhandle-hitarea-size:var(\n--spectrum-color-control-track-width\n);--spectrum-colorhandle-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-colorhandle-animation-easing:ease-in-out;--spectrum-colorhandle-outer-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-outer-border-opacity));--spectrum-colorhandle-outer-border-width:var(\n--spectrum-color-handle-outer-border-width\n);--spectrum-colorhandle-inner-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-inner-border-opacity));--spectrum-colorhandle-inner-border-width:var(\n--spectrum-color-handle-inner-border-width\n);--spectrum-colorhandle-border-width:var(\n--spectrum-color-handle-border-width\n);--spectrum-colorhandle-border-color:var(--spectrum-white);--spectrum-colorhandle-border-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-colorhandle-fill-color-disabled:var(\n--spectrum-disabled-background-color\n);--mod-opacity-checkerboard-position:50%;block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(\n--highcontrast-colorhandle-border-color,var(\n--mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)\n)\n);border-radius:100%;border-style:solid;border-width:var(\n--mod-colorhandle-border-width,var(--spectrum-colorhandle-border-width)\n);box-shadow:0 0 0 var(\n--mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)\n) var(\n--mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)\n);box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);position:absolute;z-index:1}:host:after{block-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:\"\";display:block;inline-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);inset-block:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);inset-inline:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);position:absolute}:host{transition:all var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n)}:host(.focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host(:focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host([disabled]){background:var(\n--highcontrast-colorhandle-fill-color-disabled,var(\n--mod-colorhandle-fill-color-disabled,var(--spectrum-colorhandle-fill-color-disabled)\n)\n);border-color:var(\n--highcontrast-colorhandle-border-color-disabled,var(\n--mod-colorhandle-border-color-disabled,var(--spectrum-colorhandle-border-color-disabled)\n)\n);box-shadow:none;pointer-events:none}:host([disabled]) .inner{display:none}.inner{background-color:var(--spectrum-picked-color);block-size:100%;border-radius:100%;box-shadow:inset 0 0 0 var(\n--mod-colorhandle-inner-border-width,var(--spectrum-colorhandle-inner-border-width)\n) var(\n--mod-colorhandle-inner-border-color,var(--spectrum-colorhandle-inner-border-color)\n);inline-size:100%}@media (forced-colors:active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-colorhandle-border-color-disabled:GrayText;--highcontrast-colorhandle-fill-color-disabled:Canvas}}:host{touch-action:none;transition:inline-size var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),block-size var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),border-width var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),margin-inline var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),margin-block var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n)}:host(:focus){outline:none}\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmFf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -15,7 +15,7 @@
15
15
  --spectrum-disabled-content-color
16
16
  );--spectrum-colorhandle-fill-color-disabled:var(
17
17
  --spectrum-disabled-background-color
18
- );--mod-opacity-checkerboard-position:50%}:host{block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(
18
+ );--mod-opacity-checkerboard-position:50%;block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(
19
19
  --highcontrast-colorhandle-border-color,var(
20
20
  --mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)
21
21
  )
@@ -25,11 +25,7 @@
25
25
  --mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)
26
26
  ) var(
27
27
  --mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)
28
- );box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);position:absolute;transition:all var(
29
- --mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)
30
- ) var(
31
- --mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)
32
- );z-index:1}:host:after{block-size:var(
28
+ );box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);position:absolute;z-index:1}:host:after{block-size:var(
33
29
  --mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)
34
30
  );border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:"";display:block;inline-size:var(
35
31
  --mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)
@@ -39,7 +35,11 @@ var(--spectrum-colorhandle-hitarea-size)
39
35
  )/2);inset-inline:calc(50% - var(
40
36
  --mod-colorhandle-hitarea-size,
41
37
  var(--spectrum-colorhandle-hitarea-size)
42
- )/2);position:absolute}:host(.focus-visible),:host([focused]){block-size:var(
38
+ )/2);position:absolute}:host{transition:all var(
39
+ --mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)
40
+ ) var(
41
+ --mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)
42
+ )}:host(.focus-visible),:host([focused]){block-size:var(
43
43
  --mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)
44
44
  );inline-size:var(
45
45
  --mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["color-handle.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2024 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-colorhandle-size:var(--spectrum-color-handle-size);--spectrum-colorhandle-focused-size:var(\n--spectrum-color-handle-size-key-focus\n);--spectrum-colorhandle-hitarea-size:var(\n--spectrum-color-control-track-width\n);--spectrum-colorhandle-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-colorhandle-animation-easing:ease-in-out;--spectrum-colorhandle-outer-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-outer-border-opacity));--spectrum-colorhandle-outer-border-width:var(\n--spectrum-color-handle-outer-border-width\n);--spectrum-colorhandle-inner-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-inner-border-opacity));--spectrum-colorhandle-inner-border-width:var(\n--spectrum-color-handle-inner-border-width\n);--spectrum-colorhandle-border-width:var(\n--spectrum-color-handle-border-width\n);--spectrum-colorhandle-border-color:var(--spectrum-white);--spectrum-colorhandle-border-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-colorhandle-fill-color-disabled:var(\n--spectrum-disabled-background-color\n);--mod-opacity-checkerboard-position:50%}:host{block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(\n--highcontrast-colorhandle-border-color,var(\n--mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)\n)\n);border-radius:100%;border-style:solid;border-width:var(\n--mod-colorhandle-border-width,var(--spectrum-colorhandle-border-width)\n);box-shadow:0 0 0 var(\n--mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)\n) var(\n--mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)\n);box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);position:absolute;transition:all var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n);z-index:1}:host:after{block-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:\"\";display:block;inline-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);inset-block:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);inset-inline:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);position:absolute}:host(.focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host(:focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host([disabled]){background:var(\n--highcontrast-colorhandle-fill-color-disabled,var(\n--mod-colorhandle-fill-color-disabled,var(--spectrum-colorhandle-fill-color-disabled)\n)\n);border-color:var(\n--highcontrast-colorhandle-border-color-disabled,var(\n--mod-colorhandle-border-color-disabled,var(--spectrum-colorhandle-border-color-disabled)\n)\n);box-shadow:none;pointer-events:none}:host([disabled]) .inner{display:none}.inner{background-color:var(--spectrum-picked-color);block-size:100%;border-radius:100%;box-shadow:inset 0 0 0 var(\n--mod-colorhandle-inner-border-width,var(--spectrum-colorhandle-inner-border-width)\n) var(\n--mod-colorhandle-inner-border-color,var(--spectrum-colorhandle-inner-border-color)\n);inline-size:100%}@media (forced-colors:active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-colorhandle-border-color-disabled:GrayText;--highcontrast-colorhandle-fill-color-disabled:Canvas}}:host{touch-action:none;transition:inline-size var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),block-size var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),border-width var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),margin-inline var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),margin-block var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n)}:host(:focus){outline:none}\n`;\nexport default styles;"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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-colorhandle-size:var(--spectrum-color-handle-size);--spectrum-colorhandle-focused-size:var(\n--spectrum-color-handle-size-key-focus\n);--spectrum-colorhandle-hitarea-size:var(\n--spectrum-color-control-track-width\n);--spectrum-colorhandle-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-colorhandle-animation-easing:ease-in-out;--spectrum-colorhandle-outer-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-outer-border-opacity));--spectrum-colorhandle-outer-border-width:var(\n--spectrum-color-handle-outer-border-width\n);--spectrum-colorhandle-inner-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-inner-border-opacity));--spectrum-colorhandle-inner-border-width:var(\n--spectrum-color-handle-inner-border-width\n);--spectrum-colorhandle-border-width:var(\n--spectrum-color-handle-border-width\n);--spectrum-colorhandle-border-color:var(--spectrum-white);--spectrum-colorhandle-border-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-colorhandle-fill-color-disabled:var(\n--spectrum-disabled-background-color\n);--mod-opacity-checkerboard-position:50%;block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(\n--highcontrast-colorhandle-border-color,var(\n--mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)\n)\n);border-radius:100%;border-style:solid;border-width:var(\n--mod-colorhandle-border-width,var(--spectrum-colorhandle-border-width)\n);box-shadow:0 0 0 var(\n--mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)\n) var(\n--mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)\n);box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);position:absolute;z-index:1}:host:after{block-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:\"\";display:block;inline-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);inset-block:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);inset-inline:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);position:absolute}:host{transition:all var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n)}:host(.focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host(:focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host([disabled]){background:var(\n--highcontrast-colorhandle-fill-color-disabled,var(\n--mod-colorhandle-fill-color-disabled,var(--spectrum-colorhandle-fill-color-disabled)\n)\n);border-color:var(\n--highcontrast-colorhandle-border-color-disabled,var(\n--mod-colorhandle-border-color-disabled,var(--spectrum-colorhandle-border-color-disabled)\n)\n);box-shadow:none;pointer-events:none}:host([disabled]) .inner{display:none}.inner{background-color:var(--spectrum-picked-color);block-size:100%;border-radius:100%;box-shadow:inset 0 0 0 var(\n--mod-colorhandle-inner-border-width,var(--spectrum-colorhandle-inner-border-width)\n) var(\n--mod-colorhandle-inner-border-color,var(--spectrum-colorhandle-inner-border-color)\n);inline-size:100%}@media (forced-colors:active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-colorhandle-border-color-disabled:GrayText;--highcontrast-colorhandle-fill-color-disabled:Canvas}}:host{touch-action:none;transition:inline-size var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),block-size var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),border-width var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),margin-inline var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n),margin-block var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n)}:host(:focus){outline:none}\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmFf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -17,7 +17,7 @@ const styles = css`
17
17
  --spectrum-disabled-content-color
18
18
  );--spectrum-colorhandle-fill-color-disabled:var(
19
19
  --spectrum-disabled-background-color
20
- );--mod-opacity-checkerboard-position:50%}:host{block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(
20
+ );--mod-opacity-checkerboard-position:50%;block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(
21
21
  --highcontrast-colorhandle-border-color,var(
22
22
  --mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)
23
23
  )
@@ -27,11 +27,7 @@ const styles = css`
27
27
  --mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)
28
28
  ) var(
29
29
  --mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)
30
- );box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);position:absolute;transition:all var(
31
- --mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)
32
- ) var(
33
- --mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)
34
- );z-index:1}:host:after{block-size:var(
30
+ );box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);position:absolute;z-index:1}:host:after{block-size:var(
35
31
  --mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)
36
32
  );border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:"";display:block;inline-size:var(
37
33
  --mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)
@@ -41,7 +37,11 @@ var(--spectrum-colorhandle-hitarea-size)
41
37
  )/2);inset-inline:calc(50% - var(
42
38
  --mod-colorhandle-hitarea-size,
43
39
  var(--spectrum-colorhandle-hitarea-size)
44
- )/2);position:absolute}:host(.focus-visible),:host([focused]){block-size:var(
40
+ )/2);position:absolute}:host{transition:all var(
41
+ --mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)
42
+ ) var(
43
+ --mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)
44
+ )}:host(.focus-visible),:host([focused]){block-size:var(
45
45
  --mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)
46
46
  );inline-size:var(
47
47
  --mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-color-handle.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2024 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-colorhandle-size:var(--spectrum-color-handle-size);--spectrum-colorhandle-focused-size:var(\n--spectrum-color-handle-size-key-focus\n);--spectrum-colorhandle-hitarea-size:var(\n--spectrum-color-control-track-width\n);--spectrum-colorhandle-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-colorhandle-animation-easing:ease-in-out;--spectrum-colorhandle-outer-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-outer-border-opacity));--spectrum-colorhandle-outer-border-width:var(\n--spectrum-color-handle-outer-border-width\n);--spectrum-colorhandle-inner-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-inner-border-opacity));--spectrum-colorhandle-inner-border-width:var(\n--spectrum-color-handle-inner-border-width\n);--spectrum-colorhandle-border-width:var(\n--spectrum-color-handle-border-width\n);--spectrum-colorhandle-border-color:var(--spectrum-white);--spectrum-colorhandle-border-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-colorhandle-fill-color-disabled:var(\n--spectrum-disabled-background-color\n);--mod-opacity-checkerboard-position:50%}:host{block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(\n--highcontrast-colorhandle-border-color,var(\n--mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)\n)\n);border-radius:100%;border-style:solid;border-width:var(\n--mod-colorhandle-border-width,var(--spectrum-colorhandle-border-width)\n);box-shadow:0 0 0 var(\n--mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)\n) var(\n--mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)\n);box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);position:absolute;transition:all var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n);z-index:1}:host:after{block-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:\"\";display:block;inline-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);inset-block:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);inset-inline:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);position:absolute}:host(.focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host(:focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host([disabled]){background:var(\n--highcontrast-colorhandle-fill-color-disabled,var(\n--mod-colorhandle-fill-color-disabled,var(--spectrum-colorhandle-fill-color-disabled)\n)\n);border-color:var(\n--highcontrast-colorhandle-border-color-disabled,var(\n--mod-colorhandle-border-color-disabled,var(--spectrum-colorhandle-border-color-disabled)\n)\n);box-shadow:none;pointer-events:none}:host([disabled]) .inner{display:none}.inner{background-color:var(--spectrum-picked-color);block-size:100%;border-radius:100%;box-shadow:inset 0 0 0 var(\n--mod-colorhandle-inner-border-width,var(--spectrum-colorhandle-inner-border-width)\n) var(\n--mod-colorhandle-inner-border-color,var(--spectrum-colorhandle-inner-border-color)\n);inline-size:100%}@media (forced-colors:active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-colorhandle-border-color-disabled:GrayText;--highcontrast-colorhandle-fill-color-disabled:Canvas}}\n`;\nexport default styles;"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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-colorhandle-size:var(--spectrum-color-handle-size);--spectrum-colorhandle-focused-size:var(\n--spectrum-color-handle-size-key-focus\n);--spectrum-colorhandle-hitarea-size:var(\n--spectrum-color-control-track-width\n);--spectrum-colorhandle-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-colorhandle-animation-easing:ease-in-out;--spectrum-colorhandle-outer-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-outer-border-opacity));--spectrum-colorhandle-outer-border-width:var(\n--spectrum-color-handle-outer-border-width\n);--spectrum-colorhandle-inner-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-inner-border-opacity));--spectrum-colorhandle-inner-border-width:var(\n--spectrum-color-handle-inner-border-width\n);--spectrum-colorhandle-border-width:var(\n--spectrum-color-handle-border-width\n);--spectrum-colorhandle-border-color:var(--spectrum-white);--spectrum-colorhandle-border-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-colorhandle-fill-color-disabled:var(\n--spectrum-disabled-background-color\n);--mod-opacity-checkerboard-position:50%;block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(\n--highcontrast-colorhandle-border-color,var(\n--mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)\n)\n);border-radius:100%;border-style:solid;border-width:var(\n--mod-colorhandle-border-width,var(--spectrum-colorhandle-border-width)\n);box-shadow:0 0 0 var(\n--mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)\n) var(\n--mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)\n);box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);position:absolute;z-index:1}:host:after{block-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:\"\";display:block;inline-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);inset-block:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);inset-inline:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);position:absolute}:host{transition:all var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n)}:host(.focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host(:focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host([disabled]){background:var(\n--highcontrast-colorhandle-fill-color-disabled,var(\n--mod-colorhandle-fill-color-disabled,var(--spectrum-colorhandle-fill-color-disabled)\n)\n);border-color:var(\n--highcontrast-colorhandle-border-color-disabled,var(\n--mod-colorhandle-border-color-disabled,var(--spectrum-colorhandle-border-color-disabled)\n)\n);box-shadow:none;pointer-events:none}:host([disabled]) .inner{display:none}.inner{background-color:var(--spectrum-picked-color);block-size:100%;border-radius:100%;box-shadow:inset 0 0 0 var(\n--mod-colorhandle-inner-border-width,var(--spectrum-colorhandle-inner-border-width)\n) var(\n--mod-colorhandle-inner-border-color,var(--spectrum-colorhandle-inner-border-color)\n);inline-size:100%}@media (forced-colors:active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-colorhandle-border-color-disabled:GrayText;--highcontrast-colorhandle-fill-color-disabled:Canvas}}\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+Df,eAAe;",
6
6
  "names": []
7
7
  }
@@ -15,7 +15,7 @@
15
15
  --spectrum-disabled-content-color
16
16
  );--spectrum-colorhandle-fill-color-disabled:var(
17
17
  --spectrum-disabled-background-color
18
- );--mod-opacity-checkerboard-position:50%}:host{block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(
18
+ );--mod-opacity-checkerboard-position:50%;block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(
19
19
  --highcontrast-colorhandle-border-color,var(
20
20
  --mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)
21
21
  )
@@ -25,11 +25,7 @@
25
25
  --mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)
26
26
  ) var(
27
27
  --mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)
28
- );box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);position:absolute;transition:all var(
29
- --mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)
30
- ) var(
31
- --mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)
32
- );z-index:1}:host:after{block-size:var(
28
+ );box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);position:absolute;z-index:1}:host:after{block-size:var(
33
29
  --mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)
34
30
  );border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:"";display:block;inline-size:var(
35
31
  --mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)
@@ -39,7 +35,11 @@ var(--spectrum-colorhandle-hitarea-size)
39
35
  )/2);inset-inline:calc(50% - var(
40
36
  --mod-colorhandle-hitarea-size,
41
37
  var(--spectrum-colorhandle-hitarea-size)
42
- )/2);position:absolute}:host(.focus-visible),:host([focused]){block-size:var(
38
+ )/2);position:absolute}:host{transition:all var(
39
+ --mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)
40
+ ) var(
41
+ --mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)
42
+ )}:host(.focus-visible),:host([focused]){block-size:var(
43
43
  --mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)
44
44
  );inline-size:var(
45
45
  --mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-color-handle.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2024 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-colorhandle-size:var(--spectrum-color-handle-size);--spectrum-colorhandle-focused-size:var(\n--spectrum-color-handle-size-key-focus\n);--spectrum-colorhandle-hitarea-size:var(\n--spectrum-color-control-track-width\n);--spectrum-colorhandle-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-colorhandle-animation-easing:ease-in-out;--spectrum-colorhandle-outer-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-outer-border-opacity));--spectrum-colorhandle-outer-border-width:var(\n--spectrum-color-handle-outer-border-width\n);--spectrum-colorhandle-inner-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-inner-border-opacity));--spectrum-colorhandle-inner-border-width:var(\n--spectrum-color-handle-inner-border-width\n);--spectrum-colorhandle-border-width:var(\n--spectrum-color-handle-border-width\n);--spectrum-colorhandle-border-color:var(--spectrum-white);--spectrum-colorhandle-border-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-colorhandle-fill-color-disabled:var(\n--spectrum-disabled-background-color\n);--mod-opacity-checkerboard-position:50%}:host{block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(\n--highcontrast-colorhandle-border-color,var(\n--mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)\n)\n);border-radius:100%;border-style:solid;border-width:var(\n--mod-colorhandle-border-width,var(--spectrum-colorhandle-border-width)\n);box-shadow:0 0 0 var(\n--mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)\n) var(\n--mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)\n);box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1/2);position:absolute;transition:all var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n);z-index:1}:host:after{block-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:\"\";display:block;inline-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);inset-block:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);inset-inline:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);position:absolute}:host(.focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host(:focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host([disabled]){background:var(\n--highcontrast-colorhandle-fill-color-disabled,var(\n--mod-colorhandle-fill-color-disabled,var(--spectrum-colorhandle-fill-color-disabled)\n)\n);border-color:var(\n--highcontrast-colorhandle-border-color-disabled,var(\n--mod-colorhandle-border-color-disabled,var(--spectrum-colorhandle-border-color-disabled)\n)\n);box-shadow:none;pointer-events:none}:host([disabled]) .inner{display:none}.inner{background-color:var(--spectrum-picked-color);block-size:100%;border-radius:100%;box-shadow:inset 0 0 0 var(\n--mod-colorhandle-inner-border-width,var(--spectrum-colorhandle-inner-border-width)\n) var(\n--mod-colorhandle-inner-border-color,var(--spectrum-colorhandle-inner-border-color)\n);inline-size:100%}@media (forced-colors:active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-colorhandle-border-color-disabled:GrayText;--highcontrast-colorhandle-fill-color-disabled:Canvas}}\n`;\nexport default styles;"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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-colorhandle-size:var(--spectrum-color-handle-size);--spectrum-colorhandle-focused-size:var(\n--spectrum-color-handle-size-key-focus\n);--spectrum-colorhandle-hitarea-size:var(\n--spectrum-color-control-track-width\n);--spectrum-colorhandle-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-colorhandle-animation-easing:ease-in-out;--spectrum-colorhandle-outer-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-outer-border-opacity));--spectrum-colorhandle-outer-border-width:var(\n--spectrum-color-handle-outer-border-width\n);--spectrum-colorhandle-inner-border-color:rgba(var(--spectrum-black-rgb),var(--spectrum-color-handle-inner-border-opacity));--spectrum-colorhandle-inner-border-width:var(\n--spectrum-color-handle-inner-border-width\n);--spectrum-colorhandle-border-width:var(\n--spectrum-color-handle-border-width\n);--spectrum-colorhandle-border-color:var(--spectrum-white);--spectrum-colorhandle-border-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-colorhandle-fill-color-disabled:var(\n--spectrum-disabled-background-color\n);--mod-opacity-checkerboard-position:50%;block-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));border-color:var(\n--highcontrast-colorhandle-border-color,var(\n--mod-colorhandle-border-color,var(--spectrum-colorhandle-border-color)\n)\n);border-radius:100%;border-style:solid;border-width:var(\n--mod-colorhandle-border-width,var(--spectrum-colorhandle-border-width)\n);box-shadow:0 0 0 var(\n--mod-colorhandle-outer-border-width,var(--spectrum-colorhandle-outer-border-width)\n) var(\n--mod-colorhandle-outer-border-color,var(--spectrum-colorhandle-outer-border-color)\n);box-sizing:border-box;display:block;inline-size:var(--mod-colorhandle-size,var(--spectrum-colorhandle-size));margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))/2*-1);position:absolute;z-index:1}:host:after{block-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);border-radius:var(--mod-colorhandle-hitarea-border-radius,100%);content:\"\";display:block;inline-size:var(\n--mod-colorhandle-hitarea-size,var(--spectrum-colorhandle-hitarea-size)\n);inset-block:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);inset-inline:calc(50% - var(\n--mod-colorhandle-hitarea-size,\nvar(--spectrum-colorhandle-hitarea-size)\n)/2);position:absolute}:host{transition:all var(\n--mod-colorhandle-animation-duration,var(--spectrum-colorhandle-animation-duration)\n) var(\n--mod-colorhandle-animation-easing,var(--spectrum-colorhandle-animation-easing)\n)}:host(.focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host(:focus-visible),:host([focused]){block-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);inline-size:var(\n--mod-colorhandle-focused-size,var(--spectrum-colorhandle-focused-size)\n);margin-block:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);margin-inline:calc(var(--mod-colorhandle-size, var(--spectrum-colorhandle-size))*-1);outline:none}:host([disabled]){background:var(\n--highcontrast-colorhandle-fill-color-disabled,var(\n--mod-colorhandle-fill-color-disabled,var(--spectrum-colorhandle-fill-color-disabled)\n)\n);border-color:var(\n--highcontrast-colorhandle-border-color-disabled,var(\n--mod-colorhandle-border-color-disabled,var(--spectrum-colorhandle-border-color-disabled)\n)\n);box-shadow:none;pointer-events:none}:host([disabled]) .inner{display:none}.inner{background-color:var(--spectrum-picked-color);block-size:100%;border-radius:100%;box-shadow:inset 0 0 0 var(\n--mod-colorhandle-inner-border-width,var(--spectrum-colorhandle-inner-border-width)\n) var(\n--mod-colorhandle-inner-border-color,var(--spectrum-colorhandle-inner-border-color)\n);inline-size:100%}@media (forced-colors:active){:host{forced-color-adjust:none}:host([disabled]){--highcontrast-colorhandle-border-color-disabled:GrayText;--highcontrast-colorhandle-fill-color-disabled:Canvas}}\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA+Df,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }