@spectrum-web-components/coachmark 0.40.5 → 0.41.0

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 (65) hide show
  1. package/README.md +193 -9
  2. package/custom-elements.json +461 -6
  3. package/package.json +26 -4
  4. package/sp-coach-indicator.d.ts +6 -0
  5. package/sp-coach-indicator.dev.js +5 -0
  6. package/sp-coach-indicator.dev.js.map +7 -0
  7. package/sp-coach-indicator.js +2 -0
  8. package/sp-coach-indicator.js.map +7 -0
  9. package/src/CoachIndicator.d.ts +12 -0
  10. package/src/CoachIndicator.dev.js +58 -0
  11. package/src/CoachIndicator.dev.js.map +7 -0
  12. package/src/CoachIndicator.js +6 -0
  13. package/src/CoachIndicator.js.map +7 -0
  14. package/src/Coachmark.d.ts +49 -4
  15. package/src/Coachmark.dev.js +261 -13
  16. package/src/Coachmark.dev.js.map +2 -2
  17. package/src/Coachmark.js +112 -5
  18. package/src/Coachmark.js.map +3 -3
  19. package/src/CoachmarkItem.d.ts +18 -0
  20. package/src/CoachmarkItem.dev.js +7 -0
  21. package/src/CoachmarkItem.dev.js.map +7 -0
  22. package/src/CoachmarkItem.js +2 -0
  23. package/src/CoachmarkItem.js.map +7 -0
  24. package/src/coach-indicator.css.d.ts +2 -0
  25. package/src/coach-indicator.css.dev.js +91 -0
  26. package/src/coach-indicator.css.dev.js.map +7 -0
  27. package/src/coach-indicator.css.js +88 -0
  28. package/src/coach-indicator.css.js.map +7 -0
  29. package/src/coachmark.css.dev.js +105 -75
  30. package/src/coachmark.css.dev.js.map +2 -2
  31. package/src/coachmark.css.js +105 -75
  32. package/src/coachmark.css.js.map +2 -2
  33. package/src/index.d.ts +2 -0
  34. package/src/index.dev.js +2 -0
  35. package/src/index.dev.js.map +2 -2
  36. package/src/index.js +1 -1
  37. package/src/index.js.map +2 -2
  38. package/src/spectrum-coach-indicator.css.d.ts +2 -0
  39. package/src/spectrum-coach-indicator.css.dev.js +77 -0
  40. package/src/spectrum-coach-indicator.css.dev.js.map +7 -0
  41. package/src/spectrum-coach-indicator.css.js +74 -0
  42. package/src/spectrum-coach-indicator.css.js.map +7 -0
  43. package/src/spectrum-coachmark.css.dev.js +103 -75
  44. package/src/spectrum-coachmark.css.dev.js.map +2 -2
  45. package/src/spectrum-coachmark.css.js +105 -77
  46. package/src/spectrum-coachmark.css.js.map +2 -2
  47. package/src/spectrum-config.js +33 -39
  48. package/stories/coach-indicator-static.stories.js +22 -0
  49. package/stories/coach-indicator-static.stories.js.map +7 -0
  50. package/stories/coach-indicator.stories.js +18 -0
  51. package/stories/coach-indicator.stories.js.map +7 -0
  52. package/stories/coachmark.stories.js +254 -8
  53. package/stories/coachmark.stories.js.map +2 -2
  54. package/stories/images.js +5 -0
  55. package/stories/images.js.map +7 -0
  56. package/test/benchmark/basic-test.js +17 -1
  57. package/test/benchmark/basic-test.js.map +2 -2
  58. package/test/coach-indicator-static.test-vrt.js +5 -0
  59. package/test/coach-indicator-static.test-vrt.js.map +7 -0
  60. package/test/coach-indicator.test-vrt.js +5 -0
  61. package/test/coach-indicator.test-vrt.js.map +7 -0
  62. package/test/coach-indicator.test.js +32 -0
  63. package/test/coach-indicator.test.js.map +7 -0
  64. package/test/coachmark.test.js +183 -6
  65. package/test/coachmark.test.js.map +2 -2
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import { makeOverBackground } from "../../button/stories/index.js";
4
+ import "@spectrum-web-components/coachmark/sp-coach-indicator.js";
5
+ export default {
6
+ title: "CoachIndicator",
7
+ component: "sp-coach-indicator",
8
+ decorators: [makeOverBackground()]
9
+ };
10
+ export const staticWhite = () => {
11
+ return html`
12
+ <sp-coach-indicator variant="white"></sp-coach-indicator>
13
+ <sp-coach-indicator quiet variant="white"></sp-coach-indicator>
14
+ `;
15
+ };
16
+ export const staticBlack = () => {
17
+ return html`
18
+ <sp-coach-indicator variant="black"></sp-coach-indicator>
19
+ <sp-coach-indicator quiet variant="black"></sp-coach-indicator>
20
+ `;
21
+ };
22
+ //# sourceMappingURL=coach-indicator-static.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["coach-indicator-static.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 { makeOverBackground } from '../../button/stories/index.js';\nimport '@spectrum-web-components/coachmark/sp-coach-indicator.js';\n\nexport default {\n title: 'CoachIndicator',\n component: 'sp-coach-indicator',\n decorators: [makeOverBackground()],\n};\n\nexport const staticWhite = (): TemplateResult => {\n return html`\n <sp-coach-indicator variant=\"white\"></sp-coach-indicator>\n <sp-coach-indicator quiet variant=\"white\"></sp-coach-indicator>\n `;\n};\n\nexport const staticBlack = (): TemplateResult => {\n return html`\n <sp-coach-indicator variant=\"black\"></sp-coach-indicator>\n <sp-coach-indicator quiet variant=\"black\"></sp-coach-indicator>\n `;\n};\n"],
5
+ "mappings": ";AAYA,SAAS,YAA4B;AACrC,SAAS,0BAA0B;AACnC,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY,CAAC,mBAAmB,CAAC;AACrC;AAEO,aAAM,cAAc,MAAsB;AAC7C,SAAO;AAAA;AAAA;AAAA;AAIX;AAEO,aAAM,cAAc,MAAsB;AAC7C,SAAO;AAAA;AAAA;AAAA;AAIX;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import "@spectrum-web-components/coachmark/sp-coach-indicator.js";
4
+ export default {
5
+ title: "CoachIndicator",
6
+ component: "sp-coach-indicator"
7
+ };
8
+ export const Default = () => {
9
+ return html`
10
+ <sp-coach-indicator></sp-coach-indicator>
11
+ `;
12
+ };
13
+ export const quiet = () => {
14
+ return html`
15
+ <sp-coach-indicator quiet></sp-coach-indicator>
16
+ `;
17
+ };
18
+ //# sourceMappingURL=coach-indicator.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["coach-indicator.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 '@spectrum-web-components/coachmark/sp-coach-indicator.js';\n\nexport default {\n title: 'CoachIndicator',\n component: 'sp-coach-indicator',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-coach-indicator></sp-coach-indicator>\n `;\n};\n\nexport const quiet = (): TemplateResult => {\n return html`\n <sp-coach-indicator quiet></sp-coach-indicator>\n `;\n};\n"],
5
+ "mappings": ";AAYA,SAAS,YAA4B;AACrC,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAGX;",
6
+ "names": []
7
+ }
@@ -1,22 +1,268 @@
1
1
  "use strict";
