@carbon/ibm-products-web-components 0.27.0 → 0.28.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/README.md +85 -0
- package/custom-elements.json +128 -10
- package/es/components/about-modal/about-modal.d.ts +28 -16
- package/es/components/about-modal/about-modal.figma.d.ts +7 -0
- package/es/components/about-modal/about-modal.figma.js +52 -0
- package/es/components/about-modal/about-modal.figma.js.map +1 -0
- package/es/components/about-modal/about-modal.scss.js +1 -1
- package/es/components/checklist/checklist.scss.js +1 -1
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +27 -11
- package/es/components/full-page-error/full-page-error.figma.d.ts +1 -0
- package/es/components/full-page-error/full-page-error.figma.js +69 -0
- package/es/components/full-page-error/full-page-error.figma.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.d.ts +27 -11
- package/es/components/interstitial-screen/interstitial-screen-body.d.ts +27 -11
- package/es/components/interstitial-screen/interstitial-screen-footer.d.ts +27 -11
- package/es/components/interstitial-screen/interstitial-screen-header.d.ts +27 -11
- package/es/components/interstitial-screen/interstitial-screen.d.ts +27 -11
- package/es/components/notification-panel/notification-footer.d.ts +27 -11
- package/es/components/notification-panel/notification-panel.d.ts +27 -11
- package/es/components/notification-panel/notification.d.ts +27 -11
- package/es/components/notification-panel/notification.scss.js +1 -1
- package/es/components/options-tile/options-tile.d.ts +27 -11
- package/es/components/page-header/_story-assets/2x1.jpg.js +11 -0
- package/es/components/page-header/_story-assets/2x1.jpg.js.map +1 -0
- package/es/components/page-header/_story-assets/3x2.jpg.js +11 -0
- package/es/components/page-header/_story-assets/3x2.jpg.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
- package/es/components/page-header/page-header.scss.js +1 -1
- package/es/components/page-header/page-header.test.js +57 -69
- package/es/components/page-header/page-header.test.js.map +1 -1
- package/es/components/side-panel/side-panel.d.ts +27 -11
- package/es/components/side-panel/side-panel.scss.js +1 -1
- package/es/components/tearsheet/tearsheet.d.ts +27 -11
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/components/user-avatar/user-avatar.d.ts +27 -11
- package/es/components/user-avatar/user-avatar.figma.d.ts +7 -0
- package/es/components/user-avatar/user-avatar.figma.js +136 -0
- package/es/components/user-avatar/user-avatar.figma.js.map +1 -0
- package/es/node_modules/@carbon/layout/es/index.js +44 -0
- package/es/node_modules/@carbon/layout/es/index.js.map +1 -0
- package/es/packages/ibm-products-web-components/package.json.js +1 -1
- package/es-custom/components/about-modal/about-modal.d.ts +28 -16
- package/es-custom/components/about-modal/about-modal.figma.d.ts +7 -0
- package/es-custom/components/about-modal/about-modal.figma.js +52 -0
- package/es-custom/components/about-modal/about-modal.figma.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.scss.js +1 -1
- package/es-custom/components/checklist/checklist.scss.js +1 -1
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +27 -11
- package/es-custom/components/full-page-error/full-page-error.figma.d.ts +1 -0
- package/es-custom/components/full-page-error/full-page-error.figma.js +69 -0
- package/es-custom/components/full-page-error/full-page-error.figma.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.d.ts +27 -11
- package/es-custom/components/interstitial-screen/interstitial-screen-body.d.ts +27 -11
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.d.ts +27 -11
- package/es-custom/components/interstitial-screen/interstitial-screen-header.d.ts +27 -11
- package/es-custom/components/interstitial-screen/interstitial-screen.d.ts +27 -11
- package/es-custom/components/notification-panel/notification-footer.d.ts +27 -11
- package/es-custom/components/notification-panel/notification-panel.d.ts +27 -11
- package/es-custom/components/notification-panel/notification.d.ts +27 -11
- package/es-custom/components/notification-panel/notification.scss.js +1 -1
- package/es-custom/components/options-tile/options-tile.d.ts +27 -11
- package/es-custom/components/page-header/_story-assets/2x1.jpg.js +11 -0
- package/es-custom/components/page-header/_story-assets/2x1.jpg.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/3x2.jpg.js +11 -0
- package/es-custom/components/page-header/_story-assets/3x2.jpg.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
- package/es-custom/components/page-header/page-header.scss.js +1 -1
- package/es-custom/components/page-header/page-header.test.js +57 -69
- package/es-custom/components/page-header/page-header.test.js.map +1 -1
- package/es-custom/components/side-panel/side-panel.d.ts +27 -11
- package/es-custom/components/side-panel/side-panel.scss.js +1 -1
- package/es-custom/components/tearsheet/tearsheet.d.ts +27 -11
- package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
- package/es-custom/components/user-avatar/user-avatar.d.ts +27 -11
- package/es-custom/components/user-avatar/user-avatar.figma.d.ts +7 -0
- package/es-custom/components/user-avatar/user-avatar.figma.js +136 -0
- package/es-custom/components/user-avatar/user-avatar.figma.js.map +1 -0
- package/es-custom/node_modules/@carbon/layout/es/index.js +44 -0
- package/es-custom/node_modules/@carbon/layout/es/index.js.map +1 -0
- package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
- package/lib/components/about-modal/about-modal.d.ts +28 -16
- package/lib/components/about-modal/about-modal.figma.d.ts +7 -0
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +27 -11
- package/lib/components/full-page-error/full-page-error.figma.d.ts +1 -0
- package/lib/components/interstitial-screen/interstitial-screen-body-item.d.ts +27 -11
- package/lib/components/interstitial-screen/interstitial-screen-body.d.ts +27 -11
- package/lib/components/interstitial-screen/interstitial-screen-footer.d.ts +27 -11
- package/lib/components/interstitial-screen/interstitial-screen-header.d.ts +27 -11
- package/lib/components/interstitial-screen/interstitial-screen.d.ts +27 -11
- package/lib/components/notification-panel/notification-footer.d.ts +27 -11
- package/lib/components/notification-panel/notification-panel.d.ts +27 -11
- package/lib/components/notification-panel/notification.d.ts +27 -11
- package/lib/components/options-tile/options-tile.d.ts +27 -11
- package/lib/components/side-panel/side-panel.d.ts +27 -11
- package/lib/components/tearsheet/tearsheet.d.ts +27 -11
- package/lib/components/user-avatar/user-avatar.d.ts +27 -11
- package/lib/components/user-avatar/user-avatar.figma.d.ts +7 -0
- package/package.json +14 -12
- package/scss/components/page-header/_story-assets/set-of-tags/set-of-tags.scss +2 -0
- package/scss/components/truncated-text/truncated-text.scss +0 -1
|
@@ -16,6 +16,7 @@ declare const CDSUseravatar_base: {
|
|
|
16
16
|
accessKey: string;
|
|
17
17
|
readonly accessKeyLabel: string;
|
|
18
18
|
autocapitalize: string;
|
|
19
|
+
autocorrect: boolean;
|
|
19
20
|
dir: string;
|
|
20
21
|
draggable: boolean;
|
|
21
22
|
hidden: boolean;
|
|
@@ -37,13 +38,14 @@ declare const CDSUseravatar_base: {
|
|
|
37
38
|
click(): void;
|
|
38
39
|
hidePopover(): void;
|
|
39
40
|
showPopover(): void;
|
|
40
|
-
togglePopover(
|
|
41
|
+
togglePopover(options?: boolean): boolean;
|
|
41
42
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
42
43
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
43
44
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
44
45
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
45
46
|
readonly attributes: NamedNodeMap;
|
|
46
|
-
|
|
47
|
+
get classList(): DOMTokenList;
|
|
48
|
+
set classList(value: string): any;
|
|
47
49
|
className: string;
|
|
48
50
|
readonly clientHeight: number;
|
|
49
51
|
readonly clientLeft: number;
|
|
@@ -58,7 +60,8 @@ declare const CDSUseravatar_base: {
|
|
|
58
60
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
59
61
|
outerHTML: string;
|
|
60
62
|
readonly ownerDocument: Document;
|
|
61
|
-
|
|
63
|
+
get part(): DOMTokenList;
|
|
64
|
+
set part(value: string): any;
|
|
62
65
|
readonly prefix: string | null;
|
|
63
66
|
readonly scrollHeight: number;
|
|
64
67
|
scrollLeft: number;
|
|
@@ -121,6 +124,8 @@ declare const CDSUseravatar_base: {
|
|
|
121
124
|
setPointerCapture(pointerId: number): void;
|
|
122
125
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
123
126
|
webkitMatchesSelector(selectors: string): boolean;
|
|
127
|
+
get textContent(): string;
|
|
128
|
+
set textContent(value: string | null): any;
|
|
124
129
|
readonly baseURI: string;
|
|
125
130
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
126
131
|
readonly firstChild: ChildNode | null;
|
|
@@ -133,9 +138,8 @@ declare const CDSUseravatar_base: {
|
|
|
133
138
|
readonly parentElement: HTMLElement | null;
|
|
134
139
|
readonly parentNode: ParentNode | null;
|
|
135
140
|
readonly previousSibling: ChildNode | null;
|
|
136
|
-
textContent: string | null;
|
|
137
141
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
138
|
-
cloneNode(
|
|
142
|
+
cloneNode(subtree?: boolean): Node;
|
|
139
143
|
compareDocumentPosition(other: Node): number;
|
|
140
144
|
contains(other: Node | null): boolean;
|
|
141
145
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -168,6 +172,7 @@ declare const CDSUseravatar_base: {
|
|
|
168
172
|
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
169
173
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
170
174
|
dispatchEvent(event: Event): boolean;
|
|
175
|
+
ariaActiveDescendantElement: Element | null;
|
|
171
176
|
ariaAtomic: string | null;
|
|
172
177
|
ariaAutoComplete: string | null;
|
|
173
178
|
ariaBrailleLabel: string | null;
|
|
@@ -178,25 +183,33 @@ declare const CDSUseravatar_base: {
|
|
|
178
183
|
ariaColIndex: string | null;
|
|
179
184
|
ariaColIndexText: string | null;
|
|
180
185
|
ariaColSpan: string | null;
|
|
186
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
181
187
|
ariaCurrent: string | null;
|
|
188
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
182
189
|
ariaDescription: string | null;
|
|
190
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
183
191
|
ariaDisabled: string | null;
|
|
192
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
184
193
|
ariaExpanded: string | null;
|
|
194
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
185
195
|
ariaHasPopup: string | null;
|
|
186
196
|
ariaHidden: string | null;
|
|
187
197
|
ariaInvalid: string | null;
|
|
188
198
|
ariaKeyShortcuts: string | null;
|
|
189
199
|
ariaLabel: string | null;
|
|
200
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
190
201
|
ariaLevel: string | null;
|
|
191
202
|
ariaLive: string | null;
|
|
192
203
|
ariaModal: string | null;
|
|
193
204
|
ariaMultiLine: string | null;
|
|
194
205
|
ariaMultiSelectable: string | null;
|
|
195
206
|
ariaOrientation: string | null;
|
|
207
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
196
208
|
ariaPlaceholder: string | null;
|
|
197
209
|
ariaPosInSet: string | null;
|
|
198
210
|
ariaPressed: string | null;
|
|
199
211
|
ariaReadOnly: string | null;
|
|
212
|
+
ariaRelevant: string | null;
|
|
200
213
|
ariaRequired: string | null;
|
|
201
214
|
ariaRoleDescription: string | null;
|
|
202
215
|
ariaRowCount: string | null;
|
|
@@ -238,7 +251,8 @@ declare const CDSUseravatar_base: {
|
|
|
238
251
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
239
252
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
240
253
|
readonly attributeStyleMap: StylePropertyMap;
|
|
241
|
-
|
|
254
|
+
get style(): CSSStyleDeclaration;
|
|
255
|
+
set style(cssText: string): any;
|
|
242
256
|
contentEditable: string;
|
|
243
257
|
enterKeyHint: string;
|
|
244
258
|
inputMode: string;
|
|
@@ -248,18 +262,19 @@ declare const CDSUseravatar_base: {
|
|
|
248
262
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
249
263
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
250
264
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
251
|
-
onauxclick: ((this: GlobalEventHandlers, ev:
|
|
265
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
252
266
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
253
|
-
|
|
267
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
268
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
254
269
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
255
270
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
256
271
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
257
272
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
258
273
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
259
|
-
onclick: ((this: GlobalEventHandlers, ev:
|
|
274
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
260
275
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
261
276
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev:
|
|
277
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
263
278
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
264
279
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
265
280
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -307,6 +322,7 @@ declare const CDSUseravatar_base: {
|
|
|
307
322
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
308
323
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
309
324
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
325
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
310
326
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
311
327
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
312
328
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -325,7 +341,7 @@ declare const CDSUseravatar_base: {
|
|
|
325
341
|
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
326
342
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
343
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
-
ontoggle: ((this: GlobalEventHandlers, ev:
|
|
344
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
329
345
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
330
346
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
331
347
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -0,0 +1,136 @@
|
|
|
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 figma, { html } from '@figma/code-connect/html';
|
|
9
|
+
import './user-avatar.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Copyright IBM Corp. 2025, 2025
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/
|
|
17
|
+
const sharedProps = {
|
|
18
|
+
name: figma.string('Initials text'),
|
|
19
|
+
size: figma.enum('Size', {
|
|
20
|
+
'Extra large': 'xl',
|
|
21
|
+
Large: 'lg',
|
|
22
|
+
Medium: 'md',
|
|
23
|
+
Small: 'sm',
|
|
24
|
+
}),
|
|
25
|
+
tooltipProps: figma.nestedProps('Tooltip', {
|
|
26
|
+
text: figma.string('Tooltip text'),
|
|
27
|
+
tooltipAlignment: figma.enum('🚫 Position', {
|
|
28
|
+
Top: 'top',
|
|
29
|
+
Right: 'right',
|
|
30
|
+
Bottom: 'bottom',
|
|
31
|
+
Left: 'left',
|
|
32
|
+
}),
|
|
33
|
+
}),
|
|
34
|
+
bgProps: figma.nestedProps('Background', {
|
|
35
|
+
color: figma.enum('Color', {
|
|
36
|
+
Cyan: figma.enum('Sequence', {
|
|
37
|
+
Primary: 'order-1-cyan',
|
|
38
|
+
Secondary: 'order-7-cyan',
|
|
39
|
+
}),
|
|
40
|
+
Gray: figma.enum('Sequence', {
|
|
41
|
+
Primary: 'order-2-gray',
|
|
42
|
+
Secondary: 'order-8-gray',
|
|
43
|
+
}),
|
|
44
|
+
Green: figma.enum('Sequence', {
|
|
45
|
+
Primary: 'order-3-green',
|
|
46
|
+
Secondary: 'order-9-green',
|
|
47
|
+
}),
|
|
48
|
+
Magenta: figma.enum('Sequence', {
|
|
49
|
+
Primary: 'order-4-magenta',
|
|
50
|
+
Secondary: 'order-10-magenta',
|
|
51
|
+
}),
|
|
52
|
+
Purple: figma.enum('Sequence', {
|
|
53
|
+
Primary: 'order-5-purple',
|
|
54
|
+
Secondary: 'order-11-purple',
|
|
55
|
+
}),
|
|
56
|
+
Teal: figma.enum('Sequence', {
|
|
57
|
+
Primary: 'order-6-teal',
|
|
58
|
+
Secondary: 'order-12-teal',
|
|
59
|
+
}),
|
|
60
|
+
}),
|
|
61
|
+
}),
|
|
62
|
+
Type: figma.enum('Type', {
|
|
63
|
+
'Single user': 'User',
|
|
64
|
+
'User group': 'Group',
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
67
|
+
figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4', {
|
|
68
|
+
variant: { Type: 'Image' },
|
|
69
|
+
props: sharedProps,
|
|
70
|
+
example: ({ tooltipProps, name, size }) => html `<c4p-user-avatar
|
|
71
|
+
tooltip-alignment=${tooltipProps.tooltipAlignment}
|
|
72
|
+
tooltip-text=${tooltipProps.text}
|
|
73
|
+
name=${name}
|
|
74
|
+
size=${size}
|
|
75
|
+
image="/path/to/image"
|
|
76
|
+
image-description="Alt text for image"
|
|
77
|
+
>
|
|
78
|
+
</c4p-user-avatar> `,
|
|
79
|
+
imports: [
|
|
80
|
+
"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'",
|
|
81
|
+
],
|
|
82
|
+
});
|
|
83
|
+
figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4', {
|
|
84
|
+
variant: { Type: 'Initials' },
|
|
85
|
+
props: sharedProps,
|
|
86
|
+
example: ({ tooltipProps, name, size, bgProps }) => html `<c4p-user-avatar
|
|
87
|
+
tooltip-alignment=${tooltipProps.tooltipAlignment}
|
|
88
|
+
tooltip-text=${tooltipProps.text}
|
|
89
|
+
name=${name}
|
|
90
|
+
size=${size}
|
|
91
|
+
background-color=${bgProps.color}
|
|
92
|
+
>
|
|
93
|
+
</c4p-user-avatar> `,
|
|
94
|
+
imports: [
|
|
95
|
+
"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'",
|
|
96
|
+
],
|
|
97
|
+
});
|
|
98
|
+
figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4', {
|
|
99
|
+
variant: { Type: 'Single user' },
|
|
100
|
+
props: sharedProps,
|
|
101
|
+
example: ({ tooltipProps, name, size, bgProps, Type }) => html `<c4p-user-avatar
|
|
102
|
+
tooltip-alignment=${tooltipProps.tooltipAlignment}
|
|
103
|
+
tooltip-text=${tooltipProps.text}
|
|
104
|
+
name=${name}
|
|
105
|
+
size=${size}
|
|
106
|
+
background-color=${bgProps.color}
|
|
107
|
+
>
|
|
108
|
+
<!-- Icon loaded via iconLoader helper from '@carbon/web-components' -->
|
|
109
|
+
\${iconLoader(${Type}, { slot: 'rendericon' })}
|
|
110
|
+
</c4p-user-avatar> `,
|
|
111
|
+
imports: [
|
|
112
|
+
"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'",
|
|
113
|
+
"import iconLoader from '@carbon/web-components/es/globals/internal/icon-loader.js'",
|
|
114
|
+
"import User from '@carbon/icons/es/user/16'",
|
|
115
|
+
],
|
|
116
|
+
});
|
|
117
|
+
figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4', {
|
|
118
|
+
variant: { Type: 'User group' },
|
|
119
|
+
props: sharedProps,
|
|
120
|
+
example: ({ tooltipProps, name, size, bgProps, Type }) => html `<c4p-user-avatar
|
|
121
|
+
tooltip-alignment=${tooltipProps.tooltipAlignment}
|
|
122
|
+
tooltip-text=${tooltipProps.text}
|
|
123
|
+
name=${name}
|
|
124
|
+
size=${size}
|
|
125
|
+
background-color=${bgProps.color}
|
|
126
|
+
>
|
|
127
|
+
<!-- Icon loaded via iconLoader helper from '@carbon/web-components' -->
|
|
128
|
+
\${iconLoader(${Type}, { slot: 'rendericon' })}
|
|
129
|
+
</c4p-user-avatar> `,
|
|
130
|
+
imports: [
|
|
131
|
+
"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'",
|
|
132
|
+
"import iconLoader from '@carbon/web-components/es/globals/internal/icon-loader.js'",
|
|
133
|
+
"import Group from '@carbon/icons/es/group/16'",
|
|
134
|
+
],
|
|
135
|
+
});
|
|
136
|
+
//# sourceMappingURL=user-avatar.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-avatar.figma.js","sources":["../../../src/components/user-avatar/user-avatar.figma.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Copyright IBM Corp. 2018, 2023
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Copyright IBM Corp. 2018, 2023
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
// Convert
|
|
25
|
+
// Default, Use with em() and rem() functions
|
|
26
|
+
var baseFontSize = 16;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Convert a given px unit to a rem unit
|
|
30
|
+
* @param {number} px
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
function rem(px) {
|
|
34
|
+
return "".concat(px / baseFontSize, "rem");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Breakpoint
|
|
38
|
+
// Initial map of our breakpoints and their values
|
|
39
|
+
var breakpoints = {
|
|
40
|
+
lg: {
|
|
41
|
+
width: rem(1056)}};
|
|
42
|
+
|
|
43
|
+
export { baseFontSize, breakpoints, rem };
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/@carbon/layout/es/index.js"],"sourcesContent":["/**\n * Copyright IBM Corp. 2018, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar unstable_tokens = [\n// Spacing\n'spacing01', 'spacing02', 'spacing03', 'spacing04', 'spacing05', 'spacing06', 'spacing07', 'spacing08', 'spacing09', 'spacing10', 'spacing11', 'spacing12', 'spacing13',\n// Fluid spacing\n'fluidSpacing01', 'fluidSpacing02', 'fluidSpacing03', 'fluidSpacing04',\n// Containers\n'container01', 'container02', 'container03', 'container04', 'container05', 'sizeXSmall', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'sizeXLarge', 'size2XLarge',\n// Icon sizes\n'iconSize01', 'iconSize02',\n// Layout\n// Deprecated\n'layout01', 'layout02', 'layout03', 'layout04', 'layout05', 'layout06', 'layout07'];\n\n/**\n * Copyright IBM Corp. 2018, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n// Convert\n// Default, Use with em() and rem() functions\nvar baseFontSize = 16;\n\n/**\n * Convert a given px unit to a rem unit\n * @param {number} px\n * @returns {string}\n */\nfunction rem(px) {\n return \"\".concat(px / baseFontSize, \"rem\");\n}\n\n/**\n * Convert a given px unit to a em unit\n * @param {number} px\n * @returns {string}\n */\nfunction em(px) {\n return \"\".concat(px / baseFontSize, \"em\");\n}\n\n/**\n * Convert a given px unit to its string representation\n * @param {number} value - number of pixels\n * @returns {string}\n */\nfunction px(value) {\n return \"\".concat(value, \"px\");\n}\n\n// Breakpoint\n// Initial map of our breakpoints and their values\nvar breakpoints = {\n sm: {\n width: rem(320),\n columns: 4,\n margin: '0'\n },\n md: {\n width: rem(672),\n columns: 8,\n margin: rem(16)\n },\n lg: {\n width: rem(1056),\n columns: 16,\n margin: rem(16)\n },\n xlg: {\n width: rem(1312),\n columns: 16,\n margin: rem(16)\n },\n max: {\n width: rem(1584),\n columns: 16,\n margin: rem(24)\n }\n};\nfunction breakpointUp(name) {\n return \"@media (min-width: \".concat(breakpoints[name].width, \")\");\n}\nfunction breakpointDown(name) {\n return \"@media (max-width: \".concat(breakpoints[name].width, \")\");\n}\nfunction breakpoint() {\n return breakpointUp.apply(void 0, arguments);\n}\n\n// Mini-unit\nvar miniUnit = 8;\nfunction miniUnits(count) {\n return rem(miniUnit * count);\n}\n\n// Spacing\nvar spacing01 = miniUnits(0.25);\nvar spacing02 = miniUnits(0.5);\nvar spacing03 = miniUnits(1);\nvar spacing04 = miniUnits(1.5);\nvar spacing05 = miniUnits(2);\nvar spacing06 = miniUnits(3);\nvar spacing07 = miniUnits(4);\nvar spacing08 = miniUnits(5);\nvar spacing09 = miniUnits(6);\nvar spacing10 = miniUnits(8);\nvar spacing11 = miniUnits(10);\nvar spacing12 = miniUnits(12);\nvar spacing13 = miniUnits(20);\nvar spacing = [spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13];\n\n// Fluid spacing\nvar fluidSpacing01 = 0;\nvar fluidSpacing02 = '2vw';\nvar fluidSpacing03 = '5vw';\nvar fluidSpacing04 = '10vw';\nvar fluidSpacing = [fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04];\n\n// Layout\n// Deprecated\nvar layout01 = miniUnits(2);\nvar layout02 = miniUnits(3);\nvar layout03 = miniUnits(4);\nvar layout04 = miniUnits(6);\nvar layout05 = miniUnits(8);\nvar layout06 = miniUnits(12);\nvar layout07 = miniUnits(20);\nvar layout = [layout01, layout02, layout03, layout04, layout05, layout06, layout07];\n\n// Container\nvar container01 = miniUnits(3);\nvar container02 = miniUnits(4);\nvar container03 = miniUnits(5);\nvar container04 = miniUnits(6);\nvar container05 = miniUnits(8);\nvar container = [container01, container02, container03, container04, container05];\nvar sizeXSmall = rem(24);\nvar sizeSmall = rem(32);\nvar sizeMedium = rem(40);\nvar sizeLarge = rem(48);\nvar sizeXLarge = rem(64);\nvar size2XLarge = rem(80);\nvar sizes = {\n XSmall: sizeXSmall,\n Small: sizeSmall,\n Medium: sizeMedium,\n Large: sizeLarge,\n XLarge: sizeXLarge,\n '2XLarge': size2XLarge\n};\n\n// Icon\nvar iconSize01 = '1rem';\nvar iconSize02 = '1.25rem';\nvar iconSize = [iconSize01, iconSize02];\n\nexport { baseFontSize, breakpoint, breakpointDown, breakpointUp, breakpoints, container, container01, container02, container03, container04, container05, em, fluidSpacing, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, iconSize, iconSize01, iconSize02, layout, layout01, layout02, layout03, layout04, layout05, layout06, layout07, miniUnit, miniUnits, px, rem, size2XLarge, sizeLarge, sizeMedium, sizeSmall, sizeXLarge, sizeXSmall, sizes, spacing, spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13, unstable_tokens };\n"],"names":[],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAeA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACG,IAAC,YAAY,GAAG;;AAEnB;AACA;AACA;AACA;AACA;AACA,SAAS,GAAG,CAAC,EAAE,EAAE;AACjB,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,YAAY,EAAE,KAAK,CAAC;AAC5C;;AAoBA;AACA;AACG,IAAC,WAAW,GAAG;AAClB,EAUE,EAAE,EAAE;AACN,IAAI,KAAK,EAAE,GAAG,CAAC,IAAI,CAGjB,CAWF;;;;","x_google_ignoreList":[0]}
|
|
@@ -17,6 +17,7 @@ declare const CDSAboutModal_base: {
|
|
|
17
17
|
accessKey: string;
|
|
18
18
|
readonly accessKeyLabel: string;
|
|
19
19
|
autocapitalize: string;
|
|
20
|
+
autocorrect: boolean;
|
|
20
21
|
dir: string;
|
|
21
22
|
draggable: boolean;
|
|
22
23
|
hidden: boolean;
|
|
@@ -38,17 +39,14 @@ declare const CDSAboutModal_base: {
|
|
|
38
39
|
click(): void;
|
|
39
40
|
hidePopover(): void;
|
|
40
41
|
showPopover(): void;
|
|
41
|
-
togglePopover(
|
|
42
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options
|
|
43
|
-
/**
|
|
44
|
-
* Determines if About Modal is open or not.
|
|
45
|
-
*/
|
|
46
|
-
?: boolean | AddEventListenerOptions): void;
|
|
42
|
+
togglePopover(options?: boolean): boolean;
|
|
43
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
47
44
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
48
45
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
49
46
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
50
47
|
readonly attributes: NamedNodeMap;
|
|
51
|
-
|
|
48
|
+
get classList(): DOMTokenList;
|
|
49
|
+
set classList(value: string): any;
|
|
52
50
|
className: string;
|
|
53
51
|
readonly clientHeight: number;
|
|
54
52
|
readonly clientLeft: number;
|
|
@@ -63,7 +61,8 @@ declare const CDSAboutModal_base: {
|
|
|
63
61
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
64
62
|
outerHTML: string;
|
|
65
63
|
readonly ownerDocument: Document;
|
|
66
|
-
|
|
64
|
+
get part(): DOMTokenList;
|
|
65
|
+
set part(value: string): any;
|
|
67
66
|
readonly prefix: string | null;
|
|
68
67
|
readonly scrollHeight: number;
|
|
69
68
|
scrollLeft: number;
|
|
@@ -126,6 +125,8 @@ declare const CDSAboutModal_base: {
|
|
|
126
125
|
setPointerCapture(pointerId: number): void;
|
|
127
126
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
128
127
|
webkitMatchesSelector(selectors: string): boolean;
|
|
128
|
+
get textContent(): string;
|
|
129
|
+
set textContent(value: string | null): any;
|
|
129
130
|
readonly baseURI: string;
|
|
130
131
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
131
132
|
readonly firstChild: ChildNode | null;
|
|
@@ -138,9 +139,8 @@ declare const CDSAboutModal_base: {
|
|
|
138
139
|
readonly parentElement: HTMLElement | null;
|
|
139
140
|
readonly parentNode: ParentNode | null;
|
|
140
141
|
readonly previousSibling: ChildNode | null;
|
|
141
|
-
textContent: string | null;
|
|
142
142
|
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
143
|
-
cloneNode(
|
|
143
|
+
cloneNode(subtree?: boolean): Node;
|
|
144
144
|
compareDocumentPosition(other: Node): number;
|
|
145
145
|
contains(other: Node | null): boolean;
|
|
146
146
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
@@ -173,6 +173,7 @@ declare const CDSAboutModal_base: {
|
|
|
173
173
|
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
174
174
|
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
175
175
|
dispatchEvent(event: Event): boolean;
|
|
176
|
+
ariaActiveDescendantElement: Element | null;
|
|
176
177
|
ariaAtomic: string | null;
|
|
177
178
|
ariaAutoComplete: string | null;
|
|
178
179
|
ariaBrailleLabel: string | null;
|
|
@@ -183,25 +184,33 @@ declare const CDSAboutModal_base: {
|
|
|
183
184
|
ariaColIndex: string | null;
|
|
184
185
|
ariaColIndexText: string | null;
|
|
185
186
|
ariaColSpan: string | null;
|
|
187
|
+
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
186
188
|
ariaCurrent: string | null;
|
|
189
|
+
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
187
190
|
ariaDescription: string | null;
|
|
191
|
+
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
188
192
|
ariaDisabled: string | null;
|
|
193
|
+
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
189
194
|
ariaExpanded: string | null;
|
|
195
|
+
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
190
196
|
ariaHasPopup: string | null;
|
|
191
197
|
ariaHidden: string | null;
|
|
192
198
|
ariaInvalid: string | null;
|
|
193
199
|
ariaKeyShortcuts: string | null;
|
|
194
200
|
ariaLabel: string | null;
|
|
201
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
195
202
|
ariaLevel: string | null;
|
|
196
203
|
ariaLive: string | null;
|
|
197
204
|
ariaModal: string | null;
|
|
198
205
|
ariaMultiLine: string | null;
|
|
199
206
|
ariaMultiSelectable: string | null;
|
|
200
207
|
ariaOrientation: string | null;
|
|
208
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
201
209
|
ariaPlaceholder: string | null;
|
|
202
210
|
ariaPosInSet: string | null;
|
|
203
211
|
ariaPressed: string | null;
|
|
204
212
|
ariaReadOnly: string | null;
|
|
213
|
+
ariaRelevant: string | null;
|
|
205
214
|
ariaRequired: string | null;
|
|
206
215
|
ariaRoleDescription: string | null;
|
|
207
216
|
ariaRowCount: string | null;
|
|
@@ -243,7 +252,8 @@ declare const CDSAboutModal_base: {
|
|
|
243
252
|
replaceChildren(...nodes: (Node | string)[]): void;
|
|
244
253
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
245
254
|
readonly attributeStyleMap: StylePropertyMap;
|
|
246
|
-
|
|
255
|
+
get style(): CSSStyleDeclaration;
|
|
256
|
+
set style(cssText: string): any;
|
|
247
257
|
contentEditable: string;
|
|
248
258
|
enterKeyHint: string;
|
|
249
259
|
inputMode: string;
|
|
@@ -253,18 +263,19 @@ declare const CDSAboutModal_base: {
|
|
|
253
263
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
254
264
|
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
255
265
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
256
|
-
onauxclick: ((this: GlobalEventHandlers, ev:
|
|
266
|
+
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
257
267
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
258
|
-
|
|
268
|
+
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
259
270
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
260
271
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
261
272
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
273
|
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
263
274
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
264
|
-
onclick: ((this: GlobalEventHandlers, ev:
|
|
275
|
+
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
265
276
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
277
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev:
|
|
278
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
268
279
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
280
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
270
281
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -312,6 +323,7 @@ declare const CDSAboutModal_base: {
|
|
|
312
323
|
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
313
324
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
314
325
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
326
|
+
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
327
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
316
328
|
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
317
329
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -330,7 +342,7 @@ declare const CDSAboutModal_base: {
|
|
|
330
342
|
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
331
343
|
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
332
344
|
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
333
|
-
ontoggle: ((this: GlobalEventHandlers, ev:
|
|
345
|
+
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
334
346
|
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
335
347
|
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
336
348
|
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 figma, { html } from '@figma/code-connect/html';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Copyright IBM Corp. 2025, 2025
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=9478%3A404998', {
|
|
17
|
+
props: {
|
|
18
|
+
aboutModalContentProps: figma.nestedProps('_About modal content', {
|
|
19
|
+
title: figma.string('Title text'),
|
|
20
|
+
version: figma.string('Version'),
|
|
21
|
+
content: figma.boolean('Content', {
|
|
22
|
+
true: figma.string('Content text'),
|
|
23
|
+
false: undefined,
|
|
24
|
+
}),
|
|
25
|
+
copyrightText: figma.string('Copyright text'),
|
|
26
|
+
links: figma.children(['Link group']),
|
|
27
|
+
}),
|
|
28
|
+
footerBaseProps: figma.boolean('Powered by logos', {
|
|
29
|
+
true: figma.nestedProps('_About modal footer base', {
|
|
30
|
+
additionalInfo: figma.children('Slot'),
|
|
31
|
+
}),
|
|
32
|
+
false: {
|
|
33
|
+
additionalInfo: undefined,
|
|
34
|
+
},
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
example: (props) => html `<c4p-about-modal
|
|
38
|
+
closeIconDescription="close"
|
|
39
|
+
copyrightText=${props.aboutModalContentProps.copyrightText}
|
|
40
|
+
.logo=${props.aboutModalContentProps.logo}
|
|
41
|
+
.title=${props.aboutModalContentProps.title}
|
|
42
|
+
.version=${props.aboutModalContentProps.version}
|
|
43
|
+
.additionalInfo=${props.aboutModalContentProps.additionalInfo}
|
|
44
|
+
.content=${props.aboutModalContentProps.content}
|
|
45
|
+
.links=${props.aboutModalContentProps.links}
|
|
46
|
+
aria-label=""
|
|
47
|
+
></c4p-about-modal>`,
|
|
48
|
+
imports: [
|
|
49
|
+
"import '@carbon/ibm-products-web-components/es/components/about-modal/index.js'",
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=about-modal.figma.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about-modal.figma.js","sources":["../../../src/components/about-modal/about-modal.figma.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;AAKG;AAIH,KAAK,CAAC,OAAO,CACX,6HAA6H,EAC7H;AACE,IAAA,KAAK,EAAE;AACL,QAAA,sBAAsB,EAAE,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE;AAChE,YAAA,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC;AACjC,YAAA,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;AAChC,YAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE;AAChC,gBAAA,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC;AAClC,gBAAA,KAAK,EAAE,SAAS;aACjB,CAAC;AACF,YAAA,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC;YAC7C,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC;SACtC,CAAC;AAEF,QAAA,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE;AACjD,YAAA,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,0BAA0B,EAAE;AAClD,gBAAA,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;aACvC,CAAC;AACF,YAAA,KAAK,EAAE;AACL,gBAAA,cAAc,EAAE,SAAS;AAC1B,aAAA;SACF,CAAC;AACH,KAAA;AACD,IAAA,OAAO,EAAE,CAAC,KAAK,KACb,IAAI,CAAA,CAAA;;wBAEc,KAAK,CAAC,sBAAsB,CAAC,aAAa;gBAClD,KAAK,CAAC,sBAAsB,CAAC,IAAI;iBAChC,KAAK,CAAC,sBAAsB,CAAC,KAAK;mBAChC,KAAK,CAAC,sBAAsB,CAAC,OAAO;0BAC7B,KAAK,CAAC,sBAAsB,CAAC,cAAc;mBAClD,KAAK,CAAC,sBAAsB,CAAC,OAAO;iBACtC,KAAK,CAAC,sBAAsB,CAAC,KAAK;;AAEzB,yBAAA,CAAA;AACtB,IAAA,OAAO,EAAE;QACP,iFAAiF;AAClF,KAAA;AACF,CAAA,CACF"}
|