Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .changeset/reativa-components-batch-three.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
"@prescriptive/reativa": minor
---

Add the final batch of reativa example implementations, reaching **full parity**
with the Xote examples — every spec that has a Xote demo now has a matching
**Reativa** preview, mirroring `website/src/Examples.res`.

- **components**: `form`, `resizable`, `search`, `comment`
- **pages**: `dashboard`, `landing-page`, `pricing`, `settings`, `sign-in`
- **flows**: `authentication`, `checkout`, `onboarding`

`search` filters a list live with `View.for_`; `resizable` binds a range input
to a reactive `style` on both panels; `form` submits with `View.On.submit` +
`prevent_default` and reveals a success message via `View.show`; `sign-in` wires
a native checkbox through a reactive `checked` binding; the `authentication` and
`onboarding` flows step through their states from a single `step` signal.
Registered in `Registry.mlx`'s `example_for` / `example_ids`. reativa now covers
26 elements, 42 components, 13 blocks, 5 pages, and 3 flows — the same set Xote
implements.
23 changes: 23 additions & 0 deletions .changeset/reativa-components-batch-two.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"@prescriptive/reativa": minor
---

Add the second batch of 20 more `@prescriptive/reativa` example implementations —
the overlay, data, picker, and navigation components — so each spec gets a
**Reativa** preview alongside the Xote one, matching the demos in
`website/src/Examples.res`.

- **overlays & menus**: `alert-dialog`, `dropdown-menu`, `context-menu`,
`popover`, `hover-card`, `sheet`, `drawer`, `toast`
- **data & pickers**: `table`, `data-table`, `chart`, `carousel`, `combobox`,
`command`, `calendar`, `date-picker`
- **navigation**: `navbar`, `menubar`, `navigation-menu`, `sidebar`

These lean on `Reativa.View`'s reactive primitives: `View.show` for the
open/closed overlays (dismissed via the existing `Backdrop`), `View.for_` for
the live-filtered lists (`combobox`, `command`, `data-table`), `class_reactive`
for the selected-day / active-dot state (`calendar`, `date-picker`, `carousel`),
and a reactive `style` for the carousel track. `context-menu` and `hover-card`
use `View.On.on` for the `contextmenu` / `mouseenter` / `mouseleave` events.
Registered in `Registry.mlx`'s `example_for` / `example_ids`. This brings
reativa to 26 elements, 38 components, and 13 blocks.
7 changes: 5 additions & 2 deletions packages/reativa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ reactive regions (driven by signals) update in place.

## What's implemented

26 elements, 18 components, and 13 blocks:
The full set `@prescriptive/xote` covers — 26 elements, 42 components, 13 blocks,
5 pages, and 3 flows:

| Layer | Specs |
| ----- | ----- |
| element | `aspect-ratio` `avatar` `badge` `button` `checkbox` `icon` `icon-button` `input` `input-otp` `kbd` `label` `legend` `link` `logo` `progress` `radio-group` `scroll-area` `separator` `skeleton` `slider` `spinner` `switch` `textarea` `toggle` `toggle-group` `typography` |
| component | `accordion` `alert` `breadcrumb` `button-group` `card` `collapsible` `dialog` `empty-state` `field` `footer` `input-group` `list` `pagination` `select` `stat` `tabs` `toolbar` `tooltip` |
| component | `accordion` `alert` `alert-dialog` `breadcrumb` `button-group` `calendar` `card` `carousel` `chart` `collapsible` `combobox` `command` `comment` `context-menu` `data-table` `date-picker` `dialog` `drawer` `dropdown-menu` `empty-state` `field` `footer` `form` `hover-card` `input-group` `list` `menubar` `navbar` `navigation-menu` `pagination` `popover` `resizable` `search` `select` `sheet` `sidebar` `stat` `table` `tabs` `toast` `toolbar` `tooltip` |
| block | `announcement-bar` `contact-section` `cta-section` `faq` `feature-grid` `hero` `logo-cloud` `newsletter` `page-header` `pricing-table` `stat-grid` `steps` `testimonial` |
| page | `dashboard` `landing-page` `pricing` `settings` `sign-in` |
| flow | `authentication` `checkout` `onboarding` |

Each component is a plain function — `Button.make ~variant:\`primary ~children ()`
— and composes the others. Enum prop types (`variant`, `size`, …) are generated
Expand Down
Loading
Loading