@skf-design-system/ui-components 1.0.0-beta.5 → 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/dist/components/accordion/accordion-item.d.ts +1 -1
  2. package/dist/components/accordion/accordion.component.d.ts +4 -4
  3. package/dist/components/accordion/accordion.component.js +18 -17
  4. package/dist/components/accordion/accordion.styles.d.ts +1 -2
  5. package/dist/components/accordion/accordion.styles.js +5 -4
  6. package/dist/components/alert/alert.component.d.ts +5 -5
  7. package/dist/components/alert/alert.component.js +46 -35
  8. package/dist/components/alert/alert.styles.d.ts +1 -2
  9. package/dist/components/alert/alert.styles.js +29 -24
  10. package/dist/components/breadcrumb/breadcrumb.component.d.ts +29 -0
  11. package/dist/components/breadcrumb/breadcrumb.d.ts +8 -0
  12. package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +25 -0
  13. package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +8 -0
  14. package/dist/components/button/button.component.d.ts +29 -5
  15. package/dist/components/button/button.component.js +89 -52
  16. package/dist/components/button/button.styles.js +65 -45
  17. package/dist/components/card/card.component.d.ts +4 -4
  18. package/dist/components/card/card.component.js +35 -24
  19. package/dist/components/card/card.styles.d.ts +1 -2
  20. package/dist/components/card/card.styles.js +14 -12
  21. package/dist/components/checkbox/checkbox.component.d.ts +11 -12
  22. package/dist/components/checkbox/checkbox.component.js +96 -90
  23. package/dist/components/collapse/collapse.component.d.ts +8 -8
  24. package/dist/components/collapse/collapse.component.js +42 -34
  25. package/dist/components/collapse/collapse.styles.js +15 -14
  26. package/dist/components/dialog/dialog.component.d.ts +74 -0
  27. package/dist/components/dialog/dialog.component.js +187 -0
  28. package/dist/components/dialog/dialog.d.ts +8 -0
  29. package/dist/components/dialog/dialog.js +6 -0
  30. package/dist/components/dialog/dialog.styles.d.ts +1 -0
  31. package/dist/components/dialog/dialog.styles.js +91 -0
  32. package/dist/components/divider/divider.component.d.ts +3 -3
  33. package/dist/components/divider/divider.component.js +39 -27
  34. package/dist/components/divider/divider.styles.d.ts +1 -2
  35. package/dist/components/divider/divider.styles.js +26 -26
  36. package/dist/components/heading/heading.component.d.ts +2 -2
  37. package/dist/components/heading/heading.component.js +13 -13
  38. package/dist/components/icon/icon.component.d.ts +2 -5
  39. package/dist/components/icon/icon.component.js +32 -23
  40. package/dist/components/icon/icon.styles.js +53 -47
  41. package/dist/components/input/input.component.d.ts +12 -11
  42. package/dist/components/input/input.component.js +88 -89
  43. package/dist/components/link/link.component.d.ts +7 -6
  44. package/dist/components/link/link.component.js +49 -43
  45. package/dist/components/link/link.styles.js +36 -40
  46. package/dist/components/loader/loader.component.d.ts +2 -2
  47. package/dist/components/loader/loader.component.js +39 -32
  48. package/dist/components/loader/loader.styles.js +11 -10
  49. package/dist/components/logo/logo.component.d.ts +3 -3
  50. package/dist/components/logo/logo.component.js +28 -17
  51. package/dist/components/logo/logo.styles.d.ts +1 -2
  52. package/dist/components/logo/logo.styles.js +11 -9
  53. package/dist/components/menu/menu.component.d.ts +24 -0
  54. package/dist/components/menu/menu.component.js +18 -0
  55. package/dist/components/menu/menu.d.ts +8 -0
  56. package/dist/components/menu/menu.js +6 -0
  57. package/dist/components/menu/menu.styles.d.ts +1 -0
  58. package/dist/components/menu/menu.styles.js +11 -0
  59. package/dist/components/menu-item/menu-item.component.d.ts +25 -0
  60. package/dist/components/menu-item/menu-item.component.js +13 -0
  61. package/dist/components/menu-item/menu-item.d.ts +8 -0
  62. package/dist/components/menu-item/menu-item.js +6 -0
  63. package/dist/components/menu-item/menu-item.styles.d.ts +1 -0
  64. package/dist/components/menu-item/menu-item.styles.js +19 -0
  65. package/dist/components/popover/popover.component.d.ts +29 -0
  66. package/dist/components/popover/popover.component.js +37 -0
  67. package/dist/components/popover/popover.d.ts +8 -0
  68. package/dist/components/popover/popover.js +6 -0
  69. package/dist/components/popover/popover.styles.d.ts +1 -0
  70. package/dist/components/popover/popover.styles.js +12 -0
  71. package/dist/components/progress/progress.component.d.ts +22 -0
  72. package/dist/components/progress/progress.component.js +49 -0
  73. package/dist/components/progress/progress.d.ts +8 -0
  74. package/dist/components/progress/progress.js +6 -0
  75. package/dist/components/progress/progress.styles.d.ts +1 -0
  76. package/dist/components/progress/progress.styles.js +48 -0
  77. package/dist/components/radio/radio.component.d.ts +7 -9
  78. package/dist/components/radio/radio.component.js +95 -79
  79. package/dist/components/select/select.component.d.ts +10 -12
  80. package/dist/components/select/select.component.js +120 -120
  81. package/dist/components/select/select.controllers.d.ts +1 -26
  82. package/dist/components/select/select.controllers.js +35 -95
  83. package/dist/components/select-option/select-option.component.d.ts +1 -1
  84. package/dist/components/select-option/select-option.controllers.d.ts +1 -1
  85. package/dist/components/select-option-group/select-option-group.component.d.ts +1 -1
  86. package/dist/components/select-option-group/select-option-group.component.js +9 -9
  87. package/dist/components/stepper/stepper.component.d.ts +38 -0
  88. package/dist/components/stepper/stepper.component.js +91 -0
  89. package/dist/components/stepper/stepper.d.ts +8 -0
  90. package/dist/components/stepper/stepper.helpers.d.ts +16 -0
  91. package/dist/components/stepper/stepper.helpers.js +18 -0
  92. package/dist/components/stepper/stepper.js +6 -0
  93. package/dist/components/stepper/stepper.styles.d.ts +1 -0
  94. package/dist/components/stepper/stepper.styles.js +15 -0
  95. package/dist/components/stepper-item/stepper-item.component.d.ts +47 -0
  96. package/dist/components/stepper-item/stepper-item.component.js +113 -0
  97. package/dist/components/stepper-item/stepper-item.d.ts +8 -0
  98. package/dist/components/stepper-item/stepper-item.js +6 -0
  99. package/dist/components/stepper-item/stepper-item.styles.d.ts +1 -0
  100. package/dist/components/stepper-item/stepper-item.styles.js +98 -0
  101. package/dist/components/switch/switch.component.d.ts +2 -2
  102. package/dist/components/switch/switch.component.js +17 -7
  103. package/dist/components/switch/switch.styles.js +16 -13
  104. package/dist/components/tab/tab.component.d.ts +29 -0
  105. package/dist/components/tab/tab.component.js +57 -0
  106. package/dist/components/tab/tab.d.ts +8 -0
  107. package/dist/components/tab/tab.js +6 -0
  108. package/dist/components/tab/tab.styles.d.ts +1 -0
  109. package/dist/components/tab/tab.styles.js +123 -0
  110. package/dist/components/tab-group/tab-group.component.d.ts +43 -0
  111. package/dist/components/tab-group/tab-group.component.js +98 -0
  112. package/dist/components/tab-group/tab-group.d.ts +8 -0
  113. package/dist/components/tab-group/tab-group.js +6 -0
  114. package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
  115. package/dist/components/tab-group/tab-group.styles.js +75 -0
  116. package/dist/components/tab-panel/tab-panel.component.d.ts +19 -0
  117. package/dist/components/tab-panel/tab-panel.component.js +36 -0
  118. package/dist/components/tab-panel/tab-panel.d.ts +8 -0
  119. package/dist/components/tab-panel/tab-panel.js +6 -0
  120. package/dist/components/tab-panel/tab-panel.styles.d.ts +1 -0
  121. package/dist/components/tab-panel/tab-panel.styles.js +13 -0
  122. package/dist/components/tag/tag.component.d.ts +2 -2
  123. package/dist/components/tag/tag.component.js +61 -45
  124. package/dist/components/tag/tag.styles.js +30 -28
  125. package/dist/components/textarea/textarea.component.d.ts +4 -4
  126. package/dist/components/textarea/textarea.component.js +2 -2
  127. package/dist/components/toast/toast.component.d.ts +8 -5
  128. package/dist/components/toast/toast.component.js +30 -26
  129. package/dist/components/toast/toast.singleton.d.ts +5 -10
  130. package/dist/components/toast/toast.singleton.js +25 -25
  131. package/dist/components/toast/toast.styles.d.ts +1 -0
  132. package/dist/components/toast-item/toast-item.component.d.ts +1 -1
  133. package/dist/components/toast-item/toast-item.component.js +15 -15
  134. package/dist/components/toast-item/toast-item.styles.js +18 -0
  135. package/dist/components/toast-wrapper/toast-wrapper.component.d.ts +2 -2
  136. package/dist/components/toast-wrapper/toast-wrapper.component.js +11 -11
  137. package/dist/components/toast-wrapper/toast-wrapper.styles.d.ts +1 -0
  138. package/dist/components/tooltip/tooltip.component.d.ts +24 -0
  139. package/dist/components/tooltip/tooltip.component.js +18 -0
  140. package/dist/components/tooltip/tooltip.d.ts +8 -0
  141. package/dist/components/tooltip/tooltip.js +6 -0
  142. package/dist/components/tooltip/tooltip.styles.d.ts +1 -0
  143. package/dist/components/tooltip/tooltip.styles.js +12 -0
  144. package/dist/custom-elements.json +2465 -629
  145. package/dist/index.d.ts +11 -0
  146. package/dist/index.js +77 -44
  147. package/dist/internal/base-classes/popover/popover.base.d.ts +29 -0
  148. package/dist/internal/base-classes/popover/popover.base.js +116 -0
  149. package/dist/internal/base-classes/popover/popover.styles.d.ts +1 -0
  150. package/dist/internal/base-classes/popover/popover.styles.js +29 -0
  151. package/dist/internal/components/formBase.d.ts +1 -0
  152. package/dist/internal/components/formBase.js +11 -11
  153. package/dist/internal/components/hint/hint.component.d.ts +2 -2
  154. package/dist/internal/components/hint/hint.component.js +13 -13
  155. package/dist/internal/components/skf-element.js +26 -25
  156. package/dist/internal/controllers/popover.controller.d.ts +16 -0
  157. package/dist/internal/controllers/popover.controller.js +44 -0
  158. package/dist/internal/helpers/hintSeverity.d.ts +2 -2
  159. package/dist/internal/helpers/watch.d.ts +27 -0
  160. package/dist/internal/helpers/watch.js +28 -0
  161. package/dist/internal/templates/asterisk.d.ts +1 -1
  162. package/dist/internal/templates/asterisk.js +7 -6
  163. package/dist/react/index.d.ts +13 -0
  164. package/dist/react/index.js +13 -0
  165. package/dist/react/skf-breadcrumb/index.d.ts +9 -0
  166. package/dist/react/skf-breadcrumb/index.js +17 -0
  167. package/dist/react/skf-breadcrumb-item/index.d.ts +3 -0
  168. package/dist/react/skf-breadcrumb-item/index.js +13 -0
  169. package/dist/react/skf-button/index.d.ts +7 -1
  170. package/dist/react/skf-button/index.js +5 -1
  171. package/dist/react/skf-dialog/index.d.ts +15 -0
  172. package/dist/react/skf-dialog/index.js +19 -0
  173. package/dist/react/skf-menu/index.d.ts +12 -0
  174. package/dist/react/skf-menu/index.js +18 -0
  175. package/dist/react/skf-menu-item/index.d.ts +27 -0
  176. package/dist/react/skf-menu-item/index.js +23 -0
  177. package/dist/react/skf-popover/index.d.ts +12 -0
  178. package/dist/react/skf-popover/index.js +18 -0
  179. package/dist/react/skf-progress/index.d.ts +3 -0
  180. package/dist/react/skf-progress/index.js +13 -0
  181. package/dist/react/skf-stepper/index.d.ts +9 -0
  182. package/dist/react/skf-stepper/index.js +17 -0
  183. package/dist/react/skf-stepper-item/index.d.ts +9 -0
  184. package/dist/react/skf-stepper-item/index.js +17 -0
  185. package/dist/react/skf-tab/index.d.ts +12 -0
  186. package/dist/react/skf-tab/index.js +18 -0
  187. package/dist/react/skf-tab-group/index.d.ts +3 -0
  188. package/dist/react/skf-tab-group/index.js +13 -0
  189. package/dist/react/skf-tab-panel/index.d.ts +3 -0
  190. package/dist/react/skf-tab-panel/index.js +13 -0
  191. package/dist/react/skf-tooltip/index.d.ts +12 -0
  192. package/dist/react/skf-tooltip/index.js +18 -0
  193. package/dist/styles/component.styles.js +15 -2
  194. package/dist/types/jsx/custom-element-jsx.d.ts +603 -27
  195. package/dist/types/vue/index.d.ts +413 -11
  196. package/dist/vscode.html-custom-data.json +462 -36
  197. package/dist/web-types.json +944 -90
  198. package/package.json +43 -42
  199. package/dist/components/toast-item/toast-item.style.js +0 -16
  200. /package/dist/components/{toast/toast.style.d.ts → breadcrumb/breadcrumb.styles.d.ts} +0 -0
  201. /package/dist/components/{toast-wrapper/toast-wrapper.style.d.ts → breadcrumb-item/breadcrumb-item.styles.d.ts} +0 -0
  202. /package/dist/components/toast/{toast.style.js → toast.styles.js} +0 -0
  203. /package/dist/components/toast-item/{toast-item.style.d.ts → toast-item.styles.d.ts} +0 -0
  204. /package/dist/components/toast-wrapper/{toast-wrapper.style.js → toast-wrapper.styles.js} +0 -0
