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

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 (107) hide show
  1. package/README.md +7 -1
  2. package/dist/components/accordion/accordion-item.component.js +49 -38
  3. package/dist/components/accordion/accordion.component.d.ts +1 -1
  4. package/dist/components/accordion/accordion.component.js +10 -10
  5. package/dist/components/breadcrumb/breadcrumb-item.d.ts +2 -2
  6. package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
  7. package/dist/components/card/card.component.js +3 -3
  8. package/dist/components/card/card.styles.js +29 -13
  9. package/dist/components/{date-picker/datepicker.calendar.component.d.ts → datepicker/datepicker-calendar.component.d.ts} +4 -1
  10. package/dist/components/{date-picker/datepicker.calendar.component.js → datepicker/datepicker-calendar.component.js} +7 -7
  11. package/dist/components/datepicker/datepicker-calendar.d.ts +8 -0
  12. package/dist/components/datepicker/datepicker-calendar.js +6 -0
  13. package/dist/components/{date-picker/datepicker.component.d.ts → datepicker/datepicker-popup.component.d.ts} +5 -20
  14. package/dist/components/{date-picker/datepicker.component.js → datepicker/datepicker-popup.component.js} +12 -12
  15. package/dist/components/datepicker/datepicker-popup.d.ts +8 -0
  16. package/dist/components/{date-picker/datepicker.helpers.d.ts → datepicker/datepicker-popup.helpers.d.ts} +3 -3
  17. package/dist/components/datepicker/datepicker-popup.helpers.js +83 -0
  18. package/dist/components/datepicker/datepicker-popup.js +6 -0
  19. package/dist/components/{date-picker/datepicker.styles.js → datepicker/datepicker-popup.styles.js} +3 -3
  20. package/dist/components/{date-picker-input/datepicker-input.component.d.ts → datepicker/datepicker.component.d.ts} +17 -12
  21. package/dist/components/{date-picker-input/datepicker-input.component.js → datepicker/datepicker.component.js} +110 -97
  22. package/dist/components/datepicker/datepicker.d.ts +8 -0
  23. package/dist/components/datepicker/datepicker.js +6 -0
  24. package/dist/components/dialog/dialog.component.js +1 -1
  25. package/dist/components/dialog/dialog.d.ts +2 -2
  26. package/dist/components/drawer/drawer.d.ts +2 -2
  27. package/dist/components/header/header.d.ts +2 -2
  28. package/dist/components/heading/heading.component.js +36 -22
  29. package/dist/components/input/input.component.js +26 -26
  30. package/dist/components/menu/menu-item.d.ts +2 -2
  31. package/dist/components/menu/menu.d.ts +2 -2
  32. package/dist/components/nav/nav-item.component.d.ts +2 -2
  33. package/dist/components/nav/nav.d.ts +2 -2
  34. package/dist/components/popover/popover.component.js +1 -1
  35. package/dist/components/popover/popover.d.ts +2 -2
  36. package/dist/components/progress/progress.d.ts +2 -2
  37. package/dist/components/progress/progress.styles.js +8 -6
  38. package/dist/components/segmented-button/segmented-button-item.d.ts +2 -2
  39. package/dist/components/segmented-button/segmented-button.d.ts +2 -2
  40. package/dist/components/select/select-option-group.d.ts +2 -2
  41. package/dist/components/select/select-option.component.d.ts +2 -2
  42. package/dist/components/select/select-option.component.js +1 -1
  43. package/dist/components/select/select.component.d.ts +2 -2
  44. package/dist/components/select/select.component.js +2 -2
  45. package/dist/components/select/select.controllers.js +11 -14
  46. package/dist/components/stepper/stepper-item.component.js +47 -47
  47. package/dist/components/stepper/stepper-item.d.ts +2 -2
  48. package/dist/components/stepper/stepper.d.ts +2 -2
  49. package/dist/components/switch/switch.d.ts +2 -2
  50. package/dist/components/{tab-panel → tabs}/tab-panel.d.ts +2 -2
  51. package/dist/components/{tab → tabs}/tab.component.d.ts +2 -2
  52. package/dist/components/{tab → tabs}/tab.d.ts +2 -2
  53. package/dist/components/{tab-group/tab-group.component.d.ts → tabs/tabs.component.d.ts} +3 -4
  54. package/dist/components/{tab-group/tab-group.component.js → tabs/tabs.component.js} +35 -36
  55. package/dist/components/tabs/tabs.d.ts +8 -0
  56. package/dist/components/tabs/tabs.js +6 -0
  57. package/dist/components/{tab-group/tab-group.styles.js → tabs/tabs.styles.js} +16 -16
  58. package/dist/components/tag/tag.component.d.ts +1 -1
  59. package/dist/components/tag/tag.component.js +23 -40
  60. package/dist/components/tag/tag.d.ts +2 -2
  61. package/dist/components/tag/tag.styles.js +63 -50
  62. package/dist/components/tooltip/tooltip.d.ts +2 -2
  63. package/dist/custom-elements.json +60 -93
  64. package/dist/index.d.ts +6 -5
  65. package/dist/index.js +96 -93
  66. package/dist/internal/base-classes/popover/popover.base.js +1 -1
  67. package/dist/internal/components/skf-element.d.ts +1 -3
  68. package/dist/internal/components/skf-element.js +4 -9
  69. package/dist/styles/global-alt.css +1 -0
  70. package/dist/styles/global.css +1 -1
  71. package/dist/types/jsx/custom-element-jsx.d.ts +78 -39
  72. package/dist/types/vue/index.d.ts +78 -39
  73. package/dist/vscode.html-custom-data.json +97 -11
  74. package/dist/web-types.json +196 -45
  75. package/package.json +9 -15
  76. package/dist/components/accordion/accordion-item.test.d.ts +0 -1
  77. package/dist/components/accordion/accordion.test.d.ts +0 -1
  78. package/dist/components/checkbox/checkbox.test.d.ts +0 -1
  79. package/dist/components/date-picker/datepicker.d.ts +0 -10
  80. package/dist/components/date-picker/datepicker.helpers.js +0 -76
  81. package/dist/components/date-picker/datepicker.js +0 -8
  82. package/dist/components/date-picker-input/datepicker-input.d.ts +0 -8
  83. package/dist/components/date-picker-input/datepicker-input.js +0 -6
  84. package/dist/components/input/input.test.d.ts +0 -1
  85. package/dist/components/radio/radio.test.d.ts +0 -1
  86. package/dist/components/switch/switch.test.d.ts +0 -1
  87. package/dist/components/tab-group/tab-group.d.ts +0 -8
  88. package/dist/components/tab-group/tab-group.js +0 -6
  89. package/dist/internal/playwright/index.d.ts +0 -1
  90. /package/dist/components/{date-picker/datepicker.calendar.styles.d.ts → datepicker/datepicker-calendar.styles.d.ts} +0 -0
  91. /package/dist/components/{date-picker/datepicker.calendar.styles.js → datepicker/datepicker-calendar.styles.js} +0 -0
  92. /package/dist/components/{date-picker/datepicker.styles.d.ts → datepicker/datepicker-popup.styles.d.ts} +0 -0
  93. /package/dist/components/{date-picker-input/datepicker-input.helpers.d.ts → datepicker/datepicker.helpers.d.ts} +0 -0
  94. /package/dist/components/{date-picker-input/datepicker-input.helpers.js → datepicker/datepicker.helpers.js} +0 -0
  95. /package/dist/components/{date-picker-input/datepicker-input.styles.d.ts → datepicker/datepicker.styles.d.ts} +0 -0
  96. /package/dist/components/{date-picker-input/datepicker-input.styles.js → datepicker/datepicker.styles.js} +0 -0
  97. /package/dist/components/select/{select.stories.icons.d.ts → stories/select.stories.icons.d.ts} +0 -0
  98. /package/dist/components/{tab-panel → tabs}/tab-panel.component.d.ts +0 -0
  99. /package/dist/components/{tab-panel → tabs}/tab-panel.component.js +0 -0
  100. /package/dist/components/{tab-panel → tabs}/tab-panel.js +0 -0
  101. /package/dist/components/{tab-panel → tabs}/tab-panel.styles.d.ts +0 -0
  102. /package/dist/components/{tab-panel → tabs}/tab-panel.styles.js +0 -0
  103. /package/dist/components/{tab → tabs}/tab.component.js +0 -0
  104. /package/dist/components/{tab → tabs}/tab.js +0 -0
  105. /package/dist/components/{tab → tabs}/tab.styles.d.ts +0 -0
  106. /package/dist/components/{tab → tabs}/tab.styles.js +0 -0
  107. /package/dist/components/{tab-group/tab-group.styles.d.ts → tabs/tabs.styles.d.ts} +0 -0
