@carbon/ibm-products-web-components 0.9.0-rc.0 → 0.10.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/es/components/user-avatar/index.d.ts +9 -0
- package/es/components/user-avatar/index.js +9 -0
- package/es/components/user-avatar/index.js.map +1 -0
- package/es/components/user-avatar/user-avatar.d.ts +374 -0
- package/es/components/user-avatar/user-avatar.js +149 -0
- package/es/components/user-avatar/user-avatar.js.map +1 -0
- package/es/components/user-avatar/user-avatar.scss.js +13 -0
- package/es/components/user-avatar/user-avatar.scss.js.map +1 -0
- 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/lib/components/user-avatar/index.d.ts +9 -0
- package/lib/components/user-avatar/user-avatar.d.ts +374 -0
- package/lib/index.d.ts +1 -0
- package/package.json +6 -6
- package/scss/components/user-avatar/story-styles.scss +10 -0
- package/scss/components/user-avatar/user-avatar.scss +74 -0
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
         | 
| @@ -0,0 +1,374 @@ | |
| 1 | 
            +
            /**
         | 
| 2 | 
            +
             * @license
         | 
| 3 | 
            +
             *
         | 
| 4 | 
            +
             * Copyright IBM Corp. 2025, 2025
         | 
| 5 | 
            +
             *
         | 
| 6 | 
            +
             * This source code is licensed under the Apache-2.0 license found in the
         | 
| 7 | 
            +
             * LICENSE file in the root directory of this source tree.
         | 
| 8 | 
            +
             */
         | 
| 9 | 
            +
            import { LitElement } from 'lit';
         | 
| 10 | 
            +
            import '@carbon/web-components/es/components/tooltip/index.js';
         | 
