@skf-design-system/ui-components 1.0.0-alpha.27 → 1.0.0-alpha.29

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 (91) hide show
  1. package/README.md +26 -6
  2. package/custom-elements.json +18265 -0
  3. package/dist/components/alert/alert.component.js +20 -18
  4. package/dist/components/alert/alert.styles.js +50 -47
  5. package/dist/components/button/button.component.d.ts +24 -0
  6. package/dist/components/button/button.component.js +79 -55
  7. package/dist/components/button/button.styles.js +1 -0
  8. package/dist/components/checkbox/checkbox.component.d.ts +3 -8
  9. package/dist/components/checkbox/checkbox.component.js +95 -90
  10. package/dist/components/checkbox/checkbox.styles.js +2 -2
  11. package/dist/components/input/input.component.d.ts +10 -0
  12. package/dist/components/input/input.component.js +89 -82
  13. package/dist/components/progress/progress.component.d.ts +22 -0
  14. package/dist/components/progress/progress.component.js +40 -0
  15. package/dist/components/progress/progress.d.ts +8 -0
  16. package/dist/components/progress/progress.js +6 -0
  17. package/dist/components/progress/progress.styles.d.ts +1 -0
  18. package/dist/components/progress/progress.styles.js +47 -0
  19. package/dist/components/radio/radio.component.d.ts +4 -6
  20. package/dist/components/radio/radio.component.js +93 -77
  21. package/dist/components/select/select.component.d.ts +5 -2
  22. package/dist/components/select/select.component.js +103 -88
  23. package/dist/components/select/select.controllers.js +5 -2
  24. package/dist/components/switch/switch.component.js +4 -1
  25. package/dist/components/tab/tab.component.d.ts +29 -0
  26. package/dist/components/tab/tab.component.js +57 -0
  27. package/dist/components/tab/tab.d.ts +8 -0
  28. package/dist/components/tab/tab.js +6 -0
  29. package/dist/components/tab/tab.styles.d.ts +1 -0
  30. package/dist/components/tab/tab.styles.js +123 -0
  31. package/dist/components/tab-group/tab-group.component.d.ts +43 -0
  32. package/dist/components/tab-group/tab-group.component.js +98 -0
  33. package/dist/components/tab-group/tab-group.d.ts +8 -0
  34. package/dist/components/tab-group/tab-group.js +6 -0
  35. package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
  36. package/dist/components/tab-group/tab-group.styles.js +75 -0
  37. package/dist/components/tab-panel/tab-panel.component.d.ts +19 -0
  38. package/dist/components/tab-panel/tab-panel.component.js +36 -0
  39. package/dist/components/tab-panel/tab-panel.d.ts +8 -0
  40. package/dist/components/tab-panel/tab-panel.js +6 -0
  41. package/dist/components/tab-panel/tab-panel.styles.d.ts +1 -0
  42. package/dist/components/tab-panel/tab-panel.styles.js +13 -0
  43. package/dist/components/textarea/textarea.component.js +5 -5
  44. package/dist/components/toast/toast.component.d.ts +35 -0
  45. package/dist/components/toast/toast.component.js +52 -0
  46. package/dist/components/toast/toast.d.ts +8 -0
  47. package/dist/components/toast/toast.js +6 -0
  48. package/dist/components/toast/toast.singleton.d.ts +26 -0
  49. package/dist/components/toast/toast.singleton.js +53 -0
  50. package/dist/components/toast/toast.styles.d.ts +1 -0
  51. package/dist/components/toast/toast.styles.js +9 -0
  52. package/dist/components/toast-item/toast-item.component.d.ts +21 -0
  53. package/dist/components/toast-item/toast-item.component.js +65 -0
  54. package/dist/components/toast-item/toast-item.d.ts +6 -0
  55. package/dist/components/toast-item/toast-item.js +2 -0
  56. package/dist/components/toast-item/toast-item.styles.d.ts +2 -0
  57. package/dist/components/toast-item/toast-item.styles.js +16 -0
  58. package/dist/components/toast-wrapper/toast-wrapper.component.d.ts +24 -0
  59. package/dist/components/toast-wrapper/toast-wrapper.component.js +37 -0
  60. package/dist/components/toast-wrapper/toast-wrapper.d.ts +8 -0
  61. package/dist/components/toast-wrapper/toast-wrapper.js +6 -0
  62. package/dist/components/toast-wrapper/toast-wrapper.styles.d.ts +1 -0
  63. package/dist/components/toast-wrapper/toast-wrapper.styles.js +20 -0
  64. package/dist/custom-elements.json +1167 -311
  65. package/dist/index.d.ts +5 -0
  66. package/dist/index.js +57 -42
  67. package/dist/internal/components/formBase.d.ts +1 -0
  68. package/dist/internal/components/formBase.js +11 -11
  69. package/dist/internal/helpers/watch.d.ts +27 -0
  70. package/dist/internal/helpers/watch.js +28 -0
  71. package/dist/react/index.d.ts +6 -0
  72. package/dist/react/index.js +6 -0
  73. package/dist/react/skf-button/index.d.ts +7 -1
  74. package/dist/react/skf-button/index.js +5 -1
  75. package/dist/react/skf-progress/index.d.ts +3 -0
  76. package/dist/react/skf-progress/index.js +13 -0
  77. package/dist/react/skf-tab/index.d.ts +12 -0
  78. package/dist/react/skf-tab/index.js +18 -0
  79. package/dist/react/skf-tab-group/index.d.ts +3 -0
  80. package/dist/react/skf-tab-group/index.js +13 -0
  81. package/dist/react/skf-tab-panel/index.d.ts +3 -0
  82. package/dist/react/skf-tab-panel/index.js +13 -0
  83. package/dist/react/skf-toast/index.d.ts +3 -0
  84. package/dist/react/skf-toast/index.js +13 -0
  85. package/dist/react/skf-toast-wrapper/index.d.ts +3 -0
  86. package/dist/react/skf-toast-wrapper/index.js +13 -0
  87. package/dist/types/jsx/custom-element-jsx.d.ts +342 -806
  88. package/dist/types/vue/index.d.ts +147 -8
  89. package/dist/vscode.html-custom-data.json +116 -16
  90. package/dist/web-types.json +304 -35
  91. package/package.json +27 -27
@@ -1,3 +1,30 @@
1
+ import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
2
+ import type { SkfAlert } from "../../components/alert/alert.component.js";
3
+ import type { SkfButton } from "../../components/button/button.component.js";
4
+ import type { SkfCard } from "../../components/card/card.component.js";
5
+ import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
6
+ import type { SkfCollapse, CustomEvent } from "../../components/collapse/collapse.component.js";
7
+ import type { SkfDivider } from "../../components/divider/divider.component.js";
8
+ import type { SkfHeading } from "../../components/heading/heading.component.js";
9
+ import type { SkfIcon } from "../../components/icon/icon.component.js";
10
+ import type { SkfInput } from "../../components/input/input.component.js";
11
+ import type { SkfLink } from "../../components/link/link.component.js";
12
+ import type { SkfLoader } from "../../components/loader/loader.component.js";
13
+ import type { SkfLogo } from "../../components/logo/logo.component.js";
14
+ import type { SkfProgress } from "../../components/progress/progress.component.js";
15
+ import type { SkfRadio } from "../../components/radio/radio.component.js";
16
+ import type { SkfSelect } from "../../components/select/select.component.js";
17
+ import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
18
+ import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
19
+ import type { SkfSwitch } from "../../components/switch/switch.component.js";
20
+ import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
21
+ import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
22
+ import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
23
+ import type { SkfTag } from "../../components/tag/tag.component.js";
24
+ import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
25
+ import type { SkfToast } from "../../components/toast/toast.component.js";
26
+ import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
27
+
1
28
  /**
2
29
  * This type can be used to create scoped tags for your components.
3
30
  *
@@ -19,7 +46,7 @@ export type ScopedElements<Prefix extends string = "", Suffix extends string = "
19
46
  [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
20
47
  };
21
48
 
22
- type BaseProps = {
49
+ type BaseProps = Partial<HTMLElement> & {
23
50
  /** Content added between the opening and closing tags of the element */