2
2
  import { html } from "@spectrum-web-components/base";
3
3
  import "@spectrum-web-components/coachmark/sp-coachmark.js";
4
+ import "@spectrum-web-components/coachmark/sp-coach-indicator.js";
5
+ import "@spectrum-web-components/action-menu/sp-action-menu.js";
6
+ import { cave, gif } from "./images.js";
7
+ import "@spectrum-web-components/overlay/sp-overlay.js";
4
8
  export default {
5
9
  title: "Coachmark",
6
- component: "sp-coachmark"
10
+ component: "sp-coachmark",
11
+ argTypes: {
12
+ onPrimary: { action: "primary" },
13
+ onSecondary: { action: "secondary" }
14
+ }
7
15
  };
8
16
  export const Default = () => {
9
17
  return html`
10
- <sp-coachmark></sp-coachmark>
11
- <sp-coachmark variant="dark"></sp-coachmark>
12
- <sp-coachmark variant="light"></sp-coachmark>
18
+ <sp-coachmark open>
19
+ <div id="heading" slot="title">Coachmark with Text Only</div>
20
+ <div slot="content">
21
+ This is a Coachmark with nothing but text in it. Kind of lonely
22
+ in here.
23
+ </div>
24
+ </sp-coachmark>
13
25
  `;
14
26
  };
