@skf-design-system/ui-components 1.0.0-alpha.30 → 1.0.0-alpha.32

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.
@@ -1,5 +1,5 @@
1
1
  import { SkfElement } from '../../internal/components/skf-element.js';
2
- import type { Icon, IconColor, IconSize, SeverityFgColor } from '@skf-design-system/ui-assets';
2
+ import { type Icon, type IconColor, type IconSize, type SeverityFgColor } from '@skf-design-system/ui-assets';
3
3
  import { type CSSResultGroup } from 'lit';
4
4
  /**
5
5
  * The `<skf-icon>` component is used to clarify interface elements. When used, should always be paired with (possibly invisible) text
@@ -1,51 +1,52 @@
1
- import { SkfElement as f } from "../../internal/components/skf-element.js";
2
- import * as c from "@skf-design-system/ui-assets";
1
+ import { SkfElement as c } from "../../internal/components/skf-element.js";
2
+ import { ICONS as f } from "@skf-design-system/ui-assets";
3
3
  import d from "../../styles/component.styles.js";
4
4
  import { html as h } from "lit";
5
- import { property as t } from "lit/decorators.js";
5
+ import { property as o } from "lit/decorators.js";
6
6
  import { classMap as u } from "lit/directives/class-map.js";
7
- import { ifDefined as s } from "lit/directives/if-defined.js";
7
+ import { ifDefined as l } from "lit/directives/if-defined.js";
8
8
  import v from "./icon.styles.js";
9
- var y = Object.defineProperty, o = (m, p, a, $) => {
10
- for (var r = void 0, i = m.length - 1, n; i >= 0; i--)
11
- (n = m[i]) && (r = n(p, a, r) || r);
12
- return r && y(p, a, r), r;
9
+ var y = Object.defineProperty, i = (p, e, a, $) => {
10
+ for (var r = void 0, s = p.length - 1, n; s >= 0; s--)
11
+ (n = p[s]) && (r = n(e, a, r) || r);
12
+ return r && y(e, a, r), r;
13
13
  };
14
- const l = class l extends f {
14
+ const m = class m extends c {
15
15
  constructor() {
16
16
  super(...arguments), this.color = "primary", this.size = "md";
17
17
  }
18
18
  render() {
19
+ const e = f[this.name];
19
20
  return h`
20
21
  <div
21
- aria-hidden=${s(this.label ? void 0 : "true")}
22
- aria-label=${s(this.label)}
22
+ aria-hidden=${l(this.label ? void 0 : "true")}
23
+ aria-label=${l(this.label)}
23
24
  class=${u({
24
25
  icon: !0,
25
26
  [`icon--color-${this.color}`]: !0,
26
27
  [`icon--size-${this.size}`]: !0
27
28
  })}
28
- role=${s(this.label ? "img" : void 0)}
29
+ role=${l(this.label ? "img" : void 0)}
29
30
  >
30
- ${c[this.name]}
31
+ ${e}
31
32
  </div>
32
33
  `;
33
34
  }
34
35
  };
35
- l.styles = [d, v];
36
- let e = l;
37
- o([
38
- t({ reflect: !0 })
39
- ], e.prototype, "color");
40
- o([
41
- t()
42
- ], e.prototype, "label");
43
- o([
44
- t()
45
- ], e.prototype, "name");
46
- o([
47
- t({ reflect: !0 })
48
- ], e.prototype, "size");
36
+ m.styles = [d, v];
37
+ let t = m;
38
+ i([
39
+ o({ reflect: !0 })
40
+ ], t.prototype, "color");
41
+ i([
42
+ o()
43
+ ], t.prototype, "label");
44
+ i([
45
+ o()
46
+ ], t.prototype, "name");
47
+ i([
48
+ o({ reflect: !0 })
49
+ ], t.prototype, "size");
49
50
  export {
50
- e as SkfIcon
51
+ t as SkfIcon
51
52
  };
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "sideEffects": true,
35
35
  "type": "module",
36
36
  "types": "./dist/index.d.ts",
37
- "version": "1.0.0-alpha.30",
37
+ "version": "1.0.0-alpha.32",
38
38
  "dependencies": {
39
39
  "@floating-ui/dom": "^1.6.12"
40
40
  },
@@ -46,7 +46,7 @@
46
46
  "@eslint/js": "^9.16.0",
47
47
  "@lit/react": "^1.0.6",
48
48
  "@playwright/test": "^1.49.0",
49
- "@skf-design-system/ui-assets": "0.1.3-beta.8",
49
+ "@skf-design-system/ui-assets": "0.1.3-beta.9",
50
50
  "@skf-design-system/wc-storybook-helpers": "^0.1.0",
51
51
  "@storybook/addon-a11y": "^8.4.7",
52
52
  "@storybook/addon-essentials": "^8.4.7",