@sula-tech/webcomponents 0.2.0 → 0.3.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/dist/cjs/{index-3eac14f6.js → index-87eec792.js} +26 -3
- package/dist/cjs/index-87eec792.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{sula-avatar_4.cjs.entry.js → sula-avatar_9.cjs.entry.js} +526 -9
- package/dist/cjs/sula-avatar_9.cjs.entry.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/sula-badge/model/sula-badge.model.js +23 -0
- package/dist/collection/components/sula-badge/model/sula-badge.model.js.map +1 -0
- package/dist/collection/components/sula-badge/sula-badge.css +1 -0
- package/dist/collection/components/sula-badge/sula-badge.js +230 -0
- package/dist/collection/components/sula-badge/sula-badge.js.map +1 -0
- package/dist/collection/components/sula-badge/sula-badge.stories.js +148 -0
- package/dist/collection/components/sula-badge/sula-badge.stories.js.map +1 -0
- package/dist/collection/components/sula-button/sula-button.css +1 -1
- package/dist/collection/components/sula-button/sula-button.js +1 -1
- package/dist/collection/components/sula-checkbox/model/sula-checkbox.model.js +6 -0
- package/dist/collection/components/sula-checkbox/model/sula-checkbox.model.js.map +1 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.css +1 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.js +233 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.js.map +1 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js +113 -0
- package/dist/collection/components/sula-checkbox/sula-checkbox.stories.js.map +1 -0
- package/dist/collection/components/sula-icon/sula-icon.css +1 -1
- package/dist/collection/components/sula-icon/sula-icon.js +1 -1
- package/dist/collection/components/sula-icon/sula-icon.stories.js +1 -1
- package/dist/collection/components/sula-icon/sula-icon.stories.js.map +1 -1
- package/dist/collection/components/sula-switch/model/sula-switch.model.js +6 -0
- package/dist/collection/components/sula-switch/model/sula-switch.model.js.map +1 -0
- package/dist/collection/components/sula-switch/sula-switch.css +1 -0
- package/dist/collection/components/sula-switch/sula-switch.js +235 -0
- package/dist/collection/components/sula-switch/sula-switch.js.map +1 -0
- package/dist/collection/components/sula-switch/sula-switch.stories.js +111 -0
- package/dist/collection/components/sula-switch/sula-switch.stories.js.map +1 -0
- package/dist/collection/components/sula-tag/model/sula-tag.model.js +28 -0
- package/dist/collection/components/sula-tag/model/sula-tag.model.js.map +1 -0
- package/dist/collection/components/sula-tag/sula-tag.css +1 -0
- package/dist/collection/components/sula-tag/sula-tag.js +249 -0
- package/dist/collection/components/sula-tag/sula-tag.js.map +1 -0
- package/dist/collection/components/sula-tag/sula-tag.stories.js +201 -0
- package/dist/collection/components/sula-tag/sula-tag.stories.js.map +1 -0
- package/dist/collection/components/sula-textarea/model/sula-textarea.model.js +6 -0
- package/dist/collection/components/sula-textarea/model/sula-textarea.model.js.map +1 -0
- package/dist/collection/components/sula-textarea/sula-textarea.css +1 -0
- package/dist/collection/components/sula-textarea/sula-textarea.js +358 -0
- package/dist/collection/components/sula-textarea/sula-textarea.js.map +1 -0
- package/dist/collection/components/sula-textarea/sula-textarea.stories.js +138 -0
- package/dist/collection/components/sula-textarea/sula-textarea.stories.js.map +1 -0
- package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
- package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
- package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-a07ff261.js → p-048c28d3.js} +4 -4
- package/dist/components/{p-a07ff261.js.map → p-048c28d3.js.map} +1 -1
- package/dist/components/{p-ca146b16.js → p-881c6b35.js} +25 -3
- package/dist/components/p-881c6b35.js.map +1 -0
- package/dist/components/sula-avatar.js +2 -2
- package/dist/components/sula-badge.d.ts +11 -0
- package/dist/components/sula-badge.js +154 -0
- package/dist/components/sula-badge.js.map +1 -0
- package/dist/components/sula-button.js +4 -4
- package/dist/components/sula-button.js.map +1 -1
- package/dist/components/sula-checkbox.d.ts +11 -0
- package/dist/components/sula-checkbox.js +109 -0
- package/dist/components/sula-checkbox.js.map +1 -0
- package/dist/components/sula-icon.js +1 -1
- package/dist/components/sula-switch.d.ts +11 -0
- package/dist/components/sula-switch.js +105 -0
- package/dist/components/sula-switch.js.map +1 -0
- package/dist/components/sula-tag.d.ts +11 -0
- package/dist/components/sula-tag.js +157 -0
- package/dist/components/sula-tag.js.map +1 -0
- package/dist/components/sula-textarea.d.ts +11 -0
- package/dist/components/sula-textarea.js +166 -0
- package/dist/components/sula-textarea.js.map +1 -0
- package/dist/components/sula-textfield.js +5 -5
- package/dist/components/sula-textfield.js.map +1 -1
- package/dist/esm/{index-1dc4ae53.js → index-aa1c5f36.js} +26 -4
- package/dist/esm/index-aa1c5f36.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{sula-avatar_4.entry.js → sula-avatar_9.entry.js} +522 -10
- package/dist/esm/sula-avatar_9.entry.js.map +1 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/types/components/sula-badge/model/sula-badge.model.d.ts +19 -0
- package/dist/types/components/sula-badge/sula-badge.d.ts +33 -0
- package/dist/types/components/sula-badge/sula-badge.stories.d.ts +65 -0
- package/dist/types/components/sula-checkbox/model/sula-checkbox.model.d.ts +4 -0
- package/dist/types/components/sula-checkbox/sula-checkbox.d.ts +42 -0
- package/dist/types/components/sula-checkbox/sula-checkbox.stories.d.ts +73 -0
- package/dist/types/components/sula-switch/model/sula-switch.model.d.ts +4 -0
- package/dist/types/components/sula-switch/sula-switch.d.ts +41 -0
- package/dist/types/components/sula-switch/sula-switch.stories.d.ts +72 -0
- package/dist/types/components/sula-tag/model/sula-tag.model.d.ts +23 -0
- package/dist/types/components/sula-tag/sula-tag.d.ts +33 -0
- package/dist/types/components/sula-tag/sula-tag.stories.d.ts +82 -0
- package/dist/types/components/sula-textarea/model/sula-textarea.model.d.ts +4 -0
- package/dist/types/components/sula-textarea/sula-textarea.d.ts +65 -0
- package/dist/types/components/sula-textarea/sula-textarea.stories.d.ts +98 -0
- package/dist/types/components.d.ts +394 -0
- package/dist/webcomponents/{p-fbee9d79.js → p-5a36af0f.js} +272 -250
- package/dist/{esm/index-1dc4ae53.js.map → webcomponents/p-5a36af0f.js.map} +1 -1
- package/dist/webcomponents/{p-77709b3c.entry.js → p-89f57a33.entry.js} +761 -100
- package/dist/webcomponents/p-89f57a33.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +44 -3
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +36 -18
- package/dist/cjs/index-3eac14f6.js.map +0 -1
- package/dist/cjs/sula-avatar_4.cjs.entry.js.map +0 -1
- package/dist/components/p-ca146b16.js.map +0 -1
- package/dist/esm/sula-avatar_4.entry.js.map +0 -1
- package/dist/webcomponents/p-77709b3c.entry.js.map +0 -1
- package/dist/webcomponents/p-fbee9d79.js.map +0 -1
|
@@ -6,10 +6,20 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model";
|
|
9
|
+
import { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
9
10
|
import { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from "./components/sula-button/model/sula-button.model";
|
|
11
|
+
import { SulaCheckboxType } from "./components/sula-checkbox/model/sula-checkbox.model";
|
|
12
|
+
import { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
|
|
13
|
+
import { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
|
|
14
|
+
import { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
|
|
10
15
|
import { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
11
16
|
export { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model";
|
|
17
|
+
export { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
12
18
|
export { SulaButtonAppearance, SulaButtonSize, SulaButtonStatus, SulaButtonType } from "./components/sula-button/model/sula-button.model";
|
|
19
|
+
export { SulaCheckboxType } from "./components/sula-checkbox/model/sula-checkbox.model";
|
|
20
|
+
export { SulaSwitchType } from "./components/sula-switch/model/sula-switch.model";
|
|
21
|
+
export { SulaTagAppearance, SulaTagFontWeight, SulaTagIconStatus, SulaTagSize } from "./components/sula-tag/model/sula-tag.model";
|
|
22
|
+
export { SulaTextareaStatus } from "./components/sula-textarea/model/sula-textarea.model";
|
|
13
23
|
export { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
14
24
|
export namespace Components {
|
|
15
25
|
interface SulaAvatar {
|
|
@@ -30,6 +40,28 @@ export namespace Components {
|
|
|
30
40
|
*/
|
|
31
41
|
"text"?: string;
|
|
32
42
|
}
|
|
43
|
+
interface SulaBadge {
|
|
44
|
+
/**
|
|
45
|
+
* Badge icon
|
|
46
|
+
*/
|
|
47
|
+
"icon": string;
|
|
48
|
+
/**
|
|
49
|
+
* Badge size
|
|
50
|
+
*/
|
|
51
|
+
"size": SulaBadgeSize;
|
|
52
|
+
/**
|
|
53
|
+
* Badge status
|
|
54
|
+
*/
|
|
55
|
+
"status": SulaBadgeStatus;
|
|
56
|
+
/**
|
|
57
|
+
* Badge text
|
|
58
|
+
*/
|
|
59
|
+
"text": string;
|
|
60
|
+
/**
|
|
61
|
+
* Badge type
|
|
62
|
+
*/
|
|
63
|
+
"type": SulaBadgeType;
|
|
64
|
+
}
|
|
33
65
|
interface SulaButton {
|
|
34
66
|
/**
|
|
35
67
|
* Button appearance
|
|
@@ -64,6 +96,28 @@ export namespace Components {
|
|
|
64
96
|
*/
|
|
65
97
|
"type": SulaButtonType;
|
|
66
98
|
}
|
|
99
|
+
interface SulaCheckbox {
|
|
100
|
+
/**
|
|
101
|
+
* Is checkbox checked
|
|
102
|
+
*/
|
|
103
|
+
"checked": boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Is checbox disabled
|
|
106
|
+
*/
|
|
107
|
+
"disabled": boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Checkbox label
|
|
110
|
+
*/
|
|
111
|
+
"label"?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Checkbox sub title (avaible when is `list` type)
|
|
114
|
+
*/
|
|
115
|
+
"subTitle"?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Checkbox type
|
|
118
|
+
*/
|
|
119
|
+
"type": SulaCheckboxType;
|
|
120
|
+
}
|
|
67
121
|
interface SulaIcon {
|
|
68
122
|
/**
|
|
69
123
|
* Custom class to be applied to the icon
|
|
@@ -74,6 +128,88 @@ export namespace Components {
|
|
|
74
128
|
*/
|
|
75
129
|
"icon": string;
|
|
76
130
|
}
|
|
131
|
+
interface SulaSwitch {
|
|
132
|
+
/**
|
|
133
|
+
* Is switch active
|
|
134
|
+
*/
|
|
135
|
+
"active": boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Is switch disabled
|
|
138
|
+
*/
|
|
139
|
+
"disabled": boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Switch label
|
|
142
|
+
*/
|
|
143
|
+
"label"?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Switch sub title (avaible when is `list` type)
|
|
146
|
+
*/
|
|
147
|
+
"subTitle"?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Switch type
|
|
150
|
+
*/
|
|
151
|
+
"type": SulaSwitchType;
|
|
152
|
+
}
|
|
153
|
+
interface SulaTag {
|
|
154
|
+
/**
|
|
155
|
+
* Tag appearance
|
|
156
|
+
*/
|
|
157
|
+
"appearance": SulaTagAppearance;
|
|
158
|
+
/**
|
|
159
|
+
* Tag font weight
|
|
160
|
+
*/
|
|
161
|
+
"fontWeight": SulaTagFontWeight;
|
|
162
|
+
/**
|
|
163
|
+
* Tag icon
|
|
164
|
+
*/
|
|
165
|
+
"icon": string;
|
|
166
|
+
/**
|
|
167
|
+
* Tag icon status
|
|
168
|
+
*/
|
|
169
|
+
"iconStatus": SulaTagIconStatus;
|
|
170
|
+
/**
|
|
171
|
+
* Tag label
|
|
172
|
+
*/
|
|
173
|
+
"label": string;
|
|
174
|
+
/**
|
|
175
|
+
* Tag size
|
|
176
|
+
*/
|
|
177
|
+
"size": SulaTagSize;
|
|
178
|
+
}
|
|
179
|
+
interface SulaTextarea {
|
|
180
|
+
/**
|
|
181
|
+
* The textarea is disabled
|
|
182
|
+
*/
|
|
183
|
+
"disabled": boolean;
|
|
184
|
+
/**
|
|
185
|
+
* The help text for textarea
|
|
186
|
+
*/
|
|
187
|
+
"helpText"?: string;
|
|
188
|
+
/**
|
|
189
|
+
* The textarea label
|
|
190
|
+
*/
|
|
191
|
+
"label": string;
|
|
192
|
+
/**
|
|
193
|
+
* The textarea max length
|
|
194
|
+
*/
|
|
195
|
+
"maxLength"?: number;
|
|
196
|
+
/**
|
|
197
|
+
* The textarea placeholder
|
|
198
|
+
*/
|
|
199
|
+
"placeholder": string;
|
|
200
|
+
/**
|
|
201
|
+
* The textarea rows (height)
|
|
202
|
+
*/
|
|
203
|
+
"rows": number;
|
|
204
|
+
/**
|
|
205
|
+
* The textarea status
|
|
206
|
+
*/
|
|
207
|
+
"status": SulaTextareaStatus;
|
|
208
|
+
/**
|
|
209
|
+
* Value for the textarea.
|
|
210
|
+
*/
|
|
211
|
+
"value"?: string;
|
|
212
|
+
}
|
|
77
213
|
interface SulaTextfield {
|
|
78
214
|
/**
|
|
79
215
|
* The textfield is disabled
|
|
@@ -117,6 +253,18 @@ export interface SulaButtonCustomEvent<T> extends CustomEvent<T> {
|
|
|
117
253
|
detail: T;
|
|
118
254
|
target: HTMLSulaButtonElement;
|
|
119
255
|
}
|
|
256
|
+
export interface SulaCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
257
|
+
detail: T;
|
|
258
|
+
target: HTMLSulaCheckboxElement;
|
|
259
|
+
}
|
|
260
|
+
export interface SulaSwitchCustomEvent<T> extends CustomEvent<T> {
|
|
261
|
+
detail: T;
|
|
262
|
+
target: HTMLSulaSwitchElement;
|
|
263
|
+
}
|
|
264
|
+
export interface SulaTextareaCustomEvent<T> extends CustomEvent<T> {
|
|
265
|
+
detail: T;
|
|
266
|
+
target: HTMLSulaTextareaElement;
|
|
267
|
+
}
|
|
120
268
|
export interface SulaTextfieldCustomEvent<T> extends CustomEvent<T> {
|
|
121
269
|
detail: T;
|
|
122
270
|
target: HTMLSulaTextfieldElement;
|
|
@@ -128,6 +276,12 @@ declare global {
|
|
|
128
276
|
prototype: HTMLSulaAvatarElement;
|
|
129
277
|
new (): HTMLSulaAvatarElement;
|
|
130
278
|
};
|
|
279
|
+
interface HTMLSulaBadgeElement extends Components.SulaBadge, HTMLStencilElement {
|
|
280
|
+
}
|
|
281
|
+
var HTMLSulaBadgeElement: {
|
|
282
|
+
prototype: HTMLSulaBadgeElement;
|
|
283
|
+
new (): HTMLSulaBadgeElement;
|
|
284
|
+
};
|
|
131
285
|
interface HTMLSulaButtonElementEventMap {
|
|
132
286
|
"buttonClicked": void;
|
|
133
287
|
}
|
|
@@ -145,12 +299,75 @@ declare global {
|
|
|
145
299
|
prototype: HTMLSulaButtonElement;
|
|
146
300
|
new (): HTMLSulaButtonElement;
|
|
147
301
|
};
|
|
302
|
+
interface HTMLSulaCheckboxElementEventMap {
|
|
303
|
+
"valueChanged": boolean;
|
|
304
|
+
"focusedOn": void;
|
|
305
|
+
"focusedOut": void;
|
|
306
|
+
}
|
|
307
|
+
interface HTMLSulaCheckboxElement extends Components.SulaCheckbox, HTMLStencilElement {
|
|
308
|
+
addEventListener<K extends keyof HTMLSulaCheckboxElementEventMap>(type: K, listener: (this: HTMLSulaCheckboxElement, ev: SulaCheckboxCustomEvent<HTMLSulaCheckboxElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
309
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
310
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
311
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
312
|
+
removeEventListener<K extends keyof HTMLSulaCheckboxElementEventMap>(type: K, listener: (this: HTMLSulaCheckboxElement, ev: SulaCheckboxCustomEvent<HTMLSulaCheckboxElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
313
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
314
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
315
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
316
|
+
}
|
|
317
|
+
var HTMLSulaCheckboxElement: {
|
|
318
|
+
prototype: HTMLSulaCheckboxElement;
|
|
319
|
+
new (): HTMLSulaCheckboxElement;
|
|
320
|
+
};
|
|
148
321
|
interface HTMLSulaIconElement extends Components.SulaIcon, HTMLStencilElement {
|
|
149
322
|
}
|
|
150
323
|
var HTMLSulaIconElement: {
|
|
151
324
|
prototype: HTMLSulaIconElement;
|
|
152
325
|
new (): HTMLSulaIconElement;
|
|
153
326
|
};
|
|
327
|
+
interface HTMLSulaSwitchElementEventMap {
|
|
328
|
+
"valueChanged": boolean;
|
|
329
|
+
"focusedOn": void;
|
|
330
|
+
"focusedOut": void;
|
|
331
|
+
}
|
|
332
|
+
interface HTMLSulaSwitchElement extends Components.SulaSwitch, HTMLStencilElement {
|
|
333
|
+
addEventListener<K extends keyof HTMLSulaSwitchElementEventMap>(type: K, listener: (this: HTMLSulaSwitchElement, ev: SulaSwitchCustomEvent<HTMLSulaSwitchElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
334
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
335
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
336
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
337
|
+
removeEventListener<K extends keyof HTMLSulaSwitchElementEventMap>(type: K, listener: (this: HTMLSulaSwitchElement, ev: SulaSwitchCustomEvent<HTMLSulaSwitchElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
338
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
339
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
340
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
341
|
+
}
|
|
342
|
+
var HTMLSulaSwitchElement: {
|
|
343
|
+
prototype: HTMLSulaSwitchElement;
|
|
344
|
+
new (): HTMLSulaSwitchElement;
|
|
345
|
+
};
|
|
346
|
+
interface HTMLSulaTagElement extends Components.SulaTag, HTMLStencilElement {
|
|
347
|
+
}
|
|
348
|
+
var HTMLSulaTagElement: {
|
|
349
|
+
prototype: HTMLSulaTagElement;
|
|
350
|
+
new (): HTMLSulaTagElement;
|
|
351
|
+
};
|
|
352
|
+
interface HTMLSulaTextareaElementEventMap {
|
|
353
|
+
"valueChanged": string;
|
|
354
|
+
"focusedOn": void;
|
|
355
|
+
"focusedOut": void;
|
|
356
|
+
}
|
|
357
|
+
interface HTMLSulaTextareaElement extends Components.SulaTextarea, HTMLStencilElement {
|
|
358
|
+
addEventListener<K extends keyof HTMLSulaTextareaElementEventMap>(type: K, listener: (this: HTMLSulaTextareaElement, ev: SulaTextareaCustomEvent<HTMLSulaTextareaElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
359
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
360
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
361
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
362
|
+
removeEventListener<K extends keyof HTMLSulaTextareaElementEventMap>(type: K, listener: (this: HTMLSulaTextareaElement, ev: SulaTextareaCustomEvent<HTMLSulaTextareaElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
363
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
364
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
365
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
366
|
+
}
|
|
367
|
+
var HTMLSulaTextareaElement: {
|
|
368
|
+
prototype: HTMLSulaTextareaElement;
|
|
369
|
+
new (): HTMLSulaTextareaElement;
|
|
370
|
+
};
|
|
154
371
|
interface HTMLSulaTextfieldElementEventMap {
|
|
155
372
|
"valueChanged": string;
|
|
156
373
|
"focusedOn": void;
|
|
@@ -172,8 +389,13 @@ declare global {
|
|
|
172
389
|
};
|
|
173
390
|
interface HTMLElementTagNameMap {
|
|
174
391
|
"sula-avatar": HTMLSulaAvatarElement;
|
|
392
|
+
"sula-badge": HTMLSulaBadgeElement;
|
|
175
393
|
"sula-button": HTMLSulaButtonElement;
|
|
394
|
+
"sula-checkbox": HTMLSulaCheckboxElement;
|
|
176
395
|
"sula-icon": HTMLSulaIconElement;
|
|
396
|
+
"sula-switch": HTMLSulaSwitchElement;
|
|
397
|
+
"sula-tag": HTMLSulaTagElement;
|
|
398
|
+
"sula-textarea": HTMLSulaTextareaElement;
|
|
177
399
|
"sula-textfield": HTMLSulaTextfieldElement;
|
|
178
400
|
}
|
|
179
401
|
}
|
|
@@ -196,6 +418,28 @@ declare namespace LocalJSX {
|
|
|
196
418
|
*/
|
|
197
419
|
"text"?: string;
|
|
198
420
|
}
|
|
421
|
+
interface SulaBadge {
|
|
422
|
+
/**
|
|
423
|
+
* Badge icon
|
|
424
|
+
*/
|
|
425
|
+
"icon"?: string;
|
|
426
|
+
/**
|
|
427
|
+
* Badge size
|
|
428
|
+
*/
|
|
429
|
+
"size"?: SulaBadgeSize;
|
|
430
|
+
/**
|
|
431
|
+
* Badge status
|
|
432
|
+
*/
|
|
433
|
+
"status"?: SulaBadgeStatus;
|
|
434
|
+
/**
|
|
435
|
+
* Badge text
|
|
436
|
+
*/
|
|
437
|
+
"text"?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Badge type
|
|
440
|
+
*/
|
|
441
|
+
"type"?: SulaBadgeType;
|
|
442
|
+
}
|
|
199
443
|
interface SulaButton {
|
|
200
444
|
/**
|
|
201
445
|
* Button appearance
|
|
@@ -235,6 +479,40 @@ declare namespace LocalJSX {
|
|
|
235
479
|
*/
|
|
236
480
|
"type"?: SulaButtonType;
|
|
237
481
|
}
|
|
482
|
+
interface SulaCheckbox {
|
|
483
|
+
/**
|
|
484
|
+
* Is checkbox checked
|
|
485
|
+
*/
|
|
486
|
+
"checked"?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Is checbox disabled
|
|
489
|
+
*/
|
|
490
|
+
"disabled"?: boolean;
|
|
491
|
+
/**
|
|
492
|
+
* Checkbox label
|
|
493
|
+
*/
|
|
494
|
+
"label"?: string;
|
|
495
|
+
/**
|
|
496
|
+
* Event emitted when checkbox is focused.
|
|
497
|
+
*/
|
|
498
|
+
"onFocusedOn"?: (event: SulaCheckboxCustomEvent<void>) => void;
|
|
499
|
+
/**
|
|
500
|
+
* Event emitted when checkbox is focused out.
|
|
501
|
+
*/
|
|
502
|
+
"onFocusedOut"?: (event: SulaCheckboxCustomEvent<void>) => void;
|
|
503
|
+
/**
|
|
504
|
+
* Event emitted when checkbox value changes.
|
|
505
|
+
*/
|
|
506
|
+
"onValueChanged"?: (event: SulaCheckboxCustomEvent<boolean>) => void;
|
|
507
|
+
/**
|
|
508
|
+
* Checkbox sub title (avaible when is `list` type)
|
|
509
|
+
*/
|
|
510
|
+
"subTitle"?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Checkbox type
|
|
513
|
+
*/
|
|
514
|
+
"type"?: SulaCheckboxType;
|
|
515
|
+
}
|
|
238
516
|
interface SulaIcon {
|
|
239
517
|
/**
|
|
240
518
|
* Custom class to be applied to the icon
|
|
@@ -245,6 +523,112 @@ declare namespace LocalJSX {
|
|
|
245
523
|
*/
|
|
246
524
|
"icon"?: string;
|
|
247
525
|
}
|
|
526
|
+
interface SulaSwitch {
|
|
527
|
+
/**
|
|
528
|
+
* Is switch active
|
|
529
|
+
*/
|
|
530
|
+
"active"?: boolean;
|
|
531
|
+
/**
|
|
532
|
+
* Is switch disabled
|
|
533
|
+
*/
|
|
534
|
+
"disabled"?: boolean;
|
|
535
|
+
/**
|
|
536
|
+
* Switch label
|
|
537
|
+
*/
|
|
538
|
+
"label"?: string;
|
|
539
|
+
/**
|
|
540
|
+
* Event emitted when switch is focused.
|
|
541
|
+
*/
|
|
542
|
+
"onFocusedOn"?: (event: SulaSwitchCustomEvent<void>) => void;
|
|
543
|
+
/**
|
|
544
|
+
* Event emitted when switch is focused out.
|
|
545
|
+
*/
|
|
546
|
+
"onFocusedOut"?: (event: SulaSwitchCustomEvent<void>) => void;
|
|
547
|
+
/**
|
|
548
|
+
* Event emitted when switch value changes.
|
|
549
|
+
*/
|
|
550
|
+
"onValueChanged"?: (event: SulaSwitchCustomEvent<boolean>) => void;
|
|
551
|
+
/**
|
|
552
|
+
* Switch sub title (avaible when is `list` type)
|
|
553
|
+
*/
|
|
554
|
+
"subTitle"?: string;
|
|
555
|
+
/**
|
|
556
|
+
* Switch type
|
|
557
|
+
*/
|
|
558
|
+
"type"?: SulaSwitchType;
|
|
559
|
+
}
|
|
560
|
+
interface SulaTag {
|
|
561
|
+
/**
|
|
562
|
+
* Tag appearance
|
|
563
|
+
*/
|
|
564
|
+
"appearance"?: SulaTagAppearance;
|
|
565
|
+
/**
|
|
566
|
+
* Tag font weight
|
|
567
|
+
*/
|
|
568
|
+
"fontWeight"?: SulaTagFontWeight;
|
|
569
|
+
/**
|
|
570
|
+
* Tag icon
|
|
571
|
+
*/
|
|
572
|
+
"icon"?: string;
|
|
573
|
+
/**
|
|
574
|
+
* Tag icon status
|
|
575
|
+
*/
|
|
576
|
+
"iconStatus"?: SulaTagIconStatus;
|
|
577
|
+
/**
|
|
578
|
+
* Tag label
|
|
579
|
+
*/
|
|
580
|
+
"label"?: string;
|
|
581
|
+
/**
|
|
582
|
+
* Tag size
|
|
583
|
+
*/
|
|
584
|
+
"size"?: SulaTagSize;
|
|
585
|
+
}
|
|
586
|
+
interface SulaTextarea {
|
|
587
|
+
/**
|
|
588
|
+
* The textarea is disabled
|
|
589
|
+
*/
|
|
590
|
+
"disabled"?: boolean;
|
|
591
|
+
/**
|
|
592
|
+
* The help text for textarea
|
|
593
|
+
*/
|
|
594
|
+
"helpText"?: string;
|
|
595
|
+
/**
|
|
596
|
+
* The textarea label
|
|
597
|
+
*/
|
|
598
|
+
"label"?: string;
|
|
599
|
+
/**
|
|
600
|
+
* The textarea max length
|
|
601
|
+
*/
|
|
602
|
+
"maxLength"?: number;
|
|
603
|
+
/**
|
|
604
|
+
* Event emitted when textarea is focused.
|
|
605
|
+
*/
|
|
606
|
+
"onFocusedOn"?: (event: SulaTextareaCustomEvent<void>) => void;
|
|
607
|
+
/**
|
|
608
|
+
* Event emitted when textarea is focused out.
|
|
609
|
+
*/
|
|
610
|
+
"onFocusedOut"?: (event: SulaTextareaCustomEvent<void>) => void;
|
|
611
|
+
/**
|
|
612
|
+
* Event emitted when textarea value changes.
|
|
613
|
+
*/
|
|
614
|
+
"onValueChanged"?: (event: SulaTextareaCustomEvent<string>) => void;
|
|
615
|
+
/**
|
|
616
|
+
* The textarea placeholder
|
|
617
|
+
*/
|
|
618
|
+
"placeholder"?: string;
|
|
619
|
+
/**
|
|
620
|
+
* The textarea rows (height)
|
|
621
|
+
*/
|
|
622
|
+
"rows"?: number;
|
|
623
|
+
/**
|
|
624
|
+
* The textarea status
|
|
625
|
+
*/
|
|
626
|
+
"status"?: SulaTextareaStatus;
|
|
627
|
+
/**
|
|
628
|
+
* Value for the textarea.
|
|
629
|
+
*/
|
|
630
|
+
"value"?: string;
|
|
631
|
+
}
|
|
248
632
|
interface SulaTextfield {
|
|
249
633
|
/**
|
|
250
634
|
* The textfield is disabled
|
|
@@ -297,8 +681,13 @@ declare namespace LocalJSX {
|
|
|
297
681
|
}
|
|
298
682
|
interface IntrinsicElements {
|
|
299
683
|
"sula-avatar": SulaAvatar;
|
|
684
|
+
"sula-badge": SulaBadge;
|
|
300
685
|
"sula-button": SulaButton;
|
|
686
|
+
"sula-checkbox": SulaCheckbox;
|
|
301
687
|
"sula-icon": SulaIcon;
|
|
688
|
+
"sula-switch": SulaSwitch;
|
|
689
|
+
"sula-tag": SulaTag;
|
|
690
|
+
"sula-textarea": SulaTextarea;
|
|
302
691
|
"sula-textfield": SulaTextfield;
|
|
303
692
|
}
|
|
304
693
|
}
|
|
@@ -307,8 +696,13 @@ declare module "@stencil/core" {
|
|
|
307
696
|
export namespace JSX {
|
|
308
697
|
interface IntrinsicElements {
|
|
309
698
|
"sula-avatar": LocalJSX.SulaAvatar & JSXBase.HTMLAttributes<HTMLSulaAvatarElement>;
|
|
699
|
+
"sula-badge": LocalJSX.SulaBadge & JSXBase.HTMLAttributes<HTMLSulaBadgeElement>;
|
|
310
700
|
"sula-button": LocalJSX.SulaButton & JSXBase.HTMLAttributes<HTMLSulaButtonElement>;
|
|
701
|
+
"sula-checkbox": LocalJSX.SulaCheckbox & JSXBase.HTMLAttributes<HTMLSulaCheckboxElement>;
|
|
311
702
|
"sula-icon": LocalJSX.SulaIcon & JSXBase.HTMLAttributes<HTMLSulaIconElement>;
|
|
703
|
+
"sula-switch": LocalJSX.SulaSwitch & JSXBase.HTMLAttributes<HTMLSulaSwitchElement>;
|
|
704
|
+
"sula-tag": LocalJSX.SulaTag & JSXBase.HTMLAttributes<HTMLSulaTagElement>;
|
|
705
|
+
"sula-textarea": LocalJSX.SulaTextarea & JSXBase.HTMLAttributes<HTMLSulaTextareaElement>;
|
|
312
706
|
"sula-textfield": LocalJSX.SulaTextfield & JSXBase.HTMLAttributes<HTMLSulaTextfieldElement>;
|
|
313
707
|
}
|
|
314
708
|
}
|