Skip to content

Releases

v1.3.0

Choose a tag to compare

@bacon-delight bacon-delight released this 03 Dec 20:19

The stylesheet of vue-ecosphere 1.3.0.
No component API changed.

Added

  • Dark theme. Set data-theme="dark" on the root element, or data-theme="auto" to follow the
    system setting. Every colour and elevation token has a dark value (dark in tokens.json).
  • Tokens --border-hover, --scrollbar, --veil-surface and --scrim-blur.

Changed

  • The scrims behind dialogs, drawers, the compose modal and confirmations blur the page behind
    them, and the drawer's scrim covers the app shell's sidebar too.

Fixed

  • Avatars used as buttons or links no longer show the browser's button border.
  • Disabled phone, OTP and search fields read as disabled (grey ground, muted text).
  • A dialog without a body leaves space under its subtitle.

v1.2.2

Choose a tag to compare

@bacon-delight bacon-delight released this 03 Dec 18:29
511ea28

Pinned to vue-ecosphere 1.2.2.

Added

  • EcoDialog: alert (default false) renders role="alertdialog", for a dialog that interrupts to
    ask for a decision.

Fixed

  • EcoTabs (and the notification tabs): a row of tabs wider than its container scrolls sideways
    inside it instead of widening the page (stylesheet from vue-ecosphere 1.2.2).
  • EcoDialog: the subtitle describes the dialog (aria-describedby), so it is read with the title.
  • useConfirm() / EcoConfirmHost: a confirmation is an alertdialog described by its text.
  • EcoCheckbox and EcoSwitch: a label with no hint is wrapped in a <span>, so inline links in it
    stay in one line of text instead of each becoming a row.

v1.2.1

Choose a tag to compare

@bacon-delight bacon-delight released this 03 Dec 18:22
8bc64b8

Pinned to vue-ecosphere 1.2.1; the same bug fixes, with parity kept.

Added

  • EcoTreeView: renderMore(node) replaces the "show more" button of every branch that has more
    (vue-ecosphere's #more slot), e.g. with a link to the next page.

Fixed

  • Charts: the width observer follows the figure, so a chart that starts empty sizes itself once data
    arrives. Area, bar, diverging, line and step-line charts are one tab stop (roving tabindex): arrow
    keys, Home and End move between periods.
  • EcoLineChart: a line's <title> names the period of its own last point, and the hover dot no
    longer doubles the end dot. Chart legends are keyed by position, so repeated names don't collide.
  • EcoRowGroup: rows without saved show aria-pressed="false".
  • EcoTreeView (selectable): Enter and Space on a Retry or Show-more button stay with the button.
  • EcoTable: the server render no longer writes an indeterminate attribute on select-all.
  • EcoFindings: a passed aria-labelledby names the list instead of the default "Findings".
  • EcoLeaderRow: onClick reaches the plain row too, not only the selectable button.
  • EcoListRow: with a node title, the star and actions buttons are named by the title element.
  • EcoTimeline: the group variant has a wrapper div, so className and other attributes land.
  • EcoNotifications: closing returns focus to a renderTrigger button; the unread dot is
    role="img" so its "Unread" name is read.
  • EcoMenu: no aria-labelledby pointing at a trigger that isn't rendered.
  • EcoSelectButton: without a label, the menu is named by aria-label or by its trigger.
  • EcoSearchField: the filter button's tooltip is filterLabel.
  • EcoTimePicker: sections are labelled groups, unchosen options report aria-selected="false", and
    the list has one tab stop.
  • EcoDatePicker: a controlled open that starts or turns true sets the panel up on the chosen
    month and focuses the day, like the field's own button.
  • EcoFilterChips: Clear filters calls onFilterChange for each filter it clears.
  • EcoTabs: only the current tab carries aria-controls.
  • EcoAppShell: a drawer that mounts open moves focus into it and closes on Escape.

v1.2.0

Choose a tag to compare

@bacon-delight bacon-delight released this 03 Dec 14:24
d158d29

Matches vue-ecosphere 1.2.0: the stylesheet is copied from it, and the components carry its
additions and fixes.

Added

  • EcoButton, EcoLink, EcoTabs items and EcoProgressSteps steps take to. Pass your router's
    link component as as (react-router's Link), as on EcoNavItem: the link renders through it.
    Without as, a string to becomes the href. A disabled or loading button still renders a
    <button>. The router decides the current page: pass aria-current="page" to a button, and the
    current route's key as EcoTabs' value (routed tabs have no first-tab fallback).
  • EcoProgressSteps (horizontal): reachable marks an upcoming step people may skip ahead to; with
    href or to it links too, keeping its number.
  • EcoDialog: closable (default true). false drops the × and makes Escape and the scrim do
    nothing, for a dialog that must be answered.
  • EcoAppShell: contentTag ("main" by default; "div" when the children render their own
    <main>).
  • EcoToast: live (default true); EcoToaster sets it to false.

Fixed

  • EcoAppShell: the work area is a <main> landmark.
  • EcoToaster: the always-present .toasts list is the aria-live="polite" region, so toasts are
    read out reliably; the toasts inside it are no longer role="status" regions of their own.
  • Dialogs stack above an open drawer, and .page carries the right gutter (stylesheet).
  • EcoMeter is a role="meter" with its value on the bar or ring, named by the ring's label or an
    aria-label / aria-labelledby you pass.
  • EcoNumberField: a typed figure outside min / max is pulled back to the nearest bound on blur;
    text that is not a number reports null and sets aria-invalid; a fractional step uses
    inputMode="decimal", and an inputMode you pass wins.
  • EcoTextField, EcoEmailField, EcoNumberField, EcoTextarea and EcoSwitch merge an
    aria-describedby you pass after their own hint or error id.
  • EcoSearchField: attributes other than className and style (id, role, aria-*, handlers)
    go to the <input>, so it can be a combobox's input; an onKeyDown that calls
    preventDefault() keeps Enter and Escape for itself. Its props type now extends the input's
    attributes.
  • EcoPhoneField without codes shows the dial code as text (phonefield__cc--fixed) that
    describes the number, instead of a button that opened nothing.
  • EcoTimeline (trail): a stage status shows its badge dot unless dot is false.

v1.1.0

Choose a tag to compare

@bacon-delight bacon-delight released this 03 Dec 13:55

First release: the Ecosphere Design System for React, matching vue-ecosphere 1.1.0.

  • All 97 components, with vue-ecosphere's props and markup. Vue's v-model becomes controlled
    props (value / onChange, foo / onFooChange), emits become on… callbacks, and slots
    become children, ReactNode props and render… props.
  • useToast() with <EcoToaster />, useConfirm() with <EcoConfirmHost />, and useEcoId().
  • The stylesheet (react-ecosphere/styles.css), fonts and tokens.json, identical to
    vue-ecosphere 1.1.0's.
  • React 18.2 and 19; server rendering; "use client" for React Server Components.
  • Parity tests render every component in both packages and compare the markup.

Where the React API is not the mechanical translation of the Vue one:

  • EcoCheckbox and EcoSwitch take checked / defaultChecked / onChange(checked).
  • EcoField takes htmlFor; its props type is EcoFieldComponentProps.
  • EcoNavItem renders a plain <a>; pass your router's link as as and set active from the
    router's match (there is no exact).
  • Where Vue has a prop and a slot of the same name (a dialog's title, a toast's action), React
    has one ReactNode prop. EcoSearchField's #filter slot is filterButton, and
    EcoComposeModal's #to slot is toField.
  • useToast() and useConfirm() can be called anywhere, not only in components.