@muibook/components 7.1.0 → 8.0.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.
- package/dist/esm/agent/keywords/index.js +1 -0
- package/dist/esm/agent/prompts/index.js +13 -1
- package/dist/esm/components/mui-addon/index.js +0 -1
- package/dist/esm/components/mui-avatar/index.js +136 -0
- package/dist/esm/components/mui-button/index.js +91 -47
- package/dist/esm/components/mui-checkbox/index.js +30 -56
- package/dist/esm/components/mui-chip/index.js +17 -10
- package/dist/esm/components/mui-dialog/index.js +17 -17
- package/dist/esm/components/mui-drawer/index.js +38 -39
- package/dist/esm/components/mui-file-upload/index.js +6 -6
- package/dist/esm/components/mui-icons/checkmark/index.js +53 -0
- package/dist/esm/components/mui-icons/game-controller/index.js +55 -0
- package/dist/esm/components/mui-icons/home/index.js +55 -0
- package/dist/esm/components/mui-icons/index.js +8 -0
- package/dist/esm/components/mui-icons/list-and-film/index.js +55 -0
- package/dist/esm/components/mui-icons/movie-clapper/index.js +55 -0
- package/dist/esm/components/mui-icons/music-microphone/index.js +55 -0
- package/dist/esm/components/mui-icons/music-quarter-note/index.js +55 -0
- package/dist/esm/components/mui-icons/play-rectangle/index.js +55 -0
- package/dist/esm/components/mui-icons/play-stack/index.js +55 -0
- package/dist/esm/components/mui-icons/search/index.js +53 -0
- package/dist/esm/components/mui-input/index.js +43 -19
- package/dist/esm/components/mui-link/index.js +120 -42
- package/dist/esm/components/mui-select/index.js +2 -1
- package/dist/esm/components/mui-slat/index.js +0 -1
- package/dist/esm/components/mui-slat/slat/index.js +36 -9
- package/dist/esm/components/mui-switch/index.js +23 -13
- package/dist/esm/css/mui-tokens.css +120 -12
- package/dist/esm/custom-elements.json +6186 -0
- package/dist/esm/index.js +15 -5
- package/dist/types/components/mui-accordion/doc.d.ts +2 -0
- package/dist/types/components/mui-addon/doc.d.ts +2 -0
- package/dist/types/components/mui-alert/doc.d.ts +2 -0
- package/dist/types/components/mui-avatar/doc.d.ts +2 -0
- package/dist/types/components/mui-avatar/index.d.ts +1 -0
- package/dist/types/components/mui-badge/doc.d.ts +2 -0
- package/dist/types/components/mui-body/doc.d.ts +2 -0
- package/dist/types/components/mui-button/doc.d.ts +2 -0
- package/dist/types/components/mui-button-group/doc.d.ts +2 -0
- package/dist/types/components/mui-card/doc.d.ts +2 -0
- package/dist/types/components/mui-carousel/doc.d.ts +2 -0
- package/dist/types/components/mui-checkbox/doc.d.ts +2 -0
- package/dist/types/components/mui-chip/doc.d.ts +2 -0
- package/dist/types/components/mui-code/doc.d.ts +2 -0
- package/dist/types/components/mui-container/doc.d.ts +2 -0
- package/dist/types/components/mui-dialog/doc.d.ts +2 -0
- package/dist/types/components/mui-drawer/doc.d.ts +2 -0
- package/dist/types/components/mui-dropdown/doc.d.ts +2 -0
- package/dist/types/components/mui-field/doc.d.ts +2 -0
- package/dist/types/components/mui-file-upload/doc.d.ts +2 -0
- package/dist/types/components/mui-grid/doc.d.ts +2 -0
- package/dist/types/components/mui-heading/doc.d.ts +2 -0
- package/dist/types/components/mui-icons/checkmark.d.ts +1 -0
- package/dist/types/components/mui-icons/doc.d.ts +2 -0
- package/dist/types/components/mui-icons/game-controller.d.ts +1 -0
- package/dist/types/components/mui-icons/home.d.ts +1 -0
- package/dist/types/components/mui-icons/index.d.ts +8 -0
- package/dist/types/components/mui-icons/list-and-film.d.ts +1 -0
- package/dist/types/components/mui-icons/movie-clapper.d.ts +1 -0
- package/dist/types/components/mui-icons/music-microphone.d.ts +1 -0
- package/dist/types/components/mui-icons/music-quarter-note.d.ts +1 -0
- package/dist/types/components/mui-icons/play-rectangle.d.ts +1 -0
- package/dist/types/components/mui-icons/play-stack.d.ts +1 -0
- package/dist/types/components/mui-icons/search.d.ts +1 -0
- package/dist/types/components/mui-image/doc.d.ts +2 -0
- package/dist/types/components/mui-input/doc.d.ts +2 -0
- package/dist/types/components/mui-link/doc.d.ts +2 -0
- package/dist/types/components/mui-list/doc.d.ts +2 -0
- package/dist/types/components/mui-loader/doc.d.ts +2 -0
- package/dist/types/components/mui-message/doc.d.ts +2 -0
- package/dist/types/components/mui-progress/doc.d.ts +2 -0
- package/dist/types/components/mui-quote/doc.d.ts +2 -0
- package/dist/types/components/mui-responsive/doc.d.ts +2 -0
- package/dist/types/components/mui-rule/doc.d.ts +2 -0
- package/dist/types/components/mui-select/doc.d.ts +2 -0
- package/dist/types/components/mui-slat/doc.d.ts +67 -0
- package/dist/types/components/mui-slat/index.d.ts +0 -1
- package/dist/types/components/mui-smart-card/doc.d.ts +2 -0
- package/dist/types/components/mui-stack/doc.d.ts +2 -0
- package/dist/types/components/mui-stepper/doc.d.ts +2 -0
- package/dist/types/components/mui-switch/doc.d.ts +2 -0
- package/dist/types/components/mui-table/doc.d.ts +2 -0
- package/dist/types/components/mui-tabs/doc.d.ts +2 -0
- package/dist/types/index.d.ts +11 -1
- package/package.json +55 -9
- package/dist/esm/components/mui-slat/accessory/index.js +0 -29
|
@@ -33,7 +33,7 @@ class l extends HTMLElement {
|
|
|
33
33
|
background: var(--backdrop-overlay);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
header {
|
|
36
|
+
.header {
|
|
37
37
|
display: flex;
|
|
38
38
|
justify-content: space-between;
|
|
39
39
|
align-items: center;
|
|
@@ -41,13 +41,13 @@ class l extends HTMLElement {
|
|
|
41
41
|
border-bottom: var(--border-thin);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
.content {
|
|
45
45
|
max-height: 60vh;
|
|
46
46
|
overflow-y: auto;
|
|
47
47
|
padding: var(--space-500);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
.actions {
|
|
51
51
|
display: flex;
|
|
52
52
|
justify-content: flex-end;
|
|
53
53
|
padding: var(--space-400) var(--space-500);
|
|
@@ -55,7 +55,7 @@ class l extends HTMLElement {
|
|
|
55
55
|
gap: var(--space-300);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
.actions[hidden] {
|
|
59
59
|
display: none !important;
|
|
60
60
|
}
|
|
61
61
|
`
|
|
@@ -64,22 +64,22 @@ class l extends HTMLElement {
|
|
|
64
64
|
`
|
|
65
65
|
<style>${s}</style>
|
|
66
66
|
<dialog>
|
|
67
|
-
<header>
|
|
67
|
+
<div class="header">
|
|
68
68
|
<slot name="title"></slot>
|
|
69
|
-
<mui-button class="close" aria-label="Close" variant="tertiary"><mui-icon-close></mui-icon-close></mui-button>
|
|
70
|
-
</
|
|
71
|
-
<
|
|
69
|
+
<mui-button class="close" aria-label="Close" variant="tertiary"><mui-icon-close size="medium"></mui-icon-close></mui-button>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="content">
|
|
72
72
|
<slot></slot>
|
|
73
|
-
</
|
|
74
|
-
<
|
|
73
|
+
</div>
|
|
74
|
+
<div class="actions" hidden>
|
|
75
75
|
<slot name="actions"></slot>
|
|
76
|
-
</
|
|
76
|
+
</div>
|
|
77
77
|
</dialog>
|
|
78
|
-
`, this.dialogEl = this.shadowRoot.querySelector("dialog"), this.footerEl = this.shadowRoot.querySelector("
|
|
79
|
-
const
|
|
80
|
-
|
|
78
|
+
`, this.dialogEl = this.shadowRoot.querySelector("dialog"), this.footerEl = this.shadowRoot.querySelector(".actions"), this.actionsSlot = this.shadowRoot.querySelector('slot[name="actions"]');
|
|
79
|
+
const i = this.shadowRoot.querySelector(".close");
|
|
80
|
+
i == null || i.addEventListener("click", () => this.close()), this.dialogEl.addEventListener("click", (e) => {
|
|
81
81
|
const o = this.dialogEl.getBoundingClientRect();
|
|
82
|
-
|
|
82
|
+
e.clientX >= o.left && e.clientX <= o.right && e.clientY >= o.top && e.clientY <= o.bottom || this.close();
|
|
83
83
|
}), (a = this.actionsSlot) == null || a.addEventListener("slotchange", () => this.updateFooterVisibility()), this.updateFooterVisibility(), this.syncOpenState();
|
|
84
84
|
}
|
|
85
85
|
updateFooterVisibility() {
|
|
@@ -87,8 +87,8 @@ class l extends HTMLElement {
|
|
|
87
87
|
const t = this.actionsSlot.assignedElements().length > 0;
|
|
88
88
|
this.footerEl.hidden = !t;
|
|
89
89
|
}
|
|
90
|
-
attributeChangedCallback(t, s,
|
|
91
|
-
t === "open" && this.syncOpenState(), t === "width" && this.dialogEl && (this.dialogEl.style.width =
|
|
90
|
+
attributeChangedCallback(t, s, i) {
|
|
91
|
+
t === "open" && this.syncOpenState(), t === "width" && this.dialogEl && (this.dialogEl.style.width = i || "350px");
|
|
92
92
|
}
|
|
93
93
|
syncOpenState() {
|
|
94
94
|
this.dialogEl && (this.hasAttribute("open") ? this.dialogEl.open || this.dialogEl.showModal() : this.dialogEl.open && this.dialogEl.close());
|
|
@@ -33,15 +33,15 @@ class p extends HTMLElement {
|
|
|
33
33
|
`
|
|
34
34
|
<div class="outer">
|
|
35
35
|
<div class="inner" role="complementary">
|
|
36
|
-
<header>
|
|
36
|
+
<div class="header">
|
|
37
37
|
<slot name="title"></slot>
|
|
38
38
|
${t ? `
|
|
39
39
|
<mui-button class="close" variant="tertiary" aria-label="Close drawer">
|
|
40
|
-
<mui-icon-close></mui-icon-close>
|
|
40
|
+
<mui-icon-close size="medium"></mui-icon-close>
|
|
41
41
|
</mui-button>` : "<span class='spacer'></span>"}
|
|
42
|
-
</
|
|
43
|
-
<
|
|
44
|
-
<
|
|
42
|
+
</div>
|
|
43
|
+
<div class="content ${e}"><slot></slot></div>
|
|
44
|
+
<div class="actions" hidden><slot name="actions"></slot></div>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
`
|
|
@@ -54,7 +54,7 @@ class p extends HTMLElement {
|
|
|
54
54
|
const o = (
|
|
55
55
|
/*css*/
|
|
56
56
|
`
|
|
57
|
-
header {
|
|
57
|
+
.header {
|
|
58
58
|
display: flex;
|
|
59
59
|
justify-content: space-between;
|
|
60
60
|
align-items: center;
|
|
@@ -62,27 +62,26 @@ class p extends HTMLElement {
|
|
|
62
62
|
border-bottom: var(--border-thin);
|
|
63
63
|
box-sizing: border-box;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
.content {
|
|
66
66
|
overflow-y: auto;
|
|
67
67
|
height: 100%;
|
|
68
68
|
padding: var(--space-500);
|
|
69
69
|
box-sizing: border-box;
|
|
70
|
-
will-change: transform, opacity;
|
|
71
70
|
}
|
|
72
|
-
|
|
71
|
+
.content.no-padding {
|
|
73
72
|
padding: 0;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
|
-
|
|
75
|
+
.content.no-heading {
|
|
77
76
|
padding-top: calc(var(--space-500) + env(safe-area-inset-top));
|
|
78
77
|
}
|
|
79
78
|
|
|
80
|
-
|
|
79
|
+
.content.no-padding.no-heading {
|
|
81
80
|
padding-top: env(safe-area-inset-top);
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
|
|
85
|
-
|
|
84
|
+
.actions {
|
|
86
85
|
display: flex;
|
|
87
86
|
align-items: center;
|
|
88
87
|
justify-content: flex-end;
|
|
@@ -95,23 +94,23 @@ class p extends HTMLElement {
|
|
|
95
94
|
bottom: 0;
|
|
96
95
|
width: 100%;
|
|
97
96
|
}
|
|
98
|
-
header[hidden],
|
|
99
|
-
|
|
97
|
+
.header[hidden],
|
|
98
|
+
.actions[hidden] {
|
|
100
99
|
display: none !important;
|
|
101
100
|
}
|
|
102
101
|
`
|
|
103
102
|
), s = (
|
|
104
103
|
/*css*/
|
|
105
104
|
`
|
|
106
|
-
:host([has-header])
|
|
105
|
+
:host([has-header]) .content {
|
|
107
106
|
height: calc(100dvh - (7.7rem + env(safe-area-inset-top) ));
|
|
108
107
|
}
|
|
109
108
|
|
|
110
|
-
:host([has-footer])
|
|
109
|
+
:host([has-footer]) .content {
|
|
111
110
|
height: calc(100dvh - (7.7rem + env(safe-area-inset-bottom) ));
|
|
112
111
|
}
|
|
113
112
|
|
|
114
|
-
:host([has-header][has-footer])
|
|
113
|
+
:host([has-header][has-footer]) .content {
|
|
115
114
|
height: calc(100dvh - ((7.7rem * 2) + (env(safe-area-inset-top) + env(safe-area-inset-bottom)) ));
|
|
116
115
|
}
|
|
117
116
|
|
|
@@ -179,7 +178,7 @@ class p extends HTMLElement {
|
|
|
179
178
|
visibility: visible;
|
|
180
179
|
}
|
|
181
180
|
`
|
|
182
|
-
), r = this._computedSide === "left" ? "border-right: var(--border-thin);" : "border-left: var(--border-thin);",
|
|
181
|
+
), r = this._computedSide === "left" ? "border-right: var(--border-thin);" : "border-left: var(--border-thin);", d = (
|
|
183
182
|
/*css*/
|
|
184
183
|
`
|
|
185
184
|
.inner {
|
|
@@ -191,14 +190,14 @@ class p extends HTMLElement {
|
|
|
191
190
|
height: 100%;
|
|
192
191
|
}
|
|
193
192
|
|
|
194
|
-
|
|
193
|
+
.content { height: 100%; }
|
|
195
194
|
|
|
196
|
-
:host([has-header])
|
|
197
|
-
:host([has-footer])
|
|
195
|
+
:host([has-header]) .content,
|
|
196
|
+
:host([has-footer]) .content {
|
|
198
197
|
height: calc(100% - 7.7rem);
|
|
199
198
|
}
|
|
200
199
|
|
|
201
|
-
:host([has-header][has-footer])
|
|
200
|
+
:host([has-header][has-footer]) .content {
|
|
202
201
|
height: calc(100% - (7.7rem * 2));
|
|
203
202
|
}
|
|
204
203
|
|
|
@@ -228,7 +227,7 @@ class p extends HTMLElement {
|
|
|
228
227
|
overflow: hidden;
|
|
229
228
|
}
|
|
230
229
|
|
|
231
|
-
:host([variant="persistent"]) header .spacer {
|
|
230
|
+
:host([variant="persistent"]) .header .spacer {
|
|
232
231
|
height: 4.4rem;
|
|
233
232
|
}
|
|
234
233
|
|
|
@@ -267,7 +266,7 @@ class p extends HTMLElement {
|
|
|
267
266
|
border: none;
|
|
268
267
|
}
|
|
269
268
|
|
|
270
|
-
|
|
269
|
+
.actions {
|
|
271
270
|
position: fixed;
|
|
272
271
|
bottom: 0;
|
|
273
272
|
width: 100%;
|
|
@@ -310,13 +309,13 @@ class p extends HTMLElement {
|
|
|
310
309
|
z-index: initial;
|
|
311
310
|
}
|
|
312
311
|
|
|
313
|
-
:host([variant="persistent"]) header {
|
|
312
|
+
:host([variant="persistent"]) .header {
|
|
314
313
|
padding-top: var(--space-400);
|
|
315
314
|
}
|
|
316
315
|
|
|
317
|
-
:host([variant="persistent"])
|
|
316
|
+
:host([variant="persistent"]) .content { height: auto; }
|
|
318
317
|
|
|
319
|
-
:host([variant="persistent"])
|
|
318
|
+
:host([variant="persistent"]) .actions {
|
|
320
319
|
border-bottom-right-radius: var(--radius-200);
|
|
321
320
|
border-bottom-left-radius: var(--radius-200);
|
|
322
321
|
position: static;
|
|
@@ -333,7 +332,7 @@ class p extends HTMLElement {
|
|
|
333
332
|
}
|
|
334
333
|
|
|
335
334
|
`
|
|
336
|
-
),
|
|
335
|
+
), l = this.getAttribute("side") || this._computedSide, h = e === "overlay" || e === "push";
|
|
337
336
|
let a = "";
|
|
338
337
|
const c = this.hasAttribute("drawer-space") ? "no-padding" : "";
|
|
339
338
|
e === "overlay" ? a = /*html*/
|
|
@@ -341,29 +340,29 @@ class p extends HTMLElement {
|
|
|
341
340
|
<style>${o}${s}${n}</style>
|
|
342
341
|
<div class="overlay"></div>
|
|
343
342
|
<div class="inner" role="dialog" aria-modal="true">
|
|
344
|
-
<header hidden>
|
|
343
|
+
<div class="header" hidden>
|
|
345
344
|
<slot name="title"></slot>
|
|
346
345
|
<mui-button class="close" variant="tertiary" aria-label="Close drawer">
|
|
347
|
-
<mui-icon-close></mui-icon-close>
|
|
346
|
+
<mui-icon-close size="medium"></mui-icon-close>
|
|
348
347
|
</mui-button>
|
|
349
|
-
</
|
|
350
|
-
<
|
|
348
|
+
</div>
|
|
349
|
+
<div class="content ${c}">
|
|
351
350
|
<slot></slot>
|
|
352
|
-
</
|
|
353
|
-
<
|
|
351
|
+
</div>
|
|
352
|
+
<div class="actions" hidden>
|
|
354
353
|
<slot name="actions"></slot>
|
|
355
|
-
</
|
|
354
|
+
</div>
|
|
356
355
|
</div>
|
|
357
356
|
` : (e === "push" || e === "persistent") && (a = /*html*/
|
|
358
357
|
`
|
|
359
|
-
<style>${o}${
|
|
358
|
+
<style>${o}${d}${n}</style>
|
|
360
359
|
<div class="shell">
|
|
361
|
-
${
|
|
360
|
+
${l === "left" ? this.getDrawerTemplate(h) + '<slot name="page"></slot>' : '<slot name="page"></slot>' + this.getDrawerTemplate(h)}
|
|
362
361
|
</div>
|
|
363
362
|
`), this.shadowRoot.innerHTML = a;
|
|
364
363
|
}
|
|
365
364
|
cacheEls() {
|
|
366
|
-
this.innerEl = this.shadowRoot.querySelector(".inner"), this.overlayEl = this.shadowRoot.querySelector(".overlay"), this.footerEl = this.shadowRoot.querySelector("
|
|
365
|
+
this.innerEl = this.shadowRoot.querySelector(".inner"), this.overlayEl = this.shadowRoot.querySelector(".overlay"), this.footerEl = this.shadowRoot.querySelector(".actions"), this.actionsSlot = this.shadowRoot.querySelector('slot[name="actions"]'), this.outer = this.shadowRoot.querySelector(".outer"), this.pushLayout = this.shadowRoot.querySelector(".shell"), this.persistentLayout = this.shadowRoot.querySelector(".shell"), this.headerEl = this.shadowRoot.querySelector(".header"), this.headerSlot = this.shadowRoot.querySelector('slot[name="title"]');
|
|
367
366
|
}
|
|
368
367
|
attachEvents() {
|
|
369
368
|
var t, e, i, o;
|
|
@@ -378,7 +377,7 @@ class p extends HTMLElement {
|
|
|
378
377
|
if (!this.headerEl || !this.headerSlot || !this.innerEl) return;
|
|
379
378
|
const t = this.headerSlot.assignedElements().length > 0;
|
|
380
379
|
this.headerEl.hidden = !t, this.toggleAttribute("has-header", t);
|
|
381
|
-
const e = this.innerEl.querySelector("
|
|
380
|
+
const e = this.innerEl.querySelector(".content");
|
|
382
381
|
e && e.classList.toggle("no-heading", !t);
|
|
383
382
|
}
|
|
384
383
|
attributeChangedCallback(t, e, i) {
|
|
@@ -12,7 +12,7 @@ class r extends HTMLElement {
|
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: space-between;
|
|
15
|
-
padding-left:
|
|
15
|
+
padding-left: var(--space-400);
|
|
16
16
|
display: flex;
|
|
17
17
|
width: 100%;
|
|
18
18
|
line-height: var(--text-line-height-s);
|
|
@@ -37,17 +37,17 @@ class r extends HTMLElement {
|
|
|
37
37
|
}
|
|
38
38
|
@media (min-width: 340px) {
|
|
39
39
|
.label {
|
|
40
|
-
width:
|
|
40
|
+
width: 11.5rem;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
@media (min-width: 440px) {
|
|
44
44
|
.label {
|
|
45
|
-
width:
|
|
45
|
+
width: 17.5rem;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
@media (min-width: 600px) {
|
|
49
49
|
.label {
|
|
50
|
-
width:
|
|
50
|
+
width: 22rem;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -56,7 +56,7 @@ class r extends HTMLElement {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
mui-button::part(height) {
|
|
59
|
-
height: calc(
|
|
59
|
+
height: calc(var(--space-600) + var(--space-050));
|
|
60
60
|
padding: var(--space-400);
|
|
61
61
|
padding-top: var(--space-000);
|
|
62
62
|
padding-bottom: var(--space-000);
|
|
@@ -64,7 +64,7 @@ class r extends HTMLElement {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
mui-button::part(border-radius) {
|
|
67
|
-
border-radius: calc(var(--radius-100) -
|
|
67
|
+
border-radius: calc(var(--radius-100) - var(--space-025));
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
input[type="file"] {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
class l 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(e, t, i) {
|
|
12
|
+
(e === "size" || e === "color") && t !== i && this.render();
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), c = t && {
|
|
16
|
+
default: "var(--icon-color-default)",
|
|
17
|
+
inverted: "var(--icon-color-inverted)"
|
|
18
|
+
}[t] || t || "var(--icon-color-default)", o = {
|
|
19
|
+
"x-small": "1.6rem",
|
|
20
|
+
small: "2.1rem",
|
|
21
|
+
medium: "2.4rem",
|
|
22
|
+
large: "2.8rem"
|
|
23
|
+
}, s = o[e] ?? o.small;
|
|
24
|
+
this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
|
|
25
|
+
`
|
|
26
|
+
<style>
|
|
27
|
+
:host {
|
|
28
|
+
width: ${s};
|
|
29
|
+
height: ${s};
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
fill: ${c};
|
|
34
|
+
}
|
|
35
|
+
svg {
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: block;
|
|
38
|
+
fill: inherit;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
|
|
42
|
+
<svg
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
viewBox="0 0 36 36"
|
|
45
|
+
>
|
|
46
|
+
<path d="M15.437 29.614c-.946 0-1.687-.32-2.314-1.049l-6.583-7.76c-.563-.638-.754-1.188-.754-1.853 0-1.47 1.1-2.556 2.607-2.556.857 0 1.483.294 2.02.933l4.973 5.944L25.293 7.73c.626-.972 1.278-1.342 2.288-1.342 1.496 0 2.633 1.086 2.633 2.53 0 .537-.166 1.113-.562 1.7L17.84 28.413c-.55.818-1.355 1.201-2.403 1.201"></path>
|
|
47
|
+
</svg>
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
customElements.get("mui-icon-checkmark") || customElements.define("mui-icon-checkmark", l);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
class i 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(e, t, o) {
|
|
12
|
+
(e === "size" || e === "color") && t !== o && this.render();
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), s = t && {
|
|
16
|
+
default: "var(--icon-color-default)",
|
|
17
|
+
inverted: "var(--icon-color-inverted)"
|
|
18
|
+
}[t] || t || "var(--icon-color-default)", c = {
|
|
19
|
+
"x-small": "1.6rem",
|
|
20
|
+
small: "2.1rem",
|
|
21
|
+
medium: "2.4rem",
|
|
22
|
+
large: "2.8rem"
|
|
23
|
+
}, l = c[e] ?? c.small;
|
|
24
|
+
this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
|
|
25
|
+
`
|
|
26
|
+
<style>
|
|
27
|
+
:host {
|
|
28
|
+
width: ${l};
|
|
29
|
+
height: ${l};
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
fill: ${s};
|
|
34
|
+
}
|
|
35
|
+
svg {
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: block;
|
|
38
|
+
fill: inherit;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
|
|
42
|
+
<svg
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
viewBox="0 0 36 36"
|
|
45
|
+
>
|
|
46
|
+
<path
|
|
47
|
+
d="M1.003 24.077c0-1.323.245-2.78.712-4.337.7-2.335 1.901-5.47 3.024-7.84.99-2.057 1.635-3.29 4.326-3.903 2.29-.511 5.327-.822 8.93-.822 3.613 0 6.65.31 8.929.822 2.702.612 3.347 1.846 4.337 3.904 1.123 2.368 2.324 5.504 3.024 7.84.468 1.556.712 3.013.712 4.336 0 3.025-2.013 4.749-4.692 4.749-1.958 0-3.403-.812-4.582-1.969l-1.868-1.901c-.267-.267-.434-.39-.812-.39H12.957c-.378 0-.545.123-.812.39l-1.868 1.901c-1.168 1.168-2.624 1.969-4.581 1.969-2.68 0-4.693-1.724-4.693-4.749m3.191-.256c0 1.112.779 1.746 1.78 1.746.656 0 1.367-.311 1.957-.923l2.624-2.568c.567-.579 1.012-.812 1.79-.812h11.298c.79 0 1.235.233 1.802.812l2.624 2.568c.6.6 1.301.923 1.957.923 1.001 0 1.78-.634 1.78-1.746 0-.6-.134-1.323-.456-2.39-.779-2.636-2.046-5.96-3.147-8.352-.523-1.112-.8-1.59-1.757-1.812-2.124-.512-4.97-.79-8.452-.79-3.469 0-6.316.278-8.44.79-.956.222-1.245.7-1.757 1.812-1.112 2.391-2.38 5.705-3.147 8.352-.311 1.067-.456 1.79-.456 2.39m4.504-7.795c0-.756.5-1.234 1.279-1.234h1.49V13.39c0-.79.511-1.324 1.29-1.324.778 0 1.279.534 1.279 1.324v1.4h1.39c.834 0 1.368.479 1.368 1.235s-.534 1.246-1.368 1.246h-1.39v1.4c0 .79-.5 1.313-1.28 1.313-.777 0-1.29-.523-1.29-1.312v-1.401h-1.49c-.778 0-1.278-.49-1.278-1.246m16.347.022c-1.001 0-1.79-.778-1.79-1.779 0-1.012.789-1.801 1.79-1.801s1.79.79 1.79 1.801c0 1.001-.79 1.78-1.79 1.78m-3.403 3.481c-.99 0-1.79-.79-1.79-1.78 0-1.011.8-1.8 1.79-1.8 1.012 0 1.79.789 1.79 1.8 0 .99-.778 1.78-1.79 1.78"
|
|
48
|
+
></path>
|
|
49
|
+
</svg>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
customElements.get("mui-icon-game-controller") || customElements.define("mui-icon-game-controller", i);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
class l 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(e, t, o) {
|
|
12
|
+
(e === "size" || e === "color") && t !== o && this.render();
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const e = this.getAttribute("size") || "small", t = this.getAttribute("color"), c = t && {
|
|
16
|
+
default: "var(--icon-color-default)",
|
|
17
|
+
inverted: "var(--icon-color-inverted)"
|
|
18
|
+
}[t] || t || "var(--icon-color-default)", i = {
|
|
19
|
+
"x-small": "1.6rem",
|
|
20
|
+
small: "2.1rem",
|
|
21
|
+
medium: "2.4rem",
|
|
22
|
+
large: "2.8rem"
|
|
23
|
+
}, s = i[e] ?? i.small;
|
|
24
|
+
this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
|
|
25
|
+
`
|
|
26
|
+
<style>
|
|
27
|
+
:host {
|
|
28
|
+
width: ${s};
|
|
29
|
+
height: ${s};
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
fill: ${c};
|
|
34
|
+
}
|
|
35
|
+
svg {
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: block;
|
|
38
|
+
fill: inherit;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
|
|
42
|
+
<svg
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
viewBox="0 0 36 36"
|
|
45
|
+
>
|
|
46
|
+
<path
|
|
47
|
+
d="M4.399 19.038c-1.108 0-1.828-.72-1.828-1.734 0-.507.272-1.06.743-1.462L15.601 5.537c.719-.613 1.568-.92 2.393-.92.837 0 1.674.307 2.406.92l4.457 3.75V7.871c0-.566.389-.932.954-.932h2.654c.566 0 .931.366.931.932v5.211l3.29 2.76c.471.4.743.954.743 1.461 0 1.014-.72 1.734-1.828 1.734-.483 0-.99-.224-1.415-.59l-.79-.66v10.305c0 2.016-1.273 3.29-3.42 3.29H10.024c-2.146 0-3.419-1.274-3.419-3.29V17.788l-.802.66c-.413.366-.92.59-1.403.59m16.967 2.11v6.58h3.325c.672 0 1.062-.39 1.062-1.062V14.734l-6.98-5.848c-.248-.213-.52-.33-.779-.33-.26 0-.519.117-.766.33l-6.98 5.848v11.932c0 .672.377 1.062 1.06 1.062h3.326v-6.58c0-.578.377-.955.955-.955h4.834c.566 0 .943.377.943.955"
|
|
48
|
+
></path>
|
|
49
|
+
</svg>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
customElements.get("mui-icon-home") || customElements.define("mui-icon-home", l);
|
|
@@ -26,3 +26,11 @@ import "./down-arrow-circle/index.js";
|
|
|
26
26
|
import "./ellipsis/index.js";
|
|
27
27
|
import "./gear/index.js";
|
|
28
28
|
import "./translate/index.js";
|
|
29
|
+
import "./home/index.js";
|
|
30
|
+
import "./play-stack/index.js";
|
|
31
|
+
import "./game-controller/index.js";
|
|
32
|
+
import "./movie-clapper/index.js";
|
|
33
|
+
import "./music-microphone/index.js";
|
|
34
|
+
import "./music-quarter-note/index.js";
|
|
35
|
+
import "./play-rectangle/index.js";
|
|
36
|
+
import "./list-and-film/index.js";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
class l 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, c, e) {
|
|
12
|
+
(t === "size" || t === "color") && c !== e && this.render();
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const t = this.getAttribute("size") || "small", c = this.getAttribute("color"), o = c && {
|
|
16
|
+
default: "var(--icon-color-default)",
|
|
17
|
+
inverted: "var(--icon-color-inverted)"
|
|
18
|
+
}[c] || c || "var(--icon-color-default)", i = {
|
|
19
|
+
"x-small": "1.6rem",
|
|
20
|
+
small: "2.1rem",
|
|
21
|
+
medium: "2.4rem",
|
|
22
|
+
large: "2.8rem"
|
|
23
|
+
}, s = i[t] ?? i.small;
|
|
24
|
+
this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
|
|
25
|
+
`
|
|
26
|
+
<style>
|
|
27
|
+
:host {
|
|
28
|
+
width: ${s};
|
|
29
|
+
height: ${s};
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
fill: ${o};
|
|
34
|
+
}
|
|
35
|
+
svg {
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: block;
|
|
38
|
+
fill: inherit;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
|
|
42
|
+
<svg
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
viewBox="0 0 36 36"
|
|
45
|
+
>
|
|
46
|
+
<path
|
|
47
|
+
d="M4.524 10.846c-.844 0-1.522-.756-1.522-1.567 0-.844.667-1.566 1.522-1.566h21.553c.866 0 1.522.7 1.522 1.566 0 .833-.667 1.566-1.522 1.566zM17.567 28.01c-1.278 0-2.111-.845-2.111-2.1V15.39c0-1.267.833-2.1 2.11-2.1h13.321c1.278 0 2.11.833 2.11 2.1v10.52c0 1.255-.832 2.1-2.11 2.1zM4.524 16.656c-.844 0-1.522-.756-1.522-1.567 0-.844.667-1.566 1.522-1.566h7.277c.866 0 1.522.71 1.522 1.566 0 .833-.667 1.567-1.522 1.567zm12.887.533h1.133c.19 0 .334-.133.334-.322v-1.289c0-.189-.145-.322-.334-.322h-1.133c-.189 0-.333.133-.333.322v1.289c0 .189.144.322.333.322m12.498 0h1.134c.188 0 .333-.133.333-.322v-1.289c0-.189-.145-.322-.333-.322h-1.134c-.188 0-.333.133-.333.322v1.289c0 .189.145.322.333.322m-9.21 2.4h7.066c.278 0 .467-.211.467-.478v-3.233c0-.278-.189-.478-.467-.478H20.7c-.278 0-.478.2-.478.478v3.233c0 .267.2.478.478.478m-3.288.544h1.133c.19 0 .334-.133.334-.311v-1.289a.327.327 0 0 0-.334-.333h-1.133a.327.327 0 0 0-.333.333v1.289c0 .178.144.311.333.311m12.498 0h1.134c.188 0 .333-.133.333-.311v-1.289a.327.327 0 0 0-.333-.333h-1.134a.327.327 0 0 0-.333.333v1.289c0 .178.145.311.333.311M4.524 22.477c-.844 0-1.522-.755-1.522-1.566 0-.845.667-1.578 1.522-1.578h7.277c.866 0 1.522.711 1.522 1.578 0 .822-.667 1.566-1.522 1.566zm12.887.6h1.133a.325.325 0 0 0 .334-.322v-1.289a.32.32 0 0 0-.334-.333h-1.133a.32.32 0 0 0-.333.333v1.289c0 .178.144.322.333.322m12.498 0h1.134a.325.325 0 0 0 .333-.322v-1.289a.32.32 0 0 0-.333-.333h-1.134a.32.32 0 0 0-.333.333v1.289c0 .178.145.322.333.322m-9.21 2.8h7.066a.45.45 0 0 0 .467-.467v-3.233a.443.443 0 0 0-.467-.466H20.7c-.278 0-.478.188-.478.466v3.233c0 .267.2.467.478.467m-3.288.144h1.133c.19 0 .334-.133.334-.322V24.41c0-.189-.145-.322-.334-.322h-1.133c-.189 0-.333.133-.333.322V25.7c0 .189.144.322.333.322m12.498 0h1.134c.188 0 .333-.133.333-.322V24.41c0-.189-.145-.322-.333-.322h-1.134c-.188 0-.333.133-.333.322V25.7c0 .189.145.322.333.322M4.524 28.287c-.844 0-1.522-.755-1.522-1.566 0-.844.667-1.567 1.522-1.567h7.277c.866 0 1.522.7 1.522 1.567 0 .833-.667 1.566-1.522 1.566z"
|
|
48
|
+
></path>
|
|
49
|
+
</svg>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
customElements.get("mui-icon-list-and-film") || customElements.define("mui-icon-list-and-film", l);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
class c 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"), s = e && {
|
|
16
|
+
default: "var(--icon-color-default)",
|
|
17
|
+
inverted: "var(--icon-color-inverted)"
|
|
18
|
+
}[e] || e || "var(--icon-color-default)", l = {
|
|
19
|
+
"x-small": "1.6rem",
|
|
20
|
+
small: "2.1rem",
|
|
21
|
+
medium: "2.4rem",
|
|
22
|
+
large: "2.8rem"
|
|
23
|
+
}, o = l[t] ?? l.small;
|
|
24
|
+
this.classList.add("mui-icon"), this.shadowRoot && (this.shadowRoot.innerHTML = /*html*/
|
|
25
|
+
`
|
|
26
|
+
<style>
|
|
27
|
+
:host {
|
|
28
|
+
width: ${o};
|
|
29
|
+
height: ${o};
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
fill: ${s};
|
|
34
|
+
}
|
|
35
|
+
svg {
|
|
36
|
+
width: 100%;
|
|
37
|
+
display: block;
|
|
38
|
+
fill: inherit;
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
|
|
42
|
+
<svg
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
viewBox="0 0 36 36"
|
|
45
|
+
>
|
|
46
|
+
<path
|
|
47
|
+
d="M3.217 13.815c-.728-2.73.416-4.693 3.145-5.434l19.083-5.122c2.652-.715 4.693.312 5.382 2.912l.624 2.275c.377 1.443-.273 2.587-1.703 2.95l-5.798 1.56h6.63c1.508 0 2.418.924 2.418 2.406v13.155c0 2.834-1.612 4.445-4.459 4.445H8.806c-2.847 0-4.445-1.612-4.445-4.445V18zM22 11.202l2.976-.793.82-3.588c-.274.065-.534.13-.807.208l-2.158.598zm-6.773 1.82 3.055-.82.845-3.587-3.068.819zm-6.669 1.78 2.977-.78.82-3.613-2.965.819zm.676 5.551h3.081l1.95-3.419h-.624l-2.483.04zm6.929 0h3.159l1.95-3.419H18.1zm7.006 0h3.068l1.95-3.419h-3.08zM8.013 28.01c0 .897.442 1.274 1.287 1.274h18.745c.845 0 1.274-.377 1.274-1.274V23.16H8.013z"
|
|
48
|
+
></path>
|
|
49
|
+
</svg>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
customElements.get("mui-icon-movie-clapper") || customElements.define("mui-icon-movie-clapper", c);
|