@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
@@ -0,0 +1,82 @@
1
+ import { getPartMap as i } from "../mui-utils/part-map/index.js";
2
+ class r extends HTMLElement {
3
+ static get observedAttributes() {
4
+ return ["size", "weight", "variant"];
5
+ }
6
+ constructor() {
7
+ super(), this.attachShadow({ mode: "open" });
8
+ const e = this.getAttribute("size") || "medium", t = this.getAttribute("weight") || "regular", o = this.getAttribute("variant") || "default";
9
+ this.setAttribute("size", e), this.setAttribute("variant", o), this.setAttribute("weight", t);
10
+ }
11
+ async connectedCallback() {
12
+ await this.waitForPartMap();
13
+ let t = (
14
+ /*html*/
15
+ `
16
+ <style>
17
+ :host { display: block; }
18
+
19
+ :host p {
20
+ color: var(--text-color);
21
+ margin: var(--space-000);
22
+ display: block;
23
+ width: 100%;
24
+ }
25
+
26
+ :host([size="x-small"]) p {
27
+ font-size: var(--text-font-size-xs);
28
+ line-height: var(--text-line-height-xs);
29
+ }
30
+
31
+ :host([size="small"]) p {
32
+ font-size: var(--text-font-size-s);
33
+ line-height: var(--text-line-height-s);
34
+ }
35
+
36
+ :host([size="medium"]) p {
37
+ font-size: var(--text-font-size-m);
38
+ line-height: var(--text-line-height-m);
39
+ }
40
+
41
+ :host([size="large"]) p {
42
+ font-size: var(--text-font-size-l);
43
+ line-height: var(--text-line-height-l);
44
+ }
45
+
46
+ :host([weight="regular"]) p { font-weight: var(--font-weight-regular); }
47
+ :host([weight="medium"]) p { font-weight: var(--font-weight-medium); }
48
+ :host([weight="bold"]) p { font-weight: var(--font-weight-bold); }
49
+
50
+ /* Variant */
51
+ :host([variant="default"]) p {
52
+ color: var(--text-color);
53
+ }
54
+ :host([variant="success"]) p {
55
+ color: var(--text-color-success);
56
+ }
57
+ :host([variant="warning"]) p {
58
+ color: var(--text-color-warning);
59
+ }
60
+ :host([variant="error"]) p {
61
+ color: var(--text-color-error);
62
+ }
63
+
64
+ </style>
65
+
66
+ <p part="${i("spacing", "layout", "visual")}"><slot></slot></p>
67
+
68
+ `
69
+ );
70
+ this.shadowRoot && (this.shadowRoot.innerHTML = t);
71
+ }
72
+ waitForPartMap() {
73
+ return new Promise((e) => {
74
+ if (typeof i == "function") return e();
75
+ const t = () => {
76
+ typeof i == "function" ? e() : requestAnimationFrame(t);
77
+ };
78
+ t();
79
+ });
80
+ }
81
+ }
82
+ customElements.define("mui-body", r);
@@ -0,0 +1,296 @@
1
+ import { getPartMap as n } from "../mui-utils/part-map/index.js";
2
+ class s extends HTMLElement {
3
+ static get observedAttributes() {
4
+ return ["onclick", "type", "aria-label", "disabled", "variant"];
5
+ }
6
+ constructor() {
7
+ super(), this.attachShadow({ mode: "open" });
8
+ }
9
+ async connectedCallback() {
10
+ if (await this.waitForPartMap(), !this.shadowRoot) return;
11
+ let o = (
12
+ /*html*/
13
+ `
14
+ <style>
15
+
16
+
17
+ :host {
18
+ display: inline-block;
19
+ }
20
+ button {
21
+ vertical-align: baseline;
22
+ border: none;
23
+ cursor: pointer;
24
+ width: auto;
25
+ border-radius: var(--action-radius);
26
+ padding: var(--action-padding);
27
+ text-decoration: none;
28
+ line-height: var(--action-line-height);
29
+ display: inline-block;
30
+ text-transform: none;
31
+ overflow: visible;
32
+ -webkit-appearance: button;
33
+ font-family: var(--font-family);
34
+ font-size: var(--action-font-size);
35
+ font-weight: var(--action-font-weight);
36
+ background: var(--action-primary-background);
37
+ color: var(--action-primary-text-color);
38
+ border: var(--action-primary-stroke);
39
+ }
40
+
41
+ // Turned back on for focus-visible
42
+ button:focus, button:active, button:hover { outline: var(--space-000); }
43
+
44
+ button:hover {
45
+ background: var(--action-primary-background-hover);
46
+ color: var(--action-primary-text-color-hover);
47
+ }
48
+
49
+ button:focus {
50
+ background: var(--action-primary-background-focus);
51
+ color: var(--action-primary-text-color-focus);
52
+ }
53
+
54
+ button:disabled {
55
+ background: var(--action-primary-background-disabled);
56
+ color: var(--action-primary-text-color-disabled);
57
+ }
58
+
59
+ button, button:before, button:after {box-sizing: border-box;}
60
+
61
+ button:focus-visible {
62
+ outline: var(--outline-thick);
63
+ }
64
+
65
+ /* Primary
66
+ ========================================= */
67
+ :host([variant="primary"]) button {
68
+ background: var(--action-primary-background);
69
+ color: var(--action-primary-text-color);
70
+ border: var(--action-primary-stroke);
71
+ }
72
+
73
+ :host([variant="primary"]) button:hover {
74
+ background: var(--action-primary-background-hover);
75
+ color: var(--action-primary-text-color-hover);
76
+ border: var(--action-primary-stroke-hover);
77
+ }
78
+
79
+ :host([variant="primary"]) button:focus {
80
+ background: var(--action-primary-background-focus);
81
+ color: var(--action-primary-text-color-focus);
82
+ border: var(--action-primary-stroke-focus);
83
+ }
84
+
85
+ :host([variant="primary"]) button:disabled {
86
+ background: var(--action-primary-background-disabled);
87
+ color: var(--action-primary-text-color-disabled);
88
+ border: var(--action-primary-stroke-disabled);
89
+ cursor: not-allowed;
90
+ }
91
+
92
+ :host([variant="primary"]) button ::slotted(.mui-icon) { fill: var(--action-primary-text-color); }
93
+ :host([variant="primary"]) button:hover ::slotted(.mui-icon) { fill: var(--action-primary-text-color-hover); }
94
+ :host([variant="primary"]) button:focus ::slotted(.mui-icon) { fill: var(--action-primary-text-color-focus); }
95
+ :host([variant="primary"]) button:disabled ::slotted(.mui-icon) { fill: var(--action-primary-text-color-disabled); }
96
+
97
+ /* Secondary
98
+ ========================================= */
99
+
100
+ :host([variant="secondary"]) button {
101
+ background: var(--action-secondary-background);
102
+ color: var(--action-secondary-text-color);
103
+ border: var(--action-secondary-stroke);
104
+ }
105
+
106
+ :host([variant="secondary"]) button:hover {
107
+ background: var(--action-secondary-background-hover);
108
+ color: var(--action-secondary-text-color-hover);
109
+ border: var(--action-secondary-stroke-hover);
110
+ }
111
+
112
+ :host([variant="secondary"]) button:focus {
113
+ background: var(--action-secondary-background-focus);
114
+ color: var(--action-secondary-text-color-focus);
115
+ border: var(--action-secondary-stroke-focus);
116
+ }
117
+
118
+ :host([variant="secondary"]) button:disabled {
119
+ background: var(--action-secondary-background-disabled);
120
+ color: var(--action-secondary-text-color-disabled);
121
+ border: var(--action-secondary-stroke-disabled);
122
+ cursor: not-allowed;
123
+ }
124
+
125
+ :host([variant="secondary"]) button ::slotted(.mui-icon) { fill: var(--action-secondary-text-color); }
126
+ :host([variant="secondary"]) button:hover ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-hover); }
127
+ :host([variant="secondary"]) button:focus ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-focus); }
128
+ :host([variant="secondary"]) button:disabled ::slotted(.mui-icon) { fill: var(--action-secondary-text-color-disabled); }
129
+
130
+ /* Tertiary
131
+ ========================================= */
132
+
133
+ :host([variant="tertiary"]) button {
134
+ background: var(--action-tertiary-background);
135
+ color: var(--action-tertiary-text-color);
136
+ border: var(--action-tertiary-stroke);
137
+ }
138
+
139
+ :host([variant="tertiary"]) button:hover {
140
+ background: var(--action-tertiary-background-hover);
141
+ color: var(--action-tertiary-text-color-hover);
142
+ border: var(--action-tertiary-stroke-hover);
143
+ }
144
+
145
+ :host([variant="tertiary"]) button:focus {
146
+ background: var(--action-tertiary-background-focus);
147
+ color: var(--action-tertiary-text-color-focus);
148
+ border: var(--action-tertiary-stroke-focus);
149
+ }
150
+
151
+ :host([variant="tertiary"]) button:disabled {
152
+ background: var(--action-tertiary-background-disabled);
153
+ color: var(--action-tertiary-text-color-disabled);
154
+ border: var(--action-tertiary-stroke-disabled);
155
+ cursor: not-allowed;
156
+ }
157
+
158
+ :host([variant="tertiary"]) button ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color); }
159
+ :host([variant="tertiary"]) button:hover ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-hover); }
160
+ :host([variant="tertiary"]) button:focus ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-focus); }
161
+ :host([variant="tertiary"]) button:disabled ::slotted(.mui-icon) { fill: var(--action-tertiary-text-color-disabled); }
162
+
163
+ /* Attention
164
+ ========================================= */
165
+ :host([variant="attention"]) button {
166
+ background: var(--action-attention-background);
167
+ color: var(--action-attention-text-color);
168
+ border: var(--action-attention-stroke);
169
+ }
170
+
171
+ :host([variant="attention"]) button:hover {
172
+ background: var(--action-attention-background-hover);
173
+ color: var(--action-attention-text-color-hover);
174
+ border: var(--action-attention-stroke-hover);
175
+ }
176
+
177
+ :host([variant="attention"]) button:focus {
178
+ background: var(--action-attention-background-focus);
179
+ color: var(--action-attention-text-color-focus);
180
+ border: var(--action-attention-stroke-focus);
181
+ }
182
+
183
+ :host([variant="attention"]) button:disabled {
184
+ background: var(--action-attention-background-disabled);
185
+ color: var(--action-attention-text-color-disabled);
186
+ border: var(--action-attention-stroke-disabled);
187
+ cursor: not-allowed;
188
+ }
189
+
190
+ :host([variant="attention"]) button ::slotted(.mui-icon) { fill: var(--action-attention-text-color); }
191
+ :host([variant="attention"]) button:hover ::slotted(.mui-icon) { fill: var(--action-attention-text-color-hover); }
192
+ :host([variant="attention"]) button:focus ::slotted(.mui-icon) { fill: var(--action-attention-text-color-focus); }
193
+ :host([variant="attention"]) button:disabled ::slotted(.mui-icon) { fill: var(--action-attention-text-color-disabled); }
194
+
195
+ /* Icon only
196
+ ========================================= */
197
+ :host([icon-only]) button {
198
+ display: flex;
199
+ justify-content: center;
200
+ align-items: center;
201
+ height: 44px;
202
+ width: 44px;
203
+ padding: var(--action-icon-only-padding);
204
+ }
205
+ /* ===================================== */
206
+
207
+
208
+ /* ========================================================================== */
209
+ /* STYLE ADJUSTMENTS WHEN BUTTON IS SLOTTED WITHIN INPUT */
210
+ /* Related styles unique to this usage is found in the mui-input/index.js */
211
+ /* ========================================================================== */
212
+
213
+ /* ========================================================================== */
214
+ /* BEFORE: When a BUTTON has slot="before" applied to host for INPUT usage */
215
+ /* ========================================================================== */
216
+
217
+ :host([slot="before"]) button {
218
+ border: var(--border-thin);
219
+ min-height: 4.4rem;
220
+ background: var(--action-secondary-background);
221
+ color: var(--action-secondary-text-color);
222
+ border-color: var(--form-default-border-color);
223
+ border-right: none;
224
+ border-top-right-radius: var(--radius-000);
225
+ border-bottom-right-radius: var(--radius-000);
226
+ }
227
+
228
+ :host([slot="before"]) button:hover {
229
+ background: var(--action-secondary-background-hover);
230
+ color: var(--action-secondary-text-color-hover);
231
+ border-color: var(--form-default-border-color-hover);
232
+ }
233
+
234
+ /* ========================================================================== */
235
+ /* AFTER: When a BUTTON has slot="after" applied to host for INPUT usage */
236
+ /* ========================================================================== */
237
+
238
+ :host([slot="after"]) button {
239
+ border: var(--border-thin);
240
+ min-height: 4.4rem;
241
+ background: var(--action-secondary-background);
242
+ color: var(--action-secondary-text-color);
243
+ border-color: var(--form-default-border-color);
244
+ border-left: none;
245
+ border-top-left-radius: var(--radius-000);
246
+ border-bottom-left-radius: var(--radius-000);
247
+ }
248
+
249
+ :host([slot="after"]) button:hover,
250
+ :host([slot="after"]) button:focus {
251
+ background: var(--action-secondary-background-hover);
252
+ color: var(--action-secondary-text-color-hover);
253
+ border-color: var(--form-default-border-color-hover);
254
+ }
255
+
256
+ /* ========================================================================== */
257
+
258
+
259
+ </style>
260
+
261
+ <button
262
+ part="${n("text", "spacing", "layout", "visual")}"
263
+ onclick="${this.getAttribute("onclick")}"
264
+ type="${this.getAttribute("type") || "button"}"
265
+ aria-label="${this.getAttribute("aria-label") || ""}"
266
+ ${this.hasAttribute("disabled") ? "disabled" : ""}
267
+ >
268
+ <slot></slot>
269
+ </button>
270
+
271
+ `
272
+ );
273
+ this.shadowRoot.innerHTML = o, await customElements.whenDefined("mui-button"), requestAnimationFrame(() => {
274
+ var e;
275
+ const a = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot");
276
+ ((a == null ? void 0 : a.assignedNodes({ flatten: !0 })) || []).every((t) => {
277
+ var i;
278
+ if (t.nodeType === Node.ELEMENT_NODE) {
279
+ const c = t;
280
+ return c.tagName.toLowerCase() === "svg" || c.classList.contains("mui-icon");
281
+ }
282
+ return t.nodeType === Node.TEXT_NODE && !((i = t.textContent) != null && i.trim());
283
+ }) ? this.setAttribute("icon-only", "") : this.removeAttribute("icon-only");
284
+ });
285
+ }
286
+ waitForPartMap() {
287
+ return new Promise((r) => {
288
+ if (typeof n == "function") return r();
289
+ const o = () => {
290
+ typeof n == "function" ? r() : requestAnimationFrame(o);
291
+ };
292
+ o();
293
+ });
294
+ }
295
+ }
296
+ customElements.define("mui-button", s);
@@ -0,0 +1,23 @@
1
+ class e extends HTMLElement {
2
+ constructor() {
3
+ super(), this.attachShadow({ mode: "open" });
4
+ }
5
+ connectedCallback() {
6
+ let t = (
7
+ /*html*/
8
+ `
9
+ <style>
10
+ :host {
11
+ display: flex;
12
+ gap: var(--space-200);
13
+ }
14
+ :host([right]) {
15
+ justify-content: flex-end;
16
+ }
17
+ </style>
18
+ <slot></slot>`
19
+ );
20
+ this.shadowRoot && (this.shadowRoot.innerHTML = t);
21
+ }
22
+ }
23
+ customElements.define("mui-button-group", e);
@@ -0,0 +1,48 @@
1
+ class d extends HTMLElement {
2
+ constructor() {
3
+ super(), this.attachShadow({ mode: "open" });
4
+ }
5
+ connectedCallback() {
6
+ if (!this.shadowRoot) return;
7
+ const i = (
8
+ /*html*/
9
+ `
10
+ <style>
11
+ :host {
12
+ display: block;
13
+ box-sizing: border-box;
14
+ }
15
+ :host(.inner-space) {
16
+ padding: var(--space-500);
17
+ }
18
+ @media (min-width: 768px) {
19
+ :host(.inner-space) {
20
+ padding: var(--space-600);
21
+ }
22
+ }
23
+ </style>
24
+ <slot></slot>
25
+ `
26
+ );
27
+ this.shadowRoot.innerHTML = i, requestAnimationFrame(() => {
28
+ if (!this.shadowRoot) return;
29
+ const s = this.shadowRoot.querySelector("slot");
30
+ if (!s) return;
31
+ const r = s.assignedNodes({ flatten: !0 });
32
+ let o = !1;
33
+ r.forEach((a) => {
34
+ if (a.nodeType === Node.ELEMENT_NODE) {
35
+ const e = a, c = e.tagName.toLowerCase() === "mui-accordion-group" ? e : e.querySelector("mui-accordion-group");
36
+ c instanceof HTMLElement && (c.querySelectorAll("mui-accordion-block").forEach((t) => {
37
+ t.classList.add("card-slot");
38
+ }), o = !0);
39
+ const n = e.tagName.toLowerCase() === "mui-table" ? e : e.querySelector("mui-table");
40
+ n instanceof HTMLElement && (n.querySelectorAll("mui-cell").forEach((t) => {
41
+ t.classList.add("card-slot");
42
+ }), o = !0);
43
+ }
44
+ }), o || this.classList.add("inner-space");
45
+ });
46
+ }
47
+ }
48
+ customElements.define("mui-card-body", d);
@@ -0,0 +1,43 @@
1
+ class n extends HTMLElement {
2
+ static get observedAttributes() {
3
+ return ["footer"];
4
+ }
5
+ constructor() {
6
+ super(), this.attachShadow({ mode: "open" });
7
+ }
8
+ connectedCallback() {
9
+ if (!this.shadowRoot) return;
10
+ let d = (
11
+ /*html*/
12
+ `
13
+ <style>
14
+ :host {
15
+ display: block;
16
+ border-radius: var(--card-radius);
17
+ background: var(--surface-elevated-100);
18
+ }
19
+ ::slotted(*:last-child) {
20
+ margin-bottom: 0;
21
+ }
22
+ ::slotted(.inner-space-top) {
23
+ padding-top: 0;
24
+ }
25
+ </style>
26
+ <slot></slot>
27
+ `
28
+ );
29
+ this.shadowRoot.innerHTML = d;
30
+ const t = this.shadowRoot.querySelector("slot");
31
+ t && t.addEventListener("slotchange", () => {
32
+ const a = t.assignedElements(), r = a.some((o) => {
33
+ var e;
34
+ return ((e = o.tagName) == null ? void 0 : e.toLowerCase()) === "mui-card-header";
35
+ }), s = a.find((o) => {
36
+ var e;
37
+ return ((e = o.tagName) == null ? void 0 : e.toLowerCase()) === "mui-card-body";
38
+ });
39
+ s && (r ? s.classList.add("inner-space-top") : s.classList.remove("inner-space-top"));
40
+ });
41
+ }
42
+ }
43
+ customElements.define("mui-card", n);
@@ -0,0 +1,62 @@
1
+ class d extends HTMLElement {
2
+ constructor() {
3
+ super(), this.attachShadow({ mode: "open" });
4
+ }
5
+ connectedCallback() {
6
+ if (!this.shadowRoot) return;
7
+ const i = (
8
+ /*html*/
9
+ `
10
+ <style>
11
+ :host {
12
+ display: block;
13
+ width: 100%;
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ :host(.inner-space) {
18
+ padding: var(--space-400) var(--space-500);
19
+ }
20
+
21
+ @media (min-width: 768px) {
22
+ :host(.inner-space) {
23
+ padding: var(--space-500) var(--space-600);
24
+ }
25
+ }
26
+
27
+ :host(.hidden) {
28
+ display: none;
29
+ }
30
+
31
+ ::slotted(mui-code) {
32
+ border-bottom-right-radius: calc(var(--card-radius) - 1px);
33
+ border-bottom-left-radius: calc(var(--card-radius) - 1px);
34
+ }
35
+ </style>
36
+ <slot></slot>
37
+ `
38
+ );
39
+ this.shadowRoot.innerHTML = i, requestAnimationFrame(() => {
40
+ if (!this.shadowRoot) return;
41
+ const s = this.shadowRoot.querySelector("slot");
42
+ if (!s) return;
43
+ const r = s.assignedNodes({ flatten: !0 }).filter((e) => {
44
+ var t;
45
+ return e.nodeType === Node.ELEMENT_NODE || e.nodeType === Node.TEXT_NODE && ((t = e.textContent) == null ? void 0 : t.trim()) !== "";
46
+ });
47
+ if (r.length === 0) {
48
+ this.classList.add("hidden");
49
+ return;
50
+ }
51
+ let a = !1;
52
+ r.forEach((e) => {
53
+ var t;
54
+ if (e.nodeType === Node.ELEMENT_NODE) {
55
+ const o = e;
56
+ (o.tagName.toLowerCase() === "mui-code" || (t = o.querySelector) != null && t.call(o, "mui-code")) && (a = !0);
57
+ }
58
+ }), a || this.classList.add("inner-space");
59
+ });
60
+ }
61
+ }
62
+ customElements.define("mui-card-footer", d);
@@ -0,0 +1,29 @@
1
+ class t extends HTMLElement {
2
+ constructor() {
3
+ super(), this.attachShadow({ mode: "open" });
4
+ }
5
+ connectedCallback() {
6
+ if (!this.shadowRoot) return;
7
+ let e = (
8
+ /*html*/
9
+ `
10
+ <style>
11
+ :host {
12
+ display: block;
13
+ width: 100%;
14
+ box-sizing: border-box;
15
+ padding: var(--space-400) var(--space-500);
16
+ }
17
+ @media (min-width: 768px) {
18
+ :host {
19
+ padding: var(--space-500) var(--space-600);
20
+ }
21
+ }
22
+ </style>
23
+ <slot></slot>
24
+ `
25
+ );
26
+ this.shadowRoot.innerHTML = e;
27
+ }
28
+ }
29
+ customElements.define("mui-card-header", t);
@@ -0,0 +1,4 @@
1
+ import "./body/index.js";
2
+ import "./card/index.js";
3
+ import "./footer/index.js";
4
+ import "./header/index.js";