@carbon/ibm-products-web-components 0.14.0 → 0.15.0-rc.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 (40) hide show
  1. package/custom-elements.json +111 -0
  2. package/es/components/about-modal/about-modal.d.ts +3 -1
  3. package/es/components/about-modal/about-modal.scss.js +1 -1
  4. package/es/components/options-tile/index.d.ts +9 -0
  5. package/es/components/options-tile/index.js +9 -0
  6. package/es/components/options-tile/index.js.map +1 -0
  7. package/es/components/options-tile/options-tile.d.ts +400 -0
  8. package/es/components/options-tile/options-tile.js +143 -0
  9. package/es/components/options-tile/options-tile.js.map +1 -0
  10. package/es/components/options-tile/options-tile.scss.js +13 -0
  11. package/es/components/options-tile/options-tile.scss.js.map +1 -0
  12. package/es/components/tearsheet/tearsheet.scss.js +1 -1
  13. package/es/components/user-avatar/user-avatar.d.ts +5 -1
  14. package/es/index.d.ts +1 -0
  15. package/es/index.js +1 -0
  16. package/es/index.js.map +1 -1
  17. package/es/package.json.js +1 -1
  18. package/es-custom/components/about-modal/about-modal.d.ts +3 -1
  19. package/es-custom/components/about-modal/about-modal.scss.js +1 -1
  20. package/es-custom/components/options-tile/index.d.ts +9 -0
  21. package/es-custom/components/options-tile/index.js +9 -0
  22. package/es-custom/components/options-tile/index.js.map +1 -0
  23. package/es-custom/components/options-tile/options-tile.d.ts +400 -0
  24. package/es-custom/components/options-tile/options-tile.js +143 -0
  25. package/es-custom/components/options-tile/options-tile.js.map +1 -0
  26. package/es-custom/components/options-tile/options-tile.scss.js +13 -0
  27. package/es-custom/components/options-tile/options-tile.scss.js.map +1 -0
  28. package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
  29. package/es-custom/components/user-avatar/user-avatar.d.ts +5 -1
  30. package/es-custom/index.d.ts +1 -0
  31. package/es-custom/index.js +1 -0
  32. package/es-custom/index.js.map +1 -1
  33. package/es-custom/package.json.js +1 -1
  34. package/lib/components/about-modal/about-modal.d.ts +3 -1
  35. package/lib/components/options-tile/index.d.ts +9 -0
  36. package/lib/components/options-tile/options-tile.d.ts +400 -0
  37. package/lib/components/user-avatar/user-avatar.d.ts +5 -1
  38. package/lib/index.d.ts +1 -0
  39. package/package.json +19 -19
  40. package/scss/components/options-tile/options-tile.scss +70 -0
