@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.
- package/custom-elements.json +111 -0
- package/es/components/about-modal/about-modal.d.ts +3 -1
- package/es/components/about-modal/about-modal.scss.js +1 -1
- package/es/components/options-tile/index.d.ts +9 -0
- package/es/components/options-tile/index.js +9 -0
- package/es/components/options-tile/index.js.map +1 -0
- package/es/components/options-tile/options-tile.d.ts +400 -0
- package/es/components/options-tile/options-tile.js +143 -0
- package/es/components/options-tile/options-tile.js.map +1 -0
- package/es/components/options-tile/options-tile.scss.js +13 -0
- package/es/components/options-tile/options-tile.scss.js.map +1 -0
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/components/user-avatar/user-avatar.d.ts +5 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/es/package.json.js +1 -1
- package/es-custom/components/about-modal/about-modal.d.ts +3 -1
- package/es-custom/components/about-modal/about-modal.scss.js +1 -1
- package/es-custom/components/options-tile/index.d.ts +9 -0
- package/es-custom/components/options-tile/index.js +9 -0
- package/es-custom/components/options-tile/index.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.d.ts +400 -0
- package/es-custom/components/options-tile/options-tile.js +143 -0
- package/es-custom/components/options-tile/options-tile.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.scss.js +13 -0
- package/es-custom/components/options-tile/options-tile.scss.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
- package/es-custom/components/user-avatar/user-avatar.d.ts +5 -1
- package/es-custom/index.d.ts +1 -0
- package/es-custom/index.js +1 -0
- package/es-custom/index.js.map +1 -1
- package/es-custom/package.json.js +1 -1
- package/lib/components/about-modal/about-modal.d.ts +3 -1
- package/lib/components/options-tile/index.d.ts +9 -0
- package/lib/components/options-tile/options-tile.d.ts +400 -0
- package/lib/components/user-avatar/user-avatar.d.ts +5 -1
- package/lib/index.d.ts +1 -0
- package/package.json +19 -19
- package/scss/components/options-tile/options-tile.scss +70 -0
@@ -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;
|
@@ -41,7 +41,11 @@ declare const CDSUseravatar_base: {
|
|
41
41
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
42
42
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
43
43
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
44
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
44
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options
|
45
|
+
/**
|
46
|
+
* Set theme in which the component will be rendered.
|
47
|
+
*/
|
48
|
+
?: boolean | EventListenerOptions): void;
|
45
49
|
readonly attributes: NamedNodeMap;
|
46
50
|
readonly classList: DOMTokenList;
|
47
51
|
className: string;
|
package/lib/index.d.ts
CHANGED
@@ -11,3 +11,4 @@ export { default as CDSTearsheet } from './components/tearsheet/tearsheet';
|
|
11
11
|
export { default as CDSFullPageError } from './components/full-page-error/full-page-error';
|
12
12
|
export { default as CDSAboutModal } from './components/about-modal/about-modal';
|
13
13
|
export { default as CDSUseravatar } from './components/user-avatar/user-avatar';
|
14
|
+
export { default as CDSOptionsTile } from './components/options-tile/options-tile';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products-web-components",
|
3
3
|
"description": "Carbon for IBM Products Web Components",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.15.0-rc.0",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "es/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -54,17 +54,17 @@
|
|
54
54
|
"coverage": "vitest run --coverage"
|
55
55
|
},
|
56
56
|
"dependencies": {
|
57
|
-
"@carbon/ibm-products-styles": "^2.
|
58
|
-
"@carbon/styles": "1.
|
59
|
-
"@carbon/web-components": "2.
|
57
|
+
"@carbon/ibm-products-styles": "^2.62.0-rc.0",
|
58
|
+
"@carbon/styles": "1.79.0",
|
59
|
+
"@carbon/web-components": "2.27.1",
|
60
60
|
"@ibm/telemetry-js": "^1.9.1",
|
61
61
|
"lit": "^3.1.0"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
64
|
"@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
|
65
|
-
"@carbon/icon-helpers": "^10.
|
66
|
-
"@carbon/icons": "^11.
|
67
|
-
"@carbon/motion": "^11.
|
65
|
+
"@carbon/icon-helpers": "^10.57.0",
|
66
|
+
"@carbon/icons": "^11.58.0",
|
67
|
+
"@carbon/motion": "^11.26.0",
|
68
68
|
"@mordech/vite-lit-loader": "^0.37.0",
|
69
69
|
"@open-wc/testing": "^4.0.0",
|
70
70
|
"@rollup/plugin-alias": "^5.1.1",
|
@@ -72,14 +72,14 @@
|
|
72
72
|
"@rollup/plugin-json": "^6.1.0",
|
73
73
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
74
74
|
"@rollup/plugin-typescript": "^12.1.1",
|
75
|
-
"@storybook/addon-essentials": "^8.6.
|
76
|
-
"@storybook/addon-links": "^8.6.
|
77
|
-
"@storybook/addon-storysource": "^8.6.
|
78
|
-
"@storybook/addon-toolbars": "^8.6.
|
79
|
-
"@storybook/blocks": "^8.6.
|
80
|
-
"@storybook/theming": "^8.6.
|
81
|
-
"@storybook/web-components": "^8.6.
|
82
|
-
"@storybook/web-components-vite": "^8.6.
|
75
|
+
"@storybook/addon-essentials": "^8.6.12",
|
76
|
+
"@storybook/addon-links": "^8.6.12",
|
77
|
+
"@storybook/addon-storysource": "^8.6.12",
|
78
|
+
"@storybook/addon-toolbars": "^8.6.12",
|
79
|
+
"@storybook/blocks": "^8.6.12",
|
80
|
+
"@storybook/theming": "^8.6.12",
|
81
|
+
"@storybook/web-components": "^8.6.12",
|
82
|
+
"@storybook/web-components-vite": "^8.6.12",
|
83
83
|
"@types/jest": "^29.5.13",
|
84
84
|
"@vitest/browser": "^3.0.1",
|
85
85
|
"@vitest/coverage-v8": "^3.0.1",
|
@@ -87,17 +87,17 @@
|
|
87
87
|
"c8": "^10.1.3",
|
88
88
|
"cssnano": "^7.0.6",
|
89
89
|
"eslint": "^9.14.0",
|
90
|
-
"eslint-config-carbon": "^3.
|
90
|
+
"eslint-config-carbon": "^3.20.0",
|
91
91
|
"globby": "^14.0.2",
|
92
92
|
"happy-dom": "^17.0.0",
|
93
93
|
"playwright": "^1.51.1",
|
94
94
|
"postcss": "^8.4.47",
|
95
95
|
"remark-gfm": "^4.0.0",
|
96
|
-
"rimraf": "^
|
96
|
+
"rimraf": "^6.0.1",
|
97
97
|
"rollup": "^4.27.3",
|
98
98
|
"rollup-plugin-copy": "^3.5.0",
|
99
99
|
"sass": "^1.80.6",
|
100
|
-
"storybook": "^8.6.
|
100
|
+
"storybook": "^8.6.12",
|
101
101
|
"storybook-addon-accessibility-checker": "^3.1.61-rc.3",
|
102
102
|
"tslib": "^2.8.1",
|
103
103
|
"typescript": "^5.5.3",
|
@@ -106,5 +106,5 @@
|
|
106
106
|
"vitest": "^3.0.1",
|
107
107
|
"web-component-analyzer": "2.0.0"
|
108
108
|
},
|
109
|
-
"gitHead": "
|
109
|
+
"gitHead": "4949e7eacdce0ffc474cc34e7df381ff153f3e83"
|
110
110
|
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright IBM Corp. 2025, 2025
|
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
|
+
$css--plex: true !default;
|
9
|
+
|
10
|
+
@use 'sass:map';
|
11
|
+
@use '@carbon/styles/scss/theme' as *;
|
12
|
+
@use '@carbon/styles/scss/spacing' as *;
|
13
|
+
@use '@carbon/styles/scss/reset';
|
14
|
+
@use '@carbon/styles/scss/type';
|
15
|
+
|
16
|
+
$prefix: 'c4p';
|
17
|
+
$carbon-prefix: 'cds';
|
18
|
+
$block-class: #{$prefix}--options-tile;
|
19
|
+
|
20
|
+
:host(#{$prefix}-options-tile) {
|
21
|
+
.#{$block-class} {
|
22
|
+
background: $layer-01;
|
23
|
+
|
24
|
+
&__header {
|
25
|
+
display: flex;
|
26
|
+
align-items: center;
|
27
|
+
justify-content: space-between;
|
28
|
+
block-size: $spacing-09;
|
29
|
+
padding-inline: $spacing-05;
|
30
|
+
padding-inline-end: $spacing-05;
|
31
|
+
|
32
|
+
&-left {
|
33
|
+
display: flex;
|
34
|
+
align-items: center;
|
35
|
+
}
|
36
|
+
|
37
|
+
&-right {
|
38
|
+
display: flex;
|
39
|
+
align-items: center;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
&__title {
|
44
|
+
@include type.type-style('heading-compact-01');
|
45
|
+
}
|
46
|
+
|
47
|
+
&__summary {
|
48
|
+
@include type.type-style('helper-text-01');
|
49
|
+
}
|
50
|
+
|
51
|
+
&__chevron {
|
52
|
+
margin-inline-end: $spacing-03;
|
53
|
+
}
|
54
|
+
|
55
|
+
&__body {
|
56
|
+
padding-block-end: $spacing-06;
|
57
|
+
padding-block-start: $spacing-03;
|
58
|
+
padding-inline: $spacing-05;
|
59
|
+
padding-inline-start: $spacing-09;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.#{$block-class}--xl .#{$block-class}__header {
|
64
|
+
block-size: $spacing-10;
|
65
|
+
}
|
66
|
+
|
67
|
+
.#{$block-class}--open .#{$block-class}__chevron {
|
68
|
+
transform: rotate(-180deg);
|
69
|
+
}
|
70
|
+
}
|