@spectrum-web-components/coachmark 0.0.0-20241209155954

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.
Files changed (63) hide show
  1. package/README.md +238 -0
  2. package/package.json +94 -0
  3. package/sp-coach-indicator.d.ts +6 -0
  4. package/sp-coach-indicator.dev.js +5 -0
  5. package/sp-coach-indicator.dev.js.map +7 -0
  6. package/sp-coach-indicator.js +2 -0
  7. package/sp-coach-indicator.js.map +7 -0
  8. package/sp-coachmark.d.ts +6 -0
  9. package/sp-coachmark.dev.js +5 -0
  10. package/sp-coachmark.dev.js.map +7 -0
  11. package/sp-coachmark.js +2 -0
  12. package/sp-coachmark.js.map +7 -0
  13. package/src/CoachIndicator.d.ts +10 -0
  14. package/src/CoachIndicator.dev.js +40 -0
  15. package/src/CoachIndicator.dev.js.map +7 -0
  16. package/src/CoachIndicator.js +6 -0
  17. package/src/CoachIndicator.js.map +7 -0
  18. package/src/Coachmark.d.ts +49 -0
  19. package/src/Coachmark.dev.js +290 -0
  20. package/src/Coachmark.dev.js.map +7 -0
  21. package/src/Coachmark.js +115 -0
  22. package/src/Coachmark.js.map +7 -0
  23. package/src/CoachmarkItem.d.ts +18 -0
  24. package/src/CoachmarkItem.dev.js +7 -0
  25. package/src/CoachmarkItem.dev.js.map +7 -0
  26. package/src/CoachmarkItem.js +2 -0
  27. package/src/CoachmarkItem.js.map +7 -0
  28. package/src/coach-indicator-overrides.css.d.ts +2 -0
  29. package/src/coach-indicator-overrides.css.dev.js +7 -0
  30. package/src/coach-indicator-overrides.css.dev.js.map +7 -0
  31. package/src/coach-indicator-overrides.css.js +4 -0
  32. package/src/coach-indicator-overrides.css.js.map +7 -0
  33. package/src/coach-indicator.css.d.ts +2 -0
  34. package/src/coach-indicator.css.dev.js +7 -0
  35. package/src/coach-indicator.css.dev.js.map +7 -0
  36. package/src/coach-indicator.css.js +4 -0
  37. package/src/coach-indicator.css.js.map +7 -0
  38. package/src/coachmark-overrides.css.d.ts +2 -0
  39. package/src/coachmark-overrides.css.dev.js +7 -0
  40. package/src/coachmark-overrides.css.dev.js.map +7 -0
  41. package/src/coachmark-overrides.css.js +4 -0
  42. package/src/coachmark-overrides.css.js.map +7 -0
  43. package/src/coachmark.css.d.ts +2 -0
  44. package/src/coachmark.css.dev.js +7 -0
  45. package/src/coachmark.css.dev.js.map +7 -0
  46. package/src/coachmark.css.js +4 -0
  47. package/src/coachmark.css.js.map +7 -0
  48. package/src/index.d.ts +3 -0
  49. package/src/index.dev.js +5 -0
  50. package/src/index.dev.js.map +7 -0
  51. package/src/index.js +2 -0
  52. package/src/index.js.map +7 -0
  53. package/src/spectrum-coach-indicator.css.d.ts +2 -0
  54. package/src/spectrum-coach-indicator.css.dev.js +7 -0
  55. package/src/spectrum-coach-indicator.css.dev.js.map +7 -0
  56. package/src/spectrum-coach-indicator.css.js +4 -0
  57. package/src/spectrum-coach-indicator.css.js.map +7 -0
  58. package/src/spectrum-coachmark.css.d.ts +2 -0
  59. package/src/spectrum-coachmark.css.dev.js +7 -0
  60. package/src/spectrum-coachmark.css.dev.js.map +7 -0
  61. package/src/spectrum-coachmark.css.js +4 -0
  62. package/src/spectrum-coachmark.css.js.map +7 -0
  63. package/src/spectrum-config.js +69 -0
