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

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 (39) hide show
  1. package/dist/components/alert/alert.component.d.ts +5 -1
  2. package/dist/components/alert/alert.component.js +57 -54
  3. package/dist/components/alert/alert.styles.js +51 -47
  4. package/dist/components/breadcrumb/breadcrumb-item.component.js +24 -25
  5. package/dist/components/breadcrumb/breadcrumb-item.styles.js +16 -15
  6. package/dist/components/breadcrumb/breadcrumb.component.d.ts +5 -2
  7. package/dist/components/breadcrumb/breadcrumb.component.js +51 -46
  8. package/dist/components/breadcrumb/breadcrumb.styles.js +13 -10
  9. package/dist/components/button/button.component.js +39 -39
  10. package/dist/components/button/button.styles.js +2 -1
  11. package/dist/components/card/card.component.d.ts +5 -0
  12. package/dist/components/card/card.component.js +46 -24
  13. package/dist/components/card/card.styles.js +5 -4
  14. package/dist/components/heading/heading.component.d.ts +5 -1
  15. package/dist/components/heading/heading.component.js +46 -33
  16. package/dist/components/heading/heading.styles.js +34 -36
  17. package/dist/components/icon/icon.component.d.ts +4 -0
  18. package/dist/components/icon/icon.component.js +52 -43
  19. package/dist/components/icon/icon.styles.js +60 -60
  20. package/dist/components/logo/logo.component.d.ts +4 -1
  21. package/dist/components/logo/logo.component.js +55 -51
  22. package/dist/components/logo/logo.styles.js +26 -16
  23. package/dist/components/select/select-option.component.js +8 -8
  24. package/dist/components/select/select.component.js +1 -2
  25. package/dist/components/tag/tag.component.d.ts +6 -1
  26. package/dist/components/tag/tag.component.js +66 -45
  27. package/dist/components/tag/tag.styles.js +6 -6
  28. package/dist/custom-elements.json +173 -33
  29. package/dist/internal/helpers/stateMap.d.ts +14 -0
  30. package/dist/internal/helpers/stateMap.js +68 -0
  31. package/dist/internal/helpers/watch.d.ts +1 -1
  32. package/dist/internal/helpers/watch.js +12 -12
  33. package/dist/styles/component.styles.js +37 -36
  34. package/dist/styles/global.css +1 -1
  35. package/dist/types/jsx/custom-element-jsx.d.ts +8 -5
  36. package/dist/types/vue/index.d.ts +8 -5
  37. package/dist/vscode.html-custom-data.json +6 -6
  38. package/dist/web-types.json +12 -10
  39. package/package.json +7 -7
@@ -7,7 +7,7 @@ import { type CSSResultGroup } from 'lit';
7
7
  *