| 11 | 
            +
            declare const CDSUseravatar_base: {
         | 
| 12 | 
            +
                new (...args: any[]): {
         | 
| 13 | 
            +
                    _handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
         | 
| 14 | 
            +
                    connectedCallback(): void;
         | 
| 15 | 
            +
                    disconnectedCallback(): void;
         | 
| 16 | 
            +
                    accessKey: string;
         | 
| 17 | 
            +
                    readonly accessKeyLabel: string;
         | 
| 18 | 
            +
                    autocapitalize: string;
         | 
| 19 | 
            +
                    dir: string;
         | 
| 20 | 
            +
                    draggable: boolean;
         | 
| 21 | 
            +
                    hidden: boolean;
         | 
| 22 | 
            +
                    inert: boolean;
         | 
| 23 | 
            +
                    innerText: string;
         | 
| 24 | 
            +
                    lang: string;
         | 
| 25 | 
            +
                    readonly offsetHeight: number;
         | 
| 26 | 
            +
                    readonly offsetLeft: number;
         | 
| 27 | 
            +
                    readonly offsetParent: Element | null;
         | 
| 28 | 
            +
                    readonly offsetTop: number;
         | 
| 29 | 
            +
                    readonly offsetWidth: number;
         | 
| 30 | 
            +
                    outerText: string;
         | 
| 31 | 
            +
                    spellcheck: boolean;
         | 
| 32 | 
            +
                    title: string;
         | 
| 33 | 
            +
                    translate: boolean;
         | 
| 34 | 
            +
                    attachInternals(): ElementInternals;
         | 
| 35 | 
            +
                    click(): void;
         | 
| 36 | 
            +
                    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
         | 
| 37 | 
            +
                    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
         | 
| 38 | 
            +
                    removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
         | 
| 39 | 
            +
                    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
         | 
| 40 | 
            +
                    readonly attributes: NamedNodeMap;
         | 
| 41 | 
            +
                    readonly classList: DOMTokenList;
         | 
| 42 | 
            +
                    className: string;
         | 
| 43 | 
            +
                    readonly clientHeight: number;
         | 
| 44 | 
            +
                    readonly clientLeft: number;
         | 
| 45 | 
            +
                    readonly clientTop: number;
         | 
| 46 | 
            +
                    readonly clientWidth: number;
         | 
| 47 | 
            +
                    id: string;
         | 
| 48 | 
            +
                    readonly localName: string;
         | 
| 49 | 
            +
                    readonly namespaceURI: string | null;
         | 
| 50 | 
            +
                    onfullscreenchange: ((this: Element, ev: Event) => any) | null;
         | 
| 51 | 
            +
                    onfullscreenerror: ((this: Element, ev: Event) => any) | null;
         | 
| 52 | 
            +
                    outerHTML: string;
         | 
| 53 | 
            +
                    readonly ownerDocument: Document;
         | 
| 54 | 
            +
                    readonly part: DOMTokenList;
         | 
| 55 | 
            +
                    readonly prefix: string | null;
         | 
| 56 | 
            +
                    readonly scrollHeight: number;
         | 
| 57 | 
            +
                    scrollLeft: number;
         | 
| 58 | 
            +
                    scrollTop: number;
         | 
| 59 | 
            +
                    readonly scrollWidth: number;
         | 
| 60 | 
            +
                    readonly shadowRoot: ShadowRoot | null;
         | 
| 61 | 
            +
                    slot: string;
         | 
| 62 | 
            +
                    readonly tagName: string;
         | 
| 63 | 
            +
                    attachShadow(init: ShadowRootInit): ShadowRoot;
         | 
| 64 | 
            +
                    closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
         | 
| 65 | 
            +
                    closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
         | 
| 66 | 
            +
                    closest<E extends Element = Element>(selectors: string): E | null;
         | 
| 67 | 
            +
                    getAttribute(qualifiedName: string): string | null;
         | 
| 68 | 
            +
                    getAttributeNS(namespace: string | null, localName: string): string | null;
         | 
| 69 | 
            +
                    getAttributeNames(): string[];
         | 
| 70 | 
            +
                    getAttributeNode(qualifiedName: string): Attr | null;
         | 
| 71 | 
            +
                    getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
         | 
| 72 | 
            +
                    getBoundingClientRect(): DOMRect;
         | 
| 73 | 
            +
                    getClientRects(): DOMRectList;
         | 
| 74 | 
            +
                    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
         | 
| 75 | 
            +
                    getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
         | 
| 76 | 
            +
                    getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
         | 
| 77 | 
            +
                    getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
         | 
| 78 | 
            +
                    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
         | 
| 79 | 
            +
                    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
         | 
| 80 | 
            +
                    getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
         | 
| 81 | 
            +
                    hasAttribute(qualifiedName: string): boolean;
         | 
| 82 | 
            +
                    hasAttributeNS(namespace: string | null, localName: string): boolean;
         | 
| 83 | 
            +
                    hasAttributes(): boolean;
         | 
| 84 | 
            +
                    hasPointerCapture(pointerId: number): boolean;
         | 
| 85 | 
            +
                    insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
         | 
| 86 | 
            +
                    insertAdjacentHTML(position: InsertPosition, text: string): void;
         | 
| 87 | 
            +
                    insertAdjacentText(where: InsertPosition, data: string): void;
         | 
| 88 | 
            +
                    matches(selectors: string): boolean;
         | 
| 89 | 
            +
                    releasePointerCapture(pointerId: number): void;
         | 
| 90 | 
            +
                    removeAttribute(qualifiedName: string): void;
         | 
| 91 | 
            +
                    removeAttributeNS(namespace: string | null, localName: string): void;
         | 
| 92 | 
            +
                    removeAttributeNode(attr: Attr): Attr;
         | 
| 93 | 
            +
                    requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
         | 
| 94 | 
            +
                    requestPointerLock(): void;
         | 
| 95 | 
            +
                    scroll(options?: ScrollToOptions | undefined): void;
         | 
| 96 | 
            +
                    scroll(x: number, y: number): void;
         | 
| 97 | 
            +
                    scrollBy(options?: ScrollToOptions | undefined): void;
         | 
| 98 | 
            +
                    scrollBy(x: number, y: number): void;
         | 
| 99 | 
            +
                    scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
         | 
| 100 | 
            +
                    scrollTo(options?: ScrollToOptions | undefined): void;
         | 
| 101 | 
            +
                    scrollTo(x: number, y: number): void;
         | 
| 102 | 
            +
                    setAttribute(qualifiedName: string, value: string): void;
         | 
| 103 | 
            +
                    setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
         | 
| 104 | 
            +
                    setAttributeNode(attr: Attr): Attr | null;
         | 
| 105 | 
            +
                    setAttributeNodeNS(attr: Attr): Attr | null;
         | 
| 106 | 
            +
                    setPointerCapture(pointerId: number): void;
         | 
| 107 | 
            +
                    toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
         | 
| 108 | 
            +
                    webkitMatchesSelector(selectors: string): boolean;
         | 
| 109 | 
            +
                    readonly baseURI: string;
         | 
| 110 | 
            +
                    readonly childNodes: NodeListOf<ChildNode>;
         | 
| 111 | 
            +
                    readonly firstChild: ChildNode | null;
         | 
| 112 | 
            +
                    readonly isConnected: boolean;
         | 
| 113 | 
            +
                    readonly lastChild: ChildNode | null;
         | 
| 114 | 
            +
                    readonly nextSibling: ChildNode | null;
         | 
| 115 | 
            +
                    readonly nodeName: string;
         | 
| 116 | 
            +
                    readonly nodeType: number;
         | 
| 117 | 
            +
                    nodeValue: string | null;
         | 
| 118 | 
            +
                    readonly parentElement: HTMLElement | null;
         | 
| 119 | 
            +
                    readonly parentNode: ParentNode | null;
         | 
| 120 | 
            +
                    readonly previousSibling: ChildNode | null;
         | 
| 121 | 
            +
                    textContent: string | null;
         | 
| 122 | 
            +
                    appendChild<T_1 extends Node>(node: T_1): T_1;
         | 
| 123 | 
            +
                    cloneNode(deep?: boolean | undefined): Node;
         | 
| 124 | 
            +
                    compareDocumentPosition(other: Node): number;
         | 
| 125 | 
            +
                    contains(other: Node | null): boolean;
         | 
| 126 | 
            +
                    getRootNode(options?: GetRootNodeOptions | undefined): Node;
         | 
| 127 | 
            +
                    hasChildNodes(): boolean;
         | 
| 128 | 
            +
                    insertBefore<T_2 extends Node>(node: T_2, child: Node | null): T_2;
         | 
| 129 | 
            +
                    isDefaultNamespace(namespace: string | null): boolean;
         | 
| 130 | 
            +
                    isEqualNode(otherNode: Node | null): boolean;
         | 
| 131 | 
            +
                    isSameNode(otherNode: Node | null): boolean;
         | 
| 132 | 
            +
                    lookupNamespaceURI(prefix: string | null): string | null;
         | 
| 133 | 
            +
                    lookupPrefix(namespace: string | null): string | null;
         | 
| 134 | 
            +
                    normalize(): void;
         | 
| 135 | 
            +
                    removeChild<T_3 extends Node>(child: T_3): T_3;
         | 
| 136 | 
            +
                    replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
         | 
| 137 | 
            +
                    readonly ATTRIBUTE_NODE: number;
         | 
| 138 | 
            +
                    readonly CDATA_SECTION_NODE: number;
         | 
| 139 | 
            +
                    readonly COMMENT_NODE: number;
         | 
| 140 | 
            +
                    readonly DOCUMENT_FRAGMENT_NODE: number;
         | 
| 141 | 
            +
                    readonly DOCUMENT_NODE: number;
         | 
| 142 | 
            +
                    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
         | 
| 143 | 
            +
                    readonly DOCUMENT_POSITION_CONTAINS: number;
         | 
| 144 | 
            +
                    readonly DOCUMENT_POSITION_DISCONNECTED: number;
         | 
| 145 | 
            +
                    readonly DOCUMENT_POSITION_FOLLOWING: number;
         | 
| 146 | 
            +
                    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
         | 
| 147 | 
            +
                    readonly DOCUMENT_POSITION_PRECEDING: number;
         | 
| 148 | 
            +
                    readonly DOCUMENT_TYPE_NODE: number;
         | 
| 149 | 
            +
                    readonly ELEMENT_NODE: number;
         | 
| 150 | 
            +
                    readonly ENTITY_NODE: number;
         | 
| 151 | 
            +
                    readonly ENTITY_REFERENCE_NODE: number;
         | 
| 152 | 
            +
                    readonly NOTATION_NODE: number;
         | 
| 153 | 
            +
                    readonly PROCESSING_INSTRUCTION_NODE: number;
         | 
| 154 | 
            +
                    readonly TEXT_NODE: number;
         | 
| 155 | 
            +
                    dispatchEvent(event: Event): boolean;
         | 
| 156 | 
            +
                    ariaAtomic: string | null;
         | 
| 157 | 
            +
                    ariaAutoComplete: string | null;
         | 
| 158 | 
            +
                    ariaBusy: string | null;
         | 
| 159 | 
            +
                    ariaChecked: string | null;
         | 
| 160 | 
            +
                    ariaColCount: string | null;
         | 
| 161 | 
            +
                    ariaColIndex: string | null;
         | 
| 162 | 
            +
                    ariaColIndexText: string | null;
         | 
| 163 | 
            +
                    ariaColSpan: string | null;
         | 
| 164 | 
            +
                    ariaCurrent: string | null;
         | 
| 165 | 
            +
                    ariaDisabled: string | null;
         | 
| 166 | 
            +
                    ariaExpanded: string | null;
         | 
| 167 | 
            +
                    ariaHasPopup: string | null;
         | 
| 168 | 
            +
                    ariaHidden: string | null;
         | 
| 169 | 
            +
                    ariaInvalid: string | null;
         | 
| 170 | 
            +
                    ariaKeyShortcuts: string | null;
         | 
| 171 | 
            +
                    ariaLabel: string | null;
         | 
| 172 | 
            +
                    ariaLevel: string | null;
         | 
| 173 | 
            +
                    ariaLive: string | null;
         | 
| 174 | 
            +
                    ariaModal: string | null;
         | 
| 175 | 
            +
                    ariaMultiLine: string | null;
         | 
| 176 | 
            +
                    ariaMultiSelectable: string | null;
         | 
| 177 | 
            +
                    ariaOrientation: string | null;
         | 
| 178 | 
            +
                    ariaPlaceholder: string | null;
         | 
| 179 | 
            +
                    ariaPosInSet: string | null;
         | 
| 180 | 
            +
                    ariaPressed: string | null;
         | 
| 181 | 
            +
                    ariaReadOnly: string | null;
         | 
| 182 | 
            +
                    ariaRequired: string | null;
         | 
| 183 | 
            +
                    ariaRoleDescription: string | null;
         | 
| 184 | 
            +
                    ariaRowCount: string | null;
         | 
| 185 | 
            +
                    ariaRowIndex: string | null;
         | 
| 186 | 
            +
                    ariaRowIndexText: string | null;
         | 
| 187 | 
            +
                    ariaRowSpan: string | null;
         | 
| 188 | 
            +
                    ariaSelected: string | null;
         | 
| 189 | 
            +
                    ariaSetSize: string | null;
         | 
| 190 | 
            +
                    ariaSort: string | null;
         | 
| 191 | 
            +
                    ariaValueMax: string | null;
         | 
| 192 | 
            +
                    ariaValueMin: string | null;
         | 
| 193 | 
            +
                    ariaValueNow: string | null;
         | 
| 194 | 
            +
                    ariaValueText: string | null;
         | 
| 195 | 
            +
                    role: string | null;
         | 
| 196 | 
            +
                    animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
         | 
| 197 | 
            +
                    getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
         | 
| 198 | 
            +
                    after(...nodes: (string | Node)[]): void;
         | 
| 199 | 
            +
                    before(...nodes: (string | Node)[]): void;
         | 
| 200 | 
            +
                    remove(): void;
         | 
| 201 | 
            +
                    replaceWith(...nodes: (string | Node)[]): void;
         | 
| 202 | 
            +
                    innerHTML: string;
         | 
| 203 | 
            +
                    readonly nextElementSibling: Element | null;
         | 
| 204 | 
            +
                    readonly previousElementSibling: Element | null;
         | 
| 205 | 
            +
                    readonly childElementCount: number;
         | 
| 206 | 
            +
                    readonly children: HTMLCollection;
         | 
| 207 | 
            +
                    readonly firstElementChild: Element | null;
         | 
| 208 | 
            +
                    readonly lastElementChild: Element | null;
         | 
| 209 | 
            +
                    append(...nodes: (string | Node)[]): void;
         | 
| 210 | 
            +
                    prepend(...nodes: (string | Node)[]): void;
         | 
| 211 | 
            +
                    querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
         | 
| 212 | 
            +
                    querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
         | 
| 213 | 
            +
                    querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
         | 
| 214 | 
            +
                    querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
         | 
| 215 | 
            +
                    querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
         | 
| 216 | 
            +
                    querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
         | 
| 217 | 
            +
                    replaceChildren(...nodes: (string | Node)[]): void;
         | 
| 218 | 
            +
                    readonly assignedSlot: HTMLSlotElement | null;
         | 
| 219 | 
            +
                    oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
         | 
| 220 | 
            +
                    oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
         | 
| 221 | 
            +
                    onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
         | 
| 222 | 
            +
                    readonly style: CSSStyleDeclaration;
         | 
| 223 | 
            +
                    contentEditable: string;
         | 
| 224 | 
            +
                    enterKeyHint: string;
         | 
| 225 | 
            +
                    inputMode: string;
         | 
| 226 | 
            +
                    readonly isContentEditable: boolean;
         | 
| 227 | 
            +
                    onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
         | 
| 228 | 
            +
                    onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
         | 
| 229 | 
            +
                    onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
         | 
| 230 | 
            +
                    onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
         | 
| 231 | 
            +
                    onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
         | 
| 232 | 
            +
                    onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 233 | 
            +
                    onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
         | 
| 234 | 
            +
                    onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
         | 
| 235 | 
            +
                    oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 236 | 
            +
                    oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 237 | 
            +
                    oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 238 | 
            +
                    onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 239 | 
            +
                    onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 240 | 
            +
                    onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 241 | 
            +
                    oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 242 | 
            +
                    oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 243 | 
            +
                    ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 244 | 
            +
                    ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 245 | 
            +
                    ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 246 | 
            +
                    ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 247 | 
            +
                    ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 248 | 
            +
                    ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 249 | 
            +
                    ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 250 | 
            +
                    ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 251 | 
            +
                    ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 252 | 
            +
                    onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 253 | 
            +
                    onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 254 | 
            +
                    onerror: OnErrorEventHandler;
         | 
| 255 | 
            +
                    onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
         | 
| 256 | 
            +
                    onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
         | 
| 257 | 
            +
                    ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 258 | 
            +
                    oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 259 | 
            +
                    oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 260 | 
            +
                    onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
         | 
| 261 | 
            +
                    onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
         | 
| 262 | 
            +
                    onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
         | 
| 263 | 
            +
                    onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 264 | 
            +
                    onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 265 | 
            +
                    onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 266 | 
            +
                    onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 267 | 
            +
                    onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 268 | 
            +
                    onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 269 | 
            +
                    onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 270 | 
            +
                    onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 271 | 
            +
                    onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 272 | 
            +
                    onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 273 | 
            +
                    onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 274 | 
            +
                    onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 275 | 
            +
                    onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 276 | 
            +
                    onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 277 | 
            +
                    onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 278 | 
            +
                    onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 279 | 
            +
                    onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 280 | 
            +
                    onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 281 | 
            +
                    onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 282 | 
            +
                    onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 283 | 
            +
                    onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 284 | 
            +
                    onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 285 | 
            +
                    onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 286 | 
            +
                    onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
         | 
| 287 | 
            +
                    onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 288 | 
            +
                    onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 289 | 
            +
                    onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
         | 
| 290 | 
            +
                    onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 291 | 
            +
                    onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
         | 
| 292 | 
            +
                    onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 293 | 
            +
                    onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 294 | 
            +
                    onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 295 | 
            +
                    onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 296 | 
            +
                    onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 297 | 
            +
                    onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 298 | 
            +
                    onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 299 | 
            +
                    onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
         | 
| 300 | 
            +
                    onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 301 | 
            +
                    ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 302 | 
            +
                    ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 303 | 
            +
                    ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
         | 
| 304 | 
            +
                    ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
         | 
| 305 | 
            +
                    ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
         | 
| 306 | 
            +
                    ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
         | 
| 307 | 
            +
                    ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
         | 
| 308 | 
            +
                    ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
         | 
| 309 | 
            +
                    ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
         | 
| 310 | 
            +
                    ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
         | 
| 311 | 
            +
                    onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 312 | 
            +
                    onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 313 | 
            +
                    onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 314 | 
            +
                    onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 315 | 
            +
                    onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 316 | 
            +
                    onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 317 | 
            +
                    onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
         | 
| 318 | 
            +
                    autofocus: boolean;
         | 
| 319 | 
            +
                    readonly dataset: DOMStringMap;
         | 
| 320 | 
            +
                    nonce?: string | undefined;
         | 
| 321 | 
            +
                    tabIndex: number;
         | 
| 322 | 
            +
                    blur(): void;
         | 
| 323 | 
            +
                    focus(options?: FocusOptions | undefined): void;
         | 
| 324 | 
            +
                };
         | 
| 325 | 
            +
                _hostListeners: {
         | 
| 326 | 
            +
                    [listenerName: string]: {
         | 
| 327 | 
            +
                        [type: string]: {
         | 
| 328 | 
            +
                            options?: boolean | AddEventListenerOptions | undefined;
         | 
| 329 | 
            +
                        };
         | 
| 330 | 
            +
                    };
         | 
| 331 | 
            +
                };
         | 
| 332 | 
            +
            } & typeof LitElement;
         | 
