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
16 changes: 0 additions & 16 deletions .changeset/modal-imperative-api.md

This file was deleted.

2 changes: 2 additions & 0 deletions packages/charts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @tiny-design/charts

## 1.16.0

## 1.15.0

## 1.14.0
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tiny-design/charts",
"version": "1.15.0",
"version": "1.16.0",
"description": "Theme-aware chart components for Tiny Design, built on Recharts",
"license": "MIT",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions packages/icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @tiny-design/icons

## 1.16.0

## 1.15.0

## 1.14.0
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tiny-design/icons",
"version": "1.15.0",
"version": "1.16.0",
"description": "SVG icon components for tiny-design",
"license": "MIT",
"keywords": [
Expand Down
16 changes: 16 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 1.16.0

### Minor Changes

- feat(modal): add imperative/registered API on top of the existing context - [#135](https://github.com/wangdicoder/tiny-design/pull/135) [`8e579d9`](https://github.com/wangdicoder/tiny-design/commit/8e579d9e128f64296a92e10bd1584e89a78230d3)
- New exports: `Modal.Register`, `Modal.useModalActions`, `Modal.useModalSelf`, `Modal.store`, and a named `createModalStore` factory.
- `show(id, props)` returns a promise that resolves with the value passed to `hide(result)`, so dialogs can be `await`ed.
- `<Modal.Provider>` now backs an outlet that renders registered components; the legacy `Modal.useModal(id)` per-id hook continues to work unchanged.
- New "Choosing a store" docs section warning that two providers sharing the singleton cause duplicate overlays — recommends `createModalStore()` for app-level providers.

fix(transition): stop firing `onExited` from inside a `setState` updater so it no longer triggers "Cannot update X while rendering Y" warnings when the callback dispatches across components.

fix(collapse-transition): keep `onHidden` in a ref so the animation effect depends only on `visible`. Inline `onHidden={() => …}` callers no longer cause unrelated parent re-renders to interrupt the running open/close animation.

fix(collapse): always mount `<CollapseTransition>` and gate only the body content. The first time a panel is opened from a closed start now plays the open animation instead of snapping to its full height.

## 1.15.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tiny-design/react",
"version": "1.15.0",
"version": "1.16.0",
"description": "A friendly UI component set for React",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions packages/tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @tiny-design/tokens

## 1.16.0

## 1.15.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tiny-design/tokens",
"version": "1.15.0",
"version": "1.16.0",
"description": "Design tokens and v2 theme runtime for Tiny UI",
"license": "MIT",
"repository": {
Expand Down