@skf-design-system/ui-components 1.0.2-beta.5 → 1.0.2-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/README.md +18 -0
  2. package/dist/components/accordion/accordion.component.d.ts +1 -1
  3. package/dist/components/accordion/accordion.component.js +2 -2
  4. package/dist/components/alert/alert.component.d.ts +3 -2
  5. package/dist/components/alert/alert.component.js +39 -33
  6. package/dist/components/button/button.styles.js +3 -3
  7. package/dist/components/checkbox/checkbox.component.d.ts +4 -2
  8. package/dist/components/checkbox/checkbox.component.js +73 -65
  9. package/dist/components/checkbox/checkbox.styles.js +1 -1
  10. package/dist/components/datepicker/datepicker-calendar.component.d.ts +4 -0
  11. package/dist/components/datepicker/datepicker-calendar.component.js +134 -127
  12. package/dist/components/datepicker/datepicker-popup.component.d.ts +4 -0
  13. package/dist/components/datepicker/datepicker-popup.component.js +100 -88
  14. package/dist/components/datepicker/datepicker.component.d.ts +4 -2
  15. package/dist/components/datepicker/datepicker.component.js +151 -140
  16. package/dist/components/dialog/dialog.component.d.ts +3 -2
  17. package/dist/components/dialog/dialog.component.js +39 -37
  18. package/dist/components/divider/divider.component.d.ts +3 -0
  19. package/dist/components/divider/divider.component.js +43 -22
  20. package/dist/components/divider/divider.styles.js +9 -9
  21. package/dist/components/drawer/drawer.component.d.ts +11 -4
  22. package/dist/components/drawer/drawer.component.js +77 -55
  23. package/dist/components/drawer/drawer.styles.js +47 -40
  24. package/dist/components/header/header.component.d.ts +4 -2
  25. package/dist/components/header/header.component.js +66 -57
  26. package/dist/components/header/header.styles.js +2 -2
  27. package/dist/components/icon/icon.component.js +7 -7
  28. package/dist/components/icon/icon.styles.js +2 -2
  29. package/dist/components/input/input.component.d.ts +4 -8
  30. package/dist/components/input/input.component.js +147 -147
  31. package/dist/components/input/input.controllers.d.ts +0 -1
  32. package/dist/components/input/input.controllers.js +12 -12
  33. package/dist/components/link/link.component.d.ts +15 -18
  34. package/dist/components/link/link.component.js +105 -107
  35. package/dist/components/link/link.styles.js +53 -45
  36. package/dist/components/loader/loader.component.d.ts +5 -3
  37. package/dist/components/loader/loader.component.js +39 -28
  38. package/dist/components/loader/loader.styles.js +6 -10
  39. package/dist/components/menu/menu-item.component.d.ts +1 -1
  40. package/dist/components/menu/menu-item.component.js +8 -8
  41. package/dist/components/menu/menu-item.styles.js +13 -9
  42. package/dist/components/menu/menu.component.d.ts +5 -2
  43. package/dist/components/menu/menu.component.js +8 -8
  44. package/dist/components/nav/nav-item.component.d.ts +4 -0
  45. package/dist/components/nav/nav-item.component.js +44 -25
  46. package/dist/components/nav/nav-item.styles.js +29 -25
  47. package/dist/components/nav/nav.component.d.ts +9 -0
  48. package/dist/components/nav/nav.component.js +47 -21
  49. package/dist/components/nav/nav.styles.js +15 -9
  50. package/dist/components/popover/popover.component.d.ts +10 -3
  51. package/dist/components/popover/popover.component.js +30 -22
  52. package/dist/components/progress/progress.component.d.ts +2 -0
  53. package/dist/components/progress/progress.component.js +38 -29
  54. package/dist/components/progress/progress.styles.js +4 -4
  55. package/dist/components/radio/radio.component.d.ts +4 -2
  56. package/dist/components/radio/radio.component.js +91 -83
  57. package/dist/components/radio/radio.styles.js +1 -1
  58. package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
  59. package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
  60. package/dist/components/select/select-option-group.component.d.ts +4 -0
  61. package/dist/components/select/select-option-group.component.js +37 -18
  62. package/dist/components/select/select-option-group.style.js +12 -6
  63. package/dist/components/select/select-option.component.d.ts +7 -2
  64. package/dist/components/select/select-option.component.js +70 -53
  65. package/dist/components/select/select-option.styles.js +43 -31
  66. package/dist/components/select/select.component.d.ts +18 -10
  67. package/dist/components/select/select.component.js +175 -132
  68. package/dist/components/select/select.controllers.js +2 -1
  69. package/dist/components/select/select.styles.js +8 -2
  70. package/dist/components/stepper/stepper-item.component.d.ts +1 -1
  71. package/dist/components/stepper/stepper-item.component.js +26 -23
  72. package/dist/components/stepper/stepper-item.styles.js +4 -4
  73. package/dist/components/switch/switch.component.d.ts +4 -2
  74. package/dist/components/switch/switch.component.js +64 -56
  75. package/dist/components/switch/switch.styles.js +1 -1
  76. package/dist/components/tabs/tab-panel.component.d.ts +1 -1
  77. package/dist/components/tabs/tab-panel.component.js +19 -16
  78. package/dist/components/tabs/tab.component.d.ts +1 -1
  79. package/dist/components/tabs/tab.component.js +17 -14
  80. package/dist/components/tabs/tab.styles.js +2 -2
  81. package/dist/components/tag/tag.component.d.ts +3 -0
  82. package/dist/components/tag/tag.component.js +50 -41
  83. package/dist/components/textarea/textarea.component.d.ts +4 -2
  84. package/dist/components/textarea/textarea.component.js +127 -118
  85. package/dist/components/toast/toast-item.styles.js +13 -10
  86. package/dist/components/toast/toast.component.js +9 -9
  87. package/dist/components/toast/toast.singleton.d.ts +1 -1
  88. package/dist/components/toast/toast.singleton.js +18 -18
  89. package/dist/components/tooltip/tooltip.component.d.ts +9 -2
  90. package/dist/components/tooltip/tooltip.component.js +13 -7
  91. package/dist/custom-elements.json +1305 -946
  92. package/dist/index.d.ts +2 -2
  93. package/dist/index.js +20 -20
  94. package/dist/internal/base-classes/popover/popover.base.d.ts +24 -5
  95. package/dist/internal/base-classes/popover/popover.base.js +28 -29
  96. package/dist/internal/base-classes/popover/popover.styles.js +4 -5
  97. package/dist/internal/components/hint/hint.component.d.ts +4 -0
  98. package/dist/internal/components/hint/hint.component.js +47 -20
  99. package/dist/internal/components/hint/hint.styles.js +29 -25
  100. package/dist/internal/controllers/popover.controller.d.ts +2 -0
  101. package/dist/internal/helpers/uuid.d.ts +8 -10
  102. package/dist/internal/helpers/uuid.js +4 -11
  103. package/dist/internal/helpers/watch.d.ts +1 -1
  104. package/dist/internal/templates/asterisk.d.ts +1 -1
  105. package/dist/internal/templates/asterisk.js +4 -4
  106. package/dist/internal/types.d.ts +4 -0
  107. package/dist/styles/global-alt.css +1 -1
  108. package/dist/styles/global.css +1 -1
  109. package/dist/translations/en.d.ts +3 -0
  110. package/dist/translations/en.js +27 -0
  111. package/dist/translations/es.d.ts +3 -0
  112. package/dist/translations/es.js +27 -0
  113. package/dist/translations/index.d.ts +4 -0
  114. package/dist/translations/pt.d.ts +3 -0
  115. package/dist/translations/pt.js +27 -0
  116. package/dist/translations/sv.d.ts +3 -0
  117. package/dist/translations/sv.js +27 -0
  118. package/dist/types/jsx/custom-element-jsx.d.ts +243 -128
  119. package/dist/types/vue/index.d.ts +136 -127
  120. package/dist/utilities/localize.d.ts +28 -0
  121. package/dist/utilities/localize.js +13 -0
  122. package/dist/vscode.html-custom-data.json +168 -177
  123. package/dist/web-types.json +411 -381
  124. package/package.json +34 -41
@@ -235,16 +235,16 @@
235
235
  "description": "The `<skf-alert>` is a type of notification that appears in-line\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles\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",
236
236
  "doc-url": "",
237
237
  "attributes": [
238
- {
239
- "name": "button-label",
240
- "description": "Close button aria-label",
241
- "value": { "type": "string", "default": "'Close'" }
242
- },
243
238
  {
244
239
  "name": "icon",
245
240
  "description": "If defined, displays leading icon",
246
241
  "value": { "type": "Icon | undefined" }
247
242
  },
243
+ {
244
+ "name": "lang",
245
+ "description": "Sets the internal language of the component",
246
+ "value": { "type": "Language", "default": "'en'" }
247
+ },
248
248
  {
249
249
  "name": "persistent",
250
250
  "description": "If true, renders with an close button and sets aria-role to `status`",
@@ -272,16 +272,16 @@
272
272
  ],
273
273
  "js": {
274
274
  "properties": [
275
- {
276
- "name": "buttonLabel",
277
- "description": "Close button aria-label",
278
- "type": "string"
279
- },
280
275
  {
281
276
  "name": "icon",
282
277
  "description": "If defined, displays leading icon",
283
278
  "type": "Icon | undefined"
284
279
  },
280
+ {
281
+ "name": "lang",
282
+ "description": "Sets the internal language of the component",
283
+ "type": "Language"
284
+ },
285
285
  {
286
286
  "name": "persistent",
287
287
  "description": "If true, renders with an close button and sets aria-role to `status`",
@@ -380,11 +380,6 @@
380
380
  "description": "The `<skf-loader>` component is a progress indicator that uses circular indicators for short, indeterminate activities\n---\n",
381
381
  "doc-url": "",
382
382
  "attributes": [
383
- {
384
- "name": "aria-label",
385
- "description": "Defines the aria-label",
386
- "value": { "type": "string", "default": "'Loading...'" }
387
- },
388
383
  {
389
384
  "name": "invert",
390
385
  "description": "If true, inverts the color (to be used on colored backgrounds)",
@@ -393,17 +388,12 @@
393
388
  {
394
389
  "name": "size",
395
390
  "description": "Defines the size of the loader",
396
- "value": { "type": "'md' | 'sm' | undefined", "default": "'md'" }
391
+ "value": { "type": "Size", "default": "'md'" }
397
392
  }
398
393
  ],
399
394
  "events": [],
400
395
  "js": {
401
396
  "properties": [
402
- {
403
- "name": "ariaLabel",
404
- "description": "Defines the aria-label",
405
- "type": "string"
406
- },
407
397
  {
408
398
  "name": "invert",
409
399
  "description": "If true, inverts the color (to be used on colored backgrounds)",
@@ -412,7 +402,7 @@
412
402
  {
413
403
  "name": "size",
414
404
  "description": "Defines the size of the loader",
415
- "type": "'md' | 'sm' | undefined"
405
+ "type": "Size"
416
406
  }
417
407
  ],
418
408
  "events": []
@@ -630,13 +620,13 @@
630
620
  "value": { "type": "string | undefined" }
631
621
  },
632
622
  {
633
- "name": "name",
634
- "description": "If defined, adds name to the input-element",
635
- "value": { "type": "string | undefined" }
623
+ "name": "lang",
624
+ "description": "Sets the internal language of the component",
625
+ "value": { "type": "Language", "default": "'en'" }
636
626
  },
637
627
  {
638
- "name": "required-label",
639
- "description": "If defined, renders an alternative A11y text for the asterisk",
628
+ "name": "name",
629
+ "description": "If defined, adds name to the input-element",
640
630
  "value": { "type": "string | undefined" }
641
631
  },
642
632
  {
@@ -700,13 +690,13 @@
700
690
  "type": "string | undefined"
701
691
  },
702
692
  {
703
- "name": "name",
704
- "description": "If defined, adds name to the input-element",
705
- "type": "string | undefined"
693
+ "name": "lang",
694
+ "description": "Sets the internal language of the component",
695
+ "type": "Language"
706
696
  },
707
697
  {
708
- "name": "requiredLabel",
709
- "description": "If defined, renders an alternative A11y text for the asterisk",
698
+ "name": "name",
699
+ "description": "If defined, adds name to the input-element",
710
700
  "type": "string | undefined"
711
701
  },
712
702
  {
@@ -754,6 +744,11 @@
754
744
  "description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
755
745
  "value": { "type": "string | undefined" }
756
746
  },
747
+ {
748
+ "name": "lang",
749
+ "description": "Sets the internal language of the component",
750
+ "value": { "type": "Language", "default": "'en'" }
751
+ },
757
752
  {
758
753
  "name": "locale",
759
754
  "value": { "type": "string", "default": "'en-CA'" }
@@ -794,6 +789,11 @@
794
789
  "description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
795
790
  "type": "string | undefined"
796
791
  },
792
+ {
793
+ "name": "lang",
794
+ "description": "Sets the internal language of the component",
795
+ "type": "Language"
796
+ },
797
797
  { "name": "locale", "type": "string" },
798
798
  { "name": "range", "type": "boolean" },
799
799
  {
@@ -837,6 +837,11 @@
837
837
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
838
838
  "value": { "type": "string | undefined" }
839
839
  },
840
+ {
841
+ "name": "lang",
842
+ "description": "Sets the internal language of the component",
843
+ "value": { "type": "Language", "default": "'en'" }
844
+ },
840
845
  {
841
846
  "name": "hide-label",
842
847
  "description": "If true, hides the label visually",
@@ -870,11 +875,6 @@
870
875
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
871
876
  "value": { "type": "boolean | undefined" }
872
877
  },
873
- {
874
- "name": "required-label",
875
- "description": "If defined, renders an alternative A11y text for the asterisk",
876
- "value": { "type": "string | undefined" }
877
- },
878
878
  {
879
879
  "name": "selectable-from",
880
880
  "description": "Earliest selectable date. (yyyy-mm-dd format)",
@@ -928,6 +928,11 @@
928
928
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
929
929
  "type": "string | undefined"
930
930
  },
931
+ {
932
+ "name": "lang",
933
+ "description": "Sets the internal language of the component",
934
+ "type": "Language"
935
+ },
931
936
  {
932
937
  "name": "hideLabel",
933
938
  "description": "If true, hides the label visually",
@@ -955,11 +960,6 @@
955
960
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
956
961
  "type": "boolean | undefined"
957
962
  },
958
- {
959
- "name": "requiredLabel",
960
- "description": "If defined, renders an alternative A11y text for the asterisk",
961
- "type": "string | undefined"
962
- },
963
963
  {
964
964
  "name": "selectableFrom",
965
965
  "description": "Earliest selectable date. (yyyy-mm-dd format)",
@@ -1033,11 +1033,6 @@
1033
1033
  "description": "The `<skf-dialog>` is a component that open up a dialog of type modal with the content provided. (MDN refrains from opening the dialog using the `open` attribute, however skf-dialog does not have that limitation)\n---\n\n\n### **Events:**\n - **skf-dialog-opened** - Fires when the dialog is opened (after transitioned in)\n- **skf-dialog-closing** - Fires when the dialog is closing (before transitioned out)\n- **skf-dialog-closed** - Fires when the dialog is closed (after transitioned out)\n\n### **Methods:**\n - **showModal()** - Method that opens the dialog in modal state\n- **close()** - Method that closes the dialog\n\n### **Slots:**\n - _default_ - The dialog component's content\n- **footer** - The dialog component's buttons goes here\n\n### **CSS Properties:**\n - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_\n- **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_",
1034
1034
  "doc-url": "",
1035
1035
  "attributes": [
1036
- {
1037
- "name": "close-button-aria-label",
1038
- "description": "If defined, sets the aria-label for the close button",
1039
- "value": { "type": "string | undefined" }
1040
- },
1041
1036
  {
1042
1037
  "name": "heading",
1043
1038
  "description": "Title for the modal/dialog",
@@ -1048,6 +1043,11 @@
1048
1043
  "description": "If true, makes the dialog stretch edge to edge on screen",
1049
1044
  "value": { "type": "boolean", "default": "false" }
1050
1045
  },
1046
+ {
1047
+ "name": "lang",
1048
+ "description": "Sets the internal language of the component",
1049
+ "value": { "type": "Language", "default": "'en'" }
1050
+ },
1051
1051
  {
1052
1052
  "name": "no-close-button",
1053
1053
  "description": "If true, removes the close button",
@@ -1090,11 +1090,6 @@
1090
1090
  ],
1091
1091
  "js": {
1092
1092
  "properties": [
1093
- {
1094
- "name": "closeButtonAriaLabel",
1095
- "description": "If defined, sets the aria-label for the close button",
1096
- "type": "string | undefined"
1097
- },
1098
1093
  {
1099
1094
  "name": "heading",
1100
1095
  "description": "Title for the modal/dialog",
@@ -1105,6 +1100,11 @@
1105
1100
  "description": "If true, makes the dialog stretch edge to edge on screen",
1106
1101
  "type": "boolean"
1107
1102
  },
1103
+ {
1104
+ "name": "lang",
1105
+ "description": "Sets the internal language of the component",
1106
+ "type": "Language"
1107
+ },
1108
1108
  {
1109
1109
  "name": "noCloseButton",
1110
1110
  "description": "If true, removes the close button",
@@ -1188,20 +1188,20 @@
1188
1188
  "description": "The `<skf-drawer>` is a modal component that displays content and toggle by sliding from left/right viewport edge\n---\n\n\n### **Events:**\n - **skf-drawer-opened** - Fires when the drawer is opened (after transitioned in)\n- **skf-drawer-closing** - Fires when the drawer is closing (before transitioned out)\n- **skf-drawer-closed** - Fires when the drawer is closed (after transitioned out)\n\n### **Slots:**\n - _default_ - The Drawer's main content",
1189
1189
  "doc-url": "",
1190
1190
  "attributes": [
1191
- {
1192
- "name": "close-button-aria-label",
1193
- "description": "If defined, sets the aria-label for the close button",
1194
- "value": { "type": "string", "default": "'Close dialog'" }
1195
- },
1196
1191
  {
1197
1192
  "name": "heading",
1198
1193
  "description": "Heading for the Drawer",
1199
1194
  "value": { "type": "string | undefined" }
1200
1195
  },
1196
+ {
1197
+ "name": "lang",
1198
+ "description": "Sets the internal language of the component",
1199
+ "value": { "type": "Language", "default": "'en'" }
1200
+ },
1201
1201
  {
1202
1202
  "name": "size",
1203
1203
  "description": "Sets the max-width",
1204
- "value": { "type": "'sm' | 'md' | 'lg'", "default": "'md'" }
1204
+ "value": { "type": "Size", "default": "'md'" }
1205
1205
  },
1206
1206
  {
1207
1207
  "name": "open",
@@ -1211,7 +1211,7 @@
1211
1211
  {
1212
1212
  "name": "placement",
1213
1213
  "description": "Placement of the Drawer",
1214
- "value": { "type": "'left' | 'right'", "default": "'right'" }
1214
+ "value": { "type": "Placement", "default": "'right'" }
1215
1215
  }
1216
1216
  ],
1217
1217
  "slots": [{ "name": "", "description": "The Drawer's main content" }],
@@ -1234,20 +1234,20 @@
1234
1234
  ],
1235
1235
  "js": {
1236
1236
  "properties": [
1237
- {
1238
- "name": "closeButtonAriaLabel",
1239
- "description": "If defined, sets the aria-label for the close button",
1240
- "type": "string"
1241
- },
1242
1237
  {
1243
1238
  "name": "heading",
1244
1239
  "description": "Heading for the Drawer",
1245
1240
  "type": "string | undefined"
1246
1241
  },
1242
+ {
1243
+ "name": "lang",
1244
+ "description": "Sets the internal language of the component",
1245
+ "type": "Language"
1246
+ },
1247
1247
  {
1248
1248
  "name": "size",
1249
1249
  "description": "Sets the max-width",
1250
- "type": "'sm' | 'md' | 'lg'"
1250
+ "type": "Size"
1251
1251
  },
1252
1252
  {
1253
1253
  "name": "open",
@@ -1257,7 +1257,7 @@
1257
1257
  {
1258
1258
  "name": "placement",
1259
1259
  "description": "Placement of the Drawer",
1260
- "type": "'left' | 'right'"
1260
+ "type": "Placement"
1261
1261
  }
1262
1262
  ],
1263
1263
  "events": [
@@ -1312,13 +1312,178 @@
1312
1312
  "events": []
1313
1313
  }
1314
1314
  },
1315
+ {
1316
+ "name": "skf-link",
1317
+ "description": "The `<skf-link>` can be used as either a regular link or a semantic button. The button variant is\nintended to be used for triggering javascript functions, not handling forms.\n---\n\n\n### **Events:**\n - **skf-link-click** - Fired when the link is clicked\n\n### **Slots:**\n - _default_ - The links' main content",
1318
+ "doc-url": "",
1319
+ "attributes": [
1320
+ {
1321
+ "name": "as",
1322
+ "description": "Defines the semantic element to render",
1323
+ "value": { "type": "'button' | 'link'", "default": "'link'" }
1324
+ },
1325
+ {
1326
+ "name": "color",
1327
+ "description": "Defines the text-color",
1328
+ "value": { "type": "Color", "default": "'primary'" }
1329
+ },
1330
+ {
1331
+ "name": "disabled",
1332
+ "description": "If true, disables the link",
1333
+ "value": { "type": "boolean", "default": "false" }
1334
+ },
1335
+ {
1336
+ "name": "download",
1337
+ "description": "If defined, downloads the url",
1338
+ "value": { "type": "boolean", "default": "false" }
1339
+ },
1340
+ {
1341
+ "name": "href",
1342
+ "description": "If defined, loads url on click",
1343
+ "value": { "type": "string | undefined" }
1344
+ },
1345
+ {
1346
+ "name": "icon",
1347
+ "description": "If defined, renders an icon before or after the text",
1348
+ "value": { "type": "Icon | undefined" }
1349
+ },
1350
+ {
1351
+ "name": "icon-right",
1352
+ "description": "If true, the icon is placed to the right in relation to the text",
1353
+ "value": { "type": "boolean", "default": "false" }
1354
+ },
1355
+ {
1356
+ "name": "rel",
1357
+ "description": "If defined, describes the relationship between a linked resource and the current document",
1358
+ "value": { "type": "string | undefined" }
1359
+ },
1360
+ {
1361
+ "name": "route",
1362
+ "description": "If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button.",
1363
+ "value": { "type": "string | undefined" }
1364
+ },
1365
+ {
1366
+ "name": "stretch",
1367
+ "description": "If true, fills the parents horizontal axis",
1368
+ "value": { "type": "boolean", "default": "false" }
1369
+ },
1370
+ {
1371
+ "name": "target",
1372
+ "description": "If defined, specifies where to open the linked document",
1373
+ "value": {
1374
+ "type": "'_blank' | '_parent' | '_self' | '_top' | undefined"
1375
+ }
1376
+ }
1377
+ ],
1378
+ "slots": [{ "name": "", "description": "The links' main content" }],
1379
+ "events": [
1380
+ {
1381
+ "name": "skf-link-click",
1382
+ "type": "CustomEvent",
1383
+ "description": "Fired when the link is clicked"
1384
+ }
1385
+ ],
1386
+ "js": {
1387
+ "properties": [
1388
+ {
1389
+ "name": "as",
1390
+ "description": "Defines the semantic element to render",
1391
+ "type": "'button' | 'link'"
1392
+ },
1393
+ {
1394
+ "name": "color",
1395
+ "description": "Defines the text-color",
1396
+ "type": "Color"
1397
+ },
1398
+ {
1399
+ "name": "disabled",
1400
+ "description": "If true, disables the link",
1401
+ "type": "boolean"
1402
+ },
1403
+ {
1404
+ "name": "download",
1405
+ "description": "If defined, downloads the url",
1406
+ "type": "boolean"
1407
+ },
1408
+ {
1409
+ "name": "href",
1410
+ "description": "If defined, loads url on click",
1411
+ "type": "string | undefined"
1412
+ },
1413
+ {
1414
+ "name": "icon",
1415
+ "description": "If defined, renders an icon before or after the text",
1416
+ "type": "Icon | undefined"
1417
+ },
1418
+ {
1419
+ "name": "iconRight",
1420
+ "description": "If true, the icon is placed to the right in relation to the text",
1421
+ "type": "boolean"
1422
+ },
1423
+ {
1424
+ "name": "rel",
1425
+ "description": "If defined, describes the relationship between a linked resource and the current document",
1426
+ "type": "string | undefined"
1427
+ },
1428
+ {
1429
+ "name": "route",
1430
+ "description": "If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button.",
1431
+ "type": "string | undefined"
1432
+ },
1433
+ {
1434
+ "name": "stretch",
1435
+ "description": "If true, fills the parents horizontal axis",
1436
+ "type": "boolean"
1437
+ },
1438
+ {
1439
+ "name": "target",
1440
+ "description": "If defined, specifies where to open the linked document",
1441
+ "type": "'_blank' | '_parent' | '_self' | '_top' | undefined"
1442
+ }
1443
+ ],
1444
+ "events": [
1445
+ {
1446
+ "name": "skf-link-click",
1447
+ "type": "CustomEvent",
1448
+ "description": "Fired when the link is clicked"
1449
+ }
1450
+ ]
1451
+ }
1452
+ },
1453
+ {
1454
+ "name": "skf-nav-item",
1455
+ "description": "The `<skf-nav>` is a component that displays a list of <nav-items>.\n---\n\n\n### **Slots:**\n - _default_ - The component's main content",
1456
+ "doc-url": "",
1457
+ "attributes": [
1458
+ { "name": "href", "value": { "type": "string", "default": "''" } },
1459
+ { "name": "icon", "value": { "type": "Icon | undefined" } }
1460
+ ],
1461
+ "slots": [
1462
+ { "name": "", "description": "The component's main content" }
1463
+ ],
1464
+ "events": [],
1465
+ "js": {
1466
+ "properties": [
1467
+ { "name": "href", "type": "string" },
1468
+ { "name": "icon", "type": "Icon | undefined" },
1469
+ { "name": "vertical", "type": "boolean" }
1470
+ ],
1471
+ "events": []
1472
+ }
1473
+ },
1315
1474
  {
1316
1475
  "name": "skf-nav",
1317
1476
  "description": "The `<skf-nav>` is a component that displays a list of <nav-items>.\n---\n\n\n### **Slots:**\n - _default_ - The component's main content",
1318
1477
  "doc-url": "",
1319
1478
  "attributes": [
1479
+ {
1480
+ "name": "lang",
1481
+ "description": "Sets the internal language of the component",
1482
+ "value": { "type": "Language", "default": "'en'" }
1483
+ },
1320
1484
  {
1321
1485
  "name": "vertical",
1486
+ "description": "If true, the navigation will be displayed vertically",
1322
1487
  "value": { "type": "boolean", "default": "false" }
1323
1488
  }
1324
1489
  ],
@@ -1327,7 +1492,18 @@
1327
1492
  ],
1328
1493
  "events": [],
1329
1494
  "js": {
1330
- "properties": [{ "name": "vertical", "type": "boolean" }],
1495
+ "properties": [
1496
+ {
1497
+ "name": "lang",
1498
+ "description": "Sets the internal language of the component",
1499
+ "type": "Language"
1500
+ },
1501
+ {
1502
+ "name": "vertical",
1503
+ "description": "If true, the navigation will be displayed vertically",
1504
+ "type": "boolean"
1505
+ }
1506
+ ],
1331
1507
  "events": []
1332
1508
  }
1333
1509
  },
@@ -1342,9 +1518,9 @@
1342
1518
  "value": { "type": "string" }
1343
1519
  },
1344
1520
  {
1345
- "name": "hamburger-aria-label",
1346
- "description": "If defined, sets the aria-label for the hamburger button",
1347
- "value": { "type": "string", "default": "'Show navigation'" }
1521
+ "name": "lang",
1522
+ "description": "Sets the internal language of the component",
1523
+ "value": { "type": "Language", "default": "'en'" }
1348
1524
  },
1349
1525
  {
1350
1526
  "name": "site-name",
@@ -1366,9 +1542,9 @@
1366
1542
  "description": "If true, sets header to display in compact mode only (hanburger menu and drawer)"
1367
1543
  },
1368
1544
  {
1369
- "name": "hamburgerAriaLabel",
1370
- "description": "If defined, sets the aria-label for the hamburger button",
1371
- "type": "string"
1545
+ "name": "lang",
1546
+ "description": "Sets the internal language of the component",
1547
+ "type": "Language"
1372
1548
  },
1373
1549
  {
1374
1550
  "name": "siteName",
@@ -1406,21 +1582,6 @@
1406
1582
  "type": "HTMLInputElement['autocomplete'] | undefined"
1407
1583
  }
1408
1584
  },
1409
- {
1410
- "name": "button-aria-label-clear",
1411
- "description": "Custom aria-label for the clear button. **Notice!** Only applicable to type=search.",
1412
- "value": { "type": "string", "default": "'Clear input'" }
1413
- },
1414
- {
1415
- "name": "button-aria-label-hide",
1416
- "description": "Custom aria-label for the visibility button. **Notice!** Only applicable to type=password.",
1417
- "value": { "type": "string", "default": "'Hide password'" }
1418
- },
1419
- {
1420
- "name": "button-aria-label-show",
1421
- "description": "Custom aria-label for the visibility button **Notice!** Only applicable to type=password.",
1422
- "value": { "type": "string", "default": "'Show password'" }
1423
- },
1424
1585
  {
1425
1586
  "name": "custom-invalid",
1426
1587
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
@@ -1454,6 +1615,11 @@
1454
1615
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
1455
1616
  "value": { "type": "string | undefined" }
1456
1617
  },
1618
+ {
1619
+ "name": "lang",
1620
+ "description": "Sets the internal language of the component",
1621
+ "value": { "type": "Language", "default": "'en'" }
1622
+ },
1457
1623
  {
1458
1624
  "name": "leading",
1459
1625
  "description": "If defined, displays a prefix/adornment before the input-element",
@@ -1499,11 +1665,6 @@
1499
1665
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
1500
1666
  "value": { "type": "boolean", "default": "false" }
1501
1667
  },
1502
- {
1503
- "name": "required-label",
1504
- "description": "If defined, renders an alternative A11y text for the asterisk",
1505
- "value": { "type": "string | undefined" }
1506
- },
1507
1668
  {
1508
1669
  "name": "severity",
1509
1670
  "description": "If defined, displays provided severity state",
@@ -1571,21 +1732,6 @@
1571
1732
  "description": "Indicates whether the value of the control can be automatically completed by the browser. See\n[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details.",
1572
1733
  "type": "HTMLInputElement['autocomplete'] | undefined"
1573
1734
  },
1574
- {
1575
- "name": "buttonAriaLabelClear",
1576
- "description": "Custom aria-label for the clear button. **Notice!** Only applicable to type=search.",
1577
- "type": "string"
1578
- },
1579
- {
1580
- "name": "buttonAriaLabelHide",
1581
- "description": "Custom aria-label for the visibility button. **Notice!** Only applicable to type=password.",
1582
- "type": "string"
1583
- },
1584
- {
1585
- "name": "buttonAriaLabelShow",
1586
- "description": "Custom aria-label for the visibility button **Notice!** Only applicable to type=password.",
1587
- "type": "string"
1588
- },
1589
1735
  {
1590
1736
  "name": "customInvalid",
1591
1737
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text."
@@ -1615,6 +1761,11 @@
1615
1761
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
1616
1762
  "type": "string | undefined"
1617
1763
  },
1764
+ {
1765
+ "name": "lang",
1766
+ "description": "Sets the internal language of the component",
1767
+ "type": "Language"
1768
+ },
1618
1769
  {
1619
1770
  "name": "leading",
1620
1771
  "description": "If defined, displays a prefix/adornment before the input-element",
@@ -1660,11 +1811,6 @@
1660
1811
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
1661
1812
  "type": "boolean"
1662
1813
  },
1663
- {
1664
- "name": "requiredLabel",
1665
- "description": "If defined, renders an alternative A11y text for the asterisk",
1666
- "type": "string | undefined"
1667
- },
1668
1814
  {
1669
1815
  "name": "severity",
1670
1816
  "description": "If defined, displays provided severity state",
@@ -1714,166 +1860,20 @@
1714
1860
  ]
1715
1861
  }
1716
1862
  },
1717
- {
1718
- "name": "skf-link",
1719
- "description": "The `<skf-link>` can be used as either a regular link or a link styled semantic button\n---\n\n\n### **Slots:**\n - _default_ - The links' main content",
1720
- "doc-url": "",
1721
- "attributes": [
1722
- {
1723
- "name": "as",
1724
- "description": "Defines the semantic element to render",
1725
- "value": { "type": "'button' | 'a'", "default": "'a'" }
1726
- },
1727
- {
1728
- "name": "color",
1729
- "description": "Defines the text-color",
1730
- "value": {
1731
- "type": "'primary' | 'inverse'",
1732
- "default": "'primary'"
1733
- }
1734
- },
1735
- {
1736
- "name": "disabled",
1737
- "description": "If true, disables the link",
1738
- "value": { "type": "boolean", "default": "false" }
1739
- },
1740
- {
1741
- "name": "download",
1742
- "description": "If defined, downloads the url",
1743
- "value": { "type": "string | undefined" }
1744
- },
1745
- {
1746
- "name": "href",
1747
- "description": "If defined, loads url on click",
1748
- "value": { "type": "string | undefined" }
1749
- },
1750
- {
1751
- "name": "icon",
1752
- "description": "If defined, renders an icon before or after the text",
1753
- "value": { "type": "Icon | undefined" }
1754
- },
1755
- {
1756
- "name": "icon-placement",
1757
- "description": "Defines the position of the icon in relation to the text",
1758
- "value": { "type": "'left' | 'right'", "default": "'left'" }
1759
- },
1760
- {
1761
- "name": "rel",
1762
- "description": "If defined, describes the relationship between a linked resource and the current document",
1763
- "value": { "type": "string | undefined" }
1764
- },
1765
- {
1766
- "name": "route",
1767
- "description": "If defined, used on conjunction with onClick property, second argument",
1768
- "value": { "type": "string | undefined" }
1769
- },
1770
- {
1771
- "name": "stretch",
1772
- "description": "If true, fills the parents horizontal axis",
1773
- "value": { "type": "boolean", "default": "false" }
1774
- },
1775
- {
1776
- "name": "target",
1777
- "description": "If defined, specifies where to open the linked document",
1778
- "value": {
1779
- "type": "'_blank' | '_parent' | '_self' | '_top' | undefined"
1780
- }
1781
- },
1782
- {
1783
- "name": "type",
1784
- "description": "Defines the type of button",
1785
- "value": { "type": "SkfLinkType", "default": "'button'" }
1786
- }
1787
- ],
1788
- "slots": [{ "name": "", "description": "The links' main content" }],
1789
- "events": [],
1790
- "js": {
1791
- "properties": [
1792
- {
1793
- "name": "as",
1794
- "description": "Defines the semantic element to render",
1795
- "type": "'button' | 'a'"
1796
- },
1797
- {
1798
- "name": "color",
1799
- "description": "Defines the text-color",
1800
- "type": "'primary' | 'inverse'"
1801
- },
1802
- {
1803
- "name": "disabled",
1804
- "description": "If true, disables the link",
1805
- "type": "boolean"
1806
- },
1807
- {
1808
- "name": "download",
1809
- "description": "If defined, downloads the url",
1810
- "type": "string | undefined"
1811
- },
1812
- {
1813
- "name": "href",
1814
- "description": "If defined, loads url on click",
1815
- "type": "string | undefined"
1816
- },
1817
- {
1818
- "name": "icon",
1819
- "description": "If defined, renders an icon before or after the text",
1820
- "type": "Icon | undefined"
1821
- },
1822
- {
1823
- "name": "iconPlacement",
1824
- "description": "Defines the position of the icon in relation to the text",
1825
- "type": "'left' | 'right'"
1826
- },
1827
- {
1828
- "name": "onClick",
1829
- "description": "If defined, accepts a function that runs on click. Forwards optional route as second argument."
1830
- },
1831
- {
1832
- "name": "rel",
1833
- "description": "If defined, describes the relationship between a linked resource and the current document",
1834
- "type": "string | undefined"
1835
- },
1836
- {
1837
- "name": "route",
1838
- "description": "If defined, used on conjunction with onClick property, second argument",
1839
- "type": "string | undefined"
1840
- },
1841
- {
1842
- "name": "stretch",
1843
- "description": "If true, fills the parents horizontal axis",
1844
- "type": "boolean"
1845
- },
1846
- {
1847
- "name": "target",
1848
- "description": "If defined, specifies where to open the linked document",
1849
- "type": "'_blank' | '_parent' | '_self' | '_top' | undefined"
1850
- },
1851
- {
1852
- "name": "type",
1853
- "description": "Defines the type of button",
1854
- "type": "SkfLinkType"
1855
- }
1856
- ],
1857
- "events": []
1858
- }
1859
- },
1860
1863
  {
1861
1864
  "name": "skf-menu-item",
1862
- "description": "The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component\n---\n\n\n### **Slots:**\n - _default_ - The component's main content",
1865
+ "description": "The `<skf-menu-item>` is used in conjunction with the `<skf-menu>` component\n---\n\n\n### **Events:**\n - **skf-link-click** - Fired when the link is clicked\n\n### **Slots:**\n - _default_ - The component's main content",
1863
1866
  "doc-url": "",
1864
1867
  "attributes": [
1865
1868
  {
1866
1869
  "name": "as",
1867
1870
  "description": "Defines the semantic element to render",
1868
- "value": { "type": "'button' | 'a'", "default": "'a'" }
1871
+ "value": { "type": "'button' | 'link'", "default": "'link'" }
1869
1872
  },
1870
1873
  {
1871
1874
  "name": "color",
1872
1875
  "description": "Defines the text-color",
1873
- "value": {
1874
- "type": "'primary' | 'inverse'",
1875
- "default": "'primary'"
1876
- }
1876
+ "value": { "type": "Color", "default": "'primary'" }
1877
1877
  },
1878
1878
  {
1879
1879
  "name": "disabled",
@@ -1883,7 +1883,7 @@
1883
1883
  {
1884
1884
  "name": "download",
1885
1885
  "description": "If defined, downloads the url",
1886
- "value": { "type": "string | undefined" }
1886
+ "value": { "type": "boolean", "default": "false" }
1887
1887
  },
1888
1888
  {
1889
1889
  "name": "href",
@@ -1896,9 +1896,9 @@
1896
1896
  "value": { "type": "Icon | undefined" }
1897
1897
  },
1898
1898
  {
1899
- "name": "icon-placement",
1900
- "description": "Defines the position of the icon in relation to the text",
1901
- "value": { "type": "'left' | 'right'", "default": "'left'" }
1899
+ "name": "icon-right",
1900
+ "description": "If true, the icon is placed to the right in relation to the text",
1901
+ "value": { "type": "boolean", "default": "false" }
1902
1902
  },
1903
1903
  {
1904
1904
  "name": "rel",
@@ -1907,7 +1907,7 @@
1907
1907
  },
1908
1908
  {
1909
1909
  "name": "route",
1910
- "description": "If defined, used on conjunction with onClick property, second argument",
1910
+ "description": "If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button.",
1911
1911
  "value": { "type": "string | undefined" }
1912
1912
  },
1913
1913
  {
@@ -1921,29 +1921,29 @@
1921
1921
  "value": {
1922
1922
  "type": "'_blank' | '_parent' | '_self' | '_top' | undefined"
1923
1923
  }
1924
- },
1925
- {
1926
- "name": "type",
1927
- "description": "Defines the type of button",
1928
- "value": { "type": "SkfLinkType", "default": "'button'" }
1929
1924
  }
1930
1925
  ],
1931
1926
  "slots": [
1932
1927
  { "name": "", "description": "The component's main content" }
1933
1928
  ],
1934
- "events": [],
1929
+ "events": [
1930
+ {
1931
+ "name": "skf-link-click",
1932
+ "type": "CustomEvent",
1933
+ "description": "Fired when the link is clicked"
1934
+ }
1935
+ ],
1935
1936
  "js": {
1936
1937
  "properties": [
1937
- { "name": "role", "type": "string" },
1938
1938
  {
1939
1939
  "name": "as",
1940
1940
  "description": "Defines the semantic element to render",
1941
- "type": "'button' | 'a'"
1941
+ "type": "'button' | 'link'"
1942
1942
  },
1943
1943
  {
1944
1944
  "name": "color",
1945
1945
  "description": "Defines the text-color",
1946
- "type": "'primary' | 'inverse'"
1946
+ "type": "Color"
1947
1947
  },
1948
1948
  {
1949
1949
  "name": "disabled",
@@ -1953,7 +1953,7 @@
1953
1953
  {
1954
1954
  "name": "download",
1955
1955
  "description": "If defined, downloads the url",
1956
- "type": "string | undefined"
1956
+ "type": "boolean"
1957
1957
  },
1958
1958
  {
1959
1959
  "name": "href",
@@ -1966,13 +1966,9 @@
1966
1966
  "type": "Icon | undefined"
1967
1967
  },
1968
1968
  {
1969
- "name": "iconPlacement",
1970
- "description": "Defines the position of the icon in relation to the text",
1971
- "type": "'left' | 'right'"
1972
- },
1973
- {
1974
- "name": "onClick",
1975
- "description": "If defined, accepts a function that runs on click. Forwards optional route as second argument."
1969
+ "name": "iconRight",
1970
+ "description": "If true, the icon is placed to the right in relation to the text",
1971
+ "type": "boolean"
1976
1972
  },
1977
1973
  {
1978
1974
  "name": "rel",
@@ -1981,7 +1977,7 @@
1981
1977
  },
1982
1978
  {
1983
1979
  "name": "route",
1984
- "description": "If defined, used on conjunction with onClick property, second argument",
1980
+ "description": "If defined, used on conjunction with onClick property. **Notice!** Only applicable to as=button.",
1985
1981
  "type": "string | undefined"
1986
1982
  },
1987
1983
  {
@@ -1993,19 +1989,20 @@
1993
1989
  "name": "target",
1994
1990
  "description": "If defined, specifies where to open the linked document",
1995
1991
  "type": "'_blank' | '_parent' | '_self' | '_top' | undefined"
1996
- },
1997
- {
1998
- "name": "type",
1999
- "description": "Defines the type of button",
2000
- "type": "SkfLinkType"
2001
1992
  }
2002
1993
  ],
2003
- "events": []
1994
+ "events": [
1995
+ {
1996
+ "name": "skf-link-click",
1997
+ "type": "CustomEvent",
1998
+ "description": "Fired when the link is clicked"
1999
+ }
2000
+ ]
2004
2001
  }
2005
2002
  },
2006
2003
  {
2007
2004
  "name": "skf-menu",
2008
- "description": "The `<skf-menu>` is a component that displays a list of actions or options\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the menu is opened\n- **skf-closed** - Fired when the menu is closed\n\n### **Slots:**\n - _default_ - The menu popover content",
2005
+ "description": "The `<skf-menu>` is a component that displays a list of actions or options\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the menu is opened\n- **skf-closed** - Fired when the menu is closed\n\n### **Slots:**\n - _default_ - The menu content",
2009
2006
  "doc-url": "",
2010
2007
  "attributes": [
2011
2008
  {
@@ -2022,7 +2019,7 @@
2022
2019
  "value": { "type": "string" }
2023
2020
  }
2024
2021
  ],
2025
- "slots": [{ "name": "", "description": "The menu popover content" }],
2022
+ "slots": [{ "name": "", "description": "The menu content" }],
2026
2023
  "events": [
2027
2024
  {
2028
2025
  "name": "skf-opened",
@@ -2036,7 +2033,18 @@
2036
2033
  }
2037
2034
  ],
2038
2035
  "js": {
2039
- "properties": [],
2036
+ "properties": [
2037
+ {
2038
+ "name": "open()",
2039
+ "description": "Method that opens the menu",
2040
+ "type": "(void) => void"
2041
+ },
2042
+ {
2043
+ "name": "close()",
2044
+ "description": "Method that closes the menu",
2045
+ "type": "(void) => void"
2046
+ }
2047
+ ],
2040
2048
  "events": [
2041
2049
  {
2042
2050
  "name": "skf-opened",
@@ -2051,29 +2059,9 @@
2051
2059
  ]
2052
2060
  }
2053
2061
  },
2054
- {
2055
- "name": "skf-nav-item",
2056
- "description": "The `<skf-nav>` is a component that displays a list of <nav-items>.\n---\n\n\n### **Slots:**\n - _default_ - The component's main content",
2057
- "doc-url": "",
2058
- "attributes": [
2059
- { "name": "href", "value": { "type": "string", "default": "'#'" } },
2060
- { "name": "icon", "value": { "type": "Icon | undefined" } }
2061
- ],
2062
- "slots": [
2063
- { "name": "", "description": "The component's main content" }
2064
- ],
2065
- "events": [],
2066
- "js": {
2067
- "properties": [
2068
- { "name": "href", "type": "string" },
2069
- { "name": "icon", "type": "Icon | undefined" }
2070
- ],
2071
- "events": []
2072
- }
2073
- },
2074
2062
  {
2075
2063
  "name": "skf-popover",
2076
- "description": "The `<skf-popover>` is a general purpose component that displays the slot content in a popover.\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the menu is opened\n- **skf-closed** - Fired when the menu is closed\n\n### **Slots:**\n - _default_ - The popover content",
2064
+ "description": "The `<skf-popover>` is a general purpose component that displays the slot content in a popover.\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/983e5d-popover) for design principles\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the popover is opened\n- **skf-closed** - Fired when the popover is closed\n\n### **Slots:**\n - _default_ - The popover content",
2077
2065
  "doc-url": "",
2078
2066
  "attributes": [
2079
2067
  {
@@ -2086,7 +2074,7 @@
2086
2074
  },
2087
2075
  {
2088
2076
  "name": "anchor",
2089
- "description": "The id of the element the menu will be anchored to",
2077
+ "description": "The id of the element the popover will be anchored to",
2090
2078
  "value": { "type": "string" }
2091
2079
  },
2092
2080
  {
@@ -2105,12 +2093,12 @@
2105
2093
  {
2106
2094
  "name": "skf-opened",
2107
2095
  "type": "CustomEvent",
2108
- "description": "Fired when the menu is opened"
2096
+ "description": "Fired when the popover is opened"
2109
2097
  },
2110
2098
  {
2111
2099
  "name": "skf-closed",
2112
2100
  "type": "CustomEvent",
2113
- "description": "Fired when the menu is closed"
2101
+ "description": "Fired when the popover is closed"
2114
2102
  }
2115
2103
  ],
2116
2104
  "js": {
@@ -2124,18 +2112,28 @@
2124
2112
  "name": "hideArrow",
2125
2113
  "description": "If true, hides the arrow",
2126
2114
  "type": "boolean"
2115
+ },
2116
+ {
2117
+ "name": "open()",
2118
+ "description": "Method that opens the popover",
2119
+ "type": "(void) => void"
2120
+ },
2121
+ {
2122
+ "name": "close()",
2123
+ "description": "Method that closes the popover",
2124
+ "type": "(void) => void"
2127
2125
  }
2128
2126
  ],
2129
2127
  "events": [
2130
2128
  {
2131
2129
  "name": "skf-opened",
2132
2130
  "type": "CustomEvent",
2133
- "description": "Fired when the menu is opened"
2131
+ "description": "Fired when the popover is opened"
2134
2132
  },
2135
2133
  {
2136
2134
  "name": "skf-closed",
2137
2135
  "type": "CustomEvent",
2138
- "description": "Fired when the menu is closed"
2136
+ "description": "Fired when the popover is closed"
2139
2137
  }
2140
2138
  ]
2141
2139
  }
@@ -2219,13 +2217,13 @@
2219
2217
  "value": { "type": "string | undefined" }
2220
2218
  },
2221
2219
  {
2222
- "name": "name",
2223
- "description": "If defined, adds name to the input-element",
2224
- "value": { "type": "string | undefined" }
2220
+ "name": "lang",
2221
+ "description": "Sets the internal language of the component",
2222
+ "value": { "type": "Language", "default": "'en'" }
2225
2223
  },
2226
2224
  {
2227
- "name": "required-label",
2228
- "description": "If defined, renders an alternative A11y text for the asterisk",
2225
+ "name": "name",
2226
+ "description": "If defined, adds name to the input-element",
2229
2227
  "value": { "type": "string | undefined" }
2230
2228
  },
2231
2229
  {
@@ -2285,13 +2283,13 @@
2285
2283
  "type": "string | undefined"
2286
2284
  },
2287
2285
  {
2288
- "name": "name",
2289
- "description": "If defined, adds name to the input-element",
2290
- "type": "string | undefined"
2286
+ "name": "lang",
2287
+ "description": "Sets the internal language of the component",
2288
+ "type": "Language"
2291
2289
  },
2292
2290
  {
2293
- "name": "requiredLabel",
2294
- "description": "If defined, renders an alternative A11y text for the asterisk",
2291
+ "name": "name",
2292
+ "description": "If defined, adds name to the input-element",
2295
2293
  "type": "string | undefined"
2296
2294
  },
2297
2295
  {
@@ -2424,7 +2422,10 @@
2424
2422
  ],
2425
2423
  "events": [],
2426
2424
  "js": {
2427
- "properties": [{ "name": "label", "type": "string" }],
2425
+ "properties": [
2426
+ { "name": "label", "type": "string" },
2427
+ { "name": "small", "type": "boolean" }
2428
+ ],
2428
2429
  "events": []
2429
2430
  }
2430
2431
  },
@@ -2448,6 +2449,11 @@
2448
2449
  "description": "If defined, gives the supplied appearance",
2449
2450
  "value": { "type": "Severity | undefined" }
2450
2451
  },
2452
+ {
2453
+ "name": "lang",
2454
+ "description": "Sets the internal language of the component",
2455
+ "value": { "type": "Language", "default": "'en'" }
2456
+ },
2451
2457
  {
2452
2458
  "name": "removable",
2453
2459
  "description": "If true, adds trailing button to remove tag",
@@ -2475,6 +2481,11 @@
2475
2481
  "description": "If defined, gives the supplied appearance",
2476
2482
  "type": "Severity | undefined"
2477
2483
  },
2484
+ {
2485
+ "name": "lang",
2486
+ "description": "Sets the internal language of the component",
2487
+ "type": "Language"
2488
+ },
2478
2489
  {
2479
2490
  "name": "onClick",
2480
2491
  "description": "If defined, accepts a function that runs on click"
@@ -2494,7 +2505,7 @@
2494
2505
  },
2495
2506
  {
2496
2507
  "name": "skf-select",
2497
- "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\nSee [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles\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",
2508
+ "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\nSee [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles\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- **skf-update-calendar-view** - Fires when the calendar view is updated\n\n### **Slots:**\n - _default_ - The select's placeholder content",
2498
2509
  "doc-url": "",
2499
2510
  "attributes": [
2500
2511
  {
@@ -2537,6 +2548,11 @@
2537
2548
  "description": "If defined, displays provided label",
2538
2549
  "value": { "type": "string | undefined" }
2539
2550
  },
2551
+ {
2552
+ "name": "lang",
2553
+ "description": "Sets the internal language of the component",
2554
+ "value": { "type": "Language", "default": "'en'" }
2555
+ },
2540
2556
  {
2541
2557
  "name": "max",
2542
2558
  "description": "If defined, limits the number of selectable options",
@@ -2557,11 +2573,6 @@
2557
2573
  "description": "If defined, set name of the component",
2558
2574
  "value": { "type": "string | undefined" }
2559
2575
  },
2560
- {
2561
- "name": "required-label",
2562
- "description": "If defined, renders an alternative A11y text for the asterisk",
2563
- "value": { "type": "string | undefined" }
2564
- },
2565
2576
  {
2566
2577
  "name": "severity",
2567
2578
  "description": "If defined, displays provided severity state",
@@ -2606,6 +2617,11 @@
2606
2617
  "name": "skf-select-option-select",
2607
2618
  "type": "CustomEvent",
2608
2619
  "description": "{detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled"
2620
+ },
2621
+ {
2622
+ "name": "skf-update-calendar-view",
2623
+ "type": "CustomEvent",
2624
+ "description": "Fires when the calendar view is updated"
2609
2625
  }
2610
2626
  ],
2611
2627
  "js": {
@@ -2648,6 +2664,11 @@
2648
2664
  "description": "If defined, displays provided label",
2649
2665
  "type": "string | undefined"
2650
2666
  },
2667
+ {
2668
+ "name": "lang",
2669
+ "description": "Sets the internal language of the component",
2670
+ "type": "Language"
2671
+ },
2651
2672
  {
2652
2673
  "name": "max",
2653
2674
  "description": "If defined, limits the number of selectable options",
@@ -2668,11 +2689,6 @@
2668
2689
  "description": "If defined, set name of the component",
2669
2690
  "type": "string | undefined"
2670
2691
  },
2671
- {
2672
- "name": "requiredLabel",
2673
- "description": "If defined, renders an alternative A11y text for the asterisk",
2674
- "type": "string | undefined"
2675
- },
2676
2692
  {
2677
2693
  "name": "severity",
2678
2694
  "description": "If defined, displays provided severity state",
@@ -2690,7 +2706,7 @@
2690
2706
  },
2691
2707
  {
2692
2708
  "name": "value",
2693
- "description": "Read only, returns the selected value. (if multiple: in a comma separated string)"
2709
+ "description": "Returns the selected value. (if multiple: in a comma separated string). If set will default set corresponding option."
2694
2710
  },
2695
2711
  { "name": "_selectedOptions", "type": "array" }
2696
2712
  ],
@@ -2719,13 +2735,18 @@
2719
2735
  "name": "skf-select-option-select",
2720
2736
  "type": "CustomEvent",
2721
2737
  "description": "{detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled"
2738
+ },
2739
+ {
2740
+ "name": "skf-update-calendar-view",
2741
+ "type": "CustomEvent",
2742
+ "description": "Fires when the calendar view is updated"
2722
2743
  }
2723
2744
  ]
2724
2745
  }
2725
2746
  },
2726
2747
  {
2727
2748
  "name": "skf-select-option",
2728
- "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).",
2749
+ "description": "The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.\nIt represents an individual option in a select dropdown.\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).",
2729
2750
  "doc-url": "",
2730
2751
  "attributes": [
2731
2752
  {
@@ -2755,7 +2776,7 @@
2755
2776
  },
2756
2777
  {
2757
2778
  "name": "value",
2758
- "description": "Returns or sets the tags value. If value is omitted, defaults to the tags text.",
2779
+ "description": "Returns or sets the option value. If value is omitted, defaults to the tags slotted text.",
2759
2780
  "value": { "type": "string" }
2760
2781
  }
2761
2782
  ],
@@ -2805,10 +2826,9 @@
2805
2826
  },
2806
2827
  {
2807
2828
  "name": "value",
2808
- "description": "Returns or sets the tags value. If value is omitted, defaults to the tags text."
2829
+ "description": "Returns or sets the option value. If value is omitted, defaults to the tags slotted text."
2809
2830
  },
2810
- { "name": "role", "type": "string" },
2811
- { "name": "_parent" },
2831
+ { "name": "small", "type": "boolean" },
2812
2832
  { "name": "_shortcutUpdate", "type": "boolean" }
2813
2833
  ],
2814
2834
  "events": [
@@ -2856,8 +2876,7 @@
2856
2876
  "description": "If true, item marked as completed",
2857
2877
  "type": "boolean"
2858
2878
  },
2859
- { "name": "_setInternalState" },
2860
- { "name": "role", "type": "string" }
2879
+ { "name": "_setInternalState" }
2861
2880
  ],
2862
2881
  "events": [
2863
2882
  {
@@ -2951,13 +2970,13 @@
2951
2970
  "value": { "type": "string | undefined" }
2952
2971
  },
2953
2972
  {
2954
- "name": "name",
2955
- "description": "If defined, adds name to the input-element",
2956
- "value": { "type": "string | undefined" }
2973
+ "name": "lang",
2974
+ "description": "Sets the internal language of the component",
2975
+ "value": { "type": "Language", "default": "'en'" }
2957
2976
  },
2958
2977
  {
2959
- "name": "required-label",
2960
- "description": "If defined, renders an alternative A11y text for the asterisk",
2978
+ "name": "name",
2979
+ "description": "If defined, adds name to the input-element",
2961
2980
  "value": { "type": "string | undefined" }
2962
2981
  },
2963
2982
  {
@@ -3001,13 +3020,13 @@
3001
3020
  "type": "string | undefined"
3002
3021
  },
3003
3022
  {
3004
- "name": "name",
3005
- "description": "If defined, adds name to the input-element",
3006
- "type": "string | undefined"
3023
+ "name": "lang",
3024
+ "description": "Sets the internal language of the component",
3025
+ "type": "Language"
3007
3026
  },
3008
3027
  {
3009
- "name": "requiredLabel",
3010
- "description": "If defined, renders an alternative A11y text for the asterisk",
3028
+ "name": "name",
3029
+ "description": "If defined, adds name to the input-element",
3011
3030
  "type": "string | undefined"
3012
3031
  },
3013
3032
  {
@@ -3044,8 +3063,7 @@
3044
3063
  "description": "The tab panel's name.",
3045
3064
  "type": "string"
3046
3065
  },
3047
- { "name": "active", "type": "boolean" },
3048
- { "name": "role", "type": "string" }
3066
+ { "name": "active", "type": "boolean" }
3049
3067
  ],
3050
3068
  "events": []
3051
3069
  }
@@ -3157,8 +3175,7 @@
3157
3175
  "type": "string"
3158
3176
  },
3159
3177
  { "name": "selected", "type": "boolean" },
3160
- { "name": "variant", "type": "SkfTabs['variant']" },
3161
- { "name": "role", "type": "string" }
3178
+ { "name": "variant", "type": "SkfTabs['variant']" }
3162
3179
  ],
3163
3180
  "events": [
3164
3181
  {
@@ -3218,6 +3235,11 @@
3218
3235
  "description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
3219
3236
  "value": { "type": "string | undefined" }
3220
3237
  },
3238
+ {
3239
+ "name": "lang",
3240
+ "description": "Sets the internal language of the component",
3241
+ "value": { "type": "Language", "default": "'en'" }
3242
+ },
3221
3243
  {
3222
3244
  "name": "name",
3223
3245
  "description": "If defined, adds name to the input-element",
@@ -3243,11 +3265,6 @@
3243
3265
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
3244
3266
  "value": { "type": "boolean", "default": "false" }
3245
3267
  },
3246
- {
3247
- "name": "required-label",
3248
- "description": "If defined, renders an alternative A11y text for the asterisk",
3249
- "value": { "type": "string | undefined" }
3250
- },
3251
3268
  {
3252
3269
  "name": "rows",
3253
3270
  "description": "If defined, sets the rows of the textarea",
@@ -3329,6 +3346,11 @@
3329
3346
  "description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
3330
3347
  "type": "string | undefined"
3331
3348
  },
3349
+ {
3350
+ "name": "lang",
3351
+ "description": "Sets the internal language of the component",
3352
+ "type": "Language"
3353
+ },
3332
3354
  {
3333
3355
  "name": "name",
3334
3356
  "description": "If defined, adds name to the input-element",
@@ -3354,11 +3376,6 @@
3354
3376
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
3355
3377
  "type": "boolean"
3356
3378
  },
3357
- {
3358
- "name": "requiredLabel",
3359
- "description": "If defined, renders an alternative A11y text for the asterisk",
3360
- "type": "string | undefined"
3361
- },
3362
3379
  {
3363
3380
  "name": "rows",
3364
3381
  "description": "If defined, sets the rows of the textarea",
@@ -3497,7 +3514,7 @@
3497
3514
  },
3498
3515
  {
3499
3516
  "name": "skf-tooltip",
3500
- "description": "The `<skf-tooltip>` is a component that displays a tooltip.\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the dropdown is opened\n- **skf-closed** - Fired when the dropdown is closed\n\n### **Slots:**\n - _default_ - The tooltip popover content",
3517
+ "description": "The `<skf-tooltip>` is a component that displays a tooltip.\n---\n\n\n### **Events:**\n - **skf-opened** - Fired when the tooltip is opened\n- **skf-closed** - Fired when the tooltip is closed\n\n### **Slots:**\n - _default_ - The tooltip popover content",
3501
3518
  "doc-url": "",
3502
3519
  "attributes": [
3503
3520
  {
@@ -3520,28 +3537,41 @@
3520
3537
  "events": [
3521
3538
  {
3522
3539
  "name": "skf-opened",
3523
- "description": "Fired when the dropdown is opened"
3540
+ "type": "CustomEvent",
3541
+ "description": "Fired when the tooltip is opened"
3524
3542
  },
3525
3543
  {
3526
3544
  "name": "skf-closed",
3527
- "description": "Fired when the dropdown is closed"
3545
+ "type": "CustomEvent",
3546
+ "description": "Fired when the tooltip is closed"
3528
3547
  }
3529
3548
  ],
3530
3549
  "js": {
3531
3550
  "properties": [
3532
- { "name": "role", "type": "string" },
3533
3551
  { "name": "offset", "type": "number" },
3534
3552
  { "name": "placement", "type": "string" },
3535
- { "name": "variant", "type": "string" }
3553
+ { "name": "variant", "type": "string" },
3554
+ {
3555
+ "name": "open()",
3556
+ "description": "Method that opens the tooltip",
3557
+ "type": "(void) => void"
3558
+ },
3559
+ {
3560
+ "name": "close()",
3561
+ "description": "Method that closes the tooltip",
3562
+ "type": "(void) => void"
3563
+ }
3536
3564
  ],
3537
3565
  "events": [
3538
3566
  {
3539
3567
  "name": "skf-opened",
3540
- "description": "Fired when the dropdown is opened"
3568
+ "type": "CustomEvent",
3569
+ "description": "Fired when the tooltip is opened"
3541
3570
  },
3542
3571
  {
3543
3572
  "name": "skf-closed",
3544
- "description": "Fired when the dropdown is closed"
3573
+ "type": "CustomEvent",
3574
+ "description": "Fired when the tooltip is closed"
3545
3575
  }
3546
3576
  ]
3547
3577
  }