| 333 | 
            +
            declare class CDSUseravatar extends CDSUseravatar_base {
         | 
| 334 | 
            +
                /**
         | 
| 335 | 
            +
                 * Specify the text of the tooltip.
         | 
| 336 | 
            +
                 * Can be string
         | 
| 337 | 
            +
                 */
         | 
| 338 | 
            +
                tooltipText: any;
         | 
| 339 | 
            +
                /**
         | 
| 340 | 
            +
                 * Specify the alignment of the tooltip.
         | 
| 341 | 
            +
                 */
         | 
| 342 | 
            +
                tooltipAlignment: string;
         | 
| 343 | 
            +
                /**
         | 
| 344 | 
            +
                 * When passing the name prop, either send the initials to be used or the user's full name. The first two capital letters of the user's name will be used as the name.
         | 
| 345 | 
            +
                 */
         | 
| 346 | 
            +
                name: any;
         | 
| 347 | 
            +
                /**
         | 
| 348 | 
            +
                 * Provide a custom icon to use if you need to use an icon other than the default one
         | 
| 349 | 
            +
                 */
         | 
| 350 | 
            +
                renderIcon: any;
         | 
| 351 | 
            +
                /**
         | 
| 352 | 
            +
                 * Set the size of the avatar circle
         | 
| 353 | 
            +
                 */
         | 
| 354 | 
            +
                size: any;
         | 
| 355 | 
            +
                /**
         | 
| 356 | 
            +
                 * When passing the image prop, supply a full path to the image to be displayed.
         | 
| 357 | 
            +
                 */
         | 
| 358 | 
            +
                image: any;
         | 
| 359 | 
            +
                /**
         | 
| 360 | 
            +
                 * When passing the image prop use the imageDescription prop to describe the image for screen reader.
         | 
| 361 | 
            +
                 */
         | 
| 362 | 
            +
                imageDescription: any;
         | 
| 363 | 
            +
                /**
         | 
| 364 | 
            +
                 * Provide the background color need to be set for UserAvatar.
         | 
| 365 | 
            +
                 */
         | 
| 366 | 
            +
                backgroundColor: string;
         | 
| 367 | 
            +
                /**
         | 
| 368 | 
            +
                 * Set theme in which the component will be rendered.
         | 
| 369 | 
            +
                 */
         | 
| 370 | 
            +
                theme: any;
         | 
| 371 | 
            +
                render(): import("lit-html").TemplateResult<1>;
         | 
| 372 | 
            +
                static styles: any;
         | 
| 373 | 
            +
            }
         | 
| 374 | 
            +
            export default CDSUseravatar;
         | 
| @@ -0,0 +1,149 @@ | |
| 1 | 
            +
            /**
         | 
| 2 | 
            +
             * Copyright IBM Corp. 2024
         | 
| 3 | 
            +
             *
         | 
| 4 | 
            +
             * This source code is licensed under the Apache-2.0 license found in the
         | 
| 5 | 
            +
             * LICENSE file in the root directory of this source tree.
         | 
| 6 | 
            +
             */
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            import { __decorate } from 'tslib';
         | 
| 9 | 
            +
            import { LitElement, html } from 'lit';
         | 
| 10 | 
            +
            import { property } from 'lit/decorators.js';
         | 
| 11 | 
            +
            import { classMap } from 'lit/directives/class-map.js';
         | 
| 12 | 
            +
            import { prefix, carbonPrefix } from '../../globals/settings.js';
         | 
| 13 | 
            +
            import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
         | 
| 14 | 
            +
            import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
         | 
| 15 | 
            +
            import styles from './user-avatar.scss.js';
         | 
| 16 | 
            +
            import '@carbon/web-components/es/components/tooltip/index.js';
         | 
| 17 | 
            +
            import User from '@carbon/web-components/es/icons/user/16';
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            /**
         | 
| 20 | 
            +
             * @license
         | 
| 21 | 
            +
             *
         | 
| 22 | 
            +
             * Copyright IBM Corp. 2025, 2025
         | 
| 23 | 
            +
             *
         | 
| 24 | 
            +
             * This source code is licensed under the Apache-2.0 license found in the
         | 
| 25 | 
            +
             * LICENSE file in the root directory of this source tree.
         | 
| 26 | 
            +
             */
         | 
| 27 | 
            +
            /**
         | 
| 28 | 
            +
             * Useravatar.
         | 
| 29 | 
            +
             *
         | 
| 30 | 
            +
             * @element c4p-user-avatar
         | 
| 31 | 
            +
             * */
         | 
| 32 | 
            +
            const blockClass = `${prefix}--user-avatar`;
         | 
| 33 | 
            +
            const iconSize = {
         | 
| 34 | 
            +
                sm: 16,
         | 
| 35 | 
            +
                md: 20,
         | 
| 36 | 
            +
                lg: 24,
         | 
| 37 | 
            +
                xl: 32,
         | 
| 38 | 
            +
            };
         | 
| 39 | 
            +
            let CDSUseravatar = class CDSUseravatar extends HostListenerMixin(LitElement) {
         | 
| 40 | 
            +
                constructor() {
         | 
| 41 | 
            +
                    super(...arguments);
         | 
| 42 | 
            +
                    /**
         | 
| 43 | 
            +
                     * Specify the alignment of the tooltip.
         | 
| 44 | 
            +
                     */
         | 
| 45 | 
            +
                    this.tooltipAlignment = 'bottom';
         | 
| 46 | 
            +
                    /**
         | 
| 47 | 
            +
                     * Provide the background color need to be set for UserAvatar.
         | 
| 48 | 
            +
                     */
         | 
| 49 | 
            +
                    this.backgroundColor = 'order-1-cyan';
         | 
| 50 | 
            +
                }
         | 
| 51 | 
            +
                render() {
         | 
| 52 | 
            +
                    const getItem = () => {
         | 
| 53 | 
            +
                        var _a;
         | 
| 54 | 
            +
                        const iconProps = { size: iconSize[this.size] };
         | 
| 55 | 
            +
                        if (this.image) {
         | 
| 56 | 
            +
                            const imageClasses = classMap({
         | 
| 57 | 
            +
                                [`${blockClass}__photo`]: true,
         | 
| 58 | 
            +
                                [`${blockClass}__photo--${this.size}`]: this.size,
         | 
| 59 | 
            +
                            });
         | 
| 60 | 
            +
                            return html ` <img
         | 
| 61 | 
            +
                      alt="${this.imageDescription}"
         | 
| 62 | 
            +
                      src="${this.image}"
         | 
| 63 | 
            +
                      class="${imageClasses}"
         | 
| 64 | 
            +
                    />`;
         | 
| 65 | 
            +
                        }
         | 
| 66 | 
            +
                        if (this.renderIcon) {
         | 
| 67 | 
            +
                            return html `${this.renderIcon({
         | 
| 68 | 
            +
                                width: `${iconProps.size}`,
         | 
| 69 | 
            +
                                height: `${iconProps.size}`,
         | 
| 70 | 
            +
                            })}`;
         | 
| 71 | 
            +
                        }
         | 
| 72 | 
            +
                        if (this.name) {
         | 
| 73 | 
            +
                            const parts = ((_a = this.name) === null || _a === undefined ? undefined : _a.split(' ')) || [];
         | 
| 74 | 
            +
                            const firstChar = parts[0].charAt(0).toUpperCase();
         | 
| 75 | 
            +
                            const secondChar = parts[0].charAt(1).toUpperCase();
         | 
| 76 | 
            +
                            if (parts.length === 1) {
         | 
| 77 | 
            +
                                return firstChar + secondChar;
         | 
| 78 | 
            +
                            }
         | 
| 79 | 
            +
                            const lastChar = parts[parts.length - 1].charAt(0).toUpperCase();
         | 
| 80 | 
            +
                            const initials = [firstChar];
         | 
| 81 | 
            +
                            if (lastChar) {
         | 
| 82 | 
            +
                                initials.push(lastChar);
         | 
| 83 | 
            +
                            }
         | 
| 84 | 
            +
                            return ''.concat(...initials);
         | 
| 85 | 
            +
                        }
         | 
| 86 | 
            +
                        return html `${User({
         | 
| 87 | 
            +
                            slot: 'icon',
         | 
| 88 | 
            +
                            width: `${iconProps.size}`,
         | 
| 89 | 
            +
                            height: `${iconProps.size}`,
         | 
| 90 | 
            +
                        })} `;
         | 
| 91 | 
            +
                    };
         | 
| 92 | 
            +
                    const { tooltipText, tooltipAlignment, size, backgroundColor, theme } = this;
         | 
| 93 | 
            +
                    const classes = classMap({
         | 
| 94 | 
            +
                        [`${blockClass}`]: true,
         | 
| 95 | 
            +
                        [`${blockClass}--${size}`]: size,
         | 
| 96 | 
            +
                        [`${blockClass}--${backgroundColor}`]: backgroundColor,
         | 
| 97 | 
            +
                        [`${blockClass}--${theme}`]: theme,
         | 
| 98 | 
            +
                    });
         | 
| 99 | 
            +
                    const Avatar = () => html `<div class="${classes}">${getItem()}</div>`;
         | 
| 100 | 
            +
                    if (tooltipText) {
         | 
| 101 | 
            +
                        return html `<cds-tooltip
         | 
| 102 | 
            +
                    align=${tooltipAlignment}
         | 
| 103 | 
            +
                    aria-label=${tooltipText}
         | 
| 104 | 
            +
                    class=${`${blockClass}__tooltip ${carbonPrefix}--icon-tooltip`}
         | 
| 105 | 
            +
                  >
         | 
| 106 | 
            +
                    ${Avatar()}
         | 
| 107 | 
            +
                    <cds-tooltip-content id="content"> ${tooltipText} </cds-tooltip-content>
         | 
| 108 | 
            +
                  </cds-tooltip>`;
         | 
| 109 | 
            +
                    }
         | 
| 110 | 
            +
                    else {
         | 
| 111 | 
            +
                        return html ` ${Avatar()}`;
         | 
| 112 | 
            +
                    }
         | 
| 113 | 
            +
                }
         | 
| 114 | 
            +
            };
         | 
| 115 | 
            +
            CDSUseravatar.styles = styles;
         | 
| 116 | 
            +
            __decorate([
         | 
| 117 | 
            +
                property({ reflect: true, attribute: 'tooltip-text' })
         | 
| 118 | 
            +
            ], CDSUseravatar.prototype, "tooltipText", undefined);
         | 
| 119 | 
            +
            __decorate([
         | 
| 120 | 
            +
                property({ reflect: true, attribute: 'tooltip-alignment' })
         | 
| 121 | 
            +
            ], CDSUseravatar.prototype, "tooltipAlignment", undefined);
         | 
