@skf-design-system/ui-components 1.0.2-beta.6 → 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 (88) hide show
  1. package/README.md +18 -0
  2. package/dist/components/alert/alert.component.d.ts +3 -2
  3. package/dist/components/alert/alert.component.js +39 -33
  4. package/dist/components/button/button.styles.js +3 -3
  5. package/dist/components/checkbox/checkbox.component.d.ts +4 -2
  6. package/dist/components/checkbox/checkbox.component.js +73 -65
  7. package/dist/components/checkbox/checkbox.styles.js +1 -1
  8. package/dist/components/datepicker/datepicker-calendar.component.d.ts +4 -0
  9. package/dist/components/datepicker/datepicker-calendar.component.js +134 -127
  10. package/dist/components/datepicker/datepicker-popup.component.d.ts +4 -0
  11. package/dist/components/datepicker/datepicker-popup.component.js +100 -88
  12. package/dist/components/datepicker/datepicker.component.d.ts +4 -2
  13. package/dist/components/datepicker/datepicker.component.js +150 -140
  14. package/dist/components/dialog/dialog.component.d.ts +3 -2
  15. package/dist/components/dialog/dialog.component.js +39 -37
  16. package/dist/components/divider/divider.component.js +13 -13
  17. package/dist/components/divider/divider.styles.js +2 -2
  18. package/dist/components/drawer/drawer.component.d.ts +3 -2
  19. package/dist/components/drawer/drawer.component.js +37 -35
  20. package/dist/components/drawer/drawer.styles.js +1 -1
  21. package/dist/components/header/header.component.d.ts +4 -2
  22. package/dist/components/header/header.component.js +66 -57
  23. package/dist/components/header/header.styles.js +2 -2
  24. package/dist/components/icon/icon.component.js +7 -7
  25. package/dist/components/icon/icon.styles.js +2 -2
  26. package/dist/components/input/input.component.d.ts +4 -8
  27. package/dist/components/input/input.component.js +146 -147
  28. package/dist/components/input/input.controllers.d.ts +0 -1
  29. package/dist/components/input/input.controllers.js +12 -12
  30. package/dist/components/link/link.component.js +19 -12
  31. package/dist/components/link/link.styles.js +11 -3
  32. package/dist/components/loader/loader.component.d.ts +0 -2
  33. package/dist/components/loader/loader.component.js +27 -30
  34. package/dist/components/loader/loader.styles.js +1 -1
  35. package/dist/components/menu/menu-item.styles.js +8 -7
  36. package/dist/components/menu/menu.component.d.ts +4 -1
  37. package/dist/components/nav/nav.component.d.ts +3 -0
  38. package/dist/components/nav/nav.component.js +38 -33
  39. package/dist/components/popover/popover.component.d.ts +6 -3
  40. package/dist/components/progress/progress.styles.js +3 -3
  41. package/dist/components/radio/radio.component.d.ts +4 -2
  42. package/dist/components/radio/radio.component.js +91 -83
  43. package/dist/components/radio/radio.styles.js +1 -1
  44. package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
  45. package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
  46. package/dist/components/select/select-option.component.d.ts +2 -2
  47. package/dist/components/select/select-option.component.js +16 -19
  48. package/dist/components/select/select.component.d.ts +13 -9
  49. package/dist/components/select/select.component.js +169 -144
  50. package/dist/components/stepper/stepper-item.styles.js +4 -4
  51. package/dist/components/switch/switch.component.d.ts +4 -2
  52. package/dist/components/switch/switch.component.js +64 -56
  53. package/dist/components/switch/switch.styles.js +1 -1
  54. package/dist/components/tabs/tab.styles.js +2 -2
  55. package/dist/components/tag/tag.component.d.ts +3 -0
  56. package/dist/components/tag/tag.component.js +50 -41
  57. package/dist/components/textarea/textarea.component.d.ts +4 -2
  58. package/dist/components/textarea/textarea.component.js +126 -118
  59. package/dist/components/tooltip/tooltip.component.d.ts +8 -2
  60. package/dist/components/tooltip/tooltip.component.js +3 -0
  61. package/dist/custom-elements.json +569 -309
  62. package/dist/internal/base-classes/popover/popover.base.d.ts +21 -2
  63. package/dist/internal/base-classes/popover/popover.base.js +10 -12
  64. package/dist/internal/controllers/popover.controller.d.ts +2 -0
  65. package/dist/internal/helpers/uuid.d.ts +8 -10
  66. package/dist/internal/helpers/uuid.js +4 -11
  67. package/dist/internal/helpers/watch.d.ts +1 -1
  68. package/dist/internal/templates/asterisk.d.ts +1 -1
  69. package/dist/internal/templates/asterisk.js +4 -4
  70. package/dist/styles/global-alt.css +1 -1
  71. package/dist/styles/global.css +1 -1
  72. package/dist/translations/en.d.ts +3 -0
  73. package/dist/translations/en.js +27 -0
  74. package/dist/translations/es.d.ts +3 -0
  75. package/dist/translations/es.js +27 -0
  76. package/dist/translations/index.d.ts +4 -0
  77. package/dist/translations/pt.d.ts +3 -0
  78. package/dist/translations/pt.js +27 -0
  79. package/dist/translations/sv.d.ts +3 -0
  80. package/dist/translations/sv.js +27 -0
  81. package/dist/types/jsx/custom-element-jsx.d.ts +59 -47
  82. package/dist/types/vue/index.d.ts +59 -47
  83. package/dist/utilities/localize.d.ts +28 -0
  84. package/dist/utilities/localize.js +13 -0
  85. package/dist/vscode.html-custom-data.json +75 -80
  86. package/dist/web-types.json +201 -166
  87. package/package.json +26 -33
  88. package/custom-elements.json +0 -25490
