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