@muibook/components 1.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/LICENSE +21 -0
- package/dist/create-mui-app/assets/index-DfcB3F-s.js +597 -0
- package/dist/create-mui-app/create-mui-app.css +1 -0
- package/dist/create-mui-app/index.html +21 -0
- package/dist/esm/_redirects +1 -0
- package/dist/esm/favicon.ico +0 -0
- package/dist/esm/index/index.js +71 -0
- package/dist/esm/logo192.png +0 -0
- package/dist/esm/mui-accordion/block/index.js +168 -0
- package/dist/esm/mui-accordion/group/index.js +26 -0
- package/dist/esm/mui-accordion/index.js +3 -0
- package/dist/esm/mui-accordion/inline/index.js +96 -0
- package/dist/esm/mui-addon/index.js +46 -0
- package/dist/esm/mui-alert/index.js +109 -0
- package/dist/esm/mui-badge/index.js +43 -0
- package/dist/esm/mui-body/index.js +82 -0
- package/dist/esm/mui-button/index.js +296 -0
- package/dist/esm/mui-button-group/index.js +23 -0
- package/dist/esm/mui-card/body/index.js +48 -0
- package/dist/esm/mui-card/card/index.js +43 -0
- package/dist/esm/mui-card/footer/index.js +62 -0
- package/dist/esm/mui-card/header/index.js +29 -0
- package/dist/esm/mui-card/index.js +4 -0
- package/dist/esm/mui-carousel/controller/index.js +117 -0
- package/dist/esm/mui-carousel/index.js +2 -0
- package/dist/esm/mui-carousel/panel/index.js +29 -0
- package/dist/esm/mui-code/index.js +56 -0
- package/dist/esm/mui-container/index.js +57 -0
- package/dist/esm/mui-field/index.js +44 -0
- package/dist/esm/mui-file-upload/index.js +100 -0
- package/dist/esm/mui-grid/index.js +42 -0
- package/dist/esm/mui-heading/index.js +36 -0
- package/dist/esm/mui-icons/accessibility/index.js +55 -0
- package/dist/esm/mui-icons/add/index.js +55 -0
- package/dist/esm/mui-icons/attention/index.js +55 -0
- package/dist/esm/mui-icons/check/index.js +55 -0
- package/dist/esm/mui-icons/close/index.js +55 -0
- package/dist/esm/mui-icons/down-chevron/index.js +55 -0
- package/dist/esm/mui-icons/globe/index.js +55 -0
- package/dist/esm/mui-icons/grid/index.js +55 -0
- package/dist/esm/mui-icons/index.js +23 -0
- package/dist/esm/mui-icons/info/index.js +55 -0
- package/dist/esm/mui-icons/left-arrow/index.js +55 -0
- package/dist/esm/mui-icons/left-chevron/index.js +55 -0
- package/dist/esm/mui-icons/menu/index.js +55 -0
- package/dist/esm/mui-icons/message/index.js +55 -0
- package/dist/esm/mui-icons/moon/index.js +55 -0
- package/dist/esm/mui-icons/notification/index.js +55 -0
- package/dist/esm/mui-icons/right-chevron/index.js +55 -0
- package/dist/esm/mui-icons/stop/index.js +55 -0
- package/dist/esm/mui-icons/subtract/index.js +55 -0
- package/dist/esm/mui-icons/sun/index.js +55 -0
- package/dist/esm/mui-icons/toggle/index.js +72 -0
- package/dist/esm/mui-icons/up-arrow/index.js +55 -0
- package/dist/esm/mui-icons/up-chevron/index.js +55 -0
- package/dist/esm/mui-icons/warning/index.js +55 -0
- package/dist/esm/mui-image/index.js +49 -0
- package/dist/esm/mui-input/index.js +207 -0
- package/dist/esm/mui-link/index.js +263 -0
- package/dist/esm/mui-list/index.js +2 -0
- package/dist/esm/mui-list/item/index.js +65 -0
- package/dist/esm/mui-list/list/index.js +31 -0
- package/dist/esm/mui-message/index.js +90 -0
- package/dist/esm/mui-quote/index.js +27 -0
- package/dist/esm/mui-responsive/index.js +30 -0
- package/dist/esm/mui-rule/index.js +32 -0
- package/dist/esm/mui-select/index.js +204 -0
- package/dist/esm/mui-slat/index.js +21 -0
- package/dist/esm/mui-smart-card/index.js +335 -0
- package/dist/esm/mui-stack/hstack/index.js +52 -0
- package/dist/esm/mui-stack/index.js +2 -0
- package/dist/esm/mui-stack/vstack/index.js +52 -0
- package/dist/esm/mui-switch/index.js +143 -0
- package/dist/esm/mui-table/cell/index.js +64 -0
- package/dist/esm/mui-table/index.js +4 -0
- package/dist/esm/mui-table/row/index.js +26 -0
- package/dist/esm/mui-table/row-group/index.js +24 -0
- package/dist/esm/mui-table/table/index.js +21 -0
- package/dist/esm/mui-tabs/controller/index.js +23 -0
- package/dist/esm/mui-tabs/index.js +4 -0
- package/dist/esm/mui-tabs/item/index.js +61 -0
- package/dist/esm/mui-tabs/panel/index.js +32 -0
- package/dist/esm/mui-tabs/tab-bar/index.js +136 -0
- package/dist/esm/mui-utils/part-map/index.js +49 -0
- package/dist/muibook/_redirects +1 -0
- package/dist/muibook/assets/base-B4dO4n0A.js +198 -0
- package/dist/muibook/assets/components-YZ3tjmIt.js +122 -0
- package/dist/muibook/assets/contextual-D648xs_u.js +59 -0
- package/dist/muibook/assets/image-1080-Bg-8LoSs.js +1 -0
- package/dist/muibook/assets/index-0bBJZTXh.js +135 -0
- package/dist/muibook/assets/index-B4Lbi-ZX.js +82 -0
- package/dist/muibook/assets/index-BJJtzLti.js +144 -0
- package/dist/muibook/assets/index-BN6UEWFf.js +439 -0
- package/dist/muibook/assets/index-Bc68V_xw.js +140 -0
- package/dist/muibook/assets/index-BnpaoEYs.js +386 -0
- package/dist/muibook/assets/index-BrZBJGo2.js +4276 -0
- package/dist/muibook/assets/index-Bx-SU7T2.js +98 -0
- package/dist/muibook/assets/index-C10sNeH-.js +64 -0
- package/dist/muibook/assets/index-C4ZnvuXX.js +333 -0
- package/dist/muibook/assets/index-C7Tqc5BR.js +325 -0
- package/dist/muibook/assets/index-CAkZAmud.js +514 -0
- package/dist/muibook/assets/index-CCegrD2J.js +130 -0
- package/dist/muibook/assets/index-CHZJlumm.js +95 -0
- package/dist/muibook/assets/index-CPZ8jubJ.js +308 -0
- package/dist/muibook/assets/index-CSLqxg9p.js +73 -0
- package/dist/muibook/assets/index-CT3BsW8R.js +177 -0
- package/dist/muibook/assets/index-CYYG9dAN.js +270 -0
- package/dist/muibook/assets/index-CdghbWW3.js +42 -0
- package/dist/muibook/assets/index-CfD1WQYQ.js +106 -0
- package/dist/muibook/assets/index-Ch40uilB.js +52 -0
- package/dist/muibook/assets/index-CwAai54c.js +263 -0
- package/dist/muibook/assets/index-CyWt9f96.js +336 -0
- package/dist/muibook/assets/index-D8hXO6aa.js +131 -0
- package/dist/muibook/assets/index-DBkw7VLa.js +431 -0
- package/dist/muibook/assets/index-DI0vNTNv.js +56 -0
- package/dist/muibook/assets/index-DNImaJPY.js +96 -0
- package/dist/muibook/assets/index-DP6CCnt0.js +257 -0
- package/dist/muibook/assets/index-DR5X8zCc.js +67 -0
- package/dist/muibook/assets/index-DZQ8pS6y.js +133 -0
- package/dist/muibook/assets/index-DlZ1b9ZK.js +233 -0
- package/dist/muibook/assets/index-DwnvCJk0.js +177 -0
- package/dist/muibook/assets/index-_4AZFkzS.js +328 -0
- package/dist/muibook/assets/index-dkW0Vbeg.js +429 -0
- package/dist/muibook/assets/index-ehE10GAP.js +40 -0
- package/dist/muibook/assets/index-icuV1guL.js +69 -0
- package/dist/muibook/assets/index-qOE8f0sK.js +72 -0
- package/dist/muibook/assets/layout-BT0xIYa9.js +184 -0
- package/dist/muibook/assets/mui-D6S1tQ24.js +1 -0
- package/dist/muibook/assets/mui-logo-mobile-DuEMz_jq.js +31 -0
- package/dist/muibook/assets/semantic-cbNjeY5p.js +111 -0
- package/dist/muibook/assets/spacing-DY3cAXq0.js +82 -0
- package/dist/muibook/assets/surface-CMaW9FgJ.js +148 -0
- package/dist/muibook/assets/text-TVCTYde0.js +130 -0
- package/dist/muibook/assets/visual-B_21dq90.js +96 -0
- 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 +13 -0
- 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 +38 -0
- package/dist/muibook/logo192.png +0 -0
- package/dist/muibook/mui-tokens.jpg +0 -0
- package/dist/muibook/muibook.css +1 -0
- package/dist/muibook/premier.png +0 -0
- package/dist/muibook/ruby.svg +13 -0
- package/dist/muibook/sapphire.png +0 -0
- package/dist/muibook/sapphire.svg +13 -0
- package/dist/muibook/snowy-mint.png +0 -0
- package/dist/types/components/mui-accordion/block/index.d.ts +2 -0
- package/dist/types/components/mui-accordion/group/index.d.ts +1 -0
- package/dist/types/components/mui-accordion/index.d.ts +3 -0
- package/dist/types/components/mui-accordion/inline/index.d.ts +2 -0
- package/dist/types/components/mui-accordion/mui-accordion-block/index.d.ts +2 -0
- package/dist/types/components/mui-accordion/mui-accordion-group/index.d.ts +1 -0
- package/dist/types/components/mui-accordion/mui-accordion-inline/index.d.ts +2 -0
- package/dist/types/components/mui-addon/index.d.ts +1 -0
- package/dist/types/components/mui-alert/index.d.ts +1 -0
- package/dist/types/components/mui-badge/index.d.ts +1 -0
- package/dist/types/components/mui-body/index.d.ts +1 -0
- package/dist/types/components/mui-button/index.d.ts +1 -0
- package/dist/types/components/mui-button-group/index.d.ts +1 -0
- package/dist/types/components/mui-card/body/index.d.ts +1 -0
- package/dist/types/components/mui-card/card/index.d.ts +1 -0
- package/dist/types/components/mui-card/footer/index.d.ts +1 -0
- package/dist/types/components/mui-card/header/index.d.ts +1 -0
- package/dist/types/components/mui-card/index.d.ts +4 -0
- package/dist/types/components/mui-carousel/controller/index.d.ts +1 -0
- package/dist/types/components/mui-carousel/index.d.ts +2 -0
- package/dist/types/components/mui-carousel/panel/index.d.ts +1 -0
- package/dist/types/components/mui-code/index.d.ts +1 -0
- package/dist/types/components/mui-container/index.d.ts +1 -0
- package/dist/types/components/mui-field/index.d.ts +1 -0
- package/dist/types/components/mui-file-upload/index.d.ts +1 -0
- package/dist/types/components/mui-grid/index.d.ts +1 -0
- package/dist/types/components/mui-heading/index.d.ts +1 -0
- package/dist/types/components/mui-icons/accessibility.d.ts +1 -0
- package/dist/types/components/mui-icons/add.d.ts +1 -0
- package/dist/types/components/mui-icons/attention.d.ts +1 -0
- package/dist/types/components/mui-icons/check.d.ts +1 -0
- package/dist/types/components/mui-icons/chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/close.d.ts +1 -0
- package/dist/types/components/mui-icons/down-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/globe.d.ts +1 -0
- package/dist/types/components/mui-icons/grid.d.ts +1 -0
- package/dist/types/components/mui-icons/index.d.ts +23 -0
- package/dist/types/components/mui-icons/info.d.ts +1 -0
- package/dist/types/components/mui-icons/left-arrow.d.ts +1 -0
- package/dist/types/components/mui-icons/left-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/menu.d.ts +1 -0
- package/dist/types/components/mui-icons/message.d.ts +1 -0
- package/dist/types/components/mui-icons/moon.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-add.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-down-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-moon.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-right-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/mui-icon-sun.d.ts +1 -0
- package/dist/types/components/mui-icons/notification.d.ts +1 -0
- package/dist/types/components/mui-icons/right-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/stop.d.ts +1 -0
- package/dist/types/components/mui-icons/subtract.d.ts +1 -0
- package/dist/types/components/mui-icons/sun.d.ts +1 -0
- package/dist/types/components/mui-icons/toggle.d.ts +1 -0
- package/dist/types/components/mui-icons/up-arrow.d.ts +1 -0
- package/dist/types/components/mui-icons/up-chevron.d.ts +1 -0
- package/dist/types/components/mui-icons/warning.d.ts +1 -0
- package/dist/types/components/mui-image/index.d.ts +1 -0
- package/dist/types/components/mui-input/index.d.ts +1 -0
- package/dist/types/components/mui-link/index.d.ts +1 -0
- package/dist/types/components/mui-list/index.d.ts +2 -0
- package/dist/types/components/mui-list/item/index.d.ts +1 -0
- package/dist/types/components/mui-list/list/index.d.ts +1 -0
- package/dist/types/components/mui-message/index.d.ts +1 -0
- package/dist/types/components/mui-quote/index.d.ts +1 -0
- package/dist/types/components/mui-responsive/index.d.ts +1 -0
- package/dist/types/components/mui-rule/index.d.ts +1 -0
- package/dist/types/components/mui-select/index.d.ts +1 -0
- package/dist/types/components/mui-slat/index.d.ts +1 -0
- package/dist/types/components/mui-smart-card/index.d.ts +1 -0
- package/dist/types/components/mui-stack/hstack/index.d.ts +1 -0
- package/dist/types/components/mui-stack/index.d.ts +2 -0
- package/dist/types/components/mui-stack/mui-hstack/index.d.ts +1 -0
- package/dist/types/components/mui-stack/mui-vstack/index.d.ts +1 -0
- package/dist/types/components/mui-stack/vstack/index.d.ts +1 -0
- package/dist/types/components/mui-switch/index.d.ts +1 -0
- package/dist/types/components/mui-table/cell/index.d.ts +1 -0
- package/dist/types/components/mui-table/index.d.ts +4 -0
- package/dist/types/components/mui-table/row/index.d.ts +1 -0
- package/dist/types/components/mui-table/row/row.d.ts +1 -0
- package/dist/types/components/mui-table/row-group/index.d.ts +1 -0
- package/dist/types/components/mui-table/table/index.d.ts +1 -0
- package/dist/types/components/mui-tabs/controller/index.d.ts +1 -0
- package/dist/types/components/mui-tabs/index.d.ts +4 -0
- package/dist/types/components/mui-tabs/item/index.d.ts +1 -0
- package/dist/types/components/mui-tabs/panel/index.d.ts +1 -0
- package/dist/types/components/mui-tabs/tab-bar/index.d.ts +1 -0
- package/dist/types/create-app/index.d.ts +15 -0
- package/dist/types/create-mui-app/index.d.ts +15 -0
- package/dist/types/index.d.ts +68 -0
- package/dist/types/muibook/index.d.ts +93 -0
- package/dist/types/utils/part-map/index.d.ts +3 -0
- package/package.json +345 -0
- package/readme.md +84 -0
|
@@ -0,0 +1,4276 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CwAai54c.js","assets/mui-logo-mobile-DuEMz_jq.js","assets/index-DwnvCJk0.js","assets/index-CCegrD2J.js","assets/mui-D6S1tQ24.js","assets/index-Ch40uilB.js","assets/image-1080-Bg-8LoSs.js","assets/index-BnpaoEYs.js","assets/index-DBkw7VLa.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function e(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=e(s);fetch(s.href,o)}})();document.addEventListener("DOMContentLoaded",()=>{document.body.addEventListener("keydown",r=>{r.key==="Tab"&&(document.body.dataset.userIsTabbing="true")}),document.body.addEventListener("mousedown",()=>{delete document.body.dataset.userIsTabbing})});const x=()=>{const r=document.getElementById("loader"),t=()=>{document.startViewTransition?document.startViewTransition(()=>{r&&(r.style.opacity="0")}):r&&(r.style.opacity="0"),setTimeout(()=>{r&&(r.style.display="none")},1e3)};document.readyState==="complete"?t():window.addEventListener("load",t)};x();const A=()=>{const r=document.querySelector("app-navbar-skip");if(r&&r.shadowRoot){const e=r.shadowRoot.querySelector(".skip-to-main");e&&(e.addEventListener("click",i=>{i.preventDefault();const s=document.querySelector("app-container");console.log("skipLink clicked, appContainer:",s),s&&(s.focus(),s.classList.add("focused"))}),e.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),e.click())}))}const t=document.querySelector("app-container");t&&t.addEventListener("blur",e=>{e.target&&e.target.classList&&e.target.classList.remove("focused")})};window.addEventListener("load",()=>{A()});class E 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
3
|
+
<style>
|
|
4
|
+
:host {
|
|
5
|
+
width: ${a};
|
|
6
|
+
height: ${a};
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
fill: ${s};
|
|
11
|
+
}
|
|
12
|
+
svg {
|
|
13
|
+
width: 100%;
|
|
14
|
+
display: block;
|
|
15
|
+
fill: inherit;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
|
|
19
|
+
<svg
|
|
20
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
21
|
+
viewBox="0 0 36 36"
|
|
22
|
+
>
|
|
23
|
+
<path
|
|
24
|
+
d="M17.992 35C8.65 35 1 27.35 1 18.008S8.65 1 17.992 1 35 8.666 35 18.008 27.334 35 17.992 35m0-4.932c6.686 0 12.06-5.39 12.06-12.06 0-6.686-5.39-12.06-12.06-12.06s-12.06 5.374-12.06 12.06c0 6.67 5.39 12.06 12.06 12.06m0-18.02a1.92 1.92 0 0 1-1.913-1.912c0-1.043.854-1.897 1.913-1.897s1.913.854 1.913 1.897a1.92 1.92 0 0 1-1.913 1.913m0 .98c2.102 0 5.058-.347 6.48-.584a3 3 0 0 1 .396-.032c.348 0 .743.285.743.822 0 .396-.221.727-.617.838-.458.142-3.825.522-4.236.6-.41.096-.664.443-.664.95 0 .758 0 3.192.174 4.314.158 1.091 1.454 6.418 1.518 6.655.142.569-.19 1.059-.775 1.059-.41 0-.711-.221-.838-.775-.252-1.074-1.17-4.757-1.454-5.642-.205-.633-.38-.87-.727-.87-.364 0-.506.237-.711.87-.285.9-1.201 4.568-1.47 5.642-.158.554-.427.775-.838.775-.585 0-.917-.49-.775-1.06.064-.236 1.344-5.563 1.518-6.654.19-1.122.221-3.556.19-4.315-.016-.506-.27-.853-.68-.948-.427-.08-3.778-.475-4.236-.6-.395-.096-.617-.444-.617-.839 0-.537.364-.822.743-.822.127 0 .269.016.395.032 1.423.237 4.395.585 6.481.585"
|
|
25
|
+
></path>
|
|
26
|
+
</svg>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
`)}}customElements.define("mui-icon-accessibility",E);class z 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
30
|
+
<style>
|
|
31
|
+
:host {
|
|
32
|
+
width: ${a};
|
|
33
|
+
height: ${a};
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
fill: ${s};
|
|
38
|
+
}
|
|
39
|
+
svg {
|
|
40
|
+
width: 100%;
|
|
41
|
+
display: block;
|
|
42
|
+
fill: inherit;
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
45
|
+
|
|
46
|
+
<svg
|
|
47
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
48
|
+
viewBox="0 0 36 36"
|
|
49
|
+
>
|
|
50
|
+
<path
|
|
51
|
+
d="M6 18.507a2.536 2.536 0 0 1 2.522-2.536h6.95V9.036A2.54 2.54 0 0 1 18.006 6.5a2.536 2.536 0 0 1 2.522 2.536v6.935h6.949A2.536 2.536 0 0 1 30 18.507a2.524 2.524 0 0 1-2.522 2.522h-6.95v6.949a2.524 2.524 0 0 1-2.521 2.522 2.527 2.527 0 0 1-2.536-2.522v-6.95H8.522A2.524 2.524 0 0 1 6 18.508"
|
|
52
|
+
></path>
|
|
53
|
+
</svg>
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
`)}}customElements.define("mui-icon-add",z);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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
57
|
+
<style>
|
|
58
|
+
:host {
|
|
59
|
+
width: ${a};
|
|
60
|
+
height: ${a};
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
fill: ${s};
|
|
65
|
+
}
|
|
66
|
+
svg {
|
|
67
|
+
width: 100%;
|
|
68
|
+
display: block;
|
|
69
|
+
fill: inherit;
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
72
|
+
|
|
73
|
+
<svg
|
|
74
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
75
|
+
viewBox="0 0 36 36"
|
|
76
|
+
>
|
|
77
|
+
<path
|
|
78
|
+
d="M13.75 32.5c-1.856 0-3.196-.697-4.279-1.954l-5.104-5.959C3.271 23.317 3 22.51 3 20.815v-5.63c0-1.695.27-2.501 1.367-3.772l5.104-5.945C10.554 4.197 11.894 3.5 13.75 3.5h8.502c1.855 0 3.235.67 4.278 1.968l4.86 5.945C32.553 12.834 33 13.49 33 15.185v5.63c0 1.695-.27 2.501-1.367 3.772l-5.104 5.959c-1.083 1.257-2.423 1.954-4.278 1.954zm4.277-12.723c1.07 0 1.692-.588 1.76-1.709l.244-5.084c.054-1.188-.772-1.981-2.031-1.981-1.245 0-2.071.793-2.004 1.981l.23 5.098c.068 1.093.704 1.695 1.801 1.695m0 5.138c1.205 0 2.112-.71 2.112-1.886 0-1.134-.893-1.858-2.112-1.858-1.218 0-2.139.71-2.139 1.858 0 1.175.92 1.886 2.14 1.886"
|
|
79
|
+
></path>
|
|
80
|
+
</svg>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
`)}}customElements.define("mui-icon-attention",L);class T 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
84
|
+
<style>
|
|
85
|
+
:host {
|
|
86
|
+
width: ${a};
|
|
87
|
+
height: ${a};
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
fill: ${s};
|
|
92
|
+
}
|
|
93
|
+
svg {
|
|
94
|
+
width: 100%;
|
|
95
|
+
display: block;
|
|
96
|
+
fill: inherit;
|
|
97
|
+
}
|
|
98
|
+
</style>
|
|
99
|
+
|
|
100
|
+
<svg
|
|
101
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
102
|
+
viewBox="0 0 36 36"
|
|
103
|
+
>
|
|
104
|
+
<path
|
|
105
|
+
d="M17.993 33C9.75 33 3 26.25 3 18.007S9.75 3 17.993 3 33 9.764 33 18.007 26.236 33 17.993 33m-1.52-7.908c.67 0 1.283-.349 1.673-.934l6.444-9.666c.279-.39.404-.809.404-1.185 0-.976-.864-1.688-1.827-1.688-.641 0-1.13.349-1.562 1.018l-5.16 8.145-2.218-2.636c-.39-.46-.822-.683-1.38-.683-.963 0-1.772.767-1.772 1.757 0 .46.126.823.516 1.27l3.152 3.71c.475.571 1.032.892 1.73.892"
|
|
106
|
+
></path>
|
|
107
|
+
</svg>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
`)}}customElements.define("mui-icon-check",T);class M 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
111
|
+
<style>
|
|
112
|
+
:host {
|
|
113
|
+
width: ${a};
|
|
114
|
+
height: ${a};
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
fill: ${s};
|
|
119
|
+
}
|
|
120
|
+
svg {
|
|
121
|
+
width: 100%;
|
|
122
|
+
display: block;
|
|
123
|
+
fill: inherit;
|
|
124
|
+
}
|
|
125
|
+
</style>
|
|
126
|
+
|
|
127
|
+
<svg
|
|
128
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
129
|
+
viewBox="0 0 36 36"
|
|
130
|
+
>
|
|
131
|
+
<path
|
|
132
|
+
d="M8.436 28.063c-.934-.933-.894-2.55-.027-3.405l6.169-6.168-6.169-6.154c-.867-.855-.894-2.459.027-3.392.933-.934 2.55-.894 3.405-.04l6.168 6.155 6.142-6.142c.908-.907 2.459-.894 3.393.04.933.92.946 2.484.039 3.392L21.44 18.49l6.142 6.155c.907.907.894 2.472-.04 3.405-.92.933-2.484.933-3.392.026l-6.142-6.154-6.168 6.167c-.855.855-2.472.894-3.405-.026"
|
|
133
|
+
></path>
|
|
134
|
+
</svg>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
`)}}customElements.define("mui-icon-close",M);class C 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
138
|
+
<style>
|
|
139
|
+
:host {
|
|
140
|
+
width: ${a};
|
|
141
|
+
height: ${a};
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
fill: ${s};
|
|
146
|
+
}
|
|
147
|
+
svg {
|
|
148
|
+
width: 100%;
|
|
149
|
+
display: block;
|
|
150
|
+
fill: inherit;
|
|
151
|
+
}
|
|
152
|
+
</style>
|
|
153
|
+
|
|
154
|
+
<svg
|
|
155
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
156
|
+
viewBox="0 0 36 36"
|
|
157
|
+
>
|
|
158
|
+
<path
|
|
159
|
+
d="M18 25.5c-.79 0-1.428-.269-2.091-.917L6.7 15.572C6.23 15.095 6 14.569 6 13.92c0-1.32 1.122-2.421 2.487-2.421.688 0 1.326.281 1.849.795l7.69 7.617 7.65-7.617c.524-.526 1.161-.795 1.837-.795 1.365 0 2.487 1.1 2.487 2.421 0 .648-.217 1.186-.701 1.638l-9.195 9.024c-.663.636-1.288.917-2.104.917"
|
|
160
|
+
></path>
|
|
161
|
+
</svg>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
`)}}customElements.define("mui-icon-down-chevron",C);class $ 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
165
|
+
<style>
|
|
166
|
+
:host {
|
|
167
|
+
width: ${a};
|
|
168
|
+
height: ${a};
|
|
169
|
+
display: inline-flex;
|
|
170
|
+
align-items: center;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
fill: ${s};
|
|
173
|
+
}
|
|
174
|
+
svg {
|
|
175
|
+
width: 100%;
|
|
176
|
+
display: block;
|
|
177
|
+
fill: inherit;
|
|
178
|
+
}
|
|
179
|
+
</style>
|
|
180
|
+
|
|
181
|
+
<svg
|
|
182
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
183
|
+
viewBox="0 0 36 36"
|
|
184
|
+
>
|
|
185
|
+
<path
|
|
186
|
+
d="M17.993 33.5C9.75 33.5 3 26.75 3 18.507S9.75 3.5 17.993 3.5 33 10.264 33 18.507 26.236 33.5 17.993 33.5M9.471 10.571c.6.405 1.381.753 2.288 1.046.641-1.743 1.534-3.166 2.566-4.184a11.8 11.8 0 0 0-4.854 3.138m12.19-3.138c1.046 1.018 1.925 2.455 2.58 4.184.907-.279 1.688-.628 2.288-1.032a11.73 11.73 0 0 0-4.868-3.152m-2.496.934v4.06c.948-.043 1.855-.14 2.705-.266-.697-1.8-1.66-3.18-2.705-3.793m-5.05 3.794c.865.126 1.772.223 2.707.265V8.367c-1.033.614-1.995 1.995-2.706 3.794m-7.726 5.16h4.24c.056-1.227.223-2.398.474-3.486-1.213-.39-2.245-.865-3.026-1.437a11.6 11.6 0 0 0-1.688 4.924m18.982 0h4.226a11.56 11.56 0 0 0-1.674-4.923c-.78.572-1.813 1.046-3.026 1.437.237 1.088.404 2.26.474 3.486m-12.371 0h3.822V14.77a26 26 0 0 1-3.39-.376c-.209.934-.362 1.924-.432 2.928m6.165 0h3.821a18 18 0 0 0-.432-2.928c-1.06.195-2.204.32-3.39.376zM6.389 19.666c.181 1.799.781 3.5 1.702 4.979.78-.558 1.813-1.046 3.012-1.423a22 22 0 0 1-.488-3.556zm6.611 0c.07 1.032.223 2.036.446 2.984a28 28 0 0 1 3.376-.362v-2.622zm6.165 2.622c1.185.055 2.329.18 3.389.362.223-.948.376-1.952.432-2.984h-3.821zm5.718.934c1.213.377 2.231.865 3.012 1.423a11.66 11.66 0 0 0 1.716-4.98h-4.24a19 19 0 0 1-.488 3.557m-5.718 1.409v4.016c1.032-.613 1.994-1.98 2.691-3.751-.85-.14-1.757-.223-2.691-.265m-5.035.265c.697 1.785 1.66 3.152 2.691 3.751V24.63a23 23 0 0 0-2.691.265m10.097.544c-.641 1.701-1.52 3.124-2.552 4.128a11.7 11.7 0 0 0 4.826-3.11c-.6-.405-1.367-.74-2.274-1.018M9.485 26.457a11.8 11.8 0 0 0 4.84 3.11c-1.046-1.004-1.91-2.427-2.566-4.128-.893.279-1.674.613-2.274 1.018"
|
|
187
|
+
></path>
|
|
188
|
+
</svg>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
`)}}customElements.define("mui-icon-globe",$);class _ 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
192
|
+
<style>
|
|
193
|
+
:host {
|
|
194
|
+
width: ${a};
|
|
195
|
+
height: ${a};
|
|
196
|
+
display: inline-flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
fill: ${s};
|
|
200
|
+
}
|
|
201
|
+
svg {
|
|
202
|
+
width: 100%;
|
|
203
|
+
display: block;
|
|
204
|
+
fill: inherit;
|
|
205
|
+
}
|
|
206
|
+
</style>
|
|
207
|
+
|
|
208
|
+
<svg
|
|
209
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
210
|
+
viewBox="0 0 36 36"
|
|
211
|
+
>
|
|
212
|
+
<path
|
|
213
|
+
d="M7.372 13.212C5.905 13.212 5 12.278 5 10.735V7.977C5 6.435 5.905 5.5 7.372 5.5h2.819c1.467 0 2.372.935 2.372 2.477v2.758c0 1.543-.905 2.477-2.372 2.477zm9.213 0c-1.467 0-2.372-.934-2.372-2.477V7.977c0-1.542.905-2.477 2.372-2.477h2.819c1.466 0 2.372.935 2.372 2.477v2.758c0 1.543-.906 2.477-2.372 2.477zm9.224 0c-1.467 0-2.372-.934-2.372-2.477V7.977c0-1.542.905-2.477 2.372-2.477h2.819C30.095 5.5 31 6.435 31 7.977v2.758c0 1.543-.905 2.477-2.372 2.477zm-18.437 9.15C5.905 22.362 5 21.416 5 19.885v-2.77c0-1.53.905-2.477 2.372-2.477h2.819c1.467 0 2.372.947 2.372 2.477v2.77c0 1.53-.905 2.477-2.372 2.477zm9.213 0c-1.467 0-2.372-.946-2.372-2.477v-2.77c0-1.53.905-2.477 2.372-2.477h2.819c1.466 0 2.372.947 2.372 2.477v2.77c0 1.53-.906 2.477-2.372 2.477zm9.224 0c-1.467 0-2.372-.946-2.372-2.477v-2.77c0-1.53.905-2.477 2.372-2.477h2.819c1.467 0 2.372.947 2.372 2.477v2.77c0 1.53-.905 2.477-2.372 2.477zM7.372 31.5C5.905 31.5 5 30.553 5 29.023v-2.758c0-1.543.905-2.489 2.372-2.489h2.819c1.467 0 2.372.947 2.372 2.489v2.758c0 1.53-.905 2.477-2.372 2.477zm9.213 0c-1.467 0-2.372-.947-2.372-2.477v-2.758c0-1.543.905-2.489 2.372-2.489h2.819c1.466 0 2.372.947 2.372 2.489v2.758c0 1.53-.906 2.477-2.372 2.477zm9.224 0c-1.467 0-2.372-.947-2.372-2.477v-2.758c0-1.543.905-2.489 2.372-2.489h2.819c1.467 0 2.372.947 2.372 2.489v2.758c0 1.53-.905 2.477-2.372 2.477z"
|
|
214
|
+
></path>
|
|
215
|
+
</svg>
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
`)}}customElements.define("mui-icon-grid",_);class S 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
219
|
+
<style>
|
|
220
|
+
:host {
|
|
221
|
+
width: ${a};
|
|
222
|
+
height: ${a};
|
|
223
|
+
display: inline-flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
justify-content: center;
|
|
226
|
+
fill: ${s};
|
|
227
|
+
}
|
|
228
|
+
svg {
|
|
229
|
+
width: 100%;
|
|
230
|
+
display: block;
|
|
231
|
+
fill: inherit;
|
|
232
|
+
}
|
|
233
|
+
</style>
|
|
234
|
+
|
|
235
|
+
<svg
|
|
236
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
237
|
+
viewBox="0 0 36 36"
|
|
238
|
+
>
|
|
239
|
+
<path
|
|
240
|
+
d="M17.993 33C9.75 33 3 26.25 3 18.007S9.75 3 17.993 3 33 9.764 33 18.007 26.236 33 17.993 33m.042-19.177c1.269 0 2.315-1.074 2.315-2.33 0-1.324-1.046-2.356-2.315-2.356a2.35 2.35 0 0 0-2.343 2.357c0 1.255 1.074 2.329 2.343 2.329m-2.748 12.064h5.97c.85 0 1.52-.6 1.52-1.492 0-.823-.67-1.479-1.52-1.479h-1.074v-5.37c0-1.185-.558-1.924-1.674-1.924H15.58c-.864 0-1.52.642-1.52 1.465 0 .892.656 1.492 1.52 1.492h1.255v4.337h-1.548c-.85 0-1.52.656-1.52 1.479 0 .892.67 1.492 1.52 1.492"
|
|
241
|
+
></path>
|
|
242
|
+
</svg>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
`)}}customElements.define("mui-icon-info",S);class R 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
246
|
+
<style>
|
|
247
|
+
:host {
|
|
248
|
+
width: ${a};
|
|
249
|
+
height: ${a};
|
|
250
|
+
display: inline-flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
fill: ${s};
|
|
254
|
+
}
|
|
255
|
+
svg {
|
|
256
|
+
width: 100%;
|
|
257
|
+
display: block;
|
|
258
|
+
fill: inherit;
|
|
259
|
+
}
|
|
260
|
+
</style>
|
|
261
|
+
|
|
262
|
+
<svg
|
|
263
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
264
|
+
viewBox="0 0 36 36"
|
|
265
|
+
>
|
|
266
|
+
<path
|
|
267
|
+
d="M5 18.5c0-.683.288-1.41.748-1.86l9.266-9.355c.518-.524 1.137-.785 1.741-.785 1.482 0 2.475 1.031 2.475 2.383 0 .784-.346 1.365-.82 1.816l-3.223 3.254-2.331 2.179 2.978-.16h12.533C29.95 15.972 31 16.99 31 18.5c0 1.525-1.05 2.542-2.633 2.542H15.834l-2.978-.16 2.33 2.18 3.224 3.24c.474.45.82 1.03.82 1.815 0 1.351-.993 2.383-2.475 2.383-.604 0-1.223-.276-1.74-.785l-9.267-9.34C5.288 19.923 5 19.182 5 18.5"
|
|
268
|
+
></path>
|
|
269
|
+
</svg>
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
`)}}customElements.define("mui-icon-left-arrow",R);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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
273
|
+
<style>
|
|
274
|
+
:host {
|
|
275
|
+
width: ${a};
|
|
276
|
+
height: ${a};
|
|
277
|
+
display: inline-flex;
|
|
278
|
+
align-items: center;
|
|
279
|
+
justify-content: center;
|
|
280
|
+
fill: ${s};
|
|
281
|
+
}
|
|
282
|
+
svg {
|
|
283
|
+
width: 100%;
|
|
284
|
+
display: block;
|
|
285
|
+
fill: inherit;
|
|
286
|
+
}
|
|
287
|
+
</style>
|
|
288
|
+
|
|
289
|
+
<svg
|
|
290
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
291
|
+
viewBox="0 0 36 36"
|
|
292
|
+
>
|
|
293
|
+
<path
|
|
294
|
+
d="M10.5 18.5c.013-.803.289-1.441.983-2.091L21.147 7.2c.485-.471 1.062-.701 1.757-.701 1.429 0 2.596 1.135 2.596 2.487 0 .676-.288 1.326-.852 1.849l-8.169 7.651 8.169 7.677c.55.523.852 1.16.852 1.85 0 1.364-1.167 2.486-2.596 2.486-.682 0-1.272-.217-1.757-.701l-9.664-9.208c-.694-.65-.983-1.3-.983-2.091"
|
|
295
|
+
></path>
|
|
296
|
+
</svg>
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
`)}}customElements.define("mui-icon-left-chevron",H);class I 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
300
|
+
<style>
|
|
301
|
+
:host {
|
|
302
|
+
width: ${a};
|
|
303
|
+
height: ${a};
|
|
304
|
+
display: inline-flex;
|
|
305
|
+
align-items: center;
|
|
306
|
+
justify-content: center;
|
|
307
|
+
fill: ${s};
|
|
308
|
+
}
|
|
309
|
+
svg {
|
|
310
|
+
width: 100%;
|
|
311
|
+
display: block;
|
|
312
|
+
fill: inherit;
|
|
313
|
+
}
|
|
314
|
+
</style>
|
|
315
|
+
|
|
316
|
+
<svg
|
|
317
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
318
|
+
viewBox="0 0 36 36"
|
|
319
|
+
>
|
|
320
|
+
<path
|
|
321
|
+
d="M6.114 21C4.53 21 3 19.63 3 18s1.531-3 3.114-3h23.773C31.537 15 33 16.37 33 18s-1.462 3-3.113 3zM6.114 12C4.53 12 3 10.63 3 9s1.531-3 3.114-3h23.773C31.537 6 33 7.37 33 9s-1.462 3-3.113 3zM6.114 30C4.53 30 3 28.63 3 27s1.531-3 3.114-3h23.773C31.537 24 33 25.37 33 27s-1.462 3-3.113 3z"
|
|
322
|
+
></path>
|
|
323
|
+
</svg>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
`)}}customElements.define("mui-icon-menu",I);class P 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
327
|
+
<style>
|
|
328
|
+
:host {
|
|
329
|
+
width: ${a};
|
|
330
|
+
height: ${a};
|
|
331
|
+
display: inline-flex;
|
|
332
|
+
align-items: center;
|
|
333
|
+
justify-content: center;
|
|
334
|
+
fill: ${s};
|
|
335
|
+
}
|
|
336
|
+
svg {
|
|
337
|
+
width: 100%;
|
|
338
|
+
display: block;
|
|
339
|
+
fill: inherit;
|
|
340
|
+
}
|
|
341
|
+
</style>
|
|
342
|
+
|
|
343
|
+
<svg
|
|
344
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
345
|
+
viewBox="0 0 36 36"
|
|
346
|
+
>
|
|
347
|
+
<path
|
|
348
|
+
d="M12.38 32c-1.45 0-2.341-.956-2.341-2.54v-2.542h-.93c-3.372 0-6.109-2.49-6.109-6.39V10.39C3 6.49 5.507 4 9.453 4h17.094C30.493 4 33 6.503 33 10.39v10.138c0 3.887-2.507 6.39-6.453 6.39h-6.873l-4.251 3.648C14.2 31.61 13.373 32 12.38 32m.942-4.29 3.92-3.798c.726-.692 1.133-.893 2.1-.893h6.9c1.87 0 2.825-.918 2.825-2.78v-9.56c0-1.861-.955-2.78-2.826-2.78H9.76c-1.871 0-2.826.919-2.826 2.78v9.56c0 1.862.955 2.78 2.826 2.78h2.252c.815 0 1.311.352 1.311 1.283zm-1.756-12.528c-1.107 0-1.616-.515-1.616-1.597v-1.887c0-1.082.509-1.585 1.616-1.585h4.582c1.095 0 1.617.503 1.617 1.585v1.887c0 1.082-.522 1.597-1.617 1.597zm9.61 4.768c-1.095 0-1.617-.503-1.617-1.585v-5.85c0-1.081.522-1.584 1.617-1.584h3.284c1.094 0 1.616.503 1.616 1.585v5.849c0 1.082-.522 1.585-1.617 1.585zm-8.515.817c-1.095 0-1.617-.503-1.617-1.597v-1.195c0-1.094.522-1.598 1.617-1.598h4.073c1.107 0 1.616.504 1.616 1.598v1.195c0 1.094-.51 1.597-1.616 1.597z"
|
|
349
|
+
></path>
|
|
350
|
+
</svg>
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
`)}}customElements.define("mui-icon-message",P);class O 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
354
|
+
<style>
|
|
355
|
+
:host {
|
|
356
|
+
width: ${a};
|
|
357
|
+
height: ${a};
|
|
358
|
+
display: inline-flex;
|
|
359
|
+
align-items: center;
|
|
360
|
+
justify-content: center;
|
|
361
|
+
fill: ${s};
|
|
362
|
+
}
|
|
363
|
+
svg {
|
|
364
|
+
width: 100%;
|
|
365
|
+
display: block;
|
|
366
|
+
fill: inherit;
|
|
367
|
+
}
|
|
368
|
+
</style>
|
|
369
|
+
|
|
370
|
+
<svg
|
|
371
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
372
|
+
viewBox="0 0 36 36"
|
|
373
|
+
>
|
|
374
|
+
<path
|
|
375
|
+
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"
|
|
376
|
+
></path>
|
|
377
|
+
</svg>
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
`)}}customElements.define("mui-icon-moon",O);class q 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
381
|
+
<style>
|
|
382
|
+
:host {
|
|
383
|
+
width: ${a};
|
|
384
|
+
height: ${a};
|
|
385
|
+
display: inline-flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
justify-content: center;
|
|
388
|
+
fill: ${s};
|
|
389
|
+
}
|
|
390
|
+
svg {
|
|
391
|
+
width: 100%;
|
|
392
|
+
display: block;
|
|
393
|
+
fill: inherit;
|
|
394
|
+
}
|
|
395
|
+
</style>
|
|
396
|
+
|
|
397
|
+
<svg
|
|
398
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
399
|
+
viewBox="0 0 36 36"
|
|
400
|
+
>
|
|
401
|
+
<path
|
|
402
|
+
d="M4 25.241c0-1.665 1.126-2.921 2.478-4.005 1.126-.899 1.312-2.55 1.696-5.34.437-4.362 2.226-7.653 5.486-8.816C14.35 5.216 15.966 4 18.007 4c2.027 0 3.644 1.216 4.333 3.08 3.26 1.163 5.049 4.454 5.486 8.816.384 2.79.57 4.441 1.696 5.34C30.874 22.32 32 23.576 32 25.241c0 1.626-1.14 2.71-2.902 2.71h-5.009C23.983 30.449 21.677 33 18.007 33c-3.684 0-5.99-2.551-6.096-5.05H6.902C5.14 27.95 4 26.868 4 25.242m5.075-1.084h17.73v-.132a5.1 5.1 0 0 1-1.762-1.507c-.768-.978-1.153-3.529-1.352-5.816-.291-4.044-1.709-5.67-3.418-6.12-.305-.079-.49-.211-.544-.647-.132-1.23-.755-1.943-1.722-1.943-.981 0-1.604.714-1.736 1.943-.053.436-.239.568-.544.647-1.709.45-3.127 2.076-3.418 6.12-.2 2.287-.57 4.838-1.352 5.816-.517.674-1.206 1.163-1.882 1.507zm6.732 3.794c.093 1.242.994 2.101 2.2 2.101 1.192 0 2.093-.859 2.186-2.101z"
|
|
403
|
+
></path>
|
|
404
|
+
</svg>
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
`)}}customElements.define("mui-icon-notification",q);class D 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
408
|
+
<style>
|
|
409
|
+
:host {
|
|
410
|
+
width: ${a};
|
|
411
|
+
height: ${a};
|
|
412
|
+
display: inline-flex;
|
|
413
|
+
align-items: center;
|
|
414
|
+
justify-content: center;
|
|
415
|
+
fill: ${s};
|
|
416
|
+
}
|
|
417
|
+
svg {
|
|
418
|
+
width: 100%;
|
|
419
|
+
display: block;
|
|
420
|
+
fill: inherit;
|
|
421
|
+
}
|
|
422
|
+
</style>
|
|
423
|
+
|
|
424
|
+
<svg
|
|
425
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
426
|
+
viewBox="0 0 36 36"
|
|
427
|
+
>
|
|
428
|
+
<path
|
|
429
|
+
d="M25.5 18.5c0 .79-.288 1.441-.983 2.091L14.853 29.8c-.498.484-1.075.701-1.77.701-1.416 0-2.583-1.122-2.583-2.487 0-.688.302-1.326.84-1.849l8.168-7.677-8.169-7.651c-.55-.523-.839-1.173-.839-1.85 0-1.351 1.167-2.486 2.583-2.486.708 0 1.272.23 1.77.701l9.664 9.208c.681.65.97 1.288.983 2.091"
|
|
430
|
+
></path>
|
|
431
|
+
</svg>
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
`)}}customElements.define("mui-icon-right-chevron",D);class N 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
435
|
+
<style>
|
|
436
|
+
:host {
|
|
437
|
+
width: ${a};
|
|
438
|
+
height: ${a};
|
|
439
|
+
display: inline-flex;
|
|
440
|
+
align-items: center;
|
|
441
|
+
justify-content: center;
|
|
442
|
+
fill: ${s};
|
|
443
|
+
}
|
|
444
|
+
svg {
|
|
445
|
+
width: 100%;
|
|
446
|
+
display: block;
|
|
447
|
+
fill: inherit;
|
|
448
|
+
}
|
|
449
|
+
</style>
|
|
450
|
+
|
|
451
|
+
<svg
|
|
452
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
453
|
+
viewBox="0 0 36 36"
|
|
454
|
+
>
|
|
455
|
+
<path
|
|
456
|
+
d="M17.992 35.5C8.65 35.5 1 27.85 1 18.508S8.65 1.5 17.992 1.5 35 9.166 35 18.508 27.334 35.5 17.992 35.5m0-4.932c6.686 0 12.06-5.39 12.06-12.06 0-6.686-5.39-12.06-12.06-12.06s-12.06 5.374-12.06 12.06c0 6.67 5.39 12.06 12.06 12.06m-3.92-6.37c-1.09 0-1.802-.648-1.802-1.675v-8.077c0-1.012.711-1.66 1.802-1.66h7.824c1.091 0 1.802.648 1.802 1.66v8.077c0 1.027-.711 1.675-1.802 1.675z"
|
|
457
|
+
></path>
|
|
458
|
+
</svg>
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
`)}}customElements.define("mui-icon-stop",N);class F 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
462
|
+
<style>
|
|
463
|
+
:host {
|
|
464
|
+
width: ${a};
|
|
465
|
+
height: ${a};
|
|
466
|
+
display: inline-flex;
|
|
467
|
+
align-items: center;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
fill: ${s};
|
|
470
|
+
}
|
|
471
|
+
svg {
|
|
472
|
+
width: 100%;
|
|
473
|
+
display: block;
|
|
474
|
+
fill: inherit;
|
|
475
|
+
}
|
|
476
|
+
</style>
|
|
477
|
+
|
|
478
|
+
<svg
|
|
479
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
480
|
+
viewBox="0 0 36 36"
|
|
481
|
+
>
|
|
482
|
+
<path
|
|
483
|
+
d="M7.698 21C6.327 21 5 19.859 5 18.5S6.327 16 7.698 16h20.604C29.732 16 31 17.141 31 18.5S29.733 21 28.302 21z"
|
|
484
|
+
></path>
|
|
485
|
+
</svg>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
`)}}customElements.define("mui-icon-subtract",F);class B 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
489
|
+
<style>
|
|
490
|
+
:host {
|
|
491
|
+
width: ${a};
|
|
492
|
+
height: ${a};
|
|
493
|
+
display: inline-flex;
|
|
494
|
+
align-items: center;
|
|
495
|
+
justify-content: center;
|
|
496
|
+
fill: ${s};
|
|
497
|
+
}
|
|
498
|
+
svg {
|
|
499
|
+
width: 100%;
|
|
500
|
+
display: block;
|
|
501
|
+
fill: inherit;
|
|
502
|
+
}
|
|
503
|
+
</style>
|
|
504
|
+
|
|
505
|
+
<svg
|
|
506
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
507
|
+
viewBox="0 0 36 36"
|
|
508
|
+
>
|
|
509
|
+
<path
|
|
510
|
+
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"
|
|
511
|
+
></path>
|
|
512
|
+
</svg>
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
`)}}customElements.define("mui-icon-sun",B);class V extends HTMLElement{static get observedAttributes(){return["variant"]}constructor(){super(),this.attachShadow({mode:"open"}),this.addEventListener("click",()=>{if(this.toggleAttribute("toggle"),!this.shadowRoot)return;const t=this.shadowRoot.querySelector("mui-button");t&&(t.blur(),requestAnimationFrame(()=>{t.focus({preventScroll:!0})}))}),this.addEventListener("keydown",t=>{t.code==="Space"&&(t.preventDefault(),this.click())})}connectedCallback(){this.hasAttribute("variant")||this.setAttribute("variant","primary"),this.render()}attributeChangedCallback(t,e,i){t==="variant"&&e!==i&&this.render()}render(){const t=this.getAttribute("variant")||"primary";this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
516
|
+
<style>
|
|
517
|
+
:host {
|
|
518
|
+
display: inline-flex;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
::slotted(*) {
|
|
522
|
+
position: absolute;
|
|
523
|
+
top: auto;
|
|
524
|
+
left: auto;
|
|
525
|
+
transform-origin: 50% 50%;
|
|
526
|
+
transition: var(--speed-200) ease-in-out;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
::slotted([slot="start"]) {
|
|
530
|
+
transform: scale(1);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
::slotted([slot="end"]) {
|
|
534
|
+
transform: scale(0);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
:host([toggle]) ::slotted([slot="start"]) {
|
|
538
|
+
transform: scale(0);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
:host([toggle]) ::slotted([slot="end"]) {
|
|
542
|
+
transform: scale(1);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
:host([rotate]) ::slotted([slot="end"]) {
|
|
546
|
+
transform: scale(0) rotate(0deg);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
:host([toggle][rotate]) ::slotted([slot="end"]) {
|
|
550
|
+
transform: scale(1) rotate(-360deg);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
</style>
|
|
554
|
+
|
|
555
|
+
<mui-button icon-only ${`variant="${t}"`}>
|
|
556
|
+
<slot name="start"></slot>
|
|
557
|
+
<slot name="end"></slot>
|
|
558
|
+
</mui-button>
|
|
559
|
+
`)}}customElements.define("mui-icon-toggle",V);class j 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
560
|
+
<style>
|
|
561
|
+
:host {
|
|
562
|
+
width: ${a};
|
|
563
|
+
height: ${a};
|
|
564
|
+
display: inline-flex;
|
|
565
|
+
align-items: center;
|
|
566
|
+
justify-content: center;
|
|
567
|
+
fill: ${s};
|
|
568
|
+
}
|
|
569
|
+
svg {
|
|
570
|
+
width: 100%;
|
|
571
|
+
display: block;
|
|
572
|
+
fill: inherit;
|
|
573
|
+
}
|
|
574
|
+
</style>
|
|
575
|
+
|
|
576
|
+
<svg
|
|
577
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
578
|
+
viewBox="0 0 36 36"
|
|
579
|
+
>
|
|
580
|
+
<path
|
|
581
|
+
d="M18 5.5c.683 0 1.41.288 1.86.748l9.356 9.266c.522.518.784 1.137.784 1.741 0 1.482-1.032 2.475-2.383 2.475-.784 0-1.365-.346-1.815-.82l-3.255-3.223-2.179-2.331.16 2.978v12.533c0 1.583-1.017 2.633-2.528 2.633-1.525 0-2.542-1.05-2.542-2.633V16.334l.16-2.978-2.18 2.33-3.24 3.224c-.45.474-1.03.82-1.815.82C7.03 19.73 6 18.737 6 17.255c0-.604.276-1.223.785-1.74l9.34-9.267c.451-.46 1.192-.748 1.875-.748"
|
|
582
|
+
></path>
|
|
583
|
+
</svg>
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
`)}}customElements.define("mui-icon-up-arrow",j);class U 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
587
|
+
<style>
|
|
588
|
+
:host {
|
|
589
|
+
width: ${a};
|
|
590
|
+
height: ${a};
|
|
591
|
+
display: inline-flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
justify-content: center;
|
|
594
|
+
fill: ${s};
|
|
595
|
+
}
|
|
596
|
+
svg {
|
|
597
|
+
width: 100%;
|
|
598
|
+
display: block;
|
|
599
|
+
fill: inherit;
|
|
600
|
+
}
|
|
601
|
+
</style>
|
|
602
|
+
|
|
603
|
+
<svg
|
|
604
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
605
|
+
viewBox="0 0 36 36"
|
|
606
|
+
>
|
|
607
|
+
<path
|
|
608
|
+
d="m6.701 21.44 9.208-9.01c.663-.649 1.3-.93 2.091-.93.816.012 1.441.293 2.104.93l9.195 9.01c.484.465.701.991.701 1.651 0 1.32-1.122 2.409-2.487 2.409a2.52 2.52 0 0 1-1.836-.782L18.026 17.1l-7.69 7.618c-.523.513-1.16.782-1.85.782C7.123 25.5 6 24.412 6 23.091c0-.648.23-1.186.701-1.65"
|
|
609
|
+
></path>
|
|
610
|
+
</svg>
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
`)}}customElements.define("mui-icon-up-chevron",U);class X 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"),s=e&&{default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)",o={"x-small":"1.6rem",small:"2.4rem",medium:"3.6rem",large:"4.8rem"},a=o[t]??o.small;this.classList.add("mui-icon"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
614
|
+
<style>
|
|
615
|
+
:host {
|
|
616
|
+
width: ${a};
|
|
617
|
+
height: ${a};
|
|
618
|
+
display: inline-flex;
|
|
619
|
+
align-items: center;
|
|
620
|
+
justify-content: center;
|
|
621
|
+
fill: ${s};
|
|
622
|
+
}
|
|
623
|
+
svg {
|
|
624
|
+
width: 100%;
|
|
625
|
+
display: block;
|
|
626
|
+
fill: inherit;
|
|
627
|
+
}
|
|
628
|
+
</style>
|
|
629
|
+
|
|
630
|
+
<svg
|
|
631
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
632
|
+
viewBox="0 0 36 36"
|
|
633
|
+
>
|
|
634
|
+
<path
|
|
635
|
+
d="M7.422 31.5C4.796 31.5 3 29.456 3 27.139c0-.736.193-1.472.58-2.168l10.6-18.29c.842-1.445 2.335-2.181 3.827-2.181s2.943.709 3.8 2.18L32.42 24.959c.4.695.58 1.445.58 2.18 0 2.318-1.796 4.362-4.408 4.362zM18.02 21.4c1.091 0 1.74-.585 1.796-1.703l.249-5.057c.069-1.185-.788-1.99-2.06-1.99-1.27 0-2.127.79-2.058 1.977l.249 5.097c.069 1.09.718 1.677 1.824 1.677m0 5.125c1.243 0 2.155-.708 2.155-1.867 0-1.145-.912-1.867-2.155-1.867-1.244 0-2.17.709-2.17 1.867 0 1.159.94 1.867 2.17 1.867"
|
|
636
|
+
></path>
|
|
637
|
+
</svg>
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
`)}}customElements.define("mui-icon-warning",X);const w={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(w).flat();function b(...r){return r.map(t=>w[t]||[]).flat().join(" ")}class Y 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=`
|
|
641
|
+
<style>
|
|
642
|
+
|
|
643
|
+
:host { display: inline-flex; }
|
|
644
|
+
|
|
645
|
+
a {
|
|
646
|
+
color: var(--link-text-color-default);
|
|
647
|
+
align-items: center;
|
|
648
|
+
justify-content: center;
|
|
649
|
+
cursor: pointer;
|
|
650
|
+
box-sizing: border-box;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/* Turned back on for focus-visible */
|
|
654
|
+
a:focus, a:active, a:hover { outline: var(--space-000); }
|
|
655
|
+
a:hover { color: var(--link-text-color-default-hover); }
|
|
656
|
+
a:focus { color: var(--link-text-color-default-focus); }
|
|
657
|
+
a:disabled { color: var(--link-text-color-default-disabled); cursor: not-allowed; }
|
|
658
|
+
a, a:before, a:after {box-sizing: border-box;}
|
|
659
|
+
a:focus-visible { outline: var(--outline-thick); }
|
|
660
|
+
|
|
661
|
+
:host([size="x-small"]) a {
|
|
662
|
+
font-size: var(--text-font-size-xs);
|
|
663
|
+
line-height: var(--text-line-height-xs);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
:host([size="small"]) a {
|
|
667
|
+
font-size: var(--text-font-size-s);
|
|
668
|
+
line-height: var(--text-line-height-s);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
:host([size="medium"]) a {
|
|
672
|
+
font-size: var(--text-font-size-m);
|
|
673
|
+
line-height: var(--text-line-height-m);
|
|
674
|
+
}
|
|
675
|
+
:host([size="large"]) a {
|
|
676
|
+
font-size: var(--text-font-size-l);
|
|
677
|
+
line-height: var(--text-line-height-l);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
:host([weight="regular"]) a { font-weight: var(--font-weight-regular); }
|
|
681
|
+
:host([weight="medium"]) a { font-weight: var(--font-weight-medium); }
|
|
682
|
+
:host([weight="bold"]) a { font-weight: var(--font-weight-bold); }
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
/* Button
|
|
687
|
+
========================================= */
|
|
688
|
+
|
|
689
|
+
:host([variant="primary"]) a,
|
|
690
|
+
:host([variant="secondary"]) a,
|
|
691
|
+
:host([variant="tertiary"]) a,
|
|
692
|
+
:host([variant="attention"]) a {
|
|
693
|
+
display: inline-block;
|
|
694
|
+
text-decoration: none;
|
|
695
|
+
padding: var(--space-200) var(--space-500);
|
|
696
|
+
border-radius: var(--action-radius);
|
|
697
|
+
font-size: var(--action-font-size);
|
|
698
|
+
font-weight: var(--action-font-weight);
|
|
699
|
+
line-height: var(--action-line-height);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
:host([variant="primary"]),
|
|
703
|
+
:host([variant="secondary"])
|
|
704
|
+
:host([variant="tertiary"]),
|
|
705
|
+
:host([variant="attention"]) { display: inline-block; }
|
|
706
|
+
|
|
707
|
+
/* Button Primary
|
|
708
|
+
========================================= */
|
|
709
|
+
|
|
710
|
+
:host([variant="primary"]) a {
|
|
711
|
+
background: var(--action-primary-background);
|
|
712
|
+
color: var(--action-primary-text-color);
|
|
713
|
+
border: var(--action-primary-stroke);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
:host([variant="primary"]) a:hover {
|
|
717
|
+
background: var(--action-primary-background-hover);
|
|
718
|
+
color: var(--action-primary-text-color-hover);
|
|
719
|
+
border: var(--action-primary-stroke-hover);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
:host([variant="primary"]) a:focus,
|
|
723
|
+
:host([variant="tertiary"]) a:focus-visible {
|
|
724
|
+
background: var(--action-primary-background-focus);
|
|
725
|
+
color: var(--action-primary-text-color-focus);
|
|
726
|
+
border: var(--action-primary-stroke-focus);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
:host([variant="primary"]) a:disabled {
|
|
730
|
+
background: var(--action-primary-background-disabled);
|
|
731
|
+
color: var(--action-primary-text-color-disabled);
|
|
732
|
+
border: var(--action-primary-stroke-disabled);
|
|
733
|
+
cursor: not-allowed;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
:host([variant="primary"]) a ::slotted(.mui-icon) { fill: var(--action-primary-text-color); }
|
|
737
|
+
:host([variant="primary"]) a:hover ::slotted(.mui-icon) { fill: var(--action-primary-text-color-hover); }
|
|
738
|
+
:host([variant="primary"]) a:focus ::slotted(.mui-icon) { fill: var(--action-primary-text-color-focus); }
|
|
739
|
+
:host([variant="primary"]) a:disabled ::slotted(.mui-icon) { fill: var(--action-primary-text-color-disabled); }
|
|
740
|
+
|
|
741
|
+
/* Button Secondary
|
|
742
|
+
========================================= */
|
|
743
|
+
:host([variant="secondary"]) a {
|
|
744
|
+
background: var(--action-secondary-background);
|
|
745
|
+
color: var(--action-secondary-text-color);
|
|
746
|
+
border: var(--action-secondary-stroke);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
:host([variant="secondary"]) a:hover {
|
|
750
|
+
background: var(--action-secondary-background-hover);
|
|
751
|
+
color: var(--action-secondary-text-color-hover);
|
|
752
|
+
border: var(--action-secondary-stroke-hover);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
:host([variant="secondary"]) a:focus,
|
|
756
|
+
:host([variant="secondary"]) a:focus-visible {
|
|
757
|
+
background: var(--action-secondary-background-focus);
|
|
758
|
+
color: var(--action-secondary-text-color-focus);
|
|
759
|
+
border: var(--action-secondary-stroke-focus);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
:host([variant="secondary"]) a:disabled {
|
|
763
|
+
background: var(--action-secondary-background-disabled);
|
|
764
|
+
color: var(--action-secondary-text-color-disabled);
|
|
765
|
+
border: var(--action-secondary-stroke-disabled);
|
|
766
|
+
cursor: not-allowed;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
:host([variant="secondary"]) a ::slotted(.mui-icon) { fill: var(--action-secondary-text-color); }
|
|
770
|
+
:host([variant="secondary"]) a:hover ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-hover); }
|
|
771
|
+
:host([variant="secondary"]) a:focus ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-focus); }
|
|
772
|
+
:host([variant="secondary"]) a:disabled ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-disabled); }
|
|
773
|
+
|
|
774
|
+
/* Button Tertiary
|
|
775
|
+
========================================= */
|
|
776
|
+
:host([variant="tertiary"]) a {
|
|
777
|
+
background: var(--action-tertiary-background);
|
|
778
|
+
color: var(--action-tertiary-text-color);
|
|
779
|
+
border: var(--action-tertiary-stroke);
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
:host([variant="tertiary"]) a:hover {
|
|
783
|
+
color: var(--action-tertiary-text-color-hover);
|
|
784
|
+
background: var(--action-tertiary-background-hover);
|
|
785
|
+
border: var(--action-tertiary-stroke-hover);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
:host([variant="tertiary"]) a:focus,
|
|
789
|
+
:host([variant="tertiary"]) a:focus-visible {
|
|
790
|
+
color: var(--action-tertiary-text-color-focus);
|
|
791
|
+
background: var(--action-tertiary-background-focus);
|
|
792
|
+
border: var(--action-tertiary-stroke-focus);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
:host([variant="tertiary"]) a:disabled {
|
|
796
|
+
background: var(--action-tertiary-background-disabled);
|
|
797
|
+
color: var(--action-tertiary-text-color-disabled);
|
|
798
|
+
border: var(--action-tertiary-stroke-disabled);
|
|
799
|
+
cursor: not-allowed;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
:host([variant="tertiary"]) a ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color); }
|
|
803
|
+
:host([variant="tertiary"]) a:hover ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-hover); }
|
|
804
|
+
:host([variant="tertiary"]) a:focus ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-focus); }
|
|
805
|
+
:host([variant="tertiary"]) a:disabled ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-disabled); }
|
|
806
|
+
|
|
807
|
+
/* Button Attention
|
|
808
|
+
========================================= */
|
|
809
|
+
:host([variant="attention"]) a {
|
|
810
|
+
background: var(--action-attention-background);
|
|
811
|
+
color: var(--action-attention-text-color);
|
|
812
|
+
border: var(--action-attention-stroke);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
:host([variant="attention"]) a:hover {
|
|
816
|
+
background: var(--action-attention-background-hover);
|
|
817
|
+
color: var(--action-attention-text-color-hover);
|
|
818
|
+
border: var(--action-attention-stroke-hover);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
:host([variant="attention"]) a:focus,
|
|
822
|
+
:host([variant="attention"]) a:focus-visible {
|
|
823
|
+
background: var(--action-attention-background-focus);
|
|
824
|
+
color: var(--action-attention-text-color-focus);
|
|
825
|
+
border: var(--action-attention-stroke-focus);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
:host([variant="attention"]) a:disabled {
|
|
829
|
+
background: var(--action-attention-background-disabled);
|
|
830
|
+
color: var(--action-attention-text-color-disabled);
|
|
831
|
+
border: var(--action-attention-stroke-disabled);
|
|
832
|
+
cursor: not-allowed;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
:host([variant="attention"]) a ::slotted(.mui-icon) { fill: var(--action-attention-text-color); }
|
|
836
|
+
:host([variant="attention"]) a:hover ::slotted(.mui-icon) { fill: var(--action-attention-text-color-hover); }
|
|
837
|
+
:host([variant="attention"]) a:focus ::slotted(.mui-icon) { fill: var(--action-attention-text-color-focus); }
|
|
838
|
+
:host([variant="attention"]) a:disabled ::slotted(.mui-icon) { fill: var(--action-attention-text-color-disabled); }
|
|
839
|
+
|
|
840
|
+
/* Icon only
|
|
841
|
+
========================================= */
|
|
842
|
+
:host([icon-only]) a {
|
|
843
|
+
display: flex;
|
|
844
|
+
justify-content: center;
|
|
845
|
+
align-items: center;
|
|
846
|
+
height: 44px;
|
|
847
|
+
width: 44px;
|
|
848
|
+
padding: var(--action-icon-only-padding);
|
|
849
|
+
}
|
|
850
|
+
/* ===================================== */
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
</style>
|
|
854
|
+
|
|
855
|
+
<a
|
|
856
|
+
part="${b("text","spacing","layout","visual")}"
|
|
857
|
+
target="${this.getAttribute("target")||"_self"}"
|
|
858
|
+
href="${this.getAttribute("href")||"#"}"
|
|
859
|
+
>
|
|
860
|
+
<slot></slot>
|
|
861
|
+
</a>
|
|
862
|
+
`;this.shadowRoot.innerHTML=e}waitForPartMap(){return new Promise(t=>{if(typeof b=="function")return t();const e=()=>{typeof b=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-link",Y);class W extends HTMLElement{static get observedAttributes(){return["onclick","type","aria-label","disabled","variant"]}constructor(){super(),this.attachShadow({mode:"open"})}async connectedCallback(){if(await this.waitForPartMap(),!this.shadowRoot)return;let e=`
|
|
863
|
+
<style>
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
:host {
|
|
867
|
+
display: inline-block;
|
|
868
|
+
}
|
|
869
|
+
button {
|
|
870
|
+
vertical-align: baseline;
|
|
871
|
+
border: none;
|
|
872
|
+
cursor: pointer;
|
|
873
|
+
width: auto;
|
|
874
|
+
border-radius: var(--action-radius);
|
|
875
|
+
padding: var(--action-padding);
|
|
876
|
+
text-decoration: none;
|
|
877
|
+
line-height: var(--action-line-height);
|
|
878
|
+
display: inline-block;
|
|
879
|
+
text-transform: none;
|
|
880
|
+
overflow: visible;
|
|
881
|
+
-webkit-appearance: button;
|
|
882
|
+
font-family: var(--font-family);
|
|
883
|
+
font-size: var(--action-font-size);
|
|
884
|
+
font-weight: var(--action-font-weight);
|
|
885
|
+
background: var(--action-primary-background);
|
|
886
|
+
color: var(--action-primary-text-color);
|
|
887
|
+
border: var(--action-primary-stroke);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
// Turned back on for focus-visible
|
|
891
|
+
button:focus, button:active, button:hover { outline: var(--space-000); }
|
|
892
|
+
|
|
893
|
+
button:hover {
|
|
894
|
+
background: var(--action-primary-background-hover);
|
|
895
|
+
color: var(--action-primary-text-color-hover);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
button:focus {
|
|
899
|
+
background: var(--action-primary-background-focus);
|
|
900
|
+
color: var(--action-primary-text-color-focus);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
button:disabled {
|
|
904
|
+
background: var(--action-primary-background-disabled);
|
|
905
|
+
color: var(--action-primary-text-color-disabled);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
button, button:before, button:after {box-sizing: border-box;}
|
|
909
|
+
|
|
910
|
+
button:focus-visible {
|
|
911
|
+
outline: var(--outline-thick);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/* Primary
|
|
915
|
+
========================================= */
|
|
916
|
+
:host([variant="primary"]) button {
|
|
917
|
+
background: var(--action-primary-background);
|
|
918
|
+
color: var(--action-primary-text-color);
|
|
919
|
+
border: var(--action-primary-stroke);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
:host([variant="primary"]) button:hover {
|
|
923
|
+
background: var(--action-primary-background-hover);
|
|
924
|
+
color: var(--action-primary-text-color-hover);
|
|
925
|
+
border: var(--action-primary-stroke-hover);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
:host([variant="primary"]) button:focus {
|
|
929
|
+
background: var(--action-primary-background-focus);
|
|
930
|
+
color: var(--action-primary-text-color-focus);
|
|
931
|
+
border: var(--action-primary-stroke-focus);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
:host([variant="primary"]) button:disabled {
|
|
935
|
+
background: var(--action-primary-background-disabled);
|
|
936
|
+
color: var(--action-primary-text-color-disabled);
|
|
937
|
+
border: var(--action-primary-stroke-disabled);
|
|
938
|
+
cursor: not-allowed;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
:host([variant="primary"]) button ::slotted(.mui-icon) { fill: var(--action-primary-text-color); }
|
|
942
|
+
:host([variant="primary"]) button:hover ::slotted(.mui-icon) { fill: var(--action-primary-text-color-hover); }
|
|
943
|
+
:host([variant="primary"]) button:focus ::slotted(.mui-icon) { fill: var(--action-primary-text-color-focus); }
|
|
944
|
+
:host([variant="primary"]) button:disabled ::slotted(.mui-icon) { fill: var(--action-primary-text-color-disabled); }
|
|
945
|
+
|
|
946
|
+
/* Secondary
|
|
947
|
+
========================================= */
|
|
948
|
+
|
|
949
|
+
:host([variant="secondary"]) button {
|
|
950
|
+
background: var(--action-secondary-background);
|
|
951
|
+
color: var(--action-secondary-text-color);
|
|
952
|
+
border: var(--action-secondary-stroke);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
:host([variant="secondary"]) button:hover {
|
|
956
|
+
background: var(--action-secondary-background-hover);
|
|
957
|
+
color: var(--action-secondary-text-color-hover);
|
|
958
|
+
border: var(--action-secondary-stroke-hover);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
:host([variant="secondary"]) button:focus {
|
|
962
|
+
background: var(--action-secondary-background-focus);
|
|
963
|
+
color: var(--action-secondary-text-color-focus);
|
|
964
|
+
border: var(--action-secondary-stroke-focus);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
:host([variant="secondary"]) button:disabled {
|
|
968
|
+
background: var(--action-secondary-background-disabled);
|
|
969
|
+
color: var(--action-secondary-text-color-disabled);
|
|
970
|
+
border: var(--action-secondary-stroke-disabled);
|
|
971
|
+
cursor: not-allowed;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
:host([variant="secondary"]) button ::slotted(.mui-icon) { fill: var(--action-secondary-text-color); }
|
|
975
|
+
:host([variant="secondary"]) button:hover ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-hover); }
|
|
976
|
+
:host([variant="secondary"]) button:focus ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-focus); }
|
|
977
|
+
:host([variant="secondary"]) button:disabled ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-disabled); }
|
|
978
|
+
|
|
979
|
+
/* Tertiary
|
|
980
|
+
========================================= */
|
|
981
|
+
|
|
982
|
+
:host([variant="tertiary"]) button {
|
|
983
|
+
background: var(--action-tertiary-background);
|
|
984
|
+
color: var(--action-tertiary-text-color);
|
|
985
|
+
border: var(--action-tertiary-stroke);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
:host([variant="tertiary"]) button:hover {
|
|
989
|
+
background: var(--action-tertiary-background-hover);
|
|
990
|
+
color: var(--action-tertiary-text-color-hover);
|
|
991
|
+
border: var(--action-tertiary-stroke-hover);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
:host([variant="tertiary"]) button:focus {
|
|
995
|
+
background: var(--action-tertiary-background-focus);
|
|
996
|
+
color: var(--action-tertiary-text-color-focus);
|
|
997
|
+
border: var(--action-tertiary-stroke-focus);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
:host([variant="tertiary"]) button:disabled {
|
|
1001
|
+
background: var(--action-tertiary-background-disabled);
|
|
1002
|
+
color: var(--action-tertiary-text-color-disabled);
|
|
1003
|
+
border: var(--action-tertiary-stroke-disabled);
|
|
1004
|
+
cursor: not-allowed;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
:host([variant="tertiary"]) button ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color); }
|
|
1008
|
+
:host([variant="tertiary"]) button:hover ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-hover); }
|
|
1009
|
+
:host([variant="tertiary"]) button:focus ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-focus); }
|
|
1010
|
+
:host([variant="tertiary"]) button:disabled ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-disabled); }
|
|
1011
|
+
|
|
1012
|
+
/* Attention
|
|
1013
|
+
========================================= */
|
|
1014
|
+
:host([variant="attention"]) button {
|
|
1015
|
+
background: var(--action-attention-background);
|
|
1016
|
+
color: var(--action-attention-text-color);
|
|
1017
|
+
border: var(--action-attention-stroke);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
:host([variant="attention"]) button:hover {
|
|
1021
|
+
background: var(--action-attention-background-hover);
|
|
1022
|
+
color: var(--action-attention-text-color-hover);
|
|
1023
|
+
border: var(--action-attention-stroke-hover);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
:host([variant="attention"]) button:focus {
|
|
1027
|
+
background: var(--action-attention-background-focus);
|
|
1028
|
+
color: var(--action-attention-text-color-focus);
|
|
1029
|
+
border: var(--action-attention-stroke-focus);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
:host([variant="attention"]) button:disabled {
|
|
1033
|
+
background: var(--action-attention-background-disabled);
|
|
1034
|
+
color: var(--action-attention-text-color-disabled);
|
|
1035
|
+
border: var(--action-attention-stroke-disabled);
|
|
1036
|
+
cursor: not-allowed;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
:host([variant="attention"]) button ::slotted(.mui-icon) { fill: var(--action-attention-text-color); }
|
|
1040
|
+
:host([variant="attention"]) button:hover ::slotted(.mui-icon) { fill: var(--action-attention-text-color-hover); }
|
|
1041
|
+
:host([variant="attention"]) button:focus ::slotted(.mui-icon) { fill: var(--action-attention-text-color-focus); }
|
|
1042
|
+
:host([variant="attention"]) button:disabled ::slotted(.mui-icon) { fill: var(--action-attention-text-color-disabled); }
|
|
1043
|
+
|
|
1044
|
+
/* Icon only
|
|
1045
|
+
========================================= */
|
|
1046
|
+
:host([icon-only]) button {
|
|
1047
|
+
display: flex;
|
|
1048
|
+
justify-content: center;
|
|
1049
|
+
align-items: center;
|
|
1050
|
+
height: 44px;
|
|
1051
|
+
width: 44px;
|
|
1052
|
+
padding: var(--action-icon-only-padding);
|
|
1053
|
+
}
|
|
1054
|
+
/* ===================================== */
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
/* ========================================================================== */
|
|
1058
|
+
/* STYLE ADJUSTMENTS WHEN BUTTON IS SLOTTED WITHIN INPUT */
|
|
1059
|
+
/* Related styles unique to this usage is found in the mui-input/index.js */
|
|
1060
|
+
/* ========================================================================== */
|
|
1061
|
+
|
|
1062
|
+
/* ========================================================================== */
|
|
1063
|
+
/* BEFORE: When a BUTTON has slot="before" applied to host for INPUT usage */
|
|
1064
|
+
/* ========================================================================== */
|
|
1065
|
+
|
|
1066
|
+
:host([slot="before"]) button {
|
|
1067
|
+
border: var(--border-thin);
|
|
1068
|
+
min-height: 4.4rem;
|
|
1069
|
+
background: var(--action-secondary-background);
|
|
1070
|
+
color: var(--action-secondary-text-color);
|
|
1071
|
+
border-color: var(--form-default-border-color);
|
|
1072
|
+
border-right: none;
|
|
1073
|
+
border-top-right-radius: var(--radius-000);
|
|
1074
|
+
border-bottom-right-radius: var(--radius-000);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
:host([slot="before"]) button:hover {
|
|
1078
|
+
background: var(--action-secondary-background-hover);
|
|
1079
|
+
color: var(--action-secondary-text-color-hover);
|
|
1080
|
+
border-color: var(--form-default-border-color-hover);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/* ========================================================================== */
|
|
1084
|
+
/* AFTER: When a BUTTON has slot="after" applied to host for INPUT usage */
|
|
1085
|
+
/* ========================================================================== */
|
|
1086
|
+
|
|
1087
|
+
:host([slot="after"]) button {
|
|
1088
|
+
border: var(--border-thin);
|
|
1089
|
+
min-height: 4.4rem;
|
|
1090
|
+
background: var(--action-secondary-background);
|
|
1091
|
+
color: var(--action-secondary-text-color);
|
|
1092
|
+
border-color: var(--form-default-border-color);
|
|
1093
|
+
border-left: none;
|
|
1094
|
+
border-top-left-radius: var(--radius-000);
|
|
1095
|
+
border-bottom-left-radius: var(--radius-000);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
:host([slot="after"]) button:hover,
|
|
1099
|
+
:host([slot="after"]) button:focus {
|
|
1100
|
+
background: var(--action-secondary-background-hover);
|
|
1101
|
+
color: var(--action-secondary-text-color-hover);
|
|
1102
|
+
border-color: var(--form-default-border-color-hover);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/* ========================================================================== */
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
</style>
|
|
1109
|
+
|
|
1110
|
+
<button
|
|
1111
|
+
part="${b("text","spacing","layout","visual")}"
|
|
1112
|
+
onclick="${this.getAttribute("onclick")}"
|
|
1113
|
+
type="${this.getAttribute("type")||"button"}"
|
|
1114
|
+
aria-label="${this.getAttribute("aria-label")||""}"
|
|
1115
|
+
${this.hasAttribute("disabled")?"disabled":""}
|
|
1116
|
+
>
|
|
1117
|
+
<slot></slot>
|
|
1118
|
+
</button>
|
|
1119
|
+
|
|
1120
|
+
`;this.shadowRoot.innerHTML=e}waitForPartMap(){return new Promise(t=>{if(typeof b=="function")return t();const e=()=>{typeof b=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-button",W);class G extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=`
|
|
1121
|
+
<style>
|
|
1122
|
+
:host {
|
|
1123
|
+
display: flex;
|
|
1124
|
+
gap: var(--space-200);
|
|
1125
|
+
}
|
|
1126
|
+
:host([right]) {
|
|
1127
|
+
justify-content: flex-end;
|
|
1128
|
+
}
|
|
1129
|
+
</style>
|
|
1130
|
+
<slot></slot>`;this.shadowRoot&&(this.shadowRoot.innerHTML=t)}}customElements.define("mui-button-group",G);class J extends HTMLElement{static get observedAttributes(){return["size"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=this.getAttribute("size")||"x-small";this.setAttribute("size",e);const i=`
|
|
1131
|
+
:host {
|
|
1132
|
+
display: block;
|
|
1133
|
+
}
|
|
1134
|
+
:host([size="x-small"]) code {
|
|
1135
|
+
font-size: var(--text-font-size-xs);
|
|
1136
|
+
line-height: var(--text-line-height-xs);
|
|
1137
|
+
}
|
|
1138
|
+
:host([size="small"]) code {
|
|
1139
|
+
font-size: var(--text-font-size-s);
|
|
1140
|
+
line-height: var(--text-line-height-s);
|
|
1141
|
+
}
|
|
1142
|
+
:host([size="medium"]) code {
|
|
1143
|
+
font-size: var(--text-font-size-m);
|
|
1144
|
+
line-height: var(--text-line-height-m);
|
|
1145
|
+
}
|
|
1146
|
+
:host([size="large"]) code {
|
|
1147
|
+
font-size: var(--text-font-size-l);
|
|
1148
|
+
line-height: var(--text-line-height-l);
|
|
1149
|
+
}
|
|
1150
|
+
code {
|
|
1151
|
+
display: block;
|
|
1152
|
+
border-radius: inherit;
|
|
1153
|
+
font-family: monospace;
|
|
1154
|
+
color: var(--text-color);
|
|
1155
|
+
background: var(--surface-elevated-200);
|
|
1156
|
+
padding: var(--space-400) var(--space-500);
|
|
1157
|
+
box-sizing: border-box;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
@media (min-width: 600px) {
|
|
1161
|
+
code {
|
|
1162
|
+
padding: var(--space-500) var(--space-600);
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
`;t.innerHTML=`
|
|
1167
|
+
<style>${i}</style>
|
|
1168
|
+
<code><slot></slot></code>
|
|
1169
|
+
`}}customElements.define("mui-code",J);class Z extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot)return;let t=`
|
|
1170
|
+
|
|
1171
|
+
<style>
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
:host {
|
|
1175
|
+
display: flex;
|
|
1176
|
+
}
|
|
1177
|
+
figure {
|
|
1178
|
+
background: var(--surface-elevated-200);
|
|
1179
|
+
display: block;
|
|
1180
|
+
width: 100%;
|
|
1181
|
+
margin: var(--space-000);
|
|
1182
|
+
border-radius: var(--radius-300);
|
|
1183
|
+
overflow: hidden;
|
|
1184
|
+
}
|
|
1185
|
+
::slotted(img) {
|
|
1186
|
+
width: 100%;
|
|
1187
|
+
height: auto;
|
|
1188
|
+
display: block;
|
|
1189
|
+
border-style: none;
|
|
1190
|
+
-ms-interpolation-mode: bicubic;
|
|
1191
|
+
vertical-align: middle;
|
|
1192
|
+
}
|
|
1193
|
+
::slotted(figcaption) {
|
|
1194
|
+
padding: var(--space-500);
|
|
1195
|
+
color: var( --text-color);
|
|
1196
|
+
text-align: center;
|
|
1197
|
+
display: block;
|
|
1198
|
+
}
|
|
1199
|
+
</style>
|
|
1200
|
+
|
|
1201
|
+
<figure>
|
|
1202
|
+
<slot name="image"></slot>
|
|
1203
|
+
<slot name="caption"></slot>
|
|
1204
|
+
</figure>`;this.shadowRoot.innerHTML=t}}customElements.define("mui-image",Z);class K extends HTMLElement{constructor(){super(),this.partMap="",this.attachShadow({mode:"open"})}static get observedAttributes(){return["name","value","id","label","options","disabled","hide-label","variant"]}async connectedCallback(){await this.waitForPartMap(),this.partMap=b("text","visual"),this.render(),this.setupListener()}attributeChangedCallback(t,e){if(!this.shadowRoot)return;const i=this.shadowRoot.querySelector("select");t==="value"&&i&&(i.value=e||""),t==="disabled"&&i&&(e===null||e==="false"?i.removeAttribute("disabled"):i.setAttribute("disabled","")),["options","label","hide-label"].includes(t)&&(this.render(),this.setupListener())}setupListener(){if(!this.shadowRoot)return;const t=this.shadowRoot.querySelector("select");if(t){const e=t.cloneNode(!0);t.parentNode&&t.parentNode.replaceChild(e,t),e.addEventListener("change",i=>{const s=i.target;s&&this.dispatchEvent(new CustomEvent("change",{detail:{value:s.value},bubbles:!0,composed:!0}))})}}render(){if(!this.shadowRoot)return;const t=this.getAttribute("name")||"",e=this.getAttribute("id")||`mui-select-${Math.random().toString(36).substr(2,9)}`,i=this.getAttribute("label")||"",s=this.getAttribute("value")||"",o=this.hasAttribute("hide-label"),a=this.hasAttribute("disabled"),n=this.getAttribute("options")||"[]",l=this.getAttribute("aria-label")||"",c=this.getAttribute("variant")||"",h=c||"";o&&!i&&console.warn("mui-select Accessibility warning: When using 'hide-label', please provide a 'label' attribute so an 'aria-label' can be generated for screen reader support."),!i&&!l&&console.warn("mui-select Accessibility warning: A 'label' or 'aria-label' attribute is required for screen reader accessibility.");const d=o&&i?`aria-label="${i}"`:"";let u=[];try{u=JSON.parse(n)}catch(g){console.error("Invalid JSON in options attribute",g)}const p=u.map(g=>`<option value="${g.value}" ${g.value===s?"selected":""}>${g.label}</option>`).join(""),v=`
|
|
1205
|
+
<style>
|
|
1206
|
+
:host {
|
|
1207
|
+
display: inline-block;
|
|
1208
|
+
width: 100%;
|
|
1209
|
+
position: relative;
|
|
1210
|
+
}
|
|
1211
|
+
label {
|
|
1212
|
+
font-size: var(--text-font-size);
|
|
1213
|
+
font-weight: var(--font-weight-medium);
|
|
1214
|
+
margin-bottom: var(--space-100);
|
|
1215
|
+
color: var(--text-color);
|
|
1216
|
+
display: block;
|
|
1217
|
+
}
|
|
1218
|
+
select {
|
|
1219
|
+
min-height: 4.4rem;
|
|
1220
|
+
line-height: var(--text-line-height);
|
|
1221
|
+
padding: var(--space-200) var(--space-300);
|
|
1222
|
+
font-size: var(--text-font-size);
|
|
1223
|
+
border: var(--border-thin);
|
|
1224
|
+
border-color: var(--form-default-border-color);
|
|
1225
|
+
border-radius: var(--radius-100);
|
|
1226
|
+
color: var(--text-color);
|
|
1227
|
+
background: var(--input-background);
|
|
1228
|
+
width: 100%;
|
|
1229
|
+
box-sizing: border-box;
|
|
1230
|
+
appearance: none;
|
|
1231
|
+
}
|
|
1232
|
+
select:hover {
|
|
1233
|
+
border-color: var(--form-default-border-color-hover);
|
|
1234
|
+
}
|
|
1235
|
+
select:focus {
|
|
1236
|
+
outline: var(--outline-thick);
|
|
1237
|
+
}
|
|
1238
|
+
select:disabled {
|
|
1239
|
+
opacity: 0.4;
|
|
1240
|
+
background-color: var(--input-background-disabled);
|
|
1241
|
+
cursor: not-allowed;
|
|
1242
|
+
}
|
|
1243
|
+
select.success {
|
|
1244
|
+
color: var(--form-success-text-color);
|
|
1245
|
+
border-color: var(--form-success-border-color);
|
|
1246
|
+
box-shadow: 0 0 0 2px var(--form-success-border-color);
|
|
1247
|
+
}
|
|
1248
|
+
select.warning {
|
|
1249
|
+
color: var(--form-warning-text-color);
|
|
1250
|
+
border-color: var(--form-warning-border-color);
|
|
1251
|
+
box-shadow: 0 0 0 2px var(--form-warning-border-color);
|
|
1252
|
+
}
|
|
1253
|
+
select.error {
|
|
1254
|
+
color: var(--form-error-text-color);
|
|
1255
|
+
border-color: var(--form-error-border-color);
|
|
1256
|
+
box-shadow: 0 0 0 2px var(--form-error-border-color);
|
|
1257
|
+
}
|
|
1258
|
+
select.success:hover {
|
|
1259
|
+
color: var(--form-success-text-color-hover);
|
|
1260
|
+
border-color: var(--form-success-border-color-hover);
|
|
1261
|
+
box-shadow: 0 0 0 2px var(--form-success-border-color-hover);
|
|
1262
|
+
}
|
|
1263
|
+
select.warning:hover {
|
|
1264
|
+
color: var(--form-warning-text-color-hover);
|
|
1265
|
+
border-color: var(--form-warning-border-color-hover);
|
|
1266
|
+
box-shadow: 0 0 0 2px var(--form-warning-border-color-hover);
|
|
1267
|
+
}
|
|
1268
|
+
select.error:hover {
|
|
1269
|
+
color: var(--form-error-text-color-hover);
|
|
1270
|
+
border-color: var(--form-error-border-color-hover);
|
|
1271
|
+
box-shadow: 0 0 0 2px var(--form-error-border-color-hover);
|
|
1272
|
+
}
|
|
1273
|
+
.vh {
|
|
1274
|
+
position: absolute;
|
|
1275
|
+
width: 1px;
|
|
1276
|
+
height: 1px;
|
|
1277
|
+
margin: -1px;
|
|
1278
|
+
padding: 0;
|
|
1279
|
+
overflow: hidden;
|
|
1280
|
+
clip: rect(0 0 0 0);
|
|
1281
|
+
white-space: nowrap;
|
|
1282
|
+
border: 0;
|
|
1283
|
+
}
|
|
1284
|
+
.chevron {
|
|
1285
|
+
position: absolute;
|
|
1286
|
+
right: var(--space-300);
|
|
1287
|
+
top: 50%;
|
|
1288
|
+
transform: translateY(-50%);
|
|
1289
|
+
padding: var(--space-300);
|
|
1290
|
+
padding-left: var(--space-000);
|
|
1291
|
+
padding-right: var(--space-000);
|
|
1292
|
+
background: var(--input-background);
|
|
1293
|
+
box-shadow: -4px 0 4px 0 var(--input-background);
|
|
1294
|
+
pointer-events: none;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
/* ========================================================================== */
|
|
1298
|
+
/* STYLE ADJUSTMENTS WHEN SELECT IS SLOTTED WITHIN INPUT */
|
|
1299
|
+
/* Related styles unique to this usage is found in the mui-input/index.js */
|
|
1300
|
+
/* ========================================================================== */
|
|
1301
|
+
|
|
1302
|
+
/* ========================================================================== */
|
|
1303
|
+
/* BEFORE: When a SELECT has slot="before" applied to host for INPUT usage */
|
|
1304
|
+
/* ========================================================================== */
|
|
1305
|
+
|
|
1306
|
+
:host([slot="before"]) select {
|
|
1307
|
+
border-right: none;
|
|
1308
|
+
border-top-right-radius: var(--radius-000);
|
|
1309
|
+
border-bottom-right-radius: var(--radius-000);
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
/* ========================================================================== */
|
|
1313
|
+
/* AFTER: When a SELECT has slot="after" applied to host for INPUT usage */
|
|
1314
|
+
/* ========================================================================== */
|
|
1315
|
+
|
|
1316
|
+
:host([slot="after"]) select {
|
|
1317
|
+
border-left: none;
|
|
1318
|
+
border-top-left-radius: var(--radius-000);
|
|
1319
|
+
border-bottom-left-radius: var(--radius-000);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/* Ensure feedback styles appear above INPUT */
|
|
1323
|
+
select.success,
|
|
1324
|
+
select.warning,
|
|
1325
|
+
select.error {
|
|
1326
|
+
z-index: 1;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/* ========================================================================== */
|
|
1330
|
+
|
|
1331
|
+
</style>
|
|
1332
|
+
${i?`<label for="${e}" class="${o?"vh":""}">${i}</label>`:""}
|
|
1333
|
+
<select class="${h}" part="${this.partMap||""}" name="${t}" id="${e}" ${d} ${a?"disabled":""} >
|
|
1334
|
+
${p}
|
|
1335
|
+
</select>
|
|
1336
|
+
<mui-icon-down-chevron class="chevron" size="x-small"></mui-icon-down-chevron>
|
|
1337
|
+
`;this.shadowRoot.innerHTML=v}waitForPartMap(){return new Promise(t=>{if(typeof b=="function")return t();const e=()=>{typeof b=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-select",K);class Q extends HTMLElement{static get observedAttributes(){return["footer"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot)return;let t=`
|
|
1338
|
+
<style>
|
|
1339
|
+
:host {
|
|
1340
|
+
display: block;
|
|
1341
|
+
border-radius: var(--card-radius);
|
|
1342
|
+
background: var(--surface-elevated-100);
|
|
1343
|
+
}
|
|
1344
|
+
::slotted(*:last-child) {
|
|
1345
|
+
margin-bottom: 0;
|
|
1346
|
+
}
|
|
1347
|
+
::slotted(.inner-space-top) {
|
|
1348
|
+
padding-top: 0;
|
|
1349
|
+
}
|
|
1350
|
+
</style>
|
|
1351
|
+
<slot></slot>
|
|
1352
|
+
`;this.shadowRoot.innerHTML=t;const e=this.shadowRoot.querySelector("slot");e&&e.addEventListener("slotchange",()=>{const i=e.assignedElements(),s=i.some(a=>{var n;return((n=a.tagName)==null?void 0:n.toLowerCase())==="mui-card-header"}),o=i.find(a=>{var n;return((n=a.tagName)==null?void 0:n.toLowerCase())==="mui-card-body"});o&&(s?o.classList.add("inner-space-top"):o.classList.remove("inner-space-top"))})}}customElements.define("mui-card",Q);class tt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot)return;let t=`
|
|
1353
|
+
<style>
|
|
1354
|
+
:host {
|
|
1355
|
+
display: block;
|
|
1356
|
+
width: 100%;
|
|
1357
|
+
box-sizing: border-box;
|
|
1358
|
+
padding: var(--space-400) var(--space-500);
|
|
1359
|
+
}
|
|
1360
|
+
@media (min-width: 768px) {
|
|
1361
|
+
:host {
|
|
1362
|
+
padding: var(--space-500) var(--space-600);
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
</style>
|
|
1366
|
+
<slot></slot>
|
|
1367
|
+
`;this.shadowRoot.innerHTML=t}}customElements.define("mui-card-header",tt);class et extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot)return;const t=`
|
|
1368
|
+
<style>
|
|
1369
|
+
:host {
|
|
1370
|
+
display: block;
|
|
1371
|
+
box-sizing: border-box;
|
|
1372
|
+
}
|
|
1373
|
+
:host(.inner-space) {
|
|
1374
|
+
padding: var(--space-500);
|
|
1375
|
+
}
|
|
1376
|
+
@media (min-width: 768px) {
|
|
1377
|
+
:host(.inner-space) {
|
|
1378
|
+
padding: var(--space-600);
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
</style>
|
|
1382
|
+
<slot></slot>
|
|
1383
|
+
`;this.shadowRoot.innerHTML=t,requestAnimationFrame(()=>{if(!this.shadowRoot)return;const e=this.shadowRoot.querySelector("slot");if(!e)return;const i=e.assignedNodes({flatten:!0});let s=!1;i.forEach(o=>{if(o.nodeType===Node.ELEMENT_NODE){const a=o,l=a.tagName.toLowerCase()==="mui-accordion-group"?a:a.querySelector("mui-accordion-group");l instanceof HTMLElement&&(l.querySelectorAll("mui-accordion-block").forEach(u=>{u.classList.add("card-slot")}),s=!0);const h=a.tagName.toLowerCase()==="mui-table"?a:a.querySelector("mui-table");h instanceof HTMLElement&&(h.querySelectorAll("mui-cell").forEach(u=>{u.classList.add("card-slot")}),s=!0)}}),s||this.classList.add("inner-space")})}}customElements.define("mui-card-body",et);class it extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){if(!this.shadowRoot)return;const t=`
|
|
1384
|
+
<style>
|
|
1385
|
+
:host {
|
|
1386
|
+
display: block;
|
|
1387
|
+
width: 100%;
|
|
1388
|
+
box-sizing: border-box;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
:host(.inner-space) {
|
|
1392
|
+
padding: var(--space-400) var(--space-500);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
@media (min-width: 768px) {
|
|
1396
|
+
:host(.inner-space) {
|
|
1397
|
+
padding: var(--space-500) var(--space-600);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
:host(.hidden) {
|
|
1402
|
+
display: none;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
::slotted(mui-code) {
|
|
1406
|
+
border-bottom-right-radius: calc(var(--card-radius) - 1px);
|
|
1407
|
+
border-bottom-left-radius: calc(var(--card-radius) - 1px);
|
|
1408
|
+
}
|
|
1409
|
+
</style>
|
|
1410
|
+
<slot></slot>
|
|
1411
|
+
`;this.shadowRoot.innerHTML=t,requestAnimationFrame(()=>{if(!this.shadowRoot)return;const e=this.shadowRoot.querySelector("slot");if(!e)return;const s=e.assignedNodes({flatten:!0}).filter(a=>{var n;return a.nodeType===Node.ELEMENT_NODE||a.nodeType===Node.TEXT_NODE&&((n=a.textContent)==null?void 0:n.trim())!==""});if(s.length===0){this.classList.add("hidden");return}let o=!1;s.forEach(a=>{var n;if(a.nodeType===Node.ELEMENT_NODE){const l=a;(l.tagName.toLowerCase()==="mui-code"||(n=l.querySelector)!=null&&n.call(l,"mui-code"))&&(o=!0)}}),o||this.classList.add("inner-space")})}}customElements.define("mui-card-footer",it);class ot extends HTMLElement{constructor(){super(),this.slotEl=null,this.mql=null;const t=this.attachShadow({mode:"open"}),e=`
|
|
1412
|
+
:host { display: block; }
|
|
1413
|
+
`;t.innerHTML=`
|
|
1414
|
+
<style>${e}</style>
|
|
1415
|
+
<slot></slot>
|
|
1416
|
+
`,this.slotEl=t.querySelector("slot")}static get observedAttributes(){return["breakpoint"]}connectedCallback(){const t=this.getAttribute("breakpoint");if(!t||!this.slotEl)return;this.mql=window.matchMedia(`(max-width: ${t}px)`);const e=i=>{this.slotEl.setAttribute("name",i?"showBelow":"showAbove")};e(this.mql.matches),this.mql.addEventListener("change",i=>{e(i.matches)})}}customElements.define("mui-responsive",ot);class at 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=`
|
|
1417
|
+
:host {
|
|
1418
|
+
display: block;
|
|
1419
|
+
}
|
|
1420
|
+
slot {
|
|
1421
|
+
display: flex;
|
|
1422
|
+
gap: var(--space);
|
|
1423
|
+
align-items: var(--alignY);
|
|
1424
|
+
justify-content: var(--alignX);
|
|
1425
|
+
}
|
|
1426
|
+
`}async connectedCallback(){if(!this.shadowRoot)return;await this.waitForPartMap();const t=b("spacing","layout","visual");this.shadowRoot.innerHTML=`
|
|
1427
|
+
<style>${this.styles}</style>
|
|
1428
|
+
<slot
|
|
1429
|
+
part="${t}"
|
|
1430
|
+
style="
|
|
1431
|
+
--space: ${this.getAttribute("space")||this.space};
|
|
1432
|
+
--alignY: ${this.getAttribute("alignY")||this.alignY};
|
|
1433
|
+
--alignX: ${this.getAttribute("alignX")||this.alignX};
|
|
1434
|
+
">
|
|
1435
|
+
</slot>
|
|
1436
|
+
`}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 b=="function")return t();const e=()=>{typeof b=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-h-stack",at);class st 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=`
|
|
1437
|
+
:host {
|
|
1438
|
+
display: block;
|
|
1439
|
+
}
|
|
1440
|
+
slot {
|
|
1441
|
+
display: grid;
|
|
1442
|
+
gap: var(--space);
|
|
1443
|
+
justify-items: var(--alignX);
|
|
1444
|
+
align-items: var(--alignY);
|
|
1445
|
+
}
|
|
1446
|
+
`}async connectedCallback(){if(!this.shadowRoot)return;await this.waitForPartMap();const t=b("spacing","layout","visual");this.shadowRoot.innerHTML=`
|
|
1447
|
+
<style>${this.styles}</style>
|
|
1448
|
+
<slot
|
|
1449
|
+
part="${t}"
|
|
1450
|
+
style="
|
|
1451
|
+
--space: ${this.getAttribute("space")||this.space};
|
|
1452
|
+
--alignX: ${this.getAttribute("alignX")||this.alignX};
|
|
1453
|
+
--alignY: ${this.getAttribute("alignY")||this.alignY};
|
|
1454
|
+
">
|
|
1455
|
+
</slot>
|
|
1456
|
+
`}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 b=="function")return t();const e=()=>{typeof b=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-v-stack",st);class rt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.accordions=[]}connectedCallback(){this.shadowRoot&&(this.shadowRoot.innerHTML="<slot></slot>",requestAnimationFrame(()=>{if(!this.shadowRoot)return;const t=this.shadowRoot.querySelector("slot");if(!t)return;const e=t.assignedElements({flatten:!0});this.accordions=e.filter(i=>i.tagName==="MUI-ACCORDION-BLOCK"&&typeof i.closeAccordion=="function"),this.accordions.forEach(i=>{i.removeAttribute("first-child"),i.removeAttribute("last-child")}),this.accordions.length>0&&(this.accordions[0].setAttribute("first-child",""),this.accordions[this.accordions.length-1].setAttribute("last-child","")),this.accordions.forEach(i=>{i.addEventListener("accordion-opened",()=>{this.hasAttribute("exclusive")&&this.accordions.forEach(s=>{s!==i&&s.closeAccordion()})})})}))}}customElements.define("mui-accordion-group",rt);class nt 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=`
|
|
1457
|
+
<style>
|
|
1458
|
+
@import url("./css/mui-reset.css");
|
|
1459
|
+
:host { display: block; }
|
|
1460
|
+
|
|
1461
|
+
h1, h2, h3, h4, h5, h6 {
|
|
1462
|
+
margin: var(--space-000);
|
|
1463
|
+
font-weight: var(--heading-font-weight);
|
|
1464
|
+
color: var(--heading-text-color);
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.size-1 { font-size: var(--heading-font-size-100); line-height: var(--heading-line-height-100); }
|
|
1468
|
+
.size-2 { font-size: var(--heading-font-size-200); line-height: var(--heading-line-height-200); }
|
|
1469
|
+
.size-3 { font-size: var(--heading-font-size-300); line-height: var(--heading-line-height-300); }
|
|
1470
|
+
.size-4 { font-size: var(--heading-font-size-400); line-height: var(--heading-line-height-400); }
|
|
1471
|
+
.size-5 { font-size: var(--heading-font-size-500); line-height: var(--heading-line-height-500); }
|
|
1472
|
+
.size-6 { font-size: var(--heading-font-size-600); line-height: var(--heading-line-height-600); }
|
|
1473
|
+
</style>
|
|
1474
|
+
<${i} class="size-${t}">
|
|
1475
|
+
<slot></slot>
|
|
1476
|
+
</${i}>
|
|
1477
|
+
`}}customElements.define("mui-heading",nt);class lt extends HTMLElement{constructor(){super(),this.summaryEl=null,this.detailEl=null,this.chevronEl=null,this.attachShadow({mode:"open"}),this.accordionId=`accordion-detail-${Math.random().toString(36).substring(2,9)}`}connectedCallback(){var o,a;if(customElements.get("mui-icon-right-chevron")||console.warn("mui-accordion-block requires <mui-icon-right-chevron> to be defined. Please ensure it is imported and registered."),customElements.get("mui-heading")||console.warn("[mui-accordion-block] Warning: <mui-heading> is not registered. Please import it to ensure proper functionality."),!this.shadowRoot)return;const t=this.getAttribute("heading")||"Heading...",e=this.getAttribute("size")||"medium",i=this.getAttribute("level")||"3";let s=`
|
|
1478
|
+
<style>
|
|
1479
|
+
|
|
1480
|
+
:host { display: block; }
|
|
1481
|
+
|
|
1482
|
+
.accordion-summary {
|
|
1483
|
+
display: flex;
|
|
1484
|
+
align-items: center;
|
|
1485
|
+
justify-content: space-between;
|
|
1486
|
+
border-top: var(--border-thin);
|
|
1487
|
+
cursor: pointer;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
.accordion-summary:focus-visible {
|
|
1491
|
+
outline: var(--outline-thick);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
.accordion-summary:hover .icon {
|
|
1495
|
+
background: var(--surface-elevated-200);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
.icon {
|
|
1499
|
+
padding: var(--space-200);
|
|
1500
|
+
box-sizing: border-box;
|
|
1501
|
+
display: flex;
|
|
1502
|
+
border-radius: var(--radius-200);
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
mui-icon-down-chevron {
|
|
1506
|
+
transition: transform var(--speed-200) ease-in-out;
|
|
1507
|
+
transform: rotate(0deg);
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
mui-heading {
|
|
1511
|
+
width: 100%;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
mui-icon-down-chevron[open] {
|
|
1515
|
+
transform: rotate(-180deg);
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.accordion-detail {
|
|
1519
|
+
max-height: 0;
|
|
1520
|
+
overflow: hidden;
|
|
1521
|
+
transition: max-height var(--speed-300) ease;
|
|
1522
|
+
box-shadow: inset 0 1px 0 0 var(--border-color);
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
.accordion-detail[open] {
|
|
1526
|
+
max-height: 200vh;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
.accordion-detail-inner {
|
|
1530
|
+
padding: var(--space-500);
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
.accordion-detail-inner > *:last-child {
|
|
1534
|
+
margin-bottom: 0;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
.size-small-summary {
|
|
1538
|
+
padding: var(--space-300) var(--space-500);
|
|
1539
|
+
}
|
|
1540
|
+
.size-medium-summary {
|
|
1541
|
+
padding: var(--space-400) var(--space-500);
|
|
1542
|
+
}
|
|
1543
|
+
.size-large-summary {
|
|
1544
|
+
padding: var(--space-500) var(--space-600);
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
.size-small-detail {
|
|
1548
|
+
padding: var(--space-500);
|
|
1549
|
+
}
|
|
1550
|
+
.size-medium-detail {
|
|
1551
|
+
padding: var(--space-500);
|
|
1552
|
+
}
|
|
1553
|
+
.size-large-detail {
|
|
1554
|
+
padding: var(--space-600);
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
:host([first-child]) .accordion-summary {
|
|
1558
|
+
border-top: none;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/* Card Slot (Supports: Table Cell, Accordion Block) */
|
|
1562
|
+
:host(.card-slot) .accordion-summary {
|
|
1563
|
+
padding-left: var(--space-500);
|
|
1564
|
+
padding-right: var(--space-500);
|
|
1565
|
+
}
|
|
1566
|
+
@media (min-width: 768px) {
|
|
1567
|
+
:host(.card-slot) .accordion-summary {
|
|
1568
|
+
padding-left: var(--space-600);
|
|
1569
|
+
padding-right: var(--space-600);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
:host(.card-slot) .accordion-detail-inner {
|
|
1573
|
+
padding-left: var(--space-500);
|
|
1574
|
+
padding-right: var(--space-500);
|
|
1575
|
+
}
|
|
1576
|
+
@media (min-width: 768px) {
|
|
1577
|
+
:host(.card-slot) .accordion-detail-inner {
|
|
1578
|
+
padding-left: var(--space-600);
|
|
1579
|
+
padding-right: var(--space-600);
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
</style>
|
|
1584
|
+
|
|
1585
|
+
<div
|
|
1586
|
+
class="accordion-summary size-${e}-summary"
|
|
1587
|
+
role="button"
|
|
1588
|
+
tabindex="0"
|
|
1589
|
+
aria-expanded="false"
|
|
1590
|
+
aria-controls="${this.accordionId}"
|
|
1591
|
+
>
|
|
1592
|
+
<mui-heading size="6" level="${i}">${t}</mui-heading>
|
|
1593
|
+
<div class="icon">
|
|
1594
|
+
<mui-icon-down-chevron size="x-small"></mui-icon-down-chevron>
|
|
1595
|
+
</div>
|
|
1596
|
+
</div>
|
|
1597
|
+
|
|
1598
|
+
<div id="${this.accordionId}" class="accordion-detail">
|
|
1599
|
+
<div class="accordion-detail-inner size-${e}-detail" inert>
|
|
1600
|
+
<slot name="detail">Insert Content</slot>
|
|
1601
|
+
</div>
|
|
1602
|
+
</div>
|
|
1603
|
+
|
|
1604
|
+
`;if(this.shadowRoot.innerHTML=s,this.summaryEl=this.shadowRoot.querySelector(".accordion-summary"),this.detailEl=this.shadowRoot.querySelector(".accordion-detail"),this.chevronEl=this.shadowRoot.querySelector("mui-icon-down-chevron"),!this.summaryEl||!this.detailEl||!this.chevronEl){console.error("Accordion elements not found");return}(o=this.summaryEl)==null||o.addEventListener("click",()=>this.toggleAccordion()),(a=this.summaryEl)==null||a.addEventListener("keydown",n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),this.toggleAccordion())})}toggleAccordion(){if(!this.detailEl||!this.chevronEl||!this.summaryEl)return;const t=this.detailEl.hasAttribute("open");this.setOpen(!t)}setOpen(t){if(!this.detailEl||!this.chevronEl||!this.summaryEl)return;const e=this.detailEl.querySelector(".accordion-detail-inner");t?(this.detailEl.setAttribute("open",""),this.chevronEl.setAttribute("open",""),this.summaryEl.setAttribute("aria-expanded","true"),e&&e.removeAttribute("inert"),this.dispatchEvent(new CustomEvent("accordion-opened",{bubbles:!0,composed:!0}))):(this.detailEl.removeAttribute("open"),this.chevronEl.removeAttribute("open"),this.summaryEl.setAttribute("aria-expanded","false"),e&&e.setAttribute("inert",""))}closeAccordion(){this.setOpen(!1)}}customElements.define("mui-accordion-block",lt);class ct extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){var s,o;if(customElements.get("mui-icon-right-chevron")||console.warn("mui-accordion-block requires <mui-icon-right-chevron> to be defined. Please ensure it is imported and registered."),customElements.get("mui-heading")||console.warn("[mui-accordion-block] Warning: <mui-heading> is not registered. Please import it to ensure proper functionality."),!this.shadowRoot)return;const t=this.getAttribute("heading")||"Heading...";let i=`
|
|
1605
|
+
<style>
|
|
1606
|
+
:host {
|
|
1607
|
+
display: inline-flex;
|
|
1608
|
+
flex-direction: column;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
.accordion-summary {
|
|
1612
|
+
display: flex;
|
|
1613
|
+
align-items: center;
|
|
1614
|
+
margin-bottom: var(--space-000);
|
|
1615
|
+
cursor: pointer;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
.accordion-summary:focus-visible {
|
|
1620
|
+
outline: var(--outline-thick);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
mui-heading:hover {
|
|
1624
|
+
cursor: pointer;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
mui-icon-right-chevron {
|
|
1628
|
+
margin-right: var(--space-100);
|
|
1629
|
+
transition: var(--speed-200) ease-in-out;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
mui-icon-right-chevron[open] {
|
|
1633
|
+
transform: rotate(90deg);
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
.accordion-detail {
|
|
1637
|
+
display: block;
|
|
1638
|
+
margin-bottom: var(--space-000);
|
|
1639
|
+
max-height: 0;
|
|
1640
|
+
transition: max-height var(--speed-100) ease-in-out;
|
|
1641
|
+
overflow-y: hidden;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
.accordion-detail[open] {
|
|
1645
|
+
max-height: 200vh;
|
|
1646
|
+
transition: max-height var(--speed-400) ease-in-out;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
.accordion-detail-inner {
|
|
1650
|
+
display: block;
|
|
1651
|
+
margin-top: 1.2rem;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.accordion-detail-inner > *:last-child {
|
|
1655
|
+
margin-bottom: var(--space-000);
|
|
1656
|
+
}
|
|
1657
|
+
</style>
|
|
1658
|
+
|
|
1659
|
+
<div class="accordion-summary" tabindex="0" role="button" aria-expanded="false">
|
|
1660
|
+
<mui-icon-right-chevron size="x-small"></mui-icon-right-chevron>
|
|
1661
|
+
<mui-heading size="6" level="${this.getAttribute("level")||"3"}">${t}</mui-heading>
|
|
1662
|
+
</div>
|
|
1663
|
+
|
|
1664
|
+
<div class="accordion-detail">
|
|
1665
|
+
<div class="accordion-detail-inner" inert>
|
|
1666
|
+
<slot name="detail">Insert Content</slot>
|
|
1667
|
+
</div>
|
|
1668
|
+
</div>
|
|
1669
|
+
`;this.shadowRoot.innerHTML=i,this.summaryEl=this.shadowRoot.querySelector(".accordion-summary"),this.detailEl=this.shadowRoot.querySelector(".accordion-detail"),this.chevronEl=this.shadowRoot.querySelector("mui-icon-right-chevron"),(s=this.summaryEl)==null||s.addEventListener("click",this.toggleAccordion.bind(this)),(o=this.summaryEl)==null||o.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),this.toggleAccordion())})}toggleAccordion(){if(!this.detailEl||!this.chevronEl||!this.summaryEl)return;const t=this.detailEl.hasAttribute("open");this.detailEl.toggleAttribute("open"),this.chevronEl.toggleAttribute("open"),this.summaryEl.setAttribute("aria-expanded",String(!t));const e=this.detailEl.querySelector(".accordion-detail-inner");e&&(t?e.setAttribute("inert",""):e.removeAttribute("inert"))}}customElements.define("mui-accordion-inline",ct);class dt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=`
|
|
1670
|
+
<style>
|
|
1671
|
+
|
|
1672
|
+
:host {
|
|
1673
|
+
display: block;
|
|
1674
|
+
width: 95%;
|
|
1675
|
+
width: calc( 100% - 4.8rem );
|
|
1676
|
+
max-width: 118.0rem;
|
|
1677
|
+
padding-top: 2.4rem;
|
|
1678
|
+
padding-bottom: 2.4rem;
|
|
1679
|
+
min-width: 27.2rem;
|
|
1680
|
+
margin: 0 2.4rem; }
|
|
1681
|
+
|
|
1682
|
+
/* Center
|
|
1683
|
+
========================================= */
|
|
1684
|
+
:host([center]) {
|
|
1685
|
+
margin: 0 auto; }
|
|
1686
|
+
/* ===================================== */
|
|
1687
|
+
|
|
1688
|
+
/* Fluid
|
|
1689
|
+
========================================= */
|
|
1690
|
+
:host([fluid]) {
|
|
1691
|
+
max-width: 100%; }
|
|
1692
|
+
/* ===================================== */
|
|
1693
|
+
|
|
1694
|
+
/* Small
|
|
1695
|
+
========================================= */
|
|
1696
|
+
:host([small]) {
|
|
1697
|
+
max-width: 54.0rem; }
|
|
1698
|
+
/* ===================================== */
|
|
1699
|
+
|
|
1700
|
+
/* Medium
|
|
1701
|
+
========================================= */
|
|
1702
|
+
:host([medium]) {
|
|
1703
|
+
max-width: 70.0rem; }
|
|
1704
|
+
/* ===================================== */
|
|
1705
|
+
|
|
1706
|
+
/* Large
|
|
1707
|
+
========================================= */
|
|
1708
|
+
:host([large]) {
|
|
1709
|
+
max-width: 118.0rem; }
|
|
1710
|
+
/* ===================================== */
|
|
1711
|
+
</style>
|
|
1712
|
+
<slot></slot>
|
|
1713
|
+
`;this.shadowRoot&&(this.shadowRoot.innerHTML=t)}}customElements.define("mui-container",dt);class ht extends HTMLElement{static get observedAttributes(){return["slot"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(t,e,i){t==="slot"&&e!==i&&this.render()}render(){this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
1714
|
+
<style>
|
|
1715
|
+
:host {
|
|
1716
|
+
display: inline-flex;
|
|
1717
|
+
align-items: center;
|
|
1718
|
+
justify-content: center;
|
|
1719
|
+
box-sizing: border-box;
|
|
1720
|
+
padding: var(--space-200) var(--space-400);
|
|
1721
|
+
background: var(--addon-background);
|
|
1722
|
+
border: var(--border-thin);
|
|
1723
|
+
border-color: var(--form-default-border-color);
|
|
1724
|
+
height: 4.4rem;
|
|
1725
|
+
min-width: 4.4rem;
|
|
1726
|
+
white-space: nowrap;
|
|
1727
|
+
}
|
|
1728
|
+
:host([slot="before"]) {
|
|
1729
|
+
border-right: none;
|
|
1730
|
+
border-top-left-radius: var(--radius-100);
|
|
1731
|
+
border-bottom-left-radius: var(--radius-100);
|
|
1732
|
+
}
|
|
1733
|
+
:host([slot="after"]) {
|
|
1734
|
+
border-left: none;
|
|
1735
|
+
border-top-right-radius: var(--radius-100);
|
|
1736
|
+
border-bottom-right-radius: var(--radius-100);
|
|
1737
|
+
}
|
|
1738
|
+
</style>
|
|
1739
|
+
<slot></slot>
|
|
1740
|
+
`)}}customElements.define("mui-addon",ht);class ut extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.render()}static get observedAttributes(){return["variant"]}attributeChangedCallback(){this.render()}render(){const e=this.getAttribute("variant")||"neutral",i={neutral:"var(--badge-background-neutral)",positive:"var(--badge-background-positive)",warning:"var(--badge-background-warning)",attention:"var(--badge-background-attention)"},s={neutral:"off",positive:"polite",warning:"assertive",attention:"assertive"},o=i[e],a=s[e],n=`
|
|
1741
|
+
:host {
|
|
1742
|
+
display: inline-block;
|
|
1743
|
+
border-radius: var(--badge-radius);
|
|
1744
|
+
background: ${o};
|
|
1745
|
+
font-size: var(--text-font-size-xs);
|
|
1746
|
+
font-weight: var(--badge-font-weight);
|
|
1747
|
+
color: var(--badge-text-color);
|
|
1748
|
+
padding: var(--space-050) var(--space-200);
|
|
1749
|
+
}
|
|
1750
|
+
`;this.setAttribute("role","status"),this.setAttribute("aria-live",a),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
1751
|
+
<style>${n}</style>
|
|
1752
|
+
<slot></slot>
|
|
1753
|
+
`)}}customElements.define("mui-badge",ut);class mt extends HTMLElement{static get observedAttributes(){return["col","space"]}constructor(){super(),this.attachShadow({mode:"open"})}async connectedCallback(){await this.waitForPartMap();const t=this.getAttribute("col")||"1fr 1fr",e=this.getAttribute("space")||"var(--space-000)",i=b("layout","spacing"),s=`
|
|
1754
|
+
:host {
|
|
1755
|
+
display: block;
|
|
1756
|
+
}
|
|
1757
|
+
div {
|
|
1758
|
+
display: grid;
|
|
1759
|
+
grid-template-columns: var(--col);
|
|
1760
|
+
gap: var(--gap);
|
|
1761
|
+
}
|
|
1762
|
+
`;this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
1763
|
+
<style>${s}</style>
|
|
1764
|
+
<div part="${i}" style="--col: ${t}; --gap: ${e};">
|
|
1765
|
+
<slot></slot>
|
|
1766
|
+
</div>
|
|
1767
|
+
`)}waitForPartMap(){return new Promise(t=>{if(typeof b=="function")return t();const e=()=>{typeof b=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-grid",mt);class pt 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 s=i!==null;this._checkbox&&(this._checkbox.disabled=s,this._checkbox.setAttribute("aria-disabled",s.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,s,o;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"),(s=this._checkbox)==null||s.removeAttribute("aria-disabled"),(o=this._checkbox)==null||o.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=`
|
|
1768
|
+
<style>
|
|
1769
|
+
:host { display: inline-block; }
|
|
1770
|
+
|
|
1771
|
+
.switch {
|
|
1772
|
+
position: relative;
|
|
1773
|
+
display: inline-block;
|
|
1774
|
+
width: var(--switch-width);
|
|
1775
|
+
height: var(--switch-height);
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
.switch input {
|
|
1779
|
+
opacity: 0;
|
|
1780
|
+
width: 0;
|
|
1781
|
+
height: 0;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
.switch input:focus-visible + .track {
|
|
1785
|
+
outline: var(--outline-thick);
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
.track {
|
|
1789
|
+
position: absolute;
|
|
1790
|
+
cursor: pointer;
|
|
1791
|
+
top: 0;
|
|
1792
|
+
left: 0;
|
|
1793
|
+
right: 0;
|
|
1794
|
+
bottom: 0;
|
|
1795
|
+
background-color: var(--switch-track-background);
|
|
1796
|
+
transition: background-color var(--speed-200);
|
|
1797
|
+
border-radius: var(--switch-height);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
.thumb {
|
|
1801
|
+
position: absolute;
|
|
1802
|
+
top: var(--switch-offset);
|
|
1803
|
+
left: var(--switch-offset);
|
|
1804
|
+
width: var(--switch-thumb-size);
|
|
1805
|
+
height: var(--switch-thumb-size);
|
|
1806
|
+
background-color: var(--switch-thumb-bg);
|
|
1807
|
+
transition: transform var(--speed-200);
|
|
1808
|
+
border-radius: 50%;
|
|
1809
|
+
display: flex;
|
|
1810
|
+
align-items: center;
|
|
1811
|
+
justify-content: center;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
input:checked + .track {
|
|
1815
|
+
background-color: var(--switch-track-background-checked);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
input:checked + .track .thumb {
|
|
1819
|
+
transform: translateX(calc(var(--switch-width) - var(--switch-thumb-size) - (var(--switch-offset) * 2)));
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
::slotted([slot="on-icon"]),
|
|
1823
|
+
::slotted([slot="off-icon"]) {
|
|
1824
|
+
width: 16px;
|
|
1825
|
+
height: 16px;
|
|
1826
|
+
fill: var(--switch-icon);
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
:host(.disabled) {
|
|
1830
|
+
cursor: not-allowed;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
:host(.disabled) .switch {
|
|
1834
|
+
opacity: 0.4;
|
|
1835
|
+
pointer-events: none;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
</style>
|
|
1839
|
+
<label class="switch">
|
|
1840
|
+
<input
|
|
1841
|
+
type="checkbox"
|
|
1842
|
+
role="switch"
|
|
1843
|
+
aria-checked="${this._checked}"
|
|
1844
|
+
${t?`aria-label="${t}"`:""}
|
|
1845
|
+
>
|
|
1846
|
+
<span class="track">
|
|
1847
|
+
<span class="thumb">
|
|
1848
|
+
<slot name="on-icon"></slot>
|
|
1849
|
+
<slot name="off-icon"></slot>
|
|
1850
|
+
</span>
|
|
1851
|
+
</span>
|
|
1852
|
+
</label>
|
|
1853
|
+
`}}customElements.define("mui-switch",pt);class bt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.setAttribute("role","table"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
1854
|
+
<style>
|
|
1855
|
+
:host {
|
|
1856
|
+
display: grid;
|
|
1857
|
+
grid-template-columns: 1fr 1fr;
|
|
1858
|
+
gap: var(--space-500);
|
|
1859
|
+
box-sizing: border-box;
|
|
1860
|
+
}
|
|
1861
|
+
</style>
|
|
1862
|
+
<slot name="start"></slot>
|
|
1863
|
+
<slot name="end"></slot>
|
|
1864
|
+
`)}}customElements.define("mui-slat",bt);class vt 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=`
|
|
1865
|
+
<style>
|
|
1866
|
+
:host { display: block; }
|
|
1867
|
+
|
|
1868
|
+
:host p {
|
|
1869
|
+
color: var(--text-color);
|
|
1870
|
+
margin: var(--space-000);
|
|
1871
|
+
display: block;
|
|
1872
|
+
width: 100%;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
:host([size="x-small"]) p {
|
|
1876
|
+
font-size: var(--text-font-size-xs);
|
|
1877
|
+
line-height: var(--text-line-height-xs);
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
:host([size="small"]) p {
|
|
1881
|
+
font-size: var(--text-font-size-s);
|
|
1882
|
+
line-height: var(--text-line-height-s);
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
:host([size="medium"]) p {
|
|
1886
|
+
font-size: var(--text-font-size-m);
|
|
1887
|
+
line-height: var(--text-line-height-m);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
:host([size="large"]) p {
|
|
1891
|
+
font-size: var(--text-font-size-l);
|
|
1892
|
+
line-height: var(--text-line-height-l);
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
:host([weight="regular"]) p { font-weight: var(--font-weight-regular); }
|
|
1896
|
+
:host([weight="medium"]) p { font-weight: var(--font-weight-medium); }
|
|
1897
|
+
:host([weight="bold"]) p { font-weight: var(--font-weight-bold); }
|
|
1898
|
+
|
|
1899
|
+
/* Variant */
|
|
1900
|
+
:host([variant="default"]) p {
|
|
1901
|
+
color: var(--text-color);
|
|
1902
|
+
}
|
|
1903
|
+
:host([variant="success"]) p {
|
|
1904
|
+
color: var(--text-color-success);
|
|
1905
|
+
}
|
|
1906
|
+
:host([variant="warning"]) p {
|
|
1907
|
+
color: var(--text-color-warning);
|
|
1908
|
+
}
|
|
1909
|
+
:host([variant="error"]) p {
|
|
1910
|
+
color: var(--text-color-error);
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
</style>
|
|
1914
|
+
|
|
1915
|
+
<p part="${b("spacing","layout","visual")}"><slot></slot></p>
|
|
1916
|
+
|
|
1917
|
+
`;this.shadowRoot&&(this.shadowRoot.innerHTML=e)}waitForPartMap(){return new Promise(t=>{if(typeof b=="function")return t();const e=()=>{typeof b=="function"?t():requestAnimationFrame(e)};e()})}}customElements.define("mui-body",vt);class gt extends HTMLElement{static get observedAttributes(){return["length","weight","direction"]}constructor(){super();const t=this.attachShadow({mode:"open"});let e="horizontal",i="100%",s="1px";this.setAttribute("role","presentation"),this.setAttribute("direction",this.getAttribute("direction")||e),this.setAttribute("length",this.getAttribute("length")||i),this.setAttribute("weight",this.getAttribute("weight")||s);const o=`
|
|
1918
|
+
:host {
|
|
1919
|
+
display: block;
|
|
1920
|
+
background: var(--border-color);
|
|
1921
|
+
}
|
|
1922
|
+
:host([direction="horizontal"]) {
|
|
1923
|
+
width: ${this.getAttribute("length")||i};
|
|
1924
|
+
height: ${this.getAttribute("weight")||s};
|
|
1925
|
+
}
|
|
1926
|
+
:host([direction="vertical"]) {
|
|
1927
|
+
height: ${this.getAttribute("length")||i};
|
|
1928
|
+
width: ${this.getAttribute("weight")||s};
|
|
1929
|
+
}
|
|
1930
|
+
`;t.innerHTML=`
|
|
1931
|
+
<style>${o}</style>
|
|
1932
|
+
`}}customElements.define("mui-rule",gt);class ft extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=`
|
|
1933
|
+
<style>
|
|
1934
|
+
@import url("./css/mui-reset.css");
|
|
1935
|
+
:host { display: block; }
|
|
1936
|
+
blockquote {
|
|
1937
|
+
border-left: var(--border-thick);
|
|
1938
|
+
padding-left: var(--space-500);
|
|
1939
|
+
font-size: var(--space-500);
|
|
1940
|
+
line-height: 1.5;
|
|
1941
|
+
margin: var(--space-500) var(--space-000);
|
|
1942
|
+
font-style: italic;
|
|
1943
|
+
}
|
|
1944
|
+
</style>
|
|
1945
|
+
<blockquote><slot></slot></blockquote>
|
|
1946
|
+
`;this.shadowRoot&&(this.shadowRoot.innerHTML=t)}}customElements.define("mui-quote",ft);class yt extends HTMLElement{static get observedAttributes(){return["state","number","variant","partner","type","logo","logo-width","logo-height","bg-color","bg-image","inverted"]}constructor(){super(),this.attachShadow({mode:"open"})}attributeChangedCallback(){this.render()}connectedCallback(){this.render()}render(){const t=this.getAttribute("state")||"default",e=this.getAttribute("number")||"0000",i=this.getAttribute("bg-color"),s=this.getAttribute("bg-image"),o=this.getAttribute("variant")||"plain",a=this.hasAttribute("inverted"),n=this.getAttribute("type")||"",l=t==="frozen",c=this.getAttribute("logo")||"",h=this.getAttribute("partner")||"",d=this.getAttribute("logo-height"),u=d&&!isNaN(parseInt(d,10))?parseInt(d,10):void 0;u&&u>126&&console.warn(`[mui-smart-card] The logo height (${u}px) exceeds the recommended maximum of 126px. This may affect vertical alignment or visual consistency.`);let p="card",v="";o==="animated"?p+=" animated":p+=" plain",s?v=`
|
|
1947
|
+
background-image: url(${s});
|
|
1948
|
+
background-size: cover;
|
|
1949
|
+
background-position: center;
|
|
1950
|
+
background-repeat: no-repeat;
|
|
1951
|
+
`:i?v=`background: ${i};`:v=`
|
|
1952
|
+
background: ${a?"linear-gradient(180deg, var(--grey-900) 0%, var(--black) 100%)":"linear-gradient(180deg, var(--grey-200) 0%, var(--white) 100%)"};
|
|
1953
|
+
`,this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
1954
|
+
<style>
|
|
1955
|
+
@keyframes cardAnimationMobile {
|
|
1956
|
+
0% {
|
|
1957
|
+
background-size: 101.265823% auto;
|
|
1958
|
+
background-position: center;
|
|
1959
|
+
}
|
|
1960
|
+
60% {
|
|
1961
|
+
background-size: 106.329114% auto;
|
|
1962
|
+
background-position: center;
|
|
1963
|
+
}
|
|
1964
|
+
100% {
|
|
1965
|
+
background-size: 101.265823% auto;
|
|
1966
|
+
background-position: center;
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
@keyframes cardAnimationDesktop {
|
|
1971
|
+
0% {
|
|
1972
|
+
background-size: 400px auto;
|
|
1973
|
+
background-position: center;
|
|
1974
|
+
}
|
|
1975
|
+
60% {
|
|
1976
|
+
background-size: 420px auto;
|
|
1977
|
+
background-position: center;
|
|
1978
|
+
}
|
|
1979
|
+
100% {
|
|
1980
|
+
background-size: 400px auto;
|
|
1981
|
+
background-position: center;
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
@keyframes cardGradient {
|
|
1986
|
+
0% { background-position: 0% 10%; }
|
|
1987
|
+
50% { background-position: 100% 91%; }
|
|
1988
|
+
100% { background-position: 0% 10%; }
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
:host {
|
|
1992
|
+
width: 100%;
|
|
1993
|
+
max-width: 395px;
|
|
1994
|
+
min-width: 247px;
|
|
1995
|
+
border-radius: var(--radius-300);
|
|
1996
|
+
overflow: hidden;
|
|
1997
|
+
box-shadow: 0 0px 8px rgb(0 0 0 / 12%), 0 2px 16px rgb(0 0 0 / 12%),
|
|
1998
|
+
0 4px 20px rgb(0 0 0 / 12%), 0 12px 28px rgb(0 0 0 / 12%);
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
.card-top {
|
|
2002
|
+
display: flex;
|
|
2003
|
+
justify-content: space-between;
|
|
2004
|
+
align-items: flex-start;
|
|
2005
|
+
padding: calc(var(--space-300) + var(--space-025));
|
|
2006
|
+
padding-bottom: 0;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
/* Company */
|
|
2010
|
+
/* =========================================== */
|
|
2011
|
+
.logo {
|
|
2012
|
+
display: flex;
|
|
2013
|
+
justify-content: flex-end;
|
|
2014
|
+
align-items: start;
|
|
2015
|
+
max-width: 60%;
|
|
2016
|
+
max-height: 60%;
|
|
2017
|
+
overflow: hidden;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
.logo img {
|
|
2021
|
+
max-width: 100%;
|
|
2022
|
+
max-height: 100%;
|
|
2023
|
+
object-fit: contain;
|
|
2024
|
+
display: block;
|
|
2025
|
+
width: auto;
|
|
2026
|
+
height: ${u?`calc(${u}px / 1.5)`:"auto"};
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
@media (min-width: 500px) {
|
|
2030
|
+
.logo img {
|
|
2031
|
+
width: auto;
|
|
2032
|
+
height: ${u?`${u}px`:"auto"};
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
/* Invert Logic */
|
|
2037
|
+
/* =========================================== */
|
|
2038
|
+
.type,
|
|
2039
|
+
.card-number::part(display) {
|
|
2040
|
+
color: ${a?"var(--white)":"var(--black)"};
|
|
2041
|
+
text-shadow: ${a?"0 0px 8px rgb(0 0 0 / 12%);":"0 0px 8px rgb(255 255 255 / 12%);"};
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
img {
|
|
2045
|
+
filter: ${a?"drop-shadow(0px 1px 0px var(--black-opacity-60))":"drop-shadow(0px 1px 0px var(--white-opacity-60))"};
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
.inner {
|
|
2050
|
+
box-shadow: ${a?"inset 0 1px 0 0 rgb(255 255 255 / 20%), 0 1px 0 0 rgb(0 0 0 / 10%)":"inset 0 1px 0 0 rgb(255 255 255 / 60%), 0 1px 0 0 rgb(0 0 0 / 40%)"};
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
.card.animated .inner::after {
|
|
2054
|
+
background: linear-gradient(${a?"120deg, rgb(255 255 255 / 2%) 30%, rgb(255 255 255 / 8%) 40%, rgb(255 255 255 / 4%) 40%":"120deg, rgb(255 255 255 / 2%) 30%, rgb(255 255 255 / 25%) 40%, rgb(255 255 255 / 8%) 40%"});
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
/* Type */
|
|
2058
|
+
/* =========================================== */
|
|
2059
|
+
.type {
|
|
2060
|
+
font-size: var(--text-font-size-xs);
|
|
2061
|
+
line-height: var(--text-line-height-xs);
|
|
2062
|
+
text-transform: uppercase;
|
|
2063
|
+
letter-spacing: var(--space-025);
|
|
2064
|
+
font-weight: var(--font-weight-medium);
|
|
2065
|
+
}
|
|
2066
|
+
@media (min-width: 500px) {
|
|
2067
|
+
.type {
|
|
2068
|
+
font-size: var(--text-font-size-s);
|
|
2069
|
+
line-height: var(--text-line-height-s);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
/* Card Number */
|
|
2074
|
+
/* =========================================== */
|
|
2075
|
+
.card-number {
|
|
2076
|
+
bottom: calc(var(--space-300) + var(--space-025));
|
|
2077
|
+
left: calc(var(--space-300) + var(--space-025));
|
|
2078
|
+
position: absolute;
|
|
2079
|
+
z-index: 1;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
.card-number::part(display) {
|
|
2083
|
+
display: flex;
|
|
2084
|
+
gap: var(--space-100);
|
|
2085
|
+
box-sizing: border-box;
|
|
2086
|
+
font-size: var(--text-font-size-xs);
|
|
2087
|
+
line-height: var(--text-line-height-xs);
|
|
2088
|
+
font-weight: var(--font-weight-medium);
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
@media (min-width: 500px) {
|
|
2092
|
+
.card-number::part(display) {
|
|
2093
|
+
font-size: var(--text-font-size-s);
|
|
2094
|
+
line-height: var(--text-line-height-s);
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
/* Provider */
|
|
2099
|
+
/* =========================================== */
|
|
2100
|
+
.card-partner {
|
|
2101
|
+
height: auto;
|
|
2102
|
+
width: auto;
|
|
2103
|
+
display: flex;
|
|
2104
|
+
justify-content: end;
|
|
2105
|
+
align-items: end;
|
|
2106
|
+
bottom: calc(var(--space-300) + var(--space-025));
|
|
2107
|
+
right: calc(var(--space-300) + var(--space-025));
|
|
2108
|
+
position: absolute;
|
|
2109
|
+
z-index: 1;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
.card-partner img {
|
|
2113
|
+
width: calc(100% / 1.5);
|
|
2114
|
+
height: auto;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
@media (min-width: 500px) {
|
|
2118
|
+
.card-partner img {
|
|
2119
|
+
width: 100%;
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
/* Variant - Base */
|
|
2124
|
+
/* =========================================== */
|
|
2125
|
+
.card {
|
|
2126
|
+
position: relative;
|
|
2127
|
+
box-sizing: border-box;
|
|
2128
|
+
display: grid;
|
|
2129
|
+
grid-template-rows: 1fr auto;
|
|
2130
|
+
-webkit-font-smoothing: antialiased;
|
|
2131
|
+
font-size: 14px;
|
|
2132
|
+
width: 100%;
|
|
2133
|
+
max-width: 395px;
|
|
2134
|
+
max-height: 248px;
|
|
2135
|
+
min-width: 247px;
|
|
2136
|
+
aspect-ratio: 1014 / 638;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
.inner {
|
|
2140
|
+
display: grid;
|
|
2141
|
+
grid-template-rows: 1fr auto;
|
|
2142
|
+
border-radius: var(--radius-300);
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
/* Variant - Virtual */
|
|
2146
|
+
/* =========================================== */
|
|
2147
|
+
.card.animated .inner {
|
|
2148
|
+
animation-name: cardAnimationMobile;
|
|
2149
|
+
animation-duration: 10s;
|
|
2150
|
+
transform: translateZ(0);
|
|
2151
|
+
position: relative;
|
|
2152
|
+
animation-iteration-count: infinite;
|
|
2153
|
+
animation-direction: alternate;
|
|
2154
|
+
animation-timing-function: ease-in-out;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
@media (min-width: 500px) {
|
|
2158
|
+
.card.animated .inner {
|
|
2159
|
+
animation-name: cardAnimationDesktop;
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
.card.animated .inner::before {
|
|
2164
|
+
content: "";
|
|
2165
|
+
width: 100%;
|
|
2166
|
+
height: 100%;
|
|
2167
|
+
position: absolute;
|
|
2168
|
+
z-index: 1;
|
|
2169
|
+
border-radius: 16px;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
.card.animated .inner::after {
|
|
2173
|
+
content: "";
|
|
2174
|
+
width: 100%;
|
|
2175
|
+
height: 100%;
|
|
2176
|
+
border-radius: 16px;
|
|
2177
|
+
background-size: 150% 150%;
|
|
2178
|
+
animation: cardGradient 45s ease-in-out infinite;
|
|
2179
|
+
transform: translateZ(0);
|
|
2180
|
+
position: absolute;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
/* Frozen State */
|
|
2184
|
+
/* =========================================== */
|
|
2185
|
+
.frozen {
|
|
2186
|
+
filter: grayscale(100%);
|
|
2187
|
+
transition: filter 0.2s ease-in-out;
|
|
2188
|
+
position: relative;
|
|
2189
|
+
}
|
|
2190
|
+
.frozen .inner {
|
|
2191
|
+
filter: blur(16px);
|
|
2192
|
+
transition: filter 0.2s ease-in-out;
|
|
2193
|
+
}
|
|
2194
|
+
.frozen:hover {
|
|
2195
|
+
filter: grayscale(0%);
|
|
2196
|
+
}
|
|
2197
|
+
.frozen:hover .inner {
|
|
2198
|
+
filter: blur(0);
|
|
2199
|
+
}
|
|
2200
|
+
mui-badge {
|
|
2201
|
+
position: absolute;
|
|
2202
|
+
z-index: 1;
|
|
2203
|
+
top: 50%;
|
|
2204
|
+
left: 50%;
|
|
2205
|
+
transform: translateX(-50%) translateY(-50%);
|
|
2206
|
+
opacity: 1;
|
|
2207
|
+
transition: opacity 0.2s ease-in-out;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
.frozen:hover mui-badge { opacity: 0; }
|
|
2211
|
+
|
|
2212
|
+
</style>
|
|
2213
|
+
|
|
2214
|
+
<div
|
|
2215
|
+
|
|
2216
|
+
class="${p}
|
|
2217
|
+
${l?"frozen":""}"
|
|
2218
|
+
>
|
|
2219
|
+
${l?"<mui-badge>Frozen</mui-badge>":""}
|
|
2220
|
+
|
|
2221
|
+
<div class="inner" style="${v}">
|
|
2222
|
+
<div class="card-top">
|
|
2223
|
+
<span class="type">${n?`${n}`:""}</span>
|
|
2224
|
+
${c?`
|
|
2225
|
+
<div class="logo">
|
|
2226
|
+
<img src="${c}" class="logo-img" />
|
|
2227
|
+
</div>`:""}
|
|
2228
|
+
</div>
|
|
2229
|
+
|
|
2230
|
+
<mui-body class="card-number"><span>••••</span><span>${e}</span></mui-body>
|
|
2231
|
+
|
|
2232
|
+
<div class="card-partner">
|
|
2233
|
+
|
|
2234
|
+
${h?`
|
|
2235
|
+
|
|
2236
|
+
<img src="${h}" class="logo-img" alt="partner logo"/>
|
|
2237
|
+
`:""}
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
</div>
|
|
2242
|
+
</div>
|
|
2243
|
+
|
|
2244
|
+
</div>
|
|
2245
|
+
`)}}customElements.define("mui-smart-card",yt);class wt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.setAttribute("role","table"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2246
|
+
<style>
|
|
2247
|
+
:host {
|
|
2248
|
+
display: block;
|
|
2249
|
+
box-sizing: border-box;
|
|
2250
|
+
text-indent: initial;
|
|
2251
|
+
width: 100%;
|
|
2252
|
+
margin: var(--space-000);
|
|
2253
|
+
}
|
|
2254
|
+
</style>
|
|
2255
|
+
<slot></slot>
|
|
2256
|
+
`)}}customElements.define("mui-table",wt);class kt extends HTMLElement{static get observedAttributes(){return["columns"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.setAttribute("role","row"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2257
|
+
<style>
|
|
2258
|
+
:host {
|
|
2259
|
+
display: grid;
|
|
2260
|
+
grid-template-columns: ${this.getAttribute("columns")};
|
|
2261
|
+
grid-gap: var(--space-500);
|
|
2262
|
+
margin-bottom: var(--space-000);
|
|
2263
|
+
padding: var(--space-300) var(--space-000);
|
|
2264
|
+
border-top: var(--border-thin);
|
|
2265
|
+
align-items: center;
|
|
2266
|
+
}
|
|
2267
|
+
</style>
|
|
2268
|
+
<slot></slot>
|
|
2269
|
+
`)}}customElements.define("mui-row",kt);class xt extends HTMLElement{static get observedAttributes(){return["align-y"]}constructor(){super();const t=this.attachShadow({mode:"open"});this.setAttribute("role","cell");const e=`
|
|
2270
|
+
:host {
|
|
2271
|
+
display: flex;
|
|
2272
|
+
justify-content: space-between;
|
|
2273
|
+
align-self: ${this.getAttribute("align-y")||"initial"};
|
|
2274
|
+
text-align: left;
|
|
2275
|
+
}
|
|
2276
|
+
:host(*:first-of-type) {
|
|
2277
|
+
padding-left: var(--space-600);
|
|
2278
|
+
}
|
|
2279
|
+
:host(*:last-of-type) {
|
|
2280
|
+
padding-right: var(--space-600);
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
/* Card Slot (Supports: Table Cell, Accordion Block) */
|
|
2284
|
+
:host(.card-slot:first-of-type) {
|
|
2285
|
+
padding-left: var(--space-500);
|
|
2286
|
+
}
|
|
2287
|
+
:host(.card-slot:last-of-type) {
|
|
2288
|
+
padding-right: var(--space-500);
|
|
2289
|
+
}
|
|
2290
|
+
@media (min-width: 768px) {
|
|
2291
|
+
:host(.card-slot:first-of-type) {
|
|
2292
|
+
padding-left: var(--space-600);
|
|
2293
|
+
}
|
|
2294
|
+
:host(.card-slot:last-of-type) {
|
|
2295
|
+
padding-right: var(--space-600);
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
:host([checkbox]) {
|
|
2300
|
+
width: auto;
|
|
2301
|
+
padding: 0;
|
|
2302
|
+
text-align: center;
|
|
2303
|
+
}
|
|
2304
|
+
:host([action]) {
|
|
2305
|
+
width: 4.4rem;
|
|
2306
|
+
height: 4.4rem;
|
|
2307
|
+
padding: 0;
|
|
2308
|
+
padding-right: var(--space-300);
|
|
2309
|
+
}
|
|
2310
|
+
:host([heading]) {
|
|
2311
|
+
font-weight: bold;
|
|
2312
|
+
}
|
|
2313
|
+
`;t.innerHTML=`
|
|
2314
|
+
<style>${e}</style>
|
|
2315
|
+
<slot></slot>
|
|
2316
|
+
`}}customElements.define("mui-cell",xt);class At extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.setAttribute("role","rowgroup"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2317
|
+
<style>
|
|
2318
|
+
:host {
|
|
2319
|
+
display: block;
|
|
2320
|
+
}
|
|
2321
|
+
:host([heading]) {
|
|
2322
|
+
display: block;
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
:host([heading]) ::slotted(mui-row) {
|
|
2326
|
+
border: none;
|
|
2327
|
+
}
|
|
2328
|
+
</style>
|
|
2329
|
+
<slot></slot>
|
|
2330
|
+
`)}}customElements.define("mui-row-group",At);class Et extends HTMLElement{static get observedAttributes(){return["variant","message"]}constructor(){super(),this.attachShadow({mode:"open"});const t=this.getAttribute("variant")||"default";this.setAttribute("variant",t)}connectedCallback(){this.render(),this.passAttributesToChild()}attributeChangedCallback(t,e,i){(t==="variant"||t==="message")&&(this.render(),this.passAttributesToChild())}passAttributesToChild(){var s;if(!this.shadowRoot)return;const t=this.shadowRoot.querySelector("slot"),e=(s=t==null?void 0:t.assignedElements)==null?void 0:s.call(t)[0];if(!e)return;["variant","label","hide-label"].forEach(o=>{this.hasAttribute(o)?e.setAttribute(o,this.getAttribute(o)||""):e.removeAttribute(o)})}render(){const t=this.getAttribute("message"),e=this.getAttribute("variant");this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2331
|
+
<style>
|
|
2332
|
+
:host {
|
|
2333
|
+
display: block;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
mui-body {
|
|
2337
|
+
margin-top: var(--space-100);
|
|
2338
|
+
}
|
|
2339
|
+
</style>
|
|
2340
|
+
|
|
2341
|
+
<slot></slot>
|
|
2342
|
+
${t?`<mui-body size="small" variant="${e}">${t}</mui-body>`:""}
|
|
2343
|
+
`)}}customElements.define("mui-field",Et);function zt(r){return["positive","info","warning","attention"].includes(r)}class Lt extends HTMLElement{static get observedAttributes(){return["variant"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.getAttribute("variant")||"positive",e={success:"positive",error:"attention"},i=zt(t)?t:e[t]||"positive";this.setAttribute("variant",i);const s={positive:"polite",info:"polite",warning:"assertive",attention:"assertive"};this.setAttribute("role","alert"),this.setAttribute("aria-live",s[i]||"polite");const o={positive:"mui-icon-check",info:"mui-icon-info",warning:"mui-icon-warning",attention:"mui-icon-attention"},a={positive:"--feedback-positive-icon",info:"--feedback-info-icon",warning:"--feedback-warning-icon",attention:"--feedback-attention-icon"},n={positive:"--feedback-positive-text",info:"--feedback-info-text",warning:"--feedback-warning-text",attention:"--feedback-attention-text"},l={positive:"Success!",info:"Info:",warning:"Warning!",attention:"Error!"};this.setAttribute("aria-live",s[i]);const c=o[i],h=a[i],d=n[i],u=l[i],p=`
|
|
2344
|
+
:host {
|
|
2345
|
+
border-radius: var(--alert-radius);
|
|
2346
|
+
padding: var(--alert-padding);
|
|
2347
|
+
background: var(--white);
|
|
2348
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05);
|
|
2349
|
+
display: grid;
|
|
2350
|
+
grid-template-columns: auto 1fr;
|
|
2351
|
+
align-items: start;
|
|
2352
|
+
gap: var(--alert-gap-horizontal-mobile);
|
|
2353
|
+
box-sizing: border-box;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
@media (min-width: 600px) {
|
|
2357
|
+
:host {
|
|
2358
|
+
gap: var(--alert-gap-horizontal-desktop);
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
@media (min-width: 600px) {
|
|
2363
|
+
.icon {
|
|
2364
|
+
margin-top: var(--space-000);
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
.label {
|
|
2369
|
+
color: var(${d}); font-weight: var(--font-weight-bold);
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
mui-body::part(display) {
|
|
2373
|
+
display: inline;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
mui-body::part(gap) {
|
|
2377
|
+
gap: var(--space-000);
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
${["positive","info","warning","attention"].map(v=>`
|
|
2381
|
+
:host([variant="${v}"]) {
|
|
2382
|
+
border: var(--feedback-${v}-border);
|
|
2383
|
+
background: var(--feedback-${v}-background);
|
|
2384
|
+
}
|
|
2385
|
+
`).join("")}
|
|
2386
|
+
`;this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2387
|
+
<style>${p}</style>
|
|
2388
|
+
<${c} size="small" color="var(${h})" class="icon"></${c}>
|
|
2389
|
+
<mui-body>
|
|
2390
|
+
<span class="label">${u}</span>
|
|
2391
|
+
<slot></slot>
|
|
2392
|
+
</mui-body>
|
|
2393
|
+
`)}}customElements.define("mui-alert",Lt);const Tt=["neutral","positive","info","warning","attention"],Mt={neutral:"background-color: var(--feedback-neutral-background); border: var(--feedback-neutral-border);",positive:"background-color: var(--feedback-positive-background); border: var(--feedback-positive-border);",info:"background-color: var(--feedback-info-background); border: var(--feedback-info-border);",warning:"background-color: var(--feedback-warning-background); border: var(--feedback-warning-border);",attention:"background-color: var(--feedback-attention-background); border: var(--feedback-attention-border);"},Ct={neutral:"polite",positive:"polite",info:"polite",warning:"assertive",attention:"assertive"},$t={neutral:"status",positive:"status",info:"status",warning:"alert",attention:"alert"},_t={neutral:"--feedback-neutral-icon",positive:"--feedback-positive-icon",info:"--feedback-info-icon",warning:"--feedback-warning-icon",attention:"--feedback-attention-icon"},St={neutral:"color: var(--feedback-neutral-text);",positive:"color: var(--feedback-positive-text);",info:"color: var(--feedback-info-text);",warning:"color: var(--feedback-warning-text);",attention:"color: var(--feedback-attention-text);"},Rt={neutral:"mui-icon-message",positive:"mui-icon-check",info:"mui-icon-info",warning:"mui-icon-warning",attention:"mui-icon-attention"};class Ht extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.getAttribute("variant")||"neutral",e=Tt.includes(t)?t:"neutral",i=this.getAttribute("heading")||"Heading...",o=this.getAttribute("icon")||Rt[e],a=_t[e],n=St[e],l=Mt[e],c=Ct[e],h=$t[e],d=`
|
|
2394
|
+
:host {
|
|
2395
|
+
display: block;
|
|
2396
|
+
width: 100%;
|
|
2397
|
+
box-sizing: border-box;
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
section {
|
|
2401
|
+
padding: var(--message-padding);
|
|
2402
|
+
border-radius: var(--message-radius);
|
|
2403
|
+
${l}
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
.icon {
|
|
2407
|
+
margin-top: var(--space-025);
|
|
2408
|
+
display: flex;
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
.heading {
|
|
2412
|
+
font-weight: var(--font-weight-bold);
|
|
2413
|
+
font-size: var(--font-size-200);
|
|
2414
|
+
${n}
|
|
2415
|
+
}
|
|
2416
|
+
`;this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2417
|
+
<style>${d}</style>
|
|
2418
|
+
|
|
2419
|
+
<section aria-labelledby="message-heading" aria-live="${c}" role="${h}">
|
|
2420
|
+
<mui-h-stack space="var(--message-gap-horizontal)">
|
|
2421
|
+
<div class="icon">
|
|
2422
|
+
<${o} color="var(${a})"></${o}>
|
|
2423
|
+
</div>
|
|
2424
|
+
<mui-v-stack space="var(--message-gap-vertical)">
|
|
2425
|
+
<div class="heading" id="message-heading">${i}</div>
|
|
2426
|
+
<slot>
|
|
2427
|
+
<mui-body>Body content...</mui-body>
|
|
2428
|
+
</slot>
|
|
2429
|
+
</mui-v-stack>
|
|
2430
|
+
</mui-h-stack>
|
|
2431
|
+
</section>
|
|
2432
|
+
`)}}customElements.define("mui-message",Ht);class It extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.acceptedFileTypes=this.getAttribute("acceptedFileTypes")||"",this.currentFileName=this.getAttribute("currentFileName")||"",this.selectedFileName=null,this.render(),this.cacheElements(),this.attachEvents()}render(){this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2433
|
+
<style>
|
|
2434
|
+
.wrapper {
|
|
2435
|
+
transition: background-color var(--speed-300) ease;
|
|
2436
|
+
cursor: pointer;
|
|
2437
|
+
align-items: center;
|
|
2438
|
+
justify-content: space-between;
|
|
2439
|
+
padding-left: 16px;
|
|
2440
|
+
display: flex;
|
|
2441
|
+
width: 100%;
|
|
2442
|
+
line-height: var(--text-line-height-s);
|
|
2443
|
+
box-sizing: border-box;
|
|
2444
|
+
font-size: var(--text-font-size-s);
|
|
2445
|
+
border-radius: var(--radius-100);
|
|
2446
|
+
border: var(--border-thin);
|
|
2447
|
+
border-style: dashed;
|
|
2448
|
+
border-color: var(--form-default-border-color);
|
|
2449
|
+
color: var(--text-color);
|
|
2450
|
+
background: var(--input-background);
|
|
2451
|
+
min-height: 4.2rem;
|
|
2452
|
+
}
|
|
2453
|
+
.wrapper:hover {
|
|
2454
|
+
border-color: var(--form-default-border-color-hover);
|
|
2455
|
+
}
|
|
2456
|
+
.label {
|
|
2457
|
+
width: 90px;
|
|
2458
|
+
white-space: nowrap;
|
|
2459
|
+
overflow: hidden;
|
|
2460
|
+
text-overflow: ellipsis;
|
|
2461
|
+
}
|
|
2462
|
+
@media (min-width: 340px) {
|
|
2463
|
+
.label {
|
|
2464
|
+
width: 115px;
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
@media (min-width: 440px) {
|
|
2468
|
+
.label {
|
|
2469
|
+
width: 175px;
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
@media (min-width: 600px) {
|
|
2473
|
+
.label {
|
|
2474
|
+
width: 220px;
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
mui-button::part(height) {
|
|
2479
|
+
margin-right: 0.1rem;
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
mui-button::part(height) {
|
|
2483
|
+
height: calc(4.2rem - 0.4rem);
|
|
2484
|
+
padding: var(--space-400);
|
|
2485
|
+
padding-top: var(--space-000);
|
|
2486
|
+
padding-bottom: var(--space-000);
|
|
2487
|
+
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
mui-button::part(border-radius) {
|
|
2491
|
+
border-radius: calc(var(--radius-100) - 2px);
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
input[type="file"] {
|
|
2495
|
+
display: none;
|
|
2496
|
+
}
|
|
2497
|
+
</style>
|
|
2498
|
+
<div class="wrapper">
|
|
2499
|
+
<span class="label">${this.currentFileName}</span>
|
|
2500
|
+
<mui-button variant="tertiary">Browse</mui-button>
|
|
2501
|
+
<input type="file" accept="${this.acceptedFileTypes}" />
|
|
2502
|
+
</div>
|
|
2503
|
+
`)}cacheElements(){this.shadowRoot&&(this.wrapper=this.shadowRoot.querySelector(".wrapper"),this.label=this.shadowRoot.querySelector(".label"),this.button=this.shadowRoot.querySelector(".button"),this.input=this.shadowRoot.querySelector('input[type="file"]'))}attachEvents(){this.wrapper.addEventListener("click",()=>{this.input.click()}),this.input.addEventListener("change",this.handleFileChange.bind(this))}handleFileChange(t){var s;const i=(s=t.target.files)==null?void 0:s[0];i&&(this.selectedFileName=i.name,this.label.textContent=i.name,this.dispatchEvent(new CustomEvent("file-upload",{detail:{file:i},bubbles:!0,composed:!0})))}}customElements.define("mui-file-upload",It);class Pt extends HTMLElement{constructor(){super(),this.hasAttribute("direction")||this.setAttribute("direction","horizontal"),this.handleTabChange=this.handleTabChange.bind(this),this.shadow=this.attachShadow({mode:"open"}),this.shadow.innerHTML=`
|
|
2504
|
+
<style>
|
|
2505
|
+
:host {
|
|
2506
|
+
display: block;
|
|
2507
|
+
overflow: hidden;
|
|
2508
|
+
position: relative;
|
|
2509
|
+
background: var(--carousel-background);
|
|
2510
|
+
border-radius: var(--carousel-radius);
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.panel-slot {
|
|
2514
|
+
width: 100%;
|
|
2515
|
+
height: 100%;
|
|
2516
|
+
overflow: hidden;
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
.carousel-track {
|
|
2520
|
+
display: grid;
|
|
2521
|
+
transition: transform var(--speed-400) ease-in-out;
|
|
2522
|
+
width: 100%;
|
|
2523
|
+
height: 100%;
|
|
2524
|
+
grid-auto-flow: column;
|
|
2525
|
+
grid-auto-columns: 100%;
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
::slotted([slot="item"]) { width: 100%; height: 100%; }
|
|
2529
|
+
.controls { display: flex; }
|
|
2530
|
+
|
|
2531
|
+
|
|
2532
|
+
/* Base positioning for all control slots */
|
|
2533
|
+
::slotted([slot="controls"]) {
|
|
2534
|
+
position: absolute;
|
|
2535
|
+
z-index: 10;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
::slotted([slot="controls"][controlsPosition="top"]) {
|
|
2539
|
+
top: var(--carousel-tab-position);
|
|
2540
|
+
left: 50%;
|
|
2541
|
+
transform: translateX(-50%);
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
::slotted([slot="controls"][controlsPosition="right"]) {
|
|
2545
|
+
top: 50%;
|
|
2546
|
+
right: var(--carousel-tab-position);
|
|
2547
|
+
transform: translateY(-50%);
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
::slotted([slot="controls"][controlsPosition="bottom"]) {
|
|
2551
|
+
bottom: var(--carousel-tab-position);
|
|
2552
|
+
left: 50%;
|
|
2553
|
+
transform: translateX(-50%);
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
::slotted([slot="controls"][controlsPosition="left"]) {
|
|
2557
|
+
top: 50%;
|
|
2558
|
+
left: var(--carousel-tab-position);
|
|
2559
|
+
transform: translateY(-50%);
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
::slotted([slot="controls"][controlsPosition="top-left"]) {
|
|
2563
|
+
top: var(--carousel-tab-position);
|
|
2564
|
+
left: var(--carousel-tab-position);
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
::slotted([slot="controls"][controlsPosition="top-right"]) {
|
|
2568
|
+
top: var(--carousel-tab-position);
|
|
2569
|
+
right: var(--carousel-tab-position);
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
::slotted([slot="controls"][controlsPosition="bottom-right"]) {
|
|
2573
|
+
bottom: var(--carousel-tab-position);
|
|
2574
|
+
right: var(--carousel-tab-position);
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
::slotted([slot="controls"][controlsPosition="bottom-left"]) {
|
|
2578
|
+
bottom: var(--carousel-tab-position);
|
|
2579
|
+
left: var(--carousel-tab-position);
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
/* Fallback (bottom-center) if no controlsPosition specified */
|
|
2583
|
+
::slotted([slot="controls"]:not([controlsPosition])) {
|
|
2584
|
+
bottom: var(--carousel-tab-position);
|
|
2585
|
+
left: 50%;
|
|
2586
|
+
transform: translateX(-50%);
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
</style>
|
|
2590
|
+
|
|
2591
|
+
<slot name="controls"></slot>
|
|
2592
|
+
<div class="panel-slot">
|
|
2593
|
+
<div class="carousel-track">
|
|
2594
|
+
<slot name="item"></slot>
|
|
2595
|
+
</div>
|
|
2596
|
+
</div>
|
|
2597
|
+
`}connectedCallback(){this.addEventListener("tab-change",this.handleTabChange);const t=this.querySelector("tab-bar");if(t){const e=t.querySelector("tab-item[active]");e&&this.updatePanels(e.id)}}handleTabChange(t){const e=t;this.updatePanels(e.detail.activeId)}updatePanels(t){const e=this.querySelectorAll("mui-carousel-panel"),i=this.shadow.querySelector(".carousel-track"),s=Array.from(e).findIndex(o=>o.getAttribute("item")===t);s!==-1&&(i.style.transform=`translateX(-${s*100}%)`)}}customElements.define("mui-carousel-controller",Pt);class Ot extends HTMLElement{static get observedAttributes(){return["item"]}constructor(){super();const t=this.attachShadow({mode:"open"});t.innerHTML=`
|
|
2598
|
+
<style>
|
|
2599
|
+
:host {
|
|
2600
|
+
display: block;
|
|
2601
|
+
box-sizing: border-box;
|
|
2602
|
+
overflow: hidden;
|
|
2603
|
+
}
|
|
2604
|
+
</style>
|
|
2605
|
+
<slot></slot>
|
|
2606
|
+
`}get item(){return this.getAttribute("item")}set item(t){t!==null&&this.setAttribute("item",t)}attributeChangedCallback(t,e,i){}}customElements.define("mui-carousel-panel",Ot);class qt extends HTMLElement{constructor(){super(),this._animationSpeed=200,this.attachShadow({mode:"open"}),this._handleResize=this._handleResize.bind(this),this._hasInitialized=!1,this._resizeTimeout=null,this._observedTab=null,this._activeTab=null,this._resizeObserver=new ResizeObserver(()=>{this._activeTab&&this._updateHighlight(this._activeTab)})}connectedCallback(){const t=this.getAttribute("speed")||"200";this._animationSpeed=parseInt(t,10);const e=Array.from(this.children);this.hasAttribute("full-width")&&this.classList.add("full-width"),this.setAttribute("role","tablist");const s=this.getAttribute("orientation")||"horizontal";this.setAttribute("aria-orientation",s),this.addEventListener("keydown",o=>{const a=Array.from(this.children),n=a.findIndex(d=>d.hasAttribute("active")),l=this.getAttribute("aria-orientation")||"horizontal";let c=n;switch(o.key){case"ArrowRight":l==="horizontal"&&(c=(n+1)%a.length,o.preventDefault());break;case"ArrowLeft":l==="horizontal"&&(c=(n-1+a.length)%a.length,o.preventDefault());break;case"ArrowDown":l==="vertical"&&(c=(n+1)%a.length,o.preventDefault());break;case"ArrowUp":l==="vertical"&&(c=(n-1+a.length)%a.length,o.preventDefault());break;case"Home":c=0,o.preventDefault();break;case"End":c=a.length-1,o.preventDefault();break;default:return}const h=a[c];h&&(this.setActiveTab(h),h.focus())}),e.forEach((o,a)=>{o.classList.remove("first","middle","last","only"),e.length===1?o.classList.add("only"):a===0?o.classList.add("first"):a===e.length-1?o.classList.add("last"):o.classList.add("middle")}),e.forEach(o=>{const a=o;a.addEventListener("click",()=>{this.setActiveTab(a)})}),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2607
|
+
<style>
|
|
2608
|
+
:host {
|
|
2609
|
+
--tab-animation-speed: ${this._animationSpeed}ms;
|
|
2610
|
+
position: relative;
|
|
2611
|
+
display: inline-flex;
|
|
2612
|
+
border-width: var(--stroke-size-100);
|
|
2613
|
+
border-style: var(--stroke-solid);
|
|
2614
|
+
border-color: var(--tab-border-color);
|
|
2615
|
+
border-radius: var(--tab-radius);
|
|
2616
|
+
background: var(--tab-background);
|
|
2617
|
+
will-change: transform;
|
|
2618
|
+
box-sizing: border-box;
|
|
2619
|
+
overflow: hidden;
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
:host(.full-width) {
|
|
2623
|
+
display: flex;
|
|
2624
|
+
width: 100%;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
.highlight {
|
|
2628
|
+
border-radius: calc(var(--tab-radius) - 0.2rem);
|
|
2629
|
+
position: absolute;
|
|
2630
|
+
top: 0;
|
|
2631
|
+
bottom: 0;
|
|
2632
|
+
background: var(--tab-background-active);
|
|
2633
|
+
transition: transform var(--tab-animation-speed) cubic-bezier(0.25, 1, 0.5, 1), width var(--tab-animation-speed) cubic-bezier(0.25, 1, 0.5, 1);
|
|
2634
|
+
z-index: 0;
|
|
2635
|
+
padding: var(--space-200) var(--space-400);
|
|
2636
|
+
box-sizing: border-box;
|
|
2637
|
+
box-shadow: 0 0 4px 4px var(--tab-shadow-active);
|
|
2638
|
+
will-change: transform, width;
|
|
2639
|
+
transform: translateX(0);
|
|
2640
|
+
width: 0;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
::slotted(mui-tab-item) {
|
|
2644
|
+
position: relative;
|
|
2645
|
+
z-index: 1;
|
|
2646
|
+
flex: 1;
|
|
2647
|
+
contain: content; /* Performance optimization */
|
|
2648
|
+
}
|
|
2649
|
+
</style>
|
|
2650
|
+
<div class="highlight"></div>
|
|
2651
|
+
<slot></slot>
|
|
2652
|
+
`,window.addEventListener("resize",this._handleResize),this._resizeObserver.observe(this),requestAnimationFrame(()=>{const o=this.shadowRoot.querySelector(".highlight");o.style.transition="none";const a=e.find(n=>n.hasAttribute("active"))||e[0];a&&(this._activeTab=a,a.setAttribute("active",""),this._updateHighlight(a),this._observedTab=a,this._resizeObserver.observe(a)),o.offsetWidth,requestAnimationFrame(()=>{o.style.transition="",this._hasInitialized=!0})}))}disconnectedCallback(){window.removeEventListener("resize",this._handleResize),this._observedTab&&this._resizeObserver.unobserve(this._observedTab),this._resizeObserver.unobserve(this),this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeObserver.disconnect()}_handleResize(){if(!this._activeTab)return;this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._activeTab&&Array.from(this.children).forEach(e=>{e===this._activeTab?e.setAttribute("active",""):e.removeAttribute("active")});const t=this.shadowRoot.querySelector(".highlight");t&&(t.style.transition="none",this._updateHighlight(this._activeTab),t.offsetWidth,this._resizeTimeout=window.setTimeout(()=>{t.style.transition="",this._updateHighlight(this._activeTab)},100))}_updateHighlight(t){const e=this.shadowRoot.querySelector(".highlight"),i=t.getBoundingClientRect(),s=this.getBoundingClientRect(),o=parseFloat(getComputedStyle(this).borderWidth)||0,a=i.left-s.left-o;e.style.transform=`translateX(${a}px)`,e.style.width=`${i.width}px`}setActiveTab(t){if(Array.from(this.children).forEach(i=>i.removeAttribute("active")),t.setAttribute("active",""),this._activeTab=t,this._observedTab&&this._observedTab!==t&&this._resizeObserver.unobserve(this._observedTab),this._observedTab=t,this._resizeObserver.observe(t),this._hasInitialized)this._updateHighlight(t);else{const i=this.shadowRoot.querySelector(".highlight");i.style.transition="none",this._updateHighlight(t),i.offsetWidth,i.style.transition="",this._hasInitialized=!0}this.dispatchEvent(new CustomEvent("tab-change",{bubbles:!0,composed:!0,detail:{activeId:t.id}}))}}customElements.define("mui-tab-bar",qt);class Dt extends HTMLElement{constructor(){super(),this.handleTabChange=this.handleTabChange.bind(this)}connectedCallback(){this.addEventListener("tab-change",this.handleTabChange);const t=this.querySelector("mui-tab-bar");if(t){const e=t.querySelector("mui-tab-item[active]");e&&this.updatePanels(e.id)}}handleTabChange(t){const e=t;this.updatePanels(e.detail.activeId)}updatePanels(t){this.querySelectorAll("mui-tab-panel").forEach(i=>{i.getAttribute("item")===t?i.style.display="":i.style.display="none"})}}customElements.define("mui-tab-controller",Dt);class Nt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}static get observedAttributes(){return["active"]}attributeChangedCallback(t,e,i){t==="active"&&this.updateActiveState()}connectedCallback(){if(!this.shadowRoot)return;const t=this.getAttribute("icon");this.setAttribute("tabindex",this.hasAttribute("active")?"0":"-1"),this.shadowRoot.innerHTML="";const e=document.createElement("style");if(e.textContent=`
|
|
2653
|
+
:host {
|
|
2654
|
+
user-select: none;
|
|
2655
|
+
display: flex;
|
|
2656
|
+
justify-content: center;
|
|
2657
|
+
gap: var(--space-100);
|
|
2658
|
+
align-items: center;
|
|
2659
|
+
padding: var(--space-200) var(--space-400);
|
|
2660
|
+
font-size: var(--text-font-size-m);
|
|
2661
|
+
line-height: var(--text-line-height-m);
|
|
2662
|
+
font-weight: var(--font-weight-bold);
|
|
2663
|
+
color: var(--tab-text-color);
|
|
2664
|
+
background: transparent;
|
|
2665
|
+
white-space: nowrap;
|
|
2666
|
+
cursor: pointer;
|
|
2667
|
+
min-height: 4.2rem;
|
|
2668
|
+
box-sizing: border-box;
|
|
2669
|
+
border-radius: calc(var(--tab-radius) - 0.2rem);
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
:host(.active) {
|
|
2673
|
+
color: var(--tab-text-color-active);
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
:host(.active:focus-visible) {
|
|
2677
|
+
outline: var(--outline-thick);
|
|
2678
|
+
outline-offset: -5px;
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
::slotted(*) {
|
|
2682
|
+
margin-left: var(--space-100);
|
|
2683
|
+
}
|
|
2684
|
+
`,this.shadowRoot.appendChild(e),t&&t.trim()!==""&&customElements.get(t)){const s=document.createElement(t);s.setAttribute("color","var(--tab-icon)"),s.setAttribute("size","small"),this.shadowRoot.appendChild(s),this.iconEl=s}const i=document.createElement("slot");this.shadowRoot.appendChild(i),this.updateActiveState()}updateActiveState(){const t=this.hasAttribute("active");this.classList.toggle("active",t),this.setAttribute("role","tab"),this.setAttribute("aria-selected",t?"true":"false"),this.setAttribute("tabindex",t?"0":"-1"),this.iconEl&&this.iconEl.setAttribute("color",t?"var(--tab-icon-active)":"var(--tab-icon)")}}customElements.define("mui-tab-item",Nt);class Ft extends HTMLElement{static get observedAttributes(){return["item"]}constructor(){super();const t=this.attachShadow({mode:"open"});t.innerHTML=`
|
|
2685
|
+
<style>
|
|
2686
|
+
:host {
|
|
2687
|
+
display: block;
|
|
2688
|
+
}
|
|
2689
|
+
.inner {
|
|
2690
|
+
padding: var(--tab-panel-padding, 0);
|
|
2691
|
+
}
|
|
2692
|
+
</style>
|
|
2693
|
+
<div class="inner">
|
|
2694
|
+
<slot></slot>
|
|
2695
|
+
</div>
|
|
2696
|
+
`}get item(){return this.getAttribute("item")}set item(t){t!==null?this.setAttribute("item",t):this.removeAttribute("item")}attributeChangedCallback(t,e,i){}}customElements.define("mui-tab-panel",Ft);class Bt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.setAttribute("role","list"),this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2697
|
+
<style>
|
|
2698
|
+
|
|
2699
|
+
:host {
|
|
2700
|
+
display: block;
|
|
2701
|
+
width: 100%;
|
|
2702
|
+
list-style-position: outside;
|
|
2703
|
+
padding: var(--space-000);
|
|
2704
|
+
margin: var(--space-000);
|
|
2705
|
+
padding-left: var(--space-400);
|
|
2706
|
+
box-sizing: border-box;
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
:host([as="ol"]) {
|
|
2710
|
+
list-style-type: decimal;
|
|
2711
|
+
}
|
|
2712
|
+
:host([as="ul"]) {
|
|
2713
|
+
list-style-type: disc;
|
|
2714
|
+
}
|
|
2715
|
+
</style>
|
|
2716
|
+
<slot></slot>
|
|
2717
|
+
`)}}customElements.define("mui-list",Bt);class Vt extends HTMLElement{static get observedAttributes(){return["variant","size","weight"]}constructor(){super(),this.attachShadow({mode:"open"}),this.setAttribute("role","listitem"),this.hasAttribute("size")||this.setAttribute("size","medium"),this.hasAttribute("weight")||this.setAttribute("weight","regular"),this.render()}attributeChangedCallback(){this.render()}render(){const t=`
|
|
2718
|
+
:host {
|
|
2719
|
+
display: list-item;
|
|
2720
|
+
margin: var(--space-000);
|
|
2721
|
+
color: var(--text-color);
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
/* Size styles */
|
|
2725
|
+
|
|
2726
|
+
:host([size="x-small"]) {
|
|
2727
|
+
font-size: var(--text-font-size-xs);
|
|
2728
|
+
line-height: var(--text-line-height-xs);
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
:host([size="small"]) {
|
|
2732
|
+
font-size: var(--text-font-size-s);
|
|
2733
|
+
line-height: var(--text-line-height-s);
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
:host([size="medium"]) {
|
|
2737
|
+
font-size: var(--text-font-size-m);
|
|
2738
|
+
line-height: var(--text-line-height-m);
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
:host([size="large"]) {
|
|
2742
|
+
font-size: var(--text-font-size-l);
|
|
2743
|
+
line-height: var(--text-line-height-l);
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
|
|
2747
|
+
/* Weight styles */
|
|
2748
|
+
:host([weight="regular"]) {
|
|
2749
|
+
font-weight: var(--font-weight-regular);
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
:host([weight="medium"]) {
|
|
2753
|
+
font-weight: var(--font-weight-medium);
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
:host([weight="bold"]) {
|
|
2757
|
+
font-weight: var(--font-weight-bold);
|
|
2758
|
+
}
|
|
2759
|
+
`;this.shadowRoot&&(this.shadowRoot.innerHTML=`
|
|
2760
|
+
<style>${t}</style>
|
|
2761
|
+
<slot></slot>
|
|
2762
|
+
`)}}customElements.define("mui-list-item",Vt);class jt extends HTMLElement{static get observedAttributes(){return["type","name","value","placeholder","id","label","disabled","hide-label","variant"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render(),this.setupListener()}attributeChangedCallback(t,e,i){var o;const s=(o=this.shadowRoot)==null?void 0:o.querySelector("input");s&&(t==="value"&&(s.value=i??""),t==="disabled"&&(i===null||i==="false"?s.removeAttribute("disabled"):s.setAttribute("disabled","")),(t==="type"||t==="placeholder"||t==="label"||t==="hide-label")&&(this.render(),this.setupListener()))}setupListener(){var i,s;const t=(i=this.shadowRoot)==null?void 0:i.querySelector("input");if(!t)return;const e=t.cloneNode(!0);(s=t.parentNode)==null||s.replaceChild(e,t),e.addEventListener("input",o=>{const a=o.target;this.dispatchEvent(new CustomEvent("input",{detail:{value:a.value},bubbles:!0,composed:!0}))}),e.addEventListener("change",o=>{const a=o.target;this.dispatchEvent(new CustomEvent("change",{detail:{value:a.value},bubbles:!0,composed:!0}))})}render(){const t=["text","password","email","number","search","tel","url","date","time"],e=this.getAttribute("type")||"text",i=t.includes(e)?e:"text",s=this.getAttribute("name")||"",o=this.getAttribute("value")||"",a=this.getAttribute("placeholder")||"",n=this.getAttribute("id")||`mui-input-${Math.random().toString(36).substr(2,9)}`,l=this.getAttribute("label")||"",c=this.hasAttribute("hide-label"),h=this.hasAttribute("disabled"),d=c&&l?`aria-label="${l}"`:"",u=this.getAttribute("variant")||"",p=u||"",v=this.querySelector('[slot="before"]')!==null,g=this.querySelector('[slot="after"]')!==null,f=[p,v?"before":"",g?"after":""].filter(Boolean).join(" ");c&&!l&&console.warn("mui-input Accessibility warning: When using 'hide-label', please provide a 'label' attribute so an 'aria-label' can be generated for screen reader support."),!l&&!d&&console.warn("mui-input Accessibility warning: A 'label' or 'aria-label' attribute is required for screen reader accessibility.");const k=`
|
|
2763
|
+
<style>
|
|
2764
|
+
:host {
|
|
2765
|
+
display: inline-block;
|
|
2766
|
+
width: 100%;
|
|
2767
|
+
}
|
|
2768
|
+
label {
|
|
2769
|
+
display: block;
|
|
2770
|
+
font-size: var(--text-font-size);
|
|
2771
|
+
font-weight: var(--font-weight-medium);
|
|
2772
|
+
margin-bottom: var(--space-100);
|
|
2773
|
+
color: var(--text-color);
|
|
2774
|
+
}
|
|
2775
|
+
.input-wrapper {
|
|
2776
|
+
display: flex;
|
|
2777
|
+
width: 100%;
|
|
2778
|
+
}
|
|
2779
|
+
input {
|
|
2780
|
+
min-height: 4.4rem;
|
|
2781
|
+
width: 100%;
|
|
2782
|
+
line-height: var(--text-line-height);
|
|
2783
|
+
padding: var(--space-200) var(--space-300);
|
|
2784
|
+
box-sizing: border-box;
|
|
2785
|
+
font-size: var(--text-font-size);
|
|
2786
|
+
border-radius: var(--radius-100);
|
|
2787
|
+
border: var(--border-thin);
|
|
2788
|
+
border-color: var(--form-default-border-color);
|
|
2789
|
+
color: var(--text-color);
|
|
2790
|
+
background: var(--input-background);
|
|
2791
|
+
}
|
|
2792
|
+
input:hover {
|
|
2793
|
+
border-color: var(--form-default-border-color-hover);
|
|
2794
|
+
}
|
|
2795
|
+
input:focus {
|
|
2796
|
+
outline: var(--outline-thick);
|
|
2797
|
+
}
|
|
2798
|
+
input:disabled {
|
|
2799
|
+
opacity: 0.4;
|
|
2800
|
+
cursor: not-allowed;
|
|
2801
|
+
background-color: var(--input-background-disabled);
|
|
2802
|
+
}
|
|
2803
|
+
input.success {
|
|
2804
|
+
color: var(--form-success-text-color);
|
|
2805
|
+
border-color: var(--form-success-border-color);
|
|
2806
|
+
box-shadow: 0 0 0 2px var(--form-success-border-color);
|
|
2807
|
+
}
|
|
2808
|
+
input.warning {
|
|
2809
|
+
color: var(--form-warning-text-color);
|
|
2810
|
+
border-color: var(--form-warning-border-color);
|
|
2811
|
+
box-shadow: 0 0 0 2px var(--form-warning-border-color);
|
|
2812
|
+
}
|
|
2813
|
+
input.error {
|
|
2814
|
+
color: var(--form-error-text-color);
|
|
2815
|
+
border-color: var(--form-error-border-color);
|
|
2816
|
+
box-shadow: 0 0 0 2px var(--form-error-border-color);
|
|
2817
|
+
}
|
|
2818
|
+
input.success:hover {
|
|
2819
|
+
color: var(--form-success-text-color-hover);
|
|
2820
|
+
border-color: var(--form-success-border-color-hover);
|
|
2821
|
+
box-shadow: 0 0 0 2px var(--form-success-border-color-hover);
|
|
2822
|
+
}
|
|
2823
|
+
input.warning:hover {
|
|
2824
|
+
color: var(--form-warning-text-color-hover);
|
|
2825
|
+
border-color: var(--form-warning-border-color-hover);
|
|
2826
|
+
box-shadow: 0 0 0 2px var(--form-warning-border-color-hover);
|
|
2827
|
+
}
|
|
2828
|
+
input.error:hover {
|
|
2829
|
+
color: var(--form-error-text-color-hover);
|
|
2830
|
+
border-color: var(--form-error-border-color-hover);
|
|
2831
|
+
box-shadow: 0 0 0 2px var(--form-error-border-color-hover);
|
|
2832
|
+
}
|
|
2833
|
+
.vh {
|
|
2834
|
+
position: absolute;
|
|
2835
|
+
width: 1px;
|
|
2836
|
+
height: 1px;
|
|
2837
|
+
margin: -1px;
|
|
2838
|
+
padding: 0;
|
|
2839
|
+
overflow: hidden;
|
|
2840
|
+
clip: rect(0 0 0 0);
|
|
2841
|
+
white-space: nowrap;
|
|
2842
|
+
border: 0;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
/* ========================================================================== */
|
|
2846
|
+
/* STYLES FOR BEFORE & AFTER (ADDON & SELECT) */
|
|
2847
|
+
/* ========================================================================== */
|
|
2848
|
+
|
|
2849
|
+
input.before { border-top-left-radius: 0; border-bottom-left-radius: 0;}
|
|
2850
|
+
input.after { border-top-right-radius: 0; border-bottom-right-radius: 0;}
|
|
2851
|
+
|
|
2852
|
+
/* ========================================================================== */
|
|
2853
|
+
/* LOGIC FOR FOCUS ORDER of BEFORE, AFTER & INPUT */
|
|
2854
|
+
/* The goal is to not exceed 1 order to avoid potential UI bugs */
|
|
2855
|
+
/* when input and the before/after feature is used in compositions. */
|
|
2856
|
+
/* ========================================================================== */
|
|
2857
|
+
|
|
2858
|
+
/* ========================================================================== */
|
|
2859
|
+
/* 1. BEFORE: Slotted items are Z-INDEX AUTO by default */
|
|
2860
|
+
/* ========================================================================== */
|
|
2861
|
+
|
|
2862
|
+
/* If slotted item is BEFORE & FOCUSED then sit ABOVE INPUT */
|
|
2863
|
+
|
|
2864
|
+
/* ========================================================================== */
|
|
2865
|
+
/* 2. INPUT: Slotted items are Z-INDEX AUTO by default */
|
|
2866
|
+
/* ========================================================================== */
|
|
2867
|
+
|
|
2868
|
+
/* If INPUT is FOCUSED then sit ABOVE BEFORE & AFTER ITEMS */
|
|
2869
|
+
|
|
2870
|
+
/* ========================================================================== */
|
|
2871
|
+
/* 3. AFTER: Slotted items are Z-INDEX AUTO by default */
|
|
2872
|
+
/* ========================================================================== */
|
|
2873
|
+
|
|
2874
|
+
/* If slotted item is AFTER & FOCUSED then sit ABOVE INPUT */
|
|
2875
|
+
|
|
2876
|
+
/* ========================================================================== */
|
|
2877
|
+
/* 4. FINAL CONCLUSION ON APPROACH */
|
|
2878
|
+
/* ========================================================================== */
|
|
2879
|
+
/* Currently only mui-select is slotted, this might be the only */
|
|
2880
|
+
/* use-case, but for now we will use '*' to ensure any element that */
|
|
2881
|
+
/* is focusable will be addressed. */
|
|
2882
|
+
/* ========================================================================== */
|
|
2883
|
+
|
|
2884
|
+
slot[name="before"]::slotted(*:focus),
|
|
2885
|
+
input:focus,
|
|
2886
|
+
slot[name="after"]::slotted(*:focus) { z-index: 1; }
|
|
2887
|
+
|
|
2888
|
+
/* Ensure feedback styles appear above SELECT and focusable Items */
|
|
2889
|
+
input.success,
|
|
2890
|
+
input.warning,
|
|
2891
|
+
input.error {
|
|
2892
|
+
z-index: 1;
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
/* ========================================================================== */
|
|
2896
|
+
|
|
2897
|
+
|
|
2898
|
+
</style>
|
|
2899
|
+
${l?`<label for="${n}" class="${c?"vh":""}">${l}</label>`:""}
|
|
2900
|
+
<div class="input-wrapper">
|
|
2901
|
+
<slot name="before"></slot>
|
|
2902
|
+
<input
|
|
2903
|
+
class="${f}"
|
|
2904
|
+
type="${i}"
|
|
2905
|
+
name="${s}"
|
|
2906
|
+
id="${n}"
|
|
2907
|
+
value="${o}"
|
|
2908
|
+
placeholder="${a}"
|
|
2909
|
+
${h?'disabled aria-disabled="true"':""}
|
|
2910
|
+
${d}
|
|
2911
|
+
/>
|
|
2912
|
+
<slot name="after"></slot>
|
|
2913
|
+
</div>
|
|
2914
|
+
`;this.shadowRoot&&(this.shadowRoot.innerHTML=k)}}customElements.define("mui-input",jt);const Ut="modulepreload",Xt=function(r){return"/"+r},y={},m=function(t,e,i){let s=Promise.resolve();if(e&&e.length>0){let a=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),l=(n==null?void 0:n.nonce)||(n==null?void 0:n.getAttribute("nonce"));s=a(e.map(c=>{if(c=Xt(c),c in y)return;y[c]=!0;const h=c.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const u=document.createElement("link");if(u.rel=h?"stylesheet":Ut,h||(u.as="script"),u.crossOrigin="",u.href=c,l&&u.setAttribute("nonce",l),document.head.appendChild(u),h)return new Promise((p,v)=>{u.addEventListener("load",p),u.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=a,window.dispatchEvent(n),!n.defaultPrevented)throw a}return s.then(a=>{for(const n of a||[])n.status==="rejected"&&o(n.reason);return t().catch(o)})};class Yt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.setAttribute("tabindex","0"),this.setAttribute("role","main");const t=document.createElement("style");t.textContent=`
|
|
2915
|
+
:host {
|
|
2916
|
+
display: grid;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
:host(.focused) {
|
|
2920
|
+
outline-offset: calc(var(--stroke-size-500) * -1);
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
@media (min-width: 960px) {
|
|
2924
|
+
:host {
|
|
2925
|
+
padding: var(--space-500);
|
|
2926
|
+
padding-left: var(--space-500);
|
|
2927
|
+
padding-right: var(--space-500);
|
|
2928
|
+
padding-bottom: var(--space-500);
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
`,this.shadowRoot.appendChild(t)}async loadComponent(){var a;const t=window.location.hash.slice(1)||"/home",e={"/home":"home-page","/design-guidelines":"design-guidelines","/theme-setup":"theme-setup","/create-mui-app":"create-mui-app","/base-design-tokens":"tokens-base","/semantic-design-tokens":"tokens-semantic","/contextual-design-tokens":"tokens-contextual","/surface-design-tokens":"tokens-surface","/components-design-tokens":"tokens-components","/text-part-selectors":"parts-text","/spacing-part-selectors":"parts-spacing","/layout-part-selectors":"parts-layout","/visual-part-selectors":"parts-visual","/smart-card":"story-smart-card","/field":"story-field","/tab-bar":"story-tab-bar","/carousel":"story-carousel","/addon":"story-addon","/input":"story-input","/select":"story-select","/switch":"story-switch","/file-upload":"story-file-upload","/alerts":"story-alert","/messages":"story-message","/badge":"story-badge","/buttons":"story-button","/responsive":"story-responsive","/stacks":"story-stack","/grid":"story-grid","/cards":"story-cards","/container":"story-container","/headings":"story-heading","/body":"story-body","/image":"story-image","/links":"story-link","/list":"story-list","/quote":"story-quote","/rule":"story-rule","/icons":"story-icon","/code":"story-code","/accordion":"story-accordion","/table":"story-table","/slat":"story-slat","/agent":"comp-agent-ui","/wallet":"comp-wallet"};if(!t.startsWith("/"))return;const i=e[t]||e["/home"],s={"home-page":()=>m(()=>import("./index-CwAai54c.js"),__vite__mapDeps([0,1])),"create-mui-app":()=>m(()=>import("./index-Bx-SU7T2.js"),[]),"theme-setup":()=>m(()=>import("./index-DZQ8pS6y.js"),[]),"design-guidelines":()=>m(()=>import("./index-icuV1guL.js"),[]),"tokens-base":()=>m(()=>import("./base-B4dO4n0A.js"),[]),"tokens-semantic":()=>m(()=>import("./semantic-cbNjeY5p.js"),[]),"tokens-contextual":()=>m(()=>import("./contextual-D648xs_u.js"),[]),"tokens-surface":()=>m(()=>import("./surface-CMaW9FgJ.js"),[]),"tokens-components":()=>m(()=>import("./components-YZ3tjmIt.js"),[]),"parts-text":()=>m(()=>import("./text-TVCTYde0.js"),[]),"parts-spacing":()=>m(()=>import("./spacing-DY3cAXq0.js"),[]),"parts-layout":()=>m(()=>import("./layout-BT0xIYa9.js"),[]),"parts-visual":()=>m(()=>import("./visual-B_21dq90.js"),[]),"comp-agent-ui":()=>m(()=>import("./index-DwnvCJk0.js"),__vite__mapDeps([2,1])),"comp-wallet":()=>m(()=>import("./index-CCegrD2J.js"),__vite__mapDeps([3,4])),"story-button":()=>m(()=>import("./index-DlZ1b9ZK.js"),[]),"story-link":()=>m(()=>import("./index-CyWt9f96.js"),[]),"story-icon":()=>m(()=>import("./index-C4ZnvuXX.js"),[]),"story-image":()=>m(()=>import("./index-Ch40uilB.js"),__vite__mapDeps([5,6])),"story-heading":()=>m(()=>import("./index-qOE8f0sK.js"),[]),"story-body":()=>m(()=>import("./index-CHZJlumm.js"),[]),"story-cards":()=>m(()=>import("./index-BnpaoEYs.js"),__vite__mapDeps([7,6])),"story-responsive":()=>m(()=>import("./index-Bc68V_xw.js"),[]),"story-stack":()=>m(()=>import("./index-CT3BsW8R.js"),[]),"story-accordion":()=>m(()=>import("./index-CPZ8jubJ.js"),[]),"story-container":()=>m(()=>import("./index-C10sNeH-.js"),[]),"story-addon":()=>m(()=>import("./index-DNImaJPY.js"),[]),"story-badge":()=>m(()=>import("./index-B4Lbi-ZX.js"),[]),"story-grid":()=>m(()=>import("./index-DI0vNTNv.js"),[]),"story-switch":()=>m(()=>import("./index-0bBJZTXh.js"),[]),"story-slat":()=>m(()=>import("./index-CdghbWW3.js"),[]),"story-rule":()=>m(()=>import("./index-CfD1WQYQ.js"),[]),"story-select":()=>m(()=>import("./index-DP6CCnt0.js"),[]),"story-code":()=>m(()=>import("./index-CSLqxg9p.js"),[]),"story-quote":()=>m(()=>import("./index-ehE10GAP.js"),[]),"story-smart-card":()=>m(()=>import("./index-DBkw7VLa.js"),__vite__mapDeps([8,4])),"story-table":()=>m(()=>import("./index-dkW0Vbeg.js"),[]),"story-field":()=>m(()=>import("./index-_4AZFkzS.js"),[]),"story-alert":()=>m(()=>import("./index-D8hXO6aa.js"),[]),"story-message":()=>m(()=>import("./index-CYYG9dAN.js"),[]),"story-file-upload":()=>m(()=>import("./index-DR5X8zCc.js"),[]),"story-carousel":()=>m(()=>import("./index-CAkZAmud.js"),[]),"story-tab-bar":()=>m(()=>import("./index-C7Tqc5BR.js"),[]),"story-list":()=>m(()=>import("./index-BJJtzLti.js"),[]),"story-input":()=>m(()=>import("./index-BN6UEWFf.js"),[])};await(((a=s[i])==null?void 0:a.call(s))??Promise.resolve()),this.shadowRoot.querySelectorAll("*").forEach(n=>{n.tagName.toLowerCase()!=="style"&&n.remove()});const o=this.shadowRoot.querySelector(i);if(o&&o.classList.contains("server-loaded"))console.log("Server-loaded page, no need to reload.");else{const n=document.createElement(i);n.classList.add("server-loaded"),this.shadowRoot.appendChild(n)}window.scrollTo(0,0)}connectedCallback(){window.addEventListener("hashchange",()=>this.loadComponent()),this.addEventListener("blur",()=>{this.setAttribute("tabindex","-1")}),this.loadComponent()}disconnectedCallback(){window.removeEventListener("hashchange",this.loadComponent)}}customElements.define("app-container",Yt);class Wt extends HTMLElement{static get observedAttributes(){return["link","title"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=`
|
|
2933
|
+
<style>
|
|
2934
|
+
|
|
2935
|
+
:host {
|
|
2936
|
+
display: block;
|
|
2937
|
+
position: sticky;
|
|
2938
|
+
box-shadow: 0 1px 0 0 var(--border-color);
|
|
2939
|
+
z-index: 2;
|
|
2940
|
+
top: 92px;
|
|
2941
|
+
margin-bottom: -1px;
|
|
2942
|
+
background: var(--app-navbar-surface);
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
mui-link {
|
|
2946
|
+
display: block;
|
|
2947
|
+
}
|
|
2948
|
+
|
|
2949
|
+
/* Text Parts */
|
|
2950
|
+
mui-link::part(color) {
|
|
2951
|
+
color: var(--app-nav-accent);
|
|
2952
|
+
}
|
|
2953
|
+
mui-link::part(text-decoration) {
|
|
2954
|
+
text-decoration: none;
|
|
2955
|
+
}
|
|
2956
|
+
mui-link::part(font-weight) {
|
|
2957
|
+
font-weight: var(--font-weight-700);
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
/* Spacing Parts */
|
|
2961
|
+
mui-link::part(padding) {
|
|
2962
|
+
padding: 1.5rem var(--space-500);
|
|
2963
|
+
}
|
|
2964
|
+
mui-link::part(margin) {
|
|
2965
|
+
margin: var(--space-000);
|
|
2966
|
+
}
|
|
2967
|
+
mui-link::part(width) {
|
|
2968
|
+
width: 100%;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
/* Layout Parts */
|
|
2972
|
+
mui-link::part(display) {
|
|
2973
|
+
display: block;
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
/* Visual Parts */
|
|
2977
|
+
mui-link:hover::part(background) {
|
|
2978
|
+
background: var(--app-navbar-surface-100);
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
|
|
2982
|
+
</style>
|
|
2983
|
+
|
|
2984
|
+
<mui-link href="${this.getAttribute("link")}">${this.getAttribute("title")}</mui-link>
|
|
2985
|
+
|
|
2986
|
+
`;this.shadowRoot.innerHTML=t}}customElements.define("app-navbar-home",Wt);class Gt extends HTMLElement{static get observedAttributes(){return["groupname"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=`
|
|
2987
|
+
<style>
|
|
2988
|
+
:host { display: block; }
|
|
2989
|
+
:host(:last-of-type) { padding-bottom: 6rem; }
|
|
2990
|
+
</style>
|
|
2991
|
+
|
|
2992
|
+
<mui-accordion-block size="small" heading="${this.getAttribute("groupname")}">
|
|
2993
|
+
<slot slot="detail"></slot>
|
|
2994
|
+
</mui-accordion-block>
|
|
2995
|
+
|
|
2996
|
+
`;this.shadowRoot.innerHTML=t}}customElements.define("app-navbar-group",Gt);class Jt extends HTMLElement{static get observedAttributes(){return["link","title"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=`
|
|
2997
|
+
<style>
|
|
2998
|
+
|
|
2999
|
+
:host {
|
|
3000
|
+
display: block;
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
mui-link {
|
|
3004
|
+
transition: opacity 400ms ease-in, transform 100ms ease-in;
|
|
3005
|
+
opacity: 1;
|
|
3006
|
+
display: block;
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
mui-link:hover {
|
|
3010
|
+
opacity: 1;
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
mui-link:focus {
|
|
3014
|
+
opacity: 1;
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
@media (min-width: 960px) {
|
|
3018
|
+
mui-link:hover {
|
|
3019
|
+
transform: scale(1.1);
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
/* Text Parts */
|
|
3024
|
+
mui-link::part(text-decoration) {
|
|
3025
|
+
text-decoration: none;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
/* Spacing Parts */
|
|
3029
|
+
mui-link::part(padding) {
|
|
3030
|
+
padding: var(--space-200) var(--space-000);
|
|
3031
|
+
}
|
|
3032
|
+
mui-link::part(margin) {
|
|
3033
|
+
margin: var(--space-000);
|
|
3034
|
+
}
|
|
3035
|
+
mui-link::part(width) {
|
|
3036
|
+
width: 100%;
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
/* Layout Parts */
|
|
3040
|
+
mui-link::part(display) {
|
|
3041
|
+
display: block;
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
</style>
|
|
3045
|
+
|
|
3046
|
+
<mui-link href="${this.getAttribute("link")}">${this.getAttribute("title")}</mui-link>
|
|
3047
|
+
|
|
3048
|
+
`;this.shadowRoot.innerHTML=t}}customElements.define("app-navbar-link",Jt);class Zt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){let t=`
|
|
3049
|
+
<style>
|
|
3050
|
+
|
|
3051
|
+
:host {
|
|
3052
|
+
width: 100%;
|
|
3053
|
+
margin-bottom: 0;
|
|
3054
|
+
background: var(--app-navbar-surface);
|
|
3055
|
+
box-shadow: inset 0 1px 0 0 var(--border-color);
|
|
3056
|
+
padding: var(--space-400) var(--space-500);
|
|
3057
|
+
display: flex;
|
|
3058
|
+
justify-content: space-between;
|
|
3059
|
+
z-index: 2;
|
|
3060
|
+
box-sizing: border-box;
|
|
3061
|
+
align-items: center;
|
|
3062
|
+
|
|
3063
|
+
@media (min-width: 961px) {
|
|
3064
|
+
display: none;
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
</style>
|
|
3069
|
+
|
|
3070
|
+
<!-- Navigation Bar Toggle -->
|
|
3071
|
+
<slot></slot>
|
|
3072
|
+
<slot name="home-link"></slot>
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
`;this.shadowRoot.innerHTML=t}}customElements.define("app-navbar-toggle",Zt);class Kt extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3076
|
+
|
|
3077
|
+
:host {
|
|
3078
|
+
display: flex;
|
|
3079
|
+
width: 240px;
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
/* Target Parent */
|
|
3083
|
+
mui-button {
|
|
3084
|
+
position: absolute;
|
|
3085
|
+
left: 0;
|
|
3086
|
+
top: -54px;
|
|
3087
|
+
z-index: 1000;
|
|
3088
|
+
transition: top var(--speed-200);
|
|
3089
|
+
width: 100%;
|
|
3090
|
+
}
|
|
3091
|
+
mui-button:focus {
|
|
3092
|
+
top: 0;
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
/* Spacing Parts */
|
|
3096
|
+
mui-button::part(padding) {
|
|
3097
|
+
padding: 1.3rem var(--space-500);
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
mui-button::part(width) {
|
|
3101
|
+
width: 100%;
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
/* Layout Parts */
|
|
3105
|
+
|
|
3106
|
+
mui-button::part(display) {
|
|
3107
|
+
display: block;
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
mui-button::part(text-align) {
|
|
3111
|
+
text-align: center;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
/* Visual Parts */
|
|
3115
|
+
mui-button::part(border-radius) {
|
|
3116
|
+
border-radius: var(--radius-000);
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
mui-button::part(background) {
|
|
3120
|
+
background: var(--app-navbar-surface);
|
|
3121
|
+
}
|
|
3122
|
+
mui-button::part(border) {
|
|
3123
|
+
border: none;
|
|
3124
|
+
}
|
|
3125
|
+
|
|
3126
|
+
`;t.innerHTML=`
|
|
3127
|
+
<style>${e}</style>
|
|
3128
|
+
<mui-button variant="tertiary" class="skip-to-main" role="button">Skip Nav</mui-button>
|
|
3129
|
+
`;const i=t.querySelector(".skip-to-main");if(i){i.addEventListener("click",()=>{const o=document.querySelector("app-container");o&&(o.setAttribute("tabindex","0"),o.focus())});const s=new CustomEvent("skip-link-ready",{detail:{skipButton:i}});window.dispatchEvent(s)}}}customElements.define("app-navbar-skip",Kt);class Qt extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3130
|
+
|
|
3131
|
+
:host {
|
|
3132
|
+
display: block;
|
|
3133
|
+
overflow-x: hidden;
|
|
3134
|
+
overflow-y: scroll;
|
|
3135
|
+
background: var(--app-navbar-surface);
|
|
3136
|
+
position: fixed;
|
|
3137
|
+
bottom: 0;
|
|
3138
|
+
top: 0;
|
|
3139
|
+
}
|
|
3140
|
+
:host([mobile]) {
|
|
3141
|
+
height: calc(100vh - 7.6rem);
|
|
3142
|
+
z-index: 1;
|
|
3143
|
+
width: 100%;
|
|
3144
|
+
}
|
|
3145
|
+
:host([desktop]) {
|
|
3146
|
+
align-items: center;
|
|
3147
|
+
text-align: left;
|
|
3148
|
+
opacity: 1;
|
|
3149
|
+
z-index: 100;
|
|
3150
|
+
width: 26rem;
|
|
3151
|
+
height: 100%;
|
|
3152
|
+
}
|
|
3153
|
+
:host([desktop])::-webkit-scrollbar {
|
|
3154
|
+
display: none;
|
|
3155
|
+
}
|
|
3156
|
+
`;t.innerHTML=`
|
|
3157
|
+
<style>${e}</style>
|
|
3158
|
+
<slot></slot>
|
|
3159
|
+
`}}customElements.define("app-navbar-menu",Qt);class te extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3160
|
+
|
|
3161
|
+
:host {
|
|
3162
|
+
display: block;
|
|
3163
|
+
padding: var(--space-500);
|
|
3164
|
+
box-shadow: 0 1px 0 0 var(--border-color);
|
|
3165
|
+
margin-bottom: -1px;
|
|
3166
|
+
background: var(--app-navbar-surface);
|
|
3167
|
+
z-index: 3;
|
|
3168
|
+
position: sticky;
|
|
3169
|
+
top: 0;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
mui-grid::part(align-items) {
|
|
3173
|
+
align-items: center;
|
|
3174
|
+
}
|
|
3175
|
+
|
|
3176
|
+
`;t.innerHTML=`
|
|
3177
|
+
<style>${e}</style>
|
|
3178
|
+
<mui-grid col="1fr auto" space="var(--space-400)">
|
|
3179
|
+
<theme-switcher></theme-switcher>
|
|
3180
|
+
<dark-mode-toggle></dark-mode-toggle>
|
|
3181
|
+
</mui-grid>
|
|
3182
|
+
`}}customElements.define("app-navbar-theme",te);class ee extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3183
|
+
:host {
|
|
3184
|
+
display: grid;
|
|
3185
|
+
position: fixed;
|
|
3186
|
+
z-index: 100;
|
|
3187
|
+
bottom: 0;
|
|
3188
|
+
left: 0;
|
|
3189
|
+
width: 100%;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
#desktop {
|
|
3193
|
+
display: none;
|
|
3194
|
+
}
|
|
3195
|
+
#mobile {
|
|
3196
|
+
display: block;
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
.color-icon {
|
|
3200
|
+
fill: var(--app-nav-accent);
|
|
3201
|
+
}
|
|
3202
|
+
|
|
3203
|
+
@media (min-width: 960px) {
|
|
3204
|
+
|
|
3205
|
+
:host {
|
|
3206
|
+
position: static;
|
|
3207
|
+
bottom: 0;
|
|
3208
|
+
left: 0;
|
|
3209
|
+
min-height: 100vh;
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3212
|
+
#desktop {
|
|
3213
|
+
display: block;
|
|
3214
|
+
box-shadow: var(--stroke-size-100) 0 0 0 var(--border-color);
|
|
3215
|
+
}
|
|
3216
|
+
#mobile {
|
|
3217
|
+
display: none;
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3221
|
+
#mobile {
|
|
3222
|
+
opacity: 0;
|
|
3223
|
+
transform: translate(0, 100%);
|
|
3224
|
+
transition: transform 100ms linear, width 100ms linear, opacity 100ms linear;
|
|
3225
|
+
}
|
|
3226
|
+
#mobile[open] {
|
|
3227
|
+
opacity: 1;
|
|
3228
|
+
transform: translate(0, 0);
|
|
3229
|
+
transition: transform 200ms ease-in, width 200ms ease-in, opacity 200ms ease-in;
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
mui-link::part(color),
|
|
3233
|
+
mui-link::part(color):hover {
|
|
3234
|
+
color: var(--app-nav-accent);
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
mui-link::part(text-decoration) {
|
|
3238
|
+
text-decoration: none;
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3241
|
+
mui-link::part(text-decoration):hover {
|
|
3242
|
+
text-decoration: underline;
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
`,i=`
|
|
3246
|
+
<app-navbar-home link="#/home" title="muibook.com"></app-navbar-home>
|
|
3247
|
+
`,s=`
|
|
3248
|
+
<app-navbar-theme></app-navbar-theme>
|
|
3249
|
+
`,o=`
|
|
3250
|
+
<app-navbar-group id="resources" groupname="Resources">
|
|
3251
|
+
<app-navbar-link link="#/create-mui-app" title="Create Mui App"></app-navbar-link>
|
|
3252
|
+
<app-navbar-link link="#/theme-setup" title="Theme Setup"></app-navbar-link>
|
|
3253
|
+
<app-navbar-link link="#/design-guidelines" title="Design Guidelines"></app-navbar-link>
|
|
3254
|
+
<app-navbar-link link="https://www.figma.com/design/l0mt1lXu97XoHJCEdnrWLp/Mui-Design-System?node-id=0-1&t=5A8fWmORS1XTiPBQ-1" title="MUI Kit"></app-navbar-link>
|
|
3255
|
+
</app-navbar-group>
|
|
3256
|
+
`,a=`
|
|
3257
|
+
<app-navbar-group id="design-tokens" groupname="Design Tokens">
|
|
3258
|
+
<app-navbar-link link="#/base-design-tokens" title="Base"></app-navbar-link>
|
|
3259
|
+
<app-navbar-link link="#/semantic-design-tokens" title="Semantic"></app-navbar-link>
|
|
3260
|
+
<app-navbar-link link="#/contextual-design-tokens" title="Contextual"></app-navbar-link>
|
|
3261
|
+
<app-navbar-link link="#/surface-design-tokens" title="Surface"></app-navbar-link>
|
|
3262
|
+
<app-navbar-link link="#/components-design-tokens" title="Components"></app-navbar-link>
|
|
3263
|
+
</app-navbar-group>
|
|
3264
|
+
`,n=`
|
|
3265
|
+
<app-navbar-group id="part-types" groupname="Part Selectors">
|
|
3266
|
+
<app-navbar-link link="#/text-part-selectors" title="Text"></app-navbar-link>
|
|
3267
|
+
<app-navbar-link link="#/spacing-part-selectors" title="Spacing"></app-navbar-link>
|
|
3268
|
+
<app-navbar-link link="#/layout-part-selectors" title="Layout"></app-navbar-link>
|
|
3269
|
+
<app-navbar-link link="#/visual-part-selectors" title="Visual"></app-navbar-link>
|
|
3270
|
+
</app-navbar-group>
|
|
3271
|
+
`,l=`
|
|
3272
|
+
<app-navbar-group id="web-components" groupname="Components">
|
|
3273
|
+
<app-navbar-link link="#/smart-card" title="Smart Card"></app-navbar-link>
|
|
3274
|
+
<app-navbar-link link="#/tab-bar" title="Tab Bar"></app-navbar-link>
|
|
3275
|
+
<app-navbar-link link="#/carousel" title="Carousel"></app-navbar-link>
|
|
3276
|
+
<app-navbar-link link="#/field" title="Field"></app-navbar-link>
|
|
3277
|
+
<app-navbar-link link="#/file-upload" title="File Upload"></app-navbar-link>
|
|
3278
|
+
<app-navbar-link link="#/addon" title="Add On"></app-navbar-link>
|
|
3279
|
+
<app-navbar-link link="#/input" title="Input"></app-navbar-link>
|
|
3280
|
+
<app-navbar-link link="#/select" title="Select"></app-navbar-link>
|
|
3281
|
+
<app-navbar-link link="#/switch" title="Switch"></app-navbar-link>
|
|
3282
|
+
<app-navbar-link link="#/alerts" title="Alerts"></app-navbar-link>
|
|
3283
|
+
<app-navbar-link link="#/messages" title="Messages"></app-navbar-link>
|
|
3284
|
+
<app-navbar-link link="#/badge" title="Badge"></app-navbar-link>
|
|
3285
|
+
<app-navbar-link link="#/buttons" title="Buttons"></app-navbar-link>
|
|
3286
|
+
<app-navbar-link link="#/links" title="Links"></app-navbar-link>
|
|
3287
|
+
<app-navbar-link link="#/responsive" title="Responsive"></app-navbar-link>
|
|
3288
|
+
<app-navbar-link link="#/stacks" title="Stacks"></app-navbar-link>
|
|
3289
|
+
<app-navbar-link link="#/grid" title="Grid"></app-navbar-link>
|
|
3290
|
+
<app-navbar-link link="#/cards" title="Cards"></app-navbar-link>
|
|
3291
|
+
<app-navbar-link link="#/container" title="Container"></app-navbar-link>
|
|
3292
|
+
<app-navbar-link link="#/headings" title="Headings"></app-navbar-link>
|
|
3293
|
+
<app-navbar-link link="#/body" title="Body"></app-navbar-link>
|
|
3294
|
+
<app-navbar-link link="#/image" title="Image"></app-navbar-link>
|
|
3295
|
+
<app-navbar-link link="#/list" title="List"></app-navbar-link>
|
|
3296
|
+
<app-navbar-link link="#/quote" title="Quote"></app-navbar-link>
|
|
3297
|
+
<app-navbar-link link="#/rule" title="Rule"></app-navbar-link>
|
|
3298
|
+
<app-navbar-link link="#/icons" title="Icons"></app-navbar-link>
|
|
3299
|
+
<app-navbar-link link="#/code" title="Code"></app-navbar-link>
|
|
3300
|
+
<app-navbar-link link="#/accordion" title="Accordion"></app-navbar-link>
|
|
3301
|
+
<app-navbar-link link="#/table" title="Table"></app-navbar-link>
|
|
3302
|
+
<app-navbar-link link="#/slat" title="Slat"></app-navbar-link>
|
|
3303
|
+
</app-navbar-group>
|
|
3304
|
+
`,c=`
|
|
3305
|
+
<app-navbar-group id="compositions" groupname="Compositions">
|
|
3306
|
+
<app-navbar-link link="#/agent" title="Agent UI"></app-navbar-link>
|
|
3307
|
+
<app-navbar-link link="#/wallet" title="Wallet"></app-navbar-link>
|
|
3308
|
+
</app-navbar-group>
|
|
3309
|
+
`;t.innerHTML=`
|
|
3310
|
+
<style>${e}</style>
|
|
3311
|
+
|
|
3312
|
+
<app-navbar-menu desktop id="desktop">
|
|
3313
|
+
<slot name="skip"></slot>
|
|
3314
|
+
${s}
|
|
3315
|
+
${i}
|
|
3316
|
+
${o}
|
|
3317
|
+
${a}
|
|
3318
|
+
${n}
|
|
3319
|
+
${c}
|
|
3320
|
+
${l}
|
|
3321
|
+
</app-navbar-menu>
|
|
3322
|
+
|
|
3323
|
+
<app-navbar-menu mobile id="mobile">
|
|
3324
|
+
<slot name="skip"></slot>
|
|
3325
|
+
${s}
|
|
3326
|
+
${o}
|
|
3327
|
+
${a}
|
|
3328
|
+
${n}
|
|
3329
|
+
${c}
|
|
3330
|
+
${l}
|
|
3331
|
+
</app-navbar-menu>
|
|
3332
|
+
|
|
3333
|
+
<app-navbar-toggle>
|
|
3334
|
+
<mui-icon-toggle variant="tertiary" rotate>
|
|
3335
|
+
<mui-icon-menu class="color-icon" slot="start"></mui-icon-menu>
|
|
3336
|
+
<mui-icon-close class="color-icon" slot="end"></mui-icon-close>
|
|
3337
|
+
</mui-icon-toggle>
|
|
3338
|
+
<mui-link slot="home-link" data-close-menu link="#/home-page">muibook.com</mui-link>
|
|
3339
|
+
</app-navbar-toggle>
|
|
3340
|
+
`,this.menuIconEl=this.shadowRoot.querySelector("mui-icon-toggle"),this.navbarEl=this.shadowRoot.getElementById("mobile"),this.updateTabIndexForMenuLinks=(u,p)=>{u.querySelectorAll("app-navbar-link").forEach(g=>{p?g.removeAttribute("tabindex"):g.setAttribute("tabindex","-1")})},this.navbarEl.querySelectorAll("app-navbar-link").forEach(u=>{u.addEventListener("click",()=>{this.navbarEl.hasAttribute("open")&&(this.navbarEl.removeAttribute("open"),this.updateTabIndexForMenuLinks(this.navbarEl,!1),this.menuIconEl.toggle=!1,this.menuIconEl.removeAttribute("toggle"))})}),this.shadowRoot.querySelectorAll("mui-link[data-close-menu]").forEach(u=>{u.addEventListener("click",()=>{this.navbarEl.hasAttribute("open")&&(this.navbarEl.removeAttribute("open"),this.updateTabIndexForMenuLinks(this.navbarEl,!1),this.menuIconEl.toggle=!1,this.menuIconEl.removeAttribute("toggle"))})}),this.handleResponsiveTabIndex=()=>{if(window.innerWidth>=961)this.updateTabIndexForMenuLinks(this.navbarEl,!0);else{const p=this.navbarEl.hasAttribute("open");this.updateTabIndexForMenuLinks(this.navbarEl,p)}},this.handleResponsiveTabIndex(),window.addEventListener("resize",this.handleResponsiveTabIndex),this.menuIconEl.addEventListener("click",()=>{this.navbarEl.toggleAttribute("open");const u=this.navbarEl.hasAttribute("open");this.updateTabIndexForMenuLinks(this.navbarEl,u),u&&requestAnimationFrame(()=>{const p=this.shadowRoot.querySelector("app-navbar-home");p&&p.focus()})})}}customElements.define("app-navbar",ee);class ie 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 o=i.detail.checked?"dark":"light";localStorage.setItem("theme",o),document.documentElement.setAttribute("data-theme",o)}),window.addEventListener("brand-theme-capability",i=>{e.disabled=!i.detail.themeEnabled})})}render(t){const e=t==="dark";this.shadowRoot.innerHTML=`
|
|
3341
|
+
<style>
|
|
3342
|
+
:host {
|
|
3343
|
+
display: block;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
mui-switch {
|
|
3347
|
+
--switch-track-background: var(--app-theme-toggle-bg);
|
|
3348
|
+
--switch-track-background-checked: var(--app-theme-toggle-bg);
|
|
3349
|
+
}
|
|
3350
|
+
|
|
3351
|
+
</style>
|
|
3352
|
+
|
|
3353
|
+
<mui-switch label="Dark mode toggle" ${e?"checked":""}>
|
|
3354
|
+
<mui-icon-sun slot="off-icon"></mui-icon-sun>
|
|
3355
|
+
<mui-icon-moon slot="on-icon"></mui-icon-moon>
|
|
3356
|
+
</mui-switch>
|
|
3357
|
+
`}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",ie);class oe extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.brandCapabilities={mui:{theme:!0},jal:{theme:!0},ana:{theme:!0},mono:{theme:!0},modern:{theme:!0}},this.brandFontLinks={jal:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap"}],modern:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Golos+Text:wght@400..900&display=swap"}]}}connectedCallback(){this.render(),this.setupListeners(),this.applySettings()}render(){this.shadowRoot.innerHTML=`
|
|
3358
|
+
<style>
|
|
3359
|
+
:host {display: block;}
|
|
3360
|
+
.grid {gap: var(--space-000);}
|
|
3361
|
+
.vh {
|
|
3362
|
+
position: absolute;
|
|
3363
|
+
width: 1px;
|
|
3364
|
+
height: 1px;
|
|
3365
|
+
margin: -1px;
|
|
3366
|
+
padding: 0;
|
|
3367
|
+
overflow: hidden;
|
|
3368
|
+
clip: rect(0 0 0 0);
|
|
3369
|
+
white-space: nowrap;
|
|
3370
|
+
border: 0;
|
|
3371
|
+
}
|
|
3372
|
+
mui-select {
|
|
3373
|
+
--input-background: var(--app-navbar-surface-100);
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
</style>
|
|
3377
|
+
<mui-grid class="grid" col="1fr" space="var(--space-100)">
|
|
3378
|
+
<mui-select
|
|
3379
|
+
id="brand-switcher"
|
|
3380
|
+
label="Brand"
|
|
3381
|
+
hide-label
|
|
3382
|
+
options='[
|
|
3383
|
+
{"value": "mui", "label": "Mui"},
|
|
3384
|
+
{"value": "jal", "label": "JAL"},
|
|
3385
|
+
{"value": "ana", "label": "ANA"},
|
|
3386
|
+
{"value": "mono", "label": "Mono"},
|
|
3387
|
+
{"value": "modern", "label": "Modern"}
|
|
3388
|
+
]'>
|
|
3389
|
+
</mui-select>
|
|
3390
|
+
</mui-grid>
|
|
3391
|
+
`}setupListeners(){this.shadowRoot.getElementById("brand-switcher").addEventListener("change",e=>{const i=e.detail.value;localStorage.setItem("brand",i),document.documentElement.setAttribute("data-brand",i),this.updateSwitchers(i)})}applySettings(){const t=localStorage.getItem("brand")||"default";document.documentElement.setAttribute("data-brand",t);const e=this.shadowRoot.getElementById("brand-switcher");e&&e.setAttribute("value",t),this.updateSwitchers(t)}updateSwitchers(t){const e=this.brandCapabilities[t]||{theme:!0};this.removeFontLinks(),this.injectFontLinksForBrand(t),this.dispatchEvent(new CustomEvent("brand-theme-capability",{detail:{themeEnabled:e.theme},bubbles:!0,composed:!0}))}injectFontLinksForBrand(t){const e=this.brandFontLinks[t];!e||e.some(s=>document.head.querySelector(`link[href="${s.href}"]`))||e.forEach(({rel:s,href:o,crossOrigin:a})=>{const n=document.createElement("link");n.rel=s,n.href=o,a&&(n.crossOrigin=a),document.head.appendChild(n)})}removeFontLinks(){Object.values(this.brandFontLinks).flat().forEach(({href:t})=>{const e=document.head.querySelector(`link[href="${t}"]`);e&&document.head.removeChild(e)})}}customElements.define("theme-switcher",oe);const ae="/hero-guides.png";class se 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");let s={default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[e]||e||"var(--icon-color-default)";const o={small:"2.8rem",medium:"3.8rem"},a=o[t]||o.small;this.shadowRoot.innerHTML=`
|
|
3392
|
+
<style>
|
|
3393
|
+
:host {
|
|
3394
|
+
width: ${a};
|
|
3395
|
+
height: ${a};
|
|
3396
|
+
display: inline-flex;
|
|
3397
|
+
align-items: center;
|
|
3398
|
+
justify-content: center;
|
|
3399
|
+
fill: ${s};
|
|
3400
|
+
}
|
|
3401
|
+
svg {
|
|
3402
|
+
width: 100%;
|
|
3403
|
+
display: block;
|
|
3404
|
+
fill: inherit;
|
|
3405
|
+
}
|
|
3406
|
+
.opac {
|
|
3407
|
+
opacity: 0.5;
|
|
3408
|
+
}
|
|
3409
|
+
</style>
|
|
3410
|
+
|
|
3411
|
+
<svg
|
|
3412
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3413
|
+
viewBox="0 0 38 38"
|
|
3414
|
+
>
|
|
3415
|
+
<path
|
|
3416
|
+
d="M25.227 9.266c0 3.628-6.57 9.234-6.57 9.234s-6.57-5.606-6.57-9.234a6.57 6.57 0 1 1 13.14 0"
|
|
3417
|
+
></path>
|
|
3418
|
+
<path class="opac"
|
|
3419
|
+
d="M9.454 15.486a4.262 4.262 0 1 0-6.027 6.027l12.556 12.556a4.262 4.262 0 0 0 6.027-6.027z"
|
|
3420
|
+
></path>
|
|
3421
|
+
<path class="opac"
|
|
3422
|
+
d="M28.536 15.486a4.262 4.262 0 0 1 6.026 6.027L22.007 34.069a4.262 4.262 0 1 1-6.027-6.027z"
|
|
3423
|
+
></path>
|
|
3424
|
+
<path
|
|
3425
|
+
d="m19 25.028 3.012 3.013a4.261 4.261 0 1 1-6.026 0z"
|
|
3426
|
+
></path>
|
|
3427
|
+
</svg>
|
|
3428
|
+
|
|
3429
|
+
`}}customElements.define("guides-logo",se);class re extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3430
|
+
:host { display: block; }
|
|
3431
|
+
|
|
3432
|
+
@media (min-width: 1288px) {
|
|
3433
|
+
:host { margin: var(--space-400) 0; }
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
.banner {
|
|
3437
|
+
display: flex;
|
|
3438
|
+
justify-content: center;
|
|
3439
|
+
padding: var(--space-500) var(--space-600) var(--space-600);
|
|
3440
|
+
border-radius: var(--radius-300);
|
|
3441
|
+
background: var(--app-story-banner-gradient-start);
|
|
3442
|
+
background: linear-gradient(0deg, var(--app-story-banner-gradient-start) 0%, var(--app-story-banner-gradient-end) 100%);
|
|
3443
|
+
border: var(--feedback-neutral-border);
|
|
3444
|
+
border-bottom: var(--border-thick);
|
|
3445
|
+
border-color: var(--app-story-banner-border-color);
|
|
3446
|
+
box-shadow:
|
|
3447
|
+
6px 6px 16px var(--black-opacity-10),
|
|
3448
|
+
-6px -6px 14px var(--black-opacity-10);
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
@media (min-width: 1288px) {
|
|
3452
|
+
.banner {
|
|
3453
|
+
padding: var(--space-700) var(--space-700) var(--space-000) var(--space-700);
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3457
|
+
mui-grid {
|
|
3458
|
+
width: 100%;
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
mui-grid::part(align-items) {
|
|
3462
|
+
align-items: center;
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
@media (min-width: 1288px) {
|
|
3466
|
+
|
|
3467
|
+
mui-grid::part(gap) {
|
|
3468
|
+
gap: var(--space-000);
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
@media (min-width: 1350px) {
|
|
3473
|
+
|
|
3474
|
+
mui-grid::part(gap) {
|
|
3475
|
+
gap: var(--space-600);
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
mui-grid::part(align-items) {
|
|
3479
|
+
align-items: start;
|
|
3480
|
+
}
|
|
3481
|
+
}
|
|
3482
|
+
|
|
3483
|
+
mui-grid::part(width) {
|
|
3484
|
+
max-width: 118.0rem;
|
|
3485
|
+
}
|
|
3486
|
+
|
|
3487
|
+
.hero {
|
|
3488
|
+
margin-top: -8rem;
|
|
3489
|
+
width: 100%;
|
|
3490
|
+
height: auto;
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3493
|
+
`;t.innerHTML=`
|
|
3494
|
+
<style>${e}</style>
|
|
3495
|
+
<mui-responsive breakpoint="1287" class="banner">
|
|
3496
|
+
<mui-grid slot="showBelow" space="var(--space-600)" col="1fr">
|
|
3497
|
+
<mui-v-stack space="var(--space-500)" alignY="start">
|
|
3498
|
+
<mui-v-stack space="var(--space-100)">
|
|
3499
|
+
<mui-h-stack space="var(--space-100)" alignY="center">
|
|
3500
|
+
<mui-h-stack style="width: 28px;">
|
|
3501
|
+
<guides-logo size="small"></guides-logo>
|
|
3502
|
+
</mui-h-stack>
|
|
3503
|
+
<mui-heading size="3" level="2">Guides</mui-heading>
|
|
3504
|
+
</mui-h-stack>
|
|
3505
|
+
<mui-v-stack space="var(--space-400)" style="max-width: 50ch;">
|
|
3506
|
+
<mui-body size="small">MUI integrates with Guru Guides to provide in-context design guidelines direct in Figma, making component guidance easy to access where designers need it most.</mui-body>
|
|
3507
|
+
<mui-body size="x-small">Log in with your <strong>MUI credentials</strong> to view the guidelines.</mui-body>
|
|
3508
|
+
</mui-v-stack>
|
|
3509
|
+
</mui-v-stack>
|
|
3510
|
+
<mui-button-group>
|
|
3511
|
+
<mui-link variant="primary" href="https://www.figma.com/community/plugin/1471341082690554711/guru-guides" target="_blank">Install</mui-link>
|
|
3512
|
+
<mui-link class="mui-button-secondary" variant="secondary" href="https://gurusuite.xyz/guides" target="_blank">Learn more</mui-link>
|
|
3513
|
+
<mui-button-group>
|
|
3514
|
+
</mui-v-stack>
|
|
3515
|
+
</mui-grid>
|
|
3516
|
+
<mui-grid slot="showAbove" col="1fr 440px">
|
|
3517
|
+
<mui-v-stack space="var(--space-600)" alignY="start" style="max-width: 41ch; padding-bottom: var(--space-700);">
|
|
3518
|
+
<mui-v-stack space="var(--space-400)">
|
|
3519
|
+
<mui-h-stack space="var(--space-200)" alignY="center">
|
|
3520
|
+
<mui-h-stack style="width: 38px;">
|
|
3521
|
+
<guides-logo size="medium"></guides-logo>
|
|
3522
|
+
</mui-h-stack>
|
|
3523
|
+
<mui-heading size="2" level="2">Guides</mui-heading>
|
|
3524
|
+
</mui-h-stack>
|
|
3525
|
+
<mui-v-stack space="var(--space-400)" style="max-width: 50ch;">
|
|
3526
|
+
<mui-body size="medium">MUI integrates with Guru Guides to provide in-context design guidelines direct in Figma, making component guidance easy to access where designers need it most.</mui-body>
|
|
3527
|
+
<mui-body size="small">Log in with your <strong>MUI credentials</strong> to view the guidelines.</mui-body>
|
|
3528
|
+
</mui-v-stack>
|
|
3529
|
+
</mui-v-stack>
|
|
3530
|
+
<mui-button-group>
|
|
3531
|
+
<mui-link variant="primary" href="https://www.figma.com/community/plugin/1471341082690554711/guru-guides" target="_blank">Install</mui-link>
|
|
3532
|
+
<mui-link class="mui-button-secondary" variant="secondary" href="https://gurusuite.xyz/guides" target="_blank">Learn more</mui-link>
|
|
3533
|
+
<mui-button-group>
|
|
3534
|
+
</mui-v-stack>
|
|
3535
|
+
<img class="hero" src="${ae}" alt="Hero" />
|
|
3536
|
+
</mui-grid>
|
|
3537
|
+
</mui-responsive>
|
|
3538
|
+
`}}customElements.define("page-banner",re);class ne extends HTMLElement{static get observedAttributes(){return["title","description","orderedList","unorderedList"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3539
|
+
:host { display: block; }
|
|
3540
|
+
|
|
3541
|
+
mui-card {
|
|
3542
|
+
border: var(--border-thick);
|
|
3543
|
+
}
|
|
3544
|
+
|
|
3545
|
+
`,i=this.getAttribute("title")||"",s=this.hasAttribute("description")?`<mui-body style="max-width: 86ch;">${this.getAttribute("description")}</mui-body>`:"",o=this.getAttribute("orderedList");let a=[];if(o)try{a=JSON.parse(o)}catch{a=o.split(",").map(d=>d.trim())}const n=a.length?`
|
|
3546
|
+
<mui-list as="ol" style="max-width: 65ch; margin-top: var(--space-300);">
|
|
3547
|
+
${a.map(d=>`<mui-list-item size="small" weight="medium" style="margin-bottom: var(--space-050)">${d}</mui-list-item>`).join("")}
|
|
3548
|
+
</mui-list>
|
|
3549
|
+
`:"",l=this.getAttribute("unorderedList");let c=[];if(l)try{c=JSON.parse(l)}catch{c=l.split(",").map(d=>d.trim())}const h=c.length?`
|
|
3550
|
+
<mui-list as="ol" style="max-width: 65ch; margin-top: var(--space-300);">
|
|
3551
|
+
${c.map(d=>`<mui-list-item size="small" weight="medium" style="margin-bottom: var(--space-050)">${d}</mui-list-item>`).join("")}
|
|
3552
|
+
</mui-list>
|
|
3553
|
+
`:"";t.innerHTML=`
|
|
3554
|
+
<style>${e}</style>
|
|
3555
|
+
<mui-card>
|
|
3556
|
+
${this.hasAttribute("noheader")?"":`
|
|
3557
|
+
<mui-card-header>
|
|
3558
|
+
<mui-heading size="3" level="2">${i}</mui-heading>
|
|
3559
|
+
<mui-v-stack space="var(--space-100)">
|
|
3560
|
+
${s}
|
|
3561
|
+
${n}
|
|
3562
|
+
${h}
|
|
3563
|
+
</mui-v-stack>
|
|
3564
|
+
|
|
3565
|
+
</mui-card-header>
|
|
3566
|
+
`}
|
|
3567
|
+
<mui-card-body>
|
|
3568
|
+
<slot name="body"></slot>
|
|
3569
|
+
</mui-card-body>
|
|
3570
|
+
<mui-card-footer><slot name="footer"></slot></mui-card-footer>
|
|
3571
|
+
</mui-card>
|
|
3572
|
+
`}}customElements.define("page-card",ne);class le 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(){const t=this.getAttribute("color");let i={default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[t]||t||"var(--icon-color-default)";this.classList.add("mui-icon"),this.shadowRoot.innerHTML=`
|
|
3573
|
+
<style>
|
|
3574
|
+
:host {
|
|
3575
|
+
width: 21px;
|
|
3576
|
+
height: 21px;
|
|
3577
|
+
display: inline-flex;
|
|
3578
|
+
align-items: center;
|
|
3579
|
+
justify-content: center;
|
|
3580
|
+
fill: ${i};
|
|
3581
|
+
}
|
|
3582
|
+
svg {
|
|
3583
|
+
width: 100%;
|
|
3584
|
+
display: block;
|
|
3585
|
+
fill: inherit;
|
|
3586
|
+
}
|
|
3587
|
+
</style>
|
|
3588
|
+
|
|
3589
|
+
<svg
|
|
3590
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3591
|
+
viewBox="0 0 21 21"
|
|
3592
|
+
>
|
|
3593
|
+
<path d="M10.509 0C4.698 0 0 4.812 0 10.766c0 4.76 3.01 8.788 7.186 10.214.522.107.713-.232.713-.517 0-.25-.017-1.105-.017-1.997-2.924.642-3.532-1.283-3.532-1.283-.47-1.248-1.166-1.569-1.166-1.569-.957-.659.07-.659.07-.659 1.06.071 1.618 1.105 1.618 1.105.939 1.64 2.453 1.177 3.062.891.087-.695.365-1.176.66-1.443-2.33-.25-4.784-1.177-4.784-5.312 0-1.177.418-2.14 1.079-2.888-.104-.267-.47-1.372.104-2.852 0 0 .888-.285 2.888 1.105a10 10 0 0 1 2.628-.356c.887 0 1.791.125 2.627.356 2-1.39 2.888-1.105 2.888-1.105.574 1.48.209 2.585.104 2.852.679.749 1.079 1.711 1.079 2.888 0 4.135-2.453 5.044-4.802 5.312.383.338.713.98.713 1.996 0 1.444-.017 2.602-.017 2.959 0 .285.192.624.713.517C17.99 19.553 21 15.525 21 10.766 21.017 4.812 16.302 0 10.509 0"
|
|
3594
|
+
></path>
|
|
3595
|
+
</svg>
|
|
3596
|
+
|
|
3597
|
+
|
|
3598
|
+
|
|
3599
|
+
`}}customElements.define("github-mark",le);class ce extends HTMLElement{static get observedAttributes(){return["title","description","usage","accessibility","github"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3600
|
+
:host { display: block; }
|
|
3601
|
+
|
|
3602
|
+
mui-card {
|
|
3603
|
+
border: var(--border-thick);
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
mui-card-body {
|
|
3607
|
+
padding: 0;
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
.github::part(display) {
|
|
3611
|
+
display: flex;
|
|
3612
|
+
gap: var(--space-200);
|
|
3613
|
+
padding: var(--space-200) var(--space-300);
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3616
|
+
`,i=this.getAttribute("title")||"",s=this.hasAttribute("description")?`<mui-body style="max-width: 86ch;">${this.getAttribute("description")}</mui-body>`:"",o=this.getAttribute("github"),a=o?`<mui-link class="github" href="${o}" target="_blank" rel="noopener" variant="tertiary">View Usage<github-mark></github-mark></mui-link>`:"",n=this.getAttribute("usage");let l=[];try{const p=n?n.replace(/(['"])(?=\w)(.*?)(?=\w)\1/g,"$2"):"";l=p?JSON.parse(p):[]}catch{l=n?n.split(";"):[]}const c=l.length?`
|
|
3617
|
+
<mui-heading size="6" level="3" style="margin-top: var(--space-300); margin-bottom: var(--space-050);">Usage details</mui-heading>
|
|
3618
|
+
<mui-list as="ul" style="max-width: 65ch;">
|
|
3619
|
+
${l.map(p=>`<mui-list-item size="small" weight="medium" style="margin-bottom: var(--space-050)">${p.trim()}</mui-list-item>`).join("")}
|
|
3620
|
+
</mui-list>
|
|
3621
|
+
`:"",h=this.getAttribute("accessibility");let d=[];try{const p=h?h.replace(/(['"])(?=\w)(.*?)(?=\w)\1/g,"$2"):"";d=p?JSON.parse(p):[]}catch{d=h?h.split(";"):[]}const u=d.length?`
|
|
3622
|
+
<mui-heading size="6" level="3" style="margin-top: var(--space-300); margin-bottom: var(--space-050);">Accessibility details</mui-heading>
|
|
3623
|
+
<mui-list as="ul" style="max-width: 65ch;">
|
|
3624
|
+
${d.map(p=>`<mui-list-item size="small" weight="medium" style="margin-bottom: var(--space-050)">${p.trim()}</mui-list-item>`).join("")}
|
|
3625
|
+
</mui-list>
|
|
3626
|
+
`:"";t.innerHTML=`
|
|
3627
|
+
<style>${e}</style>
|
|
3628
|
+
<mui-card>
|
|
3629
|
+
${this.hasAttribute("noheader")?"":`
|
|
3630
|
+
<mui-card-header>
|
|
3631
|
+
<mui-h-stack alignX="space-between" alignY="center">
|
|
3632
|
+
<mui-heading size="3" level="2">${i}</mui-heading>
|
|
3633
|
+
${a}
|
|
3634
|
+
</mui-h-stack>
|
|
3635
|
+
<mui-v-stack space="var(--space-100)">
|
|
3636
|
+
${s}
|
|
3637
|
+
${c}
|
|
3638
|
+
${u}
|
|
3639
|
+
</mui-v-stack>
|
|
3640
|
+
|
|
3641
|
+
</mui-card-header>
|
|
3642
|
+
`}
|
|
3643
|
+
<mui-rule></mui-rule>
|
|
3644
|
+
<mui-card-body>
|
|
3645
|
+
<slot name="body"></slot>
|
|
3646
|
+
</mui-card-body>
|
|
3647
|
+
<mui-card-footer><slot name="footer"></slot></mui-card-footer>
|
|
3648
|
+
</mui-card>
|
|
3649
|
+
`}}customElements.define("spec-card",ce);class de extends HTMLElement{static get observedAttributes(){return["title","description","usage","accessibility","github"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3650
|
+
:host { display: block; }
|
|
3651
|
+
|
|
3652
|
+
mui-card {
|
|
3653
|
+
border: var(--border-thick);
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
.story-body {
|
|
3657
|
+
padding: var(--space-400);
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
section {
|
|
3661
|
+
background: var(--surface-recessed-alpha);
|
|
3662
|
+
position: relative;
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3665
|
+
section:before,
|
|
3666
|
+
section:after,
|
|
3667
|
+
div:before,
|
|
3668
|
+
div:after {
|
|
3669
|
+
content: "";
|
|
3670
|
+
position: absolute;
|
|
3671
|
+
background: #12caff;
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
section:before,
|
|
3675
|
+
section:after { height: 1px; }
|
|
3676
|
+
div:before,
|
|
3677
|
+
div:after { width: 1px; }
|
|
3678
|
+
|
|
3679
|
+
section:before {
|
|
3680
|
+
top: 0;
|
|
3681
|
+
left: -12px;
|
|
3682
|
+
right: 2px;
|
|
3683
|
+
width: calc(12px + 100% + 2px);
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
section:after {
|
|
3687
|
+
bottom: 0;
|
|
3688
|
+
left: -4px;
|
|
3689
|
+
right: 8px;
|
|
3690
|
+
width: calc(4px + 100% + 8px);
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
div:before {
|
|
3694
|
+
top: -4px;
|
|
3695
|
+
height: calc(4px + 100% + 4px);
|
|
3696
|
+
left: 0;
|
|
3697
|
+
}
|
|
3698
|
+
|
|
3699
|
+
div:after {
|
|
3700
|
+
top: -4px;
|
|
3701
|
+
height: calc(4px + 100% + 6px);
|
|
3702
|
+
right: 0;
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3705
|
+
.github::part(display) {
|
|
3706
|
+
display: flex;
|
|
3707
|
+
gap: var(--space-200);
|
|
3708
|
+
padding: var(--space-200) var(--space-300);
|
|
3709
|
+
}
|
|
3710
|
+
`,i=this.getAttribute("title")||"",s=this.hasAttribute("description")?`<mui-body style="max-width: 86ch;">${this.getAttribute("description")}</mui-body>`:"",o=this.getAttribute("github"),a=o?`<mui-link class="github" href="${o}" target="_blank" rel="noopener" variant="tertiary">View Usage<github-mark></github-mark></mui-link>`:"",n=this.getAttribute("usage");let l=[];try{const p=n?n.replace(/(['"])(?=\w)(.*?)(?=\w)\1/g,"$2"):"";l=p?JSON.parse(p):[]}catch{l=n?n.split(";"):[]}const c=l.length?`
|
|
3711
|
+
<mui-heading size="6" level="3" style="margin-top: var(--space-300); margin-bottom: var(--space-050);">Usage details</mui-heading>
|
|
3712
|
+
<mui-list as="ul" style="max-width: 65ch;">
|
|
3713
|
+
${l.map(p=>`<mui-list-item size="small" weight="medium" style="margin-bottom: var(--space-050)">${p.trim()}</mui-list-item>`).join("")}
|
|
3714
|
+
</mui-list>
|
|
3715
|
+
`:"",h=this.getAttribute("accessibility");let d=[];try{const p=h?h.replace(/(['"])(?=\w)(.*?)(?=\w)\1/g,"$2"):"";d=p?JSON.parse(p):[]}catch{d=h?h.split(";"):[]}const u=d.length?`
|
|
3716
|
+
<mui-heading size="6" level="3" style="margin-top: var(--space-300); margin-bottom: var(--space-050);">Accessibility details</mui-heading>
|
|
3717
|
+
<mui-list as="ul" style="max-width: 65ch;">
|
|
3718
|
+
${d.map(p=>`<mui-list-item size="small" weight="medium" style="margin-bottom: var(--space-050)">${p.trim()}</mui-list-item>`).join("")}
|
|
3719
|
+
</mui-list>
|
|
3720
|
+
`:"";t.innerHTML=`
|
|
3721
|
+
<style>${e}</style>
|
|
3722
|
+
<mui-card>
|
|
3723
|
+
${this.hasAttribute("noheader")?"":`
|
|
3724
|
+
<mui-card-header>
|
|
3725
|
+
<mui-h-stack alignX="space-between" alignY="center">
|
|
3726
|
+
<mui-heading size="3" level="2">${i}</mui-heading>
|
|
3727
|
+
${a}
|
|
3728
|
+
</mui-h-stack>
|
|
3729
|
+
<mui-v-stack space="var(--space-100)">
|
|
3730
|
+
${s}
|
|
3731
|
+
${c}
|
|
3732
|
+
${u}
|
|
3733
|
+
</mui-v-stack>
|
|
3734
|
+
|
|
3735
|
+
</mui-card-header>
|
|
3736
|
+
`}
|
|
3737
|
+
<mui-card-body>
|
|
3738
|
+
<section>
|
|
3739
|
+
<div class="story-body">
|
|
3740
|
+
<slot name="body"></slot>
|
|
3741
|
+
</div>
|
|
3742
|
+
</section>
|
|
3743
|
+
</mui-card-body>
|
|
3744
|
+
<mui-card-footer><slot name="footer"></slot></mui-card-footer>
|
|
3745
|
+
</mui-card>
|
|
3746
|
+
`}}customElements.define("story-card",de);class he extends HTMLElement{static get observedAttributes(){return["token","output","usage"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3747
|
+
:host {
|
|
3748
|
+
display: inline-flex;
|
|
3749
|
+
margin: var(--space-025) var(--space-000);
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3752
|
+
code {
|
|
3753
|
+
background: var(--app-story-snippet-code-bg);
|
|
3754
|
+
border-radius: var(--radius-100);
|
|
3755
|
+
color: var(--app-story-snippet-code-text);
|
|
3756
|
+
padding: var(--space-025) var(--space-100);
|
|
3757
|
+
font-size: var(--font-size-15);
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
`;t.innerHTML=`
|
|
3761
|
+
<style>${e}</style>
|
|
3762
|
+
|
|
3763
|
+
<code><slot></slot></code>
|
|
3764
|
+
|
|
3765
|
+
`}}customElements.define("story-code-snippet",he);class ue extends HTMLElement{static get observedAttributes(){return["width","height","description"]}constructor(){super();const t=this.attachShadow({mode:"open"});let e="24px",i="24px";const s=`
|
|
3766
|
+
:host { display: block; }
|
|
3767
|
+
slot {
|
|
3768
|
+
display: flex;
|
|
3769
|
+
padding: var(--space-050) var(--space-400);
|
|
3770
|
+
box-sizing: border-box;
|
|
3771
|
+
justify-content: center;
|
|
3772
|
+
align-items: center;
|
|
3773
|
+
background: var(--grey-200);
|
|
3774
|
+
border-radius: var(--radius-200);
|
|
3775
|
+
width: var(--width);
|
|
3776
|
+
height: var(--height);
|
|
3777
|
+
}
|
|
3778
|
+
`,o=`<mui-body size="small">${this.getAttribute("description")}</mui-body>`;t.innerHTML=`
|
|
3779
|
+
<style>${s}</style>
|
|
3780
|
+
<slot style="--width: ${this.getAttribute("width")||e}; --height: ${this.getAttribute("height")||i};">
|
|
3781
|
+
${o}
|
|
3782
|
+
</slot>
|
|
3783
|
+
`}}customElements.define("story-demo",ue);class me extends HTMLElement{static get observedAttributes(){return["theme"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}attributeChangedCallback(t,e,i){t==="theme"&&e!==i&&this.render()}render(){const t=this.getAttribute("theme")||"default",e={default:"var(--app-story-icon-grid-background)",inverted:"var(--app-story-icon-grid-background-inverted)"},s=`
|
|
3784
|
+
:host { display: block; }
|
|
3785
|
+
mui-card {
|
|
3786
|
+
background-color: ${e[t]||e.default};
|
|
3787
|
+
display: block;
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3790
|
+
:host([center]) {
|
|
3791
|
+
text-align: center;
|
|
3792
|
+
}
|
|
3793
|
+
`;this.shadowRoot.innerHTML=`
|
|
3794
|
+
<style>${s}</style>
|
|
3795
|
+
<mui-card>
|
|
3796
|
+
<mui-card-body style="text-align: center;">
|
|
3797
|
+
<slot name="body"></slot>
|
|
3798
|
+
</mui-card-body>
|
|
3799
|
+
<mui-card-footer>
|
|
3800
|
+
<slot name="footer"></slot>
|
|
3801
|
+
</mui-card-footer>
|
|
3802
|
+
</mui-card>
|
|
3803
|
+
`}}customElements.define("story-icon-grid",me);class pe extends HTMLElement{static get observedAttributes(){return["token","output","usage"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
3804
|
+
:host {
|
|
3805
|
+
display: block;
|
|
3806
|
+
padding: var(--space-500) var(--space-500);
|
|
3807
|
+
border-bottom: var(--border-thin);
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
@media (min-width: 768px) {
|
|
3811
|
+
:host {
|
|
3812
|
+
padding: var(--space-500) var(--space-600);
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
:host(:last-of-type) {
|
|
3817
|
+
border-bottom: none;
|
|
3818
|
+
}
|
|
3819
|
+
|
|
3820
|
+
mui-slat {
|
|
3821
|
+
align-items: start;
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
mui-h-stack::part(align-items) {
|
|
3825
|
+
align-items: end;
|
|
3826
|
+
}
|
|
3827
|
+
|
|
3828
|
+
`,o=(this.getAttribute("usage")||"").split(",").map(a=>a.trim()).filter(a=>a.length>0).map(a=>`<mui-link size="x-small" weight="bold" href="${`#/${a.toLowerCase().replace(/\s+/g,"")}`}">${a}</mui-link>`).join("");t.innerHTML=`
|
|
3829
|
+
<style>${e}</style>
|
|
3830
|
+
|
|
3831
|
+
<mui-v-stack space="var(--space-100)">
|
|
3832
|
+
|
|
3833
|
+
<mui-body size="x-small">
|
|
3834
|
+
<story-code-snippet>${this.getAttribute("token")}</story-code-snippet>
|
|
3835
|
+
</mui-body>
|
|
3836
|
+
|
|
3837
|
+
<mui-body size="x-small">
|
|
3838
|
+
${this.getAttribute("output")}
|
|
3839
|
+
</mui-body>
|
|
3840
|
+
|
|
3841
|
+
<mui-h-stack space="var(--space-100)">
|
|
3842
|
+
<mui-body size="x-small">Usage:</mui-body>
|
|
3843
|
+
${o||'<mui-body size="x-small" weight="bold">None</mui-body>'}
|
|
3844
|
+
</mui-h-stack>
|
|
3845
|
+
|
|
3846
|
+
</mui-v-stack>
|
|
3847
|
+
`}}customElements.define("story-part-slat",pe);class be 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(){const t=this.getAttribute("color");let i={default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[t]||t||"var(--icon-color-default)";this.classList.add("mui-icon"),this.shadowRoot.innerHTML=`
|
|
3848
|
+
<style>
|
|
3849
|
+
:host {
|
|
3850
|
+
width: 21px;
|
|
3851
|
+
height: 21px;
|
|
3852
|
+
display: inline-flex;
|
|
3853
|
+
align-items: center;
|
|
3854
|
+
justify-content: center;
|
|
3855
|
+
fill: ${i};
|
|
3856
|
+
}
|
|
3857
|
+
svg {
|
|
3858
|
+
width: 100%;
|
|
3859
|
+
display: block;
|
|
3860
|
+
fill: inherit;
|
|
3861
|
+
}
|
|
3862
|
+
</style>
|
|
3863
|
+
|
|
3864
|
+
<svg
|
|
3865
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3866
|
+
viewBox="0 0 21 21"
|
|
3867
|
+
>
|
|
3868
|
+
<path
|
|
3869
|
+
d="M10.5 0C16.299 0 21 4.701 21 10.5S16.299 21 10.5 21 0 16.299 0 10.5 4.701 0 10.5 0M8.397 3.063c-1.496 0-2.71 1.225-2.71 2.737 0 .961.491 1.807 1.233 2.296a2.74 2.74 0 0 0-1.232 2.295c0 .96.49 1.806 1.232 2.294a2.74 2.74 0 0 0-1.232 2.296 2.734 2.734 0 0 0 2.721 2.738 2.76 2.76 0 0 0 2.747-2.763v-2.55a2.7 2.7 0 0 0 1.835.722h.049c1.497 0 2.71-1.226 2.71-2.737 0-.962-.49-1.807-1.232-2.295A2.74 2.74 0 0 0 15.75 5.8c0-1.512-1.213-2.737-2.71-2.737zm1.884 10.065v1.828a1.88 1.88 0 0 1-1.872 1.878 1.854 1.854 0 0 1-1.846-1.853c0-1.02.818-1.85 1.829-1.853zm0-4.59v3.705h-1.89a1.844 1.844 0 0 1-1.828-1.852c0-1.024.821-1.853 1.834-1.853zm2.759 0c1.013 0 1.834.83 1.834 1.853a1.843 1.843 0 0 1-1.834 1.852h-.049a1.844 1.844 0 0 1-1.835-1.852c0-1.024.822-1.853 1.835-1.853zm-2.759-.885H8.397A1.844 1.844 0 0 1 6.563 5.8c0-1.023.822-1.853 1.834-1.853h1.884zm2.759-3.706c1.013 0 1.834.83 1.834 1.853a1.844 1.844 0 0 1-1.834 1.853h-1.884V3.947z"
|
|
3870
|
+
></path>
|
|
3871
|
+
</svg>
|
|
3872
|
+
|
|
3873
|
+
|
|
3874
|
+
|
|
3875
|
+
`}}customElements.define("figma-mark",be);class ve 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(){const t=this.getAttribute("color");let i={default:"var(--icon-color-default)",inverted:"var(--icon-color-inverted)"}[t]||t||"var(--icon-color-default)";this.classList.add("mui-icon"),this.shadowRoot.innerHTML=`
|
|
3876
|
+
<style>
|
|
3877
|
+
:host {
|
|
3878
|
+
width: 21px;
|
|
3879
|
+
height: 21px;
|
|
3880
|
+
display: inline-flex;
|
|
3881
|
+
align-items: center;
|
|
3882
|
+
justify-content: center;
|
|
3883
|
+
fill: ${i};
|
|
3884
|
+
}
|
|
3885
|
+
svg {
|
|
3886
|
+
width: 100%;
|
|
3887
|
+
display: block;
|
|
3888
|
+
fill: inherit;
|
|
3889
|
+
}
|
|
3890
|
+
</style>
|
|
3891
|
+
|
|
3892
|
+
<svg
|
|
3893
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3894
|
+
viewBox="0 0 21 21"
|
|
3895
|
+
>
|
|
3896
|
+
<path
|
|
3897
|
+
d="M10.5 0C16.299 0 21 4.701 21 10.5S16.299 21 10.5 21 0 16.299 0 10.5 4.701 0 10.5 0m6.04 8.897a1.653 1.653 0 0 0-2.338 0l-3.7 3.7-3.7-3.7a1.653 1.653 0 0 0-2.336 2.337l4.85 4.85.017.02c.323.322.746.482 1.169.482s.847-.16 1.17-.482l.016-.02 4.851-4.85a1.653 1.653 0 0 0 0-2.337m-6.169-4.96a2.547 2.547 0 0 0-2.547 2.548c0 1.398 2.514 3.552 2.547 3.58.027-.022 2.548-2.18 2.548-3.58a2.55 2.55 0 0 0-2.548-2.548"
|
|
3898
|
+
></path>
|
|
3899
|
+
</svg>
|
|
3900
|
+
|
|
3901
|
+
|
|
3902
|
+
|
|
3903
|
+
`}}customElements.define("guides-mark",ve);class ge extends HTMLElement{static get observedAttributes(){return["title","description","accessibility","demo","github","figma","guides"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=`
|
|
3904
|
+
:host { display: block; width: 100%; }
|
|
3905
|
+
|
|
3906
|
+
.resources::part(display) {
|
|
3907
|
+
display: flex;
|
|
3908
|
+
gap: var(--space-200);
|
|
3909
|
+
padding: var(--space-200) var(--space-300);
|
|
3910
|
+
}
|
|
3911
|
+
`,e=this.getAttribute("title")||"",i=this.getAttribute("description")||"",s=i?`<mui-body large style="letter-spacing: 0.75px; max-width: 75ch;">${i}</mui-body>`:"",o=this.getAttribute("accessibility");let a=[];const n=this.getAttribute("demo"),l=n?`<mui-link class="resources" href="${n}" target="_blank" rel="noopener" variant="secondary">Live Demo<mui-icon-globe></mui-icon-globe></mui-link>`:"",c=this.getAttribute("github"),h=c?`<mui-link class="resources" href="${c}" target="_blank" rel="noopener" variant="secondary">Github<github-mark></github-mark></mui-link>`:"",d=this.getAttribute("figma"),u=d?`<mui-link class="resources" href="${d}" target="_blank" rel="noopener" variant="secondary">Figma<figma-mark></figma-mark></mui-link>`:"",v=this.hasAttribute("guides")?'<mui-link class="resources" href="/#/design-guidelines" variant="secondary">Guides<guides-mark></guides-mark></mui-link>':"";try{const f=o?o.replace(/(['"])(?=\w)(.*?)(?=\w)\1/g,"$2"):"";a=f?JSON.parse(f):[]}catch{a=o?o.split(";"):[]}const g=a.length?`
|
|
3912
|
+
<mui-message heading="Accessibility Notes" icon="mui-icon-accessibility">
|
|
3913
|
+
<mui-list as="ul">
|
|
3914
|
+
${a.map(f=>`<mui-list-item size="small" weight="medium">${f.trim()}</mui-list-item>`).join("")}
|
|
3915
|
+
</mui-list>
|
|
3916
|
+
</mui-message>
|
|
3917
|
+
`:"";this.shadowRoot.innerHTML=`
|
|
3918
|
+
<style>${t}</style>
|
|
3919
|
+
<mui-container center>
|
|
3920
|
+
<mui-v-stack space="var(--space-700)">
|
|
3921
|
+
<mui-v-stack space="var(--space-600)">
|
|
3922
|
+
<mui-v-stack space="var(--space-400)">
|
|
3923
|
+
<mui-responsive breakpoint="768">
|
|
3924
|
+
<mui-v-stack slot="showBelow" space="var(--space-300)">
|
|
3925
|
+
<mui-heading size="1" weight="800">${e}</mui-heading>
|
|
3926
|
+
<mui-h-stack space="var(--space-100)">
|
|
3927
|
+
${l}
|
|
3928
|
+
${v}
|
|
3929
|
+
${u}
|
|
3930
|
+
${h}
|
|
3931
|
+
</mui-h-stack>
|
|
3932
|
+
</mui-v-stack>
|
|
3933
|
+
<mui-h-stack slot="showAbove" alignX="space-between" alignY="center">
|
|
3934
|
+
<mui-heading size="1" weight="800">${e}</mui-heading>
|
|
3935
|
+
<mui-h-stack space="var(--space-100)">
|
|
3936
|
+
${l}
|
|
3937
|
+
${v}
|
|
3938
|
+
${u}
|
|
3939
|
+
${h}
|
|
3940
|
+
</mui-h-stack>
|
|
3941
|
+
</mui-h-stack>
|
|
3942
|
+
</mui-responsive>
|
|
3943
|
+
${s}
|
|
3944
|
+
</mui-v-stack>
|
|
3945
|
+
${g}
|
|
3946
|
+
</mui-v-stack>
|
|
3947
|
+
<div>
|
|
3948
|
+
<slot></slot>
|
|
3949
|
+
</div>
|
|
3950
|
+
</mui-v-stack>
|
|
3951
|
+
</mui-container>
|
|
3952
|
+
`}}customElements.define("story-template",ge);class fe extends HTMLElement{static get observedAttributes(){return["token","output","variant","font-size","line-height","font-weight"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.getAttribute("token"),e=this.getAttribute("output"),i=this.getAttribute("variant"),s=this.getAttribute("font-size"),o=this.getAttribute("line-height"),a=this.getAttribute("font-weight"),n=`
|
|
3953
|
+
:host {
|
|
3954
|
+
display: block;
|
|
3955
|
+
padding: var(--space-400) var(--space-500);
|
|
3956
|
+
border-top: var(--border-thin);
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
@media (min-width: 768px) {
|
|
3960
|
+
:host {
|
|
3961
|
+
padding: var(--space-400) var(--space-600);
|
|
3962
|
+
}
|
|
3963
|
+
}
|
|
3964
|
+
|
|
3965
|
+
:host(:first-of-type) {
|
|
3966
|
+
border-top: none;
|
|
3967
|
+
}
|
|
3968
|
+
|
|
3969
|
+
:host(:last-of-type) {
|
|
3970
|
+
border-bottom: none;
|
|
3971
|
+
}
|
|
3972
|
+
|
|
3973
|
+
mui-slat {
|
|
3974
|
+
align-items: start;
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3977
|
+
.swatch {
|
|
3978
|
+
width: var(--space-700);
|
|
3979
|
+
height: var(--space-700);
|
|
3980
|
+
border-radius: var(--radius-100);
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
.text-preview {
|
|
3984
|
+
font-size: var(--font-size-300);
|
|
3985
|
+
color: var(--text-color);
|
|
3986
|
+
}
|
|
3987
|
+
|
|
3988
|
+
.spacer {
|
|
3989
|
+
height: 16px;
|
|
3990
|
+
width: 100%;
|
|
3991
|
+
background: var(--mui-brand-300);
|
|
3992
|
+
border-radius: var(--radius-200);
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3995
|
+
.radius-preview {
|
|
3996
|
+
width: var(--space-700);
|
|
3997
|
+
height: var(--space-700);
|
|
3998
|
+
background: var(--mui-brand-300);
|
|
3999
|
+
}
|
|
4000
|
+
|
|
4001
|
+
.border-preview,
|
|
4002
|
+
.outline-preview { width: var(--space-700); }
|
|
4003
|
+
|
|
4004
|
+
.line-height-preview { }
|
|
4005
|
+
|
|
4006
|
+
mui-grid::part(align-items) { align-items: center; }
|
|
4007
|
+
`;let l="";switch(i){case"color":l=`<div class="swatch" style="background: ${e};"></div>`;break;case"text-color":l=`<div class="text-preview" style="color: ${e};">Aa</div>`;break;case"text-size":l=`
|
|
4008
|
+
<div
|
|
4009
|
+
class="text-preview"
|
|
4010
|
+
style="font-size: ${e}; line-height: var(${o}); font-weight: var(${a});"
|
|
4011
|
+
>
|
|
4012
|
+
Aa
|
|
4013
|
+
</div>`;break;case"line-height":l=`
|
|
4014
|
+
<div
|
|
4015
|
+
class="line-height-preview"
|
|
4016
|
+
style="line-height: ${e}; font-size: var(${s}); font-weight: var(${a});"
|
|
4017
|
+
>
|
|
4018
|
+
Aa
|
|
4019
|
+
</div>`;break;case"font-weight":l=`<div class="text-preview" style="font-weight: ${e};">Aa</div>`;break;case"font-family":l=`<div class="text-preview" style="font-family: ${e};">Aa</div>`;break;case"size":l=`<div class="spacer" style="height: ${e}; width: ${e};"></div>`;break;case"radius":l=`<div class="radius-preview" style="border-radius: ${e};"></div>`;break;case"border-width":l=`<div class="border-preview" style="border: var(--border-thin); border-width: ${e};"></div>`;break;case"border-color":l=`<div class="border-preview" style="border: var(--border-thin); border-color: ${e};"></div>`;break;case"border":l=`<div class="border-preview" style="border: ${e};"></div>`;break;case"outline-width":l=`<div class="outline-preview" style="outline: var(--outline-thin); outline-width: ${e};"></div>`;break;case"outline-color":l=`<div class="outline-preview" style="outline: var(--outline-thin); outline-color: ${e};"></div>`;break;case"outline":l=`<div class="outline-preview" style="outline: ${e};"></div>`;break}this.shadowRoot.innerHTML=`
|
|
4020
|
+
<style>${n}</style>
|
|
4021
|
+
|
|
4022
|
+
<mui-responsive breakpoint="767">
|
|
4023
|
+
<mui-slat slot="showAbove" style="grid-template-columns: 0.8fr 1.2fr; align-items: center;">
|
|
4024
|
+
<mui-body slot="start" size="x-small">
|
|
4025
|
+
<story-code-snippet>${t}</story-code-snippet>
|
|
4026
|
+
</mui-body>
|
|
4027
|
+
<div slot="end">
|
|
4028
|
+
<mui-grid col="1fr 1fr">
|
|
4029
|
+
${l}
|
|
4030
|
+
<mui-body size="x-small">${e}</mui-body>
|
|
4031
|
+
</mui-grid>
|
|
4032
|
+
</div>
|
|
4033
|
+
</mui-slat>
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
<mui-h-stack slot="showBelow" space="var(--space-200)" alignX="space-between" alignY="center" >
|
|
4037
|
+
<mui-v-stack space="var(--space-200)">
|
|
4038
|
+
<mui-body size="x-small"><story-code-snippet>${t}</story-code-snippet></mui-body>
|
|
4039
|
+
<mui-body size="x-small">${e}</mui-body>
|
|
4040
|
+
</mui-v-stack>
|
|
4041
|
+
<mui-h-stack>
|
|
4042
|
+
${l}
|
|
4043
|
+
</mui-h-stack>
|
|
4044
|
+
</mui-h-stack>
|
|
4045
|
+
|
|
4046
|
+
</mui-responsive>
|
|
4047
|
+
|
|
4048
|
+
`}}customElements.define("story-token-slat",fe);let ye=class extends HTMLElement{static get observedAttributes(){return["type","name","options","required","description","default"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
4049
|
+
:host {
|
|
4050
|
+
display: block;
|
|
4051
|
+
}
|
|
4052
|
+
`;this.getAttribute("name"),this.getAttribute("options"),this.hasAttribute("required"),this.getAttribute("type"),this.getAttribute("default"),this.getAttribute("description"),t.innerHTML=`
|
|
4053
|
+
<style>${e}</style>
|
|
4054
|
+
|
|
4055
|
+
<mui-table>
|
|
4056
|
+
<mui-row-group heading>
|
|
4057
|
+
<mui-row columns="1fr 1fr 1fr">
|
|
4058
|
+
<mui-cell heading>Token</mui-cell>
|
|
4059
|
+
<mui-cell heading>Usage</mui-cell>
|
|
4060
|
+
<mui-cell heading>Description</mui-cell>
|
|
4061
|
+
</mui-row>
|
|
4062
|
+
</mui-row-group>
|
|
4063
|
+
<slot></slot>
|
|
4064
|
+
</mui-table>
|
|
4065
|
+
|
|
4066
|
+
`}};customElements.define("story-token-type-table",ye);let we=class extends HTMLElement{static get observedAttributes(){return["token","description","usage"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
4067
|
+
:host {
|
|
4068
|
+
display: block;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
.visually-hidden {
|
|
4072
|
+
position: absolute;
|
|
4073
|
+
inset: 0;
|
|
4074
|
+
width: 1px;
|
|
4075
|
+
height: 1px;
|
|
4076
|
+
padding: 0;
|
|
4077
|
+
margin: -1px;
|
|
4078
|
+
overflow: hidden;
|
|
4079
|
+
clip-path: inset(50%);
|
|
4080
|
+
white-space: nowrap;
|
|
4081
|
+
border: 0;
|
|
4082
|
+
}
|
|
4083
|
+
|
|
4084
|
+
`,i=this.getAttribute("token")||"—",s=this.getAttribute("description")||"",o=this.getAttribute("usage")||"undefined";t.innerHTML=`
|
|
4085
|
+
<style>${e}</style>
|
|
4086
|
+
|
|
4087
|
+
<mui-row-group>
|
|
4088
|
+
<mui-row columns="1fr 1fr 1fr">
|
|
4089
|
+
<mui-cell>
|
|
4090
|
+
<mui-body size="x-small">
|
|
4091
|
+
<mui-h-stack space="var(--space-050)">
|
|
4092
|
+
${i}
|
|
4093
|
+
</mui-h-stack></mui-body>
|
|
4094
|
+
</mui-cell>
|
|
4095
|
+
<mui-cell><mui-body size="x-small">${s}</mui-body></mui-cell>
|
|
4096
|
+
<mui-cell><mui-body size="x-small">${o}</mui-body></mui-cell>
|
|
4097
|
+
</mui-row>
|
|
4098
|
+
</mui-row-group>
|
|
4099
|
+
`}};customElements.define("story-token-type-row",we);let ke=class extends HTMLElement{static get observedAttributes(){return["token","description","usage"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
4100
|
+
:host {
|
|
4101
|
+
display: block;
|
|
4102
|
+
}
|
|
4103
|
+
|
|
4104
|
+
.title {
|
|
4105
|
+
font-weight: var(--font-weight-bold);
|
|
4106
|
+
}
|
|
4107
|
+
|
|
4108
|
+
.visually-hidden {
|
|
4109
|
+
position: absolute;
|
|
4110
|
+
inset: 0;
|
|
4111
|
+
width: 1px;
|
|
4112
|
+
height: 1px;
|
|
4113
|
+
padding: 0;
|
|
4114
|
+
margin: -1px;
|
|
4115
|
+
overflow: hidden;
|
|
4116
|
+
clip-path: inset(50%);
|
|
4117
|
+
white-space: nowrap;
|
|
4118
|
+
border: 0;
|
|
4119
|
+
}
|
|
4120
|
+
|
|
4121
|
+
`,i=this.getAttribute("token")||"—",s=this.getAttribute("description")||"",o=this.getAttribute("usage")||"undefined";t.innerHTML=`
|
|
4122
|
+
<style>${e}</style>
|
|
4123
|
+
|
|
4124
|
+
|
|
4125
|
+
<mui-responsive breakpoint="600">
|
|
4126
|
+
|
|
4127
|
+
<mui-v-stack space="var(--space-000)" slot="showAbove">
|
|
4128
|
+
<mui-slat style="gap: var(--space-600)">
|
|
4129
|
+
<div slot="start">
|
|
4130
|
+
<mui-v-stack space="var(--space-200)">
|
|
4131
|
+
<mui-body size="medium"><mui-h-stack space="var(--space-050)"><span class="title">Name:</span> ${i}
|
|
4132
|
+
</mui-h-stack></mui-body>
|
|
4133
|
+
</mui-v-stack>
|
|
4134
|
+
</div>
|
|
4135
|
+
|
|
4136
|
+
<mui-v-stack space="var(--space-100)" slot="end">
|
|
4137
|
+
<mui-body size="x-small"><span class="title">Usage:</span> ${o}</mui-body>
|
|
4138
|
+
<mui-body size="x-small"><span class="title">Description:</span> ${s}</mui-body>
|
|
4139
|
+
</mui-v-stack>
|
|
4140
|
+
</mui-slat>
|
|
4141
|
+
</mui-v-stack>
|
|
4142
|
+
|
|
4143
|
+
<mui-v-stack space="var(--space-100)" slot="showBelow">
|
|
4144
|
+
<mui-v-stack space="var(--space-200)">
|
|
4145
|
+
<mui-body size="medium"><mui-h-stack space="var(--space-050)"><span class="title">Name:</span> ${i}</mui-h-stack></mui-body>
|
|
4146
|
+
</mui-v-stack>
|
|
4147
|
+
|
|
4148
|
+
<mui-v-stack space="var(--space-050)">
|
|
4149
|
+
<mui-body size="x-small"><span class="title">Usage:</span> ${o}</mui-body>
|
|
4150
|
+
<mui-body size="x-small"><span class="title">Description:</span> ${s}</mui-body>
|
|
4151
|
+
</mui-v-stack>
|
|
4152
|
+
|
|
4153
|
+
</mui-responsive>
|
|
4154
|
+
`}};customElements.define("story-token-type-slat",ke);class xe extends HTMLElement{static get observedAttributes(){return["type","name","options","required","description","default"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
4155
|
+
:host {
|
|
4156
|
+
display: block;
|
|
4157
|
+
}
|
|
4158
|
+
`;t.innerHTML=`
|
|
4159
|
+
<style>${e}</style>
|
|
4160
|
+
|
|
4161
|
+
<mui-table>
|
|
4162
|
+
<mui-row-group heading>
|
|
4163
|
+
<mui-row columns="minmax(12rem, 0.5fr) minmax(10rem, 1fr) minmax(10rem, 2fr) minmax(5rem, 0.5fr) 2fr">
|
|
4164
|
+
<mui-cell class="card-slot" heading>Name</mui-cell>
|
|
4165
|
+
<mui-cell class="card-slot" heading>Default</mui-cell>
|
|
4166
|
+
<mui-cell class="card-slot" heading>Options</mui-cell>
|
|
4167
|
+
<mui-cell class="card-slot" heading>Type</mui-cell>
|
|
4168
|
+
<mui-cell class="card-slot" heading>Description</mui-cell>
|
|
4169
|
+
</mui-row>
|
|
4170
|
+
</mui-row-group>
|
|
4171
|
+
<slot></slot>
|
|
4172
|
+
</mui-table>
|
|
4173
|
+
|
|
4174
|
+
`}}customElements.define("story-type-table",xe);class Ae extends HTMLElement{static get observedAttributes(){return["type","name","options","required","description","default"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
4175
|
+
:host {
|
|
4176
|
+
display: block;
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
.visually-hidden {
|
|
4180
|
+
position: absolute;
|
|
4181
|
+
inset: 0;
|
|
4182
|
+
width: 1px;
|
|
4183
|
+
height: 1px;
|
|
4184
|
+
padding: 0;
|
|
4185
|
+
margin: -1px;
|
|
4186
|
+
overflow: hidden;
|
|
4187
|
+
clip-path: inset(50%);
|
|
4188
|
+
white-space: nowrap;
|
|
4189
|
+
border: 0;
|
|
4190
|
+
}
|
|
4191
|
+
|
|
4192
|
+
`,i=this.getAttribute("name")||"—",s=this.hasAttribute("required"),o=this.getAttribute("type")||"undefined",a=this.getAttribute("description")||"",n=this.getAttribute("options")||"-",l=n!=="-"?n.split(",").map(d=>`<story-code-snippet>${d.trim()}</story-code-snippet>`).join(" "):"-",c=this.getAttribute("default")||"-",h=c!=="-"?`<story-code-snippet>${c}</story-code-snippet>`:"-";t.innerHTML=`
|
|
4193
|
+
<style>${e}</style>
|
|
4194
|
+
|
|
4195
|
+
<mui-row-group>
|
|
4196
|
+
<mui-row columns="minmax(12rem, 0.5fr) minmax(10rem, 1fr) minmax(10rem, 2fr) minmax(5rem, 0.5fr) 2fr">
|
|
4197
|
+
<mui-cell class="card-slot">
|
|
4198
|
+
<mui-body size="x-small">
|
|
4199
|
+
<mui-h-stack space="var(--space-050)">
|
|
4200
|
+
${i} ${s?'<span aria-hidden="true" style="color: var(--red-500)">*</span><span class="visually-hidden">(required)</span>':""}
|
|
4201
|
+
</mui-h-stack></mui-body>
|
|
4202
|
+
</mui-cell>
|
|
4203
|
+
<mui-cell class="card-slot"><mui-body size="x-small">${h}<mui-body></mui-cell>
|
|
4204
|
+
<mui-cell class="card-slot"><mui-body size="x-small">${l}</mui-body></mui-cell>
|
|
4205
|
+
<mui-cell class="card-slot"><mui-body size="x-small">${o}</mui-body></mui-cell>
|
|
4206
|
+
<mui-cell class="card-slot"><mui-body size="x-small">${a}</mui-body></mui-cell>
|
|
4207
|
+
</mui-row>
|
|
4208
|
+
</mui-row-group>
|
|
4209
|
+
`}}customElements.define("story-type-row",Ae);class Ee extends HTMLElement{static get observedAttributes(){return["type","name","options","required","description","default"]}constructor(){super();const t=this.attachShadow({mode:"open"}),e=`
|
|
4210
|
+
:host {
|
|
4211
|
+
display: block;
|
|
4212
|
+
}
|
|
4213
|
+
|
|
4214
|
+
.title {
|
|
4215
|
+
font-weight: var(--font-weight-bold);
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
.visually-hidden {
|
|
4219
|
+
position: absolute;
|
|
4220
|
+
inset: 0;
|
|
4221
|
+
width: 1px;
|
|
4222
|
+
height: 1px;
|
|
4223
|
+
padding: 0;
|
|
4224
|
+
margin: -1px;
|
|
4225
|
+
overflow: hidden;
|
|
4226
|
+
clip-path: inset(50%);
|
|
4227
|
+
white-space: nowrap;
|
|
4228
|
+
border: 0;
|
|
4229
|
+
}
|
|
4230
|
+
|
|
4231
|
+
`,i=this.getAttribute("name")||"—",s=this.hasAttribute("required"),o=this.getAttribute("type")||"undefined",a=this.getAttribute("description")||"",n=this.getAttribute("options")||"-",l=n!=="-"?n.split(",").map(d=>`<story-code-snippet>${d.trim()}</story-code-snippet>`).join(" "):"-",c=this.getAttribute("default")||"-",h=c!=="-"?`<story-code-snippet>${c}</story-code-snippet>`:"-";t.innerHTML=`
|
|
4232
|
+
<style>${e}</style>
|
|
4233
|
+
|
|
4234
|
+
|
|
4235
|
+
<mui-responsive breakpoint="600">
|
|
4236
|
+
|
|
4237
|
+
<mui-v-stack space="var(--space-000)" slot="showAbove">
|
|
4238
|
+
<mui-slat style="gap: var(--space-600)">
|
|
4239
|
+
<div slot="start">
|
|
4240
|
+
<mui-v-stack space="var(--space-200)">
|
|
4241
|
+
<mui-body size="medium"><mui-h-stack space="var(--space-050)"><span class="title">Name:</span> ${i}
|
|
4242
|
+
${s?'<span aria-hidden="true" style="color: var(--red-500)">*</span><span class="visually-hidden">(required)</span>':""}
|
|
4243
|
+
</mui-h-stack></mui-body>
|
|
4244
|
+
<mui-body size="x-small"><span class="title">Description:</span><br /> ${a}</mui-body>
|
|
4245
|
+
</mui-v-stack>
|
|
4246
|
+
</div>
|
|
4247
|
+
|
|
4248
|
+
<mui-v-stack space="var(--space-100)" slot="end">
|
|
4249
|
+
<mui-body size="x-small"><span class="title">Default:</span> ${h}</mui-body>
|
|
4250
|
+
<mui-body size="x-small"><span class="title">Type:</span> ${o}</mui-body>
|
|
4251
|
+
<mui-body size="x-small"><span class="title">Options:</span> ${l}</mui-body>
|
|
4252
|
+
</mui-v-stack>
|
|
4253
|
+
</mui-slat>
|
|
4254
|
+
</mui-v-stack>
|
|
4255
|
+
|
|
4256
|
+
<mui-v-stack space="var(--space-100)" slot="showBelow">
|
|
4257
|
+
<mui-v-stack space="var(--space-200)">
|
|
4258
|
+
<mui-body size="medium"><mui-h-stack space="var(--space-050)"><span class="title">Name:</span> ${i}
|
|
4259
|
+
${s?'<span aria-hidden="true" style="color: var(--red-500)">*</span><span class="visually-hidden">(required)</span>':""}
|
|
4260
|
+
</mui-h-stack></mui-body>
|
|
4261
|
+
<mui-body size="x-small">${a}</mui-body>
|
|
4262
|
+
</mui-v-stack>
|
|
4263
|
+
|
|
4264
|
+
<mui-v-stack space="var(--space-050)">
|
|
4265
|
+
<mui-body size="x-small"><span class="title">Default:</span> ${h}</mui-body>
|
|
4266
|
+
<mui-body size="x-small"><span class="title">Type:</span> ${o}</mui-body>
|
|
4267
|
+
<mui-body size="x-small"><span class="title">Options:</span> ${l}</mui-body>
|
|
4268
|
+
</mui-v-stack>
|
|
4269
|
+
|
|
4270
|
+
</mui-responsive>
|
|
4271
|
+
`}}customElements.define("story-type-slat",Ee);document.querySelector("#app").innerHTML=`
|
|
4272
|
+
<app-navbar>
|
|
4273
|
+
<app-navbar-skip slot="skip"></app-navbar-skip>
|
|
4274
|
+
</app-navbar>
|
|
4275
|
+
<app-container />
|
|
4276
|
+
`;export{ae as H};
|