@@ -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)",
@@ -399,11 +394,6 @@
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)",
@@ -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,16 +1188,16 @@
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",
@@ -1234,16 +1234,16 @@
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",
@@ -1476,6 +1476,11 @@
1476
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",
1477
1477
  "doc-url": "",
1478
1478
  "attributes": [
1479
+ {
1480
+ "name": "lang",
1481
+ "description": "Sets the internal language of the component",
1482
+ "value": { "type": "Language", "default": "'en'" }
1483
+ },
1479
1484
  {
1480
1485
  "name": "vertical",
1481
1486
  "description": "If true, the navigation will be displayed vertically",
@@ -1488,6 +1493,11 @@
1488
1493
  "events": [],
1489
1494
  "js": {
1490
1495
  "properties": [
1496
+ {
1497
+ "name": "lang",
1498
+ "description": "Sets the internal language of the component",
1499
+ "type": "Language"
1500
+ },
1491
1501
  {
1492
1502
  "name": "vertical",
1493
1503
  "description": "If true, the navigation will be displayed vertically",
@@ -1508,9 +1518,9 @@
1508
1518
  "value": { "type": "string" }
1509
1519
  },
1510
1520
  {
1511
- "name": "hamburger-aria-label",
1512
- "description": "If defined, sets the aria-label for the hamburger button",
1513
- "value": { "type": "string", "default": "'Show navigation'" }
1521
+ "name": "lang",
1522
+ "description": "Sets the internal language of the component",
1523
+ "value": { "type": "Language", "default": "'en'" }
1514
1524
  },
1515
1525
  {
1516
1526
  "name": "site-name",
@@ -1532,9 +1542,9 @@
1532
1542
  "description": "If true, sets header to display in compact mode only (hanburger menu and drawer)"
1533
1543
  },
1534
1544
  {
1535
- "name": "hamburgerAriaLabel",
1536
- "description": "If defined, sets the aria-label for the hamburger button",
1537
- "type": "string"
1545
+ "name": "lang",
1546
+ "description": "Sets the internal language of the component",
1547
+ "type": "Language"
1538
1548
  },
1539
1549
  {
1540
1550
  "name": "siteName",
@@ -1572,21 +1582,6 @@
1572
1582
  "type": "HTMLInputElement['autocomplete'] | undefined"
1573
1583
  }
1574
1584
  },
1575
- {
1576
- "name": "button-aria-label-clear",
1577
- "description": "Custom aria-label for the clear button. **Notice!** Only applicable to type=search.",
1578
- "value": { "type": "string", "default": "'Clear input'" }
1579
- },
1580
- {
1581
- "name": "button-aria-label-hide",
1582
- "description": "Custom aria-label for the visibility button. **Notice!** Only applicable to type=password.",
1583
- "value": { "type": "string", "default": "'Hide password'" }
1584
- },
1585
- {
1586
- "name": "button-aria-label-show",
1587
- "description": "Custom aria-label for the visibility button **Notice!** Only applicable to type=password.",
1588
- "value": { "type": "string", "default": "'Show password'" }
1589
- },
1590
1585
  {
1591
1586
  "name": "custom-invalid",
1592
1587
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
@@ -1620,6 +1615,11 @@
1620
1615
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
1621
1616
  "value": { "type": "string | undefined" }
1622
1617
  },
1618
+ {
1619
+ "name": "lang",
1620
+ "description": "Sets the internal language of the component",
1621
+ "value": { "type": "Language", "default": "'en'" }
1622
+ },
1623
1623
  {
1624
1624
  "name": "leading",
1625
1625
  "description": "If defined, displays a prefix/adornment before the input-element",
@@ -1665,11 +1665,6 @@
1665
1665
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
1666
1666
  "value": { "type": "boolean", "default": "false" }
1667
1667
  },
1668
- {
1669
- "name": "required-label",
1670
- "description": "If defined, renders an alternative A11y text for the asterisk",
1671
- "value": { "type": "string | undefined" }
1672
- },
1673
1668
  {
1674
1669
  "name": "severity",
1675
1670
  "description": "If defined, displays provided severity state",
@@ -1737,21 +1732,6 @@
1737
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.",
1738
1733
  "type": "HTMLInputElement['autocomplete'] | undefined"
1739
1734
  },
1740
- {
1741
- "name": "buttonAriaLabelClear",
1742
- "description": "Custom aria-label for the clear button. **Notice!** Only applicable to type=search.",
1743
- "type": "string"
1744
- },
1745
- {
1746
- "name": "buttonAriaLabelHide",
1747
- "description": "Custom aria-label for the visibility button. **Notice!** Only applicable to type=password.",
1748
- "type": "string"
1749
- },
1750
- {
1751
- "name": "buttonAriaLabelShow",
1752
- "description": "Custom aria-label for the visibility button **Notice!** Only applicable to type=password.",
1753
- "type": "string"
1754
- },
1755
1735
  {
1756
1736
  "name": "customInvalid",
1757
1737
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text."
@@ -1781,6 +1761,11 @@
1781
1761
  "description": "If defined, sets the input's label. Alternatively, you can use the `label` attribute.",
1782
1762
  "type": "string | undefined"
1783
1763
  },
1764
+ {
1765
+ "name": "lang",
1766
+ "description": "Sets the internal language of the component",
1767
+ "type": "Language"
1768
+ },
1784
1769
  {
1785
1770
  "name": "leading",
1786
1771
  "description": "If defined, displays a prefix/adornment before the input-element",
@@ -1826,11 +1811,6 @@
1826
1811
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
1827
1812
  "type": "boolean"
1828
1813
  },
1829
- {
1830
- "name": "requiredLabel",
1831
- "description": "If defined, renders an alternative A11y text for the asterisk",
1832
- "type": "string | undefined"
1833
- },
1834
1814
  {
1835
1815
  "name": "severity",
1836
1816
  "description": "If defined, displays provided severity state",
@@ -2022,7 +2002,7 @@
2022
2002
  },
2023
2003
  {
2024
2004
  "name": "skf-menu",
2025
- "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",
2026
2006
  "doc-url": "",
2027
2007
  "attributes": [
2028
2008
  {
@@ -2039,7 +2019,7 @@
2039
2019
  "value": { "type": "string" }
2040
2020
  }
2041
2021
  ],
2042
- "slots": [{ "name": "", "description": "The menu popover content" }],
2022
+ "slots": [{ "name": "", "description": "The menu content" }],
2043
2023
  "events": [
2044
2024
  {
2045
2025
  "name": "skf-opened",
@@ -2053,7 +2033,18 @@
2053
2033
  }
2054
2034
  ],
2055
2035
  "js": {
2056
- "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
+ ],
2057
2048
  "events": [
2058
2049
  {
2059
2050
  "name": "skf-opened",
@@ -2070,7 +2061,7 @@
2070
2061
  },
2071
2062
  {
2072
2063
  "name": "skf-popover",
2073
- "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",
2074
2065
  "doc-url": "",
2075
2066
  "attributes": [
2076
2067
  {
@@ -2083,7 +2074,7 @@
2083
2074
  },
2084
2075
  {
2085
2076
  "name": "anchor",
2086
- "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",
2087
2078
  "value": { "type": "string" }
2088
2079
  },
2089
2080
  {
@@ -2102,12 +2093,12 @@
2102
2093
  {
2103
2094
  "name": "skf-opened",
2104
2095
  "type": "CustomEvent",
2105
- "description": "Fired when the menu is opened"
2096
+ "description": "Fired when the popover is opened"
2106
2097
  },
2107
2098
  {
2108
2099
  "name": "skf-closed",
2109
2100
  "type": "CustomEvent",
2110
- "description": "Fired when the menu is closed"
2101
+ "description": "Fired when the popover is closed"
2111
2102
  }
2112
2103
  ],
2113
2104
  "js": {
@@ -2121,18 +2112,28 @@
2121
2112
  "name": "hideArrow",
2122
2113
  "description": "If true, hides the arrow",
2123
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"
2124
2125
  }
2125
2126
  ],
2126
2127
  "events": [
2127
2128
  {
2128
2129
  "name": "skf-opened",
2129
2130
  "type": "CustomEvent",
2130
- "description": "Fired when the menu is opened"
2131
+ "description": "Fired when the popover is opened"
2131
2132
  },
2132
2133
  {
2133
2134
  "name": "skf-closed",
2134
2135
  "type": "CustomEvent",
2135
- "description": "Fired when the menu is closed"
2136
+ "description": "Fired when the popover is closed"
2136
2137
  }
2137
2138
  ]
2138
2139
  }
@@ -2216,13 +2217,13 @@
2216
2217
  "value": { "type": "string | undefined" }
2217
2218
  },
2218
2219
  {
2219
- "name": "name",
2220
- "description": "If defined, adds name to the input-element",
2221
- "value": { "type": "string | undefined" }
2220
+ "name": "lang",
2221
+ "description": "Sets the internal language of the component",
2222
+ "value": { "type": "Language", "default": "'en'" }
2222
2223
  },
2223
2224
  {
2224
- "name": "required-label",
2225
- "description": "If defined, renders an alternative A11y text for the asterisk",
2225
+ "name": "name",
2226
+ "description": "If defined, adds name to the input-element",
2226
2227
  "value": { "type": "string | undefined" }
2227
2228
  },
2228
2229
  {
@@ -2282,13 +2283,13 @@
2282
2283
  "type": "string | undefined"
2283
2284
  },
2284
2285
  {
2285
- "name": "name",
2286
- "description": "If defined, adds name to the input-element",
2287
- "type": "string | undefined"
2286
+ "name": "lang",
2287
+ "description": "Sets the internal language of the component",
2288
+ "type": "Language"
2288
2289
  },
2289
2290
  {
2290
- "name": "requiredLabel",
2291
- "description": "If defined, renders an alternative A11y text for the asterisk",
2291
+ "name": "name",
2292
+ "description": "If defined, adds name to the input-element",
2292
2293
  "type": "string | undefined"
2293
2294
  },
2294
2295
  {
@@ -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,7 +2826,7 @@
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
2831
  { "name": "small", "type": "boolean" },
2811
2832
  { "name": "_shortcutUpdate", "type": "boolean" }
@@ -2949,13 +2970,13 @@
2949
2970
  "value": { "type": "string | undefined" }
2950
2971
  },
2951
2972
  {
2952
- "name": "name",
2953
- "description": "If defined, adds name to the input-element",
2954
- "value": { "type": "string | undefined" }
2973
+ "name": "lang",
2974
+ "description": "Sets the internal language of the component",
2975
+ "value": { "type": "Language", "default": "'en'" }
2955
2976
  },
2956
2977
  {
2957
- "name": "required-label",
2958
- "description": "If defined, renders an alternative A11y text for the asterisk",
2978
+ "name": "name",
2979
+ "description": "If defined, adds name to the input-element",
2959
2980
  "value": { "type": "string | undefined" }
2960
2981
  },
2961
2982
  {
@@ -2999,13 +3020,13 @@
2999
3020
  "type": "string | undefined"
3000
3021
  },
3001
3022
  {
3002
- "name": "name",
3003
- "description": "If defined, adds name to the input-element",
3004
- "type": "string | undefined"
3023
+ "name": "lang",
3024
+ "description": "Sets the internal language of the component",
3025
+ "type": "Language"
3005
3026
  },
3006
3027
  {
3007
- "name": "requiredLabel",
3008
- "description": "If defined, renders an alternative A11y text for the asterisk",
3028
+ "name": "name",
3029
+ "description": "If defined, adds name to the input-element",
3009
3030
  "type": "string | undefined"
3010
3031
  },
3011
3032
  {
@@ -3214,6 +3235,11 @@
3214
3235
  "description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
3215
3236
  "value": { "type": "string | undefined" }
3216
3237
  },
3238
+ {
3239
+ "name": "lang",
3240
+ "description": "Sets the internal language of the component",
3241
+ "value": { "type": "Language", "default": "'en'" }
3242
+ },
3217
3243
  {
3218
3244
  "name": "name",
3219
3245
  "description": "If defined, adds name to the input-element",
@@ -3239,11 +3265,6 @@
3239
3265
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
3240
3266
  "value": { "type": "boolean", "default": "false" }
3241
3267
  },
3242
- {
3243
- "name": "required-label",
3244
- "description": "If defined, renders an alternative A11y text for the asterisk",
3245
- "value": { "type": "string | undefined" }
3246
- },
3247
3268
  {
3248
3269
  "name": "rows",
3249
3270
  "description": "If defined, sets the rows of the textarea",
@@ -3325,6 +3346,11 @@
3325
3346
  "description": "If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute.",
3326
3347
  "type": "string | undefined"
3327
3348
  },
3349
+ {
3350
+ "name": "lang",
3351
+ "description": "Sets the internal language of the component",
3352
+ "type": "Language"
3353
+ },
3328
3354
  {
3329
3355
  "name": "name",
3330
3356
  "description": "If defined, adds name to the input-element",
@@ -3350,11 +3376,6 @@
3350
3376
  "description": "If true, makes the element not mutable, meaning the user can not edit the control",
3351
3377
  "type": "boolean"
3352
3378
  },
3353
- {
3354
- "name": "requiredLabel",
3355
- "description": "If defined, renders an alternative A11y text for the asterisk",
3356
- "type": "string | undefined"
3357
- },
3358
3379
  {
3359
3380
  "name": "rows",
3360
3381
  "description": "If defined, sets the rows of the textarea",
@@ -3493,7 +3514,7 @@
3493
3514
  },
3494
3515
  {
3495
3516
  "name": "skf-tooltip",
3496
- "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",
3497
3518
  "doc-url": "",
3498
3519
  "attributes": [
3499
3520
  {
@@ -3516,27 +3537,41 @@
3516
3537
  "events": [
3517
3538
  {
3518
3539
  "name": "skf-opened",
3519
- "description": "Fired when the dropdown is opened"
3540
+ "type": "CustomEvent",
3541
+ "description": "Fired when the tooltip is opened"
3520
3542
  },
3521
3543
  {
3522
3544
  "name": "skf-closed",
3523
- "description": "Fired when the dropdown is closed"
3545
+ "type": "CustomEvent",
3546
+ "description": "Fired when the tooltip is closed"
3524
3547
  }
3525
3548
  ],
3526
3549
  "js": {
3527
3550
  "properties": [
3528
3551
  { "name": "offset", "type": "number" },
3529
3552
  { "name": "placement", "type": "string" },
3530
- { "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
+ }
3531
3564
  ],
3532
3565
  "events": [
3533
3566
  {
3534
3567
  "name": "skf-opened",
3535
- "description": "Fired when the dropdown is opened"
3568
+ "type": "CustomEvent",
3569
+ "description": "Fired when the tooltip is opened"
3536
3570
  },
3537
3571
  {
3538
3572
  "name": "skf-closed",
3539
- "description": "Fired when the dropdown is closed"
3573
+ "type": "CustomEvent",
3574
+ "description": "Fired when the tooltip is closed"
3540
3575
  }
3541
3576
  ]
3542
3577
  }