@parasutcom/fds 0.1.8 → 0.1.10

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +81 -2
  2. package/dist/index.js +14724 -12796
  3. package/package.json +2 -1
package/dist/index.d.ts CHANGED
@@ -5,15 +5,23 @@ import { Checkbox as Checkbox_2 } from '@base-ui/react/checkbox';
5
5
  import { ClassProp } from 'class-variance-authority/types';
6
6
  import { ClassValue } from 'clsx';
7
7
  import { Collapsible as Collapsible_2 } from '@base-ui/react/collapsible';
8
+ import { ColumnDef } from '@tanstack/react-table';
9
+ import { ColumnFiltersState } from '@tanstack/react-table';
8
10
  import { Combobox as Combobox_2 } from '@base-ui/react';
9
11
  import { Command as Command_2 } from 'cmdk';
10
12
  import { DayButton } from 'react-day-picker';
11
13
  import { DayPicker } from 'react-day-picker';
12
14
  import { Dialog as Dialog_2 } from '@base-ui/react/dialog';
15
+ import { flexRender } from '@tanstack/react-table';
16
+ import { getCoreRowModel } from '@tanstack/react-table';
17
+ import { getFilteredRowModel } from '@tanstack/react-table';
18
+ import { getPaginationRowModel } from '@tanstack/react-table';
19
+ import { getSortedRowModel } from '@tanstack/react-table';
13
20
  import { Input as Input_2 } from '@base-ui/react/input';
14
21
  import { JSX } from 'react/jsx-runtime';
15
22
  import { JSXElementConstructor } from 'react';
16
23
  import { Menu } from '@base-ui/react/menu';
24
+ import { OnChangeFn } from '@tanstack/react-table';
17
25
  import { OTPInput } from 'input-otp';
18
26
  import { Progress as Progress_2 } from '@base-ui/react/progress';
19
27
  import { Radio } from '@base-ui/react/radio';
@@ -21,15 +29,21 @@ import { RadioGroup as RadioGroup_2 } from '@base-ui/react/radio-group';
21
29
  import * as React_2 from 'react';
22
30
  import { ReactElement } from 'react';
23
31
  import * as RechartsPrimitive from 'recharts';
32
+ import { Row } from '@tanstack/react-table';
33
+ import { RowSelectionState } from '@tanstack/react-table';
24
34
  import { Select as Select_2 } from '@base-ui/react/select';
25
35
  import { Separator as Separator_2 } from '@base-ui/react/separator';
36
+ import { SortingState } from '@tanstack/react-table';
26
37
  import { Switch as Switch_2 } from '@base-ui/react/switch';
38
+ import { Table } from '@tanstack/react-table';
27
39
  import { Tabs as Tabs_2 } from '@base-ui/react/tabs';
28
40
  import { ToasterProps } from 'sonner';
29
41
  import { Toggle as Toggle_2 } from '@base-ui/react/toggle';
30
42
  import { Tooltip as Tooltip_2 } from '@base-ui/react/tooltip';
43
+ import { useReactTable } from '@tanstack/react-table';
31
44
  import { useRender } from '@base-ui/react/use-render';
32
45
  import { VariantProps } from 'class-variance-authority';
46
+ import { VisibilityState } from '@tanstack/react-table';
33
47
 
34
48
  export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<'div'> & VariantProps<typeof alertVariants>): JSX.Element;
35
49
 
