@carbon/ibm-products-web-components 0.29.0 → 0.30.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 (139) hide show
  1. package/custom-elements.json +637 -24
  2. package/es/components/about-modal/about-modal.scss.js +1 -1
  3. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +6 -1
  4. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js +15 -2
  5. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -1
  6. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +1 -1
  7. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +8 -1
  8. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -1
  9. package/es/components/coachmark/coachmark-body.d.ts +382 -0
  10. package/es/components/coachmark/coachmark-body.js +40 -0
  11. package/es/components/coachmark/coachmark-body.js.map +1 -0
  12. package/es/components/coachmark/coachmark-body.scss.js +13 -0
  13. package/es/components/coachmark/coachmark-body.scss.js.map +1 -0
  14. package/es/components/coachmark/coachmark-context.d.ts +11 -0
  15. package/es/components/coachmark/coachmark-context.js +39 -0
  16. package/es/components/coachmark/coachmark-context.js.map +1 -0
  17. package/es/components/coachmark/coachmark-header.d.ts +392 -0
  18. package/es/components/coachmark/coachmark-header.js +92 -0
  19. package/es/components/coachmark/coachmark-header.js.map +1 -0
  20. package/es/components/coachmark/coachmark-header.scss.js +13 -0
  21. package/es/components/coachmark/coachmark-header.scss.js.map +1 -0
  22. package/es/components/coachmark/coachmark.d.ts +416 -0
  23. package/es/components/coachmark/coachmark.js +165 -0
  24. package/es/components/coachmark/coachmark.js.map +1 -0
  25. package/es/components/coachmark/coachmark.scss.js +13 -0
  26. package/es/components/coachmark/coachmark.scss.js.map +1 -0
  27. package/es/components/coachmark/coachmark.test.d.ts +1 -0
  28. package/es/components/coachmark/coachmark.test.js +168 -0
  29. package/es/components/coachmark/coachmark.test.js.map +1 -0
  30. package/es/components/coachmark/index.d.ts +11 -0
  31. package/es/components/coachmark/index.js +11 -0
  32. package/es/components/coachmark/index.js.map +1 -0
  33. package/es/components/guide-banner/guide-banner-element.d.ts +378 -0
  34. package/es/components/guide-banner/guide-banner-element.js +38 -0
  35. package/es/components/guide-banner/guide-banner-element.js.map +1 -0
  36. package/es/components/guide-banner/guide-banner.d.ts +398 -0
  37. package/es/components/guide-banner/guide-banner.js +151 -0
  38. package/es/components/guide-banner/guide-banner.js.map +1 -0
  39. package/es/components/guide-banner/guide-banner.scss.js +13 -0
  40. package/es/components/guide-banner/guide-banner.scss.js.map +1 -0
  41. package/es/components/guide-banner/guide-banner.test.d.ts +1 -0
  42. package/es/components/guide-banner/guide-banner.test.js +121 -0
  43. package/es/components/guide-banner/guide-banner.test.js.map +1 -0
  44. package/es/components/guide-banner/index.d.ts +10 -0
  45. package/es/components/guide-banner/index.js +10 -0
  46. package/es/components/guide-banner/index.js.map +1 -0
  47. package/es/components/notification-panel/notification-footer.scss.js +1 -1
  48. package/es/components/notification-panel/notification-panel.scss.js +1 -1
  49. package/es/components/notification-panel/notification.scss.js +1 -1
  50. package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
  51. package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
  52. package/es/components/side-panel/side-panel.scss.js +1 -1
  53. package/es/components/tearsheet/tearsheet.scss.js +1 -1
  54. package/es/index.d.ts +5 -1
  55. package/es/index.js +4 -0
  56. package/es/index.js.map +1 -1
  57. package/es/packages/ibm-products-web-components/package.json.js +1 -1
  58. package/es/utilities/makeDraggable/makeDraggable.d.ts +38 -0
  59. package/es/utilities/makeDraggable/makeDraggable.js +136 -0
  60. package/es/utilities/makeDraggable/makeDraggable.js.map +1 -0
  61. package/es-custom/components/about-modal/about-modal.scss.js +1 -1
  62. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +6 -1
  63. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js +15 -2
  64. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -1
  65. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +1 -1
  66. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +8 -1
  67. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -1
  68. package/es-custom/components/coachmark/coachmark-body.d.ts +382 -0
  69. package/es-custom/components/coachmark/coachmark-body.js +40 -0
  70. package/es-custom/components/coachmark/coachmark-body.js.map +1 -0
  71. package/es-custom/components/coachmark/coachmark-body.scss.js +13 -0
  72. package/es-custom/components/coachmark/coachmark-body.scss.js.map +1 -0
  73. package/es-custom/components/coachmark/coachmark-context.d.ts +11 -0
  74. package/es-custom/components/coachmark/coachmark-context.js +39 -0
  75. package/es-custom/components/coachmark/coachmark-context.js.map +1 -0
  76. package/es-custom/components/coachmark/coachmark-header.d.ts +392 -0
  77. package/es-custom/components/coachmark/coachmark-header.js +92 -0
  78. package/es-custom/components/coachmark/coachmark-header.js.map +1 -0
  79. package/es-custom/components/coachmark/coachmark-header.scss.js +13 -0
  80. package/es-custom/components/coachmark/coachmark-header.scss.js.map +1 -0
  81. package/es-custom/components/coachmark/coachmark.d.ts +416 -0
  82. package/es-custom/components/coachmark/coachmark.js +165 -0
  83. package/es-custom/components/coachmark/coachmark.js.map +1 -0
  84. package/es-custom/components/coachmark/coachmark.scss.js +13 -0
  85. package/es-custom/components/coachmark/coachmark.scss.js.map +1 -0
  86. package/es-custom/components/coachmark/coachmark.test.d.ts +1 -0
  87. package/es-custom/components/coachmark/coachmark.test.js +168 -0
  88. package/es-custom/components/coachmark/coachmark.test.js.map +1 -0
  89. package/es-custom/components/coachmark/index.d.ts +11 -0
  90. package/es-custom/components/coachmark/index.js +11 -0
  91. package/es-custom/components/coachmark/index.js.map +1 -0
  92. package/es-custom/components/guide-banner/guide-banner-element.d.ts +378 -0
  93. package/es-custom/components/guide-banner/guide-banner-element.js +38 -0
  94. package/es-custom/components/guide-banner/guide-banner-element.js.map +1 -0
  95. package/es-custom/components/guide-banner/guide-banner.d.ts +398 -0
  96. package/es-custom/components/guide-banner/guide-banner.js +151 -0
  97. package/es-custom/components/guide-banner/guide-banner.js.map +1 -0
  98. package/es-custom/components/guide-banner/guide-banner.scss.js +13 -0
  99. package/es-custom/components/guide-banner/guide-banner.scss.js.map +1 -0
  100. package/es-custom/components/guide-banner/guide-banner.test.d.ts +1 -0
  101. package/es-custom/components/guide-banner/guide-banner.test.js +121 -0
  102. package/es-custom/components/guide-banner/guide-banner.test.js.map +1 -0
  103. package/es-custom/components/guide-banner/index.d.ts +10 -0
  104. package/es-custom/components/guide-banner/index.js +10 -0
  105. package/es-custom/components/guide-banner/index.js.map +1 -0
  106. package/es-custom/components/notification-panel/notification-footer.scss.js +1 -1
  107. package/es-custom/components/notification-panel/notification-panel.scss.js +1 -1
  108. package/es-custom/components/notification-panel/notification.scss.js +1 -1
  109. package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
  110. package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
  111. package/es-custom/components/side-panel/side-panel.scss.js +1 -1
  112. package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
  113. package/es-custom/index.d.ts +5 -1
  114. package/es-custom/index.js +4 -0
  115. package/es-custom/index.js.map +1 -1
  116. package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
  117. package/es-custom/utilities/makeDraggable/makeDraggable.d.ts +38 -0
  118. package/es-custom/utilities/makeDraggable/makeDraggable.js +136 -0
  119. package/es-custom/utilities/makeDraggable/makeDraggable.js.map +1 -0
  120. package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +6 -1
  121. package/lib/components/coachmark/coachmark-body.d.ts +382 -0
  122. package/lib/components/coachmark/coachmark-context.d.ts +11 -0
  123. package/lib/components/coachmark/coachmark-header.d.ts +392 -0
  124. package/lib/components/coachmark/coachmark.d.ts +416 -0
  125. package/lib/components/coachmark/coachmark.test.d.ts +1 -0
  126. package/lib/components/coachmark/index.d.ts +11 -0
  127. package/lib/components/guide-banner/guide-banner-element.d.ts +378 -0
  128. package/lib/components/guide-banner/guide-banner.d.ts +398 -0
  129. package/lib/components/guide-banner/guide-banner.test.d.ts +1 -0
  130. package/lib/components/guide-banner/index.d.ts +10 -0
  131. package/lib/index.d.ts +5 -1
  132. package/lib/utilities/makeDraggable/makeDraggable.d.ts +38 -0
  133. package/package.json +8 -8
  134. package/scss/components/coachmark/coachmark-beacon/coachmark-beacon.scss +1 -0
  135. package/scss/components/coachmark/coachmark-body.scss +19 -0
  136. package/scss/components/coachmark/coachmark-header.scss +32 -0
  137. package/scss/components/coachmark/coachmark.scss +30 -0
  138. package/scss/components/guide-banner/guide-banner.scss +30 -0
  139. package/telemetry.yml +14 -3