@@ -0,0 +1,290 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __decorateClass = (decorators, target, key, kind) => {
5
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
+ if (decorator = decorators[i])
8
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
+ if (kind && result) __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ nothing
15
+ } from "@spectrum-web-components/base";
16
+ import { property } from "@spectrum-web-components/base/src/decorators.js";
17
+ import { when } from "@spectrum-web-components/base/src/directives.js";
18
+ import coachmarkStyles from "./coachmark.css.js";
19
+ import chevronStyles from "@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js";
20
+ import chevronIconOverrides from "@spectrum-web-components/icon/src/icon-chevron-overrides.css.js";
21
+ import "@spectrum-web-components/icons-ui/icons/sp-icon-chevron200.js";
22
+ import { Popover } from "@spectrum-web-components/popover";
23
+ import { join } from "@spectrum-web-components/base/src/directives.js";
24
+ import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
25
+ import { MediaType } from "./CoachmarkItem.dev.js";
26
+ import "@spectrum-web-components/asset/sp-asset.js";
27
+ import "@spectrum-web-components/button/sp-button.js";
28
+ import "@spectrum-web-components/button-group/sp-button-group.js";
29
+ export class Coachmark extends Popover {
30
+ constructor() {
31
+ super(...arguments);
32
+ this.placement = "right";
33
+ this.modifierKeys = [];
34
+ this.hasAsset = false;
35
+ this.renderSecondaryButton = () => {
36
+ return html`
37
+ <sp-button
38
+ treatment="outline"
39
+ variant="secondary"
40
+ @click=${this.handleSecondaryCTA}
41
+ >
42
+ ${this.secondaryCTA}
43
+ </sp-button>
44
+ `;
45
+ };
46
+ this.renderPrimaryButton = () => {
47
+ return html`
48
+ <sp-button
49
+ size="s"
50
+ treatment="outline"
51
+ variant="primary"
52
+ @click=${this.handlePrimaryCTA}
53
+ >
54
+ ${this.primaryCTA}
55
+ </sp-button>
56
+ `;
57
+ };
58
+ this.renderSecondaryButtonMobile = () => {
59
+ return html`
60
+ <sp-button
61
+ variant="secondary"
62
+ treatment="outline"
63
+ icon-only
64
+ aria-label="previous"
65
+ @click=${this.handleSecondaryCTA}
66
+ >
67
+ <sp-icon-chevron200
68
+ size="s"
69
+ class="spectrum-UIIcon-ChevronLeft75"
70
+ slot="icon"
71
+ ></sp-icon-chevron200>
72
+ </sp-button>
73
+ `;
74
+ };
75
+ this.renderPrimaryButtonMobile = () => {
76
+ return html`
77
+ <sp-button
78
+ size="s"
79
+ treatment="outline"
80
+ variant="primary"
81
+ @click=${this.handlePrimaryCTA}
82
+ >
83
+ ${this.primaryCTA}
84
+ </sp-button>
85
+ `;
86
+ };
87
+ // render steps
88
+ this.renderSteps = () => {
89
+ return html`
90
+ <div class="step" role="status">
91
+ <span aria-live="polite">
92
+ <slot name="step-count">
93
+ ${this.currentStep} of ${this.totalSteps}
94
+ </slot>
95
+ </span>
96
+ </div>
97
+ `;
98
+ };
99
+ // render action menu
100
+ this.renderActionMenu = () => {
101
+ return html`
102
+ <div class="action-menu">
103
+ <slot name="actions"></slot>
104
+ </div>
105
+ `;
106
+ };
107
+ }
108
+ static get styles() {
109
+ return [
110
+ ...super.styles,
111
+ coachmarkStyles,
112
+ chevronStyles,
113
+ chevronIconOverrides
114
+ ];
115
+ }
116
+ // render video and images
117
+ renderMedia() {
118
+ var _a;
119
+ const isImage = this.mediaType === MediaType.IMAGE;
120
+ if (!isImage) {
121
+ return html`
122
+ <slot name="asset"></slot>
123
+ `;
124
+ }
125
+ return html`
126
+ <sp-asset id="cover-photo">
127
+ <div class="image-wrapper">
128
+ <img
129
+ class="image"
130
+ loading="lazy"
131
+ slot="cover-photo"
132
+ src="${ifDefined(this.source)}"
133
+ alt="${ifDefined((_a = this == null ? void 0 : this.content) == null ? void 0 : _a.imageAlt)}"
134
+ />
135
+ </div>
136
+ </sp-asset>
137
+ `;
138
+ }
139
+ // method to render modifier
140
+ renderModifier(modifierKey, type = "modifier") {
141
+ return html`
142
+ <span type="${type}" class="keyboard-shortcut">${modifierKey}</span>
143
+ `;
144
+ }
145
+ renderJoiner() {
146
+ return html`
147
+ <span class="plus">&plus;</span>
148
+ `;
149
+ }
150
+ // render heading title and modifier
151
+ renderHeader() {
152
+ var _a, _b, _c, _d;
153
+ const hasModifier = this.modifierKeys && ((_a = this.modifierKeys) == null ? void 0 : _a.length) > 0;
154
+ const hasShortcut = Boolean(this.shortcutKey);
155
+ const hasTitle = Boolean((_b = this.content) == null ? void 0 : _b.title);
156
+ if (!hasTitle && !hasModifier && !hasShortcut) {
157
+ return html`
158
+ <div class="title"><slot name="title"></slot></div>
159
+ `;
160
+ }
161
+ return html`
162
+ ${hasTitle ? html`
163
+ <div class="title">${(_c = this.content) == null ? void 0 : _c.title}</div>
164
+ ` : nothing}
165
+ ${hasModifier || hasShortcut ? html`
166
+ <kbd class="keys spectrum-Body spectrum-Body--sizeS">
167
+ ${hasModifier ? join(
168
+ (_d = this.modifierKeys) == null ? void 0 : _d.map(
169
+ (k) => this.renderModifier(k)
170
+ ),
171
+ this.renderJoiner()
172
+ ) : nothing}
173
+ ${hasShortcut && hasModifier ? this.renderJoiner() : nothing}
174
+ ${hasShortcut ? this.renderModifier(
175
+ this.shortcutKey,
176
+ "shortcut"
177
+ ) : nothing}
178
+ </kbd>
179
+ ` : nothing}
180
+ `;
181
+ }
182
+ // render description
183
+ renderContent() {
184
+ var _a, _b;
185
+ const hasDescription = Boolean((_a = this.content) == null ? void 0 : _a.description);
186
+ if (!hasDescription)
187
+ return html`
188
+ <slot name="content"></slot>
189
+ `;
190
+ return html`
191
+ <div>${(_b = this.content) == null ? void 0 : _b.description}</div>
192
+ `;
193
+ }
194
+ // event on primary button
195
+ handlePrimaryCTA() {
196
+ this.dispatchEvent(
197
+ new Event("primary", {
198
+ bubbles: true,
199
+ composed: true
200
+ })
201
+ );
202
+ }
203
+ // event on secondary button
204
+ handleSecondaryCTA() {
205
+ this.dispatchEvent(
206
+ new Event("secondary", {
207
+ bubbles: true,
208
+ composed: true
209
+ })
210
+ );
211
+ }
212
+ renderButtons() {
213
+ return html`
214
+ <sp-button-group class="spectrum-ButtonGroup buttongroup">
215
+ ${when(this.secondaryCTA, this.renderSecondaryButton)}
216
+ ${when(this.primaryCTA, this.renderPrimaryButton)}
217
+ </sp-button-group>
218
+ <sp-button-group
219
+ class="spectrum-ButtonGroup buttongroup-mobile"
220
+ size="s"
221
+ >
222
+ ${when(this.secondaryCTA, this.renderSecondaryButtonMobile)}
223
+ ${when(this.primaryCTA, this.renderPrimaryButtonMobile)}
224
+ </sp-button-group>
225
+ `;
226
+ }
227
+ render() {
228
+ return html`
229
+ ${this.renderMedia()}
230
+ <div class="header">
231
+ <div class="flex-container">${this.renderHeader()}</div>
232
+ <div class="static-item">
233
+ ${when(
234
+ this.secondaryCTA && this.primaryCTA,
235
+ this.renderActionMenu
236
+ )}
237
+ </div>
238
+ </div>
239
+
240
+ <div class="content">${this.renderContent()}</div>
241
+ <div class="footer">
242
+ ${when(
243
+ this.totalSteps && this.totalSteps > 1,
244
+ this.renderSteps
245
+ )}
246
+ ${this.renderButtons()}
247
+ </div>
248
+ `;
249
+ }
250
+ }
251
+ __decorateClass([
252
+ property({ type: Object })
253
+ ], Coachmark.prototype, "item", 2);
254
+ __decorateClass([
255
+ property({ type: String })
256
+ ], Coachmark.prototype, "placement", 2);
257
+ __decorateClass([
258
+ property({ type: Object, attribute: false })
259
+ ], Coachmark.prototype, "content", 2);
260
+ __decorateClass([
261
+ property({ attribute: "shortcut-key" })
262
+ ], Coachmark.prototype, "shortcutKey", 2);
263
+ __decorateClass([
264
+ property({ type: Array })
265
+ ], Coachmark.prototype, "modifierKeys", 2);
266
+ __decorateClass([
267
+ property({ attribute: "src" })
268
+ ], Coachmark.prototype, "source", 2);
269
+ __decorateClass([
270
+ property({ attribute: "media-type" })
271
+ ], Coachmark.prototype, "mediaType", 2);
272
+ __decorateClass([
273
+ property({ type: Boolean, attribute: "has-asset", reflect: true })
274
+ ], Coachmark.prototype, "hasAsset", 2);
275
+ __decorateClass([
276
+ property()
277
+ ], Coachmark.prototype, "asset", 2);
278
+ __decorateClass([
279
+ property({ type: Number, attribute: "current-step" })
280
+ ], Coachmark.prototype, "currentStep", 2);
281
+ __decorateClass([
282
+ property({ type: Number, attribute: "total-steps" })
283
+ ], Coachmark.prototype, "totalSteps", 2);
284
+ __decorateClass([
285
+ property({ type: String, attribute: "primary-cta" })
286
+ ], Coachmark.prototype, "primaryCTA", 2);
287
+ __decorateClass([
288
+ property({ type: String, attribute: "secondary-cta" })
289
+ ], Coachmark.prototype, "secondaryCTA", 2);
290
+ //# sourceMappingURL=Coachmark.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Coachmark.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n nothing,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { when } from '@spectrum-web-components/base/src/directives.js';\nimport coachmarkStyles from './coachmark.css.js';\nimport chevronStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';\nimport chevronIconOverrides from '@spectrum-web-components/icon/src/icon-chevron-overrides.css.js';\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-chevron200.js';\nimport { Popover } from '@spectrum-web-components/popover';\nimport { join } from '@spectrum-web-components/base/src/directives.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport type { Placement } from '@spectrum-web-components/overlay';\nimport { MediaType } from './CoachmarkItem.dev.js'\nimport type { CoachmarkItem } from './CoachmarkItem.dev.js'\nimport '@spectrum-web-components/asset/sp-asset.js';\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/button-group/sp-button-group.js';\n\n/**\n * @element sp-coachmark\n * @fires primary - Announces that the \"primary\" button has been clicked.\n * @fires secondary - Announces that the \"secondary\" button has been clicked.\n * @slot cover-photo - This is the cover photo for Default and Quiet Coachmark\n * @slot heading - HTML content to be listed as the heading\n * @slot description - A description of the card\n * @slot actions - an `sp-action-menu` element outlining actions to take on the represened object\n * @slot step-count - Override the default pagination delivery with your own internationalized content\n */\nexport class Coachmark extends Popover {\n public static override get styles(): CSSResultArray {\n return [\n ...super.styles,\n coachmarkStyles,\n chevronStyles,\n chevronIconOverrides,\n ];\n }\n @property({ type: Object })\n public item?: CoachmarkItem;\n\n @property({ type: String })\n public override placement: Placement = 'right';\n\n @property({ type: Object, attribute: false })\n private content?: {\n title?: string;\n description?: string;\n imageAlt?: string;\n };\n\n @property({ attribute: 'shortcut-key' })\n private shortcutKey?: string;\n\n @property({ type: Array })\n public modifierKeys?: string[] = [];\n\n @property({ attribute: 'src' })\n private source?: string;\n\n @property({ attribute: 'media-type' })\n private mediaType?: MediaType;\n\n @property({ type: Boolean, attribute: 'has-asset', reflect: true })\n public hasAsset = false;\n\n @property()\n public asset?: 'file' | 'folder';\n\n @property({ type: Number, attribute: 'current-step' })\n public currentStep?: number;\n\n @property({ type: Number, attribute: 'total-steps' })\n public totalSteps?: number;\n\n @property({ type: String, attribute: 'primary-cta' })\n primaryCTA?: string;\n\n @property({ type: String, attribute: 'secondary-cta' })\n secondaryCTA?: string;\n\n // render video and images\n private renderMedia(): TemplateResult {\n const isImage = this.mediaType === MediaType.IMAGE;\n if (!isImage) {\n return html`\n <slot name=\"asset\"></slot>\n `;\n }\n return html`\n <sp-asset id=\"cover-photo\">\n <div class=\"image-wrapper\">\n <img\n class=\"image\"\n loading=\"lazy\"\n slot=\"cover-photo\"\n src=\"${ifDefined(this.source)}\"\n alt=\"${ifDefined(this?.content?.imageAlt)}\"\n />\n </div>\n </sp-asset>\n `;\n }\n // method to render modifier\n private renderModifier(\n modifierKey: string,\n type: 'modifier' | 'shortcut' = 'modifier'\n ): TemplateResult {\n return html`\n <span type=\"${type}\" class=\"keyboard-shortcut\">${modifierKey}</span>\n `;\n }\n\n private renderJoiner(): TemplateResult {\n return html`\n <span class=\"plus\">&plus;</span>\n `;\n }\n // render heading title and modifier\n private renderHeader(): TemplateResult {\n const hasModifier = this.modifierKeys && this.modifierKeys?.length > 0;\n const hasShortcut = Boolean(this.shortcutKey);\n const hasTitle = Boolean(this.content?.title);\n if (!hasTitle && !hasModifier && !hasShortcut) {\n return html`\n <div class=\"title\"><slot name=\"title\"></slot></div>\n `;\n }\n return html`\n ${hasTitle\n ? html`\n <div class=\"title\">${this.content?.title}</div>\n `\n : nothing}\n ${hasModifier || hasShortcut\n ? html`\n <kbd class=\"keys spectrum-Body spectrum-Body--sizeS\">\n ${hasModifier\n ? join(\n this.modifierKeys?.map((k) =>\n this.renderModifier(k)\n ),\n this.renderJoiner()\n )\n : nothing}\n ${hasShortcut && hasModifier\n ? this.renderJoiner()\n : nothing}\n ${hasShortcut\n ? this.renderModifier(\n this.shortcutKey!,\n 'shortcut'\n )\n : nothing}\n </kbd>\n `\n : nothing}\n `;\n }\n // render description\n private renderContent(): TemplateResult {\n const hasDescription = Boolean(this.content?.description);\n if (!hasDescription)\n return html`\n <slot name=\"content\"></slot>\n `;\n return html`\n <div>${this.content?.description}</div>\n `;\n }\n\n // event on primary button\n private handlePrimaryCTA(): void {\n this.dispatchEvent(\n new Event('primary', {\n bubbles: true,\n composed: true,\n })\n );\n }\n // event on secondary button\n private handleSecondaryCTA(): void {\n this.dispatchEvent(\n new Event('secondary', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n private renderSecondaryButton = (): TemplateResult => {\n return html`\n <sp-button\n treatment=\"outline\"\n variant=\"secondary\"\n @click=${this.handleSecondaryCTA}\n >\n ${this.secondaryCTA}\n </sp-button>\n `;\n };\n\n private renderPrimaryButton = (): TemplateResult => {\n return html`\n <sp-button\n size=\"s\"\n treatment=\"outline\"\n variant=\"primary\"\n @click=${this.handlePrimaryCTA}\n >\n ${this.primaryCTA}\n </sp-button>\n `;\n };\n\n private renderSecondaryButtonMobile = (): TemplateResult => {\n return html`\n <sp-button\n variant=\"secondary\"\n treatment=\"outline\"\n icon-only\n aria-label=\"previous\"\n @click=${this.handleSecondaryCTA}\n >\n <sp-icon-chevron200\n size=\"s\"\n class=\"spectrum-UIIcon-ChevronLeft75\"\n slot=\"icon\"\n ></sp-icon-chevron200>\n </sp-button>\n `;\n };\n\n private renderPrimaryButtonMobile = (): TemplateResult => {\n return html`\n <sp-button\n size=\"s\"\n treatment=\"outline\"\n variant=\"primary\"\n @click=${this.handlePrimaryCTA}\n >\n ${this.primaryCTA}\n </sp-button>\n `;\n };\n\n protected renderButtons(): TemplateResult {\n return html`\n <sp-button-group class=\"spectrum-ButtonGroup buttongroup\">\n ${when(this.secondaryCTA, this.renderSecondaryButton)}\n ${when(this.primaryCTA, this.renderPrimaryButton)}\n </sp-button-group>\n <sp-button-group\n class=\"spectrum-ButtonGroup buttongroup-mobile\"\n size=\"s\"\n >\n ${when(this.secondaryCTA, this.renderSecondaryButtonMobile)}\n ${when(this.primaryCTA, this.renderPrimaryButtonMobile)}\n </sp-button-group>\n `;\n }\n\n // render steps\n protected renderSteps = (): TemplateResult => {\n return html`\n <div class=\"step\" role=\"status\">\n <span aria-live=\"polite\">\n <slot name=\"step-count\">\n ${this.currentStep} of ${this.totalSteps}\n </slot>\n </span>\n </div>\n `;\n };\n // render action menu\n protected renderActionMenu = (): TemplateResult => {\n return html`\n <div class=\"action-menu\">\n <slot name=\"actions\"></slot>\n </div>\n `;\n };\n\n protected override render(): TemplateResult {\n return html`\n ${this.renderMedia()}\n <div class=\"header\">\n <div class=\"flex-container\">${this.renderHeader()}</div>\n <div class=\"static-item\">\n ${when(\n this.secondaryCTA && this.primaryCTA,\n this.renderActionMenu\n )}\n </div>\n </div>\n\n <div class=\"content\">${this.renderContent()}</div>\n <div class=\"footer\">\n ${when(\n this.totalSteps && this.totalSteps > 1,\n this.renderSteps\n )}\n ${this.renderButtons()}\n </div>\n `;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;AAWA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,OAAO,qBAAqB;AAC5B,OAAO,mBAAmB;AAC1B,OAAO,0BAA0B;AAC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EAAE,MAAM,QAAQ,WAAW,MAAM,CAAC;AAAA,GAfnC,UAgBD;AAOA;AAAA,EADP,SAAS,EAAE,WAAW,eAAe,CAAC;AAAA,GAtB9B,UAuBD;AAGD;AAAA,EADN,SAAS,EAAE,MAAM,MAAM,CAAC;AAAA,GAzBhB,UA0BF;AAGC;AAAA,EADP,SAAS,EAAE,WAAW,MAAM,CAAC;AAAA,GA5BrB,UA6BD;AAGA;AAAA,EADP,SAAS,EAAE,WAAW,aAAa,CAAC;AAAA,GA/B5B,UAgCD;AAGD;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,WAAW,aAAa,SAAS,KAAK,CAAC;AAAA,GAlCzD,UAmCF;AAGA;AAAA,EADN,SAAS;AAAA,GArCD,UAsCF;AAGA;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,WAAW,eAAe,CAAC;AAAA,GAxC5C,UAyCF;AAGA;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,WAAW,cAAc,CAAC;AAAA,GA3C3C,UA4CF;AAGP;AAAA,EADC,SAAS,EAAE,MAAM,QAAQ,WAAW,cAAc,CAAC;AAAA,GA9C3C,UA+CT;AAGA;AAAA,EADC,SAAS,EAAE,MAAM,QAAQ,WAAW,gBAAgB,CAAC;AAAA,GAjD7C,UAkDT;",
6
+ "names": []
7
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";var v=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var r=(c,l,n,e)=>{for(var i=e>1?void 0:e?b(l,n):l,o=c.length-1,a;o>=0;o--)(a=c[o])&&(i=(e?a(l,n,i):a(i))||i);return e&&i&&v(l,n,i),i};import{html as t,nothing as u}from"@spectrum-web-components/base";import{property as s}from"@spectrum-web-components/base/src/decorators.js";import{when as p}from"@spectrum-web-components/base/src/directives.js";import f from"./coachmark.css.js";import T from"@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js";import g from"@spectrum-web-components/icon/src/icon-chevron-overrides.css.js";import"@spectrum-web-components/icons-ui/icons/sp-icon-chevron200.js";import{Popover as $}from"@spectrum-web-components/popover";import{join as A}from"@spectrum-web-components/base/src/directives.js";import{ifDefined as h}from"@spectrum-web-components/base/src/directives.js";import{MediaType as S}from"./CoachmarkItem.js";import"@spectrum-web-components/asset/sp-asset.js";import"@spectrum-web-components/button/sp-button.js";import"@spectrum-web-components/button-group/sp-button-group.js";export class Coachmark extends ${constructor(){super(...arguments);this.placement="right";this.modifierKeys=[];this.hasAsset=!1;this.renderSecondaryButton=()=>t`
2
+ <sp-button
3
+ treatment="outline"
4
+ variant="secondary"
5
+ @click=${this.handleSecondaryCTA}
6
+ >
7
+ ${this.secondaryCTA}
8
+ </sp-button>
9
+ `;this.renderPrimaryButton=()=>t`
10
+ <sp-button
11
+ size="s"
12
+ treatment="outline"
13
+ variant="primary"
14
+ @click=${this.handlePrimaryCTA}
15
+ >
16
+ ${this.primaryCTA}
17
+ </sp-button>
18
+ `;this.renderSecondaryButtonMobile=()=>t`
19
+ <sp-button
20
+ variant="secondary"
21
+ treatment="outline"
22
+ icon-only
23
+ aria-label="previous"
24
+ @click=${this.handleSecondaryCTA}
25
+ >
26
+ <sp-icon-chevron200
27
+ size="s"
28
+ class="spectrum-UIIcon-ChevronLeft75"
29
+ slot="icon"
30
+ ></sp-icon-chevron200>
31
+ </sp-button>
32
+ `;this.renderPrimaryButtonMobile=()=>t`
33
+ <sp-button
34
+ size="s"
35
+ treatment="outline"
36
+ variant="primary"
37
+ @click=${this.handlePrimaryCTA}
38
+ >
39
+ ${this.primaryCTA}
40
+ </sp-button>
41
+ `;this.renderSteps=()=>t`
42
+ <div class="step" role="status">
43
+ <span aria-live="polite">
44
+ <slot name="step-count">
45
+ ${this.currentStep} of ${this.totalSteps}
46
+ </slot>
47
+ </span>
48
+ </div>
49
+ `;this.renderActionMenu=()=>t`
50
+ <div class="action-menu">
51
+ <slot name="actions"></slot>
52
+ </div>
53
+ `}static get styles(){return[...super.styles,f,T,g]}renderMedia(){var e;return this.mediaType===S.IMAGE?t`
54
+ <sp-asset id="cover-photo">
55
+ <div class="image-wrapper">
56
+ <img
57
+ class="image"
58
+ loading="lazy"
59
+ slot="cover-photo"
60
+ src="${h(this.source)}"
61
+ alt="${h((e=this==null?void 0:this.content)==null?void 0:e.imageAlt)}"
62
+ />
63
+ </div>
64
+ </sp-asset>
65
+ `:t`
66
+ <slot name="asset"></slot>
67
+ `}renderModifier(n,e="modifier"){return t`
68
+ <span type="${e}" class="keyboard-shortcut">${n}</span>
69
+ `}renderJoiner(){return t`
70
+ <span class="plus">&plus;</span>
71
+ `}renderHeader(){var o,a,d,m;const n=this.modifierKeys&&((o=this.modifierKeys)==null?void 0:o.length)>0,e=!!this.shortcutKey,i=!!((a=this.content)!=null&&a.title);return!i&&!n&&!e?t`
72
+ <div class="title"><slot name="title"></slot></div>
73
+ `:t`
74
+ ${i?t`
75
+ <div class="title">${(d=this.content)==null?void 0:d.title}</div>
76
+ `:u}
77
+ ${n||e?t`
78
+ <kbd class="keys spectrum-Body spectrum-Body--sizeS">
79
+ ${n?A((m=this.modifierKeys)==null?void 0:m.map(y=>this.renderModifier(y)),this.renderJoiner()):u}
80
+ ${e&&n?this.renderJoiner():u}
81
+ ${e?this.renderModifier(this.shortcutKey,"shortcut"):u}
82
+ </kbd>
83
+ `:u}
84
+ `}renderContent(){var e,i;return!((e=this.content)!=null&&e.description)?t`
85
+ <slot name="content"></slot>
86
+ `:t`
87
+ <div>${(i=this.content)==null?void 0:i.description}</div>
88
+ `}handlePrimaryCTA(){this.dispatchEvent(new Event("primary",{bubbles:!0,composed:!0}))}handleSecondaryCTA(){this.dispatchEvent(new Event("secondary",{bubbles:!0,composed:!0}))}renderButtons(){return t`
89
+ <sp-button-group class="spectrum-ButtonGroup buttongroup">
90
+ ${p(this.secondaryCTA,this.renderSecondaryButton)}
91
+ ${p(this.primaryCTA,this.renderPrimaryButton)}
92
+ </sp-button-group>
93
+ <sp-button-group
94
+ class="spectrum-ButtonGroup buttongroup-mobile"
95
+ size="s"
96
+ >
97
+ ${p(this.secondaryCTA,this.renderSecondaryButtonMobile)}
98
+ ${p(this.primaryCTA,this.renderPrimaryButtonMobile)}
99
+ </sp-button-group>
100
+ `}render(){return t`
101
+ ${this.renderMedia()}
102
+ <div class="header">
103
+ <div class="flex-container">${this.renderHeader()}</div>
104
+ <div class="static-item">
105
+ ${p(this.secondaryCTA&&this.primaryCTA,this.renderActionMenu)}
106
+ </div>
107
+ </div>
108
+
109
+ <div class="content">${this.renderContent()}</div>
110
+ <div class="footer">
111
+ ${p(this.totalSteps&&this.totalSteps>1,this.renderSteps)}
112
+ ${this.renderButtons()}
113
+ </div>
114
+ `}}r([s({type:Object})],Coachmark.prototype,"item",2),r([s({type:String})],Coachmark.prototype,"placement",2),r([s({type:Object,attribute:!1})],Coachmark.prototype,"content",2),r([s({attribute:"shortcut-key"})],Coachmark.prototype,"shortcutKey",2),r([s({type:Array})],Coachmark.prototype,"modifierKeys",2),r([s({attribute:"src"})],Coachmark.prototype,"source",2),r([s({attribute:"media-type"})],Coachmark.prototype,"mediaType",2),r([s({type:Boolean,attribute:"has-asset",reflect:!0})],Coachmark.prototype,"hasAsset",2),r([s()],Coachmark.prototype,"asset",2),r([s({type:Number,attribute:"current-step"})],Coachmark.prototype,"currentStep",2),r([s({type:Number,attribute:"total-steps"})],Coachmark.prototype,"totalSteps",2),r([s({type:String,attribute:"primary-cta"})],Coachmark.prototype,"primaryCTA",2),r([s({type:String,attribute:"secondary-cta"})],Coachmark.prototype,"secondaryCTA",2);
115
+ //# sourceMappingURL=Coachmark.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Coachmark.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n nothing,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { when } from '@spectrum-web-components/base/src/directives.js';\nimport coachmarkStyles from './coachmark.css.js';\nimport chevronStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';\nimport chevronIconOverrides from '@spectrum-web-components/icon/src/icon-chevron-overrides.css.js';\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-chevron200.js';\nimport { Popover } from '@spectrum-web-components/popover';\nimport { join } from '@spectrum-web-components/base/src/directives.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport type { Placement } from '@spectrum-web-components/overlay';\nimport { MediaType } from './CoachmarkItem.js';\nimport type { CoachmarkItem } from './CoachmarkItem.js';\nimport '@spectrum-web-components/asset/sp-asset.js';\nimport '@spectrum-web-components/button/sp-button.js';\nimport '@spectrum-web-components/button-group/sp-button-group.js';\n\n/**\n * @element sp-coachmark\n * @fires primary - Announces that the \"primary\" button has been clicked.\n * @fires secondary - Announces that the \"secondary\" button has been clicked.\n * @slot cover-photo - This is the cover photo for Default and Quiet Coachmark\n * @slot heading - HTML content to be listed as the heading\n * @slot description - A description of the card\n * @slot actions - an `sp-action-menu` element outlining actions to take on the represened object\n * @slot step-count - Override the default pagination delivery with your own internationalized content\n */\nexport class Coachmark extends Popover {\n public static override get styles(): CSSResultArray {\n return [\n ...super.styles,\n coachmarkStyles,\n chevronStyles,\n chevronIconOverrides,\n ];\n }\n @property({ type: Object })\n public item?: CoachmarkItem;\n\n @property({ type: String })\n public override placement: Placement = 'right';\n\n @property({ type: Object, attribute: false })\n private content?: {\n title?: string;\n description?: string;\n imageAlt?: string;\n };\n\n @property({ attribute: 'shortcut-key' })\n private shortcutKey?: string;\n\n @property({ type: Array })\n public modifierKeys?: string[] = [];\n\n @property({ attribute: 'src' })\n private source?: string;\n\n @property({ attribute: 'media-type' })\n private mediaType?: MediaType;\n\n @property({ type: Boolean, attribute: 'has-asset', reflect: true })\n public hasAsset = false;\n\n @property()\n public asset?: 'file' | 'folder';\n\n @property({ type: Number, attribute: 'current-step' })\n public currentStep?: number;\n\n @property({ type: Number, attribute: 'total-steps' })\n public totalSteps?: number;\n\n @property({ type: String, attribute: 'primary-cta' })\n primaryCTA?: string;\n\n @property({ type: String, attribute: 'secondary-cta' })\n secondaryCTA?: string;\n\n // render video and images\n private renderMedia(): TemplateResult {\n const isImage = this.mediaType === MediaType.IMAGE;\n if (!isImage) {\n return html`\n <slot name=\"asset\"></slot>\n `;\n }\n return html`\n <sp-asset id=\"cover-photo\">\n <div class=\"image-wrapper\">\n <img\n class=\"image\"\n loading=\"lazy\"\n slot=\"cover-photo\"\n src=\"${ifDefined(this.source)}\"\n alt=\"${ifDefined(this?.content?.imageAlt)}\"\n />\n </div>\n </sp-asset>\n `;\n }\n // method to render modifier\n private renderModifier(\n modifierKey: string,\n type: 'modifier' | 'shortcut' = 'modifier'\n ): TemplateResult {\n return html`\n <span type=\"${type}\" class=\"keyboard-shortcut\">${modifierKey}</span>\n `;\n }\n\n private renderJoiner(): TemplateResult {\n return html`\n <span class=\"plus\">&plus;</span>\n `;\n }\n // render heading title and modifier\n private renderHeader(): TemplateResult {\n const hasModifier = this.modifierKeys && this.modifierKeys?.length > 0;\n const hasShortcut = Boolean(this.shortcutKey);\n const hasTitle = Boolean(this.content?.title);\n if (!hasTitle && !hasModifier && !hasShortcut) {\n return html`\n <div class=\"title\"><slot name=\"title\"></slot></div>\n `;\n }\n return html`\n ${hasTitle\n ? html`\n <div class=\"title\">${this.content?.title}</div>\n `\n : nothing}\n ${hasModifier || hasShortcut\n ? html`\n <kbd class=\"keys spectrum-Body spectrum-Body--sizeS\">\n ${hasModifier\n ? join(\n this.modifierKeys?.map((k) =>\n this.renderModifier(k)\n ),\n this.renderJoiner()\n )\n : nothing}\n ${hasShortcut && hasModifier\n ? this.renderJoiner()\n : nothing}\n ${hasShortcut\n ? this.renderModifier(\n this.shortcutKey!,\n 'shortcut'\n )\n : nothing}\n </kbd>\n `\n : nothing}\n `;\n }\n // render description\n private renderContent(): TemplateResult {\n const hasDescription = Boolean(this.content?.description);\n if (!hasDescription)\n return html`\n <slot name=\"content\"></slot>\n `;\n return html`\n <div>${this.content?.description}</div>\n `;\n }\n\n // event on primary button\n private handlePrimaryCTA(): void {\n this.dispatchEvent(\n new Event('primary', {\n bubbles: true,\n composed: true,\n })\n );\n }\n // event on secondary button\n private handleSecondaryCTA(): void {\n this.dispatchEvent(\n new Event('secondary', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n private renderSecondaryButton = (): TemplateResult => {\n return html`\n <sp-button\n treatment=\"outline\"\n variant=\"secondary\"\n @click=${this.handleSecondaryCTA}\n >\n ${this.secondaryCTA}\n </sp-button>\n `;\n };\n\n private renderPrimaryButton = (): TemplateResult => {\n return html`\n <sp-button\n size=\"s\"\n treatment=\"outline\"\n variant=\"primary\"\n @click=${this.handlePrimaryCTA}\n >\n ${this.primaryCTA}\n </sp-button>\n `;\n };\n\n private renderSecondaryButtonMobile = (): TemplateResult => {\n return html`\n <sp-button\n variant=\"secondary\"\n treatment=\"outline\"\n icon-only\n aria-label=\"previous\"\n @click=${this.handleSecondaryCTA}\n >\n <sp-icon-chevron200\n size=\"s\"\n class=\"spectrum-UIIcon-ChevronLeft75\"\n slot=\"icon\"\n ></sp-icon-chevron200>\n </sp-button>\n `;\n };\n\n private renderPrimaryButtonMobile = (): TemplateResult => {\n return html`\n <sp-button\n size=\"s\"\n treatment=\"outline\"\n variant=\"primary\"\n @click=${this.handlePrimaryCTA}\n >\n ${this.primaryCTA}\n </sp-button>\n `;\n };\n\n protected renderButtons(): TemplateResult {\n return html`\n <sp-button-group class=\"spectrum-ButtonGroup buttongroup\">\n ${when(this.secondaryCTA, this.renderSecondaryButton)}\n ${when(this.primaryCTA, this.renderPrimaryButton)}\n </sp-button-group>\n <sp-button-group\n class=\"spectrum-ButtonGroup buttongroup-mobile\"\n size=\"s\"\n >\n ${when(this.secondaryCTA, this.renderSecondaryButtonMobile)}\n ${when(this.primaryCTA, this.renderPrimaryButtonMobile)}\n </sp-button-group>\n `;\n }\n\n // render steps\n protected renderSteps = (): TemplateResult => {\n return html`\n <div class=\"step\" role=\"status\">\n <span aria-live=\"polite\">\n <slot name=\"step-count\">\n ${this.currentStep} of ${this.totalSteps}\n </slot>\n </span>\n </div>\n `;\n };\n // render action menu\n protected renderActionMenu = (): TemplateResult => {\n return html`\n <div class=\"action-menu\">\n <slot name=\"actions\"></slot>\n </div>\n `;\n };\n\n protected override render(): TemplateResult {\n return html`\n ${this.renderMedia()}\n <div class=\"header\">\n <div class=\"flex-container\">${this.renderHeader()}</div>\n <div class=\"static-item\">\n ${when(\n this.secondaryCTA && this.primaryCTA,\n this.renderActionMenu\n )}\n </div>\n </div>\n\n <div class=\"content\">${this.renderContent()}</div>\n <div class=\"footer\">\n ${when(\n this.totalSteps && this.totalSteps > 1,\n this.renderSteps\n )}\n ${this.renderButtons()}\n </div>\n `;\n }\n}\n"],
5
+ "mappings": "qNAWA,OAEI,QAAAA,EACA,WAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDACzB,OAAS,QAAAC,MAAY,kDACrB,OAAOC,MAAqB,qBAC5B,OAAOC,MAAmB,iEAC1B,OAAOC,MAA0B,kEACjC,MAAO,gEACP,OAAS,WAAAC,MAAe,mCACxB,OAAS,QAAAC,MAAY,kDACrB,OAAS,aAAAC,MAAiB,kDAE1B,OAAS,aAAAC,MAAiB,qBAE1B,MAAO,6CACP,MAAO,+CACP,MAAO,2DAYA,aAAM,kBAAkBH,CAAQ,CAAhC,kCAaH,KAAgB,UAAuB,QAavC,KAAO,aAA0B,CAAC,EASlC,KAAO,SAAW,GA8HlB,KAAQ,sBAAwB,IACrBP;AAAA;AAAA;AAAA;AAAA,yBAIU,K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,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,GAjD7C,UAkDT",
6
+ "names": ["html", "nothing", "property", "when", "coachmarkStyles", "chevronStyles", "chevronIconOverrides", "Popover", "join", "ifDefined", "MediaType", "_a", "modifierKey", "type", "_b", "_c", "_d", "hasModifier", "hasShortcut", "hasTitle", "k", "__decorateClass"]
7
+ }
@@ -0,0 +1,18 @@
1
+ export type CoachmarkItem = {
2
+ id?: string;
3
+ heading: string;
4
+ shortcutKey?: string;
5
+ modifierKeys?: string[];
6
+ content: string;
7
+ src?: string;
8
+ imageAlt?: string;
9
+ mediaType?: string;
10
+ currentStep?: number;
11
+ totalSteps?: number;
12
+ primaryCTA?: string;
13
+ secondaryCTA?: string;
14
+ };
15
+ export declare enum MediaType {
16
+ IMAGE = "image",
17
+ VIDEO = "video"
18
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ export var MediaType = /* @__PURE__ */ ((MediaType2) => {
3
+ MediaType2["IMAGE"] = "image";
4
+ MediaType2["VIDEO"] = "video";
5
+ return MediaType2;
6
+ })(MediaType || {});
7
+ //# sourceMappingURL=CoachmarkItem.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["CoachmarkItem.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2021 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\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\nexport type CoachmarkItem = {\n id?: string;\n heading: string;\n shortcutKey?: string;\n modifierKeys?: string[];\n content: string;\n src?: string;\n imageAlt?: string;\n mediaType?: string;\n currentStep?: number;\n totalSteps?: number;\n primaryCTA?: string;\n secondaryCTA?: string;\n};\n\nexport enum MediaType {\n IMAGE = 'image',\n VIDEO = 'video',\n}\n"],
5
+ "mappings": ";AA0BO,WAAK,YAAL,kBAAKA,eAAL;AACH,EAAAA,WAAA,WAAQ;AACR,EAAAA,WAAA,WAAQ;AAFA,SAAAA;AAAA,GAAA;",
6
+ "names": ["MediaType"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";export var MediaType=(t=>(t.IMAGE="image",t.VIDEO="video",t))(MediaType||{});
2
+ //# sourceMappingURL=CoachmarkItem.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["CoachmarkItem.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2021 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\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\nexport type CoachmarkItem = {\n id?: string;\n heading: string;\n shortcutKey?: string;\n modifierKeys?: string[];\n content: string;\n src?: string;\n imageAlt?: string;\n mediaType?: string;\n currentStep?: number;\n totalSteps?: number;\n primaryCTA?: string;\n secondaryCTA?: string;\n};\n\nexport enum MediaType {\n IMAGE = 'image',\n VIDEO = 'video',\n}\n"],
5
+ "mappings": "aA0BO,WAAK,WAAAA,IACRA,EAAA,MAAQ,QACRA,EAAA,MAAQ,QAFAA,IAAA",
6
+ "names": ["MediaType"]
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ :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)}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=coach-indicator-overrides.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["coach-indicator-overrides.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-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
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as i}from"@spectrum-web-components/base";const a=i`
2
+ :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)}
3
+ `;export default a;
4
+ //# sourceMappingURL=coach-indicator-overrides.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["coach-indicator-overrides.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-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
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ :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}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=coach-indicator.css.dev.js.map