Skip to content

feat: map split prop to cosmoz-resizable-view attributes#85

Merged
megheaiulian merged 1 commit into
mainfrom
feat/split-prop-compat
Jul 9, 2026
Merged

feat: map split prop to cosmoz-resizable-view attributes#85
megheaiulian merged 1 commit into
mainfrom
feat/split-prop-compat

Conversation

@megheaiulian

Copy link
Copy Markdown
Contributor

Summary

Maps the split prop to initial-size/min-size attributes on <cosmoz-resizable-view> instead of using CSS custom properties.

Changes

  • split.sizes[0]initial-size attribute (percentage)
  • split.minSizemin-size attribute (px)
  • expandToMin and snapOffset silently ignored (no equivalent in flex model)
  • Default sizing: 50% / 100px (matching split.js defaults)
  • Remove CSS custom property approach (--cz-queue-list-basis, --cz-queue-list-min-width)
  • Add slot='previous' to list element via thru spread
  • split prop marked @deprecated

Depends on

  • @neovici/cosmoz-resizable v2.2.0 (default slot redirect)

@changeset-bot

changeset-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b7dfaeb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@neovici/cosmoz-queue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

- Convert split prop to initial-size/min-size attributes on cosmoz-resizable-view
- split.sizes[0] → initial-size (percentage), split.minSize → min-size (px)
- expandToMin and snapOffset silently ignored (no equivalent)
- Default sizing: 50% / 100px
- Remove CSS custom property approach (--cz-queue-list-basis, --cz-queue-list-min-width)
- Add slot='previous' to list element via thru spread
- Mark split prop @deprecated
@megheaiulian megheaiulian force-pushed the feat/split-prop-compat branch from eac6336 to b7dfaeb Compare July 9, 2026 12:24
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-09 13:33 UTC

@megheaiulian megheaiulian self-assigned this Jul 9, 2026
@megheaiulian megheaiulian merged commit 7b10996 into main Jul 9, 2026
8 checks passed
@megheaiulian megheaiulian deleted the feat/split-prop-compat branch July 9, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant