- Picker rows that step outside the search.
PickerItem.match: "always"lists a row whatever is typed (an exit such as "Search all of WoRMS for “Cetacea”…");match: "query"lists a row only while the search has at least two characters (PICKER_MIN_QUERY) and matches, at mostqueryLimit(50) of them, with "n more matches: keep typing" under the list. obis-hex needed both: typing a taxon that is not precomputed hid the row that searches WoRMS, and 5,800 families would bury the list. Pickerbinds the search text (bind:query), so a row can be built from it.- New export
pickerFilter(items, q, queryLimit), the rule above as a function. @marinebon/ui/utilsexports the plain helpers (pickerFilter,pickerMatches, …) without the components, so an app's Node tests can import them.
- One layout for the panes and the TimeStrip.
Pane(andControls) takefill: the pane runs the full height of its container, and an overlayTimeStripstarts 12 px beside it instead of under it. The strip also moves beside any pane resized down past its top. It spans the container again when the pane is folded, shortened above it or dragged to the other half, or when the strip would be narrower than 320 px (STRIP_MIN_WIDTH). Phone sheets and an expanded strip are unchanged. Apps no longer size panes around the strip by hand (obis-hex and erddap-places did). - In a fill pane the body is a column, so content can grow with it. With
Controls fillthe tabs stay put and the tab panel takes the rest of the height, scrolling itself.Picker fillgives its list the height left (at least 8 rem) instead ofmaxHeight..mbon-fill(base.css) goes on each wrapper in between. On a phone sheet,maxHeightapplies as before. paneSide(),stripEdges(),STRIP_MIN_WIDTHand thePaneSidetype are exported;PaneStackhassides(). Newtests/PaneFill.test.ts.- Demo: the Controls use
fill, with fill Pickers for datasets and places.
Paneends 12 px (margin) above an overlayTimeStripin the same container instead of running under it: the strip reports the height it covers at the container's bottom, and a pane'smax-height, a bottom-anchored home and a pill docked to the bottom edge stay above it. An expanded strip or the phone bottom sheets leave the panes as before.
TimeStriptakestabs(2 or more) andbind:active: a tab strip in the header, for example Plot and Table. You switch the strip content onactive; the brush works on the first tab.TimeStriphas an Expand button (expandable, default true;bind:expanded) like Pane and Controls: it fills its positioned container, Esc restores, andheightis unchanged so restore returns to the previous height.- Controls and TimeStrip now share one internal tab strip, so the tabs look and behave the same.
- Demo: the time strip has Plot and Table tabs and the Expand button.
Sentenceis smaller: sizemdis now 22 px (was 28) andlg28 px (was 36); on phones (640 px and narrower)mdis 18 px andlg22 px.Chiprenders slightly smaller than the words around it (0.9em, tighter padding, 6 px radius) and stays on the text baseline; the open ring and facet colours are unchanged.Controls: the selected tab is easier to see: semibold accent text and number with a 1 px accent ring (teal-600 on light, teal-300 on dark, both pass 4.5:1 on the tab surface). Unselected numbers are muted.- New
Controlstests (selected state, arrow keys, Home/End).
- First release: MBON brand tokens (
tokens.css, names from marinebon.org/brand/v1), self-hosted Space Grotesk / IBM Plex fonts (fonts.css),base.css, andtheme.ts(light/dark withprefers-color-schemeand?theme=). - Components (Svelte 5): Header, Footer, ThemeToggle, Pane, Controls, TimeStrip, Sentence, Chip, Picker, Menu, Select, Toggle, Slider, Button, Notice, Legend, PipelineChips, Stat, Kbd.
- Demo page at https://marinebon.org/ui/ and Playwright screenshots (
npm run screenshots).