Skip to content
New issue

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

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

Already on GitHub? # to your account

Svelte UX 2.0 (next) #571

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 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
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/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/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/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
16 changes: 16 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"svelte-ux": "1.0.0"
},
"changesets": [
"fair-bugs-carry",
"green-maps-bathe",
"major-turkeys-ask",
"nice-onions-sell",
"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
40 changes: 40 additions & 0 deletions packages/svelte-ux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# svelte-ux

## 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.4

### Patch Changes
Expand Down
39 changes: 19 additions & 20 deletions packages/svelte-ux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "Sean Lynch <techniq35@gmail.com>",
"license": "MIT",
"repository": "techniq/svelte-ux",
"version": "1.0.4",
"version": "2.0.0-next.4",
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand All @@ -22,43 +22,42 @@
"@changesets/cli": "^2.27.8",
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@sveltejs/adapter-cloudflare": "^4.9.0",
"@sveltejs/kit": "^2.17.3",
"@sveltejs/kit": "^2.19.0",
"@sveltejs/package": "^2.3.10",
"@sveltejs/vite-plugin-svelte": "5.0.3",
"@tailwindcss/typography": "^0.5.16",
"@tailwindcss/vite": "^4.0.14",
"@types/culori": "^2.1.1",
"@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.0.8",
"marked": "^15.0.7",
"mdsvex": "^0.12.3",
"posthog-js": "^1.223.4",
"prettier": "^3.5.2",
"posthog-js": "^1.230.4",
"prettier": "^3.5.3",
"prettier-plugin-svelte": "^3.3.3",
"rehype-slug": "^6.0.0",
"svelte": "5.20.4",
"svelte-check": "^4.1.4",
"svelte2tsx": "^0.7.34",
"tailwindcss": "^3.4.17",
"svelte": "5.23.0",
"svelte-check": "^4.1.5",
"svelte2tsx": "^0.7.35",
"tailwindcss": "^4.0.14",
"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.0.8"
},
"type": "module",
"dependencies": {
"@floating-ui/dom": "^1.6.13",
"@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.0",
"@layerstack/svelte-stores": "1.0.2-next.0",
"@layerstack/svelte-table": "1.0.1-next.0",
"@layerstack/tailwind": "2.0.0-next.2",
"@layerstack/utils": "1.1.0-next.0",
"@mdi/js": "^7.4.47",
"culori": "^4.0.1",
"d3-array": "^3.2.4",
Expand All @@ -69,7 +68,7 @@
"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"
},
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