8
8
  * See [zeroheight](https://zeroheight.com/853e936c9/p/990ec5-alert) for design principles
9
9
  *
10
- * @event skf-alert-close - Fires when the close button is clicked
10
+ * @event {CustomEvent} skf-alert-close - Fires when the close button is clicked
11
11
  *
12
12
  * @slot - Alert message. **Notice!** See design principles for approved content
13
13
  * @slot link - Slot for the link
@@ -15,6 +15,7 @@ import { type CSSResultGroup } from 'lit';
15
15
  * @tagname skf-alert
16
16
  */
17
17
  export declare class SkfAlert extends SkfElement {
18
+ #private;
18
19
  static styles: CSSResultGroup;
19
20
  /** Close button aria-label */
20
21
  buttonLabel: string;
@@ -24,6 +25,9 @@ export declare class SkfAlert extends SkfElement {
24
25
  persistent: boolean;
25
26
  /** If defined, gives the supplied appearance */
26
27
  severity?: Severity;
28
+ connectedCallback(): void;
29
+ /** @internal */
30
+ _handleStateChange(): void;
27
31
  /** @internal */
28
32
  private _handleClose;
29
33
  render(): import("lit").TemplateResult<1>;
@@ -1,73 +1,76 @@
1
- import "../icon/icon.js";
2
- import { SkfElement as f } from "../../internal/components/skf-element.js";
3
- import { componentStyles as y } from "../../styles/component.styles.js";
4
- import { nothing as h, html as p } from "lit";
5
- import { property as s } from "lit/decorators.js";
6
- import { classMap as u } from "lit/directives/class-map.js";
7
- import { ifDefined as m } from "lit/directives/if-defined.js";
8
- import { styles as v } from "./alert.styles.js";
9
- var b = Object.defineProperty, r = (n, l, a, d) => {
10
- for (var t = void 0, i = n.length - 1, c; i >= 0; i--)
11
- (c = n[i]) && (t = c(l, a, t) || t);
12
- return t && b(l, a, t), t;
1
+ var u = (t) => {
2
+ throw TypeError(t);
13
3
  };
14
- const o = class o extends f {
4
+ var d = (t, e, s) => e.has(t) || u("Cannot " + s);
5
+ var m = (t, e, s) => (d(t, e, "read from private field"), s ? s.call(t) : e.get(t)), f = (t, e, s) => e.has(t) ? u("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), y = (t, e, s, o) => (d(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s);
6
+ import "../icon/icon.js";
7
+ import { SkfElement as g } from "../../internal/components/skf-element.js";
8
+ import { stateMap as C } from "../../internal/helpers/stateMap.js";
9
+ import { watch as S } from "../../internal/helpers/watch.js";
10
+ import { componentStyles as $ } from "../../styles/component.styles.js";
11
+ import { nothing as w, html as v } from "lit";
12
+ import { property as p } from "lit/decorators.js";
13
+ import { ifDefined as _ } from "lit/directives/if-defined.js";
14
+ import { styles as O } from "./alert.styles.js";
15
+ var P = Object.defineProperty, k = Object.getOwnPropertyDescriptor, l = (t, e, s, o) => {
16
+ for (var i = o > 1 ? void 0 : o ? k(e, s) : e, c = t.length - 1, h; c >= 0; c--)
17
+ (h = t[c]) && (i = (o ? h(e, s, i) : h(i)) || i);
18
+ return o && i && P(e, s, i), i;
19
+ }, n, a;
20
+ const b = class b extends g {
15
21
  constructor() {
16
- super(...arguments), this.buttonLabel = "Close", this.persistent = !1, this._handleClose = () => {
22
+ super(...arguments);
23
+ f(this, n);
24
+ f(this, a);
25
+ y(this, n, this.attachInternals()), y(this, a, m(this, n).states), this.buttonLabel = "Close", this.persistent = !1, this._handleClose = () => {
17
26
  this.emit("skf-alert-close");
18
27
  };
19
28
  }
29
+ connectedCallback() {
30
+ super.connectedCallback(), this.role = this.persistent ? "status" : "alert";
31
+ }
32
+ _handleStateChange() {
33
+ const s = ["error", "info", "success", "warning"];
34
+ C(m(this, a), s).set(this.severity);
35
+ }
20
36
  render() {
21
- return p`
22
- <div
23
- aria-describedby="main"
24
- class=${u({
25
- alert: !0,
26
- "alert--severity-error": this.severity === "error",
27
- "alert--severity-info": this.severity === "info",
28
- "alert--severity-success": this.severity === "success",
29
- "alert--severity-warning": this.severity === "warning",
30
- [this.className]: !0
31
- })}
32
- role=${this.persistent ? "status" : "alert"}
33
- >
37
+ return v`
38
+ <div id="root">
34
39
  <skf-icon
35
- color=${m(this.severity ?? "secondary")}
36
- name=${m(this.icon ?? "info")}
40
+ color=${_(this.severity ?? "secondary")}
41
+ name=${_(this.icon ?? "info")}
37
42
  size="sm"
38
43
  ></skf-icon>
39
- <div class="alert__body">
40
- <slot class="alert__main" id="main"></slot>
44
+ <div id="body">
45
+ <slot id="main"></slot>
41
46
  <slot name="link"></slot>
42
47
  </div>
43
- ${this.persistent ? p`
44
- <button
45
- @click="${this._handleClose}"
46
- aria-label=${this.buttonLabel}
47
- class="alert__btn"
48
- type="button"
49
- >
48
+ ${this.persistent ? v`
49
+ <button @click="${this._handleClose}" aria-label=${this.buttonLabel} type="button">
50
50
  <skf-icon name="close" size="sm"></skf-icon>
51
51
  </button>
52
- ` : h}
52
+ ` : w}
53
53
  </div>
54
54
  `;
55
55
  }
56
56
  };
57
- o.styles = [y, v];
58
- let e = o;
59
- r([
60
- s({ attribute: "button-label" })
61
- ], e.prototype, "buttonLabel");
62
- r([
63
- s()
64
- ], e.prototype, "icon");
65
- r([
66
- s({ type: Boolean, reflect: !0 })
67
- ], e.prototype, "persistent");
68
- r([
69
- s({ reflect: !0 })
70
- ], e.prototype, "severity");
57
+ n = new WeakMap(), a = new WeakMap(), b.styles = [$, O];
58
+ let r = b;
59
+ l([
60
+ p({ type: String, attribute: "button-label" })
61
+ ], r.prototype, "buttonLabel", 2);
62
+ l([
63
+ p({ type: String })
64
+ ], r.prototype, "icon", 2);
65
+ l([
66
+ p({ type: Boolean })
67
+ ], r.prototype, "persistent", 2);
68
+ l([
69
+ p({ type: String })
70
+ ], r.prototype, "severity", 2);
71
+ l([
72
+ S("severity")
73
+ ], r.prototype, "_handleStateChange", 1);
71
74
  export {
72
- e as SkfAlert
75
+ r as SkfAlert
73
76
  };
@@ -1,63 +1,67 @@
1
1
  import { css as r } from "lit";
2
2
  const s = r`
3
- /* stylelint-disable selector-class-pattern */
4
3
  @layer components {
5
- :host {
6
- contain: layout;
7
- }
4
+ @layer base {
5
+ :host {
6
+ contain: layout;
7
+ }
8
8
 
9
- .alert {
10
- background-color: var(--_skf-alert-bg-color, var(--skf-bg-color-neutral-2));
11
- border: var(--skf-border-width-sm) solid
12
- var(--_skf-alert-border-color, var(--skf-border-color-primary));
13
- border-radius: var(--skf-border-radius-sm);
14
- box-shadow: var(--skf-shadow-md);
15
- display: flex;
16
- font-size: var(--skf-font-size-75);
17
- gap: var(--skf-spacing-50);
18
- padding-block: var(--skf-spacing-75);
19
- padding-inline: var(--skf-spacing-50);
20
- }
9
+ #root {
10
+ --_skf-alert-bg-color: var(--skf-bg-color-neutral-2);
11
+ --_skf-alert-border-color: var(--skf-border-color-primary);
21
12
 
22
- .alert--severity-error {
23
- --_skf-alert-bg-color: var(--skf-severity-bg-color-error);
24
- --_skf-alert-border-color: var(--skf-severity-fg-color-error);
25
- }
13
+ background-color: var(--_skf-alert-bg-color);
14
+ border: var(--skf-border-width-sm) solid var(--_skf-alert-border-color);
15
+ border-radius: var(--skf-border-radius-sm);
16
+ box-shadow: var(--skf-shadow-md);
17
+ display: flex;
18
+ font-size: var(--skf-font-size-75);
19
+ gap: var(--skf-spacing-50);
20
+ padding-block: var(--skf-spacing-75);
21
+ padding-inline: var(--skf-spacing-50);
22
+ }
26
23
 
27
- .alert--severity-info {
28
- --_skf-alert-bg-color: var(--skf-severity-bg-color-info);
29
- --_skf-alert-border-color: var(--skf-severity-fg-color-info);
30
- }
24
+ #body {
25
+ display: flex;
26
+ flex: auto;
27
+ flex-wrap: wrap;
28
+ gap: var(--skf-spacing-25) var(--skf-spacing-100);
29
+ justify-content: space-between;
30
+ }
31
31
 
32
- .alert--severity-success {
33
- --_skf-alert-bg-color: var(--skf-severity-bg-color-success);
34
- --_skf-alert-border-color: var(--skf-severity-fg-color-success);
35
- }
32
+ #main {
33
+ display: block;
34
+ }
36
35
 
37
- .alert--severity-warning {
38
- --_skf-alert-bg-color: var(--skf-severity-bg-color-warning);
39
- --_skf-alert-border-color: var(--skf-severity-fg-color-warning);
40
- }
36
+ button {
37
+ display: inline-flex;
38
+ }
41
39
 
42
- .alert__body {
43
- display: flex;
44
- flex: auto;
45
- flex-wrap: wrap;
46
- gap: var(--skf-spacing-25) var(--skf-spacing-100);
47
- justify-content: space-between;
40
+ ::slotted(skf-link) {
41
+ text-transform: uppercase;
42
+ }
48
43
  }
49
44
 
50
- .alert__main {
51
- display: block;
52
- }
45
+ @layer mods {
46
+ :host(:state(error)) #root {
47
+ --_skf-alert-bg-color: var(--skf-severity-bg-color-error);
48
+ --_skf-alert-border-color: var(--skf-severity-fg-color-error);
49
+ }
53
50
 
54
- ::slotted(skf-link) {
55
- text-transform: uppercase;
56
- }
51
+ :host(:state(info)) #root {
52
+ --_skf-alert-bg-color: var(--skf-severity-bg-color-info);
53
+ --_skf-alert-border-color: var(--skf-severity-fg-color-info);
54
+ }
55
+
56
+ :host(:state(success)) #root {
57
+ --_skf-alert-bg-color: var(--skf-severity-bg-color-success);
58
+ --_skf-alert-border-color: var(--skf-severity-fg-color-success);
59
+ }
57
60
 
58
- .alert__btn {
59
- cursor: pointer;
60
- display: inline-flex;
61
+ :host(:state(warning)) #root {
62
+ --_skf-alert-bg-color: var(--skf-severity-bg-color-warning);
63
+ --_skf-alert-border-color: var(--skf-severity-fg-color-warning);
64
+ }
61
65
  }
62
66
  }
63
67
  `;
@@ -1,17 +1,16 @@
1
1
  import "../icon/icon.js";
2
- import { SkfElement as f } from "../../internal/components/skf-element.js";
3
- import { componentStyles as h } from "../../styles/component.styles.js";
4
- import { html as a } from "lit";
5
- import { property as m, state as _ } from "lit/decorators.js";
6
- import { classMap as u } from "lit/directives/class-map.js";
7
- import { ifDefined as b } from "lit/directives/if-defined.js";
2
+ import { SkfElement as h } from "../../internal/components/skf-element.js";
3
+ import { componentStyles as m } from "../../styles/component.styles.js";
4
+ import { html as n } from "lit";
5
+ import { property as f, state as _ } from "lit/decorators.js";
6
+ import { ifDefined as u } from "lit/directives/if-defined.js";
8
7
  import { styles as C } from "./breadcrumb-item.styles.js";
9
- var d = Object.defineProperty, v = Object.getOwnPropertyDescriptor, c = (p, t, s, r) => {
10
- for (var e = r > 1 ? void 0 : r ? v(t, s) : t, o = p.length - 1, l; o >= 0; o--)
11
- (l = p[o]) && (e = (r ? l(t, s, e) : l(e)) || e);
12
- return r && e && d(t, s, e), e;
8
+ var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, p = (a, t, s, r) => {
9
+ for (var e = r > 1 ? void 0 : r ? y(t, s) : t, o = a.length - 1, l; o >= 0; o--)
10
+ (l = a[o]) && (e = (r ? l(t, s, e) : l(e)) || e);
11
+ return r && e && v(t, s, e), e;
13
12
  };
14
- const n = class n extends f {
13
+ const c = class c extends h {
15
14
  constructor() {
16
15
  super(...arguments), this._isCurrent = !1, this._clickHandler = (t, s) => {
17
16
  var r;
@@ -28,32 +27,32 @@ const n = class n extends f {
28
27
  super.connectedCallback(), this.role = "listitem";
29
28
  }
30
29
  render() {
31
- return a`
32
- <div class=${u({ "breadcrumb-item": !0 })}>
33
- ${this.href ? a`
30
+ return n`
31
+ <div id="root">
32
+ ${this.href ? n`
34
33
  <a
35
34
  @click=${this._clickHandler}
36
- aria-current=${b(this._isCurrent ? "page" : void 0)}
37
- class="breadcrumb-item__label"
35
+ aria-current=${u(this._isCurrent ? "page" : void 0)}
36
+ class="label"
38
37
  href=${this.href}
39
38
  >
40
39
  <slot></slot>
41
40
  </a>
42
- ` : a`<slot class="breadcrumb-item__label"></slot>`}
43
- <span class="breadcrumb-item__separator">/</span>
41
+ ` : n`<slot class="label"></slot>`}
42
+ <span>/</span>
44
43
  </div>
45
44
  `;
46
45
  }
47
46
  };
48
- n.styles = [h, C];
49
- let i = n;
50
- c([
51
- m()
47
+ c.styles = [m, C];
48
+ let i = c;
49
+ p([
50
+ f({ type: String })
52
51
  ], i.prototype, "href", 2);
53
- c([
54
- m({ attribute: !1 })
52
+ p([
53
+ f({ attribute: !1 })
55
54
  ], i.prototype, "onClick", 1);
56
- c([
55
+ p([
57
56
  _()
58
57
  ], i.prototype, "_isCurrent", 2);
59
58
  export {
@@ -1,18 +1,28 @@
1
1
  import { css as r } from "lit";
2
- const o = r`
3
- /* stylelint-disable selector-class-pattern */
2
+ const e = r`
4
3
  @layer components {
5
4
  :host {
6
5
  contain: layout;
7
6
  }
8
7
 
9
- .breadcrumb-item {
8
+ #root {
9
+ --_skf-breadcrumb-item-color: inherit;
10
+
10
11
  align-items: center;
11
12
  display: flex;
12
13
  }
13
14
 
14
- .breadcrumb-item__label {
15
- color: var(--_skf-breadcrumb-item-color, inherit);
15
+ span {
16
+ display: block;
17
+ margin-inline: var(--skf-spacing-25);
18
+
19
+ :host(:last-of-type) & {
20
+ display: none;
21
+ }
22
+ }
23
+
24
+ .label {
25
+ color: var(--_skf-breadcrumb-item-color);
16
26
 
17
27
  &:is(slot) {
18
28
  display: inline;
@@ -46,17 +56,8 @@ const o = r`
46
56
  }
47
57
  }
48
58
  }
49
-
50
- .breadcrumb-item__separator {
51
- display: block;
52
- margin-inline: var(--skf-spacing-25);
53
-
54
- :host(:last-of-type) & {
55
- display: none;
56
- }
57
- }
58
59
  }
59
60
  `;
60
61
  export {
61
- o as styles
62
+ e as styles
62
63
  };
@@ -13,17 +13,20 @@ import type { SkfBreadcrumbItem } from './breadcrumb-item.component.js';
13
13
  * @tagname skf-breadcrumb
14
14
  */
15
15
  export declare class SkfBreadcrumb extends SkfElement {
16
+ #private;
16
17
  static styles: CSSResultGroup;
17
18
  /** aria-label for the breadcrumb control */
18
19
  label: string;
19
- /** Displays an alternative size */
20
- size: 'md' | 'sm';
20
+ /** If true, renders a smaller version */
21
+ small: boolean;
21
22
  /** @internal */
22
23
  _isDynamic: boolean;
23
24
  /** @internal */
24
25
  _items: NodeListOf<SkfBreadcrumbItem>;
25
26
  firstUpdated(): void;
26
27
  /** @internal */
28
+ _handleStateChange(): void;
29
+ /** @internal */
27
30
  private _handleSlotChange;
28
31
  render(): import("lit").TemplateResult;
29
32
  }
@@ -1,60 +1,65 @@
1
- import { SkfElement as c } from "../../internal/components/skf-element.js";
2
- import { componentStyles as f } from "../../styles/component.styles.js";
3
- import "lit";
4
- import { property as p, state as _, queryAssignedElements as d } from "lit/decorators.js";
5
- import { classMap as y } from "lit/directives/class-map.js";
6
- import { ifDefined as u } from "lit/directives/if-defined.js";
7
- import { literal as h, html as b } from "lit/static-html.js";
8
- import { styles as g } from "./breadcrumb.styles.js";
9
- var v = Object.defineProperty, r = (a, t, i, n) => {
10
- for (var s = void 0, l = a.length - 1, m; l >= 0; l--)
11
- (m = a[l]) && (s = m(t, i, s) || s);
12
- return s && v(t, i, s), s;
1
+ var f = (t) => {
2
+ throw TypeError(t);
13
3
  };
14
- const o = class o extends c {
4
+ var g = (t, s, e) => s.has(t) || f("Cannot " + e);
5
+ var p = (t, s, e) => (g(t, s, "read from private field"), e ? e.call(t) : s.get(t)), _ = (t, s, e) => s.has(t) ? f("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), y = (t, s, e, i) => (g(t, s, "write to private field"), i ? i.call(t, e) : s.set(t, e), e);
6
+ import { SkfElement as d } from "../../internal/components/skf-element.js";
7
+ import { stateMap as C } from "../../internal/helpers/stateMap.js";
8
+ import { watch as D } from "../../internal/helpers/watch.js";
9
+ import { componentStyles as v } from "../../styles/component.styles.js";
10
+ import "lit";
11
+ import { property as u, state as S, queryAssignedElements as O } from "lit/decorators.js";
12
+ import { html as P } from "lit/static-html.js";
13
+ import { styles as b } from "./breadcrumb.styles.js";
14
+ var w = Object.defineProperty, E = Object.getOwnPropertyDescriptor, n = (t, s, e, i) => {
15
+ for (var r = i > 1 ? void 0 : i ? E(s, e) : s, h = t.length - 1, m; h >= 0; h--)
16
+ (m = t[h]) && (r = (i ? m(s, e, r) : m(r)) || r);
17
+ return i && r && w(s, e, r), r;
18
+ }, a, l;
19
+ const c = class c extends d {
15
20
  constructor() {
16
- super(...arguments), this.label = "Breadcrumb", this.size = "md", this._isDynamic = !1, this._handleSlotChange = () => {
17
- this._items.forEach((t, i) => {
18
- this._isDynamic = !!t.href;
19
- const n = i === this._items.length - 1;
20
- this._isDynamic && n && (t._isCurrent = !0);
21
+ super(...arguments);
22
+ _(this, a);
23
+ _(this, l);
24
+ y(this, a, this.attachInternals()), y(this, l, p(this, a).states), this.label = "Breadcrumb", this.small = !1, this._isDynamic = !1, this._handleSlotChange = () => {
25
+ this._items.forEach((e, i) => {
26
+ this._isDynamic = this._isDynamic || !!e.href, this.role = this._isDynamic ? "navigation" : null;
27
+ const r = i === this._items.length - 1;
28
+ this._isDynamic && r && (e._isCurrent = !0);
21
29
  });
22
30
  };
23
31
  }
24
32
  firstUpdated() {
25
33
  this._handleSlotChange();
26
34
  }
35
+ _handleStateChange() {
36
+ C(p(this, l), "small").set(this.small);
37
+ }
27
38
  render() {
28
- const t = this._isDynamic ? h`nav` : h`div`;
29
- return b`
30
- <${t}
31
- aria-label=${u(this.label && this._isDynamic ? this.label : void 0)}
32
- class=${y({
33
- breadcrumb: !0,
34
- "breadcrumb--small": this.size === "sm"
35
- })}
36
- >
37
- <ol class="breadcrumb__list">
38
- <slot @slotchange=${this._handleSlotChange}></slot>
39
- </ol>
40
- </{tag}>
39
+ return P`
40
+ <ol id="root">
41
+ <slot @slotchange=${this._handleSlotChange}></slot>
42
+ </ol>
41
43
  `;
42
44
  }
43
45
  };
44
- o.styles = [f, g];
45
- let e = o;
46
- r([
47
- p()
48
- ], e.prototype, "label");
49
- r([
50
- p({ reflect: !0 })
51
- ], e.prototype, "size");
52
- r([
53
- _()
54
- ], e.prototype, "_isDynamic");
55
- r([
56
- d()
57
- ], e.prototype, "_items");
46
+ a = new WeakMap(), l = new WeakMap(), c.styles = [v, b];
47
+ let o = c;
48
+ n([
49
+ u({ type: String })
50
+ ], o.prototype, "label", 2);
51
+ n([
52
+ u({ type: Boolean })
53
+ ], o.prototype, "small", 2);
54
+ n([
55
+ S()
56
+ ], o.prototype, "_isDynamic", 2);
57
+ n([
58
+ O()
59
+ ], o.prototype, "_items", 2);
60
+ n([
61
+ D("small")
62
+ ], o.prototype, "_handleStateChange", 1);
58
63
  export {
59
- e as SkfBreadcrumb
64
+ o as SkfBreadcrumb
60
65
  };
@@ -1,19 +1,22 @@
1
1
  import { css as t } from "lit";
2
2
  const s = t`
3
- /* stylelint-disable selector-class-pattern */
4
3
  @layer components {
5
- :host {
6
- contain: layout;
7
- }
4
+ @layer base {
5
+ :host {
6
+ contain: layout;
7
+ }
8
8
 
9
- .breadcrumb--small {
10
- font-size: var(--skf-font-size-75);
11
- font-weight: var(--skf-font-weight-medium);
9
+ #root {
10
+ align-items: center;
11
+ display: flex;
12
+ }
12
13
  }
13
14
 
14
- .breadcrumb__list {
15
- align-items: center;
16
- display: flex;
15
+ @layer mods {
16
+ :host(:state(small)) #root {
17
+ font-size: var(--skf-font-size-75);
18
+ font-weight: var(--skf-font-weight-medium);
19
+ }
17
20
  }
18
21
  }
19
22
  `;