Skip to content

v1.1.0

Choose a tag to compare

@bacon-delight bacon-delight released this 03 Dec 13:55
· 10 commits to main since this release

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.