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,208 @@
1
+ /* Slider — a thin track filled with the accent on the minimum side, and a white knob.
2
+ macOS keeps both small and crisp; touch gives a thicker track and a 28pt thumb that swells under the finger. */
3
+
4
+ :where(:root, [data-platform="macos"]) {
5
+ --mb-slider-track: 4px;
6
+ --mb-slider-thumb: 20px;
7
+ --mb-slider-track-sm: 3px;
8
+ --mb-slider-thumb-sm: 14px;
9
+ --mb-slider-thumb-grow: 1;
10
+ --mb-slider-tick: 6px;
11
+ --mb-slider-value-font: var(--mb-text-callout);
12
+ }
13
+
14
+ :where([data-platform="ios"], [data-platform="ipados"]) {
15
+ --mb-slider-track: 6px;
16
+ --mb-slider-thumb: 28px;
17
+ --mb-slider-track-sm: 4px;
18
+ --mb-slider-thumb-sm: 22px;
19
+ --mb-slider-thumb-grow: 1.12;
20
+ --mb-slider-tick: 8px;
21
+ --mb-slider-value-font: var(--mb-text-footnote);
22
+ }
23
+
24
+ .mb-slider {
25
+ --mb-slider-t: var(--mb-slider-track);
26
+ --mb-slider-k: var(--mb-slider-thumb);
27
+ --mb-slider-band: max(var(--mb-slider-k), var(--mb-hit-target));
28
+
29
+ display: flex;
30
+ flex-direction: column;
31
+ gap: var(--mb-space-3);
32
+ width: 100%;
33
+ min-width: 160px;
34
+ color: var(--mb-label);
35
+ font: var(--mb-text-body);
36
+ letter-spacing: var(--mb-tracking-body);
37
+ }
38
+
39
+ .mb-slider[data-size="sm"] {
40
+ --mb-slider-t: var(--mb-slider-track-sm);
41
+ --mb-slider-k: var(--mb-slider-thumb-sm);
42
+ }
43
+
44
+ /* The control insets the track by half a knob, so the knob never leaves the control at either end. */
45
+ .mb-slider-control {
46
+ position: relative;
47
+ display: flex;
48
+ flex-direction: column;
49
+ justify-content: center;
50
+ width: 100%;
51
+ min-height: var(--mb-slider-band);
52
+ padding-inline: calc(var(--mb-slider-k) / 2);
53
+ touch-action: none;
54
+ -webkit-tap-highlight-color: transparent;
55
+ }
56
+
57
+ .mb-slider-track {
58
+ width: 100%;
59
+ height: var(--mb-slider-t);
60
+ border-radius: var(--mb-radius-full);
61
+ background: var(--mb-fill);
62
+ box-shadow: inset 0 0 0 var(--mb-hairline) var(--mb-separator);
63
+ }
64
+
65
+ .mb-slider-indicator {
66
+ border-radius: inherit;
67
+ background: var(--mb-accent);
68
+ }
69
+
70
+ .mb-slider-thumb {
71
+ width: var(--mb-slider-k);
72
+ height: var(--mb-slider-k);
73
+ border-radius: var(--mb-radius-full);
74
+ background: #ffffff;
75
+ box-shadow: var(--mb-shadow-thumb);
76
+ cursor: default;
77
+ transition:
78
+ scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy),
79
+ background-color var(--mb-duration-fast) var(--mb-ease-out),
80
+ box-shadow var(--mb-duration-fast) var(--mb-ease-out);
81
+ }
82
+
83
+ /* The knob dims as macOS's does while it's held. */
84
+ .mb-slider-thumb:active,
85
+ .mb-slider-thumb[data-dragging] {
86
+ background: light-dark(#f1f1f1, #e6e6e6);
87
+ }
88
+
89
+ .mb-slider-thumb:has(:focus-visible) {
90
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
91
+ outline-offset: var(--mb-focus-ring-offset);
92
+ }
93
+
94
+ .mb-slider-value {
95
+ color: var(--mb-label-secondary);
96
+ font: var(--mb-slider-value-font);
97
+ font-variant-numeric: tabular-nums;
98
+ }
99
+
100
+ /* Tick marks: evenly spaced from the minimum to the maximum, under the track. */
101
+ .mb-slider-ticks {
102
+ display: flex;
103
+ justify-content: space-between;
104
+ margin-block-start: var(--mb-space-2);
105
+ pointer-events: none;
106
+ }
107
+
108
+ .mb-slider-tick {
109
+ width: 1px;
110
+ height: var(--mb-slider-tick);
111
+ margin-inline: -0.5px;
112
+ border-radius: 0.5px;
113
+ background: var(--mb-label-tertiary);
114
+ }
115
+
116
+ .mb-slider-control:has(.mb-slider-ticks) {
117
+ justify-content: flex-start;
118
+ padding-block-start: calc((var(--mb-slider-band) - var(--mb-slider-t)) / 2);
119
+ }
120
+
121
+ /* Vertical: the minimum is at the bottom. */
122
+ .mb-slider[data-orientation="vertical"] {
123
+ flex-direction: column-reverse;
124
+ align-items: center;
125
+ width: auto;
126
+ min-width: 0;
127
+ height: 160px;
128
+ }
129
+
130
+ .mb-slider-control[data-orientation="vertical"] {
131
+ flex: 1;
132
+ flex-direction: row;
133
+ justify-content: center;
134
+ width: auto;
135
+ min-width: var(--mb-slider-band);
136
+ min-height: 0;
137
+ padding: calc(var(--mb-slider-k) / 2) 0;
138
+ }
139
+
140
+ .mb-slider-track[data-orientation="vertical"] {
141
+ width: var(--mb-slider-t);
142
+ height: 100%;
143
+ }
144
+
145
+ .mb-slider-control[data-orientation="vertical"] .mb-slider-ticks {
146
+ flex-direction: column-reverse;
147
+ margin: 0 0 0 var(--mb-space-2);
148
+ }
149
+
150
+ .mb-slider-control[data-orientation="vertical"] .mb-slider-tick {
151
+ width: var(--mb-slider-tick);
152
+ height: 1px;
153
+ margin: -0.5px 0;
154
+ }
155
+
156
+ .mb-slider-control[data-orientation="vertical"]:has(.mb-slider-ticks) {
157
+ justify-content: flex-start;
158
+ padding-inline-start: calc((var(--mb-slider-band) - var(--mb-slider-t)) / 2);
159
+ }
160
+
161
+ .mb-slider[data-disabled] {
162
+ opacity: 0.4;
163
+ }
164
+
165
+ .mb-slider[data-disabled] .mb-slider-indicator {
166
+ background: var(--mb-label-tertiary);
167
+ }
168
+
169
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
170
+ .mb-slider-track {
171
+ box-shadow: none;
172
+ }
173
+
174
+ .mb-slider-thumb {
175
+ box-shadow:
176
+ 0 0.5px 4px rgb(0 0 0 / 0.12),
177
+ 0 6px 13px rgb(0 0 0 / 0.12),
178
+ 0 0 0 0.5px rgb(0 0 0 / 0.04);
179
+ }
180
+
181
+ .mb-slider-thumb:active,
182
+ .mb-slider-thumb[data-dragging] {
183
+ background: #ffffff;
184
+ scale: var(--mb-slider-thumb-grow);
185
+ }
186
+ }
187
+
188
+ @media (prefers-reduced-motion: reduce) {
189
+ :where(:root:not([data-motion="full"])) {
190
+ .mb-slider-thumb:active,
191
+ .mb-slider-thumb[data-dragging] {
192
+ scale: 1 !important;
193
+ }
194
+ }
195
+ }
196
+
197
+ /* The native look leans on a soft shadow for the knob and a faint track (about 1.3:1).
198
+ Increase Contrast gives both a real edge. */
199
+ /* Two classes so the rule beats the scoped touch rules, which win on proximity. */
200
+ @media (prefers-contrast: more) {
201
+ .mb-slider .mb-slider-track {
202
+ box-shadow: inset 0 0 0 1px var(--mb-control-border);
203
+ }
204
+
205
+ .mb-slider .mb-slider-thumb {
206
+ box-shadow: var(--mb-shadow-thumb), 0 0 0 1px var(--mb-control-border);
207
+ }
208
+ }
@@ -0,0 +1,349 @@
1
+ /* Sources — what a reply drew on: a collapsible list of links, and inline citation chips that preview them. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-sources-font: var(--mb-text-body);
5
+ --mb-sources-min-height: 22px;
6
+ --mb-sources-chevron-width: 5px;
7
+ --mb-sources-chevron-height: 9px;
8
+ --mb-sources-chevron-stroke: 1.8;
9
+ --mb-source-row-height: 28px;
10
+ --mb-source-padding-inline: 8px;
11
+ --mb-source-font: var(--mb-text-body);
12
+ --mb-source-site-font: var(--mb-text-callout);
13
+ --mb-source-icon-size: 16px;
14
+ --mb-source-icon-radius: 4px;
15
+ --mb-source-icon-font: 700 9.5px/1 var(--mb-font-rounded);
16
+ --mb-citation-height: 16px;
17
+ --mb-citation-padding: 6px;
18
+ --mb-citation-font: 500 11px/14px var(--mb-font);
19
+ }
20
+
21
+ :where([data-platform="ios"], [data-platform="ipados"]) {
22
+ --mb-sources-font: var(--mb-text-subheadline);
23
+ --mb-sources-min-height: 28px;
24
+ --mb-sources-chevron-width: 6px;
25
+ --mb-sources-chevron-height: 11px;
26
+ --mb-sources-chevron-stroke: 2;
27
+ --mb-source-row-height: 44px;
28
+ --mb-source-padding-inline: 10px;
29
+ --mb-source-font: var(--mb-text-subheadline);
30
+ --mb-source-site-font: var(--mb-text-footnote);
31
+ --mb-source-icon-size: 20px;
32
+ --mb-source-icon-radius: 5px;
33
+ --mb-source-icon-font: 700 12px/1 var(--mb-font-rounded);
34
+ --mb-citation-height: 20px;
35
+ --mb-citation-padding: 7px;
36
+ --mb-citation-font: 500 13px/18px var(--mb-font);
37
+ }
38
+
39
+ /* ── The line ────────────────────────────────────────────────── */
40
+
41
+ .mb-sources {
42
+ display: flex;
43
+ flex-direction: column;
44
+ align-items: flex-start;
45
+ min-width: 0;
46
+ color: var(--mb-label-secondary);
47
+ font: var(--mb-sources-font);
48
+ letter-spacing: var(--mb-tracking-body);
49
+ }
50
+
51
+ .mb-sources-trigger {
52
+ position: relative;
53
+ display: inline-flex;
54
+ align-items: center;
55
+ gap: 4px;
56
+ max-width: 100%;
57
+ min-height: var(--mb-sources-min-height);
58
+ margin: 0;
59
+ padding: 0;
60
+ border: 0;
61
+ border-radius: var(--mb-radius-xs);
62
+ background: transparent;
63
+ color: var(--mb-label-secondary);
64
+ font: inherit;
65
+ letter-spacing: inherit;
66
+ text-align: start;
67
+ cursor: default;
68
+ -webkit-tap-highlight-color: transparent;
69
+ touch-action: manipulation;
70
+ user-select: none;
71
+ -webkit-user-select: none;
72
+ transition: color var(--mb-duration-fast) var(--mb-ease-out);
73
+ }
74
+
75
+ .mb-sources-trigger::after {
76
+ content: "";
77
+ position: absolute;
78
+ inset: 50% -4px auto;
79
+ height: max(100%, var(--mb-hit-target));
80
+ translate: 0 -50%;
81
+ }
82
+
83
+ .mb-sources-trigger:focus-visible {
84
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
85
+ outline-offset: var(--mb-focus-ring-offset);
86
+ }
87
+
88
+ .mb-sources-label {
89
+ min-width: 0;
90
+ overflow: hidden;
91
+ white-space: nowrap;
92
+ text-overflow: ellipsis;
93
+ }
94
+
95
+ .mb-sources-chevron {
96
+ flex: none;
97
+ box-sizing: content-box;
98
+ width: var(--mb-sources-chevron-width);
99
+ height: var(--mb-sources-chevron-height);
100
+ padding-inline: calc((var(--mb-sources-chevron-height) - var(--mb-sources-chevron-width)) / 2);
101
+ fill: none;
102
+ stroke: currentColor;
103
+ stroke-width: var(--mb-sources-chevron-stroke);
104
+ stroke-linecap: round;
105
+ stroke-linejoin: round;
106
+ transition: rotate var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
107
+ }
108
+
109
+ .mb-sources-trigger[data-open] .mb-sources-chevron {
110
+ rotate: 90deg;
111
+ }
112
+
113
+ :where([dir="rtl"]) .mb-sources-chevron {
114
+ scale: -1 1;
115
+ }
116
+
117
+ :where([dir="rtl"]) .mb-sources-trigger[data-open] .mb-sources-chevron {
118
+ rotate: -90deg;
119
+ }
120
+
121
+ @media (hover: hover) and (pointer: fine) {
122
+ .mb-sources-trigger:hover {
123
+ color: var(--mb-label);
124
+ }
125
+ }
126
+
127
+ .mb-sources-trigger:active {
128
+ color: var(--mb-label);
129
+ transition-duration: 0ms;
130
+ }
131
+
132
+ .mb-sources-panel {
133
+ align-self: stretch;
134
+ height: var(--collapsible-panel-height, auto);
135
+ overflow: hidden;
136
+ transition: height var(--mb-spring-smooth-duration) var(--mb-spring-smooth);
137
+ }
138
+
139
+ .mb-sources-panel:is([data-starting-style], [data-ending-style]) {
140
+ height: 0;
141
+ }
142
+
143
+ .mb-sources-panel[data-ending-style] {
144
+ transition-duration: var(--mb-duration-slow);
145
+ transition-timing-function: var(--mb-ease-out);
146
+ }
147
+
148
+ /* ── The list ────────────────────────────────────────────────── */
149
+
150
+ .mb-sources-list {
151
+ display: flex;
152
+ flex-direction: column;
153
+ margin: var(--mb-space-3) 0 0;
154
+ /* Rows' fills reach past the text, so the text lines up with the line above. */
155
+ margin-inline: calc(var(--mb-source-padding-inline) * -1);
156
+ padding: 0;
157
+ list-style: none;
158
+ }
159
+
160
+ .mb-sources-item {
161
+ display: block;
162
+ min-width: 0;
163
+ }
164
+
165
+ .mb-source {
166
+ box-sizing: border-box;
167
+ display: flex;
168
+ align-items: center;
169
+ gap: var(--mb-space-4);
170
+ min-width: 0;
171
+ min-height: var(--mb-source-row-height);
172
+ padding: var(--mb-space-2) var(--mb-source-padding-inline);
173
+ border-radius: var(--mb-row-radius);
174
+ color: var(--mb-label);
175
+ font: var(--mb-source-font);
176
+ text-decoration: none;
177
+ cursor: default;
178
+ -webkit-tap-highlight-color: transparent;
179
+ transition: background-color var(--mb-duration-fast) var(--mb-ease-out);
180
+ }
181
+
182
+ .mb-source:focus-visible {
183
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
184
+ outline-offset: calc(var(--mb-focus-ring-width) * -1);
185
+ }
186
+
187
+ @media (hover: hover) and (pointer: fine) {
188
+ .mb-source:hover {
189
+ background: var(--mb-fill-quaternary);
190
+ }
191
+ }
192
+
193
+ .mb-source:active {
194
+ background: var(--mb-fill-tertiary);
195
+ transition-duration: 0ms;
196
+ }
197
+
198
+ .mb-source-title {
199
+ flex: 1 1 auto;
200
+ min-width: 0;
201
+ overflow: hidden;
202
+ white-space: nowrap;
203
+ text-overflow: ellipsis;
204
+ }
205
+
206
+ .mb-source-site {
207
+ flex: 0 1 auto;
208
+ min-width: 0;
209
+ max-width: 40%;
210
+ overflow: hidden;
211
+ color: var(--mb-label-secondary);
212
+ font: var(--mb-source-site-font);
213
+ white-space: nowrap;
214
+ text-overflow: ellipsis;
215
+ }
216
+
217
+ /* ── Favicon slot ────────────────────────────────────────────── */
218
+
219
+ .mb-source-icon {
220
+ --mb-source-tint: var(--mb-accent);
221
+
222
+ display: inline-grid;
223
+ flex: none;
224
+ place-items: center;
225
+ width: var(--mb-source-icon-size);
226
+ height: var(--mb-source-icon-size);
227
+ overflow: hidden;
228
+ border-radius: var(--mb-source-icon-radius);
229
+ background: var(--mb-fill-tertiary);
230
+ color: var(--mb-label-secondary);
231
+ }
232
+
233
+ .mb-source-icon[data-letter] {
234
+ /* Deep enough that the white letter reads on every system color. */
235
+ background: oklch(from var(--mb-source-tint) min(l, 0.58) c h);
236
+ color: white;
237
+ font: var(--mb-source-icon-font);
238
+ }
239
+
240
+ .mb-source-icon > :where(svg, img, .mb-artwork) {
241
+ width: 100%;
242
+ height: 100%;
243
+ }
244
+
245
+ @supports (corner-shape: squircle) {
246
+ .mb-source-icon {
247
+ corner-shape: var(--mb-corner-shape);
248
+ border-radius: calc(var(--mb-source-icon-radius) * var(--mb-corner-factor));
249
+ }
250
+ }
251
+
252
+ /* ── Citation chip ───────────────────────────────────────────── */
253
+
254
+ .mb-citation {
255
+ display: inline-flex;
256
+ align-items: center;
257
+ justify-content: center;
258
+ box-sizing: border-box;
259
+ min-width: var(--mb-citation-height);
260
+ height: var(--mb-citation-height);
261
+ margin-inline: 2px;
262
+ padding-inline: var(--mb-citation-padding);
263
+ border-radius: var(--mb-radius-full);
264
+ background: var(--mb-fill-secondary);
265
+ color: var(--mb-label-secondary);
266
+ font: var(--mb-citation-font);
267
+ letter-spacing: var(--mb-tracking-caption);
268
+ white-space: nowrap;
269
+ text-decoration: none;
270
+ /* Sits on the text's x-height rather than hanging below the baseline. */
271
+ vertical-align: 0.08em;
272
+ cursor: default;
273
+ -webkit-tap-highlight-color: transparent;
274
+ transition:
275
+ background-color var(--mb-duration-fast) var(--mb-ease-out),
276
+ color var(--mb-duration-fast) var(--mb-ease-out);
277
+ }
278
+
279
+ .mb-citation + .mb-citation {
280
+ margin-inline-start: 0;
281
+ }
282
+
283
+ .mb-citation:focus-visible {
284
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
285
+ outline-offset: 1px;
286
+ }
287
+
288
+ .mb-citation[data-open] {
289
+ background: var(--mb-fill);
290
+ color: var(--mb-label);
291
+ }
292
+
293
+ @media (hover: hover) and (pointer: fine) {
294
+ .mb-citation:hover {
295
+ background: var(--mb-fill);
296
+ color: var(--mb-label);
297
+ }
298
+ }
299
+
300
+ .mb-citation:active {
301
+ background: var(--mb-label-secondary);
302
+ color: var(--mb-bg);
303
+ transition-duration: 0ms;
304
+ }
305
+
306
+ .mb-citation-label {
307
+ max-width: 12em;
308
+ overflow: hidden;
309
+ text-overflow: ellipsis;
310
+ }
311
+
312
+ /* ── Preview card ────────────────────────────────────────────── */
313
+
314
+ .mb-citation-card {
315
+ gap: var(--mb-space-2);
316
+ width: min(300px, var(--available-width, 100vw));
317
+ padding: var(--mb-space-5) var(--mb-space-6) var(--mb-space-6);
318
+ }
319
+
320
+ .mb-citation-card-site {
321
+ display: flex;
322
+ align-items: center;
323
+ gap: var(--mb-space-3);
324
+ margin-block-end: var(--mb-space-1);
325
+ color: var(--mb-label-secondary);
326
+ font: var(--mb-text-subheadline);
327
+ }
328
+
329
+ .mb-citation-card-title {
330
+ color: var(--mb-label);
331
+ font: var(--mb-text-headline);
332
+ text-wrap: balance;
333
+ }
334
+
335
+ .mb-citation-card-description {
336
+ display: -webkit-box;
337
+ overflow: hidden;
338
+ color: var(--mb-label-secondary);
339
+ font: var(--mb-text-callout);
340
+ -webkit-box-orient: vertical;
341
+ -webkit-line-clamp: 3;
342
+ line-clamp: 3;
343
+ }
344
+
345
+ @media (forced-colors: active) {
346
+ .mb-citation {
347
+ border: 1px solid LinkText;
348
+ }
349
+ }
@@ -0,0 +1,75 @@
1
+ /* Split View — side-by-side panes with thin dividers, like NSSplitView and UISplitViewController. */
2
+
3
+ .mb-split-view {
4
+ width: 100%;
5
+ height: 100%;
6
+ min-width: 0;
7
+ min-height: 0;
8
+ color: var(--mb-label);
9
+ }
10
+
11
+ .mb-split-view-pane {
12
+ position: relative;
13
+ min-width: 0;
14
+ min-height: 0;
15
+ overflow: auto;
16
+ background: var(--mb-bg);
17
+ overscroll-behavior: contain;
18
+ }
19
+
20
+ /* A Sidebar inside drops its own material, so glass never sits on glass. */
21
+ .mb-split-view-pane[data-variant="sidebar"] {
22
+ --mb-sidebar-bg: transparent;
23
+ --mb-sidebar-filter: none;
24
+ background: var(--mb-material-sidebar);
25
+ -webkit-backdrop-filter: var(--mb-material-filter);
26
+ backdrop-filter: var(--mb-material-filter);
27
+ }
28
+
29
+ .mb-split-view-pane[data-variant="inspector"] {
30
+ background: var(--mb-bg-secondary);
31
+ }
32
+
33
+ .mb-split-view-pane[data-collapsed] {
34
+ overflow: hidden;
35
+ }
36
+
37
+ /* The line is a hairline; ui-sdk widens the hit area around it on its own. */
38
+ .mb-split-view-divider {
39
+ position: relative;
40
+ z-index: 1;
41
+ flex: none;
42
+ background: var(--mb-separator-opaque);
43
+ outline: none;
44
+ transition: background-color var(--mb-duration-fast) var(--mb-ease-out);
45
+ }
46
+
47
+ .mb-split-view-divider[data-orientation="horizontal"] {
48
+ width: 1px;
49
+ cursor: col-resize;
50
+ }
51
+
52
+ .mb-split-view-divider[data-orientation="vertical"] {
53
+ height: 1px;
54
+ cursor: row-resize;
55
+ }
56
+
57
+ .mb-split-view-divider:focus-visible,
58
+ .mb-split-view-divider[data-dragging] {
59
+ background: var(--mb-accent);
60
+ }
61
+
62
+ .mb-split-view-divider:focus-visible {
63
+ box-shadow: 0 0 0 1px var(--mb-focus-ring);
64
+ }
65
+
66
+ .mb-split-view-divider[data-disabled] {
67
+ cursor: default;
68
+ }
69
+
70
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
71
+ .mb-split-view-divider[data-orientation="horizontal"] {
72
+ width: var(--mb-hairline);
73
+ background: var(--mb-separator);
74
+ }
75
+ }
@@ -0,0 +1,44 @@
1
+ /* Squircle — a box with Apple's continuous corners. The mechanism is in base.css. */
2
+
3
+ .mb-squircle {
4
+ --mb-squircle-radius: var(--mb-squircle-radius-icon);
5
+
6
+ position: relative;
7
+ overflow: hidden;
8
+ border-radius: var(--mb-squircle-radius);
9
+ }
10
+
11
+ @supports (corner-shape: squircle) {
12
+ .mb-squircle {
13
+ corner-shape: var(--mb-corner-shape);
14
+ border-radius: calc(var(--mb-squircle-radius) * var(--mb-corner-factor));
15
+ }
16
+ }
17
+
18
+ /* A smoothing of its own: only where superellipse() exists, or the factor would apply to a round corner. */
19
+ @supports (corner-shape: superellipse(2)) {
20
+ .mb-squircle[data-smoothing] {
21
+ --mb-corner-shape: superellipse(var(--mb-squircle-k));
22
+ --mb-corner-smoothing: var(--mb-squircle-m);
23
+ }
24
+ }
25
+
26
+ /* Exact: the clip-path is the shape, so the radius only has to stay out of its way. */
27
+ .mb-squircle[data-exact] {
28
+ border-radius: 0;
29
+ }
30
+
31
+ .mb-squircle[data-shadow] {
32
+ box-shadow: var(--mb-squircle-shadow);
33
+ }
34
+
35
+ .mb-squircle-shadow {
36
+ display: inline-flex;
37
+ flex: none;
38
+ vertical-align: top;
39
+ filter: drop-shadow(var(--mb-squircle-shadow));
40
+ }
41
+
42
+ :where(.mb-squircle, .mb-squircle-shadow) {
43
+ --mb-squircle-shadow: 0 2px 6px rgb(0 0 0 / 0.22);
44
+ }