@@ -0,0 +1,416 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { LitElement } from 'lit';
10
+ import '@carbon/web-components/es-custom/components/popover/index.js';
11
+ export declare const blockClass = "c4p--coachmark";
12
+ declare const CDSCoachmark_base: {
13
+ new (...args: any[]): {
14
+ _handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
15
+ connectedCallback(): void;
16
+ disconnectedCallback(): void;
17
+ accessKey: string;
18
+ readonly accessKeyLabel: string;
19
+ autocapitalize: string;
20
+ autocorrect: boolean;
21
+ dir: string;
22
+ draggable: boolean;
23
+ hidden: boolean;
24
+ inert: boolean;
25
+ innerText: string;
26
+ lang: string;
27
+ readonly offsetHeight: number;
28
+ readonly offsetLeft: number;
29
+ readonly offsetParent: Element | null;
30
+ readonly offsetTop: number;
31
+ readonly offsetWidth: number;
32
+ outerText: string;
33
+ popover: string | null;
34
+ spellcheck: boolean;
35
+ title: string;
36
+ translate: boolean;
37
+ writingSuggestions: string;
38
+ attachInternals(): ElementInternals;
39
+ click(): void;
40
+ hidePopover(): void;
41
+ showPopover(): void;
42
+ togglePopover(options?: boolean): boolean;
43
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
44
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
45
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
46
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
47
+ readonly attributes: NamedNodeMap;
48
+ get classList(): DOMTokenList;
49
+ set classList(value: string): any;
50
+ className: string;
51
+ readonly clientHeight: number;
52
+ readonly clientLeft: number;
53
+ readonly clientTop: number;
54
+ readonly clientWidth: number;
55
+ readonly currentCSSZoom: number;
56
+ id: string;
57
+ innerHTML: string;
58
+ readonly localName: string;
59
+ readonly namespaceURI: string | null;
60
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
61
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
62
+ outerHTML: string;
63
+ readonly ownerDocument: Document;
64
+ get part(): DOMTokenList;
65
+ set part(value: string): any;
66
+ readonly prefix: string | null;
67
+ readonly scrollHeight: number;
68
+ scrollLeft: number;
69
+ scrollTop: number;
70
+ readonly scrollWidth: number;
71
+ readonly shadowRoot: ShadowRoot | null;
72
+ slot: string;
73
+ readonly tagName: string;
74
+ attachShadow(init: ShadowRootInit): ShadowRoot;
75
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
76
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
77
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
78
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
79
+ closest<E extends Element = Element>(selectors: string): E | null;
80
+ computedStyleMap(): StylePropertyMapReadOnly;
81
+ getAttribute(qualifiedName: string): string | null;
82
+ getAttributeNS(namespace: string | null, localName: string): string | null;
83
+ getAttributeNames(): string[];
84
+ getAttributeNode(qualifiedName: string): Attr | null;
85
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
86
+ getBoundingClientRect(): DOMRect;
87
+ getClientRects(): DOMRectList;
88
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
89
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
90
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
91
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
92
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
93
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
94
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
95
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
96
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
97
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
98
+ getHTML(options?: GetHTMLOptions): string;
99
+ hasAttribute(qualifiedName: string): boolean;
100
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
101
+ hasAttributes(): boolean;
102
+ hasPointerCapture(pointerId: number): boolean;
103
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
104
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
105
+ insertAdjacentText(where: InsertPosition, data: string): void;
106
+ matches(selectors: string): boolean;
107
+ releasePointerCapture(pointerId: number): void;
108
+ removeAttribute(qualifiedName: string): void;
109
+ removeAttributeNS(namespace: string | null, localName: string): void;
110
+ removeAttributeNode(attr: Attr): Attr;
111
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
112
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
113
+ scroll(options?: ScrollToOptions): void;
114
+ scroll(x: number, y: number): void;
115
+ scrollBy(options?: ScrollToOptions): void;
116
+ scrollBy(x: number, y: number): void;
117
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
118
+ scrollTo(options?: ScrollToOptions): void;
119
+ scrollTo(x: number, y: number): void;
120
+ setAttribute(qualifiedName: string, value: string): void;
121
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
122
+ setAttributeNode(attr: Attr): Attr | null;
123
+ setAttributeNodeNS(attr: Attr): Attr | null;
124
+ setHTMLUnsafe(html: string): void;
125
+ setPointerCapture(pointerId: number): void;
126
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
127
+ webkitMatchesSelector(selectors: string): boolean;
128
+ get textContent(): string;
129
+ set textContent(value: string | null): any;
130
+ readonly baseURI: string;
131
+ readonly childNodes: NodeListOf<ChildNode>;
132
+ readonly firstChild: ChildNode | null;
133
+ readonly isConnected: boolean;
134
+ readonly lastChild: ChildNode | null;
135
+ readonly nextSibling: ChildNode | null;
136
+ readonly nodeName: string;
137
+ readonly nodeType: number;
138
+ nodeValue: string | null;
139
+ readonly parentElement: HTMLElement | null;
140
+ readonly parentNode: ParentNode | null;
141
+ readonly previousSibling: ChildNode | null;
142
+ appendChild<T_1 extends Node>(node: T_1): T_1;
143
+ cloneNode(subtree?: boolean): Node;
144
+ compareDocumentPosition(other: Node): number;
145
+ contains(other: Node | null): boolean;
146
+ getRootNode(options?: GetRootNodeOptions): Node;
147
+ hasChildNodes(): boolean;
148
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
149
+ isDefaultNamespace(namespace: string | null): boolean;
150
+ isEqualNode(otherNode: Node | null): boolean;
151
+ isSameNode(otherNode: Node | null): boolean;
152
+ lookupNamespaceURI(prefix: string | null): string | null;
153
+ lookupPrefix(namespace: string | null): string | null;
154
+ normalize(): void;
155
+ removeChild<T_1 extends Node>(child: T_1): T_1;
156
+ replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
157
+ readonly ELEMENT_NODE: 1;
158
+ readonly ATTRIBUTE_NODE: 2;
159
+ readonly TEXT_NODE: 3;
160
+ readonly CDATA_SECTION_NODE: 4;
161
+ readonly ENTITY_REFERENCE_NODE: 5;
162
+ readonly ENTITY_NODE: 6;
163
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
164
+ readonly COMMENT_NODE: 8;
165
+ readonly DOCUMENT_NODE: 9;
166
+ readonly DOCUMENT_TYPE_NODE: 10;
167
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
168
+ readonly NOTATION_NODE: 12;
169
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
170
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
171
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
172
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
173
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
174
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
175
+ dispatchEvent(event: Event): boolean;
176
+ ariaActiveDescendantElement: Element | null;
177
+ ariaAtomic: string | null;
178
+ ariaAutoComplete: string | null;
179
+ ariaBrailleLabel: string | null;
180
+ ariaBrailleRoleDescription: string | null;
181
+ ariaBusy: string | null;
182
+ ariaChecked: string | null;
183
+ ariaColCount: string | null;
184
+ ariaColIndex: string | null;
185
+ ariaColIndexText: string | null;
186
+ ariaColSpan: string | null;
187
+ ariaControlsElements: ReadonlyArray<Element> | null;
188
+ ariaCurrent: string | null;
189
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
190
+ ariaDescription: string | null;
191
+ ariaDetailsElements: ReadonlyArray<Element> | null;
192
+ ariaDisabled: string | null;
193
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
194
+ ariaExpanded: string | null;
195
+ ariaFlowToElements: ReadonlyArray<Element> | null;
196
+ ariaHasPopup: string | null;
197
+ ariaHidden: string | null;
198
+ ariaInvalid: string | null;
199
+ ariaKeyShortcuts: string | null;
200
+ ariaLabel: string | null;
201
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
202
+ ariaLevel: string | null;
203
+ ariaLive: string | null;
204
+ ariaModal: string | null;
205
+ ariaMultiLine: string | null;
206
+ ariaMultiSelectable: string | null;
207
+ ariaOrientation: string | null;
208
+ ariaOwnsElements: ReadonlyArray<Element> | null;
209
+ ariaPlaceholder: string | null;
210
+ ariaPosInSet: string | null;
211
+ ariaPressed: string | null;
212
+ ariaReadOnly: string | null;
213
+ ariaRelevant: string | null;
214
+ ariaRequired: string | null;
215
+ ariaRoleDescription: string | null;
216
+ ariaRowCount: string | null;
217
+ ariaRowIndex: string | null;
218
+ ariaRowIndexText: string | null;
219
+ ariaRowSpan: string | null;
220
+ ariaSelected: string | null;
221
+ ariaSetSize: string | null;
222
+ ariaSort: string | null;
223
+ ariaValueMax: string | null;
224
+ ariaValueMin: string | null;
225
+ ariaValueNow: string | null;
226
+ ariaValueText: string | null;
227
+ role: string | null;
228
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
229
+ getAnimations(options?: GetAnimationsOptions): Animation[];
230
+ after(...nodes: (Node | string)[]): void;
231
+ before(...nodes: (Node | string)[]): void;
232
+ remove(): void;
233
+ replaceWith(...nodes: (Node | string)[]): void;
234
+ readonly nextElementSibling: Element | null;
235
+ readonly previousElementSibling: Element | null;
236
+ readonly childElementCount: number;
237
+ readonly children: HTMLCollection;
238
+ readonly firstElementChild: Element | null;
239
+ readonly lastElementChild: Element | null;
240
+ append(...nodes: (Node | string)[]): void;
241
+ prepend(...nodes: (Node | string)[]): void;
242
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
243
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
244
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
245
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
246
+ querySelector<E extends Element = Element>(selectors: string): E | null;
247
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
248
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
249
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
250
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
251
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
252
+ replaceChildren(...nodes: (Node | string)[]): void;
253
+ readonly assignedSlot: HTMLSlotElement | null;
254
+ readonly attributeStyleMap: StylePropertyMap;
255
+ get style(): CSSStyleDeclaration;
256
+ set style(cssText: string): any;
257
+ contentEditable: string;
258
+ enterKeyHint: string;
259
+ inputMode: string;
260
+ readonly isContentEditable: boolean;
261
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
262
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
263
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
264
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
265
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
266
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
267
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
268
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
269
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
270
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
271
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
272
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
276
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
278
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
279
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
281
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
283
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
284
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
285
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
286
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
287
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
288
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
289
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
290
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
291
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
292
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
293
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
+ onerror: OnErrorEventHandler;
295
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
296
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
297
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
298
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
301
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
302
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
303
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
304
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
308
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
309
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
310
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
311
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
312
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
313
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
314
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
315
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
316
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
317
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
320
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
321
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
322
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
323
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
324
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
325
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
326
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
328
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
329
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
330
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
331
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
332
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
335
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
343
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
344
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
345
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
346
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
347
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
348
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
349
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
350
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
351
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
352
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
353
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
354
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
355
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
356
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
357
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
358
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
359
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
360
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
361
+ autofocus: boolean;
362
+ readonly dataset: DOMStringMap;
363
+ nonce?: string;
364
+ tabIndex: number;
365
+ blur(): void;
366
+ focus(options?: FocusOptions): void;
367
+ };
368
+ _hostListeners: {
369
+ [listenerName: string]: {
370
+ [type: string]: {
371
+ options?: boolean | AddEventListenerOptions;
372
+ };
373
+ };
374
+ };
375
+ } & typeof LitElement;
376
+ /**
377
+ * coachmark main component
378
+ * @element c4p-coachmark
379
+ */
380
+ declare class CDSCoachmark extends CDSCoachmark_base {
381
+ /**
382
+ * Specifies whether the component is currently open.
383
+ */
384
+ open: boolean;
385
+ /**
386
+ * Where to render the Coachmark relative to its target.
387
+ */
388
+ align?: string;
389
+ /**
390
+ * Fine tune the position of the target in pixels.
391
+ */
392
+ position?: {
393
+ x: number;
394
+ y: number;
395
+ };
396
+ /**
397
+ * Specifies whether the component is floating or not.
398
+ */
399
+ floating?: boolean;
400
+ /**
401
+ * Specify whether the component should be rendered on high-contrast.
402
+ */
403
+ highContrast?: boolean;
404
+ /**
405
+ * Specify whether a drop shadow should be rendered on the popover.
406
+ */
407
+ dropShadow?: boolean;
408
+ private dragCleanup;
409
+ disconnectedCallback(): void;
410
+ private setupDraggable;
411
+ firstUpdated(): void;
412
+ updated(changedProps: Map<string, unknown>): void;
413
+ render(): import("lit-html").TemplateResult<1>;
414
+ static styles: any;
415
+ }
416
+ export default CDSCoachmark;
@@ -0,0 +1,165 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { __decorate } from 'tslib';
9
+ import { LitElement, html } from 'lit';
10
+ import { property } from 'lit/decorators.js';
11
+ import { prefix } from '../../globals/settings.js';
12
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
13
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
14
+ import styles from './coachmark.scss.js';
15
+ import { SignalWatcher } from '@lit-labs/signals';
16
+ import '@carbon/web-components/es-custom/components/popover/index.js';
17
+ import { POPOVER_ALIGNMENT } from '@carbon/web-components/es/components/popover/defs.js';
18
+ import { makeDraggable } from '../../utilities/makeDraggable/makeDraggable.js';
19
+ import { resetCoachmarkDetailsSignal, updateCoachmarkDetailsSignal } from './coachmark-context.js';
20
+
21
+ /**
22
+ * @license
23
+ *
24
+ * Copyright IBM Corp. 2025
25
+ *
26
+ * This source code is licensed under the Apache-2.0 license found in the
27
+ * LICENSE file in the root directory of this source tree.
28
+ */
29
+ const blockClass = `${prefix}--coachmark`;
30
+ /**
31
+ * coachmark main component
32
+ * @element c4p-coachmark
33
+ */
34
+ let CDSCoachmark = class CDSCoachmark extends SignalWatcher(HostListenerMixin(LitElement)) {
35
+ constructor() {
36
+ super(...arguments);
37
+ /**
38
+ * Specifies whether the component is currently open.
39
+ */
40
+ this.open = false;
41
+ /**
42
+ * Where to render the Coachmark relative to its target.
43
+ */
44
+ this.align = POPOVER_ALIGNMENT.TOP;
45
+ /**
46
+ * Specifies whether the component is floating or not.
47
+ */
48
+ this.floating = false;
49
+ /**
50
+ * Specify whether the component should be rendered on high-contrast.
51
+ */
52
+ this.highContrast = false;
53
+ /**
54
+ * Specify whether a drop shadow should be rendered on the popover.
55
+ */
56
+ this.dropShadow = false;
57
+ this.dragCleanup = null;
58
+ }
59
+ disconnectedCallback() {
60
+ super.disconnectedCallback();
61
+ if (this.dragCleanup) {
62
+ this.dragCleanup();
63
+ }
64
+ resetCoachmarkDetailsSignal();
65
+ }
66
+ setupDraggable() {
67
+ var _a;
68
+ const popover = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.${blockClass}--popover`);
69
+ const popoverContent = popover.querySelector('cds-custom-popover-content');
70
+ const wrapper = popoverContent.querySelector(`.${blockClass}--wrapper`);
71
+ const slot = wrapper.querySelector('slot');
72
+ const assignedElements = slot === null || slot === void 0 ? void 0 : slot.assignedElements({ flatten: true });
73
+ const header = assignedElements === null || assignedElements === void 0 ? void 0 : assignedElements.find((el) => el.tagName.toLowerCase() === 'c4p-coachmark-header');
74
+ requestAnimationFrame(() => {
75
+ var _a;
76
+ const dragHandle = (_a = header.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.drag-handle');
77
+ const draggable = makeDraggable({
78
+ el: popoverContent,
79
+ dragHandle: header,
80
+ focusableDragHandle: dragHandle,
81
+ });
82
+ const onDragStart = () => {
83
+ popoverContent.classList.add('is-dragging');
84
+ popoverContent.setAttribute('aria-label', 'Picked up the draggable popoverContent');
85
+ };
86
+ const onDragEnd = () => {
87
+ popoverContent.classList.remove('is-dragging');
88
+ popoverContent.setAttribute('aria-label', 'Draggable popoverContent was dropped');
89
+ };
90
+ popoverContent.addEventListener('dragstart', onDragStart);
91
+ popoverContent.addEventListener('dragend', onDragEnd);
92
+ // store cleanup
93
+ this.dragCleanup = () => {
94
+ var _a;
95
+ popoverContent.removeEventListener('dragstart', onDragStart);
96
+ popoverContent.removeEventListener('dragend', onDragEnd);
97
+ (_a = draggable.cleanup) === null || _a === void 0 ? void 0 : _a.call(draggable);
98
+ };
99
+ });
100
+ }
101
+ firstUpdated() {
102
+ if (this.floating) {
103
+ this.classList.add(`${blockClass}--floating`);
104
+ this.setupDraggable();
105
+ updateCoachmarkDetailsSignal({
106
+ name: 'floating',
107
+ detail: this.floating,
108
+ });
109
+ }
110
+ }
111
+ updated(changedProps) {
112
+ var _a;
113
+ if (changedProps.has('position')) {
114
+ const { x = 0, y = 0 } = (_a = this.position) !== null && _a !== void 0 ? _a : {};
115
+ if (x !== 0 || y !== 0) {
116
+ this.style.transform = `translate(${x}px, ${y}px)`;
117
+ }
118
+ }
119
+ }
120
+ render() {
121
+ return html `
122
+ <cds-custom-popover
123
+ class="${blockClass}--popover"
124
+ ?open=${this.open}
125
+ .caret=${this.floating === true ? false : true}
126
+ ?highContrast=${this.highContrast}
127
+ align=${this.align}
128
+ ?dropShadow=${this.dropShadow}
129
+ >
130
+ <slot name="trigger"></slot>
131
+ <cds-custom-popover-content>
132
+ <div class="${blockClass}--wrapper">
133
+ <slot></slot>
134
+ </div>
135
+ </cds-custom-popover-content>
136
+ </cds-custom-popover>
137
+ `;
138
+ }
139
+ };
140
+ CDSCoachmark.styles = styles;
141
+ __decorate([
142
+ property({ type: Boolean, reflect: true })
143
+ ], CDSCoachmark.prototype, "open", void 0);
144
+ __decorate([
145
+ property({ reflect: true, type: String })
146
+ ], CDSCoachmark.prototype, "align", void 0);
147
+ __decorate([
148
+ property({ type: Object })
149
+ ], CDSCoachmark.prototype, "position", void 0);
150
+ __decorate([
151
+ property({ type: Boolean, reflect: true })
152
+ ], CDSCoachmark.prototype, "floating", void 0);
153
+ __decorate([
154
+ property({ reflect: true })
155
+ ], CDSCoachmark.prototype, "highContrast", void 0);
156
+ __decorate([
157
+ property({ reflect: true })
158
+ ], CDSCoachmark.prototype, "dropShadow", void 0);
159
+ CDSCoachmark = __decorate([
160
+ carbonElement(`${prefix}-coachmark`)
161
+ ], CDSCoachmark);
162
+ var CDSCoachmark$1 = CDSCoachmark;
163
+
164
+ export { blockClass, CDSCoachmark$1 as default };
165
+ //# sourceMappingURL=coachmark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coachmark.js","sources":["../../../src/components/coachmark/coachmark.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAiBU,MAAA,UAAU,GAAG,CAAG,EAAA,MAAM;AAEnC;;;AAGG;AAEH,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAA;AAAvE,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAI,CAAA,IAAA,GAAY,KAAK;AACrB;;AAEG;AAEH,QAAA,IAAA,CAAA,KAAK,GAAY,iBAAiB,CAAC,GAAG;AAMtC;;AAEG;QAEH,IAAQ,CAAA,QAAA,GAAa,KAAK;AAC1B;;AAEG;QAEH,IAAY,CAAA,YAAA,GAAa,KAAK;AAE9B;;AAEG;QAEH,IAAU,CAAA,UAAA,GAAa,KAAK;QAEpB,IAAW,CAAA,WAAA,GAAwB,IAAI;;IAE/C,oBAAoB,GAAA;QAClB,KAAK,CAAC,oBAAoB,EAAE;AAC5B,QAAA,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,WAAW,EAAE;;AAEpB,QAAA,2BAA2B,EAAE;;IAGvB,cAAc,GAAA;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A,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACE,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AA/BzB,YAAY,GAAA,UAAA,CAAA;AADjB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,UAAA,CAAY;AAC9B,CAAA,EAAA,YAAY,CAyIjB;AAED,qBAAe,YAAY;;;;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { css } from 'lit';
9
+
10
+ var styles = css([".c4p--coachmark-beacon{position:relative}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:before{display:none}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:after{background-color:#4589ff;block-size:.75rem;border-radius:50%;content:\"\";inline-size:.75rem;inset-block-start:.625rem;inset-inline-start:.625rem;position:absolute}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:focus{outline:transparent}.c4p--coachmark-beacon-default .c4p--coachmark-beacon__target:focus:before{block-size:18px;border-radius:100%;content:\"\";display:block;inline-size:18px;inset-block-start:7px;inset-inline-start:7px;outline:.125rem var(--cds-focus,#0f62fe) solid;position:absolute}.c4p--coachmark-beacon .c4p--coachmark-beacon__target{background-color:transparent;block-size:2rem;border:none;border-radius:50%;cursor:pointer;display:flex;inline-size:2rem;padding:0}.c4p--coachmark-beacon .c4p--coachmark-beacon__target[aria-expanded=true] circle{animation:none}.c4p--coachmark-beacon__center{block-size:5rem;inline-size:5rem;inset-block-start:-1.375rem;inset-inline-start:-1.375rem;pointer-events:none;position:absolute;z-index:6900}.c4p--coachmark-beacon__center circle{animation:ripple 2s infinite;fill:var(--cds-support-info,#0043ce);fill-opacity:0;-webkit-mask-image:none;mask-image:none;stroke:var(--cds-support-info,#0043ce);stroke-opacity:0;stroke-width:1px;transition-timing-function:motion exit,productive}@media (prefers-reduced-motion){.c4p--coachmark-beacon__center circle{animation:none}}@keyframes ripple{0%{fill-opacity:0;r:1px;stroke-opacity:0;transition-timing-function:cubic-bezier(0,0,.38,.9)}31%{fill-opacity:.2;stroke-opacity:1}62%{fill-opacity:0;r:32px;stroke-opacity:0}to{fill-opacity:0;r:32px;stroke-opacity:0}}@keyframes ring-ripple{0%{fill-opacity:0;r:12px;stroke-opacity:0;transition-timing-function:cubic-bezier(0,0,.38,.9)}31%{fill-opacity:.2;stroke-opacity:1}62%{fill-opacity:0;r:32px;stroke-opacity:0}to{fill-opacity:0;r:32px;stroke-opacity:0}}.c4p--coachmark--popover{position:fixed}.c4p--coachmark--popover cds-custom-popover-content.is-dragging::part(content){border-radius:0;box-shadow:0 0 0 .125rem var(--cds-icon-inverse,#fff),0 0 0 .25rem var(--cds-background-inverse,#393939)}"]);
11
+
12
+ export { styles as default };
13
+ //# sourceMappingURL=coachmark.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coachmark.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ import './index';