@skf-design-system/ui-components 1.0.2-beta.0 → 1.0.2-beta.1

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 (181) hide show
  1. package/README.md +12 -8
  2. package/dist/components/accordion/accordion-item.component.d.ts +36 -0
  3. package/dist/components/accordion/accordion-item.component.js +87 -0
  4. package/dist/components/accordion/accordion-item.d.ts +3 -3
  5. package/dist/components/accordion/accordion-item.js +4 -5
  6. package/dist/components/accordion/accordion-item.styles.js +77 -0
  7. package/dist/components/accordion/accordion.component.d.ts +5 -9
  8. package/dist/components/accordion/accordion.component.js +4 -5
  9. package/dist/components/accordion/accordion.d.ts +0 -1
  10. package/dist/components/accordion/accordion.js +0 -2
  11. package/dist/components/alert/alert.component.d.ts +4 -7
  12. package/dist/components/alert/alert.component.js +8 -9
  13. package/dist/components/alert/alert.styles.js +0 -5
  14. package/dist/components/breadcrumb/breadcrumb-item.component.js +61 -0
  15. package/dist/components/breadcrumb/breadcrumb-item.js +6 -0
  16. package/dist/components/breadcrumb/breadcrumb-item.styles.js +62 -0
  17. package/dist/components/breadcrumb/breadcrumb.component.d.ts +1 -1
  18. package/dist/components/breadcrumb/breadcrumb.component.js +60 -0
  19. package/dist/components/breadcrumb/breadcrumb.js +6 -0
  20. package/dist/components/breadcrumb/breadcrumb.styles.js +22 -0
  21. package/dist/components/button/button.component.d.ts +13 -10
  22. package/dist/components/button/button.component.js +83 -76
  23. package/dist/components/button/button.styles.d.ts +1 -2
  24. package/dist/components/button/button.styles.js +1 -1
  25. package/dist/components/card/card.component.d.ts +1 -1
  26. package/dist/components/card/card.component.js +1 -1
  27. package/dist/components/checkbox/checkbox.component.d.ts +8 -6
  28. package/dist/components/checkbox/checkbox.component.js +2 -2
  29. package/dist/components/checkbox/checkbox.styles.d.ts +1 -2
  30. package/dist/components/checkbox/checkbox.styles.js +1 -5
  31. package/dist/components/date-picker/datepicker.calendar.component.js +1 -1
  32. package/dist/components/date-picker/datepicker.component.js +1 -1
  33. package/dist/components/date-picker-input/datepicker-input.component.d.ts +1 -0
  34. package/dist/components/date-picker-input/datepicker-input.component.js +3 -2
  35. package/dist/components/dialog/dialog.component.d.ts +5 -4
  36. package/dist/components/dialog/dialog.component.js +44 -44
  37. package/dist/components/dialog/dialog.styles.js +4 -4
  38. package/dist/components/divider/divider.component.js +1 -1
  39. package/dist/components/drawer/drawer.component.d.ts +12 -8
  40. package/dist/components/drawer/drawer.component.js +5 -4
  41. package/dist/components/header/header.component.d.ts +3 -2
  42. package/dist/components/header/header.component.js +34 -28
  43. package/dist/components/heading/heading.component.d.ts +3 -5
  44. package/dist/components/heading/heading.component.js +22 -21
  45. package/dist/components/icon/icon.component.d.ts +11 -17
  46. package/dist/components/icon/icon.component.js +2 -2
  47. package/dist/components/icon/icon.styles.d.ts +1 -2
  48. package/dist/components/icon/icon.styles.js +1 -1
  49. package/dist/components/input/input.component.d.ts +30 -31
  50. package/dist/components/input/input.component.js +136 -123
  51. package/dist/components/link/link.component.d.ts +12 -14
  52. package/dist/components/link/link.component.js +34 -34
  53. package/dist/components/link/link.styles.d.ts +1 -2
  54. package/dist/components/link/link.styles.js +2 -2
  55. package/dist/components/loader/loader.component.d.ts +1 -1
  56. package/dist/components/loader/loader.component.js +36 -40
  57. package/dist/components/loader/loader.styles.d.ts +1 -2
  58. package/dist/components/loader/loader.styles.js +40 -32
  59. package/dist/components/logo/logo.component.d.ts +4 -5
  60. package/dist/components/logo/logo.component.js +1 -1
  61. package/dist/components/menu/menu-item.component.d.ts +13 -0
  62. package/dist/components/{menu-item → menu}/menu-item.component.js +3 -3
  63. package/dist/components/menu/menu.component.d.ts +9 -6
  64. package/dist/components/menu/menu.component.js +8 -10
  65. package/dist/components/{nav-item → nav}/nav-item.component.d.ts +0 -2
  66. package/dist/components/{nav-item → nav}/nav-item.component.js +1 -1
  67. package/dist/components/nav/nav.component.js +1 -1
  68. package/dist/components/popover/popover.component.d.ts +10 -6
  69. package/dist/components/popover/popover.component.js +22 -24
  70. package/dist/components/progress/progress.component.d.ts +2 -2
  71. package/dist/components/progress/progress.component.js +31 -37
  72. package/dist/components/progress/progress.styles.js +40 -35
  73. package/dist/components/radio/radio.component.d.ts +9 -7
  74. package/dist/components/radio/radio.component.js +2 -2
  75. package/dist/components/{segmented-button-item → segmented-button}/segmented-button-item.component.d.ts +4 -4
  76. package/dist/components/segmented-button/segmented-button-item.component.js +56 -0
  77. package/dist/components/segmented-button/segmented-button-item.js +6 -0
  78. package/dist/components/segmented-button/segmented-button-item.styles.js +62 -0
  79. package/dist/components/segmented-button/segmented-button.component.d.ts +0 -2
  80. package/dist/components/segmented-button/segmented-button.component.js +73 -0
  81. package/dist/components/segmented-button/segmented-button.js +6 -0
  82. package/dist/components/segmented-button/segmented-button.styles.js +16 -0
  83. package/dist/components/{select-option-group → select}/select-option-group.component.js +1 -1
  84. package/dist/components/{select-option → select}/select-option.component.d.ts +7 -8
  85. package/dist/components/{select-option → select}/select-option.component.js +15 -15
  86. package/dist/components/select/select.component.d.ts +16 -15
  87. package/dist/components/select/select.component.js +17 -17
  88. package/dist/components/select/select.controllers.d.ts +1 -1
  89. package/dist/components/select/select.controllers.js +14 -11
  90. package/dist/components/select/select.stories.icons.d.ts +7 -0
  91. package/dist/components/{stepper-item → stepper}/stepper-item.component.js +8 -8
  92. package/dist/components/stepper/stepper.component.d.ts +2 -2
  93. package/dist/components/stepper/stepper.component.js +15 -15
  94. package/dist/components/stepper/stepper.helpers.d.ts +1 -1
  95. package/dist/components/switch/switch.component.js +15 -15
  96. package/dist/components/tab/tab.component.js +1 -1
  97. package/dist/components/tab-group/tab-group.component.js +1 -1
  98. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  99. package/dist/components/tag/tag.component.d.ts +10 -14
  100. package/dist/components/tag/tag.component.js +32 -35
  101. package/dist/components/textarea/textarea.component.d.ts +10 -11
  102. package/dist/components/textarea/textarea.component.js +62 -64
  103. package/dist/components/{toast-item → toast}/toast-item.d.ts +2 -0
  104. package/dist/components/{toast-item → toast}/toast-item.js +4 -0
  105. package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.js +1 -1
  106. package/dist/components/toast/toast-wrapper.styles.d.ts +1 -0
  107. package/dist/components/toast/toast.component.d.ts +5 -4
  108. package/dist/components/toast/toast.component.js +15 -15
  109. package/dist/components/toast/toast.singleton.d.ts +4 -4
  110. package/dist/components/toast/toast.singleton.js +12 -12
  111. package/dist/components/tooltip/tooltip.component.d.ts +2 -1
  112. package/dist/components/tooltip/tooltip.component.js +15 -10
  113. package/dist/custom-elements.json +733 -820
  114. package/dist/index.d.ts +13 -7
  115. package/dist/index.js +100 -84
  116. package/dist/internal/base-classes/popover/popover.base.d.ts +10 -5
  117. package/dist/internal/base-classes/popover/popover.base.js +77 -60
  118. package/dist/internal/components/hint/hint.component.d.ts +2 -2
  119. package/dist/internal/components/hint/hint.component.js +2 -2
  120. package/dist/internal/components/hint/hint.styles.d.ts +1 -2
  121. package/dist/internal/components/hint/hint.styles.js +1 -1
  122. package/dist/internal/constants/iconSeverity.d.ts +3 -2
  123. package/dist/internal/constants/iconSeverity.js +2 -3
  124. package/dist/internal/helpers/hintSeverity.d.ts +2 -2
  125. package/dist/internal/helpers/hintSeverity.js +1 -1
  126. package/dist/internal/types/formField.d.ts +1 -1
  127. package/dist/internal/types.d.ts +18 -0
  128. package/dist/styles/component.styles.d.ts +1 -2
  129. package/dist/styles/component.styles.js +1 -1
  130. package/dist/styles/global.css +1 -1
  131. package/dist/types/jsx/custom-element-jsx.d.ts +162 -180
  132. package/dist/types/vue/index.d.ts +162 -180
  133. package/dist/vscode.html-custom-data.json +133 -1091
  134. package/dist/web-types.json +368 -424
  135. package/package.json +24 -25
  136. package/dist/components/collapse/collapse.component.d.ts +0 -40
  137. package/dist/components/collapse/collapse.component.js +0 -86
  138. package/dist/components/collapse/collapse.d.ts +0 -8
  139. package/dist/components/collapse/collapse.js +0 -6
  140. package/dist/components/collapse/collapse.styles.d.ts +0 -2
  141. package/dist/components/collapse/collapse.styles.js +0 -77
  142. package/dist/components/menu-item/menu-item.component.d.ts +0 -25
  143. package/dist/internal/constants/heading.d.ts +0 -2
  144. /package/dist/components/{breadcrumb-item/breadcrumb-item.styles.d.ts → accordion/accordion-item.styles.d.ts} +0 -0
  145. /package/dist/components/{collapse/collapse.test.d.ts → accordion/accordion-item.test.d.ts} +0 -0
  146. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.component.d.ts +0 -0
  147. /package/dist/components/{breadcrumb-item → breadcrumb}/breadcrumb-item.d.ts +0 -0
  148. /package/dist/components/{menu-item/menu-item.styles.d.ts → breadcrumb/breadcrumb-item.styles.d.ts} +0 -0
  149. /package/dist/components/{menu-item → menu}/menu-item.d.ts +0 -0
  150. /package/dist/components/{menu-item → menu}/menu-item.js +0 -0
  151. /package/dist/components/{nav-item/nav-item.styles.d.ts → menu/menu-item.styles.d.ts} +0 -0
  152. /package/dist/components/{menu-item → menu}/menu-item.styles.js +0 -0
  153. /package/dist/components/{nav-item → nav}/nav-item.d.ts +0 -0
  154. /package/dist/components/{nav-item → nav}/nav-item.js +0 -0
  155. /package/dist/components/{segmented-button-item/segmented-button-item.styles.d.ts → nav/nav-item.styles.d.ts} +0 -0
  156. /package/dist/components/{nav-item → nav}/nav-item.styles.js +0 -0
  157. /package/dist/components/{segmented-button-item → segmented-button}/segmented-button-item.d.ts +0 -0
  158. /package/dist/components/{select-option-group/select-option-group.style.d.ts → segmented-button/segmented-button-item.styles.d.ts} +0 -0
  159. /package/dist/components/{select-option-group → select}/select-option-group.component.d.ts +0 -0
  160. /package/dist/components/{select-option-group → select}/select-option-group.d.ts +0 -0
  161. /package/dist/components/{select-option-group → select}/select-option-group.js +0 -0
  162. /package/dist/components/{select-option/select-option.styles.d.ts → select/select-option-group.style.d.ts} +0 -0
  163. /package/dist/components/{select-option-group → select}/select-option-group.style.js +0 -0
  164. /package/dist/components/{select-option → select}/select-option.controllers.d.ts +0 -0
  165. /package/dist/components/{select-option → select}/select-option.d.ts +0 -0
  166. /package/dist/components/{select-option → select}/select-option.js +0 -0
  167. /package/dist/components/{stepper-item/stepper-item.styles.d.ts → select/select-option.styles.d.ts} +0 -0
  168. /package/dist/components/{select-option → select}/select-option.styles.js +0 -0
  169. /package/dist/components/{stepper-item → stepper}/stepper-item.component.d.ts +0 -0
  170. /package/dist/components/{stepper-item → stepper}/stepper-item.d.ts +0 -0
  171. /package/dist/components/{stepper-item → stepper}/stepper-item.js +0 -0
  172. /package/dist/components/{toast-wrapper/toast-wrapper.styles.d.ts → stepper/stepper-item.styles.d.ts} +0 -0
  173. /package/dist/components/{stepper-item → stepper}/stepper-item.styles.js +0 -0
  174. /package/dist/components/{toast-item → toast}/toast-item.component.d.ts +0 -0
  175. /package/dist/components/{toast-item → toast}/toast-item.component.js +0 -0
  176. /package/dist/components/{toast-item → toast}/toast-item.styles.d.ts +0 -0
  177. /package/dist/components/{toast-item → toast}/toast-item.styles.js +0 -0
  178. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.component.d.ts +0 -0
  179. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.d.ts +0 -0
  180. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.js +0 -0
  181. /package/dist/components/{toast-wrapper → toast}/toast-wrapper.styles.js +0 -0
