Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(coachmark): rename "sp-coachmark" to "sp-coachmark-indicator", add "sp-coachmark" #3639

Merged
merged 178 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from 170 commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
8c33865
chore: first commit coach indicator
Sep 8, 2023
5449a5a
Merge branch 'main' into feature/coachindicator
Sep 8, 2023
d545cf8
chore: module declaration in type file
Sep 8, 2023
2217d1b
chore: coach indicator main files changes
Sep 9, 2023
4d0ed81
chore: coach indicator token files
Sep 9, 2023
dd20714
chore: updated golden image cache
Sep 9, 2023
97cca4a
chore: resolved merge conflicts
Sep 9, 2023
ff21017
chore: updated golden image cache
Sep 9, 2023
a67cfb0
chore: updated golden image cache
Sep 9, 2023
418b2b7
chore(coach-indicator): focus ring disabling for reduce motion
Sep 11, 2023
e4516f8
chore(coach-indicator): updated golden image cache
Sep 11, 2023
9da9199
chore(coachmark): added config and main src file
Sep 12, 2023
6e0f3c3
Merge branch 'main' into feature/coachindicator
Sep 13, 2023
4b5005e
chore(coach-indicator): added reduced motion for ring animation
Sep 13, 2023
169143c
Merge branch 'main' into feature/coachmark-new
Sep 13, 2023
beefe2b
chore(coachmark): readme and storybook update
Sep 14, 2023
fd31080
chore: resolved merged conflicts
Sep 14, 2023
d6efe80
chore(coachmark): update storybook
Sep 15, 2023
7022574
chore(coachmark): updated readme
Sep 15, 2023
265ef44
test(coachmark): added tests
Sep 15, 2023
d305300
chore(coachmark): update golden image cache
Sep 15, 2023
41834ed
chore(coachmark): updated images in storybook and readme
Sep 15, 2023
3ea5912
chore(coachmark): updated golden image cache
Sep 18, 2023
1b67881
Merge branch 'main' into feature/coachindicator
Sep 19, 2023
fc6f086
chore(coach-indicator): update tokens version and reduced motion update
Sep 19, 2023
0895a4c
chore(coach-indicator): reduced motion css
Sep 19, 2023
f9e19f1
chore(coach-indicator): updated golden image cache
Sep 19, 2023
e403953
chore(coach-indicator): resolved merge conflicts
Sep 20, 2023
f5da64b
chore(coachmark): resolved conflicts
Sep 20, 2023
cdffb95
chore(coachmark): updated button group mobile and desktop view
Sep 20, 2023
cce556f
chore(coachmark): updated heading content
Sep 20, 2023
1f644f6
chore(coachmark): added aria-label to sp-button with icon
Sep 20, 2023
c6b4441
Merge branch 'main' into feature/coachindicator
Sep 20, 2023
1e1e585
chore(coachmark): resolved merge conflicts
Sep 21, 2023
263bb64
chore(coachmark): update action menu logic
Sep 21, 2023
e54647c
chore(coach-indicator): resolved merged conflicts
Sep 21, 2023
e3b9f6d
Merge branch 'main' into feature/coachindicator
Sep 22, 2023
4a697f1
chore(coach-indicator): updated golden image cache
Sep 22, 2023
e008d1f
chore(coachmark): updated storybook and readme
Sep 22, 2023
dea59ec
chore(coachmark): intergrated coach indicator
Sep 25, 2023
5d58632
chore(coachmark): added coach indicator inside coachmark
Sep 25, 2023
54c3ddc
chore(coachmark): updated storybook and readme
Sep 25, 2023
4382b1d
chore(coachmark): updated golden image cache
Sep 25, 2023
4d3117e
chore(coachmark): updated tests
Sep 25, 2023
235d689
chore(coachmark): resolved conflicts
Sep 25, 2023
92cc5b3
chore(coachmark): bump version of dependecies
Sep 25, 2023
d95faaa
chore(coachmark): resolved conflicts
Sep 26, 2023
2d917c2
chore(coachmark): updated to add new additional features
Sep 27, 2023
1ade9c4
chore(coachmark): unit tests
Sep 28, 2023
bcd632d
chore(coachmark): update coachmarkitem reference
Sep 28, 2023
c16ef65
chore(coachmark): updated storybook
Sep 29, 2023
fe586ea
chore(coachmark): updated readme
Sep 29, 2023
9e5b501
chore(coachmark): updated readme
Oct 3, 2023
9db0a23
chore(coachmark): updated storybook
Oct 3, 2023
eaaaff3
chore(coachmark): updated golden image cache
Oct 3, 2023
e78cce9
chore(coachmark): updated tests
Oct 3, 2023
131011a
chore(coachmark): updated storybook for gif
Oct 3, 2023
99a8149
chore: updated readme
Oct 4, 2023
3b76395
chore: updated golden images cache
Oct 4, 2023
ff74d0a
chore(coachmark): added tests
Oct 5, 2023
084f3a0
chore(coachmark): shortcut render
Oct 6, 2023
601813d
chore: resolved merge conflicts
Oct 6, 2023
26bbce5
chore(coachmark): updated readme
Oct 6, 2023
4795bb3
chore: updated golden image cache
Oct 6, 2023
cb051b6
chore(coachmark): update basic test
Oct 6, 2023
5a6b2a9
chore: resolved conflicts
Oct 9, 2023
c519e5e
chore: reverting button and button group changes
Oct 11, 2023
4b3befb
chore: reverting button css
Oct 11, 2023
b61a3ab
chore: reverting button css
Oct 11, 2023
44e8b05
chore(coachmark): removed video and adjusted keys css
Oct 11, 2023
dd2fc42
chore(coachmark): removed video and adjusted keys css in coachmark tr…
Oct 11, 2023
fd828ab
chore(coachmark): removed trigger and update api to use only one comp…
Oct 11, 2023
461ea45
chore(coachmark): updated readme
Oct 11, 2023
23951dc
chore(coachmark): resolved conflicts
Oct 11, 2023
53560d2
chore(coachmark): removed coachmark trigger readme
Oct 11, 2023
87a057c
chore(coachmark): updated tests
Oct 11, 2023
d544746
chore(coachmark): added button css compiled
Oct 11, 2023
7ff8e0c
chore: test analyze
Oct 11, 2023
53410b2
chore: test analyze revert
Oct 11, 2023
75dbc86
chore(coachmark): temp fix for 16:9 image container
Oct 11, 2023
2c246b5
chore(coachmark): update golden image cache
Oct 12, 2023
6734612
chore(coachmark): updated tests
Oct 12, 2023
38671e3
chore(coachmark): coachmark cleanup
Oct 13, 2023
2d383fe
chore(coachmark): updated coachmark trigger to coachmark and coachmar…
Oct 13, 2023
7da9b8c
chore(coachmark): comment updated on coachmark popover
Oct 13, 2023
8a930e2
chore(coachmark): code coverage fix
Oct 13, 2023
97c7ced
chore: updated golden image cache
Oct 13, 2023
bd76ba8
chore: resolved merged conflicts
Oct 17, 2023
26ab54e
chore(coachmark): updated readme
Oct 18, 2023
603fd48
chore(coachmark): updated storybook with action buttons
Oct 19, 2023
6f81754
chore(coachmark): updated readme to include modifer keys
Oct 19, 2023
8047c92
chore(coachmark): updated golden image cache
Oct 19, 2023
0ccb934
chore(coachmark): resolved merge conflicts
Oct 19, 2023
a97c223
chore(coachmark): updated tests
Oct 19, 2023
97d74a3
chore(coachmark): updated tests
Oct 20, 2023
1b242ac
chore(coachmark): storybook fix
Oct 30, 2023
a88d3a6
chore: resolved merged conflicts
Oct 30, 2023
bb7915b
chore(coachmark): updated golden image cache
Oct 30, 2023
8ddd12a
chore(coachmark): removed unused code
Oct 30, 2023
c33094d
Merge branch 'main' into feature/coachmark-new
Nov 1, 2023
bef7280
chore(coachmark): disabled focus on trigger
Nov 1, 2023
765d8ce
chore(coachmark): updated golden image cache
Nov 1, 2023
eb48389
chore(coachmark): updated css versions
Nov 1, 2023
a924ff3
Merge branch 'main' into feature/coachmark-new
Nov 2, 2023
7a66cb7
chore: resolved merged conflicts
Nov 6, 2023
9819592
Merge branch 'main' into feature/coachmark-new
Nov 7, 2023
53f8c00
chore(coachmark): updated golden images cache
Nov 7, 2023
2d5d95c
chore: resolved merge conflicts
Nov 7, 2023
a56ccbe
chore(coachmark): updated golden images cache
Nov 7, 2023
27c5646
chore(coachmark): resolved merged conflicts
Nov 8, 2023
cdff19f
chore(coachmark): resolved merged conflicts
Nov 17, 2023
310a7c1
chore(coachmark): updated golden images cache
Nov 17, 2023
d52cea5
Merge branch 'main' into feature/coachmark-new
Nov 20, 2023
7d2a66b
chore(coachmark): added static variants to coach indicator
Nov 29, 2023
dcd9c0d
chore: resolved merge conflicts
Nov 30, 2023
8ff2100
chore(coachmark): updated golden image cache
Nov 30, 2023
addd885
chore(coachmark): removed coachmark popover underlay wrapper
Nov 30, 2023
c539f56
chore(coachmark): updated readme for coachmark
Nov 30, 2023
36f9ef2
chore(coachmark): updated golden image cache
Nov 30, 2023
6c14093
Merge branch 'main' into feature/coachmark-new
Nov 30, 2023
54e5036
Merge branch 'main' into feature/coachmark-new
Dec 1, 2023
4122b51
Merge branch 'main' into feature/coachmark-new
Dec 1, 2023
f86ff3f
Merge branch 'main' into feature/coachmark-new
Dec 4, 2023
e3d3e40
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Dec 4, 2023
b6485a7
chore(coachmark): updated README
Dec 4, 2023
055a77b
chore(coachmark): revert button css
Dec 4, 2023
9020f71
chore(coachmark): updated coachmark css depedency
Dec 5, 2023
e99c48d
chore(coachmark): updated step readability
Dec 5, 2023
9f64f59
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Dec 5, 2023
e1d504e
chore: removing lit-html pragma in documentation
Dec 5, 2023
06e53f1
chore(coachmark): update yarn.lock
Dec 5, 2023
104abad
chore(coachmark): resolved merge conflicts
Dec 6, 2023
97acedc
chore(coachmark): code cleanup
Dec 6, 2023
a7ab7b3
chore(coachmark): update golden image cache
Dec 6, 2023
b878d76
chore(coachmark): updated storybook
Dec 7, 2023
20331e2
chore(coachmark): updated storybook and tests
Dec 7, 2023
4099cc2
chore(coachmark): updated golden image cache
Dec 7, 2023
a36f74b
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Dec 11, 2023
aa7f516
Merge branch 'main' into feature/coachmark-new
Rajdeepc Dec 11, 2023
7fb9904
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Dec 12, 2023
df6e067
Merge branch 'feature/coachmark-new' of https://github.com/adobe/spec…
Dec 12, 2023
5735a78
chore(coachmark): updated function declaration to anonymouse function…
Dec 12, 2023
8ae4c7a
chore(coachmark): updated golden image cache
Dec 12, 2023
8c9b58b
chore(coachmark): resolved merge conflicts
Dec 12, 2023
a358ad5
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Dec 13, 2023
9cfa66d
chore(coachmark): updated golden image cache
Dec 13, 2023
049e250
chore: resolved merge conflicts
Dec 14, 2023
7b91dcf
chore(coachmark): updated golden image cache
Dec 14, 2023
79005d3
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Dec 18, 2023
e862a10
chore: resolved merged conflicts
Dec 19, 2023
af7cc90
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Dec 20, 2023
97ca980
chore(coachmark): updated stories
Dec 20, 2023
afbe591
chore(coachmark): updated golden image cache
Dec 20, 2023
2c10e8c
chore(coachmark): updated golden image cache
Dec 20, 2023
c729a35
chore: resolved merge conflicts
Jan 2, 2024
91a94bb
chore(coachmark): updated golden image cache
Jan 2, 2024
f37b37f
chore: resolved merged conflicts
Jan 8, 2024
81ecba3
chore(coachmark): updated golden image cache
Jan 8, 2024
05918fe
chore(coachmark): removing redundant code
Jan 10, 2024
95471d6
chore: resolved merged conflicts
Jan 12, 2024
824684e
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Jan 17, 2024
36c467b
chore(coachmark): updated docs and alias tokens to use core tokens
Jan 17, 2024
91ed8e8
chore(coachmark): updated core token
Jan 17, 2024
1427814
chore(coachmark): updated core tokens
Jan 18, 2024
97c21f0
chore: resolved merge conflicts
Jan 18, 2024
881191f
chore(coachmark): updated golden image cache
Jan 18, 2024
9866af8
chore: resolved merge conflicts
Jan 29, 2024
653e567
chore(coachmark): resolved merge conflicts
Feb 1, 2024
d57734e
chore(coachmark): updated coachmark css
Feb 1, 2024
240650a
chore(coachmark): updated golden image cache
Feb 1, 2024
effec16
chore: resolved merged conflicts
Feb 7, 2024
6f1fe99
chore(coachmark): updated coach indicator fix with stub css
Feb 7, 2024
d54b4fb
chore(coachmark): updated golden image cache
Feb 7, 2024
f813c91
chore: resolved merge conflicts
Feb 8, 2024
75ceb99
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Feb 8, 2024
4b89186
chore(coachmark): updated readme on coach-indicator
Feb 8, 2024
6467e27
chore(coachmark): updated readme on coach-indicator file reference
Feb 8, 2024
5943039
chore(coachmark): updated golden image cache
Feb 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ executors:
parameters:
current_golden_images_hash:
type: string
default: 0ee048a172d6cdf6f7b82def40e024f69c8abb6b
default: d57734e29bdca3b34b4b108886f1582581de4af3
wireit_cache_name:
type: string
default: wireit
Expand Down
202 changes: 193 additions & 9 deletions packages/coachmark/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Description