@@ -7,14 +7,14 @@ import { Asterisk as f } from "../../internal/templates/asterisk.js";
7
7
  import { componentStyles as _ } from "../../styles/component.styles.js";
8
8
  import { html as h, nothing as u } from "lit";
9
9
  import { state as p, property as s, query as $, queryAssignedNodes as g } from "lit/decorators.js";
10
- import { ifDefined as o } from "lit/directives/if-defined.js";
10
+ import { ifDefined as n } from "lit/directives/if-defined.js";
11
11
  import { live as w } from "lit/directives/live.js";
12
12
  import { InputNumberController as E, InputPasswordController as C } from "./input.controllers.js";
13
13
  import A from "./input.styles.js";
14
14
  var L = Object.defineProperty, P = Object.getOwnPropertyDescriptor, e = (v, t, r, a) => {
15
- for (var n = a > 1 ? void 0 : a ? P(t, r) : t, l = v.length - 1, d; l >= 0; l--)
16
- (d = v[l]) && (n = (a ? d(t, r, n) : d(n)) || n);
17
- return a && n && L(t, r, n), n;
15
+ for (var o = a > 1 ? void 0 : a ? P(t, r) : t, l = v.length - 1, d; l >= 0; l--)
16
+ (d = v[l]) && (o = (a ? d(t, r, o) : d(o)) || o);
17
+ return a && o && L(t, r, o), o;
18
18
  };
