@muibook/components 10.0.1 → 11.0.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 (150) hide show
  1. package/LICENSE +27 -11
  2. package/README.md +10 -4
  3. package/dist/esm/components/mui-accordion/block/index.js +9 -5
  4. package/dist/esm/components/mui-alert/index.js +88 -52
  5. package/dist/esm/components/mui-badge/index.js +61 -16
  6. package/dist/esm/components/mui-body/index.js +76 -10
  7. package/dist/esm/components/mui-button/index.js +152 -32
  8. package/dist/esm/components/mui-card/card/index.js +13 -8
  9. package/dist/esm/components/mui-checkbox/index.js +64 -30
  10. package/dist/esm/components/mui-chip/index.js +153 -33
  11. package/dist/esm/components/mui-chip-input/index.js +407 -0
  12. package/dist/esm/components/mui-code/index.js +11 -9
  13. package/dist/esm/components/mui-dialog/index.js +17 -8
  14. package/dist/esm/components/mui-dropdown/index.js +44 -44
  15. package/dist/esm/components/mui-field/index.js +56 -21
  16. package/dist/esm/components/mui-form-group/index.js +88 -0
  17. package/dist/esm/components/mui-form-hint/index.js +1 -0
  18. package/dist/esm/components/mui-form-message/index.js +72 -0
  19. package/dist/esm/components/mui-form-section/index.js +108 -0
  20. package/dist/esm/components/mui-form-section-footer/index.js +46 -0
  21. package/dist/esm/components/mui-hint/index.js +146 -0
  22. package/dist/esm/components/mui-icons/accessibility/index.js +5 -4
  23. package/dist/esm/components/mui-icons/add/index.js +1 -0
  24. package/dist/esm/components/mui-icons/ai/index.js +5 -4
  25. package/dist/esm/components/mui-icons/attention/index.js +1 -0
  26. package/dist/esm/components/mui-icons/calendar/index.js +5 -4
  27. package/dist/esm/components/mui-icons/check/index.js +6 -5
  28. package/dist/esm/components/mui-icons/checkmark/index.js +9 -8
  29. package/dist/esm/components/mui-icons/close/index.js +6 -5
  30. package/dist/esm/components/mui-icons/down-arrow-circle/index.js +9 -8
  31. package/dist/esm/components/mui-icons/down-chevron/index.js +8 -7
  32. package/dist/esm/components/mui-icons/ellipsis/index.js +1 -0
  33. package/dist/esm/components/mui-icons/exclamationmark/index.js +49 -0
  34. package/dist/esm/components/mui-icons/game-controller/index.js +8 -7
  35. package/dist/esm/components/mui-icons/gear/index.js +5 -4
  36. package/dist/esm/components/mui-icons/globe/index.js +8 -7
  37. package/dist/esm/components/mui-icons/grid/index.js +1 -0
  38. package/dist/esm/components/mui-icons/home/index.js +9 -8
  39. package/dist/esm/components/mui-icons/index.js +3 -0
  40. package/dist/esm/components/mui-icons/info/index.js +3 -2
  41. package/dist/esm/components/mui-icons/left-arrow/index.js +1 -0
  42. package/dist/esm/components/mui-icons/left-chevron/index.js +6 -5
  43. package/dist/esm/components/mui-icons/left-sidebar/index.js +6 -5
  44. package/dist/esm/components/mui-icons/list-and-film/index.js +1 -0
  45. package/dist/esm/components/mui-icons/menu/index.js +8 -7
  46. package/dist/esm/components/mui-icons/message/index.js +5 -4
  47. package/dist/esm/components/mui-icons/moon/index.js +3 -2
  48. package/dist/esm/components/mui-icons/movie-clapper/index.js +5 -4
  49. package/dist/esm/components/mui-icons/music-microphone/index.js +6 -5
  50. package/dist/esm/components/mui-icons/music-quarter-note/index.js +1 -0
  51. package/dist/esm/components/mui-icons/notification/index.js +5 -4
  52. package/dist/esm/components/mui-icons/pin/index.js +3 -2
  53. package/dist/esm/components/mui-icons/pin-slash/index.js +6 -5
  54. package/dist/esm/components/mui-icons/play-rectangle/index.js +9 -8
  55. package/dist/esm/components/mui-icons/play-stack/index.js +5 -4
  56. package/dist/esm/components/mui-icons/rectangle/index.js +6 -5
  57. package/dist/esm/components/mui-icons/rectangle-bottom-panel/index.js +1 -0
  58. package/dist/esm/components/mui-icons/rectangle-dashed/index.js +1 -0
  59. package/dist/esm/components/mui-icons/rectangle-left-drawer/index.js +1 -0
  60. package/dist/esm/components/mui-icons/rectangle-media-text/index.js +6 -5
  61. package/dist/esm/components/mui-icons/right-chevron/index.js +1 -0
  62. package/dist/esm/components/mui-icons/search/index.js +6 -5
  63. package/dist/esm/components/mui-icons/spinner/index.js +56 -0
  64. package/dist/esm/components/mui-icons/stop/index.js +3 -2
  65. package/dist/esm/components/mui-icons/subtract/index.js +1 -0
  66. package/dist/esm/components/mui-icons/sun/index.js +1 -0
  67. package/dist/esm/components/mui-icons/text-below-folder/index.js +55 -0
  68. package/dist/esm/components/mui-icons/toggle/index.js +8 -6
  69. package/dist/esm/components/mui-icons/translate/index.js +5 -4
  70. package/dist/esm/components/mui-icons/up-arrow/index.js +5 -4
  71. package/dist/esm/components/mui-icons/up-chevron/index.js +6 -5
  72. package/dist/esm/components/mui-icons/warning/index.js +7 -6
  73. package/dist/esm/components/mui-input/index.js +298 -47
  74. package/dist/esm/components/mui-link/index.js +187 -59
  75. package/dist/esm/components/mui-list/item/index.js +3 -0
  76. package/dist/esm/components/mui-markdown/index.js +149 -0
  77. package/dist/esm/components/mui-media-player/index.js +184 -0
  78. package/dist/esm/components/mui-message/index.js +50 -20
  79. package/dist/esm/components/mui-progress/index.js +15 -15
  80. package/dist/esm/components/mui-prompt/index.js +1461 -0
  81. package/dist/esm/components/mui-prompt-message/index.js +114 -0
  82. package/dist/esm/components/mui-prompt-preview/index.js +497 -0
  83. package/dist/esm/components/mui-prompt-toggle/index.js +48 -0
  84. package/dist/esm/components/mui-radio/index.js +155 -0
  85. package/dist/esm/components/mui-radio-group/index.js +104 -0
  86. package/dist/esm/components/mui-range-input/index.js +122 -0
  87. package/dist/esm/components/mui-rule/index.js +11 -3
  88. package/dist/esm/components/mui-select/index.js +89 -30
  89. package/dist/esm/components/mui-spinner/index.js +70 -0
  90. package/dist/esm/components/mui-stepper/step/index.js +255 -18
  91. package/dist/esm/components/mui-stepper/stepper/index.js +68 -72
  92. package/dist/esm/components/mui-table/row/index.js +16 -3
  93. package/dist/esm/components/mui-tabs/controller/index.js +21 -14
  94. package/dist/esm/components/mui-tabs/item/index.js +285 -29
  95. package/dist/esm/components/mui-tabs/panel/index.js +3 -0
  96. package/dist/esm/components/mui-tabs/tab-bar/index.js +85 -34
  97. package/dist/esm/components/mui-textarea/index.js +257 -0
  98. package/dist/esm/css/mui-base.css +27 -0
  99. package/dist/esm/css/mui-brand.css +3 -1
  100. package/dist/esm/css/mui-tokens.css +234 -7
  101. package/dist/esm/custom-elements.json +5202 -1791
  102. package/dist/esm/index.js +24 -4
  103. package/dist/esm/tokens/js/index.js +107 -105
  104. package/dist/types/components/mui-agent-bubble/doc.d.ts +2 -0
  105. package/dist/types/components/mui-agent-bubble/index.d.ts +1 -0
  106. package/dist/types/components/mui-agent-prompt/doc.d.ts +2 -0
  107. package/dist/types/components/mui-agent-prompt/index.d.ts +1 -0
  108. package/dist/types/components/mui-chip-input/doc.d.ts +2 -0
  109. package/dist/types/components/mui-chip-input/index.d.ts +3 -0
  110. package/dist/types/components/mui-form-group/doc.d.ts +2 -0
  111. package/dist/types/components/mui-form-group/index.d.ts +2 -0
  112. package/dist/types/components/mui-form-group-horizontal/index.d.ts +1 -0
  113. package/dist/types/components/mui-form-hint/doc.d.ts +2 -0
  114. package/dist/types/components/mui-form-hint/index.d.ts +1 -0
  115. package/dist/types/components/mui-form-message/index.d.ts +2 -0
  116. package/dist/types/components/mui-form-section/doc.d.ts +2 -0
  117. package/dist/types/components/mui-form-section/index.d.ts +1 -0
  118. package/dist/types/components/mui-form-section-footer/doc.d.ts +2 -0
  119. package/dist/types/components/mui-form-section-footer/index.d.ts +1 -0
  120. package/dist/types/components/mui-hint/doc.d.ts +2 -0
  121. package/dist/types/components/mui-hint/index.d.ts +1 -0
  122. package/dist/types/components/mui-icons/exclamationmark.d.ts +1 -0
  123. package/dist/types/components/mui-icons/index.d.ts +3 -0
  124. package/dist/types/components/mui-icons/spinner.d.ts +1 -0
  125. package/dist/types/components/mui-icons/text-below-folder.d.ts +1 -0
  126. package/dist/types/components/mui-markdown/doc.d.ts +2 -0
  127. package/dist/types/components/mui-markdown/index.d.ts +1 -0
  128. package/dist/types/components/mui-media-player/doc.d.ts +2 -0
  129. package/dist/types/components/mui-media-player/index.d.ts +8 -0
  130. package/dist/types/components/mui-prompt/doc.d.ts +2 -0
  131. package/dist/types/components/mui-prompt/index.d.ts +18 -0
  132. package/dist/types/components/mui-prompt-chip/index.d.ts +1 -0
  133. package/dist/types/components/mui-prompt-message/doc.d.ts +2 -0
  134. package/dist/types/components/mui-prompt-message/index.d.ts +1 -0
  135. package/dist/types/components/mui-prompt-preview/doc.d.ts +2 -0
  136. package/dist/types/components/mui-prompt-preview/index.d.ts +7 -0
  137. package/dist/types/components/mui-prompt-toggle/index.d.ts +1 -0
  138. package/dist/types/components/mui-radio/doc.d.ts +2 -0
  139. package/dist/types/components/mui-radio/index.d.ts +1 -0
  140. package/dist/types/components/mui-radio-group/index.d.ts +1 -0
  141. package/dist/types/components/mui-range-input/doc.d.ts +2 -0
  142. package/dist/types/components/mui-range-input/index.d.ts +1 -0
  143. package/dist/types/components/mui-spinner/doc.d.ts +2 -0
  144. package/dist/types/components/mui-spinner/index.d.ts +1 -0
  145. package/dist/types/components/mui-stepper/step/index.d.ts +4 -1
  146. package/dist/types/components/mui-textarea/doc.d.ts +2 -0
  147. package/dist/types/components/mui-textarea/index.d.ts +1 -0
  148. package/dist/types/index.d.ts +21 -0
  149. package/dist/types/tokens/js/index.d.ts +2 -0
  150. package/package.json +91 -1