15
- export const quiet = () => {
27
+ export const InTour = (props, args = {}) => {
28
+ const {
29
+ open = true,
30
+ heading = "Coachmark in Tour",
31
+ content = "This is a Coachmark with nothing but text in it."
32
+ } = props;
16
33
  return html`
17
- <sp-coachmark quiet></sp-coachmark>
18
- <sp-coachmark quiet variant="dark"></sp-coachmark>
19
- <sp-coachmark quiet variant="light"></sp-coachmark>
34
+ <sp-coachmark
35
+ ?open=${open}
36
+ primary-cta="Next"
37
+ secondary-cta="Previous"
38
+ current-step="2"
39
+ total-steps="8"
40
+ .content=${{
41
+ title: heading,
42
+ description: content
43
+ }}
44
+ @primary=${(event) => {
45
+ var _a;
46
+ event.target.dispatchEvent(
47
+ new Event("close", { bubbles: true, composed: true })
48
+ );
49
+ (_a = args.onPrimary) == null ? void 0 : _a.call(args, event);
50
+ }}
51
+ @secondary=${(event) => {
52
+ var _a;
53
+ event.target.dispatchEvent(
54
+ new Event("close", { bubbles: true, composed: true })
55
+ );
56
+ (_a = args.onSecondary) == null ? void 0 : _a.call(args, event);
57
+ }}
58
+ >
59
+ <sp-action-menu
60
+ placement="bottom-end"
61
+ quiet
62
+ slot="actions"
63
+ label="More Actions"
64
+ >
65
+ <sp-menu-item>Skip tour</sp-menu-item>
66
+ <sp-menu-item>Restart tour</sp-menu-item>
67
+ </sp-action-menu>
68
+ </sp-coachmark>
69
+ `;
70
+ };
71
+ export const single = () => {
72
+ return html`
73
+ <sp-coachmark open primary-cta="Ok">
74
+ <div slot="title">A single coachmark</div>
75
+ <div slot="content">
76
+ This is a Coachmark with nothing but text in it. Kind of lonely
77
+ in here.
78
+ </div>
79
+ </sp-coachmark>
80
+ `;
81
+ };
82
+ export const TriggerOnClick = (props) => {
83
+ const { open = true } = props;
84
+ return html`
85
+ <sp-coach-indicator id="trigger"></sp-coach-indicator>
86
+ <sp-overlay
87
+ trigger="trigger@click"
88
+ placement="right"
89
+ .receivesFocus=${"false"}
90
+ ?open=${open}
91
+ >
92
+ <sp-coachmark
93
+ ?open=${open}
94
+ current-step="2"
95
+ total-steps="8"
96
+ primary-cta="Next"
97
+ secondary-cta="Previous"
98
+ >
99
+ <div slot="title">Coachmark on Click</div>
100
+ <div slot="content">
101
+ This is a Coachmark with nothing but text in it. Kind of
102
+ lonely in here.
103
+ </div>
104
+ <sp-action-menu
105
+ placement="bottom-end"
106
+ quiet
107
+ slot="actions"
108
+ label="More Actions"
109
+ >
110
+ <sp-menu-item>Skip tour</sp-menu-item>
111
+ <sp-menu-item>Restart tour</sp-menu-item>
112
+ </sp-action-menu>
113
+ </sp-coachmark>
114
+ </sp-overlay>
115
+ `;
116
+ };
117
+ export const TriggerOnHover = (props) => {
118
+ const { open = true } = props;
119
+ return html`
120
+ <sp-coach-indicator id="trigger"></sp-coach-indicator>
121
+ <sp-overlay
122
+ trigger="trigger@hover"
123
+ placement="right"
124
+ .receivesFocus=${"false"}
125
+ ?open=${open}
126
+ >
127
+ <sp-coachmark
128
+ ?open=${open}
129
+ current-step="2"
130
+ total-steps="8"
131
+ primary-cta="Next"
132
+ secondary-cta="Previous"
133
+ >
134
+ <div slot="title">Coachmark on hover</div>
135
+ <div slot="content">
136
+ This is a Coachmark with nothing but text in it. Kind of
137
+ lonely in here.
138
+ </div>
139
+ <sp-action-menu
140
+ placement="bottom-end"
141
+ quiet
142
+ slot="actions"
143
+ label="More Actions"
144
+ >
145
+ <sp-menu-item>Skip tour</sp-menu-item>
146
+ <sp-menu-item>Restart tour</sp-menu-item>
147
+ </sp-action-menu>
148
+ </sp-coachmark>
149
+ </sp-overlay>
150
+ `;
151
+ };
152
+ export const withImage = () => {
153
+ return html`
154
+ <sp-coachmark
155
+ open
156
+ src=${cave}
157
+ media-type="image"
158
+ primary-cta="Next"
159
+ secondary-cta="Previous"
160
+ current-step="2"
161
+ total-steps="8"
162
+ >
163
+ <div slot="title">Coachmark with Media</div>
164
+ <div slot="content">
165
+ This is a Coachmark with nothing but text in it. Kind of lonely
166
+ in here.
167
+ </div>
168
+ <sp-action-menu
169
+ placement="bottom-end"
170
+ quiet
171
+ slot="actions"
172
+ label="More Actions"
173
+ >
174
+ <sp-menu-item>Skip tour</sp-menu-item>
175
+ <sp-menu-item>Restart tour</sp-menu-item>
176
+ </sp-action-menu>
177
+ </sp-coachmark>
178
+ `;
179
+ };
180
+ export const withGif = () => {
181
+ return html`
182
+ <sp-coachmark
183
+ open
184
+ src=${gif}
185
+ media-type="image"
186
+ primary-cta="Next"
187
+ secondary-cta="Previous"
188
+ current-step="2"
189
+ total-steps="8"
190
+ >
191
+ <div slot="title">Coachmark with GIF</div>
192
+ <div slot="content">
193
+ This is a Coachmark with nothing but text in it. Kind of lonely
194
+ in here.
195
+ </div>
196
+ <sp-action-menu
197
+ placement="bottom-end"
198
+ quiet
199
+ slot="actions"
200
+ label="More Actions"
201
+ >
202
+ <sp-menu-item>Skip tour</sp-menu-item>
203
+ <sp-menu-item>Restart tour</sp-menu-item>
204
+ </sp-action-menu>
205
+ </sp-coachmark>
206
+ `;
207
+ };
208
+ withGif.swc_vrt = {
209
+ skip: true
210
+ };
211
+ export const withKeys = (props) => {
212
+ const {
213
+ modifierKeys = ["\u21E7 Shift", "\u2318"],
214
+ heading = "Coachmark with Keys",
215
+ content = "This is a Coachmark with nothing but text in it."
216
+ } = props;
217
+ return html`
218
+ <sp-coachmark
219
+ open
220
+ .modifierKeys=${modifierKeys}
221
+ .content=${{
222
+ title: heading,
223
+ description: content
224
+ }}
225
+ primary-cta="Next"
226
+ secondary-cta="Previous"
227
+ current-step="2"
228
+ total-steps="8"
229
+ >
230
+ <sp-action-menu
231
+ placement="bottom-end"
232
+ quiet
233
+ slot="actions"
234
+ label="More Actions"
235
+ >
236
+ <sp-menu-item>Skip tour</sp-menu-item>
237
+ <sp-menu-item>Restart tour</sp-menu-item>
238
+ </sp-action-menu>
239
+ </sp-coachmark>
240
+ `;
241
+ };
242
+ export const withShortCut = () => {
243
+ return html`
244
+ <sp-coachmark
245
+ open
246
+ primary-cta="Next"
247
+ secondary-cta="Previous"
248
+ current-step="2"
249
+ total-steps="8"
250
+ shortcut-key="Z"
251
+ .content=${{
252
+ title: "Coachmark Shortcut",
253
+ description: "This is a Coachmark with nothing but text in it. Kind of lonely in here"
254
+ }}
255
+ >
256
+ <sp-action-menu
257
+ placement="bottom-end"
258
+ quiet
259
+ slot="actions"
260
+ label="More Actions"
261
+ >
262
+ <sp-menu-item>Skip tour</sp-menu-item>
263
+ <sp-menu-item>Restart tour</sp-menu-item>
264
+ </sp-action-menu>
265
+ </sp-coachmark>
20
266
  `;
21
267
  };
22
268
  //# sourceMappingURL=coachmark.stories.js.map
@@ -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';\n\nimport '@spectrum-web-components/coachmark/sp-coachmark.js';\n\nexport default {\n title: 'Coachmark',\n component: 'sp-coachmark',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-coachmark></sp-coachmark>\n <sp-coachmark variant=\"dark\"></sp-coachmark>\n <sp-coachmark variant=\"light\"></sp-coachmark>\n `;\n};\n\nexport const quiet = (): TemplateResult => {\n return html`\n <sp-coachmark quiet></sp-coachmark>\n <sp-coachmark quiet variant=\"dark\"></sp-coachmark>\n <sp-coachmark quiet variant=\"light\"></sp-coachmark>\n `;\n};\n"],
5
- "mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAAA;AAAA;AAKX;AAEO,aAAM,QAAQ,MAAsB;AACvC,SAAO;AAAA;AAAA;AAAA;AAAA;AAKX;",
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 } = props;\n return html`\n <sp-coachmark\n ?open=${open}\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=\"2\"\n total-steps=\"8\"\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 <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 } = 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=\"2\"\n total-steps=\"8\"\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n >\n <div slot=\"title\">Coachmark on Click</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 <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 TriggerOnHover = (props: Properties): TemplateResult => {\n const { open = true } = 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=\"2\"\n total-steps=\"8\"\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 <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 = (): TemplateResult => {\n return html`\n <sp-coachmark\n open\n src=${cave}\n media-type=\"image\"\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=\"2\"\n total-steps=\"8\"\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 <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 = (): TemplateResult => {\n return html`\n <sp-coachmark\n open\n src=${gif}\n media-type=\"image\"\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=\"2\"\n total-steps=\"8\"\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 <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 } = 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=\"2\"\n total-steps=\"8\"\n >\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 = (): TemplateResult => {\n return html`\n <sp-coachmark\n open\n primary-cta=\"Next\"\n secondary-cta=\"Previous\"\n current-step=\"2\"\n total-steps=\"8\"\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 <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": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,MAAM,WAAW;AAE1B,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,IACN,WAAW,EAAE,QAAQ,UAAU;AAAA,IAC/B,aAAa,EAAE,QAAQ,YAAY;AAAA,EACvC;AACJ;AAwBO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASX;AAEO,aAAM,SAAS,CAClB,OACA,OAAkB,CAAC,MACF;AACjB,QAAM;AAAA,IACF,OAAO;AAAA,IACP,UAAU;AAAA,IACV,UAAU;AAAA,EACd,IAAI;AACJ,SAAO;AAAA;AAAA,oBAES,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA,uBAKD;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,EACjB,CAAC;AAAA,uBACU,CAAC,UAA2C;AApFnE;AAqFgB,UAAM,OAAO;AAAA,MACT,IAAI,MAAM,SAAS,EAAE,SAAS,MAAM,UAAU,KAAK,CAAC;AAAA,IACxD;AACA,eAAK,cAAL,8BAAiB;AAAA,EACrB,CAAC;AAAA,yBACY,CAAC,UAA2C;AA1FrE;AA2FgB,UAAM,OAAO;AAAA,MACT,IAAI,MAAM,SAAS,EAAE,SAAS,MAAM,UAAU,KAAK,CAAC;AAAA,IACxD;AACA,eAAK,gBAAL,8BAAmB;AAAA,EACvB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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