@warp-ds/elements 2.2.0-next.8 → 2.2.0-next.9
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/api.js +1 -1
- package/dist/api.js.map +4 -4
- package/dist/custom-elements.json +2166 -2195
- package/dist/index.js +1047 -148
- package/dist/index.js.map +4 -4
- package/dist/packages/attention/attention.stories.d.ts +5 -0
- package/dist/packages/attention/attention.test.d.ts +1 -0
- package/dist/packages/attention/index.d.ts +48 -89
- package/dist/packages/attention/index.js +3354 -16
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/attention/layout-styles.d.ts +1 -0
- package/dist/packages/attention/react.d.ts +1 -0
- package/dist/packages/attention/react.js +3405 -0
- package/dist/packages/attention/react.js.map +7 -0
- package/dist/packages/attention/styles.d.ts +1 -0
- package/dist/packages/toast/api.d.ts +4 -45
- package/dist/packages/toast/index.d.ts +3 -3
- package/dist/packages/toast/index.js +2461 -22
- package/dist/packages/toast/index.js.map +4 -4
- package/dist/packages/toast/styles.d.ts +1 -0
- package/dist/packages/toast/toast-container.d.ts +12 -78
- package/dist/packages/toast/toast.d.ts +16 -29
- package/dist/packages/toast/types.d.ts +15 -0
- package/dist/vscode.html-custom-data.json +23 -20
- package/dist/web-types.json +81 -78
- package/package.json +1 -1
|
@@ -8,3 +8,8 @@ declare const meta: Meta<typeof args>;
|
|
|
8
8
|
export default meta;
|
|
9
9
|
type Story = StoryObj<typeof args>;
|
|
10
10
|
export declare const Default: Story;
|
|
11
|
+
export declare const ToolTip: Story;
|
|
12
|
+
export declare const Callout: Story;
|
|
13
|
+
export declare const Highlight: Story;
|
|
14
|
+
export declare const DismissibleHighlight: Story;
|
|
15
|
+
export declare const AccessibleTooltip: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.js';
|
|
@@ -1,69 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { Directions } from '@warp-ds/core/attention';
|
|
3
|
+
import '@warp-ds/icons/elements/close-16';
|
|
4
|
+
export declare const ccAttention: {
|
|
5
|
+
base: string;
|
|
6
|
+
tooltip: string;
|
|
7
|
+
callout: string;
|
|
8
|
+
highlight: string;
|
|
9
|
+
popover: string;
|
|
10
|
+
arrowBase: string;
|
|
11
|
+
arrowDirectionLeftStart: string;
|
|
12
|
+
arrowDirectionLeft: string;
|
|
13
|
+
arrowDirectionLeftEnd: string;
|
|
14
|
+
arrowDirectionRightStart: string;
|
|
15
|
+
arrowDirectionRight: string;
|
|
16
|
+
arrowDirectionRightEnd: string;
|
|
17
|
+
arrowDirectionBottomStart: string;
|
|
18
|
+
arrowDirectionBottom: string;
|
|
19
|
+
arrowDirectionBottomEnd: string;
|
|
20
|
+
arrowDirectionTopStart: string;
|
|
21
|
+
arrowDirectionTop: string;
|
|
22
|
+
arrowDirectionTopEnd: string;
|
|
23
|
+
arrowTooltip: string;
|
|
24
|
+
arrowCallout: string;
|
|
25
|
+
arrowPopover: string;
|
|
26
|
+
arrowHighlight: string;
|
|
27
|
+
content: string;
|
|
28
|
+
notCallout: string;
|
|
29
|
+
closeBtn: string;
|
|
7
30
|
};
|
|
8
|
-
|
|
9
|
-
static properties: {
|
|
10
|
-
show: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
reflect: boolean;
|
|
13
|
-
};
|
|
14
|
-
placement: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
reflect: boolean;
|
|
17
|
-
};
|
|
18
|
-
tooltip: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
reflect: boolean;
|
|
21
|
-
};
|
|
22
|
-
callout: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
reflect: boolean;
|
|
25
|
-
};
|
|
26
|
-
popover: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
reflect: boolean;
|
|
29
|
-
};
|
|
30
|
-
highlight: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
reflect: boolean;
|
|
33
|
-
};
|
|
34
|
-
canClose: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
reflect: boolean;
|
|
37
|
-
};
|
|
38
|
-
noArrow: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
reflect: boolean;
|
|
41
|
-
};
|
|
42
|
-
distance: {
|
|
43
|
-
type: NumberConstructor;
|
|
44
|
-
reflect: boolean;
|
|
45
|
-
};
|
|
46
|
-
skidding: {
|
|
47
|
-
type: NumberConstructor;
|
|
48
|
-
reflect: boolean;
|
|
49
|
-
};
|
|
50
|
-
flip: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
reflect: boolean;
|
|
53
|
-
};
|
|
54
|
-
crossAxis: {
|
|
55
|
-
type: BooleanConstructor;
|
|
56
|
-
reflect: boolean;
|
|
57
|
-
};
|
|
58
|
-
fallbackPlacements: {
|
|
59
|
-
type: ArrayConstructor;
|
|
60
|
-
reflect: boolean;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
static styles: (import("lit").CSSResult | (import("lit").CSSResult | CSSStyleSheet | import("lit").CSSResultArray)[])[];
|
|
64
|
-
handleDone(): void;
|
|
31
|
+
declare class WarpAttention extends LitElement {
|
|
65
32
|
show: boolean;
|
|
66
|
-
placement:
|
|
33
|
+
placement: Directions;
|
|
67
34
|
tooltip: boolean;
|
|
68
35
|
callout: boolean;
|
|
69
36
|
popover: boolean;
|
|
@@ -74,17 +41,24 @@ export class WarpAttention extends WarpAttention_base {
|
|
|
74
41
|
skidding: number;
|
|
75
42
|
flip: boolean;
|
|
76
43
|
crossAxis: boolean;
|
|
77
|
-
|
|
44
|
+
fallbackPlacements: Directions[];
|
|
78
45
|
/** @internal */
|
|
79
|
-
|
|
46
|
+
attentionState: any;
|
|
80
47
|
/** @internal */
|
|
81
|
-
|
|
48
|
+
_initialPlacement: Directions;
|
|
49
|
+
static styles: import("lit").CSSResult[];
|
|
50
|
+
constructor();
|
|
82
51
|
connectedCallback(): void;
|
|
83
52
|
disconnectedCallback(): void;
|
|
53
|
+
handleDone(): void;
|
|
84
54
|
/** @internal */
|
|
85
|
-
get
|
|
55
|
+
get _actualDirection(): Directions;
|
|
86
56
|
/** @internal */
|
|
87
|
-
|
|
57
|
+
set _actualDirection(v: Directions);
|
|
58
|
+
/** @internal */
|
|
59
|
+
get _arrowEl(): Element;
|
|
60
|
+
/** @internal */
|
|
61
|
+
get _arrowDirection(): Directions;
|
|
88
62
|
/** @internal */
|
|
89
63
|
get _arrowClasses(): string;
|
|
90
64
|
/** @internal */
|
|
@@ -95,11 +69,11 @@ export class WarpAttention extends WarpAttention_base {
|
|
|
95
69
|
arrow: any;
|
|
96
70
|
};
|
|
97
71
|
/** @internal */
|
|
98
|
-
get _attentionEl():
|
|
72
|
+
get _attentionEl(): HTMLDivElement;
|
|
99
73
|
/** @internal */
|
|
100
|
-
get _targetEl():
|
|
74
|
+
get _targetEl(): Element | null;
|
|
101
75
|
/** @internal */
|
|
102
|
-
get _messageEl():
|
|
76
|
+
get _messageEl(): Element | null;
|
|
103
77
|
/** @internal */
|
|
104
78
|
get _wrapperClasses(): string;
|
|
105
79
|
/** @internal */
|
|
@@ -107,28 +81,13 @@ export class WarpAttention extends WarpAttention_base {
|
|
|
107
81
|
/** @internal */
|
|
108
82
|
get _closeBtnHtml(): import("lit").TemplateResult<1>;
|
|
109
83
|
updated(): void;
|
|
110
|
-
attentionState: {
|
|
111
|
-
isShowing: boolean;
|
|
112
|
-
isCallout: boolean;
|
|
113
|
-
actualDirection: string;
|
|
114
|
-
directionName: string;
|
|
115
|
-
arrowEl: any;
|
|
116
|
-
attentionEl: any;
|
|
117
|
-
targetEl: any;
|
|
118
|
-
noArrow: boolean;
|
|
119
|
-
distance: number;
|
|
120
|
-
skidding: number;
|
|
121
|
-
flip: boolean;
|
|
122
|
-
crossAxis: boolean;
|
|
123
|
-
fallbackPlacements: any;
|
|
124
|
-
};
|
|
125
84
|
pointingAtDirection(): string;
|
|
126
85
|
activeAttentionType(): string;
|
|
127
86
|
defaultAriaLabel(): string;
|
|
128
87
|
setAriaLabels(): void;
|
|
129
88
|
firstUpdated(): void;
|
|
130
89
|
close(): void;
|
|
131
|
-
keypressed(e:
|
|
90
|
+
keypressed(e: KeyboardEvent): void;
|
|
132
91
|
render(): import("lit").TemplateResult<1>;
|
|
133
92
|
}
|
|
134
|
-
export {};
|
|
93
|
+
export { WarpAttention };
|