An `<sp-coachmark>` element can be used to bring added attention to specific parts of your page.
`<sp-coachmark>` is a temporary message that educates users through new or unfamiliar product experiences. They can be chained into a sequence to form a tour.

### Usage

Expand All @@ -16,6 +16,7 @@ Import the side effectful registration of `<sp-coachmark>` via:

```
import '@spectrum-web-components/coachmark/sp-coachmark.js';

```

When looking to leverage the `Coachmark` base class as a type and/or for extension purposes, do so via:
Rajdeepc marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -24,18 +25,201 @@ When looking to leverage the `Coachmark` base class as a type and/or for extensi
import { Coachmark } from '@spectrum-web-components/coachmark';
```

## Standard
## Example
Rajdeepc marked this conversation as resolved.
Show resolved Hide resolved

## Default

Coachmark can take a `placement` and an `offset` similar to the [Overlay](https://opensource.adobe.com/spectrum-web-components/components/overlay/).

```html
<sp-coachmark></sp-coachmark>
<sp-coachmark variant="dark"></sp-coachmark>
<sp-coachmark variant="light"></sp-coachmark>
<sp-coachmark open>
<div slot="title">Coachmark with Text Only</div>
<div slot="content">
This is a Coachmark with nothing but text in it. Kind of lonely in here.
</div>
</sp-coachmark>
```

## Quiet
## Using Action Menu

Coach marks can include an `<sp-action-menu>`, which appears at the top right of the coach mark. The `<sp-action-menu>` should only include ways to interact with the coach mark tour as a whole, with options like “Skip tour” or “Restart tour.”

```html
<sp-coachmark quiet></sp-coachmark>
<sp-coachmark quiet variant="dark"></sp-coachmark>
<sp-coachmark quiet variant="light"></sp-coachmark>
<sp-coachmark
open
current-step="2"
total-steps="8"
primary-cta="Next"
secondary-cta="Previous"
>
<div slot="title">Coachmark with Text Only</div>
<div slot="content">
This is a Coachmark with nothing but text in it. Kind of lonely in here.
</div>
<sp-action-menu placement="bottom-end" quiet slot="actions">
<sp-menu-item>Skip tour</sp-menu-item>
<sp-menu-item>Restart tour</sp-menu-item>
</sp-action-menu>
</sp-coachmark>
```

## User Action Dependent

User action-dependent coachmarks are designed to guide users based on their interactions within your application. In such cases, there is no "Next Step" button, as the coachmark progresses when the user takes a specific action. This allows users to learn by doing, rather than simply reading instructions. The coachmark remains until the user performs the required action or takes an alternative route in the tour, such as skipping, restarting, or moving back to a previous step.

Inside the `<sp-coachmark>`, add the content and instructions for the coachmark in the `<sp-coachmark>`. You can also define primary and secondary CTA buttons for user interaction.

**Event Handling:**

The primary and secondary CTA buttons within the coachmark popover can be configured to dispatch events when clicked.

```html-live
<sp-coachmark
id="coachmark-action"
open
current-step="2"
total-steps="8"
primary-cta="Asset added"
secondary-cta="Previous"
>
<div slot="title">Coachmark with user action</div>
<div slot="content">
This is a Coachmark with nothing but text in it. Kind of lonely in here.
</div>
<sp-action-menu placement="bottom-end" quiet slot="actions">
<sp-menu-item>Skip tour</sp-menu-item>
<sp-menu-item>Restart tour</sp-menu-item>
</sp-action-menu>
</sp-coachmark>
<script type="module">
const initCoachMark = () => {
const coachmark = document.querySelector('#coachmark-action');
coachmark.addEventListener('primary', () => console.log('primary call to action'));
coachmark.addEventListener('secondary', () => console.log('secondary call to action'));

};
customElements.whenDefined('sp-coachmark').then(() => {
initCoachMark();
});
</script>
```

<script type="module">
const initCoachMark = () => {
const coachmark = document.querySelector('#coachmark-action');
coachmark.addEventListener('primary', () => console.log('primary call to action'));
coachmark.addEventListener('secondary', () => console.log('secondary call to action'));
};
customElements.whenDefined('sp-coachmark').then(() => {
initCoachMark();
});
</script>

## Using Images, GIFs

Coach marks can contain images or videos that relate to their content, such as demonstrations of gestures, the feature being used, or illustrations.
To use these kinds of media in your rich tooltip, specify a `src`, the type of media, either by using the string or `media-type` object, and
an optional `imageAlt` text describing the content.

Media Types allowed: `Images & Gifs`

### Image

```html
<sp-coachmark
current-step="2"
total-steps="8"
open
primary-cta="Next"
secondary-cta="Previous"
src="https://picsum.photos/id/237/200/300"
media-type="image"
>
<div slot="title">Coachmark with 16:9 image</div>
<div slot="content">This is a Coachmark with some description</div>
<sp-action-menu placement="bottom-end" quiet slot="actions">
<sp-menu-item>Skip tour</sp-menu-item>
<sp-menu-item>Restart tour</sp-menu-item>
</sp-action-menu>
</sp-coachmark>
```

### Custom Image/Gif

A custom media can also be added via `<slot name="cover-photo"></slot>`

```html
<sp-coachmark
current-step="2"
total-steps="8"
open
primary-cta="Next"
secondary-cta="Previous"
>
<div slot="title">Coachmark with 16:9 image</div>
<div slot="content">This is a Coachmark with some description</div>
<img slot="asset" src="https://picsum.photos/id/237/200/300" alt="" />
<sp-action-menu placement="bottom-end" quiet slot="actions">
<sp-menu-item>Skip tour</sp-menu-item>
<sp-menu-item>Restart tour</sp-menu-item>
</sp-action-menu>
</sp-coachmark>
```

## Shortcut keys and modifier keys

Shortcut keys and modifier keys are ways to show users how to trigger a particular tool.

The `shortcutKey` is the primary key used to trigger an interaction and are typically an alphanumeric value (and thus will be rendered as an uppercase character), while the
`modifierKeys` are an array of `string`s that represent alternate keys that can be pressed, like `Shift`, `Alt`, `Cmd`, etc.

```html-live
<sp-coachmark
open
current-step="2"
total-steps="8"
primary-cta="Next"
secondary-cta="Previous"
id="coachmark-keys"
>
<sp-action-menu placement="bottom-end" quiet slot="actions">
<sp-menu-item>Skip tour</sp-menu-item>
<sp-menu-item>Restart tour</sp-menu-item>
</sp-action-menu>
</sp-coachmark>
<script type="module">
const initCoachMark = () => {
const coachmark = document.querySelector('#coachmark-keys');
const modifierKeys = ['⇧ Shift', '⌘'];
const content = {
title: 'I am a Coachmark with keys',
description: 'This is a Coachmark with nothing but text in it.'
};
coachmark.content= content
coachmark.modifierKeys = modifierKeys
};
customElements.whenDefined('code-example').then(() => {
customElements.whenDefined('sp-coachmark').then(() => {
initCoachMark();
});
});
</script>
```

<script type="module">
const initCoachMark = () => {
const coachmark = document.querySelector('#coachmark-keys');
const modifierKeys = ['⇧ Shift', '⌘'];
const content = {
title: 'I am a Coachmark with keys',
description: 'This is a Coachmark with nothing but text in it.'
};
coachmark.content= content
coachmark.modifierKeys = modifierKeys
};
customElements.whenDefined('code-example').then(() => {
customElements.whenDefined('sp-coachmark').then(() => {
initCoachMark();
});
});
</script>
49 changes: 49 additions & 0 deletions packages/coachmark/coach-indicator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## Description

`<sp-coach-indicator>` show the connection between an object and its explanation in a touring mode — for example, the source of <sp-coachmark> in an onboarding tour.

### Usage

[![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/coach-indicator?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/coach-indicator)
[![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/@spectrum-web-components/coach-indicator?style=for-the-badge)](https://bundlephobia.com/result?p=@spectrum-web-components/coach-indicator)

```
yarn add @spectrum-web-components/coach-indicator
Rajdeepc marked this conversation as resolved.
Show resolved Hide resolved
```

Import the side effectful registration of `<sp-coach-indicator>` via:

```
import '@spectrum-web-components/coach-indicator/sp-coach-indicator.js';
Rajdeepc marked this conversation as resolved.
Show resolved Hide resolved
```

When looking to leverage the `CoachIndicator` base class as a type and/or for extension purposes, do so via:

```
import { CoachIndicator } from '@spectrum-web-components/coach-indicator';
Rajdeepc marked this conversation as resolved.
Show resolved Hide resolved
```

## Variants

<sp-tabs selected="standard" auto label="Variant Options">
<sp-tab value="standard">Standard</sp-tab>
<sp-tab-panel value="standard">

```html
<sp-coach-indicator></sp-coach-indicator>
<sp-coach-indicator variant="dark"></sp-coach-indicator>
<sp-coach-indicator variant="light"></sp-coach-indicator>
```

</sp-tab-panel>
<sp-tab value="quiet">Quiet</sp-tab>
<sp-tab-panel value="quiet">

```html
<sp-coach-indicator quiet></sp-coach-indicator>
<sp-coach-indicator quiet variant="dark"></sp-coach-indicator>
<sp-coach-indicator quiet variant="light"></sp-coach-indicator>
```

</sp-tab-panel>
</sp-tabs>
3 changes: 2 additions & 1 deletion packages/coachmark/exports.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"./src/*": "./src/*",
"./sp-coachmark.js": "./sp-coachmark.js"
"./sp-coachmark.js": "./sp-coachmark.js",
"./sp-coach-indicator.js": "./sp-coach-indicator.js"
}
26 changes: 24 additions & 2 deletions packages/coachmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,19 @@
"default": "./src/index.js"
},
"./package.json": "./package.json",
"./src/CoachIndicator.js": {
"development": "./src/CoachIndicator.dev.js",
"default": "./src/CoachIndicator.js"
},
"./src/Coachmark.js": {
"development": "./src/Coachmark.dev.js",
"default": "./src/Coachmark.js"
},
"./src/CoachmarkItem.js": {
"development": "./src/CoachmarkItem.dev.js",
"default": "./src/CoachmarkItem.js"
},
"./src/coach-indicator.css.js": "./src/coach-indicator.css.js",
"./src/coachmark.css.js": "./src/coachmark.css.js",
"./src/index.js": {
"development": "./src/index.dev.js",
Expand All @@ -37,6 +46,10 @@
"./sp-coachmark.js": {
"development": "./sp-coachmark.dev.js",
"default": "./sp-coachmark.js"
},
"./sp-coach-indicator.js": {
"development": "./sp-coach-indicator.dev.js",
"default": "./sp-coach-indicator.js"
}
},
"scripts": {
Expand All @@ -57,10 +70,19 @@
"lit-html"
],
"dependencies": {
"@spectrum-web-components/base": "^0.40.4"
"@spectrum-web-components/asset": "^0.40.4",
"@spectrum-web-components/base": "^0.40.4",
"@spectrum-web-components/button": "^0.40.4",
"@spectrum-web-components/button-group": "^0.40.4",
"@spectrum-web-components/icon": "^0.40.4",
"@spectrum-web-components/icons-ui": "^0.40.4",
"@spectrum-web-components/quick-actions": "^0.40.4",
"@spectrum-web-components/reactive-controllers": "^0.40.4",
"@spectrum-web-components/shared": "^0.40.4"
},
"devDependencies": {
"@spectrum-css/coachmark": "^5.0.75"
"@spectrum-css/coachindicator": "1.0.0",
"@spectrum-css/coachmark": "6.0.0"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
21 changes: 21 additions & 0 deletions packages/coachmark/sp-coach-indicator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
import { CoachIndicator } from './src/CoachIndicator.js';

import { defineElement } from '@spectrum-web-components/base/src/define-element.js';
defineElement('sp-coach-indicator', CoachIndicator);

declare global {
interface HTMLElementTagNameMap {
'sp-coach-indicator': CoachIndicator;
}
}
Loading
Loading