@parasutcom/fds 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +40 -1
- package/dist/index.js +4241 -4199
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export declare function AlertDescription({ className, ...props }: React_2.Compon
|
|
|
39
39
|
|
|
40
40
|
export declare function AlertDialog({ ...props }: AlertDialog_2.Root.Props): JSX.Element;
|
|
41
41
|
|
|
42
|
-
export declare function AlertDialogAction({ className, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
|
|
42
|
+
export declare function AlertDialogAction({ className, variant, size, ...props }: AlertDialog_2.Close.Props & Pick<React_2.ComponentProps<typeof Button>, 'variant' | 'size'>): JSX.Element;
|
|
43
43
|
|
|
44
44
|
export declare function AlertDialogCancel({ className, variant, size, ...props }: AlertDialog_2.Close.Props & Pick<React_2.ComponentProps<typeof Button>, 'variant' | 'size'>): JSX.Element;
|
|
45
45
|
|
|
@@ -274,6 +274,45 @@ export declare function CommandSeparator({ className, ...props }: React_2.Compon
|
|
|
274
274
|
|
|
275
275
|
export declare function CommandShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
|
|
276
276
|
|
|
277
|
+
export declare function DeleteDialog({ onConfirm, children, mode, count, open: controlledOpen, onOpenChange: controlledOnOpenChange, title, description, }: DeleteDialogProps): JSX.Element;
|
|
278
|
+
|
|
279
|
+
declare interface DeleteDialogProps {
|
|
280
|
+
/**
|
|
281
|
+
* Callback when delete is confirmed
|
|
282
|
+
*/
|
|
283
|
+
onConfirm: () => void;
|
|
284
|
+
/**
|
|
285
|
+
* Custom trigger element (defaults to a button with generic delete text)
|
|
286
|
+
*/
|
|
287
|
+
children?: ReactElement;
|
|
288
|
+
/**
|
|
289
|
+
* Delete mode: single item or bulk items
|
|
290
|
+
* @default 'single'
|
|
291
|
+
*/
|
|
292
|
+
mode?: 'single' | 'bulk';
|
|
293
|
+
/**
|
|
294
|
+
* Number of items to delete (used in bulk mode)
|
|
295
|
+
* @default 1
|
|
296
|
+
*/
|
|
297
|
+
count?: number;
|
|
298
|
+
/**
|
|
299
|
+
* Controlled open state
|
|
300
|
+
*/
|
|
301
|
+
open?: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Controlled open state handler
|
|
304
|
+
*/
|
|
305
|
+
onOpenChange?: (open: boolean) => void;
|
|
306
|
+
/**
|
|
307
|
+
* Override dialog title (otherwise uses i18n default)
|
|
308
|
+
*/
|
|
309
|
+
title?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Override dialog description (otherwise uses i18n default based on mode)
|
|
312
|
+
*/
|
|
313
|
+
description?: string;
|
|
314
|
+
}
|
|
315
|
+
|
|
277
316
|
export declare function Dialog({ ...props }: Dialog_2.Root.Props): JSX.Element;
|
|
278
317
|
|
|
279
318
|
export declare function DialogClose({ ...props }: Dialog_2.Close.Props): JSX.Element;
|