dap-design-system 0.52.5 → 0.52.6
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/debounce.d.ts +0 -7
- package/dist/common/types.d.ts +24 -16
- package/dist/common/utils.d.ts +7 -0
- package/dist/components/avatar/avatar.component.d.ts +1 -3
- package/dist/components/callout/callout.component.d.ts +1 -2
- package/dist/components/feedback/feedback.component.d.ts +0 -6
- package/dist/components/file-input/file-input-list-item.component.d.ts +1 -2
- package/dist/components/form/input-group/input-group.component.d.ts +1 -1
- package/dist/components/link/link.component.d.ts +1 -3
- package/dist/components/list-item/list-item.component.d.ts +1 -3
- package/dist/{components--5s0_lB4.js → components-BzxEBN-h.js} +231 -225
- package/dist/components-BzxEBN-h.js.map +1 -0
- package/dist/components.js +1 -1
- package/dist/dds.js +1 -1
- package/dist/internal/mixin/feedbackMixin.d.ts +1 -2
- package/dist/manifest/types/vue/index.d.ts +142 -142
- package/dist/manifest/vscode.html-custom-data.json +118 -118
- package/dist/manifest/web-types.json +199 -199
- package/dist/react/dap-ds-input-group/index.d.ts +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react-types.ts +5 -5
- package/dist/react.js +93 -93
- package/dist/react.js.map +1 -1
- package/package.json +2 -2
- package/dist/components--5s0_lB4.js.map +0 -1
|
@@ -7,10 +7,3 @@
|
|
|
7
7
|
* @returns A debounced version of the function
|
|
8
8
|
*/
|
|
9
9
|
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): (...args: Parameters<T>) => void;
|
|
10
|
-
/**
|
|
11
|
-
* Converts a string to kebab-case.
|
|
12
|
-
*
|
|
13
|
-
* @param str - The string to convert
|
|
14
|
-
* @returns The kebab-cased string
|
|
15
|
-
*/
|
|
16
|
-
export declare function kebabCase(str: string): string;
|
package/dist/common/types.d.ts
CHANGED
|
@@ -5,26 +5,31 @@ export type Size = 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
|
|
|
5
5
|
export type CommonSize = Extract<Size, 'xs' | 'sm' | 'lg'>;
|
|
6
6
|
export type CommonFormElementSize = Extract<Size, 'sm' | 'md' | 'lg'>;
|
|
7
7
|
export type Layout = 'horizontal' | 'vertical';
|
|
8
|
-
export type ElementSpacing = '
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
8
|
+
export type ElementSpacing = 'both' | 'bottom' | 'none' | 'top';
|
|
9
|
+
export type LinkSize = Extract<Size, 'lg' | 'md' | 'sm' | 'xs'>;
|
|
10
|
+
export type LinkVariant = 'brand' | 'inverted' | 'neutral' | 'warning';
|
|
11
|
+
export type ListItemVariant = 'empty' | 'fail' | 'info' | 'notapplicable' | 'number' | 'pass';
|
|
12
|
+
export type ListItemStatus = 'brand' | 'negative' | 'neutral' | 'positive';
|
|
13
|
+
export type InputStatus = 'error' | 'success';
|
|
14
|
+
export type InputTypes = 'button' | 'color' | 'email' | 'file' | 'hidden' | 'number' | 'password' | 'reset' | 'submit' | 'text' | 'time' | 'url';
|
|
15
|
+
export type Placement = 'bottom' | 'center' | 'left' | 'right' | 'top';
|
|
12
16
|
export type LabelPlacement = Extract<Placement, 'left' | 'right'>;
|
|
13
|
-
export type DescriptionPlacement = Extract<Placement, '
|
|
14
|
-
export type BackgroundShade = '
|
|
15
|
-
export type Alignment = '
|
|
17
|
+
export type DescriptionPlacement = Extract<Placement, 'bottom' | 'top'>;
|
|
18
|
+
export type BackgroundShade = 'base' | 'medium' | 'strong' | 'subtle';
|
|
19
|
+
export type Alignment = 'horizontal' | 'vertical';
|
|
16
20
|
export type ButtonSize = Extract<Size, 'lg' | 'md' | 'sm' | 'xs'>;
|
|
17
21
|
export type ButtonShape = 'button' | 'circle';
|
|
18
|
-
export type CSSFlexDirection = 'column' | '
|
|
22
|
+
export type CSSFlexDirection = 'column' | 'column-reverse' | 'row' | 'row-reverse';
|
|
19
23
|
export type Spacing = 0 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 1000 | 1200 | 1400 | 1600 | 1800 | 2000 | 2400 | 3000 | 4000 | 5000 | 6000;
|
|
20
|
-
export type PopupPlacement = '
|
|
21
|
-
export type PopupTrigger = 'click' | '
|
|
24
|
+
export type PopupPlacement = 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-end' | 'left-start' | 'right' | 'right-end' | 'right-start' | 'top' | 'top-end' | 'top-start';
|
|
25
|
+
export type PopupTrigger = 'click' | 'focus' | 'hover' | 'hover focus' | 'manual';
|
|
22
26
|
export type TooltipMode = 'tooltip' | 'toggle';
|
|
23
|
-
export type LinkTarget = '_blank' | '
|
|
27
|
+
export type LinkTarget = '_blank' | '_parent' | '_self' | '_top';
|
|
24
28
|
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
25
29
|
export type FloatingStrategy = 'absolute' | 'fixed';
|
|
26
|
-
export type SnackbarPosition = 'bottom-
|
|
27
|
-
export type AlertType = 'default' | '
|
|
30
|
+
export type SnackbarPosition = 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-right';
|
|
31
|
+
export type AlertType = 'default' | 'error' | 'information' | 'successful';
|
|
32
|
+
export type FeedbackType = 'negative' | 'positive' | 'warning';
|
|
28
33
|
export type ActionType = {
|
|
29
34
|
href?: string;
|
|
30
35
|
target?: LinkTarget;
|
|
@@ -45,8 +50,11 @@ export type SnackbarMessage = {
|
|
|
45
50
|
message: string;
|
|
46
51
|
options?: MessageOptionsType;
|
|
47
52
|
};
|
|
48
|
-
export type
|
|
49
|
-
export type
|
|
53
|
+
export type AvatarShape = 'circle' | 'rounded' | 'square';
|
|
54
|
+
export type AvatarVariant = 'icon' | 'image' | 'initials';
|
|
55
|
+
export type BadgeType = 'brand' | 'info' | 'negative' | 'neutral' | 'positive' | 'warning';
|
|
56
|
+
export type CalloutVariant = 'brand' | 'info' | 'negative' | 'positive' | 'warning';
|
|
57
|
+
export type FileType = 'audio' | 'document' | 'image' | 'pdf' | 'unknown' | 'video';
|
|
50
58
|
export type FileItemTemplate = {
|
|
51
59
|
component: DapDSFileInputListItem;
|
|
52
60
|
file: File;
|
|
@@ -79,4 +87,4 @@ export interface TimePreset {
|
|
|
79
87
|
label: string;
|
|
80
88
|
value: string;
|
|
81
89
|
}
|
|
82
|
-
export type CloseSource = '
|
|
90
|
+
export type CloseSource = 'cancel-button' | 'close-button' | 'esc' | 'ok-button' | 'overlay';
|
package/dist/common/utils.d.ts
CHANGED
|
@@ -61,3 +61,10 @@ export declare function getValidityStateObject(state: Partial<ValidityState>): {
|
|
|
61
61
|
valid: boolean;
|
|
62
62
|
valueMissing: boolean;
|
|
63
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* Converts a string to kebab-case.
|
|
66
|
+
*
|
|
67
|
+
* @param str - The string to convert
|
|
68
|
+
* @returns The kebab-cased string
|
|
69
|
+
*/
|
|
70
|
+
export declare function kebabCase(str: string): string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Size } from '../../dap-design-system';
|
|
1
|
+
import { AvatarShape, AvatarVariant, Size } from '../../dap-design-system';
|
|
2
2
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
3
|
-
export type AvatarShape = 'circle' | 'rounded' | 'square';
|
|
4
|
-
export type AvatarVariant = 'image' | 'initials' | 'icon';
|
|
5
3
|
/**
|
|
6
4
|
* `dap-ds-avatar`
|
|
7
5
|
* @summary Avatar component can be used to display user profile images, initials, or icons.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { nothing } from 'lit';
|
|
2
|
-
import { Alignment, BackgroundShade } from '../../common/types';
|
|
2
|
+
import { Alignment, BackgroundShade, CalloutVariant } from '../../common/types';
|
|
3
3
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
4
|
-
export type CalloutVariant = 'brand' | 'info' | 'positive' | 'warning' | 'negative';
|
|
5
4
|
/**
|
|
6
5
|
* `dap-ds-callout` is a custom callout component.
|
|
7
6
|
* @element dap-ds-callout
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import { CommonSize } from '../../common/types';
|
|
2
1
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
3
|
-
export type FeedbackType = 'negative' | 'positive' | 'warning';
|
|
4
|
-
export type FeedbackProps = {
|
|
5
|
-
size?: CommonSize;
|
|
6
|
-
type: FeedbackType;
|
|
7
|
-
};
|
|
8
2
|
declare const DapDSFeedback_base: typeof DdsElement & {
|
|
9
3
|
new (...args: any[]): import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
10
4
|
prototype: import('../../internal/mixin/sizedMixin').SizedElementInterface;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit';
|
|
2
|
-
import { FileItemTemplate, LinkTarget } from '../../common/types';
|
|
2
|
+
import { FeedbackType, FileItemTemplate, LinkTarget } from '../../common/types';
|
|
3
3
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
4
|
-
import { FeedbackType } from '../feedback/feedback.component';
|
|
5
4
|
export type FileListElement = {
|
|
6
5
|
name: string;
|
|
7
6
|
type: string;
|
|
@@ -15,7 +15,7 @@ import { GenericFormElement } from '../../../internal/mixin/genericFormElement';
|
|
|
15
15
|
* @property {string} tooltipAriaLabel - The aria label of the tooltip.
|
|
16
16
|
* @property {string} optionalLabel - The label of the input group when it is optional.
|
|
17
17
|
* @property {boolean} disabled - Whether the input group is disabled.
|
|
18
|
-
* @property {'xs' | 'sm' | 'lg'} size - The size of the input group. Default is `sm`.
|
|
18
|
+
* @property {'xs' | 'sm' | 'lg'} size - The size of the input group. Default is `sm`.
|
|
19
19
|
* @property {boolean} required - Whether the input group is required.
|
|
20
20
|
* @property {boolean} optional - Whether the input group is optional.
|
|
21
21
|
* @property {string} feedback - The feedback of the input.
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { LinkTarget,
|
|
1
|
+
import { LinkSize, LinkTarget, LinkVariant } from '../../common/types';
|
|
2
2
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
3
|
-
export type LinkSize = Extract<Size, 'lg' | 'md' | 'sm' | 'xs'>;
|
|
4
|
-
export type LinkVariant = 'neutral' | 'brand' | 'inverted' | 'warning';
|
|
5
3
|
/**
|
|
6
4
|
* `dap-ds-link`
|
|
7
5
|
* @summary A link is a reference to a web resource.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { PropertyValueMap } from 'lit';
|
|
2
|
-
import { Alignment, BackgroundShade, LinkTarget } from '../../common/types';
|
|
2
|
+
import { Alignment, BackgroundShade, LinkTarget, ListItemStatus, ListItemVariant } from '../../common/types';
|
|
3
3
|
import { DdsElement } from '../../internal/dds-hu-element';
|
|
4
|
-
export type ListItemVariant = 'info' | 'pass' | 'fail' | 'notapplicable' | 'empty' | 'number';
|
|
5
|
-
export type ListItemStatus = 'brand' | 'neutral' | 'positive' | 'negative';
|
|
6
4
|
/**
|
|
7
5
|
* `dap-ds-list-item` is a custom banner component.
|
|
8
6
|
* @element dap-ds-list-item
|