dap-design-system 0.52.10 → 0.53.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/common/viewport.d.ts +28 -0
- package/dist/components/accordion/accordion-base-element.d.ts +9 -6
- package/dist/components/accordion/accordion.component.d.ts +3 -1
- package/dist/components/avatar/avatar.component.d.ts +11 -15
- package/dist/components/avatar-group/avatar-group.component.d.ts +10 -15
- package/dist/components/badge/badge.component.d.ts +12 -5
- package/dist/components/banner/banner.component.d.ts +1 -1
- package/dist/components/button/button.component.d.ts +7 -1
- package/dist/components/button/button.variants.d.ts +1 -1
- package/dist/components/callout/callout.component.d.ts +1 -1
- package/dist/components/card/card-actions.component.d.ts +1 -2
- package/dist/components/card/card-content.component.d.ts +1 -2
- package/dist/components/card/card-subtitle.component.d.ts +2 -3
- package/dist/components/card/card-title.component.d.ts +0 -2
- package/dist/components/card/card.component.d.ts +2 -1
- package/dist/components/checkbox/checkbox.component.d.ts +1 -0
- package/dist/components/chip/chip.component.d.ts +12 -5
- package/dist/components/dap-badge/dap-badge.component.d.ts +11 -5
- package/dist/components/icon-button/icon-button.component.d.ts +7 -5
- package/dist/components/input/input.component.d.ts +1 -0
- package/dist/components/modal/modal-base-element.d.ts +18 -3
- package/dist/components/modal/modal.component.d.ts +37 -22
- package/dist/components/progress/progress.component.d.ts +10 -7
- package/dist/components/scroll-progress/scroll-progress.component.d.ts +10 -7
- package/dist/components/spinner/spinner.component.d.ts +12 -7
- package/dist/components/toc/toc.component.d.ts +2 -1
- package/dist/components/toggle-button/toggle-button.component.d.ts +10 -5
- package/dist/components/typography/typography.component.d.ts +5 -0
- package/dist/{components-BjsXpHKY.js → components-uIU6p-_P.js} +5732 -5512
- package/dist/components-uIU6p-_P.js.map +1 -0
- package/dist/components.js +1 -1
- package/dist/components.native.css +21 -4
- package/dist/components.native.css.map +1 -1
- package/dist/dds.js +1 -1
- package/dist/internal/mixin/sizedMixin.d.ts +4 -0
- package/dist/manifest/types/vue/index.d.ts +327 -273
- package/dist/manifest/vscode.html-custom-data.json +221 -312
- package/dist/manifest/web-types.json +501 -462
- package/dist/react/dap-ds-accordion/index.d.ts +3 -1
- package/dist/react/dap-ds-avatar/index.d.ts +3 -0
- package/dist/react/dap-ds-avatar-group/index.d.ts +3 -0
- package/dist/react/dap-ds-badge/index.d.ts +4 -0
- package/dist/react/dap-ds-button/index.d.ts +6 -0
- package/dist/react/dap-ds-card/index.d.ts +2 -1
- package/dist/react/dap-ds-card-actions/index.d.ts +1 -0
- package/dist/react/dap-ds-card-content/index.d.ts +1 -0
- package/dist/react/dap-ds-card-subtitle/index.d.ts +2 -1
- package/dist/react/dap-ds-checkbox/index.d.ts +1 -0
- package/dist/react/dap-ds-chip/index.d.ts +4 -0
- package/dist/react/dap-ds-dap-badge/index.d.ts +3 -0
- package/dist/react/dap-ds-input/index.d.ts +1 -0
- package/dist/react/dap-ds-modal/index.d.ts +37 -22
- package/dist/react/dap-ds-progress/index.d.ts +2 -0
- package/dist/react/dap-ds-scroll-progress/index.d.ts +2 -0
- package/dist/react/dap-ds-spinner/index.d.ts +2 -0
- package/dist/react/dap-ds-toc/index.d.ts +2 -1
- package/dist/react/dap-ds-toggle-button/index.d.ts +4 -0
- package/dist/react/dap-ds-typography/index.d.ts +3 -0
- package/dist/react/index.d.ts +10 -10
- package/dist/react-types.ts +11 -11
- package/dist/react.js +180 -180
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-BjsXpHKY.js.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Size } from './types';
|
|
2
|
+
export type BreakpointName = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3
|
+
/**
|
|
4
|
+
* Map from breakpoint to component size. A key applies at that breakpoint and all narrower ones (e.g. md:lg → xs, sm, md use lg).
|
|
5
|
+
*/
|
|
6
|
+
export type BreakpointToSizeMap = Partial<Record<BreakpointName, Size>>;
|
|
7
|
+
/**
|
|
8
|
+
* Parses a string like "sm:lg,md:md" into a BreakpointToSizeMap.
|
|
9
|
+
* Key = breakpoint (xs, sm, md, lg, xl, 2xl). Value = component size (xxs, xs, sm, md, lg).
|
|
10
|
+
* Invalid pairs are skipped. Returns undefined for empty/null/whitespace.
|
|
11
|
+
*/
|
|
12
|
+
export declare function parseResponsiveSizeMap(value: string | null | undefined): BreakpointToSizeMap | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Returns the effective component size from the breakpoint→size map.
|
|
15
|
+
* A map entry like "md:lg" applies at that breakpoint and all narrower breakpoints (xs, sm, md).
|
|
16
|
+
* With multiple entries we use the narrowest matching key (most specific). E.g. "sm:lg,md:md" → xs/sm use lg, md uses md.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getResponsiveSize(requestedSize: Size, breakpointToSizeMap: BreakpointToSizeMap | null | undefined): Size;
|
|
19
|
+
/**
|
|
20
|
+
* Subscribes to viewport changes at the given breakpoint. The callback is invoked
|
|
21
|
+
* when the viewport crosses the breakpoint. Returns an unsubscribe function.
|
|
22
|
+
*/
|
|
23
|
+
export declare function subscribeToBreakpoint(breakpoint: BreakpointName, callback: () => void): () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Subscribes to multiple breakpoints; callback runs when any of them is crossed.
|
|
26
|
+
* Returns a single unsubscribe that removes all listeners.
|
|
27
|
+
*/
|
|
28
|
+
export declare function subscribeToBreakpoints(breakpoints: BreakpointName[], callback: () => void): () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropertyValueMap, TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { HeadingLevel, LabelPlacement } from '../../dap-design-system';
|
|
3
3
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
4
4
|
export type AccordionVariant = 'default' | 'collapsed' | 'clean' | 'clean-collapsed';
|
|
5
5
|
export interface AccordionEventDetail {
|
|
@@ -8,7 +8,11 @@ export interface AccordionEventDetail {
|
|
|
8
8
|
}
|
|
9
9
|
export type AccordionOpenedEvent = CustomEvent<AccordionEventDetail>;
|
|
10
10
|
export type AccordionClosedEvent = CustomEvent<AccordionEventDetail>;
|
|
11
|
-
|
|
11
|
+
declare const AccordionBaseWithSized: typeof DdsElement & {
|
|
12
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
13
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
14
|
+
};
|
|
15
|
+
export declare class AccordionBaseElement extends AccordionBaseWithSized {
|
|
12
16
|
static readonly styles: import('lit').CSSResult;
|
|
13
17
|
private static nextId;
|
|
14
18
|
private readonly accordionId;
|
|
@@ -20,10 +24,8 @@ export declare class AccordionBaseElement extends DdsElement {
|
|
|
20
24
|
protected button?: HTMLButtonElement;
|
|
21
25
|
/** Query for the accordion content element */
|
|
22
26
|
protected content?: HTMLDivElement;
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
*/
|
|
26
|
-
size: CommonSize;
|
|
27
|
+
/** Display size for accordion styling (sm or lg); other effective sizes map to sm. */
|
|
28
|
+
private get accordionDisplaySize();
|
|
27
29
|
/** The heading level of the accordion
|
|
28
30
|
* @type { 1 | 2 | 3 | 4 | 5 | 6 }
|
|
29
31
|
*/
|
|
@@ -78,3 +80,4 @@ export declare class AccordionBaseElement extends DdsElement {
|
|
|
78
80
|
*/
|
|
79
81
|
renderAccordion(): TemplateResult;
|
|
80
82
|
}
|
|
83
|
+
export {};
|
|
@@ -5,7 +5,9 @@ import { AccordionBaseElement } from './accordion-base-element';
|
|
|
5
5
|
* @summary An accordion is a vertically stacked list of interactive items that can be expanded or collapsed to reveal or hide content.
|
|
6
6
|
* @title - Accordion
|
|
7
7
|
*
|
|
8
|
-
* @property { 'sm' | 'lg' } size - The size of the accordion. Default is `sm`.
|
|
8
|
+
* @property { 'xxs' | 'xs' | 'sm' | 'md' | 'lg' } size - The size of the accordion. Default is `sm`. Visual variants are sm and lg (other sizes map to sm).
|
|
9
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg")
|
|
10
|
+
* @property {string} parentSized - When "true", size is taken from the parent card if present.
|
|
9
11
|
* @property {string} heading - The heading text of the accordion, this will be used as the aria label of the heading also if ariaLabel is not provided
|
|
10
12
|
* @property { 1 | 2 | 3 | 4 | 5 | 6 } headingLevel - The heading level of the accordion. Default is `4`.
|
|
11
13
|
* @property {boolean} opened - Whether the accordion is opened. Default is `false`.
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { AvatarShape, AvatarVariant
|
|
1
|
+
import { AvatarShape, AvatarVariant } from '../../dap-design-system';
|
|
2
2
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
3
|
+
declare const AvatarBaseWithSized: typeof DdsElement & {
|
|
4
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
5
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
6
|
+
};
|
|
3
7
|
/**
|
|
4
8
|
* `dap-ds-avatar`
|
|
5
9
|
* @summary Avatar component can be used to display user profile images, initials, or icons.
|
|
@@ -43,21 +47,11 @@ import { DdsElement } from '../../internal/dds-hu-element';
|
|
|
43
47
|
* @cssproperty --dds-avatar-loading-background - Background color when loading (default: var(--dds-neutral-100))
|
|
44
48
|
* @cssproperty --dds-avatar-error-background - Background color when image fails to load (default: var(--dds-negative-100))
|
|
45
49
|
* @cssproperty --dds-avatar-error-color - Text color when image fails to load (default: var(--dds-negative-600))
|
|
50
|
+
*
|
|
51
|
+
* @property { 'xxs' | 'xs' | 'sm' | 'md' | 'lg' } size - The size of the avatar. Default is `md`.
|
|
52
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
46
53
|
*/
|
|
47
|
-
export default class DapDSAvatar extends
|
|
48
|
-
/** The size of the avatar
|
|
49
|
-
* @default md
|
|
50
|
-
* @type { 'xxs' | 'xs' | 'sm' | 'md' | 'lg' }
|
|
51
|
-
* @example
|
|
52
|
-
* ```html
|
|
53
|
-
* <dap-ds-avatar size="xxs">
|
|
54
|
-
* <dap-ds-avatar size="xs">
|
|
55
|
-
* <dap-ds-avatar size="sm">
|
|
56
|
-
* <dap-ds-avatar size="md">
|
|
57
|
-
* <dap-ds-avatar size="lg">
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
size: Size;
|
|
54
|
+
export default class DapDSAvatar extends AvatarBaseWithSized {
|
|
61
55
|
/** The shape of the avatar
|
|
62
56
|
* @default circle
|
|
63
57
|
* @type { 'circle' | 'rounded' | 'square' }
|
|
@@ -97,6 +91,7 @@ export default class DapDSAvatar extends DdsElement {
|
|
|
97
91
|
/** The height of the avatar. This will override the size */
|
|
98
92
|
height: number;
|
|
99
93
|
private hasImageError;
|
|
94
|
+
constructor();
|
|
100
95
|
private isImageLoading;
|
|
101
96
|
static readonly styles: import('lit').CSSResult;
|
|
102
97
|
private handleImageLoad;
|
|
@@ -112,3 +107,4 @@ export default class DapDSAvatar extends DdsElement {
|
|
|
112
107
|
private renderContent;
|
|
113
108
|
render(): import('lit-html').TemplateResult;
|
|
114
109
|
}
|
|
110
|
+
export {};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { Size } from '../../dap-design-system';
|
|
2
1
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
2
|
+
declare const AvatarGroupBaseWithSized: typeof DdsElement & {
|
|
3
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
4
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
5
|
+
};
|
|
3
6
|
export type AvatarGroupLayout = 'stack' | 'grid';
|
|
4
7
|
/**
|
|
5
8
|
* `dap-ds-avatar-group`
|
|
@@ -28,22 +31,13 @@ export type AvatarGroupLayout = 'stack' | 'grid';
|
|
|
28
31
|
* @cssproperty --dds-avatar-group-size-sm - Size for small avatars (default: var(--dds-spacing-1200))
|
|
29
32
|
* @cssproperty --dds-avatar-group-size-xs - Size for extra small avatars (default: var(--dds-spacing-800))
|
|
30
33
|
* @cssproperty --dds-avatar-group-size-xxs - Size for extra extra small avatars (default: var(--dds-spacing-400))
|
|
34
|
+
*
|
|
35
|
+
* @property { 'xxs' | 'xs' | 'sm' | 'md' | 'lg' } size - The size of avatars in the group. Default is `md`. See SizedMixin.
|
|
36
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg"); see SizedMixin.
|
|
31
37
|
*/
|
|
32
|
-
export default class DapDSAvatarGroup extends
|
|
38
|
+
export default class DapDSAvatarGroup extends AvatarGroupBaseWithSized {
|
|
33
39
|
private avatars;
|
|
34
|
-
|
|
35
|
-
* @default md
|
|
36
|
-
* @type { 'xxs' | 'xs' | 'sm' | 'md' | 'lg' }
|
|
37
|
-
* @example
|
|
38
|
-
* ```html
|
|
39
|
-
* <dap-ds-avatar-group size="xxs">
|
|
40
|
-
* <dap-ds-avatar-group size="xs">
|
|
41
|
-
* <dap-ds-avatar-group size="sm">
|
|
42
|
-
* <dap-ds-avatar-group size="md">
|
|
43
|
-
* <dap-ds-avatar-group size="lg">
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
size: Size;
|
|
40
|
+
constructor();
|
|
47
41
|
/** Layout type for the avatar group
|
|
48
42
|
* @default stack
|
|
49
43
|
* @type { 'stack' | 'grid' }
|
|
@@ -73,3 +67,4 @@ export default class DapDSAvatarGroup extends DdsElement {
|
|
|
73
67
|
private styleSlottedAvatars;
|
|
74
68
|
render(): import('lit-html').TemplateResult;
|
|
75
69
|
}
|
|
70
|
+
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PropertyValueMap } from 'lit';
|
|
2
2
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
3
|
+
declare const BadgeBaseWithSized: typeof DdsElement & {
|
|
4
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
5
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
6
|
+
};
|
|
3
7
|
export type BadgeType = 'neutral' | 'brand' | 'info' | 'positive' | 'warning' | 'negative';
|
|
4
8
|
export type BadgeSize = 'sm' | 'lg';
|
|
5
9
|
/**
|
|
@@ -8,6 +12,9 @@ export type BadgeSize = 'sm' | 'lg';
|
|
|
8
12
|
* @element dap-ds-badge
|
|
9
13
|
* @title - Badge
|
|
10
14
|
*
|
|
15
|
+
* @property { 'sm' | 'lg' } size - The size of the badge. Default is `sm`.
|
|
16
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
17
|
+
*
|
|
11
18
|
* @slot - The content of the badge.
|
|
12
19
|
* @slot icon - The icon of the badge.
|
|
13
20
|
*
|
|
@@ -51,16 +58,15 @@ export type BadgeSize = 'sm' | 'lg';
|
|
|
51
58
|
* @cssproperty --dds-badge-negative-border-color - The border color of the negative badge (default: var(--dds-border-negative-base))
|
|
52
59
|
* @cssproperty --dds-badge-negative-background - The background color of the negative badge (default: var(--dds-background-negative-medium))
|
|
53
60
|
* @cssproperty --dds-badge-negative-color - The text color of the negative badge (default: var(--dds-text-negative-subtle))
|
|
61
|
+
*
|
|
54
62
|
*/
|
|
55
|
-
export default class DapDSBadge extends
|
|
63
|
+
export default class DapDSBadge extends BadgeBaseWithSized {
|
|
56
64
|
/** The type of the badge
|
|
57
65
|
* @type { 'neutral' | 'brand' | 'info' | 'positive' | 'warning' | 'negative' }
|
|
58
66
|
*/
|
|
59
67
|
type: BadgeType;
|
|
60
|
-
/**
|
|
61
|
-
|
|
62
|
-
*/
|
|
63
|
-
size: BadgeSize;
|
|
68
|
+
/** Maps effectiveSize from SizedMixin to the badge's two visual sizes (sm | lg). */
|
|
69
|
+
private get badgeSize();
|
|
64
70
|
/** The icon of the badge, this is a name of a built in icon */
|
|
65
71
|
icon?: string;
|
|
66
72
|
/** Whether the badge represents dynamic content that should announce changes */
|
|
@@ -78,3 +84,4 @@ export default class DapDSBadge extends DdsElement {
|
|
|
78
84
|
private renderIcon;
|
|
79
85
|
render(): import('lit-html').TemplateResult;
|
|
80
86
|
}
|
|
87
|
+
export {};
|
|
@@ -74,5 +74,5 @@ export default class DapDSBanner extends DdsElement {
|
|
|
74
74
|
static readonly styles: import('lit').CSSResult;
|
|
75
75
|
protected firstUpdated(_changedProperties: PropertyValueMap<DapDSBanner> | Map<PropertyKey, unknown>): void;
|
|
76
76
|
private onCloseClick;
|
|
77
|
-
render(): import('lit-html').TemplateResult
|
|
77
|
+
render(): typeof nothing | import('lit-html').TemplateResult;
|
|
78
78
|
}
|
|
@@ -33,6 +33,12 @@ export type HtmlButtonType = 'button' | 'submit' | 'reset';
|
|
|
33
33
|
* </dap-ds-button>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
|
+
* @property {string} sizeMap - The size map of the button.
|
|
37
|
+
* @example
|
|
38
|
+
* ```html
|
|
39
|
+
* <dap-ds-button sizeMap="sm:lg,xs:xs">Small</dap-ds-button>
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
36
42
|
* @event dds-loading-timeout - Emitted when the loading timeout is reached
|
|
37
43
|
*
|
|
38
44
|
* @slot - The content of the button. Can contain text, icons, or other elements.
|
|
@@ -286,7 +292,7 @@ export default class DapDSButton extends GenericFormElement {
|
|
|
286
292
|
/**
|
|
287
293
|
* @ignore
|
|
288
294
|
*/
|
|
289
|
-
get focusElement():
|
|
295
|
+
get focusElement(): HTMLLinkElement | HTMLButtonElement;
|
|
290
296
|
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
291
297
|
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
292
298
|
disconnectedCallback(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const buttonVariants: (props?: ({
|
|
2
|
-
intent?: "
|
|
2
|
+
intent?: "subtle" | "clean" | "primary" | "outline" | "primary-inverted" | "outline-inverted" | "subtle-inverted" | "clean-inverted" | "subtle-neutral" | "subtle-quiet" | "subtle-quiet-inverted" | "subtle-menu" | "subtle-menu-item" | null | undefined;
|
|
3
3
|
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
4
4
|
shape?: "button" | "circle" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -104,5 +104,5 @@ export default class DapDSCallout extends DdsElement {
|
|
|
104
104
|
handleClose(): void;
|
|
105
105
|
private handleKeyDown;
|
|
106
106
|
protected updated(changedProperties: Map<PropertyKey, unknown>): void;
|
|
107
|
-
render(): import('lit-html').TemplateResult
|
|
107
|
+
render(): typeof nothing | import('lit-html').TemplateResult;
|
|
108
108
|
}
|
|
@@ -12,6 +12,7 @@ declare const DapDSCardActions_base: typeof DdsElement & {
|
|
|
12
12
|
*
|
|
13
13
|
* @property {'sm' | 'md' | 'lg'} size - The size of the card actions. Default is `sm`.
|
|
14
14
|
* @property {'top' | 'bottom' | 'both' | 'none'} spacing - The spacing of the card actions. This adds a margin to the card actions. Default is `bottom`.
|
|
15
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
15
16
|
*
|
|
16
17
|
* @slot - The content of the card actions.
|
|
17
18
|
*
|
|
@@ -26,8 +27,6 @@ declare const DapDSCardActions_base: typeof DdsElement & {
|
|
|
26
27
|
* @cssproperty --dds-card-actions-margin-sm - The margin for small size card actions spacing. (default: var(--dds-spacing-400))
|
|
27
28
|
*/
|
|
28
29
|
export default class DapDSCardActions extends DapDSCardActions_base {
|
|
29
|
-
/** Whether the card actions should be sized from the parent. */
|
|
30
|
-
parentSized: string;
|
|
31
30
|
static readonly styles: import('lit').CSSResult;
|
|
32
31
|
constructor();
|
|
33
32
|
render(): import('lit-html').TemplateResult;
|
|
@@ -12,6 +12,7 @@ declare const DapDSCardContent_base: typeof DdsElement & {
|
|
|
12
12
|
*
|
|
13
13
|
* @property {'sm' | 'md' | 'lg'} size - The size of the card subtitle. Default is `sm`.
|
|
14
14
|
* @property {'top' | 'bottom' | 'both' | 'none'} spacing - The spacing of the card content. This adds a margin to the card subtitle. Default is `bottom`.
|
|
15
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
15
16
|
*
|
|
16
17
|
* @slot - The content of the card-content.
|
|
17
18
|
*
|
|
@@ -30,8 +31,6 @@ declare const DapDSCardContent_base: typeof DdsElement & {
|
|
|
30
31
|
export default class DapDSCardContent extends DapDSCardContent_base {
|
|
31
32
|
/** The base rendered root tag of the card content. */
|
|
32
33
|
renderAs: string;
|
|
33
|
-
/** Whether the card content should be sized from the parent. */
|
|
34
|
-
parentSized: string;
|
|
35
34
|
static readonly styles: import('lit').CSSResult;
|
|
36
35
|
constructor();
|
|
37
36
|
render(): import('lit-html').TemplateResult;
|
|
@@ -10,8 +10,9 @@ declare const DapDSCardSubtitle_base: typeof DdsElement & {
|
|
|
10
10
|
* @title - Card subtitle
|
|
11
11
|
* @group card
|
|
12
12
|
*
|
|
13
|
-
* @property {'sm' | 'lg'} size - The size of the card subtitle. Default is `sm`.
|
|
13
|
+
* @property {'sm' | 'md' | 'lg'} size - The size of the card subtitle. Default is `sm`.
|
|
14
14
|
* @property {'top' | 'bottom' | 'both' | 'none'} spacing - The spacing of the card subtitle. This adds a margin to the card subtitle. Default is `top`.
|
|
15
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
15
16
|
*
|
|
16
17
|
* @slot - The content of the subtitle.
|
|
17
18
|
*
|
|
@@ -45,8 +46,6 @@ declare const DapDSCardSubtitle_base: typeof DdsElement & {
|
|
|
45
46
|
export default class DapDSCardSubtitle extends DapDSCardSubtitle_base {
|
|
46
47
|
/** The base rendered root tag of the card subtitle. */
|
|
47
48
|
renderAs: string;
|
|
48
|
-
/** Whether the card subtitle should be sized from the parent. */
|
|
49
|
-
parentSized: string;
|
|
50
49
|
static readonly styles: import('lit').CSSResult;
|
|
51
50
|
constructor();
|
|
52
51
|
render(): import('lit-html').TemplateResult;
|
|
@@ -42,8 +42,6 @@ declare const DapDSCardTitle_base: typeof DdsElement & {
|
|
|
42
42
|
export default class DapDSCardTitle extends DapDSCardTitle_base {
|
|
43
43
|
/** The base rendered root tag of the card title. */
|
|
44
44
|
renderAs: string;
|
|
45
|
-
/** Whether the card title should be sized from the parent. */
|
|
46
|
-
parentSized: string;
|
|
47
45
|
/** Whether the card title should have no padding. */
|
|
48
46
|
noPadding: boolean;
|
|
49
47
|
static readonly styles: import('lit').CSSResult;
|
|
@@ -10,7 +10,8 @@ declare const DapDSCard_base: typeof DdsElement & {
|
|
|
10
10
|
* @element dap-ds-card
|
|
11
11
|
* @title - Card
|
|
12
12
|
*
|
|
13
|
-
* @property {'sm' | 'md' | 'lg'} size - The size of the card
|
|
13
|
+
* @property {'sm' | 'md' | 'lg'} size - The size of the card. Default is `sm`.
|
|
14
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
14
15
|
*
|
|
15
16
|
* @slot - The content of the card.
|
|
16
17
|
*
|
|
@@ -19,6 +19,7 @@ import { LabeledChoiceElement } from '../../internal/mixin/labeledChoiceElement'
|
|
|
19
19
|
* @property {boolean} readonly - Whether the checkbox is readonly (cannot be changed but value is submitted with form).
|
|
20
20
|
* @property {boolean} required - Whether the checkbox is required.
|
|
21
21
|
* @property {'xs' | 'sm' | 'lg'} size - The size of the checkbox. Default is 'sm'.
|
|
22
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
22
23
|
* @property {'left' | 'right'} labelPlacement - The placement of the label.
|
|
23
24
|
* @property {'top' | 'bottom'} descriptionPlacement - The placement of the description.
|
|
24
25
|
* @property {boolean} subtle - The weight of the label.
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
2
|
+
declare const ChipBaseWithSized: typeof DdsElement & {
|
|
3
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
4
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
5
|
+
};
|
|
2
6
|
export type ChipSize = 'sm' | 'lg';
|
|
3
7
|
/**
|
|
4
8
|
* `dap-ds-chip`
|
|
@@ -6,6 +10,9 @@ export type ChipSize = 'sm' | 'lg';
|
|
|
6
10
|
* @element dap-ds-chip
|
|
7
11
|
* @title - Chip
|
|
8
12
|
*
|
|
13
|
+
* @property { 'sm' | 'lg' } size - The size of the chip. Default is `sm`.
|
|
14
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
15
|
+
*
|
|
9
16
|
* @event {{ value: string }} dds-remove - Fired when the chip is removed
|
|
10
17
|
* @event {{ value?: string, selected: boolean }} dds-select - Fired when the chip is selected
|
|
11
18
|
*
|
|
@@ -34,12 +41,11 @@ export type ChipSize = 'sm' | 'lg';
|
|
|
34
41
|
* @cssproperty --dds-chip-selected-border-color - Border color of the selected chip (default: var(--dds-border-brand-base))
|
|
35
42
|
* @cssproperty --dds-chip-disabled-background-color - Background color of the disabled chip (default: var(--dds-background-neutral-medium))
|
|
36
43
|
* @cssproperty --dds-chip-disabled-text-color - Text color of the disabled chip (default: var(--dds-text-neutral-subtle))
|
|
44
|
+
*
|
|
37
45
|
*/
|
|
38
|
-
export default class DapDSChip extends
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
*/
|
|
42
|
-
size: ChipSize;
|
|
46
|
+
export default class DapDSChip extends ChipBaseWithSized {
|
|
47
|
+
/** Maps effectiveSize from SizedMixin to the chip's two visual sizes (sm | lg). */
|
|
48
|
+
private get chipSize();
|
|
43
49
|
/** Whether the chip is removeable */
|
|
44
50
|
removeable: boolean;
|
|
45
51
|
/** Whether the chip is selectable */
|
|
@@ -73,3 +79,4 @@ export default class DapDSChip extends DdsElement {
|
|
|
73
79
|
private handleKeyDown;
|
|
74
80
|
render(): import('lit-html').TemplateResult;
|
|
75
81
|
}
|
|
82
|
+
export {};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
2
|
+
declare const DapBadgeBaseWithSized: typeof DdsElement & {
|
|
3
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
4
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* `dap-ds-dap-badge`
|
|
4
8
|
* @summary A DÁP badge is a brand element showing the use of this system design library.
|
|
@@ -28,16 +32,18 @@ import { DdsElement } from '../../internal/dds-hu-element';
|
|
|
28
32
|
* @cssproperty --dds-badge-border-color-inverted - Custom border color for the inverted variant (default: var(--dds-transparent-white-medium))
|
|
29
33
|
* @cssproperty --dds-badge-background-color-inverted - Custom background color for the inverted variant (default: var(--dds-background-brand-base-inverted))
|
|
30
34
|
* @cssproperty --dds-badge-color-inverted - Custom text color for the inverted variant (default: var(--dds-text-neutral-inverted))
|
|
35
|
+
*
|
|
36
|
+
* @property { 'sm' | 'lg' } size - The size of the DÁP badge. Default is `sm`.
|
|
37
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg").
|
|
31
38
|
*/
|
|
32
|
-
export default class DapDSDAPBadge extends
|
|
39
|
+
export default class DapDSDAPBadge extends DapBadgeBaseWithSized {
|
|
33
40
|
/** The variant of the DÁP badge
|
|
34
41
|
* @type {'normal' | 'inverted'}
|
|
35
42
|
*/
|
|
36
43
|
variant: string;
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
*/
|
|
40
|
-
size: string;
|
|
44
|
+
/** Maps effectiveSize from SizedMixin to the DÁP badge's two visual sizes (sm | lg). */
|
|
45
|
+
private get dapBadgeSize();
|
|
41
46
|
static readonly styles: import('lit').CSSResult;
|
|
42
47
|
render(): import('lit-html').TemplateResult;
|
|
43
48
|
}
|
|
49
|
+
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { PropertyValueMap } from 'lit';
|
|
2
2
|
import { Size } from '../../common/types';
|
|
3
3
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
4
|
+
declare const IconButtonBaseWithSized: typeof DdsElement & {
|
|
5
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
6
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
7
|
+
};
|
|
4
8
|
export type ButtonVariant = 'neutral' | 'brand' | 'inverted' | 'inverted-brand';
|
|
5
9
|
export type HtmlButtonType = 'button' | 'submit' | 'reset';
|
|
6
10
|
export type ButtonSize = Extract<Size, 'lg' | 'md' | 'sm' | 'xs'>;
|
|
@@ -54,21 +58,18 @@ export type ButtonSize = Extract<Size, 'lg' | 'md' | 'sm' | 'xs'>;
|
|
|
54
58
|
* @cssproperty --dds-icon-button-inverted-brand-active-bg - Active background color for inverted brand variant (default: var(--dds-button-primary-background-enabled))
|
|
55
59
|
* @cssproperty --dds-icon-button-disabled-color - Color for disabled state (default: var(--dds-icon-neutral-disabled))
|
|
56
60
|
*/
|
|
57
|
-
export default class DapDSIconButton extends
|
|
61
|
+
export default class DapDSIconButton extends IconButtonBaseWithSized {
|
|
58
62
|
/** The type of the button.
|
|
59
63
|
* @type {'neutral' | 'brand' | 'inverted' | 'inverted-brand'}
|
|
60
64
|
*/
|
|
61
65
|
variant?: ButtonVariant;
|
|
62
66
|
/** Adds a transparent background to the button */
|
|
63
67
|
clean?: boolean | undefined;
|
|
64
|
-
/** The size of the icon
|
|
65
|
-
* @type {'lg' | 'md' | 'sm' | 'xs'}
|
|
66
|
-
*/
|
|
67
|
-
size: ButtonSize;
|
|
68
68
|
/**
|
|
69
69
|
* The size of the icon in pixels. By default the icon gets the size of the button. This property overwrites the size of the icon.
|
|
70
70
|
*/
|
|
71
71
|
iconSize: number;
|
|
72
|
+
constructor();
|
|
72
73
|
/** The disabled state of the button. */
|
|
73
74
|
disabled: boolean;
|
|
74
75
|
/**
|
|
@@ -102,3 +103,4 @@ export default class DapDSIconButton extends DdsElement {
|
|
|
102
103
|
focus(): void;
|
|
103
104
|
render(): import('lit-html').TemplateResult;
|
|
104
105
|
}
|
|
106
|
+
export {};
|
|
@@ -19,6 +19,7 @@ import { InputBaseElement } from './input-base-element';
|
|
|
19
19
|
* @property {'negative' | 'positive' | 'warning'} feedbackType - The feedback type of the input. Can be `negative`, `positive`, or `warning`.
|
|
20
20
|
* @property {'succes' | 'error'} status - The status of the input. Can be `success` or `error`.
|
|
21
21
|
* @property {'xs' | 'sm' | 'lg'} size - The size of the input. Default is `sm`.
|
|
22
|
+
* @property {string} sizeMap - Responsive size map (e.g. "xs:lg").
|
|
22
23
|
* @property {string} name - The name of the input.
|
|
23
24
|
* @property {'text' | 'number' | 'button' | 'color' | 'email' | 'hidden' | 'reset' | 'submit' | 'url' | 'password'| 'file' | 'time'} type - The type of the input. Default is 'text'.
|
|
24
25
|
* @property {boolean} disabled - The disabled state of the input. Default is false.
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { PropertyValueMap } from 'lit';
|
|
2
|
-
import { CommonSize } from '../../dap-design-system';
|
|
3
2
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
4
3
|
import { ButtonVariant } from '../button/button.component';
|
|
5
|
-
|
|
4
|
+
declare const ModalBaseWithSized: typeof DdsElement & {
|
|
5
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
6
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
7
|
+
};
|
|
8
|
+
export default class ModalBaseElement extends ModalBaseWithSized {
|
|
6
9
|
dialog: HTMLDialogElement;
|
|
7
10
|
modalBox: HTMLElement;
|
|
8
11
|
open?: boolean;
|
|
9
12
|
fullScreen?: boolean;
|
|
10
|
-
size: CommonSize;
|
|
11
13
|
closeOnEsc: string;
|
|
12
14
|
closeOnOverlayClick: string;
|
|
13
15
|
closeButton: string;
|
|
@@ -24,6 +26,18 @@ export default class ModalBaseElement extends DdsElement {
|
|
|
24
26
|
okButtonDanger: boolean;
|
|
25
27
|
hideOkButton: boolean;
|
|
26
28
|
hideCancelButton: boolean;
|
|
29
|
+
/** Override size for the default OK button; when empty uses the modal's effective size. */
|
|
30
|
+
okButtonSize: string;
|
|
31
|
+
/** Override sizeMap for the default OK button; when empty uses the modal's sizeMap. */
|
|
32
|
+
okButtonSizeMap: string;
|
|
33
|
+
/** Override size for the default Cancel button; when empty uses the modal's effective size. */
|
|
34
|
+
cancelButtonSize: string;
|
|
35
|
+
/** Override sizeMap for the default Cancel button; when empty uses the modal's sizeMap. */
|
|
36
|
+
cancelButtonSizeMap: string;
|
|
37
|
+
/** Override size for the close icon button; when empty uses the modal's effective size. */
|
|
38
|
+
closeButtonSize: string;
|
|
39
|
+
/** Override sizeMap for the close icon button; when empty uses the modal's sizeMap. */
|
|
40
|
+
closeButtonSizeMap: string;
|
|
27
41
|
footer: string;
|
|
28
42
|
header: string;
|
|
29
43
|
wideFooter: boolean;
|
|
@@ -61,3 +75,4 @@ export default class ModalBaseElement extends DdsElement {
|
|
|
61
75
|
private handleFocusTrap;
|
|
62
76
|
renderModal(): import('lit-html').TemplateResult<1>;
|
|
63
77
|
}
|
|
78
|
+
export {};
|
|
@@ -6,29 +6,44 @@ import { default as ModalBaseElement } from './modal-base-element';
|
|
|
6
6
|
* @title - Modal
|
|
7
7
|
*
|
|
8
8
|
* @property {boolean} open - The open state of the modal.
|
|
9
|
-
* @property {boolean} fullScreen -
|
|
10
|
-
* @property {boolean} noModal -
|
|
11
|
-
* @property {
|
|
9
|
+
* @property {boolean} fullScreen - Full screen version of the modal.
|
|
10
|
+
* @property {boolean} noModal - If true, uses `.show()` (no overlay); if false, uses `.showModal()`. Default is false.
|
|
11
|
+
* @property {'sm'|'lg'} size - Size of the modal. Default is 'sm'.
|
|
12
|
+
* @property {string} sizeMap - Breakpoint→size map for the modal (e.g. "md:lg").
|
|
13
|
+
*
|
|
12
14
|
* @property {boolean} wideFooter - Wide layout mode for footer.
|
|
13
|
-
* @property {boolean} bottomFooter - Pushes the footer to bottom.
|
|
14
|
-
* @property {boolean} fixedHeader - Fixes the header to the top
|
|
15
|
-
* @property {boolean} fixedFooter - Fixes the footer to the bottom
|
|
16
|
-
*
|
|
17
|
-
* @property {
|
|
18
|
-
* @property {string}
|
|
19
|
-
* @property {string}
|
|
20
|
-
*
|
|
21
|
-
* @property {string}
|
|
22
|
-
* @property {string}
|
|
23
|
-
*
|
|
24
|
-
* @property {
|
|
25
|
-
* @property {
|
|
26
|
-
*
|
|
27
|
-
* @property {
|
|
28
|
-
* @property {boolean}
|
|
29
|
-
* @property {
|
|
30
|
-
* @property {
|
|
31
|
-
* @property {
|
|
15
|
+
* @property {boolean} bottomFooter - Pushes the footer to the bottom.
|
|
16
|
+
* @property {boolean} fixedHeader - Fixes the header to the top.
|
|
17
|
+
* @property {boolean} fixedFooter - Fixes the footer to the bottom.
|
|
18
|
+
*
|
|
19
|
+
* @property {string} closeOnEsc - Whether to close on Escape key. Default is 'true'.
|
|
20
|
+
* @property {string} closeOnOverlayClick - Whether to close on overlay click. Default is 'true'.
|
|
21
|
+
* @property {string} closeButton - Whether to show the close button. Default is 'true'.
|
|
22
|
+
*
|
|
23
|
+
* @property {string} title - Title of the modal.
|
|
24
|
+
* @property {string} description - Description of the modal.
|
|
25
|
+
*
|
|
26
|
+
* @property {string} header - Whether to show the header. Default is 'true'.
|
|
27
|
+
* @property {string} footer - Whether to show the footer. Default is 'true'.
|
|
28
|
+
*
|
|
29
|
+
* @property {string} okButtonLabel - Label of the OK button.
|
|
30
|
+
* @property {boolean} okButtonDisabled - Whether the OK button is disabled.
|
|
31
|
+
* @property {boolean} okButtonDanger - Whether the OK button uses danger style.
|
|
32
|
+
* @property {boolean} hideOkButton - Whether to hide the OK button.
|
|
33
|
+
* @property {string} okButtonSize - Override size for the OK button; empty uses modal size.
|
|
34
|
+
* @property {string} okButtonSizeMap - Override sizeMap for the OK button.
|
|
35
|
+
*
|
|
36
|
+
* @property {string} cancelButtonLabel - Label of the Cancel button.
|
|
37
|
+
* @property {boolean} cancelButtonDisabled - Whether the Cancel button is disabled.
|
|
38
|
+
* @property {boolean} cancelButtonDanger - Whether the Cancel button uses danger style.
|
|
39
|
+
* @property {boolean} hideCancelButton - Whether to hide the Cancel button.
|
|
40
|
+
* @property {string} cancelButtonSize - Override size for the Cancel button; empty uses modal size.
|
|
41
|
+
* @property {string} cancelButtonSizeMap - Override sizeMap for the Cancel button.
|
|
42
|
+
*
|
|
43
|
+
* @property {string} closeButtonSize - Override size for the close icon button; empty uses modal size.
|
|
44
|
+
* @property {string} closeButtonSizeMap - Override sizeMap for the close icon button.
|
|
45
|
+
*
|
|
46
|
+
* @property {boolean} useNativeFocus - Use native browser focus handling. Default is false.
|
|
32
47
|
*
|
|
33
48
|
* @event {{ void }} dds-before-open - Fires before the modal opens.
|
|
34
49
|
* @event {{ void }} dds-opened - Fires after the modal opens.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
2
|
-
|
|
2
|
+
declare const ProgressBaseWithSized: typeof DdsElement & {
|
|
3
|
+
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
4
|
+
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
5
|
+
};
|
|
3
6
|
export type ProgressVariant = 'linear' | 'circular';
|
|
4
7
|
export type ProgressColor = 'neutral' | 'brand' | 'negative' | 'positive' | 'inverted';
|
|
5
8
|
/**
|
|
@@ -38,8 +41,10 @@ export type ProgressColor = 'neutral' | 'brand' | 'negative' | 'positive' | 'inv
|
|
|
38
41
|
* @cssprop --dds-progress-stroke-width - Stroke width for circular progress (default: var(--dds-spacing-200))
|
|
39
42
|
* @cssprop --dds-progress-animation-duration - Duration of indeterminate animation (default: 1.5s)
|
|
40
43
|
*
|
|
44
|
+
* @property { 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' } size - The size of the progress indicator. Default is `sm`. See SizedMixin.
|
|
45
|
+
* @property {string} sizeMap - Responsive size map (e.g. "md:lg"); see SizedMixin.
|
|
41
46
|
*/
|
|
42
|
-
export default class DapDSProgress extends
|
|
47
|
+
export default class DapDSProgress extends ProgressBaseWithSized {
|
|
43
48
|
/**
|
|
44
49
|
* The variant of the progress indicator.
|
|
45
50
|
* @type {"linear" | "circular"}
|
|
@@ -50,11 +55,6 @@ export default class DapDSProgress extends DdsElement {
|
|
|
50
55
|
* @type {"neutral" | "brand" | "negative" | "positive" | "inverted"}
|
|
51
56
|
*/
|
|
52
57
|
color: ProgressColor;
|
|
53
|
-
/**
|
|
54
|
-
* The size of the progress indicator.
|
|
55
|
-
* @type {"xxl" | "xl" | "lg" | "md" | "sm" | "xs"}
|
|
56
|
-
*/
|
|
57
|
-
size: IconSize;
|
|
58
58
|
/**
|
|
59
59
|
* Current progress value (0-100 for percentage, or 0-max).
|
|
60
60
|
*/
|
|
@@ -81,6 +81,8 @@ export default class DapDSProgress extends DdsElement {
|
|
|
81
81
|
*/
|
|
82
82
|
ariaLive: 'polite' | 'assertive' | 'off';
|
|
83
83
|
static readonly styles: import('lit').CSSResult;
|
|
84
|
+
/** Maps effectiveSize from SizedMixin to progress visual size class (xs–lg; xxs maps to xs). */
|
|
85
|
+
private get progressSize();
|
|
84
86
|
/**
|
|
85
87
|
* Calculate the percentage value (0-100).
|
|
86
88
|
*/
|
|
@@ -100,3 +102,4 @@ export default class DapDSProgress extends DdsElement {
|
|
|
100
102
|
private renderCircular;
|
|
101
103
|
render(): import('lit-html').TemplateResult<1>;
|
|
102
104
|
}
|
|
105
|
+
export {};
|