@skf-design-system/ui-components 1.0.0-beta.3 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.component.d.ts +5 -9
- package/dist/components/accordion/accordion.component.js +19 -22
- 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 +4 -7
- package/dist/components/alert/alert.component.js +1 -1
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/button/button.component.js +1 -1
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/card/card.component.d.ts +3 -3
- package/dist/components/card/card.component.js +19 -16
- package/dist/components/card/card.styles.js +3 -11
- package/dist/components/checkbox/checkbox.component.d.ts +6 -9
- package/dist/components/checkbox/checkbox.component.js +7 -7
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/collapse/collapse.component.d.ts +6 -9
- package/dist/components/collapse/collapse.component.js +36 -39
- package/dist/components/collapse/collapse.styles.js +3 -3
- package/dist/components/divider/divider.component.d.ts +10 -13
- package/dist/components/divider/divider.component.js +29 -34
- package/dist/components/divider/divider.styles.js +5 -1
- package/dist/components/heading/heading.component.d.ts +2 -12
- 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 +8 -14
- package/dist/components/icon/icon.component.js +6 -6
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/input/input.component.d.ts +29 -34
- package/dist/components/input/input.component.js +16 -18
- package/dist/components/link/link.component.d.ts +12 -15
- 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 +61 -35
- package/dist/components/loader/loader.styles.js +10 -42
- package/dist/components/logo/logo.component.d.ts +3 -5
- package/dist/components/logo/logo.component.js +8 -8
- package/dist/components/logo/logo.styles.js +2 -2
- package/dist/components/radio/radio.component.d.ts +13 -15
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.styles.js +3 -3
- package/dist/components/select/select.component.d.ts +8 -7
- package/dist/components/select/select.component.js +20 -20
- package/dist/components/select/select.styles.js +3 -3
- package/dist/components/switch/switch.component.d.ts +3 -2
- package/dist/components/switch/switch.component.js +1 -1
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tag/tag.component.d.ts +7 -12
- package/dist/components/tag/tag.component.js +24 -24
- package/dist/components/tag/tag.styles.js +1 -6
- package/dist/components/textarea/textarea.component.d.ts +23 -26
- package/dist/components/textarea/textarea.component.js +12 -15
- package/dist/custom-elements.json +221 -221
- package/dist/internal/storybook/shadowRootTraverser.d.ts +8 -16
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +3 -3
- package/dist/styles/form-field.styles.js +1 -1
- package/dist/types/jsx/custom-element-jsx.d.ts +47 -47
- package/dist/types/vue/index.d.ts +49 -49
- package/dist/vscode.html-custom-data.json +61 -61
- package/dist/web-types.json +118 -118
- package/package.json +1 -1
- package/dist/components/checkbox/checkbox.test.d.ts +0 -1
- package/dist/components/collapse/collapse.test.d.ts +0 -1
- package/dist/components/switch/switch.test.d.ts +0 -1
@@ -75,20 +75,6 @@ export type SkfAccordionProps = {
|
|
75
75
|
truncate?: boolean | undefined;
|
76
76
|
};
|
77
77
|
|
78
|
-
export type SkfAlertProps = {
|
79
|
-
/** If true, alert is being used as a toast (alertdialog) with an close button */
|
80
|
-
closeable?: boolean | undefined;
|
81
|
-
/** Close button aria-label */
|
82
|
-
"button-label"?: string;
|
83
|
-
/** If defined, displays leading icon */
|
84
|
-
icon?: SkfIcon["name"] | undefined;
|
85
|
-
/** If defined, gives the supplied appearance */
|
86
|
-
severity?: "error" | "info" | "warning" | "success" | "alert";
|
87
|
-
|
88
|
-
/** Fires when the close button is clicked */
|
89
|
-
"onskf-alert-close"?: (e: CustomEvent<never>) => void;
|
90
|
-
};
|
91
|
-
|
92
78
|
export type SkfButtonProps = {
|
93
79
|
/** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
|
94
80
|
destructive?: boolean;
|
@@ -268,6 +254,20 @@ export type SkfCardProps = {
|
|
268
254
|
stretch?: boolean | undefined;
|
269
255
|
};
|
270
256
|
|
257
|
+
export type SkfAlertProps = {
|
258
|
+
/** If true, alert is being used as a toast (alertdialog) with an close button */
|
259
|
+
closeable?: boolean | undefined;
|
260
|
+
/** Close button aria-label */
|
261
|
+
"button-label"?: string;
|
262
|
+
/** If defined, displays leading icon */
|
263
|
+
icon?: SkfIcon["name"] | undefined;
|
264
|
+
/** If defined, gives the supplied appearance */
|
265
|
+
severity?: "error" | "info" | "warning" | "success" | "alert";
|
266
|
+
|
267
|
+
/** Fires when the close button is clicked */
|
268
|
+
"onskf-alert-close"?: (e: CustomEvent<never>) => void;
|
269
|
+
};
|
270
|
+
|
271
271
|
export type SkfCheckboxProps = {
|
272
272
|
/** If true, sets disabled state */
|
273
273
|
disabled?: boolean;
|
@@ -302,6 +302,15 @@ export type SkfCheckboxProps = {
|
|
302
302
|
onchange?: (e: CustomEvent<never>) => void;
|
303
303
|
};
|
304
304
|
|
305
|
+
export type SkfDividerProps = {
|
306
|
+
/** Defines the Divider color */
|
307
|
+
color?: "emphasised" | "primary" | "secondary" | "tertiary" | "inverse";
|
308
|
+
/** If true, renders a div for presentational purpose instead of the semantic hr-element */
|
309
|
+
decorative?: boolean | undefined;
|
310
|
+
/** If true, renders the divider vertically */
|
311
|
+
vertical?: boolean | undefined;
|
312
|
+
};
|
313
|
+
|
305
314
|
export type SkfCollapseProps = {
|
306
315
|
/** If true, will animate the expand/collapse state */
|
307
316
|
animated?: boolean | undefined;
|
@@ -320,15 +329,6 @@ export type SkfCollapseProps = {
|
|
320
329
|
"onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
|
321
330
|
};
|
322
331
|
|
323
|
-
export type SkfDividerProps = {
|
324
|
-
/** Defines the Divider color */
|
325
|
-
color?: "emphasised" | "primary" | "secondary" | "tertiary" | "inverse";
|
326
|
-
/** If true, renders a div for presentational purpose instead of the semantic hr-element */
|
327
|
-
decorative?: boolean | undefined;
|
328
|
-
/** If true, renders the divider vertically */
|
329
|
-
vertical?: boolean | undefined;
|
330
|
-
};
|
331
|
-
|
332
332
|
export type SkfHeadingProps = {
|
333
333
|
/** Controls which heading element will be rendered. Should not be used to affect appearance */
|
334
334
|
as?: "h1" | "h2" | "h3" | "h4";
|
@@ -1146,38 +1146,38 @@ export type CustomElements = {
|
|
1146
1146
|
"skf-accordion": Partial<SkfAccordionProps & BaseProps & BaseEvents>;
|
1147
1147
|
|
1148
1148
|
/**
|
1149
|
-
*
|
1149
|
+
* Component to be used in forms or for interactivity
|
1150
1150
|
* ---
|
1151
1151
|
*
|
1152
1152
|
*
|
1153
|
-
* ### **Events:**
|
1154
|
-
* - **skf-alert-close** - Fires when the close button is clicked
|
1155
|
-
*
|
1156
1153
|
* ### **Slots:**
|
1157
|
-
* - _default_ -
|
1158
|
-
* - **link** - Slot for the link
|
1154
|
+
* - _default_ - The Primary content
|
1159
1155
|
*/
|
1160
|
-
"skf-
|
1156
|
+
"skf-button": Partial<SkfButtonProps & BaseProps & BaseEvents>;
|
1161
1157
|
|
1162
1158
|
/**
|
1163
|
-
*
|
1159
|
+
* The `<skf-card>` can be used to group related subjects in a container
|
1164
1160
|
* ---
|
1165
1161
|
*
|
1166
1162
|
*
|
1167
1163
|
* ### **Slots:**
|
1168
|
-
* - _default_ - The
|
1164
|
+
* - _default_ - The card's main content
|
1169
1165
|
*/
|
1170
|
-
"skf-
|
1166
|
+
"skf-card": Partial<SkfCardProps & BaseProps & BaseEvents>;
|
1171
1167
|
|
1172
1168
|
/**
|
1173
|
-
* The `<skf-
|
1169
|
+
* The `<skf-alert>` is a type of notification that appears in-line
|
1174
1170
|
* ---
|
1175
1171
|
*
|
1176
1172
|
*
|
1173
|
+
* ### **Events:**
|
1174
|
+
* - **skf-alert-close** - Fires when the close button is clicked
|
1175
|
+
*
|
1177
1176
|
* ### **Slots:**
|
1178
|
-
* - _default_ -
|
1177
|
+
* - _default_ - Alert message. **Notice!** See design principles for approved content
|
1178
|
+
* - **link** - Slot for the link
|
1179
1179
|
*/
|
1180
|
-
"skf-
|
1180
|
+
"skf-alert": Partial<SkfAlertProps & BaseProps & BaseEvents>;
|
1181
1181
|
|
1182
1182
|
/**
|
1183
1183
|
* The `<skf-checkbox>` component is used to create a checkbox input
|
@@ -1192,6 +1192,17 @@ export type CustomElements = {
|
|
1192
1192
|
*/
|
1193
1193
|
"skf-checkbox": Partial<SkfCheckboxProps & BaseProps & BaseEvents>;
|
1194
1194
|
|
1195
|
+
/**
|
1196
|
+
* The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
1197
|
+
* ---
|
1198
|
+
*
|
1199
|
+
*
|
1200
|
+
* ### **CSS Properties:**
|
1201
|
+
* - **--skf-divider-spacing** - The amount of space the divider occupies. Pass valid CSS **margin-block** values when horizontal and **margin-inline** when vertical _(default: undefined)_
|
1202
|
+
* - **--skf-divider-inset** - The amount of space the divider should be indented. Pass valid CSS **margin-inline** values when horizontal and **margin-block** when vertical _(default: undefined)_
|
1203
|
+
*/
|
1204
|
+
"skf-divider": Partial<SkfDividerProps & BaseProps & BaseEvents>;
|
1205
|
+
|
1195
1206
|
/**
|
1196
1207
|
* The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.
|
1197
1208
|
*
|
@@ -1211,17 +1222,6 @@ export type CustomElements = {
|
|
1211
1222
|
*/
|
1212
1223
|
"skf-collapse": Partial<SkfCollapseProps & BaseProps & BaseEvents>;
|
1213
1224
|
|
1214
|
-
/**
|
1215
|
-
* The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
1216
|
-
* ---
|
1217
|
-
*
|
1218
|
-
*
|
1219
|
-
* ### **CSS Properties:**
|
1220
|
-
* - **--skf-divider-spacing** - The amount of space the divider occupies. Pass valid CSS **margin-block** values when horizontal and **margin-inline** when vertical _(default: undefined)_
|
1221
|
-
* - **--skf-divider-inset** - The amount of space the divider should be indented. Pass valid CSS **margin-inline** values when horizontal and **margin-block** when vertical _(default: undefined)_
|
1222
|
-
*/
|
1223
|
-
"skf-divider": Partial<SkfDividerProps & BaseProps & BaseEvents>;
|
1224
|
-
|
1225
1225
|
/**
|
1226
1226
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
1227
1227
|
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
@@ -1,12 +1,12 @@
|
|
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
4
|
import type { SkfButton } from "../../components/button/button.component.js";
|
6
5
|
import type { SkfCard } from "../../components/card/card.component.js";
|
6
|
+
import type { SkfAlert } from "../../components/alert/alert.component.js";
|
7
7
|
import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
|
8
|
-
import type { SkfCollapse, CustomEvent } from "../../components/collapse/collapse.component.js";
|
9
8
|
import type { SkfDivider } from "../../components/divider/divider.component.js";
|
9
|
+
import type { SkfCollapse, CustomEvent } from "../../components/collapse/collapse.component.js";
|
10
10
|
import type { SkfHeading } from "../../components/heading/heading.component.js";
|
11
11
|
import type { SkfIcon } from "../../components/icon/icon.component.js";
|
12
12
|
import type { SkfInput } from "../../components/input/input.component.js";
|
@@ -36,20 +36,6 @@ type SkfAccordionProps = {
|
|
36
36
|
truncate?: SkfAccordion["truncate"];
|
37
37
|
};
|
38
38
|
|
39
|
-
type SkfAlertProps = {
|
40
|
-
/** If true, alert is being used as a toast (alertdialog) with an close button */
|
41
|
-
closeable?: SkfAlert["closeable"];
|
42
|
-
/** Close button aria-label */
|
43
|
-
"button-label"?: SkfAlert["buttonLabel"];
|
44
|
-
/** If defined, displays leading icon */
|
45
|
-
icon?: SkfAlert["icon"];
|
46
|
-
/** If defined, gives the supplied appearance */
|
47
|
-
severity?: SkfAlert["severity"];
|
48
|
-
|
49
|
-
/** Fires when the close button is clicked */
|
50
|
-
"onskf-alert-close"?: (e: CustomEvent<never>) => void;
|
51
|
-
};
|
52
|
-
|
53
39
|
type SkfButtonProps = {
|
54
40
|
/** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
|
55
41
|
destructive?: SkfButton["destructive"];
|
@@ -78,6 +64,20 @@ type SkfCardProps = {
|
|
78
64
|
stretch?: SkfCard["stretch"];
|
79
65
|
};
|
80
66
|
|
67
|
+
type SkfAlertProps = {
|
68
|
+
/** If true, alert is being used as a toast (alertdialog) with an close button */
|
69
|
+
closeable?: SkfAlert["closeable"];
|
70
|
+
/** Close button aria-label */
|
71
|
+
"button-label"?: SkfAlert["buttonLabel"];
|
72
|
+
/** If defined, displays leading icon */
|
73
|
+
icon?: SkfAlert["icon"];
|
74
|
+
/** If defined, gives the supplied appearance */
|
75
|
+
severity?: SkfAlert["severity"];
|
76
|
+
|
77
|
+
/** Fires when the close button is clicked */
|
78
|
+
"onskf-alert-close"?: (e: CustomEvent<never>) => void;
|
79
|
+
};
|
80
|
+
|
81
81
|
type SkfCheckboxProps = {
|
82
82
|
/** If true, sets disabled state */
|
83
83
|
disabled?: SkfCheckbox["undefined"];
|
@@ -112,6 +112,15 @@ type SkfCheckboxProps = {
|
|
112
112
|
onchange?: (e: CustomEvent<never>) => void;
|
113
113
|
};
|
114
114
|
|
115
|
+
type SkfDividerProps = {
|
116
|
+
/** Defines the Divider color */
|
117
|
+
color?: SkfDivider["color"];
|
118
|
+
/** If true, renders a div for presentational purpose instead of the semantic hr-element */
|
119
|
+
decorative?: SkfDivider["decorative"];
|
120
|
+
/** If true, renders the divider vertically */
|
121
|
+
vertical?: SkfDivider["vertical"];
|
122
|
+
};
|
123
|
+
|
115
124
|
type SkfCollapseProps = {
|
116
125
|
/** If true, will animate the expand/collapse state */
|
117
126
|
animated?: SkfCollapse["animated"];
|
@@ -130,15 +139,6 @@ type SkfCollapseProps = {
|
|
130
139
|
"onskf-collapse-toggle"?: (e: CustomEvent<CustomEvent>) => void;
|
131
140
|
};
|
132
141
|
|
133
|
-
type SkfDividerProps = {
|
134
|
-
/** Defines the Divider color */
|
135
|
-
color?: SkfDivider["color"];
|
136
|
-
/** If true, renders a div for presentational purpose instead of the semantic hr-element */
|
137
|
-
decorative?: SkfDivider["decorative"];
|
138
|
-
/** If true, renders the divider vertically */
|
139
|
-
vertical?: SkfDivider["vertical"];
|
140
|
-
};
|
141
|
-
|
142
142
|
type SkfHeadingProps = {
|
143
143
|
/** Controls which heading element will be rendered. Should not be used to affect appearance */
|
144
144
|
as?: SkfHeading["as"];
|
@@ -483,38 +483,38 @@ export type CustomElements = {
|
|
483
483
|
"skf-accordion": DefineComponent<SkfAccordionProps>;
|
484
484
|
|
485
485
|
/**
|
486
|
-
*
|
486
|
+
* Component to be used in forms or for interactivity
|
487
487
|
* ---
|
488
488
|
*
|
489
489
|
*
|
490
|
-
* ### **Events:**
|
491
|
-
* - **skf-alert-close** - Fires when the close button is clicked
|
492
|
-
*
|
493
490
|
* ### **Slots:**
|
494
|
-
* - _default_ -
|
495
|
-
* - **link** - Slot for the link
|
491
|
+
* - _default_ - The Primary content
|
496
492
|
*/
|
497
|
-
"skf-
|
493
|
+
"skf-button": DefineComponent<SkfButtonProps>;
|
498
494
|
|
499
495
|
/**
|
500
|
-
*
|
496
|
+
* The `<skf-card>` can be used to group related subjects in a container
|
501
497
|
* ---
|
502
498
|
*
|
503
499
|
*
|
504
500
|
* ### **Slots:**
|
505
|
-
* - _default_ - The
|
501
|
+
* - _default_ - The card's main content
|
506
502
|
*/
|
507
|
-
"skf-
|
503
|
+
"skf-card": DefineComponent<SkfCardProps>;
|
508
504
|
|
509
505
|
/**
|
510
|
-
* The `<skf-
|
506
|
+
* The `<skf-alert>` is a type of notification that appears in-line
|
511
507
|
* ---
|
512
508
|
*
|
513
509
|
*
|
510
|
+
* ### **Events:**
|
511
|
+
* - **skf-alert-close** - Fires when the close button is clicked
|
512
|
+
*
|
514
513
|
* ### **Slots:**
|
515
|
-
* - _default_ -
|
514
|
+
* - _default_ - Alert message. **Notice!** See design principles for approved content
|
515
|
+
* - **link** - Slot for the link
|
516
516
|
*/
|
517
|
-
"skf-
|
517
|
+
"skf-alert": DefineComponent<SkfAlertProps>;
|
518
518
|
|
519
519
|
/**
|
520
520
|
* The `<skf-checkbox>` component is used to create a checkbox input
|
@@ -529,6 +529,17 @@ export type CustomElements = {
|
|
529
529
|
*/
|
530
530
|
"skf-checkbox": DefineComponent<SkfCheckboxProps>;
|
531
531
|
|
532
|
+
/**
|
533
|
+
* The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
534
|
+
* ---
|
535
|
+
*
|
536
|
+
*
|
537
|
+
* ### **CSS Properties:**
|
538
|
+
* - **--skf-divider-spacing** - The amount of space the divider occupies. Pass valid CSS **margin-block** values when horizontal and **margin-inline** when vertical _(default: undefined)_
|
539
|
+
* - **--skf-divider-inset** - The amount of space the divider should be indented. Pass valid CSS **margin-inline** values when horizontal and **margin-block** when vertical _(default: undefined)_
|
540
|
+
*/
|
541
|
+
"skf-divider": DefineComponent<SkfDividerProps>;
|
542
|
+
|
532
543
|
/**
|
533
544
|
* The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.
|
534
545
|
*
|
@@ -548,17 +559,6 @@ export type CustomElements = {
|
|
548
559
|
*/
|
549
560
|
"skf-collapse": DefineComponent<SkfCollapseProps>;
|
550
561
|
|
551
|
-
/**
|
552
|
-
* The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
553
|
-
* ---
|
554
|
-
*
|
555
|
-
*
|
556
|
-
* ### **CSS Properties:**
|
557
|
-
* - **--skf-divider-spacing** - The amount of space the divider occupies. Pass valid CSS **margin-block** values when horizontal and **margin-inline** when vertical _(default: undefined)_
|
558
|
-
* - **--skf-divider-inset** - The amount of space the divider should be indented. Pass valid CSS **margin-inline** values when horizontal and **margin-block** when vertical _(default: undefined)_
|
559
|
-
*/
|
560
|
-
"skf-divider": DefineComponent<SkfDividerProps>;
|
561
|
-
|
562
562
|
/**
|
563
563
|
* The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>
|
564
564
|
* It extends the interface of native html `<h1>` to `<h4>` elements.
|
@@ -44,39 +44,6 @@
|
|
44
44
|
],
|
45
45
|
"references": []
|
46
46
|
},
|
47
|
-
{
|
48
|
-
"name": "skf-alert",
|
49
|
-
"description": "The `<skf-alert>` is a type of notification that appears in-line\n---\n\n\n### **Events:**\n - **skf-alert-close** - Fires when the close button is clicked\n\n### **Slots:**\n - _default_ - Alert message. **Notice!** See design principles for approved content\n- **link** - Slot for the link",
|
50
|
-
"attributes": [
|
51
|
-
{
|
52
|
-
"name": "closeable",
|
53
|
-
"description": "If true, alert is being used as a toast (alertdialog) with an close button",
|
54
|
-
"values": []
|
55
|
-
},
|
56
|
-
{
|
57
|
-
"name": "button-label",
|
58
|
-
"description": "Close button aria-label",
|
59
|
-
"values": []
|
60
|
-
},
|
61
|
-
{
|
62
|
-
"name": "icon",
|
63
|
-
"description": "If defined, displays leading icon",
|
64
|
-
"values": [{ "name": "SkfIcon['name']" }]
|
65
|
-
},
|
66
|
-
{
|
67
|
-
"name": "severity",
|
68
|
-
"description": "If defined, gives the supplied appearance",
|
69
|
-
"values": [
|
70
|
-
{ "name": "error" },
|
71
|
-
{ "name": "info" },
|
72
|
-
{ "name": "warning" },
|
73
|
-
{ "name": "success" },
|
74
|
-
{ "name": "alert" }
|
75
|
-
]
|
76
|
-
}
|
77
|
-
],
|
78
|
-
"references": []
|
79
|
-
},
|
80
47
|
{
|
81
48
|
"name": "skf-button",
|
82
49
|
"description": "Component to be used in forms or for interactivity\n---\n\n\n### **Slots:**\n - _default_ - The Primary content",
|
@@ -302,6 +269,39 @@
|
|
302
269
|
],
|
303
270
|
"references": []
|
304
271
|
},
|
272
|
+
{
|
273
|
+
"name": "skf-alert",
|
274
|
+
"description": "The `<skf-alert>` is a type of notification that appears in-line\n---\n\n\n### **Events:**\n - **skf-alert-close** - Fires when the close button is clicked\n\n### **Slots:**\n - _default_ - Alert message. **Notice!** See design principles for approved content\n- **link** - Slot for the link",
|
275
|
+
"attributes": [
|
276
|
+
{
|
277
|
+
"name": "closeable",
|
278
|
+
"description": "If true, alert is being used as a toast (alertdialog) with an close button",
|
279
|
+
"values": []
|
280
|
+
},
|
281
|
+
{
|
282
|
+
"name": "button-label",
|
283
|
+
"description": "Close button aria-label",
|
284
|
+
"values": []
|
285
|
+
},
|
286
|
+
{
|
287
|
+
"name": "icon",
|
288
|
+
"description": "If defined, displays leading icon",
|
289
|
+
"values": [{ "name": "SkfIcon['name']" }]
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"name": "severity",
|
293
|
+
"description": "If defined, gives the supplied appearance",
|
294
|
+
"values": [
|
295
|
+
{ "name": "error" },
|
296
|
+
{ "name": "info" },
|
297
|
+
{ "name": "warning" },
|
298
|
+
{ "name": "success" },
|
299
|
+
{ "name": "alert" }
|
300
|
+
]
|
301
|
+
}
|
302
|
+
],
|
303
|
+
"references": []
|
304
|
+
},
|
305
305
|
{
|
306
306
|
"name": "skf-checkbox",
|
307
307
|
"description": "The `<skf-checkbox>` component is used to create a checkbox 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.",
|
@@ -384,6 +384,34 @@
|
|
384
384
|
],
|
385
385
|
"references": []
|
386
386
|
},
|
387
|
+
{
|
388
|
+
"name": "skf-divider",
|
389
|
+
"description": "The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information\n---\n\n\n### **CSS Properties:**\n - **--skf-divider-spacing** - The amount of space the divider occupies. Pass valid CSS **margin-block** values when horizontal and **margin-inline** when vertical _(default: undefined)_\n- **--skf-divider-inset** - The amount of space the divider should be indented. Pass valid CSS **margin-inline** values when horizontal and **margin-block** when vertical _(default: undefined)_",
|
390
|
+
"attributes": [
|
391
|
+
{
|
392
|
+
"name": "color",
|
393
|
+
"description": "Defines the Divider color",
|
394
|
+
"values": [
|
395
|
+
{ "name": "emphasised" },
|
396
|
+
{ "name": "primary" },
|
397
|
+
{ "name": "secondary" },
|
398
|
+
{ "name": "tertiary" },
|
399
|
+
{ "name": "inverse" }
|
400
|
+
]
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"name": "decorative",
|
404
|
+
"description": "If true, renders a div for presentational purpose instead of the semantic hr-element",
|
405
|
+
"values": []
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"name": "vertical",
|
409
|
+
"description": "If true, renders the divider vertically",
|
410
|
+
"values": []
|
411
|
+
}
|
412
|
+
],
|
413
|
+
"references": []
|
414
|
+
},
|
387
415
|
{
|
388
416
|
"name": "skf-collapse",
|
389
417
|
"description": "The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.\n---\n\n\n### **Events:**\n - **skf-collapse-toggle** - Event emitted when toggled\n\n### **Methods:**\n - **setClose()** - Class method as alternative to manipulate attribute\n- **setOpen()** - Class method as alternative to manipulate attribute\n\n### **Slots:**\n - _default_ - Main content",
|
@@ -426,34 +454,6 @@
|
|
426
454
|
],
|
427
455
|
"references": []
|
428
456
|
},
|
429
|
-
{
|
430
|
-
"name": "skf-divider",
|
431
|
-
"description": "The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information\n---\n\n\n### **CSS Properties:**\n - **--skf-divider-spacing** - The amount of space the divider occupies. Pass valid CSS **margin-block** values when horizontal and **margin-inline** when vertical _(default: undefined)_\n- **--skf-divider-inset** - The amount of space the divider should be indented. Pass valid CSS **margin-inline** values when horizontal and **margin-block** when vertical _(default: undefined)_",
|
432
|
-
"attributes": [
|
433
|
-
{
|
434
|
-
"name": "color",
|
435
|
-
"description": "Defines the Divider color",
|
436
|
-
"values": [
|
437
|
-
{ "name": "emphasised" },
|
438
|
-
{ "name": "primary" },
|
439
|
-
{ "name": "secondary" },
|
440
|
-
{ "name": "tertiary" },
|
441
|
-
{ "name": "inverse" }
|
442
|
-
]
|
443
|
-
},
|
444
|
-
{
|
445
|
-
"name": "decorative",
|
446
|
-
"description": "If true, renders a div for presentational purpose instead of the semantic hr-element",
|
447
|
-
"values": []
|
448
|
-
},
|
449
|
-
{
|
450
|
-
"name": "vertical",
|
451
|
-
"description": "If true, renders the divider vertically",
|
452
|
-
"values": []
|
453
|
-
}
|
454
|
-
],
|
455
|
-
"references": []
|
456
|
-
},
|
457
457
|
{
|
458
458
|
"name": "skf-heading",
|
459
459
|
"description": "The `<Heading>` component is to deliniate content on a page. When using, take note not to skip heading levels.<br>\nIt extends the interface of native html `<h1>` to `<h4>` elements.\n---\n\n\n### **Slots:**\n - _default_ - The headings content",
|