@@ -1,6 +1,7 @@
1
1
  import "./accessibility/index.js";
2
2
  import "./add/index.js";
3
3
  import "./attention/index.js";
4
+ import "./exclamationmark/index.js";
4
5
  import "./check/index.js";
5
6
  import "./close/index.js";
6
7
  import "./down-chevron/index.js";
@@ -42,3 +43,5 @@ import "./rectangle-left-drawer/index.js";
42
43
  import "./rectangle-bottom-panel/index.js";
43
44
  import "./pin/index.js";
44
45
  import "./pin-slash/index.js";
46
+ import "./text-below-folder/index.js";
47
+ import "./spinner/index.js";
@@ -1,4 +1,4 @@
1
- class c extends HTMLElement {
1
+ class r extends HTMLElement {
2
2
  static get observedAttributes() {
3
3
  return ["size", "color"];
4
4
  }
@@ -16,6 +16,7 @@ class c extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -52,4 +53,4 @@ class c extends HTMLElement {
52
53
  `);
53
54
  }
54
55
  }
55
- customElements.get("mui-icon-info") || customElements.define("mui-icon-info", c);
56
+ customElements.get("mui-icon-info") || customElements.define("mui-icon-info", r);
@@ -16,6 +16,7 @@ class r extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -8,19 +8,20 @@ class r extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(e, t, o) {
12
- (e === "size" || e === "color") && t !== o && this.render();
11
+ attributeChangedCallback(t, e, o) {
12
+ (t === "size" || t === "color") && e !== o && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), l = t && {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), l = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[t] || t || "var(--icon-color-default)", i = {
18
+ }[e] || e || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, s = i[e] ?? i.small;
24
+ }, s = i[t] ?? i.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -8,19 +8,20 @@ class l extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(e, t, i) {
12
- (e === "size" || e === "color") && t !== i && this.render();
11
+ attributeChangedCallback(t, e, i) {
12
+ (t === "size" || t === "color") && e !== i && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), c = t && {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), c = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[t] || t || "var(--icon-color-default)", s = {
18
+ }[e] || e || "var(--icon-color-default)", s = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, o = s[e] ?? s.small;
24
+ }, o = s[t] ?? s.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -16,6 +16,7 @@ class l extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[c] || c || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -1,4 +1,4 @@
1
- class n extends HTMLElement {
1
+ class r extends HTMLElement {
2
2
  static get observedAttributes() {
3
3
  return ["size", "color"];
4
4
  }
@@ -8,19 +8,20 @@ class n extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(e, t, s) {
12
- (e === "size" || e === "color") && t !== s && this.render();
11
+ attributeChangedCallback(t, e, s) {
12
+ (t === "size" || t === "color") && e !== s && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), l = t && {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), l = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[t] || t || "var(--icon-color-default)", i = {
18
+ }[e] || e || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, o = i[e] ?? i.small;
24
+ }, o = i[t] ?? i.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -52,4 +53,4 @@ class n extends HTMLElement {
52
53
  `);
53
54
  }
54
55
  }
