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.
- package/LICENSE +201 -0
- package/README.md +92 -2
- package/dist/components/accessory-tile.d.ts +50 -0
- package/dist/components/accessory-tile.js +46 -0
- package/dist/components/activity-indicator.d.ts +15 -0
- package/dist/components/activity-indicator.js +15 -0
- package/dist/components/alert.d.ts +29 -0
- package/dist/components/alert.js +30 -0
- package/dist/components/artifact-card.d.ts +41 -0
- package/dist/components/artifact-card.js +57 -0
- package/dist/components/artwork.d.ts +44 -0
- package/dist/components/artwork.js +935 -0
- package/dist/components/attachment.d.ts +48 -0
- package/dist/components/attachment.js +65 -0
- package/dist/components/automation-row.d.ts +24 -0
- package/dist/components/automation-row.js +12 -0
- package/dist/components/avatar.d.ts +33 -0
- package/dist/components/avatar.js +45 -0
- package/dist/components/badge.d.ts +24 -0
- package/dist/components/badge.js +19 -0
- package/dist/components/button.d.ts +20 -0
- package/dist/components/button.js +10 -0
- package/dist/components/calendar.d.ts +30 -0
- package/dist/components/calendar.js +47 -0
- package/dist/components/camera-view.d.ts +40 -0
- package/dist/components/camera-view.js +44 -0
- package/dist/components/card.d.ts +14 -0
- package/dist/components/card.js +21 -0
- package/dist/components/carousel.d.ts +18 -0
- package/dist/components/carousel.js +33 -0
- package/dist/components/chat.d.ts +29 -0
- package/dist/components/chat.js +29 -0
- package/dist/components/checkbox.d.ts +13 -0
- package/dist/components/checkbox.js +16 -0
- package/dist/components/code-block.d.ts +39 -0
- package/dist/components/code-block.js +65 -0
- package/dist/components/code-field.d.ts +16 -0
- package/dist/components/code-field.js +29 -0
- package/dist/components/color-well.d.ts +23 -0
- package/dist/components/color-well.js +27 -0
- package/dist/components/combo-box.d.ts +42 -0
- package/dist/components/combo-box.js +102 -0
- package/dist/components/command-palette.d.ts +33 -0
- package/dist/components/command-palette.js +55 -0
- package/dist/components/confirmation.d.ts +24 -0
- package/dist/components/confirmation.js +50 -0
- package/dist/components/content-unavailable.d.ts +19 -0
- package/dist/components/content-unavailable.js +21 -0
- package/dist/components/context-menu.d.ts +9 -0
- package/dist/components/context-menu.js +15 -0
- package/dist/components/date-picker.d.ts +53 -0
- package/dist/components/date-picker.js +86 -0
- package/dist/components/description-list.d.ts +18 -0
- package/dist/components/description-list.js +17 -0
- package/dist/components/device-frame.d.ts +18 -0
- package/dist/components/device-frame.js +16 -0
- package/dist/components/dialog.d.ts +27 -0
- package/dist/components/dialog.js +35 -0
- package/dist/components/disclosure.d.ts +32 -0
- package/dist/components/disclosure.js +35 -0
- package/dist/components/dock.d.ts +28 -0
- package/dist/components/dock.js +80 -0
- package/dist/components/door-control.d.ts +20 -0
- package/dist/components/door-control.js +43 -0
- package/dist/components/energy-readout.d.ts +32 -0
- package/dist/components/energy-readout.js +27 -0
- package/dist/components/field.d.ts +28 -0
- package/dist/components/field.js +32 -0
- package/dist/components/gauge.d.ts +25 -0
- package/dist/components/gauge.js +42 -0
- package/dist/components/generated-image.d.ts +39 -0
- package/dist/components/generated-image.js +47 -0
- package/dist/components/glass.d.ts +34 -0
- package/dist/components/glass.js +31 -0
- package/dist/components/home-backdrop.d.ts +23 -0
- package/dist/components/home-backdrop.js +12 -0
- package/dist/components/home-section.d.ts +19 -0
- package/dist/components/home-section.js +21 -0
- package/dist/components/home-status.d.ts +24 -0
- package/dist/components/home-status.js +14 -0
- package/dist/components/hover-card.d.ts +14 -0
- package/dist/components/hover-card.js +16 -0
- package/dist/components/inspector.d.ts +29 -0
- package/dist/components/inspector.js +40 -0
- package/dist/components/level-control.d.ts +19 -0
- package/dist/components/level-control.js +13 -0
- package/dist/components/light-color-picker.d.ts +33 -0
- package/dist/components/light-color-picker.js +56 -0
- package/dist/components/list.d.ts +42 -0
- package/dist/components/list.js +42 -0
- package/dist/components/listbox.d.ts +16 -0
- package/dist/components/listbox.js +28 -0
- package/dist/components/lock-control.d.ts +20 -0
- package/dist/components/lock-control.js +35 -0
- package/dist/components/menu-bar.d.ts +14 -0
- package/dist/components/menu-bar.js +16 -0
- package/dist/components/menu.d.ts +40 -0
- package/dist/components/menu.js +54 -0
- package/dist/components/message.d.ts +65 -0
- package/dist/components/message.js +69 -0
- package/dist/components/model-picker.d.ts +61 -0
- package/dist/components/model-picker.js +59 -0
- package/dist/components/navigation-bar.d.ts +24 -0
- package/dist/components/navigation-bar.js +54 -0
- package/dist/components/outline.d.ts +21 -0
- package/dist/components/outline.js +40 -0
- package/dist/components/page-control.d.ts +10 -0
- package/dist/components/page-control.js +8 -0
- package/dist/components/plan.d.ts +25 -0
- package/dist/components/plan.js +43 -0
- package/dist/components/popover.d.ts +16 -0
- package/dist/components/popover.js +24 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +27 -0
- package/dist/components/prompt-input.d.ts +93 -0
- package/dist/components/prompt-input.js +172 -0
- package/dist/components/radio.d.ts +16 -0
- package/dist/components/radio.js +13 -0
- package/dist/components/rating.d.ts +10 -0
- package/dist/components/rating.js +12 -0
- package/dist/components/reasoning.d.ts +28 -0
- package/dist/components/reasoning.js +52 -0
- package/dist/components/response.d.ts +14 -0
- package/dist/components/response.js +14 -0
- package/dist/components/scene-tile.d.ts +22 -0
- package/dist/components/scene-tile.js +13 -0
- package/dist/components/scroll-view.d.ts +21 -0
- package/dist/components/scroll-view.js +13 -0
- package/dist/components/search-field.d.ts +16 -0
- package/dist/components/search-field.js +12 -0
- package/dist/components/secure-field.d.ts +23 -0
- package/dist/components/secure-field.js +21 -0
- package/dist/components/segmented-control.d.ts +12 -0
- package/dist/components/segmented-control.js +10 -0
- package/dist/components/select.d.ts +45 -0
- package/dist/components/select.js +79 -0
- package/dist/components/sensor-readout.d.ts +29 -0
- package/dist/components/sensor-readout.js +12 -0
- package/dist/components/separator.d.ts +14 -0
- package/dist/components/separator.js +11 -0
- package/dist/components/setup-code.d.ts +29 -0
- package/dist/components/setup-code.js +47 -0
- package/dist/components/sheet.d.ts +31 -0
- package/dist/components/sheet.js +51 -0
- package/dist/components/shimmer.d.ts +18 -0
- package/dist/components/shimmer.js +17 -0
- package/dist/components/sidebar.d.ts +30 -0
- package/dist/components/sidebar.js +26 -0
- package/dist/components/slider.d.ts +27 -0
- package/dist/components/slider.js +43 -0
- package/dist/components/sources.d.ts +51 -0
- package/dist/components/sources.js +46 -0
- package/dist/components/split-view.d.ts +11 -0
- package/dist/components/split-view.js +13 -0
- package/dist/components/squircle.d.ts +41 -0
- package/dist/components/squircle.js +63 -0
- package/dist/components/stepper.d.ts +30 -0
- package/dist/components/stepper.js +28 -0
- package/dist/components/suggestion.d.ts +23 -0
- package/dist/components/suggestion.js +29 -0
- package/dist/components/switch.d.ts +10 -0
- package/dist/components/switch.js +10 -0
- package/dist/components/tab-bar.d.ts +20 -0
- package/dist/components/tab-bar.js +17 -0
- package/dist/components/table.d.ts +49 -0
- package/dist/components/table.js +179 -0
- package/dist/components/tabs.d.ts +16 -0
- package/dist/components/tabs.js +19 -0
- package/dist/components/text-area.d.ts +14 -0
- package/dist/components/text-area.js +9 -0
- package/dist/components/text-field.d.ts +26 -0
- package/dist/components/text-field.js +23 -0
- package/dist/components/thermostat-control.d.ts +30 -0
- package/dist/components/thermostat-control.js +139 -0
- package/dist/components/toast.d.ts +30 -0
- package/dist/components/toast.js +114 -0
- package/dist/components/toggle.d.ts +21 -0
- package/dist/components/toggle.js +19 -0
- package/dist/components/token-field.d.ts +31 -0
- package/dist/components/token-field.js +78 -0
- package/dist/components/tool-call.d.ts +48 -0
- package/dist/components/tool-call.js +77 -0
- package/dist/components/toolbar.d.ts +27 -0
- package/dist/components/toolbar.js +39 -0
- package/dist/components/tooltip.d.ts +11 -0
- package/dist/components/tooltip.js +18 -0
- package/dist/components/window.d.ts +56 -0
- package/dist/components/window.js +61 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.js +98 -0
- package/dist/lib/agent-glyphs.d.ts +10 -0
- package/dist/lib/agent-glyphs.js +19 -0
- package/dist/lib/cx.d.ts +9 -0
- package/dist/lib/cx.js +14 -0
- package/dist/lib/derive.d.ts +53 -0
- package/dist/lib/derive.js +255 -0
- package/dist/lib/field-glyphs.d.ts +13 -0
- package/dist/lib/field-glyphs.js +28 -0
- package/dist/lib/menu-glyphs.d.ts +6 -0
- package/dist/lib/menu-glyphs.js +15 -0
- package/dist/lib/platform.d.ts +18 -0
- package/dist/lib/platform.js +17 -0
- package/dist/lib/squircle.d.ts +23 -0
- package/dist/lib/squircle.js +69 -0
- package/dist/lib/theme.d.ts +42 -0
- package/dist/lib/theme.js +62 -0
- package/dist/styles/base.css +115 -0
- package/dist/styles/components/accessory-tile.css +461 -0
- package/dist/styles/components/activity-indicator.css +63 -0
- package/dist/styles/components/alert.css +433 -0
- package/dist/styles/components/artifact-card.css +238 -0
- package/dist/styles/components/artwork.css +380 -0
- package/dist/styles/components/attachment.css +540 -0
- package/dist/styles/components/automation-row.css +52 -0
- package/dist/styles/components/avatar.css +230 -0
- package/dist/styles/components/badge.css +204 -0
- package/dist/styles/components/button.css +298 -0
- package/dist/styles/components/calendar.css +287 -0
- package/dist/styles/components/camera-view.css +239 -0
- package/dist/styles/components/card.css +100 -0
- package/dist/styles/components/carousel.css +210 -0
- package/dist/styles/components/chat.css +209 -0
- package/dist/styles/components/checkbox.css +212 -0
- package/dist/styles/components/code-block.css +162 -0
- package/dist/styles/components/code-field.css +163 -0
- package/dist/styles/components/color-well.css +452 -0
- package/dist/styles/components/combo-box.css +222 -0
- package/dist/styles/components/command-palette.css +379 -0
- package/dist/styles/components/confirmation.css +189 -0
- package/dist/styles/components/content-unavailable.css +105 -0
- package/dist/styles/components/context-menu.css +43 -0
- package/dist/styles/components/date-picker.css +356 -0
- package/dist/styles/components/description-list.css +92 -0
- package/dist/styles/components/device-frame.css +202 -0
- package/dist/styles/components/dialog.css +366 -0
- package/dist/styles/components/disclosure.css +197 -0
- package/dist/styles/components/dock.css +404 -0
- package/dist/styles/components/door-control.css +187 -0
- package/dist/styles/components/energy-readout.css +161 -0
- package/dist/styles/components/field.css +175 -0
- package/dist/styles/components/gauge.css +239 -0
- package/dist/styles/components/generated-image.css +248 -0
- package/dist/styles/components/glass.css +113 -0
- package/dist/styles/components/home-backdrop.css +81 -0
- package/dist/styles/components/home-section.css +100 -0
- package/dist/styles/components/home-status.css +215 -0
- package/dist/styles/components/hover-card.css +145 -0
- package/dist/styles/components/index.css +94 -0
- package/dist/styles/components/inspector.css +236 -0
- package/dist/styles/components/level-control.css +247 -0
- package/dist/styles/components/light-color-picker.css +94 -0
- package/dist/styles/components/list.css +411 -0
- package/dist/styles/components/listbox.css +168 -0
- package/dist/styles/components/lock-control.css +164 -0
- package/dist/styles/components/menu-bar.css +94 -0
- package/dist/styles/components/menu.css +454 -0
- package/dist/styles/components/message.css +236 -0
- package/dist/styles/components/model-picker.css +64 -0
- package/dist/styles/components/navigation-bar.css +249 -0
- package/dist/styles/components/outline.css +248 -0
- package/dist/styles/components/page-control.css +127 -0
- package/dist/styles/components/plan.css +212 -0
- package/dist/styles/components/popover.css +186 -0
- package/dist/styles/components/progress.css +228 -0
- package/dist/styles/components/prompt-input.css +503 -0
- package/dist/styles/components/radio.css +281 -0
- package/dist/styles/components/rating.css +122 -0
- package/dist/styles/components/reasoning.css +214 -0
- package/dist/styles/components/response.css +303 -0
- package/dist/styles/components/scene-tile.css +295 -0
- package/dist/styles/components/scroll-view.css +195 -0
- package/dist/styles/components/search-field.css +128 -0
- package/dist/styles/components/secure-field.css +189 -0
- package/dist/styles/components/segmented-control.css +183 -0
- package/dist/styles/components/select.css +290 -0
- package/dist/styles/components/sensor-readout.css +231 -0
- package/dist/styles/components/separator.css +62 -0
- package/dist/styles/components/setup-code.css +138 -0
- package/dist/styles/components/sheet.css +345 -0
- package/dist/styles/components/shimmer.css +60 -0
- package/dist/styles/components/sidebar.css +261 -0
- package/dist/styles/components/slider.css +208 -0
- package/dist/styles/components/sources.css +349 -0
- package/dist/styles/components/split-view.css +75 -0
- package/dist/styles/components/squircle.css +44 -0
- package/dist/styles/components/stepper.css +278 -0
- package/dist/styles/components/suggestion.css +203 -0
- package/dist/styles/components/switch.css +115 -0
- package/dist/styles/components/tab-bar.css +223 -0
- package/dist/styles/components/table.css +313 -0
- package/dist/styles/components/tabs.css +262 -0
- package/dist/styles/components/text-area.css +94 -0
- package/dist/styles/components/text-field.css +294 -0
- package/dist/styles/components/thermostat-control.css +214 -0
- package/dist/styles/components/toast.css +418 -0
- package/dist/styles/components/toggle.css +312 -0
- package/dist/styles/components/token-field.css +193 -0
- package/dist/styles/components/tool-call.css +391 -0
- package/dist/styles/components/toolbar.css +370 -0
- package/dist/styles/components/tooltip.css +69 -0
- package/dist/styles/components/window.css +428 -0
- package/dist/styles/index.css +17 -0
- package/dist/styles/materials.css +263 -0
- package/dist/styles/platforms.css +214 -0
- package/dist/styles/themes/ember.css +24 -0
- package/dist/styles/themes/graphite.css +16 -0
- package/dist/styles/themes/nebula.css +16 -0
- package/dist/styles/themes/system.css +28 -0
- package/dist/styles/tokens.css +299 -0
- package/package.json +82 -3
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/* Outline — the macOS outline view: Finder's list, with disclosure triangles that turn. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-outline-row-height: 24px;
|
|
5
|
+
--mb-outline-indent: 16px;
|
|
6
|
+
--mb-outline-padding-inline: 6px;
|
|
7
|
+
--mb-outline-inset: 8px;
|
|
8
|
+
--mb-outline-radius: var(--mb-radius-sm);
|
|
9
|
+
--mb-outline-font: 400 13px/16px var(--mb-font);
|
|
10
|
+
--mb-outline-detail-font: 400 12px/16px var(--mb-font);
|
|
11
|
+
--mb-outline-indicator: 14px;
|
|
12
|
+
--mb-outline-chevron-height: 9px;
|
|
13
|
+
--mb-outline-icon: 16px;
|
|
14
|
+
--mb-outline-gap: 5px;
|
|
15
|
+
--mb-outline-indicator-order: 0;
|
|
16
|
+
--mb-outline-indicator-color: var(--mb-label-secondary);
|
|
17
|
+
/* Where a guide hangs: under the leading triangle. */
|
|
18
|
+
--mb-outline-guide-offset: calc(var(--mb-outline-indicator) / 2);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
22
|
+
--mb-outline-row-height: 44px;
|
|
23
|
+
--mb-outline-indent: 20px;
|
|
24
|
+
--mb-outline-padding-inline: 12px;
|
|
25
|
+
--mb-outline-inset: 8px;
|
|
26
|
+
--mb-outline-radius: var(--mb-radius-md);
|
|
27
|
+
--mb-outline-font: 400 17px/22px var(--mb-font);
|
|
28
|
+
--mb-outline-detail-font: 400 15px/20px var(--mb-font);
|
|
29
|
+
--mb-outline-indicator: 20px;
|
|
30
|
+
--mb-outline-chevron-height: 13px;
|
|
31
|
+
--mb-outline-icon: 22px;
|
|
32
|
+
--mb-outline-gap: 8px;
|
|
33
|
+
/* UIKit's outline disclosure sits at the trailing edge, tinted, and turns down when open. */
|
|
34
|
+
--mb-outline-indicator-order: 1;
|
|
35
|
+
--mb-outline-indicator-color: var(--mb-accent-text);
|
|
36
|
+
--mb-outline-guide-offset: calc(var(--mb-outline-icon) / 2);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mb-outline {
|
|
40
|
+
--mb-outline-selected: light-dark(color-mix(in oklch, var(--mb-label) 16%, transparent), var(--mb-fill));
|
|
41
|
+
--mb-outline-on-selected: var(--mb-label);
|
|
42
|
+
--mb-outline-on-selected-secondary: color-mix(in oklch, var(--mb-label) 78%, transparent);
|
|
43
|
+
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
padding: var(--mb-space-2) var(--mb-outline-inset);
|
|
48
|
+
color: var(--mb-label);
|
|
49
|
+
font: var(--mb-outline-font);
|
|
50
|
+
letter-spacing: var(--mb-tracking-body);
|
|
51
|
+
user-select: none;
|
|
52
|
+
-webkit-user-select: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Selection is the accent while the outline has focus, and gray once focus leaves, as on macOS. */
|
|
56
|
+
.mb-outline:focus-within {
|
|
57
|
+
--mb-outline-selected: var(--mb-accent);
|
|
58
|
+
--mb-outline-on-selected: var(--mb-on-accent);
|
|
59
|
+
--mb-outline-on-selected-secondary: var(--mb-on-accent);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.mb-outline-item {
|
|
63
|
+
display: block;
|
|
64
|
+
outline: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mb-outline-row {
|
|
68
|
+
--mb-outline-level: calc(var(--tree-level, 1) - 1);
|
|
69
|
+
|
|
70
|
+
position: relative;
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--mb-outline-gap);
|
|
75
|
+
min-height: var(--mb-outline-row-height);
|
|
76
|
+
padding-inline: calc(var(--mb-outline-padding-inline) + var(--mb-outline-level) * var(--mb-outline-indent))
|
|
77
|
+
var(--mb-outline-padding-inline);
|
|
78
|
+
border-radius: var(--mb-outline-radius);
|
|
79
|
+
color: inherit;
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
cursor: default;
|
|
82
|
+
-webkit-tap-highlight-color: transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.mb-outline-row[data-selected] {
|
|
86
|
+
background: var(--mb-outline-selected);
|
|
87
|
+
color: var(--mb-outline-on-selected);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Adjacent selected rows read as one block, like Finder's. */
|
|
91
|
+
.mb-outline-item:has(> .mb-outline-row[data-selected])
|
|
92
|
+
+ .mb-outline-item
|
|
93
|
+
> .mb-outline-row[data-selected] {
|
|
94
|
+
border-start-start-radius: 0;
|
|
95
|
+
border-start-end-radius: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mb-outline-item:has(> .mb-outline-row[data-selected]):has(+ .mb-outline-item > .mb-outline-row[data-selected])
|
|
99
|
+
> .mb-outline-row {
|
|
100
|
+
border-end-start-radius: 0;
|
|
101
|
+
border-end-end-radius: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.mb-outline-item:focus-visible > .mb-outline-row {
|
|
105
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
106
|
+
/* Drawn inside the row: a group's overflow clip would cut a ring drawn outside it. */
|
|
107
|
+
outline-offset: calc(var(--mb-focus-ring-width) * -1);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Inside a block of selected rows the accent ring would vanish: ring the focused row in the selection's text color. */
|
|
111
|
+
.mb-outline-item:focus-visible:is(
|
|
112
|
+
:has(+ .mb-outline-item > .mb-outline-row[data-selected]),
|
|
113
|
+
.mb-outline-item:has(> .mb-outline-row[data-selected]) + *
|
|
114
|
+
)
|
|
115
|
+
> .mb-outline-row[data-selected] {
|
|
116
|
+
outline: 2px solid var(--mb-outline-on-selected);
|
|
117
|
+
outline-offset: -3px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
|
|
121
|
+
.mb-outline-row:active:not([data-selected]) {
|
|
122
|
+
background: var(--mb-fill-tertiary);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.mb-outline-row[data-disabled] {
|
|
127
|
+
opacity: 0.45;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.mb-outline-indicator {
|
|
131
|
+
flex: none;
|
|
132
|
+
display: grid;
|
|
133
|
+
place-items: center;
|
|
134
|
+
width: var(--mb-outline-indicator);
|
|
135
|
+
height: var(--mb-outline-indicator);
|
|
136
|
+
order: var(--mb-outline-indicator-order);
|
|
137
|
+
margin-inline-end: calc(var(--mb-outline-gap) * -0.4);
|
|
138
|
+
color: var(--mb-outline-indicator-color);
|
|
139
|
+
transition: rotate var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.mb-outline-indicator:not([data-branch]) {
|
|
143
|
+
visibility: hidden;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.mb-outline-indicator[data-expanded] {
|
|
147
|
+
rotate: 90deg;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* In right to left the closed triangle points left, so it turns the other way to point down. */
|
|
151
|
+
:where([dir="rtl"]) .mb-outline-indicator svg {
|
|
152
|
+
scale: -1 1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:where([dir="rtl"]) .mb-outline-indicator[data-expanded] {
|
|
156
|
+
rotate: -90deg;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@scope ([data-platform="ios"], [data-platform="ipados"]) to (:scope [data-platform]) {
|
|
160
|
+
.mb-outline-indicator {
|
|
161
|
+
margin-inline: 0 calc(var(--mb-outline-gap) * -0.25);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.mb-outline-indicator svg {
|
|
166
|
+
width: calc(var(--mb-outline-chevron-height) * 0.58);
|
|
167
|
+
height: var(--mb-outline-chevron-height);
|
|
168
|
+
overflow: visible;
|
|
169
|
+
fill: none;
|
|
170
|
+
stroke: currentColor;
|
|
171
|
+
stroke-width: 1.8;
|
|
172
|
+
stroke-linecap: round;
|
|
173
|
+
stroke-linejoin: round;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.mb-outline-row[data-selected] .mb-outline-indicator {
|
|
177
|
+
color: inherit;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.mb-outline-icon {
|
|
181
|
+
flex: none;
|
|
182
|
+
display: grid;
|
|
183
|
+
place-items: center;
|
|
184
|
+
width: var(--mb-outline-icon);
|
|
185
|
+
height: var(--mb-outline-icon);
|
|
186
|
+
color: var(--mb-outline-icon-color, var(--mb-accent-text));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.mb-outline-icon :where(svg) {
|
|
190
|
+
width: 100%;
|
|
191
|
+
height: 100%;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.mb-outline-row[data-selected] .mb-outline-icon {
|
|
195
|
+
color: inherit;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mb-outline-text {
|
|
199
|
+
flex: 1;
|
|
200
|
+
min-width: 0;
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
text-overflow: ellipsis;
|
|
203
|
+
white-space: nowrap;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.mb-outline-detail {
|
|
207
|
+
flex: none;
|
|
208
|
+
margin-inline-start: auto;
|
|
209
|
+
padding-inline-start: var(--mb-space-5);
|
|
210
|
+
color: var(--mb-label-secondary);
|
|
211
|
+
font: var(--mb-outline-detail-font);
|
|
212
|
+
font-variant-numeric: tabular-nums;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.mb-outline-row[data-selected] .mb-outline-detail {
|
|
216
|
+
color: var(--mb-outline-on-selected-secondary);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.mb-outline-group {
|
|
220
|
+
position: relative;
|
|
221
|
+
height: var(--tree-group-height, auto);
|
|
222
|
+
overflow: hidden;
|
|
223
|
+
transition: height var(--mb-spring-smooth-duration) var(--mb-spring-smooth);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.mb-outline-group:is([data-starting-style], [data-ending-style]) {
|
|
227
|
+
height: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.mb-outline-group[data-ending-style] {
|
|
231
|
+
transition-duration: var(--mb-duration-base);
|
|
232
|
+
transition-timing-function: var(--mb-ease-out);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.mb-outline[data-guides] .mb-outline-group::before {
|
|
236
|
+
content: "";
|
|
237
|
+
position: absolute;
|
|
238
|
+
z-index: 1;
|
|
239
|
+
inset-block: 2px;
|
|
240
|
+
inset-inline-start: calc(
|
|
241
|
+
var(--mb-outline-padding-inline) + (var(--tree-level, 1) - 1) * var(--mb-outline-indent) +
|
|
242
|
+
var(--mb-outline-guide-offset)
|
|
243
|
+
);
|
|
244
|
+
width: 1px;
|
|
245
|
+
background: var(--mb-separator);
|
|
246
|
+
pointer-events: none;
|
|
247
|
+
}
|
|
248
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/* Page Control — a row of dots that shows which page of a set is on screen. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-page-control-dot: 7px;
|
|
5
|
+
--mb-page-control-spacing: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
9
|
+
--mb-page-control-dot: 8px;
|
|
10
|
+
--mb-page-control-spacing: 17px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.mb-page-control {
|
|
14
|
+
--mb-page-control-current: var(--mb-label);
|
|
15
|
+
/* Darker than UIKit's 30% so the idle dots hold 3:1, like every other control edge (and Carousel's dots). */
|
|
16
|
+
--mb-page-control-other: var(--mb-control-border);
|
|
17
|
+
--mb-page-control-hover: light-dark(
|
|
18
|
+
color-mix(in oklch, var(--mb-label) 62%, transparent),
|
|
19
|
+
color-mix(in oklch, var(--mb-label) 60%, transparent)
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
flex: none;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mb-page-control-list {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 0 calc(var(--mb-page-control-spacing) / 4);
|
|
32
|
+
list-style: none;
|
|
33
|
+
border-radius: var(--mb-radius-full);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.mb-page-control-item {
|
|
37
|
+
display: flex;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.mb-page-control-dot {
|
|
41
|
+
position: relative;
|
|
42
|
+
display: grid;
|
|
43
|
+
place-items: center;
|
|
44
|
+
width: var(--mb-page-control-spacing);
|
|
45
|
+
height: calc(var(--mb-page-control-spacing) + 10px);
|
|
46
|
+
margin: 0;
|
|
47
|
+
padding: 0;
|
|
48
|
+
border: 0;
|
|
49
|
+
border-radius: var(--mb-radius-full);
|
|
50
|
+
background: transparent;
|
|
51
|
+
color: inherit;
|
|
52
|
+
cursor: default;
|
|
53
|
+
touch-action: manipulation;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.mb-page-control-dot-mark {
|
|
57
|
+
width: var(--mb-page-control-dot);
|
|
58
|
+
height: var(--mb-page-control-dot);
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
background: var(--mb-page-control-other);
|
|
61
|
+
transition:
|
|
62
|
+
background-color var(--mb-duration-base) var(--mb-ease-out),
|
|
63
|
+
scale var(--mb-spring-snappy-duration) var(--mb-spring-snappy);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mb-page-control-dot[data-current] .mb-page-control-dot-mark {
|
|
67
|
+
background: var(--mb-page-control-current);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (hover: hover) and (pointer: fine) {
|
|
71
|
+
.mb-page-control-dot:not([data-current]):hover .mb-page-control-dot-mark {
|
|
72
|
+
background: var(--mb-page-control-hover);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.mb-page-control-dot:active .mb-page-control-dot-mark {
|
|
77
|
+
scale: 0.8;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.mb-page-control-dot:focus-visible {
|
|
81
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
82
|
+
outline-offset: -4px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Glass: the dots on a capsule that keeps them legible over photos. */
|
|
86
|
+
.mb-page-control[data-variant="glass"] {
|
|
87
|
+
--mb-page-control-current: #ffffff;
|
|
88
|
+
--mb-page-control-other: rgb(255 255 255 / 0.55);
|
|
89
|
+
--mb-page-control-hover: rgb(255 255 255 / 0.75);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.mb-page-control[data-variant="glass"] .mb-page-control-list {
|
|
93
|
+
padding-inline: calc(var(--mb-page-control-spacing) / 2 - 2px);
|
|
94
|
+
background: rgb(0 0 0 / 0.3);
|
|
95
|
+
-webkit-backdrop-filter: blur(18px) saturate(180%);
|
|
96
|
+
backdrop-filter: blur(18px) saturate(180%);
|
|
97
|
+
box-shadow:
|
|
98
|
+
inset 0 0.5px 0 rgb(255 255 255 / 0.22),
|
|
99
|
+
inset 0 0 0 0.5px rgb(255 255 255 / 0.1);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* The accent ring disappears into a dark capsule over a photo; white holds 3:1 there. */
|
|
103
|
+
.mb-page-control[data-variant="glass"] .mb-page-control-dot:focus-visible {
|
|
104
|
+
outline-color: rgb(255 255 255 / 0.9);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.mb-page-control[data-variant="glass"] .mb-page-control-dot {
|
|
108
|
+
height: calc(var(--mb-page-control-spacing) + 4px);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (prefers-contrast: more) {
|
|
112
|
+
.mb-page-control[data-variant="glass"] .mb-page-control-list {
|
|
113
|
+
background: rgb(0 0 0 / 0.72);
|
|
114
|
+
-webkit-backdrop-filter: none;
|
|
115
|
+
backdrop-filter: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
120
|
+
:where(:root:not([data-transparency="full"])) {
|
|
121
|
+
.mb-page-control[data-variant="glass"] .mb-page-control-list {
|
|
122
|
+
background: rgb(0 0 0 / 0.72);
|
|
123
|
+
-webkit-backdrop-filter: none;
|
|
124
|
+
backdrop-filter: none;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/* Plan — a task list for multi-step work, with a marker for each step's status. */
|
|
2
|
+
|
|
3
|
+
:where(:root, [data-platform="macos"]) {
|
|
4
|
+
--mb-plan-font: var(--mb-text-body);
|
|
5
|
+
--mb-plan-detail-font: var(--mb-text-callout);
|
|
6
|
+
--mb-plan-title-font: var(--mb-text-headline);
|
|
7
|
+
--mb-plan-marker-size: 16px;
|
|
8
|
+
--mb-plan-marker-stroke: 1.5px;
|
|
9
|
+
--mb-plan-gap: 10px;
|
|
10
|
+
--mb-plan-step-padding: 5px;
|
|
11
|
+
--mb-plan-header-space: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where([data-platform="ios"], [data-platform="ipados"]) {
|
|
15
|
+
--mb-plan-font: var(--mb-text-body);
|
|
16
|
+
--mb-plan-detail-font: var(--mb-text-subheadline);
|
|
17
|
+
--mb-plan-title-font: var(--mb-text-headline);
|
|
18
|
+
--mb-plan-marker-size: 22px;
|
|
19
|
+
--mb-plan-marker-stroke: 1.75px;
|
|
20
|
+
--mb-plan-gap: 12px;
|
|
21
|
+
--mb-plan-step-padding: 8px;
|
|
22
|
+
--mb-plan-header-space: 6px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.mb-plan {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
color: var(--mb-label);
|
|
30
|
+
font: var(--mb-plan-font);
|
|
31
|
+
letter-spacing: var(--mb-tracking-body);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mb-plan-header {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: baseline;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
gap: var(--mb-space-5);
|
|
39
|
+
margin-block-end: var(--mb-plan-header-space);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.mb-plan-heading {
|
|
43
|
+
min-width: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.mb-plan-title {
|
|
47
|
+
color: var(--mb-label);
|
|
48
|
+
font: var(--mb-plan-title-font);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mb-plan-progress {
|
|
52
|
+
flex: none;
|
|
53
|
+
color: var(--mb-label-secondary);
|
|
54
|
+
font: var(--mb-plan-detail-font);
|
|
55
|
+
font-variant-numeric: tabular-nums;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mb-plan-steps {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.mb-plan-step {
|
|
65
|
+
position: relative;
|
|
66
|
+
display: grid;
|
|
67
|
+
grid-template-columns: var(--mb-plan-marker-size) minmax(0, 1fr);
|
|
68
|
+
column-gap: var(--mb-plan-gap);
|
|
69
|
+
align-items: start;
|
|
70
|
+
padding-block: var(--mb-plan-step-padding);
|
|
71
|
+
border-radius: var(--mb-radius-sm);
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.mb-plan-step:focus-visible {
|
|
76
|
+
outline: var(--mb-focus-ring-width) solid var(--mb-focus-ring);
|
|
77
|
+
outline-offset: 1px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* ── Markers ─────────────────────────────────────────────────── */
|
|
81
|
+
|
|
82
|
+
.mb-plan-marker {
|
|
83
|
+
position: relative;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
display: grid;
|
|
86
|
+
grid-row: 1;
|
|
87
|
+
grid-column: 1;
|
|
88
|
+
place-items: center;
|
|
89
|
+
width: var(--mb-plan-marker-size);
|
|
90
|
+
height: var(--mb-plan-marker-size);
|
|
91
|
+
/* Centered on the title's first line. */
|
|
92
|
+
margin-block-start: calc((1lh - var(--mb-plan-marker-size)) / 2);
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
box-shadow: inset 0 0 0 var(--mb-plan-marker-stroke) var(--mb-label-secondary);
|
|
95
|
+
color: var(--mb-label-secondary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mb-plan-glyph {
|
|
99
|
+
width: 78%;
|
|
100
|
+
height: 78%;
|
|
101
|
+
fill: none;
|
|
102
|
+
stroke: currentColor;
|
|
103
|
+
stroke-width: 2;
|
|
104
|
+
stroke-linecap: round;
|
|
105
|
+
stroke-linejoin: round;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.mb-plan-marker[data-status="done"] {
|
|
109
|
+
background: var(--mb-accent);
|
|
110
|
+
box-shadow: none;
|
|
111
|
+
color: var(--mb-on-accent);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.mb-plan-marker[data-status="done"] .mb-plan-glyph {
|
|
115
|
+
stroke-width: 2.2;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.mb-plan-marker[data-status="active"] {
|
|
119
|
+
box-shadow: inset 0 0 0 var(--mb-plan-marker-stroke) color-mix(in oklch, var(--mb-accent) 30%, transparent);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* The active step's ring: an accent arc that keeps turning, slower under Reduce Motion. */
|
|
123
|
+
.mb-plan-ring {
|
|
124
|
+
position: absolute;
|
|
125
|
+
inset: 0;
|
|
126
|
+
border: var(--mb-plan-marker-stroke) solid transparent;
|
|
127
|
+
border-block-start-color: var(--mb-accent);
|
|
128
|
+
border-inline-end-color: var(--mb-accent);
|
|
129
|
+
border-radius: 50%;
|
|
130
|
+
animation: mb-plan-spin 0.9s linear infinite;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.mb-plan-marker[data-status="active"]::after {
|
|
134
|
+
content: "";
|
|
135
|
+
width: 36%;
|
|
136
|
+
height: 36%;
|
|
137
|
+
border-radius: 50%;
|
|
138
|
+
background: var(--mb-accent);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@keyframes mb-plan-spin {
|
|
142
|
+
to {
|
|
143
|
+
rotate: 360deg;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@media (prefers-reduced-motion: reduce) {
|
|
148
|
+
:where(:root:not([data-motion="full"])) {
|
|
149
|
+
.mb-plan-ring {
|
|
150
|
+
animation-duration: 2.4s;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* ── The line between markers ────────────────────────────────── */
|
|
156
|
+
|
|
157
|
+
.mb-plan-connector {
|
|
158
|
+
position: absolute;
|
|
159
|
+
inset-block-start: calc(var(--mb-plan-step-padding) + (1lh + var(--mb-plan-marker-size)) / 2 + 3px);
|
|
160
|
+
inset-block-end: calc(3px - var(--mb-plan-step-padding) - (1lh - var(--mb-plan-marker-size)) / 2);
|
|
161
|
+
inset-inline-start: calc(var(--mb-plan-marker-size) / 2 - 0.75px);
|
|
162
|
+
width: 1.5px;
|
|
163
|
+
border-radius: 1px;
|
|
164
|
+
background: var(--mb-separator-strong);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.mb-plan-step:is([data-last], :last-child) > .mb-plan-connector {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.mb-plan-step[data-status="done"] > .mb-plan-connector {
|
|
172
|
+
background: color-mix(in oklch, var(--mb-accent) 55%, transparent);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* ── Text ────────────────────────────────────────────────────── */
|
|
176
|
+
|
|
177
|
+
.mb-plan-step-title {
|
|
178
|
+
grid-row: 1;
|
|
179
|
+
grid-column: 2;
|
|
180
|
+
min-width: 0;
|
|
181
|
+
color: var(--mb-label);
|
|
182
|
+
overflow-wrap: break-word;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.mb-plan-step[data-status="active"] > .mb-plan-step-title {
|
|
186
|
+
font-weight: 600;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.mb-plan-step:is([data-status="done"], [data-status="skipped"]) > .mb-plan-step-title {
|
|
190
|
+
color: var(--mb-label-secondary);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mb-plan-step[data-status="skipped"] > .mb-plan-step-title {
|
|
194
|
+
text-decoration: line-through;
|
|
195
|
+
text-decoration-color: color-mix(in oklch, currentColor 60%, transparent);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mb-plan-step-detail {
|
|
199
|
+
grid-row: 2;
|
|
200
|
+
grid-column: 2;
|
|
201
|
+
min-width: 0;
|
|
202
|
+
margin-block-start: 1px;
|
|
203
|
+
color: var(--mb-label-secondary);
|
|
204
|
+
font: var(--mb-plan-detail-font);
|
|
205
|
+
overflow-wrap: break-word;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@media (forced-colors: active) {
|
|
209
|
+
.mb-plan-marker {
|
|
210
|
+
border: 1px solid CanvasText;
|
|
211
|
+
}
|
|
212
|
+
}
|