Skip to content

Commit 24c43d4

Browse files
committed
Fix check errors/warnings
1 parent 8cff0d7 commit 24c43d4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/svelte-ux/src/lib/components/Drawer.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
use:portalAction={portal}
110110
use:focusMove={{ restoreFocus: true }}
111111
role="dialog"
112+
tabindex="-1"
112113
>
113114
{#if loading}
114115
<Overlay center class="rounded-sm">

packages/svelte-ux/src/lib/components/Duration.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<script lang="ts">
22
import { cls } from '@layerstack/tailwind';
33
import { Duration, DurationUnits } from '@layerstack/utils';
4+
import type { DurationOption } from '@layerstack/utils/duration';
45
import { timerStore } from '@layerstack/svelte-stores';
56
67
import { getComponentClasses } from './theme.js';
78
89
export let start: Date | undefined = undefined;
910
export let end: Date | undefined = undefined;
10-
export let duration: Partial<Duration> | undefined = undefined;
11+
export let duration: DurationOption | undefined = undefined;
1112
export let minUnits: DurationUnits = DurationUnits.Millisecond;
1213
export let totalUnits: number = 99;
1314
export let variant: 'short' | 'long' = 'short';

0 commit comments

Comments
 (0)