@@ -39,7 +53,7 @@ export declare function AlertDescription({ className, ...props }: React_2.Compon
39
53
 
40
54
  export declare function AlertDialog({ ...props }: AlertDialog_2.Root.Props): JSX.Element;
41
55
 
42
- export declare function AlertDialogAction({ className, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
56
+ export declare function AlertDialogAction({ className, variant, size, ...props }: AlertDialog_2.Close.Props & Pick<React_2.ComponentProps<typeof Button>, 'variant' | 'size'>): JSX.Element;
43
57
 
44
58
  export declare function AlertDialogCancel({ className, variant, size, ...props }: AlertDialog_2.Close.Props & Pick<React_2.ComponentProps<typeof Button>, 'variant' | 'size'>): JSX.Element;
45
59
 
@@ -215,6 +229,10 @@ export declare function CollapsibleContent({ ...props }: Collapsible_2.Panel.Pro
215
229
 
216
230
  export declare function CollapsibleTrigger({ ...props }: Collapsible_2.Trigger.Props): JSX.Element;
217
231
 
232
+ export { ColumnDef }
233
+
234
+ export { ColumnFiltersState }
235
+
218
236
  export declare const Combobox: typeof Combobox_2.Root;
219
237
 
220
238
  export declare function ComboboxChip({ className, children, showRemove, ...props }: Combobox_2.Chip.Props & {
@@ -274,6 +292,45 @@ export declare function CommandSeparator({ className, ...props }: React_2.Compon
274
292
 
275
293
  export declare function CommandShortcut({ className, ...props }: React_2.ComponentProps<"span">): JSX.Element;
276
294
 
295
+ export declare function DeleteDialog({ onConfirm, children, mode, count, open: controlledOpen, onOpenChange: controlledOnOpenChange, title, description, }: DeleteDialogProps): JSX.Element;
296
+
297
+ declare interface DeleteDialogProps {
298
+ /**
299
+ * Callback when delete is confirmed
300
+ */
301
+ onConfirm: () => void;
302
+ /**
303
+ * Custom trigger element (defaults to a button with generic delete text)
304
+ */
305
+ children?: ReactElement;
306
+ /**
307
+ * Delete mode: single item or bulk items
308
+ * @default 'single'
309
+ */
310
+ mode?: 'single' | 'bulk';
311
+ /**
312
+ * Number of items to delete (used in bulk mode)
313
+ * @default 1
314
+ */
315
+ count?: number;
316
+ /**
317
+ * Controlled open state
318
+ */
319
+ open?: boolean;
320
+ /**
321
+ * Controlled open state handler
322
+ */
323
+ onOpenChange?: (open: boolean) => void;
324
+ /**
325
+ * Override dialog title (otherwise uses i18n default)
326
+ */
327
+ title?: string;
328
+ /**
329
+ * Override dialog description (otherwise uses i18n default based on mode)
330
+ */
331
+ description?: string;
332
+ }
333
+
277
334
  export declare function Dialog({ ...props }: Dialog_2.Root.Props): JSX.Element;
278
335
 
279
336
  export declare function DialogClose({ ...props }: Dialog_2.Close.Props): JSX.Element;
@@ -383,6 +440,16 @@ declare const fieldVariants: (props?: ({
383
440
  orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
384
441
  } & ClassProp) | undefined) => string;
385
442
 
443
+ export { flexRender }
444
+
445
+ export { getCoreRowModel }
446
+
447
+ export { getFilteredRowModel }
448
+
449
+ export { getPaginationRowModel }
450
+
451
+ export { getSortedRowModel }
452
+
386
453
  export declare function IbanField({ value, onChange, showPrefix, error, placeholder, ...props }: IbanFieldProps): JSX.Element;
387
454
 
388
455
  export declare interface IbanFieldProps extends Omit<TextFieldProps, 'type' | 'value' | 'onChange' | 'prefix'> {
@@ -531,6 +598,8 @@ export declare interface NumericFieldProps extends Omit<React_2.ComponentPropsWi
531
598
  suffix?: React_2.ReactNode;
532
599
  }
533
600
 
601
+ export { OnChangeFn }
602
+
534
603
  export declare function Pagination({ className, ...props }: React_2.ComponentProps<'nav'>): JSX.Element;
535
604
 
536
605
  export declare function PaginationContent({ className, ...props }: React_2.ComponentProps<'ul'>): JSX.Element;
@@ -563,6 +632,10 @@ export declare function RadioGroup({ className, ...props }: RadioGroup_2.Props):
563
632
 
564
633
  export declare function RadioGroupItem({ className, ...props }: Radio.Root.Props): JSX.Element;
565
634
 
635
+ export { Row }
636
+
637
+ export { RowSelectionState }
638
+
566
639
  export declare const Select: typeof Select_2.Root;
567
640
 
568
641
  export declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: Select_2.Popup.Props & Pick<Select_2.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">): JSX.Element;
@@ -687,13 +760,15 @@ export declare function SidebarTrigger({ className, onClick, ...props }: React_2
687
760
 
688
761
  export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
689
762
 
763
+ export { SortingState }
764
+
690
765
  export declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): JSX.Element;
691
766
 
692
767
  export declare function Switch({ className, size, ...props }: Switch_2.Root.Props & {
693
768
  size?: "sm" | "default";
694
769
  }): JSX.Element;
695
770
 
696
- export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
771
+ export { Table }
697
772
 
698
773
  export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
699
774
 
@@ -774,6 +849,10 @@ export declare function useComboboxAnchor(): React_2.RefObject<HTMLDivElement |
774
849
 
775
850
  export declare function useIsMobile(): boolean;
776
851
 
852
+ export { useReactTable }
853
+
777
854
  export declare function useSidebar(): SidebarContextProps;
778
855
 
856
+ export { VisibilityState }
857
+
779
858
  export { }