Skip to content
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

next: Svelte 5 #1182

Draft
wants to merge 124 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
0a18762
next init
huntabyte Jul 12, 2024
e566ff9
my hand hurts
huntabyte Jul 13, 2024
75e5cb2
my hand really hurts
huntabyte Jul 13, 2024
8c7921a
more
huntabyte Jul 13, 2024
06b8950
my hand really hurts now...
huntabyte Jul 14, 2024
9f5ff59
commit
huntabyte Jul 15, 2024
6b66943
another
huntabyte Jul 15, 2024
8c4ddd0
size
huntabyte Jul 15, 2024
8b7d2b8
size-5
huntabyte Jul 15, 2024
b9febd5
size-6
huntabyte Jul 15, 2024
96bced2
size-7
huntabyte Jul 15, 2024
f0d440d
size-8
huntabyte Jul 15, 2024
fd69c7c
size-9
huntabyte Jul 15, 2024
55d59e9
size-10
huntabyte Jul 15, 2024
f678823
size-12
huntabyte Jul 15, 2024
cf1f12b
size-2.5
huntabyte Jul 15, 2024
98eb3a9
more progress
huntabyte Jul 15, 2024
8744340
size 3
huntabyte Jul 15, 2024
9bfe518
stuff
huntabyte Jul 15, 2024
d470d6d
more svelte 5 work
huntabyte Jul 15, 2024
4e85727
more stuff
huntabyte Jul 15, 2024
12131b6
urg type narrowing
huntabyte Jul 15, 2024
3638067
docs build with local bits
huntabyte Jul 17, 2024
465b13e
more
huntabyte Jul 17, 2024
ec2db92
data tables
huntabyte Jul 17, 2024
cb58f1f
more work
huntabyte Jul 17, 2024
4539d7c
tailwind animate
huntabyte Jul 17, 2024
b992047
transitions
huntabyte Jul 18, 2024
03ab2ef
work
huntabyte Jul 22, 2024
bf1a53e
add tooltip provider
huntabyte Jul 22, 2024
ca868b7
add tooltip provider
huntabyte Jul 22, 2024
85aebe9
fix action
huntabyte Jul 22, 2024
85d6bbc
maybe we try again
huntabyte Jul 22, 2024
54d6245
pls
huntabyte Jul 22, 2024
464442e
Merge branch 'main' into next
huntabyte Jul 22, 2024
0746e01
work
huntabyte Jul 23, 2024
eb27964
more next
huntabyte Jul 28, 2024
e1effd4
update paneforge
huntabyte Jul 31, 2024
5734ebc
drawer
huntabyte Aug 6, 2024
3497b07
fix chunk transformer
AdrianGonz97 Aug 9, 2024
2f22469
next: Updates (#1284)
huntabyte Sep 25, 2024
267389f
Merge branch 'main' into next
huntabyte Sep 25, 2024
93a80d8
next: Fix toggle `$bindable` (#1286)
huntabyte Sep 25, 2024
8e2a8e4
next: resolve all `svelte-check` issues (#1288)
huntabyte Sep 26, 2024
bacd61c
fix: Next Button Component with href (#1294)
reesebre82 Oct 3, 2024
ef2705e
next: update formsnap and bits (#1303)
huntabyte Oct 6, 2024
1eea35d
Merge branch 'main' into next
huntabyte Oct 6, 2024
221a9fe
registry stuff
huntabyte Oct 6, 2024
1dbc70e
formatting
huntabyte Oct 6, 2024
88c1e48
next: fix circular deps (#1305)
huntabyte Oct 7, 2024
2893f33
next: update vaul to `@next` (#1309)
huntabyte Oct 9, 2024
2a36dde
patch: correct calendar direction buttons (#1310)
shyakadavis Oct 11, 2024
2ce7923
next: Tanstack Table (#1318)
huntabyte Oct 14, 2024
58f288e
next: docs work (#1322)
huntabyte Oct 14, 2024
68feb42
doc styles (#1323)
huntabyte Oct 20, 2024
2c4fb1a
next: Sidebars (#1337)
huntabyte Oct 24, 2024
cc22608
Merge branch 'main' into next
huntabyte Oct 24, 2024
e78c887
next: remove playgrounds (#1345)
huntabyte Oct 25, 2024
a148777
next: Upgrade `package-manager-detector` to v0.2.2 (#1319)
ieedan Oct 25, 2024
9ff1dfe
next: fix mail account selector width (#1346)
huntabyte Oct 25, 2024
493a49d
next: replace `latest` with `next` (#1347)
huntabyte Oct 25, 2024
a4ce4fa
fix: select scroll up button (#1350)
huntabyte Oct 25, 2024
5d57bad
next: improve overwrite to include block comps & simplify pages (#1351)
huntabyte Oct 26, 2024
2cc7bc5
next(chore): update `.gitignore` (#1352)
huntabyte Oct 26, 2024
999c63b
next: CLI tweaks (#1355)
AdrianGonz97 Oct 26, 2024
ea535b6
next: update docs to `[email protected]` (#1356)
huntabyte Oct 26, 2024
b4db980
next: enter prerelease mode (#1357)
huntabyte Oct 27, 2024
09a8475
next: fix sheet/update vaul-svelte (#1360)
huntabyte Oct 27, 2024
b479077
next: initial `@next` release (#1361)
huntabyte Oct 27, 2024
f278123
chore(release): version package (next) (#1362)
github-actions[bot] Oct 27, 2024
633d883
next: select default demo (#1363)
huntabyte Oct 27, 2024
abc1aca
next: Fix various elements to use Svelte types vs internal (#1366)
huntabyte Oct 27, 2024
e1886e4
fix: properly strip types for JS registry (#1371)
AdrianGonz97 Oct 27, 2024
b4f2a80
merge into main
huntabyte Oct 27, 2024
ee4734e
fix: date range picker (#1374)
huntabyte Oct 27, 2024
385b243
next: Input OTP component (#1375)
huntabyte Oct 27, 2024
9c192a0
fix: mobile blocks (#1377)
huntabyte Oct 28, 2024
969ee4d
docs: fix select labels (#1380)
shyakadavis Oct 28, 2024
8732f3e
next: update bits (#1381)
huntabyte Oct 28, 2024
374cd33
docs: fix calendar with selects demo (#1384)
huntabyte Oct 28, 2024
18b18f9
next: fix scroll area (#1387)
huntabyte Oct 28, 2024
6e76ed9
docs: update import path for AppSidebar component (#1396)
shyakadavis Oct 29, 2024
64ecdad
docs: consistent component import examples (#1391)
shyakadavis Oct 29, 2024
99e1438
docs: fix tailwind typo (#1397)
pwnedshell Oct 29, 2024
099be76
docs: Remove Select.Value in Select component (#1400)
shyakadavis Oct 30, 2024
9c88dd0
fix: update tabindex attributes to use numbers (#1402)
shyakadavis Oct 30, 2024
b15bd8e
docs: update DatePicker/Popover usage example (#1403)
shyakadavis Oct 30, 2024
37e3cf3
resolve merge conflicts
huntabyte Oct 30, 2024
f3245bb
next: tidy up docs (#1404)
huntabyte Oct 30, 2024
75c23a5
docs: highlight correct line in Sonner example (#1405)
shyakadavis Oct 30, 2024
c832188
docs: remove unused imports & correct attribute casing (#1409)
shyakadavis Oct 31, 2024
d947b82
docs: checkbox values missing on multiple checkbox for forms (#1410)
lapppius Oct 31, 2024
8477b4b
docs: fix typo in sidebar.md (#1412)
abteilung Oct 31, 2024
25747d0
fix: wrong icon import for `ScrollDownButton` in `Select` (#1414)
nchaikh Nov 1, 2024
cb7d618
fix: range calendar button (#1416)
huntabyte Nov 1, 2024
6e720aa
patch: animate tooltips (#1417)
shyakadavis Nov 1, 2024
c6c25b1
docs: fix card select showing [object object] (#1425)
JanTrichter Nov 1, 2024
a6b5d3c
Merge branch 'main' into next
huntabyte Nov 1, 2024
40d2c80
next: docs cleanup (#1429)
huntabyte Nov 2, 2024
802a328
docs: data table source link (#1439)
huntabyte Nov 4, 2024
e06303c
fix(next): Fix `<Table.Footer>` foreground color (#1449)
ieedan Nov 6, 2024
237d4c3
fix(next): Hardcoded pixel values on `<Switch/>` (#1447)
ieedan Nov 6, 2024
e29f8f5
fix(next): Update command doesn't update component code (#1421)
ieedan Nov 7, 2024
0d8f9fc
chore(release): version package (next) (#1463)
github-actions[bot] Nov 7, 2024
fd144a2
docs(next): Migration instruction (#1446)
ieedan Nov 8, 2024
638bb23
chore(next): bump bits-ui (#1465)
ieedan Nov 9, 2024
ef9b3a5
docs: Typo in next data table docs (#1467)
ddxv Nov 9, 2024
d856a12
next(breaking): update bits & adjust checkbox `indeterminate` (#1470)
huntabyte Nov 9, 2024
fb7c683
fix(next): add newline to end of components.json (#1479)
kaechele Nov 12, 2024
3689d50
chore(release): version package (next) (#1480)
github-actions[bot] Nov 12, 2024
fa0fbf4
next(breaking): replace radix icons with lucide (#1472)
huntabyte Nov 13, 2024
11d0ff3
fix(next): resolve command for sveltekit sync as `execute-local` (#1487)
ieedan Nov 15, 2024
378b615
chore(release): version package (next) (#1492)
github-actions[bot] Nov 15, 2024
a817cfb
fix(next): ensure registry:ui components don't depend on themselves (…
ieedan Nov 15, 2024
65b8769
fix(next): Mirror Card title size to shadcn-ui (#1488)
ieedan Nov 15, 2024
03c4e3d
docs: Fixed accordion variable names in migration guide (#1494)
TheOnlyTails Nov 16, 2024
103f7d5
docs(next): Refactor `PM` comps to use package-manager-detector (#1491)
ieedan Nov 18, 2024
f8e2343
merge main into next
huntabyte Nov 18, 2024
9d35389
feat (next): Add ability disable portal for portalled components (#1482)
saturnonearth Nov 20, 2024
22a3a81
docs: fix command in block toolbar (#1509)
huntabyte Nov 20, 2024
f932494
fix(next): normalize `ui` and `hooks` path aliases (#1516)
AdrianGonz97 Nov 22, 2024
8b0c6d2
chore(release): version package (next) (#1517)
github-actions[bot] Nov 23, 2024
0ec81e1
docs: Remove outdated card docs (#1543)
ieedan Dec 10, 2024
8ec120d
fix: Errors when importing Radio Group (#1546)
AlexDev404 Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["playground-js", "playground-ts"]
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/loud-flies-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-svelte": patch
---

fix: Ensure `utils.(js|ts)` is not fetched from the registry on `update` command
5 changes: 5 additions & 0 deletions .changeset/new-turkeys-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-svelte": major
---

Svelte 5
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": {
"shadcn-svelte": "0.14.0",
"docs": "0.1.0"
},
"changesets": [
"loud-flies-smoke",
"new-turkeys-breathe",
"swift-tips-share",
"ten-spiders-do",
"tricky-trains-suffer",
"young-wombats-prove"
]
}
5 changes: 5 additions & 0 deletions .changeset/swift-tips-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-svelte": patch
---

fix: ensure `ui` and `hooks` paths are normalized
5 changes: 5 additions & 0 deletions .changeset/ten-spiders-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-svelte": patch
---

fix: Ensure `svelte-kit sync` executes locally
5 changes: 5 additions & 0 deletions .changeset/tricky-trains-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-svelte": patch
---

fix: `update` command now properly updates components
5 changes: 5 additions & 0 deletions .changeset/young-wombats-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shadcn-svelte": patch
---

fix(next): add newline to end of `components.json`
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:

cli-test:
name: CLI-Tests
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,7 @@ dist
generated-assets

# JetBrains IDEs
.idea/
.idea/

.velite
sites/docs/static/registry
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ CHANGELOG.md


# docs site specific
sites/docs/src/__registry__/*
sites/docs/other/themes/dark.json
sites/docs/other/themes/light.json
sites/docs/static
sites/docs/.velite
sites/docs/src/__registry__
packages/cli/test/fixtures
playgrounds
.svelte-kit
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
"eslint.useFlatConfig": true,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
"source.organizeImports": "never",
"source.removeUnusedImports": "never",
"source.removeUnused.ts": "never"
},

// Enable eslint for all supported languages
Expand Down
54 changes: 52 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
import config from "@huntabyte/eslint-config";
import eslint from "@eslint/js";
import prettier from "eslint-config-prettier";
import svelte from "eslint-plugin-svelte";
import globals from "globals";
import tseslint from "typescript-eslint";

export default config({ svelte: true });
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...svelte.configs["flat/recommended"],
prettier,
...svelte.configs["flat/prettier"],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
files: ["**/*.svelte"],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
},
},
},
{
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-unused-expressions": "off",
},
},
{
ignores: [
"build/",
".svelte-kit/",
"dist/",
".svelte-kit/**/*",
"sites/docs/.svelte-kit/**/*",
".svelte-kit",
"playgrounds/**/*",
"packages/cli/dist/**/*",
],
}
);
39 changes: 19 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@
},
"private": true,
"scripts": {
"build": "pnpm build:registry && pnpm build:site",
"build": "pnpm build:docs",
"build:cli": "pnpm -F shadcn-svelte build",
"build:registry": "pnpm -F docs build:registry",
"build:site": "pnpm -F docs build",
"dev": "pnpm build:registry && pnpm -F docs dev",
"dev:cli": "pnpm -F shadcn-svelte dev",
"build:docs": "pnpm -F docs build",
"dev": "pnpm -F docs dev",
"dev:cli": "pnpm -F shadcn-svelte start:dev",
"preview": "pnpm -F docs preview",
"test": "pnpm -F docs test",
"test": "pnpm -F shadcn-svelte test",
"check": "pnpm -F docs check",
"check:watch": "pnpm -F docs check:watch",
"test:unit": "pnpm -F docs test:unit",
"lint": "prettier --check . && eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --write .",
"preinstall": "npx only-allow pnpm",
"postinstall": "pnpm -r sync",
Expand All @@ -41,19 +37,22 @@
"type": "module",
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@eslint/js": "^9.12.0",
"@huntabyte/eslint-config": "^0.3.2",
"@huntabyte/eslint-plugin": "^0.1.0",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/scope-manager": "^8.10.0",
"@typescript-eslint/utils": "^8.10.0",
"eslint": "^9.0.0",
"eslint-plugin-svelte": "^2.37.0",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"prettier-plugin-tailwindcss": "0.5.13",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.44.1",
"globals": "^15.11.0",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"prettier-plugin-tailwindcss": "^0.6.8",
"pretty-quick": "^4.0.0",
"simple-git-hooks": "^2.10.0",
"svelte": "^4.2.12",
"svelte-eslint-parser": "^0.41.0"
},
"simple-git-hooks": {
"pre-commit": "pnpm -r format:staged --staged"
"svelte": "^5.0.0-next.264",
"svelte-eslint-parser": "^0.42.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.10.0"
}
}
31 changes: 31 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# shadcn-svelte

## 1.0.0-next.4

### Patch Changes

- f932494: fix: ensure `ui` and `hooks` paths are normalized

## 1.0.0-next.3

### Patch Changes

- 11d0ff3: fix: Ensure `svelte-kit sync` executes locally

## 1.0.0-next.2

### Patch Changes

- fb7c683: fix(next): add newline to end of `components.json`

## 1.0.0-next.1

### Patch Changes

- e29f8f5: fix: Ensure `utils.(js|ts)` is not fetched from the registry on `update` command
- e29f8f5: fix: `update` command now properly updates components

## 1.0.0-next.0

### Major Changes

- b479077: Svelte 5

## 0.14.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shadcn-svelte",
"version": "0.14.0",
"version": "1.0.0-next.4",
"description": "Add components to your apps.",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -52,7 +52,7 @@
"cross-env": "^7.0.3",
"get-tsconfig": "^4.7.3",
"ignore": "^5.3.1",
"package-manager-detector": "^0.1.2",
"package-manager-detector": "^0.2.2",
"sisteransi": "^1.0.5",
"tsup": "^8.0.0",
"type-fest": "^3.13.1",
Expand Down
Loading
Loading