diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a5f586d95..e953fc5d9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: version: 9.12.0 '@huntabyte/eslint-config': specifier: ^0.3.2 - version: 0.3.2(@vue/compiler-sfc@3.5.12)(eslint-plugin-svelte@2.44.1(eslint@9.7.0)(svelte@5.0.4))(eslint@9.7.0)(svelte-eslint-parser@0.42.0(svelte@5.0.4))(svelte@5.0.4)(typescript@5.6.3)(vitest@2.1.3(@types/node@20.16.14)(terser@5.36.0)) + version: 0.3.2(@vue/compiler-sfc@3.5.12)(eslint-plugin-svelte@2.44.1(eslint@9.7.0)(svelte@5.0.4))(eslint@9.7.0)(svelte-eslint-parser@0.42.0(svelte@5.0.4))(svelte@5.0.4)(typescript@5.6.3)(vitest@2.1.3) '@typescript-eslint/eslint-plugin': specifier: ^8.10.0 version: 8.10.0(@typescript-eslint/parser@8.10.0(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3) @@ -172,8 +172,8 @@ importers: specifier: ^10.4.19 version: 10.4.20(postcss@8.4.47) bits-ui: - specifier: ^1.0.0-next.49 - version: 1.0.0-next.49(svelte@5.0.4) + specifier: 1.0.0-next.63 + version: 1.0.0-next.63(svelte@5.0.4) clsx: specifier: ^2.1.1 version: 2.1.1 @@ -2293,8 +2293,8 @@ packages: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} - bits-ui@1.0.0-next.49: - resolution: {integrity: sha512-7EoNj7pu9+RVv6MM1kGVvDzH2aA38v07Q+BDSq8yiLIHxZ5dTkDHwoikhtT/+jMU25c0uYvHq44GEQX+027IFw==} + bits-ui@1.0.0-next.63: + resolution: {integrity: sha512-3z4+N+KudMK8AeBzhy/0568zVoEJCUgL4RkElB41BWGjofk68en2TaAfKFhhc/bn4z+uKrs9r1NtybDdsy0bpA==} engines: {node: '>=18', pnpm: '>=8.7.0'} peerDependencies: svelte: ^5.0.0-next.1 @@ -6023,7 +6023,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 - '@antfu/eslint-config@2.22.0(@vue/compiler-sfc@3.5.12)(eslint-plugin-svelte@2.44.1(eslint@9.7.0)(svelte@5.0.4))(eslint@9.7.0)(svelte-eslint-parser@0.42.0(svelte@5.0.4))(svelte@5.0.4)(typescript@5.6.3)(vitest@2.1.3(@types/node@20.16.14)(terser@5.36.0))': + '@antfu/eslint-config@2.22.0(@vue/compiler-sfc@3.5.12)(eslint-plugin-svelte@2.44.1(eslint@9.7.0)(svelte@5.0.4))(eslint@9.7.0)(svelte-eslint-parser@0.42.0(svelte@5.0.4))(svelte@5.0.4)(typescript@5.6.3)(vitest@2.1.3)': dependencies: '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 @@ -6048,7 +6048,7 @@ snapshots: eslint-plugin-toml: 0.11.1(eslint@9.7.0) eslint-plugin-unicorn: 54.0.0(eslint@9.7.0) eslint-plugin-unused-imports: 4.0.0(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0) - eslint-plugin-vitest: 0.5.4(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3)(vitest@2.1.3(@types/node@20.16.14)(terser@5.36.0)) + eslint-plugin-vitest: 0.5.4(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3)(vitest@2.1.3) eslint-plugin-vue: 9.27.0(eslint@9.7.0) eslint-plugin-yml: 1.14.0(eslint@9.7.0) eslint-processor-vue-blocks: 0.1.2(@vue/compiler-sfc@3.5.12)(eslint@9.7.0) @@ -6735,9 +6735,9 @@ snapshots: '@humanwhocodes/retry@0.3.0': {} - '@huntabyte/eslint-config@0.3.2(@vue/compiler-sfc@3.5.12)(eslint-plugin-svelte@2.44.1(eslint@9.7.0)(svelte@5.0.4))(eslint@9.7.0)(svelte-eslint-parser@0.42.0(svelte@5.0.4))(svelte@5.0.4)(typescript@5.6.3)(vitest@2.1.3(@types/node@20.16.14)(terser@5.36.0))': + '@huntabyte/eslint-config@0.3.2(@vue/compiler-sfc@3.5.12)(eslint-plugin-svelte@2.44.1(eslint@9.7.0)(svelte@5.0.4))(eslint@9.7.0)(svelte-eslint-parser@0.42.0(svelte@5.0.4))(svelte@5.0.4)(typescript@5.6.3)(vitest@2.1.3)': dependencies: - '@antfu/eslint-config': 2.22.0(@vue/compiler-sfc@3.5.12)(eslint-plugin-svelte@2.44.1(eslint@9.7.0)(svelte@5.0.4))(eslint@9.7.0)(svelte-eslint-parser@0.42.0(svelte@5.0.4))(svelte@5.0.4)(typescript@5.6.3)(vitest@2.1.3(@types/node@20.16.14)(terser@5.36.0)) + '@antfu/eslint-config': 2.22.0(@vue/compiler-sfc@3.5.12)(eslint-plugin-svelte@2.44.1(eslint@9.7.0)(svelte@5.0.4))(eslint@9.7.0)(svelte-eslint-parser@0.42.0(svelte@5.0.4))(svelte@5.0.4)(typescript@5.6.3)(vitest@2.1.3) '@antfu/install-pkg': 0.3.3 '@clack/prompts': 0.7.0 '@huntabyte/eslint-plugin': 0.1.0(eslint@9.7.0) @@ -7795,7 +7795,7 @@ snapshots: chai: 5.1.1 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.3(@vitest/spy@2.1.3)(vite@5.4.9(@types/node@20.16.14)(terser@5.36.0))': + '@vitest/mocker@2.1.3(@vitest/spy@2.1.3)(vite@5.4.9)': dependencies: '@vitest/spy': 2.1.3 estree-walker: 3.0.3 @@ -8054,7 +8054,7 @@ snapshots: binary-extensions@2.2.0: {} - bits-ui@1.0.0-next.49(svelte@5.0.4): + bits-ui@1.0.0-next.63(svelte@5.0.4): dependencies: '@floating-ui/core': 1.6.4 '@floating-ui/dom': 1.6.7 @@ -9081,7 +9081,7 @@ snapshots: optionalDependencies: '@typescript-eslint/eslint-plugin': 8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3) - eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3)(vitest@2.1.3(@types/node@20.16.14)(terser@5.36.0)): + eslint-plugin-vitest@0.5.4(@typescript-eslint/eslint-plugin@8.0.0-alpha.40(@typescript-eslint/parser@8.0.0-alpha.40(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3))(eslint@9.7.0)(typescript@5.6.3)(vitest@2.1.3): dependencies: '@typescript-eslint/utils': 7.16.0(eslint@9.7.0)(typescript@5.6.3) eslint: 9.7.0 @@ -12167,7 +12167,7 @@ snapshots: vaul-svelte@1.0.0-next.2(svelte@5.0.4): dependencies: - bits-ui: 1.0.0-next.49(svelte@5.0.4) + bits-ui: 1.0.0-next.63(svelte@5.0.4) svelte: 5.0.4 svelte-toolbelt: 0.4.4(svelte@5.0.4) @@ -12306,7 +12306,7 @@ snapshots: vitest@2.1.3(@types/node@20.16.14)(terser@5.36.0): dependencies: '@vitest/expect': 2.1.3 - '@vitest/mocker': 2.1.3(@vitest/spy@2.1.3)(vite@5.4.9(@types/node@20.16.14)(terser@5.36.0)) + '@vitest/mocker': 2.1.3(@vitest/spy@2.1.3)(vite@5.4.9) '@vitest/pretty-format': 2.1.3 '@vitest/runner': 2.1.3 '@vitest/snapshot': 2.1.3 diff --git a/sites/docs/package.json b/sites/docs/package.json index 045c51830..423e71495 100644 --- a/sites/docs/package.json +++ b/sites/docs/package.json @@ -43,7 +43,7 @@ "acorn": "^8.13.0", "acorn-typescript": "^1.4.13", "autoprefixer": "^10.4.19", - "bits-ui": "^1.0.0-next.49", + "bits-ui": "1.0.0-next.63", "clsx": "^2.1.1", "concurrently": "^9.0.1", "d3-scale": "^4.0.2", diff --git a/sites/docs/src/lib/registry/default/ui/alert-dialog/alert-dialog-content.svelte b/sites/docs/src/lib/registry/default/ui/alert-dialog/alert-dialog-content.svelte index ad9c080b8..858b8bc1b 100644 --- a/sites/docs/src/lib/registry/default/ui/alert-dialog/alert-dialog-content.svelte +++ b/sites/docs/src/lib/registry/default/ui/alert-dialog/alert-dialog-content.svelte @@ -6,11 +6,14 @@ let { ref = $bindable(null), class: className, + portalProps, ...restProps - }: WithoutChild = $props(); + }: WithoutChild & { + portalProps?: AlertDialogPrimitive.PortalProps; + } = $props(); - + & WithoutChildrenOrChild & { + portalProps?: DialogPrimitive.PortalProps; children: Snippet; } = $props(); - + - + + + diff --git a/sites/docs/src/lib/registry/default/ui/dialog/dialog-content.svelte b/sites/docs/src/lib/registry/default/ui/dialog/dialog-content.svelte index d0cd7a5d9..7e9868c4d 100644 --- a/sites/docs/src/lib/registry/default/ui/dialog/dialog-content.svelte +++ b/sites/docs/src/lib/registry/default/ui/dialog/dialog-content.svelte @@ -8,14 +8,16 @@ let { ref = $bindable(null), class: className, + portalProps, children, ...restProps }: WithoutChildrenOrChild & { + portalProps?: DialogPrimitive.PortalProps; children: Snippet; } = $props(); - + - + - + + + diff --git a/sites/docs/src/lib/registry/default/ui/hover-card/hover-card-content.svelte b/sites/docs/src/lib/registry/default/ui/hover-card/hover-card-content.svelte index ab1ec9389..99d2a0982 100644 --- a/sites/docs/src/lib/registry/default/ui/hover-card/hover-card-content.svelte +++ b/sites/docs/src/lib/registry/default/ui/hover-card/hover-card-content.svelte @@ -7,17 +7,22 @@ class: className, align = "center", sideOffset = 4, + portalProps, ...restProps - }: HoverCardPrimitive.ContentProps = $props(); + }: HoverCardPrimitive.ContentProps & { + portalProps?: HoverCardPrimitive.PortalProps; + } = $props(); - + + + diff --git a/sites/docs/src/lib/registry/default/ui/menubar/menubar-content.svelte b/sites/docs/src/lib/registry/default/ui/menubar/menubar-content.svelte index e88227ff1..7f6311c91 100644 --- a/sites/docs/src/lib/registry/default/ui/menubar/menubar-content.svelte +++ b/sites/docs/src/lib/registry/default/ui/menubar/menubar-content.svelte @@ -9,19 +9,24 @@ alignOffset = -4, align = "start", side = "bottom", + portalProps, ...restProps - }: MenubarPrimitive.ContentProps = $props(); + }: MenubarPrimitive.ContentProps & { + portalProps?: MenubarPrimitive.PortalProps; + } = $props(); - + + + diff --git a/sites/docs/src/lib/registry/default/ui/popover/popover-content.svelte b/sites/docs/src/lib/registry/default/ui/popover/popover-content.svelte index a897b3b99..d2fbacee4 100644 --- a/sites/docs/src/lib/registry/default/ui/popover/popover-content.svelte +++ b/sites/docs/src/lib/registry/default/ui/popover/popover-content.svelte @@ -7,11 +7,14 @@ class: className, sideOffset = 4, align = "center", + portalProps, ...restProps - }: PopoverPrimitive.ContentProps = $props(); + }: PopoverPrimitive.ContentProps & { + portalProps?: PopoverPrimitive.PortalProps; + } = $props(); - + = $props(); + }: WithoutChild & { + portalProps?: SelectPrimitive.PortalProps; + } = $props(); - + & { + portalProps?: SheetPrimitive.PortalProps; side?: Side; children: Snippet; } = $props(); - + {@render children?.()} diff --git a/sites/docs/src/lib/registry/new-york/ui/alert-dialog/alert-dialog-content.svelte b/sites/docs/src/lib/registry/new-york/ui/alert-dialog/alert-dialog-content.svelte index ad9c080b8..858b8bc1b 100644 --- a/sites/docs/src/lib/registry/new-york/ui/alert-dialog/alert-dialog-content.svelte +++ b/sites/docs/src/lib/registry/new-york/ui/alert-dialog/alert-dialog-content.svelte @@ -6,11 +6,14 @@ let { ref = $bindable(null), class: className, + portalProps, ...restProps - }: WithoutChild = $props(); + }: WithoutChild & { + portalProps?: AlertDialogPrimitive.PortalProps; + } = $props(); - + & WithoutChildrenOrChild & { + portalProps?: DialogPrimitive.PortalProps; children: Snippet; } = $props(); - + - + + + diff --git a/sites/docs/src/lib/registry/new-york/ui/dialog/dialog-content.svelte b/sites/docs/src/lib/registry/new-york/ui/dialog/dialog-content.svelte index e4afbea59..b3cd753e2 100644 --- a/sites/docs/src/lib/registry/new-york/ui/dialog/dialog-content.svelte +++ b/sites/docs/src/lib/registry/new-york/ui/dialog/dialog-content.svelte @@ -8,14 +8,16 @@ let { ref = $bindable(null), class: className, + portalProps, children, ...restProps }: WithoutChildrenOrChild & { + portalProps?: DialogPrimitive.PortalProps; children: Snippet; } = $props(); - + - + - + + + diff --git a/sites/docs/src/lib/registry/new-york/ui/hover-card/hover-card-content.svelte b/sites/docs/src/lib/registry/new-york/ui/hover-card/hover-card-content.svelte index 6e176851d..1c824539a 100644 --- a/sites/docs/src/lib/registry/new-york/ui/hover-card/hover-card-content.svelte +++ b/sites/docs/src/lib/registry/new-york/ui/hover-card/hover-card-content.svelte @@ -7,17 +7,22 @@ class: className, align = "center", sideOffset = 4, + portalProps, ...restProps - }: HoverCardPrimitive.ContentProps = $props(); + }: HoverCardPrimitive.ContentProps & { + portalProps?: HoverCardPrimitive.PortalProps; + } = $props(); - + + + diff --git a/sites/docs/src/lib/registry/new-york/ui/menubar/menubar-content.svelte b/sites/docs/src/lib/registry/new-york/ui/menubar/menubar-content.svelte index f26a8e8f0..7f6311c91 100644 --- a/sites/docs/src/lib/registry/new-york/ui/menubar/menubar-content.svelte +++ b/sites/docs/src/lib/registry/new-york/ui/menubar/menubar-content.svelte @@ -8,18 +8,25 @@ sideOffset = 8, alignOffset = -4, align = "start", + side = "bottom", + portalProps, ...restProps - }: MenubarPrimitive.ContentProps = $props(); + }: MenubarPrimitive.ContentProps & { + portalProps?: MenubarPrimitive.PortalProps; + } = $props(); - + + + diff --git a/sites/docs/src/lib/registry/new-york/ui/popover/popover-content.svelte b/sites/docs/src/lib/registry/new-york/ui/popover/popover-content.svelte index 377369d4a..f1df6fd81 100644 --- a/sites/docs/src/lib/registry/new-york/ui/popover/popover-content.svelte +++ b/sites/docs/src/lib/registry/new-york/ui/popover/popover-content.svelte @@ -7,11 +7,14 @@ class: className, align = "center", sideOffset = 4, + portalProps, ...restProps - }: PopoverPrimitive.ContentProps = $props(); + }: PopoverPrimitive.ContentProps & { + portalProps?: PopoverPrimitive.PortalProps; + } = $props(); - + = $props(); + }: WithoutChild & { + portalProps?: SelectPrimitive.PortalProps; + } = $props(); - + & { + portalProps?: SheetPrimitive.PortalProps; side?: Side; children: Snippet; } = $props(); - + {@render children?.()}