@skf-design-system/ui-components 1.0.0-alpha.38 → 1.0.0-alpha.39

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 (117) 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/breadcrumb/breadcrumb-item.component.js +11 -12
  5. package/dist/components/button/button.component.js +32 -36
  6. package/dist/components/button/button.styles.js +3 -3
  7. package/dist/components/checkbox/checkbox.component.d.ts +6 -5
  8. package/dist/components/checkbox/checkbox.component.js +67 -69
  9. package/dist/components/checkbox/checkbox.styles.js +1 -1
  10. package/dist/components/datepicker/datepicker-calendar.component.d.ts +1 -0
  11. package/dist/components/datepicker/datepicker-calendar.component.js +107 -116
  12. package/dist/components/datepicker/datepicker-popup.component.d.ts +4 -0
  13. package/dist/components/datepicker/datepicker-popup.component.js +112 -100
  14. package/dist/components/datepicker/datepicker-popup.helpers.js +1 -1
  15. package/dist/components/datepicker/datepicker.component.d.ts +4 -2
  16. package/dist/components/datepicker/datepicker.component.js +159 -160
  17. package/dist/components/dialog/dialog.component.d.ts +3 -2
  18. package/dist/components/dialog/dialog.component.js +48 -48
  19. package/dist/components/divider/divider.component.d.ts +3 -0
  20. package/dist/components/divider/divider.component.js +43 -22
  21. package/dist/components/divider/divider.styles.js +9 -9
  22. package/dist/components/drawer/drawer.component.d.ts +12 -4
  23. package/dist/components/drawer/drawer.component.js +84 -61
  24. package/dist/components/drawer/drawer.styles.js +47 -40
  25. package/dist/components/header/header.component.d.ts +4 -2
  26. package/dist/components/header/header.component.js +64 -57
  27. package/dist/components/header/header.styles.js +2 -2
  28. package/dist/components/icon/icon.component.js +26 -16
  29. package/dist/components/icon/icon.styles.js +4 -4
  30. package/dist/components/input/input.component.d.ts +11 -10
  31. package/dist/components/input/input.component.js +115 -111
  32. package/dist/components/input/input.controllers.d.ts +0 -1
  33. package/dist/components/input/input.controllers.js +14 -19
  34. package/dist/components/link/link.component.d.ts +1 -0
  35. package/dist/components/link/link.component.js +86 -74
  36. package/dist/components/link/link.styles.js +7 -3
  37. package/dist/components/loader/loader.component.d.ts +0 -2
  38. package/dist/components/loader/loader.component.js +27 -30
  39. package/dist/components/loader/loader.styles.js +1 -1
  40. package/dist/components/menu/menu-item.styles.js +8 -7
  41. package/dist/components/menu/menu.component.d.ts +5 -2
  42. package/dist/components/menu/menu.component.js +7 -7
  43. package/dist/components/nav/nav.component.d.ts +3 -0
  44. package/dist/components/nav/nav.component.js +38 -33
  45. package/dist/components/popover/popover.component.d.ts +6 -7
  46. package/dist/components/popover/popover.component.js +23 -31
  47. package/dist/components/progress/progress.styles.js +3 -3
  48. package/dist/components/radio/radio.component.d.ts +4 -2
  49. package/dist/components/radio/radio.component.js +96 -91
  50. package/dist/components/radio/radio.styles.js +1 -1
  51. package/dist/components/segmented-button/segmented-button-item.component.js +1 -1
  52. package/dist/components/segmented-button/segmented-button-item.styles.js +1 -1
  53. package/dist/components/segmented-button/segmented-button.component.js +22 -24
  54. package/dist/components/select/select-option.component.d.ts +2 -1
  55. package/dist/components/select/select-option.component.js +31 -36
  56. package/dist/components/select/select.component.d.ts +20 -10
  57. package/dist/components/select/select.component.js +139 -104
  58. package/dist/components/select/select.controllers.js +14 -17
  59. package/dist/components/select/select.styles.js +8 -3
  60. package/dist/components/stepper/stepper-item.component.d.ts +1 -1
  61. package/dist/components/stepper/stepper-item.component.js +26 -23
  62. package/dist/components/stepper/stepper-item.styles.js +4 -4
  63. package/dist/components/stepper/stepper.component.js +2 -3
  64. package/dist/components/stepper/stepper.helpers.js +6 -7
  65. package/dist/components/switch/switch.component.d.ts +4 -2
  66. package/dist/components/switch/switch.component.js +64 -58
  67. package/dist/components/switch/switch.styles.js +1 -1
  68. package/dist/components/tabs/tab-panel.component.d.ts +1 -1
  69. package/dist/components/tabs/tab-panel.component.js +19 -16
  70. package/dist/components/tabs/tab.component.d.ts +1 -1
  71. package/dist/components/tabs/tab.component.js +17 -14
  72. package/dist/components/tabs/tab.styles.js +2 -2
  73. package/dist/components/tabs/tabs.component.js +6 -6
  74. package/dist/components/tag/tag.component.d.ts +9 -6
  75. package/dist/components/tag/tag.component.js +78 -72
  76. package/dist/components/tag/tag.styles.js +5 -0
  77. package/dist/components/textarea/textarea.component.d.ts +4 -2
  78. package/dist/components/textarea/textarea.component.js +101 -95
  79. package/dist/components/toast/toast-item.styles.js +13 -10
  80. package/dist/components/toast/toast.singleton.js +6 -7
  81. package/dist/components/tooltip/tooltip.component.d.ts +7 -4
  82. package/dist/components/tooltip/tooltip.component.js +22 -14
  83. package/dist/custom-elements.json +835 -422
  84. package/dist/index.d.ts +2 -2
  85. package/dist/index.js +20 -20
  86. package/dist/internal/base-classes/popover/popover.base.d.ts +28 -8
  87. package/dist/internal/base-classes/popover/popover.base.js +78 -74
  88. package/dist/internal/components/formBase.d.ts +1 -0
  89. package/dist/internal/components/formBase.js +11 -19
  90. package/dist/internal/controllers/popover.controller.d.ts +2 -0
  91. package/dist/internal/controllers/popover.controller.js +11 -14
  92. package/dist/internal/helpers/stateMap.js +3 -3
  93. package/dist/internal/helpers/uuid.d.ts +8 -10
  94. package/dist/internal/helpers/uuid.js +4 -11
  95. package/dist/internal/helpers/watch.d.ts +1 -1
  96. package/dist/internal/templates/asterisk.d.ts +1 -1
  97. package/dist/internal/templates/asterisk.js +4 -4
  98. package/dist/internal/types.d.ts +4 -0
  99. package/dist/styles/global-alt.css +1 -1
  100. package/dist/styles/global.css +1 -1
  101. package/dist/translations/en.d.ts +3 -0
  102. package/dist/translations/en.js +27 -0
  103. package/dist/translations/es.d.ts +3 -0
  104. package/dist/translations/es.js +27 -0
  105. package/dist/translations/index.d.ts +4 -0
  106. package/dist/translations/pt.d.ts +3 -0
  107. package/dist/translations/pt.js +27 -0
  108. package/dist/translations/sv.d.ts +3 -0
  109. package/dist/translations/sv.js +27 -0
  110. package/dist/types/jsx/custom-element-jsx.d.ts +1840 -858
  111. package/dist/types/vue/index.d.ts +69 -64
  112. package/dist/utilities/localize.d.ts +28 -0
  113. package/dist/utilities/localize.js +13 -0
  114. package/dist/vscode.html-custom-data.json +75 -83
  115. package/dist/web-types.json +229 -190
  116. package/package.json +29 -35
  117. package/custom-elements.json +0 -25490
