@momentum-design/components 0.129.42 → 0.129.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +108 -108
- package/dist/browser/index.js.map +3 -3
- package/dist/components/coachmark/coachmark.component.d.ts +14 -1
- package/dist/components/coachmark/coachmark.component.js +14 -1
- package/dist/components/coachmark/index.d.ts +0 -1
- package/dist/components/coachmark/index.js +0 -1
- package/dist/components/popover/popover.component.d.ts +25 -12
- package/dist/components/popover/popover.component.js +23 -10
- package/dist/components/popover/popover.constants.d.ts +5 -1
- package/dist/components/popover/popover.constants.js +6 -2
- package/dist/components/popover/popover.types.d.ts +3 -2
- package/dist/custom-elements.json +79 -823
- package/dist/react/coachmark/index.d.ts +14 -1
- package/dist/react/coachmark/index.js +14 -1
- package/package.json +1 -1
|
@@ -2,8 +2,22 @@ import { type EventName } from '@lit/react';
|
|
|
2
2
|
import Component from '../../components/coachmark';
|
|
3
3
|
import type { Events as EventsInherited } from '../../components/popover/popover.types';
|
|
4
4
|
/**
|
|
5
|
+
* A Coachmark is a contextual guidance component used to highlight a specific UI element and explain its purpose or functionality.
|
|
6
|
+
* It is typically shown as part of onboarding, feature discovery, or progressive education within the product.
|
|
7
|
+
*
|
|
5
8
|
* Coachmark component based on top of the popover component,
|
|
6
9
|
* with the default value of certain properties changed.
|
|
10
|
+
* Coachmark component will always have an arrow attached to it.
|
|
11
|
+
* The color of the coachmark is contrast.
|
|
12
|
+
*
|
|
13
|
+
* ## When to use
|
|
14
|
+
* - Introducing a new or complex feature to users.
|
|
15
|
+
* - Drawing attention to a UI element that might otherwise be missed.
|
|
16
|
+
* - Providing step-by-step guidance in an onboarding or walkthrough flow.
|
|
17
|
+
*
|
|
18
|
+
* ## Accessibility
|
|
19
|
+
* - The default role of coachmark is `"dialog"`, which can be changed via the `role` attribute.
|
|
20
|
+
* - aria-label or aria-labelledby can be provided to give the coachmark an accessible name.
|
|
7
21
|
*
|
|
8
22
|
* @dependency mdc-popover
|
|
9
23
|
*
|
|
@@ -25,7 +39,6 @@ import type { Events as EventsInherited } from '../../components/popover/popover
|
|
|
25
39
|
* @cssproperty --mdc-popover-elevation-3 - elevation of the popover
|
|
26
40
|
*
|
|
27
41
|
* @slot - Default slot for modal container
|
|
28
|
-
*
|
|
29
42
|
*/
|
|
30
43
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
|
31
44
|
onShown: EventName<EventsInherited["onShownEvent"]>;
|
|
@@ -3,8 +3,22 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/coachmark';
|
|
4
4
|
import { TAG_NAME } from '../../components/coachmark/coachmark.constants';
|
|
5
5
|
/**
|
|
6
|
+
* A Coachmark is a contextual guidance component used to highlight a specific UI element and explain its purpose or functionality.
|
|
7
|
+
* It is typically shown as part of onboarding, feature discovery, or progressive education within the product.
|
|
8
|
+
*
|
|
6
9
|
* Coachmark component based on top of the popover component,
|
|
7
10
|
* with the default value of certain properties changed.
|
|
11
|
+
* Coachmark component will always have an arrow attached to it.
|
|
12
|
+
* The color of the coachmark is contrast.
|
|
13
|
+
*
|
|
14
|
+
* ## When to use
|
|
15
|
+
* - Introducing a new or complex feature to users.
|
|
16
|
+
* - Drawing attention to a UI element that might otherwise be missed.
|
|
17
|
+
* - Providing step-by-step guidance in an onboarding or walkthrough flow.
|
|
18
|
+
*
|
|
19
|
+
* ## Accessibility
|
|
20
|
+
* - The default role of coachmark is `"dialog"`, which can be changed via the `role` attribute.
|
|
21
|
+
* - aria-label or aria-labelledby can be provided to give the coachmark an accessible name.
|
|
8
22
|
*
|
|
9
23
|
* @dependency mdc-popover
|
|
10
24
|
*
|
|
@@ -26,7 +40,6 @@ import { TAG_NAME } from '../../components/coachmark/coachmark.constants';
|
|
|
26
40
|
* @cssproperty --mdc-popover-elevation-3 - elevation of the popover
|
|
27
41
|
*
|
|
28
42
|
* @slot - Default slot for modal container
|
|
29
|
-
*
|
|
30
43
|
*/
|
|
31
44
|
const reactWrapper = createComponent({
|
|
32
45
|
tagName: TAG_NAME,
|