@evoke-tech/stencil-ui-kit 0.1.0 → 0.2.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/README.md +120 -20
- package/dist/cjs/evoke-alert_20.cjs.entry.js +1047 -0
- package/dist/cjs/evoke-ui.cjs.js +2 -2
- package/dist/cjs/{index-B8xS0y1i.js → index-BpJ5gu8f.js} +146 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +13 -1
- package/dist/collection/components/evoke-alert/evoke-alert.css +17 -6
- package/dist/collection/components/evoke-alert/evoke-alert.js +25 -1
- package/dist/collection/components/evoke-app-bar/evoke-app-bar.css +13 -0
- package/dist/collection/components/evoke-app-bar/evoke-app-bar.js +94 -0
- package/dist/collection/components/evoke-badge/evoke-badge.css +13 -0
- package/dist/collection/components/evoke-badge/evoke-badge.js +162 -0
- package/dist/collection/components/evoke-button/evoke-button.css +16 -2
- package/dist/collection/components/evoke-button/evoke-button.js +117 -5
- package/dist/collection/components/evoke-card/evoke-card.css +9 -1
- package/dist/collection/components/evoke-card/evoke-card.js +75 -1
- package/dist/collection/components/evoke-checkbox/evoke-checkbox.css +7 -1
- package/dist/collection/components/evoke-checkbox/evoke-checkbox.js +31 -2
- package/dist/collection/components/evoke-chip/evoke-chip.css +16 -0
- package/dist/collection/components/evoke-chip/evoke-chip.js +149 -0
- package/dist/collection/components/evoke-input/evoke-input.css +11 -3
- package/dist/collection/components/evoke-input/evoke-input.js +103 -13
- package/dist/collection/components/evoke-modal/evoke-modal.css +21 -5
- package/dist/collection/components/evoke-modal/evoke-modal.js +129 -4
- package/dist/collection/components/evoke-pagination/evoke-pagination.css +12 -0
- package/dist/collection/components/evoke-pagination/evoke-pagination.js +156 -0
- package/dist/collection/components/evoke-progress/evoke-progress.css +12 -0
- package/dist/collection/components/evoke-progress/evoke-progress.js +146 -0
- package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.css +20 -0
- package/dist/collection/components/evoke-quantity-stepper/evoke-quantity-stepper.js +201 -0
- package/dist/collection/components/evoke-radio-group/evoke-radio-group.css +14 -1
- package/dist/collection/components/evoke-radio-group/evoke-radio-group.js +34 -8
- package/dist/collection/components/evoke-select/evoke-select.css +25 -4
- package/dist/collection/components/evoke-select/evoke-select.js +245 -15
- package/dist/collection/components/evoke-switch/evoke-switch.css +16 -0
- package/dist/collection/components/evoke-switch/evoke-switch.js +151 -0
- package/dist/collection/components/evoke-table/evoke-table.css +20 -0
- package/dist/collection/components/evoke-table/evoke-table.js +222 -0
- package/dist/collection/components/evoke-tabs/evoke-tabs.css +20 -0
- package/dist/collection/components/evoke-tabs/evoke-tabs.js +179 -0
- package/dist/collection/components/evoke-textarea/evoke-textarea.css +19 -0
- package/dist/collection/components/evoke-textarea/evoke-textarea.js +328 -0
- package/dist/collection/components/evoke-toast/evoke-toast.css +24 -0
- package/dist/collection/components/evoke-toast/evoke-toast.js +225 -0
- package/dist/collection/components/evoke-tooltip/evoke-tooltip.css +22 -0
- package/dist/collection/components/evoke-tooltip/evoke-tooltip.js +119 -0
- package/dist/collection/utils/icons.js +29 -0
- package/dist/components/evoke-alert.js +1 -1
- package/dist/components/evoke-app-bar.d.ts +11 -0
- package/dist/components/evoke-app-bar.js +1 -0
- package/dist/components/evoke-badge.d.ts +11 -0
- package/dist/components/evoke-badge.js +1 -0
- package/dist/components/evoke-button.js +1 -1
- package/dist/components/evoke-card.js +1 -1
- package/dist/components/evoke-checkbox.js +1 -1
- package/dist/components/evoke-chip.d.ts +11 -0
- package/dist/components/evoke-chip.js +1 -0
- package/dist/components/evoke-input.js +1 -1
- package/dist/components/evoke-modal.js +1 -1
- package/dist/components/evoke-pagination.d.ts +11 -0
- package/dist/components/evoke-pagination.js +1 -0
- package/dist/components/evoke-progress.d.ts +11 -0
- package/dist/components/evoke-progress.js +1 -0
- package/dist/components/evoke-quantity-stepper.d.ts +11 -0
- package/dist/components/evoke-quantity-stepper.js +1 -0
- package/dist/components/evoke-radio-group.js +1 -1
- package/dist/components/evoke-select.js +1 -1
- package/dist/components/evoke-switch.d.ts +11 -0
- package/dist/components/evoke-switch.js +1 -0
- package/dist/components/evoke-table.d.ts +11 -0
- package/dist/components/evoke-table.js +1 -0
- package/dist/components/evoke-tabs.d.ts +11 -0
- package/dist/components/evoke-tabs.js +1 -0
- package/dist/components/evoke-textarea.d.ts +11 -0
- package/dist/components/evoke-textarea.js +1 -0
- package/dist/components/evoke-toast.d.ts +11 -0
- package/dist/components/evoke-toast.js +1 -0
- package/dist/components/evoke-tooltip.d.ts +11 -0
- package/dist/components/evoke-tooltip.js +1 -0
- package/dist/components/icons.js +1 -0
- package/dist/esm/evoke-alert_20.entry.js +1026 -0
- package/dist/esm/evoke-ui.js +3 -3
- package/dist/esm/{index-BtM1wZ-I.js → index-C-5sEjU8.js} +146 -6
- package/dist/esm/loader.js +3 -3
- package/dist/evoke-ui/evoke-ui.css +1 -1
- package/dist/evoke-ui/evoke-ui.esm.js +1 -1
- package/dist/evoke-ui/p-0841be89.entry.js +1 -0
- package/dist/evoke-ui/p-C-5sEjU8.js +3 -0
- package/dist/themes/bootstrap.css +3 -0
- package/dist/themes/material.css +3 -0
- package/dist/themes/tailwind.css +3 -0
- package/dist/themes/tokens.css +4 -1
- package/dist/types/components/evoke-alert/evoke-alert.d.ts +2 -0
- package/dist/types/components/evoke-app-bar/evoke-app-bar.d.ts +14 -0
- package/dist/types/components/evoke-badge/evoke-badge.d.ts +17 -0
- package/dist/types/components/evoke-button/evoke-button.d.ts +12 -2
- package/dist/types/components/evoke-card/evoke-card.d.ts +9 -0
- package/dist/types/components/evoke-checkbox/evoke-checkbox.d.ts +5 -0
- package/dist/types/components/evoke-chip/evoke-chip.d.ts +14 -0
- package/dist/types/components/evoke-input/evoke-input.d.ts +9 -1
- package/dist/types/components/evoke-modal/evoke-modal.d.ts +19 -1
- package/dist/types/components/evoke-pagination/evoke-pagination.d.ts +15 -0
- package/dist/types/components/evoke-progress/evoke-progress.d.ts +13 -0
- package/dist/types/components/evoke-quantity-stepper/evoke-quantity-stepper.d.ts +18 -0
- package/dist/types/components/evoke-radio-group/evoke-radio-group.d.ts +4 -2
- package/dist/types/components/evoke-select/evoke-select.d.ts +31 -6
- package/dist/types/components/evoke-switch/evoke-switch.d.ts +15 -0
- package/dist/types/components/evoke-table/evoke-table.d.ts +29 -0
- package/dist/types/components/evoke-tabs/evoke-tabs.d.ts +21 -0
- package/dist/types/components/evoke-textarea/evoke-textarea.d.ts +28 -0
- package/dist/types/components/evoke-toast/evoke-toast.d.ts +24 -0
- package/dist/types/components/evoke-tooltip/evoke-tooltip.d.ts +17 -0
- package/dist/types/components.d.ts +1237 -18
- package/dist/types/utils/icons.d.ts +25 -0
- package/package.json +11 -4
- package/dist/cjs/evoke-alert_6.cjs.entry.js +0 -172
- package/dist/cjs/evoke-card.cjs.entry.js +0 -20
- package/dist/cjs/evoke-modal.cjs.entry.js +0 -34
- package/dist/esm/evoke-alert_6.entry.js +0 -165
- package/dist/esm/evoke-card.entry.js +0 -18
- package/dist/esm/evoke-modal.entry.js +0 -32
- package/dist/evoke-ui/p-243075cd.entry.js +0 -1
- package/dist/evoke-ui/p-605d4757.entry.js +0 -1
- package/dist/evoke-ui/p-9a6eaeb6.entry.js +0 -1
- package/dist/evoke-ui/p-BtM1wZ-I.js +0 -3
|
@@ -5,10 +5,17 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { EvokeIcon } from "./utils/icons";
|
|
8
9
|
import { EvokeOption } from "./utils/options";
|
|
10
|
+
export { EvokeIcon } from "./utils/icons";
|
|
9
11
|
export { EvokeOption } from "./utils/options";
|
|
10
12
|
export namespace Components {
|
|
11
13
|
interface EvokeAlert {
|
|
14
|
+
/**
|
|
15
|
+
* Subtle (tinted background) or solid (filled colour)
|
|
16
|
+
* @default 'subtle'
|
|
17
|
+
*/
|
|
18
|
+
"appearance": 'subtle' | 'solid';
|
|
12
19
|
/**
|
|
13
20
|
* @default false
|
|
14
21
|
*/
|
|
@@ -18,7 +25,59 @@ export namespace Components {
|
|
|
18
25
|
*/
|
|
19
26
|
"type": 'info' | 'success' | 'warning' | 'danger';
|
|
20
27
|
}
|
|
28
|
+
interface EvokeAppBar {
|
|
29
|
+
/**
|
|
30
|
+
* Light surface, or dark / brand-coloured (navy)
|
|
31
|
+
* @default 'light'
|
|
32
|
+
*/
|
|
33
|
+
"appearance": 'light' | 'dark';
|
|
34
|
+
/**
|
|
35
|
+
* Accessible name for the navigation landmark
|
|
36
|
+
* @default 'Main'
|
|
37
|
+
*/
|
|
38
|
+
"navLabel": string;
|
|
39
|
+
/**
|
|
40
|
+
* Stick to the top of the viewport while scrolling
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
"sticky": boolean;
|
|
44
|
+
}
|
|
45
|
+
interface EvokeBadge {
|
|
46
|
+
/**
|
|
47
|
+
* @default 'danger'
|
|
48
|
+
*/
|
|
49
|
+
"color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'info';
|
|
50
|
+
/**
|
|
51
|
+
* Number to show (count badge)
|
|
52
|
+
* @default 0
|
|
53
|
+
*/
|
|
54
|
+
"count": number;
|
|
55
|
+
/**
|
|
56
|
+
* Show a small status dot instead of a number
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
"dot": boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Screen-reader text, e.g. "3 items in cart". A dot without a label is treated as decorative.
|
|
62
|
+
* @default ''
|
|
63
|
+
*/
|
|
64
|
+
"label": string;
|
|
65
|
+
/**
|
|
66
|
+
* Counts above this show as "max+" (e.g. 99+)
|
|
67
|
+
* @default 99
|
|
68
|
+
*/
|
|
69
|
+
"max": number;
|
|
70
|
+
/**
|
|
71
|
+
* Show the badge even when the count is 0
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
"showZero": boolean;
|
|
75
|
+
}
|
|
21
76
|
interface EvokeButton {
|
|
77
|
+
/**
|
|
78
|
+
* aria-label for the inner button (required when `icon-only`)
|
|
79
|
+
*/
|
|
80
|
+
"accessibleLabel"?: string;
|
|
22
81
|
/**
|
|
23
82
|
* Stretch to the full width of the container
|
|
24
83
|
* @default false
|
|
@@ -33,22 +92,50 @@ export namespace Components {
|
|
|
33
92
|
* @default false
|
|
34
93
|
*/
|
|
35
94
|
"disabled": boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Optional leading icon
|
|
97
|
+
*/
|
|
98
|
+
"icon"?: EvokeIcon;
|
|
99
|
+
/**
|
|
100
|
+
* Square button for icon-only use; set `accessible-label` too
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
103
|
+
"iconOnly": boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Shows a spinner and blocks clicks while true
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
"loading": boolean;
|
|
109
|
+
/**
|
|
110
|
+
* @default 'md'
|
|
111
|
+
*/
|
|
112
|
+
"size": 'sm' | 'md' | 'lg';
|
|
36
113
|
/**
|
|
37
114
|
* @default 'button'
|
|
38
115
|
*/
|
|
39
116
|
"type": 'button' | 'submit' | 'reset';
|
|
40
117
|
/**
|
|
41
|
-
*
|
|
118
|
+
* Solid variants (primary, secondary, danger), outline, or ghost (text only, no border)
|
|
42
119
|
* @default 'primary'
|
|
43
120
|
*/
|
|
44
|
-
"variant": 'primary' | 'secondary' | 'danger' | 'outline';
|
|
121
|
+
"variant": 'primary' | 'secondary' | 'danger' | 'outline' | 'ghost';
|
|
45
122
|
}
|
|
46
123
|
interface EvokeCard {
|
|
124
|
+
/**
|
|
125
|
+
* Outlined (border) or elevated (shadow, no border)
|
|
126
|
+
* @default 'outlined'
|
|
127
|
+
*/
|
|
128
|
+
"appearance": 'outlined' | 'elevated';
|
|
47
129
|
/**
|
|
48
130
|
* Extra classes for the card container, e.g. "shadow-md" (Tailwind) or "card" (Bootstrap)
|
|
49
131
|
* @default ''
|
|
50
132
|
*/
|
|
51
133
|
"cardClass": string;
|
|
134
|
+
/**
|
|
135
|
+
* Makes the whole card a button (hover/active/focus states, Enter/Space)
|
|
136
|
+
* @default false
|
|
137
|
+
*/
|
|
138
|
+
"clickable": boolean;
|
|
52
139
|
/**
|
|
53
140
|
* @default ''
|
|
54
141
|
*/
|
|
@@ -68,6 +155,11 @@ export namespace Components {
|
|
|
68
155
|
* @default ''
|
|
69
156
|
*/
|
|
70
157
|
"error": string;
|
|
158
|
+
/**
|
|
159
|
+
* Mixed state, e.g. a "select all" box when only some items are selected. Cleared on click.
|
|
160
|
+
* @default false
|
|
161
|
+
*/
|
|
162
|
+
"indeterminate": boolean;
|
|
71
163
|
/**
|
|
72
164
|
* Extra classes for the inner <input>
|
|
73
165
|
* @default ''
|
|
@@ -78,19 +170,50 @@ export namespace Components {
|
|
|
78
170
|
*/
|
|
79
171
|
"label": string;
|
|
80
172
|
}
|
|
173
|
+
interface EvokeChip {
|
|
174
|
+
/**
|
|
175
|
+
* @default false
|
|
176
|
+
*/
|
|
177
|
+
"disabled": boolean;
|
|
178
|
+
/**
|
|
179
|
+
* @default ''
|
|
180
|
+
*/
|
|
181
|
+
"label": string;
|
|
182
|
+
/**
|
|
183
|
+
* Shows a remove button instead of toggling selection
|
|
184
|
+
* @default false
|
|
185
|
+
*/
|
|
186
|
+
"removable": boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Selected state (filter chip)
|
|
189
|
+
* @default false
|
|
190
|
+
*/
|
|
191
|
+
"selected": boolean;
|
|
192
|
+
}
|
|
81
193
|
interface EvokeInput {
|
|
194
|
+
/**
|
|
195
|
+
* Outlined (default) or filled (tinted background, bottom border)
|
|
196
|
+
* @default 'outlined'
|
|
197
|
+
*/
|
|
198
|
+
"appearance": 'outlined' | 'filled';
|
|
82
199
|
/**
|
|
83
200
|
* @default false
|
|
84
201
|
*/
|
|
85
202
|
"disabled": boolean;
|
|
86
203
|
/**
|
|
204
|
+
* Error message shown below the field (replaces the hint)
|
|
87
205
|
* @default ''
|
|
88
206
|
*/
|
|
89
207
|
"error": string;
|
|
208
|
+
/**
|
|
209
|
+
* Helper text shown below the field
|
|
210
|
+
* @default ''
|
|
211
|
+
*/
|
|
212
|
+
"hint": string;
|
|
90
213
|
/**
|
|
91
214
|
* Optional leading icon
|
|
92
215
|
*/
|
|
93
|
-
"icon"?:
|
|
216
|
+
"icon"?: EvokeIcon;
|
|
94
217
|
/**
|
|
95
218
|
* Extra classes for the inner <input>, e.g. "form-control" (Bootstrap)
|
|
96
219
|
* @default ''
|
|
@@ -100,10 +223,18 @@ export namespace Components {
|
|
|
100
223
|
* @default ''
|
|
101
224
|
*/
|
|
102
225
|
"label": string;
|
|
226
|
+
/**
|
|
227
|
+
* @default ''
|
|
228
|
+
*/
|
|
229
|
+
"name": string;
|
|
103
230
|
/**
|
|
104
231
|
* @default ''
|
|
105
232
|
*/
|
|
106
233
|
"placeholder": string;
|
|
234
|
+
/**
|
|
235
|
+
* @default false
|
|
236
|
+
*/
|
|
237
|
+
"required": boolean;
|
|
107
238
|
/**
|
|
108
239
|
* @default 'text'
|
|
109
240
|
*/
|
|
@@ -132,8 +263,98 @@ export namespace Components {
|
|
|
132
263
|
* @default false
|
|
133
264
|
*/
|
|
134
265
|
"open": boolean;
|
|
266
|
+
/**
|
|
267
|
+
* Centred dialog, or a drawer sliding in from the right
|
|
268
|
+
* @default 'center'
|
|
269
|
+
*/
|
|
270
|
+
"position": 'center' | 'right';
|
|
271
|
+
/**
|
|
272
|
+
* @default 'md'
|
|
273
|
+
*/
|
|
274
|
+
"size": 'sm' | 'md' | 'lg';
|
|
275
|
+
}
|
|
276
|
+
interface EvokePagination {
|
|
277
|
+
/**
|
|
278
|
+
* Numbered pages, or compact (Prev, "2 of 10", Next)
|
|
279
|
+
* @default 'numbered'
|
|
280
|
+
*/
|
|
281
|
+
"appearance": 'numbered' | 'compact';
|
|
282
|
+
/**
|
|
283
|
+
* @default false
|
|
284
|
+
*/
|
|
285
|
+
"disabled": boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Current page (1-based)
|
|
288
|
+
* @default 1
|
|
289
|
+
*/
|
|
290
|
+
"page": number;
|
|
291
|
+
/**
|
|
292
|
+
* Total number of pages
|
|
293
|
+
* @default 1
|
|
294
|
+
*/
|
|
295
|
+
"total": number;
|
|
296
|
+
}
|
|
297
|
+
interface EvokeProgress {
|
|
298
|
+
/**
|
|
299
|
+
* Unknown duration: animates continuously and ignores `value`
|
|
300
|
+
* @default false
|
|
301
|
+
*/
|
|
302
|
+
"indeterminate": boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Accessible name, e.g. "Uploading"
|
|
305
|
+
* @default 'Loading'
|
|
306
|
+
*/
|
|
307
|
+
"label": string;
|
|
308
|
+
/**
|
|
309
|
+
* Diameter in px for the circular type
|
|
310
|
+
* @default 40
|
|
311
|
+
*/
|
|
312
|
+
"size": number;
|
|
313
|
+
/**
|
|
314
|
+
* Linear bar, or circular spinner / ring
|
|
315
|
+
* @default 'linear'
|
|
316
|
+
*/
|
|
317
|
+
"type": 'linear' | 'circular';
|
|
318
|
+
/**
|
|
319
|
+
* Progress from 0 to 100
|
|
320
|
+
* @default 0
|
|
321
|
+
*/
|
|
322
|
+
"value": number;
|
|
323
|
+
}
|
|
324
|
+
interface EvokeQuantityStepper {
|
|
325
|
+
/**
|
|
326
|
+
* Inline (minus, value, plus) or compact with a quantity dropdown
|
|
327
|
+
* @default 'inline'
|
|
328
|
+
*/
|
|
329
|
+
"appearance": 'inline' | 'compact';
|
|
330
|
+
/**
|
|
331
|
+
* @default false
|
|
332
|
+
*/
|
|
333
|
+
"disabled": boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Accessible name for the control
|
|
336
|
+
* @default 'Quantity'
|
|
337
|
+
*/
|
|
338
|
+
"label": string;
|
|
339
|
+
/**
|
|
340
|
+
* @default 99
|
|
341
|
+
*/
|
|
342
|
+
"max": number;
|
|
343
|
+
/**
|
|
344
|
+
* @default 1
|
|
345
|
+
*/
|
|
346
|
+
"min": number;
|
|
347
|
+
/**
|
|
348
|
+
* @default 1
|
|
349
|
+
*/
|
|
350
|
+
"value": number;
|
|
135
351
|
}
|
|
136
352
|
interface EvokeRadioGroup {
|
|
353
|
+
/**
|
|
354
|
+
* Classic radio circles, or a segmented button group
|
|
355
|
+
* @default 'classic'
|
|
356
|
+
*/
|
|
357
|
+
"appearance": 'classic' | 'segmented';
|
|
137
358
|
/**
|
|
138
359
|
* @default false
|
|
139
360
|
*/
|
|
@@ -144,7 +365,7 @@ export namespace Components {
|
|
|
144
365
|
*/
|
|
145
366
|
"error": string;
|
|
146
367
|
/**
|
|
147
|
-
* Lay options out in a row instead of a column
|
|
368
|
+
* Lay classic options out in a row instead of a column
|
|
148
369
|
* @default false
|
|
149
370
|
*/
|
|
150
371
|
"inline": boolean;
|
|
@@ -172,14 +393,23 @@ export namespace Components {
|
|
|
172
393
|
*/
|
|
173
394
|
"disabled": boolean;
|
|
174
395
|
/**
|
|
175
|
-
* Error message shown below the field
|
|
396
|
+
* Error message shown below the field (replaces the hint)
|
|
176
397
|
* @default ''
|
|
177
398
|
*/
|
|
178
399
|
"error": string;
|
|
400
|
+
/**
|
|
401
|
+
* @default ''
|
|
402
|
+
*/
|
|
403
|
+
"hint": string;
|
|
179
404
|
/**
|
|
180
405
|
* @default ''
|
|
181
406
|
*/
|
|
182
407
|
"label": string;
|
|
408
|
+
/**
|
|
409
|
+
* Multi-select: selected values are shown as removable chips
|
|
410
|
+
* @default false
|
|
411
|
+
*/
|
|
412
|
+
"multiple": boolean;
|
|
183
413
|
/**
|
|
184
414
|
* Options as an array of { label, value, disabled? } or a JSON string of the same
|
|
185
415
|
* @default []
|
|
@@ -190,24 +420,212 @@ export namespace Components {
|
|
|
190
420
|
*/
|
|
191
421
|
"placeholder": string;
|
|
192
422
|
/**
|
|
193
|
-
*
|
|
423
|
+
* Adds a search box that filters the options
|
|
424
|
+
* @default false
|
|
425
|
+
*/
|
|
426
|
+
"searchable": boolean;
|
|
427
|
+
/**
|
|
428
|
+
* Extra classes for the inner <select> (single, non-searchable mode), e.g. "form-select"
|
|
194
429
|
* @default ''
|
|
195
430
|
*/
|
|
196
431
|
"selectClass": string;
|
|
432
|
+
/**
|
|
433
|
+
* Selected value (string), or an array of values when `multiple`
|
|
434
|
+
* @default ''
|
|
435
|
+
*/
|
|
436
|
+
"value": string | string[];
|
|
437
|
+
}
|
|
438
|
+
interface EvokeSwitch {
|
|
439
|
+
/**
|
|
440
|
+
* aria-label for a plain toggle that has no visible label
|
|
441
|
+
*/
|
|
442
|
+
"accessibleLabel"?: string;
|
|
443
|
+
/**
|
|
444
|
+
* @default false
|
|
445
|
+
*/
|
|
446
|
+
"checked": boolean;
|
|
447
|
+
/**
|
|
448
|
+
* Secondary text under the label
|
|
449
|
+
* @default ''
|
|
450
|
+
*/
|
|
451
|
+
"description": string;
|
|
452
|
+
/**
|
|
453
|
+
* @default false
|
|
454
|
+
*/
|
|
455
|
+
"disabled": boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Optional visible label. Without a label or description it is a plain toggle.
|
|
458
|
+
* @default ''
|
|
459
|
+
*/
|
|
460
|
+
"label": string;
|
|
461
|
+
}
|
|
462
|
+
interface EvokeTable {
|
|
463
|
+
/**
|
|
464
|
+
* Visually hidden/visible table caption for screen readers
|
|
465
|
+
* @default ''
|
|
466
|
+
*/
|
|
467
|
+
"caption": string;
|
|
468
|
+
/**
|
|
469
|
+
* Columns as an array of { key, label, sortable?, align? } or a JSON string of the same
|
|
470
|
+
* @default []
|
|
471
|
+
*/
|
|
472
|
+
"columns": { key: string; label: string; sortable?: boolean; align?: 'left' | 'center' | 'right' }[] | string;
|
|
473
|
+
/**
|
|
474
|
+
* @default 'No data'
|
|
475
|
+
*/
|
|
476
|
+
"emptyText": string;
|
|
477
|
+
/**
|
|
478
|
+
* Rows as an array of objects keyed by column key, or a JSON string of the same
|
|
479
|
+
* @default []
|
|
480
|
+
*/
|
|
481
|
+
"rows": Record<string, string | number | boolean | null>[] | string;
|
|
482
|
+
/**
|
|
483
|
+
* Allow sorting on columns marked `sortable` (or all columns if none are marked)
|
|
484
|
+
* @default false
|
|
485
|
+
*/
|
|
486
|
+
"sortable": boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Alternate row shading
|
|
489
|
+
* @default false
|
|
490
|
+
*/
|
|
491
|
+
"striped": boolean;
|
|
492
|
+
}
|
|
493
|
+
interface EvokeTabs {
|
|
494
|
+
/**
|
|
495
|
+
* Underline tabs or pill tabs
|
|
496
|
+
* @default 'underline'
|
|
497
|
+
*/
|
|
498
|
+
"appearance": 'underline' | 'pill';
|
|
499
|
+
/**
|
|
500
|
+
* Accessible name for the tab list
|
|
501
|
+
* @default ''
|
|
502
|
+
*/
|
|
503
|
+
"label": string;
|
|
504
|
+
/**
|
|
505
|
+
* Tabs as an array of { label, value, disabled? } or a JSON string of the same
|
|
506
|
+
* @default []
|
|
507
|
+
*/
|
|
508
|
+
"options": EvokeOption[] | string;
|
|
509
|
+
/**
|
|
510
|
+
* Value of the active tab. Defaults to the first enabled tab.
|
|
511
|
+
* @default ''
|
|
512
|
+
*/
|
|
513
|
+
"value": string;
|
|
514
|
+
}
|
|
515
|
+
interface EvokeTextarea {
|
|
516
|
+
/**
|
|
517
|
+
* Grow with the content instead of scrolling
|
|
518
|
+
* @default false
|
|
519
|
+
*/
|
|
520
|
+
"autoGrow": boolean;
|
|
521
|
+
/**
|
|
522
|
+
* @default false
|
|
523
|
+
*/
|
|
524
|
+
"disabled": boolean;
|
|
525
|
+
/**
|
|
526
|
+
* @default ''
|
|
527
|
+
*/
|
|
528
|
+
"error": string;
|
|
529
|
+
/**
|
|
530
|
+
* @default ''
|
|
531
|
+
*/
|
|
532
|
+
"hint": string;
|
|
533
|
+
/**
|
|
534
|
+
* @default ''
|
|
535
|
+
*/
|
|
536
|
+
"label": string;
|
|
537
|
+
/**
|
|
538
|
+
* Max characters; also shows a live "n / max" counter
|
|
539
|
+
*/
|
|
540
|
+
"maxLength"?: number;
|
|
541
|
+
/**
|
|
542
|
+
* @default ''
|
|
543
|
+
*/
|
|
544
|
+
"name": string;
|
|
545
|
+
/**
|
|
546
|
+
* @default ''
|
|
547
|
+
*/
|
|
548
|
+
"placeholder": string;
|
|
549
|
+
/**
|
|
550
|
+
* @default false
|
|
551
|
+
*/
|
|
552
|
+
"required": boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Visible rows (the minimum height when `auto-grow` is on)
|
|
555
|
+
* @default 4
|
|
556
|
+
*/
|
|
557
|
+
"rows": number;
|
|
558
|
+
/**
|
|
559
|
+
* Extra classes for the inner <textarea>
|
|
560
|
+
* @default ''
|
|
561
|
+
*/
|
|
562
|
+
"textareaClass": string;
|
|
197
563
|
/**
|
|
198
564
|
* @default ''
|
|
199
565
|
*/
|
|
200
566
|
"value": string;
|
|
201
567
|
}
|
|
568
|
+
interface EvokeToast {
|
|
569
|
+
/**
|
|
570
|
+
* Label of an action button, e.g. "View cart". Leave empty for a simple message.
|
|
571
|
+
* @default ''
|
|
572
|
+
*/
|
|
573
|
+
"action": string;
|
|
574
|
+
/**
|
|
575
|
+
* Auto-dismiss after this many ms; 0 keeps it open until closed
|
|
576
|
+
* @default 4000
|
|
577
|
+
*/
|
|
578
|
+
"duration": number;
|
|
579
|
+
/**
|
|
580
|
+
* Message text (or use the default slot)
|
|
581
|
+
* @default ''
|
|
582
|
+
*/
|
|
583
|
+
"message": string;
|
|
584
|
+
/**
|
|
585
|
+
* @default false
|
|
586
|
+
*/
|
|
587
|
+
"open": boolean;
|
|
588
|
+
/**
|
|
589
|
+
* @default 'bottom'
|
|
590
|
+
*/
|
|
591
|
+
"position": 'bottom' | 'top';
|
|
592
|
+
/**
|
|
593
|
+
* @default 'info'
|
|
594
|
+
*/
|
|
595
|
+
"type": 'info' | 'success' | 'warning' | 'danger';
|
|
596
|
+
}
|
|
597
|
+
interface EvokeTooltip {
|
|
598
|
+
/**
|
|
599
|
+
* @default 'top'
|
|
600
|
+
*/
|
|
601
|
+
"placement": 'top' | 'bottom' | 'left' | 'right';
|
|
602
|
+
/**
|
|
603
|
+
* @default ''
|
|
604
|
+
*/
|
|
605
|
+
"text": string;
|
|
606
|
+
/**
|
|
607
|
+
* Dark, or light with an arrow
|
|
608
|
+
* @default 'dark'
|
|
609
|
+
*/
|
|
610
|
+
"theme": 'dark' | 'light';
|
|
611
|
+
}
|
|
202
612
|
}
|
|
203
613
|
export interface EvokeAlertCustomEvent<T> extends CustomEvent<T> {
|
|
204
614
|
detail: T;
|
|
205
615
|
target: HTMLEvokeAlertElement;
|
|
206
616
|
}
|
|
617
|
+
export interface EvokeCardCustomEvent<T> extends CustomEvent<T> {
|
|
618
|
+
detail: T;
|
|
619
|
+
target: HTMLEvokeCardElement;
|
|
620
|
+
}
|
|
207
621
|
export interface EvokeCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
208
622
|
detail: T;
|
|
209
623
|
target: HTMLEvokeCheckboxElement;
|
|
210
624
|
}
|
|
625
|
+
export interface EvokeChipCustomEvent<T> extends CustomEvent<T> {
|
|
626
|
+
detail: T;
|
|
627
|
+
target: HTMLEvokeChipElement;
|
|
628
|
+
}
|
|
211
629
|
export interface EvokeInputCustomEvent<T> extends CustomEvent<T> {
|
|
212
630
|
detail: T;
|
|
213
631
|
target: HTMLEvokeInputElement;
|
|
@@ -216,6 +634,14 @@ export interface EvokeModalCustomEvent<T> extends CustomEvent<T> {
|
|
|
216
634
|
detail: T;
|
|
217
635
|
target: HTMLEvokeModalElement;
|
|
218
636
|
}
|
|
637
|
+
export interface EvokePaginationCustomEvent<T> extends CustomEvent<T> {
|
|
638
|
+
detail: T;
|
|
639
|
+
target: HTMLEvokePaginationElement;
|
|
640
|
+
}
|
|
641
|
+
export interface EvokeQuantityStepperCustomEvent<T> extends CustomEvent<T> {
|
|
642
|
+
detail: T;
|
|
643
|
+
target: HTMLEvokeQuantityStepperElement;
|
|
644
|
+
}
|
|
219
645
|
export interface EvokeRadioGroupCustomEvent<T> extends CustomEvent<T> {
|
|
220
646
|
detail: T;
|
|
221
647
|
target: HTMLEvokeRadioGroupElement;
|
|
@@ -224,6 +650,26 @@ export interface EvokeSelectCustomEvent<T> extends CustomEvent<T> {
|
|
|
224
650
|
detail: T;
|
|
225
651
|
target: HTMLEvokeSelectElement;
|
|
226
652
|
}
|
|
653
|
+
export interface EvokeSwitchCustomEvent<T> extends CustomEvent<T> {
|
|
654
|
+
detail: T;
|
|
655
|
+
target: HTMLEvokeSwitchElement;
|
|
656
|
+
}
|
|
657
|
+
export interface EvokeTableCustomEvent<T> extends CustomEvent<T> {
|
|
658
|
+
detail: T;
|
|
659
|
+
target: HTMLEvokeTableElement;
|
|
660
|
+
}
|
|
661
|
+
export interface EvokeTabsCustomEvent<T> extends CustomEvent<T> {
|
|
662
|
+
detail: T;
|
|
663
|
+
target: HTMLEvokeTabsElement;
|
|
664
|
+
}
|
|
665
|
+
export interface EvokeTextareaCustomEvent<T> extends CustomEvent<T> {
|
|
666
|
+
detail: T;
|
|
667
|
+
target: HTMLEvokeTextareaElement;
|
|
668
|
+
}
|
|
669
|
+
export interface EvokeToastCustomEvent<T> extends CustomEvent<T> {
|
|
670
|
+
detail: T;
|
|
671
|
+
target: HTMLEvokeToastElement;
|
|
672
|
+
}
|
|
227
673
|
declare global {
|
|
228
674
|
interface HTMLEvokeAlertElementEventMap {
|
|
229
675
|
"evokeDismiss": void;
|
|
@@ -242,13 +688,36 @@ declare global {
|
|
|
242
688
|
prototype: HTMLEvokeAlertElement;
|
|
243
689
|
new (): HTMLEvokeAlertElement;
|
|
244
690
|
};
|
|
691
|
+
interface HTMLEvokeAppBarElement extends Components.EvokeAppBar, HTMLStencilElement {
|
|
692
|
+
}
|
|
693
|
+
var HTMLEvokeAppBarElement: {
|
|
694
|
+
prototype: HTMLEvokeAppBarElement;
|
|
695
|
+
new (): HTMLEvokeAppBarElement;
|
|
696
|
+
};
|
|
697
|
+
interface HTMLEvokeBadgeElement extends Components.EvokeBadge, HTMLStencilElement {
|
|
698
|
+
}
|
|
699
|
+
var HTMLEvokeBadgeElement: {
|
|
700
|
+
prototype: HTMLEvokeBadgeElement;
|
|
701
|
+
new (): HTMLEvokeBadgeElement;
|
|
702
|
+
};
|
|
245
703
|
interface HTMLEvokeButtonElement extends Components.EvokeButton, HTMLStencilElement {
|
|
246
704
|
}
|
|
247
705
|
var HTMLEvokeButtonElement: {
|
|
248
706
|
prototype: HTMLEvokeButtonElement;
|
|
249
707
|
new (): HTMLEvokeButtonElement;
|
|
250
708
|
};
|
|
709
|
+
interface HTMLEvokeCardElementEventMap {
|
|
710
|
+
"evokeClick": void;
|
|
711
|
+
}
|
|
251
712
|
interface HTMLEvokeCardElement extends Components.EvokeCard, HTMLStencilElement {
|
|
713
|
+
addEventListener<K extends keyof HTMLEvokeCardElementEventMap>(type: K, listener: (this: HTMLEvokeCardElement, ev: EvokeCardCustomEvent<HTMLEvokeCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
714
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
715
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
716
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
717
|
+
removeEventListener<K extends keyof HTMLEvokeCardElementEventMap>(type: K, listener: (this: HTMLEvokeCardElement, ev: EvokeCardCustomEvent<HTMLEvokeCardElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
718
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
719
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
720
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
252
721
|
}
|
|
253
722
|
var HTMLEvokeCardElement: {
|
|
254
723
|
prototype: HTMLEvokeCardElement;
|
|
@@ -271,6 +740,24 @@ declare global {
|
|
|
271
740
|
prototype: HTMLEvokeCheckboxElement;
|
|
272
741
|
new (): HTMLEvokeCheckboxElement;
|
|
273
742
|
};
|
|
743
|
+
interface HTMLEvokeChipElementEventMap {
|
|
744
|
+
"evokeChange": boolean;
|
|
745
|
+
"evokeRemove": void;
|
|
746
|
+
}
|
|
747
|
+
interface HTMLEvokeChipElement extends Components.EvokeChip, HTMLStencilElement {
|
|
748
|
+
addEventListener<K extends keyof HTMLEvokeChipElementEventMap>(type: K, listener: (this: HTMLEvokeChipElement, ev: EvokeChipCustomEvent<HTMLEvokeChipElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
749
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
750
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
751
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
752
|
+
removeEventListener<K extends keyof HTMLEvokeChipElementEventMap>(type: K, listener: (this: HTMLEvokeChipElement, ev: EvokeChipCustomEvent<HTMLEvokeChipElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
753
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
754
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
755
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
756
|
+
}
|
|
757
|
+
var HTMLEvokeChipElement: {
|
|
758
|
+
prototype: HTMLEvokeChipElement;
|
|
759
|
+
new (): HTMLEvokeChipElement;
|
|
760
|
+
};
|
|
274
761
|
interface HTMLEvokeInputElementEventMap {
|
|
275
762
|
"evokeInput": string;
|
|
276
763
|
"evokeChange": string;
|
|
@@ -306,6 +793,46 @@ declare global {
|
|
|
306
793
|
prototype: HTMLEvokeModalElement;
|
|
307
794
|
new (): HTMLEvokeModalElement;
|
|
308
795
|
};
|
|
796
|
+
interface HTMLEvokePaginationElementEventMap {
|
|
797
|
+
"evokeChange": number;
|
|
798
|
+
}
|
|
799
|
+
interface HTMLEvokePaginationElement extends Components.EvokePagination, HTMLStencilElement {
|
|
800
|
+
addEventListener<K extends keyof HTMLEvokePaginationElementEventMap>(type: K, listener: (this: HTMLEvokePaginationElement, ev: EvokePaginationCustomEvent<HTMLEvokePaginationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
801
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
802
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
803
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
804
|
+
removeEventListener<K extends keyof HTMLEvokePaginationElementEventMap>(type: K, listener: (this: HTMLEvokePaginationElement, ev: EvokePaginationCustomEvent<HTMLEvokePaginationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
805
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
806
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
807
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
808
|
+
}
|
|
809
|
+
var HTMLEvokePaginationElement: {
|
|
810
|
+
prototype: HTMLEvokePaginationElement;
|
|
811
|
+
new (): HTMLEvokePaginationElement;
|
|
812
|
+
};
|
|
813
|
+
interface HTMLEvokeProgressElement extends Components.EvokeProgress, HTMLStencilElement {
|
|
814
|
+
}
|
|
815
|
+
var HTMLEvokeProgressElement: {
|
|
816
|
+
prototype: HTMLEvokeProgressElement;
|
|
817
|
+
new (): HTMLEvokeProgressElement;
|
|
818
|
+
};
|
|
819
|
+
interface HTMLEvokeQuantityStepperElementEventMap {
|
|
820
|
+
"evokeChange": number;
|
|
821
|
+
}
|
|
822
|
+
interface HTMLEvokeQuantityStepperElement extends Components.EvokeQuantityStepper, HTMLStencilElement {
|
|
823
|
+
addEventListener<K extends keyof HTMLEvokeQuantityStepperElementEventMap>(type: K, listener: (this: HTMLEvokeQuantityStepperElement, ev: EvokeQuantityStepperCustomEvent<HTMLEvokeQuantityStepperElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
824
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
825
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
826
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
827
|
+
removeEventListener<K extends keyof HTMLEvokeQuantityStepperElementEventMap>(type: K, listener: (this: HTMLEvokeQuantityStepperElement, ev: EvokeQuantityStepperCustomEvent<HTMLEvokeQuantityStepperElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
828
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
829
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
830
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
831
|
+
}
|
|
832
|
+
var HTMLEvokeQuantityStepperElement: {
|
|
833
|
+
prototype: HTMLEvokeQuantityStepperElement;
|
|
834
|
+
new (): HTMLEvokeQuantityStepperElement;
|
|
835
|
+
};
|
|
309
836
|
interface HTMLEvokeRadioGroupElementEventMap {
|
|
310
837
|
"evokeChange": string;
|
|
311
838
|
}
|
|
@@ -324,7 +851,7 @@ declare global {
|
|
|
324
851
|
new (): HTMLEvokeRadioGroupElement;
|
|
325
852
|
};
|
|
326
853
|
interface HTMLEvokeSelectElementEventMap {
|
|
327
|
-
"evokeChange": string;
|
|
854
|
+
"evokeChange": string | string[];
|
|
328
855
|
}
|
|
329
856
|
interface HTMLEvokeSelectElement extends Components.EvokeSelect, HTMLStencilElement {
|
|
330
857
|
addEventListener<K extends keyof HTMLEvokeSelectElementEventMap>(type: K, listener: (this: HTMLEvokeSelectElement, ev: EvokeSelectCustomEvent<HTMLEvokeSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -340,19 +867,129 @@ declare global {
|
|
|
340
867
|
prototype: HTMLEvokeSelectElement;
|
|
341
868
|
new (): HTMLEvokeSelectElement;
|
|
342
869
|
};
|
|
870
|
+
interface HTMLEvokeSwitchElementEventMap {
|
|
871
|
+
"evokeChange": boolean;
|
|
872
|
+
}
|
|
873
|
+
interface HTMLEvokeSwitchElement extends Components.EvokeSwitch, HTMLStencilElement {
|
|
874
|
+
addEventListener<K extends keyof HTMLEvokeSwitchElementEventMap>(type: K, listener: (this: HTMLEvokeSwitchElement, ev: EvokeSwitchCustomEvent<HTMLEvokeSwitchElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
875
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
876
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
877
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
878
|
+
removeEventListener<K extends keyof HTMLEvokeSwitchElementEventMap>(type: K, listener: (this: HTMLEvokeSwitchElement, ev: EvokeSwitchCustomEvent<HTMLEvokeSwitchElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
879
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
880
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
881
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
882
|
+
}
|
|
883
|
+
var HTMLEvokeSwitchElement: {
|
|
884
|
+
prototype: HTMLEvokeSwitchElement;
|
|
885
|
+
new (): HTMLEvokeSwitchElement;
|
|
886
|
+
};
|
|
887
|
+
interface HTMLEvokeTableElementEventMap {
|
|
888
|
+
"evokeSort": { key: string; direction: 'asc' | 'desc' };
|
|
889
|
+
}
|
|
890
|
+
interface HTMLEvokeTableElement extends Components.EvokeTable, HTMLStencilElement {
|
|
891
|
+
addEventListener<K extends keyof HTMLEvokeTableElementEventMap>(type: K, listener: (this: HTMLEvokeTableElement, ev: EvokeTableCustomEvent<HTMLEvokeTableElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
892
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
893
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
894
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
895
|
+
removeEventListener<K extends keyof HTMLEvokeTableElementEventMap>(type: K, listener: (this: HTMLEvokeTableElement, ev: EvokeTableCustomEvent<HTMLEvokeTableElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
896
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
897
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
898
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
899
|
+
}
|
|
900
|
+
var HTMLEvokeTableElement: {
|
|
901
|
+
prototype: HTMLEvokeTableElement;
|
|
902
|
+
new (): HTMLEvokeTableElement;
|
|
903
|
+
};
|
|
904
|
+
interface HTMLEvokeTabsElementEventMap {
|
|
905
|
+
"evokeChange": string;
|
|
906
|
+
}
|
|
907
|
+
interface HTMLEvokeTabsElement extends Components.EvokeTabs, HTMLStencilElement {
|
|
908
|
+
addEventListener<K extends keyof HTMLEvokeTabsElementEventMap>(type: K, listener: (this: HTMLEvokeTabsElement, ev: EvokeTabsCustomEvent<HTMLEvokeTabsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
909
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
910
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
911
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
912
|
+
removeEventListener<K extends keyof HTMLEvokeTabsElementEventMap>(type: K, listener: (this: HTMLEvokeTabsElement, ev: EvokeTabsCustomEvent<HTMLEvokeTabsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
913
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
914
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
915
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
916
|
+
}
|
|
917
|
+
var HTMLEvokeTabsElement: {
|
|
918
|
+
prototype: HTMLEvokeTabsElement;
|
|
919
|
+
new (): HTMLEvokeTabsElement;
|
|
920
|
+
};
|
|
921
|
+
interface HTMLEvokeTextareaElementEventMap {
|
|
922
|
+
"evokeInput": string;
|
|
923
|
+
"evokeChange": string;
|
|
924
|
+
}
|
|
925
|
+
interface HTMLEvokeTextareaElement extends Components.EvokeTextarea, HTMLStencilElement {
|
|
926
|
+
addEventListener<K extends keyof HTMLEvokeTextareaElementEventMap>(type: K, listener: (this: HTMLEvokeTextareaElement, ev: EvokeTextareaCustomEvent<HTMLEvokeTextareaElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
927
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
928
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
929
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
930
|
+
removeEventListener<K extends keyof HTMLEvokeTextareaElementEventMap>(type: K, listener: (this: HTMLEvokeTextareaElement, ev: EvokeTextareaCustomEvent<HTMLEvokeTextareaElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
931
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
932
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
933
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
934
|
+
}
|
|
935
|
+
var HTMLEvokeTextareaElement: {
|
|
936
|
+
prototype: HTMLEvokeTextareaElement;
|
|
937
|
+
new (): HTMLEvokeTextareaElement;
|
|
938
|
+
};
|
|
939
|
+
interface HTMLEvokeToastElementEventMap {
|
|
940
|
+
"evokeAction": void;
|
|
941
|
+
"evokeClose": void;
|
|
942
|
+
}
|
|
943
|
+
interface HTMLEvokeToastElement extends Components.EvokeToast, HTMLStencilElement {
|
|
944
|
+
addEventListener<K extends keyof HTMLEvokeToastElementEventMap>(type: K, listener: (this: HTMLEvokeToastElement, ev: EvokeToastCustomEvent<HTMLEvokeToastElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
945
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
946
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
947
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
948
|
+
removeEventListener<K extends keyof HTMLEvokeToastElementEventMap>(type: K, listener: (this: HTMLEvokeToastElement, ev: EvokeToastCustomEvent<HTMLEvokeToastElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
949
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
950
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
951
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
952
|
+
}
|
|
953
|
+
var HTMLEvokeToastElement: {
|
|
954
|
+
prototype: HTMLEvokeToastElement;
|
|
955
|
+
new (): HTMLEvokeToastElement;
|
|
956
|
+
};
|
|
957
|
+
interface HTMLEvokeTooltipElement extends Components.EvokeTooltip, HTMLStencilElement {
|
|
958
|
+
}
|
|
959
|
+
var HTMLEvokeTooltipElement: {
|
|
960
|
+
prototype: HTMLEvokeTooltipElement;
|
|
961
|
+
new (): HTMLEvokeTooltipElement;
|
|
962
|
+
};
|
|
343
963
|
interface HTMLElementTagNameMap {
|
|
344
964
|
"evoke-alert": HTMLEvokeAlertElement;
|
|
965
|
+
"evoke-app-bar": HTMLEvokeAppBarElement;
|
|
966
|
+
"evoke-badge": HTMLEvokeBadgeElement;
|
|
345
967
|
"evoke-button": HTMLEvokeButtonElement;
|
|
346
968
|
"evoke-card": HTMLEvokeCardElement;
|
|
347
969
|
"evoke-checkbox": HTMLEvokeCheckboxElement;
|
|
970
|
+
"evoke-chip": HTMLEvokeChipElement;
|
|
348
971
|
"evoke-input": HTMLEvokeInputElement;
|
|
349
972
|
"evoke-modal": HTMLEvokeModalElement;
|
|
973
|
+
"evoke-pagination": HTMLEvokePaginationElement;
|
|
974
|
+
"evoke-progress": HTMLEvokeProgressElement;
|
|
975
|
+
"evoke-quantity-stepper": HTMLEvokeQuantityStepperElement;
|
|
350
976
|
"evoke-radio-group": HTMLEvokeRadioGroupElement;
|
|
351
977
|
"evoke-select": HTMLEvokeSelectElement;
|
|
978
|
+
"evoke-switch": HTMLEvokeSwitchElement;
|
|
979
|
+
"evoke-table": HTMLEvokeTableElement;
|
|
980
|
+
"evoke-tabs": HTMLEvokeTabsElement;
|
|
981
|
+
"evoke-textarea": HTMLEvokeTextareaElement;
|
|
982
|
+
"evoke-toast": HTMLEvokeToastElement;
|
|
983
|
+
"evoke-tooltip": HTMLEvokeTooltipElement;
|
|
352
984
|
}
|
|
353
985
|
}
|
|
354
986
|
declare namespace LocalJSX {
|
|
355
987
|
interface EvokeAlert {
|
|
988
|
+
/**
|
|
989
|
+
* Subtle (tinted background) or solid (filled colour)
|
|
990
|
+
* @default 'subtle'
|
|
991
|
+
*/
|
|
992
|
+
"appearance"?: 'subtle' | 'solid';
|
|
356
993
|
/**
|
|
357
994
|
* @default false
|
|
358
995
|
*/
|
|
@@ -366,7 +1003,59 @@ declare namespace LocalJSX {
|
|
|
366
1003
|
*/
|
|
367
1004
|
"type"?: 'info' | 'success' | 'warning' | 'danger';
|
|
368
1005
|
}
|
|
1006
|
+
interface EvokeAppBar {
|
|
1007
|
+
/**
|
|
1008
|
+
* Light surface, or dark / brand-coloured (navy)
|
|
1009
|
+
* @default 'light'
|
|
1010
|
+
*/
|
|
1011
|
+
"appearance"?: 'light' | 'dark';
|
|
1012
|
+
/**
|
|
1013
|
+
* Accessible name for the navigation landmark
|
|
1014
|
+
* @default 'Main'
|
|
1015
|
+
*/
|
|
1016
|
+
"navLabel"?: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* Stick to the top of the viewport while scrolling
|
|
1019
|
+
* @default false
|
|
1020
|
+
*/
|
|
1021
|
+
"sticky"?: boolean;
|
|
1022
|
+
}
|
|
1023
|
+
interface EvokeBadge {
|
|
1024
|
+
/**
|
|
1025
|
+
* @default 'danger'
|
|
1026
|
+
*/
|
|
1027
|
+
"color"?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'info';
|
|
1028
|
+
/**
|
|
1029
|
+
* Number to show (count badge)
|
|
1030
|
+
* @default 0
|
|
1031
|
+
*/
|
|
1032
|
+
"count"?: number;
|
|
1033
|
+
/**
|
|
1034
|
+
* Show a small status dot instead of a number
|
|
1035
|
+
* @default false
|
|
1036
|
+
*/
|
|
1037
|
+
"dot"?: boolean;
|
|
1038
|
+
/**
|
|
1039
|
+
* Screen-reader text, e.g. "3 items in cart". A dot without a label is treated as decorative.
|
|
1040
|
+
* @default ''
|
|
1041
|
+
*/
|
|
1042
|
+
"label"?: string;
|
|
1043
|
+
/**
|
|
1044
|
+
* Counts above this show as "max+" (e.g. 99+)
|
|
1045
|
+
* @default 99
|
|
1046
|
+
*/
|
|
1047
|
+
"max"?: number;
|
|
1048
|
+
/**
|
|
1049
|
+
* Show the badge even when the count is 0
|
|
1050
|
+
* @default false
|
|
1051
|
+
*/
|
|
1052
|
+
"showZero"?: boolean;
|
|
1053
|
+
}
|
|
369
1054
|
interface EvokeButton {
|
|
1055
|
+
/**
|
|
1056
|
+
* aria-label for the inner button (required when `icon-only`)
|
|
1057
|
+
*/
|
|
1058
|
+
"accessibleLabel"?: string;
|
|
370
1059
|
/**
|
|
371
1060
|
* Stretch to the full width of the container
|
|
372
1061
|
* @default false
|
|
@@ -381,26 +1070,58 @@ declare namespace LocalJSX {
|
|
|
381
1070
|
* @default false
|
|
382
1071
|
*/
|
|
383
1072
|
"disabled"?: boolean;
|
|
1073
|
+
/**
|
|
1074
|
+
* Optional leading icon
|
|
1075
|
+
*/
|
|
1076
|
+
"icon"?: EvokeIcon;
|
|
1077
|
+
/**
|
|
1078
|
+
* Square button for icon-only use; set `accessible-label` too
|
|
1079
|
+
* @default false
|
|
1080
|
+
*/
|
|
1081
|
+
"iconOnly"?: boolean;
|
|
1082
|
+
/**
|
|
1083
|
+
* Shows a spinner and blocks clicks while true
|
|
1084
|
+
* @default false
|
|
1085
|
+
*/
|
|
1086
|
+
"loading"?: boolean;
|
|
1087
|
+
/**
|
|
1088
|
+
* @default 'md'
|
|
1089
|
+
*/
|
|
1090
|
+
"size"?: 'sm' | 'md' | 'lg';
|
|
384
1091
|
/**
|
|
385
1092
|
* @default 'button'
|
|
386
1093
|
*/
|
|
387
1094
|
"type"?: 'button' | 'submit' | 'reset';
|
|
388
1095
|
/**
|
|
389
|
-
*
|
|
1096
|
+
* Solid variants (primary, secondary, danger), outline, or ghost (text only, no border)
|
|
390
1097
|
* @default 'primary'
|
|
391
1098
|
*/
|
|
392
|
-
"variant"?: 'primary' | 'secondary' | 'danger' | 'outline';
|
|
1099
|
+
"variant"?: 'primary' | 'secondary' | 'danger' | 'outline' | 'ghost';
|
|
393
1100
|
}
|
|
394
1101
|
interface EvokeCard {
|
|
1102
|
+
/**
|
|
1103
|
+
* Outlined (border) or elevated (shadow, no border)
|
|
1104
|
+
* @default 'outlined'
|
|
1105
|
+
*/
|
|
1106
|
+
"appearance"?: 'outlined' | 'elevated';
|
|
395
1107
|
/**
|
|
396
1108
|
* Extra classes for the card container, e.g. "shadow-md" (Tailwind) or "card" (Bootstrap)
|
|
397
1109
|
* @default ''
|
|
398
1110
|
*/
|
|
399
1111
|
"cardClass"?: string;
|
|
1112
|
+
/**
|
|
1113
|
+
* Makes the whole card a button (hover/active/focus states, Enter/Space)
|
|
1114
|
+
* @default false
|
|
1115
|
+
*/
|
|
1116
|
+
"clickable"?: boolean;
|
|
400
1117
|
/**
|
|
401
1118
|
* @default ''
|
|
402
1119
|
*/
|
|
403
1120
|
"heading"?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* Fired when a `clickable` card is activated
|
|
1123
|
+
*/
|
|
1124
|
+
"onEvokeClick"?: (event: EvokeCardCustomEvent<void>) => void;
|
|
404
1125
|
}
|
|
405
1126
|
interface EvokeCheckbox {
|
|
406
1127
|
/**
|
|
@@ -416,6 +1137,11 @@ declare namespace LocalJSX {
|
|
|
416
1137
|
* @default ''
|
|
417
1138
|
*/
|
|
418
1139
|
"error"?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* Mixed state, e.g. a "select all" box when only some items are selected. Cleared on click.
|
|
1142
|
+
* @default false
|
|
1143
|
+
*/
|
|
1144
|
+
"indeterminate"?: boolean;
|
|
419
1145
|
/**
|
|
420
1146
|
* Extra classes for the inner <input>
|
|
421
1147
|
* @default ''
|
|
@@ -430,19 +1156,58 @@ declare namespace LocalJSX {
|
|
|
430
1156
|
*/
|
|
431
1157
|
"onEvokeChange"?: (event: EvokeCheckboxCustomEvent<boolean>) => void;
|
|
432
1158
|
}
|
|
1159
|
+
interface EvokeChip {
|
|
1160
|
+
/**
|
|
1161
|
+
* @default false
|
|
1162
|
+
*/
|
|
1163
|
+
"disabled"?: boolean;
|
|
1164
|
+
/**
|
|
1165
|
+
* @default ''
|
|
1166
|
+
*/
|
|
1167
|
+
"label"?: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* Emits the new selected state (filter chip)
|
|
1170
|
+
*/
|
|
1171
|
+
"onEvokeChange"?: (event: EvokeChipCustomEvent<boolean>) => void;
|
|
1172
|
+
/**
|
|
1173
|
+
* Fired when the remove button is clicked (removable chip)
|
|
1174
|
+
*/
|
|
1175
|
+
"onEvokeRemove"?: (event: EvokeChipCustomEvent<void>) => void;
|
|
1176
|
+
/**
|
|
1177
|
+
* Shows a remove button instead of toggling selection
|
|
1178
|
+
* @default false
|
|
1179
|
+
*/
|
|
1180
|
+
"removable"?: boolean;
|
|
1181
|
+
/**
|
|
1182
|
+
* Selected state (filter chip)
|
|
1183
|
+
* @default false
|
|
1184
|
+
*/
|
|
1185
|
+
"selected"?: boolean;
|
|
1186
|
+
}
|
|
433
1187
|
interface EvokeInput {
|
|
1188
|
+
/**
|
|
1189
|
+
* Outlined (default) or filled (tinted background, bottom border)
|
|
1190
|
+
* @default 'outlined'
|
|
1191
|
+
*/
|
|
1192
|
+
"appearance"?: 'outlined' | 'filled';
|
|
434
1193
|
/**
|
|
435
1194
|
* @default false
|
|
436
1195
|
*/
|
|
437
1196
|
"disabled"?: boolean;
|
|
438
1197
|
/**
|
|
1198
|
+
* Error message shown below the field (replaces the hint)
|
|
439
1199
|
* @default ''
|
|
440
1200
|
*/
|
|
441
1201
|
"error"?: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* Helper text shown below the field
|
|
1204
|
+
* @default ''
|
|
1205
|
+
*/
|
|
1206
|
+
"hint"?: string;
|
|
442
1207
|
/**
|
|
443
1208
|
* Optional leading icon
|
|
444
1209
|
*/
|
|
445
|
-
"icon"?:
|
|
1210
|
+
"icon"?: EvokeIcon;
|
|
446
1211
|
/**
|
|
447
1212
|
* Extra classes for the inner <input>, e.g. "form-control" (Bootstrap)
|
|
448
1213
|
* @default ''
|
|
@@ -452,6 +1217,10 @@ declare namespace LocalJSX {
|
|
|
452
1217
|
* @default ''
|
|
453
1218
|
*/
|
|
454
1219
|
"label"?: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* @default ''
|
|
1222
|
+
*/
|
|
1223
|
+
"name"?: string;
|
|
455
1224
|
/**
|
|
456
1225
|
* Emits the new value on commit (blur/enter)
|
|
457
1226
|
*/
|
|
@@ -464,6 +1233,10 @@ declare namespace LocalJSX {
|
|
|
464
1233
|
* @default ''
|
|
465
1234
|
*/
|
|
466
1235
|
"placeholder"?: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* @default false
|
|
1238
|
+
*/
|
|
1239
|
+
"required"?: boolean;
|
|
467
1240
|
/**
|
|
468
1241
|
* @default 'text'
|
|
469
1242
|
*/
|
|
@@ -496,8 +1269,106 @@ declare namespace LocalJSX {
|
|
|
496
1269
|
* @default false
|
|
497
1270
|
*/
|
|
498
1271
|
"open"?: boolean;
|
|
1272
|
+
/**
|
|
1273
|
+
* Centred dialog, or a drawer sliding in from the right
|
|
1274
|
+
* @default 'center'
|
|
1275
|
+
*/
|
|
1276
|
+
"position"?: 'center' | 'right';
|
|
1277
|
+
/**
|
|
1278
|
+
* @default 'md'
|
|
1279
|
+
*/
|
|
1280
|
+
"size"?: 'sm' | 'md' | 'lg';
|
|
1281
|
+
}
|
|
1282
|
+
interface EvokePagination {
|
|
1283
|
+
/**
|
|
1284
|
+
* Numbered pages, or compact (Prev, "2 of 10", Next)
|
|
1285
|
+
* @default 'numbered'
|
|
1286
|
+
*/
|
|
1287
|
+
"appearance"?: 'numbered' | 'compact';
|
|
1288
|
+
/**
|
|
1289
|
+
* @default false
|
|
1290
|
+
*/
|
|
1291
|
+
"disabled"?: boolean;
|
|
1292
|
+
/**
|
|
1293
|
+
* Emits the new page number
|
|
1294
|
+
*/
|
|
1295
|
+
"onEvokeChange"?: (event: EvokePaginationCustomEvent<number>) => void;
|
|
1296
|
+
/**
|
|
1297
|
+
* Current page (1-based)
|
|
1298
|
+
* @default 1
|
|
1299
|
+
*/
|
|
1300
|
+
"page"?: number;
|
|
1301
|
+
/**
|
|
1302
|
+
* Total number of pages
|
|
1303
|
+
* @default 1
|
|
1304
|
+
*/
|
|
1305
|
+
"total"?: number;
|
|
1306
|
+
}
|
|
1307
|
+
interface EvokeProgress {
|
|
1308
|
+
/**
|
|
1309
|
+
* Unknown duration: animates continuously and ignores `value`
|
|
1310
|
+
* @default false
|
|
1311
|
+
*/
|
|
1312
|
+
"indeterminate"?: boolean;
|
|
1313
|
+
/**
|
|
1314
|
+
* Accessible name, e.g. "Uploading"
|
|
1315
|
+
* @default 'Loading'
|
|
1316
|
+
*/
|
|
1317
|
+
"label"?: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* Diameter in px for the circular type
|
|
1320
|
+
* @default 40
|
|
1321
|
+
*/
|
|
1322
|
+
"size"?: number;
|
|
1323
|
+
/**
|
|
1324
|
+
* Linear bar, or circular spinner / ring
|
|
1325
|
+
* @default 'linear'
|
|
1326
|
+
*/
|
|
1327
|
+
"type"?: 'linear' | 'circular';
|
|
1328
|
+
/**
|
|
1329
|
+
* Progress from 0 to 100
|
|
1330
|
+
* @default 0
|
|
1331
|
+
*/
|
|
1332
|
+
"value"?: number;
|
|
1333
|
+
}
|
|
1334
|
+
interface EvokeQuantityStepper {
|
|
1335
|
+
/**
|
|
1336
|
+
* Inline (minus, value, plus) or compact with a quantity dropdown
|
|
1337
|
+
* @default 'inline'
|
|
1338
|
+
*/
|
|
1339
|
+
"appearance"?: 'inline' | 'compact';
|
|
1340
|
+
/**
|
|
1341
|
+
* @default false
|
|
1342
|
+
*/
|
|
1343
|
+
"disabled"?: boolean;
|
|
1344
|
+
/**
|
|
1345
|
+
* Accessible name for the control
|
|
1346
|
+
* @default 'Quantity'
|
|
1347
|
+
*/
|
|
1348
|
+
"label"?: string;
|
|
1349
|
+
/**
|
|
1350
|
+
* @default 99
|
|
1351
|
+
*/
|
|
1352
|
+
"max"?: number;
|
|
1353
|
+
/**
|
|
1354
|
+
* @default 1
|
|
1355
|
+
*/
|
|
1356
|
+
"min"?: number;
|
|
1357
|
+
/**
|
|
1358
|
+
* Emits the new quantity
|
|
1359
|
+
*/
|
|
1360
|
+
"onEvokeChange"?: (event: EvokeQuantityStepperCustomEvent<number>) => void;
|
|
1361
|
+
/**
|
|
1362
|
+
* @default 1
|
|
1363
|
+
*/
|
|
1364
|
+
"value"?: number;
|
|
499
1365
|
}
|
|
500
1366
|
interface EvokeRadioGroup {
|
|
1367
|
+
/**
|
|
1368
|
+
* Classic radio circles, or a segmented button group
|
|
1369
|
+
* @default 'classic'
|
|
1370
|
+
*/
|
|
1371
|
+
"appearance"?: 'classic' | 'segmented';
|
|
501
1372
|
/**
|
|
502
1373
|
* @default false
|
|
503
1374
|
*/
|
|
@@ -508,7 +1379,7 @@ declare namespace LocalJSX {
|
|
|
508
1379
|
*/
|
|
509
1380
|
"error"?: string;
|
|
510
1381
|
/**
|
|
511
|
-
* Lay options out in a row instead of a column
|
|
1382
|
+
* Lay classic options out in a row instead of a column
|
|
512
1383
|
* @default false
|
|
513
1384
|
*/
|
|
514
1385
|
"inline"?: boolean;
|
|
@@ -540,18 +1411,27 @@ declare namespace LocalJSX {
|
|
|
540
1411
|
*/
|
|
541
1412
|
"disabled"?: boolean;
|
|
542
1413
|
/**
|
|
543
|
-
* Error message shown below the field
|
|
1414
|
+
* Error message shown below the field (replaces the hint)
|
|
544
1415
|
* @default ''
|
|
545
1416
|
*/
|
|
546
1417
|
"error"?: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* @default ''
|
|
1420
|
+
*/
|
|
1421
|
+
"hint"?: string;
|
|
547
1422
|
/**
|
|
548
1423
|
* @default ''
|
|
549
1424
|
*/
|
|
550
1425
|
"label"?: string;
|
|
551
1426
|
/**
|
|
552
|
-
*
|
|
1427
|
+
* Multi-select: selected values are shown as removable chips
|
|
1428
|
+
* @default false
|
|
553
1429
|
*/
|
|
554
|
-
"
|
|
1430
|
+
"multiple"?: boolean;
|
|
1431
|
+
/**
|
|
1432
|
+
* Emits the selected value (string) or the selected values (string[]) when `multiple`
|
|
1433
|
+
*/
|
|
1434
|
+
"onEvokeChange"?: (event: EvokeSelectCustomEvent<string | string[]>) => void;
|
|
555
1435
|
/**
|
|
556
1436
|
* Options as an array of { label, value, disabled? } or a JSON string of the same
|
|
557
1437
|
* @default []
|
|
@@ -562,82 +1442,409 @@ declare namespace LocalJSX {
|
|
|
562
1442
|
*/
|
|
563
1443
|
"placeholder"?: string;
|
|
564
1444
|
/**
|
|
565
|
-
*
|
|
1445
|
+
* Adds a search box that filters the options
|
|
1446
|
+
* @default false
|
|
1447
|
+
*/
|
|
1448
|
+
"searchable"?: boolean;
|
|
1449
|
+
/**
|
|
1450
|
+
* Extra classes for the inner <select> (single, non-searchable mode), e.g. "form-select"
|
|
566
1451
|
* @default ''
|
|
567
1452
|
*/
|
|
568
1453
|
"selectClass"?: string;
|
|
569
1454
|
/**
|
|
1455
|
+
* Selected value (string), or an array of values when `multiple`
|
|
1456
|
+
* @default ''
|
|
1457
|
+
*/
|
|
1458
|
+
"value"?: string | string[];
|
|
1459
|
+
}
|
|
1460
|
+
interface EvokeSwitch {
|
|
1461
|
+
/**
|
|
1462
|
+
* aria-label for a plain toggle that has no visible label
|
|
1463
|
+
*/
|
|
1464
|
+
"accessibleLabel"?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* @default false
|
|
1467
|
+
*/
|
|
1468
|
+
"checked"?: boolean;
|
|
1469
|
+
/**
|
|
1470
|
+
* Secondary text under the label
|
|
1471
|
+
* @default ''
|
|
1472
|
+
*/
|
|
1473
|
+
"description"?: string;
|
|
1474
|
+
/**
|
|
1475
|
+
* @default false
|
|
1476
|
+
*/
|
|
1477
|
+
"disabled"?: boolean;
|
|
1478
|
+
/**
|
|
1479
|
+
* Optional visible label. Without a label or description it is a plain toggle.
|
|
1480
|
+
* @default ''
|
|
1481
|
+
*/
|
|
1482
|
+
"label"?: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* Emits the new checked state
|
|
1485
|
+
*/
|
|
1486
|
+
"onEvokeChange"?: (event: EvokeSwitchCustomEvent<boolean>) => void;
|
|
1487
|
+
}
|
|
1488
|
+
interface EvokeTable {
|
|
1489
|
+
/**
|
|
1490
|
+
* Visually hidden/visible table caption for screen readers
|
|
1491
|
+
* @default ''
|
|
1492
|
+
*/
|
|
1493
|
+
"caption"?: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* Columns as an array of { key, label, sortable?, align? } or a JSON string of the same
|
|
1496
|
+
* @default []
|
|
1497
|
+
*/
|
|
1498
|
+
"columns"?: { key: string; label: string; sortable?: boolean; align?: 'left' | 'center' | 'right' }[] | string;
|
|
1499
|
+
/**
|
|
1500
|
+
* @default 'No data'
|
|
1501
|
+
*/
|
|
1502
|
+
"emptyText"?: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* Fired after a header is sorted: { key, direction } where direction is 'asc' or 'desc'
|
|
1505
|
+
*/
|
|
1506
|
+
"onEvokeSort"?: (event: EvokeTableCustomEvent<{ key: string; direction: 'asc' | 'desc' }>) => void;
|
|
1507
|
+
/**
|
|
1508
|
+
* Rows as an array of objects keyed by column key, or a JSON string of the same
|
|
1509
|
+
* @default []
|
|
1510
|
+
*/
|
|
1511
|
+
"rows"?: Record<string, string | number | boolean | null>[] | string;
|
|
1512
|
+
/**
|
|
1513
|
+
* Allow sorting on columns marked `sortable` (or all columns if none are marked)
|
|
1514
|
+
* @default false
|
|
1515
|
+
*/
|
|
1516
|
+
"sortable"?: boolean;
|
|
1517
|
+
/**
|
|
1518
|
+
* Alternate row shading
|
|
1519
|
+
* @default false
|
|
1520
|
+
*/
|
|
1521
|
+
"striped"?: boolean;
|
|
1522
|
+
}
|
|
1523
|
+
interface EvokeTabs {
|
|
1524
|
+
/**
|
|
1525
|
+
* Underline tabs or pill tabs
|
|
1526
|
+
* @default 'underline'
|
|
1527
|
+
*/
|
|
1528
|
+
"appearance"?: 'underline' | 'pill';
|
|
1529
|
+
/**
|
|
1530
|
+
* Accessible name for the tab list
|
|
1531
|
+
* @default ''
|
|
1532
|
+
*/
|
|
1533
|
+
"label"?: string;
|
|
1534
|
+
/**
|
|
1535
|
+
* Emits the value of the newly selected tab
|
|
1536
|
+
*/
|
|
1537
|
+
"onEvokeChange"?: (event: EvokeTabsCustomEvent<string>) => void;
|
|
1538
|
+
/**
|
|
1539
|
+
* Tabs as an array of { label, value, disabled? } or a JSON string of the same
|
|
1540
|
+
* @default []
|
|
1541
|
+
*/
|
|
1542
|
+
"options"?: EvokeOption[] | string;
|
|
1543
|
+
/**
|
|
1544
|
+
* Value of the active tab. Defaults to the first enabled tab.
|
|
570
1545
|
* @default ''
|
|
571
1546
|
*/
|
|
572
1547
|
"value"?: string;
|
|
573
1548
|
}
|
|
1549
|
+
interface EvokeTextarea {
|
|
1550
|
+
/**
|
|
1551
|
+
* Grow with the content instead of scrolling
|
|
1552
|
+
* @default false
|
|
1553
|
+
*/
|
|
1554
|
+
"autoGrow"?: boolean;
|
|
1555
|
+
/**
|
|
1556
|
+
* @default false
|
|
1557
|
+
*/
|
|
1558
|
+
"disabled"?: boolean;
|
|
1559
|
+
/**
|
|
1560
|
+
* @default ''
|
|
1561
|
+
*/
|
|
1562
|
+
"error"?: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* @default ''
|
|
1565
|
+
*/
|
|
1566
|
+
"hint"?: string;
|
|
1567
|
+
/**
|
|
1568
|
+
* @default ''
|
|
1569
|
+
*/
|
|
1570
|
+
"label"?: string;
|
|
1571
|
+
/**
|
|
1572
|
+
* Max characters; also shows a live "n / max" counter
|
|
1573
|
+
*/
|
|
1574
|
+
"maxLength"?: number;
|
|
1575
|
+
/**
|
|
1576
|
+
* @default ''
|
|
1577
|
+
*/
|
|
1578
|
+
"name"?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* Emits the new value on commit (blur)
|
|
1581
|
+
*/
|
|
1582
|
+
"onEvokeChange"?: (event: EvokeTextareaCustomEvent<string>) => void;
|
|
1583
|
+
/**
|
|
1584
|
+
* Emits the new value on every keystroke
|
|
1585
|
+
*/
|
|
1586
|
+
"onEvokeInput"?: (event: EvokeTextareaCustomEvent<string>) => void;
|
|
1587
|
+
/**
|
|
1588
|
+
* @default ''
|
|
1589
|
+
*/
|
|
1590
|
+
"placeholder"?: string;
|
|
1591
|
+
/**
|
|
1592
|
+
* @default false
|
|
1593
|
+
*/
|
|
1594
|
+
"required"?: boolean;
|
|
1595
|
+
/**
|
|
1596
|
+
* Visible rows (the minimum height when `auto-grow` is on)
|
|
1597
|
+
* @default 4
|
|
1598
|
+
*/
|
|
1599
|
+
"rows"?: number;
|
|
1600
|
+
/**
|
|
1601
|
+
* Extra classes for the inner <textarea>
|
|
1602
|
+
* @default ''
|
|
1603
|
+
*/
|
|
1604
|
+
"textareaClass"?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* @default ''
|
|
1607
|
+
*/
|
|
1608
|
+
"value"?: string;
|
|
1609
|
+
}
|
|
1610
|
+
interface EvokeToast {
|
|
1611
|
+
/**
|
|
1612
|
+
* Label of an action button, e.g. "View cart". Leave empty for a simple message.
|
|
1613
|
+
* @default ''
|
|
1614
|
+
*/
|
|
1615
|
+
"action"?: string;
|
|
1616
|
+
/**
|
|
1617
|
+
* Auto-dismiss after this many ms; 0 keeps it open until closed
|
|
1618
|
+
* @default 4000
|
|
1619
|
+
*/
|
|
1620
|
+
"duration"?: number;
|
|
1621
|
+
/**
|
|
1622
|
+
* Message text (or use the default slot)
|
|
1623
|
+
* @default ''
|
|
1624
|
+
*/
|
|
1625
|
+
"message"?: string;
|
|
1626
|
+
/**
|
|
1627
|
+
* Fired when the action button is clicked
|
|
1628
|
+
*/
|
|
1629
|
+
"onEvokeAction"?: (event: EvokeToastCustomEvent<void>) => void;
|
|
1630
|
+
/**
|
|
1631
|
+
* Fired when the toast closes (button, action or timeout)
|
|
1632
|
+
*/
|
|
1633
|
+
"onEvokeClose"?: (event: EvokeToastCustomEvent<void>) => void;
|
|
1634
|
+
/**
|
|
1635
|
+
* @default false
|
|
1636
|
+
*/
|
|
1637
|
+
"open"?: boolean;
|
|
1638
|
+
/**
|
|
1639
|
+
* @default 'bottom'
|
|
1640
|
+
*/
|
|
1641
|
+
"position"?: 'bottom' | 'top';
|
|
1642
|
+
/**
|
|
1643
|
+
* @default 'info'
|
|
1644
|
+
*/
|
|
1645
|
+
"type"?: 'info' | 'success' | 'warning' | 'danger';
|
|
1646
|
+
}
|
|
1647
|
+
interface EvokeTooltip {
|
|
1648
|
+
/**
|
|
1649
|
+
* @default 'top'
|
|
1650
|
+
*/
|
|
1651
|
+
"placement"?: 'top' | 'bottom' | 'left' | 'right';
|
|
1652
|
+
/**
|
|
1653
|
+
* @default ''
|
|
1654
|
+
*/
|
|
1655
|
+
"text"?: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* Dark, or light with an arrow
|
|
1658
|
+
* @default 'dark'
|
|
1659
|
+
*/
|
|
1660
|
+
"theme"?: 'dark' | 'light';
|
|
1661
|
+
}
|
|
574
1662
|
|
|
575
1663
|
interface EvokeAlertAttributes {
|
|
576
1664
|
"type": 'info' | 'success' | 'warning' | 'danger';
|
|
1665
|
+
"appearance": 'subtle' | 'solid';
|
|
577
1666
|
"dismissible": boolean;
|
|
578
1667
|
}
|
|
1668
|
+
interface EvokeAppBarAttributes {
|
|
1669
|
+
"appearance": 'light' | 'dark';
|
|
1670
|
+
"sticky": boolean;
|
|
1671
|
+
"navLabel": string;
|
|
1672
|
+
}
|
|
1673
|
+
interface EvokeBadgeAttributes {
|
|
1674
|
+
"count": number;
|
|
1675
|
+
"max": number;
|
|
1676
|
+
"dot": boolean;
|
|
1677
|
+
"showZero": boolean;
|
|
1678
|
+
"color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'info';
|
|
1679
|
+
"label": string;
|
|
1680
|
+
}
|
|
579
1681
|
interface EvokeButtonAttributes {
|
|
580
|
-
"variant": 'primary' | 'secondary' | 'danger' | 'outline';
|
|
1682
|
+
"variant": 'primary' | 'secondary' | 'danger' | 'outline' | 'ghost';
|
|
1683
|
+
"size": 'sm' | 'md' | 'lg';
|
|
581
1684
|
"type": 'button' | 'submit' | 'reset';
|
|
582
1685
|
"disabled": boolean;
|
|
1686
|
+
"loading": boolean;
|
|
1687
|
+
"icon": EvokeIcon;
|
|
1688
|
+
"iconOnly": boolean;
|
|
1689
|
+
"accessibleLabel": string;
|
|
583
1690
|
"block": boolean;
|
|
584
1691
|
"buttonClass": string;
|
|
585
1692
|
}
|
|
586
1693
|
interface EvokeCardAttributes {
|
|
587
1694
|
"heading": string;
|
|
1695
|
+
"appearance": 'outlined' | 'elevated';
|
|
1696
|
+
"clickable": boolean;
|
|
588
1697
|
"cardClass": string;
|
|
589
1698
|
}
|
|
590
1699
|
interface EvokeCheckboxAttributes {
|
|
591
1700
|
"label": string;
|
|
592
1701
|
"checked": boolean;
|
|
1702
|
+
"indeterminate": boolean;
|
|
593
1703
|
"disabled": boolean;
|
|
594
1704
|
"error": string;
|
|
595
1705
|
"inputClass": string;
|
|
596
1706
|
}
|
|
1707
|
+
interface EvokeChipAttributes {
|
|
1708
|
+
"label": string;
|
|
1709
|
+
"selected": boolean;
|
|
1710
|
+
"removable": boolean;
|
|
1711
|
+
"disabled": boolean;
|
|
1712
|
+
}
|
|
597
1713
|
interface EvokeInputAttributes {
|
|
598
1714
|
"label": string;
|
|
599
1715
|
"value": string;
|
|
600
1716
|
"type": string;
|
|
1717
|
+
"name": string;
|
|
601
1718
|
"placeholder": string;
|
|
602
1719
|
"disabled": boolean;
|
|
1720
|
+
"required": boolean;
|
|
1721
|
+
"appearance": 'outlined' | 'filled';
|
|
603
1722
|
"error": string;
|
|
604
|
-
"
|
|
1723
|
+
"hint": string;
|
|
1724
|
+
"icon": EvokeIcon;
|
|
605
1725
|
"inputClass": string;
|
|
606
1726
|
}
|
|
607
1727
|
interface EvokeModalAttributes {
|
|
608
1728
|
"open": boolean;
|
|
609
1729
|
"heading": string;
|
|
1730
|
+
"position": 'center' | 'right';
|
|
1731
|
+
"size": 'sm' | 'md' | 'lg';
|
|
610
1732
|
"closeOnBackdrop": boolean;
|
|
611
1733
|
"modalClass": string;
|
|
612
1734
|
}
|
|
1735
|
+
interface EvokePaginationAttributes {
|
|
1736
|
+
"page": number;
|
|
1737
|
+
"total": number;
|
|
1738
|
+
"appearance": 'numbered' | 'compact';
|
|
1739
|
+
"disabled": boolean;
|
|
1740
|
+
}
|
|
1741
|
+
interface EvokeProgressAttributes {
|
|
1742
|
+
"type": 'linear' | 'circular';
|
|
1743
|
+
"value": number;
|
|
1744
|
+
"indeterminate": boolean;
|
|
1745
|
+
"label": string;
|
|
1746
|
+
"size": number;
|
|
1747
|
+
}
|
|
1748
|
+
interface EvokeQuantityStepperAttributes {
|
|
1749
|
+
"value": number;
|
|
1750
|
+
"min": number;
|
|
1751
|
+
"max": number;
|
|
1752
|
+
"appearance": 'inline' | 'compact';
|
|
1753
|
+
"disabled": boolean;
|
|
1754
|
+
"label": string;
|
|
1755
|
+
}
|
|
613
1756
|
interface EvokeRadioGroupAttributes {
|
|
614
1757
|
"label": string;
|
|
615
1758
|
"options": EvokeOption[] | string;
|
|
616
1759
|
"value": string;
|
|
617
1760
|
"name": string;
|
|
618
1761
|
"disabled": boolean;
|
|
1762
|
+
"appearance": 'classic' | 'segmented';
|
|
619
1763
|
"inline": boolean;
|
|
620
1764
|
"error": string;
|
|
621
1765
|
}
|
|
622
1766
|
interface EvokeSelectAttributes {
|
|
623
1767
|
"label": string;
|
|
624
1768
|
"options": EvokeOption[] | string;
|
|
625
|
-
"value": string;
|
|
1769
|
+
"value": string | string[];
|
|
626
1770
|
"placeholder": string;
|
|
1771
|
+
"multiple": boolean;
|
|
1772
|
+
"searchable": boolean;
|
|
627
1773
|
"disabled": boolean;
|
|
628
1774
|
"error": string;
|
|
1775
|
+
"hint": string;
|
|
629
1776
|
"selectClass": string;
|
|
630
1777
|
}
|
|
1778
|
+
interface EvokeSwitchAttributes {
|
|
1779
|
+
"checked": boolean;
|
|
1780
|
+
"label": string;
|
|
1781
|
+
"description": string;
|
|
1782
|
+
"disabled": boolean;
|
|
1783
|
+
"accessibleLabel": string;
|
|
1784
|
+
}
|
|
1785
|
+
interface EvokeTableAttributes {
|
|
1786
|
+
"columns": { key: string; label: string; sortable?: boolean; align?: 'left' | 'center' | 'right' }[] | string;
|
|
1787
|
+
"rows": Record<string, string | number | boolean | null>[] | string;
|
|
1788
|
+
"striped": boolean;
|
|
1789
|
+
"sortable": boolean;
|
|
1790
|
+
"caption": string;
|
|
1791
|
+
"emptyText": string;
|
|
1792
|
+
}
|
|
1793
|
+
interface EvokeTabsAttributes {
|
|
1794
|
+
"options": EvokeOption[] | string;
|
|
1795
|
+
"value": string;
|
|
1796
|
+
"appearance": 'underline' | 'pill';
|
|
1797
|
+
"label": string;
|
|
1798
|
+
}
|
|
1799
|
+
interface EvokeTextareaAttributes {
|
|
1800
|
+
"label": string;
|
|
1801
|
+
"value": string;
|
|
1802
|
+
"name": string;
|
|
1803
|
+
"placeholder": string;
|
|
1804
|
+
"rows": number;
|
|
1805
|
+
"autoGrow": boolean;
|
|
1806
|
+
"maxLength": number;
|
|
1807
|
+
"disabled": boolean;
|
|
1808
|
+
"required": boolean;
|
|
1809
|
+
"error": string;
|
|
1810
|
+
"hint": string;
|
|
1811
|
+
"textareaClass": string;
|
|
1812
|
+
}
|
|
1813
|
+
interface EvokeToastAttributes {
|
|
1814
|
+
"open": boolean;
|
|
1815
|
+
"message": string;
|
|
1816
|
+
"type": 'info' | 'success' | 'warning' | 'danger';
|
|
1817
|
+
"action": string;
|
|
1818
|
+
"duration": number;
|
|
1819
|
+
"position": 'bottom' | 'top';
|
|
1820
|
+
}
|
|
1821
|
+
interface EvokeTooltipAttributes {
|
|
1822
|
+
"text": string;
|
|
1823
|
+
"placement": 'top' | 'bottom' | 'left' | 'right';
|
|
1824
|
+
"theme": 'dark' | 'light';
|
|
1825
|
+
}
|
|
631
1826
|
|
|
632
1827
|
interface IntrinsicElements {
|
|
633
1828
|
"evoke-alert": Omit<EvokeAlert, keyof EvokeAlertAttributes> & { [K in keyof EvokeAlert & keyof EvokeAlertAttributes]?: EvokeAlert[K] } & { [K in keyof EvokeAlert & keyof EvokeAlertAttributes as `attr:${K}`]?: EvokeAlertAttributes[K] } & { [K in keyof EvokeAlert & keyof EvokeAlertAttributes as `prop:${K}`]?: EvokeAlert[K] };
|
|
1829
|
+
"evoke-app-bar": Omit<EvokeAppBar, keyof EvokeAppBarAttributes> & { [K in keyof EvokeAppBar & keyof EvokeAppBarAttributes]?: EvokeAppBar[K] } & { [K in keyof EvokeAppBar & keyof EvokeAppBarAttributes as `attr:${K}`]?: EvokeAppBarAttributes[K] } & { [K in keyof EvokeAppBar & keyof EvokeAppBarAttributes as `prop:${K}`]?: EvokeAppBar[K] };
|
|
1830
|
+
"evoke-badge": Omit<EvokeBadge, keyof EvokeBadgeAttributes> & { [K in keyof EvokeBadge & keyof EvokeBadgeAttributes]?: EvokeBadge[K] } & { [K in keyof EvokeBadge & keyof EvokeBadgeAttributes as `attr:${K}`]?: EvokeBadgeAttributes[K] } & { [K in keyof EvokeBadge & keyof EvokeBadgeAttributes as `prop:${K}`]?: EvokeBadge[K] };
|
|
634
1831
|
"evoke-button": Omit<EvokeButton, keyof EvokeButtonAttributes> & { [K in keyof EvokeButton & keyof EvokeButtonAttributes]?: EvokeButton[K] } & { [K in keyof EvokeButton & keyof EvokeButtonAttributes as `attr:${K}`]?: EvokeButtonAttributes[K] } & { [K in keyof EvokeButton & keyof EvokeButtonAttributes as `prop:${K}`]?: EvokeButton[K] };
|
|
635
1832
|
"evoke-card": Omit<EvokeCard, keyof EvokeCardAttributes> & { [K in keyof EvokeCard & keyof EvokeCardAttributes]?: EvokeCard[K] } & { [K in keyof EvokeCard & keyof EvokeCardAttributes as `attr:${K}`]?: EvokeCardAttributes[K] } & { [K in keyof EvokeCard & keyof EvokeCardAttributes as `prop:${K}`]?: EvokeCard[K] };
|
|
636
1833
|
"evoke-checkbox": Omit<EvokeCheckbox, keyof EvokeCheckboxAttributes> & { [K in keyof EvokeCheckbox & keyof EvokeCheckboxAttributes]?: EvokeCheckbox[K] } & { [K in keyof EvokeCheckbox & keyof EvokeCheckboxAttributes as `attr:${K}`]?: EvokeCheckboxAttributes[K] } & { [K in keyof EvokeCheckbox & keyof EvokeCheckboxAttributes as `prop:${K}`]?: EvokeCheckbox[K] };
|
|
1834
|
+
"evoke-chip": Omit<EvokeChip, keyof EvokeChipAttributes> & { [K in keyof EvokeChip & keyof EvokeChipAttributes]?: EvokeChip[K] } & { [K in keyof EvokeChip & keyof EvokeChipAttributes as `attr:${K}`]?: EvokeChipAttributes[K] } & { [K in keyof EvokeChip & keyof EvokeChipAttributes as `prop:${K}`]?: EvokeChip[K] };
|
|
637
1835
|
"evoke-input": Omit<EvokeInput, keyof EvokeInputAttributes> & { [K in keyof EvokeInput & keyof EvokeInputAttributes]?: EvokeInput[K] } & { [K in keyof EvokeInput & keyof EvokeInputAttributes as `attr:${K}`]?: EvokeInputAttributes[K] } & { [K in keyof EvokeInput & keyof EvokeInputAttributes as `prop:${K}`]?: EvokeInput[K] };
|
|
638
1836
|
"evoke-modal": Omit<EvokeModal, keyof EvokeModalAttributes> & { [K in keyof EvokeModal & keyof EvokeModalAttributes]?: EvokeModal[K] } & { [K in keyof EvokeModal & keyof EvokeModalAttributes as `attr:${K}`]?: EvokeModalAttributes[K] } & { [K in keyof EvokeModal & keyof EvokeModalAttributes as `prop:${K}`]?: EvokeModal[K] };
|
|
1837
|
+
"evoke-pagination": Omit<EvokePagination, keyof EvokePaginationAttributes> & { [K in keyof EvokePagination & keyof EvokePaginationAttributes]?: EvokePagination[K] } & { [K in keyof EvokePagination & keyof EvokePaginationAttributes as `attr:${K}`]?: EvokePaginationAttributes[K] } & { [K in keyof EvokePagination & keyof EvokePaginationAttributes as `prop:${K}`]?: EvokePagination[K] };
|
|
1838
|
+
"evoke-progress": Omit<EvokeProgress, keyof EvokeProgressAttributes> & { [K in keyof EvokeProgress & keyof EvokeProgressAttributes]?: EvokeProgress[K] } & { [K in keyof EvokeProgress & keyof EvokeProgressAttributes as `attr:${K}`]?: EvokeProgressAttributes[K] } & { [K in keyof EvokeProgress & keyof EvokeProgressAttributes as `prop:${K}`]?: EvokeProgress[K] };
|
|
1839
|
+
"evoke-quantity-stepper": Omit<EvokeQuantityStepper, keyof EvokeQuantityStepperAttributes> & { [K in keyof EvokeQuantityStepper & keyof EvokeQuantityStepperAttributes]?: EvokeQuantityStepper[K] } & { [K in keyof EvokeQuantityStepper & keyof EvokeQuantityStepperAttributes as `attr:${K}`]?: EvokeQuantityStepperAttributes[K] } & { [K in keyof EvokeQuantityStepper & keyof EvokeQuantityStepperAttributes as `prop:${K}`]?: EvokeQuantityStepper[K] };
|
|
639
1840
|
"evoke-radio-group": Omit<EvokeRadioGroup, keyof EvokeRadioGroupAttributes> & { [K in keyof EvokeRadioGroup & keyof EvokeRadioGroupAttributes]?: EvokeRadioGroup[K] } & { [K in keyof EvokeRadioGroup & keyof EvokeRadioGroupAttributes as `attr:${K}`]?: EvokeRadioGroupAttributes[K] } & { [K in keyof EvokeRadioGroup & keyof EvokeRadioGroupAttributes as `prop:${K}`]?: EvokeRadioGroup[K] };
|
|
640
1841
|
"evoke-select": Omit<EvokeSelect, keyof EvokeSelectAttributes> & { [K in keyof EvokeSelect & keyof EvokeSelectAttributes]?: EvokeSelect[K] } & { [K in keyof EvokeSelect & keyof EvokeSelectAttributes as `attr:${K}`]?: EvokeSelectAttributes[K] } & { [K in keyof EvokeSelect & keyof EvokeSelectAttributes as `prop:${K}`]?: EvokeSelect[K] };
|
|
1842
|
+
"evoke-switch": Omit<EvokeSwitch, keyof EvokeSwitchAttributes> & { [K in keyof EvokeSwitch & keyof EvokeSwitchAttributes]?: EvokeSwitch[K] } & { [K in keyof EvokeSwitch & keyof EvokeSwitchAttributes as `attr:${K}`]?: EvokeSwitchAttributes[K] } & { [K in keyof EvokeSwitch & keyof EvokeSwitchAttributes as `prop:${K}`]?: EvokeSwitch[K] };
|
|
1843
|
+
"evoke-table": Omit<EvokeTable, keyof EvokeTableAttributes> & { [K in keyof EvokeTable & keyof EvokeTableAttributes]?: EvokeTable[K] } & { [K in keyof EvokeTable & keyof EvokeTableAttributes as `attr:${K}`]?: EvokeTableAttributes[K] } & { [K in keyof EvokeTable & keyof EvokeTableAttributes as `prop:${K}`]?: EvokeTable[K] };
|
|
1844
|
+
"evoke-tabs": Omit<EvokeTabs, keyof EvokeTabsAttributes> & { [K in keyof EvokeTabs & keyof EvokeTabsAttributes]?: EvokeTabs[K] } & { [K in keyof EvokeTabs & keyof EvokeTabsAttributes as `attr:${K}`]?: EvokeTabsAttributes[K] } & { [K in keyof EvokeTabs & keyof EvokeTabsAttributes as `prop:${K}`]?: EvokeTabs[K] };
|
|
1845
|
+
"evoke-textarea": Omit<EvokeTextarea, keyof EvokeTextareaAttributes> & { [K in keyof EvokeTextarea & keyof EvokeTextareaAttributes]?: EvokeTextarea[K] } & { [K in keyof EvokeTextarea & keyof EvokeTextareaAttributes as `attr:${K}`]?: EvokeTextareaAttributes[K] } & { [K in keyof EvokeTextarea & keyof EvokeTextareaAttributes as `prop:${K}`]?: EvokeTextarea[K] };
|
|
1846
|
+
"evoke-toast": Omit<EvokeToast, keyof EvokeToastAttributes> & { [K in keyof EvokeToast & keyof EvokeToastAttributes]?: EvokeToast[K] } & { [K in keyof EvokeToast & keyof EvokeToastAttributes as `attr:${K}`]?: EvokeToastAttributes[K] } & { [K in keyof EvokeToast & keyof EvokeToastAttributes as `prop:${K}`]?: EvokeToast[K] };
|
|
1847
|
+
"evoke-tooltip": Omit<EvokeTooltip, keyof EvokeTooltipAttributes> & { [K in keyof EvokeTooltip & keyof EvokeTooltipAttributes]?: EvokeTooltip[K] } & { [K in keyof EvokeTooltip & keyof EvokeTooltipAttributes as `attr:${K}`]?: EvokeTooltipAttributes[K] } & { [K in keyof EvokeTooltip & keyof EvokeTooltipAttributes as `prop:${K}`]?: EvokeTooltip[K] };
|
|
641
1848
|
}
|
|
642
1849
|
}
|
|
643
1850
|
export { LocalJSX as JSX };
|
|
@@ -645,13 +1852,25 @@ declare module "@stencil/core" {
|
|
|
645
1852
|
export namespace JSX {
|
|
646
1853
|
interface IntrinsicElements {
|
|
647
1854
|
"evoke-alert": LocalJSX.IntrinsicElements["evoke-alert"] & JSXBase.HTMLAttributes<HTMLEvokeAlertElement>;
|
|
1855
|
+
"evoke-app-bar": LocalJSX.IntrinsicElements["evoke-app-bar"] & JSXBase.HTMLAttributes<HTMLEvokeAppBarElement>;
|
|
1856
|
+
"evoke-badge": LocalJSX.IntrinsicElements["evoke-badge"] & JSXBase.HTMLAttributes<HTMLEvokeBadgeElement>;
|
|
648
1857
|
"evoke-button": LocalJSX.IntrinsicElements["evoke-button"] & JSXBase.HTMLAttributes<HTMLEvokeButtonElement>;
|
|
649
1858
|
"evoke-card": LocalJSX.IntrinsicElements["evoke-card"] & JSXBase.HTMLAttributes<HTMLEvokeCardElement>;
|
|
650
1859
|
"evoke-checkbox": LocalJSX.IntrinsicElements["evoke-checkbox"] & JSXBase.HTMLAttributes<HTMLEvokeCheckboxElement>;
|
|
1860
|
+
"evoke-chip": LocalJSX.IntrinsicElements["evoke-chip"] & JSXBase.HTMLAttributes<HTMLEvokeChipElement>;
|
|
651
1861
|
"evoke-input": LocalJSX.IntrinsicElements["evoke-input"] & JSXBase.HTMLAttributes<HTMLEvokeInputElement>;
|
|
652
1862
|
"evoke-modal": LocalJSX.IntrinsicElements["evoke-modal"] & JSXBase.HTMLAttributes<HTMLEvokeModalElement>;
|
|
1863
|
+
"evoke-pagination": LocalJSX.IntrinsicElements["evoke-pagination"] & JSXBase.HTMLAttributes<HTMLEvokePaginationElement>;
|
|
1864
|
+
"evoke-progress": LocalJSX.IntrinsicElements["evoke-progress"] & JSXBase.HTMLAttributes<HTMLEvokeProgressElement>;
|
|
1865
|
+
"evoke-quantity-stepper": LocalJSX.IntrinsicElements["evoke-quantity-stepper"] & JSXBase.HTMLAttributes<HTMLEvokeQuantityStepperElement>;
|
|
653
1866
|
"evoke-radio-group": LocalJSX.IntrinsicElements["evoke-radio-group"] & JSXBase.HTMLAttributes<HTMLEvokeRadioGroupElement>;
|
|
654
1867
|
"evoke-select": LocalJSX.IntrinsicElements["evoke-select"] & JSXBase.HTMLAttributes<HTMLEvokeSelectElement>;
|
|
1868
|
+
"evoke-switch": LocalJSX.IntrinsicElements["evoke-switch"] & JSXBase.HTMLAttributes<HTMLEvokeSwitchElement>;
|
|
1869
|
+
"evoke-table": LocalJSX.IntrinsicElements["evoke-table"] & JSXBase.HTMLAttributes<HTMLEvokeTableElement>;
|
|
1870
|
+
"evoke-tabs": LocalJSX.IntrinsicElements["evoke-tabs"] & JSXBase.HTMLAttributes<HTMLEvokeTabsElement>;
|
|
1871
|
+
"evoke-textarea": LocalJSX.IntrinsicElements["evoke-textarea"] & JSXBase.HTMLAttributes<HTMLEvokeTextareaElement>;
|
|
1872
|
+
"evoke-toast": LocalJSX.IntrinsicElements["evoke-toast"] & JSXBase.HTMLAttributes<HTMLEvokeToastElement>;
|
|
1873
|
+
"evoke-tooltip": LocalJSX.IntrinsicElements["evoke-tooltip"] & JSXBase.HTMLAttributes<HTMLEvokeTooltipElement>;
|
|
655
1874
|
}
|
|
656
1875
|
}
|
|
657
1876
|
}
|