Skip to content

Add events to theme components#671

Merged
techniq merged 8 commits into
techniq:nextfrom
justlilith:theme-events
Jun 18, 2026
Merged

Add events to theme components#671
techniq merged 8 commits into
techniq:nextfrom
justlilith:theme-events

Conversation

@justlilith

Copy link
Copy Markdown

I noticed that there wasn't a way to tell what theme a user has selected, so this PR adds a new event (carrying a detail of the selected theme) when setting the theme.

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot

changeset-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7f12740

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

This PR includes changesets to release 1 package
Name Type
svelte-ux Minor

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

@justlilith justlilith changed the title add events to theme components -L6 Add events to theme components Jun 17, 2026
@techniq

techniq commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Hi @justlilith, thanks for the PR. At the moment Svelte UX has not been ported to Svelte 5 syntax (runes, snippets, etc) but is in the process of as part of a larger effort to consolidate it with LayerStack. I'll be posting more details soon.

@justlilith

Copy link
Copy Markdown
Author

@techniq Thanks; sounds good! In the interim, should I replace the host rune with the deprecated createEventDispatcher so this might be merged? Or just hold off on this PR until the Svelte 5 migration?

@techniq

techniq commented Jun 18, 2026

Copy link
Copy Markdown
Owner

If you would want to use createEventDispatcher ( we are elsewhere in the project) that would be great and get this landed now, as the migration to Svelte 5 will take some time. Thanks!

classes
)}
{...$$restProps}
{...props}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to switch back to Svelte 4 $$restProps syntax as well

Comment thread package.json Outdated
Comment on lines +27 to +30
"dependencies": {
"@layerstack/tailwind": "2.0.0-next.22",
"@sveltejs/adapter-cloudflare": "^7.2.8"
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these shouldn't be added here

Comment thread .changeset/clean-eggs-lie.md Outdated
'svelte-ux': minor
---

This release adds events to theme selection.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's change this to Add theme selection events

@pkg-pr-new

pkg-pr-new Bot commented Jun 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/svelte-ux@671

commit: f44b5fa

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
svelte-ux ✅ Ready (View Log) Visit Preview f44b5fa

@techniq

techniq commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Looks good! Could you run pnpm format to run prettier and make CI happy

@justlilith

Copy link
Copy Markdown
Author

@techniq all set, I think 👍

@techniq techniq merged commit ea911ca into techniq:next Jun 18, 2026
4 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 18, 2026
@techniq

techniq commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Thanks again @justlilith! Released and available as 2.0.0-next.24.

FYI: We're currently in the process of updating LayerStack to use the new docs system we built for LayerChart (and is becoming a new @layerstack/docs package), and getting LayerChart 2.0 released (before I go on vacation), then we'll be cranking away on the big overhaul/consolidation of LayerStack/Svelte UX.

I'll post more updates as this works progresses.

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.

2 participants