dap-design-system 0.15.3 → 0.16.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/dist/dds.d.ts +97 -0
- package/dist/dds.js +2856 -2665
- package/dist/dds.js.map +1 -1
- package/dist/manifest/types/vue/index.d.ts +201 -148
- package/dist/manifest/vscode.html-custom-data.json +206 -142
- package/dist/manifest/web-types.json +273 -183
- package/dist/react-types.ts +7 -5
- package/dist/react.d.ts +128 -0
- package/dist/react.js +439 -423
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/dds.d.ts
CHANGED
|
@@ -7,6 +7,16 @@ import { PropertyValueMap } from 'lit';
|
|
|
7
7
|
import { TemplateResult } from 'lit';
|
|
8
8
|
import { TemplateResult as TemplateResult_2 } from 'lit-html';
|
|
9
9
|
|
|
10
|
+
export declare type ActionType = {
|
|
11
|
+
href?: string;
|
|
12
|
+
target?: LinkTarget;
|
|
13
|
+
rel?: string;
|
|
14
|
+
text?: string;
|
|
15
|
+
func?: () => void;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export declare type AlertType = 'default' | 'information' | 'successful' | 'error';
|
|
19
|
+
|
|
10
20
|
export declare type Alignment = 'vertical' | 'horizontal';
|
|
11
21
|
|
|
12
22
|
export declare const anchorClass = "dds-anchor";
|
|
@@ -2570,6 +2580,70 @@ export declare class DapDSSkipLink extends DdsElement {
|
|
|
2570
2580
|
render(): TemplateResult_2;
|
|
2571
2581
|
}
|
|
2572
2582
|
|
|
2583
|
+
/**
|
|
2584
|
+
* `dap-ds-snackbar`
|
|
2585
|
+
* @summary The Snackbar is a container of sliding messages.
|
|
2586
|
+
* @element dap-ds-snackbar
|
|
2587
|
+
* @title - Snackbar
|
|
2588
|
+
*
|
|
2589
|
+
* @attribute { number } maxItems - Maximum number of snackbar messages at a given time.
|
|
2590
|
+
* @attribute { string } position - The position of the snackbar (values can be bottom-left, bottom-right, bottom-center, top-right, top-center). The default value is bottom-center.
|
|
2591
|
+
* @attribute { number } duration - The duration of the snackbar message in milliseconds. Default is 6000ms.
|
|
2592
|
+
*/
|
|
2593
|
+
export declare class DapDSSnackbar extends DdsElement {
|
|
2594
|
+
maxItems: number;
|
|
2595
|
+
position: SnackbarPosition;
|
|
2596
|
+
duration: number;
|
|
2597
|
+
private messages;
|
|
2598
|
+
private idCounter;
|
|
2599
|
+
private _timeoutId;
|
|
2600
|
+
static styles: CSSResult;
|
|
2601
|
+
private generateId;
|
|
2602
|
+
addMessage(message: string, options?: MessageOptionsType): void;
|
|
2603
|
+
private sliceMessage;
|
|
2604
|
+
private removeMessage;
|
|
2605
|
+
private elapseMessages;
|
|
2606
|
+
private clearElapseTimeout;
|
|
2607
|
+
connectedCallback(): void;
|
|
2608
|
+
disconnectedCallback(): void;
|
|
2609
|
+
private _closeMessage;
|
|
2610
|
+
render(): TemplateResult_2;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* `dap-ds-snackbar-message`
|
|
2615
|
+
* @summary The Snackbar component shows a sliding message to the user.
|
|
2616
|
+
* @element dap-ds-snackbar-message
|
|
2617
|
+
* @title - Snackbar message
|
|
2618
|
+
*
|
|
2619
|
+
* @attribute { string } message - The message to show in snackbar.
|
|
2620
|
+
* @attribute { string } closeButton - The snackbar has a close button when 'true'.
|
|
2621
|
+
* @attribute { string } alertType - The message type of the snackbar item.
|
|
2622
|
+
* @attribute { string } id - The id of the snackbar item.
|
|
2623
|
+
* @attribute { ActionType[] } actions - The actions of the snackbar item.
|
|
2624
|
+
*
|
|
2625
|
+
* @event dds-close - Fires when the snackbar closes.
|
|
2626
|
+
*
|
|
2627
|
+
* @slot default - The content of the snackbar.
|
|
2628
|
+
*
|
|
2629
|
+
* @csspart base - Main snackbar container.
|
|
2630
|
+
* @csspart text - The text part of the snackbar.
|
|
2631
|
+
* @csspart closebutton - The close button part of the component.
|
|
2632
|
+
* @csspart icon - The icon part of the close button.
|
|
2633
|
+
*/
|
|
2634
|
+
export declare class DapDSSnackbarMessage extends DdsElement {
|
|
2635
|
+
actions?: ActionType[];
|
|
2636
|
+
message: string;
|
|
2637
|
+
closeButton: string;
|
|
2638
|
+
alertType: AlertType;
|
|
2639
|
+
id: string;
|
|
2640
|
+
static styles: CSSResult;
|
|
2641
|
+
private getActions;
|
|
2642
|
+
private getAlertTypeIcon;
|
|
2643
|
+
private _close;
|
|
2644
|
+
render(): TemplateResult;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2573
2647
|
/**
|
|
2574
2648
|
* `dap-ds-spinner`
|
|
2575
2649
|
* @summary Loading spinner component.
|
|
@@ -3387,6 +3461,13 @@ declare type ListItemStatus = 'brand' | 'neutral' | 'positive' | 'negative';
|
|
|
3387
3461
|
|
|
3388
3462
|
declare type ListItemVariant = 'info' | 'pass' | 'fail' | 'notapplicable' | 'empty' | 'number';
|
|
3389
3463
|
|
|
3464
|
+
export declare type MessageOptionsType = {
|
|
3465
|
+
duration?: number;
|
|
3466
|
+
alertType?: AlertType;
|
|
3467
|
+
actions?: ActionType[];
|
|
3468
|
+
closeButton?: string;
|
|
3469
|
+
};
|
|
3470
|
+
|
|
3390
3471
|
declare class ModalBaseElement extends DdsElement {
|
|
3391
3472
|
dialog: HTMLDialogElement;
|
|
3392
3473
|
open?: boolean;
|
|
@@ -3463,6 +3544,14 @@ declare interface SizedElementInterface {
|
|
|
3463
3544
|
parentSized: string;
|
|
3464
3545
|
}
|
|
3465
3546
|
|
|
3547
|
+
export declare type SnackbarMessage = {
|
|
3548
|
+
id: string;
|
|
3549
|
+
message: string;
|
|
3550
|
+
options?: MessageOptionsType;
|
|
3551
|
+
};
|
|
3552
|
+
|
|
3553
|
+
export declare type SnackbarPosition = 'bottom-left' | 'bottom-right' | 'bottom-center' | 'top-right' | 'top-center';
|
|
3554
|
+
|
|
3466
3555
|
export declare type Spacing = 0 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 1000 | 1200 | 1400 | 1600 | 1800 | 2000 | 2400 | 3000 | 4000 | 5000 | 6000;
|
|
3467
3556
|
|
|
3468
3557
|
declare type SpinnerVariant = 'neutral' | 'brand' | 'negative' | 'positive' | 'inverted';
|
|
@@ -5320,6 +5409,14 @@ declare global {
|
|
|
5320
5409
|
}
|
|
5321
5410
|
|
|
5322
5411
|
|
|
5412
|
+
declare global {
|
|
5413
|
+
interface HTMLElementTagNameMap {
|
|
5414
|
+
'dap-ds-snackbar': DapDSSnackbar;
|
|
5415
|
+
'dap-ds-snackbar-message': DapDSSnackbarMessage;
|
|
5416
|
+
}
|
|
5417
|
+
}
|
|
5418
|
+
|
|
5419
|
+
|
|
5323
5420
|
declare global {
|
|
5324
5421
|
interface HTMLElementTagNameMap {
|
|
5325
5422
|
'dap-ds-spinner': DapDSSpinner;
|