diff --git a/package.json b/package.json index 66f9f01..d7f7c7e 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "prettier": "^3.2.5", "prettier-plugin-svelte": "^3.2.7", "prettier-plugin-tailwindcss": "0.6.8", - "svelte": "^5.0.0-next.260", + "svelte": "^5.0.0", "svelte-eslint-parser": "^0.41.1", "wrangler": "^3.44.0" }, diff --git a/packages/vaul-svelte/package.json b/packages/vaul-svelte/package.json index ce46bae..27d3080 100644 --- a/packages/vaul-svelte/package.json +++ b/packages/vaul-svelte/package.json @@ -24,12 +24,12 @@ "!dist/**/*.spec.*" ], "peerDependencies": { - "svelte": "5.0.0-next.1" + "svelte": "^5.0.0" }, "devDependencies": { "@sveltejs/kit": "^2.6.1", "@sveltejs/package": "^2.3.5", - "@sveltejs/vite-plugin-svelte": "4.0.0-next.7", + "@sveltejs/vite-plugin-svelte": "4.0.0", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.4.8", "@testing-library/svelte": "^5.2.1", @@ -41,7 +41,7 @@ "autoprefixer": "^10.4.16", "jsdom": "^24.1.0", "publint": "^0.2.8", - "svelte": "^5.0.0-next.260", + "svelte": "^5.0.0", "svelte-check": "^4.0.4", "tslib": "^2.6.3", "typescript": "^5.5.4", @@ -53,8 +53,8 @@ "types": "./dist/index.d.ts", "type": "module", "dependencies": { - "bits-ui": "1.0.0-next.15", - "svelte-toolbelt": "^0.4.2" + "bits-ui": "1.0.0-next.28", + "svelte-toolbelt": "^0.4.4" }, "engines": { "pnpm": ">=8.7.0", diff --git a/packages/vaul-svelte/src/lib/components/drawer/drawer-content.svelte b/packages/vaul-svelte/src/lib/components/drawer/drawer-content.svelte index d9aac6e..19143f9 100644 --- a/packages/vaul-svelte/src/lib/components/drawer/drawer-content.svelte +++ b/packages/vaul-svelte/src/lib/components/drawer/drawer-content.svelte @@ -39,7 +39,7 @@ const mergedProps = $derived(mergeProps(restProps, contentState.props)); - + {@render children?.()} (contentState.mounted = m)} /> diff --git a/packages/vaul-svelte/src/lib/components/drawer/drawer.svelte b/packages/vaul-svelte/src/lib/components/drawer/drawer.svelte index cdf7102..5152311 100644 --- a/packages/vaul-svelte/src/lib/components/drawer/drawer.svelte +++ b/packages/vaul-svelte/src/lib/components/drawer/drawer.svelte @@ -1,6 +1,6 @@ { rootState.onDialogOpenChange(o); + handleOpenChange(o); }} {...restProps} /> diff --git a/packages/vaul-svelte/src/lib/vaul.svelte.ts b/packages/vaul-svelte/src/lib/vaul.svelte.ts index 021908e..61b2154 100644 --- a/packages/vaul-svelte/src/lib/vaul.svelte.ts +++ b/packages/vaul-svelte/src/lib/vaul.svelte.ts @@ -1,12 +1,11 @@ import { untrack } from "svelte"; -import { - type Box, - type Getter, - type ReadableBoxedValues, - type WithRefProps, - type WritableBox, - type WritableBoxedValues, - afterTick, +import type { + Box, + Getter, + ReadableBoxedValues, + WithRefProps, + WritableBox, + WritableBoxedValues, } from "svelte-toolbelt"; import type { MouseEventHandler, PointerEventHandler } from "svelte/elements"; import { isInput, isVertical } from "./internal/helpers/is.js"; @@ -132,7 +131,6 @@ export class DrawerRootState { this.autoFocus = props.autoFocus; // this.snapPointsState = new SnapPointsState(this); - this.positionFixedState = new PositionFixed(this); $effect(() => { @@ -228,13 +226,13 @@ export class DrawerRootState { }); }); - $effect(() => { - if (!this.modal.current) { - window.requestAnimationFrame(() => { - document.body.style.pointerEvents = "auto"; - }); - } - }); + // $effect(() => { + // if (!this.modal.current) { + // window.requestAnimationFrame(() => { + // document.body.style.pointerEvents = "auto"; + // }); + // } + // }); } setActiveSnapPoint = (snapPoint: string | number | null) => { @@ -746,7 +744,7 @@ class DrawerOverlayState { type DrawerContentStateProps = WithRefProps & ReadableBoxedValues<{ - onInteractOutside: (e: MouseEvent | TouchEvent | PointerEvent) => void; + onInteractOutside: (e: PointerEvent) => void; onPointerDown: PointerEventHandler; onPointerMove: PointerEventHandler; onPointerUp: PointerEventHandler; @@ -855,7 +853,7 @@ class DrawerContentState { // } }; - onInteractOutside = (e: MouseEvent | TouchEvent | PointerEvent) => { + onInteractOutside = (e: PointerEvent) => { this.#onInteractOutsideProp.current(e); if (!this.#root.modal.current || e.defaultPrevented) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 723214d..ca52bf8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ importers: version: 2.27.1 '@huntabyte/eslint-config': specifier: ^0.3.2 - version: 0.3.2(@vue/compiler-sfc@3.4.35)(eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.0.0-next.260))(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0-next.260))(svelte@5.0.0-next.260)(typescript@5.5.4)(vitest@2.1.1) + version: 0.3.2(@vue/compiler-sfc@3.4.35)(eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.1.3))(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.1.3))(svelte@5.1.3)(typescript@5.5.4)(vitest@2.1.1) '@huntabyte/eslint-plugin': specifier: ^0.1.0 version: 0.1.0(eslint@9.8.0) @@ -25,22 +25,22 @@ importers: version: 9.8.0 eslint-plugin-svelte: specifier: ^2.44.1 - version: 2.44.1(eslint@9.8.0)(svelte@5.0.0-next.260) + version: 2.44.1(eslint@9.8.0)(svelte@5.1.3) prettier: specifier: ^3.2.5 version: 3.3.3 prettier-plugin-svelte: specifier: ^3.2.7 - version: 3.2.7(prettier@3.3.3)(svelte@5.0.0-next.260) + version: 3.2.7(prettier@3.3.3)(svelte@5.1.3) prettier-plugin-tailwindcss: specifier: 0.6.8 - version: 0.6.8(prettier-plugin-svelte@3.2.7(prettier@3.3.3)(svelte@5.0.0-next.260))(prettier@3.3.3) + version: 0.6.8(prettier-plugin-svelte@3.2.7(prettier@3.3.3)(svelte@5.1.3))(prettier@3.3.3) svelte: - specifier: ^5.0.0-next.260 - version: 5.0.0-next.260 + specifier: ^5.0.0 + version: 5.1.3 svelte-eslint-parser: specifier: ^0.41.1 - version: 0.41.1(svelte@5.0.0-next.260) + version: 0.41.1(svelte@5.1.3) wrangler: specifier: ^3.44.0 version: 3.68.0(@cloudflare/workers-types@4.20240729.0) @@ -48,21 +48,21 @@ importers: packages/vaul-svelte: dependencies: bits-ui: - specifier: 1.0.0-next.15 - version: 1.0.0-next.15(svelte@5.0.0-next.260) + specifier: 1.0.0-next.28 + version: 1.0.0-next.28(svelte@5.1.3) svelte-toolbelt: - specifier: ^0.4.2 - version: 0.4.2(svelte@5.0.0-next.260) + specifier: ^0.4.4 + version: 0.4.4(svelte@5.1.3) devDependencies: '@sveltejs/kit': specifier: ^2.6.1 - version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)) + version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)) '@sveltejs/package': specifier: ^2.3.5 - version: 2.3.5(svelte@5.0.0-next.260)(typescript@5.5.4) + version: 2.3.5(svelte@5.1.3)(typescript@5.5.4) '@sveltejs/vite-plugin-svelte': - specifier: 4.0.0-next.7 - version: 4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)) + specifier: 4.0.0 + version: 4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)) '@testing-library/dom': specifier: ^10.4.0 version: 10.4.0 @@ -71,7 +71,7 @@ importers: version: 6.4.8 '@testing-library/svelte': specifier: ^5.2.1 - version: 5.2.1(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14))(vitest@2.1.1(@types/node@20.14.14)(jsdom@24.1.1)) + version: 5.2.1(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14))(vitest@2.1.1(@types/node@20.14.14)(jsdom@24.1.1)) '@testing-library/user-event': specifier: ^14.5.2 version: 14.5.2(@testing-library/dom@10.4.0) @@ -97,11 +97,11 @@ importers: specifier: ^0.2.8 version: 0.2.9 svelte: - specifier: ^5.0.0-next.260 - version: 5.0.0-next.260 + specifier: ^5.0.0 + version: 5.1.3 svelte-check: specifier: ^4.0.4 - version: 4.0.4(picomatch@4.0.2)(svelte@5.0.0-next.260)(typescript@5.5.4) + version: 4.0.4(picomatch@4.0.2)(svelte@5.1.3)(typescript@5.5.4) tslib: specifier: ^2.6.3 version: 2.6.3 @@ -120,6 +120,9 @@ importers: sites/docs: dependencies: + bits-ui: + specifier: 1.0.0-next.28 + version: 1.0.0-next.28(svelte@5.1.3) clsx: specifier: ^2.1.1 version: 2.1.1 @@ -129,13 +132,13 @@ importers: devDependencies: '@sveltejs/adapter-cloudflare': specifier: ^4.7.2 - version: 4.7.2(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(wrangler@3.68.0(@cloudflare/workers-types@4.20240729.0)) + version: 4.7.2(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(wrangler@3.68.0(@cloudflare/workers-types@4.20240729.0)) '@sveltejs/kit': specifier: ^2.6.1 - version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)) + version: 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)) '@sveltejs/vite-plugin-svelte': - specifier: 4.0.0-next.7 - version: 4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)) + specifier: 4.0.0 + version: 4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)) autoprefixer: specifier: ^10.4.17 version: 10.4.20(postcss@8.4.40) @@ -146,11 +149,11 @@ importers: specifier: ^5.0.2 version: 5.0.2(jiti@1.21.0)(postcss@8.4.40) svelte: - specifier: ^5.0.0-next.260 - version: 5.0.0-next.260 + specifier: ^5.0.0 + version: 5.1.3 svelte-check: specifier: ^4.0.4 - version: 4.0.4(picomatch@4.0.2)(svelte@5.0.0-next.260)(typescript@5.5.4) + version: 4.0.4(picomatch@4.0.2)(svelte@5.1.3)(typescript@5.5.4) tailwindcss: specifier: ^3.4.13 version: 3.4.13 @@ -930,8 +933,8 @@ packages: svelte: ^5.0.0-next.96 || ^5.0.0 vite: ^5.0.0 - '@sveltejs/vite-plugin-svelte@4.0.0-next.7': - resolution: {integrity: sha512-yMUnAqquoayvBDztk1rWUgdtvjv7YcHgopCAB7sWl9SQht8U/7lqwTlJU0ZTAY09pFFRe6bbakd7YoiyyIvJiA==} + '@sveltejs/vite-plugin-svelte@4.0.0': + resolution: {integrity: sha512-kpVJwF+gNiMEsoHaw+FJL76IYiwBikkxYU83+BpqQLdVMff19KeRKLd2wisS8niNBMJ2omv5gG+iGDDwd8jzag==} engines: {node: ^18.0.0 || ^20.0.0 || >=22} peerDependencies: svelte: ^5.0.0-next.96 || ^5.0.0 @@ -1217,11 +1220,6 @@ packages: resolution: {integrity: sha512-TgUZgYvqZprrl7YldZNoa9OciCAyZR+Ejm9eXzKCmjsF5IKp/wgQ7Z/ZpjpGTIUPwrHQIcYeI8qDh4PsEwxMbw==} engines: {node: '>=0.4.0'} - acorn@8.11.3: - resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} - engines: {node: '>=0.4.0'} - hasBin: true - acorn@8.12.1: resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} engines: {node: '>=0.4.0'} @@ -1348,8 +1346,8 @@ packages: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} - bits-ui@1.0.0-next.15: - resolution: {integrity: sha512-RjjNO00BFsqWfFQmjGGYSBXD2LoDFZrjWcswS/QqaSIzf0MDoNl7pTRLu9+2nh1BrSIQQgNG3LJjwSjRa21Msg==} + bits-ui@1.0.0-next.28: + resolution: {integrity: sha512-mA2gf79xVLmq2mY0tAzC6ZBB8hUJunxb20/04kOVIN1UL+d75BvA3hdSdEgSj0TrEWU1GmlJr1HWKW4+Q1JIhA==} engines: {node: '>=18', pnpm: '>=8.7.0'} peerDependencies: svelte: ^5.0.0-next.1 @@ -1603,6 +1601,15 @@ packages: supports-color: optional: true + debug@4.3.7: + resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + decamelize-keys@1.1.1: resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} engines: {node: '>=0.10.0'} @@ -2286,8 +2293,8 @@ packages: inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - inline-style-parser@0.2.3: - resolution: {integrity: sha512-qlD8YNDqyTKTyuITrDOffsl6Tdhv+UC4hcdAVuQsK4IMQ99nSgd1MIA/Q+jQYoh9r3hVUXhYh7urSRmXPkW04g==} + inline-style-parser@0.2.4: + resolution: {integrity: sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==} internal-slot@1.0.6: resolution: {integrity: sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==} @@ -2581,6 +2588,9 @@ packages: magic-string@0.30.11: resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} + magic-string@0.30.12: + resolution: {integrity: sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==} + map-obj@1.0.1: resolution: {integrity: sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==} engines: {node: '>=0.10.0'} @@ -2677,6 +2687,9 @@ packages: ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + mustache@4.2.0: resolution: {integrity: sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==} hasBin: true @@ -3429,8 +3442,8 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - style-to-object@1.0.6: - resolution: {integrity: sha512-khxq+Qm3xEyZfKd/y9L3oIWQimxuc4STrQKtQn8aSDRHb8mFgpukgX1hdzfrMEW6JCjyJ8p89x+IUMVnCBI1PA==} + style-to-object@1.0.8: + resolution: {integrity: sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==} sucrase@3.35.0: resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} @@ -3466,9 +3479,9 @@ packages: svelte: optional: true - svelte-toolbelt@0.4.2: - resolution: {integrity: sha512-gepP5X070uw/lcAIhlp4Dw+LUQ8hyVa90DL7OqA8B622KkWOxVVIZvUOJSIsy27Ik68ITF9un+9NcLDuh82jbQ==} - engines: {node: '>=20', pnpm: '>=8.7.0'} + svelte-toolbelt@0.4.4: + resolution: {integrity: sha512-sNSJ4zUUVpou/p7O2IagMGfSPKHwqsOCYvDceFEMoPmkRXlNDvRethDDAzYM8hO3ayYpdEAPG4H8wsD385hspw==} + engines: {node: '>=18', pnpm: '>=8.7.0'} peerDependencies: svelte: ^5.0.0-next.126 @@ -3478,8 +3491,8 @@ packages: svelte: ^3.55 || ^4.0.0-next.0 || ^4.0 || ^5.0.0-next.0 typescript: ^4.9.4 || ^5.0.0 - svelte@5.0.0-next.260: - resolution: {integrity: sha512-TGcvG71DUklf5P4UmJxOQiVxWYLPp4c6o+NUjmVMsAXKsCMXOTXw+QpnmEWw5D95Sj7SrmAGeIT+p/uvHAUZXg==} + svelte@5.1.3: + resolution: {integrity: sha512-Sl8UFHlBvF54aK8MElFvyvaUfPE2REOz6LnhR2pBClCL11MU4qpn4V+KgAggaXxDyrP2iQixvHbtpHqL/zXlSQ==} engines: {node: '>=18'} symbol-tree@3.2.4: @@ -3717,10 +3730,10 @@ packages: terser: optional: true - vitefu@1.0.2: - resolution: {integrity: sha512-0/iAvbXyM3RiPPJ4lyD4w6Mjgtf4ejTK6TPvTNG3H32PLwuT0N/ZjJLiXug7ETE/LWtTeHw9WRv7uX/tIKYyKg==} + vitefu@1.0.3: + resolution: {integrity: sha512-iKKfOMBHob2WxEJbqbJjHAkmYgvFDPhuqrO82om83S8RLk+17FtyMBfcyeH8GqD0ihShtkMW/zzJgiA51hCNCQ==} peerDependencies: - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0-beta.0 peerDependenciesMeta: vite: optional: true @@ -3945,7 +3958,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@antfu/eslint-config@2.24.1(@vue/compiler-sfc@3.4.35)(eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.0.0-next.260))(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0-next.260))(svelte@5.0.0-next.260)(typescript@5.5.4)(vitest@2.1.1)': + '@antfu/eslint-config@2.24.1(@vue/compiler-sfc@3.4.35)(eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.1.3))(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.1.3))(svelte@5.1.3)(typescript@5.5.4)(vitest@2.1.1)': dependencies: '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 @@ -3965,7 +3978,7 @@ snapshots: eslint-plugin-markdown: 5.1.0(eslint@9.8.0) eslint-plugin-n: 17.10.1(eslint@9.8.0) eslint-plugin-no-only-tests: 3.1.0 - eslint-plugin-perfectionist: 3.1.0(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0-next.260))(svelte@5.0.0-next.260)(typescript@5.5.4)(vue-eslint-parser@9.4.3(eslint@9.8.0)) + eslint-plugin-perfectionist: 3.1.0(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.1.3))(svelte@5.1.3)(typescript@5.5.4)(vue-eslint-parser@9.4.3(eslint@9.8.0)) eslint-plugin-regexp: 2.6.0(eslint@9.8.0) eslint-plugin-toml: 0.11.1(eslint@9.8.0) eslint-plugin-unicorn: 55.0.0(eslint@9.8.0) @@ -3984,8 +3997,8 @@ snapshots: yaml-eslint-parser: 1.2.3 yargs: 17.7.2 optionalDependencies: - eslint-plugin-svelte: 2.44.1(eslint@9.8.0)(svelte@5.0.0-next.260) - svelte-eslint-parser: 0.41.1(svelte@5.0.0-next.260) + eslint-plugin-svelte: 2.44.1(eslint@9.8.0)(svelte@5.1.3) + svelte-eslint-parser: 0.41.1(svelte@5.1.3) transitivePeerDependencies: - '@vue/compiler-sfc' - supports-color @@ -4431,9 +4444,9 @@ snapshots: '@humanwhocodes/retry@0.3.0': {} - '@huntabyte/eslint-config@0.3.2(@vue/compiler-sfc@3.4.35)(eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.0.0-next.260))(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0-next.260))(svelte@5.0.0-next.260)(typescript@5.5.4)(vitest@2.1.1)': + '@huntabyte/eslint-config@0.3.2(@vue/compiler-sfc@3.4.35)(eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.1.3))(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.1.3))(svelte@5.1.3)(typescript@5.5.4)(vitest@2.1.1)': dependencies: - '@antfu/eslint-config': 2.24.1(@vue/compiler-sfc@3.4.35)(eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.0.0-next.260))(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0-next.260))(svelte@5.0.0-next.260)(typescript@5.5.4)(vitest@2.1.1) + '@antfu/eslint-config': 2.24.1(@vue/compiler-sfc@3.4.35)(eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.1.3))(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.1.3))(svelte@5.1.3)(typescript@5.5.4)(vitest@2.1.1) '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 '@huntabyte/eslint-plugin': 0.1.0(eslint@9.8.0) @@ -4442,10 +4455,10 @@ snapshots: chalk: 5.3.0 eslint: 9.8.0 eslint-flat-config-utils: 0.2.5 - eslint-plugin-svelte: 2.44.1(eslint@9.8.0)(svelte@5.0.0-next.260) + eslint-plugin-svelte: 2.44.1(eslint@9.8.0)(svelte@5.1.3) local-pkg: 0.5.0 parse-gitignore: 2.0.0 - svelte-eslint-parser: 0.41.1(svelte@5.0.0-next.260) + svelte-eslint-parser: 0.41.1(svelte@5.1.3) yargs: 17.7.2 transitivePeerDependencies: - '@eslint-react/eslint-plugin' @@ -4660,17 +4673,17 @@ snapshots: - supports-color - typescript - '@sveltejs/adapter-cloudflare@4.7.2(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(wrangler@3.68.0(@cloudflare/workers-types@4.20240729.0))': + '@sveltejs/adapter-cloudflare@4.7.2(@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(wrangler@3.68.0(@cloudflare/workers-types@4.20240729.0))': dependencies: '@cloudflare/workers-types': 4.20240729.0 - '@sveltejs/kit': 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)) + '@sveltejs/kit': 2.6.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)) esbuild: 0.21.5 worktop: 0.8.0-next.18 wrangler: 3.68.0(@cloudflare/workers-types@4.20240729.0) - '@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14))': + '@sveltejs/kit@2.6.1(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)) + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.1.1 @@ -4682,40 +4695,40 @@ snapshots: sade: 1.8.1 set-cookie-parser: 2.6.0 sirv: 2.0.4 - svelte: 5.0.0-next.260 + svelte: 5.1.3 tiny-glob: 0.2.9 vite: 5.4.8(@types/node@20.14.14) - '@sveltejs/package@2.3.5(svelte@5.0.0-next.260)(typescript@5.5.4)': + '@sveltejs/package@2.3.5(svelte@5.1.3)(typescript@5.5.4)': dependencies: chokidar: 4.0.1 kleur: 4.1.5 sade: 1.8.1 semver: 7.6.3 - svelte: 5.0.0-next.260 - svelte2tsx: 0.7.21(svelte@5.0.0-next.260)(typescript@5.5.4) + svelte: 5.1.3 + svelte2tsx: 0.7.21(svelte@5.1.3)(typescript@5.5.4) transitivePeerDependencies: - typescript - '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14))': + '@sveltejs/vite-plugin-svelte-inspector@3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14))': dependencies: - '@sveltejs/vite-plugin-svelte': 4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)) - debug: 4.3.6 - svelte: 5.0.0-next.260 + '@sveltejs/vite-plugin-svelte': 4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)) + debug: 4.3.7 + svelte: 5.1.3 vite: 5.4.8(@types/node@20.14.14) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14))': + '@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0-next.7(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14)) - debug: 4.3.6 + '@sveltejs/vite-plugin-svelte-inspector': 3.0.0-next.3(@sveltejs/vite-plugin-svelte@4.0.0(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)))(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14)) + debug: 4.3.7 deepmerge: 4.3.1 kleur: 4.1.5 - magic-string: 0.30.11 - svelte: 5.0.0-next.260 + magic-string: 0.30.12 + svelte: 5.1.3 vite: 5.4.8(@types/node@20.14.14) - vitefu: 1.0.2(vite@5.4.8(@types/node@20.14.14)) + vitefu: 1.0.3(vite@5.4.8(@types/node@20.14.14)) transitivePeerDependencies: - supports-color @@ -4752,10 +4765,10 @@ snapshots: lodash: 4.17.21 redent: 3.0.0 - '@testing-library/svelte@5.2.1(svelte@5.0.0-next.260)(vite@5.4.8(@types/node@20.14.14))(vitest@2.1.1(@types/node@20.14.14)(jsdom@24.1.1))': + '@testing-library/svelte@5.2.1(svelte@5.1.3)(vite@5.4.8(@types/node@20.14.14))(vitest@2.1.1(@types/node@20.14.14)(jsdom@24.1.1))': dependencies: '@testing-library/dom': 10.4.0 - svelte: 5.0.0-next.260 + svelte: 5.1.3 optionalDependencies: vite: 5.4.8(@types/node@20.14.14) vitest: 2.1.1(@types/node@20.14.14)(jsdom@24.1.1) @@ -5061,7 +5074,7 @@ snapshots: '@vue/compiler-ssr': 3.4.35 '@vue/shared': 3.4.35 estree-walker: 2.0.2 - magic-string: 0.30.11 + magic-string: 0.30.12 postcss: 8.4.47 source-map-js: 1.2.1 @@ -5082,8 +5095,6 @@ snapshots: acorn-walk@8.3.1: {} - acorn@8.11.3: {} - acorn@8.12.1: {} agent-base@7.1.0: @@ -5208,15 +5219,15 @@ snapshots: binary-extensions@2.2.0: {} - bits-ui@1.0.0-next.15(svelte@5.0.0-next.260): + bits-ui@1.0.0-next.28(svelte@5.1.3): dependencies: '@floating-ui/core': 1.6.5 '@floating-ui/dom': 1.6.8 '@internationalized/date': 3.5.6 esm-env: 1.0.0 - runed: 0.15.2(svelte@5.0.0-next.260) - svelte: 5.0.0-next.260 - svelte-toolbelt: 0.4.2(svelte@5.0.0-next.260) + runed: 0.15.2(svelte@5.1.3) + svelte: 5.1.3 + svelte-toolbelt: 0.4.4(svelte@5.1.3) blake3-wasm@2.1.5: {} @@ -5455,6 +5466,10 @@ snapshots: dependencies: ms: 2.1.2 + debug@4.3.7: + dependencies: + ms: 2.1.3 + decamelize-keys@1.1.1: dependencies: decamelize: 1.2.0 @@ -5784,7 +5799,7 @@ snapshots: eslint-plugin-no-only-tests@3.1.0: {} - eslint-plugin-perfectionist@3.1.0(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.0.0-next.260))(svelte@5.0.0-next.260)(typescript@5.5.4)(vue-eslint-parser@9.4.3(eslint@9.8.0)): + eslint-plugin-perfectionist@3.1.0(eslint@9.8.0)(svelte-eslint-parser@0.41.1(svelte@5.1.3))(svelte@5.1.3)(typescript@5.5.4)(vue-eslint-parser@9.4.3(eslint@9.8.0)): dependencies: '@typescript-eslint/types': 8.0.0 '@typescript-eslint/utils': 8.0.0(eslint@9.8.0)(typescript@5.5.4) @@ -5792,8 +5807,8 @@ snapshots: minimatch: 10.0.1 natural-compare-lite: 1.4.0 optionalDependencies: - svelte: 5.0.0-next.260 - svelte-eslint-parser: 0.41.1(svelte@5.0.0-next.260) + svelte: 5.1.3 + svelte-eslint-parser: 0.41.1(svelte@5.1.3) vue-eslint-parser: 9.4.3(eslint@9.8.0) transitivePeerDependencies: - supports-color @@ -5810,7 +5825,7 @@ snapshots: regexp-ast-analysis: 0.7.1 scslre: 0.3.0 - eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.0.0-next.260): + eslint-plugin-svelte@2.44.1(eslint@9.8.0)(svelte@5.1.3): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.8.0) '@jridgewell/sourcemap-codec': 1.5.0 @@ -5823,9 +5838,9 @@ snapshots: postcss-safe-parser: 6.0.0(postcss@8.4.40) postcss-selector-parser: 6.1.1 semver: 7.6.3 - svelte-eslint-parser: 0.41.1(svelte@5.0.0-next.260) + svelte-eslint-parser: 0.41.1(svelte@5.1.3) optionalDependencies: - svelte: 5.0.0-next.260 + svelte: 5.1.3 transitivePeerDependencies: - ts-node @@ -6292,7 +6307,7 @@ snapshots: inherits@2.0.4: {} - inline-style-parser@0.2.3: {} + inline-style-parser@0.2.4: {} internal-slot@1.0.6: dependencies: @@ -6507,7 +6522,7 @@ snapshots: jsonc-eslint-parser@2.4.0: dependencies: - acorn: 8.11.3 + acorn: 8.12.1 eslint-visitor-keys: 3.4.3 espree: 9.6.1 semver: 7.6.3 @@ -6598,6 +6613,10 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 + magic-string@0.30.12: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + map-obj@1.0.1: {} map-obj@4.3.0: {} @@ -6655,7 +6674,7 @@ snapshots: miniflare@3.20240725.0: dependencies: '@cspotcode/source-map-support': 0.8.1 - acorn: 8.11.3 + acorn: 8.12.1 acorn-walk: 8.3.1 capnp-ts: 0.7.0 exit-hook: 2.2.1 @@ -6703,7 +6722,7 @@ snapshots: mlly@1.4.2: dependencies: - acorn: 8.11.3 + acorn: 8.12.1 pathe: 1.1.2 pkg-types: 1.0.3 ufo: 1.3.2 @@ -6714,6 +6733,8 @@ snapshots: ms@2.1.2: {} + ms@2.1.3: {} + mustache@4.2.0: {} mz@2.7.0: @@ -6985,16 +7006,16 @@ snapshots: prelude-ls@1.2.1: {} - prettier-plugin-svelte@3.2.7(prettier@3.3.3)(svelte@5.0.0-next.260): + prettier-plugin-svelte@3.2.7(prettier@3.3.3)(svelte@5.1.3): dependencies: prettier: 3.3.3 - svelte: 5.0.0-next.260 + svelte: 5.1.3 - prettier-plugin-tailwindcss@0.6.8(prettier-plugin-svelte@3.2.7(prettier@3.3.3)(svelte@5.0.0-next.260))(prettier@3.3.3): + prettier-plugin-tailwindcss@0.6.8(prettier-plugin-svelte@3.2.7(prettier@3.3.3)(svelte@5.1.3))(prettier@3.3.3): dependencies: prettier: 3.3.3 optionalDependencies: - prettier-plugin-svelte: 3.2.7(prettier@3.3.3)(svelte@5.0.0-next.260) + prettier-plugin-svelte: 3.2.7(prettier@3.3.3)(svelte@5.1.3) prettier@2.8.8: {} @@ -7167,10 +7188,10 @@ snapshots: dependencies: queue-microtask: 1.2.3 - runed@0.15.2(svelte@5.0.0-next.260): + runed@0.15.2(svelte@5.1.3): dependencies: esm-env: 1.0.0 - svelte: 5.0.0-next.260 + svelte: 5.1.3 sade@1.8.1: dependencies: @@ -7383,9 +7404,9 @@ snapshots: strip-json-comments@3.1.1: {} - style-to-object@1.0.6: + style-to-object@1.0.8: dependencies: - inline-style-parser: 0.2.3 + inline-style-parser: 0.2.4 sucrase@3.35.0: dependencies: @@ -7407,19 +7428,19 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-check@4.0.4(picomatch@4.0.2)(svelte@5.0.0-next.260)(typescript@5.5.4): + svelte-check@4.0.4(picomatch@4.0.2)(svelte@5.1.3)(typescript@5.5.4): dependencies: '@jridgewell/trace-mapping': 0.3.25 chokidar: 4.0.1 fdir: 6.4.0(picomatch@4.0.2) picocolors: 1.0.1 sade: 1.8.1 - svelte: 5.0.0-next.260 + svelte: 5.1.3 typescript: 5.5.4 transitivePeerDependencies: - picomatch - svelte-eslint-parser@0.41.1(svelte@5.0.0-next.260): + svelte-eslint-parser@0.41.1(svelte@5.1.3): dependencies: eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -7427,22 +7448,22 @@ snapshots: postcss: 8.4.40 postcss-scss: 4.0.9(postcss@8.4.40) optionalDependencies: - svelte: 5.0.0-next.260 + svelte: 5.1.3 - svelte-toolbelt@0.4.2(svelte@5.0.0-next.260): + svelte-toolbelt@0.4.4(svelte@5.1.3): dependencies: clsx: 2.1.1 - style-to-object: 1.0.6 - svelte: 5.0.0-next.260 + style-to-object: 1.0.8 + svelte: 5.1.3 - svelte2tsx@0.7.21(svelte@5.0.0-next.260)(typescript@5.5.4): + svelte2tsx@0.7.21(svelte@5.1.3)(typescript@5.5.4): dependencies: dedent-js: 1.0.1 pascal-case: 3.1.2 - svelte: 5.0.0-next.260 + svelte: 5.1.3 typescript: 5.5.4 - svelte@5.0.0-next.260: + svelte@5.1.3: dependencies: '@ampproject/remapping': 2.3.0 '@jridgewell/sourcemap-codec': 1.5.0 @@ -7699,7 +7720,7 @@ snapshots: '@types/node': 20.14.14 fsevents: 2.3.3 - vitefu@1.0.2(vite@5.4.8(@types/node@20.14.14)): + vitefu@1.0.3(vite@5.4.8(@types/node@20.14.14)): optionalDependencies: vite: 5.4.8(@types/node@20.14.14) diff --git a/sites/docs/package.json b/sites/docs/package.json index 1191ce3..5888407 100644 --- a/sites/docs/package.json +++ b/sites/docs/package.json @@ -13,17 +13,18 @@ "devDependencies": { "@sveltejs/adapter-cloudflare": "^4.7.2", "@sveltejs/kit": "^2.6.1", - "@sveltejs/vite-plugin-svelte": "4.0.0-next.7", + "@sveltejs/vite-plugin-svelte": "4.0.0", "autoprefixer": "^10.4.17", "postcss": "^8.4.33", "postcss-load-config": "^5.0.2", - "svelte": "^5.0.0-next.260", + "svelte": "^5.0.0", "svelte-check": "^4.0.4", "tailwindcss": "^3.4.13", "typescript": "^5.5.4", "vite": "^5.4.8" }, "dependencies": { + "bits-ui": "1.0.0-next.28", "clsx": "^2.1.1", "vaul-svelte": "workspace:*" }, diff --git a/sites/docs/src/lib/components/hero.svelte b/sites/docs/src/lib/components/hero.svelte index 70913ed..e75c332 100644 --- a/sites/docs/src/lib/components/hero.svelte +++ b/sites/docs/src/lib/components/hero.svelte @@ -44,7 +44,7 @@

Drawer component for Svelte.

- +