Skip to content

Commit c093149

Browse files
committed
chore: add changeset
1 parent ff6fa8d commit c093149

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.changeset/style-extend-feature.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@cube-dev/ui-kit": minor
3+
---
4+
5+
Add style extend functionality to `tasty` style system, enabling state map merging, `@inherit` keyword, and property reset semantics.
6+
7+
**New features:**
8+
- **State map extension mode**: When extending a component with a state map that doesn't include a `''` key, parent states are preserved and new states are appended
9+
- **State map replace mode**: When a state map includes a `''` key, it replaces all parent states (existing behavior)
10+
- **`@inherit` keyword**: Pull parent state values into child state maps, supporting both repositioning (extend mode) and cherry-picking (replace mode)
11+
- **`null` reset**: Use `null` as a property value to discard parent values and let recipe values fill in
12+
- **`false` tombstone**: Use `false` to block a property entirely, preventing both parent and recipe values
13+
14+
**Behavior changes:**
15+
- Sub-element handling now uses strict equality (`=== null`) instead of loose equality (`== null`) for better semantic clarity

0 commit comments

Comments
 (0)