| 122 | 
            +
            __decorate([
         | 
| 123 | 
            +
                property({ reflect: true })
         | 
| 124 | 
            +
            ], CDSUseravatar.prototype, "name", undefined);
         | 
| 125 | 
            +
            __decorate([
         | 
| 126 | 
            +
                property()
         | 
| 127 | 
            +
            ], CDSUseravatar.prototype, "renderIcon", undefined);
         | 
| 128 | 
            +
            __decorate([
         | 
| 129 | 
            +
                property({ reflect: true })
         | 
| 130 | 
            +
            ], CDSUseravatar.prototype, "size", undefined);
         | 
| 131 | 
            +
            __decorate([
         | 
| 132 | 
            +
                property({ reflect: true })
         | 
| 133 | 
            +
            ], CDSUseravatar.prototype, "image", undefined);
         | 
| 134 | 
            +
            __decorate([
         | 
| 135 | 
            +
                property({ reflect: true, attribute: 'image-description' })
         | 
| 136 | 
            +
            ], CDSUseravatar.prototype, "imageDescription", undefined);
         | 
| 137 | 
            +
            __decorate([
         | 
| 138 | 
            +
                property({ reflect: true, attribute: 'background-color' })
         | 
| 139 | 
            +
            ], CDSUseravatar.prototype, "backgroundColor", undefined);
         | 
| 140 | 
            +
            __decorate([
         | 
| 141 | 
            +
                property({ reflect: true })
         | 
| 142 | 
            +
            ], CDSUseravatar.prototype, "theme", undefined);
         | 
| 143 | 
            +
            CDSUseravatar = __decorate([
         | 
| 144 | 
            +
                carbonElement(`${prefix}-user-avatar`)
         | 
| 145 | 
            +
            ], CDSUseravatar);
         | 
| 146 | 
            +
            var CDSUseravatar$1 = CDSUseravatar;
         | 
| 147 | 
            +
             | 
| 148 | 
            +
            export { CDSUseravatar$1 as default };
         | 
| 149 | 
            +
            //# sourceMappingURL=user-avatar.js.map
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"user-avatar.js","sources":["../../../src/components/user-avatar/user-avatar.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;;AAIK;AAEL,MAAM,UAAU,GAAG,CAAG,EAAA,MAAM,eAAe;AAE3C,MAAM,QAAQ,GAAG;AACf,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,EAAE,EAAE,EAAE;AACN,IAAA,EAAE,EAAE,EAAE;CACP;AAGD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,iBAAiB,CAAC,UAAU,CAAC,CAAA;AAAzD,IAAA,WAAA,GAAA;;AAQE;;AAEG;QAEH,IAAgB,CAAA,gBAAA,GAAG,QAAQ;AA+B3B;;AAEG;QAEH,IAAe,CAAA,eAAA,GAAG,cAAc;;IAQhC,MAAM,GAAA;QACJ,MAAM,OAAO,GAAG,MAAK;;AACnB,YAAA,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;AAC/C,YAAA,IAAI,IAAI,CAAC,KAAK,EAAE;gBACd,MAAM,YAAY,GAAG,QAAQ,CAAC;AAC5B,oBAAA,CAAC,CAAG,EAAA,UAAU,CAAS,OAAA,CAAA,GAAG,IAAI;oBAC9B,CAAC,CAAA,EAAG,UAAU,CAAA,SAAA,EAAY,IAAI,CAAC,IAAI,CAAA,CAAE,GAAG,IAAI,CAAC,IAAI;AAClD,iBAAA,CAAC;AACF,gBAAA,OAAO,IAAI,CAAA,CAAA;AACF,eAAA,EAAA,IAAI,CAAC,gBAAgB,CAAA;AACrB,eAAA,EAAA,IAAI,CAAC,KAAK,CAAA;mBACR,YAAY,CAAA;WACpB;;AAEL,YAAA,IAAI,IAAI,CAAC,UAAU,EAAE;AACnB,gBAAA,OAAO,IAAI,CAAA,CAAA,EAAG,IAAI,CAAC,UAAU,CAAC;AAC5B,oBAAA,KAAK,EAAE,CAAA,EAAG,SAAS,CAAC,IAAI,CAAE,CAAA;AAC1B,oBAAA,MAAM,EAAE,CAAA,EAAG,SAAS,CAAC,IAAI,CAAE,CAAA;AAC5B,iBAAA,CAAC,EAAE;;AAEN,YAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,gBAAA,MAAM,KAAK,GAAG,CAAA,CAAA,EAAA,GAAA,IAAI,CAAC,IAAI,MAAE,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,SAAA,GAAA,EAAA,CAAA,KAAK,CAAC,GAAG,CAAC,KAAI,EAAE;AACzC,gBAAA,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AAClD,gBAAA,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AACnD,gBAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;oBACtB,OAAO,SAAS,GAAG,UAAU;;AAE/B,gBAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AAChE,gBAAA,MAAM,QAAQ,GAAG,CAAC,SAAS,CAAC;gBAC5B,IAAI,QAAQ,EAAE;AACZ,oBAAA,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;;AAGzB,gBAAA,OAAO,EAAE,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;;AAE/B,YAAA,OAAO,IAAI,CAAA,CAAG,EAAA,IAAI,CAAC;AACjB,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,KAAK,EAAE,CAAA,EAAG,SAAS,CAAC,IAAI,CAAE,CAAA;AAC1B,gBAAA,MAAM,EAAE,CAAA,EAAG,SAAS,CAAC,IAAI,CAAE,CAAA;AAC5B,aAAA,CAAC,GAAG;AACP,SAAC;AAED,QAAA,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,GACnE,IAAI;QACN,MAAM,OAAO,GAAG,QAAQ,CAAC;AACvB,YAAA,CAAC,CAAG,EAAA,UAAU,CAAE,CAAA,GAAG,IAAI;AACvB,YAAA,CAAC,GAAG,UAAU,CAAA,EAAA,EAAK,IAAI,CAAE,CAAA,GAAG,IAAI;AAChC,YAAA,CAAC,GAAG,UAAU,CAAA,EAAA,EAAK,eAAe,CAAE,CAAA,GAAG,eAAe;AACtD,YAAA,CAAC,GAAG,UAAU,CAAA,EAAA,EAAK,KAAK,CAAE,CAAA,GAAG,KAAK;AACnC,SAAA,CAAC;AAEF,QAAA,MAAM,MAAM,GAAG,MAAM,IAAI,CAAA,CAAA,YAAA,EAAe,OAAO,CAAA,EAAA,EAAK,OAAO,EAAE,QAAQ;QAErE,IAAI,WAAW,EAAE;AACf,YAAA,OAAO,IAAI,CAAA,CAAA;gBACD,gBAAgB;qBACX,WAAW;gBAChB,CAAG,EAAA,UAAU,CAAa,UAAA,EAAA,YAAY,CAAgB,cAAA,CAAA;;AAE5D,QAAA,EAAA,MAAM,EAAE;6CAC2B,WAAW,CAAA;qBACnC;;aACV;AACL,YAAA,OAAO,IAAI,CAAA,CAAA,CAAA,EAAI,MAAM,EAAE,EAAE;;;;AAItB,aAAM,CAAA,MAAA,GAAG,MAAH;AApHb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE;AAC1C,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,aAAA,EAAA,SAAA,CAAA;AAMZ,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,mBAAmB,EAAE;AAC/B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,SAAA,CAAA;AAM5B,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACtB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA;AAML,UAAA,CAAA;AADC,IAAA,QAAQ;AACE,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,YAAA,EAAA,SAAA,CAAA;AAMX,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACtB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,SAAA,CAAA;AAML,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACrB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,OAAA,EAAA,SAAA,CAAA;AAKN,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,mBAAmB,EAAE;AAC1C,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,SAAA,CAAA;AAMjB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE;AACzB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,SAAA,CAAA;AAMjC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACrB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,OAAA,EAAA,SAAA,CAAA;AArDF,aAAa,GAAA,UAAA,CAAA;AADlB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,YAAA,CAAc;AAChC,CAAA,EAAA,aAAa,CA2HlB;AACD,sBAAe,aAAa;;;;"}
         | 
