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,209 @@
1
+ /* Chat — the thread: a log that follows the reply, a centered column of turns, and a jump-to-latest button. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-chat-max-width: 720px;
5
+ --mb-chat-padding-inline: 24px;
6
+ --mb-chat-padding-block: 24px;
7
+ --mb-chat-gap: 28px;
8
+ --mb-chat-scroll-button-size: 32px;
9
+ --mb-chat-scroll-button-icon: 14px;
10
+ --mb-chat-greeting-icon-size: 40px;
11
+ --mb-chat-greeting-gap: 24px;
12
+ }
13
+
14
+ :where([data-platform="ipados"]) {
15
+ --mb-chat-max-width: 760px;
16
+ --mb-chat-padding-inline: 24px;
17
+ --mb-chat-padding-block: 20px;
18
+ --mb-chat-gap: 28px;
19
+ --mb-chat-scroll-button-size: 40px;
20
+ --mb-chat-scroll-button-icon: 18px;
21
+ --mb-chat-greeting-icon-size: 52px;
22
+ --mb-chat-greeting-gap: 28px;
23
+ }
24
+
25
+ :where([data-platform="ios"]) {
26
+ --mb-chat-max-width: 100%;
27
+ --mb-chat-padding-inline: 16px;
28
+ --mb-chat-padding-block: 16px;
29
+ --mb-chat-gap: 24px;
30
+ --mb-chat-scroll-button-size: 40px;
31
+ --mb-chat-scroll-button-icon: 18px;
32
+ --mb-chat-greeting-icon-size: 52px;
33
+ --mb-chat-greeting-gap: 24px;
34
+ }
35
+
36
+ .mb-chat {
37
+ /* Room under the last turn for a composer that floats over the thread. */
38
+ --mb-chat-inset-bottom: 0px;
39
+
40
+ position: relative;
41
+ display: flex;
42
+ flex: 1 1 auto;
43
+ flex-direction: column;
44
+ min-width: 0;
45
+ min-height: 0;
46
+ overflow: hidden;
47
+ }
48
+
49
+ .mb-chat-viewport {
50
+ flex: 1 1 auto;
51
+ min-width: 0;
52
+ min-height: 0;
53
+ scrollbar-width: none;
54
+ overscroll-behavior: contain;
55
+ }
56
+
57
+ .mb-chat-viewport::-webkit-scrollbar {
58
+ display: none;
59
+ }
60
+
61
+ .mb-chat-viewport:focus-visible {
62
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
63
+ outline-offset: calc(var(--mb-focus-ring-width) * -1);
64
+ }
65
+
66
+ .mb-chat-content {
67
+ display: flex;
68
+ flex-direction: column;
69
+ gap: var(--mb-chat-gap);
70
+ box-sizing: border-box;
71
+ width: 100%;
72
+ max-width: calc(var(--mb-chat-max-width) + var(--mb-chat-padding-inline) * 2);
73
+ margin-inline: auto;
74
+ padding-block: var(--mb-chat-padding-block) calc(var(--mb-chat-padding-block) + var(--mb-chat-inset-bottom));
75
+ padding-inline: var(--mb-chat-padding-inline);
76
+ }
77
+
78
+ /* Under a floating composer the thread fades into the background, so text never shows below it. */
79
+ .mb-chat:has(> .mb-prompt-input[data-floating])::after {
80
+ content: "";
81
+ position: absolute;
82
+ z-index: 1;
83
+ inset-inline: 0;
84
+ inset-block-end: 0;
85
+ height: calc(var(--mb-chat-inset-bottom) + 12px);
86
+ background: linear-gradient(to bottom, transparent, var(--mb-chat-fade, var(--mb-bg)) 42%);
87
+ pointer-events: none;
88
+ }
89
+
90
+ /* ── Jump to latest ──────────────────────────────────────────── */
91
+
92
+ .mb-chat-scroll-button {
93
+ /* Text scrolls right under it, so the glass is thicker than a toolbar's. */
94
+ --mb-glass-fill: var(--mb-material-thick);
95
+
96
+ position: absolute;
97
+ z-index: 2;
98
+ inset-block-end: calc(var(--mb-chat-inset-bottom) + 12px);
99
+ inset-inline-start: 50%;
100
+ display: inline-flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ width: var(--mb-chat-scroll-button-size);
104
+ height: var(--mb-chat-scroll-button-size);
105
+ margin: 0;
106
+ padding: 0;
107
+ color: var(--mb-label);
108
+ cursor: default;
109
+ translate: -50% 0;
110
+ touch-action: manipulation;
111
+ opacity: 0;
112
+ scale: 0.85;
113
+ pointer-events: none;
114
+ transition:
115
+ opacity var(--mb-duration-fast) var(--mb-ease-out),
116
+ scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy),
117
+ background-color var(--mb-duration-fast) var(--mb-ease-out);
118
+ }
119
+
120
+ :where([dir="rtl"]) .mb-chat-scroll-button {
121
+ translate: 50% 0;
122
+ }
123
+
124
+ .mb-chat-scroll-button[data-visible] {
125
+ opacity: 1;
126
+ scale: 1;
127
+ pointer-events: auto;
128
+ }
129
+
130
+ .mb-chat-scroll-button :where(svg) {
131
+ width: var(--mb-chat-scroll-button-icon);
132
+ height: var(--mb-chat-scroll-button-icon);
133
+ }
134
+
135
+ /* A touch target never drops below the platform minimum. */
136
+ .mb-chat-scroll-button::after {
137
+ content: "";
138
+ position: absolute;
139
+ inset: 50% auto auto 50%;
140
+ width: max(100%, var(--mb-hit-target));
141
+ height: max(100%, var(--mb-hit-target));
142
+ translate: -50% -50%;
143
+ }
144
+
145
+ @media (hover: hover) and (pointer: fine) {
146
+ .mb-chat-scroll-button:hover {
147
+ --mb-glass-fill: var(--mb-bg-elevated);
148
+ }
149
+ }
150
+
151
+ .mb-chat-scroll-button:active {
152
+ scale: 0.94;
153
+ transition-duration: var(--mb-duration-instant);
154
+ }
155
+
156
+ /* ── Greeting ────────────────────────────────────────────────── */
157
+
158
+ .mb-chat-greeting {
159
+ display: flex;
160
+ flex-direction: column;
161
+ align-items: center;
162
+ justify-content: center;
163
+ gap: 8px;
164
+ box-sizing: border-box;
165
+ width: 100%;
166
+ max-width: calc(var(--mb-chat-max-width) + var(--mb-chat-padding-inline) * 2);
167
+ margin-inline: auto;
168
+ padding-inline: var(--mb-chat-padding-inline);
169
+ text-align: center;
170
+ }
171
+
172
+ .mb-chat-greeting-icon {
173
+ display: inline-flex;
174
+ align-items: center;
175
+ justify-content: center;
176
+ width: var(--mb-chat-greeting-icon-size);
177
+ height: var(--mb-chat-greeting-icon-size);
178
+ margin-block-end: 8px;
179
+ color: var(--mb-accent-text);
180
+ }
181
+
182
+ .mb-chat-greeting-icon :where(svg, img) {
183
+ width: 100%;
184
+ height: 100%;
185
+ }
186
+
187
+ .mb-chat-greeting-title {
188
+ margin: 0;
189
+ color: var(--mb-label);
190
+ font: var(--mb-text-large-title);
191
+ letter-spacing: var(--mb-tracking-large-title);
192
+ text-wrap: balance;
193
+ }
194
+
195
+ .mb-chat-greeting-description {
196
+ margin: 0;
197
+ color: var(--mb-label-secondary);
198
+ font: var(--mb-text-body);
199
+ text-wrap: pretty;
200
+ }
201
+
202
+ .mb-chat-greeting-body {
203
+ display: flex;
204
+ flex-direction: column;
205
+ gap: 16px;
206
+ align-self: stretch;
207
+ margin-block-start: calc(var(--mb-chat-greeting-gap) - 8px);
208
+ text-align: start;
209
+ }
@@ -0,0 +1,212 @@
1
+ /* Checkbox — macOS's small rounded square that fills with the accent; on touch, the circular
2
+ checkmark Reminders and Mail use for selection, since iOS has no square checkbox. */
3
+
4
+ :where(:root, [data-platform="macos"]) {
5
+ --mb-checkbox-size: 14px;
6
+ --mb-checkbox-radius: calc(var(--mb-radius-xs) - 0.5px);
7
+ --mb-checkbox-stroke: 2.1;
8
+ --mb-checkbox-label-gap: var(--mb-space-3);
9
+ --mb-checkbox-group-gap: var(--mb-space-3);
10
+ }
11
+
12
+ :where([data-platform="ios"], [data-platform="ipados"]) {
13
+ --mb-checkbox-size: 22px;
14
+ --mb-checkbox-radius: var(--mb-radius-full);
15
+ --mb-checkbox-stroke: 1.7;
16
+ --mb-checkbox-label-gap: var(--mb-space-5);
17
+ --mb-checkbox-group-gap: var(--mb-space-6);
18
+ }
19
+
20
+ .mb-checkbox {
21
+ position: relative;
22
+ display: inline-flex;
23
+ flex: none;
24
+ align-items: center;
25
+ justify-content: center;
26
+ width: var(--mb-checkbox-size);
27
+ height: var(--mb-checkbox-size);
28
+ margin: 0;
29
+ padding: 0;
30
+ border: 0;
31
+ border-radius: var(--mb-checkbox-radius);
32
+ background: var(--mb-bg-control);
33
+ box-shadow:
34
+ inset 0 0 0 var(--mb-hairline) var(--mb-control-border),
35
+ 0 0.5px 1px var(--mb-shadow-color);
36
+ color: var(--mb-on-accent);
37
+ font: inherit;
38
+ cursor: default;
39
+ touch-action: manipulation;
40
+ -webkit-tap-highlight-color: transparent;
41
+ transition:
42
+ background-color var(--mb-duration-fast) var(--mb-ease-out),
43
+ box-shadow var(--mb-duration-fast) var(--mb-ease-out),
44
+ scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
45
+ }
46
+
47
+ .mb-checkbox::after {
48
+ content: "";
49
+ position: absolute;
50
+ inset: 50% auto auto 50%;
51
+ width: max(100%, var(--mb-hit-target));
52
+ height: max(100%, var(--mb-hit-target));
53
+ translate: -50% -50%;
54
+ }
55
+
56
+ .mb-checkbox:is([data-checked], [data-indeterminate]) {
57
+ background: var(--mb-accent);
58
+ box-shadow:
59
+ inset 0 0 0 var(--mb-hairline) color-mix(in oklch, var(--mb-accent-pressed), transparent 30%),
60
+ inset 0 0.5px 0 rgb(255 255 255 / 0.28),
61
+ 0 0.5px 1px var(--mb-shadow-color);
62
+ }
63
+
64
+ .mb-checkbox:active:not([data-disabled], [data-readonly]) {
65
+ background: color-mix(in oklch, var(--mb-bg-control), var(--mb-ink) 12%);
66
+ transition-duration: 0ms;
67
+ }
68
+
69
+ .mb-checkbox:is([data-checked], [data-indeterminate]):active:not([data-disabled], [data-readonly]) {
70
+ background: var(--mb-accent-pressed);
71
+ }
72
+
73
+ .mb-checkbox[data-disabled] {
74
+ opacity: 0.4;
75
+ }
76
+
77
+ .mb-checkbox[data-invalid] {
78
+ box-shadow: inset 0 0 0 1.5px var(--mb-destructive);
79
+ }
80
+
81
+ .mb-checkbox-indicator {
82
+ display: flex;
83
+ width: 100%;
84
+ height: 100%;
85
+ transition: opacity var(--mb-duration-fast) var(--mb-ease-out);
86
+ }
87
+
88
+ .mb-checkbox-indicator[data-ending-style] {
89
+ opacity: 0;
90
+ transition-duration: var(--mb-duration-instant);
91
+ }
92
+
93
+ .mb-checkbox-glyph {
94
+ width: 100%;
95
+ height: 100%;
96
+ fill: none;
97
+ stroke: currentColor;
98
+ stroke-width: var(--mb-checkbox-stroke);
99
+ stroke-linecap: round;
100
+ stroke-linejoin: round;
101
+ }
102
+
103
+ /* The check draws itself in, stroke first, like a pen. */
104
+ .mb-checkbox-check {
105
+ stroke-dasharray: 1;
106
+ stroke-dashoffset: 0;
107
+ transition: stroke-dashoffset var(--mb-duration-base) var(--mb-ease-out) 30ms;
108
+ }
109
+
110
+ .mb-checkbox-indicator[data-starting-style] .mb-checkbox-check {
111
+ stroke-dashoffset: 1;
112
+ }
113
+
114
+ .mb-checkbox-dash,
115
+ .mb-checkbox-indicator[data-indeterminate] .mb-checkbox-check {
116
+ display: none;
117
+ }
118
+
119
+ .mb-checkbox-indicator[data-indeterminate] .mb-checkbox-dash {
120
+ display: inline;
121
+ }
122
+
123
+ /* A checkbox with a title. */
124
+ .mb-checkbox-label {
125
+ display: inline-flex;
126
+ align-items: flex-start;
127
+ gap: var(--mb-checkbox-label-gap);
128
+ color: var(--mb-label);
129
+ font: var(--mb-text-body);
130
+ letter-spacing: var(--mb-tracking-body);
131
+ cursor: default;
132
+ user-select: none;
133
+ -webkit-user-select: none;
134
+ }
135
+
136
+ /* Centers the box on the first line, so a long title wraps under its text. */
137
+ .mb-checkbox-label > .mb-checkbox {
138
+ margin-block-start: calc((1lh - var(--mb-checkbox-size)) / 2);
139
+ }
140
+
141
+ .mb-checkbox-label:has(> .mb-checkbox[data-disabled]) {
142
+ color: var(--mb-label-tertiary);
143
+ }
144
+
145
+ .mb-checkbox-text {
146
+ display: flex;
147
+ flex-direction: column;
148
+ gap: var(--mb-space-1);
149
+ min-width: 0;
150
+ }
151
+
152
+ .mb-checkbox-description {
153
+ color: var(--mb-label-secondary);
154
+ font: var(--mb-text-callout);
155
+ }
156
+
157
+ .mb-checkbox-group {
158
+ display: flex;
159
+ flex-direction: column;
160
+ align-items: flex-start;
161
+ gap: var(--mb-checkbox-group-gap);
162
+ }
163
+
164
+ .mb-checkbox-group[data-disabled] .mb-checkbox-label {
165
+ color: var(--mb-label-tertiary);
166
+ }
167
+
168
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
169
+ .mb-checkbox {
170
+ background: transparent;
171
+ box-shadow: inset 0 0 0 1.5px var(--mb-control-border);
172
+ }
173
+
174
+ .mb-checkbox:is([data-checked], [data-indeterminate]) {
175
+ background: var(--mb-accent);
176
+ box-shadow: none;
177
+ }
178
+
179
+ .mb-checkbox:active:not([data-disabled], [data-readonly]) {
180
+ background: var(--mb-fill-tertiary);
181
+ scale: 0.92;
182
+ }
183
+
184
+ .mb-checkbox:is([data-checked], [data-indeterminate]):active:not([data-disabled], [data-readonly]) {
185
+ background: var(--mb-accent-pressed);
186
+ }
187
+
188
+ /* The circle pops a little as it fills. */
189
+ .mb-checkbox-indicator {
190
+ transition:
191
+ opacity var(--mb-duration-fast) var(--mb-ease-out),
192
+ scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
193
+ }
194
+
195
+ .mb-checkbox-indicator[data-starting-style] {
196
+ scale: 0.6;
197
+ }
198
+ }
199
+
200
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
201
+ @media (prefers-reduced-motion: reduce) {
202
+ :where(:root:not([data-motion="full"])) {
203
+ .mb-checkbox:active:not([data-disabled], [data-readonly]) {
204
+ scale: none;
205
+ }
206
+ }
207
+ }
208
+ }
209
+
210
+ .mb-checkbox-group:has(.mb-checkbox-description) {
211
+ gap: calc(var(--mb-checkbox-group-gap) + var(--mb-space-3));
212
+ }
@@ -0,0 +1,162 @@
1
+ /* Code block — code with an optional title bar and a copy button. Highlighting comes from the app. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-code-block-font: 400 12px/18px var(--mb-font-mono);
5
+ --mb-code-block-padding-block: 10px;
6
+ --mb-code-block-padding-inline: 14px;
7
+ --mb-code-block-header-height: 34px;
8
+ --mb-code-block-title-font: 500 12px/16px var(--mb-font);
9
+ --mb-code-block-radius: var(--mb-radius-lg);
10
+ }
11
+
12
+ :where([data-platform="ios"], [data-platform="ipados"]) {
13
+ --mb-code-block-font: 400 14px/21px var(--mb-font-mono);
14
+ --mb-code-block-padding-block: 14px;
15
+ --mb-code-block-padding-inline: 16px;
16
+ --mb-code-block-header-height: 44px;
17
+ --mb-code-block-title-font: 500 15px/20px var(--mb-font);
18
+ --mb-code-block-radius: var(--mb-radius-xl);
19
+ }
20
+
21
+ .mb-code-block {
22
+ --mb-code-block-bg: var(--mb-bg-secondary);
23
+ --mb-code-block-edge: var(--mb-separator);
24
+ --mb-code-block-max-height: none;
25
+ --mb-code-block-gutter: var(--mb-label-tertiary);
26
+
27
+ position: relative;
28
+ box-sizing: border-box;
29
+ display: flex;
30
+ flex-direction: column;
31
+ min-width: 0;
32
+ overflow: hidden;
33
+ border-radius: var(--mb-code-block-radius);
34
+ background: var(--mb-code-block-bg);
35
+ color: var(--mb-label);
36
+ box-shadow: inset 0 0 0 var(--mb-hairline) var(--mb-code-block-edge);
37
+ text-align: start;
38
+ }
39
+
40
+ @supports (corner-shape: squircle) {
41
+ .mb-code-block {
42
+ corner-shape: var(--mb-corner-shape);
43
+ border-radius: calc(var(--mb-code-block-radius) * var(--mb-corner-factor));
44
+ }
45
+ }
46
+
47
+ .mb-code-block-header {
48
+ display: flex;
49
+ flex: none;
50
+ align-items: center;
51
+ gap: var(--mb-space-4);
52
+ min-width: 0;
53
+ min-height: var(--mb-code-block-header-height);
54
+ padding-inline: var(--mb-code-block-padding-inline) var(--mb-space-3);
55
+ box-shadow: inset 0 calc(-1 * var(--mb-hairline)) 0 var(--mb-code-block-edge);
56
+ }
57
+
58
+ .mb-code-block-title {
59
+ display: flex;
60
+ flex: 1 1 auto;
61
+ align-items: baseline;
62
+ gap: var(--mb-space-4);
63
+ min-width: 0;
64
+ font: var(--mb-code-block-title-font);
65
+ letter-spacing: var(--mb-tracking-caption);
66
+ }
67
+
68
+ .mb-code-block-title-text {
69
+ min-width: 0;
70
+ overflow: hidden;
71
+ color: var(--mb-label);
72
+ white-space: nowrap;
73
+ text-overflow: ellipsis;
74
+ }
75
+
76
+ .mb-code-block-language {
77
+ flex: none;
78
+ color: var(--mb-label-secondary);
79
+ font-weight: 400;
80
+ }
81
+
82
+ .mb-code-block-header > .mb-code-block-copy {
83
+ margin-inline-start: auto;
84
+ }
85
+
86
+ /* Without a header the copy button sits in the top trailing corner, over the code. */
87
+ .mb-code-block > .mb-code-block-copy {
88
+ position: absolute;
89
+ z-index: 1;
90
+ inset-block-start: calc(var(--mb-code-block-padding-block) - 3px);
91
+ inset-inline-end: var(--mb-space-3);
92
+ background: var(--mb-code-block-bg);
93
+ }
94
+
95
+ .mb-code-block > .mb-code-block-copy ~ .mb-code-block-content {
96
+ padding-inline-end: calc(var(--mb-code-block-padding-inline) + var(--mb-control-height-sm));
97
+ }
98
+
99
+ .mb-code-block-copy[data-copied] {
100
+ color: var(--mb-success);
101
+ }
102
+
103
+ .mb-code-block-content {
104
+ box-sizing: border-box;
105
+ flex: 1 1 auto;
106
+ min-width: 0;
107
+ max-height: var(--mb-code-block-max-height);
108
+ margin: 0;
109
+ padding: var(--mb-code-block-padding-block) var(--mb-code-block-padding-inline);
110
+ overflow: auto;
111
+ overscroll-behavior-x: contain;
112
+ font: var(--mb-code-block-font);
113
+ letter-spacing: 0;
114
+ tab-size: 2;
115
+ white-space: pre;
116
+ counter-reset: mb-code-line;
117
+ }
118
+
119
+ .mb-code-block-content:focus-visible {
120
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
121
+ outline-offset: calc(-1 * var(--mb-focus-ring-width));
122
+ border-radius: inherit;
123
+ }
124
+
125
+ .mb-code-block-code {
126
+ font: inherit;
127
+ color: inherit;
128
+ background: none;
129
+ }
130
+
131
+ .mb-code-block[data-wrap] .mb-code-block-content {
132
+ white-space: pre-wrap;
133
+ overflow-wrap: anywhere;
134
+ }
135
+
136
+ /* Line numbers: a counter on each line, so they never land in what's copied or selected. */
137
+ .mb-code-block[data-line-numbers] :is(.mb-code-block-line, .line) {
138
+ counter-increment: mb-code-line;
139
+ }
140
+
141
+ .mb-code-block[data-line-numbers] :is(.mb-code-block-line, .line)::before {
142
+ content: counter(mb-code-line);
143
+ display: inline-block;
144
+ min-width: 2ch;
145
+ margin-inline-end: 2ch;
146
+ color: var(--mb-code-block-gutter);
147
+ text-align: end;
148
+ user-select: none;
149
+ -webkit-user-select: none;
150
+ }
151
+
152
+ /* Wrapped and numbered: each line becomes a block with a hanging indent, so wrapped text clears the gutter.
153
+ A grid drops the newline text between lines instead of drawing them as blank lines. */
154
+ .mb-code-block[data-wrap][data-line-numbers] .mb-code-block-code {
155
+ display: grid;
156
+ }
157
+
158
+ .mb-code-block[data-wrap][data-line-numbers] :is(.mb-code-block-line, .line) {
159
+ display: block;
160
+ padding-inline-start: 4ch;
161
+ text-indent: -4ch;
162
+ }