@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.
@@ -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
- declare const WarpAttention_base: {
2
- new (): {
3
- [x: string]: any;
4
- };
5
- [x: string]: any;
6
- createProperty(name: any, options: any): void;
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
- export class WarpAttention extends WarpAttention_base {
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: string;
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
- _initialPlacement: string;
44
+ fallbackPlacements: Directions[];
78
45
  /** @internal */
79
- set _actualDirection(v: string);
46
+ attentionState: any;
80
47
  /** @internal */
81
- get _actualDirection(): string;
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 _arrowEl(): any;
55
+ get _actualDirection(): Directions;
86
56
  /** @internal */
87
- get _arrowDirection(): any;
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(): any;
72
+ get _attentionEl(): HTMLDivElement;
99
73
  /** @internal */
100
- get _targetEl(): any;
74
+ get _targetEl(): Element | null;
101
75
  /** @internal */
102
- get _messageEl(): any;
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: any): void;
90
+ keypressed(e: KeyboardEvent): void;
132
91
  render(): import("lit").TemplateResult<1>;
133
92
  }
134
- export {};
93
+ export { WarpAttention };