@skf-design-system/ui-components 1.0.0-beta.5 → 1.0.0-beta.7
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-item.d.ts +1 -1
- package/dist/components/accordion/accordion.component.d.ts +4 -4
- package/dist/components/accordion/accordion.component.js +18 -17
- package/dist/components/accordion/accordion.styles.d.ts +1 -2
- package/dist/components/accordion/accordion.styles.js +5 -4
- package/dist/components/alert/alert.component.d.ts +3 -3
- package/dist/components/alert/alert.component.js +44 -33
- package/dist/components/alert/alert.styles.d.ts +1 -2
- package/dist/components/alert/alert.styles.js +29 -24
- package/dist/components/button/button.component.d.ts +26 -4
- package/dist/components/button/button.component.js +78 -54
- package/dist/components/button/button.styles.js +1 -0
- package/dist/components/card/card.component.d.ts +4 -4
- package/dist/components/card/card.component.js +35 -24
- package/dist/components/card/card.styles.d.ts +1 -2
- package/dist/components/card/card.styles.js +14 -12
- package/dist/components/checkbox/checkbox.component.d.ts +11 -12
- package/dist/components/checkbox/checkbox.component.js +95 -89
- package/dist/components/collapse/collapse.component.d.ts +8 -8
- package/dist/components/collapse/collapse.component.js +42 -34
- package/dist/components/collapse/collapse.styles.js +15 -14
- package/dist/components/dialog/dialog.component.d.ts +75 -0
- package/dist/components/dialog/dialog.component.js +189 -0
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/dialog.js +6 -0
- package/dist/components/dialog/dialog.styles.js +91 -0
- package/dist/components/divider/divider.component.d.ts +3 -3
- package/dist/components/divider/divider.component.js +39 -27
- package/dist/components/divider/divider.styles.d.ts +1 -2
- package/dist/components/divider/divider.styles.js +26 -26
- package/dist/components/heading/heading.component.d.ts +2 -2
- package/dist/components/icon/icon.component.d.ts +1 -1
- package/dist/components/input/input.component.d.ts +12 -11
- package/dist/components/input/input.component.js +88 -89
- package/dist/components/link/link.component.d.ts +6 -6
- package/dist/components/link/link.component.js +20 -14
- package/dist/components/link/link.styles.js +36 -40
- package/dist/components/loader/loader.component.d.ts +2 -2
- package/dist/components/loader/loader.component.js +32 -25
- package/dist/components/loader/loader.styles.js +11 -10
- package/dist/components/logo/logo.component.d.ts +3 -3
- package/dist/components/logo/logo.component.js +25 -14
- package/dist/components/logo/logo.styles.d.ts +1 -2
- package/dist/components/logo/logo.styles.js +11 -9
- package/dist/components/progress/progress.component.d.ts +22 -0
- package/dist/components/progress/progress.component.js +49 -0
- package/dist/components/progress/progress.d.ts +8 -0
- package/dist/components/progress/progress.js +6 -0
- package/dist/components/progress/progress.styles.js +48 -0
- package/dist/components/radio/radio.component.d.ts +7 -9
- package/dist/components/radio/radio.component.js +93 -77
- package/dist/components/select/select.component.d.ts +2 -2
- package/dist/components/select/select.component.js +16 -13
- package/dist/components/select/select.controllers.d.ts +1 -1
- package/dist/components/select-option/select-option.component.d.ts +1 -1
- package/dist/components/select-option/select-option.controllers.d.ts +1 -1
- package/dist/components/select-option-group/select-option-group.component.d.ts +1 -1
- package/dist/components/switch/switch.component.d.ts +2 -2
- package/dist/components/switch/switch.component.js +17 -7
- package/dist/components/switch/switch.styles.js +16 -13
- package/dist/components/tab/tab.component.d.ts +29 -0
- package/dist/components/tab/tab.component.js +57 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +6 -0
- package/dist/components/tab/tab.styles.d.ts +1 -0
- package/dist/components/tab/tab.styles.js +123 -0
- package/dist/components/tab-group/tab-group.component.d.ts +43 -0
- package/dist/components/tab-group/tab-group.component.js +98 -0
- package/dist/components/tab-group/tab-group.d.ts +8 -0
- package/dist/components/tab-group/tab-group.js +6 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
- package/dist/components/tab-group/tab-group.styles.js +75 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +19 -0
- package/dist/components/tab-panel/tab-panel.component.js +36 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +6 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +1 -0
- package/dist/components/tab-panel/tab-panel.styles.js +13 -0
- package/dist/components/tag/tag.component.d.ts +2 -2
- package/dist/components/tag/tag.component.js +61 -45
- package/dist/components/tag/tag.styles.js +30 -28
- package/dist/components/textarea/textarea.component.d.ts +4 -4
- package/dist/components/textarea/textarea.component.js +5 -5
- package/dist/components/toast/toast.component.d.ts +1 -1
- package/dist/components/toast/toast.component.js +13 -13
- package/dist/components/toast/toast.singleton.d.ts +3 -3
- package/dist/components/toast/toast.styles.d.ts +1 -0
- package/dist/components/toast-item/toast-item.component.d.ts +1 -1
- package/dist/components/toast-item/toast-item.component.js +1 -1
- package/dist/components/toast-wrapper/toast-wrapper.component.d.ts +2 -2
- package/dist/components/toast-wrapper/toast-wrapper.component.js +1 -1
- package/dist/components/toast-wrapper/toast-wrapper.styles.d.ts +1 -0
- package/dist/custom-elements.json +1170 -511
- package/dist/index.d.ts +5 -0
- package/dist/index.js +59 -44
- package/dist/internal/components/formBase.d.ts +1 -0
- package/dist/internal/components/formBase.js +11 -11
- package/dist/internal/components/hint/hint.component.d.ts +2 -2
- package/dist/internal/components/skf-element.js +26 -25
- package/dist/internal/helpers/hintSeverity.d.ts +1 -1
- package/dist/internal/helpers/watch.d.ts +27 -0
- package/dist/internal/helpers/watch.js +28 -0
- package/dist/internal/templates/asterisk.d.ts +1 -1
- package/dist/internal/templates/asterisk.js +7 -6
- package/dist/react/index.d.ts +7 -2
- package/dist/react/index.js +7 -2
- package/dist/react/skf-button/index.d.ts +7 -1
- package/dist/react/skf-button/index.js +5 -1
- package/dist/react/skf-dialog/index.d.ts +15 -0
- package/dist/react/skf-dialog/index.js +19 -0
- package/dist/react/skf-progress/index.d.ts +3 -0
- package/dist/react/skf-progress/index.js +13 -0
- package/dist/react/skf-tab/index.d.ts +12 -0
- package/dist/react/skf-tab/index.js +18 -0
- package/dist/react/skf-tab-group/index.d.ts +3 -0
- package/dist/react/skf-tab-group/index.js +13 -0
- package/dist/react/skf-tab-panel/index.d.ts +3 -0
- package/dist/react/skf-tab-panel/index.js +13 -0
- package/dist/styles/component.styles.js +15 -2
- package/dist/types/jsx/custom-element-jsx.d.ts +246 -101
- package/dist/types/vue/index.d.ts +215 -65
- package/dist/vscode.html-custom-data.json +276 -182
- package/dist/web-types.json +556 -248
- package/package.json +33 -32
- /package/dist/components/{toast-wrapper/toast-wrapper.style.d.ts → dialog/dialog.styles.d.ts} +0 -0
- /package/dist/components/{toast/toast.style.d.ts → progress/progress.styles.d.ts} +0 -0
- /package/dist/components/toast/{toast.style.js → toast.styles.js} +0 -0
- /package/dist/components/toast-item/{toast-item.style.d.ts → toast-item.styles.d.ts} +0 -0
- /package/dist/components/toast-item/{toast-item.style.js → toast-item.styles.js} +0 -0
- /package/dist/components/toast-wrapper/{toast-wrapper.style.js → toast-wrapper.styles.js} +0 -0
@@ -1,23 +1,28 @@
|
|
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 { SkfButton } from "../../components/button/button.component.js";
|
6
4
|
import type { SkfCard } from "../../components/card/card.component.js";
|
7
5
|
import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
|
8
6
|
import type { SkfCollapse, CustomEvent } from "../../components/collapse/collapse.component.js";
|
7
|
+
import type { SkfDialog } from "../../components/dialog/dialog.component.js";
|
8
|
+
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
9
9
|
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
10
|
+
import type { SkfButton } from "../../components/button/button.component.js";
|
10
11
|
import type { SkfHeading } from "../../components/heading/heading.component.js";
|
11
12
|
import type { SkfIcon } from "../../components/icon/icon.component.js";
|
12
13
|
import type { SkfInput } from "../../components/input/input.component.js";
|
13
14
|
import type { SkfLink } from "../../components/link/link.component.js";
|
14
15
|
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
15
16
|
import type { SkfLogo } from "../../components/logo/logo.component.js";
|
17
|
+
import type { SkfProgress } from "../../components/progress/progress.component.js";
|
16
18
|
import type { SkfRadio } from "../../components/radio/radio.component.js";
|
17
19
|
import type { SkfSelect } from "../../components/select/select.component.js";
|
18
20
|
import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
|
19
21
|
import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
|
20
22
|
import type { SkfSwitch } from "../../components/switch/switch.component.js";
|
23
|
+
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
24
|
+
import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
|
25
|
+
import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
|
21
26
|
import type { SkfTag } from "../../components/tag/tag.component.js";
|
22
27
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
23
28
|
import type { SkfToast } from "../../components/toast/toast.component.js";
|
@@ -38,39 +43,6 @@ type SkfAccordionProps = {
|
|
38
43
|
truncate?: SkfAccordion["truncate"];
|
39
44
|
};
|
40
45
|
|
41
|
-
type SkfAlertProps = {
|
42
|
-
/** If true, alert is being used as a toast (alertdialog) with an close button */
|
43
|
-
closeable?: SkfAlert["closeable"];
|
44
|
-
/** Close button aria-label */
|
45
|
-
"button-label"?: SkfAlert["buttonLabel"];
|
46
|
-
/** If defined, displays leading icon */
|
47
|
-
icon?: SkfAlert["icon"];
|
48
|
-
/** If defined, gives the supplied appearance */
|
49
|
-
severity?: SkfAlert["severity"];
|
50
|
-
|
51
|
-
/** Fires when the close button is clicked */
|
52
|
-
"onskf-alert-close"?: (e: CustomEvent<never>) => void;
|
53
|
-
};
|
54
|
-
|
55
|
-
type SkfButtonProps = {
|
56
|
-
/** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
|
57
|
-
destructive?: SkfButton["destructive"];
|
58
|
-
/** If true, removes border */
|
59
|
-
disabled?: SkfButton["disabled"];
|
60
|
-
/** If provided, renders an icon before or after the text */
|
61
|
-
icon?: SkfButton["icon"];
|
62
|
-
/** If provided, determines the positioning of the icon in relation to the text */
|
63
|
-
"icon-position"?: SkfButton["iconPosition"];
|
64
|
-
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
65
|
-
loading?: SkfButton["loading"];
|
66
|
-
/** If provided, displays an alternative size */
|
67
|
-
size?: SkfButton["size"];
|
68
|
-
/** If provided, changes the button type */
|
69
|
-
type?: SkfButton["type"];
|
70
|
-
/** If provided, alters the appearance */
|
71
|
-
variant?: SkfButton["variant"];
|
72
|
-
};
|
73
|
-
|
74
46
|
type SkfCardProps = {
|
75
47
|
/** If true, removes border */
|
76
48
|
"no-border"?: SkfCard["noBorder"];
|
@@ -91,8 +63,6 @@ type SkfCheckboxProps = {
|
|
91
63
|
checked?: SkfCheckbox["checked"];
|
92
64
|
/** If true, forces component to invalid state until removed */
|
93
65
|
"custom-invalid"?: SkfCheckbox["customInvalid"];
|
94
|
-
/** If true, hides the label visually */
|
95
|
-
"hide-label"?: SkfCheckbox["hideLabel"];
|
96
66
|
/** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
|
97
67
|
indeterminate?: SkfCheckbox["indeterminate"];
|
98
68
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
@@ -132,6 +102,47 @@ type SkfCollapseProps = {
|
|
132
102
|
"onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
|
133
103
|
};
|
134
104
|
|
105
|
+
type SkfDialogProps = {
|
106
|
+
/** If defined, sets the aria-label for the close button */
|
107
|
+
"close-button-aria-label"?: SkfDialog["closeButtonAriaLabel"];
|
108
|
+
/** Title for the modal/dialog */
|
109
|
+
heading?: SkfDialog["heading"];
|
110
|
+
/** If true, makes the dialog stretch edge to edge on screen */
|
111
|
+
fullscreen?: SkfDialog["fullscreen"];
|
112
|
+
/** If true, removes the close button */
|
113
|
+
"no-close-button"?: SkfDialog["noCloseButton"];
|
114
|
+
/** If defined, removes the inner padding */
|
115
|
+
"no-padding"?: SkfDialog["noPadding"];
|
116
|
+
/** */
|
117
|
+
open?: SkfDialog["open"];
|
118
|
+
/** If provided, will run function on dialog close */
|
119
|
+
onClose?: SkfDialog["onClose"];
|
120
|
+
/** Method that opens the dialog in modal state */
|
121
|
+
showModal?: SkfDialog["showModal"];
|
122
|
+
/** Method that closes the dialog */
|
123
|
+
close?: SkfDialog["close"];
|
124
|
+
/** Fires when the dialog is opened (after transitioned in) */
|
125
|
+
"onskf-dialog-open"?: (e: CustomEvent<never>) => void;
|
126
|
+
/** Fires when the dialog is closed (before transitioned out) */
|
127
|
+
"onskf-dialog-close"?: (e: CustomEvent<never>) => void;
|
128
|
+
/** Fires when the dialog is closed (after transitioned out) */
|
129
|
+
onclose?: (e: CustomEvent<never>) => void;
|
130
|
+
};
|
131
|
+
|
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
|
+
|
135
146
|
type SkfDividerProps = {
|
136
147
|
/** Defines the Divider color */
|
137
148
|
color?: SkfDivider["color"];
|
@@ -141,6 +152,30 @@ type SkfDividerProps = {
|
|
141
152
|
vertical?: SkfDivider["vertical"];
|
142
153
|
};
|
143
154
|
|
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
|
+
|
144
179
|
type SkfHeadingProps = {
|
145
180
|
/** Controls which heading element will be rendered. Should not be used to affect appearance */
|
146
181
|
as?: SkfHeading["as"];
|
@@ -164,6 +199,8 @@ type SkfInputProps = {
|
|
164
199
|
disabled?: SkfInput["undefined"];
|
165
200
|
/** If true, value is required or must be checked for the form to be submittable */
|
166
201
|
required?: SkfInput["undefined"];
|
202
|
+
/** -m } */
|
203
|
+
autocomplete?: SkfInput["autocomplete"];
|
167
204
|
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
168
205
|
"button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
|
169
206
|
/** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
|
@@ -238,7 +275,7 @@ type SkfLinkProps = {
|
|
238
275
|
icon?: SkfLink["icon"];
|
239
276
|
/** Defines the position of the icon in relation to the text */
|
240
277
|
"icon-placement"?: SkfLink["iconPlacement"];
|
241
|
-
/**
|
278
|
+
/** If defined, describes the relationship between a linked resource and the current document */
|
242
279
|
rel?: SkfLink["rel"];
|
243
280
|
/** If defined, used on conjunction with onClick property, second argument */
|
244
281
|
route?: SkfLink["route"];
|
@@ -268,10 +305,19 @@ type SkfLoaderProps = {
|
|
268
305
|
type SkfLogoProps = {
|
269
306
|
/** Defines the title of the logo */
|
270
307
|
title?: SkfLogo["title"];
|
271
|
-
/**
|
308
|
+
/** Defines the color of the logo */
|
272
309
|
color?: SkfLogo["color"];
|
273
310
|
};
|
274
311
|
|
312
|
+
type SkfProgressProps = {
|
313
|
+
/** If true, the progress-bar's fill value is animated */
|
314
|
+
animated?: SkfProgress["animated"];
|
315
|
+
/** Describes how much work the task indicated by the progress element requires */
|
316
|
+
max?: SkfProgress["max"];
|
317
|
+
/** Specifies how much of the task that has been completed */
|
318
|
+
value?: SkfProgress["value"];
|
319
|
+
};
|
320
|
+
|
275
321
|
type SkfRadioProps = {
|
276
322
|
/** If true, sets disabled state */
|
277
323
|
disabled?: SkfRadio["undefined"];
|
@@ -283,8 +329,6 @@ type SkfRadioProps = {
|
|
283
329
|
checked?: SkfRadio["checked"];
|
284
330
|
/** If true, forces component to invalid state until removed */
|
285
331
|
"custom-invalid"?: SkfRadio["customInvalid"];
|
286
|
-
/** If true, hides the label visually */
|
287
|
-
"hide-label"?: SkfRadio["hideLabel"];
|
288
332
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
289
333
|
label?: SkfRadio["label"];
|
290
334
|
/** If defined, adds name to the input-element */
|
@@ -408,6 +452,43 @@ type SkfSwitchProps = {
|
|
408
452
|
value?: SkfSwitch["value"];
|
409
453
|
};
|
410
454
|
|
455
|
+
type SkfTabProps = {
|
456
|
+
/** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
|
457
|
+
panel?: SkfTab["panel"];
|
458
|
+
/** */
|
459
|
+
selected?: SkfTab["selected"];
|
460
|
+
/** */
|
461
|
+
variant?: SkfTab["variant"];
|
462
|
+
/** */
|
463
|
+
role?: SkfTab["role"];
|
464
|
+
/** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
|
465
|
+
"onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
|
466
|
+
/** Fired when the component is clicked */
|
467
|
+
onclick?: (e: CustomEvent<never>) => void;
|
468
|
+
};
|
469
|
+
|
470
|
+
type SkfTabGroupProps = {
|
471
|
+
/** Sets the default selected tab */
|
472
|
+
"default-selected"?: SkfTabGroup["defaultSelected"];
|
473
|
+
/** If true, removes border */
|
474
|
+
"no-border"?: SkfTabGroup["noBorder"];
|
475
|
+
/** If true, removes padding */
|
476
|
+
"no-padding"?: SkfTabGroup["noPadding"];
|
477
|
+
/** If true, component fills the parent element height */
|
478
|
+
stretch?: SkfTabGroup["stretch"];
|
479
|
+
/** Sets the appearance of the tabs */
|
480
|
+
variant?: SkfTabGroup["variant"];
|
481
|
+
};
|
482
|
+
|
483
|
+
type SkfTabPanelProps = {
|
484
|
+
/** The tab panel's name. */
|
485
|
+
name?: SkfTabPanel["name"];
|
486
|
+
/** */
|
487
|
+
active?: SkfTabPanel["active"];
|
488
|
+
/** */
|
489
|
+
role?: SkfTabPanel["role"];
|
490
|
+
};
|
491
|
+
|
411
492
|
type SkfTagProps = {
|
412
493
|
/** Specifies Tag size */
|
413
494
|
size?: SkfTag["size"];
|
@@ -502,30 +583,6 @@ export type CustomElements = {
|
|
502
583
|
*/
|
503
584
|
"skf-accordion": DefineComponent<SkfAccordionProps>;
|
504
585
|
|
505
|
-
/**
|
506
|
-
* The `<skf-alert>` is a type of notification that appears in-line
|
507
|
-
* ---
|
508
|
-
*
|
509
|
-
*
|
510
|
-
* ### **Events:**
|
511
|
-
* - **skf-alert-close** - Fires when the close button is clicked
|
512
|
-
*
|
513
|
-
* ### **Slots:**
|
514
|
-
* - _default_ - Alert message. **Notice!** See design principles for approved content
|
515
|
-
* - **link** - Slot for the link
|
516
|
-
*/
|
517
|
-
"skf-alert": DefineComponent<SkfAlertProps>;
|
518
|
-
|
519
|
-
/**
|
520
|
-
* Component to be used in forms or for interactivity
|
521
|
-
* ---
|
522
|
-
*
|
523
|
-
*
|
524
|
-
* ### **Slots:**
|
525
|
-
* - _default_ - The Primary content
|
526
|
-
*/
|
527
|
-
"skf-button": DefineComponent<SkfButtonProps>;
|
528
|
-
|
529
586
|
/**
|
530
587
|
* The `<skf-card>` can be used to group related subjects in a container
|
531
588
|
* ---
|
@@ -568,6 +625,41 @@ export type CustomElements = {
|
|
568
625
|
*/
|
569
626
|
"skf-collapse": DefineComponent<SkfCollapseProps>;
|
570
627
|
|
628
|
+
/**
|
629
|
+
* The `<skf-dialog>` is a component that open up a dialog with the content provided
|
630
|
+
* ---
|
631
|
+
*
|
632
|
+
*
|
633
|
+
* ### **Events:**
|
634
|
+
* - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)
|
635
|
+
* - **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)
|
636
|
+
* - **close** - Fires when the dialog is closed (after transitioned out)
|
637
|
+
*
|
638
|
+
* ### **Slots:**
|
639
|
+
* - _default_ - The dialog component's content
|
640
|
+
* - **heading** - The dialog component's heading
|
641
|
+
* - **footer** - The dialog component's buttons goes here
|
642
|
+
*
|
643
|
+
* ### **CSS Properties:**
|
644
|
+
* - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_
|
645
|
+
* - **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_
|
646
|
+
*/
|
647
|
+
"skf-dialog": DefineComponent<SkfDialogProps>;
|
648
|
+
|
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
|
+
|
571
663
|
/**
|
572
664
|
* The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
573
665
|
* ---
|
@@ -579,6 +671,22 @@ export type CustomElements = {
|
|
579
671
|
*/
|
580
672
|
"skf-divider": DefineComponent<SkfDividerProps>;
|
581
673
|
|
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
|
+
|
582
690
|
/**
|
583
691
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
584
692
|
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
@@ -638,6 +746,13 @@ export type CustomElements = {
|
|
638
746
|
*/
|
639
747
|
"skf-logo": DefineComponent<SkfLogoProps>;
|
640
748
|
|
749
|
+
/**
|
750
|
+
* The `<skf-progress>` element displays an indicator showing the completion progress of a task, typically displayed as a progress bar
|
751
|
+
* ---
|
752
|
+
*
|
753
|
+
*/
|
754
|
+
"skf-progress": DefineComponent<SkfProgressProps>;
|
755
|
+
|
641
756
|
/**
|
642
757
|
* The `<skf-radio>` component is used to create a radio input
|
643
758
|
* ---
|
@@ -702,6 +817,41 @@ export type CustomElements = {
|
|
702
817
|
*/
|
703
818
|
"skf-switch": DefineComponent<SkfSwitchProps>;
|
704
819
|
|
820
|
+
/**
|
821
|
+
* The `<skf-tab>` is a component that displays a list of actions or options
|
822
|
+
* ---
|
823
|
+
*
|
824
|
+
*
|
825
|
+
* ### **Events:**
|
826
|
+
* - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
|
827
|
+
* - **click** - Fired when the component is clicked
|
828
|
+
*
|
829
|
+
* ### **Slots:**
|
830
|
+
* - _default_ - The tab's label
|
831
|
+
*/
|
832
|
+
"skf-tab": DefineComponent<SkfTabProps>;
|
833
|
+
|
834
|
+
/**
|
835
|
+
* The `<skf-tab-group>` is a component that displays a list of actions or options.
|
836
|
+
* ---
|
837
|
+
*
|
838
|
+
*
|
839
|
+
* ### **Slots:**
|
840
|
+
* - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
|
841
|
+
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
842
|
+
*/
|
843
|
+
"skf-tab-group": DefineComponent<SkfTabGroupProps>;
|
844
|
+
|
845
|
+
/**
|
846
|
+
* The `<skf-tab-panel>` is a component that displays a list of actions or options.
|
847
|
+
* ---
|
848
|
+
*
|
849
|
+
*
|
850
|
+
* ### **Slots:**
|
851
|
+
* - _default_ - The tab panel's content
|
852
|
+
*/
|
853
|
+
"skf-tab-panel": DefineComponent<SkfTabPanelProps>;
|
854
|
+
|
705
855
|
/**
|
706
856
|
* The `<skf-tag>` is a component that displays a list of actions or options
|
707
857
|
* ---
|