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,100 @@
1
+ /* Home section — a titled group on the Home tab. Titles sit on the wallpaper, so they're bold and carry a soft shadow. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-home-section-gap: 8px;
5
+ --mb-home-section-title-font: 700 15px/20px var(--mb-font);
6
+ --mb-home-section-summary-font: 400 12px/16px var(--mb-font);
7
+ }
8
+
9
+ :where([data-platform="ios"], [data-platform="ipados"]) {
10
+ --mb-home-section-gap: 10px;
11
+ --mb-home-section-title-font: 700 20px/25px var(--mb-font);
12
+ --mb-home-section-summary-font: 400 15px/20px var(--mb-font);
13
+ }
14
+
15
+ .mb-home-section {
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: var(--mb-home-section-gap);
19
+ min-width: 0;
20
+ }
21
+
22
+ .mb-home-section-header {
23
+ display: flex;
24
+ flex-direction: column;
25
+ gap: 1px;
26
+ min-width: 0;
27
+ padding-inline: 4px;
28
+ }
29
+
30
+ .mb-home-section-title {
31
+ margin: 0;
32
+ color: var(--mb-label);
33
+ font: var(--mb-home-section-title-font);
34
+ letter-spacing: var(--mb-tracking-title);
35
+ }
36
+
37
+ .mb-home-section-link {
38
+ position: relative;
39
+ display: inline-flex;
40
+ align-items: center;
41
+ gap: 6px;
42
+ margin: 0;
43
+ padding: 0;
44
+ border: 0;
45
+ background: none;
46
+ color: inherit;
47
+ font: inherit;
48
+ letter-spacing: inherit;
49
+ text-decoration: none;
50
+ cursor: default;
51
+ -webkit-tap-highlight-color: transparent;
52
+ }
53
+
54
+ .mb-home-section-link::after {
55
+ content: "";
56
+ position: absolute;
57
+ inset: 50% auto auto 50%;
58
+ width: max(100%, var(--mb-hit-target));
59
+ height: max(100%, var(--mb-hit-target));
60
+ translate: -50% -50%;
61
+ }
62
+
63
+ .mb-home-section-link:focus-visible {
64
+ border-radius: 6px;
65
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
66
+ outline-offset: 2px;
67
+ }
68
+
69
+ .mb-home-section-chevron {
70
+ flex: none;
71
+ width: 0.42em;
72
+ height: 0.72em;
73
+ fill: none;
74
+ stroke: var(--mb-label-secondary);
75
+ stroke-width: 2.2;
76
+ stroke-linecap: round;
77
+ stroke-linejoin: round;
78
+ }
79
+
80
+ :where([dir="rtl"]) .mb-home-section-chevron {
81
+ scale: -1 1;
82
+ }
83
+
84
+ @media (hover: hover) and (pointer: fine) {
85
+ .mb-home-section-link:hover .mb-home-section-chevron {
86
+ stroke: var(--mb-label);
87
+ }
88
+ }
89
+
90
+ .mb-home-section-link:active {
91
+ opacity: 0.6;
92
+ }
93
+
94
+ .mb-home-section-summary {
95
+ margin: 0;
96
+ color: var(--mb-label-secondary);
97
+ font: var(--mb-home-section-summary-font);
98
+ letter-spacing: var(--mb-tracking-body);
99
+ font-variant-numeric: tabular-nums;
100
+ }
@@ -0,0 +1,215 @@
1
+ /* Home status — the category buttons under the home's name. Each is a capsule with the category's icon, its name and a
2
+ summary in words. Pressed is the bright on look, the same as a tile that's on. */
3
+
4
+ :where(:root, [data-platform="macos"]) {
5
+ --mb-home-status-height: 40px;
6
+ --mb-home-status-icon-size: 16px;
7
+ --mb-home-status-label-font: 600 12px/14px var(--mb-font);
8
+ --mb-home-status-summary-font: 400 12px/14px var(--mb-font);
9
+ --mb-home-status-gap: 8px;
10
+ --mb-home-status-padding: 12px;
11
+ }
12
+
13
+ :where([data-platform="ios"], [data-platform="ipados"]) {
14
+ --mb-home-status-height: 48px;
15
+ --mb-home-status-icon-size: 20px;
16
+ --mb-home-status-label-font: 600 14px/17px var(--mb-font);
17
+ --mb-home-status-summary-font: 400 13px/16px var(--mb-font);
18
+ --mb-home-status-gap: 8px;
19
+ --mb-home-status-padding: 14px;
20
+ }
21
+
22
+ .mb-home-status {
23
+ display: flex;
24
+ flex-wrap: wrap;
25
+ gap: var(--mb-home-status-gap);
26
+ min-width: 0;
27
+ }
28
+
29
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
30
+ .mb-home-status {
31
+ flex-wrap: nowrap;
32
+ overflow-x: auto;
33
+ overscroll-behavior-x: contain;
34
+ scrollbar-width: none;
35
+ /* Room for the focus halo inside the scroller. */
36
+ padding: 4px;
37
+ margin: -4px;
38
+ }
39
+
40
+ .mb-home-status::-webkit-scrollbar {
41
+ display: none;
42
+ }
43
+ }
44
+
45
+ .mb-home-status-item {
46
+ --mb-home-status-tint: var(--mb-accent);
47
+ --mb-home-status-bg: light-dark(
48
+ color-mix(in oklch, var(--mb-ink) 7%, rgb(255 255 255 / 0.3)),
49
+ color-mix(in oklch, var(--mb-bg-elevated) 58%, transparent)
50
+ );
51
+ --mb-home-status-fg: var(--mb-label);
52
+ --mb-home-status-fg-secondary: var(--mb-label-secondary);
53
+ --mb-home-status-icon-fg: var(--mb-home-status-tint);
54
+ --mb-home-status-edge: light-dark(rgb(0 0 0 / 0.06), rgb(255 255 255 / 0.08));
55
+
56
+ position: relative;
57
+ display: inline-flex;
58
+ flex: none;
59
+ align-items: center;
60
+ gap: 8px;
61
+ box-sizing: border-box;
62
+ height: var(--mb-home-status-height);
63
+ margin: 0;
64
+ padding-block: 0;
65
+ padding-inline: var(--mb-home-status-padding) calc(var(--mb-home-status-padding) + 4px);
66
+ border: 0;
67
+ border-radius: var(--mb-radius-full);
68
+ background: var(--mb-home-status-bg);
69
+ box-shadow: inset 0 0 0 var(--mb-hairline) var(--mb-home-status-edge);
70
+ color: var(--mb-home-status-fg);
71
+ text-align: start;
72
+ white-space: nowrap;
73
+ cursor: default;
74
+ user-select: none;
75
+ -webkit-user-select: none;
76
+ -webkit-tap-highlight-color: transparent;
77
+ transition:
78
+ background-color var(--mb-duration-base) var(--mb-ease-out),
79
+ color var(--mb-duration-base) var(--mb-ease-out),
80
+ scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
81
+ }
82
+
83
+ /* The off-tile icon colors are brightened in dark mode for 3:1 on the dim capsule. */
84
+ .mb-home-status-item[data-tint="yellow"] { --mb-home-status-tint: light-dark(oklch(from var(--mb-yellow) 0.66 0.16 h), var(--mb-yellow)); }
85
+ .mb-home-status-item[data-tint="orange"] { --mb-home-status-tint: light-dark(oklch(from var(--mb-orange) min(l, 0.64) c h), var(--mb-orange)); }
86
+ .mb-home-status-item[data-tint="red"] { --mb-home-status-tint: light-dark(oklch(from var(--mb-red) min(l, 0.56) c h), var(--mb-red)); }
87
+ .mb-home-status-item[data-tint="green"] { --mb-home-status-tint: light-dark(oklch(from var(--mb-green) min(l, 0.58) c h), var(--mb-green)); }
88
+ .mb-home-status-item[data-tint="teal"] { --mb-home-status-tint: light-dark(oklch(from var(--mb-teal) min(l, 0.58) c h), var(--mb-teal)); }
89
+ .mb-home-status-item[data-tint="blue"] { --mb-home-status-tint: light-dark(oklch(from var(--mb-blue) min(l, 0.56) c h), oklch(from var(--mb-blue) max(l, 0.7) c h)); }
90
+ .mb-home-status-item[data-tint="indigo"] { --mb-home-status-tint: light-dark(oklch(from var(--mb-indigo) min(l, 0.54) c h), oklch(from var(--mb-indigo) max(l, 0.7) c h)); }
91
+ .mb-home-status-item[data-tint="purple"] { --mb-home-status-tint: light-dark(oklch(from var(--mb-purple) min(l, 0.56) c h), oklch(from var(--mb-purple) max(l, 0.72) c h)); }
92
+ .mb-home-status-item[data-tint="accent"] { --mb-home-status-tint: var(--mb-accent-text); }
93
+ .mb-home-status-item[data-tint="neutral"] { --mb-home-status-tint: var(--mb-label-secondary); }
94
+
95
+ .mb-home-status-item[data-pressed] {
96
+ --mb-home-status-bg: light-dark(rgb(255 255 255 / 0.97), color-mix(in oklch, var(--mb-tint) 8%, rgb(246 246 248)));
97
+ --mb-home-status-fg: rgb(0 0 0 / 0.88);
98
+ --mb-home-status-fg-secondary: rgb(0 0 0 / 0.62);
99
+ --mb-home-status-icon-fg: oklch(from var(--mb-home-status-tint) min(l, 0.6) c h);
100
+ --mb-home-status-edge: rgb(0 0 0 / 0.04);
101
+ box-shadow:
102
+ inset 0 0 0 var(--mb-hairline) var(--mb-home-status-edge),
103
+ 0 1px 3px rgb(0 0 0 / 0.12);
104
+ }
105
+
106
+ /* An alert stays red in words and in the icon, pressed or not. */
107
+ .mb-home-status-item[data-alert] {
108
+ --mb-home-status-icon-fg: light-dark(oklch(from var(--mb-red) 0.55 0.21 h), oklch(from var(--mb-red) 0.72 0.18 h));
109
+ --mb-home-status-fg-secondary: light-dark(oklch(from var(--mb-red) 0.5 0.2 h), oklch(from var(--mb-red) 0.78 0.14 h));
110
+ }
111
+
112
+ .mb-home-status-item[data-alert][data-pressed] {
113
+ --mb-home-status-fg-secondary: oklch(from var(--mb-red) 0.5 0.2 h);
114
+ --mb-home-status-icon-fg: oklch(from var(--mb-red) 0.55 0.21 h);
115
+ }
116
+
117
+ .mb-home-status-item[data-alert] .mb-home-status-summary {
118
+ font-weight: 600;
119
+ }
120
+
121
+ .mb-home-status-icon {
122
+ display: grid;
123
+ flex: none;
124
+ place-items: center;
125
+ width: var(--mb-home-status-icon-size);
126
+ height: var(--mb-home-status-icon-size);
127
+ color: var(--mb-home-status-icon-fg);
128
+ }
129
+
130
+ .mb-home-status-icon > :where(svg) {
131
+ width: 100%;
132
+ height: 100%;
133
+ }
134
+
135
+ .mb-home-status-text {
136
+ display: flex;
137
+ flex-direction: column;
138
+ min-width: 0;
139
+ }
140
+
141
+ .mb-home-status-label {
142
+ color: var(--mb-home-status-fg);
143
+ font: var(--mb-home-status-label-font);
144
+ letter-spacing: var(--mb-tracking-caption);
145
+ }
146
+
147
+ .mb-home-status-summary {
148
+ color: var(--mb-home-status-fg-secondary);
149
+ font: var(--mb-home-status-summary-font);
150
+ letter-spacing: var(--mb-tracking-caption);
151
+ font-variant-numeric: tabular-nums;
152
+ }
153
+
154
+ .mb-home-status-item::after {
155
+ content: "";
156
+ position: absolute;
157
+ inset: 50% auto auto 50%;
158
+ width: max(100%, var(--mb-hit-target));
159
+ height: max(100%, var(--mb-hit-target));
160
+ translate: -50% -50%;
161
+ }
162
+
163
+ .mb-home-status-item:focus-visible {
164
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
165
+ outline-offset: 2px;
166
+ }
167
+
168
+ @media (hover: hover) and (pointer: fine) {
169
+ .mb-home-status-item:not([data-pressed]):hover {
170
+ --mb-home-status-bg: light-dark(
171
+ color-mix(in oklch, var(--mb-ink) 4%, rgb(255 255 255 / 0.5)),
172
+ color-mix(in oklch, var(--mb-bg-elevated) 68%, transparent)
173
+ );
174
+ }
175
+ }
176
+
177
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
178
+ .mb-home-status-item:active {
179
+ scale: 0.96;
180
+ }
181
+ }
182
+
183
+ @media (prefers-contrast: more) {
184
+ .mb-home-status-item {
185
+ --mb-home-status-edge: var(--mb-control-border);
186
+ --mb-home-status-bg: var(--mb-bg-elevated);
187
+ -webkit-backdrop-filter: none;
188
+ backdrop-filter: none;
189
+ }
190
+
191
+ .mb-home-status-item[data-pressed] {
192
+ --mb-home-status-bg: rgb(255 255 255);
193
+ box-shadow: inset 0 0 0 2px var(--mb-home-status-icon-fg);
194
+ }
195
+ }
196
+
197
+ @media (prefers-reduced-transparency: reduce) {
198
+ :where(:root:not([data-transparency="full"])) {
199
+ .mb-home-status-item:not([data-pressed]) {
200
+ background-color: var(--mb-bg-elevated);
201
+ -webkit-backdrop-filter: none;
202
+ backdrop-filter: none;
203
+ }
204
+ }
205
+ }
206
+
207
+ @media (forced-colors: active) {
208
+ .mb-home-status-item {
209
+ border: 1px solid ButtonText;
210
+ }
211
+
212
+ .mb-home-status-item[data-pressed] {
213
+ border: 3px solid Highlight;
214
+ }
215
+ }
@@ -0,0 +1,145 @@
1
+ /*
2
+ * Hover Card — a link preview that grows out of the link. Like Popover, the
3
+ * material is on ::before so an optional arrow can blur the page as well.
4
+ */
5
+
6
+ .mb-hover-card-trigger {
7
+ color: var(--mb-accent-text);
8
+ text-decoration: underline;
9
+ text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
10
+ text-underline-offset: 0.18em;
11
+ border-radius: var(--mb-radius-xs);
12
+ transition: text-decoration-color var(--mb-duration-fast) var(--mb-ease-out);
13
+ }
14
+
15
+ .mb-hover-card-trigger[data-open] {
16
+ text-decoration-color: currentColor;
17
+ }
18
+
19
+ @media (hover: hover) and (pointer: fine) {
20
+ .mb-hover-card-trigger:hover {
21
+ text-decoration-color: currentColor;
22
+ }
23
+ }
24
+
25
+ .mb-hover-card {
26
+ isolation: isolate;
27
+ display: flex;
28
+ flex-direction: column;
29
+ width: min(320px, var(--available-width, 100vw));
30
+ max-height: var(--available-height);
31
+ margin: 0;
32
+ padding: 0;
33
+ overflow: visible;
34
+ border: 0;
35
+ border-radius: var(--mb-popup-radius);
36
+ background: transparent;
37
+ box-shadow: var(--mb-shadow-menu);
38
+ color: var(--mb-label);
39
+ font: var(--mb-text-body);
40
+ letter-spacing: var(--mb-tracking-body);
41
+ outline: none;
42
+ transform-origin: var(--transform-origin);
43
+ transition:
44
+ opacity var(--mb-duration-base) var(--mb-ease-out),
45
+ scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
46
+ }
47
+
48
+ .mb-hover-card::before {
49
+ content: "";
50
+ position: absolute;
51
+ inset: 0;
52
+ z-index: -1;
53
+ border-radius: inherit;
54
+ background: var(--mb-material-thick);
55
+ -webkit-backdrop-filter: var(--mb-material-filter);
56
+ backdrop-filter: var(--mb-material-filter);
57
+ box-shadow: var(--mb-glass-rim);
58
+ pointer-events: none;
59
+ }
60
+
61
+ /* Media at the top of a preview follows the card's corners. */
62
+ .mb-hover-card > :where(img, video, picture):first-child {
63
+ display: block;
64
+ width: 100%;
65
+ border-start-start-radius: inherit;
66
+ border-start-end-radius: inherit;
67
+ object-fit: cover;
68
+ }
69
+
70
+ .mb-hover-card:is([data-starting-style], [data-ending-style]) {
71
+ opacity: 0;
72
+ scale: 0.92;
73
+ }
74
+
75
+ .mb-hover-card[data-ending-style] {
76
+ scale: 0.97;
77
+ transition-duration: var(--mb-duration-fast);
78
+ transition-timing-function: var(--mb-ease-out);
79
+ }
80
+
81
+ /* Positioned like Popover's arrow: ui-sdk sets left/top inline. */
82
+ .mb-hover-card-arrow {
83
+ --mb-hover-card-arrow-stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 11'%3E%3Cpath d='M0 11C5 11 8 6.5 9.6 3.4C10.3 2 10.6 1.5 11 1.5S11.7 2 12.4 3.4C14 6.5 17 11 22 11' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
84
+
85
+ position: absolute;
86
+ z-index: -1;
87
+ width: 22px;
88
+ height: 11px;
89
+ background: var(--mb-material-thick);
90
+ -webkit-backdrop-filter: var(--mb-material-filter);
91
+ backdrop-filter: var(--mb-material-filter);
92
+ clip-path: path("M0 11C5 11 8 6.5 9.6 3.4C10.3 2 10.6 1.5 11 1.5S11.7 2 12.4 3.4C14 6.5 17 11 22 11Z");
93
+ pointer-events: none;
94
+ }
95
+
96
+ .mb-hover-card-arrow::after {
97
+ content: "";
98
+ position: absolute;
99
+ inset: 0;
100
+ background: var(--mb-glass-border);
101
+ -webkit-mask: var(--mb-hover-card-arrow-stroke) center / 100% 100% no-repeat;
102
+ mask: var(--mb-hover-card-arrow-stroke) center / 100% 100% no-repeat;
103
+ }
104
+
105
+ .mb-hover-card-arrow[data-side="bottom"] {
106
+ bottom: calc(100% - 0.5px);
107
+ }
108
+
109
+ .mb-hover-card-arrow[data-side="top"] {
110
+ top: calc(100% - 0.5px);
111
+ rotate: 180deg;
112
+ }
113
+
114
+ .mb-hover-card-arrow[data-side="left"] {
115
+ left: calc(100% - 0.5px);
116
+ rotate: 90deg;
117
+ translate: -5.5px 0;
118
+ }
119
+
120
+ .mb-hover-card-arrow[data-side="right"] {
121
+ right: calc(100% - 0.5px);
122
+ rotate: -90deg;
123
+ translate: 5.5px 0;
124
+ }
125
+
126
+ @media (prefers-reduced-motion: reduce) {
127
+ :where(:root:not([data-motion="full"])) {
128
+ .mb-hover-card:is([data-starting-style], [data-ending-style]) {
129
+ scale: none;
130
+ }
131
+ }
132
+ }
133
+
134
+ /* Continuous corners; the rim and a leading image follow them. */
135
+ @supports (corner-shape: squircle) {
136
+ .mb-hover-card {
137
+ corner-shape: var(--mb-corner-shape);
138
+ border-radius: calc(var(--mb-popup-radius) * var(--mb-corner-factor));
139
+ }
140
+
141
+ .mb-hover-card::before,
142
+ .mb-hover-card > :where(img, video, picture):first-child {
143
+ corner-shape: inherit;
144
+ }
145
+ }
@@ -0,0 +1,94 @@
1
+ /* Generated by scripts/gen-index.mjs. Do not edit. */
2
+ @import "./accessory-tile.css";
3
+ @import "./activity-indicator.css";
4
+ @import "./alert.css";
5
+ @import "./artifact-card.css";
6
+ @import "./artwork.css";
7
+ @import "./attachment.css";
8
+ @import "./automation-row.css";
9
+ @import "./avatar.css";
10
+ @import "./badge.css";
11
+ @import "./button.css";
12
+ @import "./calendar.css";
13
+ @import "./camera-view.css";
14
+ @import "./card.css";
15
+ @import "./carousel.css";
16
+ @import "./chat.css";
17
+ @import "./checkbox.css";
18
+ @import "./code-block.css";
19
+ @import "./code-field.css";
20
+ @import "./color-well.css";
21
+ @import "./combo-box.css";
22
+ @import "./command-palette.css";
23
+ @import "./confirmation.css";
24
+ @import "./content-unavailable.css";
25
+ @import "./context-menu.css";
26
+ @import "./date-picker.css";
27
+ @import "./description-list.css";
28
+ @import "./device-frame.css";
29
+ @import "./dialog.css";
30
+ @import "./disclosure.css";
31
+ @import "./dock.css";
32
+ @import "./door-control.css";
33
+ @import "./energy-readout.css";
34
+ @import "./field.css";
35
+ @import "./gauge.css";
36
+ @import "./generated-image.css";
37
+ @import "./glass.css";
38
+ @import "./home-backdrop.css";
39
+ @import "./home-section.css";
40
+ @import "./home-status.css";
41
+ @import "./hover-card.css";
42
+ @import "./inspector.css";
43
+ @import "./level-control.css";
44
+ @import "./light-color-picker.css";
45
+ @import "./list.css";
46
+ @import "./listbox.css";
47
+ @import "./lock-control.css";
48
+ @import "./menu-bar.css";
49
+ @import "./menu.css";
50
+ @import "./message.css";
51
+ @import "./model-picker.css";
52
+ @import "./navigation-bar.css";
53
+ @import "./outline.css";
54
+ @import "./page-control.css";
55
+ @import "./plan.css";
56
+ @import "./popover.css";
57
+ @import "./progress.css";
58
+ @import "./prompt-input.css";
59
+ @import "./radio.css";
60
+ @import "./rating.css";
61
+ @import "./reasoning.css";
62
+ @import "./response.css";
63
+ @import "./scene-tile.css";
64
+ @import "./scroll-view.css";
65
+ @import "./search-field.css";
66
+ @import "./secure-field.css";
67
+ @import "./segmented-control.css";
68
+ @import "./select.css";
69
+ @import "./sensor-readout.css";
70
+ @import "./separator.css";
71
+ @import "./setup-code.css";
72
+ @import "./sheet.css";
73
+ @import "./shimmer.css";
74
+ @import "./sidebar.css";
75
+ @import "./slider.css";
76
+ @import "./sources.css";
77
+ @import "./split-view.css";
78
+ @import "./squircle.css";
79
+ @import "./stepper.css";
80
+ @import "./suggestion.css";
81
+ @import "./switch.css";
82
+ @import "./tab-bar.css";
83
+ @import "./table.css";
84
+ @import "./tabs.css";
85
+ @import "./text-area.css";
86
+ @import "./text-field.css";
87
+ @import "./thermostat-control.css";
88
+ @import "./toast.css";
89
+ @import "./toggle.css";
90
+ @import "./token-field.css";
91
+ @import "./tool-call.css";
92
+ @import "./toolbar.css";
93
+ @import "./tooltip.css";
94
+ @import "./window.css";