| @@ -0,0 +1,13 @@ | |
| 1 | 
            +
            /**
         | 
| 2 | 
            +
             * Copyright IBM Corp. 2024
         | 
| 3 | 
            +
             *
         | 
| 4 | 
            +
             * This source code is licensed under the Apache-2.0 license found in the
         | 
| 5 | 
            +
             * LICENSE file in the root directory of this source tree.
         | 
| 6 | 
            +
             */
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            import { css } from 'lit';
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            var styles = css(["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-background,#fff);color:var(--cds-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-heading-06-font-size,2.625rem);font-weight:var(--cds-heading-06-font-weight,300);letter-spacing:var(--cds-heading-06-letter-spacing,0);line-height:var(--cds-heading-06-line-height,1.199)}h2{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);letter-spacing:var(--cds-heading-05-letter-spacing,0);line-height:var(--cds-heading-05-line-height,1.25)}h3{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}h4{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}h5{font-size:var(--cds-heading-02-font-size,1rem);font-weight:var(--cds-heading-02-font-weight,600);letter-spacing:var(--cds-heading-02-letter-spacing,0);line-height:var(--cds-heading-02-line-height,1.5)}h6{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}p{font-size:var(--cds-body-02-font-size,1rem);font-weight:var(--cds-body-02-font-weight,400);letter-spacing:var(--cds-body-02-letter-spacing,0);line-height:var(--cds-body-02-line-height,1.5)}a{color:var(--cds-link-primary,#0062fe)}em{font-style:italic}.cds--layout--size-xs{--cds-layout-size-height-context:var(--cds-layout-size-height-xs,1.5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-xs{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-xs,1.5rem))}.cds--layout-constraint--size__min-xs{--cds-layout-size-height-min:var(--cds-layout-size-height-xs,1.5rem)}.cds--layout-constraint--size__max-xs{--cds-layout-size-height-max:var(--cds-layout-size-height-xs,1.5rem)}.cds--layout--size-sm{--cds-layout-size-height-context:var(--cds-layout-size-height-sm,2rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-sm{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-sm,2rem))}.cds--layout-constraint--size__min-sm{--cds-layout-size-height-min:var(--cds-layout-size-height-sm,2rem)}.cds--layout-constraint--size__max-sm{--cds-layout-size-height-max:var(--cds-layout-size-height-sm,2rem)}.cds--layout--size-md{--cds-layout-size-height-context:var(--cds-layout-size-height-md,2.5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-md{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-md,2.5rem))}.cds--layout-constraint--size__min-md{--cds-layout-size-height-min:var(--cds-layout-size-height-md,2.5rem)}.cds--layout-constraint--size__max-md{--cds-layout-size-height-max:var(--cds-layout-size-height-md,2.5rem)}.cds--layout--size-lg{--cds-layout-size-height-context:var(--cds-layout-size-height-lg,3rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-lg{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-lg,3rem))}.cds--layout-constraint--size__min-lg{--cds-layout-size-height-min:var(--cds-layout-size-height-lg,3rem)}.cds--layout-constraint--size__max-lg{--cds-layout-size-height-max:var(--cds-layout-size-height-lg,3rem)}.cds--layout--size-xl{--cds-layout-size-height-context:var(--cds-layout-size-height-xl,4rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-xl{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-xl,4rem))}.cds--layout-constraint--size__min-xl{--cds-layout-size-height-min:var(--cds-layout-size-height-xl,4rem)}.cds--layout-constraint--size__max-xl{--cds-layout-size-height-max:var(--cds-layout-size-height-xl,4rem)}.cds--layout--size-2xl{--cds-layout-size-height-context:var(--cds-layout-size-height-2xl,5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds--layout-constraint--size__default-2xl{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-2xl,5rem))}.cds--layout-constraint--size__min-2xl{--cds-layout-size-height-min:var(--cds-layout-size-height-2xl,5rem)}.cds--layout-constraint--size__max-2xl{--cds-layout-size-height-max:var(--cds-layout-size-height-2xl,5rem)}.cds--layout--density-condensed{--cds-layout-density-padding-inline-context:var(--cds-layout-density-padding-inline-condensed,0.5rem);--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context)}.cds--layout-constraint--density__default-condensed{--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context,var(--cds-layout-density-padding-inline-condensed,0.5rem))}.cds--layout-constraint--density__min-condensed{--cds-layout-density-padding-inline-min:var(--cds-layout-density-padding-inline-condensed,0.5rem)}.cds--layout-constraint--density__max-condensed{--cds-layout-density-padding-inline-max:var(--cds-layout-density-padding-inline-condensed,0.5rem)}.cds--layout--density-normal{--cds-layout-density-padding-inline-context:var(--cds-layout-density-padding-inline-normal,1rem);--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context)}.cds--layout-constraint--density__default-normal{--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context,var(--cds-layout-density-padding-inline-normal,1rem))}.cds--layout-constraint--density__min-normal{--cds-layout-density-padding-inline-min:var(--cds-layout-density-padding-inline-normal,1rem)}.cds--layout-constraint--density__max-normal{--cds-layout-density-padding-inline-max:var(--cds-layout-density-padding-inline-normal,1rem)}:root{--cds-layout-size-height-xs:1.5rem;--cds-layout-size-height-sm:2rem;--cds-layout-size-height-md:2.5rem;--cds-layout-size-height-lg:3rem;--cds-layout-size-height-xl:4rem;--cds-layout-size-height-2xl:5rem;--cds-layout-size-height-min:0px;--cds-layout-size-height-max:999999999px;--cds-layout-density-padding-inline-condensed:0.5rem;--cds-layout-density-padding-inline-normal:1rem;--cds-layout-density-padding-inline-min:0px;--cds-layout-density-padding-inline-max:999999999px}@keyframes cds--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}.cds--assistive-text,.cds--visually-hidden{block-size:1px;border:0;margin:-1px;overflow:hidden;padding:0;position:absolute;clip:rect(0,0,0,0);inline-size:1px;visibility:inherit;white-space:nowrap}.c4p--user-avatar,:host(c4p-user-avatar){align-items:center;block-size:4rem;border:.5px solid transparent;border-radius:100%;color:var(--cds-text-inverse,#fff);display:flex;inline-size:4rem;justify-content:center;outline:none;outline-offset:3px;position:relative}.c4p--user-avatar svg,:host(c4p-user-avatar) svg{color:var(--cds-icon-inverse,#fff)}.c4p--user-avatar__tooltip:focus-within .c4p--user-avatar,.c4p--user-avatar__tooltip:focus-within :host(c4p-user-avatar){outline:2px solid var(--cds-focus,#0f62fe);outline-offset:1px}.cds--g10 .c4p--user-avatar--order-1-cyan,.cds--white .c4p--user-avatar--order-1-cyan,:root .c4p--user-avatar--order-1-cyan{background-color:#0072c3}.cds--g10 .c4p--user-avatar--order-2-gray,.cds--white .c4p--user-avatar--order-2-gray,:root .c4p--user-avatar--order-2-gray{background-color:#6f6f6f}.cds--g10 .c4p--user-avatar--order-3-green,.cds--white .c4p--user-avatar--order-3-green,:root .c4p--user-avatar--order-3-green{background-color:#198038}.cds--g10 .c4p--user-avatar--order-4-magenta,.cds--white .c4p--user-avatar--order-4-magenta,:root .c4p--user-avatar--order-4-magenta{background-color:#d02670}.cds--g10 .c4p--user-avatar--order-5-purple,.cds--white .c4p--user-avatar--order-5-purple,:root .c4p--user-avatar--order-5-purple{background-color:#8a3ffc}.cds--g10 .c4p--user-avatar--order-6-teal,.cds--white .c4p--user-avatar--order-6-teal,:root .c4p--user-avatar--order-6-teal{background-color:#007d79}.cds--g10 .c4p--user-avatar--order-7-cyan,.cds--white .c4p--user-avatar--order-7-cyan,:root .c4p--user-avatar--order-7-cyan{background-color:#003a6d}.cds--g10 .c4p--user-avatar--order-8-gray,.cds--white .c4p--user-avatar--order-8-gray,:root .c4p--user-avatar--order-8-gray{background-color:#393939}.cds--g10 .c4p--user-avatar--order-9-green,.cds--white .c4p--user-avatar--order-9-green,:root .c4p--user-avatar--order-9-green{background-color:#044317}.cds--g10 .c4p--user-avatar--order-10-magenta,.cds--white .c4p--user-avatar--order-10-magenta,:root .c4p--user-avatar--order-10-magenta{background-color:#740937}.cds--g10 .c4p--user-avatar--order-11-purple,.cds--white .c4p--user-avatar--order-11-purple,:root .c4p--user-avatar--order-11-purple{background-color:#491d8b}.cds--g10 .c4p--user-avatar--order-12-teal,.cds--white .c4p--user-avatar--order-12-teal,:root .c4p--user-avatar--order-12-teal{background-color:#004144}.cds--g100 .c4p--user-avatar--order-1-cyan,.cds--g90 .c4p--user-avatar--order-1-cyan{background-color:#1192e8}.cds--g100 .c4p--user-avatar--order-2-gray,.cds--g90 .c4p--user-avatar--order-2-gray{background-color:#8d8d8d}.cds--g100 .c4p--user-avatar--order-3-green,.cds--g90 .c4p--user-avatar--order-3-green{background-color:#24a148}.cds--g100 .c4p--user-avatar--order-4-magenta,.cds--g90 .c4p--user-avatar--order-4-magenta{background-color:#ee5396}.cds--g100 .c4p--user-avatar--order-5-purple,.cds--g90 .c4p--user-avatar--order-5-purple{background-color:#a56eff}.cds--g100 .c4p--user-avatar--order-6-teal,.cds--g90 .c4p--user-avatar--order-6-teal{background-color:#009d9a}.cds--g100 .c4p--user-avatar--order-7-cyan,.cds--g90 .c4p--user-avatar--order-7-cyan{background-color:#82cfff}.cds--g100 .c4p--user-avatar--order-8-gray,.cds--g90 .c4p--user-avatar--order-8-gray{background-color:#c6c6c6}.cds--g100 .c4p--user-avatar--order-9-green,.cds--g90 .c4p--user-avatar--order-9-green{background-color:#6fdc8c}.cds--g100 .c4p--user-avatar--order-10-magenta,.cds--g90 .c4p--user-avatar--order-10-magenta{background-color:#ffafd2}.cds--g100 .c4p--user-avatar--order-11-purple,.cds--g90 .c4p--user-avatar--order-11-purple{background-color:#d4bbff}.cds--g100 .c4p--user-avatar--order-12-teal,.cds--g90 .c4p--user-avatar--order-12-teal{background-color:#3ddbd9}.c4p--user-avatar--xl{block-size:4rem;font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);inline-size:4rem;letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}.c4p--user-avatar--lg{block-size:3rem;font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);inline-size:3rem;letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}.c4p--user-avatar--md{block-size:2rem;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);inline-size:2rem;letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572)}.c4p--user-avatar--sm{block-size:1.5rem;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);inline-size:1.5rem;letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.c4p--user-avatar__photo{border-radius:100%;-o-object-fit:contain;object-fit:contain}.c4p--user-avatar__photo--xl{block-size:4rem;border-radius:100%;inline-size:4rem;-o-object-fit:fill;object-fit:fill}.c4p--user-avatar__photo--lg{block-size:3rem;border-radius:100%;inline-size:3rem;-o-object-fit:fill;object-fit:fill}.c4p--user-avatar__photo--md{block-size:2rem;border-radius:100%;inline-size:2rem;-o-object-fit:fill;object-fit:fill}.c4p--user-avatar__photo--sm{block-size:1.5rem;border-radius:100%;inline-size:1.5rem;-o-object-fit:fill;object-fit:fill}:host(c4p-user-avatar) .c4p--user-avatar--order-1-cyan,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-1-cyan{background-color:#0072c3}:host(c4p-user-avatar) .c4p--user-avatar--order-2-gray,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-2-gray{background-color:#6f6f6f}:host(c4p-user-avatar) .c4p--user-avatar--order-3-green,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-3-green{background-color:#198038}:host(c4p-user-avatar) .c4p--user-avatar--order-4-magenta,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-4-magenta{background-color:#d02670}:host(c4p-user-avatar) .c4p--user-avatar--order-5-purple,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-5-purple{background-color:#8a3ffc}:host(c4p-user-avatar) .c4p--user-avatar--order-6-teal,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-6-teal{background-color:#007d79}:host(c4p-user-avatar) .c4p--user-avatar--order-7-cyan,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-7-cyan{background-color:#003a6d}:host(c4p-user-avatar) .c4p--user-avatar--order-8-gray,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-8-gray{background-color:#393939}:host(c4p-user-avatar) .c4p--user-avatar--order-9-green,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-9-green{background-color:#044317}:host(c4p-user-avatar) .c4p--user-avatar--order-10-magenta,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-10-magenta{background-color:#740937}:host(c4p-user-avatar) .c4p--user-avatar--order-11-purple,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-11-purple{background-color:#491d8b}:host(c4p-user-avatar) .c4p--user-avatar--order-12-teal,:host(c4p-user-avatar[theme=light]) .c4p--user-avatar--order-12-teal{background-color:#004144}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-1-cyan{background-color:#1192e8}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-2-gray{background-color:#8d8d8d}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-3-green{background-color:#24a148}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-4-magenta{background-color:#ee5396}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-5-purple{background-color:#a56eff}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-6-teal{background-color:#009d9a}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-7-cyan{background-color:#82cfff}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-8-gray{background-color:#c6c6c6}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-9-green{background-color:#6fdc8c}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-10-magenta{background-color:#ffafd2}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-11-purple{background-color:#d4bbff}:host(c4p-user-avatar[theme=dark]) .c4p--user-avatar--order-12-teal{background-color:#3ddbd9}"]);
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            export { styles as default };
         | 