55
- customElements.get("mui-icon-menu") || customElements.define("mui-icon-menu", n);
56
+ customElements.get("mui-icon-menu") || customElements.define("mui-icon-menu", r);
@@ -8,19 +8,20 @@ class l extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(t, e, c) {
12
- (t === "size" || t === "color") && e !== c && this.render();
11
+ attributeChangedCallback(t, e, s) {
12
+ (t === "size" || t === "color") && e !== s && this.render();
13
13
  }
14
14
  render() {
15
15
  const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), o = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[e] || e || "var(--icon-color-default)", s = {
18
+ }[e] || e || "var(--icon-color-default)", c = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, i = s[t] ?? s.small;
24
+ }, i = c[t] ?? c.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -1,4 +1,4 @@
1
- class n extends HTMLElement {
1
+ class r extends HTMLElement {
2
2
  static get observedAttributes() {
3
3
  return ["size", "color"];
4
4
  }
@@ -16,6 +16,7 @@ class n extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -52,4 +53,4 @@ class n extends HTMLElement {
52
53
  `);
53
54
  }
54
55
  }
55
- customElements.get("mui-icon-moon") || customElements.define("mui-icon-moon", n);
56
+ customElements.get("mui-icon-moon") || customElements.define("mui-icon-moon", r);
@@ -8,19 +8,20 @@ class c extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(t, e, i) {
12
- (t === "size" || t === "color") && e !== i && this.render();
11
+ attributeChangedCallback(t, e, l) {
12
+ (t === "size" || t === "color") && e !== l && this.render();
13
13
  }
14
14
  render() {
15
15
  const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), s = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[e] || e || "var(--icon-color-default)", l = {
18
+ }[e] || e || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, o = l[t] ?? l.small;
24
+ }, o = i[t] ?? i.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -8,19 +8,20 @@ class c extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(e, t, i) {
12
- (e === "size" || e === "color") && t !== i && this.render();
11
+ attributeChangedCallback(t, e, i) {
12
+ (t === "size" || t === "color") && e !== i && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), l = t && {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), l = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[t] || t || "var(--icon-color-default)", o = {
18
+ }[e] || e || "var(--icon-color-default)", o = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, s = o[e] ?? o.small;
24
+ }, s = o[t] ?? o.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -16,6 +16,7 @@ class r extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", o = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -1,4 +1,4 @@
1
- class n extends HTMLElement {
1
+ class c extends HTMLElement {
2
2
  static get observedAttributes() {
3
3
  return ["size", "color"];
4
4
  }
@@ -12,10 +12,11 @@ class n extends HTMLElement {
12
12
  (e === "size" || e === "color") && t !== i && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), c = t && {
15
+ const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), l = t && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", o = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -30,7 +31,7 @@ class n extends HTMLElement {
30
31
  display: inline-flex;
31
32
  align-items: center;
32
33
  justify-content: center;
33
- fill: ${c};
34
+ fill: ${l};
34
35
  }
35
36
  svg {
36
37
  width: 100%;
@@ -52,4 +53,4 @@ class n extends HTMLElement {
52
53
  `);
53
54
  }
54
55
  }