@@ -0,0 +1,9 @@
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 './options-tile';
@@ -0,0 +1,9 @@
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 './options-tile.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,400 @@
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, nothing } from 'lit';
10
+ declare const CDSOptionsTile_base: {
11
+ new (...args: any[]): {
12
+ _handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
13
+ connectedCallback(): void;
14
+ disconnectedCallback(): void;
15
+ accessKey: string;
16
+ readonly accessKeyLabel: string;
17
+ autocapitalize: string;
18
+ dir: string;
19
+ draggable: boolean;
20
+ hidden: boolean;
21
+ inert: boolean;
22
+ innerText: string;
23
+ lang: string;
24
+ readonly offsetHeight: number;
25
+ readonly offsetLeft: number;
26
+ readonly offsetParent: Element | null;
27
+ readonly offsetTop: number;
28
+ readonly offsetWidth: number;
29
+ outerText: string;
30
+ popover: string | null;
31
+ spellcheck: boolean;
32
+ title: string;
33
+ translate: boolean;
34
+ writingSuggestions: string;
35
+ attachInternals(): ElementInternals;
36
+ click(): void;
37
+ hidePopover(): void;
38
+ showPopover(): void;
39
+ togglePopover(force?: boolean): boolean;
40
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
41
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
42
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
43
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
44
+ readonly attributes: NamedNodeMap;
45
+ readonly classList: DOMTokenList;
46
+ className: string;
47
+ readonly clientHeight: number;
48
+ readonly clientLeft: number;
49
+ readonly clientTop: number;
50
+ readonly clientWidth: number;
51
+ readonly currentCSSZoom: number;
52
+ id: string;
53
+ innerHTML: string;
54
+ readonly localName: string;
55
+ readonly namespaceURI: string | null;
56
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
57
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
58
+ outerHTML: string;
59
+ readonly ownerDocument: Document;
60
+ readonly part: DOMTokenList;
61
+ readonly prefix: string | null;
62
+ readonly scrollHeight: number;
63
+ scrollLeft: number;
64
+ scrollTop: number;
65
+ readonly scrollWidth: number;
66
+ readonly shadowRoot: ShadowRoot | null;
67
+ slot: string;
68
+ readonly tagName: string;
69
+ attachShadow(init: ShadowRootInit): ShadowRoot;
70
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
71
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
72
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
73
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
74
+ closest<E extends Element = Element>(selectors: string): E | null;
75
+ computedStyleMap(): StylePropertyMapReadOnly;
76
+ getAttribute(qualifiedName: string): string | null;
77
+ getAttributeNS(namespace: string | null, localName: string): string | null;
78
+ getAttributeNames(): string[];
79
+ getAttributeNode(qualifiedName: string): Attr | null;
80
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
81
+ getBoundingClientRect(): DOMRect;
82
+ getClientRects(): DOMRectList;
83
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
84
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
85
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
86
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
87
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
88
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
89
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
90
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
91
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
92
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
93
+ getHTML(options?: GetHTMLOptions): string;
94
+ hasAttribute(qualifiedName: string): boolean;
95
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
96
+ hasAttributes(): boolean;
97
+ hasPointerCapture(pointerId: number): boolean;
98
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
99
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
100
+ insertAdjacentText(where: InsertPosition, data: string): void;
101
+ matches(selectors: string): boolean;
102
+ releasePointerCapture(pointerId: number): void;
103
+ removeAttribute(qualifiedName: string): void;
104
+ removeAttributeNS(namespace: string | null, localName: string): void;
105
+ removeAttributeNode(attr: Attr): Attr;
106
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
107
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
108
+ scroll(options?: ScrollToOptions): void;
109
+ scroll(x: number, y: number): void;
110
+ scrollBy(options?: ScrollToOptions): void;
111
+ scrollBy(x: number, y: number): void;
112
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
113
+ scrollTo(options?: ScrollToOptions): void;
114
+ scrollTo(x: number, y: number): void;
115
+ setAttribute(qualifiedName: string, value: string): void;
116
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
117
+ setAttributeNode(attr: Attr): Attr | null;
118
+ setAttributeNodeNS(attr: Attr): Attr | null;
119
+ setHTMLUnsafe(html: string): void;
120
+ setPointerCapture(pointerId: number): void;
121
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
122
+ webkitMatchesSelector(selectors: string): boolean;
123
+ readonly baseURI: string;
124
+ readonly childNodes: NodeListOf<ChildNode>;
125
+ readonly firstChild: ChildNode | null;
126
+ readonly isConnected: boolean;
127
+ readonly lastChild: ChildNode | null;
128
+ readonly nextSibling: ChildNode | null;
129
+ readonly nodeName: string;
130
+ readonly nodeType: number;
131
+ nodeValue: string | null;
132
+ readonly parentElement: HTMLElement | null;
133
+ readonly parentNode: ParentNode | null;
134
+ readonly previousSibling: ChildNode | null;
135
+ textContent: string | null;
136
+ appendChild<T_1 extends Node>(node: T_1): T_1;
137
+ cloneNode(deep?: boolean): Node;
138
+ compareDocumentPosition(other: Node): number;
139
+ contains(other: Node | null): boolean;
140
+ getRootNode(options?: GetRootNodeOptions): Node;
141
+ hasChildNodes(): boolean;
142
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
143
+ isDefaultNamespace(namespace: string | null): boolean;
144
+ isEqualNode(otherNode: Node | null): boolean;
145
+ isSameNode(otherNode: Node | null): boolean;
146
+ lookupNamespaceURI(prefix: string | null): string | null;
147
+ lookupPrefix(namespace: string | null): string | null;
148
+ normalize(): void;
149
+ removeChild<T_1 extends Node>(child: T_1): T_1;
150
+ replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
151
+ readonly ELEMENT_NODE: 1;
152
+ readonly ATTRIBUTE_NODE: 2;
153
+ readonly TEXT_NODE: 3;
154
+ readonly CDATA_SECTION_NODE: 4;
155
+ readonly ENTITY_REFERENCE_NODE: 5;
156
+ readonly ENTITY_NODE: 6;
157
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
158
+ readonly COMMENT_NODE: 8;
159
+ readonly DOCUMENT_NODE: 9;
160
+ readonly DOCUMENT_TYPE_NODE: 10;
161
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
162
+ readonly NOTATION_NODE: 12;
163
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
164
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
165
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
166
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
167
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
168
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
169
+ dispatchEvent(event: Event): boolean;
170
+ ariaAtomic: string | null;
171
+ ariaAutoComplete: string | null;
172
+ ariaBrailleLabel: string | null;
173
+ ariaBrailleRoleDescription: string | null;
174
+ ariaBusy: string | null;
175
+ ariaChecked: string | null;
176
+ ariaColCount: string | null;
177
+ ariaColIndex: string | null;
178
+ ariaColIndexText: string | null;
179
+ ariaColSpan: string | null;
180
+ ariaCurrent: string | null;
181
+ ariaDescription: string | null;
182
+ ariaDisabled: string | null;
183
+ ariaExpanded: string | null;
184
+ ariaHasPopup: string | null;
185
+ ariaHidden: string | null;
186
+ ariaInvalid: string | null;
187
+ ariaKeyShortcuts: string | null;
188
+ ariaLabel: string | null;
189
+ ariaLevel: string | null;
190
+ ariaLive: string | null;
191
+ ariaModal: string | null;
192
+ ariaMultiLine: string | null;
193
+ ariaMultiSelectable: string | null;
194
+ ariaOrientation: string | null;
195
+ ariaPlaceholder: string | null;
196
+ ariaPosInSet: string | null;
197
+ ariaPressed: string | null;
198
+ ariaReadOnly: string | null;
199
+ ariaRequired: string | null;
200
+ ariaRoleDescription: string | null;
201
+ ariaRowCount: string | null;
202
+ ariaRowIndex: string | null;
203
+ ariaRowIndexText: string | null;
204
+ ariaRowSpan: string | null;
205
+ ariaSelected: string | null;
206
+ ariaSetSize: string | null;
207
+ ariaSort: string | null;
208
+ ariaValueMax: string | null;
209
+ ariaValueMin: string | null;
210
+ ariaValueNow: string | null;
211
+ ariaValueText: string | null;
212
+ role: string | null;
213
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
214
+ getAnimations(options?: GetAnimationsOptions): Animation[];
215
+ after(...nodes: (Node | string)[]): void;
216
+ before(...nodes: (Node | string)[]): void;
217
+ remove(): void;
218
+ replaceWith(...nodes: (Node | string)[]): void;
219
+ readonly nextElementSibling: Element | null;
220
+ readonly previousElementSibling: Element | null;
221
+ readonly childElementCount: number;
222
+ readonly children: HTMLCollection;
223
+ readonly firstElementChild: Element | null;
224
+ readonly lastElementChild: Element | null;
225
+ append(...nodes: (Node | string)[]): void;
226
+ prepend(...nodes: (Node | string)[]): void;
227
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
228
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
229
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
230
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
231
+ querySelector<E extends Element = Element>(selectors: string): E | null;
232
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
233
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
234
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
235
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
236
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
237
+ replaceChildren(...nodes: (Node | string)[]): void;
238
+ readonly assignedSlot: HTMLSlotElement | null;
239
+ readonly attributeStyleMap: StylePropertyMap;
240
+ readonly style: CSSStyleDeclaration;
241
+ contentEditable: string;
242
+ enterKeyHint: string;
243
+ inputMode: string;
244
+ readonly isContentEditable: boolean;
245
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
246
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
247
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
248
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
249
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
250
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
251
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
252
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
253
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
254
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
255
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
256
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
257
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
258
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
259
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
261
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
262
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
263
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
264
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
265
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
266
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
267
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
268
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
269
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
270
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
271
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
272
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
273
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
274
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
+ onerror: OnErrorEventHandler;
278
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
279
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
280
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
281
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
284
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
285
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
286
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
289
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
290
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
291
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
292
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
293
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
294
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
295
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
296
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
297
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
298
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
299
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
303
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
304
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
305
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
306
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
307
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
308
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
309
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
310
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
311
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
312
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
314
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
315
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
317
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
320
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
322
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
323
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
325
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
327
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
329
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
330
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
331
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
332
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
333
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
334
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
335
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
336
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
343
+ autofocus: boolean;
344
+ readonly dataset: DOMStringMap;
345
+ nonce?: string;
346
+ tabIndex: number;
347
+ blur(): void;
348
+ focus(options?: FocusOptions): void;
349
+ };
350
+ _hostListeners: {
351
+ [listenerName: string]: {
352
+ [type: string]: {
353
+ options?: boolean | AddEventListenerOptions;
354
+ };
355
+ };
356
+ };
357
+ } & typeof LitElement;
358
+ /**
359
+ * OptionsTile.
360
+ *
361
+ * @element c4p-options-tile
362
+ * @csspart options-tile The options tile
363
+ * @fires c4p-options-tile-open Custom event fired when tile is opened
364
+ * @fires c4p-options-tile-close Custom event fired when tile is closed
365
+ * */
366
+ declare class CDSOptionsTile extends CDSOptionsTile_base {
367
+ /**
368
+ * If `true` the body of the component is shown
369
+ */
370
+ open: boolean;
371
+ /**
372
+ * Callback fired when the component requests to be closed
373
+ */
374
+ onClose?: (evt: Event) => void;
375
+ /**
376
+ * Callback fired when the component requests to be opened
377
+ */
378
+ onOpen?: (evt: Event) => void;
379
+ /**
380
+ * Determines the size of the header
381
+ */
382
+ size?: 'lg' | 'xl';
383
+ /**
384
+ * Text for the title
385
+ */
386
+ title: string;
387
+ /**
388
+ * ID for the title
389
+ */
390
+ titleId: string;
391
+ static get eventOpen(): string;
392
+ static get eventClose(): string;
393
+ private _toggle;
394
+ private _handleOpen;
395
+ private _handleClose;
396
+ getBody(): import("lit-html").TemplateResult<1> | typeof nothing;
397
+ render(): import("lit-html").TemplateResult<1>;
398
+ static styles: any;
399
+ }
400
+ export default CDSOptionsTile;
@@ -0,0 +1,143 @@
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, nothing } from 'lit';
10
+ import { property } from 'lit/decorators.js';
11
+ import { classMap } from 'lit/directives/class-map.js';
12
+ import { prefix } from '../../globals/settings.js';
13
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
14
+ import styles from './options-tile.scss.js';
15
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
16
+ import ChevronDown20 from '@carbon/web-components/es/icons/chevron--down/20';
17
+
18
+ /**
19
+ * @license
20
+ *
21
+ * Copyright IBM Corp. 2025
22
+ *
23
+ * This source code is licensed under the Apache-2.0 license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */
26
+ const blockClass = `${prefix}--options-tile`;
27
+ const blockEvent = `${prefix}-options-tile`;
28
+ /**
29
+ * OptionsTile.
30
+ *
31
+ * @element c4p-options-tile
32
+ * @csspart options-tile The options tile
33
+ * @fires c4p-options-tile-open Custom event fired when tile is opened
34
+ * @fires c4p-options-tile-close Custom event fired when tile is closed
35
+ * */
36
+ let CDSOptionsTile = class CDSOptionsTile extends HostListenerMixin(LitElement) {
37
+ constructor() {
38
+ super(...arguments);
39
+ /**
40
+ * If `true` the body of the component is shown
41
+ */
42
+ this.open = false;
43
+ /**
44
+ * Determines the size of the header
45
+ */
46
+ this.size = 'lg';
47
+ /**
48
+ * Text for the title
49
+ */
50
+ this.title = '';
51
+ /**
52
+ * ID for the title
53
+ */
54
+ this.titleId = '';
55
+ }
56
+ static get eventOpen() {
57
+ return `${blockEvent}-open`;
58
+ }
59
+ static get eventClose() {
60
+ return `${blockEvent}-close`;
61
+ }
62
+ _toggle() {
63
+ this.open ? this._handleClose() : this._handleOpen();
64
+ }
65
+ _handleOpen() {
66
+ const init = {
67
+ bubbles: true,
68
+ composed: true,
69
+ };
70
+ this.dispatchEvent(new CustomEvent(this.constructor.eventOpen, init));
71
+ }
72
+ _handleClose() {
73
+ const init = {
74
+ bubbles: true,
75
+ composed: true,
76
+ };
77
+ this.dispatchEvent(new CustomEvent(this.constructor.eventClose, init));
78
+ }
79
+ getBody() {
80
+ const { open } = this;
81
+ if (open) {
82
+ return html ` <div class="${blockClass}__body">
83
+ <div class="${blockClass}__body-content"><slot name="body"></slot></div>
84
+ </div>`;
85
+ }
86
+ return nothing;
87
+ }
88
+ render() {
89
+ const { open, size, title, titleId } = this;
90
+ const classes = classMap({
91
+ [`${blockClass}`]: true,
92
+ [`${blockClass}--xl`]: size === 'xl',
93
+ [`${blockClass}--open`]: open,
94
+ });
95
+ return html `
96
+ <div part="options-tile" class="${classes}">
97
+ <div class="${blockClass}__header">
98
+ <div class="${blockClass}__header-left">
99
+ <div class="${blockClass}__chevron" @click=${this._toggle}>
100
+ ${ChevronDown20({ slot: 'icon' })}
101
+ </div>
102
+ <div class="${blockClass}__title-block">
103
+ <p class="${blockClass}__title" id="${titleId}">${title}</p>
104
+ <div class="${blockClass}__summary">
105
+ <slot name="summary"></slot>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ <div class="${blockClass}__header-right">
110
+ <slot name="toggle"></slot>
111
+ </div>
112
+ </div>
113
+ ${this.getBody()}
114
+ </div>
115
+ `;
116
+ }
117
+ };
118
+ CDSOptionsTile.styles = styles;
119
+ __decorate([
120
+ property({ type: Boolean, reflect: true })
121
+ ], CDSOptionsTile.prototype, "open", void 0);
122
+ __decorate([
123
+ property({ type: Function })
124
+ ], CDSOptionsTile.prototype, "onClose", void 0);
125
+ __decorate([
126
+ property({ type: Function })
127
+ ], CDSOptionsTile.prototype, "onOpen", void 0);
128
+ __decorate([
129
+ property({ type: String, reflect: true })
130
+ ], CDSOptionsTile.prototype, "size", void 0);
131
+ __decorate([
132
+ property({ type: String, reflect: true })
133
+ ], CDSOptionsTile.prototype, "title", void 0);
134
+ __decorate([
135
+ property({ type: String, reflect: true })
136
+ ], CDSOptionsTile.prototype, "titleId", void 0);
137
+ CDSOptionsTile = __decorate([
138
+ carbonElement(`${prefix}-options-tile`)
139
+ ], CDSOptionsTile);
140
+ var CDSOptionsTile$1 = CDSOptionsTile;
141
+
142
+ export { CDSOptionsTile$1 as default };
143
+ //# sourceMappingURL=options-tile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options-tile.js","sources":["../../../src/components/options-tile/options-tile.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAWH,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,gBAAgB;AAC5C,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,eAAe;AAE3C;;;;;;;AAOK;AAGL,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAA1D,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAI,CAAA,IAAA,GAAY,KAAK;AAcrB;;AAEG;QAEH,IAAI,CAAA,IAAA,GAAiB,IAAI;AAEzB;;AAEG;QAEH,IAAK,CAAA,KAAA,GAAW,EAAE;AAElB;;AAEG;QAEH,IAAO,CAAA,OAAA,GAAW,EAAE;;AAEpB,IAAA,WAAW,SAAS,GAAA;QAClB,OAAO,CAAA,EAAG,UAAU,CAAA,KAAA,CAAO;;AAG7B,IAAA,WAAW,UAAU,GAAA;QACnB,OAAO,CAAA,EAAG,UAAU,CAAA,MAAA,CAAQ;;IAGtB,OAAO,GAAA;AACb,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;;IAG9C,WAAW,GAAA;AACjB,QAAA,MAAM,IAAI,GAA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BM 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(["a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font:inherit;font-feature-settings:\"liga\" 1;font-size:100%;margin:0;padding:0;vertical-align:baseline}button,input,select,textarea{border-radius:0;font-family:inherit}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{background-color:var(--cds-custom-background,#fff);color:var(--cds-custom-text-primary,#161616);line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}html{font-size:100%}body{font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,sans-serif;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:IBM Plex Mono,system-ui,-apple-system,BlinkMacSystemFont,\\.SFNSText-Regular,monospace}strong{font-weight:600}@media screen and (-ms-high-contrast:active){svg{fill:ButtonText}}h1{font-size:var(--cds-custom-heading-06-font-size,2.625rem);font-weight:var(--cds-custom-heading-06-font-weight,300);letter-spacing:var(--cds-custom-heading-06-letter-spacing,0);line-height:var(--cds-custom-heading-06-line-height,1.199)}h2{font-size:var(--cds-custom-heading-05-font-size,2rem);font-weight:var(--cds-custom-heading-05-font-weight,400);letter-spacing:var(--cds-custom-heading-05-letter-spacing,0);line-height:var(--cds-custom-heading-05-line-height,1.25)}h3{font-size:var(--cds-custom-heading-04-font-size,1.75rem);font-weight:var(--cds-custom-heading-04-font-weight,400);letter-spacing:var(--cds-custom-heading-04-letter-spacing,0);line-height:var(--cds-custom-heading-04-line-height,1.28572)}h4{font-size:var(--cds-custom-heading-03-font-size,1.25rem);font-weight:var(--cds-custom-heading-03-font-weight,400);letter-spacing:var(--cds-custom-heading-03-letter-spacing,0);line-height:var(--cds-custom-heading-03-line-height,1.4)}h5{font-size:var(--cds-custom-heading-02-font-size,1rem);font-weight:var(--cds-custom-heading-02-font-weight,600);letter-spacing:var(--cds-custom-heading-02-letter-spacing,0);line-height:var(--cds-custom-heading-02-line-height,1.5)}h6{font-size:var(--cds-custom-heading-01-font-size,.875rem);font-weight:var(--cds-custom-heading-01-font-weight,600);letter-spacing:var(--cds-custom-heading-01-letter-spacing,.16px);line-height:var(--cds-custom-heading-01-line-height,1.42857)}p{font-size:var(--cds-custom-body-02-font-size,1rem);font-weight:var(--cds-custom-body-02-font-weight,400);letter-spacing:var(--cds-custom-body-02-letter-spacing,0);line-height:var(--cds-custom-body-02-line-height,1.5)}a{color:var(--cds-custom-link-primary,#0062fe)}em{font-style:italic}:host(c4p-options-tile) .c4p--options-tile{background:var(--cds-custom-layer-01,#f4f4f4)}:host(c4p-options-tile) .c4p--options-tile__header{align-items:center;block-size:3rem;display:flex;justify-content:space-between;padding-inline:1rem;padding-inline-end:1rem}:host(c4p-options-tile) .c4p--options-tile__header-left{align-items:center;display:flex}:host(c4p-options-tile) .c4p--options-tile__header-right{align-items:center;display:flex}:host(c4p-options-tile) .c4p--options-tile__title{font-size:var(--cds-custom-heading-compact-01-font-size,.875rem);font-weight:var(--cds-custom-heading-compact-01-font-weight,600);letter-spacing:var(--cds-custom-heading-compact-01-letter-spacing,.16px);line-height:var(--cds-custom-heading-compact-01-line-height,1.28572)}:host(c4p-options-tile) .c4p--options-tile__summary{font-size:var(--cds-custom-helper-text-01-font-size,.75rem);letter-spacing:var(--cds-custom-helper-text-01-letter-spacing,.32px);line-height:var(--cds-custom-helper-text-01-line-height,1.33333)}:host(c4p-options-tile) .c4p--options-tile__chevron{margin-inline-end:.5rem}:host(c4p-options-tile) .c4p--options-tile__body{padding-block-end:1.5rem;padding-block-start:.5rem;padding-inline:1rem;padding-inline-start:3rem}:host(c4p-options-tile) .c4p--options-tile--xl .c4p--options-tile__header{block-size:4rem}:host(c4p-options-tile) .c4p--options-tile--open .c4p--options-tile__chevron{transform:rotate(-180deg)}"]);
11
+
12
+ export { styles as default };
13
+ //# sourceMappingURL=options-tile.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options-tile.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}