@muibook/components 7.0.0 → 7.1.0

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.
@@ -117,7 +117,7 @@ class x extends HTMLElement {
117
117
  this.shadowRoot.innerHTML = /*html*/
118
118
  `
119
119
  <style>${w}</style>
120
- <${r} size="small" color="var(${v})" class="icon"></${r}>
120
+ <${r} size="medium" color="var(${v})" class="icon"></${r}>
121
121
  <mui-body>
122
122
  <span class="label">${f}</span>
123
123
  <slot></slot>
@@ -35,19 +35,19 @@ const l = ["neutral", "positive", "info", "warning", "attention"], g = {
35
35
  info: "color: var(--feedback-info-text);",
36
36
  warning: "color: var(--feedback-warning-text);",
37
37
  attention: "color: var(--feedback-attention-text);"
38
- }, k = {
38
+ }, m = {
39
39
  neutral: "mui-icon-message",
40
40
  positive: "mui-icon-check",
41
41
  info: "mui-icon-info",
42
42
  warning: "mui-icon-warning",
43
43
  attention: "mui-icon-attention"
44
44
  };
45
- class m extends HTMLElement {
45
+ class k extends HTMLElement {
46
46
  constructor() {
47
47
  super(), this.attachShadow({ mode: "open" });
48
48
  }
49
49
  connectedCallback() {
50
- const t = this.getAttribute("variant") || "neutral", e = l.includes(t) ? t : "neutral", a = this.getAttribute("heading") || "Heading...", o = this.getAttribute("icon") || k[e], n = v[e], i = f[e], r = g[e], s = b[e], c = u[e], d = (
50
+ const t = this.getAttribute("variant") || "neutral", e = l.includes(t) ? t : "neutral", a = this.getAttribute("heading") || "Heading...", o = this.getAttribute("icon") || m[e], i = v[e], n = f[e], r = g[e], s = b[e], c = u[e], d = (
51
51
  /*css*/
52
52
  `
53
53
  :host {
@@ -70,7 +70,7 @@ class m extends HTMLElement {
70
70
  .heading {
71
71
  font-weight: var(--font-weight-bold);
72
72
  font-size: var(--font-size-200);
73
- ${i}
73
+ ${n}
74
74
  }
75
75
  `
76
76
  );
@@ -81,7 +81,7 @@ class m extends HTMLElement {
81
81
  <section aria-labelledby="message-heading" aria-live="${s}" role="${c}">
82
82
  <mui-h-stack space="var(--message-gap-horizontal)">
83
83
  <div class="icon">
84
- <${o} color="var(${n})"></${o}>
84
+ <${o} size="medium" color="var(${i})"></${o}>
85
85
  </div>
86
86
  <mui-v-stack space="var(--message-gap-vertical)">
87
87
  <div class="heading" id="message-heading">${a}</div>
@@ -92,4 +92,4 @@ class m extends HTMLElement {
92
92
  `);
93
93
  }
94
94
  }
95
- customElements.get("mui-message") || customElements.define("mui-message", m);
95
+ customElements.get("mui-message") || customElements.define("mui-message", k);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muibook/components",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "type": "module",
5
5
  "description": "A library of MUI-based design system components.",
6
6
  "author": "Michael Trilford",