@muibook/components 1.0.2 → 1.0.3
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/package.json +3 -3
- package/readme.md +12 -0
- package/dist/create-mui-app/assets/index-DfcB3F-s.js +0 -597
- package/dist/create-mui-app/create-mui-app.css +0 -1
- package/dist/create-mui-app/index.html +0 -21
- package/dist/muibook/_redirects +0 -1
- package/dist/muibook/assets/base-B4dO4n0A.js +0 -198
- package/dist/muibook/assets/components-YZ3tjmIt.js +0 -122
- package/dist/muibook/assets/contextual-D648xs_u.js +0 -59
- package/dist/muibook/assets/image-1080-Bg-8LoSs.js +0 -1
- package/dist/muibook/assets/index-0bBJZTXh.js +0 -135
- package/dist/muibook/assets/index-B4Lbi-ZX.js +0 -82
- package/dist/muibook/assets/index-BJJtzLti.js +0 -144
- package/dist/muibook/assets/index-BN6UEWFf.js +0 -439
- package/dist/muibook/assets/index-Bc68V_xw.js +0 -140
- package/dist/muibook/assets/index-BnpaoEYs.js +0 -386
- package/dist/muibook/assets/index-BrZBJGo2.js +0 -4276
- package/dist/muibook/assets/index-Bx-SU7T2.js +0 -98
- package/dist/muibook/assets/index-C10sNeH-.js +0 -64
- package/dist/muibook/assets/index-C4ZnvuXX.js +0 -333
- package/dist/muibook/assets/index-C7Tqc5BR.js +0 -325
- package/dist/muibook/assets/index-CAkZAmud.js +0 -514
- package/dist/muibook/assets/index-CCegrD2J.js +0 -130
- package/dist/muibook/assets/index-CHZJlumm.js +0 -95
- package/dist/muibook/assets/index-CPZ8jubJ.js +0 -308
- package/dist/muibook/assets/index-CSLqxg9p.js +0 -73
- package/dist/muibook/assets/index-CT3BsW8R.js +0 -177
- package/dist/muibook/assets/index-CYYG9dAN.js +0 -270
- package/dist/muibook/assets/index-CdghbWW3.js +0 -42
- package/dist/muibook/assets/index-CfD1WQYQ.js +0 -106
- package/dist/muibook/assets/index-Ch40uilB.js +0 -52
- package/dist/muibook/assets/index-CwAai54c.js +0 -263
- package/dist/muibook/assets/index-CyWt9f96.js +0 -336
- package/dist/muibook/assets/index-D8hXO6aa.js +0 -131
- package/dist/muibook/assets/index-DBkw7VLa.js +0 -431
- package/dist/muibook/assets/index-DI0vNTNv.js +0 -56
- package/dist/muibook/assets/index-DNImaJPY.js +0 -96
- package/dist/muibook/assets/index-DP6CCnt0.js +0 -257
- package/dist/muibook/assets/index-DR5X8zCc.js +0 -67
- package/dist/muibook/assets/index-DZQ8pS6y.js +0 -133
- package/dist/muibook/assets/index-DlZ1b9ZK.js +0 -233
- package/dist/muibook/assets/index-DwnvCJk0.js +0 -177
- package/dist/muibook/assets/index-_4AZFkzS.js +0 -328
- package/dist/muibook/assets/index-dkW0Vbeg.js +0 -429
- package/dist/muibook/assets/index-ehE10GAP.js +0 -40
- package/dist/muibook/assets/index-icuV1guL.js +0 -69
- package/dist/muibook/assets/index-qOE8f0sK.js +0 -72
- package/dist/muibook/assets/layout-BT0xIYa9.js +0 -184
- package/dist/muibook/assets/mui-D6S1tQ24.js +0 -1
- package/dist/muibook/assets/mui-logo-mobile-DuEMz_jq.js +0 -31
- package/dist/muibook/assets/semantic-cbNjeY5p.js +0 -111
- package/dist/muibook/assets/spacing-DY3cAXq0.js +0 -82
- package/dist/muibook/assets/surface-CMaW9FgJ.js +0 -148
- package/dist/muibook/assets/text-TVCTYde0.js +0 -130
- package/dist/muibook/assets/visual-B_21dq90.js +0 -96
- package/dist/muibook/buttercup.png +0 -0
- package/dist/muibook/create-mui-app.jpg +0 -0
- package/dist/muibook/crystal.png +0 -0
- package/dist/muibook/diamond.png +0 -0
- package/dist/muibook/emerald.svg +0 -13
- package/dist/muibook/favicon.ico +0 -0
- package/dist/muibook/hero-guides.png +0 -0
- package/dist/muibook/hero-outcomes.png +0 -0
- package/dist/muibook/image-1080.png +0 -0
- package/dist/muibook/image-220.png +0 -0
- package/dist/muibook/image-395.png +0 -0
- package/dist/muibook/index.html +0 -38
- package/dist/muibook/logo192.png +0 -0
- package/dist/muibook/mui-tokens.jpg +0 -0
- package/dist/muibook/muibook.css +0 -1
- package/dist/muibook/premier.png +0 -0
- package/dist/muibook/ruby.svg +0 -13
- package/dist/muibook/sapphire.png +0 -0
- package/dist/muibook/sapphire.svg +0 -13
- package/dist/muibook/snowy-mint.png +0 -0
- package/dist/types/components/mui-accordion/mui-accordion-block/index.d.ts +0 -2
- package/dist/types/components/mui-accordion/mui-accordion-group/index.d.ts +0 -1
- package/dist/types/components/mui-accordion/mui-accordion-inline/index.d.ts +0 -2
- package/dist/types/components/mui-icons/chevron.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-add.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-down-chevron.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-moon.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-right-chevron.d.ts +0 -1
- package/dist/types/components/mui-icons/mui-icon-sun.d.ts +0 -1
- package/dist/types/components/mui-stack/mui-hstack/index.d.ts +0 -1
- package/dist/types/components/mui-stack/mui-vstack/index.d.ts +0 -1
- package/dist/types/components/mui-table/row/row.d.ts +0 -1
- package/dist/types/create-app/index.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muibook/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A library of MUI-based design system components.",
|
|
5
5
|
"author": "Michael Trilford",
|
|
6
6
|
"homepage": "https://muibook.com",
|
|
@@ -334,8 +334,8 @@
|
|
|
334
334
|
"preview:create-mui-app": "vite preview --config vite.create-mui-app.config.ts"
|
|
335
335
|
},
|
|
336
336
|
"files": [
|
|
337
|
-
"dist",
|
|
338
|
-
"
|
|
337
|
+
"dist/esm",
|
|
338
|
+
"dist/types"
|
|
339
339
|
],
|
|
340
340
|
"devDependencies": {
|
|
341
341
|
"@types/node": "^22.15.24",
|
package/readme.md
CHANGED
|
@@ -75,6 +75,18 @@ Install [es6-string-html](https://marketplace.visualstudio.com/items?itemName=To
|
|
|
75
75
|
|
|
76
76
|
---
|
|
77
77
|
|
|
78
|
+
## Packages
|
|
79
|
+
|
|
80
|
+
Publish
|
|
81
|
+
|
|
82
|
+
`npm publish`
|
|
83
|
+
|
|
84
|
+
Version Patch
|
|
85
|
+
|
|
86
|
+
`npm version patch`
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
78
90
|
## Notes
|
|
79
91
|
|
|
80
92
|
- Add any new components to `vite.config.ts` to include them in builds
|
|
@@ -1,597 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const n of a.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function e(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(o){if(o.ep)return;o.ep=!0;const a=e(o);fetch(o.href,a)}})();class l extends HTMLElement{static get observedAttributes(){return["size","color"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(t,e,i){(t==="size"||t==="color")&&e!==i&&this.render()}render(){const t=this.getAttribute("size")||"small",e=this.getAttribute("color"),o=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",a={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},n=a[t]??a.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2
|
-
<style>
|
|
3
|
-
:host {
|
|
4
|
-
width: ${n};
|
|
5
|
-
height: ${n};
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
fill: ${o};
|
|
10
|
-
}
|
|
11
|
-
svg {
|
|
12
|
-
width: 100%;
|
|
13
|
-
display: block;
|
|
14
|
-
fill: inherit;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
|
|
18
|
-
<svg
|
|
19
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
-
viewBox="0 0 36 36"
|
|
21
|
-
>
|
|
22
|
-
<path
|
|
23
|
-
d="M18.692 8.106c-1.081 0-1.994-.914-1.994-1.996V3.524c0-1.096.913-2.024 1.994-2.024 1.096 0 2.009.928 2.009 2.024V6.11c0 1.082-.913 1.996-2.009 1.996m7.373 3.12c-.772-.773-.786-2.094-.042-2.839l1.84-1.841c.758-.76 2.064-.787 2.809-.042.772.773.786 2.08.042 2.839l-1.826 1.841c-.772.773-2.079.787-2.823.042m-14.746 0c-.744.745-2.05.731-2.809-.042L6.685 9.33c-.745-.745-.73-2.052.042-2.825.744-.745 2.05-.717 2.809.042l1.825 1.841c.745.745.73 2.066-.042 2.84m7.373 15.377c-4.424 0-8.075-3.655-8.075-8.096s3.651-8.096 8.075-8.096c4.438 0 8.09 3.655 8.09 8.096s-3.652 8.096-8.09 8.096m10.42-8.096c0-1.082.914-1.996 1.995-1.996h2.584c1.095 0 2.008.914 2.008 1.996s-.913 1.996-2.008 1.996h-2.584c-1.081 0-1.994-.914-1.994-1.996m-20.812 0c0 1.082-.927 1.996-2.023 1.996H3.693c-1.08 0-1.994-.914-1.994-1.996s.913-1.996 1.994-1.996h2.584c1.096 0 2.023.914 2.023 1.996m17.723 7.337c.773-.773 2.079-.787 2.837-.042l1.84 1.841c.772.759.786 2.066.042 2.811-.773.773-2.079.787-2.837.042l-1.84-1.827c-.772-.773-.786-2.08-.042-2.825m-14.662 0c.745.745.73 2.052-.042 2.825l-1.84 1.827c-.744.745-2.05.731-2.836-.042-.73-.745-.73-2.066.042-2.825l1.854-1.827c.744-.745 2.05-.731 2.822.042m7.331 3.05c1.096 0 2.009.914 2.009 2.01v2.586c0 1.082-.913 2.01-2.009 2.01-1.081 0-1.994-.928-1.994-2.01v-2.586c0-1.096.913-2.01 1.994-2.01"
|
|
24
|
-
></path>
|
|
25
|
-
</svg>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
`)}}customElements.define("mui-icon-sun",l);class h extends HTMLElement{static get observedAttributes(){return["size","color"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(t,e,i){(t==="size"||t==="color")&&e!==i&&this.render()}render(){const t=this.getAttribute("size")||"small",e=this.getAttribute("color"),o=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",a={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},n=a[t]??a.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
29
|
-
<style>
|
|
30
|
-
:host {
|
|
31
|
-
width: ${n};
|
|
32
|
-
height: ${n};
|
|
33
|
-
display: inline-flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
fill: ${o};
|
|
37
|
-
}
|
|
38
|
-
svg {
|
|
39
|
-
width: 100%;
|
|
40
|
-
display: block;
|
|
41
|
-
fill: inherit;
|
|
42
|
-
}
|
|
43
|
-
</style>
|
|
44
|
-
|
|
45
|
-
<svg
|
|
46
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
47
|
-
viewBox="0 0 36 36"
|
|
48
|
-
>
|
|
49
|
-
<path
|
|
50
|
-
d="M26.68 23.013c1.698 0 3.457-.32 4.466-.776.55-.274 1.024-.411 1.468-.411.642 0 1.085.456 1.085 1.157 0 .365-.107.867-.352 1.43C31.04 29.801 25.488 33.5 19.22 33.5 10.32 33.5 3.7 27.031 3.7 18.157c0-6.27 3.808-12.054 9.572-14.368.49-.198.933-.289 1.284-.289.765 0 1.224.518 1.224 1.187 0 .396-.138.853-.398 1.37-.596 1.142-.963 3.227-.963 5.069 0 7.351 4.725 11.887 12.263 11.887"
|
|
51
|
-
></path>
|
|
52
|
-
</svg>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
`)}}customElements.define("mui-icon-moon",h);class d extends HTMLElement{constructor(){super(),this._checked=!1,this._checkbox=null,this.attachShadow({mode:"open"}),this._checked=!1}connectedCallback(){var t;this.render(),this._checkbox=this.shadowRoot.querySelector('input[type="checkbox"]'),this._checked=this.hasAttribute("checked"),this._checkbox&&(this._checkbox.checked=this._checked),this._updateIcons(),this._updateDisabledState(),(t=this._checkbox)==null||t.addEventListener("change",()=>{this._checkbox&&(this.checked=this._checkbox.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!0,composed:!0})))})}static get observedAttributes(){return["label","disabled","checked"]}attributeChangedCallback(t,e,i){if(t==="checked"&&e!==i&&(this._checked=i!==null,this._checkbox&&(this._checkbox.checked=this._checked,this._updateIcons())),t==="disabled"&&e!==i){const o=i!==null;this._checkbox&&(this._checkbox.disabled=o,this._checkbox.setAttribute("aria-disabled",o.toString())),this._updateDisabledState()}}get checked(){return this._checked}set checked(t){const e=!!t;this._checked!==e&&(this._checked=e,e?this.setAttribute("checked",""):this.removeAttribute("checked"),this._checkbox&&(this._checkbox.checked=this._checked,this._checkbox.setAttribute("aria-checked",this._checked.toString()),this._updateIcons()))}_updateDisabledState(){var e,i,o,a;this.hasAttribute("disabled")?(this.shadowRoot.host.classList.add("disabled"),(e=this._checkbox)==null||e.setAttribute("aria-disabled","true"),(i=this._checkbox)==null||i.setAttribute("tabindex","-1")):(this.shadowRoot.host.classList.remove("disabled"),(o=this._checkbox)==null||o.removeAttribute("aria-disabled"),(a=this._checkbox)==null||a.removeAttribute("tabindex"))}_updateIcons(){const t=this.shadowRoot.querySelector('slot[name="on-icon"]'),e=this.shadowRoot.querySelector('slot[name="off-icon"]');t&&t.assignedElements().forEach(i=>{i.style.display=this._checked?"inline":"none"}),e&&e.assignedElements().forEach(i=>{i.style.display=this._checked?"none":"inline"})}render(){const t=this.getAttribute("label");t||console.warn("mui-switch Accessibility warning: Provide a 'label' to ensure the switch is described for assistive technologies."),this.shadowRoot.innerHTML=`
|
|
56
|
-
<style>
|
|
57
|
-
:host { display: inline-block; }
|
|
58
|
-
|
|
59
|
-
.switch {
|
|
60
|
-
position: relative;
|
|
61
|
-
display: inline-block;
|
|
62
|
-
width: var(--switch-width);
|
|
63
|
-
height: var(--switch-height);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.switch input {
|
|
67
|
-
opacity: 0;
|
|
68
|
-
width: 0;
|
|
69
|
-
height: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.switch input:focus-visible + .track {
|
|
73
|
-
outline: var(--outline-thick);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.track {
|
|
77
|
-
position: absolute;
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
top: 0;
|
|
80
|
-
left: 0;
|
|
81
|
-
right: 0;
|
|
82
|
-
bottom: 0;
|
|
83
|
-
background-color: var(--switch-track-background);
|
|
84
|
-
transition: background-color var(--speed-200);
|
|
85
|
-
border-radius: var(--switch-height);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.thumb {
|
|
89
|
-
position: absolute;
|
|
90
|
-
top: var(--switch-offset);
|
|
91
|
-
left: var(--switch-offset);
|
|
92
|
-
width: var(--switch-thumb-size);
|
|
93
|
-
height: var(--switch-thumb-size);
|
|
94
|
-
background-color: var(--switch-thumb-bg);
|
|
95
|
-
transition: transform var(--speed-200);
|
|
96
|
-
border-radius: 50%;
|
|
97
|
-
display: flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
justify-content: center;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
input:checked + .track {
|
|
103
|
-
background-color: var(--switch-track-background-checked);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
input:checked + .track .thumb {
|
|
107
|
-
transform: translateX(calc(var(--switch-width) - var(--switch-thumb-size) - (var(--switch-offset) * 2)));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
::slotted([slot="on-icon"]),
|
|
111
|
-
::slotted([slot="off-icon"]) {
|
|
112
|
-
width: 16px;
|
|
113
|
-
height: 16px;
|
|
114
|
-
fill: var(--switch-icon);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
:host(.disabled) {
|
|
118
|
-
cursor: not-allowed;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
:host(.disabled) .switch {
|
|
122
|
-
opacity: 0.4;
|
|
123
|
-
pointer-events: none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
</style>
|
|
127
|
-
<label class="switch">
|
|
128
|
-
<input
|
|
129
|
-
type="checkbox"
|
|
130
|
-
role="switch"
|
|
131
|
-
aria-checked="${this._checked}"
|
|
132
|
-
${t?`aria-label="${t}"`:""}
|
|
133
|
-
>
|
|
134
|
-
<span class="track">
|
|
135
|
-
<span class="thumb">
|
|
136
|
-
<slot name="on-icon"></slot>
|
|
137
|
-
<slot name="off-icon"></slot>
|
|
138
|
-
</span>
|
|
139
|
-
</span>
|
|
140
|
-
</label>
|
|
141
|
-
`}}customElements.define("mui-switch",d);class u extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=`
|
|
142
|
-
<style>
|
|
143
|
-
|
|
144
|
-
:host {
|
|
145
|
-
display: block;
|
|
146
|
-
width: 95%;
|
|
147
|
-
width: calc( 100% - 4.8rem );
|
|
148
|
-
max-width: 118.0rem;
|
|
149
|
-
padding-top: 2.4rem;
|
|
150
|
-
padding-bottom: 2.4rem;
|
|
151
|
-
min-width: 27.2rem;
|
|
152
|
-
margin: 0 2.4rem; }
|
|
153
|
-
|
|
154
|
-
/* Center
|
|
155
|
-
========================================= */
|
|
156
|
-
:host([center]) {
|
|
157
|
-
margin: 0 auto; }
|
|
158
|
-
/* ===================================== */
|
|
159
|
-
|
|
160
|
-
/* Fluid
|
|
161
|
-
========================================= */
|
|
162
|
-
:host([fluid]) {
|
|
163
|
-
max-width: 100%; }
|
|
164
|
-
/* ===================================== */
|
|
165
|
-
|
|
166
|
-
/* Small
|
|
167
|
-
========================================= */
|
|
168
|
-
:host([small]) {
|
|
169
|
-
max-width: 54.0rem; }
|
|
170
|
-
/* ===================================== */
|
|
171
|
-
|
|
172
|
-
/* Medium
|
|
173
|
-
========================================= */
|
|
174
|
-
:host([medium]) {
|
|
175
|
-
max-width: 70.0rem; }
|
|
176
|
-
/* ===================================== */
|
|
177
|
-
|
|
178
|
-
/* Large
|
|
179
|
-
========================================= */
|
|
180
|
-
:host([large]) {
|
|
181
|
-
max-width: 118.0rem; }
|
|
182
|
-
/* ===================================== */
|
|
183
|
-
</style>
|
|
184
|
-
<slot></slot>
|
|
185
|
-
`;this.shadowRoot&&(this.shadowRoot.innerHTML=t)}}customElements.define("mui-container",u);class g extends HTMLElement{static get observedAttributes(){return["size","level"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot)return;const t=this.getAttribute("size")||"1",i=`h${this.getAttribute("level")||t}`;this.shadowRoot.innerHTML=`
|
|
186
|
-
<style>
|
|
187
|
-
@import url("./css/mui-reset.css");
|
|
188
|
-
:host { display: block; }
|
|
189
|
-
|
|
190
|
-
h1, h2, h3, h4, h5, h6 {
|
|
191
|
-
margin: var(--space-000);
|
|
192
|
-
font-weight: var(--heading-font-weight);
|
|
193
|
-
color: var(--heading-text-color);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.size-1 { font-size: var(--heading-font-size-100); line-height: var(--heading-line-height-100); }
|
|
197
|
-
.size-2 { font-size: var(--heading-font-size-200); line-height: var(--heading-line-height-200); }
|
|
198
|
-
.size-3 { font-size: var(--heading-font-size-300); line-height: var(--heading-line-height-300); }
|
|
199
|
-
.size-4 { font-size: var(--heading-font-size-400); line-height: var(--heading-line-height-400); }
|
|
200
|
-
.size-5 { font-size: var(--heading-font-size-500); line-height: var(--heading-line-height-500); }
|
|
201
|
-
.size-6 { font-size: var(--heading-font-size-600); line-height: var(--heading-line-height-600); }
|
|
202
|
-
</style>
|
|
203
|
-
<${i} class="size-${t}">
|
|
204
|
-
<slot></slot>
|
|
205
|
-
</${i}>
|
|
206
|
-
`}}customElements.define("mui-heading",g);const c={text:["color","font-family","font-size","font-weight","letter-spacing","line-height","text-transform","text-decoration","text-align"],spacing:["padding","margin","gap","width","height","box-sizing"],layout:["display","flex","flex-direction","flex-wrap","justify-content","align-items","align-content","align-self","grid-template-columns","grid-template-rows","grid-column","grid-row","place-items","place-content","vertical-align"],visual:["background","border","border-radius","box-shadow","opacity","transition","outline","color"]};Object.values(c).flat();function s(...r){return r.map(t=>c[t]||[]).flat().join(" ")}class m extends HTMLElement{static get observedAttributes(){return["size","weight","variant"]}constructor(){super(),this.attachShadow({mode:"open"});const t=this.getAttribute("size")||"medium",e=this.getAttribute("weight")||"regular",i=this.getAttribute("variant")||"default";this.setAttribute("size",t),this.setAttribute("variant",i),this.setAttribute("weight",e)}async connectedCallback(){await this.waitForPartMap();let e=`
|
|
207
|
-
<style>
|
|
208
|
-
:host { display: block; }
|
|
209
|
-
|
|
210
|
-
:host p {
|
|
211
|
-
color: var(--text-color);
|
|
212
|
-
margin: var(--space-000);
|
|
213
|
-
display: block;
|
|
214
|
-
width: 100%;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
:host([size="x-small"]) p {
|
|
218
|
-
font-size: var(--text-font-size-xs);
|
|
219
|
-
line-height: var(--text-line-height-xs);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
:host([size="small"]) p {
|
|
223
|
-
font-size: var(--text-font-size-s);
|
|
224
|
-
line-height: var(--text-line-height-s);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
:host([size="medium"]) p {
|
|
228
|
-
font-size: var(--text-font-size-m);
|
|
229
|
-
line-height: var(--text-line-height-m);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:host([size="large"]) p {
|
|
233
|
-
font-size: var(--text-font-size-l);
|
|
234
|
-
line-height: var(--text-line-height-l);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
:host([weight="regular"]) p { font-weight: var(--font-weight-regular); }
|
|
238
|
-
:host([weight="medium"]) p { font-weight: var(--font-weight-medium); }
|
|
239
|
-
:host([weight="bold"]) p { font-weight: var(--font-weight-bold); }
|
|
240
|
-
|
|
241
|
-
/* Variant */
|
|
242
|
-
:host([variant="default"]) p {
|
|
243
|
-
color: var(--text-color);
|
|
244
|
-
}
|
|
245
|
-
:host([variant="success"]) p {
|
|
246
|
-
color: var(--text-color-success);
|
|
247
|
-
}
|
|
248
|
-
:host([variant="warning"]) p {
|
|
249
|
-
color: var(--text-color-warning);
|
|
250
|
-
}
|
|
251
|
-
:host([variant="error"]) p {
|
|
252
|
-
color: var(--text-color-error);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
</style>
|
|
256
|
-
|
|
257
|
-
<p part="${s("spacing","layout","visual")}"><slot></slot></p>
|
|
258
|
-
|
|
259
|
-
`;this.shadowRoot&&(this.shadowRoot.innerHTML=e)}waitForPartMap(){return new Promise(t=>{if(typeof s=="function")return t();const e=()=>{typeof s=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-body",m);class v extends HTMLElement{static get observedAttributes(){return["target","href","variant","weight","size"]}constructor(){super(),this.attachShadow({mode:"open"});const t=this.getAttribute("size")||"medium",e=this.getAttribute("weight")||"regular";this.setAttribute("size",t),this.setAttribute("weight",e)}async connectedCallback(){if(!this.shadowRoot)return;await this.waitForPartMap();let e=`
|
|
260
|
-
<style>
|
|
261
|
-
|
|
262
|
-
:host { display: inline-flex; }
|
|
263
|
-
|
|
264
|
-
a {
|
|
265
|
-
color: var(--link-text-color-default);
|
|
266
|
-
align-items: center;
|
|
267
|
-
justify-content: center;
|
|
268
|
-
cursor: pointer;
|
|
269
|
-
box-sizing: border-box;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/* Turned back on for focus-visible */
|
|
273
|
-
a:focus, a:active, a:hover { outline: var(--space-000); }
|
|
274
|
-
a:hover { color: var(--link-text-color-default-hover); }
|
|
275
|
-
a:focus { color: var(--link-text-color-default-focus); }
|
|
276
|
-
a:disabled { color: var(--link-text-color-default-disabled); cursor: not-allowed; }
|
|
277
|
-
a, a:before, a:after {box-sizing: border-box;}
|
|
278
|
-
a:focus-visible { outline: var(--outline-thick); }
|
|
279
|
-
|
|
280
|
-
:host([size="x-small"]) a {
|
|
281
|
-
font-size: var(--text-font-size-xs);
|
|
282
|
-
line-height: var(--text-line-height-xs);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
:host([size="small"]) a {
|
|
286
|
-
font-size: var(--text-font-size-s);
|
|
287
|
-
line-height: var(--text-line-height-s);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
:host([size="medium"]) a {
|
|
291
|
-
font-size: var(--text-font-size-m);
|
|
292
|
-
line-height: var(--text-line-height-m);
|
|
293
|
-
}
|
|
294
|
-
:host([size="large"]) a {
|
|
295
|
-
font-size: var(--text-font-size-l);
|
|
296
|
-
line-height: var(--text-line-height-l);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
:host([weight="regular"]) a { font-weight: var(--font-weight-regular); }
|
|
300
|
-
:host([weight="medium"]) a { font-weight: var(--font-weight-medium); }
|
|
301
|
-
:host([weight="bold"]) a { font-weight: var(--font-weight-bold); }
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
/* Button
|
|
306
|
-
========================================= */
|
|
307
|
-
|
|
308
|
-
:host([variant="primary"]) a,
|
|
309
|
-
:host([variant="secondary"]) a,
|
|
310
|
-
:host([variant="tertiary"]) a,
|
|
311
|
-
:host([variant="attention"]) a {
|
|
312
|
-
display: inline-block;
|
|
313
|
-
text-decoration: none;
|
|
314
|
-
padding: var(--space-200) var(--space-500);
|
|
315
|
-
border-radius: var(--action-radius);
|
|
316
|
-
font-size: var(--action-font-size);
|
|
317
|
-
font-weight: var(--action-font-weight);
|
|
318
|
-
line-height: var(--action-line-height);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
:host([variant="primary"]),
|
|
322
|
-
:host([variant="secondary"])
|
|
323
|
-
:host([variant="tertiary"]),
|
|
324
|
-
:host([variant="attention"]) { display: inline-block; }
|
|
325
|
-
|
|
326
|
-
/* Button Primary
|
|
327
|
-
========================================= */
|
|
328
|
-
|
|
329
|
-
:host([variant="primary"]) a {
|
|
330
|
-
background: var(--action-primary-background);
|
|
331
|
-
color: var(--action-primary-text-color);
|
|
332
|
-
border: var(--action-primary-stroke);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
:host([variant="primary"]) a:hover {
|
|
336
|
-
background: var(--action-primary-background-hover);
|
|
337
|
-
color: var(--action-primary-text-color-hover);
|
|
338
|
-
border: var(--action-primary-stroke-hover);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
:host([variant="primary"]) a:focus,
|
|
342
|
-
:host([variant="tertiary"]) a:focus-visible {
|
|
343
|
-
background: var(--action-primary-background-focus);
|
|
344
|
-
color: var(--action-primary-text-color-focus);
|
|
345
|
-
border: var(--action-primary-stroke-focus);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
:host([variant="primary"]) a:disabled {
|
|
349
|
-
background: var(--action-primary-background-disabled);
|
|
350
|
-
color: var(--action-primary-text-color-disabled);
|
|
351
|
-
border: var(--action-primary-stroke-disabled);
|
|
352
|
-
cursor: not-allowed;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
:host([variant="primary"]) a ::slotted(.mui-icon) { fill: var(--action-primary-text-color); }
|
|
356
|
-
:host([variant="primary"]) a:hover ::slotted(.mui-icon) { fill: var(--action-primary-text-color-hover); }
|
|
357
|
-
:host([variant="primary"]) a:focus ::slotted(.mui-icon) { fill: var(--action-primary-text-color-focus); }
|
|
358
|
-
:host([variant="primary"]) a:disabled ::slotted(.mui-icon) { fill: var(--action-primary-text-color-disabled); }
|
|
359
|
-
|
|
360
|
-
/* Button Secondary
|
|
361
|
-
========================================= */
|
|
362
|
-
:host([variant="secondary"]) a {
|
|
363
|
-
background: var(--action-secondary-background);
|
|
364
|
-
color: var(--action-secondary-text-color);
|
|
365
|
-
border: var(--action-secondary-stroke);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
:host([variant="secondary"]) a:hover {
|
|
369
|
-
background: var(--action-secondary-background-hover);
|
|
370
|
-
color: var(--action-secondary-text-color-hover);
|
|
371
|
-
border: var(--action-secondary-stroke-hover);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
:host([variant="secondary"]) a:focus,
|
|
375
|
-
:host([variant="secondary"]) a:focus-visible {
|
|
376
|
-
background: var(--action-secondary-background-focus);
|
|
377
|
-
color: var(--action-secondary-text-color-focus);
|
|
378
|
-
border: var(--action-secondary-stroke-focus);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
:host([variant="secondary"]) a:disabled {
|
|
382
|
-
background: var(--action-secondary-background-disabled);
|
|
383
|
-
color: var(--action-secondary-text-color-disabled);
|
|
384
|
-
border: var(--action-secondary-stroke-disabled);
|
|
385
|
-
cursor: not-allowed;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
:host([variant="secondary"]) a ::slotted(.mui-icon) { fill: var(--action-secondary-text-color); }
|
|
389
|
-
:host([variant="secondary"]) a:hover ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-hover); }
|
|
390
|
-
:host([variant="secondary"]) a:focus ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-focus); }
|
|
391
|
-
:host([variant="secondary"]) a:disabled ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-disabled); }
|
|
392
|
-
|
|
393
|
-
/* Button Tertiary
|
|
394
|
-
========================================= */
|
|
395
|
-
:host([variant="tertiary"]) a {
|
|
396
|
-
background: var(--action-tertiary-background);
|
|
397
|
-
color: var(--action-tertiary-text-color);
|
|
398
|
-
border: var(--action-tertiary-stroke);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
:host([variant="tertiary"]) a:hover {
|
|
402
|
-
color: var(--action-tertiary-text-color-hover);
|
|
403
|
-
background: var(--action-tertiary-background-hover);
|
|
404
|
-
border: var(--action-tertiary-stroke-hover);
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
:host([variant="tertiary"]) a:focus,
|
|
408
|
-
:host([variant="tertiary"]) a:focus-visible {
|
|
409
|
-
color: var(--action-tertiary-text-color-focus);
|
|
410
|
-
background: var(--action-tertiary-background-focus);
|
|
411
|
-
border: var(--action-tertiary-stroke-focus);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
:host([variant="tertiary"]) a:disabled {
|
|
415
|
-
background: var(--action-tertiary-background-disabled);
|
|
416
|
-
color: var(--action-tertiary-text-color-disabled);
|
|
417
|
-
border: var(--action-tertiary-stroke-disabled);
|
|
418
|
-
cursor: not-allowed;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
:host([variant="tertiary"]) a ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color); }
|
|
422
|
-
:host([variant="tertiary"]) a:hover ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-hover); }
|
|
423
|
-
:host([variant="tertiary"]) a:focus ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-focus); }
|
|
424
|
-
:host([variant="tertiary"]) a:disabled ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-disabled); }
|
|
425
|
-
|
|
426
|
-
/* Button Attention
|
|
427
|
-
========================================= */
|
|
428
|
-
:host([variant="attention"]) a {
|
|
429
|
-
background: var(--action-attention-background);
|
|
430
|
-
color: var(--action-attention-text-color);
|
|
431
|
-
border: var(--action-attention-stroke);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
:host([variant="attention"]) a:hover {
|
|
435
|
-
background: var(--action-attention-background-hover);
|
|
436
|
-
color: var(--action-attention-text-color-hover);
|
|
437
|
-
border: var(--action-attention-stroke-hover);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
:host([variant="attention"]) a:focus,
|
|
441
|
-
:host([variant="attention"]) a:focus-visible {
|
|
442
|
-
background: var(--action-attention-background-focus);
|
|
443
|
-
color: var(--action-attention-text-color-focus);
|
|
444
|
-
border: var(--action-attention-stroke-focus);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
:host([variant="attention"]) a:disabled {
|
|
448
|
-
background: var(--action-attention-background-disabled);
|
|
449
|
-
color: var(--action-attention-text-color-disabled);
|
|
450
|
-
border: var(--action-attention-stroke-disabled);
|
|
451
|
-
cursor: not-allowed;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
:host([variant="attention"]) a ::slotted(.mui-icon) { fill: var(--action-attention-text-color); }
|
|
455
|
-
:host([variant="attention"]) a:hover ::slotted(.mui-icon) { fill: var(--action-attention-text-color-hover); }
|
|
456
|
-
:host([variant="attention"]) a:focus ::slotted(.mui-icon) { fill: var(--action-attention-text-color-focus); }
|
|
457
|
-
:host([variant="attention"]) a:disabled ::slotted(.mui-icon) { fill: var(--action-attention-text-color-disabled); }
|
|
458
|
-
|
|
459
|
-
/* Icon only
|
|
460
|
-
========================================= */
|
|
461
|
-
:host([icon-only]) a {
|
|
462
|
-
display: flex;
|
|
463
|
-
justify-content: center;
|
|
464
|
-
align-items: center;
|
|
465
|
-
height: 44px;
|
|
466
|
-
width: 44px;
|
|
467
|
-
padding: var(--action-icon-only-padding);
|
|
468
|
-
}
|
|
469
|
-
/* ===================================== */
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
</style>
|
|
473
|
-
|
|
474
|
-
<a
|
|
475
|
-
part="${s("text","spacing","layout","visual")}"
|
|
476
|
-
target="${this.getAttribute("target")||"_self"}"
|
|
477
|
-
href="${this.getAttribute("href")||"#"}"
|
|
478
|
-
>
|
|
479
|
-
<slot></slot>
|
|
480
|
-
</a>
|
|
481
|
-
`;this.shadowRoot.innerHTML=e}waitForPartMap(){return new Promise(t=>{if(typeof s=="function")return t();const e=()=>{typeof s=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-link",v);class b extends HTMLElement{static get observedAttributes(){return["space","alignY","alignX"]}constructor(){super(),this.attachShadow({mode:"open"}),this.space="var(--space-500)",this.alignY="flex-start",this.alignX="flex-start",this.styles=`
|
|
482
|
-
:host {
|
|
483
|
-
display: block;
|
|
484
|
-
}
|
|
485
|
-
slot {
|
|
486
|
-
display: flex;
|
|
487
|
-
gap: var(--space);
|
|
488
|
-
align-items: var(--alignY);
|
|
489
|
-
justify-content: var(--alignX);
|
|
490
|
-
}
|
|
491
|
-
`}async connectedCallback(){if(!this.shadowRoot)return;await this.waitForPartMap();const t=s("spacing","layout","visual");this.shadowRoot.innerHTML=`
|
|
492
|
-
<style>${this.styles}</style>
|
|
493
|
-
<slot
|
|
494
|
-
part="${t}"
|
|
495
|
-
style="
|
|
496
|
-
--space: ${this.getAttribute("space")||this.space};
|
|
497
|
-
--alignY: ${this.getAttribute("alignY")||this.alignY};
|
|
498
|
-
--alignX: ${this.getAttribute("alignX")||this.alignX};
|
|
499
|
-
">
|
|
500
|
-
</slot>
|
|
501
|
-
`}attributeChangedCallback(t,e){if(!this.shadowRoot)return;const i=this.shadowRoot.querySelector("slot");i&&(t==="space"&&i.style.setProperty("--space",e||this.space),t==="alignY"&&i.style.setProperty("--alignY",e||this.alignY),t==="alignX"&&i.style.setProperty("--alignX",e||this.alignX))}waitForPartMap(){return new Promise(t=>{if(typeof s=="function")return t();const e=()=>{typeof s=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-h-stack",b);class f extends HTMLElement{static get observedAttributes(){return["space","alignX","alignY"]}constructor(){super(),this.attachShadow({mode:"open"}),this.space="var(--space-500)",this.alignX="normal",this.alignY="normal",this.styles=`
|
|
502
|
-
:host {
|
|
503
|
-
display: block;
|
|
504
|
-
}
|
|
505
|
-
slot {
|
|
506
|
-
display: grid;
|
|
507
|
-
gap: var(--space);
|
|
508
|
-
justify-items: var(--alignX);
|
|
509
|
-
align-items: var(--alignY);
|
|
510
|
-
}
|
|
511
|
-
`}async connectedCallback(){if(!this.shadowRoot)return;await this.waitForPartMap();const t=s("spacing","layout","visual");this.shadowRoot.innerHTML=`
|
|
512
|
-
<style>${this.styles}</style>
|
|
513
|
-
<slot
|
|
514
|
-
part="${t}"
|
|
515
|
-
style="
|
|
516
|
-
--space: ${this.getAttribute("space")||this.space};
|
|
517
|
-
--alignX: ${this.getAttribute("alignX")||this.alignX};
|
|
518
|
-
--alignY: ${this.getAttribute("alignY")||this.alignY};
|
|
519
|
-
">
|
|
520
|
-
</slot>
|
|
521
|
-
`}attributeChangedCallback(t,e){if(!this.shadowRoot)return;const i=this.shadowRoot.querySelector("slot");i&&(t==="space"&&i.style.setProperty("--space",e||this.space),t==="alignX"&&i.style.setProperty("--alignX",e||this.alignX),t==="alignY"&&i.style.setProperty("--alignY",e||this.alignY))}waitForPartMap(){return new Promise(t=>{if(typeof s=="function")return t();const e=()=>{typeof s=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-v-stack",f);class p extends HTMLElement{static get observedAttributes(){return["color"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(t,e,i){t==="color"&&e!==i&&this.render()}render(){let e=this.getAttribute("color");this.shadowRoot.innerHTML=`
|
|
522
|
-
<style>
|
|
523
|
-
:host {
|
|
524
|
-
width: 200px;
|
|
525
|
-
height: auto;
|
|
526
|
-
display: inline-flex;
|
|
527
|
-
align-items: center;
|
|
528
|
-
justify-content: center;
|
|
529
|
-
fill: ${e};
|
|
530
|
-
}
|
|
531
|
-
svg {
|
|
532
|
-
width: 100%;
|
|
533
|
-
display: block;
|
|
534
|
-
fill: inherit;
|
|
535
|
-
}
|
|
536
|
-
</style>
|
|
537
|
-
|
|
538
|
-
<svg
|
|
539
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
540
|
-
viewBox="0 0 98 93"
|
|
541
|
-
>
|
|
542
|
-
<path
|
|
543
|
-
d="M1.615 66.906V1.319h16.8v11.914h.357C21.572 5.31 28.72.366 37.477.366c9.412 0 16.084 4.825 18.288 13.403h.357C59.101 5.55 66.964.366 76.495.366 89.362.366 98 9.123 98 22.347v44.559H80.606v-40.21c0-7.684-3.873-11.914-10.961-11.914-6.851 0-11.438 5.004-11.438 12.45v39.674H41.408V26.041c0-7.03-4.05-11.259-10.782-11.259-6.85 0-11.616 5.242-11.616 12.689v39.435zM10.324 74.101c5.123 0 9.353 3.932 9.353 9.115s-4.23 9.054-9.353 9.054c-5.182 0-9.412-3.872-9.412-9.054s4.23-9.115 9.412-9.115"
|
|
544
|
-
></path>
|
|
545
|
-
</svg>
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
`}}customElements.define("create-mui-app-logo",p);class y extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render();const t=localStorage.getItem("theme")||"light";document.documentElement.setAttribute("data-theme",t),this.render(t),customElements.whenDefined("mui-switch").then(()=>{const e=this.shadowRoot.querySelector("mui-switch");e.checked=t==="dark",e.addEventListener("change",i=>{const a=i.detail.checked?"dark":"light";localStorage.setItem("theme",a),document.documentElement.setAttribute("data-theme",a)}),window.addEventListener("brand-theme-capability",i=>{e.disabled=!i.detail.themeEnabled})})}render(t){const e=t==="dark";this.shadowRoot.innerHTML=`
|
|
552
|
-
<style>
|
|
553
|
-
:host {
|
|
554
|
-
display: block;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
mui-switch {
|
|
558
|
-
--switch-track-background-checked: #ffeb3b;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
</style>
|
|
562
|
-
|
|
563
|
-
<mui-switch label="Dark mode toggle" ${e?"checked":""}>
|
|
564
|
-
<mui-icon-sun slot="off-icon"></mui-icon-sun>
|
|
565
|
-
<mui-icon-moon slot="on-icon"></mui-icon-moon>
|
|
566
|
-
</mui-switch>
|
|
567
|
-
`}set disabled(t){const e=this.shadowRoot.querySelector("mui-switch");e&&(e.disabled=t)}get disabled(){const t=this.shadowRoot.querySelector("mui-switch");return t?t.disabled:!1}}customElements.define("dark-mode-toggle",y);document.querySelector("#app").innerHTML=`
|
|
568
|
-
<mui-container small>
|
|
569
|
-
<mui-v-stack space="var(--space-600)" alignX="center">
|
|
570
|
-
<create-mui-app-logo color="var(--logo-color)"></create-mui-app-logo>
|
|
571
|
-
<mui-body weight="medium" class="introduction">
|
|
572
|
-
Create fast, accessible, and themeable components with MUI styling,
|
|
573
|
-
without the need for React or other dependencies.
|
|
574
|
-
</mui-body>
|
|
575
|
-
<mui-h-stack space="var(--space-300)">
|
|
576
|
-
<mui-link
|
|
577
|
-
variant="primary"
|
|
578
|
-
href="https://muibook.com"
|
|
579
|
-
target="_blank"
|
|
580
|
-
>
|
|
581
|
-
Mui Docs
|
|
582
|
-
</mui-link>
|
|
583
|
-
<mui-link
|
|
584
|
-
variant="secondary"
|
|
585
|
-
href="https://github.com/michaeltrilford/create-mui-app"
|
|
586
|
-
target="_blank"
|
|
587
|
-
>
|
|
588
|
-
Get Started
|
|
589
|
-
</mui-link>
|
|
590
|
-
</mui-h-stack>
|
|
591
|
-
<mui-h-stack space="var(--space-300)" alignY="center">
|
|
592
|
-
<mui-body weight="bold">Toggle Theme</mui-body>
|
|
593
|
-
<dark-mode-toggle></dark-mode-toggle>
|
|
594
|
-
</mui-h-stack>
|
|
595
|
-
</mui-v-stack>
|
|
596
|
-
</mui-container>
|
|
597
|
-
`;
|