@skf-design-system/ui-components 1.0.0-beta.7 → 1.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/components/alert/alert.component.d.ts +2 -2
  2. package/dist/components/alert/alert.component.js +34 -34
  3. package/dist/components/breadcrumb/breadcrumb.component.d.ts +29 -0
  4. package/dist/components/breadcrumb/breadcrumb.d.ts +8 -0
  5. package/dist/components/breadcrumb/breadcrumb.styles.d.ts +1 -0
  6. package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +25 -0
  7. package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +8 -0
  8. package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +1 -0
  9. package/dist/components/button/button.component.d.ts +6 -4
  10. package/dist/components/button/button.component.js +87 -70
  11. package/dist/components/button/button.styles.js +64 -45
  12. package/dist/components/checkbox/checkbox.component.d.ts +3 -1
  13. package/dist/components/checkbox/checkbox.component.js +71 -58
  14. package/dist/components/date-picker/datepicker.calendar.component.d.ts +72 -0
  15. package/dist/components/date-picker/datepicker.calendar.component.js +382 -0
  16. package/dist/components/date-picker/datepicker.calendar.styles.d.ts +1 -0
  17. package/dist/components/date-picker/datepicker.calendar.styles.js +192 -0
  18. package/dist/components/date-picker/datepicker.component.d.ts +74 -0
  19. package/dist/components/date-picker/datepicker.component.js +241 -0
  20. package/dist/components/date-picker/datepicker.d.ts +10 -0
  21. package/dist/components/date-picker/datepicker.helpers.d.ts +40 -0
  22. package/dist/components/date-picker/datepicker.helpers.js +69 -0
  23. package/dist/components/date-picker/datepicker.js +8 -0
  24. package/dist/components/date-picker/datepicker.styles.d.ts +1 -0
  25. package/dist/components/date-picker/datepicker.styles.js +99 -0
  26. package/dist/components/date-picker-input/datepicker-input.component.d.ts +107 -0
  27. package/dist/components/date-picker-input/datepicker-input.component.js +397 -0
  28. package/dist/components/date-picker-input/datepicker-input.d.ts +8 -0
  29. package/dist/components/date-picker-input/datepicker-input.helpers.d.ts +4 -0
  30. package/dist/components/date-picker-input/datepicker-input.helpers.js +29 -0
  31. package/dist/components/date-picker-input/datepicker-input.js +6 -0
  32. package/dist/components/date-picker-input/datepicker-input.styles.d.ts +1 -0
  33. package/dist/components/date-picker-input/datepicker-input.styles.js +22 -0
  34. package/dist/components/dialog/dialog.component.d.ts +0 -1
  35. package/dist/components/dialog/dialog.component.js +2 -4
  36. package/dist/components/icon/icon.component.d.ts +1 -4
  37. package/dist/components/icon/icon.component.js +28 -19
  38. package/dist/components/icon/icon.styles.js +53 -47
  39. package/dist/components/input/input.component.d.ts +1 -0
  40. package/dist/components/input/input.component.js +87 -80
  41. package/dist/components/link/link.component.d.ts +1 -0
  42. package/dist/components/link/link.component.js +21 -21
  43. package/dist/components/menu/menu.component.d.ts +24 -0
  44. package/dist/components/menu/menu.component.js +18 -0
  45. package/dist/components/menu/menu.d.ts +8 -0
  46. package/dist/components/menu/menu.js +6 -0
  47. package/dist/components/menu/menu.styles.d.ts +1 -0
  48. package/dist/components/menu/menu.styles.js +11 -0
  49. package/dist/components/menu-item/menu-item.component.d.ts +25 -0
  50. package/dist/components/menu-item/menu-item.component.js +13 -0
  51. package/dist/components/menu-item/menu-item.d.ts +8 -0
  52. package/dist/components/menu-item/menu-item.js +6 -0
  53. package/dist/components/menu-item/menu-item.styles.d.ts +1 -0
  54. package/dist/components/menu-item/menu-item.styles.js +19 -0
  55. package/dist/components/popover/popover.component.d.ts +29 -0
  56. package/dist/components/popover/popover.component.js +37 -0
  57. package/dist/components/popover/popover.d.ts +8 -0
  58. package/dist/components/popover/popover.js +6 -0
  59. package/dist/components/popover/popover.styles.d.ts +1 -0
  60. package/dist/components/popover/popover.styles.js +12 -0
  61. package/dist/components/select/select.component.d.ts +8 -10
  62. package/dist/components/select/select.component.js +115 -118
  63. package/dist/components/select/select.controllers.d.ts +0 -25
  64. package/dist/components/select/select.controllers.js +35 -95
  65. package/dist/components/stepper/stepper.component.d.ts +38 -0
  66. package/dist/components/stepper/stepper.component.js +91 -0
  67. package/dist/components/stepper/stepper.d.ts +8 -0
  68. package/dist/components/stepper/stepper.helpers.d.ts +16 -0
  69. package/dist/components/stepper/stepper.helpers.js +18 -0
  70. package/dist/components/stepper/stepper.js +6 -0
  71. package/dist/components/stepper/stepper.styles.d.ts +1 -0
  72. package/dist/components/stepper/stepper.styles.js +15 -0
  73. package/dist/components/stepper-item/stepper-item.component.d.ts +47 -0
  74. package/dist/components/stepper-item/stepper-item.component.js +113 -0
  75. package/dist/components/stepper-item/stepper-item.d.ts +8 -0
  76. package/dist/components/stepper-item/stepper-item.js +6 -0
  77. package/dist/components/stepper-item/stepper-item.styles.d.ts +1 -0
  78. package/dist/components/stepper-item/stepper-item.styles.js +98 -0
  79. package/dist/components/toast/toast.component.d.ts +7 -4
  80. package/dist/components/toast/toast.component.js +24 -20
  81. package/dist/components/toast/toast.singleton.d.ts +2 -7
  82. package/dist/components/toast/toast.singleton.js +25 -25
  83. package/dist/components/toast-item/toast-item.component.js +15 -15
  84. package/dist/components/toast-item/toast-item.styles.js +13 -11
  85. package/dist/components/tooltip/tooltip.component.d.ts +24 -0
  86. package/dist/components/tooltip/tooltip.component.js +18 -0
  87. package/dist/components/tooltip/tooltip.d.ts +8 -0
  88. package/dist/components/tooltip/tooltip.js +6 -0
  89. package/dist/components/tooltip/tooltip.styles.d.ts +1 -0
  90. package/dist/components/tooltip/tooltip.styles.js +12 -0
  91. package/dist/custom-elements.json +3278 -1321
  92. package/dist/index.d.ts +8 -0
  93. package/dist/index.js +78 -54
  94. package/dist/internal/base-classes/popover/popover.base.d.ts +29 -0
  95. package/dist/internal/base-classes/popover/popover.base.js +116 -0
  96. package/dist/internal/base-classes/popover/popover.styles.d.ts +1 -0
  97. package/dist/internal/base-classes/popover/popover.styles.js +29 -0
  98. package/dist/internal/controllers/popover.controller.d.ts +17 -0
  99. package/dist/internal/controllers/popover.controller.js +44 -0
  100. package/dist/internal/helpers/dateFormatter.d.ts +2 -0
  101. package/dist/internal/helpers/hintSeverity.d.ts +1 -1
  102. package/dist/internal/helpers/utilityTypes.d.ts +22 -0
  103. package/dist/react/index.d.ts +11 -2
  104. package/dist/react/index.js +11 -2
  105. package/dist/react/skf-breadcrumb/index.d.ts +9 -0
  106. package/dist/react/skf-breadcrumb/index.js +17 -0
  107. package/dist/react/skf-breadcrumb-item/index.d.ts +3 -0
  108. package/dist/react/skf-breadcrumb-item/index.js +13 -0
  109. package/dist/react/skf-datepicker/index.d.ts +12 -0
  110. package/dist/react/skf-datepicker/index.js +18 -0
  111. package/dist/react/skf-menu/index.d.ts +12 -0
  112. package/dist/react/skf-menu/index.js +18 -0
  113. package/dist/react/skf-menu-item/index.d.ts +27 -0
  114. package/dist/react/skf-menu-item/index.js +23 -0
  115. package/dist/react/skf-popover/index.d.ts +12 -0
  116. package/dist/react/skf-popover/index.js +18 -0
  117. package/dist/react/skf-stepper/index.d.ts +9 -0
  118. package/dist/react/skf-stepper/index.js +17 -0
  119. package/dist/react/skf-stepper-item/index.d.ts +9 -0
  120. package/dist/react/skf-stepper-item/index.js +17 -0
  121. package/dist/react/skf-tooltip/index.d.ts +12 -0
  122. package/dist/react/skf-tooltip/index.js +18 -0
  123. package/dist/types/jsx/custom-element-jsx.d.ts +628 -155
  124. package/dist/types/vue/index.d.ts +369 -74
  125. package/dist/vscode.html-custom-data.json +761 -391
  126. package/dist/web-types.json +936 -293
  127. package/package.json +34 -33
