macbetter 0.1.0-beta.1 → 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 (65) hide show
  1. package/dist/components/artifact-card.d.ts +41 -0
  2. package/dist/components/artifact-card.js +57 -0
  3. package/dist/components/attachment.d.ts +48 -0
  4. package/dist/components/attachment.js +65 -0
  5. package/dist/components/chat.d.ts +29 -0
  6. package/dist/components/chat.js +29 -0
  7. package/dist/components/code-block.d.ts +39 -0
  8. package/dist/components/code-block.js +65 -0
  9. package/dist/components/confirmation.d.ts +24 -0
  10. package/dist/components/confirmation.js +50 -0
  11. package/dist/components/content-unavailable.d.ts +19 -0
  12. package/dist/components/content-unavailable.js +21 -0
  13. package/dist/components/description-list.d.ts +18 -0
  14. package/dist/components/description-list.js +17 -0
  15. package/dist/components/generated-image.d.ts +39 -0
  16. package/dist/components/generated-image.js +47 -0
  17. package/dist/components/inspector.d.ts +29 -0
  18. package/dist/components/inspector.js +40 -0
  19. package/dist/components/message.d.ts +65 -0
  20. package/dist/components/message.js +69 -0
  21. package/dist/components/model-picker.d.ts +61 -0
  22. package/dist/components/model-picker.js +59 -0
  23. package/dist/components/plan.d.ts +25 -0
  24. package/dist/components/plan.js +43 -0
  25. package/dist/components/prompt-input.d.ts +93 -0
  26. package/dist/components/prompt-input.js +172 -0
  27. package/dist/components/reasoning.d.ts +28 -0
  28. package/dist/components/reasoning.js +52 -0
  29. package/dist/components/response.d.ts +14 -0
  30. package/dist/components/response.js +14 -0
  31. package/dist/components/shimmer.d.ts +18 -0
  32. package/dist/components/shimmer.js +17 -0
  33. package/dist/components/sources.d.ts +51 -0
  34. package/dist/components/sources.js +46 -0
  35. package/dist/components/suggestion.d.ts +23 -0
  36. package/dist/components/suggestion.js +29 -0
  37. package/dist/components/tool-call.d.ts +48 -0
  38. package/dist/components/tool-call.js +77 -0
  39. package/dist/index.d.ts +19 -0
  40. package/dist/index.js +19 -0
  41. package/dist/lib/agent-glyphs.d.ts +10 -0
  42. package/dist/lib/agent-glyphs.js +19 -0
  43. package/dist/styles/components/artifact-card.css +238 -0
  44. package/dist/styles/components/attachment.css +540 -0
  45. package/dist/styles/components/chat.css +209 -0
  46. package/dist/styles/components/code-block.css +162 -0
  47. package/dist/styles/components/confirmation.css +189 -0
  48. package/dist/styles/components/content-unavailable.css +105 -0
  49. package/dist/styles/components/description-list.css +92 -0
  50. package/dist/styles/components/device-frame.css +8 -0
  51. package/dist/styles/components/generated-image.css +248 -0
  52. package/dist/styles/components/index.css +19 -0
  53. package/dist/styles/components/inspector.css +236 -0
  54. package/dist/styles/components/message.css +236 -0
  55. package/dist/styles/components/model-picker.css +64 -0
  56. package/dist/styles/components/navigation-bar.css +2 -1
  57. package/dist/styles/components/plan.css +212 -0
  58. package/dist/styles/components/prompt-input.css +503 -0
  59. package/dist/styles/components/reasoning.css +214 -0
  60. package/dist/styles/components/response.css +303 -0
  61. package/dist/styles/components/shimmer.css +60 -0
  62. package/dist/styles/components/sources.css +349 -0
  63. package/dist/styles/components/suggestion.css +203 -0
  64. package/dist/styles/components/tool-call.css +391 -0
  65. package/package.json +1 -1
