@evoke-tech/stencil-ui-kit 0.0.0-stage → 0.1.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.
Files changed (87) hide show
  1. package/README.md +214 -2
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  3. package/dist/cjs/evoke-alert_6.cjs.entry.js +172 -0
  4. package/dist/cjs/evoke-card.cjs.entry.js +20 -0
  5. package/dist/cjs/evoke-modal.cjs.entry.js +34 -0
  6. package/dist/cjs/evoke-ui.cjs.js +25 -0
  7. package/dist/cjs/index-B8xS0y1i.js +1989 -0
  8. package/dist/cjs/index.cjs.js +2 -0
  9. package/dist/cjs/loader.cjs.js +13 -0
  10. package/dist/collection/collection-manifest.json +20 -0
  11. package/dist/collection/components/evoke-alert/evoke-alert.css +7 -0
  12. package/dist/collection/components/evoke-alert/evoke-alert.js +83 -0
  13. package/dist/collection/components/evoke-button/evoke-button.css +17 -0
  14. package/dist/collection/components/evoke-button/evoke-button.js +131 -0
  15. package/dist/collection/components/evoke-card/evoke-card.css +4 -0
  16. package/dist/collection/components/evoke-card/evoke-card.js +66 -0
  17. package/dist/collection/components/evoke-checkbox/evoke-checkbox.css +16 -0
  18. package/dist/collection/components/evoke-checkbox/evoke-checkbox.js +151 -0
  19. package/dist/collection/components/evoke-input/evoke-input.css +17 -0
  20. package/dist/collection/components/evoke-input/evoke-input.js +234 -0
  21. package/dist/collection/components/evoke-modal/evoke-modal.css +5 -0
  22. package/dist/collection/components/evoke-modal/evoke-modal.js +146 -0
  23. package/dist/collection/components/evoke-radio-group/evoke-radio-group.css +16 -0
  24. package/dist/collection/components/evoke-radio-group/evoke-radio-group.js +207 -0
  25. package/dist/collection/components/evoke-select/evoke-select.css +16 -0
  26. package/dist/collection/components/evoke-select/evoke-select.js +203 -0
  27. package/dist/collection/index.js +1 -0
  28. package/dist/collection/utils/options.js +12 -0
  29. package/dist/components/evoke-alert.d.ts +11 -0
  30. package/dist/components/evoke-alert.js +1 -0
  31. package/dist/components/evoke-button.d.ts +11 -0
  32. package/dist/components/evoke-button.js +1 -0
  33. package/dist/components/evoke-card.d.ts +11 -0
  34. package/dist/components/evoke-card.js +1 -0
  35. package/dist/components/evoke-checkbox.d.ts +11 -0
  36. package/dist/components/evoke-checkbox.js +1 -0
  37. package/dist/components/evoke-input.d.ts +11 -0
  38. package/dist/components/evoke-input.js +1 -0
  39. package/dist/components/evoke-modal.d.ts +11 -0
  40. package/dist/components/evoke-modal.js +1 -0
  41. package/dist/components/evoke-radio-group.d.ts +11 -0
  42. package/dist/components/evoke-radio-group.js +1 -0
  43. package/dist/components/evoke-select.d.ts +11 -0
  44. package/dist/components/evoke-select.js +1 -0
  45. package/dist/components/index.d.ts +35 -0
  46. package/dist/components/index.js +1 -0
  47. package/dist/components/options.js +1 -0
  48. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  49. package/dist/esm/evoke-alert_6.entry.js +165 -0
  50. package/dist/esm/evoke-card.entry.js +18 -0
  51. package/dist/esm/evoke-modal.entry.js +32 -0
  52. package/dist/esm/evoke-ui.js +21 -0
  53. package/dist/esm/index-BtM1wZ-I.js +1982 -0
  54. package/dist/esm/index.js +1 -0
  55. package/dist/esm/loader.js +11 -0
  56. package/dist/evoke-ui/evoke-ui.css +1 -0
  57. package/dist/evoke-ui/evoke-ui.esm.js +1 -0
  58. package/dist/evoke-ui/index.esm.js +0 -0
  59. package/dist/evoke-ui/p-243075cd.entry.js +1 -0
  60. package/dist/evoke-ui/p-605d4757.entry.js +1 -0
  61. package/dist/evoke-ui/p-9a6eaeb6.entry.js +1 -0
  62. package/dist/evoke-ui/p-BtM1wZ-I.js +3 -0
  63. package/dist/evoke-ui/p-DQuL1Twl.js +1 -0
  64. package/dist/index.cjs.js +1 -0
  65. package/dist/index.js +1 -0
  66. package/dist/themes/bootstrap.css +23 -0
  67. package/dist/themes/material.css +21 -0
  68. package/dist/themes/tailwind.css +24 -0
  69. package/dist/themes/tokens.css +26 -0
  70. package/dist/types/components/evoke-alert/evoke-alert.d.ts +8 -0
  71. package/dist/types/components/evoke-button/evoke-button.d.ts +11 -0
  72. package/dist/types/components/evoke-card/evoke-card.d.ts +6 -0
  73. package/dist/types/components/evoke-checkbox/evoke-checkbox.d.ts +13 -0
  74. package/dist/types/components/evoke-input/evoke-input.d.ts +19 -0
  75. package/dist/types/components/evoke-modal/evoke-modal.d.ts +14 -0
  76. package/dist/types/components/evoke-radio-group/evoke-radio-group.d.ts +18 -0
  77. package/dist/types/components/evoke-select/evoke-select.d.ts +18 -0
  78. package/dist/types/components.d.ts +657 -0
  79. package/dist/types/index.d.ts +2 -0
  80. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  81. package/dist/types/utils/options.d.ts +7 -0
  82. package/loader/cdn.js +1 -0
  83. package/loader/index.cjs.js +1 -0
  84. package/loader/index.d.ts +24 -0
  85. package/loader/index.es2017.js +1 -0
  86. package/loader/index.js +2 -0
  87. package/package.json +58 -4