@@ -75,99 +75,13 @@ export type SkfAccordionProps = {
75
75
  truncate?: boolean | undefined;
76
76
  };
77
77
 
78
- export type SkfCardProps = {
79
- /** If true, removes border */
80
- "no-border"?: boolean;
81
- /** If true, removes padding */
82
- "no-padding"?: boolean;
83
- /** If true, the Card fills the parent element height */
84
- stretch?: boolean;
85
- };
86
-
87
- export type SkfCheckboxProps = {
88
- /** If true, sets disabled state */
89
- disabled?: boolean;
90
- /** If true, value is required or must be checked for the form to be submittable */
91
- required?: boolean;
92
- /** If defined, outputs helping hints in console */
93
- debug?: boolean | undefined;
94
- /** If true, outputs helping hints in console */
95
- checked?: boolean | undefined;
96
- /** If true, forces component to invalid state until removed */
97
- "custom-invalid"?: boolean | undefined;
98
- /** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
99
- indeterminate?: boolean | undefined;
100
- /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
101
- label?: string | undefined;
102
- /** If defined, adds name to the input-element */
103
- name?: string | undefined;
104
- /** If defined, renders an alternative A11y text for the asterisk */
105
- "required-label"?: string | undefined;
106
- /** If defined, styles checkbox using provided severity */
107
- severity?: "alert" | "success" | "info" | "warning";
108
- /** If true, displays valid state after interaction */
109
- "show-valid"?: boolean | undefined;
110
- /** Size of the checkbox */
111
- size?: "sm" | "md";
112
- /** The current value of the input field */
113
- value?: string;
114
-
115
- /** {object} - When the value of the input changes */
116
- onchange?: (e: CustomEvent<never>) => void;
117
- };
118
-
119
- export type SkfCollapseProps = {
120
- /** If true, will animate the expand/collapse state */
121
- animated?: boolean;
122
- /** If true, will set the collapse to be expanded by default */
123
- expanded?: boolean;
124
- /** Heading for the collapse */
125
- heading?: string | undefined;
126
- /** Defines which heading element will be rendered */
127
- "heading-as"?: "h2" | "h3" | "h4";
128
- /** If true, renders the small version */
129
- small?: boolean;
130
- /** If true, will truncate the heading in collapsed state */
131
- truncate?: boolean;
132
-
133
- /** Event emitted when toggled */
134
- "onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
135
- };
136
-
137
- export type SkfDialogProps = {
138
- /** If defined, sets the aria-label for the close button */
139
- "close-button-aria-label"?: string | undefined;
140
- /** Title for the modal/dialog */
141
- heading?: string | undefined;
142
- /** If true, makes the dialog stretch edge to edge on screen */
143
- fullscreen?: boolean;
144
- /** If true, removes the close button */
145
- "no-close-button"?: boolean;
146
- /** If defined, removes the inner padding */
147
- "no-padding"?: boolean;
148
- /** */
149
- open?: boolean | null | undefined;
150
- /** If provided, will run function on dialog close */
151
- onClose?: ((event: Event) => void) | null | undefined;
152
- /** Method that opens the dialog in modal state */
153
- showModal?: string;
154
- /** Method that closes the dialog */
155
- close?: string;
156
- /** Fires when the dialog is opened (after transitioned in) */
157
- "onskf-dialog-open"?: (e: CustomEvent<never>) => void;
158
- /** Fires when the dialog is closed (before transitioned out) */
159
- "onskf-dialog-close"?: (e: CustomEvent<never>) => void;
160
- /** Fires when the dialog is closed (after transitioned out) */
161
- onclose?: (e: CustomEvent<never>) => void;
162
- };
163
-
164
78
  export type SkfAlertProps = {
165
- /** If true, alert is being used as a toast (alertdialog) with an close button */
166
- closeable?: boolean | undefined;
167
79
  /** Close button aria-label */
168
80
  "button-label"?: string;
169
81
  /** If defined, displays leading icon */
170
82
  icon?: SkfIcon["name"] | undefined;
83
+ /** If true, renders with an close button and sets aria-role to `status` */
84
+ persistent?: boolean | undefined;
171
85
  /** If defined, gives the supplied appearance */
172
86
  severity?: "error" | "info" | "warning" | "success" | "alert";
173
87
 
@@ -175,13 +89,21 @@ export type SkfAlertProps = {
175
89
  "onskf-alert-close"?: (e: CustomEvent<never>) => void;
176
90
  };
177
91
 
178
- export type SkfDividerProps = {
179
- /** Defines the Divider color */
180
- color?: "emphasised" | "primary" | "secondary" | "tertiary" | "inverse";
181
- /** If true, renders a div for presentational purpose instead of the semantic hr-element */
182
- decorative?: boolean;
183
- /** If true, renders the divider vertically */
184
- vertical?: boolean;
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;
185
107
  };
186
108
 
187
109
  export type SkfButtonProps = {
@@ -342,8 +264,10 @@ export type SkfButtonProps = {
342
264
  | "warningDiamond"
343
265
  | "zoomIn"
344
266
  | "zoomOut";
345
- /** If provided, determines the positioning of the icon in relation to the text */
346
- "icon-position"?: "left" | "right" | undefined;
267
+ /** If true, removes border */
268
+ iconOnly?: boolean;
269
+ /** Determines the positioning of the icon in relation to the text */
270
+ "icon-position"?: "left" | "right";
347
271
  /** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
348
272
  loading?: boolean;
349
273
  /** */
@@ -353,12 +277,132 @@ export type SkfButtonProps = {
353
277
  /** If provided, changes the button type */
354
278
  type?: "button" | "submit" | "reset";
355
279
  /** If provided, alters the appearance */
356
- variant?: "primary" | "secondary";
280
+ variant?: "primary" | "secondary" | "tertiary";
357
281
 
358
282
  /** Fires when the button is clicked */
359
283
  onclick?: (e: CustomEvent<never>) => void;
360
284
  };
361
285
 
286
+ export type SkfCardProps = {
287
+ /** If true, removes border */
288
+ "no-border"?: boolean;
289
+ /** If true, removes padding */
290
+ "no-padding"?: boolean;
291
+ /** If true, the Card fills the parent element height */
292
+ stretch?: boolean;
293
+ };
294
+
295
+ export type SkfCheckboxProps = {
296
+ /** If true, sets disabled state */
297
+ disabled?: boolean;
298
+ /** If true, value is required or must be checked for the form to be submittable */
299
+ required?: boolean;
300
+ /** If defined, outputs helping hints in console */
301
+ debug?: boolean | undefined;
302
+ /** If true, outputs helping hints in console */
303
+ checked?: string;
304
+ /** If true, forces component to invalid state until removed */
305
+ "custom-invalid"?: boolean | undefined;
306
+ /** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
307
+ indeterminate?: boolean | undefined;
308
+ /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
309
+ label?: string | undefined;
310
+ /** If defined, adds name to the input-element */
311
+ name?: string | undefined;
312
+ /** If defined, renders an alternative A11y text for the asterisk */
313
+ "required-label"?: string | undefined;
314
+ /** If defined, styles checkbox using provided severity */
315
+ severity?: "alert" | "success" | "info" | "warning";
316
+ /** If true, displays valid state after interaction */
317
+ "show-valid"?: boolean | undefined;
318
+ /** Size of the checkbox */
319
+ size?: "sm" | "md";
320
+ /** The current value of the input field */
321
+ value?: string;
322
+
323
+ /** {object} - When the value of the input changes */
324
+ onchange?: (e: CustomEvent<never>) => void;
325
+ };
326
+
327
+ export type SkfCollapseProps = {
328
+ /** If true, will animate the expand/collapse state */
329
+ animated?: boolean;
330
+ /** If true, will set the collapse to be expanded by default */
331
+ expanded?: boolean;
332
+ /** Heading for the collapse */
333
+ heading?: string | undefined;
334
+ /** Defines which heading element will be rendered */
335
+ "heading-as"?: "h2" | "h3" | "h4";
336
+ /** If true, renders the small version */
337
+ small?: boolean;
338
+ /** If true, will truncate the heading in collapsed state */
339
+ truncate?: boolean;
340
+
341
+ /** Event emitted when toggled */
342
+ "onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
343
+ };
344
+
345
+ export type SkfDatePickerProps = {
346
+ /** The locale to use for formatting the date */
347
+ locale?: string;
348
+ /** The date to display in the date picker */
349
+ date?: string;
350
+ /** */
351
+ id?: string;
352
+ /** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
353
+ "invalid-dates"?: string | undefined;
354
+ /** If true, the date picker will allow the selection of a range of dates */
355
+ range?: boolean;
356
+ /** Earliest selectable date. (yyyy-mm-dd format) */
357
+ "selectable-from"?: string | undefined;
358
+ /** Latest selectable date. (yyyy-mm-dd format) */
359
+ "selectable-to"?: string | undefined;
360
+ /** */
361
+ selectedDate?: Date | undefined;
362
+ /** */
363
+ selectedDateRange?: SkfDatePickerDateRange;
364
+ /** When a date is selected */
365
+ "onselected-date-changed"?: (e: CustomEvent<never>) => void;
366
+ /** When a range of dates is selected */
367
+ "onselected-date-range-changed"?: (e: CustomEvent<never>) => void;
368
+ };
369
+
370
+ export type SkfDialogProps = {
371
+ /** If defined, sets the aria-label for the close button */
372
+ "close-button-aria-label"?: string | undefined;
373
+ /** Title for the modal/dialog */
374
+ heading?: string | undefined;
375
+ /** If true, makes the dialog stretch edge to edge on screen */
376
+ fullscreen?: boolean;
377
+ /** If true, removes the close button */
378
+ "no-close-button"?: boolean;
379
+ /** If defined, removes the inner padding */
380
+ "no-padding"?: boolean;
381
+ /** */
382
+ open?: boolean | null | undefined;
383
+ /** If provided, will run function on dialog close */
384
+ onClose?: ((event: Event) => void) | null | undefined;
385
+ /** Method that opens the dialog in modal state */
386
+ showModal?: string;
387
+ /** Method that closes the dialog */
388
+ close?: string;
389
+ /** Fires when the dialog is opened (after transitioned in) */
390
+ "onskf-dialog-open"?: (e: CustomEvent<never>) => void;
391
+ /** Fires when the dialog is closed (before transitioned out) */
392
+ "onskf-dialog-close"?: (e: CustomEvent<never>) => void;
393
+ /** Fires when the dialog is closed (after transitioned out) */
394
+ onclose?: (e: CustomEvent<never>) => void;
395
+ };
396
+
397
+ export type SkfDividerProps = {
398
+ /** Defines the Divider color */
399
+ color?: "emphasised" | "primary" | "secondary" | "tertiary" | "inverse";
400
+ /** If true, renders a div for presentational purpose instead of the semantic hr-element */
401
+ decorative?: boolean;
402
+ /** If true, renders the divider vertically */
403
+ vertical?: boolean;
404
+ };
405
+
362
406
  export type SkfHeadingProps = {
363
407
  /** Controls which heading element will be rendered. Should not be used to affect appearance */
364
408
  as?: "h1" | "h2" | "h3" | "h4";
@@ -608,13 +652,238 @@ export type SkfInputProps = {
608
652
  /** The current value of the input field */
609
653
  value?: string;
610
654
 
611
- /** Fires when the value of the input changes */
612
- onchange?: (e: CustomEvent<never>) => void;
613
- /** Fires when the input is invalid */
614
- oninvalid?: (e: CustomEvent<never>) => void;
655
+ /** Fires when the value of the input changes */
656
+ onchange?: (e: CustomEvent<never>) => void;
657
+ /** Fires when the input is invalid */
658
+ oninvalid?: (e: CustomEvent<never>) => void;
659
+ };
660
+
661
+ export type SkfLinkProps = {
662
+ /** Defines the semantic element to render */
663
+ as?: "button" | "a";
664
+ /** Defines the text-color */
665
+ color?: "primary" | "inverse";
666
+ /** If true, disables the link */
667
+ disabled?: boolean | undefined;
668
+ /** If defined, downloads the url */
669
+ download?: string | undefined;
670
+ /** If defined, loads url on click */
671
+ href?: string | undefined;
672
+ /** If defined, renders an icon before or after the text */
673
+ icon?:
674
+ | "arrowDown"
675
+ | "arrowDownUp"
676
+ | "arrowLeft"
677
+ | "arrowRight"
678
+ | "arrowUp"
679
+ | "article"
680
+ | "artificialIntelligence"
681
+ | "asset"
682
+ | "attachment"
683
+ | "bandCursor"
684
+ | "bands"
685
+ | "batteryEmpty"
686
+ | "batteryFull"
687
+ | "batteryLow"
688
+ | "bearingFault"
689
+ | "book"
690
+ | "bulb"
691
+ | "burger"
692
+ | "cPM"
693
+ | "calendar"
694
+ | "calendarBooked"
695
+ | "calendarEmpty"
696
+ | "calendarNotBooked"
697
+ | "calendarRecurring"
698
+ | "caretDown"
699
+ | "caretUp"
700
+ | "caretUpDown"
701
+ | "chat"
702
+ | "check"
703
+ | "checkCircle"
704
+ | "checkSmall"
705
+ | "chevronDown"
706
+ | "chevronLeft"
707
+ | "chevronRight"
708
+ | "chevronUp"
709
+ | "chevronUpDown"
710
+ | "close"
711
+ | "closeAllFaults"
712
+ | "closeFault"
713
+ | "closeSmall"
714
+ | "columnGraph"
715
+ | "comment"
716
+ | "connection1"
717
+ | "connection2"
718
+ | "connection3"
719
+ | "connection4"
720
+ | "danger"
721
+ | "defectFrequencies"
722
+ | "defectFrequenciesAlternative"
723
+ | "doubleChevronLeft"
724
+ | "doubleChevronRight"
725
+ | "download"
726
+ | "draft"
727
+ | "draftFilled"
728
+ | "draftOutlined"
729
+ | "dragNDrop"
730
+ | "drop"
731
+ | "duplicate"
732
+ | "edit"
733
+ | "emailFilled"
734
+ | "emailOutlined"
735
+ | "exclamation"
736
+ | "eye"
737
+ | "eyeHidden"
738
+ | "eyeVisible"
739
+ | "filter"
740
+ | "forbidden"
741
+ | "fullScreen"
742
+ | "fullScreenExit"
743
+ | "functionalLocation"
744
+ | "harmonicCursor"
745
+ | "heatmap"
746
+ | "hierarchy"
747
+ | "history"
748
+ | "historyAlt"
749
+ | "hourglassFramedFilled"
750
+ | "hourglassFramedOutlined"
751
+ | "hourglassOutlined"
752
+ | "hz"
753
+ | "iMX"
754
+ | "image"
755
+ | "infoCircleFilled"
756
+ | "infoCircleOutlined"
757
+ | "integration"
758
+ | "kebab"
759
+ | "link"
760
+ | "listGroup"
761
+ | "listItem"
762
+ | "locationPin"
763
+ | "lock"
764
+ | "logOut"
765
+ | "meatballs"
766
+ | "microphone"
767
+ | "minus"
768
+ | "minusSmall"
769
+ | "noData"
770
+ | "o"
771
+ | "openInNew"
772
+ | "overlayBaseline"
773
+ | "pDF"
774
+ | "paper"
775
+ | "pause"
776
+ | "pieChart"
777
+ | "pin"
778
+ | "play"
779
+ | "plus"
780
+ | "powerOff"
781
+ | "printer"
782
+ | "proCollect"
783
+ | "recAction"
784
+ | "received"
785
+ | "refresh"
786
+ | "reorder"
787
+ | "replace"
788
+ | "reply"
789
+ | "rewalkableRoute"
790
+ | "routes"
791
+ | "search"
792
+ | "send"
793
+ | "sensorA"
794
+ | "sensorB"
795
+ | "settings"
796
+ | "sidebandCursor"
797
+ | "singleCursor"
798
+ | "spectrum"
799
+ | "starFilled"
800
+ | "starOutlined"
801
+ | "statusCircle"
802
+ | "stop"
803
+ | "structuralVibration"
804
+ | "sync"
805
+ | "timewave"
806
+ | "trash"
807
+ | "trend"
808
+ | "trendingUp"
809
+ | "undo"
810
+ | "unknownCircle"
811
+ | "unknownDiamond"
812
+ | "unlink"
813
+ | "unlock"
814
+ | "unscheduledAction"
815
+ | "upload"
816
+ | "user"
817
+ | "viewFull"
818
+ | "viewHorizontal"
819
+ | "viewVertical"
820
+ | "warning"
821
+ | "warningCircle"
822
+ | "warningDiamond"
823
+ | "zoomIn"
824
+ | "zoomOut";
825
+ /** Defines the position of the icon in relation to the text */
826
+ "icon-placement"?: "left" | "right";
827
+ /** If defined, describes the relationship between a linked resource and the current document */
828
+ rel?: string | undefined;
829
+ /** If defined, used on conjunction with onClick property, second argument */
830
+ route?: string | undefined;
831
+ /** If true, fills the parents horizontal axis */
832
+ stretch?: boolean;
833
+ /** If defined, specifies where to open the linked document */
834
+ target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
835
+ /** Defines the type of button */
836
+ type?: "button" | "submit" | "reset";
837
+ /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
838
+ onClick?: function;
839
+ };
840
+
841
+ export type SkfLoaderProps = {
842
+ /** Defines the aria-label */
843
+ "aria-label"?: string;
844
+ /** If true, inverts the color (to be used on colored backgrounds) */
845
+ invert?: boolean;
846
+ /** Defines the size of the loader */
847
+ size?: "md" | "sm" | undefined;
848
+ /** */
849
+ role?: string;
850
+ /** */
851
+ ariaLive?: string;
615
852
  };
616
853
 
617
- export type SkfLinkProps = {
854
+ export type SkfLogoProps = {
855
+ /** Defines the title of the logo */
856
+ title?: string;
857
+ /** Defines the color of the logo */
858
+ color?: "primary" | "secondary" | "inverse";
859
+ };
860
+
861
+ export type SkfMenuProps = {
862
+ /** The placement of the menu */
863
+ placement?:
864
+ | "top"
865
+ | "right"
866
+ | "bottom"
867
+ | "left"
868
+ | "top-start"
869
+ | "top-end"
870
+ | "right-start"
871
+ | "right-end"
872
+ | "bottom-start"
873
+ | "bottom-end"
874
+ | "left-start"
875
+ | "left-end";
876
+ /** Whether the menu is open */
877
+ isOpen?: boolean;
878
+ /** The id of the element the menu will be anchored to */
879
+ anchor?: string;
880
+ /** Fired when the menu is opened */
881
+ onopen?: (e: CustomEvent<never>) => void;
882
+ /** Fired when the menu is closed */
883
+ onclose?: (e: CustomEvent<never>) => void;
884
+ };
885
+
886
+ export type SkfMenuItemProps = {
618
887
  /** Defines the semantic element to render */
619
888
  as?: "button" | "a";
620
889
  /** Defines the text-color */
@@ -792,26 +1061,51 @@ export type SkfLinkProps = {
792
1061
  type?: "button" | "submit" | "reset";
793
1062
  /** If provided, custom function triggered by click where the second return parameter enables custom routing. */
794
1063
  onClick?: function;
1064
+ /** Fired when something happens */
1065
+ "onmy-tag-my-event"?: (e: CustomEvent<CustomEvent>) => void;
1066
+ /** Fired when the component is clicked */
1067
+ onclick?: (e: CustomEvent<never>) => void;
1068
+ /** Fired when the mouse is over the component */
1069
+ onmouseover?: (e: CustomEvent<never>) => void;
1070
+ /** Fired when the mouse is out of the component */
1071
+ onmouseout?: (e: CustomEvent<never>) => void;
1072
+ /** Fired when the component is focused */
1073
+ onfocus?: (e: CustomEvent<never>) => void;
1074
+ /** Fired when the component is blurred */
1075
+ onblur?: (e: CustomEvent<never>) => void;
1076
+ /** Fired when the component's value changes */
1077
+ onchange?: (e: CustomEvent<never>) => void;
795
1078
  };
796
1079
 
797
- export type SkfLoaderProps = {
798
- /** Defines the aria-label */
799
- "aria-label"?: string;
800
- /** If true, inverts the color (to be used on colored backgrounds) */
801
- invert?: boolean;
802
- /** Defines the size of the loader */
803
- size?: "md" | "sm" | undefined;
1080
+ export type SkfPopoverProps = {
1081
+ /** If defined, sets a custom offset for the popover */
1082
+ offset?: number;
1083
+ /** If true, hides the arrow */
1084
+ hideArrow?: boolean;
804
1085
  /** */
805
- role?: string;
806
- /** */
807
- ariaLive?: string;
808
- };
809
-
810
- export type SkfLogoProps = {
811
- /** Defines the title of the logo */
812
- title?: string;
813
- /** Defines the color of the logo */
814
- color?: "primary" | "secondary" | "inverse";
1086
+ arrow?: boolean;
1087
+ /** The placement of the menu */
1088
+ placement?:
1089
+ | "top"
1090
+ | "right"
1091
+ | "bottom"
1092
+ | "left"
1093
+ | "top-start"
1094
+ | "top-end"
1095
+ | "right-start"
1096
+ | "right-end"
1097
+ | "bottom-start"
1098
+ | "bottom-end"
1099
+ | "left-start"
1100
+ | "left-end";
1101
+ /** Whether the menu is open */
1102
+ isOpen?: boolean;
1103
+ /** The id of the element the menu will be anchored to */
1104
+ anchor?: string;
1105
+ /** Fired when the menu is opened */
1106
+ onopen?: (e: CustomEvent<never>) => void;
1107
+ /** Fired when the menu is closed */
1108
+ onclose?: (e: CustomEvent<never>) => void;
815
1109
  };
816
1110
 
817
1111
  export type SkfProgressProps = {
@@ -934,6 +1228,29 @@ export type SkfSelectOptionGroupProps = {
934
1228
  label?: string;
935
1229
  };
936
1230
 
1231
+ export type SkfStepperProps = {
1232
+ /** Sets the active item */
1233
+ activeIndex?: number;
1234
+ /** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
1235
+ linear?: boolean;
1236
+
1237
+ /** Dispatched when the stepper item is selected */
1238
+ "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
1239
+ };
1240
+
1241
+ export type SkfStepperItemProps = {
1242
+ /** If defined, gives the supplied appearance */
1243
+ state?: Extract<SkfStepperItemState, "active" | "completed"> | undefined;
1244
+ /** If true, item marked as completed */
1245
+ completed?: boolean;
1246
+ /** */
1247
+ _setInternalState?: string;
1248
+ /** */
1249
+ role?: string;
1250
+ /** Dispatched when the stepper item is selected */
1251
+ "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
1252
+ };
1253
+
937
1254
  export type SkfSwitchProps = {
938
1255
  /** If true, sets disabled state */
939
1256
  disabled?: boolean;
@@ -1209,12 +1526,14 @@ export type SkfTextAreaProps = {
1209
1526
  };
1210
1527
 
1211
1528
  export type SkfToastProps = {
1212
- /** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
1213
- closeable?: boolean;
1214
1529
  /** */
1215
1530
  debug?: boolean;
1216
- /** Severity of the toast. */
1217
- severity?: "info" | "success" | "warning" | "error";
1531
+ /** If defined, displays leading icon */
1532
+ icon?: SkfAlert["icon"] | undefined;
1533
+ /** If true, renders with an close button and sets aria-role to `status` */
1534
+ persistent?: SkfAlert["persistent"];
1535
+ /** If defined, gives the supplied appearance */
1536
+ severity?: SkfAlert["severity"];
1218
1537
  /** Time in seconds before the toast disappears. */
1219
1538
  timer?: number;
1220
1539
  /** offsets where toasts emerge vertically */
@@ -1226,6 +1545,33 @@ export type SkfToastWrapperProps = {
1226
1545
  debug?: boolean;
1227
1546
  };
1228
1547
 
1548
+ export type SkfTooltipProps = {
1549
+ /** */
1550
+ offset?: number;
1551
+ /** The placement of the dropdown */
1552
+ placement?:
1553
+ | "top"
1554
+ | "right"
1555
+ | "bottom"
1556
+ | "left"
1557
+ | "top-start"
1558
+ | "top-end"
1559
+ | "right-start"
1560
+ | "right-end"
1561
+ | "bottom-start"
1562
+ | "bottom-end"
1563
+ | "left-start"
1564
+ | "left-end";
1565
+ /** Whether the dropdown is open */
1566
+ isOpen?: boolean;
1567
+ /** The id of the element the dropdown will be anchored to */
1568
+ anchor?: string;
1569
+ /** Fired when the dropdown is opened */
1570
+ onopen?: (e: CustomEvent<never>) => void;
1571
+ /** Fired when the dropdown is closed */
1572
+ onclose?: (e: CustomEvent<never>) => void;
1573
+ };
1574
+
1229
1575
  export type CustomElements = {
1230
1576
  /**
1231
1577
  * The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
@@ -1239,6 +1585,59 @@ export type CustomElements = {
1239
1585
  */
1240
1586
  "skf-accordion": Partial<SkfAccordionProps & BaseProps & BaseEvents>;
1241
1587
 
1588
+ /**
1589
+ * The `<skf-alert>` is a type of notification that appears in-line
1590
+ * ---
1591
+ *
1592
+ *
1593
+ * ### **Events:**
1594
+ * - **skf-alert-close** - Fires when the close button is clicked
1595
+ *
1596
+ * ### **Slots:**
1597
+ * - _default_ - Alert message. **Notice!** See design principles for approved content
1598
+ * - **link** - Slot for the link
1599
+ */
1600
+ "skf-alert": Partial<SkfAlertProps & BaseProps & BaseEvents>;
1601
+
1602
+ /**
1603
+ * The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
1604
+ * ---
1605
+ *
1606
+ *
1607
+ * ### **Events:**
1608
+ * - **click** - Fired when the item is clicked
1609
+ *
1610
+ * ### **Slots:**
1611
+ * - _default_ - One or more `<skf-breadcrumb-item>`
1612
+ */
1613
+ "skf-breadcrumb": Partial<SkfBreadcrumbProps & BaseProps & BaseEvents>;
1614
+
1615
+ /**
1616
+ * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
1617
+ * ---
1618
+ *
1619
+ *
1620
+ * ### **Slots:**
1621
+ * - _default_ - Label of the breadcrumb item
1622
+ */
1623
+ "skf-breadcrumb-item": Partial<SkfBreadcrumbItemProps & BaseProps & BaseEvents>;
1624
+
1625
+ /**
1626
+ * Component to be used in forms or for interactivity
1627
+ * ---
1628
+ *
1629
+ *
1630
+ * ### **Events:**
1631
+ * - **click** - Fires when the button is clicked
1632
+ *
1633
+ * ### **Methods:**
1634
+ * - **click()** - Simulates a click on the button.
1635
+ *
1636
+ * ### **Slots:**
1637
+ * - _default_ - The Primary content
1638
+ */
1639
+ "skf-button": Partial<SkfButtonProps & BaseProps & BaseEvents>;
1640
+
1242
1641
  /**
1243
1642
  * The `<skf-card>` can be used to group related subjects in a container
1244
1643
  * ---
@@ -1282,39 +1681,41 @@ export type CustomElements = {
1282
1681
  "skf-collapse": Partial<SkfCollapseProps & BaseProps & BaseEvents>;
1283
1682
 
1284
1683
  /**
1285
- * The `<skf-dialog>` is a component that open up a dialog with the content provided
1684
+ * A date picker component that allows users to select a date or a range of dates.
1286
1685
  * ---
1287
1686
  *
1288
1687
  *
1289
1688
  * ### **Events:**
1290
- * - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)
1291
- * - **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)
1292
- * - **close** - Fires when the dialog is closed (after transitioned out)
1689
+ * - **selected-date-changed** - When a date is selected
1690
+ * - **selected-date-range-changed** - When a range of dates is selected
1293
1691
  *
1294
1692
  * ### **Slots:**
1295
- * - _default_ - The dialog component's content
1296
- * - **heading** - The dialog component's heading
1297
- * - **footer** - The dialog component's buttons goes here
1693
+ * - _default_ - Default hint content placed inside the date picker
1298
1694
  *
1299
1695
  * ### **CSS Properties:**
1300
- * - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_
1301
- * - **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_
1696
+ * - **--max-width** - The maximum width of the date picker _(default: undefined)_
1302
1697
  */
1303
- "skf-dialog": Partial<SkfDialogProps & BaseProps & BaseEvents>;
1698
+ "skf-datepicker": Partial<SkfDatePickerProps & BaseProps & BaseEvents>;
1304
1699
 
1305
1700
  /**
1306
- * The `<skf-alert>` is a type of notification that appears in-line
1701
+ * The `<skf-dialog>` is a component that open up a dialog with the content provided
1307
1702
  * ---
1308
1703
  *
1309
1704
  *
1310
1705
  * ### **Events:**
1311
- * - **skf-alert-close** - Fires when the close button is clicked
1706
+ * - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)
1707
+ * - **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)
1708
+ * - **close** - Fires when the dialog is closed (after transitioned out)
1312
1709
  *
1313
1710
  * ### **Slots:**
1314
- * - _default_ - Alert message. **Notice!** See design principles for approved content
1315
- * - **link** - Slot for the link
1711
+ * - _default_ - The dialog component's content
1712
+ * - **footer** - The dialog component's buttons goes here
1713
+ *
1714
+ * ### **CSS Properties:**
1715
+ * - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_
1716
+ * - **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_
1316
1717
  */
1317
- "skf-alert": Partial<SkfAlertProps & BaseProps & BaseEvents>;
1718
+ "skf-dialog": Partial<SkfDialogProps & BaseProps & BaseEvents>;
1318
1719
 
1319
1720
  /**
1320
1721
  * The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
@@ -1327,22 +1728,6 @@ export type CustomElements = {
1327
1728
  */
1328
1729
  "skf-divider": Partial<SkfDividerProps & BaseProps & BaseEvents>;
1329
1730
 
1330
- /**
1331
- * Component to be used in forms or for interactivity
1332
- * ---
1333
- *
1334
- *
1335
- * ### **Events:**
1336
- * - **click** - Fires when the button is clicked
1337
- *
1338
- * ### **Methods:**
1339
- * - **click()** - Simulates a click on the button.
1340
- *
1341
- * ### **Slots:**
1342
- * - _default_ - The Primary content
1343
- */
1344
- "skf-button": Partial<SkfButtonProps & BaseProps & BaseEvents>;
1345
-
1346
1731
  /**
1347
1732
  * The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
1348
1733
  * It extends the interface of native html `<h1>` to `<h4>` elements.
@@ -1402,6 +1787,54 @@ export type CustomElements = {
1402
1787
  */
1403
1788
  "skf-logo": Partial<SkfLogoProps & BaseProps & BaseEvents>;
1404
1789
 
1790
+ /**
1791
+ * The `<skf-menu>` is a component that displays a list of actions or options.
1792
+ * ---
1793
+ *
1794
+ *
1795
+ * ### **Events:**
1796
+ * - **open** - Fired when the menu is opened
1797
+ * - **close** - Fired when the menu is closed
1798
+ *
1799
+ * ### **Slots:**
1800
+ * - _default_ - The menu popover content
1801
+ */
1802
+ "skf-menu": Partial<SkfMenuProps & BaseProps & BaseEvents>;
1803
+
1804
+ /**
1805
+ * The `<skf-menu-item>` is a component that displays a list of actions or options.
1806
+ * ---
1807
+ *
1808
+ *
1809
+ * ### **Events:**
1810
+ * - **my-tag-my-event** - Fired when something happens
1811
+ * - **click** - Fired when the component is clicked
1812
+ * - **mouseover** - Fired when the mouse is over the component
1813
+ * - **mouseout** - Fired when the mouse is out of the component
1814
+ * - **focus** - Fired when the component is focused
1815
+ * - **blur** - Fired when the component is blurred
1816
+ * - **change** - Fired when the component's value changes
1817
+ *
1818
+ * ### **Slots:**
1819
+ * - _default_ - The component's main content
1820
+ * - **my-named-slot** - A named slot of the component
1821
+ */
1822
+ "skf-menu-item": Partial<SkfMenuItemProps & BaseProps & BaseEvents>;
1823
+
1824
+ /**
1825
+ * The `<skf-popover>` is a general purpose component that displays the slot content.
1826
+ * ---
1827
+ *
1828
+ *
1829
+ * ### **Events:**
1830
+ * - **open** - Fired when the menu is opened
1831
+ * - **close** - Fired when the menu is closed
1832
+ *
1833
+ * ### **Slots:**
1834
+ * - _default_ - The popover content
1835
+ */
1836
+ "skf-popover": Partial<SkfPopoverProps & BaseProps & BaseEvents>;
1837
+
1405
1838
  /**
1406
1839
  * The `<skf-progress>` element displays an indicator showing the completion progress of a task, typically displayed as a progress bar
1407
1840
  * ---
@@ -1463,6 +1896,32 @@ export type CustomElements = {
1463
1896
  */
1464
1897
  "skf-select-option-group": Partial<SkfSelectOptionGroupProps & BaseProps & BaseEvents>;
1465
1898
 
1899
+ /**
1900
+ * The `<skf-stepper>` is a component that displays a list of actions or options.
1901
+ * ---
1902
+ *
1903
+ *
1904
+ * ### **Events:**
1905
+ * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1906
+ *
1907
+ * ### **Slots:**
1908
+ * - _default_ - One or more `<skf-stepper-item>`
1909
+ */
1910
+ "skf-stepper": Partial<SkfStepperProps & BaseProps & BaseEvents>;
1911
+
1912
+ /**
1913
+ * The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
1914
+ * ---
1915
+ *
1916
+ *
1917
+ * ### **Events:**
1918
+ * - **skf-stepper-item-select** - Dispatched when the stepper item is selected
1919
+ *
1920
+ * ### **Slots:**
1921
+ * - _default_ - Label of the stepper item
1922
+ */
1923
+ "skf-stepper-item": Partial<SkfStepperItemProps & BaseProps & BaseEvents>;
1924
+
1466
1925
  /**
1467
1926
  * The `<skf-switch>` is a component that displays a list of actions or options
1468
1927
  * ---
@@ -1551,4 +2010,18 @@ export type CustomElements = {
1551
2010
  * - _default_ - The alert components that the toast creates will render here.
1552
2011
  */
1553
2012
  "skf-toast-wrapper": Partial<SkfToastWrapperProps & BaseProps & BaseEvents>;
2013
+
2014
+ /**
2015
+ * The `<skf-tooltip>` is a component that displays a list of actions or options.
2016
+ * ---
2017
+ *
2018
+ *
2019
+ * ### **Events:**
2020
+ * - **open** - Fired when the dropdown is opened
2021
+ * - **close** - Fired when the dropdown is closed
2022
+ *
2023
+ * ### **Slots:**
2024
+ * - _default_ - The tooltip popover content
2025
+ */
2026
+ "skf-tooltip": Partial<SkfTooltipProps & BaseProps & BaseEvents>;
1554
2027
  };