@spectrum-web-components/coachmark 1.1.0-beta.9 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -12
- package/src/coach-indicator-overrides.css.dev.js.map +1 -1
- package/src/coach-indicator-overrides.css.js.map +1 -1
- package/src/coach-indicator.css.dev.js.map +1 -1
- package/src/coach-indicator.css.js.map +1 -1
- package/src/coachmark-overrides.css.dev.js.map +1 -1
- package/src/coachmark-overrides.css.js.map +1 -1
- package/src/coachmark.css.dev.js.map +1 -1
- package/src/coachmark.css.js.map +1 -1
- package/src/spectrum-coach-indicator.css.dev.js.map +1 -1
- package/src/spectrum-coach-indicator.css.js.map +1 -1
- package/src/spectrum-coachmark.css.dev.js.map +1 -1
- package/src/spectrum-coachmark.css.js.map +1 -1
- package/stories/coachmark.stories.js +4 -0
- package/stories/coachmark.stories.js.map +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/coachmark",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -72,18 +72,18 @@
|
|
|
72
72
|
"lit-html"
|
|
73
73
|
],
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@spectrum-web-components/asset": "^1.1.
|
|
76
|
-
"@spectrum-web-components/base": "^1.1.
|
|
77
|
-
"@spectrum-web-components/button": "^1.1.
|
|
78
|
-
"@spectrum-web-components/button-group": "^1.1.
|
|
79
|
-
"@spectrum-web-components/icon": "^1.1.
|
|
80
|
-
"@spectrum-web-components/icons-ui": "^1.1.
|
|
81
|
-
"@spectrum-web-components/reactive-controllers": "^1.1.
|
|
82
|
-
"@spectrum-web-components/shared": "^1.1.
|
|
75
|
+
"@spectrum-web-components/asset": "^1.1.1",
|
|
76
|
+
"@spectrum-web-components/base": "^1.1.1",
|
|
77
|
+
"@spectrum-web-components/button": "^1.1.1",
|
|
78
|
+
"@spectrum-web-components/button-group": "^1.1.1",
|
|
79
|
+
"@spectrum-web-components/icon": "^1.1.1",
|
|
80
|
+
"@spectrum-web-components/icons-ui": "^1.1.1",
|
|
81
|
+
"@spectrum-web-components/reactive-controllers": "^1.1.1",
|
|
82
|
+
"@spectrum-web-components/shared": "^1.1.1"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@spectrum-css/coachindicator": "
|
|
86
|
-
"@spectrum-css/coachmark": "
|
|
85
|
+
"@spectrum-css/coachindicator": "3.0.0-s2-foundations.16",
|
|
86
|
+
"@spectrum-css/coachmark": "8.0.0-s2-foundations.17"
|
|
87
87
|
},
|
|
88
88
|
"types": "./src/index.d.ts",
|
|
89
89
|
"customElements": "custom-elements.json",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"./sp-*.js",
|
|
92
92
|
"./**/*.dev.js"
|
|
93
93
|
],
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "44870aa95001c1b995456d994ae31bbe7277fac9"
|
|
95
95
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coach-indicator-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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-coach-indicator-ring-border-size:var(--system-coach-indicator-ring-border-size);--spectrum-coach-indicator-min-inline-size:var(--system-coach-indicator-min-inline-size);--spectrum-coach-indicator-min-block-size:var(--system-coach-indicator-min-block-size);--spectrum-coach-indicator-inline-size:var(--system-coach-indicator-inline-size);--spectrum-coach-indicator-block-size:var(--system-coach-indicator-block-size);--spectrum-coach-indicator-ring-inline-size:var(--system-coach-indicator-ring-inline-size);--spectrum-coach-indicator-ring-block-size:var(--system-coach-indicator-ring-block-size);--spectrum-coach-indicator-ring-dark-color:var(--system-coach-indicator-ring-dark-color);--spectrum-coach-indicator-ring-light-color:var(--system-coach-indicator-ring-light-color);--spectrum-coach-indicator-top:var(--system-coach-indicator-top);--spectrum-coach-indicator-left:var(--system-coach-indicator-left);--spectrum-coach-animation-indicator-ring-duration:var(--system-coach-indicator-coach-animation-indicator-ring-duration);--spectrum-coach-animation-indicator-ring-inner-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple);--spectrum-coach-animation-indicator-ring-center-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-center-delay-multiple);--spectrum-coach-animation-indicator-ring-outer-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-outer-delay-multiple);--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple:var(--system-coach-indicator-quiet-animation-ring-inner-delay-multiple);--spectrum-coach-indicator-animation-name:var(--system-coach-indicator-animation-name);--spectrum-coach-indicator-inner-animation-delay-multiple:var(--system-coach-indicator-inner-animation-delay-multiple);--spectrum-coach-indicator-animation-keyframe-0-scale:var(--system-coach-indicator-animation-keyframe-0-scale);--spectrum-coach-indicator-animation-keyframe-0-opacity:var(--system-coach-indicator-animation-keyframe-0-opacity);--spectrum-coach-indicator-animation-keyframe-50-scale:var(--system-coach-indicator-animation-keyframe-50-scale);--spectrum-coach-indicator-animation-keyframe-50-opacity:var(--system-coach-indicator-animation-keyframe-50-opacity);--spectrum-coach-indicator-animation-keyframe-100-scale:var(--system-coach-indicator-animation-keyframe-100-scale);--spectrum-coach-indicator-animation-keyframe-100-opacity:var(--system-coach-indicator-animation-keyframe-100-opacity);--spectrum-coach-indicator-quiet-animation-keyframe-0-scale:var(--system-coach-indicator-quiet-animation-keyframe-0-scale)}:host([quiet]){--spectrum-coach-indicator-quiet-ring-diameter-size:var(--system-coach-indicator-quiet-quiet-ring-diameter-size);--spectrum-coach-indicator-animation-name:var(--system-coach-indicator-quiet-animation-name)}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coach-indicator-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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-coach-indicator-ring-border-size:var(--system-coach-indicator-ring-border-size);--spectrum-coach-indicator-min-inline-size:var(--system-coach-indicator-min-inline-size);--spectrum-coach-indicator-min-block-size:var(--system-coach-indicator-min-block-size);--spectrum-coach-indicator-inline-size:var(--system-coach-indicator-inline-size);--spectrum-coach-indicator-block-size:var(--system-coach-indicator-block-size);--spectrum-coach-indicator-ring-inline-size:var(--system-coach-indicator-ring-inline-size);--spectrum-coach-indicator-ring-block-size:var(--system-coach-indicator-ring-block-size);--spectrum-coach-indicator-ring-dark-color:var(--system-coach-indicator-ring-dark-color);--spectrum-coach-indicator-ring-light-color:var(--system-coach-indicator-ring-light-color);--spectrum-coach-indicator-top:var(--system-coach-indicator-top);--spectrum-coach-indicator-left:var(--system-coach-indicator-left);--spectrum-coach-animation-indicator-ring-duration:var(--system-coach-indicator-coach-animation-indicator-ring-duration);--spectrum-coach-animation-indicator-ring-inner-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple);--spectrum-coach-animation-indicator-ring-center-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-center-delay-multiple);--spectrum-coach-animation-indicator-ring-outer-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-outer-delay-multiple);--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple:var(--system-coach-indicator-quiet-animation-ring-inner-delay-multiple);--spectrum-coach-indicator-animation-name:var(--system-coach-indicator-animation-name);--spectrum-coach-indicator-inner-animation-delay-multiple:var(--system-coach-indicator-inner-animation-delay-multiple);--spectrum-coach-indicator-animation-keyframe-0-scale:var(--system-coach-indicator-animation-keyframe-0-scale);--spectrum-coach-indicator-animation-keyframe-0-opacity:var(--system-coach-indicator-animation-keyframe-0-opacity);--spectrum-coach-indicator-animation-keyframe-50-scale:var(--system-coach-indicator-animation-keyframe-50-scale);--spectrum-coach-indicator-animation-keyframe-50-opacity:var(--system-coach-indicator-animation-keyframe-50-opacity);--spectrum-coach-indicator-animation-keyframe-100-scale:var(--system-coach-indicator-animation-keyframe-100-scale);--spectrum-coach-indicator-animation-keyframe-100-opacity:var(--system-coach-indicator-animation-keyframe-100-opacity);--spectrum-coach-indicator-quiet-animation-keyframe-0-scale:var(--system-coach-indicator-quiet-animation-keyframe-0-scale)}:host([quiet]){--spectrum-coach-indicator-quiet-ring-diameter-size:var(--system-coach-indicator-quiet-quiet-ring-diameter-size);--spectrum-coach-indicator-animation-name:var(--system-coach-indicator-quiet-animation-name)}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coach-indicator.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{margin:var(--mod-coach-indicator-gap,var(--spectrum-coach-indicator-gap));min-inline-size:var(--mod-coach-indicator-min-inline-size,var(--spectrum-coach-indicator-min-inline-size));min-block-size:var(--mod-coach-indicator-min-block-size,var(--spectrum-coach-indicator-min-block-size));inline-size:var(--mod-coach-indicator-inline-size,var(--spectrum-coach-indicator-inline-size));block-size:var(--mod-coach-indicator-block-size,var(--spectrum-coach-indicator-block-size));position:relative}:host([quiet]){--mod-coach-indicator-min-inline-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-min-block-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-inline-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-block-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-ring-inline-size:var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size));--mod-coach-indicator-ring-block-size:var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size));--mod-coach-indicator-top:calc(var(--mod-coach-indicator-min-inline-size)/3 - var(--spectrum-coach-indicator-ring-border-size));--mod-coach-indicator-left:calc(var(--mod-coach-indicator-min-inline-size)/3 - var(--spectrum-coach-indicator-ring-border-size));--mod-coach-indicator-inner-animation-delay-multiple:var(--mod-coach-indicator-quiet-animation-ring-inner-delay-multiple,var(--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple))}.ring{border-style:solid;border-width:var(--mod-coach-indicator-ring-border-size,var(--spectrum-coach-indicator-ring-border-size));border-color:var(--mod-coach-indicator-ring-default-color,var(--spectrum-coach-indicator-ring-default-color));inline-size:var(--mod-coach-indicator-ring-inline-size,var(--spectrum-coach-indicator-ring-inline-size));block-size:var(--mod-coach-indicator-ring-block-size,var(--spectrum-coach-indicator-ring-block-size));animation:var(--mod-coach-indicator-animation-name,var(--spectrum-coach-indicator-animation-name))var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))linear infinite;border-radius:50%;display:block;position:absolute;inset-block-start:var(--mod-coach-indicator-top,var(--spectrum-coach-indicator-top));inset-inline-start:var(--mod-coach-indicator-left,var(--spectrum-coach-indicator-left))}.ring:first-child{animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-indicator-inner-animation-delay-multiple,var(--spectrum-coach-indicator-inner-animation-delay-multiple)))}.ring:nth-child(2){animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-animation-indicator-ring-center-delay-multiple,var(--spectrum-coach-animation-indicator-ring-center-delay-multiple)))}.ring:nth-child(3){animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-animation-indicator-ring-outer-delay-multiple,var(--spectrum-coach-animation-indicator-ring-outer-delay-multiple)))}:host([static-color=white]) .ring{border-color:var(--mod-coach-indicator-ring-light-color,var(--spectrum-coach-indicator-ring-light-color))}:host([static-color=black]) .ring{border-color:var(--mod-coach-indicator-ring-dark-color,var(--spectrum-coach-indicator-ring-dark-color))}@media (prefers-reduced-motion:reduce){.ring{animation:none}}@keyframes pulse{0%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-0-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-0-opacity)}50%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-50-opacity)}to{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-100-opacity)}}@keyframes pulse-quiet{0%{transform:scale(var(--spectrum-coach-indicator-quiet-animation-keyframe-0-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-0-opacity)}50%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-50-opacity)}to{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-100-opacity)}}:host{--spectrum-coach-indicator-ring-border-size:var(--system-coach-indicator-ring-border-size);--spectrum-coach-indicator-min-inline-size:var(--system-coach-indicator-min-inline-size);--spectrum-coach-indicator-min-block-size:var(--system-coach-indicator-min-block-size);--spectrum-coach-indicator-inline-size:var(--system-coach-indicator-inline-size);--spectrum-coach-indicator-block-size:var(--system-coach-indicator-block-size);--spectrum-coach-indicator-ring-inline-size:var(--system-coach-indicator-ring-inline-size);--spectrum-coach-indicator-ring-block-size:var(--system-coach-indicator-ring-block-size);--spectrum-coach-indicator-ring-dark-color:var(--system-coach-indicator-ring-dark-color);--spectrum-coach-indicator-ring-light-color:var(--system-coach-indicator-ring-light-color);--spectrum-coach-indicator-top:var(--system-coach-indicator-top);--spectrum-coach-indicator-left:var(--system-coach-indicator-left);--spectrum-coach-animation-indicator-ring-duration:var(--system-coach-indicator-coach-animation-indicator-ring-duration);--spectrum-coach-animation-indicator-ring-inner-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple);--spectrum-coach-animation-indicator-ring-center-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-center-delay-multiple);--spectrum-coach-animation-indicator-ring-outer-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-outer-delay-multiple);--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple:var(--system-coach-indicator-quiet-animation-ring-inner-delay-multiple);--spectrum-coach-indicator-animation-name:var(--system-coach-indicator-animation-name);--spectrum-coach-indicator-inner-animation-delay-multiple:var(--system-coach-indicator-inner-animation-delay-multiple);--spectrum-coach-indicator-animation-keyframe-0-scale:var(--system-coach-indicator-animation-keyframe-0-scale);--spectrum-coach-indicator-animation-keyframe-0-opacity:var(--system-coach-indicator-animation-keyframe-0-opacity);--spectrum-coach-indicator-animation-keyframe-50-scale:var(--system-coach-indicator-animation-keyframe-50-scale);--spectrum-coach-indicator-animation-keyframe-50-opacity:var(--system-coach-indicator-animation-keyframe-50-opacity);--spectrum-coach-indicator-animation-keyframe-100-scale:var(--system-coach-indicator-animation-keyframe-100-scale);--spectrum-coach-indicator-animation-keyframe-100-opacity:var(--system-coach-indicator-animation-keyframe-100-opacity);--spectrum-coach-indicator-quiet-animation-keyframe-0-scale:var(--system-coach-indicator-quiet-animation-keyframe-0-scale)}:host([quiet]){--spectrum-coach-indicator-quiet-ring-diameter-size:var(--system-coach-indicator-quiet-quiet-ring-diameter-size);--spectrum-coach-indicator-animation-name:var(--system-coach-indicator-quiet-animation-name)}:host{display:inline-block}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coach-indicator.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{margin:var(--mod-coach-indicator-gap,var(--spectrum-coach-indicator-gap));min-inline-size:var(--mod-coach-indicator-min-inline-size,var(--spectrum-coach-indicator-min-inline-size));min-block-size:var(--mod-coach-indicator-min-block-size,var(--spectrum-coach-indicator-min-block-size));inline-size:var(--mod-coach-indicator-inline-size,var(--spectrum-coach-indicator-inline-size));block-size:var(--mod-coach-indicator-block-size,var(--spectrum-coach-indicator-block-size));position:relative}:host([quiet]){--mod-coach-indicator-min-inline-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-min-block-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-inline-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-block-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-ring-inline-size:var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size));--mod-coach-indicator-ring-block-size:var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size));--mod-coach-indicator-top:calc(var(--mod-coach-indicator-min-inline-size)/3 - var(--spectrum-coach-indicator-ring-border-size));--mod-coach-indicator-left:calc(var(--mod-coach-indicator-min-inline-size)/3 - var(--spectrum-coach-indicator-ring-border-size));--mod-coach-indicator-inner-animation-delay-multiple:var(--mod-coach-indicator-quiet-animation-ring-inner-delay-multiple,var(--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple))}.ring{border-style:solid;border-width:var(--mod-coach-indicator-ring-border-size,var(--spectrum-coach-indicator-ring-border-size));border-color:var(--mod-coach-indicator-ring-default-color,var(--spectrum-coach-indicator-ring-default-color));inline-size:var(--mod-coach-indicator-ring-inline-size,var(--spectrum-coach-indicator-ring-inline-size));block-size:var(--mod-coach-indicator-ring-block-size,var(--spectrum-coach-indicator-ring-block-size));animation:var(--mod-coach-indicator-animation-name,var(--spectrum-coach-indicator-animation-name))var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))linear infinite;border-radius:50%;display:block;position:absolute;inset-block-start:var(--mod-coach-indicator-top,var(--spectrum-coach-indicator-top));inset-inline-start:var(--mod-coach-indicator-left,var(--spectrum-coach-indicator-left))}.ring:first-child{animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-indicator-inner-animation-delay-multiple,var(--spectrum-coach-indicator-inner-animation-delay-multiple)))}.ring:nth-child(2){animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-animation-indicator-ring-center-delay-multiple,var(--spectrum-coach-animation-indicator-ring-center-delay-multiple)))}.ring:nth-child(3){animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-animation-indicator-ring-outer-delay-multiple,var(--spectrum-coach-animation-indicator-ring-outer-delay-multiple)))}:host([static-color=white]) .ring{border-color:var(--mod-coach-indicator-ring-light-color,var(--spectrum-coach-indicator-ring-light-color))}:host([static-color=black]) .ring{border-color:var(--mod-coach-indicator-ring-dark-color,var(--spectrum-coach-indicator-ring-dark-color))}@media (prefers-reduced-motion:reduce){.ring{animation:none}}@keyframes pulse{0%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-0-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-0-opacity)}50%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-50-opacity)}to{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-100-opacity)}}@keyframes pulse-quiet{0%{transform:scale(var(--spectrum-coach-indicator-quiet-animation-keyframe-0-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-0-opacity)}50%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-50-opacity)}to{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-100-opacity)}}:host{--spectrum-coach-indicator-ring-border-size:var(--system-coach-indicator-ring-border-size);--spectrum-coach-indicator-min-inline-size:var(--system-coach-indicator-min-inline-size);--spectrum-coach-indicator-min-block-size:var(--system-coach-indicator-min-block-size);--spectrum-coach-indicator-inline-size:var(--system-coach-indicator-inline-size);--spectrum-coach-indicator-block-size:var(--system-coach-indicator-block-size);--spectrum-coach-indicator-ring-inline-size:var(--system-coach-indicator-ring-inline-size);--spectrum-coach-indicator-ring-block-size:var(--system-coach-indicator-ring-block-size);--spectrum-coach-indicator-ring-dark-color:var(--system-coach-indicator-ring-dark-color);--spectrum-coach-indicator-ring-light-color:var(--system-coach-indicator-ring-light-color);--spectrum-coach-indicator-top:var(--system-coach-indicator-top);--spectrum-coach-indicator-left:var(--system-coach-indicator-left);--spectrum-coach-animation-indicator-ring-duration:var(--system-coach-indicator-coach-animation-indicator-ring-duration);--spectrum-coach-animation-indicator-ring-inner-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-inner-delay-multiple);--spectrum-coach-animation-indicator-ring-center-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-center-delay-multiple);--spectrum-coach-animation-indicator-ring-outer-delay-multiple:var(--system-coach-indicator-coach-animation-indicator-ring-outer-delay-multiple);--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple:var(--system-coach-indicator-quiet-animation-ring-inner-delay-multiple);--spectrum-coach-indicator-animation-name:var(--system-coach-indicator-animation-name);--spectrum-coach-indicator-inner-animation-delay-multiple:var(--system-coach-indicator-inner-animation-delay-multiple);--spectrum-coach-indicator-animation-keyframe-0-scale:var(--system-coach-indicator-animation-keyframe-0-scale);--spectrum-coach-indicator-animation-keyframe-0-opacity:var(--system-coach-indicator-animation-keyframe-0-opacity);--spectrum-coach-indicator-animation-keyframe-50-scale:var(--system-coach-indicator-animation-keyframe-50-scale);--spectrum-coach-indicator-animation-keyframe-50-opacity:var(--system-coach-indicator-animation-keyframe-50-opacity);--spectrum-coach-indicator-animation-keyframe-100-scale:var(--system-coach-indicator-animation-keyframe-100-scale);--spectrum-coach-indicator-animation-keyframe-100-opacity:var(--system-coach-indicator-animation-keyframe-100-opacity);--spectrum-coach-indicator-quiet-animation-keyframe-0-scale:var(--system-coach-indicator-quiet-animation-keyframe-0-scale)}:host([quiet]){--spectrum-coach-indicator-quiet-ring-diameter-size:var(--system-coach-indicator-quiet-quiet-ring-diameter-size);--spectrum-coach-indicator-animation-name:var(--system-coach-indicator-quiet-animation-name)}:host{display:inline-block}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coachmark-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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-coachmark-min-width:var(--system-coach-mark-min-width);--spectrum-coachmark-width:var(--system-coach-mark-width);--spectrum-coachmark-max-width:var(--system-coach-mark-max-width);--spectrum-coachmark-media-height:var(--system-coach-mark-media-height);--spectrum-coachmark-media-min-height:var(--system-coach-mark-media-min-height);--spectrum-coachmark-padding:var(--system-coach-mark-padding);--spectrum-coachmark-heading-to-action-button:var(--system-coach-mark-heading-to-action-button);--spectrum-coachmark-header-to-body:var(--system-coach-mark-header-to-body);--spectrum-coachmark-body-to-footer:var(--system-coach-mark-body-to-footer);--spectrum-coachmark-title-color:var(--system-coach-mark-title-color);--spectrum-coachmark-title-font-family:var(--system-coach-mark-title-font-family);--spectrum-coachmark-title-font-style:var(--system-coach-mark-title-font-style);--spectrum-coachmark-title-text-font-weight:var(--system-coach-mark-title-text-font-weight);--spectrum-coachmark-title-font-size:var(--system-coach-mark-title-font-size);--spectrum-coachmark-title-text-line-height:var(--system-coach-mark-title-text-line-height);--spectrum-coachmark-content-font-color:var(--system-coach-mark-content-font-color);--spectrum-coachmark-content-font-weight:var(--system-coach-mark-content-font-weight);--spectrum-coachmark-content-font-family:var(--system-coach-mark-content-font-family);--spectrum-coachmark-content-font-style:var(--system-coach-mark-content-font-style);--spectrum-coachmark-content-line-height:var(--system-coach-mark-content-line-height);--spectrum-coachmark-content-font-size:var(--system-coach-mark-content-font-size);--spectrum-coachmark-step-color:var(--system-coach-mark-step-color);--spectrum-coachmark-step-font-weight:var(--system-coach-mark-step-font-weight);--spectrum-coachmark-step-font-family:var(--system-coach-mark-step-font-family);--spectrum-coachmark-step-font-style:var(--system-coach-mark-step-font-style);--spectrum-coachmark-step-line-height:var(--system-coach-mark-step-line-height);--spectrum-coachmark-step-font-size:var(--system-coach-mark-step-font-size);--spectrum-coachmark-step-to-bottom:var(--system-coach-mark-step-to-bottom);--spectrum-coachmark-popover-border-width:var(--system-coach-mark-popover-border-width);--spectrum-coachmark-popover-corner-radius:var(--system-coach-mark-popover-corner-radius);--spectrum-coachmark-buttongroup-spacing-horizontal:var(--system-coach-mark-buttongroup-spacing-horizontal)}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coachmark-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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-coachmark-min-width:var(--system-coach-mark-min-width);--spectrum-coachmark-width:var(--system-coach-mark-width);--spectrum-coachmark-max-width:var(--system-coach-mark-max-width);--spectrum-coachmark-media-height:var(--system-coach-mark-media-height);--spectrum-coachmark-media-min-height:var(--system-coach-mark-media-min-height);--spectrum-coachmark-padding:var(--system-coach-mark-padding);--spectrum-coachmark-heading-to-action-button:var(--system-coach-mark-heading-to-action-button);--spectrum-coachmark-header-to-body:var(--system-coach-mark-header-to-body);--spectrum-coachmark-body-to-footer:var(--system-coach-mark-body-to-footer);--spectrum-coachmark-title-color:var(--system-coach-mark-title-color);--spectrum-coachmark-title-font-family:var(--system-coach-mark-title-font-family);--spectrum-coachmark-title-font-style:var(--system-coach-mark-title-font-style);--spectrum-coachmark-title-text-font-weight:var(--system-coach-mark-title-text-font-weight);--spectrum-coachmark-title-font-size:var(--system-coach-mark-title-font-size);--spectrum-coachmark-title-text-line-height:var(--system-coach-mark-title-text-line-height);--spectrum-coachmark-content-font-color:var(--system-coach-mark-content-font-color);--spectrum-coachmark-content-font-weight:var(--system-coach-mark-content-font-weight);--spectrum-coachmark-content-font-family:var(--system-coach-mark-content-font-family);--spectrum-coachmark-content-font-style:var(--system-coach-mark-content-font-style);--spectrum-coachmark-content-line-height:var(--system-coach-mark-content-line-height);--spectrum-coachmark-content-font-size:var(--system-coach-mark-content-font-size);--spectrum-coachmark-step-color:var(--system-coach-mark-step-color);--spectrum-coachmark-step-font-weight:var(--system-coach-mark-step-font-weight);--spectrum-coachmark-step-font-family:var(--system-coach-mark-step-font-family);--spectrum-coachmark-step-font-style:var(--system-coach-mark-step-font-style);--spectrum-coachmark-step-line-height:var(--system-coach-mark-step-line-height);--spectrum-coachmark-step-font-size:var(--system-coach-mark-step-font-size);--spectrum-coachmark-step-to-bottom:var(--system-coach-mark-step-to-bottom);--spectrum-coachmark-popover-border-width:var(--system-coach-mark-popover-border-width);--spectrum-coachmark-popover-corner-radius:var(--system-coach-mark-popover-corner-radius);--spectrum-coachmark-buttongroup-spacing-horizontal:var(--system-coach-mark-buttongroup-spacing-horizontal)}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coachmark.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{--mod-buttongroup-justify-content:flex-end;--mod-popover-border-width:var(--spectrum-coachmark-popover-border-width);--mod-popover-corner-radius:var(--spectrum-coachmark-popover-corner-radius);--mod-popover-content-area-spacing-vertical:0;--mod-button-edge-to-visual-only:9px;--spectrum-coachmark-border-size:var(--mod-popover-border-width);--spectrum-coachmark-border-radius:var(--mod-popover-corner-radius);min-inline-size:var(--mod-coachmark-min-width,var(--spectrum-coachmark-min-width));max-inline-size:var(--mod-coachmark-max-width,var(--spectrum-coachmark-max-width));inline-size:var(--mod-coachmark-width,var(--spectrum-coachmark-width));position:relative}.buttongroup{display:var(--spectrum-coachmark-buttongroup-display)}.buttongroup-mobile{--mod-buttongroup-spacing-horizontal:var(--spectrum-coachmark-buttongroup-spacing-horizontal);display:var(--spectrum-coachmark-buttongroup-mobile-display)}.menu{display:var(--spectrum-coachmark-menu-display)}.spectrum-CoachMark-menu--mobile{display:var(--spectrum-coachmark-menu-mobile-display)}.image-wrapper{block-size:var(--mod-coachmark-media-height,var(--spectrum-coachmark-media-height));min-block-size:var(--mod-coachmark-media-min-height,var(--spectrum-coachmark-media-min-height));inline-size:calc(var(--mod-coachmark-width,var(--spectrum-coachmark-width)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size))*2);object-fit:cover;object-position:center;border-start-start-radius:inherit;border-start-end-radius:inherit}.image{inline-size:100%;block-size:100%;object-fit:cover;border-start-start-radius:calc(var(--mod-coachmark-border-radius,var(--spectrum-coachmark-border-radius)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size)));border-start-end-radius:calc(var(--mod-coachmark-border-radius,var(--spectrum-coachmark-border-radius)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size)));display:block}.content,.footer,.header{padding-block:0;padding-inline:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding))}.header{justify-content:space-between;align-items:center;margin-block-end:var(--mod-coachmark-header-to-body,var(--spectrum-coachmark-header-to-body));padding-block-start:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding));display:flex}.action-menu{white-space:nowrap;z-index:1;margin-inline-start:var(--mod-coachmark-heading-to-action-button,var(--spectrum-coachmark-heading-to-action-button))}.content{color:var(--mod-coachmark-content-font-color,var(--spectrum-coachmark-content-font-color));font-size:var(--mod-coachmark-content-font-size,var(--spectrum-coachmark-content-font-size));font-weight:var(--mod-coachmark-content-font-weight,var(--spectrum-coachmark-content-font-weight));font-family:var(--mod-coachmark-content-font-family,var(--spectrum-coachmark-content-font-family));font-style:var(--mod-coachmark-content-font-style,var(--spectrum-coachmark-content-font-style));line-height:var(--mod-coachmark-content-line-height,var(--spectrum-coachmark-content-line-height));margin-block-end:var(--mod-coachmark-body-to-footer,var(--spectrum-coachmark-body-to-footer))}.footer{align-items:end;margin-block-start:0;padding-block-end:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding));display:grid}.footer .spectrum-ButtonGroup{grid-column-start:2}.title{color:var(--mod-coachmark-title-color,var(--spectrum-coachmark-title-color));font-size:var(--mod-coachmark-title-font-size,var(--spectrum-coachmark-title-font-size));font-weight:var(--mod-coachmark-title-text-font-weight,var(--spectrum-coachmark-title-text-font-weight));font-family:var(--mod-coachmark-title-font-family,var(--spectrum-coachmark-title-font-family));font-style:var(--mod-coachmark-title-font-style,var(--spectrum-coachmark-title-font-style));line-height:var(--mod-coachmark-title-text-line-height,var(--spectrum-coachmark-title-text-line-height));margin-block-end:0}.step{color:var(--mod-coachmark-step-color,var(--spectrum-coachmark-step-color));font-size:var(--mod-coachmark-step-font-size,var(--spectrum-coachmark-step-font-size));font-weight:var(--mod-coachmark-step-text-font-weight,var(--spectrum-coachmark-step-text-font-weight));font-style:var(--mod-coachmark-step-font-style,var(--spectrum-coachmark-step-font-style));line-height:var(--mod-coachmark-step-text-line-height,var(--spectrum-coachmark-step-text-line-height));white-space:nowrap;justify-self:start;margin-block-end:calc(var(--mod-coachmark-step-to-bottom,var(--spectrum-coachmark-step-to-bottom)) - var(--mod-coachmark-padding,var(--spectrum-coachmark-padding)))}:host{--spectrum-coachmark-min-width:var(--system-coach-mark-min-width);--spectrum-coachmark-width:var(--system-coach-mark-width);--spectrum-coachmark-max-width:var(--system-coach-mark-max-width);--spectrum-coachmark-media-height:var(--system-coach-mark-media-height);--spectrum-coachmark-media-min-height:var(--system-coach-mark-media-min-height);--spectrum-coachmark-padding:var(--system-coach-mark-padding);--spectrum-coachmark-heading-to-action-button:var(--system-coach-mark-heading-to-action-button);--spectrum-coachmark-header-to-body:var(--system-coach-mark-header-to-body);--spectrum-coachmark-body-to-footer:var(--system-coach-mark-body-to-footer);--spectrum-coachmark-title-color:var(--system-coach-mark-title-color);--spectrum-coachmark-title-font-family:var(--system-coach-mark-title-font-family);--spectrum-coachmark-title-font-style:var(--system-coach-mark-title-font-style);--spectrum-coachmark-title-text-font-weight:var(--system-coach-mark-title-text-font-weight);--spectrum-coachmark-title-font-size:var(--system-coach-mark-title-font-size);--spectrum-coachmark-title-text-line-height:var(--system-coach-mark-title-text-line-height);--spectrum-coachmark-content-font-color:var(--system-coach-mark-content-font-color);--spectrum-coachmark-content-font-weight:var(--system-coach-mark-content-font-weight);--spectrum-coachmark-content-font-family:var(--system-coach-mark-content-font-family);--spectrum-coachmark-content-font-style:var(--system-coach-mark-content-font-style);--spectrum-coachmark-content-line-height:var(--system-coach-mark-content-line-height);--spectrum-coachmark-content-font-size:var(--system-coach-mark-content-font-size);--spectrum-coachmark-step-color:var(--system-coach-mark-step-color);--spectrum-coachmark-step-font-weight:var(--system-coach-mark-step-font-weight);--spectrum-coachmark-step-font-family:var(--system-coach-mark-step-font-family);--spectrum-coachmark-step-font-style:var(--system-coach-mark-step-font-style);--spectrum-coachmark-step-line-height:var(--system-coach-mark-step-line-height);--spectrum-coachmark-step-font-size:var(--system-coach-mark-step-font-size);--spectrum-coachmark-step-to-bottom:var(--system-coach-mark-step-to-bottom);--spectrum-coachmark-popover-border-width:var(--system-coach-mark-popover-border-width);--spectrum-coachmark-popover-corner-radius:var(--system-coach-mark-popover-corner-radius);--spectrum-coachmark-buttongroup-spacing-horizontal:var(--system-coach-mark-buttongroup-spacing-horizontal)}:host{--spectrum-coachmark-dimension-size-175:14px;--spectrum-coachmark-dimension-size-200:16px;--spectrum-coachmark-dimension-size-100:8px;--spectrum-coachmark-dimension-size-50:4px;--spectrum-coachmark-content-font-family:var(--spectrum-font-family)}.keyboard-shortcut{background-color:var(--spectrum-gray-200);border:var(--spectrum-text-underline-gap)solid var(--spectrum-gray-200);border-radius:var(--spectrum-spacing-75);color:var(--spectrum-gray-800);min-width:var(--spectrum-badge-min-width);padding-block:var(--spectrum-coachmark-dimension-size-50);padding-inline:var(--spectrum-coachmark-dimension-size-100);flex-flow:row;justify-content:center;align-items:center;display:inline-flex}.keys{align-items:center;gap:var(--spectrum-coachmark-dimension-size-175)var(--spectrum-coachmark-dimension-size-50);font-family:var(--mod-body-sans-serif-font-family,var(--spectrum-body-sans-serif-font-family));flex-flow:wrap;display:flex}.flex-container{align-items:center;gap:var(--spectrum-coachmark-dimension-size-175)var(--spectrum-coachmark-dimension-size-200);flex-wrap:wrap;display:flex}.static-item{flex:0;align-self:flex-start}#cover-photo{display:contents}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/coachmark.css.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coachmark.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{--mod-buttongroup-justify-content:flex-end;--mod-popover-border-width:var(--spectrum-coachmark-popover-border-width);--mod-popover-corner-radius:var(--spectrum-coachmark-popover-corner-radius);--mod-popover-content-area-spacing-vertical:0;--mod-button-edge-to-visual-only:9px;--spectrum-coachmark-border-size:var(--mod-popover-border-width);--spectrum-coachmark-border-radius:var(--mod-popover-corner-radius);min-inline-size:var(--mod-coachmark-min-width,var(--spectrum-coachmark-min-width));max-inline-size:var(--mod-coachmark-max-width,var(--spectrum-coachmark-max-width));inline-size:var(--mod-coachmark-width,var(--spectrum-coachmark-width));position:relative}.buttongroup{display:var(--spectrum-coachmark-buttongroup-display)}.buttongroup-mobile{--mod-buttongroup-spacing-horizontal:var(--spectrum-coachmark-buttongroup-spacing-horizontal);display:var(--spectrum-coachmark-buttongroup-mobile-display)}.menu{display:var(--spectrum-coachmark-menu-display)}.spectrum-CoachMark-menu--mobile{display:var(--spectrum-coachmark-menu-mobile-display)}.image-wrapper{block-size:var(--mod-coachmark-media-height,var(--spectrum-coachmark-media-height));min-block-size:var(--mod-coachmark-media-min-height,var(--spectrum-coachmark-media-min-height));inline-size:calc(var(--mod-coachmark-width,var(--spectrum-coachmark-width)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size))*2);object-fit:cover;object-position:center;border-start-start-radius:inherit;border-start-end-radius:inherit}.image{inline-size:100%;block-size:100%;object-fit:cover;border-start-start-radius:calc(var(--mod-coachmark-border-radius,var(--spectrum-coachmark-border-radius)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size)));border-start-end-radius:calc(var(--mod-coachmark-border-radius,var(--spectrum-coachmark-border-radius)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size)));display:block}.content,.footer,.header{padding-block:0;padding-inline:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding))}.header{justify-content:space-between;align-items:center;margin-block-end:var(--mod-coachmark-header-to-body,var(--spectrum-coachmark-header-to-body));padding-block-start:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding));display:flex}.action-menu{white-space:nowrap;z-index:1;margin-inline-start:var(--mod-coachmark-heading-to-action-button,var(--spectrum-coachmark-heading-to-action-button))}.content{color:var(--mod-coachmark-content-font-color,var(--spectrum-coachmark-content-font-color));font-size:var(--mod-coachmark-content-font-size,var(--spectrum-coachmark-content-font-size));font-weight:var(--mod-coachmark-content-font-weight,var(--spectrum-coachmark-content-font-weight));font-family:var(--mod-coachmark-content-font-family,var(--spectrum-coachmark-content-font-family));font-style:var(--mod-coachmark-content-font-style,var(--spectrum-coachmark-content-font-style));line-height:var(--mod-coachmark-content-line-height,var(--spectrum-coachmark-content-line-height));margin-block-end:var(--mod-coachmark-body-to-footer,var(--spectrum-coachmark-body-to-footer))}.footer{align-items:end;margin-block-start:0;padding-block-end:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding));display:grid}.footer .spectrum-ButtonGroup{grid-column-start:2}.title{color:var(--mod-coachmark-title-color,var(--spectrum-coachmark-title-color));font-size:var(--mod-coachmark-title-font-size,var(--spectrum-coachmark-title-font-size));font-weight:var(--mod-coachmark-title-text-font-weight,var(--spectrum-coachmark-title-text-font-weight));font-family:var(--mod-coachmark-title-font-family,var(--spectrum-coachmark-title-font-family));font-style:var(--mod-coachmark-title-font-style,var(--spectrum-coachmark-title-font-style));line-height:var(--mod-coachmark-title-text-line-height,var(--spectrum-coachmark-title-text-line-height));margin-block-end:0}.step{color:var(--mod-coachmark-step-color,var(--spectrum-coachmark-step-color));font-size:var(--mod-coachmark-step-font-size,var(--spectrum-coachmark-step-font-size));font-weight:var(--mod-coachmark-step-text-font-weight,var(--spectrum-coachmark-step-text-font-weight));font-style:var(--mod-coachmark-step-font-style,var(--spectrum-coachmark-step-font-style));line-height:var(--mod-coachmark-step-text-line-height,var(--spectrum-coachmark-step-text-line-height));white-space:nowrap;justify-self:start;margin-block-end:calc(var(--mod-coachmark-step-to-bottom,var(--spectrum-coachmark-step-to-bottom)) - var(--mod-coachmark-padding,var(--spectrum-coachmark-padding)))}:host{--spectrum-coachmark-min-width:var(--system-coach-mark-min-width);--spectrum-coachmark-width:var(--system-coach-mark-width);--spectrum-coachmark-max-width:var(--system-coach-mark-max-width);--spectrum-coachmark-media-height:var(--system-coach-mark-media-height);--spectrum-coachmark-media-min-height:var(--system-coach-mark-media-min-height);--spectrum-coachmark-padding:var(--system-coach-mark-padding);--spectrum-coachmark-heading-to-action-button:var(--system-coach-mark-heading-to-action-button);--spectrum-coachmark-header-to-body:var(--system-coach-mark-header-to-body);--spectrum-coachmark-body-to-footer:var(--system-coach-mark-body-to-footer);--spectrum-coachmark-title-color:var(--system-coach-mark-title-color);--spectrum-coachmark-title-font-family:var(--system-coach-mark-title-font-family);--spectrum-coachmark-title-font-style:var(--system-coach-mark-title-font-style);--spectrum-coachmark-title-text-font-weight:var(--system-coach-mark-title-text-font-weight);--spectrum-coachmark-title-font-size:var(--system-coach-mark-title-font-size);--spectrum-coachmark-title-text-line-height:var(--system-coach-mark-title-text-line-height);--spectrum-coachmark-content-font-color:var(--system-coach-mark-content-font-color);--spectrum-coachmark-content-font-weight:var(--system-coach-mark-content-font-weight);--spectrum-coachmark-content-font-family:var(--system-coach-mark-content-font-family);--spectrum-coachmark-content-font-style:var(--system-coach-mark-content-font-style);--spectrum-coachmark-content-line-height:var(--system-coach-mark-content-line-height);--spectrum-coachmark-content-font-size:var(--system-coach-mark-content-font-size);--spectrum-coachmark-step-color:var(--system-coach-mark-step-color);--spectrum-coachmark-step-font-weight:var(--system-coach-mark-step-font-weight);--spectrum-coachmark-step-font-family:var(--system-coach-mark-step-font-family);--spectrum-coachmark-step-font-style:var(--system-coach-mark-step-font-style);--spectrum-coachmark-step-line-height:var(--system-coach-mark-step-line-height);--spectrum-coachmark-step-font-size:var(--system-coach-mark-step-font-size);--spectrum-coachmark-step-to-bottom:var(--system-coach-mark-step-to-bottom);--spectrum-coachmark-popover-border-width:var(--system-coach-mark-popover-border-width);--spectrum-coachmark-popover-corner-radius:var(--system-coach-mark-popover-corner-radius);--spectrum-coachmark-buttongroup-spacing-horizontal:var(--system-coach-mark-buttongroup-spacing-horizontal)}:host{--spectrum-coachmark-dimension-size-175:14px;--spectrum-coachmark-dimension-size-200:16px;--spectrum-coachmark-dimension-size-100:8px;--spectrum-coachmark-dimension-size-50:4px;--spectrum-coachmark-content-font-family:var(--spectrum-font-family)}.keyboard-shortcut{background-color:var(--spectrum-gray-200);border:var(--spectrum-text-underline-gap)solid var(--spectrum-gray-200);border-radius:var(--spectrum-spacing-75);color:var(--spectrum-gray-800);min-width:var(--spectrum-badge-min-width);padding-block:var(--spectrum-coachmark-dimension-size-50);padding-inline:var(--spectrum-coachmark-dimension-size-100);flex-flow:row;justify-content:center;align-items:center;display:inline-flex}.keys{align-items:center;gap:var(--spectrum-coachmark-dimension-size-175)var(--spectrum-coachmark-dimension-size-50);font-family:var(--mod-body-sans-serif-font-family,var(--spectrum-body-sans-serif-font-family));flex-flow:wrap;display:flex}.flex-container{align-items:center;gap:var(--spectrum-coachmark-dimension-size-175)var(--spectrum-coachmark-dimension-size-200);flex-wrap:wrap;display:flex}.static-item{flex:0;align-self:flex-start}#cover-photo{display:contents}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-coach-indicator.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{margin:var(--mod-coach-indicator-gap,var(--spectrum-coach-indicator-gap));min-inline-size:var(--mod-coach-indicator-min-inline-size,var(--spectrum-coach-indicator-min-inline-size));min-block-size:var(--mod-coach-indicator-min-block-size,var(--spectrum-coach-indicator-min-block-size));inline-size:var(--mod-coach-indicator-inline-size,var(--spectrum-coach-indicator-inline-size));block-size:var(--mod-coach-indicator-block-size,var(--spectrum-coach-indicator-block-size));position:relative}:host([quiet]){--mod-coach-indicator-min-inline-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-min-block-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-inline-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-block-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-ring-inline-size:var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size));--mod-coach-indicator-ring-block-size:var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size));--mod-coach-indicator-top:calc(var(--mod-coach-indicator-min-inline-size)/3 - var(--spectrum-coach-indicator-ring-border-size));--mod-coach-indicator-left:calc(var(--mod-coach-indicator-min-inline-size)/3 - var(--spectrum-coach-indicator-ring-border-size));--mod-coach-indicator-inner-animation-delay-multiple:var(--mod-coach-indicator-quiet-animation-ring-inner-delay-multiple,var(--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple))}.ring{border-style:solid;border-width:var(--mod-coach-indicator-ring-border-size,var(--spectrum-coach-indicator-ring-border-size));border-color:var(--mod-coach-indicator-ring-default-color,var(--spectrum-coach-indicator-ring-default-color));inline-size:var(--mod-coach-indicator-ring-inline-size,var(--spectrum-coach-indicator-ring-inline-size));block-size:var(--mod-coach-indicator-ring-block-size,var(--spectrum-coach-indicator-ring-block-size));animation:var(--mod-coach-indicator-animation-name,var(--spectrum-coach-indicator-animation-name))var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))linear infinite;border-radius:50%;display:block;position:absolute;inset-block-start:var(--mod-coach-indicator-top,var(--spectrum-coach-indicator-top));inset-inline-start:var(--mod-coach-indicator-left,var(--spectrum-coach-indicator-left))}.ring:first-child{animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-indicator-inner-animation-delay-multiple,var(--spectrum-coach-indicator-inner-animation-delay-multiple)))}.ring:nth-child(2){animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-animation-indicator-ring-center-delay-multiple,var(--spectrum-coach-animation-indicator-ring-center-delay-multiple)))}.ring:nth-child(3){animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-animation-indicator-ring-outer-delay-multiple,var(--spectrum-coach-animation-indicator-ring-outer-delay-multiple)))}:host([static-color=white]) .ring{border-color:var(--mod-coach-indicator-ring-light-color,var(--spectrum-coach-indicator-ring-light-color))}:host([static-color=black]) .ring{border-color:var(--mod-coach-indicator-ring-dark-color,var(--spectrum-coach-indicator-ring-dark-color))}@media (prefers-reduced-motion:reduce){.ring{animation:none}}@keyframes pulse{0%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-0-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-0-opacity)}50%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-50-opacity)}to{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-100-opacity)}}@keyframes pulse-quiet{0%{transform:scale(var(--spectrum-coach-indicator-quiet-animation-keyframe-0-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-0-opacity)}50%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-50-opacity)}to{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-100-opacity)}}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-coach-indicator.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{margin:var(--mod-coach-indicator-gap,var(--spectrum-coach-indicator-gap));min-inline-size:var(--mod-coach-indicator-min-inline-size,var(--spectrum-coach-indicator-min-inline-size));min-block-size:var(--mod-coach-indicator-min-block-size,var(--spectrum-coach-indicator-min-block-size));inline-size:var(--mod-coach-indicator-inline-size,var(--spectrum-coach-indicator-inline-size));block-size:var(--mod-coach-indicator-block-size,var(--spectrum-coach-indicator-block-size));position:relative}:host([quiet]){--mod-coach-indicator-min-inline-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-min-block-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-inline-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-block-size:calc(var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size))*2.75);--mod-coach-indicator-ring-inline-size:var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size));--mod-coach-indicator-ring-block-size:var(--mod-coach-indicator-quiet-ring-diameter,var(--spectrum-coach-indicator-quiet-ring-diameter-size));--mod-coach-indicator-top:calc(var(--mod-coach-indicator-min-inline-size)/3 - var(--spectrum-coach-indicator-ring-border-size));--mod-coach-indicator-left:calc(var(--mod-coach-indicator-min-inline-size)/3 - var(--spectrum-coach-indicator-ring-border-size));--mod-coach-indicator-inner-animation-delay-multiple:var(--mod-coach-indicator-quiet-animation-ring-inner-delay-multiple,var(--spectrum-coach-indicator-quiet-animation-ring-inner-delay-multiple))}.ring{border-style:solid;border-width:var(--mod-coach-indicator-ring-border-size,var(--spectrum-coach-indicator-ring-border-size));border-color:var(--mod-coach-indicator-ring-default-color,var(--spectrum-coach-indicator-ring-default-color));inline-size:var(--mod-coach-indicator-ring-inline-size,var(--spectrum-coach-indicator-ring-inline-size));block-size:var(--mod-coach-indicator-ring-block-size,var(--spectrum-coach-indicator-ring-block-size));animation:var(--mod-coach-indicator-animation-name,var(--spectrum-coach-indicator-animation-name))var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))linear infinite;border-radius:50%;display:block;position:absolute;inset-block-start:var(--mod-coach-indicator-top,var(--spectrum-coach-indicator-top));inset-inline-start:var(--mod-coach-indicator-left,var(--spectrum-coach-indicator-left))}.ring:first-child{animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-indicator-inner-animation-delay-multiple,var(--spectrum-coach-indicator-inner-animation-delay-multiple)))}.ring:nth-child(2){animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-animation-indicator-ring-center-delay-multiple,var(--spectrum-coach-animation-indicator-ring-center-delay-multiple)))}.ring:nth-child(3){animation-delay:calc(var(--mod-coach-animation-indicator-ring-duration,var(--spectrum-coach-animation-indicator-ring-duration))*var(--mod-coach-animation-indicator-ring-outer-delay-multiple,var(--spectrum-coach-animation-indicator-ring-outer-delay-multiple)))}:host([static-color=white]) .ring{border-color:var(--mod-coach-indicator-ring-light-color,var(--spectrum-coach-indicator-ring-light-color))}:host([static-color=black]) .ring{border-color:var(--mod-coach-indicator-ring-dark-color,var(--spectrum-coach-indicator-ring-dark-color))}@media (prefers-reduced-motion:reduce){.ring{animation:none}}@keyframes pulse{0%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-0-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-0-opacity)}50%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-50-opacity)}to{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-100-opacity)}}@keyframes pulse-quiet{0%{transform:scale(var(--spectrum-coach-indicator-quiet-animation-keyframe-0-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-0-opacity)}50%{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-50-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-50-opacity)}to{transform:scale(var(--spectrum-coach-indicator-animation-keyframe-100-scale));opacity:var(--spectrum-coach-indicator-animation-keyframe-100-opacity)}}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-coachmark.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{--mod-buttongroup-justify-content:flex-end;--mod-popover-border-width:var(--spectrum-coachmark-popover-border-width);--mod-popover-corner-radius:var(--spectrum-coachmark-popover-corner-radius);--mod-popover-content-area-spacing-vertical:0;--mod-button-edge-to-visual-only:9px;--spectrum-coachmark-border-size:var(--mod-popover-border-width);--spectrum-coachmark-border-radius:var(--mod-popover-corner-radius);min-inline-size:var(--mod-coachmark-min-width,var(--spectrum-coachmark-min-width));max-inline-size:var(--mod-coachmark-max-width,var(--spectrum-coachmark-max-width));inline-size:var(--mod-coachmark-width,var(--spectrum-coachmark-width));position:relative}.buttongroup{display:var(--spectrum-coachmark-buttongroup-display)}.buttongroup-mobile{--mod-buttongroup-spacing-horizontal:var(--spectrum-coachmark-buttongroup-spacing-horizontal);display:var(--spectrum-coachmark-buttongroup-mobile-display)}.menu{display:var(--spectrum-coachmark-menu-display)}.spectrum-CoachMark-menu--mobile{display:var(--spectrum-coachmark-menu-mobile-display)}.image-wrapper{block-size:var(--mod-coachmark-media-height,var(--spectrum-coachmark-media-height));min-block-size:var(--mod-coachmark-media-min-height,var(--spectrum-coachmark-media-min-height));inline-size:calc(var(--mod-coachmark-width,var(--spectrum-coachmark-width)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size))*2);object-fit:cover;object-position:center;border-start-start-radius:inherit;border-start-end-radius:inherit}.image{inline-size:100%;block-size:100%;object-fit:cover;border-start-start-radius:calc(var(--mod-coachmark-border-radius,var(--spectrum-coachmark-border-radius)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size)));border-start-end-radius:calc(var(--mod-coachmark-border-radius,var(--spectrum-coachmark-border-radius)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size)));display:block}.content,.footer,.header{padding-block:0;padding-inline:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding))}.header{justify-content:space-between;align-items:center;margin-block-end:var(--mod-coachmark-header-to-body,var(--spectrum-coachmark-header-to-body));padding-block-start:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding));display:flex}.action-menu{white-space:nowrap;z-index:1;margin-inline-start:var(--mod-coachmark-heading-to-action-button,var(--spectrum-coachmark-heading-to-action-button))}.content{color:var(--mod-coachmark-content-font-color,var(--spectrum-coachmark-content-font-color));font-size:var(--mod-coachmark-content-font-size,var(--spectrum-coachmark-content-font-size));font-weight:var(--mod-coachmark-content-font-weight,var(--spectrum-coachmark-content-font-weight));font-family:var(--mod-coachmark-content-font-family,var(--spectrum-coachmark-content-font-family));font-style:var(--mod-coachmark-content-font-style,var(--spectrum-coachmark-content-font-style));line-height:var(--mod-coachmark-content-line-height,var(--spectrum-coachmark-content-line-height));margin-block-end:var(--mod-coachmark-body-to-footer,var(--spectrum-coachmark-body-to-footer))}.footer{align-items:end;margin-block-start:0;padding-block-end:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding));display:grid}.footer .spectrum-ButtonGroup{grid-column-start:2}.title{color:var(--mod-coachmark-title-color,var(--spectrum-coachmark-title-color));font-size:var(--mod-coachmark-title-font-size,var(--spectrum-coachmark-title-font-size));font-weight:var(--mod-coachmark-title-text-font-weight,var(--spectrum-coachmark-title-text-font-weight));font-family:var(--mod-coachmark-title-font-family,var(--spectrum-coachmark-title-font-family));font-style:var(--mod-coachmark-title-font-style,var(--spectrum-coachmark-title-font-style));line-height:var(--mod-coachmark-title-text-line-height,var(--spectrum-coachmark-title-text-line-height));margin-block-end:0}.step{color:var(--mod-coachmark-step-color,var(--spectrum-coachmark-step-color));font-size:var(--mod-coachmark-step-font-size,var(--spectrum-coachmark-step-font-size));font-weight:var(--mod-coachmark-step-text-font-weight,var(--spectrum-coachmark-step-text-font-weight));font-style:var(--mod-coachmark-step-font-style,var(--spectrum-coachmark-step-font-style));line-height:var(--mod-coachmark-step-text-line-height,var(--spectrum-coachmark-step-text-line-height));white-space:nowrap;justify-self:start;margin-block-end:calc(var(--mod-coachmark-step-to-bottom,var(--spectrum-coachmark-step-to-bottom)) - var(--mod-coachmark-padding,var(--spectrum-coachmark-padding)))}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-coachmark.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{--mod-buttongroup-justify-content:flex-end;--mod-popover-border-width:var(--spectrum-coachmark-popover-border-width);--mod-popover-corner-radius:var(--spectrum-coachmark-popover-corner-radius);--mod-popover-content-area-spacing-vertical:0;--mod-button-edge-to-visual-only:9px;--spectrum-coachmark-border-size:var(--mod-popover-border-width);--spectrum-coachmark-border-radius:var(--mod-popover-corner-radius);min-inline-size:var(--mod-coachmark-min-width,var(--spectrum-coachmark-min-width));max-inline-size:var(--mod-coachmark-max-width,var(--spectrum-coachmark-max-width));inline-size:var(--mod-coachmark-width,var(--spectrum-coachmark-width));position:relative}.buttongroup{display:var(--spectrum-coachmark-buttongroup-display)}.buttongroup-mobile{--mod-buttongroup-spacing-horizontal:var(--spectrum-coachmark-buttongroup-spacing-horizontal);display:var(--spectrum-coachmark-buttongroup-mobile-display)}.menu{display:var(--spectrum-coachmark-menu-display)}.spectrum-CoachMark-menu--mobile{display:var(--spectrum-coachmark-menu-mobile-display)}.image-wrapper{block-size:var(--mod-coachmark-media-height,var(--spectrum-coachmark-media-height));min-block-size:var(--mod-coachmark-media-min-height,var(--spectrum-coachmark-media-min-height));inline-size:calc(var(--mod-coachmark-width,var(--spectrum-coachmark-width)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size))*2);object-fit:cover;object-position:center;border-start-start-radius:inherit;border-start-end-radius:inherit}.image{inline-size:100%;block-size:100%;object-fit:cover;border-start-start-radius:calc(var(--mod-coachmark-border-radius,var(--spectrum-coachmark-border-radius)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size)));border-start-end-radius:calc(var(--mod-coachmark-border-radius,var(--spectrum-coachmark-border-radius)) - var(--mod-coachmark-border-size,var(--spectrum-coachmark-border-size)));display:block}.content,.footer,.header{padding-block:0;padding-inline:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding))}.header{justify-content:space-between;align-items:center;margin-block-end:var(--mod-coachmark-header-to-body,var(--spectrum-coachmark-header-to-body));padding-block-start:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding));display:flex}.action-menu{white-space:nowrap;z-index:1;margin-inline-start:var(--mod-coachmark-heading-to-action-button,var(--spectrum-coachmark-heading-to-action-button))}.content{color:var(--mod-coachmark-content-font-color,var(--spectrum-coachmark-content-font-color));font-size:var(--mod-coachmark-content-font-size,var(--spectrum-coachmark-content-font-size));font-weight:var(--mod-coachmark-content-font-weight,var(--spectrum-coachmark-content-font-weight));font-family:var(--mod-coachmark-content-font-family,var(--spectrum-coachmark-content-font-family));font-style:var(--mod-coachmark-content-font-style,var(--spectrum-coachmark-content-font-style));line-height:var(--mod-coachmark-content-line-height,var(--spectrum-coachmark-content-line-height));margin-block-end:var(--mod-coachmark-body-to-footer,var(--spectrum-coachmark-body-to-footer))}.footer{align-items:end;margin-block-start:0;padding-block-end:var(--mod-coachmark-padding,var(--spectrum-coachmark-padding));display:grid}.footer .spectrum-ButtonGroup{grid-column-start:2}.title{color:var(--mod-coachmark-title-color,var(--spectrum-coachmark-title-color));font-size:var(--mod-coachmark-title-font-size,var(--spectrum-coachmark-title-font-size));font-weight:var(--mod-coachmark-title-text-font-weight,var(--spectrum-coachmark-title-text-font-weight));font-family:var(--mod-coachmark-title-font-family,var(--spectrum-coachmark-title-font-family));font-style:var(--mod-coachmark-title-font-style,var(--spectrum-coachmark-title-font-style));line-height:var(--mod-coachmark-title-text-line-height,var(--spectrum-coachmark-title-text-line-height));margin-block-end:0}.step{color:var(--mod-coachmark-step-color,var(--spectrum-coachmark-step-color));font-size:var(--mod-coachmark-step-font-size,var(--spectrum-coachmark-step-font-size));font-weight:var(--mod-coachmark-step-text-font-weight,var(--spectrum-coachmark-step-text-font-weight));font-style:var(--mod-coachmark-step-font-style,var(--spectrum-coachmark-step-font-style));line-height:var(--mod-coachmark-step-text-line-height,var(--spectrum-coachmark-step-text-line-height));white-space:nowrap;justify-self:start;margin-block-end:calc(var(--mod-coachmark-step-to-bottom,var(--spectrum-coachmark-step-to-bottom)) - var(--mod-coachmark-padding,var(--spectrum-coachmark-padding)))}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -216,6 +216,10 @@ export const withGif = (props) => {
|
|
|
216
216
|
withGif.swc_vrt = {
|
|
217
217
|
skip: true
|
|
218
218
|
};
|
|
219
|
+
withGif.parameters = {
|
|
220
|
+
// Disables Chromatic's snapshotting on a global level
|
|
221
|
+
chromatic: { disableSnapshot: true }
|
|
222
|
+
};
|
|
219
223
|
export const withKeys = (props) => {
|
|
220
224
|
const {
|
|
221
225
|
modifierKeys = ["\u21E7 Shift", "\u2318"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["coachmark.stories.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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport type { MediaType } from '../src/CoachmarkItem.js';\nimport '@spectrum-web-components/coachmark/sp-coachmark.js';\nimport '@spectrum-web-components/coachmark/sp-coach-indicator.js';\nimport '@spectrum-web-components/action-menu/sp-action-menu.js';\nimport { cave, gif } from './images.js';\nimport type { Placement } from '@spectrum-web-components/overlay';\nimport '@spectrum-web-components/overlay/sp-overlay.js';\n\nexport default {\n title: 'Coachmark',\n component: 'sp-coachmark',\n argTypes: {\n onPrimary: { action: 'primary' },\n onSecondary: { action: 'secondary' },\n },\n};\n\ntype StoryArgs = {\n onPrimary?: (event: Event) => void;\n onSecondary?: (event: Event) => void;\n};\n\ntype Properties = {\n open?: boolean;\n placement?: Placement;\n id?: string;\n heading?: string;\n shortcutKey?: string;\n modifierKeys?: string[];\n content?: string;\n src?: string;\n mediaType?: MediaType;\n imageAlt?: string;\n currentStep?: number;\n totalSteps?: number;\n primaryCTA?: string;\n secondaryCTA?: string;\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-coachmark open>\n <div id=\"heading\" slot=\"title\">Coachmark with Text Only</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of lonely\n in here.\n </div>\n </sp-coachmark>\n `;\n};\n\nexport const InTour = (\n props: Properties,\n args: StoryArgs = {}\n): TemplateResult => {\n const {\n open = true,\n heading = 'Coachmark in Tour',\n content = 'This is a Coachmark with nothing but text in it.',\n currentStep = 2,\n totalSteps = 8,\n } = props;\n return html`\n <sp-coachmark\n ?open=${open}\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n .content=${{\n title: heading,\n description: content,\n }}\n @primary=${(event: Event & { target: HTMLElement }) => {\n event.target.dispatchEvent(\n new Event('close', { bubbles: true, composed: true })\n );\n args.onPrimary?.(event);\n }}\n @secondary=${(event: Event & { target: HTMLElement }) => {\n event.target.dispatchEvent(\n new Event('close', { bubbles: true, composed: true })\n );\n args.onSecondary?.(event);\n }}\n >\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n\nexport const single = (): TemplateResult => {\n return html`\n <sp-coachmark open primary-cta=\"Ok\">\n <div slot=\"title\">A single coachmark</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of lonely\n in here.\n </div>\n </sp-coachmark>\n `;\n};\n\nexport const TriggerOnClick = (props: Properties): TemplateResult => {\n const { open = true, currentStep = 1, totalSteps = 4 } = props;\n\n return html`\n <sp-coach-indicator id=\"trigger\"></sp-coach-indicator>\n <sp-overlay\n trigger=\"trigger@click\"\n placement=\"right\"\n .receivesFocus=${'false'}\n ?open=${open}\n >\n <sp-coachmark\n ?open=${open}\n current-step=${currentStep}\n total-steps=${totalSteps}\n primary-cta=\"\u6B21\"\n secondary-cta=\"\u524D\u306E\"\n >\n <div slot=\"title\">\u30AF\u30EA\u30C3\u30AF\u6642\u306E\u30B3\u30FC\u30C1\u30DE\u30FC\u30AF</div>\n <div slot=\"content\">\n \u3053\u308C\u306F\u30C6\u30AD\u30B9\u30C8\u3060\u3051\u304C\u5165\u3063\u305F\u30B3\u30FC\u30C1\u30DE\u30FC\u30AF\u3067\u3059\u3002\u3053\u3053\u306F\u306A\u3093\u3060\u304B\u5BC2\u3057\u3044\u3067\u3059\u306D\u3002\n </div>\n <div slot=\"step-count\">4 \u5206\u306E 1</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>\u30C4\u30A2\u30FC\u3092\u30B9\u30AD\u30C3\u30D7</sp-menu-item>\n <sp-menu-item>\u30C4\u30A2\u30FC\u518D\u958B</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n </sp-overlay>\n `;\n};\n\nexport const TriggerOnHover = (props: Properties): TemplateResult => {\n const { open = true, currentStep = 2, totalSteps = 8 } = props;\n\n return html`\n <sp-coach-indicator id=\"trigger\"></sp-coach-indicator>\n <sp-overlay\n trigger=\"trigger@hover\"\n placement=\"right\"\n .receivesFocus=${'false'}\n ?open=${open}\n >\n <sp-coachmark\n ?open=${open}\n current-step=${currentStep}\n total-steps=${totalSteps}\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n >\n <div slot=\"title\">Coachmark on hover</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of\n lonely in here.\n </div>\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n </sp-overlay>\n `;\n};\n\nexport const withImage = (props: Properties): TemplateResult => {\n const { open = true, currentStep = 2, totalSteps = 8 } = props;\n return html`\n <sp-coachmark\n ?open=${open}\n src=${cave}\n media-type=\"image\"\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n >\n <div slot=\"title\">Coachmark with Media</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of lonely\n in here.\n </div>\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n\nexport const withGif = (props: Properties): TemplateResult => {\n const { open = true, currentStep = 2, totalSteps = 8 } = props;\n\n return html`\n <sp-coachmark\n ?open=${open}\n src=${gif}\n media-type=\"image\"\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n >\n <div slot=\"title\">Coachmark with GIF</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of lonely\n in here.\n </div>\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n\nwithGif.swc_vrt = {\n skip: true,\n};\n\nexport const withKeys = (props: Properties): TemplateResult => {\n const {\n modifierKeys = ['\u21E7 Shift', '\u2318'],\n heading = 'Coachmark with Keys',\n content = 'This is a Coachmark with nothing but text in it.',\n currentStep = 2,\n totalSteps = 8,\n } = props;\n return html`\n <sp-coachmark\n open\n .modifierKeys=${modifierKeys}\n .content=${{\n title: heading,\n description: content,\n }}\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n >\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n\nexport const withShortCut = (props: Properties): TemplateResult => {\n const { currentStep = 2, totalSteps = 8 } = props;\n return html`\n <sp-coachmark\n open\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n shortcut-key=\"Z\"\n .content=${{\n title: 'Coachmark Shortcut',\n description:\n 'This is a Coachmark with nothing but text in it. Kind of lonely in here',\n }}\n >\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n"],
|
|
5
|
-
"mappings": "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",
|
|
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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport type { MediaType } from '../src/CoachmarkItem.js';\nimport '@spectrum-web-components/coachmark/sp-coachmark.js';\nimport '@spectrum-web-components/coachmark/sp-coach-indicator.js';\nimport '@spectrum-web-components/action-menu/sp-action-menu.js';\nimport { cave, gif } from './images.js';\nimport type { Placement } from '@spectrum-web-components/overlay';\nimport '@spectrum-web-components/overlay/sp-overlay.js';\n\nexport default {\n title: 'Coachmark',\n component: 'sp-coachmark',\n argTypes: {\n onPrimary: { action: 'primary' },\n onSecondary: { action: 'secondary' },\n },\n};\n\ntype StoryArgs = {\n onPrimary?: (event: Event) => void;\n onSecondary?: (event: Event) => void;\n};\n\ntype Properties = {\n open?: boolean;\n placement?: Placement;\n id?: string;\n heading?: string;\n shortcutKey?: string;\n modifierKeys?: string[];\n content?: string;\n src?: string;\n mediaType?: MediaType;\n imageAlt?: string;\n currentStep?: number;\n totalSteps?: number;\n primaryCTA?: string;\n secondaryCTA?: string;\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-coachmark open>\n <div id=\"heading\" slot=\"title\">Coachmark with Text Only</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of lonely\n in here.\n </div>\n </sp-coachmark>\n `;\n};\n\nexport const InTour = (\n props: Properties,\n args: StoryArgs = {}\n): TemplateResult => {\n const {\n open = true,\n heading = 'Coachmark in Tour',\n content = 'This is a Coachmark with nothing but text in it.',\n currentStep = 2,\n totalSteps = 8,\n } = props;\n return html`\n <sp-coachmark\n ?open=${open}\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n .content=${{\n title: heading,\n description: content,\n }}\n @primary=${(event: Event & { target: HTMLElement }) => {\n event.target.dispatchEvent(\n new Event('close', { bubbles: true, composed: true })\n );\n args.onPrimary?.(event);\n }}\n @secondary=${(event: Event & { target: HTMLElement }) => {\n event.target.dispatchEvent(\n new Event('close', { bubbles: true, composed: true })\n );\n args.onSecondary?.(event);\n }}\n >\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n\nexport const single = (): TemplateResult => {\n return html`\n <sp-coachmark open primary-cta=\"Ok\">\n <div slot=\"title\">A single coachmark</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of lonely\n in here.\n </div>\n </sp-coachmark>\n `;\n};\n\nexport const TriggerOnClick = (props: Properties): TemplateResult => {\n const { open = true, currentStep = 1, totalSteps = 4 } = props;\n\n return html`\n <sp-coach-indicator id=\"trigger\"></sp-coach-indicator>\n <sp-overlay\n trigger=\"trigger@click\"\n placement=\"right\"\n .receivesFocus=${'false'}\n ?open=${open}\n >\n <sp-coachmark\n ?open=${open}\n current-step=${currentStep}\n total-steps=${totalSteps}\n primary-cta=\"\u6B21\"\n secondary-cta=\"\u524D\u306E\"\n >\n <div slot=\"title\">\u30AF\u30EA\u30C3\u30AF\u6642\u306E\u30B3\u30FC\u30C1\u30DE\u30FC\u30AF</div>\n <div slot=\"content\">\n \u3053\u308C\u306F\u30C6\u30AD\u30B9\u30C8\u3060\u3051\u304C\u5165\u3063\u305F\u30B3\u30FC\u30C1\u30DE\u30FC\u30AF\u3067\u3059\u3002\u3053\u3053\u306F\u306A\u3093\u3060\u304B\u5BC2\u3057\u3044\u3067\u3059\u306D\u3002\n </div>\n <div slot=\"step-count\">4 \u5206\u306E 1</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>\u30C4\u30A2\u30FC\u3092\u30B9\u30AD\u30C3\u30D7</sp-menu-item>\n <sp-menu-item>\u30C4\u30A2\u30FC\u518D\u958B</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n </sp-overlay>\n `;\n};\n\nexport const TriggerOnHover = (props: Properties): TemplateResult => {\n const { open = true, currentStep = 2, totalSteps = 8 } = props;\n\n return html`\n <sp-coach-indicator id=\"trigger\"></sp-coach-indicator>\n <sp-overlay\n trigger=\"trigger@hover\"\n placement=\"right\"\n .receivesFocus=${'false'}\n ?open=${open}\n >\n <sp-coachmark\n ?open=${open}\n current-step=${currentStep}\n total-steps=${totalSteps}\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n >\n <div slot=\"title\">Coachmark on hover</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of\n lonely in here.\n </div>\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n </sp-overlay>\n `;\n};\n\nexport const withImage = (props: Properties): TemplateResult => {\n const { open = true, currentStep = 2, totalSteps = 8 } = props;\n return html`\n <sp-coachmark\n ?open=${open}\n src=${cave}\n media-type=\"image\"\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n >\n <div slot=\"title\">Coachmark with Media</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of lonely\n in here.\n </div>\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n\nexport const withGif = (props: Properties): TemplateResult => {\n const { open = true, currentStep = 2, totalSteps = 8 } = props;\n\n return html`\n <sp-coachmark\n ?open=${open}\n src=${gif}\n media-type=\"image\"\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n >\n <div slot=\"title\">Coachmark with GIF</div>\n <div slot=\"content\">\n This is a Coachmark with nothing but text in it. Kind of lonely\n in here.\n </div>\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n\nwithGif.swc_vrt = {\n skip: true,\n};\n\nwithGif.parameters = {\n // Disables Chromatic's snapshotting on a global level\n chromatic: { disableSnapshot: true },\n};\n\nexport const withKeys = (props: Properties): TemplateResult => {\n const {\n modifierKeys = ['\u21E7 Shift', '\u2318'],\n heading = 'Coachmark with Keys',\n content = 'This is a Coachmark with nothing but text in it.',\n currentStep = 2,\n totalSteps = 8,\n } = props;\n return html`\n <sp-coachmark\n open\n .modifierKeys=${modifierKeys}\n .content=${{\n title: heading,\n description: content,\n }}\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n >\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n\nexport const withShortCut = (props: Properties): TemplateResult => {\n const { currentStep = 2, totalSteps = 8 } = props;\n return html`\n <sp-coachmark\n open\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=${currentStep}\n total-steps=${totalSteps}\n shortcut-key=\"Z\"\n .content=${{\n title: 'Coachmark Shortcut',\n description:\n 'This is a Coachmark with nothing but text in it. Kind of lonely in here',\n }}\n >\n <div slot=\"step-count\">${currentStep} of ${totalSteps}</div>\n <sp-action-menu\n placement=\"bottom-end\"\n quiet\n slot=\"actions\"\n label=\"More Actions\"\n >\n <sp-menu-item>Skip tour</sp-menu-item>\n <sp-menu-item>Restart tour</sp-menu-item>\n </sp-action-menu>\n </sp-coachmark>\n `;\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|