| 13 | 
            +
            //# sourceMappingURL=user-avatar.scss.js.map
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            {"version":3,"file":"user-avatar.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
         | 
    
        package/es/index.d.ts
    CHANGED
    
    
    
        package/es/index.js
    CHANGED
    
    | @@ -7,4 +7,5 @@ | |
| 7 7 |  | 
| 8 8 | 
             
            export { default as CDSSidePanel } from './components/side-panel/side-panel.js';
         | 
| 9 9 | 
             
            export { default as CDSTearsheet } from './components/tearsheet/tearsheet.js';
         | 
| 10 | 
            +
            export { default as CDSUseravatar } from './components/user-avatar/user-avatar.js';
         | 
| 10 11 | 
             
            //# sourceMappingURL=index.js.map
         | 
    
        package/es/index.js.map
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":" | 
| 1 | 
            +
            {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
         | 
    
        package/es/package.json.js
    CHANGED
    
    
| @@ -0,0 +1,374 @@ | |
| 1 | 
            +
            /**
         | 
| 2 | 
            +
             * @license
         | 
| 3 | 
            +
             *
         | 
| 4 | 
            +
             * Copyright IBM Corp. 2025, 2025
         | 
| 5 | 
            +
             *
         | 
| 6 | 
            +
             * This source code is licensed under the Apache-2.0 license found in the
         | 
| 7 | 
            +
             * LICENSE file in the root directory of this source tree.
         | 
| 8 | 
            +
             */
         | 
| 9 | 
            +
            import { LitElement } from 'lit';
         | 
| 10 | 
            +
            import '@carbon/web-components/es/components/tooltip/index.js';
         | 
| 11 | 
            +
            declare const CDSUseravatar_base: {
         | 
| 12 | 
            +
                new (...args: any[]): {
         | 
| 13 | 
            +
                    _handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
         | 
| 14 | 
            +
                    connectedCallback(): void;
         | 
| 15 | 
            +
                    disconnectedCallback(): void;
         | 
| 16 | 
            +
                    accessKey: string;
         | 
| 17 | 
            +
                    readonly accessKeyLabel: string;
         | 
| 18 | 
            +
                    autocapitalize: string;
         | 
| 19 | 
            +
                    dir: string;
         | 
| 20 | 
            +
                    draggable: boolean;
         | 
| 21 | 
            +
                    hidden: boolean;
         | 
| 22 | 
            +
                    inert: boolean;
         | 
| 23 | 
            +
                    innerText: string;
         | 
| 24 | 
            +
                    lang: string;
         | 
| 25 | 
            +
                    readonly offsetHeight: number;
         | 
| 26 | 
            +
                    readonly offsetLeft: number;
         | 
| 27 | 
            +
                    readonly offsetParent: Element | null;
         | 
| 28 | 
            +
                    readonly offsetTop: number;
         | 
| 29 | 
            +
                    readonly offsetWidth: number;
         | 
| 30 | 
            +
                    outerText: string;
         | 
| 31 | 
            +
                    spellcheck: boolean;
         | 
| 32 | 
            +
                    title: string;
         | 
| 33 | 
            +
                    translate: boolean;
         | 
| 34 | 
            +
                    attachInternals(): ElementInternals;
         | 
| 35 | 
            +
                    click(): void;
         | 
| 36 | 
            +
                    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
         | 
| 37 | 
            +
                    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
         | 
| 38 | 
            +
                    removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
         | 
| 39 | 
            +
                    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
         | 
| 40 | 
            +
                    readonly attributes: NamedNodeMap;
         | 
| 41 | 
            +
                    readonly classList: DOMTokenList;
         | 
| 42 | 
            +
                    className: string;
         | 
| 43 | 
            +
                    readonly clientHeight: number;
         | 
| 44 | 
            +
                    readonly clientLeft: number;
         | 
| 45 | 
            +
                    readonly clientTop: number;
         | 
| 46 | 
            +
                    readonly clientWidth: number;
         | 
| 47 | 
            +
                    id: string;
         | 
| 48 | 
            +
                    readonly localName: string;
         | 
| 49 | 
            +
                    readonly namespaceURI: string | null;
         | 
| 50 | 
            +
                    onfullscreenchange: ((this: Element, ev: Event) => any) | null;
         | 
| 51 | 
            +
                    onfullscreenerror: ((this: Element, ev: Event) => any) | null;
         | 
| 52 | 
            +
                    outerHTML: string;
         | 
| 53 | 
            +
                    readonly ownerDocument: Document;
         | 
| 54 | 
            +
                    readonly part: DOMTokenList;
         | 
| 55 | 
            +
                    readonly prefix: string | null;
         | 
| 56 | 
            +
                    readonly scrollHeight: number;
         | 
| 57 | 
            +
                    scrollLeft: number;
         | 
| 58 | 
            +
                    scrollTop: number;
         | 
| 59 | 
            +
                    readonly scrollWidth: number;
         | 
| 60 | 
            +
                    readonly shadowRoot: ShadowRoot | null;
         | 
| 61 | 
            +
                    slot: string;
         | 
| 62 | 
            +
                    readonly tagName: string;
         | 
| 63 | 
            +
                    attachShadow(init: ShadowRootInit): ShadowRoot;
         | 
| 64 | 
            +
                    closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
         | 
| 65 | 
            +
                    closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
         | 
| 66 | 
            +
                    closest<E extends Element = Element>(selectors: string): E | null;
         | 
| 67 | 
            +
                    getAttribute(qualifiedName: string): string | null;
         | 
| 68 | 
            +
                    getAttributeNS(namespace: string | null, localName: string): string | null;
         | 
| 69 | 
            +
                    getAttributeNames(): string[];
         | 
| 70 | 
            +
                    getAttributeNode(qualifiedName: string): Attr | null;
         | 
| 71 | 
            +
                    getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
         | 
| 72 | 
            +
                    getBoundingClientRect(): DOMRect;
         | 
| 73 | 
            +
                    getClientRects(): DOMRectList;
         | 
| 74 | 
            +
                    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
         | 
| 75 | 
            +
                    getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
         | 
| 76 | 
            +
                    getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
         | 
| 77 | 
            +
                    getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
         | 
| 78 | 
            +
                    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
         | 
| 79 | 
            +
                    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
         | 
| 80 | 
            +
                    getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
         | 
| 81 | 
            +
                    hasAttribute(qualifiedName: string): boolean;
         | 
| 82 | 
            +
                    hasAttributeNS(namespace: string | null, localName: string): boolean;
         | 
| 83 | 
            +
                    hasAttributes(): boolean;
         | 
| 84 | 
            +
                    hasPointerCapture(pointerId: number): boolean;
         | 
| 85 | 
            +
                    insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
         | 
| 86 | 
            +
                    insertAdjacentHTML(position: InsertPosition, text: string): void;
         | 
| 87 | 
            +
                    insertAdjacentText(where: InsertPosition, data: string): void;
         | 
| 88 | 
            +
                    matches(selectors: string): boolean;
         | 
| 89 | 
            +
                    releasePointerCapture(pointerId: number): void;
         | 
| 90 | 
            +
                    removeAttribute(qualifiedName: string): void;
         | 
| 91 | 
            +
                    removeAttributeNS(namespace: string | null, localName: string): void;
         | 
| 92 | 
            +
                    removeAttributeNode(attr: Attr): Attr;
         | 
| 93 | 
            +
                    requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
         | 
| 94 | 
            +
                    requestPointerLock(): void;
         | 
| 95 | 
            +
                    scroll(options?: ScrollToOptions | undefined): void;
         | 
| 96 | 
            +
                    scroll(x: number, y: number): void;
         | 
| 97 | 
            +
                    scrollBy(options?: ScrollToOptions | undefined): void;
         | 
| 98 | 
            +
                    scrollBy(x: number, y: number): void;
         | 
| 99 | 
            +
                    scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
         | 
| 100 | 
            +
                    scrollTo(options?: ScrollToOptions | undefined): void;
         | 
| 101 | 
            +
                    scrollTo(x: number, y: number): void;
         | 
| 102 | 
            +
                    setAttribute(qualifiedName: string, value: string): void;
         | 
| 103 | 
            +
                    setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
         | 
| 104 | 
            +
                    setAttributeNode(attr: Attr): Attr | null;
         | 
| 105 | 
            +
                    setAttributeNodeNS(attr: Attr): Attr | null;
         | 
| 106 | 
            +
                    setPointerCapture(pointerId: number): void;
         | 
| 107 | 
            +
                    toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
         | 
| 108 | 
            +
                    webkitMatchesSelector(selectors: string): boolean;
         | 
| 109 | 
            +
                    readonly baseURI: string;
         | 
| 110 | 
            +
                    readonly childNodes: NodeListOf<ChildNode>;
         | 
| 111 | 
            +
                    readonly firstChild: ChildNode | null;
         | 
| 112 | 
            +
                    readonly isConnected: boolean;
         | 
| 113 | 
            +
                    readonly lastChild: ChildNode | null;
         | 
| 114 | 
            +
                    readonly nextSibling: ChildNode | null;
         | 
| 115 | 
            +
                    readonly nodeName: string;
         | 
| 116 | 
            +
                    readonly nodeType: number;
         | 
| 117 | 
            +
                    nodeValue: string | null;
         | 
| 118 | 
            +
                    readonly parentElement: HTMLElement | null;
         | 
| 119 | 
            +
                    readonly parentNode: ParentNode | null;
         | 
| 120 | 
            +
                    readonly previousSibling: ChildNode | null;
         | 
| 121 | 
            +
                    textContent: string | null;
         | 
| 122 | 
            +
                    appendChild<T_1 extends Node>(node: T_1): T_1;
         | 
| 123 | 
            +
                    cloneNode(deep?: boolean | undefined): Node;
         | 
| 124 | 
            +
                    compareDocumentPosition(other: Node): number;
         | 
| 125 | 
            +
                    contains(other: Node | null): boolean;
         | 
| 126 | 
            +
                    getRootNode(options?: GetRootNodeOptions | undefined): Node;
         | 
| 127 | 
            +
                    hasChildNodes(): boolean;
         | 
| 128 | 
            +
                    insertBefore<T_2 extends Node>(node: T_2, child: Node | null): T_2;
         | 
| 129 | 
            +
                    isDefaultNamespace(namespace: string | null): boolean;
         | 
| 130 | 
            +
                    isEqualNode(otherNode: Node | null): boolean;
         | 
| 131 | 
            +
                    isSameNode(otherNode: Node | null): boolean;
         | 
| 132 | 
            +
                    lookupNamespaceURI(prefix: string | null): string | null;
         | 
| 133 | 
            +
                    lookupPrefix(namespace: string | null): string | null;
         | 
| 134 | 
            +
                    normalize(): void;
         | 
| 135 | 
            +
                    removeChild<T_3 extends Node>(child: T_3): T_3;
         | 
| 136 | 
            +
                    replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
         | 
| 137 | 
            +
                    readonly ATTRIBUTE_NODE: number;
         | 
| 138 | 
            +
                    readonly CDATA_SECTION_NODE: number;
         | 
| 139 | 
            +
                    readonly COMMENT_NODE: number;
         | 
| 140 | 
            +
                    readonly DOCUMENT_FRAGMENT_NODE: number;
         | 
| 141 | 
            +
                    readonly DOCUMENT_NODE: number;
         | 
| 142 | 
            +
                    readonly DOCUMENT_POSITION_CONTAINED_BY: number;
         | 
| 143 | 
            +
                    readonly DOCUMENT_POSITION_CONTAINS: number;
         | 
| 144 | 
            +
                    readonly DOCUMENT_POSITION_DISCONNECTED: number;
         | 
| 145 | 
            +
                    readonly DOCUMENT_POSITION_FOLLOWING: number;
         | 
| 146 | 
            +
                    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
         | 
| 147 | 
            +
                    readonly DOCUMENT_POSITION_PRECEDING: number;
         | 
| 148 | 
            +
                    readonly DOCUMENT_TYPE_NODE: number;
         | 
| 149 | 
            +
                    readonly ELEMENT_NODE: number;
         | 
| 150 | 
            +
                    readonly ENTITY_NODE: number;
         | 
| 151 | 
            +
                    readonly ENTITY_REFERENCE_NODE: number;
         | 
| 152 | 
            +
                    readonly NOTATION_NODE: number;
         | 
| 153 | 
            +
                    readonly PROCESSING_INSTRUCTION_NODE: number;
         | 
| 154 | 
            +
                    readonly TEXT_NODE: number;
         | 
| 155 | 
            +
                    dispatchEvent(event: Event): boolean;
         | 
| 156 | 
            +
                    ariaAtomic: string | null;
         | 
| 157 | 
            +
                    ariaAutoComplete: string | null;
         | 
| 158 | 
            +
                    ariaBusy: string | null;
         | 
| 159 | 
            +
                    ariaChecked: string | null;
         | 
| 160 | 
            +
                    ariaColCount: string | null;
         | 
| 161 | 
            +
                    ariaColIndex: string | null;
         | 
| 162 | 
            +
                    ariaColIndexText: string | null;
         | 
| 163 | 
            +
                    ariaColSpan: string | null;
         | 
| 164 | 
            +
                    ariaCurrent: string | null;
         | 
| 165 | 
            +
                    ariaDisabled: string | null;
         | 
| 166 | 
            +
                    ariaExpanded: string | null;
         | 
| 167 | 
            +
                    ariaHasPopup: string | null;
         | 
| 168 | 
            +
                    ariaHidden: string | null;
         | 
| 169 | 
            +
                    ariaInvalid: string | null;
         | 
| 170 | 
            +
                    ariaKeyShortcuts: string | null;
         | 
| 171 | 
            +
                    ariaLabel: string | null;
         | 
| 172 | 
            +
                    ariaLevel: string | null;
         | 
| 173 | 
            +
                    ariaLive: string | null;
         | 
| 174 | 
            +
                    ariaModal: string | null;
         | 
| 175 | 
            +
                    ariaMultiLine: string | null;
         | 
| 176 | 
            +
                    ariaMultiSelectable: string | null;
         | 
| 177 | 
            +
                    ariaOrientation: string | null;
         | 
| 178 | 
            +
                    ariaPlaceholder: string | null;
         | 
| 179 | 
            +
                    ariaPosInSet: string | null;
         | 
| 180 | 
            +
                    ariaPressed: string | null;
         | 
| 181 | 
            +
                    ariaReadOnly: string | null;
         | 
| 182 | 
            +
                    ariaRequired: string | null;
         | 
| 183 | 
            +
                    ariaRoleDescription: string | null;
         | 
| 184 | 
            +
                    ariaRowCount: string | null;
         | 
| 185 | 
            +
                    ariaRowIndex: string | null;
         | 
| 186 | 
            +
                    ariaRowIndexText: string | null;
         | 
| 187 | 
            +
                    ariaRowSpan: string | null;
         | 
| 188 | 
            +
                    ariaSelected: string | null;
         | 
| 189 | 
            +
                    ariaSetSize: string | null;
         | 
| 190 | 
            +
                    ariaSort: string | null;
         | 
| 191 | 
            +
                    ariaValueMax: string | null;
         | 
| 192 | 
            +
                    ariaValueMin: string | null;
         | 
| 193 | 
            +
                    ariaValueNow: string | null;
         | 
| 194 | 
            +
                    ariaValueText: string | null;
         | 
| 195 | 
            +
                    role: string | null;
         | 
| 196 | 
            +
                    animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
         | 
| 197 | 
            +
                    getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
         | 
| 198 | 
            +
                    after(...nodes: (string | Node)[]): void;
         | 
| 199 | 
            +
                    before(...nodes: (string | Node)[]): void;
         | 
| 200 | 
            +
                    remove(): void;
         | 
| 201 | 
            +
                    replaceWith(...nodes: (string | Node)[]): void;
         | 
| 202 | 
            +
                    innerHTML: string;
         | 
| 203 | 
            +
                    readonly nextElementSibling: Element | null;
         | 
| 204 | 
            +
                    readonly previousElementSibling: Element | null;
         | 
| 205 | 
            +
                    readonly childElementCount: number;
         | 
| 206 | 
            +
                    readonly children: HTMLCollection;
         | 
| 207 | 
            +
                    readonly firstElementChild: Element | null;
         | 
| 208 | 
            +
                    readonly lastElementChild: Element | null;
         | 
| 209 | 
            +
                    append(...nodes: (string | Node)[]): void;
         | 
| 210 | 
            +
                    prepend(...nodes: (string | Node)[]): void;
         | 
| 211 | 
            +
                    querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
         | 
| 212 | 
            +
                    querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
         | 
| 213 | 
            +
                    querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
         | 
| 214 | 
            +
                    querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
         | 
| 215 | 
            +
                    querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
         | 
| 216 | 
            +
                    querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
         | 
| 217 | 
            +
                    replaceChildren(...nodes: (string | Node)[]): void;
         | 
| 218 | 
            +
                    readonly assignedSlot: HTMLSlotElement | null;
         | 
| 219 | 
            +
                    oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
         | 
| 220 | 
            +
                    oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
         | 
| 221 | 
            +
                    onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
         | 
| 222 | 
            +
                    readonly style: CSSStyleDeclaration;
         | 
| 223 | 
            +
                    contentEditable: string;
         | 
| 224 | 
            +
                    enterKeyHint: string;
         | 
| 225 | 
            +
                    inputMode: string;
         | 
| 226 | 
            +
                    readonly isContentEditable: boolean;
         | 
| 227 | 
            +
                    onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
         | 
| 228 | 
            +
                    onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
         | 
| 229 | 
            +
                    onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
         | 
| 230 | 
            +
                    onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
         | 
| 231 | 
            +
                    onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
         | 
| 232 | 
            +
                    onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 233 | 
            +
                    onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
         | 
| 234 | 
            +
                    onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
         | 
| 235 | 
            +
                    oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 236 | 
            +
                    oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 237 | 
            +
                    oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 238 | 
            +
                    onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 239 | 
            +
                    onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 240 | 
            +
                    onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 241 | 
            +
                    oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 242 | 
            +
                    oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 243 | 
            +
                    ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 244 | 
            +
                    ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 245 | 
            +
                    ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 246 | 
            +
                    ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 247 | 
            +
                    ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 248 | 
            +
                    ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 249 | 
            +
                    ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 250 | 
            +
                    ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
         | 
| 251 | 
            +
                    ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 252 | 
            +
                    onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 253 | 
            +
                    onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 254 | 
            +
                    onerror: OnErrorEventHandler;
         | 
| 255 | 
            +
                    onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
         | 
| 256 | 
            +
                    onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
         | 
| 257 | 
            +
                    ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 258 | 
            +
                    oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 259 | 
            +
                    oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 260 | 
            +
                    onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
         | 
| 261 | 
            +
                    onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
         | 
| 262 | 
            +
                    onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
         | 
| 263 | 
            +
                    onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 264 | 
            +
                    onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 265 | 
            +
                    onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 266 | 
            +
                    onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 267 | 
            +
                    onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 268 | 
            +
                    onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 269 | 
            +
                    onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 270 | 
            +
                    onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 271 | 
            +
                    onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 272 | 
            +
                    onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 273 | 
            +
                    onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 274 | 
            +
                    onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
         | 
| 275 | 
            +
                    onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 276 | 
            +
                    onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 277 | 
            +
                    onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 278 | 
            +
                    onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 279 | 
            +
                    onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 280 | 
            +
                    onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 281 | 
            +
                    onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 282 | 
            +
                    onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 283 | 
            +
                    onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 284 | 
            +
                    onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 285 | 
            +
                    onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
         | 
| 286 | 
            +
                    onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
         | 
| 287 | 
            +
                    onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 288 | 
            +
                    onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 289 | 
            +
                    onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
         | 
| 290 | 
            +
                    onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 291 | 
            +
                    onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
         | 
| 292 | 
            +
                    onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 293 | 
            +
                    onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 294 | 
            +
                    onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 295 | 
            +
                    onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 296 | 
            +
                    onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 297 | 
            +
                    onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 298 | 
            +
                    onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 299 | 
            +
                    onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
         | 
| 300 | 
            +
                    onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 301 | 
            +
                    ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 302 | 
            +
                    ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 303 | 
            +
                    ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
         | 
| 304 | 
            +
                    ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
         | 
| 305 | 
            +
                    ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
         | 
| 306 | 
            +
                    ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
         | 
| 307 | 
            +
                    ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
         | 
| 308 | 
            +
                    ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
         | 
| 309 | 
            +
                    ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
         | 
| 310 | 
            +
                    ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
         | 
| 311 | 
            +
                    onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 312 | 
            +
                    onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 313 | 
            +
                    onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 314 | 
            +
                    onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 315 | 
            +
                    onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 316 | 
            +
                    onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
         | 
| 317 | 
            +
                    onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
         | 
| 318 | 
            +
                    autofocus: boolean;
         | 
| 319 | 
            +
                    readonly dataset: DOMStringMap;
         | 
| 320 | 
            +
                    nonce?: string | undefined;
         | 
| 321 | 
            +
                    tabIndex: number;
         | 
| 322 | 
            +
                    blur(): void;
         | 
| 323 | 
            +
                    focus(options?: FocusOptions | undefined): void;
         | 
| 324 | 
            +
                };
         | 
| 325 | 
            +
                _hostListeners: {
         | 
| 326 | 
            +
                    [listenerName: string]: {
         | 
| 327 | 
            +
                        [type: string]: {
         | 
| 328 | 
            +
                            options?: boolean | AddEventListenerOptions | undefined;
         | 
| 329 | 
            +
                        };
         | 
| 330 | 
            +
                    };
         | 
| 331 | 
            +
                };
         | 
| 332 | 
            +
            } & typeof LitElement;
         | 
| 333 | 
            +
            declare class CDSUseravatar extends CDSUseravatar_base {
         | 
| 334 | 
            +
                /**
         | 
| 335 | 
            +
                 * Specify the text of the tooltip.
         | 
| 336 | 
            +
                 * Can be string
         | 
| 337 | 
            +
                 */
         | 
| 338 | 
            +
                tooltipText: any;
         | 
| 339 | 
            +
                /**
         | 
| 340 | 
            +
                 * Specify the alignment of the tooltip.
         | 
| 341 | 
            +
                 */
         | 
| 342 | 
            +
                tooltipAlignment: string;
         | 
| 343 | 
            +
                /**
         | 
| 344 | 
            +
                 * When passing the name prop, either send the initials to be used or the user's full name. The first two capital letters of the user's name will be used as the name.
         | 
| 345 | 
            +
                 */
         | 
| 346 | 
            +
                name: any;
         | 
| 347 | 
            +
                /**
         | 
| 348 | 
            +
                 * Provide a custom icon to use if you need to use an icon other than the default one
         | 
| 349 | 
            +
                 */
         | 
| 350 | 
            +
                renderIcon: any;
         | 
| 351 | 
            +
                /**
         | 
| 352 | 
            +
                 * Set the size of the avatar circle
         | 
| 353 | 
            +
                 */
         | 
| 354 | 
            +
                size: any;
         | 
| 355 | 
            +
                /**
         | 
| 356 | 
            +
                 * When passing the image prop, supply a full path to the image to be displayed.
         | 
| 357 | 
            +
                 */
         | 
| 358 | 
            +
                image: any;
         | 
| 359 | 
            +
                /**
         | 
| 360 | 
            +
                 * When passing the image prop use the imageDescription prop to describe the image for screen reader.
         | 
| 361 | 
            +
                 */
         | 
| 362 | 
            +
                imageDescription: any;
         | 
| 363 | 
            +
                /**
         | 
| 364 | 
            +
                 * Provide the background color need to be set for UserAvatar.
         | 
| 365 | 
            +
                 */
         | 
| 366 | 
            +
                backgroundColor: string;
         | 
| 367 | 
            +
                /**
         | 
| 368 | 
            +
                 * Set theme in which the component will be rendered.
         | 
| 369 | 
            +
                 */
         | 
| 370 | 
            +
                theme: any;
         | 
| 371 | 
            +
                render(): import("lit-html").TemplateResult<1>;
         | 
| 372 | 
            +
                static styles: any;
         | 
| 373 | 
            +
            }
         | 
| 374 | 
            +
            export default CDSUseravatar;
         | 
    
        package/lib/index.d.ts
    CHANGED
    
    
    
        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.10.0-rc.0",
         | 
| 5 5 | 
             
              "license": "Apache-2.0",
         | 
| 6 6 | 
             
              "main": "es/index.js",
         | 
| 7 7 | 
             
              "module": "es/index.js",
         | 
| @@ -49,14 +49,14 @@ | |
| 49 49 | 
             
                "coverage": "vitest run --coverage"
         | 
| 50 50 | 
             
              },
         | 
| 51 51 | 
             
              "dependencies": {
         | 
| 52 | 
            -
                "@carbon/ibm-products-styles": "^2. | 
| 53 | 
            -
                "@carbon/styles": "1. | 
| 54 | 
            -
                "@carbon/web-components": "2. | 
| 52 | 
            +
                "@carbon/ibm-products-styles": "^2.57.0-rc.0",
         | 
| 53 | 
            +
                "@carbon/styles": "1.75.0",
         | 
| 54 | 
            +
                "@carbon/web-components": "2.23.0",
         | 
| 55 55 | 
             
                "lit": "^3.1.0"
         | 
| 56 56 | 
             
              },
         | 
| 57 57 | 
             
              "devDependencies": {
         | 
| 58 58 | 
             
                "@carbon/icon-helpers": "^10.54.0",
         | 
| 59 | 
            -
                "@carbon/icons": "^11. | 
| 59 | 
            +
                "@carbon/icons": "^11.55.0",
         | 
| 60 60 | 
             
                "@carbon/motion": "^11.24.0",
         | 
| 61 61 | 
             
                "@mordech/vite-lit-loader": "^0.35.0",
         | 
| 62 62 | 
             
                "@rollup/plugin-alias": "^5.1.1",
         | 
| @@ -96,5 +96,5 @@ | |
| 96 96 | 
             
                "vitest": "^3.0.1",
         | 
| 97 97 | 
             
                "web-component-analyzer": "2.0.0"
         | 
| 98 98 | 
             
              },
         | 
| 99 | 
            -
              "gitHead": " | 
| 99 | 
            +
              "gitHead": "42105e25737b74016cd80bcf1f76aeee6ee96cdf"
         | 
| 100 100 | 
             
            }
         | 
