Skip to content

Commit ea8f7d1

Browse files
authored
removal of obsolete 'count' property for Dialog (#1786)
1 parent d251243 commit ea8f7d1

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/lib/dialog/Dialog.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { fade } from "svelte/transition";
99
import { dialog } from "./theme";
1010
11-
let { children, onaction = () => true, oncancel, onsubmit, ontoggle, form = false, modal = true, autoclose = false, focustrap = false, open = $bindable(false), permanent = false, dismissable = true, outsideclose = true, class: className, classes, transition = fade, transitionParams, count, ...restProps }: DialogProps = $props();
11+
let { children, onaction = () => true, oncancel, onsubmit, ontoggle, form = false, modal = true, autoclose = false, focustrap = false, open = $bindable(false), permanent = false, dismissable = true, outsideclose = true, class: className, classes, transition = fade, transitionParams, ...restProps }: DialogProps = $props();
1212
1313
const paramsOptions = $derived(transitionParams ?? { duration: 100, easing: sineIn });
1414
@@ -166,6 +166,5 @@
166166
@prop classes
167167
@prop transition = fade
168168
@prop transitionParams
169-
@prop count
170169
@prop ...restProps
171170
-->

src/lib/types.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@ export interface DialogProps extends DialogVariants, HTMLDialogAttributes {
573573
outsideclose?: boolean;
574574
transition?: TransitionFunc;
575575
transitionParams?: ParamsType;
576-
count?: number;
577576
}
578577

579578
// drawer
@@ -585,7 +584,7 @@ export interface DrawerProps extends DrawerVariants, Omit<DialogProps, "hidden"
585584
offset?: string;
586585
}
587586

588-
export interface DrawerHandleProps extends DrawerHandleVariants, HTMLButtonAttributes {}
587+
export interface DrawerHandleProps extends DrawerHandleVariants, HTMLButtonAttributes { }
589588

590589
export interface DrawerheadProps extends DrawerheadVariants, HTMLButtonAttributes {
591590
closeIcon?: Snippet;
@@ -743,7 +742,7 @@ export interface FloatingLabelInputProps extends FloatingLabelInputVaratiants, O
743742
}
744743

745744
// helper
746-
export interface HelperProps extends HelperVariants, Omit<HTMLAttributes<HTMLParagraphElement>, "color"> {}
745+
export interface HelperProps extends HelperVariants, Omit<HTMLAttributes<HTMLParagraphElement>, "color"> { }
747746

748747
// input
749748
export type InputValue = string | number | string[] | undefined;
@@ -939,7 +938,7 @@ export interface TimepickerProps {
939938
timeIntervals?: string[];
940939
columns?: ColumnCount;
941940
// Callback props instead of events
942-
onselect?: (data: { time: string; endTime: string; [key: string]: string }) => void;
941+
onselect?: (data: { time: string; endTime: string;[key: string]: string }) => void;
943942
}
944943

945944
// textarea
@@ -1128,7 +1127,7 @@ export interface ToolbarProps extends ToolbarVariants, Omit<HTMLAttributes<HTMLD
11281127
end?: Snippet;
11291128
}
11301129

1131-
export interface ToolbarGroupProps extends ToolbarGroupVariants, HTMLAttributes<HTMLDivElement> {}
1130+
export interface ToolbarGroupProps extends ToolbarGroupVariants, HTMLAttributes<HTMLDivElement> { }
11321131

11331132
export type ToolbarButtonProps = ToolbarButtonVariants &
11341133
AnchorButtonAttributes & {
@@ -1445,7 +1444,7 @@ export interface SkeletonProps extends SkeletonVariants, HTMLAttributes<HTMLDivE
14451444
size?: SkeletonVariants["size"];
14461445
}
14471446

1448-
export interface TestimonialPlaceholderProps extends TestimonialPlaceholderVariants, HTMLAttributes<HTMLDivElement> {}
1447+
export interface TestimonialPlaceholderProps extends TestimonialPlaceholderVariants, HTMLAttributes<HTMLDivElement> { }
14491448

14501449
export interface TextPlaceholderProps extends TextPlaceholderVariants, HTMLAttributes<HTMLDivElement> {
14511450
size?: TextPlaceholderVariants["size"];
@@ -1455,7 +1454,7 @@ export interface VideoPlaceholderProps extends VideoPlaceholderVariants, HTMLAtt
14551454
size?: VideoPlaceholderVariants["size"];
14561455
}
14571456

1458-
export interface WidgetPlaceholderProps extends WidgetPlaceholderVariants, HTMLAttributes<HTMLDivElement> {}
1457+
export interface WidgetPlaceholderProps extends WidgetPlaceholderVariants, HTMLAttributes<HTMLDivElement> { }
14591458

14601459
// speeddial
14611460
export interface SpeedCtxType {

0 commit comments

Comments
 (0)