macbetter 0.0.0-stage → 0.1.0-beta.2

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 (310) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +92 -2
  3. package/dist/components/accessory-tile.d.ts +50 -0
  4. package/dist/components/accessory-tile.js +46 -0
  5. package/dist/components/activity-indicator.d.ts +15 -0
  6. package/dist/components/activity-indicator.js +15 -0
  7. package/dist/components/alert.d.ts +29 -0
  8. package/dist/components/alert.js +30 -0
  9. package/dist/components/artifact-card.d.ts +41 -0
  10. package/dist/components/artifact-card.js +57 -0
  11. package/dist/components/artwork.d.ts +44 -0
  12. package/dist/components/artwork.js +935 -0
  13. package/dist/components/attachment.d.ts +48 -0
  14. package/dist/components/attachment.js +65 -0
  15. package/dist/components/automation-row.d.ts +24 -0
  16. package/dist/components/automation-row.js +12 -0
  17. package/dist/components/avatar.d.ts +33 -0
  18. package/dist/components/avatar.js +45 -0
  19. package/dist/components/badge.d.ts +24 -0
  20. package/dist/components/badge.js +19 -0
  21. package/dist/components/button.d.ts +20 -0
  22. package/dist/components/button.js +10 -0
  23. package/dist/components/calendar.d.ts +30 -0
  24. package/dist/components/calendar.js +47 -0
  25. package/dist/components/camera-view.d.ts +40 -0
  26. package/dist/components/camera-view.js +44 -0
  27. package/dist/components/card.d.ts +14 -0
  28. package/dist/components/card.js +21 -0
  29. package/dist/components/carousel.d.ts +18 -0
  30. package/dist/components/carousel.js +33 -0
  31. package/dist/components/chat.d.ts +29 -0
  32. package/dist/components/chat.js +29 -0
  33. package/dist/components/checkbox.d.ts +13 -0
  34. package/dist/components/checkbox.js +16 -0
  35. package/dist/components/code-block.d.ts +39 -0
  36. package/dist/components/code-block.js +65 -0
  37. package/dist/components/code-field.d.ts +16 -0
  38. package/dist/components/code-field.js +29 -0
  39. package/dist/components/color-well.d.ts +23 -0
  40. package/dist/components/color-well.js +27 -0
  41. package/dist/components/combo-box.d.ts +42 -0
  42. package/dist/components/combo-box.js +102 -0
  43. package/dist/components/command-palette.d.ts +33 -0
  44. package/dist/components/command-palette.js +55 -0
  45. package/dist/components/confirmation.d.ts +24 -0
  46. package/dist/components/confirmation.js +50 -0
  47. package/dist/components/content-unavailable.d.ts +19 -0
  48. package/dist/components/content-unavailable.js +21 -0
  49. package/dist/components/context-menu.d.ts +9 -0
  50. package/dist/components/context-menu.js +15 -0
  51. package/dist/components/date-picker.d.ts +53 -0
  52. package/dist/components/date-picker.js +86 -0
  53. package/dist/components/description-list.d.ts +18 -0
  54. package/dist/components/description-list.js +17 -0
  55. package/dist/components/device-frame.d.ts +18 -0
  56. package/dist/components/device-frame.js +16 -0
  57. package/dist/components/dialog.d.ts +27 -0
  58. package/dist/components/dialog.js +35 -0
  59. package/dist/components/disclosure.d.ts +32 -0
  60. package/dist/components/disclosure.js +35 -0
  61. package/dist/components/dock.d.ts +28 -0
  62. package/dist/components/dock.js +80 -0
  63. package/dist/components/door-control.d.ts +20 -0
  64. package/dist/components/door-control.js +43 -0
  65. package/dist/components/energy-readout.d.ts +32 -0
  66. package/dist/components/energy-readout.js +27 -0
  67. package/dist/components/field.d.ts +28 -0
  68. package/dist/components/field.js +32 -0
  69. package/dist/components/gauge.d.ts +25 -0
  70. package/dist/components/gauge.js +42 -0
  71. package/dist/components/generated-image.d.ts +39 -0
  72. package/dist/components/generated-image.js +47 -0
  73. package/dist/components/glass.d.ts +34 -0
  74. package/dist/components/glass.js +31 -0
  75. package/dist/components/home-backdrop.d.ts +23 -0
  76. package/dist/components/home-backdrop.js +12 -0
  77. package/dist/components/home-section.d.ts +19 -0
  78. package/dist/components/home-section.js +21 -0
  79. package/dist/components/home-status.d.ts +24 -0
  80. package/dist/components/home-status.js +14 -0
  81. package/dist/components/hover-card.d.ts +14 -0
  82. package/dist/components/hover-card.js +16 -0
  83. package/dist/components/inspector.d.ts +29 -0
  84. package/dist/components/inspector.js +40 -0
  85. package/dist/components/level-control.d.ts +19 -0
  86. package/dist/components/level-control.js +13 -0
  87. package/dist/components/light-color-picker.d.ts +33 -0
  88. package/dist/components/light-color-picker.js +56 -0
  89. package/dist/components/list.d.ts +42 -0
  90. package/dist/components/list.js +42 -0
  91. package/dist/components/listbox.d.ts +16 -0
  92. package/dist/components/listbox.js +28 -0
  93. package/dist/components/lock-control.d.ts +20 -0
  94. package/dist/components/lock-control.js +35 -0
  95. package/dist/components/menu-bar.d.ts +14 -0
  96. package/dist/components/menu-bar.js +16 -0
  97. package/dist/components/menu.d.ts +40 -0
  98. package/dist/components/menu.js +54 -0
  99. package/dist/components/message.d.ts +65 -0
  100. package/dist/components/message.js +69 -0
  101. package/dist/components/model-picker.d.ts +61 -0
  102. package/dist/components/model-picker.js +59 -0
  103. package/dist/components/navigation-bar.d.ts +24 -0
  104. package/dist/components/navigation-bar.js +54 -0
  105. package/dist/components/outline.d.ts +21 -0
  106. package/dist/components/outline.js +40 -0
  107. package/dist/components/page-control.d.ts +10 -0
  108. package/dist/components/page-control.js +8 -0
  109. package/dist/components/plan.d.ts +25 -0
  110. package/dist/components/plan.js +43 -0
  111. package/dist/components/popover.d.ts +16 -0
  112. package/dist/components/popover.js +24 -0
  113. package/dist/components/progress.d.ts +27 -0
  114. package/dist/components/progress.js +27 -0
  115. package/dist/components/prompt-input.d.ts +93 -0
  116. package/dist/components/prompt-input.js +172 -0
  117. package/dist/components/radio.d.ts +16 -0
  118. package/dist/components/radio.js +13 -0
  119. package/dist/components/rating.d.ts +10 -0
  120. package/dist/components/rating.js +12 -0
  121. package/dist/components/reasoning.d.ts +28 -0
  122. package/dist/components/reasoning.js +52 -0
  123. package/dist/components/response.d.ts +14 -0
  124. package/dist/components/response.js +14 -0
  125. package/dist/components/scene-tile.d.ts +22 -0
  126. package/dist/components/scene-tile.js +13 -0
  127. package/dist/components/scroll-view.d.ts +21 -0
  128. package/dist/components/scroll-view.js +13 -0
  129. package/dist/components/search-field.d.ts +16 -0
  130. package/dist/components/search-field.js +12 -0
  131. package/dist/components/secure-field.d.ts +23 -0
  132. package/dist/components/secure-field.js +21 -0
  133. package/dist/components/segmented-control.d.ts +12 -0
  134. package/dist/components/segmented-control.js +10 -0
  135. package/dist/components/select.d.ts +45 -0
  136. package/dist/components/select.js +79 -0
  137. package/dist/components/sensor-readout.d.ts +29 -0
  138. package/dist/components/sensor-readout.js +12 -0
  139. package/dist/components/separator.d.ts +14 -0
  140. package/dist/components/separator.js +11 -0
  141. package/dist/components/setup-code.d.ts +29 -0
  142. package/dist/components/setup-code.js +47 -0
  143. package/dist/components/sheet.d.ts +31 -0
  144. package/dist/components/sheet.js +51 -0
  145. package/dist/components/shimmer.d.ts +18 -0
  146. package/dist/components/shimmer.js +17 -0
  147. package/dist/components/sidebar.d.ts +30 -0
  148. package/dist/components/sidebar.js +26 -0
  149. package/dist/components/slider.d.ts +27 -0
  150. package/dist/components/slider.js +43 -0
  151. package/dist/components/sources.d.ts +51 -0
  152. package/dist/components/sources.js +46 -0
  153. package/dist/components/split-view.d.ts +11 -0
  154. package/dist/components/split-view.js +13 -0
  155. package/dist/components/squircle.d.ts +41 -0
  156. package/dist/components/squircle.js +63 -0
  157. package/dist/components/stepper.d.ts +30 -0
  158. package/dist/components/stepper.js +28 -0
  159. package/dist/components/suggestion.d.ts +23 -0
  160. package/dist/components/suggestion.js +29 -0
  161. package/dist/components/switch.d.ts +10 -0
  162. package/dist/components/switch.js +10 -0
  163. package/dist/components/tab-bar.d.ts +20 -0
  164. package/dist/components/tab-bar.js +17 -0
  165. package/dist/components/table.d.ts +49 -0
  166. package/dist/components/table.js +179 -0
  167. package/dist/components/tabs.d.ts +16 -0
  168. package/dist/components/tabs.js +19 -0
  169. package/dist/components/text-area.d.ts +14 -0
  170. package/dist/components/text-area.js +9 -0
  171. package/dist/components/text-field.d.ts +26 -0
  172. package/dist/components/text-field.js +23 -0
  173. package/dist/components/thermostat-control.d.ts +30 -0
  174. package/dist/components/thermostat-control.js +139 -0
  175. package/dist/components/toast.d.ts +30 -0
  176. package/dist/components/toast.js +114 -0
  177. package/dist/components/toggle.d.ts +21 -0
  178. package/dist/components/toggle.js +19 -0
  179. package/dist/components/token-field.d.ts +31 -0
  180. package/dist/components/token-field.js +78 -0
  181. package/dist/components/tool-call.d.ts +48 -0
  182. package/dist/components/tool-call.js +77 -0
  183. package/dist/components/toolbar.d.ts +27 -0
  184. package/dist/components/toolbar.js +39 -0
  185. package/dist/components/tooltip.d.ts +11 -0
  186. package/dist/components/tooltip.js +18 -0
  187. package/dist/components/window.d.ts +56 -0
  188. package/dist/components/window.js +61 -0
  189. package/dist/index.d.ts +97 -0
  190. package/dist/index.js +98 -0
  191. package/dist/lib/agent-glyphs.d.ts +10 -0
  192. package/dist/lib/agent-glyphs.js +19 -0
  193. package/dist/lib/cx.d.ts +9 -0
  194. package/dist/lib/cx.js +14 -0
  195. package/dist/lib/derive.d.ts +53 -0
  196. package/dist/lib/derive.js +255 -0
  197. package/dist/lib/field-glyphs.d.ts +13 -0
  198. package/dist/lib/field-glyphs.js +28 -0
  199. package/dist/lib/menu-glyphs.d.ts +6 -0
  200. package/dist/lib/menu-glyphs.js +15 -0
  201. package/dist/lib/platform.d.ts +18 -0
  202. package/dist/lib/platform.js +17 -0
  203. package/dist/lib/squircle.d.ts +23 -0
  204. package/dist/lib/squircle.js +69 -0
  205. package/dist/lib/theme.d.ts +42 -0
  206. package/dist/lib/theme.js +62 -0
  207. package/dist/styles/base.css +115 -0
  208. package/dist/styles/components/accessory-tile.css +461 -0
  209. package/dist/styles/components/activity-indicator.css +63 -0
  210. package/dist/styles/components/alert.css +433 -0
  211. package/dist/styles/components/artifact-card.css +238 -0
  212. package/dist/styles/components/artwork.css +380 -0
  213. package/dist/styles/components/attachment.css +540 -0
  214. package/dist/styles/components/automation-row.css +52 -0
  215. package/dist/styles/components/avatar.css +230 -0
  216. package/dist/styles/components/badge.css +204 -0
  217. package/dist/styles/components/button.css +298 -0
  218. package/dist/styles/components/calendar.css +287 -0
  219. package/dist/styles/components/camera-view.css +239 -0
  220. package/dist/styles/components/card.css +100 -0
  221. package/dist/styles/components/carousel.css +210 -0
  222. package/dist/styles/components/chat.css +209 -0
  223. package/dist/styles/components/checkbox.css +212 -0
  224. package/dist/styles/components/code-block.css +162 -0
  225. package/dist/styles/components/code-field.css +163 -0
  226. package/dist/styles/components/color-well.css +452 -0
  227. package/dist/styles/components/combo-box.css +222 -0
  228. package/dist/styles/components/command-palette.css +379 -0
  229. package/dist/styles/components/confirmation.css +189 -0
  230. package/dist/styles/components/content-unavailable.css +105 -0
  231. package/dist/styles/components/context-menu.css +43 -0
  232. package/dist/styles/components/date-picker.css +356 -0
  233. package/dist/styles/components/description-list.css +92 -0
  234. package/dist/styles/components/device-frame.css +202 -0
  235. package/dist/styles/components/dialog.css +366 -0
  236. package/dist/styles/components/disclosure.css +197 -0
  237. package/dist/styles/components/dock.css +404 -0
  238. package/dist/styles/components/door-control.css +187 -0
  239. package/dist/styles/components/energy-readout.css +161 -0
  240. package/dist/styles/components/field.css +175 -0
  241. package/dist/styles/components/gauge.css +239 -0
  242. package/dist/styles/components/generated-image.css +248 -0
  243. package/dist/styles/components/glass.css +113 -0
  244. package/dist/styles/components/home-backdrop.css +81 -0
  245. package/dist/styles/components/home-section.css +100 -0
  246. package/dist/styles/components/home-status.css +215 -0
  247. package/dist/styles/components/hover-card.css +145 -0
  248. package/dist/styles/components/index.css +94 -0
  249. package/dist/styles/components/inspector.css +236 -0
  250. package/dist/styles/components/level-control.css +247 -0
  251. package/dist/styles/components/light-color-picker.css +94 -0
  252. package/dist/styles/components/list.css +411 -0
  253. package/dist/styles/components/listbox.css +168 -0
  254. package/dist/styles/components/lock-control.css +164 -0
  255. package/dist/styles/components/menu-bar.css +94 -0
  256. package/dist/styles/components/menu.css +454 -0
  257. package/dist/styles/components/message.css +236 -0
  258. package/dist/styles/components/model-picker.css +64 -0
  259. package/dist/styles/components/navigation-bar.css +249 -0
  260. package/dist/styles/components/outline.css +248 -0
  261. package/dist/styles/components/page-control.css +127 -0
  262. package/dist/styles/components/plan.css +212 -0
  263. package/dist/styles/components/popover.css +186 -0
  264. package/dist/styles/components/progress.css +228 -0
  265. package/dist/styles/components/prompt-input.css +503 -0
  266. package/dist/styles/components/radio.css +281 -0
  267. package/dist/styles/components/rating.css +122 -0
  268. package/dist/styles/components/reasoning.css +214 -0
  269. package/dist/styles/components/response.css +303 -0
  270. package/dist/styles/components/scene-tile.css +295 -0
  271. package/dist/styles/components/scroll-view.css +195 -0
  272. package/dist/styles/components/search-field.css +128 -0
  273. package/dist/styles/components/secure-field.css +189 -0
  274. package/dist/styles/components/segmented-control.css +183 -0
  275. package/dist/styles/components/select.css +290 -0
  276. package/dist/styles/components/sensor-readout.css +231 -0
  277. package/dist/styles/components/separator.css +62 -0
  278. package/dist/styles/components/setup-code.css +138 -0
  279. package/dist/styles/components/sheet.css +345 -0
  280. package/dist/styles/components/shimmer.css +60 -0
  281. package/dist/styles/components/sidebar.css +261 -0
  282. package/dist/styles/components/slider.css +208 -0
  283. package/dist/styles/components/sources.css +349 -0
  284. package/dist/styles/components/split-view.css +75 -0
  285. package/dist/styles/components/squircle.css +44 -0
  286. package/dist/styles/components/stepper.css +278 -0
  287. package/dist/styles/components/suggestion.css +203 -0
  288. package/dist/styles/components/switch.css +115 -0
  289. package/dist/styles/components/tab-bar.css +223 -0
  290. package/dist/styles/components/table.css +313 -0
  291. package/dist/styles/components/tabs.css +262 -0
  292. package/dist/styles/components/text-area.css +94 -0
  293. package/dist/styles/components/text-field.css +294 -0
  294. package/dist/styles/components/thermostat-control.css +214 -0
  295. package/dist/styles/components/toast.css +418 -0
  296. package/dist/styles/components/toggle.css +312 -0
  297. package/dist/styles/components/token-field.css +193 -0
  298. package/dist/styles/components/tool-call.css +391 -0
  299. package/dist/styles/components/toolbar.css +370 -0
  300. package/dist/styles/components/tooltip.css +69 -0
  301. package/dist/styles/components/window.css +428 -0
  302. package/dist/styles/index.css +17 -0
  303. package/dist/styles/materials.css +263 -0
  304. package/dist/styles/platforms.css +214 -0
  305. package/dist/styles/themes/ember.css +24 -0
  306. package/dist/styles/themes/graphite.css +16 -0
  307. package/dist/styles/themes/nebula.css +16 -0
  308. package/dist/styles/themes/system.css +28 -0
  309. package/dist/styles/tokens.css +299 -0
  310. package/package.json +82 -3