| @@ -0,0 +1,10 @@ | |
| 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 | 
            +
            @use '@carbon/styles/scss/theme' as *;
         | 
| 8 | 
            +
            @use '@carbon/styles/scss/spacing' as *;
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            $story-prefix: 'user-avatar-stories__';
         | 
| @@ -0,0 +1,74 @@ | |
| 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 | 
            +
            /* Other Carbon settings. */
         | 
| 11 | 
            +
            @use '@carbon/styles/scss/reset';
         | 
| 12 | 
            +
            @use '@carbon/styles/scss/breakpoint' as *;
         | 
| 13 | 
            +
            @use '@carbon/styles/scss/config' as *;
         | 
| 14 | 
            +
            @use '@carbon/styles/scss/motion' as *;
         | 
| 15 | 
            +
            @use '@carbon/styles/scss/spacing' as *;
         | 
| 16 | 
            +
            @use '@carbon/styles/scss/theme' as *;
         | 
| 17 | 
            +
            @use '@carbon/styles/scss/type';
         | 
| 18 | 
            +
            @use '@carbon/styles/scss/colors' as *;
         | 
| 19 | 
            +
            @use '@carbon/styles/scss/layout' as *;
         | 
| 20 | 
            +
            @use '@carbon/styles/scss/utilities';
         | 
