dap-design-system 0.35.14 → 0.35.16
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 +108 -28
- package/dist/dds.js +2767 -2689
- package/dist/dds.js.map +1 -1
- package/dist/manifest/types/vue/index.d.ts +412 -344
- package/dist/manifest/vscode.html-custom-data.json +156 -184
- package/dist/manifest/web-types.json +583 -533
- package/dist/react-types.ts +9 -8
- package/dist/react.d.ts +171 -28
- package/dist/react.js +559 -549
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
package/dist/dds.d.ts
CHANGED
|
@@ -16,6 +16,38 @@ import { TableController } from '@tanstack/lit-table';
|
|
|
16
16
|
import { TemplateResult } from 'lit';
|
|
17
17
|
import { TemplateResult as TemplateResult_2 } from 'lit-html';
|
|
18
18
|
|
|
19
|
+
declare class AccordionBaseElement extends DdsElement {
|
|
20
|
+
static styles: CSSResult;
|
|
21
|
+
/** The size of the accordion
|
|
22
|
+
* @type { 'sm' | 'lg' }
|
|
23
|
+
*/
|
|
24
|
+
size: CommonSize;
|
|
25
|
+
/** The heading level of the accordion
|
|
26
|
+
* @type { 1 | 2 | 3 | 4 | 5 | 6 }
|
|
27
|
+
*/
|
|
28
|
+
headingLevel: HeadingLevel;
|
|
29
|
+
/** Whether the accordion is opened */
|
|
30
|
+
opened: boolean;
|
|
31
|
+
/** The location of the icon
|
|
32
|
+
* @type { 'left' | 'right' }
|
|
33
|
+
*/
|
|
34
|
+
iconLocation: LabelPlacement;
|
|
35
|
+
/** The variant of the accordion
|
|
36
|
+
* @type { 'default' | 'collapsed' | 'clean' | 'clean-collapsed' }
|
|
37
|
+
*/
|
|
38
|
+
variant: string;
|
|
39
|
+
lastItem: boolean;
|
|
40
|
+
headingRender(): TemplateResult;
|
|
41
|
+
contentRender(): TemplateResult;
|
|
42
|
+
connectedCallback(): void;
|
|
43
|
+
private onChange;
|
|
44
|
+
private toggle;
|
|
45
|
+
private renderButtons;
|
|
46
|
+
private renderContent;
|
|
47
|
+
private renderHeading;
|
|
48
|
+
renderAccordion(): TemplateResult;
|
|
49
|
+
}
|
|
50
|
+
|
|
19
51
|
export declare type ActionType = {
|
|
20
52
|
href?: string;
|
|
21
53
|
target?: LinkTarget;
|
|
@@ -814,6 +846,13 @@ export declare type CSSFlexDirection = 'column' | 'row' | 'column-reverse' | 'ro
|
|
|
814
846
|
* @summary An accordion is a vertically stacked list of interactive items that can be expanded or collapsed to reveal or hide content.
|
|
815
847
|
* @title - Accordion
|
|
816
848
|
*
|
|
849
|
+
* @property { 'sm' | 'lg' } size - The size of the accordion. Default is `sm`.
|
|
850
|
+
* @property { 1 | 2 | 3 | 4 | 5 | 6 } headingLevel - The heading level of the accordion. Default is `4`.
|
|
851
|
+
* @property {boolean} opened - Whether the accordion is opened. Default is `false`.
|
|
852
|
+
* @property { 'left' | 'right' } iconLocation - The location of the icon. Default is `right`.
|
|
853
|
+
* @property { 'default' | 'collapsed' | 'clean' | 'clean-collapsed' } variant - The variant of the accordion.
|
|
854
|
+
* @property {boolean} lastItem - Whether the accordion is the last item.
|
|
855
|
+
*
|
|
817
856
|
* @event dds-opened - Event fired when the accordion is opened.
|
|
818
857
|
* @event dds-closed - Event fired when the accordion is closed.
|
|
819
858
|
*
|
|
@@ -852,34 +891,8 @@ export declare type CSSFlexDirection = 'column' | 'row' | 'column-reverse' | 'ro
|
|
|
852
891
|
* @cssproperty --dds-accordion-transition-timing - The timing function of the accordion transitions (default: var(--dds-easing-ease-in-out))
|
|
853
892
|
* @cssproperty --dds-accordion-divider-color - The color of the divider between accordion items (default: var(--dds-border-neutral-divider))
|
|
854
893
|
*/
|
|
855
|
-
export declare class DapDSAccordion extends
|
|
856
|
-
|
|
857
|
-
/** The size of the accordion
|
|
858
|
-
* @type { 'sm' | 'lg' }
|
|
859
|
-
*/
|
|
860
|
-
size: CommonSize;
|
|
861
|
-
/** The heading level of the accordion
|
|
862
|
-
* @type { 1 | 2 | 3 | 4 | 5 | 6 }
|
|
863
|
-
*/
|
|
864
|
-
headingLevel: HeadingLevel;
|
|
865
|
-
/** Whether the accordion is opened */
|
|
866
|
-
opened: boolean;
|
|
867
|
-
/** The location of the icon
|
|
868
|
-
* @type { 'left' | 'right' }
|
|
869
|
-
*/
|
|
870
|
-
iconLocation: LabelPlacement;
|
|
871
|
-
/** The variant of the accordion
|
|
872
|
-
* @type { 'default' | 'collapsed' | 'clean' | 'clean-collapsed' }
|
|
873
|
-
*/
|
|
874
|
-
variant: string;
|
|
875
|
-
lastItem: boolean;
|
|
876
|
-
connectedCallback(): void;
|
|
877
|
-
private onChange;
|
|
878
|
-
private toggle;
|
|
879
|
-
private renderButtons;
|
|
880
|
-
private renderContent;
|
|
881
|
-
private renderHeading;
|
|
882
|
-
render(): TemplateResult;
|
|
894
|
+
export declare class DapDSAccordion extends AccordionBaseElement {
|
|
895
|
+
render(): TemplateResult_2;
|
|
883
896
|
}
|
|
884
897
|
|
|
885
898
|
/**
|
|
@@ -2594,6 +2607,7 @@ export declare class DapDSDatePicker extends GenericFormElement {
|
|
|
2594
2607
|
*/
|
|
2595
2608
|
locale: string;
|
|
2596
2609
|
private formatOptions;
|
|
2610
|
+
private setValueState;
|
|
2597
2611
|
static styles: CSSResult;
|
|
2598
2612
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
2599
2613
|
protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
@@ -3621,6 +3635,7 @@ export declare class DapDSNumberInput extends InputBaseElement {
|
|
|
3621
3635
|
hideControls: boolean;
|
|
3622
3636
|
private formattedValue;
|
|
3623
3637
|
firstUpdated(): void;
|
|
3638
|
+
private handleKeydown;
|
|
3624
3639
|
private getMaskedValue;
|
|
3625
3640
|
private handleInput;
|
|
3626
3641
|
protected updated(changedProperties: PropertyValues): void;
|
|
@@ -3629,6 +3644,64 @@ export declare class DapDSNumberInput extends InputBaseElement {
|
|
|
3629
3644
|
render(): TemplateResult_2<1>;
|
|
3630
3645
|
}
|
|
3631
3646
|
|
|
3647
|
+
/**
|
|
3648
|
+
* `dap-ds-official-website-banner`
|
|
3649
|
+
* @element dap-ds-official-website-banner
|
|
3650
|
+
* @summary An official website banner is a banner that displays that the website is an official website.
|
|
3651
|
+
* @title - Official website banner
|
|
3652
|
+
*
|
|
3653
|
+
* @property { 'sm' | 'lg' } size - The size of the official website banner. Default is `sm`.
|
|
3654
|
+
* @property { 1 | 2 | 3 | 4 | 5 | 6 } headingLevel - The heading level of the accordion. Default is `4`.
|
|
3655
|
+
* @property {boolean} opened - Whether the accordion is opened. Default is `false`.
|
|
3656
|
+
* @property { 'left' | 'right' } iconLocation - The location of the icon. Default is `right`.
|
|
3657
|
+
* @property { 'default' | 'collapsed' | 'clean' | 'clean-collapsed' } variant - The variant of the accordion.
|
|
3658
|
+
* @property {boolean} lastItem - Whether the accordion is the last item.
|
|
3659
|
+
*
|
|
3660
|
+
* @event dds-opened - Event fired when the accordion is opened.
|
|
3661
|
+
* @event dds-closed - Event fired when the accordion is closed.
|
|
3662
|
+
*
|
|
3663
|
+
* @slot default - The content of the accordion.
|
|
3664
|
+
* @slot heading - The heading of the accordion.
|
|
3665
|
+
* @slot icon-opened - The icon when the accordion is opened.
|
|
3666
|
+
* @slot icon-closed - The icon when the accordion is closed.
|
|
3667
|
+
*
|
|
3668
|
+
* @csspart base - The main accordion container.
|
|
3669
|
+
* @csspart heading - The heading of the accordion.
|
|
3670
|
+
* @csspart button - The button of the accordion.
|
|
3671
|
+
* @csspart content - The content of the accordion.
|
|
3672
|
+
* @csspart content-container - The container of the accordion content.
|
|
3673
|
+
* @csspart icon-wrapper - The icon wrapper of the accordion.
|
|
3674
|
+
* @csspart open-icon - The icon when the accordion is opened.
|
|
3675
|
+
* @csspart open-icon-base - The base of the icon when the accordion is opened.
|
|
3676
|
+
* @csspart close-icon - The icon when the accordion is closed.
|
|
3677
|
+
* @csspart close-icon-base - The base of the icon when the accordion is closed.
|
|
3678
|
+
*
|
|
3679
|
+
* @cssproperty --dds-accordion-border-width - The width of the accordion border (default: var(--dds-border-width-base))
|
|
3680
|
+
* @cssproperty --dds-accordion-border-style - The style of the accordion border (default: solid)
|
|
3681
|
+
* @cssproperty --dds-accordion-border-radius - The border radius of the accordion (default: var(--dds-radius-base))
|
|
3682
|
+
* @cssproperty --dds-accordion-border-color - The color of the accordion border (default: var(--dds-border-neutral-divider))
|
|
3683
|
+
* @cssproperty --dds-accordion-background-color - The background color of the accordion (default: var(--dds-background-neutral-subtle))
|
|
3684
|
+
* @cssproperty --dds-accordion-text-color - The text color of the accordion (default: var(--dds-text-neutral-strong))
|
|
3685
|
+
* @cssproperty --dds-accordion-hover-background - The background color when hovering over the accordion (default: var(--dds-background-neutral-base))
|
|
3686
|
+
* @cssproperty --dds-accordion-active-background - The background color when the accordion is active (default: var(--dds-background-neutral-medium))
|
|
3687
|
+
* @cssproperty --dds-accordion-icon-background - The background color of the accordion icon (default: var(--dds-transparent-black-subtle))
|
|
3688
|
+
* @cssproperty --dds-accordion-icon-color - The color of the accordion icon (default: var(--dds-icon-neutral-base))
|
|
3689
|
+
* @cssproperty --dds-accordion-icon-hover-background - The background color of the accordion icon when hovered (default: var(--dds-transparent-black-base))
|
|
3690
|
+
* @cssproperty --dds-accordion-icon-active-background - The background color of the accordion icon when active (default: var(--dds-transparent-black-strong))
|
|
3691
|
+
* @cssproperty --dds-accordion-icon-hover-color - The color of the accordion icon when hovered (default: var(--dds-icon-neutral-strong))
|
|
3692
|
+
* @cssproperty --dds-accordion-icon-active-color - The color of the accordion icon when active (default: var(--dds-icon-neutral-strong))
|
|
3693
|
+
* @cssproperty --dds-accordion-content-color - The color of the accordion content (default: var(--dds-text-text-neutral))
|
|
3694
|
+
* @cssproperty --dds-accordion-transition-duration - The duration of the accordion transitions (default: var(--dds-transition-fast))
|
|
3695
|
+
* @cssproperty --dds-accordion-transition-timing - The timing function of the accordion transitions (default: var(--dds-easing-ease-in-out))
|
|
3696
|
+
* @cssproperty --dds-accordion-divider-color - The color of the divider between accordion items (default: var(--dds-border-neutral-divider))
|
|
3697
|
+
*/
|
|
3698
|
+
export declare class DapDSOfficialWebsiteBanner extends AccordionBaseElement {
|
|
3699
|
+
static styles: CSSResult;
|
|
3700
|
+
headingRender(): TemplateResult_2<1>;
|
|
3701
|
+
contentRender(): TemplateResult_2<1>;
|
|
3702
|
+
render(): TemplateResult_2;
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3632
3705
|
/**
|
|
3633
3706
|
* `dap-ds-option-item`
|
|
3634
3707
|
* @summary An option item is a selectable item in a list of options.
|
|
@@ -8121,6 +8194,13 @@ declare global {
|
|
|
8121
8194
|
}
|
|
8122
8195
|
|
|
8123
8196
|
|
|
8197
|
+
declare global {
|
|
8198
|
+
interface HTMLElementTagNameMap {
|
|
8199
|
+
'dap-ds-offical-website-banner': DapDSOfficalWebsiteBanner;
|
|
8200
|
+
}
|
|
8201
|
+
}
|
|
8202
|
+
|
|
8203
|
+
|
|
8124
8204
|
declare global {
|
|
8125
8205
|
interface HTMLElementTagNameMap {
|
|
8126
8206
|
'dap-ds-option-item': DapDSOptionItem;
|