19
19
  const m = class m extends c {
20
20
  constructor() {
@@ -46,7 +46,7 @@ const m = class m extends c {
46
46
  `, this._renderPasswordButton = () => h`
47
47
  <button
48
48
  @click=${this._passwordController.toggleVisibility}
49
- aria-label=${o(this._passwordController._buttonAriaLabel)}
49
+ aria-label=${n(this._passwordController._buttonAriaLabel)}
50
50
  class="password skf-icon-host"
51
51
  type="button"
52
52
  @mousedown="${this._handlePressStart}"
@@ -61,7 +61,7 @@ const m = class m extends c {
61
61
  @mousedown=${this._handlePressStart}
62
62
  @mouseup=${this._handlePressEnd}
63
63
  @mouseleave=${this._handlePressEnd}
64
- aria-label=${o(this.buttonAriaLabelClear)}
64
+ aria-label=${n(this.buttonAriaLabelClear)}
65
65
  class="search skf-icon-host"
66
66
  type="button"
67
67
  >
@@ -124,12 +124,12 @@ const m = class m extends c {
124
124
  this.invalid = !this._pristine && !r.valid;
125
125
  let a;
126
126
  for (a in r) {
127
- const n = `data-${a.toString()}`;
128
- if (r[a] && !this.hasAttribute(n) && this.debug && console.log(
129
- `Add custom message on ${this.localName} using attribute: ${n.toUpperCase()}="Your custom message"`
127
+ const o = `data-${a.toString()}`;
128
+ if (r[a] && !this.hasAttribute(o) && this.debug && console.log(
129
+ `Add custom message on ${this.localName} using attribute: ${o.toUpperCase()}="Your custom message"`
130
130
  ), r[a]) {
131
131
  this.validationError = a.toString();
132
- const l = this.hasAttribute(n) ? this.getAttribute(n) : this.$input.validationMessage;
132
+ const l = this.hasAttribute(o) ? this.getAttribute(o) : this.$input.validationMessage;
133
133
  this._internals.setValidity(
134
134
  { [this.validationError]: !0, customError: this._internals.validity.customError },
135
135
  this.withFallback(l)
@@ -139,7 +139,7 @@ const m = class m extends c {
139
139
  }
140
140
  }
141
141
  render() {
142
- var r, a, n, l;
142
+ var r, a, o, l;
143
143
  const t = (this._defaultSlot.length === 0 || !((a = (r = this._defaultSlot[0]) == null ? void 0 : r.textContent) != null && a.trim())) && !this.label;
144
144
  return h`
145
145
  <div id="root">
@@ -151,31 +151,31 @@ const m = class m extends c {
151
151
  <div id="input">
152
152
  ${this.type === "search" ? h`<skf-icon class="skf-icon-host" name="search" size="sm"></skf-icon>` : u}
153
153
  <div
154
- data-leading=${o(this.leading)}
155
- data-trailing=${o(this.trailing)}
154
+ data-leading=${n(this.leading)}
155
+ data-trailing=${n(this.trailing)}
156
156
  id="affix"
157
157
  >
158
158
  <input
159
159
  ?disabled=${this.disabled}
160
160
  ?readonly=${this.readonly}
161
161
  ?required=${this.required}
162
+ .autocomplete=${this.autocomplete ?? "off"}
162
163
  .value=${w(this.value)}
163
164
  @blur=${this._onBlur}
164
165
  @input=${this._handleInput}
165
- .autocomplete=${this.autocomplete}
166
- aria-describedby=${o((n = this.hint) != null && n.trim() ? "hint" : u)}
167
- aria-errormessage=${o((l = this.hint) != null && l.trim() ? "hint" : u)}
166
+ aria-describedby=${n((o = this.hint) != null && o.trim() ? "hint" : u)}
167
+ aria-errormessage=${n((l = this.hint) != null && l.trim() ? "hint" : u)}
168
168
  aria-invalid=${!!this.invalid}
169
169
  data-testid="field-input"
170
- inputmode=${o(this.inputMode)}
171
- max=${o(this.max)}
172
- maxlength=${o(this.maxLength)}
173
- min=${o(this.min)}
174
- minlength=${o(this.minLength)}
175
- name=${o(this.name)}
176
- pattern=${o(this.pattern)}
177
- placeholder=${o(this.placeholder)}
178
- type=${o(
170
+ inputmode=${n(this.inputMode)}
171
+ max=${n(this.max)}
172
+ maxlength=${n(this.maxLength)}
173
+ min=${n(this.min)}
174
+ minlength=${n(this.minLength)}
175
+ name=${n(this.name)}
176
+ pattern=${n(this.pattern)}
177
+ placeholder=${n(this.placeholder)}
178
+ type=${n(
179
179
  this.type === "password" ? this._passwordController._type : this.type
180
180
  )}
181
181
  />
@@ -193,7 +193,7 @@ const m = class m extends c {
193
193
  <skf-hint
194
194
  aria-live=${this.invalid ? "assertive" : "polite"}
195
195
  id="hint"
196
- severity=${o(b(this.invalid, this.severity))}
196
+ severity=${n(b(this.invalid, this.severity))}
197
197
  >${this.customInvalid ?? this.hint}
198
198
  </skf-hint>
199
199
  `}
@@ -1,5 +1,5 @@
1
- import { SkfMenuItem } from './menu-item.component';
2
- export * from './menu-item.component';
1
+ import { SkfMenuItem } from './menu-item.component.js';
2
+ export * from './menu-item.component.js';
3
3
  export default SkfMenuItem;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,5 +1,5 @@
1
- import { SkfMenu } from './menu.component';
2
- export * from './menu.component';
1
+ import { SkfMenu } from './menu.component.js';
2
+ export * from './menu.component.js';
3
3
  export default SkfMenu;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,6 +1,6 @@
1
1
  import '../link/link.js';
2
- import type SkfLink from '../link/link.js';
3
2
  import { SkfElement } from '../../internal/components/skf-element';
3
+ import type { Icon } from '../../internal/types.js';
4
4
  import { type CSSResultGroup } from 'lit';
5
5
  /**
6
6
  * The `<skf-nav>` is a component that displays a list of <nav-items>.
@@ -12,7 +12,7 @@ import { type CSSResultGroup } from 'lit';
12
12
  export declare class SkfNavItem extends SkfElement {
13
13
  static styles: CSSResultGroup;
14
14
  href: string;
15
- icon?: SkfLink['icon'];
15
+ icon?: Icon;
16
16
  connectedCallback(): void;
17
17
  render(): import("lit").TemplateResult<1>;
18
18
  }
@@ -1,5 +1,5 @@
1
- import { SkfNav } from './nav.component';
2
- export * from './nav.component';
1
+ import { SkfNav } from './nav.component.js';
2
+ export * from './nav.component.js';
3
3
  export default SkfNav;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -9,7 +9,7 @@ var c = Object.defineProperty, m = Object.getOwnPropertyDescriptor, a = (l, r, o
9
9
  };
10
10
  const n = class n extends h {
11
11
  constructor() {
12
- super(), this.offset = 8, this.hideArrow = !1, this.ariaModal = "false", this.arrow = !this.hideArrow, this.placement = "bottom-start", this.role = "dialog", this.triggerEvent = "click", this.variant = "popup", h.classMap = { popover: !0 };
12
+ super(), this.offset = 8, this.hideArrow = !1, this.arrow = !this.hideArrow, this.placement = "bottom-start", this.triggerEvent = "click", this.variant = "popup", h.classMap = { popover: !0 };
13
13
  }
14
14
  hideArrowChanged() {
15
15
  this.arrow = !this.hideArrow;
@@ -1,5 +1,5 @@
1
- import { SkfPopover } from './popover.component';
2
- export * from './popover.component';
1
+ import { SkfPopover } from './popover.component.js';
2
+ export * from './popover.component.js';
3
3
  export default SkfPopover;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,5 +1,5 @@
1
- import { SkfProgress } from './progress.component';
2
- export * from './progress.component';
1
+ import { SkfProgress } from './progress.component.js';
2
+ export * from './progress.component.js';
3
3
  export default SkfProgress;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,8 +1,10 @@
1
1
  import { css as r } from "lit";
2
- const e = r`
2
+ const o = r`
3
3
  @layer components {
4
4
  @layer base {
5
5
  #root {
6
+ --_skf-progress-value: 0%;
7
+
6
8
  background: var(--skf-bg-color-neutral-3);
7
9
  block-size: var(--skf-size-8);
8
10
  border-radius: 0.25rem; /* Missing token */
@@ -14,7 +16,7 @@ const e = r`
14
16
  border-radius: inherit;
15
17
  content: '';
16
18
  display: block;
17
- inline-size: var(--_skf-progress-value, auto);
19
+ inline-size: var(--_skf-progress-value);
18
20
  transition: inline-size calc(var(--skf-motion-duration-slow) * 1ms)
19
21
  cubic-bezier(0.4, 0.93, 0.71, 0.89);
20
22
  }
@@ -28,11 +30,11 @@ const e = r`
28
30
  infinite reverse;
29
31
  background-image: linear-gradient(
30
32
  -45deg,
31
- rgba(255 255 255 / 20%) 25%,
33
+ rgb(255 255 255 / 20%) 25%,
32
34
  transparent 25%,
33
35
  transparent 50%,
34
- rgba(255 255 255 / 20%) 50%,
35
- rgba(255 255 255 / 20%) 75%,
36
+ rgb(255 255 255 / 20%) 50%,
37
+ rgb(255 255 255 / 20%) 75%,
36
38
  transparent 75%,
37
39
  transparent
38
40
  );
@@ -49,5 +51,5 @@ const e = r`
49
51
  }
50
52
  `;
51
53
  export {
52
- e as styles
54
+ o as styles
53
55
  };
@@ -1,5 +1,5 @@
1
- import { SkfSegmentedButtonItem } from './segmented-button-item.component';
2
- export * from './segmented-button-item.component';
1
+ import { SkfSegmentedButtonItem } from './segmented-button-item.component.js';
2
+ export * from './segmented-button-item.component.js';
3
3
  export default SkfSegmentedButtonItem;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,5 +1,5 @@
1
- import { SkfSegmentedButton } from './segmented-button.component';
2
- export * from './segmented-button.component';
1
+ import { SkfSegmentedButton } from './segmented-button.component.js';
2
+ export * from './segmented-button.component.js';
3
3
  export default SkfSegmentedButton;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,5 +1,5 @@
1
- import { SkfSelectOptionGroup } from './select-option-group.component';
2
- export * from './select-option-group.component';
1
+ import { SkfSelectOptionGroup } from './select-option-group.component.js';
2
+ export * from './select-option-group.component.js';
3
3
  export default SkfSelectOptionGroup;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,8 +1,8 @@
1
+ import '../icon/icon.js';
1
2
  import { SkfElement } from '../../internal/components/skf-element.js';
2
3
  import type { Icon, IconColor } from '../../internal/types.js';
3
4
  import { type CSSResultGroup } from 'lit';
4
- import '../icon/icon';
5
- import type { SkfSelect } from '../select/select.component.js';
5
+ import type { SkfSelect } from './select.component.js';
6
6
  export interface SelectOptionEvent {
7
7
  value: string | null;
8
8
  option: SkfSelectOption;
@@ -1,9 +1,9 @@
1
+ import "../icon/icon.js";
1
2
  import { SkfElement as u } from "../../internal/components/skf-element.js";
2
3
  import { componentStyles as f } from "../../styles/component.styles.js";
3
4
  import { LitElement as m, html as h } from "lit";
4
5
  import { property as l, queryAssignedNodes as _ } from "lit/decorators.js";
5
6
  import { ifDefined as p } from "lit/directives/if-defined.js";
6
- import "../icon/icon.js";
7
7
  import { styles as y } from "./select-option.styles.js";
8
8
  var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, o = (d, t, s, i) => {
9
9
  for (var r = i > 1 ? void 0 : i ? b(t, s) : t, a = d.length - 1, c; a >= 0; a--)
@@ -1,9 +1,9 @@
1
+ import '../tag/tag.js';
1
2
  import { FormBase } from '../../internal/components/formBase.js';
3
+ import '../../internal/components/hint/hint.js';
2
4
  import { PopoverController } from '../../internal/controllers/popover.controller.js';
3
5
  import type { FormFieldSeverity } from '../../internal/types.js';
4
6
  import { type CSSResultGroup } from 'lit';
5
- import '../../internal/components/hint/hint';
6
- import '../tag/tag';
7
7
  import type { SelectOptionEvent, SkfSelectOption } from './select-option.component.js';
8
8
  import { DeveloperFeedbackController, GlobalClickController, KeyboardNavigationController } from './select.controllers.js';
9
9
  /**
@@ -1,5 +1,7 @@
1
+ import "../tag/tag.js";
1
2
  import { computePosition as v, flip as f, shift as _, offset as g } from "@floating-ui/dom";
2
3
  import { FormBase as b } from "../../internal/components/formBase.js";
4
+ import "../../internal/components/hint/hint.js";
3
5
  import { PopoverController as y } from "../../internal/controllers/popover.controller.js";
4
6
  import { findMatchingTags as O } from "../../internal/helpers/findMatchingTags.js";
5
7
  import { hintSeverity as x } from "../../internal/helpers/hintSeverity.js";
@@ -11,8 +13,6 @@ import { nothing as C, html as n } from "lit";
11
13
  import { property as o, state as h, query as p } from "lit/decorators.js";
12
14
  import { classMap as E } from "lit/directives/class-map.js";
13
15
  import { ifDefined as m } from "lit/directives/if-defined.js";
14
- import "../../internal/components/hint/hint.js";
15
- import "../tag/tag.js";
16
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) => {
@@ -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 i;
6
- !((i = this.host) != null && i.localName) || e.target.closest(this.host.localName) || (this.host._expanded = !1);
5
+ var s;
6
+ !((s = this.host) != null && s.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, s = this._selectableOptions.find((l) => e(l));
68
- if (!s) {
67
+ const e = (l) => l === document.activeElement, i = this._selectableOptions.find((l) => e(l));
68
+ if (!i) {
69
69
  this._focusFirstOption();
70
70
  return;
71
71
  }
72
- const i = this._selectableOptions.indexOf(s);
73
- let o = i - 1, n = i + 1;
72
+ const s = this._selectableOptions.indexOf(i);
73
+ let o = s - 1, n = s + 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
- s.blur(), h.focus();
76
+ i.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 u {
85
+ class b {
86
86
  constructor(t) {
87
87
  (this.host = t).addController(this);
88
88
  }
@@ -103,18 +103,15 @@ class u {
103
103
  ),
104
104
  reason: "attribute-mismatch",
105
105
  replaceStrings: [t, "min or max", "together with multiple"]
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,
106
+ }), a({
107
+ assert: (this.host.hideTags && this.host.multiple) ?? !this.host.hideTags,
111
108
  reason: "attribute-mismatch",
112
109
  replaceStrings: [t, "hide-tags", "together with multiple"]
113
110
  });
114
111
  }
115
112
  }
116
113
  export {
117
- u as DeveloperFeedbackController,
114
+ b as DeveloperFeedbackController,
118
115
  d as GlobalClickController,
119
116
  p as KeyboardNavigationController
120
117
  };
@@ -2,34 +2,34 @@ var v = (e) => {
2
2
  throw TypeError(e);
3
3
  };
4
4
  var u = (e, i, t) => i.has(e) || v("Cannot " + t);
5
- var d = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, s) => (u(e, i, "write to private field"), s ? s.call(e, t) : i.set(e, t), t);
5
+ var d = (e, i, t) => (u(e, i, "read from private field"), t ? t.call(e) : i.get(e)), _ = (e, i, t) => i.has(e) ? v("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, t), r = (e, i, t, a) => (u(e, i, "write to private field"), a ? a.call(e, t) : i.set(e, t), t);
6
6
  import "../icon/icon.js";
7
- import { SkfElement as b } from "../../internal/components/skf-element.js";
8
- import { watch as g } from "../../internal/helpers/watch.js";
9
- import { componentStyles as C } from "../../styles/component.styles.js";
7
+ import { SkfElement as g } from "../../internal/components/skf-element.js";
8
+ import { watch as C } from "../../internal/helpers/watch.js";
9
+ import { componentStyles as x } from "../../styles/component.styles.js";
10
10
  import "lit";
11
- import { property as y, state as c } from "lit/decorators.js";
11
+ import { property as b, state as c } from "lit/decorators.js";
12
12
  import { classMap as $ } from "lit/directives/class-map.js";
13
- import { ifDefined as x } from "lit/directives/if-defined.js";
14
- import { literal as w, html as S } from "lit/static-html.js";
13
+ import { ifDefined as w } from "lit/directives/if-defined.js";
14
+ import { literal as S, html as y } from "lit/static-html.js";
15
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
- (m = e[h]) && (p = (s ? m(i, t, p) : m(p)) || p);
19
- return s && p && I(i, t, p), p;
20
- }, o, n;
21
- const f = class f extends b {
16
+ var I = Object.defineProperty, O = Object.getOwnPropertyDescriptor, o = (e, i, t, a) => {
17
+ for (var p = a > 1 ? void 0 : a ? O(i, t) : i, h = e.length - 1, m; h >= 0; h--)
18
+ (m = e[h]) && (p = (a ? m(i, t, p) : m(p)) || p);
19
+ return a && p && I(i, t, p), p;
20
+ }, l, n;
21
+ const f = class f extends g {
22
22
  constructor() {
23
23
  super();
24
- _(this, o);
24
+ _(this, l);
25
25
  _(this, n);
26
- r(this, o, !1), r(this, n, !1), this.completed = !1, this._index = 0, this._linear = !1, this._handleClick = () => {
26
+ r(this, l, !1), r(this, n, !1), this.completed = !1, this._index = 0, this._linear = !1, this._handleClick = () => {
27
27
  this._linear || (this.state = "active");
28
28
  }, this.role = "listitem";
29
29
  }
30
30
  set _setInternalState(t) {
31
- r(this, o, !0), this._uiState = t, t === "active" || t === "activeCompleted" ? this.state = t === "active" ? "active" : "completed" : this.state = void 0, setTimeout(() => {
32
- r(this, o, !1);
31
+ r(this, l, !0), this._uiState = t, t === "active" || t === "activeCompleted" ? this.state = t === "active" ? "active" : "completed" : this.state = void 0, setTimeout(() => {
32
+ r(this, l, !1);
33
33
  });
34
34
  }
35
35
  get _setInternalState() {
@@ -44,8 +44,8 @@ const f = class f extends b {
44
44
  this._setInternalState = "activeCompleted";
45
45
  return;
46
46
  }
47
- if (d(this, o)) {
48
- r(this, o, !1);
47
+ if (d(this, l)) {
48
+ r(this, l, !1);
49
49
  return;
50
50
  }
51
51
  r(this, n, ["active", "completed"].includes(String(this.state)) && !["active", "activeCompleted"].includes(String(this._uiState))), this._emitUpdate();
@@ -60,9 +60,9 @@ 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 = w`${t}`;
64
- return S`
65
- <${s}
63
+ const t = this._linear ? S`div` : S`button`;
64
+ return y`
65
+ <${t}
66
66
  @click=${this._handleClick}
67
67
  ?disabled=${this._disabled}
68
68
  class=${$({
@@ -72,42 +72,42 @@ const f = class f extends b {
72
72
  "stepper-item--completed": this._uiState === "completed",
73
73
  "stepper-item--enabled": this._uiState === "enabled"
74
74
  })}
75
- type=${x(t == "button" ? "button" : void 0)}
75
+ type=${w(this._linear ? void 0 : "button")}
76
76
  >
77
77
  <div class="stepper-item__circle">
78
- ${this._uiState === "activeCompleted" ? S`<skf-icon color="inverse" name="check"></skf-icon>` : this._index}
78
+ ${this._uiState === "activeCompleted" ? y`<skf-icon color="inverse" name="check"></skf-icon>` : this._index}
79
79
  </div>
80
80
  <slot class="stepper-item__label"></slot>
81
- </${s}>
81
+ </${t}>
82
82
  `;
83
83
  }
84
84
  };
85
- o = new WeakMap(), n = new WeakMap(), f.styles = [C, U];
86
- let a = f;
87
- l([
88
- y({ reflect: !0 })
89
- ], a.prototype, "state", 2);
90
- l([
91
- y({ type: Boolean })
92
- ], a.prototype, "completed", 2);
93
- l([
85
+ l = new WeakMap(), n = new WeakMap(), f.styles = [x, U];
86
+ let s = f;
87
+ o([
88
+ b({ reflect: !0 })
89
+ ], s.prototype, "state", 2);
90
+ o([
91
+ b({ type: Boolean })
92
+ ], s.prototype, "completed", 2);
93
+ o([
94
94
  c()
95
- ], a.prototype, "_disabled", 2);
96
- l([
95
+ ], s.prototype, "_disabled", 2);
96
+ o([
97
97
  c()
98
- ], a.prototype, "_index", 2);
99
- l([
98
+ ], s.prototype, "_index", 2);
99
+ o([
100
100
  c()
101
- ], a.prototype, "_linear", 2);
102
- l([
101
+ ], s.prototype, "_linear", 2);
102
+ o([
103
103
  c()
104
- ], a.prototype, "_uiState", 2);
105
- l([
104
+ ], s.prototype, "_uiState", 2);
105
+ o([
106
106
  c()
107
- ], a.prototype, "_setInternalState", 1);
108
- l([
109
- g("state")
110
- ], a.prototype, "_handleState", 1);
107
+ ], s.prototype, "_setInternalState", 1);
108
+ o([
109
+ C("state")
110
+ ], s.prototype, "_handleState", 1);
111
111
  export {
112
- a as SkfStepperItem
112
+ s as SkfStepperItem
113
113
  };
@@ -1,5 +1,5 @@
1
- import { SkfStepperItem } from './stepper-item.component';
2
- export * from './stepper-item.component';
1
+ import { SkfStepperItem } from './stepper-item.component.js';
2
+ export * from './stepper-item.component.js';
3
3
  export default SkfStepperItem;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,5 +1,5 @@
1
- import { SkfStepper } from './stepper.component';
2
- export * from './stepper.component';
1
+ import { SkfStepper } from './stepper.component.js';
2
+ export * from './stepper.component.js';
3
3
  export default SkfStepper;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,5 +1,5 @@
1
- import { SkfSwitch } from './switch.component';
2
- export * from './switch.component';
1
+ import { SkfSwitch } from './switch.component.js';
2
+ export * from './switch.component.js';
3
3
  export default SkfSwitch;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,5 +1,5 @@
1
- import { SkfTabPanel } from './tab-panel.component';
2
- export * from './tab-panel.component';
1
+ import { SkfTabPanel } from './tab-panel.component.js';
2
+ export * from './tab-panel.component.js';
3
3
  export default SkfTabPanel;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,6 +1,6 @@
1
- import type { SkfTabGroup } from '../tab-group/tab-group.component.js';
2
1
  import { SkfElement } from '../../internal/components/skf-element';
3
2
  import { type CSSResultGroup } from 'lit';
3
+ import type { SkfTabs } from './tabs.component.js';
4
4
  export interface SkfTabEvent {
5
5
  tab: SkfTab;
6
6
  }
@@ -19,7 +19,7 @@ export declare class SkfTab extends SkfElement {
19
19
  /** The name of the tab-panel this tab is associated with. The panel must be located in the same tab group. */
20
20
  panel: string;
21
21
  selected: boolean;
22
- variant: SkfTabGroup['variant'];
22
+ variant: SkfTabs['variant'];
23
23
  constructor();
24
24
  /** @internal */
25
25
  handleSelectedChange(): void;
@@ -1,5 +1,5 @@
1
- import { SkfTab } from './tab.component';
2
- export * from './tab.component';
1
+ import { SkfTab } from './tab.component.js';
2
+ export * from './tab.component.js';
3
3
  export default SkfTab;
4
4
  declare global {
5
5
  interface HTMLElementTagNameMap {
@@ -1,17 +1,16 @@
1
- import '../card/card.js';
2
1
  import { SkfElement } from '../../internal/components/skf-element';
3
2
  import { type CSSResultGroup, type PropertyValues } from 'lit';
4
3
  /**
5
- * The `<skf-tab-group>` is a component that displays a list of actions or options.
4
+ * The `<skf-tabs>` is a component that displays a list of actions or options
6
5
  *
7
6
  * @documentation See [zeroheight](https://zeroheight.com/****) for design principles
8
7
  *
9
8
  * @slot - Used for grouping tab panels in the tab group. Must be <skf-tab-panel> elements
10
9
  * @slot tabs - Used for grouping tabs in the tab group. Must be <skf-tab> elements
11
10
  *
12
- * @tagname skf-tab-group
11
+ * @tagname skf-tabs
13
12
  */
14
- export declare class SkfTabGroup extends SkfElement {
13
+ export declare class SkfTabs extends SkfElement {
15
14
  static styles: CSSResultGroup;
16
15
  /** Sets the default selected tab */
17
16
  defaultSelected: number;