@@ -0,0 +1,239 @@
1
+ /* Gauge — a reading in a range: the macOS level indicator, a linear capacity bar, and the open circular ring. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-gauge-linear-height: 6px;
5
+ --mb-gauge-level-height: 14px;
6
+ --mb-gauge-dial-sm: 44px;
7
+ --mb-gauge-dial: 64px;
8
+ --mb-gauge-dial-lg: 96px;
9
+ }
10
+
11
+ :where([data-platform="ios"], [data-platform="ipados"]) {
12
+ --mb-gauge-linear-height: 6px;
13
+ --mb-gauge-level-height: 18px;
14
+ --mb-gauge-dial-sm: 50px;
15
+ --mb-gauge-dial: 72px;
16
+ --mb-gauge-dial-lg: 110px;
17
+ }
18
+
19
+ .mb-gauge {
20
+ --mb-gauge-color: var(--mb-accent);
21
+ --mb-gauge-track-color: var(--mb-fill-tertiary);
22
+ --mb-gauge-edge: transparent;
23
+ --mb-gauge-good: var(--mb-green);
24
+ --mb-gauge-fair: var(--mb-yellow);
25
+ --mb-gauge-poor: var(--mb-red);
26
+
27
+ display: grid;
28
+ grid-template-columns: minmax(0, 1fr) auto;
29
+ align-items: baseline;
30
+ column-gap: var(--mb-space-4);
31
+ row-gap: var(--mb-space-3);
32
+ inline-size: 100%;
33
+ min-inline-size: 80px;
34
+ }
35
+
36
+ .mb-gauge[data-level="optimum"] { --mb-gauge-color: var(--mb-gauge-good); }
37
+ /* Yellow is under 3:1 on white, so in light mode a fair reading gets a darker edge of its own hue. */
38
+ .mb-gauge[data-level="suboptimal"] {
39
+ --mb-gauge-color: var(--mb-gauge-fair);
40
+ --mb-gauge-edge: light-dark(color-mix(in oklch, var(--mb-gauge-fair) 76%, black), transparent);
41
+ }
42
+ .mb-gauge[data-level="critical"] { --mb-gauge-color: var(--mb-gauge-poor); }
43
+
44
+ .mb-gauge-label {
45
+ grid-column: 1;
46
+ min-width: 0;
47
+ font: var(--mb-text-body);
48
+ letter-spacing: var(--mb-tracking-body);
49
+ color: var(--mb-label);
50
+ overflow: hidden;
51
+ text-overflow: ellipsis;
52
+ white-space: nowrap;
53
+ }
54
+
55
+ .mb-gauge-value {
56
+ grid-column: 2;
57
+ font: var(--mb-text-callout);
58
+ letter-spacing: var(--mb-tracking-body);
59
+ font-variant-numeric: tabular-nums;
60
+ color: var(--mb-label-secondary);
61
+ white-space: nowrap;
62
+ }
63
+
64
+ .mb-gauge-track {
65
+ grid-column: 1 / -1;
66
+ }
67
+
68
+ /* Linear: a capsule that fills with the reading's color. */
69
+ .mb-gauge[data-variant="linear"] .mb-gauge-track {
70
+ height: var(--mb-gauge-linear-height);
71
+ border-radius: var(--mb-radius-full);
72
+ background: var(--mb-gauge-track-color);
73
+ overflow: hidden;
74
+ }
75
+
76
+ .mb-gauge[data-variant="linear"][data-size="sm"] .mb-gauge-track { height: calc(var(--mb-gauge-linear-height) - 2px); }
77
+ .mb-gauge[data-variant="linear"][data-size="lg"] .mb-gauge-track { height: calc(var(--mb-gauge-linear-height) + 4px); }
78
+
79
+ .mb-gauge-indicator {
80
+ height: 100%;
81
+ border-radius: inherit;
82
+ background: var(--mb-gauge-color);
83
+ box-shadow: inset 0 0 0 1px var(--mb-gauge-edge);
84
+ transition:
85
+ width var(--mb-duration-slow) var(--mb-ease-out),
86
+ background-color var(--mb-duration-base) var(--mb-ease-out);
87
+ }
88
+
89
+ /* Level: discrete segments, all lit in one color that tells you whether the reading is fine. */
90
+ .mb-gauge[data-variant="level"] .mb-gauge-track {
91
+ display: flex;
92
+ gap: 2px;
93
+ height: var(--mb-gauge-level-height);
94
+ }
95
+
96
+ .mb-gauge[data-variant="level"][data-size="sm"] .mb-gauge-track { height: calc(var(--mb-gauge-level-height) - 4px); }
97
+ .mb-gauge[data-variant="level"][data-size="lg"] .mb-gauge-track { height: calc(var(--mb-gauge-level-height) + 6px); }
98
+
99
+ .mb-gauge-segment {
100
+ flex: 1 1 0;
101
+ min-width: 3px;
102
+ border-radius: 2px;
103
+ background: var(--mb-gauge-track-color);
104
+ box-shadow: inset 0 0 0 var(--mb-hairline) var(--mb-separator);
105
+ transition: background-color var(--mb-duration-base) var(--mb-ease-out);
106
+ }
107
+
108
+ .mb-gauge-segment:first-child {
109
+ border-start-start-radius: 4px;
110
+ border-end-start-radius: 4px;
111
+ }
112
+
113
+ .mb-gauge-segment:last-child {
114
+ border-start-end-radius: 4px;
115
+ border-end-end-radius: 4px;
116
+ }
117
+
118
+ .mb-gauge-segment[data-lit] {
119
+ background: var(--mb-gauge-color);
120
+ box-shadow:
121
+ inset 0 0 0 1px var(--mb-gauge-edge),
122
+ inset 0 1.5px 0 rgb(255 255 255 / 0.22);
123
+ }
124
+
125
+ /* Circular: a 270° ring open at the bottom, with the value in the middle and the name below. */
126
+ .mb-gauge[data-variant="circular"] {
127
+ --mb-gauge-dial-size: var(--mb-gauge-dial);
128
+
129
+ display: inline-grid;
130
+ grid-template-columns: var(--mb-gauge-dial-size);
131
+ grid-template-areas: "dial" "label";
132
+ justify-items: center;
133
+ align-items: center;
134
+ inline-size: auto;
135
+ min-inline-size: 0;
136
+ row-gap: var(--mb-space-1);
137
+ }
138
+
139
+ .mb-gauge[data-variant="circular"][data-size="sm"] { --mb-gauge-dial-size: var(--mb-gauge-dial-sm); }
140
+ .mb-gauge[data-variant="circular"][data-size="lg"] { --mb-gauge-dial-size: var(--mb-gauge-dial-lg); }
141
+
142
+ .mb-gauge-dial {
143
+ grid-area: dial;
144
+ display: grid;
145
+ width: var(--mb-gauge-dial-size);
146
+ height: var(--mb-gauge-dial-size);
147
+ }
148
+
149
+ .mb-gauge-dial > * {
150
+ grid-area: 1 / 1;
151
+ width: 100%;
152
+ height: 100%;
153
+ }
154
+
155
+ .mb-gauge[data-variant="circular"] .mb-gauge-value {
156
+ grid-area: dial;
157
+ padding-block-end: calc(var(--mb-gauge-dial-size) * 0.04);
158
+ font-family: var(--mb-font-rounded);
159
+ font-size: calc(var(--mb-gauge-dial-size) * 0.26);
160
+ font-weight: 600;
161
+ line-height: 1;
162
+ letter-spacing: -0.02em;
163
+ color: var(--mb-label);
164
+ }
165
+
166
+ .mb-gauge[data-variant="circular"] .mb-gauge-label {
167
+ grid-area: label;
168
+ max-width: calc(var(--mb-gauge-dial-size) * 1.6);
169
+ font: var(--mb-text-footnote);
170
+ letter-spacing: var(--mb-tracking-caption);
171
+ color: var(--mb-label-secondary);
172
+ text-align: center;
173
+ }
174
+
175
+ .mb-gauge-ring {
176
+ /* The masked gradient is its own stacking context; this keeps the marker above it. */
177
+ position: relative;
178
+ overflow: visible;
179
+ }
180
+
181
+ .mb-gauge-arc-track,
182
+ .mb-gauge-arc-edge,
183
+ .mb-gauge-arc-fill {
184
+ fill: none;
185
+ stroke-width: 8;
186
+ stroke-linecap: round;
187
+ }
188
+
189
+ /* The edge is the same arc, a little wider, drawn under the fill. */
190
+ .mb-gauge-arc-edge {
191
+ stroke-width: 10.5;
192
+ stroke: var(--mb-gauge-edge);
193
+ transition: stroke-dasharray var(--mb-duration-slow) var(--mb-ease-out);
194
+ }
195
+
196
+ .mb-gauge-arc-track {
197
+ stroke: var(--mb-gauge-track-color);
198
+ }
199
+
200
+ .mb-gauge-arc-fill {
201
+ stroke: var(--mb-gauge-color);
202
+ transition:
203
+ stroke-dasharray var(--mb-duration-slow) var(--mb-ease-out),
204
+ stroke var(--mb-duration-base) var(--mb-ease-out);
205
+ }
206
+
207
+ /* Gradient: the ring is painted around its own curve, so green sits at one end and red at the other. */
208
+ .mb-gauge-gradient {
209
+ --mb-gauge-from: var(--mb-gauge-good);
210
+ --mb-gauge-to: var(--mb-gauge-poor);
211
+
212
+ background: conic-gradient(
213
+ from 225deg,
214
+ var(--mb-gauge-from) 0deg,
215
+ var(--mb-gauge-fair) 135deg,
216
+ var(--mb-gauge-to) 270deg,
217
+ var(--mb-gauge-to) 315deg,
218
+ var(--mb-gauge-from) 315deg
219
+ );
220
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20.3 79.7A42 42 0 1 1 79.7 79.7' fill='none' stroke='black' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E")
221
+ center / 100% 100% no-repeat;
222
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20.3 79.7A42 42 0 1 1 79.7 79.7' fill='none' stroke='black' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E")
223
+ center / 100% 100% no-repeat;
224
+ }
225
+
226
+ .mb-gauge[data-gradient="reverse"] .mb-gauge-gradient {
227
+ --mb-gauge-from: var(--mb-gauge-poor);
228
+ --mb-gauge-to: var(--mb-gauge-good);
229
+ }
230
+
231
+ /* The marker is cut out of the ring by a stroke in the surface color. */
232
+ .mb-gauge-marker {
233
+ fill: #ffffff;
234
+ stroke: var(--mb-gauge-ring, var(--mb-bg));
235
+ stroke-width: 2;
236
+ transition:
237
+ cx var(--mb-duration-slow) var(--mb-ease-out),
238
+ cy var(--mb-duration-slow) var(--mb-ease-out);
239
+ }
@@ -0,0 +1,248 @@
1
+ /* Generated image — a large image on a dark stage, glass actions over it, and a strip of thumbnails. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-generated-image-max-width: 520px;
5
+ --mb-generated-image-radius: var(--mb-radius-xl);
6
+ --mb-generated-image-gap: 8px;
7
+ --mb-generated-image-thumbnail-size: 56px;
8
+ --mb-generated-image-thumbnail-radius: var(--mb-radius-md);
9
+ --mb-generated-image-actions-inset: 10px;
10
+ --mb-generated-image-status-font: var(--mb-text-body);
11
+ }
12
+
13
+ :where([data-platform="ios"], [data-platform="ipados"]) {
14
+ --mb-generated-image-max-width: none;
15
+ --mb-generated-image-radius: var(--mb-radius-2xl);
16
+ --mb-generated-image-gap: 10px;
17
+ --mb-generated-image-thumbnail-size: 60px;
18
+ --mb-generated-image-thumbnail-radius: var(--mb-radius-lg);
19
+ --mb-generated-image-actions-inset: 12px;
20
+ --mb-generated-image-status-font: var(--mb-text-subheadline);
21
+ }
22
+
23
+ .mb-generated-image {
24
+ --mb-generated-image-aspect: 1;
25
+ /* Opaque, so nothing behind the reply shows through the stage or the placeholder. */
26
+ --mb-generated-image-stage-bg: var(--mb-bg-secondary);
27
+ --mb-generated-image-strip-direction: column;
28
+
29
+ display: grid;
30
+ grid-template-areas: "stage";
31
+ grid-template-columns: minmax(0, 1fr);
32
+ gap: var(--mb-generated-image-gap);
33
+ width: 100%;
34
+ max-width: var(--mb-generated-image-max-width);
35
+ min-width: 0;
36
+ }
37
+
38
+ /* With thumbnails: a strip on the trailing side on macOS, a row below on iOS. */
39
+ .mb-generated-image:has(> .mb-generated-image-thumbnails) {
40
+ grid-template-areas: "stage strip";
41
+ grid-template-columns: minmax(0, 1fr) var(--mb-generated-image-thumbnail-size);
42
+ }
43
+
44
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
45
+ .mb-generated-image:has(> .mb-generated-image-thumbnails) {
46
+ --mb-generated-image-strip-direction: row;
47
+ grid-template-areas: "stage" "strip";
48
+ grid-template-columns: minmax(0, 1fr);
49
+ }
50
+ }
51
+
52
+ /* ── Stage ───────────────────────────────────────────────────── */
53
+
54
+ .mb-generated-image-stage {
55
+ position: relative;
56
+ display: grid;
57
+ grid-area: stage;
58
+ place-items: center;
59
+ aspect-ratio: var(--mb-generated-image-aspect);
60
+ min-width: 0;
61
+ overflow: hidden;
62
+ border-radius: var(--mb-generated-image-radius);
63
+ background: var(--mb-generated-image-stage-bg);
64
+ box-shadow: inset 0 0 0 var(--mb-hairline) var(--mb-separator);
65
+ }
66
+
67
+ .mb-generated-image-stage > * {
68
+ grid-area: 1 / 1;
69
+ }
70
+
71
+ .mb-generated-image-stage > :where(img, video, svg, .mb-artwork) {
72
+ display: block;
73
+ width: 100%;
74
+ height: 100%;
75
+ object-fit: contain;
76
+ }
77
+
78
+ @supports (corner-shape: squircle) {
79
+ .mb-generated-image-stage,
80
+ .mb-generated-image-thumbnail {
81
+ corner-shape: var(--mb-corner-shape);
82
+ }
83
+
84
+ .mb-generated-image-stage {
85
+ border-radius: calc(var(--mb-generated-image-radius) * var(--mb-corner-factor));
86
+ }
87
+
88
+ .mb-generated-image-thumbnail {
89
+ border-radius: calc(var(--mb-generated-image-thumbnail-radius) * var(--mb-corner-factor));
90
+ }
91
+ }
92
+
93
+ /* Generating: a slow drift of the theme's colors, with the status in the middle. */
94
+ .mb-generated-image-placeholder {
95
+ display: grid;
96
+ place-self: stretch;
97
+ place-items: center;
98
+ background:
99
+ radial-gradient(60% 60% at 30% 35%, color-mix(in oklch, var(--mb-accent) 34%, transparent), transparent),
100
+ radial-gradient(55% 55% at 70% 65%, color-mix(in oklch, var(--mb-purple) 30%, transparent), transparent),
101
+ radial-gradient(50% 50% at 75% 25%, color-mix(in oklch, var(--mb-pink) 24%, transparent), transparent),
102
+ var(--mb-generated-image-stage-bg);
103
+ background-size: 180% 180%, 180% 180%, 180% 180%, 100% 100%;
104
+ animation: mb-generated-image-drift 9s var(--mb-ease-in-out) infinite alternate;
105
+ }
106
+
107
+ @keyframes mb-generated-image-drift {
108
+ 0% {
109
+ background-position: 0% 0%, 100% 100%, 100% 0%, 0 0;
110
+ }
111
+ 50% {
112
+ background-position: 60% 40%, 30% 60%, 40% 80%, 0 0;
113
+ }
114
+ 100% {
115
+ background-position: 100% 100%, 0% 0%, 0% 60%, 0 0;
116
+ }
117
+ }
118
+
119
+ .mb-generated-image-status {
120
+ font: var(--mb-generated-image-status-font);
121
+ letter-spacing: var(--mb-tracking-body);
122
+ }
123
+
124
+ @media (prefers-reduced-motion: reduce) {
125
+ :where(:root:not([data-motion="full"])) {
126
+ .mb-generated-image-placeholder {
127
+ animation: none;
128
+ background-position: 30% 30%, 70% 70%, 60% 30%, 0 0;
129
+ }
130
+ }
131
+ }
132
+
133
+ /* ── Actions over the stage ─────────────────────────────────── */
134
+
135
+ .mb-generated-image-actions {
136
+ z-index: 1;
137
+ display: flex;
138
+ grid-area: stage;
139
+ align-self: end;
140
+ align-items: center;
141
+ gap: var(--mb-space-4);
142
+ min-width: 0;
143
+ padding: var(--mb-generated-image-actions-inset);
144
+ pointer-events: none;
145
+ }
146
+
147
+ .mb-generated-image-actions > * {
148
+ pointer-events: auto;
149
+ }
150
+
151
+ .mb-generated-image-actions > :first-child {
152
+ margin-inline-end: auto;
153
+ }
154
+
155
+ .mb-generated-image[data-state="generating"] > .mb-generated-image-actions {
156
+ visibility: hidden;
157
+ }
158
+
159
+ /* ── Thumbnails ──────────────────────────────────────────────── */
160
+
161
+ .mb-generated-image-thumbnails {
162
+ display: flex;
163
+ flex-direction: var(--mb-generated-image-strip-direction);
164
+ grid-area: strip;
165
+ gap: var(--mb-generated-image-gap);
166
+ /* The strip never sets the stage's height: it scrolls inside it instead. */
167
+ height: 0;
168
+ min-height: 100%;
169
+ min-width: 0;
170
+ /* Room for the selection ring, which sits outside each thumbnail. */
171
+ margin: -4px;
172
+ padding: 4px;
173
+ overflow: auto;
174
+ overscroll-behavior: contain;
175
+ scrollbar-width: none;
176
+ }
177
+
178
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
179
+ .mb-generated-image-thumbnails {
180
+ height: auto;
181
+ min-height: 0;
182
+ }
183
+ }
184
+
185
+ .mb-generated-image-thumbnail {
186
+ position: relative;
187
+ box-sizing: border-box;
188
+ display: grid;
189
+ flex: none;
190
+ place-items: stretch;
191
+ width: var(--mb-generated-image-thumbnail-size);
192
+ height: var(--mb-generated-image-thumbnail-size);
193
+ margin: 0;
194
+ padding: 0;
195
+ overflow: hidden;
196
+ border: 0;
197
+ border-radius: var(--mb-generated-image-thumbnail-radius);
198
+ background: var(--mb-generated-image-stage-bg);
199
+ cursor: default;
200
+ -webkit-tap-highlight-color: transparent;
201
+ transition:
202
+ box-shadow var(--mb-duration-fast) var(--mb-ease-out),
203
+ filter var(--mb-duration-fast) var(--mb-ease-out);
204
+ }
205
+
206
+ .mb-generated-image-thumbnail > :where(img, svg, .mb-artwork) {
207
+ display: block;
208
+ width: 100%;
209
+ height: 100%;
210
+ object-fit: cover;
211
+ }
212
+
213
+ .mb-generated-image-thumbnail[data-checked] {
214
+ box-shadow:
215
+ 0 0 0 2px var(--mb-bg),
216
+ 0 0 0 4px var(--mb-accent);
217
+ }
218
+
219
+ .mb-generated-image-thumbnail:focus-visible {
220
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
221
+ outline-offset: 4px;
222
+ }
223
+
224
+ .mb-generated-image-thumbnail[data-checked]:focus-visible {
225
+ outline-offset: 5px;
226
+ }
227
+
228
+ @media (hover: hover) and (pointer: fine) {
229
+ .mb-generated-image-thumbnail:not([data-checked]):hover {
230
+ filter: brightness(1.08);
231
+ }
232
+ }
233
+
234
+ .mb-generated-image-thumbnail:active {
235
+ filter: brightness(0.85);
236
+ transition-duration: 0ms;
237
+ }
238
+
239
+ .mb-generated-image-thumbnail[data-disabled] {
240
+ opacity: 0.4;
241
+ }
242
+
243
+ @media (forced-colors: active) {
244
+ .mb-generated-image-thumbnail[data-checked] {
245
+ outline: 3px solid Highlight;
246
+ outline-offset: 2px;
247
+ }
248
+ }
@@ -0,0 +1,113 @@
1
+ /* Glass group — one capsule of Liquid Glass around a cluster of plain controls. The material itself is in materials.css. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-glass-group-padding: 3px;
5
+ --mb-glass-group-gap: 0px;
6
+ }
7
+
8
+ :where([data-platform="ios"], [data-platform="ipados"]) {
9
+ --mb-glass-group-padding: 4px;
10
+ --mb-glass-group-gap: 2px;
11
+ }
12
+
13
+ .mb-glass-group {
14
+ display: inline-flex;
15
+ flex: none;
16
+ align-items: stretch;
17
+ gap: 0;
18
+ padding: 0;
19
+ }
20
+
21
+ .mb-glass-group[data-orientation="vertical"] {
22
+ flex-direction: column;
23
+ }
24
+
25
+ /*
26
+ * Each control owns its slot: its hover and press fill runs edge to edge, so
27
+ * the first and last take the capsule's curve and the ones between stay square.
28
+ */
29
+ .mb-glass-group > .mb-button:where(*) {
30
+ --mb-glass-group-slot: calc(var(--mb-button-height) + var(--mb-glass-group-padding) * 2);
31
+
32
+ width: auto;
33
+ min-width: var(--mb-glass-group-slot);
34
+ height: var(--mb-glass-group-slot);
35
+ padding-inline: calc(var(--mb-button-padding) + var(--mb-glass-group-gap));
36
+ border-radius: 0;
37
+ scale: none;
38
+ }
39
+
40
+ .mb-glass-group > .mb-button:where([data-shape="circle"]) {
41
+ padding-inline: var(--mb-glass-group-padding);
42
+ }
43
+
44
+ .mb-glass-group > .mb-button:where(:first-child) {
45
+ border-start-start-radius: var(--mb-radius-full);
46
+ border-end-start-radius: var(--mb-radius-full);
47
+ padding-inline-start: calc(var(--mb-glass-group-padding) + 4px);
48
+ }
49
+
50
+ .mb-glass-group > .mb-button:where(:last-child) {
51
+ border-start-end-radius: var(--mb-radius-full);
52
+ border-end-end-radius: var(--mb-radius-full);
53
+ padding-inline-end: calc(var(--mb-glass-group-padding) + 4px);
54
+ }
55
+
56
+ .mb-glass-group[data-orientation="vertical"] > .mb-button:where(*) {
57
+ width: var(--mb-glass-group-slot);
58
+ padding-inline: 0;
59
+ border-radius: 0;
60
+ }
61
+
62
+ .mb-glass-group[data-orientation="vertical"] > .mb-button:where(:first-child) {
63
+ border-start-start-radius: var(--mb-radius-full);
64
+ border-start-end-radius: var(--mb-radius-full);
65
+ padding-block-start: 4px;
66
+ }
67
+
68
+ .mb-glass-group[data-orientation="vertical"] > .mb-button:where(:last-child) {
69
+ border-end-start-radius: var(--mb-radius-full);
70
+ border-end-end-radius: var(--mb-radius-full);
71
+ padding-block-end: 4px;
72
+ }
73
+
74
+ /* The ring would be cut by the neighbouring slot, so it sits inside. */
75
+ .mb-glass-group > .mb-button:where(:focus-visible) {
76
+ outline-offset: calc(var(--mb-focus-ring-width) * -1);
77
+ }
78
+
79
+ .mb-glass-group > :where(.mb-separator[data-orientation="vertical"]) {
80
+ align-self: stretch;
81
+ margin-block: 7px;
82
+ margin-inline: 0;
83
+ }
84
+
85
+ .mb-glass-group > :where(.mb-separator[data-orientation="horizontal"]) {
86
+ align-self: stretch;
87
+ margin-inline: 7px;
88
+ margin-block: 0;
89
+ }
90
+
91
+ /* On glass a gray fill disappears; lighten the glass itself instead. */
92
+ @media (hover: hover) and (pointer: fine) {
93
+ .mb-glass-group > .mb-button:where([data-variant="plain"]):hover {
94
+ --mb-button-bg: light-dark(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.14));
95
+ }
96
+ }
97
+
98
+ .mb-glass-group > .mb-button:where([data-variant="plain"]):active {
99
+ --mb-button-bg: light-dark(rgb(255 255 255 / 0.72), rgb(255 255 255 / 0.24));
100
+ opacity: 1;
101
+ }
102
+
103
+ /* Liquid Glass's rounded shape has continuous corners; capsules and circles stay round. */
104
+ @supports (corner-shape: squircle) {
105
+ .mb-glass[data-shape="rounded"] {
106
+ corner-shape: var(--mb-corner-shape);
107
+ border-radius: calc(var(--mb-glass-radius) * var(--mb-corner-factor));
108
+ }
109
+
110
+ .mb-glass[data-shape="rounded"]::before {
111
+ corner-shape: inherit;
112
+ }
113
+ }
@@ -0,0 +1,81 @@
1
+ /* Home backdrop — a home's or a room's wallpaper behind the Home tab or a room. It never moves: the content
2
+ in front of it scrolls. A veil of the page's background color keeps labels and tile edges readable. */
3
+
4
+ .mb-home-backdrop {
5
+ --mb-home-backdrop-dim: 0.35;
6
+ /* Increase Contrast raises the veil to at least this. */
7
+ --mb-home-backdrop-dim-min: 0;
8
+
9
+ position: relative;
10
+ isolation: isolate;
11
+ min-width: 0;
12
+ min-height: 0;
13
+ }
14
+
15
+ .mb-home-backdrop-layer {
16
+ position: absolute;
17
+ z-index: -1;
18
+ inset: 0;
19
+ overflow: hidden;
20
+ background: var(--mb-bg);
21
+ pointer-events: none;
22
+ }
23
+
24
+ .mb-home-backdrop-layer > .mb-artwork {
25
+ position: absolute;
26
+ inset: 0;
27
+ inline-size: 100%;
28
+ block-size: 100%;
29
+ aspect-ratio: auto;
30
+ border-radius: 0;
31
+ }
32
+
33
+ .mb-home-backdrop-layer > .mb-artwork::after {
34
+ display: none;
35
+ }
36
+
37
+ /* A photo is blurred like the Home app's wallpapers, and scaled so the blur doesn't show its edges. */
38
+ .mb-home-backdrop-image {
39
+ position: absolute;
40
+ inset: 0;
41
+ display: block;
42
+ inline-size: 100%;
43
+ block-size: 100%;
44
+ object-fit: cover;
45
+ filter: blur(24px) saturate(1.1);
46
+ scale: 1.12;
47
+ }
48
+
49
+ /* Light mode veils a third more: secondary labels there are gray on pastel, which needs more help than
50
+ white text on a deep color does. */
51
+ .mb-home-backdrop-layer::after {
52
+ --mb-home-backdrop-veil: max(var(--mb-home-backdrop-dim), var(--mb-home-backdrop-dim-min));
53
+
54
+ content: "";
55
+ position: absolute;
56
+ inset: 0;
57
+ background: light-dark(
58
+ color-mix(in oklch, var(--mb-bg) min(100%, calc(var(--mb-home-backdrop-veil) * 135%)), transparent),
59
+ color-mix(in oklch, var(--mb-bg) min(100%, calc(var(--mb-home-backdrop-veil) * 110%)), transparent)
60
+ );
61
+ }
62
+
63
+ @media (prefers-contrast: more) {
64
+ .mb-home-backdrop {
65
+ --mb-home-backdrop-dim-min: 0.6;
66
+ }
67
+ }
68
+
69
+ @media (prefers-reduced-transparency: reduce) {
70
+ :where(:root:not([data-transparency="full"])) {
71
+ .mb-home-backdrop {
72
+ --mb-home-backdrop-dim-min: 0.45;
73
+ }
74
+ }
75
+ }
76
+
77
+ @media (forced-colors: active) {
78
+ .mb-home-backdrop-layer {
79
+ display: none;
80
+ }
81
+ }