@@ -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,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
+ }
@@ -0,0 +1,189 @@
1
+ /* Confirmation — an inline card that asks before a tool runs, then folds to one line with the answer. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-confirmation-padding: 14px;
5
+ --mb-confirmation-gap: 10px;
6
+ --mb-confirmation-radius: var(--mb-radius-lg);
7
+ --mb-confirmation-icon-size: 28px;
8
+ --mb-confirmation-icon-radius: 7px;
9
+ --mb-confirmation-icon-glyph: 16px;
10
+ --mb-confirmation-title-font: var(--mb-text-headline);
11
+ --mb-confirmation-description-font: var(--mb-text-body);
12
+ --mb-confirmation-outcome-font: var(--mb-text-body);
13
+ --mb-confirmation-actions-space: 14px;
14
+ --mb-confirmation-max-width: 480px;
15
+ }
16
+
17
+ :where([data-platform="ios"], [data-platform="ipados"]) {
18
+ --mb-confirmation-padding: 16px;
19
+ --mb-confirmation-gap: 12px;
20
+ --mb-confirmation-radius: var(--mb-group-radius);
21
+ --mb-confirmation-icon-size: 36px;
22
+ --mb-confirmation-icon-radius: 9px;
23
+ --mb-confirmation-icon-glyph: 20px;
24
+ --mb-confirmation-title-font: var(--mb-text-headline);
25
+ --mb-confirmation-description-font: var(--mb-text-subheadline);
26
+ --mb-confirmation-outcome-font: var(--mb-text-subheadline);
27
+ --mb-confirmation-actions-space: 16px;
28
+ --mb-confirmation-max-width: none;
29
+ }
30
+
31
+ .mb-confirmation {
32
+ box-sizing: border-box;
33
+ display: grid;
34
+ grid-template-columns: auto minmax(0, 1fr);
35
+ column-gap: var(--mb-confirmation-gap);
36
+ align-items: start;
37
+ width: 100%;
38
+ max-width: var(--mb-confirmation-max-width);
39
+ min-width: 0;
40
+ padding: var(--mb-confirmation-padding);
41
+ border-radius: var(--mb-confirmation-radius);
42
+ background: var(--mb-fill-quaternary);
43
+ box-shadow: inset 0 0 0 var(--mb-hairline) var(--mb-separator-strong);
44
+ color: var(--mb-label);
45
+ letter-spacing: var(--mb-tracking-body);
46
+ outline: none;
47
+ }
48
+
49
+ @supports (corner-shape: squircle) {
50
+ .mb-confirmation,
51
+ .mb-confirmation-icon {
52
+ corner-shape: var(--mb-corner-shape);
53
+ }
54
+
55
+ .mb-confirmation {
56
+ border-radius: calc(var(--mb-confirmation-radius) * var(--mb-corner-factor));
57
+ }
58
+
59
+ .mb-confirmation-icon {
60
+ border-radius: calc(var(--mb-confirmation-icon-radius) * var(--mb-corner-factor));
61
+ }
62
+ }
63
+
64
+ .mb-confirmation:focus-visible {
65
+ outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
66
+ outline-offset: var(--mb-focus-ring-offset);
67
+ }
68
+
69
+ /* Everything without a place of its own spans the card, under the icon and title. */
70
+ .mb-confirmation > * {
71
+ grid-column: 1 / -1;
72
+ }
73
+
74
+ .mb-confirmation:has(> .mb-confirmation-icon) > :is(.mb-confirmation-title, .mb-confirmation-description) {
75
+ grid-column: 2;
76
+ }
77
+
78
+ .mb-confirmation-icon {
79
+ display: grid;
80
+ grid-column: 1;
81
+ grid-row: 1 / span 2;
82
+ place-items: center;
83
+ width: var(--mb-confirmation-icon-size);
84
+ height: var(--mb-confirmation-icon-size);
85
+ border-radius: var(--mb-confirmation-icon-radius);
86
+ background: var(--mb-accent);
87
+ color: var(--mb-on-accent);
88
+ }
89
+
90
+ .mb-confirmation-icon > :where(svg) {
91
+ width: var(--mb-confirmation-icon-glyph);
92
+ height: var(--mb-confirmation-icon-glyph);
93
+ }
94
+
95
+ .mb-confirmation-icon > :where(.mb-artwork, img) {
96
+ width: 100%;
97
+ height: 100%;
98
+ border-radius: inherit;
99
+ }
100
+
101
+ .mb-confirmation-title {
102
+ grid-row: 1;
103
+ align-self: center;
104
+ margin: 0;
105
+ color: var(--mb-label);
106
+ font: var(--mb-confirmation-title-font);
107
+ text-wrap: balance;
108
+ }
109
+
110
+ .mb-confirmation-description {
111
+ grid-row: 2;
112
+ margin: 2px 0 0;
113
+ color: var(--mb-label-secondary);
114
+ font: var(--mb-confirmation-description-font);
115
+ text-wrap: pretty;
116
+ }
117
+
118
+ /* With a description beside the icon, the title sits at the top instead of centered. */
119
+ .mb-confirmation:has(> .mb-confirmation-description) > .mb-confirmation-title {
120
+ align-self: end;
121
+ }
122
+
123
+ .mb-confirmation-details {
124
+ margin-block-start: var(--mb-confirmation-gap);
125
+ padding-block-start: var(--mb-confirmation-gap);
126
+ border-block-start: 1px solid var(--mb-separator);
127
+ min-width: 0;
128
+ }
129
+
130
+ .mb-confirmation-actions {
131
+ display: flex;
132
+ flex-wrap: wrap;
133
+ justify-content: flex-end;
134
+ gap: var(--mb-space-4);
135
+ margin-block-start: var(--mb-confirmation-actions-space);
136
+ }
137
+
138
+ @scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
139
+ /* As in a permission alert: full-width buttons, the last one (the default) on top. */
140
+ .mb-confirmation-actions {
141
+ flex-direction: column-reverse;
142
+ flex-wrap: nowrap;
143
+ gap: var(--mb-space-4);
144
+ }
145
+
146
+ .mb-confirmation-actions > * {
147
+ width: 100%;
148
+ }
149
+ }
150
+
151
+ /* ── Answered ────────────────────────────────────────────────── */
152
+
153
+ .mb-confirmation:not([data-state="pending"]) {
154
+ display: block;
155
+ width: auto;
156
+ padding: 0;
157
+ background: none;
158
+ box-shadow: none;
159
+ }
160
+
161
+ .mb-confirmation-outcome {
162
+ display: inline-flex;
163
+ align-items: center;
164
+ gap: var(--mb-space-3);
165
+ margin: 0;
166
+ color: var(--mb-label-secondary);
167
+ font: var(--mb-confirmation-outcome-font);
168
+ }
169
+
170
+ .mb-confirmation-outcome-glyph {
171
+ flex: none;
172
+ width: 1.15em;
173
+ height: 1.15em;
174
+ fill: none;
175
+ stroke: currentColor;
176
+ stroke-width: 1.8;
177
+ stroke-linecap: round;
178
+ stroke-linejoin: round;
179
+ }
180
+
181
+ .mb-confirmation[data-state="allowed"] .mb-confirmation-outcome-glyph {
182
+ color: var(--mb-success);
183
+ }
184
+
185
+ @media (forced-colors: active) {
186
+ .mb-confirmation[data-state="pending"] {
187
+ border: 1px solid CanvasText;
188
+ }
189
+ }
@@ -0,0 +1,105 @@
1
+ /* Content unavailable — SwiftUI's ContentUnavailableView: an empty, offline or no-results state. */
2
+
3
+ :where(:root, [data-platform="macos"]) {
4
+ --mb-content-unavailable-icon-sm: 28px;
5
+ --mb-content-unavailable-icon: 40px;
6
+ --mb-content-unavailable-icon-lg: 56px;
7
+ --mb-content-unavailable-title-sm: var(--mb-text-headline);
8
+ --mb-content-unavailable-title: var(--mb-text-title-3);
9
+ --mb-content-unavailable-title-lg: var(--mb-text-title-1);
10
+ --mb-content-unavailable-description-sm: var(--mb-text-callout);
11
+ --mb-content-unavailable-description: var(--mb-text-body);
12
+ --mb-content-unavailable-description-lg: 400 15px/20px var(--mb-font);
13
+ --mb-content-unavailable-max-width: 340px;
14
+ }
15
+
16
+ :where([data-platform="ios"], [data-platform="ipados"]) {
17
+ --mb-content-unavailable-icon-sm: 34px;
18
+ --mb-content-unavailable-icon: 48px;
19
+ --mb-content-unavailable-icon-lg: 64px;
20
+ --mb-content-unavailable-title-sm: var(--mb-text-headline);
21
+ --mb-content-unavailable-title: var(--mb-text-title-2);
22
+ --mb-content-unavailable-title-lg: var(--mb-text-title-1);
23
+ --mb-content-unavailable-description-sm: var(--mb-text-subheadline);
24
+ --mb-content-unavailable-description: var(--mb-text-subheadline);
25
+ --mb-content-unavailable-description-lg: var(--mb-text-body);
26
+ --mb-content-unavailable-max-width: 320px;
27
+ }
28
+
29
+ .mb-content-unavailable {
30
+ --mb-content-unavailable-icon-size: var(--mb-content-unavailable-icon);
31
+ --mb-content-unavailable-title-font: var(--mb-content-unavailable-title);
32
+ --mb-content-unavailable-description-font: var(--mb-content-unavailable-description);
33
+ --mb-content-unavailable-gap: var(--mb-space-3);
34
+
35
+ box-sizing: border-box;
36
+ display: flex;
37
+ flex: 1 1 auto;
38
+ flex-direction: column;
39
+ align-items: center;
40
+ justify-content: center;
41
+ align-self: stretch;
42
+ gap: var(--mb-content-unavailable-gap);
43
+ min-width: 0;
44
+ padding: var(--mb-space-8) var(--mb-space-7);
45
+ color: var(--mb-label);
46
+ text-align: center;
47
+ }
48
+
49
+ .mb-content-unavailable[data-size="sm"] {
50
+ --mb-content-unavailable-icon-size: var(--mb-content-unavailable-icon-sm);
51
+ --mb-content-unavailable-title-font: var(--mb-content-unavailable-title-sm);
52
+ --mb-content-unavailable-description-font: var(--mb-content-unavailable-description-sm);
53
+ --mb-content-unavailable-gap: var(--mb-space-2);
54
+ padding: var(--mb-space-6) var(--mb-space-5);
55
+ }
56
+
57
+ .mb-content-unavailable[data-size="lg"] {
58
+ --mb-content-unavailable-icon-size: var(--mb-content-unavailable-icon-lg);
59
+ --mb-content-unavailable-title-font: var(--mb-content-unavailable-title-lg);
60
+ --mb-content-unavailable-description-font: var(--mb-content-unavailable-description-lg);
61
+ --mb-content-unavailable-gap: var(--mb-space-4);
62
+ padding: var(--mb-space-10) var(--mb-space-8);
63
+ }
64
+
65
+ .mb-content-unavailable-icon {
66
+ display: inline-grid;
67
+ flex: none;
68
+ place-items: center;
69
+ width: var(--mb-content-unavailable-icon-size);
70
+ height: var(--mb-content-unavailable-icon-size);
71
+ margin-block-end: var(--mb-space-2);
72
+ color: var(--mb-label-secondary);
73
+ }
74
+
75
+ .mb-content-unavailable-icon > :where(svg, img) {
76
+ width: 100%;
77
+ height: 100%;
78
+ }
79
+
80
+ .mb-content-unavailable-title {
81
+ max-width: var(--mb-content-unavailable-max-width);
82
+ margin: 0;
83
+ color: var(--mb-label);
84
+ font: var(--mb-content-unavailable-title-font);
85
+ letter-spacing: var(--mb-tracking-title);
86
+ text-wrap: balance;
87
+ }
88
+
89
+ .mb-content-unavailable-description {
90
+ max-width: var(--mb-content-unavailable-max-width);
91
+ margin: 0;
92
+ color: var(--mb-label-secondary);
93
+ font: var(--mb-content-unavailable-description-font);
94
+ letter-spacing: var(--mb-tracking-body);
95
+ text-wrap: pretty;
96
+ }
97
+
98
+ .mb-content-unavailable-actions {
99
+ display: flex;
100
+ flex-wrap: wrap;
101
+ align-items: center;
102
+ justify-content: center;
103
+ gap: var(--mb-space-4);
104
+ margin-block-start: var(--mb-space-4);
105
+ }