Some checks failed
Test and deploy staging / staging (push) Failing after 43s
Run the sveltekit-3 migration and finish its manual tasks:
- Move kit config into the sveltekit() Vite plugin; drop svelte.config.js
- Replace $lib with #lib subpath imports
- Declare env vars in src/env.ts and import them from $app/env/{private,public}
- Consolidate param matchers into src/params.ts
- Use error(status, message), Response.json, refreshAll and goto reset/shallow
- Fall back to a full page load when goto rejects a login return path
Switch from adapter-node to adapter-bun: the build script runs Vite under
Bun (the adapter requires it) and the image starts with `bun ./build`.
Runtime env names (PORT, BODY_SIZE_LIMIT, ADDRESS_HEADER, ...) are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.4 KiB
Svelte
43 lines
1.4 KiB
Svelte
<script lang="ts">
|
|
import { Select as SelectPrimitive } from 'bits-ui';
|
|
import CheckIcon from '@lucide/svelte/icons/check';
|
|
import { cn, type WithoutChild } from '#lib/utils.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
value,
|
|
label,
|
|
children: childrenProp,
|
|
...restProps
|
|
}: WithoutChild<SelectPrimitive.ItemProps> = $props();
|
|
</script>
|
|
|
|
<SelectPrimitive.Item
|
|
bind:ref
|
|
{value}
|
|
{label}
|
|
data-slot="select-item"
|
|
class={cn(
|
|
"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
'data-highlighted:bg-accent data-highlighted:text-accent-foreground',
|
|
className
|
|
)}
|
|
{...restProps}
|
|
>
|
|
{#snippet children({ selected, highlighted })}
|
|
<span class="pointer-events-none absolute right-2 flex size-4 items-center justify-center">
|
|
{#if selected}
|
|
<CheckIcon class="pointer-events-none" />
|
|
{/if}
|
|
</span>
|
|
<span class="flex flex-1 gap-2 shrink-0 whitespace-nowrap">
|
|
{#if childrenProp}
|
|
{@render childrenProp({ selected, highlighted })}
|
|
{:else}
|
|
{label || value}
|
|
{/if}
|
|
</span>
|
|
{/snippet}
|
|
</SelectPrimitive.Item>
|