Skip to content

Svelte UX 2.0 (next) #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b35f7bd
Update README
techniq Mar 3, 2025
3ae801c
Enter changeset prerelease/next mode (`pnpm changeset pre enter next`)
techniq Mar 10, 2025
5d8d38b
Tailwind CSS v4 (#562)
techniq Mar 10, 2025
f18da8b
Version Packages (next) (#572)
github-actions[bot] Mar 11, 2025
619d14d
Update README
techniq Mar 3, 2025
b64d09a
Enter changeset prerelease/next mode (`pnpm changeset pre enter next`)
techniq Mar 10, 2025
0d5df94
Tailwind CSS v4 (#562)
techniq Mar 10, 2025
1241ce3
Merge branch 'next' of https://github.com/techniq/svelte-ux into next
techniq Mar 11, 2025
370ab63
docs: Update @layerstack/tailwind to `2.0.0-next.1`, fixing styling o…
techniq Mar 11, 2025
1a2998d
fix: Use `next` releases for all `@layerstack/*` packages
techniq Mar 11, 2025
ec98303
Version Packages (next) (#574)
github-actions[bot] Mar 11, 2025
385320e
Restore prose heading styling (size/bold/margin)
techniq Mar 12, 2025
8f72913
Update `@layerstack/tailwind` to `2.0.0-next.2` and update `@import`
techniq Mar 13, 2025
35fd0c4
Switch from `@tailwindcss/postcss` to `@tailwindcss/vite`
techniq Mar 13, 2025
521368c
Update all non-major packages. Remove daisyui (no longer needed)
techniq Mar 13, 2025
f382819
Version Packages (next) (#578)
github-actions[bot] Mar 13, 2025
796e202
Merge branch 'main' into next
techniq Mar 18, 2025
f4494f8
Version Packages (next) (#581)
github-actions[bot] Mar 19, 2025
4f59f61
DateRange fixes / improvements (#584)
techniq Mar 31, 2025
0d249dc
Merge branch 'main' into next
techniq Mar 31, 2025
1d8413b
Merge branch 'main' into next
techniq Mar 31, 2025
adc1bbc
Update pnpm-lock.yaml
techniq Mar 31, 2025
8038b09
Version Packages (next) (#585)
github-actions[bot] Apr 1, 2025
340b4a4
Merge branch 'main' into next
techniq May 14, 2025
beb57f2
Update dependencies
techniq May 20, 2025
72f8f47
fix(Duration): Move Duration component to new `@layerstack/utils` `Du…
techniq May 20, 2025
416fbcc
Version Packages (next) (#597)
github-actions[bot] May 21, 2025
d2d36b1
Default `vite dev` port to `3001`
techniq May 28, 2025
2f6e532
Merge branch 'main' into next
techniq May 30, 2025
e5ed998
Merge branch 'main' into next
techniq May 30, 2025
c7423c2
Add changeset for MultiSelect fix
techniq May 30, 2025
f409859
Update deps
techniq May 30, 2025
895403c
Update layerstack include utils with improved format
techniq May 30, 2025
4acf4db
Add changesets
techniq May 30, 2025
8cff0d7
Version Packages (next) (#598)
github-actions[bot] May 30, 2025
24c43d4
Fix check errors/warnings
techniq May 30, 2025
9752264
fix(Drawer): Fix display of action buttons
techniq May 30, 2025
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
5 changes: 5 additions & 0 deletions .changeset/clear-regions-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

fix(MultiSelect): Fix reactivity scope for filteredSelectedOptions and filteredUnselectedOptions. Issue #594
5 changes: 5 additions & 0 deletions .changeset/cuddly-coins-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

fix(Duration): Update Duration component to new `@layerstack/utils` `Duration` class
5 changes: 5 additions & 0 deletions .changeset/dirty-pets-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

fix(Drawer): Fix display of action buttons
5 changes: 5 additions & 0 deletions .changeset/fair-bugs-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

fix: Use `next` releases for all `@layerstack/*` packages
5 changes: 5 additions & 0 deletions .changeset/four-bears-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

fix: Update deps include @layerstack/utils with improved format
5 changes: 5 additions & 0 deletions .changeset/green-maps-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

docs: Update @layerstack/tailwind to `2.0.0-next.1`, fixing styling of tailwind typography when deployed
5 changes: 5 additions & 0 deletions .changeset/loose-baths-make.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

Update dependencies
5 changes: 5 additions & 0 deletions .changeset/major-turkeys-ask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

fix(Menu): Support `bind:open` (underlying Popover)
5 changes: 5 additions & 0 deletions .changeset/nice-onions-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

feat(DateRangeField): Add `quickPresets` support
5 changes: 5 additions & 0 deletions .changeset/open-hats-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

fix(DateRangeField): Include year when displaying month selection
21 changes: 21 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"svelte-ux": "1.0.0"
},
"changesets": [
"clear-regions-listen",
"cuddly-coins-tease",
"fair-bugs-carry",
"four-bears-join",
"green-maps-bathe",
"loose-baths-make",
"major-turkeys-ask",
"nice-onions-sell",
"open-hats-arrive",
"ready-planets-deny",
"wide-months-rescue",
"witty-spies-divide"
]
}
5 changes: 5 additions & 0 deletions .changeset/ready-planets-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': major
---

Tailwind 4 support
5 changes: 5 additions & 0 deletions .changeset/wide-months-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

fix(DateRange): Fix selection gradient
5 changes: 5 additions & 0 deletions .changeset/witty-spies-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte-ux': patch
---

Switch from `@tailwindcss/postcss` to `@tailwindcss/vite`. Update all non-major packages
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The projects aims to simplify building highly interactive and visual application

The components are built using Tailwind with extensibility and customization in mind through the use of theming, variants, granular class overrides, and slots. A rich design token system is also currently in the works.

See also the companion library [LayerChart](https://layerchart.com) for a large collection of composable chart components to build a wide range of visualizations.
See also the companion library [LayerChart](https://layerchart.com) for a large collection of composable chart components to build a wide range of visualizations and [LayerStack](https://layerstack.dev) for a collection of svelte stores, actions, and general utilities.

## Contributing

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"up-deps": "pnpm update -r -i --latest"
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@changesets/cli": "^2.29.4",
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
"prettier-plugin-svelte": "^3.3.3",
"prettier-plugin-svelte": "^3.4.0",
"rimraf": "6.0.1",
"wrangler": "^4.14.4"
"wrangler": "^4.18.0"
},
"packageManager": "[email protected]"
}
58 changes: 58 additions & 0 deletions packages/svelte-ux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
# svelte-ux

## 2.0.0-next.6

### Patch Changes

- fix(MultiSelect): Fix reactivity scope for filteredSelectedOptions and filteredUnselectedOptions. Issue #594 ([#571](https://github.com/techniq/svelte-ux/pull/571))

- fix: Update deps including @layerstack/utils with improved format ([#571](https://github.com/techniq/svelte-ux/pull/571))

- fix(DateRangeField): Include year when displaying month selection ([#571](https://github.com/techniq/svelte-ux/pull/571))

## 2.0.0-next.5

### Patch Changes

- fix(Duration): Update Duration component to new `@layerstack/utils` `Duration` class ([#571](https://github.com/techniq/svelte-ux/pull/571))

- Update dependencies ([#571](https://github.com/techniq/svelte-ux/pull/571))

## 2.0.0-next.4

### Patch Changes

- fix(Menu): Support `bind:open` (underlying Popover) ([#584](https://github.com/techniq/svelte-ux/pull/584))

- feat(DateRangeField): Add `quickPresets` support ([#584](https://github.com/techniq/svelte-ux/pull/584))

- fix(DateRange): Fix selection gradient ([#584](https://github.com/techniq/svelte-ux/pull/584))

## 2.0.0-next.3

### Patch Changes

- fix(SelectField|MultiSelect): Unify and enhance search functionality, enabling new custom search capability in MultiSelect.

## 2.0.0-next.2

### Patch Changes

- Switch from `@tailwindcss/postcss` to `@tailwindcss/vite`. Update all non-major packages

## 2.0.0-next.1

### Patch Changes

- fix: Use `next` releases for all `@layerstack/*` packages ([#571](https://github.com/techniq/svelte-ux/pull/571))

- docs: Update @layerstack/tailwind to `2.0.0-next.1`, fixing styling of tailwind typography when deployed ([#571](https://github.com/techniq/svelte-ux/pull/571))

## 2.0.0-next.0

### Major Changes

- Tailwind 4 support ([#571](https://github.com/techniq/svelte-ux/pull/571))

### Patch Changes

- fix(Progress): Fix `TypeError: Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.` ([`6c2efa2`](https://github.com/techniq/svelte-ux/commit/6c2efa2d6d5b1a7ccf2b99c1826bc1232c51d2cc))

## 1.0.6

### Patch Changes
Expand Down
51 changes: 25 additions & 26 deletions packages/svelte-ux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"author": "Sean Lynch <[email protected]>",
"license": "MIT",
"repository": "techniq/svelte-ux",
"version": "1.0.6",
"version": "2.0.0-next.6",
"scripts": {
"dev": "vite dev",
"dev": "vite dev --port 3001",
"build": "vite build",
"preview": "vite preview",
"package": "svelte-package",
Expand All @@ -19,46 +19,45 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@changesets/cli": "^2.29.4",
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@sveltejs/adapter-cloudflare": "^7.0.3",
"@sveltejs/kit": "^2.21.0",
"@sveltejs/kit": "^2.21.1",
"@sveltejs/package": "^2.3.11",
"@sveltejs/vite-plugin-svelte": "5.0.3",
"@tailwindcss/typography": "^0.5.16",
"@types/culori": "^2.1.1",
"@tailwindcss/vite": "^4.1.8",
"@types/culori": "^4.0.0",
"@types/d3-array": "^3.2.1",
"@types/d3-scale": "^4.0.9",
"@types/lodash-es": "^4.17.12",
"@types/prismjs": "^1.26.5",
"@vitest/coverage-v8": "^3.0.7",
"autoprefixer": "^10.4.20",
"daisyui": "^4.12.24",
"@vitest/coverage-v8": "^3.1.4",
"marked": "^15.0.7",
"mdsvex": "^0.12.3",
"posthog-js": "^1.223.4",
"prettier": "^3.5.2",
"prettier-plugin-svelte": "^3.3.3",
"posthog-js": "^1.248.1",
"prettier": "^3.5.3",
"prettier-plugin-svelte": "^3.4.0",
"rehype-slug": "^6.0.0",
"svelte": "5.20.4",
"svelte-check": "^4.1.4",
"svelte2tsx": "^0.7.34",
"tailwindcss": "^3.4.17",
"svelte": "5.33.10",
"svelte-check": "^4.2.1",
"svelte2tsx": "^0.7.39",
"tailwindcss": "^4.1.8",
"tslib": "^2.8.1",
"typescript": "^5.7.3",
"typescript": "^5.8.2",
"unist-util-visit": "^5.0.0",
"vite": "^6.2.0",
"vitest": "^3.0.7"
"vite": "^6.2.1",
"vitest": "^3.1.4"
},
"type": "module",
"dependencies": {
"@floating-ui/dom": "^1.6.13",
"@floating-ui/dom": "^1.7.0",
"@fortawesome/fontawesome-common-types": "^6.7.2",
"@layerstack/svelte-actions": "^1.0.0",
"@layerstack/svelte-stores": "^1.0.1",
"@layerstack/svelte-table": "^1.0.0",
"@layerstack/tailwind": "^1.0.0",
"@layerstack/utils": "^1.0.0",
"@layerstack/svelte-actions": "1.0.1-next.6",
"@layerstack/svelte-stores": "1.0.2-next.6",
"@layerstack/svelte-table": "1.0.1-next.6",
"@layerstack/tailwind": "2.0.0-next.8",
"@layerstack/utils": "2.0.0-next.6",
"@mdi/js": "^7.4.47",
"culori": "^4.0.1",
"d3-array": "^3.2.4",
Expand All @@ -69,9 +68,9 @@
"lodash-es": "^4.17.21",
"prism-svelte": "^0.5.0",
"prism-themes": "^1.9.0",
"prismjs": "^1.29.0",
"prismjs": "^1.30.0",
"sveld": "^0.22.1",
"zod": "^3.24.2"
"zod": "^3.25.41"
},
"peerDependencies": {
"svelte": "^3.56.0 || ^4.0.0 || ^5.0.0"
Expand Down
7 changes: 0 additions & 7 deletions packages/svelte-ux/postcss.config.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion packages/svelte-ux/src/docs/Blockquote.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div
class={cls(
'bg-primary/10 border border-l-[6px] border-primary/30 border-l-primary text-primary px-4 py-2 my-4 rounded flex items-center gap-2 text-sm',
'bg-primary/10 border border-l-[6px] border-primary/30 border-l-primary text-primary px-4 py-2 my-4 rounded-sm flex items-center gap-2 text-sm',
'[&>a]:font-medium [&>a]:underline [&>a]:decoration-dashed [&>a]:decoration-primary/50 [&>a]:underline-offset-2'
)}
>
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte-ux/src/docs/ViewSourceButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<Dialog
{open}
on:close={toggleOff}
class="max-h-[98dvh] md:max-h-[90dvh] max-w-[98vw] md:max-w-[90vw] grid grid-rows-[auto,1fr,auto]"
class="max-h-[98dvh] md:max-h-[90dvh] max-w-[98vw] md:max-w-[90vw] grid grid-rows-[auto_1fr_auto]"
>
<div class="grid grid-cols-[1fr,auto] gap-3 items-center p-4">
<div class="grid grid-cols-[1fr_auto] gap-3 items-center p-4">
<div class="overflow-auto">
<div class="text-lg font-semibold">{label}</div>
<div class="text-xs text-surface-content/50 truncate">{href}</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-ux/src/lib/components/AppLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
headerPosition === 'full' || temporaryDrawer
? '[&>header]:w-full'
: '[&>header]:w-[calc(100%-var(--drawerWidth))] [&>header]:left-[var(--drawerWidth)] [&>header]:duration-500',
'[&>main]:md:ml-[var(--drawerWidth)] [&>main]:mt-[var(--headerHeight)] [&>main]:transition-[margin] [&>main]:duration-500',
'md:[&>main]:ml-(--drawerWidth) [&>main]:mt-[var(--headerHeight)] [&>main]:transition-[margin] [&>main]:duration-500',
/* Fix scrolling offset for headings (h1, ...) or other elements with an id set (`<a href="#id">`) */
'[:where(&_[id])]:scroll-m-[var(--headerHeight)]',
settingsClasses.root,
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-ux/src/lib/components/Avatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div
class={cls(
'Avatar',
'rounded-full inline-flex items-center justify-center flex-shrink-0',
'rounded-full inline-flex items-center justify-center shrink-0',
{
sm: 'w-6 h-6',
md: 'w-10 h-10',
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-ux/src/lib/components/Backdrop.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class={cls(
'Backdrop',
'fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-surface-content/50 dark:bg-surface-300/70',
blur && 'backdrop-blur-sm',
blur && 'backdrop-blur-xs',
settingsClasses.root,
className
)}
Expand Down
Loading