Skip to content

Commit edd3f87

Browse files
committed
change(types): update index.d.ts types
1 parent 077363e commit edd3f87

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

index.d.ts

+35
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ declare module '@silintl/ui-components' {
1212
raised?: boolean
1313
target?: string
1414
url?: string
15+
class?: string
1516
}
1617
export class Button extends SvelteComponentTyped<ButtonProps> {}
1718

@@ -25,6 +26,7 @@ declare module '@silintl/ui-components' {
2526
color?: string
2627
isClickable?: boolean
2728
noPadding?: boolean
29+
class?: string
2830
}
2931
export class Card extends SvelteComponentTyped<CardProps> {}
3032

@@ -33,13 +35,15 @@ declare module '@silintl/ui-components' {
3335
checked?: boolean
3436
disabled?: boolean
3537
uppercase?: boolean
38+
class?: string
3639
}
3740
export class Checkbox extends SvelteComponentTyped<CheckboxProps> {}
3841

3942
//Datatable
4043
interface DatatableProps {
4144
label?: string
4245
numberOfCheckboxes?: number
46+
class?: string
4347
}
4448
export class Datatable extends SvelteComponentTyped<DatatableProps> {}
4549

@@ -50,6 +54,7 @@ declare module '@silintl/ui-components' {
5054
interface DatatableCheckboxProps {
5155
disabled?: boolean
5256
rowId?: string
57+
class?: string
5358
}
5459
export class Checkbox extends SvelteComponentTyped<DatatableCheckboxProps> {}
5560

@@ -58,6 +63,7 @@ declare module '@silintl/ui-components' {
5863
numeric?: boolean
5964
columnID?: string
6065
sortable?: boolean
66+
class?: string
6167
}
6268
export class Item extends SvelteComponentTyped<ItemProps> {}
6369
export class Checkbox extends SvelteComponentTyped<HeaderProps> {}
@@ -69,13 +75,15 @@ declare module '@silintl/ui-components' {
6975
export namespace Data {
7076
interface RowProps {
7177
clickable?: boolean
78+
class?: string
7279
}
7380
export class Row extends SvelteComponentTyped<RowProps> {}
7481

7582
export namespace Row {
7683
interface ItemProps {
7784
numeric?: boolean
7885
colspan?: number
86+
class?: string
7987
}
8088
export class Item extends SvelteComponentTyped<ItemProps> {}
8189
}
@@ -111,12 +119,14 @@ declare module '@silintl/ui-components' {
111119
titleIcon?: string
112120
defaultAction?: string
113121
buttons?: AlertButton[]
122+
class?: string
114123
}
115124
export class Alert extends SvelteComponentTyped<AlertProps> {}
116125

117126
interface SimpleProps {
118127
open?: boolean
119128
title?: string
129+
class?: string
120130
}
121131
export class Simple extends SvelteComponentTyped<SimpleProps> {}
122132
}
@@ -142,6 +152,7 @@ declare module '@silintl/ui-components' {
142152
modal?: boolean
143153
toggle?: boolean
144154
currentUrl?: string
155+
class?: string
145156
}
146157
export class Drawer extends SvelteComponentTyped<DrawerProps> {}
147158

@@ -153,6 +164,7 @@ declare module '@silintl/ui-components' {
153164
url?: string
154165
action?: Function
155166
target?: string
167+
class?: string
156168
}
157169
export class Fab extends SvelteComponentTyped<FabProps> {}
158170

@@ -162,12 +174,14 @@ declare module '@silintl/ui-components' {
162174
icon?: string
163175
target?: string
164176
url?: string
177+
class?: string
165178
}
166179
export class IconButton extends SvelteComponentTyped<IconButtonProps> {}
167180

168181
interface ListProps {
169182
twoLine?: boolean
170183
avatar?: boolean
184+
class?: string
171185
}
172186
export class List extends SvelteComponentTyped<ListProps> {}
173187

@@ -177,11 +191,13 @@ declare module '@silintl/ui-components' {
177191
url?: string
178192
action?: VoidFunction
179193
subtitle?: string
194+
class?: string
180195
}
181196
interface MenuProps {
182197
menuItems?: MenuItem[]
183198
menuOpen?: boolean
184199
currentUrl?: string
200+
class?: string
185201
}
186202
export class Menu extends SvelteComponentTyped<MenuProps> {}
187203

@@ -197,6 +213,7 @@ declare module '@silintl/ui-components' {
197213
maxValue?: number | string
198214
step?: number | string
199215
description?: string
216+
class?: string
200217
}
201218
export class MoneyInput extends SvelteComponentTyped<MoneyInputProps> {}
202219

@@ -207,6 +224,7 @@ declare module '@silintl/ui-components' {
207224
interface LinearProps {
208225
indeterminate?: boolean
209226
value?: number
227+
class?: string
210228
}
211229
export class Linear extends SvelteComponentTyped<LinearProps> {}
212230
}
@@ -216,13 +234,15 @@ declare module '@silintl/ui-components' {
216234
width?: string
217235
disabled?: boolean
218236
selectedID?: string
237+
class?: string
219238
}
220239
export class Select extends SvelteComponentTyped<SelectProps> {}
221240

222241
interface SwitchProps {
223242
label?: string
224243
disabled?: boolean
225244
selected?: boolean
245+
class?: string
226246
}
227247
export class Switch extends SvelteComponentTyped<SwitchProps> {}
228248

@@ -233,6 +253,7 @@ declare module '@silintl/ui-components' {
233253

234254
interface TabBarProps {
235255
tab?: number
256+
class?: string
236257
}
237258
export class TabBar extends SvelteComponentTyped<TabBarProps> {}
238259

@@ -243,6 +264,7 @@ declare module '@silintl/ui-components' {
243264
interface TabProps {
244265
active?: boolean
245266
label?: string
267+
class?: string
246268
}
247269
export class Tab extends SvelteComponentTyped<TabProps> {}
248270
}
@@ -258,6 +280,7 @@ declare module '@silintl/ui-components' {
258280
autofocus?: boolean
259281
rtl?: boolean
260282
description?: string
283+
class?: string
261284
}
262285
export class TextArea extends SvelteComponentTyped<TextAreaProps> {}
263286

@@ -271,19 +294,22 @@ declare module '@silintl/ui-components' {
271294
disabled?: boolean
272295
required?: boolean
273296
description?: string
297+
class?: string
274298
}
275299
export class TextField extends SvelteComponentTyped<TextFieldProps> {}
276300

277301
interface TooltipProps {
278302
tooltipID?: string
279303
positionX?: 'start' | 'center' | 'end'
280304
positionY?: 'above' | 'below'
305+
class?: string
281306
}
282307
export class Tooltip extends SvelteComponentTyped<TooltipProps> {}
283308

284309
export namespace Tooltip {
285310
interface TooltipWrapperProps {
286311
ariaDescribedBy?: string
312+
class?: string
287313
}
288314
export class Wrapper extends SvelteComponentTyped<TooltipWrapperProps> {}
289315
}
@@ -293,6 +319,7 @@ declare module '@silintl/ui-components' {
293319
dense?: boolean
294320
fixed?: boolean
295321
navIconBreakpointClass?: string
322+
class?: string
296323
}
297324
export class TopAppBar extends SvelteComponentTyped<TopAppBarProps> {}
298325

@@ -301,6 +328,7 @@ declare module '@silintl/ui-components' {
301328
borderRadius?: string
302329
padding?: string
303330
bordered?: boolean
331+
class?: string
304332
}
305333
export class Badge extends SvelteComponentTyped<BadgeProps> {}
306334

@@ -312,6 +340,7 @@ declare module '@silintl/ui-components' {
312340
disabled?: boolean
313341
buttons?: { label: string; url: string }[]
314342
footerText?: string
343+
class?: string
315344
}
316345
export class CustomCard extends SvelteComponentTyped<CustomCardProps> {}
317346

@@ -320,12 +349,14 @@ declare module '@silintl/ui-components' {
320349
outlined?: boolean
321350
mimeType?: string
322351
uploading?: boolean
352+
class?: string
323353
}
324354
export class FileDropArea extends SvelteComponentTyped<FileDropAreaProps> {}
325355

326356
interface FormProps {
327357
id?: string
328358
saveToLocalStorage?: boolean
359+
class?: string
329360
}
330361
export class Form extends SvelteComponentTyped<FormProps> {}
331362

@@ -335,11 +366,13 @@ declare module '@silintl/ui-components' {
335366
layout?: string
336367
center?: boolean
337368
noProgress?: boolean
369+
class?: string
338370
}
339371
export class Page extends SvelteComponentTyped<PageProps> {}
340372

341373
interface StaticChipProps {
342374
bgColor?: string
375+
class?: string
343376
}
344377
export class StaticChip extends SvelteComponentTyped<StaticChipProps> {}
345378

@@ -354,6 +387,7 @@ declare module '@silintl/ui-components' {
354387
placeholder?: string
355388
required?: boolean
356389
width?: string
390+
class?: string
357391
}
358392
export class SearchableSelect extends SvelteComponentTyped<SearchableSelectProps> {}
359393

@@ -362,6 +396,7 @@ declare module '@silintl/ui-components' {
362396
interface TourProps {
363397
steps?: { [key in steps]: string | number }[]
364398
data?: { [key: string]: string }
399+
class?: string
365400
}
366401
export class Tour extends SvelteComponentTyped<TourProps> {}
367402
}

0 commit comments

Comments
 (0)