@fungi.computer/caps 0.0.0-stage → 0.0.1
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 +21 -0
- package/README.md +1125 -2
- package/dist/blocks/app-bar.d.ts +43 -0
- package/dist/blocks/app-bar.js +244 -0
- package/dist/blocks/app-status-bar.d.ts +93 -0
- package/dist/blocks/app-status-bar.js +42 -0
- package/dist/blocks/async-state.d.ts +21 -0
- package/dist/blocks/async-state.js +8 -0
- package/dist/blocks/card-grid.d.ts +11 -0
- package/dist/blocks/card-grid.js +21 -0
- package/dist/blocks/command-menu.d.ts +26 -0
- package/dist/blocks/command-menu.js +70 -0
- package/dist/blocks/composer.d.ts +23 -0
- package/dist/blocks/composer.js +13 -0
- package/dist/blocks/empty-state.d.ts +59 -0
- package/dist/blocks/empty-state.js +35 -0
- package/dist/blocks/faq-chat.d.ts +62 -0
- package/dist/blocks/faq-chat.js +77 -0
- package/dist/blocks/game-share-card.d.ts +17 -0
- package/dist/blocks/game-share-card.js +9 -0
- package/dist/blocks/launcher-grid.d.ts +50 -0
- package/dist/blocks/launcher-grid.js +11 -0
- package/dist/blocks/listing-detail.d.ts +23 -0
- package/dist/blocks/listing-detail.js +12 -0
- package/dist/blocks/loading-state.d.ts +5 -0
- package/dist/blocks/loading-state.js +8 -0
- package/dist/blocks/mosaic.d.ts +29 -0
- package/dist/blocks/mosaic.js +19 -0
- package/dist/blocks/permission-grid.d.ts +45 -0
- package/dist/blocks/permission-grid.js +14 -0
- package/dist/blocks/pricing-card.d.ts +53 -0
- package/dist/blocks/pricing-card.js +12 -0
- package/dist/blocks/release-tag.d.ts +20 -0
- package/dist/blocks/release-tag.js +10 -0
- package/dist/blocks/resource-select.d.ts +22 -0
- package/dist/blocks/resource-select.js +16 -0
- package/dist/blocks/result-state.d.ts +15 -0
- package/dist/blocks/result-state.js +8 -0
- package/dist/blocks/section-card.d.ts +31 -0
- package/dist/blocks/section-card.js +7 -0
- package/dist/blocks/section-heading.d.ts +13 -0
- package/dist/blocks/section-heading.js +11 -0
- package/dist/blocks/spec-sheet.d.ts +125 -0
- package/dist/blocks/spec-sheet.js +47 -0
- package/dist/blocks/status-tray.d.ts +83 -0
- package/dist/blocks/status-tray.js +79 -0
- package/dist/blocks/upload-queue.d.ts +48 -0
- package/dist/blocks/upload-queue.js +24 -0
- package/dist/components/action-row.d.ts +16 -0
- package/dist/components/action-row.js +11 -0
- package/dist/components/activity-line.d.ts +33 -0
- package/dist/components/activity-line.js +69 -0
- package/dist/components/alert.d.ts +17 -0
- package/dist/components/alert.js +17 -0
- package/dist/components/badge.d.ts +19 -0
- package/dist/components/badge.js +24 -0
- package/dist/components/button.d.ts +55 -0
- package/dist/components/button.js +230 -0
- package/dist/components/card.d.ts +61 -0
- package/dist/components/card.js +48 -0
- package/dist/components/chat-bubble.d.ts +34 -0
- package/dist/components/chat-bubble.js +10 -0
- package/dist/components/checkbox-bead.d.ts +6 -0
- package/dist/components/checkbox-bead.js +67 -0
- package/dist/components/checkbox.d.ts +21 -0
- package/dist/components/checkbox.js +46 -0
- package/dist/components/code-input.d.ts +35 -0
- package/dist/components/code-input.js +126 -0
- package/dist/components/combobox.d.ts +86 -0
- package/dist/components/combobox.js +218 -0
- package/dist/components/confirm-action.d.ts +23 -0
- package/dist/components/confirm-action.js +64 -0
- package/dist/components/copy-field.d.ts +53 -0
- package/dist/components/copy-field.js +49 -0
- package/dist/components/count-badge.d.ts +15 -0
- package/dist/components/count-badge.js +9 -0
- package/dist/components/cover-pattern.d.ts +19 -0
- package/dist/components/cover-pattern.js +74 -0
- package/dist/components/data-list.d.ts +25 -0
- package/dist/components/data-list.js +16 -0
- package/dist/components/dialog.d.ts +39 -0
- package/dist/components/dialog.js +73 -0
- package/dist/components/diff-view.d.ts +14 -0
- package/dist/components/diff-view.js +13 -0
- package/dist/components/disclosure.d.ts +29 -0
- package/dist/components/disclosure.js +19 -0
- package/dist/components/dropdown-menu.d.ts +49 -0
- package/dist/components/dropdown-menu.js +98 -0
- package/dist/components/field-guide.d.ts +41 -0
- package/dist/components/field-guide.js +18 -0
- package/dist/components/field.d.ts +164 -0
- package/dist/components/field.js +228 -0
- package/dist/components/game-feedback.d.ts +84 -0
- package/dist/components/game-feedback.js +48 -0
- package/dist/components/game-hud.d.ts +126 -0
- package/dist/components/game-hud.js +136 -0
- package/dist/components/generation-frame.d.ts +36 -0
- package/dist/components/generation-frame.js +97 -0
- package/dist/components/gooey.d.ts +32 -0
- package/dist/components/gooey.js +25 -0
- package/dist/components/hold-button.d.ts +26 -0
- package/dist/components/hold-button.js +115 -0
- package/dist/components/icon-button.d.ts +24 -0
- package/dist/components/icon-button.js +18 -0
- package/dist/components/icon-checkbox.d.ts +20 -0
- package/dist/components/icon-checkbox.js +9 -0
- package/dist/components/icon-choice-mark.d.ts +6 -0
- package/dist/components/icon-choice-mark.js +5 -0
- package/dist/components/icon-lamp.d.ts +42 -0
- package/dist/components/icon-lamp.js +15 -0
- package/dist/components/icon-radio.d.ts +16 -0
- package/dist/components/icon-radio.js +9 -0
- package/dist/components/inline-code.d.ts +3 -0
- package/dist/components/inline-code.js +7 -0
- package/dist/components/input-group.d.ts +9 -0
- package/dist/components/input-group.js +15 -0
- package/dist/components/input.d.ts +15 -0
- package/dist/components/input.js +15 -0
- package/dist/components/item-grid.d.ts +110 -0
- package/dist/components/item-grid.js +136 -0
- package/dist/components/keycap.d.ts +80 -0
- package/dist/components/keycap.js +18 -0
- package/dist/components/label.d.ts +13 -0
- package/dist/components/label.js +7 -0
- package/dist/components/listbox.d.ts +50 -0
- package/dist/components/listbox.js +134 -0
- package/dist/components/loader-blobs.d.ts +5 -0
- package/dist/components/loader-blobs.js +128 -0
- package/dist/components/loader.d.ts +21 -0
- package/dist/components/loader.js +25 -0
- package/dist/components/markdown.d.ts +23 -0
- package/dist/components/markdown.js +70 -0
- package/dist/components/minimap-labels.d.ts +39 -0
- package/dist/components/minimap-labels.js +113 -0
- package/dist/components/monogram.d.ts +32 -0
- package/dist/components/monogram.js +24 -0
- package/dist/components/motion-visibility.d.ts +2 -0
- package/dist/components/motion-visibility.js +25 -0
- package/dist/components/navigation-rail.d.ts +11 -0
- package/dist/components/navigation-rail.js +55 -0
- package/dist/components/overlay-root.d.ts +16 -0
- package/dist/components/overlay-root.js +24 -0
- package/dist/components/pixel-number.d.ts +50 -0
- package/dist/components/pixel-number.js +113 -0
- package/dist/components/popover.d.ts +31 -0
- package/dist/components/popover.js +24 -0
- package/dist/components/presence.d.ts +59 -0
- package/dist/components/presence.js +232 -0
- package/dist/components/price-tag.d.ts +11 -0
- package/dist/components/price-tag.js +6 -0
- package/dist/components/progress.d.ts +25 -0
- package/dist/components/progress.js +24 -0
- package/dist/components/prose.d.ts +14 -0
- package/dist/components/prose.js +10 -0
- package/dist/components/quota-meter.d.ts +24 -0
- package/dist/components/quota-meter.js +11 -0
- package/dist/components/radio-bead.d.ts +4 -0
- package/dist/components/radio-bead.js +53 -0
- package/dist/components/radio-group.d.ts +54 -0
- package/dist/components/radio-group.js +64 -0
- package/dist/components/resize-handle.d.ts +23 -0
- package/dist/components/resize-handle.js +31 -0
- package/dist/components/rough-drawing.d.ts +42 -0
- package/dist/components/rough-drawing.js +231 -0
- package/dist/components/rough.d.ts +68 -0
- package/dist/components/rough.js +33 -0
- package/dist/components/scroll-area.d.ts +12 -0
- package/dist/components/scroll-area.js +96 -0
- package/dist/components/scroll-motion.d.ts +12 -0
- package/dist/components/scroll-motion.js +31 -0
- package/dist/components/scroll-to-bottom-blob-state.d.ts +40 -0
- package/dist/components/scroll-to-bottom-blob-state.js +109 -0
- package/dist/components/scroll-to-bottom-blob.d.ts +16 -0
- package/dist/components/scroll-to-bottom-blob.js +174 -0
- package/dist/components/select.d.ts +9 -0
- package/dist/components/select.js +12 -0
- package/dist/components/selectable.d.ts +13 -0
- package/dist/components/selectable.js +45 -0
- package/dist/components/send-action.d.ts +33 -0
- package/dist/components/send-action.js +96 -0
- package/dist/components/separator.d.ts +11 -0
- package/dist/components/separator.js +7 -0
- package/dist/components/skeleton.d.ts +5 -0
- package/dist/components/skeleton.js +7 -0
- package/dist/components/slider.d.ts +18 -0
- package/dist/components/slider.js +31 -0
- package/dist/components/stat.d.ts +17 -0
- package/dist/components/stat.js +7 -0
- package/dist/components/status-bead.d.ts +9 -0
- package/dist/components/status-bead.js +107 -0
- package/dist/components/status-mark.d.ts +12 -0
- package/dist/components/status-mark.js +177 -0
- package/dist/components/status.d.ts +38 -0
- package/dist/components/status.js +28 -0
- package/dist/components/store-card.d.ts +21 -0
- package/dist/components/store-card.js +10 -0
- package/dist/components/surface.d.ts +89 -0
- package/dist/components/surface.js +31 -0
- package/dist/components/switch-bead.d.ts +4 -0
- package/dist/components/switch-bead.js +62 -0
- package/dist/components/switch.d.ts +11 -0
- package/dist/components/switch.js +36 -0
- package/dist/components/tabs.d.ts +55 -0
- package/dist/components/tabs.js +81 -0
- package/dist/components/technonomicon.d.ts +192 -0
- package/dist/components/technonomicon.js +121 -0
- package/dist/components/textarea.d.ts +9 -0
- package/dist/components/textarea.js +11 -0
- package/dist/components/toaster.d.ts +4 -0
- package/dist/components/toaster.js +13 -0
- package/dist/components/tool-call-chip.d.ts +22 -0
- package/dist/components/tool-call-chip.js +100 -0
- package/dist/components/tooltip.d.ts +41 -0
- package/dist/components/tooltip.js +169 -0
- package/dist/components/trading-card.d.ts +60 -0
- package/dist/components/trading-card.js +13 -0
- package/dist/components/undo-action.d.ts +52 -0
- package/dist/components/undo-action.js +100 -0
- package/dist/components/undo-toast.d.ts +21 -0
- package/dist/components/undo-toast.js +58 -0
- package/dist/components/visually-hidden.d.ts +9 -0
- package/dist/components/visually-hidden.js +11 -0
- package/dist/components/window.d.ts +65 -0
- package/dist/components/window.js +31 -0
- package/dist/components/wizard.d.ts +17 -0
- package/dist/components/wizard.js +19 -0
- package/dist/enhance/cigarette-card.d.ts +8 -0
- package/dist/enhance/cigarette-card.js +33 -0
- package/dist/enhance/sketch.d.ts +16 -0
- package/dist/enhance/sketch.js +130 -0
- package/dist/form-error.d.ts +7 -0
- package/dist/form-error.js +14 -0
- package/dist/form-fields.d.ts +15 -0
- package/dist/form-fields.js +250 -0
- package/dist/form-schema.d.ts +166 -0
- package/dist/form-schema.js +398 -0
- package/dist/form.d.ts +30 -0
- package/dist/form.js +20 -0
- package/dist/lib/cn.d.ts +8 -0
- package/dist/lib/cn.js +12 -0
- package/dist/lib/format-money.d.ts +2 -0
- package/dist/lib/format-money.js +22 -0
- package/dist/lib/glide.d.ts +12 -0
- package/dist/lib/glide.js +143 -0
- package/dist/lib/ime.d.ts +3 -0
- package/dist/lib/ime.js +8 -0
- package/dist/lib/motion-spring.d.ts +27 -0
- package/dist/lib/motion-spring.js +36 -0
- package/dist/lib/motion.d.ts +51 -0
- package/dist/lib/motion.js +161 -0
- package/dist/lib/reorder-motion.d.ts +13 -0
- package/dist/lib/reorder-motion.js +201 -0
- package/dist/lib/seed-hash.d.ts +6 -0
- package/dist/lib/seed-hash.js +13 -0
- package/dist/lib/tanstack-highlight.d.ts +4 -0
- package/dist/lib/tanstack-highlight.js +41 -0
- package/dist/schema-form.d.ts +120 -0
- package/dist/schema-form.js +129 -0
- package/dist/styles.css +18814 -0
- package/docs/api/README.md +134 -0
- package/docs/api/blocks/app-bar.md +227 -0
- package/docs/api/blocks/app-status-bar.md +257 -0
- package/docs/api/blocks/async-state.md +53 -0
- package/docs/api/blocks/card-grid.md +31 -0
- package/docs/api/blocks/command-menu.md +89 -0
- package/docs/api/blocks/composer.md +40 -0
- package/docs/api/blocks/empty-state.md +97 -0
- package/docs/api/blocks/faq-chat.md +147 -0
- package/docs/api/blocks/game-share-card.md +40 -0
- package/docs/api/blocks/launcher-grid.md +86 -0
- package/docs/api/blocks/listing-detail.md +51 -0
- package/docs/api/blocks/loading-state.md +21 -0
- package/docs/api/blocks/mosaic.md +94 -0
- package/docs/api/blocks/permission-grid.md +79 -0
- package/docs/api/blocks/pricing-card.md +90 -0
- package/docs/api/blocks/release-tag.md +62 -0
- package/docs/api/blocks/resource-select.md +126 -0
- package/docs/api/blocks/result-state.md +42 -0
- package/docs/api/blocks/section-card.md +42 -0
- package/docs/api/blocks/section-heading.md +61 -0
- package/docs/api/blocks/spec-sheet.md +400 -0
- package/docs/api/blocks/status-tray.md +141 -0
- package/docs/api/blocks/upload-queue.md +110 -0
- package/docs/api/components/action-row.md +51 -0
- package/docs/api/components/activity-line.md +103 -0
- package/docs/api/components/alert.md +60 -0
- package/docs/api/components/badge.md +77 -0
- package/docs/api/components/button.md +94 -0
- package/docs/api/components/card.md +165 -0
- package/docs/api/components/chat-bubble.md +66 -0
- package/docs/api/components/checkbox-bead.md +20 -0
- package/docs/api/components/checkbox.md +42 -0
- package/docs/api/components/code-input.md +61 -0
- package/docs/api/components/combobox.md +303 -0
- package/docs/api/components/confirm-action.md +58 -0
- package/docs/api/components/copy-field.md +106 -0
- package/docs/api/components/count-badge.md +39 -0
- package/docs/api/components/cover-pattern.md +43 -0
- package/docs/api/components/data-list.md +80 -0
- package/docs/api/components/dialog.md +235 -0
- package/docs/api/components/diff-view.md +59 -0
- package/docs/api/components/disclosure.md +71 -0
- package/docs/api/components/dropdown-menu.md +269 -0
- package/docs/api/components/field-guide.md +174 -0
- package/docs/api/components/field.md +252 -0
- package/docs/api/components/game-feedback.md +157 -0
- package/docs/api/components/game-hud.md +359 -0
- package/docs/api/components/generation-frame.md +59 -0
- package/docs/api/components/hold-button.md +44 -0
- package/docs/api/components/icon-button.md +56 -0
- package/docs/api/components/icon-checkbox.md +42 -0
- package/docs/api/components/icon-choice-mark.md +31 -0
- package/docs/api/components/icon-lamp.md +92 -0
- package/docs/api/components/icon-radio.md +42 -0
- package/docs/api/components/inline-code.md +21 -0
- package/docs/api/components/input-group.md +53 -0
- package/docs/api/components/input.md +54 -0
- package/docs/api/components/item-grid.md +262 -0
- package/docs/api/components/keycap.md +102 -0
- package/docs/api/components/label.md +40 -0
- package/docs/api/components/listbox.md +131 -0
- package/docs/api/components/loader-blobs.md +9 -0
- package/docs/api/components/loader.md +51 -0
- package/docs/api/components/markdown.md +91 -0
- package/docs/api/components/minimap-labels.md +84 -0
- package/docs/api/components/monogram.md +96 -0
- package/docs/api/components/motion-visibility.md +9 -0
- package/docs/api/components/navigation-rail.md +37 -0
- package/docs/api/components/overlay-root.md +92 -0
- package/docs/api/components/pixel-number.md +120 -0
- package/docs/api/components/popover.md +80 -0
- package/docs/api/components/presence.md +106 -0
- package/docs/api/components/price-tag.md +48 -0
- package/docs/api/components/progress.md +90 -0
- package/docs/api/components/prose.md +48 -0
- package/docs/api/components/quota-meter.md +47 -0
- package/docs/api/components/radio-bead.md +9 -0
- package/docs/api/components/radio-group.md +126 -0
- package/docs/api/components/resize-handle.md +46 -0
- package/docs/api/components/rough-drawing.md +122 -0
- package/docs/api/components/rough.md +66 -0
- package/docs/api/components/scroll-area.md +22 -0
- package/docs/api/components/scroll-motion.md +9 -0
- package/docs/api/components/scroll-to-bottom-blob-state.md +162 -0
- package/docs/api/components/scroll-to-bottom-blob.md +73 -0
- package/docs/api/components/select.md +39 -0
- package/docs/api/components/send-action.md +58 -0
- package/docs/api/components/separator.md +38 -0
- package/docs/api/components/skeleton.md +31 -0
- package/docs/api/components/slider.md +70 -0
- package/docs/api/components/stat.md +42 -0
- package/docs/api/components/status-bead.md +19 -0
- package/docs/api/components/status-mark.md +19 -0
- package/docs/api/components/status.md +105 -0
- package/docs/api/components/store-card.md +53 -0
- package/docs/api/components/surface.md +161 -0
- package/docs/api/components/switch-bead.md +9 -0
- package/docs/api/components/switch.md +40 -0
- package/docs/api/components/tabs.md +138 -0
- package/docs/api/components/technonomicon.md +773 -0
- package/docs/api/components/textarea.md +40 -0
- package/docs/api/components/toaster.md +29 -0
- package/docs/api/components/tool-call-chip.md +68 -0
- package/docs/api/components/tooltip.md +113 -0
- package/docs/api/components/trading-card.md +95 -0
- package/docs/api/components/undo-action.md +117 -0
- package/docs/api/components/undo-toast.md +49 -0
- package/docs/api/components/visually-hidden.md +37 -0
- package/docs/api/components/window.md +291 -0
- package/docs/api/components/wizard.md +65 -0
- package/docs/api/enhance/cigarette-card.md +52 -0
- package/docs/api/enhance/sketch.md +42 -0
- package/docs/api/form.md +1623 -0
- package/docs/api/lib/cn.md +46 -0
- package/docs/api/lib/format-money.md +30 -0
- package/docs/api/lib/glide.md +36 -0
- package/docs/api/lib/ime.md +29 -0
- package/docs/api/lib/motion-spring.md +91 -0
- package/docs/api/lib/motion.md +212 -0
- package/docs/api/lib/reorder-motion.md +46 -0
- package/docs/api/lib/seed-hash.md +31 -0
- package/docs/api/lib/tanstack-highlight.md +40 -0
- package/package.json +597 -3
- package/src/app-status-bar.css +158 -0
- package/src/fonts.css +1 -0
- package/src/status-tray.css +282 -0
- package/src/styles.css +10177 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* AppStatusBar: one App window's bottom status bar. Its attachment (the
|
|
3
|
+
* window's Computer, say) comes first, the App's readouts follow, and one
|
|
4
|
+
* group of readouts may hold the far end. The row is the window's ground,
|
|
5
|
+
* not a control surface: legend-sized text on the base-200 plate with an
|
|
6
|
+
* inset rule. Controls in it are ordinary Caps controls, so Caps keeps their
|
|
7
|
+
* 44px touch targets.
|
|
8
|
+
*/
|
|
9
|
+
@layer utilities {
|
|
10
|
+
.caps-app-status-bar {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex: none;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--spacing-md);
|
|
15
|
+
min-width: 0;
|
|
16
|
+
min-height: var(--spacing-2xl);
|
|
17
|
+
padding-inline: var(--spacing-xs) var(--spacing-md);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
/* An inset rule keeps the 1px line out of the row's geometry. */
|
|
20
|
+
box-shadow: inset 0 1px 0
|
|
21
|
+
var(--caps-app-status-bar-rule, var(--color-base-300));
|
|
22
|
+
background: var(--caps-app-status-bar-bg, var(--color-base-200));
|
|
23
|
+
color: var(--caps-app-status-bar-fg, var(--color-base-content));
|
|
24
|
+
font-size: 0.6875rem;
|
|
25
|
+
/* Keys in the bar: compact and legend-sized, as beside a status tray. */
|
|
26
|
+
--caps-keycap-width: auto;
|
|
27
|
+
--caps-keycap-height: var(--caps-app-status-bar-key-height, 1.5rem);
|
|
28
|
+
--caps-keycap-justify: center;
|
|
29
|
+
--caps-keycap-padding: 0 var(--spacing-sm);
|
|
30
|
+
--caps-keycap-font-size: var(--text-xs);
|
|
31
|
+
--caps-keycap-font-weight: 650;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.caps-app-status-bar-rule {
|
|
35
|
+
flex: none;
|
|
36
|
+
align-self: stretch;
|
|
37
|
+
margin-block: var(--spacing-xs);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Touch keeps every key in the bar a full touch target. */
|
|
41
|
+
@media (max-width: 640px), (any-pointer: coarse) {
|
|
42
|
+
.caps-app-status-bar {
|
|
43
|
+
--caps-app-status-bar-key-height: var(--caps-touch-target);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* On a phone an iconed key shows its icon; its name stays for readers. */
|
|
48
|
+
@media (max-width: 640px) {
|
|
49
|
+
.caps-app-status-bar
|
|
50
|
+
.caps-keycap-button:has(.caps-keycap-button-icon)
|
|
51
|
+
.caps-keycap-button-label {
|
|
52
|
+
position: absolute;
|
|
53
|
+
width: 1px;
|
|
54
|
+
height: 1px;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
clip-path: inset(50%);
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.caps-app-status-item {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex: none;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--spacing-xs);
|
|
66
|
+
white-space: nowrap;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.caps-app-status-bar-end {
|
|
70
|
+
flex: 0 1 auto;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
margin-inline-start: auto;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* The picker may shrink and truncate its label before the bar overflows. */
|
|
78
|
+
.caps-status-bar-picker {
|
|
79
|
+
flex: 0 1 auto;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
max-width: 14rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.caps-status-bar-picker > svg {
|
|
85
|
+
flex: none;
|
|
86
|
+
width: 0.75rem;
|
|
87
|
+
height: 0.75rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.caps-status-bar-picker-label {
|
|
91
|
+
min-width: 0;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
text-overflow: ellipsis;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* App-declared controls: flat chips on the bar's ground, as the picker. */
|
|
98
|
+
.caps-status-bar-chip {
|
|
99
|
+
flex: none;
|
|
100
|
+
min-height: var(--caps-app-status-bar-key-height, 1.5rem);
|
|
101
|
+
gap: var(--spacing-xs);
|
|
102
|
+
color: var(--stipe-fg-muted);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.caps-status-bar-chip:hover,
|
|
106
|
+
.caps-status-bar-chip:is([aria-pressed="true"], [aria-expanded="true"]) {
|
|
107
|
+
color: var(--caps-app-status-bar-fg, var(--color-base-content));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.caps-status-bar-chip:is([aria-pressed="true"], [aria-expanded="true"]) {
|
|
111
|
+
background-color: var(--color-base-300);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.caps-status-bar-chip-icon {
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
flex: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.caps-status-bar-chip-icon > svg {
|
|
120
|
+
width: 0.875rem;
|
|
121
|
+
height: 0.875rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* On a phone an iconed chip shows its icon; its name stays for readers. */
|
|
125
|
+
@media (max-width: 640px) {
|
|
126
|
+
.caps-status-bar-chip:has(.caps-status-bar-chip-icon)
|
|
127
|
+
.caps-status-bar-chip-label {
|
|
128
|
+
position: absolute;
|
|
129
|
+
width: 1px;
|
|
130
|
+
height: 1px;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
clip-path: inset(50%);
|
|
133
|
+
white-space: nowrap;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.caps-status-bar-picker-list {
|
|
138
|
+
min-width: min(18rem, calc(100vw - 1.5rem));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.caps-status-bar-picker-option {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
gap: var(--spacing-sm);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.caps-status-bar-picker-option > svg {
|
|
148
|
+
flex: none;
|
|
149
|
+
width: 1rem;
|
|
150
|
+
height: 1rem;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Match Keycap's material layer so compact disclosure lamps use its flex gap. */
|
|
155
|
+
.caps-app-status-bar .caps-keycap-led {
|
|
156
|
+
position: static;
|
|
157
|
+
flex: none;
|
|
158
|
+
}
|
package/src/fonts.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@fungi.computer/stipe/fonts.css";
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* StatusTray: footer chips that open a small popover list. Popover is the
|
|
3
|
+
* housing and Status is each LED; rows are one calm line each (the host's
|
|
4
|
+
* icon, a title, a truncating muted detail and a quiet text action). This file
|
|
5
|
+
* owns layout and hands those parts their --caps-status-tray-* token values.
|
|
6
|
+
*/
|
|
7
|
+
@layer utilities {
|
|
8
|
+
.caps-status-tray {
|
|
9
|
+
display: block;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.caps-status-tray-row,
|
|
14
|
+
.caps-status-tray-chips {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--caps-status-tray-chip-gap, var(--spacing-xs));
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* A host may let the row wrap, or flatten the chips into it (`contents`)
|
|
22
|
+
so its own controls interleave with them. */
|
|
23
|
+
.caps-status-tray-row {
|
|
24
|
+
flex-wrap: var(--caps-status-tray-row-wrap, nowrap);
|
|
25
|
+
min-height: 2rem;
|
|
26
|
+
font-size: var(--text-xs);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.caps-status-tray-chips {
|
|
30
|
+
display: var(--caps-status-tray-chips-display, flex);
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Footer readout chips are this block's own control. */
|
|
35
|
+
.caps-status-tray-chip {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: var(--spacing-xs);
|
|
39
|
+
min-height: var(--caps-status-tray-chip-height, 2rem);
|
|
40
|
+
max-width: 100%;
|
|
41
|
+
padding: var(--spacing-2xs) var(--spacing-xs) var(--spacing-2xs)
|
|
42
|
+
var(--spacing-sm);
|
|
43
|
+
border: var(--caps-status-tray-chip-border, var(--border)) solid
|
|
44
|
+
var(--caps-status-tray-chip-border-color, var(--stipe-hairline));
|
|
45
|
+
border-radius: var(--caps-status-tray-chip-radius, var(--radius-field));
|
|
46
|
+
background: var(--caps-status-tray-chip-bg, var(--color-base-100));
|
|
47
|
+
box-shadow: var(--caps-status-tray-chip-shadow, none);
|
|
48
|
+
color: var(--caps-status-tray-chip-fg, var(--color-base-content));
|
|
49
|
+
font: inherit;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
text-align: start;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.caps-status-tray-label {
|
|
56
|
+
min-width: 0;
|
|
57
|
+
overflow-wrap: anywhere;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.caps-status-tray-chip:hover:not(:disabled),
|
|
61
|
+
.caps-status-tray-chip[aria-expanded="true"] {
|
|
62
|
+
background: var(--caps-status-tray-chip-bg-active, var(--color-base-300));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.caps-status-tray-chip:focus-visible {
|
|
66
|
+
outline: 2px solid var(--caps-focus-ring);
|
|
67
|
+
outline-offset: 2px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.caps-status-tray-chip:disabled {
|
|
71
|
+
opacity: 0.5;
|
|
72
|
+
cursor: default;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.caps-status-tray-count {
|
|
76
|
+
flex: none;
|
|
77
|
+
min-width: 1.25rem;
|
|
78
|
+
padding-inline: var(--spacing-2xs);
|
|
79
|
+
border-radius: var(--radius-selector);
|
|
80
|
+
background: var(--caps-status-tray-count-bg, var(--color-base-300));
|
|
81
|
+
font-family: var(--font-mono);
|
|
82
|
+
font-variant-numeric: tabular-nums;
|
|
83
|
+
text-align: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Housing: Popover's own material, sized and spaced for a tray. */
|
|
87
|
+
.caps-status-tray .caps-status-tray-panel {
|
|
88
|
+
width: min(
|
|
89
|
+
var(--caps-status-tray-width, 28rem),
|
|
90
|
+
100%,
|
|
91
|
+
calc(100vw - 1.5rem)
|
|
92
|
+
);
|
|
93
|
+
max-height: min(34rem, 72dvh);
|
|
94
|
+
outline: none;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
gap: var(--spacing-sm);
|
|
97
|
+
padding: var(--spacing-sm);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.caps-status-tray[data-align="end"] .caps-status-tray-panel {
|
|
101
|
+
inset-inline: auto 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.caps-status-tray[data-align="start"] .caps-status-tray-panel {
|
|
105
|
+
inset-inline: 0 auto;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* A host's chrome drew the trigger: sit above it, inset from both edges. */
|
|
109
|
+
.caps-status-tray[data-placement="host"] {
|
|
110
|
+
--caps-status-tray-host-width: min(
|
|
111
|
+
var(--caps-status-tray-width, 28rem),
|
|
112
|
+
100% - 2 * var(--spacing-sm)
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.caps-status-tray[data-placement="host"] .caps-status-tray-panel {
|
|
117
|
+
width: var(--caps-status-tray-host-width);
|
|
118
|
+
inset-inline: clamp(
|
|
119
|
+
var(--spacing-sm),
|
|
120
|
+
var(--caps-status-tray-host-inset, 0px),
|
|
121
|
+
100% - var(--spacing-sm) - var(--caps-status-tray-host-width)
|
|
122
|
+
)
|
|
123
|
+
auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.caps-status-tray-head {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex: none;
|
|
129
|
+
align-items: center;
|
|
130
|
+
gap: var(--spacing-xs);
|
|
131
|
+
padding-inline-start: var(--spacing-2xs);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.caps-status-tray-title {
|
|
135
|
+
min-width: 0;
|
|
136
|
+
margin-inline-end: auto;
|
|
137
|
+
font-size: var(--text-sm);
|
|
138
|
+
font-weight: 650;
|
|
139
|
+
overflow-wrap: anywhere;
|
|
140
|
+
text-transform: var(--caps-status-tray-title-case, none);
|
|
141
|
+
letter-spacing: var(--caps-status-tray-title-tracking, normal);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.caps-status-tray-body {
|
|
145
|
+
display: flex;
|
|
146
|
+
min-height: 0;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
gap: var(--spacing-sm);
|
|
149
|
+
overflow-y: auto;
|
|
150
|
+
overscroll-behavior: contain;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Keys beside the chips (a host's Send or Upload): compact, legend-sized. */
|
|
154
|
+
.caps-status-tray {
|
|
155
|
+
--caps-keycap-face: var(--caps-status-tray-key-face, var(--color-base-100));
|
|
156
|
+
--caps-keycap-tint: var(--caps-status-tray-key-tint, 26%);
|
|
157
|
+
--caps-keycap-width: auto;
|
|
158
|
+
--caps-keycap-height: var(--caps-status-tray-key-height, 2rem);
|
|
159
|
+
--caps-keycap-justify: center;
|
|
160
|
+
--caps-keycap-padding: 0 var(--spacing-sm);
|
|
161
|
+
--caps-keycap-font-size: var(--text-xs);
|
|
162
|
+
--caps-keycap-font-weight: 650;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* A calm list: one line per row, nothing boxed. */
|
|
166
|
+
.caps-status-tray-list {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex: none;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
min-width: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.caps-status-tray-item {
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
gap: var(--spacing-sm);
|
|
177
|
+
min-width: 0;
|
|
178
|
+
min-height: var(--caps-status-tray-row-height, 2.5rem);
|
|
179
|
+
padding: var(--spacing-2xs) var(--spacing-xs);
|
|
180
|
+
border-radius: var(--radius-field);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.caps-status-tray-item:hover {
|
|
184
|
+
background: var(
|
|
185
|
+
--caps-status-tray-row-hover,
|
|
186
|
+
color-mix(in oklab, var(--color-base-content) 5%, transparent)
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.caps-status-tray-icon,
|
|
191
|
+
.caps-status-tray-actions {
|
|
192
|
+
display: inline-flex;
|
|
193
|
+
flex: none;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: var(--spacing-2xs);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.caps-status-tray-icon {
|
|
199
|
+
justify-content: center;
|
|
200
|
+
min-width: var(--caps-status-tray-icon-size, 1.25rem);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.caps-status-tray-text {
|
|
204
|
+
display: flex;
|
|
205
|
+
flex: 1;
|
|
206
|
+
min-width: 0;
|
|
207
|
+
align-items: baseline;
|
|
208
|
+
gap: var(--spacing-xs);
|
|
209
|
+
white-space: nowrap;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.caps-status-tray-primary {
|
|
213
|
+
flex: 0 1 auto;
|
|
214
|
+
min-width: 0;
|
|
215
|
+
overflow: hidden;
|
|
216
|
+
font-size: var(--text-sm);
|
|
217
|
+
font-weight: 600;
|
|
218
|
+
text-overflow: ellipsis;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.caps-status-tray-secondary {
|
|
222
|
+
flex: 1 1 0;
|
|
223
|
+
min-width: 0;
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
color: var(--caps-status-tray-muted, var(--stipe-fg-muted));
|
|
226
|
+
font-size: var(--text-xs);
|
|
227
|
+
text-overflow: ellipsis;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Empty is "All caught up."; unavailable is calm, not an error. */
|
|
231
|
+
.caps-status-tray-note {
|
|
232
|
+
display: grid;
|
|
233
|
+
flex: none;
|
|
234
|
+
justify-items: center;
|
|
235
|
+
gap: var(--spacing-2xs);
|
|
236
|
+
padding: var(--spacing-md) var(--spacing-sm);
|
|
237
|
+
color: var(--caps-status-tray-muted, var(--stipe-fg-muted));
|
|
238
|
+
font-size: var(--text-sm);
|
|
239
|
+
text-align: center;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.caps-status-tray-note p {
|
|
243
|
+
margin: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.caps-status-tray-note-title {
|
|
247
|
+
color: var(--color-base-content);
|
|
248
|
+
font-size: var(--text-xs);
|
|
249
|
+
font-weight: 650;
|
|
250
|
+
letter-spacing: var(--caps-status-tray-note-tracking, 0.08em);
|
|
251
|
+
text-transform: uppercase;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Screen is a structural seat: flat readouts, no molded housing. */
|
|
255
|
+
.caps-status-tray[data-placement="screen"] {
|
|
256
|
+
font-family: var(--font-mono);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.caps-status-tray[data-placement="screen"] .caps-status-tray-chip {
|
|
260
|
+
border: 0;
|
|
261
|
+
border-radius: 0;
|
|
262
|
+
background: var(--caps-status-tray-screen-bg, transparent);
|
|
263
|
+
box-shadow: none;
|
|
264
|
+
color: var(--caps-status-tray-screen-fg, inherit);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.caps-status-tray[data-placement="screen"]
|
|
268
|
+
.caps-status-tray-chip:hover:not(:disabled),
|
|
269
|
+
.caps-status-tray[data-placement="screen"]
|
|
270
|
+
.caps-status-tray-chip[aria-expanded="true"] {
|
|
271
|
+
background: var(
|
|
272
|
+
--caps-status-tray-screen-bg-active,
|
|
273
|
+
var(--color-base-content)
|
|
274
|
+
);
|
|
275
|
+
color: var(--caps-status-tray-screen-fg-active, var(--color-base-100));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.caps-status-tray[data-placement="screen"] .caps-status-tray-panel {
|
|
279
|
+
border-radius: 0;
|
|
280
|
+
box-shadow: none;
|
|
281
|
+
}
|
|
282
|
+
}
|