dap-design-system 0.15.3 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dds.d.ts +100 -0
- package/dist/dds.js +2860 -2667
- package/dist/dds.js.map +1 -1
- package/dist/manifest/types/vue/index.d.ts +317 -259
- package/dist/manifest/vscode.html-custom-data.json +272 -208
- package/dist/manifest/web-types.json +443 -345
- package/dist/react-types.ts +14 -12
- package/dist/react.d.ts +135 -0
- package/dist/react.js +453 -436
- 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";
|
|
@@ -1275,6 +1285,7 @@ export declare class DapDSCheckbox extends LabelPositionedFormElement {
|
|
|
1275
1285
|
* @event dds-focus - Emitted when the select gains focus.
|
|
1276
1286
|
* @event dds-clear - Emitted when the select is cleared.
|
|
1277
1287
|
* @event dds-search - Emitted when the manual input value changes.
|
|
1288
|
+
* @event dds-input - Emitted when typing happens in the input.
|
|
1278
1289
|
*
|
|
1279
1290
|
* @attribute {string} value - The value of the select.
|
|
1280
1291
|
* @attribute {string} placeholder - The placeholder of the select.
|
|
@@ -2259,6 +2270,8 @@ export declare class DapDSOverlay extends DdsElement {
|
|
|
2259
2270
|
* @csspart postfix - The postfix of the password input.
|
|
2260
2271
|
* @csspart password-input - The password input.
|
|
2261
2272
|
* @csspart password-input--visible - The visible password input.
|
|
2273
|
+
* @csspart icon - The icon of the password input.
|
|
2274
|
+
* @csspart icon-base - The base of the icon.
|
|
2262
2275
|
*/
|
|
2263
2276
|
export declare class DapDSPasswordInput extends InputBaseElement {
|
|
2264
2277
|
passwordVisibile: boolean;
|
|
@@ -2570,6 +2583,70 @@ export declare class DapDSSkipLink extends DdsElement {
|
|
|
2570
2583
|
render(): TemplateResult_2;
|
|
2571
2584
|
}
|
|
2572
2585
|
|
|
2586
|
+
/**
|
|
2587
|
+
* `dap-ds-snackbar`
|
|
2588
|
+
* @summary The Snackbar is a container of sliding messages.
|
|
2589
|
+
* @element dap-ds-snackbar
|
|
2590
|
+
* @title - Snackbar
|
|
2591
|
+
*
|
|
2592
|
+
* @attribute { number } maxItems - Maximum number of snackbar messages at a given time.
|
|
2593
|
+
* @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-right.
|
|
2594
|
+
* @attribute { number } duration - The duration of the snackbar message in milliseconds. Default is 6000ms.
|
|
2595
|
+
*/
|
|
2596
|
+
export declare class DapDSSnackbar extends DdsElement {
|
|
2597
|
+
maxItems: number;
|
|
2598
|
+
position: SnackbarPosition;
|
|
2599
|
+
duration: number;
|
|
2600
|
+
private messages;
|
|
2601
|
+
private idCounter;
|
|
2602
|
+
private _timeoutId;
|
|
2603
|
+
static styles: CSSResult;
|
|
2604
|
+
private generateId;
|
|
2605
|
+
addMessage(message: string, options?: MessageOptionsType): void;
|
|
2606
|
+
private sliceMessage;
|
|
2607
|
+
private removeMessage;
|
|
2608
|
+
private elapseMessages;
|
|
2609
|
+
private clearElapseTimeout;
|
|
2610
|
+
connectedCallback(): void;
|
|
2611
|
+
disconnectedCallback(): void;
|
|
2612
|
+
private _closeMessage;
|
|
2613
|
+
render(): TemplateResult_2;
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* `dap-ds-snackbar-message`
|
|
2618
|
+
* @summary The Snackbar component shows a sliding message to the user.
|
|
2619
|
+
* @element dap-ds-snackbar-message
|
|
2620
|
+
* @title - Snackbar message
|
|
2621
|
+
*
|
|
2622
|
+
* @attribute { string } message - The message to show in snackbar.
|
|
2623
|
+
* @attribute { string } closeButton - The snackbar has a close button when 'true'.
|
|
2624
|
+
* @attribute { string } alertType - The message type of the snackbar item.
|
|
2625
|
+
* @attribute { string } id - The id of the snackbar item.
|
|
2626
|
+
* @attribute { ActionType[] } actions - The actions of the snackbar item.
|
|
2627
|
+
*
|
|
2628
|
+
* @event dds-close - Fires when the snackbar closes.
|
|
2629
|
+
*
|
|
2630
|
+
* @slot default - The content of the snackbar.
|
|
2631
|
+
*
|
|
2632
|
+
* @csspart base - Main snackbar container.
|
|
2633
|
+
* @csspart text - The text part of the snackbar.
|
|
2634
|
+
* @csspart closebutton - The close button part of the component.
|
|
2635
|
+
* @csspart icon - The icon part of the close button.
|
|
2636
|
+
*/
|
|
2637
|
+
export declare class DapDSSnackbarMessage extends DdsElement {
|
|
2638
|
+
actions?: ActionType[];
|
|
2639
|
+
message: string;
|
|
2640
|
+
closeButton: string;
|
|
2641
|
+
alertType: AlertType;
|
|
2642
|
+
id: string;
|
|
2643
|
+
static styles: CSSResult;
|
|
2644
|
+
private getActions;
|
|
2645
|
+
private getAlertTypeIcon;
|
|
2646
|
+
private _close;
|
|
2647
|
+
render(): TemplateResult;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2573
2650
|
/**
|
|
2574
2651
|
* `dap-ds-spinner`
|
|
2575
2652
|
* @summary Loading spinner component.
|
|
@@ -3387,6 +3464,13 @@ declare type ListItemStatus = 'brand' | 'neutral' | 'positive' | 'negative';
|
|
|
3387
3464
|
|
|
3388
3465
|
declare type ListItemVariant = 'info' | 'pass' | 'fail' | 'notapplicable' | 'empty' | 'number';
|
|
3389
3466
|
|
|
3467
|
+
export declare type MessageOptionsType = {
|
|
3468
|
+
duration?: number;
|
|
3469
|
+
alertType?: AlertType;
|
|
3470
|
+
actions?: ActionType[];
|
|
3471
|
+
closeButton?: string;
|
|
3472
|
+
};
|
|
3473
|
+
|
|
3390
3474
|
declare class ModalBaseElement extends DdsElement {
|
|
3391
3475
|
dialog: HTMLDialogElement;
|
|
3392
3476
|
open?: boolean;
|
|
@@ -3463,6 +3547,14 @@ declare interface SizedElementInterface {
|
|
|
3463
3547
|
parentSized: string;
|
|
3464
3548
|
}
|
|
3465
3549
|
|
|
3550
|
+
export declare type SnackbarMessage = {
|
|
3551
|
+
id: string;
|
|
3552
|
+
message: string;
|
|
3553
|
+
options?: MessageOptionsType;
|
|
3554
|
+
};
|
|
3555
|
+
|
|
3556
|
+
export declare type SnackbarPosition = 'bottom-left' | 'bottom-right' | 'bottom-center' | 'top-right' | 'top-center';
|
|
3557
|
+
|
|
3466
3558
|
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
3559
|
|
|
3468
3560
|
declare type SpinnerVariant = 'neutral' | 'brand' | 'negative' | 'positive' | 'inverted';
|
|
@@ -5320,6 +5412,14 @@ declare global {
|
|
|
5320
5412
|
}
|
|
5321
5413
|
|
|
5322
5414
|
|
|
5415
|
+
declare global {
|
|
5416
|
+
interface HTMLElementTagNameMap {
|
|
5417
|
+
'dap-ds-snackbar': DapDSSnackbar;
|
|
5418
|
+
'dap-ds-snackbar-message': DapDSSnackbarMessage;
|
|
5419
|
+
}
|
|
5420
|
+
}
|
|
5421
|
+
|
|
5422
|
+
|
|
5323
5423
|
declare global {
|
|
5324
5424
|
interface HTMLElementTagNameMap {
|
|
5325
5425
|
'dap-ds-spinner': DapDSSpinner;
|