@@ -66,7 +66,7 @@ export type SkfAccordionProps = {
66
66
  /** Defines which heading element will be rendered */
67
67
  "heading-as"?: "h1" | "h2" | "h3" | "h4";
68
68
  /** If true, adds a gap between each item */
69
- gap?: boolean | undefined;
69
+ gap?: boolean;
70
70
  /** If true, allowes multiple accordion items to open */
71
71
  multiple?: boolean | undefined;
72
72
  /** If true, renders the small version */
@@ -76,12 +76,12 @@ export type SkfAccordionProps = {
76
76
  };
77
77
 
78
78
  export type SkfAlertProps = {
79
- /** If true, alert is being used as a toast (alertdialog) with an close button */
80
- closeable?: boolean | undefined;
81
79
  /** Close button aria-label */
82
80
  "button-label"?: string;
83
81
  /** If defined, displays leading icon */
84
82
  icon?: SkfIcon["name"] | undefined;
83
+ /** If true, renders with an close button and sets aria-role to `status` */
84
+ persistent?: boolean | undefined;
85
85
  /** If defined, gives the supplied appearance */
86
86
  severity?: "error" | "info" | "warning" | "success" | "alert";
87
87
 
@@ -89,6 +89,23 @@ export type SkfAlertProps = {
89
89
  "onskf-alert-close"?: (e: CustomEvent<never>) => void;
90
90
  };
91
91
 
92
+ export type SkfBreadcrumbProps = {
93
+ /** aria-label for the breadcrumb control */
94
+ label?: string;
95
+ /** Displays an alternative size */
96
+ size?: "md" | "sm";
97
+
98
+ /** Fired when the item is clicked */
99
+ onclick?: (e: CustomEvent<never>) => void;
100
+ };
101
+
102
+ export type SkfBreadcrumbItemProps = {
103
+ /** If defined, loads url on click */
104
+ href?: string | undefined;
105
+ /** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
106
+ onClick?: string;
107
+ };
108
+
92
109
  export type SkfButtonProps = {
93
110
  /** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
94
111
  destructive?: boolean;
@@ -247,25 +264,32 @@ export type SkfButtonProps = {
247
264
  | "warningDiamond"
248
265
  | "zoomIn"
249
266
  | "zoomOut";
267
+ /** If true, removes border */
268
+ iconOnly?: boolean;
250
269
  /** If provided, determines the positioning of the icon in relation to the text */
251
270
  "icon-position"?: "left" | "right" | undefined;
252
271
  /** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
253
272
  loading?: boolean;
273
+ /** */
274
+ "no-validate"?: boolean;
254
275
  /** If provided, displays an alternative size */
255
276
  size?: "sm" | "md" | "lg";
256
277
  /** If provided, changes the button type */
257
278
  type?: "button" | "submit" | "reset";
258
279
  /** If provided, alters the appearance */
259
- variant?: "primary" | "secondary";
280
+ variant?: "primary" | "secondary" | "tertiary";
281
+
282
+ /** Fires when the button is clicked */
283
+ onclick?: (e: CustomEvent<never>) => void;
260
284
  };
261
285
 
262
286
  export type SkfCardProps = {
263
287
  /** If true, removes border */
264
- "no-border"?: boolean | undefined;
288
+ "no-border"?: boolean;
265
289
  /** If true, removes padding */
266
- "no-padding"?: boolean | undefined;
290
+ "no-padding"?: boolean;
267
291
  /** If true, the Card fills the parent element height */
268
- stretch?: boolean | undefined;
292
+ stretch?: boolean;
269
293
  };
270
294
 
271
295
  export type SkfCheckboxProps = {
@@ -279,8 +303,6 @@ export type SkfCheckboxProps = {
279
303
  checked?: boolean | undefined;
280
304
  /** If true, forces component to invalid state until removed */
281
305
  "custom-invalid"?: boolean | undefined;
282
- /** If true, hides the label visually */
283
- "hide-label"?: boolean | undefined;
284
306
  /** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
285
307
  indeterminate?: boolean | undefined;
286
308
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
@@ -304,29 +326,56 @@ export type SkfCheckboxProps = {
304
326
 
305
327
  export type SkfCollapseProps = {
306
328
  /** If true, will animate the expand/collapse state */
307
- animated?: boolean | undefined;
329
+ animated?: boolean;
308
330
  /** If true, will set the collapse to be expanded by default */
309
- expanded?: boolean | undefined;
331
+ expanded?: boolean;
310
332
  /** Heading for the collapse */
311
333
  heading?: string | undefined;
312
334
  /** Defines which heading element will be rendered */
313
- "heading-as"?: "h1" | "h2" | "h3" | "h4";
335
+ "heading-as"?: "h2" | "h3" | "h4";
314
336
  /** If true, renders the small version */
315
- small?: boolean | undefined;
337
+ small?: boolean;
316
338
  /** If true, will truncate the heading in collapsed state */
317
- truncate?: boolean | undefined;
339
+ truncate?: boolean;
318
340
 
319
341
  /** Event emitted when toggled */
320
342
  "onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
321
343
  };
322
344
 
345
+ export type SkfDialogProps = {
346
+ /** If defined, sets the aria-label for the close button */
347
+ "close-button-aria-label"?: string | undefined;
348
+ /** Title for the modal/dialog */
349
+ heading?: string | undefined;
350
+ /** If true, makes the dialog stretch edge to edge on screen */
351
+ fullscreen?: boolean;
352
+ /** If true, removes the close button */
353
+ "no-close-button"?: boolean;
354
+ /** If defined, removes the inner padding */
355
+ "no-padding"?: boolean;
356
+ /** */
357
+ open?: boolean | null | undefined;
358
+ /** If provided, will run function on dialog close */
359
+ onClose?: ((event: Event) => void) | null | undefined;
360
+ /** Method that opens the dialog in modal state */
361
+ showModal?: string;
362
+ /** Method that closes the dialog */
363
+ close?: string;
364
+ /** Fires when the dialog is opened (after transitioned in) */
365
+ "onskf-dialog-open"?: (e: CustomEvent<never>) => void;
366
+ /** Fires when the dialog is closed (before transitioned out) */
367
+ "onskf-dialog-close"?: (e: CustomEvent<never>) => void;
368
+ /** Fires when the dialog is closed (after transitioned out) */
369
+ onclose?: (e: CustomEvent<never>) => void;
370
+ };
371
+
323
372
  export type SkfDividerProps = {
324
373
  /** Defines the Divider color */
325
374
  color?: "emphasised" | "primary" | "secondary" | "tertiary" | "inverse";
326
375
  /** If true, renders a div for presentational purpose instead of the semantic hr-element */
327
- decorative?: boolean | undefined;
376
+ decorative?: boolean;
328
377
  /** If true, renders the divider vertically */
329
- vertical?: boolean | undefined;
378
+ vertical?: boolean;
330
379
  };
331
380
 
332
381
  export type SkfHeadingProps = {
@@ -503,6 +552,8 @@ export type SkfInputProps = {
503
552
  disabled?: boolean;
504
553
  /** If true, value is required or must be checked for the form to be submittable */
505
554
  required?: boolean;
555
+ /** -m } */
556
+ autocomplete?: string;
506
557
  /** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
507
558
  "button-aria-label-clear"?: string;
508
559
  /** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
@@ -748,12 +799,12 @@ export type SkfLinkProps = {
748
799
  | "zoomOut";
749
800
  /** Defines the position of the icon in relation to the text */
750
801
  "icon-placement"?: "left" | "right";
751
- /** Defines the relationship of the target object to the link object */
752
- rel?: string;
802
+ /** If defined, describes the relationship between a linked resource and the current document */
803
+ rel?: string | undefined;
753
804
  /** If defined, used on conjunction with onClick property, second argument */
754
805
  route?: string | undefined;
755
806
  /** If true, fills the parents horizontal axis */
756
- stretch?: boolean | undefined;
807
+ stretch?: boolean;
757
808
  /** If defined, specifies where to open the linked document */
758
809
  target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
759
810
  /** Defines the type of button */
@@ -766,7 +817,7 @@ export type SkfLoaderProps = {
766
817
  /** Defines the aria-label */
767
818
  "aria-label"?: string;
768
819
  /** If true, inverts the color (to be used on colored backgrounds) */
769
- invert?: boolean | undefined;
820
+ invert?: boolean;
770
821
  /** Defines the size of the loader */
771
822
  size?: "md" | "sm" | undefined;
772
823
  /** */
@@ -778,10 +829,269 @@ export type SkfLoaderProps = {
778
829
  export type SkfLogoProps = {
779
830
  /** Defines the title of the logo */
780
831
  title?: string;
781
- /** If defined, sets color of the logo */
832
+ /** Defines the color of the logo */
782
833
  color?: "primary" | "secondary" | "inverse";
783
834
  };
784
835
 
836
+ export type SkfMenuProps = {
837
+ /** The placement of the menu */
838
+ placement?:
839
+ | "top"
840
+ | "right"
841
+ | "bottom"
842
+ | "left"
843
+ | "top-start"
844
+ | "top-end"
845
+ | "right-start"
846
+ | "right-end"
847
+ | "bottom-start"
848
+ | "bottom-end"
849
+ | "left-start"
850
+ | "left-end";
851
+ /** Whether the menu is open */
852
+ isOpen?: boolean;
853
+ /** The id of the element the menu will be anchored to */
854
+ anchor?: string;
855
+ /** Fired when the menu is opened */
856
+ onopen?: (e: CustomEvent<never>) => void;
857
+ /** Fired when the menu is closed */
858
+ onclose?: (e: CustomEvent<never>) => void;
859
+ };
860
+
861
+ export type SkfMenuItemProps = {
862
+ /** Defines the semantic element to render */
863
+ as?: "button" | "a";
864
+ /** Defines the text-color */
865
+ color?: "primary" | "inverse";
866
+ /** If true, disables the link */
867
+ disabled?: boolean | undefined;
868
+ /** If defined, downloads the url */
869
+ download?: string | undefined;
870
+ /** If defined, loads url on click */
871
+ href?: string | undefined;
872
+ /** If defined, renders an icon before or after the text */
873
+ icon?:
874
+ | "arrowDown"
875
+ | "arrowDownUp"
876
+ | "arrowLeft"
877
+ | "arrowRight"
878
+ | "arrowUp"
879
+ | "article"
880
+ | "artificialIntelligence"
881
+ | "asset"
882
+ | "attachment"
883
+ | "bandCursor"
884
+ | "bands"
885
+ | "batteryEmpty"
886
+ | "batteryFull"
887
+ | "batteryLow"
888
+ | "bearingFault"
889
+ | "book"
890
+ | "bulb"
891
+ | "burger"
892
+ | "cPM"
893
+ | "calendar"
894
+ | "calendarBooked"
895
+ | "calendarEmpty"
896
+ | "calendarNotBooked"
897
+ | "calendarRecurring"
898
+ | "caretDown"
899
+ | "caretUp"
900
+ | "caretUpDown"
901
+ | "chat"
902
+ | "check"
903
+ | "checkCircle"
904
+ | "checkSmall"
905
+ | "chevronDown"
906
+ | "chevronLeft"
907
+ | "chevronRight"
908
+ | "chevronUp"
909
+ | "chevronUpDown"
910
+ | "close"
911
+ | "closeAllFaults"
912
+ | "closeFault"
913
+ | "closeSmall"
914
+ | "columnGraph"
915
+ | "comment"
916
+ | "connection1"
917
+ | "connection2"
918
+ | "connection3"
919
+ | "connection4"
920
+ | "danger"
921
+ | "defectFrequencies"
922
+ | "defectFrequenciesAlternative"
923
+ | "doubleChevronLeft"
924
+ | "doubleChevronRight"
925
+ | "download"
926
+ | "draft"
927
+ | "draftFilled"
928
+ | "draftOutlined"
929
+ | "dragNDrop"
930
+ | "drop"
931
+ | "duplicate"
932
+ | "edit"
933
+ | "emailFilled"
934
+ | "emailOutlined"
935
+ | "exclamation"
936
+ | "eye"
937
+ | "eyeHidden"
938
+ | "eyeVisible"
939
+ | "filter"
940
+ | "forbidden"
941
+ | "fullScreen"
942
+ | "fullScreenExit"
943
+ | "functionalLocation"
944
+ | "harmonicCursor"
945
+ | "heatmap"
946
+ | "hierarchy"
947
+ | "history"
948
+ | "historyAlt"
949
+ | "hourglassFramedFilled"
950
+ | "hourglassFramedOutlined"
951
+ | "hourglassOutlined"
952
+ | "hz"
953
+ | "iMX"
954
+ | "image"
955
+ | "infoCircleFilled"
956
+ | "infoCircleOutlined"
957
+ | "integration"
958
+ | "kebab"
959
+ | "link"
960
+ | "listGroup"
961
+ | "listItem"
962
+ | "locationPin"
963
+ | "lock"
964
+ | "logOut"
965
+ | "meatballs"
966
+ | "microphone"
967
+ | "minus"
968
+ | "minusSmall"
969
+ | "noData"
970
+ | "o"
971
+ | "openInNew"
972
+ | "overlayBaseline"
973
+ | "pDF"
974
+ | "paper"
975
+ | "pause"
976
+ | "pieChart"
977
+ | "pin"
978
+ | "play"
979
+ | "plus"
980
+ | "powerOff"
981
+ | "printer"
982
+ | "proCollect"
983
+ | "recAction"
984
+ | "received"
985
+ | "refresh"
986
+ | "reorder"
987
+ | "replace"
988
+ | "reply"
989
+ | "rewalkableRoute"
990
+ | "routes"
991
+ | "search"
992
+ | "send"
993
+ | "sensorA"
994
+ | "sensorB"
995
+ | "settings"
996
+ | "sidebandCursor"
997
+ | "singleCursor"
998
+ | "spectrum"
999
+ | "starFilled"
1000
+ | "starOutlined"
1001
+ | "statusCircle"
1002
+ | "stop"
1003
+ | "structuralVibration"
1004
+ | "sync"
1005
+ | "timewave"
1006
+ | "trash"
1007
+ | "trend"
1008
+ | "trendingUp"
1009
+ | "undo"
1010
+ | "unknownCircle"
1011
+ | "unknownDiamond"
1012
+ | "unlink"
1013
+ | "unlock"
1014
+ | "unscheduledAction"
1015
+ | "upload"
1016
+ | "user"
1017
+ | "viewFull"
1018
+ | "viewHorizontal"
1019
+ | "viewVertical"
1020
+ | "warning"
1021
+ | "warningCircle"
1022
+ | "warningDiamond"
1023
+ | "zoomIn"
1024
+ | "zoomOut";
1025
+ /** Defines the position of the icon in relation to the text */
1026
+ "icon-placement"?: "left" | "right";
1027
+ /** If defined, describes the relationship between a linked resource and the current document */
1028
+ rel?: string | undefined;
1029
+ /** If defined, used on conjunction with onClick property, second argument */
1030
+ route?: string | undefined;
1031
+ /** If true, fills the parents horizontal axis */
1032
+ stretch?: boolean;
1033
+ /** If defined, specifies where to open the linked document */
1034
+ target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
1035
+ /** Defines the type of button */
1036
+ type?: "button" | "submit" | "reset";
1037
+ /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
1038
+ onClick?: function;
1039
+ /** Fired when something happens */
1040
+ "onmy-tag-my-event"?: (e: CustomEvent<CustomEvent>) => void;
1041
+ /** Fired when the component is clicked */
1042
+ onclick?: (e: CustomEvent<never>) => void;
1043
+ /** Fired when the mouse is over the component */
1044
+ onmouseover?: (e: CustomEvent<never>) => void;
1045
+ /** Fired when the mouse is out of the component */
1046
+ onmouseout?: (e: CustomEvent<never>) => void;
1047
+ /** Fired when the component is focused */
1048
+ onfocus?: (e: CustomEvent<never>) => void;
1049
+ /** Fired when the component is blurred */
1050
+ onblur?: (e: CustomEvent<never>) => void;
1051
+ /** Fired when the component's value changes */
1052
+ onchange?: (e: CustomEvent<never>) => void;
1053
+ };
1054
+
1055
+ export type SkfPopoverProps = {
1056
+ /** If defined, sets a custom offset for the popover */
1057
+ offset?: number;
1058
+ /** If true, hides the arrow */
1059
+ hideArrow?: boolean;
1060
+ /** */
1061
+ arrow?: boolean;
1062
+ /** The placement of the menu */
1063
+ placement?:
1064
+ | "top"
1065
+ | "right"
1066
+ | "bottom"
1067
+ | "left"
1068
+ | "top-start"
1069
+ | "top-end"
1070
+ | "right-start"
1071
+ | "right-end"
1072
+ | "bottom-start"
1073
+ | "bottom-end"
1074
+ | "left-start"
1075
+ | "left-end";
1076
+ /** Whether the menu is open */
1077
+ isOpen?: boolean;
1078
+ /** The id of the element the menu will be anchored to */
1079
+ anchor?: string;
1080
+ /** Fired when the menu is opened */
1081
+ onopen?: (e: CustomEvent<never>) => void;
1082
+ /** Fired when the menu is closed */
1083
+ onclose?: (e: CustomEvent<never>) => void;
1084
+ };
1085
+
1086
+ export type SkfProgressProps = {
1087
+ /** If true, the progress-bar's fill value is animated */
1088
+ animated?: boolean;
1089
+ /** Describes how much work the task indicated by the progress element requires */
1090
+ max?: number;
1091
+ /** Specifies how much of the task that has been completed */
1092
+ value?: number;
1093
+ };
1094
+
785
1095
  export type SkfRadioProps = {
786
1096
  /** If true, sets disabled state */
787
1097
  disabled?: boolean;
@@ -793,8 +1103,6 @@ export type SkfRadioProps = {
793
1103
  checked?: boolean | undefined;
794
1104
  /** If true, forces component to invalid state until removed */
795
1105
  "custom-invalid"?: boolean | undefined;
796
- /** If true, hides the label visually */
797
- "hide-label"?: boolean | undefined;
798
1106
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
799
1107
  label?: string | undefined;
800
1108
  /** If defined, adds name to the input-element */
@@ -895,6 +1203,29 @@ export type SkfSelectOptionGroupProps = {
895
1203
  label?: string;
896
1204
  };
897
1205
 
1206
+ export type SkfStepperProps = {
1207
+ /** Sets the active item */
1208
+ activeIndex?: number;
1209
+ /** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
1210
+ linear?: boolean;
1211
+
1212
+ /** Dispatched when the stepper item is selected */
1213
+ "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
1214
+ };
1215
+
1216
+ export type SkfStepperItemProps = {
1217
+ /** If defined, gives the supplied appearance */
1218
+ state?: Extract<SkfStepperItemState, "active" | "completed"> | undefined;
1219
+ /** If true, item marked as completed */
1220
+ completed?: boolean;
1221
+ /** */
1222
+ _setInternalState?: string;
1223
+ /** */
1224
+ role?: string;
1225
+ /** Dispatched when the stepper item is selected */
1226
+ "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
1227
+ };
1228
+
898
1229
  export type SkfSwitchProps = {
899
1230
  /** If true, sets disabled state */
900
1231
  disabled?: boolean;
@@ -918,6 +1249,43 @@ export type SkfSwitchProps = {
918
1249
  value?: string;
919
1250
  };
920
1251
 
1252
+ export type SkfTabProps = {
1253
+ /** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
1254
+ panel?: string;
1255
+ /** */
1256
+ selected?: boolean;
1257
+ /** */
1258
+ variant?: SkfTabGroup["variant"];
1259
+ /** */
1260
+ role?: string;
1261
+ /** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
1262
+ "onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
1263
+ /** Fired when the component is clicked */
1264
+ onclick?: (e: CustomEvent<never>) => void;
1265
+ };
1266
+
1267
+ export type SkfTabGroupProps = {
1268
+ /** Sets the default selected tab */
1269
+ "default-selected"?: number;
1270
+ /** If true, removes border */
1271
+ "no-border"?: boolean;
1272
+ /** If true, removes padding */
1273
+ "no-padding"?: boolean;
1274
+ /** If true, component fills the parent element height */
1275
+ stretch?: boolean;
1276
+ /** Sets the appearance of the tabs */
1277
+ variant?: "compressed" | "expanded";
1278
+ };
1279
+
1280
+ export type SkfTabPanelProps = {
1281
+ /** The tab panel's name. */
1282
+ name?: string;
1283
+ /** */
1284
+ active?: boolean;
1285
+ /** */
1286
+ role?: string;
1287
+ };
1288
+
921
1289
  export type SkfTagProps = {
922
1290
  /** Specifies Tag size */
923
1291
  size?: "sm" | "md" | "lg";
@@ -1133,12 +1501,14 @@ export type SkfTextAreaProps = {
1133
1501
  };
1134
1502
 
1135
1503
  export type SkfToastProps = {
1136
- /** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
1137
- closeable?: boolean;
1138
1504
  /** */
1139
1505
  debug?: boolean;
1140
- /** Severity of the toast. */
1141
- severity?: "info" | "success" | "warning" | "error";
1506
+ /** If defined, displays leading icon */
1507
+ icon?: SkfAlert["icon"] | undefined;
1508
+ /** If true, renders with an close button and sets aria-role to `status` */
1509
+ persistent?: SkfAlert["persistent"];
1510
+ /** If defined, gives the supplied appearance */
1511
+ severity?: SkfAlert["severity"];
1142
1512
  /** Time in seconds before the toast disappears. */
1143
1513
  timer?: number;
1144
1514
  /** offsets where toasts emerge vertically */
@@ -1150,6 +1520,33 @@ export type SkfToastWrapperProps = {
1150
1520
  debug?: boolean;
1151
1521
  };
1152
1522
 
1523
+ export type SkfTooltipProps = {
1524
+ /** */
1525
+ offset?: number;
1526
+ /** The placement of the dropdown */
1527
+ placement?:
1528
+ | "top"
1529
+ | "right"
1530
+ | "bottom"
1531
+ | "left"
1532
+ | "top-start"
1533
+ | "top-end"
1534
+ | "right-start"
1535
+ | "right-end"
1536
+ | "bottom-start"
1537
+ | "bottom-end"
1538
+ | "left-start"
1539
+ | "left-end";
1540
+ /** Whether the dropdown is open */
1541
+ isOpen?: boolean;
1542
+ /** The id of the element the dropdown will be anchored to */
1543
+ anchor?: string;
1544
+ /** Fired when the dropdown is opened */
1545
+ onopen?: (e: CustomEvent<never>) => void;
1546
+ /** Fired when the dropdown is closed */
1547
+ onclose?: (e: CustomEvent<never>) => void;
1548
+ };
1549
+
1153
1550
  export type CustomElements = {
1154
1551
  /**
1155
1552
  * The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
@@ -1177,11 +1574,40 @@ export type CustomElements = {
1177
1574
  */
1178
1575
  "skf-alert": Partial<SkfAlertProps & BaseProps & BaseEvents>;
1179
1576
 
1577
+ /**
1578
+ * The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
1579
+ * ---
1580
+ *
1581
+ *
1582
+ * ### **Events:**
1583
+ * - **click** - Fired when the item is clicked
1584
+ *
1585
+ * ### **Slots:**
1586
+ * - _default_ - One or more `<skf-breadcrumb-item>`
1587
+ */
1588
+ "skf-breadcrumb": Partial<SkfBreadcrumbProps & BaseProps & BaseEvents>;
1589
+
1590
+ /**
1591
+ * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
1592
+ * ---
1593
+ *
1594
+ *
1595
+ * ### **Slots:**
1596
+ * - _default_ - Label of the breadcrumb item
1597
+ */
1598
+ "skf-breadcrumb-item": Partial<SkfBreadcrumbItemProps & BaseProps & BaseEvents>;
1599
+
1180
1600
  /**
1181
1601
  * Component to be used in forms or for interactivity
1182
1602
  * ---
1183
1603
  *
1184
1604
  *
1605
+ * ### **Events:**
1606
+ * - **click** - Fires when the button is clicked
1607
+ *
1608
+ * ### **Methods:**
1609
+ * - **click()** - Simulates a click on the button.
1610
+ *
1185
1611
  * ### **Slots:**
1186
1612
  * - _default_ - The Primary content
1187
1613
  */
@@ -1229,6 +1655,26 @@ export type CustomElements = {
1229
1655
  */
1230
1656
  "skf-collapse": Partial<SkfCollapseProps & BaseProps & BaseEvents>;
1231
1657
 
1658
+ /**
1659
+ * The `<skf-dialog>` is a component that open up a dialog with the content provided
1660
+ * ---
1661
+ *
1662
+ *
1663
+ * ### **Events:**
1664
+ * - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)
1665
+ * - **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)
1666
+ * - **close** - Fires when the dialog is closed (after transitioned out)
1667
+ *
1668
+ * ### **Slots:**
1669
+ * - _default_ - The dialog component's content
1670
+ * - **footer** - The dialog component's buttons goes here
1671
+ *
1672
+ * ### **CSS Properties:**
1673
+ * - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_
1674
+ * - **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_
1675
+ */
1676
+ "skf-dialog": Partial<SkfDialogProps & BaseProps & BaseEvents>;
1677
+
1232
1678
  /**
1233
1679
  * The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
1234
1680
  * ---
@@ -1299,6 +1745,61 @@ export type CustomElements = {
1299
1745
  */
1300
1746
  "skf-logo": Partial<SkfLogoProps & BaseProps & BaseEvents>;
1301
1747
 
1748
+ /**
1749
+ * The `<skf-menu>` is a component that displays a list of actions or options.
1750
+ * ---
1751
+ *
1752
+ *
1753
+ * ### **Events:**
1754
+ * - **open** - Fired when the menu is opened
1755
+ * - **close** - Fired when the menu is closed
1756
+ *
1757
+ * ### **Slots:**
1758
+ * - _default_ - The menu popover content
1759
+ */
1760
+ "skf-menu": Partial<SkfMenuProps & BaseProps & BaseEvents>;
1761
+
1762
+ /**
1763
+ * The `<skf-menu-item>` is a component that displays a list of actions or options.
1764
+ * ---
1765
+ *
1766
+ *
1767
+ * ### **Events:**
1768
+ * - **my-tag-my-event** - Fired when something happens
1769
+ * - **click** - Fired when the component is clicked
1770
+ * - **mouseover** - Fired when the mouse is over the component
1771
+ * - **mouseout** - Fired when the mouse is out of the component
1772
+ * - **focus** - Fired when the component is focused
1773
+ * - **blur** - Fired when the component is blurred
1774
+ * - **change** - Fired when the component's value changes
1775
+ *
1776
+ * ### **Slots:**
1777
+ * - _default_ - The component's main content
1778
+ * - **my-named-slot** - A named slot of the component
1779
+ */
1780
+ "skf-menu-item": Partial<SkfMenuItemProps & BaseProps & BaseEvents>;
1781
+
1782
+ /**
1783
+ * The `<skf-popover>` is a general purpose component that displays the slot content.
1784
+ * ---
1785
+ *
1786
+ *
1787
+ * ### **Events:**
1788
+ * - **open** - Fired when the menu is opened
1789
+ * - **close** - Fired when the menu is closed
1790
+ *
1791
+ * ### **Slots:**
1792
+ * - _default_ - The popover content
1793
+ */
1794
+ "skf-popover": Partial<SkfPopoverProps & BaseProps & BaseEvents>;
1795
+
1796
+ /**
1797
+ * The `<skf-progress>` element displays an indicator showing the completion progress of a task, typically displayed as a progress bar
1798
+ * ---
1799
+ *
1800
+ */
1801
+ "skf-progress": Partial<SkfProgressProps & BaseProps & BaseEvents>;
1802
+
1302
1803
  /**
1303
1804
  * The `<skf-radio>` component is used to create a radio input
1304
1805
  * ---
@@ -1353,6 +1854,32 @@ export type CustomElements = {
1353
1854
  */
1354
1855
  "skf-select-option-group": Partial<SkfSelectOptionGroupProps & BaseProps & BaseEvents>;
1355
1856
 
1857
+ /**
1858
+ * The `<skf-stepper>` is a component that displays a list of actions or options.
1859
+ * ---
1860
+ *
1861
+ *
1862
+ * ### **Events:**
1863
+ * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1864
+ *
1865
+ * ### **Slots:**
1866
+ * - _default_ - One or more `<skf-stepper-item>`
1867
+ */
1868
+ "skf-stepper": Partial<SkfStepperProps & BaseProps & BaseEvents>;
1869
+
1870
+ /**
1871
+ * The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
1872
+ * ---
1873
+ *
1874
+ *
1875
+ * ### **Events:**
1876
+ * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1877
+ *
1878
+ * ### **Slots:**
1879
+ * - _default_ - Label of the stepper item
1880
+ */
1881
+ "skf-stepper-item": Partial<SkfStepperItemProps & BaseProps & BaseEvents>;
1882
+
1356
1883
  /**
1357
1884
  * The `<skf-switch>` is a component that displays a list of actions or options
1358
1885
  * ---
@@ -1363,6 +1890,41 @@ export type CustomElements = {
1363
1890
  */
1364
1891
  "skf-switch": Partial<SkfSwitchProps & BaseProps & BaseEvents>;
1365
1892
 
1893
+ /**
1894
+ * The `<skf-tab>` is a component that displays a list of actions or options
1895
+ * ---
1896
+ *
1897
+ *
1898
+ * ### **Events:**
1899
+ * - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
1900
+ * - **click** - Fired when the component is clicked
1901
+ *
1902
+ * ### **Slots:**
1903
+ * - _default_ - The tab's label
1904
+ */
1905
+ "skf-tab": Partial<SkfTabProps & BaseProps & BaseEvents>;
1906
+
1907
+ /**
1908
+ * The `<skf-tab-group>` is a component that displays a list of actions or options.
1909
+ * ---
1910
+ *
1911
+ *
1912
+ * ### **Slots:**
1913
+ * - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
1914
+ * - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
1915
+ */
1916
+ "skf-tab-group": Partial<SkfTabGroupProps & BaseProps & BaseEvents>;
1917
+
1918
+ /**
1919
+ * The `<skf-tab-panel>` is a component that displays a list of actions or options.
1920
+ * ---
1921
+ *
1922
+ *
1923
+ * ### **Slots:**
1924
+ * - _default_ - The tab panel's content
1925
+ */
1926
+ "skf-tab-panel": Partial<SkfTabPanelProps & BaseProps & BaseEvents>;
1927
+
1366
1928
  /**
1367
1929
  * The `<skf-tag>` is a component that displays a list of actions or options
1368
1930
  * ---
@@ -1406,4 +1968,18 @@ export type CustomElements = {
1406
1968
  * - _default_ - The alert components that the toast creates will render here.
1407
1969
  */
1408
1970
  "skf-toast-wrapper": Partial<SkfToastWrapperProps & BaseProps & BaseEvents>;
1971
+
1972
+ /**
1973
+ * The `<skf-tooltip>` is a component that displays a list of actions or options.
1974
+ * ---
1975
+ *
1976
+ *
1977
+ * ### **Events:**
1978
+ * - **open** - Fired when the dropdown is opened
1979
+ * - **close** - Fired when the dropdown is closed
1980
+ *
1981
+ * ### **Slots:**
1982
+ * - _default_ - The tooltip popover content
1983
+ */
1984
+ "skf-tooltip": Partial<SkfTooltipProps & BaseProps & BaseEvents>;
1409
1985
  };