24
51
  children?: any;
25
52
  /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
@@ -62,28 +89,28 @@ type BaseEvents = {};
62
89
 
63
90
  export type SkfAccordionProps = {
64
91
  /** If true, will animate the expand/collapse state */
65
- animated?: boolean | undefined;
92
+ animated?: SkfAccordion["animated"];
66
93
  /** Defines which heading element will be rendered */
67
- "heading-as"?: "h1" | "h2" | "h3" | "h4";
94
+ "heading-as"?: SkfAccordion["headingAs"];
68
95
  /** If true, adds a gap between each item */
69
- gap?: boolean | undefined;
96
+ gap?: SkfAccordion["gap"];
70
97
  /** If true, allowes multiple accordion items to open */
71
- multiple?: boolean | undefined;
98
+ multiple?: SkfAccordion["multiple"];
72
99
  /** If true, renders the small version */
73
- small?: boolean | undefined;
100
+ small?: SkfAccordion["small"];
74
101
  /** If true, will truncate all headings in collapsed state */
75
- truncate?: boolean | undefined;
102
+ truncate?: SkfAccordion["truncate"];
76
103
  };
77
104
 
78
105
  export type SkfAlertProps = {
79
106
  /** If true, alert is being used as a toast (alertdialog) with an close button */
80
- closeable?: boolean | undefined;
107
+ closeable?: SkfAlert["closeable"];
81
108
  /** Close button aria-label */
82
- "button-label"?: string;
109
+ "button-label"?: SkfAlert["buttonLabel"];
83
110
  /** If defined, displays leading icon */
84
- icon?: SkfIcon["name"] | undefined;
111
+ icon?: SkfAlert["icon"];
85
112
  /** If defined, gives the supplied appearance */
86
- severity?: "error" | "info" | "warning" | "success" | "alert";
113
+ severity?: SkfAlert["severity"];
87
114
 
88
115
  /** Fires when the close button is clicked */
89
116
  "onskf-alert-close"?: (e: CustomEvent<never>) => void;
@@ -91,214 +118,64 @@ export type SkfAlertProps = {
91
118
 
92
119
  export type SkfButtonProps = {
93
120
  /** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
94
- destructive?: boolean;
121
+ destructive?: SkfButton["destructive"];
95
122
  /** If true, removes border */
96
- disabled?: boolean;
123
+ disabled?: SkfButton["disabled"];
97
124
  /** If provided, renders an icon before or after the text */
98
- icon?:
99
- | "arrowDown"
100
- | "arrowDownUp"
101
- | "arrowLeft"
102
- | "arrowRight"
103
- | "arrowUp"
104
- | "article"
105
- | "artificialIntelligence"
106
- | "asset"
107
- | "attachment"
108
- | "bandCursor"
109
- | "bands"
110
- | "batteryEmpty"
111
- | "batteryFull"
112
- | "batteryLow"
113
- | "bearingFault"
114
- | "book"
115
- | "bulb"
116
- | "burger"
117
- | "cPM"
118
- | "calendar"
119
- | "calendarBooked"
120
- | "calendarEmpty"
121
- | "calendarNotBooked"
122
- | "calendarRecurring"
123
- | "caretDown"
124
- | "caretUp"
125
- | "caretUpDown"
126
- | "chat"
127
- | "check"
128
- | "checkCircle"
129
- | "checkSmall"
130
- | "chevronDown"
131
- | "chevronLeft"
132
- | "chevronRight"
133
- | "chevronUp"
134
- | "chevronUpDown"
135
- | "close"
136
- | "closeAllFaults"
137
- | "closeFault"
138
- | "closeSmall"
139
- | "columnGraph"
140
- | "comment"
141
- | "connection1"
142
- | "connection2"
143
- | "connection3"
144
- | "connection4"
145
- | "danger"
146
- | "defectFrequencies"
147
- | "defectFrequenciesAlternative"
148
- | "doubleChevronLeft"
149
- | "doubleChevronRight"
150
- | "download"
151
- | "draft"
152
- | "draftFilled"
153
- | "draftOutlined"
154
- | "dragNDrop"
155
- | "drop"
156
- | "duplicate"
157
- | "edit"
158
- | "emailFilled"
159
- | "emailOutlined"
160
- | "exclamation"
161
- | "eye"
162
- | "eyeHidden"
163
- | "eyeVisible"
164
- | "filter"
165
- | "forbidden"
166
- | "fullScreen"
167
- | "fullScreenExit"
168
- | "functionalLocation"
169
- | "harmonicCursor"
170
- | "heatmap"
171
- | "hierarchy"
172
- | "history"
173
- | "historyAlt"
174
- | "hourglassFramedFilled"
175
- | "hourglassFramedOutlined"
176
- | "hourglassOutlined"
177
- | "hz"
178
- | "iMX"
179
- | "image"
180
- | "infoCircleFilled"
181
- | "infoCircleOutlined"
182
- | "integration"
183
- | "kebab"
184
- | "link"
185
- | "listGroup"
186
- | "listItem"
187
- | "locationPin"
188
- | "lock"
189
- | "logOut"
190
- | "meatballs"
191
- | "microphone"
192
- | "minus"
193
- | "minusSmall"
194
- | "noData"
195
- | "o"
196
- | "openInNew"
197
- | "overlayBaseline"
198
- | "pDF"
199
- | "paper"
200
- | "pause"
201
- | "pieChart"
202
- | "pin"
203
- | "play"
204
- | "plus"
205
- | "powerOff"
206
- | "printer"
207
- | "proCollect"
208
- | "recAction"
209
- | "received"
210
- | "refresh"
211
- | "reorder"
212
- | "replace"
213
- | "reply"
214
- | "rewalkableRoute"
215
- | "routes"
216
- | "search"
217
- | "send"
218
- | "sensorA"
219
- | "sensorB"
220
- | "settings"
221
- | "sidebandCursor"
222
- | "singleCursor"
223
- | "spectrum"
224
- | "starFilled"
225
- | "starOutlined"
226
- | "statusCircle"
227
- | "stop"
228
- | "structuralVibration"
229
- | "sync"
230
- | "timewave"
231
- | "trash"
232
- | "trend"
233
- | "trendingUp"
234
- | "undo"
235
- | "unknownCircle"
236
- | "unknownDiamond"
237
- | "unlink"
238
- | "unlock"
239
- | "unscheduledAction"
240
- | "upload"
241
- | "user"
242
- | "viewFull"
243
- | "viewHorizontal"
244
- | "viewVertical"
245
- | "warning"
246
- | "warningCircle"
247
- | "warningDiamond"
248
- | "zoomIn"
249
- | "zoomOut";
125
+ icon?: SkfButton["icon"];
250
126
  /** If provided, determines the positioning of the icon in relation to the text */
251
- "icon-position"?: "left" | "right" | undefined;
127
+ "icon-position"?: SkfButton["iconPosition"];
252
128
  /** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
253
- loading?: boolean;
129
+ loading?: SkfButton["loading"];
130
+ /** */
131
+ "no-validate"?: SkfButton["noValidate"];
254
132
  /** If provided, displays an alternative size */
255
- size?: "sm" | "md" | "lg";
133
+ size?: SkfButton["size"];
256
134
  /** If provided, changes the button type */
257
- type?: "button" | "submit" | "reset";
135
+ type?: SkfButton["type"];
258
136
  /** If provided, alters the appearance */
259
- variant?: "primary" | "secondary";
137
+ variant?: SkfButton["variant"];
138
+
139
+ /** Fires when the button is clicked */
140
+ onclick?: (e: CustomEvent<never>) => void;
260
141
  };
261
142
 
262
143
  export type SkfCardProps = {
263
144
  /** If true, removes border */
264
- "no-border"?: boolean | undefined;
145
+ "no-border"?: SkfCard["noBorder"];
265
146
  /** If true, removes padding */
266
- "no-padding"?: boolean | undefined;
147
+ "no-padding"?: SkfCard["noPadding"];
267
148
  /** If true, the Card fills the parent element height */
268
- stretch?: boolean | undefined;
149
+ stretch?: SkfCard["stretch"];
269
150
  };
270
151
 
271
152
  export type SkfCheckboxProps = {
272
153
  /** If true, sets disabled state */
273
- disabled?: boolean;
154
+ disabled?: SkfCheckbox["undefined"];
274
155
  /** If true, value is required or must be checked for the form to be submittable */
275
- required?: boolean;
156
+ required?: SkfCheckbox["undefined"];
276
157
  /** If defined, outputs helping hints in console */
277
- debug?: boolean | undefined;
158
+ debug?: SkfCheckbox["debug"];
278
159
  /** If true, outputs helping hints in console */
279
- checked?: boolean | undefined;
160
+ checked?: SkfCheckbox["checked"];
280
161
  /** If true, forces component to invalid state until removed */
281
- "custom-invalid"?: boolean | undefined;
282
- /** If true, hides the label visually */
283
- "hide-label"?: boolean | undefined;
162
+ "custom-invalid"?: SkfCheckbox["customInvalid"];
284
163
  /** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
285
- indeterminate?: boolean | undefined;
286
- /** Read only indicator of the local state. Use custom-invalid to set it to invalid state. */
287
- invalid?: boolean | undefined;
164
+ indeterminate?: SkfCheckbox["indeterminate"];
288
165
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
289
- label?: string | undefined;
166
+ label?: SkfCheckbox["label"];
290
167
  /** If defined, adds name to the input-element */
291
- name?: string | undefined;
168
+ name?: SkfCheckbox["name"];
292
169
  /** If defined, renders an alternative A11y text for the asterisk */
293
- "required-label"?: string | undefined;
170
+ "required-label"?: SkfCheckbox["requiredLabel"];
294
171
  /** If defined, styles checkbox using provided severity */
295
- severity?: "alert" | "success" | "info" | "warning";
172
+ severity?: SkfCheckbox["severity"];
296
173
  /** If true, displays valid state after interaction */
297
- "show-valid"?: boolean | undefined;
174
+ "show-valid"?: SkfCheckbox["showValid"];
298
175
  /** Size of the checkbox */
299
- size?: "sm" | "md";
176
+ size?: SkfCheckbox["size"];
300
177
  /** The current value of the input field */
301
- value?: string;
178
+ value?: SkfCheckbox["value"];
302
179
 
303
180
  /** {object} - When the value of the input changes */
304
181
  onchange?: (e: CustomEvent<never>) => void;
@@ -306,17 +183,17 @@ export type SkfCheckboxProps = {
306
183
 
307
184
  export type SkfCollapseProps = {
308
185
  /** If true, will animate the expand/collapse state */
309
- animated?: boolean | undefined;
186
+ animated?: SkfCollapse["animated"];
310
187
  /** If true, will set the collapse to be expanded by default */
311
- expanded?: boolean | undefined;
188
+ expanded?: SkfCollapse["expanded"];
312
189
  /** Heading for the collapse */
313
- heading?: string | undefined;
190
+ heading?: SkfCollapse["heading"];
314
191
  /** Defines which heading element will be rendered */
315
- "heading-as"?: "h1" | "h2" | "h3" | "h4";
192
+ "heading-as"?: SkfCollapse["headingAs"];
316
193
  /** If true, renders the small version */
317
- small?: boolean | undefined;
194
+ small?: SkfCollapse["small"];
318
195
  /** If true, will truncate the heading in collapsed state */
319
- truncate?: boolean | undefined;
196
+ truncate?: SkfCollapse["truncate"];
320
197
 
321
198
  /** Event emitted when toggled */
322
199
  "onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
@@ -324,259 +201,90 @@ export type SkfCollapseProps = {
324
201
 
325
202
  export type SkfDividerProps = {
326
203
  /** Defines the Divider color */
327
- color?: "emphasised" | "primary" | "secondary" | "tertiary" | "inverse";
204
+ color?: SkfDivider["color"];
328
205
  /** If true, renders a div for presentational purpose instead of the semantic hr-element */
329
- decorative?: boolean | undefined;
206
+ decorative?: SkfDivider["decorative"];
330
207
  /** If true, renders the divider vertically */
331
- vertical?: boolean | undefined;
208
+ vertical?: SkfDivider["vertical"];
332
209
  };
333
210
 
334
211
  export type SkfHeadingProps = {
335
212
  /** Controls which heading element will be rendered. Should not be used to affect appearance */
336
- as?: "h1" | "h2" | "h3" | "h4";
213
+ as?: SkfHeading["as"];
337
214
  /** If provided, changes the appearance of the heading */
338
- "styled-as"?: "h1" | "h2" | "h3" | "h4";
215
+ "styled-as"?: SkfHeading["styledAs"];
339
216
  };
340
217
 
341
218
  export type SkfIconProps = {
342
219
  /** Sets the color of the icon */
343
- color?: "primary" | "inverse" | "emphasised" | "secondary" | "success" | "info" | "warning" | "error" | "alert";
220
+ color?: SkfIcon["color"];
344
221
  /** If defined, adds an alternate description to use for assistive devices */
345
- label?: string | undefined;
222
+ label?: SkfIcon["label"];
346
223
  /** Name of the icon to display */
347
- name?:
348
- | "arrowDown"
349
- | "arrowDownUp"
350
- | "arrowLeft"
351
- | "arrowRight"
352
- | "arrowUp"
353
- | "article"
354
- | "artificialIntelligence"
355
- | "asset"
356
- | "attachment"
357
- | "bandCursor"
358
- | "bands"
359
- | "batteryEmpty"
360
- | "batteryFull"
361
- | "batteryLow"
362
- | "bearingFault"
363
- | "book"
364
- | "bulb"
365
- | "burger"
366
- | "cPM"
367
- | "calendar"
368
- | "calendarBooked"
369
- | "calendarEmpty"
370
- | "calendarNotBooked"
371
- | "calendarRecurring"
372
- | "caretDown"
373
- | "caretUp"
374
- | "caretUpDown"
375
- | "chat"
376
- | "check"
377
- | "checkCircle"
378
- | "checkSmall"
379
- | "chevronDown"
380
- | "chevronLeft"
381
- | "chevronRight"
382
- | "chevronUp"
383
- | "chevronUpDown"
384
- | "close"
385
- | "closeAllFaults"
386
- | "closeFault"
387
- | "closeSmall"
388
- | "columnGraph"
389
- | "comment"
390
- | "connection1"
391
- | "connection2"
392
- | "connection3"
393
- | "connection4"
394
- | "danger"
395
- | "defectFrequencies"
396
- | "defectFrequenciesAlternative"
397
- | "doubleChevronLeft"
398
- | "doubleChevronRight"
399
- | "download"
400
- | "draft"
401
- | "draftFilled"
402
- | "draftOutlined"
403
- | "dragNDrop"
404
- | "drop"
405
- | "duplicate"
406
- | "edit"
407
- | "emailFilled"
408
- | "emailOutlined"
409
- | "exclamation"
410
- | "eye"
411
- | "eyeHidden"
412
- | "eyeVisible"
413
- | "filter"
414
- | "forbidden"
415
- | "fullScreen"
416
- | "fullScreenExit"
417
- | "functionalLocation"
418
- | "harmonicCursor"
419
- | "heatmap"
420
- | "hierarchy"
421
- | "history"
422
- | "historyAlt"
423
- | "hourglassFramedFilled"
424
- | "hourglassFramedOutlined"
425
- | "hourglassOutlined"
426
- | "hz"
427
- | "iMX"
428
- | "image"
429
- | "infoCircleFilled"
430
- | "infoCircleOutlined"
431
- | "integration"
432
- | "kebab"
433
- | "link"
434
- | "listGroup"
435
- | "listItem"
436
- | "locationPin"
437
- | "lock"
438
- | "logOut"
439
- | "meatballs"
440
- | "microphone"
441
- | "minus"
442
- | "minusSmall"
443
- | "noData"
444
- | "o"
445
- | "openInNew"
446
- | "overlayBaseline"
447
- | "pDF"
448
- | "paper"
449
- | "pause"
450
- | "pieChart"
451
- | "pin"
452
- | "play"
453
- | "plus"
454
- | "powerOff"
455
- | "printer"
456
- | "proCollect"
457
- | "recAction"
458
- | "received"
459
- | "refresh"
460
- | "reorder"
461
- | "replace"
462
- | "reply"
463
- | "rewalkableRoute"
464
- | "routes"
465
- | "search"
466
- | "send"
467
- | "sensorA"
468
- | "sensorB"
469
- | "settings"
470
- | "sidebandCursor"
471
- | "singleCursor"
472
- | "spectrum"
473
- | "starFilled"
474
- | "starOutlined"
475
- | "statusCircle"
476
- | "stop"
477
- | "structuralVibration"
478
- | "sync"
479
- | "timewave"
480
- | "trash"
481
- | "trend"
482
- | "trendingUp"
483
- | "undo"
484
- | "unknownCircle"
485
- | "unknownDiamond"
486
- | "unlink"
487
- | "unlock"
488
- | "unscheduledAction"
489
- | "upload"
490
- | "user"
491
- | "viewFull"
492
- | "viewHorizontal"
493
- | "viewVertical"
494
- | "warning"
495
- | "warningCircle"
496
- | "warningDiamond"
497
- | "zoomIn"
498
- | "zoomOut";
224
+ name?: SkfIcon["name"];
499
225
  /** Size of the icon */
500
- size?: "xs" | "sm" | "md" | "lg";
226
+ size?: SkfIcon["size"];
501
227
  };
502
228
 
503
229
  export type SkfInputProps = {
504
230
  /** If true, sets disabled state */
505
- disabled?: boolean;
231
+ disabled?: SkfInput["undefined"];
506
232
  /** If true, value is required or must be checked for the form to be submittable */
507
- required?: boolean;
233
+ required?: SkfInput["undefined"];
234
+ /** -m } */
235
+ autocomplete?: SkfInput["autocomplete"];
508
236
  /** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
509
- "button-aria-label-clear"?: string;
237
+ "button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
510
238
  /** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
511
- "button-aria-label-hide"?: string;
239
+ "button-aria-label-hide"?: SkfInput["buttonAriaLabelHide"];
512
240
  /** Custom aria-label for the visibility button **Notice!** Only applicable to type=password. */
513
- "button-aria-label-show"?: string;
241
+ "button-aria-label-show"?: SkfInput["buttonAriaLabelShow"];
514
242
  /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
515
- "custom-invalid"?: string;
243
+ "custom-invalid"?: SkfInput["customInvalid"];
516
244
  /** If true, outputs helping hints in console */
517
- debug?: boolean | undefined;
245
+ debug?: SkfInput["debug"];
518
246
  /** If true, hides the label visually */
519
- "hide-label"?: boolean | undefined;
247
+ "hide-label"?: SkfInput["hideLabel"];
520
248
  /** If defined, displays informational text below the field */
521
- hint?: string | undefined;
249
+ hint?: SkfInput["hint"];
522
250
  /** Tells what keyboard to use if applicable */
523
- inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
251
+ inputmode?: SkfInput["inputmode"];
524
252
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
525
- label?: string | undefined;
253
+ label?: SkfInput["label"];
526
254
  /** If defined, displays a prefix/adornment before the input-element */
527
- leading?: string | undefined;
255
+ leading?: SkfInput["leading"];
528
256
  /** If defined, sets the maximum value to accept for this input */
529
- max?: number | string | undefined;
257
+ max?: SkfInput["max"];
530
258
  /** If defined, sets the maximum character length to accept for this input */
531
- maxlength?: number | undefined;
259
+ maxlength?: SkfInput["maxLength"];
532
260
  /** If defined, sets the minimum value to accept for this input */
533
- min?: number | string | undefined;
261
+ min?: SkfInput["min"];
534
262
  /** If defined, sets the minimum character length to accept for this input */
535
- minlength?: number | undefined;
263
+ minlength?: SkfInput["minLength"];
536
264
  /** If defined, adds name to the input-element */
537
- name?: string | undefined;
265
+ name?: SkfInput["name"];
538
266
  /** If defined, adds name to the input-element */
539
- pattern?: string | undefined;
267
+ pattern?: SkfInput["pattern"];
540
268
  /** If defined, displays placeholder text */
541
- placeholder?: string | undefined;
269
+ placeholder?: SkfInput["placeholder"];
542
270
  /** If true, makes the element not mutable, meaning the user can not edit the control */
543
- readonly?: boolean | undefined;
271
+ readonly?: SkfInput["readonly"];
544
272
  /** If defined, renders an alternative A11y text for the asterisk */
545
- "required-label"?: string | undefined;
273
+ "required-label"?: SkfInput["requiredLabel"];
546
274
  /** If defined, displays provided severity state */
547
- severity?: "alert" | "success" | "info" | "warning";
275
+ severity?: SkfInput["severity"];
548
276
  /** If true, displays valid state after interaction */
549
- "show-valid"?: boolean | undefined;
277
+ "show-valid"?: SkfInput["showValid"];
550
278
  /** Size of the input */
551
- size?: "sm" | "md";
279
+ size?: SkfInput["size"];
552
280
  /** If defined, displays a suffix/adornment after the input-element */
553
- trailing?: string | undefined;
281
+ trailing?: SkfInput["trailing"];
554
282
  /** Type of input control */
555
- type?:
556
- | "button"
557
- | "color"
558
- | "date"
559
- | "datetime-local"
560
- | "email"
561
- | "file"
562
- | "hidden"
563
- | "image"
564
- | "month"
565
- | "number"
566
- | "password"
567
- | "range"
568
- | "reset"
569
- | "search"
570
- | "submit"
571
- | "tel"
572
- | "text"
573
- | "time"
574
- | "url"
575
- | "week";
283
+ type?: SkfInput["type"];
576
284
  /** Sets validation start */
577
- "validate-on"?: "input" | "change" | "submit";
285
+ "validate-on"?: SkfInput["validateOn"];
578
286
  /** The current value of the input field */
579
- value?: string;
287
+ value?: SkfInput["value"];
580
288
 
581
289
  /** Fires when the value of the input changes */
582
290
  onchange?: (e: CustomEvent<never>) => void;
@@ -586,231 +294,87 @@ export type SkfInputProps = {
586
294
 
587
295
  export type SkfLinkProps = {
588
296
  /** Defines the semantic element to render */
589
- as?: "button" | "a";
297
+ as?: SkfLink["as"];
590
298
  /** Defines the text-color */
591
- color?: "primary" | "inverse";
299
+ color?: SkfLink["color"];
592
300
  /** If true, disables the link */
593
- disabled?: boolean | undefined;
301
+ disabled?: SkfLink["disabled"];
594
302
  /** If defined, downloads the url */
595
- download?: string | undefined;
303
+ download?: SkfLink["download"];
596
304
  /** If defined, loads url on click */
597
- href?: string | undefined;
305
+ href?: SkfLink["href"];
598
306
  /** If defined, renders an icon before or after the text */
599
- icon?:
600
- | "arrowDown"
601
- | "arrowDownUp"
602
- | "arrowLeft"
603
- | "arrowRight"
604
- | "arrowUp"
605
- | "article"
606
- | "artificialIntelligence"
607
- | "asset"
608
- | "attachment"
609
- | "bandCursor"
610
- | "bands"
611
- | "batteryEmpty"
612
- | "batteryFull"
613
- | "batteryLow"
614
- | "bearingFault"
615
- | "book"
616
- | "bulb"
617
- | "burger"
618
- | "cPM"
619
- | "calendar"
620
- | "calendarBooked"
621
- | "calendarEmpty"
622
- | "calendarNotBooked"
623
- | "calendarRecurring"
624
- | "caretDown"
625
- | "caretUp"
626
- | "caretUpDown"
627
- | "chat"
628
- | "check"
629
- | "checkCircle"
630
- | "checkSmall"
631
- | "chevronDown"
632
- | "chevronLeft"
633
- | "chevronRight"
634
- | "chevronUp"
635
- | "chevronUpDown"
636
- | "close"
637
- | "closeAllFaults"
638
- | "closeFault"
639
- | "closeSmall"
640
- | "columnGraph"
641
- | "comment"
642
- | "connection1"
643
- | "connection2"
644
- | "connection3"
645
- | "connection4"
646
- | "danger"
647
- | "defectFrequencies"
648
- | "defectFrequenciesAlternative"
649
- | "doubleChevronLeft"
650
- | "doubleChevronRight"
651
- | "download"
652
- | "draft"
653
- | "draftFilled"
654
- | "draftOutlined"
655
- | "dragNDrop"
656
- | "drop"
657
- | "duplicate"
658
- | "edit"
659
- | "emailFilled"
660
- | "emailOutlined"
661
- | "exclamation"
662
- | "eye"
663
- | "eyeHidden"
664
- | "eyeVisible"
665
- | "filter"
666
- | "forbidden"
667
- | "fullScreen"
668
- | "fullScreenExit"
669
- | "functionalLocation"
670
- | "harmonicCursor"
671
- | "heatmap"
672
- | "hierarchy"
673
- | "history"
674
- | "historyAlt"
675
- | "hourglassFramedFilled"
676
- | "hourglassFramedOutlined"
677
- | "hourglassOutlined"
678
- | "hz"
679
- | "iMX"
680
- | "image"
681
- | "infoCircleFilled"
682
- | "infoCircleOutlined"
683
- | "integration"
684
- | "kebab"
685
- | "link"
686
- | "listGroup"
687
- | "listItem"
688
- | "locationPin"
689
- | "lock"
690
- | "logOut"
691
- | "meatballs"
692
- | "microphone"
693
- | "minus"
694
- | "minusSmall"
695
- | "noData"
696
- | "o"
697
- | "openInNew"
698
- | "overlayBaseline"
699
- | "pDF"
700
- | "paper"
701
- | "pause"
702
- | "pieChart"
703
- | "pin"
704
- | "play"
705
- | "plus"
706
- | "powerOff"
707
- | "printer"
708
- | "proCollect"
709
- | "recAction"
710
- | "received"
711
- | "refresh"
712
- | "reorder"
713
- | "replace"
714
- | "reply"
715
- | "rewalkableRoute"
716
- | "routes"
717
- | "search"
718
- | "send"
719
- | "sensorA"
720
- | "sensorB"
721
- | "settings"
722
- | "sidebandCursor"
723
- | "singleCursor"
724
- | "spectrum"
725
- | "starFilled"
726
- | "starOutlined"
727
- | "statusCircle"
728
- | "stop"
729
- | "structuralVibration"
730
- | "sync"
731
- | "timewave"
732
- | "trash"
733
- | "trend"
734
- | "trendingUp"
735
- | "undo"
736
- | "unknownCircle"
737
- | "unknownDiamond"
738
- | "unlink"
739
- | "unlock"
740
- | "unscheduledAction"
741
- | "upload"
742
- | "user"
743
- | "viewFull"
744
- | "viewHorizontal"
745
- | "viewVertical"
746
- | "warning"
747
- | "warningCircle"
748
- | "warningDiamond"
749
- | "zoomIn"
750
- | "zoomOut";
307
+ icon?: SkfLink["icon"];
751
308
  /** Defines the position of the icon in relation to the text */
752
- "icon-placement"?: "left" | "right";
309
+ "icon-placement"?: SkfLink["iconPlacement"];
753
310
  /** Defines the relationship of the target object to the link object */
754
- rel?: string;
311
+ rel?: SkfLink["rel"];
755
312
  /** If defined, used on conjunction with onClick property, second argument */
756
- route?: string | undefined;
313
+ route?: SkfLink["route"];
757
314
  /** If true, fills the parents horizontal axis */
758
- stretch?: boolean | undefined;
315
+ stretch?: SkfLink["stretch"];
759
316
  /** If defined, specifies where to open the linked document */
760
- target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
317
+ target?: SkfLink["target"];
761
318
  /** Defines the type of button */
762
- type?: "button" | "submit" | "reset";
319
+ type?: SkfLink["type"];
763
320
  /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
764
- onClick?: function;
321
+ onClick?: SkfLink["onClick"];
765
322
  };
766
323
 
767
324
  export type SkfLoaderProps = {
768
325
  /** Defines the aria-label */
769
- "aria-label"?: string;
326
+ "aria-label"?: SkfLoader["ariaLabel"];
770
327
  /** If true, inverts the color (to be used on colored backgrounds) */
771
- invert?: boolean | undefined;
328
+ invert?: SkfLoader["invert"];
772
329
  /** Defines the size of the loader */
773
- size?: "md" | "sm" | undefined;
330
+ size?: SkfLoader["size"];
774
331
  /** */
775
- role?: string;
332
+ role?: SkfLoader["role"];
776
333
  /** */
777
- ariaLive?: string;
334
+ ariaLive?: SkfLoader["ariaLive"];
778
335
  };
779
336
 
780
337
  export type SkfLogoProps = {
781
338
  /** Defines the title of the logo */
782
- title?: string;
339
+ title?: SkfLogo["title"];
783
340
  /** If defined, sets color of the logo */
784
- color?: "primary" | "secondary" | "inverse";
341
+ color?: SkfLogo["color"];
342
+ };
343
+
344
+ export type SkfProgressProps = {
345
+ /** If true, the progress-bar's fill value is animated */
346
+ animated?: SkfProgress["animated"];
347
+ /** Describes how much work the task indicated by the progress element requires */
348
+ max?: SkfProgress["max"];
349
+ /** Specifies how much of the task that has been completed */
350
+ value?: SkfProgress["value"];
785
351
  };
786
352
 
787
353
  export type SkfRadioProps = {
788
354
  /** If true, sets disabled state */
789
- disabled?: boolean;
355
+ disabled?: SkfRadio["undefined"];
790
356
  /** If true, value is required or must be checked for the form to be submittable */
791
- required?: boolean;
357
+ required?: SkfRadio["undefined"];
792
358
  /** If true, outputs helping hints in console */
793
- debug?: boolean | undefined;
359
+ debug?: SkfRadio["debug"];
794
360
  /** If true, outputs helping hints in console */
795
- checked?: boolean | undefined;
361
+ checked?: SkfRadio["checked"];
796
362
  /** If true, forces component to invalid state until removed */
797
- "custom-invalid"?: boolean | undefined;
798
- /** If true, hides the label visually */
799
- "hide-label"?: boolean | undefined;
363
+ "custom-invalid"?: SkfRadio["customInvalid"];
800
364
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
801
- label?: string | undefined;
365
+ label?: SkfRadio["label"];
802
366
  /** If defined, adds name to the input-element */
803
- name?: string | undefined;
367
+ name?: SkfRadio["name"];
804
368
  /** If defined, renders an alternative A11y text for the asterisk */
805
- "required-label"?: string | undefined;
369
+ "required-label"?: SkfRadio["requiredLabel"];
806
370
  /** Size of the Radio */
807
- size?: "sm" | "md";
371
+ size?: SkfRadio["size"];
808
372
  /** If defined, displays provided severity state */
809
- severity?: "success" | "info" | "warning" | "alert";
373
+ severity?: SkfRadio["severity"];
810
374
  /** If true, displays valid state after interaction */
811
- "show-valid"?: boolean | undefined;
375
+ "show-valid"?: SkfRadio["showValid"];
812
376
  /** The current value of the input field */
813
- value?: string;
377
+ value?: SkfRadio["value"];
814
378
 
815
379
  /** {object} - When the value of the input changes */
816
380
  onchange?: (e: CustomEvent<never>) => void;
@@ -818,43 +382,43 @@ export type SkfRadioProps = {
818
382
 
819
383
  export type SkfSelectProps = {
820
384
  /** If true, the select is disabled `default: false` */
821
- disabled?: boolean;
385
+ disabled?: SkfSelect["undefined"];
822
386
  /** Sets the first visible text on the component */
823
- "button-label"?: string;
387
+ "button-label"?: SkfSelect["buttonLabel"];
824
388
  /** If defined, forces component to invalid state until removed */
825
- "custom-invalid"?: string | undefined;
389
+ "custom-invalid"?: SkfSelect["customInvalid"];
826
390
  /** If true, hides the label visually */
827
- "hide-label"?: boolean | undefined;
391
+ "hide-label"?: SkfSelect["hideLabel"];
828
392
  /** If true and mulltiple is true, no tags are displayed under the select */
829
- "hide-tags"?: boolean | undefined;
393
+ "hide-tags"?: SkfSelect["hideTags"];
830
394
  /** If defined, sets the hint text under the select component in the form */
831
- hint?: string | undefined;
395
+ hint?: SkfSelect["hint"];
832
396
  /** If defined, displays provided label */
833
- label?: string | undefined;
397
+ label?: SkfSelect["label"];
834
398
  /** If defined, limits the number of selectable options */
835
- max?: number | undefined;
399
+ max?: SkfSelect["max"];
836
400
  /** If defined, sets the minimum number of required options */
837
- min?: number | undefined;
401
+ min?: SkfSelect["min"];
838
402
  /** If true, allows for multiple options to be selected */
839
- multiple?: boolean | undefined;
403
+ multiple?: SkfSelect["multiple"];
840
404
  /** If defined, set name of the component */
841
- name?: string | undefined;
405
+ name?: SkfSelect["name"];
842
406
  /** If defined, renders an alternative A11y text for the asterisk */
843
- "required-label"?: string | undefined;
407
+ "required-label"?: SkfSelect["requiredLabel"];
844
408
  /** If defined, displays provided severity state */
845
- severity?: FormFieldBaseProps["severity"] | undefined;
409
+ severity?: SkfSelect["severity"];
846
410
  /** If true, displays valid state after interaction */
847
- "show-valid"?: boolean | undefined;
411
+ "show-valid"?: SkfSelect["showValid"];
848
412
  /** Size of the Select */
849
- size?: "sm" | "md";
413
+ size?: SkfSelect["size"];
850
414
  /** A readonly property that returns the selected value(s) in a array */
851
- getSelectedValues?: string;
415
+ selectedValues?: SkfSelect["selectedValues"];
852
416
  /** A readonly property that returns the selected slot(s) text content in a array */
853
- getSelectedOptionsText?: string;
417
+ selectedOptionsText?: SkfSelect["selectedOptionsText"];
854
418
  /** Read only, returns the selected value. (if multiple: in a comma separated string) */
855
- value?: string;
419
+ value?: SkfSelect["value"];
856
420
  /** */
857
- _selectedOptions?: array;
421
+ _selectedOptions?: SkfSelect["_selectedOptions"];
858
422
  /** Fired when the selected option(s) changes */
859
423
  onchange?: (e: CustomEvent<never>) => void;
860
424
  /** Fired when the select is invalid */
@@ -869,264 +433,150 @@ export type SkfSelectProps = {
869
433
 
870
434
  export type SkfSelectOptionProps = {
871
435
  /** If true, prevents interaction with the option */
872
- disabled?: boolean | undefined;
436
+ disabled?: SkfSelectOption["disabled"];
873
437
  /** If defined, set an icon */
874
- icon?: SkfIcon["name"] | undefined;
438
+ icon?: SkfSelectOption["icon"];
875
439
  /** If defined, sets provided color on the icon */
876
- "icon-color"?: SeverityFgColor | undefined;
440
+ "icon-color"?: SkfSelectOption["iconColor"];
877
441
  /** If true, sets the option as selected */
878
- selected?: boolean | undefined;
442
+ selected?: SkfSelectOption["selected"];
879
443
  /** If defined, sets a short label */
880
- "short-label"?: string | undefined;
444
+ "short-label"?: SkfSelectOption["shortLabel"];
881
445
  /** Returns or sets the tags value. If value is omitted, defaults to the tags text. */
882
- value?: string;
446
+ value?: SkfSelectOption["value"];
883
447
  /** The option's label text (equivalent to the tags textContent) */
884
- text?: string;
448
+ text?: SkfSelectOption["text"];
885
449
  /** */
886
- role?: string;
450
+ role?: SkfSelectOption["role"];
887
451
  /** */
888
- _parent?: string;
452
+ _parent?: SkfSelectOption["_parent"];
889
453
  /** */
890
- _shortcutUpdate?: boolean;
454
+ _shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
891
455
  /** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
892
456
  "onskf-select-option:select"?: (e: CustomEvent<never>) => void;
893
457
  };
894
458
 
895
459
  export type SkfSelectOptionGroupProps = {
896
460
  /** */
897
- label?: string;
461
+ label?: SkfSelectOptionGroup["label"];
898
462
  };
899
463
 
900
464
  export type SkfSwitchProps = {
901
465
  /** If true, sets disabled state */
902
- disabled?: boolean;
466
+ disabled?: SkfSwitch["undefined"];
903
467
  /** If true, value is required or must be checked for the form to be submittable */
904
- required?: boolean;
468
+ required?: SkfSwitch["undefined"];
905
469
  /** If true, outputs helping hints in console */
906
- debug?: boolean | undefined;
470
+ debug?: SkfSwitch["debug"];
907
471
  /** If true, outputs helping hints in console */
908
- checked?: boolean | undefined;
472
+ checked?: SkfSwitch["checked"];
909
473
  /** If true, hides the label visually */
910
- "hide-label"?: boolean | undefined;
474
+ "hide-label"?: SkfSwitch["hideLabel"];
911
475
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
912
- label?: string | undefined;
476
+ label?: SkfSwitch["label"];
913
477
  /** If defined, adds name to the input-element */
914
- name?: string | undefined;
478
+ name?: SkfSwitch["name"];
915
479
  /** If defined, renders an alternative A11y text for the asterisk */
916
- "required-label"?: string | undefined;
480
+ "required-label"?: SkfSwitch["requiredLabel"];
917
481
  /** Size of the Switch */
918
- size?: "sm" | "md";
482
+ size?: SkfSwitch["size"];
919
483
  /** The current value of the input field */
920
- value?: string;
484
+ value?: SkfSwitch["value"];
485
+ };
486
+
487
+ export type SkfTabProps = {
488
+ /** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
489
+ panel?: SkfTab["panel"];
490
+ /** */
491
+ selected?: SkfTab["selected"];
492
+ /** */
493
+ variant?: SkfTab["variant"];
494
+ /** */
495
+ role?: SkfTab["role"];
496
+ /** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
497
+ "onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
498
+ /** Fired when the component is clicked */
499
+ onclick?: (e: CustomEvent<never>) => void;
500
+ };
501
+
502
+ export type SkfTabGroupProps = {
503
+ /** Sets the default selected tab */
504
+ "default-selected"?: SkfTabGroup["defaultSelected"];
505
+ /** If true, removes border */
506
+ "no-border"?: SkfTabGroup["noBorder"];
507
+ /** If true, removes padding */
508
+ "no-padding"?: SkfTabGroup["noPadding"];
509
+ /** If true, component fills the parent element height */
510
+ stretch?: SkfTabGroup["stretch"];
511
+ /** Sets the appearance of the tabs */
512
+ variant?: SkfTabGroup["variant"];
513
+ };
514
+
515
+ export type SkfTabPanelProps = {
516
+ /** The tab panel's name. */
517
+ name?: SkfTabPanel["name"];
518
+ /** */
519
+ active?: SkfTabPanel["active"];
520
+ /** */
521
+ role?: SkfTabPanel["role"];
921
522
  };
922
523
 
923
524
  export type SkfTagProps = {
924
525
  /** Specifies Tag size */
925
- size?: "sm" | "md" | "lg";
526
+ size?: SkfTag["size"];
926
527
  /** If defined, displays leading/provided icon */
927
- icon?:
928
- | "arrowDown"
929
- | "arrowDownUp"
930
- | "arrowLeft"
931
- | "arrowRight"
932
- | "arrowUp"
933
- | "article"
934
- | "artificialIntelligence"
935
- | "asset"
936
- | "attachment"
937
- | "bandCursor"
938
- | "bands"
939
- | "batteryEmpty"
940
- | "batteryFull"
941
- | "batteryLow"
942
- | "bearingFault"
943
- | "book"
944
- | "bulb"
945
- | "burger"
946
- | "cPM"
947
- | "calendar"
948
- | "calendarBooked"
949
- | "calendarEmpty"
950
- | "calendarNotBooked"
951
- | "calendarRecurring"
952
- | "caretDown"
953
- | "caretUp"
954
- | "caretUpDown"
955
- | "chat"
956
- | "check"
957
- | "checkCircle"
958
- | "checkSmall"
959
- | "chevronDown"
960
- | "chevronLeft"
961
- | "chevronRight"
962
- | "chevronUp"
963
- | "chevronUpDown"
964
- | "close"
965
- | "closeAllFaults"
966
- | "closeFault"
967
- | "closeSmall"
968
- | "columnGraph"
969
- | "comment"
970
- | "connection1"
971
- | "connection2"
972
- | "connection3"
973
- | "connection4"
974
- | "danger"
975
- | "defectFrequencies"
976
- | "defectFrequenciesAlternative"
977
- | "doubleChevronLeft"
978
- | "doubleChevronRight"
979
- | "download"
980
- | "draft"
981
- | "draftFilled"
982
- | "draftOutlined"
983
- | "dragNDrop"
984
- | "drop"
985
- | "duplicate"
986
- | "edit"
987
- | "emailFilled"
988
- | "emailOutlined"
989
- | "exclamation"
990
- | "eye"
991
- | "eyeHidden"
992
- | "eyeVisible"
993
- | "filter"
994
- | "forbidden"
995
- | "fullScreen"
996
- | "fullScreenExit"
997
- | "functionalLocation"
998
- | "harmonicCursor"
999
- | "heatmap"
1000
- | "hierarchy"
1001
- | "history"
1002
- | "historyAlt"
1003
- | "hourglassFramedFilled"
1004
- | "hourglassFramedOutlined"
1005
- | "hourglassOutlined"
1006
- | "hz"
1007
- | "iMX"
1008
- | "image"
1009
- | "infoCircleFilled"
1010
- | "infoCircleOutlined"
1011
- | "integration"
1012
- | "kebab"
1013
- | "link"
1014
- | "listGroup"
1015
- | "listItem"
1016
- | "locationPin"
1017
- | "lock"
1018
- | "logOut"
1019
- | "meatballs"
1020
- | "microphone"
1021
- | "minus"
1022
- | "minusSmall"
1023
- | "noData"
1024
- | "o"
1025
- | "openInNew"
1026
- | "overlayBaseline"
1027
- | "pDF"
1028
- | "paper"
1029
- | "pause"
1030
- | "pieChart"
1031
- | "pin"
1032
- | "play"
1033
- | "plus"
1034
- | "powerOff"
1035
- | "printer"
1036
- | "proCollect"
1037
- | "recAction"
1038
- | "received"
1039
- | "refresh"
1040
- | "reorder"
1041
- | "replace"
1042
- | "reply"
1043
- | "rewalkableRoute"
1044
- | "routes"
1045
- | "search"
1046
- | "send"
1047
- | "sensorA"
1048
- | "sensorB"
1049
- | "settings"
1050
- | "sidebandCursor"
1051
- | "singleCursor"
1052
- | "spectrum"
1053
- | "starFilled"
1054
- | "starOutlined"
1055
- | "statusCircle"
1056
- | "stop"
1057
- | "structuralVibration"
1058
- | "sync"
1059
- | "timewave"
1060
- | "trash"
1061
- | "trend"
1062
- | "trendingUp"
1063
- | "undo"
1064
- | "unknownCircle"
1065
- | "unknownDiamond"
1066
- | "unlink"
1067
- | "unlock"
1068
- | "unscheduledAction"
1069
- | "upload"
1070
- | "user"
1071
- | "viewFull"
1072
- | "viewHorizontal"
1073
- | "viewVertical"
1074
- | "warning"
1075
- | "warningCircle"
1076
- | "warningDiamond"
1077
- | "zoomIn"
1078
- | "zoomOut";
528
+ icon?: SkfTag["icon"];
1079
529
  /** If defined, gives the supplied appearance */
1080
- color?: "warning" | "success" | "info" | "error" | "alert";
530
+ color?: SkfTag["color"];
1081
531
  /** If true, adds trailing button to remove tag */
1082
- removable?: boolean | undefined;
532
+ removable?: SkfTag["removable"];
1083
533
  /** If defined, accepts a function that runs on click */
1084
- onClick?: string;
534
+ onClick?: SkfTag["onClick"];
1085
535
  /** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
1086
- onRemove?: string;
536
+ onRemove?: SkfTag["onRemove"];
1087
537
  };
1088
538
 
1089
539
  export type SkfTextAreaProps = {
1090
540
  /** If true, sets disabled state */
1091
- disabled?: boolean;
541
+ disabled?: SkfTextArea["undefined"];
1092
542
  /** If true, value is required or must be checked for the form to be submittable */
1093
- required?: boolean;
543
+ required?: SkfTextArea["undefined"];
1094
544
  /** If defined, sets the cols of the textarea */
1095
- cols?: number | undefined;
545
+ cols?: SkfTextArea["cols"];
1096
546
  /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
1097
- "custom-invalid"?: string;
547
+ "custom-invalid"?: SkfTextArea["customInvalid"];
1098
548
  /** If true, outputs helping hints in console */
1099
- debug?: boolean | undefined;
549
+ debug?: SkfTextArea["debug"];
1100
550
  /** If true, hides the label visually */
1101
- "hide-label"?: boolean | undefined;
551
+ "hide-label"?: SkfTextArea["hideLabel"];
1102
552
  /** If defined, displays informational text below the field */
1103
- hint?: string | undefined;
553
+ hint?: SkfTextArea["hint"];
1104
554
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
1105
- label?: string | undefined;
555
+ label?: SkfTextArea["label"];
1106
556
  /** If defined, adds name to the input-element */
1107
- name?: string | undefined;
557
+ name?: SkfTextArea["name"];
1108
558
  /** If defined, sets the maximum character length to accept for this input */
1109
- maxlength?: number | undefined;
559
+ maxlength?: SkfTextArea["maxLength"];
1110
560
  /** If defined, sets the minimum character length to accept for this input */
1111
- minlength?: number | undefined;
561
+ minlength?: SkfTextArea["minLength"];
1112
562
  /** If defined, displays placeholder text */
1113
- placeholder?: string | undefined;
563
+ placeholder?: SkfTextArea["placeholder"];
1114
564
  /** If true, makes the element not mutable, meaning the user can not edit the control */
1115
- readonly?: boolean | undefined;
565
+ readonly?: SkfTextArea["readonly"];
1116
566
  /** If defined, renders an alternative A11y text for the asterisk */
1117
- "required-label"?: string | undefined;
567
+ "required-label"?: SkfTextArea["requiredLabel"];
1118
568
  /** If defined, sets the rows of the textarea */
1119
- rows?: number | undefined;
569
+ rows?: SkfTextArea["rows"];
1120
570
  /** If defined, displays provided severity state */
1121
- severity?: "success" | "info" | "warning" | "alert";
571
+ severity?: SkfTextArea["severity"];
1122
572
  /** If true, displays valid state after interaction */
1123
- "show-valid"?: boolean | undefined;
573
+ "show-valid"?: SkfTextArea["showValid"];
1124
574
  /** Size of the Textarea */
1125
- size?: "sm" | "md" | undefined;
575
+ size?: SkfTextArea["size"];
1126
576
  /** Sets validation start */
1127
- "validate-on"?: "input" | "change" | "submit";
577
+ "validate-on"?: SkfTextArea["validateOn"];
1128
578
  /** The current value of the text area */
1129
- value?: string;
579
+ value?: SkfTextArea["value"];
1130
580
 
1131
581
  /** Fires when the value of the input changes */
1132
582
  onchange?: (e: CustomEvent<never>) => void;
@@ -1134,6 +584,24 @@ export type SkfTextAreaProps = {
1134
584
  oninvalid?: (e: CustomEvent<never>) => void;
1135
585
  };
1136
586
 
587
+ export type SkfToastProps = {
588
+ /** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
589
+ closeable?: SkfToast["closeable"];
590
+ /** */
591
+ debug?: SkfToast["debug"];
592
+ /** Severity of the toast. */
593
+ severity?: SkfToast["severity"];
594
+ /** Time in seconds before the toast disappears. */
595
+ timer?: SkfToast["timer"];
596
+ /** offsets where toasts emerge vertically */
597
+ topOffset?: SkfToast["topOffset"];
598
+ };
599
+
600
+ export type SkfToastWrapperProps = {
601
+ /** */
602
+ debug?: SkfToastWrapper["debug"];
603
+ };
604
+
1137
605
  export type CustomElements = {
1138
606
  /**
1139
607
  * The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
@@ -1166,6 +634,12 @@ export type CustomElements = {
1166
634
  * ---
1167
635
  *
1168
636
  *
637
+ * ### **Events:**
638
+ * - **click** - Fires when the button is clicked
639
+ *
640
+ * ### **Methods:**
641
+ * - **click()** - Simulates a click on the button.
642
+ *
1169
643
  * ### **Slots:**
1170
644
  * - _default_ - The Primary content
1171
645
  */
@@ -1283,6 +757,13 @@ export type CustomElements = {
1283
757
  */
1284
758
  "skf-logo": Partial<SkfLogoProps & BaseProps & BaseEvents>;
1285
759
 
760
+ /**
761
+ * The `<skf-progress>` element displays an indicator showing the completion progress of a task, typically displayed as a progress bar
762
+ * ---
763
+ *
764
+ */
765
+ "skf-progress": Partial<SkfProgressProps & BaseProps & BaseEvents>;
766
+
1286
767
  /**
1287
768
  * The `<skf-radio>` component is used to create a radio input
1288
769
  * ---
@@ -1347,6 +828,41 @@ export type CustomElements = {
1347
828
  */
1348
829
  "skf-switch": Partial<SkfSwitchProps & BaseProps & BaseEvents>;
1349
830
 
831
+ /**
832
+ * The `<skf-tab>` is a component that displays a list of actions or options
833
+ * ---
834
+ *
835
+ *
836
+ * ### **Events:**
837
+ * - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
838
+ * - **click** - Fired when the component is clicked
839
+ *
840
+ * ### **Slots:**
841
+ * - _default_ - The tab's label
842
+ */
843
+ "skf-tab": Partial<SkfTabProps & BaseProps & BaseEvents>;
844
+
845
+ /**
846
+ * The `<skf-tab-group>` is a component that displays a list of actions or options.
847
+ * ---
848
+ *
849
+ *
850
+ * ### **Slots:**
851
+ * - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
852
+ * - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
853
+ */
854
+ "skf-tab-group": Partial<SkfTabGroupProps & BaseProps & BaseEvents>;
855
+
856
+ /**
857
+ * The `<skf-tab-panel>` is a component that displays a list of actions or options.
858
+ * ---
859
+ *
860
+ *
861
+ * ### **Slots:**
862
+ * - _default_ - The tab panel's content
863
+ */
864
+ "skf-tab-panel": Partial<SkfTabPanelProps & BaseProps & BaseEvents>;
865
+
1350
866
  /**
1351
867
  * The `<skf-tag>` is a component that displays a list of actions or options
1352
868
  * ---
@@ -1370,4 +886,24 @@ export type CustomElements = {
1370
886
  * - _default_ - The textareas label. Alternatively, you can use the `label` attribute.
1371
887
  */
1372
888
  "skf-textarea": Partial<SkfTextAreaProps & BaseProps & BaseEvents>;
889
+
890
+ /**
891
+ * A simple toast component that displays a message to the user. Use by appending a &lt;skf-toast&gt; tag to the DOM. Position in DOM is irrelevant.
892
+ * ---
893
+ *
894
+ *
895
+ * ### **Slots:**
896
+ * - _default_ - The component's placeholder content
897
+ */
898
+ "skf-toast": Partial<SkfToastProps & BaseProps & BaseEvents>;
899
+
900
+ /**
901
+ * The `<skf-toast-wrapper>` is a component without UI that positions where the toast shows up on the screen. The toast-wrapper is used internally by the toast component.
902
+ * ---
903
+ *
904
+ *
905
+ * ### **Slots:**
906
+ * - _default_ - The alert components that the toast creates will render here.
907
+ */
908
+ "skf-toast-wrapper": Partial<SkfToastWrapperProps & BaseProps & BaseEvents>;
1373
909
  };