| 21 | 
            +
            @use 'sass:map';
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            @use '@carbon/ibm-products-styles/scss/components/UserAvatar/index' as *;
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            $prefix: 'c4p';
         | 
| 26 | 
            +
            $carbon-prefix: 'cds';
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            $block-class: #{$prefix}--user-avatar;
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            :host(#{$prefix}-user-avatar) {
         | 
| 31 | 
            +
              @extend .#{$block-class};
         | 
| 32 | 
            +
              @extend .#{$block-class}__tooltip;
         | 
| 33 | 
            +
            }
         | 
| 34 | 
            +
            @mixin setBgColor($color) {
         | 
| 35 | 
            +
              // stylelint-disable-next-line carbon/theme-use
         | 
| 36 | 
            +
              background-color: $color;
         | 
| 37 | 
            +
            }
         | 
| 38 | 
            +
             | 
| 39 | 
            +
            //this mixin allows you to set background color based on the lighter themes such as g10 and white
         | 
| 40 | 
            +
            @mixin setLightBg($order, $color) {
         | 
| 41 | 
            +
              :host(#{$prefix}-user-avatar) .#{$block-class}--#{$order},
         | 
| 42 | 
            +
              :host(#{$prefix}-user-avatar[theme='light']) .#{$block-class}--#{$order} {
         | 
| 43 | 
            +
                @include setBgColor($color);
         | 
| 44 | 
            +
              }
         | 
| 45 | 
            +
            }
         | 
| 46 | 
            +
            @mixin setDarkBg($order, $color) {
         | 
| 47 | 
            +
              :host(#{$prefix}-user-avatar[theme='dark']) .#{$block-class}--#{$order} {
         | 
| 48 | 
            +
                @include setBgColor($color);
         | 
| 49 | 
            +
              }
         | 
| 50 | 
            +
            }
         | 
| 51 | 
            +
            @include setLightBg(order-1-cyan, $cyan-60);
         | 
| 52 | 
            +
            @include setLightBg(order-2-gray, $gray-60);
         | 
| 53 | 
            +
            @include setLightBg(order-3-green, $green-60);
         | 
| 54 | 
            +
            @include setLightBg(order-4-magenta, $magenta-60);
         | 
| 55 | 
            +
            @include setLightBg(order-5-purple, $purple-60);
         | 
| 56 | 
            +
            @include setLightBg(order-6-teal, $teal-60);
         | 
| 57 | 
            +
            @include setLightBg(order-7-cyan, $cyan-80);
         | 
| 58 | 
            +
            @include setLightBg(order-8-gray, $gray-80);
         | 
| 59 | 
            +
            @include setLightBg(order-9-green, $green-80);
         | 
| 60 | 
            +
            @include setLightBg(order-10-magenta, $magenta-80);
         | 
| 61 | 
            +
            @include setLightBg(order-11-purple, $purple-80);
         | 
| 62 | 
            +
            @include setLightBg(order-12-teal, $teal-80);
         | 
| 63 | 
            +
            @include setDarkBg(order-1-cyan, $cyan-50);
         | 
| 64 | 
            +
            @include setDarkBg(order-2-gray, $gray-50);
         | 
| 65 | 
            +
            @include setDarkBg(order-3-green, $green-50);
         | 
| 66 | 
            +
            @include setDarkBg(order-4-magenta, $magenta-50);
         | 
| 67 | 
            +
            @include setDarkBg(order-5-purple, $purple-50);
         | 
| 68 | 
            +
            @include setDarkBg(order-6-teal, $teal-50);
         | 
| 69 | 
            +
            @include setDarkBg(order-7-cyan, $cyan-30);
         | 
| 70 | 
            +
            @include setDarkBg(order-8-gray, $gray-30);
         | 
| 71 | 
            +
            @include setDarkBg(order-9-green, $green-30);
         | 
| 72 | 
            +
            @include setDarkBg(order-10-magenta, $magenta-30);
         | 
| 73 | 
            +
            @include setDarkBg(order-11-purple, $purple-30);
         | 
| 74 | 
            +
            @include setDarkBg(order-12-teal, $teal-30);
         |