@carbon/ibm-products-web-components 0.10.0 → 0.11.0-rc.1
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 +250 -0
- package/es/components/about-modal/about-modal.d.ts +418 -0
- package/es/components/about-modal/about-modal.js +143 -0
- package/es/components/about-modal/about-modal.js.map +1 -0
- package/es/components/about-modal/about-modal.scss.js +13 -0
- package/es/components/about-modal/about-modal.scss.js.map +1 -0
- package/es/components/about-modal/about-modal.test.d.ts +7 -0
- package/es/components/about-modal/about-modal.test.js +87 -0
- package/es/components/about-modal/about-modal.test.js.map +1 -0
- package/es/components/about-modal/defs.d.ts +8 -0
- package/es/components/about-modal/defs.js +8 -0
- package/es/components/about-modal/defs.js.map +1 -0
- package/es/components/about-modal/index.d.ts +9 -0
- package/es/components/about-modal/index.js +9 -0
- package/es/components/about-modal/index.js.map +1 -0
- package/es/components/side-panel/side-panel.d.ts +87 -61
- package/es/components/side-panel/side-panel.js +64 -63
- package/es/components/side-panel/side-panel.js.map +1 -1
- package/es/components/side-panel/side-panel.scss.js +1 -1
- package/es/components/side-panel/side-panel.test.js +2 -3
- package/es/components/side-panel/side-panel.test.js.map +1 -1
- package/es/components/tearsheet/tearsheet.d.ts +87 -61
- package/es/components/tearsheet/tearsheet.js +37 -37
- package/es/components/tearsheet/tearsheet.js.map +1 -1
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/components/tearsheet/tearsheet.test.js +2 -3
- package/es/components/tearsheet/tearsheet.test.js.map +1 -1
- package/es/components/user-avatar/user-avatar.d.ts +92 -61
- package/es/components/user-avatar/user-avatar.js +21 -19
- package/es/components/user-avatar/user-avatar.js.map +1 -1
- package/es/components/user-avatar/user-avatar.scss.js +1 -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 +418 -0
- package/es-custom/components/about-modal/about-modal.js +143 -0
- package/es-custom/components/about-modal/about-modal.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.scss.js +13 -0
- package/es-custom/components/about-modal/about-modal.scss.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.test.d.ts +7 -0
- package/es-custom/components/about-modal/about-modal.test.js +87 -0
- package/es-custom/components/about-modal/about-modal.test.js.map +1 -0
- package/es-custom/components/about-modal/defs.d.ts +8 -0
- package/es-custom/components/about-modal/defs.js +8 -0
- package/es-custom/components/about-modal/defs.js.map +1 -0
- package/es-custom/components/about-modal/index.d.ts +9 -0
- package/es-custom/components/about-modal/index.js +9 -0
- package/es-custom/components/about-modal/index.js.map +1 -0
- package/es-custom/components/side-panel/defs.d.ts +39 -0
- package/es-custom/components/side-panel/defs.js +51 -0
- package/es-custom/components/side-panel/defs.js.map +1 -0
- package/es-custom/components/side-panel/index.d.ts +9 -0
- package/es-custom/components/side-panel/index.js +9 -0
- package/es-custom/components/side-panel/index.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.d.ts +546 -0
- package/es-custom/components/side-panel/side-panel.js +828 -0
- package/es-custom/components/side-panel/side-panel.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.scss.js +13 -0
- package/es-custom/components/side-panel/side-panel.scss.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.test.d.ts +7 -0
- package/es-custom/components/side-panel/side-panel.test.js +56 -0
- package/es-custom/components/side-panel/side-panel.test.js.map +1 -0
- package/es-custom/components/tearsheet/defs.d.ts +26 -0
- package/es-custom/components/tearsheet/defs.js +39 -0
- package/es-custom/components/tearsheet/defs.js.map +1 -0
- package/es-custom/components/tearsheet/index.d.ts +9 -0
- package/es-custom/components/tearsheet/index.js +9 -0
- package/es-custom/components/tearsheet/index.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.d.ts +516 -0
- package/es-custom/components/tearsheet/tearsheet.js +676 -0
- package/es-custom/components/tearsheet/tearsheet.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.scss.js +13 -0
- package/es-custom/components/tearsheet/tearsheet.scss.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.test.d.ts +7 -0
- package/es-custom/components/tearsheet/tearsheet.test.js +121 -0
- package/es-custom/components/tearsheet/tearsheet.test.js.map +1 -0
- package/es-custom/components/user-avatar/index.d.ts +9 -0
- package/es-custom/components/user-avatar/index.js +9 -0
- package/es-custom/components/user-avatar/index.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.d.ts +405 -0
- package/es-custom/components/user-avatar/user-avatar.js +151 -0
- package/es-custom/components/user-avatar/user-avatar.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.scss.js +13 -0
- package/es-custom/components/user-avatar/user-avatar.scss.js.map +1 -0
- package/es-custom/globals/internal/handle.d.ts +18 -0
- package/es-custom/globals/internal/handle.js +8 -0
- package/es-custom/globals/internal/handle.js.map +1 -0
- package/es-custom/globals/internal/storybook-cdn.js +78 -0
- package/es-custom/globals/internal/storybook-cdn.js.map +1 -0
- package/es-custom/globals/settings.d.ts +15 -0
- package/es-custom/globals/settings.js +28 -0
- package/es-custom/globals/settings.js.map +1 -0
- package/es-custom/index.d.ts +12 -0
- package/es-custom/index.js +12 -0
- package/es-custom/index.js.map +1 -0
- package/es-custom/package.json.js +13 -0
- package/es-custom/package.json.js.map +1 -0
- package/lib/components/about-modal/about-modal.d.ts +418 -0
- package/lib/components/about-modal/about-modal.test.d.ts +7 -0
- package/lib/components/about-modal/defs.d.ts +8 -0
- package/lib/components/about-modal/defs.js +10 -0
- package/lib/components/about-modal/defs.js.map +1 -0
- package/lib/components/about-modal/index.d.ts +9 -0
- package/lib/components/side-panel/side-panel.d.ts +87 -61
- package/lib/components/tearsheet/tearsheet.d.ts +87 -61
- package/lib/components/user-avatar/user-avatar.d.ts +92 -61
- package/lib/index.d.ts +1 -0
- package/package.json +17 -13
- package/scss/components/about-modal/about-modal.scss +117 -0
- package/scss/components/about-modal/story-styles.scss +34 -0
- package/scss/components/user-avatar/user-avatar.scss +17 -0
@@ -28,15 +28,20 @@ declare const CDSUseravatar_base: {
|
|
28
28
|
readonly offsetTop: number;
|
29
29
|
readonly offsetWidth: number;
|
30
30
|
outerText: string;
|
31
|
+
popover: string | null;
|
31
32
|
spellcheck: boolean;
|
32
33
|
title: string;
|
33
34
|
translate: boolean;
|
35
|
+
writingSuggestions: string;
|
34
36
|
attachInternals(): ElementInternals;
|
35
37
|
click(): void;
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
38
|
+
hidePopover(): void;
|
39
|
+
showPopover(): void;
|
40
|
+
togglePopover(force?: boolean): boolean;
|
41
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
42
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
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?: boolean | EventListenerOptions): void;
|
40
45
|
readonly attributes: NamedNodeMap;
|
41
46
|
readonly classList: DOMTokenList;
|
42
47
|
className: string;
|
@@ -44,7 +49,9 @@ declare const CDSUseravatar_base: {
|
|
44
49
|
readonly clientLeft: number;
|
45
50
|
readonly clientTop: number;
|
46
51
|
readonly clientWidth: number;
|
52
|
+
readonly currentCSSZoom: number;
|
47
53
|
id: string;
|
54
|
+
innerHTML: string;
|
48
55
|
readonly localName: string;
|
49
56
|
readonly namespaceURI: string | null;
|
50
57
|
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
@@ -61,9 +68,12 @@ declare const CDSUseravatar_base: {
|
|
61
68
|
slot: string;
|
62
69
|
readonly tagName: string;
|
63
70
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
64
|
-
|
65
|
-
closest<
|
71
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
72
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
73
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
74
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
66
75
|
closest<E extends Element = Element>(selectors: string): E | null;
|
76
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
67
77
|
getAttribute(qualifiedName: string): string | null;
|
68
78
|
getAttributeNS(namespace: string | null, localName: string): string | null;
|
69
79
|
getAttributeNames(): string[];
|
@@ -72,39 +82,44 @@ declare const CDSUseravatar_base: {
|
|
72
82
|
getBoundingClientRect(): DOMRect;
|
73
83
|
getClientRects(): DOMRectList;
|
74
84
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
75
|
-
getElementsByTagName<
|
76
|
-
getElementsByTagName<
|
85
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
86
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
87
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
88
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
77
89
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
78
90
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
79
91
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
92
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
80
93
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
94
|
+
getHTML(options?: GetHTMLOptions): string;
|
81
95
|
hasAttribute(qualifiedName: string): boolean;
|
82
96
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
83
97
|
hasAttributes(): boolean;
|
84
98
|
hasPointerCapture(pointerId: number): boolean;
|
85
99
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
86
|
-
insertAdjacentHTML(position: InsertPosition,
|
100
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
87
101
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
88
102
|
matches(selectors: string): boolean;
|
89
103
|
releasePointerCapture(pointerId: number): void;
|
90
104
|
removeAttribute(qualifiedName: string): void;
|
91
105
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
92
106
|
removeAttributeNode(attr: Attr): Attr;
|
93
|
-
requestFullscreen(options?: FullscreenOptions
|
94
|
-
requestPointerLock(): void
|
95
|
-
scroll(options?: ScrollToOptions
|
107
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
108
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
109
|
+
scroll(options?: ScrollToOptions): void;
|
96
110
|
scroll(x: number, y: number): void;
|
97
|
-
scrollBy(options?: ScrollToOptions
|
111
|
+
scrollBy(options?: ScrollToOptions): void;
|
98
112
|
scrollBy(x: number, y: number): void;
|
99
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions
|
100
|
-
scrollTo(options?: ScrollToOptions
|
113
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
114
|
+
scrollTo(options?: ScrollToOptions): void;
|
101
115
|
scrollTo(x: number, y: number): void;
|
102
116
|
setAttribute(qualifiedName: string, value: string): void;
|
103
117
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
104
118
|
setAttributeNode(attr: Attr): Attr | null;
|
105
119
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
120
|
+
setHTMLUnsafe(html: string): void;
|
106
121
|
setPointerCapture(pointerId: number): void;
|
107
|
-
toggleAttribute(qualifiedName: string, force?: boolean
|
122
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
108
123
|
webkitMatchesSelector(selectors: string): boolean;
|
109
124
|
readonly baseURI: string;
|
110
125
|
readonly childNodes: NodeListOf<ChildNode>;
|
@@ -120,41 +135,43 @@ declare const CDSUseravatar_base: {
|
|
120
135
|
readonly previousSibling: ChildNode | null;
|
121
136
|
textContent: string | null;
|
122
137
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
123
|
-
cloneNode(deep?: boolean
|
138
|
+
cloneNode(deep?: boolean): Node;
|
124
139
|
compareDocumentPosition(other: Node): number;
|
125
140
|
contains(other: Node | null): boolean;
|
126
|
-
getRootNode(options?: GetRootNodeOptions
|
141
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
127
142
|
hasChildNodes(): boolean;
|
128
|
-
insertBefore<
|
143
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
129
144
|
isDefaultNamespace(namespace: string | null): boolean;
|
130
145
|
isEqualNode(otherNode: Node | null): boolean;
|
131
146
|
isSameNode(otherNode: Node | null): boolean;
|
132
147
|
lookupNamespaceURI(prefix: string | null): string | null;
|
133
148
|
lookupPrefix(namespace: string | null): string | null;
|
134
149
|
normalize(): void;
|
135
|
-
removeChild<
|
136
|
-
replaceChild<
|
137
|
-
readonly
|
138
|
-
readonly
|
139
|
-
readonly
|
140
|
-
readonly
|
141
|
-
readonly
|
142
|
-
readonly
|
143
|
-
readonly
|
144
|
-
readonly
|
145
|
-
readonly
|
146
|
-
readonly
|
147
|
-
readonly
|
148
|
-
readonly
|
149
|
-
readonly
|
150
|
-
readonly
|
151
|
-
readonly
|
152
|
-
readonly
|
153
|
-
readonly
|
154
|
-
readonly
|
150
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
151
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
152
|
+
readonly ELEMENT_NODE: 1;
|
153
|
+
readonly ATTRIBUTE_NODE: 2;
|
154
|
+
readonly TEXT_NODE: 3;
|
155
|
+
readonly CDATA_SECTION_NODE: 4;
|
156
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
157
|
+
readonly ENTITY_NODE: 6;
|
158
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
159
|
+
readonly COMMENT_NODE: 8;
|
160
|
+
readonly DOCUMENT_NODE: 9;
|
161
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
162
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
163
|
+
readonly NOTATION_NODE: 12;
|
164
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
165
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
166
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
167
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
168
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
169
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
155
170
|
dispatchEvent(event: Event): boolean;
|
156
171
|
ariaAtomic: string | null;
|
157
172
|
ariaAutoComplete: string | null;
|
173
|
+
ariaBrailleLabel: string | null;
|
174
|
+
ariaBrailleRoleDescription: string | null;
|
158
175
|
ariaBusy: string | null;
|
159
176
|
ariaChecked: string | null;
|
160
177
|
ariaColCount: string | null;
|
@@ -162,6 +179,7 @@ declare const CDSUseravatar_base: {
|
|
162
179
|
ariaColIndexText: string | null;
|
163
180
|
ariaColSpan: string | null;
|
164
181
|
ariaCurrent: string | null;
|
182
|
+
ariaDescription: string | null;
|
165
183
|
ariaDisabled: string | null;
|
166
184
|
ariaExpanded: string | null;
|
167
185
|
ariaHasPopup: string | null;
|
@@ -193,32 +211,33 @@ declare const CDSUseravatar_base: {
|
|
193
211
|
ariaValueNow: string | null;
|
194
212
|
ariaValueText: string | null;
|
195
213
|
role: string | null;
|
196
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions
|
197
|
-
getAnimations(options?: GetAnimationsOptions
|
198
|
-
after(...nodes: (
|
199
|
-
before(...nodes: (
|
214
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
215
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
216
|
+
after(...nodes: (Node | string)[]): void;
|
217
|
+
before(...nodes: (Node | string)[]): void;
|
200
218
|
remove(): void;
|
201
|
-
replaceWith(...nodes: (
|
202
|
-
innerHTML: string;
|
219
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
203
220
|
readonly nextElementSibling: Element | null;
|
204
221
|
readonly previousElementSibling: Element | null;
|
205
222
|
readonly childElementCount: number;
|
206
223
|
readonly children: HTMLCollection;
|
207
224
|
readonly firstElementChild: Element | null;
|
208
225
|
readonly lastElementChild: Element | null;
|
209
|
-
append(...nodes: (
|
210
|
-
prepend(...nodes: (
|
211
|
-
querySelector<
|
212
|
-
querySelector<
|
213
|
-
querySelector<
|
214
|
-
|
215
|
-
|
216
|
-
querySelectorAll<
|
217
|
-
|
226
|
+
append(...nodes: (Node | string)[]): void;
|
227
|
+
prepend(...nodes: (Node | string)[]): void;
|
228
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
229
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
230
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
231
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
232
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
233
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
234
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
235
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
236
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
237
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
238
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
218
239
|
readonly assignedSlot: HTMLSlotElement | null;
|
219
|
-
|
220
|
-
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
221
|
-
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
240
|
+
readonly attributeStyleMap: StylePropertyMap;
|
222
241
|
readonly style: CSSStyleDeclaration;
|
223
242
|
contentEditable: string;
|
224
243
|
enterKeyHint: string;
|
@@ -231,6 +250,7 @@ declare const CDSUseravatar_base: {
|
|
231
250
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
232
251
|
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
233
252
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
253
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
234
254
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
235
255
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
236
256
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
@@ -238,8 +258,12 @@ declare const CDSUseravatar_base: {
|
|
238
258
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
239
259
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
240
260
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
261
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
241
262
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
263
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
264
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
242
265
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
266
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
243
267
|
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
244
268
|
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
245
269
|
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
@@ -272,6 +296,7 @@ declare const CDSUseravatar_base: {
|
|
272
296
|
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
273
297
|
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
274
298
|
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
299
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
275
300
|
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
276
301
|
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
277
302
|
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
@@ -283,11 +308,12 @@ declare const CDSUseravatar_base: {
|
|
283
308
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
284
309
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
285
310
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
286
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent
|
311
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
287
312
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
288
313
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
289
314
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
290
315
|
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
316
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
291
317
|
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
292
318
|
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
293
319
|
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
@@ -317,19 +343,24 @@ declare const CDSUseravatar_base: {
|
|
317
343
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
318
344
|
autofocus: boolean;
|
319
345
|
readonly dataset: DOMStringMap;
|
320
|
-
nonce?: string
|
346
|
+
nonce?: string;
|
321
347
|
tabIndex: number;
|
322
348
|
blur(): void;
|
323
|
-
focus(options?: FocusOptions
|
349
|
+
focus(options?: FocusOptions): void;
|
324
350
|
};
|
325
351
|
_hostListeners: {
|
326
352
|
[listenerName: string]: {
|
327
353
|
[type: string]: {
|
328
|
-
options?: boolean | AddEventListenerOptions
|
354
|
+
options?: boolean | AddEventListenerOptions;
|
329
355
|
};
|
330
356
|
};
|
331
357
|
};
|
332
358
|
} & typeof LitElement;
|
359
|
+
/**
|
360
|
+
* Useravatar.
|
361
|
+
*
|
362
|
+
* @element c4p-user-avatar
|
363
|
+
* */
|
333
364
|
declare class CDSUseravatar extends CDSUseravatar_base {
|
334
365
|
/**
|
335
366
|
* Specify the text of the tooltip.
|
package/lib/index.d.ts
CHANGED
@@ -8,4 +8,5 @@
|
|
8
8
|
*/
|
9
9
|
export { default as CDSSidePanel } from './components/side-panel/side-panel';
|
10
10
|
export { default as CDSTearsheet } from './components/tearsheet/tearsheet';
|
11
|
+
export { default as CDSAboutModal } from './components/about-modal/about-modal';
|
11
12
|
export { default as CDSUseravatar } from './components/user-avatar/user-avatar';
|
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.11.0-rc.1",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "es/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -15,6 +15,7 @@
|
|
15
15
|
"files": [
|
16
16
|
"custom-elements.json",
|
17
17
|
"es/**/*",
|
18
|
+
"es-custom/**/*",
|
18
19
|
"lib/**/*",
|
19
20
|
"scss/**/*"
|
20
21
|
],
|
@@ -24,6 +25,7 @@
|
|
24
25
|
},
|
25
26
|
"exports": {
|
26
27
|
"./es/*": "./es/*",
|
28
|
+
"./es-custom/*": "./es-custom/*",
|
27
29
|
"./lib/*": "./lib/*",
|
28
30
|
"./dist/*": "./dist/*",
|
29
31
|
"./scss/*": "./scss/*",
|
@@ -49,29 +51,31 @@
|
|
49
51
|
"coverage": "vitest run --coverage"
|
50
52
|
},
|
51
53
|
"dependencies": {
|
52
|
-
"@carbon/ibm-products-styles": "^2.
|
54
|
+
"@carbon/ibm-products-styles": "^2.58.0-rc.0",
|
53
55
|
"@carbon/styles": "1.75.0",
|
54
|
-
"@carbon/web-components": "2.
|
56
|
+
"@carbon/web-components": "2.25.0",
|
55
57
|
"lit": "^3.1.0"
|
56
58
|
},
|
57
59
|
"devDependencies": {
|
60
|
+
"@blockquote/rollup-plugin-externalize-source-dependencies": "^1.0.0",
|
58
61
|
"@carbon/icon-helpers": "^10.54.0",
|
59
62
|
"@carbon/icons": "^11.55.0",
|
60
63
|
"@carbon/motion": "^11.24.0",
|
61
64
|
"@mordech/vite-lit-loader": "^0.35.0",
|
65
|
+
"@open-wc/testing": "^4.0.0",
|
62
66
|
"@rollup/plugin-alias": "^5.1.1",
|
63
67
|
"@rollup/plugin-commonjs": "^28.0.1",
|
64
68
|
"@rollup/plugin-json": "^6.1.0",
|
65
69
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
66
70
|
"@rollup/plugin-typescript": "^12.1.1",
|
67
|
-
"@storybook/addon-essentials": "^8.
|
68
|
-
"@storybook/addon-links": "^8.
|
69
|
-
"@storybook/addon-storysource": "^8.
|
70
|
-
"@storybook/addon-toolbars": "^8.
|
71
|
-
"@storybook/blocks": "^8.
|
72
|
-
"@storybook/theming": "^8.
|
73
|
-
"@storybook/web-components": "^8.
|
74
|
-
"@storybook/web-components-vite": "^8.
|
71
|
+
"@storybook/addon-essentials": "^8.6.2",
|
72
|
+
"@storybook/addon-links": "^8.6.2",
|
73
|
+
"@storybook/addon-storysource": "^8.6.2",
|
74
|
+
"@storybook/addon-toolbars": "^8.6.2",
|
75
|
+
"@storybook/blocks": "^8.6.2",
|
76
|
+
"@storybook/theming": "^8.6.2",
|
77
|
+
"@storybook/web-components": "^8.6.2",
|
78
|
+
"@storybook/web-components-vite": "^8.6.2",
|
75
79
|
"@types/jest": "^29.5.13",
|
76
80
|
"@vitest/browser": "^3.0.1",
|
77
81
|
"@vitest/coverage-v8": "^3.0.1",
|
@@ -88,7 +92,7 @@
|
|
88
92
|
"rollup": "^4.27.3",
|
89
93
|
"rollup-plugin-copy": "^3.5.0",
|
90
94
|
"sass": "^1.80.6",
|
91
|
-
"storybook": "^8.
|
95
|
+
"storybook": "^8.6.2",
|
92
96
|
"storybook-addon-accessibility-checker": "^3.1.61-rc.3",
|
93
97
|
"tslib": "^2.8.1",
|
94
98
|
"typescript": "^5.5.3",
|
@@ -96,5 +100,5 @@
|
|
96
100
|
"vitest": "^3.0.1",
|
97
101
|
"web-component-analyzer": "2.0.0"
|
98
102
|
},
|
99
|
-
"gitHead": "
|
103
|
+
"gitHead": "1499923b4862e354b2b438c1f596cea2d516f6dd"
|
100
104
|
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright IBM Corp. 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
|
+
/* Other Carbon settings. */
|
11
|
+
@use '@carbon/styles' as styles;
|
12
|
+
@use '@carbon/styles/scss/reset';
|
13
|
+
@use '@carbon/styles/scss/breakpoint' as *;
|
14
|
+
@use '@carbon/styles/scss/config' as *;
|
15
|
+
@use '@carbon/styles/scss/motion' as *;
|
16
|
+
@use '@carbon/styles/scss/spacing' as *;
|
17
|
+
@use '@carbon/themes/scss/themes';
|
18
|
+
@use '@carbon/styles/scss/theme' as *;
|
19
|
+
@use '@carbon/styles/scss/type';
|
20
|
+
@use '@carbon/styles/scss/utilities';
|
21
|
+
@use '@carbon/styles/scss/utilities/ai-gradient' as *;
|
22
|
+
@use '@carbon/styles/scss/components/modal' as *;
|
23
|
+
@use '@carbon/styles/scss/utilities/convert' as *;
|
24
|
+
@use 'sass:map';
|
25
|
+
|
26
|
+
$prefix: 'c4p';
|
27
|
+
$carbon-prefix: 'cds';
|
28
|
+
|
29
|
+
@use '@carbon/ibm-products-styles/scss/components/AboutModal/index' as *;
|
30
|
+
|
31
|
+
:host(#{$prefix}-about-modal) {
|
32
|
+
.#{$prefix}--about-modal__logo {
|
33
|
+
margin: $spacing-05 $spacing-05 $spacing-07 $spacing-05;
|
34
|
+
}
|
35
|
+
#{$carbon-prefix}-modal-header {
|
36
|
+
padding: 0 20% 0 $spacing-05;
|
37
|
+
grid-row: auto;
|
38
|
+
margin-block-end: 0;
|
39
|
+
}
|
40
|
+
#{$carbon-prefix}-modal-body {
|
41
|
+
@include type.type-style('body-compact-02');
|
42
|
+
|
43
|
+
overflow: hidden auto;
|
44
|
+
grid-row: auto;
|
45
|
+
min-block-size: $spacing-10;
|
46
|
+
padding-block-start: 0;
|
47
|
+
padding-inline: $spacing-05 20%;
|
48
|
+
&:not(.#{$prefix}--about-modal-scroll-content) {
|
49
|
+
margin-block-end: $spacing-06;
|
50
|
+
padding-block-end: 0;
|
51
|
+
}
|
52
|
+
&.#{$prefix}--about-modal-scroll-content {
|
53
|
+
@extend .#{$carbon-prefix}--modal-scroll-content;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
#{$carbon-prefix}-modal-heading {
|
58
|
+
@include type.type-style('heading-04');
|
59
|
+
|
60
|
+
color: $text-primary;
|
61
|
+
margin-block-end: $spacing-02;
|
62
|
+
}
|
63
|
+
|
64
|
+
.#{$prefix}--about-modal__version {
|
65
|
+
color: $text-secondary;
|
66
|
+
}
|
67
|
+
|
68
|
+
.#{$prefix}--about-modal__content,
|
69
|
+
.#{$prefix}--about-modal__copyright-text {
|
70
|
+
@include type.type-style('label-01');
|
71
|
+
|
72
|
+
color: $text-secondary;
|
73
|
+
margin-block: $spacing-06 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
.#{$prefix}--about-modal__copyright-text {
|
77
|
+
margin-block-start: $spacing-05;
|
78
|
+
}
|
79
|
+
|
80
|
+
.#{$prefix}--about-modal__content:first-child,
|
81
|
+
.#{$prefix}--about-modal__copyright-text:first-child {
|
82
|
+
margin-block-start: $spacing-07;
|
83
|
+
}
|
84
|
+
#{$carbon-prefix}-link {
|
85
|
+
display: inline-flex;
|
86
|
+
}
|
87
|
+
.#{$prefix}--about-modal__links-container {
|
88
|
+
@include type.type-style('body-compact-01');
|
89
|
+
|
90
|
+
margin-block-start: $spacing-06;
|
91
|
+
#{$carbon-prefix}-link + #{$carbon-prefix}-link {
|
92
|
+
border-inline-start: 1px solid $border-strong-01;
|
93
|
+
margin-inline-start: $spacing-03;
|
94
|
+
padding-inline-start: $spacing-03;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
#{$carbon-prefix}-modal-footer {
|
98
|
+
@include styles.theme(styles.$g100);
|
99
|
+
|
100
|
+
display: block;
|
101
|
+
padding: $spacing-05;
|
102
|
+
background-color: $layer-02;
|
103
|
+
block-size: auto;
|
104
|
+
.#{$prefix}--about-modal__footer-label {
|
105
|
+
@include type.type-style('label-01');
|
106
|
+
|
107
|
+
color: $text-secondary;
|
108
|
+
margin-block-end: $spacing-02;
|
109
|
+
}
|
110
|
+
.#{$prefix}--about-modal__footer--tech-logo {
|
111
|
+
block-size: $spacing-06;
|
112
|
+
inline-size: $spacing-06;
|
113
|
+
margin-inline-end: $spacing-03;
|
114
|
+
object-fit: contain;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright IBM Corp. 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
|
+
@use '@carbon/styles/scss/spacing' as *;
|
8
|
+
@use '@carbon/styles/scss/config' as *;
|
9
|
+
|
10
|
+
$story-prefix: 'about-modal-stories__';
|
11
|
+
|
12
|
+
.#{$story-prefix}body-content {
|
13
|
+
display: flex;
|
14
|
+
flex-direction: column;
|
15
|
+
padding: $spacing-05;
|
16
|
+
gap: $spacing-05;
|
17
|
+
}
|
18
|
+
|
19
|
+
.#{$story-prefix}story-container {
|
20
|
+
position: fixed;
|
21
|
+
display: grid;
|
22
|
+
block-size: 100vh;
|
23
|
+
grid-template-rows: 3rem 1fr;
|
24
|
+
inline-size: 100vw;
|
25
|
+
inset-block-start: 0;
|
26
|
+
inset-inline-start: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
.#{$story-prefix}story-content {
|
30
|
+
position: relative;
|
31
|
+
display: flex;
|
32
|
+
align-items: center;
|
33
|
+
justify-content: center;
|
34
|
+
}
|
@@ -31,6 +31,23 @@ $block-class: #{$prefix}--user-avatar;
|
|
31
31
|
@extend .#{$block-class};
|
32
32
|
@extend .#{$block-class}__tooltip;
|
33
33
|
}
|
34
|
+
|
35
|
+
:host(#{$prefix}-user-avatar) .#{$block-class}__tooltip-trigger {
|
36
|
+
padding: 0;
|
37
|
+
border: 0;
|
38
|
+
background: none;
|
39
|
+
outline: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
:host(#{$prefix}-user-avatar) .#{$block-class}__tooltip-content {
|
43
|
+
--cds-tooltip-padding-block: #{$spacing-01};
|
44
|
+
|
45
|
+
&:focus-within {
|
46
|
+
outline: $spacing-01 solid $focus;
|
47
|
+
outline-offset: 1px;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
34
51
|
@mixin setBgColor($color) {
|
35
52
|
// stylelint-disable-next-line carbon/theme-use
|
36
53
|
background-color: $color;
|