@skf-design-system/ui-components 0.0.1-beta.4 → 1.0.0-alpha.27
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 +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 +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 +16 -19
- package/dist/components/card/card.styles.js +11 -3
- package/dist/components/checkbox/checkbox.component.d.ts +16 -9
- package/dist/components/checkbox/checkbox.component.js +32 -31
- 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 +34 -29
- package/dist/components/input/input.component.js +43 -43
- 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/radio/radio.component.d.ts +15 -13
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.styles.js +6 -1
- package/dist/components/select/select.component.d.ts +137 -0
- package/dist/components/select/select.component.js +312 -0
- package/dist/components/select/select.controllers.d.ts +59 -0
- package/dist/components/select/select.controllers.js +169 -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 +1 -1
- package/dist/components/switch/switch.styles.js +6 -1
- package/dist/components/switch/switch.test.d.ts +1 -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 +15 -12
- package/dist/custom-elements.json +969 -295
- package/dist/index.d.ts +3 -0
- package/dist/index.js +39 -30
- package/dist/internal/components/formBase.d.ts +18 -1
- package/dist/internal/components/formBase.js +25 -13
- 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/storybook/shadowRootTraverser.d.ts +16 -6
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.js +3 -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/styles/form-field.styles.js +11 -7
- package/dist/types/jsx/custom-element-jsx.d.ts +292 -140
- package/dist/types/vue/index.d.ts +225 -90
- package/dist/vscode.html-custom-data.json +299 -97
- package/dist/web-types.json +624 -242
- package/package.json +34 -30
@@ -4,7 +4,7 @@
|
|
4
4
|
"tags": [
|
5
5
|
{
|
6
6
|
"name": "skf-accordion",
|
7
|
-
"description": "The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.\n\nSee [
|
7
|
+
"description": "The `<skf-accordion>` component consists of multiple `<skf-collapse>`, working together.\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/6590bf-accordion) for design principles.\n---\n\n\n### **Slots:**\n - _default_ - Expects one or more <skf-accordion-item> element(s)",
|
8
8
|
"attributes": [
|
9
9
|
{
|
10
10
|
"name": "animated",
|
@@ -13,12 +13,17 @@
|
|
13
13
|
},
|
14
14
|
{
|
15
15
|
"name": "heading-as",
|
16
|
-
"description": "
|
17
|
-
"values": [
|
16
|
+
"description": "Defines which heading element will be rendered",
|
17
|
+
"values": [
|
18
|
+
{ "name": "h1" },
|
19
|
+
{ "name": "h2" },
|
20
|
+
{ "name": "h3" },
|
21
|
+
{ "name": "h4" }
|
22
|
+
]
|
18
23
|
},
|
19
24
|
{
|
20
25
|
"name": "gap",
|
21
|
-
"description": "If
|
26
|
+
"description": "If true, adds a gap between each item",
|
22
27
|
"values": []
|
23
28
|
},
|
24
29
|
{
|
@@ -41,11 +46,11 @@
|
|
41
46
|
},
|
42
47
|
{
|
43
48
|
"name": "skf-alert",
|
44
|
-
"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** -
|
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",
|
45
50
|
"attributes": [
|
46
51
|
{
|
47
52
|
"name": "closeable",
|
48
|
-
"description": "If true, alert is being used as a toast with an close button",
|
53
|
+
"description": "If true, alert is being used as a toast (alertdialog) with an close button",
|
49
54
|
"values": []
|
50
55
|
},
|
51
56
|
{
|
@@ -61,7 +66,13 @@
|
|
61
66
|
{
|
62
67
|
"name": "severity",
|
63
68
|
"description": "If defined, gives the supplied appearance",
|
64
|
-
"values": [
|
69
|
+
"values": [
|
70
|
+
{ "name": "error" },
|
71
|
+
{ "name": "info" },
|
72
|
+
{ "name": "warning" },
|
73
|
+
{ "name": "success" },
|
74
|
+
{ "name": "alert" }
|
75
|
+
]
|
65
76
|
}
|
66
77
|
],
|
67
78
|
"references": []
|
@@ -293,7 +304,7 @@
|
|
293
304
|
},
|
294
305
|
{
|
295
306
|
"name": "skf-checkbox",
|
296
|
-
"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 -
|
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.",
|
297
308
|
"attributes": [
|
298
309
|
{
|
299
310
|
"name": "disabled",
|
@@ -330,6 +341,11 @@
|
|
330
341
|
"description": "If true and the checkbox is unchecked, the checkbox will appear indeterminate",
|
331
342
|
"values": []
|
332
343
|
},
|
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
|
+
},
|
333
349
|
{
|
334
350
|
"name": "label",
|
335
351
|
"description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
|
@@ -345,21 +361,26 @@
|
|
345
361
|
"description": "If defined, renders an alternative A11y text for the asterisk",
|
346
362
|
"values": []
|
347
363
|
},
|
348
|
-
{
|
349
|
-
"name": "size",
|
350
|
-
"description": "Size of the checkbox",
|
351
|
-
"values": [{ "name": "sm" }, { "name": "md" }]
|
352
|
-
},
|
353
364
|
{
|
354
365
|
"name": "severity",
|
355
366
|
"description": "If defined, styles checkbox using provided severity",
|
356
|
-
"values": [
|
367
|
+
"values": [
|
368
|
+
{ "name": "alert" },
|
369
|
+
{ "name": "success" },
|
370
|
+
{ "name": "info" },
|
371
|
+
{ "name": "warning" }
|
372
|
+
]
|
357
373
|
},
|
358
374
|
{
|
359
375
|
"name": "show-valid",
|
360
|
-
"description": "If
|
376
|
+
"description": "If true, displays valid state after interaction",
|
361
377
|
"values": []
|
362
378
|
},
|
379
|
+
{
|
380
|
+
"name": "size",
|
381
|
+
"description": "Size of the checkbox",
|
382
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
383
|
+
},
|
363
384
|
{
|
364
385
|
"name": "value",
|
365
386
|
"description": "The current value of the input field",
|
@@ -370,7 +391,7 @@
|
|
370
391
|
},
|
371
392
|
{
|
372
393
|
"name": "skf-collapse",
|
373
|
-
"description": "The `<skf-collapse>` component is a general purpose container for content that can be collapsed / expanded.\n\nSee [
|
394
|
+
"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",
|
374
395
|
"attributes": [
|
375
396
|
{
|
376
397
|
"name": "animated",
|
@@ -389,8 +410,13 @@
|
|
389
410
|
},
|
390
411
|
{
|
391
412
|
"name": "heading-as",
|
392
|
-
"description": "
|
393
|
-
"values": [
|
413
|
+
"description": "Defines which heading element will be rendered",
|
414
|
+
"values": [
|
415
|
+
{ "name": "h1" },
|
416
|
+
{ "name": "h2" },
|
417
|
+
{ "name": "h3" },
|
418
|
+
{ "name": "h4" }
|
419
|
+
]
|
394
420
|
},
|
395
421
|
{
|
396
422
|
"name": "small",
|
@@ -407,11 +433,11 @@
|
|
407
433
|
},
|
408
434
|
{
|
409
435
|
"name": "skf-divider",
|
410
|
-
"description": "The `<Divider>` component can separate items from each other, to visually emphasize their lack of a relationship between groups of information
|
436
|
+
"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)_",
|
411
437
|
"attributes": [
|
412
438
|
{
|
413
439
|
"name": "color",
|
414
|
-
"description": "
|
440
|
+
"description": "Defines the Divider color",
|
415
441
|
"values": [
|
416
442
|
{ "name": "emphasised" },
|
417
443
|
{ "name": "primary" },
|
@@ -435,17 +461,27 @@
|
|
435
461
|
},
|
436
462
|
{
|
437
463
|
"name": "skf-heading",
|
438
|
-
"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",
|
464
|
+
"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",
|
439
465
|
"attributes": [
|
440
466
|
{
|
441
467
|
"name": "as",
|
442
|
-
"description": "Controls which heading element will be rendered. Should not be used to affect appearance
|
443
|
-
"values": [
|
468
|
+
"description": "Controls which heading element will be rendered. Should not be used to affect appearance",
|
469
|
+
"values": [
|
470
|
+
{ "name": "h1" },
|
471
|
+
{ "name": "h2" },
|
472
|
+
{ "name": "h3" },
|
473
|
+
{ "name": "h4" }
|
474
|
+
]
|
444
475
|
},
|
445
476
|
{
|
446
477
|
"name": "styled-as",
|
447
478
|
"description": "If provided, changes the appearance of the heading",
|
448
|
-
"values": [
|
479
|
+
"values": [
|
480
|
+
{ "name": "h1" },
|
481
|
+
{ "name": "h2" },
|
482
|
+
{ "name": "h3" },
|
483
|
+
{ "name": "h4" }
|
484
|
+
]
|
449
485
|
}
|
450
486
|
],
|
451
487
|
"references": []
|
@@ -456,6 +492,7 @@
|
|
456
492
|
"attributes": [
|
457
493
|
{
|
458
494
|
"name": "color",
|
495
|
+
"description": "Sets the color of the icon",
|
459
496
|
"values": [
|
460
497
|
{ "name": "primary" },
|
461
498
|
{ "name": "inverse" },
|
@@ -470,11 +507,12 @@
|
|
470
507
|
},
|
471
508
|
{
|
472
509
|
"name": "label",
|
473
|
-
"description": "If
|
510
|
+
"description": "If defined, adds an alternate description to use for assistive devices",
|
474
511
|
"values": []
|
475
512
|
},
|
476
513
|
{
|
477
514
|
"name": "name",
|
515
|
+
"description": "Name of the icon to display",
|
478
516
|
"values": [
|
479
517
|
{ "name": "arrowDown" },
|
480
518
|
{ "name": "arrowDownUp" },
|
@@ -631,6 +669,7 @@
|
|
631
669
|
},
|
632
670
|
{
|
633
671
|
"name": "size",
|
672
|
+
"description": "Size of the icon",
|
634
673
|
"values": [
|
635
674
|
{ "name": "xs" },
|
636
675
|
{ "name": "sm" },
|
@@ -643,7 +682,7 @@
|
|
643
682
|
},
|
644
683
|
{
|
645
684
|
"name": "skf-input",
|
646
|
-
"description": "The skf-text-field is used to create a text input field. It can be used inside a form element or standalone.\n---\n\n\n### **Events:**\n - **change** - Fires when the value of the input changes\n- **invalid** - Fires when the input is invalid\n\n### **Slots:**\n -
|
685
|
+
"description": "The skf-text-field is used to create a text input field. It can be used inside a form element or standalone.\n---\n\n\n### **Events:**\n - **change** - Fires when the value of the input changes\n- **invalid** - Fires when the input is invalid\n\n### **Slots:**\n - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.",
|
647
686
|
"attributes": [
|
648
687
|
{
|
649
688
|
"name": "disabled",
|
@@ -657,27 +696,27 @@
|
|
657
696
|
},
|
658
697
|
{
|
659
698
|
"name": "button-aria-label-clear",
|
660
|
-
"description": "
|
699
|
+
"description": "Custom aria-label for the clear button. **Notice!** Only applicable to type=search.",
|
661
700
|
"values": []
|
662
701
|
},
|
663
702
|
{
|
664
703
|
"name": "button-aria-label-hide",
|
665
|
-
"description": "
|
704
|
+
"description": "Custom aria-label for the visibility button. **Notice!** Only applicable to type=password.",
|
666
705
|
"values": []
|
667
706
|
},
|
668
707
|
{
|
669
708
|
"name": "button-aria-label-show",
|
670
|
-
"description": "
|
709
|
+
"description": "Custom aria-label for the visibility button **Notice!** Only applicable to type=password.",
|
671
710
|
"values": []
|
672
711
|
},
|
673
712
|
{
|
674
713
|
"name": "custom-invalid",
|
675
|
-
"description": "If
|
714
|
+
"description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
|
676
715
|
"values": []
|
677
716
|
},
|
678
717
|
{
|
679
718
|
"name": "debug",
|
680
|
-
"description": "If
|
719
|
+
"description": "If true, outputs helping hints in console",
|
681
720
|
"values": []
|
682
721
|
},
|
683
722
|
{
|
@@ -687,12 +726,12 @@
|
|
687
726
|
},
|
688
727
|
{
|
689
728
|
"name": "hint",
|
690
|
-
"description": "If
|
729
|
+
"description": "If defined, displays informational text below the field",
|
691
730
|
"values": []
|
692
731
|
},
|
693
732
|
{
|
694
733
|
"name": "inputmode",
|
695
|
-
"description": "
|
734
|
+
"description": "Tells what keyboard to use if applicable",
|
696
735
|
"values": [
|
697
736
|
{ "name": "none" },
|
698
737
|
{ "name": "text" },
|
@@ -706,47 +745,47 @@
|
|
706
745
|
},
|
707
746
|
{
|
708
747
|
"name": "label",
|
709
|
-
"description": "
|
748
|
+
"description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
|
710
749
|
"values": []
|
711
750
|
},
|
712
751
|
{
|
713
752
|
"name": "leading",
|
714
|
-
"description": "If
|
753
|
+
"description": "If defined, displays a prefix/adornment before the input-element",
|
715
754
|
"values": []
|
716
755
|
},
|
717
756
|
{
|
718
757
|
"name": "max",
|
719
|
-
"description": "If
|
758
|
+
"description": "If defined, sets the maximum value to accept for this input",
|
720
759
|
"values": []
|
721
760
|
},
|
722
761
|
{
|
723
762
|
"name": "maxlength",
|
724
|
-
"description": "If
|
763
|
+
"description": "If defined, sets the maximum character length to accept for this input",
|
725
764
|
"values": []
|
726
765
|
},
|
727
766
|
{
|
728
767
|
"name": "min",
|
729
|
-
"description": "If
|
768
|
+
"description": "If defined, sets the minimum value to accept for this input",
|
730
769
|
"values": []
|
731
770
|
},
|
732
771
|
{
|
733
772
|
"name": "minlength",
|
734
|
-
"description": "If
|
773
|
+
"description": "If defined, sets the minimum character length to accept for this input",
|
735
774
|
"values": []
|
736
775
|
},
|
737
776
|
{
|
738
777
|
"name": "name",
|
739
|
-
"description": "If
|
778
|
+
"description": "If defined, adds name to the input-element",
|
740
779
|
"values": []
|
741
780
|
},
|
742
781
|
{
|
743
782
|
"name": "pattern",
|
744
|
-
"description": "If
|
783
|
+
"description": "If defined, adds name to the input-element",
|
745
784
|
"values": []
|
746
785
|
},
|
747
786
|
{
|
748
787
|
"name": "placeholder",
|
749
|
-
"description": "If
|
788
|
+
"description": "If defined, displays placeholder text",
|
750
789
|
"values": []
|
751
790
|
},
|
752
791
|
{
|
@@ -756,40 +795,63 @@
|
|
756
795
|
},
|
757
796
|
{
|
758
797
|
"name": "required-label",
|
759
|
-
"description": "If
|
798
|
+
"description": "If defined, renders an alternative A11y text for the asterisk",
|
760
799
|
"values": []
|
761
800
|
},
|
762
801
|
{
|
763
802
|
"name": "severity",
|
764
|
-
"description": "If
|
765
|
-
"values": [
|
803
|
+
"description": "If defined, displays provided severity state",
|
804
|
+
"values": [
|
805
|
+
{ "name": "alert" },
|
806
|
+
{ "name": "success" },
|
807
|
+
{ "name": "info" },
|
808
|
+
{ "name": "warning" }
|
809
|
+
]
|
766
810
|
},
|
767
811
|
{
|
768
812
|
"name": "show-valid",
|
769
|
-
"description": "If
|
813
|
+
"description": "If true, displays valid state after interaction",
|
770
814
|
"values": []
|
771
815
|
},
|
772
816
|
{
|
773
817
|
"name": "size",
|
774
|
-
"description": "
|
818
|
+
"description": "Size of the input",
|
775
819
|
"values": [{ "name": "sm" }, { "name": "md" }]
|
776
820
|
},
|
777
821
|
{
|
778
822
|
"name": "trailing",
|
779
|
-
"description": "If
|
823
|
+
"description": "If defined, displays a suffix/adornment after the input-element",
|
780
824
|
"values": []
|
781
825
|
},
|
782
826
|
{
|
783
827
|
"name": "type",
|
784
|
-
"description": "
|
828
|
+
"description": "Type of input control",
|
785
829
|
"values": [
|
786
|
-
{ "name": "
|
787
|
-
{ "name": "
|
830
|
+
{ "name": "button" },
|
831
|
+
{ "name": "color" },
|
832
|
+
{ "name": "date" },
|
833
|
+
{ "name": "datetime-local" },
|
834
|
+
{ "name": "email" },
|
835
|
+
{ "name": "file" },
|
836
|
+
{ "name": "hidden" },
|
837
|
+
{ "name": "image" },
|
838
|
+
{ "name": "month" },
|
839
|
+
{ "name": "number" },
|
840
|
+
{ "name": "password" },
|
841
|
+
{ "name": "range" },
|
842
|
+
{ "name": "reset" },
|
843
|
+
{ "name": "search" },
|
844
|
+
{ "name": "submit" },
|
845
|
+
{ "name": "tel" },
|
846
|
+
{ "name": "text" },
|
847
|
+
{ "name": "time" },
|
848
|
+
{ "name": "url" },
|
849
|
+
{ "name": "week" }
|
788
850
|
]
|
789
851
|
},
|
790
852
|
{
|
791
853
|
"name": "validate-on",
|
792
|
-
"description": "
|
854
|
+
"description": "Sets validation start",
|
793
855
|
"values": [
|
794
856
|
{ "name": "input" },
|
795
857
|
{ "name": "change" },
|
@@ -810,11 +872,12 @@
|
|
810
872
|
"attributes": [
|
811
873
|
{
|
812
874
|
"name": "as",
|
813
|
-
"description": "
|
875
|
+
"description": "Defines the semantic element to render",
|
814
876
|
"values": [{ "name": "button" }, { "name": "a" }]
|
815
877
|
},
|
816
878
|
{
|
817
879
|
"name": "color",
|
880
|
+
"description": "Defines the text-color",
|
818
881
|
"values": [{ "name": "primary" }, { "name": "inverse" }]
|
819
882
|
},
|
820
883
|
{
|
@@ -824,17 +887,17 @@
|
|
824
887
|
},
|
825
888
|
{
|
826
889
|
"name": "download",
|
827
|
-
"description": "If
|
890
|
+
"description": "If defined, downloads the url",
|
828
891
|
"values": []
|
829
892
|
},
|
830
893
|
{
|
831
894
|
"name": "href",
|
832
|
-
"description": "If
|
895
|
+
"description": "If defined, loads url on click",
|
833
896
|
"values": []
|
834
897
|
},
|
835
898
|
{
|
836
899
|
"name": "icon",
|
837
|
-
"description": "If
|
900
|
+
"description": "If defined, renders an icon before or after the text",
|
838
901
|
"values": [
|
839
902
|
{ "name": "arrowDown" },
|
840
903
|
{ "name": "arrowDownUp" },
|
@@ -991,17 +1054,17 @@
|
|
991
1054
|
},
|
992
1055
|
{
|
993
1056
|
"name": "icon-placement",
|
994
|
-
"description": "
|
1057
|
+
"description": "Defines the position of the icon in relation to the text",
|
995
1058
|
"values": [{ "name": "left" }, { "name": "right" }]
|
996
1059
|
},
|
997
1060
|
{
|
998
1061
|
"name": "rel",
|
999
|
-
"description": "
|
1062
|
+
"description": "Defines the relationship of the target object to the link object",
|
1000
1063
|
"values": []
|
1001
1064
|
},
|
1002
1065
|
{
|
1003
1066
|
"name": "route",
|
1004
|
-
"description": "If
|
1067
|
+
"description": "If defined, used on conjunction with onClick property, second argument",
|
1005
1068
|
"values": []
|
1006
1069
|
},
|
1007
1070
|
{
|
@@ -1011,7 +1074,7 @@
|
|
1011
1074
|
},
|
1012
1075
|
{
|
1013
1076
|
"name": "target",
|
1014
|
-
"description": "If
|
1077
|
+
"description": "If defined, specifies where to open the linked document",
|
1015
1078
|
"values": [
|
1016
1079
|
{ "name": "_blank" },
|
1017
1080
|
{ "name": "_parent" },
|
@@ -1021,7 +1084,7 @@
|
|
1021
1084
|
},
|
1022
1085
|
{
|
1023
1086
|
"name": "type",
|
1024
|
-
"description": "
|
1087
|
+
"description": "Defines the type of button",
|
1025
1088
|
"values": [
|
1026
1089
|
{ "name": "button" },
|
1027
1090
|
{ "name": "submit" },
|
@@ -1033,9 +1096,13 @@
|
|
1033
1096
|
},
|
1034
1097
|
{
|
1035
1098
|
"name": "skf-loader",
|
1036
|
-
"description": "The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities
|
1099
|
+
"description": "The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities\n---\n",
|
1037
1100
|
"attributes": [
|
1038
|
-
{
|
1101
|
+
{
|
1102
|
+
"name": "aria-label",
|
1103
|
+
"description": "Defines the aria-label",
|
1104
|
+
"values": []
|
1105
|
+
},
|
1039
1106
|
{
|
1040
1107
|
"name": "invert",
|
1041
1108
|
"description": "If true, inverts the color (to be used on colored backgrounds)",
|
@@ -1043,7 +1110,7 @@
|
|
1043
1110
|
},
|
1044
1111
|
{
|
1045
1112
|
"name": "size",
|
1046
|
-
"description": "
|
1113
|
+
"description": "Defines the size of the loader",
|
1047
1114
|
"values": [{ "name": "md" }, { "name": "sm" }]
|
1048
1115
|
}
|
1049
1116
|
],
|
@@ -1055,12 +1122,12 @@
|
|
1055
1122
|
"attributes": [
|
1056
1123
|
{
|
1057
1124
|
"name": "title",
|
1058
|
-
"description": "
|
1125
|
+
"description": "Defines the title of the logo",
|
1059
1126
|
"values": []
|
1060
1127
|
},
|
1061
1128
|
{
|
1062
1129
|
"name": "color",
|
1063
|
-
"description": "If
|
1130
|
+
"description": "If defined, sets color of the logo",
|
1064
1131
|
"values": [
|
1065
1132
|
{ "name": "primary" },
|
1066
1133
|
{ "name": "secondary" },
|
@@ -1072,7 +1139,7 @@
|
|
1072
1139
|
},
|
1073
1140
|
{
|
1074
1141
|
"name": "skf-radio",
|
1075
|
-
"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 -
|
1142
|
+
"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.",
|
1076
1143
|
"attributes": [
|
1077
1144
|
{
|
1078
1145
|
"name": "disabled",
|
@@ -1086,7 +1153,7 @@
|
|
1086
1153
|
},
|
1087
1154
|
{
|
1088
1155
|
"name": "debug",
|
1089
|
-
"description": "If
|
1156
|
+
"description": "If true, outputs helping hints in console",
|
1090
1157
|
"values": []
|
1091
1158
|
},
|
1092
1159
|
{
|
@@ -1106,32 +1173,37 @@
|
|
1106
1173
|
},
|
1107
1174
|
{
|
1108
1175
|
"name": "label",
|
1109
|
-
"description": "
|
1176
|
+
"description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
|
1110
1177
|
"values": []
|
1111
1178
|
},
|
1112
1179
|
{
|
1113
1180
|
"name": "name",
|
1114
|
-
"description": "If
|
1181
|
+
"description": "If defined, adds name to the input-element",
|
1115
1182
|
"values": []
|
1116
1183
|
},
|
1117
1184
|
{
|
1118
1185
|
"name": "required-label",
|
1119
|
-
"description": "If
|
1186
|
+
"description": "If defined, renders an alternative A11y text for the asterisk",
|
1120
1187
|
"values": []
|
1121
1188
|
},
|
1122
1189
|
{
|
1123
1190
|
"name": "size",
|
1124
|
-
"description": "
|
1191
|
+
"description": "Size of the Radio",
|
1125
1192
|
"values": [{ "name": "sm" }, { "name": "md" }]
|
1126
1193
|
},
|
1127
1194
|
{
|
1128
1195
|
"name": "severity",
|
1129
|
-
"description": "If
|
1130
|
-
"values": [
|
1196
|
+
"description": "If defined, displays provided severity state",
|
1197
|
+
"values": [
|
1198
|
+
{ "name": "success" },
|
1199
|
+
{ "name": "info" },
|
1200
|
+
{ "name": "warning" },
|
1201
|
+
{ "name": "alert" }
|
1202
|
+
]
|
1131
1203
|
},
|
1132
1204
|
{
|
1133
1205
|
"name": "show-valid",
|
1134
|
-
"description": "If
|
1206
|
+
"description": "If true, displays valid state after interaction",
|
1135
1207
|
"values": []
|
1136
1208
|
},
|
1137
1209
|
{
|
@@ -1142,9 +1214,134 @@
|
|
1142
1214
|
],
|
1143
1215
|
"references": []
|
1144
1216
|
},
|
1217
|
+
{
|
1218
|
+
"name": "skf-select",
|
1219
|
+
"description": "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.\n---\n\n\n### **Events:**\n - **change** - Fired when the selected option(s) changes\n- **invalid** - Fired when the select is invalid\n- **reset** - Fired when the form is reset\n- **skf-select:dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled\n- **skf-select-option:select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled\n\n### **Slots:**\n - _default_ - The select's placeholder content",
|
1220
|
+
"attributes": [
|
1221
|
+
{
|
1222
|
+
"name": "disabled",
|
1223
|
+
"description": "If true, the select is disabled\t`default: false`",
|
1224
|
+
"values": []
|
1225
|
+
},
|
1226
|
+
{
|
1227
|
+
"name": "button-label",
|
1228
|
+
"description": "Sets the first visible text on the component",
|
1229
|
+
"values": []
|
1230
|
+
},
|
1231
|
+
{
|
1232
|
+
"name": "custom-invalid",
|
1233
|
+
"description": "If defined, forces component to invalid state until removed",
|
1234
|
+
"values": []
|
1235
|
+
},
|
1236
|
+
{
|
1237
|
+
"name": "hide-label",
|
1238
|
+
"description": "If true, hides the label visually",
|
1239
|
+
"values": []
|
1240
|
+
},
|
1241
|
+
{
|
1242
|
+
"name": "hide-tags",
|
1243
|
+
"description": "If true and mulltiple is true, no tags are displayed under the select",
|
1244
|
+
"values": []
|
1245
|
+
},
|
1246
|
+
{
|
1247
|
+
"name": "hint",
|
1248
|
+
"description": "If defined, sets the hint text under the select component in the form",
|
1249
|
+
"values": []
|
1250
|
+
},
|
1251
|
+
{
|
1252
|
+
"name": "label",
|
1253
|
+
"description": "If defined, displays provided label",
|
1254
|
+
"values": []
|
1255
|
+
},
|
1256
|
+
{
|
1257
|
+
"name": "max",
|
1258
|
+
"description": "If defined, limits the number of selectable options",
|
1259
|
+
"values": []
|
1260
|
+
},
|
1261
|
+
{
|
1262
|
+
"name": "min",
|
1263
|
+
"description": "If defined, sets the minimum number of required options",
|
1264
|
+
"values": []
|
1265
|
+
},
|
1266
|
+
{
|
1267
|
+
"name": "multiple",
|
1268
|
+
"description": "If true, allows for multiple options to be selected",
|
1269
|
+
"values": []
|
1270
|
+
},
|
1271
|
+
{
|
1272
|
+
"name": "name",
|
1273
|
+
"description": "If defined, set name of the component",
|
1274
|
+
"values": []
|
1275
|
+
},
|
1276
|
+
{
|
1277
|
+
"name": "required-label",
|
1278
|
+
"description": "If defined, renders an alternative A11y text for the asterisk",
|
1279
|
+
"values": []
|
1280
|
+
},
|
1281
|
+
{
|
1282
|
+
"name": "severity",
|
1283
|
+
"description": "If defined, displays provided severity state",
|
1284
|
+
"values": [{ "name": "FormFieldBaseProps['severity']" }]
|
1285
|
+
},
|
1286
|
+
{
|
1287
|
+
"name": "show-valid",
|
1288
|
+
"description": "If true, displays valid state after interaction",
|
1289
|
+
"values": []
|
1290
|
+
},
|
1291
|
+
{
|
1292
|
+
"name": "size",
|
1293
|
+
"description": "Size of the Select",
|
1294
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
1295
|
+
}
|
1296
|
+
],
|
1297
|
+
"references": []
|
1298
|
+
},
|
1299
|
+
{
|
1300
|
+
"name": "skf-select-option",
|
1301
|
+
"description": "The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.\n---\n\n\n### **Events:**\n - **skf-select-option:select** - {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected.\n\n### **Slots:**\n - _default_ - The option's text content\n- **icon** - The option's slot for icon or custom meta information (svg).",
|
1302
|
+
"attributes": [
|
1303
|
+
{
|
1304
|
+
"name": "disabled",
|
1305
|
+
"description": "If true, prevents interaction with the option",
|
1306
|
+
"values": []
|
1307
|
+
},
|
1308
|
+
{
|
1309
|
+
"name": "icon",
|
1310
|
+
"description": "If defined, set an icon",
|
1311
|
+
"values": [{ "name": "SkfIcon['name']" }]
|
1312
|
+
},
|
1313
|
+
{
|
1314
|
+
"name": "icon-color",
|
1315
|
+
"description": "If defined, sets provided color on the icon",
|
1316
|
+
"values": [{ "name": "SeverityFgColor" }]
|
1317
|
+
},
|
1318
|
+
{
|
1319
|
+
"name": "selected",
|
1320
|
+
"description": "If true, sets the option as selected",
|
1321
|
+
"values": []
|
1322
|
+
},
|
1323
|
+
{
|
1324
|
+
"name": "short-label",
|
1325
|
+
"description": "If defined, sets a short label",
|
1326
|
+
"values": []
|
1327
|
+
},
|
1328
|
+
{
|
1329
|
+
"name": "value",
|
1330
|
+
"description": "Returns or sets the tags value. If value is omitted, defaults to the tags text.",
|
1331
|
+
"values": []
|
1332
|
+
}
|
1333
|
+
],
|
1334
|
+
"references": []
|
1335
|
+
},
|
1336
|
+
{
|
1337
|
+
"name": "skf-select-option-group",
|
1338
|
+
"description": "The `<skf-select-option-group>` is a component that groups select-options\n---\n\n\n### **Slots:**\n - _default_ - The component's placeholder content",
|
1339
|
+
"attributes": [{ "name": "label", "values": [] }],
|
1340
|
+
"references": []
|
1341
|
+
},
|
1145
1342
|
{
|
1146
1343
|
"name": "skf-switch",
|
1147
|
-
"description": "The `<skf-switch>` is a component that displays a list of actions or options\n---\n\n\n### **Slots:**\n - _default_ - The
|
1344
|
+
"description": "The `<skf-switch>` is a component that displays a list of actions or options\n---\n\n\n### **Slots:**\n - _default_ - The Switchs label. Alternatively, you can use the `label` attribute.",
|
1148
1345
|
"attributes": [
|
1149
1346
|
{
|
1150
1347
|
"name": "disabled",
|
@@ -1173,7 +1370,7 @@
|
|
1173
1370
|
},
|
1174
1371
|
{
|
1175
1372
|
"name": "label",
|
1176
|
-
"description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
|
1373
|
+
"description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
|
1177
1374
|
"values": []
|
1178
1375
|
},
|
1179
1376
|
{
|
@@ -1205,12 +1402,12 @@
|
|
1205
1402
|
"attributes": [
|
1206
1403
|
{
|
1207
1404
|
"name": "size",
|
1208
|
-
"description": "Specifies Tag size
|
1405
|
+
"description": "Specifies Tag size",
|
1209
1406
|
"values": [{ "name": "sm" }, { "name": "md" }, { "name": "lg" }]
|
1210
1407
|
},
|
1211
1408
|
{
|
1212
1409
|
"name": "icon",
|
1213
|
-
"description": "If defined, displays leading/provided icon
|
1410
|
+
"description": "If defined, displays leading/provided icon",
|
1214
1411
|
"values": [
|
1215
1412
|
{ "name": "arrowDown" },
|
1216
1413
|
{ "name": "arrowDownUp" },
|
@@ -1367,7 +1564,7 @@
|
|
1367
1564
|
},
|
1368
1565
|
{
|
1369
1566
|
"name": "color",
|
1370
|
-
"description": "If defined, gives the supplied appearance
|
1567
|
+
"description": "If defined, gives the supplied appearance",
|
1371
1568
|
"values": [
|
1372
1569
|
{ "name": "warning" },
|
1373
1570
|
{ "name": "success" },
|
@@ -1386,7 +1583,7 @@
|
|
1386
1583
|
},
|
1387
1584
|
{
|
1388
1585
|
"name": "skf-textarea",
|
1389
|
-
"description": "The skf-textarea is used to create a textarea. Use it inside a form element or wherever you like.\n---\n\n\n### **Events:**\n - **change** - Fires when the value of the input changes\n- **invalid** - Fires when the input is invalid\n\n### **Slots:**\n -
|
1586
|
+
"description": "The skf-textarea is used to create a textarea. Use it inside a form element or wherever you like.\n---\n\n\n### **Events:**\n - **change** - Fires when the value of the input changes\n- **invalid** - Fires when the input is invalid\n\n### **Slots:**\n - _default_ - The textareas label. Alternatively, you can use the `label` attribute.",
|
1390
1587
|
"attributes": [
|
1391
1588
|
{
|
1392
1589
|
"name": "disabled",
|
@@ -1400,52 +1597,52 @@
|
|
1400
1597
|
},
|
1401
1598
|
{
|
1402
1599
|
"name": "cols",
|
1403
|
-
"description": "If
|
1600
|
+
"description": "If defined, sets the cols of the textarea",
|
1404
1601
|
"values": []
|
1405
1602
|
},
|
1406
1603
|
{
|
1407
1604
|
"name": "custom-invalid",
|
1408
|
-
"description": "If
|
1605
|
+
"description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
|
1409
1606
|
"values": []
|
1410
1607
|
},
|
1411
1608
|
{
|
1412
1609
|
"name": "debug",
|
1413
|
-
"description": "If
|
1610
|
+
"description": "If true, outputs helping hints in console",
|
1414
1611
|
"values": []
|
1415
1612
|
},
|
1416
1613
|
{
|
1417
1614
|
"name": "hide-label",
|
1418
|
-
"description": "
|
1615
|
+
"description": "If true, hides the label visually",
|
1419
1616
|
"values": []
|
1420
1617
|
},
|
1421
1618
|
{
|
1422
1619
|
"name": "hint",
|
1423
|
-
"description": "If
|
1620
|
+
"description": "If defined, displays informational text below the field",
|
1424
1621
|
"values": []
|
1425
1622
|
},
|
1426
1623
|
{
|
1427
1624
|
"name": "label",
|
1428
|
-
"description": "
|
1625
|
+
"description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
|
1429
1626
|
"values": []
|
1430
1627
|
},
|
1431
1628
|
{
|
1432
1629
|
"name": "name",
|
1433
|
-
"description": "If
|
1630
|
+
"description": "If defined, adds name to the input-element",
|
1434
1631
|
"values": []
|
1435
1632
|
},
|
1436
1633
|
{
|
1437
1634
|
"name": "maxlength",
|
1438
|
-
"description": "If
|
1635
|
+
"description": "If defined, sets the maximum character length to accept for this input",
|
1439
1636
|
"values": []
|
1440
1637
|
},
|
1441
1638
|
{
|
1442
1639
|
"name": "minlength",
|
1443
|
-
"description": "If
|
1640
|
+
"description": "If defined, sets the minimum character length to accept for this input",
|
1444
1641
|
"values": []
|
1445
1642
|
},
|
1446
1643
|
{
|
1447
1644
|
"name": "placeholder",
|
1448
|
-
"description": "If
|
1645
|
+
"description": "If defined, displays placeholder text",
|
1449
1646
|
"values": []
|
1450
1647
|
},
|
1451
1648
|
{
|
@@ -1455,18 +1652,23 @@
|
|
1455
1652
|
},
|
1456
1653
|
{
|
1457
1654
|
"name": "required-label",
|
1458
|
-
"description": "If
|
1655
|
+
"description": "If defined, renders an alternative A11y text for the asterisk",
|
1459
1656
|
"values": []
|
1460
1657
|
},
|
1461
1658
|
{
|
1462
1659
|
"name": "rows",
|
1463
|
-
"description": "If
|
1660
|
+
"description": "If defined, sets the rows of the textarea",
|
1464
1661
|
"values": []
|
1465
1662
|
},
|
1466
1663
|
{
|
1467
1664
|
"name": "severity",
|
1468
|
-
"description": "If
|
1469
|
-
"values": [
|
1665
|
+
"description": "If defined, displays provided severity state",
|
1666
|
+
"values": [
|
1667
|
+
{ "name": "success" },
|
1668
|
+
{ "name": "info" },
|
1669
|
+
{ "name": "warning" },
|
1670
|
+
{ "name": "alert" }
|
1671
|
+
]
|
1470
1672
|
},
|
1471
1673
|
{
|
1472
1674
|
"name": "show-valid",
|
@@ -1475,12 +1677,12 @@
|
|
1475
1677
|
},
|
1476
1678
|
{
|
1477
1679
|
"name": "size",
|
1478
|
-
"description": "
|
1680
|
+
"description": "Size of the Textarea",
|
1479
1681
|
"values": [{ "name": "sm" }, { "name": "md" }]
|
1480
1682
|
},
|
1481
1683
|
{
|
1482
1684
|
"name": "validate-on",
|
1483
|
-
"description": "
|
1685
|
+
"description": "Sets validation start",
|
1484
1686
|
"values": [
|
1485
1687
|
{ "name": "input" },
|
1486
1688
|
{ "name": "change" },
|