@skf-design-system/ui-components 0.0.1-beta.4 → 1.0.0-alpha.28
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/README.md +26 -6
- package/custom-elements.json +18265 -0
- package/dist/components/accordion/accordion.component.d.ts +9 -5
- package/dist/components/accordion/accordion.component.js +22 -19
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.styles.js +3 -3
- package/dist/components/alert/alert.component.d.ts +7 -4
- package/dist/components/alert/alert.component.js +21 -19
- package/dist/components/alert/alert.styles.js +50 -47
- package/dist/components/button/button.component.d.ts +24 -0
- package/dist/components/button/button.component.js +80 -56
- package/dist/components/button/button.styles.js +2 -1
- package/dist/components/card/card.component.d.ts +3 -3
- package/dist/components/card/card.component.js +16 -19
- package/dist/components/card/card.styles.js +11 -3
- package/dist/components/checkbox/checkbox.component.d.ts +17 -15
- package/dist/components/checkbox/checkbox.component.js +95 -89
- package/dist/components/checkbox/checkbox.styles.js +7 -2
- package/dist/components/checkbox/checkbox.test.d.ts +1 -0
- package/dist/components/collapse/collapse.component.d.ts +9 -6
- package/dist/components/collapse/collapse.component.js +39 -36
- package/dist/components/collapse/collapse.styles.js +3 -3
- package/dist/components/collapse/collapse.test.d.ts +1 -0
- package/dist/components/divider/divider.component.d.ts +13 -10
- package/dist/components/divider/divider.component.js +34 -29
- package/dist/components/divider/divider.styles.js +1 -5
- package/dist/components/heading/heading.component.d.ts +12 -2
- package/dist/components/heading/heading.component.js +14 -14
- package/dist/components/heading/heading.styles.js +1 -1
- package/dist/components/icon/icon.component.d.ts +14 -8
- package/dist/components/icon/icon.component.js +6 -6
- package/dist/components/icon/icon.styles.js +56 -54
- package/dist/components/input/input.component.d.ts +44 -29
- package/dist/components/input/input.component.js +118 -111
- package/dist/components/link/link.component.d.ts +15 -12
- package/dist/components/link/link.component.js +7 -7
- package/dist/components/link/link.styles.js +1 -1
- package/dist/components/loader/loader.component.d.ts +7 -7
- package/dist/components/loader/loader.component.js +35 -61
- package/dist/components/loader/loader.styles.js +42 -10
- package/dist/components/logo/logo.component.d.ts +5 -3
- package/dist/components/logo/logo.component.js +8 -8
- package/dist/components/logo/logo.styles.js +2 -2
- package/dist/components/progress/progress.component.d.ts +22 -0
- package/dist/components/progress/progress.component.js +40 -0
- package/dist/components/progress/progress.d.ts +8 -0
- package/dist/components/progress/progress.js +6 -0
- package/dist/components/progress/progress.styles.d.ts +1 -0
- package/dist/components/progress/progress.styles.js +47 -0
- package/dist/components/radio/radio.component.d.ts +18 -18
- package/dist/components/radio/radio.component.js +94 -78
- package/dist/components/radio/radio.styles.js +6 -1
- package/dist/components/select/select.component.d.ts +140 -0
- package/dist/components/select/select.component.js +327 -0
- package/dist/components/select/select.controllers.d.ts +59 -0
- package/dist/components/select/select.controllers.js +172 -0
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/select/select.js +6 -0
- package/dist/components/select/select.styles.d.ts +1 -0
- package/dist/components/select/select.styles.js +131 -0
- package/dist/components/select-option/select-option.component.d.ts +77 -0
- package/dist/components/select-option/select-option.component.js +123 -0
- package/dist/components/select-option/select-option.controllers.d.ts +9 -0
- package/dist/components/select-option/select-option.d.ts +8 -0
- package/dist/components/select-option/select-option.js +6 -0
- package/dist/components/select-option/select-option.styles.d.ts +1 -0
- package/dist/components/select-option/select-option.styles.js +53 -0
- package/dist/components/select-option-group/select-option-group.component.d.ts +16 -0
- package/dist/components/select-option-group/select-option-group.component.js +31 -0
- package/dist/components/select-option-group/select-option-group.d.ts +8 -0
- package/dist/components/select-option-group/select-option-group.js +6 -0
- package/dist/components/select-option-group/select-option-group.style.d.ts +1 -0
- package/dist/components/select-option-group/select-option-group.style.js +18 -0
- package/dist/components/switch/switch.component.d.ts +2 -3
- package/dist/components/switch/switch.component.js +5 -2
- package/dist/components/switch/switch.styles.js +6 -1
- package/dist/components/switch/switch.test.d.ts +1 -0
- 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 +25 -4
- package/dist/components/tag/tag.component.js +66 -29
- package/dist/components/tag/tag.styles.js +6 -5
- package/dist/components/textarea/textarea.component.d.ts +26 -23
- package/dist/components/textarea/textarea.component.js +20 -17
- package/dist/components/toast/toast.component.d.ts +35 -0
- package/dist/components/toast/toast.component.js +52 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/toast/toast.js +6 -0
- package/dist/components/toast/toast.singleton.d.ts +26 -0
- package/dist/components/toast/toast.singleton.js +53 -0
- package/dist/components/toast/toast.styles.d.ts +1 -0
- package/dist/components/toast/toast.styles.js +9 -0
- package/dist/components/toast-item/toast-item.component.d.ts +21 -0
- package/dist/components/toast-item/toast-item.component.js +65 -0
- package/dist/components/toast-item/toast-item.d.ts +6 -0
- package/dist/components/toast-item/toast-item.js +2 -0
- package/dist/components/toast-item/toast-item.styles.d.ts +2 -0
- package/dist/components/toast-item/toast-item.styles.js +16 -0
- package/dist/components/toast-wrapper/toast-wrapper.component.d.ts +24 -0
- package/dist/components/toast-wrapper/toast-wrapper.component.js +37 -0
- package/dist/components/toast-wrapper/toast-wrapper.d.ts +8 -0
- package/dist/components/toast-wrapper/toast-wrapper.js +6 -0
- package/dist/components/toast-wrapper/toast-wrapper.styles.d.ts +1 -0
- package/dist/components/toast-wrapper/toast-wrapper.styles.js +20 -0
- package/dist/custom-elements.json +2146 -616
- package/dist/index.d.ts +8 -0
- package/dist/index.js +60 -36
- package/dist/internal/components/formBase.d.ts +19 -1
- package/dist/internal/components/formBase.js +29 -17
- package/dist/internal/components/hint/hint.component.js +12 -10
- package/dist/internal/components/hint/hint.styles.js +26 -10
- package/dist/internal/components/skf-element.d.ts +4 -4
- package/dist/internal/components/skf-element.js +15 -19
- package/dist/internal/helpers/array.d.ts +4 -0
- package/dist/internal/helpers/findMatchingTags.d.ts +2 -0
- package/dist/internal/helpers/findMatchingTags.js +12 -0
- package/dist/internal/helpers/hintSeverity.d.ts +2 -0
- package/dist/internal/helpers/hintSeverity.js +6 -0
- package/dist/internal/helpers/raiseError.d.ts +28 -0
- package/dist/internal/helpers/raiseError.js +29 -0
- package/dist/internal/helpers/watch.d.ts +27 -0
- package/dist/internal/helpers/watch.js +28 -0
- package/dist/internal/storybook/shadowRootTraverser.d.ts +16 -6
- package/dist/react/index.d.ts +9 -0
- package/dist/react/index.js +9 -0
- package/dist/react/skf-button/index.d.ts +7 -1
- package/dist/react/skf-button/index.js +5 -1
- package/dist/react/skf-progress/index.d.ts +3 -0
- package/dist/react/skf-progress/index.js +13 -0
- package/dist/react/skf-select/index.d.ts +21 -0
- package/dist/react/skf-select/index.js +21 -0
- package/dist/react/skf-select-option/index.d.ts +9 -0
- package/dist/react/skf-select-option/index.js +17 -0
- package/dist/react/skf-select-option-group/index.d.ts +3 -0
- package/dist/react/skf-select-option-group/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/react/skf-toast/index.d.ts +3 -0
- package/dist/react/skf-toast/index.js +13 -0
- package/dist/react/skf-toast-wrapper/index.d.ts +3 -0
- package/dist/react/skf-toast-wrapper/index.js +13 -0
- package/dist/styles/form-field.styles.js +11 -7
- package/dist/types/jsx/custom-element-jsx.d.ts +166 -995
- package/dist/types/vue/index.d.ts +368 -94
- package/dist/vscode.html-custom-data.json +408 -106
- package/dist/web-types.json +932 -281
- package/package.json +39 -35
@@ -13,17 +13,26 @@ import type { SkfInput } from "../../components/input/input.component.js";
|
|
13
13
|
import type { SkfLink } from "../../components/link/link.component.js";
|
14
14
|
import type { SkfLoader } from "../../components/loader/loader.component.js";
|
15
15
|
import type { SkfLogo } from "../../components/logo/logo.component.js";
|
16
|
+
import type { SkfProgress } from "../../components/progress/progress.component.js";
|
16
17
|
import type { SkfRadio } from "../../components/radio/radio.component.js";
|
18
|
+
import type { SkfSelect } from "../../components/select/select.component.js";
|
19
|
+
import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
|
20
|
+
import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
|
17
21
|
import type { SkfSwitch } from "../../components/switch/switch.component.js";
|
22
|
+
import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js";
|
23
|
+
import type { SkfTabGroup } from "../../components/tab-group/tab-group.component.js";
|
24
|
+
import type { SkfTabPanel } from "../../components/tab-panel/tab-panel.component.js";
|
18
25
|
import type { SkfTag } from "../../components/tag/tag.component.js";
|
19
26
|
import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
|
27
|
+
import type { SkfToast } from "../../components/toast/toast.component.js";
|
28
|
+
import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
|
20
29
|
|
21
30
|
type SkfAccordionProps = {
|
22
31
|
/** If true, will animate the expand/collapse state */
|
23
32
|
animated?: SkfAccordion["animated"];
|
24
|
-
/**
|
33
|
+
/** Defines which heading element will be rendered */
|
25
34
|
"heading-as"?: SkfAccordion["headingAs"];
|
26
|
-
/** If
|
35
|
+
/** If true, adds a gap between each item */
|
27
36
|
gap?: SkfAccordion["gap"];
|
28
37
|
/** If true, allowes multiple accordion items to open */
|
29
38
|
multiple?: SkfAccordion["multiple"];
|
@@ -34,7 +43,7 @@ type SkfAccordionProps = {
|
|
34
43
|
};
|
35
44
|
|
36
45
|
type SkfAlertProps = {
|
37
|
-
/** If true, alert is being used as a toast with an close button */
|
46
|
+
/** If true, alert is being used as a toast (alertdialog) with an close button */
|
38
47
|
closeable?: SkfAlert["closeable"];
|
39
48
|
/** Close button aria-label */
|
40
49
|
"button-label"?: SkfAlert["buttonLabel"];
|
@@ -58,12 +67,17 @@ type SkfButtonProps = {
|
|
58
67
|
"icon-position"?: SkfButton["iconPosition"];
|
59
68
|
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
60
69
|
loading?: SkfButton["loading"];
|
70
|
+
/** */
|
71
|
+
"no-validate"?: SkfButton["noValidate"];
|
61
72
|
/** If provided, displays an alternative size */
|
62
73
|
size?: SkfButton["size"];
|
63
74
|
/** If provided, changes the button type */
|
64
75
|
type?: SkfButton["type"];
|
65
76
|
/** If provided, alters the appearance */
|
66
77
|
variant?: SkfButton["variant"];
|
78
|
+
|
79
|
+
/** Fires when the button is clicked */
|
80
|
+
onclick?: (e: CustomEvent<never>) => void;
|
67
81
|
};
|
68
82
|
|
69
83
|
type SkfCardProps = {
|
@@ -86,8 +100,6 @@ type SkfCheckboxProps = {
|
|
86
100
|
checked?: SkfCheckbox["checked"];
|
87
101
|
/** If true, forces component to invalid state until removed */
|
88
102
|
"custom-invalid"?: SkfCheckbox["customInvalid"];
|
89
|
-
/** If true, hides the label visually */
|
90
|
-
"hide-label"?: SkfCheckbox["hideLabel"];
|
91
103
|
/** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
|
92
104
|
indeterminate?: SkfCheckbox["indeterminate"];
|
93
105
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
@@ -96,12 +108,12 @@ type SkfCheckboxProps = {
|
|
96
108
|
name?: SkfCheckbox["name"];
|
97
109
|
/** If defined, renders an alternative A11y text for the asterisk */
|
98
110
|
"required-label"?: SkfCheckbox["requiredLabel"];
|
99
|
-
/** Size of the checkbox */
|
100
|
-
size?: SkfCheckbox["size"];
|
101
111
|
/** If defined, styles checkbox using provided severity */
|
102
112
|
severity?: SkfCheckbox["severity"];
|
103
|
-
/** If
|
113
|
+
/** If true, displays valid state after interaction */
|
104
114
|
"show-valid"?: SkfCheckbox["showValid"];
|
115
|
+
/** Size of the checkbox */
|
116
|
+
size?: SkfCheckbox["size"];
|
105
117
|
/** The current value of the input field */
|
106
118
|
value?: SkfCheckbox["value"];
|
107
119
|
|
@@ -116,7 +128,7 @@ type SkfCollapseProps = {
|
|
116
128
|
expanded?: SkfCollapse["expanded"];
|
117
129
|
/** Heading for the collapse */
|
118
130
|
heading?: SkfCollapse["heading"];
|
119
|
-
/**
|
131
|
+
/** Defines which heading element will be rendered */
|
120
132
|
"heading-as"?: SkfCollapse["headingAs"];
|
121
133
|
/** If true, renders the small version */
|
122
134
|
small?: SkfCollapse["small"];
|
@@ -128,7 +140,7 @@ type SkfCollapseProps = {
|
|
128
140
|
};
|
129
141
|
|
130
142
|
type SkfDividerProps = {
|
131
|
-
/**
|
143
|
+
/** Defines the Divider color */
|
132
144
|
color?: SkfDivider["color"];
|
133
145
|
/** If true, renders a div for presentational purpose instead of the semantic hr-element */
|
134
146
|
decorative?: SkfDivider["decorative"];
|
@@ -137,20 +149,20 @@ type SkfDividerProps = {
|
|
137
149
|
};
|
138
150
|
|
139
151
|
type SkfHeadingProps = {
|
140
|
-
/** Controls which heading element will be rendered. Should not be used to affect appearance
|
152
|
+
/** Controls which heading element will be rendered. Should not be used to affect appearance */
|
141
153
|
as?: SkfHeading["as"];
|
142
154
|
/** If provided, changes the appearance of the heading */
|
143
155
|
"styled-as"?: SkfHeading["styledAs"];
|
144
156
|
};
|
145
157
|
|
146
158
|
type SkfIconProps = {
|
147
|
-
/**
|
159
|
+
/** Sets the color of the icon */
|
148
160
|
color?: SkfIcon["color"];
|
149
|
-
/** If
|
161
|
+
/** If defined, adds an alternate description to use for assistive devices */
|
150
162
|
label?: SkfIcon["label"];
|
151
|
-
/**
|
163
|
+
/** Name of the icon to display */
|
152
164
|
name?: SkfIcon["name"];
|
153
|
-
/**
|
165
|
+
/** Size of the icon */
|
154
166
|
size?: SkfIcon["size"];
|
155
167
|
};
|
156
168
|
|
@@ -159,62 +171,61 @@ type SkfInputProps = {
|
|
159
171
|
disabled?: SkfInput["undefined"];
|
160
172
|
/** If true, value is required or must be checked for the form to be submittable */
|
161
173
|
required?: SkfInput["undefined"];
|
162
|
-
/**
|
174
|
+
/** -m } */
|
175
|
+
autocomplete?: SkfInput["autocomplete"];
|
176
|
+
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
163
177
|
"button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
|
164
|
-
/**
|
178
|
+
/** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
|
165
179
|
"button-aria-label-hide"?: SkfInput["buttonAriaLabelHide"];
|
166
|
-
/**
|
180
|
+
/** Custom aria-label for the visibility button **Notice!** Only applicable to type=password. */
|
167
181
|
"button-aria-label-show"?: SkfInput["buttonAriaLabelShow"];
|
168
|
-
/** If
|
182
|
+
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
169
183
|
"custom-invalid"?: SkfInput["customInvalid"];
|
170
|
-
/** If
|
184
|
+
/** If true, outputs helping hints in console */
|
171
185
|
debug?: SkfInput["debug"];
|
172
186
|
/** If true, hides the label visually */
|
173
187
|
"hide-label"?: SkfInput["hideLabel"];
|
174
|
-
/** If
|
188
|
+
/** If defined, displays informational text below the field */
|
175
189
|
hint?: SkfInput["hint"];
|
176
|
-
/**
|
190
|
+
/** Tells what keyboard to use if applicable */
|
177
191
|
inputmode?: SkfInput["inputmode"];
|
178
|
-
/**
|
192
|
+
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
179
193
|
label?: SkfInput["label"];
|
180
|
-
/** If
|
194
|
+
/** If defined, displays a prefix/adornment before the input-element */
|
181
195
|
leading?: SkfInput["leading"];
|
182
|
-
/** If
|
196
|
+
/** If defined, sets the maximum value to accept for this input */
|
183
197
|
max?: SkfInput["max"];
|
184
|
-
/** If
|
198
|
+
/** If defined, sets the maximum character length to accept for this input */
|
185
199
|
maxlength?: SkfInput["maxLength"];
|
186
|
-
/** If
|
200
|
+
/** If defined, sets the minimum value to accept for this input */
|
187
201
|
min?: SkfInput["min"];
|
188
|
-
/** If
|
202
|
+
/** If defined, sets the minimum character length to accept for this input */
|
189
203
|
minlength?: SkfInput["minLength"];
|
190
|
-
/** If
|
204
|
+
/** If defined, adds name to the input-element */
|
191
205
|
name?: SkfInput["name"];
|
192
|
-
/** If
|
206
|
+
/** If defined, adds name to the input-element */
|
193
207
|
pattern?: SkfInput["pattern"];
|
194
|
-
/** If
|
208
|
+
/** If defined, displays placeholder text */
|
195
209
|
placeholder?: SkfInput["placeholder"];
|
196
210
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
197
211
|
readonly?: SkfInput["readonly"];
|
198
|
-
/** If
|
212
|
+
/** If defined, renders an alternative A11y text for the asterisk */
|
199
213
|
"required-label"?: SkfInput["requiredLabel"];
|
200
|
-
/** If
|
214
|
+
/** If defined, displays provided severity state */
|
201
215
|
severity?: SkfInput["severity"];
|
202
|
-
/** If
|
216
|
+
/** If true, displays valid state after interaction */
|
203
217
|
"show-valid"?: SkfInput["showValid"];
|
204
|
-
/**
|
218
|
+
/** Size of the input */
|
205
219
|
size?: SkfInput["size"];
|
206
|
-
/** If
|
220
|
+
/** If defined, displays a suffix/adornment after the input-element */
|
207
221
|
trailing?: SkfInput["trailing"];
|
208
|
-
/**
|
222
|
+
/** Type of input control */
|
209
223
|
type?: SkfInput["type"];
|
210
|
-
/**
|
224
|
+
/** Sets validation start */
|
211
225
|
"validate-on"?: SkfInput["validateOn"];
|
212
226
|
/** The current value of the input field */
|
213
227
|
value?: SkfInput["value"];
|
214
|
-
|
215
|
-
_numberController?: SkfInput["_numberController"];
|
216
|
-
/** */
|
217
|
-
_passwordController?: SkfInput["_passwordController"];
|
228
|
+
|
218
229
|
/** Fires when the value of the input changes */
|
219
230
|
onchange?: (e: CustomEvent<never>) => void;
|
220
231
|
/** Fires when the input is invalid */
|
@@ -222,74 +233,85 @@ type SkfInputProps = {
|
|
222
233
|
};
|
223
234
|
|
224
235
|
type SkfLinkProps = {
|
225
|
-
/**
|
236
|
+
/** Defines the semantic element to render */
|
226
237
|
as?: SkfLink["as"];
|
227
|
-
/**
|
238
|
+
/** Defines the text-color */
|
228
239
|
color?: SkfLink["color"];
|
229
240
|
/** If true, disables the link */
|
230
241
|
disabled?: SkfLink["disabled"];
|
231
|
-
/** If
|
242
|
+
/** If defined, downloads the url */
|
232
243
|
download?: SkfLink["download"];
|
233
|
-
/** If
|
244
|
+
/** If defined, loads url on click */
|
234
245
|
href?: SkfLink["href"];
|
235
|
-
/** If
|
246
|
+
/** If defined, renders an icon before or after the text */
|
236
247
|
icon?: SkfLink["icon"];
|
237
|
-
/**
|
248
|
+
/** Defines the position of the icon in relation to the text */
|
238
249
|
"icon-placement"?: SkfLink["iconPlacement"];
|
239
|
-
/**
|
250
|
+
/** Defines the relationship of the target object to the link object */
|
240
251
|
rel?: SkfLink["rel"];
|
241
|
-
/** If
|
252
|
+
/** If defined, used on conjunction with onClick property, second argument */
|
242
253
|
route?: SkfLink["route"];
|
243
254
|
/** If true, fills the parents horizontal axis */
|
244
255
|
stretch?: SkfLink["stretch"];
|
245
|
-
/** If
|
256
|
+
/** If defined, specifies where to open the linked document */
|
246
257
|
target?: SkfLink["target"];
|
247
|
-
/**
|
258
|
+
/** Defines the type of button */
|
248
259
|
type?: SkfLink["type"];
|
249
260
|
/** If provided, custom function triggered by click where the second return parameter enables custom routing. */
|
250
261
|
onClick?: SkfLink["onClick"];
|
251
262
|
};
|
252
263
|
|
253
264
|
type SkfLoaderProps = {
|
254
|
-
/**
|
265
|
+
/** Defines the aria-label */
|
255
266
|
"aria-label"?: SkfLoader["ariaLabel"];
|
256
267
|
/** If true, inverts the color (to be used on colored backgrounds) */
|
257
268
|
invert?: SkfLoader["invert"];
|
258
|
-
/**
|
269
|
+
/** Defines the size of the loader */
|
259
270
|
size?: SkfLoader["size"];
|
271
|
+
/** */
|
272
|
+
role?: SkfLoader["role"];
|
273
|
+
/** */
|
274
|
+
ariaLive?: SkfLoader["ariaLive"];
|
260
275
|
};
|
261
276
|
|
262
277
|
type SkfLogoProps = {
|
263
|
-
/**
|
278
|
+
/** Defines the title of the logo */
|
264
279
|
title?: SkfLogo["title"];
|
265
|
-
/** If
|
280
|
+
/** If defined, sets color of the logo */
|
266
281
|
color?: SkfLogo["color"];
|
267
282
|
};
|
268
283
|
|
284
|
+
type SkfProgressProps = {
|
285
|
+
/** If true, the progress-bar's fill value is animated */
|
286
|
+
animated?: SkfProgress["animated"];
|
287
|
+
/** Describes how much work the task indicated by the progress element requires */
|
288
|
+
max?: SkfProgress["max"];
|
289
|
+
/** Specifies how much of the task that has been completed */
|
290
|
+
value?: SkfProgress["value"];
|
291
|
+
};
|
292
|
+
|
269
293
|
type SkfRadioProps = {
|
270
294
|
/** If true, sets disabled state */
|
271
295
|
disabled?: SkfRadio["undefined"];
|
272
296
|
/** If true, value is required or must be checked for the form to be submittable */
|
273
297
|
required?: SkfRadio["undefined"];
|
274
|
-
/** If
|
298
|
+
/** If true, outputs helping hints in console */
|
275
299
|
debug?: SkfRadio["debug"];
|
276
300
|
/** If true, outputs helping hints in console */
|
277
301
|
checked?: SkfRadio["checked"];
|
278
302
|
/** If true, forces component to invalid state until removed */
|
279
303
|
"custom-invalid"?: SkfRadio["customInvalid"];
|
280
|
-
/** If
|
281
|
-
"hide-label"?: SkfRadio["hideLabel"];
|
282
|
-
/** The input's label. Alternatively, you can use the `label` attribute. */
|
304
|
+
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
283
305
|
label?: SkfRadio["label"];
|
284
|
-
/** If
|
306
|
+
/** If defined, adds name to the input-element */
|
285
307
|
name?: SkfRadio["name"];
|
286
|
-
/** If
|
308
|
+
/** If defined, renders an alternative A11y text for the asterisk */
|
287
309
|
"required-label"?: SkfRadio["requiredLabel"];
|
288
|
-
/**
|
310
|
+
/** Size of the Radio */
|
289
311
|
size?: SkfRadio["size"];
|
290
|
-
/** If
|
312
|
+
/** If defined, displays provided severity state */
|
291
313
|
severity?: SkfRadio["severity"];
|
292
|
-
/** If
|
314
|
+
/** If true, displays valid state after interaction */
|
293
315
|
"show-valid"?: SkfRadio["showValid"];
|
294
316
|
/** The current value of the input field */
|
295
317
|
value?: SkfRadio["value"];
|
@@ -298,6 +320,87 @@ type SkfRadioProps = {
|
|
298
320
|
onchange?: (e: CustomEvent<never>) => void;
|
299
321
|
};
|
300
322
|
|
323
|
+
type SkfSelectProps = {
|
324
|
+
/** If true, the select is disabled `default: false` */
|
325
|
+
disabled?: SkfSelect["undefined"];
|
326
|
+
/** Sets the first visible text on the component */
|
327
|
+
"button-label"?: SkfSelect["buttonLabel"];
|
328
|
+
/** If defined, forces component to invalid state until removed */
|
329
|
+
"custom-invalid"?: SkfSelect["customInvalid"];
|
330
|
+
/** If true, hides the label visually */
|
331
|
+
"hide-label"?: SkfSelect["hideLabel"];
|
332
|
+
/** If true and mulltiple is true, no tags are displayed under the select */
|
333
|
+
"hide-tags"?: SkfSelect["hideTags"];
|
334
|
+
/** If defined, sets the hint text under the select component in the form */
|
335
|
+
hint?: SkfSelect["hint"];
|
336
|
+
/** If defined, displays provided label */
|
337
|
+
label?: SkfSelect["label"];
|
338
|
+
/** If defined, limits the number of selectable options */
|
339
|
+
max?: SkfSelect["max"];
|
340
|
+
/** If defined, sets the minimum number of required options */
|
341
|
+
min?: SkfSelect["min"];
|
342
|
+
/** If true, allows for multiple options to be selected */
|
343
|
+
multiple?: SkfSelect["multiple"];
|
344
|
+
/** If defined, set name of the component */
|
345
|
+
name?: SkfSelect["name"];
|
346
|
+
/** If defined, renders an alternative A11y text for the asterisk */
|
347
|
+
"required-label"?: SkfSelect["requiredLabel"];
|
348
|
+
/** If defined, displays provided severity state */
|
349
|
+
severity?: SkfSelect["severity"];
|
350
|
+
/** If true, displays valid state after interaction */
|
351
|
+
"show-valid"?: SkfSelect["showValid"];
|
352
|
+
/** Size of the Select */
|
353
|
+
size?: SkfSelect["size"];
|
354
|
+
/** A readonly property that returns the selected value(s) in a array */
|
355
|
+
selectedValues?: SkfSelect["selectedValues"];
|
356
|
+
/** A readonly property that returns the selected slot(s) text content in a array */
|
357
|
+
selectedOptionsText?: SkfSelect["selectedOptionsText"];
|
358
|
+
/** Read only, returns the selected value. (if multiple: in a comma separated string) */
|
359
|
+
value?: SkfSelect["value"];
|
360
|
+
/** */
|
361
|
+
_selectedOptions?: SkfSelect["_selectedOptions"];
|
362
|
+
/** Fired when the selected option(s) changes */
|
363
|
+
onchange?: (e: CustomEvent<never>) => void;
|
364
|
+
/** Fired when the select is invalid */
|
365
|
+
oninvalid?: (e: CustomEvent<never>) => void;
|
366
|
+
/** Fired when the form is reset */
|
367
|
+
onreset?: (e: CustomEvent<never>) => void;
|
368
|
+
/** {detail: {expanded: boolean}} Fired when the select dropdown is toggled */
|
369
|
+
"onskf-select:dropdown"?: (e: CustomEvent<never>) => void;
|
370
|
+
/** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
|
371
|
+
"onskf-select-option:select"?: (e: CustomEvent<never>) => void;
|
372
|
+
};
|
373
|
+
|
374
|
+
type SkfSelectOptionProps = {
|
375
|
+
/** If true, prevents interaction with the option */
|
376
|
+
disabled?: SkfSelectOption["disabled"];
|
377
|
+
/** If defined, set an icon */
|
378
|
+
icon?: SkfSelectOption["icon"];
|
379
|
+
/** If defined, sets provided color on the icon */
|
380
|
+
"icon-color"?: SkfSelectOption["iconColor"];
|
381
|
+
/** If true, sets the option as selected */
|
382
|
+
selected?: SkfSelectOption["selected"];
|
383
|
+
/** If defined, sets a short label */
|
384
|
+
"short-label"?: SkfSelectOption["shortLabel"];
|
385
|
+
/** Returns or sets the tags value. If value is omitted, defaults to the tags text. */
|
386
|
+
value?: SkfSelectOption["value"];
|
387
|
+
/** The option's label text (equivalent to the tags textContent) */
|
388
|
+
text?: SkfSelectOption["text"];
|
389
|
+
/** */
|
390
|
+
role?: SkfSelectOption["role"];
|
391
|
+
/** */
|
392
|
+
_parent?: SkfSelectOption["_parent"];
|
393
|
+
/** */
|
394
|
+
_shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
|
395
|
+
/** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
|
396
|
+
"onskf-select-option:select"?: (e: CustomEvent<never>) => void;
|
397
|
+
};
|
398
|
+
|
399
|
+
type SkfSelectOptionGroupProps = {
|
400
|
+
/** */
|
401
|
+
label?: SkfSelectOptionGroup["label"];
|
402
|
+
};
|
403
|
+
|
301
404
|
type SkfSwitchProps = {
|
302
405
|
/** If true, sets disabled state */
|
303
406
|
disabled?: SkfSwitch["undefined"];
|
@@ -309,7 +412,7 @@ type SkfSwitchProps = {
|
|
309
412
|
checked?: SkfSwitch["checked"];
|
310
413
|
/** If true, hides the label visually */
|
311
414
|
"hide-label"?: SkfSwitch["hideLabel"];
|
312
|
-
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
415
|
+
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
313
416
|
label?: SkfSwitch["label"];
|
314
417
|
/** If defined, adds name to the input-element */
|
315
418
|
name?: SkfSwitch["name"];
|
@@ -321,15 +424,56 @@ type SkfSwitchProps = {
|
|
321
424
|
value?: SkfSwitch["value"];
|
322
425
|
};
|
323
426
|
|
427
|
+
type SkfTabProps = {
|
428
|
+
/** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
|
429
|
+
panel?: SkfTab["panel"];
|
430
|
+
/** */
|
431
|
+
selected?: SkfTab["selected"];
|
432
|
+
/** */
|
433
|
+
variant?: SkfTab["variant"];
|
434
|
+
/** */
|
435
|
+
role?: SkfTab["role"];
|
436
|
+
/** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
|
437
|
+
"onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
|
438
|
+
/** Fired when the component is clicked */
|
439
|
+
onclick?: (e: CustomEvent<never>) => void;
|
440
|
+
};
|
441
|
+
|
442
|
+
type SkfTabGroupProps = {
|
443
|
+
/** Sets the default selected tab */
|
444
|
+
"default-selected"?: SkfTabGroup["defaultSelected"];
|
445
|
+
/** If true, removes border */
|
446
|
+
"no-border"?: SkfTabGroup["noBorder"];
|
447
|
+
/** If true, removes padding */
|
448
|
+
"no-padding"?: SkfTabGroup["noPadding"];
|
449
|
+
/** If true, component fills the parent element height */
|
450
|
+
stretch?: SkfTabGroup["stretch"];
|
451
|
+
/** Sets the appearance of the tabs */
|
452
|
+
variant?: SkfTabGroup["variant"];
|
453
|
+
};
|
454
|
+
|
455
|
+
type SkfTabPanelProps = {
|
456
|
+
/** The tab panel's name. */
|
457
|
+
name?: SkfTabPanel["name"];
|
458
|
+
/** */
|
459
|
+
active?: SkfTabPanel["active"];
|
460
|
+
/** */
|
461
|
+
role?: SkfTabPanel["role"];
|
462
|
+
};
|
463
|
+
|
324
464
|
type SkfTagProps = {
|
325
|
-
/** Specifies Tag size
|
465
|
+
/** Specifies Tag size */
|
326
466
|
size?: SkfTag["size"];
|
327
|
-
/** If defined, displays leading/provided icon
|
467
|
+
/** If defined, displays leading/provided icon */
|
328
468
|
icon?: SkfTag["icon"];
|
329
|
-
/** If defined, gives the supplied appearance
|
469
|
+
/** If defined, gives the supplied appearance */
|
330
470
|
color?: SkfTag["color"];
|
331
471
|
/** If true, adds trailing button to remove tag */
|
332
472
|
removable?: SkfTag["removable"];
|
473
|
+
/** If defined, accepts a function that runs on click */
|
474
|
+
onClick?: SkfTag["onClick"];
|
475
|
+
/** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
|
476
|
+
onRemove?: SkfTag["onRemove"];
|
333
477
|
};
|
334
478
|
|
335
479
|
type SkfTextAreaProps = {
|
@@ -337,39 +481,39 @@ type SkfTextAreaProps = {
|
|
337
481
|
disabled?: SkfTextArea["undefined"];
|
338
482
|
/** If true, value is required or must be checked for the form to be submittable */
|
339
483
|
required?: SkfTextArea["undefined"];
|
340
|
-
/** If
|
484
|
+
/** If defined, sets the cols of the textarea */
|
341
485
|
cols?: SkfTextArea["cols"];
|
342
|
-
/** If
|
486
|
+
/** If defined, forces component to invalid state until removed. Its value is used as hint text. */
|
343
487
|
"custom-invalid"?: SkfTextArea["customInvalid"];
|
344
|
-
/** If
|
488
|
+
/** If true, outputs helping hints in console */
|
345
489
|
debug?: SkfTextArea["debug"];
|
346
|
-
/**
|
490
|
+
/** If true, hides the label visually */
|
347
491
|
"hide-label"?: SkfTextArea["hideLabel"];
|
348
|
-
/** If
|
492
|
+
/** If defined, displays informational text below the field */
|
349
493
|
hint?: SkfTextArea["hint"];
|
350
|
-
/**
|
494
|
+
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
351
495
|
label?: SkfTextArea["label"];
|
352
|
-
/** If
|
496
|
+
/** If defined, adds name to the input-element */
|
353
497
|
name?: SkfTextArea["name"];
|
354
|
-
/** If
|
498
|
+
/** If defined, sets the maximum character length to accept for this input */
|
355
499
|
maxlength?: SkfTextArea["maxLength"];
|
356
|
-
/** If
|
500
|
+
/** If defined, sets the minimum character length to accept for this input */
|
357
501
|
minlength?: SkfTextArea["minLength"];
|
358
|
-
/** If
|
502
|
+
/** If defined, displays placeholder text */
|
359
503
|
placeholder?: SkfTextArea["placeholder"];
|
360
504
|
/** If true, makes the element not mutable, meaning the user can not edit the control */
|
361
505
|
readonly?: SkfTextArea["readonly"];
|
362
|
-
/** If
|
506
|
+
/** If defined, renders an alternative A11y text for the asterisk */
|
363
507
|
"required-label"?: SkfTextArea["requiredLabel"];
|
364
|
-
/** If
|
508
|
+
/** If defined, sets the rows of the textarea */
|
365
509
|
rows?: SkfTextArea["rows"];
|
366
|
-
/** If
|
510
|
+
/** If defined, displays provided severity state */
|
367
511
|
severity?: SkfTextArea["severity"];
|
368
512
|
/** If true, displays valid state after interaction */
|
369
513
|
"show-valid"?: SkfTextArea["showValid"];
|
370
|
-
/**
|
514
|
+
/** Size of the Textarea */
|
371
515
|
size?: SkfTextArea["size"];
|
372
|
-
/**
|
516
|
+
/** Sets validation start */
|
373
517
|
"validate-on"?: SkfTextArea["validateOn"];
|
374
518
|
/** The current value of the text area */
|
375
519
|
value?: SkfTextArea["value"];
|
@@ -380,11 +524,29 @@ type SkfTextAreaProps = {
|
|
380
524
|
oninvalid?: (e: CustomEvent<never>) => void;
|
381
525
|
};
|
382
526
|
|
527
|
+
type SkfToastProps = {
|
528
|
+
/** If provided, adds a close button to the toast and will not disapear until user actively dismisses it. */
|
529
|
+
closeable?: SkfToast["closeable"];
|
530
|
+
/** */
|
531
|
+
debug?: SkfToast["debug"];
|
532
|
+
/** Severity of the toast. */
|
533
|
+
severity?: SkfToast["severity"];
|
534
|
+
/** Time in seconds before the toast disappears. */
|
535
|
+
timer?: SkfToast["timer"];
|
536
|
+
/** offsets where toasts emerge vertically */
|
537
|
+
topOffset?: SkfToast["topOffset"];
|
538
|
+
};
|
539
|
+
|
540
|
+
type SkfToastWrapperProps = {
|
541
|
+
/** */
|
542
|
+
debug?: SkfToastWrapper["debug"];
|
543
|
+
};
|
544
|
+
|
383
545
|
export type CustomElements = {
|
384
546
|
/**
|
385
547
|
* The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
|
386
548
|
*
|
387
|
-
* See [
|
549
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
|
388
550
|
* ---
|
389
551
|
*
|
390
552
|
*
|
@@ -403,7 +565,7 @@ export type CustomElements = {
|
|
403
565
|
*
|
404
566
|
* ### **Slots:**
|
405
567
|
* - _default_ - Alert message. **Notice!** See design principles for approved content
|
406
|
-
* - **link** -
|
568
|
+
* - **link** - Slot for the link
|
407
569
|
*/
|
408
570
|
"skf-alert": DefineComponent<SkfAlertProps>;
|
409
571
|
|
@@ -412,6 +574,12 @@ export type CustomElements = {
|
|
412
574
|
* ---
|
413
575
|
*
|
414
576
|
*
|
577
|
+
* ### **Events:**
|
578
|
+
* - **click** - Fires when the button is clicked
|
579
|
+
*
|
580
|
+
* ### **Methods:**
|
581
|
+
* - **click()** - Simulates a click on the button.
|
582
|
+
*
|
415
583
|
* ### **Slots:**
|
416
584
|
* - _default_ - The Primary content
|
417
585
|
*/
|
@@ -436,14 +604,14 @@ export type CustomElements = {
|
|
436
604
|
* - **change** - {object} - When the value of the input changes
|
437
605
|
*
|
438
606
|
* ### **Slots:**
|
439
|
-
* -
|
607
|
+
* - _default_ - The Radios label. Alternatively, you can use the `label` attribute.
|
440
608
|
*/
|
441
609
|
"skf-checkbox": DefineComponent<SkfCheckboxProps>;
|
442
610
|
|
443
611
|
/**
|
444
612
|
* The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.
|
445
613
|
*
|
446
|
-
* See [
|
614
|
+
* See [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.
|
447
615
|
* ---
|
448
616
|
*
|
449
617
|
*
|
@@ -460,7 +628,7 @@ export type CustomElements = {
|
|
460
628
|
"skf-collapse": DefineComponent<SkfCollapseProps>;
|
461
629
|
|
462
630
|
/**
|
463
|
-
* The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
631
|
+
* The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
464
632
|
* ---
|
465
633
|
*
|
466
634
|
*
|
@@ -475,6 +643,9 @@ export type CustomElements = {
|
|
475
643
|
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
476
644
|
* ---
|
477
645
|
*
|
646
|
+
*
|
647
|
+
* ### **Slots:**
|
648
|
+
* - _default_ - The headings content
|
478
649
|
*/
|
479
650
|
"skf-heading": DefineComponent<SkfHeadingProps>;
|
480
651
|
|
@@ -495,7 +666,7 @@ export type CustomElements = {
|
|
495
666
|
* - **invalid** - Fires when the input is invalid
|
496
667
|
*
|
497
668
|
* ### **Slots:**
|
498
|
-
* -
|
669
|
+
* - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.
|
499
670
|
*/
|
500
671
|
"skf-input": DefineComponent<SkfInputProps>;
|
501
672
|
|
@@ -510,7 +681,7 @@ export type CustomElements = {
|
|
510
681
|
"skf-link": DefineComponent<SkfLinkProps>;
|
511
682
|
|
512
683
|
/**
|
513
|
-
* The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
|
684
|
+
* The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
|
514
685
|
* ---
|
515
686
|
*
|
516
687
|
*/
|
@@ -526,6 +697,13 @@ export type CustomElements = {
|
|
526
697
|
*/
|
527
698
|
"skf-logo": DefineComponent<SkfLogoProps>;
|
528
699
|
|
700
|
+
/**
|
701
|
+
* The `<skf-progress>` element displays an indicator showing the completion progress of a task, typically displayed as a progress bar
|
702
|
+
* ---
|
703
|
+
*
|
704
|
+
*/
|
705
|
+
"skf-progress": DefineComponent<SkfProgressProps>;
|
706
|
+
|
529
707
|
/**
|
530
708
|
* The `<skf-radio>` component is used to create a radio input
|
531
709
|
* ---
|
@@ -535,20 +713,96 @@ export type CustomElements = {
|
|
535
713
|
* - **change** - {object} - When the value of the input changes
|
536
714
|
*
|
537
715
|
* ### **Slots:**
|
538
|
-
* -
|
716
|
+
* - _default_ - The radios label. Alternatively, you can use the `label` attribute.
|
539
717
|
*/
|
540
718
|
"skf-radio": DefineComponent<SkfRadioProps>;
|
541
719
|
|
542
720
|
/**
|
543
|
-
* The `<skf-
|
721
|
+
* The `<skf-select>` is a component that displays a list of actions or options. A click in the options list toggle the selected state of the option. Use it together with the ´skf-select-option` tag.
|
722
|
+
* ---
|
723
|
+
*
|
724
|
+
*
|
725
|
+
* ### **Events:**
|
726
|
+
* - **change** - Fired when the selected option(s) changes
|
727
|
+
* - **invalid** - Fired when the select is invalid
|
728
|
+
* - **reset** - Fired when the form is reset
|
729
|
+
* - **skf-select:dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
|
730
|
+
* - **skf-select-option:select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
|
731
|
+
*
|
732
|
+
* ### **Slots:**
|
733
|
+
* - _default_ - The select's placeholder content
|
734
|
+
*/
|
735
|
+
"skf-select": DefineComponent<SkfSelectProps>;
|
736
|
+
|
737
|
+
/**
|
738
|
+
* The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
|
739
|
+
* ---
|
740
|
+
*
|
741
|
+
*
|
742
|
+
* ### **Events:**
|
743
|
+
* - **skf-select-option:select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.
|
744
|
+
*
|
745
|
+
* ### **Slots:**
|
746
|
+
* - _default_ - The option's text content
|
747
|
+
* - **icon** - The option's slot for icon or custom meta information (svg).
|
748
|
+
*/
|
749
|
+
"skf-select-option": DefineComponent<SkfSelectOptionProps>;
|
750
|
+
|
751
|
+
/**
|
752
|
+
* The `<skf-select-option-group>` is a component that groups select-options
|
544
753
|
* ---
|
545
754
|
*
|
546
755
|
*
|
547
756
|
* ### **Slots:**
|
548
757
|
* - _default_ - The component's placeholder content
|
549
758
|
*/
|
759
|
+
"skf-select-option-group": DefineComponent<SkfSelectOptionGroupProps>;
|
760
|
+
|
761
|
+
/**
|
762
|
+
* The `<skf-switch>` is a component that displays a list of actions or options
|
763
|
+
* ---
|
764
|
+
*
|
765
|
+
*
|
766
|
+
* ### **Slots:**
|
767
|
+
* - _default_ - The Switchs label. Alternatively, you can use the `label` attribute.
|
768
|
+
*/
|
550
769
|
"skf-switch": DefineComponent<SkfSwitchProps>;
|
551
770
|
|
771
|
+
/**
|
772
|
+
* The `<skf-tab>` is a component that displays a list of actions or options
|
773
|
+
* ---
|
774
|
+
*
|
775
|
+
*
|
776
|
+
* ### **Events:**
|
777
|
+
* - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected
|
778
|
+
* - **click** - Fired when the component is clicked
|
779
|
+
*
|
780
|
+
* ### **Slots:**
|
781
|
+
* - _default_ - The tab's label
|
782
|
+
*/
|
783
|
+
"skf-tab": DefineComponent<SkfTabProps>;
|
784
|
+
|
785
|
+
/**
|
786
|
+
* The `<skf-tab-group>` is a component that displays a list of actions or options.
|
787
|
+
* ---
|
788
|
+
*
|
789
|
+
*
|
790
|
+
* ### **Slots:**
|
791
|
+
* - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
|
792
|
+
* - **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements
|
793
|
+
*/
|
794
|
+
"skf-tab-group": DefineComponent<SkfTabGroupProps>;
|
795
|
+
|
796
|
+
/**
|
797
|
+
* The `<skf-tab-panel>` is a component that displays a list of actions or options.
|
798
|
+
* ---
|
799
|
+
*
|
800
|
+
*
|
801
|
+
* ### **Slots:**
|
802
|
+
* - _default_ - The tab panel's content
|
803
|
+
*/
|
804
|
+
"skf-tab-panel": DefineComponent<SkfTabPanelProps>;
|
805
|
+
|
552
806
|
/**
|
553
807
|
* The `<skf-tag>` is a component that displays a list of actions or options
|
554
808
|
* ---
|
@@ -569,9 +823,29 @@ export type CustomElements = {
|
|
569
823
|
* - **invalid** - Fires when the input is invalid
|
570
824
|
*
|
571
825
|
* ### **Slots:**
|
572
|
-
* -
|
826
|
+
* - _default_ - The textareas label. Alternatively, you can use the `label` attribute.
|
573
827
|
*/
|
574
828
|
"skf-textarea": DefineComponent<SkfTextAreaProps>;
|
829
|
+
|
830
|
+
/**
|
831
|
+
* A simple toast component that displays a message to the user. Use by appending a <skf-toast> tag to the DOM. Position in DOM is irrelevant.
|
832
|
+
* ---
|
833
|
+
*
|
834
|
+
*
|
835
|
+
* ### **Slots:**
|
836
|
+
* - _default_ - The component's placeholder content
|
837
|
+
*/
|
838
|
+
"skf-toast": DefineComponent<SkfToastProps>;
|
839
|
+
|
840
|
+
/**
|
841
|
+
* The `<skf-toast-wrapper>` is a component without UI that positions where the toast shows up on the screen. The toast-wrapper is used internally by the toast component.
|
842
|
+
* ---
|
843
|
+
*
|
844
|
+
*
|
845
|
+
* ### **Slots:**
|
846
|
+
* - _default_ - The alert components that the toast creates will render here.
|
847
|
+
*/
|
848
|
+
"skf-toast-wrapper": DefineComponent<SkfToastWrapperProps>;
|
575
849
|
};
|
576
850
|
|
577
851
|
declare module "vue" {
|