@@ -0,0 +1,657 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { EvokeOption } from "./utils/options";
9
+ export { EvokeOption } from "./utils/options";
10
+ export namespace Components {
11
+ interface EvokeAlert {
12
+ /**
13
+ * @default false
14
+ */
15
+ "dismissible": boolean;
16
+ /**
17
+ * @default 'info'
18
+ */
19
+ "type": 'info' | 'success' | 'warning' | 'danger';
20
+ }
21
+ interface EvokeButton {
22
+ /**
23
+ * Stretch to the full width of the container
24
+ * @default false
25
+ */
26
+ "block": boolean;
27
+ /**
28
+ * Extra classes for the inner <button>, e.g. "btn btn-lg" (Bootstrap) or "shadow-lg" (Tailwind)
29
+ * @default ''
30
+ */
31
+ "buttonClass": string;
32
+ /**
33
+ * @default false
34
+ */
35
+ "disabled": boolean;
36
+ /**
37
+ * @default 'button'
38
+ */
39
+ "type": 'button' | 'submit' | 'reset';
40
+ /**
41
+ * Visual variant
42
+ * @default 'primary'
43
+ */
44
+ "variant": 'primary' | 'secondary' | 'danger' | 'outline';
45
+ }
46
+ interface EvokeCard {
47
+ /**
48
+ * Extra classes for the card container, e.g. "shadow-md" (Tailwind) or "card" (Bootstrap)
49
+ * @default ''
50
+ */
51
+ "cardClass": string;
52
+ /**
53
+ * @default ''
54
+ */
55
+ "heading": string;
56
+ }
57
+ interface EvokeCheckbox {
58
+ /**
59
+ * @default false
60
+ */
61
+ "checked": boolean;
62
+ /**
63
+ * @default false
64
+ */
65
+ "disabled": boolean;
66
+ /**
67
+ * Error message shown below the checkbox
68
+ * @default ''
69
+ */
70
+ "error": string;
71
+ /**
72
+ * Extra classes for the inner <input>
73
+ * @default ''
74
+ */
75
+ "inputClass": string;
76
+ /**
77
+ * @default ''
78
+ */
79
+ "label": string;
80
+ }
81
+ interface EvokeInput {
82
+ /**
83
+ * @default false
84
+ */
85
+ "disabled": boolean;
86
+ /**
87
+ * @default ''
88
+ */
89
+ "error": string;
90
+ /**
91
+ * Optional leading icon
92
+ */
93
+ "icon"?: 'mail' | 'lock' | 'user' | 'search';
94
+ /**
95
+ * Extra classes for the inner <input>, e.g. "form-control" (Bootstrap)
96
+ * @default ''
97
+ */
98
+ "inputClass": string;
99
+ /**
100
+ * @default ''
101
+ */
102
+ "label": string;
103
+ /**
104
+ * @default ''
105
+ */
106
+ "placeholder": string;
107
+ /**
108
+ * @default 'text'
109
+ */
110
+ "type": string;
111
+ /**
112
+ * @default ''
113
+ */
114
+ "value": string;
115
+ }
116
+ interface EvokeModal {
117
+ /**
118
+ * @default true
119
+ */
120
+ "closeOnBackdrop": boolean;
121
+ /**
122
+ * @default ''
123
+ */
124
+ "heading": string;
125
+ /**
126
+ * Extra classes for the dialog panel
127
+ * @default ''
128
+ */
129
+ "modalClass": string;
130
+ /**
131
+ * Whether the modal is visible
132
+ * @default false
133
+ */
134
+ "open": boolean;
135
+ }
136
+ interface EvokeRadioGroup {
137
+ /**
138
+ * @default false
139
+ */
140
+ "disabled": boolean;
141
+ /**
142
+ * Error message shown below the group
143
+ * @default ''
144
+ */
145
+ "error": string;
146
+ /**
147
+ * Lay options out in a row instead of a column
148
+ * @default false
149
+ */
150
+ "inline": boolean;
151
+ /**
152
+ * @default ''
153
+ */
154
+ "label": string;
155
+ /**
156
+ * @default ''
157
+ */
158
+ "name": string;
159
+ /**
160
+ * Options as an array of { label, value, disabled? } or a JSON string of the same
161
+ * @default []
162
+ */
163
+ "options": EvokeOption[] | string;
164
+ /**
165
+ * @default ''
166
+ */
167
+ "value": string;
168
+ }
169
+ interface EvokeSelect {
170
+ /**
171
+ * @default false
172
+ */
173
+ "disabled": boolean;
174
+ /**
175
+ * Error message shown below the field
176
+ * @default ''
177
+ */
178
+ "error": string;
179
+ /**
180
+ * @default ''
181
+ */
182
+ "label": string;
183
+ /**
184
+ * Options as an array of { label, value, disabled? } or a JSON string of the same
185
+ * @default []
186
+ */
187
+ "options": EvokeOption[] | string;
188
+ /**
189
+ * @default 'Select an option'
190
+ */
191
+ "placeholder": string;
192
+ /**
193
+ * Extra classes for the inner <select>, e.g. "form-select" (Bootstrap)
194
+ * @default ''
195
+ */
196
+ "selectClass": string;
197
+ /**
198
+ * @default ''
199
+ */
200
+ "value": string;
201
+ }
202
+ }
203
+ export interface EvokeAlertCustomEvent<T> extends CustomEvent<T> {
204
+ detail: T;
205
+ target: HTMLEvokeAlertElement;
206
+ }
207
+ export interface EvokeCheckboxCustomEvent<T> extends CustomEvent<T> {
208
+ detail: T;
209
+ target: HTMLEvokeCheckboxElement;
210
+ }
211
+ export interface EvokeInputCustomEvent<T> extends CustomEvent<T> {
212
+ detail: T;
213
+ target: HTMLEvokeInputElement;
214
+ }
215
+ export interface EvokeModalCustomEvent<T> extends CustomEvent<T> {
216
+ detail: T;
217
+ target: HTMLEvokeModalElement;
218
+ }
219
+ export interface EvokeRadioGroupCustomEvent<T> extends CustomEvent<T> {
220
+ detail: T;
221
+ target: HTMLEvokeRadioGroupElement;
222
+ }
223
+ export interface EvokeSelectCustomEvent<T> extends CustomEvent<T> {
224
+ detail: T;
225
+ target: HTMLEvokeSelectElement;
226
+ }
227
+ declare global {
228
+ interface HTMLEvokeAlertElementEventMap {
229
+ "evokeDismiss": void;
230
+ }
231
+ interface HTMLEvokeAlertElement extends Components.EvokeAlert, HTMLStencilElement {
232
+ addEventListener<K extends keyof HTMLEvokeAlertElementEventMap>(type: K, listener: (this: HTMLEvokeAlertElement, ev: EvokeAlertCustomEvent<HTMLEvokeAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
233
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
234
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
235
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
236
+ removeEventListener<K extends keyof HTMLEvokeAlertElementEventMap>(type: K, listener: (this: HTMLEvokeAlertElement, ev: EvokeAlertCustomEvent<HTMLEvokeAlertElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
237
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
238
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
239
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
240
+ }
241
+ var HTMLEvokeAlertElement: {
242
+ prototype: HTMLEvokeAlertElement;
243
+ new (): HTMLEvokeAlertElement;
244
+ };
245
+ interface HTMLEvokeButtonElement extends Components.EvokeButton, HTMLStencilElement {
246
+ }
247
+ var HTMLEvokeButtonElement: {
248
+ prototype: HTMLEvokeButtonElement;
249
+ new (): HTMLEvokeButtonElement;
250
+ };
251
+ interface HTMLEvokeCardElement extends Components.EvokeCard, HTMLStencilElement {
252
+ }
253
+ var HTMLEvokeCardElement: {
254
+ prototype: HTMLEvokeCardElement;
255
+ new (): HTMLEvokeCardElement;
256
+ };
257
+ interface HTMLEvokeCheckboxElementEventMap {
258
+ "evokeChange": boolean;
259
+ }
260
+ interface HTMLEvokeCheckboxElement extends Components.EvokeCheckbox, HTMLStencilElement {
261
+ addEventListener<K extends keyof HTMLEvokeCheckboxElementEventMap>(type: K, listener: (this: HTMLEvokeCheckboxElement, ev: EvokeCheckboxCustomEvent<HTMLEvokeCheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
262
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
263
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
264
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
265
+ removeEventListener<K extends keyof HTMLEvokeCheckboxElementEventMap>(type: K, listener: (this: HTMLEvokeCheckboxElement, ev: EvokeCheckboxCustomEvent<HTMLEvokeCheckboxElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
266
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
267
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
268
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
269
+ }
270
+ var HTMLEvokeCheckboxElement: {
271
+ prototype: HTMLEvokeCheckboxElement;
272
+ new (): HTMLEvokeCheckboxElement;
273
+ };
274
+ interface HTMLEvokeInputElementEventMap {
275
+ "evokeInput": string;
276
+ "evokeChange": string;
277
+ }
278
+ interface HTMLEvokeInputElement extends Components.EvokeInput, HTMLStencilElement {
279
+ addEventListener<K extends keyof HTMLEvokeInputElementEventMap>(type: K, listener: (this: HTMLEvokeInputElement, ev: EvokeInputCustomEvent<HTMLEvokeInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
280
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
281
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
282
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
283
+ removeEventListener<K extends keyof HTMLEvokeInputElementEventMap>(type: K, listener: (this: HTMLEvokeInputElement, ev: EvokeInputCustomEvent<HTMLEvokeInputElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
284
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
285
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
286
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
287
+ }
288
+ var HTMLEvokeInputElement: {
289
+ prototype: HTMLEvokeInputElement;
290
+ new (): HTMLEvokeInputElement;
291
+ };
292
+ interface HTMLEvokeModalElementEventMap {
293
+ "evokeClose": void;
294
+ }
295
+ interface HTMLEvokeModalElement extends Components.EvokeModal, HTMLStencilElement {
296
+ addEventListener<K extends keyof HTMLEvokeModalElementEventMap>(type: K, listener: (this: HTMLEvokeModalElement, ev: EvokeModalCustomEvent<HTMLEvokeModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
297
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
298
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
299
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
300
+ removeEventListener<K extends keyof HTMLEvokeModalElementEventMap>(type: K, listener: (this: HTMLEvokeModalElement, ev: EvokeModalCustomEvent<HTMLEvokeModalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
301
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
302
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
303
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
304
+ }
305
+ var HTMLEvokeModalElement: {
306
+ prototype: HTMLEvokeModalElement;
307
+ new (): HTMLEvokeModalElement;
308
+ };
309
+ interface HTMLEvokeRadioGroupElementEventMap {
310
+ "evokeChange": string;
311
+ }
312
+ interface HTMLEvokeRadioGroupElement extends Components.EvokeRadioGroup, HTMLStencilElement {
313
+ addEventListener<K extends keyof HTMLEvokeRadioGroupElementEventMap>(type: K, listener: (this: HTMLEvokeRadioGroupElement, ev: EvokeRadioGroupCustomEvent<HTMLEvokeRadioGroupElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
314
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
315
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
316
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
317
+ removeEventListener<K extends keyof HTMLEvokeRadioGroupElementEventMap>(type: K, listener: (this: HTMLEvokeRadioGroupElement, ev: EvokeRadioGroupCustomEvent<HTMLEvokeRadioGroupElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
318
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
319
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
320
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
321
+ }
322
+ var HTMLEvokeRadioGroupElement: {
323
+ prototype: HTMLEvokeRadioGroupElement;
324
+ new (): HTMLEvokeRadioGroupElement;
325
+ };
326
+ interface HTMLEvokeSelectElementEventMap {
327
+ "evokeChange": string;
328
+ }
329
+ interface HTMLEvokeSelectElement extends Components.EvokeSelect, HTMLStencilElement {
330
+ addEventListener<K extends keyof HTMLEvokeSelectElementEventMap>(type: K, listener: (this: HTMLEvokeSelectElement, ev: EvokeSelectCustomEvent<HTMLEvokeSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
331
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
332
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
333
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
334
+ removeEventListener<K extends keyof HTMLEvokeSelectElementEventMap>(type: K, listener: (this: HTMLEvokeSelectElement, ev: EvokeSelectCustomEvent<HTMLEvokeSelectElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
335
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
336
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
337
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
338
+ }
339
+ var HTMLEvokeSelectElement: {
340
+ prototype: HTMLEvokeSelectElement;
341
+ new (): HTMLEvokeSelectElement;
342
+ };
343
+ interface HTMLElementTagNameMap {
344
+ "evoke-alert": HTMLEvokeAlertElement;
345
+ "evoke-button": HTMLEvokeButtonElement;
346
+ "evoke-card": HTMLEvokeCardElement;
347
+ "evoke-checkbox": HTMLEvokeCheckboxElement;
348
+ "evoke-input": HTMLEvokeInputElement;
349
+ "evoke-modal": HTMLEvokeModalElement;
350
+ "evoke-radio-group": HTMLEvokeRadioGroupElement;
351
+ "evoke-select": HTMLEvokeSelectElement;
352
+ }
353
+ }
354
+ declare namespace LocalJSX {
355
+ interface EvokeAlert {
356
+ /**
357
+ * @default false
358
+ */
359
+ "dismissible"?: boolean;
360
+ /**
361
+ * Fired when the dismiss button is clicked
362
+ */
363
+ "onEvokeDismiss"?: (event: EvokeAlertCustomEvent<void>) => void;
364
+ /**
365
+ * @default 'info'
366
+ */
367
+ "type"?: 'info' | 'success' | 'warning' | 'danger';
368
+ }
369
+ interface EvokeButton {
370
+ /**
371
+ * Stretch to the full width of the container
372
+ * @default false
373
+ */
374
+ "block"?: boolean;
375
+ /**
376
+ * Extra classes for the inner <button>, e.g. "btn btn-lg" (Bootstrap) or "shadow-lg" (Tailwind)
377
+ * @default ''
378
+ */
379
+ "buttonClass"?: string;
380
+ /**
381
+ * @default false
382
+ */
383
+ "disabled"?: boolean;
384
+ /**
385
+ * @default 'button'
386
+ */
387
+ "type"?: 'button' | 'submit' | 'reset';
388
+ /**
389
+ * Visual variant
390
+ * @default 'primary'
391
+ */
392
+ "variant"?: 'primary' | 'secondary' | 'danger' | 'outline';
393
+ }
394
+ interface EvokeCard {
395
+ /**
396
+ * Extra classes for the card container, e.g. "shadow-md" (Tailwind) or "card" (Bootstrap)
397
+ * @default ''
398
+ */
399
+ "cardClass"?: string;
400
+ /**
401
+ * @default ''
402
+ */
403
+ "heading"?: string;
404
+ }
405
+ interface EvokeCheckbox {
406
+ /**
407
+ * @default false
408
+ */
409
+ "checked"?: boolean;
410
+ /**
411
+ * @default false
412
+ */
413
+ "disabled"?: boolean;
414
+ /**
415
+ * Error message shown below the checkbox
416
+ * @default ''
417
+ */
418
+ "error"?: string;
419
+ /**
420
+ * Extra classes for the inner <input>
421
+ * @default ''
422
+ */
423
+ "inputClass"?: string;
424
+ /**
425
+ * @default ''
426
+ */
427
+ "label"?: string;
428
+ /**
429
+ * Emits the new checked state
430
+ */
431
+ "onEvokeChange"?: (event: EvokeCheckboxCustomEvent<boolean>) => void;
432
+ }
433
+ interface EvokeInput {
434
+ /**
435
+ * @default false
436
+ */
437
+ "disabled"?: boolean;
438
+ /**
439
+ * @default ''
440
+ */
441
+ "error"?: string;
442
+ /**
443
+ * Optional leading icon
444
+ */
445
+ "icon"?: 'mail' | 'lock' | 'user' | 'search';
446
+ /**
447
+ * Extra classes for the inner <input>, e.g. "form-control" (Bootstrap)
448
+ * @default ''
449
+ */
450
+ "inputClass"?: string;
451
+ /**
452
+ * @default ''
453
+ */
454
+ "label"?: string;
455
+ /**
456
+ * Emits the new value on commit (blur/enter)
457
+ */
458
+ "onEvokeChange"?: (event: EvokeInputCustomEvent<string>) => void;
459
+ /**
460
+ * Emits the new value on every keystroke
461
+ */
462
+ "onEvokeInput"?: (event: EvokeInputCustomEvent<string>) => void;
463
+ /**
464
+ * @default ''
465
+ */
466
+ "placeholder"?: string;
467
+ /**
468
+ * @default 'text'
469
+ */
470
+ "type"?: string;
471
+ /**
472
+ * @default ''
473
+ */
474
+ "value"?: string;
475
+ }
476
+ interface EvokeModal {
477
+ /**
478
+ * @default true
479
+ */
480
+ "closeOnBackdrop"?: boolean;
481
+ /**
482
+ * @default ''
483
+ */
484
+ "heading"?: string;
485
+ /**
486
+ * Extra classes for the dialog panel
487
+ * @default ''
488
+ */
489
+ "modalClass"?: string;
490
+ /**
491
+ * Fired when the modal requests to close (backdrop, Esc, or close button)
492
+ */
493
+ "onEvokeClose"?: (event: EvokeModalCustomEvent<void>) => void;
494
+ /**
495
+ * Whether the modal is visible
496
+ * @default false
497
+ */
498
+ "open"?: boolean;
499
+ }
500
+ interface EvokeRadioGroup {
501
+ /**
502
+ * @default false
503
+ */
504
+ "disabled"?: boolean;
505
+ /**
506
+ * Error message shown below the group
507
+ * @default ''
508
+ */
509
+ "error"?: string;
510
+ /**
511
+ * Lay options out in a row instead of a column
512
+ * @default false
513
+ */
514
+ "inline"?: boolean;
515
+ /**
516
+ * @default ''
517
+ */
518
+ "label"?: string;
519
+ /**
520
+ * @default ''
521
+ */
522
+ "name"?: string;
523
+ /**
524
+ * Emits the selected value
525
+ */
526
+ "onEvokeChange"?: (event: EvokeRadioGroupCustomEvent<string>) => void;
527
+ /**
528
+ * Options as an array of { label, value, disabled? } or a JSON string of the same
529
+ * @default []
530
+ */
531
+ "options"?: EvokeOption[] | string;
532
+ /**
533
+ * @default ''
534
+ */
535
+ "value"?: string;
536
+ }
537
+ interface EvokeSelect {
538
+ /**
539
+ * @default false
540
+ */
541
+ "disabled"?: boolean;
542
+ /**
543
+ * Error message shown below the field
544
+ * @default ''
545
+ */
546
+ "error"?: string;
547
+ /**
548
+ * @default ''
549
+ */
550
+ "label"?: string;
551
+ /**
552
+ * Emits the selected value
553
+ */
554
+ "onEvokeChange"?: (event: EvokeSelectCustomEvent<string>) => void;
555
+ /**
556
+ * Options as an array of { label, value, disabled? } or a JSON string of the same
557
+ * @default []
558
+ */
559
+ "options"?: EvokeOption[] | string;
560
+ /**
561
+ * @default 'Select an option'
562
+ */
563
+ "placeholder"?: string;
564
+ /**
565
+ * Extra classes for the inner <select>, e.g. "form-select" (Bootstrap)
566
+ * @default ''
567
+ */
568
+ "selectClass"?: string;
569
+ /**
570
+ * @default ''
571
+ */
572
+ "value"?: string;
573
+ }
574
+
575
+ interface EvokeAlertAttributes {
576
+ "type": 'info' | 'success' | 'warning' | 'danger';
577
+ "dismissible": boolean;
578
+ }
579
+ interface EvokeButtonAttributes {
580
+ "variant": 'primary' | 'secondary' | 'danger' | 'outline';
581
+ "type": 'button' | 'submit' | 'reset';
582
+ "disabled": boolean;
583
+ "block": boolean;
584
+ "buttonClass": string;
585
+ }
586
+ interface EvokeCardAttributes {
587
+ "heading": string;
588
+ "cardClass": string;
589
+ }
590
+ interface EvokeCheckboxAttributes {
591
+ "label": string;
592
+ "checked": boolean;
593
+ "disabled": boolean;
594
+ "error": string;
595
+ "inputClass": string;
596
+ }
597
+ interface EvokeInputAttributes {
598
+ "label": string;
599
+ "value": string;
600
+ "type": string;
601
+ "placeholder": string;
602
+ "disabled": boolean;
603
+ "error": string;
604
+ "icon": 'mail' | 'lock' | 'user' | 'search';
605
+ "inputClass": string;
606
+ }
607
+ interface EvokeModalAttributes {
608
+ "open": boolean;
609
+ "heading": string;
610
+ "closeOnBackdrop": boolean;
611
+ "modalClass": string;
612
+ }
613
+ interface EvokeRadioGroupAttributes {
614
+ "label": string;
615
+ "options": EvokeOption[] | string;
616
+ "value": string;
617
+ "name": string;
618
+ "disabled": boolean;
619
+ "inline": boolean;
620
+ "error": string;
621
+ }
622
+ interface EvokeSelectAttributes {
623
+ "label": string;
624
+ "options": EvokeOption[] | string;
625
+ "value": string;
626
+ "placeholder": string;
627
+ "disabled": boolean;
628
+ "error": string;
629
+ "selectClass": string;
630
+ }
631
+
632
+ interface IntrinsicElements {
633
+ "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] };
634
+ "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
+ "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
+ "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] };
637
+ "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
+ "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] };
639
+ "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
+ "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] };
641
+ }
642
+ }
643
+ export { LocalJSX as JSX };
644
+ declare module "@stencil/core" {
645
+ export namespace JSX {
646
+ interface IntrinsicElements {
647
+ "evoke-alert": LocalJSX.IntrinsicElements["evoke-alert"] & JSXBase.HTMLAttributes<HTMLEvokeAlertElement>;
648
+ "evoke-button": LocalJSX.IntrinsicElements["evoke-button"] & JSXBase.HTMLAttributes<HTMLEvokeButtonElement>;
649
+ "evoke-card": LocalJSX.IntrinsicElements["evoke-card"] & JSXBase.HTMLAttributes<HTMLEvokeCardElement>;
650
+ "evoke-checkbox": LocalJSX.IntrinsicElements["evoke-checkbox"] & JSXBase.HTMLAttributes<HTMLEvokeCheckboxElement>;
651
+ "evoke-input": LocalJSX.IntrinsicElements["evoke-input"] & JSXBase.HTMLAttributes<HTMLEvokeInputElement>;
652
+ "evoke-modal": LocalJSX.IntrinsicElements["evoke-modal"] & JSXBase.HTMLAttributes<HTMLEvokeModalElement>;
653
+ "evoke-radio-group": LocalJSX.IntrinsicElements["evoke-radio-group"] & JSXBase.HTMLAttributes<HTMLEvokeRadioGroupElement>;
654
+ "evoke-select": LocalJSX.IntrinsicElements["evoke-select"] & JSXBase.HTMLAttributes<HTMLEvokeSelectElement>;
655
+ }
656
+ }
657
+ }
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export type { EvokeOption } from './utils/options';