@sula-tech/webcomponents 0.1.1 → 0.2.1
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-7973b779.js → index-87eec792.js} +126 -5
- package/dist/cjs/index-87eec792.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{sula-avatar_3.cjs.entry.js → sula-avatar_9.cjs.entry.js} +652 -7
- 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 +7 -1
- package/dist/collection/components/sula-avatar/sula-avatar.css +1 -1
- package/dist/collection/components/sula-avatar/sula-avatar.stories.js +14 -17
- package/dist/collection/components/sula-avatar/sula-avatar.stories.js.map +1 -1
- 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-button/sula-button.stories.js +36 -9
- package/dist/collection/components/sula-button/sula-button.stories.js.map +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 +35 -14
- 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/model/sula-textfield.model.js +11 -0
- package/dist/collection/components/sula-textfield/model/sula-textfield.model.js.map +1 -0
- package/dist/collection/components/sula-textfield/sula-textfield.css +1 -0
- package/dist/collection/components/sula-textfield/sula-textfield.js +376 -0
- package/dist/collection/components/sula-textfield/sula-textfield.js.map +1 -0
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js +148 -0
- package/dist/collection/components/sula-textfield/sula-textfield.stories.js.map +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-81fcc74a.js → p-2d5f97d1.js} +4 -4
- package/dist/components/{p-81fcc74a.js.map → p-2d5f97d1.js.map} +1 -1
- package/dist/components/{p-d3ba6302.js → p-881c6b35.js} +114 -6
- package/dist/components/p-881c6b35.js.map +1 -0
- package/dist/components/sula-avatar.js +3 -3
- package/dist/components/sula-avatar.js.map +1 -1
- 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.d.ts +11 -0
- package/dist/components/sula-textfield.js +171 -0
- package/dist/components/sula-textfield.js.map +1 -0
- package/dist/esm/{index-9bf8f892.js → index-aa1c5f36.js} +126 -6
- package/dist/esm/index-aa1c5f36.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{sula-avatar_3.entry.js → sula-avatar_9.entry.js} +647 -8
- package/dist/esm/sula-avatar_9.entry.js.map +1 -0
- package/dist/esm/webcomponents.js +3 -3
- package/dist/types/components/sula-avatar/sula-avatar.stories.d.ts +0 -1
- 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-button/sula-button.stories.d.ts +2 -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-icon/sula-icon.stories.d.ts +5 -2
- 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/sula-textfield/model/sula-textfield.model.d.ts +8 -0
- package/dist/types/components/sula-textfield/sula-textfield.d.ts +74 -0
- package/dist/types/components/sula-textfield/sula-textfield.stories.d.ts +108 -0
- package/dist/types/components.d.ts +510 -0
- package/dist/webcomponents/{p-82d7a024.entry.js → p-1c8457aa.entry.js} +917 -64
- package/dist/webcomponents/p-1c8457aa.entry.js.map +1 -0
- package/dist/webcomponents/{p-cca32e44.js → p-5a36af0f.js} +343 -220
- package/dist/webcomponents/p-5a36af0f.js.map +1 -0
- package/dist/webcomponents/webcomponents.esm.js +68 -13
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/package.json +21 -13
- package/readme.md +36 -18
- package/dist/cjs/index-7973b779.js.map +0 -1
- package/dist/cjs/sula-avatar_3.cjs.entry.js.map +0 -1
- package/dist/components/p-d3ba6302.js.map +0 -1
- package/dist/esm/index-9bf8f892.js.map +0 -1
- package/dist/esm/sula-avatar_3.entry.js.map +0 -1
- package/dist/webcomponents/p-82d7a024.entry.js.map +0 -1
- package/dist/webcomponents/p-cca32e44.js.map +0 -1
|
@@ -6,9 +6,21 @@
|
|
|
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";
|
|
15
|
+
import { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
10
16
|
export { SulaAvatarSize } from "./components/sula-avatar/model/sula-avatar.model";
|
|
17
|
+
export { SulaBadgeSize, SulaBadgeStatus, SulaBadgeType } from "./components/sula-badge/model/sula-badge.model";
|
|
11
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";
|
|
23
|
+
export { SulaTextfieldStatus, SulaTextfieldType } from "./components/sula-textfield/model/sula-textfield.model";
|
|
12
24
|
export namespace Components {
|
|
13
25
|
interface SulaAvatar {
|
|
14
26
|
/**
|
|
@@ -28,6 +40,28 @@ export namespace Components {
|
|
|
28
40
|
*/
|
|
29
41
|
"text"?: string;
|
|
30
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
|
+
}
|
|
31
65
|
interface SulaButton {
|
|
32
66
|
/**
|
|
33
67
|
* Button appearance
|
|
@@ -62,6 +96,28 @@ export namespace Components {
|
|
|
62
96
|
*/
|
|
63
97
|
"type": SulaButtonType;
|
|
64
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
|
+
}
|
|
65
121
|
interface SulaIcon {
|
|
66
122
|
/**
|
|
67
123
|
* Custom class to be applied to the icon
|
|
@@ -72,11 +128,147 @@ export namespace Components {
|
|
|
72
128
|
*/
|
|
73
129
|
"icon": string;
|
|
74
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
|
+
}
|
|
213
|
+
interface SulaTextfield {
|
|
214
|
+
/**
|
|
215
|
+
* The textfield is disabled
|
|
216
|
+
*/
|
|
217
|
+
"disabled": boolean;
|
|
218
|
+
/**
|
|
219
|
+
* The help text for textfield
|
|
220
|
+
*/
|
|
221
|
+
"helpText"?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The textfield icon
|
|
224
|
+
*/
|
|
225
|
+
"icon"?: string;
|
|
226
|
+
/**
|
|
227
|
+
* The textfield label
|
|
228
|
+
*/
|
|
229
|
+
"label": string;
|
|
230
|
+
/**
|
|
231
|
+
* The textfield max length
|
|
232
|
+
*/
|
|
233
|
+
"maxLength"?: number;
|
|
234
|
+
/**
|
|
235
|
+
* The textfield placeholder
|
|
236
|
+
*/
|
|
237
|
+
"placeholder": string;
|
|
238
|
+
/**
|
|
239
|
+
* The textfield status
|
|
240
|
+
*/
|
|
241
|
+
"status": SulaTextfieldStatus;
|
|
242
|
+
/**
|
|
243
|
+
* The textfield type
|
|
244
|
+
*/
|
|
245
|
+
"type": SulaTextfieldType;
|
|
246
|
+
/**
|
|
247
|
+
* Value for the input.
|
|
248
|
+
*/
|
|
249
|
+
"value"?: string;
|
|
250
|
+
}
|
|
75
251
|
}
|
|
76
252
|
export interface SulaButtonCustomEvent<T> extends CustomEvent<T> {
|
|
77
253
|
detail: T;
|
|
78
254
|
target: HTMLSulaButtonElement;
|
|
79
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
|
+
}
|
|
268
|
+
export interface SulaTextfieldCustomEvent<T> extends CustomEvent<T> {
|
|
269
|
+
detail: T;
|
|
270
|
+
target: HTMLSulaTextfieldElement;
|
|
271
|
+
}
|
|
80
272
|
declare global {
|
|
81
273
|
interface HTMLSulaAvatarElement extends Components.SulaAvatar, HTMLStencilElement {
|
|
82
274
|
}
|
|
@@ -84,6 +276,12 @@ declare global {
|
|
|
84
276
|
prototype: HTMLSulaAvatarElement;
|
|
85
277
|
new (): HTMLSulaAvatarElement;
|
|
86
278
|
};
|
|
279
|
+
interface HTMLSulaBadgeElement extends Components.SulaBadge, HTMLStencilElement {
|
|
280
|
+
}
|
|
281
|
+
var HTMLSulaBadgeElement: {
|
|
282
|
+
prototype: HTMLSulaBadgeElement;
|
|
283
|
+
new (): HTMLSulaBadgeElement;
|
|
284
|
+
};
|
|
87
285
|
interface HTMLSulaButtonElementEventMap {
|
|
88
286
|
"buttonClicked": void;
|
|
89
287
|
}
|
|
@@ -101,16 +299,104 @@ declare global {
|
|
|
101
299
|
prototype: HTMLSulaButtonElement;
|
|
102
300
|
new (): HTMLSulaButtonElement;
|
|
103
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
|
+
};
|
|
104
321
|
interface HTMLSulaIconElement extends Components.SulaIcon, HTMLStencilElement {
|
|
105
322
|
}
|
|
106
323
|
var HTMLSulaIconElement: {
|
|
107
324
|
prototype: HTMLSulaIconElement;
|
|
108
325
|
new (): HTMLSulaIconElement;
|
|
109
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
|
+
};
|
|
371
|
+
interface HTMLSulaTextfieldElementEventMap {
|
|
372
|
+
"valueChanged": string;
|
|
373
|
+
"focusedOn": void;
|
|
374
|
+
"focusedOut": void;
|
|
375
|
+
}
|
|
376
|
+
interface HTMLSulaTextfieldElement extends Components.SulaTextfield, HTMLStencilElement {
|
|
377
|
+
addEventListener<K extends keyof HTMLSulaTextfieldElementEventMap>(type: K, listener: (this: HTMLSulaTextfieldElement, ev: SulaTextfieldCustomEvent<HTMLSulaTextfieldElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
378
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
379
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
380
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
381
|
+
removeEventListener<K extends keyof HTMLSulaTextfieldElementEventMap>(type: K, listener: (this: HTMLSulaTextfieldElement, ev: SulaTextfieldCustomEvent<HTMLSulaTextfieldElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
382
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
383
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
384
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
385
|
+
}
|
|
386
|
+
var HTMLSulaTextfieldElement: {
|
|
387
|
+
prototype: HTMLSulaTextfieldElement;
|
|
388
|
+
new (): HTMLSulaTextfieldElement;
|
|
389
|
+
};
|
|
110
390
|
interface HTMLElementTagNameMap {
|
|
111
391
|
"sula-avatar": HTMLSulaAvatarElement;
|
|
392
|
+
"sula-badge": HTMLSulaBadgeElement;
|
|
112
393
|
"sula-button": HTMLSulaButtonElement;
|
|
394
|
+
"sula-checkbox": HTMLSulaCheckboxElement;
|
|
113
395
|
"sula-icon": HTMLSulaIconElement;
|
|
396
|
+
"sula-switch": HTMLSulaSwitchElement;
|
|
397
|
+
"sula-tag": HTMLSulaTagElement;
|
|
398
|
+
"sula-textarea": HTMLSulaTextareaElement;
|
|
399
|
+
"sula-textfield": HTMLSulaTextfieldElement;
|
|
114
400
|
}
|
|
115
401
|
}
|
|
116
402
|
declare namespace LocalJSX {
|
|
@@ -132,6 +418,28 @@ declare namespace LocalJSX {
|
|
|
132
418
|
*/
|
|
133
419
|
"text"?: string;
|
|
134
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
|
+
}
|
|
135
443
|
interface SulaButton {
|
|
136
444
|
/**
|
|
137
445
|
* Button appearance
|
|
@@ -171,6 +479,40 @@ declare namespace LocalJSX {
|
|
|
171
479
|
*/
|
|
172
480
|
"type"?: SulaButtonType;
|
|
173
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
|
+
}
|
|
174
516
|
interface SulaIcon {
|
|
175
517
|
/**
|
|
176
518
|
* Custom class to be applied to the icon
|
|
@@ -181,10 +523,172 @@ declare namespace LocalJSX {
|
|
|
181
523
|
*/
|
|
182
524
|
"icon"?: string;
|
|
183
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
|
+
}
|
|
632
|
+
interface SulaTextfield {
|
|
633
|
+
/**
|
|
634
|
+
* The textfield is disabled
|
|
635
|
+
*/
|
|
636
|
+
"disabled"?: boolean;
|
|
637
|
+
/**
|
|
638
|
+
* The help text for textfield
|
|
639
|
+
*/
|
|
640
|
+
"helpText"?: string;
|
|
641
|
+
/**
|
|
642
|
+
* The textfield icon
|
|
643
|
+
*/
|
|
644
|
+
"icon"?: string;
|
|
645
|
+
/**
|
|
646
|
+
* The textfield label
|
|
647
|
+
*/
|
|
648
|
+
"label"?: string;
|
|
649
|
+
/**
|
|
650
|
+
* The textfield max length
|
|
651
|
+
*/
|
|
652
|
+
"maxLength"?: number;
|
|
653
|
+
/**
|
|
654
|
+
* Event emitted when input is focused.
|
|
655
|
+
*/
|
|
656
|
+
"onFocusedOn"?: (event: SulaTextfieldCustomEvent<void>) => void;
|
|
657
|
+
/**
|
|
658
|
+
* Event emitted when input is focused out.
|
|
659
|
+
*/
|
|
660
|
+
"onFocusedOut"?: (event: SulaTextfieldCustomEvent<void>) => void;
|
|
661
|
+
/**
|
|
662
|
+
* Event emitted when input value changes.
|
|
663
|
+
*/
|
|
664
|
+
"onValueChanged"?: (event: SulaTextfieldCustomEvent<string>) => void;
|
|
665
|
+
/**
|
|
666
|
+
* The textfield placeholder
|
|
667
|
+
*/
|
|
668
|
+
"placeholder"?: string;
|
|
669
|
+
/**
|
|
670
|
+
* The textfield status
|
|
671
|
+
*/
|
|
672
|
+
"status"?: SulaTextfieldStatus;
|
|
673
|
+
/**
|
|
674
|
+
* The textfield type
|
|
675
|
+
*/
|
|
676
|
+
"type"?: SulaTextfieldType;
|
|
677
|
+
/**
|
|
678
|
+
* Value for the input.
|
|
679
|
+
*/
|
|
680
|
+
"value"?: string;
|
|
681
|
+
}
|
|
184
682
|
interface IntrinsicElements {
|
|
185
683
|
"sula-avatar": SulaAvatar;
|
|
684
|
+
"sula-badge": SulaBadge;
|
|
186
685
|
"sula-button": SulaButton;
|
|
686
|
+
"sula-checkbox": SulaCheckbox;
|
|
187
687
|
"sula-icon": SulaIcon;
|
|
688
|
+
"sula-switch": SulaSwitch;
|
|
689
|
+
"sula-tag": SulaTag;
|
|
690
|
+
"sula-textarea": SulaTextarea;
|
|
691
|
+
"sula-textfield": SulaTextfield;
|
|
188
692
|
}
|
|
189
693
|
}
|
|
190
694
|
export { LocalJSX as JSX };
|
|
@@ -192,8 +696,14 @@ declare module "@stencil/core" {
|
|
|
192
696
|
export namespace JSX {
|
|
193
697
|
interface IntrinsicElements {
|
|
194
698
|
"sula-avatar": LocalJSX.SulaAvatar & JSXBase.HTMLAttributes<HTMLSulaAvatarElement>;
|
|
699
|
+
"sula-badge": LocalJSX.SulaBadge & JSXBase.HTMLAttributes<HTMLSulaBadgeElement>;
|
|
195
700
|
"sula-button": LocalJSX.SulaButton & JSXBase.HTMLAttributes<HTMLSulaButtonElement>;
|
|
701
|
+
"sula-checkbox": LocalJSX.SulaCheckbox & JSXBase.HTMLAttributes<HTMLSulaCheckboxElement>;
|
|
196
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>;
|
|
706
|
+
"sula-textfield": LocalJSX.SulaTextfield & JSXBase.HTMLAttributes<HTMLSulaTextfieldElement>;
|
|
197
707
|
}
|
|
198
708
|
}
|
|
199
709
|
}
|