55
- customElements.get("mui-icon-notification") || customElements.define("mui-icon-notification", n);
56
+ customElements.get("mui-icon-notification") || customElements.define("mui-icon-notification", c);
@@ -1,4 +1,4 @@
1
- class c extends HTMLElement {
1
+ class r extends HTMLElement {
2
2
  static get observedAttributes() {
3
3
  return ["size", "color"];
4
4
  }
@@ -16,6 +16,7 @@ class c extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", o = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -50,4 +51,4 @@ class c extends HTMLElement {
50
51
  `);
51
52
  }
52
53
  }
53
- customElements.get("mui-icon-pin") || customElements.define("mui-icon-pin", c);
54
+ customElements.get("mui-icon-pin") || customElements.define("mui-icon-pin", r);
@@ -12,25 +12,26 @@ class c extends HTMLElement {
12
12
  (e === "size" || e === "color") && t !== s && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), l = t && {
15
+ const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), o = t && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, o = i[e] ?? i.small;
24
+ }, l = i[e] ?? i.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
27
28
  :host {
28
- width: ${o};
29
- height: ${o};
29
+ width: ${l};
30
+ height: ${l};
30
31
  display: inline-flex;
31
32
  align-items: center;
32
33
  justify-content: center;
33
- fill: ${l};
34
+ fill: ${o};
34
35
  }
35
36
  svg {
36
37
  width: 100%;
@@ -8,29 +8,30 @@ class c extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(e, t, i) {
12
- (e === "size" || e === "color") && t !== i && this.render();
11
+ attributeChangedCallback(t, e, i) {
12
+ (t === "size" || t === "color") && e !== i && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), l = t && {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), s = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[t] || t || "var(--icon-color-default)", o = {
18
+ }[e] || e || "var(--icon-color-default)", l = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, s = o[e] ?? o.small;
24
+ }, o = l[t] ?? l.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
27
28
  :host {
28
- width: ${s};
29
- height: ${s};
29
+ width: ${o};
30
+ height: ${o};
30
31
  display: inline-flex;
31
32
  align-items: center;
32
33
  justify-content: center;
33
- fill: ${l};
34
+ fill: ${s};
34
35
  }
35
36
  svg {
36
37
  width: 100%;
@@ -8,19 +8,20 @@ class l extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(e, t, c) {
12
- (e === "size" || e === "color") && t !== c && this.render();
11
+ attributeChangedCallback(e, t, s) {
12
+ (e === "size" || e === "color") && t !== s && this.render();
13
13
  }
14
14
  render() {
15
15
  const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), o = t && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[t] || t || "var(--icon-color-default)", s = {
18
+ }[t] || t || "var(--icon-color-default)", c = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, i = s[e] ?? s.small;
24
+ }, i = c[e] ?? c.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -8,19 +8,20 @@ class r extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(e, t, i) {
12
- (e === "size" || e === "color") && t !== i && this.render();
11
+ attributeChangedCallback(t, e, i) {
12
+ (t === "size" || t === "color") && e !== i && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), l = t && {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), l = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[t] || t || "var(--icon-color-default)", o = {
18
+ }[e] || e || "var(--icon-color-default)", o = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, s = o[e] ?? o.small;
24
+ }, s = o[t] ?? o.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -16,6 +16,7 @@ class s extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", c = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -16,6 +16,7 @@ class r extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[e] || e || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -16,6 +16,7 @@ class l extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[e] || e || "var(--icon-color-default)", o = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -12,25 +12,26 @@ class l extends HTMLElement {
12
12
  (t === "size" || t === "color") && e !== i && this.render();
13
13
  }
14
14
  render() {
15
- const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), s = e && {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), c = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[e] || e || "var(--icon-color-default)", o = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, c = o[t] ?? o.small;
24
+ }, s = o[t] ?? o.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
27
28
  :host {
28
- width: ${c};
29
- height: ${c};
29
+ width: ${s};
30
+ height: ${s};
30
31
  display: inline-flex;
31
32
  align-items: center;
32
33
  justify-content: center;
33
- fill: ${s};
34
+ fill: ${c};
34
35
  }
35
36
  svg {
36
37
  width: 100%;
@@ -16,6 +16,7 @@ class l extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", o = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -8,19 +8,20 @@ class r extends HTMLElement {
8
8
  connectedCallback() {
9
9
  this.render();
10
10
  }
11
- attributeChangedCallback(e, t, s) {
12
- (e === "size" || e === "color") && t !== s && this.render();
11
+ attributeChangedCallback(t, e, s) {
12
+ (t === "size" || t === "color") && e !== s && this.render();
13
13
  }
14
14
  render() {
15
- const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), l = t && {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), l = e && {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
- }[t] || t || "var(--icon-color-default)", i = {
18
+ }[e] || e || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
22
23
  large: "2.8rem"
23
- }, o = i[e] ?? i.small;
24
+ }, o = i[t] ?? i.small;
24
25
  this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
25
26
  `
26
27
  <style>
@@ -0,0 +1,56 @@
1
+ class r extends HTMLElement {
2
+ static get observedAttributes() {
3
+ return ["size", "color"];
4
+ }
5
+ constructor() {
6
+ super(), this.attachShadow({ mode: "open" });
7
+ }
8
+ connectedCallback() {
9
+ this.render();
10
+ }
11
+ attributeChangedCallback(t, e, i) {
12
+ (t === "size" || t === "color") && e !== i && this.render();
13
+ }
14
+ render() {
15
+ const t = this.getAttribute("size") || "small", e = this.getAttribute("color"), l = e && {
16
+ default: "var(--icon-color-default)",
17
+ inverted: "var(--icon-color-inverted)"
18
+ }[e] || e || "var(--icon-color-default)", s = {
19
+ "xx-small": "1.3rem",
20
+ "x-small": "1.6rem",
21
+ small: "2.1rem",
22
+ medium: "2.4rem",
23
+ large: "2.8rem"
24
+ }, o = s[t] ?? s.small;
25
+ this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
26
+ `
27
+ <style>
28
+ :host {
29
+ width: ${o};
30
+ height: ${o};
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ fill: ${l};
35
+ }
36
+ svg {
37
+ width: 100%;
38
+ display: block;
39
+ fill: inherit;
40
+ }
41
+ </style>
42
+
43
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" aria-hidden="true" focusable="false">
44
+ <path
45
+ fill-rule="evenodd"
46
+ d="M18 4a14 14 0 1 0 0 28a14 14 0 1 0 0-28m0 4a10 10 0 1 1 0 20a10 10 0 1 1 0-20"
47
+ opacity="0.24"
48
+ ></path>
49
+ <path
50
+ d="M18 4a14 14 0 0 1 14 14h-4a10 10 0 0 0-10-10z"
51
+ ></path>
52
+ </svg>
53
+ `);
54
+ }
55
+ }
56
+ customElements.get("mui-icon-spinner") || customElements.define("mui-icon-spinner", r);
@@ -1,4 +1,4 @@
1
- class c extends HTMLElement {
1
+ class r extends HTMLElement {
2
2
  static get observedAttributes() {
3
3
  return ["size", "color"];
4
4
  }
@@ -16,6 +16,7 @@ class c extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", s = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -52,4 +53,4 @@ class c extends HTMLElement {
52
53
  `);
53
54
  }
54
55
  }
55
- customElements.get("mui-icon-stop") || customElements.define("mui-icon-stop", c);
56
+ customElements.get("mui-icon-stop") || customElements.define("mui-icon-stop", r);
@@ -16,6 +16,7 @@ class l extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", i = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",
@@ -16,6 +16,7 @@ class l extends HTMLElement {
16
16
  default: "var(--icon-color-default)",
17
17
  inverted: "var(--icon-color-inverted)"
18
18
  }[t] || t || "var(--icon-color-default)", s = {
19
+ "xx-small": "1.3rem",
19
20
  "x-small": "1.6rem",
20
21
  small: "2.1rem",
21
22
  medium: "2.4rem",