@@ -1,10 +1,10 @@
1
1
  import { FormBase } from '../../internal/components/formBase.js';
2
2
  import { PopoverController } from '../../internal/controllers/popover.controller.js';
3
- import type { FormFieldBaseProps } from '../../internal/types/formField.js';
3
+ import type { FormFieldSeverity } from '../../internal/types.js';
4
4
  import { type CSSResultGroup } from 'lit';
5
5
  import '../../internal/components/hint/hint';
6
- import type { SelectOptionEvent, SkfSelectOption } from '../select-option/select-option.component.js';
7
6
  import '../tag/tag';
7
+ import type { SelectOptionEvent, SkfSelectOption } from './select-option.component.js';
8
8
  import { DeveloperFeedbackController, GlobalClickController, KeyboardNavigationController } from './select.controllers.js';
9
9
  /**
10
10
  * TODO: abstract the popover logic to a separate component/helper/partial, and use it in both select and in input[datalist], combobox etc
@@ -14,17 +14,18 @@ import { DeveloperFeedbackController, GlobalClickController, KeyboardNavigationC
14
14
  /**
15
15
  * 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.
16
16
  *
17
- * @documentation See [InVision DSM](https://skf.invisionapp.com/dsm/ab-skf/4-web-applications/nav/5fa7caf78c01200018354495/asset/6229d63d9fe16020a60657e5) for design principles
17
+ * See [zeroheight](https://zeroheight.com/853e936c9/p/91c9f0-select-and-combobox) for design principles
18
18
  *
19
- * @attribute {boolean} [disabled] - If true, the select is disabled `default: false`
19
+ * @attribute {boolean} [disabled=false] - If true, the select is disabled
20
+ * @attribute {boolean} [required=false] - If true, the select is required
20
21
  *
21
22
  * @slot - The select's placeholder content
22
23
  *
23
- * @event change - Fired when the selected option(s) changes
24
- * @event invalid - Fired when the select is invalid
25
- * @event reset - Fired when the form is reset
26
- * @event skf-select:dropdown - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
27
- * @event skf-select-option:select - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
24
+ * @event {Event} change - Fired when the selected option(s) changes
25
+ * @event {Event} invalid - Fired when the select is invalid
26
+ * @event {Event} reset - Fired when the form is reset
27
+ * @event {CustomEvent} skf-select-dropdown - {detail: {expanded: boolean}} Fired when the select dropdown is toggled
28
+ * @event {CustomEvent} skf-select-option-select - {detail: {value: string | null, option: SkfSelectOption}} Fired when the select dropdown is toggled
28
29
  *
29
30
  * @tagname skf-select
30
31
  */
