@duyluonganduin/acl-web-components 0.0.10 → 0.0.12

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/react.d.ts CHANGED
@@ -1,346 +1,579 @@
1
- /**
2
- * React JSX type declarations for @duyluonganduin/acl-web-components.
3
- *
4
- * Augments React.JSX.IntrinsicElements so TypeScript accepts custom elements
5
- * (e.g. <anduin-button>) in .tsx files without errors.
6
- *
7
- * Usage add one of these to your project:
8
- * // tsconfig.json → "types": ["@duyluonganduin/acl-web-components/react"]
9
- * // or a .d.ts file → /// <reference types="@duyluonganduin/acl-web-components/react" />
10
- */
11
-
12
- import type { HTMLAttributes } from 'react'
13
-
14
- type Base = HTMLAttributes<HTMLElement>
15
-
16
- declare module 'react' {
17
- // eslint-disable-next-line @typescript-eslint/no-namespace
18
- namespace JSX {
19
- interface IntrinsicElements {
20
- // ── anduin-spinner ────────────────────────────────────────────────────
21
- 'anduin-spinner': Base & {
22
- /** 'small' | 'medium' | 'large' | 'extraLarge' (default: 'medium') */
23
- size?: string
24
- /** 0–1 fill fraction; omit for indeterminate */
25
- percent?: string
26
- }
27
-
28
- // ── anduin-icon ───────────────────────────────────────────────────────
29
- 'anduin-icon': Base & {
30
- /** Icon name from the icon set */
31
- name?: string
32
- /** Pixel size (default: 16) */
33
- size?: number | string
34
- }
35
-
36
- // ── anduin-badge ──────────────────────────────────────────────────────
37
- 'anduin-badge': Base & {
38
- /** 'gray' | 'primary' | 'success' | 'warning' | 'danger'
39
- * | 'boldGray' | 'boldPrimary' | 'boldSuccess' | 'boldWarning' | 'boldDanger'
40
- * (default: 'gray') */
41
- variant?: string
42
- }
43
-
44
- // ── anduin-badge-count ────────────────────────────────────────────────
45
- 'anduin-badge-count': Base & {
46
- /** Same values as anduin-badge (default: 'gray') */
47
- variant?: string
48
- /** Numeric count; hidden when 0, capped at '99+' */
49
- count?: number | string
50
- }
51
-
52
- // ── anduin-button ─────────────────────────────────────────────────────
53
- 'anduin-button': Base & {
54
- /** 'filled' | 'outlined' | 'plain' | 'text' (default: 'filled') */
55
- appearance?: 'filled' | 'outlined' | 'plain' | 'text'
56
- /** 'gray0' | 'gray9' | 'primary' | 'danger' | 'success' | 'warning' */
57
- variant?: 'gray0' | 'gray9' | 'primary' | 'danger' | 'success' | 'warning'
58
- /** 'tiny' | 'extraSmall' | 'small' | 'medium' | 'large' | 'free' (default: 'medium') */
59
- size?: 'tiny' | 'extraSmall' | 'small' | 'medium' | 'large' | 'free'
60
- disabled?: boolean | string
61
- loading?: boolean | string
62
- 'full-width'?: boolean | string
63
- pill?: boolean | string
64
- selected?: boolean | string
65
- /** Renders an <a> tag when provided */
66
- href?: string
67
- 'open-new-tab'?: boolean | string
68
- download?: string
69
- /** anduin-icon name placed before the label */
70
- 'start-icon'?: string
71
- /** anduin-icon name placed after the label */
72
- 'end-icon'?: string
73
- /** aria-label shorthand */
74
- label?: string
75
- }
76
-
77
- // ── anduin-callout ────────────────────────────────────────────────────
78
- 'anduin-callout': Base & {
79
- /** 'gray' | 'primary' | 'success' | 'danger' | 'warning' (default: 'gray') */
80
- variant?: string
81
- }
82
-
83
- // ── anduin-divider ────────────────────────────────────────────────────
84
- 'anduin-divider': Base & {
85
- /** 'horizontal' | 'vertical' (default: 'horizontal') */
86
- direction?: 'horizontal' | 'vertical'
87
- }
88
-
89
- // ── anduin-dot ────────────────────────────────────────────────────────
90
- 'anduin-dot': Base & {
91
- /** 'gray' | 'primary' | 'success' | 'danger' | 'warning' (default: 'gray') */
92
- variant?: string
93
- }
94
-
95
- // ── anduin-progress ───────────────────────────────────────────────────
96
- 'anduin-progress': Base & {
97
- /** 0–1 fill fraction; omit for indeterminate */
98
- percent?: string
99
- /** 'medium' | 'large' (default: 'medium') */
100
- height?: string
101
- }
102
-
103
- // ── anduin-skeleton ───────────────────────────────────────────────────
104
- 'anduin-skeleton': Base & {
105
- /** 'pulse' | 'wave' (default: 'pulse') */
106
- effect?: string
107
- /** 'rectangle' | 'rounded' | 'circle' | 'text' (default: 'rectangle') */
108
- shape?: string
109
- height?: string
110
- width?: string
111
- /** Animation duration in ms (default: 1500) */
112
- duration?: number | string
113
- /** CSS font-size for shape='text' */
114
- 'font-size'?: string
115
- }
116
-
117
- // ── anduin-loading-state ──────────────────────────────────────────────
118
- 'anduin-loading-state': Base & {
119
- /** CSS height of the container (default: '256px') */
120
- height?: string
121
- }
122
-
123
- // ── anduin-field ──────────────────────────────────────────────────────
124
- 'anduin-field': Base & {
125
- /** 'vertical' | 'horizontal' (default: 'vertical') */
126
- orientation?: 'vertical' | 'horizontal'
127
- }
128
-
129
- // ── anduin-field-label ────────────────────────────────────────────────
130
- 'anduin-field-label': Base & {
131
- /** id of the associated input (mirrors <label for="…">) */
132
- htmlfor?: string
133
- required?: boolean | string
134
- }
135
-
136
- // ── anduin-field-description ──────────────────────────────────────────
137
- 'anduin-field-description': Base
138
-
139
- // ── anduin-field-error ────────────────────────────────────────────────
140
- 'anduin-field-error': Base
141
-
142
- // ── anduin-field-group ────────────────────────────────────────────────
143
- 'anduin-field-group': Base
144
-
145
- // ── anduin-checkbox ───────────────────────────────────────────────────
146
- 'anduin-checkbox': Base & {
147
- checked?: boolean | string
148
- disabled?: boolean | string
149
- indeterminate?: boolean | string
150
- readonly?: boolean | string
151
- /** id linking this checkbox to an anduin-field-label */
152
- inputid?: string
153
- }
154
-
155
- // ── anduin-input ──────────────────────────────────────────────────────
156
- 'anduin-input': Base & {
157
- value?: string
158
- /** 'small' | 'default' | 'large' (default: 'default') */
159
- size?: 'small' | 'default' | 'large'
160
- disabled?: boolean | string
161
- readonly?: boolean | string
162
- placeholder?: string
163
- /** id attribute on the inner <input> */
164
- inputid?: string
165
- /** 'valid' | 'invalid' | 'warning' | 'loading' */
166
- status?: string
167
- /** anduin-icon name shown on the left */
168
- 'start-icon'?: string
169
- /** anduin-icon name shown on the right */
170
- 'end-icon'?: string
171
- /** Show a clear button when value is non-empty */
172
- clearable?: boolean | string
173
- }
174
-
175
- // ── anduin-textarea ───────────────────────────────────────────────────
176
- 'anduin-textarea': Base & {
177
- value?: string
178
- disabled?: boolean | string
179
- readonly?: boolean | string
180
- placeholder?: string
181
- /** id attribute on the inner <textarea> */
182
- inputid?: string
183
- rows?: number | string
184
- /** 'valid' | 'invalid' | 'warning' | 'loading' */
185
- status?: string
186
- }
187
-
188
- // ── anduin-popover ────────────────────────────────────────────────────
189
- 'anduin-popover': Base & {
190
- /** Whether the panel is open (default: false) */
191
- open?: boolean | string
192
- /** 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end' (default: 'bottom-start') */
193
- placement?: string
194
- }
195
-
196
- // ── anduin-menu ───────────────────────────────────────────────────────
197
- 'anduin-menu': Base & {
198
- /** Whether the menu is open (default: false) */
199
- open?: boolean | string
200
- /** 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end' (default: 'bottom-start') */
201
- placement?: string
202
- }
203
-
204
- // ── anduin-menu-item ──────────────────────────────────────────────────
205
- 'anduin-menu-item': Base & {
206
- /** anduin-icon name shown before the label */
207
- icon?: string
208
- /** 'default' | 'danger' (default: 'default') */
209
- variant?: 'default' | 'danger'
210
- disabled?: boolean | string
211
- }
212
-
213
- // ── anduin-tabs ───────────────────────────────────────────────────────
214
- 'anduin-tabs': Base & {
215
- /** Initially active tab value */
216
- 'default-value'?: string
217
- /** Controlled active tab value */
218
- value?: string
219
- /** Stretch tabs + active panel to fill parent height */
220
- fill?: boolean | string
221
- }
222
-
223
- // ── anduin-tabs-list ──────────────────────────────────────────────────
224
- 'anduin-tabs-list': Base & {
225
- /** 'left' | 'center' | 'right' (default: 'left') */
226
- alignment?: 'left' | 'center' | 'right'
227
- }
228
-
229
- // ── anduin-tab-trigger ────────────────────────────────────────────────
230
- 'anduin-tab-trigger': Base & {
231
- /** Must match a corresponding anduin-tab-content value */
232
- value?: string
233
- /** anduin-icon name */
234
- 'start-icon'?: string
235
- disabled?: boolean | string
236
- /** Show a count badge on the trigger */
237
- 'show-badge'?: boolean | string
238
- /** Text shown inside the badge */
239
- 'badge-count'?: string
240
- }
241
-
242
- // ── anduin-tab-content ────────────────────────────────────────────────
243
- 'anduin-tab-content': Base & {
244
- /** Must match a corresponding anduin-tab-trigger value */
245
- value?: string
246
- }
247
-
248
- // ── anduin-tag ────────────────────────────────────────────────────────
249
- 'anduin-tag': Base & {
250
- /** See TagVariant in anduin-tag.ts for all accepted values (default: 'gray') */
251
- variant?: string
252
- /** anduin-icon name shown before the label */
253
- icon?: string
254
- disabled?: boolean | string
255
- }
256
-
257
- // ── anduin-tag-close ──────────────────────────────────────────────────
258
- 'anduin-tag-close': Base
259
-
260
- // ── anduin-tooltip ────────────────────────────────────────────────────
261
- 'anduin-tooltip': Base & {
262
- disabled?: boolean | string
263
- /** e.g. 'top-center' | 'bottom-start' | 'right-end' … (default: 'top-center') */
264
- placement?: string
265
- }
266
-
267
- // ── anduin-tooltip-trigger ────────────────────────────────────────────
268
- 'anduin-tooltip-trigger': Base
269
-
270
- // ── anduin-tooltip-content ────────────────────────────────────────────
271
- 'anduin-tooltip-content': Base
272
-
273
- // ── anduin-well ───────────────────────────────────────────────────────
274
- 'anduin-well': Base & {
275
- /** 'gray' | 'primary' | 'success' | 'danger' | 'warning' (default: 'gray') */
276
- variant?: string
277
- }
278
-
279
- // ── anduin-well-close ─────────────────────────────────────────────────
280
- 'anduin-well-close': Base
281
-
282
- // ── anduin-modal ──────────────────────────────────────────────────────
283
- 'anduin-modal': Base & {
284
- /** Whether the modal is open */
285
- open?: boolean | string
286
- /** Modal title text */
287
- heading?: string
288
- /** Max-width preset: '480' | '600' | '720' | '960' | '1160', or any CSS value (default: '480') */
289
- 'max-width'?: '480' | '600' | '720' | '960' | '1160' | string
290
- /** Hide the header (title + close button) */
291
- 'hide-header'?: boolean | string
292
- /** Hide the footer slot container */
293
- 'hide-footer'?: boolean | string
294
- /** Cover the full viewport; hides overlay and removes border-radius */
295
- fullscreen?: boolean | string
296
- /** Fired when the modal should close (X, overlay, or anduin-modal-close) */
297
- onClose?: (e: CustomEvent) => void
298
- }
299
-
300
- // ── anduin-modal-close ────────────────────────────────────────────────
301
- 'anduin-modal-close': Base
302
-
303
- // ── anduin-avatar ─────────────────────────────────────────────────────
304
- 'anduin-avatar': Base & {
305
- /** Image URL */
306
- src?: string
307
- /** Name used for initials and color */
308
- name?: string
309
- /** Alt text for the image */
310
- alt?: string
311
- /** anduin-icon name to show instead of initials */
312
- icon?: string
313
- /** 16 | 20 | 24 | 32 (default: 32) */
314
- size?: 16 | 20 | 24 | 32 | string
315
- /** 'circle' | 'rounded' (default: 'circle') */
316
- shape?: 'circle' | 'rounded'
317
- }
318
-
319
- // ── anduin-toast ──────────────────────────────────────────────────────
320
- 'anduin-toast': Base & {
321
- /** 'gray' | 'primary' | 'success' | 'warning' | 'danger' (default: 'gray') */
322
- variant?: 'gray' | 'primary' | 'success' | 'warning' | 'danger'
323
- /** Bold title text */
324
- heading?: string
325
- /** Body text (or use slot content) */
326
- description?: string
327
- }
328
-
329
- // ── anduin-toaster ────────────────────────────────────────────────────
330
- 'anduin-toaster': Base & {
331
- /** 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' (default: 'top-right') */
332
- position?: string
333
- }
334
-
335
- // ── anduin-file-icon ──────────────────────────────────────────────────
336
- 'anduin-file-icon': Base & {
337
- /** 'archive' | 'audio' | 'blueprint' | 'box' | 'csv' | 'excel' | 'folder'
338
- * | 'folder-empty' | 'form' | 'generic' | 'image' | 'link' | 'pdf'
339
- * | 'powerpoint' | 'signed' | 'text' | 'video' | 'word' */
340
- type?: string
341
- /** 16 | 24 | 32 (default: 32) */
342
- size?: 16 | 24 | 32 | string
343
- }
344
- }
345
- }
346
- }
1
+ import { CSSResult } from 'lit';
2
+ import { LitElement } from 'lit';
3
+ import { nothing } from 'lit';
4
+ import { ReactWebComponent } from '@lit/react';
5
+ import { TemplateResult } from 'lit-html';
6
+
7
+ declare class AnduinAvatar extends LitElement {
8
+ static styles: CSSResult;
9
+ src: string;
10
+ name: string;
11
+ alt: string;
12
+ icon: string;
13
+ size: AvatarSize;
14
+ shape: AvatarShape;
15
+ private _imgError;
16
+ private _onImgError;
17
+ private _iconSize;
18
+ render(): TemplateResult<1>;
19
+ }
20
+
21
+ declare class AnduinBadge extends LitElement {
22
+ static styles: CSSResult[];
23
+ variant: string;
24
+ render(): TemplateResult<1>;
25
+ }
26
+
27
+ declare class AnduinBadgeCount extends LitElement {
28
+ static styles: CSSResult[];
29
+ variant: string;
30
+ count: number;
31
+ private formatCount;
32
+ render(): TemplateResult<1>;
33
+ }
34
+
35
+ declare class AnduinButton extends LitElement {
36
+ static styles: CSSResult;
37
+ private iconOnly;
38
+ firstUpdated(): void;
39
+ private onSlotChange;
40
+ appearance: ButtonAppearance;
41
+ variant: ButtonVariant | '';
42
+ size: ButtonSize;
43
+ disabled: boolean;
44
+ loading: boolean;
45
+ fullWidth: boolean;
46
+ pill: boolean;
47
+ selected: boolean;
48
+ href: string;
49
+ openNewTab: boolean;
50
+ download: string;
51
+ startIcon: string;
52
+ endIcon: string;
53
+ label: string;
54
+ private getVariant;
55
+ private getSizeKebab;
56
+ private iconSize;
57
+ render(): TemplateResult<1>;
58
+ }
59
+
60
+ declare class AnduinCallout extends LitElement {
61
+ static styles: CSSResult;
62
+ variant: string;
63
+ render(): TemplateResult<1>;
64
+ }
65
+
66
+ declare class AnduinCheckbox extends LitElement {
67
+ static styles: CSSResult;
68
+ checked: boolean;
69
+ disabled: boolean;
70
+ indeterminate: boolean;
71
+ readonly: boolean;
72
+ inputid: string;
73
+ connectedCallback(): void;
74
+ private toggle;
75
+ private onInputChange;
76
+ render(): TemplateResult<1>;
77
+ }
78
+
79
+ declare class AnduinDivider extends LitElement {
80
+ static styles: CSSResult;
81
+ direction: string;
82
+ private hasContent;
83
+ connectedCallback(): void;
84
+ updated(changed: Map<string, unknown>): void;
85
+ private onSlotChange;
86
+ render(): TemplateResult<1>;
87
+ }
88
+
89
+ declare class AnduinDot extends LitElement {
90
+ static styles: CSSResult;
91
+ variant: string;
92
+ render(): TemplateResult<1>;
93
+ }
94
+
95
+ declare class AnduinField extends LitElement {
96
+ static styles: CSSResult;
97
+ orientation: string;
98
+ connectedCallback(): void;
99
+ render(): TemplateResult<1>;
100
+ }
101
+
102
+ declare class AnduinFieldDescription extends LitElement {
103
+ static styles: CSSResult;
104
+ render(): TemplateResult<1>;
105
+ }
106
+
107
+ declare class AnduinFieldError extends LitElement {
108
+ static styles: CSSResult;
109
+ render(): TemplateResult<1>;
110
+ }
111
+
112
+ declare class AnduinFieldGroup extends LitElement {
113
+ static styles: CSSResult;
114
+ render(): TemplateResult<1>;
115
+ }
116
+
117
+ declare class AnduinFieldLabel extends LitElement {
118
+ static styles: CSSResult;
119
+ htmlfor: string;
120
+ required: boolean;
121
+ connectedCallback(): void;
122
+ private onLabelClick;
123
+ render(): TemplateResult<1>;
124
+ }
125
+
126
+ declare class AnduinFileIcon extends LitElement {
127
+ static styles: CSSResult;
128
+ type: string;
129
+ size: FileIconSize;
130
+ render(): typeof nothing | TemplateResult<1>;
131
+ }
132
+
133
+ declare class AnduinIcon extends LitElement {
134
+ static styles: CSSResult;
135
+ name: string;
136
+ size: number;
137
+ render(): TemplateResult<2>;
138
+ }
139
+
140
+ declare class AnduinInput extends LitElement {
141
+ static styles: CSSResult;
142
+ value: string;
143
+ size: 'small' | 'default' | 'large';
144
+ disabled: boolean;
145
+ readonly: boolean;
146
+ placeholder: string;
147
+ inputid: string;
148
+ status: string;
149
+ startIcon: string;
150
+ endIcon: string;
151
+ clearable: boolean;
152
+ private inputEl;
153
+ connectedCallback(): void;
154
+ updated(): void;
155
+ private onInput;
156
+ private onClear;
157
+ render(): TemplateResult<1>;
158
+ }
159
+
160
+ declare class AnduinLoadingState extends LitElement {
161
+ static styles: CSSResult;
162
+ height: string;
163
+ render(): TemplateResult<1>;
164
+ }
165
+
166
+ declare class AnduinMenu extends LitElement {
167
+ static styles: CSSResult;
168
+ open: boolean;
169
+ placement: 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
170
+ private _triggerEl;
171
+ private _panelEl;
172
+ private _onTriggerClick;
173
+ private _onOutsideClick;
174
+ private _onItemClick;
175
+ private _onScrollOrResize;
176
+ connectedCallback(): void;
177
+ disconnectedCallback(): void;
178
+ updated(changed: Map<string, unknown>): void;
179
+ private _updatePosition;
180
+ render(): TemplateResult<1>;
181
+ }
182
+
183
+ declare class AnduinMenuItem extends LitElement {
184
+ static styles: CSSResult;
185
+ icon: string;
186
+ variant: 'default' | 'danger';
187
+ disabled: boolean;
188
+ private _onClick;
189
+ render(): TemplateResult<1>;
190
+ }
191
+
192
+ declare class AnduinModal extends LitElement {
193
+ static styles: CSSResult;
194
+ open: boolean;
195
+ heading: string;
196
+ hideHeader: boolean;
197
+ hideFooter: boolean;
198
+ maxWidth: '480' | '600' | '720' | '960' | '1160' | string;
199
+ fullscreen: boolean;
200
+ private _leaving;
201
+ private static readonly _PRESETS;
202
+ updated(changed: Map<PropertyKey, unknown>): void;
203
+ private dispatch;
204
+ private onOverlayClick;
205
+ private onClose;
206
+ private onAnduinClose;
207
+ connectedCallback(): void;
208
+ disconnectedCallback(): void;
209
+ render(): TemplateResult<1>;
210
+ }
211
+
212
+ declare class AnduinModalClose extends HTMLElement {
213
+ connectedCallback(): void;
214
+ disconnectedCallback(): void;
215
+ private _onClick;
216
+ }
217
+
218
+ declare class AnduinPopover extends LitElement {
219
+ static styles: CSSResult;
220
+ open: boolean;
221
+ placement: 'bottom-start' | 'bottom-end' | 'bottom' | 'top-start' | 'top-end' | 'top';
222
+ private _visible;
223
+ private _closing;
224
+ private _triggerEl;
225
+ private _panelEl;
226
+ private _closeTransitionEndHandler;
227
+ private _onTriggerClick;
228
+ private _onOutsideClick;
229
+ private _onScrollOrResize;
230
+ private _onPopoverClose;
231
+ connectedCallback(): void;
232
+ disconnectedCallback(): void;
233
+ updated(changed: Map<string, unknown>): void;
234
+ private _cancelCloseAnimation;
235
+ private _startCloseAnimation;
236
+ private _updatePosition;
237
+ render(): TemplateResult<1>;
238
+ }
239
+
240
+ declare class AnduinPopoverClose extends LitElement {
241
+ static styles: CSSResult;
242
+ private _onClick;
243
+ render(): TemplateResult<1>;
244
+ }
245
+
246
+ declare class AnduinProgress extends LitElement {
247
+ static styles: CSSResult;
248
+ percent: string;
249
+ height: string;
250
+ render(): TemplateResult<1>;
251
+ }
252
+
253
+ declare class AnduinSkeleton extends LitElement {
254
+ static styles: CSSResult;
255
+ effect: string;
256
+ shape: string;
257
+ height: string;
258
+ width: string;
259
+ duration: number;
260
+ fontSize: string;
261
+ render(): TemplateResult<1>;
262
+ }
263
+
264
+ declare class AnduinSpinner extends LitElement {
265
+ static styles: CSSResult;
266
+ size: string;
267
+ percent: string;
268
+ private getSizeParams;
269
+ render(): TemplateResult<2>;
270
+ }
271
+
272
+ declare class AnduinTabContent extends LitElement {
273
+ static styles: CSSResult;
274
+ value: string;
275
+ private isActive;
276
+ connectedCallback(): void;
277
+ updated(changed: Map<string, unknown>): void;
278
+ render(): TemplateResult<1>;
279
+ }
280
+
281
+ declare class AnduinTabs extends LitElement {
282
+ static styles: CSSResult;
283
+ defaultValue: string;
284
+ value: string;
285
+ fill: boolean;
286
+ connectedCallback(): void;
287
+ updated(changed: Map<string, unknown>): void;
288
+ private broadcastValueChanged;
289
+ render(): TemplateResult<1>;
290
+ }
291
+
292
+ declare class AnduinTabsList extends LitElement {
293
+ static styles: CSSResult;
294
+ alignment: string;
295
+ private indicator;
296
+ private lastActiveValue;
297
+ private resizeObserver;
298
+ connectedCallback(): void;
299
+ firstUpdated(): void;
300
+ disconnectedCallback(): void;
301
+ private animateIndicator;
302
+ render(): TemplateResult<1>;
303
+ }
304
+
305
+ declare class AnduinTabTrigger extends LitElement {
306
+ static styles: CSSResult;
307
+ value: string;
308
+ startIcon: string;
309
+ disabled: boolean;
310
+ showBadge: boolean;
311
+ badgeCount: string;
312
+ private isActive;
313
+ connectedCallback(): void;
314
+ private onClick;
315
+ render(): TemplateResult<1>;
316
+ }
317
+
318
+ declare class AnduinTag extends LitElement {
319
+ static styles: CSSResult;
320
+ variant: TagVariant;
321
+ icon: string;
322
+ disabled: boolean;
323
+ render(): TemplateResult<1>;
324
+ }
325
+
326
+ declare class AnduinTagClose extends LitElement {
327
+ static styles: CSSResult;
328
+ private onClick;
329
+ render(): TemplateResult<1>;
330
+ }
331
+
332
+ declare class AnduinTextarea extends LitElement {
333
+ static styles: CSSResult;
334
+ value: string;
335
+ disabled: boolean;
336
+ readonly: boolean;
337
+ placeholder: string;
338
+ inputid: string;
339
+ rows: number;
340
+ status: string;
341
+ private textareaEl;
342
+ connectedCallback(): void;
343
+ updated(): void;
344
+ private onInput;
345
+ render(): TemplateResult<1>;
346
+ }
347
+
348
+ declare class AnduinToast extends LitElement {
349
+ static styles: CSSResult;
350
+ variant: ToastVariant;
351
+ heading: string;
352
+ description: string;
353
+ private _dismissing;
354
+ private _toastEl;
355
+ dismiss(): void;
356
+ private _onClose;
357
+ render(): TemplateResult<1>;
358
+ }
359
+
360
+ declare class AnduinToaster extends LitElement {
361
+ static styles: CSSResult;
362
+ position: ToastPosition;
363
+ private _toasts;
364
+ private _nextId;
365
+ show(opts: ToastOptions): number;
366
+ dismiss(id: number): void;
367
+ private _dismissById;
368
+ private _removeById;
369
+ private _onDismiss;
370
+ render(): TemplateResult<1>;
371
+ }
372
+
373
+ declare class AnduinTooltip extends LitElement {
374
+ static styles: CSSResult;
375
+ disabled: boolean;
376
+ placement: string;
377
+ private triggerElement;
378
+ private contentPopupElement;
379
+ private containingBlockLeft;
380
+ private containingBlockTop;
381
+ private rafId;
382
+ private prevTriggerTop;
383
+ private prevTriggerLeft;
384
+ private isVisible;
385
+ connectedCallback(): void;
386
+ updated(changed: Map<string, unknown>): void;
387
+ disconnectedCallback(): void;
388
+ private maybeStartPositionLoop;
389
+ private startPositionLoop;
390
+ private stopPositionLoop;
391
+ private computeContainingBlockOffset;
392
+ private positionPopup;
393
+ private broadcastVisibilityChanged;
394
+ render(): TemplateResult<1>;
395
+ }
396
+
397
+ declare class AnduinTooltipContent extends LitElement {
398
+ static styles: CSSResult;
399
+ private graceArea;
400
+ private triggerEl;
401
+ private popupEl;
402
+ private handlePointerMove;
403
+ private handleTriggerLeave;
404
+ private handleContentLeave;
405
+ connectedCallback(): void;
406
+ disconnectedCallback(): void;
407
+ private createGraceArea;
408
+ private setupGraceAreaListeners;
409
+ private cleanupGraceAreaListeners;
410
+ private showPopup;
411
+ private hidePopup;
412
+ render(): TemplateResult<1>;
413
+ }
414
+
415
+ declare class AnduinTooltipTrigger extends LitElement {
416
+ static styles: CSSResult;
417
+ firstUpdated(): void;
418
+ render(): TemplateResult<1>;
419
+ }
420
+
421
+ declare class AnduinWell extends LitElement {
422
+ static styles: CSSResult;
423
+ variant: string;
424
+ render(): TemplateResult<1>;
425
+ }
426
+
427
+ declare class AnduinWellClose extends LitElement {
428
+ static styles: CSSResult;
429
+ private onClick;
430
+ render(): TemplateResult<1>;
431
+ }
432
+
433
+ export declare const Avatar: ReactWebComponent<AnduinAvatar, {}>;
434
+
435
+ declare type AvatarShape = 'circle' | 'rounded';
436
+
437
+ declare type AvatarSize = 16 | 20 | 24 | 32;
438
+
439
+ export declare const Badge: ReactWebComponent<AnduinBadge, {}>;
440
+
441
+ export declare const BadgeCount: ReactWebComponent<AnduinBadgeCount, {}>;
442
+
443
+ export declare const Button: ReactWebComponent<AnduinButton, {}>;
444
+
445
+ declare type ButtonAppearance = 'filled' | 'outlined' | 'plain' | 'text';
446
+
447
+ declare type ButtonSize = 'tiny' | 'extraSmall' | 'small' | 'medium' | 'large' | 'free';
448
+
449
+ declare type ButtonVariant = 'gray0' | 'gray9' | 'primary' | 'danger' | 'success' | 'warning';
450
+
451
+ export declare const Callout: ReactWebComponent<AnduinCallout, {}>;
452
+
453
+ export declare const Checkbox: ReactWebComponent<AnduinCheckbox, {
454
+ onChange: string;
455
+ }>;
456
+
457
+ export declare const CHECKBOX_CHANGE = "anduin-checkbox:change";
458
+
459
+ export declare const Divider: ReactWebComponent<AnduinDivider, {}>;
460
+
461
+ export declare const Dot: ReactWebComponent<AnduinDot, {}>;
462
+
463
+ export declare const Field: ReactWebComponent<AnduinField, {}>;
464
+
465
+ export declare const FieldDescription: ReactWebComponent<AnduinFieldDescription, {}>;
466
+
467
+ export declare const FieldError: ReactWebComponent<AnduinFieldError, {}>;
468
+
469
+ export declare const FieldGroup: ReactWebComponent<AnduinFieldGroup, {}>;
470
+
471
+ export declare const FieldLabel: ReactWebComponent<AnduinFieldLabel, {}>;
472
+
473
+ export declare const FileIcon: ReactWebComponent<AnduinFileIcon, {}>;
474
+
475
+ declare type FileIconSize = 16 | 24 | 32;
476
+
477
+ export declare const Icon: ReactWebComponent<AnduinIcon, {}>;
478
+
479
+ export declare const Input: ReactWebComponent<AnduinInput, {
480
+ onChange: string;
481
+ onClear: string;
482
+ }>;
483
+
484
+ export declare const INPUT_CHANGE = "anduin-input:change";
485
+
486
+ export declare const INPUT_CLEAR = "anduin-input:clear";
487
+
488
+ export declare const LoadingState: ReactWebComponent<AnduinLoadingState, {}>;
489
+
490
+ export declare const Menu: ReactWebComponent<AnduinMenu, {}>;
491
+
492
+ export declare const MENU_ITEM_CLICK = "anduin-menu-item:click";
493
+
494
+ export declare const MenuItem: ReactWebComponent<AnduinMenuItem, {
495
+ onClick: string;
496
+ }>;
497
+
498
+ export declare const Modal: ReactWebComponent<AnduinModal, {
499
+ onClose: string;
500
+ }>;
501
+
502
+ /** Event fired when the modal requests to close. Use with addEventListener since the
503
+ * hyphenated name can't be expressed as a JSX prop (onAnduinClose won't work).
504
+ * @example
505
+ * ref.current.addEventListener(MODAL_CLOSE_EVENT, () => setOpen(false))
506
+ */
507
+ export declare const MODAL_CLOSE_EVENT = "anduin-close";
508
+
509
+ export declare const ModalClose: ReactWebComponent<AnduinModalClose, {}>;
510
+
511
+ export declare const Popover: ReactWebComponent<AnduinPopover, {}>;
512
+
513
+ export declare const PopoverClose: ReactWebComponent<AnduinPopoverClose, {}>;
514
+
515
+ export declare const Progress: ReactWebComponent<AnduinProgress, {}>;
516
+
517
+ export declare const Skeleton: ReactWebComponent<AnduinSkeleton, {}>;
518
+
519
+ export declare const Spinner: ReactWebComponent<AnduinSpinner, {}>;
520
+
521
+ export declare const TAB_CHANGE = "anduin-tab:change";
522
+
523
+ export declare const TabContent: ReactWebComponent<AnduinTabContent, {}>;
524
+
525
+ export declare const Tabs: ReactWebComponent<AnduinTabs, {
526
+ onChange: string;
527
+ }>;
528
+
529
+ export declare const TabsList: ReactWebComponent<AnduinTabsList, {}>;
530
+
531
+ export declare const TabTrigger: ReactWebComponent<AnduinTabTrigger, {}>;
532
+
533
+ export declare const Tag: ReactWebComponent<AnduinTag, {}>;
534
+
535
+ export declare const TAG_CLOSE_CLICK = "anduin-tag-close:click";
536
+
537
+ export declare const TagClose: ReactWebComponent<AnduinTagClose, {
538
+ onClick: string;
539
+ }>;
540
+
541
+ declare type TagVariant = 'gray' | 'primary' | 'success' | 'warning' | 'danger' | 'boldGray' | 'boldPrimary' | 'boldSuccess' | 'boldWarning' | 'boldDanger' | 'customAqua' | 'customBlue' | 'customBlueGreen' | 'customGreen' | 'customHotPink' | 'customIndigo' | 'customMagenta' | 'customOrange' | 'customPink' | 'customPurple' | 'customRed' | 'customYellow' | 'customYellowGreen' | 'customYellowOrange';
542
+
543
+ export declare const Textarea: ReactWebComponent<AnduinTextarea, {
544
+ onChange: string;
545
+ }>;
546
+
547
+ export declare const TEXTAREA_CHANGE = "anduin-textarea:change";
548
+
549
+ export declare const Toast: ReactWebComponent<AnduinToast, {}>;
550
+
551
+ export declare const Toaster: ReactWebComponent<AnduinToaster, {}>;
552
+
553
+ declare interface ToastOptions {
554
+ variant?: ToastVariant;
555
+ heading?: string;
556
+ description?: string;
557
+ duration?: number;
558
+ position?: ToastPosition;
559
+ }
560
+
561
+ declare type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
562
+
563
+ declare type ToastVariant = "gray" | "primary" | "success" | "warning" | "danger";
564
+
565
+ export declare const Tooltip: ReactWebComponent<AnduinTooltip, {}>;
566
+
567
+ export declare const TooltipContent: ReactWebComponent<AnduinTooltipContent, {}>;
568
+
569
+ export declare const TooltipTrigger: ReactWebComponent<AnduinTooltipTrigger, {}>;
570
+
571
+ export declare const Well: ReactWebComponent<AnduinWell, {}>;
572
+
573
+ export declare const WELL_CLOSE_CLICK = "anduin-well-close:click";
574
+
575
+ export declare const WellClose: ReactWebComponent<AnduinWellClose, {
576
+ onClick: string;
577
+ }>;
578
+
579
+ export { }