@skf-design-system/ui-components 1.0.0-beta.7 → 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.
- package/dist/components/accordion/accordion.component.js +3 -3
- package/dist/components/alert/alert.component.d.ts +2 -2
- package/dist/components/alert/alert.component.js +32 -32
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +29 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.styles.d.ts +1 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +25 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +8 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +1 -0
- package/dist/components/button/button.component.d.ts +3 -1
- package/dist/components/button/button.component.js +60 -47
- package/dist/components/button/button.styles.js +64 -45
- package/dist/components/card/card.component.js +4 -4
- package/dist/components/checkbox/checkbox.component.js +4 -4
- package/dist/components/dialog/dialog.component.d.ts +0 -1
- package/dist/components/dialog/dialog.component.js +21 -23
- package/dist/components/divider/divider.component.js +12 -12
- package/dist/components/heading/heading.component.js +13 -13
- package/dist/components/icon/icon.component.d.ts +1 -4
- package/dist/components/icon/icon.component.js +32 -23
- package/dist/components/icon/icon.styles.js +53 -47
- package/dist/components/link/link.component.d.ts +1 -0
- package/dist/components/link/link.component.js +42 -42
- package/dist/components/loader/loader.component.js +19 -19
- package/dist/components/logo/logo.component.js +6 -6
- package/dist/components/menu/menu.component.d.ts +24 -0
- package/dist/components/menu/menu.component.js +18 -0
- package/dist/components/menu/menu.d.ts +8 -0
- package/dist/components/menu/menu.js +6 -0
- package/dist/components/menu/menu.styles.d.ts +1 -0
- package/dist/components/menu/menu.styles.js +11 -0
- package/dist/components/menu-item/menu-item.component.d.ts +25 -0
- package/dist/components/menu-item/menu-item.component.js +13 -0
- package/dist/components/menu-item/menu-item.d.ts +8 -0
- package/dist/components/menu-item/menu-item.js +6 -0
- package/dist/components/menu-item/menu-item.styles.d.ts +1 -0
- package/dist/components/menu-item/menu-item.styles.js +19 -0
- package/dist/components/popover/popover.component.d.ts +29 -0
- package/dist/components/popover/popover.component.js +37 -0
- package/dist/components/popover/popover.d.ts +8 -0
- package/dist/components/popover/popover.js +6 -0
- package/dist/components/popover/popover.styles.d.ts +1 -0
- package/dist/components/popover/popover.styles.js +12 -0
- package/dist/components/progress/progress.component.js +7 -7
- package/dist/components/radio/radio.component.js +4 -4
- package/dist/components/select/select.component.d.ts +8 -10
- package/dist/components/select/select.component.js +115 -118
- package/dist/components/select/select.controllers.d.ts +0 -25
- package/dist/components/select/select.controllers.js +35 -95
- package/dist/components/select-option-group/select-option-group.component.js +9 -9
- package/dist/components/stepper/stepper.component.d.ts +38 -0
- package/dist/components/stepper/stepper.component.js +91 -0
- package/dist/components/stepper/stepper.d.ts +8 -0
- package/dist/components/stepper/stepper.helpers.d.ts +16 -0
- package/dist/components/stepper/stepper.helpers.js +18 -0
- package/dist/components/stepper/stepper.js +6 -0
- package/dist/components/stepper/stepper.styles.d.ts +1 -0
- package/dist/components/stepper/stepper.styles.js +15 -0
- package/dist/components/stepper-item/stepper-item.component.d.ts +47 -0
- package/dist/components/stepper-item/stepper-item.component.js +113 -0
- package/dist/components/stepper-item/stepper-item.d.ts +8 -0
- package/dist/components/stepper-item/stepper-item.js +6 -0
- package/dist/components/stepper-item/stepper-item.styles.d.ts +1 -0
- package/dist/components/stepper-item/stepper-item.styles.js +98 -0
- package/dist/components/tab/tab.component.js +4 -4
- package/dist/components/tab-panel/tab-panel.component.js +12 -12
- package/dist/components/tag/tag.component.js +9 -9
- package/dist/components/textarea/textarea.component.js +3 -3
- package/dist/components/toast/toast.component.d.ts +7 -4
- package/dist/components/toast/toast.component.js +30 -26
- package/dist/components/toast/toast.singleton.d.ts +2 -7
- package/dist/components/toast/toast.singleton.js +25 -25
- package/dist/components/toast-item/toast-item.component.js +15 -15
- package/dist/components/toast-item/toast-item.styles.js +13 -11
- package/dist/components/toast-wrapper/toast-wrapper.component.js +10 -10
- package/dist/components/tooltip/tooltip.component.d.ts +24 -0
- package/dist/components/tooltip/tooltip.component.js +18 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +6 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +1 -0
- package/dist/components/tooltip/tooltip.styles.js +12 -0
- package/dist/custom-elements.json +2179 -1002
- package/dist/index.d.ts +6 -0
- package/dist/index.js +72 -54
- package/dist/internal/base-classes/popover/popover.base.d.ts +29 -0
- package/dist/internal/base-classes/popover/popover.base.js +116 -0
- package/dist/internal/base-classes/popover/popover.styles.d.ts +1 -0
- package/dist/internal/base-classes/popover/popover.styles.js +29 -0
- package/dist/internal/components/hint/hint.component.js +13 -13
- package/dist/internal/controllers/popover.controller.d.ts +16 -0
- package/dist/internal/controllers/popover.controller.js +44 -0
- package/dist/internal/helpers/hintSeverity.d.ts +1 -1
- package/dist/react/index.d.ts +10 -2
- package/dist/react/index.js +10 -2
- package/dist/react/skf-breadcrumb/index.d.ts +9 -0
- package/dist/react/skf-breadcrumb/index.js +17 -0
- package/dist/react/skf-breadcrumb-item/index.d.ts +3 -0
- package/dist/react/skf-breadcrumb-item/index.js +13 -0
- package/dist/react/skf-menu/index.d.ts +12 -0
- package/dist/react/skf-menu/index.js +18 -0
- package/dist/react/skf-menu-item/index.d.ts +27 -0
- package/dist/react/skf-menu-item/index.js +23 -0
- package/dist/react/skf-popover/index.d.ts +12 -0
- package/dist/react/skf-popover/index.js +18 -0
- package/dist/react/skf-stepper/index.d.ts +9 -0
- package/dist/react/skf-stepper/index.js +17 -0
- package/dist/react/skf-stepper-item/index.d.ts +9 -0
- package/dist/react/skf-stepper-item/index.js +17 -0
- package/dist/react/skf-tooltip/index.d.ts +12 -0
- package/dist/react/skf-tooltip/index.js +18 -0
- package/dist/types/jsx/custom-element-jsx.d.ts +594 -163
- package/dist/types/vue/index.d.ts +326 -74
- package/dist/vscode.html-custom-data.json +722 -390
- package/dist/web-types.json +836 -290
- package/package.json +33 -33
@@ -1,24 +1,31 @@
|
|
1
1
|
import type { DefineComponent } from "vue";
|
2
2
|
|
3
3
|
import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
|
4
|
+
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
5
|
+
import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
|
6
|
+
import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
|
7
|
+
import type { SkfButton } from "../../components/button/button.component.js";
|
4
8
|
import type { SkfCard } from "../../components/card/card.component.js";
|
5
9
|
import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
|
6
10
|
import type { SkfCollapse, CustomEvent } from "../../components/collapse/collapse.component.js";
|
7
11
|
import type { SkfDialog } from "../../components/dialog/dialog.component.js";
|
8
|
-
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
9
12
|
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
10
|
-
import type { SkfButton } from "../../components/button/button.component.js";
|
11
13
|
import type { SkfHeading } from "../../components/heading/heading.component.js";
|
12
14
|
import type { SkfIcon } from "../../components/icon/icon.component.js";
|
13
15
|
import type { SkfInput } from "../../components/input/input.component.js";
|
14
16
|
import type { SkfLink } from "../../components/link/link.component.js";
|
15
17
|
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
16
18
|
import type { SkfLogo } from "../../components/logo/logo.component.js";
|
19
|
+
import type { SkfMenu } from "../../components/menu/menu.component.js";
|
20
|
+
import type { SkfMenuItem, CustomEvent } from "../../components/menu-item/menu-item.component.js";
|
21
|
+
import type { SkfPopover } from "../../components/popover/popover.component.js";
|
17
22
|
import type { SkfProgress } from "../../components/progress/progress.component.js";
|
18
23
|
import type { SkfRadio } from "../../components/radio/radio.component.js";
|
19
24
|
import type { SkfSelect } from "../../components/select/select.component.js";
|
20
25
|
import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
|
21
26
|
import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
|
27
|
+
import type { SkfStepper } from "../../components/stepper/stepper.component.js";
|
28
|
+
import type { SkfStepperItem } from "../../components/stepper-item/stepper-item.component.js";
|
22
29
|
import type { SkfSwitch } from "../../components/switch/switch.component.js";
|
23
30
|
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
24
31
|
import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
|
@@ -27,6 +34,7 @@ import type { SkfTag } from "../../components/tag/tag.component.js";
|
|
27
34
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
28
35
|
import type { SkfToast } from "../../components/toast/toast.component.js";
|
29
36
|
import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
|
37
|
+
import type { SkfTooltip } from "../../components/tooltip/tooltip.component.js";
|
30
38
|
|
31
39
|
type SkfAccordionProps = {
|
32
40
|
/** If true, will animate the expand/collapse state */
|
@@ -43,6 +51,63 @@ type SkfAccordionProps = {
|
|
43
51
|
truncate?: SkfAccordion["truncate"];
|
44
52
|
};
|
45
53
|
|
54
|
+
type SkfAlertProps = {
|
55
|
+
/** Close button aria-label */
|
56
|
+
"button-label"?: SkfAlert["buttonLabel"];
|
57
|
+
/** If defined, displays leading icon */
|
58
|
+
icon?: SkfAlert["icon"];
|
59
|
+
/** If true, renders with an close button and sets aria-role to `status` */
|
60
|
+
persistent?: SkfAlert["persistent"];
|
61
|
+
/** If defined, gives the supplied appearance */
|
62
|
+
severity?: SkfAlert["severity"];
|
63
|
+
|
64
|
+
/** Fires when the close button is clicked */
|
65
|
+
"onskf-alert-close"?: (e: CustomEvent<never>) => void;
|
66
|
+
};
|
67
|
+
|
68
|
+
type SkfBreadcrumbProps = {
|
69
|
+
/** aria-label for the breadcrumb control */
|
70
|
+
label?: SkfBreadcrumb["label"];
|
71
|
+
/** Displays an alternative size */
|
72
|
+
size?: SkfBreadcrumb["size"];
|
73
|
+
|
74
|
+
/** Fired when the item is clicked */
|
75
|
+
onclick?: (e: CustomEvent<never>) => void;
|
76
|
+
};
|
77
|
+
|
78
|
+
type SkfBreadcrumbItemProps = {
|
79
|
+
/** If defined, loads url on click */
|
80
|
+
href?: SkfBreadcrumbItem["href"];
|
81
|
+
/** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
|
82
|
+
onClick?: SkfBreadcrumbItem["onClick"];
|
83
|
+
};
|
84
|
+
|
85
|
+
type SkfButtonProps = {
|
86
|
+
/** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
|
87
|
+
destructive?: SkfButton["destructive"];
|
88
|
+
/** If true, removes border */
|
89
|
+
disabled?: SkfButton["disabled"];
|
90
|
+
/** If provided, renders an icon before or after the text */
|
91
|
+
icon?: SkfButton["icon"];
|
92
|
+
/** If true, removes border */
|
93
|
+
iconOnly?: SkfButton["iconOnly"];
|
94
|
+
/** If provided, determines the positioning of the icon in relation to the text */
|
95
|
+
"icon-position"?: SkfButton["iconPosition"];
|
96
|
+
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
97
|
+
loading?: SkfButton["loading"];
|
98
|
+
/** */
|
99
|
+
"no-validate"?: SkfButton["noValidate"];
|
100
|
+
/** If provided, displays an alternative size */
|
101
|
+
size?: SkfButton["size"];
|
102
|
+
/** If provided, changes the button type */
|
103
|
+
type?: SkfButton["type"];
|
104
|
+
/** If provided, alters the appearance */
|
105
|
+
variant?: SkfButton["variant"];
|
106
|
+
|
107
|
+
/** Fires when the button is clicked */
|
108
|
+
onclick?: (e: CustomEvent<never>) => void;
|
109
|
+
};
|
110
|
+
|
46
111
|
type SkfCardProps = {
|
47
112
|
/** If true, removes border */
|
48
113
|
"no-border"?: SkfCard["noBorder"];
|
@@ -129,20 +194,6 @@ type SkfDialogProps = {
|
|
129
194
|
onclose?: (e: CustomEvent<never>) => void;
|
130
195
|
};
|
131
196
|
|
132
|
-
type SkfAlertProps = {
|
133
|
-
/** If true, alert is being used as a toast (alertdialog) with an close button */
|
134
|
-
closeable?: SkfAlert["closeable"];
|
135
|
-
/** Close button aria-label */
|
136
|
-
"button-label"?: SkfAlert["buttonLabel"];
|
137
|
-
/** If defined, displays leading icon */
|
138
|
-
icon?: SkfAlert["icon"];
|
139
|
-
/** If defined, gives the supplied appearance */
|
140
|
-
severity?: SkfAlert["severity"];
|
141
|
-
|
142
|
-
/** Fires when the close button is clicked */
|
143
|
-
"onskf-alert-close"?: (e: CustomEvent<never>) => void;
|
144
|
-
};
|
145
|
-
|
146
197
|
type SkfDividerProps = {
|
147
198
|
/** Defines the Divider color */
|
148
199
|
color?: SkfDivider["color"];
|
@@ -152,30 +203,6 @@ type SkfDividerProps = {
|
|
152
203
|
vertical?: SkfDivider["vertical"];
|
153
204
|
};
|
154
205
|
|
155
|
-
type SkfButtonProps = {
|
156
|
-
/** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
|
157
|
-
destructive?: SkfButton["destructive"];
|
158
|
-
/** If true, removes border */
|
159
|
-
disabled?: SkfButton["disabled"];
|
160
|
-
/** If provided, renders an icon before or after the text */
|
161
|
-
icon?: SkfButton["icon"];
|
162
|
-
/** If provided, determines the positioning of the icon in relation to the text */
|
163
|
-
"icon-position"?: SkfButton["iconPosition"];
|
164
|
-
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
165
|
-
loading?: SkfButton["loading"];
|
166
|
-
/** */
|
167
|
-
"no-validate"?: SkfButton["noValidate"];
|
168
|
-
/** If provided, displays an alternative size */
|
169
|
-
size?: SkfButton["size"];
|
170
|
-
/** If provided, changes the button type */
|
171
|
-
type?: SkfButton["type"];
|
172
|
-
/** If provided, alters the appearance */
|
173
|
-
variant?: SkfButton["variant"];
|
174
|
-
|
175
|
-
/** Fires when the button is clicked */
|
176
|
-
onclick?: (e: CustomEvent<never>) => void;
|
177
|
-
};
|
178
|
-
|
179
206
|
type SkfHeadingProps = {
|
180
207
|
/** Controls which heading element will be rendered. Should not be used to affect appearance */
|
181
208
|
as?: SkfHeading["as"];
|
@@ -309,6 +336,81 @@ type SkfLogoProps = {
|
|
309
336
|
color?: SkfLogo["color"];
|
310
337
|
};
|
311
338
|
|
339
|
+
type SkfMenuProps = {
|
340
|
+
/** The placement of the menu */
|
341
|
+
placement?: SkfMenu["placement"];
|
342
|
+
/** Whether the menu is open */
|
343
|
+
isOpen?: SkfMenu["isOpen"];
|
344
|
+
/** The id of the element the menu will be anchored to */
|
345
|
+
anchor?: SkfMenu["anchor"];
|
346
|
+
/** Fired when the menu is opened */
|
347
|
+
onopen?: (e: CustomEvent<never>) => void;
|
348
|
+
/** Fired when the menu is closed */
|
349
|
+
onclose?: (e: CustomEvent<never>) => void;
|
350
|
+
};
|
351
|
+
|
352
|
+
type SkfMenuItemProps = {
|
353
|
+
/** Defines the semantic element to render */
|
354
|
+
as?: SkfMenuItem["as"];
|
355
|
+
/** Defines the text-color */
|
356
|
+
color?: SkfMenuItem["color"];
|
357
|
+
/** If true, disables the link */
|
358
|
+
disabled?: SkfMenuItem["disabled"];
|
359
|
+
/** If defined, downloads the url */
|
360
|
+
download?: SkfMenuItem["download"];
|
361
|
+
/** If defined, loads url on click */
|
362
|
+
href?: SkfMenuItem["href"];
|
363
|
+
/** If defined, renders an icon before or after the text */
|
364
|
+
icon?: SkfMenuItem["icon"];
|
365
|
+
/** Defines the position of the icon in relation to the text */
|
366
|
+
"icon-placement"?: SkfMenuItem["iconPlacement"];
|
367
|
+
/** If defined, describes the relationship between a linked resource and the current document */
|
368
|
+
rel?: SkfMenuItem["rel"];
|
369
|
+
/** If defined, used on conjunction with onClick property, second argument */
|
370
|
+
route?: SkfMenuItem["route"];
|
371
|
+
/** If true, fills the parents horizontal axis */
|
372
|
+
stretch?: SkfMenuItem["stretch"];
|
373
|
+
/** If defined, specifies where to open the linked document */
|
374
|
+
target?: SkfMenuItem["target"];
|
375
|
+
/** Defines the type of button */
|
376
|
+
type?: SkfMenuItem["type"];
|
377
|
+
/** If provided, custom function triggered by click where the second return parameter enables custom routing. */
|
378
|
+
onClick?: SkfMenuItem["onClick"];
|
379
|
+
/** Fired when something happens */
|
380
|
+
"onmy-tag-my-event"?: (e: CustomEvent<CustomEvent>) => void;
|
381
|
+
/** Fired when the component is clicked */
|
382
|
+
onclick?: (e: CustomEvent<never>) => void;
|
383
|
+
/** Fired when the mouse is over the component */
|
384
|
+
onmouseover?: (e: CustomEvent<never>) => void;
|
385
|
+
/** Fired when the mouse is out of the component */
|
386
|
+
onmouseout?: (e: CustomEvent<never>) => void;
|
387
|
+
/** Fired when the component is focused */
|
388
|
+
onfocus?: (e: CustomEvent<never>) => void;
|
389
|
+
/** Fired when the component is blurred */
|
390
|
+
onblur?: (e: CustomEvent<never>) => void;
|
391
|
+
/** Fired when the component's value changes */
|
392
|
+
onchange?: (e: CustomEvent<never>) => void;
|
393
|
+
};
|
394
|
+
|
395
|
+
type SkfPopoverProps = {
|
396
|
+
/** If defined, sets a custom offset for the popover */
|
397
|
+
offset?: SkfPopover["offset"];
|
398
|
+
/** If true, hides the arrow */
|
399
|
+
hideArrow?: SkfPopover["hideArrow"];
|
400
|
+
/** */
|
401
|
+
arrow?: SkfPopover["arrow"];
|
402
|
+
/** The placement of the menu */
|
403
|
+
placement?: SkfPopover["placement"];
|
404
|
+
/** Whether the menu is open */
|
405
|
+
isOpen?: SkfPopover["isOpen"];
|
406
|
+
/** The id of the element the menu will be anchored to */
|
407
|
+
anchor?: SkfPopover["anchor"];
|
408
|
+
/** Fired when the menu is opened */
|
409
|
+
onopen?: (e: CustomEvent<never>) => void;
|
410
|
+
/** Fired when the menu is closed */
|
411
|
+
onclose?: (e: CustomEvent<never>) => void;
|
412
|
+
};
|
413
|
+
|
312
414
|
type SkfProgressProps = {
|
313
415
|
/** If true, the progress-bar's fill value is animated */
|
314
416
|
animated?: SkfProgress["animated"];
|
@@ -429,6 +531,29 @@ type SkfSelectOptionGroupProps = {
|
|
429
531
|
label?: SkfSelectOptionGroup["label"];
|
430
532
|
};
|
431
533
|
|
534
|
+
type SkfStepperProps = {
|
535
|
+
/** Sets the active item */
|
536
|
+
activeIndex?: SkfStepper["activeIndex"];
|
537
|
+
/** If true, sets linear mode (user can't go back to completed steps due to dependencies) */
|
538
|
+
linear?: SkfStepper["linear"];
|
539
|
+
|
540
|
+
/** Dispatched when the stepper item is selected */
|
541
|
+
"onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
|
542
|
+
};
|
543
|
+
|
544
|
+
type SkfStepperItemProps = {
|
545
|
+
/** If defined, gives the supplied appearance */
|
546
|
+
state?: SkfStepperItem["state"];
|
547
|
+
/** If true, item marked as completed */
|
548
|
+
completed?: SkfStepperItem["completed"];
|
549
|
+
/** */
|
550
|
+
_setInternalState?: SkfStepperItem["_setInternalState"];
|
551
|
+
/** */
|
552
|
+
role?: SkfStepperItem["role"];
|
553
|
+
/** Dispatched when the stepper item is selected */
|
554
|
+
"onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
|
555
|
+
};
|
556
|
+
|
432
557
|
type SkfSwitchProps = {
|
433
558
|
/** If true, sets disabled state */
|
434
559
|
disabled?: SkfSwitch["undefined"];
|
@@ -553,11 +678,13 @@ type SkfTextAreaProps = {
|
|
553
678
|
};
|
554
679
|
|
555
680
|
type SkfToastProps = {
|
556
|
-
/** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
|
557
|
-
closeable?: SkfToast["closeable"];
|
558
681
|
/** */
|
559
682
|
debug?: SkfToast["debug"];
|
560
|
-
/**
|
683
|
+
/** If defined, displays leading icon */
|
684
|
+
icon?: SkfToast["icon"];
|
685
|
+
/** If true, renders with an close button and sets aria-role to `status` */
|
686
|
+
persistent?: SkfToast["persistent"];
|
687
|
+
/** If defined, gives the supplied appearance */
|
561
688
|
severity?: SkfToast["severity"];
|
562
689
|
/** Time in seconds before the toast disappears. */
|
563
690
|
timer?: SkfToast["timer"];
|
@@ -570,6 +697,21 @@ type SkfToastWrapperProps = {
|
|
570
697
|
debug?: SkfToastWrapper["debug"];
|
571
698
|
};
|
572
699
|
|
700
|
+
type SkfTooltipProps = {
|
701
|
+
/** */
|
702
|
+
offset?: SkfTooltip["offset"];
|
703
|
+
/** The placement of the dropdown */
|
704
|
+
placement?: SkfTooltip["placement"];
|
705
|
+
/** Whether the dropdown is open */
|
706
|
+
isOpen?: SkfTooltip["isOpen"];
|
707
|
+
/** The id of the element the dropdown will be anchored to */
|
708
|
+
anchor?: SkfTooltip["anchor"];
|
709
|
+
/** Fired when the dropdown is opened */
|
710
|
+
onopen?: (e: CustomEvent<never>) => void;
|
711
|
+
/** Fired when the dropdown is closed */
|
712
|
+
onclose?: (e: CustomEvent<never>) => void;
|
713
|
+
};
|
714
|
+
|
573
715
|
export type CustomElements = {
|
574
716
|
/**
|
575
717
|
* The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
|
@@ -583,6 +725,59 @@ export type CustomElements = {
|
|
583
725
|
*/
|
584
726
|
"skf-accordion": DefineComponent<SkfAccordionProps>;
|
585
727
|
|
728
|
+
/**
|
729
|
+
* The `<skf-alert>` is a type of notification that appears in-line
|
730
|
+
* ---
|
731
|
+
*
|
732
|
+
*
|
733
|
+
* ### **Events:**
|
734
|
+
* - **skf-alert-close** - Fires when the close button is clicked
|
735
|
+
*
|
736
|
+
* ### **Slots:**
|
737
|
+
* - _default_ - Alert message. **Notice!** See design principles for approved content
|
738
|
+
* - **link** - Slot for the link
|
739
|
+
*/
|
740
|
+
"skf-alert": DefineComponent<SkfAlertProps>;
|
741
|
+
|
742
|
+
/**
|
743
|
+
* The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
|
744
|
+
* ---
|
745
|
+
*
|
746
|
+
*
|
747
|
+
* ### **Events:**
|
748
|
+
* - **click** - Fired when the item is clicked
|
749
|
+
*
|
750
|
+
* ### **Slots:**
|
751
|
+
* - _default_ - One or more `<skf-breadcrumb-item>`
|
752
|
+
*/
|
753
|
+
"skf-breadcrumb": DefineComponent<SkfBreadcrumbProps>;
|
754
|
+
|
755
|
+
/**
|
756
|
+
* The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
|
757
|
+
* ---
|
758
|
+
*
|
759
|
+
*
|
760
|
+
* ### **Slots:**
|
761
|
+
* - _default_ - Label of the breadcrumb item
|
762
|
+
*/
|
763
|
+
"skf-breadcrumb-item": DefineComponent<SkfBreadcrumbItemProps>;
|
764
|
+
|
765
|
+
/**
|
766
|
+
* Component to be used in forms or for interactivity
|
767
|
+
* ---
|
768
|
+
*
|
769
|
+
*
|
770
|
+
* ### **Events:**
|
771
|
+
* - **click** - Fires when the button is clicked
|
772
|
+
*
|
773
|
+
* ### **Methods:**
|
774
|
+
* - **click()** - Simulates a click on the button.
|
775
|
+
*
|
776
|
+
* ### **Slots:**
|
777
|
+
* - _default_ - The Primary content
|
778
|
+
*/
|
779
|
+
"skf-button": DefineComponent<SkfButtonProps>;
|
780
|
+
|
586
781
|
/**
|
587
782
|
* The `<skf-card>` can be used to group related subjects in a container
|
588
783
|
* ---
|
@@ -637,7 +832,6 @@ export type CustomElements = {
|
|
637
832
|
*
|
638
833
|
* ### **Slots:**
|
639
834
|
* - _default_ - The dialog component's content
|
640
|
-
* - **heading** - The dialog component's heading
|
641
835
|
* - **footer** - The dialog component's buttons goes here
|
642
836
|
*
|
643
837
|
* ### **CSS Properties:**
|
@@ -646,20 +840,6 @@ export type CustomElements = {
|
|
646
840
|
*/
|
647
841
|
"skf-dialog": DefineComponent<SkfDialogProps>;
|
648
842
|
|
649
|
-
/**
|
650
|
-
* The `<skf-alert>` is a type of notification that appears in-line
|
651
|
-
* ---
|
652
|
-
*
|
653
|
-
*
|
654
|
-
* ### **Events:**
|
655
|
-
* - **skf-alert-close** - Fires when the close button is clicked
|
656
|
-
*
|
657
|
-
* ### **Slots:**
|
658
|
-
* - _default_ - Alert message. **Notice!** See design principles for approved content
|
659
|
-
* - **link** - Slot for the link
|
660
|
-
*/
|
661
|
-
"skf-alert": DefineComponent<SkfAlertProps>;
|
662
|
-
|
663
843
|
/**
|
664
844
|
* The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
665
845
|
* ---
|
@@ -671,22 +851,6 @@ export type CustomElements = {
|
|
671
851
|
*/
|
672
852
|
"skf-divider": DefineComponent<SkfDividerProps>;
|
673
853
|
|
674
|
-
/**
|
675
|
-
* Component to be used in forms or for interactivity
|
676
|
-
* ---
|
677
|
-
*
|
678
|
-
*
|
679
|
-
* ### **Events:**
|
680
|
-
* - **click** - Fires when the button is clicked
|
681
|
-
*
|
682
|
-
* ### **Methods:**
|
683
|
-
* - **click()** - Simulates a click on the button.
|
684
|
-
*
|
685
|
-
* ### **Slots:**
|
686
|
-
* - _default_ - The Primary content
|
687
|
-
*/
|
688
|
-
"skf-button": DefineComponent<SkfButtonProps>;
|
689
|
-
|
690
854
|
/**
|
691
855
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
692
856
|
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
@@ -746,6 +910,54 @@ export type CustomElements = {
|
|
746
910
|
*/
|
747
911
|
"skf-logo": DefineComponent<SkfLogoProps>;
|
748
912
|
|
913
|
+
/**
|
914
|
+
* The `<skf-menu>` is a component that displays a list of actions or options.
|
915
|
+
* ---
|
916
|
+
*
|
917
|
+
*
|
918
|
+
* ### **Events:**
|
919
|
+
* - **open** - Fired when the menu is opened
|
920
|
+
* - **close** - Fired when the menu is closed
|
921
|
+
*
|
922
|
+
* ### **Slots:**
|
923
|
+
* - _default_ - The menu popover content
|
924
|
+
*/
|
925
|
+
"skf-menu": DefineComponent<SkfMenuProps>;
|
926
|
+
|
927
|
+
/**
|
928
|
+
* The `<skf-menu-item>` is a component that displays a list of actions or options.
|
929
|
+
* ---
|
930
|
+
*
|
931
|
+
*
|
932
|
+
* ### **Events:**
|
933
|
+
* - **my-tag-my-event** - Fired when something happens
|
934
|
+
* - **click** - Fired when the component is clicked
|
935
|
+
* - **mouseover** - Fired when the mouse is over the component
|
936
|
+
* - **mouseout** - Fired when the mouse is out of the component
|
937
|
+
* - **focus** - Fired when the component is focused
|
938
|
+
* - **blur** - Fired when the component is blurred
|
939
|
+
* - **change** - Fired when the component's value changes
|
940
|
+
*
|
941
|
+
* ### **Slots:**
|
942
|
+
* - _default_ - The component's main content
|
943
|
+
* - **my-named-slot** - A named slot of the component
|
944
|
+
*/
|
945
|
+
"skf-menu-item": DefineComponent<SkfMenuItemProps>;
|
946
|
+
|
947
|
+
/**
|
948
|
+
* The `<skf-popover>` is a general purpose component that displays the slot content.
|
949
|
+
* ---
|
950
|
+
*
|
951
|
+
*
|
952
|
+
* ### **Events:**
|
953
|
+
* - **open** - Fired when the menu is opened
|
954
|
+
* - **close** - Fired when the menu is closed
|
955
|
+
*
|
956
|
+
* ### **Slots:**
|
957
|
+
* - _default_ - The popover content
|
958
|
+
*/
|
959
|
+
"skf-popover": DefineComponent<SkfPopoverProps>;
|
960
|
+
|
749
961
|
/**
|
750
962
|
* The `<skf-progress>` element displays an indicator showing the completion progress of a task, typically displayed as a progress bar
|
751
963
|
* ---
|
@@ -807,6 +1019,32 @@ export type CustomElements = {
|
|
807
1019
|
*/
|
808
1020
|
"skf-select-option-group": DefineComponent<SkfSelectOptionGroupProps>;
|
809
1021
|
|
1022
|
+
/**
|
1023
|
+
* The `<skf-stepper>` is a component that displays a list of actions or options.
|
1024
|
+
* ---
|
1025
|
+
*
|
1026
|
+
*
|
1027
|
+
* ### **Events:**
|
1028
|
+
* - **skf-stepper-item-select** - Dispatched when the stepper item is selected
|
1029
|
+
*
|
1030
|
+
* ### **Slots:**
|
1031
|
+
* - _default_ - One or more `<skf-stepper-item>`
|
1032
|
+
*/
|
1033
|
+
"skf-stepper": DefineComponent<SkfStepperProps>;
|
1034
|
+
|
1035
|
+
/**
|
1036
|
+
* The `<skf-stepper-item>` is used in conjunction with the `<skf-stepper>` component
|
1037
|
+
* ---
|
1038
|
+
*
|
1039
|
+
*
|
1040
|
+
* ### **Events:**
|
1041
|
+
* - **skf-stepper-item-select** - Dispatched when the stepper item is selected
|
1042
|
+
*
|
1043
|
+
* ### **Slots:**
|
1044
|
+
* - _default_ - Label of the stepper item
|
1045
|
+
*/
|
1046
|
+
"skf-stepper-item": DefineComponent<SkfStepperItemProps>;
|
1047
|
+
|
810
1048
|
/**
|
811
1049
|
* The `<skf-switch>` is a component that displays a list of actions or options
|
812
1050
|
* ---
|
@@ -895,6 +1133,20 @@ export type CustomElements = {
|
|
895
1133
|
* - _default_ - The alert components that the toast creates will render here.
|
896
1134
|
*/
|
897
1135
|
"skf-toast-wrapper": DefineComponent<SkfToastWrapperProps>;
|
1136
|
+
|
1137
|
+
/**
|
1138
|
+
* The `<skf-tooltip>` is a component that displays a list of actions or options.
|
1139
|
+
* ---
|
1140
|
+
*
|
1141
|
+
*
|
1142
|
+
* ### **Events:**
|
1143
|
+
* - **open** - Fired when the dropdown is opened
|
1144
|
+
* - **close** - Fired when the dropdown is closed
|
1145
|
+
*
|
1146
|
+
* ### **Slots:**
|
1147
|
+
* - _default_ - The tooltip popover content
|
1148
|
+
*/
|
1149
|
+
"skf-tooltip": DefineComponent<SkfTooltipProps>;
|
898
1150
|
};
|
899
1151
|
|
900
1152
|
declare module "vue" {
|