@@ -39,9 +40,9 @@ export declare class SkfSelect extends FormBase {
39
40
  /** If defined, forces component to invalid state until removed */
40
41
  customInvalid?: string;
41
42
  /** If true, hides the label visually */
42
- hideLabel?: boolean;
43
+ hideLabel: boolean;
43
44
  /** If true and mulltiple is true, no tags are displayed under the select */
44
- hideTags?: boolean;
45
+ hideTags: boolean;
45
46
  /** If defined, sets the hint text under the select component in the form */
46
47
  hint?: string;
47
48
  /** A readonly property that returns the selected value(s) in a array */
@@ -57,22 +58,22 @@ export declare class SkfSelect extends FormBase {
57
58
  /** If defined, sets the minimum number of required options */
58
59
  min?: number;
59
60
  /** If true, allows for multiple options to be selected */
60
- multiple?: boolean;
61
+ multiple: boolean;
61
62
  /** If defined, set name of the component */
62
63
  name?: string;
63
64
  /** If defined, renders an alternative A11y text for the asterisk */
64
65
  requiredLabel?: string;
65
66
  /** If defined, displays provided severity state */
66
- severity?: FormFieldBaseProps['severity'];
67
+ severity?: FormFieldSeverity;
67
68
  /** If true, displays valid state after interaction */
68
- showValid?: boolean;
69
+ showValid: boolean;
69
70
  /** Size of the Select */
70
71
  size: 'sm' | 'md';
71
72
  /** Read only, returns the selected value. (if multiple: in a comma separated string) */
72
73
  set value(newValue: string);
73
74
  get value(): string;
74
- /** Stores the selected SkfSelectOption tag(s) in a array. Is the source of truth for the internal state. */
75
75
  /** @internal */
76
+ /** Stores the selected SkfSelectOption tag(s) in a array. Is the source of truth for the internal state. */
76
77
  private _selectedOptions;
77
78
  /** @internal */
78
79
  /** The selected options in an array. Treat it as a read only property. See selectedValues, slectedSlots for computed value arrays. */
@@ -6,23 +6,23 @@ import { hintSeverity as x } from "../../internal/helpers/hintSeverity.js";
6
6
  import { raiseError as w } from "../../internal/helpers/raiseError.js";
7
7
  import { watch as $ } from "../../internal/helpers/watch.js";
8
8
  import { Asterisk as V } from "../../internal/templates/asterisk.js";
9
- import S from "../../styles/component.styles.js";
9
+ import { componentStyles as S } from "../../styles/component.styles.js";
10
10
  import { nothing as C, html as n } from "lit";
11
11
  import { property as o, state as h, query as p } from "lit/decorators.js";
12
12
  import { classMap as E } from "lit/directives/class-map.js";
13
13
  import { ifDefined as m } from "lit/directives/if-defined.js";
14
14
  import "../../internal/components/hint/hint.js";
15
15
  import "../tag/tag.js";
16
- import { GlobalClickController as k, KeyboardNavigationController as L, DeveloperFeedbackController as A } from "./select.controllers.js";
16
+ import { GlobalClickController as L, KeyboardNavigationController as k, DeveloperFeedbackController as A } from "./select.controllers.js";
17
17
  import { styles as P } from "./select.styles.js";
18
18
  var T = Object.defineProperty, D = Object.getOwnPropertyDescriptor, s = (u, t, e, l) => {
19
- for (var a = l > 1 ? void 0 : l ? D(t, e) : t, r = u.length - 1, d; r >= 0; r--)
20
- (d = u[r]) && (a = (l ? d(t, e, a) : d(a)) || a);
21
- return l && a && T(t, e, a), a;
19
+ for (var r = l > 1 ? void 0 : l ? D(t, e) : t, a = u.length - 1, d; a >= 0; a--)
20
+ (d = u[a]) && (r = (l ? d(t, e, r) : d(r)) || r);
21
+ return l && r && T(t, e, r), r;
22
22
  };
23
23
  const c = class c extends b {
24
24
  constructor() {
25
- super(), this.selectDelay = 200, this._optionsList = [], this.buttonLabel = "Select an option", this.size = "md", this._expanded = !1, this._invalid = !1, this.globalClickController = new k(this), this.keyboardNavController = new L(this), this.developerFeedbackController = new A(this), this.popoverController = new y(this), this._handleOptionSelected = (t) => {
25
+ super(), this.selectDelay = 200, this._optionsList = [], this.buttonLabel = "Select an option", this.hideLabel = !1, this.hideTags = !1, this.multiple = !1, this.showValid = !1, this.size = "md", this._expanded = !1, this._invalid = !1, this.globalClickController = new L(this), this.keyboardNavController = new k(this), this.developerFeedbackController = new A(this), this.popoverController = new y(this), this._handleOptionSelected = (t) => {
26
26
  this._pristine = !1;
27
27
  const e = this._selectedOptions.length > 0;
28
28
  this.setFormValue(e ? this.selectedValues.join(",") : null), this._updateState(t);
@@ -121,18 +121,18 @@ const c = class c extends b {
121
121
  }
122
122
  firstUpdated() {
123
123
  var t;
124
- this.addEventListener("skf-select-option:select", this._handleOptionSelected), (t = this._internals.form) == null || t.addEventListener("reset", this._handleReset), this.onUpdateComplete(), this._validateInput();
124
+ this.addEventListener("skf-select-option-select", this._handleOptionSelected), (t = this._internals.form) == null || t.addEventListener("reset", this._handleReset), this.onUpdateComplete(), this._validateInput();
125
125
  }
126
126
  handleExpandedChange() {
127
127
  this._expanded ? (this.$popover.togglePopover(this._expanded), this.popoverController.start()) : (this.$popover.togglePopover(this._expanded), this.popoverController.stop().catch((t) => {
128
128
  console.error(t);
129
- })), this.emit("skf-select:dropdown", { detail: { expanded: this._expanded } });
129
+ })), this.emit("skf-select-dropdown", { detail: { expanded: this._expanded } });
130
130
  }
131
131
  attributeChangedCallback(t, e, l) {
132
132
  if (super.attributeChangedCallback(t, e, l), t === "custom-invalid")
133
133
  if (typeof l == "string") {
134
- const r = this.withFallback(l);
135
- this._pristine = !1, this._invalid = !0, this.setValidity({ customError: !0 }, r), this.checkValidity();
134
+ const a = this.withFallback(l);
135
+ this._pristine = !1, this._invalid = !0, this.setValidity({ customError: !0 }, a), this.checkValidity();
136
136
  } else
137
137
  this.setValidity({}), this._validateInput();
138
138
  }
@@ -173,14 +173,14 @@ const c = class c extends b {
173
173
  this._invalid = !0;
174
174
  return;
175
175
  } else if (t) {
176
- const r = this.hasAttribute("data-valuemissing") ? this.getAttribute("data-valuemissing") : "Please select an option";
177
- this.setValidity({ valueMissing: !0 }, String(r)), this._pristine || (this._invalid = !0);
176
+ const a = this.hasAttribute("data-valuemissing") ? this.getAttribute("data-valuemissing") : "Please select an option";
177
+ this.setValidity({ valueMissing: !0 }, String(a)), this._pristine || (this._invalid = !0);
178
178
  } else if (e) {
179
- const r = this.hasAttribute("data-rangeunderflow") ? this.getAttribute("data-rangeunderflow") : `Please select minimum ${String(this.min)} options`;
180
- this.setValidity({ rangeUnderflow: !0 }, String(r)), this._pristine || (this._invalid = !0);
179
+ const a = this.hasAttribute("data-rangeunderflow") ? this.getAttribute("data-rangeunderflow") : `Please select minimum ${String(this.min)} options`;
180
+ this.setValidity({ rangeUnderflow: !0 }, String(a)), this._pristine || (this._invalid = !0);
181
181
  } else if (l) {
182
- const r = this.hasAttribute("data-rangeoverflow") ? this.getAttribute("data-rangeoverflow") : `Please select maximum ${String(this.max)} options`;
183
- this.setValidity({ rangeOverflow: !0 }, String(r)), this._pristine || (this._invalid = !0);
182
+ const a = this.hasAttribute("data-rangeoverflow") ? this.getAttribute("data-rangeoverflow") : `Please select maximum ${String(this.max)} options`;
183
+ this.setValidity({ rangeOverflow: !0 }, String(a)), this._pristine || (this._invalid = !0);
184
184
  } else
185
185
  this.setValidity({}), !this._pristine && this.showValid && this.setAttribute("valid", "true");
186
186
  }
@@ -235,7 +235,7 @@ const c = class c extends b {
235
235
  <skf-hint
236
236
  aria-live=${this._invalid ? "assertive" : "polite"}
237
237
  id="hint"
238
- severity=${m(x(this.severity, this._invalid))}
238
+ severity=${m(x(this._invalid, this.severity))}
239
239
  >
240
240
  ${this.customInvalid ?? this.hint}
241
241
  </skf-hint>
@@ -1,5 +1,5 @@
1
- import type { SkfSelectOption } from '../select-option/select-option.component.js';
2
1
  import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ import type { SkfSelectOption } from './select-option.component.js';
3
3
  /**
4
4
  * Workaround for storybook helper not being able to import types
5
5
  * E.g type ControllerHost = SkfSelect;
@@ -2,8 +2,8 @@ import { raiseError as a } from "../../internal/helpers/raiseError.js";
2
2
  class d {
3
3
  constructor(t) {
4
4
  this._globalClickHandler = (e) => {
5
- var s;
6
- !((s = this.host) != null && s.localName) || e.target.closest(this.host.localName) || (this.host._expanded = !1);
5
+ var i;
6
+ !((i = this.host) != null && i.localName) || e.target.closest(this.host.localName) || (this.host._expanded = !1);
7
7
  }, (this.host = t).addController(this);
8
8
  }
9
9
  // hostConnected() {
@@ -64,16 +64,16 @@ class p {
64
64
  });
65
65
  }
66
66
  _focusSiblingOption(t) {
67
- const e = (l) => l === document.activeElement, i = this._selectableOptions.find((l) => e(l));
68
- if (!i) {
67
+ const e = (l) => l === document.activeElement, s = this._selectableOptions.find((l) => e(l));
68
+ if (!s) {
69
69
  this._focusFirstOption();
70
70
  return;
71
71
  }
72
- const s = this._selectableOptions.indexOf(i);
73
- let o = s - 1, n = s + 1;
72
+ const i = this._selectableOptions.indexOf(s);
73
+ let o = i - 1, n = i + 1;
74
74
  o < 0 && (o = this._selectableOptions.length - 1), n >= this._selectableOptions.length && (n = 0);
75
75
  const h = this._selectableOptions[t === "next" ? n : o];
76
- i.blur(), h.focus();
76
+ s.blur(), h.focus();
77
77
  }
78
78
  _selectFocusedOption(t) {
79
79
  t.selected = !0;
@@ -82,7 +82,7 @@ class p {
82
82
  return !this.host || !this.host._optionsList ? [] : this.host._optionsList.filter((t) => !t.disabled);
83
83
  }
84
84
  }
85
- class b {
85
+ class u {
86
86
  constructor(t) {
87
87
  (this.host = t).addController(this);
88
88
  }
@@ -103,15 +103,18 @@ class b {
103
103
  ),
104
104
  reason: "attribute-mismatch",
105
105
  replaceStrings: [t, "min or max", "together with multiple"]
106
- }), a({
107
- assert: (this.host.hideTags && this.host.multiple) ?? !this.host.hideTags,
106
+ });
107
+ const e = this.host.hideTags && this.host.multiple, s = !this.host.hideTags;
108
+ a({
109
+ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
110
+ assert: e || s,
108
111
  reason: "attribute-mismatch",
109
112
  replaceStrings: [t, "hide-tags", "together with multiple"]
110
113
  });
111
114
  }
112
115
  }
113
116
  export {
114
- b as DeveloperFeedbackController,
117
+ u as DeveloperFeedbackController,
115
118
  d as GlobalClickController,
116
119
  p as KeyboardNavigationController
117
120
  };
@@ -0,0 +1,7 @@
1
+ export declare const icons: {
2
+ dummy1: import("lit").TemplateResult<1>;
3
+ dummy4: import("lit").TemplateResult<1>;
4
+ dummy5: import("lit").TemplateResult<1>;
5
+ dummy6: import("lit").TemplateResult<1>;
6
+ dummy7: import("lit").TemplateResult<1>;
7
+ };
@@ -6,17 +6,17 @@ var d = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(
6
6
  import "../icon/icon.js";
7
7
  import { SkfElement as b } from "../../internal/components/skf-element.js";
8
8
  import { watch as g } from "../../internal/helpers/watch.js";
9
- import C from "../../styles/component.styles.js";
9
+ import { componentStyles as C } from "../../styles/component.styles.js";
10
10
  import "lit";
11
11
  import { property as y, state as c } from "lit/decorators.js";
12
12
  import { classMap as $ } from "lit/directives/class-map.js";
13
13
  import { ifDefined as x } from "lit/directives/if-defined.js";
14
- import { unsafeStatic as w, literal as U, html as S } from "lit/static-html.js";
15
- import { styles as I } from "./stepper-item.styles.js";
16
- var O = Object.defineProperty, P = Object.getOwnPropertyDescriptor, l = (e, i, t, s) => {
17
- for (var p = s > 1 ? void 0 : s ? P(i, t) : i, h = e.length - 1, m; h >= 0; h--)
14
+ import { literal as w, html as S } from "lit/static-html.js";
15
+ import { styles as U } from "./stepper-item.styles.js";
16
+ var I = Object.defineProperty, O = Object.getOwnPropertyDescriptor, l = (e, i, t, s) => {
17
+ for (var p = s > 1 ? void 0 : s ? O(i, t) : i, h = e.length - 1, m; h >= 0; h--)
18
18
  (m = e[h]) && (p = (s ? m(i, t, p) : m(p)) || p);
19
- return s && p && O(i, t, p), p;
19
+ return s && p && I(i, t, p), p;
20
20
  }, o, n;
21
21
  const f = class f extends b {
22
22
  constructor() {
@@ -60,7 +60,7 @@ const f = class f extends b {
60
60
  }), r(this, n, !1);
61
61
  }
62
62
  render() {
63
- const t = this._linear ? "div" : "button", s = U`${w(t)}`;
63
+ const t = this._linear ? "div" : "button", s = w`${t}`;
64
64
  return S`
65
65
  <${s}
66
66
  @click=${this._handleClick}
@@ -82,7 +82,7 @@ const f = class f extends b {
82
82
  `;
83
83
  }
84
84
  };
85
- o = new WeakMap(), n = new WeakMap(), f.styles = [C, I];
85
+ o = new WeakMap(), n = new WeakMap(), f.styles = [C, U];
86
86
  let a = f;
87
87
  l([
88
88
  y({ reflect: !0 })
@@ -1,6 +1,6 @@
1
- import type { SkfStepperItem } from '../stepper-item/stepper-item.component.js';
2
1
  import { SkfElement } from '../../internal/components/skf-element';
3
2
  import { type CSSResultGroup } from 'lit';
3
+ import type { SkfStepperItem } from './stepper-item.component.js';
4
4
  /**
5
5
  * The `<skf-stepper>` is a component that displays a list of actions or options.
6
6
  *
@@ -8,7 +8,7 @@ import { type CSSResultGroup } from 'lit';
8
8
  *
9
9
  * @slot - One or more `<skf-stepper-item>`
10
10
  *
11
- * @event skf-stepper-item-select - Dispatched when the stepper item is selected
11
+ * @event {CustomEvent} skf-stepper-item-select - Dispatched when the stepper item is selected
12
12
  *
13
13
  * @tagname skf-stepper
14
14
  */
@@ -2,30 +2,30 @@ var p = (t) => {
2
2
  throw TypeError(t);
3
3
  };
4
4
  var m = (t, i, e) => i.has(t) || p("Cannot " + e);
5
- var _ = (t, i, e) => (m(t, i, "read from private field"), e ? e.call(t) : i.get(t)), f = (t, i, e) => i.has(t) ? p("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, e), l = (t, i, e, s) => (m(t, i, "write to private field"), s ? s.call(t, e) : i.set(t, e), e);
5
+ var _ = (t, i, e) => (m(t, i, "read from private field"), e ? e.call(t) : i.get(t)), v = (t, i, e) => i.has(t) ? p("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(t) : i.set(t, e), l = (t, i, e, s) => (m(t, i, "write to private field"), s ? s.call(t, e) : i.set(t, e), e);
6
6
  import { SkfElement as I } from "../../internal/components/skf-element.js";
7
- import { watch as v } from "../../internal/helpers/watch.js";
8
- import u from "../../styles/component.styles.js";
7
+ import { watch as f } from "../../internal/helpers/watch.js";
8
+ import { componentStyles as u } from "../../styles/component.styles.js";
9
9
  import { html as g } from "lit";
10
10
  import { property as x, queryAssignedElements as y } from "lit/decorators.js";
11
11
  import { classMap as A } from "lit/directives/class-map.js";
12
12
  import { stepperState as C } from "./stepper.helpers.js";
13
13
  import { styles as b } from "./stepper.styles.js";
14
14
  var E = Object.defineProperty, S = Object.getOwnPropertyDescriptor, h = (t, i, e, s) => {
15
- for (var n = s > 1 ? void 0 : s ? S(i, e) : i, r = t.length - 1, d; r >= 0; r--)
16
- (d = t[r]) && (n = (s ? d(i, e, n) : d(n)) || n);
15
+ for (var n = s > 1 ? void 0 : s ? S(i, e) : i, r = t.length - 1, o; r >= 0; r--)
16
+ (o = t[r]) && (n = (s ? o(i, e, n) : o(n)) || n);
17
17
  return s && n && E(i, e, n), n;
18
- }, o;
18
+ }, d;
19
19
  const c = class c extends I {
20
20
  constructor() {
21
21
  super();
22
- f(this, o);
23
- l(this, o, !1), this.activeIndex = -1, this.linear = !1, this._handleSelected = (e) => {
24
- if (!_(this, o)) return;
25
- const { item: s, triggerActiveIndexUpdate: n } = e.detail, r = [...this._items ?? []].findIndex((d) => d === s);
22
+ v(this, d);
23
+ l(this, d, !1), this.activeIndex = -1, this.linear = !1, this._handleSelected = (e) => {
24
+ if (!_(this, d)) return;
25
+ const { item: s, triggerActiveIndexUpdate: n } = e.detail, r = [...this._items ?? []].findIndex((o) => o === s);
26
26
  r === this.activeIndex ? this._handleActiveIndexChanged() : (n && this._resetActive(r), this.activeIndex = r);
27
27
  }, this._handleSlotChanged = () => {
28
- l(this, o, !0), this.activeIndex = this._getCurrentActiveIndex();
28
+ l(this, d, !0), this.activeIndex = this._getCurrentActiveIndex();
29
29
  }, this.addEventListener("skf-stepper-item-select", this._handleSelected);
30
30
  }
31
31
  firstUpdated() {
@@ -69,10 +69,10 @@ const c = class c extends I {
69
69
  `;
70
70
  }
71
71
  };
72
- o = new WeakMap(), c.styles = [u, b];
72
+ d = new WeakMap(), c.styles = [u, b];
73
73
  let a = c;
74
74
  h([
75
- x({ type: Number })
75
+ x({ type: Number, attribute: "active-index" })
76
76
  ], a.prototype, "activeIndex", 2);
77
77
  h([
78
78
  x({ type: Boolean })
@@ -81,10 +81,10 @@ h([
81
81
  y()
82
82
  ], a.prototype, "_items", 2);
83
83
  h([
84
- v("activeIndex")
84
+ f("activeIndex")
85
85
  ], a.prototype, "_handleActiveIndexChanged", 1);
86
86
  h([
87
- v("linear")
87
+ f("linear")
88
88
  ], a.prototype, "_handleLinearMode", 1);
89
89
  export {
90
90
  a as SkfStepper
@@ -1,4 +1,4 @@
1
- import type { SkfStepperItem, SkfStepperItemState } from '../stepper-item/stepper-item.component.js';
1
+ import type { SkfStepperItem, SkfStepperItemState } from './stepper-item.component.js';
2
2
  import type { SkfStepper } from './stepper.component.js';
3
3
  interface StepperStateProps extends Pick<SkfStepper, '_items' | 'linear'>, Pick<SkfStepperItem, 'state'> {
4
4
  items: SkfStepperItem[];
@@ -1,15 +1,15 @@
1
1
  import { FormBase as o } from "../../internal/components/formBase.js";
2
2
  import { Asterisk as u } from "../../internal/templates/asterisk.js";
3
- import p from "../../styles/component.styles.js";
4
- import { html as c } from "lit";
5
- import { property as s, state as v, query as f } from "lit/decorators.js";
6
- import { classMap as m } from "lit/directives/class-map.js";
7
- import { ifDefined as _ } from "lit/directives/if-defined.js";
8
- import { styles as b } from "./switch.styles.js";
9
- var y = Object.defineProperty, i = (d, e, a, g) => {
3
+ import { componentStyles as p } from "../../styles/component.styles.js";
4
+ import { nothing as c, html as v } from "lit";
5
+ import { property as s, state as f, query as m } from "lit/decorators.js";
6
+ import { classMap as _ } from "lit/directives/class-map.js";
7
+ import { ifDefined as b } from "lit/directives/if-defined.js";
8
+ import { styles as y } from "./switch.styles.js";
9
+ var g = Object.defineProperty, i = (d, e, a, k) => {
10
10
  for (var l = void 0, h = d.length - 1, n; h >= 0; h--)
11
11
  (n = d[h]) && (l = n(e, a, l) || l);
12
- return l && y(e, a, l), l;
12
+ return l && g(e, a, l), l;
13
13
  };
14
14
  const r = class r extends o {
15
15
  constructor() {
@@ -51,9 +51,9 @@ const r = class r extends o {
51
51
  this.setValidity({});
52
52
  }
53
53
  render() {
54
- return c`
54
+ return v`
55
55
  <label
56
- class=${m({
56
+ class=${_({
57
57
  switch: !0,
58
58
  "switch--small": this.size === "sm"
59
59
  })}
@@ -67,11 +67,11 @@ const r = class r extends o {
67
67
  @reset=${this._resetValue}
68
68
  aria-invalid=${!!this._invalid}
69
69
  class="switch__input"
70
- name=${_(this.name)}
70
+ name=${b(this.name)}
71
71
  type="checkbox"
72
72
  value=${this.value}
73
73
  />
74
- <div class="switch__label">
74
+ <div class="switch__label ${this.hideLabel ? "visually-hidden" : c}">
75
75
  <slot>${this.label}</slot>
76
76
  ${this.required ? u(this.requiredLabel, "switch__asterisk") : null}
77
77
  </div>
@@ -79,7 +79,7 @@ const r = class r extends o {
79
79
  `;
80
80
  }
81
81
  };
82
- r.styles = [p, b];
82
+ r.styles = [p, y];
83
83
  let t = r;
84
84
  i([
85
85
  s({ type: Boolean })
@@ -106,10 +106,10 @@ i([
106
106
  s()
107
107
  ], t.prototype, "value");
108
108
  i([
109
- v()
109
+ f()
110
110
  ], t.prototype, "_invalid");
111
111
  i([
112
- f("input")
112
+ m("input")
113
113
  ], t.prototype, "$input");
114
114
  export {
115
115
  t as SkfSwitch
@@ -1,6 +1,6 @@
1
1
  import { SkfElement as n } from "../../internal/components/skf-element.js";
2
2
  import { watch as h } from "../../internal/helpers/watch.js";
3
- import m from "../../styles/component.styles.js";
3
+ import { componentStyles as m } from "../../styles/component.styles.js";
4
4
  import { html as f } from "lit";
5
5
  import { property as v, state as d } from "lit/decorators.js";
6
6
  import { classMap as b } from "lit/directives/class-map.js";
@@ -1,6 +1,6 @@
1
1
  import "../card/card.js";
2
2
  import { SkfElement as c } from "../../internal/components/skf-element.js";
3
- import b from "../../styles/component.styles.js";
3
+ import { componentStyles as b } from "../../styles/component.styles.js";
4
4
  import { html as f } from "lit";
5
5
  import { property as o, queryAssignedElements as p } from "lit/decorators.js";
6
6
  import { classMap as u } from "lit/directives/class-map.js";
@@ -1,6 +1,6 @@
1
1
  import { SkfElement as c } from "../../internal/components/skf-element.js";
2
2
  import { watch as h } from "../../internal/helpers/watch.js";
3
- import l from "../../styles/component.styles.js";
3
+ import { componentStyles as l } from "../../styles/component.styles.js";
4
4
  import { html as v } from "lit";
5
5
  import { property as f, state as d } from "lit/decorators.js";
6
6
  import { styles as y } from "./tab-panel.styles.js";
@@ -1,6 +1,6 @@
1
1
  import '../icon/icon.js';
2
2
  import { SkfElement } from '../../internal/components/skf-element';
3
- import type { Icon, SeverityBgColor } from '@skf-design-system/ui-assets';
3
+ import type { Icon, Severity } from '../../internal/types.js';
4
4
  import { type CSSResultGroup } from 'lit';
5
5
  /**
6
6
  * The `<skf-tag>` is a component that displays a list of actions or options
@@ -19,16 +19,10 @@ export declare class SkfTag extends SkfElement {
19
19
  protected _onRemove?: (event: Event) => void;
20
20
  /** Specifies Tag size */
21
21
  size: 'sm' | 'md';
22
- /**
23
- * If defined, displays leading/provided icon
24
- * @type { "arrowDown" | "arrowDownUp" | "arrowLeft" | "arrowRight" | "arrowUp" | "article" | "artificialIntelligence" | "asset" | "attachment" | "bandCursor" | "bands" | "batteryEmpty" | "batteryFull" | "batteryLow" | "bearingFault" | "book" | "bulb" | "burger" | "cPM" | "calendar" | "calendarBooked" | "calendarEmpty" | "calendarNotBooked" | "calendarRecurring" | "caretDown" | "caretUp" | "caretUpDown" | "chat" | "check" | "checkCircle" | "checkSmall" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronUpDown" | "close" | "closeAllFaults" | "closeFault" | "closeSmall" | "columnGraph" | "comment" | "connection1" | "connection2" | "connection3" | "connection4" | "danger" | "defectFrequencies" | "defectFrequenciesAlternative" | "doubleChevronLeft" | "doubleChevronRight" | "download" | "draft" | "draftFilled" | "draftOutlined" | "dragNDrop" | "drop" | "duplicate" | "edit" | "emailFilled" | "emailOutlined" | "exclamation" | "eye" | "eyeHidden" | "eyeVisible" | "filter" | "forbidden" | "fullScreen" | "fullScreenExit" | "functionalLocation" | "harmonicCursor" | "heatmap" | "hierarchy" | "history" | "historyAlt" | "hourglassFramedFilled" | "hourglassFramedOutlined" | "hourglassOutlined" | "hz" | "iMX" | "image" | "infoCircleFilled" | "infoCircleOutlined" | "integration" | "kebab" | "link" | "listGroup" | "listItem" | "locationPin" | "lock" | "logOut" | "meatballs" | "microphone" | "minus" | "minusSmall" | "noData" | "o" | "openInNew" | "overlayBaseline" | "pDF" | "paper" | "pause" | "pieChart" | "pin" | "play" | "plus" | "powerOff" | "printer" | "proCollect" | "recAction" | "received" | "refresh" | "reorder" | "replace" | "reply" | "rewalkableRoute" | "routes" | "search" | "send" | "sensorA" | "sensorB" | "settings" | "sidebandCursor" | "singleCursor" | "spectrum" | "starFilled" | "starOutlined" | "statusCircle" | "stop" | "structuralVibration" | "sync" | "timewave" | "trash" | "trend" | "trendingUp" | "undo" | "unknownCircle" | "unknownDiamond" | "unlink" | "unlock" | "unscheduledAction" | "upload" | "user" | "viewFull" | "viewHorizontal" | "viewVertical" | "warning" | "warningCircle" | "warningDiamond" | "zoomIn" | "zoomOut" }
25
- */
22
+ /** If defined, displays leading/provided icon */
26
23
  icon?: Icon;
27
- /**
28
- * If defined, gives the supplied appearance
29
- * @type { "warning" | "success" | "info" | "error" | "alert" }
30
- */
31
- color?: SeverityBgColor;
24
+ /** If defined, gives the supplied appearance */
25
+ color?: Severity;
32
26
  /** If defined, accepts a function that runs on click */
33
27
  set onClick(onClickFn: ((event: Event) => void) | undefined);
34
28
  get onClick(): ((event: Event) => void) | undefined;
@@ -42,9 +36,11 @@ export declare class SkfTag extends SkfElement {
42
36
  connectedCallback(): void;
43
37
  disconnectedCallback(): void;
44
38
  attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
45
- protected _handleKeyDown: (e: KeyboardEvent) => void;
46
- /** run externally provided callback (if any) first. Let click propagate to handleClick. */
47
- protected _handleRemove: (e: Event) => void;
48
- protected _handleClick: (e: Event) => void;
39
+ /** @internal */
40
+ private _handleKeyDown;
41
+ /** @internal run externally provided callback (if any) first. Let click propagate to handleClick. */
42
+ private _handleRemove;
43
+ /** @internal */
44
+ private _handleClick;
49
45
  render(): import("lit").TemplateResult<1>;
50
46
  }
@@ -1,37 +1,35 @@
1
1
  import "../icon/icon.js";
2
2
  import { SkfElement as u } from "../../internal/components/skf-element.js";
3
- import f from "../../styles/component.styles.js";
3
+ import { componentStyles as f } from "../../styles/component.styles.js";
4
4
  import { nothing as p, html as a } from "lit";
5
- import { property as l, query as v } from "lit/decorators.js";
5
+ import { property as n, query as v } from "lit/decorators.js";
6
6
  import { classMap as d } from "lit/directives/class-map.js";
7
7
  import { ifDefined as _ } from "lit/directives/if-defined.js";
8
8
  import { styles as k } from "./tag.styles.js";
9
- var b = Object.defineProperty, y = Object.getOwnPropertyDescriptor, i = (m, t, s, r) => {
10
- for (var e = r > 1 ? void 0 : r ? y(t, s) : t, n = m.length - 1, c; n >= 0; n--)
11
- (c = m[n]) && (e = (r ? c(t, s, e) : c(e)) || e);
12
- return r && e && b(t, s, e), e;
9
+ var b = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (m, e, i, s) => {
10
+ for (var t = s > 1 ? void 0 : s ? y(e, i) : e, l = m.length - 1, c; l >= 0; l--)
11
+ (c = m[l]) && (t = (s ? c(e, i, t) : c(t)) || t);
12
+ return s && t && b(e, i, t), t;
13
13
  };
14
14
  const h = class h extends u {
15
15
  constructor() {
16
- super(...arguments), this.size = "md", this.removable = !1, this._handleKeyDown = (t) => {
17
- (t.key === "Enter" || t.key === " ") && this.$removeButton.click();
18
- }, this._handleRemove = (t) => {
19
- this._onRemove && this._onRemove(t);
20
- }, this._handleClick = (t) => {
21
- var e;
22
- t.stopPropagation();
23
- const s = t.composedPath()[0];
24
- console.log("$clickTarget", s), s.localName === "button" ? this.remove() : (e = this.onClick) == null || e.call(this, t);
16
+ super(...arguments), this.size = "md", this.removable = !1, this._handleKeyDown = (e) => {
17
+ (e.key === "Enter" || e.key === " ") && this.$removeButton.click();
18
+ }, this._handleRemove = (e) => {
19
+ this._onRemove && this._onRemove(e);
20
+ }, this._handleClick = (e) => {
21
+ var t;
22
+ e.stopPropagation(), e.composedPath()[0].localName === "button" ? this.remove() : (t = this.onClick) == null || t.call(this, e);
25
23
  };
26
24
  }
27
- set onClick(t) {
28
- t && (this._onClick = t);
25
+ set onClick(e) {
26
+ e && (this._onClick = e);
29
27
  }
30
28
  get onClick() {
31
29
  return this._onClick;
32
30
  }
33
- set onRemove(t) {
34
- t && (this._onRemove = t);
31
+ set onRemove(e) {
32
+ e && (this._onRemove = e);
35
33
  }
36
34
  get onRemove() {
37
35
  return this._onRemove;
@@ -42,15 +40,14 @@ const h = class h extends u {
42
40
  disconnectedCallback() {
43
41
  super.disconnectedCallback(), this.removeEventListener("click", this._handleClick);
44
42
  }
45
- attributeChangedCallback(t, s, r) {
46
- super.attributeChangedCallback(t, s, r), t === "removable" && r !== null ? this.addEventListener("keydown", this._handleKeyDown) : this.removeEventListener("keydown", this._handleKeyDown);
43
+ attributeChangedCallback(e, i, s) {
44
+ super.attributeChangedCallback(e, i, s), e === "removable" && s !== null ? this.addEventListener("keydown", this._handleKeyDown) : this.removeEventListener("keydown", this._handleKeyDown);
47
45
  }
48
46
  render() {
49
47
  return a`
50
48
  <div
51
49
  class=${d({
52
50
  tag: !0,
53
- "tag--color-alert": this.color === "alert",
54
51
  "tag--color-error": this.color === "error",
55
52
  "tag--color-info": this.color === "info",
56
53
  "tag--color-success": this.color === "success",
@@ -78,25 +75,25 @@ const h = class h extends u {
78
75
  };
79
76
  h.styles = [f, k];
80
77
  let o = h;
81
- i([
82
- l({ reflect: !0 })
78
+ r([
79
+ n({ reflect: !0 })
83
80
  ], o.prototype, "size", 2);
84
- i([
85
- l()
81
+ r([
82
+ n()
86
83
  ], o.prototype, "icon", 2);
87
- i([
88
- l({ reflect: !0 })
84
+ r([
85
+ n({ reflect: !0 })
89
86
  ], o.prototype, "color", 2);
90
- i([
91
- l({ attribute: !1 })
87
+ r([
88
+ n({ attribute: !1 })
92
89
  ], o.prototype, "onClick", 1);
93
- i([
94
- l({ attribute: !1 })
90
+ r([
91
+ n({ attribute: !1 })
95
92
  ], o.prototype, "onRemove", 1);
96
- i([
97
- l({ type: Boolean, reflect: !0 })
93
+ r([
94
+ n({ type: Boolean, reflect: !0 })
98
95
  ], o.prototype, "removable", 2);
99
- i([
96
+ r([
100
97
  v("button")
101
98
  ], o.prototype, "$removeButton", 2);
102
99
  export {