@@ -21,7 +21,7 @@ import type { SkfLink, CustomEvent } from "../../components/link/link.component.
21
21
  import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
22
22
  import type { SkfNav } from "../../components/nav/nav.component.js";
23
23
  import type { SkfHeader } from "../../components/header/header.component.js";
24
- import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
24
+ import type { SkfInput, Event, CustomEvent } from "../../components/input/input.component.js";
25
25
  import type { SkfMenuItem, CustomEvent } from "../../components/menu-item/menu-item.component.js";
26
26
  import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
27
27
  import type { SkfPopover, CustomEvent } from "../../components/popover/popover.component.js";
@@ -45,7 +45,7 @@ import type { SkfTab, CustomEvent } from "../../components/tab/tab.component.js"
45
45
  import type { SkfTextArea } from "../../components/textarea/textarea.component.js";
46
46
  import type { SkfToastWrapper } from "../../components/toast-wrapper/toast-wrapper.component.js";
47
47
  import type { SkfToast } from "../../components/toast/toast.component.js";
48
- import type { SkfTooltip } from "../../components/tooltip/tooltip.component.js";
48
+ import type { SkfTooltip, CustomEvent } from "../../components/tooltip/tooltip.component.js";
49
49
 
50
50
  type SkfIconProps = {
51
51
  /** Sets the color of the icon */
@@ -92,10 +92,10 @@ type SkfAccordionProps = {
92
92
  };
93
93
 
94
94
  type SkfAlertProps = {
95
- /** Close button aria-label */
96
- "button-label"?: SkfAlert["buttonLabel"];
97
95
  /** If defined, displays leading icon */
98
96
  icon?: SkfAlert["icon"];
97
+ /** Sets the internal language of the component */
98
+ lang?: SkfAlert["lang"];
99
99
  /** If true, renders with an close button and sets aria-role to `status` */
100
100
  persistent?: SkfAlert["persistent"];
101
101
  /** If defined, gives the supplied appearance */
@@ -123,8 +123,6 @@ type SkfBreadcrumbProps = {
123
123
  };
124
124
 
125
125
  type SkfLoaderProps = {
126
- /** Defines the aria-label */
127
- "aria-label"?: SkfLoader["ariaLabel"];
128
126
  /** If true, inverts the color (to be used on colored backgrounds) */
129
127
  invert?: SkfLoader["invert"];
130
128
  /** Defines the size of the loader */
@@ -181,10 +179,10 @@ type SkfCheckboxProps = {
181
179
  indeterminate?: SkfCheckbox["indeterminate"];
182
180
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
183
181
  label?: SkfCheckbox["label"];
182
+ /** Sets the internal language of the component */
183
+ lang?: SkfCheckbox["lang"];
184
184
  /** If defined, adds name to the input-element */
185
185
  name?: SkfCheckbox["name"];
186
- /** If defined, renders an alternative A11y text for the asterisk */
187
- "required-label"?: SkfCheckbox["requiredLabel"];
188
186
  /** If defined, styles checkbox using provided severity */
189
187
  severity?: SkfCheckbox["severity"];
190
188
  /** If true, displays valid state after interaction */
@@ -232,6 +230,8 @@ type SkfDatepickerProps = {
232
230
  id?: SkfDatepicker["id"];
233
231
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
234
232
  label?: SkfDatepicker["label"];
233
+ /** Sets the internal language of the component */
234
+ lang?: SkfDatepicker["lang"];
235
235
  /** If true, hides the label visually */
236
236
  "hide-label"?: SkfDatepicker["hideLabel"];
237
237
  /** If defined, displays informational text below the field */
@@ -246,8 +246,6 @@ type SkfDatepickerProps = {
246
246
  range?: SkfDatepicker["range"];
247
247
  /** If true, makes the element not mutable, meaning the user can not edit the control */
248
248
  readonly?: SkfDatepicker["readonly"];
249
- /** If defined, renders an alternative A11y text for the asterisk */
250
- "required-label"?: SkfDatepicker["requiredLabel"];
251
249
  /** Earliest selectable date. (yyyy-mm-dd format) */
252
250
  "selectable-from"?: SkfDatepicker["selectableFrom"];
253
251
  /** Latest selectable date. (yyyy-mm-dd format) */
@@ -272,12 +270,12 @@ type SkfHeadingProps = {
272
270
  };
273
271
 
274
272
  type SkfDialogProps = {
275
- /** If defined, sets the aria-label for the close button */
276
- "close-button-aria-label"?: SkfDialog["closeButtonAriaLabel"];
277
273
  /** Title for the modal/dialog */
278
274
  heading?: SkfDialog["heading"];
279
275
  /** If true, makes the dialog stretch edge to edge on screen */
280
276
  fullscreen?: SkfDialog["fullscreen"];
277
+ /** Sets the internal language of the component */
278
+ lang?: SkfDialog["lang"];
281
279
  /** If true, removes the close button */
282
280
  "no-close-button"?: SkfDialog["noCloseButton"];
283
281
  /** If defined, removes the inner padding */
@@ -303,10 +301,10 @@ type SkfDividerProps = {
303
301
  };
304
302
 
305
303
  type SkfDrawerProps = {
306
- /** If defined, sets the aria-label for the close button */
307
- "close-button-aria-label"?: SkfDrawer["closeButtonAriaLabel"];
308
304
  /** Heading for the Drawer */
309
305
  heading?: SkfDrawer["heading"];
306
+ /** Sets the internal language of the component */
307
+ lang?: SkfDrawer["lang"];
310
308
  /** Sets the max-width */
311
309
  size?: SkfDrawer["size"];
312
310
  /** If true, Drawer is open */
@@ -367,6 +365,8 @@ type SkfNavItemProps = {
367
365
  };
368
366
 
369
367
  type SkfNavProps = {
368
+ /** Sets the internal language of the component */
369
+ lang?: SkfNav["lang"];
370
370
  /** If true, the navigation will be displayed vertically */
371
371
  vertical?: SkfNav["vertical"];
372
372
  };
@@ -374,8 +374,8 @@ type SkfNavProps = {
374
374
  type SkfHeaderProps = {
375
375
  /** If true, sets header to display in compact mode only (hanburger menu and drawer) */
376
376
  compact?: SkfHeader["compact"];
377
- /** If defined, sets the aria-label for the hamburger button */
378
- "hamburger-aria-label"?: SkfHeader["hamburgerAriaLabel"];
377
+ /** Sets the internal language of the component */
378
+ lang?: SkfHeader["lang"];
379
379
  /** If defined, sets the app or site's name */
380
380
  "site-name"?: SkfHeader["siteName"];
381
381
  /** If defined, sets the site's base-url for the "logo-link" */
@@ -390,12 +390,8 @@ type SkfInputProps = {
390
390
  /** Indicates whether the value of the control can be automatically completed by the browser. See
391
391
  [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
392
392
  autocomplete?: SkfInput["autocomplete"];
393
- /** Custom aria-label for the clear button. **Notice!** Only applicable to type=search. */
394
- "button-aria-label-clear"?: SkfInput["buttonAriaLabelClear"];
395
- /** Custom aria-label for the visibility button. **Notice!** Only applicable to type=password. */
396
- "button-aria-label-hide"?: SkfInput["buttonAriaLabelHide"];
397
- /** Custom aria-label for the visibility button **Notice!** Only applicable to type=password. */
398
- "button-aria-label-show"?: SkfInput["buttonAriaLabelShow"];
393
+ /** */
394
+ autofocus?: SkfInput["autofocus"];
399
395
  /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
400
396
  "custom-invalid"?: SkfInput["customInvalid"];
401
397
  /** If true, outputs helping hints in console */
@@ -409,6 +405,8 @@ type SkfInputProps = {
409
405
  inputmode?: SkfInput["inputmode"];
410
406
  /** If defined, sets the input's label. Alternatively, you can use the `label` attribute. */
411
407
  label?: SkfInput["label"];
408
+ /** Sets the internal language of the component */
409
+ lang?: SkfInput["lang"];
412
410
  /** If defined, displays a prefix/adornment before the input-element */
413
411
  leading?: SkfInput["leading"];
414
412
  /** If defined, sets the maximum value to accept for this input */
@@ -427,8 +425,6 @@ type SkfInputProps = {
427
425
  placeholder?: SkfInput["placeholder"];
428
426
  /** If true, makes the element not mutable, meaning the user can not edit the control */
429
427
  readonly?: SkfInput["readonly"];
430
- /** If defined, renders an alternative A11y text for the asterisk */
431
- "required-label"?: SkfInput["requiredLabel"];
432
428
  /** If defined, displays provided severity state */
433
429
  severity?: SkfInput["severity"];
434
430
  /** If true, displays valid state after interaction */
@@ -445,9 +441,11 @@ type SkfInputProps = {
445
441
  value?: SkfInput["value"];
446
442
 
447
443
  /** Fires when the value of the input changes */
448
- onchange?: (e: CustomEvent<CustomEvent>) => void;
444
+ onchange?: (e: CustomEvent<Event>) => void;
449
445
  /** Fires when the input is invalid */
450
- oninvalid?: (e: CustomEvent<CustomEvent>) => void;
446
+ oninvalid?: (e: CustomEvent<Event>) => void;
447
+ /** Fires when the input is cleared */
448
+ "onskf-cleared"?: (e: CustomEvent<CustomEvent>) => void;
451
449
  };
452
450
 
453
451
  type SkfMenuItemProps = {
@@ -483,7 +481,10 @@ type SkfMenuProps = {
483
481
  placement?: SkfMenu["undefined"];
484
482
  /** The id of the element the menu will be anchored to */
485
483
  anchor?: SkfMenu["undefined"];
486
-
484
+ /** Method that opens the menu */
485
+ "open()"?: SkfMenu["open()"];
486
+ /** Method that closes the menu */
487
+ "close()"?: SkfMenu["close()"];
487
488
  /** Fired when the menu is opened */
488
489
  "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
489
490
  /** Fired when the menu is closed */
@@ -493,16 +494,19 @@ type SkfMenuProps = {
493
494
  type SkfPopoverProps = {
494
495
  /** The placement of the popover */
495
496
  placement?: SkfPopover["undefined"];
496
- /** The id of the element the menu will be anchored to */
497
+ /** The id of the element the popover will be anchored to */
497
498
  anchor?: SkfPopover["undefined"];
498
499
  /** If defined, sets a custom offset for the popover */
499
500
  offset?: SkfPopover["offset"];
500
501
  /** If true, hides the arrow */
501
502
  hideArrow?: SkfPopover["hideArrow"];
502
-
503
- /** Fired when the menu is opened */
503
+ /** Method that opens the popover */
504
+ "open()"?: SkfPopover["open()"];
505
+ /** Method that closes the popover */
506
+ "close()"?: SkfPopover["close()"];
507
+ /** Fired when the popover is opened */
504
508
  "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
505
- /** Fired when the menu is closed */
509
+ /** Fired when the popover is closed */
506
510
  "onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
507
511
  };
508
512
 
@@ -528,10 +532,10 @@ type SkfRadioProps = {
528
532
  "custom-invalid"?: SkfRadio["customInvalid"];
529
533
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
530
534
  label?: SkfRadio["label"];
535
+ /** Sets the internal language of the component */
536
+ lang?: SkfRadio["lang"];
531
537
  /** If defined, adds name to the input-element */
532
538
  name?: SkfRadio["name"];
533
- /** If defined, renders an alternative A11y text for the asterisk */
534
- "required-label"?: SkfRadio["requiredLabel"];
535
539
  /** Size of the Radio */
536
540
  size?: SkfRadio["size"];
537
541
  /** If defined, displays provided severity state */
@@ -576,12 +580,14 @@ type SkfTagProps = {
576
580
  icon?: SkfTag["icon"];
577
581
  /** If defined, gives the supplied appearance */
578
582
  color?: SkfTag["color"];
583
+ /** Sets the internal language of the component */
584
+ lang?: SkfTag["lang"];
579
585
  /** If true, adds trailing button to remove tag */
580
586
  removable?: SkfTag["removable"];
581
587
  /** If defined, accepts a function that runs on click */
582
- onClick?: SkfTag["onClick"];
588
+ clickCallback?: SkfTag["clickCallback"];
583
589
  /** If defined, accepts a function that runs on click. Self removal can be overridden by using `event.stopPropagation()`. */
584
- onRemove?: SkfTag["onRemove"];
590
+ preRemoveCallback?: SkfTag["preRemoveCallback"];
585
591
  };
586
592
 
587
593
  type SkfSelectProps = {
@@ -601,16 +607,18 @@ type SkfSelectProps = {
601
607
  hint?: SkfSelect["hint"];
602
608
  /** If defined, displays provided label */
603
609
  label?: SkfSelect["label"];
610
+ /** Sets the internal language of the component */
611
+ lang?: SkfSelect["lang"];
604
612
  /** If defined, limits the number of selectable options */
605
613
  max?: SkfSelect["max"];
614
+ /** */
615
+ "max-visible-items"?: SkfSelect["maxVisibleItems"];
606
616
  /** If defined, sets the minimum number of required options */
607
617
  min?: SkfSelect["min"];
608
618
  /** If true, allows for multiple options to be selected */
609
619
  multiple?: SkfSelect["multiple"];
610
620
  /** If defined, set name of the component */
611
621
  name?: SkfSelect["name"];
612
- /** If defined, renders an alternative A11y text for the asterisk */
613
- "required-label"?: SkfSelect["requiredLabel"];
614
622
  /** If defined, displays provided severity state */
615
623
  severity?: SkfSelect["severity"];
616
624
  /** If true, displays valid state after interaction */
@@ -621,7 +629,7 @@ type SkfSelectProps = {
621
629
  selectedValues?: SkfSelect["selectedValues"];
622
630
  /** A readonly property that returns the selected slot(s) text content in a array */
623
631
  selectedOptionsText?: SkfSelect["selectedOptionsText"];
624
- /** Read only, returns the selected value. (if multiple: in a comma separated string) */
632
+ /** Returns the selected value. (if multiple: in a comma separated string). If set will default set corresponding option. */
625
633
  value?: SkfSelect["value"];
626
634
  /** */
627
635
  _selectedOptions?: SkfSelect["_selectedOptions"];
@@ -635,6 +643,8 @@ type SkfSelectProps = {
635
643
  "onskf-select-dropdown"?: (e: CustomEvent<CustomEvent>) => void;
636
644
  /** {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled */
637
645
  "onskf-select-option-select"?: (e: CustomEvent<CustomEvent>) => void;
646
+ /** Fires when the select options are connected, useful for setting selected option(s) via value property. E.g mySkfSelect.value = 'option1,option2'; */
647
+ "onskf-select-connected"?: (e: CustomEvent<CustomEvent>) => void;
638
648
  };
639
649
 
640
650
  type SkfSelectOptionProps = {
@@ -648,17 +658,13 @@ type SkfSelectOptionProps = {
648
658
  selected?: SkfSelectOption["selected"];
649
659
  /** If defined, sets a short label */
650
660
  "short-label"?: SkfSelectOption["shortLabel"];
651
- /** Returns or sets the tags value. If value is omitted, defaults to the tags text. */
661
+ /** Returns or sets the option value. If value is omitted, defaults to the tags slotted text. */
652
662
  value?: SkfSelectOption["value"];
653
663
  /** The option's label text (equivalent to the tags textContent) */
654
664
  text?: SkfSelectOption["text"];
655
665
  /** */
656
666
  small?: SkfSelectOption["small"];
657
667
  /** */
658
- role?: SkfSelectOption["role"];
659
- /** */
660
- _parent?: SkfSelectOption["_parent"];
661
- /** */
662
668
  _shortcutUpdate?: SkfSelectOption["_shortcutUpdate"];
663
669
  /** {detail: { value: string | null, option: SkfSelectOption }} Fires when the option is selected/deselected. */
664
670
  "onskf-select-option-select"?: (e: CustomEvent<never>) => void;
@@ -671,8 +677,6 @@ type SkfStepperItemProps = {
671
677
  completed?: SkfStepperItem["completed"];
672
678
  /** */
673
679
  _setInternalState?: SkfStepperItem["_setInternalState"];
674
- /** */
675
- role?: SkfStepperItem["role"];
676
680
  /** Dispatched when the stepper item is selected */
677
681
  "onskf-stepper-item-select"?: (e: CustomEvent<never>) => void;
678
682
  };
@@ -700,10 +704,10 @@ type SkfSwitchProps = {
700
704
  "hide-label"?: SkfSwitch["hideLabel"];
701
705
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
702
706
  label?: SkfSwitch["label"];
707
+ /** Sets the internal language of the component */
708
+ lang?: SkfSwitch["lang"];
703
709
  /** If defined, adds name to the input-element */
704
710
  name?: SkfSwitch["name"];
705
- /** If defined, renders an alternative A11y text for the asterisk */
706
- "required-label"?: SkfSwitch["requiredLabel"];
707
711
  /** Size of the Switch */
708
712
  size?: SkfSwitch["size"];
709
713
  /** The current value of the input field */
@@ -715,8 +719,6 @@ type SkfTabPanelProps = {
715
719
  name?: SkfTabPanel["name"];
716
720
  /** */
717
721
  active?: SkfTabPanel["active"];
718
- /** */
719
- role?: SkfTabPanel["role"];
720
722
  };
721
723
 
722
724
  type SkfTabsProps = {
@@ -739,8 +741,6 @@ type SkfTabProps = {
739
741
  selected?: SkfTab["selected"];
740
742
  /** */
741
743
  variant?: SkfTab["variant"];
742
- /** */
743
- role?: SkfTab["role"];
744
744
  /** {detail: { selected: true, tab: SkfTab }} Fires when the tab is selected */
745
745
  "onskf-tab-select"?: (e: CustomEvent<CustomEvent>) => void;
746
746
  /** Fired when the component is clicked */
@@ -764,6 +764,8 @@ type SkfTextAreaProps = {
764
764
  hint?: SkfTextArea["hint"];
765
765
  /** If defined, sets the input's label unless the default slot is used. Alternatively, you can use the `label` attribute. */
766
766
  label?: SkfTextArea["label"];
767
+ /** Sets the internal language of the component */
768
+ lang?: SkfTextArea["lang"];
767
769
  /** If defined, adds name to the input-element */
768
770
  name?: SkfTextArea["name"];
769
771
  /** If defined, sets the maximum character length to accept for this input */
@@ -774,8 +776,6 @@ type SkfTextAreaProps = {
774
776
  placeholder?: SkfTextArea["placeholder"];
775
777
  /** If true, makes the element not mutable, meaning the user can not edit the control */
776
778
  readonly?: SkfTextArea["readonly"];
777
- /** If defined, renders an alternative A11y text for the asterisk */
778
- "required-label"?: SkfTextArea["requiredLabel"];
779
779
  /** If defined, sets the rows of the textarea */
780
780
  rows?: SkfTextArea["rows"];
781
781
  /** If defined, displays provided severity state */
@@ -821,17 +821,19 @@ type SkfTooltipProps = {
821
821
  /** The id of the element the dropdown will be anchored to */
822
822
  anchor?: SkfTooltip["undefined"];
823
823
  /** */
824
- role?: SkfTooltip["role"];
825
- /** */
826
824
  offset?: SkfTooltip["offset"];
827
825
  /** */
828
826
  placement?: SkfTooltip["placement"];
829
827
  /** */
830
828
  variant?: SkfTooltip["variant"];
831
- /** Fired when the dropdown is opened */
832
- "onskf-opened"?: (e: CustomEvent<never>) => void;
833
- /** Fired when the dropdown is closed */
834
- "onskf-closed"?: (e: CustomEvent<never>) => void;
829
+ /** Method that opens the tooltip */
830
+ "open()"?: SkfTooltip["open()"];
831
+ /** Method that closes the tooltip */
832
+ "close()"?: SkfTooltip["close()"];
833
+ /** Fired when the tooltip is opened */
834
+ "onskf-opened"?: (e: CustomEvent<CustomEvent>) => void;
835
+ /** Fired when the tooltip is closed */
836
+ "onskf-closed"?: (e: CustomEvent<CustomEvent>) => void;
835
837
  };
836
838
 
837
839
  export type CustomElements = {
@@ -1107,6 +1109,7 @@ export type CustomElements = {
1107
1109
  * ### **Events:**
1108
1110
  * - **change** - Fires when the value of the input changes
1109
1111
  * - **invalid** - Fires when the input is invalid
1112
+ * - **skf-cleared** - Fires when the input is cleared
1110
1113
  *
1111
1114
  * ### **Slots:**
1112
1115
  * - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.
@@ -1138,7 +1141,7 @@ export type CustomElements = {
1138
1141
  * - **skf-closed** - Fired when the menu is closed
1139
1142
  *
1140
1143
  * ### **Slots:**
1141
- * - _default_ - The menu popover content
1144
+ * - _default_ - The menu content
1142
1145
  */
1143
1146
  "skf-menu": DefineComponent<SkfMenuProps>;
1144
1147
 
@@ -1150,8 +1153,8 @@ export type CustomElements = {
1150
1153
  *
1151
1154
  *
1152
1155
  * ### **Events:**
1153
- * - **skf-opened** - Fired when the menu is opened
1154
- * - **skf-closed** - Fired when the menu is closed
1156
+ * - **skf-opened** - Fired when the popover is opened
1157
+ * - **skf-closed** - Fired when the popover is closed
1155
1158
  *
1156
1159
  * ### **Slots:**
1157
1160
  * - _default_ - The popover content
@@ -1238,6 +1241,7 @@ export type CustomElements = {
1238
1241
  * - **reset** - Fired when the form is reset
1239
1242
  * - **skf-select-dropdown** - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
1240
1243
  * - **skf-select-option-select** - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
1244
+ * - **skf-select-connected** - Fires when the select options are connected, useful for setting selected option(s) via value property. E.g mySkfSelect.value = 'option1,option2';
1241
1245
  *
1242
1246
  * ### **Slots:**
1243
1247
  * - _default_ - The select's placeholder content
@@ -1246,6 +1250,7 @@ export type CustomElements = {
1246
1250
 
1247
1251
  /**
1248
1252
  * The `<skf-select-option>` is a component is used nested in a skf-select or skf-select-option-group.
1253
+ * It represents an individual option in a select dropdown.
1249
1254
  * ---
1250
1255
  *
1251
1256
  *
@@ -1371,8 +1376,8 @@ export type CustomElements = {
1371
1376
  *
1372
1377
  *
1373
1378
  * ### **Events:**
1374
- * - **skf-opened** - Fired when the dropdown is opened
1375
- * - **skf-closed** - Fired when the dropdown is closed
1379
+ * - **skf-opened** - Fired when the tooltip is opened
1380
+ * - **skf-closed** - Fired when the tooltip is closed
1376
1381
  *
1377
1382
  * ### **Slots:**
1378
1383
  * - _default_ - The tooltip popover content
@@ -0,0 +1,28 @@
1
+ import type { Translation as DefaultTranslation } from '@shoelace-style/localize';
2
+ import { LocalizeController as DefaultLocalizationController } from '@shoelace-style/localize';
3
+ import * as translations from '../translations/index.js';
4
+ export declare class LocalizeController extends DefaultLocalizationController<Translation> {
5
+ }
6
+ export { registerTranslation } from '@shoelace-style/localize';
7
+ export interface Translation extends DefaultTranslation {
8
+ $code: string;
9
+ $name: string;
10
+ $dir: 'ltr' | 'rtl';
11
+ choose: string;
12
+ clearEntry: string;
13
+ close: string;
14
+ hidePassword: string;
15
+ itemsSelected: (count: number) => string;
16
+ loading: string;
17
+ mainNavigation: string;
18
+ nextMonth: string;
19
+ nextYear: string;
20
+ previousMonth: string;
21
+ previousYear: string;
22
+ required: string;
23
+ selectedDay: string;
24
+ showMenu: string;
25
+ showPassword: string;
26
+ today: string;
27
+ }
28
+ export type Language = keyof typeof translations;
@@ -0,0 +1,13 @@
1
+ import { LocalizeController as r, registerTranslation as o } from "@shoelace-style/localize";
2
+ import { registerTranslation as z } from "@shoelace-style/localize";
3
+ import t from "../translations/en.js";
4
+ import a from "../translations/es.js";
5
+ import i from "../translations/pt.js";
6
+ import l from "../translations/sv.js";
7
+ class c extends r {
8
+ }
9
+ o(t, a, i, l);
10
+ export {
11
+ c as LocalizeController,
12
+ z as registerTranslation
13
+ };