@skf-design-system/ui-components 1.0.0-alpha.27 → 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/alert/alert.component.js +20 -18
- 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 +79 -55
- package/dist/components/button/button.styles.js +1 -0
- package/dist/components/checkbox/checkbox.component.d.ts +3 -8
- package/dist/components/checkbox/checkbox.component.js +95 -90
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/input/input.component.d.ts +10 -0
- package/dist/components/input/input.component.js +89 -82
- 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 +4 -6
- package/dist/components/radio/radio.component.js +93 -77
- package/dist/components/select/select.component.d.ts +5 -2
- package/dist/components/select/select.component.js +103 -88
- package/dist/components/select/select.controllers.js +5 -2
- package/dist/components/switch/switch.component.js +4 -1
- 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/textarea/textarea.component.js +5 -5
- 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 +1167 -311
- package/dist/index.d.ts +5 -0
- package/dist/index.js +57 -42
- package/dist/internal/components/formBase.d.ts +1 -0
- package/dist/internal/components/formBase.js +11 -11
- package/dist/internal/helpers/watch.d.ts +27 -0
- package/dist/internal/helpers/watch.js +28 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.js +6 -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-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/types/jsx/custom-element-jsx.d.ts +115 -1096
- package/dist/types/vue/index.d.ts +147 -8
- package/dist/vscode.html-custom-data.json +116 -16
- package/dist/web-types.json +304 -35
- package/package.json +27 -27
@@ -13,13 +13,19 @@ 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";
|
17
18
|
import type { SkfSelect } from "../../components/select/select.component.js";
|
18
19
|
import type { SkfSelectOption } from "../../components/select-option/select-option.component.js";
|
19
20
|
import type { SkfSelectOptionGroup } from "../../components/select-option-group/select-option-group.component.js";
|
20
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";
|
21
25
|
import type { SkfTag } from "../../components/tag/tag.component.js";
|
22
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";
|
23
29
|
|
24
30
|
type SkfAccordionProps = {
|
25
31
|
/** If true, will animate the expand/collapse state */
|
@@ -61,12 +67,17 @@ type SkfButtonProps = {
|
|
61
67
|
"icon-position"?: SkfButton["iconPosition"];
|
62
68
|
/** If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`. */
|
63
69
|
loading?: SkfButton["loading"];
|
70
|
+
/** */
|
71
|
+
"no-validate"?: SkfButton["noValidate"];
|
64
72
|
/** If provided, displays an alternative size */
|
65
73
|
size?: SkfButton["size"];
|
66
74
|
/** If provided, changes the button type */
|
67
75
|
type?: SkfButton["type"];
|
68
76
|
/** If provided, alters the appearance */
|
69
77
|
variant?: SkfButton["variant"];
|
78
|
+
|
79
|
+
/** Fires when the button is clicked */
|
80
|
+
onclick?: (e: CustomEvent<never>) => void;
|
70
81
|
};
|
71
82
|
|
72
83
|
type SkfCardProps = {
|
@@ -89,12 +100,8 @@ type SkfCheckboxProps = {
|
|
89
100
|
checked?: SkfCheckbox["checked"];
|
90
101
|
/** If true, forces component to invalid state until removed */
|
91
102
|
"custom-invalid"?: SkfCheckbox["customInvalid"];
|
92
|
-
/** If true, hides the label visually */
|
93
|
-
"hide-label"?: SkfCheckbox["hideLabel"];
|
94
103
|
/** If true and the checkbox is unchecked, the checkbox will appear indeterminate */
|
95
104
|
indeterminate?: SkfCheckbox["indeterminate"];
|
96
|
-
/** Read only indicator of the local state. Use custom-invalid to set it to invalid state. */
|
97
|
-
invalid?: SkfCheckbox["invalid"];
|
98
105
|
/** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
|
99
106
|
label?: SkfCheckbox["label"];
|
100
107
|
/** If defined, adds name to the input-element */
|
@@ -164,6 +171,8 @@ type SkfInputProps = {
|
|
164
171
|
disabled?: SkfInput["undefined"];
|
165
172
|
/** If true, value is required or must be checked for the form to be submittable */
|
166
173
|
required?: SkfInput["undefined"];
|
174
|
+
/** -m } */
|
175
|
+
autocomplete?: SkfInput["autocomplete"];
|
167
176
|
/** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
|
168
177
|
"button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
|
169
178
|
/** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
|
@@ -272,6 +281,15 @@ type SkfLogoProps = {
|
|
272
281
|
color?: SkfLogo["color"];
|
273
282
|
};
|
274
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
|
+
|
275
293
|
type SkfRadioProps = {
|
276
294
|
/** If true, sets disabled state */
|
277
295
|
disabled?: SkfRadio["undefined"];
|
@@ -283,8 +301,6 @@ type SkfRadioProps = {
|
|
283
301
|
checked?: SkfRadio["checked"];
|
284
302
|
/** If true, forces component to invalid state until removed */
|
285
303
|
"custom-invalid"?: SkfRadio["customInvalid"];
|
286
|
-
/** If true, hides the label visually */
|
287
|
-
"hide-label"?: SkfRadio["hideLabel"];
|
288
304
|
/** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
|
289
305
|
label?: SkfRadio["label"];
|
290
306
|
/** If defined, adds name to the input-element */
|
@@ -336,9 +352,9 @@ type SkfSelectProps = {
|
|
336
352
|
/** Size of the Select */
|
337
353
|
size?: SkfSelect["size"];
|
338
354
|
/** A readonly property that returns the selected value(s) in a array */
|
339
|
-
|
355
|
+
selectedValues?: SkfSelect["selectedValues"];
|
340
356
|
/** A readonly property that returns the selected slot(s) text content in a array */
|
341
|
-
|
357
|
+
selectedOptionsText?: SkfSelect["selectedOptionsText"];
|
342
358
|
/** Read only, returns the selected value. (if multiple: in a comma separated string) */
|
343
359
|
value?: SkfSelect["value"];
|
344
360
|
/** */
|
@@ -408,6 +424,43 @@ type SkfSwitchProps = {
|
|
408
424
|
value?: SkfSwitch["value"];
|
409
425
|
};
|
410
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
|
+
|
411
464
|
type SkfTagProps = {
|
412
465
|
/** Specifies Tag size */
|
413
466
|
size?: SkfTag["size"];
|
@@ -471,6 +524,24 @@ type SkfTextAreaProps = {
|
|
471
524
|
oninvalid?: (e: CustomEvent<never>) => void;
|
472
525
|
};
|
473
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
|
+
|
474
545
|
export type CustomElements = {
|
475
546
|
/**
|
476
547
|
* The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.
|
@@ -503,6 +574,12 @@ export type CustomElements = {
|
|
503
574
|
* ---
|
504
575
|
*
|
505
576
|
*
|
577
|
+
* ### **Events:**
|
578
|
+
* - **click** - Fires when the button is clicked
|
579
|
+
*
|
580
|
+
* ### **Methods:**
|
581
|
+
* - **click()** - Simulates a click on the button.
|
582
|
+
*
|
506
583
|
* ### **Slots:**
|
507
584
|
* - _default_ - The Primary content
|
508
585
|
*/
|
@@ -620,6 +697,13 @@ export type CustomElements = {
|
|
620
697
|
*/
|
621
698
|
"skf-logo": DefineComponent<SkfLogoProps>;
|
622
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
|
+
|
623
707
|
/**
|
624
708
|
* The `<skf-radio>` component is used to create a radio input
|
625
709
|
* ---
|
@@ -684,6 +768,41 @@ export type CustomElements = {
|
|
684
768
|
*/
|
685
769
|
"skf-switch": DefineComponent<SkfSwitchProps>;
|
686
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
|
+
|
687
806
|
/**
|
688
807
|
* The `<skf-tag>` is a component that displays a list of actions or options
|
689
808
|
* ---
|
@@ -707,6 +826,26 @@ export type CustomElements = {
|
|
707
826
|
* - _default_ - The textareas label. Alternatively, you can use the `label` attribute.
|
708
827
|
*/
|
709
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>;
|
710
849
|
};
|
711
850
|
|
712
851
|
declare module "vue" {
|
@@ -79,7 +79,7 @@
|
|
79
79
|
},
|
80
80
|
{
|
81
81
|
"name": "skf-button",
|
82
|
-
"description": "Component to be used in forms or for interactivity\n---\n\n\n### **Slots:**\n - _default_ - The Primary content",
|
82
|
+
"description": "Component to be used in forms or for interactivity\n---\n\n\n### **Events:**\n - **click** - Fires when the button is clicked\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n\n### **Slots:**\n - _default_ - The Primary content",
|
83
83
|
"attributes": [
|
84
84
|
{
|
85
85
|
"name": "destructive",
|
@@ -258,6 +258,7 @@
|
|
258
258
|
"description": "If true, hides text & icon and shows loading indicator. **Notice!** Only applicable if `variant` is `primary`.",
|
259
259
|
"values": []
|
260
260
|
},
|
261
|
+
{ "name": "no-validate", "values": [] },
|
261
262
|
{
|
262
263
|
"name": "size",
|
263
264
|
"description": "If provided, displays an alternative size",
|
@@ -331,21 +332,11 @@
|
|
331
332
|
"description": "If true, forces component to invalid state until removed",
|
332
333
|
"values": []
|
333
334
|
},
|
334
|
-
{
|
335
|
-
"name": "hide-label",
|
336
|
-
"description": "If true, hides the label visually",
|
337
|
-
"values": []
|
338
|
-
},
|
339
335
|
{
|
340
336
|
"name": "indeterminate",
|
341
337
|
"description": "If true and the checkbox is unchecked, the checkbox will appear indeterminate",
|
342
338
|
"values": []
|
343
339
|
},
|
344
|
-
{
|
345
|
-
"name": "invalid",
|
346
|
-
"description": "Read only indicator of the local state. Use custom-invalid to set it to invalid state.",
|
347
|
-
"values": []
|
348
|
-
},
|
349
340
|
{
|
350
341
|
"name": "label",
|
351
342
|
"description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
|
@@ -694,6 +685,7 @@
|
|
694
685
|
"description": "If true, value is required or must be checked for the form to be submittable",
|
695
686
|
"values": []
|
696
687
|
},
|
688
|
+
{ "name": "autocomplete", "description": "-m }", "values": [] },
|
697
689
|
{
|
698
690
|
"name": "button-aria-label-clear",
|
699
691
|
"description": "Custom aria-label for the clear button. **Notice!** Only applicable to type=search.",
|
@@ -1137,6 +1129,28 @@
|
|
1137
1129
|
],
|
1138
1130
|
"references": []
|
1139
1131
|
},
|
1132
|
+
{
|
1133
|
+
"name": "skf-progress",
|
1134
|
+
"description": "The `<skf-progress>` element displays an indicator showing the completion progress of a task, typically displayed as a progress bar\n---\n",
|
1135
|
+
"attributes": [
|
1136
|
+
{
|
1137
|
+
"name": "animated",
|
1138
|
+
"description": "If true, the progress-bar's fill value is animated",
|
1139
|
+
"values": []
|
1140
|
+
},
|
1141
|
+
{
|
1142
|
+
"name": "max",
|
1143
|
+
"description": "Describes how much work the task indicated by the progress element requires",
|
1144
|
+
"values": []
|
1145
|
+
},
|
1146
|
+
{
|
1147
|
+
"name": "value",
|
1148
|
+
"description": "Specifies how much of the task that has been completed",
|
1149
|
+
"values": []
|
1150
|
+
}
|
1151
|
+
],
|
1152
|
+
"references": []
|
1153
|
+
},
|
1140
1154
|
{
|
1141
1155
|
"name": "skf-radio",
|
1142
1156
|
"description": "The `<skf-radio>` component is used to create a radio input\n---\n\n\n### **Events:**\n - **change** - {object} - When the value of the input changes\n\n### **Slots:**\n - _default_ - The radios label. Alternatively, you can use the `label` attribute.",
|
@@ -1166,11 +1180,6 @@
|
|
1166
1180
|
"description": "If true, forces component to invalid state until removed",
|
1167
1181
|
"values": []
|
1168
1182
|
},
|
1169
|
-
{
|
1170
|
-
"name": "hide-label",
|
1171
|
-
"description": "If true, hides the label visually",
|
1172
|
-
"values": []
|
1173
|
-
},
|
1174
1183
|
{
|
1175
1184
|
"name": "label",
|
1176
1185
|
"description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
|
@@ -1396,6 +1405,58 @@
|
|
1396
1405
|
],
|
1397
1406
|
"references": []
|
1398
1407
|
},
|
1408
|
+
{
|
1409
|
+
"name": "skf-tab",
|
1410
|
+
"description": "The `<skf-tab>` is a component that displays a list of actions or options\n---\n\n\n### **Events:**\n - **skf-tab-select** - {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected\n- **click** - Fired when the component is clicked\n\n### **Slots:**\n - _default_ - The tab's label",
|
1411
|
+
"attributes": [
|
1412
|
+
{
|
1413
|
+
"name": "panel",
|
1414
|
+
"description": "The name of the tab-panel this tab is associated with. The panel must be located in the same tab group.",
|
1415
|
+
"values": []
|
1416
|
+
}
|
1417
|
+
],
|
1418
|
+
"references": []
|
1419
|
+
},
|
1420
|
+
{
|
1421
|
+
"name": "skf-tab-group",
|
1422
|
+
"description": "The `<skf-tab-group>` is a component that displays a list of actions or options.\n---\n\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements\n- **tabs** - Used for grouping tabs in the tab group. Must be <skf-tab> elements",
|
1423
|
+
"attributes": [
|
1424
|
+
{
|
1425
|
+
"name": "default-selected",
|
1426
|
+
"description": "Sets the default selected tab",
|
1427
|
+
"values": []
|
1428
|
+
},
|
1429
|
+
{
|
1430
|
+
"name": "no-border",
|
1431
|
+
"description": "If true, removes border",
|
1432
|
+
"values": []
|
1433
|
+
},
|
1434
|
+
{
|
1435
|
+
"name": "no-padding",
|
1436
|
+
"description": "If true, removes padding",
|
1437
|
+
"values": []
|
1438
|
+
},
|
1439
|
+
{
|
1440
|
+
"name": "stretch",
|
1441
|
+
"description": "If true, component fills the parent element height",
|
1442
|
+
"values": []
|
1443
|
+
},
|
1444
|
+
{
|
1445
|
+
"name": "variant",
|
1446
|
+
"description": "Sets the appearance of the tabs",
|
1447
|
+
"values": [{ "name": "compressed" }, { "name": "expanded" }]
|
1448
|
+
}
|
1449
|
+
],
|
1450
|
+
"references": []
|
1451
|
+
},
|
1452
|
+
{
|
1453
|
+
"name": "skf-tab-panel",
|
1454
|
+
"description": "The `<skf-tab-panel>` is a component that displays a list of actions or options.\n---\n\n\n### **Slots:**\n - _default_ - The tab panel's content",
|
1455
|
+
"attributes": [
|
1456
|
+
{ "name": "name", "description": "The tab panel's name.", "values": [] }
|
1457
|
+
],
|
1458
|
+
"references": []
|
1459
|
+
},
|
1399
1460
|
{
|
1400
1461
|
"name": "skf-tag",
|
1401
1462
|
"description": "The `<skf-tag>` is a component that displays a list of actions or options\n---\n\n\n### **Slots:**\n - _default_ - The component's placeholder content",
|
@@ -1696,6 +1757,45 @@
|
|
1696
1757
|
}
|
1697
1758
|
],
|
1698
1759
|
"references": []
|
1760
|
+
},
|
1761
|
+
{
|
1762
|
+
"name": "skf-toast",
|
1763
|
+
"description": "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.\n---\n\n\n### **Slots:**\n - _default_ - The component's placeholder content",
|
1764
|
+
"attributes": [
|
1765
|
+
{
|
1766
|
+
"name": "closeable",
|
1767
|
+
"description": "If provided, adds a close button to the toast and will not disapear until user actively dismisses it.",
|
1768
|
+
"values": []
|
1769
|
+
},
|
1770
|
+
{ "name": "debug", "values": [] },
|
1771
|
+
{
|
1772
|
+
"name": "severity",
|
1773
|
+
"description": "Severity of the toast.",
|
1774
|
+
"values": [
|
1775
|
+
{ "name": "info" },
|
1776
|
+
{ "name": "success" },
|
1777
|
+
{ "name": "warning" },
|
1778
|
+
{ "name": "error" }
|
1779
|
+
]
|
1780
|
+
},
|
1781
|
+
{
|
1782
|
+
"name": "timer",
|
1783
|
+
"description": "Time in seconds before the toast disappears.",
|
1784
|
+
"values": []
|
1785
|
+
},
|
1786
|
+
{
|
1787
|
+
"name": "topOffset",
|
1788
|
+
"description": "offsets where toasts emerge vertically",
|
1789
|
+
"values": []
|
1790
|
+
}
|
1791
|
+
],
|
1792
|
+
"references": []
|
1793
|
+
},
|
1794
|
+
{
|
1795
|
+
"name": "skf-toast-wrapper",
|
1796
|
+
"description": "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.\n---\n\n\n### **Slots:**\n - _default_ - The alert components that the toast creates will render here.",
|
1797
|
+
"attributes": [{ "name": "debug", "values": [] }],
|
1798
|
+
"references": []
|
1699
1799
|
}
|
1700
1800
|
]
|
1701
1801
|
}
|