Releases: wangdicoder/tiny-design
@tiny-design/tokens@1.16.0
@tiny-design/tokens@1.16.0
@tiny-design/react@1.16.0
Minor Changes
-
feat(modal): add imperative/registered API on top of the existing context - #135
8e579d9- New exports:
Modal.Register,Modal.useModalActions,Modal.useModalSelf,Modal.store, and a namedcreateModalStorefactory. show(id, props)returns a promise that resolves with the value passed tohide(result), so dialogs can beawaited.<Modal.Provider>now backs an outlet that renders registered components; the legacyModal.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
onExitedfrom inside asetStateupdater so it no longer triggers "Cannot update X while rendering Y" warnings when the callback dispatches across components.fix(collapse-transition): keep
onHiddenin a ref so the animation effect depends only onvisible. InlineonHidden={() => …}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. - New exports:
@tiny-design/icons@1.16.0
@tiny-design/icons@1.16.0
@tiny-design/charts@1.16.0
@tiny-design/charts@1.16.0
@tiny-design/tokens@1.15.0
Minor Changes
- Emit per-component CSS token slices to dramatically shrink per-component bundles. The tokens package now emits
dist/css/foundation.css(primitives),dist/css/semantic.css(semantics), anddist/css/components/<name>.css(per-component) alongside the existingbase.css. Each compiled component entry imports only the slices it transitively needs, reducing per-component CSS by ~60% raw and ~80% gzipped (Button: 261 KB → 103 KB raw, 36 KB → 7.5 KB gzipped). Full-library bundle size is unchanged;base.cssis still emitted for backward compatibility. - #132e5335cf
@tiny-design/react@1.15.0
Minor Changes
- Emit per-component CSS token slices to dramatically shrink per-component bundles. The tokens package now emits
dist/css/foundation.css(primitives),dist/css/semantic.css(semantics), anddist/css/components/<name>.css(per-component) alongside the existingbase.css. Each compiled component entry imports only the slices it transitively needs, reducing per-component CSS by ~60% raw and ~80% gzipped (Button: 261 KB → 103 KB raw, 36 KB → 7.5 KB gzipped). Full-library bundle size is unchanged;base.cssis still emitted for backward compatibility. - #132e5335cf
Patch Changes
@tiny-design/icons@1.15.0
@tiny-design/icons@1.15.0
@tiny-design/charts@1.15.0
@tiny-design/charts@1.15.0
@tiny-design/tokens@1.14.0
Minor Changes
-
Add seed-driven token foundations to
@tiny-design/tokenswith an internalprimitive -> semantic -> componentmodel, a sharedcompile-brand-themeruntime export, stricter build validation, and richer registry metadata including resolved token values for downstream tooling. - #1284444b58Fix
@tiny-design/mcptoken extraction so MCP clients receive concrete resolved token values instead of unresolved token references.
@tiny-design/react@1.14.0
@tiny-design/react@1.14.0